@smallwebco/tinypivot-vue 1.1.0 → 1.1.1

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.
@@ -1,4 +1,4 @@
1
- import { ref as E, computed as P, onMounted as xt, watch as De, defineComponent as Xe, nextTick as yt, openBlock as i, createElementBlock as u, normalizeClass as ce, unref as _, createElementVNode as e, createStaticVNode as _t, Fragment as Q, withDirectives as Ue, vModelText as Qe, renderList as ve, toDisplayString as S, createCommentVNode as I, withModifiers as Le, createTextVNode as de, createBlock as kt, Teleport as Kt, vModelSelect as Na, defineAsyncComponent as La, Suspense as Pa, withCtx as Pt, withKeys as Gt, normalizeStyle as qe, onUnmounted as Vt, createVNode as We, Transition as Tn, vShow as Va } from "vue";
1
+ import { ref as E, computed as P, onMounted as xt, watch as De, defineComponent as Xe, nextTick as yt, openBlock as i, createElementBlock as u, normalizeClass as ue, unref as _, createElementVNode as e, createStaticVNode as _t, Fragment as Q, withDirectives as Ue, vModelText as Qe, renderList as ve, toDisplayString as S, createCommentVNode as I, withModifiers as Le, createTextVNode as de, createBlock as kt, Teleport as Kt, vModelSelect as Na, defineAsyncComponent as La, Suspense as Pa, withCtx as Pt, withKeys as Gt, normalizeStyle as qe, onUnmounted as Vt, createVNode as We, Transition as Tn, vShow as Va } from "vue";
2
2
  import { useVueTable as Oa, getFilteredRowModel as za, getSortedRowModel as Ba, getCoreRowModel as Ia } from "@tanstack/vue-table";
3
3
  const qa = /* @__PURE__ */ new Map([
4
4
  ["sales", {
@@ -2735,7 +2735,7 @@ const tl = {
2735
2735
  return (h, w) => {
2736
2736
  var ie, le;
2737
2737
  return i(), u("div", {
2738
- class: ce(["vpg-ai-analyst", { "vpg-theme-dark": U.value }])
2738
+ class: ue(["vpg-ai-analyst", { "vpg-theme-dark": U.value }])
2739
2739
  }, [
2740
2740
  _(y) ? (i(), u("div", dl, [
2741
2741
  e("div", vl, [
@@ -2802,7 +2802,7 @@ const tl = {
2802
2802
  e("span", null, S(ee.content), 1)
2803
2803
  ])) : v(ee) ? (i(), u("div", {
2804
2804
  key: 1,
2805
- class: ce(["vpg-ai-msg vpg-ai-msg-result", { "vpg-ai-msg-selected": K.value === ee.id }]),
2805
+ class: ue(["vpg-ai-msg vpg-ai-msg-result", { "vpg-ai-msg-selected": K.value === ee.id }]),
2806
2806
  onClick: (Pe) => ae(ee.id)
2807
2807
  }, [
2808
2808
  e("div", bl, [
@@ -2820,7 +2820,7 @@ const tl = {
2820
2820
  ]),
2821
2821
  (Ge = ee.metadata) != null && Ge.query ? (i(), u("button", {
2822
2822
  key: 0,
2823
- class: ce(["vpg-ai-sql-toggle", { "vpg-ai-sql-expanded": ne.value && K.value === ee.id }]),
2823
+ class: ue(["vpg-ai-sql-toggle", { "vpg-ai-sql-expanded": ne.value && K.value === ee.id }]),
2824
2824
  title: "View SQL query",
2825
2825
  onClick: w[4] || (w[4] = Le((Pe) => N(), ["stop"]))
2826
2826
  }, [...w[17] || (w[17] = [
@@ -2946,7 +2946,7 @@ const tl = {
2946
2946
  fe.value.length > 0 ? (i(), u("span", Vl, S(fe.value.length.toLocaleString()) + " rows ", 1)) : I("", !0),
2947
2947
  A.value ? (i(), u("button", {
2948
2948
  key: 1,
2949
- class: ce(["vpg-ai-preview-sql-btn", { "vpg-ai-sql-active": ne.value }]),
2949
+ class: ue(["vpg-ai-preview-sql-btn", { "vpg-ai-sql-active": ne.value }]),
2950
2950
  title: "Toggle SQL query",
2951
2951
  onClick: w[6] || (w[6] = (ee) => N())
2952
2952
  }, [...w[22] || (w[22] = [
@@ -3195,7 +3195,8 @@ const tl = {
3195
3195
  props: {
3196
3196
  show: { type: Boolean },
3197
3197
  availableFields: {},
3198
- existingField: {}
3198
+ existingField: {},
3199
+ theme: {}
3199
3200
  },
3200
3201
  emits: ["close", "save"],
3201
3202
  setup(t, { emit: o }) {
@@ -3233,7 +3234,7 @@ const tl = {
3233
3234
  return (k, p) => (i(), kt(Kt, { to: "body" }, [
3234
3235
  t.show ? (i(), u("div", {
3235
3236
  key: 0,
3236
- class: "vpg-modal-overlay",
3237
+ class: ue(["vpg-modal-overlay", `vpg-theme-${t.theme ?? "light"}`]),
3237
3238
  onClick: p[12] || (p[12] = Le((T) => s("close"), ["self"]))
3238
3239
  }, [
3239
3240
  e("div", es, [
@@ -3353,10 +3354,10 @@ const tl = {
3353
3354
  }, S(t.existingField ? "Update" : "Add") + " Field ", 1)
3354
3355
  ])
3355
3356
  ])
3356
- ])) : I("", !0)
3357
+ ], 2)) : I("", !0)
3357
3358
  ]));
3358
3359
  }
3359
- }), ys = /* @__PURE__ */ lt(hs, [["__scopeId", "data-v-65797c1f"]]), ws = { class: "vpg-chart-builder" }, bs = { class: "vpg-chart-type-bar" }, Cs = ["title", "onClick"], ks = {
3360
+ }), ys = /* @__PURE__ */ lt(hs, [["__scopeId", "data-v-84f7160f"]]), ws = { class: "vpg-chart-builder" }, bs = { class: "vpg-chart-type-bar" }, Cs = ["title", "onClick"], ks = {
3360
3361
  class: "vpg-icon",
3361
3362
  viewBox: "0 0 24 24",
3362
3363
  fill: "currentColor"
@@ -3742,7 +3743,7 @@ const tl = {
3742
3743
  e("div", bs, [
3743
3744
  (i(!0), u(Q, null, ve(_(Yt), (v) => (i(), u("button", {
3744
3745
  key: v.type,
3745
- class: ce(["vpg-chart-type-btn", { active: a.value.type === v.type }]),
3746
+ class: ue(["vpg-chart-type-btn", { active: a.value.type === v.type }]),
3746
3747
  title: v.description,
3747
3748
  onClick: (U) => ge(v.type)
3748
3749
  }, [
@@ -3817,7 +3818,7 @@ const tl = {
3817
3818
  e("div", zs, [
3818
3819
  e("label", Bs, S(T.value.xAxis), 1),
3819
3820
  e("div", {
3820
- class: ce(["vpg-chart-drop-zone", { "drag-over": y.value === "xAxis", "has-field": a.value.xAxis }]),
3821
+ class: ue(["vpg-chart-drop-zone", { "drag-over": y.value === "xAxis", "has-field": a.value.xAxis }]),
3821
3822
  onDragover: R[2] || (R[2] = (v) => j("xAxis", v)),
3822
3823
  onDragleave: K,
3823
3824
  onDrop: R[3] || (R[3] = (v) => ne("xAxis", v))
@@ -3855,7 +3856,7 @@ const tl = {
3855
3856
  e("div", js, [
3856
3857
  e("label", Ws, S(T.value.yAxis), 1),
3857
3858
  e("div", {
3858
- class: ce(["vpg-chart-drop-zone", { "drag-over": y.value === "yAxis", "has-field": a.value.yAxis }]),
3859
+ class: ue(["vpg-chart-drop-zone", { "drag-over": y.value === "yAxis", "has-field": a.value.yAxis }]),
3859
3860
  onDragover: R[6] || (R[6] = (v) => j("yAxis", v)),
3860
3861
  onDragleave: K,
3861
3862
  onDrop: R[7] || (R[7] = (v) => ne("yAxis", v))
@@ -3893,7 +3894,7 @@ const tl = {
3893
3894
  T.value.showSeries ? (i(), u("div", Qs, [
3894
3895
  e("label", Xs, S(T.value.series), 1),
3895
3896
  e("div", {
3896
- class: ce(["vpg-chart-drop-zone vpg-zone-optional", { "drag-over": y.value === "series", "has-field": a.value.seriesField || Z.value && a.value.colorField }]),
3897
+ class: ue(["vpg-chart-drop-zone vpg-zone-optional", { "drag-over": y.value === "series", "has-field": a.value.seriesField || Z.value && a.value.colorField }]),
3897
3898
  onDragover: R[10] || (R[10] = (v) => j(Z.value ? "color" : "series", v)),
3898
3899
  onDragleave: K,
3899
3900
  onDrop: R[11] || (R[11] = (v) => ne(Z.value ? "color" : "series", v))
@@ -3931,7 +3932,7 @@ const tl = {
3931
3932
  T.value.showSize ? (i(), u("div", ar, [
3932
3933
  R[23] || (R[23] = e("label", { class: "vpg-chart-zone-label" }, "Size (number)", -1)),
3933
3934
  e("div", {
3934
- class: ce(["vpg-chart-drop-zone vpg-zone-optional", { "drag-over": y.value === "size", "has-field": a.value.sizeField }]),
3935
+ class: ue(["vpg-chart-drop-zone vpg-zone-optional", { "drag-over": y.value === "size", "has-field": a.value.sizeField }]),
3935
3936
  onDragover: R[14] || (R[14] = (v) => j("size", v)),
3936
3937
  onDragleave: K,
3937
3938
  onDrop: R[15] || (R[15] = (v) => ne("size", v))
@@ -4079,7 +4080,7 @@ const tl = {
4079
4080
  Ue(e("input", {
4080
4081
  "onUpdate:modelValue": O[0] || (O[0] = (j) => a.value = j),
4081
4082
  type: "text",
4082
- class: ce(["vpg-range-input", { "vpg-input-error": d.value }]),
4083
+ class: ue(["vpg-range-input", { "vpg-input-error": d.value }]),
4083
4084
  placeholder: _(Sn)(l.value),
4084
4085
  onBlur: k,
4085
4086
  onKeyup: Gt(k, ["enter"])
@@ -4093,7 +4094,7 @@ const tl = {
4093
4094
  Ue(e("input", {
4094
4095
  "onUpdate:modelValue": O[1] || (O[1] = (j) => c.value = j),
4095
4096
  type: "text",
4096
- class: ce(["vpg-range-input", { "vpg-input-error": C.value }]),
4097
+ class: ue(["vpg-range-input", { "vpg-input-error": C.value }]),
4097
4098
  placeholder: _(Sn)(l.value),
4098
4099
  onBlur: p,
4099
4100
  onKeyup: Gt(p, ["enter"])
@@ -4447,7 +4448,7 @@ const tl = {
4447
4448
  ]),
4448
4449
  e("div", Qr, [
4449
4450
  e("button", {
4450
- class: ce(["vpg-sort-btn", { active: t.sortDirection === "asc" }]),
4451
+ class: ue(["vpg-sort-btn", { active: t.sortDirection === "asc" }]),
4451
4452
  title: z.value,
4452
4453
  onClick: ge
4453
4454
  }, [
@@ -4467,7 +4468,7 @@ const tl = {
4467
4468
  e("span", null, S(G.value), 1)
4468
4469
  ], 10, Xr),
4469
4470
  e("button", {
4470
- class: ce(["vpg-sort-btn", { active: t.sortDirection === "desc" }]),
4471
+ class: ue(["vpg-sort-btn", { active: t.sortDirection === "desc" }]),
4471
4472
  title: O.value,
4472
4473
  onClick: pe
4473
4474
  }, [
@@ -4490,7 +4491,7 @@ const tl = {
4490
4491
  V[11] || (V[11] = e("div", { class: "vpg-divider" }, null, -1)),
4491
4492
  d.value || C.value ? (i(), u("div", ei, [
4492
4493
  e("button", {
4493
- class: ce(["vpg-tab-btn", { active: m.value === "values" }]),
4494
+ class: ue(["vpg-tab-btn", { active: m.value === "values" }]),
4494
4495
  onClick: V[0] || (V[0] = (W) => N("values"))
4495
4496
  }, [...V[6] || (V[6] = [
4496
4497
  e("svg", {
@@ -4509,7 +4510,7 @@ const tl = {
4509
4510
  de(" Values ", -1)
4510
4511
  ])], 2),
4511
4512
  e("button", {
4512
- class: ce(["vpg-tab-btn", { active: m.value === "range" }]),
4513
+ class: ue(["vpg-tab-btn", { active: m.value === "range" }]),
4513
4514
  onClick: V[1] || (V[1] = (W) => N("range"))
4514
4515
  }, [...V[7] || (V[7] = [
4515
4516
  e("svg", {
@@ -4602,7 +4603,7 @@ const tl = {
4602
4603
  e("div", ni, [
4603
4604
  (i(!0), u(Q, null, ve(T.value, (W) => (i(), u("label", {
4604
4605
  key: W,
4605
- class: ce(["vpg-value-item", { selected: x.value.has(W) }])
4606
+ class: ue(["vpg-value-item", { selected: x.value.has(W) }])
4606
4607
  }, [
4607
4608
  e("input", {
4608
4609
  type: "checkbox",
@@ -4611,7 +4612,7 @@ const tl = {
4611
4612
  onChange: (se) => j(W)
4612
4613
  }, null, 40, ai),
4613
4614
  e("span", {
4614
- class: ce(["vpg-value-text", { "vpg-blank": W === "(blank)" }])
4615
+ class: ue(["vpg-value-text", { "vpg-blank": W === "(blank)" }])
4615
4616
  }, S(W), 3)
4616
4617
  ], 2))), 128)),
4617
4618
  T.value.length === 0 ? (i(), u("div", oi, " No matching values ")) : I("", !0)
@@ -5262,7 +5263,8 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5262
5263
  result: {},
5263
5264
  rowFields: {},
5264
5265
  columnFields: {},
5265
- valueFields: {}
5266
+ valueFields: {},
5267
+ theme: {}
5266
5268
  },
5267
5269
  emits: ["close"],
5268
5270
  setup(t, { emit: o }) {
@@ -5303,7 +5305,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5303
5305
  return (p, T) => (i(), kt(Kt, { to: "body" }, [
5304
5306
  t.show ? (i(), u("div", {
5305
5307
  key: 0,
5306
- class: "vpg-modal-overlay",
5308
+ class: ue(["vpg-modal-overlay", `vpg-theme-${t.theme ?? "light"}`]),
5307
5309
  onClick: T[2] || (T[2] = Le((G) => s("close"), ["self"]))
5308
5310
  }, [
5309
5311
  e("div", gi, [
@@ -5357,10 +5359,10 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5357
5359
  }, " Close ")
5358
5360
  ])
5359
5361
  ])
5360
- ])) : I("", !0)
5362
+ ], 2)) : I("", !0)
5361
5363
  ]));
5362
5364
  }
5363
- }), $i = /* @__PURE__ */ lt(Fi, [["__scopeId", "data-v-74103619"]]), Mi = { class: "vpg-config-header" }, Di = { class: "vpg-header-actions" }, Ri = {
5365
+ }), $i = /* @__PURE__ */ lt(Fi, [["__scopeId", "data-v-a3b2c69b"]]), Mi = { class: "vpg-config-header" }, Di = { class: "vpg-header-actions" }, Ri = {
5364
5366
  key: 0,
5365
5367
  class: "vpg-assigned-section"
5366
5368
  }, Ti = { class: "vpg-assigned-list" }, Ai = ["title", "onDragstart"], _i = { class: "vpg-item-main" }, Ei = { class: "vpg-item-name" }, Ni = { class: "vpg-item-actions" }, Li = ["title", "onClick"], Pi = ["value", "onChange"], Vi = ["value", "disabled"], Oi = ["onClick"], zi = { class: "vpg-unassigned-section" }, Bi = { class: "vpg-section-header" }, Ii = { class: "vpg-section-label" }, qi = { class: "vpg-count" }, Ui = { class: "vpg-field-search" }, Hi = { class: "vpg-field-list" }, ji = ["title", "onDragstart"], Wi = { class: "vpg-field-name" }, Gi = ["onClick"], Yi = ["onClick"], Ki = {
@@ -5476,7 +5478,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5476
5478
  f === "row" ? s("removeRowField", A) : f === "column" ? s("removeColumnField", A) : F && s("removeValueField", A, F.aggregation);
5477
5479
  }
5478
5480
  return (A, f) => (i(), u("div", {
5479
- class: ce(["vpg-pivot-config", t.theme ? `vpg-theme-${t.theme}` : ""])
5481
+ class: ue(["vpg-pivot-config", t.theme ? `vpg-theme-${t.theme}` : ""])
5480
5482
  }, [
5481
5483
  e("div", Mi, [
5482
5484
  f[8] || (f[8] = e("h3", { class: "vpg-config-title" }, [
@@ -5525,7 +5527,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5525
5527
  var H;
5526
5528
  return i(), u("div", {
5527
5529
  key: F.field,
5528
- class: ce(["vpg-assigned-item", [`vpg-type-${F.assignedTo}`, { "vpg-type-calc": F.isCalculated }]]),
5530
+ class: ue(["vpg-assigned-item", [`vpg-type-${F.assignedTo}`, { "vpg-type-calc": F.isCalculated }]]),
5529
5531
  title: F.isCalculated ? F.calcFormula : F.field,
5530
5532
  draggable: "true",
5531
5533
  onDragstart: (ae) => me(F.field, ae),
@@ -5533,7 +5535,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5533
5535
  }, [
5534
5536
  e("div", _i, [
5535
5537
  e("span", {
5536
- class: ce(["vpg-item-badge", [F.assignedTo, { calc: F.isCalculated }]])
5538
+ class: ue(["vpg-item-badge", [F.assignedTo, { calc: F.isCalculated }]])
5537
5539
  }, S(F.isCalculated ? "ƒ" : F.assignedTo === "row" ? "R" : F.assignedTo === "column" ? "C" : _(In)(((H = F.valueConfig) == null ? void 0 : H.aggregation) || "sum")), 3),
5538
5540
  e("span", Ei, S(ne(F)), 1)
5539
5541
  ]),
@@ -5634,7 +5636,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5634
5636
  e("div", Hi, [
5635
5637
  (i(!0), u(Q, null, ve(j.value, (F) => (i(), u("div", {
5636
5638
  key: F.field,
5637
- class: ce(["vpg-field-item", {
5639
+ class: ue(["vpg-field-item", {
5638
5640
  "vpg-is-numeric": F.isNumeric && !F.isCalculated,
5639
5641
  "vpg-is-calculated": F.isCalculated
5640
5642
  }]),
@@ -5644,7 +5646,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5644
5646
  onDragend: ge
5645
5647
  }, [
5646
5648
  e("span", {
5647
- class: ce(["vpg-field-type-icon", { "vpg-calc-type": F.isCalculated }])
5649
+ class: ue(["vpg-field-type-icon", { "vpg-calc-type": F.isCalculated }])
5648
5650
  }, S(K(F.type, F.isCalculated)), 3),
5649
5651
  e("span", Wi, S(ne(F)), 1),
5650
5652
  F.isCalculated ? (i(), u(Q, { key: 0 }, [
@@ -5688,14 +5690,15 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5688
5690
  show: C.value,
5689
5691
  "available-fields": y.value,
5690
5692
  "existing-field": m.value,
5693
+ theme: t.theme,
5691
5694
  onClose: f[6] || (f[6] = (F) => {
5692
5695
  C.value = !1, m.value = null;
5693
5696
  }),
5694
5697
  onSave: x
5695
- }, null, 8, ["show", "available-fields", "existing-field"])
5698
+ }, null, 8, ["show", "available-fields", "existing-field", "theme"])
5696
5699
  ], 2));
5697
5700
  }
5698
- }), nu = /* @__PURE__ */ lt(tu, [["__scopeId", "data-v-4352f997"]]), au = {
5701
+ }), nu = /* @__PURE__ */ lt(tu, [["__scopeId", "data-v-d4853ede"]]), au = {
5699
5702
  key: 0,
5700
5703
  class: "vpg-toast"
5701
5704
  }, ou = { class: "vpg-skeleton-header" }, lu = { class: "vpg-header-right" }, su = { class: "vpg-filter-text" }, ru = {
@@ -5812,10 +5815,10 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5812
5815
  return [];
5813
5816
  const B = n.pivotResult.rowHeaders.map((L, Y) => Y), b = n.pivotResult.rowHeaders, J = n.pivotResult.data;
5814
5817
  return B.sort((L, Y) => {
5815
- var ue, he, Ae, Ve, _e, Oe;
5818
+ var ce, he, Ae, Ve, _e, Oe;
5816
5819
  let oe;
5817
5820
  if (O.value === "row") {
5818
- const $e = ((ue = b[L]) == null ? void 0 : ue.join(" / ")) || "", Re = ((he = b[Y]) == null ? void 0 : he.join(" / ")) || "";
5821
+ const $e = ((ce = b[L]) == null ? void 0 : ce.join(" / ")) || "", Re = ((he = b[Y]) == null ? void 0 : he.join(" / ")) || "";
5819
5822
  oe = $e.localeCompare(Re, void 0, { numeric: !0, sensitivity: "base" });
5820
5823
  } else {
5821
5824
  const $e = O.value, Re = ((Ve = (Ae = J[L]) == null ? void 0 : Ae[$e]) == null ? void 0 : Ve.value) ?? null, Ke = ((Oe = (_e = J[Y]) == null ? void 0 : _e[$e]) == null ? void 0 : Oe.value) ?? null;
@@ -5835,10 +5838,10 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5835
5838
  let Y = 0;
5836
5839
  for (; Y < J.length; ) {
5837
5840
  const oe = J[Y];
5838
- let ue = 1;
5839
- for (; Y + ue < J.length && J[Y + ue] === oe; )
5840
- ue++;
5841
- L.push({ label: oe, colspan: ue }), Y += ue;
5841
+ let ce = 1;
5842
+ for (; Y + ce < J.length && J[Y + ce] === oe; )
5843
+ ce++;
5844
+ L.push({ label: oe, colspan: ce }), Y += ce;
5842
5845
  }
5843
5846
  B.push(L);
5844
5847
  }
@@ -5859,14 +5862,14 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5859
5862
  fe.value = !1;
5860
5863
  }
5861
5864
  function N(B, b) {
5862
- var ue, he;
5865
+ var ce, he;
5863
5866
  if (!f.value)
5864
- return ((ue = me.value) == null ? void 0 : ue.row) === B && ((he = me.value) == null ? void 0 : he.col) === b;
5867
+ return ((ce = me.value) == null ? void 0 : ce.row) === B && ((he = me.value) == null ? void 0 : he.col) === b;
5865
5868
  const { minRow: J, maxRow: L, minCol: Y, maxCol: oe } = f.value;
5866
5869
  return B >= J && B <= L && b >= Y && b <= oe;
5867
5870
  }
5868
5871
  function R() {
5869
- var ue;
5872
+ var ce;
5870
5873
  if (!f.value || !n.pivotResult)
5871
5874
  return;
5872
5875
  const { minRow: B, maxRow: b, minCol: J, maxCol: L } = f.value, Y = [];
@@ -5876,7 +5879,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5876
5879
  continue;
5877
5880
  const Ve = [];
5878
5881
  for (let _e = J; _e <= L; _e++) {
5879
- const Oe = (ue = n.pivotResult.data[Ae]) == null ? void 0 : ue[_e];
5882
+ const Oe = (ce = n.pivotResult.data[Ae]) == null ? void 0 : ce[_e];
5880
5883
  Ve.push((Oe == null ? void 0 : Oe.formattedValue) ?? "");
5881
5884
  }
5882
5885
  Y.push(Ve.join(" "));
@@ -5917,11 +5920,11 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
5917
5920
  }
5918
5921
  if (oe <= 1)
5919
5922
  return null;
5920
- const ue = Y.reduce((Ve, _e) => Ve + _e, 0), he = Y.length > 0 ? ue / Y.length : 0;
5923
+ const ce = Y.reduce((Ve, _e) => Ve + _e, 0), he = Y.length > 0 ? ce / Y.length : 0;
5921
5924
  return {
5922
5925
  count: oe,
5923
5926
  numericCount: Y.length,
5924
- sum: ue,
5927
+ sum: ce,
5925
5928
  avg: he
5926
5929
  };
5927
5930
  });
@@ -6008,12 +6011,12 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6008
6011
  return [];
6009
6012
  const B = ((L = n.pivotResult.data[0]) == null ? void 0 : L.length) ?? 0, b = n.valueFields.length || 1, J = [];
6010
6013
  for (let Y = 0; Y < B; Y++) {
6011
- const oe = Math.floor(Y / b), ue = [];
6014
+ const oe = Math.floor(Y / b), ce = [];
6012
6015
  for (let he = 0; he < n.columnFields.length; he++) {
6013
6016
  const Ae = n.pivotResult.headers[he];
6014
- Ae && ue.push(Ae[oe * b] ?? "");
6017
+ Ae && ce.push(Ae[oe * b] ?? "");
6015
6018
  }
6016
- J.push(ue);
6019
+ J.push(ce);
6017
6020
  }
6018
6021
  return J;
6019
6022
  });
@@ -6029,8 +6032,8 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6029
6032
  function vt(B, b) {
6030
6033
  if (!n.pivotResult)
6031
6034
  return;
6032
- const J = n.pivotResult.rowMeta[B], L = J ? J.path : [], Y = Pe.value[b] ?? [], oe = n.valueFields.length || 1, ue = b % oe;
6033
- s("drillThroughCell", { rowPath: L, columnPath: Y, valueFieldIndex: ue });
6035
+ const J = n.pivotResult.rowMeta[B], L = J ? J.path : [], Y = Pe.value[b] ?? [], oe = n.valueFields.length || 1, ce = b % oe;
6036
+ s("drillThroughCell", { rowPath: L, columnPath: Y, valueFieldIndex: ce });
6034
6037
  }
6035
6038
  function pt(B) {
6036
6039
  if (!n.pivotResult)
@@ -6048,7 +6051,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6048
6051
  return (B, b) => {
6049
6052
  var J;
6050
6053
  return i(), u("div", {
6051
- class: ce(["vpg-pivot-skeleton", [
6054
+ class: ue(["vpg-pivot-skeleton", [
6052
6055
  `vpg-font-${x.value}`,
6053
6056
  t.theme ? `vpg-theme-${t.theme}` : "",
6054
6057
  { "vpg-is-dragging": t.draggingField }
@@ -6145,7 +6148,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6145
6148
  t.isConfigured && t.pivotResult ? (i(), u("div", yu, [
6146
6149
  (i(), u(Q, null, ve(k, (L) => e("button", {
6147
6150
  key: L.value,
6148
- class: ce(["vpg-font-size-btn", { active: x.value === L.value }]),
6151
+ class: ue(["vpg-font-size-btn", { active: x.value === L.value }]),
6149
6152
  onClick: (Y) => x.value = L.value
6150
6153
  }, S(L.label), 11, wu)), 64))
6151
6154
  ])) : I("", !0)
@@ -6154,7 +6157,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6154
6157
  _(d) ? (i(), u(Q, { key: 1 }, [
6155
6158
  e("div", Cu, [
6156
6159
  e("div", {
6157
- class: ce(["vpg-drop-zone vpg-row-zone", { "vpg-drag-over": m.value === "row" }]),
6160
+ class: ue(["vpg-drop-zone vpg-row-zone", { "vpg-drag-over": m.value === "row" }]),
6158
6161
  onDragover: b[2] || (b[2] = (L) => W("row", L)),
6159
6162
  onDragleave: se,
6160
6163
  onDrop: b[3] || (b[3] = (L) => re("row", L))
@@ -6166,7 +6169,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6166
6169
  e("div", ku, [
6167
6170
  (i(!0), u(Q, null, ve(t.rowFields, (L, Y) => (i(), u("div", {
6168
6171
  key: L,
6169
- class: ce(["vpg-mini-chip vpg-row-chip", {
6172
+ class: ue(["vpg-mini-chip vpg-row-chip", {
6170
6173
  "vpg-chip-dragging": le("row", Y),
6171
6174
  "vpg-chip-drop-target": ee("row", Y)
6172
6175
  }]),
@@ -6188,7 +6191,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6188
6191
  ])
6189
6192
  ], 34),
6190
6193
  e("div", {
6191
- class: ce(["vpg-drop-zone vpg-column-zone", { "vpg-drag-over": m.value === "column" }]),
6194
+ class: ue(["vpg-drop-zone vpg-column-zone", { "vpg-drag-over": m.value === "column" }]),
6192
6195
  onDragover: b[4] || (b[4] = (L) => W("column", L)),
6193
6196
  onDragleave: se,
6194
6197
  onDrop: b[5] || (b[5] = (L) => re("column", L))
@@ -6200,7 +6203,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6200
6203
  e("div", Mu, [
6201
6204
  (i(!0), u(Q, null, ve(t.columnFields, (L, Y) => (i(), u("div", {
6202
6205
  key: L,
6203
- class: ce(["vpg-mini-chip vpg-column-chip", {
6206
+ class: ue(["vpg-mini-chip vpg-column-chip", {
6204
6207
  "vpg-chip-dragging": le("column", Y),
6205
6208
  "vpg-chip-drop-target": ee("column", Y)
6206
6209
  }]),
@@ -6222,7 +6225,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6222
6225
  ])
6223
6226
  ], 34),
6224
6227
  e("div", {
6225
- class: ce(["vpg-drop-zone vpg-value-zone", { "vpg-drag-over": m.value === "value" }]),
6228
+ class: ue(["vpg-drop-zone vpg-value-zone", { "vpg-drag-over": m.value === "value" }]),
6226
6229
  onDragover: b[6] || (b[6] = (L) => W("value", L)),
6227
6230
  onDragleave: se,
6228
6231
  onDrop: b[7] || (b[7] = (L) => re("value", L))
@@ -6234,7 +6237,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6234
6237
  e("div", _u, [
6235
6238
  (i(!0), u(Q, null, ve(t.valueFields, (L) => (i(), u("div", {
6236
6239
  key: `${L.field}-${L.aggregation}`,
6237
- class: ce(["vpg-mini-chip vpg-value-chip", { "vpg-calc-chip": a(L.field) }])
6240
+ class: ue(["vpg-mini-chip vpg-value-chip", { "vpg-calc-chip": a(L.field) }])
6238
6241
  }, [
6239
6242
  e("span", Eu, S(a(L.field) ? "ƒ" : _(In)(L.aggregation)), 1),
6240
6243
  e("span", Nu, S(l(L.field)), 1),
@@ -6285,34 +6288,34 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6285
6288
  key: `header-${Y}`,
6286
6289
  class: "vpg-column-header-row"
6287
6290
  }, [
6288
- Y === 0 ? (i(!0), u(Q, { key: 0 }, ve(t.rowFields.length > 0 ? t.rowFields : ["Rows"], (oe, ue) => (i(), u("th", {
6289
- key: `row-header-${ue}`,
6291
+ Y === 0 ? (i(!0), u(Q, { key: 0 }, ve(t.rowFields.length > 0 ? t.rowFields : ["Rows"], (oe, ce) => (i(), u("th", {
6292
+ key: `row-header-${ce}`,
6290
6293
  class: "vpg-row-header-label",
6291
6294
  rowspan: ne.value.length,
6292
- style: qe({ width: `${Ge.value}px`, minWidth: "80px", left: `${Ze(ue)}px` }),
6295
+ style: qe({ width: `${Ge.value}px`, minWidth: "80px", left: `${Ze(ce)}px` }),
6293
6296
  onClick: b[8] || (b[8] = (he) => j("row"))
6294
6297
  }, [
6295
6298
  e("div", Uu, [
6296
6299
  e("span", null, S(oe), 1),
6297
- ue === t.rowFields.length - 1 || t.rowFields.length === 0 ? (i(), u("span", {
6300
+ ce === t.rowFields.length - 1 || t.rowFields.length === 0 ? (i(), u("span", {
6298
6301
  key: 0,
6299
- class: ce(["vpg-sort-indicator", { active: O.value === "row" }])
6302
+ class: ue(["vpg-sort-indicator", { active: O.value === "row" }])
6300
6303
  }, S(O.value === "row" ? z.value === "asc" ? "↑" : "↓" : "⇅"), 3)) : I("", !0)
6301
6304
  ])
6302
6305
  ], 12, qu))), 128)) : I("", !0),
6303
- (i(!0), u(Q, null, ve(L, (oe, ue) => (i(), u("th", {
6304
- key: ue,
6306
+ (i(!0), u(Q, null, ve(L, (oe, ce) => (i(), u("th", {
6307
+ key: ce,
6305
6308
  class: "vpg-column-header-cell",
6306
6309
  colspan: oe.colspan,
6307
6310
  style: qe({ width: `${xe.value * oe.colspan}px` }),
6308
- onClick: (he) => Y === ne.value.length - 1 && j(ue)
6311
+ onClick: (he) => Y === ne.value.length - 1 && j(ce)
6309
6312
  }, [
6310
6313
  e("div", ju, [
6311
6314
  e("span", null, S(oe.label), 1),
6312
6315
  Y === ne.value.length - 1 ? (i(), u("span", {
6313
6316
  key: 0,
6314
- class: ce(["vpg-sort-indicator", { active: O.value === ue }])
6315
- }, S(O.value === ue ? z.value === "asc" ? "↑" : "↓" : "⇅"), 3)) : I("", !0)
6317
+ class: ue(["vpg-sort-indicator", { active: O.value === ce }])
6318
+ }, S(O.value === ce ? z.value === "asc" ? "↑" : "↓" : "⇅"), 3)) : I("", !0)
6316
6319
  ])
6317
6320
  ], 12, Hu))), 128)),
6318
6321
  t.pivotResult.rowTotals.length > 0 && Y === 0 ? (i(), u("th", {
@@ -6327,30 +6330,30 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6327
6330
  var Y;
6328
6331
  return i(), u("tr", {
6329
6332
  key: L,
6330
- class: ce(["vpg-data-row", { "vpg-subtotal-row": (Y = t.pivotResult.rowMeta[L]) == null ? void 0 : Y.isSubtotal }])
6333
+ class: ue(["vpg-data-row", { "vpg-subtotal-row": (Y = t.pivotResult.rowMeta[L]) == null ? void 0 : Y.isSubtotal }])
6331
6334
  }, [
6332
- (i(!0), u(Q, null, ve(t.pivotResult.rowHeaders[L], (oe, ue) => (i(), u("th", {
6333
- key: `row-${L}-${ue}`,
6335
+ (i(!0), u(Q, null, ve(t.pivotResult.rowHeaders[L], (oe, ce) => (i(), u("th", {
6336
+ key: `row-${L}-${ce}`,
6334
6337
  class: "vpg-row-header-cell",
6335
- style: qe({ width: `${Ge.value}px`, minWidth: "80px", left: `${Ze(ue)}px` })
6338
+ style: qe({ width: `${Ge.value}px`, minWidth: "80px", left: `${Ze(ce)}px` })
6336
6339
  }, [
6337
- t.enableDrillDown !== !1 && Ye(L, ue) ? (i(), u("span", {
6340
+ t.enableDrillDown !== !1 && Ye(L, ce) ? (i(), u("span", {
6338
6341
  key: 0,
6339
6342
  class: "vpg-collapse-toggle",
6340
- onClick: Le((he) => st(Ye(L, ue), he), ["stop"])
6341
- }, S(Ye(L, ue).isCollapsed ? "▸" : "▾"), 9, Gu)) : I("", !0),
6343
+ onClick: Le((he) => st(Ye(L, ce), he), ["stop"])
6344
+ }, S(Ye(L, ce).isCollapsed ? "▸" : "▾"), 9, Gu)) : I("", !0),
6342
6345
  de(" " + S(oe), 1)
6343
6346
  ], 4))), 128)),
6344
- (i(!0), u(Q, null, ve(t.pivotResult.data[L], (oe, ue) => (i(), u("td", {
6345
- key: ue,
6346
- class: ce(["vpg-data-cell", [
6347
- N(K.value.indexOf(L), ue) && "selected",
6347
+ (i(!0), u(Q, null, ve(t.pivotResult.data[L], (oe, ce) => (i(), u("td", {
6348
+ key: ce,
6349
+ class: ue(["vpg-data-cell", [
6350
+ N(K.value.indexOf(L), ce) && "selected",
6348
6351
  oe.value === null && "vpg-is-null"
6349
6352
  ]]),
6350
6353
  style: qe({ width: `${xe.value}px` }),
6351
- onMousedown: (he) => F(K.value.indexOf(L), ue, he),
6352
- onMouseenter: (he) => H(K.value.indexOf(L), ue),
6353
- onDblclick: (he) => t.enableDrillThrough !== !1 && vt(L, ue)
6354
+ onMousedown: (he) => F(K.value.indexOf(L), ce, he),
6355
+ onMouseenter: (he) => H(K.value.indexOf(L), ce),
6356
+ onDblclick: (he) => t.enableDrillThrough !== !1 && vt(L, ce)
6354
6357
  }, S(oe.formattedValue), 47, Yu))), 128)),
6355
6358
  t.pivotResult.rowTotals[L] ? (i(), u("td", {
6356
6359
  key: 0,
@@ -6422,7 +6425,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6422
6425
  ])])),
6423
6426
  _(c) && _(d) ? (i(), u("div", {
6424
6427
  key: 2,
6425
- class: ce(["vpg-watermark", { "vpg-demo-mode": _(C) }])
6428
+ class: ue(["vpg-watermark", { "vpg-demo-mode": _(C) }])
6426
6429
  }, [
6427
6430
  _(C) ? (i(), u(Q, { key: 0 }, [
6428
6431
  b[35] || (b[35] = e("span", { class: "vpg-demo-badge" }, "DEMO", -1)),
@@ -6635,7 +6638,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6635
6638
  addColumnField: L,
6636
6639
  removeColumnField: Y,
6637
6640
  addValueField: oe,
6638
- removeValueField: ue,
6641
+ removeValueField: ce,
6639
6642
  updateValueFieldAggregation: he,
6640
6643
  clearConfig: Ae,
6641
6644
  autoSuggestConfig: Ve,
@@ -6801,7 +6804,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
6801
6804
  function ua(g) {
6802
6805
  He.value = He.value.filter((q) => q.id !== g), Ct(He.value);
6803
6806
  const r = `calc:${g}`, te = st.value.find((q) => q.field === r);
6804
- te && ue(r, te.aggregation);
6807
+ te && ce(r, te.aggregation);
6805
6808
  }
6806
6809
  function ca(g) {
6807
6810
  He.value = He.value.map((r) => r.id === g.id ? g : r), Ct(He.value);
@@ -7055,7 +7058,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7055
7058
  return (g, r) => {
7056
7059
  var te;
7057
7060
  return i(), u("div", {
7058
- class: ce(["vpg-data-grid", [
7061
+ class: ue(["vpg-data-grid", [
7059
7062
  `vpg-font-${T.value}`,
7060
7063
  `vpg-theme-${p.value}`,
7061
7064
  { "vpg-striped": t.stripedRows },
@@ -7091,7 +7094,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7091
7094
  t.showPivot ? (i(), u("div", gc, [
7092
7095
  k.value ? (i(), u("button", {
7093
7096
  key: 0,
7094
- class: ce(["vpg-view-btn vpg-ai-btn", { active: be.value === "ai" }]),
7097
+ class: ue(["vpg-view-btn vpg-ai-btn", { active: be.value === "ai" }]),
7095
7098
  onClick: r[0] || (r[0] = (q) => be.value = "ai")
7096
7099
  }, [...r[26] || (r[26] = [
7097
7100
  e("svg", {
@@ -7132,7 +7135,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7132
7135
  e("span", { class: "vpg-pro-badge" }, "Pro", -1)
7133
7136
  ])])) : I("", !0),
7134
7137
  e("button", {
7135
- class: ce(["vpg-view-btn", { active: be.value === "grid" }]),
7138
+ class: ue(["vpg-view-btn", { active: be.value === "grid" }]),
7136
7139
  onClick: r[2] || (r[2] = (q) => be.value = "grid")
7137
7140
  }, [...r[28] || (r[28] = [
7138
7141
  e("svg", {
@@ -7151,7 +7154,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7151
7154
  de(" Grid ", -1)
7152
7155
  ])], 2),
7153
7156
  e("button", {
7154
- class: ce(["vpg-view-btn vpg-pivot-btn", { active: be.value === "pivot" }]),
7157
+ class: ue(["vpg-view-btn vpg-pivot-btn", { active: be.value === "pivot" }]),
7155
7158
  onClick: r[3] || (r[3] = (q) => be.value = "pivot")
7156
7159
  }, [...r[29] || (r[29] = [
7157
7160
  e("svg", {
@@ -7170,7 +7173,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7170
7173
  de(" Pivot ", -1)
7171
7174
  ])], 2),
7172
7175
  e("button", {
7173
- class: ce(["vpg-view-btn vpg-chart-btn", { active: be.value === "chart", "vpg-pro-feature": !_(c) }]),
7176
+ class: ue(["vpg-view-btn vpg-chart-btn", { active: be.value === "chart", "vpg-pro-feature": !_(c) }]),
7174
7177
  title: _(c) ? "Chart Builder" : "Chart Builder (Pro feature)",
7175
7178
  onClick: r[4] || (r[4] = (q) => _(c) ? be.value = "chart" : null)
7176
7179
  }, [
@@ -7263,7 +7266,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7263
7266
  e("div", bc, [
7264
7267
  (i(), u(Q, null, ve(A, (q) => e("button", {
7265
7268
  key: q.value,
7266
- class: ce(["vpg-font-size-btn", { active: T.value === q.value }]),
7269
+ class: ue(["vpg-font-size-btn", { active: T.value === q.value }]),
7267
7270
  onClick: (ye) => T.value = q.value
7268
7271
  }, S(q.label), 11, Cc)), 64))
7269
7272
  ])
@@ -7284,7 +7287,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7284
7287
  ])) : I("", !0),
7285
7288
  ea.value ? (i(), u("button", {
7286
7289
  key: 2,
7287
- class: ce(["vpg-reset-data-btn", { "vpg-loading-btn": gt.value }]),
7290
+ class: ue(["vpg-reset-data-btn", { "vpg-loading-btn": gt.value }]),
7288
7291
  disabled: gt.value,
7289
7292
  title: "Reset to full dataset",
7290
7293
  onClick: ta
@@ -7312,7 +7315,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7312
7315
  ], 64)) : I("", !0),
7313
7316
  be.value === "pivot" && _(a) ? (i(), u(Q, { key: 2 }, [
7314
7317
  e("button", {
7315
- class: ce(["vpg-config-toggle", { active: mt.value }]),
7318
+ class: ue(["vpg-config-toggle", { active: mt.value }]),
7316
7319
  onClick: r[9] || (r[9] = (q) => mt.value = !mt.value)
7317
7320
  }, [
7318
7321
  r[39] || (r[39] = e("svg", {
@@ -7411,7 +7414,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7411
7414
  ])])) : I("", !0),
7412
7415
  t.enableExport && be.value === "pivot" && _(wt) ? (i(), u("button", {
7413
7416
  key: 3,
7414
- class: ce(["vpg-export-btn", { "vpg-export-btn-disabled": !_(m) }]),
7417
+ class: ue(["vpg-export-btn", { "vpg-export-btn-disabled": !_(m) }]),
7415
7418
  disabled: !_(m),
7416
7419
  title: _(m) ? "Export Pivot to CSV" : "Export Pivot to CSV (Pro feature)",
7417
7420
  onClick: r[11] || (r[11] = (q) => _(m) && nn())
@@ -7506,7 +7509,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7506
7509
  e("tr", null, [
7507
7510
  (i(!0), u(Q, null, ve(_(R), (q, ye) => (i(), u("th", {
7508
7511
  key: q,
7509
- class: ce(["vpg-header-cell", {
7512
+ class: ue(["vpg-header-cell", {
7510
7513
  "vpg-has-filter": _(W)(q),
7511
7514
  "vpg-is-sorted": _(h)(q) !== null,
7512
7515
  "vpg-is-active": Fe.value === q
@@ -7583,7 +7586,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7583
7586
  }, [
7584
7587
  (i(!0), u(Q, null, ve(_(R), (Ce, Se) => (i(), u("td", {
7585
7588
  key: Ce,
7586
- class: ce(["vpg-cell", {
7589
+ class: ue(["vpg-cell", {
7587
7590
  "vpg-selected": Da(ye, Se),
7588
7591
  "vpg-is-number": _(V)(Ce).type === "number"
7589
7592
  }]),
@@ -7619,14 +7622,14 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7619
7622
  onAddColumnField: _(L),
7620
7623
  onRemoveColumnField: _(Y),
7621
7624
  onAddValueField: _(oe),
7622
- onRemoveValueField: _(ue),
7625
+ onRemoveValueField: _(ce),
7623
7626
  onAddCalculatedField: ia,
7624
7627
  onRemoveCalculatedField: ua,
7625
7628
  onUpdateCalculatedField: ca
7626
7629
  }, null, 8, ["available-fields", "row-fields", "column-fields", "value-fields", "show-row-totals", "show-column-totals", "calculated-fields", "theme", "onClearConfig", "onUpdateAggregation", "onAddRowField", "onRemoveRowField", "onAddColumnField", "onRemoveColumnField", "onAddValueField", "onRemoveValueField"])
7627
7630
  ])) : I("", !0),
7628
7631
  e("div", {
7629
- class: ce(["vpg-pivot-main", { "vpg-full-width": !mt.value }])
7632
+ class: ue(["vpg-pivot-main", { "vpg-full-width": !mt.value }])
7630
7633
  }, [
7631
7634
  We(cc, {
7632
7635
  "row-fields": _(Pe),
@@ -7648,7 +7651,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7648
7651
  onAddColumnField: _(L),
7649
7652
  onRemoveColumnField: _(Y),
7650
7653
  onAddValueField: _(oe),
7651
- onRemoveValueField: _(ue),
7654
+ onRemoveValueField: _(ce),
7652
7655
  onUpdateAggregation: _(he),
7653
7656
  onReorderRowFields: pa,
7654
7657
  onReorderColumnFields: ga,
@@ -7661,8 +7664,9 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7661
7664
  "row-fields": _(Pe),
7662
7665
  "column-fields": _(Ye),
7663
7666
  "value-fields": _(st),
7667
+ theme: p.value,
7664
7668
  onClose: r[17] || (r[17] = (q) => x.value = !1)
7665
- }, null, 8, ["show", "result", "row-fields", "column-fields", "value-fields"])
7669
+ }, null, 8, ["show", "result", "row-fields", "column-fields", "value-fields", "theme"])
7666
7670
  ], 2)
7667
7671
  ])) : be.value === "chart" ? (i(), u("div", Gc, [
7668
7672
  Ze.value && Ze.value.length > 0 ? (i(), u("div", Yc, [
@@ -7822,7 +7826,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7822
7826
  rel: "noopener"
7823
7827
  }, "Get License →", -1)
7824
7828
  ])])) : _(l) ? (i(), u("span", md, [...r[71] || (r[71] = [
7825
- _t('<a href="https://tiny-pivot.com" target="_blank" rel="noopener" data-v-4a7df8fd><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-4a7df8fd><rect x="3" y="3" width="7" height="7" data-v-4a7df8fd></rect><rect x="14" y="3" width="7" height="7" data-v-4a7df8fd></rect><rect x="14" y="14" width="7" height="7" data-v-4a7df8fd></rect><rect x="3" y="14" width="7" height="7" data-v-4a7df8fd></rect></svg> Powered by TinyPivot </a>', 1)
7829
+ _t('<a href="https://tiny-pivot.com" target="_blank" rel="noopener" data-v-3d5c6881><svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" data-v-3d5c6881><rect x="3" y="3" width="7" height="7" data-v-3d5c6881></rect><rect x="14" y="3" width="7" height="7" data-v-3d5c6881></rect><rect x="14" y="14" width="7" height="7" data-v-3d5c6881></rect><rect x="3" y="14" width="7" height="7" data-v-3d5c6881></rect></svg> Powered by TinyPivot </a>', 1)
7826
7830
  ])])) : I("", !0)
7827
7831
  ])
7828
7832
  ]),
@@ -7870,7 +7874,7 @@ const gi = { class: "vpg-modal vpg-drill-modal" }, mi = { class: "vpg-modal-head
7870
7874
  ], 6);
7871
7875
  };
7872
7876
  }
7873
- }), $d = /* @__PURE__ */ lt(fd, [["__scopeId", "data-v-4a7df8fd"]]);
7877
+ }), $d = /* @__PURE__ */ lt(fd, [["__scopeId", "data-v-3d5c6881"]]);
7874
7878
  export {
7875
7879
  si as ColumnFilter,
7876
7880
  $d as DataGrid,