@byteluck-fe/runtime-engine 6.2.0-beta.1 → 6.2.1-gdnz-beta.2
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 +69263 -15509
- package/dist/src/constant/controls/simple-search.d.ts +1 -0
- package/dist/src/constant/page/address.d.ts +1 -1
- package/dist/src/entry_desktop/components/EllipsisTooltip/EllipsisTooltip.d.ts +3 -3
- package/dist/src/entry_desktop/controls/rok-bar-chart/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-barcode/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-blank-container/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-cascader/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-collapse/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-counter/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-grid-table/detailGridPaginationMount.d.ts +5 -0
- package/dist/src/entry_desktop/controls/rok-grid-table/detailPaginationSyncBus.d.ts +13 -0
- package/dist/src/entry_desktop/controls/rok-grid-table/hooks/useColumns.d.ts +19 -5
- package/dist/src/entry_desktop/controls/rok-iframe/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-line-chart/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-pie-chart/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-qr-code/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-slider/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-switch/index.d.ts +3 -0
- package/dist/src/entry_desktop/controls/rok-tag/index.d.ts +3 -0
- package/dist/src/entry_desktop/hooks/layoutVar.d.ts +1 -1
- package/dist/src/entry_desktop/utils/openType.d.ts +3 -0
- package/dist/src/entry_desktop/views/list-application/hooks/useListApplication.d.ts +1 -1
- package/dist/src/entry_desktop/views/multiple-tabs-form/embeddedUrl.d.ts +2 -0
- package/dist/src/entry_mobile/controls/rok-bar-chart/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-barcode/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-blank-container/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-cascader/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-collapse/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-counter/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-iframe/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-line-chart/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-list-view/hook.d.ts +1 -1
- package/dist/src/entry_mobile/controls/rok-pie-chart/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-qr-code/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-slider/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-switch/index.d.ts +3 -0
- package/dist/src/entry_mobile/controls/rok-tag/index.d.ts +3 -0
- package/dist/src/hooks/components/useMenu.d.ts +1 -1
- package/dist/src/hooks/controls/address/useAddress.d.ts +1 -1
- package/dist/src/hooks/controls/barcode/index.d.ts +1 -0
- package/dist/src/hooks/controls/barcode/useBarcode.d.ts +25 -0
- package/dist/src/hooks/controls/chart/chart-event-result.d.ts +4 -0
- package/dist/src/hooks/controls/chart/chart-event-result.test.d.mts +1 -0
- package/dist/src/hooks/controls/chart/chart-transform.d.ts +19 -0
- package/dist/src/hooks/controls/chart/index.d.ts +1 -0
- package/dist/src/hooks/controls/chart/useChart.d.ts +13 -0
- package/dist/src/hooks/controls/counter/index.d.ts +1 -0
- package/dist/src/hooks/controls/file/useUploading.d.ts +1 -1
- package/dist/src/hooks/controls/iframe/index.d.ts +1 -0
- package/dist/src/hooks/controls/iframe/useIframe.d.ts +15 -0
- package/dist/src/hooks/controls/index.d.ts +7 -0
- package/dist/src/hooks/controls/listView/useIframe.d.ts +3 -1
- package/dist/src/hooks/controls/listView/useListRows.d.ts +6 -1
- package/dist/src/hooks/controls/listView/useModel.d.ts +11 -2
- package/dist/src/hooks/controls/qrCode/index.d.ts +1 -0
- package/dist/src/hooks/controls/qrCode/useQrCode.d.ts +26 -0
- package/dist/src/hooks/controls/slider/index.d.ts +1 -0
- package/dist/src/hooks/controls/switch/index.d.ts +1 -0
- package/dist/src/hooks/controls/useRokFormEngineModal.d.ts +1 -0
- package/dist/src/hooks/form/useDisplay.d.ts +1 -1
- package/dist/src/plugins/axios.d.ts +19 -0
- package/dist/src/plugins/engine/ActionUtilsPlugin.d.ts +2 -3
- package/dist/src/plugins/engine/EventListenerPlugin/JsMethodHandler.test.d.mts +1 -0
- package/dist/src/plugins/engine/EventListenerPlugin/chart-change-source.test.d.mts +1 -0
- package/dist/src/plugins/engine/EventListenerPlugin/chartChangeResult.d.ts +9 -0
- package/dist/src/plugins/engine/EventListenerPlugin/chartChangeResult.test.d.mts +1 -0
- package/dist/src/plugins/engine/EventListenerPlugin/exceutor.d.ts +2 -1
- package/dist/src/plugins/engine/EventListenerPlugin/index.d.ts +2 -0
- package/dist/src/plugins/engine/EventListenerPlugin/type.d.ts +2 -3
- package/dist/src/plugins/globalState.d.ts +13 -0
- package/dist/src/plugins/utils/ActionHandle/ActionHandler.d.ts +1 -1
- package/dist/src/plugins/utils/ActionHandle/ConcreteHandler.d.ts +1 -1
- package/dist/src/plugins/utils/ActionHandle/ExecuteAction.d.ts +7 -0
- package/dist/src/services/baseAuto.d.ts +2 -0
- package/dist/src/services/services.auto.d.ts +36 -0
- package/dist/src/utils/controls/dateUtils.d.ts +1 -1
- package/dist/src/utils/controls/gridColumnRuntimeControl.d.ts +13 -0
- package/dist/src/utils/controls/index.d.ts +1 -0
- package/dist/src/utils/controls/masterDetailHeaders.d.ts +15 -0
- package/dist/src/utils/core/crossMessageProcessor.d.ts +10 -2
- package/dist/src/utils/core/index.d.ts +0 -1
- package/dist/src/utils/model/operateCache.d.ts +1 -1
- package/dist/src/utils/tools/index.d.ts +3 -0
- package/dist/src/utils/tools/loadTinymce.d.ts +1 -0
- package/dist/src/utils/tools/routeParam.d.ts +3 -0
- package/dist/src/utils/tools/setAdaptiveTextColor.d.ts +2 -0
- package/package.json +1 -1
- package/dist/src/utils/core/customVariables.d.ts +0 -4
|
@@ -4,7 +4,7 @@ import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
|
4
4
|
|
|
5
5
|
declare const EllipsisTooltip: DefineComponent<{
|
|
6
6
|
instance: {
|
|
7
|
-
type: PropType<ControlRuntimeInstance<"select" | "select-multiple">>;
|
|
7
|
+
type: PropType<ControlRuntimeInstance<"select" | "select-multiple" | "tag">>;
|
|
8
8
|
default: () => void;
|
|
9
9
|
};
|
|
10
10
|
value: {
|
|
@@ -44,7 +44,7 @@ declare const EllipsisTooltip: DefineComponent<{
|
|
|
44
44
|
handleShowDetail: () => void;
|
|
45
45
|
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
46
46
|
instance: {
|
|
47
|
-
type: PropType<ControlRuntimeInstance<"select" | "select-multiple">>;
|
|
47
|
+
type: PropType<ControlRuntimeInstance<"select" | "select-multiple" | "tag">>;
|
|
48
48
|
default: () => void;
|
|
49
49
|
};
|
|
50
50
|
value: {
|
|
@@ -78,7 +78,7 @@ declare const EllipsisTooltip: DefineComponent<{
|
|
|
78
78
|
}>>, {
|
|
79
79
|
title: VueNode;
|
|
80
80
|
color: string;
|
|
81
|
-
instance: ControlRuntimeInstance<"select" | "select-multiple">;
|
|
81
|
+
instance: ControlRuntimeInstance<"select" | "select-multiple" | "tag">;
|
|
82
82
|
overlayClassName: string;
|
|
83
83
|
formVisible: boolean;
|
|
84
84
|
isShowDetail: boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { GridApi } from '@ag-grid-community/core';
|
|
2
|
+
|
|
3
|
+
/** Master/Detail 嵌套网格:挂载与主表一致的 Ant Pagination */
|
|
4
|
+
export declare function mountMasterDetailAntPagination(api: GridApi<any>): void;
|
|
5
|
+
export declare function unmountMasterDetailAntPagination(api: GridApi<any>): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { GridApi } from '@ag-grid-community/core';
|
|
2
|
+
|
|
3
|
+
export type DetailPaginationMeta = {
|
|
4
|
+
current: number;
|
|
5
|
+
pageSize: number;
|
|
6
|
+
total: number;
|
|
7
|
+
};
|
|
8
|
+
export declare function registerDetailPaginationUISync(api: GridApi<any>, sync: () => void): void;
|
|
9
|
+
export declare function unregisterDetailPaginationUISync(api: GridApi<any>): void;
|
|
10
|
+
export declare function setDetailPaginationMeta(api: GridApi<any>, meta: Partial<DetailPaginationMeta>): void;
|
|
11
|
+
export declare function getDetailPaginationMeta(api: GridApi<any>): DetailPaginationMeta | undefined;
|
|
12
|
+
/** 服务端分页回调更新 total 等后刷新 Ant Pagination 展示 */
|
|
13
|
+
export declare function notifyDetailPaginationUISync(api: GridApi<any>): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComputedRef, Ref, ShallowRef } from 'vue';
|
|
1
|
+
import { ComputedRef, Ref, ShallowRef, MaybeRef } 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
|
|
|
@@ -8,6 +8,12 @@ import { DragStoppedEvent, GridApi, ColDef, ColumnResizedEvent } from '@ag-grid-
|
|
|
8
8
|
interface ExtendedColDef extends ColDef {
|
|
9
9
|
children?: ExtendedColDef[];
|
|
10
10
|
}
|
|
11
|
+
type ColumnBuildOptions = {
|
|
12
|
+
headers?: any[];
|
|
13
|
+
isDetail?: boolean;
|
|
14
|
+
detailKind?: 'masterDetail' | 'drillDown';
|
|
15
|
+
listViewProps?: any;
|
|
16
|
+
};
|
|
11
17
|
export declare function useColumns(params: {
|
|
12
18
|
instance: ControlRuntimeInstance<'grid-table'> | ComputedRef<ControlRuntimeInstance<'grid-table'>>;
|
|
13
19
|
isShowSelection?: ComputedRef<boolean>;
|
|
@@ -16,9 +22,19 @@ export declare function useColumns(params: {
|
|
|
16
22
|
isShowJoinRelation?: boolean;
|
|
17
23
|
isMuitiSelection?: ComputedRef<boolean>;
|
|
18
24
|
isShowCustomColumns?: ComputedRef<boolean>;
|
|
25
|
+
/** 与 rok-list-view 的 :control 一致,用于读取 isMasterDetail / masterDetail(勿仅依赖 instance.parent) */
|
|
26
|
+
listViewControl?: MaybeRef<ControlRuntimeInstance<'list-view'> | undefined>;
|
|
27
|
+
/** 主表 reactive gridInterface,子表同步 defaultColDef / overlay 等 */
|
|
28
|
+
gridInterface?: Record<string, unknown>;
|
|
29
|
+
/** 与主表一致的行高、表头高 */
|
|
30
|
+
detailRowHeight?: MaybeRef<number | undefined>;
|
|
31
|
+
/** 主表 ag-grid 的 context(含 engineId、exposeParams),子表 Header/Cell 依赖;在 setup 稍后赋值 */
|
|
32
|
+
masterGridAgContext?: ShallowRef<Record<string, unknown> | null>;
|
|
19
33
|
}): {
|
|
20
34
|
columns: ShallowRef<ColDef<any, any>[]>;
|
|
21
35
|
detailCellRendererParams: Ref<any>;
|
|
36
|
+
drillDownDetailReady: Ref<boolean>;
|
|
37
|
+
drillDetailRowHeight: Ref<number | undefined>;
|
|
22
38
|
operationbtns: any;
|
|
23
39
|
onColumnsMounted: () => void;
|
|
24
40
|
onDragStopped: (params: DragStoppedEvent) => void;
|
|
@@ -29,14 +45,12 @@ export declare function useColumns(params: {
|
|
|
29
45
|
viewConfigs: ComputedRef<ViewConfigType>;
|
|
30
46
|
customColumns: ShallowRef<any>;
|
|
31
47
|
fullColumns: any[];
|
|
32
|
-
getColumns: (viewFieldCode?: string[], type?: 'reset', options?:
|
|
33
|
-
headers: any[];
|
|
34
|
-
isDetail: boolean;
|
|
35
|
-
} | undefined) => Promise<void>;
|
|
48
|
+
getColumns: (viewFieldCode?: string[], type?: 'reset', options?: ColumnBuildOptions) => Promise<ColDef<any, any>[] | undefined>;
|
|
36
49
|
groupDefaultExpanded: ComputedRef<0 | -1>;
|
|
37
50
|
autoGroupColumnDef: ComputedRef<any>;
|
|
38
51
|
isTreeData: ComputedRef<boolean | undefined>;
|
|
39
52
|
isShowTreeGroupStatisticsBtn: ComputedRef<boolean | undefined>;
|
|
40
53
|
isMasterDetail: ComputedRef<boolean>;
|
|
54
|
+
isAgDetail: ComputedRef<boolean>;
|
|
41
55
|
};
|
|
42
56
|
export {};
|
|
@@ -81,7 +81,7 @@ declare namespace _default {
|
|
|
81
81
|
"--layout-rok-department-dialog-tree-search-padding": string;
|
|
82
82
|
"--layout-rok-department-dialog-tree-content-padding": string;
|
|
83
83
|
"--layout-rok-department-dialog-tree-content-treenode-padding": string;
|
|
84
|
-
"--layout-rok-department-dialog-tree-content-treenode-line-height":
|
|
84
|
+
"--layout-rok-department-dialog-tree-content-treenode-line-height": number;
|
|
85
85
|
"--layout-rok-department-dialog-tree-content-search-result-item-padding": string;
|
|
86
86
|
"--layout-rok-department-dialog-selected-header-padding": string;
|
|
87
87
|
"--layout-rok-employee-dialog-tree-content-treenode-height": string;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type RuntimeOpenType = 'tab' | 'window' | 'modal' | 'dialog' | 'current' | 'current-tab' | string | undefined;
|
|
2
|
+
export type IframeModalDisplayMode = 'drawer' | 'dialog';
|
|
3
|
+
export declare function getIframeModalDisplayMode(openType: RuntimeOpenType): IframeModalDisplayMode;
|
|
@@ -24,6 +24,6 @@ export declare function useListApplication(store: any, route: any, router: Route
|
|
|
24
24
|
clearSelectedKeysParent: () => void;
|
|
25
25
|
rightClick: (item: any, event: any) => void;
|
|
26
26
|
removeTabIndex: (lastIndex: number, targetKey: string) => void;
|
|
27
|
-
selectHandle: (menu: any) => void
|
|
27
|
+
selectHandle: (menu: any) => Promise<void>;
|
|
28
28
|
layoutChangeTab: (value: string, query?: any) => void;
|
|
29
29
|
};
|
|
@@ -7,7 +7,7 @@ import { fetchTableListParams } from '../../../hooks/controls/listView/useModel'
|
|
|
7
7
|
export default function useModel(instance: ControlRuntimeInstance<'list-view'>, fillFields: string[], refs: Ref<HTMLElement[]>, hasTree: ComputedRef, context?: Engine, listViewSelectRef?: Ref<any>, viewDataRef?: Ref<IViewData>): {
|
|
8
8
|
listData: Ref<any>;
|
|
9
9
|
listPagination: Ref<any>;
|
|
10
|
-
fetchTableList: ({ paginationInfo, ordersInfo, queryInfo, filtersInfo, isFilter, clear, isPost, isPageChange, isSerach, isViewSearch, }: fetchTableListParams, options?: {
|
|
10
|
+
fetchTableList: ({ paginationInfo, ordersInfo, queryInfo, filtersInfo, isFilter, clear, isPost, isPageChange, isSerach, isReset, isViewSearch, }: fetchTableListParams, options?: {
|
|
11
11
|
token: Number;
|
|
12
12
|
} | undefined) => Promise<void>;
|
|
13
13
|
deleteTableRow: (record: Recordable<unknown>, condition?: any) => Promise<void>;
|
|
@@ -13,6 +13,6 @@ export declare function useMenu(): {
|
|
|
13
13
|
multipleTabsPath: ComputedRef<"" | "/multipleTabs">;
|
|
14
14
|
collapsed: ComputedRef<any>;
|
|
15
15
|
getMenuList: () => Promise<void>;
|
|
16
|
-
selectHandle: (menu: any) => void
|
|
16
|
+
selectHandle: (menu: any) => Promise<void>;
|
|
17
17
|
};
|
|
18
18
|
export default useMenu;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useBarcode } from './useBarcode';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { PropsInstanceType } from '../../../constant';
|
|
2
|
+
import { ShallowRef, Ref, ComputedRef } from 'vue';
|
|
3
|
+
|
|
4
|
+
export declare function useBarcode(props: PropsInstanceType<'barcode'>): {
|
|
5
|
+
formItemRef: ShallowRef<null>;
|
|
6
|
+
renderError: Ref<string>;
|
|
7
|
+
barcodeDataUrl: Ref<string>;
|
|
8
|
+
formItemInstanceProps: ComputedRef<{
|
|
9
|
+
caption: any;
|
|
10
|
+
}>;
|
|
11
|
+
resolved: ComputedRef<{
|
|
12
|
+
caption: any;
|
|
13
|
+
defaultValue: any;
|
|
14
|
+
align: any;
|
|
15
|
+
format: string;
|
|
16
|
+
width: any;
|
|
17
|
+
height: any;
|
|
18
|
+
lineColor: any;
|
|
19
|
+
margin: any;
|
|
20
|
+
displayValue: any;
|
|
21
|
+
}>;
|
|
22
|
+
contentValue: ComputedRef<string>;
|
|
23
|
+
alignClass: ComputedRef<string>;
|
|
24
|
+
showPlaceholder: ComputedRef<boolean>;
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
interface ChartSeriesConfigItem {
|
|
2
|
+
nameField?: string;
|
|
3
|
+
valueField?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
}
|
|
6
|
+
export interface ChartTransformFields {
|
|
7
|
+
xField?: string;
|
|
8
|
+
yField?: string;
|
|
9
|
+
seriesConfig?: ChartSeriesConfigItem[];
|
|
10
|
+
}
|
|
11
|
+
type ChartKind = 'bar' | 'line' | 'pie';
|
|
12
|
+
export declare function transformDataToChartOption(params: {
|
|
13
|
+
optionJson: string;
|
|
14
|
+
template: string;
|
|
15
|
+
chartKind: ChartKind;
|
|
16
|
+
data: Array<Record<string, any>>;
|
|
17
|
+
fields: ChartTransformFields;
|
|
18
|
+
}): Record<string, any>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useChart } from './useChart';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Ref, ShallowRef, ComputedRef } from 'vue';
|
|
2
|
+
import { PropsInstanceType } from '../../../constant';
|
|
3
|
+
|
|
4
|
+
type ChartProps = PropsInstanceType<'bar-chart'> | PropsInstanceType<'line-chart'> | PropsInstanceType<'pie-chart'>;
|
|
5
|
+
export declare function useChart(props: ChartProps, defaultTemplate: string): {
|
|
6
|
+
formItemRef: ShallowRef<null>;
|
|
7
|
+
chartRef: Ref<HTMLDivElement | null>;
|
|
8
|
+
renderError: Ref<string>;
|
|
9
|
+
formItemInstanceProps: ComputedRef<{
|
|
10
|
+
caption: any;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useCounter';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useIframe } from './useIframe';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PropsInstanceType } from '../../../constant';
|
|
2
|
+
import { ComputedRef, ShallowRef } from 'vue';
|
|
3
|
+
|
|
4
|
+
export declare function useIframe(props: PropsInstanceType<'iframe'>): {
|
|
5
|
+
iframeProps: ComputedRef<{
|
|
6
|
+
content: string;
|
|
7
|
+
width: string;
|
|
8
|
+
height: string;
|
|
9
|
+
}>;
|
|
10
|
+
instanceProps: ShallowRef<any>;
|
|
11
|
+
customStyle: ComputedRef<{
|
|
12
|
+
width: string;
|
|
13
|
+
height: string;
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
@@ -24,3 +24,10 @@ export * from './useAttachmentPreview';
|
|
|
24
24
|
export * from './useForceUpdate';
|
|
25
25
|
export * from './useAttachmentPreview';
|
|
26
26
|
export * from './actionBar';
|
|
27
|
+
export * from './counter';
|
|
28
|
+
export * from './slider';
|
|
29
|
+
export * from './switch';
|
|
30
|
+
export * from './qrCode';
|
|
31
|
+
export * from './barcode';
|
|
32
|
+
export * from './iframe';
|
|
33
|
+
export * from './chart';
|
|
@@ -2,5 +2,7 @@ import { Ref } from 'vue';
|
|
|
2
2
|
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
3
3
|
|
|
4
4
|
export default function useIframe(url: string, formVisible: Ref<boolean>, callback?: Fn): {
|
|
5
|
-
handlePostMate: (engine?: Engine) => Promise<
|
|
5
|
+
handlePostMate: (engine?: Engine) => Promise<{
|
|
6
|
+
closeIframe: () => void;
|
|
7
|
+
}>;
|
|
6
8
|
};
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
2
2
|
|
|
3
|
+
/**
|
|
4
|
+
* 嵌套子表:设计器列 field_code(如 num1)与 nest 接口 rows_header(如 num)不一致时,从别名/去尾数字段补值。
|
|
5
|
+
* 同时写入顶层与 data_value_map,保证 valueGetter 与 CellRendererFramework 一致。
|
|
6
|
+
*/
|
|
7
|
+
export declare function applyDetailRowFieldAliasesFromHeaders(rows: any[], headersFlat: any[]): void;
|
|
3
8
|
export declare function useListRows(gridInstance: ControlRuntimeInstance<'grid-table'> | any): {
|
|
4
|
-
getRowsFromResult: (result: any, blListViewData?: any, type?: string) =>
|
|
9
|
+
getRowsFromResult: (result: any, blListViewData?: any, type?: string, headersOverride?: any[]) => {}[];
|
|
5
10
|
};
|
|
@@ -33,6 +33,7 @@ export type fetchTableListParams = {
|
|
|
33
33
|
isFilter?: boolean;
|
|
34
34
|
isSerach?: boolean;
|
|
35
35
|
isPageChange?: boolean;
|
|
36
|
+
isReset?: boolean;
|
|
36
37
|
clear?: boolean;
|
|
37
38
|
isPost?: string;
|
|
38
39
|
isViewSearch?: boolean;
|
|
@@ -45,10 +46,18 @@ export declare function useListViewModel(params: listViewModelParams): {
|
|
|
45
46
|
pageConfig: Ref<{}>;
|
|
46
47
|
symbolIndexList: any;
|
|
47
48
|
listPagination: Ref<any>;
|
|
48
|
-
fetchTableList: ({ paginationInfo, ordersInfo, queryInfo, filtersInfo, isFilter, clear, isPost, isPageChange, isSerach, isViewSearch, }: fetchTableListParams, options?: {
|
|
49
|
+
fetchTableList: ({ paginationInfo, ordersInfo, queryInfo, filtersInfo, isFilter, clear, isPost, isPageChange, isSerach, isReset, isViewSearch, }: fetchTableListParams, options?: {
|
|
49
50
|
token: Number;
|
|
50
51
|
}) => Promise<void>;
|
|
52
|
+
fetchDetailTableList: (props: any) => Promise<{
|
|
53
|
+
rows: {}[];
|
|
54
|
+
total: number;
|
|
55
|
+
}>;
|
|
56
|
+
fetchDrillDownTableList: (props: any) => Promise<{
|
|
57
|
+
rows: {}[];
|
|
58
|
+
total: number;
|
|
59
|
+
}>;
|
|
51
60
|
isShowAgGridFooterStatistics: Ref<boolean>;
|
|
52
61
|
deleteTableRow: (record: Recordable<unknown>, condition?: any) => Promise<void>;
|
|
53
|
-
getNoCountListMaxSize: ({ paginationInfo, ordersInfo, queryInfo, filtersInfo, isFilter, clear, }: fetchTableListParams) => Promise<{} | undefined>;
|
|
62
|
+
getNoCountListMaxSize: ({ paginationInfo, ordersInfo, queryInfo, filtersInfo, isFilter, isReset, clear, }: fetchTableListParams) => Promise<{} | undefined>;
|
|
54
63
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { useQrCode } from './useQrCode';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PropsInstanceType } from '../../../constant';
|
|
2
|
+
import { ShallowRef, Ref, ComputedRef } from 'vue';
|
|
3
|
+
|
|
4
|
+
export declare function useQrCode(props: PropsInstanceType<'qr-code'>): {
|
|
5
|
+
formItemRef: ShallowRef<null>;
|
|
6
|
+
canvasRef: Ref<HTMLCanvasElement | null>;
|
|
7
|
+
renderError: Ref<string>;
|
|
8
|
+
qrDataUrl: Ref<string>;
|
|
9
|
+
formItemInstanceProps: ComputedRef<{
|
|
10
|
+
caption: any;
|
|
11
|
+
}>;
|
|
12
|
+
resolved: ComputedRef<{
|
|
13
|
+
caption: any;
|
|
14
|
+
defaultValue: any;
|
|
15
|
+
qrVersion: any;
|
|
16
|
+
errorCorrectionLevel: any;
|
|
17
|
+
codeMode: any;
|
|
18
|
+
size: any;
|
|
19
|
+
codeMargin: any;
|
|
20
|
+
qrColor: any;
|
|
21
|
+
align: any;
|
|
22
|
+
}>;
|
|
23
|
+
contentValue: ComputedRef<string>;
|
|
24
|
+
alignClass: ComputedRef<string>;
|
|
25
|
+
renderCode: () => Promise<void>;
|
|
26
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useSlider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './useSwitch';
|
|
@@ -7,6 +7,7 @@ export declare function useRokFormEngineModal(engine: Engine | undefined, onClic
|
|
|
7
7
|
formKey: ComputedRef<any>;
|
|
8
8
|
appId: ComputedRef<any>;
|
|
9
9
|
uid: Ref<string | undefined>;
|
|
10
|
+
openType: Ref<"dialog" | "drawer">;
|
|
10
11
|
onEngineSubmitted: (context: Engine, payload: any) => void;
|
|
11
12
|
onEngineMounted: (context: Engine) => void;
|
|
12
13
|
};
|
|
@@ -3,7 +3,7 @@ import { ControlRuntimeInstance } from '@byteluck-fe/model-driven-core-all';
|
|
|
3
3
|
import { Engine } from '@byteluck-fe/model-driven-engine';
|
|
4
4
|
|
|
5
5
|
export declare function useDisplay(params: {
|
|
6
|
-
instance: ControlRuntimeInstance<'select' | 'radio' | 'select-multiple' | 'checkbox' | 'amount' | 'varchar-column'>;
|
|
6
|
+
instance: ControlRuntimeInstance<'select' | 'radio' | 'select-multiple' | 'checkbox' | 'amount' | 'tag' | 'varchar-column'>;
|
|
7
7
|
rowIndex: number | undefined;
|
|
8
8
|
value?: string | string[];
|
|
9
9
|
display?: string | string[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
2
|
+
export declare function getPostAuthHeaders(data: {
|
|
3
|
+
url: string;
|
|
4
|
+
data?: any;
|
|
5
|
+
param?: any;
|
|
6
|
+
}, serverPath?: string, http?: AxiosInstance): {
|
|
7
|
+
'post-auth': any;
|
|
8
|
+
'post-at': string;
|
|
9
|
+
};
|
|
10
|
+
declare function getQueryResult(result: any): any;
|
|
11
|
+
declare function getActionResult(result: any): any;
|
|
12
|
+
export default class {
|
|
13
|
+
private $apiPath;
|
|
14
|
+
constructor(apiPath: string);
|
|
15
|
+
post(url: string, data: any): Promise<any>;
|
|
16
|
+
postFile(url: string, props: any): Promise<any>;
|
|
17
|
+
get(url: string, param: any): Promise<any>;
|
|
18
|
+
}
|
|
19
|
+
export { getQueryResult, getActionResult };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Engine, Plugin } from '@byteluck-fe/model-driven-engine';
|
|
2
2
|
import { ControlRuntimeInstance, ControlsKeys } from '@byteluck-fe/model-driven-core-all';
|
|
3
|
-
import { FetchService } from '../../utils';
|
|
4
3
|
import { RouteLocationRaw, NavigationFailure, RouteLocationNormalizedLoaded, RouteLocation } from 'vue-router';
|
|
5
4
|
|
|
6
5
|
type ActionUtilType = {
|
|
@@ -32,7 +31,7 @@ export declare class ActionUtilsPlugin implements Plugin {
|
|
|
32
31
|
getLocaleText(key: string, replaceObj?: any, defaultVal?: string): string;
|
|
33
32
|
toast(message: string, type?: ToastOptions['type'], show?: ToastOptions['show']): void;
|
|
34
33
|
confirm(title: string, content: any, options?: {}): Promise<unknown>;
|
|
35
|
-
getHttp(path?: string):
|
|
34
|
+
getHttp(path?: string): any;
|
|
36
35
|
setGlobalLoading(isloading?: boolean, color?: string): void;
|
|
37
36
|
getBasePath(): any;
|
|
38
37
|
querySvc(param: {
|
|
@@ -40,7 +39,7 @@ export declare class ActionUtilsPlugin implements Plugin {
|
|
|
40
39
|
svc_code: string;
|
|
41
40
|
field: string;
|
|
42
41
|
query: any;
|
|
43
|
-
}):
|
|
42
|
+
}): any;
|
|
44
43
|
getDisplay(instance: ControlRuntimeInstance<ControlsKeys>, value?: string | string[]): Promise<any>;
|
|
45
44
|
getCacheDisplay(instance: any, value?: string | string[]): Promise<any>;
|
|
46
45
|
batchSetDisplayCache({ dic_map, display_map, }: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Result } from '../../utils/ActionHandle/ActionHandler';
|
|
2
|
+
|
|
3
|
+
type ChartRows = Record<string, any>[];
|
|
4
|
+
type ChartEventPayload = {
|
|
5
|
+
value: ChartRows;
|
|
6
|
+
};
|
|
7
|
+
export declare const getChartEventPayloadFromActionResult: (result?: Pick<Result, 'output'>) => ChartEventPayload[];
|
|
8
|
+
export declare const getChartEventPayloadFromActionResults: (results?: Array<Pick<Result, 'output'>>) => ChartEventPayload[];
|
|
9
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EventCaseHandlerPayload } from './type';
|
|
2
|
-
import { ExecuteActionParams } from '../../utils/ActionHandle';
|
|
2
|
+
import { ExecuteActionParams, ExecuteActionResult } from '../../utils/ActionHandle';
|
|
3
3
|
|
|
4
4
|
export declare function exceutor(payload: EventCaseHandlerPayload): Promise<{
|
|
5
5
|
input: any;
|
|
@@ -7,3 +7,4 @@ export declare function exceutor(payload: EventCaseHandlerPayload): Promise<{
|
|
|
7
7
|
error?: any;
|
|
8
8
|
}>;
|
|
9
9
|
export declare function callActions(payload: ExecuteActionParams): Promise<boolean>;
|
|
10
|
+
export declare function callActionsWithResult(payload: ExecuteActionParams): Promise<ExecuteActionResult>;
|