@feedmepos/mf-report 5.27.29 → 5.27.30

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.
Files changed (27) hide show
  1. package/dist/{App-l8Aceee_.js → App-JSn8-WOL.js} +4 -4
  2. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BkYni0aZ.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CECvIq-3.js} +1 -1
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-jPIgmSCZ.js → Default.vue_vue_type_script_setup_true_lang-CCNr-LfB.js} +1 -1
  4. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DOmAQ8R-.js +5202 -0
  5. package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CR2ONrnv.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CsiqgyJ3.js} +1668 -1579
  6. package/dist/{InsightView-CJfyGUzf.js → InsightView-D2Wg7-D-.js} +4 -4
  7. package/dist/{Integration-DlcF7Oif.js → Integration-DobHR0Ze.js} +3 -3
  8. package/dist/{Integrations-OhCa0aQD.js → Integrations-Cg5r8is7.js} +2 -2
  9. package/dist/{Layout-DNlAstgk.js → Layout-DNoyS3w3.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-CjLlwzug.js → MenuTab.vue_vue_type_script_setup_true_lang-DJYJVoGs.js} +4 -4
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-aTg8zXAA.js → NavigationTab.vue_vue_type_script_setup_true_lang-BYtqoVXC.js} +3 -3
  12. package/dist/{OverviewView-BZ0HTUHd.js → OverviewView-D8J5qVAo.js} +4 -4
  13. package/dist/{Report-DnRk-sIQ.js → Report-BlyDrleN.js} +3 -3
  14. package/dist/{ReportEditor-BRDvQKC2.js → ReportEditor-7oGk3LwA.js} +6 -6
  15. package/dist/{ReportView-B0Nqcj3K.js → ReportView-GFX5Kixp.js} +6 -6
  16. package/dist/{Setting-CeFnRcil.js → Setting-BtEZJlne.js} +3 -3
  17. package/dist/{Template-B3SzVtg0.js → Template-C3PyEw-X.js} +3 -3
  18. package/dist/{TileEditor-xPdSEH-m.js → TileEditor-DpfZbID8.js} +898 -883
  19. package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-Bi7AYMPK.js → TileGrid.vue_vue_type_script_setup_true_lang-1nf-8VJu.js} +1 -1
  20. package/dist/{TransitionFade-Civd5uxV.js → TransitionFade-C1pF2CT9.js} +79 -72
  21. package/dist/{app-2AZqzUGz.js → app-C-3cvSLw.js} +12 -12
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-D13F_saP.js → formatChartData.worker-DmiQseZ0.js} +47 -47
  24. package/dist/assets/{processTableData.worker-CklfE7Ff.js → processTableData.worker-CKjQzarL.js} +47 -47
  25. package/dist/{useRestaurantPermission-BtkJ7Tdr.js → useRestaurantPermission-C_gQOsAi.js} +1 -1
  26. package/package.json +1 -1
  27. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang--vp1Ymn7.js +0 -5119
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as U, reactive as E, resolveComponent as b, createElementBlock as a, openBlock as s, Fragment as h, renderList as I, createBlock as g, createCommentVNode as W, normalizeStyle as F, normalizeClass as f, withCtx as V, createVNode as c, createElementVNode as z, withDirectives as H, vShow as K } from "vue";
2
- import { _ as D, c as P, a as j, b as q, t as A } from "./DynamicWidget.vue_vue_type_script_setup_true_lang--vp1Ymn7.js";
2
+ import { _ as D, c as P, a as j, b as q, t as A } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DOmAQ8R-.js";
3
3
  import { useBreakpoints as J } from "@feedmepos/ui-library";
4
4
  const O = { class: "flex-1 min-h-0 overflow-y-auto" }, Q = {
5
5
  key: 0,
@@ -1,15 +1,15 @@
1
- import { defineComponent as We, onBeforeMount as ro, onBeforeUnmount as io, resolveComponent as z, createElementBlock as k, openBlock as D, normalizeStyle as Qt, unref as P, renderSlot as pt, createVNode as G, createElementVNode as A, toDisplayString as j, TransitionGroup as ao, nextTick as rn, h as cn, mergeModels as kt, useModel as tt, computed as S, Fragment as Ne, renderList as It, createBlock as be, normalizeClass as Ot, withCtx as ce, Transition as Zt, createCommentVNode as U, ref as q, withDirectives as lo, withKeys as so, withModifiers as St, vModelText as uo, watch as Ke, createTextVNode as co } from "vue";
1
+ import { defineComponent as We, onBeforeMount as ro, onBeforeUnmount as io, resolveComponent as z, createElementBlock as k, openBlock as D, normalizeStyle as Qt, unref as P, renderSlot as pt, createVNode as G, createElementVNode as A, toDisplayString as K, TransitionGroup as ao, nextTick as rn, h as cn, mergeModels as kt, useModel as tt, computed as S, Fragment as Ne, renderList as It, createBlock as be, normalizeClass as Ot, withCtx as ce, Transition as Zt, createCommentVNode as U, ref as q, withDirectives as lo, withKeys as so, withModifiers as St, vModelText as uo, watch as je, createTextVNode as co } from "vue";
2
2
  import { u as Lt, a as fo, _ as an } from "./_plugin-vue_export-helper-onplcgja.js";
3
3
  import { useCoreStore as po } from "@feedmepos/mf-common";
4
4
  import { storeToRefs as In } from "pinia";
5
5
  import { useRoute as mo } from "vue-router";
6
- import { W as xe, Q as ho, I as rt, t as On, v as Sn, d as Ge, g as go, q as vo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CR2ONrnv.js";
7
- import { p as bo, d as Cn, a as Rn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-BkYni0aZ.js";
8
- import { u as yo, F as Eo, r as _o, d as Ut } from "./app-2AZqzUGz.js";
6
+ import { W as xe, Q as ho, I as rt, t as On, v as Sn, d as Ge, g as go, q as vo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CsiqgyJ3.js";
7
+ import { p as bo, d as Cn, a as Rn } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CECvIq-3.js";
8
+ import { u as yo, F as Eo, r as _o, d as Ut } from "./app-C-3cvSLw.js";
9
9
  import { a as dn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
10
10
  import { r as fn } from "./i18n-CI_sQ5d_.js";
11
11
  import { useSnackbar as To } from "@feedmepos/ui-library";
12
- import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang--vp1Ymn7.js";
12
+ import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-DOmAQ8R-.js";
13
13
  const wo = {
14
14
  key: 0,
15
15
  class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
@@ -31,7 +31,7 @@ const wo = {
31
31
  }, [
32
32
  P(o) ? (D(), k("div", wo, [
33
33
  G(l, { size: "xl" }),
34
- A("span", xo, j(P(e)("report.common.isLoading")), 1)
34
+ A("span", xo, K(P(e)("report.common.isLoading")), 1)
35
35
  ])) : pt(i.$slots, "default", { key: 1 })
36
36
  ], 4);
37
37
  };
@@ -381,16 +381,16 @@ function Lo(t) {
381
381
  function Mo(t, e, n, o) {
382
382
  return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * o.animation;
383
383
  }
384
- var je = [], Bt = {
384
+ var Ke = [], Bt = {
385
385
  initializeByDefault: !0
386
386
  }, ht = {
387
387
  mount: function(e) {
388
388
  for (var n in Bt)
389
389
  Bt.hasOwnProperty(n) && !(n in e) && (e[n] = Bt[n]);
390
- je.forEach(function(o) {
390
+ Ke.forEach(function(o) {
391
391
  if (o.pluginName === e.pluginName)
392
392
  throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
393
- }), je.push(e);
393
+ }), Ke.push(e);
394
394
  },
395
395
  pluginEvent: function(e, n, o) {
396
396
  var r = this;
@@ -398,7 +398,7 @@ var je = [], Bt = {
398
398
  r.eventCanceled = !0;
399
399
  };
400
400
  var i = e + "Global";
401
- je.forEach(function(a) {
401
+ Ke.forEach(function(a) {
402
402
  n[a.pluginName] && (n[a.pluginName][i] && n[a.pluginName][i](Oe({
403
403
  sortable: n
404
404
  }, o)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](Oe({
@@ -407,7 +407,7 @@ var je = [], Bt = {
407
407
  });
408
408
  },
409
409
  initializePlugins: function(e, n, o, r) {
410
- je.forEach(function(l) {
410
+ Ke.forEach(function(l) {
411
411
  var s = l.pluginName;
412
412
  if (!(!e.options[s] && !l.initializeByDefault)) {
413
413
  var u = new l(e, n, e.options);
@@ -422,13 +422,13 @@ var je = [], Bt = {
422
422
  },
423
423
  getEventProperties: function(e, n) {
424
424
  var o = {};
425
- return je.forEach(function(r) {
425
+ return Ke.forEach(function(r) {
426
426
  typeof r.eventProperties == "function" && ke(o, r.eventProperties.call(n[r.pluginName], e));
427
427
  }), o;
428
428
  },
429
429
  modifyOption: function(e, n, o) {
430
430
  var r;
431
- return je.forEach(function(i) {
431
+ return Ke.forEach(function(i) {
432
432
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[n] == "function" && (r = i.optionListeners[n].call(e[i.pluginName], o));
433
433
  }), r;
434
434
  }
@@ -986,7 +986,7 @@ T.prototype = /** @lends Sortable.prototype */
986
986
  */
987
987
  toArray: function() {
988
988
  for (var e = [], n, o = this.el.children, r = 0, i = o.length, a = this.options; r < i; r++)
989
- n = o[r], De(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || jo(n));
989
+ n = o[r], De(n, a.draggable, this.el, !1) && e.push(n.getAttribute(a.dataIdAttr) || Ko(n));
990
990
  return e;
991
991
  },
992
992
  /**
@@ -1091,14 +1091,14 @@ function zo(t, e, n, o, r, i, a, l) {
1091
1091
  else if (dt === 1 ? s < f + wt : s > c - wt)
1092
1092
  return -dt;
1093
1093
  } else if (s > f + u * (1 - r) / 2 && s < c - u * (1 - r) / 2)
1094
- return Ko(e);
1094
+ return jo(e);
1095
1095
  }
1096
1096
  return E = E || a, E && (s < f + u * i / 2 || s > c - u * i / 2) ? s > f + u / 2 ? 1 : -1 : 0;
1097
1097
  }
1098
- function Ko(t) {
1098
+ function jo(t) {
1099
1099
  return ve(m) < ve(t) ? 1 : -1;
1100
1100
  }
1101
- function jo(t) {
1101
+ function Ko(t) {
1102
1102
  for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
1103
1103
  o += e.charCodeAt(n);
1104
1104
  return o.toString(36);
@@ -1154,7 +1154,7 @@ T.create = function(t, e) {
1154
1154
  return new T(t, e);
1155
1155
  };
1156
1156
  T.version = So;
1157
- var K = [], at, tn, nn = !1, Gt, zt, At, lt;
1157
+ var j = [], at, tn, nn = !1, Gt, zt, At, lt;
1158
1158
  function Qo() {
1159
1159
  function t() {
1160
1160
  this.defaults = {
@@ -1180,7 +1180,7 @@ function Qo() {
1180
1180
  this.sortable.nativeDraggable ? C(document, "dragover", this._handleAutoScroll) : (C(document, "pointermove", this._handleFallbackAutoScroll), C(document, "touchmove", this._handleFallbackAutoScroll), C(document, "mousemove", this._handleFallbackAutoScroll)), _n(), Dt(), Ao();
1181
1181
  },
1182
1182
  nulling: function() {
1183
- At = tn = at = nn = lt = Gt = zt = null, K.length = 0;
1183
+ At = tn = at = nn = lt = Gt = zt = null, j.length = 0;
1184
1184
  },
1185
1185
  _handleFallbackAutoScroll: function(n) {
1186
1186
  this._handleAutoScroll(n, !0);
@@ -1188,18 +1188,18 @@ function Qo() {
1188
1188
  _handleAutoScroll: function(n, o) {
1189
1189
  var r = this, i = (n.touches ? n.touches[0] : n).clientX, a = (n.touches ? n.touches[0] : n).clientY, l = document.elementFromPoint(i, a);
1190
1190
  if (At = n, o || this.options.forceAutoScrollFallback || mt || Le || st) {
1191
- Kt(n, this.options, l, o);
1191
+ jt(n, this.options, l, o);
1192
1192
  var s = Be(l, !0);
1193
1193
  nn && (!lt || i !== Gt || a !== zt) && (lt && _n(), lt = setInterval(function() {
1194
1194
  var u = Be(document.elementFromPoint(i, a), !0);
1195
- u !== s && (s = u, Dt()), Kt(n, r.options, u, o);
1195
+ u !== s && (s = u, Dt()), jt(n, r.options, u, o);
1196
1196
  }, 10), Gt = i, zt = a);
1197
1197
  } else {
1198
1198
  if (!this.options.bubbleScroll || Be(l, !0) === Ie()) {
1199
1199
  Dt();
1200
1200
  return;
1201
1201
  }
1202
- Kt(n, this.options, Be(l, !1), !1);
1202
+ jt(n, this.options, Be(l, !1), !1);
1203
1203
  }
1204
1204
  }
1205
1205
  }, ke(t, {
@@ -1208,14 +1208,14 @@ function Qo() {
1208
1208
  });
1209
1209
  }
1210
1210
  function Dt() {
1211
- K.forEach(function(t) {
1211
+ j.forEach(function(t) {
1212
1212
  clearInterval(t.pid);
1213
- }), K = [];
1213
+ }), j = [];
1214
1214
  }
1215
1215
  function _n() {
1216
1216
  clearInterval(lt);
1217
1217
  }
1218
- var Kt = kn(function(t, e, n, o) {
1218
+ var jt = kn(function(t, e, n, o) {
1219
1219
  if (e.scroll) {
1220
1220
  var r = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, a = e.scrollSensitivity, l = e.scrollSpeed, s = Ie(), u = !1, f;
1221
1221
  tn !== n && (tn = n, Dt(), at = e.scroll, f = e.scrollFn, at === !0 && (at = Be(n, !0)));
@@ -1224,13 +1224,13 @@ var Kt = kn(function(t, e, n, o) {
1224
1224
  var b = E, y = ee(b), g = y.top, L = y.bottom, H = y.left, N = y.right, $ = y.width, B = y.height, M = void 0, X = void 0, de = b.scrollWidth, Se = b.scrollHeight, oe = _(b), ye = b.scrollLeft, fe = b.scrollTop;
1225
1225
  b === s ? (M = $ < de && (oe.overflowX === "auto" || oe.overflowX === "scroll" || oe.overflowX === "visible"), X = B < Se && (oe.overflowY === "auto" || oe.overflowY === "scroll" || oe.overflowY === "visible")) : (M = $ < de && (oe.overflowX === "auto" || oe.overflowX === "scroll"), X = B < Se && (oe.overflowY === "auto" || oe.overflowY === "scroll"));
1226
1226
  var Ce = M && (Math.abs(N - r) <= a && ye + $ < de) - (Math.abs(H - r) <= a && !!ye), Q = X && (Math.abs(L - i) <= a && fe + B < Se) - (Math.abs(g - i) <= a && !!fe);
1227
- if (!K[c])
1227
+ if (!j[c])
1228
1228
  for (var Ee = 0; Ee <= c; Ee++)
1229
- K[Ee] || (K[Ee] = {});
1230
- (K[c].vx != Ce || K[c].vy != Q || K[c].el !== b) && (K[c].el = b, K[c].vx = Ce, K[c].vy = Q, clearInterval(K[c].pid), (Ce != 0 || Q != 0) && (u = !0, K[c].pid = setInterval((function() {
1229
+ j[Ee] || (j[Ee] = {});
1230
+ (j[c].vx != Ce || j[c].vy != Q || j[c].el !== b) && (j[c].el = b, j[c].vx = Ce, j[c].vy = Q, clearInterval(j[c].pid), (Ce != 0 || Q != 0) && (u = !0, j[c].pid = setInterval((function() {
1231
1231
  o && this.layer === 0 && T.active._onTouchMove(At);
1232
- var Re = K[this.layer].vy ? K[this.layer].vy * l : 0, d = K[this.layer].vx ? K[this.layer].vx * l : 0;
1233
- typeof f == "function" && f.call(T.dragged.parentNode[ge], d, Re, t, At, K[this.layer].el) !== "continue" || Ln(K[this.layer].el, d, Re);
1232
+ var Re = j[this.layer].vy ? j[this.layer].vy * l : 0, d = j[this.layer].vx ? j[this.layer].vx * l : 0;
1233
+ typeof f == "function" && f.call(T.dragged.parentNode[ge], d, Re, t, At, j[this.layer].el) !== "continue" || Ln(j[this.layer].el, d, Re);
1234
1234
  }).bind({
1235
1235
  layer: c
1236
1236
  }), 24))), c++;
@@ -1282,7 +1282,7 @@ ke(un, {
1282
1282
  });
1283
1283
  T.mount(new Qo());
1284
1284
  T.mount(un, sn);
1285
- function jt(t) {
1285
+ function Kt(t) {
1286
1286
  t.parentElement !== null && t.parentElement.removeChild(t);
1287
1287
  }
1288
1288
  function Tn(t, e, n) {
@@ -1447,7 +1447,7 @@ function sr({ $attrs: t, componentData: e = {} }) {
1447
1447
  };
1448
1448
  }
1449
1449
  function ur({ $attrs: t, callBackBuilder: e }) {
1450
- const n = zn(Kn(t));
1450
+ const n = zn(jn(t));
1451
1451
  Object.entries(e).forEach(([r, i]) => {
1452
1452
  on[r].forEach((a) => {
1453
1453
  n[`on${a}`] = i(a);
@@ -1459,7 +1459,7 @@ function ur({ $attrs: t, callBackBuilder: e }) {
1459
1459
  draggable: o
1460
1460
  };
1461
1461
  }
1462
- function Kn(t) {
1462
+ function jn(t) {
1463
1463
  return Object.entries(t).filter(([e, n]) => !Gn(e)).map(([e, n]) => [nr(e), n]).filter(([e, n]) => !rr(e));
1464
1464
  }
1465
1465
  const wn = ({ el: t }) => t, cr = (t, e) => t.__draggable_context = e, xn = (t) => t.__draggable_context;
@@ -1538,7 +1538,7 @@ function hr({ $slots: t, tag: e, realList: n, getKey: o }) {
1538
1538
  const r = pr({ $slots: t, realList: n, getKey: o }), i = mr(e);
1539
1539
  return new dr({ nodes: r, root: i, realList: n });
1540
1540
  }
1541
- function jn(t, e) {
1541
+ function Kn(t, e) {
1542
1542
  rn(() => this.$emit(t.toLowerCase(), e));
1543
1543
  }
1544
1544
  function qn(t) {
@@ -1550,7 +1550,7 @@ function qn(t) {
1550
1550
  function gr(t) {
1551
1551
  const e = qn.call(this, t);
1552
1552
  return (n, o) => {
1553
- e.call(this, n, o), jn.call(this, t, n);
1553
+ e.call(this, n, o), Kn.call(this, t, n);
1554
1554
  };
1555
1555
  }
1556
1556
  let qt = null;
@@ -1630,7 +1630,7 @@ const vr = {
1630
1630
  $attrs: t,
1631
1631
  callBackBuilder: {
1632
1632
  manageAndEmit: (i) => gr.call(this, i),
1633
- emit: (i) => jn.bind(this, i),
1633
+ emit: (i) => Kn.bind(this, i),
1634
1634
  manage: (i) => qn.call(this, i)
1635
1635
  }
1636
1636
  }), r = e.nodeType === 1 ? e : e.parentElement;
@@ -1656,7 +1656,7 @@ const vr = {
1656
1656
  $attrs: {
1657
1657
  handler(t) {
1658
1658
  const { _sortable: e } = this;
1659
- e && Kn(t).forEach(([n, o]) => {
1659
+ e && jn(t).forEach(([n, o]) => {
1660
1660
  e.option(n, o);
1661
1661
  });
1662
1662
  },
@@ -1709,7 +1709,7 @@ const vr = {
1709
1709
  const e = t.item._underlying_vm_;
1710
1710
  if (e === void 0)
1711
1711
  return;
1712
- jt(t.item);
1712
+ Kt(t.item);
1713
1713
  const n = this.getVmIndexFromDomIndex(t.newIndex);
1714
1714
  this.spliceList(n, 0, e);
1715
1715
  const o = { element: e, newIndex: n };
@@ -1717,7 +1717,7 @@ const vr = {
1717
1717
  },
1718
1718
  onDragRemove(t) {
1719
1719
  if (Tn(this.$el, t.item, t.oldIndex), t.pullMode === "clone") {
1720
- jt(t.clone);
1720
+ Kt(t.clone);
1721
1721
  return;
1722
1722
  }
1723
1723
  const { index: e, element: n } = this.context;
@@ -1726,7 +1726,7 @@ const vr = {
1726
1726
  this.emitChanges({ removed: o });
1727
1727
  },
1728
1728
  onDragUpdate(t) {
1729
- jt(t.item), Tn(t.from, t.item, t.oldIndex);
1729
+ Kt(t.item), Tn(t.from, t.item, t.oldIndex);
1730
1730
  const e = this.context.index, n = this.getVmIndexFromDomIndex(t.newIndex);
1731
1731
  this.updatePosition(e, n);
1732
1732
  const o = { element: this.context.element, oldIndex: e, newIndex: n };
@@ -1845,7 +1845,7 @@ const vr = {
1845
1845
  }, null, 8, ["name", "size"]),
1846
1846
  A("span", {
1847
1847
  class: Ot(o.isList ? "" : "flex items-center text-center leading-[24px] h-[48px]")
1848
- }, j(u.label), 3)
1848
+ }, K(u.label), 3)
1849
1849
  ]),
1850
1850
  _: 2
1851
1851
  }, 1032, ["class", "onClick"]))), 128))
@@ -2597,7 +2597,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2597
2597
  ref: f,
2598
2598
  class: "h-full shrink-0 overflow-hidden select-none text-right min-w-[32px] px-2 py-1 text-fm-color-neutral-gray-300 fm-typo-en-body-lg-400 border-r leading-normal"
2599
2599
  }, [
2600
- (D(!0), k(Ne, null, It(oe.value, (p) => (D(), k("div", { key: p }, j(p), 1))), 128))
2600
+ (D(!0), k(Ne, null, It(oe.value, (p) => (D(), k("div", { key: p }, K(p), 1))), 128))
2601
2601
  ], 512),
2602
2602
  lo(A("textarea", {
2603
2603
  ref_key: "textareaRef",
@@ -2621,8 +2621,8 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2621
2621
  key: 0,
2622
2622
  size: "md"
2623
2623
  })) : U("", !0),
2624
- !h.isValidating && h.validationResult && !h.validationResult.valid ? (D(), k("p", Or, j((re = h.validationResult.error) == null ? void 0 : re.message), 1)) : U("", !0),
2625
- !h.isValidating && h.validationResult && h.validationResult.valid ? (D(), k("p", Sr, j(h.validFormulaLabel), 1)) : U("", !0)
2624
+ !h.isValidating && h.validationResult && !h.validationResult.valid ? (D(), k("p", Or, K((re = h.validationResult.error) == null ? void 0 : re.message), 1)) : U("", !0),
2625
+ !h.isValidating && h.validationResult && h.validationResult.valid ? (D(), k("p", Sr, K(h.validFormulaLabel), 1)) : U("", !0)
2626
2626
  ]),
2627
2627
  Ye.value ? (D(), k("div", {
2628
2628
  key: 0,
@@ -2634,25 +2634,25 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2634
2634
  }, [
2635
2635
  pe.value ? (D(), k("div", Cr, [
2636
2636
  A("div", Rr, [
2637
- A("p", Fr, j(v.value.value) + "() ", 1),
2637
+ A("p", Fr, K(v.value.value) + "() ", 1),
2638
2638
  I.value ? (D(), be(F, {
2639
2639
  key: 0,
2640
2640
  compact: !0,
2641
2641
  class: Ot(n(I.value))
2642
2642
  }, {
2643
2643
  default: ce(() => [
2644
- A("p", Nr, j(e(I.value)), 1)
2644
+ A("p", Nr, K(e(I.value)), 1)
2645
2645
  ]),
2646
2646
  _: 1
2647
2647
  }, 8, ["class"])) : U("", !0)
2648
2648
  ]),
2649
- A("p", Ar, j(v.value.description), 1),
2649
+ A("p", Ar, K(v.value.description), 1),
2650
2650
  v.value.example ? (D(), k(Ne, { key: 0 }, [
2651
- A("p", kr, j(P(r)("report.formulaInput.section.example")), 1),
2652
- A("p", Lr, j(v.value.example), 1),
2651
+ A("p", kr, K(P(r)("report.formulaInput.section.example")), 1),
2652
+ A("p", Lr, K(v.value.example), 1),
2653
2653
  v.value.exampleResult ? (D(), k(Ne, { key: 0 }, [
2654
- A("p", Mr, j(P(r)("report.formulaInput.section.result")), 1),
2655
- A("p", Pr, j(v.value.exampleResult), 1)
2654
+ A("p", Mr, K(P(r)("report.formulaInput.section.result")), 1),
2655
+ A("p", Pr, K(v.value.exampleResult), 1)
2656
2656
  ], 64)) : U("", !0)
2657
2657
  ], 64)) : U("", !0)
2658
2658
  ])) : U("", !0),
@@ -2670,15 +2670,15 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2670
2670
  }, [
2671
2671
  A("div", $r, [
2672
2672
  A("div", Br, [
2673
- A("span", Wr, j(p.label), 1),
2674
- p.type === "FIELD" && p.meta ? (D(), k("span", Yr, j(p.meta), 1)) : U("", !0),
2673
+ A("span", Wr, K(p.label), 1),
2674
+ p.type === "FIELD" && p.meta ? (D(), k("span", Yr, K(p.meta), 1)) : U("", !0),
2675
2675
  p.type === "FIELD" && p.badge ? (D(), be(F, {
2676
2676
  key: 1,
2677
2677
  compact: !0,
2678
2678
  class: "shrink-0 bg-fm-color-primary text-fm-color-typo-white"
2679
2679
  }, {
2680
2680
  default: ce(() => [
2681
- A("p", Hr, j(p.badge), 1)
2681
+ A("p", Hr, K(p.badge), 1)
2682
2682
  ]),
2683
2683
  _: 2
2684
2684
  }, 1024)) : U("", !0),
@@ -2703,7 +2703,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2703
2703
  _: 1
2704
2704
  })) : U("", !0)
2705
2705
  ]),
2706
- p.type !== "FIELD" ? (D(), k("p", Xr, j(p.description), 1)) : U("", !0),
2706
+ p.type !== "FIELD" ? (D(), k("p", Xr, K(p.description), 1)) : U("", !0),
2707
2707
  G(se)
2708
2708
  ])
2709
2709
  ], 42, Ur))), 128))
@@ -2725,7 +2725,7 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
2725
2725
  };
2726
2726
  return _o.fetch(r);
2727
2727
  };
2728
- function Kr(t) {
2728
+ function jr(t) {
2729
2729
  const { getDataFormula: e, getDisplayFormula: n, getIsAdvance: o } = t, r = t.getAllowedFields || (() => []), i = t.getDatasource || (() => ho.Postgres), a = t.immediate ?? !1, l = q(), s = q(), u = q(!1), f = q(!1);
2730
2730
  function c() {
2731
2731
  return r().map((g) => `${g.fieldId}:${g.type}`).sort().join("|");
@@ -2797,25 +2797,25 @@ function Kr(t) {
2797
2797
  f.value = g;
2798
2798
  }
2799
2799
  });
2800
- return Ke(
2800
+ return je(
2801
2801
  () => e(),
2802
2802
  (g) => {
2803
2803
  b.trigger(g);
2804
2804
  },
2805
2805
  { immediate: a }
2806
- ), Ke(
2806
+ ), je(
2807
2807
  () => n(),
2808
2808
  (g) => {
2809
2809
  y.trigger(g);
2810
2810
  },
2811
2811
  { immediate: a }
2812
- ), Ke(
2812
+ ), je(
2813
2813
  () => o(),
2814
2814
  (g) => {
2815
2815
  g ? (b.revalidate(), y.revalidate()) : (b.clearAndCancel(), y.clearAndCancel());
2816
2816
  },
2817
2817
  { immediate: a }
2818
- ), Ke(
2818
+ ), je(
2819
2819
  () => c(),
2820
2820
  () => {
2821
2821
  o() && (b.revalidate(), y.revalidate());
@@ -2827,7 +2827,7 @@ function Kr(t) {
2827
2827
  isDisplayValidating: f
2828
2828
  };
2829
2829
  }
2830
- const jr = { class: "grow" }, qr = {
2830
+ const Kr = { class: "grow" }, qr = {
2831
2831
  key: 2,
2832
2832
  class: "w-full"
2833
2833
  }, Qr = { key: 0 }, Zr = /* @__PURE__ */ We({
@@ -2883,7 +2883,7 @@ const jr = { class: "grow" }, qr = {
2883
2883
  key: g,
2884
2884
  class: "flex flex-row align-center gap-2 w-full"
2885
2885
  }, [
2886
- A("div", jr, [
2886
+ A("div", Kr, [
2887
2887
  ((L = n.config) == null ? void 0 : L.type) === P(rt).Select ? (D(), be(f, {
2888
2888
  key: 0,
2889
2889
  "model-value": e.value[g],
@@ -2987,6 +2987,10 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
2987
2987
  type: Array,
2988
2988
  default: () => []
2989
2989
  },
2990
+ breakdownDimension: {
2991
+ type: Object,
2992
+ default: void 0
2993
+ },
2990
2994
  metrics: {
2991
2995
  type: Array,
2992
2996
  default: () => []
@@ -3036,7 +3040,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3036
3040
  },
3037
3041
  300
3038
3042
  );
3039
- Ke(
3043
+ je(
3040
3044
  [() => {
3041
3045
  var d;
3042
3046
  return (d = c.value) == null ? void 0 : d.option;
@@ -3048,7 +3052,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3048
3052
  d !== void 0 && Array.isArray(v) && H(d, v);
3049
3053
  },
3050
3054
  { deep: !0 }
3051
- ), Ke(
3055
+ ), je(
3052
3056
  () => {
3053
3057
  var d;
3054
3058
  return (d = c.value) == null ? void 0 : d.option;
@@ -3056,7 +3060,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3056
3060
  (d, v) => {
3057
3061
  v !== void 0 && d !== v && c.value && (B(), N(d), $());
3058
3062
  }
3059
- ), Ke(
3063
+ ), je(
3060
3064
  () => {
3061
3065
  var d;
3062
3066
  return (d = c.value) == null ? void 0 : d.operator;
@@ -3139,10 +3143,13 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3139
3143
  }
3140
3144
  const { formulaFieldDataList: ye, allowedFormulaFields: fe } = ti({
3141
3145
  options: S(() => r.options),
3142
- primaryFields: S(() => r.dimensions),
3146
+ primaryFields: S(() => [
3147
+ ...r.dimensions,
3148
+ ...r.breakdownDimension ? [r.breakdownDimension] : []
3149
+ ]),
3143
3150
  secondaryFields: S(() => r.metrics),
3144
3151
  getLabel: oe
3145
- }), { dataValidation: Ce, isDataValidating: Q } = Kr({
3152
+ }), { dataValidation: Ce, isDataValidating: Q } = jr({
3146
3153
  getDataFormula: () => {
3147
3154
  var d;
3148
3155
  return (d = c.value) == null ? void 0 : d.dataFormula;
@@ -3231,8 +3238,8 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3231
3238
  _: 1
3232
3239
  }, 8, ["modelValue", "title", "primary-button-label", "secondary-button-label"]),
3233
3240
  A("div", null, [
3234
- A("p", oi, j(i.value), 1),
3235
- A("p", ri, j(P(e)("report.section.filter.description")), 1)
3241
+ A("p", oi, K(i.value), 1),
3242
+ A("p", ri, K(P(e)("report.section.filter.description")), 1)
3236
3243
  ]),
3237
3244
  G(nt, null, {
3238
3245
  default: ce(() => [
@@ -3248,7 +3255,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3248
3255
  }, {
3249
3256
  default: ce(() => [
3250
3257
  G(pe, { name: "drag_handle" }),
3251
- A("p", ii, j(s.value[Fe].label), 1),
3258
+ A("p", ii, K(s.value[Fe].label), 1),
3252
3259
  v[8] || (v[8] = A("div", { class: "grow" }, null, -1)),
3253
3260
  G(Ye, {
3254
3261
  icon: "close",
@@ -3272,7 +3279,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
3272
3279
  })
3273
3280
  }, {
3274
3281
  default: ce(() => [
3275
- co(j(P(e)("report.section.filter.add")), 1)
3282
+ co(K(P(e)("report.section.filter.add")), 1)
3276
3283
  ]),
3277
3284
  _: 1
3278
3285
  })
@@ -3315,7 +3322,7 @@ export {
3315
3322
  yi as c,
3316
3323
  yr as d,
3317
3324
  Di as e,
3318
- Kr as f,
3325
+ jr as f,
3319
3326
  Ti as g,
3320
3327
  Gr as h,
3321
3328
  ti as u
@@ -12862,7 +12862,7 @@ const os = [
12862
12862
  path: "/overview",
12863
12863
  alias: ["/"],
12864
12864
  name: "overview",
12865
- component: ft(() => import("./OverviewView-BZ0HTUHd.js")),
12865
+ component: ft(() => import("./OverviewView-D8J5qVAo.js")),
12866
12866
  meta: {
12867
12867
  validationManifest: pt(
12868
12868
  X.report_accessOverview
@@ -12872,18 +12872,18 @@ const os = [
12872
12872
  {
12873
12873
  path: "/report",
12874
12874
  name: "reports",
12875
- component: () => import("./Report-DnRk-sIQ.js")
12875
+ component: () => import("./Report-BlyDrleN.js")
12876
12876
  },
12877
12877
  {
12878
12878
  path: "/template",
12879
12879
  name: "template",
12880
- component: () => import("./Template-B3SzVtg0.js"),
12880
+ component: () => import("./Template-C3PyEw-X.js"),
12881
12881
  beforeEnter: () => qr().canAccessTemplate() ? !0 : { name: "reports" }
12882
12882
  },
12883
12883
  {
12884
12884
  path: "/insights",
12885
12885
  name: "insights",
12886
- component: ft(() => import("./InsightView-CJfyGUzf.js")),
12886
+ component: ft(() => import("./InsightView-D2Wg7-D-.js")),
12887
12887
  meta: {
12888
12888
  validationManifest: pt(
12889
12889
  X.report_accessInsight
@@ -12893,22 +12893,22 @@ const os = [
12893
12893
  {
12894
12894
  path: "/report-view",
12895
12895
  name: "reportView",
12896
- component: () => import("./ReportView-B0Nqcj3K.js")
12896
+ component: () => import("./ReportView-GFX5Kixp.js")
12897
12897
  },
12898
12898
  {
12899
12899
  path: "/report-editor",
12900
12900
  name: "reportEditor",
12901
- component: () => import("./ReportEditor-BRDvQKC2.js")
12901
+ component: () => import("./ReportEditor-7oGk3LwA.js")
12902
12902
  },
12903
12903
  {
12904
12904
  path: "/report-editor/tile-editor",
12905
12905
  name: "tileEditor",
12906
- component: () => import("./TileEditor-xPdSEH-m.js")
12906
+ component: () => import("./TileEditor-DpfZbID8.js")
12907
12907
  },
12908
12908
  {
12909
12909
  path: "/setting",
12910
12910
  name: "setting",
12911
- component: ft(() => import("./Setting-CeFnRcil.js")),
12911
+ component: ft(() => import("./Setting-BtEZJlne.js")),
12912
12912
  meta: {
12913
12913
  validationManifest: pt(
12914
12914
  X.report_accessSetting
@@ -12917,7 +12917,7 @@ const os = [
12917
12917
  },
12918
12918
  {
12919
12919
  path: "/integration",
12920
- component: ft(() => import("./Layout-DNlAstgk.js")),
12920
+ component: ft(() => import("./Layout-DNoyS3w3.js")),
12921
12921
  meta: {
12922
12922
  validationManifest: pt(
12923
12923
  X.report_accessIntegration
@@ -12927,12 +12927,12 @@ const os = [
12927
12927
  {
12928
12928
  name: "integrations",
12929
12929
  path: "",
12930
- component: () => import("./Integrations-OhCa0aQD.js")
12930
+ component: () => import("./Integrations-Cg5r8is7.js")
12931
12931
  },
12932
12932
  {
12933
12933
  name: "integration",
12934
12934
  path: "/integration/:id",
12935
- component: () => import("./Integration-DlcF7Oif.js")
12935
+ component: () => import("./Integration-DobHR0Ze.js")
12936
12936
  }
12937
12937
  ]
12938
12938
  },
@@ -12956,7 +12956,7 @@ const Zs = {
12956
12956
  "zh-CN": un,
12957
12957
  "th-TH": fn,
12958
12958
  "zh-Hant": yn
12959
- }, Js = $o(() => import("./App-l8Aceee_.js"));
12959
+ }, Js = $o(() => import("./App-JSn8-WOL.js"));
12960
12960
  export {
12961
12961
  Kc as A,
12962
12962
  Ec as B,
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { Y as e, i as o, Z as p } from "./app-2AZqzUGz.js";
2
+ import { Y as e, i as o, Z as p } from "./app-C-3cvSLw.js";
3
3
  export {
4
4
  e as FmApp,
5
5
  o as i18nMessages,