@byteluck-fe/runtime-engine 2.0.4 → 2.0.7
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.
- package/dist/packages/runtime-engine/src/runtimeEngine.d.ts +4 -2
- package/dist/runtime-engine.js +5669 -5283
- package/dist/src/components/meKeepAlive/core/renderer.d.ts +10 -10
- package/dist/src/components/meKeepAlive/core/vnode.d.ts +3 -3
- package/dist/src/components/meKeepAlive/index.d.ts +1 -1
- package/dist/src/components/update-log/utils.d.ts +2 -2
- package/dist/src/constant/page/address.d.ts +12 -12
- package/dist/src/constant/page/table/column.d.ts +3 -3
- package/dist/src/entry_desktop/controls/components/base-table/components/editable/componentMap.d.ts +2 -2
- package/dist/src/entry_desktop/controls/components/base-table/hooks/useTableContext.d.ts +2 -2
- package/dist/src/entry_desktop/controls/components/base-table/types/table.d.ts +2 -2
- package/dist/src/entry_desktop/controls/components/subtable-ag-grid/hooks/use-sort-hooks.d.ts +1 -1
- package/dist/src/entry_desktop/controls/components/subtable-ag-grid/hooks/useWCModalComponentChangeValue.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-attachment/hook.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useBackgroundStyle.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useColumns.d.ts +3 -3
- package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useModel.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useNonePage.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useViewStyle.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-list-view-title/rule-filter/sok-advanced-filter/utils/date-range.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-subtable/hooks/useGetTemplateList.d.ts +1 -1
- package/dist/src/entry_desktop/controls/rok-subtable/hooks/useSubtableSelectionState.d.ts +1 -1
- package/dist/src/entry_mobile/components/VanSuperForm/VanSuperForm.d.ts +2 -2
- package/dist/src/entry_mobile/controls/components/table/types/table.d.ts +1 -1
- package/dist/src/entry_mobile/controls/rok-attachment/hook-file-base.d.ts +3 -40
- package/dist/src/entry_mobile/controls/rok-attachment/upload.type.d.ts +5 -5
- package/dist/src/entry_mobile/controls/rok-date-picker/hook.d.ts +3 -148
- package/dist/src/entry_mobile/controls/rok-date-range/hook.d.ts +3 -149
- package/dist/src/entry_mobile/controls/rok-department/hook.d.ts +3 -19
- package/dist/src/entry_mobile/controls/rok-department2/hook.d.ts +3 -21
- package/dist/src/entry_mobile/controls/rok-employee/src/constant/index.d.ts +4 -4
- package/dist/src/entry_mobile/controls/rok-employee2/src/constant/index.d.ts +4 -4
- package/dist/src/entry_mobile/controls/rok-image/image.type.d.ts +3 -3
- package/dist/src/entry_mobile/controls/rok-organization-selection/hook.d.ts +3 -20
- package/dist/src/entry_mobile/controls/rok-search-date-range/hook.d.ts +3 -146
- package/dist/src/entry_mobile/controls/rok-subtable/hooks/useFull.d.ts +1 -1
- package/dist/src/entry_mobile/views/page-render/useCancel.d.ts +1 -1
- package/dist/src/hooks/atomic/useEventListener.d.ts +1 -1
- package/dist/src/hooks/components/useLayoutChildren.d.ts +2 -2
- package/dist/src/hooks/controls/ElectronicSignature/useElectronicSignature.d.ts +1 -1
- package/dist/src/hooks/controls/form/interface.d.ts +2 -2
- package/dist/src/hooks/controls/listSelectButton/useEngineFillState.d.ts +1 -1
- package/dist/src/hooks/controls/listSelectButton/useListSelectButton.d.ts +1 -1
- package/dist/src/hooks/controls/listView/useModel.d.ts +3 -3
- package/dist/src/hooks/controls/selecRelation/useSelectRelationEngineInit.d.ts +1 -1
- package/dist/src/hooks/controls/subtable/useSubtableFormEngineModal.d.ts +1 -1
- package/dist/src/hooks/form/useBatchPrint.d.ts +1 -1
- package/dist/src/hooks/form/useChangeLog.d.ts +2 -2
- package/dist/src/hooks/form/useFormEvents.d.ts +4 -4
- package/dist/src/plugins/engine/ActionUtilsPlugin.d.ts +1 -1
- package/dist/src/plugins/engine/CustomVueControlPlugin.d.ts +1 -1
- package/dist/src/plugins/engine/DataSourceManagePlugin.d.ts +1 -1
- package/dist/src/plugins/engine/DataViewPlugin.d.ts +1 -1
- package/dist/src/plugins/engine/DatasourceSearchPlugin.d.ts +1 -1
- package/dist/src/plugins/engine/EventListenerPlugin/type.d.ts +11 -11
- package/dist/src/plugins/engine/MultistageFillingPlugin.d.ts +1 -1
- package/dist/src/plugins/engine/NoPlugin.d.ts +7 -0
- package/dist/src/plugins/engine/index.d.ts +1 -0
- package/dist/src/plugins/utils/ActionHandle/ActionHandler.d.ts +1 -1
- package/dist/src/plugins/utils/ActionHandle/ExecuteAction.d.ts +1 -1
- package/dist/src/store/index.d.ts +1 -1
- package/dist/src/types/PageContext.d.ts +1 -1
- package/dist/src/types/approval-submit.d.ts +1 -1
- package/dist/src/types/type.d.ts +8 -8
- package/dist/src/utils/controls/attachmentUtils.d.ts +1 -1
- package/dist/src/utils/controls/formCopy.d.ts +1 -1
- package/dist/src/utils/controls/formatColumnData.d.ts +1 -1
- package/dist/src/utils/controls/imageUtils.d.ts +1 -1
- package/dist/src/utils/controls/scrollIntoDomView.d.ts +1 -1
- package/dist/src/utils/core/crossMessageProcessor.d.ts +1 -1
- package/dist/src/utils/core/math.d.ts +1 -1
- package/dist/src/utils/model/operateCache.d.ts +2 -2
- package/dist/src/utils/tools/asyncInterval.d.ts +1 -1
- package/dist/src/utils/tools/globalModules.d.ts +2 -1
- package/dist/src/utils/tools/subtableAgGridUtils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/entry_desktop/components/EllipsisTooltip/EllipsisTooltip.d.ts +0 -77
- package/dist/src/entry_mobile/controls/rok-grid-table/hooks/useRender.d.ts +0 -3
- package/dist/src/hooks/components/useList.d.ts +0 -9
- package/dist/src/hooks/controls/tab/useTab.d.ts +0 -14
- package/dist/src/hooks/controls/useDateRange.d.ts +0 -137
- package/dist/src/hooks/form/useBaseForm.d.ts +0 -25
- package/dist/src/utils/controls/subtableDealTableColumn.d.ts +0 -48
- package/dist/src/utils/controls/subtableReadonlyCellRenders.d.ts +0 -13
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Engine, EventPayload } from '@byteluck-fe/model-driven-engine';
|
|
2
2
|
import { FieldFilterCondition, FieldFilterConditions, DataSourceOrderItem, RuntimeControl, FillBackBind, FillPayloadBind, FormSelectBind, ListBind } from '@byteluck-fe/model-driven-core-all';
|
|
3
3
|
|
|
4
|
-
export type ControlsEvent = {
|
|
4
|
+
export declare type ControlsEvent = {
|
|
5
5
|
[controlId: string]: BaitedaEventListener[];
|
|
6
6
|
};
|
|
7
|
-
export type FormattedControlEvent = {
|
|
7
|
+
export declare type FormattedControlEvent = {
|
|
8
8
|
[controlId: string | number]: Record<string, BaitedaEventListener>;
|
|
9
9
|
};
|
|
10
|
-
export type EventKeys = Parameters<Engine['on']>[0];
|
|
10
|
+
export declare type EventKeys = Parameters<Engine['on']>[0];
|
|
11
11
|
export declare class BaitedaEventListener {
|
|
12
12
|
eventKey: string;
|
|
13
13
|
enabledCase: boolean;
|
|
@@ -93,10 +93,10 @@ export declare enum OpenMode {
|
|
|
93
93
|
}
|
|
94
94
|
export declare const currenSystem: any;
|
|
95
95
|
export declare enum ModelMode {
|
|
96
|
-
subtable = "subtable"
|
|
96
|
+
subtable = "subtable",
|
|
97
97
|
current = "current"
|
|
98
98
|
}
|
|
99
|
-
export type UnnkownValue = {
|
|
99
|
+
export declare type UnnkownValue = {
|
|
100
100
|
[x: string]: string | [] | number | undefined | unknown;
|
|
101
101
|
};
|
|
102
102
|
export declare enum ImageType {
|
|
@@ -105,7 +105,7 @@ export declare enum ImageType {
|
|
|
105
105
|
local = "local",
|
|
106
106
|
fileId = "fileId"
|
|
107
107
|
}
|
|
108
|
-
export type PropItem = {
|
|
108
|
+
export declare type PropItem = {
|
|
109
109
|
prop: string;
|
|
110
110
|
value: any;
|
|
111
111
|
propName: string;
|
|
@@ -131,7 +131,7 @@ export interface CalcDifferenceType {
|
|
|
131
131
|
goalModuleTime: any;
|
|
132
132
|
unit: any;
|
|
133
133
|
}
|
|
134
|
-
export type EventCaseHandlerPayload = {
|
|
134
|
+
export declare type EventCaseHandlerPayload = {
|
|
135
135
|
name: string;
|
|
136
136
|
engine: Engine;
|
|
137
137
|
handler: IBaitedaEventHandler;
|
|
@@ -143,20 +143,20 @@ export type EventCaseHandlerPayload = {
|
|
|
143
143
|
value?: unknown;
|
|
144
144
|
rowIndex?: number;
|
|
145
145
|
};
|
|
146
|
-
export type ConfirmDialog = {
|
|
146
|
+
export declare type ConfirmDialog = {
|
|
147
147
|
titleData: any;
|
|
148
148
|
titleType: string;
|
|
149
149
|
contentData: any;
|
|
150
150
|
contentType: string;
|
|
151
151
|
isErrorContinue: boolean;
|
|
152
152
|
};
|
|
153
|
-
export type ActionOperate = {
|
|
153
|
+
export declare type ActionOperate = {
|
|
154
154
|
controlId: string;
|
|
155
155
|
optType: string;
|
|
156
156
|
optCode: string;
|
|
157
157
|
isErrorContinue: boolean;
|
|
158
158
|
};
|
|
159
|
-
export type TriggerOtherControlEvent = {
|
|
159
|
+
export declare type TriggerOtherControlEvent = {
|
|
160
160
|
controlId: string;
|
|
161
161
|
controlName: string;
|
|
162
162
|
eventKey: string;
|
|
@@ -164,7 +164,7 @@ export type TriggerOtherControlEvent = {
|
|
|
164
164
|
subTableId: string;
|
|
165
165
|
subTableName: string;
|
|
166
166
|
};
|
|
167
|
-
export type OpenPageEventType = {
|
|
167
|
+
export declare type OpenPageEventType = {
|
|
168
168
|
pageType: 'form' | 'list' | 'link';
|
|
169
169
|
operateType: 'view';
|
|
170
170
|
openType: 'tab' | 'current' | 'new' | 'dialog';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Engine, EventPayload } from '@byteluck-fe/model-driven-engine';
|
|
2
2
|
import { IBaitedaEventHandler, EventHandlerMethod } from '../../engine/EventListenerPlugin/type';
|
|
3
3
|
|
|
4
|
-
export type ActionParams = {
|
|
4
|
+
export declare type ActionParams = {
|
|
5
5
|
engine: Engine;
|
|
6
6
|
controlEventKey: string;
|
|
7
7
|
options?: EventPayload;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Engine, EventPayload } from '@byteluck-fe/model-driven-engine';
|
|
2
2
|
import { IBaitedaEventHandler } from '../../engine/EventListenerPlugin/type';
|
|
3
3
|
|
|
4
|
-
export type ExecuteActionParams = {
|
|
4
|
+
export declare type ExecuteActionParams = {
|
|
5
5
|
engine: Engine;
|
|
6
6
|
actionsMap: IBaitedaEventHandler[];
|
|
7
7
|
options: EventPayload & {
|
package/dist/src/types/type.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { PropType, VNodeChild } from 'vue';
|
|
2
2
|
|
|
3
|
-
export type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
3
|
+
export declare type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
4
4
|
export declare const tuple: <T extends string[]>(...args: T) => T;
|
|
5
5
|
export declare const tupleNum: <T extends number[]>(...args: T) => T;
|
|
6
6
|
/**
|
|
7
7
|
* https://stackoverflow.com/a/59187769
|
|
8
8
|
* Extract the type of an element of an array/tuple without performing indexing
|
|
9
9
|
*/
|
|
10
|
-
export type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
|
|
10
|
+
export declare type ElementOf<T> = T extends (infer E)[] ? E : T extends readonly (infer F)[] ? F : never;
|
|
11
11
|
/**
|
|
12
12
|
* https://github.com/Microsoft/TypeScript/issues/29729
|
|
13
13
|
*/
|
|
14
|
-
export type LiteralUnion<T extends U, U> = T | (U & {});
|
|
15
|
-
export type Data = Record<string, unknown>;
|
|
16
|
-
export type ObjectData = Record<string, any>;
|
|
17
|
-
export type Key = string | number;
|
|
18
|
-
type DefaultFactory<T> = (props: Data) => T | null | undefined;
|
|
14
|
+
export declare type LiteralUnion<T extends U, U> = T | (U & {});
|
|
15
|
+
export declare type Data = Record<string, unknown>;
|
|
16
|
+
export declare type ObjectData = Record<string, any>;
|
|
17
|
+
export declare type Key = string | number;
|
|
18
|
+
declare type DefaultFactory<T> = (props: Data) => T | null | undefined;
|
|
19
19
|
export interface PropOptions<T = any, D = T> {
|
|
20
20
|
type?: PropType<T> | true | null;
|
|
21
21
|
required?: boolean;
|
|
22
22
|
default?: D | DefaultFactory<D> | null | undefined | object;
|
|
23
23
|
validator?(value: unknown): boolean;
|
|
24
24
|
}
|
|
25
|
-
export type VueNode = VNodeChild | JSX.Element;
|
|
25
|
+
export declare type VueNode = VNodeChild | JSX.Element;
|
|
26
26
|
export declare const withInstall: <T>(comp: any) => T & Plugin;
|
|
27
27
|
export {};
|
|
@@ -2,6 +2,6 @@ declare const MAX_FILE_SIZE = 104857600;
|
|
|
2
2
|
declare const ALL_ACCEPT_TYPE: string[];
|
|
3
3
|
declare const getFileType: (filePath: string) => string;
|
|
4
4
|
declare const validFileType: (fileName: string, fileTypeList: string[]) => boolean;
|
|
5
|
-
declare const validAttachmentType: (fileName: string, type?: string[]) => boolean;
|
|
5
|
+
declare const validAttachmentType: (fileName: string, type?: string[] | undefined) => boolean;
|
|
6
6
|
export * from '../../constant/global';
|
|
7
7
|
export { MAX_FILE_SIZE, ALL_ACCEPT_TYPE, getFileType, validFileType, validAttachmentType, };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CONTROL_TYPE, ControlRuntimeInstance, RuntimeControl } from '@byteluck-fe/model-driven-core-all';
|
|
2
2
|
import { ValueGetterParams } from '@ag-grid-community/core';
|
|
3
3
|
|
|
4
|
-
export declare const formatColumnDate: (fullColumns: any[], data: any, key?: string, ignoreColumns?: boolean) => any;
|
|
4
|
+
export declare const formatColumnDate: (fullColumns: any[], data: any, key?: string | undefined, ignoreColumns?: boolean) => any;
|
|
5
5
|
export declare const commonCellRenderColumns: string[];
|
|
6
6
|
export declare const listColumnsFormatter: (params: ValueGetterParams, cellValue: any) => any;
|
|
7
7
|
export declare const timestampColumnFormatter: (params: ValueGetterParams | undefined, cellInstance: ControlRuntimeInstance<CONTROL_TYPE.TIMESTAMP_COLUMN>, value: any) => string | undefined;
|
|
@@ -2,7 +2,7 @@ declare const MAX_IMAGE_SIZE = 10485760;
|
|
|
2
2
|
declare const INITAL_IMAGE_TYPE: string[];
|
|
3
3
|
declare const IMAGE_ACCEPT_TYPE_ARR: string[];
|
|
4
4
|
declare const IMAGE_ACCEPT_TYPE: string;
|
|
5
|
-
declare const validImageType: (fileName: string, type?: string[]) => boolean;
|
|
5
|
+
declare const validImageType: (fileName: string, type?: string[] | undefined) => boolean;
|
|
6
6
|
declare const isImage: (suffix: string) => boolean;
|
|
7
7
|
export * from '../../constant/global';
|
|
8
8
|
export { MAX_IMAGE_SIZE, INITAL_IMAGE_TYPE, IMAGE_ACCEPT_TYPE_ARR, IMAGE_ACCEPT_TYPE, validImageType, isImage, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const scrollIntoDomView: (domAndClass: string | Element, params?: ScrollToOptions, rowIndex?: number) => Promise<void>;
|
|
1
|
+
export declare const scrollIntoDomView: (domAndClass: string | Element, params?: ScrollToOptions | undefined, rowIndex?: number | undefined) => Promise<void>;
|
|
@@ -4,4 +4,4 @@ export declare const add: (arg1: Decimal.Value, arg2: Decimal.Value) => string;
|
|
|
4
4
|
export declare const subtract: (arg1: Decimal.Value, arg2: Decimal.Value) => string;
|
|
5
5
|
export declare const multiply: (arg1: Decimal.Value, arg2: Decimal.Value) => string;
|
|
6
6
|
export declare const divide: (arg1: Decimal.Value, arg2: Decimal.Value) => string;
|
|
7
|
-
export declare const toFixed: (num: Decimal.Value, dp?: number) => string;
|
|
7
|
+
export declare const toFixed: (num: Decimal.Value, dp?: number | undefined) => string;
|
|
@@ -2,6 +2,6 @@ import { ControlRuntimeInstance, CONTROL_TYPE } from '@byteluck-fe/model-driven-
|
|
|
2
2
|
|
|
3
3
|
export declare const useOperateCache: (instance: ControlRuntimeInstance<CONTROL_TYPE.DEPARTMENT> | ControlRuntimeInstance<CONTROL_TYPE.DEPARTMENT2> | ControlRuntimeInstance<CONTROL_TYPE.EMPLOYEE> | ControlRuntimeInstance<CONTROL_TYPE.EMPLOYEE2> | ControlRuntimeInstance<CONTROL_TYPE.SELECT> | ControlRuntimeInstance<CONTROL_TYPE.SELECT_MULTIPLE> | ControlRuntimeInstance<CONTROL_TYPE.SELECT_RELATION> | ControlRuntimeInstance<CONTROL_TYPE.RADIO> | ControlRuntimeInstance<CONTROL_TYPE.AMOUNT> | ControlRuntimeInstance<CONTROL_TYPE.TREE> | ControlRuntimeInstance<CONTROL_TYPE.CHECKBOX> | ControlRuntimeInstance<CONTROL_TYPE.IMAGE> | ControlRuntimeInstance<CONTROL_TYPE.ATTACHMENT>) => {
|
|
4
4
|
updateStorageCache: (value: string[], data: any[] | unknown) => void;
|
|
5
|
-
getCacheDisplayValue: (value?:
|
|
6
|
-
updateCacheDisplay: (data: any, valueCode?: string, displayCode?: string) => void;
|
|
5
|
+
getCacheDisplayValue: (value?: string | string[] | unknown[] | undefined) => any[];
|
|
6
|
+
updateCacheDisplay: (data: any, valueCode?: string | undefined, displayCode?: string | undefined) => void;
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type handlerType = (...args: any[]) => Promise<any>;
|
|
1
|
+
declare type handlerType = (...args: any[]) => Promise<any>;
|
|
2
2
|
export declare function delay(ms: number): Promise<unknown>;
|
|
3
3
|
export declare function clearAsyncInterval(intervalId?: number): Promise<void>;
|
|
4
4
|
export declare function setAsyncInterval(handler: handlerType, interval?: number): number;
|
|
@@ -3,12 +3,12 @@ import { default as lodash } from 'lodash';
|
|
|
3
3
|
import { default as decimal } from 'decimal.js';
|
|
4
4
|
import { default as vant } from 'vant';
|
|
5
5
|
import { AxiosStatic } from 'axios';
|
|
6
|
-
/// <reference types="@/types/driven" />
|
|
7
6
|
import * as ModelDrivenCoreAll from '@byteluck-fe/model-driven-core-all';
|
|
8
7
|
import * as ModelDrivenEngine from '@byteluck-fe/model-driven-engine';
|
|
9
8
|
import * as GlobalShared from '@byteluck-fe/global-shared';
|
|
10
9
|
import * as CustomControlSdkMain from '@byteluck-fe/custom-control-sdk/main';
|
|
11
10
|
import * as CustomControlSdkMainRuntime from '@byteluck-fe/custom-control-sdk/runtime';
|
|
11
|
+
import * as i18n from '@byteluck/ok-vue-i18n';
|
|
12
12
|
import * as vue from 'vue';
|
|
13
13
|
export declare function globalModules(isPc: boolean): {
|
|
14
14
|
vue: typeof vue;
|
|
@@ -24,6 +24,7 @@ export declare function globalModules(isPc: boolean): {
|
|
|
24
24
|
'@byteluck-fe/custom-control-sdk/runtime': typeof CustomControlSdkMainRuntime;
|
|
25
25
|
'@byteluck-fe/global-shared': typeof GlobalShared;
|
|
26
26
|
'@byteluck/global-shared': typeof GlobalShared;
|
|
27
|
+
'ok-vue-i18n': typeof i18n;
|
|
27
28
|
} & ({
|
|
28
29
|
'ant-design-vue': {
|
|
29
30
|
version: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const setControlsClass: (controlId: string, rowIndex: number | undefined, className: string, subtaleContorlId?: string, isAdd?: boolean) => void;
|
|
1
|
+
export declare const setControlsClass: (controlId: string, rowIndex: number | undefined, className: string, subtaleContorlId?: string | undefined, isAdd?: boolean) => void;
|
package/package.json
CHANGED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { PropType, Ref, DefineComponent, 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
|
-
}, {
|
|
35
|
-
visible: Ref<boolean>;
|
|
36
|
-
contentRef: Ref<ElRef<HTMLDivElement>>;
|
|
37
|
-
detailListStatus: Ref<boolean>;
|
|
38
|
-
handleChangeVisible: (value: boolean) => void;
|
|
39
|
-
handleShowDetail: () => void;
|
|
40
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
41
|
-
instance: {
|
|
42
|
-
type: PropType<ControlRuntimeInstance<"select" | "select-multiple">>;
|
|
43
|
-
default: () => void;
|
|
44
|
-
};
|
|
45
|
-
value: {
|
|
46
|
-
type: StringConstructor[];
|
|
47
|
-
required: false;
|
|
48
|
-
};
|
|
49
|
-
title: {
|
|
50
|
-
type: PropType<VueNode>;
|
|
51
|
-
default: string;
|
|
52
|
-
};
|
|
53
|
-
overlayClassName: {
|
|
54
|
-
type: StringConstructor;
|
|
55
|
-
default: string;
|
|
56
|
-
};
|
|
57
|
-
color: {
|
|
58
|
-
type: StringConstructor;
|
|
59
|
-
default: undefined;
|
|
60
|
-
};
|
|
61
|
-
isShowDetail: {
|
|
62
|
-
type: BooleanConstructor;
|
|
63
|
-
default: boolean;
|
|
64
|
-
};
|
|
65
|
-
formVisible: {
|
|
66
|
-
type: BooleanConstructor;
|
|
67
|
-
default: boolean;
|
|
68
|
-
};
|
|
69
|
-
}>>, {
|
|
70
|
-
title: VueNode;
|
|
71
|
-
color: string;
|
|
72
|
-
instance: ControlRuntimeInstance<"select" | "select-multiple">;
|
|
73
|
-
overlayClassName: string;
|
|
74
|
-
formVisible: boolean;
|
|
75
|
-
isShowDetail: boolean;
|
|
76
|
-
}, {}>;
|
|
77
|
-
export default EllipsisTooltip;
|
|
@@ -1,9 +0,0 @@
|
|
|
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[]>;
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,137 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
export declare function useFormItemValidate(): {
|
|
6
|
-
formItemRef: Ref<any>;
|
|
7
|
-
formItemValidate: () => Promise<any>;
|
|
8
|
-
};
|
|
9
|
-
export declare function useBaseForm<T extends RuntimeFormControl>(instanceProps: ShallowRef<T['props']>, instance: T, rowIndex: number | undefined, value?: ComputedRef<any>): {
|
|
10
|
-
context: Ref<Engine> | undefined;
|
|
11
|
-
isDisabled: ComputedRef<boolean>;
|
|
12
|
-
placeholder: ComputedRef<any>;
|
|
13
|
-
updateValue: (value: string | string[] | number | number[] | object) => void;
|
|
14
|
-
pageStatus: ComputedRef< PAGE_STATUS>;
|
|
15
|
-
isReadonly: ComputedRef<boolean>;
|
|
16
|
-
isEditable: ComputedRef<boolean>;
|
|
17
|
-
rules: ComputedRef< PropertyRuntimeRules>;
|
|
18
|
-
formItemRef: Ref<any>;
|
|
19
|
-
formItemValidate: () => Promise<any>;
|
|
20
|
-
isPrint: ComputedRef<boolean>;
|
|
21
|
-
isSubtable: ComputedRef<boolean>;
|
|
22
|
-
isMobileEditable: ComputedRef<boolean>;
|
|
23
|
-
props: ShallowRef<T["props"]>;
|
|
24
|
-
isApproval: boolean;
|
|
25
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
2
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
-
import { ICellRendererParams } from '@ag-grid-community/core';
|
|
4
|
-
|
|
5
|
-
export declare function dealGridTableColumns(params: {
|
|
6
|
-
filterInstance?: ControlRuntimeInstance<'subtable-column'>;
|
|
7
|
-
meta: 'pc' | 'mobile';
|
|
8
|
-
isPinned?: boolean;
|
|
9
|
-
isPrintMode?: boolean;
|
|
10
|
-
}): {
|
|
11
|
-
width: number | undefined;
|
|
12
|
-
maxWidth: number | undefined;
|
|
13
|
-
minWidth: number | undefined;
|
|
14
|
-
flex: number | undefined;
|
|
15
|
-
pinned: string | boolean | undefined;
|
|
16
|
-
};
|
|
17
|
-
export declare const subTableCellRenderColumn: (subtableRow?: ControlRuntimeInstance<'subtable-column'>, isPinned?: boolean, isPrintMode?: boolean) => {
|
|
18
|
-
width: number | undefined;
|
|
19
|
-
maxWidth: number | undefined;
|
|
20
|
-
minWidth: number | undefined;
|
|
21
|
-
flex: number | undefined;
|
|
22
|
-
pinned: string | boolean | undefined;
|
|
23
|
-
cellEditor: DefineComponent<{
|
|
24
|
-
params: {
|
|
25
|
-
type: ObjectConstructor;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
}, any, {
|
|
29
|
-
engine: any;
|
|
30
|
-
}, {
|
|
31
|
-
comRowRecord(): {};
|
|
32
|
-
rowIndex(): any;
|
|
33
|
-
instance(): any;
|
|
34
|
-
}, {
|
|
35
|
-
getState(): any;
|
|
36
|
-
getValue(): any;
|
|
37
|
-
openVirtuallyModel(params: any): void;
|
|
38
|
-
getPopupContainer(): Element | undefined;
|
|
39
|
-
}, ComponentOptionsMixin, ComponentOptionsMixin, "openVirtuallyModel"[], "openVirtuallyModel", PublicProps, Readonly< ExtractPropTypes<{
|
|
40
|
-
params: {
|
|
41
|
-
type: ObjectConstructor;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
|
-
}>> & {
|
|
45
|
-
onOpenVirtuallyModel?: ((...args: any[]) => any) | undefined;
|
|
46
|
-
}, {}, {}>;
|
|
47
|
-
cellRenderer?: string | ((params: ICellRendererParams<any, any, any>) => HTMLSpanElement) | undefined;
|
|
48
|
-
};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { CONTROL_TYPE, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
2
|
-
import { ICellRendererParams } from '@ag-grid-community/core';
|
|
3
|
-
|
|
4
|
-
declare const showPasteMap: CONTROL_TYPE[];
|
|
5
|
-
declare const subtableReadonlyCellRenders: (subtableRow?: ControlRuntimeInstance<'subtable-column'>, options?: {
|
|
6
|
-
pageInfo: {
|
|
7
|
-
current: number;
|
|
8
|
-
pageSize: number;
|
|
9
|
-
};
|
|
10
|
-
}) => {
|
|
11
|
-
cellRenderer: string | ((params: ICellRendererParams) => HTMLSpanElement);
|
|
12
|
-
} | undefined;
|
|
13
|
-
export { subtableReadonlyCellRenders, showPasteMap };
|