@ecan-bi/indicator-library 0.3.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/editor.worker-02df2e61.js +1 -1
- package/dist/assets/json.worker-867823a6.js +1 -1
- package/dist/assets/ts.worker-7254b425.js +1 -1
- package/dist/index.es.js +282 -269
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
- package/types/env.d.ts +3 -5
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*! @ecan-bi/indicator-library@0.
|
|
2
|
-
import { defineComponent as ne, inject as K, unref as p, computed as R, ref as B, reactive as pn, onMounted as Ee, resolveComponent as E, openBlock as
|
|
1
|
+
/*! @ecan-bi/indicator-library@1.0.0 */
|
|
2
|
+
import { defineComponent as ne, inject as K, unref as p, computed as R, ref as B, reactive as pn, onMounted as Ee, resolveComponent as E, openBlock as w, createElementBlock as N, createVNode as O, withCtx as P, createElementVNode as Y, Fragment as ee, renderList as se, createTextVNode as J, toDisplayString as le, h as Xn, nextTick as tn, createBlock as H, createCommentVNode as ae, watch as ue, resolveDirective as fn, withModifiers as ce, withDirectives as vn, provide as ge, pushScopeId as mn, popScopeId as hn, mergeProps as pt, createSlots as ja, normalizeStyle as Le, withKeys as Ra, onBeforeUnmount as qo, onUnmounted as Yo, Teleport as Ba, Transition as Va, toRaw as Ga, resolveDynamicComponent as Rt, toHandlers as Kn } from "vue";
|
|
3
3
|
import { debounce as Xo, reduce as za, pick as Ko, cloneDeep as it, without as Ua } from "lodash-es";
|
|
4
4
|
import { Spin as gn, TreeSelect as Ha, InputSearch as Wa, Pagination as qa, Modal as gt, Button as yn, Select as Ze, SelectOption as yt, Input as Qe, Checkbox as Jo, Collapse as Zo, CollapsePanel as Qo, Tag as Ya, CheckableTag as Xa, message as Ie, Row as Ka, Col as Ja, Textarea as bn, Form as Jn, FormItem as ea, Card as Za, Dropdown as Qa, Menu as er, SubMenu as tr, MenuItem as nr, MenuDivider as or, InputNumber as ar, RadioGroup as rr, RadioButton as lr, Switch as ta, Tabs as ir, TabPane as sr } from "ant-design-vue";
|
|
5
5
|
import na from "vuedraggable";
|
|
@@ -292,32 +292,36 @@ const Me = ((Wo = window == null ? void 0 : window.config) == null ? void 0 : Wo
|
|
|
292
292
|
selectable: !1,
|
|
293
293
|
isLeaf: !0
|
|
294
294
|
}), l = async () => {
|
|
295
|
-
var
|
|
295
|
+
var x, _;
|
|
296
296
|
const v = a.value;
|
|
297
297
|
r.value = !0;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
298
|
+
try {
|
|
299
|
+
const { data: k } = await e.post(
|
|
300
|
+
`${Me}/diagram/sourceList`,
|
|
301
|
+
{
|
|
302
|
+
source: "SQL_VIEW",
|
|
303
|
+
dataViewId: v,
|
|
304
|
+
pageFlag: !0
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
headers: {
|
|
308
|
+
Authentication: t,
|
|
309
|
+
operateContext: "ygt"
|
|
310
|
+
}
|
|
309
311
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
312
|
+
);
|
|
313
|
+
r.value = !1, k.success && ((x = s.value) == null || x.push(i), s.value = (_ = s.value) == null ? void 0 : _.concat(
|
|
314
|
+
u([k.data.rows[0]], "YXJG")
|
|
315
|
+
));
|
|
316
|
+
} catch {
|
|
317
|
+
r.value = !1;
|
|
318
|
+
}
|
|
319
|
+
}, u = (v = [], x) => {
|
|
316
320
|
const _ = [];
|
|
317
321
|
return v.forEach((k) => {
|
|
318
322
|
_.push({
|
|
319
323
|
id: k.id,
|
|
320
|
-
pId:
|
|
324
|
+
pId: x ?? k.parentId,
|
|
321
325
|
value: k.id,
|
|
322
326
|
title: k.name,
|
|
323
327
|
isLeaf: k.leaf || !1,
|
|
@@ -325,7 +329,7 @@ const Me = ((Wo = window == null ? void 0 : window.config) == null ? void 0 : Wo
|
|
|
325
329
|
selectable: k.leaf || !1
|
|
326
330
|
});
|
|
327
331
|
}), _;
|
|
328
|
-
}, c = async (v,
|
|
332
|
+
}, c = async (v, x) => {
|
|
329
333
|
var y;
|
|
330
334
|
let _ = 0;
|
|
331
335
|
if (v) {
|
|
@@ -347,7 +351,7 @@ const Me = ((Wo = window == null ? void 0 : window.config) == null ? void 0 : Wo
|
|
|
347
351
|
);
|
|
348
352
|
k.success && (s.value = (y = p(s)) == null ? void 0 : y.concat(
|
|
349
353
|
u(k.data)
|
|
350
|
-
),
|
|
354
|
+
), x && p(a) && await l());
|
|
351
355
|
}, d = (v) => {
|
|
352
356
|
b(v), o({
|
|
353
357
|
dataViewId: v,
|
|
@@ -363,42 +367,46 @@ const Me = ((Wo = window == null ? void 0 : window.config) == null ? void 0 : Wo
|
|
|
363
367
|
// eslint-disable-next-line
|
|
364
368
|
setDataList: (v) => v
|
|
365
369
|
}), m = B(!1), h = B([]), b = async (v) => {
|
|
366
|
-
if (
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
370
|
+
if (v) {
|
|
371
|
+
h.value = [], m.value = !0;
|
|
372
|
+
try {
|
|
373
|
+
const x = await e.post(
|
|
374
|
+
`${Me}/diagram/sourceList`,
|
|
375
|
+
{
|
|
376
|
+
source: "SQL_VIEW",
|
|
377
|
+
dataViewId: v,
|
|
378
|
+
pageFlag: !0
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
headers: {
|
|
382
|
+
Authentication: t,
|
|
383
|
+
operateContext: "ygt"
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
), { success: _, data: k = {} } = x.data;
|
|
387
|
+
if (m.value = !1, _) {
|
|
388
|
+
const { rows: y = [] } = k;
|
|
389
|
+
y == null || y.forEach(($) => {
|
|
390
|
+
var I;
|
|
391
|
+
const F = ((I = $ == null ? void 0 : $.dataViewColumns) == null ? void 0 : I.map((G) => ({
|
|
392
|
+
...G,
|
|
393
|
+
// 复选框
|
|
394
|
+
show: !0
|
|
395
|
+
}))) || [];
|
|
396
|
+
h.value = [...p(h), ...F];
|
|
397
|
+
}), f(p(h));
|
|
380
398
|
}
|
|
399
|
+
} catch {
|
|
400
|
+
m.value = !1;
|
|
381
401
|
}
|
|
382
|
-
), { success: _, data: k = {} } = w.data;
|
|
383
|
-
if (m.value = !1, _) {
|
|
384
|
-
const { rows: y = [] } = k;
|
|
385
|
-
y == null || y.forEach(($) => {
|
|
386
|
-
var I;
|
|
387
|
-
const F = ((I = $ == null ? void 0 : $.dataViewColumns) == null ? void 0 : I.map((G) => ({
|
|
388
|
-
...G,
|
|
389
|
-
// 复选框
|
|
390
|
-
show: !0
|
|
391
|
-
}))) || [];
|
|
392
|
-
h.value = [...p(h), ...F];
|
|
393
|
-
}), f(p(h));
|
|
394
402
|
}
|
|
395
403
|
}, g = (v) => ({
|
|
396
404
|
TEXT: "字符",
|
|
397
405
|
NUMBER: "数字",
|
|
398
406
|
DATE: "时间"
|
|
399
|
-
})[v], D = (v,
|
|
407
|
+
})[v], D = (v, x) => {
|
|
400
408
|
var _;
|
|
401
|
-
(_ = v.dataTransfer) == null || _.setData("list-item", JSON.stringify(
|
|
409
|
+
(_ = v.dataTransfer) == null || _.setData("list-item", JSON.stringify(x));
|
|
402
410
|
};
|
|
403
411
|
return Ee(async () => {
|
|
404
412
|
await c(void 0, !0), b(p(a));
|
|
@@ -423,7 +431,7 @@ const ie = (e, t) => {
|
|
|
423
431
|
}, br = { class: "data-view-list" }, Cr = { class: "columns" }, xr = ["onDragstart"], wr = { class: "column-item-name" };
|
|
424
432
|
function Sr(e, t, n, o, a, r) {
|
|
425
433
|
const s = E("a-tree-select"), i = E("a-spin");
|
|
426
|
-
return
|
|
434
|
+
return w(), N("div", br, [
|
|
427
435
|
O(i, {
|
|
428
436
|
"wrapper-class-name": "tree-spin",
|
|
429
437
|
spinning: e.treeSelectLoading,
|
|
@@ -449,7 +457,7 @@ function Sr(e, t, n, o, a, r) {
|
|
|
449
457
|
tip: "数据加载中..."
|
|
450
458
|
}, {
|
|
451
459
|
default: P(() => [
|
|
452
|
-
(
|
|
460
|
+
(w(!0), N(ee, null, se(e.dataViewList, (l) => (w(), N("div", {
|
|
453
461
|
key: l.id
|
|
454
462
|
}, [
|
|
455
463
|
Y("div", {
|
|
@@ -467,7 +475,7 @@ function Sr(e, t, n, o, a, r) {
|
|
|
467
475
|
])
|
|
468
476
|
]);
|
|
469
477
|
}
|
|
470
|
-
const _r = /* @__PURE__ */ ie(yr, [["render", Sr], ["__scopeId", "data-v-
|
|
478
|
+
const _r = /* @__PURE__ */ ie(yr, [["render", Sr], ["__scopeId", "data-v-50c82fab"]]);
|
|
471
479
|
function ye(e, t) {
|
|
472
480
|
Ar(e) && (e = "100%");
|
|
473
481
|
var n = Lr(e);
|
|
@@ -1206,7 +1214,7 @@ var nt = function(t, n) {
|
|
|
1206
1214
|
var g = l ? {
|
|
1207
1215
|
msTransform: "rotate(".concat(l, "deg)"),
|
|
1208
1216
|
transform: "rotate(".concat(l, "deg)")
|
|
1209
|
-
} : void 0, D = pa(c), v = sl(D, 2),
|
|
1217
|
+
} : void 0, D = pa(c), v = sl(D, 2), x = v[0], _ = v[1];
|
|
1210
1218
|
return O("span", po({
|
|
1211
1219
|
role: "img",
|
|
1212
1220
|
"aria-label": s.name
|
|
@@ -1216,7 +1224,7 @@ var nt = function(t, n) {
|
|
|
1216
1224
|
}), [O(wn, {
|
|
1217
1225
|
class: h,
|
|
1218
1226
|
icon: s,
|
|
1219
|
-
primaryColor:
|
|
1227
|
+
primaryColor: x,
|
|
1220
1228
|
secondaryColor: _,
|
|
1221
1229
|
style: g
|
|
1222
1230
|
}, null)]);
|
|
@@ -1488,26 +1496,31 @@ const Xl = $n, Kl = ne({
|
|
|
1488
1496
|
},
|
|
1489
1497
|
indexName: p(l),
|
|
1490
1498
|
dataSourceId: p(a)
|
|
1491
|
-
}
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1499
|
+
};
|
|
1500
|
+
try {
|
|
1501
|
+
const D = await e.post(
|
|
1502
|
+
`${Me}/diagram/sourceList`,
|
|
1503
|
+
g,
|
|
1504
|
+
{
|
|
1505
|
+
headers: {
|
|
1506
|
+
Authentication: t,
|
|
1507
|
+
operateContext: "ygt"
|
|
1508
|
+
}
|
|
1498
1509
|
}
|
|
1510
|
+
);
|
|
1511
|
+
s.value = !1;
|
|
1512
|
+
const { success: v, data: x = {} } = D.data;
|
|
1513
|
+
if (v) {
|
|
1514
|
+
const { rows: _ = [], total: k = 0 } = x;
|
|
1515
|
+
_ == null || _.forEach((y) => {
|
|
1516
|
+
var $;
|
|
1517
|
+
y.show = !1, ($ = y.dataViewColumns) == null || $.forEach((F) => {
|
|
1518
|
+
F.show = !0, F.edit = !1;
|
|
1519
|
+
});
|
|
1520
|
+
}), r.value = _, i.totalResult = +k;
|
|
1499
1521
|
}
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
const { success: v, data: w = {} } = D.data;
|
|
1503
|
-
if (v) {
|
|
1504
|
-
const { rows: _ = [], total: k = 0 } = w;
|
|
1505
|
-
_ == null || _.forEach((y) => {
|
|
1506
|
-
var $;
|
|
1507
|
-
y.show = !1, ($ = y.dataViewColumns) == null || $.forEach((F) => {
|
|
1508
|
-
F.show = !0, F.edit = !1;
|
|
1509
|
-
});
|
|
1510
|
-
}), r.value = _, i.totalResult = +k;
|
|
1522
|
+
} catch {
|
|
1523
|
+
s.value = !1;
|
|
1511
1524
|
}
|
|
1512
1525
|
}, c = (g) => ({
|
|
1513
1526
|
DIM: "维度",
|
|
@@ -1543,7 +1556,7 @@ const Xl = $n, Kl = ne({
|
|
|
1543
1556
|
const Jl = { class: "data-source-list" }, Zl = { class: "columns" }, Ql = { class: "column-item" }, ei = ["onClick"], ti = { key: 0 }, ni = ["onDragstart"], oi = { class: "column-child-item-name" };
|
|
1544
1557
|
function ai(e, t, n, o, a, r) {
|
|
1545
1558
|
const s = E("a-input-search"), i = E("caret-down-outlined"), l = E("caret-right-outlined"), u = E("a-spin"), c = E("a-pagination");
|
|
1546
|
-
return
|
|
1559
|
+
return w(), N("div", Jl, [
|
|
1547
1560
|
O(s, {
|
|
1548
1561
|
value: e.searchText,
|
|
1549
1562
|
"onUpdate:value": t[0] || (t[0] = (d) => e.searchText = d),
|
|
@@ -1558,7 +1571,7 @@ function ai(e, t, n, o, a, r) {
|
|
|
1558
1571
|
tip: "数据源加载中..."
|
|
1559
1572
|
}, {
|
|
1560
1573
|
default: P(() => [
|
|
1561
|
-
(
|
|
1574
|
+
(w(!0), N(ee, null, se(e.dataSourceList, (d, f) => (w(), N("div", {
|
|
1562
1575
|
key: d.id
|
|
1563
1576
|
}, [
|
|
1564
1577
|
Y("div", Ql, [
|
|
@@ -1566,12 +1579,12 @@ function ai(e, t, n, o, a, r) {
|
|
|
1566
1579
|
style: { cursor: "pointer" },
|
|
1567
1580
|
onClick: (m) => e.onToggleGroup(f)
|
|
1568
1581
|
}, [
|
|
1569
|
-
d.show ? (
|
|
1582
|
+
d.show ? (w(), H(i, { key: 0 })) : (w(), H(l, { key: 1 })),
|
|
1570
1583
|
J(" " + le(d.name), 1)
|
|
1571
1584
|
], 8, ei)
|
|
1572
1585
|
]),
|
|
1573
|
-
d.show ? (
|
|
1574
|
-
(
|
|
1586
|
+
d.show ? (w(), N("div", ti, [
|
|
1587
|
+
(w(!0), N(ee, null, se(d.dataViewColumns, (m) => (w(), N("div", {
|
|
1575
1588
|
class: "column-child-item",
|
|
1576
1589
|
key: m.id,
|
|
1577
1590
|
draggable: !0,
|
|
@@ -1599,7 +1612,7 @@ function ai(e, t, n, o, a, r) {
|
|
|
1599
1612
|
}, null, 8, ["pageSize", "total", "show-total", "current", "onChange"])
|
|
1600
1613
|
]);
|
|
1601
1614
|
}
|
|
1602
|
-
const ri = /* @__PURE__ */ ie(Kl, [["render", ai], ["__scopeId", "data-v-
|
|
1615
|
+
const ri = /* @__PURE__ */ ie(Kl, [["render", ai], ["__scopeId", "data-v-6d86fd0b"]]), li = ne({
|
|
1603
1616
|
name: "DataList",
|
|
1604
1617
|
components: {
|
|
1605
1618
|
DataSourceList: ri,
|
|
@@ -1613,9 +1626,9 @@ const ri = /* @__PURE__ */ ie(Kl, [["render", ai], ["__scopeId", "data-v-70ed8ae
|
|
|
1613
1626
|
});
|
|
1614
1627
|
function ii(e, t, n, o, a, r) {
|
|
1615
1628
|
const s = E("data-view-list"), i = E("data-source-list");
|
|
1616
|
-
return
|
|
1617
|
-
e.source === "SQL_VIEW" ? (
|
|
1618
|
-
e.source === "INDICATOR_LIB" ? (
|
|
1629
|
+
return w(), N(ee, null, [
|
|
1630
|
+
e.source === "SQL_VIEW" ? (w(), H(s, { key: 0 })) : ae("", !0),
|
|
1631
|
+
e.source === "INDICATOR_LIB" ? (w(), H(i, { key: 1 })) : ae("", !0)
|
|
1619
1632
|
], 64);
|
|
1620
1633
|
}
|
|
1621
1634
|
const si = /* @__PURE__ */ ie(li, [["render", ii]]), ma = {
|
|
@@ -1658,15 +1671,15 @@ const si = /* @__PURE__ */ ie(li, [["render", ii]]), ma = {
|
|
|
1658
1671
|
Authentication: o,
|
|
1659
1672
|
operateContext: "ygt"
|
|
1660
1673
|
}
|
|
1661
|
-
}), { success:
|
|
1662
|
-
|
|
1674
|
+
}), { success: x, data: _ = [] } = v.data;
|
|
1675
|
+
x && (l.value = _ == null ? void 0 : _.slice(0, 200));
|
|
1663
1676
|
} catch (v) {
|
|
1664
1677
|
console.error(v);
|
|
1665
1678
|
}
|
|
1666
1679
|
}, c = () => {
|
|
1667
1680
|
var y;
|
|
1668
|
-
const v = ((y = p(a)[e.type]) == null ? void 0 : y.slice()) || [],
|
|
1669
|
-
|
|
1681
|
+
const v = ((y = p(a)[e.type]) == null ? void 0 : y.slice()) || [], x = v[e.index], { label: _, name: k } = e.item;
|
|
1682
|
+
x.sort = {
|
|
1670
1683
|
label: _,
|
|
1671
1684
|
columnName: k,
|
|
1672
1685
|
type: "CUSTOM",
|
|
@@ -1688,9 +1701,9 @@ const si = /* @__PURE__ */ ie(li, [["render", ii]]), ma = {
|
|
|
1688
1701
|
return t({
|
|
1689
1702
|
showModal: h
|
|
1690
1703
|
}), ue(m, (v) => {
|
|
1691
|
-
var
|
|
1704
|
+
var x, _;
|
|
1692
1705
|
if (v) {
|
|
1693
|
-
const k = (_ = (
|
|
1706
|
+
const k = (_ = (x = e.item) == null ? void 0 : x.sort) == null ? void 0 : _.customOrderColumns;
|
|
1694
1707
|
k == null ? u() : l.value = k;
|
|
1695
1708
|
} else
|
|
1696
1709
|
l.value = [];
|
|
@@ -1703,8 +1716,8 @@ const si = /* @__PURE__ */ ie(li, [["render", ii]]), ma = {
|
|
|
1703
1716
|
onChange: f,
|
|
1704
1717
|
onDeleteConfig: () => {
|
|
1705
1718
|
var y;
|
|
1706
|
-
const v = ((y = p(a)[e.type]) == null ? void 0 : y.slice()) || [],
|
|
1707
|
-
|
|
1719
|
+
const v = ((y = p(a)[e.type]) == null ? void 0 : y.slice()) || [], x = v[e.index], { label: _, name: k } = e.item;
|
|
1720
|
+
x.sort = {
|
|
1708
1721
|
label: _,
|
|
1709
1722
|
columnName: k
|
|
1710
1723
|
}, r({
|
|
@@ -1717,7 +1730,7 @@ const si = /* @__PURE__ */ ie(li, [["render", ii]]), ma = {
|
|
|
1717
1730
|
const ci = { class: "button-wrapper" }, di = { class: "sort-item" };
|
|
1718
1731
|
function pi(e, t, n, o, a, r) {
|
|
1719
1732
|
const s = E("a-button"), i = E("draggable"), l = E("a-modal");
|
|
1720
|
-
return
|
|
1733
|
+
return w(), H(l, {
|
|
1721
1734
|
title: "进行拖拽排序",
|
|
1722
1735
|
visible: e.visible,
|
|
1723
1736
|
"destroy-on-close": "",
|
|
@@ -1860,7 +1873,7 @@ const fi = /* @__PURE__ */ ie(ui, [["render", pi], ["__scopeId", "data-v-1decfaa
|
|
|
1860
1873
|
}, v = (j, U) => {
|
|
1861
1874
|
const S = j.target.value;
|
|
1862
1875
|
p(u).has(S) && Ie.error("组名不能相同,请修改"), p(l)[U].title = S, a = !0;
|
|
1863
|
-
},
|
|
1876
|
+
}, x = K(Se), _ = K(ze), k = R(() => p(x).source), y = R(() => p(x).dataViewId), $ = B(!1), F = () => {
|
|
1864
1877
|
var L, M;
|
|
1865
1878
|
const j = p(l);
|
|
1866
1879
|
let U = "";
|
|
@@ -1870,7 +1883,7 @@ const fi = /* @__PURE__ */ ie(ui, [["render", pi], ["__scopeId", "data-v-1decfaa
|
|
|
1870
1883
|
const te = j[V] || {}, { title: oe, data: re } = te;
|
|
1871
1884
|
C[oe] = (re == null ? void 0 : re.map((de) => de.label)) || [];
|
|
1872
1885
|
}
|
|
1873
|
-
const T = ((M = p(
|
|
1886
|
+
const T = ((M = p(x)[e.type]) == null ? void 0 : M.slice()) || [], A = T[e.index];
|
|
1874
1887
|
A.customGroup = {
|
|
1875
1888
|
groupInfoMap: C,
|
|
1876
1889
|
otherGroupName: U
|
|
@@ -1970,7 +1983,7 @@ const fi = /* @__PURE__ */ ie(ui, [["render", pi], ["__scopeId", "data-v-1decfaa
|
|
|
1970
1983
|
const mi = { class: "custom-group-header" }, hi = { class: "move-and-create" }, gi = { class: "select-tip" }, yi = { class: "select-count" }, bi = { class: "create-group" }, Ci = { class: "custom-group-content" }, xi = ["onClick"], wi = { class: "extra" }, Si = { class: "custom-group-list" }, _i = { class: "text" };
|
|
1971
1984
|
function Ai(e, t, n, o, a, r) {
|
|
1972
1985
|
const s = E("a-select-option"), i = E("a-select"), l = E("a-button"), u = E("a-input"), c = E("a-checkbox"), d = E("a-tag"), f = E("close-outlined"), m = E("a-checkable-tag"), h = E("a-collapse-panel"), b = E("a-collapse"), g = E("a-modal"), D = fn("focus");
|
|
1973
|
-
return
|
|
1986
|
+
return w(), H(g, {
|
|
1974
1987
|
title: e.title,
|
|
1975
1988
|
visible: e.visible,
|
|
1976
1989
|
"destroy-on-close": "",
|
|
@@ -2000,7 +2013,7 @@ function Ai(e, t, n, o, a, r) {
|
|
|
2000
2013
|
placeholder: "请选择移入分组"
|
|
2001
2014
|
}, {
|
|
2002
2015
|
default: P(() => [
|
|
2003
|
-
(
|
|
2016
|
+
(w(!0), N(ee, null, se(e.customGroupList, (v, x) => (w(), H(s, { key: x }, {
|
|
2004
2017
|
default: P(() => [
|
|
2005
2018
|
J(le(v.title), 1)
|
|
2006
2019
|
]),
|
|
@@ -2047,26 +2060,26 @@ function Ai(e, t, n, o, a, r) {
|
|
|
2047
2060
|
ghost: ""
|
|
2048
2061
|
}, {
|
|
2049
2062
|
default: P(() => [
|
|
2050
|
-
(
|
|
2063
|
+
(w(!0), N(ee, null, se(e.customGroupList, (v, x) => (w(), H(h, { key: x }, {
|
|
2051
2064
|
header: P(() => [
|
|
2052
|
-
e.customGroupEditTitleList[
|
|
2065
|
+
e.customGroupEditTitleList[x] ? vn((w(), H(u, {
|
|
2053
2066
|
key: 1,
|
|
2054
2067
|
class: "edit-title-input",
|
|
2055
2068
|
value: v.title,
|
|
2056
2069
|
size: "small",
|
|
2057
|
-
onChange: (_) => e.onTitleChange(_,
|
|
2058
|
-
onBlur: (_) => e.onFinishEditTitle(
|
|
2059
|
-
onPressEnter: (_) => e.onFinishEditTitle(
|
|
2070
|
+
onChange: (_) => e.onTitleChange(_, x),
|
|
2071
|
+
onBlur: (_) => e.onFinishEditTitle(x),
|
|
2072
|
+
onPressEnter: (_) => e.onFinishEditTitle(x)
|
|
2060
2073
|
}, null, 8, ["value", "onChange", "onBlur", "onPressEnter"])), [
|
|
2061
2074
|
[D]
|
|
2062
|
-
]) : (
|
|
2075
|
+
]) : (w(), N("div", {
|
|
2063
2076
|
key: 0,
|
|
2064
|
-
onClick: ce((_) => e.onEditTitle(
|
|
2077
|
+
onClick: ce((_) => e.onEditTitle(x), ["prevent", "stop"])
|
|
2065
2078
|
}, le(v.title), 9, xi))
|
|
2066
2079
|
]),
|
|
2067
2080
|
extra: P(() => [
|
|
2068
2081
|
Y("div", wi, [
|
|
2069
|
-
|
|
2082
|
+
x === 0 && e.useOtherGroup ? (w(), H(d, {
|
|
2070
2083
|
key: 0,
|
|
2071
2084
|
class: "tag",
|
|
2072
2085
|
color: "blue"
|
|
@@ -2076,7 +2089,7 @@ function Ai(e, t, n, o, a, r) {
|
|
|
2076
2089
|
]),
|
|
2077
2090
|
_: 1
|
|
2078
2091
|
})) : ae("", !0),
|
|
2079
|
-
|
|
2092
|
+
x !== 0 ? (w(), N(ee, { key: 1 }, [
|
|
2080
2093
|
O(d, {
|
|
2081
2094
|
class: "tag",
|
|
2082
2095
|
color: "green"
|
|
@@ -2087,14 +2100,14 @@ function Ai(e, t, n, o, a, r) {
|
|
|
2087
2100
|
_: 1
|
|
2088
2101
|
}),
|
|
2089
2102
|
O(f, {
|
|
2090
|
-
onClick: ce((_) => e.onDeleteGroup(
|
|
2103
|
+
onClick: ce((_) => e.onDeleteGroup(x), ["prevent", "stop"])
|
|
2091
2104
|
}, null, 8, ["onClick"])
|
|
2092
2105
|
], 64)) : ae("", !0)
|
|
2093
2106
|
])
|
|
2094
2107
|
]),
|
|
2095
2108
|
default: P(() => [
|
|
2096
2109
|
Y("div", Si, [
|
|
2097
|
-
(
|
|
2110
|
+
(w(!0), N(ee, null, se(v.data, (_, k) => (w(), H(m, {
|
|
2098
2111
|
color: "red",
|
|
2099
2112
|
checked: _.checked,
|
|
2100
2113
|
"onUpdate:checked": (y) => _.checked = y,
|
|
@@ -2144,7 +2157,7 @@ const Li = /* @__PURE__ */ ie(vi, [["render", Ai], ["__scopeId", "data-v-6542b33
|
|
|
2144
2157
|
}
|
|
2145
2158
|
},
|
|
2146
2159
|
setup(e) {
|
|
2147
|
-
var
|
|
2160
|
+
var x, _, k, y, $, F;
|
|
2148
2161
|
const t = K(Se), n = K(et), o = p(K(Ge)), a = R(() => {
|
|
2149
2162
|
var I;
|
|
2150
2163
|
return (I = p(t)) == null ? void 0 : I.dataViewId;
|
|
@@ -2154,7 +2167,7 @@ const Li = /* @__PURE__ */ ie(vi, [["render", Ai], ["__scopeId", "data-v-6542b33
|
|
|
2154
2167
|
}), { getDataList: s } = K(Cn, {
|
|
2155
2168
|
getDataList: () => []
|
|
2156
2169
|
}), i = B({
|
|
2157
|
-
fieldName: (
|
|
2170
|
+
fieldName: (x = e.data) == null ? void 0 : x.fieldName,
|
|
2158
2171
|
fieldType: (_ = e.data) == null ? void 0 : _.fieldType,
|
|
2159
2172
|
rule: (k = e.data) == null ? void 0 : k.rule,
|
|
2160
2173
|
id: (y = e.data) == null ? void 0 : y.id,
|
|
@@ -2273,7 +2286,7 @@ const Li = /* @__PURE__ */ ie(vi, [["render", Ai], ["__scopeId", "data-v-6542b33
|
|
|
2273
2286
|
const ki = { class: "condition" };
|
|
2274
2287
|
function Ti(e, t, n, o, a, r) {
|
|
2275
2288
|
const s = E("a-select"), i = E("a-input"), l = E("close-outlined");
|
|
2276
|
-
return
|
|
2289
|
+
return w(), N("div", ki, [
|
|
2277
2290
|
O(s, {
|
|
2278
2291
|
class: "field-name",
|
|
2279
2292
|
value: e.condition.fieldName,
|
|
@@ -2287,14 +2300,14 @@ function Ti(e, t, n, o, a, r) {
|
|
|
2287
2300
|
options: e.ruleOptions,
|
|
2288
2301
|
onChange: e.onRuleChange
|
|
2289
2302
|
}, null, 8, ["value", "options", "onChange"]),
|
|
2290
|
-
["IN", "NOT_IN"].includes(e.condition.rule || "") ? (
|
|
2303
|
+
["IN", "NOT_IN"].includes(e.condition.rule || "") ? (w(), H(s, {
|
|
2291
2304
|
key: 0,
|
|
2292
2305
|
class: "field-value",
|
|
2293
2306
|
value: e.fieldValues,
|
|
2294
2307
|
mode: "multiple",
|
|
2295
2308
|
options: e.valueOptions,
|
|
2296
2309
|
onChange: e.onFieldValueSelectChange
|
|
2297
|
-
}, null, 8, ["value", "options", "onChange"])) : (
|
|
2310
|
+
}, null, 8, ["value", "options", "onChange"])) : (w(), H(i, {
|
|
2298
2311
|
key: 1,
|
|
2299
2312
|
class: "field-value",
|
|
2300
2313
|
value: e.condition.fieldValue,
|
|
@@ -2341,21 +2354,21 @@ const Ei = {
|
|
|
2341
2354
|
}, Mi = { class: "conditions" };
|
|
2342
2355
|
function Ni(e, t, n, o, a, r) {
|
|
2343
2356
|
const s = E("condition-list", !0), i = E("condition");
|
|
2344
|
-
return Array.isArray(e.list) ? (
|
|
2345
|
-
(
|
|
2346
|
-
l.join && l.conditions && Array.isArray(l.conditions) ? (
|
|
2347
|
-
l.conditions.length > 1 ? (
|
|
2348
|
-
l.join === "||" ? (
|
|
2349
|
-
l.join === "&&" ? (
|
|
2357
|
+
return Array.isArray(e.list) ? (w(), N("div", Ei, [
|
|
2358
|
+
(w(!0), N(ee, null, se(e.list, (l, u) => (w(), N(ee, { key: u }, [
|
|
2359
|
+
l.join && l.conditions && Array.isArray(l.conditions) ? (w(), N("div", Di, [
|
|
2360
|
+
l.conditions.length > 1 ? (w(), N(ee, { key: 0 }, [
|
|
2361
|
+
l.join === "||" ? (w(), N("div", Pi, "或")) : ae("", !0),
|
|
2362
|
+
l.join === "&&" ? (w(), N("div", Fi, "且")) : ae("", !0)
|
|
2350
2363
|
], 64)) : ae("", !0),
|
|
2351
2364
|
Y("div", Mi, [
|
|
2352
|
-
l.conditions.length > 0 ? (
|
|
2365
|
+
l.conditions.length > 0 ? (w(), H(s, {
|
|
2353
2366
|
key: 0,
|
|
2354
2367
|
level: e.level + 1,
|
|
2355
2368
|
list: l.conditions
|
|
2356
2369
|
}, null, 8, ["level", "list"])) : ae("", !0)
|
|
2357
2370
|
])
|
|
2358
|
-
])) : (
|
|
2371
|
+
])) : (w(), H(i, {
|
|
2359
2372
|
key: 1,
|
|
2360
2373
|
class: "condition",
|
|
2361
2374
|
data: l,
|
|
@@ -2415,7 +2428,7 @@ const ji = /* @__PURE__ */ ie($i, [["render", Ni], ["__scopeId", "data-v-f7a50b7
|
|
|
2415
2428
|
var v;
|
|
2416
2429
|
i = !0;
|
|
2417
2430
|
let D = p(r);
|
|
2418
|
-
for (let
|
|
2431
|
+
for (let x = 0; x < b && D[0]; x++)
|
|
2419
2432
|
D = (v = D[0]) == null ? void 0 : v.conditions;
|
|
2420
2433
|
Array.isArray(D) && D[g] && (D[g] = h);
|
|
2421
2434
|
},
|
|
@@ -2423,17 +2436,17 @@ const ji = /* @__PURE__ */ ie($i, [["render", Ni], ["__scopeId", "data-v-f7a50b7
|
|
|
2423
2436
|
var D, v;
|
|
2424
2437
|
i = !0;
|
|
2425
2438
|
let g = p(r);
|
|
2426
|
-
for (let
|
|
2439
|
+
for (let x = 0; x < h && g[0]; x++)
|
|
2427
2440
|
g = (D = g[0]) == null ? void 0 : D.conditions;
|
|
2428
2441
|
if (Array.isArray(g) && g[b] && (g.splice(b, 1), g.length === 1)) {
|
|
2429
|
-
let
|
|
2442
|
+
let x = p(r);
|
|
2430
2443
|
const _ = h - 2 > 0 ? h - 2 : 0;
|
|
2431
|
-
for (let k = 0; k < _ &&
|
|
2432
|
-
|
|
2433
|
-
|
|
2444
|
+
for (let k = 0; k < _ && x[0]; k++)
|
|
2445
|
+
x = (v = x[0]) == null ? void 0 : v.conditions;
|
|
2446
|
+
x[0].join === g[0].join ? x[0].conditions = [
|
|
2434
2447
|
...g[0].conditions,
|
|
2435
|
-
...
|
|
2436
|
-
] :
|
|
2448
|
+
...x[0].conditions.slice(1)
|
|
2449
|
+
] : x[0] = g[0];
|
|
2437
2450
|
}
|
|
2438
2451
|
}
|
|
2439
2452
|
});
|
|
@@ -2467,7 +2480,7 @@ const ji = /* @__PURE__ */ ie($i, [["render", Ni], ["__scopeId", "data-v-f7a50b7
|
|
|
2467
2480
|
const Bi = { class: "header" };
|
|
2468
2481
|
function Vi(e, t, n, o, a, r) {
|
|
2469
2482
|
const s = E("a-button"), i = E("condition-list"), l = E("a-modal");
|
|
2470
|
-
return
|
|
2483
|
+
return w(), H(l, {
|
|
2471
2484
|
title: e.handleTitle(),
|
|
2472
2485
|
visible: e.visible,
|
|
2473
2486
|
"destroy-on-close": "",
|
|
@@ -2484,7 +2497,7 @@ function Vi(e, t, n, o, a, r) {
|
|
|
2484
2497
|
}, {
|
|
2485
2498
|
default: P(() => [
|
|
2486
2499
|
Y("div", Bi, [
|
|
2487
|
-
Array.isArray(e.conditionList) && e.conditionList.length > 0 ? (
|
|
2500
|
+
Array.isArray(e.conditionList) && e.conditionList.length > 0 ? (w(), N(ee, { key: 0 }, [
|
|
2488
2501
|
O(s, {
|
|
2489
2502
|
class: "add-and-condition",
|
|
2490
2503
|
onClick: t[0] || (t[0] = (u) => e.addCondition("&&"))
|
|
@@ -2503,7 +2516,7 @@ function Vi(e, t, n, o, a, r) {
|
|
|
2503
2516
|
]),
|
|
2504
2517
|
_: 1
|
|
2505
2518
|
})
|
|
2506
|
-
], 64)) : (
|
|
2519
|
+
], 64)) : (w(), H(s, {
|
|
2507
2520
|
key: 1,
|
|
2508
2521
|
onClick: e.addCondition
|
|
2509
2522
|
}, {
|
|
@@ -2572,14 +2585,14 @@ const Ui = ne({
|
|
|
2572
2585
|
const Hi = { class: "formula-calculation" }, Wi = { class: "field-area" }, qi = ["onClick"];
|
|
2573
2586
|
function Yi(e, t, n, o, a, r) {
|
|
2574
2587
|
const s = E("a-col"), i = E("a-textarea"), l = E("a-row");
|
|
2575
|
-
return
|
|
2588
|
+
return w(), N("div", Hi, [
|
|
2576
2589
|
O(l, { style: { height: "100%" } }, {
|
|
2577
2590
|
default: P(() => [
|
|
2578
2591
|
O(s, { span: 6 }, {
|
|
2579
2592
|
default: P(() => [
|
|
2580
2593
|
Y("div", Wi, [
|
|
2581
2594
|
Y("div", null, "数值字段(" + le(e.fieldList.length) + ")", 1),
|
|
2582
|
-
(
|
|
2595
|
+
(w(!0), N(ee, null, se(e.fieldList, (u, c) => (w(), N("div", {
|
|
2583
2596
|
class: "field",
|
|
2584
2597
|
key: c,
|
|
2585
2598
|
onClick: (d) => e.insertText(u.label)
|
|
@@ -2727,7 +2740,7 @@ const Xi = /* @__PURE__ */ ie(Ui, [["render", Yi], ["__scopeId", "data-v-1afece6
|
|
|
2727
2740
|
}), { validate: g, validateInfos: D, clearValidate: v } = Jn.useForm(
|
|
2728
2741
|
l,
|
|
2729
2742
|
b
|
|
2730
|
-
),
|
|
2743
|
+
), x = () => {
|
|
2731
2744
|
g().then(() => {
|
|
2732
2745
|
u && d(), u = !1, l.value = i, h();
|
|
2733
2746
|
});
|
|
@@ -2743,7 +2756,7 @@ const Xi = /* @__PURE__ */ ie(Ui, [["render", Yi], ["__scopeId", "data-v-1afece6
|
|
|
2743
2756
|
wrapperCol: s,
|
|
2744
2757
|
formState: l,
|
|
2745
2758
|
builtInValueSourceList: a,
|
|
2746
|
-
onOK:
|
|
2759
|
+
onOK: x,
|
|
2747
2760
|
onChange: c,
|
|
2748
2761
|
validateInfos: D
|
|
2749
2762
|
};
|
|
@@ -2751,7 +2764,7 @@ const Xi = /* @__PURE__ */ ie(Ui, [["render", Yi], ["__scopeId", "data-v-1afece6
|
|
|
2751
2764
|
});
|
|
2752
2765
|
function Ji(e, t, n, o, a, r) {
|
|
2753
2766
|
const s = E("a-input"), i = E("a-form-item"), l = E("a-select-option"), u = E("a-select"), c = E("formula-calculation"), d = E("a-textarea"), f = E("a-form"), m = E("a-modal");
|
|
2754
|
-
return
|
|
2767
|
+
return w(), H(m, {
|
|
2755
2768
|
title: `${e.mode === "add" ? "新增" : "编辑"}计算指标`,
|
|
2756
2769
|
visible: e.visible,
|
|
2757
2770
|
width: "50%",
|
|
@@ -2812,13 +2825,13 @@ function Ji(e, t, n, o, a, r) {
|
|
|
2812
2825
|
]),
|
|
2813
2826
|
_: 1
|
|
2814
2827
|
}, 8, ["label-col", "wrapper-col"]),
|
|
2815
|
-
e.formState.calcType === "FORMULA" ? (
|
|
2828
|
+
e.formState.calcType === "FORMULA" ? (w(), H(c, {
|
|
2816
2829
|
key: 0,
|
|
2817
2830
|
value: e.formState.formula,
|
|
2818
2831
|
"onUpdate:value": t[2] || (t[2] = (h) => e.formState.formula = h),
|
|
2819
2832
|
onChange: e.onChange
|
|
2820
2833
|
}, null, 8, ["value", "onChange"])) : ae("", !0),
|
|
2821
|
-
e.formState.calcType === "BUILT_IN" ? (
|
|
2834
|
+
e.formState.calcType === "BUILT_IN" ? (w(), N(ee, { key: 1 }, [
|
|
2822
2835
|
O(i, {
|
|
2823
2836
|
label: "内置公式",
|
|
2824
2837
|
"label-col": e.labelCol,
|
|
@@ -2873,7 +2886,7 @@ function Ji(e, t, n, o, a, r) {
|
|
|
2873
2886
|
onChange: e.onChange
|
|
2874
2887
|
}, {
|
|
2875
2888
|
default: P(() => [
|
|
2876
|
-
(
|
|
2889
|
+
(w(!0), N(ee, null, se(e.builtInValueSourceList, (h, b) => (w(), H(l, {
|
|
2877
2890
|
key: b,
|
|
2878
2891
|
value: h.name
|
|
2879
2892
|
}, {
|
|
@@ -2902,7 +2915,7 @@ function Ji(e, t, n, o, a, r) {
|
|
|
2902
2915
|
default: P(() => [
|
|
2903
2916
|
["BUILT_IN_RANK", "BUILT_IN_RANK_IN_GROUPO"].includes(
|
|
2904
2917
|
e.formState.builtInValueSource || ""
|
|
2905
|
-
) ? (
|
|
2918
|
+
) ? (w(), N(ee, { key: 0 }, [
|
|
2906
2919
|
O(l, { value: "SUM" }, {
|
|
2907
2920
|
default: P(() => [
|
|
2908
2921
|
J("求和")
|
|
@@ -2927,7 +2940,7 @@ function Ji(e, t, n, o, a, r) {
|
|
|
2927
2940
|
]),
|
|
2928
2941
|
_: 1
|
|
2929
2942
|
})
|
|
2930
|
-
], 64)) : (
|
|
2943
|
+
], 64)) : (w(), N(ee, { key: 1 }, [
|
|
2931
2944
|
O(l, { value: "ASC" }, {
|
|
2932
2945
|
default: P(() => [
|
|
2933
2946
|
J("升序")
|
|
@@ -3107,7 +3120,7 @@ const Zi = /* @__PURE__ */ ie(Ki, [["render", Ji]]), Qi = ne({
|
|
|
3107
3120
|
...M,
|
|
3108
3121
|
...V
|
|
3109
3122
|
];
|
|
3110
|
-
}),
|
|
3123
|
+
}), x = (A = {}, L, M = "ASC") => {
|
|
3111
3124
|
var de;
|
|
3112
3125
|
const { label: V, name: te, id: oe } = A, re = ((de = p(t)[e.type]) == null ? void 0 : de.slice()) || [];
|
|
3113
3126
|
oe === D ? delete re[L].sort : re[L].sort = {
|
|
@@ -3183,7 +3196,7 @@ const Zi = /* @__PURE__ */ ie(Ki, [["render", Ji]]), Qi = ne({
|
|
|
3183
3196
|
onEdit: h,
|
|
3184
3197
|
onCommitLabelChange: g,
|
|
3185
3198
|
sortList: v,
|
|
3186
|
-
onSort:
|
|
3199
|
+
onSort: x,
|
|
3187
3200
|
handleSortTitle: _,
|
|
3188
3201
|
showCustomSortModal: I,
|
|
3189
3202
|
customSortModalRef: $,
|
|
@@ -3212,8 +3225,8 @@ const Zi = /* @__PURE__ */ ie(Ki, [["render", Ji]]), Qi = ne({
|
|
|
3212
3225
|
});
|
|
3213
3226
|
const es = (e) => (mn("data-v-a1d9b4d6"), e = e(), hn(), e), ts = { class: "title" }, ns = { class: "title-text" }, os = /* @__PURE__ */ es(() => /* @__PURE__ */ Y("span", null, "添加计算指标", -1)), as = ["onDragstart"], rs = { class: "card-item-inner" }, ls = ["onClick"], is = ["onClick"], ss = ["onClick"];
|
|
3214
3227
|
function us(e, t, n, o, a, r) {
|
|
3215
|
-
const s = E("plus-outlined"), i = E("a-input"), l = E("setting-outlined"), u = E("a-menu-item"), c = E("a-sub-menu"), d = E("a-menu-divider"), f = E("a-menu"), m = E("a-dropdown"), h = E("delete-outlined"), b = E("a-checkbox"), g = E("custom-sort-modal"), D = E("custom-group-modal"), v = E("filter-modal"),
|
|
3216
|
-
return
|
|
3228
|
+
const s = E("plus-outlined"), i = E("a-input"), l = E("setting-outlined"), u = E("a-menu-item"), c = E("a-sub-menu"), d = E("a-menu-divider"), f = E("a-menu"), m = E("a-dropdown"), h = E("delete-outlined"), b = E("a-checkbox"), g = E("custom-sort-modal"), D = E("custom-group-modal"), v = E("filter-modal"), x = E("calculation-modal"), _ = E("a-card"), k = fn("focus");
|
|
3229
|
+
return w(), H(_, {
|
|
3217
3230
|
class: "data-config-card",
|
|
3218
3231
|
"head-style": {
|
|
3219
3232
|
backgroundColor: "rgba(161,212,230,0.3)",
|
|
@@ -3227,7 +3240,7 @@ function us(e, t, n, o, a, r) {
|
|
|
3227
3240
|
title: P(() => [
|
|
3228
3241
|
Y("div", ts, [
|
|
3229
3242
|
Y("div", ns, le(e.title), 1),
|
|
3230
|
-
["classificationList", "seriesList"].includes(e.type) ? ae("", !0) : (
|
|
3243
|
+
["classificationList", "seriesList"].includes(e.type) ? ae("", !0) : (w(), N("div", {
|
|
3231
3244
|
key: 0,
|
|
3232
3245
|
class: "add-calculation",
|
|
3233
3246
|
onClick: t[0] || (t[0] = ce((y) => e.onShowCalculationModal("add"), ["prevent", "stop"]))
|
|
@@ -3238,7 +3251,7 @@ function us(e, t, n, o, a, r) {
|
|
|
3238
3251
|
])
|
|
3239
3252
|
]),
|
|
3240
3253
|
default: P(() => [
|
|
3241
|
-
(
|
|
3254
|
+
(w(!0), N(ee, null, se(e.cardItemList, (y, $) => (w(), N("div", {
|
|
3242
3255
|
key: $,
|
|
3243
3256
|
draggable: !0,
|
|
3244
3257
|
onDragstart: ce((F) => e.onDropStart(F, y, $), ["stop"]),
|
|
@@ -3252,17 +3265,17 @@ function us(e, t, n, o, a, r) {
|
|
|
3252
3265
|
}, {
|
|
3253
3266
|
default: P(() => [
|
|
3254
3267
|
Y("div", rs, [
|
|
3255
|
-
!e.editLabelList[$] && y.label ? (
|
|
3268
|
+
!e.editLabelList[$] && y.label ? (w(), N("div", {
|
|
3256
3269
|
key: 0,
|
|
3257
3270
|
class: "name",
|
|
3258
3271
|
onClick: ce((F) => e.onEdit($), ["prevent", "stop"])
|
|
3259
3272
|
}, le(y.label), 9, ls)) : ae("", !0),
|
|
3260
|
-
!e.editLabelList[$] && !y.label ? (
|
|
3273
|
+
!e.editLabelList[$] && !y.label ? (w(), N("div", {
|
|
3261
3274
|
key: 1,
|
|
3262
3275
|
class: "name placeholder",
|
|
3263
3276
|
onClick: ce((F) => e.onEdit($), ["prevent", "stop"])
|
|
3264
3277
|
}, " 请点击填入名字 ", 8, is)) : ae("", !0),
|
|
3265
|
-
e.editLabelList[$] ? vn((
|
|
3278
|
+
e.editLabelList[$] ? vn((w(), H(i, {
|
|
3266
3279
|
key: 2,
|
|
3267
3280
|
"default-value": y.label,
|
|
3268
3281
|
size: "small",
|
|
@@ -3272,7 +3285,7 @@ function us(e, t, n, o, a, r) {
|
|
|
3272
3285
|
}, null, 8, ["default-value", "onBlur", "onPressEnter", "onChange"])), [
|
|
3273
3286
|
[k]
|
|
3274
3287
|
]) : ae("", !0),
|
|
3275
|
-
["FORMULA", "BUILT_IN"].includes(y.calcType) ? (
|
|
3288
|
+
["FORMULA", "BUILT_IN"].includes(y.calcType) ? (w(), N("span", {
|
|
3276
3289
|
key: 3,
|
|
3277
3290
|
class: "calculation-icon",
|
|
3278
3291
|
onClick: ce((F) => e.onShowCalculationModal("edit", y, $), ["prevent", "stop"])
|
|
@@ -3281,13 +3294,13 @@ function us(e, t, n, o, a, r) {
|
|
|
3281
3294
|
overlay: P(() => [
|
|
3282
3295
|
O(f, null, {
|
|
3283
3296
|
default: P(() => [
|
|
3284
|
-
["classificationList", "seriesList"].includes(e.type) ? (
|
|
3297
|
+
["classificationList", "seriesList"].includes(e.type) ? (w(), N(ee, { key: 0 }, [
|
|
3285
3298
|
O(c, {
|
|
3286
3299
|
title: e.handleSortTitle(y, "ASC"),
|
|
3287
3300
|
key: "0"
|
|
3288
3301
|
}, {
|
|
3289
3302
|
default: P(() => [
|
|
3290
|
-
(
|
|
3303
|
+
(w(!0), N(ee, null, se(e.sortList, (F) => (w(), H(u, {
|
|
3291
3304
|
style: { "white-space": "nowrap" },
|
|
3292
3305
|
key: F.id,
|
|
3293
3306
|
onClick: (I) => e.onSort(F, $, "ASC")
|
|
@@ -3305,7 +3318,7 @@ function us(e, t, n, o, a, r) {
|
|
|
3305
3318
|
key: "1"
|
|
3306
3319
|
}, {
|
|
3307
3320
|
default: P(() => [
|
|
3308
|
-
(
|
|
3321
|
+
(w(!0), N(ee, null, se(e.sortList, (F) => (w(), H(u, {
|
|
3309
3322
|
class: "menu-item",
|
|
3310
3323
|
style: { "white-space": "nowrap" },
|
|
3311
3324
|
key: F.id,
|
|
@@ -3346,12 +3359,12 @@ function us(e, t, n, o, a, r) {
|
|
|
3346
3359
|
]),
|
|
3347
3360
|
_: 2
|
|
3348
3361
|
}, 1032, ["onClick"]),
|
|
3349
|
-
["classificationList", "seriesList"].includes(e.type) ? ae("", !0) : (
|
|
3362
|
+
["classificationList", "seriesList"].includes(e.type) ? ae("", !0) : (w(), N(ee, { key: 1 }, [
|
|
3350
3363
|
O(c, {
|
|
3351
3364
|
title: e.handleAggregateTitle(y.aggregate)
|
|
3352
3365
|
}, {
|
|
3353
3366
|
default: P(() => [
|
|
3354
|
-
(
|
|
3367
|
+
(w(!0), N(ee, null, se(e.aggregateList, (F) => (w(), H(u, {
|
|
3355
3368
|
style: { "white-space": "nowrap" },
|
|
3356
3369
|
key: F.value,
|
|
3357
3370
|
onClick: (I) => e.onAggregateChange(F.value, $)
|
|
@@ -3402,7 +3415,7 @@ function us(e, t, n, o, a, r) {
|
|
|
3402
3415
|
type: e.type,
|
|
3403
3416
|
ref: "filterModalRef"
|
|
3404
3417
|
}, null, 8, ["item", "index", "type"]),
|
|
3405
|
-
O(
|
|
3418
|
+
O(x, {
|
|
3406
3419
|
type: e.type,
|
|
3407
3420
|
item: e.currentItem,
|
|
3408
3421
|
index: e.currentIndex,
|
|
@@ -3476,8 +3489,8 @@ const cs = /* @__PURE__ */ ie(Qi, [["render", us], ["__scopeId", "data-v-a1d9b4d
|
|
|
3476
3489
|
const fs = { class: "data-group" };
|
|
3477
3490
|
function vs(e, t, n, o, a, r) {
|
|
3478
3491
|
const s = E("data-config-card");
|
|
3479
|
-
return
|
|
3480
|
-
(
|
|
3492
|
+
return w(), N("div", fs, [
|
|
3493
|
+
(w(!0), N(ee, null, se(e.cards, (i) => (w(), H(s, pt({
|
|
3481
3494
|
key: i.type,
|
|
3482
3495
|
class: "data-config-card",
|
|
3483
3496
|
type: i.type
|
|
@@ -4271,7 +4284,7 @@ const ms = /* @__PURE__ */ ie(ps, [["render", vs], ["__scopeId", "data-v-fb11a95
|
|
|
4271
4284
|
});
|
|
4272
4285
|
function Cs(e, t, n, o, a, r) {
|
|
4273
4286
|
const s = E("a-input"), i = fn("focus");
|
|
4274
|
-
return vn((
|
|
4287
|
+
return vn((w(), H(s, {
|
|
4275
4288
|
value: e.value,
|
|
4276
4289
|
disabled: e.disabled,
|
|
4277
4290
|
onChange: e.onInputChange
|
|
@@ -4369,7 +4382,7 @@ const xs = /* @__PURE__ */ ie(bs, [["render", Cs]]), ws = ne({
|
|
|
4369
4382
|
});
|
|
4370
4383
|
function Ss(e, t, n, o, a, r) {
|
|
4371
4384
|
const s = E("a-select-option"), i = E("a-select"), l = E("a-input-number");
|
|
4372
|
-
return
|
|
4385
|
+
return w(), H(l, {
|
|
4373
4386
|
value: e.inputValue,
|
|
4374
4387
|
min: e.min,
|
|
4375
4388
|
max: e.max,
|
|
@@ -4389,7 +4402,7 @@ function Ss(e, t, n, o, a, r) {
|
|
|
4389
4402
|
onChange: e.onPrefixChange
|
|
4390
4403
|
}, {
|
|
4391
4404
|
default: P(() => [
|
|
4392
|
-
(
|
|
4405
|
+
(w(!0), N(ee, null, se(e.prefix, ({ label: u, value: c }, d) => (w(), H(s, {
|
|
4393
4406
|
key: d,
|
|
4394
4407
|
value: c
|
|
4395
4408
|
}, {
|
|
@@ -4413,7 +4426,7 @@ function Ss(e, t, n, o, a, r) {
|
|
|
4413
4426
|
onChange: e.onSuffixChange
|
|
4414
4427
|
}, {
|
|
4415
4428
|
default: P(() => [
|
|
4416
|
-
(
|
|
4429
|
+
(w(!0), N(ee, null, se(e.suffix, ({ label: u, value: c }, d) => (w(), H(s, {
|
|
4417
4430
|
key: d,
|
|
4418
4431
|
value: c
|
|
4419
4432
|
}, {
|
|
@@ -4465,13 +4478,13 @@ const ha = /* @__PURE__ */ ie(ws, [["render", Ss]]), _s = ne({
|
|
|
4465
4478
|
});
|
|
4466
4479
|
function As(e, t, n, o, a, r) {
|
|
4467
4480
|
const s = E("a-radio-button"), i = E("a-radio-group");
|
|
4468
|
-
return
|
|
4481
|
+
return w(), H(i, {
|
|
4469
4482
|
value: e.value,
|
|
4470
4483
|
optionType: e.optionType,
|
|
4471
4484
|
onChange: e.onRadioChange
|
|
4472
4485
|
}, {
|
|
4473
4486
|
default: P(() => [
|
|
4474
|
-
(
|
|
4487
|
+
(w(!0), N(ee, null, se(e.options, (l) => (w(), H(s, {
|
|
4475
4488
|
key: l.value,
|
|
4476
4489
|
value: l.value
|
|
4477
4490
|
}, {
|
|
@@ -4511,12 +4524,12 @@ const Ls = /* @__PURE__ */ ie(_s, [["render", As]]), Os = ne({
|
|
|
4511
4524
|
});
|
|
4512
4525
|
function ks(e, t, n, o, a, r) {
|
|
4513
4526
|
const s = E("a-select-option"), i = E("a-select");
|
|
4514
|
-
return
|
|
4527
|
+
return w(), H(i, {
|
|
4515
4528
|
value: e.value,
|
|
4516
4529
|
onChange: e.onSelectChange
|
|
4517
4530
|
}, {
|
|
4518
4531
|
default: P(() => [
|
|
4519
|
-
(
|
|
4532
|
+
(w(!0), N(ee, null, se(e.options, (l) => (w(), H(s, {
|
|
4520
4533
|
key: l.value,
|
|
4521
4534
|
value: l.value
|
|
4522
4535
|
}, {
|
|
@@ -4559,7 +4572,7 @@ const Ts = /* @__PURE__ */ ie(Os, [["render", ks]]), Is = ne({
|
|
|
4559
4572
|
});
|
|
4560
4573
|
function $s(e, t, n, o, a, r) {
|
|
4561
4574
|
const s = E("a-switch");
|
|
4562
|
-
return
|
|
4575
|
+
return w(), N("div", {
|
|
4563
4576
|
style: Le({ width: `${e.width}px` })
|
|
4564
4577
|
}, [
|
|
4565
4578
|
O(s, {
|
|
@@ -4778,7 +4791,7 @@ var Js = function(t, n) {
|
|
|
4778
4791
|
function Zs(e) {
|
|
4779
4792
|
var t, n = e.state, o = e.name, a = e.options, r = n.elements.arrow, s = n.modifiersData.popperOffsets, i = Ae(n.placement), l = Fn(i), u = [fe, xe].indexOf(i) >= 0, c = u ? "height" : "width";
|
|
4780
4793
|
if (!(!r || !s)) {
|
|
4781
|
-
var d = Js(a.padding, n), f = Pn(r), m = l === "y" ? pe : fe, h = l === "y" ? Ce : xe, b = n.rects.reference[c] + n.rects.reference[l] - s[l] - n.rects.popper[c], g = s[l] - n.rects.reference[l], D = Ct(r), v = D ? l === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0,
|
|
4794
|
+
var d = Js(a.padding, n), f = Pn(r), m = l === "y" ? pe : fe, h = l === "y" ? Ce : xe, b = n.rects.reference[c] + n.rects.reference[l] - s[l] - n.rects.popper[c], g = s[l] - n.rects.reference[l], D = Ct(r), v = D ? l === "y" ? D.clientHeight || 0 : D.clientWidth || 0 : 0, x = b / 2 - g / 2, _ = d[m], k = v - f[c] - d[h], y = v / 2 - f[c] / 2 + x, $ = ut(_, y, k), F = l;
|
|
4782
4795
|
n.modifiersData[o] = (t = {}, t[F] = $, t.centerOffset = $ - y, t);
|
|
4783
4796
|
}
|
|
4784
4797
|
}
|
|
@@ -4820,7 +4833,7 @@ function _o(e) {
|
|
|
4820
4833
|
y: b
|
|
4821
4834
|
};
|
|
4822
4835
|
m = g.x, b = g.y;
|
|
4823
|
-
var D = s.hasOwnProperty("x"), v = s.hasOwnProperty("y"),
|
|
4836
|
+
var D = s.hasOwnProperty("x"), v = s.hasOwnProperty("y"), x = fe, _ = pe, k = window;
|
|
4824
4837
|
if (u) {
|
|
4825
4838
|
var y = Ct(n), $ = "clientHeight", F = "clientWidth";
|
|
4826
4839
|
if (y === me(n) && (y = Ne(n), $e(y).position !== "static" && i === "absolute" && ($ = "scrollHeight", F = "scrollWidth")), y = y, a === pe || (a === fe || a === xe) && r === ft) {
|
|
@@ -4832,7 +4845,7 @@ function _o(e) {
|
|
|
4832
4845
|
b -= I - o.height, b *= l ? 1 : -1;
|
|
4833
4846
|
}
|
|
4834
4847
|
if (a === fe || (a === pe || a === Ce) && r === ft) {
|
|
4835
|
-
|
|
4848
|
+
x = xe;
|
|
4836
4849
|
var G = d && y === k && k.visualViewport ? k.visualViewport.width : (
|
|
4837
4850
|
// $FlowFixMe[prop-missing]
|
|
4838
4851
|
y[F]
|
|
@@ -4851,9 +4864,9 @@ function _o(e) {
|
|
|
4851
4864
|
};
|
|
4852
4865
|
if (m = Z.x, b = Z.y, l) {
|
|
4853
4866
|
var Q;
|
|
4854
|
-
return Object.assign({}, X, (Q = {}, Q[_] = v ? "0" : "", Q[
|
|
4867
|
+
return Object.assign({}, X, (Q = {}, Q[_] = v ? "0" : "", Q[x] = D ? "0" : "", Q.transform = (k.devicePixelRatio || 1) <= 1 ? "translate(" + m + "px, " + b + "px)" : "translate3d(" + m + "px, " + b + "px, 0)", Q));
|
|
4855
4868
|
}
|
|
4856
|
-
return Object.assign({}, X, (t = {}, t[_] = v ? b + "px" : "", t[
|
|
4869
|
+
return Object.assign({}, X, (t = {}, t[_] = v ? b + "px" : "", t[x] = D ? m + "px" : "", t.transform = "", t));
|
|
4857
4870
|
}
|
|
4858
4871
|
function ou(e) {
|
|
4859
4872
|
var t = e.state, n = e.options, o = n.gpuAcceleration, a = o === void 0 ? !0 : o, r = n.adaptive, s = r === void 0 ? !0 : r, i = n.roundOffsets, l = i === void 0 ? !0 : i, u = {
|
|
@@ -5053,12 +5066,12 @@ function Aa(e) {
|
|
|
5053
5066
|
}
|
|
5054
5067
|
function vt(e, t) {
|
|
5055
5068
|
t === void 0 && (t = {});
|
|
5056
|
-
var n = t, o = n.placement, a = o === void 0 ? e.placement : o, r = n.strategy, s = r === void 0 ? e.strategy : r, i = n.boundary, l = i === void 0 ? Ds : i, u = n.rootBoundary, c = u === void 0 ? ga : u, d = n.elementContext, f = d === void 0 ? rt : d, m = n.altBoundary, h = m === void 0 ? !1 : m, b = n.padding, g = b === void 0 ? 0 : b, D = wa(typeof g != "number" ? g : Sa(g, bt)), v = f === rt ? Ps : rt,
|
|
5069
|
+
var n = t, o = n.placement, a = o === void 0 ? e.placement : o, r = n.strategy, s = r === void 0 ? e.strategy : r, i = n.boundary, l = i === void 0 ? Ds : i, u = n.rootBoundary, c = u === void 0 ? ga : u, d = n.elementContext, f = d === void 0 ? rt : d, m = n.altBoundary, h = m === void 0 ? !1 : m, b = n.padding, g = b === void 0 ? 0 : b, D = wa(typeof g != "number" ? g : Sa(g, bt)), v = f === rt ? Ps : rt, x = e.rects.popper, _ = e.elements[h ? v : f], k = fu(Ve(_) ? _ : _.contextElement || Ne(e.elements.popper), l, c, s), y = Ke(e.elements.reference), $ = Aa({
|
|
5057
5070
|
reference: y,
|
|
5058
|
-
element:
|
|
5071
|
+
element: x,
|
|
5059
5072
|
strategy: "absolute",
|
|
5060
5073
|
placement: a
|
|
5061
|
-
}), F = ln(Object.assign({},
|
|
5074
|
+
}), F = ln(Object.assign({}, x, $)), I = f === rt ? F : y, G = {
|
|
5062
5075
|
top: k.top - I.top + D.top,
|
|
5063
5076
|
bottom: I.bottom - k.bottom + D.bottom,
|
|
5064
5077
|
left: k.left - I.left + D.left,
|
|
@@ -5102,7 +5115,7 @@ function mu(e) {
|
|
|
5102
5115
|
function hu(e) {
|
|
5103
5116
|
var t = e.state, n = e.options, o = e.name;
|
|
5104
5117
|
if (!t.modifiersData[o]._skip) {
|
|
5105
|
-
for (var a = n.mainAxis, r = a === void 0 ? !0 : a, s = n.altAxis, i = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, m = n.flipVariations, h = m === void 0 ? !0 : m, b = n.allowedAutoPlacements, g = t.options.placement, D = Ae(g), v = D === g,
|
|
5118
|
+
for (var a = n.mainAxis, r = a === void 0 ? !0 : a, s = n.altAxis, i = s === void 0 ? !0 : s, l = n.fallbackPlacements, u = n.padding, c = n.boundary, d = n.rootBoundary, f = n.altBoundary, m = n.flipVariations, h = m === void 0 ? !0 : m, b = n.allowedAutoPlacements, g = t.options.placement, D = Ae(g), v = D === g, x = l || (v || !h ? [Tt(g)] : mu(g)), _ = [g].concat(x).reduce(function(M, V) {
|
|
5106
5119
|
return M.concat(Ae(V) === En ? vu(t, {
|
|
5107
5120
|
placement: V,
|
|
5108
5121
|
boundary: c,
|
|
@@ -5247,7 +5260,7 @@ function Lu(e) {
|
|
|
5247
5260
|
rootBoundary: u,
|
|
5248
5261
|
padding: d,
|
|
5249
5262
|
altBoundary: c
|
|
5250
|
-
}), D = Ae(t.placement), v = Je(t.placement),
|
|
5263
|
+
}), D = Ae(t.placement), v = Je(t.placement), x = !v, _ = Fn(D), k = Au(_), y = t.modifiersData.popperOffsets, $ = t.rects.reference, F = t.rects.popper, I = typeof b == "function" ? b(Object.assign({}, t.rects, {
|
|
5251
5264
|
placement: t.placement
|
|
5252
5265
|
})) : b, G = typeof I == "number" ? {
|
|
5253
5266
|
mainAxis: I,
|
|
@@ -5264,7 +5277,7 @@ function Lu(e) {
|
|
|
5264
5277
|
var Q, z = _ === "y" ? pe : fe, W = _ === "y" ? Ce : xe, q = _ === "y" ? "height" : "width", j = y[_], U = j + g[z], S = j - g[W], C = m ? -F[q] / 2 : 0, T = v === Ye ? $[q] : F[q], A = v === Ye ? -F[q] : -$[q], L = t.elements.arrow, M = m && L ? Pn(L) : {
|
|
5265
5278
|
width: 0,
|
|
5266
5279
|
height: 0
|
|
5267
|
-
}, V = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : xa(), te = V[z], oe = V[W], re = ut(0, $[q], M[q]), de =
|
|
5280
|
+
}, V = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : xa(), te = V[z], oe = V[W], re = ut(0, $[q], M[q]), de = x ? $[q] / 2 - C - re - te - G.mainAxis : T - re - te - G.mainAxis, ke = x ? -$[q] / 2 + C + re + oe + G.mainAxis : A + re + oe + G.mainAxis, Ht = t.elements.arrow && Ct(t.elements.arrow), Da = Ht ? _ === "y" ? Ht.clientTop || 0 : Ht.clientLeft || 0 : 0, Bn = (Q = X == null ? void 0 : X[_]) != null ? Q : 0, Pa = j + de - Bn - Da, Fa = j + ke - Bn, Vn = ut(m ? Bt(U, Pa) : U, j, m ? Be(S, Fa) : S);
|
|
5268
5281
|
y[_] = Vn, Z[_] = Vn - j;
|
|
5269
5282
|
}
|
|
5270
5283
|
if (i) {
|
|
@@ -5396,8 +5409,8 @@ function Mu(e) {
|
|
|
5396
5409
|
reference: Ve(i) ? ct(i) : i.contextElement ? ct(i.contextElement) : [],
|
|
5397
5410
|
popper: ct(l)
|
|
5398
5411
|
};
|
|
5399
|
-
var
|
|
5400
|
-
return c.orderedModifiers =
|
|
5412
|
+
var x = Du(Fu([].concat(o, c.options.modifiers)));
|
|
5413
|
+
return c.orderedModifiers = x.filter(function(_) {
|
|
5401
5414
|
return _.enabled;
|
|
5402
5415
|
}), h(), m.update();
|
|
5403
5416
|
},
|
|
@@ -5408,11 +5421,11 @@ function Mu(e) {
|
|
|
5408
5421
|
// prefer the async Popper#update method
|
|
5409
5422
|
forceUpdate: function() {
|
|
5410
5423
|
if (!f) {
|
|
5411
|
-
var D = c.elements, v = D.reference,
|
|
5412
|
-
if (Io(v,
|
|
5424
|
+
var D = c.elements, v = D.reference, x = D.popper;
|
|
5425
|
+
if (Io(v, x)) {
|
|
5413
5426
|
c.rects = {
|
|
5414
|
-
reference: $u(v, Ct(
|
|
5415
|
-
popper: Pn(
|
|
5427
|
+
reference: $u(v, Ct(x), c.options.strategy === "fixed"),
|
|
5428
|
+
popper: Pn(x)
|
|
5416
5429
|
}, c.reset = !1, c.placement = c.options.placement, c.orderedModifiers.forEach(function(G) {
|
|
5417
5430
|
return c.modifiersData[G.name] = Object.assign({}, G.data);
|
|
5418
5431
|
});
|
|
@@ -5450,13 +5463,13 @@ function Mu(e) {
|
|
|
5450
5463
|
});
|
|
5451
5464
|
function h() {
|
|
5452
5465
|
c.orderedModifiers.forEach(function(g) {
|
|
5453
|
-
var D = g.name, v = g.options,
|
|
5466
|
+
var D = g.name, v = g.options, x = v === void 0 ? {} : v, _ = g.effect;
|
|
5454
5467
|
if (typeof _ == "function") {
|
|
5455
5468
|
var k = _({
|
|
5456
5469
|
state: c,
|
|
5457
5470
|
name: D,
|
|
5458
5471
|
instance: m,
|
|
5459
|
-
options:
|
|
5472
|
+
options: x
|
|
5460
5473
|
}), y = function() {
|
|
5461
5474
|
};
|
|
5462
5475
|
d.push(k || y);
|
|
@@ -5571,7 +5584,7 @@ var Oa = { exports: {} }, Do = { exports: {} };
|
|
|
5571
5584
|
}
|
|
5572
5585
|
}
|
|
5573
5586
|
a.wrap = m;
|
|
5574
|
-
var b = "suspendedStart", g = "suspendedYield", D = "executing", v = "completed",
|
|
5587
|
+
var b = "suspendedStart", g = "suspendedYield", D = "executing", v = "completed", x = {};
|
|
5575
5588
|
function _() {
|
|
5576
5589
|
}
|
|
5577
5590
|
function k() {
|
|
@@ -5634,7 +5647,7 @@ var Oa = { exports: {} }, Do = { exports: {} };
|
|
|
5634
5647
|
if (V) {
|
|
5635
5648
|
var te = z(V, T);
|
|
5636
5649
|
if (te) {
|
|
5637
|
-
if (te ===
|
|
5650
|
+
if (te === x)
|
|
5638
5651
|
continue;
|
|
5639
5652
|
return te;
|
|
5640
5653
|
}
|
|
@@ -5650,7 +5663,7 @@ var Oa = { exports: {} }, Do = { exports: {} };
|
|
|
5650
5663
|
A = D;
|
|
5651
5664
|
var oe = h(S, C, T);
|
|
5652
5665
|
if (oe.type === "normal") {
|
|
5653
|
-
if (A = T.done ? v : g, oe.arg ===
|
|
5666
|
+
if (A = T.done ? v : g, oe.arg === x)
|
|
5654
5667
|
continue;
|
|
5655
5668
|
return { value: oe.arg, done: T.done };
|
|
5656
5669
|
}
|
|
@@ -5661,12 +5674,12 @@ var Oa = { exports: {} }, Do = { exports: {} };
|
|
|
5661
5674
|
function z(S, C) {
|
|
5662
5675
|
var T = C.method, A = S.iterator[T];
|
|
5663
5676
|
if (A === o)
|
|
5664
|
-
return C.delegate = null, T === "throw" && S.iterator.return && (C.method = "return", C.arg = o, z(S, C), C.method === "throw") || T !== "return" && (C.method = "throw", C.arg = new TypeError("The iterator does not provide a '" + T + "' method")),
|
|
5677
|
+
return C.delegate = null, T === "throw" && S.iterator.return && (C.method = "return", C.arg = o, z(S, C), C.method === "throw") || T !== "return" && (C.method = "throw", C.arg = new TypeError("The iterator does not provide a '" + T + "' method")), x;
|
|
5665
5678
|
var L = h(A, S.iterator, C.arg);
|
|
5666
5679
|
if (L.type === "throw")
|
|
5667
|
-
return C.method = "throw", C.arg = L.arg, C.delegate = null,
|
|
5680
|
+
return C.method = "throw", C.arg = L.arg, C.delegate = null, x;
|
|
5668
5681
|
var M = L.arg;
|
|
5669
|
-
return M ? M.done ? (C[S.resultName] = M.value, C.next = S.nextLoc, C.method !== "return" && (C.method = "next", C.arg = o), C.delegate = null,
|
|
5682
|
+
return M ? M.done ? (C[S.resultName] = M.value, C.next = S.nextLoc, C.method !== "return" && (C.method = "next", C.arg = o), C.delegate = null, x) : M : (C.method = "throw", C.arg = new TypeError("iterator result is not an object"), C.delegate = null, x);
|
|
5670
5683
|
}
|
|
5671
5684
|
function W(S) {
|
|
5672
5685
|
var C = { tryLoc: S[0] };
|
|
@@ -5778,16 +5791,16 @@ var Oa = { exports: {} }, Do = { exports: {} };
|
|
|
5778
5791
|
}
|
|
5779
5792
|
L && (S === "break" || S === "continue") && L.tryLoc <= C && C <= L.finallyLoc && (L = null);
|
|
5780
5793
|
var M = L ? L.completion : {};
|
|
5781
|
-
return M.type = S, M.arg = C, L ? (this.method = "next", this.next = L.finallyLoc,
|
|
5794
|
+
return M.type = S, M.arg = C, L ? (this.method = "next", this.next = L.finallyLoc, x) : this.complete(M);
|
|
5782
5795
|
}, complete: function(S, C) {
|
|
5783
5796
|
if (S.type === "throw")
|
|
5784
5797
|
throw S.arg;
|
|
5785
|
-
return S.type === "break" || S.type === "continue" ? this.next = S.arg : S.type === "return" ? (this.rval = this.arg = S.arg, this.method = "return", this.next = "end") : S.type === "normal" && C && (this.next = C),
|
|
5798
|
+
return S.type === "break" || S.type === "continue" ? this.next = S.arg : S.type === "return" ? (this.rval = this.arg = S.arg, this.method = "return", this.next = "end") : S.type === "normal" && C && (this.next = C), x;
|
|
5786
5799
|
}, finish: function(S) {
|
|
5787
5800
|
for (var C = this.tryEntries.length - 1; C >= 0; --C) {
|
|
5788
5801
|
var T = this.tryEntries[C];
|
|
5789
5802
|
if (T.finallyLoc === S)
|
|
5790
|
-
return this.complete(T.completion, T.afterLoc), q(T),
|
|
5803
|
+
return this.complete(T.completion, T.afterLoc), q(T), x;
|
|
5791
5804
|
}
|
|
5792
5805
|
}, catch: function(S) {
|
|
5793
5806
|
for (var C = this.tryEntries.length - 1; C >= 0; --C) {
|
|
@@ -5803,7 +5816,7 @@ var Oa = { exports: {} }, Do = { exports: {} };
|
|
|
5803
5816
|
}
|
|
5804
5817
|
throw new Error("illegal catch attempt");
|
|
5805
5818
|
}, delegateYield: function(S, C, T) {
|
|
5806
|
-
return this.delegate = { iterator: U(S), resultName: C, nextLoc: T }, this.method === "next" && (this.arg = o),
|
|
5819
|
+
return this.delegate = { iterator: U(S), resultName: C, nextLoc: T }, this.method === "next" && (this.arg = o), x;
|
|
5807
5820
|
} }, a;
|
|
5808
5821
|
}
|
|
5809
5822
|
e.exports = n, e.exports.__esModule = !0, e.exports.default = e.exports;
|
|
@@ -5865,7 +5878,7 @@ function Pe(e, t) {
|
|
|
5865
5878
|
}
|
|
5866
5879
|
}
|
|
5867
5880
|
Pe(".saturation[data-v-24517fec]{position:relative}.saturation-black[data-v-24517fec],.saturation-white[data-v-24517fec]{cursor:pointer;height:100%;left:0;position:absolute;top:0;width:100%}.saturation-white[data-v-24517fec]{background:linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.saturation-black[data-v-24517fec]{background:linear-gradient(0deg,#000,transparent)}.slider[data-v-24517fec]{border:1px solid #fff;border-radius:50%;box-shadow:0 0 1px 1px rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;top:0;z-index:1}"), $t.render = function(e, t, n, o, a, r) {
|
|
5868
|
-
return
|
|
5881
|
+
return w(), N("div", { class: "saturation", style: Le(e.saturationStyle), onMousedown: t[0] || (t[0] = ce(function() {
|
|
5869
5882
|
return e.onSelect && e.onSelect.apply(e, arguments);
|
|
5870
5883
|
}, ["prevent", "stop"])) }, [Vu, Gu, Y("div", { class: "slider", style: Le(e.sliderStyle) }, null, 4)], 36);
|
|
5871
5884
|
}, $t.__scopeId = "data-v-24517fec", $t.__file = "src/picker/Saturation.vue";
|
|
@@ -5892,7 +5905,7 @@ var Et = ne({ name: "Hue", props: { width: { type: Number, default: 15 }, height
|
|
|
5892
5905
|
} };
|
|
5893
5906
|
} }), zu = { ref: "canvas" };
|
|
5894
5907
|
Pe(".hue[data-v-78b9f4f0]{position:relative}.slider[data-v-78b9f4f0]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"), Et.render = function(e, t, n, o, a, r) {
|
|
5895
|
-
return
|
|
5908
|
+
return w(), N("div", { class: "hue", onMousedown: t[0] || (t[0] = ce(function() {
|
|
5896
5909
|
return e.onSelect && e.onSelect.apply(e, arguments);
|
|
5897
5910
|
}, ["prevent", "stop"])) }, [Y("canvas", zu, null, 512), Y("div", { class: "slider", style: Le(e.sliderStyle) }, null, 4)], 32);
|
|
5898
5911
|
}, Et.__scopeId = "data-v-78b9f4f0", Et.__file = "src/picker/Hue.vue";
|
|
@@ -5929,7 +5942,7 @@ var Dt = ne({ name: "Alpha", props: { width: { type: Number, default: 15 }, heig
|
|
|
5929
5942
|
} };
|
|
5930
5943
|
} }), Uu = { ref: "canvas" };
|
|
5931
5944
|
Pe(".alpha[data-v-24dc9656]{position:relative}.slider[data-v-24dc9656]{background:#fff;box-shadow:0 0 1px 0 rgba(0,0,0,.3);left:0;pointer-events:none;position:absolute;width:100%;z-index:1}"), Dt.render = function(e, t, n, o, a, r) {
|
|
5932
|
-
return
|
|
5945
|
+
return w(), N("div", { class: "alpha", onMousedown: t[0] || (t[0] = ce(function() {
|
|
5933
5946
|
return e.onSelect && e.onSelect.apply(e, arguments);
|
|
5934
5947
|
}, ["prevent", "stop"])) }, [Y("canvas", Uu, null, 512), Y("div", { class: "slider", style: Le(e.sliderStyle) }, null, 4)], 32);
|
|
5935
5948
|
}, Dt.__scopeId = "data-v-24dc9656", Dt.__file = "src/picker/Alpha.vue";
|
|
@@ -6004,7 +6017,7 @@ function he(e) {
|
|
|
6004
6017
|
return e;
|
|
6005
6018
|
}
|
|
6006
6019
|
Pe(".input[data-v-d52a4d02]{display:inline-block;font-size:12px}.label[data-v-d52a4d02]{align-items:center;background:#e7e8e9;color:#999;display:flex;float:left;font-weight:500;height:30px;justify-content:center;width:45px}[pick-colors-theme=dark] .label[data-v-d52a4d02]{background:#252930;color:#999}.value[data-v-d52a4d02]{background:#eceef0;border:1px solid #eceef0;box-sizing:border-box;color:#666;flex:1;height:30px;text-align:center}[pick-colors-theme=dark] .value[data-v-d52a4d02]{background:#2e333a;border:1px solid #2e333a;color:#fff}.value[data-v-d52a4d02]:focus{border:1px solid #1890ff;outline:none}"), Pt.render = function(e, t, n, o, a, r) {
|
|
6007
|
-
return
|
|
6020
|
+
return w(), N("div", Hu, [Y("span", Wu, le(e.label), 1), Y("input", { class: "value", style: Le(e.valueStyle), ".value": e.value, onFocus: t[0] || (t[0] = function() {
|
|
6008
6021
|
return e.onFocus && e.onFocus.apply(e, arguments);
|
|
6009
6022
|
}), onInput: t[1] || (t[1] = function() {
|
|
6010
6023
|
return e.onInput && e.onInput.apply(e, arguments);
|
|
@@ -6169,7 +6182,7 @@ var Fo = function(e, t, n) {
|
|
|
6169
6182
|
}), { canvas: t, colorItemStyle: r };
|
|
6170
6183
|
} }), Yu = ["draggable"];
|
|
6171
6184
|
Pe(".color-item[data-v-02da71fd]{display:inline-block;vertical-align:top}"), dt.render = function(e, t, n, o, a, r) {
|
|
6172
|
-
return
|
|
6185
|
+
return w(), N("canvas", { class: "color-item", style: Le(e.colorItemStyle), ref: "canvas", draggable: e.draggable }, null, 12, Yu);
|
|
6173
6186
|
}, dt.__scopeId = "data-v-02da71fd", dt.__file = "src/color-item/ColorItem.vue";
|
|
6174
6187
|
var Mt = ne({ name: "Colors", components: { ColorItem: dt }, props: { colors: { type: Array, default: function() {
|
|
6175
6188
|
return [];
|
|
@@ -6206,8 +6219,8 @@ function _e(e) {
|
|
|
6206
6219
|
}
|
|
6207
6220
|
Pe(".colors[data-v-0f8b52a8]{align-items:center;display:flex;flex-wrap:wrap;margin-top:5px}.color-item[data-v-0f8b52a8]{margin:5px}"), Mt.render = function(e, t, n, o, a, r) {
|
|
6208
6221
|
var s = E("color-item");
|
|
6209
|
-
return
|
|
6210
|
-
return
|
|
6222
|
+
return w(), N("div", Xu, [(w(!0), N(ee, null, se(e.useColors, function(i, l) {
|
|
6223
|
+
return w(), H(s, { key: l, class: "color-item", size: 16, value: i, border: !1, "border-radius": 3, selected: e.selectedIndex === l, onClick: ce(function(u) {
|
|
6211
6224
|
return e.onSelectColor(i, +l);
|
|
6212
6225
|
}, ["stop", "prevent"]) }, null, 8, ["value", "selected", "onClick"]);
|
|
6213
6226
|
}), 128))]);
|
|
@@ -6222,10 +6235,10 @@ var Nt = ne({ name: "Picker", components: { Colors: Mt, Saturation: $t, Hue: Et,
|
|
|
6222
6235
|
}), a = R(function() {
|
|
6223
6236
|
return e.showAlpha ? 165 : 140;
|
|
6224
6237
|
}), r = B(), s = B(), i = B(), l = function() {
|
|
6225
|
-
var v,
|
|
6226
|
-
if (
|
|
6227
|
-
var _ = dn(
|
|
6228
|
-
return Ia(cn(
|
|
6238
|
+
var v, x = (v = e.value) === null || v === void 0 ? void 0 : v.trim();
|
|
6239
|
+
if (x != null && x !== "") {
|
|
6240
|
+
var _ = dn(x);
|
|
6241
|
+
return Ia(cn(x, _, e.showAlpha));
|
|
6229
6242
|
}
|
|
6230
6243
|
return null;
|
|
6231
6244
|
};
|
|
@@ -6233,11 +6246,11 @@ var Nt = ne({ name: "Picker", components: { Colors: Mt, Saturation: $t, Hue: Et,
|
|
|
6233
6246
|
return e.value;
|
|
6234
6247
|
}, function() {
|
|
6235
6248
|
e.value !== p(i) && (r.value = l());
|
|
6236
|
-
}, { immediate: !0 }), ue(r, function(v,
|
|
6249
|
+
}, { immediate: !0 }), ue(r, function(v, x) {
|
|
6237
6250
|
var _ = "";
|
|
6238
6251
|
v != null ? (_ = Ta(_e({}, v), e.format, e.showAlpha), s.value = _e({}, v)) : s.value = null, i.value = _;
|
|
6239
6252
|
var k = l();
|
|
6240
|
-
JSON.stringify(v) !== JSON.stringify(k) && JSON.stringify(v) !== JSON.stringify(
|
|
6253
|
+
JSON.stringify(v) !== JSON.stringify(k) && JSON.stringify(v) !== JSON.stringify(x) && n("change", _);
|
|
6241
6254
|
}, { immediate: !0 });
|
|
6242
6255
|
var u = R(function() {
|
|
6243
6256
|
var v;
|
|
@@ -6249,8 +6262,8 @@ var Nt = ne({ name: "Picker", components: { Colors: Mt, Saturation: $t, Hue: Et,
|
|
|
6249
6262
|
var v;
|
|
6250
6263
|
return ((v = p(r)) === null || v === void 0 ? void 0 : v.v) || 0;
|
|
6251
6264
|
}), f = R(function() {
|
|
6252
|
-
var v,
|
|
6253
|
-
return ((v = p(r)) === null || v === void 0 ? void 0 : v.a) != null ? (
|
|
6265
|
+
var v, x;
|
|
6266
|
+
return ((v = p(r)) === null || v === void 0 ? void 0 : v.a) != null ? (x = p(r)) === null || x === void 0 ? void 0 : x.a : 1;
|
|
6254
6267
|
}), m = R(function() {
|
|
6255
6268
|
return lt(p(u), p(c), p(d));
|
|
6256
6269
|
}), h = R(function() {
|
|
@@ -6279,17 +6292,17 @@ var Nt = ne({ name: "Picker", components: { Colors: Mt, Saturation: $t, Hue: Et,
|
|
|
6279
6292
|
default:
|
|
6280
6293
|
return "HEX";
|
|
6281
6294
|
}
|
|
6282
|
-
}), g = B(-1), D = function(v,
|
|
6295
|
+
}), g = B(-1), D = function(v, x, _) {
|
|
6283
6296
|
if (v.length !== 0) {
|
|
6284
|
-
var k = cn(v,
|
|
6297
|
+
var k = cn(v, x, _), y = k.h, $ = k.s, F = k.v;
|
|
6285
6298
|
if (!(isNaN(y) || isNaN($) || isNaN(F))) {
|
|
6286
6299
|
var I = 1, G = k.a;
|
|
6287
6300
|
isNaN(G) || (I = G), r.value = { h: y, s: $, v: F, a: I };
|
|
6288
6301
|
}
|
|
6289
6302
|
}
|
|
6290
6303
|
};
|
|
6291
|
-
return { h: u, s: c, v: d, a: f, rgbStr: h, onSelectSaturation: function(v,
|
|
6292
|
-
g.value = -1, p(r) == null ? r.value = { h: p(u), s: v, v:
|
|
6304
|
+
return { h: u, s: c, v: d, a: f, rgbStr: h, onSelectSaturation: function(v, x) {
|
|
6305
|
+
g.value = -1, p(r) == null ? r.value = { h: p(u), s: v, v: x, a: p(f) } : r.value = _e(_e({}, p(r)), {}, { s: v, v: x });
|
|
6293
6306
|
}, onSelectHue: function(v) {
|
|
6294
6307
|
g.value = -1, p(r) == null && (r.value = { h: v, s: p(c), v: p(d), a: p(f) }), r.value = _e(_e({}, p(r)), {}, { h: v });
|
|
6295
6308
|
}, onSelectAlpha: function(v) {
|
|
@@ -6297,8 +6310,8 @@ var Nt = ne({ name: "Picker", components: { Colors: Mt, Saturation: $t, Hue: Et,
|
|
|
6297
6310
|
}, label: b, colorValue: i, pickerStyle: o, inputWidth: a, onInputChange: function(v) {
|
|
6298
6311
|
g.value = -1, i.value = v;
|
|
6299
6312
|
}, handleChange: function() {
|
|
6300
|
-
var v,
|
|
6301
|
-
if (
|
|
6313
|
+
var v, x = (v = p(i)) === null || v === void 0 ? void 0 : v.trim();
|
|
6314
|
+
if (x !== "") {
|
|
6302
6315
|
var _ = e.showAlpha, k = e.format, y = function($, F, I) {
|
|
6303
6316
|
if (I)
|
|
6304
6317
|
switch (F) {
|
|
@@ -6322,12 +6335,12 @@ var Nt = ne({ name: "Picker", components: { Colors: Mt, Saturation: $t, Hue: Et,
|
|
|
6322
6335
|
default:
|
|
6323
6336
|
return /^#([0-9a-fA-f]{3}|[0-9a-fA-F]{6})$/g.test($);
|
|
6324
6337
|
}
|
|
6325
|
-
}(
|
|
6326
|
-
y ? D(
|
|
6338
|
+
}(x, k, _);
|
|
6339
|
+
y ? D(x, k, _) : p(s) != null ? r.value = p(s) : i.value = "";
|
|
6327
6340
|
} else
|
|
6328
6341
|
r.value = null;
|
|
6329
|
-
}, selectColorIndex: g, onSelectColor: function(v,
|
|
6330
|
-
if (g.value =
|
|
6342
|
+
}, selectColorIndex: g, onSelectColor: function(v, x) {
|
|
6343
|
+
if (g.value = x, (v = v.trim()) === "")
|
|
6331
6344
|
r.value = null;
|
|
6332
6345
|
else {
|
|
6333
6346
|
var _ = dn(v);
|
|
@@ -6337,7 +6350,7 @@ var Nt = ne({ name: "Picker", components: { Colors: Mt, Saturation: $t, Hue: Et,
|
|
|
6337
6350
|
} }), Ku = { class: "picker-inner" }, Ju = { class: "picker-header" };
|
|
6338
6351
|
Pe(".picker[data-v-6ceadec6]{background:#f7f8f9;border-radius:4px;box-shadow:0 0 16px 0 rgba(0,0,0,.16)}.picker-inner[data-v-6ceadec6]{padding:10px}[pick-colors-theme=dark] .picker-inner[data-v-6ceadec6]{background:#1d2024;box-shadow:0 0 16px 0 rgba(0,0,0,.16)}.picker-header[data-v-6ceadec6]{display:flex;margin-bottom:5px}.alpha[data-v-6ceadec6],.hue[data-v-6ceadec6]{margin-left:10px}.colors[data-v-6ceadec6]{margin-top:5px}"), Nt.render = function(e, t, n, o, a, r) {
|
|
6339
6352
|
var s = E("saturation"), i = E("hue"), l = E("alpha"), u = E("input-value"), c = E("Colors");
|
|
6340
|
-
return
|
|
6353
|
+
return w(), N("div", { class: "picker", style: Le(e.pickerStyle) }, [Y("div", Ku, [Y("div", Ju, [O(s, { class: "saturation", hue: e.h, saturation: e.s, value: e.v, onChange: e.onSelectSaturation }, null, 8, ["hue", "saturation", "value", "onChange"]), O(i, { class: "hue", hue: e.h, onChange: e.onSelectHue }, null, 8, ["hue", "onChange"]), e.showAlpha ? (w(), H(l, { key: 0, class: "alpha", alpha: e.a, color: e.rgbStr, onChange: e.onSelectAlpha }, null, 8, ["alpha", "color", "onChange"])) : ae("v-if", !0)]), O(u, { label: e.label, value: e.colorValue, width: e.inputWidth, onChange: e.onInputChange, onBlur: e.handleChange, onEnter: e.handleChange }, null, 8, ["label", "value", "width", "onChange", "onBlur", "onEnter"]), e.colors.length > 0 ? (w(), H(c, { key: 0, class: "colors", colors: e.colors, "selected-index": e.selectColorIndex, onChange: e.onSelectColor }, null, 8, ["colors", "selected-index", "onChange"])) : ae("v-if", !0)])], 4);
|
|
6341
6354
|
}, Nt.__scopeId = "data-v-6ceadec6", Nt.__file = "src/picker/Picker.vue";
|
|
6342
6355
|
var jt = ne({ name: "AddColorItem", props: { size: { type: Number, default: 20 }, selected: { type: Boolean, default: !1 } }, setup: function(e) {
|
|
6343
6356
|
var t = K("theme", { theme: "light" }).theme;
|
|
@@ -6371,7 +6384,7 @@ function en(e) {
|
|
|
6371
6384
|
return e;
|
|
6372
6385
|
}
|
|
6373
6386
|
Pe(".add-color-item[data-v-ceb1719c]{background:#fff;border:1px solid #d9d9d9;border-radius:5px;vertical-align:top}.container[data-v-ceb1719c]{pointer-events:none;transform:scale(.9);transform-origin:center}[pick-colors-theme=dark] .add-color-item[data-v-ceb1719c]{background:#141414;border:1px solid #434343}path[data-v-ceb1719c]{fill:#000}[pick-colors-theme=dark] path[data-v-ceb1719c]{fill:#fff}"), jt.render = function(e, t, n, o, a, r) {
|
|
6374
|
-
return
|
|
6387
|
+
return w(), N("svg", { style: Le(e.addColorItemStyle), class: "add-color-item", viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg" }, [].concat(Zu), 4);
|
|
6375
6388
|
}, jt.__scopeId = "data-v-ceb1719c", jt.__file = "src/add-color-item/AddColorItem.vue";
|
|
6376
6389
|
var Re = null, qe = ne({ name: "ColorPicker", components: { ColorItem: dt, Picker: Nt, AddColorItem: jt }, props: { value: { type: [String, Array] }, theme: { type: String, default: "light" }, size: { type: [Number, String], default: 20 }, width: { type: [Number, String] }, height: { type: [Number, String] }, format: { type: String, default: "hex" }, showPicker: { type: Boolean, default: void 0 }, showAlpha: { type: Boolean, default: !1 }, addColor: { type: Boolean, default: !1 }, deleteColor: { type: Boolean, default: !0 }, max: { type: Number, default: 13 }, popupContainer: { type: [String, Object, Boolean] }, zIndex: { type: Number, default: 1e3 }, colors: { type: Array, default: function() {
|
|
6377
6390
|
return ["#ff4500", "#ff8c00", "#ffd700", "#90ee90", "#00ced1", "#1e90ff", "#c71585", "#ff4500", "#ff7d4d", "#00babd", "#1f93ff", "#fa64c3"];
|
|
@@ -6416,7 +6429,7 @@ var Re = null, qe = ne({ name: "ColorPicker", components: { ColorItem: dt, Picke
|
|
|
6416
6429
|
}), qo(function() {
|
|
6417
6430
|
var z;
|
|
6418
6431
|
Re && ((z = Re) === null || z === void 0 || z.destroy(), Re = null);
|
|
6419
|
-
}), { instance: Re, style: d }), v = D.style,
|
|
6432
|
+
}), { instance: Re, style: d }), v = D.style, x = function() {
|
|
6420
6433
|
p(b) == null && (b.value = p(Q)[0], r.value = 0), e.showPicker === void 0 ? i.value = !0 : n("update:showPicker", !0);
|
|
6421
6434
|
}, _ = function() {
|
|
6422
6435
|
r.value = void 0, e.showPicker === void 0 ? i.value = !1 : n("update:showPicker", !1), n("closePicker", Ga(Array.isArray(e.value) || e.addColor ? p(o) : p(o)[0]));
|
|
@@ -6440,8 +6453,8 @@ var Re = null, qe = ne({ name: "ColorPicker", components: { ColorItem: dt, Picke
|
|
|
6440
6453
|
return T.abrupt("return");
|
|
6441
6454
|
case 7:
|
|
6442
6455
|
p(r) != null && p(r) !== C ? (_(), m && clearTimeout(m), m = setTimeout(function() {
|
|
6443
|
-
|
|
6444
|
-
}, 100)) :
|
|
6456
|
+
x(), clearTimeout(m);
|
|
6457
|
+
}, 100)) : x(), r.value = C, b.value = U;
|
|
6445
6458
|
case 10:
|
|
6446
6459
|
case "end":
|
|
6447
6460
|
return T.stop();
|
|
@@ -6484,7 +6497,7 @@ var Re = null, qe = ne({ name: "ColorPicker", components: { ColorItem: dt, Picke
|
|
|
6484
6497
|
};
|
|
6485
6498
|
}();
|
|
6486
6499
|
ue(i, function() {
|
|
6487
|
-
p(i) && (
|
|
6500
|
+
p(i) && (x(), clearTimeout(h));
|
|
6488
6501
|
});
|
|
6489
6502
|
var F, I = B(e.max > p(o).length), G = R(function() {
|
|
6490
6503
|
return typeof e.popupContainer == "string" || He(e.popupContainer) === "object" && e.popupContainer != null ? e.popupContainer : "body";
|
|
@@ -6503,7 +6516,7 @@ var Re = null, qe = ne({ name: "ColorPicker", components: { ColorItem: dt, Picke
|
|
|
6503
6516
|
}, { immediate: !0 }), ge("theme", { theme: Z });
|
|
6504
6517
|
var Q = B([]);
|
|
6505
6518
|
return Ee(function() {
|
|
6506
|
-
document.addEventListener("mouseup", $, !1), e.showPicker &&
|
|
6519
|
+
document.addEventListener("mouseup", $, !1), e.showPicker && x();
|
|
6507
6520
|
}), Yo(function() {
|
|
6508
6521
|
document.removeEventListener("mouseup", $, !1), m && (clearTimeout(m), m = null), h && (clearTimeout(h), h = null);
|
|
6509
6522
|
}), { valueList: o, colorItemSelected: function(z) {
|
|
@@ -6529,7 +6542,7 @@ var Re = null, qe = ne({ name: "ColorPicker", components: { ColorItem: dt, Picke
|
|
|
6529
6542
|
} });
|
|
6530
6543
|
Pe(".color-picker[data-v-3c43ade8]{display:inline-block}.color-item[data-v-3c43ade8]{margin:5px}.add-color-item[data-v-3c43ade8]{display:inline-block;margin:5px}.picker[data-v-3c43ade8]{overflow:hidden}.v-enter-active[data-v-3c43ade8],.v-leave-active[data-v-3c43ade8]{opacity:1;transform:scaleY(1);transform-origin:center top;transition:opacity .2s ease-in-out,transform .2s ease-in-out}.v-enter-from[data-v-3c43ade8],.v-leave-to[data-v-3c43ade8]{opacity:0;transform:scaleY(0)}"), qe.render = function(e, t, n, o, a, r) {
|
|
6531
6544
|
var s = E("color-item"), i = E("add-color-item"), l = E("picker");
|
|
6532
|
-
return
|
|
6545
|
+
return w(), N("div", { class: "color-picker", ref: "colorPicker", onDragstart: t[0] || (t[0] = ce(function() {
|
|
6533
6546
|
return e.onColorItemDragStart && e.onColorItemDragStart.apply(e, arguments);
|
|
6534
6547
|
}, ["stop"])), onDragover: t[1] || (t[1] = ce(function() {
|
|
6535
6548
|
return e.onColorItemDragOver && e.onColorItemDragOver.apply(e, arguments);
|
|
@@ -6537,12 +6550,12 @@ Pe(".color-picker[data-v-3c43ade8]{display:inline-block}.color-item[data-v-3c43a
|
|
|
6537
6550
|
return e.onColorItemDrop && e.onColorItemDrop.apply(e, arguments);
|
|
6538
6551
|
}, ["prevent", "stop"])), onClick: t[3] || (t[3] = ce(function() {
|
|
6539
6552
|
return e.onColorClick && e.onColorClick.apply(e, arguments);
|
|
6540
|
-
}, ["stop"])) }, [(
|
|
6541
|
-
return
|
|
6553
|
+
}, ["stop"])) }, [(w(!0), N(ee, null, se(e.values, function(u, c) {
|
|
6554
|
+
return w(), H(s, { class: "color-item", key: c, ref_for: !0, ref: function(d) {
|
|
6542
6555
|
return e.colorItemsRef[c] = d;
|
|
6543
6556
|
}, size: e.size, width: e.width, height: e.height, value: u, selected: e.colorItemSelected(c), "data-index": c, draggable: e.valueList.length > 1, format: e.format }, null, 8, ["size", "width", "height", "value", "selected", "data-index", "draggable", "format"]);
|
|
6544
|
-
}), 128)), e.addColor && e.addColorItemShow ? (
|
|
6545
|
-
return [e.isShowPicker ? (
|
|
6557
|
+
}), 128)), e.addColor && e.addColorItemShow ? (w(), H(i, { key: 0, class: "add-color-item", ref: "addColorItem", selected: e.colorItemSelected(-1), "data-index": -1 }, null, 8, ["selected"])) : ae("v-if", !0), (w(), H(Ba, { to: e.toPopupContainer, disabled: e.teleportDisabled }, [O(Va, null, { default: P(function() {
|
|
6558
|
+
return [e.isShowPicker ? (w(), H(l, { key: 0, class: "picker", style: Le(e.pickerStyle), ref: "pickerRef", value: e.selectedColor, format: e.format, "show-alpha": e.showAlpha, colors: e.colors, onChange: e.onPickerChange }, null, 8, ["style", "value", "format", "show-alpha", "colors", "onChange"])) : ae("v-if", !0)];
|
|
6546
6559
|
}), _: 1 })], 8, ["to", "disabled"]))], 544);
|
|
6547
6560
|
}, qe.__scopeId = "data-v-3c43ade8", qe.__file = "src/ColorPicker.vue";
|
|
6548
6561
|
const Qu = ne({
|
|
@@ -6576,7 +6589,7 @@ const Qu = ne({
|
|
|
6576
6589
|
const ec = { class: "color-pick" };
|
|
6577
6590
|
function tc(e, t, n, o, a, r) {
|
|
6578
6591
|
const s = E("a-input"), i = E("pick-colors");
|
|
6579
|
-
return
|
|
6592
|
+
return w(), N("div", ec, [
|
|
6580
6593
|
O(s, {
|
|
6581
6594
|
class: "input",
|
|
6582
6595
|
value: e.colorValue,
|
|
@@ -6618,7 +6631,7 @@ const nc = /* @__PURE__ */ ie(Qu, [["render", tc], ["__scopeId", "data-v-e2113f4
|
|
|
6618
6631
|
const ac = { class: "color-group-pick" };
|
|
6619
6632
|
function rc(e, t, n, o, a, r) {
|
|
6620
6633
|
const s = E("pick-colors");
|
|
6621
|
-
return
|
|
6634
|
+
return w(), N("div", ac, [
|
|
6622
6635
|
O(s, {
|
|
6623
6636
|
value: e.value,
|
|
6624
6637
|
"add-color": "",
|
|
@@ -6727,7 +6740,7 @@ const sc = { class: "form-group" }, uc = { class: "form-row" }, cc = {
|
|
|
6727
6740
|
}, pc = { class: "icon-group" };
|
|
6728
6741
|
function fc(e, t, n, o, a, r) {
|
|
6729
6742
|
const s = E("appstore-add-outlined"), i = E("draggable"), l = E("minus-circle-outlined");
|
|
6730
|
-
return
|
|
6743
|
+
return w(), N("div", sc, [
|
|
6731
6744
|
O(s, {
|
|
6732
6745
|
class: "icon add",
|
|
6733
6746
|
onClick: e.onAdd
|
|
@@ -6740,12 +6753,12 @@ function fc(e, t, n, o, a, r) {
|
|
|
6740
6753
|
}, {
|
|
6741
6754
|
item: P(({ element: u, index: c }) => [
|
|
6742
6755
|
Y("div", uc, [
|
|
6743
|
-
(
|
|
6756
|
+
(w(!0), N(ee, null, se(e.format, (d, f) => (w(), N("div", {
|
|
6744
6757
|
class: "form-item",
|
|
6745
6758
|
key: f
|
|
6746
6759
|
}, [
|
|
6747
|
-
Array.isArray(d.label) ? (
|
|
6748
|
-
(
|
|
6760
|
+
Array.isArray(d.label) ? (w(), N("span", cc, le(d.useLabelIndex ? d.label[c] + (c + 1) : d.label[c]), 1)) : (w(), N("span", dc, le(d.useLabelIndex ? d.label + (c + 1) : d.label), 1)),
|
|
6761
|
+
(w(), H(Rt(e.useComponentType(d.type)), pt({
|
|
6749
6762
|
class: "value",
|
|
6750
6763
|
[e.formatTypeValue(d.typeValue) || ""]: typeof u == "string" ? u : u[d.value] ?? d.defaultValue,
|
|
6751
6764
|
style: {
|
|
@@ -6762,7 +6775,7 @@ function fc(e, t, n, o, a, r) {
|
|
|
6762
6775
|
_: 1
|
|
6763
6776
|
}, 8, ["modelValue"]),
|
|
6764
6777
|
Y("div", pc, [
|
|
6765
|
-
(
|
|
6778
|
+
(w(!0), N(ee, null, se(e.myValue, (u, c) => (w(), N("div", {
|
|
6766
6779
|
class: "icon-item",
|
|
6767
6780
|
key: c
|
|
6768
6781
|
}, [
|
|
@@ -6800,7 +6813,7 @@ const vc = /* @__PURE__ */ ie(ic, [["render", fc], ["__scopeId", "data-v-065bc98
|
|
|
6800
6813
|
});
|
|
6801
6814
|
function hc(e, t, n, o, a, r) {
|
|
6802
6815
|
const s = E("a-textarea");
|
|
6803
|
-
return
|
|
6816
|
+
return w(), H(s, {
|
|
6804
6817
|
value: e.value,
|
|
6805
6818
|
disabled: e.disabled,
|
|
6806
6819
|
autoSize: {
|
|
@@ -6884,21 +6897,21 @@ const gc = /* @__PURE__ */ ie(mc, [["render", hc]]), yc = ne({
|
|
|
6884
6897
|
});
|
|
6885
6898
|
const bc = { class: "props-to-form" }, Cc = { class: "label" }, xc = { class: "component-wrapper" };
|
|
6886
6899
|
function wc(e, t, n, o, a, r) {
|
|
6887
|
-
return
|
|
6888
|
-
(
|
|
6900
|
+
return w(), N("div", bc, [
|
|
6901
|
+
(w(!0), N(ee, null, se(e.formProps, (s, i) => (w(), N("div", {
|
|
6889
6902
|
key: i,
|
|
6890
6903
|
class: "prop-item"
|
|
6891
6904
|
}, [
|
|
6892
6905
|
Y("span", Cc, le(s.label), 1),
|
|
6893
6906
|
Y("div", xc, [
|
|
6894
|
-
Array.isArray(s) ? (
|
|
6907
|
+
Array.isArray(s) ? (w(!0), N(ee, { key: 0 }, se(s, (l, u) => (w(), H(Rt(l.component), pt({
|
|
6895
6908
|
key: u,
|
|
6896
6909
|
class: "component",
|
|
6897
6910
|
style: l.style,
|
|
6898
6911
|
disabled: e.disabled
|
|
6899
6912
|
}, l.props, Kn(l.events)), null, 16, ["style", "disabled"]))), 128)) : ae("", !0),
|
|
6900
|
-
Array.isArray(s) ? ae("", !0) : (
|
|
6901
|
-
s.component ? (
|
|
6913
|
+
Array.isArray(s) ? ae("", !0) : (w(), N(ee, { key: 1 }, [
|
|
6914
|
+
s.component ? (w(), H(Rt(s.component), pt({
|
|
6902
6915
|
key: 0,
|
|
6903
6916
|
class: "component",
|
|
6904
6917
|
[s.valueProp || ""]: s.value,
|
|
@@ -7029,7 +7042,7 @@ const kc = {
|
|
|
7029
7042
|
ref: "dom"
|
|
7030
7043
|
};
|
|
7031
7044
|
function Tc(e, t, n, o, a, r) {
|
|
7032
|
-
return
|
|
7045
|
+
return w(), N("div", kc, null, 512);
|
|
7033
7046
|
}
|
|
7034
7047
|
const Ic = /* @__PURE__ */ ie(Oc, [["render", Tc], ["__scopeId", "data-v-132e78f8"]]), $c = ne({
|
|
7035
7048
|
name: "StyleConfigGroup",
|
|
@@ -7055,14 +7068,14 @@ const Ic = /* @__PURE__ */ ie(Oc, [["render", Tc], ["__scopeId", "data-v-132e78f
|
|
|
7055
7068
|
var b;
|
|
7056
7069
|
return (b = p(t)) == null ? void 0 : b.type;
|
|
7057
7070
|
}), s = R(() => hs.map((b) => {
|
|
7058
|
-
const { props: g, title: D, enableProps: v, onlyType:
|
|
7071
|
+
const { props: g, title: D, enableProps: v, onlyType: x, excludeType: _ } = b, k = [];
|
|
7059
7072
|
return g.forEach((y) => {
|
|
7060
7073
|
typeof y == "string" && k.push(y);
|
|
7061
7074
|
}), {
|
|
7062
7075
|
title: D,
|
|
7063
7076
|
enableProps: typeof v == "string" && t.value ? t.value[v] : void 0,
|
|
7064
7077
|
enablePropsName: v,
|
|
7065
|
-
onlyType:
|
|
7078
|
+
onlyType: x,
|
|
7066
7079
|
excludeType: _,
|
|
7067
7080
|
props: Ko(p(t), k)
|
|
7068
7081
|
};
|
|
@@ -7115,7 +7128,7 @@ const Ic = /* @__PURE__ */ ie(Oc, [["render", Tc], ["__scopeId", "data-v-132e78f
|
|
|
7115
7128
|
const Ec = { class: "style-group" };
|
|
7116
7129
|
function Dc(e, t, n, o, a, r) {
|
|
7117
7130
|
const s = E("a-select-option"), i = E("a-select"), l = E("a-form-item"), u = E("a-switch"), c = E("props-to-form"), d = E("a-collapse-panel"), f = E("editor"), m = E("a-collapse");
|
|
7118
|
-
return
|
|
7131
|
+
return w(), N("div", Ec, [
|
|
7119
7132
|
O(l, { label: "图表类型" }, {
|
|
7120
7133
|
default: P(() => [
|
|
7121
7134
|
O(i, {
|
|
@@ -7166,16 +7179,16 @@ function Dc(e, t, n, o, a, r) {
|
|
|
7166
7179
|
"onUpdate:activeKey": t[1] || (t[1] = (h) => e.activePanel = h)
|
|
7167
7180
|
}, {
|
|
7168
7181
|
default: P(() => [
|
|
7169
|
-
(
|
|
7182
|
+
(w(!0), N(ee, null, se(e.detailPropsGroups, (h) => (w(), N(ee, {
|
|
7170
7183
|
key: h.title
|
|
7171
7184
|
}, [
|
|
7172
|
-
e.isRenderForm(h, e.type) ? (
|
|
7173
|
-
h.title ? (
|
|
7185
|
+
e.isRenderForm(h, e.type) ? (w(), N(ee, { key: 0 }, [
|
|
7186
|
+
h.title ? (w(), H(d, {
|
|
7174
7187
|
header: h.title,
|
|
7175
7188
|
key: h.title
|
|
7176
7189
|
}, {
|
|
7177
7190
|
extra: P(() => [
|
|
7178
|
-
typeof h.enableProps == "boolean" ? (
|
|
7191
|
+
typeof h.enableProps == "boolean" ? (w(), H(u, {
|
|
7179
7192
|
key: 0,
|
|
7180
7193
|
checked: h.enableProps,
|
|
7181
7194
|
onChange: (b) => e.onSwitchChange(b, h.enablePropsName),
|
|
@@ -7192,7 +7205,7 @@ function Dc(e, t, n, o, a, r) {
|
|
|
7192
7205
|
}, 1032, ["header"])) : ae("", !0)
|
|
7193
7206
|
], 64)) : ae("", !0)
|
|
7194
7207
|
], 64))), 128)),
|
|
7195
|
-
e.isShowOptionEditor ? (
|
|
7208
|
+
e.isShowOptionEditor ? (w(), H(d, {
|
|
7196
7209
|
key: "custom-option",
|
|
7197
7210
|
header: "自定义option配置"
|
|
7198
7211
|
}, {
|
|
@@ -7271,7 +7284,7 @@ const Pc = /* @__PURE__ */ ie($c, [["render", Dc], ["__scopeId", "data-v-6513400
|
|
|
7271
7284
|
// controlList = [],
|
|
7272
7285
|
dataSourceId: v,
|
|
7273
7286
|
// 所属数据源ID
|
|
7274
|
-
idxLibMode:
|
|
7287
|
+
idxLibMode: x,
|
|
7275
7288
|
// 指标库模式, source= INDICATOR_LIB时候必填, NORMAL_YEAR_TABLE = 普通年表, WITH_DATE_DIM_TABLE = 带有时间维度表
|
|
7276
7289
|
preview: _ = !1
|
|
7277
7290
|
// 预览开关
|
|
@@ -7341,7 +7354,7 @@ const Pc = /* @__PURE__ */ ie($c, [["render", Dc], ["__scopeId", "data-v-6513400
|
|
|
7341
7354
|
pageFlag: !0,
|
|
7342
7355
|
sqlConditions: [],
|
|
7343
7356
|
dataSourceId: v,
|
|
7344
|
-
idxLibMode:
|
|
7357
|
+
idxLibMode: x,
|
|
7345
7358
|
preview: _
|
|
7346
7359
|
},
|
|
7347
7360
|
{
|
|
@@ -7843,7 +7856,7 @@ const Pc = /* @__PURE__ */ ie($c, [["render", Dc], ["__scopeId", "data-v-6513400
|
|
|
7843
7856
|
d === "" && (d = "{marker} {a} {c}");
|
|
7844
7857
|
const f = e.seriesTypes;
|
|
7845
7858
|
for (let m = 0; m < u; m++) {
|
|
7846
|
-
const h = f[m], { tooltipFormatter: b } = h || {}, { marker: g, seriesName: D, name: v, value:
|
|
7859
|
+
const h = f[m], { tooltipFormatter: b } = h || {}, { marker: g, seriesName: D, name: v, value: x, data: _ } = l[m] || {};
|
|
7847
7860
|
m === 0 && (c += `${v}<br/>`), c += Ut(
|
|
7848
7861
|
// 如果系列有提示框组件就使用自定义,没有就用默认的
|
|
7849
7862
|
b || d,
|
|
@@ -7851,11 +7864,11 @@ const Pc = /* @__PURE__ */ ie($c, [["render", Dc], ["__scopeId", "data-v-6513400
|
|
|
7851
7864
|
textData: {
|
|
7852
7865
|
marker: g,
|
|
7853
7866
|
name: v,
|
|
7854
|
-
value:
|
|
7867
|
+
value: x,
|
|
7855
7868
|
seriesName: D,
|
|
7856
7869
|
a: D,
|
|
7857
7870
|
b: v,
|
|
7858
|
-
c:
|
|
7871
|
+
c: x,
|
|
7859
7872
|
..._
|
|
7860
7873
|
}
|
|
7861
7874
|
},
|
|
@@ -8097,7 +8110,7 @@ const Pc = /* @__PURE__ */ ie($c, [["render", Dc], ["__scopeId", "data-v-6513400
|
|
|
8097
8110
|
fontWeight: "normal"
|
|
8098
8111
|
}
|
|
8099
8112
|
}
|
|
8100
|
-
},
|
|
8113
|
+
}, x = () => {
|
|
8101
8114
|
p(f).dataset.length === 0 ? l.value.setOption(v) : l.value.setOption(h.value);
|
|
8102
8115
|
}, _ = () => {
|
|
8103
8116
|
p(n.value).type !== "customGraph" && D();
|
|
@@ -8108,7 +8121,7 @@ const Pc = /* @__PURE__ */ ie($c, [["render", Dc], ["__scopeId", "data-v-6513400
|
|
|
8108
8121
|
return ue(
|
|
8109
8122
|
h,
|
|
8110
8123
|
() => {
|
|
8111
|
-
|
|
8124
|
+
x();
|
|
8112
8125
|
},
|
|
8113
8126
|
{
|
|
8114
8127
|
deep: !0
|
|
@@ -8149,7 +8162,7 @@ const Uc = {
|
|
|
8149
8162
|
};
|
|
8150
8163
|
function Wc(e, t, n, o, a, r) {
|
|
8151
8164
|
const s = E("a-spin");
|
|
8152
|
-
return
|
|
8165
|
+
return w(), N("div", Uc, [
|
|
8153
8166
|
O(s, {
|
|
8154
8167
|
spinning: e.loading,
|
|
8155
8168
|
wrapperClassName: "chart-spin",
|
|
@@ -8224,7 +8237,7 @@ const Ea = /* @__PURE__ */ ie(zc, [["render", Wc], ["__scopeId", "data-v-eccbe2c
|
|
|
8224
8237
|
const Yc = { class: "data-config" };
|
|
8225
8238
|
function Xc(e, t, n, o, a, r) {
|
|
8226
8239
|
const s = E("data-group"), i = E("a-tab-pane"), l = E("style-group"), u = E("a-tabs"), c = E("chart-graph");
|
|
8227
|
-
return
|
|
8240
|
+
return w(), N("div", Yc, [
|
|
8228
8241
|
O(u, {
|
|
8229
8242
|
activeKey: e.activeKey,
|
|
8230
8243
|
"onUpdate:activeKey": t[0] || (t[0] = (d) => e.activeKey = d)
|
|
@@ -8239,7 +8252,7 @@ function Xc(e, t, n, o, a, r) {
|
|
|
8239
8252
|
]),
|
|
8240
8253
|
_: 1
|
|
8241
8254
|
}),
|
|
8242
|
-
e.isShowStyleConfig ? (
|
|
8255
|
+
e.isShowStyleConfig ? (w(), H(i, {
|
|
8243
8256
|
key: "2",
|
|
8244
8257
|
tab: "样式配置",
|
|
8245
8258
|
"force-render": ""
|
|
@@ -8252,12 +8265,12 @@ function Xc(e, t, n, o, a, r) {
|
|
|
8252
8265
|
]),
|
|
8253
8266
|
_: 1
|
|
8254
8267
|
}, 8, ["activeKey"]),
|
|
8255
|
-
e.isShowStyleConfig ? (
|
|
8268
|
+
e.isShowStyleConfig ? (w(), H(c, {
|
|
8256
8269
|
key: 0,
|
|
8257
8270
|
class: "chart-component",
|
|
8258
8271
|
ref: "componentRef",
|
|
8259
8272
|
style: { width: "100%", height: "290px" }
|
|
8260
|
-
}, null, 512)) : (
|
|
8273
|
+
}, null, 512)) : (w(), H(Rt(e.type), pt({
|
|
8261
8274
|
key: 1,
|
|
8262
8275
|
class: "chart-component"
|
|
8263
8276
|
}, e.component, { ref: "componentRef" }), null, 16))
|
|
@@ -8325,7 +8338,7 @@ const Kc = /* @__PURE__ */ ie(qc, [["render", Xc], ["__scopeId", "data-v-b64f96e
|
|
|
8325
8338
|
const Zc = { class: "config-modal" }, Qc = { class: "config-modal-left" }, ed = { class: "config-modal-right" };
|
|
8326
8339
|
function td(e, t, n, o, a, r) {
|
|
8327
8340
|
const s = E("data-list"), i = E("data-config");
|
|
8328
|
-
return
|
|
8341
|
+
return w(), N("div", Zc, [
|
|
8329
8342
|
Y("div", Qc, [
|
|
8330
8343
|
O(s)
|
|
8331
8344
|
]),
|