openxiangda 1.0.41 → 1.0.43
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/README.md +60 -0
- package/package.json +1 -1
- package/packages/sdk/dist/components/index.cjs +2 -0
- package/packages/sdk/dist/components/index.cjs.map +1 -1
- package/packages/sdk/dist/components/index.d.mts +4 -1071
- package/packages/sdk/dist/components/index.d.ts +4 -1071
- package/packages/sdk/dist/components/index.mjs +2 -0
- package/packages/sdk/dist/components/index.mjs.map +1 -1
- package/packages/sdk/dist/runtime/index.cjs +47838 -93
- package/packages/sdk/dist/runtime/index.cjs.map +1 -1
- package/packages/sdk/dist/runtime/index.css +5313 -0
- package/packages/sdk/dist/runtime/index.css.map +1 -0
- package/packages/sdk/dist/runtime/index.d.mts +165 -1
- package/packages/sdk/dist/runtime/index.d.ts +165 -1
- package/packages/sdk/dist/runtime/index.mjs +47018 -103
- package/packages/sdk/dist/runtime/index.mjs.map +1 -1
- package/packages/sdk/dist/types-U26h_FIh.d.mts +1073 -0
- package/packages/sdk/dist/types-U26h_FIh.d.ts +1073 -0
- package/templates/sy-lowcode-app-workspace/src/dev/App.tsx +780 -28
- package/templates/sy-lowcode-app-workspace/src/runtime/builtin-overrides.tsx +8 -0
- package/templates/sy-lowcode-app-workspace/tsconfig.app.json +17 -1
- package/templates/sy-lowcode-app-workspace/vite.config.ts +81 -28
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React__default, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { _ as FormSchema, X as FormRuntimeApi, Y as FormRuntimeApiConfig } from '../types-U26h_FIh.mjs';
|
|
2
4
|
|
|
3
5
|
type PageQueryValue = string | string[];
|
|
4
6
|
type PageHttpMethod = "get" | "post" | "put" | "delete" | "patch";
|
|
@@ -58,6 +60,7 @@ interface PageRouteInfo {
|
|
|
58
60
|
interface PageDepartmentInfo {
|
|
59
61
|
id?: string;
|
|
60
62
|
name?: string;
|
|
63
|
+
externalId?: string | null;
|
|
61
64
|
}
|
|
62
65
|
interface PageDepartmentRecord extends PageDepartmentInfo {
|
|
63
66
|
id: string;
|
|
@@ -93,6 +96,8 @@ interface PageUserInfo {
|
|
|
93
96
|
email?: string | null;
|
|
94
97
|
avatar?: string | null;
|
|
95
98
|
departments?: PageDepartmentInfo[];
|
|
99
|
+
affiliatedDepartmentId?: string | null;
|
|
100
|
+
affiliatedDepartment?: PageDepartmentInfo | null;
|
|
96
101
|
tenantId: string;
|
|
97
102
|
isGuest?: boolean;
|
|
98
103
|
userType?: PageUserType;
|
|
@@ -926,6 +931,7 @@ interface CurrentUserState {
|
|
|
926
931
|
isInternalUser: boolean;
|
|
927
932
|
displayName: string;
|
|
928
933
|
primaryDepartment: NonNullable<PageUserInfo["departments"]>[number] | null;
|
|
934
|
+
affiliatedDepartment: PageUserInfo["affiliatedDepartment"] | null;
|
|
929
935
|
}
|
|
930
936
|
declare const useCurrentUser: () => CurrentUserState;
|
|
931
937
|
|
|
@@ -977,4 +983,162 @@ declare const usePageRoute: () => PageRouteInfo;
|
|
|
977
983
|
|
|
978
984
|
declare const usePageSdk: () => PageSdk;
|
|
979
985
|
|
|
980
|
-
|
|
986
|
+
type RuntimeCssIsolation = "none" | "namespace" | "shadow";
|
|
987
|
+
interface RuntimeHostBootstrap {
|
|
988
|
+
app: PageContext["app"];
|
|
989
|
+
page: PageInfo;
|
|
990
|
+
user: PageContext["user"];
|
|
991
|
+
asset?: {
|
|
992
|
+
protocolVersion?: string;
|
|
993
|
+
version?: string;
|
|
994
|
+
buildId?: string;
|
|
995
|
+
entryUrl?: string;
|
|
996
|
+
cssAssets?: string[];
|
|
997
|
+
jsAssets?: string[];
|
|
998
|
+
manifestUrl?: string;
|
|
999
|
+
[key: string]: unknown;
|
|
1000
|
+
};
|
|
1001
|
+
runtimeAssets?: {
|
|
1002
|
+
entryUrl?: string;
|
|
1003
|
+
cssUrls?: string[];
|
|
1004
|
+
jsUrls?: string[];
|
|
1005
|
+
cssIsolation?: RuntimeCssIsolation | string;
|
|
1006
|
+
[key: string]: unknown;
|
|
1007
|
+
};
|
|
1008
|
+
env?: Record<string, unknown>;
|
|
1009
|
+
permissions?: Partial<PageContext["permissions"]>;
|
|
1010
|
+
sdk?: PageContext["sdk"];
|
|
1011
|
+
}
|
|
1012
|
+
type BrowserRuntimeRouteMode = "custom-page" | "builtin-route" | "legacy-fallback" | "not-found";
|
|
1013
|
+
type BrowserRuntimeRouteKind = "custom-page" | "legacy-workbench" | "work-center" | "form-submit" | "process-submit" | "form-preview" | "form-detail" | "process-detail" | "data-manage-list" | "file-preview" | "unknown";
|
|
1014
|
+
interface BrowserRuntimeRouteResolution {
|
|
1015
|
+
appType: string;
|
|
1016
|
+
path: string;
|
|
1017
|
+
search: string;
|
|
1018
|
+
kind: BrowserRuntimeRouteKind;
|
|
1019
|
+
mode: BrowserRuntimeRouteMode;
|
|
1020
|
+
params: Record<string, string>;
|
|
1021
|
+
query: Record<string, string | string[]>;
|
|
1022
|
+
runtime: Record<string, unknown>;
|
|
1023
|
+
fallback?: {
|
|
1024
|
+
legacyRoute: boolean;
|
|
1025
|
+
reason: string;
|
|
1026
|
+
};
|
|
1027
|
+
message?: string;
|
|
1028
|
+
}
|
|
1029
|
+
interface BrowserRuntimeHostOptions {
|
|
1030
|
+
servicePrefix?: string;
|
|
1031
|
+
fetchImpl?: typeof fetch;
|
|
1032
|
+
message?: Partial<PageContext["ui"]["message"]>;
|
|
1033
|
+
modal?: Partial<PageContext["ui"]["modal"]>;
|
|
1034
|
+
navigation?: Partial<PageContext["navigation"]>;
|
|
1035
|
+
route?: Partial<PageContext["route"]>;
|
|
1036
|
+
}
|
|
1037
|
+
interface BrowserRuntimeBootstrapOptions {
|
|
1038
|
+
appType: string;
|
|
1039
|
+
pageKey: string;
|
|
1040
|
+
servicePrefix?: string;
|
|
1041
|
+
bootstrapPath?: string;
|
|
1042
|
+
fetchImpl?: typeof fetch;
|
|
1043
|
+
}
|
|
1044
|
+
interface BrowserRuntimeRouteResolveOptions {
|
|
1045
|
+
appType: string;
|
|
1046
|
+
path?: string;
|
|
1047
|
+
search?: string;
|
|
1048
|
+
servicePrefix?: string;
|
|
1049
|
+
resolvePath?: string;
|
|
1050
|
+
fetchImpl?: typeof fetch;
|
|
1051
|
+
}
|
|
1052
|
+
interface LoadedRuntimeAssets {
|
|
1053
|
+
entryUrl: string;
|
|
1054
|
+
cssUrls: string[];
|
|
1055
|
+
jsUrls: string[];
|
|
1056
|
+
cssIsolation: RuntimeCssIsolation;
|
|
1057
|
+
}
|
|
1058
|
+
interface CustomPageModule {
|
|
1059
|
+
mount?: (el: HTMLElement, context: PageContext) => void | Promise<void>;
|
|
1060
|
+
update?: (el: HTMLElement, nextContext: PageContext, prevContext?: PageContext) => void | Promise<void>;
|
|
1061
|
+
unmount?: (el?: HTMLElement, context?: PageContext) => void | Promise<void>;
|
|
1062
|
+
default?: CustomPageModule;
|
|
1063
|
+
}
|
|
1064
|
+
interface RuntimeMountOptions {
|
|
1065
|
+
container: HTMLElement;
|
|
1066
|
+
module: CustomPageModule;
|
|
1067
|
+
context: PageContext;
|
|
1068
|
+
assets?: Partial<LoadedRuntimeAssets>;
|
|
1069
|
+
}
|
|
1070
|
+
interface BrowserRuntimeMountOptions extends BrowserRuntimeHostOptions {
|
|
1071
|
+
container: HTMLElement;
|
|
1072
|
+
appType: string;
|
|
1073
|
+
pageKey: string;
|
|
1074
|
+
bootstrapPath?: string;
|
|
1075
|
+
moduleLoader?: (url: string) => Promise<unknown>;
|
|
1076
|
+
}
|
|
1077
|
+
interface BrowserRuntimeMountResult {
|
|
1078
|
+
bootstrap: RuntimeHostBootstrap;
|
|
1079
|
+
assets: LoadedRuntimeAssets;
|
|
1080
|
+
context: PageContext;
|
|
1081
|
+
module: CustomPageModule;
|
|
1082
|
+
cleanup: () => Promise<void>;
|
|
1083
|
+
}
|
|
1084
|
+
declare const createBrowserPageBridge: (options?: BrowserRuntimeHostOptions) => PageBridgeApi;
|
|
1085
|
+
declare const createBrowserPageContext: (bootstrap: RuntimeHostBootstrap, options?: BrowserRuntimeHostOptions) => PageContext;
|
|
1086
|
+
declare const resolveRuntimeAssets: (bootstrap: RuntimeHostBootstrap, fetchImpl?: typeof fetch) => Promise<LoadedRuntimeAssets>;
|
|
1087
|
+
declare const fetchBrowserRuntimeBootstrap: ({ appType, bootstrapPath, fetchImpl, pageKey, servicePrefix, }: BrowserRuntimeBootstrapOptions) => Promise<RuntimeHostBootstrap>;
|
|
1088
|
+
declare const resolveBrowserRuntimeRoute: ({ appType, fetchImpl, path, resolvePath, search, servicePrefix, }: BrowserRuntimeRouteResolveOptions) => Promise<BrowserRuntimeRouteResolution>;
|
|
1089
|
+
declare const loadRuntimeScriptModules: (jsUrls?: string[], moduleLoader?: (url: string) => Promise<unknown>) => Promise<void>;
|
|
1090
|
+
declare const loadCustomPageModule: (entryUrl: string, moduleLoader?: (url: string) => Promise<unknown>, jsUrls?: string[]) => Promise<CustomPageModule>;
|
|
1091
|
+
declare const mountCustomPageRuntime: ({ assets, container, context, module, }: RuntimeMountOptions) => Promise<() => Promise<void>>;
|
|
1092
|
+
declare const mountBrowserPageRuntime: (options: BrowserRuntimeMountOptions) => Promise<BrowserRuntimeMountResult>;
|
|
1093
|
+
|
|
1094
|
+
interface BuiltinRouteSurfaceConfig {
|
|
1095
|
+
title?: string;
|
|
1096
|
+
formTitle?: string;
|
|
1097
|
+
formType?: string;
|
|
1098
|
+
enableDraft?: boolean;
|
|
1099
|
+
enableProcessPreview?: boolean;
|
|
1100
|
+
enableEdit?: boolean;
|
|
1101
|
+
enableDelete?: boolean;
|
|
1102
|
+
enableChangeRecords?: boolean;
|
|
1103
|
+
submitSuccessMode?: "redirect" | "continue" | "stay";
|
|
1104
|
+
readonly?: boolean;
|
|
1105
|
+
fullHeight?: boolean;
|
|
1106
|
+
configScope?: "global" | "personal";
|
|
1107
|
+
forcedConfig?: Record<string, any>;
|
|
1108
|
+
showForcedConfig?: boolean;
|
|
1109
|
+
[key: string]: any;
|
|
1110
|
+
}
|
|
1111
|
+
interface BuiltinRouteOverrideComponentProps {
|
|
1112
|
+
route: BrowserRuntimeRouteResolution;
|
|
1113
|
+
kind: BrowserRuntimeRouteKind;
|
|
1114
|
+
appType: string;
|
|
1115
|
+
formUuid?: string;
|
|
1116
|
+
formInstId?: string;
|
|
1117
|
+
formInstanceId?: string;
|
|
1118
|
+
query: BrowserRuntimeRouteResolution["query"];
|
|
1119
|
+
schema?: FormSchema;
|
|
1120
|
+
api: FormRuntimeApi;
|
|
1121
|
+
servicePrefix: string;
|
|
1122
|
+
requestOverride: FormRuntimeApi["request"];
|
|
1123
|
+
config: BuiltinRouteSurfaceConfig;
|
|
1124
|
+
defaultNode: React__default.ReactNode;
|
|
1125
|
+
reload: () => void;
|
|
1126
|
+
}
|
|
1127
|
+
type BuiltinRouteOverrideComponent = React__default.ComponentType<BuiltinRouteOverrideComponentProps>;
|
|
1128
|
+
type BuiltinRouteOverrides = Partial<Record<BrowserRuntimeRouteKind, Record<string, BuiltinRouteOverrideComponent | undefined>>>;
|
|
1129
|
+
type BuiltinRouteConfigMap = Partial<Record<BrowserRuntimeRouteKind, Record<string, BuiltinRouteSurfaceConfig | undefined>>>;
|
|
1130
|
+
interface BuiltinRouteRendererProps {
|
|
1131
|
+
route: BrowserRuntimeRouteResolution | null;
|
|
1132
|
+
appType?: string;
|
|
1133
|
+
servicePrefix?: string;
|
|
1134
|
+
requestOverride?: FormRuntimeApi["request"] | FormRuntimeApiConfig;
|
|
1135
|
+
overrides?: BuiltinRouteOverrides;
|
|
1136
|
+
config?: BuiltinRouteConfigMap;
|
|
1137
|
+
fetchImpl?: typeof fetch;
|
|
1138
|
+
className?: string;
|
|
1139
|
+
style?: React__default.CSSProperties;
|
|
1140
|
+
}
|
|
1141
|
+
declare const createBuiltinRouteRequest: (servicePrefix?: string, fetchImpl?: typeof fetch) => FormRuntimeApi["request"];
|
|
1142
|
+
declare function BuiltinRouteRenderer({ route, appType: appTypeProp, className, config, fetchImpl, overrides, requestOverride, servicePrefix, style, }: BuiltinRouteRendererProps): react_jsx_runtime.JSX.Element | null;
|
|
1143
|
+
|
|
1144
|
+
export { type ApiPermissionListParams, type ApproveTaskParams, type AssignPermissionsParams, type AssignRolesParams, type AuthLogoutRedirectOptions, type BatchAddUsersToRoleParams, type BatchSendNotificationByTypeParams, 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 ChangeUserRoleParams, type ConnectorCallParams, type ConnectorInvokeParams, type ConnectorInvokeResult, type ConnectorRequestBodyType, type ConnectorResponseType, type CreateApiPermissionParams, type CreateFormPermissionGroupDto, type CreatePagePermissionGroupDto, type CreateRoleParams, type CreateUiPermissionParams, type CreateUserParams, type CurrentUserDepartmentParents, type CustomPageEntryConfig, type CustomPageEntryMode, type CustomPageModule, type DataManagementConfigParams, type DataManagementFilterState, type DataPermissionConditionDto, type DataPermissionDto, type DataPermissionRuleDto, type DataViewQueryParams, type DataViewQueryResult, type DataViewStatsParams, type FieldAccessLevel, type FieldAccessPolicyDto, type FieldAccessPolicyItemDto, type FieldPermissionDto, type FindNotificationConfigParams, type FormAdvancedSearchParams, type FormChangeRecordParams, type FormCreateParams, type FormExportParams, type FormGetDetailParams, type FormImportParams, type FormPermissionGroup, type FormRemoveParams, type FormSearchParams, type FormUpdateParams, type GetParentDepartmentsOptions, type GetProcessInstanceParams, type GetUserRolesParams, type ImportExportRecordDownloadParams, type ImportExportRecordQuery, type InstanceStatus, type LoadedRuntimeAssets, type NotificationChannel, type NotificationChannelConfig, type NotificationChannelsConfig, type NotificationConfigLevel, type NotificationMessageRecord, type NotificationTemplate, type NotificationTemplatePreview, type NotificationTypeConfig, type PageApiPermissionRecord, type PageApiResponse, type PageAppInfo, type PageBinaryResponse, type PageBridgeApi, type PageContext, type PageDataManagementConfig, type PageDataSourceDescriptor, type PageDepartmentInfo, type PageDepartmentRecord, type PageHttpMethod, type PageInfo, type PageListResult, type PageMessageApi, type PageModalApi, type PageNavigationApi, type PageOffsetListResult, type PagePermissionGroup, type PagePermissionInfo, PageProvider, type PageQueryValue, type PageRequestOptions, type PageRoleRecord, type PageRouteInfo, type PageScope, type PageSdk, type PageSdkError, type PageSdkMeta, type PageTransportDownloadPayload, type PageTransportRequestPayload, type PageUiPermissionRecord, type PageUiPermissionType, type PageUserInfo, type PageUserRecord, type PageUserType, type PreviewNotificationTemplateParams, type ProcessApproveAction, type QueryFormPermissionGroupDto, type QueryPagePermissionGroupDto, type RoleListParams, type RoleUsersParams, type RuntimeCssIsolation, type RuntimeHostBootstrap, type RuntimeMountOptions, type SaveDataManagementConfigParams, type SearchComponentName, type SearchExpression, type SearchFieldKey, type SearchGroup, type SearchLogic, type SearchOperator, type SearchRule, type SearchSortItem, type SearchSystemField, type SendNotificationByTypeParams, type SendNotificationResult, type SubFormRule, type SwitchAppRoleParams, type SwitchPlatformRoleParams, type TerminateProcessInstanceParams, type TriggerCallbackTaskParams, type UiPermissionListParams, type UpdateApiPermissionParams, type UpdateFormPermissionGroupDto, type UpdatePagePermissionGroupDto, type UpdateRoleParams, type UpdateUiPermissionParams, type UpdateUserParams, type UserListParams, type UserMenuPermissionsResponse, type ValidateUserParams, type ViewFieldPermissionValue, type ViewOperationPermission, type ViewPermissionSummary, createBrowserPageBridge, createBrowserPageContext, createBuiltinRouteRequest, createPageSdk, createReactPage, fetchBrowserRuntimeBootstrap, loadCustomPageModule, loadRuntimeScriptModules, mountBrowserPageRuntime, mountCustomPageRuntime, resolveBrowserRuntimeRoute, resolveRuntimeAssets, useCurrentUser, useDataSource, useFormViewPermissions, useMessage, useModal, useNavigation, usePageContext, usePageProps, usePageRoute, usePageSdk };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import React__default, { Dispatch, SetStateAction } from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { _ as FormSchema, X as FormRuntimeApi, Y as FormRuntimeApiConfig } from '../types-U26h_FIh.js';
|
|
2
4
|
|
|
3
5
|
type PageQueryValue = string | string[];
|
|
4
6
|
type PageHttpMethod = "get" | "post" | "put" | "delete" | "patch";
|
|
@@ -58,6 +60,7 @@ interface PageRouteInfo {
|
|
|
58
60
|
interface PageDepartmentInfo {
|
|
59
61
|
id?: string;
|
|
60
62
|
name?: string;
|
|
63
|
+
externalId?: string | null;
|
|
61
64
|
}
|
|
62
65
|
interface PageDepartmentRecord extends PageDepartmentInfo {
|
|
63
66
|
id: string;
|
|
@@ -93,6 +96,8 @@ interface PageUserInfo {
|
|
|
93
96
|
email?: string | null;
|
|
94
97
|
avatar?: string | null;
|
|
95
98
|
departments?: PageDepartmentInfo[];
|
|
99
|
+
affiliatedDepartmentId?: string | null;
|
|
100
|
+
affiliatedDepartment?: PageDepartmentInfo | null;
|
|
96
101
|
tenantId: string;
|
|
97
102
|
isGuest?: boolean;
|
|
98
103
|
userType?: PageUserType;
|
|
@@ -926,6 +931,7 @@ interface CurrentUserState {
|
|
|
926
931
|
isInternalUser: boolean;
|
|
927
932
|
displayName: string;
|
|
928
933
|
primaryDepartment: NonNullable<PageUserInfo["departments"]>[number] | null;
|
|
934
|
+
affiliatedDepartment: PageUserInfo["affiliatedDepartment"] | null;
|
|
929
935
|
}
|
|
930
936
|
declare const useCurrentUser: () => CurrentUserState;
|
|
931
937
|
|
|
@@ -977,4 +983,162 @@ declare const usePageRoute: () => PageRouteInfo;
|
|
|
977
983
|
|
|
978
984
|
declare const usePageSdk: () => PageSdk;
|
|
979
985
|
|
|
980
|
-
|
|
986
|
+
type RuntimeCssIsolation = "none" | "namespace" | "shadow";
|
|
987
|
+
interface RuntimeHostBootstrap {
|
|
988
|
+
app: PageContext["app"];
|
|
989
|
+
page: PageInfo;
|
|
990
|
+
user: PageContext["user"];
|
|
991
|
+
asset?: {
|
|
992
|
+
protocolVersion?: string;
|
|
993
|
+
version?: string;
|
|
994
|
+
buildId?: string;
|
|
995
|
+
entryUrl?: string;
|
|
996
|
+
cssAssets?: string[];
|
|
997
|
+
jsAssets?: string[];
|
|
998
|
+
manifestUrl?: string;
|
|
999
|
+
[key: string]: unknown;
|
|
1000
|
+
};
|
|
1001
|
+
runtimeAssets?: {
|
|
1002
|
+
entryUrl?: string;
|
|
1003
|
+
cssUrls?: string[];
|
|
1004
|
+
jsUrls?: string[];
|
|
1005
|
+
cssIsolation?: RuntimeCssIsolation | string;
|
|
1006
|
+
[key: string]: unknown;
|
|
1007
|
+
};
|
|
1008
|
+
env?: Record<string, unknown>;
|
|
1009
|
+
permissions?: Partial<PageContext["permissions"]>;
|
|
1010
|
+
sdk?: PageContext["sdk"];
|
|
1011
|
+
}
|
|
1012
|
+
type BrowserRuntimeRouteMode = "custom-page" | "builtin-route" | "legacy-fallback" | "not-found";
|
|
1013
|
+
type BrowserRuntimeRouteKind = "custom-page" | "legacy-workbench" | "work-center" | "form-submit" | "process-submit" | "form-preview" | "form-detail" | "process-detail" | "data-manage-list" | "file-preview" | "unknown";
|
|
1014
|
+
interface BrowserRuntimeRouteResolution {
|
|
1015
|
+
appType: string;
|
|
1016
|
+
path: string;
|
|
1017
|
+
search: string;
|
|
1018
|
+
kind: BrowserRuntimeRouteKind;
|
|
1019
|
+
mode: BrowserRuntimeRouteMode;
|
|
1020
|
+
params: Record<string, string>;
|
|
1021
|
+
query: Record<string, string | string[]>;
|
|
1022
|
+
runtime: Record<string, unknown>;
|
|
1023
|
+
fallback?: {
|
|
1024
|
+
legacyRoute: boolean;
|
|
1025
|
+
reason: string;
|
|
1026
|
+
};
|
|
1027
|
+
message?: string;
|
|
1028
|
+
}
|
|
1029
|
+
interface BrowserRuntimeHostOptions {
|
|
1030
|
+
servicePrefix?: string;
|
|
1031
|
+
fetchImpl?: typeof fetch;
|
|
1032
|
+
message?: Partial<PageContext["ui"]["message"]>;
|
|
1033
|
+
modal?: Partial<PageContext["ui"]["modal"]>;
|
|
1034
|
+
navigation?: Partial<PageContext["navigation"]>;
|
|
1035
|
+
route?: Partial<PageContext["route"]>;
|
|
1036
|
+
}
|
|
1037
|
+
interface BrowserRuntimeBootstrapOptions {
|
|
1038
|
+
appType: string;
|
|
1039
|
+
pageKey: string;
|
|
1040
|
+
servicePrefix?: string;
|
|
1041
|
+
bootstrapPath?: string;
|
|
1042
|
+
fetchImpl?: typeof fetch;
|
|
1043
|
+
}
|
|
1044
|
+
interface BrowserRuntimeRouteResolveOptions {
|
|
1045
|
+
appType: string;
|
|
1046
|
+
path?: string;
|
|
1047
|
+
search?: string;
|
|
1048
|
+
servicePrefix?: string;
|
|
1049
|
+
resolvePath?: string;
|
|
1050
|
+
fetchImpl?: typeof fetch;
|
|
1051
|
+
}
|
|
1052
|
+
interface LoadedRuntimeAssets {
|
|
1053
|
+
entryUrl: string;
|
|
1054
|
+
cssUrls: string[];
|
|
1055
|
+
jsUrls: string[];
|
|
1056
|
+
cssIsolation: RuntimeCssIsolation;
|
|
1057
|
+
}
|
|
1058
|
+
interface CustomPageModule {
|
|
1059
|
+
mount?: (el: HTMLElement, context: PageContext) => void | Promise<void>;
|
|
1060
|
+
update?: (el: HTMLElement, nextContext: PageContext, prevContext?: PageContext) => void | Promise<void>;
|
|
1061
|
+
unmount?: (el?: HTMLElement, context?: PageContext) => void | Promise<void>;
|
|
1062
|
+
default?: CustomPageModule;
|
|
1063
|
+
}
|
|
1064
|
+
interface RuntimeMountOptions {
|
|
1065
|
+
container: HTMLElement;
|
|
1066
|
+
module: CustomPageModule;
|
|
1067
|
+
context: PageContext;
|
|
1068
|
+
assets?: Partial<LoadedRuntimeAssets>;
|
|
1069
|
+
}
|
|
1070
|
+
interface BrowserRuntimeMountOptions extends BrowserRuntimeHostOptions {
|
|
1071
|
+
container: HTMLElement;
|
|
1072
|
+
appType: string;
|
|
1073
|
+
pageKey: string;
|
|
1074
|
+
bootstrapPath?: string;
|
|
1075
|
+
moduleLoader?: (url: string) => Promise<unknown>;
|
|
1076
|
+
}
|
|
1077
|
+
interface BrowserRuntimeMountResult {
|
|
1078
|
+
bootstrap: RuntimeHostBootstrap;
|
|
1079
|
+
assets: LoadedRuntimeAssets;
|
|
1080
|
+
context: PageContext;
|
|
1081
|
+
module: CustomPageModule;
|
|
1082
|
+
cleanup: () => Promise<void>;
|
|
1083
|
+
}
|
|
1084
|
+
declare const createBrowserPageBridge: (options?: BrowserRuntimeHostOptions) => PageBridgeApi;
|
|
1085
|
+
declare const createBrowserPageContext: (bootstrap: RuntimeHostBootstrap, options?: BrowserRuntimeHostOptions) => PageContext;
|
|
1086
|
+
declare const resolveRuntimeAssets: (bootstrap: RuntimeHostBootstrap, fetchImpl?: typeof fetch) => Promise<LoadedRuntimeAssets>;
|
|
1087
|
+
declare const fetchBrowserRuntimeBootstrap: ({ appType, bootstrapPath, fetchImpl, pageKey, servicePrefix, }: BrowserRuntimeBootstrapOptions) => Promise<RuntimeHostBootstrap>;
|
|
1088
|
+
declare const resolveBrowserRuntimeRoute: ({ appType, fetchImpl, path, resolvePath, search, servicePrefix, }: BrowserRuntimeRouteResolveOptions) => Promise<BrowserRuntimeRouteResolution>;
|
|
1089
|
+
declare const loadRuntimeScriptModules: (jsUrls?: string[], moduleLoader?: (url: string) => Promise<unknown>) => Promise<void>;
|
|
1090
|
+
declare const loadCustomPageModule: (entryUrl: string, moduleLoader?: (url: string) => Promise<unknown>, jsUrls?: string[]) => Promise<CustomPageModule>;
|
|
1091
|
+
declare const mountCustomPageRuntime: ({ assets, container, context, module, }: RuntimeMountOptions) => Promise<() => Promise<void>>;
|
|
1092
|
+
declare const mountBrowserPageRuntime: (options: BrowserRuntimeMountOptions) => Promise<BrowserRuntimeMountResult>;
|
|
1093
|
+
|
|
1094
|
+
interface BuiltinRouteSurfaceConfig {
|
|
1095
|
+
title?: string;
|
|
1096
|
+
formTitle?: string;
|
|
1097
|
+
formType?: string;
|
|
1098
|
+
enableDraft?: boolean;
|
|
1099
|
+
enableProcessPreview?: boolean;
|
|
1100
|
+
enableEdit?: boolean;
|
|
1101
|
+
enableDelete?: boolean;
|
|
1102
|
+
enableChangeRecords?: boolean;
|
|
1103
|
+
submitSuccessMode?: "redirect" | "continue" | "stay";
|
|
1104
|
+
readonly?: boolean;
|
|
1105
|
+
fullHeight?: boolean;
|
|
1106
|
+
configScope?: "global" | "personal";
|
|
1107
|
+
forcedConfig?: Record<string, any>;
|
|
1108
|
+
showForcedConfig?: boolean;
|
|
1109
|
+
[key: string]: any;
|
|
1110
|
+
}
|
|
1111
|
+
interface BuiltinRouteOverrideComponentProps {
|
|
1112
|
+
route: BrowserRuntimeRouteResolution;
|
|
1113
|
+
kind: BrowserRuntimeRouteKind;
|
|
1114
|
+
appType: string;
|
|
1115
|
+
formUuid?: string;
|
|
1116
|
+
formInstId?: string;
|
|
1117
|
+
formInstanceId?: string;
|
|
1118
|
+
query: BrowserRuntimeRouteResolution["query"];
|
|
1119
|
+
schema?: FormSchema;
|
|
1120
|
+
api: FormRuntimeApi;
|
|
1121
|
+
servicePrefix: string;
|
|
1122
|
+
requestOverride: FormRuntimeApi["request"];
|
|
1123
|
+
config: BuiltinRouteSurfaceConfig;
|
|
1124
|
+
defaultNode: React__default.ReactNode;
|
|
1125
|
+
reload: () => void;
|
|
1126
|
+
}
|
|
1127
|
+
type BuiltinRouteOverrideComponent = React__default.ComponentType<BuiltinRouteOverrideComponentProps>;
|
|
1128
|
+
type BuiltinRouteOverrides = Partial<Record<BrowserRuntimeRouteKind, Record<string, BuiltinRouteOverrideComponent | undefined>>>;
|
|
1129
|
+
type BuiltinRouteConfigMap = Partial<Record<BrowserRuntimeRouteKind, Record<string, BuiltinRouteSurfaceConfig | undefined>>>;
|
|
1130
|
+
interface BuiltinRouteRendererProps {
|
|
1131
|
+
route: BrowserRuntimeRouteResolution | null;
|
|
1132
|
+
appType?: string;
|
|
1133
|
+
servicePrefix?: string;
|
|
1134
|
+
requestOverride?: FormRuntimeApi["request"] | FormRuntimeApiConfig;
|
|
1135
|
+
overrides?: BuiltinRouteOverrides;
|
|
1136
|
+
config?: BuiltinRouteConfigMap;
|
|
1137
|
+
fetchImpl?: typeof fetch;
|
|
1138
|
+
className?: string;
|
|
1139
|
+
style?: React__default.CSSProperties;
|
|
1140
|
+
}
|
|
1141
|
+
declare const createBuiltinRouteRequest: (servicePrefix?: string, fetchImpl?: typeof fetch) => FormRuntimeApi["request"];
|
|
1142
|
+
declare function BuiltinRouteRenderer({ route, appType: appTypeProp, className, config, fetchImpl, overrides, requestOverride, servicePrefix, style, }: BuiltinRouteRendererProps): react_jsx_runtime.JSX.Element | null;
|
|
1143
|
+
|
|
1144
|
+
export { type ApiPermissionListParams, type ApproveTaskParams, type AssignPermissionsParams, type AssignRolesParams, type AuthLogoutRedirectOptions, type BatchAddUsersToRoleParams, type BatchSendNotificationByTypeParams, 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 ChangeUserRoleParams, type ConnectorCallParams, type ConnectorInvokeParams, type ConnectorInvokeResult, type ConnectorRequestBodyType, type ConnectorResponseType, type CreateApiPermissionParams, type CreateFormPermissionGroupDto, type CreatePagePermissionGroupDto, type CreateRoleParams, type CreateUiPermissionParams, type CreateUserParams, type CurrentUserDepartmentParents, type CustomPageEntryConfig, type CustomPageEntryMode, type CustomPageModule, type DataManagementConfigParams, type DataManagementFilterState, type DataPermissionConditionDto, type DataPermissionDto, type DataPermissionRuleDto, type DataViewQueryParams, type DataViewQueryResult, type DataViewStatsParams, type FieldAccessLevel, type FieldAccessPolicyDto, type FieldAccessPolicyItemDto, type FieldPermissionDto, type FindNotificationConfigParams, type FormAdvancedSearchParams, type FormChangeRecordParams, type FormCreateParams, type FormExportParams, type FormGetDetailParams, type FormImportParams, type FormPermissionGroup, type FormRemoveParams, type FormSearchParams, type FormUpdateParams, type GetParentDepartmentsOptions, type GetProcessInstanceParams, type GetUserRolesParams, type ImportExportRecordDownloadParams, type ImportExportRecordQuery, type InstanceStatus, type LoadedRuntimeAssets, type NotificationChannel, type NotificationChannelConfig, type NotificationChannelsConfig, type NotificationConfigLevel, type NotificationMessageRecord, type NotificationTemplate, type NotificationTemplatePreview, type NotificationTypeConfig, type PageApiPermissionRecord, type PageApiResponse, type PageAppInfo, type PageBinaryResponse, type PageBridgeApi, type PageContext, type PageDataManagementConfig, type PageDataSourceDescriptor, type PageDepartmentInfo, type PageDepartmentRecord, type PageHttpMethod, type PageInfo, type PageListResult, type PageMessageApi, type PageModalApi, type PageNavigationApi, type PageOffsetListResult, type PagePermissionGroup, type PagePermissionInfo, PageProvider, type PageQueryValue, type PageRequestOptions, type PageRoleRecord, type PageRouteInfo, type PageScope, type PageSdk, type PageSdkError, type PageSdkMeta, type PageTransportDownloadPayload, type PageTransportRequestPayload, type PageUiPermissionRecord, type PageUiPermissionType, type PageUserInfo, type PageUserRecord, type PageUserType, type PreviewNotificationTemplateParams, type ProcessApproveAction, type QueryFormPermissionGroupDto, type QueryPagePermissionGroupDto, type RoleListParams, type RoleUsersParams, type RuntimeCssIsolation, type RuntimeHostBootstrap, type RuntimeMountOptions, type SaveDataManagementConfigParams, type SearchComponentName, type SearchExpression, type SearchFieldKey, type SearchGroup, type SearchLogic, type SearchOperator, type SearchRule, type SearchSortItem, type SearchSystemField, type SendNotificationByTypeParams, type SendNotificationResult, type SubFormRule, type SwitchAppRoleParams, type SwitchPlatformRoleParams, type TerminateProcessInstanceParams, type TriggerCallbackTaskParams, type UiPermissionListParams, type UpdateApiPermissionParams, type UpdateFormPermissionGroupDto, type UpdatePagePermissionGroupDto, type UpdateRoleParams, type UpdateUiPermissionParams, type UpdateUserParams, type UserListParams, type UserMenuPermissionsResponse, type ValidateUserParams, type ViewFieldPermissionValue, type ViewOperationPermission, type ViewPermissionSummary, createBrowserPageBridge, createBrowserPageContext, createBuiltinRouteRequest, createPageSdk, createReactPage, fetchBrowserRuntimeBootstrap, loadCustomPageModule, loadRuntimeScriptModules, mountBrowserPageRuntime, mountCustomPageRuntime, resolveBrowserRuntimeRoute, resolveRuntimeAssets, useCurrentUser, useDataSource, useFormViewPermissions, useMessage, useModal, useNavigation, usePageContext, usePageProps, usePageRoute, usePageSdk };
|