@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.
- package/dist/runtime-engine.js +17054 -13773
- 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/components/EllipsisTooltip/EllipsisTooltip.d.ts +87 -0
- package/dist/src/entry_desktop/components/FormEngine/index.d.ts +3 -0
- 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-comment/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useAgGrid.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 +20 -4
- 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-step/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-sublist/hooks/useModel.d.ts +1 -0
- 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_desktop/controls/rok-table-layout/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-table-layout-row/index.d.ts +4 -0
- package/dist/src/entry_desktop/controls/rok-table-layout-wrapper/index.d.ts +3 -0
- package/dist/src/entry_desktop/hooks/layoutVar.d.ts +197 -0
- package/dist/src/entry_desktop/views/list-application/hooks/useListApplication.d.ts +3 -3
- package/dist/src/entry_mobile/components/VanSuperForm/VanSuperForm.d.ts +2 -2
- package/dist/src/entry_mobile/controls/components/table/hooks/hook.d.ts +2 -0
- 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 +40 -3
- package/dist/src/entry_mobile/controls/rok-attachment/upload.type.d.ts +5 -5
- package/dist/src/entry_mobile/controls/rok-attachment/utils.d.ts +2 -1
- package/dist/src/entry_mobile/controls/rok-comment/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-date-picker/hook.d.ts +148 -3
- package/dist/src/entry_mobile/controls/rok-date-range/hook.d.ts +149 -3
- package/dist/src/entry_mobile/controls/rok-department/hook.d.ts +20 -3
- package/dist/src/entry_mobile/controls/rok-department2/hook.d.ts +21 -3
- 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-grid-table/hooks/useRender.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-image/image.type.d.ts +3 -3
- package/dist/src/entry_mobile/controls/rok-list-view/hook.d.ts +2 -1
- package/dist/src/entry_mobile/controls/rok-organization-selection/hook.d.ts +20 -3
- package/dist/src/entry_mobile/controls/rok-search-date-range/hook.d.ts +146 -3
- package/dist/src/entry_mobile/controls/rok-step/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-subtable/components/AgGrid/hooks/useAgGrid.d.ts +2 -0
- package/dist/src/entry_mobile/controls/rok-subtable/hooks/useFull.d.ts +1 -1
- package/dist/src/entry_mobile/controls/rok-table-layout/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-table-layout-row/index.d.ts +4 -0
- package/dist/src/entry_mobile/controls/rok-table-layout-wrapper/index.d.ts +3 -0
- package/dist/src/entry_mobile/views/page-render/process-form/hooks.d.ts +1 -0
- package/dist/src/entry_mobile/views/page-render/useCancel.d.ts +1 -1
- package/dist/src/hooks/ag-grid-config.d.ts +4 -0
- package/dist/src/hooks/atomic/useEventListener.d.ts +1 -1
- package/dist/src/hooks/components/formEngineModal/index.d.ts +1 -0
- package/dist/src/hooks/components/formEngineModal/useFormEngine.d.ts +43 -0
- package/dist/src/hooks/components/formEngineModal/useFormEngineModal.d.ts +1 -0
- package/dist/src/hooks/components/formEngineModal/useFormState.d.ts +1 -0
- package/dist/src/hooks/components/listEngineModal/useListEngineModal.d.ts +3 -0
- package/dist/src/hooks/components/listEngineModal/useListState.d.ts +2 -1
- package/dist/src/hooks/components/useGroupTaskCommentTag.d.ts +3 -0
- package/dist/src/hooks/components/useLayoutChildren.d.ts +2 -2
- package/dist/src/hooks/components/useList.d.ts +9 -0
- package/dist/src/hooks/context/useGlobalEngineContext.d.ts +1 -0
- package/dist/src/hooks/controls/department2/useDepartmentDisabledSelected.d.ts +5 -0
- package/dist/src/hooks/controls/form/interface.d.ts +2 -2
- package/dist/src/hooks/controls/listMaster/useModel.d.ts +1 -0
- package/dist/src/hooks/controls/listSelectButton/useEngineFillState.d.ts +2 -2
- package/dist/src/hooks/controls/listSelectButton/useListSelectButton.d.ts +1 -1
- package/dist/src/hooks/controls/listView/useIframe.d.ts +2 -1
- package/dist/src/hooks/controls/listView/useListRows.d.ts +5 -0
- package/dist/src/hooks/controls/listView/useModel.d.ts +5 -4
- package/dist/src/hooks/controls/listView/useRowSpanModel.d.ts +1 -1
- package/dist/src/hooks/controls/selecRelation/useSelectRelationEngineInit.d.ts +1 -1
- package/dist/src/hooks/controls/simpleSearch/useSimpleSearch.d.ts +1 -1
- package/dist/src/hooks/controls/subtable/useSubtableFormEngineModal.d.ts +4 -1
- package/dist/src/hooks/controls/tab/useTab.d.ts +14 -0
- package/dist/src/hooks/controls/useDateRange.d.ts +137 -0
- package/dist/src/hooks/form/useBaseForm.d.ts +35 -0
- 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/hooks/form/useFormPageMask.d.ts +4 -0
- package/dist/src/hooks/model/useDashboardState.d.ts +9 -1
- package/dist/src/hooks/views/useApprovalForm.d.ts +5 -0
- package/dist/src/hooks/views/useExternalFormData.d.ts +1 -0
- package/dist/src/hooks/views/useFormRenderByApprovalProcess.d.ts +4 -0
- package/dist/src/hooks/views/useFormRenderByFormKeyAndUid.d.ts +1 -0
- package/dist/src/hooks/views/usePageForm.d.ts +1 -0
- package/dist/src/hooks/views/usePrintForm.d.ts +1 -0
- package/dist/src/hooks/views/useProcessForm.d.ts +3 -0
- package/dist/src/hooks/views/useProcessFormRenderByFormKeyAndUid.d.ts +3 -0
- package/dist/src/plugins/engine/ActionUtilsPlugin.d.ts +12 -8
- package/dist/src/plugins/engine/CustomVueControlPlugin.d.ts +2 -2
- package/dist/src/plugins/engine/DataSourceManagePlugin.d.ts +1 -1
- package/dist/src/plugins/engine/DataViewPlugin.d.ts +3 -1
- package/dist/src/plugins/engine/DatasourceSearchPlugin.d.ts +3 -1
- package/dist/src/plugins/engine/DisplayPlugin.d.ts +2 -0
- package/dist/src/plugins/engine/EventListenerPlugin/index.d.ts +1 -0
- package/dist/src/plugins/engine/EventListenerPlugin/type.d.ts +13 -12
- package/dist/src/plugins/engine/ExpressionPlugin.d.ts +9 -1
- package/dist/src/plugins/engine/MultistageFillingPlugin.d.ts +1 -1
- package/dist/src/plugins/engine/TitleSettingPlugin.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/services/services.auto.d.ts +25 -1
- package/dist/src/services/template.d.ts +1 -1
- package/dist/src/store/index.d.ts +2 -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/controls/subtableDealTableColumn.d.ts +49 -0
- package/dist/src/utils/controls/subtableReadonlyCellRenders.d.ts +13 -0
- package/dist/src/utils/core/captionStyle.d.ts +1 -0
- package/dist/src/utils/core/crossMessageProcessor.d.ts +1 -1
- package/dist/src/utils/core/customVariables.d.ts +4 -0
- package/dist/src/utils/core/expressionTools.d.ts +1 -1
- package/dist/src/utils/core/index.d.ts +2 -0
- 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/dateUtils.d.ts +1 -0
- package/dist/src/utils/tools/displayValue.d.ts +2 -2
- package/dist/src/utils/tools/getCachedApplyRender.d.ts +1 -1
- package/dist/src/utils/tools/subtableAgGridUtils.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/entry_desktop/controls/rok-attachment/hook-file-base.d.ts +0 -4
- package/dist/src/entry_desktop/controls/rok-attachment/hook.d.ts +0 -30
|
@@ -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
|
|
4
|
+
export 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
|
|
4
|
+
export type ExecuteActionParams = {
|
|
5
5
|
engine: Engine;
|
|
6
6
|
actionsMap: IBaitedaEventHandler[];
|
|
7
7
|
options: EventPayload & {
|
|
@@ -267,6 +267,17 @@ export default class {
|
|
|
267
267
|
};
|
|
268
268
|
}, options?: any): Promise<typing.ListResult$BizModelFieldBo$>;
|
|
269
269
|
/**
|
|
270
|
+
* 获取ai权限
|
|
271
|
+
* @method
|
|
272
|
+
* @name #CheckSubAppPermisssionPagePrivateV1ApiAppsGET
|
|
273
|
+
* @param {string} code - 编码
|
|
274
|
+
*/
|
|
275
|
+
CheckSubAppPermisssionPagePrivateV1ApiAppsGET(params: {
|
|
276
|
+
query?: {
|
|
277
|
+
'sapp_id'?: string;
|
|
278
|
+
};
|
|
279
|
+
}, options?: any): Promise<typing.ListResult$BizModelFieldBo$>;
|
|
280
|
+
/**
|
|
270
281
|
* 数据字段列表
|
|
271
282
|
* @method
|
|
272
283
|
* @name #GetModelFieldsBizModelPrivateV1ApiAppsPOST
|
|
@@ -1487,6 +1498,7 @@ export default class {
|
|
|
1487
1498
|
'dataCode'?: string;
|
|
1488
1499
|
'dataUid'?: string;
|
|
1489
1500
|
'formKey'?: string;
|
|
1501
|
+
'delInstStatus'?: boolean;
|
|
1490
1502
|
};
|
|
1491
1503
|
}, options?: any): Promise<typing.PlainResult$string$>;
|
|
1492
1504
|
/**
|
|
@@ -1608,6 +1620,15 @@ export default class {
|
|
|
1608
1620
|
payload?: typing.SubmitFormDto_1;
|
|
1609
1621
|
}, options?: any): Promise<typing.ListResult$OptionalNodeDto$>;
|
|
1610
1622
|
/**
|
|
1623
|
+
* 获取下个节点的审批人范围
|
|
1624
|
+
* @method
|
|
1625
|
+
* @name #GetNextNodeUserByInvokeOptOperatorPrivateV1ApiAppsPOST
|
|
1626
|
+
* @param {} runFormRequest - runFormRequest
|
|
1627
|
+
*/
|
|
1628
|
+
GetNextNodeUserByInvokeOptOperatorPrivateV1ApiAppsPOST(params: {
|
|
1629
|
+
payload?: typing.SubmitFormDto_3;
|
|
1630
|
+
}, options?: any): Promise<typing.ListResult$OptionalNodeDto$>;
|
|
1631
|
+
/**
|
|
1611
1632
|
* getPageSimpleInfo
|
|
1612
1633
|
* @method
|
|
1613
1634
|
* @name #GetPageSimpleInfoPagePrivateV1ApiAppsGET
|
|
@@ -1675,7 +1696,10 @@ export default class {
|
|
|
1675
1696
|
*/
|
|
1676
1697
|
ProcessDataDisplayPagePrivateV1ApiAppsPOST(params: {
|
|
1677
1698
|
payload?: typing.ApproveRenderDto;
|
|
1678
|
-
}, options?: any): Promise<typing.PlainResult$PageDataDisplayBo
|
|
1699
|
+
}, options?: any): Promise<typing.PlainResult$PageDataDisplayBo$>;
|
|
1700
|
+
GroupTaskCommentTagRecordTaskV2AuthEgoApiPOST(params: {
|
|
1701
|
+
payload?: any;
|
|
1702
|
+
}, options?: any): Promise<typing.PlainResult$PageDataDisplayBo$>;
|
|
1679
1703
|
/**
|
|
1680
1704
|
* 传入:模型编码、主键值、流程key
|
|
1681
1705
|
* @method
|
|
@@ -7,7 +7,7 @@ export default class {
|
|
|
7
7
|
* 导入高级模板
|
|
8
8
|
* @method
|
|
9
9
|
*/
|
|
10
|
-
advancedImport(mode: string, templateCode: string, updateKey: Array<string>, file: any): Promise<any>;
|
|
10
|
+
advancedImport(mode: string, templateCode: string, updateKey: Array<string>, file: any, timeZone: any): Promise<any>;
|
|
11
11
|
/**
|
|
12
12
|
* 明细表高级模版
|
|
13
13
|
* @method
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Store } from 'vuex';
|
|
2
|
-
|
|
2
|
+
type HighPerformanceSubtableEditingCell = {
|
|
3
3
|
subTableId: string;
|
|
4
4
|
rowIndex: number;
|
|
5
5
|
colField: string;
|
|
@@ -40,5 +40,6 @@ declare const _default: Store<{
|
|
|
40
40
|
isInnerTabPaneOverflowHide: boolean;
|
|
41
41
|
tableStatisticsBtnClicked: any;
|
|
42
42
|
headerSearchPage: any;
|
|
43
|
+
groupTaskCommentTag: any[];
|
|
43
44
|
}>;
|
|
44
45
|
export default _default;
|
package/dist/src/types/type.d.ts
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { PropType, VNodeChild } from 'vue';
|
|
2
2
|
|
|
3
|
-
export
|
|
3
|
+
export 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
|
|
10
|
+
export 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
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
18
|
-
|
|
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;
|
|
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
|
|
25
|
+
export 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[]
|
|
5
|
+
declare const validAttachmentType: (fileName: string, type?: string[]) => 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
|
|
4
|
+
export declare const formatColumnDate: (fullColumns: any[], data: any, key?: string, 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[]
|
|
5
|
+
declare const validImageType: (fileName: string, type?: string[]) => 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
|
|
1
|
+
export declare const scrollIntoDomView: (domAndClass: string | Element, params?: ScrollToOptions, rowIndex?: number) => Promise<void>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
3
|
+
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
4
|
+
import { ICellRendererParams } from '@ag-grid-community/core';
|
|
5
|
+
|
|
6
|
+
export declare function dealGridTableColumns(params: {
|
|
7
|
+
filterInstance?: ControlRuntimeInstance<'subtable-column'>;
|
|
8
|
+
meta: 'pc' | 'mobile';
|
|
9
|
+
isPinned?: boolean;
|
|
10
|
+
isPrintMode?: boolean;
|
|
11
|
+
}): {
|
|
12
|
+
width: number | undefined;
|
|
13
|
+
maxWidth: number | undefined;
|
|
14
|
+
minWidth: number | undefined;
|
|
15
|
+
flex: number | undefined;
|
|
16
|
+
pinned: string | boolean | undefined;
|
|
17
|
+
};
|
|
18
|
+
export declare const subTableCellRenderColumn: (subtableRow?: ControlRuntimeInstance<'subtable-column'>, isPinned?: boolean, isPrintMode?: boolean) => {
|
|
19
|
+
width: number | undefined;
|
|
20
|
+
maxWidth: number | undefined;
|
|
21
|
+
minWidth: number | undefined;
|
|
22
|
+
flex: number | undefined;
|
|
23
|
+
pinned: string | boolean | undefined;
|
|
24
|
+
cellEditor: DefineComponent<{
|
|
25
|
+
params: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
}, any, {
|
|
30
|
+
engine: Engine;
|
|
31
|
+
}, {
|
|
32
|
+
comRowRecord(): {};
|
|
33
|
+
rowIndex(): any;
|
|
34
|
+
instance(): any;
|
|
35
|
+
}, {
|
|
36
|
+
getState(): any;
|
|
37
|
+
getValue(): any;
|
|
38
|
+
openVirtuallyModel(params: any): void;
|
|
39
|
+
getPopupContainer(): Element | undefined;
|
|
40
|
+
}, ComponentOptionsMixin, ComponentOptionsMixin, "openVirtuallyModel"[], "openVirtuallyModel", PublicProps, Readonly< ExtractPropTypes<{
|
|
41
|
+
params: {
|
|
42
|
+
type: ObjectConstructor;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
}>> & {
|
|
46
|
+
onOpenVirtuallyModel?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
}, {}, {}>;
|
|
48
|
+
cellRenderer?: string | ((params: ICellRendererParams<any, any, any>) => HTMLSpanElement | undefined) | undefined;
|
|
49
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
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 | undefined);
|
|
12
|
+
} | undefined;
|
|
13
|
+
export { subtableReadonlyCellRenders, showPasteMap };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const getCaptionStyle: (controlProps: any) => string;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const CUSTOM_VARIABLE_RIGHT_VALUE_TYPE = "custom-variable";
|
|
2
|
+
export type CustomVariables = Record<string, unknown>;
|
|
3
|
+
export declare function normalizeCustomVariables<T extends Record<string, any>>(params: T): T;
|
|
4
|
+
export declare function hasCustomVariables(params?: Record<string, any> | null): any;
|
|
@@ -34,7 +34,7 @@ export declare class ExpressionTools {
|
|
|
34
34
|
parseAndOrFunctionExpression(expression: any): void;
|
|
35
35
|
parseIfFunctionExpression(expression: any): void;
|
|
36
36
|
getConditionCodes(conditionArgument: any[]): string[];
|
|
37
|
-
deepCloneWithPrototype(obj: any, map?: WeakMap<
|
|
37
|
+
deepCloneWithPrototype(obj: any, map?: WeakMap<WeakKey, any>): any;
|
|
38
38
|
doExpressionParse(id: string, propertyKey: string): void;
|
|
39
39
|
registerSystemVariables(): void;
|
|
40
40
|
/**
|
|
@@ -3,6 +3,7 @@ export * from './cacheRequest';
|
|
|
3
3
|
export * from './setFormData';
|
|
4
4
|
export * from './setSubtableData';
|
|
5
5
|
export * from './buildFiltersToDataSetValues';
|
|
6
|
+
export * from './customVariables';
|
|
6
7
|
export * from './math';
|
|
7
8
|
export { default as vueApp } from './vueApp';
|
|
8
9
|
export { default as Mitt } from './tinyMitt';
|
|
@@ -15,3 +16,4 @@ export * from './dynamicDefaultValue';
|
|
|
15
16
|
export * from './setSubtableCache';
|
|
16
17
|
export * from './buildSubtableStoreState';
|
|
17
18
|
export * from './ai';
|
|
19
|
+
export * from './captionStyle';
|
|
@@ -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
|
|
7
|
+
export declare const toFixed: (num: Decimal.Value, dp?: number) => 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
|
|
5
|
+
getCacheDisplayValue: (value?: unknown[] | string[] | string) => any[];
|
|
6
|
+
updateCacheDisplay: (data: any, valueCode?: string, displayCode?: string) => void;
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
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;
|
|
@@ -6,8 +6,8 @@ declare const getControlDisplay: (instanceId: string, engine: Engine) => {
|
|
|
6
6
|
data: any;
|
|
7
7
|
type: string;
|
|
8
8
|
} | undefined;
|
|
9
|
-
declare const getPageDisplayValues: (engine: Engine, container?: Document
|
|
10
|
-
declare const getPageFullDisplayValues: (engine: Engine, container?: Document
|
|
9
|
+
declare const getPageDisplayValues: (engine: Engine, container?: Document) => any[];
|
|
10
|
+
declare const getPageFullDisplayValues: (engine: Engine, container?: Document) => {
|
|
11
11
|
main: any[];
|
|
12
12
|
files: {
|
|
13
13
|
type: string;
|
|
@@ -16,5 +16,5 @@ declare const api: {
|
|
|
16
16
|
appsCustomAuto: __DTS_DEFAULT_6__;
|
|
17
17
|
httpClient: FetchService;
|
|
18
18
|
};
|
|
19
|
-
export declare function getCachedApplyRender(method: typeof api.default.ApplyRenderCodeShortPagePrivateV1ApiAppsPOST | typeof api.default.ApplyRenderPagePrivateV1ApiAppsPOST, args: any): Promise<typing.PlainResult$ApplyPageBo$>;
|
|
19
|
+
export declare function getCachedApplyRender(method: typeof api.default.ApplyRenderCodeShortPagePrivateV1ApiAppsPOST | typeof api.default.ApplyRenderPagePrivateV1ApiAppsPOST, args: any, modalInForm?: boolean): Promise<typing.PlainResult$ApplyPageBo$>;
|
|
20
20
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const setControlsClass: (controlId: string, rowIndex: number | undefined, className: string, subtaleContorlId?: string
|
|
1
|
+
export declare const setControlsClass: (controlId: string, rowIndex: number | undefined, className: string, subtaleContorlId?: string, isAdd?: boolean) => void;
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { ComputedRef, ShallowRef } from 'vue';
|
|
2
|
-
import { ControlPropertyInstance, ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
3
|
-
|
|
4
|
-
export default function (instanceProps: ShallowRef<ControlPropertyInstance<'attachment' | 'image'>>, instance: ControlRuntimeInstance<'attachment' | 'image'>, rowIndex: number | undefined, value: ComputedRef<string[]>): any;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { CONTROL_TYPE, PAGE_STATUS } from '@byteluck-fe/model-driven-core-all';
|
|
2
|
-
import { PropsInstanceType } from '../../../constant';
|
|
3
|
-
import { Ref, ComputedRef } from 'vue';
|
|
4
|
-
|
|
5
|
-
export default function (props: PropsInstanceType<CONTROL_TYPE.ATTACHMENT>): {
|
|
6
|
-
data: Ref<{
|
|
7
|
-
deletable: boolean;
|
|
8
|
-
app_id: any;
|
|
9
|
-
form_key: string;
|
|
10
|
-
element_id: string;
|
|
11
|
-
}>;
|
|
12
|
-
isDisabled: ComputedRef<boolean>;
|
|
13
|
-
limit: ComputedRef<number>;
|
|
14
|
-
accept: ComputedRef<string>;
|
|
15
|
-
hideUploader: ComputedRef<boolean>;
|
|
16
|
-
fileList: ComputedRef<string[]>;
|
|
17
|
-
pageStatus: ComputedRef< PAGE_STATUS | undefined>;
|
|
18
|
-
operation: ComputedRef<any>;
|
|
19
|
-
updateCtrlValue: (data: any) => void;
|
|
20
|
-
beforeUpload: (file: any, list: any[]) => boolean | undefined;
|
|
21
|
-
handleExceed: () => void;
|
|
22
|
-
handleExplanation: (file: any) => Promise<void>;
|
|
23
|
-
uploadError: (data: {
|
|
24
|
-
error: any;
|
|
25
|
-
file: any;
|
|
26
|
-
fileLists: any;
|
|
27
|
-
}) => void;
|
|
28
|
-
setParamsUpload: () => void;
|
|
29
|
-
setUploadProps: (rokAttachment: any) => void;
|
|
30
|
-
};
|