g-ui-web 1.0.20 → 1.0.21
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/lib/g-ui-web.js +62 -54
- package/lib/g-ui-web.js.gz +0 -0
- package/lib/g-ui-web.umd.cjs +1 -1
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/package.json +1 -1
package/lib/g-ui-web.js
CHANGED
|
@@ -115167,140 +115167,148 @@ const b6t = { class: "g-datatable" }, _6t = H({
|
|
|
115167
115167
|
}
|
|
115168
115168
|
]
|
|
115169
115169
|
};
|
|
115170
|
-
const h =
|
|
115171
|
-
|
|
115170
|
+
const h = (C) => {
|
|
115171
|
+
const x = [];
|
|
115172
|
+
return C.forEach((S) => {
|
|
115173
|
+
let E = x.find((A) => A.source === S.source);
|
|
115174
|
+
E || (E = { source: S.source, count: S.count, children: [] }, x.push(E));
|
|
115175
|
+
const T = { source1: S.source1, count1: S.count1 };
|
|
115176
|
+
E.children.push(T);
|
|
115177
|
+
}), x;
|
|
115178
|
+
}, v = B({}), g = o.dbOptions.columns.find((C) => C.field === o.dbOptions.dataField), m = async (C) => {
|
|
115179
|
+
if (C = h(C), ya(C)) {
|
|
115172
115180
|
s.value = !0;
|
|
115173
115181
|
return;
|
|
115174
115182
|
} else
|
|
115175
115183
|
s.value = !1;
|
|
115176
115184
|
p = {
|
|
115177
115185
|
series: [{}]
|
|
115178
|
-
}, f = [], d.value =
|
|
115179
|
-
let
|
|
115180
|
-
name:
|
|
115181
|
-
value:
|
|
115182
|
-
children:
|
|
115183
|
-
name:
|
|
115184
|
-
value:
|
|
115186
|
+
}, f = [], d.value = C, d.value && o.dbOptions && (d.value.map((x) => {
|
|
115187
|
+
let S = {
|
|
115188
|
+
name: x[o.dbOptions.axisField],
|
|
115189
|
+
value: x[o.dbOptions.dataField],
|
|
115190
|
+
children: x.children.map((E) => ({
|
|
115191
|
+
name: E[o.dbOptions.cAxisField],
|
|
115192
|
+
value: E[o.dbOptions.cDataField]
|
|
115185
115193
|
}))
|
|
115186
115194
|
};
|
|
115187
|
-
f.push(
|
|
115195
|
+
f.push(S);
|
|
115188
115196
|
}), o.options ? o.options.series ? o.options.series[0].data = f : o.options.series = [{ data: f }] : p.series[0].data = f), o.options ? c.value = CW(o.options, {
|
|
115189
115197
|
type: o.type,
|
|
115190
115198
|
size: o.size,
|
|
115191
115199
|
isMarkLine: o.isMarkLine,
|
|
115192
115200
|
markLineData: o.markLineData,
|
|
115193
|
-
title:
|
|
115194
|
-
unit:
|
|
115201
|
+
title: g.title,
|
|
115202
|
+
unit: g.unit
|
|
115195
115203
|
}) : c.value = CW(p, {
|
|
115196
115204
|
type: o.type,
|
|
115197
115205
|
size: o.size,
|
|
115198
115206
|
isMarkLine: o.isMarkLine,
|
|
115199
115207
|
markLineData: o.markLineData,
|
|
115200
|
-
title:
|
|
115201
|
-
unit:
|
|
115202
|
-
}),
|
|
115208
|
+
title: g.title,
|
|
115209
|
+
unit: g.unit
|
|
115210
|
+
}), _(1);
|
|
115203
115211
|
};
|
|
115204
|
-
let
|
|
115205
|
-
const
|
|
115212
|
+
let y = B(null);
|
|
115213
|
+
const _ = (C) => {
|
|
115206
115214
|
xe(() => {
|
|
115207
115215
|
if (!u.value) return;
|
|
115208
|
-
const
|
|
115209
|
-
|
|
115216
|
+
const x = u.value.myChart;
|
|
115217
|
+
C ? (y.value = C, c.value = q8(
|
|
115210
115218
|
c.value,
|
|
115211
115219
|
{
|
|
115212
115220
|
type: o.type,
|
|
115213
115221
|
size: o.size,
|
|
115214
115222
|
isMarkLine: o.isMarkLine,
|
|
115215
115223
|
markLineData: o.markLineData,
|
|
115216
|
-
title:
|
|
115217
|
-
unit:
|
|
115224
|
+
title: g.title,
|
|
115225
|
+
unit: g.unit
|
|
115218
115226
|
},
|
|
115219
|
-
|
|
115220
|
-
),
|
|
115221
|
-
|
|
115227
|
+
y.value
|
|
115228
|
+
), x.on("finished", function() {
|
|
115229
|
+
y.value !== null && x.dispatchAction({
|
|
115222
115230
|
type: "highlight",
|
|
115223
115231
|
seriesIndex: 0,
|
|
115224
|
-
dataIndex:
|
|
115232
|
+
dataIndex: y.value
|
|
115225
115233
|
});
|
|
115226
|
-
})) : (
|
|
115227
|
-
c.value &&
|
|
115234
|
+
})) : (x.on("click", (S) => {
|
|
115235
|
+
c.value && S.seriesIndex === 0 && (y.value === S.dataIndex ? (y.value = null, c.value = q8(c.value, {
|
|
115228
115236
|
type: o.type,
|
|
115229
115237
|
size: o.size,
|
|
115230
115238
|
isMarkLine: o.isMarkLine,
|
|
115231
115239
|
markLineData: o.markLineData,
|
|
115232
|
-
title:
|
|
115233
|
-
unit:
|
|
115234
|
-
})) : (
|
|
115240
|
+
title: g.title,
|
|
115241
|
+
unit: g == null ? void 0 : g.unit
|
|
115242
|
+
})) : (y.value = S.dataIndex, c.value = q8(
|
|
115235
115243
|
c.value,
|
|
115236
115244
|
{
|
|
115237
115245
|
type: o.type,
|
|
115238
115246
|
size: o.size,
|
|
115239
115247
|
isMarkLine: o.isMarkLine,
|
|
115240
115248
|
markLineData: o.markLineData,
|
|
115241
|
-
title:
|
|
115242
|
-
unit:
|
|
115249
|
+
title: g.title,
|
|
115250
|
+
unit: g == null ? void 0 : g.unit
|
|
115243
115251
|
},
|
|
115244
|
-
|
|
115252
|
+
S.dataIndex
|
|
115245
115253
|
)));
|
|
115246
|
-
}),
|
|
115247
|
-
|
|
115254
|
+
}), x.on("finished", function() {
|
|
115255
|
+
y.value !== null && x.dispatchAction({
|
|
115248
115256
|
type: "highlight",
|
|
115249
115257
|
seriesIndex: 0,
|
|
115250
|
-
dataIndex:
|
|
115258
|
+
dataIndex: y.value
|
|
115251
115259
|
});
|
|
115252
115260
|
}));
|
|
115253
115261
|
});
|
|
115254
115262
|
};
|
|
115255
115263
|
qt(async () => {
|
|
115256
|
-
await
|
|
115264
|
+
await _();
|
|
115257
115265
|
}), ke(
|
|
115258
115266
|
() => o.dbOptions.data,
|
|
115259
|
-
(
|
|
115260
|
-
|
|
115261
|
-
const
|
|
115262
|
-
!
|
|
115267
|
+
(C) => {
|
|
115268
|
+
v.value = jt(C);
|
|
115269
|
+
const x = ["http://", "https://", void 0];
|
|
115270
|
+
!C.path && !C.dsKey && !v.value.dataUrl && !(typeof C == "string" && x.some((S) => C.includes(S))) && v.value.loadStaticData(C), (typeof C == "string" || C.path) && v.value.reload(C.data);
|
|
115263
115271
|
},
|
|
115264
115272
|
{
|
|
115265
115273
|
deep: !0
|
|
115266
115274
|
}
|
|
115267
115275
|
), ke(
|
|
115268
115276
|
() => n["gui-theme"],
|
|
115269
|
-
async (
|
|
115270
|
-
|
|
115271
|
-
i++,
|
|
115272
|
-
|
|
115277
|
+
async (C) => {
|
|
115278
|
+
v.value = null, xe(async () => {
|
|
115279
|
+
i++, v.value = jt(o.dbOptions.data), m(v.value.data), v.value.on("load", (x) => {
|
|
115280
|
+
m(x);
|
|
115273
115281
|
});
|
|
115274
115282
|
});
|
|
115275
115283
|
},
|
|
115276
115284
|
{ deep: !0 }
|
|
115277
115285
|
), xe(async () => {
|
|
115278
|
-
|
|
115279
|
-
|
|
115286
|
+
v.value = jt(o.dbOptions.data), v.value.on("load", (C) => {
|
|
115287
|
+
m(C);
|
|
115280
115288
|
});
|
|
115281
115289
|
}), t({
|
|
115282
115290
|
props: o
|
|
115283
115291
|
});
|
|
115284
|
-
const
|
|
115285
|
-
a("chart-click",
|
|
115292
|
+
const w = (C) => {
|
|
115293
|
+
a("chart-click", C);
|
|
115286
115294
|
};
|
|
115287
|
-
return (
|
|
115288
|
-
const
|
|
115295
|
+
return (C, x) => {
|
|
115296
|
+
const S = vt("g-chart");
|
|
115289
115297
|
return D(), V("div", {
|
|
115290
115298
|
class: K(["g-pie-level", l.value])
|
|
115291
115299
|
}, [
|
|
115292
|
-
(D(), Te(
|
|
115300
|
+
(D(), Te(S, Pt({ options: c.value }, C.$attrs, {
|
|
115293
115301
|
ref_key: "pieChartRef",
|
|
115294
115302
|
ref: u,
|
|
115295
115303
|
isEmpty: s.value,
|
|
115296
115304
|
description: e.description,
|
|
115297
|
-
onClick:
|
|
115305
|
+
onClick: w,
|
|
115298
115306
|
key: b(i)
|
|
115299
115307
|
}), null, 16, ["options", "isEmpty", "description"]))
|
|
115300
115308
|
], 2);
|
|
115301
115309
|
};
|
|
115302
115310
|
}
|
|
115303
|
-
}), M8t = /* @__PURE__ */ Qn(A8t, [["__scopeId", "data-v-
|
|
115311
|
+
}), M8t = /* @__PURE__ */ Qn(A8t, [["__scopeId", "data-v-50060849"]]), k8t = tr(M8t), D8t = { class: "g-calendar" }, O8t = { class: "g-calendar-header" }, I8t = { class: "switch-box" }, L8t = { class: "switch-box1" }, R8t = { class: "switch-box2" }, P8t = {
|
|
115304
115312
|
key: 0,
|
|
115305
115313
|
class: "todoList"
|
|
115306
115314
|
}, N8t = { class: "popover-inbox" }, $8t = ["onClick"], V8t = {
|
package/lib/g-ui-web.js.gz
CHANGED
|
Binary file
|