lyflowchart 1.0.115 → 1.0.133

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 (198) hide show
  1. package/dist/ActionsConfig-BuvSvRbv.js +395 -0
  2. package/dist/ActionsConfig-BuvSvRbv.js.map +1 -0
  3. package/dist/ApprovalEditorModal-suKPJ-vN.js +48 -0
  4. package/dist/ApprovalEditorModal-suKPJ-vN.js.map +1 -0
  5. package/dist/CancelModal-BUi3ieI8.js +61 -0
  6. package/dist/CancelModal-BUi3ieI8.js.map +1 -0
  7. package/dist/Cell_click_approve-Dr83RkI-.js +244 -0
  8. package/dist/Cell_click_approve-Dr83RkI-.js.map +1 -0
  9. package/dist/JsonTags-BbWLqghI.js +66 -0
  10. package/dist/JsonTags-BbWLqghI.js.map +1 -0
  11. package/dist/MyProcess-FWGEwQcv.js +26434 -0
  12. package/dist/MyProcess-FWGEwQcv.js.map +1 -0
  13. package/dist/MyProcess.vue.d.ts +991 -0
  14. package/dist/approval-BW2WjPxY.js +167 -0
  15. package/dist/approval-BW2WjPxY.js.map +1 -0
  16. package/dist/approval-BaVHder3.js +18 -0
  17. package/dist/approval-BaVHder3.js.map +1 -0
  18. package/dist/approvalHistory-B2gpQbFC.js +868 -0
  19. package/dist/approvalHistory-B2gpQbFC.js.map +1 -0
  20. package/dist/approvalHistoryViewModal-DgLpv2ot.js +114 -0
  21. package/dist/approvalHistoryViewModal-DgLpv2ot.js.map +1 -0
  22. package/dist/approvalPageConfig-D0zPXOUf.js +2437 -0
  23. package/dist/approvalPageConfig-D0zPXOUf.js.map +1 -0
  24. package/dist/approveLeftConfig-BOU_UgHp.js +136 -0
  25. package/dist/approveLeftConfig-BOU_UgHp.js.map +1 -0
  26. package/dist/codeHistoryViewModal-BfSjIbEU.js +103 -0
  27. package/dist/codeHistoryViewModal-BfSjIbEU.js.map +1 -0
  28. package/dist/columnTables-DLwtgcC7.js +1272 -0
  29. package/dist/columnTables-DLwtgcC7.js.map +1 -0
  30. package/dist/components/Cell_click_approve.vue.d.ts +5 -0
  31. package/dist/components/Cell_click_data_source.vue.d.ts +6 -0
  32. package/dist/components/Process/common/bpmnUtils.d.ts +8 -0
  33. package/dist/components/Process/common/global.d.ts +16 -0
  34. package/dist/components/Process/common/index.d.ts +5 -0
  35. package/dist/components/Process/component/JsonTags2.vue.d.ts +60 -0
  36. package/dist/components/Process/component/ValueInput2.vue.d.ts +74 -0
  37. package/dist/components/Process/component/columnNameField2.vue.d.ts +51 -0
  38. package/dist/components/Process/component/data.d.ts +157 -0
  39. package/dist/components/Process/customPanel/CustomContextPad.d.ts +31 -0
  40. package/dist/components/Process/customPanel/CustomPalette.d.ts +89 -0
  41. package/dist/components/Process/customPanel/customTranslate.d.ts +1 -0
  42. package/dist/components/Process/customPanel/index.d.ts +8 -0
  43. package/dist/components/Process/designer.vue.d.ts +589 -0
  44. package/dist/components/Process/flowable/init.d.ts +1 -0
  45. package/dist/components/Process/index.vue.d.ts +812 -0
  46. package/dist/components/Process/lang/zh.d.ts +249 -0
  47. package/dist/components/Process/panel/ButtonsPanel.vue.d.ts +24 -0
  48. package/dist/components/Process/panel/PropertiesPanel.vue.d.ts +24 -0
  49. package/dist/components/Process/panel/commonPanel.vue.d.ts +40 -0
  50. package/dist/components/Process/panel/conditionPanel.vue.d.ts +271 -0
  51. package/dist/components/Process/panel/executionListener.vue.d.ts +66 -0
  52. package/dist/components/Process/panel/formPanel.vue.d.ts +7 -0
  53. package/dist/components/Process/panel/multiInstance.vue.d.ts +33 -0
  54. package/dist/components/Process/panel/otherPanel.vue.d.ts +17 -0
  55. package/dist/components/Process/panel/taskListener.vue.d.ts +64 -0
  56. package/dist/components/Process/panel/taskPanel.vue.d.ts +254 -0
  57. package/dist/components/Process/viewer/index.vue.d.ts +41 -0
  58. package/dist/components/approval/ApprovalEditorModal.vue.d.ts +26 -0
  59. package/dist/components/approval/CostCompanySelect.vue.d.ts +29 -0
  60. package/dist/components/approval/CostDepartmentSelect.vue.d.ts +35 -0
  61. package/dist/components/approval/CreateByCascader.vue.d.ts +27 -0
  62. package/dist/components/approval/CreateBySelect.vue.d.ts +35 -0
  63. package/dist/components/approval/PostionCascader.vue.d.ts +26 -0
  64. package/dist/components/approval/SystemTime.vue.d.ts +38 -0
  65. package/dist/components/approval/approvalViewId.d.ts +36 -0
  66. package/dist/components/approval/components/CancelModal.vue.d.ts +25 -0
  67. package/dist/components/approval/components/FormCodeInput.vue.d.ts +33 -0
  68. package/dist/components/approval/components/FormContextInput.vue.d.ts +33 -0
  69. package/dist/components/approval/components/FormFlowOrgInput.vue.d.ts +40 -0
  70. package/dist/components/approval/components/actionsBar.vue.d.ts +17 -0
  71. package/dist/components/approval/components/approvalHistory/approvalHistoryViewModal.vue.d.ts +41 -0
  72. package/dist/components/approval/components/approvalHistory/dataStoreSettingHistory.vue.d.ts +55 -0
  73. package/dist/components/approval/components/approvalHistory/dataStoreSettingHistoryViewModal.vue.d.ts +41 -0
  74. package/dist/components/approval/components/approvalHistory/flowHistoryViewModal.vue.d.ts +41 -0
  75. package/dist/components/approval/components/approvalHistory/flowSettingHistory.vue.d.ts +55 -0
  76. package/dist/components/approval/components/approvalHistory/index.vue.d.ts +212 -0
  77. package/dist/components/approval/components/approvalHistory/pageSettingHistory.vue.d.ts +55 -0
  78. package/dist/components/approval/components/approvalPageConfig/ActionsConfig.vue.d.ts +112 -0
  79. package/dist/components/approval/components/approvalPageConfig/BaseConditions.vue.d.ts +205 -0
  80. package/dist/components/approval/components/approvalPageConfig/CodeEditorWraper.vue.d.ts +51 -0
  81. package/dist/components/approval/components/approvalPageConfig/ColumnConfig.vue.d.ts +145 -0
  82. package/dist/components/approval/components/approvalPageConfig/ConditionFieldMulType.vue.d.ts +137 -0
  83. package/dist/components/approval/components/approvalPageConfig/JsonInput.vue.d.ts +38 -0
  84. package/dist/components/approval/components/approvalPageConfig/JsonTags.vue.d.ts +26 -0
  85. package/dist/components/approval/components/approvalPageConfig/JsonText.vue.d.ts +36 -0
  86. package/dist/components/approval/components/approvalPageConfig/approveLeftConfig.vue.d.ts +6 -0
  87. package/dist/components/approval/components/approvalPageConfig/baseConfig.vue.d.ts +10 -0
  88. package/dist/components/approval/components/approvalPageConfig/cellEdit.vue.d.ts +23 -0
  89. package/dist/components/approval/components/approvalPageConfig/configSync.vue.d.ts +76 -0
  90. package/dist/components/approval/components/approvalPageConfig/confirmInput.vue.d.ts +26 -0
  91. package/dist/components/approval/components/approvalPageConfig/defaultOperatorSelect.vue.d.ts +18 -0
  92. package/dist/components/approval/components/approvalPageConfig/index.vue.d.ts +11 -0
  93. package/dist/components/approval/components/approvalPageConfig/jsonConfig.vue.d.ts +16 -0
  94. package/dist/components/approval/components/approvalPageConfig/layoutSetting.vue.d.ts +9 -0
  95. package/dist/components/approval/components/approvalPageConfig/leftColumn.vue.d.ts +1184 -0
  96. package/dist/components/approval/components/approvalPageConfig/middleColumn.vue.d.ts +145 -0
  97. package/dist/components/approval/components/approvalPageConfig/operatorSelect.vue.d.ts +18 -0
  98. package/dist/components/approval/components/approvalPageConfig/searchConfig.vue.d.ts +166 -0
  99. package/dist/components/approval/components/approvalPageConfig/tableConfig.vue.d.ts +802 -0
  100. package/dist/components/approval/components/codeHistory/codeHistory.vue.d.ts +53 -0
  101. package/dist/components/approval/components/codeHistory/codeHistoryViewModal.vue.d.ts +32 -0
  102. package/dist/components/approval/components/columnDataList.vue.d.ts +454 -0
  103. package/dist/components/approval/components/columnForm.vue.d.ts +26 -0
  104. package/dist/components/approval/components/columnTables.vue.d.ts +502 -0
  105. package/dist/components/approval/components/columnUnknown.vue.d.ts +2 -0
  106. package/dist/components/approval/components/dataStoreConfig/ConditionConfig.vue.d.ts +199 -0
  107. package/dist/components/approval/components/dataStoreConfig/ValueInput.vue.d.ts +37 -0
  108. package/dist/components/approval/components/dataStoreConfig/dataSourceDetial.vue.d.ts +22 -0
  109. package/dist/components/approval/components/dataStoreConfig/dataStoreConfig.vue.d.ts +554 -0
  110. package/dist/components/approval/components/dataStoreConfig/dataStoreConfigItem.vue.d.ts +434 -0
  111. package/dist/components/approval/components/dataStoreConfig/dataStoreTest.vue.d.ts +39 -0
  112. package/dist/components/approval/components/dataStoreConfig/dataStoreTestsItem.vue.d.ts +17 -0
  113. package/dist/components/approval/components/dataStoreConfig/formField.vue.d.ts +28 -0
  114. package/dist/components/approval/components/dataStoreConfig/formFieldMulType.vue.d.ts +96 -0
  115. package/dist/components/approval/components/dataStoreConfig/selectExcelColumn.vue.d.ts +26 -0
  116. package/dist/components/approval/components/dataStoreConfig/selectExcelType.vue.d.ts +28 -0
  117. package/dist/components/approval/components/debugCode/debugCode.vue.d.ts +214 -0
  118. package/dist/components/approval/components/drawerDataList.vue.d.ts +504 -0
  119. package/dist/components/approval/components/drawerTablesList.vue.d.ts +551 -0
  120. package/dist/components/approval/components/flowConfig/flowConfig.vue.d.ts +1097 -0
  121. package/dist/components/approval/components/flowConfig/selectCcGroup.vue.d.ts +9 -0
  122. package/dist/components/approval/components/flowConfig/selectUsers.vue.d.ts +9 -0
  123. package/dist/components/approval/components/modelTablesList.vue.d.ts +551 -0
  124. package/dist/components/approval/components/pageConfigHistory.vue.d.ts +2 -0
  125. package/dist/components/approval/components/search.vue.d.ts +238 -0
  126. package/dist/components/approval/components/searchSummary.vue.d.ts +100 -0
  127. package/dist/components/approval/components/table.vue.d.ts +416 -0
  128. package/dist/components/approval/components/tableModal.vue.d.ts +84 -0
  129. package/dist/components/approval/configs/approval/default.d.ts +11 -0
  130. package/dist/components/approval/configs/approval/recordActions.d.ts +22 -0
  131. package/dist/components/approval/core.vue.d.ts +53 -0
  132. package/dist/components/approval/example_code/example_code.d.ts +11 -0
  133. package/dist/components/approval/index.d.ts +18 -0
  134. package/dist/components/approval/index.vue.d.ts +2 -0
  135. package/dist/components/approval/migrate/index.d.ts +1 -0
  136. package/dist/components/approval/migrate/v0001.d.ts +2 -0
  137. package/dist/components/approval/store/context.d.ts +48 -0
  138. package/dist/components/approval/store/debugCode.d.ts +7 -0
  139. package/dist/components/approval/store/settingsState.d.ts +15 -0
  140. package/dist/components/approval/typing.d.ts +210 -0
  141. package/dist/components/approval/useApprovalRecordActions.d.ts +83 -0
  142. package/dist/components/approval/utils.d.ts +164 -0
  143. package/dist/components/approval_for_details.vue.d.ts +9 -0
  144. package/dist/components/flow/ElInputTag/index.vue.d.ts +46 -0
  145. package/dist/components/flow/Expression/index.vue.d.ts +48 -0
  146. package/dist/components/flow/Role/index.vue.d.ts +68 -0
  147. package/dist/components/flow/User/index.vue.d.ts +76 -0
  148. package/dist/config/packed-config.d.ts +26 -0
  149. package/dist/constants.d.ts +1 -0
  150. package/dist/core-BOc9ch_5.js +1631 -0
  151. package/dist/core-BOc9ch_5.js.map +1 -0
  152. package/dist/dataStoreSettingHistoryViewModal-D_so-KLp.js +114 -0
  153. package/dist/dataStoreSettingHistoryViewModal-D_so-KLp.js.map +1 -0
  154. package/dist/debugCode-Cm9-WiUG.js +565 -0
  155. package/dist/debugCode-Cm9-WiUG.js.map +1 -0
  156. package/dist/debugCode-dD1YnQSD.js +11 -0
  157. package/dist/debugCode-dD1YnQSD.js.map +1 -0
  158. package/dist/default-VdDMlY4e.js +560 -0
  159. package/dist/default-VdDMlY4e.js.map +1 -0
  160. package/dist/example_code-C_xF8RRG.js +129 -0
  161. package/dist/example_code-C_xF8RRG.js.map +1 -0
  162. package/dist/flowHistoryViewModal-D8DJP7Te.js +109 -0
  163. package/dist/flowHistoryViewModal-D8DJP7Te.js.map +1 -0
  164. package/dist/index.d.ts +81 -0
  165. package/dist/index.js +507 -26691
  166. package/dist/index.js.map +1 -1
  167. package/dist/init-plugin-fQTSQzui.js +48 -0
  168. package/dist/init-plugin-fQTSQzui.js.map +1 -0
  169. package/dist/init-plugin.d.ts +57 -0
  170. package/dist/leftColumn-CsPjufue.js +209 -0
  171. package/dist/leftColumn-CsPjufue.js.map +1 -0
  172. package/dist/lyflowchart.css +1 -1
  173. package/dist/middleColumn-C7M6-eVo.js +107 -0
  174. package/dist/middleColumn-C7M6-eVo.js.map +1 -0
  175. package/dist/recordActions-BgFlNsGU.js +51 -0
  176. package/dist/recordActions-BgFlNsGU.js.map +1 -0
  177. package/dist/settingsState-CI81PG-i.js +19 -0
  178. package/dist/settingsState-CI81PG-i.js.map +1 -0
  179. package/dist/style.d.ts +3 -0
  180. package/dist/styles.d.ts +7 -0
  181. package/dist/tableConfig-uLXue-BS.js +2408 -0
  182. package/dist/tableConfig-uLXue-BS.js.map +1 -0
  183. package/dist/tableModal-BcYfVL02.js +124 -0
  184. package/dist/tableModal-BcYfVL02.js.map +1 -0
  185. package/dist/useApprovalRecordActions-BQ6MgV2L.js +843 -0
  186. package/dist/useApprovalRecordActions-BQ6MgV2L.js.map +1 -0
  187. package/dist/utils/StrUtil.d.ts +52 -0
  188. package/dist/utils/function.d.ts +8 -0
  189. package/dist/utils-CLet2gLV.js +420 -0
  190. package/dist/utils-CLet2gLV.js.map +1 -0
  191. package/dist/v0001-OaBeBCXI.js +4 -0
  192. package/dist/v0001-OaBeBCXI.js.map +1 -0
  193. package/dist/{Cell_click_data_source-C8WEsBGB.js → viewer-Dv3kQsMf.js} +1839 -2724
  194. package/dist/viewer-Dv3kQsMf.js.map +1 -0
  195. package/dist/vue-print-next-HRweUmNi.js +683 -0
  196. package/dist/vue-print-next-HRweUmNi.js.map +1 -0
  197. package/package.json +39 -8
  198. package/dist/Cell_click_data_source-C8WEsBGB.js.map +0 -1
@@ -0,0 +1,416 @@
1
+ import { Table, ApprovalSetting } from '../typing';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
+ config: {
4
+ type: () => Table;
5
+ required: true;
6
+ };
7
+ modelType: {
8
+ type: StringConstructor;
9
+ required: false;
10
+ };
11
+ eventBus: {
12
+ type: ObjectConstructor;
13
+ required: false;
14
+ };
15
+ approvalConfig: {
16
+ type: () => ApprovalSetting;
17
+ required: false;
18
+ };
19
+ rowSelectionType: {
20
+ type: StringConstructor;
21
+ required: false;
22
+ };
23
+ hideAllButtons: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ }>, {
28
+ dataSource: import("vue").Ref<any[], any[]>;
29
+ selectedRowKeys: import("vue").Ref<any[], any[]>;
30
+ loading: import("vue").Ref<boolean, boolean>;
31
+ state: {
32
+ current: number;
33
+ pageSize: number;
34
+ total: number;
35
+ };
36
+ handlePageChange: (page: any, pageSize: any) => void;
37
+ handleRowAction: (action: any, record: any) => Promise<void>;
38
+ callRowActionByTitle: (title: any, record: any) => void;
39
+ pageSizeOptions: import("vue").Ref<string[], string[]>;
40
+ columns: import("vue").ComputedRef<({
41
+ minWidth: number;
42
+ width: any;
43
+ filteredValue: any;
44
+ sortOrder: any;
45
+ key: string;
46
+ title: string;
47
+ dataIndex: string;
48
+ ellipsis: boolean;
49
+ resizable: boolean;
50
+ fixed?: boolean;
51
+ autoHeight: boolean;
52
+ autoWidth: boolean;
53
+ cellComponent?: string;
54
+ approve_summary?: boolean;
55
+ cellSummaryComponent?: string;
56
+ colorMap?: Record<string, any>;
57
+ contentMap?: Record<string, any>;
58
+ filterMultiple?: boolean;
59
+ filters?: Array<{
60
+ text: string;
61
+ value: any;
62
+ }>;
63
+ sorter?: any;
64
+ defaultSortOrder?: "ascend" | "descend";
65
+ defaultSortIndex?: number;
66
+ } | {
67
+ width: number;
68
+ minWidth: any;
69
+ filteredValue: any;
70
+ sortOrder: any;
71
+ key: string;
72
+ title: string;
73
+ dataIndex: string;
74
+ ellipsis: boolean;
75
+ resizable: boolean;
76
+ fixed?: boolean;
77
+ autoHeight: boolean;
78
+ autoWidth: boolean;
79
+ cellComponent?: string;
80
+ approve_summary?: boolean;
81
+ cellSummaryComponent?: string;
82
+ colorMap?: Record<string, any>;
83
+ contentMap?: Record<string, any>;
84
+ filterMultiple?: boolean;
85
+ filters?: Array<{
86
+ text: string;
87
+ value: any;
88
+ }>;
89
+ sorter?: any;
90
+ defaultSortOrder?: "ascend" | "descend";
91
+ defaultSortIndex?: number;
92
+ } | {
93
+ title: string;
94
+ dataIndex: string;
95
+ width: number;
96
+ resizable: boolean;
97
+ fixed: string;
98
+ })[]>;
99
+ searchConditions: import("vue").Ref<any[], any[]>;
100
+ delayGetDate: import("lodash").DebouncedFunc<() => Promise<void>>;
101
+ selfEventBus: import("mitt").Emitter<Record<import("mitt").EventType, unknown>>;
102
+ row_selection: any;
103
+ handleAction: (action: any) => Promise<void>;
104
+ searchRef: import("vue").Ref<any, any>;
105
+ actionRef: import("vue").Ref<any, any>;
106
+ searchHeight: import("vue").Ref<any, any>;
107
+ actionHeight: import("vue").Ref<any, any>;
108
+ tableHeight: import("vue").ComputedRef<number>;
109
+ rowActionWidth: import("vue").Ref<number, number>;
110
+ context: import("pinia").Store<"approval_context", import("@/components/approval/store/context").ContextState, {}, {
111
+ init(model_type: string): import("@/components/approval/store/context").Context;
112
+ initTable(model_type: string, table_id: string): import("@/components/approval/store/context").TableContext;
113
+ SET_SEARCH_CONDITIONS(model_type: string, table_id: string, searchConditions: any[]): void;
114
+ SET_SELECTED_ROWKEYS(model_type: string, table_id: string, selectedRowKeys: any[], selectedRecord: any[]): void;
115
+ SET_DATASOURCE(model_type: string, table_id: string, datasource: any[]): void;
116
+ SET_FORM_MODEL(model_type: string, formModel: any): void;
117
+ SET_GLOBAL_DATA(model_type: string, globalData: any): void;
118
+ SET_RAW(model_type: string, data: any): void;
119
+ SET_CURRENT_HISTORY_ID(model_type: string, current_history_id: any): void;
120
+ SET_REQUST_HISTORY_ID(model_type: string, request_history_id: any): void;
121
+ SET_CURRENT_FLOW_HISTORY_ID(model_type: string, current_flow_history_id: any): void;
122
+ SET_REQUST_FLOW_HISTORY_ID(model_type: string, request_flow_history_id: any): void;
123
+ SET_EDIT(model_type: string, isEdit: boolean, editState: any): void;
124
+ CLEAR_CONTEXT(model_type: string): void;
125
+ }>;
126
+ summaryColumns: import("vue").ComputedRef<any[]>;
127
+ preserveRow: () => boolean;
128
+ handleChange: (pagination: import("ant-design-vue").TablePaginationConfig, filters: Record<string, import("ant-design-vue/es/table/interface.js").FilterValue | null>, sorter: import("ant-design-vue/es/table/interface.js").SorterResult<any> | import("ant-design-vue/es/table/interface.js").SorterResult<any>[], extra: import("ant-design-vue/es/table/interface.js").TableCurrentDataSource<any>) => void;
129
+ tableWraperHeight: import("vue").Ref<any, any>;
130
+ tableWraperRef: import("vue").Ref<any, any>;
131
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "selection-change"[], "selection-change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
132
+ config: {
133
+ type: () => Table;
134
+ required: true;
135
+ };
136
+ modelType: {
137
+ type: StringConstructor;
138
+ required: false;
139
+ };
140
+ eventBus: {
141
+ type: ObjectConstructor;
142
+ required: false;
143
+ };
144
+ approvalConfig: {
145
+ type: () => ApprovalSetting;
146
+ required: false;
147
+ };
148
+ rowSelectionType: {
149
+ type: StringConstructor;
150
+ required: false;
151
+ };
152
+ hideAllButtons: {
153
+ type: BooleanConstructor;
154
+ default: boolean;
155
+ };
156
+ }>> & Readonly<{
157
+ "onSelection-change"?: (...args: any[]) => any;
158
+ }>, {
159
+ hideAllButtons: boolean;
160
+ }, {}, {
161
+ Search: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
162
+ searchConfig: {
163
+ type: {
164
+ (arrayLength: number): import("../typing").SearchConfig[];
165
+ (...items: import("../typing").SearchConfig[]): import("../typing").SearchConfig[];
166
+ new (arrayLength: number): import("../typing").SearchConfig[];
167
+ new (...items: import("../typing").SearchConfig[]): import("../typing").SearchConfig[];
168
+ isArray(arg: any): arg is any[];
169
+ readonly prototype: any[];
170
+ from<T>(arrayLike: ArrayLike<T>): T[];
171
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
172
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
173
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
174
+ of<T>(...items: T[]): T[];
175
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
176
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
177
+ readonly [Symbol.species]: ArrayConstructor;
178
+ };
179
+ required: true;
180
+ };
181
+ searchConditions: {
182
+ type: {
183
+ (arrayLength: number): import("../typing").Condition[];
184
+ (...items: import("../typing").Condition[]): import("../typing").Condition[];
185
+ new (arrayLength: number): import("../typing").Condition[];
186
+ new (...items: import("../typing").Condition[]): import("../typing").Condition[];
187
+ isArray(arg: any): arg is any[];
188
+ readonly prototype: any[];
189
+ from<T>(arrayLike: ArrayLike<T>): T[];
190
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
191
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
192
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
193
+ of<T>(...items: T[]): T[];
194
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
195
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
196
+ readonly [Symbol.species]: ArrayConstructor;
197
+ };
198
+ required: true;
199
+ };
200
+ eventBus: {
201
+ type: any;
202
+ required: false;
203
+ };
204
+ }>, {
205
+ isShowForm: import("vue").Ref<boolean, boolean>;
206
+ searchModel: import("vue").Ref<{}, {}>;
207
+ dataSource: import("vue").ComputedRef<{
208
+ value: any;
209
+ operator: any;
210
+ model: string;
211
+ type: string;
212
+ label: string;
213
+ format: string;
214
+ inputType?: string;
215
+ allowClear: boolean;
216
+ class_name: string;
217
+ field_name: string;
218
+ autocomplete: string;
219
+ operator_list: string[];
220
+ default_operator?: string;
221
+ dateFormat?: string;
222
+ options?: any[];
223
+ required_condition?: any;
224
+ showTime?: boolean;
225
+ size?: any;
226
+ valueFormat?: string;
227
+ mode?: string;
228
+ }[]>;
229
+ onChange: (field_name: string, type: "value" | "operator", newValue: any, array_index?: number | undefined) => void;
230
+ operator_type_map: Record<string, string>;
231
+ formModel: import("vue").Ref<{}, {}>;
232
+ is_or_not_blank_or_null_options: import("vue").Ref<{
233
+ value: string;
234
+ label: string;
235
+ }[], {
236
+ value: string;
237
+ label: string;
238
+ }[] | {
239
+ value: string;
240
+ label: string;
241
+ }[]>;
242
+ validateInfos: import("vue").Ref<{}, {}>;
243
+ options_for_date_eq: {
244
+ value: string;
245
+ label: string;
246
+ }[];
247
+ handleUpdateSearchConditions: (newConditions: import("../typing").Condition[]) => void;
248
+ handleRefresh: () => void;
249
+ getValue: (configItemAndValue: any) => any;
250
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:searchConditions"[], "update:searchConditions", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
251
+ searchConfig: {
252
+ type: {
253
+ (arrayLength: number): import("../typing").SearchConfig[];
254
+ (...items: import("../typing").SearchConfig[]): import("../typing").SearchConfig[];
255
+ new (arrayLength: number): import("../typing").SearchConfig[];
256
+ new (...items: import("../typing").SearchConfig[]): import("../typing").SearchConfig[];
257
+ isArray(arg: any): arg is any[];
258
+ readonly prototype: any[];
259
+ from<T>(arrayLike: ArrayLike<T>): T[];
260
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
261
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
262
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
263
+ of<T>(...items: T[]): T[];
264
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
265
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
266
+ readonly [Symbol.species]: ArrayConstructor;
267
+ };
268
+ required: true;
269
+ };
270
+ searchConditions: {
271
+ type: {
272
+ (arrayLength: number): import("../typing").Condition[];
273
+ (...items: import("../typing").Condition[]): import("../typing").Condition[];
274
+ new (arrayLength: number): import("../typing").Condition[];
275
+ new (...items: import("../typing").Condition[]): import("../typing").Condition[];
276
+ isArray(arg: any): arg is any[];
277
+ readonly prototype: any[];
278
+ from<T>(arrayLike: ArrayLike<T>): T[];
279
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
280
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
281
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
282
+ of<T>(...items: T[]): T[];
283
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
284
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
285
+ readonly [Symbol.species]: ArrayConstructor;
286
+ };
287
+ required: true;
288
+ };
289
+ eventBus: {
290
+ type: any;
291
+ required: false;
292
+ };
293
+ }>> & Readonly<{
294
+ "onUpdate:searchConditions"?: (...args: any[]) => any;
295
+ }>, {
296
+ eventBus: any;
297
+ }, {}, {
298
+ searchSummary: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
299
+ searchConfig: {
300
+ type: {
301
+ (arrayLength: number): import("../typing").SearchConfig[];
302
+ (...items: import("../typing").SearchConfig[]): import("../typing").SearchConfig[];
303
+ new (arrayLength: number): import("../typing").SearchConfig[];
304
+ new (...items: import("../typing").SearchConfig[]): import("../typing").SearchConfig[];
305
+ isArray(arg: any): arg is any[];
306
+ readonly prototype: any[];
307
+ from<T>(arrayLike: ArrayLike<T>): T[];
308
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
309
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
310
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
311
+ of<T>(...items: T[]): T[];
312
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
313
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
314
+ readonly [Symbol.species]: ArrayConstructor;
315
+ };
316
+ required: true;
317
+ };
318
+ searchConditions: {
319
+ type: {
320
+ (arrayLength: number): import("../typing").Condition[];
321
+ (...items: import("../typing").Condition[]): import("../typing").Condition[];
322
+ new (arrayLength: number): import("../typing").Condition[];
323
+ new (...items: import("../typing").Condition[]): import("../typing").Condition[];
324
+ isArray(arg: any): arg is any[];
325
+ readonly prototype: any[];
326
+ from<T>(arrayLike: ArrayLike<T>): T[];
327
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
328
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
329
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
330
+ of<T>(...items: T[]): T[];
331
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
332
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
333
+ readonly [Symbol.species]: ArrayConstructor;
334
+ };
335
+ required: true;
336
+ };
337
+ eventBus: {
338
+ type: any;
339
+ required: false;
340
+ };
341
+ }>, {
342
+ dataSource: import("vue").ComputedRef<{
343
+ field_name: string;
344
+ summary: any;
345
+ }[]>;
346
+ handleClose: (fieldName: string) => void;
347
+ handleRefresh: () => void;
348
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:searchConditions"[], "update:searchConditions", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
349
+ searchConfig: {
350
+ type: {
351
+ (arrayLength: number): import("../typing").SearchConfig[];
352
+ (...items: import("../typing").SearchConfig[]): import("../typing").SearchConfig[];
353
+ new (arrayLength: number): import("../typing").SearchConfig[];
354
+ new (...items: import("../typing").SearchConfig[]): import("../typing").SearchConfig[];
355
+ isArray(arg: any): arg is any[];
356
+ readonly prototype: any[];
357
+ from<T>(arrayLike: ArrayLike<T>): T[];
358
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
359
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
360
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
361
+ of<T>(...items: T[]): T[];
362
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
363
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
364
+ readonly [Symbol.species]: ArrayConstructor;
365
+ };
366
+ required: true;
367
+ };
368
+ searchConditions: {
369
+ type: {
370
+ (arrayLength: number): import("../typing").Condition[];
371
+ (...items: import("../typing").Condition[]): import("../typing").Condition[];
372
+ new (arrayLength: number): import("../typing").Condition[];
373
+ new (...items: import("../typing").Condition[]): import("../typing").Condition[];
374
+ isArray(arg: any): arg is any[];
375
+ readonly prototype: any[];
376
+ from<T>(arrayLike: ArrayLike<T>): T[];
377
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
378
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
379
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
380
+ of<T>(...items: T[]): T[];
381
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
382
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
383
+ readonly [Symbol.species]: ArrayConstructor;
384
+ };
385
+ required: true;
386
+ };
387
+ eventBus: {
388
+ type: any;
389
+ required: false;
390
+ };
391
+ }>> & Readonly<{
392
+ "onUpdate:searchConditions"?: (...args: any[]) => any;
393
+ }>, {
394
+ eventBus: any;
395
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
396
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
397
+ actionsBar: import("vue").DefineComponent<{
398
+ actions: import("../typing").Action[];
399
+ action_width?: number;
400
+ params?: any;
401
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
402
+ click: (action: any) => any;
403
+ "update:action_width": (width: number) => any;
404
+ }, string, import("vue").PublicProps, Readonly<{
405
+ actions: import("../typing").Action[];
406
+ action_width?: number;
407
+ params?: any;
408
+ }> & Readonly<{
409
+ onClick?: (action: any) => any;
410
+ "onUpdate:action_width"?: (width: number) => any;
411
+ }>, {
412
+ action_width: number;
413
+ params: any;
414
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
415
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
416
+ export default _default;
@@ -0,0 +1,84 @@
1
+ import { PropType } from 'vue';
2
+ import { ApprovalSetting } from '../typing';
3
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ columnConfig: {
5
+ type: ObjectConstructor;
6
+ required: true;
7
+ };
8
+ height: {
9
+ type: NumberConstructor;
10
+ required: true;
11
+ };
12
+ eventBus: {
13
+ type: ObjectConstructor;
14
+ required: true;
15
+ };
16
+ modelType: {
17
+ type: StringConstructor;
18
+ required: true;
19
+ };
20
+ approvalConfig: {
21
+ type: PropType<ApprovalSetting>;
22
+ required: true;
23
+ };
24
+ tables: {
25
+ type: ArrayConstructor;
26
+ required: true;
27
+ };
28
+ title: {
29
+ type: StringConstructor;
30
+ required: true;
31
+ };
32
+ hideAllButtons: {
33
+ type: BooleanConstructor;
34
+ required: true;
35
+ };
36
+ open: {
37
+ type: PropType<boolean>;
38
+ };
39
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ cancel: (...args: any[]) => void;
41
+ ok: (...args: any[]) => void;
42
+ "update:open": (value: boolean) => void;
43
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
44
+ columnConfig: {
45
+ type: ObjectConstructor;
46
+ required: true;
47
+ };
48
+ height: {
49
+ type: NumberConstructor;
50
+ required: true;
51
+ };
52
+ eventBus: {
53
+ type: ObjectConstructor;
54
+ required: true;
55
+ };
56
+ modelType: {
57
+ type: StringConstructor;
58
+ required: true;
59
+ };
60
+ approvalConfig: {
61
+ type: PropType<ApprovalSetting>;
62
+ required: true;
63
+ };
64
+ tables: {
65
+ type: ArrayConstructor;
66
+ required: true;
67
+ };
68
+ title: {
69
+ type: StringConstructor;
70
+ required: true;
71
+ };
72
+ hideAllButtons: {
73
+ type: BooleanConstructor;
74
+ required: true;
75
+ };
76
+ open: {
77
+ type: PropType<boolean>;
78
+ };
79
+ }>> & Readonly<{
80
+ onCancel?: (...args: any[]) => any;
81
+ onOk?: (...args: any[]) => any;
82
+ "onUpdate:open"?: (value: boolean) => any;
83
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
84
+ export default _default;
@@ -0,0 +1,11 @@
1
+ import { ApprovalSetting, DataListSection } from '../../typing';
2
+ /**
3
+ * 「审批列表」列的默认配置。
4
+ *
5
+ * 不带任何入参:配置里与节点相关的东西一律用 {{xxx}} 占位符表示(见 menu_flag 条件),
6
+ * 实际值由执行查询处注入(src/views/approval/utils.ts::resolveParamValue)。
7
+ * 这样同一份配置可以直接同步到其他节点,不需要按节点改写。
8
+ */
9
+ export declare const getDataListConfig: () => DataListSection;
10
+ declare const _default: () => ApprovalSetting;
11
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { Action } from '../../typing';
2
+ /**
3
+ * 修改审批(edit_approve)。
4
+ *
5
+ * 每次调用返回**新对象**:页面配置处理链(`approval/index.ts::processAction`)会往 action 上写
6
+ * `action_code_id` 等运行时字段,共用单例会把脏状态带到下一次取配置。
7
+ */
8
+ export declare const getEditApproveAction: () => Action;
9
+ /**
10
+ * 删除审批(cancel_agree_approve)—— 语义是「作废已通过的审批」,需要填作废原因,
11
+ * 前端弹 `CancelModal`,落到后端 `/approve/cancel_agree_approve_record`。
12
+ */
13
+ export declare const getCancelAgreeApproveAction: () => Action;
14
+ /**
15
+ * 详情场景用到的两个 action,按 action 名索引。
16
+ * 供 `useApprovalRecordActions`(→ `Cell_click_approve` / `Cell_click_data_source` 的外置按钮)
17
+ * 取默认的显示判断逻辑与点击取数代码。
18
+ */
19
+ export declare const getApproveRecordActions: () => {
20
+ edit_approve: Action;
21
+ cancel_agree_approve: Action;
22
+ };
@@ -0,0 +1,53 @@
1
+ import './style.less';
2
+ /**
3
+ * 审批「左中右三栏」核心组件 —— **不依赖路由**。
4
+ *
5
+ * 为什么要有这一层:审批页原本只有「路由页面」一种用法,`modelType` 是从 `route.path`
6
+ * 末段推出来的。现在详情页/列表单元格要把它当作**全屏模态框**弹出来(修改、删除后编辑),
7
+ * 那里没有对应路由,所以把「一切靠参数控制」的部分抽成本组件:
8
+ *
9
+ * - `modelType`(= 页面配置的 menu_flag):**prop 传入**,不再读路由;
10
+ * - `approveRecordId`:**可选**。传了就表示「打开即进入编辑态」,见 onMounted 的说明。
11
+ *
12
+ * 两种用法:
13
+ * 1. 路由页面 → `approval/index.vue`(薄壳,从路由推出 modelType);
14
+ * 2. 全屏模态 → `approval/ApprovalEditorModal.vue`(传 modelType + approveRecordId)。
15
+ * 两者共用本组件,逻辑只有一份。
16
+ *
17
+ * ⚠️ props 必须放在普通 `<script>` 块里 export(与 columnForm.vue 的 ColumnFormProps 同理):
18
+ * 模态框组件会持有本组件的模板 ref,TS 需要能**命名**这个 props 类型;放在 <script setup> 里
19
+ * 无法 export,会导致本文件产不出 .d.ts,并连锁让引用方报 TS4082。
20
+ */
21
+ export interface ApprovalCoreProps {
22
+ /** 页面配置的菜单标识(menu_flag)。原来从 route.path 末段取,现在由调用方传入 */
23
+ modelType: string;
24
+ /**
25
+ * 打开即进入编辑态的审批记录 id(ApproveRecord.id)。
26
+ * 不传 = 普通用法,编辑态由页面自身事件驱动(路由页面的用法)。
27
+ */
28
+ approveRecordId?: number | null;
29
+ }
30
+ declare global {
31
+ interface Window {
32
+ setDebugCode?: (checked: boolean) => void;
33
+ }
34
+ }
35
+ declare const _default: import("vue").DefineComponent<ApprovalCoreProps, {
36
+ /** 按审批记录 id 进入编辑态(编辑态种类由记录字段派生,见上方注释) */
37
+ applyApproveRecord: (id: number) => Promise<void>;
38
+ /** 重新拉取页面配置与全局数据 */
39
+ reinit: () => Promise<void>;
40
+ /** 供外部(模态框)在需要时重新量一次高度 */
41
+ resize: () => void;
42
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
43
+ saved: (payload: {
44
+ isEdit?: boolean;
45
+ }) => any;
46
+ }, string, import("vue").PublicProps, Readonly<ApprovalCoreProps> & Readonly<{
47
+ onSaved?: (payload: {
48
+ isEdit?: boolean;
49
+ }) => any;
50
+ }>, {
51
+ approveRecordId: number | null;
52
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
53
+ export default _default;
@@ -0,0 +1,11 @@
1
+ export declare const exampleCodeList: ({
2
+ label: string;
3
+ value: string;
4
+ actions: string[];
5
+ types: string[];
6
+ } | {
7
+ label: string;
8
+ value: string;
9
+ types: string[];
10
+ actions?: undefined;
11
+ })[];
@@ -0,0 +1,18 @@
1
+ import { ApprovalSetting, DataStoreConfigType } from './typing';
2
+ export declare const getApprovalConfig: (key: string, detial?: Array<any> | null, history_id?: Number | null) => Promise<{
3
+ config: ApprovalSetting;
4
+ current_history_id: any;
5
+ }>;
6
+ export declare const getFlowConfig: (key: string, history_id?: Number | null) => Promise<{
7
+ content: any;
8
+ name: any;
9
+ enable_flow: any;
10
+ cc_approval_position: any;
11
+ cc_position: any;
12
+ cc_users: any;
13
+ current_history_id: any;
14
+ }>;
15
+ export declare const getDataStoreConfig: (key: string, history_id?: Number | null) => Promise<{
16
+ config: DataStoreConfigType;
17
+ current_history_id: any;
18
+ }>;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1 @@
1
+ export declare const migrate: (data: any) => Promise<any>;
@@ -0,0 +1,2 @@
1
+ declare const _default: (data: any) => any;
2
+ export default _default;