@byteluck-fe/runtime-engine 3.0.0 → 7.0.0-beta.0

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 (215) hide show
  1. package/dist/runtime-engine.js +19292 -15985
  2. package/dist/src/components/meKeepAlive/core/renderer.d.ts +10 -10
  3. package/dist/src/components/meKeepAlive/core/vnode.d.ts +3 -3
  4. package/dist/src/components/meKeepAlive/index.d.ts +1 -1
  5. package/dist/src/components/update-log/utils.d.ts +2 -2
  6. package/dist/src/constant/controls/props/base/button.d.ts +14 -0
  7. package/dist/src/constant/controls/props/base/dashboard.d.ts +9 -0
  8. package/dist/src/constant/controls/props/base/divider.d.ts +9 -0
  9. package/dist/src/constant/controls/props/base/formSelectButton.d.ts +9 -0
  10. package/dist/src/constant/controls/props/base/invoiceCheckButton.d.ts +9 -0
  11. package/dist/src/constant/controls/props/base/link.d.ts +9 -0
  12. package/dist/src/constant/controls/props/base/listSelectButton.d.ts +9 -0
  13. package/dist/src/constant/controls/props/base/listViewSelect.d.ts +12 -0
  14. package/dist/src/constant/controls/props/base/referenceList.d.ts +10 -0
  15. package/dist/src/constant/controls/props/base/text.d.ts +7 -0
  16. package/dist/src/constant/controls/props/base/textOcrButton.d.ts +8 -0
  17. package/dist/src/constant/controls/props/base/title.d.ts +8 -0
  18. package/dist/src/constant/controls/props/column/approvalStatusColumn.d.ts +12 -0
  19. package/dist/src/constant/controls/props/column/arrayColumn.d.ts +12 -0
  20. package/dist/src/constant/controls/props/column/autoNumberColumn.d.ts +10 -0
  21. package/dist/src/constant/controls/props/column/customColumn.d.ts +11 -0
  22. package/dist/src/constant/controls/props/column/decimalColumn.d.ts +11 -0
  23. package/dist/src/constant/controls/props/column/departmentColumn.d.ts +12 -0
  24. package/dist/src/constant/controls/props/column/employeeColumn.d.ts +12 -0
  25. package/dist/src/constant/controls/props/column/fileColumn.d.ts +12 -0
  26. package/dist/src/constant/controls/props/column/imageColumn.d.ts +12 -0
  27. package/dist/src/constant/controls/props/column/locationColumn.d.ts +10 -0
  28. package/dist/src/constant/controls/props/column/peopleColumn.d.ts +12 -0
  29. package/dist/src/constant/controls/props/column/timestampColumn.d.ts +10 -0
  30. package/dist/src/constant/controls/props/defaultProps.d.ts +24 -0
  31. package/dist/src/constant/controls/props/form/address.d.ts +8 -0
  32. package/dist/src/constant/controls/props/form/amount.d.ts +8 -0
  33. package/dist/src/constant/controls/props/form/attachment.d.ts +8 -0
  34. package/dist/src/constant/controls/props/form/autoNumber.d.ts +11 -0
  35. package/dist/src/constant/controls/props/form/calc.d.ts +8 -0
  36. package/dist/src/constant/controls/props/form/checkbox.d.ts +8 -0
  37. package/dist/src/constant/controls/props/form/dataView.d.ts +12 -0
  38. package/dist/src/constant/controls/props/form/datePicker.d.ts +8 -0
  39. package/dist/src/constant/controls/props/form/dateRange.d.ts +8 -0
  40. package/dist/src/constant/controls/props/form/department.d.ts +12 -0
  41. package/dist/src/constant/controls/props/form/department2.d.ts +11 -0
  42. package/dist/src/constant/controls/props/form/electronicSignature.d.ts +7 -0
  43. package/dist/src/constant/controls/props/form/employee.d.ts +11 -0
  44. package/dist/src/constant/controls/props/form/employee2.d.ts +12 -0
  45. package/dist/src/constant/controls/props/form/image.d.ts +7 -0
  46. package/dist/src/constant/controls/props/form/input.d.ts +11 -0
  47. package/dist/src/constant/controls/props/form/number.d.ts +8 -0
  48. package/dist/src/constant/controls/props/form/organizationSelection.d.ts +11 -0
  49. package/dist/src/constant/controls/props/form/radio.d.ts +8 -0
  50. package/dist/src/constant/controls/props/form/richText.d.ts +11 -0
  51. package/dist/src/constant/controls/props/form/score.d.ts +8 -0
  52. package/dist/src/constant/controls/props/form/searchDateRange.d.ts +8 -0
  53. package/dist/src/constant/controls/props/form/searchInput.d.ts +9 -0
  54. package/dist/src/constant/controls/props/form/searchNumberRange.d.ts +8 -0
  55. package/dist/src/constant/controls/props/form/select.d.ts +8 -0
  56. package/dist/src/constant/controls/props/form/selectMultiple.d.ts +11 -0
  57. package/dist/src/constant/controls/props/form/selectRelation.d.ts +8 -0
  58. package/dist/src/constant/controls/props/form/textarea.d.ts +8 -0
  59. package/dist/src/constant/controls/props/form/tree.d.ts +10 -0
  60. package/dist/src/constant/controls/props/form/vueFormItem.d.ts +8 -0
  61. package/dist/src/constant/controls/props/form/vuePage.d.ts +8 -0
  62. package/dist/src/constant/controls/props/form/wps.d.ts +7 -0
  63. package/dist/src/constant/controls/props/layout/actionBar.d.ts +11 -0
  64. package/dist/src/constant/controls/props/layout/cardGroup.d.ts +10 -0
  65. package/dist/src/constant/controls/props/layout/col.d.ts +10 -0
  66. package/dist/src/constant/controls/props/layout/grid.d.ts +10 -0
  67. package/dist/src/constant/controls/props/layout/gridLayoutContainer.d.ts +10 -0
  68. package/dist/src/constant/controls/props/layout/gridLayoutWrap.d.ts +10 -0
  69. package/dist/src/constant/controls/props/layout/gridRow.d.ts +11 -0
  70. package/dist/src/constant/controls/props/layout/row.d.ts +10 -0
  71. package/dist/src/constant/controls/props/layout/simpleSearch.d.ts +13 -0
  72. package/dist/src/constant/controls/props/layout/step.d.ts +7 -0
  73. package/dist/src/constant/controls/props/layout/stepPane.d.ts +7 -0
  74. package/dist/src/constant/controls/props/layout/tab.d.ts +7 -0
  75. package/dist/src/constant/controls/props/list/subtable.d.ts +11 -0
  76. package/dist/src/constant/controls/props/renderEngine.d.ts +63 -0
  77. package/dist/src/constant/page/address.d.ts +12 -12
  78. package/dist/src/constant/page/table/column.d.ts +3 -3
  79. package/dist/src/entry_desktop/components/EllipsisTooltip/EllipsisTooltip.d.ts +87 -0
  80. package/dist/src/entry_desktop/components/FormEngine/index.d.ts +3 -0
  81. package/dist/src/entry_desktop/controls/components/base-table/components/editable/componentMap.d.ts +2 -2
  82. package/dist/src/entry_desktop/controls/components/base-table/hooks/useTableContext.d.ts +2 -2
  83. package/dist/src/entry_desktop/controls/components/base-table/types/table.d.ts +2 -2
  84. package/dist/src/entry_desktop/controls/components/subtable-ag-grid/hooks/use-sort-hooks.d.ts +1 -1
  85. package/dist/src/entry_desktop/controls/components/subtable-ag-grid/hooks/useWCModalComponentChangeValue.d.ts +1 -1
  86. package/dist/src/entry_desktop/controls/rok-comment/index.d.ts +3 -0
  87. package/dist/src/entry_desktop/controls/rok-date-picker/hook.d.ts +1 -0
  88. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useAgGrid.d.ts +1 -1
  89. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useBackgroundStyle.d.ts +1 -1
  90. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useColumns.d.ts +13 -4
  91. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useModel.d.ts +1 -1
  92. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useNonePage.d.ts +1 -1
  93. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useViewStyle.d.ts +1 -1
  94. package/dist/src/entry_desktop/controls/rok-list-view-title/rule-filter/sok-advanced-filter/utils/date-range.d.ts +1 -1
  95. package/dist/src/entry_desktop/controls/rok-step/index.d.ts +3 -0
  96. package/dist/src/entry_desktop/controls/rok-sublist/hooks/useModel.d.ts +1 -0
  97. package/dist/src/entry_desktop/controls/rok-subtable/hooks/useGetTemplateList.d.ts +1 -1
  98. package/dist/src/entry_desktop/controls/rok-subtable/hooks/useSubtableSelectionState.d.ts +1 -1
  99. package/dist/src/entry_desktop/controls/rok-table-layout/index.d.ts +3 -0
  100. package/dist/src/entry_desktop/controls/rok-table-layout-row/index.d.ts +4 -0
  101. package/dist/src/entry_desktop/controls/rok-table-layout-wrapper/index.d.ts +3 -0
  102. package/dist/src/entry_desktop/hooks/layoutVar.d.ts +197 -0
  103. package/dist/src/entry_desktop/views/list-application/hooks/useListApplication.d.ts +3 -3
  104. package/dist/src/entry_mobile/components/VanSuperForm/VanSuperForm.d.ts +2 -2
  105. package/dist/src/entry_mobile/controls/components/table/hooks/hook.d.ts +2 -0
  106. package/dist/src/entry_mobile/controls/components/table/types/table.d.ts +1 -1
  107. package/dist/src/entry_mobile/controls/rok-attachment/hook-file-base.d.ts +40 -3
  108. package/dist/src/entry_mobile/controls/rok-attachment/upload.type.d.ts +5 -5
  109. package/dist/src/entry_mobile/controls/rok-attachment/utils.d.ts +2 -1
  110. package/dist/src/entry_mobile/controls/rok-comment/index.d.ts +3 -0
  111. package/dist/src/entry_mobile/controls/rok-date-picker/hook.d.ts +148 -3
  112. package/dist/src/entry_mobile/controls/rok-date-range/hook.d.ts +149 -3
  113. package/dist/src/entry_mobile/controls/rok-department/hook.d.ts +20 -3
  114. package/dist/src/entry_mobile/controls/rok-department2/hook.d.ts +21 -3
  115. package/dist/src/entry_mobile/controls/rok-employee/src/constant/index.d.ts +4 -4
  116. package/dist/src/entry_mobile/controls/rok-employee2/src/constant/index.d.ts +4 -4
  117. package/dist/src/entry_mobile/controls/rok-grid-table/hooks/useRender.d.ts +3 -0
  118. package/dist/src/entry_mobile/controls/rok-image/image.type.d.ts +3 -3
  119. package/dist/src/entry_mobile/controls/rok-list-view/hook.d.ts +2 -1
  120. package/dist/src/entry_mobile/controls/rok-organization-selection/hook.d.ts +20 -3
  121. package/dist/src/entry_mobile/controls/rok-search-date-range/hook.d.ts +146 -3
  122. package/dist/src/entry_mobile/controls/rok-step/index.d.ts +3 -0
  123. package/dist/src/entry_mobile/controls/rok-subtable/components/AgGrid/hooks/useAgGrid.d.ts +2 -0
  124. package/dist/src/entry_mobile/controls/rok-subtable/hooks/useFull.d.ts +1 -1
  125. package/dist/src/entry_mobile/controls/rok-subtable/hooks/useSubtableList.d.ts +120 -0
  126. package/dist/src/entry_mobile/controls/rok-table-layout/index.d.ts +3 -0
  127. package/dist/src/entry_mobile/controls/rok-table-layout-row/index.d.ts +4 -0
  128. package/dist/src/entry_mobile/controls/rok-table-layout-wrapper/index.d.ts +3 -0
  129. package/dist/src/entry_mobile/views/page-render/process-form/hooks.d.ts +1 -0
  130. package/dist/src/entry_mobile/views/page-render/useCancel.d.ts +1 -1
  131. package/dist/src/hooks/ag-grid-config.d.ts +4 -0
  132. package/dist/src/hooks/atomic/useEventListener.d.ts +1 -1
  133. package/dist/src/hooks/components/formEngineModal/index.d.ts +1 -0
  134. package/dist/src/hooks/components/formEngineModal/useFormEngine.d.ts +43 -0
  135. package/dist/src/hooks/components/formEngineModal/useFormEngineModal.d.ts +1 -0
  136. package/dist/src/hooks/components/formEngineModal/useFormState.d.ts +1 -0
  137. package/dist/src/hooks/components/listEngineModal/useListEngineModal.d.ts +3 -0
  138. package/dist/src/hooks/components/listEngineModal/useListState.d.ts +2 -1
  139. package/dist/src/hooks/components/useGroupTaskCommentTag.d.ts +3 -0
  140. package/dist/src/hooks/components/useLayoutChildren.d.ts +3 -3
  141. package/dist/src/hooks/components/useList.d.ts +9 -0
  142. package/dist/src/hooks/context/useGlobalEngineContext.d.ts +1 -0
  143. package/dist/src/hooks/context/useInstanceSchemaChangeContext.d.ts +4 -1
  144. package/dist/src/hooks/controls/department2/useDepartmentDisabledSelected.d.ts +5 -0
  145. package/dist/src/hooks/controls/form/interface.d.ts +2 -2
  146. package/dist/src/hooks/controls/listMaster/useModel.d.ts +1 -0
  147. package/dist/src/hooks/controls/listSelectButton/useEngineFillState.d.ts +2 -2
  148. package/dist/src/hooks/controls/listSelectButton/useListSelectButton.d.ts +1 -1
  149. package/dist/src/hooks/controls/listView/useIframe.d.ts +2 -1
  150. package/dist/src/hooks/controls/listView/useListRows.d.ts +5 -0
  151. package/dist/src/hooks/controls/listView/useModel.d.ts +5 -4
  152. package/dist/src/hooks/controls/listView/useRowSpanModel.d.ts +1 -1
  153. package/dist/src/hooks/controls/selecRelation/useSelectRelationEngineInit.d.ts +1 -1
  154. package/dist/src/hooks/controls/simpleSearch/useSimpleSearch.d.ts +1 -1
  155. package/dist/src/hooks/controls/subtable/useSubtableFormEngineModal.d.ts +4 -1
  156. package/dist/src/hooks/controls/subtable/useSubtableInstanceSchemaChange.d.ts +66 -0
  157. package/dist/src/hooks/controls/tab/useTab.d.ts +14 -0
  158. package/dist/src/hooks/controls/useDateRange.d.ts +137 -0
  159. package/dist/src/hooks/form/useBaseForm.d.ts +35 -0
  160. package/dist/src/hooks/form/useBatchPrint.d.ts +1 -1
  161. package/dist/src/hooks/form/useChangeLog.d.ts +2 -2
  162. package/dist/src/hooks/form/useFormEvents.d.ts +4 -4
  163. package/dist/src/hooks/form/useFormPageMask.d.ts +4 -0
  164. package/dist/src/hooks/model/useDashboardState.d.ts +9 -1
  165. package/dist/src/hooks/views/useApprovalForm.d.ts +5 -0
  166. package/dist/src/hooks/views/useExternalFormData.d.ts +1 -0
  167. package/dist/src/hooks/views/useFormRenderByApprovalProcess.d.ts +4 -0
  168. package/dist/src/hooks/views/useFormRenderByFormKeyAndUid.d.ts +1 -0
  169. package/dist/src/hooks/views/usePageForm.d.ts +1 -0
  170. package/dist/src/hooks/views/usePrintForm.d.ts +1 -0
  171. package/dist/src/hooks/views/useProcessForm.d.ts +3 -0
  172. package/dist/src/hooks/views/useProcessFormRenderByFormKeyAndUid.d.ts +3 -0
  173. package/dist/src/plugins/engine/ActionUtilsPlugin.d.ts +12 -8
  174. package/dist/src/plugins/engine/CustomVueControlPlugin.d.ts +2 -2
  175. package/dist/src/plugins/engine/DataSourceManagePlugin.d.ts +1 -1
  176. package/dist/src/plugins/engine/DataViewPlugin.d.ts +3 -1
  177. package/dist/src/plugins/engine/DatasourceSearchPlugin.d.ts +3 -1
  178. package/dist/src/plugins/engine/DisplayPlugin.d.ts +2 -0
  179. package/dist/src/plugins/engine/EventListenerPlugin/index.d.ts +1 -0
  180. package/dist/src/plugins/engine/EventListenerPlugin/type.d.ts +11 -11
  181. package/dist/src/plugins/engine/ExpressionPlugin.d.ts +9 -1
  182. package/dist/src/plugins/engine/MultistageFillingPlugin.d.ts +1 -1
  183. package/dist/src/plugins/engine/TitleSettingPlugin.d.ts +1 -0
  184. package/dist/src/plugins/utils/ActionHandle/ActionHandler.d.ts +1 -1
  185. package/dist/src/plugins/utils/ActionHandle/ExecuteAction.d.ts +1 -1
  186. package/dist/src/services/services.auto.d.ts +25 -1
  187. package/dist/src/services/template.d.ts +1 -1
  188. package/dist/src/store/index.d.ts +2 -1
  189. package/dist/src/types/PageContext.d.ts +1 -1
  190. package/dist/src/types/approval-submit.d.ts +1 -1
  191. package/dist/src/types/type.d.ts +8 -8
  192. package/dist/src/utils/controls/attachmentUtils.d.ts +1 -1
  193. package/dist/src/utils/controls/dateUtils.d.ts +1 -1
  194. package/dist/src/utils/controls/formCopy.d.ts +1 -1
  195. package/dist/src/utils/controls/formatColumnData.d.ts +1 -1
  196. package/dist/src/utils/controls/imageUtils.d.ts +1 -1
  197. package/dist/src/utils/controls/scrollIntoDomView.d.ts +1 -1
  198. package/dist/src/utils/controls/subtableDealTableColumn.d.ts +49 -0
  199. package/dist/src/utils/controls/subtableReadonlyCellRenders.d.ts +13 -0
  200. package/dist/src/utils/core/captionStyle.d.ts +1 -0
  201. package/dist/src/utils/core/crossMessageProcessor.d.ts +1 -1
  202. package/dist/src/utils/core/expressionTools.d.ts +1 -1
  203. package/dist/src/utils/core/index.d.ts +1 -0
  204. package/dist/src/utils/core/math.d.ts +1 -1
  205. package/dist/src/utils/model/operateCache.d.ts +2 -2
  206. package/dist/src/utils/tools/asyncInterval.d.ts +1 -1
  207. package/dist/src/utils/tools/dateUtils.d.ts +1 -0
  208. package/dist/src/utils/tools/displayValue.d.ts +2 -2
  209. package/dist/src/utils/tools/getCachedApplyRender.d.ts +1 -1
  210. package/dist/src/utils/tools/index.d.ts +2 -0
  211. package/dist/src/utils/tools/setAdaptiveTextColor.d.ts +2 -0
  212. package/dist/src/utils/tools/subtableAgGridUtils.d.ts +1 -1
  213. package/package.json +1 -1
  214. package/dist/src/entry_desktop/controls/rok-attachment/hook-file-base.d.ts +0 -4
  215. package/dist/src/entry_desktop/controls/rok-attachment/hook.d.ts +0 -30
@@ -0,0 +1,43 @@
1
+ import { Ref, ComputedRef } from 'vue';
2
+ import { PAGE_STATUS, ControlRuntimeInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
3
+ import { Engine, EventPayload } from '@byteluck-fe/model-driven-engine';
4
+
5
+ export interface FormEngineProps {
6
+ visible: boolean;
7
+ formKey: string;
8
+ readonly: boolean;
9
+ appId?: string;
10
+ async: boolean;
11
+ uid?: string;
12
+ onEngineMounted?: (engine: Engine) => void;
13
+ onEngineSubmitted?: (engine: Engine, payload: EventPayload) => void;
14
+ onEngineBeforeInit?: (engine: Engine, payload: EventPayload) => void;
15
+ onCloseError?: () => Promise<void | boolean>;
16
+ clearSelectedRows?: boolean;
17
+ parentInstance?: ControlRuntimeInstance<CONTROL_TYPE.VUE_FORM_ITEM>;
18
+ }
19
+ /**
20
+ * 处理表单弹窗逻辑
21
+ * */
22
+ export declare function useFormEngine(props: FormEngineProps): {
23
+ context: Ref<Engine> | undefined;
24
+ state: {
25
+ data: any;
26
+ url: Record<string, unknown>;
27
+ uId?: string | null | undefined;
28
+ appId: string;
29
+ formKey: string;
30
+ dataCode?: string | undefined;
31
+ formType: string;
32
+ viewType?: string | undefined;
33
+ };
34
+ isFull: Ref<boolean>;
35
+ loading: Ref<boolean>;
36
+ onEngineInit: (engine: Engine) => Promise<void>;
37
+ hasPermission: Ref<boolean>;
38
+ supportMobile: Ref<boolean>;
39
+ pageStatus: ComputedRef<PAGE_STATUS.READONLY | PAGE_STATUS.EDITABLE>;
40
+ findForm: Ref<boolean>;
41
+ isBindProcess: ComputedRef<any>;
42
+ onClose: () => Promise<void>;
43
+ };
@@ -28,6 +28,7 @@ export declare function useFormEngineModal(props: FormEngineModalProps): {
28
28
  formKey: string;
29
29
  dataCode?: string | undefined;
30
30
  formType: string;
31
+ viewType?: string | undefined;
31
32
  };
32
33
  isFull: Ref<boolean>;
33
34
  loading: Ref<boolean>;
@@ -12,6 +12,7 @@ export declare function useFormState(formKey: Ref<string> | string, visible: Ref
12
12
  formKey: string;
13
13
  dataCode?: string | undefined;
14
14
  formType: string;
15
+ viewType?: string | undefined;
15
16
  };
16
17
  loading: Ref<boolean>;
17
18
  hasPermission: Ref<boolean>;
@@ -1,4 +1,5 @@
1
1
  import { SelectStateType } from '../../controls/listView/useListSelection';
2
+ import { CONTROL_TYPE, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
2
3
  import { Engine, EventPayload } from '@byteluck-fe/model-driven-engine';
3
4
  import { Ref, ComputedRef } from 'vue';
4
5
 
@@ -16,6 +17,7 @@ interface ListEngineModalProps {
16
17
  onEngineInit?: (engine: Engine, rowIndex?: number) => void;
17
18
  onEngineBeforeInit?: (engine: Engine, payload: EventPayload) => void;
18
19
  onOk?: (selectState?: SelectStateType | undefined) => void;
20
+ targetInstance?: ControlRuntimeInstance<CONTROL_TYPE.ORGANIZATION_SELECTION | CONTROL_TYPE.SELECT_RELATION | CONTROL_TYPE.FORM_SELECT_BUTTON | CONTROL_TYPE.LIST_SELECT_BUTTON>;
19
21
  }
20
22
  /**
21
23
  * 处理列表弹窗的逻辑
@@ -32,6 +34,7 @@ export declare function useListEngineModal(props: ListEngineModalProps): {
32
34
  formKey: string;
33
35
  dataCode?: string | undefined;
34
36
  formType: string;
37
+ viewType?: string | undefined;
35
38
  };
36
39
  hasPermission: Ref<boolean>;
37
40
  supportMobile: Ref<boolean>;
@@ -3,7 +3,7 @@ import { Ref } from 'vue';
3
3
  /**
4
4
  * 处理获取列表数据的逻辑
5
5
  * */
6
- export declare function useListState(formKey: string | Ref<string>, visible: Ref<boolean>, appId?: string | Ref<string | undefined>): {
6
+ export declare function useListState(formKey: string | Ref<string>, visible: Ref<boolean>, appId?: string | Ref<string | undefined>, islockbody?: boolean): {
7
7
  state: {
8
8
  data: any;
9
9
  url: Record<string, unknown>;
@@ -12,6 +12,7 @@ export declare function useListState(formKey: string | Ref<string>, visible: Ref
12
12
  formKey: string;
13
13
  dataCode?: string | undefined;
14
14
  formType: string;
15
+ viewType?: string | undefined;
15
16
  };
16
17
  loading: Ref<boolean>;
17
18
  hasPermission: Ref<boolean>;
@@ -0,0 +1,3 @@
1
+ export declare function useGroupTaskCommentTag(): {
2
+ getGroupTaskCommentTag: (processInstanceId: string, auth: string) => Promise<void>;
3
+ };
@@ -2,8 +2,8 @@ import { RuntimeLayoutControl, RuntimeListControl } from '@byteluck-fe/model-dri
2
2
  import { ShallowRef, Ref, ComputedRef } from 'vue';
3
3
  import { IfAny } from '@vue/shared';
4
4
 
5
- export declare function useLayoutChildren<T extends RuntimeLayoutControl | RuntimeListControl>(instance: T): ShallowRef<never[]> | ( Ref<any> extends T["children"] ? T["children"] extends T["children"] & Ref<any> ? IfAny<T["children"], ShallowRef<T["children"]>, T["children"]> : ShallowRef<T["children"]> : ShallowRef<T["children"]>);
6
- export declare function useListHeader<T extends RuntimeListControl>(instance: T): {
7
- headers: Ref<any> extends T["props"]["headers"] ? T["props"]["headers"] extends T["props"]["headers"] & Ref<any> ? IfAny<T["props"]["headers"], ShallowRef<T["props"]["headers"]>, T["props"]["headers"]> : ShallowRef<T["props"]["headers"]> : ShallowRef<T["props"]["headers"]>;
5
+ export declare function useLayoutChildren<T extends RuntimeLayoutControl | RuntimeListControl>(instance: T): ShallowRef<never[]> | ( Ref<any> extends T["children"] ? T["children"] extends infer T_1 ? T_1 extends T["children"] ? T_1 extends T_1 & Ref<any> ? IfAny<T_1, ShallowRef<T_1>, T_1> : ShallowRef<T_1> : never : never : ShallowRef<T["children"]>);
6
+ export declare function useListHeader<T extends RuntimeListControl>(props: any): {
7
+ headers: Ref<any> extends T["props"]["headers"] ? T["props"]["headers"] extends infer T_1 ? T_1 extends T["props"]["headers"] ? T_1 extends T_1 & Ref<any> ? IfAny<T_1, ShallowRef<T_1>, T_1> : ShallowRef<T_1> : never : never : ShallowRef<T["props"]["headers"]>;
8
8
  operationBtns: ComputedRef<any>;
9
9
  };
@@ -0,0 +1,9 @@
1
+ import { Ref, ShallowRef } from 'vue';
2
+ import { RuntimeListControl, RuntimeControl } from '@byteluck-fe/model-driven-core-all';
3
+ import { Engine } from '@byteluck-fe/model-driven-engine';
4
+
5
+ export declare function useList(instance: RuntimeListControl): {
6
+ context: Ref<Engine> | undefined;
7
+ getState: (id: string, rowIndex?: number) => any;
8
+ };
9
+ export declare function useListChildren(instance: RuntimeListControl): ShallowRef< RuntimeControl[]>;
@@ -3,6 +3,7 @@ import { EventPayload } from '@byteluck-fe/model-driven-engine/dist/types';
3
3
 
4
4
  export declare function creatGlobalEngineContext(): Map<any, any>;
5
5
  export declare function useGlobalEngineContext(): Map<string, Engine>;
6
+ export declare function getGlobalEngine(path: string): Engine;
6
7
  export declare function setGlobalEngineContext(engine: Engine, path: string): Map<any, any>;
7
8
  export declare function emitGlobalEngine(path: string, eventName: string, payload: EventPayload): Promise<void>;
8
9
  export declare function deleteGlobalEngineContext(engineid: string, path: string): void;
@@ -4,5 +4,8 @@ import { Engine, SchemaEventPayload } from '@byteluck-fe/model-driven-engine';
4
4
  import { ShallowRef } from 'vue';
5
5
 
6
6
  export declare function initInstanceSchemaChangeContext(engine: Engine): Mitt;
7
- export declare function useInstanceSchemaChangeProps<T extends RuntimeControl>(instance: T, rowIndex?: number): ShallowRef<T['props']>;
7
+ export declare function useInstanceSchemaChangeProps<T extends RuntimeControl>(init_props: {
8
+ instance: T;
9
+ rowIndex?: number;
10
+ }): ShallowRef<T['props']>;
8
11
  export declare function useInstanceSchemaChangePropsCallBack<T extends RuntimeControl>(callBack: (props: SchemaEventPayload) => void, instance: T, rowIndex?: number): void;
@@ -0,0 +1,5 @@
1
+ import { CONTROL_TYPE, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
2
+
3
+ export declare function useDepartmentDisabledSelected(engine: any, userInfo: any): {
4
+ setDepartmentDisabled: (instance: ControlRuntimeInstance<CONTROL_TYPE.DEPARTMENT2>, list: any[], idKey: string, setItemField?: any) => void;
5
+ };
@@ -7,8 +7,8 @@ export interface SuperFormExpose {
7
7
  rules: ComputedRef<Rules | undefined>;
8
8
  model: ComputedRef<Record<string, unknown>>;
9
9
  }
10
- export declare type InternalNamePath = (string | number)[];
11
- export declare type NamePath = string | number | InternalNamePath;
10
+ export type InternalNamePath = (string | number)[];
11
+ export type NamePath = string | number | InternalNamePath;
12
12
  export interface FieldExpose {
13
13
  fieldValue: ComputedRef<any>;
14
14
  fieldName: ComputedRef<any>;
@@ -9,5 +9,6 @@ export declare function useInitListMaster(masterDataCode: Ref<string>): {
9
9
  formKey: string;
10
10
  dataCode?: string | undefined;
11
11
  formType: string;
12
+ viewType?: string | undefined;
12
13
  };
13
14
  };
@@ -8,8 +8,8 @@ import { Engine } from '@byteluck-fe/model-driven-engine';
8
8
  export declare function useEngineFillState(instance: ControlRuntimeInstance<'list-select-button'>, fillList: Ref<MultistageFillingItem[]>, primaryKeyFilledControlId?: Ref<string | undefined>, options?: {
9
9
  engine?: Engine | Ref<Engine>;
10
10
  }): {
11
- handlerFillState: (state: Record<string, unknown> | undefined, rowIndex?: number | undefined, concat?: Ref<boolean> | boolean) => void;
12
- handlerFillSubtableState: (state: Array<Record<string, unknown>> | undefined, dataCode: string) => void;
11
+ handlerFillState: (state: Record<string, unknown> | undefined, rowIndex?: number, concat?: Ref<boolean> | boolean) => void;
12
+ handlerFillSubtableState: (state: Array<Record<string, unknown>> | undefined, dataCode: string) => Promise<void>;
13
13
  handlerComputedState: () => Record<string, unknown>;
14
14
  mergedStatesToObject: (rows: Array<Record<string, unknown>>) => Record<string, string[]>;
15
15
  statesToControlIdsObjectArray: (rows: Array<Record<string, unknown>>, dataCode: string) => Record<string, unknown>[] | undefined;
@@ -16,5 +16,5 @@ export declare function useListSelectButton(props: PropsInstanceType<CONTROL_TYP
16
16
  value: Ref<string | string[] | undefined>;
17
17
  handlerClick: () => void;
18
18
  handlerClickOk: (selectState: SelectStateType) => Promise<void>;
19
- onEngineInit: (engine: Engine, rowIndex?: number | undefined) => Promise<void>;
19
+ onEngineInit: (engine: Engine, rowIndex?: number) => Promise<void>;
20
20
  };
@@ -1,5 +1,6 @@
1
1
  import { Ref } from 'vue';
2
+ import { Engine } from '@byteluck-fe/model-driven-engine';
2
3
 
3
4
  export default function useIframe(url: string, formVisible: Ref<boolean>, callback?: Fn): {
4
- handlePostMate: () => Promise<any>;
5
+ handlePostMate: (engine?: Engine) => Promise<any>;
5
6
  };
@@ -0,0 +1,5 @@
1
+ import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
2
+
3
+ export declare function useListRows(gridInstance: ControlRuntimeInstance<'grid-table'> | any): {
4
+ getRowsFromResult: (result: any, blListViewData?: any, type?: string) => any;
5
+ };
@@ -3,9 +3,9 @@ import { Engine } from '@byteluck-fe/model-driven-engine';
3
3
  import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
4
4
  import { PaginationProps } from '../../../types/PaginationProps';
5
5
  import { ISearchType } from '../../../types/controls/simple-search';
6
- import { IOrderType } from '../../../types/controls/list-view';
6
+ import { IOrderType, IViewData } from '../../../types/controls/list-view';
7
7
 
8
- export declare type listViewModelParams = {
8
+ export type listViewModelParams = {
9
9
  instance: ControlRuntimeInstance<'list-view'>;
10
10
  refs: Ref<any[]>;
11
11
  hasTree: ComputedRef<boolean>;
@@ -23,8 +23,9 @@ export declare type listViewModelParams = {
23
23
  refreshTree?: Fn;
24
24
  gridTableControl?: any;
25
25
  fillFields: string[];
26
+ viewDataRef?: Ref<IViewData>;
26
27
  };
27
- export declare type fetchTableListParams = {
28
+ export type fetchTableListParams = {
28
29
  paginationInfo?: PaginationProps;
29
30
  ordersInfo?: IOrderType[];
30
31
  queryInfo?: ISearchType[];
@@ -46,7 +47,7 @@ export declare function useListViewModel(params: listViewModelParams): {
46
47
  listPagination: Ref<any>;
47
48
  fetchTableList: ({ paginationInfo, ordersInfo, queryInfo, filtersInfo, isFilter, clear, isPost, isPageChange, isSerach, isViewSearch, }: fetchTableListParams, options?: {
48
49
  token: Number;
49
- } | undefined) => Promise<void>;
50
+ }) => Promise<void>;
50
51
  isShowAgGridFooterStatistics: Ref<boolean>;
51
52
  deleteTableRow: (record: Recordable<unknown>, condition?: any) => Promise<void>;
52
53
  getNoCountListMaxSize: ({ paginationInfo, ordersInfo, queryInfo, filtersInfo, isFilter, clear, }: fetchTableListParams) => Promise<{} | undefined>;
@@ -2,4 +2,4 @@ import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
2
2
 
3
3
  export declare function checkToGenerateRowSpan(rows: any[], instance: ControlRuntimeInstance<'list-view'>): void;
4
4
  export declare function generateSymbolIndexList(rows: any[], instance: ControlRuntimeInstance<'list-view'>): number[] | undefined;
5
- export declare function getTableHeadersModelTypeData(listViewInstance: ControlRuntimeInstance<'list-view'>): any;
5
+ export declare function getTableHeadersModelTypeData(listViewInstance: ControlRuntimeInstance<'list-view'>, options?: any): any;
@@ -5,5 +5,5 @@ import { PropsInstanceType } from '../../../constant';
5
5
 
6
6
  export declare function useSelectRelationEngineInit(props: PropsInstanceType<CONTROL_TYPE.SELECT_RELATION>, instanceProps: ShallowRef<ControlPropertyInstance<CONTROL_TYPE.SELECT_RELATION>>): {
7
7
  allFields: Ref<any>;
8
- onEngineInit: (engine: Engine, rowIndex?: number | undefined) => void;
8
+ onEngineInit: (engine: Engine, rowIndex?: number) => void;
9
9
  };
@@ -4,7 +4,7 @@ import { Engine } from '@byteluck-fe/model-driven-engine';
4
4
  import { ISearchType } from '../../../types/controls/simple-search';
5
5
  import { Rules } from 'async-validator';
6
6
 
7
- export default function useOperate(instance: ControlRuntimeInstance<'simple-search'>, emit: EmitType, formModel: ComputedRef<Record<string, any>>, context?: Engine): {
7
+ export default function useOperate(instance: ControlRuntimeInstance<'simple-search'>, emit: EmitType, formModel: ComputedRef<Record<string, any>>, simpleChildren: any, context?: Engine): {
8
8
  handleFormData: () => Promise<false | ISearchType[]>;
9
9
  rules: ShallowRef< Rules | undefined>;
10
10
  formRef: Ref<any>;
@@ -10,7 +10,10 @@ export declare function useSubtableFormEngineModal(instance: Ref<ControlRuntimeI
10
10
  readonly: ComputedRef<boolean>;
11
11
  isEditInModal: ComputedRef<boolean>;
12
12
  copyVirtualStore: (virtualStore: VirtualStoreState) => VirtualStoreState;
13
- handlerOpenModal: (rowIndex?: number | undefined) => Promise<unknown>;
13
+ handlerOpenModal: (params?: {
14
+ rowIndex?: number | undefined;
15
+ defaultRowData?: any;
16
+ } | undefined) => Promise<unknown>;
14
17
  onEngineSubmitted: (context: Engine, payload: any) => Promise<void>;
15
18
  onEngineMounted: (context: Engine) => void;
16
19
  };
@@ -0,0 +1,66 @@
1
+ import { ShallowRef, Ref } from 'vue';
2
+ import { Engine } from '@byteluck-fe/model-driven-engine';
3
+ import { GridApi } from '@ag-grid-community/core';
4
+ import { SubtablePropsInterface } from '../../../constant/controls/props/list/subtable';
5
+ import { ControlsKeys, BaseControlTypes, FieldTypes, PAGE_STATUS } from '@byteluck-fe/model-driven-core-all';
6
+
7
+ export declare const useSubtableInstanceSchemaChange: (props: SubtablePropsInterface, context: Ref<Engine> | undefined, currentAggridApi?: ShallowRef<GridApi | undefined>) => {
8
+ displayHeaders: Ref<{
9
+ controlType: "layout";
10
+ children: {
11
+ id: string;
12
+ type: ControlsKeys;
13
+ props: {
14
+ isHide: boolean;
15
+ className?: string[] | undefined;
16
+ style: {
17
+ width: number | "";
18
+ height: number | "";
19
+ widthConfig: "fill" | "px" | "%" | "hug";
20
+ heightConfig: "fill" | "px" | "%" | "hug";
21
+ };
22
+ caption: string;
23
+ defaultState: "default" | "readonly";
24
+ };
25
+ controlType: BaseControlTypes;
26
+ fieldType?: FieldTypes | undefined;
27
+ pageStatus?: PAGE_STATUS | undefined;
28
+ }[];
29
+ id: string;
30
+ type: "subtable-column";
31
+ props: {
32
+ metaAutoWidth: {
33
+ pc: {
34
+ width: number;
35
+ widthType: "auto" | "px";
36
+ minWidth: number;
37
+ maxWidth?: number | undefined;
38
+ flex: number;
39
+ };
40
+ mobile: {
41
+ width: number;
42
+ widthType: "auto" | "px";
43
+ minWidth: number;
44
+ maxWidth?: number | undefined;
45
+ flex: number;
46
+ };
47
+ };
48
+ caption: string;
49
+ fixed: boolean;
50
+ isShowCaptionTip: boolean;
51
+ captionTip: string;
52
+ isHideCaption: boolean;
53
+ isHide: boolean;
54
+ className?: string[] | undefined;
55
+ style: {
56
+ width: number | "";
57
+ height: number | "";
58
+ widthConfig: "fill" | "px" | "%" | "hug";
59
+ heightConfig: "fill" | "px" | "%" | "hug";
60
+ };
61
+ defaultState: "default" | "readonly";
62
+ };
63
+ fieldType?: FieldTypes | undefined;
64
+ pageStatus?: PAGE_STATUS | undefined;
65
+ }[]>;
66
+ };
@@ -0,0 +1,14 @@
1
+ import { CONTROL_TYPE } from '@byteluck-fe/model-driven-core-all';
2
+ import { PropsInstanceType } from '../../../constant';
3
+ import { Ref, ComputedRef } from 'vue';
4
+ import { Engine } from '@byteluck-fe/model-driven-engine';
5
+
6
+ export declare function useTab(props: PropsInstanceType<CONTROL_TYPE.TAB>, options: {
7
+ lazyCount: number;
8
+ }): {
9
+ activeKey: Ref<any>;
10
+ getState: (id: string, rowIndex?: number | undefined) => any;
11
+ context: Ref<Engine> | undefined;
12
+ lazyChildren: ComputedRef<any>;
13
+ onChangeTab: (key: string) => void;
14
+ };
@@ -0,0 +1,137 @@
1
+ import { ShallowRef, Ref, ComputedRef } from 'vue';
2
+ import { ControlPropertyInstance, ControlRuntimeInstance, LimitDate } from '@byteluck-fe/model-driven-core-all';
3
+
4
+ export declare function useDateRange(instanceProps: ShallowRef<ControlPropertyInstance<'date-range' | 'date-picker' | 'search-date-range'>>, instance: ControlRuntimeInstance<'date-range' | 'date-picker' | 'search-date-range'>): {
5
+ minDate: Ref<{
6
+ toString: () => string;
7
+ toDateString: () => string;
8
+ toTimeString: () => string;
9
+ toLocaleString: {
10
+ (): string;
11
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
12
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
13
+ };
14
+ toLocaleDateString: {
15
+ (): string;
16
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
17
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
18
+ };
19
+ toLocaleTimeString: {
20
+ (): string;
21
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
22
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
23
+ };
24
+ valueOf: () => number;
25
+ getTime: () => number;
26
+ getFullYear: () => number;
27
+ getUTCFullYear: () => number;
28
+ getMonth: () => number;
29
+ getUTCMonth: () => number;
30
+ getDate: () => number;
31
+ getUTCDate: () => number;
32
+ getDay: () => number;
33
+ getUTCDay: () => number;
34
+ getHours: () => number;
35
+ getUTCHours: () => number;
36
+ getMinutes: () => number;
37
+ getUTCMinutes: () => number;
38
+ getSeconds: () => number;
39
+ getUTCSeconds: () => number;
40
+ getMilliseconds: () => number;
41
+ getUTCMilliseconds: () => number;
42
+ getTimezoneOffset: () => number;
43
+ setTime: (time: number) => number;
44
+ setMilliseconds: (ms: number) => number;
45
+ setUTCMilliseconds: (ms: number) => number;
46
+ setSeconds: (sec: number, ms?: number | undefined) => number;
47
+ setUTCSeconds: (sec: number, ms?: number | undefined) => number;
48
+ setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
49
+ setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
50
+ setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
51
+ setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
52
+ setDate: (date: number) => number;
53
+ setUTCDate: (date: number) => number;
54
+ setMonth: (month: number, date?: number | undefined) => number;
55
+ setUTCMonth: (month: number, date?: number | undefined) => number;
56
+ setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
57
+ setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
58
+ toUTCString: () => string;
59
+ toISOString: () => string;
60
+ toJSON: (key?: any) => string;
61
+ [Symbol.toPrimitive]: {
62
+ (hint: "default"): string;
63
+ (hint: "string"): string;
64
+ (hint: "number"): number;
65
+ (hint: string): string | number;
66
+ };
67
+ }>;
68
+ maxDate: Ref<{
69
+ toString: () => string;
70
+ toDateString: () => string;
71
+ toTimeString: () => string;
72
+ toLocaleString: {
73
+ (): string;
74
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
75
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
76
+ };
77
+ toLocaleDateString: {
78
+ (): string;
79
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
80
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
81
+ };
82
+ toLocaleTimeString: {
83
+ (): string;
84
+ (locales?: string | string[] | undefined, options?: Intl.DateTimeFormatOptions | undefined): string;
85
+ (locales?: Intl.LocalesArgument, options?: Intl.DateTimeFormatOptions | undefined): string;
86
+ };
87
+ valueOf: () => number;
88
+ getTime: () => number;
89
+ getFullYear: () => number;
90
+ getUTCFullYear: () => number;
91
+ getMonth: () => number;
92
+ getUTCMonth: () => number;
93
+ getDate: () => number;
94
+ getUTCDate: () => number;
95
+ getDay: () => number;
96
+ getUTCDay: () => number;
97
+ getHours: () => number;
98
+ getUTCHours: () => number;
99
+ getMinutes: () => number;
100
+ getUTCMinutes: () => number;
101
+ getSeconds: () => number;
102
+ getUTCSeconds: () => number;
103
+ getMilliseconds: () => number;
104
+ getUTCMilliseconds: () => number;
105
+ getTimezoneOffset: () => number;
106
+ setTime: (time: number) => number;
107
+ setMilliseconds: (ms: number) => number;
108
+ setUTCMilliseconds: (ms: number) => number;
109
+ setSeconds: (sec: number, ms?: number | undefined) => number;
110
+ setUTCSeconds: (sec: number, ms?: number | undefined) => number;
111
+ setMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
112
+ setUTCMinutes: (min: number, sec?: number | undefined, ms?: number | undefined) => number;
113
+ setHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
114
+ setUTCHours: (hours: number, min?: number | undefined, sec?: number | undefined, ms?: number | undefined) => number;
115
+ setDate: (date: number) => number;
116
+ setUTCDate: (date: number) => number;
117
+ setMonth: (month: number, date?: number | undefined) => number;
118
+ setUTCMonth: (month: number, date?: number | undefined) => number;
119
+ setFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
120
+ setUTCFullYear: (year: number, month?: number | undefined, date?: number | undefined) => number;
121
+ toUTCString: () => string;
122
+ toISOString: () => string;
123
+ toJSON: (key?: any) => string;
124
+ [Symbol.toPrimitive]: {
125
+ (hint: "default"): string;
126
+ (hint: "string"): string;
127
+ (hint: "number"): number;
128
+ (hint: string): string | number;
129
+ };
130
+ }>;
131
+ disabledDates: {
132
+ min: Date;
133
+ max: Date;
134
+ }[];
135
+ limitDateList: ComputedRef< LimitDate[]>;
136
+ instanceProps: ShallowRef<ControlPropertyInstance<"date-picker" | "date-range" | "search-date-range">>;
137
+ };
@@ -0,0 +1,35 @@
1
+ import { ComputedRef, Ref, ShallowRef } from 'vue';
2
+ import { RuntimeFormControl, PAGE_STATUS, PropertyRuntimeRules } from '@byteluck-fe/model-driven-core-all';
3
+ import { Engine } from '@byteluck-fe/model-driven-engine';
4
+
5
+ declare enum PROCESS_DISPLAY_TYPE {
6
+ DISABLED = "disabled",
7
+ TEXT = "text"
8
+ }
9
+ export declare function useFormItemValidate(): {
10
+ formItemRef: Ref<any>;
11
+ formItemValidate: () => Promise<any>;
12
+ };
13
+ export declare function useBaseForm<T extends RuntimeFormControl>(instanceProps: ShallowRef<T['props']>, instance: T, rowIndex: number | undefined, value?: ComputedRef<any>): {
14
+ context: Ref<Engine> | undefined;
15
+ isDisabled: ComputedRef<boolean>;
16
+ placeholder: ComputedRef<any>;
17
+ updateValue: (value: string | string[] | number | number[] | object) => void;
18
+ pageStatus: ComputedRef< PAGE_STATUS>;
19
+ isReadonly: ComputedRef<boolean>;
20
+ isProcessForm: boolean;
21
+ isEditable: ComputedRef<boolean>;
22
+ isReadonlyHandler: ComputedRef<boolean>;
23
+ rules: ComputedRef< PropertyRuntimeRules>;
24
+ formItemRef: Ref<any>;
25
+ formItemValidate: () => Promise<any>;
26
+ isPrint: ComputedRef<boolean>;
27
+ isSubtable: ComputedRef<boolean>;
28
+ isMobileEditable: ComputedRef<boolean>;
29
+ props: ShallowRef<T["props"]>;
30
+ isApproval: boolean;
31
+ processFormReadonlyControlMode: unknown;
32
+ getDisplayType: () => string;
33
+ PROCESS_DISPLAY_TYPE: typeof PROCESS_DISPLAY_TYPE;
34
+ };
35
+ export {};
@@ -21,7 +21,7 @@ export declare function useBatchPrint(props: any, options?: {
21
21
  }[]>;
22
22
  isHaveUploadWordTemplate: ComputedRef<any>;
23
23
  onlyHaveSystemPrint: ComputedRef<boolean>;
24
- handlePrint: (e?: any, formKey?: string | undefined) => Promise<void>;
24
+ handlePrint: (e?: any, formKey?: string) => Promise<void>;
25
25
  jumpToPrintUrl: (formKey: string) => void;
26
26
  showPrint: ComputedRef<boolean>;
27
27
  };
@@ -18,7 +18,7 @@ export declare function useChangeLog(params: {
18
18
  element_type?: string | undefined;
19
19
  field_code?: string | undefined;
20
20
  field_type?: string | undefined;
21
- operation_type?: "DELETE" | "UPDATE" | "INSERT" | undefined;
21
+ operation_type?: "UPDATE" | "DELETE" | "INSERT" | undefined;
22
22
  result_value?: unknown;
23
23
  source_value?: unknown;
24
24
  sub_data_code?: string | undefined;
@@ -26,7 +26,7 @@ export declare function useChangeLog(params: {
26
26
  operation_action_type?: "MANUAL" | "SERVICE" | undefined;
27
27
  operation_time?: string | undefined;
28
28
  operation_timestamp?: number | undefined;
29
- operation_type?: "DELETE" | "UPDATE" | "INSERT" | undefined;
29
+ operation_type?: "UPDATE" | "DELETE" | "INSERT" | undefined;
30
30
  operator?: {
31
31
  all_dept_id_list?: string[] | undefined;
32
32
  all_group_code_list?: string[] | undefined;
@@ -3,8 +3,8 @@ import { PropsInstanceType } from '../../constant';
3
3
 
4
4
  export declare function useFormEvents(props: PropsInstanceType<any>): {
5
5
  isFocusing: Ref<boolean>;
6
- onBlur: (value: unknown, options?: Record<string, unknown> | undefined) => void;
7
- onFocus: (value: unknown, options?: Record<string, unknown> | undefined) => void;
8
- onInput: (value: unknown, options?: Record<string, unknown> | undefined) => void;
9
- onClick: (value: unknown, options?: Record<string, unknown> | undefined) => void;
6
+ onBlur: (value: unknown, options?: Record<string, unknown>) => void;
7
+ onFocus: (value: unknown, options?: Record<string, unknown>) => void;
8
+ onInput: (value: unknown, options?: Record<string, unknown>) => void;
9
+ onClick: (value: unknown, options?: Record<string, unknown>) => void;
10
10
  };
@@ -0,0 +1,4 @@
1
+ import { Engine } from '@byteluck-fe/model-driven-engine';
2
+ import { Ref } from 'vue';
3
+
4
+ export declare function useFormPageMask(formContainerRef: Ref<HTMLBaseElement>, engine: Ref<Engine> | undefined): void;
@@ -1,5 +1,12 @@
1
1
  import { Ref, ComputedRef } from 'vue';
2
- export declare function useDashboardState(appId: MayBeRef<string>, dashboardKey: MayBeRef<string>): {
2
+ interface dashboardParams {
3
+ appId: MayBeRef<string>;
4
+ dashboardKey: MayBeRef<string>;
5
+ formKey?: MayBeRef<string>;
6
+ dataId?: MayBeRef<string>;
7
+ reportParams?: any;
8
+ }
9
+ export declare function useDashboardState(params: dashboardParams): {
3
10
  title: Ref<string>;
4
11
  state: Ref<{
5
12
  app_id?: string | undefined;
@@ -22,3 +29,4 @@ export declare function useDashboardState(appId: MayBeRef<string>, dashboardKey:
22
29
  isError: ComputedRef<boolean>;
23
30
  loading: Ref<boolean>;
24
31
  };
32
+ export {};
@@ -13,6 +13,7 @@ export declare function useApprovalForm(handlerRenderError: (error: {
13
13
  formKey: string;
14
14
  dataCode?: string | undefined;
15
15
  formType: string;
16
+ viewType?: string | undefined;
16
17
  };
17
18
  processInfo: {
18
19
  appId: string;
@@ -25,6 +26,8 @@ export declare function useApprovalForm(handlerRenderError: (error: {
25
26
  processDefinitionKey: string;
26
27
  bizKey: string;
27
28
  processParam: {};
29
+ noticeId: string;
30
+ noteId: string;
28
31
  };
29
32
  dataCode: ComputedRef<any>;
30
33
  isTodoOrDone: ComputedRef<boolean>;
@@ -43,5 +46,7 @@ export declare function useApprovalForm(handlerRenderError: (error: {
43
46
  };
44
47
  custom: number;
45
48
  isShowTip: boolean;
49
+ command_policy_type: string;
50
+ next_node_config: string;
46
51
  }) => Promise<unknown>;
47
52
  };