magtool 1.5.37 → 1.5.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composition.js +81 -78
- package/dist/cpt/AiApp.js +117 -0
- package/dist/cpt/AiOrg.js +130 -0
- package/dist/cpt/AsaAdGroup.js +261 -0
- package/dist/cpt/AsaApp.js +126 -0
- package/dist/cpt/AsaCampaign.js +268 -0
- package/dist/cpt/AsaOrg.js +130 -0
- package/dist/cpt/Card.js +92 -0
- package/dist/cpt/Country.js +32 -0
- package/dist/cpt/CountryItem.js +56 -0
- package/dist/cpt/DatePicker.js +246 -0
- package/dist/cpt/EChart.js +271 -0
- package/dist/cpt/Form.js +75 -0
- package/dist/cpt/Header.js +786 -0
- package/dist/cpt/Icon.js +24 -0
- package/dist/cpt/Image.js +58 -0
- package/dist/cpt/Input.js +129 -0
- package/dist/cpt/Main.js +230 -0
- package/dist/cpt/MultipleSelect.js +143 -0
- package/dist/cpt/Nodata.js +39 -0
- package/dist/cpt/Org.js +99 -0
- package/dist/cpt/Page.js +74 -0
- package/dist/cpt/StatusItem.js +68 -0
- package/dist/cpt/StatusSelect.js +79 -0
- package/dist/cpt/Table.js +123 -0
- package/dist/cpt/Textarea.js +132 -0
- package/dist/cpt/Timezone.js +128 -0
- package/dist/cpt/chip.js +639 -0
- package/dist/cpt/component.js +21 -0
- package/dist/css/cpt/Card.css +1 -0
- package/dist/css/cpt/EChart.css +1 -0
- package/dist/css/cpt/Header.css +1 -0
- package/dist/css/cpt/Main.css +1 -0
- package/dist/css/cpt/MultipleSelect.css +1 -0
- package/dist/css/cpt/Nodata.css +1 -0
- package/dist/css/cpt/Page.css +1 -0
- package/dist/css/cpt/Table.css +1 -0
- package/dist/css/cpt/Textarea.css +1 -0
- package/dist/css/cpt/chip.css +1 -0
- package/dist/css/{magtool.css → css/scss.css} +1 -1
- package/dist/index.js +4 -8
- package/dist/util.js +5 -5
- package/dist/vendor.js +38 -31
- package/package.json +1 -1
- package/dist/component.js +0 -4427
package/dist/cpt/chip.js
ADDED
|
@@ -0,0 +1,639 @@
|
|
|
1
|
+
import { defineComponent as D, createElementBlock as $, openBlock as i, createElementVNode as R, createCommentVNode as j, createBlock as v, renderSlot as H, toDisplayString as U, mergeProps as B, reactive as x, getCurrentInstance as W, inject as Z, ref as ye, onBeforeMount as he, computed as w, watch as q, resolveComponent as S, unref as o, normalizeClass as _e, createVNode as V, normalizeStyle as Se, withCtx as h, createSlots as J, Fragment as ee, renderList as te, createTextVNode as le } from "vue";
|
|
2
|
+
import { T as be } from "./Header.js";
|
|
3
|
+
import { _ as oe } from "../vendor.js";
|
|
4
|
+
import { useSummary as we } from "../composition.js";
|
|
5
|
+
import { C as Ce, F as ve } from "./Main.js";
|
|
6
|
+
const qe = D({
|
|
7
|
+
name: "MvcFormItemFilter",
|
|
8
|
+
setup: (N, k) => {
|
|
9
|
+
const r = (l) => Array.isArray(l) ? l.filter((e) => e.children !== "v-if").map((e) => {
|
|
10
|
+
var c, u;
|
|
11
|
+
return e && (window.$getType(e.children) === "Array" ? e.children = r(e.children) : ((c = e.type) == null ? void 0 : c.name) === "ElFormItem" && (u = e.props) != null && u.label && (e.props.label = e.props.label.$l()), e);
|
|
12
|
+
}) : [];
|
|
13
|
+
return () => r(k.slots.default()[0].children);
|
|
14
|
+
}
|
|
15
|
+
}), $e = { class: "MvcTableHeader" }, Ve = { class: "HeaderArea" }, Ne = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "flexGrow xscroll nobar"
|
|
18
|
+
}, Oe = {
|
|
19
|
+
key: 1,
|
|
20
|
+
class: "titleArea"
|
|
21
|
+
}, ke = { key: 2 }, ze = {
|
|
22
|
+
key: 0,
|
|
23
|
+
class: "filterRowArea"
|
|
24
|
+
}, Me = D({
|
|
25
|
+
name: "MvcTableHeader",
|
|
26
|
+
inheritAttrs: !1
|
|
27
|
+
}), Ae = /* @__PURE__ */ Object.assign(Me, {
|
|
28
|
+
props: {
|
|
29
|
+
title: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: ""
|
|
32
|
+
},
|
|
33
|
+
tableName: {
|
|
34
|
+
type: String,
|
|
35
|
+
default: ""
|
|
36
|
+
},
|
|
37
|
+
noheader: {
|
|
38
|
+
type: Boolean,
|
|
39
|
+
default: !1
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
setup(N, { emit: k }) {
|
|
43
|
+
const r = N;
|
|
44
|
+
return (l, e) => (i(), $("div", $e, [
|
|
45
|
+
R("div", Ve, [
|
|
46
|
+
l.$slots.default ? (i(), $("div", Ne, [
|
|
47
|
+
H(l.$slots, "default", {}, void 0, !0)
|
|
48
|
+
])) : r.title ? (i(), $("div", Oe, U(r.title), 1)) : (i(), $("div", ke)),
|
|
49
|
+
l.$attrs.tool !== !1 ? (i(), v(be, B({ key: 3 }, l.$attrs, {
|
|
50
|
+
"table-name": r.tableName
|
|
51
|
+
}), null, 16, ["table-name"])) : j("", !0)
|
|
52
|
+
]),
|
|
53
|
+
l.$slots.filterRow ? (i(), $("div", ze, [
|
|
54
|
+
H(l.$slots, "filterRow", {}, void 0, !0)
|
|
55
|
+
])) : j("", !0)
|
|
56
|
+
]));
|
|
57
|
+
}
|
|
58
|
+
}), Qe = /* @__PURE__ */ oe(Ae, [["__scopeId", "data-v-8a2e4c35"]]), Te = ["id"], Ie = D({
|
|
59
|
+
name: "MvcTableGroupMain",
|
|
60
|
+
inheritAttrs: !1
|
|
61
|
+
}), Be = /* @__PURE__ */ Object.assign(Ie, {
|
|
62
|
+
props: {
|
|
63
|
+
loading: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: !1
|
|
66
|
+
},
|
|
67
|
+
total: {
|
|
68
|
+
type: Number,
|
|
69
|
+
default: 0
|
|
70
|
+
},
|
|
71
|
+
tableName: {
|
|
72
|
+
type: String,
|
|
73
|
+
default: ""
|
|
74
|
+
},
|
|
75
|
+
channel: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: ""
|
|
78
|
+
},
|
|
79
|
+
cellClassName: {
|
|
80
|
+
type: [Function, String],
|
|
81
|
+
default: void 0
|
|
82
|
+
},
|
|
83
|
+
loadData: {
|
|
84
|
+
type: [Function, void 0],
|
|
85
|
+
default: void 0
|
|
86
|
+
},
|
|
87
|
+
list: {
|
|
88
|
+
type: [Array, void 0],
|
|
89
|
+
default: void 0
|
|
90
|
+
},
|
|
91
|
+
height: {
|
|
92
|
+
type: [String, Number],
|
|
93
|
+
default: 0
|
|
94
|
+
},
|
|
95
|
+
minusHeight: {
|
|
96
|
+
type: [String, Number],
|
|
97
|
+
default: 0
|
|
98
|
+
},
|
|
99
|
+
noheader: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: !1
|
|
102
|
+
},
|
|
103
|
+
nofooter: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: !1
|
|
106
|
+
},
|
|
107
|
+
noscrolltop: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: !1
|
|
110
|
+
},
|
|
111
|
+
immediate: {
|
|
112
|
+
type: Boolean,
|
|
113
|
+
default: !0
|
|
114
|
+
},
|
|
115
|
+
pageSize: {
|
|
116
|
+
type: Number,
|
|
117
|
+
default: 0
|
|
118
|
+
},
|
|
119
|
+
filter: {
|
|
120
|
+
type: Object,
|
|
121
|
+
default: /* @__PURE__ */ Object.create(null)
|
|
122
|
+
},
|
|
123
|
+
defaultSort: {
|
|
124
|
+
type: Object,
|
|
125
|
+
default: /* @__PURE__ */ Object.create(null)
|
|
126
|
+
},
|
|
127
|
+
rowKey: {
|
|
128
|
+
type: [String, void 0],
|
|
129
|
+
default: void 0
|
|
130
|
+
},
|
|
131
|
+
showSummary: {
|
|
132
|
+
type: Boolean,
|
|
133
|
+
default: !1
|
|
134
|
+
},
|
|
135
|
+
summaryMethod: {
|
|
136
|
+
type: Function,
|
|
137
|
+
default: void 0
|
|
138
|
+
},
|
|
139
|
+
groupInfo: {
|
|
140
|
+
type: Object,
|
|
141
|
+
default: /* @__PURE__ */ Object.create(null)
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
setup(N, { expose: k, emit: r }) {
|
|
145
|
+
const l = N, e = x({
|
|
146
|
+
loading: !0,
|
|
147
|
+
tableKey: 0,
|
|
148
|
+
pageStart: 1,
|
|
149
|
+
pageSize: 50,
|
|
150
|
+
search: {},
|
|
151
|
+
dt: {},
|
|
152
|
+
filter: {},
|
|
153
|
+
selection: [],
|
|
154
|
+
scrollTop: 0,
|
|
155
|
+
scrollAni: !1,
|
|
156
|
+
summaryMode: 1,
|
|
157
|
+
tableId: "",
|
|
158
|
+
sizeChanged: !1
|
|
159
|
+
}), { proxy: A } = W();
|
|
160
|
+
Z("store").table();
|
|
161
|
+
const u = ye();
|
|
162
|
+
he(() => {
|
|
163
|
+
e.tableId = `Table${+/* @__PURE__ */ new Date()}_${window.$rn(9999)}`;
|
|
164
|
+
});
|
|
165
|
+
const C = r, I = async (t = {}) => {
|
|
166
|
+
const { refresh: n, remote: a } = t;
|
|
167
|
+
X.value && n || (t ? (e.pageStart = t.pageStart || 1, t.pageSize && (e.pageSize = t.pageSize), delete t.pageStart, delete t.pageSize, delete t.refresh, delete t.remote, e.search = t) : e.pageStart = 1, await f({ remote: a }));
|
|
168
|
+
}, d = (t) => {
|
|
169
|
+
t || e.tableKey++;
|
|
170
|
+
}, f = async (t = {}, n) => {
|
|
171
|
+
var p;
|
|
172
|
+
const { remote: a } = t;
|
|
173
|
+
if (l.loadData !== void 0) {
|
|
174
|
+
e.loading = !0;
|
|
175
|
+
let g;
|
|
176
|
+
l.pageSize && e.sizeChanged === !1 ? g = l.pageSize : g = e.pageSize;
|
|
177
|
+
const y = {
|
|
178
|
+
pageStart: e.pageStart,
|
|
179
|
+
pageSize: g,
|
|
180
|
+
...e.search
|
|
181
|
+
};
|
|
182
|
+
e.pageSize = y.pageSize, e.pageStart = y.pageStart, (p = l.groupInfo) != null && p.value && (y.groupBy = l.groupInfo.value), a && (y.remote = !0);
|
|
183
|
+
const T = await l.loadData(y);
|
|
184
|
+
e.loading = !1, T ? (e.dt = T, e.filter = JSON.parse(JSON.stringify(T))) : (e.dt = {
|
|
185
|
+
total: 0,
|
|
186
|
+
list: []
|
|
187
|
+
}, e.filter = {
|
|
188
|
+
total: 0,
|
|
189
|
+
list: []
|
|
190
|
+
}), ce.value ? m() : C("list-change", T.list || []);
|
|
191
|
+
}
|
|
192
|
+
se();
|
|
193
|
+
}, z = (t) => {
|
|
194
|
+
e.summaryMode = t;
|
|
195
|
+
}, s = ({ columns: t, data: n }) => we({ columns: t, data: n, currency: window.currency }), m = (t = {}) => {
|
|
196
|
+
let { v: n = l.filter } = t;
|
|
197
|
+
n || (n = t);
|
|
198
|
+
const a = Object.keys(n), p = [];
|
|
199
|
+
return a.forEach((g) => {
|
|
200
|
+
const y = n[g];
|
|
201
|
+
y && y.length && p.push(g);
|
|
202
|
+
}), p.length ? M(p, n) : (e.dt.list = [...e.filter.list], e.filter.total = e.dt.total, C("list-change", e.dt.list), e.filter.list);
|
|
203
|
+
}, M = (t, n) => {
|
|
204
|
+
const a = [];
|
|
205
|
+
return e.filter.list.forEach((p) => {
|
|
206
|
+
let g = !1;
|
|
207
|
+
t.forEach((y) => {
|
|
208
|
+
const T = String(p[y]).toLowerCase();
|
|
209
|
+
let G = n[y];
|
|
210
|
+
if (window.$getType(G) === "Array")
|
|
211
|
+
try {
|
|
212
|
+
G.forEach((P) => {
|
|
213
|
+
if (P && T.includes(String(P).toLowerCase()))
|
|
214
|
+
throw g = !0, new Error();
|
|
215
|
+
});
|
|
216
|
+
} catch {
|
|
217
|
+
}
|
|
218
|
+
else T.includes(G.toLowerCase()) && (g = !0);
|
|
219
|
+
}), g && a.push(p);
|
|
220
|
+
}), e.dt.list = a, e.filter.total = a.length, C("list-change", a), a;
|
|
221
|
+
}, O = () => {
|
|
222
|
+
e.dt = {
|
|
223
|
+
list: l.list,
|
|
224
|
+
total: l.list.length
|
|
225
|
+
}, e.filter = JSON.parse(JSON.stringify(e.dt)), C("list-change", l.list);
|
|
226
|
+
}, _ = ({ row: t = {}, id: n }) => {
|
|
227
|
+
n === void 0 ? e.dt.list.unshift(t) : e.dt.list = e.dt.list.map((a) => a.id === n ? {
|
|
228
|
+
...a,
|
|
229
|
+
...t
|
|
230
|
+
} : a);
|
|
231
|
+
}, F = (t, n) => {
|
|
232
|
+
e.dt.list = e.dt.list.filter((a) => a[t] !== n), e.filter.list = e.filter.list.filter((a) => a[t] !== n);
|
|
233
|
+
}, L = (t) => {
|
|
234
|
+
u.value.toggleRowExpansion(t);
|
|
235
|
+
}, E = (t, n) => {
|
|
236
|
+
u.value.toggleRowSelection(t, n);
|
|
237
|
+
}, b = (t) => {
|
|
238
|
+
e.selection = t, C("selection-change", t);
|
|
239
|
+
}, Q = (t) => {
|
|
240
|
+
C("sort-change", t);
|
|
241
|
+
}, ae = (t) => {
|
|
242
|
+
e.pageSize = t, e.sizeChanged = !0, f();
|
|
243
|
+
}, ne = (t) => {
|
|
244
|
+
e.pageStart = t, f();
|
|
245
|
+
}, re = (t, n, a) => {
|
|
246
|
+
let p = localStorage.getItem(Y.value);
|
|
247
|
+
if (p) {
|
|
248
|
+
p = JSON.parse(p);
|
|
249
|
+
const { data: g } = p.filter1((y) => y.prop === a.property);
|
|
250
|
+
g && (g.width = a.width, localStorage.setItem(Y.value, JSON.stringify(p)));
|
|
251
|
+
}
|
|
252
|
+
}, se = () => {
|
|
253
|
+
u.value && u.value.setScrollTop(0);
|
|
254
|
+
}, ie = () => {
|
|
255
|
+
e.loading = !1;
|
|
256
|
+
}, ue = (t) => {
|
|
257
|
+
e.dt.list.unshift(t);
|
|
258
|
+
}, X = w(() => l.loading || e.loading), de = w(() => {
|
|
259
|
+
const {
|
|
260
|
+
options: { tableHeight: t },
|
|
261
|
+
page: n
|
|
262
|
+
} = window.global.config;
|
|
263
|
+
let a = l.height || t;
|
|
264
|
+
return l.nofooter && (a = a + n.footer), l.noheader && (a = a + n.header), l.minusHeight && (a = a - Number(l.minusHeight)), a < 200 && (a = 200), a;
|
|
265
|
+
}), ce = w(() => 0), K = w(() => l.list === void 0 ? String(+/* @__PURE__ */ new Date()) : +/* @__PURE__ */ new Date()), pe = w(() => window.$getType(K.value) === "String"), Y = w(() => l.tableName + "_Column"), fe = w(() => e.summaryMode === 0 ? s : l.summaryMethod), me = w(() => l.noheader ? { top: 0 } : { top: "56px" });
|
|
266
|
+
q(
|
|
267
|
+
() => K.value,
|
|
268
|
+
(t) => {
|
|
269
|
+
if (t) {
|
|
270
|
+
const n = window.$getType(t);
|
|
271
|
+
n === "String" ? l.immediate && f() : n === "Number" && (e.loading = !1, O());
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
immediate: !0
|
|
276
|
+
}
|
|
277
|
+
), k({
|
|
278
|
+
toFilter: m,
|
|
279
|
+
initTable: I,
|
|
280
|
+
editRow: _,
|
|
281
|
+
removeRow: F,
|
|
282
|
+
refreshTable: d,
|
|
283
|
+
toggleRowExpansion: L,
|
|
284
|
+
toggleRowSelection: E,
|
|
285
|
+
toStop: ie,
|
|
286
|
+
toAdd: ue
|
|
287
|
+
});
|
|
288
|
+
const ge = {
|
|
289
|
+
"popper-class": "maxw300"
|
|
290
|
+
};
|
|
291
|
+
return (t, n) => {
|
|
292
|
+
var g, y;
|
|
293
|
+
const a = S("Loading"), p = S("el-table");
|
|
294
|
+
return i(), $("div", {
|
|
295
|
+
class: _e(["MvcTableGroupMain", o(pe) && "PagiTable"]),
|
|
296
|
+
id: o(e).tableId
|
|
297
|
+
}, [
|
|
298
|
+
V(a, {
|
|
299
|
+
loading: o(X),
|
|
300
|
+
style: Se(o(me))
|
|
301
|
+
}, null, 8, ["loading", "style"]),
|
|
302
|
+
(i(), v(p, {
|
|
303
|
+
ref_key: "table",
|
|
304
|
+
ref: u,
|
|
305
|
+
key: o(e).tableKey,
|
|
306
|
+
data: o(e).dt.list,
|
|
307
|
+
"row-key": l.rowKey,
|
|
308
|
+
height: o(de),
|
|
309
|
+
stripe: "",
|
|
310
|
+
border: "",
|
|
311
|
+
"default-sort": N.defaultSort,
|
|
312
|
+
"show-summary": l.showSummary,
|
|
313
|
+
"summary-method": o(fe),
|
|
314
|
+
"tooltip-options": ge,
|
|
315
|
+
"cell-class-name": l.cellClassName,
|
|
316
|
+
onHeaderDragend: re,
|
|
317
|
+
onSelectionChange: b,
|
|
318
|
+
onSortChange: Q,
|
|
319
|
+
onToggleRowSelection: E
|
|
320
|
+
}, {
|
|
321
|
+
default: h(() => [
|
|
322
|
+
V(o(Ce), {
|
|
323
|
+
"table-name": l.tableName,
|
|
324
|
+
group: l.groupInfo
|
|
325
|
+
}, {
|
|
326
|
+
default: h(() => [
|
|
327
|
+
H(t.$slots, "default", {}, void 0, !0)
|
|
328
|
+
]),
|
|
329
|
+
_: 3
|
|
330
|
+
}, 8, ["table-name", "group"])
|
|
331
|
+
]),
|
|
332
|
+
_: 3
|
|
333
|
+
}, 8, ["data", "row-key", "height", "default-sort", "show-summary", "summary-method", "cell-class-name"])),
|
|
334
|
+
l.nofooter ? j("", !0) : (i(), v(ve, B({
|
|
335
|
+
key: 0,
|
|
336
|
+
ref: "footer"
|
|
337
|
+
}, t.$attrs, {
|
|
338
|
+
nosummary: !l.showSummary,
|
|
339
|
+
"page-num": o(e).pageStart,
|
|
340
|
+
"page-size": o(e).pageSize,
|
|
341
|
+
rows: (g = o(e).filter.list) == null ? void 0 : g.length,
|
|
342
|
+
"filter-rows": (y = o(e).dt.list) == null ? void 0 : y.length,
|
|
343
|
+
total: l.total || o(e).dt.total,
|
|
344
|
+
"filter-total": o(e).filter.total,
|
|
345
|
+
"selection-length": o(e).selection.length,
|
|
346
|
+
"remote-data": o(K),
|
|
347
|
+
"static-total": !!l.total,
|
|
348
|
+
onSizeChange: ae,
|
|
349
|
+
onPageChange: ne,
|
|
350
|
+
onSummaryModeChange: z
|
|
351
|
+
}), null, 16, ["nosummary", "page-num", "page-size", "rows", "filter-rows", "total", "filter-total", "selection-length", "remote-data", "static-total"]))
|
|
352
|
+
], 10, Te);
|
|
353
|
+
};
|
|
354
|
+
}
|
|
355
|
+
}), Xe = /* @__PURE__ */ oe(Be, [["__scopeId", "data-v-d7db12ce"]]), Fe = { class: "SuperCountryAso relative" }, je = { class: "flexMode hr" }, De = D({
|
|
356
|
+
name: "SuperCountryAso"
|
|
357
|
+
}), Ee = /* @__PURE__ */ Object.assign(De, {
|
|
358
|
+
props: {
|
|
359
|
+
modelValue: {
|
|
360
|
+
type: [String, Array],
|
|
361
|
+
default: ""
|
|
362
|
+
},
|
|
363
|
+
multiple: {
|
|
364
|
+
type: Boolean,
|
|
365
|
+
default: !1
|
|
366
|
+
},
|
|
367
|
+
limit: {
|
|
368
|
+
type: Number,
|
|
369
|
+
default: 0
|
|
370
|
+
},
|
|
371
|
+
useFooter: {
|
|
372
|
+
type: Boolean,
|
|
373
|
+
default: !1
|
|
374
|
+
},
|
|
375
|
+
nowrap: {
|
|
376
|
+
type: Boolean,
|
|
377
|
+
default: !1
|
|
378
|
+
},
|
|
379
|
+
useAll: {
|
|
380
|
+
type: Boolean,
|
|
381
|
+
default: !1
|
|
382
|
+
},
|
|
383
|
+
allValue: {
|
|
384
|
+
type: [String, Number],
|
|
385
|
+
default: "all"
|
|
386
|
+
}
|
|
387
|
+
},
|
|
388
|
+
emits: [
|
|
389
|
+
"to-change",
|
|
390
|
+
"update:modelValue",
|
|
391
|
+
"confirm",
|
|
392
|
+
"update:name"
|
|
393
|
+
],
|
|
394
|
+
setup(N, { emit: k }) {
|
|
395
|
+
const r = N, { proxy: l } = W(), A = Z("store").common(), c = x({
|
|
396
|
+
loading: !1,
|
|
397
|
+
v: "",
|
|
398
|
+
arr: []
|
|
399
|
+
}), u = k, C = (s) => {
|
|
400
|
+
u("update:modelValue", s), u("to-change", s);
|
|
401
|
+
}, I = (s) => {
|
|
402
|
+
let m = [];
|
|
403
|
+
A.countryOptions.forEach((M) => {
|
|
404
|
+
s.forEach((O) => {
|
|
405
|
+
M.value === O && m.push(M.label);
|
|
406
|
+
});
|
|
407
|
+
}), u("update:modelValue", s), u("update:name", m.join(", ")), u("to-change", s);
|
|
408
|
+
}, d = () => {
|
|
409
|
+
u("update:modelValue", c.arr), u("confirm", c.arr), l.$refs.multiple.blur();
|
|
410
|
+
}, f = w(() => A.countryOptions), z = w(() => window.$l("Countries or Regions"));
|
|
411
|
+
return q(
|
|
412
|
+
() => r.modelValue,
|
|
413
|
+
(s, m) => {
|
|
414
|
+
s && JSON.stringify(s) !== JSON.stringify(m) && (r.multiple ? c.arr = s : c.v = s);
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
immediate: !0
|
|
418
|
+
}
|
|
419
|
+
), (s, m) => {
|
|
420
|
+
const M = S("IconLoading"), O = S("CountryItem"), _ = S("el-option"), F = S("el-select"), L = S("el-button"), E = S("MultipleSelect");
|
|
421
|
+
return i(), $("div", Fe, [
|
|
422
|
+
o(c).loading ? (i(), v(M, { key: 0 })) : j("", !0),
|
|
423
|
+
r.multiple ? (i(), v(E, B({
|
|
424
|
+
key: 2,
|
|
425
|
+
ref: "multiple",
|
|
426
|
+
modelValue: o(c).arr,
|
|
427
|
+
"onUpdate:modelValue": m[1] || (m[1] = (b) => o(c).arr = b),
|
|
428
|
+
options: o(f),
|
|
429
|
+
placeholder: o(z)
|
|
430
|
+
}, s.$attrs, {
|
|
431
|
+
"multiple-limit": r.limit,
|
|
432
|
+
onChange: I
|
|
433
|
+
}), J({
|
|
434
|
+
default: h(({ it: b }) => [
|
|
435
|
+
V(O, {
|
|
436
|
+
name: b.value_lower
|
|
437
|
+
}, null, 8, ["name"])
|
|
438
|
+
]),
|
|
439
|
+
_: 2
|
|
440
|
+
}, [
|
|
441
|
+
r.useFooter ? {
|
|
442
|
+
name: "footer",
|
|
443
|
+
fn: h(() => [
|
|
444
|
+
R("div", je, [
|
|
445
|
+
V(L, {
|
|
446
|
+
type: "primary",
|
|
447
|
+
onClick: d
|
|
448
|
+
}, {
|
|
449
|
+
icon: h(() => [...m[2] || (m[2] = [
|
|
450
|
+
R("i", { class: "imicon im-search" }, null, -1)
|
|
451
|
+
])]),
|
|
452
|
+
default: h(() => [
|
|
453
|
+
le(" " + U(s.$l("Confirm")), 1)
|
|
454
|
+
]),
|
|
455
|
+
_: 1
|
|
456
|
+
})
|
|
457
|
+
])
|
|
458
|
+
]),
|
|
459
|
+
key: "0"
|
|
460
|
+
} : void 0
|
|
461
|
+
]), 1040, ["modelValue", "options", "placeholder", "multiple-limit"])) : (i(), v(F, B({
|
|
462
|
+
key: 1,
|
|
463
|
+
modelValue: o(c).v,
|
|
464
|
+
"onUpdate:modelValue": m[0] || (m[0] = (b) => o(c).v = b),
|
|
465
|
+
filterable: "",
|
|
466
|
+
placeholder: o(z),
|
|
467
|
+
class: "wp100"
|
|
468
|
+
}, s.$attrs, { onChange: C }), J({
|
|
469
|
+
default: h(() => [
|
|
470
|
+
r.useAll ? (i(), v(_, {
|
|
471
|
+
key: 0,
|
|
472
|
+
label: s.$l("All"),
|
|
473
|
+
value: r.allValue
|
|
474
|
+
}, null, 8, ["label", "value"])) : j("", !0),
|
|
475
|
+
(i(!0), $(ee, null, te(o(f), (b, Q) => (i(), v(_, {
|
|
476
|
+
key: b.value,
|
|
477
|
+
label: s.$l(b.label),
|
|
478
|
+
value: b.value_lower
|
|
479
|
+
}, {
|
|
480
|
+
default: h(() => [
|
|
481
|
+
V(O, {
|
|
482
|
+
name: b.value_lower
|
|
483
|
+
}, null, 8, ["name"])
|
|
484
|
+
]),
|
|
485
|
+
_: 2
|
|
486
|
+
}, 1032, ["label", "value"]))), 128))
|
|
487
|
+
]),
|
|
488
|
+
_: 2
|
|
489
|
+
}, [
|
|
490
|
+
o(c).v ? {
|
|
491
|
+
name: "prefix",
|
|
492
|
+
fn: h(() => [
|
|
493
|
+
V(O, {
|
|
494
|
+
name: o(c).v,
|
|
495
|
+
nolabel: ""
|
|
496
|
+
}, null, 8, ["name"])
|
|
497
|
+
]),
|
|
498
|
+
key: "0"
|
|
499
|
+
} : void 0
|
|
500
|
+
]), 1040, ["modelValue", "placeholder"]))
|
|
501
|
+
]);
|
|
502
|
+
};
|
|
503
|
+
}
|
|
504
|
+
}), Ye = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
505
|
+
__proto__: null,
|
|
506
|
+
default: Ee
|
|
507
|
+
}, Symbol.toStringTag, { value: "Module" })), Re = { class: "SuperCountryDiy" }, He = { class: "flexMode hr" }, Je = D({
|
|
508
|
+
name: "SuperCountryDiy"
|
|
509
|
+
}), Le = /* @__PURE__ */ Object.assign(Je, {
|
|
510
|
+
props: {
|
|
511
|
+
modelValue: {
|
|
512
|
+
tupe: [Array, String],
|
|
513
|
+
default: ""
|
|
514
|
+
},
|
|
515
|
+
multiple: {
|
|
516
|
+
type: Boolean,
|
|
517
|
+
default: !1
|
|
518
|
+
},
|
|
519
|
+
useFooter: {
|
|
520
|
+
type: Boolean,
|
|
521
|
+
default: !1
|
|
522
|
+
},
|
|
523
|
+
placeholder: {
|
|
524
|
+
type: String,
|
|
525
|
+
default: ""
|
|
526
|
+
},
|
|
527
|
+
options: {
|
|
528
|
+
type: Array,
|
|
529
|
+
default: () => []
|
|
530
|
+
}
|
|
531
|
+
},
|
|
532
|
+
emits: ["change", "update:modelValue"],
|
|
533
|
+
setup(N, { emit: k }) {
|
|
534
|
+
const r = N, l = x({
|
|
535
|
+
single: "",
|
|
536
|
+
multiple: []
|
|
537
|
+
}), { proxy: e } = W(), A = k, c = () => {
|
|
538
|
+
e.$refs.multiple.blur();
|
|
539
|
+
}, u = (d) => {
|
|
540
|
+
A("update:modelValue", d), A("change", d);
|
|
541
|
+
}, C = w(() => r.placeholder ? window.$l(r.placeholder) : window.$l("Country or Region")), I = w(() => r.options.sort((d, f) => d.label.localeCompare(f.label)));
|
|
542
|
+
return q(
|
|
543
|
+
() => r.modelValue,
|
|
544
|
+
(d, f) => {
|
|
545
|
+
JSON.stringify(d) !== JSON.stringify(f) && (r.multiple ? l.multiple = d : l.single = d);
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
immediate: !0
|
|
549
|
+
}
|
|
550
|
+
), (d, f) => {
|
|
551
|
+
const z = S("CountryItem"), s = S("el-button"), m = S("MultipleSelect"), M = S("el-option"), O = S("el-select");
|
|
552
|
+
return i(), $("div", Re, [
|
|
553
|
+
r.multiple ? (i(), v(m, B({
|
|
554
|
+
key: 0,
|
|
555
|
+
ref: "multiple",
|
|
556
|
+
modelValue: o(l).multiple,
|
|
557
|
+
"onUpdate:modelValue": f[0] || (f[0] = (_) => o(l).multiple = _),
|
|
558
|
+
placeholder: o(C)
|
|
559
|
+
}, d.$attrs, {
|
|
560
|
+
options: o(I),
|
|
561
|
+
onChange: u
|
|
562
|
+
}), J({
|
|
563
|
+
default: h(({ it: _ }) => [
|
|
564
|
+
V(z, {
|
|
565
|
+
name: _.value
|
|
566
|
+
}, null, 8, ["name"])
|
|
567
|
+
]),
|
|
568
|
+
_: 2
|
|
569
|
+
}, [
|
|
570
|
+
r.useFooter ? {
|
|
571
|
+
name: "footer",
|
|
572
|
+
fn: h(() => [
|
|
573
|
+
R("div", He, [
|
|
574
|
+
V(s, {
|
|
575
|
+
type: "primary",
|
|
576
|
+
onClick: c
|
|
577
|
+
}, {
|
|
578
|
+
default: h(() => [
|
|
579
|
+
le(U(d.$l("Confirm")), 1)
|
|
580
|
+
]),
|
|
581
|
+
_: 1
|
|
582
|
+
})
|
|
583
|
+
])
|
|
584
|
+
]),
|
|
585
|
+
key: "0"
|
|
586
|
+
} : d.$slots.footer ? {
|
|
587
|
+
name: "footer",
|
|
588
|
+
fn: h(() => [
|
|
589
|
+
H(d.$slots, "footer")
|
|
590
|
+
]),
|
|
591
|
+
key: "1"
|
|
592
|
+
} : void 0
|
|
593
|
+
]), 1040, ["modelValue", "placeholder", "options"])) : (i(), v(O, B({
|
|
594
|
+
key: 1,
|
|
595
|
+
modelValue: o(l).single,
|
|
596
|
+
"onUpdate:modelValue": f[1] || (f[1] = (_) => o(l).single = _),
|
|
597
|
+
placeholder: o(C)
|
|
598
|
+
}, d.$attrs, { onChange: u }), J({
|
|
599
|
+
default: h(() => [
|
|
600
|
+
(i(!0), $(ee, null, te(o(I), (_, F) => (i(), v(M, {
|
|
601
|
+
key: F,
|
|
602
|
+
label: d.$l(_.label),
|
|
603
|
+
value: _.value
|
|
604
|
+
}, {
|
|
605
|
+
default: h(() => [
|
|
606
|
+
V(z, {
|
|
607
|
+
name: _.value
|
|
608
|
+
}, null, 8, ["name"])
|
|
609
|
+
]),
|
|
610
|
+
_: 2
|
|
611
|
+
}, 1032, ["label", "value"]))), 128))
|
|
612
|
+
]),
|
|
613
|
+
_: 2
|
|
614
|
+
}, [
|
|
615
|
+
o(l).single ? {
|
|
616
|
+
name: "prefix",
|
|
617
|
+
fn: h(() => [
|
|
618
|
+
V(z, {
|
|
619
|
+
name: o(l).single,
|
|
620
|
+
nolabel: ""
|
|
621
|
+
}, null, 8, ["name"])
|
|
622
|
+
]),
|
|
623
|
+
key: "0"
|
|
624
|
+
} : void 0
|
|
625
|
+
]), 1040, ["modelValue", "placeholder"]))
|
|
626
|
+
]);
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
}), Ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
630
|
+
__proto__: null,
|
|
631
|
+
default: Le
|
|
632
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
633
|
+
export {
|
|
634
|
+
Ye as C,
|
|
635
|
+
Xe as G,
|
|
636
|
+
Qe as H,
|
|
637
|
+
Ze as a,
|
|
638
|
+
qe as f
|
|
639
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineAsyncComponent as n } from "vue";
|
|
2
|
+
const t = /* @__PURE__ */ Object.assign({ "./Mvc/Card/index.vue": () => import("./Card.js"), "./Mvc/Icon/index.vue": () => import("./Icon.js"), "./Mvc/Image/index.vue": () => import("./Image.js"), "./Mvc/Input/index.vue": () => import("./Input.js"), "./Mvc/Nodata/index.vue": () => import("./Nodata.js"), "./Mvc/Page/index.vue": () => import("./Page.js"), "./Mvc/Textarea/index.vue": () => import("./Textarea.js") }), o = {};
|
|
3
|
+
for (const e in t) {
|
|
4
|
+
const i = e.match(/Mvc\/(\S*)\/index.vue/)[1];
|
|
5
|
+
o[i] = n(t[e]);
|
|
6
|
+
}
|
|
7
|
+
const r = /* @__PURE__ */ Object.assign({ "./Super/AiApp/index.vue": () => import("./AiApp.js"), "./Super/AiOrg/index.vue": () => import("./AiOrg.js"), "./Super/AsaAdGroup/index.vue": () => import("./AsaAdGroup.js"), "./Super/AsaApp/index.vue": () => import("./AsaApp.js"), "./Super/AsaCampaign/index.vue": () => import("./AsaCampaign.js"), "./Super/AsaOrg/index.vue": () => import("./AsaOrg.js"), "./Super/Country/index.vue": () => import("./Country.js"), "./Super/CountryItem/index.vue": () => import("./CountryItem.js"), "./Super/DatePicker/index.vue": () => import("./DatePicker.js"), "./Super/EChart/index.vue": () => import("./EChart.js"), "./Super/Form/index.vue": () => import("./Form.js"), "./Super/MultipleSelect/index.vue": () => import("./MultipleSelect.js"), "./Super/Org/index.vue": () => import("./Org.js"), "./Super/StatusItem/index.vue": () => import("./StatusItem.js"), "./Super/StatusSelect/index.vue": () => import("./StatusSelect.js"), "./Super/Table/index.vue": () => import("./Table.js"), "./Super/Timezone/index.vue": () => import("./Timezone.js") }), u = {};
|
|
8
|
+
for (const e in r) {
|
|
9
|
+
const i = e.match(/Super\/(\S*)\/index.vue/)[1];
|
|
10
|
+
u[i] = n(r[e]);
|
|
11
|
+
}
|
|
12
|
+
const p = {
|
|
13
|
+
...o,
|
|
14
|
+
...u
|
|
15
|
+
}, v = (e) => {
|
|
16
|
+
for (let i in p)
|
|
17
|
+
e.component(i, p[i]);
|
|
18
|
+
};
|
|
19
|
+
export {
|
|
20
|
+
v as c
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.MvcCard[data-v-348c485a]{height:100%}.MvcCard .cardArea[data-v-348c485a]{background-color:var(--mg-white);border-radius:8px;box-shadow:0 0 8px var(--mg-gray1)}.MvcCard .cardArea.nobg[data-v-348c485a]{background-color:transparent;box-shadow:none}.MvcCard .cardArea.miniArea[data-v-348c485a]{height:0;overflow:hidden}.MvcCard .cardHeader[data-v-348c485a]{height:50px}.MvcCard .cardFooter[data-v-348c485a]{display:flex;align-items:center;padding:12px 16px;border-radius:0 0 calc(var(--mg-radius) * .8) calc(var(--mg-radius) * .8);border-top:thin solid var(--mg-dark1);color:var(--mg-dark9)}.MvcCard.small[data-v-348c485a]{border-radius:var(--mg-radius)}.MvcCard.small .cardHeader[data-v-348c485a]{height:36px;padding:0 8px;font-size:14px;border-radius:var(--mg-radius) var(--mg-radius) 0 0}.MvcCard.small .cardBody.PageAfter[data-v-348c485a]:after{border-radius:0 0 var(--mg-radius) var(--mg-radius)}.MvcCard.primary[data-v-348c485a]{background-color:var(--mg-primary)}.MvcCard.primary .cardHeader[data-v-348c485a]{border-bottom-color:var(--mg-white1);background-color:var(--mg-gray1);color:var(--mg-white9)}.MvcCard.primary .cardFooter[data-v-348c485a]{border-top-color:var(--mg-white1);color:var(--mg-white9)}.MvcCard.green[data-v-348c485a]{background-color:var(--mg-green)}.MvcCard.green .cardHeader[data-v-348c485a]{border-bottom-color:var(--mg-white1);background-color:dvar(--mg-gray1);color:var(--mg-white9)}.MvcCard.green .cardFooter[data-v-348c485a]{border-top-color:var(--mg-white1);color:var(--mg-white9)}.MvcCard.orange[data-v-348c485a]{background-color:var(--mg-orange)}.MvcCard.orange .cardHeader[data-v-348c485a]{border-bottom-color:var(--mg-white1);background-color:dvar(--mg-gray1);color:var(--mg-white9)}.MvcCard.orange .cardFooter[data-v-348c485a]{border-top-color:var(--mg-white1);color:var(--mg-white9)}.MvcCard.blue[data-v-348c485a]{background-color:var(--mg-blue)}.MvcCard.blue .cardHeader[data-v-348c485a]{border-bottom-color:var(--mg-white1);background-color:dvar(--mg-gray1);color:var(--mg-white9)}.MvcCard.blue .cardFooter[data-v-348c485a]{border-top-color:var(--mg-white1);color:var(--mg-white9)}.MvcCard.red[data-v-348c485a]{background-color:var(--mg-red)}.MvcCard.red .cardHeader[data-v-348c485a]{border-bottom-color:var(--mg-white1);background-color:dvar(--mg-gray1);color:var(--mg-white9)}.MvcCard.red .cardFooter[data-v-348c485a]{border-top-color:var(--mg-white1);color:var(--mg-white9)}.MvcCard.pink[data-v-348c485a]{background-color:var(--mg-pink)}.MvcCard.pink .cardHeader[data-v-348c485a]{border-bottom-color:var(--mg-white1);background-color:dvar(--mg-gray1);color:var(--mg-white9)}.MvcCard.pink .cardFooter[data-v-348c485a]{border-top-color:var(--mg-white1);color:var(--mg-white9)}.MvcCard.purple[data-v-348c485a]{background-color:var(--mg-purple)}.MvcCard.purple .cardHeader[data-v-348c485a]{border-bottom-color:var(--mg-white3);background-color:dvar(--mg-gray1);color:var(--mg-white9)}.MvcCard.purple .cardFooter[data-v-348c485a]{border-top-color:var(--mg-white3);color:var(--mg-white9)}.MvcCard.dark[data-v-348c485a]{background-color:var(--mg-dark)}.MvcCard.dark .cardHeader[data-v-348c485a]{border-bottom-color:var(--mg-white3);color:var(--mg-white9);background-color:dvar(--mg-gray1)}.MvcCard.dark .cardFooter[data-v-348c485a]{border-top-color:var(--mg-white3);color:var(--mg-white9)}.MvcCard.lime[data-v-348c485a]{background-color:var(--mg-lime)}.MvcCard.lime .cardHeader[data-v-348c485a]{border-bottom-color:var(--mg-white3);color:var(--mg-white9);background-color:dvar(--mg-gray1)}.MvcCard.lime .cardFooter[data-v-348c485a]{border-top-color:var(--mg-white3);color:var(--mg-white9)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.EChart[data-v-7f979230]{display:flex;justify-content:center;width:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ToolArea[data-v-e46db4e1]{position:relative;z-index:2;display:flex;align-items:center;justify-content:center}.ToolArea .badge[data-v-e46db4e1]{position:absolute;z-index:3;top:-4px;left:16px;height:16px;font-size:12px;padding:0 4px;color:var(--mg-white);background-color:var(--mg-red);border:1px solid var(--mg-white);border-radius:8px}.ToolArea .filterArea[data-v-e46db4e1]{position:absolute;right:48px;width:432px;border-radius:8px;background-color:var(--mg-white);box-shadow:0 8px 16px var(--mg-dark1),0 4px 8px var(--mg-dark1),0 2px 4px var(--mg-dark1)}.ColumnConfigDragItem .arrowLeft[data-v-4812bddc],.ColumnConfigDragItem .arrowRight[data-v-4812bddc],.ColumnConfigDragItem .editIcon[data-v-4812bddc]{opacity:1}.ColumnConfigDragItem .dragCenter[data-v-4812bddc]{transition:var(--mg-trans-in);transform:translate(0)}.ColumnConfigDragItem .itemArea[data-v-4812bddc]:after{content:"";position:absolute;top:4px;left:0;bottom:4px;width:4px;border:4px solid var(--mg-primary);border-radius:2px 0 0 2px;border-right:none;transform:translate(-8px);transition:transform .1s linear}.ColumnConfigDragItem .itemArea[data-v-4812bddc]:before{content:"";position:absolute;top:4px;right:0;bottom:4px;width:4px;border:4px solid var(--mg-primary);border-radius:0 2px 2px 0;border-left:none;transform:translate(8px);transition:transform .1s linear}.ColumnConfigDragItem .itemArea.edit[data-v-4812bddc]{background-color:var(--mg-ad)!important;cursor:default!important}.ColumnConfigDragItem .itemArea.edit[data-v-4812bddc]:after{transform:translate(4px)}.ColumnConfigDragItem .itemArea.edit[data-v-4812bddc]:before{transform:translate(-4px)}.ColumnConfigDragItem .itemArea:hover .arrowLeft[data-v-4812bddc],.ColumnConfigDragItem .itemArea:hover .arrowRight[data-v-4812bddc],.ColumnConfigDragItem .itemArea:hover .editIcon[data-v-4812bddc]{opacity:1}.ColumnConfigDragItem.left .arrowLeft[data-v-4812bddc]{display:none}.ColumnConfigDragItem.left .dragCenter[data-v-4812bddc]{transform:translate(12px)}.ColumnConfigDragItem.right .arrowRight[data-v-4812bddc]{display:none}.ColumnConfigDragItem:not(.drag) .arrowLeft[data-v-4812bddc],.ColumnConfigDragItem:not(.drag) .arrowRight[data-v-4812bddc]{display:none}.ColumnConfigDragItem:not(.drag) .dragCenter[data-v-4812bddc]{transform:translate(7px)!important}.editArea[data-v-4812bddc]{padding:4px 8px;border-top:1px var(--mg-dark3) dashed;border-bottom:1px var(--mg-dark3) dashed}.dragBody[data-v-849ae649]{overflow-x:hidden}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.MvcTableFooter .FooterArea[data-v-58138e74]{display:flex;align-items:center;height:64px;width:100%;padding:0 16px;background-color:var(--mg-white9);border-radius:0 0 8px 8px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.countArea[data-v-f9e0f398]{right:28px;top:1px;height:40px}.countArea.nowrap[data-v-f9e0f398]{bottom:1px}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.SuperNodata[data-v-0714983f]{display:flex;align-items:center;justify-content:center;height:100%;width:100%}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.PageHeader[data-v-fb447dc9]{background-color:var(--mg-white);box-shadow:0 4px 4px var(--mg-dark1)}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.Table[data-v-d7014bcf]{position:relative;z-index:1}
|