@aplus-frontend/ui 7.19.0-beta.1 → 7.19.0
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/context.mjs +1 -1
- package/es/src/ag-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/form-item.vue.mjs +88 -77
- package/es/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ag-grid/editable/index.vue.mjs +9 -8
- package/es/src/ag-grid/editable/interface.d.ts +15 -1
- package/es/src/ag-grid/hooks/use-columns.mjs +31 -23
- package/es/src/ag-grid/hooks/use-pinned-row.mjs +2 -2
- package/es/src/ag-grid/index.vue.d.ts +2 -4
- package/es/src/ag-grid/index.vue.mjs +353 -335
- package/es/src/ag-grid/interface.d.ts +40 -1
- package/es/src/ag-grid/utils.d.ts +18 -0
- package/es/src/ag-grid/utils.mjs +39 -18
- package/es/src/ap-field/cascader/use-options.d.ts +4 -4
- package/es/src/ap-field/date/index.vue.d.ts +0 -1
- package/es/src/ap-field/date-range/index.vue.d.ts +0 -1
- package/es/src/ap-field/select/use-select-options.d.ts +2 -2
- package/es/src/ap-field/text/password.vue.d.ts +4 -4
- package/es/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/es/src/ap-form/ap-form.vue.d.ts +1 -2
- package/es/src/ap-form/ap-form.vue2.mjs +63 -61
- package/es/src/ap-form/context.mjs +1 -1
- package/es/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/interface.d.ts +4 -0
- package/es/src/ap-form/item/index.vue.d.ts +6 -6
- package/es/src/ap-form/item-group/helper.mjs +2 -2
- package/es/src/ap-form/items/date/index.vue.d.ts +9 -11
- package/es/src/ap-form/items/date-range/index.vue.d.ts +13 -15
- package/es/src/ap-form/items/number/index.vue.d.ts +2 -3
- package/es/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/es/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/es/src/ap-form/provider/context.mjs +1 -1
- package/es/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/es/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/es/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/es/src/ap-grid/index.vue.d.ts +2 -4
- package/es/src/ap-grid/utils/table.mjs +2 -2
- package/es/src/ap-list/index.vue.d.ts +2 -4
- package/es/src/ap-modal/utils/confirm.d.ts +1 -1
- package/es/src/ap-pro-card/components/card/index.vue2.mjs +2 -2
- package/es/src/ap-table/ap-table.vue.d.ts +2 -4
- package/es/src/ap-table/components/setting/context.d.ts +1 -1
- package/es/src/ap-table/components/setting/context.mjs +1 -1
- package/es/src/ap-table/components/setting/modal/index.vue.mjs +127 -117
- package/es/src/ap-table/components/setting/sorter/context.mjs +1 -1
- package/es/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
- package/es/src/ap-table/constants.d.ts +20 -22
- package/es/src/ap-table/context.mjs +1 -1
- package/es/src/ap-table/hooks/use-table-paging-ng.mjs +9 -9
- package/es/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
- package/es/src/ap-table/hooks/use-table-template-storage.mjs +102 -95
- package/es/src/ap-table/utils.mjs +1 -1
- package/es/src/business/ag-grid-modal/hooks/use-ag-grid-instance.mjs +1 -1
- package/es/src/business/ap-batch-action-group/index.d.ts +3 -3
- package/es/src/business/ap-download/hooks/index.mjs +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue.d.ts +1 -1
- package/es/src/business/ap-draggable-grid/ApDraggableGrid.vue2.mjs +1 -3
- package/es/src/business/ap-draggable-grid/index.d.ts +1 -1
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.d.ts +2 -4
- package/es/src/business/ap-keep-alive/hook.mjs +1 -1
- package/es/src/business/ap-keep-alive/utils.mjs +1 -1
- package/es/src/business/ap-select-layout/index.d.ts +2 -4
- package/es/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/es/src/business/ap-table-modal/index.d.ts +17 -5
- package/es/src/business/ap-upload/components/MultipleFile.vue.d.ts +1 -1
- package/es/src/business/ap-upload/components/MultipleFile.vue2.mjs +128 -112
- package/es/src/business/ap-value-select-card/index.vue.d.ts +2 -4
- package/es/src/business/ap-view/ap-view.vue.d.ts +1 -1
- package/es/src/business/ap-view/ap-view.vue2.mjs +87 -81
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/es/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
- package/es/src/business/ap-view/hooks/use-send-to-url.mjs +46 -30
- package/es/src/business/ap-view/hooks/use-view-provide.mjs +1 -1
- package/es/src/business/ap-view/index.d.ts +3 -3
- package/es/src/business/ap-view/interface.d.ts +7 -1
- package/es/src/check-card/context.mjs +1 -1
- package/es/src/config-provider/constants.mjs +1 -1
- package/es/src/config-provider/hooks/use-locale.mjs +1 -1
- package/es/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/es/src/config-provider/hooks/use-namespace.mjs +1 -1
- package/es/src/config-provider/hooks/use-token.mjs +1 -1
- package/es/src/editable-table/form-item.vue.d.ts +2 -4
- package/es/src/editable-table/index.vue.d.ts +2 -4
- package/es/src/editable-table/utils.mjs +1 -1
- package/es/src/scroll-view/index.vue.d.ts +5 -5
- package/es/src/tests/wrapper.d.ts +4 -4
- package/es/src/text/context.mjs +1 -1
- package/es/src/time-ago/useTimeAgo.mjs +1 -1
- package/es/src/type.d.ts +1 -0
- package/es/src/utils/slot.mjs +1 -1
- 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 +2 -4
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/editable/interface.d.ts +15 -1
- package/lib/src/ag-grid/hooks/use-columns.js +1 -1
- package/lib/src/ag-grid/hooks/use-pinned-row.js +1 -1
- package/lib/src/ag-grid/index.vue.d.ts +2 -4
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +40 -1
- package/lib/src/ag-grid/utils.d.ts +18 -0
- package/lib/src/ag-grid/utils.js +1 -1
- package/lib/src/ap-field/cascader/use-options.d.ts +4 -4
- package/lib/src/ap-field/date/index.vue.d.ts +0 -1
- package/lib/src/ap-field/date-range/index.vue.d.ts +0 -1
- package/lib/src/ap-field/select/use-select-options.d.ts +2 -2
- package/lib/src/ap-field/text/password.vue.d.ts +4 -4
- package/lib/src/ap-field/tree-select/use-request.d.ts +4 -4
- package/lib/src/ap-form/ap-form.vue.d.ts +1 -2
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/interface.d.ts +4 -0
- package/lib/src/ap-form/item/index.vue.d.ts +6 -6
- package/lib/src/ap-form/items/date/index.vue.d.ts +9 -11
- package/lib/src/ap-form/items/date-range/index.vue.d.ts +13 -15
- package/lib/src/ap-form/items/number/index.vue.d.ts +2 -3
- package/lib/src/ap-form/items/select/index.vue.d.ts +8 -8
- package/lib/src/ap-form/modal-form/index.vue.d.ts +3 -4
- package/lib/src/ap-form/search-form/index.vue.d.ts +3 -4
- package/lib/src/ap-grid/editable/form-item.vue.d.ts +2 -4
- package/lib/src/ap-grid/editable/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/index.vue.d.ts +2 -4
- package/lib/src/ap-grid/utils/table.js +1 -1
- package/lib/src/ap-list/index.vue.d.ts +2 -4
- package/lib/src/ap-modal/utils/confirm.d.ts +1 -1
- package/lib/src/ap-table/ap-table.vue.d.ts +2 -4
- package/lib/src/ap-table/components/setting/context.d.ts +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue.js +1 -1
- package/lib/src/ap-table/components/setting/template/edit-form.vue.d.ts +2 -3
- package/lib/src/ap-table/constants.d.ts +20 -22
- package/lib/src/ap-table/hooks/use-table-paging-ng.js +1 -1
- package/lib/src/ap-table/hooks/use-table-template-storage.d.ts +9 -9
- package/lib/src/ap-table/hooks/use-table-template-storage.js +1 -1
- 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/ApDraggableGrid.vue2.js +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 +2 -4
- package/lib/src/business/ap-select-layout/index.d.ts +2 -4
- package/lib/src/business/ap-select-layout/select-layout.vue.d.ts +2 -4
- package/lib/src/business/ap-table-modal/index.d.ts +17 -5
- 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 +2 -4
- package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -1
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/components/menu-list-content.vue.d.ts +2 -3
- package/lib/src/business/ap-view/hooks/use-send-to-url.d.ts +2 -0
- package/lib/src/business/ap-view/hooks/use-send-to-url.js +1 -1
- package/lib/src/business/ap-view/index.d.ts +3 -3
- package/lib/src/business/ap-view/interface.d.ts +7 -1
- package/lib/src/config-provider/hooks/use-namespace.d.ts +5 -1
- package/lib/src/editable-table/form-item.vue.d.ts +2 -4
- package/lib/src/editable-table/index.vue.d.ts +2 -4
- package/lib/src/scroll-view/index.vue.d.ts +5 -5
- package/lib/src/tests/wrapper.d.ts +4 -4
- package/lib/src/time-ago/useTimeAgo.js +1 -1
- package/lib/src/type.d.ts +1 -0
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ref as me, reactive as J, unref as d, nextTick as Se, onMounted as ze, watch as Pe, computed as
|
|
1
|
+
import { ref as me, reactive as J, unref as d, nextTick as Se, onMounted as ze, watch as Pe, computed as M, createVNode as x } from "vue";
|
|
2
2
|
import { cloneDeep as Te, isArray as K, isEqualWith as Ce, isUndefined as be } from "lodash-unified";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import "../../utils/index.mjs";
|
|
@@ -7,9 +7,9 @@ import { useTableSortedAndFiltered as De } from "./use-sorted-filtered.mjs";
|
|
|
7
7
|
import { useLocale as Ee } from "../../config-provider/hooks/use-locale.mjs";
|
|
8
8
|
import { useNamespace as ve } from "../../config-provider/hooks/use-namespace.mjs";
|
|
9
9
|
import { isDef as Q } from "../../utils/is.mjs";
|
|
10
|
-
const p = 1,
|
|
10
|
+
const p = 1, y = 20, W = {
|
|
11
11
|
defaultCurrent: p,
|
|
12
|
-
defaultPageSize:
|
|
12
|
+
defaultPageSize: y,
|
|
13
13
|
showLessItems: !1,
|
|
14
14
|
showTotal: !0
|
|
15
15
|
};
|
|
@@ -21,7 +21,7 @@ function Ae(i) {
|
|
|
21
21
|
}
|
|
22
22
|
function Le(i) {
|
|
23
23
|
const f = {};
|
|
24
|
-
return i === !1 || (i === !0 || i == null ? (f.current = p, f.pageSize =
|
|
24
|
+
return i === !1 || (i === !0 || i == null ? (f.current = p, f.pageSize = y) : (f.current = i.defaultCurrent || p, f.pageSize = i.defaultPageSize || y)), f;
|
|
25
25
|
}
|
|
26
26
|
const qe = ({
|
|
27
27
|
manual: i = !1,
|
|
@@ -201,7 +201,7 @@ const qe = ({
|
|
|
201
201
|
}, {
|
|
202
202
|
deep: !0
|
|
203
203
|
});
|
|
204
|
-
const fe =
|
|
204
|
+
const fe = M(() => {
|
|
205
205
|
if (a.total === 0)
|
|
206
206
|
return "-";
|
|
207
207
|
const {
|
|
@@ -215,7 +215,7 @@ const qe = ({
|
|
|
215
215
|
if (g !== !1 && t) {
|
|
216
216
|
const n = o.pageSize * (o.current - 1);
|
|
217
217
|
a.records = e.slice(n, n + o.pageSize) || [];
|
|
218
|
-
const r = Math.ceil(e.length / o.pageSize);
|
|
218
|
+
const r = Math.max(Math.ceil(e.length / o.pageSize), 1);
|
|
219
219
|
r < o.current && k({
|
|
220
220
|
current: r
|
|
221
221
|
});
|
|
@@ -224,7 +224,7 @@ const qe = ({
|
|
|
224
224
|
a.total = e.length;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
|
-
const de =
|
|
227
|
+
const de = M(() => {
|
|
228
228
|
const {
|
|
229
229
|
showLessItems: e,
|
|
230
230
|
showTotal: t,
|
|
@@ -275,7 +275,7 @@ const qe = ({
|
|
|
275
275
|
handleTableChange: L,
|
|
276
276
|
handleTableChangeOptional: k,
|
|
277
277
|
tableProps: de,
|
|
278
|
-
dataSource:
|
|
278
|
+
dataSource: M(() => a.records),
|
|
279
279
|
setDataSource: ge,
|
|
280
280
|
getColumnSFConfig: te,
|
|
281
281
|
sortedInfo: j,
|
|
@@ -289,6 +289,6 @@ const qe = ({
|
|
|
289
289
|
};
|
|
290
290
|
export {
|
|
291
291
|
p as DEFAULT_CURRENT,
|
|
292
|
-
|
|
292
|
+
y as DEFAULT_PAGE_SIZE,
|
|
293
293
|
qe as useTablePaging
|
|
294
294
|
};
|
|
@@ -6,28 +6,28 @@ export declare const useTableTemplateStorage: (columnSetting: ApTableSettingType
|
|
|
6
6
|
columnState: {
|
|
7
7
|
key: string | number;
|
|
8
8
|
show?: boolean | undefined;
|
|
9
|
-
fixed?:
|
|
9
|
+
fixed?: "left" | "right" | undefined;
|
|
10
10
|
disabled?: boolean | undefined;
|
|
11
11
|
label?: any;
|
|
12
|
-
children?: any[] | undefined;
|
|
12
|
+
children?: /*elided*/ any[] | undefined;
|
|
13
13
|
order?: number | undefined;
|
|
14
14
|
}[];
|
|
15
15
|
label: string;
|
|
16
16
|
key: string;
|
|
17
|
-
size?:
|
|
17
|
+
size?: "middle" | "small" | undefined;
|
|
18
18
|
}[], ApColumnTemplate[] | {
|
|
19
19
|
columnState: {
|
|
20
20
|
key: string | number;
|
|
21
21
|
show?: boolean | undefined;
|
|
22
|
-
fixed?:
|
|
22
|
+
fixed?: "left" | "right" | undefined;
|
|
23
23
|
disabled?: boolean | undefined;
|
|
24
24
|
label?: any;
|
|
25
|
-
children?: any[] | undefined;
|
|
25
|
+
children?: /*elided*/ any[] | undefined;
|
|
26
26
|
order?: number | undefined;
|
|
27
27
|
}[];
|
|
28
28
|
label: string;
|
|
29
29
|
key: string;
|
|
30
|
-
size?:
|
|
30
|
+
size?: "middle" | "small" | undefined;
|
|
31
31
|
}[]>;
|
|
32
32
|
syncTemplateListToStorage: (nextTemplateList: ApColumnTemplate[]) => void;
|
|
33
33
|
addTemplate: (template: ApColumnTemplate) => void;
|
|
@@ -36,14 +36,14 @@ export declare const useTableTemplateStorage: (columnSetting: ApTableSettingType
|
|
|
36
36
|
columnState: {
|
|
37
37
|
key: string | number;
|
|
38
38
|
show?: boolean | undefined;
|
|
39
|
-
fixed?:
|
|
39
|
+
fixed?: "left" | "right" | undefined;
|
|
40
40
|
disabled?: boolean | undefined;
|
|
41
41
|
label?: any;
|
|
42
|
-
children?: any[] | undefined;
|
|
42
|
+
children?: /*elided*/ any[] | undefined;
|
|
43
43
|
order?: number | undefined;
|
|
44
44
|
}[];
|
|
45
45
|
label: string;
|
|
46
46
|
key: string;
|
|
47
|
-
size?:
|
|
47
|
+
size?: "middle" | "small" | undefined;
|
|
48
48
|
};
|
|
49
49
|
};
|
|
@@ -1,71 +1,78 @@
|
|
|
1
|
-
import { useToken as
|
|
2
|
-
import { isBoolean as
|
|
3
|
-
import { ref as
|
|
1
|
+
import { useToken as G } from "@aplus-frontend/antdv/es/theme/internal";
|
|
2
|
+
import { isBoolean as P, isNumber as b, isObject as y, mergeWith as E, omit as R, isString as U } from "lodash-unified";
|
|
3
|
+
import { ref as k, watch as d, unref as v } from "vue";
|
|
4
4
|
import "../../config-provider/index.mjs";
|
|
5
|
-
import { randomStr as
|
|
6
|
-
import { getColumnStateString as
|
|
7
|
-
import { useInjectApTable as
|
|
8
|
-
import { getTableTitle as
|
|
9
|
-
import { useLocale as
|
|
10
|
-
import { useNamespace as
|
|
11
|
-
function
|
|
12
|
-
return a ? a.fixed : e ? e.fixed : o && "fixed" in o ? o.fixed :
|
|
5
|
+
import { randomStr as N } from "../../utils/index.mjs";
|
|
6
|
+
import { getColumnStateString as W } from "../components/setting/utils.mjs";
|
|
7
|
+
import { useInjectApTable as X } from "../context.mjs";
|
|
8
|
+
import { getTableTitle as q } from "../utils.mjs";
|
|
9
|
+
import { useLocale as D } from "../../config-provider/hooks/use-locale.mjs";
|
|
10
|
+
import { useNamespace as H } from "../../config-provider/hooks/use-namespace.mjs";
|
|
11
|
+
function Q(r, e, o, a) {
|
|
12
|
+
return a ? a.fixed : e ? e.fixed : o && "fixed" in o ? o.fixed : P(r.fixed) ? r.fixed ? "left" : void 0 : r.fixed;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
15
|
-
function
|
|
16
|
-
const o =
|
|
17
|
-
let a =
|
|
18
|
-
return
|
|
14
|
+
const A = Number.MAX_SAFE_INTEGER, I = N();
|
|
15
|
+
function V(r, e) {
|
|
16
|
+
const o = b(r.order) ? r.order : A;
|
|
17
|
+
let a = b(e.order) ? e.order : A;
|
|
18
|
+
return r.fixed === "right" && e.fixed !== "right" && (a = o - 1), e.fixed === "left" && r.fixed !== "left" && (a = o - 1), o - a;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
21
|
-
e &&
|
|
20
|
+
function Y(r, e) {
|
|
21
|
+
e && r.removeItem(e);
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function z(r, e) {
|
|
24
24
|
if (!e)
|
|
25
25
|
return [];
|
|
26
|
-
const o =
|
|
26
|
+
const o = r.getItem(e);
|
|
27
27
|
if (!o)
|
|
28
28
|
return [];
|
|
29
29
|
const a = JSON.parse(o);
|
|
30
|
-
return Array.isArray(a) ? a : (
|
|
30
|
+
return Array.isArray(a) ? a : (Y(r, e), []);
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
if (
|
|
34
|
-
return
|
|
32
|
+
function _(r, e) {
|
|
33
|
+
if (y(r) && y(e))
|
|
34
|
+
return E({}, r, e, _);
|
|
35
35
|
}
|
|
36
|
-
const
|
|
37
|
-
const { columnsBackup: a, size:
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
)
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
const ue = (r, e, o) => {
|
|
37
|
+
const { columnsBackup: a, size: s } = X(), { t: L } = D(), { be: O } = H("ap-table"), [Z, B] = G(), m = k(), n = k([]);
|
|
38
|
+
let g;
|
|
39
|
+
g = d(
|
|
40
|
+
() => a?.value,
|
|
41
|
+
(t, i) => {
|
|
42
|
+
t?.length && !i?.length && (n.value = T(
|
|
43
|
+
z(localStorage, v(e))
|
|
44
|
+
), g?.());
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
immediate: !0
|
|
48
|
+
}
|
|
49
|
+
), d(
|
|
50
|
+
[a, s],
|
|
51
|
+
([t, i]) => {
|
|
52
|
+
t && (m.value = {
|
|
46
53
|
label: "basic_template",
|
|
47
|
-
columnState: f(
|
|
48
|
-
key:
|
|
54
|
+
columnState: f(t),
|
|
55
|
+
key: I,
|
|
49
56
|
size: i
|
|
50
57
|
});
|
|
51
58
|
},
|
|
52
59
|
{ immediate: !0, deep: !0 }
|
|
53
|
-
),
|
|
60
|
+
), d(
|
|
54
61
|
() => e.value,
|
|
55
|
-
(
|
|
62
|
+
(t) => {
|
|
56
63
|
const i = T(
|
|
57
|
-
|
|
64
|
+
z(localStorage, t)
|
|
58
65
|
);
|
|
59
|
-
|
|
66
|
+
n.value = i, m.value = {
|
|
60
67
|
label: "basic_template",
|
|
61
68
|
columnState: f(a?.value || []),
|
|
62
|
-
key:
|
|
63
|
-
size:
|
|
69
|
+
key: I,
|
|
70
|
+
size: s?.value
|
|
64
71
|
}, o(i ?? []);
|
|
65
72
|
}
|
|
66
73
|
);
|
|
67
|
-
function T(
|
|
68
|
-
return
|
|
74
|
+
function T(t) {
|
|
75
|
+
return t.length ? t.map((i) => ({
|
|
69
76
|
...i,
|
|
70
77
|
columnState: f(
|
|
71
78
|
a.value,
|
|
@@ -74,91 +81,91 @@ const le = (t, e, o) => {
|
|
|
74
81
|
)
|
|
75
82
|
})) : [
|
|
76
83
|
{
|
|
77
|
-
label:
|
|
78
|
-
key:
|
|
79
|
-
size:
|
|
84
|
+
label: L("ap.apTable.setting.defaultTemplate"),
|
|
85
|
+
key: r.getActiveKey?.("DEFAULT_TEMPLATE") ?? N(),
|
|
86
|
+
size: s?.value,
|
|
80
87
|
columnState: f(a?.value || [])
|
|
81
88
|
}
|
|
82
89
|
];
|
|
83
90
|
}
|
|
84
|
-
function f(
|
|
85
|
-
const c =
|
|
91
|
+
function f(t, i = {}, l = !0) {
|
|
92
|
+
const c = E(
|
|
86
93
|
{},
|
|
87
|
-
|
|
94
|
+
l ? r.defaultValue || {} : {},
|
|
88
95
|
i,
|
|
89
|
-
|
|
96
|
+
_
|
|
90
97
|
);
|
|
91
|
-
function
|
|
92
|
-
return
|
|
93
|
-
const S =
|
|
98
|
+
function h(M, j, C) {
|
|
99
|
+
return M.map((u) => {
|
|
100
|
+
const S = j?.[u.key] || {}, p = {
|
|
94
101
|
key: u.key,
|
|
95
|
-
label:
|
|
102
|
+
label: U(u.title) ? q(
|
|
96
103
|
u,
|
|
97
|
-
|
|
104
|
+
O("table-header", "title"),
|
|
98
105
|
void 0,
|
|
99
|
-
|
|
106
|
+
B.value.colorTextTertiary
|
|
100
107
|
) : u.title,
|
|
101
108
|
show: !0,
|
|
102
|
-
fixed:
|
|
109
|
+
fixed: Q(
|
|
103
110
|
u,
|
|
104
111
|
i[u.key],
|
|
105
|
-
|
|
106
|
-
|
|
112
|
+
l ? r.defaultValue?.[u.key] : void 0,
|
|
113
|
+
C
|
|
107
114
|
),
|
|
108
115
|
disabled: !1,
|
|
109
|
-
...
|
|
116
|
+
...R(S, ["children", "fixed"])
|
|
110
117
|
};
|
|
111
|
-
return
|
|
118
|
+
return p.children = u.children?.length ? h(
|
|
112
119
|
u.children,
|
|
113
120
|
S.children,
|
|
114
|
-
|
|
115
|
-
) : void 0,
|
|
116
|
-
}).sort(
|
|
121
|
+
p
|
|
122
|
+
) : void 0, p;
|
|
123
|
+
}).sort(V);
|
|
117
124
|
}
|
|
118
|
-
return
|
|
125
|
+
return h(t || [], c);
|
|
119
126
|
}
|
|
120
|
-
function
|
|
121
|
-
if (
|
|
122
|
-
const i =
|
|
123
|
-
...
|
|
124
|
-
columnState:
|
|
127
|
+
function x(t) {
|
|
128
|
+
if (v(e)) {
|
|
129
|
+
const i = t.map((l) => ({
|
|
130
|
+
...l,
|
|
131
|
+
columnState: W(l.columnState)
|
|
125
132
|
}));
|
|
126
|
-
localStorage.setItem(
|
|
133
|
+
localStorage.setItem(v(e), JSON.stringify(i));
|
|
127
134
|
}
|
|
128
135
|
}
|
|
129
|
-
function
|
|
130
|
-
|
|
136
|
+
function F(t) {
|
|
137
|
+
n.value.push(t);
|
|
131
138
|
}
|
|
132
|
-
function
|
|
133
|
-
const i =
|
|
134
|
-
(
|
|
139
|
+
function w(t) {
|
|
140
|
+
const i = n.value.findIndex(
|
|
141
|
+
(l) => l.key === t
|
|
135
142
|
);
|
|
136
|
-
|
|
143
|
+
n.value.splice(i, 1);
|
|
137
144
|
}
|
|
138
|
-
function
|
|
139
|
-
const
|
|
140
|
-
(c) => c.key ===
|
|
145
|
+
function J(t, i) {
|
|
146
|
+
const l = n.value.findIndex(
|
|
147
|
+
(c) => c.key === t
|
|
141
148
|
);
|
|
142
|
-
return
|
|
143
|
-
...
|
|
149
|
+
return n.value[l] = {
|
|
150
|
+
...n.value[l],
|
|
144
151
|
...i
|
|
145
|
-
},
|
|
152
|
+
}, n.value[l];
|
|
146
153
|
}
|
|
147
|
-
return
|
|
148
|
-
() =>
|
|
149
|
-
(
|
|
150
|
-
|
|
154
|
+
return d(
|
|
155
|
+
() => n.value,
|
|
156
|
+
(t) => {
|
|
157
|
+
t.length && x(t);
|
|
151
158
|
},
|
|
152
159
|
{ deep: !0, immediate: !0 }
|
|
153
160
|
), {
|
|
154
|
-
basicTemplate:
|
|
155
|
-
customizeTemplateList:
|
|
156
|
-
syncTemplateListToStorage:
|
|
157
|
-
addTemplate:
|
|
158
|
-
deleteTemplate:
|
|
159
|
-
updateTemplate:
|
|
161
|
+
basicTemplate: m,
|
|
162
|
+
customizeTemplateList: n,
|
|
163
|
+
syncTemplateListToStorage: x,
|
|
164
|
+
addTemplate: F,
|
|
165
|
+
deleteTemplate: w,
|
|
166
|
+
updateTemplate: J
|
|
160
167
|
};
|
|
161
168
|
};
|
|
162
169
|
export {
|
|
163
|
-
|
|
170
|
+
ue as useTableTemplateStorage
|
|
164
171
|
};
|
|
@@ -147,7 +147,7 @@ function re(e, t, n, o) {
|
|
|
147
147
|
const r = n?.({
|
|
148
148
|
title: e.title,
|
|
149
149
|
column: e
|
|
150
|
-
}), i = r?.filter((l) => l.type !== Symbol.for("v-cmt")) || [];
|
|
150
|
+
}), i = r?.filter((l) => l.type !== /* @__PURE__ */ Symbol.for("v-cmt")) || [];
|
|
151
151
|
if (r && i.length > 0)
|
|
152
152
|
return r;
|
|
153
153
|
const p = N(e.title) ? s("span", {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { cloneDeep as A } from "lodash-unified";
|
|
2
2
|
import { ref as o, watch as r, defineComponent as h, provide as I, toRef as a, inject as y } from "vue";
|
|
3
|
-
const u = Symbol("ag-grid-provider-key");
|
|
3
|
+
const u = /* @__PURE__ */ Symbol("ag-grid-provider-key");
|
|
4
4
|
function L(n) {
|
|
5
5
|
const t = o(), c = o(), l = o(0), d = (e) => {
|
|
6
6
|
t.value = e;
|
|
@@ -3,8 +3,8 @@ import { ButtonType, ButtonShape, ButtonSize } from '@aplus-frontend/antdv/es/bu
|
|
|
3
3
|
import { ButtonHTMLType, ButtonIconPosition, ButtonVariantType } from '@aplus-frontend/antdv/es/button/buttonTypes';
|
|
4
4
|
import { VueTypeValidableDef } from '../../../node_modules/vue-types';
|
|
5
5
|
import { MouseEventHandler, FocusEventHandler } from '@aplus-frontend/antdv/es/_util/EventInterface';
|
|
6
|
-
import { ButtonProps, ItemType, MenuTheme, MenuMode, TableColumnsType } from '@aplus-frontend/antdv';
|
|
7
6
|
import { DropdownArrowOptions, Trigger, Align } from '@aplus-frontend/antdv/es/dropdown/props';
|
|
7
|
+
import { ItemType, MenuTheme, MenuMode, TableColumnsType, ButtonProps } from '@aplus-frontend/antdv';
|
|
8
8
|
import { Key } from '@aplus-frontend/antdv/es/_util/type';
|
|
9
9
|
import { CSSMotionProps } from '@aplus-frontend/antdv/es/_util/transition';
|
|
10
10
|
import { BuiltinPlacements, TriggerSubMenuAction, SelectEventHandler, MenuClickEventHandler, PopupRender } from '@aplus-frontend/antdv/es/menu/src/interface';
|
|
@@ -72,7 +72,7 @@ declare const ApBatchActionGroup: {
|
|
|
72
72
|
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
|
|
73
73
|
variant: PropType<ButtonVariantType>;
|
|
74
74
|
}>>, "type" | "onClick"> & {
|
|
75
|
-
type?:
|
|
75
|
+
type?: ( ButtonType | undefined) | "borderLink";
|
|
76
76
|
borderLinkColor?: string;
|
|
77
77
|
minWidth?: boolean | number | string;
|
|
78
78
|
lazy?: boolean | number;
|
|
@@ -394,7 +394,7 @@ declare const ApBatchActionGroup: {
|
|
|
394
394
|
color: PropType<"default" | "blue" | "cyan" | "gold" | "green" | "lime" | "magenta" | "orange" | "pink" | "purple" | "red" | "yellow" | "volcano" | "geekblue" | "danger" | "primary">;
|
|
395
395
|
variant: PropType<ButtonVariantType>;
|
|
396
396
|
}>>, "type" | "onClick"> & {
|
|
397
|
-
type?:
|
|
397
|
+
type?: ( ButtonType | undefined) | "borderLink";
|
|
398
398
|
borderLinkColor?: string;
|
|
399
399
|
minWidth?: boolean | number | string;
|
|
400
400
|
lazy?: boolean | number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { client as a } from "@aplus-frontend/oss";
|
|
2
|
-
const s = /* @__PURE__ */ new Map(), n = Symbol("ossInstance");
|
|
2
|
+
const s = /* @__PURE__ */ new Map(), n = /* @__PURE__ */ Symbol("ossInstance");
|
|
3
3
|
async function c(t, r) {
|
|
4
4
|
if (!t)
|
|
5
5
|
throw new Error("请传入getOssAccess");
|
|
@@ -225,9 +225,7 @@ const Ee = ["data-span", "data-index", "data-row", "data-col", "data-height", "d
|
|
|
225
225
|
},
|
|
226
226
|
getGridItems: () => JSON.parse(JSON.stringify(S.value)),
|
|
227
227
|
refreshGrid: () => {
|
|
228
|
-
(async () =>
|
|
229
|
-
await J();
|
|
230
|
-
})();
|
|
228
|
+
(async () => await J())();
|
|
231
229
|
}
|
|
232
230
|
}), (e, a) => (R(), ge(D(ye), { spinning: G.value }, {
|
|
233
231
|
default: me(() => [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApExpandAlertProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends Record<string, 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<{
|
|
5
5
|
readonly onClose?: ((args_0: MouseEvent) => any) | undefined;
|
|
@@ -24,9 +24,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
24
24
|
}): any;
|
|
25
25
|
};
|
|
26
26
|
emit: ((evt: "close", args_0: MouseEvent) => void) & ((evt: "expand", args_0: "collapse" | "expand") => void) & ((evt: "choose", args_0: T) => void);
|
|
27
|
-
}>) => VNode
|
|
28
|
-
[key: string]: any;
|
|
29
|
-
}> & {
|
|
27
|
+
}>) => VNode & {
|
|
30
28
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
31
29
|
};
|
|
32
30
|
export default _default;
|
|
@@ -4,7 +4,7 @@ const o = (r) => {
|
|
|
4
4
|
if (typeof e == "string") return;
|
|
5
5
|
const n = Array.isArray(e) ? e : null;
|
|
6
6
|
if (n)
|
|
7
|
-
return n.filter((t) => !["string", "number", "boolean"].includes(typeof t)).filter((t) => t && typeof t == "object" && "type" in t ? t.type != Symbol.for("v-cmt") : !1);
|
|
7
|
+
return n.filter((t) => !["string", "number", "boolean"].includes(typeof t)).filter((t) => t && typeof t == "object" && "type" in t ? t.type != /* @__PURE__ */ Symbol.for("v-cmt") : !1);
|
|
8
8
|
}, l = (r) => {
|
|
9
9
|
if (r) {
|
|
10
10
|
if (r.length > 1)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem } from './interface';
|
|
2
|
-
import { PublicProps, ShallowUnwrapRef, VNode,
|
|
2
|
+
import { PublicProps, ShallowUnwrapRef, VNode, Plugin } from 'vue';
|
|
3
3
|
export * from './interface';
|
|
4
4
|
declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
|
|
5
5
|
attrs: any;
|
|
@@ -38,9 +38,7 @@ declare const ApSelectLayout: (<T extends ApSelectItem>(__VLS_props: NonNullable
|
|
|
38
38
|
(event: "afterEnter", el: Element): void;
|
|
39
39
|
(event: "afterLeave", el: Element): void;
|
|
40
40
|
};
|
|
41
|
-
}>) => VNode
|
|
42
|
-
[key: string]: any;
|
|
43
|
-
}> & {
|
|
41
|
+
}>) => VNode & {
|
|
44
42
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
45
43
|
}) & ( Plugin & (new (...args: any[]) => {
|
|
46
44
|
$props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApSelectItem, ApSelectLayoutProps } from './interface';
|
|
2
|
-
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode
|
|
2
|
+
import { VNodeProps, AllowedComponentProps, ComponentCustomProps, PublicProps, ShallowUnwrapRef, VNode } from 'vue';
|
|
3
3
|
declare const _default: <T extends ApSelectItem>(__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<{
|
|
5
5
|
readonly onOnSelect?: ((value: T) => any) | undefined;
|
|
@@ -19,9 +19,7 @@ declare const _default: <T extends ApSelectItem>(__VLS_props: NonNullable<Awaite
|
|
|
19
19
|
(event: "afterEnter", el: Element): void;
|
|
20
20
|
(event: "afterLeave", el: Element): void;
|
|
21
21
|
};
|
|
22
|
-
}>) => VNode
|
|
23
|
-
[key: string]: any;
|
|
24
|
-
}> & {
|
|
22
|
+
}>) => VNode & {
|
|
25
23
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
26
24
|
};
|
|
27
25
|
export default _default;
|
|
@@ -4,9 +4,9 @@ import { CreateComponentPublicInstanceWithMixins, ComponentOptionsMixin, PublicP
|
|
|
4
4
|
import { ApTableModalProps, OpenOptions, OpenReturnType } from './interface';
|
|
5
5
|
import { Recordable } from '../../type';
|
|
6
6
|
import { TableColumnsType } from '@aplus-frontend/antdv';
|
|
7
|
-
import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
|
|
8
7
|
import { ApFormSearchFormPopoverSorterItem } from '../..';
|
|
9
8
|
import { MaskType } from '@aplus-frontend/antdv/es/_util/hooks/useMergedMask';
|
|
9
|
+
import { InternalPagingType } from '../../ap-table/hooks/use-table-paging-ng';
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
12
12
|
*/
|
|
@@ -44,8 +44,14 @@ declare const ApTableModal: {
|
|
|
44
44
|
};
|
|
45
45
|
y: undefined;
|
|
46
46
|
};
|
|
47
|
-
getPaging: () =>
|
|
48
|
-
|
|
47
|
+
getPaging: () => Partial<{
|
|
48
|
+
current: number;
|
|
49
|
+
pageSize: number;
|
|
50
|
+
}>;
|
|
51
|
+
setPaging: (nextPaging: Partial<{
|
|
52
|
+
current: number;
|
|
53
|
+
pageSize: number;
|
|
54
|
+
}>, refreshImmediately?: boolean) => void;
|
|
49
55
|
getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
|
|
50
56
|
setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
|
|
51
57
|
resetSearchFormSorterItems: () => void;
|
|
@@ -150,8 +156,14 @@ declare const ApTableModal: {
|
|
|
150
156
|
};
|
|
151
157
|
y: undefined;
|
|
152
158
|
};
|
|
153
|
-
getPaging: () =>
|
|
154
|
-
|
|
159
|
+
getPaging: () => Partial<{
|
|
160
|
+
current: number;
|
|
161
|
+
pageSize: number;
|
|
162
|
+
}>;
|
|
163
|
+
setPaging: (nextPaging: Partial<{
|
|
164
|
+
current: number;
|
|
165
|
+
pageSize: number;
|
|
166
|
+
}>, refreshImmediately?: boolean) => void;
|
|
155
167
|
getSearchFormSorterItems: () => ApFormSearchFormPopoverSorterItem[];
|
|
156
168
|
setSearchFormSorterItems: (sortedItems: ApFormSearchFormPopoverSorterItem[]) => void;
|
|
157
169
|
resetSearchFormSorterItems: () => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UploadFile, UploadChangeParam } from '@aplus-frontend/antdv';
|
|
2
2
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, GlobalComponents, GlobalDirectives } from 'vue';
|
|
3
|
-
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface,
|
|
3
|
+
import { UploadType, UploadFile, FileType, HttpRequestHeader, ShowUploadListInterface, UploadListType, UploadLocale, UploadListProgressProps, ItemRender } from '@aplus-frontend/antdv/es/upload/interface';
|
|
4
4
|
import { AcceptConfig, UploadRequestOption } from '@aplus-frontend/antdv/es/vc-upload/interface';
|
|
5
5
|
import { VueNode } from '@aplus-frontend/antdv/es/_util/type';
|
|
6
6
|
declare function setValue(val: (string | Record<string, any>)[]): void;
|