@aplus-frontend/ui 7.13.6 → 7.13.8
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/body-cell/index.vue2.mjs +7 -7
- package/es/src/ag-grid/components/empty/index.vue2.mjs +10 -10
- package/es/src/ag-grid/components/header-cell/index.vue2.mjs +37 -37
- package/es/src/ag-grid/components/row/index.vue2.mjs +5 -5
- package/es/src/ag-grid/components/tooltip/index.vue2.mjs +12 -12
- package/es/src/ag-grid/editable/form-item.vue.mjs +49 -49
- package/es/src/ag-grid/editable/index.vue.mjs +27 -27
- package/es/src/ag-grid/index.vue.mjs +249 -249
- package/es/src/ap-action/group/index.vue.mjs +15 -15
- package/es/src/ap-action/item/index.vue2.mjs +28 -28
- package/es/src/ap-action/item-dropdown/index.vue.mjs +39 -39
- package/es/src/ap-field/checkbox/index.vue.mjs +19 -19
- package/es/src/ap-field/checkbox/read.vue2.mjs +9 -9
- package/es/src/ap-field/date/index.vue.mjs +50 -50
- package/es/src/ap-field/date/read.vue2.mjs +7 -7
- package/es/src/ap-field/date-range/index.vue.mjs +30 -30
- package/es/src/ap-field/date-range/read.vue2.mjs +20 -20
- package/es/src/ap-field/number/index.vue.mjs +24 -24
- package/es/src/ap-field/radio/index.vue.mjs +24 -24
- package/es/src/ap-field/second/index.vue.mjs +15 -15
- package/es/src/ap-field/second/read.vue2.mjs +7 -7
- package/es/src/ap-field/segmented/index.vue.mjs +24 -24
- package/es/src/ap-field/select/index.vue.d.ts +1 -1
- package/es/src/ap-field/select/index.vue.mjs +246 -206
- package/es/src/ap-field/select/read.vue2.mjs +6 -6
- package/es/src/ap-field/slider/index.vue.mjs +11 -11
- package/es/src/ap-field/style/select.mjs +17 -4
- package/es/src/ap-field/switch/index.vue.mjs +45 -45
- package/es/src/ap-field/text/read-password.vue2.mjs +13 -13
- package/es/src/ap-field/text/read.vue2.mjs +3 -3
- package/es/src/ap-field/text-area/index.vue.mjs +29 -29
- package/es/src/ap-field/text-area/read.vue2.mjs +12 -12
- package/es/src/ap-field/tree-select/index.vue.mjs +31 -31
- package/es/src/ap-form/ap-form.vue2.mjs +46 -46
- package/es/src/ap-form/drawer-form/index.vue.mjs +30 -30
- package/es/src/ap-form/item/index.vue.mjs +75 -75
- package/es/src/ap-form/items/checkbox/index.vue.mjs +10 -10
- package/es/src/ap-form/items/number/index.vue.mjs +17 -17
- package/es/src/ap-form/items/radio/index.vue.mjs +13 -13
- package/es/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/es/src/ap-form/items/switch/index.vue.mjs +14 -14
- package/es/src/ap-form/items/text/index.vue2.mjs +26 -26
- package/es/src/ap-form/items/text/password.vue.mjs +19 -19
- package/es/src/ap-form/items/text-area/index.vue.mjs +17 -17
- package/es/src/ap-form/modal-form/index.vue.mjs +34 -34
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +39 -39
- package/es/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.mjs +7 -7
- package/es/src/ap-grid/editable/form-item.vue.mjs +46 -46
- package/es/src/ap-grid/editable/index.vue.mjs +19 -19
- package/es/src/ap-grid/index.vue.mjs +212 -212
- package/es/src/ap-list/index.vue.mjs +116 -116
- package/es/src/ap-table/ap-table.vue2.mjs +217 -217
- package/es/src/ap-table/components/index/index.vue2.mjs +9 -9
- package/es/src/ap-table/components/setting/modal/index.vue2.mjs +42 -42
- package/es/src/ap-table/components/setting/select-group/index.vue2.mjs +21 -21
- package/es/src/ap-table/components/setting/sortable/index.vue2.mjs +15 -15
- package/es/src/ap-table/components/setting/sortable/item.vue2.mjs +69 -69
- package/es/src/ap-table/components/setting/template/edit-form.vue2.mjs +22 -22
- package/es/src/ap-table/components/setting/template/index.vue2.mjs +25 -25
- package/es/src/ap-table/components/setting/template/item.vue2.mjs +40 -40
- package/es/src/ap-table/components/setting/tree-select/index.vue2.mjs +13 -13
- package/es/src/ap-table/constants.d.ts +2 -2
- package/es/src/business/ag-grid-modal/modal-layout/index.vue2.mjs +54 -54
- package/es/src/business/ag-grid-modal/selected-items/default.vue2.mjs +13 -13
- package/es/src/business/ag-grid-modal/wrapper/index.vue2.mjs +20 -20
- package/es/src/business/ap-descriptions/ap-descriptions.vue.mjs +33 -33
- package/es/src/business/ap-descriptions/help-message/index.vue2.mjs +13 -13
- package/es/src/business/ap-download/ap-download.vue.mjs +24 -24
- package/es/src/business/ap-expand-alert/ApExpandAlert.vue.mjs +77 -77
- package/es/src/business/ap-export-group/ApExportGroup.vue2.mjs +168 -157
- package/es/src/business/ap-radio-group/ap-radio-group.vue2.mjs +33 -33
- package/es/src/business/ap-status/group/ApStatusGroup.vue2.mjs +12 -12
- package/es/src/business/ap-table-modal/table-layout/index.vue2.mjs +43 -43
- package/es/src/business/ap-table-modal/table-modal.vue2.mjs +57 -57
- package/es/src/business/ap-tag/ap-tag-group.vue.mjs +37 -37
- package/es/src/business/ap-tag/ap-tag.vue.mjs +24 -24
- package/es/src/business/ap-title/ApTitle.vue2.mjs +27 -27
- package/es/src/business/ap-value-select-card/index.vue2.mjs +98 -98
- package/es/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/es/src/business/batch-input-group/form-item.vue.mjs +25 -25
- package/es/src/business/batch-input-group/index.vue.mjs +60 -60
- package/es/src/business/batch-input-group/popover-input/index.vue2.mjs +29 -29
- package/es/src/editable-table/form-item.vue.mjs +35 -35
- package/es/src/editable-table/index.vue.mjs +19 -19
- package/es/src/full-screen/index.vue.mjs +46 -46
- package/es/src/mask/index.vue.mjs +48 -48
- package/es/src/portal/index.vue.mjs +5 -5
- package/es/src/scroll-bar/internal.vue.mjs +62 -62
- package/es/src/scroll-view/index.vue.mjs +66 -66
- package/es/src/skeleton/components/desc/index.vue2.mjs +9 -9
- package/es/src/skeleton/components/desc/item-large.vue2.mjs +25 -25
- package/es/src/skeleton/components/desc/item.vue2.mjs +13 -13
- package/es/src/skeleton/components/list/index.vue2.mjs +14 -14
- package/es/src/skeleton/components/list/item.vue2.mjs +12 -12
- package/es/src/skeleton/components/page-header/index.vue2.mjs +8 -8
- package/es/src/skeleton/components/search-form/index.vue2.mjs +35 -35
- package/es/src/skeleton/components/table/index.vue2.mjs +17 -17
- package/es/src/skeleton/components/table/item.vue2.mjs +23 -23
- package/es/src/skeleton/descriptions.vue2.mjs +15 -15
- package/es/src/skeleton/list-page.vue2.mjs +12 -12
- package/es/src/splitter/Panel.vue2.mjs +11 -11
- package/es/src/splitter/SplitBar.vue2.mjs +79 -79
- package/es/src/splitter/Splitter.vue2.mjs +50 -50
- package/es/src/text/group.vue.mjs +8 -8
- package/es/src/text/index.vue.mjs +48 -48
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/src/ag-grid/components/body-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/empty/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/header-cell/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/row/index.vue2.js +1 -1
- package/lib/src/ag-grid/components/tooltip/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/ap-action/group/index.vue.js +1 -1
- package/lib/src/ap-action/item/index.vue2.js +1 -1
- package/lib/src/ap-action/item-dropdown/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/index.vue.js +1 -1
- package/lib/src/ap-field/checkbox/read.vue2.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date/read.vue2.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/read.vue2.js +1 -1
- package/lib/src/ap-field/number/index.vue.js +1 -1
- package/lib/src/ap-field/radio/index.vue.js +1 -1
- package/lib/src/ap-field/second/index.vue.js +1 -1
- package/lib/src/ap-field/second/read.vue2.js +1 -1
- package/lib/src/ap-field/segmented/index.vue.js +1 -1
- package/lib/src/ap-field/select/index.vue.d.ts +1 -1
- 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/slider/index.vue.js +1 -1
- package/lib/src/ap-field/style/select.js +1 -1
- package/lib/src/ap-field/switch/index.vue.js +1 -1
- package/lib/src/ap-field/text/read-password.vue2.js +1 -1
- package/lib/src/ap-field/text/read.vue2.js +1 -1
- package/lib/src/ap-field/text-area/index.vue.js +1 -1
- package/lib/src/ap-field/text-area/read.vue2.js +1 -1
- package/lib/src/ap-field/tree-select/index.vue.js +1 -1
- package/lib/src/ap-form/ap-form.vue2.js +1 -1
- package/lib/src/ap-form/drawer-form/index.vue.js +1 -1
- package/lib/src/ap-form/item/index.vue.js +1 -1
- package/lib/src/ap-form/items/checkbox/index.vue.js +1 -1
- package/lib/src/ap-form/items/number/index.vue.js +1 -1
- package/lib/src/ap-form/items/radio/index.vue.js +1 -1
- package/lib/src/ap-form/items/select/index.vue.d.ts +4 -4
- package/lib/src/ap-form/items/switch/index.vue.js +1 -1
- package/lib/src/ap-form/items/text/index.vue2.js +1 -1
- package/lib/src/ap-form/items/text/password.vue.js +1 -1
- package/lib/src/ap-form/items/text-area/index.vue.js +1 -1
- package/lib/src/ap-form/modal-form/index.vue.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/components/popover-sorter/sortable-item.vue2.js +1 -1
- package/lib/src/ap-grid/editable/form-item.vue.js +1 -1
- package/lib/src/ap-grid/editable/index.vue.js +1 -1
- package/lib/src/ap-grid/index.vue.js +1 -1
- package/lib/src/ap-list/index.vue.js +1 -1
- package/lib/src/ap-table/ap-table.vue2.js +1 -1
- package/lib/src/ap-table/components/index/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/modal/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/select-group/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/sortable/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/edit-form.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/index.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/template/item.vue2.js +1 -1
- package/lib/src/ap-table/components/setting/tree-select/index.vue2.js +1 -1
- package/lib/src/ap-table/constants.d.ts +2 -2
- package/lib/src/business/ag-grid-modal/modal-layout/index.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/selected-items/default.vue2.js +1 -1
- package/lib/src/business/ag-grid-modal/wrapper/index.vue2.js +1 -1
- package/lib/src/business/ap-descriptions/ap-descriptions.vue.js +1 -1
- package/lib/src/business/ap-descriptions/help-message/index.vue2.js +1 -1
- package/lib/src/business/ap-download/ap-download.vue.js +1 -1
- package/lib/src/business/ap-expand-alert/ApExpandAlert.vue.js +1 -1
- package/lib/src/business/ap-export-group/ApExportGroup.vue2.js +1 -1
- package/lib/src/business/ap-radio-group/ap-radio-group.vue2.js +1 -1
- package/lib/src/business/ap-status/group/ApStatusGroup.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-layout/index.vue2.js +1 -1
- package/lib/src/business/ap-table-modal/table-modal.vue2.js +1 -1
- package/lib/src/business/ap-tag/ap-tag-group.vue.js +1 -1
- package/lib/src/business/ap-tag/ap-tag.vue.js +1 -1
- package/lib/src/business/ap-title/ApTitle.vue2.js +1 -1
- package/lib/src/business/ap-value-select-card/index.vue2.js +1 -1
- package/lib/src/business/ap-view/components/main-button-content.vue.d.ts +1 -1
- package/lib/src/business/batch-input-group/form-item.vue.js +1 -1
- package/lib/src/business/batch-input-group/index.vue.js +2 -2
- package/lib/src/business/batch-input-group/popover-input/index.vue2.js +2 -2
- package/lib/src/editable-table/form-item.vue.js +1 -1
- package/lib/src/editable-table/index.vue.js +1 -1
- package/lib/src/full-screen/index.vue.js +1 -1
- package/lib/src/mask/index.vue.js +1 -1
- package/lib/src/portal/index.vue.js +1 -1
- package/lib/src/scroll-bar/internal.vue.js +1 -1
- package/lib/src/scroll-view/index.vue.js +1 -1
- package/lib/src/skeleton/components/desc/index.vue2.js +1 -1
- package/lib/src/skeleton/components/desc/item-large.vue2.js +1 -1
- package/lib/src/skeleton/components/desc/item.vue2.js +1 -1
- package/lib/src/skeleton/components/list/index.vue2.js +1 -1
- package/lib/src/skeleton/components/list/item.vue2.js +1 -1
- package/lib/src/skeleton/components/page-header/index.vue2.js +1 -1
- package/lib/src/skeleton/components/search-form/index.vue2.js +1 -1
- package/lib/src/skeleton/components/table/index.vue2.js +1 -1
- package/lib/src/skeleton/components/table/item.vue2.js +1 -1
- package/lib/src/skeleton/descriptions.vue2.js +1 -1
- package/lib/src/skeleton/list-page.vue2.js +1 -1
- package/lib/src/splitter/Panel.vue2.js +1 -1
- package/lib/src/splitter/SplitBar.vue2.js +1 -1
- package/lib/src/splitter/Splitter.vue2.js +1 -1
- package/lib/src/text/group.vue.js +1 -1
- package/lib/src/text/index.vue.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DownOutlined as
|
|
3
|
-
import { message as
|
|
4
|
-
import { usePermission as
|
|
5
|
-
import { IconApAdLineAnnotation as
|
|
6
|
-
import { transformTableParamsNoTimezone as
|
|
7
|
-
import { merge as
|
|
1
|
+
import { defineComponent as fe, computed as y, ref as Q, watch as me, createVNode as f, createElementBlock as X, openBlock as d, Fragment as Y, createBlock as g, createCommentVNode as G, unref as t, mergeProps as V, withCtx as c, createTextVNode as _, toDisplayString as A, normalizeClass as F } from "vue";
|
|
2
|
+
import { DownOutlined as ye } from "@ant-design/icons-vue";
|
|
3
|
+
import { message as O, Space as ge, Tooltip as K, Dropdown as xe, Menu as ve, MenuItem as Z } from "@aplus-frontend/antdv";
|
|
4
|
+
import { usePermission as he } from "@aplus-frontend/hooks";
|
|
5
|
+
import { IconApAdLineAnnotation as j } from "@aplus-frontend/icon";
|
|
6
|
+
import { transformTableParamsNoTimezone as ke, isObjectWithContent as M } from "@aplus-frontend/utils";
|
|
7
|
+
import { merge as q } from "lodash-unified";
|
|
8
8
|
import "../../ap-button/index.mjs";
|
|
9
|
-
import { useInjectApTable as
|
|
9
|
+
import { useInjectApTable as be } from "../../ap-table/context.mjs";
|
|
10
10
|
import "../../config-provider/index.mjs";
|
|
11
|
-
import { ApBatchActionGroup as
|
|
12
|
-
import { convertExportField as
|
|
13
|
-
import { handleExportDownload as
|
|
14
|
-
import { ApExportGroupActionType as
|
|
15
|
-
import
|
|
16
|
-
import { useNamespace as
|
|
17
|
-
import { useLocale as
|
|
18
|
-
import { useGlobalConfig as
|
|
11
|
+
import { ApBatchActionGroup as Ee } from "../ap-batch-action-group/index.mjs";
|
|
12
|
+
import { convertExportField as we } from "./convertExportField.mjs";
|
|
13
|
+
import { handleExportDownload as De } from "./handleExportDownload.mjs";
|
|
14
|
+
import { ApExportGroupActionType as x } from "./interface.mjs";
|
|
15
|
+
import Le from "./style/index.mjs";
|
|
16
|
+
import { useNamespace as Re } from "../../config-provider/hooks/use-namespace.mjs";
|
|
17
|
+
import { useLocale as Se } from "../../config-provider/hooks/use-locale.mjs";
|
|
18
|
+
import { useGlobalConfig as Ce } from "../../config-provider/hooks/use-global-config.mjs";
|
|
19
19
|
import N from "../../ap-button/ap-button.vue.mjs";
|
|
20
|
-
const
|
|
20
|
+
const He = /* @__PURE__ */ fe({
|
|
21
21
|
__name: "ApExportGroup",
|
|
22
22
|
props: {
|
|
23
23
|
type: {
|
|
@@ -53,28 +53,39 @@ const We = /* @__PURE__ */ ce({
|
|
|
53
53
|
setup(ee) {
|
|
54
54
|
const {
|
|
55
55
|
hasPermission: $
|
|
56
|
-
} =
|
|
56
|
+
} = he(), s = ee, {
|
|
57
57
|
columns: z,
|
|
58
58
|
dataSource: U,
|
|
59
59
|
getSearchFormValues: te,
|
|
60
60
|
getLastParams: ae
|
|
61
|
-
} =
|
|
62
|
-
b:
|
|
63
|
-
} =
|
|
61
|
+
} = be(), {
|
|
62
|
+
b: v
|
|
63
|
+
} = Re("ap-export-group"), h = Le("ap-export-group"), {
|
|
64
64
|
t: i
|
|
65
|
-
} =
|
|
65
|
+
} = Se(), W = Ce("apExportGroup"), H = y(() => W?.value?.exportField), J = y(() => W?.value?.dateValidate), k = y(() => J.value === !0 ? {
|
|
66
66
|
maxDayRange: 90,
|
|
67
67
|
smartIdentify: !0
|
|
68
|
-
} : J.value),
|
|
68
|
+
} : J.value), b = y(() => s?.dateValidate === !0 ? {
|
|
69
69
|
maxDayRange: 90,
|
|
70
70
|
smartIdentify: !0
|
|
71
|
-
} :
|
|
72
|
-
|
|
73
|
-
|
|
71
|
+
} : s?.dateValidate), R = Q(!1), B = Q(!1), C = y(() => !!s?.disabled || (U !== void 0 ? !U?.value?.length : !1) || R.value), oe = (e) => e === void 0 ? !1 : typeof e == "object" ? q({}, e) : e === !0 ? {} : e, E = (...e) => {
|
|
72
|
+
let a = !1;
|
|
73
|
+
for (const o of e)
|
|
74
|
+
if (o !== void 0)
|
|
75
|
+
if (o === !1)
|
|
76
|
+
a = !1;
|
|
77
|
+
else {
|
|
78
|
+
const r = oe(o);
|
|
79
|
+
r !== !1 && (a = a === !1 ? r : q({}, a, r));
|
|
80
|
+
}
|
|
81
|
+
return a;
|
|
82
|
+
};
|
|
83
|
+
me(() => C.value, () => {
|
|
84
|
+
C.value && (B.value = !1);
|
|
74
85
|
}, {
|
|
75
86
|
immediate: !0
|
|
76
87
|
});
|
|
77
|
-
const
|
|
88
|
+
const ne = y(() => s?.successMessage === !0 ? i("ap.apExportGroup.exportSuccess") : s?.successMessage ? s.successMessage : ""), se = (e = s?.exportField) => {
|
|
78
89
|
const a = "exportFieldList", o = e ?? (H.value === "" ? !0 : H.value) ?? !1;
|
|
79
90
|
return o === !0 ? {
|
|
80
91
|
key: a
|
|
@@ -82,54 +93,54 @@ const We = /* @__PURE__ */ ce({
|
|
|
82
93
|
...o,
|
|
83
94
|
key: o.key ?? a
|
|
84
95
|
} : o;
|
|
85
|
-
},
|
|
96
|
+
}, re = {
|
|
86
97
|
textAlign: "center"
|
|
87
|
-
},
|
|
88
|
-
let e =
|
|
89
|
-
return !
|
|
98
|
+
}, T = y(() => s?.selectedRowKeys || []), I = y(() => {
|
|
99
|
+
let e = s?.ifShow;
|
|
100
|
+
return !s?.ifShow && s?.auth && (e = () => $(s.auth)), e?.() ?? !0;
|
|
90
101
|
});
|
|
91
|
-
async function
|
|
92
|
-
|
|
93
|
-
key:
|
|
94
|
-
}) :
|
|
95
|
-
key:
|
|
102
|
+
async function le() {
|
|
103
|
+
T.value.length > 0 ? P({
|
|
104
|
+
key: x.SELECT
|
|
105
|
+
}) : P({
|
|
106
|
+
key: x.ALL
|
|
96
107
|
});
|
|
97
108
|
}
|
|
98
|
-
async function
|
|
109
|
+
async function P({
|
|
99
110
|
key: e,
|
|
100
111
|
option: a
|
|
101
112
|
}) {
|
|
102
|
-
const o =
|
|
103
|
-
getRequestParams:
|
|
104
|
-
request:
|
|
105
|
-
} = o || {},
|
|
106
|
-
sort:
|
|
107
|
-
}) : {}, u =
|
|
108
|
-
let
|
|
109
|
-
e ===
|
|
110
|
-
[o?.idKey || "ids"]:
|
|
111
|
-
} : e ===
|
|
112
|
-
const
|
|
113
|
+
const o = q({}, s, a || {}), {
|
|
114
|
+
getRequestParams: r,
|
|
115
|
+
request: D
|
|
116
|
+
} = o || {}, n = ae?.()?.sort, l = n ? ke({
|
|
117
|
+
sort: n
|
|
118
|
+
}) : {}, u = se(o?.exportField);
|
|
119
|
+
let p = {};
|
|
120
|
+
e === x.SELECT ? p = {
|
|
121
|
+
[o?.idKey || "ids"]: T.value
|
|
122
|
+
} : e === x.ALL && (p = r?.() || te?.(!0) || {});
|
|
123
|
+
const m = o?.getInitialParams?.() || {};
|
|
113
124
|
try {
|
|
114
|
-
|
|
115
|
-
let
|
|
116
|
-
...
|
|
117
|
-
...
|
|
125
|
+
R.value = !0;
|
|
126
|
+
let S = Object.assign({
|
|
127
|
+
...p,
|
|
128
|
+
...m,
|
|
118
129
|
...l
|
|
119
130
|
}, u && z?.value ? {
|
|
120
|
-
[u.key]:
|
|
131
|
+
[u.key]: we(z.value, u?.convertField)
|
|
121
132
|
} : {});
|
|
122
|
-
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
params:
|
|
126
|
-
dateValidate:
|
|
127
|
-
}), await
|
|
133
|
+
S = o?.beforeRequest?.(S) || S;
|
|
134
|
+
const L = E(k.value, b.value, a?.dateValidate);
|
|
135
|
+
M(L) && e === x.ALL && ce({
|
|
136
|
+
params: S,
|
|
137
|
+
dateValidate: L
|
|
138
|
+
}), await De(async () => await D?.(S)), o?.successMessage && O.success(ne.value);
|
|
128
139
|
} finally {
|
|
129
|
-
|
|
140
|
+
R.value = !1;
|
|
130
141
|
}
|
|
131
142
|
}
|
|
132
|
-
const
|
|
143
|
+
const w = y(() => s?.groupList?.filter((e) => {
|
|
133
144
|
let a = e?.ifShow;
|
|
134
145
|
return !e?.ifShow && e?.auth && (a = () => $(e.auth)), a?.() ?? !0;
|
|
135
146
|
})?.map((e, a) => ({
|
|
@@ -140,199 +151,199 @@ const We = /* @__PURE__ */ ce({
|
|
|
140
151
|
disabled: e?.disabled,
|
|
141
152
|
dateValidate: e?.dateValidate,
|
|
142
153
|
onClick: () => {
|
|
143
|
-
|
|
144
|
-
key:
|
|
154
|
+
T.value.length > 0 ? P({
|
|
155
|
+
key: x.SELECT,
|
|
145
156
|
option: e
|
|
146
|
-
}) :
|
|
147
|
-
key:
|
|
157
|
+
}) : P({
|
|
158
|
+
key: x.ALL,
|
|
148
159
|
option: e
|
|
149
160
|
});
|
|
150
161
|
}
|
|
151
|
-
})) || []),
|
|
152
|
-
const e =
|
|
153
|
-
return
|
|
162
|
+
})) || []), ue = () => {
|
|
163
|
+
const e = E(k.value, b.value, ...w.value.map((a) => a.dateValidate));
|
|
164
|
+
return f(ge, {
|
|
154
165
|
size: 4
|
|
155
166
|
}, {
|
|
156
|
-
default: () => [
|
|
167
|
+
default: () => [f("span", null, [s?.buttonProps?.content ?? i("ap.apExportGroup.export")]), e !== !1 && M(e) ? f(K, {
|
|
157
168
|
title: i("ap.apExportGroup.maxMessage", {
|
|
158
169
|
maxDayRange: e.maxDayRange ?? 90
|
|
159
170
|
})
|
|
160
171
|
}, {
|
|
161
|
-
default: () => [
|
|
162
|
-
class: [
|
|
172
|
+
default: () => [f(j, {
|
|
173
|
+
class: [v("icon"), h.value]
|
|
163
174
|
}, null)]
|
|
164
175
|
}) : null]
|
|
165
176
|
});
|
|
166
|
-
},
|
|
177
|
+
}, ie = (e) => Object.keys(e).reduce((a, o) => typeof e?.[o] == "number" && e?.[o] > 1e4 ? {
|
|
167
178
|
...a,
|
|
168
179
|
[o]: e?.[o]
|
|
169
|
-
} : a, {}),
|
|
170
|
-
const a = Object.keys(e), o = [],
|
|
171
|
-
for (let
|
|
172
|
-
for (let l =
|
|
173
|
-
const u = a[
|
|
174
|
-
let
|
|
175
|
-
const
|
|
176
|
-
for (let
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
prefix:
|
|
180
|
-
length:
|
|
180
|
+
} : a, {}), pe = (e) => {
|
|
181
|
+
const a = Object.keys(e), o = [], r = /* @__PURE__ */ new Set(), D = [];
|
|
182
|
+
for (let n = 0; n < a.length; n++)
|
|
183
|
+
for (let l = n + 1; l < a.length; l++) {
|
|
184
|
+
const u = a[n], p = a[l];
|
|
185
|
+
let m = "";
|
|
186
|
+
const S = Math.min(u.length, p.length);
|
|
187
|
+
for (let L = 0; L < S && u[L] === p[L]; L++)
|
|
188
|
+
m += u[L];
|
|
189
|
+
m.length >= 3 && D.push({
|
|
190
|
+
prefix: m,
|
|
191
|
+
length: m.length,
|
|
181
192
|
key1: u,
|
|
182
|
-
key2:
|
|
183
|
-
diff: Math.abs(e[u] - e[
|
|
193
|
+
key2: p,
|
|
194
|
+
diff: Math.abs(e[u] - e[p])
|
|
184
195
|
});
|
|
185
196
|
}
|
|
186
|
-
|
|
187
|
-
for (const
|
|
188
|
-
if (!
|
|
189
|
-
const l = e[
|
|
197
|
+
D.sort((n, l) => l.length !== n.length ? l.length - n.length : n.diff - l.diff);
|
|
198
|
+
for (const n of D)
|
|
199
|
+
if (!r.has(n.key1) && !r.has(n.key2)) {
|
|
200
|
+
const l = e[n.key1], u = e[n.key2];
|
|
190
201
|
o.push({
|
|
191
|
-
startKey: l < u ?
|
|
192
|
-
endKey: l < u ?
|
|
193
|
-
}),
|
|
202
|
+
startKey: l < u ? n.key1 : n.key2,
|
|
203
|
+
endKey: l < u ? n.key2 : n.key1
|
|
204
|
+
}), r.add(n.key1), r.add(n.key2);
|
|
194
205
|
}
|
|
195
206
|
return o;
|
|
196
|
-
},
|
|
207
|
+
}, de = ({
|
|
197
208
|
startTime: e,
|
|
198
209
|
endTime: a,
|
|
199
210
|
maxDayRange: o
|
|
200
|
-
}) => Math.abs(a - e) <= (o * 24 + 1) * 60 * 60 * 1e3,
|
|
211
|
+
}) => Math.abs(a - e) <= (o * 24 + 1) * 60 * 60 * 1e3, ce = ({
|
|
201
212
|
params: e,
|
|
202
213
|
dateValidate: a
|
|
203
214
|
}) => {
|
|
204
|
-
const o = a.maxDayRange ?? 90,
|
|
205
|
-
if (
|
|
206
|
-
|
|
215
|
+
const o = a.maxDayRange ?? 90, r = ie(e), D = [...a.smartIdentify ?? !0 ? pe(r) : [], ...a.dateKeyList?.filter((n) => r[n.startKey || ""] && r[n.endKey || ""]) ?? []];
|
|
216
|
+
if (D.length === 0) {
|
|
217
|
+
O.warn(a?.emptyTooltip ?? i("ap.apExportGroup.emptyTooltip", {
|
|
207
218
|
maxDayRange: o
|
|
208
219
|
}));
|
|
209
220
|
return;
|
|
210
|
-
} else if (
|
|
221
|
+
} else if (D.some(({
|
|
211
222
|
startKey: l,
|
|
212
223
|
endKey: u
|
|
213
224
|
}) => {
|
|
214
|
-
const
|
|
215
|
-
return
|
|
216
|
-
startTime:
|
|
217
|
-
endTime:
|
|
225
|
+
const p = r[l || ""], m = r[u || ""];
|
|
226
|
+
return p !== void 0 && m !== void 0 && !de({
|
|
227
|
+
startTime: p,
|
|
228
|
+
endTime: m,
|
|
218
229
|
maxDayRange: o
|
|
219
230
|
});
|
|
220
231
|
})) {
|
|
221
|
-
|
|
232
|
+
O.warn(a?.maxDayRangeTooltip ?? i("ap.apExportGroup.maxDayRangeTooltip", {
|
|
222
233
|
maxDayRange: o
|
|
223
234
|
}));
|
|
224
235
|
return;
|
|
225
236
|
}
|
|
226
237
|
};
|
|
227
|
-
return (e, a) => (
|
|
238
|
+
return (e, a) => (d(), X(Y, null, [I.value && s.type === "button" ? (d(), g(t(N), V({
|
|
228
239
|
key: 0
|
|
229
240
|
}, {
|
|
230
241
|
...e.$attrs
|
|
231
242
|
}, {
|
|
232
|
-
class: [t(
|
|
233
|
-
disabled:
|
|
234
|
-
loading:
|
|
243
|
+
class: [t(v)(), t(h)],
|
|
244
|
+
disabled: C.value,
|
|
245
|
+
loading: R.value,
|
|
235
246
|
"min-width": "",
|
|
236
|
-
onClick:
|
|
247
|
+
onClick: le
|
|
237
248
|
}), {
|
|
238
|
-
default:
|
|
249
|
+
default: c(() => [_(A(s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(M)(E(k.value, b.value)) ? (d(), g(t(K), {
|
|
239
250
|
key: 0,
|
|
240
251
|
title: t(i)("ap.apExportGroup.maxMessage", {
|
|
241
|
-
maxDayRange:
|
|
252
|
+
maxDayRange: E(k.value, b.value).maxDayRange ?? 90
|
|
242
253
|
})
|
|
243
254
|
}, {
|
|
244
|
-
default:
|
|
245
|
-
class:
|
|
255
|
+
default: c(() => [f(t(j), {
|
|
256
|
+
class: F([t(v)("icon"), t(h)])
|
|
246
257
|
}, null, 8, ["class"])]),
|
|
247
258
|
_: 1
|
|
248
|
-
}, 8, ["title"])) :
|
|
259
|
+
}, 8, ["title"])) : G("", !0)]),
|
|
249
260
|
_: 1
|
|
250
|
-
}, 16, ["class", "disabled", "loading"])) :
|
|
261
|
+
}, 16, ["class", "disabled", "loading"])) : G("", !0), I.value && s.type === "dropdown" ? (d(), g(t(xe), {
|
|
251
262
|
key: 1,
|
|
252
|
-
open:
|
|
253
|
-
"onUpdate:open": a[0] || (a[0] = (o) =>
|
|
254
|
-
class:
|
|
255
|
-
"overlay-style":
|
|
256
|
-
disabled:
|
|
263
|
+
open: B.value,
|
|
264
|
+
"onUpdate:open": a[0] || (a[0] = (o) => B.value = o),
|
|
265
|
+
class: F([t(v)(), t(h)]),
|
|
266
|
+
"overlay-style": re,
|
|
267
|
+
disabled: C.value
|
|
257
268
|
}, {
|
|
258
|
-
overlay:
|
|
259
|
-
onClick:
|
|
269
|
+
overlay: c(() => [f(t(ve), {
|
|
270
|
+
onClick: P
|
|
260
271
|
}, {
|
|
261
|
-
default:
|
|
262
|
-
key: t(
|
|
263
|
-
disabled:
|
|
272
|
+
default: c(() => [(d(), g(t(Z), {
|
|
273
|
+
key: t(x).SELECT,
|
|
274
|
+
disabled: T.value?.length === 0
|
|
264
275
|
}, {
|
|
265
|
-
default:
|
|
276
|
+
default: c(() => [_(A(t(i)("ap.apExportGroup.exportSelected")), 1)]),
|
|
266
277
|
_: 1
|
|
267
|
-
}, 8, ["disabled"])), (
|
|
268
|
-
key: t(
|
|
278
|
+
}, 8, ["disabled"])), (d(), g(t(Z), {
|
|
279
|
+
key: t(x).ALL
|
|
269
280
|
}, {
|
|
270
|
-
default:
|
|
281
|
+
default: c(() => [_(A(t(i)("ap.apExportGroup.exportAll")), 1)]),
|
|
271
282
|
_: 1
|
|
272
283
|
}))]),
|
|
273
284
|
_: 1
|
|
274
285
|
})]),
|
|
275
|
-
default:
|
|
286
|
+
default: c(() => [f(t(N), V({
|
|
276
287
|
...e.$attrs
|
|
277
288
|
}, {
|
|
278
|
-
loading:
|
|
289
|
+
loading: R.value
|
|
279
290
|
}), {
|
|
280
|
-
default:
|
|
291
|
+
default: c(() => [_(A(s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(M)(E(k.value, b.value)) ? (d(), g(t(K), {
|
|
281
292
|
key: 0,
|
|
282
293
|
title: t(i)("ap.apExportGroup.maxMessage", {
|
|
283
|
-
maxDayRange:
|
|
294
|
+
maxDayRange: E(k.value, b.value).maxDayRange ?? 90
|
|
284
295
|
})
|
|
285
296
|
}, {
|
|
286
|
-
default:
|
|
287
|
-
class:
|
|
297
|
+
default: c(() => [f(t(j), {
|
|
298
|
+
class: F([t(v)("icon"), t(h)])
|
|
288
299
|
}, null, 8, ["class"])]),
|
|
289
300
|
_: 1
|
|
290
|
-
}, 8, ["title"])) :
|
|
301
|
+
}, 8, ["title"])) : G("", !0), f(t(ye))]),
|
|
291
302
|
_: 1
|
|
292
303
|
}, 16, ["loading"])]),
|
|
293
304
|
_: 1
|
|
294
|
-
}, 8, ["open", "class", "disabled"])) :
|
|
305
|
+
}, 8, ["open", "class", "disabled"])) : G("", !0), I.value && s.type === "group" ? (d(), X(Y, {
|
|
295
306
|
key: 2
|
|
296
|
-
}, [
|
|
307
|
+
}, [w.value.length === 1 ? (d(), g(t(N), V({
|
|
297
308
|
key: 0
|
|
298
309
|
}, {
|
|
299
310
|
...e.$attrs
|
|
300
311
|
}, {
|
|
301
|
-
class: [t(
|
|
302
|
-
disabled:
|
|
303
|
-
loading:
|
|
312
|
+
class: [t(v)(), t(h)],
|
|
313
|
+
disabled: C.value || w.value?.[0]?.disabled,
|
|
314
|
+
loading: R.value,
|
|
304
315
|
"min-width": "",
|
|
305
|
-
onClick:
|
|
316
|
+
onClick: w.value?.[0]?.onClick
|
|
306
317
|
}), {
|
|
307
|
-
default:
|
|
318
|
+
default: c(() => [_(A(w.value?.[0]?.content ?? s?.text ?? t(i)("ap.apExportGroup.export")) + " ", 1), t(M)(E(k.value, b.value, w.value?.[0]?.dateValidate)) ? (d(), g(t(K), {
|
|
308
319
|
key: 0,
|
|
309
320
|
title: t(i)("ap.apExportGroup.maxMessage", {
|
|
310
|
-
maxDayRange:
|
|
321
|
+
maxDayRange: E(k.value, b.value, w.value?.[0]?.dateValidate).maxDayRange ?? 90
|
|
311
322
|
})
|
|
312
323
|
}, {
|
|
313
|
-
default:
|
|
314
|
-
class:
|
|
324
|
+
default: c(() => [f(t(j), {
|
|
325
|
+
class: F([t(v)("icon"), t(h)])
|
|
315
326
|
}, null, 8, ["class"])]),
|
|
316
327
|
_: 1
|
|
317
|
-
}, 8, ["title"])) :
|
|
328
|
+
}, 8, ["title"])) : G("", !0)]),
|
|
318
329
|
_: 1
|
|
319
|
-
}, 16, ["class", "disabled", "loading", "onClick"])) : (
|
|
330
|
+
}, 16, ["class", "disabled", "loading", "onClick"])) : (d(), g(t(Ee), V({
|
|
320
331
|
key: 1
|
|
321
332
|
}, {
|
|
322
333
|
...e.$attrs
|
|
323
334
|
}, {
|
|
324
|
-
class: [t(
|
|
325
|
-
disabled:
|
|
326
|
-
loading:
|
|
335
|
+
class: [t(v)(), t(h)],
|
|
336
|
+
disabled: C.value,
|
|
337
|
+
loading: R.value,
|
|
327
338
|
"button-props": {
|
|
328
|
-
...
|
|
329
|
-
content:
|
|
330
|
-
type:
|
|
339
|
+
...s.buttonProps,
|
|
340
|
+
content: ue(),
|
|
341
|
+
type: s?.buttonProps?.type ?? "default"
|
|
331
342
|
},
|
|
332
|
-
"menu-list":
|
|
333
|
-
}), null, 16, ["class", "disabled", "loading", "button-props", "menu-list"]))], 64)) :
|
|
343
|
+
"menu-list": w.value
|
|
344
|
+
}), null, 16, ["class", "disabled", "loading", "button-props", "menu-list"]))], 64)) : G("", !0)], 64));
|
|
334
345
|
}
|
|
335
346
|
});
|
|
336
347
|
export {
|
|
337
|
-
|
|
348
|
+
He as default
|
|
338
349
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as C, ref as k, isVNode as S, h as
|
|
1
|
+
import { defineComponent as C, ref as k, isVNode as S, h as n, watch as x, createElementBlock as r, openBlock as i, normalizeClass as m, unref as o, createVNode as b, withCtx as V, Fragment as w, renderList as B, normalizeStyle as N, createBlock as z, resolveDynamicComponent as F } from "vue";
|
|
2
2
|
import { Flex as L } from "@aplus-frontend/antdv";
|
|
3
3
|
import "../../config-provider/index.mjs";
|
|
4
4
|
import "../../hooks/index.mjs";
|
|
5
|
-
import
|
|
6
|
-
import { useNamespace as
|
|
7
|
-
import { useControllableValue as
|
|
8
|
-
const
|
|
5
|
+
import A from "./style/index.mjs";
|
|
6
|
+
import { useNamespace as D } from "../../config-provider/hooks/use-namespace.mjs";
|
|
7
|
+
import { useControllableValue as E } from "../../hooks/useControllableValue.mjs";
|
|
8
|
+
const G = ["onClick"], M = /* @__PURE__ */ C({
|
|
9
9
|
name: "ApRadioGroup",
|
|
10
10
|
__name: "ap-radio-group",
|
|
11
11
|
props: {
|
|
@@ -18,45 +18,45 @@ const E = ["onClick"], K = /* @__PURE__ */ C({
|
|
|
18
18
|
}) }
|
|
19
19
|
},
|
|
20
20
|
emits: ["update:value", "change"],
|
|
21
|
-
setup(
|
|
22
|
-
const { b: f, e:
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
),
|
|
26
|
-
|
|
27
|
-
() =>
|
|
21
|
+
setup(t, { emit: d }) {
|
|
22
|
+
const { b: f, e: s } = D("ap-radio-group"), h = A("ap-radio-group"), u = t, c = d, { value: p, updateValue: g } = E(
|
|
23
|
+
u,
|
|
24
|
+
c
|
|
25
|
+
), l = k(p.value), y = (e) => S(e) ? n(e) : typeof e == "function" ? n("span", e()) : n("span", e);
|
|
26
|
+
x(
|
|
27
|
+
() => p.value,
|
|
28
28
|
(e) => {
|
|
29
|
-
e !==
|
|
29
|
+
e !== l.value && (l.value = e);
|
|
30
30
|
}
|
|
31
31
|
);
|
|
32
32
|
const v = (e) => {
|
|
33
|
-
|
|
34
|
-
g(e),
|
|
35
|
-
},
|
|
33
|
+
l.value = e, setTimeout(() => {
|
|
34
|
+
g(e), c("change", e);
|
|
35
|
+
}, u.delay);
|
|
36
36
|
};
|
|
37
|
-
return (e,
|
|
38
|
-
class:
|
|
37
|
+
return (e, H) => (i(), r("div", {
|
|
38
|
+
class: m([o(f)(), o(h)])
|
|
39
39
|
}, [
|
|
40
|
-
|
|
41
|
-
gap:
|
|
40
|
+
b(o(L), {
|
|
41
|
+
gap: t.optionStyle?.gap,
|
|
42
42
|
wrap: "wrap"
|
|
43
43
|
}, {
|
|
44
|
-
default:
|
|
45
|
-
(
|
|
46
|
-
key:
|
|
47
|
-
class:
|
|
48
|
-
o(
|
|
49
|
-
|
|
44
|
+
default: V(() => [
|
|
45
|
+
(i(!0), r(w, null, B(t.options.filter((a) => a.visible !== !1), (a) => (i(), r("div", {
|
|
46
|
+
key: a.value,
|
|
47
|
+
class: m([
|
|
48
|
+
o(s)("item"),
|
|
49
|
+
l.value === a.value ? o(s)("item--active") : ""
|
|
50
50
|
]),
|
|
51
51
|
style: N({
|
|
52
|
-
height:
|
|
53
|
-
lineHeight:
|
|
54
|
-
color:
|
|
52
|
+
height: t.optionStyle?.height + "px",
|
|
53
|
+
lineHeight: t.optionStyle?.height + "px",
|
|
54
|
+
color: t.optionStyle?.color
|
|
55
55
|
}),
|
|
56
|
-
onClick: (
|
|
56
|
+
onClick: (I) => v(a.value)
|
|
57
57
|
}, [
|
|
58
|
-
(
|
|
59
|
-
], 14,
|
|
58
|
+
(i(), z(F(y(a.label))))
|
|
59
|
+
], 14, G))), 128))
|
|
60
60
|
]),
|
|
61
61
|
_: 1
|
|
62
62
|
}, 8, ["gap"])
|
|
@@ -64,5 +64,5 @@ const E = ["onClick"], K = /* @__PURE__ */ C({
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
export {
|
|
67
|
-
|
|
67
|
+
M as default
|
|
68
68
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as n, computed as p, createElementBlock as o, createCommentVNode as c, openBlock as r, normalizeStyle as s, normalizeClass as d, unref as m, Fragment as i, renderList as f, createBlock as y } from "vue";
|
|
2
2
|
import "../../../config-provider/index.mjs";
|
|
3
3
|
import "../ApStatus.vue.mjs";
|
|
4
4
|
import { useNamespace as g } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
5
|
-
import
|
|
6
|
-
const w = /* @__PURE__ */
|
|
5
|
+
import _ from "../ApStatus.vue2.mjs";
|
|
6
|
+
const w = /* @__PURE__ */ n({
|
|
7
7
|
name: "ApStatusGroup",
|
|
8
8
|
__name: "ApStatusGroup",
|
|
9
9
|
props: {
|
|
@@ -13,24 +13,24 @@ const w = /* @__PURE__ */ p({
|
|
|
13
13
|
style: {},
|
|
14
14
|
show: { type: Boolean, default: !0 }
|
|
15
15
|
},
|
|
16
|
-
setup(
|
|
17
|
-
const t =
|
|
16
|
+
setup(a) {
|
|
17
|
+
const t = a, u = p(() => ({
|
|
18
18
|
...t.style
|
|
19
19
|
})), { b: l } = g("ap-status-group");
|
|
20
|
-
return (
|
|
20
|
+
return (k, x) => t.statusList ? (r(), o("div", {
|
|
21
21
|
key: 0,
|
|
22
|
-
class:
|
|
23
|
-
style:
|
|
22
|
+
class: d([m(l)()]),
|
|
23
|
+
style: s(u.value)
|
|
24
24
|
}, [
|
|
25
|
-
(r(!0), o(
|
|
25
|
+
(r(!0), o(i, null, f(t.statusList, (e) => (r(), y(_, {
|
|
26
26
|
key: e.value,
|
|
27
|
-
show: e.value ===
|
|
27
|
+
show: e.value === a.currentValue,
|
|
28
28
|
color: e.color,
|
|
29
29
|
text: e.text,
|
|
30
30
|
padding: t.padding,
|
|
31
|
-
style:
|
|
31
|
+
style: s(t.style)
|
|
32
32
|
}, null, 8, ["show", "color", "text", "padding", "style"]))), 128))
|
|
33
|
-
], 6)) :
|
|
33
|
+
], 6)) : c("", !0);
|
|
34
34
|
}
|
|
35
35
|
});
|
|
36
36
|
export {
|