@byteluck-fe/runtime-engine 1.1.4 → 1.2.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 (68) hide show
  1. package/dist/packages/runtime-engine/src/runtimeEngine.d.ts +1 -3
  2. package/dist/runtime-engine.js +2016 -1853
  3. package/dist/src/components/meKeepAlive/core/renderer.d.ts +10 -10
  4. package/dist/src/components/meKeepAlive/core/vnode.d.ts +3 -3
  5. package/dist/src/components/meKeepAlive/index.d.ts +1 -1
  6. package/dist/src/components/update-log/utils.d.ts +2 -2
  7. package/dist/src/constant/page/address.d.ts +12 -12
  8. package/dist/src/entry_desktop/controls/components/base-table/hooks/useTableContext.d.ts +2 -2
  9. package/dist/src/entry_desktop/controls/components/base-table/types/table.d.ts +2 -2
  10. package/dist/src/entry_desktop/controls/components/subtable-ag-grid/hooks/useWCModalComponentChangeValue.d.ts +1 -1
  11. package/dist/src/entry_desktop/controls/rok-amount/hook.d.ts +1 -1
  12. package/dist/src/entry_desktop/controls/rok-attachment/hook.d.ts +1 -1
  13. package/dist/src/entry_desktop/controls/rok-date-picker/hook.d.ts +1 -1
  14. package/dist/src/entry_desktop/controls/rok-date-range/hook.d.ts +1 -1
  15. package/dist/src/entry_desktop/controls/rok-employee/hook.d.ts +1 -1
  16. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useColumns.d.ts +1 -1
  17. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useOperate.d.ts +2 -2
  18. package/dist/src/entry_desktop/controls/rok-image/hook.d.ts +1 -1
  19. package/dist/src/entry_desktop/controls/rok-search-number-range/hook.d.ts +1 -1
  20. package/dist/src/entry_desktop/hooks/useInitPage.d.ts +2 -2
  21. package/dist/src/entry_mobile/components/VanSuperForm/VanSuperForm.d.ts +2 -2
  22. package/dist/src/entry_mobile/components/VanSuperForm/index.d.ts +1 -1
  23. package/dist/src/entry_mobile/controls/components/table/types/table.d.ts +1 -1
  24. package/dist/src/entry_mobile/controls/rok-amount/hook.d.ts +1 -1
  25. package/dist/src/entry_mobile/controls/rok-attachment/upload.type.d.ts +5 -5
  26. package/dist/src/entry_mobile/controls/rok-employee/src/constant/index.d.ts +4 -4
  27. package/dist/src/entry_mobile/controls/rok-employee2/src/constant/index.d.ts +4 -4
  28. package/dist/src/entry_mobile/controls/rok-image/image.type.d.ts +3 -3
  29. package/dist/src/entry_mobile/controls/rok-search-number-range/hook.d.ts +1 -1
  30. package/dist/src/entry_mobile/views/page-render/useCancel.d.ts +1 -1
  31. package/dist/src/hooks/atomic/useEventListener.d.ts +1 -1
  32. package/dist/src/hooks/components/listEngineModal/useListSelection.d.ts +2 -2
  33. package/dist/src/hooks/components/useLayout.d.ts +2 -2
  34. package/dist/src/hooks/components/useLayoutChildren.d.ts +2 -2
  35. package/dist/src/hooks/context/useRowSelectionContext.d.ts +1 -1
  36. package/dist/src/hooks/controls/ElectronicSignature/useElectronicSignature.d.ts +1 -1
  37. package/dist/src/hooks/controls/amount/useAmount.d.ts +1 -1
  38. package/dist/src/hooks/controls/listSelectButton/useEngineFillState.d.ts +1 -1
  39. package/dist/src/hooks/controls/listView/useModel.d.ts +2 -2
  40. package/dist/src/hooks/controls/number/useNumber.d.ts +1 -1
  41. package/dist/src/hooks/controls/selecRelation/selectRelation.d.ts +1 -1
  42. package/dist/src/hooks/controls/simpleSearch/useSimpleSearch.d.ts +2 -1
  43. package/dist/src/hooks/controls/subtable/useSubtableFormEngineModal.d.ts +1 -1
  44. package/dist/src/hooks/form/useBatchPrint.d.ts +1 -1
  45. package/dist/src/hooks/form/useFormEvents.d.ts +4 -4
  46. package/dist/src/hooks/views/useApprovalForm.d.ts +1 -1
  47. package/dist/src/hooks/views/useProcessForm.d.ts +1 -1
  48. package/dist/src/locales/index.d.ts +2 -2
  49. package/dist/src/plugins/engine/ActionUtilsPlugin.d.ts +2 -2
  50. package/dist/src/plugins/engine/CustomVueControlPlugin.d.ts +1 -1
  51. package/dist/src/plugins/engine/DataSourceManagePlugin.d.ts +1 -1
  52. package/dist/src/plugins/engine/DataViewPlugin.d.ts +1 -1
  53. package/dist/src/plugins/engine/DatasourceSearchPlugin.d.ts +1 -1
  54. package/dist/src/plugins/engine/EventListenerPlugin/type.d.ts +5 -5
  55. package/dist/src/plugins/engine/MultistageFillingPlugin.d.ts +1 -1
  56. package/dist/src/store/index.d.ts +1 -1
  57. package/dist/src/types/PageContext.d.ts +1 -1
  58. package/dist/src/types/approval-submit.d.ts +1 -1
  59. package/dist/src/types/type.d.ts +8 -8
  60. package/dist/src/utils/controls/attachmentUtils.d.ts +1 -1
  61. package/dist/src/utils/controls/formCopy.d.ts +1 -1
  62. package/dist/src/utils/controls/imageUtils.d.ts +1 -1
  63. package/dist/src/utils/core/crossMessageProcessor.d.ts +1 -1
  64. package/dist/src/utils/core/math.d.ts +1 -1
  65. package/dist/src/utils/model/operateCache.d.ts +2 -2
  66. package/dist/src/utils/tools/asyncInterval.d.ts +1 -1
  67. package/dist/src/utils/tools/subtableAgGridUtils.d.ts +1 -1
  68. package/package.json +7 -37
@@ -12,21 +12,21 @@ export interface RendererInternals<HostNode = RendererNode, HostElement = Render
12
12
  n: NextFn;
13
13
  o: RendererOptions<HostNode, HostElement>;
14
14
  }
15
- type PatchFn = (n1: VNode | null, // null means this is a mount
15
+ declare type PatchFn = (n1: VNode | null, // null means this is a mount
16
16
  n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, isSVG?: boolean, slotScopeIds?: string[] | null, optimized?: boolean) => void;
17
- type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
18
- type RemoveFn = (vnode: VNode) => void;
19
- type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;
17
+ declare type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
18
+ declare type RemoveFn = (vnode: VNode) => void;
19
+ declare type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;
20
20
  export declare const enum MoveType {
21
21
  ENTER = 0,
22
22
  LEAVE = 1,
23
23
  REORDER = 2
24
24
  }
25
- export type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
26
- type MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, start?: number) => void;
27
- type PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean) => void;
28
- type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null) => void;
29
- type NextFn = (vnode: VNode) => RendererNode | null;
25
+ export declare type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
26
+ declare type MountChildrenFn = (children: VNodeArrayChildren, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean, start?: number) => void;
27
+ declare type PatchChildrenFn = (n1: VNode | null, n2: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null, optimized: boolean) => void;
28
+ declare type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null) => void;
29
+ declare type NextFn = (vnode: VNode) => RendererNode | null;
30
30
  export declare const queuePostRenderEffect: typeof queuePostFlushCb | typeof queueEffectWithSuspense;
31
- export type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
31
+ export declare type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
32
32
  export {};
@@ -1,6 +1,6 @@
1
1
  import { ComponentInternalInstance, VNode } from 'vue';
2
- type VNodeMountHook = (vnode: VNode) => void;
3
- type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
4
- export type VNodeHook = VNodeMountHook | VNodeUpdateHook | VNodeMountHook[] | VNodeUpdateHook[];
2
+ declare type VNodeMountHook = (vnode: VNode) => void;
3
+ declare type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
4
+ export declare type VNodeHook = VNodeMountHook | VNodeUpdateHook | VNodeMountHook[] | VNodeUpdateHook[];
5
5
  export declare function invokeVNodeHook(hook: VNodeHook, instance: ComponentInternalInstance | null, vnode: VNode, prevVNode?: VNode | null): void;
6
6
  export {};
@@ -1,7 +1,7 @@
1
1
  import { VNode, VNodeProps, RendererElement, RendererNode } from 'vue';
2
2
  import { RendererInternals } from './core/renderer';
3
3
  import { ComponentRenderContext } from './core/componentPublicInstance';
4
- type MatchPattern = string | RegExp | Array<string | RegExp>;
4
+ declare type MatchPattern = string | RegExp | Array<string | RegExp>;
5
5
  export interface MeKeepAliveProps {
6
6
  include?: MatchPattern;
7
7
  exclude?: MatchPattern;
@@ -82,7 +82,7 @@ export interface UpdateLogEventOther extends UpdateLogEventBase<string> {
82
82
  /**
83
83
  * 操作事件
84
84
  * */
85
- export type UpdateLogEvent = UpdateLogEventPeople | UpdateLogEventDepartment | UpdateLogEventAddress | UpdateLogEventTimeStamp | UpdateLogEventOther;
85
+ export declare type UpdateLogEvent = UpdateLogEventPeople | UpdateLogEventDepartment | UpdateLogEventAddress | UpdateLogEventTimeStamp | UpdateLogEventOther;
86
86
  export interface UpdateLogItem {
87
87
  /**
88
88
  * 操作人
@@ -105,6 +105,6 @@ export interface UpdateLogItem {
105
105
  * */
106
106
  event: UpdateLogEvent[];
107
107
  }
108
- export type UpdateLogList = UpdateLogItem[];
108
+ export declare type UpdateLogList = UpdateLogItem[];
109
109
  export declare const getDay: (value: string) => string;
110
110
  export declare const getTime: (value: string) => string;
@@ -6,20 +6,20 @@ export declare const AdressTypeName: Readonly<{
6
6
  district: string;
7
7
  }>;
8
8
  export declare const SubAdressType: Readonly<{
9
- country: "province";
10
- province: "city";
11
- city: "district";
12
- district: "";
9
+ country: string;
10
+ province: string;
11
+ city: string;
12
+ district: string;
13
13
  }>;
14
14
  export declare const AdressLevel: Readonly<{
15
- first: "country";
16
- second: "province";
17
- third: "city";
18
- fourth: "district";
15
+ first: string;
16
+ second: string;
17
+ third: string;
18
+ fourth: string;
19
19
  }>;
20
20
  export declare const AdressCodes: Readonly<{
21
- China: "MDCT00000040";
22
- HongKong: "MDCT00000079";
23
- Taiwan: "MDCT00000193";
24
- Macao: "MDCT00000125";
21
+ China: string;
22
+ HongKong: string;
23
+ Taiwan: string;
24
+ Macao: string;
25
25
  }>;
@@ -1,9 +1,9 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  import { BasicTableProps, TableActionType } from '../types/table';
3
- type Instance = TableActionType & {
3
+ declare type Instance = TableActionType & {
4
4
  getTableProps: ComputedRef<Recordable>;
5
5
  };
6
- type RetInstance = Omit<Instance, 'getTableProps'> & {
6
+ declare type RetInstance = Omit<Instance, 'getTableProps'> & {
7
7
  getTableProps: ComputedRef<BasicTableProps>;
8
8
  };
9
9
  export declare function createTableContext(instance: Instance): void;
@@ -3,8 +3,8 @@ import { VueNode } from '../../../../../types/type';
3
3
  import { SubTableColumn } from '@byteluck-fe/model-driven-core-all';
4
4
  import { PaginationProps } from '../../../../../types/PaginationProps';
5
5
  export declare type SortOrder = 'ascend' | 'descend';
6
- export type SizeType = 'default' | 'middle' | 'small';
7
- export type ComponentType = 'Input' | 'Select' | 'Checkbox' | 'Switch';
6
+ export declare type SizeType = 'default' | 'middle' | 'small';
7
+ export declare type ComponentType = 'Input' | 'Select' | 'Checkbox' | 'Switch';
8
8
  export interface BasicColumn extends ColumnProps {
9
9
  title?: string;
10
10
  children?: BasicColumn[];
@@ -6,7 +6,7 @@ export declare function useWCModalComponentChangeValue(): {
6
6
  closeModal: (params: any) => void;
7
7
  onlyKey: ShallowRef<any>;
8
8
  };
9
- export type VirtuallyParams = {
9
+ export declare type VirtuallyParams = {
10
10
  ref: InstanceType<any>;
11
11
  instance: ControlRuntimeInstance<CONTROL_TYPE.EMPLOYEE | CONTROL_TYPE.EMPLOYEE2 | CONTROL_TYPE.DEPARTMENT | CONTROL_TYPE.DEPARTMENT2>;
12
12
  value: string | string[];
@@ -10,7 +10,7 @@ export default function (props: any): {
10
10
  showSelect: ComputedRef<any>;
11
11
  showUpperCase: ComputedRef<boolean>;
12
12
  amountInWords: ComputedRef<string>;
13
- pageStatus: ComputedRef<PAGE_STATUS>;
13
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
14
14
  unitType: ComputedRef<any>;
15
15
  isSubtable: ComputedRef<boolean>;
16
16
  readerValue: Ref<string>;
@@ -12,7 +12,7 @@ export default function (props: any, instance: ControlRuntimeInstance<'attachmen
12
12
  accept: ComputedRef<string>;
13
13
  hideUploader: ComputedRef<boolean>;
14
14
  fileList: ComputedRef<string[]>;
15
- pageStatus: ComputedRef<PAGE_STATUS>;
15
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
16
16
  operation: ComputedRef<string[]>;
17
17
  updateCtrlValue: (data: any) => void;
18
18
  beforeUpload: (file: any, list: any[]) => boolean | undefined;
@@ -1,7 +1,7 @@
1
1
  import { PAGE_STATUS } from '@byteluck-fe/model-driven-core';
2
2
  import { ComputedRef, Ref } from 'vue';
3
3
  export default function (props: any): {
4
- pageStatus: ComputedRef<PAGE_STATUS>;
4
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
5
5
  isDisabled: ComputedRef<boolean>;
6
6
  placeholder: ComputedRef<string>;
7
7
  dateType: ComputedRef<any>;
@@ -1,7 +1,7 @@
1
1
  import { PAGE_STATUS } from '@byteluck-fe/model-driven-core';
2
2
  import { ComputedRef, Ref } from 'vue';
3
3
  export default function (props: any): {
4
- pageStatus: ComputedRef<PAGE_STATUS>;
4
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
5
5
  placeholder: ComputedRef<string[]>;
6
6
  isDisabled: ComputedRef<boolean>;
7
7
  mode: Ref<string[]>;
@@ -1,7 +1,7 @@
1
1
  import { PAGE_STATUS } from '@byteluck-fe/model-driven-core';
2
2
  import { ComputedRef, Ref } from 'vue';
3
3
  export default function (props: any): {
4
- pageStatus: ComputedRef<PAGE_STATUS>;
4
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
5
5
  multiple: ComputedRef<any>;
6
6
  placeholder: ComputedRef<string>;
7
7
  isDisabled: ComputedRef<boolean>;
@@ -7,5 +7,5 @@ export declare function useColumns(instance: ControlRuntimeInstance<'grid-table'
7
7
  colFlag: ColFlagType;
8
8
  fullColumns: any[];
9
9
  handleSetColumns: (checkList?: string[], widthList?: typing.CustomHeaderWidthBo[]) => void;
10
- getColumns: (filtersList?: any[], wrapWidth?: number) => void;
10
+ getColumns: (filtersList?: any[], wrapWidth?: number | undefined) => void;
11
11
  };
@@ -6,7 +6,7 @@ import { PaginationProps } from '../../../../types/PaginationProps';
6
6
  import { IOrderType } from '../../../../types/controls/list-view';
7
7
  import type { fetchTableListParams } from '../../../../hooks';
8
8
  import { OperateParams } from './data';
9
- type Key = ColumnProps['key'];
9
+ declare type Key = ColumnProps['key'];
10
10
  export declare function useOperate(instance: ControlRuntimeInstance<'grid-table'>, { emit, setBatchState, selectState, setSelectState, colFlag, setBatchPrintState, setBatchDeleteState, }: OperateParams, context?: Engine, attrs?: any, props?: any): {
11
11
  cellRecord: Ref<{}>;
12
12
  closeSelf: Ref<boolean>;
@@ -15,7 +15,7 @@ export declare function useOperate(instance: ControlRuntimeInstance<'grid-table'
15
15
  handleBatchInfo: (processKey: string, initiator: string) => void;
16
16
  handleClickCell: (col: any) => void;
17
17
  handleOperateRow: (event: any) => Promise<void>;
18
- handleUpdateList: (params?: fetchTableListParams, num?: number) => void;
18
+ handleUpdateList: (params?: fetchTableListParams | undefined, num?: number) => void;
19
19
  handelDeleteRow: (record: any) => void;
20
20
  handleBatchSubmit: () => Promise<void>;
21
21
  handleCloseIframe: () => Promise<void>;
@@ -6,7 +6,7 @@ export default function (props: any, instance: ControlRuntimeInstance<'image'>,
6
6
  accept: string;
7
7
  hideUploader: ComputedRef<boolean>;
8
8
  fileList: ComputedRef<string[]>;
9
- pageStatus: ComputedRef<PAGE_STATUS>;
9
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
10
10
  isSubtable: ComputedRef<boolean>;
11
11
  operation: ComputedRef<string[]>;
12
12
  updateValue: (value: string | number | object | string[] | number[]) => void;
@@ -3,7 +3,7 @@ import { ComputedRef, Ref } from 'vue';
3
3
  export default function (props: any): {
4
4
  isDisabled: ComputedRef<boolean>;
5
5
  placeholder: ComputedRef<string[]>;
6
- pageStatus: ComputedRef<PAGE_STATUS>;
6
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
7
7
  isReadonly: ComputedRef<boolean>;
8
8
  ctrlValue: Ref<[number | "", number | ""]>;
9
9
  handleChange: () => void;
@@ -5,7 +5,7 @@ export declare function useInitPage(pageData: {
5
5
  subTableQuery?: any;
6
6
  }): {
7
7
  context: Engine;
8
- getState: (controlId: string, rowIndex?: number) => any;
9
- getInst: (id: string, rowIndex?: number) => any;
8
+ getState: (controlId: string, rowIndex?: number | undefined) => any;
9
+ getInst: (id: string, rowIndex?: number | undefined) => any;
10
10
  isMounted: Ref<boolean>;
11
11
  };
@@ -1,7 +1,7 @@
1
1
  import { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, ComputedRef, PropType } from 'vue';
2
2
  import { Rules } from 'async-validator';
3
- export type InternalNamePath = (string | number)[];
4
- export type NamePath = string | number | InternalNamePath;
3
+ export declare type InternalNamePath = (string | number)[];
4
+ export declare type NamePath = string | number | InternalNamePath;
5
5
  export interface SuperFormExpose {
6
6
  addField(eventKey: string, context: any): void;
7
7
  removeField(eventKey: string): void;
@@ -1,4 +1,4 @@
1
- import { RuleItem } from '@byteluck-fe/model-driven-core';
1
+ import { RuleItem } from 'async-validator';
2
2
  import { DefineComponent, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
3
3
  import VanSuperForm from './VanSuperForm';
4
4
  import VanFormItem from './VanFormItem';
@@ -2,7 +2,7 @@ import { ColumnProps } from 'ant-design-vue/lib/table/interface';
2
2
  import { VueNode } from '../../../../../types/type';
3
3
  import { PaginationProps } from './pagination';
4
4
  export declare type SortOrder = 'ascend' | 'descend';
5
- export type SizeType = 'default' | 'middle' | 'small';
5
+ export declare type SizeType = 'default' | 'middle' | 'small';
6
6
  export interface BasicColumn extends ColumnProps {
7
7
  children?: BasicColumn[];
8
8
  customTitle?: VueNode;
@@ -10,7 +10,7 @@ export default function (props: any): {
10
10
  showSelect: ComputedRef<any>;
11
11
  showUpperCase: ComputedRef<boolean>;
12
12
  amountInWords: ComputedRef<string>;
13
- pageStatus: ComputedRef<PAGE_STATUS>;
13
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
14
14
  readerValue: ComputedRef<string>;
15
15
  isReadonly: ComputedRef<boolean>;
16
16
  updateAmount: (amount: number | string) => void;
@@ -1,6 +1,6 @@
1
- export type ListType = 'text' | 'picture' | 'picture-card';
2
- export type UploadStatus = 'ready' | 'uploading' | 'success' | 'fail';
3
- export type UploadFile = {
1
+ export declare type ListType = 'text' | 'picture' | 'picture-card';
2
+ export declare type UploadStatus = 'ready' | 'uploading' | 'success' | 'fail';
3
+ export declare type UploadFile = {
4
4
  name: string;
5
5
  percentage?: number;
6
6
  status: UploadStatus;
@@ -32,8 +32,8 @@ export interface OkUploadRequestOptions {
32
32
  onSuccess?: (response: XMLHttpRequestResponseType) => unknown;
33
33
  withCredentials?: boolean;
34
34
  }
35
- export type FileHandler<T = void> = (file: UploadFile, uploadFiles: UploadFile[]) => T;
36
- export type FileResultHandler<T = any> = (param: T, file: UploadFile, uploadFiles: UploadFile[]) => void;
35
+ export declare type FileHandler<T = void> = (file: UploadFile, uploadFiles: UploadFile[]) => T;
36
+ export declare type FileResultHandler<T = any> = (param: T, file: UploadFile, uploadFiles: UploadFile[]) => void;
37
37
  export interface IUseHandlersProps {
38
38
  listType: ListType;
39
39
  fileList: UploadFile[];
@@ -1,9 +1,9 @@
1
1
  export const RangeType: Readonly<{
2
- all: "all";
3
- assign: "assign";
2
+ all: string;
3
+ assign: string;
4
4
  }>;
5
5
  export const DefaultValueType: Readonly<{
6
- current: "current";
7
- assigned: "assigned";
6
+ current: string;
7
+ assigned: string;
8
8
  }>;
9
9
  export const UserLimit: 50;
@@ -1,9 +1,9 @@
1
1
  export const RangeType: Readonly<{
2
- all: "all";
3
- assign: "assign";
2
+ all: string;
3
+ assign: string;
4
4
  }>;
5
5
  export const DefaultValueType: Readonly<{
6
- current: "current";
7
- assigned: "assigned";
6
+ current: string;
7
+ assigned: string;
8
8
  }>;
9
9
  export const UserLimit: 50;
@@ -1,5 +1,5 @@
1
- export type UploadStatus = 'ready' | 'uploading' | 'success' | 'fail';
2
- export type UploadFile = {
1
+ export declare type UploadStatus = 'ready' | 'uploading' | 'success' | 'fail';
2
+ export declare type UploadFile = {
3
3
  name?: string;
4
4
  percentage?: number;
5
5
  status: UploadStatus;
@@ -11,7 +11,7 @@ export type UploadFile = {
11
11
  message: string;
12
12
  isImage?: boolean;
13
13
  };
14
- export type UpdateFile = {
14
+ export declare type UpdateFile = {
15
15
  percentage?: number;
16
16
  status?: UploadStatus;
17
17
  response?: unknown;
@@ -3,7 +3,7 @@ import { ComputedRef, Ref } from 'vue';
3
3
  export default function (props: any): {
4
4
  isDisabled: ComputedRef<boolean>;
5
5
  placeholder: ComputedRef<string[]>;
6
- pageStatus: ComputedRef<PAGE_STATUS>;
6
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
7
7
  isReadonly: ComputedRef<boolean>;
8
8
  ctrlValue: Ref<[number | "", number | ""]>;
9
9
  handleChange: () => void;
@@ -1,3 +1,3 @@
1
1
  export declare function useCancel(): {
2
- cancelHandle: (type?: string) => void;
2
+ cancelHandle: (type?: string | undefined) => void;
3
3
  };
@@ -1,5 +1,5 @@
1
1
  import { Ref } from 'vue';
2
- export type RemoveEventFn = () => void;
2
+ export declare type RemoveEventFn = () => void;
3
3
  export interface UseEventParams {
4
4
  el?: Element | Ref<Element | undefined> | Window | any;
5
5
  name: string;
@@ -1,7 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { ColumnProps } from 'ant-design-vue/es/table/interface';
3
- type Key = ColumnProps['key'];
4
- export type SelectStateType = {
3
+ declare type Key = ColumnProps['key'];
4
+ export declare type SelectStateType = {
5
5
  selectedRowKeys: Key[];
6
6
  selectedRows: Record<string, unknown>[];
7
7
  };
@@ -7,8 +7,8 @@ export declare function useLayout(instance: RuntimeLayoutControl, params?: {
7
7
  }): {
8
8
  isHide: ComputedRef<boolean>;
9
9
  context: Ref<Engine> | undefined;
10
- getState: (id: string, rowIndex?: number) => {};
11
- getDisplay: (control: any, rowIndex?: number) => any;
10
+ getState: (id: string, rowIndex?: number | undefined) => unknown;
11
+ getDisplay: (control: any, rowIndex?: number | undefined) => any;
12
12
  children: ShallowRef<never[]> | ShallowRef<RuntimeControl[]>;
13
13
  allChildren: ShallowRef<RuntimeControl[]>;
14
14
  lazyChildren: ComputedRef<RuntimeControl[]>;
@@ -1,7 +1,7 @@
1
1
  import { ShallowRef, Ref, ComputedRef } from 'vue';
2
2
  import { RuntimeLayoutControl, RuntimeListControl } from '@byteluck-fe/model-driven-core-all';
3
- export declare function useLayoutChildren<T extends RuntimeLayoutControl | RuntimeListControl>(instance: T): ShallowRef<never[]> | (T["children"] extends infer T_1 ? T_1 extends T["children"] ? T_1 extends Ref<any> ? T_1 : ShallowRef<T_1> : never : never);
3
+ export declare function useLayoutChildren<T extends RuntimeLayoutControl | RuntimeListControl>(instance: T): ShallowRef<never[]> | (T["children"] extends Ref<any> ? T["children"] : ShallowRef<T["children"]>);
4
4
  export declare function useListHeader<T extends RuntimeListControl>(instance: T): {
5
- headers: T["props"]["headers"] extends infer T_1 ? T_1 extends T["props"]["headers"] ? T_1 extends Ref<any> ? T_1 : ShallowRef<T_1> : never : never;
5
+ headers: T["props"]["headers"] extends Ref<any> ? T["props"]["headers"] : ShallowRef<T["props"]["headers"]>;
6
6
  operationBtns: ComputedRef<any>;
7
7
  };
@@ -1,6 +1,6 @@
1
1
  import { VNode } from 'vue';
2
2
  import { ColumnProps } from 'ant-design-vue/es/table/interface';
3
- type Key = ColumnProps['key'];
3
+ declare type Key = ColumnProps['key'];
4
4
  export interface RowSelectionProps {
5
5
  columnWidth?: string | number;
6
6
  columnTitle?: string | VNode;
@@ -20,5 +20,5 @@ export declare const useElectronicSignature: (props: {
20
20
  mobileShowPopup: Ref<boolean>;
21
21
  mobilPopopActiveTab: Ref<string>;
22
22
  signResult: any;
23
- pageStatus: ComputedRef<PAGE_STATUS>;
23
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
24
24
  };
@@ -11,7 +11,7 @@ export declare function useAmount(props: any): {
11
11
  showSelect: ComputedRef<any>;
12
12
  showUpperCase: ComputedRef<boolean>;
13
13
  amountInWords: ComputedRef<string>;
14
- pageStatus: ComputedRef<PAGE_STATUS>;
14
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
15
15
  formItemRef: Ref<any>;
16
16
  validNumber: (value: string) => boolean;
17
17
  thousFormat: (value: string | number) => string;
@@ -4,7 +4,7 @@ import { ControlRuntimeInstance, MultistageFillingItem } from '@byteluck-fe/mode
4
4
  * 处理engine填充数据的方法
5
5
  * */
6
6
  export declare function useEngineFillState(instance: ControlRuntimeInstance<'list-select-button'>, fillList: Ref<MultistageFillingItem[]>, primaryKeyFilledControlId?: Ref<string | undefined>): {
7
- handlerFillState: (state: Record<string, unknown> | undefined, rowIndex?: number, concat?: Ref<boolean> | boolean) => void;
7
+ handlerFillState: (state: Record<string, unknown> | undefined, rowIndex?: number | undefined, concat?: Ref<boolean> | boolean) => void;
8
8
  handlerFillSubtableState: (state: Array<Record<string, unknown>> | undefined, dataCode: string) => void;
9
9
  handlerComputedState: () => Record<string, unknown>;
10
10
  mergedStatesToObject: (rows: Array<Record<string, unknown>>) => Record<string, string[]>;
@@ -4,7 +4,7 @@ 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
6
  import { IOrderType } from '../../../types/controls/list-view';
7
- export type listViewModelParams = {
7
+ export declare type listViewModelParams = {
8
8
  instance: ControlRuntimeInstance<'list-view'>;
9
9
  refs: Ref<any[]>;
10
10
  hasTree: ComputedRef<boolean>;
@@ -22,7 +22,7 @@ export type listViewModelParams = {
22
22
  refreshTree?: Fn;
23
23
  organizationProps?: any;
24
24
  };
25
- export type fetchTableListParams = {
25
+ export declare type fetchTableListParams = {
26
26
  paginationInfo?: PaginationProps;
27
27
  ordersInfo?: IOrderType[];
28
28
  queryInfo?: ISearchType[];
@@ -14,7 +14,7 @@ export declare function useNumber(props: UseNumberProps, { changeUpdate }?: UseN
14
14
  isMobileEditable: ComputedRef<boolean>;
15
15
  isDisabled: ComputedRef<boolean>;
16
16
  placeholder: ComputedRef<string>;
17
- pageStatus: ComputedRef<PAGE_STATUS>;
17
+ pageStatus: ComputedRef<PAGE_STATUS | undefined>;
18
18
  prefix: ComputedRef<string>;
19
19
  suffix: ComputedRef<string>;
20
20
  innerValue: Ref<string | number>;
@@ -16,5 +16,5 @@ export declare function useRelationValue(props: {
16
16
  }[]>;
17
17
  displayValue: any;
18
18
  updateRelationValue: (selectState: any) => void;
19
- queryRelationValue: (selectedValue?: string, isUpdate?: boolean) => false | undefined;
19
+ queryRelationValue: (selectedValue?: string | undefined, isUpdate?: boolean) => false | undefined;
20
20
  };
@@ -1,5 +1,6 @@
1
+ import { Rules } from 'async-validator';
1
2
  import { ShallowRef, Ref, ComputedRef } from 'vue';
2
- import { Rules, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
3
+ import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
3
4
  import { Engine } from '@byteluck-fe/model-driven-engine';
4
5
  import { ISearchType } from '../../../types/controls/simple-search';
5
6
  export default function useOperate(instance: ControlRuntimeInstance<'simple-search'>, emit: EmitType, formModel: ComputedRef<Record<string, any>>, context?: Engine): {
@@ -12,7 +12,7 @@ export declare function useSubtableFormEngineModal(instance: Ref<ControlRuntimeI
12
12
  readonly: ComputedRef<boolean>;
13
13
  isEditInModal: ComputedRef<boolean>;
14
14
  copyVirtualStore: (virtualStore: VirtualStoreState) => VirtualStoreState;
15
- handlerOpenModal: (rowIndex?: number) => Promise<unknown>;
15
+ handlerOpenModal: (rowIndex?: number | undefined) => Promise<unknown>;
16
16
  onEngineSubmitted: (context: Engine, payload: any) => void;
17
17
  onEngineMounted: (context: any) => void;
18
18
  };
@@ -15,7 +15,7 @@ export declare function useBatchPrint(props: any): {
15
15
  }[]>;
16
16
  isHaveUploadWordTemplate: ComputedRef<any>;
17
17
  onlyHaveSystemPrint: ComputedRef<boolean>;
18
- handlePrint: (e?: any, formKey?: string) => Promise<void>;
18
+ handlePrint: (e?: any, formKey?: string | undefined) => Promise<void>;
19
19
  jumpToPrintUrl: (formKey: string) => void;
20
20
  showPrint: ComputedRef<boolean>;
21
21
  };
@@ -5,8 +5,8 @@ export declare function useFormEvents(props: {
5
5
  rowIndex?: number;
6
6
  }): {
7
7
  isFocusing: Ref<boolean>;
8
- onBlur: (value: unknown, options?: Record<string, unknown>) => void;
9
- onFocus: (value: unknown, options?: Record<string, unknown>) => void;
10
- onInput: (value: unknown, options?: Record<string, unknown>) => void;
11
- onClick: (value: unknown, options?: Record<string, unknown>) => void;
8
+ onBlur: (value: unknown, options?: Record<string, unknown> | undefined) => void;
9
+ onFocus: (value: unknown, options?: Record<string, unknown> | undefined) => void;
10
+ onInput: (value: unknown, options?: Record<string, unknown> | undefined) => void;
11
+ onClick: (value: unknown, options?: Record<string, unknown> | undefined) => void;
12
12
  };
@@ -30,7 +30,7 @@ export declare function useApprovalForm(handlerRenderError: (error: {
30
30
  engine: Ref<Engine | undefined>;
31
31
  onEngineInit: (context: Engine) => void;
32
32
  isEngineMounted: ComputedRef<boolean>;
33
- engineState: ComputedRef<{}>;
33
+ engineState: ComputedRef<unknown>;
34
34
  onBeforeBtnClick: (clickedBtn: {
35
35
  command_id: string;
36
36
  command_type: string;
@@ -29,5 +29,5 @@ export declare function useProcessForm(handlerRenderError: (error: {
29
29
  engine: Ref<Engine | undefined>;
30
30
  onEngineInit: (context: Engine) => void;
31
31
  isEngineMounted: ComputedRef<boolean>;
32
- engineState: ComputedRef<{}>;
32
+ engineState: ComputedRef<unknown>;
33
33
  };
@@ -1,5 +1,5 @@
1
1
  import { App } from 'vue';
2
- import { OkI18n } from 'ok-i18n/lib/i18n';
2
+ import { default as __DTS_1__ } from 'ok-i18n';
3
3
  import { useI18n } from './vue-i18n';
4
4
  declare const LOCALE_KEY = "local";
5
5
  declare enum LocaleEnum {
@@ -9,7 +9,7 @@ declare enum LocaleEnum {
9
9
  }
10
10
  declare const locale: string;
11
11
  declare const i18n: {
12
- global: OkI18n;
12
+ global: __DTS_1__;
13
13
  locale: string;
14
14
  $t: (path: string, fallback: string, variables?: Record<string, string | number> | undefined) => string;
15
15
  install(app: App<any>): void;
@@ -1,7 +1,7 @@
1
- import { FetchService } from '../../utils/core';
1
+ import { FetchService } from '@byteluck-fe/global-shared';
2
2
  import { Engine, Plugin } from '@byteluck-fe/model-driven-engine';
3
3
  import { ControlRuntimeInstance, ControlsKeys } from '@byteluck-fe/model-driven-core-all';
4
- type ActionUtilType = {
4
+ declare type ActionUtilType = {
5
5
  device: string;
6
6
  userInfo: any;
7
7
  tenant: any;
@@ -1,5 +1,5 @@
1
1
  import { Plugin, Engine } from '@byteluck-fe/model-driven-engine';
2
- export type CustomConfig = {
2
+ export declare type CustomConfig = {
3
3
  module: {
4
4
  compiled: string;
5
5
  source: string;
@@ -21,5 +21,5 @@ export declare class DataSourceManagePlugin implements Plugin {
21
21
  private cacheRequest;
22
22
  constructor(options: any, isPreviewMode: boolean);
23
23
  apply(engine: Engine): void;
24
- requestData(payload: EventPayload): Promise<{}>;
24
+ requestData(payload: EventPayload): Promise<unknown>;
25
25
  }
@@ -1,6 +1,6 @@
1
1
  import { Engine, EventPayload, Plugin } from '@byteluck-fe/model-driven-engine';
2
2
  import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
3
- type Types = 'cancel' | 'save' | 'print' | 'save_as' | 'draft';
3
+ declare type Types = 'cancel' | 'save' | 'print' | 'save_as' | 'draft';
4
4
  interface ButtonItem {
5
5
  name: string;
6
6
  props: {