@aplus-frontend/ui 7.13.1 → 7.13.3
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/components/empty/index.vue.d.ts +4 -1
- package/es/src/ag-grid/components/empty/index.vue2.mjs +20 -10
- package/es/src/ag-grid/editable/form-item.vue.mjs +9 -8
- package/es/src/ag-grid/editable/index.vue.mjs +1 -0
- package/es/src/ag-grid/index.vue.mjs +54 -51
- package/es/src/ag-grid/interface.d.ts +4 -0
- package/es/src/ag-grid/style/index.mjs +5 -5
- package/es/src/ap-field/interface.d.ts +5 -0
- package/es/src/ap-field/select/index.vue.d.ts +2 -0
- package/es/src/ap-field/select/index.vue.mjs +150 -124
- package/es/src/ap-field/select/read.vue2.mjs +2 -1
- package/es/src/ap-field/select/use-select-options.mjs +12 -30
- package/es/src/ap-field/style/select.mjs +30 -19
- package/es/src/ap-form/items/select/index.vue.d.ts +12 -2
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +135 -128
- package/es/src/ap-table/constants.d.ts +6 -1
- package/es/src/business/ap-attachment/style/index.mjs +3 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -1
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +296 -161
- package/es/src/business/ap-export-group/index.d.ts +4 -1
- package/es/src/business/ap-export-group/interface.d.ts +31 -0
- package/es/src/business/ap-export-group/style/index.d.ts +5 -0
- package/es/src/business/ap-export-group/style/index.mjs +17 -0
- package/es/src/business/ap-file-preview/utils/create-file-preview-modal.mjs +3 -2
- package/es/src/business/ap-view/components/menu-list-content.vue2.mjs +21 -21
- package/es/src/business/ap-view/style/index.mjs +3 -2
- package/es/src/config-provider/config-provider-props.d.ts +7 -6
- package/es/src/config-provider/config-provider-props.mjs +4 -4
- package/es/src/config-provider/config-provider.d.ts +35 -11
- package/es/src/config-provider/config-provider.mjs +24 -24
- package/es/src/config-provider/hooks/use-global-config.d.ts +14 -6
- package/es/src/config-provider/index.d.ts +65 -17
- package/es/src/locale/lang/en.mjs +7 -3
- package/es/src/locale/lang/zh-cn.mjs +6 -2
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/components/empty/index.vue.d.ts +4 -1
- package/lib/src/ag-grid/components/empty/index.vue2.js +1 -1
- package/lib/src/ag-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ag-grid/editable/index.vue.js +1 -1
- package/lib/src/ag-grid/index.vue.js +1 -1
- package/lib/src/ag-grid/interface.d.ts +4 -0
- package/lib/src/ag-grid/style/index.js +1 -1
- package/lib/src/ap-field/interface.d.ts +5 -0
- package/lib/src/ap-field/select/index.vue.d.ts +2 -0
- package/lib/src/ap-field/select/index.vue.js +1 -1
- package/lib/src/ap-field/select/read.vue2.js +1 -1
- package/lib/src/ap-field/select/use-select-options.js +1 -1
- package/lib/src/ap-field/style/select.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +12 -2
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +6 -1
- package/lib/src/business/ap-attachment/style/index.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue.d.ts +2 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-export-group/index.d.ts +4 -1
- package/lib/src/business/ap-export-group/interface.d.ts +31 -0
- package/lib/src/business/ap-export-group/style/index.d.ts +5 -0
- package/lib/src/business/ap-export-group/style/index.js +1 -0
- package/lib/src/business/ap-file-preview/utils/create-file-preview-modal.js +1 -1
- package/lib/src/business/ap-view/components/menu-list-content.vue2.js +1 -1
- package/lib/src/business/ap-view/style/index.js +1 -1
- package/lib/src/config-provider/config-provider-props.d.ts +7 -6
- package/lib/src/config-provider/config-provider-props.js +1 -1
- package/lib/src/config-provider/config-provider.d.ts +35 -11
- package/lib/src/config-provider/config-provider.js +1 -1
- package/lib/src/config-provider/hooks/use-global-config.d.ts +14 -6
- package/lib/src/config-provider/index.d.ts +65 -17
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +3 -3
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as T, ref as y, watch as $, createElementBlock as
|
|
2
|
-
import { Space as C, Popconfirm as
|
|
3
|
-
import { ApField as
|
|
1
|
+
import { defineComponent as T, ref as y, watch as $, createElementBlock as m, openBlock as c, normalizeClass as V, unref as e, createElementVNode as o, createCommentVNode as f, toDisplayString as r, createVNode as i, withModifiers as b, withCtx as v } from "vue";
|
|
2
|
+
import { Space as C, Popconfirm as B } from "@aplus-frontend/antdv";
|
|
3
|
+
import { ApField as F } from "../../../ap-field/index.mjs";
|
|
4
4
|
import "../../../ap-form/ap-form.vue.mjs";
|
|
5
5
|
import "../../../config-provider/index.mjs";
|
|
6
|
-
import { useToken as
|
|
6
|
+
import { useToken as L } from "../../../config-provider/hooks/use-token.mjs";
|
|
7
7
|
import "../../ap-tag/index.mjs";
|
|
8
8
|
import { useViewInject as M } from "../hooks/use-view-provide.mjs";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import P from "../icons/line-delete.vue.mjs";
|
|
10
|
+
import Y from "../style/index.mjs";
|
|
11
11
|
import { SYSTEM_VIEW_KEY as h } from "../utils/enum.mjs";
|
|
12
|
-
import { useNamespace as
|
|
13
|
-
import { useLocale as
|
|
14
|
-
import
|
|
12
|
+
import { useNamespace as j } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
13
|
+
import { useLocale as A } from "../../../config-provider/hooks/use-locale.mjs";
|
|
14
|
+
import O from "../../ap-tag/ap-tag.vue.mjs";
|
|
15
15
|
import x from "../../../ap-form/ap-form.vue2.mjs";
|
|
16
16
|
const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
17
17
|
key: 0,
|
|
@@ -22,7 +22,7 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
22
22
|
view: {}
|
|
23
23
|
},
|
|
24
24
|
setup(N) {
|
|
25
|
-
const { b: s } =
|
|
25
|
+
const { b: s } = j("ap-view"), d = Y("ap-view"), { token: K } = L(), { t: n } = A(), t = N, {
|
|
26
26
|
currentViewKey: D,
|
|
27
27
|
changeCurrentViewKey: S,
|
|
28
28
|
viewListCRUD: p,
|
|
@@ -54,7 +54,7 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
54
54
|
(u) => {
|
|
55
55
|
u && (l.value = !1);
|
|
56
56
|
}
|
|
57
|
-
), (u, a) => l.value === !1 ? (
|
|
57
|
+
), (u, a) => l.value === !1 ? (c(), m("div", {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: V({
|
|
60
60
|
[e(s)()]: !0,
|
|
@@ -69,17 +69,17 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
69
69
|
title: t.view?.viewName
|
|
70
70
|
}, r(t.view?.viewName), 9, W)
|
|
71
71
|
]),
|
|
72
|
-
t.view?.viewKey !== e(h) && t.view?.isDefault ? (
|
|
73
|
-
i(e(
|
|
72
|
+
t.view?.viewKey !== e(h) && t.view?.isDefault ? (c(), m("div", q, [
|
|
73
|
+
i(e(O), {
|
|
74
74
|
text: e(n)("ap.apView.default"),
|
|
75
75
|
size: "small",
|
|
76
|
-
color: e(K).
|
|
76
|
+
color: e(K).colorPrimary
|
|
77
77
|
}, null, 8, ["text", "color"])
|
|
78
78
|
])) : f("", !0),
|
|
79
|
-
t.view?.viewKey !== e(h) ? (
|
|
79
|
+
t.view?.viewKey !== e(h) ? (c(), m("div", {
|
|
80
80
|
key: 1,
|
|
81
81
|
class: "menu-list-content-action",
|
|
82
|
-
onClick: a[1] || (a[1] =
|
|
82
|
+
onClick: a[1] || (a[1] = b(() => {
|
|
83
83
|
}, ["stop"]))
|
|
84
84
|
}, [
|
|
85
85
|
i(e(C), { size: 8 }, {
|
|
@@ -88,19 +88,19 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
88
88
|
class: "menu-list-content-action-text",
|
|
89
89
|
onClick: a[0] || (a[0] = (R) => l.value = !0)
|
|
90
90
|
}, r(e(n)("ap.apView.rename")), 1),
|
|
91
|
-
t.view?.isDefault ? f("", !0) : (
|
|
91
|
+
t.view?.isDefault ? f("", !0) : (c(), m("div", {
|
|
92
92
|
key: 0,
|
|
93
93
|
class: "menu-list-content-action-text",
|
|
94
94
|
onClick: E
|
|
95
95
|
}, r(e(n)("ap.apView.setDefault")), 1)),
|
|
96
96
|
o("div", G, [
|
|
97
|
-
i(e(
|
|
97
|
+
i(e(B), {
|
|
98
98
|
title: e(n)("ap.apView.deleteTip"),
|
|
99
99
|
"ok-text": e(n)("ap.apView.ok"),
|
|
100
100
|
onConfirm: z
|
|
101
101
|
}, {
|
|
102
102
|
default: v(() => [
|
|
103
|
-
i(
|
|
103
|
+
i(P)
|
|
104
104
|
]),
|
|
105
105
|
_: 1
|
|
106
106
|
}, 8, ["title", "ok-text"])
|
|
@@ -109,7 +109,7 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
109
109
|
_: 1
|
|
110
110
|
})
|
|
111
111
|
])) : f("", !0)
|
|
112
|
-
], 2)) : (
|
|
112
|
+
], 2)) : (c(), m("div", {
|
|
113
113
|
key: 1,
|
|
114
114
|
class: V([e(s)("menu-list-content"), e(s)("menu-list-content-edit"), e(d)])
|
|
115
115
|
}, [
|
|
@@ -126,7 +126,7 @@ const U = { class: "menu-list-content-name" }, W = ["title"], q = {
|
|
|
126
126
|
default: v(() => [
|
|
127
127
|
i(x.FormItem, { name: "viewName" }, {
|
|
128
128
|
default: v(() => [
|
|
129
|
-
i(e(
|
|
129
|
+
i(e(F).Text, { maxlength: 20 })
|
|
130
130
|
]),
|
|
131
131
|
_: 1
|
|
132
132
|
}),
|
|
@@ -93,7 +93,7 @@ const i = (e) => {
|
|
|
93
93
|
fontSize: e.fontSize,
|
|
94
94
|
display: "flex",
|
|
95
95
|
alignItems: "center",
|
|
96
|
-
color: e.
|
|
96
|
+
color: e.colorPrimary
|
|
97
97
|
},
|
|
98
98
|
"&-delete": {
|
|
99
99
|
cursor: "pointer",
|
|
@@ -130,8 +130,9 @@ const i = (e) => {
|
|
|
130
130
|
}
|
|
131
131
|
},
|
|
132
132
|
[`${t}-menu-list-content-active`]: {
|
|
133
|
+
background: `${e.calc(e.colorPrimary).colorMix(8)} !important`,
|
|
133
134
|
".menu-list-content-name": {
|
|
134
|
-
color: e.
|
|
135
|
+
color: e.colorPrimary
|
|
135
136
|
}
|
|
136
137
|
}
|
|
137
138
|
}
|
|
@@ -2,11 +2,11 @@ import { ExtractPropTypes, PropType } from 'vue';
|
|
|
2
2
|
import { ApFilePreviewProps } from '../business/ap-file-preview/interface';
|
|
3
3
|
import { AgGridProps } from '../ag-grid';
|
|
4
4
|
import { ApGridProps } from '../ap-grid';
|
|
5
|
-
import { ApImageProps, ApTitleProps, ViewCacheOption } from '../business';
|
|
5
|
+
import { ApExportGroupListItem, ApImageProps, ApTitleProps, ViewCacheOption } from '../business';
|
|
6
6
|
import { FullToken } from '../design-token/interface';
|
|
7
7
|
import { LocaleType } from '../locale/interface';
|
|
8
8
|
import { RecursivePartial } from '../type';
|
|
9
|
-
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig,
|
|
9
|
+
import { ApiType, ApUploadConfig, ApDescriptionsConfig, ValueTypeRenderConfig, downloadCenterTriggerConfig, SearchFormGlobalConfig, UiModeType } from './constants';
|
|
10
10
|
import { default as __DTS_DEFAULT_0__ } from '@aplus-frontend/antdv/es/config-provider/renderEmpty';
|
|
11
11
|
import { TransformCellTextProps } from '@aplus-frontend/antdv/es/table/interface';
|
|
12
12
|
import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
@@ -21,6 +21,7 @@ type ApProCardConfig = {
|
|
|
21
21
|
type ApImageConfig = Pick<ApImageProps, 'uiMode'>;
|
|
22
22
|
type ApTitleConfig = Pick<ApTitleProps, 'uiMode'>;
|
|
23
23
|
type ApFilePreviewConfig = Pick<ApFilePreviewProps, 'parserPlugin'>;
|
|
24
|
+
type ApExportGroupConfig = Pick<ApExportGroupListItem, 'dateValidate' | 'exportField'>;
|
|
24
25
|
export declare const configProviderProps: () => {
|
|
25
26
|
iconPrefixCls: StringConstructor;
|
|
26
27
|
getTargetContainer: {
|
|
@@ -212,6 +213,10 @@ export declare const configProviderProps: () => {
|
|
|
212
213
|
type: PropType<ApFilePreviewConfig>;
|
|
213
214
|
default: () => {};
|
|
214
215
|
};
|
|
216
|
+
apExportGroup: {
|
|
217
|
+
type: PropType<ApExportGroupConfig>;
|
|
218
|
+
default: () => {};
|
|
219
|
+
};
|
|
215
220
|
/**
|
|
216
221
|
* @description aplus-ui的locale
|
|
217
222
|
*/
|
|
@@ -245,10 +250,6 @@ export declare const configProviderProps: () => {
|
|
|
245
250
|
type: PropType<downloadCenterTriggerConfig>;
|
|
246
251
|
default: () => {};
|
|
247
252
|
};
|
|
248
|
-
exportField: {
|
|
249
|
-
type: PropType<ExportField>;
|
|
250
|
-
default: boolean;
|
|
251
|
-
};
|
|
252
253
|
scrollYDomName: {
|
|
253
254
|
type: StringConstructor;
|
|
254
255
|
};
|
|
@@ -30,6 +30,10 @@ const t = () => ({
|
|
|
30
30
|
apFilePreview: {
|
|
31
31
|
type: Object,
|
|
32
32
|
default: () => ({})
|
|
33
|
+
},
|
|
34
|
+
apExportGroup: {
|
|
35
|
+
type: Object,
|
|
36
|
+
default: () => ({})
|
|
33
37
|
}
|
|
34
38
|
}), a = () => ({
|
|
35
39
|
/**
|
|
@@ -65,10 +69,6 @@ const t = () => ({
|
|
|
65
69
|
type: Object,
|
|
66
70
|
default: () => ({})
|
|
67
71
|
},
|
|
68
|
-
exportField: {
|
|
69
|
-
type: [Object, Boolean],
|
|
70
|
-
default: !1
|
|
71
|
-
},
|
|
72
72
|
scrollYDomName: {
|
|
73
73
|
type: String
|
|
74
74
|
},
|
|
@@ -6,8 +6,8 @@ import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
|
6
6
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
7
7
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
8
8
|
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
9
|
-
import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
|
|
10
|
-
import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig
|
|
9
|
+
import { ApGridRowSelection, AgGridRowSelection, ApExportGroupDateValidate, FullToken, ViewCacheOption } from '..';
|
|
10
|
+
import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
|
|
11
11
|
import { ApFilePreviewParser } from '../business/ap-file-preview/interface';
|
|
12
12
|
import { LocaleType } from '../locale';
|
|
13
13
|
import { RecursivePartial } from '../type';
|
|
@@ -215,6 +215,18 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
215
215
|
}>;
|
|
216
216
|
default: () => {};
|
|
217
217
|
};
|
|
218
|
+
apExportGroup: {
|
|
219
|
+
type: PropType<{
|
|
220
|
+
dateValidate?: ApExportGroupDateValidate | undefined;
|
|
221
|
+
exportField?: boolean | {
|
|
222
|
+
key?: string;
|
|
223
|
+
convertField?: {
|
|
224
|
+
[key: string]: string[];
|
|
225
|
+
};
|
|
226
|
+
} | undefined;
|
|
227
|
+
}>;
|
|
228
|
+
default: () => {};
|
|
229
|
+
};
|
|
218
230
|
aplusLocale: {
|
|
219
231
|
type: PropType<LocaleType>;
|
|
220
232
|
};
|
|
@@ -239,10 +251,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
239
251
|
type: PropType<downloadCenterTriggerConfig>;
|
|
240
252
|
default: () => {};
|
|
241
253
|
};
|
|
242
|
-
exportField: {
|
|
243
|
-
type: PropType<ExportField>;
|
|
244
|
-
default: boolean;
|
|
245
|
-
};
|
|
246
254
|
scrollYDomName: {
|
|
247
255
|
type: StringConstructor;
|
|
248
256
|
};
|
|
@@ -453,6 +461,18 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
453
461
|
}>;
|
|
454
462
|
default: () => {};
|
|
455
463
|
};
|
|
464
|
+
apExportGroup: {
|
|
465
|
+
type: PropType<{
|
|
466
|
+
dateValidate?: ApExportGroupDateValidate | undefined;
|
|
467
|
+
exportField?: boolean | {
|
|
468
|
+
key?: string;
|
|
469
|
+
convertField?: {
|
|
470
|
+
[key: string]: string[];
|
|
471
|
+
};
|
|
472
|
+
} | undefined;
|
|
473
|
+
}>;
|
|
474
|
+
default: () => {};
|
|
475
|
+
};
|
|
456
476
|
aplusLocale: {
|
|
457
477
|
type: PropType<LocaleType>;
|
|
458
478
|
};
|
|
@@ -477,10 +497,6 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
477
497
|
type: PropType<downloadCenterTriggerConfig>;
|
|
478
498
|
default: () => {};
|
|
479
499
|
};
|
|
480
|
-
exportField: {
|
|
481
|
-
type: PropType<ExportField>;
|
|
482
|
-
default: boolean;
|
|
483
|
-
};
|
|
484
500
|
scrollYDomName: {
|
|
485
501
|
type: StringConstructor;
|
|
486
502
|
};
|
|
@@ -532,10 +548,18 @@ export declare const ConfigProvider: DefineComponent<ExtractPropTypes<{
|
|
|
532
548
|
apFilePreview: {
|
|
533
549
|
parserPlugin?: ApFilePreviewParser[] | undefined;
|
|
534
550
|
};
|
|
551
|
+
apExportGroup: {
|
|
552
|
+
dateValidate?: ApExportGroupDateValidate | undefined;
|
|
553
|
+
exportField?: boolean | {
|
|
554
|
+
key?: string;
|
|
555
|
+
convertField?: {
|
|
556
|
+
[key: string]: string[];
|
|
557
|
+
};
|
|
558
|
+
} | undefined;
|
|
559
|
+
};
|
|
535
560
|
api: ApiType;
|
|
536
561
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
537
562
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
538
|
-
exportField: ExportField;
|
|
539
563
|
viewCacheOption: ViewCacheOption;
|
|
540
564
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
541
565
|
export type ConfigProviderInstance = InstanceType<typeof ConfigProvider>;
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import { isVNode as f, ref as s, defineComponent as v, computed as n, watch as C, onActivated as P, createVNode as h, renderSlot as T } from "vue";
|
|
2
2
|
import { ConfigProvider as w } from "@aplus-frontend/antdv";
|
|
3
3
|
import { merge as b, cloneDeep as A } from "lodash-unified";
|
|
4
|
-
import { useDevWarning as
|
|
5
|
-
import { mergeAntdProviderConfigWithCache as l, mergeAntdProvideConfig as
|
|
4
|
+
import { useDevWarning as G } from "../utils/warning.mjs";
|
|
5
|
+
import { mergeAntdProviderConfigWithCache as l, mergeAntdProvideConfig as p } from "../utils/config-provider-preset.mjs";
|
|
6
6
|
import { configProviderProps as D } from "./config-provider-props.mjs";
|
|
7
|
-
import { DEFAULT_NAMESPACE as
|
|
8
|
-
import { useGlobalConfig as k, provideGlobalConfig as
|
|
9
|
-
function
|
|
7
|
+
import { DEFAULT_NAMESPACE as F } from "./constants.mjs";
|
|
8
|
+
import { useGlobalConfig as k, provideGlobalConfig as E } from "./hooks/use-global-config.mjs";
|
|
9
|
+
function M(e) {
|
|
10
10
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !f(e);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const a = s({}), _ = /* @__PURE__ */ v({
|
|
13
13
|
name: "AplusConfigProvider",
|
|
14
14
|
props: D(),
|
|
15
15
|
setup(e, {
|
|
16
|
-
slots:
|
|
16
|
+
slots: u
|
|
17
17
|
}) {
|
|
18
|
-
|
|
19
|
-
function o(
|
|
20
|
-
return e[
|
|
18
|
+
G("ConfigProvider")(!e.uiMode, "breaking", "uiMode has been remove, see migrate guild https://aplus.aplnk.com/aplus-ui/guild/migrate-7.2.html");
|
|
19
|
+
function o(r, c) {
|
|
20
|
+
return e[r] ?? i.value?.[r] ?? c;
|
|
21
21
|
}
|
|
22
|
-
const
|
|
23
|
-
namespace: o("namespace",
|
|
22
|
+
const i = k(), g = n(() => b(A(i.value?.aplusToken || {}), e.aplusToken)), m = n(() => ({
|
|
23
|
+
namespace: o("namespace", F),
|
|
24
24
|
apGrid: o("apGrid"),
|
|
25
25
|
agGrid: o("agGrid"),
|
|
26
26
|
apProCard: o("apProCard"),
|
|
@@ -30,18 +30,18 @@ const i = s({}), _ = /* @__PURE__ */ v({
|
|
|
30
30
|
apUpload: o("apUpload"),
|
|
31
31
|
apDescriptions: o("apDescriptions"),
|
|
32
32
|
apFilePreview: o("apFilePreview"),
|
|
33
|
+
apExportGroup: o("apExportGroup"),
|
|
33
34
|
aplusLocale: e.aplusLocale,
|
|
34
|
-
aplusToken:
|
|
35
|
+
aplusToken: g.value,
|
|
35
36
|
api: e.api,
|
|
36
37
|
valueTypeMap: e.valueTypeMap,
|
|
37
38
|
downloadCenterTriggerConfig: e.downloadCenterTriggerConfig,
|
|
38
|
-
exportField: e.exportField,
|
|
39
39
|
scrollYDomName: e.scrollYDomName,
|
|
40
40
|
viewCacheOption: e.viewCacheOption
|
|
41
|
-
})),
|
|
41
|
+
})), d = E(m);
|
|
42
42
|
let t = !0;
|
|
43
|
-
return C(() => e, (
|
|
44
|
-
|
|
43
|
+
return C(() => e, (r) => {
|
|
44
|
+
a.value = l(p(r), a.value);
|
|
45
45
|
}, {
|
|
46
46
|
deep: !0,
|
|
47
47
|
immediate: !0
|
|
@@ -50,18 +50,18 @@ const i = s({}), _ = /* @__PURE__ */ v({
|
|
|
50
50
|
t = !1;
|
|
51
51
|
return;
|
|
52
52
|
}
|
|
53
|
-
|
|
53
|
+
a.value = l(p(e), a.value);
|
|
54
54
|
}), () => {
|
|
55
|
-
let
|
|
56
|
-
return h(w,
|
|
57
|
-
config:
|
|
58
|
-
})) ?
|
|
59
|
-
default: () => [
|
|
55
|
+
let r;
|
|
56
|
+
return h(w, a.value, M(r = T(u, "default", {
|
|
57
|
+
config: d?.value
|
|
58
|
+
})) ? r : {
|
|
59
|
+
default: () => [r]
|
|
60
60
|
});
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
export {
|
|
65
65
|
_ as ConfigProvider,
|
|
66
|
-
|
|
66
|
+
a as globalConfigCached
|
|
67
67
|
};
|
|
@@ -7,8 +7,8 @@ import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
|
7
7
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
8
8
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
9
9
|
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
10
|
-
import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '../..';
|
|
11
|
-
import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig
|
|
10
|
+
import { ApGridRowSelection, AgGridRowSelection, ApExportGroupDateValidate, FullToken, ViewCacheOption } from '../..';
|
|
11
|
+
import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig } from '..';
|
|
12
12
|
import { ApFilePreviewParser } from '../../business/ap-file-preview/interface';
|
|
13
13
|
import { LocaleType } from '../../locale';
|
|
14
14
|
import { RecursivePartial } from '../../type';
|
|
@@ -218,6 +218,18 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
218
218
|
}>;
|
|
219
219
|
default: () => {};
|
|
220
220
|
};
|
|
221
|
+
apExportGroup: {
|
|
222
|
+
type: PropType<{
|
|
223
|
+
dateValidate?: ApExportGroupDateValidate | undefined;
|
|
224
|
+
exportField?: boolean | {
|
|
225
|
+
key?: string;
|
|
226
|
+
convertField?: {
|
|
227
|
+
[key: string]: string[];
|
|
228
|
+
};
|
|
229
|
+
} | undefined;
|
|
230
|
+
}>;
|
|
231
|
+
default: () => {};
|
|
232
|
+
};
|
|
221
233
|
aplusLocale: {
|
|
222
234
|
type: PropType<LocaleType>;
|
|
223
235
|
};
|
|
@@ -242,10 +254,6 @@ export declare const provideGlobalConfig: (config: MaybeRef<ConfigProviderContex
|
|
|
242
254
|
type: PropType<downloadCenterTriggerConfig>;
|
|
243
255
|
default: () => {};
|
|
244
256
|
};
|
|
245
|
-
exportField: {
|
|
246
|
-
type: PropType<ExportField>;
|
|
247
|
-
default: boolean;
|
|
248
|
-
};
|
|
249
257
|
scrollYDomName: {
|
|
250
258
|
type: StringConstructor;
|
|
251
259
|
};
|
|
@@ -5,8 +5,8 @@ import { CSPConfig } from '@aplus-frontend/antdv/es/config-provider';
|
|
|
5
5
|
import { Locale } from '@aplus-frontend/antdv/es/locale';
|
|
6
6
|
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
7
7
|
import { ThemeConfig, InputConfig, PaginationConfig, FormConfig, SelectConfig, CascaderConfig, DatePickerConfig, RangePickerConfig, TreeSelectConfig, TextAreaConfig, InputNumberConfig, MentionsConfig, TimePickerConfig, CardConfig, TableConfig, TooltipConfig, PopoverConfig, PopconfirmConfig, ModalConfig, DrawerConfig, ImageConfig } from '@aplus-frontend/antdv/es/config-provider/context';
|
|
8
|
-
import { ApGridRowSelection, AgGridRowSelection, FullToken, ViewCacheOption } from '..';
|
|
9
|
-
import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig
|
|
8
|
+
import { ApGridRowSelection, AgGridRowSelection, ApExportGroupDateValidate, FullToken, ViewCacheOption } from '..';
|
|
9
|
+
import { UiModeType, SearchFormGlobalConfig, ApUploadConfig, ApDescriptionsConfig, ApiType, ValueTypeRenderConfig, downloadCenterTriggerConfig } from './constants';
|
|
10
10
|
import { ApFilePreviewParser } from '../business/ap-file-preview/interface';
|
|
11
11
|
import { LocaleType } from '../locale';
|
|
12
12
|
import { RecursivePartial } from '../type';
|
|
@@ -220,6 +220,18 @@ export declare const APConfigProvider: {
|
|
|
220
220
|
}>;
|
|
221
221
|
default: () => {};
|
|
222
222
|
};
|
|
223
|
+
apExportGroup: {
|
|
224
|
+
type: PropType<{
|
|
225
|
+
dateValidate?: ApExportGroupDateValidate | undefined;
|
|
226
|
+
exportField?: boolean | {
|
|
227
|
+
key?: string;
|
|
228
|
+
convertField?: {
|
|
229
|
+
[key: string]: string[];
|
|
230
|
+
};
|
|
231
|
+
} | undefined;
|
|
232
|
+
}>;
|
|
233
|
+
default: () => {};
|
|
234
|
+
};
|
|
223
235
|
aplusLocale: {
|
|
224
236
|
type: PropType<LocaleType>;
|
|
225
237
|
};
|
|
@@ -244,10 +256,6 @@ export declare const APConfigProvider: {
|
|
|
244
256
|
type: PropType<downloadCenterTriggerConfig>;
|
|
245
257
|
default: () => {};
|
|
246
258
|
};
|
|
247
|
-
exportField: {
|
|
248
|
-
type: PropType<ExportField>;
|
|
249
|
-
default: boolean;
|
|
250
|
-
};
|
|
251
259
|
scrollYDomName: {
|
|
252
260
|
type: StringConstructor;
|
|
253
261
|
};
|
|
@@ -299,10 +307,18 @@ export declare const APConfigProvider: {
|
|
|
299
307
|
apFilePreview: {
|
|
300
308
|
parserPlugin?: ApFilePreviewParser[] | undefined;
|
|
301
309
|
};
|
|
310
|
+
apExportGroup: {
|
|
311
|
+
dateValidate?: ApExportGroupDateValidate | undefined;
|
|
312
|
+
exportField?: boolean | {
|
|
313
|
+
key?: string;
|
|
314
|
+
convertField?: {
|
|
315
|
+
[key: string]: string[];
|
|
316
|
+
};
|
|
317
|
+
} | undefined;
|
|
318
|
+
};
|
|
302
319
|
api: ApiType;
|
|
303
320
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
304
321
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
305
|
-
exportField: ExportField;
|
|
306
322
|
viewCacheOption: ViewCacheOption;
|
|
307
323
|
}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
308
324
|
P: {};
|
|
@@ -514,6 +530,18 @@ export declare const APConfigProvider: {
|
|
|
514
530
|
}>;
|
|
515
531
|
default: () => {};
|
|
516
532
|
};
|
|
533
|
+
apExportGroup: {
|
|
534
|
+
type: PropType<{
|
|
535
|
+
dateValidate?: ApExportGroupDateValidate | undefined;
|
|
536
|
+
exportField?: boolean | {
|
|
537
|
+
key?: string;
|
|
538
|
+
convertField?: {
|
|
539
|
+
[key: string]: string[];
|
|
540
|
+
};
|
|
541
|
+
} | undefined;
|
|
542
|
+
}>;
|
|
543
|
+
default: () => {};
|
|
544
|
+
};
|
|
517
545
|
aplusLocale: {
|
|
518
546
|
type: PropType<LocaleType>;
|
|
519
547
|
};
|
|
@@ -538,10 +566,6 @@ export declare const APConfigProvider: {
|
|
|
538
566
|
type: PropType<downloadCenterTriggerConfig>;
|
|
539
567
|
default: () => {};
|
|
540
568
|
};
|
|
541
|
-
exportField: {
|
|
542
|
-
type: PropType<ExportField>;
|
|
543
|
-
default: boolean;
|
|
544
|
-
};
|
|
545
569
|
scrollYDomName: {
|
|
546
570
|
type: StringConstructor;
|
|
547
571
|
};
|
|
@@ -593,10 +617,18 @@ export declare const APConfigProvider: {
|
|
|
593
617
|
apFilePreview: {
|
|
594
618
|
parserPlugin?: ApFilePreviewParser[] | undefined;
|
|
595
619
|
};
|
|
620
|
+
apExportGroup: {
|
|
621
|
+
dateValidate?: ApExportGroupDateValidate | undefined;
|
|
622
|
+
exportField?: boolean | {
|
|
623
|
+
key?: string;
|
|
624
|
+
convertField?: {
|
|
625
|
+
[key: string]: string[];
|
|
626
|
+
};
|
|
627
|
+
} | undefined;
|
|
628
|
+
};
|
|
596
629
|
api: ApiType;
|
|
597
630
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
598
631
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
599
|
-
exportField: ExportField;
|
|
600
632
|
viewCacheOption: ViewCacheOption;
|
|
601
633
|
}>;
|
|
602
634
|
__isFragment?: never;
|
|
@@ -805,6 +837,18 @@ export declare const APConfigProvider: {
|
|
|
805
837
|
}>;
|
|
806
838
|
default: () => {};
|
|
807
839
|
};
|
|
840
|
+
apExportGroup: {
|
|
841
|
+
type: PropType<{
|
|
842
|
+
dateValidate?: ApExportGroupDateValidate | undefined;
|
|
843
|
+
exportField?: boolean | {
|
|
844
|
+
key?: string;
|
|
845
|
+
convertField?: {
|
|
846
|
+
[key: string]: string[];
|
|
847
|
+
};
|
|
848
|
+
} | undefined;
|
|
849
|
+
}>;
|
|
850
|
+
default: () => {};
|
|
851
|
+
};
|
|
808
852
|
aplusLocale: {
|
|
809
853
|
type: PropType<LocaleType>;
|
|
810
854
|
};
|
|
@@ -829,10 +873,6 @@ export declare const APConfigProvider: {
|
|
|
829
873
|
type: PropType<downloadCenterTriggerConfig>;
|
|
830
874
|
default: () => {};
|
|
831
875
|
};
|
|
832
|
-
exportField: {
|
|
833
|
-
type: PropType<ExportField>;
|
|
834
|
-
default: boolean;
|
|
835
|
-
};
|
|
836
876
|
scrollYDomName: {
|
|
837
877
|
type: StringConstructor;
|
|
838
878
|
};
|
|
@@ -884,10 +924,18 @@ export declare const APConfigProvider: {
|
|
|
884
924
|
apFilePreview: {
|
|
885
925
|
parserPlugin?: ApFilePreviewParser[] | undefined;
|
|
886
926
|
};
|
|
927
|
+
apExportGroup: {
|
|
928
|
+
dateValidate?: ApExportGroupDateValidate | undefined;
|
|
929
|
+
exportField?: boolean | {
|
|
930
|
+
key?: string;
|
|
931
|
+
convertField?: {
|
|
932
|
+
[key: string]: string[];
|
|
933
|
+
};
|
|
934
|
+
} | undefined;
|
|
935
|
+
};
|
|
887
936
|
api: ApiType;
|
|
888
937
|
valueTypeMap: Record<string, ValueTypeRenderConfig>;
|
|
889
938
|
downloadCenterTriggerConfig: downloadCenterTriggerConfig;
|
|
890
|
-
exportField: ExportField;
|
|
891
939
|
viewCacheOption: ViewCacheOption;
|
|
892
940
|
}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & ( Plugin & (new (...args: any[]) => {
|
|
893
941
|
$props: {
|
|
@@ -31,7 +31,8 @@ const a = {
|
|
|
31
31
|
thisYear: "This year",
|
|
32
32
|
lastYear: "Last year",
|
|
33
33
|
lastXDays: "Last {day} days",
|
|
34
|
-
chooseOnly: "Select only"
|
|
34
|
+
chooseOnly: "Select only",
|
|
35
|
+
selectAll: "Select All"
|
|
35
36
|
},
|
|
36
37
|
apForm: {
|
|
37
38
|
search: {
|
|
@@ -105,7 +106,10 @@ const a = {
|
|
|
105
106
|
exportSelected: "Export selected",
|
|
106
107
|
exportAll: "Export all",
|
|
107
108
|
export: "Export",
|
|
108
|
-
exportSuccess: "The task has been submitted,please go to the download center to check the progress"
|
|
109
|
+
exportSuccess: "The task has been submitted,please go to the download center to check the progress",
|
|
110
|
+
emptyTooltip: "You queried a long time span, this time you have exported the data for the last {maxDayRange} days",
|
|
111
|
+
maxDayRangeTooltip: "Exceeding the {maxDayRange}-day data range! It has been automatically adjusted to data within {maxDayRange} days from the start time. For longer periods, please export in segments",
|
|
112
|
+
maxMessage: "You can export up to {maxDayRange} days of data"
|
|
109
113
|
},
|
|
110
114
|
apBatchAction: {
|
|
111
115
|
selected: "Selected",
|
|
@@ -170,7 +174,7 @@ const a = {
|
|
|
170
174
|
systemView: "System view",
|
|
171
175
|
saveView: "Save view",
|
|
172
176
|
maxTip: "The maximum number of views that can be saved has been reached. Please delete them before saving a new view",
|
|
173
|
-
saveNewView: "Save as new
|
|
177
|
+
saveNewView: "Save as new view",
|
|
174
178
|
newView: "New view",
|
|
175
179
|
setDefault: "Default",
|
|
176
180
|
viewName: "View name",
|
|
@@ -31,7 +31,8 @@ const a = {
|
|
|
31
31
|
thisYear: "今年",
|
|
32
32
|
lastYear: "去年",
|
|
33
33
|
lastXDays: "近{day}天",
|
|
34
|
-
chooseOnly: "仅选此项"
|
|
34
|
+
chooseOnly: "仅选此项",
|
|
35
|
+
selectAll: "全选"
|
|
35
36
|
},
|
|
36
37
|
modal: {
|
|
37
38
|
restore: "还原",
|
|
@@ -114,7 +115,10 @@ const a = {
|
|
|
114
115
|
exportSelected: "导出所选",
|
|
115
116
|
exportAll: "导出全部",
|
|
116
117
|
export: "导出",
|
|
117
|
-
exportSuccess: "任务已提交,前往下载中心查看进度"
|
|
118
|
+
exportSuccess: "任务已提交,前往下载中心查看进度",
|
|
119
|
+
emptyTooltip: "您查询的时间跨度较长,本次已为您导出最近{maxDayRange}天的数据",
|
|
120
|
+
maxDayRangeTooltip: "超出{maxDayRange}天数据范围!已自动调整为开始时间起{maxDayRange}天内的数据,如需更长周期请分段导出",
|
|
121
|
+
maxMessage: "最多可导{maxDayRange}天数据"
|
|
118
122
|
},
|
|
119
123
|
apBatchAction: {
|
|
120
124
|
selected: "已选",
|
package/es/src/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "7.13.
|
|
1
|
+
declare const _default: "7.13.3";
|
|
2
2
|
export default _default;
|
package/es/src/version.mjs
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
-
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
params: any;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
3
6
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),r=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const t=require("../../../config-provider/hooks/use-namespace.js"),a=e.defineComponent({__name:"index",props:{params:{}},setup(s){const{b:o}=t.useNamespace("ag-grid");return(n,p)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(o)("empty"))},[n.params.emptyComponent?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.params.emptyComponent),{key:0})):(e.openBlock(),e.createBlock(e.unref(r.Empty),{key:1,image:e.unref(r.Empty).PRESENTED_IMAGE_SIMPLE,description:n.params.emptyText},null,8,["image","description"]))],2))}});exports.default=a;
|