openxiangda 1.0.140 → 1.0.141

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.
@@ -1,7 +1,8 @@
1
1
  import { PageContext, PageInfo, PageBridgeApi } from './react.mjs';
2
2
  export { ApiEnvelope, ApiPermissionListParams, AppAuthClient, AppFunctionConnectorApi, AppFunctionContext, AppFunctionDataViewApi, AppFunctionFormApi, AppFunctionFormGetByIdParams, AppFunctionFormQueryParams, AppFunctionFormWriteParams, AppFunctionNotificationApi, AppFunctionOperatorInfo, AppFunctionOrganizationApi, AppFunctionPermissionContext, AppFunctionRuntimeContext, ApproveTaskParams, AssignPermissionsParams, AssignRolesParams, AuthChallengePayload, AuthClientError, AuthClientErrorOptions, AuthClientOptions, AuthErrorExtra, AuthLogoutRedirectOptions, AuthMethod, AuthMethodType, AuthTokenData, AuthUser, BatchAddUsersToRoleParams, BatchSendNotificationByTypeParams, ChangeOrganizationAccountPasswordParams, ChangeUserRoleParams, ConnectorCallParams, ConnectorInvokeParams, ConnectorInvokeResult, ConnectorRequestBodyType, ConnectorResponseType, CreateApiPermissionParams, CreateFormPermissionGroupDto, CreateOrganizationAccountParams, CreateOrganizationDepartmentParams, CreatePagePermissionGroupDto, CreateRoleParams, CreateUiPermissionParams, CreateUserParams, CurrentUserDepartmentParents, CustomPageEntryConfig, CustomPageEntryMode, DataManagementConfigParams, DataManagementFilterState, DataPermissionConditionDto, DataPermissionDto, DataPermissionRuleDto, DataViewQueryParams, DataViewQueryResult, DataViewStatsParams, DingTalkLoginInput, DingTalkNotificationCapabilities, DingTalkNotificationCardConfig, DingTalkNotificationCardField, DingTalkNotificationCardMode, DingTalkNotificationCardPreview, DingTalkNotificationChannelConfig, DingTalkNotificationDeliveryMode, DingTalkNotificationPreviewResult, ExecuteProcessOperationInput, FieldAccessLevel, FieldAccessPolicyDto, FieldAccessPolicyItemDto, FieldOptionValue, FieldPermissionDto, FindNotificationConfigParams, FormAdvancedSearchParams, FormChangeRecordParams, FormCreateParams, FormCreateResult, FormDetailResult, FormExportParams, FormFieldValue, FormGetDetailParams, FormImportParams, FormInstanceIdentifierResult, FormPermissionGroup, FormRemoveParams, FormSearchParams, FormUpdateParams, FormUpdateResult, FunctionInvokeParams, FunctionInvokeResult, GetParentDepartmentsOptions, GetProcessInstanceParams, GetUserRolesParams, GuestLoginInput, ImportExportRecordDownloadParams, ImportExportRecordQuery, InitiatorApproverSelector, InstanceStatus, ListNotificationInboxParams, ListWorkCenterItemsParams, LoginLogGetParams, LoginLogListParams, LoginLogRecord, LoginLogStats, LoginLogStatsParams, LoginLogStatus, LoginMethodsResult, LoginPage, LoginPageProps, MarkAllNotificationReadResult, NotificationChannel, NotificationChannelConfig, NotificationChannelsConfig, NotificationConfigLevel, NotificationInboxListResult, NotificationInboxMessage, NotificationInboxReadStatus, NotificationMessageRecord, NotificationTemplate, NotificationTemplatePreview, NotificationTypeConfig, NotificationUnreadCountResult, OpenXiangdaPageProvider, OpenXiangdaPageProviderProps, OpenXiangdaProvider, OpenXiangdaProviderProps, OrganizationAccountListParams, OrganizationCapabilities, OrganizationListResult, PageApiPermissionRecord, PageApiResponse, PageAppInfo, PageBinaryResponse, PageDataManagementConfig, PageDataSourceDescriptor, PageDepartmentInfo, PageDepartmentRecord, PageHttpMethod, PageListResult, PageMessageApi, PageModalApi, PageNavigationApi, PageOffsetListResult, PagePermissionGroup, PagePermissionInfo, PageProvider, PageQueryValue, PageRequestOptions, PageRoleRecord, PageRouteInfo, PageScope, PageSdk, PageSdkError, PageSdkMeta, PageTransportDownloadPayload, PageTransportRequestPayload, PageUiPermissionRecord, PageUiPermissionType, PageUserInfo, PageUserRecord, PageUserType, PasswordLoginInput, PermissionBoundary, PermissionBoundaryFallback, PermissionBoundaryFallbackState, PermissionBoundaryProps, PhoneCodeInput, PhoneCodeLoginInput, PhoneCodeRegisterInput, PhoneCodeSendResult, PreviewDingTalkNotificationParams, PreviewNotificationTemplateParams, ProcessActionBar, ProcessActionBarProps, ProcessApproveAction, ProcessCapabilities, ProcessCapabilityOperation, ProcessInstanceLookupParams, ProcessPreviewPanel, ProcessPreviewPanelProps, ProcessTimeline, ProcessTimelineProps, PublicAccessClaim, PublicAccessClient, PublicAccessClientError, PublicAccessClientOptions, PublicAccessGate, PublicAccessGateProps, PublicAccessSessionData, PublicAccessSessionInput, QueryFormPermissionGroupDto, QueryPagePermissionGroupDto, RefreshInput, ResetOrganizationAccountPasswordParams, ResolveLoginUrlInput, ResolveProcessCapabilitiesParams, RoleListParams, RoleUsersParams, RouteAccessResult, RuntimeBootstrap, RuntimeErrorSnapshot, RuntimeErrorType, RuntimeLogoutOptions, RuntimeMenuItem, RuntimePagePermissions, RuntimeRedirectLoginOptions, RuntimeRequestError, RuntimeRequestState, RuntimeResolveLoginOptions, SaveDataManagementConfigParams, SearchComponentName, SearchExpression, SearchFieldKey, SearchGroup, SearchLogic, SearchOperator, SearchRule, SearchSortItem, SearchSystemField, SendNotificationByTypeParams, SendNotificationResult, SsoLoginUrlInput, SsoLoginUrlResult, SubFormRule, SwitchAppRoleParams, SwitchPlatformRoleParams, TerminateProcessInstanceParams, TriggerCallbackTaskParams, UiPermissionListParams, UpdateApiPermissionParams, UpdateFormPermissionGroupDto, UpdateOrganizationAccountParams, UpdateOrganizationDepartmentParams, UpdatePagePermissionGroupDto, UpdateRoleParams, UpdateUiPermissionParams, UpdateUserParams, UseAuthOptions, UseCanAccessRouteInput, UseLoginMethodsState, UseProcessActionsOptions, UseProcessActionsReturn, UseProcessCapabilitiesOptions, UseProcessCapabilitiesReturn, UsePublicAccessOptions, UsePublicAccessState, UserListParams, UserMenuPermissionsResponse, ValidateUserParams, ViewFieldPermissionValue, ViewOperationPermission, ViewPermissionSummary, WorkCenterBoxType, WorkCenterGroupedStat, WorkCenterItem, WorkCenterListResult, WorkCenterStats, WorkCenterStatsParams, WorkflowApproveParams, WorkflowCapabilityActionKey, WorkflowDefinitionByFormParams, WorkflowInitiatorSelectCandidatesParams, WorkflowInitiatorSelectRequirementsParams, WorkflowPreviewParams, WorkflowResubmitInitiatorSelectRequirementsParams, WorkflowResubmitParams, WorkflowReturnParams, WorkflowSaveTaskParams, WorkflowStartFromExistingInstanceParams, WorkflowTaskParams, WorkflowTransferParams, WorkflowWithdrawParams, createAuthClient, createPageSdk, createPublicAccessClient, createReactPage, getAuthErrorExtra, getAuthErrorReason, isAuthChallengeRequired, isAuthClientError, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap } from './react.mjs';
3
3
  import React__default from 'react';
4
- import { F as FormSchema, a as FormRuntimeApi, b as FormRuntimeApiConfig, c as FieldDefinition } from '../ProcessPreview-CZJP8n3e.mjs';
4
+ import { b as FormSchema, a as FormRuntimeApi, c as FormRuntimeApiConfig } from '../ProcessPreview-CsOTCTRT.mjs';
5
+ export { e as extractFieldsFromComponentsTree } from '../dataManagementApi-C1OKWpP7.mjs';
5
6
 
6
7
  type RuntimeCssIsolation = "none" | "namespace" | "shadow";
7
8
  interface RuntimeHostBootstrap {
@@ -165,7 +166,6 @@ interface NormalizeRuntimeFormSchemaOptions {
165
166
  appType: string;
166
167
  formUuid: string;
167
168
  }
168
- declare const extractFieldsFromComponentsTree: (componentsTree: any) => FieldDefinition[];
169
169
  declare const normalizeRuntimeFormSchema: (payload: any, options: NormalizeRuntimeFormSchemaOptions) => FormSchema | undefined;
170
170
 
171
- export { type BrowserRuntimeBootstrapOptions, type BrowserRuntimeHostOptions, type BrowserRuntimeMountOptions, type BrowserRuntimeMountResult, type BrowserRuntimeRouteKind, type BrowserRuntimeRouteMode, type BrowserRuntimeRouteResolution, type BrowserRuntimeRouteResolveOptions, type BuiltinRouteConfigMap, type BuiltinRouteOverrideComponent, type BuiltinRouteOverrideComponentProps, type BuiltinRouteOverrides, BuiltinRouteRenderer, type BuiltinRouteRendererProps, type BuiltinRouteSurfaceConfig, type CustomPageModule, type LoadedRuntimeAssets, type NormalizeRuntimeFormSchemaOptions, PageBridgeApi, PageContext, PageInfo, type RuntimeCssIsolation, type RuntimeHostBootstrap, type RuntimeMountOptions, createBrowserPageBridge, createBrowserPageContext, createBuiltinRouteRequest, extractFieldsFromComponentsTree, fetchBrowserRuntimeBootstrap, loadCustomPageModule, loadRuntimeScriptModules, mountBrowserPageRuntime, mountCustomPageRuntime, normalizeRuntimeFormSchema, resolveBrowserRuntimeRoute, resolveRuntimeAssets };
171
+ export { type BrowserRuntimeBootstrapOptions, type BrowserRuntimeHostOptions, type BrowserRuntimeMountOptions, type BrowserRuntimeMountResult, type BrowserRuntimeRouteKind, type BrowserRuntimeRouteMode, type BrowserRuntimeRouteResolution, type BrowserRuntimeRouteResolveOptions, type BuiltinRouteConfigMap, type BuiltinRouteOverrideComponent, type BuiltinRouteOverrideComponentProps, type BuiltinRouteOverrides, BuiltinRouteRenderer, type BuiltinRouteRendererProps, type BuiltinRouteSurfaceConfig, type CustomPageModule, type LoadedRuntimeAssets, type NormalizeRuntimeFormSchemaOptions, PageBridgeApi, PageContext, PageInfo, type RuntimeCssIsolation, type RuntimeHostBootstrap, type RuntimeMountOptions, createBrowserPageBridge, createBrowserPageContext, createBuiltinRouteRequest, fetchBrowserRuntimeBootstrap, loadCustomPageModule, loadRuntimeScriptModules, mountBrowserPageRuntime, mountCustomPageRuntime, normalizeRuntimeFormSchema, resolveBrowserRuntimeRoute, resolveRuntimeAssets };
@@ -1,7 +1,8 @@
1
1
  import { PageContext, PageInfo, PageBridgeApi } from './react.js';
2
2
  export { ApiEnvelope, ApiPermissionListParams, AppAuthClient, AppFunctionConnectorApi, AppFunctionContext, AppFunctionDataViewApi, AppFunctionFormApi, AppFunctionFormGetByIdParams, AppFunctionFormQueryParams, AppFunctionFormWriteParams, AppFunctionNotificationApi, AppFunctionOperatorInfo, AppFunctionOrganizationApi, AppFunctionPermissionContext, AppFunctionRuntimeContext, ApproveTaskParams, AssignPermissionsParams, AssignRolesParams, AuthChallengePayload, AuthClientError, AuthClientErrorOptions, AuthClientOptions, AuthErrorExtra, AuthLogoutRedirectOptions, AuthMethod, AuthMethodType, AuthTokenData, AuthUser, BatchAddUsersToRoleParams, BatchSendNotificationByTypeParams, ChangeOrganizationAccountPasswordParams, ChangeUserRoleParams, ConnectorCallParams, ConnectorInvokeParams, ConnectorInvokeResult, ConnectorRequestBodyType, ConnectorResponseType, CreateApiPermissionParams, CreateFormPermissionGroupDto, CreateOrganizationAccountParams, CreateOrganizationDepartmentParams, CreatePagePermissionGroupDto, CreateRoleParams, CreateUiPermissionParams, CreateUserParams, CurrentUserDepartmentParents, CustomPageEntryConfig, CustomPageEntryMode, DataManagementConfigParams, DataManagementFilterState, DataPermissionConditionDto, DataPermissionDto, DataPermissionRuleDto, DataViewQueryParams, DataViewQueryResult, DataViewStatsParams, DingTalkLoginInput, DingTalkNotificationCapabilities, DingTalkNotificationCardConfig, DingTalkNotificationCardField, DingTalkNotificationCardMode, DingTalkNotificationCardPreview, DingTalkNotificationChannelConfig, DingTalkNotificationDeliveryMode, DingTalkNotificationPreviewResult, ExecuteProcessOperationInput, FieldAccessLevel, FieldAccessPolicyDto, FieldAccessPolicyItemDto, FieldOptionValue, FieldPermissionDto, FindNotificationConfigParams, FormAdvancedSearchParams, FormChangeRecordParams, FormCreateParams, FormCreateResult, FormDetailResult, FormExportParams, FormFieldValue, FormGetDetailParams, FormImportParams, FormInstanceIdentifierResult, FormPermissionGroup, FormRemoveParams, FormSearchParams, FormUpdateParams, FormUpdateResult, FunctionInvokeParams, FunctionInvokeResult, GetParentDepartmentsOptions, GetProcessInstanceParams, GetUserRolesParams, GuestLoginInput, ImportExportRecordDownloadParams, ImportExportRecordQuery, InitiatorApproverSelector, InstanceStatus, ListNotificationInboxParams, ListWorkCenterItemsParams, LoginLogGetParams, LoginLogListParams, LoginLogRecord, LoginLogStats, LoginLogStatsParams, LoginLogStatus, LoginMethodsResult, LoginPage, LoginPageProps, MarkAllNotificationReadResult, NotificationChannel, NotificationChannelConfig, NotificationChannelsConfig, NotificationConfigLevel, NotificationInboxListResult, NotificationInboxMessage, NotificationInboxReadStatus, NotificationMessageRecord, NotificationTemplate, NotificationTemplatePreview, NotificationTypeConfig, NotificationUnreadCountResult, OpenXiangdaPageProvider, OpenXiangdaPageProviderProps, OpenXiangdaProvider, OpenXiangdaProviderProps, OrganizationAccountListParams, OrganizationCapabilities, OrganizationListResult, PageApiPermissionRecord, PageApiResponse, PageAppInfo, PageBinaryResponse, PageDataManagementConfig, PageDataSourceDescriptor, PageDepartmentInfo, PageDepartmentRecord, PageHttpMethod, PageListResult, PageMessageApi, PageModalApi, PageNavigationApi, PageOffsetListResult, PagePermissionGroup, PagePermissionInfo, PageProvider, PageQueryValue, PageRequestOptions, PageRoleRecord, PageRouteInfo, PageScope, PageSdk, PageSdkError, PageSdkMeta, PageTransportDownloadPayload, PageTransportRequestPayload, PageUiPermissionRecord, PageUiPermissionType, PageUserInfo, PageUserRecord, PageUserType, PasswordLoginInput, PermissionBoundary, PermissionBoundaryFallback, PermissionBoundaryFallbackState, PermissionBoundaryProps, PhoneCodeInput, PhoneCodeLoginInput, PhoneCodeRegisterInput, PhoneCodeSendResult, PreviewDingTalkNotificationParams, PreviewNotificationTemplateParams, ProcessActionBar, ProcessActionBarProps, ProcessApproveAction, ProcessCapabilities, ProcessCapabilityOperation, ProcessInstanceLookupParams, ProcessPreviewPanel, ProcessPreviewPanelProps, ProcessTimeline, ProcessTimelineProps, PublicAccessClaim, PublicAccessClient, PublicAccessClientError, PublicAccessClientOptions, PublicAccessGate, PublicAccessGateProps, PublicAccessSessionData, PublicAccessSessionInput, QueryFormPermissionGroupDto, QueryPagePermissionGroupDto, RefreshInput, ResetOrganizationAccountPasswordParams, ResolveLoginUrlInput, ResolveProcessCapabilitiesParams, RoleListParams, RoleUsersParams, RouteAccessResult, RuntimeBootstrap, RuntimeErrorSnapshot, RuntimeErrorType, RuntimeLogoutOptions, RuntimeMenuItem, RuntimePagePermissions, RuntimeRedirectLoginOptions, RuntimeRequestError, RuntimeRequestState, RuntimeResolveLoginOptions, SaveDataManagementConfigParams, SearchComponentName, SearchExpression, SearchFieldKey, SearchGroup, SearchLogic, SearchOperator, SearchRule, SearchSortItem, SearchSystemField, SendNotificationByTypeParams, SendNotificationResult, SsoLoginUrlInput, SsoLoginUrlResult, SubFormRule, SwitchAppRoleParams, SwitchPlatformRoleParams, TerminateProcessInstanceParams, TriggerCallbackTaskParams, UiPermissionListParams, UpdateApiPermissionParams, UpdateFormPermissionGroupDto, UpdateOrganizationAccountParams, UpdateOrganizationDepartmentParams, UpdatePagePermissionGroupDto, UpdateRoleParams, UpdateUiPermissionParams, UpdateUserParams, UseAuthOptions, UseCanAccessRouteInput, UseLoginMethodsState, UseProcessActionsOptions, UseProcessActionsReturn, UseProcessCapabilitiesOptions, UseProcessCapabilitiesReturn, UsePublicAccessOptions, UsePublicAccessState, UserListParams, UserMenuPermissionsResponse, ValidateUserParams, ViewFieldPermissionValue, ViewOperationPermission, ViewPermissionSummary, WorkCenterBoxType, WorkCenterGroupedStat, WorkCenterItem, WorkCenterListResult, WorkCenterStats, WorkCenterStatsParams, WorkflowApproveParams, WorkflowCapabilityActionKey, WorkflowDefinitionByFormParams, WorkflowInitiatorSelectCandidatesParams, WorkflowInitiatorSelectRequirementsParams, WorkflowPreviewParams, WorkflowResubmitInitiatorSelectRequirementsParams, WorkflowResubmitParams, WorkflowReturnParams, WorkflowSaveTaskParams, WorkflowStartFromExistingInstanceParams, WorkflowTaskParams, WorkflowTransferParams, WorkflowWithdrawParams, createAuthClient, createPageSdk, createPublicAccessClient, createReactPage, getAuthErrorExtra, getAuthErrorReason, isAuthChallengeRequired, isAuthClientError, useAppMenus, useAuth, useCanAccessRoute, useCurrentUser, useDataSource, useFormViewPermissions, useLoginMethods, useMessage, useModal, useNavigation, useOpenXiangda, usePageContext, usePageProps, usePageRoute, usePageSdk, usePermission, useProcessActions, useProcessCapabilities, usePublicAccess, useRuntimeAuth, useRuntimeBootstrap } from './react.js';
3
3
  import React__default from 'react';
4
- import { F as FormSchema, a as FormRuntimeApi, b as FormRuntimeApiConfig, c as FieldDefinition } from '../ProcessPreview-CZJP8n3e.js';
4
+ import { b as FormSchema, a as FormRuntimeApi, c as FormRuntimeApiConfig } from '../ProcessPreview-CsOTCTRT.js';
5
+ export { e as extractFieldsFromComponentsTree } from '../dataManagementApi-Cd1axl3v.js';
5
6
 
6
7
  type RuntimeCssIsolation = "none" | "namespace" | "shadow";
7
8
  interface RuntimeHostBootstrap {
@@ -165,7 +166,6 @@ interface NormalizeRuntimeFormSchemaOptions {
165
166
  appType: string;
166
167
  formUuid: string;
167
168
  }
168
- declare const extractFieldsFromComponentsTree: (componentsTree: any) => FieldDefinition[];
169
169
  declare const normalizeRuntimeFormSchema: (payload: any, options: NormalizeRuntimeFormSchemaOptions) => FormSchema | undefined;
170
170
 
171
- export { type BrowserRuntimeBootstrapOptions, type BrowserRuntimeHostOptions, type BrowserRuntimeMountOptions, type BrowserRuntimeMountResult, type BrowserRuntimeRouteKind, type BrowserRuntimeRouteMode, type BrowserRuntimeRouteResolution, type BrowserRuntimeRouteResolveOptions, type BuiltinRouteConfigMap, type BuiltinRouteOverrideComponent, type BuiltinRouteOverrideComponentProps, type BuiltinRouteOverrides, BuiltinRouteRenderer, type BuiltinRouteRendererProps, type BuiltinRouteSurfaceConfig, type CustomPageModule, type LoadedRuntimeAssets, type NormalizeRuntimeFormSchemaOptions, PageBridgeApi, PageContext, PageInfo, type RuntimeCssIsolation, type RuntimeHostBootstrap, type RuntimeMountOptions, createBrowserPageBridge, createBrowserPageContext, createBuiltinRouteRequest, extractFieldsFromComponentsTree, fetchBrowserRuntimeBootstrap, loadCustomPageModule, loadRuntimeScriptModules, mountBrowserPageRuntime, mountCustomPageRuntime, normalizeRuntimeFormSchema, resolveBrowserRuntimeRoute, resolveRuntimeAssets };
171
+ export { type BrowserRuntimeBootstrapOptions, type BrowserRuntimeHostOptions, type BrowserRuntimeMountOptions, type BrowserRuntimeMountResult, type BrowserRuntimeRouteKind, type BrowserRuntimeRouteMode, type BrowserRuntimeRouteResolution, type BrowserRuntimeRouteResolveOptions, type BuiltinRouteConfigMap, type BuiltinRouteOverrideComponent, type BuiltinRouteOverrideComponentProps, type BuiltinRouteOverrides, BuiltinRouteRenderer, type BuiltinRouteRendererProps, type BuiltinRouteSurfaceConfig, type CustomPageModule, type LoadedRuntimeAssets, type NormalizeRuntimeFormSchemaOptions, PageBridgeApi, PageContext, PageInfo, type RuntimeCssIsolation, type RuntimeHostBootstrap, type RuntimeMountOptions, createBrowserPageBridge, createBrowserPageContext, createBuiltinRouteRequest, fetchBrowserRuntimeBootstrap, loadCustomPageModule, loadRuntimeScriptModules, mountBrowserPageRuntime, mountCustomPageRuntime, normalizeRuntimeFormSchema, resolveBrowserRuntimeRoute, resolveRuntimeAssets };
@@ -21554,6 +21554,60 @@ var unwrap = (response) => {
21554
21554
  return response;
21555
21555
  };
21556
21556
  var pickData = (value) => value?.data ?? value?.result ?? value;
21557
+ var normalizePlatformComponentName = (componentName) => {
21558
+ const value = String(componentName || "").trim();
21559
+ return value || "TextField";
21560
+ };
21561
+ var extractSlotNodes = (value) => {
21562
+ if (!value) return [];
21563
+ if (Array.isArray(value)) {
21564
+ return value.flatMap((item) => extractSlotNodes(item));
21565
+ }
21566
+ if (typeof value !== "object") return [];
21567
+ if (value.type === "JSSlot" && value.value) {
21568
+ return extractSlotNodes(value.value);
21569
+ }
21570
+ if (value.componentName || Array.isArray(value.children)) {
21571
+ return [value];
21572
+ }
21573
+ return Object.values(value).flatMap((item) => extractSlotNodes(item));
21574
+ };
21575
+ var extractFieldsFromComponentsTree = (componentsTree) => {
21576
+ const roots = Array.isArray(componentsTree) ? componentsTree : [componentsTree];
21577
+ const fields = [];
21578
+ const seen = /* @__PURE__ */ new Set();
21579
+ const walk = (components) => {
21580
+ if (!Array.isArray(components)) return;
21581
+ components.forEach((component) => {
21582
+ if (!component || typeof component !== "object") return;
21583
+ const props = component.props || {};
21584
+ const fieldId = String(props.fieldId || component.fieldId || component.id || "").trim();
21585
+ if (props.isFormComponent === true && fieldId && !seen.has(fieldId)) {
21586
+ seen.add(fieldId);
21587
+ fields.push({
21588
+ ...props,
21589
+ id: props.id || component.id || fieldId,
21590
+ fieldId,
21591
+ componentName: normalizePlatformComponentName(
21592
+ props.componentName || component.componentName
21593
+ ),
21594
+ label: props.label || component.title || props.title || fieldId,
21595
+ title: props.title || component.title || props.label || fieldId,
21596
+ required: props.required ?? component.required
21597
+ });
21598
+ }
21599
+ if (component.componentName === "SubFormField") return;
21600
+ if (Array.isArray(component.children)) {
21601
+ walk(component.children);
21602
+ }
21603
+ Object.values(props).forEach((propValue) => {
21604
+ walk(extractSlotNodes(propValue));
21605
+ });
21606
+ });
21607
+ };
21608
+ walk(roots);
21609
+ return fields;
21610
+ };
21557
21611
  var normalizeActionSummary = (value) => {
21558
21612
  const raw = pickData(value) || {};
21559
21613
  const actions = Array.from(
@@ -21582,6 +21636,11 @@ var normalizeField = (key, field, system = false) => ({
21582
21636
  width: field?.width,
21583
21637
  system
21584
21638
  });
21639
+ var createDefaultLayout = (fields) => fields.map((field) => ({
21640
+ id: `layout_${field.fieldId}`,
21641
+ type: "field",
21642
+ fieldId: field.fieldId
21643
+ }));
21585
21644
  var SYSTEM_VALUE_ALIASES = {
21586
21645
  formInstanceId: ["formInstanceId", "formInstId", "form_instance_id", "processInstanceId"],
21587
21646
  instanceTitle: ["instanceTitle", "instance_title", "processInstanceTitle", "title"],
@@ -21695,20 +21754,25 @@ var BASE_SYSTEM_FIELDS = [
21695
21754
  )
21696
21755
  ];
21697
21756
  var getSystemFieldsForFormType = (formType) => formType === "process" ? [...BASE_SYSTEM_FIELDS, ...PROCESS_SYSTEM_FIELDS] : BASE_SYSTEM_FIELDS;
21698
- var normalizeDataManagementFields = (payload) => {
21757
+ var normalizeDataManagementFields = (payload, options = {}) => {
21699
21758
  const data = pickData(payload);
21700
21759
  const rawSchema = data?.schema || data?.formSchema || data?.publishedSchema || data;
21701
- const schemaAppType = rawSchema?.formMeta?.appType || data?.appType;
21702
- const schemaFormUuid = rawSchema?.formMeta?.formUuid || data?.formUuid;
21703
- const schemaTitle = rawSchema?.formMeta?.title || data?.title || data?.name || data?.formName || schemaFormUuid;
21704
- const formType = data?.formType || data?.schema?.formType || data?.schema?.template?.formType || rawSchema?.template?.formType || data?.type;
21705
- const rawFields = data?.formFields || data?.schema?.formFields || data?.fields || data?.schema?.fields || data?.formSchema?.fields || [];
21706
- const fields = Array.isArray(rawFields) ? rawFields.map((field) => normalizeField(field?.fieldId || field?.id, field)) : Object.entries(rawFields).map(([key, field]) => normalizeField(key, field));
21760
+ const schemaAppType = rawSchema?.formMeta?.appType || rawSchema?.appType || data?.appType || options.appType;
21761
+ const schemaFormUuid = rawSchema?.formMeta?.formUuid || rawSchema?.formUuid || data?.formUuid || options.formUuid;
21762
+ const schemaTitle = rawSchema?.formMeta?.title || rawSchema?.title || data?.title || data?.name || data?.formName || schemaFormUuid;
21763
+ const formType = data?.formType || data?.schema?.formType || data?.schema?.template?.formType || rawSchema?.formType || rawSchema?.template?.formType || data?.type;
21764
+ const rawFields = data?.formFields || data?.schema?.formFields || rawSchema?.formFields || data?.fields || data?.schema?.fields || data?.formSchema?.fields || rawSchema?.fields || [];
21765
+ const extractedFields = Array.isArray(rawFields) && rawFields.length === 0 && rawSchema?.componentsTree ? extractFieldsFromComponentsTree(rawSchema.componentsTree) : rawFields;
21766
+ const fields = (Array.isArray(extractedFields) ? extractedFields.map((field) => normalizeField(field?.fieldId || field?.id, field)) : Object.entries(extractedFields).map(([key, field]) => normalizeField(key, field))).filter((field) => field.componentName !== "PageSection");
21767
+ const schemaFields = Array.isArray(rawSchema?.fields) ? rawSchema.fields : fields;
21768
+ const hasSchemaFields = Array.isArray(rawSchema?.fields) || fields.length > 0;
21707
21769
  return {
21708
- fields: fields.filter((field) => field.componentName !== "PageSection"),
21770
+ fields,
21709
21771
  formType,
21710
- schema: rawSchema && Array.isArray(rawSchema.fields) && schemaAppType && schemaFormUuid ? {
21772
+ schema: rawSchema && hasSchemaFields && schemaAppType && schemaFormUuid ? {
21711
21773
  ...rawSchema,
21774
+ fields: schemaFields,
21775
+ layout: rawSchema.layout || createDefaultLayout(fields),
21712
21776
  formMeta: {
21713
21777
  formUuid: schemaFormUuid,
21714
21778
  appType: schemaAppType,
@@ -21799,7 +21863,7 @@ async function getDataManagementSchema(request, params) {
21799
21863
  method: "get",
21800
21864
  params
21801
21865
  });
21802
- const result = normalizeDataManagementFields(response);
21866
+ const result = normalizeDataManagementFields(response, params);
21803
21867
  if (result.schema) {
21804
21868
  result.schema = {
21805
21869
  ...result.schema,
@@ -22883,6 +22947,7 @@ var DataManagementList = ({
22883
22947
  title,
22884
22948
  formTitle,
22885
22949
  formType: propFormType,
22950
+ schema: providedSchema,
22886
22951
  forcedConfig,
22887
22952
  showForcedConfig = true,
22888
22953
  detailRenderer,
@@ -23100,7 +23165,10 @@ var DataManagementList = ({
23100
23165
  setTotal(0);
23101
23166
  setSelectedRowKeys([]);
23102
23167
  try {
23103
- const schemaResult = await getDataManagementSchema(request, { appType, formUuid });
23168
+ const schemaResult = providedSchema ? normalizeDataManagementFields(
23169
+ { appType, formUuid, schema: providedSchema },
23170
+ { appType, formUuid }
23171
+ ) : await getDataManagementSchema(request, { appType, formUuid });
23104
23172
  if (!mounted) return;
23105
23173
  const allFields = uniqueFields([
23106
23174
  ...schemaResult.fields,
@@ -23176,6 +23244,7 @@ var DataManagementList = ({
23176
23244
  loadData,
23177
23245
  menuFormUuid,
23178
23246
  propFormType,
23247
+ providedSchema,
23179
23248
  request,
23180
23249
  title
23181
23250
  ]);
@@ -24122,61 +24191,7 @@ var DataManagementList = ({
24122
24191
  };
24123
24192
 
24124
24193
  // packages/sdk/src/runtime/host/formSchema.ts
24125
- var normalizePlatformComponentName = (componentName) => {
24126
- const value = String(componentName || "").trim();
24127
- return value || "TextField";
24128
- };
24129
- var extractSlotNodes = (value) => {
24130
- if (!value) return [];
24131
- if (Array.isArray(value)) {
24132
- return value.flatMap((item) => extractSlotNodes(item));
24133
- }
24134
- if (typeof value !== "object") return [];
24135
- if (value.type === "JSSlot" && value.value) {
24136
- return extractSlotNodes(value.value);
24137
- }
24138
- if (value.componentName || Array.isArray(value.children)) {
24139
- return [value];
24140
- }
24141
- return Object.values(value).flatMap((item) => extractSlotNodes(item));
24142
- };
24143
- var extractFieldsFromComponentsTree = (componentsTree) => {
24144
- const roots = Array.isArray(componentsTree) ? componentsTree : [componentsTree];
24145
- const fields = [];
24146
- const seen = /* @__PURE__ */ new Set();
24147
- const walk = (components) => {
24148
- if (!Array.isArray(components)) return;
24149
- components.forEach((component) => {
24150
- if (!component || typeof component !== "object") return;
24151
- const props = component.props || {};
24152
- const fieldId = String(props.fieldId || component.fieldId || component.id || "").trim();
24153
- if (props.isFormComponent === true && fieldId && !seen.has(fieldId)) {
24154
- seen.add(fieldId);
24155
- fields.push({
24156
- ...props,
24157
- id: props.id || component.id || fieldId,
24158
- fieldId,
24159
- componentName: normalizePlatformComponentName(
24160
- props.componentName || component.componentName
24161
- ),
24162
- label: props.label || component.title || props.title || fieldId,
24163
- title: props.title || component.title || props.label || fieldId,
24164
- required: props.required ?? component.required
24165
- });
24166
- }
24167
- if (component.componentName === "SubFormField") return;
24168
- if (Array.isArray(component.children)) {
24169
- walk(component.children);
24170
- }
24171
- Object.values(props).forEach((propValue) => {
24172
- walk(extractSlotNodes(propValue));
24173
- });
24174
- });
24175
- };
24176
- walk(roots);
24177
- return fields;
24178
- };
24179
- var createDefaultLayout = (fields) => fields.map((field) => ({
24194
+ var createDefaultLayout2 = (fields) => fields.map((field) => ({
24180
24195
  id: `layout_${field.fieldId}`,
24181
24196
  type: "field",
24182
24197
  fieldId: field.fieldId
@@ -24192,7 +24207,7 @@ var normalizeRuntimeFormSchema = (payload, options) => {
24192
24207
  return {
24193
24208
  ...rawSchema,
24194
24209
  fields,
24195
- layout: rawSchema.layout || createDefaultLayout(fields),
24210
+ layout: rawSchema.layout || createDefaultLayout2(fields),
24196
24211
  formMeta: {
24197
24212
  appType: options.appType,
24198
24213
  formUuid: options.formUuid,