@byteluck-fe/runtime-engine 3.0.1 → 6.2.1-gdnz-beta.1

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.
Files changed (162) hide show
  1. package/dist/runtime-engine.js +69132 -15406
  2. package/dist/src/constant/controls/simple-search.d.ts +1 -0
  3. package/dist/src/constant/page/address.d.ts +1 -1
  4. package/dist/src/entry_desktop/components/EllipsisTooltip/EllipsisTooltip.d.ts +3 -3
  5. package/dist/src/entry_desktop/controls/rok-bar-chart/index.d.ts +3 -0
  6. package/dist/src/entry_desktop/controls/rok-barcode/index.d.ts +3 -0
  7. package/dist/src/entry_desktop/controls/rok-blank-container/index.d.ts +3 -0
  8. package/dist/src/entry_desktop/controls/rok-cascader/index.d.ts +3 -0
  9. package/dist/src/entry_desktop/controls/rok-collapse/index.d.ts +3 -0
  10. package/dist/src/entry_desktop/controls/rok-counter/index.d.ts +3 -0
  11. package/dist/src/entry_desktop/controls/rok-date-picker/hook.d.ts +0 -1
  12. package/dist/src/entry_desktop/controls/rok-grid-table/detailGridPaginationMount.d.ts +5 -0
  13. package/dist/src/entry_desktop/controls/rok-grid-table/detailPaginationSyncBus.d.ts +13 -0
  14. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useColumns.d.ts +25 -6
  15. package/dist/src/entry_desktop/controls/rok-iframe/index.d.ts +3 -0
  16. package/dist/src/entry_desktop/controls/rok-line-chart/index.d.ts +3 -0
  17. package/dist/src/entry_desktop/controls/rok-pie-chart/index.d.ts +3 -0
  18. package/dist/src/entry_desktop/controls/rok-qr-code/index.d.ts +3 -0
  19. package/dist/src/entry_desktop/controls/rok-slider/index.d.ts +3 -0
  20. package/dist/src/entry_desktop/controls/rok-switch/index.d.ts +3 -0
  21. package/dist/src/entry_desktop/controls/rok-tag/index.d.ts +3 -0
  22. package/dist/src/entry_desktop/hooks/layoutVar.d.ts +1 -1
  23. package/dist/src/entry_desktop/utils/openType.d.ts +3 -0
  24. package/dist/src/entry_desktop/views/list-application/hooks/useListApplication.d.ts +1 -1
  25. package/dist/src/entry_desktop/views/multiple-tabs-form/embeddedUrl.d.ts +2 -0
  26. package/dist/src/entry_mobile/controls/rok-bar-chart/index.d.ts +3 -0
  27. package/dist/src/entry_mobile/controls/rok-barcode/index.d.ts +3 -0
  28. package/dist/src/entry_mobile/controls/rok-blank-container/index.d.ts +3 -0
  29. package/dist/src/entry_mobile/controls/rok-cascader/index.d.ts +3 -0
  30. package/dist/src/entry_mobile/controls/rok-collapse/index.d.ts +3 -0
  31. package/dist/src/entry_mobile/controls/rok-counter/index.d.ts +3 -0
  32. package/dist/src/entry_mobile/controls/rok-grid-table/hooks/useRender.d.ts +2 -2
  33. package/dist/src/entry_mobile/controls/rok-iframe/index.d.ts +3 -0
  34. package/dist/src/entry_mobile/controls/rok-line-chart/index.d.ts +3 -0
  35. package/dist/src/entry_mobile/controls/rok-list-view/hook.d.ts +1 -1
  36. package/dist/src/entry_mobile/controls/rok-pie-chart/index.d.ts +3 -0
  37. package/dist/src/entry_mobile/controls/rok-qr-code/index.d.ts +3 -0
  38. package/dist/src/entry_mobile/controls/rok-slider/index.d.ts +3 -0
  39. package/dist/src/entry_mobile/controls/rok-switch/index.d.ts +3 -0
  40. package/dist/src/entry_mobile/controls/rok-tag/index.d.ts +3 -0
  41. package/dist/src/hooks/components/useLayoutChildren.d.ts +1 -1
  42. package/dist/src/hooks/components/useMenu.d.ts +1 -1
  43. package/dist/src/hooks/context/useInstanceSchemaChangeContext.d.ts +1 -4
  44. package/dist/src/hooks/controls/address/useAddress.d.ts +1 -1
  45. package/dist/src/hooks/controls/barcode/index.d.ts +1 -0
  46. package/dist/src/hooks/controls/barcode/useBarcode.d.ts +25 -0
  47. package/dist/src/hooks/controls/chart/chart-event-result.d.ts +4 -0
  48. package/dist/src/hooks/controls/chart/chart-event-result.test.d.mts +1 -0
  49. package/dist/src/hooks/controls/chart/chart-transform.d.ts +19 -0
  50. package/dist/src/hooks/controls/chart/index.d.ts +1 -0
  51. package/dist/src/hooks/controls/chart/useChart.d.ts +13 -0
  52. package/dist/src/hooks/controls/counter/index.d.ts +1 -0
  53. package/dist/src/hooks/controls/file/useUploading.d.ts +1 -1
  54. package/dist/src/hooks/controls/iframe/index.d.ts +1 -0
  55. package/dist/src/hooks/controls/iframe/useIframe.d.ts +15 -0
  56. package/dist/src/hooks/controls/index.d.ts +7 -0
  57. package/dist/src/hooks/controls/listView/useIframe.d.ts +3 -1
  58. package/dist/src/hooks/controls/listView/useListRows.d.ts +6 -1
  59. package/dist/src/hooks/controls/listView/useModel.d.ts +11 -2
  60. package/dist/src/hooks/controls/qrCode/index.d.ts +1 -0
  61. package/dist/src/hooks/controls/qrCode/useQrCode.d.ts +26 -0
  62. package/dist/src/hooks/controls/slider/index.d.ts +1 -0
  63. package/dist/src/hooks/controls/switch/index.d.ts +1 -0
  64. package/dist/src/hooks/controls/useRokFormEngineModal.d.ts +1 -0
  65. package/dist/src/hooks/form/useDisplay.d.ts +1 -1
  66. package/dist/src/plugins/axios.d.ts +19 -0
  67. package/dist/src/plugins/engine/ActionUtilsPlugin.d.ts +2 -3
  68. package/dist/src/plugins/engine/EventListenerPlugin/JsMethodHandler.test.d.mts +1 -0
  69. package/dist/src/plugins/engine/EventListenerPlugin/chart-change-source.test.d.mts +1 -0
  70. package/dist/src/plugins/engine/EventListenerPlugin/chartChangeResult.d.ts +9 -0
  71. package/dist/src/plugins/engine/EventListenerPlugin/chartChangeResult.test.d.mts +1 -0
  72. package/dist/src/plugins/engine/EventListenerPlugin/exceutor.d.ts +2 -1
  73. package/dist/src/plugins/engine/EventListenerPlugin/index.d.ts +2 -0
  74. package/dist/src/plugins/engine/EventListenerPlugin/type.d.ts +1 -1
  75. package/dist/src/plugins/globalState.d.ts +13 -0
  76. package/dist/src/plugins/utils/ActionHandle/ActionHandler.d.ts +1 -1
  77. package/dist/src/plugins/utils/ActionHandle/ConcreteHandler.d.ts +1 -1
  78. package/dist/src/plugins/utils/ActionHandle/ExecuteAction.d.ts +7 -0
  79. package/dist/src/services/baseAuto.d.ts +2 -0
  80. package/dist/src/services/services.auto.d.ts +36 -0
  81. package/dist/src/utils/controls/gridColumnRuntimeControl.d.ts +13 -0
  82. package/dist/src/utils/controls/index.d.ts +1 -0
  83. package/dist/src/utils/controls/masterDetailHeaders.d.ts +15 -0
  84. package/dist/src/utils/core/crossMessageProcessor.d.ts +10 -2
  85. package/dist/src/utils/model/operateCache.d.ts +1 -1
  86. package/dist/src/utils/tools/index.d.ts +1 -0
  87. package/dist/src/utils/tools/loadTinymce.d.ts +1 -0
  88. package/dist/src/utils/tools/routeParam.d.ts +3 -0
  89. package/package.json +1 -1
  90. package/dist/src/constant/controls/props/base/button.d.ts +0 -14
  91. package/dist/src/constant/controls/props/base/dashboard.d.ts +0 -9
  92. package/dist/src/constant/controls/props/base/divider.d.ts +0 -9
  93. package/dist/src/constant/controls/props/base/formSelectButton.d.ts +0 -9
  94. package/dist/src/constant/controls/props/base/invoiceCheckButton.d.ts +0 -9
  95. package/dist/src/constant/controls/props/base/link.d.ts +0 -9
  96. package/dist/src/constant/controls/props/base/listSelectButton.d.ts +0 -9
  97. package/dist/src/constant/controls/props/base/listViewSelect.d.ts +0 -12
  98. package/dist/src/constant/controls/props/base/referenceList.d.ts +0 -10
  99. package/dist/src/constant/controls/props/base/text.d.ts +0 -7
  100. package/dist/src/constant/controls/props/base/textOcrButton.d.ts +0 -8
  101. package/dist/src/constant/controls/props/base/title.d.ts +0 -8
  102. package/dist/src/constant/controls/props/column/approvalStatusColumn.d.ts +0 -12
  103. package/dist/src/constant/controls/props/column/arrayColumn.d.ts +0 -12
  104. package/dist/src/constant/controls/props/column/autoNumberColumn.d.ts +0 -10
  105. package/dist/src/constant/controls/props/column/customColumn.d.ts +0 -11
  106. package/dist/src/constant/controls/props/column/decimalColumn.d.ts +0 -11
  107. package/dist/src/constant/controls/props/column/departmentColumn.d.ts +0 -12
  108. package/dist/src/constant/controls/props/column/employeeColumn.d.ts +0 -12
  109. package/dist/src/constant/controls/props/column/fileColumn.d.ts +0 -12
  110. package/dist/src/constant/controls/props/column/imageColumn.d.ts +0 -12
  111. package/dist/src/constant/controls/props/column/locationColumn.d.ts +0 -10
  112. package/dist/src/constant/controls/props/column/peopleColumn.d.ts +0 -12
  113. package/dist/src/constant/controls/props/column/timestampColumn.d.ts +0 -10
  114. package/dist/src/constant/controls/props/defaultProps.d.ts +0 -24
  115. package/dist/src/constant/controls/props/form/address.d.ts +0 -8
  116. package/dist/src/constant/controls/props/form/amount.d.ts +0 -8
  117. package/dist/src/constant/controls/props/form/attachment.d.ts +0 -8
  118. package/dist/src/constant/controls/props/form/autoNumber.d.ts +0 -11
  119. package/dist/src/constant/controls/props/form/calc.d.ts +0 -8
  120. package/dist/src/constant/controls/props/form/checkbox.d.ts +0 -8
  121. package/dist/src/constant/controls/props/form/dataView.d.ts +0 -12
  122. package/dist/src/constant/controls/props/form/datePicker.d.ts +0 -8
  123. package/dist/src/constant/controls/props/form/dateRange.d.ts +0 -8
  124. package/dist/src/constant/controls/props/form/department.d.ts +0 -12
  125. package/dist/src/constant/controls/props/form/department2.d.ts +0 -11
  126. package/dist/src/constant/controls/props/form/electronicSignature.d.ts +0 -7
  127. package/dist/src/constant/controls/props/form/employee.d.ts +0 -11
  128. package/dist/src/constant/controls/props/form/employee2.d.ts +0 -12
  129. package/dist/src/constant/controls/props/form/image.d.ts +0 -7
  130. package/dist/src/constant/controls/props/form/input.d.ts +0 -11
  131. package/dist/src/constant/controls/props/form/number.d.ts +0 -8
  132. package/dist/src/constant/controls/props/form/organizationSelection.d.ts +0 -11
  133. package/dist/src/constant/controls/props/form/radio.d.ts +0 -8
  134. package/dist/src/constant/controls/props/form/richText.d.ts +0 -11
  135. package/dist/src/constant/controls/props/form/score.d.ts +0 -8
  136. package/dist/src/constant/controls/props/form/searchDateRange.d.ts +0 -8
  137. package/dist/src/constant/controls/props/form/searchInput.d.ts +0 -9
  138. package/dist/src/constant/controls/props/form/searchNumberRange.d.ts +0 -8
  139. package/dist/src/constant/controls/props/form/select.d.ts +0 -8
  140. package/dist/src/constant/controls/props/form/selectMultiple.d.ts +0 -11
  141. package/dist/src/constant/controls/props/form/selectRelation.d.ts +0 -8
  142. package/dist/src/constant/controls/props/form/textarea.d.ts +0 -8
  143. package/dist/src/constant/controls/props/form/tree.d.ts +0 -10
  144. package/dist/src/constant/controls/props/form/vueFormItem.d.ts +0 -8
  145. package/dist/src/constant/controls/props/form/vuePage.d.ts +0 -8
  146. package/dist/src/constant/controls/props/form/wps.d.ts +0 -7
  147. package/dist/src/constant/controls/props/layout/actionBar.d.ts +0 -11
  148. package/dist/src/constant/controls/props/layout/cardGroup.d.ts +0 -10
  149. package/dist/src/constant/controls/props/layout/col.d.ts +0 -10
  150. package/dist/src/constant/controls/props/layout/grid.d.ts +0 -10
  151. package/dist/src/constant/controls/props/layout/gridLayoutContainer.d.ts +0 -10
  152. package/dist/src/constant/controls/props/layout/gridLayoutWrap.d.ts +0 -10
  153. package/dist/src/constant/controls/props/layout/gridRow.d.ts +0 -11
  154. package/dist/src/constant/controls/props/layout/row.d.ts +0 -10
  155. package/dist/src/constant/controls/props/layout/simpleSearch.d.ts +0 -13
  156. package/dist/src/constant/controls/props/layout/step.d.ts +0 -7
  157. package/dist/src/constant/controls/props/layout/stepPane.d.ts +0 -7
  158. package/dist/src/constant/controls/props/layout/tab.d.ts +0 -7
  159. package/dist/src/constant/controls/props/list/subtable.d.ts +0 -11
  160. package/dist/src/constant/controls/props/renderEngine.d.ts +0 -63
  161. package/dist/src/entry_mobile/controls/rok-subtable/hooks/useSubtableList.d.ts +0 -120
  162. package/dist/src/hooks/controls/subtable/useSubtableInstanceSchemaChange.d.ts +0 -66
@@ -1,6 +1,5 @@
1
1
  import { Engine, Plugin } from '@byteluck-fe/model-driven-engine';
2
2
  import { ControlRuntimeInstance, ControlsKeys } from '@byteluck-fe/model-driven-core-all';
3
- import { FetchService } from '../../utils';
4
3
  import { RouteLocationRaw, NavigationFailure, RouteLocationNormalizedLoaded, RouteLocation } from 'vue-router';
5
4
 
6
5
  type ActionUtilType = {
@@ -32,7 +31,7 @@ export declare class ActionUtilsPlugin implements Plugin {
32
31
  getLocaleText(key: string, replaceObj?: any, defaultVal?: string): string;
33
32
  toast(message: string, type?: ToastOptions['type'], show?: ToastOptions['show']): void;
34
33
  confirm(title: string, content: any, options?: {}): Promise<unknown>;
35
- getHttp(path?: string): FetchService;
34
+ getHttp(path?: string): any;
36
35
  setGlobalLoading(isloading?: boolean, color?: string): void;
37
36
  getBasePath(): any;
38
37
  querySvc(param: {
@@ -40,7 +39,7 @@ export declare class ActionUtilsPlugin implements Plugin {
40
39
  svc_code: string;
41
40
  field: string;
42
41
  query: any;
43
- }): Promise<any>;
42
+ }): any;
44
43
  getDisplay(instance: ControlRuntimeInstance<ControlsKeys>, value?: string | string[]): Promise<any>;
45
44
  getCacheDisplay(instance: any, value?: string | string[]): Promise<any>;
46
45
  batchSetDisplayCache({ dic_map, display_map, }: {
@@ -0,0 +1,9 @@
1
+ import { Result } from '../../utils/ActionHandle/ActionHandler';
2
+
3
+ type ChartRows = Record<string, any>[];
4
+ type ChartEventPayload = {
5
+ value: ChartRows;
6
+ };
7
+ export declare const getChartEventPayloadFromActionResult: (result?: Pick<Result, 'output'>) => ChartEventPayload[];
8
+ export declare const getChartEventPayloadFromActionResults: (results?: Array<Pick<Result, 'output'>>) => ChartEventPayload[];
9
+ export {};
@@ -1,5 +1,5 @@
1
1
  import { EventCaseHandlerPayload } from './type';
2
- import { ExecuteActionParams } from '../../utils/ActionHandle';
2
+ import { ExecuteActionParams, ExecuteActionResult } from '../../utils/ActionHandle';
3
3
 
4
4
  export declare function exceutor(payload: EventCaseHandlerPayload): Promise<{
5
5
  input: any;
@@ -7,3 +7,4 @@ export declare function exceutor(payload: EventCaseHandlerPayload): Promise<{
7
7
  error?: any;
8
8
  }>;
9
9
  export declare function callActions(payload: ExecuteActionParams): Promise<boolean>;
10
+ export declare function callActionsWithResult(payload: ExecuteActionParams): Promise<ExecuteActionResult>;
@@ -31,6 +31,7 @@ export declare class EventListenerPlugin implements Plugin {
31
31
  private setOpenPageRelationControlIds;
32
32
  private checkOpenPageListener;
33
33
  private listenGetOpenPageRelationControlIds;
34
+ private callChartChangeEvent;
34
35
  private callControlEvent;
35
36
  private checkToRunRefreshList;
36
37
  private resetValueEmptyOnChange;
@@ -43,6 +44,7 @@ export declare class EventListenerPlugin implements Plugin {
43
44
  */
44
45
  private changeEventRunningActive;
45
46
  private doCallActions;
47
+ private doCallActionsWithResult;
46
48
  private getHandlerAfterAnalysisCondition;
47
49
  private getValueFromListSelected;
48
50
  private getEventParamValues;
@@ -169,7 +169,7 @@ export type TriggerOtherControlEvent = {
169
169
  export type OpenPageEventType = {
170
170
  pageType: 'form' | 'list' | 'link';
171
171
  operateType: 'view';
172
- openType: 'tab' | 'current' | 'new' | 'dialog';
172
+ openType: 'tab' | 'current' | 'new' | 'dialog' | 'replace';
173
173
  options: {
174
174
  link: {
175
175
  openMode: 'newTab' | 'currentTab';
@@ -0,0 +1,13 @@
1
+ type QiankunProps = {
2
+ setGlobalState?: any;
3
+ setGlobalStateChange?: any;
4
+ };
5
+ declare class GlobalState {
6
+ isOK: boolean;
7
+ state: QiankunProps;
8
+ initGlobalState(props: QiankunProps): void;
9
+ setGlobalState(...args: any): void;
10
+ onGlobalStateChange(...args: any): void;
11
+ }
12
+ export declare const globalState: GlobalState;
13
+ export {};
@@ -9,7 +9,7 @@ export type ActionParams = {
9
9
  };
10
10
  export declare abstract class ActionHandler {
11
11
  abstract use(action: ActionHandler): ActionHandler;
12
- abstract handleAction(action: IBaitedaEventHandler): Promise<false | undefined>;
12
+ abstract handleAction(action: IBaitedaEventHandler): Promise<false | Result | undefined>;
13
13
  abstract apply({ engine, controlEventKey, options, action, }: ActionParams): void;
14
14
  abstract actionKey?: EventHandlerMethod;
15
15
  }
@@ -6,7 +6,7 @@ export declare class ConcreteHandler implements ActionHandler {
6
6
  private preResult;
7
7
  use(action: ActionHandler): ActionHandler;
8
8
  apply(params: ActionParams): void;
9
- handleAction(action: IBaitedaEventHandler): Promise<false | undefined>;
9
+ handleAction(action: IBaitedaEventHandler): Promise<false | Result | undefined>;
10
10
  getIsErrorContinueValue(action: IBaitedaEventHandler): any;
11
11
  canHandle(action: IBaitedaEventHandler): boolean;
12
12
  doHandle(action: IBaitedaEventHandler, preResult: Result): Promise<Result>;
@@ -1,5 +1,6 @@
1
1
  import { Engine, EventPayload } from '@byteluck-fe/model-driven-engine';
2
2
  import { IBaitedaEventHandler } from '../../engine/EventListenerPlugin/type';
3
+ import { Result } from './ActionHandler';
3
4
 
4
5
  export type ExecuteActionParams = {
5
6
  engine: Engine;
@@ -9,6 +10,11 @@ export type ExecuteActionParams = {
9
10
  };
10
11
  controlEventKey: string;
11
12
  };
13
+ export type ExecuteActionResult = {
14
+ isRunContinue: boolean;
15
+ result?: Result;
16
+ results: Result[];
17
+ };
12
18
  export declare class ExecuteAction {
13
19
  private _actions;
14
20
  private engine;
@@ -17,5 +23,6 @@ export declare class ExecuteAction {
17
23
  private _options;
18
24
  constructor(params: ExecuteActionParams);
19
25
  handleActions(): Promise<boolean>;
26
+ handleActionsWithResult(): Promise<ExecuteActionResult>;
20
27
  private getAction;
21
28
  }
@@ -24,6 +24,8 @@ export default class {
24
24
  getOrgList(parm: any): Promise<any>;
25
25
  personalizeConfig(): Promise<any>;
26
26
  personalizeSaveByKey(parm: any): Promise<any>;
27
+ listUserGuide(typeList: string[]): Promise<any>;
28
+ addUserGuide(typeList: string[]): Promise<any>;
27
29
  SwitchDeptEmployeePrivateV1POST(params: {
28
30
  query?: {
29
31
  deptId?: string;
@@ -1736,6 +1736,24 @@ export default class {
1736
1736
  SimplifyListPagePrivateV1ApiAppsPOST(params: {
1737
1737
  payload?: typing.FormDataPageRequest$List$PageListDataQuery$$_2;
1738
1738
  }, options?: any): Promise<typing.PlainResult$SimplifyRowsResp$>;
1739
+ /**
1740
+ * 主子表展开:嵌套列表接口(子表数据)
1741
+ * @method
1742
+ * @name #NestSimplifyListPagePrivateV1ApiAppsPOST
1743
+ * @param payload app_id, data_uid, form_key, data_code, page
1744
+ */
1745
+ NestSimplifyListPagePrivateV1ApiAppsPOST(params: {
1746
+ payload?: {
1747
+ app_id?: string;
1748
+ data_uid?: string;
1749
+ form_key?: string;
1750
+ data_code?: string;
1751
+ page?: {
1752
+ page_index?: number;
1753
+ page_size?: number;
1754
+ };
1755
+ };
1756
+ }, options?: any): Promise<typing.PlainResult$SimplifyRowsResp$>;
1739
1757
  /**
1740
1758
  * 传入:查询条件(JSON格式)
1741
1759
  * @method
@@ -2094,6 +2112,24 @@ export default class {
2094
2112
  GetInfoByEmpIdUserPrivateV1ApiAppsPOST(params: {
2095
2113
  payload?: typing.EmployeeQuery;
2096
2114
  }, options?: any): Promise<typing.PlainResult$Map$>;
2115
+ /**
2116
+ * 添加已读记录
2117
+ * @method
2118
+ * @name #AddGuideUserPrivateV1ApiAppsPOST
2119
+ * @param {} guideReq - guideReq
2120
+ */
2121
+ AddGuideUserPrivateV1ApiAppsPOST(params: {
2122
+ payload?: typing.UserGuideReq;
2123
+ }, options?: any): Promise<typing.PlainResult$boolean$>;
2124
+ /**
2125
+ * 已读列表
2126
+ * @method
2127
+ * @name #ListGuideUserPrivateV1ApiAppsPOST
2128
+ * @param {} guideReq - guideReq
2129
+ */
2130
+ ListGuideUserPrivateV1ApiAppsPOST(params: {
2131
+ payload?: typing.UserGuideReq;
2132
+ }, options?: any): Promise<typing.ListResult$UserGuideDto$>;
2097
2133
  /**
2098
2134
  * 获取人员组件中,搜索列表
2099
2135
  * @method
@@ -0,0 +1,13 @@
1
+ import { ColDef } from '@ag-grid-community/core';
2
+ import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
3
+
4
+ export declare function attachGridColumnControlInstance(colDef: ColDef, controlInstance: ControlRuntimeInstance<any> | undefined): ColDef<any, any>;
5
+ export declare function getGridColumnControlInstance(colDef: ColDef | undefined): any;
6
+ export declare function resolveGridColumnControlInstance(params: {
7
+ colDef?: ColDef;
8
+ context?: Record<string, unknown> & {
9
+ engineId?: string;
10
+ };
11
+ } | undefined, engine?: {
12
+ getInstance?: (id: string) => ControlRuntimeInstance<any>;
13
+ }): ControlRuntimeInstance<any> | Record<string, unknown> | undefined;
@@ -14,3 +14,4 @@ export * from './subtable';
14
14
  export * from './formCopy';
15
15
  export * from './scrollIntoDomView';
16
16
  export * from './getListInstance';
17
+ export * from './masterDetailHeaders';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * list-view 主子表:子表列定义在 props.master_detail.headers(或 header),
3
+ * 主表列在 grid-table 的 props.headers(个别文档写作 columns)。
4
+ * 与 applyRender schema 一致,同时兼容 snake_case / camelCase。
5
+ */
6
+ export declare function pickMasterDetailHeaderList(masterDetail: unknown): unknown[] | undefined;
7
+ /** 在列头树(含分组 children)中按控件 id 查找 */
8
+ export declare function findHeaderByControlIdInTree(headers: unknown[] | undefined, controlId: string | undefined): Record<string, unknown> | undefined;
9
+ /**
10
+ * 从 AG Grid context 解析 list-view 下 master_detail 中的列 schema。
11
+ * context.exposeParams.listViewInstanceProps | list_view_instance_props
12
+ */
13
+ export declare function findMasterDetailHeaderByContext(context: Record<string, unknown> | undefined, controlId: string | undefined): Record<string, unknown> | undefined;
14
+ /** 主表 grid-table:headers 或 columns */
15
+ export declare function findMainGridHeaderByControlId(gridTableProps: Record<string, unknown> | undefined, controlId: string | undefined): Record<string, unknown> | undefined;
@@ -1,10 +1,18 @@
1
1
  type CrossDomainMessageType = {
2
- status: string;
2
+ status?: string;
3
3
  action: string;
4
4
  system: string;
5
- options: any;
5
+ options?: Record<string, unknown>;
6
6
  };
7
+ export declare function getSameOriginNavigationUrl(url: unknown): string | undefined;
7
8
  export declare function tryRefreshOpener(message: CrossDomainMessageType): void;
9
+ export declare function isTrustedMessageSource(source: MessageEventSource | null, action: string, trustedWindows: {
10
+ current: Window;
11
+ parent: Window;
12
+ opener: Window | null;
13
+ frames: Window[];
14
+ }): boolean;
15
+ export declare function parseCrossDomainMessage(value: unknown): CrossDomainMessageType | undefined;
8
16
  export declare function corssDomainMessageProcessor(route: any, store: any): void;
9
17
  export declare function removeAppLauncherTab(message: any): void;
10
18
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ControlRuntimeInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
2
 
3
- export declare const useOperateCache: (instance: ControlRuntimeInstance<CONTROL_TYPE.DEPARTMENT> | ControlRuntimeInstance<CONTROL_TYPE.DEPARTMENT2> | ControlRuntimeInstance<CONTROL_TYPE.EMPLOYEE> | ControlRuntimeInstance<CONTROL_TYPE.EMPLOYEE2> | ControlRuntimeInstance<CONTROL_TYPE.SELECT> | ControlRuntimeInstance<CONTROL_TYPE.SELECT_MULTIPLE> | ControlRuntimeInstance<CONTROL_TYPE.SELECT_RELATION> | ControlRuntimeInstance<CONTROL_TYPE.RADIO> | ControlRuntimeInstance<CONTROL_TYPE.AMOUNT> | ControlRuntimeInstance<CONTROL_TYPE.TREE> | ControlRuntimeInstance<CONTROL_TYPE.CHECKBOX> | ControlRuntimeInstance<CONTROL_TYPE.IMAGE> | ControlRuntimeInstance<CONTROL_TYPE.ATTACHMENT>) => {
3
+ export declare const useOperateCache: (instance: ControlRuntimeInstance<CONTROL_TYPE.DEPARTMENT> | ControlRuntimeInstance<CONTROL_TYPE.DEPARTMENT2> | ControlRuntimeInstance<CONTROL_TYPE.EMPLOYEE> | ControlRuntimeInstance<CONTROL_TYPE.EMPLOYEE2> | ControlRuntimeInstance<CONTROL_TYPE.SELECT> | ControlRuntimeInstance<CONTROL_TYPE.SELECT_MULTIPLE> | ControlRuntimeInstance<CONTROL_TYPE.TAG> | ControlRuntimeInstance<CONTROL_TYPE.SELECT_RELATION> | ControlRuntimeInstance<CONTROL_TYPE.RADIO> | ControlRuntimeInstance<CONTROL_TYPE.AMOUNT> | ControlRuntimeInstance<CONTROL_TYPE.TREE> | ControlRuntimeInstance<CONTROL_TYPE.CHECKBOX> | ControlRuntimeInstance<CONTROL_TYPE.IMAGE> | ControlRuntimeInstance<CONTROL_TYPE.ATTACHMENT>) => {
4
4
  updateStorageCache: (value: string[], data: any[] | unknown) => void;
5
5
  getCacheDisplayValue: (value?: unknown[] | string[] | string) => any[];
6
6
  updateCacheDisplay: (data: any, valueCode?: string, displayCode?: string) => void;
@@ -22,3 +22,4 @@ export * from './displayValue';
22
22
  export * from './replacePrefixPath';
23
23
  export * from './getPageDefaultProps';
24
24
  export * from './setAdaptiveTextColor';
25
+ export * from './routeParam';
@@ -0,0 +1 @@
1
+ export declare function loadTinymce(): Promise<any>;
@@ -0,0 +1,3 @@
1
+ type RouteScalar<T> = T extends readonly (infer U)[] ? U | undefined : T;
2
+ export declare function getRouteScalar<T>(value: T): RouteScalar<T>;
3
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@byteluck-fe/runtime-engine",
3
- "version": "3.0.1",
3
+ "version": "6.2.1-gdnz-beta.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./dist/runtime-engine.js",
@@ -1,14 +0,0 @@
1
- import { ButtonPropertyInterface, ControlRuntimeInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface ButtonPropsInterface extends ButtonPropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.BUTTON>;
6
- disabled?: boolean;
7
- onClick?: (e: any) => void;
8
- preventEngineEvent?: boolean;
9
- loading?: boolean;
10
- noClickEvent?: boolean;
11
- }
12
- export declare const ButtonPropsDefaultValue: {
13
- name: string;
14
- };
@@ -1,9 +0,0 @@
1
- import { ControlRuntimeInstance, DashboardPropertyInterface, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface DashboardPropsInterface extends DashboardPropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.DASHBOARD>;
6
- }
7
- export declare const DashboardPropsDefaultValue: {
8
- name: string;
9
- };
@@ -1,9 +0,0 @@
1
- import { ControlRuntimeInstance, DividerPropertyInterface, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface DividerPropsInterface extends DividerPropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.DIVIDER>;
6
- }
7
- export declare const DividerPropsDefaultValue: {
8
- name: string;
9
- };
@@ -1,9 +0,0 @@
1
- import { ControlRuntimeInstance, FormSelectButtonPropertyInterface, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface FormSelectButtonPropsInterface extends FormSelectButtonPropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.FORM_SELECT_BUTTON>;
6
- }
7
- export declare const FormSelectButtonPropsDefaultValue: {
8
- name: string;
9
- };
@@ -1,9 +0,0 @@
1
- import { ControlRuntimeInstance, InvoiceCheckButtonPropertyInterface, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface InvoiceCheckButtonPropsInterface extends InvoiceCheckButtonPropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.INVOICE_CHECK_BUTTON>;
6
- disabled?: boolean;
7
- svcCode?: string;
8
- }
9
- export declare const InvoiceCheckButtonPropsDefaultValue: {};
@@ -1,9 +0,0 @@
1
- import { ControlRuntimeInstance, LinkPropertyInterface, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface LinkPropsInterface extends LinkPropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.LINK>;
6
- }
7
- export declare const LinkPropsDefaultValue: {
8
- name: string;
9
- };
@@ -1,9 +0,0 @@
1
- import { ControlRuntimeInstance, ListSelectButtonPropertyInterface, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface ListSelectButtonPropsInterface extends ListSelectButtonPropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.LIST_SELECT_BUTTON>;
6
- }
7
- export declare const ListSelectButtonPropsDefaultValue: {
8
- name: string;
9
- };
@@ -1,12 +0,0 @@
1
- import { ControlRuntimeInstance, ListViewSelectPropertyInterface, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface ListViewSelectPropsInterface extends ListViewSelectPropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.LIST_VIEW_SELECT>;
6
- isHaveShadow?: boolean;
7
- targetRef?: HTMLElement;
8
- clearSelectedRows?: boolean;
9
- tableId?: string;
10
- device?: string;
11
- }
12
- export declare const ListViewSelectPropsDefaultValue: {};
@@ -1,10 +0,0 @@
1
- import { ControlRuntimeInstance, ReferenceListPropertyInterface, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface ReferenceListPropsInterface extends ReferenceListPropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.REFERENCE_LIST>;
6
- value?: string[];
7
- }
8
- export declare const ReferenceListPropsDefaultValue: {
9
- name: string;
10
- };
@@ -1,7 +0,0 @@
1
- import { ControlRuntimeInstance, TextPropertyInterface, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface TextPropsInterface extends TextPropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.TEXT>;
6
- }
7
- export declare const TextPropsDefaultValue: {};
@@ -1,8 +0,0 @@
1
- import { ControlRuntimeInstance, TextOcrButtonPropertyInterface, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface TextOcrButtonPropsInterface extends TextOcrButtonPropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.TEXT_OCR_BUTTON>;
6
- disabled?: boolean;
7
- }
8
- export declare const TextOcrButtonPropsDefaultValue: {};
@@ -1,8 +0,0 @@
1
- import { ControlRuntimeInstance, TitlePropertyInterface, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { BasePropsInterface } from '../defaultProps';
3
-
4
- export interface TitlePropsInterface extends TitlePropertyInterface, BasePropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.TITLE>;
6
- value: object;
7
- }
8
- export declare const TitlePropsDefaultValue: {};
@@ -1,12 +0,0 @@
1
- import { ControlPropertyInstance, ControlRuntimeInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
- import { ShallowRef } from 'vue';
4
-
5
- export interface ApprovalStatusColumnPropsInterface extends ColumnPropsInterface {
6
- instance: ControlRuntimeInstance<CONTROL_TYPE.Approval_Status_Column>;
7
- instanceProps: ShallowRef<ControlPropertyInstance<CONTROL_TYPE.Approval_Status_Column>>;
8
- }
9
- export declare const ApprovalStatusColumnPropsDefaultValue: {
10
- rowRecord: () => void;
11
- value: () => never[];
12
- };
@@ -1,12 +0,0 @@
1
- import { ControlRuntimeInstance, ControlPropertyInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
- import { ShallowRef } from 'vue';
4
-
5
- export interface ArrayColumnPropsInterface extends ColumnPropsInterface {
6
- instance: ControlRuntimeInstance<CONTROL_TYPE.ARRAY_COLUMN>;
7
- instanceProps: ShallowRef<ControlPropertyInstance<CONTROL_TYPE.ARRAY_COLUMN>>;
8
- }
9
- export declare const ArrayColumnPropsDefaultValue: {
10
- rowRecord: () => void;
11
- value: () => never[];
12
- };
@@ -1,10 +0,0 @@
1
- import { ControlRuntimeInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
-
4
- export interface AutoNumberColumnPropsInterface extends ColumnPropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.AUTO_NUMBER_COLUMN>;
6
- }
7
- export declare const AutoNumberColumnPropsDefaultValue: {
8
- rowRecord: () => void;
9
- value: () => never[];
10
- };
@@ -1,11 +0,0 @@
1
- import { ControlRuntimeInstance, ControlPropertyInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
- import { ShallowRef } from 'vue';
4
-
5
- export interface CustomColumnPropsInterface extends ColumnPropsInterface {
6
- instance: ControlRuntimeInstance<CONTROL_TYPE.CUSTOM_COLUMN>;
7
- instanceProps: ShallowRef<ControlPropertyInstance<CONTROL_TYPE.CUSTOM_COLUMN>>;
8
- }
9
- export declare const CustomColumnPropsDefaultValue: {
10
- rowRecord: () => void;
11
- };
@@ -1,11 +0,0 @@
1
- import { ControlRuntimeInstance, ControlPropertyInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
- import { ShallowRef } from 'vue';
4
-
5
- export interface DecimalColumnPropsInterface extends ColumnPropsInterface {
6
- instance: ControlRuntimeInstance<CONTROL_TYPE.DECIMAL_COLUMN>;
7
- instanceProps: ShallowRef<ControlPropertyInstance<CONTROL_TYPE.DECIMAL_COLUMN>>;
8
- }
9
- export declare const DecimalColumnPropsDefaultValue: {
10
- rowRecord: () => void;
11
- };
@@ -1,12 +0,0 @@
1
- import { ControlRuntimeInstance, ControlPropertyInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
- import { ShallowRef } from 'vue';
4
-
5
- export interface DepartmentColumnPropsInterface extends ColumnPropsInterface {
6
- instance: ControlRuntimeInstance<CONTROL_TYPE.DEPARTMENT_COLUMN>;
7
- instanceProps: ShallowRef<ControlPropertyInstance<CONTROL_TYPE.DEPARTMENT_COLUMN>>;
8
- }
9
- export declare const DepartmentColumnPropsDefaultValue: {
10
- rowRecord: () => void;
11
- value: () => never[];
12
- };
@@ -1,12 +0,0 @@
1
- import { ControlRuntimeInstance, ControlPropertyInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
- import { ShallowRef } from 'vue';
4
-
5
- export interface EmployeeColumnPropsInterface extends ColumnPropsInterface {
6
- instance: ControlRuntimeInstance<CONTROL_TYPE.EMPLOYEE_COLUMN>;
7
- instanceProps: ShallowRef<ControlPropertyInstance<CONTROL_TYPE.EMPLOYEE_COLUMN>>;
8
- }
9
- export declare const EmployeeColumnPropsDefaultValue: {
10
- rowRecord: () => void;
11
- value: () => never[];
12
- };
@@ -1,12 +0,0 @@
1
- import { ControlRuntimeInstance, ControlPropertyInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
- import { ShallowRef } from 'vue';
4
-
5
- export interface FileColumnPropsInterface extends ColumnPropsInterface {
6
- instance: ControlRuntimeInstance<CONTROL_TYPE.FILE_COLUMN>;
7
- instanceProps: ShallowRef<ControlPropertyInstance<CONTROL_TYPE.FILE_COLUMN>>;
8
- }
9
- export declare const FileColumnPropsDefaultValue: {
10
- rowRecord: () => void;
11
- value: () => never[];
12
- };
@@ -1,12 +0,0 @@
1
- import { ControlRuntimeInstance, ControlPropertyInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
- import { ShallowRef } from 'vue';
4
-
5
- export interface ImageColumnPropsInterface extends ColumnPropsInterface {
6
- instance: ControlRuntimeInstance<CONTROL_TYPE.IMAGE_COLUMN>;
7
- instanceProps: ShallowRef<ControlPropertyInstance<CONTROL_TYPE.IMAGE_COLUMN>>;
8
- }
9
- export declare const ImageColumnPropsDefaultValue: {
10
- rowRecord: () => void;
11
- value: () => never[];
12
- };
@@ -1,10 +0,0 @@
1
- import { ControlRuntimeInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
-
4
- export interface LocationColumnPropsInterface extends ColumnPropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.LOCATION_COLUMN>;
6
- }
7
- export declare const LocationColumnPropsDefaultValue: {
8
- rowRecord: () => void;
9
- value: () => never[];
10
- };
@@ -1,12 +0,0 @@
1
- import { ControlRuntimeInstance, ControlPropertyInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
- import { ShallowRef } from 'vue';
4
-
5
- export interface PeopleColumnPropsInterface extends ColumnPropsInterface {
6
- instance: ControlRuntimeInstance<CONTROL_TYPE.PEOPLE_COLUMN>;
7
- instanceProps: ShallowRef<ControlPropertyInstance<CONTROL_TYPE.PEOPLE_COLUMN>>;
8
- }
9
- export declare const PeopleColumnPropsDefaultValue: {
10
- rowRecord: () => void;
11
- value: () => never[];
12
- };
@@ -1,10 +0,0 @@
1
- import { ControlRuntimeInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { ColumnPropsInterface } from '../defaultProps';
3
-
4
- export interface TimestampColumnPropsInterface extends ColumnPropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.TIMESTAMP_COLUMN>;
6
- }
7
- export declare const TimestampColumnPropsDefaultValue: {
8
- rowRecord: () => void;
9
- value: () => never[];
10
- };
@@ -1,24 +0,0 @@
1
- import { ControlRuntimeInstance, ControlsKeys } from '@byteluck-fe/model-driven-core-all';
2
-
3
- export interface DefaultPropsInterface<T extends ControlsKeys = ControlsKeys> {
4
- instance: ControlRuntimeInstance<T>;
5
- keepFormItem?: boolean;
6
- rowIndex?: number;
7
- name?: string;
8
- isStatic?: boolean;
9
- }
10
- export interface LayoutPropsInterface extends DefaultPropsInterface {
11
- }
12
- export interface FormPropsInterface extends DefaultPropsInterface {
13
- value: any;
14
- }
15
- export interface BasePropsInterface extends DefaultPropsInterface {
16
- }
17
- export interface ListPropsInterface extends DefaultPropsInterface {
18
- }
19
- export interface ColumnPropsInterface extends DefaultPropsInterface {
20
- value: any;
21
- rowRecord?: any;
22
- width?: number;
23
- instanceProps?: any;
24
- }
@@ -1,8 +0,0 @@
1
- import { AddressPropertyInterface, ControlRuntimeInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
- import { FormPropsInterface } from '../defaultProps';
3
-
4
- export interface AddressPropsInterface extends AddressPropertyInterface, FormPropsInterface {
5
- instance: ControlRuntimeInstance<CONTROL_TYPE.ADDRESS>;
6
- value: string[] | object[];
7
- }
8
- export declare const AddressPropsDefaultValue: {};