@ecan-bi/indicator-library 1.0.96 → 1.0.97
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 +59 -55
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +10 -10
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @ecan-bi/indicator-library@1.0.
|
|
1
|
+
/*! @ecan-bi/indicator-library@1.0.97 */
|
|
2
2
|
import { defineComponent as fe, inject as J, unref as i, computed as Q, ref as W, reactive as xo, onMounted as Ue, resolveComponent as E, openBlock as y, createElementBlock as G, createVNode as v, withCtx as S, createElementVNode as q, createTextVNode as Y, toDisplayString as ce, h as sl, nextTick as Gn, watch as Se, onUnmounted as ha, normalizeClass as Zt, Fragment as le, renderList as Ce, createBlock as K, createCommentVNode as te, provide as Oe, resolveDirective as ba, withModifiers as He, withDirectives as en, normalizeStyle as Ve, vShow as Co, pushScopeId as _t, popScopeId as St, createSlots as Ui, mergeProps as qt, withKeys as is, onBeforeUnmount as Gi, Teleport as rs, Transition as ss, toRaw as us, resolveDynamicComponent as wo, toHandlers as ul } from "vue";
|
|
3
3
|
import { cloneDeep as he, debounce as zi, reduce as cl, pick as _o, without as cs } from "lodash-es";
|
|
4
4
|
import { Spin as ya, TreeSelect as ds, Tooltip as ga, InputSearch as Hi, Pagination as ps, Modal as At, Button as Rt, Select as Re, SelectOption as Tt, Input as tt, Checkbox as Ca, Collapse as wa, CollapsePanel as _a, Tag as fs, CheckableTag as ms, message as Ye, DatePicker as vs, Dropdown as ko, Menu as Oo, MenuItem as Lo, SubMenu as Wi, Popover as qn, Tabs as Eo, TabPane as $o, RadioGroup as Sa, Radio as hs, InputNumber as jt, Row as bs, Col as ys, Textarea as Aa, Tree as gs, RadioButton as Yi, Form as Cs, FormItem as qi, Card as ws, MenuDivider as _s, Switch as Ki, Slider as Ss, Table as Do } from "ant-design-vue";
|
|
@@ -17341,8 +17341,11 @@ const uy = /* @__PURE__ */ ye(ny, [["render", sy], ["__scopeId", "data-v-2588920
|
|
|
17341
17341
|
};
|
|
17342
17342
|
}
|
|
17343
17343
|
});
|
|
17344
|
-
const dy = (e) => (_t("data-v-
|
|
17345
|
-
|
|
17344
|
+
const dy = (e) => (_t("data-v-c0d80844"), e = e(), St(), e), py = { class: "control-group" }, fy = { class: "control-group-header" }, my = { class: "sync-wrap" }, vy = /* @__PURE__ */ dy(() => /* @__PURE__ */ q("div", { class: "title" }, " 将此全局过滤条件配置同步至选中组件的指标库配置中。若被选中组件已有全局过滤条件将会被覆盖! ", -1)), hy = {
|
|
17345
|
+
key: 0,
|
|
17346
|
+
class: "selected-total"
|
|
17347
|
+
}, by = { class: "operate-container" }, yy = { class: "control-group-content" };
|
|
17348
|
+
function gy(e, t, n, o, a, l) {
|
|
17346
17349
|
const s = E("a-button"), u = E("a-select"), r = E("a-popover"), c = E("control-list");
|
|
17347
17350
|
return y(), G("div", py, [
|
|
17348
17351
|
q("div", fy, [
|
|
@@ -17385,7 +17388,8 @@ function yy(e, t, n, o, a, l) {
|
|
|
17385
17388
|
return [
|
|
17386
17389
|
q("div", my, [
|
|
17387
17390
|
vy,
|
|
17388
|
-
|
|
17391
|
+
e.indicatorComponents.length ? (y(), G("div", hy, ce(e.selectedIds.length) + " / " + ce(e.indicatorComponents.length) + " 项 ", 1)) : te("", !0),
|
|
17392
|
+
q("div", by, [
|
|
17389
17393
|
v(u, {
|
|
17390
17394
|
style: { flex: "1" },
|
|
17391
17395
|
value: e.selectedIds,
|
|
@@ -17427,7 +17431,7 @@ function yy(e, t, n, o, a, l) {
|
|
|
17427
17431
|
_: 1
|
|
17428
17432
|
}, 8, ["visible"])
|
|
17429
17433
|
]),
|
|
17430
|
-
q("div",
|
|
17434
|
+
q("div", yy, [
|
|
17431
17435
|
v(c, {
|
|
17432
17436
|
class: "condition-list",
|
|
17433
17437
|
list: e.controlList,
|
|
@@ -17437,7 +17441,7 @@ function yy(e, t, n, o, a, l) {
|
|
|
17437
17441
|
])
|
|
17438
17442
|
]);
|
|
17439
17443
|
}
|
|
17440
|
-
const
|
|
17444
|
+
const Cy = /* @__PURE__ */ ye(cy, [["render", gy], ["__scopeId", "data-v-c0d80844"]]), wy = fe({
|
|
17441
17445
|
name: "VariableCard",
|
|
17442
17446
|
props: {
|
|
17443
17447
|
item: {
|
|
@@ -17564,15 +17568,15 @@ const gy = /* @__PURE__ */ ye(cy, [["render", yy], ["__scopeId", "data-v-5d63fda
|
|
|
17564
17568
|
};
|
|
17565
17569
|
}
|
|
17566
17570
|
});
|
|
17567
|
-
const
|
|
17568
|
-
function
|
|
17571
|
+
const _y = { class: "variable-item" }, Sy = ["title"], Ay = { class: "popover-content-wrap" }, Ty = { style: { display: "flex" } };
|
|
17572
|
+
function xy(e, t, n, o, a, l) {
|
|
17569
17573
|
const s = E("a-input"), u = E("a-select"), r = E("a-select-option"), c = E("a-input-number"), d = E("a-tab-pane"), p = E("a-tabs"), m = E("appstore-add-outlined"), C = E("a-popover"), w = E("close-outlined");
|
|
17570
|
-
return y(), G("div",
|
|
17574
|
+
return y(), G("div", _y, [
|
|
17571
17575
|
e.variableData.randomKey ? (y(), G("div", {
|
|
17572
17576
|
key: 0,
|
|
17573
17577
|
class: "var-indicator",
|
|
17574
17578
|
title: e.label
|
|
17575
|
-
}, ce(e.label), 9,
|
|
17579
|
+
}, ce(e.label), 9, Sy)) : te("", !0),
|
|
17576
17580
|
v(s, {
|
|
17577
17581
|
class: "field-name",
|
|
17578
17582
|
value: e.variableData.variableName,
|
|
@@ -17644,7 +17648,7 @@ function Ty(e, t, n, o, a, l) {
|
|
|
17644
17648
|
placement: "bottomRight"
|
|
17645
17649
|
}, {
|
|
17646
17650
|
content: S(() => [
|
|
17647
|
-
q("div",
|
|
17651
|
+
q("div", Ay, [
|
|
17648
17652
|
v(p, {
|
|
17649
17653
|
defaultActiveKey: e.variableData.activeOperateKey,
|
|
17650
17654
|
onChange: e.changeTab
|
|
@@ -17742,7 +17746,7 @@ function Ty(e, t, n, o, a, l) {
|
|
|
17742
17746
|
key: 2
|
|
17743
17747
|
}, {
|
|
17744
17748
|
default: S(() => [
|
|
17745
|
-
q("div",
|
|
17749
|
+
q("div", Ty, [
|
|
17746
17750
|
v(u, {
|
|
17747
17751
|
value: e.variableData.operateValue,
|
|
17748
17752
|
"onUpdate:value": t[10] || (t[10] = (b) => e.variableData.operateValue = b),
|
|
@@ -17852,10 +17856,10 @@ function Ty(e, t, n, o, a, l) {
|
|
|
17852
17856
|
}, null, 8, ["onClick"]))
|
|
17853
17857
|
]);
|
|
17854
17858
|
}
|
|
17855
|
-
const
|
|
17859
|
+
const ky = /* @__PURE__ */ ye(wy, [["render", xy], ["__scopeId", "data-v-0d77395a"]]), Oy = fe({
|
|
17856
17860
|
name: "VariableGroup",
|
|
17857
17861
|
components: {
|
|
17858
|
-
VariableItem:
|
|
17862
|
+
VariableItem: ky
|
|
17859
17863
|
},
|
|
17860
17864
|
setup() {
|
|
17861
17865
|
const e = J(Me), t = J(Xe), n = J(ft), o = Q(() => {
|
|
@@ -17900,12 +17904,12 @@ const xy = /* @__PURE__ */ ye(Cy, [["render", Ty], ["__scopeId", "data-v-0d77395
|
|
|
17900
17904
|
};
|
|
17901
17905
|
}
|
|
17902
17906
|
});
|
|
17903
|
-
const
|
|
17904
|
-
function
|
|
17907
|
+
const Ly = { class: "variable-group" }, Ey = { class: "variable-group-header" }, $y = { class: "variable-group-content" };
|
|
17908
|
+
function Dy(e, t, n, o, a, l) {
|
|
17905
17909
|
const s = E("a-button"), u = E("variable-item");
|
|
17906
17910
|
return y(), G(le, null, [
|
|
17907
|
-
q("div",
|
|
17908
|
-
q("div",
|
|
17911
|
+
q("div", Ly, [
|
|
17912
|
+
q("div", Ey, [
|
|
17909
17913
|
v(s, { onClick: e.onAddVariable }, {
|
|
17910
17914
|
default: S(() => [
|
|
17911
17915
|
Y("添加变量")
|
|
@@ -17914,7 +17918,7 @@ function $y(e, t, n, o, a, l) {
|
|
|
17914
17918
|
}, 8, ["onClick"])
|
|
17915
17919
|
])
|
|
17916
17920
|
]),
|
|
17917
|
-
q("div",
|
|
17921
|
+
q("div", $y, [
|
|
17918
17922
|
(y(!0), G(le, null, Ce(e.variableList, (r, c) => (y(), K(u, {
|
|
17919
17923
|
key: r.keyValue,
|
|
17920
17924
|
item: r,
|
|
@@ -17926,7 +17930,7 @@ function $y(e, t, n, o, a, l) {
|
|
|
17926
17930
|
])
|
|
17927
17931
|
], 64);
|
|
17928
17932
|
}
|
|
17929
|
-
const
|
|
17933
|
+
const Iy = /* @__PURE__ */ ye(Oy, [["render", Dy], ["__scopeId", "data-v-fd60cd09"]]), as = (e = {}) => {
|
|
17930
17934
|
const t = (l = {}) => {
|
|
17931
17935
|
const { label: s, name: u, location: r, show: c, indexCode: d, typeGuid: p } = l;
|
|
17932
17936
|
return {
|
|
@@ -18112,7 +18116,7 @@ const Dy = /* @__PURE__ */ ye(ky, [["render", $y], ["__scopeId", "data-v-fd60cd0
|
|
|
18112
18116
|
console.error(x);
|
|
18113
18117
|
}
|
|
18114
18118
|
};
|
|
18115
|
-
},
|
|
18119
|
+
}, Fy = fe({
|
|
18116
18120
|
name: "ChartGraph",
|
|
18117
18121
|
components: {
|
|
18118
18122
|
ASpin: ya
|
|
@@ -18229,29 +18233,29 @@ const Dy = /* @__PURE__ */ ye(ky, [["render", $y], ["__scopeId", "data-v-fd60cd0
|
|
|
18229
18233
|
};
|
|
18230
18234
|
}
|
|
18231
18235
|
});
|
|
18232
|
-
const
|
|
18236
|
+
const Ny = {
|
|
18233
18237
|
class: "ecan-chart-graph",
|
|
18234
18238
|
ref: "chartWrapRef"
|
|
18235
|
-
},
|
|
18239
|
+
}, My = {
|
|
18236
18240
|
style: { width: "100%", height: "100%" },
|
|
18237
18241
|
ref: "echartRef"
|
|
18238
18242
|
};
|
|
18239
|
-
function
|
|
18243
|
+
function Py(e, t, n, o, a, l) {
|
|
18240
18244
|
const s = E("a-spin");
|
|
18241
|
-
return y(), G("div",
|
|
18245
|
+
return y(), G("div", Ny, [
|
|
18242
18246
|
v(s, {
|
|
18243
18247
|
spinning: e.loading,
|
|
18244
18248
|
wrapperClassName: "chart-spin",
|
|
18245
18249
|
tip: "数据加载中..."
|
|
18246
18250
|
}, {
|
|
18247
18251
|
default: S(() => [
|
|
18248
|
-
q("div",
|
|
18252
|
+
q("div", My, null, 512)
|
|
18249
18253
|
]),
|
|
18250
18254
|
_: 1
|
|
18251
18255
|
}, 8, ["spinning"])
|
|
18252
18256
|
], 512);
|
|
18253
18257
|
}
|
|
18254
|
-
const ls = /* @__PURE__ */ ye(
|
|
18258
|
+
const ls = /* @__PURE__ */ ye(Fy, [["render", Py], ["__scopeId", "data-v-845f7ab1"]]), Vy = fe({
|
|
18255
18259
|
name: "TableGraph",
|
|
18256
18260
|
components: { ATable: Do },
|
|
18257
18261
|
props: {
|
|
@@ -18297,8 +18301,8 @@ const ls = /* @__PURE__ */ ye(Iy, [["render", My], ["__scopeId", "data-v-845f7ab
|
|
|
18297
18301
|
columnsConfigMap: i(t).columnsConfigMap
|
|
18298
18302
|
};
|
|
18299
18303
|
}
|
|
18300
|
-
}),
|
|
18301
|
-
function
|
|
18304
|
+
}), By = { key: 0 };
|
|
18305
|
+
function Ry(e, t, n, o, a, l) {
|
|
18302
18306
|
const s = E("a-table");
|
|
18303
18307
|
return y(), K(s, {
|
|
18304
18308
|
style: { width: "100%" },
|
|
@@ -18309,12 +18313,12 @@ function By(e, t, n, o, a, l) {
|
|
|
18309
18313
|
pagination: e.pagination
|
|
18310
18314
|
}, {
|
|
18311
18315
|
bodyCell: S(({ column: u, record: r }) => [
|
|
18312
|
-
u.retentiondigit !== void 0 ? (y(), G("span",
|
|
18316
|
+
u.retentiondigit !== void 0 ? (y(), G("span", By, ce(e.handleFormat(r, u)), 1)) : te("", !0)
|
|
18313
18317
|
]),
|
|
18314
18318
|
_: 1
|
|
18315
18319
|
}, 8, ["columns", "data-source", "pagination"]);
|
|
18316
18320
|
}
|
|
18317
|
-
const
|
|
18321
|
+
const jy = /* @__PURE__ */ ye(Vy, [["render", Ry]]), Uy = fe({
|
|
18318
18322
|
name: "DataConfig",
|
|
18319
18323
|
components: {
|
|
18320
18324
|
DataGroup: zm,
|
|
@@ -18322,11 +18326,11 @@ const Ry = /* @__PURE__ */ ye(Py, [["render", By]]), jy = fe({
|
|
|
18322
18326
|
ChartGraph: ls,
|
|
18323
18327
|
ATabs: Eo,
|
|
18324
18328
|
ATabPane: $o,
|
|
18325
|
-
ControlGroup:
|
|
18326
|
-
VariableGroup:
|
|
18329
|
+
ControlGroup: Cy,
|
|
18330
|
+
VariableGroup: Iy,
|
|
18327
18331
|
AButton: Rt,
|
|
18328
18332
|
ReloadOutlined: Pc,
|
|
18329
|
-
TableGraph:
|
|
18333
|
+
TableGraph: jy
|
|
18330
18334
|
},
|
|
18331
18335
|
setup(e, { expose: t }) {
|
|
18332
18336
|
var z;
|
|
@@ -18579,18 +18583,18 @@ const Ry = /* @__PURE__ */ ye(Py, [["render", By]]), jy = fe({
|
|
|
18579
18583
|
};
|
|
18580
18584
|
}
|
|
18581
18585
|
});
|
|
18582
|
-
const
|
|
18586
|
+
const Gy = {
|
|
18583
18587
|
key: 0,
|
|
18584
18588
|
class: "ecan-pivot-table",
|
|
18585
18589
|
ref: "pivotTableWrapRef"
|
|
18586
|
-
},
|
|
18590
|
+
}, zy = {
|
|
18587
18591
|
key: 0,
|
|
18588
18592
|
id: "table-wrap",
|
|
18589
18593
|
class: "chart-component",
|
|
18590
18594
|
ref: "tableWrapRef",
|
|
18591
18595
|
style: { width: "100%", height: "290px" }
|
|
18592
18596
|
};
|
|
18593
|
-
function
|
|
18597
|
+
function Hy(e, t, n, o, a, l) {
|
|
18594
18598
|
const s = E("pivot-table"), u = E("data-group"), r = E("a-tab-pane"), c = E("style-group"), d = E("control-group"), p = E("variable-group"), m = E("reload-outlined"), C = E("a-button"), w = E("a-tabs"), b = E("table-graph"), f = E("chart-graph");
|
|
18595
18599
|
return y(), G("div", {
|
|
18596
18600
|
class: Zt(["data-config", e.isPivotTable ? "pivot-table-wrap" : ""])
|
|
@@ -18618,7 +18622,7 @@ function zy(e, t, n, o, a, l) {
|
|
|
18618
18622
|
ref: "dataConfigPaneRef"
|
|
18619
18623
|
}, {
|
|
18620
18624
|
default: S(() => [
|
|
18621
|
-
e.isPivotTable && e.isIframeMode ? (y(), G("div",
|
|
18625
|
+
e.isPivotTable && e.isIframeMode ? (y(), G("div", Gy, [
|
|
18622
18626
|
v(s, qt({ ref: "componentRef" }, e.tableProps), null, 16)
|
|
18623
18627
|
], 512)) : (y(), G(le, { key: 1 }, [
|
|
18624
18628
|
e.isPivotTable ? te("", !0) : (y(), K(u, {
|
|
@@ -18676,7 +18680,7 @@ function zy(e, t, n, o, a, l) {
|
|
|
18676
18680
|
_: 1
|
|
18677
18681
|
}, 8, ["activeKey", "onChange"]),
|
|
18678
18682
|
e.isShowStyleConfig && !e.isPivotTable ? (y(), G(le, { key: 0 }, [
|
|
18679
|
-
e.type === "table" && e.activeKey === "1" ? (y(), G("div",
|
|
18683
|
+
e.type === "table" && e.activeKey === "1" ? (y(), G("div", zy, null, 512)) : e.type === "card" ? en((y(), K(b, qt({
|
|
18680
18684
|
key: 1,
|
|
18681
18685
|
class: "chart-component"
|
|
18682
18686
|
}, e.component), null, 16)), [
|
|
@@ -18692,11 +18696,11 @@ function zy(e, t, n, o, a, l) {
|
|
|
18692
18696
|
], 64)) : te("", !0)
|
|
18693
18697
|
], 2);
|
|
18694
18698
|
}
|
|
18695
|
-
const
|
|
18699
|
+
const Wy = /* @__PURE__ */ ye(Uy, [["render", Hy], ["__scopeId", "data-v-6e6b2139"]]), Yy = fe({
|
|
18696
18700
|
name: "IndicatorLibrary",
|
|
18697
18701
|
components: {
|
|
18698
18702
|
DataList: up,
|
|
18699
|
-
DataConfig:
|
|
18703
|
+
DataConfig: Wy
|
|
18700
18704
|
},
|
|
18701
18705
|
props: {
|
|
18702
18706
|
isShowStyleConfig: {
|
|
@@ -18821,17 +18825,17 @@ const Hy = /* @__PURE__ */ ye(jy, [["render", zy], ["__scopeId", "data-v-6e6b213
|
|
|
18821
18825
|
};
|
|
18822
18826
|
}
|
|
18823
18827
|
});
|
|
18824
|
-
const
|
|
18828
|
+
const qy = {
|
|
18825
18829
|
key: 0,
|
|
18826
18830
|
class: "config-modal"
|
|
18827
|
-
},
|
|
18831
|
+
}, Ky = {
|
|
18828
18832
|
key: 0,
|
|
18829
18833
|
class: "config-modal-left"
|
|
18830
18834
|
};
|
|
18831
|
-
function
|
|
18835
|
+
function Xy(e, t, n, o, a, l) {
|
|
18832
18836
|
const s = E("data-list"), u = E("data-config");
|
|
18833
|
-
return e.isUpdate ? te("", !0) : (y(), G("div",
|
|
18834
|
-
e.isPivotTable ? te("", !0) : (y(), G("div",
|
|
18837
|
+
return e.isUpdate ? te("", !0) : (y(), G("div", qy, [
|
|
18838
|
+
e.isPivotTable ? te("", !0) : (y(), G("div", Ky, [
|
|
18835
18839
|
v(s)
|
|
18836
18840
|
])),
|
|
18837
18841
|
q("div", {
|
|
@@ -18841,22 +18845,22 @@ function Ky(e, t, n, o, a, l) {
|
|
|
18841
18845
|
], 2)
|
|
18842
18846
|
]));
|
|
18843
18847
|
}
|
|
18844
|
-
const
|
|
18848
|
+
const Qy = /* @__PURE__ */ ye(Yy, [["render", Xy], ["__scopeId", "data-v-e77110fb"]]), Jy = Xi(Qy), Zy = Xi(ls), Ri = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
18845
18849
|
__proto__: null,
|
|
18846
|
-
EcanChartGraph:
|
|
18847
|
-
EcanIndicatorLibrary:
|
|
18848
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
18850
|
+
EcanChartGraph: Zy,
|
|
18851
|
+
EcanIndicatorLibrary: Jy
|
|
18852
|
+
}, Symbol.toStringTag, { value: "Module" })), eg = (e, t) => {
|
|
18849
18853
|
const { request: n } = t;
|
|
18850
18854
|
e.provide("$request", n), Object.keys(Ri).forEach((o) => {
|
|
18851
18855
|
const a = Ri[o];
|
|
18852
18856
|
a.install && e.use(a);
|
|
18853
18857
|
});
|
|
18854
|
-
},
|
|
18855
|
-
install:
|
|
18858
|
+
}, dg = {
|
|
18859
|
+
install: eg
|
|
18856
18860
|
};
|
|
18857
18861
|
export {
|
|
18858
|
-
|
|
18859
|
-
|
|
18860
|
-
|
|
18862
|
+
Zy as EcanChartGraph,
|
|
18863
|
+
Jy as EcanIndicatorLibrary,
|
|
18864
|
+
dg as default
|
|
18861
18865
|
};
|
|
18862
18866
|
//# sourceMappingURL=index.es.js.map
|