@byteluck-fe/runtime-engine 3.0.1 → 6.2.1-gdnz-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 +69132 -15406
- 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-date-picker/hook.d.ts +0 -1
- 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 +25 -6
- 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-grid-table/hooks/useRender.d.ts +2 -2
- 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/useLayoutChildren.d.ts +1 -1
- package/dist/src/hooks/components/useMenu.d.ts +1 -1
- package/dist/src/hooks/context/useInstanceSchemaChangeContext.d.ts +1 -4
- 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 +1 -1
- 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/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/model/operateCache.d.ts +1 -1
- package/dist/src/utils/tools/index.d.ts +1 -0
- package/dist/src/utils/tools/loadTinymce.d.ts +1 -0
- package/dist/src/utils/tools/routeParam.d.ts +3 -0
- package/package.json +1 -1
- package/dist/src/constant/controls/props/base/button.d.ts +0 -14
- package/dist/src/constant/controls/props/base/dashboard.d.ts +0 -9
- package/dist/src/constant/controls/props/base/divider.d.ts +0 -9
- package/dist/src/constant/controls/props/base/formSelectButton.d.ts +0 -9
- package/dist/src/constant/controls/props/base/invoiceCheckButton.d.ts +0 -9
- package/dist/src/constant/controls/props/base/link.d.ts +0 -9
- package/dist/src/constant/controls/props/base/listSelectButton.d.ts +0 -9
- package/dist/src/constant/controls/props/base/listViewSelect.d.ts +0 -12
- package/dist/src/constant/controls/props/base/referenceList.d.ts +0 -10
- package/dist/src/constant/controls/props/base/text.d.ts +0 -7
- package/dist/src/constant/controls/props/base/textOcrButton.d.ts +0 -8
- package/dist/src/constant/controls/props/base/title.d.ts +0 -8
- package/dist/src/constant/controls/props/column/approvalStatusColumn.d.ts +0 -12
- package/dist/src/constant/controls/props/column/arrayColumn.d.ts +0 -12
- package/dist/src/constant/controls/props/column/autoNumberColumn.d.ts +0 -10
- package/dist/src/constant/controls/props/column/customColumn.d.ts +0 -11
- package/dist/src/constant/controls/props/column/decimalColumn.d.ts +0 -11
- package/dist/src/constant/controls/props/column/departmentColumn.d.ts +0 -12
- package/dist/src/constant/controls/props/column/employeeColumn.d.ts +0 -12
- package/dist/src/constant/controls/props/column/fileColumn.d.ts +0 -12
- package/dist/src/constant/controls/props/column/imageColumn.d.ts +0 -12
- package/dist/src/constant/controls/props/column/locationColumn.d.ts +0 -10
- package/dist/src/constant/controls/props/column/peopleColumn.d.ts +0 -12
- package/dist/src/constant/controls/props/column/timestampColumn.d.ts +0 -10
- package/dist/src/constant/controls/props/defaultProps.d.ts +0 -24
- package/dist/src/constant/controls/props/form/address.d.ts +0 -8
- package/dist/src/constant/controls/props/form/amount.d.ts +0 -8
- package/dist/src/constant/controls/props/form/attachment.d.ts +0 -8
- package/dist/src/constant/controls/props/form/autoNumber.d.ts +0 -11
- package/dist/src/constant/controls/props/form/calc.d.ts +0 -8
- package/dist/src/constant/controls/props/form/checkbox.d.ts +0 -8
- package/dist/src/constant/controls/props/form/dataView.d.ts +0 -12
- package/dist/src/constant/controls/props/form/datePicker.d.ts +0 -8
- package/dist/src/constant/controls/props/form/dateRange.d.ts +0 -8
- package/dist/src/constant/controls/props/form/department.d.ts +0 -12
- package/dist/src/constant/controls/props/form/department2.d.ts +0 -11
- package/dist/src/constant/controls/props/form/electronicSignature.d.ts +0 -7
- package/dist/src/constant/controls/props/form/employee.d.ts +0 -11
- package/dist/src/constant/controls/props/form/employee2.d.ts +0 -12
- package/dist/src/constant/controls/props/form/image.d.ts +0 -7
- package/dist/src/constant/controls/props/form/input.d.ts +0 -11
- package/dist/src/constant/controls/props/form/number.d.ts +0 -8
- package/dist/src/constant/controls/props/form/organizationSelection.d.ts +0 -11
- package/dist/src/constant/controls/props/form/radio.d.ts +0 -8
- package/dist/src/constant/controls/props/form/richText.d.ts +0 -11
- package/dist/src/constant/controls/props/form/score.d.ts +0 -8
- package/dist/src/constant/controls/props/form/searchDateRange.d.ts +0 -8
- package/dist/src/constant/controls/props/form/searchInput.d.ts +0 -9
- package/dist/src/constant/controls/props/form/searchNumberRange.d.ts +0 -8
- package/dist/src/constant/controls/props/form/select.d.ts +0 -8
- package/dist/src/constant/controls/props/form/selectMultiple.d.ts +0 -11
- package/dist/src/constant/controls/props/form/selectRelation.d.ts +0 -8
- package/dist/src/constant/controls/props/form/textarea.d.ts +0 -8
- package/dist/src/constant/controls/props/form/tree.d.ts +0 -10
- package/dist/src/constant/controls/props/form/vueFormItem.d.ts +0 -8
- package/dist/src/constant/controls/props/form/vuePage.d.ts +0 -8
- package/dist/src/constant/controls/props/form/wps.d.ts +0 -7
- package/dist/src/constant/controls/props/layout/actionBar.d.ts +0 -11
- package/dist/src/constant/controls/props/layout/cardGroup.d.ts +0 -10
- package/dist/src/constant/controls/props/layout/col.d.ts +0 -10
- package/dist/src/constant/controls/props/layout/grid.d.ts +0 -10
- package/dist/src/constant/controls/props/layout/gridLayoutContainer.d.ts +0 -10
- package/dist/src/constant/controls/props/layout/gridLayoutWrap.d.ts +0 -10
- package/dist/src/constant/controls/props/layout/gridRow.d.ts +0 -11
- package/dist/src/constant/controls/props/layout/row.d.ts +0 -10
- package/dist/src/constant/controls/props/layout/simpleSearch.d.ts +0 -13
- package/dist/src/constant/controls/props/layout/step.d.ts +0 -7
- package/dist/src/constant/controls/props/layout/stepPane.d.ts +0 -7
- package/dist/src/constant/controls/props/layout/tab.d.ts +0 -7
- package/dist/src/constant/controls/props/list/subtable.d.ts +0 -11
- package/dist/src/constant/controls/props/renderEngine.d.ts +0 -63
- package/dist/src/entry_mobile/controls/rok-subtable/hooks/useSubtableList.d.ts +0 -120
- package/dist/src/hooks/controls/subtable/useSubtableInstanceSchemaChange.d.ts +0 -66
|
@@ -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,7 +1,19 @@
|
|
|
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
|
|
|
5
|
+
/**
|
|
6
|
+
* 扩展 ColDef 类型,支持合并表头的 children 属性
|
|
7
|
+
*/
|
|
8
|
+
interface ExtendedColDef extends ColDef {
|
|
9
|
+
children?: ExtendedColDef[];
|
|
10
|
+
}
|
|
11
|
+
type ColumnBuildOptions = {
|
|
12
|
+
headers?: any[];
|
|
13
|
+
isDetail?: boolean;
|
|
14
|
+
detailKind?: 'masterDetail' | 'drillDown';
|
|
15
|
+
listViewProps?: any;
|
|
16
|
+
};
|
|
5
17
|
export declare function useColumns(params: {
|
|
6
18
|
instance: ControlRuntimeInstance<'grid-table'> | ComputedRef<ControlRuntimeInstance<'grid-table'>>;
|
|
7
19
|
isShowSelection?: ComputedRef<boolean>;
|
|
@@ -10,26 +22,33 @@ export declare function useColumns(params: {
|
|
|
10
22
|
isShowJoinRelation?: boolean;
|
|
11
23
|
isMuitiSelection?: ComputedRef<boolean>;
|
|
12
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>;
|
|
13
33
|
}): {
|
|
14
34
|
columns: ShallowRef<ColDef<any, any>[]>;
|
|
15
35
|
detailCellRendererParams: Ref<any>;
|
|
16
36
|
operationbtns: any;
|
|
17
37
|
onColumnsMounted: () => void;
|
|
18
38
|
onDragStopped: (params: DragStoppedEvent) => void;
|
|
19
|
-
handleSortsColumns: (viewColumns:
|
|
39
|
+
handleSortsColumns: (viewColumns: ExtendedColDef[], customConfig?: typing.ListHeaderConfigVo[]) => ExtendedColDef[];
|
|
20
40
|
isViewShowColumns: (item: ColDef) => any;
|
|
21
41
|
onColumnResized: (event: ColumnResizedEvent) => void;
|
|
22
42
|
onSetColumnVisible: (hideKeys: string[], type?: 'reset' | 'resetVisible') => void;
|
|
23
43
|
viewConfigs: ComputedRef<ViewConfigType>;
|
|
24
44
|
customColumns: ShallowRef<any>;
|
|
25
45
|
fullColumns: any[];
|
|
26
|
-
getColumns: (viewFieldCode?: string[], type?: 'reset', options?:
|
|
27
|
-
headers: any[];
|
|
28
|
-
isDetail: boolean;
|
|
29
|
-
} | undefined) => Promise<void>;
|
|
46
|
+
getColumns: (viewFieldCode?: string[], type?: 'reset', options?: ColumnBuildOptions) => Promise<ColDef<any, any>[] | undefined>;
|
|
30
47
|
groupDefaultExpanded: ComputedRef<0 | -1>;
|
|
31
48
|
autoGroupColumnDef: ComputedRef<any>;
|
|
32
49
|
isTreeData: ComputedRef<boolean | undefined>;
|
|
33
50
|
isShowTreeGroupStatisticsBtn: ComputedRef<boolean | undefined>;
|
|
34
51
|
isMasterDetail: ComputedRef<boolean>;
|
|
52
|
+
isAgDetail: ComputedRef<boolean>;
|
|
35
53
|
};
|
|
54
|
+
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
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ControlRuntimeInstance,
|
|
1
|
+
import { ControlRuntimeInstance, RuntimeColumnControl } from '@byteluck-fe/model-driven-core-all';
|
|
2
2
|
|
|
3
|
-
export declare function useColumns(
|
|
3
|
+
export declare function useColumns(instance: ControlRuntimeInstance<'grid-table'>): RuntimeColumnControl[];
|
|
@@ -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>;
|
|
@@ -3,7 +3,7 @@ import { ShallowRef, Ref, ComputedRef } from 'vue';
|
|
|
3
3
|
import { IfAny } from '@vue/shared';
|
|
4
4
|
|
|
5
5
|
export declare function useLayoutChildren<T extends RuntimeLayoutControl | RuntimeListControl>(instance: T): ShallowRef<never[]> | ( Ref<any> extends T["children"] ? T["children"] extends infer T_1 ? T_1 extends T["children"] ? T_1 extends T_1 & Ref<any> ? IfAny<T_1, ShallowRef<T_1>, T_1> : ShallowRef<T_1> : never : never : ShallowRef<T["children"]>);
|
|
6
|
-
export declare function useListHeader<T extends RuntimeListControl>(
|
|
6
|
+
export declare function useListHeader<T extends RuntimeListControl>(instance: T): {
|
|
7
7
|
headers: Ref<any> extends T["props"]["headers"] ? T["props"]["headers"] extends infer T_1 ? T_1 extends T["props"]["headers"] ? T_1 extends T_1 & Ref<any> ? IfAny<T_1, ShallowRef<T_1>, T_1> : ShallowRef<T_1> : never : never : ShallowRef<T["props"]["headers"]>;
|
|
8
8
|
operationBtns: ComputedRef<any>;
|
|
9
9
|
};
|
|
@@ -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;
|
|
@@ -4,8 +4,5 @@ import { Engine, SchemaEventPayload } from '@byteluck-fe/model-driven-engine';
|
|
|
4
4
|
import { ShallowRef } from 'vue';
|
|
5
5
|
|
|
6
6
|
export declare function initInstanceSchemaChangeContext(engine: Engine): Mitt;
|
|
7
|
-
export declare function useInstanceSchemaChangeProps<T extends RuntimeControl>(
|
|
8
|
-
instance: T;
|
|
9
|
-
rowIndex?: number;
|
|
10
|
-
}): ShallowRef<T['props']>;
|
|
7
|
+
export declare function useInstanceSchemaChangeProps<T extends RuntimeControl>(instance: T, rowIndex?: number): ShallowRef<T['props']>;
|
|
11
8
|
export declare function useInstanceSchemaChangePropsCallBack<T extends RuntimeControl>(callBack: (props: SchemaEventPayload) => void, instance: T, rowIndex?: number): void;
|
|
@@ -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 };
|