@aplus-frontend/ui 7.12.3 → 7.12.5
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/es/src/ag-grid/editable/form-item.vue.d.ts +4 -2
- package/es/src/ag-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ag-grid/index.vue.d.ts +4 -2
- package/es/src/ag-grid/index.vue.mjs +33 -31
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +2 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/items/number/index.vue.d.ts +3 -2
- package/es/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/es/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/es/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/es/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/es/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/es/src/ap-grid/index.vue.d.ts +4 -2
- package/es/src/ap-list/index.vue.d.ts +4 -2
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-table/ap-table.vue.d.ts +4 -2
- package/es/src/ap-table/constants.d.ts +6 -6
- package/es/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/es/src/business/ap-select-layout/index.d.ts +4 -2
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/es/src/business/ap-table-modal/index.d.ts +5 -17
- package/es/src/business/ap-upload/apUpload.vue.d.ts +19 -0
- package/es/src/business/ap-upload/apUpload.vue.mjs +38 -30
- package/es/src/business/ap-upload/apUploadTypes.d.ts +9 -0
- package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +101 -101
- package/es/src/business/ap-value-select-card/index.vue.d.ts +4 -2
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +4 -3
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/es/src/business/batch-input-group/index.vue.mjs +67 -72
- package/es/src/business/batch-input-group/interface.d.ts +3 -0
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +65 -43
- package/es/src/business/batch-input-group/style/index.mjs +9 -9
- package/es/src/check-card/style/index.mjs +1 -1
- package/es/src/config-provider/config-provider.mjs +33 -32
- package/es/src/config-provider/hooks/use-global-config.mjs +40 -37
- package/es/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/es/src/editable-table/form-item.vue.d.ts +4 -2
- package/es/src/editable-table/index.vue.d.ts +4 -2
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/utils/cssinjs/utils.d.ts +1 -0
- package/es/src/utils/cssinjs/utils.mjs +9 -9
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ag-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ag-grid/index.vue.d.ts +4 -2
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +2 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/items/number/index.vue.d.ts +3 -2
- package/lib/src/ap-form/items/select/index.vue.d.ts +6 -6
- package/lib/src/ap-form/modal-form/index.vue.d.ts +4 -3
- package/lib/src/ap-form/search-form/index.vue.d.ts +4 -3
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +4 -2
- package/lib/src/ap-grid/editable/index.vue.d.ts +4 -2
- package/lib/src/ap-grid/index.vue.d.ts +4 -2
- package/lib/src/ap-list/index.vue.d.ts +4 -2
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +4 -2
- package/lib/src/ap-table/constants.d.ts +6 -6
- package/lib/src/ap-table/hooks/use-table-column-state.d.ts +4 -4
- package/lib/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/lib/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/lib/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +4 -2
- package/lib/src/business/ap-select-layout/index.d.ts +4 -2
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +4 -2
- package/lib/src/business/ap-table-modal/index.d.ts +5 -17
- package/lib/src/business/ap-upload/apUpload.vue.d.ts +19 -0
- package/lib/src/business/ap-upload/apUpload.vue.js +1 -1
- package/lib/src/business/ap-upload/apUploadTypes.d.ts +9 -0
- package/lib/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/lib/src/business/ap-upload/components/MultipleFile.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue.d.ts +4 -2
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +4 -3
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +3 -2
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/interface.d.ts +3 -0
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +3 -3
- package/lib/src/business/batch-input-group/style/index.js +1 -1
- package/lib/src/check-card/style/index.js +1 -1
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.js +1 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +1 -5
- package/lib/src/editable-table/form-item.vue.d.ts +4 -2
- package/lib/src/editable-table/index.vue.d.ts +4 -2
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/utils/cssinjs/utils.d.ts +1 -0
- package/lib/src/utils/cssinjs/utils.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EditableColumnType, EditableTableFormItemExpose, EditableTableFormItemProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
3
3
|
declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
4
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableTableFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
5
5
|
expose(exposed: ShallowUnwrapRef<EditableTableFormItemExpose>): void;
|
|
@@ -36,7 +36,9 @@ declare const _default: <RecordType = any>(__VLS_props: NonNullable<Awaited<type
|
|
|
36
36
|
}) => void;
|
|
37
37
|
};
|
|
38
38
|
emit: {};
|
|
39
|
-
}>) => VNode
|
|
39
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}> & {
|
|
40
42
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
41
43
|
};
|
|
42
44
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Recordable } from '../type';
|
|
2
2
|
import { EditableTableProps, EditableColumnType, EditableTableExpose } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -39,7 +39,9 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
39
39
|
}) => void;
|
|
40
40
|
};
|
|
41
41
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
42
|
-
}>) => VNode
|
|
42
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
43
|
+
[key: string]: any;
|
|
44
|
+
}> & {
|
|
43
45
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
44
46
|
};
|
|
45
47
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ScrollBarDirection, InternalScrollBarProps } from '../scroll-bar';
|
|
1
|
+
import { ScrollBarDirection, InternalScrollBarProps, ColorType } from '../scroll-bar';
|
|
2
2
|
import { ScrollOptions, ScrollViewProps } from './interface';
|
|
3
3
|
import { CreateComponentPublicInstanceWithMixins, Ref, ShallowRef, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent, ComputedRef } from 'vue';
|
|
4
4
|
declare function scroll(x?: number, y?: number): void;
|
|
@@ -106,8 +106,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
|
106
106
|
onScroll?: ((percent: number) => void) | undefined;
|
|
107
107
|
disabled?: boolean | undefined;
|
|
108
108
|
trackSpeed?: number | undefined;
|
|
109
|
-
barColor?:
|
|
110
|
-
trackColor?:
|
|
109
|
+
barColor?: ColorType;
|
|
110
|
+
trackColor?: ColorType;
|
|
111
111
|
trackWidth?: number | undefined;
|
|
112
112
|
showTrack?: boolean | undefined;
|
|
113
113
|
onScrollStart?: ((percent: number) => void) | undefined;
|
|
@@ -118,8 +118,8 @@ declare const __VLS_component: DefineComponent<ScrollViewProps, {
|
|
|
118
118
|
onScroll?: ((percent: number) => void) | undefined;
|
|
119
119
|
disabled?: boolean | undefined;
|
|
120
120
|
trackSpeed?: number | undefined;
|
|
121
|
-
barColor?:
|
|
122
|
-
trackColor?:
|
|
121
|
+
barColor?: ColorType;
|
|
122
|
+
trackColor?: ColorType;
|
|
123
123
|
trackWidth?: number | undefined;
|
|
124
124
|
showTrack?: boolean | undefined;
|
|
125
125
|
onScrollStart?: ((percent: number) => void) | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
2
|
export declare const Wrapper: DefineComponent<{
|
|
3
|
-
uiMode?: "admin" | "aplus" | undefined;
|
|
4
|
-
lang?: "en" | "zh-cn" | undefined;
|
|
3
|
+
uiMode?: ("admin" | "aplus") | undefined;
|
|
4
|
+
lang?: ("en" | "zh-cn") | undefined;
|
|
5
5
|
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
6
|
-
uiMode?: "admin" | "aplus" | undefined;
|
|
7
|
-
lang?: "en" | "zh-cn" | undefined;
|
|
6
|
+
uiMode?: ("admin" | "aplus") | undefined;
|
|
7
|
+
lang?: ("en" | "zh-cn") | undefined;
|
|
8
8
|
}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
export type GeneraterOption = {
|
|
3
3
|
skipUnit: string[];
|
|
4
|
+
uniqueId?: boolean;
|
|
4
5
|
};
|
|
5
6
|
export declare function generateCssVar(token: any, option?: GeneraterOption): Recordable;
|
|
6
7
|
export declare function camelToKebab(str: string): string;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
return Object.entries(e).reduce((
|
|
5
|
-
const
|
|
6
|
-
return
|
|
1
|
+
const a = ["lineClamp"];
|
|
2
|
+
function d(e, i) {
|
|
3
|
+
const r = [...a, ...i?.skipUnit || []], c = Math.random().toString(36).slice(2);
|
|
4
|
+
return Object.entries(e).reduce((n, [u, t]) => {
|
|
5
|
+
const s = typeof t == "number" && !r.includes(u) ? `${t}px` : t;
|
|
6
|
+
return n[o(u)] = s, i?.uniqueId && (n["--unique-id"] = c), n;
|
|
7
7
|
}, {});
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function o(e) {
|
|
10
10
|
return "--" + e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase();
|
|
11
11
|
}
|
|
12
12
|
export {
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
o as camelToKebab,
|
|
14
|
+
d as generateCssVar
|
|
15
15
|
};
|
package/es/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.12.
|
|
1
|
+
declare const _default: "7.12.5";
|
|
2
2
|
export default _default;
|
package/es/src/version.mjs
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
import { EditableAgGridFormItemExpose, EditableAgGridFormItemProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableAgGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<EditableAgGridFormItemExpose<RecordType>>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
10
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}> & {
|
|
11
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
12
14
|
};
|
|
13
15
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
import { EditableAgGridExpose, EditableAgGridProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9,7 +9,9 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
11
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
12
|
-
}>) => VNode
|
|
12
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}> & {
|
|
13
15
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
16
|
};
|
|
15
17
|
export default _default;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Recordable } from '../type';
|
|
2
2
|
import { AgGridExpose, AgGridProps, AgGridSlots } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & AgGridProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<AgGridExpose>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<AgGridSlots<RecordType>> & AgGridSlots<RecordType>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
10
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}> & {
|
|
11
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
12
14
|
};
|
|
13
15
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Q=require("@ag-grid-community/locale"),X=require("@aplus-frontend/antdv"),Ze=require("@aplus-frontend/antdv/es/theme/internal"),l=require("ag-grid-community"),eo=require("ag-grid-vue3"),d=require("lodash-unified"),F=require("../ap-grid/constants.js"),oo=require("../ap-table/context.js"),to=require("../ap-table/hooks/use-table-paging-ng.js"),ro=require("../ap-table/utils.js");require("../config-provider/index.js");require("../utils/index.js");const no=require("../utils/slot.js"),lo=require("../ap-form/index.js");require("./components/empty/index.vue.js");require("./components/row/index.vue.js");const ao=require("./context.js"),so=require("./hooks/use-columns.js"),uo=require("./hooks/use-columns-def.js"),io=require("./hooks/use-pinned-row.js"),co=require("./hooks/use-row-selection.js"),fo=require("./hooks/use-search-form.js"),po=require("./hooks/use-selection-col-def.js"),mo=require("./hooks/use-virtual-config.js"),go=require("./style/index.js"),wo=require("./theme.js"),So=require("./utils.js"),Co=require("../config-provider/hooks/use-namespace.js"),ho=require("../config-provider/hooks/use-locale.js"),yo=require("../config-provider/hooks/use-global-config.js"),Ro=require("../utils/is.js"),vo=require("./components/row/index.vue2.js"),bo=require("./components/empty/index.vue2.js"),ko=e.defineComponent({name:"AgGrid",__name:"index",props:{dropdownPrefixCls:{},bordered:{type:Boolean},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{},showSorterTooltip:{type:[Boolean,Object]},prefixCls:{},rowKey:{type:[String,Function],default:"key"},tableLayout:{},title:{},id:{},showHeader:{type:Boolean},components:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean]},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean},indentSize:{},expandIconColumnIndex:{},showExpandColumn:{type:Boolean},expandedRowClassName:{},childrenColumnName:{},rowExpandable:{},transformCellText:{},rowHoverable:{type:Boolean},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean},params:{},request:{},defaultData:{},dataSource:{},onLoadingChange:{},onShownColumnsChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},wrapperStyle:{},tableStyle:{},manual:{type:Boolean,default:void 0},size:{default:"mini"},adaptive:{type:Boolean},columnResizable:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},summary:{},rowHeight:{},getRowHeight:{},advanceRenderer:{type:Boolean},browserTooltips:{type:Boolean},virtual:{type:[Boolean,Object],default:void 0},onRowClicked:{},onScrollEnd:{},rowClassName:{},rowClassRules:{},autoHeight:{type:Boolean},onUpdate:{},customRow:{},theme:{}},setup(Y,{expose:Z}){const ee={"zh-cn":Q.AG_GRID_LOCALE_CN,en:Q.AG_GRID_LOCALE_EN};l.ModuleRegistry.registerModules([l.ValidationModule,l.ColumnAutoSizeModule,l.PinnedRowModule,l.RowAutoHeightModule,l.RowStyleModule,l.CellSpanModule,l.CellStyleModule,l.TooltipModule,l.RowSelectionModule,l.LocaleModule,l.ValueCacheModule,l.GridStateModule,l.ColumnApiModule,l.RowApiModule,l.CellApiModule,l.RenderApiModule,l.EventApiModule,l.ScrollApiModule,l.ClientSideRowModelApiModule,l.ClientSideRowModelModule]);const t=Y,T=e.useSlots(),{e:b,b:c,be:oe}=Co.useNamespace("ag-grid"),{lang:A}=ho.useLocale(),te=go.default("ag-grid"),h=e.ref(t.size),re=wo.useTheme(h,e.toRef(t,"rowHeight"),e.toRef(t,"theme")),ne=mo.default(e.toRef(t,"virtual")),{rowPinnedGridConfig:D,getRowPinnedCellClass:le}=io.usePinnedRow(e.toRef(t,"summary")),ae=yo.useGlobalConfig("apGrid"),s=e.ref(),[,se]=Ze.useToken();let y=!!t.dataSource;const z=fo.useSearchForm(t),{shownColumns:w,columns:V,columnKeys:ue,getTargetColumnByKey:ie}=so.useColumns(t),{defaultColDef:ce,columnDefs:de,gridWrapperRef:fe}=uo.useColumnsDef(V,t,le),k=e.ref({});ao.useProvideSorter({sorter:k,setSorter(o){k.value=o}});const pe={asc:"ascend",desc:"descend"};function me(){const o=s.value.getColumns()?.filter(f=>f.getSort()!==void 0),r=e.unref(k)||{};let n=o?.[0];const u=Object.keys(r);if(u.length&&u.every(f=>r[f]===null)){const f=Object.keys(r)[0];f&&(n=s.value?.getColumn(f))}if(!n)return;const i=n.getColDef(),m=n.getSort(),g=ie(i.colId);_(void 0,void 0,{column:i,field:g?.field??i.field??i.colId,order:m?pe[m]:null})}const ge=e.computed(()=>ro.recursionApColumns(e.unref(w),o=>{if(o.sorter===!0)return o.field??o.dataIndex??o.key}).filter(Boolean)),we=()=>{k.value={};const o=s.value;if(!o)return;const r=o.getColumnState()?.map(n=>({...n,sort:null}));o.applyColumnState({state:r})},x=e.ref(!0),Se=e.computed(()=>Ro.isDef(t.manual)?t.manual:no.getValidVNodeList(T.searchFormExtra?.()||[]).some(r=>r.type?.name==="ApView")),{formRef:S,submit:M,reset:q,data:p,tableProps:P,handleTableChangeOptional:_,submitWith:K,refresh:O,getPaging:Ce,setPaging:he,setDataSource:ye,getLastParams:Re}=to.useTablePaging({async request(o){if(y=!1,C.value&&!C.value.preserveSelectedRowKeys&&d.isUndefined(t.dataSource)&&!x.value&&E(),x.value&&(x.value=!1),!d.isUndefined(t.dataSource)){const n=o.pageSize*(o.current-1);return{data:(t.pagination===!1?t.dataSource:t.dataSource.slice(n,n+o.pageSize))||[],total:t.dataSource.length||0}}const r=await t.request?.(o);return{data:r?.data||[],total:r?.total||0}},namespace:"ap-grid",filterFields:e.ref([]),params:e.toRef(t,"params"),defaultData:t.defaultData,manual:e.unref(Se),formatParams:t.beforeSearchSubmit,pagination:t.pagination,sortFields:ge,onClickReset:we}),C=e.computed(()=>{const o=t.rowSelection||ae.value?.rowSelection;if(o)return o===!0?F.DEFAULT_ROW_SELECTION_CONFIG:{...F.DEFAULT_ROW_SELECTION_CONFIG,...o}}),ve=po.default(t,w),be=e.computed(()=>d.isUndefined(t.dataSource)?p.records:t.dataSource),{select:ke,unSelect:Be,selectedRows:N,selectedRowKeys:Fe,clearAll:xe,selectMultiByKeys:Me,selectMulti:qe,unSelectMulti:Ne}=co.default({...C.value,dataSource:be,rowKey:t.rowKey}),Ie={checkbox:"multiRow",radio:"singleRow"},Ee=e.computed(()=>{const o=C.value;if(!o)return;const{type:r="checkbox",disabled:n}=o;return{mode:Ie[r],isRowSelectable:u=>n?!n(u.data):!0,hideDisabledCheckboxes:o.hideDisabled??!1}});function I(o){return d.isFunction(t.rowKey)?t.rowKey(o):o[t.rowKey]}const B=({api:o=s.value})=>{if(t.onUpdate?.(),!C.value)return;const r=N.value||[];y=!1;const n=[];o.forEachNode(u=>{const R=u.data,i=I(R),m=u.isSelected();r.find(g=>I(g)===i)?!m&&n.push(u):m&&u.setSelected(!1)}),o.setNodesSelected({nodes:n,newValue:!0}),setTimeout(()=>{y=!0},0)},Te=o=>{y&&(o.node.isSelected()?ke(o.data):Be(o.data),d.isFunction(C.value?.tooltip)&&o.api.refreshCells({rowNodes:[o.node],columns:["ag-Grid-SelectionColumn"],force:!0}))},Ae=()=>{y=!0},E=()=>{xe(),s.value?.deselectAll()};function De(o){Me(o),e.nextTick(()=>{B({})})}const ze=e.computed(()=>{const o=t.customRow;return o?{isFullWidthRow:o.isCustomRow,fullWidthCellRenderer:vo.default,fullWidthCellRendererParams:{render:o.render}}:{}});function Ve(o){qe(o),e.nextTick(()=>{B({})})}function Pe(o){Ne(o),e.nextTick(()=>{B({})})}function G(o=!1){const r=o?"getFieldsValueTransformed":"getFieldsValue";return S.value?.apForm?.[r]?.(!0)}function L(o){S.value?.apForm?.setFieldsValue?.(o)}function W(){return S.value?.getSorterItems()||[]}function U(o){S.value?.setSorterItems(o)}function H(){S.value?.resetSorterItems()}function j(o){return o&&String(o)}function _e(o){const r=s.value;if(!r)return;const n=r.getColumnState()||[],u=o.map(a=>a.key?String(a.key):a.key).filter(Boolean),R=n.map(a=>{if(!ue.value.includes(a.colId))return a;const v=!u.includes(a.colId),$={...a,hide:v},J=o.find(Ye=>j(Ye.key)===a.colId);return J&&($.pinned=J.fixed||null),$}),i=new Map(o.map((a,v)=>[j(a.key),v])),m=R.filter(a=>i.has(a.colId)).sort((a,v)=>i.get(a.colId)-i.get(v.colId)),g=[];let f=0;for(const a of R)i.has(a.colId)?g.push(m[f++]):g.push(a);r.applyColumnState({state:g,applyOrder:!0})}oo.useProvideApTable({columns:e.computed(()=>w.value),columnsBackup:e.computed(()=>V.value),size:e.computed(()=>F.sizeMap[h.value]),updateColumns(o){w.value=o,t.onShownColumnsChange?.(o),_e(o)},updateSize(o){h.value=F.sizeReverseMap[o]},renderConfig:e.computed(()=>({className:oe("table-header","title"),color:se.value.colorTextTertiary})),dataSource:e.computed(()=>e.unref(p).records),getSearchFormValues:G,setSearchFormValues:L,submit:M,submitWith:K,reset:q,refresh:O,getSearchFormSorterItems:W,setSearchFormSorterItems:U,resetSearchFormSorterItems:H,getLastParams:Re});const Ke=e.computed(()=>d.isUndefined(t.loading)?p.loading:t.loading),Oe=e.computed(()=>[c(),t.card?null:c("wrapper"),c("adaptive"),c(`size-${h.value}`),t.autoHeight&&p.records.length?c("auto-height"):null,te.value].filter(Boolean)),Ge=e.computed(()=>({height:"100%",...t.tableStyle||{}})),Le=(o,r)=>{_({current:o,pageSize:r})};function We(o){const r=o.data;return I(r)}function Ue(o,r){(d.isFunction(o)?s.value?.ensureNodeVisible:s.value?.ensureIndexVisible)?.(o,r)}function He(o,r){s.value?.ensureColumnVisible(o,r)}function je(o){t.onRowClicked?.(o.data,o.event)}function $e(o){t.onScrollEnd?.(o.direction)}function Je(o){return s.value?.refreshCells(o)}function Qe(o){return s.value?.redrawRows(o)}const Xe=o=>{const r=[D.value.getRowClass?.(o)];if(!o.node.rowPinned){const n=d.isFunction(t.rowClassName)?t.rowClassName(o.data,o.rowIndex):t.rowClassName;r.push(n)}return r.flat().filter(Boolean)};return e.watch(()=>t.dataSource,o=>{ye(o)},{immediate:!0,deep:!0}),e.watch(()=>t.size,o=>{h.value=o}),e.watch(()=>e.unref(p).loading,o=>{t.onLoadingChange?.(o)}),Z({submit:M,reset:q,refresh:O,submitWith:K,setSearchFormValues:L,getSearchFormValues:G,getShowColumns:()=>e.unref(w),rowSelection:{selectedRows:e.computed(()=>N.value),setSelectedRowKeys:De,setSelectedRows:Ve,clearAll:E,unSelectRows:Pe},scrollToRow:Ue,scrollToColumn:He,getDataSource:()=>e.unref(p.records),getPaging:Ce,setPaging:he,getSearchFormSorterItems:W,setSearchFormSorterItems:U,resetSearchFormSorterItems:H,refreshCells:Je,redrawRows:Qe,_internalGridApi:e.computed(()=>s.value)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(Oe.value),style:e.normalizeStyle(o.wrapperStyle)},[e.unref(d.isUndefined)(o.dataSource)&&o.searchForm!==!1&&e.unref(z).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.card?e.unref(b)("search-wrapper"):null),style:e.normalizeStyle(o.searchFormWrapperStyle)},[e.createVNode(e.unref(lo.ApForm).SearchForm,e.mergeProps(o.searchForm||{},{ref_key:"formRef",ref:S,"custom-reset":"","submit-loading":e.unref(P).loading,onSubmit:e.unref(M),onReset:e.unref(q)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(z),n=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderNode),{key:n.dataIndex}))),128))]),_:2},[T.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(b)("table-wrapper"),o.card?e.unref(b)("table-wrapper-card"):null]),style:e.normalizeStyle(o.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("header-wrapper"))},[e.renderSlot(o.$slots,"title",{selectedRows:e.unref(N),selectedRowKeys:e.unref(Fe),shownColumns:e.unref(w),clearAll:E})],2),e.createElementVNode("div",{ref_key:"gridWrapperRef",ref:fe,class:e.normalizeClass(e.unref(c)("grid-wrapper"))},[(e.openBlock(),e.createBlock(e.unref(eo.AgGridVue),e.mergeProps(e.unref(So.mergeProps)(e.unref(ne),e.unref(D),ze.value),{key:e.unref(A),"get-row-class":Xe,style:Ge.value,"row-data":e.unref(p).records,"column-defs":e.unref(de),"default-col-def":e.unref(ce),"suppress-loading-overlay":"","row-selection":Ee.value,"selection-column-def":e.unref(ve),"get-row-id":We,"get-row-height":t.getRowHeight,theme:e.unref(re),"tooltip-show-delay":500,"enable-browser-tooltips":o.browserTooltips,"tooltip-interaction":"","row-class-rules":o.rowClassRules,"no-rows-overlay-component":bo.default,"suppress-cell-focus":"","enable-cell-span":"","dom-layout":o.autoHeight?"autoHeight":"normal","locale-text":ee[e.unref(A)],onSortChanged:me,onGridReady:r[0]||(r[0]=n=>s.value=n.api),onRowDataUpdated:B,onRowSelected:Te,onFirstDataRendered:Ae,onRowClicked:je,onBodyScrollEnd:$e}),null,16,["style","row-data","column-defs","default-col-def","row-selection","selection-column-def","get-row-height","theme","enable-browser-tooltips","row-class-rules","dom-layout","locale-text"])),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(b)("table-loading-wrapper"))},[e.createVNode(e.unref(X.Spin),{delay:300})],2),[[e.vShow,Ke.value]])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("pagination-wrapper"))},[o.pagination!==!1?(e.openBlock(),e.createBlock(e.unref(X.Pagination),e.mergeProps({key:0,class:e.unref(c)("pagination")},e.unref(P).pagination,{onChange:Le}),null,16,["class"])):e.createCommentVNode("",!0)],2)],6)],6))}});exports.default=ko;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Q=require("@ag-grid-community/locale"),X=require("@aplus-frontend/antdv"),Ze=require("@aplus-frontend/antdv/es/theme/internal"),l=require("ag-grid-community"),eo=require("ag-grid-vue3"),d=require("lodash-unified"),F=require("../ap-grid/constants.js"),oo=require("../ap-table/context.js"),to=require("../ap-table/hooks/use-table-paging-ng.js"),ro=require("../ap-table/utils.js");require("../config-provider/index.js");require("../utils/index.js");const no=require("../utils/slot.js"),lo=require("../ap-form/index.js");require("./components/empty/index.vue.js");require("./components/row/index.vue.js");const ao=require("./context.js"),so=require("./hooks/use-columns.js"),uo=require("./hooks/use-columns-def.js"),io=require("./hooks/use-pinned-row.js"),co=require("./hooks/use-row-selection.js"),fo=require("./hooks/use-search-form.js"),po=require("./hooks/use-selection-col-def.js"),mo=require("./hooks/use-virtual-config.js"),go=require("./style/index.js"),wo=require("./theme.js"),So=require("./utils.js"),Co=require("../config-provider/hooks/use-namespace.js"),ho=require("../config-provider/hooks/use-locale.js"),yo=require("../config-provider/hooks/use-global-config.js"),Ro=require("../utils/is.js"),vo=require("./components/row/index.vue2.js"),bo=require("./components/empty/index.vue2.js"),ko=e.defineComponent({name:"AgGrid",__name:"index",props:{dropdownPrefixCls:{},bordered:{type:Boolean},locale:{},onChange:{},onResizeColumn:{},getPopupContainer:{},scroll:{},sortDirections:{},showSorterTooltip:{type:[Boolean,Object]},prefixCls:{},rowKey:{type:[String,Function],default:"key"},tableLayout:{},title:{},id:{},showHeader:{type:Boolean},components:{},customHeaderRow:{},direction:{},expandFixed:{type:[String,Boolean]},expandColumnWidth:{},expandedRowKeys:{},defaultExpandedRowKeys:{},expandedRowRender:{},expandRowByClick:{type:Boolean},expandIcon:{},onExpand:{},onExpandedRowsChange:{},defaultExpandAllRows:{type:Boolean},indentSize:{},expandIconColumnIndex:{},showExpandColumn:{type:Boolean},expandedRowClassName:{},childrenColumnName:{},rowExpandable:{},transformCellText:{},rowHoverable:{type:Boolean},columns:{},rowSelection:{type:[Boolean,Object]},card:{type:Boolean},params:{},request:{},defaultData:{},dataSource:{},onLoadingChange:{},onShownColumnsChange:{},searchForm:{type:[Boolean,Object],default:void 0},beforeSearchSubmit:{},pagination:{type:[Boolean,Object],default:void 0},searchFormWrapperStyle:{},tableWrapperStyle:{},wrapperStyle:{},tableStyle:{},manual:{type:Boolean,default:void 0},size:{default:"mini"},adaptive:{type:Boolean},columnResizable:{type:Boolean,default:!1},loading:{type:Boolean,default:void 0},summary:{},rowHeight:{},getRowHeight:{},advanceRenderer:{type:Boolean},browserTooltips:{type:Boolean},virtual:{type:[Boolean,Object],default:void 0},onRowClicked:{},onScrollEnd:{},rowClassName:{},rowClassRules:{},autoHeight:{type:Boolean},onUpdate:{},customRow:{},theme:{}},setup(Y,{expose:Z}){const ee={"zh-cn":Q.AG_GRID_LOCALE_CN,en:Q.AG_GRID_LOCALE_EN};l.ModuleRegistry.registerModules([l.ValidationModule,l.ColumnAutoSizeModule,l.PinnedRowModule,l.RowAutoHeightModule,l.RowStyleModule,l.CellSpanModule,l.CellStyleModule,l.TooltipModule,l.RowSelectionModule,l.LocaleModule,l.ValueCacheModule,l.GridStateModule,l.ColumnApiModule,l.RowApiModule,l.CellApiModule,l.RenderApiModule,l.EventApiModule,l.ScrollApiModule,l.ClientSideRowModelApiModule,l.ClientSideRowModelModule]);const t=Y,E=e.useSlots(),{e:b,b:c,be:oe}=Co.useNamespace("ag-grid"),{lang:A}=ho.useLocale(),te=go.default("ag-grid"),h=e.ref(t.size),re=wo.useTheme(h,e.toRef(t,"rowHeight"),e.toRef(t,"theme")),ne=mo.default(e.toRef(t,"virtual")),{rowPinnedGridConfig:D,getRowPinnedCellClass:le}=io.usePinnedRow(e.toRef(t,"summary")),ae=yo.useGlobalConfig("apGrid"),s=e.ref(),[,se]=Ze.useToken();let y=!!t.dataSource;const z=fo.useSearchForm(t),{shownColumns:w,columns:V,columnKeys:ue,getTargetColumnByKey:ie}=so.useColumns(t),{defaultColDef:ce,columnDefs:de,gridWrapperRef:fe}=uo.useColumnsDef(V,t,le),k=e.ref({});ao.useProvideSorter({sorter:k,setSorter(o){k.value=o}});const pe={asc:"ascend",desc:"descend"};function me(){const o=s.value.getColumns()?.filter(f=>f.getSort()!==void 0),r=e.unref(k)||{};let n=o?.[0];const u=Object.keys(r);if(u.length&&u.every(f=>r[f]===null)){const f=Object.keys(r)[0];f&&(n=s.value?.getColumn(f))}if(!n)return;const i=n.getColDef(),m=n.getSort(),g=ie(i.colId);_(void 0,void 0,{column:i,field:g?.field??i.field??i.colId,order:m?pe[m]:null})}const ge=e.computed(()=>ro.recursionApColumns(e.unref(w),o=>{if(o.sorter===!0)return o.field??o.dataIndex??o.key}).filter(Boolean)),we=()=>{k.value={};const o=s.value;if(!o)return;const r=o.getColumnState()?.map(n=>({...n,sort:null}));o.applyColumnState({state:r})},x=e.ref(!0),Se=e.computed(()=>Ro.isDef(t.manual)?t.manual:no.getValidVNodeList(E.searchFormExtra?.()||[]).some(r=>r.type?.name==="ApView")),{formRef:S,submit:M,reset:q,data:p,tableProps:P,handleTableChangeOptional:_,submitWith:K,refresh:O,getPaging:Ce,setPaging:he,setDataSource:ye,getLastParams:Re}=to.useTablePaging({async request(o){if(y=!1,C.value&&!C.value.preserveSelectedRowKeys&&d.isUndefined(t.dataSource)&&!x.value&&T(),x.value&&(x.value=!1),!d.isUndefined(t.dataSource)){const n=o.pageSize*(o.current-1);return{data:(t.pagination===!1?t.dataSource:t.dataSource.slice(n,n+o.pageSize))||[],total:t.dataSource.length||0}}const r=await t.request?.(o);return{data:r?.data||[],total:r?.total||0}},namespace:"ap-grid",filterFields:e.ref([]),params:e.toRef(t,"params"),defaultData:t.defaultData,manual:e.unref(Se),formatParams:t.beforeSearchSubmit,pagination:t.pagination,sortFields:ge,onClickReset:we}),C=e.computed(()=>{const o=t.rowSelection||ae.value?.rowSelection;if(o)return o===!0?F.DEFAULT_ROW_SELECTION_CONFIG:{...F.DEFAULT_ROW_SELECTION_CONFIG,...o}}),ve=po.default(t,w),be=e.computed(()=>d.isUndefined(t.dataSource)?p.records:t.dataSource),{select:ke,unSelect:Be,selectedRows:N,selectedRowKeys:Fe,clearAll:xe,selectMultiByKeys:Me,selectMulti:qe,unSelectMulti:Ne}=co.default({...C.value,dataSource:be,rowKey:t.rowKey}),Ie={checkbox:"multiRow",radio:"singleRow"},Te=e.computed(()=>{const o=C.value;if(!o)return;const{type:r="checkbox",disabled:n}=o;return{mode:Ie[r],isRowSelectable:u=>n?!n(u.data):!0,hideDisabledCheckboxes:o.hideDisabled??!1}});function I(o){return d.isFunction(t.rowKey)?t.rowKey(o):o[t.rowKey]}const B=({api:o=s.value})=>{if(t.onUpdate?.(),!C.value)return;const r=N.value||[];y=!1;const n=[];o.forEachNode(u=>{const R=u.data,i=I(R),m=u.isSelected();r.find(g=>I(g)===i)?!m&&n.push(u):m&&u.setSelected(!1)}),o.setNodesSelected({nodes:n,newValue:!0}),setTimeout(()=>{y=!0},0)},Ee=o=>{y&&(o.node.isSelected()?ke(o.data):Be(o.data),d.isFunction(C.value?.tooltip)&&o.api.refreshCells({rowNodes:[o.node],columns:["ag-Grid-SelectionColumn"],force:!0}))},Ae=()=>{y=!0},T=()=>{xe(),s.value?.deselectAll()};function De(o){Me(o),e.nextTick(()=>{B({})})}const ze=e.computed(()=>{const o=t.customRow;return o?{isFullWidthRow:o.isCustomRow,fullWidthCellRenderer:vo.default,fullWidthCellRendererParams:{render:o.render}}:{}});function Ve(o){qe(o),e.nextTick(()=>{B({})})}function Pe(o){Ne(o),e.nextTick(()=>{B({})})}function G(o=!1){const r=o?"getFieldsValueTransformed":"getFieldsValue";return S.value?.apForm?.[r]?.(!0)}function L(o){S.value?.apForm?.setFieldsValue?.(o)}function W(){return S.value?.getSorterItems()||[]}function U(o){S.value?.setSorterItems(o)}function H(){S.value?.resetSorterItems()}function j(o){return o&&String(o)}function _e(o){const r=s.value;if(!r)return;const n=r.getColumnState()||[],u=o.map(a=>a.key?String(a.key):a.key).filter(Boolean),R=n.map(a=>{if(!ue.value.includes(a.colId))return a;const v=!u.includes(a.colId),$={...a,hide:v},J=o.find(Ye=>j(Ye.key)===a.colId);return J&&($.pinned=J.fixed||null),$}),i=new Map(o.map((a,v)=>[j(a.key),v])),m=R.filter(a=>i.has(a.colId)).sort((a,v)=>i.get(a.colId)-i.get(v.colId)),g=[];let f=0;for(const a of R)i.has(a.colId)?g.push(m[f++]):g.push(a);r.applyColumnState({state:g,applyOrder:!0})}oo.useProvideApTable({columns:e.computed(()=>w.value),columnsBackup:e.computed(()=>V.value),size:e.computed(()=>F.sizeMap[h.value]),updateColumns(o){w.value=o,t.onShownColumnsChange?.(o),_e(o)},updateSize(o){h.value=F.sizeReverseMap[o]},renderConfig:e.computed(()=>({className:oe("table-header","title"),color:se.value.colorTextTertiary})),dataSource:e.computed(()=>e.unref(p).records),getSearchFormValues:G,setSearchFormValues:L,submit:M,submitWith:K,reset:q,refresh:O,getSearchFormSorterItems:W,setSearchFormSorterItems:U,resetSearchFormSorterItems:H,getLastParams:Re});const Ke=e.computed(()=>d.isUndefined(t.loading)?p.loading:t.loading),Oe=e.computed(()=>[c(),t.card?null:c("wrapper"),c("adaptive"),c(`size-${h.value}`),t.autoHeight&&p.records.length?c("auto-height"):null,te.value].filter(Boolean)),Ge=e.computed(()=>({height:"100%",...t.tableStyle||{}})),Le=(o,r)=>{_({current:o,pageSize:r})};function We(o){const r=o.data;return I(r)}function Ue(o,r){(d.isFunction(o)?s.value?.ensureNodeVisible:s.value?.ensureIndexVisible)?.(o,r)}function He(o,r){s.value?.ensureColumnVisible(o,r)}function je(o){t.onRowClicked?.(o.data,o.event)}function $e(o){t.onScrollEnd?.(o.direction)}function Je(o){return s.value?.refreshCells(o)}function Qe(o){return s.value?.redrawRows(o)}const Xe=o=>{const r=[D.value.getRowClass?.(o)];if(!o.node.rowPinned){const n=d.isFunction(t.rowClassName)?t.rowClassName(o.data,o.rowIndex):t.rowClassName;r.push(n)}return r.flat().filter(Boolean)};return e.watch(()=>t.dataSource,o=>{e.nextTick(()=>{ye(o)})},{immediate:!0,deep:!0}),e.watch(()=>t.size,o=>{h.value=o}),e.watch(()=>e.unref(p).loading,o=>{t.onLoadingChange?.(o)}),Z({submit:M,reset:q,refresh:O,submitWith:K,setSearchFormValues:L,getSearchFormValues:G,getShowColumns:()=>e.unref(w),rowSelection:{selectedRows:e.computed(()=>N.value),setSelectedRowKeys:De,setSelectedRows:Ve,clearAll:T,unSelectRows:Pe},scrollToRow:Ue,scrollToColumn:He,getDataSource:()=>e.unref(p.records),getPaging:Ce,setPaging:he,getSearchFormSorterItems:W,setSearchFormSorterItems:U,resetSearchFormSorterItems:H,refreshCells:Je,redrawRows:Qe,_internalGridApi:e.computed(()=>s.value)}),(o,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(Oe.value),style:e.normalizeStyle(o.wrapperStyle)},[e.unref(d.isUndefined)(o.dataSource)&&o.searchForm!==!1&&e.unref(z).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.card?e.unref(b)("search-wrapper"):null),style:e.normalizeStyle(o.searchFormWrapperStyle)},[e.createVNode(e.unref(lo.ApForm).SearchForm,e.mergeProps(o.searchForm||{},{ref_key:"formRef",ref:S,"custom-reset":"","submit-loading":e.unref(P).loading,onSubmit:e.unref(M),onReset:e.unref(q)}),e.createSlots({default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(z),n=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.renderNode),{key:n.dataIndex}))),128))]),_:2},[E.searchFormExtra?{name:"extra",fn:e.withCtx(()=>[e.renderSlot(o.$slots,"searchFormExtra")]),key:"0"}:void 0]),1040,["submit-loading","onSubmit","onReset"])],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass([e.unref(b)("table-wrapper"),o.card?e.unref(b)("table-wrapper-card"):null]),style:e.normalizeStyle(o.tableWrapperStyle)},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("header-wrapper"))},[e.renderSlot(o.$slots,"title",{selectedRows:e.unref(N),selectedRowKeys:e.unref(Fe),shownColumns:e.unref(w),clearAll:T})],2),e.createElementVNode("div",{ref_key:"gridWrapperRef",ref:fe,class:e.normalizeClass(e.unref(c)("grid-wrapper"))},[(e.openBlock(),e.createBlock(e.unref(eo.AgGridVue),e.mergeProps(e.unref(So.mergeProps)(e.unref(ne),e.unref(D),ze.value),{key:e.unref(A),"get-row-class":Xe,style:Ge.value,"row-data":e.unref(p).records,"column-defs":e.unref(de),"default-col-def":e.unref(ce),"suppress-loading-overlay":"","row-selection":Te.value,"selection-column-def":e.unref(ve),"get-row-id":We,"get-row-height":t.getRowHeight,theme:e.unref(re),"tooltip-show-delay":500,"enable-browser-tooltips":o.browserTooltips,"tooltip-interaction":"","row-class-rules":o.rowClassRules,"no-rows-overlay-component":bo.default,"suppress-cell-focus":"","enable-cell-span":"","dom-layout":o.autoHeight?"autoHeight":"normal","locale-text":ee[e.unref(A)],onSortChanged:me,onGridReady:r[0]||(r[0]=n=>s.value=n.api),onRowDataUpdated:B,onRowSelected:Ee,onFirstDataRendered:Ae,onRowClicked:je,onBodyScrollEnd:$e}),null,16,["style","row-data","column-defs","default-col-def","row-selection","selection-column-def","get-row-height","theme","enable-browser-tooltips","row-class-rules","dom-layout","locale-text"])),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(e.unref(b)("table-loading-wrapper"))},[e.createVNode(e.unref(X.Spin),{delay:300})],2),[[e.vShow,Ke.value]])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(c)("pagination-wrapper"))},[o.pagination!==!1?(e.openBlock(),e.createBlock(e.unref(X.Pagination),e.mergeProps({key:0,class:e.unref(c)("pagination")},e.unref(P).pagination,{onChange:Le}),null,16,["class"])):e.createCommentVNode("",!0)],2)],6)],6))}});exports.default=ko;
|
|
@@ -6,13 +6,13 @@ export declare const useSelectOptions: (props: ApFieldSelectProps) => {
|
|
|
6
6
|
options: Ref<{
|
|
7
7
|
[x: string]: any;
|
|
8
8
|
label?: any;
|
|
9
|
-
value?: string | number | null | undefined;
|
|
9
|
+
value?: (string | number | null) | undefined;
|
|
10
10
|
children?: Omit<DefaultOptionType, "children">[] | undefined;
|
|
11
11
|
disabled?: boolean | undefined;
|
|
12
12
|
}[], DefaultOptionType[] | {
|
|
13
13
|
[x: string]: any;
|
|
14
14
|
label?: any;
|
|
15
|
-
value?: string | number | null | undefined;
|
|
15
|
+
value?: (string | number | null) | undefined;
|
|
16
16
|
children?: Omit<DefaultOptionType, "children">[] | undefined;
|
|
17
17
|
disabled?: boolean | undefined;
|
|
18
18
|
}[]>;
|
|
@@ -8,14 +8,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
|
|
|
8
8
|
disabled?: boolean | undefined;
|
|
9
9
|
checkable?: boolean | undefined;
|
|
10
10
|
disableCheckbox?: boolean | undefined;
|
|
11
|
-
children?:
|
|
11
|
+
children?: any[] | undefined;
|
|
12
12
|
} | {
|
|
13
13
|
[x: string]: any;
|
|
14
14
|
value?: RawValueType | undefined;
|
|
15
15
|
title?: any;
|
|
16
16
|
label?: any;
|
|
17
17
|
key?: Key | undefined;
|
|
18
|
-
children?:
|
|
18
|
+
children?: any[] | undefined;
|
|
19
19
|
disabled?: boolean | undefined;
|
|
20
20
|
checkable?: boolean | undefined;
|
|
21
21
|
disableCheckbox?: boolean | undefined;
|
|
@@ -24,14 +24,14 @@ export declare const useRequest: (props: ApFieldTreeSelectProps) => {
|
|
|
24
24
|
disabled?: boolean | undefined;
|
|
25
25
|
checkable?: boolean | undefined;
|
|
26
26
|
disableCheckbox?: boolean | undefined;
|
|
27
|
-
children?:
|
|
27
|
+
children?: any[] | undefined;
|
|
28
28
|
} | {
|
|
29
29
|
[x: string]: any;
|
|
30
30
|
value?: RawValueType | undefined;
|
|
31
31
|
title?: any;
|
|
32
32
|
label?: any;
|
|
33
33
|
key?: Key | undefined;
|
|
34
|
-
children?:
|
|
34
|
+
children?: any[] | undefined;
|
|
35
35
|
disabled?: boolean | undefined;
|
|
36
36
|
checkable?: boolean | undefined;
|
|
37
37
|
disableCheckbox?: boolean | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
1
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, RuleObject, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
2
2
|
import { Recordable } from '../type';
|
|
3
3
|
import { ApFormProps, UpdateModelOptimizeFn, WatchFunc, ApFormInternalInstance } from './interface';
|
|
4
4
|
import { CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, HTMLAttributes, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, DefineComponent } from 'vue';
|
|
@@ -7,6 +7,7 @@ import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
|
7
7
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
8
8
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
9
9
|
import { Options } from '../../node_modules/scroll-into-view-if-needed';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
11
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
declare function __VLS_template(): {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
1
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, RuleObject } from '@aplus-frontend/antdv/es/form/interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, CSSProperties } from 'vue';
|
|
3
3
|
import { ApFormDrawerFormProps, CustomizeResizeType } from '../interface';
|
|
4
4
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
@@ -7,6 +7,7 @@ import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
|
7
7
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../type';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
11
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
@@ -118,7 +119,7 @@ declare function __VLS_template(): {
|
|
|
118
119
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
119
120
|
readonly initialValues?: Recordable | undefined;
|
|
120
121
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
121
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
122
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
122
123
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
123
124
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
124
125
|
$attrs: {
|
|
@@ -1086,7 +1087,7 @@ declare const __VLS_component: DefineComponent<ApFormDrawerFormProps, {
|
|
|
1086
1087
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1087
1088
|
readonly initialValues?: Recordable | undefined;
|
|
1088
1089
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1089
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1090
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
1090
1091
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1091
1092
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1092
1093
|
$attrs: {
|
|
@@ -4,6 +4,7 @@ import { ComponentInternalInstance, VNodeProps, AllowedComponentProps, Component
|
|
|
4
4
|
import { FieldMode, ApFieldNumberProps } from '../../..';
|
|
5
5
|
import { ValueType } from '@aplus-frontend/antdv/es/input-number/src/utils/MiniDecimal';
|
|
6
6
|
import { KeyboardEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
7
|
+
import { InputNumberProps } from '@aplus-frontend/antdv';
|
|
7
8
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
8
9
|
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
9
10
|
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
@@ -78,7 +79,7 @@ declare function __VLS_template(): {
|
|
|
78
79
|
offset: ValueType;
|
|
79
80
|
type: "up" | "down";
|
|
80
81
|
}) => void) | undefined;
|
|
81
|
-
readonly inputMode?: "
|
|
82
|
+
readonly inputMode?: InputNumberProps["mode"];
|
|
82
83
|
readonly emptyText?: string | undefined;
|
|
83
84
|
readonly thousands?: boolean | undefined;
|
|
84
85
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
@@ -599,7 +600,7 @@ declare const __VLS_component: DefineComponent<ApFormItemNumberProps, {
|
|
|
599
600
|
offset: ValueType;
|
|
600
601
|
type: "up" | "down";
|
|
601
602
|
}) => void) | undefined;
|
|
602
|
-
readonly inputMode?: "
|
|
603
|
+
readonly inputMode?: InputNumberProps["mode"];
|
|
603
604
|
readonly emptyText?: string | undefined;
|
|
604
605
|
readonly thousands?: boolean | undefined;
|
|
605
606
|
readonly limitDecimalsRetain?: boolean | undefined;
|
|
@@ -130,12 +130,12 @@ declare function __VLS_template(): {
|
|
|
130
130
|
readonly emptyText?: string | undefined;
|
|
131
131
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
132
132
|
readonly multiple?: boolean | undefined;
|
|
133
|
-
readonly value?:
|
|
133
|
+
readonly value?: SelectProps["value"];
|
|
134
134
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
135
|
-
readonly searchMode?: "filter" | "request" | undefined;
|
|
135
|
+
readonly searchMode?: ("filter" | "request") | undefined;
|
|
136
136
|
readonly refetchOnFocus?: boolean | undefined;
|
|
137
137
|
readonly lazy?: boolean | undefined;
|
|
138
|
-
readonly addAll?: boolean | number | undefined;
|
|
138
|
+
readonly addAll?: (boolean | number) | undefined;
|
|
139
139
|
readonly params?: Recordable | undefined;
|
|
140
140
|
readonly searchDelay?: number | undefined;
|
|
141
141
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -788,12 +788,12 @@ declare const __VLS_component: DefineComponent<ApFormItemSelectProps, {
|
|
|
788
788
|
readonly emptyText?: string | undefined;
|
|
789
789
|
readonly request?: ((value?: string, extraParams?: Recordable) => Promise< SelectProps["options"]>) | undefined;
|
|
790
790
|
readonly multiple?: boolean | undefined;
|
|
791
|
-
readonly value?:
|
|
791
|
+
readonly value?: SelectProps["value"];
|
|
792
792
|
readonly 'onUpdate:value'?: (((val: SelectValue) => void) & ((...args: any[]) => any)) | undefined;
|
|
793
|
-
readonly searchMode?: "filter" | "request" | undefined;
|
|
793
|
+
readonly searchMode?: ("filter" | "request") | undefined;
|
|
794
794
|
readonly refetchOnFocus?: boolean | undefined;
|
|
795
795
|
readonly lazy?: boolean | undefined;
|
|
796
|
-
readonly addAll?: boolean | number | undefined;
|
|
796
|
+
readonly addAll?: (boolean | number) | undefined;
|
|
797
797
|
readonly params?: Recordable | undefined;
|
|
798
798
|
readonly searchDelay?: number | undefined;
|
|
799
799
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity } from '@aplus-frontend/antdv/es/form/interface';
|
|
1
|
+
import { InternalNamePath, NamePath, ValidateOptions, FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, RuleObject } from '@aplus-frontend/antdv/es/form/interface';
|
|
2
2
|
import { VNode, ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent, RendererNode, RendererElement, CSSProperties } from 'vue';
|
|
3
3
|
import { Recordable } from '../../type';
|
|
4
4
|
import { ApFormModalFormProps } from '../interface';
|
|
@@ -7,6 +7,7 @@ import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
|
7
7
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
8
8
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
11
|
import { SizeType, ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSubmitterConfig } from '..';
|
|
@@ -120,7 +121,7 @@ declare function __VLS_template(): {
|
|
|
120
121
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
121
122
|
readonly initialValues?: Recordable | undefined;
|
|
122
123
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
123
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
124
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
124
125
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
125
126
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
126
127
|
$attrs: {
|
|
@@ -1323,7 +1324,7 @@ declare const __VLS_component: DefineComponent<ApFormModalFormProps, {
|
|
|
1323
1324
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1324
1325
|
readonly initialValues?: Recordable | undefined;
|
|
1325
1326
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1326
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1327
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
1327
1328
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1328
1329
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1329
1330
|
$attrs: {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { ApFormExpose, ApFormSearchFormProps } from '../interface';
|
|
2
2
|
import { ComponentInternalInstance, ExtractPropTypes, PropType, HTMLAttributes, VNodeProps, AllowedComponentProps, ComponentCustomProps, CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicProps, GlobalComponents, GlobalDirectives, ComponentProvideOptions, Slot, ComponentPublicInstance, ComponentOptionsBase, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, DefineComponent } from 'vue';
|
|
3
3
|
import { ColSize } from '@aplus-frontend/antdv/es/grid';
|
|
4
|
-
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
4
|
+
import { FormLabelAlign, ValidateMessages, FieldData, ValidateErrorEntity, NamePath, RuleObject, ValidateOptions, InternalNamePath } from '@aplus-frontend/antdv/es/form/interface';
|
|
5
5
|
import { RequiredMark } from '@aplus-frontend/antdv/es/form/Form';
|
|
6
6
|
import { RuleObject } from '@aplus-frontend/antdv/es/form';
|
|
7
7
|
import { Options } from '../../../node_modules/scroll-into-view-if-needed';
|
|
8
8
|
import { Recordable } from '../../type';
|
|
9
9
|
import { VueTypeDef, VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
10
|
+
import { SizeType } from '@aplus-frontend/antdv/es/config-provider';
|
|
10
11
|
import { SizeType } from '@aplus-frontend/antdv/es/button';
|
|
11
12
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
12
13
|
import { ApFormProps, UpdateModelOptimizeFn, ApFormInternalInstance, WatchFunc, ApFormSearchFormPopoverSorterItem } from '..';
|
|
@@ -118,7 +119,7 @@ declare function __VLS_template(): {
|
|
|
118
119
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
119
120
|
readonly initialValues?: Recordable | undefined;
|
|
120
121
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
121
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
122
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
122
123
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
123
124
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
124
125
|
$attrs: {
|
|
@@ -1106,7 +1107,7 @@ declare const __VLS_component: DefineComponent<ApFormSearchFormProps, {
|
|
|
1106
1107
|
readonly onValidate?: ((name: string | number | string[] | number[], status: boolean, errors: string[]) => void) | undefined;
|
|
1107
1108
|
readonly initialValues?: Recordable | undefined;
|
|
1108
1109
|
readonly onValuesChange?: ((changedValues: Recordable, allValues: Recordable, fieldName: NamePath) => void) | undefined;
|
|
1109
|
-
readonly syncToUrl?: boolean | ((values: Recordable, type: "get" | "set") => Recordable) | undefined;
|
|
1110
|
+
readonly syncToUrl?: (boolean | ((values: Recordable, type: "get" | "set") => Recordable)) | undefined;
|
|
1110
1111
|
readonly syncToUrlPriority?: boolean | undefined;
|
|
1111
1112
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps;
|
|
1112
1113
|
$attrs: {
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
import { EditableGridFormItemExpose, EditableGridFormItemProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & EditableGridFormItemProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<EditableGridFormItemExpose>): void;
|
|
7
7
|
attrs: any;
|
|
8
8
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
9
9
|
emit: {};
|
|
10
|
-
}>) => VNode
|
|
10
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
}> & {
|
|
11
13
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
12
14
|
};
|
|
13
15
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Recordable } from '../../type';
|
|
2
2
|
import { EditableGridExpose, EditableGridProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
6
6
|
readonly "onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
@@ -9,7 +9,9 @@ declare const _default: <RecordType extends Recordable = any>(__VLS_props: NonNu
|
|
|
9
9
|
attrs: any;
|
|
10
10
|
slots: Readonly<Record<string, any>> & Record<string, any>;
|
|
11
11
|
emit: (event: "update:value", ...args: any[]) => void;
|
|
12
|
-
}>) => VNode
|
|
12
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
}> & {
|
|
13
15
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
14
16
|
};
|
|
15
17
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VxeTableSlots } from 'vxe-table';
|
|
2
2
|
import { ApGridColumnType, ApGridExpose, ApGridProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
5
5
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApGridProps<RecordType> & Partial<{}>> & PublicProps;
|
|
6
6
|
expose(exposed: ShallowUnwrapRef<ApGridExpose>): void;
|
|
@@ -35,7 +35,9 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
35
35
|
}) => any;
|
|
36
36
|
};
|
|
37
37
|
emit: {};
|
|
38
|
-
}>) => VNode
|
|
38
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}> & {
|
|
39
41
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
42
|
};
|
|
41
43
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Recordable } from '../type';
|
|
2
2
|
import { ApListExpose, ApListProps } from './interface';
|
|
3
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode } from 'vue';
|
|
3
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, Ref, VNode, RendererNode, RendererElement } from 'vue';
|
|
4
4
|
import { ApFormSearchFormExpose } from '..';
|
|
5
5
|
declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApListProps<RecordType> & Partial<{}>> & PublicProps;
|
|
@@ -35,7 +35,9 @@ declare const _default: <RecordType extends Recordable>(__VLS_props: NonNullable
|
|
|
35
35
|
}): any;
|
|
36
36
|
};
|
|
37
37
|
emit: {};
|
|
38
|
-
}>) => VNode
|
|
38
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
39
|
+
[key: string]: any;
|
|
40
|
+
}> & {
|
|
39
41
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
40
42
|
};
|
|
41
43
|
export default _default;
|
|
@@ -6,7 +6,7 @@ export type ModalFunc = (props: ModalFuncProps) => {
|
|
|
6
6
|
update: (configUpdate: ConfigUpdate) => void;
|
|
7
7
|
};
|
|
8
8
|
declare const confirm: (config: ModalFuncProps) => {
|
|
9
|
-
destroy: (this:
|
|
9
|
+
destroy: (this: any, ...args: any[]) => void;
|
|
10
10
|
update: (configUpdate: ConfigUpdate) => void;
|
|
11
11
|
};
|
|
12
12
|
export default confirm;
|
|
@@ -2,7 +2,7 @@ import { ColumnsType, ColumnType } from '@aplus-frontend/antdv/es/table';
|
|
|
2
2
|
import { ApFormSearchFormPopoverSorterItem } from '../ap-form';
|
|
3
3
|
import { RowSelectionReturnType } from './hooks/use-table-row-selection';
|
|
4
4
|
import { ApColumnType, ApTableProps } from './interface';
|
|
5
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode } from 'vue';
|
|
5
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, ComputedRef, VNode, RendererNode, RendererElement } from 'vue';
|
|
6
6
|
declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>, never> & ApTableProps<RecordType> & Partial<{}>> & PublicProps;
|
|
8
8
|
expose(exposed: ShallowUnwrapRef<{
|
|
@@ -98,7 +98,9 @@ declare const _default: <RecordType>(__VLS_props: NonNullable<Awaited<typeof __V
|
|
|
98
98
|
}) => void;
|
|
99
99
|
};
|
|
100
100
|
emit: {};
|
|
101
|
-
}>) => VNode
|
|
101
|
+
}>) => VNode<RendererNode, RendererElement, {
|
|
102
|
+
[key: string]: any;
|
|
103
|
+
}> & {
|
|
102
104
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
103
105
|
};
|
|
104
106
|
export default _default;
|