@byteluck-fe/runtime-engine 3.0.0 → 6.2.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/runtime-engine.js +17054 -13773
  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/page/address.d.ts +12 -12
  7. package/dist/src/constant/page/table/column.d.ts +3 -3
  8. package/dist/src/entry_desktop/components/EllipsisTooltip/EllipsisTooltip.d.ts +87 -0
  9. package/dist/src/entry_desktop/components/FormEngine/index.d.ts +3 -0
  10. package/dist/src/entry_desktop/controls/components/base-table/components/editable/componentMap.d.ts +2 -2
  11. package/dist/src/entry_desktop/controls/components/base-table/hooks/useTableContext.d.ts +2 -2
  12. package/dist/src/entry_desktop/controls/components/base-table/types/table.d.ts +2 -2
  13. package/dist/src/entry_desktop/controls/components/subtable-ag-grid/hooks/use-sort-hooks.d.ts +1 -1
  14. package/dist/src/entry_desktop/controls/components/subtable-ag-grid/hooks/useWCModalComponentChangeValue.d.ts +1 -1
  15. package/dist/src/entry_desktop/controls/rok-comment/index.d.ts +3 -0
  16. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useAgGrid.d.ts +1 -1
  17. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useBackgroundStyle.d.ts +1 -1
  18. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useColumns.d.ts +20 -4
  19. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useModel.d.ts +1 -1
  20. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useNonePage.d.ts +1 -1
  21. package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useViewStyle.d.ts +1 -1
  22. package/dist/src/entry_desktop/controls/rok-list-view-title/rule-filter/sok-advanced-filter/utils/date-range.d.ts +1 -1
  23. package/dist/src/entry_desktop/controls/rok-step/index.d.ts +3 -0
  24. package/dist/src/entry_desktop/controls/rok-sublist/hooks/useModel.d.ts +1 -0
  25. package/dist/src/entry_desktop/controls/rok-subtable/hooks/useGetTemplateList.d.ts +1 -1
  26. package/dist/src/entry_desktop/controls/rok-subtable/hooks/useSubtableSelectionState.d.ts +1 -1
  27. package/dist/src/entry_desktop/controls/rok-table-layout/index.d.ts +3 -0
  28. package/dist/src/entry_desktop/controls/rok-table-layout-row/index.d.ts +4 -0
  29. package/dist/src/entry_desktop/controls/rok-table-layout-wrapper/index.d.ts +3 -0
  30. package/dist/src/entry_desktop/hooks/layoutVar.d.ts +197 -0
  31. package/dist/src/entry_desktop/views/list-application/hooks/useListApplication.d.ts +3 -3
  32. package/dist/src/entry_mobile/components/VanSuperForm/VanSuperForm.d.ts +2 -2
  33. package/dist/src/entry_mobile/controls/components/table/hooks/hook.d.ts +2 -0
  34. package/dist/src/entry_mobile/controls/components/table/types/table.d.ts +1 -1
  35. package/dist/src/entry_mobile/controls/rok-attachment/hook-file-base.d.ts +40 -3
  36. package/dist/src/entry_mobile/controls/rok-attachment/upload.type.d.ts +5 -5
  37. package/dist/src/entry_mobile/controls/rok-attachment/utils.d.ts +2 -1
  38. package/dist/src/entry_mobile/controls/rok-comment/index.d.ts +3 -0
  39. package/dist/src/entry_mobile/controls/rok-date-picker/hook.d.ts +148 -3
  40. package/dist/src/entry_mobile/controls/rok-date-range/hook.d.ts +149 -3
  41. package/dist/src/entry_mobile/controls/rok-department/hook.d.ts +20 -3
  42. package/dist/src/entry_mobile/controls/rok-department2/hook.d.ts +21 -3
  43. package/dist/src/entry_mobile/controls/rok-employee/src/constant/index.d.ts +4 -4
  44. package/dist/src/entry_mobile/controls/rok-employee2/src/constant/index.d.ts +4 -4
  45. package/dist/src/entry_mobile/controls/rok-grid-table/hooks/useRender.d.ts +3 -0
  46. package/dist/src/entry_mobile/controls/rok-image/image.type.d.ts +3 -3
  47. package/dist/src/entry_mobile/controls/rok-list-view/hook.d.ts +2 -1
  48. package/dist/src/entry_mobile/controls/rok-organization-selection/hook.d.ts +20 -3
  49. package/dist/src/entry_mobile/controls/rok-search-date-range/hook.d.ts +146 -3
  50. package/dist/src/entry_mobile/controls/rok-step/index.d.ts +3 -0
  51. package/dist/src/entry_mobile/controls/rok-subtable/components/AgGrid/hooks/useAgGrid.d.ts +2 -0
  52. package/dist/src/entry_mobile/controls/rok-subtable/hooks/useFull.d.ts +1 -1
  53. package/dist/src/entry_mobile/controls/rok-table-layout/index.d.ts +3 -0
  54. package/dist/src/entry_mobile/controls/rok-table-layout-row/index.d.ts +4 -0
  55. package/dist/src/entry_mobile/controls/rok-table-layout-wrapper/index.d.ts +3 -0
  56. package/dist/src/entry_mobile/views/page-render/process-form/hooks.d.ts +1 -0
  57. package/dist/src/entry_mobile/views/page-render/useCancel.d.ts +1 -1
  58. package/dist/src/hooks/ag-grid-config.d.ts +4 -0
  59. package/dist/src/hooks/atomic/useEventListener.d.ts +1 -1
  60. package/dist/src/hooks/components/formEngineModal/index.d.ts +1 -0
  61. package/dist/src/hooks/components/formEngineModal/useFormEngine.d.ts +43 -0
  62. package/dist/src/hooks/components/formEngineModal/useFormEngineModal.d.ts +1 -0
  63. package/dist/src/hooks/components/formEngineModal/useFormState.d.ts +1 -0
  64. package/dist/src/hooks/components/listEngineModal/useListEngineModal.d.ts +3 -0
  65. package/dist/src/hooks/components/listEngineModal/useListState.d.ts +2 -1
  66. package/dist/src/hooks/components/useGroupTaskCommentTag.d.ts +3 -0
  67. package/dist/src/hooks/components/useLayoutChildren.d.ts +2 -2
  68. package/dist/src/hooks/components/useList.d.ts +9 -0
  69. package/dist/src/hooks/context/useGlobalEngineContext.d.ts +1 -0
  70. package/dist/src/hooks/controls/department2/useDepartmentDisabledSelected.d.ts +5 -0
  71. package/dist/src/hooks/controls/form/interface.d.ts +2 -2
  72. package/dist/src/hooks/controls/listMaster/useModel.d.ts +1 -0
  73. package/dist/src/hooks/controls/listSelectButton/useEngineFillState.d.ts +2 -2
  74. package/dist/src/hooks/controls/listSelectButton/useListSelectButton.d.ts +1 -1
  75. package/dist/src/hooks/controls/listView/useIframe.d.ts +2 -1
  76. package/dist/src/hooks/controls/listView/useListRows.d.ts +5 -0
  77. package/dist/src/hooks/controls/listView/useModel.d.ts +5 -4
  78. package/dist/src/hooks/controls/listView/useRowSpanModel.d.ts +1 -1
  79. package/dist/src/hooks/controls/selecRelation/useSelectRelationEngineInit.d.ts +1 -1
  80. package/dist/src/hooks/controls/simpleSearch/useSimpleSearch.d.ts +1 -1
  81. package/dist/src/hooks/controls/subtable/useSubtableFormEngineModal.d.ts +4 -1
  82. package/dist/src/hooks/controls/tab/useTab.d.ts +14 -0
  83. package/dist/src/hooks/controls/useDateRange.d.ts +137 -0
  84. package/dist/src/hooks/form/useBaseForm.d.ts +35 -0
  85. package/dist/src/hooks/form/useBatchPrint.d.ts +1 -1
  86. package/dist/src/hooks/form/useChangeLog.d.ts +2 -2
  87. package/dist/src/hooks/form/useFormEvents.d.ts +4 -4
  88. package/dist/src/hooks/form/useFormPageMask.d.ts +4 -0
  89. package/dist/src/hooks/model/useDashboardState.d.ts +9 -1
  90. package/dist/src/hooks/views/useApprovalForm.d.ts +5 -0
  91. package/dist/src/hooks/views/useExternalFormData.d.ts +1 -0
  92. package/dist/src/hooks/views/useFormRenderByApprovalProcess.d.ts +4 -0
  93. package/dist/src/hooks/views/useFormRenderByFormKeyAndUid.d.ts +1 -0
  94. package/dist/src/hooks/views/usePageForm.d.ts +1 -0
  95. package/dist/src/hooks/views/usePrintForm.d.ts +1 -0
  96. package/dist/src/hooks/views/useProcessForm.d.ts +3 -0
  97. package/dist/src/hooks/views/useProcessFormRenderByFormKeyAndUid.d.ts +3 -0
  98. package/dist/src/plugins/engine/ActionUtilsPlugin.d.ts +12 -8
  99. package/dist/src/plugins/engine/CustomVueControlPlugin.d.ts +2 -2
  100. package/dist/src/plugins/engine/DataSourceManagePlugin.d.ts +1 -1
  101. package/dist/src/plugins/engine/DataViewPlugin.d.ts +3 -1
  102. package/dist/src/plugins/engine/DatasourceSearchPlugin.d.ts +3 -1
  103. package/dist/src/plugins/engine/DisplayPlugin.d.ts +2 -0
  104. package/dist/src/plugins/engine/EventListenerPlugin/index.d.ts +1 -0
  105. package/dist/src/plugins/engine/EventListenerPlugin/type.d.ts +13 -12
  106. package/dist/src/plugins/engine/ExpressionPlugin.d.ts +9 -1
  107. package/dist/src/plugins/engine/MultistageFillingPlugin.d.ts +1 -1
  108. package/dist/src/plugins/engine/TitleSettingPlugin.d.ts +1 -0
  109. package/dist/src/plugins/utils/ActionHandle/ActionHandler.d.ts +1 -1
  110. package/dist/src/plugins/utils/ActionHandle/ExecuteAction.d.ts +1 -1
  111. package/dist/src/services/services.auto.d.ts +25 -1
  112. package/dist/src/services/template.d.ts +1 -1
  113. package/dist/src/store/index.d.ts +2 -1
  114. package/dist/src/types/PageContext.d.ts +1 -1
  115. package/dist/src/types/approval-submit.d.ts +1 -1
  116. package/dist/src/types/type.d.ts +8 -8
  117. package/dist/src/utils/controls/attachmentUtils.d.ts +1 -1
  118. package/dist/src/utils/controls/formCopy.d.ts +1 -1
  119. package/dist/src/utils/controls/formatColumnData.d.ts +1 -1
  120. package/dist/src/utils/controls/imageUtils.d.ts +1 -1
  121. package/dist/src/utils/controls/scrollIntoDomView.d.ts +1 -1
  122. package/dist/src/utils/controls/subtableDealTableColumn.d.ts +49 -0
  123. package/dist/src/utils/controls/subtableReadonlyCellRenders.d.ts +13 -0
  124. package/dist/src/utils/core/captionStyle.d.ts +1 -0
  125. package/dist/src/utils/core/crossMessageProcessor.d.ts +1 -1
  126. package/dist/src/utils/core/customVariables.d.ts +4 -0
  127. package/dist/src/utils/core/expressionTools.d.ts +1 -1
  128. package/dist/src/utils/core/index.d.ts +2 -0
  129. package/dist/src/utils/core/math.d.ts +1 -1
  130. package/dist/src/utils/model/operateCache.d.ts +2 -2
  131. package/dist/src/utils/tools/asyncInterval.d.ts +1 -1
  132. package/dist/src/utils/tools/dateUtils.d.ts +1 -0
  133. package/dist/src/utils/tools/displayValue.d.ts +2 -2
  134. package/dist/src/utils/tools/getCachedApplyRender.d.ts +1 -1
  135. package/dist/src/utils/tools/subtableAgGridUtils.d.ts +1 -1
  136. package/package.json +1 -1
  137. package/dist/src/entry_desktop/controls/rok-attachment/hook-file-base.d.ts +0 -4
  138. package/dist/src/entry_desktop/controls/rok-attachment/hook.d.ts +0 -30
@@ -13,21 +13,21 @@ export interface RendererInternals<HostNode = RendererNode, HostElement = Render
13
13
  n: NextFn;
14
14
  o: RendererOptions<HostNode, HostElement>;
15
15
  }
16
- declare type PatchFn = (n1: VNode | null, // null means this is a mount
16
+ type PatchFn = (n1: VNode | null, // null means this is a mount
17
17
  n2: VNode, container: RendererElement, anchor?: RendererNode | null, parentComponent?: ComponentInternalInstance | null, parentSuspense?: SuspenseBoundary | null, isSVG?: boolean, slotScopeIds?: string[] | null, optimized?: boolean) => void;
18
- declare type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
19
- declare type RemoveFn = (vnode: VNode) => void;
20
- declare type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;
18
+ type UnmountFn = (vnode: VNode, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, doRemove?: boolean, optimized?: boolean) => void;
19
+ type RemoveFn = (vnode: VNode) => void;
20
+ type MoveFn = (vnode: VNode, container: RendererElement, anchor: RendererNode | null, type: MoveType, parentSuspense?: SuspenseBoundary | null) => void;
21
21
  export declare const enum MoveType {
22
22
  ENTER = 0,
23
23
  LEAVE = 1,
24
24
  REORDER = 2
25
25
  }
26
- export declare type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
27
- 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;
28
- 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;
29
- declare type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null) => void;
30
- declare type NextFn = (vnode: VNode) => RendererNode | null;
26
+ export type MountComponentFn = (initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
27
+ 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;
28
+ 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;
29
+ type PatchBlockChildrenFn = (oldChildren: VNode[], newChildren: VNode[], fallbackContainer: RendererElement, parentComponent: ComponentInternalInstance | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, slotScopeIds: string[] | null) => void;
30
+ type NextFn = (vnode: VNode) => RendererNode | null;
31
31
  export declare const queuePostRenderEffect: typeof queuePostFlushCb | typeof queueEffectWithSuspense;
32
- export declare type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
32
+ export type SetupRenderEffectFn = (instance: ComponentInternalInstance, initialVNode: VNode, container: RendererElement, anchor: RendererNode | null, parentSuspense: SuspenseBoundary | null, isSVG: boolean, optimized: boolean) => void;
33
33
  export {};
@@ -1,7 +1,7 @@
1
1
  import { ComponentInternalInstance, VNode } from 'vue';
2
2
 
3
- declare type VNodeMountHook = (vnode: VNode) => void;
4
- declare type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
5
- export declare type VNodeHook = VNodeMountHook | VNodeUpdateHook | VNodeMountHook[] | VNodeUpdateHook[];
3
+ type VNodeMountHook = (vnode: VNode) => void;
4
+ type VNodeUpdateHook = (vnode: VNode, oldVNode: VNode) => void;
5
+ export type VNodeHook = VNodeMountHook | VNodeUpdateHook | VNodeMountHook[] | VNodeUpdateHook[];
6
6
  export declare function invokeVNodeHook(hook: VNodeHook, instance: ComponentInternalInstance | null, vnode: VNode, prevVNode?: VNode | null): void;
7
7
  export {};
@@ -2,7 +2,7 @@ import { VNode, VNodeProps, RendererElement, RendererNode } from 'vue';
2
2
  import { RendererInternals } from './core/renderer';
3
3
  import { ComponentRenderContext } from './core/componentPublicInstance';
4
4
 
5
- declare type MatchPattern = string | RegExp | Array<string | RegExp>;
5
+ type MatchPattern = string | RegExp | Array<string | RegExp>;
6
6
  export interface MeKeepAliveProps {
7
7
  include?: MatchPattern;
8
8
  exclude?: MatchPattern;
@@ -82,7 +82,7 @@ export interface UpdateLogEventOther extends UpdateLogEventBase<string> {
82
82
  /**
83
83
  * 操作事件
84
84
  * */
85
- export declare type UpdateLogEvent = UpdateLogEventPeople | UpdateLogEventDepartment | UpdateLogEventAddress | UpdateLogEventTimeStamp | UpdateLogEventOther;
85
+ export type UpdateLogEvent = UpdateLogEventPeople | UpdateLogEventDepartment | UpdateLogEventAddress | UpdateLogEventTimeStamp | UpdateLogEventOther;
86
86
  export interface UpdateLogItem {
87
87
  /**
88
88
  * 操作人
@@ -109,7 +109,7 @@ export interface UpdateLogItem {
109
109
  * */
110
110
  event: UpdateLogEvent[];
111
111
  }
112
- export declare type UpdateLogList = UpdateLogItem[];
112
+ export type UpdateLogList = UpdateLogItem[];
113
113
  export declare const getDay: (value: string) => string;
114
114
  export declare const getTime: (value: string) => string;
115
115
  export declare const timestampFormat: (stamp: number) => 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: string;
10
- province: string;
11
- city: string;
12
- district: string;
9
+ country: "province";
10
+ province: "city";
11
+ city: "district";
12
+ district: "";
13
13
  }>;
14
14
  export declare const AdressLevel: Readonly<{
15
- first: string;
16
- second: string;
17
- third: string;
18
- fourth: string;
15
+ first: "country";
16
+ second: "province";
17
+ third: "city";
18
+ fourth: "district";
19
19
  }>;
20
20
  export declare const AdressCodes: Readonly<{
21
- China: string;
22
- HongKong: string;
23
- Taiwan: string;
24
- Macao: string;
21
+ China: "MDCT00000040";
22
+ HongKong: "MDCT00000079";
23
+ Taiwan: "MDCT00000193";
24
+ Macao: "MDCT00000125";
25
25
  }>;
@@ -1,7 +1,7 @@
1
1
  export declare const CUSTOM_COLUMNS: string[];
2
2
  export declare enum AdjustTypes {
3
- NO = "no",
4
- Last = "last",
5
- AVG = "avg",
3
+ NO = "no",// 不需要调整
4
+ Last = "last",// 全部设置宽度,拉伸最后一列
5
+ AVG = "avg",// 平分其余列,撑开列表
6
6
  MIN = "min"
7
7
  }
@@ -0,0 +1,87 @@
1
+ import { PropType, Ref, DefineComponent, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
2
+ import { VueNode } from '../../../types/type';
3
+ import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
4
+
5
+ declare const EllipsisTooltip: DefineComponent<{
6
+ instance: {
7
+ type: PropType<ControlRuntimeInstance<"select" | "select-multiple">>;
8
+ default: () => void;
9
+ };
10
+ value: {
11
+ type: StringConstructor[];
12
+ required: false;
13
+ };
14
+ title: {
15
+ type: PropType<VueNode>;
16
+ default: string;
17
+ };
18
+ overlayClassName: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ color: {
23
+ type: StringConstructor;
24
+ default: undefined;
25
+ };
26
+ isShowDetail: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ formVisible: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ allowHTML: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ }, {
39
+ visible: Ref<boolean>;
40
+ contentRef: Ref<ElRef<HTMLDivElement>>;
41
+ detailListStatus: Ref<boolean>;
42
+ handleChangeVisible: (value: boolean) => void;
43
+ isReadOnly: ComputedRef<boolean>;
44
+ handleShowDetail: () => void;
45
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
46
+ instance: {
47
+ type: PropType<ControlRuntimeInstance<"select" | "select-multiple">>;
48
+ default: () => void;
49
+ };
50
+ value: {
51
+ type: StringConstructor[];
52
+ required: false;
53
+ };
54
+ title: {
55
+ type: PropType<VueNode>;
56
+ default: string;
57
+ };
58
+ overlayClassName: {
59
+ type: StringConstructor;
60
+ default: string;
61
+ };
62
+ color: {
63
+ type: StringConstructor;
64
+ default: undefined;
65
+ };
66
+ isShowDetail: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ formVisible: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ allowHTML: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ };
78
+ }>>, {
79
+ title: VueNode;
80
+ color: string;
81
+ instance: ControlRuntimeInstance<"select" | "select-multiple">;
82
+ overlayClassName: string;
83
+ formVisible: boolean;
84
+ isShowDetail: boolean;
85
+ allowHTML: boolean;
86
+ }, {}>;
87
+ export default EllipsisTooltip;
@@ -0,0 +1,3 @@
1
+ import { default as FormEngine } from './FormEngine';
2
+
3
+ export default FormEngine;
@@ -1,7 +1,7 @@
1
- import { Component, ComputedOptions, MethodOptions } from 'vue';
1
+ import { Component } from 'vue';
2
2
  import { ComponentType } from '../../types/table';
3
3
 
4
- declare const componentMap: Map<ComponentType, Component<any, any, any, ComputedOptions, MethodOptions, {}, any>>;
4
+ declare const componentMap: Map<ComponentType, Component>;
5
5
  export declare function add(compName: ComponentType, component: Component): void;
6
6
  export declare function del(compName: ComponentType): void;
7
7
  export { componentMap };
@@ -1,10 +1,10 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  import { BasicTableProps, TableActionType } from '../types/table';
3
3
 
4
- declare type Instance = TableActionType & {
4
+ type Instance = TableActionType & {
5
5
  getTableProps: ComputedRef<Recordable>;
6
6
  };
7
- declare type RetInstance = Omit<Instance, 'getTableProps'> & {
7
+ type RetInstance = Omit<Instance, 'getTableProps'> & {
8
8
  getTableProps: ComputedRef<BasicTableProps>;
9
9
  };
10
10
  export declare function createTableContext(instance: Instance): void;
@@ -4,8 +4,8 @@ import { SubTableColumn } from '@byteluck-fe/model-driven-core-all';
4
4
  import { PaginationProps } from '../../../../../types/PaginationProps';
5
5
 
6
6
  export declare type SortOrder = 'ascend' | 'descend';
7
- export declare type SizeType = 'default' | 'middle' | 'small';
8
- export declare type ComponentType = 'Input' | 'Select' | 'Checkbox' | 'Switch';
7
+ export type SizeType = 'default' | 'middle' | 'small';
8
+ export type ComponentType = 'Input' | 'Select' | 'Checkbox' | 'Switch';
9
9
  export interface BasicColumn extends ColumnProps {
10
10
  title?: string;
11
11
  children?: BasicColumn[];
@@ -3,7 +3,7 @@ export declare function useSortHooks(params: {
3
3
  [key: string]: any;
4
4
  }): {
5
5
  isSort: ComputedRef<any>;
6
- onSortRequested: (order: 'asc' | 'desc', merge?: boolean | undefined) => Promise<void>;
6
+ onSortRequested: (order: 'asc' | 'desc', merge?: boolean) => Promise<void>;
7
7
  upSort: Ref<string>;
8
8
  downSort: Ref<string>;
9
9
  fieldCode: ComputedRef<any>;
@@ -7,7 +7,7 @@ export declare function useWCModalComponentChangeValue(): {
7
7
  closeModal: (params: any) => void;
8
8
  onlyKey: ShallowRef<any>;
9
9
  };
10
- export declare type VirtuallyParams = {
10
+ export type VirtuallyParams = {
11
11
  ref: InstanceType<any>;
12
12
  instance: ControlRuntimeInstance<CONTROL_TYPE.EMPLOYEE | CONTROL_TYPE.EMPLOYEE2 | CONTROL_TYPE.DEPARTMENT | CONTROL_TYPE.DEPARTMENT2>;
13
13
  value: string | string[];
@@ -0,0 +1,3 @@
1
+ import { default as RokComment } from './rok-comment';
2
+
3
+ export { RokComment };
@@ -11,7 +11,7 @@ export default function useAgGrid(props: ExtractPropTypes<typeof basicProps>, em
11
11
  showAgRowBorderWidth: ComputedRef<"0px" | "1px">;
12
12
  primaryKeyNew: string;
13
13
  gridInterface: any;
14
- showAgSelectedCellBorderColor: ComputedRef<"var(--bl-brand-c)" | "transparent">;
14
+ showAgSelectedCellBorderColor: ComputedRef<"transparent" | "var(--bl-brand-c)">;
15
15
  onGridReady: (args: GridReadyEvent) => void;
16
16
  getRowClass: (params: RowClassParams<any, any>) => string;
17
17
  getRowId: (node: GetRowIdParams) => any;
@@ -2,6 +2,6 @@ import { Ref } from 'vue';
2
2
  import { BasicPropsTypes } from '../props';
3
3
  import { Engine } from '@byteluck-fe/model-driven-engine';
4
4
 
5
- export declare const useBackgroundStyle: (props: BasicPropsTypes, primaryKey: string, agGridParentRef: any, context?: Ref<Engine> | undefined) => {
5
+ export declare const useBackgroundStyle: (props: BasicPropsTypes, primaryKey: string, agGridParentRef: any, context?: Ref<Engine>) => {
6
6
  initCreateBackground: (listData: any[]) => void;
7
7
  };
@@ -1,7 +1,13 @@
1
- import { ComputedRef, ShallowRef } from 'vue';
1
+ import { ComputedRef, Ref, ShallowRef } from 'vue';
2
2
  import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
3
3
  import { DragStoppedEvent, GridApi, ColDef, ColumnResizedEvent } from '@ag-grid-community/core';
4
4
 
5
+ /**
6
+ * 扩展 ColDef 类型,支持合并表头的 children 属性
7
+ */
8
+ interface ExtendedColDef extends ColDef {
9
+ children?: ExtendedColDef[];
10
+ }
5
11
  export declare function useColumns(params: {
6
12
  instance: ControlRuntimeInstance<'grid-table'> | ComputedRef<ControlRuntimeInstance<'grid-table'>>;
7
13
  isShowSelection?: ComputedRef<boolean>;
@@ -12,15 +18,25 @@ export declare function useColumns(params: {
12
18
  isShowCustomColumns?: ComputedRef<boolean>;
13
19
  }): {
14
20
  columns: ShallowRef<ColDef<any, any>[]>;
21
+ detailCellRendererParams: Ref<any>;
15
22
  operationbtns: any;
16
23
  onColumnsMounted: () => void;
17
24
  onDragStopped: (params: DragStoppedEvent) => void;
18
- handleSortsColumns: (viewColumns: ColDef[], customConfig?: typing.ListHeaderConfigVo[] | undefined) => ColDef<any, any>[];
25
+ handleSortsColumns: (viewColumns: ExtendedColDef[], customConfig?: typing.ListHeaderConfigVo[]) => ExtendedColDef[];
19
26
  isViewShowColumns: (item: ColDef) => any;
20
27
  onColumnResized: (event: ColumnResizedEvent) => void;
21
- onSetColumnVisible: (hideKeys: string[], type?: "reset" | "resetVisible" | undefined) => void;
28
+ onSetColumnVisible: (hideKeys: string[], type?: 'reset' | 'resetVisible') => void;
22
29
  viewConfigs: ComputedRef<ViewConfigType>;
23
30
  customColumns: ShallowRef<any>;
24
31
  fullColumns: any[];
25
- getColumns: (viewFieldCode?: string[] | undefined, type?: "reset" | undefined) => Promise<void>;
32
+ getColumns: (viewFieldCode?: string[], type?: 'reset', options?: {
33
+ headers: any[];
34
+ isDetail: boolean;
35
+ } | undefined) => Promise<void>;
36
+ groupDefaultExpanded: ComputedRef<0 | -1>;
37
+ autoGroupColumnDef: ComputedRef<any>;
38
+ isTreeData: ComputedRef<boolean | undefined>;
39
+ isShowTreeGroupStatisticsBtn: ComputedRef<boolean | undefined>;
40
+ isMasterDetail: ComputedRef<boolean>;
26
41
  };
42
+ export {};
@@ -1,6 +1,6 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  export declare function useAgGridModel(emit?: EmitType): {
3
- fetchViewConfig: (query: Recordable<any>, gridTableId?: string | undefined) => Promise<typing.ViewConfigVo | undefined>;
3
+ fetchViewConfig: (query: Recordable<any>, gridTableId?: string) => Promise<typing.ViewConfigVo | undefined>;
4
4
  saveViewConfig: (viewParams: {
5
5
  viewConfig: typing.ViewConfigRequest;
6
6
  customHandler?: boolean;
@@ -27,5 +27,5 @@ export declare const useNonePage: (params: {
27
27
  totalPage: ComputedRef<number | undefined>;
28
28
  nonePageNext: () => void;
29
29
  gotoPage: () => void;
30
- getTableList: (ordersInfo?: IOrderType[] | undefined, paginationParam?: PaginationProps | undefined, isPost?: string | undefined, isPageChange?: boolean | undefined) => void;
30
+ getTableList: (ordersInfo?: IOrderType[], paginationParam?: PaginationProps, isPost?: string, isPageChange?: boolean) => void;
31
31
  };
@@ -1,7 +1,7 @@
1
1
  import { RowClassParams, CellClassParams } from '@ag-grid-community/core';
2
2
  import { BasicPropsTypes } from '../props';
3
3
 
4
- export declare const useViewStyle: (props?: BasicPropsTypes | undefined) => {
4
+ export declare const useViewStyle: (props?: BasicPropsTypes) => {
5
5
  getRowClass: (params: RowClassParams) => string;
6
6
  mergeCellClasslist: {
7
7
  'bl-grid-table-first-cell': (params: CellClassParams) => boolean | undefined;
@@ -21,5 +21,5 @@ export default function (params: {
21
21
  onOpenChange: (visible: boolean) => void;
22
22
  formItemRef: Ref<any>;
23
23
  handleDateUpdate: (val: any) => void;
24
- pageStatus: ComputedRef< PAGE_STATUS | undefined>;
24
+ pageStatus: ComputedRef<PAGE_STATUS>;
25
25
  };
@@ -0,0 +1,3 @@
1
+ import { default as RokStep } from './rok-step';
2
+
3
+ export { RokStep };
@@ -10,5 +10,6 @@ export default function (formId: Ref<string>, relateCode: Ref<string>, setAuthFl
10
10
  formKey: string;
11
11
  dataCode?: string | undefined;
12
12
  formType: string;
13
+ viewType?: string | undefined;
13
14
  };
14
15
  };
@@ -1,7 +1,7 @@
1
1
  import { CONTROL_TYPE, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
2
2
  import { Ref } from 'vue';
3
3
 
4
- declare const useGetTemplateList: (instance: ControlRuntimeInstance<CONTROL_TYPE.SUBTABLE>, type?: "IMPORT" | "EXPORT" | undefined) => {
4
+ declare const useGetTemplateList: (instance: ControlRuntimeInstance<CONTROL_TYPE.SUBTABLE>, type?: 'IMPORT' | 'EXPORT') => {
5
5
  templateOptions: Ref<typing.ImportTemplateBo[] | undefined>;
6
6
  fetchTemplateList: () => Promise<void>;
7
7
  };
@@ -2,7 +2,7 @@ import { ColumnProps } from 'ant-design-vue/es/table';
2
2
  import { Key } from 'ant-design-vue/es/vc-table/interface';
3
3
  import { ComputedRef } from 'vue';
4
4
 
5
- declare type SELECT_STATE_TYPE = {
5
+ type SELECT_STATE_TYPE = {
6
6
  selectedRowKeys: ColumnProps['key'][];
7
7
  selectedRows: Record<string, unknown>[];
8
8
  };
@@ -0,0 +1,3 @@
1
+ import { default as RokTableLayout } from './rok-table-layout';
2
+
3
+ export { RokTableLayout };
@@ -0,0 +1,4 @@
1
+ import { default as RokTableLayoutRow } from './rok-table-layout-row';
2
+ import { default as RokTableLayoutCol } from './row-table-layout-col';
3
+
4
+ export { RokTableLayoutRow, RokTableLayoutCol };
@@ -0,0 +1,3 @@
1
+ import { default as RokTableLayoutWrapper } from './rok-table-layout-wrapper';
2
+
3
+ export { RokTableLayoutWrapper };
@@ -0,0 +1,197 @@
1
+ declare namespace _default {
2
+ let comfort: {
3
+ "--layout-common-font-size": string;
4
+ "--layout-common-font-small-size": string;
5
+ "--layout-common-font-big-size": string;
6
+ "--layout-common-padding": string;
7
+ "--layout-common-margin": string;
8
+ "--layout-common-line-height": string;
9
+ "--layout-page-header-height": string;
10
+ "--layout-page-menu-font-size": string;
11
+ "--layout-rok-title-height": string;
12
+ "--layout-rok-title-font-size": string;
13
+ "--layout-rok-title-padding": string;
14
+ "--layout-rok-title-layout": string;
15
+ "--layout-rok-title-name-margin": string;
16
+ "--layout-rok-list-view-select-height": string;
17
+ "--layout-rok-list-view-select-title-font-size": string;
18
+ "--layout-rok-list-view-select-title-padding-left": string;
19
+ "--layout-rok-list-view-select-title-padding-right": string;
20
+ "--layout-rok-list-view-select-item-gutter": string;
21
+ "--layout-list-engine-model-pagination-bottom": string;
22
+ "--layout-rok-grid-padding": string;
23
+ "--layout-rok-grid-cell-horizontal-padding": string;
24
+ "--layout-rok-subtable-cell-horizontal-padding": string;
25
+ "--layout-rok-subtable-cell-font-size": string;
26
+ "--layout-rok-card-group-margin": string;
27
+ "--layout-rok-card-group-title-font-size": string;
28
+ "--layout-rok-card-group-title-height": string;
29
+ "--layout-rok-card-group-title-margin": string;
30
+ "--layout-rok-tab-title-font-size": string;
31
+ "--layout-rok-tab-title-height": string;
32
+ "--layout-rok-tab-title-border-bottom": string;
33
+ "--layout-rok-tab-container-margin": string;
34
+ "--layout-rok-grid-row-label-font-size": string;
35
+ "--layout-rok-grid-row-label-font-weight": string;
36
+ "--layout-rok-grid-row-label-margin": string;
37
+ "--layout-rok-grid-row-padding": string;
38
+ "--layout-rok-grid-row-gutter": string;
39
+ "--layout-table-cell-height": string;
40
+ "--layout-table-cell-font-size": string;
41
+ "--layout-table-column-header-font-size": string;
42
+ "--layout-table-column-header-font-weight": string;
43
+ "--layout-table-column-cell-padding": string;
44
+ "--layout-table-order-column-width": string;
45
+ "--layout-table-column-approval-time-since-time-display": string;
46
+ "--layout-table-pagination-height": string;
47
+ "--layout-table-pagination-gap": string;
48
+ "--layout-button-padding": string;
49
+ "--layout-button-height": string;
50
+ "--layout-button-gap": string;
51
+ "--layout-button-group-padding": string;
52
+ "--layout-button-font-size": string;
53
+ "--layout-tree-row-height": string;
54
+ "--layout-tree-icon-width": string;
55
+ "--layout-tabs-height": string;
56
+ "--layout-application-sider-collapse-width": string;
57
+ "--layout-application-sider-expend-width": string;
58
+ "--layout-application-sider-padding-left": string;
59
+ "--layout-application-sider-padding-right": string;
60
+ "--layout-application-sider-inline-indent": string;
61
+ "--layout-application-sider-title-margin-left": string;
62
+ "--layout-approval-footer-height": string;
63
+ "--layout-rok-form-item-font-size": string;
64
+ "--layout-rok-form-item-label-padding": string;
65
+ "--layout-rok-form-item-margin-bottom": string;
66
+ "--layout-rok-form-item-input-readonly-height": string;
67
+ "--layout-rok-form-item-underline-height": string;
68
+ "--layout-ok-person-cell-underline-avatar-height": string;
69
+ "--layout-ok-person-cell-underline-avatar-transform": string;
70
+ "--layout-rok-action-bar-height": string;
71
+ "--layout-block-margin": string;
72
+ "--layout-block-margin-reverse": string;
73
+ "--layout-dialog-header-height": string;
74
+ "--layout-dialog-header-padding": string;
75
+ "--layout-dialog-header-fontSize": string;
76
+ "--layout-dialog-header-close-x-width": string;
77
+ "--layout-dialog-body-padding": string;
78
+ "--layout-dialog-footer-padding": string;
79
+ "--layout-dialog-footer-height": string;
80
+ "--layout-search-tag-item-gap": string;
81
+ "--layout-rok-department-dialog-tree-search-padding": string;
82
+ "--layout-rok-department-dialog-tree-content-padding": string;
83
+ "--layout-rok-department-dialog-tree-content-treenode-padding": string;
84
+ "--layout-rok-department-dialog-tree-content-treenode-line-height": string;
85
+ "--layout-rok-department-dialog-tree-content-search-result-item-padding": string;
86
+ "--layout-rok-department-dialog-selected-header-padding": string;
87
+ "--layout-rok-employee-dialog-tree-content-treenode-height": string;
88
+ "--layout-rok-employee-dialog-member-employee-name-margin": string;
89
+ "--layout-ok-tree-modal-body-padding": string;
90
+ "--layout-ok-avatar-width": string;
91
+ "--layout-tag-reader-only-padding": string;
92
+ "--layout-approvalrecord-nodeSize-height": string;
93
+ "--layout-approvalrecord-margin": string;
94
+ "--layout-recordPreview-label-font-padding": string;
95
+ "--layout-forecast-theme2-left-line-height": string;
96
+ "--layout-head-button-padding": string;
97
+ "--layout-bla-discuss-bla-people-name-line-height": string;
98
+ };
99
+ let compact: {
100
+ "--layout-common-font-size": string;
101
+ "--layout-common-font-small-size": string;
102
+ "--layout-common-font-big-size": string;
103
+ "--layout-common-padding": string;
104
+ "--layout-common-margin": string;
105
+ "--layout-common-line-height": string;
106
+ "--layout-page-header-height": string;
107
+ "--layout-page-menu-font-size": string;
108
+ "--layout-rok-title-height": string;
109
+ "--layout-rok-title-font-size": string;
110
+ "--layout-rok-title-padding": string;
111
+ "--layout-rok-title-layout": string;
112
+ "--layout-rok-title-name-margin": string;
113
+ "--layout-rok-list-view-select-height": string;
114
+ "--layout-rok-list-view-select-title-font-size": string;
115
+ "--layout-rok-list-view-select-title-padding-left": string;
116
+ "--layout-rok-list-view-select-title-padding-right": string;
117
+ "--layout-rok-list-view-select-item-gutter": string;
118
+ "--layout-list-engine-model-pagination-bottom": string;
119
+ "--layout-rok-grid-padding": string;
120
+ "--layout-rok-grid-cell-horizontal-padding": string;
121
+ "--layout-rok-subtable-cell-horizontal-padding": string;
122
+ "--layout-rok-subtable-cell-font-size": string;
123
+ "--layout-rok-card-group-margin": string;
124
+ "--layout-rok-card-group-title-font-size": string;
125
+ "--layout-rok-card-group-title-height": string;
126
+ "--layout-rok-card-group-title-margin": string;
127
+ "--layout-rok-tab-title-font-size": string;
128
+ "--layout-rok-tab-title-height": string;
129
+ "--layout-rok-tab-title-border-bottom": string;
130
+ "--layout-rok-tab-container-margin": string;
131
+ "--layout-rok-grid-row-label-font-size": string;
132
+ "--layout-rok-grid-row-label-font-weight": string;
133
+ "--layout-rok-grid-row-label-margin": string;
134
+ "--layout-rok-grid-row-padding": string;
135
+ "--layout-rok-grid-row-gutter": string;
136
+ "--layout-table-cell-height": string;
137
+ "--layout-table-cell-font-size": string;
138
+ "--layout-table-column-header-font-size": string;
139
+ "--layout-table-column-header-font-weight": string;
140
+ "--layout-table-column-cell-padding": string;
141
+ "--layout-table-order-column-width": string;
142
+ "--layout-table-column-approval-time-since-time-display": string;
143
+ "--layout-table-pagination-height": string;
144
+ "--layout-table-pagination-gap": string;
145
+ "--layout-button-padding": string;
146
+ "--layout-button-height": string;
147
+ "--layout-button-gap": string;
148
+ "--layout-button-group-padding": string;
149
+ "--layout-button-font-size": string;
150
+ "--layout-tree-row-height": string;
151
+ "--layout-tree-icon-width": string;
152
+ "--layout-tabs-height": string;
153
+ "--layout-application-sider-collapse-width": string;
154
+ "--layout-application-sider-expend-width": string;
155
+ "--layout-application-sider-padding-left": string;
156
+ "--layout-application-sider-padding-right": string;
157
+ "--layout-application-sider-inline-indent": string;
158
+ "--layout-application-sider-title-margin-left": string;
159
+ "--layout-approval-footer-height": string;
160
+ "--layout-rok-form-item-font-size": string;
161
+ "--layout-rok-form-item-label-padding": string;
162
+ "--layout-rok-form-item-margin-bottom": string;
163
+ "--layout-rok-form-item-input-readonly-height": string;
164
+ "--layout-rok-form-item-underline-height": string;
165
+ "--layout-ok-person-cell-underline-avatar-height": string;
166
+ "--layout-ok-person-cell-underline-avatar-transform": string;
167
+ "--layout-rok-action-bar-height": string;
168
+ "--layout-block-margin": string;
169
+ "--layout-block-margin-reverse": string;
170
+ "--layout-dialog-header-height": string;
171
+ "--layout-dialog-header-padding": string;
172
+ "--layout-dialog-header-fontSize": string;
173
+ "--layout-dialog-header-close-x-width": string;
174
+ "--layout-dialog-body-padding": string;
175
+ "--layout-dialog-footer-padding": string;
176
+ "--layout-dialog-footer-height": string;
177
+ "--layout-search-tag-item-gap": string;
178
+ "--layout-rok-department-dialog-tree-search-padding": string;
179
+ "--layout-rok-department-dialog-tree-content-padding": string;
180
+ "--layout-rok-department-dialog-tree-content-treenode-padding": string;
181
+ "--layout-rok-department-dialog-tree-content-treenode-line-height": string;
182
+ "--layout-rok-department-dialog-tree-content-search-result-item-padding": string;
183
+ "--layout-rok-department-dialog-selected-header-padding": string;
184
+ "--layout-rok-employee-dialog-tree-content-treenode-height": string;
185
+ "--layout-rok-employee-dialog-member-employee-name-margin": string;
186
+ "--layout-ok-tree-modal-body-padding": string;
187
+ "--layout-ok-avatar-width": string;
188
+ "--layout-tag-reader-only-padding": string;
189
+ "--layout-approvalrecord-nodeSize-height": string;
190
+ "--layout-approvalrecord-margin": string;
191
+ "--layout-recordPreview-label-font-padding": string;
192
+ "--layout-forecast-theme2-left-line-height": string;
193
+ "--layout-head-button-padding": string;
194
+ "--layout-bla-discuss-bla-people-name-line-height": string;
195
+ };
196
+ }
197
+ export default _default;
@@ -1,8 +1,8 @@
1
- import { RouteLocationNormalizedLoadedGeneric, Router } from 'vue-router';
1
+ import { Router } from 'vue-router';
2
2
  import { ComputedRef, Ref } from 'vue';
3
3
 
4
- export declare function useListApplication(store: any, route: RouteLocationNormalizedLoadedGeneric, router: Router, tabsRef: any): {
5
- hasTab: boolean | "" | null;
4
+ export declare function useListApplication(store: any, route: any, router: Router, tabsRef: any): {
5
+ hasTab: any;
6
6
  appLauncher: ComputedRef<any>;
7
7
  isShowMenu: ComputedRef<boolean>;
8
8
  collapsed: ComputedRef<any>;