@campus-admin/ui 2.0.4 → 2.0.6

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/index.js CHANGED
@@ -126,8 +126,23 @@ function Ln(...e) {
126
126
  function q(e) {
127
127
  return e;
128
128
  }
129
+ // packages/ui/src/components/basic/icon-font.ts
130
+ async function Rn(e) {
131
+ let t = getComputedStyle(e, "::before");
132
+ if (!t.content || [
133
+ "none",
134
+ "normal",
135
+ "\"\"",
136
+ "''"
137
+ ].includes(t.content)) return !1;
138
+ try {
139
+ return (await document.fonts.load(`${t.fontSize} ${t.fontFamily}`)).length > 0;
140
+ } catch {
141
+ return !1;
142
+ }
143
+ }
129
144
  // packages/ui/src/components/basic/icons.ts
130
- var Rn = {
145
+ var zn = {
131
146
  home: un,
132
147
  chart: Zt,
133
148
  document: $t,
@@ -173,20 +188,50 @@ var Rn = {
173
188
  send: Sn,
174
189
  pin: An,
175
190
  video: Mn
176
- }, zn = /* @__PURE__ */ L({
191
+ }, Bn = /*@__PURE__*/ L({
177
192
  __name: "CaIcon",
178
- props: { name: {} },
193
+ props: {
194
+ name: {},
195
+ fallback: {}
196
+ },
179
197
  setup(e) {
180
- let t = e, n = A(() => t.name ? Rn[t.name] : void 0);
181
- return (e, t) => (B(), j(G(ye), null, {
182
- default: K(() => [n.value ? (B(), j(It(n.value), { key: 0 })) : U(e.$slots, "default", {}, void 0, void 0, 1)]),
198
+ let t = e, n = A(() => t.name && Object.hasOwn(zn, t.name) ? zn[t.name] : void 0), r = A(() => !n.value && !!t.name?.trim()), i = V(), a = V(!1), o = A(() => n.value ?? (!a.value && t.fallback ? zn[t.fallback] : void 0));
199
+ return Pt(() => {
200
+ Bt(() => t.name, async (e, t, n) => {
201
+ a.value = !1;
202
+ let o = !1;
203
+ if (n(() => {
204
+ o = !0;
205
+ }), !r.value || !i.value) return;
206
+ let s = await Rn(i.value);
207
+ o || (a.value = s);
208
+ }, {
209
+ immediate: !0,
210
+ flush: "post"
211
+ });
212
+ }), (t, n) => Vt((B(), j(G(ye), { class: "ca-icon" }, {
213
+ default: K(() => [r.value ? (B(), N("i", {
214
+ key: 0,
215
+ ref_key: "glyph",
216
+ ref: i,
217
+ class: R(e.name),
218
+ style: z({
219
+ position: a.value ? void 0 : "absolute",
220
+ visibility: a.value ? void 0 : "hidden"
221
+ }),
222
+ "aria-hidden": "true"
223
+ }, null, 6)) : M("v-if", !0), o.value ? (B(), j(It(o.value), { key: 1 })) : r.value ? M("v-if", !0) : U(t.$slots, "default", {}, void 0, !0, 2)]),
183
224
  _: 3
184
- }));
225
+ }, 512)), [[zt, o.value || a.value || !e.name]]);
185
226
  }
186
- }), Bn = {
227
+ }), Vn = (e, t) => {
228
+ let n = e.__vccOpts || e;
229
+ for (let [e, r] of t) n[e] = r;
230
+ return n;
231
+ }, Hn = /*#__PURE__*/ Vn(Bn, [["__scopeId", "data-v-b4ddb60c"]]), Un = {
187
232
  key: 1,
188
233
  class: "ca-page-actions"
189
- }, Vn = /* @__PURE__ */ L({
234
+ }, Wn = /* @__PURE__ */ L({
190
235
  __name: "CaPageActions",
191
236
  setup(e) {
192
237
  let t = V(null), n = V(!0);
@@ -195,25 +240,25 @@ var Rn = {
195
240
  }), jt(() => n.value = !0), Nt(() => n.value = !1), (e, r) => t.value ? (B(), j(kt, {
196
241
  key: 0,
197
242
  to: t.value
198
- }, [n.value ? U(e.$slots, "default", {}, void 0, void 0, 0) : M("v-if", !0)], 8, ["to"])) : (B(), N("div", Bn, [U(e.$slots, "default")]));
243
+ }, [n.value ? U(e.$slots, "default", {}, void 0, void 0, 0) : M("v-if", !0)], 8, ["to"])) : (B(), N("div", Un, [U(e.$slots, "default")]));
199
244
  }
200
- }), Hn = q(t), Un = q(g), Wn = q(pt), Gn = q(De), Kn = q(mt), qn = q(qe), Jn = q(le), Yn = q(Dt), Xn = {
201
- CaLink: Gn,
202
- CaText: Kn,
203
- CaScrollbar: qn,
204
- CaDivider: Jn,
205
- CaWatermark: Yn,
206
- CaAlert: Hn,
207
- CaCard: Un,
208
- CaIcon: zn,
209
- CaPageActions: Vn,
210
- CaTag: Wn
211
- }, Zn = q(p), Qn = q(m), $n = {
212
- CaButton: Zn,
213
- CaButtonGroup: Qn
214
- }, er = Symbol("campus-translate");
245
+ }), Gn = q(t), Kn = q(g), qn = q(pt), Jn = q(De), Yn = q(mt), Xn = q(qe), Zn = q(le), Qn = q(Dt), $n = {
246
+ CaLink: Jn,
247
+ CaText: Yn,
248
+ CaScrollbar: Xn,
249
+ CaDivider: Zn,
250
+ CaWatermark: Qn,
251
+ CaAlert: Gn,
252
+ CaCard: Kn,
253
+ CaIcon: Hn,
254
+ CaPageActions: Wn,
255
+ CaTag: qn
256
+ }, er = q(p), tr = q(m), nr = {
257
+ CaButton: er,
258
+ CaButtonGroup: tr
259
+ }, rr = Symbol("campus-translate");
215
260
  function J() {
216
- return At(er, (e) => e);
261
+ return At(rr, (e) => e);
217
262
  }
218
263
  // packages/ui/src/components/chart/chart-math.ts
219
264
  function Y(e) {
@@ -226,22 +271,22 @@ function X(e) {
226
271
  function Z(e, t, n) {
227
272
  return Math.min(n, Math.max(t, e));
228
273
  }
229
- function tr(e, t) {
274
+ function ir(e, t) {
230
275
  let n = Math.floor(Math.log10(e)), r = e / 10 ** n, i;
231
276
  return i = t ? r < 1.5 ? 1 : r < 3 ? 2 : r < 7 ? 5 : 10 : r <= 1 ? 1 : r <= 2 ? 2 : r <= 5 ? 5 : 10, i * 10 ** n;
232
277
  }
233
- function nr(e, t) {
278
+ function ar(e, t) {
234
279
  let n = Math.max(0, -Math.floor(Math.log10(t)) + 2);
235
280
  return Number(e.toFixed(Math.min(n, 12)));
236
281
  }
237
- function rr(e, t, n = 5, r = !0) {
282
+ function or(e, t, n = 5, r = !0) {
238
283
  let i = Number.isFinite(e) ? e : 0, a = Number.isFinite(t) ? t : 1;
239
284
  if (i > a && ([i, a] = [a, i]), r && (i = Math.min(i, 0), a = Math.max(a, 0)), i === a) {
240
285
  let e = i === 0 ? 1 : Math.abs(i) * .1;
241
286
  i = r && i >= 0 ? 0 : i - e, a += e;
242
287
  }
243
- let o = Math.max(2, Math.floor(n)), s = tr(tr(a - i, !1) / (o - 1), !0), c = Math.floor(i / s) * s, l = Math.ceil(a / s) * s, u = [], d = Math.round((l - c) / s);
244
- for (let e = 0; e <= d; e++) u.push(nr(c + e * s, s));
288
+ let o = Math.max(2, Math.floor(n)), s = ir(ir(a - i, !1) / (o - 1), !0), c = Math.floor(i / s) * s, l = Math.ceil(a / s) * s, u = [], d = Math.round((l - c) / s);
289
+ for (let e = 0; e <= d; e++) u.push(ar(c + e * s, s));
245
290
  return {
246
291
  min: u[0],
247
292
  max: u[u.length - 1],
@@ -249,11 +294,11 @@ function rr(e, t, n = 5, r = !0) {
249
294
  ticks: u
250
295
  };
251
296
  }
252
- function ir(e, t, n, r) {
297
+ function sr(e, t, n, r) {
253
298
  let i = t - e;
254
299
  return i === 0 ? () => (n + r) / 2 : (t) => n + (t - e) / i * (r - n);
255
300
  }
256
- function ar(e, t, n, r = .2) {
301
+ function cr(e, t, n, r = .2) {
257
302
  let i = Math.max(1, Math.floor(e)), a = (n - t) / i, o = a * (1 - Z(r, 0, .9));
258
303
  return {
259
304
  step: a,
@@ -262,13 +307,13 @@ function ar(e, t, n, r = .2) {
262
307
  center: (e) => t + e * a + a / 2
263
308
  };
264
309
  }
265
- function or(e, t, n) {
310
+ function lr(e, t, n) {
266
311
  if (e <= 0) return [];
267
312
  let r = Math.max(1, Math.floor(t / Math.max(1, n))), i = Math.max(1, Math.ceil(e / r)), a = [];
268
313
  for (let t = 0; t < e; t += i) a.push(t);
269
314
  return a;
270
315
  }
271
- function sr(e, t) {
316
+ function ur(e, t) {
272
317
  if (!e.length) return -1;
273
318
  let n = 0, r = e.length - 1;
274
319
  for (; n < r;) {
@@ -277,12 +322,12 @@ function sr(e, t) {
277
322
  }
278
323
  return n > 0 && t - e[n - 1] <= e[n] - t ? n - 1 : n;
279
324
  }
280
- function cr(e) {
325
+ function dr(e) {
281
326
  let t = [], n = [];
282
327
  for (let r of e) r && Y(r.x) && Y(r.y) ? n.push(r) : n.length && (t.push(n), n = []);
283
328
  return n.length && t.push(n), t;
284
329
  }
285
- function lr(e) {
330
+ function fr(e) {
286
331
  let t = e.length, n = [], r = [];
287
332
  for (let i = 0; i < t - 1; i++) n.push(e[i + 1].x - e[i].x), r.push(n[i] === 0 ? 0 : (e[i + 1].y - e[i].y) / n[i]);
288
333
  let i = Array(t);
@@ -301,26 +346,26 @@ function lr(e) {
301
346
  }
302
347
  return i;
303
348
  }
304
- function ur(e, t) {
349
+ function pr(e, t) {
305
350
  if (e.length < 2) return "";
306
351
  if (!t || e.length === 2) return e.slice(1).map((e) => `L${X(e.x)} ${X(e.y)}`).join("");
307
- let n = lr(e), r = "";
352
+ let n = fr(e), r = "";
308
353
  for (let t = 0; t < e.length - 1; t++) {
309
354
  let i = e[t], a = e[t + 1], o = (a.x - i.x) / 3;
310
355
  r += `C${X(i.x + o)} ${X(i.y + n[t] * o)} ${X(a.x - o)} ${X(a.y - n[t + 1] * o)} ${X(a.x)} ${X(a.y)}`;
311
356
  }
312
357
  return r;
313
358
  }
314
- function dr(e, t = !1) {
315
- return cr(e).filter((e) => e.length >= 2).map((e) => `M${X(e[0].x)} ${X(e[0].y)}${ur(e, t)}`).join("");
359
+ function mr(e, t = !1) {
360
+ return dr(e).filter((e) => e.length >= 2).map((e) => `M${X(e[0].x)} ${X(e[0].y)}${pr(e, t)}`).join("");
316
361
  }
317
- function fr(e, t, n = !1) {
318
- return cr(e).filter((e) => e.length >= 2).map((e) => {
362
+ function hr(e, t, n = !1) {
363
+ return dr(e).filter((e) => e.length >= 2).map((e) => {
319
364
  let r = e[0], i = e[e.length - 1];
320
- return `M${X(r.x)} ${X(t)}L${X(r.x)} ${X(r.y)}${ur(e, n)}L${X(i.x)} ${X(t)}Z`;
365
+ return `M${X(r.x)} ${X(t)}L${X(r.x)} ${X(r.y)}${pr(e, n)}L${X(i.x)} ${X(t)}Z`;
321
366
  }).join("");
322
367
  }
323
- function pr(e) {
368
+ function gr(e) {
324
369
  let t = Math.max(0, ...e.map((e) => e.length)), n = Array(t).fill(0), r = Array(t).fill(0);
325
370
  return e.map((e) => Array.from({ length: t }, (t, i) => {
326
371
  let a = e[i];
@@ -339,12 +384,12 @@ function pr(e) {
339
384
  };
340
385
  }));
341
386
  }
342
- function mr(e) {
387
+ function _r(e) {
343
388
  let t = Infinity, n = -Infinity;
344
389
  for (let r of e) Y(r) && (r < t && (t = r), r > n && (n = r));
345
390
  return t === Infinity ? null : [t, n];
346
391
  }
347
- function hr(e, t, n, r, i, a) {
392
+ function vr(e, t, n, r, i, a) {
348
393
  if (n <= 0 || r <= 0) return "";
349
394
  let o = Z(i, 0, Math.min(n, r) / 2), s = e + n, c = t + r;
350
395
  if (o === 0) return `M${X(e)} ${X(t)}H${X(s)}V${X(c)}H${X(e)}Z`;
@@ -355,8 +400,8 @@ function hr(e, t, n, r, i, a) {
355
400
  case "left": return `M${X(s)} ${X(t)}H${X(e + o)}Q${X(e)} ${X(t)} ${X(e)} ${X(t + o)}V${X(c - o)}Q${X(e)} ${X(c)} ${X(e + o)} ${X(c)}H${X(s)}Z`;
356
401
  }
357
402
  }
358
- var gr = Math.PI * 2;
359
- function _r(e, t = 0, n = gr) {
403
+ var yr = Math.PI * 2;
404
+ function br(e, t = 0, n = yr) {
360
405
  let r = e.map((e) => Y(e) && e > 0 ? e : 0), i = r.reduce((e, t) => e + t, 0);
361
406
  if (i <= 0) return [];
362
407
  let a = t;
@@ -377,11 +422,11 @@ function Q(e, t, n, r) {
377
422
  y: t - n * Math.cos(r)
378
423
  };
379
424
  }
380
- function vr(e, t, n, r, i, a) {
425
+ function xr(e, t, n, r, i, a) {
381
426
  let o = a - i;
382
427
  if (o <= 0 || n <= 0) return "";
383
428
  let s = Z(r, 0, n);
384
- if (o >= gr - 1e-6) {
429
+ if (o >= yr - 1e-6) {
385
430
  let r = Q(e, t, n, i), a = Q(e, t, n, i + Math.PI), o = `M${X(r.x)} ${X(r.y)}A${X(n)} ${X(n)} 0 1 1 ${X(a.x)} ${X(a.y)}A${X(n)} ${X(n)} 0 1 1 ${X(r.x)} ${X(r.y)}Z`;
386
431
  if (s > 0) {
387
432
  let n = Q(e, t, s, i), r = Q(e, t, s, i + Math.PI);
@@ -394,17 +439,17 @@ function vr(e, t, n, r, i, a) {
394
439
  let d = Q(e, t, s, a), f = Q(e, t, s, i);
395
440
  return `M${X(l.x)} ${X(l.y)}A${X(n)} ${X(n)} 0 ${c} 1 ${X(u.x)} ${X(u.y)}L${X(d.x)} ${X(d.y)}A${X(s)} ${X(s)} 0 ${c} 0 ${X(f.x)} ${X(f.y)}Z`;
396
441
  }
397
- function yr(e, t, n, r, i) {
442
+ function Sr(e, t, n, r, i) {
398
443
  let a = i - r;
399
444
  if (a <= 0 || n <= 0) return "";
400
- if (a >= gr - 1e-6) {
445
+ if (a >= yr - 1e-6) {
401
446
  let i = Q(e, t, n, r), a = Q(e, t, n, r + Math.PI);
402
447
  return `M${X(i.x)} ${X(i.y)}A${X(n)} ${X(n)} 0 1 1 ${X(a.x)} ${X(a.y)}A${X(n)} ${X(n)} 0 1 1 ${X(i.x)} ${X(i.y)}`;
403
448
  }
404
449
  let o = Q(e, t, n, r), s = Q(e, t, n, i);
405
450
  return `M${X(o.x)} ${X(o.y)}A${X(n)} ${X(n)} 0 ${+(a > Math.PI)} 1 ${X(s.x)} ${X(s.y)}`;
406
451
  }
407
- function br(e) {
452
+ function Cr(e) {
408
453
  return e === "gauge" ? {
409
454
  start: -3 * Math.PI / 4,
410
455
  sweep: 3 * Math.PI / 2
@@ -413,34 +458,34 @@ function br(e) {
413
458
  sweep: Math.PI
414
459
  } : {
415
460
  start: 0,
416
- sweep: gr
461
+ sweep: yr
417
462
  };
418
463
  }
419
- function xr(e, t, n) {
464
+ function wr(e, t, n) {
420
465
  if (!t?.length) return n;
421
466
  let r = [...t].sort((e, t) => e.at - t.at), i = n;
422
467
  for (let t of r) e >= t.at && (i = t.color);
423
468
  return i;
424
469
  }
425
- function Sr(e, t) {
470
+ function Tr(e, t) {
426
471
  return !Y(e) || !Y(t) || t <= 0 ? 0 : Z(e / t * 100, 0, 100);
427
472
  }
428
473
  function $(e) {
429
474
  return Y(e) ? e.toLocaleString("en-US", { maximumFractionDigits: 2 }) : "";
430
475
  }
431
- var Cr = [[1e8, "亿"], [1e4, "万"]], wr = [
476
+ var Er = [[1e8, "亿"], [1e4, "万"]], Dr = [
432
477
  [1e9, "B"],
433
478
  [1e6, "M"],
434
479
  [1e3, "K"]
435
480
  ];
436
- function Tr(e, t = Cr) {
481
+ function Or(e, t = Er) {
437
482
  if (!Y(e)) return "";
438
483
  let n = Math.abs(e);
439
484
  for (let [r, i] of t) if (n >= r) return `${Number((e / r).toFixed(2))}${i}`;
440
485
  return $(e);
441
486
  }
442
- function Er(e) {
443
- let t = mr(e);
487
+ function kr(e) {
488
+ let t = _r(e);
444
489
  if (!t) return null;
445
490
  let n = -1;
446
491
  return e.forEach((e, t) => {
@@ -453,10 +498,10 @@ function Er(e) {
453
498
  lastIndex: n
454
499
  };
455
500
  }
456
- function Dr(e) {
501
+ function Ar(e) {
457
502
  return `${Number((e * 100).toFixed(1))}%`;
458
503
  }
459
- function Or(e) {
504
+ function jr(e) {
460
505
  let t = V(), n = V(0), r;
461
506
  return Pt(() => {
462
507
  let e = t.value;
@@ -472,7 +517,7 @@ function Or(e) {
472
517
  })
473
518
  };
474
519
  }
475
- function kr() {
520
+ function Mr() {
476
521
  let e = V(/* @__PURE__ */ new Set());
477
522
  function t(t, n) {
478
523
  let r = new Set(e.value);
@@ -483,11 +528,11 @@ function kr() {
483
528
  toggle: t
484
529
  };
485
530
  }
486
- function Ar(e, t) {
531
+ function Nr(e, t) {
487
532
  return t ?? `var(--ca-chart-${e % 8 + 1})`;
488
533
  }
489
534
  // packages/ui/src/components/chart/parts/ChartLegend.vue?vue&type=script&setup=true&lang.ts
490
- var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
535
+ var Pr = { class: "ca-chart__legend" }, Fr = /* @__PURE__ */ L({
491
536
  __name: "ChartLegend",
492
537
  props: {
493
538
  items: {},
@@ -496,7 +541,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
496
541
  },
497
542
  emits: ["toggle"],
498
543
  setup(e) {
499
- return (t, n) => (B(), N("ul", jr, [(B(!0), N(k, null, H(e.items, (n, r) => (B(), N("li", { key: r }, [(B(), j(It(e.interactive ? "button" : "span"), {
544
+ return (t, n) => (B(), N("ul", Pr, [(B(!0), N(k, null, H(e.items, (n, r) => (B(), N("li", { key: r }, [(B(), j(It(e.interactive ? "button" : "span"), {
500
545
  class: R(["ca-chart__legend-item", { "is-off": n.off }]),
501
546
  type: e.interactive ? "button" : void 0,
502
547
  "aria-pressed": e.interactive ? !n.off : void 0,
@@ -514,7 +559,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
514
559
  "onClick"
515
560
  ]))]))), 128))]));
516
561
  }
517
- }), Nr = ["role"], Pr = /* @__PURE__ */ L({
562
+ }), Ir = ["role"], Lr = /* @__PURE__ */ L({
518
563
  __name: "ChartStatus",
519
564
  props: {
520
565
  loading: { type: Boolean },
@@ -526,9 +571,9 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
526
571
  key: 0,
527
572
  class: "ca-chart__status",
528
573
  role: e.loading ? "status" : void 0
529
- }, W(e.loading ? G(t)("campus.chart.loading") : G(t)("campus.chart.empty")), 9, Nr)) : M("v-if", !0);
574
+ }, W(e.loading ? G(t)("campus.chart.loading") : G(t)("campus.chart.empty")), 9, Ir)) : M("v-if", !0);
530
575
  }
531
- }), Fr = { class: "ca-chart__sr" }, Ir = { key: 0 }, Lr = { scope: "row" }, Rr = /* @__PURE__ */ L({
576
+ }), Rr = { class: "ca-chart__sr" }, zr = { key: 0 }, Br = { scope: "row" }, Vr = /* @__PURE__ */ L({
532
577
  __name: "ChartTable",
533
578
  props: {
534
579
  caption: {},
@@ -536,19 +581,19 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
536
581
  rows: {}
537
582
  },
538
583
  setup(e) {
539
- return (t, n) => (B(), N("div", Fr, [P("table", null, [
540
- e.caption ? (B(), N("caption", Ir, W(e.caption), 1)) : M("v-if", !0),
584
+ return (t, n) => (B(), N("div", Rr, [P("table", null, [
585
+ e.caption ? (B(), N("caption", zr, W(e.caption), 1)) : M("v-if", !0),
541
586
  P("thead", null, [P("tr", null, [(B(!0), N(k, null, H(e.head, (e, t) => (B(), N("th", {
542
587
  key: t,
543
588
  scope: "col"
544
589
  }, W(e), 1))), 128))])]),
545
- P("tbody", null, [(B(!0), N(k, null, H(e.rows, (e, t) => (B(), N("tr", { key: t }, [P("th", Lr, W(e[0]), 1), (B(!0), N(k, null, H(e.slice(1), (e, t) => (B(), N("td", { key: t }, W(e), 1))), 128))]))), 128))])
590
+ P("tbody", null, [(B(!0), N(k, null, H(e.rows, (e, t) => (B(), N("tr", { key: t }, [P("th", Br, W(e[0]), 1), (B(!0), N(k, null, H(e.slice(1), (e, t) => (B(), N("td", { key: t }, W(e), 1))), 128))]))), 128))])
546
591
  ])]));
547
592
  }
548
- }), zr = {
593
+ }), Hr = {
549
594
  key: 0,
550
595
  class: "ca-chart__tip-title"
551
- }, Br = { class: "ca-chart__tip-name" }, Vr = { class: "ca-chart__tip-value" }, Hr = /* @__PURE__ */ L({
596
+ }, Ur = { class: "ca-chart__tip-name" }, Wr = { class: "ca-chart__tip-value" }, Gr = /* @__PURE__ */ L({
552
597
  __name: "ChartTooltip",
553
598
  props: {
554
599
  x: {},
@@ -565,7 +610,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
565
610
  top: `${e.y}px`,
566
611
  transform: e.x > e.width / 2 ? "translateX(calc(-100% - 12px))" : "translateX(12px)"
567
612
  })
568
- }, [e.title ? (B(), N("div", zr, W(e.title), 1)) : M("v-if", !0), (B(!0), N(k, null, H(e.rows, (e, t) => (B(), N("div", {
613
+ }, [e.title ? (B(), N("div", Hr, W(e.title), 1)) : M("v-if", !0), (B(!0), N(k, null, H(e.rows, (e, t) => (B(), N("div", {
569
614
  key: t,
570
615
  class: "ca-chart__tip-row"
571
616
  }, [
@@ -573,35 +618,35 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
573
618
  class: "ca-chart__key",
574
619
  style: z({ "--key": e.color })
575
620
  }, null, 4),
576
- P("span", Br, W(e.name), 1),
577
- P("span", Vr, W(e.value), 1)
621
+ P("span", Ur, W(e.name), 1),
622
+ P("span", Wr, W(e.value), 1)
578
623
  ]))), 128))], 4));
579
624
  }
580
- }), Ur = ["aria-busy"], Wr = { class: "ca-chart__canvas" }, Gr = [
625
+ }), Kr = ["aria-busy"], qr = { class: "ca-chart__canvas" }, Jr = [
581
626
  "aria-label",
582
627
  "width",
583
628
  "height",
584
629
  "viewBox"
585
- ], Kr = [
630
+ ], Yr = [
586
631
  "x1",
587
632
  "x2",
588
633
  "y1",
589
634
  "y2"
590
- ], qr = ["x", "y"], Jr = [
635
+ ], Xr = ["x", "y"], Zr = [
591
636
  "x1",
592
637
  "x2",
593
638
  "y1",
594
639
  "y2"
595
- ], Yr = [
640
+ ], Qr = [
596
641
  "x",
597
642
  "y",
598
643
  "text-anchor"
599
- ], Xr = [
644
+ ], $r = [
600
645
  "x1",
601
646
  "x2",
602
647
  "y1",
603
648
  "y2"
604
- ], Zr = { class: "ca-chart__reveal" }, Qr = ["d"], $r = ["d"], ei = { class: "ca-chart__fade" }, ti = ["cx", "cy"], ni = ["cx", "cy"], ri = 400, ii = /* @__PURE__ */ L({
649
+ ], ei = { class: "ca-chart__reveal" }, ti = ["d"], ni = ["d"], ri = { class: "ca-chart__fade" }, ii = ["cx", "cy"], ai = ["cx", "cy"], oi = 400, si = /* @__PURE__ */ L({
605
650
  __name: "CaLineChart",
606
651
  props: {
607
652
  categories: {},
@@ -636,14 +681,14 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
636
681
  }
637
682
  },
638
683
  setup(e) {
639
- let t = e, n = J(), { el: r, width: i } = Or(() => t.width), { hidden: a, toggle: o } = kr(), s = A(() => t.categories.length), c = A(() => t.series.map((e, t) => ({
684
+ let t = e, n = J(), { el: r, width: i } = jr(() => t.width), { hidden: a, toggle: o } = Mr(), s = A(() => t.categories.length), c = A(() => t.series.map((e, t) => ({
640
685
  index: t,
641
686
  name: e.name,
642
687
  data: e.data.slice(0, s.value),
643
- color: Ar(t, e.color)
644
- }))), l = A(() => c.value.filter((e) => !a.value.has(e.index))), u = A(() => s.value > 0 && c.value.some((e) => mr(e.data))), d = (e) => (t.valueFormatter ?? $)(e), f = A(() => n("campus.chart.compact") === "latin" ? wr : Cr), p = (e) => (t.yFormatter ?? ((e) => Tr(e, f.value)))(e), m = A(() => {
645
- let e = mr(l.value.flatMap((e) => e.data)) ?? [0, 1];
646
- return rr(t.yMin ?? e[0], t.yMax ?? e[1], 5, t.area || t.zero);
688
+ color: Nr(t, e.color)
689
+ }))), l = A(() => c.value.filter((e) => !a.value.has(e.index))), u = A(() => s.value > 0 && c.value.some((e) => _r(e.data))), d = (e) => (t.valueFormatter ?? $)(e), f = A(() => n("campus.chart.compact") === "latin" ? Dr : Er), p = (e) => (t.yFormatter ?? ((e) => Or(e, f.value)))(e), m = A(() => {
690
+ let e = _r(l.value.flatMap((e) => e.data)) ?? [0, 1];
691
+ return or(t.yMin ?? e[0], t.yMax ?? e[1], 5, t.area || t.zero);
647
692
  }), h = A(() => m.value.ticks.map((e) => ({
648
693
  tick: e,
649
694
  text: p(e)
@@ -651,12 +696,12 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
651
696
  top: 12,
652
697
  right: 16,
653
698
  bottom: 28
654
- }, v = A(() => Math.max(10, i.value - g.value - _.right)), y = A(() => Math.max(10, t.height - _.top - _.bottom)), b = A(() => ir(m.value.min, m.value.max, _.top + y.value, _.top)), x = A(() => {
655
- let e = ar(s.value, g.value, g.value + v.value, 0);
699
+ }, v = A(() => Math.max(10, i.value - g.value - _.right)), y = A(() => Math.max(10, t.height - _.top - _.bottom)), b = A(() => sr(m.value.min, m.value.max, _.top + y.value, _.top)), x = A(() => {
700
+ let e = cr(s.value, g.value, g.value + v.value, 0);
656
701
  return Array.from({ length: s.value }, (t, n) => e.center(n));
657
702
  }), S = A(() => b.value(Math.max(m.value.min, Math.min(0, m.value.max)))), C = A(() => {
658
703
  let e = Math.max(1, ...t.categories.map((e) => e.length));
659
- return or(s.value, v.value, Math.max(40, e * 7 + 16)).map((e) => {
704
+ return lr(s.value, v.value, Math.max(40, e * 7 + 16)).map((e) => {
660
705
  let n = x.value[e], r = n - g.value < 20 ? "start" : i.value - n < 20 ? "end" : "middle";
661
706
  return {
662
707
  i: e,
@@ -672,15 +717,15 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
672
717
  } : null), r = e.data.reduce((e, t, n) => Y(t) ? n : e, -1);
673
718
  return {
674
719
  ...e,
675
- line: dr(n, t.smooth),
676
- area: t.area ? fr(n, S.value, t.smooth) : "",
720
+ line: mr(n, t.smooth),
721
+ area: t.area ? hr(n, S.value, t.smooth) : "",
677
722
  end: r >= 0 ? n[r] : null,
678
723
  points: n
679
724
  };
680
725
  })), w = V(-1);
681
726
  function T(e) {
682
727
  let t = e.currentTarget.getBoundingClientRect();
683
- w.value = sr(x.value, e.clientX - t.left);
728
+ w.value = ur(x.value, e.clientX - t.left);
684
729
  }
685
730
  function te(e) {
686
731
  let t = s.value - 1, n = w.value;
@@ -717,7 +762,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
717
762
  series: c.value.length
718
763
  })];
719
764
  for (let r of c.value.slice(0, 6)) {
720
- let i = Er(r.data);
765
+ let i = kr(r.data);
721
766
  i && e.push(n("campus.chart.summarySeries", {
722
767
  name: r.name,
723
768
  min: d(i.min),
@@ -727,7 +772,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
727
772
  }));
728
773
  }
729
774
  return e.join(" ");
730
- }), ie = A(() => t.categories.slice(0, ri).map((e, t) => [e, ...c.value.map((e) => Y(e.data[t]) ? d(e.data[t]) : "")])), ae = A(() => [n("campus.chart.category"), ...c.value.map((e) => e.name)]);
775
+ }), ie = A(() => t.categories.slice(0, oi).map((e, t) => [e, ...c.value.map((e) => Y(e.data[t]) ? d(e.data[t]) : "")])), ae = A(() => [n("campus.chart.category"), ...c.value.map((e) => e.name)]);
731
776
  return (t, n) => (B(), N("div", {
732
777
  ref_key: "el",
733
778
  ref: r,
@@ -737,7 +782,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
737
782
  }]),
738
783
  "aria-busy": e.loading || void 0
739
784
  }, [
740
- re.value && u.value ? (B(), j(Mr, {
785
+ re.value && u.value ? (B(), j(Fr, {
741
786
  key: 0,
742
787
  items: D.value,
743
788
  shape: "line",
@@ -748,7 +793,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
748
793
  class: "ca-chart__plot",
749
794
  style: z({ height: `${e.height}px` })
750
795
  }, [
751
- P("div", Wr, [u.value ? (B(), N("svg", {
796
+ P("div", qr, [u.value ? (B(), N("svg", {
752
797
  key: 0,
753
798
  class: "ca-chart__svg",
754
799
  role: "img",
@@ -772,13 +817,13 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
772
817
  x2: g.value + v.value,
773
818
  y1: b.value(e.tick),
774
819
  y2: b.value(e.tick)
775
- }, null, 10, Kr), P("text", {
820
+ }, null, 10, Yr), P("text", {
776
821
  class: "ca-chart__tick",
777
822
  x: g.value - 8,
778
823
  y: b.value(e.tick),
779
824
  dy: "0.32em",
780
825
  "text-anchor": "end"
781
- }, W(e.text), 9, qr)], 64))), 128)),
826
+ }, W(e.text), 9, Xr)], 64))), 128)),
782
827
  M(" 有负值时,0 线单独加深,表示正负分界 "),
783
828
  m.value.min < 0 ? (B(), N("line", {
784
829
  key: 0,
@@ -787,7 +832,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
787
832
  x2: g.value + v.value,
788
833
  y1: b.value(0),
789
834
  y2: b.value(0)
790
- }, null, 8, Jr)) : M("v-if", !0)
835
+ }, null, 8, Zr)) : M("v-if", !0)
791
836
  ]),
792
837
  P("g", null, [(B(!0), N(k, null, H(C.value, (e) => (B(), N("text", {
793
838
  key: e.i,
@@ -795,7 +840,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
795
840
  x: e.x,
796
841
  y: _.top + y.value + 18,
797
842
  "text-anchor": e.anchor
798
- }, W(e.text), 9, Yr))), 128))]),
843
+ }, W(e.text), 9, Qr))), 128))]),
799
844
  M(" 悬停十字线:贴着最近的数据位置,读者只需要瞄准某个类目 "),
800
845
  E.value ? (B(), N("line", {
801
846
  key: 0,
@@ -804,35 +849,35 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
804
849
  x2: E.value.x,
805
850
  y1: _.top,
806
851
  y2: _.top + y.value
807
- }, null, 8, Xr)) : M("v-if", !0),
852
+ }, null, 8, $r)) : M("v-if", !0),
808
853
  M(" 数据 "),
809
- P("g", Zr, [(B(!0), N(k, null, H(ee.value, (e) => (B(), N(k, { key: e.index }, [e.area ? (B(), N("path", {
854
+ P("g", ei, [(B(!0), N(k, null, H(ee.value, (e) => (B(), N(k, { key: e.index }, [e.area ? (B(), N("path", {
810
855
  key: 0,
811
856
  class: "ca-chart__area",
812
857
  d: e.area,
813
858
  style: z({ fill: e.color })
814
- }, null, 12, Qr)) : M("v-if", !0), P("path", {
859
+ }, null, 12, ti)) : M("v-if", !0), P("path", {
815
860
  class: "ca-chart__line",
816
861
  d: e.line,
817
862
  style: z({ stroke: e.color })
818
- }, null, 12, $r)], 64))), 128))]),
819
- P("g", ei, [M(" 没有悬停时在每条线末端放一个点,帮助读出“最新值” "), E.value ? (B(!0), N(k, { key: 1 }, H(ee.value, (e) => (B(), N(k, { key: e.index }, [e.points[w.value] ? (B(), N("circle", {
863
+ }, null, 12, ni)], 64))), 128))]),
864
+ P("g", ri, [M(" 没有悬停时在每条线末端放一个点,帮助读出“最新值” "), E.value ? (B(!0), N(k, { key: 1 }, H(ee.value, (e) => (B(), N(k, { key: e.index }, [e.points[w.value] ? (B(), N("circle", {
820
865
  key: 0,
821
866
  class: "ca-chart__dot",
822
867
  cx: e.points[w.value].x,
823
868
  cy: e.points[w.value].y,
824
869
  r: "4.5",
825
870
  style: z({ fill: e.color })
826
- }, null, 12, ni)) : M("v-if", !0)], 64))), 128)) : (B(!0), N(k, { key: 0 }, H(ee.value, (e) => Vt((B(), N("circle", {
871
+ }, null, 12, ai)) : M("v-if", !0)], 64))), 128)) : (B(!0), N(k, { key: 0 }, H(ee.value, (e) => Vt((B(), N("circle", {
827
872
  key: e.index,
828
873
  class: "ca-chart__dot",
829
874
  cx: e.end?.x,
830
875
  cy: e.end?.y,
831
876
  r: "4",
832
877
  style: z({ fill: e.color })
833
- }, null, 12, ti)), [[zt, e.end]])), 128))])
834
- ], 40, Gr)) : M("v-if", !0)]),
835
- E.value ? (B(), j(Hr, {
878
+ }, null, 12, ii)), [[zt, e.end]])), 128))])
879
+ ], 40, Jr)) : M("v-if", !0)]),
880
+ E.value ? (B(), j(Gr, {
836
881
  key: 0,
837
882
  x: E.value.x,
838
883
  y: _.top,
@@ -846,12 +891,12 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
846
891
  "title",
847
892
  "rows"
848
893
  ])) : M("v-if", !0),
849
- I(Pr, {
894
+ I(Lr, {
850
895
  loading: e.loading,
851
896
  empty: !u.value && !e.loading
852
897
  }, null, 8, ["loading", "empty"])
853
898
  ], 4),
854
- u.value ? (B(), j(Rr, {
899
+ u.value ? (B(), j(Vr, {
855
900
  key: 1,
856
901
  caption: e.title,
857
902
  head: ae.value,
@@ -861,33 +906,33 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
861
906
  "head",
862
907
  "rows"
863
908
  ])) : M("v-if", !0)
864
- ], 10, Ur));
909
+ ], 10, Kr));
865
910
  }
866
- }), ai = ["aria-busy"], oi = { class: "ca-chart__canvas" }, si = [
911
+ }), ci = ["aria-busy"], li = { class: "ca-chart__canvas" }, ui = [
867
912
  "aria-label",
868
913
  "width",
869
914
  "height",
870
915
  "viewBox"
871
- ], ci = { key: 0 }, li = [
916
+ ], di = { key: 0 }, fi = [
872
917
  "x1",
873
918
  "x2",
874
919
  "y1",
875
920
  "y2"
876
- ], ui = ["x", "y"], di = { key: 1 }, fi = [
921
+ ], pi = ["x", "y"], mi = { key: 1 }, hi = [
877
922
  "x1",
878
923
  "x2",
879
924
  "y1",
880
925
  "y2"
881
- ], pi = ["x", "y"], mi = ["x", "y"], hi = ["x", "y"], gi = [
926
+ ], gi = ["x", "y"], _i = ["x", "y"], vi = ["x", "y"], yi = [
882
927
  "x",
883
928
  "y",
884
929
  "width",
885
930
  "height"
886
- ], _i = ["d"], vi = { class: "ca-chart__fade" }, yi = [
931
+ ], bi = ["d"], xi = { class: "ca-chart__fade" }, Si = [
887
932
  "x",
888
933
  "y",
889
934
  "text-anchor"
890
- ], bi = 2, xi = 4, Si = 400, Ci = /* @__PURE__ */ L({
935
+ ], Ci = 2, wi = 4, Ti = 400, Ei = /* @__PURE__ */ L({
891
936
  __name: "CaBarChart",
892
937
  props: {
893
938
  categories: {},
@@ -921,17 +966,17 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
921
966
  }
922
967
  },
923
968
  setup(e) {
924
- let t = e, n = J(), { el: r, width: i } = Or(() => t.width), { hidden: a, toggle: o } = kr(), s = A(() => t.categories.length), c = A(() => t.series.map((e, t) => ({
969
+ let t = e, n = J(), { el: r, width: i } = jr(() => t.width), { hidden: a, toggle: o } = Mr(), s = A(() => t.categories.length), c = A(() => t.series.map((e, t) => ({
925
970
  index: t,
926
971
  name: e.name,
927
972
  data: e.data.slice(0, s.value),
928
- color: Ar(t, e.color)
929
- }))), l = A(() => c.value.filter((e) => !a.value.has(e.index))), u = A(() => s.value > 0 && c.value.some((e) => mr(e.data))), d = (e) => (t.valueFormatter ?? $)(e), f = A(() => n("campus.chart.compact") === "latin" ? wr : Cr), p = (e) => (t.yFormatter ?? ((e) => Tr(e, f.value)))(e), m = A(() => pr(l.value.map((e) => e.data))), h = A(() => {
973
+ color: Nr(t, e.color)
974
+ }))), l = A(() => c.value.filter((e) => !a.value.has(e.index))), u = A(() => s.value > 0 && c.value.some((e) => _r(e.data))), d = (e) => (t.valueFormatter ?? $)(e), f = A(() => n("campus.chart.compact") === "latin" ? Dr : Er), p = (e) => (t.yFormatter ?? ((e) => Or(e, f.value)))(e), m = A(() => gr(l.value.map((e) => e.data))), h = A(() => {
930
975
  let e = [];
931
976
  if (t.stacked) for (let t of m.value) for (let n of t) n && e.push(n.from, n.to);
932
977
  else for (let t of l.value) for (let n of t.data) Y(n) && e.push(n);
933
- let n = mr(e) ?? [0, 1];
934
- return rr(n[0], n[1], 5, !0);
978
+ let n = _r(e) ?? [0, 1];
979
+ return or(n[0], n[1], 5, !0);
935
980
  }), g = A(() => h.value.ticks.map((e) => ({
936
981
  tick: e,
937
982
  text: p(e)
@@ -950,7 +995,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
950
995
  bottom: 28,
951
996
  left: n
952
997
  };
953
- }), v = A(() => Math.max(10, i.value - _.value.left - _.value.right)), y = A(() => Math.max(10, t.height - _.value.top - _.value.bottom)), b = A(() => t.horizontal ? ir(h.value.min, h.value.max, _.value.left, _.value.left + v.value) : ir(h.value.min, h.value.max, _.value.top + y.value, _.value.top)), x = A(() => t.horizontal ? ar(s.value, _.value.top, _.value.top + y.value, .3) : ar(s.value, _.value.left, _.value.left + v.value, .3));
998
+ }), v = A(() => Math.max(10, i.value - _.value.left - _.value.right)), y = A(() => Math.max(10, t.height - _.value.top - _.value.bottom)), b = A(() => t.horizontal ? sr(h.value.min, h.value.max, _.value.left, _.value.left + v.value) : sr(h.value.min, h.value.max, _.value.top + y.value, _.value.top)), x = A(() => t.horizontal ? cr(s.value, _.value.top, _.value.top + y.value, .3) : cr(s.value, _.value.left, _.value.left + v.value, .3));
954
999
  A(() => b.value(0));
955
1000
  function S(e) {
956
1001
  if (!t.horizontal) return e;
@@ -964,13 +1009,13 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
964
1009
  pos: x.value.center(t)
965
1010
  }));
966
1011
  let e = Math.max(1, ...t.categories.map((e) => e.length));
967
- return or(s.value, v.value, Math.max(40, e * 7 + 16)).map((e) => ({
1012
+ return lr(s.value, v.value, Math.max(40, e * 7 + 16)).map((e) => ({
968
1013
  i: e,
969
1014
  text: t.categories[e],
970
1015
  pos: x.value.center(e)
971
1016
  }));
972
1017
  }), ee = (e) => e.length * 6.5, w = A(() => {
973
- let e = [], n = [], r = l.value.length, i = t.barSize, a = t.stacked ? x.value.bandwidth : (x.value.bandwidth - bi * (r - 1)) / r, o = Math.max(1, Math.min(i, a)), c = t.stacked ? o : o * r + bi * (r - 1), u = Array.from({ length: s.value }, (e, t) => {
1018
+ let e = [], n = [], r = l.value.length, i = t.barSize, a = t.stacked ? x.value.bandwidth : (x.value.bandwidth - Ci * (r - 1)) / r, o = Math.max(1, Math.min(i, a)), c = t.stacked ? o : o * r + Ci * (r - 1), u = Array.from({ length: s.value }, (e, t) => {
974
1019
  let n = 0, r = 0;
975
1020
  for (let e of m.value) {
976
1021
  let i = e[t];
@@ -985,19 +1030,19 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
985
1030
  for (let l = 0; l < s.value; l++) {
986
1031
  let s = r.data[l];
987
1032
  if (!Y(s)) continue;
988
- let f = x.value.center(l) - c / 2 + (t.stacked ? 0 : i * (o + bi)), p = 0, h = s;
1033
+ let f = x.value.center(l) - c / 2 + (t.stacked ? 0 : i * (o + Ci)), p = 0, h = s;
989
1034
  if (t.stacked) {
990
1035
  let e = m.value[i][l];
991
1036
  if (!e) continue;
992
1037
  p = e.from, h = e.to;
993
1038
  }
994
- let g = s >= 0, _ = t.stacked && p !== 0 ? bi : 0, v = b.value(p), y = b.value(h), S = !t.stacked || (g ? h === u[l].top : h === u[l].bottom), C = S ? xi : 0, w, T;
1039
+ let g = s >= 0, _ = t.stacked && p !== 0 ? Ci : 0, v = b.value(p), y = b.value(h), S = !t.stacked || (g ? h === u[l].top : h === u[l].bottom), C = S ? wi : 0, w, T;
995
1040
  if (t.horizontal) {
996
1041
  let e = Math.min(v, y) + (g ? _ : 0), t = Math.max(v, y) - (g ? 0 : _), n = Math.max(t - e, s === 0 ? 0 : 1);
997
- w = hr(g ? e : t - n, f, n, o, C, g ? "right" : "left"), T = g ? "0% 50%" : "100% 50%";
1042
+ w = vr(g ? e : t - n, f, n, o, C, g ? "right" : "left"), T = g ? "0% 50%" : "100% 50%";
998
1043
  } else {
999
1044
  let e = Math.min(v, y) + (g ? 0 : _), t = Math.max(v, y) - (g ? _ : 0), n = Math.max(t - e, s === 0 ? 0 : 1);
1000
- w = hr(f, g ? t - n : e, o, n, C, g ? "top" : "bottom"), T = g ? "50% 100%" : "50% 0%";
1045
+ w = vr(f, g ? t - n : e, o, n, C, g ? "top" : "bottom"), T = g ? "50% 100%" : "50% 0%";
1001
1046
  }
1002
1047
  if (e.push({
1003
1048
  key: `${r.index}-${l}`,
@@ -1091,7 +1136,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1091
1136
  series: c.value.length
1092
1137
  })];
1093
1138
  for (let r of c.value.slice(0, 6)) {
1094
- let i = Er(r.data);
1139
+ let i = kr(r.data);
1095
1140
  i && e.push(n("campus.chart.summarySeries", {
1096
1141
  name: r.name,
1097
1142
  min: d(i.min),
@@ -1101,7 +1146,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1101
1146
  }));
1102
1147
  }
1103
1148
  return e.join(" ");
1104
- }), se = A(() => t.categories.slice(0, Si).map((e, t) => [e, ...c.value.map((e) => Y(e.data[t]) ? d(e.data[t]) : "")])), ce = A(() => [n("campus.chart.category"), ...c.value.map((e) => e.name)]);
1149
+ }), se = A(() => t.categories.slice(0, Ti).map((e, t) => [e, ...c.value.map((e) => Y(e.data[t]) ? d(e.data[t]) : "")])), ce = A(() => [n("campus.chart.category"), ...c.value.map((e) => e.name)]);
1105
1150
  return (t, n) => (B(), N("div", {
1106
1151
  ref_key: "el",
1107
1152
  ref: r,
@@ -1111,7 +1156,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1111
1156
  }]),
1112
1157
  "aria-busy": e.loading || void 0
1113
1158
  }, [
1114
- ie.value && u.value ? (B(), j(Mr, {
1159
+ ie.value && u.value ? (B(), j(Fr, {
1115
1160
  key: 0,
1116
1161
  items: ae.value,
1117
1162
  interactive: "",
@@ -1121,7 +1166,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1121
1166
  class: "ca-chart__plot",
1122
1167
  style: z({ height: `${e.height}px` })
1123
1168
  }, [
1124
- P("div", oi, [u.value ? (B(), N("svg", {
1169
+ P("div", li, [u.value ? (B(), N("svg", {
1125
1170
  key: 0,
1126
1171
  class: "ca-chart__svg",
1127
1172
  role: "img",
@@ -1138,30 +1183,30 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1138
1183
  onBlur: n[2] ||= (e) => T.value = -1
1139
1184
  }, [
1140
1185
  M(" 数值轴的网格与刻度 "),
1141
- e.horizontal ? (B(), N("g", di, [(B(!0), N(k, null, H(g.value, (e) => (B(), N(k, { key: e.tick }, [P("line", {
1186
+ e.horizontal ? (B(), N("g", mi, [(B(!0), N(k, null, H(g.value, (e) => (B(), N(k, { key: e.tick }, [P("line", {
1142
1187
  class: R(e.tick === 0 ? "ca-chart__baseline" : "ca-chart__grid"),
1143
1188
  x1: b.value(e.tick),
1144
1189
  x2: b.value(e.tick),
1145
1190
  y1: _.value.top,
1146
1191
  y2: _.value.top + y.value
1147
- }, null, 10, fi), P("text", {
1192
+ }, null, 10, hi), P("text", {
1148
1193
  class: "ca-chart__tick",
1149
1194
  x: b.value(e.tick),
1150
1195
  y: _.value.top + y.value + 18,
1151
1196
  "text-anchor": "middle"
1152
- }, W(e.text), 9, pi)], 64))), 128))])) : (B(), N("g", ci, [(B(!0), N(k, null, H(g.value, (e) => (B(), N(k, { key: e.tick }, [P("line", {
1197
+ }, W(e.text), 9, gi)], 64))), 128))])) : (B(), N("g", di, [(B(!0), N(k, null, H(g.value, (e) => (B(), N(k, { key: e.tick }, [P("line", {
1153
1198
  class: R(e.tick === 0 ? "ca-chart__baseline" : "ca-chart__grid"),
1154
1199
  x1: _.value.left,
1155
1200
  x2: _.value.left + v.value,
1156
1201
  y1: b.value(e.tick),
1157
1202
  y2: b.value(e.tick)
1158
- }, null, 10, li), P("text", {
1203
+ }, null, 10, fi), P("text", {
1159
1204
  class: "ca-chart__tick",
1160
1205
  x: _.value.left - 8,
1161
1206
  y: b.value(e.tick),
1162
1207
  dy: "0.32em",
1163
1208
  "text-anchor": "end"
1164
- }, W(e.text), 9, ui)], 64))), 128))])),
1209
+ }, W(e.text), 9, pi)], 64))), 128))])),
1165
1210
  M(" 类目轴标签 "),
1166
1211
  P("g", null, [e.horizontal ? (B(!0), N(k, { key: 1 }, H(C.value, (e) => (B(), N("text", {
1167
1212
  key: e.i,
@@ -1170,13 +1215,13 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1170
1215
  y: e.pos,
1171
1216
  dy: "0.32em",
1172
1217
  "text-anchor": "end"
1173
- }, W(e.text), 9, hi))), 128)) : (B(!0), N(k, { key: 0 }, H(C.value, (e) => (B(), N("text", {
1218
+ }, W(e.text), 9, vi))), 128)) : (B(!0), N(k, { key: 0 }, H(C.value, (e) => (B(), N("text", {
1174
1219
  key: e.i,
1175
1220
  class: "ca-chart__tick",
1176
1221
  x: e.pos,
1177
1222
  y: _.value.top + y.value + 18,
1178
1223
  "text-anchor": "middle"
1179
- }, W(e.text), 9, mi))), 128))]),
1224
+ }, W(e.text), 9, _i))), 128))]),
1180
1225
  O.value ? (B(), N("rect", {
1181
1226
  key: 2,
1182
1227
  class: "ca-chart__band",
@@ -1184,7 +1229,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1184
1229
  y: O.value.y,
1185
1230
  width: O.value.w,
1186
1231
  height: O.value.h
1187
- }, null, 8, gi)) : M("v-if", !0),
1232
+ }, null, 8, yi)) : M("v-if", !0),
1188
1233
  P("g", null, [(B(!0), N(k, null, H(w.value.bars, (t) => (B(), N("path", {
1189
1234
  key: t.key,
1190
1235
  class: R(["ca-chart__bar", e.horizontal ? "ca-chart__grow-x" : "ca-chart__grow-y"]),
@@ -1193,16 +1238,16 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1193
1238
  fill: t.color,
1194
1239
  transformOrigin: t.origin
1195
1240
  })
1196
- }, null, 14, _i))), 128))]),
1197
- P("g", vi, [(B(!0), N(k, null, H(w.value.labels, (e) => (B(), N("text", {
1241
+ }, null, 14, bi))), 128))]),
1242
+ P("g", xi, [(B(!0), N(k, null, H(w.value.labels, (e) => (B(), N("text", {
1198
1243
  key: e.key,
1199
1244
  class: "ca-chart__value",
1200
1245
  x: e.x,
1201
1246
  y: e.y,
1202
1247
  "text-anchor": e.anchor
1203
- }, W(e.text), 9, yi))), 128))])
1204
- ], 40, si)) : M("v-if", !0)]),
1205
- D.value ? (B(), j(Hr, {
1248
+ }, W(e.text), 9, Si))), 128))])
1249
+ ], 40, ui)) : M("v-if", !0)]),
1250
+ D.value ? (B(), j(Gr, {
1206
1251
  key: 0,
1207
1252
  x: D.value.x,
1208
1253
  y: D.value.y,
@@ -1216,12 +1261,12 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1216
1261
  "title",
1217
1262
  "rows"
1218
1263
  ])) : M("v-if", !0),
1219
- I(Pr, {
1264
+ I(Lr, {
1220
1265
  loading: e.loading,
1221
1266
  empty: !u.value && !e.loading
1222
1267
  }, null, 8, ["loading", "empty"])
1223
1268
  ], 4),
1224
- u.value ? (B(), j(Rr, {
1269
+ u.value ? (B(), j(Vr, {
1225
1270
  key: 1,
1226
1271
  caption: e.title,
1227
1272
  head: ce.value,
@@ -1231,20 +1276,20 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1231
1276
  "head",
1232
1277
  "rows"
1233
1278
  ])) : M("v-if", !0)
1234
- ], 10, ai));
1279
+ ], 10, ci));
1235
1280
  }
1236
- }), wi = ["aria-busy"], Ti = { class: "ca-pie-chart__body" }, Ei = { class: "ca-chart__canvas" }, Di = [
1281
+ }), Di = ["aria-busy"], Oi = { class: "ca-pie-chart__body" }, ki = { class: "ca-chart__canvas" }, Ai = [
1237
1282
  "aria-label",
1238
1283
  "width",
1239
1284
  "height",
1240
1285
  "viewBox"
1241
- ], Oi = { class: "ca-chart__fade" }, ki = ["d", "onPointerenter"], Ai = { class: "ca-pie-chart__label" }, ji = {
1286
+ ], ji = { class: "ca-chart__fade" }, Mi = ["d", "onPointerenter"], Ni = { class: "ca-pie-chart__label" }, Pi = {
1242
1287
  key: 0,
1243
1288
  class: "ca-pie-chart__sub"
1244
- }, Mi = {
1289
+ }, Fi = {
1245
1290
  key: 0,
1246
1291
  class: "ca-pie-chart__legend"
1247
- }, Ni = ["onPointerenter"], Pi = { class: "ca-pie-chart__name" }, Fi = { class: "ca-pie-chart__num" }, Ii = { class: "ca-pie-chart__pct" }, Li = 6, Ri = /*@__PURE__*/ L({
1292
+ }, Ii = ["onPointerenter"], Li = { class: "ca-pie-chart__name" }, Ri = { class: "ca-pie-chart__num" }, zi = { class: "ca-pie-chart__pct" }, Bi = 6, Vi = /*#__PURE__*/ Vn(/* @__PURE__ */ L({
1248
1293
  __name: "CaPieChart",
1249
1294
  props: {
1250
1295
  items: {},
@@ -1268,25 +1313,25 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1268
1313
  }
1269
1314
  },
1270
1315
  setup(e) {
1271
- let t = e, n = J(), { el: r, width: i } = Or(), a = (e) => (t.valueFormatter ?? $)(e), o = A(() => Z(Math.min(t.size, i.value), 96, t.size)), s = A(() => o.value / 2 - Li), c = A(() => t.donut ? s.value * .64 : 0), l = A(() => t.items.map((e, t) => ({
1316
+ let t = e, n = J(), { el: r, width: i } = jr(), a = (e) => (t.valueFormatter ?? $)(e), o = A(() => Z(Math.min(t.size, i.value), 96, t.size)), s = A(() => o.value / 2 - Bi), c = A(() => t.donut ? s.value * .64 : 0), l = A(() => t.items.map((e, t) => ({
1272
1317
  index: t,
1273
1318
  name: e.name,
1274
1319
  value: Y(e.value) ? e.value : 0,
1275
- color: Ar(t, e.color)
1276
- }))), u = A(() => _r(l.value.map((e) => e.value))), d = A(() => l.value.reduce((e, t) => e + (t.value > 0 ? t.value : 0), 0)), f = A(() => u.value.length > 0), p = V(-1), m = A(() => u.value.filter((e) => e.end > e.start).map((e) => {
1320
+ color: Nr(t, e.color)
1321
+ }))), u = A(() => br(l.value.map((e) => e.value))), d = A(() => l.value.reduce((e, t) => e + (t.value > 0 ? t.value : 0), 0)), f = A(() => u.value.length > 0), p = V(-1), m = A(() => u.value.filter((e) => e.end > e.start).map((e) => {
1277
1322
  let t = l.value[e.index], n = p.value === e.index ? 4 : 0;
1278
1323
  return {
1279
1324
  ...e,
1280
1325
  name: t.name,
1281
1326
  color: t.color,
1282
- d: vr(o.value / 2, o.value / 2, s.value + n, c.value, e.start, e.end)
1327
+ d: xr(o.value / 2, o.value / 2, s.value + n, c.value, e.start, e.end)
1283
1328
  };
1284
1329
  })), h = (e) => u.value[e]?.ratio ?? 0, g = A(() => {
1285
1330
  let e = p.value;
1286
1331
  return e >= 0 && l.value[e] ? {
1287
1332
  label: l.value[e].name,
1288
1333
  value: a(l.value[e].value),
1289
- sub: Dr(h(e))
1334
+ sub: Ar(h(e))
1290
1335
  } : {
1291
1336
  label: t.centerLabel ?? n("campus.chart.total"),
1292
1337
  value: t.centerValue ?? a(d.value),
@@ -1311,7 +1356,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1311
1356
  y: _.value.y,
1312
1357
  title: e.name,
1313
1358
  rows: [{
1314
- name: Dr(h(p.value)),
1359
+ name: Ar(h(p.value)),
1315
1360
  color: e.color,
1316
1361
  value: a(e.value)
1317
1362
  }]
@@ -1341,7 +1386,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1341
1386
  for (let t of l.value.slice(0, 8)) e.push(n("campus.chart.summaryPieItem", {
1342
1387
  name: t.name,
1343
1388
  value: a(t.value),
1344
- percent: Dr(h(t.index))
1389
+ percent: Ar(h(t.index))
1345
1390
  }));
1346
1391
  return e.join(" ");
1347
1392
  }), ee = A(() => [
@@ -1351,7 +1396,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1351
1396
  ]), w = A(() => l.value.map((e) => [
1352
1397
  e.name,
1353
1398
  a(e.value),
1354
- Dr(h(e.index))
1399
+ Ar(h(e.index))
1355
1400
  ]));
1356
1401
  return (t, n) => (B(), N("div", {
1357
1402
  ref_key: "el",
@@ -1361,7 +1406,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1361
1406
  "is-animated": e.animated
1362
1407
  }]),
1363
1408
  "aria-busy": e.loading || void 0
1364
- }, [P("div", Ti, [
1409
+ }, [P("div", Oi, [
1365
1410
  P("div", {
1366
1411
  class: "ca-chart__plot",
1367
1412
  style: z({
@@ -1369,7 +1414,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1369
1414
  height: `${o.value}px`
1370
1415
  })
1371
1416
  }, [
1372
- P("div", Ei, [f.value ? (B(), N("svg", {
1417
+ P("div", ki, [f.value ? (B(), N("svg", {
1373
1418
  key: 0,
1374
1419
  class: "ca-chart__svg",
1375
1420
  role: "img",
@@ -1381,7 +1426,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1381
1426
  onKeydown: b,
1382
1427
  onFocus: x,
1383
1428
  onBlur: n[1] ||= (e) => p.value = -1
1384
- }, [P("g", Oi, [(B(!0), N(k, null, H(m.value, (e) => (B(), N("path", {
1429
+ }, [P("g", ji, [(B(!0), N(k, null, H(m.value, (e) => (B(), N("path", {
1385
1430
  key: e.index,
1386
1431
  class: R(["ca-chart__slice", { "is-dim": p.value >= 0 && p.value !== e.index }]),
1387
1432
  d: e.d,
@@ -1389,21 +1434,21 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1389
1434
  onPointerenter: (t) => p.value = e.index,
1390
1435
  onPointermove: v,
1391
1436
  onPointerleave: n[0] ||= (e) => p.value = -1
1392
- }, null, 46, ki))), 128))])], 40, Di)) : M("v-if", !0)]),
1437
+ }, null, 46, Mi))), 128))])], 40, Ai)) : M("v-if", !0)]),
1393
1438
  M(" 环形图中心文字:HTML 叠在 SVG 上,方便按内圈宽度换行与省略 "),
1394
1439
  e.donut && f.value ? (B(), N("div", {
1395
1440
  key: 0,
1396
1441
  class: "ca-pie-chart__center",
1397
1442
  style: z({ width: `${c.value * 1.7}px` })
1398
1443
  }, [
1399
- P("span", Ai, W(g.value.label), 1),
1444
+ P("span", Ni, W(g.value.label), 1),
1400
1445
  P("strong", {
1401
1446
  class: "ca-pie-chart__value",
1402
1447
  style: z({ fontSize: `${S.value}px` })
1403
1448
  }, W(g.value.value), 5),
1404
- g.value.sub ? (B(), N("span", ji, W(g.value.sub), 1)) : M("v-if", !0)
1449
+ g.value.sub ? (B(), N("span", Pi, W(g.value.sub), 1)) : M("v-if", !0)
1405
1450
  ], 4)) : M("v-if", !0),
1406
- y.value ? (B(), j(Hr, {
1451
+ y.value ? (B(), j(Gr, {
1407
1452
  key: 1,
1408
1453
  x: y.value.x,
1409
1454
  y: y.value.y,
@@ -1417,13 +1462,13 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1417
1462
  "title",
1418
1463
  "rows"
1419
1464
  ])) : M("v-if", !0),
1420
- I(Pr, {
1465
+ I(Lr, {
1421
1466
  loading: e.loading,
1422
1467
  empty: !f.value && !e.loading
1423
1468
  }, null, 8, ["loading", "empty"])
1424
1469
  ], 4),
1425
1470
  M(" 图例清单:名称 / 数值 / 占比,悬停与扇区联动 "),
1426
- e.legend && l.value.length ? (B(), N("ul", Mi, [(B(!0), N(k, null, H(l.value, (e) => (B(), N("li", {
1471
+ e.legend && l.value.length ? (B(), N("ul", Fi, [(B(!0), N(k, null, H(l.value, (e) => (B(), N("li", {
1427
1472
  key: e.index,
1428
1473
  class: R(["ca-pie-chart__row", { "is-active": p.value === e.index }]),
1429
1474
  onPointerenter: (t) => p.value = e.value > 0 ? e.index : -1,
@@ -1433,11 +1478,11 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1433
1478
  class: "ca-chart__key ca-chart__key--box",
1434
1479
  style: z({ "--key": e.color })
1435
1480
  }, null, 4),
1436
- P("span", Pi, W(e.name), 1),
1437
- P("span", Fi, W(a(e.value)), 1),
1438
- P("span", Ii, W(G(Dr)(h(e.index))), 1)
1439
- ], 42, Ni))), 128))])) : M("v-if", !0)
1440
- ]), f.value ? (B(), j(Rr, {
1481
+ P("span", Li, W(e.name), 1),
1482
+ P("span", Ri, W(a(e.value)), 1),
1483
+ P("span", zi, W(G(Ar)(h(e.index))), 1)
1484
+ ], 42, Ii))), 128))])) : M("v-if", !0)
1485
+ ]), f.value ? (B(), j(Vr, {
1441
1486
  key: 0,
1442
1487
  caption: e.title,
1443
1488
  head: ee.value,
@@ -1446,21 +1491,17 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1446
1491
  "caption",
1447
1492
  "head",
1448
1493
  "rows"
1449
- ])) : M("v-if", !0)], 10, wi));
1494
+ ])) : M("v-if", !0)], 10, Di));
1450
1495
  }
1451
- }), zi = (e, t) => {
1452
- let n = e.__vccOpts || e;
1453
- for (let [e, r] of t) n[e] = r;
1454
- return n;
1455
- }, Bi = /*#__PURE__*/ zi(Ri, [["__scopeId", "data-v-75e32682"]]), Vi = [
1496
+ }), [["__scopeId", "data-v-75e32682"]]), Hi = [
1456
1497
  "aria-label",
1457
1498
  "width",
1458
1499
  "height",
1459
1500
  "viewBox"
1460
- ], Hi = {
1501
+ ], Ui = {
1461
1502
  key: 0,
1462
1503
  class: "ca-chart__reveal"
1463
- }, Ui = ["d"], Wi = ["d"], Gi = ["cx", "cy"], Ki = { key: 1 }, qi = ["d"], Ji = 4, Yi = 5, Xi = 2, Zi = /* @__PURE__ */ L({
1504
+ }, Wi = ["d"], Gi = ["d"], Ki = ["cx", "cy"], qi = { key: 1 }, Ji = ["d"], Yi = 4, Xi = 5, Zi = 2, Qi = /* @__PURE__ */ L({
1464
1505
  __name: "CaSparkline",
1465
1506
  props: {
1466
1507
  data: {},
@@ -1484,32 +1525,32 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1484
1525
  }
1485
1526
  },
1486
1527
  setup(e) {
1487
- let t = e, n = J(), { el: r, width: i } = Or(() => t.width), a = (e) => (t.valueFormatter ?? $)(e), o = A(() => mr(t.data)), s = A(() => Math.max(1, i.value - 8)), c = A(() => {
1528
+ let t = e, n = J(), { el: r, width: i } = jr(() => t.width), a = (e) => (t.valueFormatter ?? $)(e), o = A(() => _r(t.data)), s = A(() => Math.max(1, i.value - 8)), c = A(() => {
1488
1529
  let e = t.data.length, n = o.value;
1489
1530
  if (!e || !n) return null;
1490
1531
  if (t.type === "bar") {
1491
- let r = Math.max(n[1], 0), i = Math.min(n[0], 0), a = ir(i, r === i ? i + 1 : r, t.height - 1, Yi), o = (s.value - Xi * (e - 1)) / e, c = Math.max(1, Math.min(o, 14)), l = c * e + Xi * (e - 1), u = Ji + (s.value - l) / 2;
1532
+ let r = Math.max(n[1], 0), i = Math.min(n[0], 0), a = sr(i, r === i ? i + 1 : r, t.height - 1, Xi), o = (s.value - Zi * (e - 1)) / e, c = Math.max(1, Math.min(o, 14)), l = c * e + Zi * (e - 1), u = Yi + (s.value - l) / 2;
1492
1533
  return {
1493
1534
  kind: "bar",
1494
1535
  bars: t.data.flatMap((e, t) => {
1495
1536
  if (!Y(e)) return [];
1496
- let n = a(0), r = a(e), i = hr(u + t * (c + Xi), Math.min(n, r), c, Math.max(Math.abs(n - r), e === 0 ? 0 : 1), 2, e >= 0 ? "top" : "bottom");
1537
+ let n = a(0), r = a(e), i = vr(u + t * (c + Zi), Math.min(n, r), c, Math.max(Math.abs(n - r), e === 0 ? 0 : 1), 2, e >= 0 ? "top" : "bottom");
1497
1538
  return i ? [i] : [];
1498
1539
  })
1499
1540
  };
1500
1541
  }
1501
- let r = ir(n[0], n[1], t.height - Yi, Yi), a = (t) => e === 1 ? i.value / 2 : Ji + t / (e - 1) * s.value, c = t.data.map((e, t) => Y(e) ? {
1542
+ let r = sr(n[0], n[1], t.height - Xi, Xi), a = (t) => e === 1 ? i.value / 2 : Yi + t / (e - 1) * s.value, c = t.data.map((e, t) => Y(e) ? {
1502
1543
  x: a(t),
1503
1544
  y: r(e)
1504
1545
  } : null), l = [...c].reverse().find((e) => e) ?? null;
1505
1546
  return {
1506
1547
  kind: "line",
1507
- line: dr(c, t.smooth),
1508
- area: t.area ? fr(c, t.height - 1, t.smooth) : "",
1548
+ line: mr(c, t.smooth),
1549
+ area: t.area ? hr(c, t.height - 1, t.smooth) : "",
1509
1550
  last: l
1510
1551
  };
1511
1552
  }), l = A(() => {
1512
- let e = Er(t.data);
1553
+ let e = kr(t.data);
1513
1554
  return e ? n("campus.chart.summarySpark", {
1514
1555
  title: t.title ?? "",
1515
1556
  count: e.count,
@@ -1531,18 +1572,18 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1531
1572
  width: G(i),
1532
1573
  height: e.height,
1533
1574
  viewBox: `0 0 ${G(i)} ${e.height}`
1534
- }, [c.value.kind === "line" ? (B(), N("g", Hi, [
1575
+ }, [c.value.kind === "line" ? (B(), N("g", Ui, [
1535
1576
  c.value.area ? (B(), N("path", {
1536
1577
  key: 0,
1537
1578
  class: "ca-chart__area",
1538
1579
  d: c.value.area,
1539
1580
  style: z({ fill: e.color })
1540
- }, null, 12, Ui)) : M("v-if", !0),
1581
+ }, null, 12, Wi)) : M("v-if", !0),
1541
1582
  P("path", {
1542
1583
  class: "ca-chart__line",
1543
1584
  d: c.value.line,
1544
1585
  style: z({ stroke: e.color })
1545
- }, null, 12, Wi),
1586
+ }, null, 12, Gi),
1546
1587
  c.value.last ? (B(), N("circle", {
1547
1588
  key: 1,
1548
1589
  class: "ca-chart__dot",
@@ -1550,27 +1591,27 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1550
1591
  cy: c.value.last.y,
1551
1592
  r: "3.5",
1552
1593
  style: z({ fill: e.color })
1553
- }, null, 12, Gi)) : M("v-if", !0)
1554
- ])) : (B(), N("g", Ki, [(B(!0), N(k, null, H(c.value.bars, (t, n) => (B(), N("path", {
1594
+ }, null, 12, Ki)) : M("v-if", !0)
1595
+ ])) : (B(), N("g", qi, [(B(!0), N(k, null, H(c.value.bars, (t, n) => (B(), N("path", {
1555
1596
  key: n,
1556
1597
  class: "ca-chart__grow-y",
1557
1598
  d: t,
1558
1599
  style: z({ fill: e.color })
1559
- }, null, 12, qi))), 128))]))], 8, Vi)) : M("v-if", !0)], 6));
1600
+ }, null, 12, Ji))), 128))]))], 8, Hi)) : M("v-if", !0)], 6));
1560
1601
  }
1561
- }), Qi = ["aria-busy"], $i = [
1602
+ }), $i = ["aria-busy"], ea = [
1562
1603
  "aria-label",
1563
1604
  "width",
1564
1605
  "height",
1565
1606
  "viewBox"
1566
- ], ea = ["d", "stroke-width"], ta = [
1607
+ ], ta = ["d", "stroke-width"], na = [
1567
1608
  "d",
1568
1609
  "stroke-width",
1569
1610
  "stroke-dasharray"
1570
- ], na = { class: "ca-gauge__value" }, ra = {
1611
+ ], ra = { class: "ca-gauge__value" }, ia = {
1571
1612
  key: 0,
1572
1613
  class: "ca-gauge__label"
1573
- }, ia = /*#__PURE__*/ zi(/* @__PURE__ */ L({
1614
+ }, aa = /*#__PURE__*/ Vn(/* @__PURE__ */ L({
1574
1615
  __name: "CaGauge",
1575
1616
  props: {
1576
1617
  value: {},
@@ -1589,7 +1630,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1589
1630
  }
1590
1631
  },
1591
1632
  setup(e) {
1592
- let t = e, n = J(), r = A(() => Sr(t.value, t.max)), i = A(() => xr(r.value, t.thresholds, t.color)), a = A(() => br(t.shape)), o = A(() => t.size / 2), s = A(() => (t.size - t.thickness) / 2 - 1), c = A(() => t.shape === "half" ? o.value + t.thickness / 2 + 2 : t.size), l = A(() => yr(o.value, o.value, s.value, a.value.start, a.value.start + a.value.sweep)), u = A(() => `${Number(r.value.toFixed(1))}%`), d = A(() => n("campus.chart.summaryGauge", {
1633
+ let t = e, n = J(), r = A(() => Tr(t.value, t.max)), i = A(() => wr(r.value, t.thresholds, t.color)), a = A(() => Cr(t.shape)), o = A(() => t.size / 2), s = A(() => (t.size - t.thickness) / 2 - 1), c = A(() => t.shape === "half" ? o.value + t.thickness / 2 + 2 : t.size), l = A(() => Sr(o.value, o.value, s.value, a.value.start, a.value.start + a.value.sweep)), u = A(() => `${Number(r.value.toFixed(1))}%`), d = A(() => n("campus.chart.summaryGauge", {
1593
1634
  title: t.title ?? t.label ?? "",
1594
1635
  value: $(typeof t.value == "number" ? t.value : 0),
1595
1636
  max: $(t.max),
@@ -1618,7 +1659,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1618
1659
  d: l.value,
1619
1660
  "stroke-width": e.thickness,
1620
1661
  "stroke-linecap": "round"
1621
- }, null, 8, ea),
1662
+ }, null, 8, ta),
1622
1663
  M(" pathLength=100:dasharray 的第一个数就是百分比;0% 时不画(圆头线帽会在起点留一个小点,误导成“有进度”) "),
1623
1664
  r.value > 0 ? (B(), N("path", {
1624
1665
  key: 0,
@@ -1628,16 +1669,16 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1628
1669
  "stroke-width": e.thickness,
1629
1670
  "stroke-dasharray": `${r.value} 100`,
1630
1671
  style: z({ stroke: i.value })
1631
- }, null, 12, ta)) : M("v-if", !0)
1632
- ], 8, $i)), P("div", { class: R(["ca-gauge__center", { "is-half": e.shape === "half" }]) }, [U(t.$slots, "center", {}, () => [P("strong", na, W(u.value), 1), e.label ? (B(), N("span", ra, W(e.label), 1)) : M("v-if", !0)], !0)], 2)], 14, Qi));
1672
+ }, null, 12, na)) : M("v-if", !0)
1673
+ ], 8, ea)), P("div", { class: R(["ca-gauge__center", { "is-half": e.shape === "half" }]) }, [U(t.$slots, "center", {}, () => [P("strong", ra, W(u.value), 1), e.label ? (B(), N("span", ia, W(e.label), 1)) : M("v-if", !0)], !0)], 2)], 14, $i));
1633
1674
  }
1634
- }), [["__scopeId", "data-v-83314498"]]), aa = {
1635
- CaLineChart: ii,
1636
- CaBarChart: Ci,
1637
- CaPieChart: Bi,
1638
- CaSparkline: Zi,
1639
- CaGauge: ia
1640
- }, oa = /* @__PURE__ */ L({
1675
+ }), [["__scopeId", "data-v-83314498"]]), oa = {
1676
+ CaLineChart: si,
1677
+ CaBarChart: Ei,
1678
+ CaPieChart: Vi,
1679
+ CaSparkline: Qi,
1680
+ CaGauge: aa
1681
+ }, sa = /* @__PURE__ */ L({
1641
1682
  __name: "CaConfigProvider",
1642
1683
  props: { locale: {} },
1643
1684
  setup(e) {
@@ -1647,13 +1688,13 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1647
1688
  _: 3
1648
1689
  }, 8, ["locale"]));
1649
1690
  }
1650
- }), sa = { CaConfigProvider: oa }, ca = { class: "ca-stat ca-card" }, la = { class: "ca-stat__head" }, ua = { class: "ca-stat__title" }, da = {
1691
+ }), ca = { CaConfigProvider: sa }, la = { class: "ca-stat ca-card" }, ua = { class: "ca-stat__head" }, da = { class: "ca-stat__title" }, fa = {
1651
1692
  key: 0,
1652
1693
  class: "ca-stat__tag"
1653
- }, fa = { class: "ca-stat__value" }, pa = {
1694
+ }, pa = { class: "ca-stat__value" }, ma = {
1654
1695
  key: 0,
1655
1696
  class: "ca-stat__hint"
1656
- }, ma = /*#__PURE__*/ zi(/* @__PURE__ */ L({
1697
+ }, ha = /*#__PURE__*/ Vn(/* @__PURE__ */ L({
1657
1698
  __name: "CaStatCard",
1658
1699
  props: {
1659
1700
  title: {},
@@ -1664,16 +1705,16 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1664
1705
  },
1665
1706
  setup(e) {
1666
1707
  let t = e, n = A(() => t.trend === void 0 ? "" : `${t.trend >= 0 ? "↑" : "↓"} ${Math.abs(t.trend)}%`);
1667
- return (t, r) => (B(), N("div", ca, [
1668
- P("div", la, [P("span", ua, W(e.title), 1), e.tag ? (B(), N("span", da, W(e.tag), 1)) : M("v-if", !0)]),
1669
- P("div", fa, [F(W(e.value) + " ", 1), n.value ? (B(), N("span", {
1708
+ return (t, r) => (B(), N("div", la, [
1709
+ P("div", ua, [P("span", da, W(e.title), 1), e.tag ? (B(), N("span", fa, W(e.tag), 1)) : M("v-if", !0)]),
1710
+ P("div", pa, [F(W(e.value) + " ", 1), n.value ? (B(), N("span", {
1670
1711
  key: 0,
1671
1712
  class: R(["ca-stat__trend", e.trend >= 0 ? "is-up" : "is-down"])
1672
1713
  }, W(n.value), 3)) : M("v-if", !0)]),
1673
- e.hint || t.$slots.default ? (B(), N("div", pa, [U(t.$slots, "default", {}, () => [F(W(e.hint), 1)], !0)])) : M("v-if", !0)
1714
+ e.hint || t.$slots.default ? (B(), N("div", ma, [U(t.$slots, "default", {}, () => [F(W(e.hint), 1)], !0)])) : M("v-if", !0)
1674
1715
  ]));
1675
1716
  }
1676
- }), [["__scopeId", "data-v-94d16941"]]), ha = /* @__PURE__ */ L({
1717
+ }), [["__scopeId", "data-v-94d16941"]]), ga = /* @__PURE__ */ L({
1677
1718
  __name: "CaStatusTag",
1678
1719
  props: {
1679
1720
  value: {},
@@ -1693,49 +1734,49 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1693
1734
  _: 1
1694
1735
  }, 8, ["type"]));
1695
1736
  }
1696
- }), ga = q(s), _a = q(c), va = q(u), ya = q(h), ba = q(_), xa = q(v), Sa = q(T), Ca = q(te), wa = q(oe), Ta = q(se), Ea = q(me), Da = q(be), Oa = q(xe), ka = q(Le), Aa = q(Be), ja = q(Ge), Ma = q(Ze), Na = q(Qe), Pa = q(_t), Fa = q(vt), Ia = q(bt), La = q(xt), Ra = q(Ct), za = q(Tt), Ba = q(Je), Va = q(rt), Ha = q(O), Ua = q(x), Wa = {
1697
- CaAvatar: ga,
1698
- CaAvatarGroup: _a,
1699
- CaBadge: va,
1700
- CaCalendar: ya,
1701
- CaCarousel: ba,
1702
- CaCarouselItem: xa,
1703
- CaCollapse: Sa,
1704
- CaCollapseItem: Ca,
1705
- CaDescriptions: wa,
1706
- CaDescriptionsItem: Ta,
1707
- CaEmpty: Ea,
1708
- CaImage: Da,
1709
- CaImageViewer: Oa,
1710
- CaPagination: ka,
1711
- CaProgress: Aa,
1712
- CaResult: ja,
1713
- CaSkeleton: Ma,
1714
- CaSkeletonItem: Na,
1715
- CaTimeline: Pa,
1716
- CaTimelineItem: Fa,
1717
- CaTour: Ia,
1718
- CaTourStep: La,
1719
- CaTree: Ra,
1720
- CaTreeV2: za,
1721
- CaSegmented: Ba,
1722
- CaStatistic: Va,
1723
- CaCountdown: Ha,
1724
- CaCheckTag: Ua,
1725
- CaStatCard: ma,
1726
- CaStatusTag: ha
1727
- }, Ga = q(D), Ka = q(ve), qa = q(i), Ja = q(ke), Ya = q(he), Xa = q(Ke), Za = q(w), Qa = q(et), $a = q(tt), eo = q(nt), to = {
1728
- CaContainer: Ga,
1729
- CaHeader: Ka,
1730
- CaAside: qa,
1731
- CaMain: Ja,
1732
- CaFooter: Ya,
1733
- CaRow: Xa,
1734
- CaCol: Za,
1735
- CaSpace: Qa,
1736
- CaSplitter: $a,
1737
- CaSplitterPanel: eo
1738
- }, no = /* @__PURE__ */ L({
1737
+ }), _a = q(s), va = q(c), ya = q(u), ba = q(h), xa = q(_), Sa = q(v), Ca = q(T), wa = q(te), Ta = q(oe), Ea = q(se), Da = q(me), Oa = q(be), ka = q(xe), Aa = q(Le), ja = q(Be), Ma = q(Ge), Na = q(Ze), Pa = q(Qe), Fa = q(_t), Ia = q(vt), La = q(bt), Ra = q(xt), za = q(Ct), Ba = q(Tt), Va = q(Je), Ha = q(rt), Ua = q(O), Wa = q(x), Ga = {
1738
+ CaAvatar: _a,
1739
+ CaAvatarGroup: va,
1740
+ CaBadge: ya,
1741
+ CaCalendar: ba,
1742
+ CaCarousel: xa,
1743
+ CaCarouselItem: Sa,
1744
+ CaCollapse: Ca,
1745
+ CaCollapseItem: wa,
1746
+ CaDescriptions: Ta,
1747
+ CaDescriptionsItem: Ea,
1748
+ CaEmpty: Da,
1749
+ CaImage: Oa,
1750
+ CaImageViewer: ka,
1751
+ CaPagination: Aa,
1752
+ CaProgress: ja,
1753
+ CaResult: Ma,
1754
+ CaSkeleton: Na,
1755
+ CaSkeletonItem: Pa,
1756
+ CaTimeline: Fa,
1757
+ CaTimelineItem: Ia,
1758
+ CaTour: La,
1759
+ CaTourStep: Ra,
1760
+ CaTree: za,
1761
+ CaTreeV2: Ba,
1762
+ CaSegmented: Va,
1763
+ CaStatistic: Ha,
1764
+ CaCountdown: Ua,
1765
+ CaCheckTag: Wa,
1766
+ CaStatCard: ha,
1767
+ CaStatusTag: ga
1768
+ }, Ka = q(D), qa = q(ve), Ja = q(i), Ya = q(ke), Xa = q(he), Za = q(Ke), Qa = q(w), $a = q(et), eo = q(tt), to = q(nt), no = {
1769
+ CaContainer: Ka,
1770
+ CaHeader: qa,
1771
+ CaAside: Ja,
1772
+ CaMain: Ya,
1773
+ CaFooter: Xa,
1774
+ CaRow: Za,
1775
+ CaCol: Qa,
1776
+ CaSpace: $a,
1777
+ CaSplitter: eo,
1778
+ CaSplitterPanel: to
1779
+ }, ro = /* @__PURE__ */ L({
1739
1780
  __name: "CaSchemaForm",
1740
1781
  props: {
1741
1782
  fields: {},
@@ -1877,41 +1918,41 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1877
1918
  "label-width"
1878
1919
  ]));
1879
1920
  }
1880
- }), ro = q(ne), io = q(ie), ao = q(ge), oo = q(_e), so = q(Ce), co = q(we), lo = q(Pe), uo = q(He), fo = q(Ue), po = q(Ye), mo = q(st), ho = q(o), go = q(y), _o = q(b), vo = q(S), yo = q(ee), bo = q(C), xo = q(E), So = q(ae), Co = q(Ee), wo = q(Te), To = q(Ae), Eo = q(We), Do = q(Xe), Oo = q($e), ko = q(ht), Ao = q(gt), jo = q(St), Mo = q(wt), No = q(Et), Po = q(Fe), Fo = q(Ve), Io = {
1881
- CaAutocomplete: ho,
1882
- CaCascader: go,
1883
- CaCascaderPanel: _o,
1884
- CaCheckbox: vo,
1885
- CaCheckboxGroup: yo,
1886
- CaCheckboxButton: bo,
1887
- CaColorPickerPanel: xo,
1888
- CaDatePickerPanel: So,
1889
- CaInputTag: Co,
1890
- CaInputOtp: wo,
1891
- CaMention: To,
1892
- CaRate: Eo,
1893
- CaSelectV2: Do,
1894
- CaSlider: Oo,
1895
- CaTimePicker: ko,
1896
- CaTimeSelect: Ao,
1897
- CaTransfer: jo,
1898
- CaTreeSelect: Mo,
1899
- CaUpload: No,
1900
- CaOptionGroup: Po,
1901
- CaRadio: Fo,
1902
- CaColorPicker: ro,
1903
- CaDatePicker: io,
1904
- CaForm: ao,
1905
- CaFormItem: oo,
1906
- CaInput: so,
1907
- CaInputNumber: co,
1908
- CaOption: lo,
1909
- CaRadioButton: uo,
1910
- CaRadioGroup: fo,
1911
- CaSelect: po,
1912
- CaSwitch: mo,
1913
- CaSchemaForm: no
1914
- }, Lo = /* @__PURE__ */ L({
1921
+ }), io = q(ne), ao = q(ie), oo = q(ge), so = q(_e), co = q(Ce), lo = q(we), uo = q(Pe), fo = q(He), po = q(Ue), mo = q(Ye), ho = q(st), go = q(o), _o = q(y), vo = q(b), yo = q(S), bo = q(ee), xo = q(C), So = q(E), Co = q(ae), wo = q(Ee), To = q(Te), Eo = q(Ae), Do = q(We), Oo = q(Xe), ko = q($e), Ao = q(ht), jo = q(gt), Mo = q(St), No = q(wt), Po = q(Et), Fo = q(Fe), Io = q(Ve), Lo = {
1922
+ CaAutocomplete: go,
1923
+ CaCascader: _o,
1924
+ CaCascaderPanel: vo,
1925
+ CaCheckbox: yo,
1926
+ CaCheckboxGroup: bo,
1927
+ CaCheckboxButton: xo,
1928
+ CaColorPickerPanel: So,
1929
+ CaDatePickerPanel: Co,
1930
+ CaInputTag: wo,
1931
+ CaInputOtp: To,
1932
+ CaMention: Eo,
1933
+ CaRate: Do,
1934
+ CaSelectV2: Oo,
1935
+ CaSlider: ko,
1936
+ CaTimePicker: Ao,
1937
+ CaTimeSelect: jo,
1938
+ CaTransfer: Mo,
1939
+ CaTreeSelect: No,
1940
+ CaUpload: Po,
1941
+ CaOptionGroup: Fo,
1942
+ CaRadio: Io,
1943
+ CaColorPicker: io,
1944
+ CaDatePicker: ao,
1945
+ CaForm: oo,
1946
+ CaFormItem: so,
1947
+ CaInput: co,
1948
+ CaInputNumber: lo,
1949
+ CaOption: uo,
1950
+ CaRadioButton: fo,
1951
+ CaRadioGroup: po,
1952
+ CaSelect: mo,
1953
+ CaSwitch: ho,
1954
+ CaSchemaForm: ro
1955
+ }, Ro = /* @__PURE__ */ L({
1915
1956
  __name: "CaMenu",
1916
1957
  setup(e) {
1917
1958
  return (e, t) => (B(), j(G(je), { class: "ca-menu" }, {
@@ -1919,35 +1960,35 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
1919
1960
  _: 3
1920
1961
  }));
1921
1962
  }
1922
- }), Ro = q(d), zo = q(f), Bo = q(de), Vo = q(fe), Ho = q(pe), Uo = q(Me), Wo = q(ot), Go = q(e), Ko = q(n), qo = q(r), Jo = q(l), Yo = q(Ie), Xo = q(at), Zo = q(it), Qo = q(ft), $o = q(ct), es = q(Ne), ts = {
1923
- CaAffix: Go,
1924
- CaAnchor: Ko,
1925
- CaAnchorLink: qo,
1926
- CaBacktop: Jo,
1927
- CaPageHeader: Yo,
1928
- CaSteps: Xo,
1929
- CaStep: Zo,
1930
- CaTabs: Qo,
1931
- CaTabPane: $o,
1932
- CaMenuItemGroup: es,
1933
- CaBreadcrumb: Ro,
1934
- CaBreadcrumbItem: zo,
1935
- CaDropdown: Bo,
1936
- CaDropdownItem: Vo,
1937
- CaDropdownMenu: Ho,
1938
- CaMenu: Lo,
1939
- CaMenuItem: Uo,
1940
- CaSubMenu: Wo
1941
- }, ns = q(ce), rs = q(ue), is = q(ze), as = q(Re), os = q(yt), ss = {
1942
- CaPopover: is,
1943
- CaPopconfirm: as,
1944
- CaTooltip: os,
1945
- CaDialog: ns,
1946
- CaDrawer: rs
1947
- }, cs = { class: "ca-data-table ca-card" }, ls = {
1963
+ }), zo = q(d), Bo = q(f), Vo = q(de), Ho = q(fe), Uo = q(pe), Wo = q(Me), Go = q(ot), Ko = q(e), qo = q(n), Jo = q(r), Yo = q(l), Xo = q(Ie), Zo = q(at), Qo = q(it), $o = q(ft), es = q(ct), ts = q(Ne), ns = {
1964
+ CaAffix: Ko,
1965
+ CaAnchor: qo,
1966
+ CaAnchorLink: Jo,
1967
+ CaBacktop: Yo,
1968
+ CaPageHeader: Xo,
1969
+ CaSteps: Zo,
1970
+ CaStep: Qo,
1971
+ CaTabs: $o,
1972
+ CaTabPane: es,
1973
+ CaMenuItemGroup: ts,
1974
+ CaBreadcrumb: zo,
1975
+ CaBreadcrumbItem: Bo,
1976
+ CaDropdown: Vo,
1977
+ CaDropdownItem: Ho,
1978
+ CaDropdownMenu: Uo,
1979
+ CaMenu: Ro,
1980
+ CaMenuItem: Wo,
1981
+ CaSubMenu: Go
1982
+ }, rs = q(ce), is = q(ue), as = q(ze), os = q(Re), ss = q(yt), cs = {
1983
+ CaPopover: as,
1984
+ CaPopconfirm: os,
1985
+ CaTooltip: ss,
1986
+ CaDialog: rs,
1987
+ CaDrawer: is
1988
+ }, ls = { class: "ca-data-table ca-card" }, us = {
1948
1989
  key: 1,
1949
1990
  class: "ca-data-table__toolbar"
1950
- }, us = { class: "ca-data-table__table-scroll" }, ds = { class: "ca-data-table__footer" }, fs = { class: "ca-data-table__total" }, ps = /*#__PURE__*/ zi(/* @__PURE__ */ L({
1991
+ }, ds = { class: "ca-data-table__table-scroll" }, fs = { class: "ca-data-table__footer" }, ps = { class: "ca-data-table__total" }, ms = /*#__PURE__*/ Vn(/* @__PURE__ */ L({
1951
1992
  __name: "CaDataTable",
1952
1993
  props: {
1953
1994
  columns: {},
@@ -2010,7 +2051,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
2010
2051
  }), n({
2011
2052
  reload: y,
2012
2053
  reset: x
2013
- }), (n, r) => (B(), N("div", cs, [
2054
+ }), (n, r) => (B(), N("div", ls, [
2014
2055
  e.search?.length ? (B(), j(G(ge), {
2015
2056
  key: 0,
2016
2057
  class: "ca-data-table__search",
@@ -2079,7 +2120,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
2079
2120
  })]),
2080
2121
  _: 1
2081
2122
  })) : M("v-if", !0),
2082
- n.$slots.toolbar ? (B(), N("div", ls, [U(n.$slots, "toolbar", { reload: y }, void 0, !0)])) : M("v-if", !0),
2123
+ n.$slots.toolbar ? (B(), N("div", us, [U(n.$slots, "toolbar", { reload: y }, void 0, !0)])) : M("v-if", !0),
2083
2124
  h.value ? (B(), j(G(t), {
2084
2125
  key: 2,
2085
2126
  type: "error",
@@ -2097,7 +2138,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
2097
2138
  })]),
2098
2139
  _: 1
2099
2140
  }, 8, ["title"])) : M("v-if", !0),
2100
- P("div", us, [Vt((B(), j(G(lt), {
2141
+ P("div", ds, [Vt((B(), j(G(lt), {
2101
2142
  ref_key: "tableRef",
2102
2143
  ref: g,
2103
2144
  data: d.value,
@@ -2151,7 +2192,7 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
2151
2192
  "row-key",
2152
2193
  "empty-text"
2153
2194
  ])), [[G(Ot), m.value]])]),
2154
- P("div", ds, [P("span", fs, W(G(o)("campus.table.total", { total: f.value })), 1), I(G(Le), {
2195
+ P("div", fs, [P("span", ps, W(G(o)("campus.table.total", { total: f.value })), 1), I(G(Le), {
2155
2196
  "current-page": l.value,
2156
2197
  "onUpdate:currentPage": r[1] ||= (e) => l.value = e,
2157
2198
  "page-size": u.value,
@@ -2173,15 +2214,15 @@ var jr = { class: "ca-chart__legend" }, Mr = /* @__PURE__ */ L({
2173
2214
  ])])
2174
2215
  ]));
2175
2216
  }
2176
- }), [["__scopeId", "data-v-7e786198"]]), ms = q(lt), hs = q(ut), gs = q(dt), _s = q(a), vs = {
2177
- CaTable: ms,
2178
- CaTableColumn: hs,
2179
- CaTableV2: gs,
2180
- CaAutoResizer: _s,
2181
- CaDataTable: ps
2182
- }, ys = Ln(Xn, $n, aa, sa, Wa, Io, to, ts, ss, vs), bs = {}, xs = Ln(bs), Ss = {}, Cs = {}, ws = {}, Ts = {}, Es = {}, Ds = Ln(Ss, Cs, ws, Ts, Es), Os = Ln(ys, Ds, xs);
2183
- function ks(e) {
2217
+ }), [["__scopeId", "data-v-7e786198"]]), hs = q(lt), gs = q(ut), _s = q(dt), vs = q(a), ys = {
2218
+ CaTable: hs,
2219
+ CaTableColumn: gs,
2220
+ CaTableV2: _s,
2221
+ CaAutoResizer: vs,
2222
+ CaDataTable: ms
2223
+ }, bs = Ln($n, nr, oa, ca, Ga, Lo, no, ns, cs, ys), xs = {}, Ss = Ln(xs), Cs = {}, ws = {}, Ts = {}, Es = {}, Ds = {}, Os = Ln(Cs, ws, Ts, Es, Ds), ks = Ln(bs, Os, Ss);
2224
+ function As(e) {
2184
2225
  e.directive("ca-loading", Oe), e.directive("ca-infinite-scroll", Se);
2185
- for (let [t, n] of Object.entries(Os)) e.component(t, n);
2226
+ for (let [t, n] of Object.entries(ks)) e.component(t, n);
2186
2227
  }
2187
- export { Go as CaAffix, Hn as CaAlert, Ko as CaAnchor, qo as CaAnchorLink, qa as CaAside, _s as CaAutoResizer, ho as CaAutocomplete, ga as CaAvatar, _a as CaAvatarGroup, Jo as CaBacktop, va as CaBadge, Ci as CaBarChart, Ro as CaBreadcrumb, zo as CaBreadcrumbItem, Zn as CaButton, Qn as CaButtonGroup, ya as CaCalendar, Un as CaCard, ba as CaCarousel, xa as CaCarouselItem, go as CaCascader, _o as CaCascaderPanel, Ua as CaCheckTag, vo as CaCheckbox, bo as CaCheckboxButton, yo as CaCheckboxGroup, Za as CaCol, Sa as CaCollapse, Ca as CaCollapseItem, ro as CaColorPicker, xo as CaColorPickerPanel, oa as CaConfigProvider, Ga as CaContainer, Ha as CaCountdown, ps as CaDataTable, io as CaDatePicker, So as CaDatePickerPanel, wa as CaDescriptions, Ta as CaDescriptionsItem, ns as CaDialog, Jn as CaDivider, rs as CaDrawer, Bo as CaDropdown, Vo as CaDropdownItem, Ho as CaDropdownMenu, Ea as CaEmpty, Ya as CaFooter, ao as CaForm, oo as CaFormItem, ia as CaGauge, Ka as CaHeader, zn as CaIcon, Da as CaImage, Oa as CaImageViewer, so as CaInput, co as CaInputNumber, wo as CaInputOtp, Co as CaInputTag, ii as CaLineChart, Gn as CaLink, Ja as CaMain, To as CaMention, Lo as CaMenu, Uo as CaMenuItem, es as CaMenuItemGroup, lo as CaOption, Po as CaOptionGroup, Vn as CaPageActions, Yo as CaPageHeader, ka as CaPagination, Bi as CaPieChart, as as CaPopconfirm, is as CaPopover, Aa as CaProgress, Fo as CaRadio, uo as CaRadioButton, fo as CaRadioGroup, Eo as CaRate, ja as CaResult, Xa as CaRow, no as CaSchemaForm, qn as CaScrollbar, Ba as CaSegmented, po as CaSelect, Do as CaSelectV2, Ma as CaSkeleton, Na as CaSkeletonItem, Oo as CaSlider, Qa as CaSpace, Zi as CaSparkline, $a as CaSplitter, eo as CaSplitterPanel, ma as CaStatCard, Va as CaStatistic, ha as CaStatusTag, Zo as CaStep, Xo as CaSteps, Wo as CaSubMenu, mo as CaSwitch, $o as CaTabPane, ms as CaTable, hs as CaTableColumn, gs as CaTableV2, Qo as CaTabs, Wn as CaTag, Kn as CaText, ko as CaTimePicker, Ao as CaTimeSelect, Pa as CaTimeline, Fa as CaTimelineItem, os as CaTooltip, Ia as CaTour, La as CaTourStep, jo as CaTransfer, Ra as CaTree, Mo as CaTreeSelect, za as CaTreeV2, No as CaUpload, Yn as CaWatermark, Rn as ICONS, Xn as basicComponents, $n as buttonComponents, Ds as campusRegistry, Ss as cardComponents, aa as chartComponents, ys as componentRegistry, sa as configComponents, Wa as displayComponents, Io as formComponents, ks as installUi, to as layoutComponents, ts as navigationComponents, xs as omsRegistry, bs as omsSchoolComponents, ss as overlayComponents, Cs as parentComponents, ws as studentComponents, vs as tableComponents, Ts as teacherComponents, Es as telComponents, er as translateKey, Os as uiComponents, J as useTranslate };
2228
+ export { Ko as CaAffix, Gn as CaAlert, qo as CaAnchor, Jo as CaAnchorLink, Ja as CaAside, vs as CaAutoResizer, go as CaAutocomplete, _a as CaAvatar, va as CaAvatarGroup, Yo as CaBacktop, ya as CaBadge, Ei as CaBarChart, zo as CaBreadcrumb, Bo as CaBreadcrumbItem, er as CaButton, tr as CaButtonGroup, ba as CaCalendar, Kn as CaCard, xa as CaCarousel, Sa as CaCarouselItem, _o as CaCascader, vo as CaCascaderPanel, Wa as CaCheckTag, yo as CaCheckbox, xo as CaCheckboxButton, bo as CaCheckboxGroup, Qa as CaCol, Ca as CaCollapse, wa as CaCollapseItem, io as CaColorPicker, So as CaColorPickerPanel, sa as CaConfigProvider, Ka as CaContainer, Ua as CaCountdown, ms as CaDataTable, ao as CaDatePicker, Co as CaDatePickerPanel, Ta as CaDescriptions, Ea as CaDescriptionsItem, rs as CaDialog, Zn as CaDivider, is as CaDrawer, Vo as CaDropdown, Ho as CaDropdownItem, Uo as CaDropdownMenu, Da as CaEmpty, Xa as CaFooter, oo as CaForm, so as CaFormItem, aa as CaGauge, qa as CaHeader, Hn as CaIcon, Oa as CaImage, ka as CaImageViewer, co as CaInput, lo as CaInputNumber, To as CaInputOtp, wo as CaInputTag, si as CaLineChart, Jn as CaLink, Ya as CaMain, Eo as CaMention, Ro as CaMenu, Wo as CaMenuItem, ts as CaMenuItemGroup, uo as CaOption, Fo as CaOptionGroup, Wn as CaPageActions, Xo as CaPageHeader, Aa as CaPagination, Vi as CaPieChart, os as CaPopconfirm, as as CaPopover, ja as CaProgress, Io as CaRadio, fo as CaRadioButton, po as CaRadioGroup, Do as CaRate, Ma as CaResult, Za as CaRow, ro as CaSchemaForm, Xn as CaScrollbar, Va as CaSegmented, mo as CaSelect, Oo as CaSelectV2, Na as CaSkeleton, Pa as CaSkeletonItem, ko as CaSlider, $a as CaSpace, Qi as CaSparkline, eo as CaSplitter, to as CaSplitterPanel, ha as CaStatCard, Ha as CaStatistic, ga as CaStatusTag, Qo as CaStep, Zo as CaSteps, Go as CaSubMenu, ho as CaSwitch, es as CaTabPane, hs as CaTable, gs as CaTableColumn, _s as CaTableV2, $o as CaTabs, qn as CaTag, Yn as CaText, Ao as CaTimePicker, jo as CaTimeSelect, Fa as CaTimeline, Ia as CaTimelineItem, ss as CaTooltip, La as CaTour, Ra as CaTourStep, Mo as CaTransfer, za as CaTree, No as CaTreeSelect, Ba as CaTreeV2, Po as CaUpload, Qn as CaWatermark, zn as ICONS, $n as basicComponents, nr as buttonComponents, Os as campusRegistry, Cs as cardComponents, oa as chartComponents, bs as componentRegistry, ca as configComponents, Ga as displayComponents, Lo as formComponents, As as installUi, no as layoutComponents, ns as navigationComponents, Ss as omsRegistry, xs as omsSchoolComponents, cs as overlayComponents, ws as parentComponents, Ts as studentComponents, ys as tableComponents, Es as teacherComponents, Ds as telComponents, rr as translateKey, ks as uiComponents, J as useTranslate };