@feedmepos/mf-report 5.19.29 → 5.19.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.
- package/dist/{App-BVNkyQmT.js → App-ZDMNApvl.js} +3 -3
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-DlnwoJDz.js → BaseDialog.vue_vue_type_script_setup_true_lang-CGksnskl.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-DQTwfMwg.js → Default.vue_vue_type_script_setup_true_lang-Bo4WZz8V.js} +1 -1
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-vW1omSCR.js → FilterSelector.vue_vue_type_script_setup_true_lang-Bau6GuZI.js} +66 -66
- package/dist/{InsightView-BBSyP485.js → InsightView-mVmsz9Bb.js} +2 -2
- package/dist/{Layout-BEhF-CWz.js → Layout-J-1sxcsR.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-jWupvynu.js → MenuTab.vue_vue_type_script_setup_true_lang-m7X1vK7s.js} +3 -3
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BsEyUPY0.js → NavigationTab.vue_vue_type_script_setup_true_lang-DKQ7zOQD.js} +1 -1
- package/dist/{OverviewView-DfOu_bSg.js → OverviewView-CInlyiRI.js} +4 -4
- package/dist/{Report-C9HlWJ43.js → Report-sKO15Hq-.js} +2 -2
- package/dist/{ReportEditor-DP6HxDAG.js → ReportEditor-BE-5Ly-6.js} +3 -3
- package/dist/{ReportView-2Ir0qxby.js → ReportView-CcZXP7JT.js} +5 -5
- package/dist/{Setting-B7x3IYVZ.js → Setting-CLEwrCsI.js} +2 -2
- package/dist/{TileEditor-Dnznq-BX.js → TileEditor-BNQZPe0_.js} +986 -986
- package/dist/{TransitionFade-D826EPGl.js → TransitionFade-uRSySHyu.js} +2 -2
- package/dist/app.js +9 -9
- package/dist/assets/{formatChartData.worker-BoGBMLoY.js → formatChartData.worker-BQkqrr7j.js} +1 -1
- package/dist/assets/{processTableData.worker-D8SrEWGB.js → processTableData.worker-DFxLNXJc.js} +1 -1
- package/package.json +1 -1
|
@@ -2,8 +2,8 @@ import { defineComponent as ee, resolveComponent as U, createBlock as te, openBl
|
|
|
2
2
|
import { detectLocale as E, useCoreStore as T } from "@feedmepos/mf-common";
|
|
3
3
|
import { u as Le, d as i, a as _e, b as X, c as we, e as be, f as Ce, s as ke, g as Ee } from "./vue-i18n-BQN8HgvD.js";
|
|
4
4
|
import { storeToRefs as q } from "pinia";
|
|
5
|
-
import { u as Y, a as Ne, b as Be } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as Fe, u as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { u as Y, a as Ne, b as Be } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CGksnskl.js";
|
|
6
|
+
import { _ as Fe, u as $e } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DKQ7zOQD.js";
|
|
7
7
|
import { u as Z } from "./message-dialog-UoMWOnil.js";
|
|
8
8
|
import { useRoute as xe, useRouter as Je } from "vue-router";
|
|
9
9
|
const Ae = { class: "fm-typo-en-body-md-400 text-ellipsis overflow-hidden" }, Te = /* @__PURE__ */ ee({
|
|
@@ -99,7 +99,7 @@ const ze = ["src"], Qe = ["src"], et = /* @__PURE__ */ ee({
|
|
|
99
99
|
}), Re(() => {
|
|
100
100
|
g(Fe);
|
|
101
101
|
}), ae(() => {
|
|
102
|
-
console.log("5.19.
|
|
102
|
+
console.log("5.19.30", !0), window.addEventListener("message", Q), window.addEventListener("message", j);
|
|
103
103
|
});
|
|
104
104
|
const I = Ne(), V = $e(), n = X();
|
|
105
105
|
qe(() => {
|
|
@@ -8393,7 +8393,7 @@ Arguments: [` + D + "]";
|
|
|
8393
8393
|
}, t.billSchema_closure.prototype = {
|
|
8394
8394
|
call$1(n) {
|
|
8395
8395
|
var e = null, r = "seqNumber", i = "deliveryName", u = "isRefund", o = "isPickup", s = "isInHouseDelivery", l = "isDelivery", D = "completedAt", d = "integratedOrderId", c = "itemCount", p = "taxTotal", y = "discountTotal", g = "grossTotal", m = "rounding", h = "takeawayPrice", A = "thirdPartyExtraCharge", b = "deliveryFee", M = "nettTotal", F = "deliveryFeeWithTax", I = "deliveryFeeWithoutTax", R = "otherChargeWithTax", w = "otherChargeWithoutTax", L = "discountInclusiveTaxTotal";
|
|
8396
|
-
return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, n), t.Field_Field$string(e, !0, e, "docId", "_docId", e, n), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, n), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, n), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, n), t.Field_Field$string(e, !1, "Status", "status", "status", e, n), t.Field_Field$string(e, !1, "No.", r, r, e, n), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, n), t.Field_Field$string(e, !1, "Delivery", i, i, e, n), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, n), t.Field_Field$bool(e, !1, "Refund", u, u, e, n), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, n), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, n), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, n), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, n), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, n), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, n), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, n), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, n), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, n), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, n), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, n), t.Field_Field$string(e, !1, "Source", "source", "source", E.x28case__, n), t.Field_Field$string(e, !1, "Type", "type", "type", E.x28case_u, n), t.Field_Field$bool(e, !0, "Pickup", o, o, e, n), t.Field_Field$bool(e, !0, "Is in house delivery", s, s, e, n), t.Field_Field$bool(e, !0, "Is other delivery", l, l, e, n), t.Field_Field$bool(e, !0, "Is takeaway", "isTakeaway", "is.takeaway", e, n), t.Field_Field$timestamp(e, !1, "Closed at", D, D, e, n), t.Field_Field$string(e, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, n), t.Field_Field$string(e, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, n), t.Field_Field$string(e, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, n), t.Field_Field$string(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, n), t.Field_Field$numeric("IFNULL(@pax,0)*IF(@isRefund, -1, 1)", !1, "Pax", "pax", "person",
|
|
8396
|
+
return t._setArrayType([t.Field_Field$string(e, !1, "ID", "id", "_id", e, n), t.Field_Field$string(e, !0, e, "docId", "_docId", e, n), t.Field_Field$timestamp(e, !0, e, "publishedAt", "_publishedAt", e, n), t.Field_Field$timestamp(e, !1, "Time", "createdAt", "_createdAt", e, n), t.Field_Field$string(e, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, n), t.Field_Field$string(e, !1, "Status", "status", "status", e, n), t.Field_Field$string(e, !1, "No.", r, r, e, n), t.Field_Field$string(e, !1, "Table", "slot", "slot", e, n), t.Field_Field$string(e, !1, "Delivery", i, i, e, n), t.Field_Field$string(e, !1, "Refund ID", "refundFrom", "refundedFrom", e, n), t.Field_Field$bool(e, !1, "Refund", u, u, e, n), t.Field_Field$string(e, !0, e, "refundApprovedById", "refund.approvedBy.id", e, n), t.Field_Field$string(e, !1, "Refund approver", "refundApprovedByName", "refund.approvedBy.name", e, n), t.Field_Field$string(e, !0, e, "refundedById", "refund.by.id", e, n), t.Field_Field$string(e, !1, "Refund user", "refundedByName", "refund.by.name", e, n), t.Field_Field$string(e, !1, "Refund reason", "refundReason", "refund.reason", e, n), t.Field_Field$string(e, !1, "Member ID", "memberId", "membership.id", e, n), t.Field_Field$string(e, !1, "Member user ID", "memberUserId", "membership.userId", e, n), t.Field_Field$string(e, !1, "Member name", "memberUserName", "membership.name", e, n), t.Field_Field$string(e, !0, "Member phone", "memberPhoneNumber", "membership.phoneNumber", e, n), t.Field_Field$timestamp(e, !1, "Member birthday", "memberBirthday", "membership.birthday", e, n), t.Field_Field$string(e, !1, "Remark", "remark", "remark", e, n), t.Field_Field$string(e, !1, "Source", "source", "source", E.x28case__, n), t.Field_Field$string(e, !1, "Type", "type", "type", E.x28case_u, n), t.Field_Field$bool(e, !0, "Pickup", o, o, e, n), t.Field_Field$bool(e, !0, "Is in house delivery", s, s, e, n), t.Field_Field$bool(e, !0, "Is other delivery", l, l, e, n), t.Field_Field$bool(e, !0, "Is takeaway", "isTakeaway", "is.takeaway", e, n), t.Field_Field$timestamp(e, !1, "Closed at", D, D, e, n), t.Field_Field$string(e, !0, "Inclusive SST", "sstInclusive", "nettTaxes.SST.inclusive", e, n), t.Field_Field$string(e, !0, "SST before discount", "sstBeforeDiscount", "nettTaxes.SST.beforeDiscount", e, n), t.Field_Field$string(e, !0, "Inclusive SC", "serviceChargeInclusive", "nettTaxes.SERVICE_CHARGE.inclusive", e, n), t.Field_Field$string(e, !0, "SC before discount", "serviceChargeBeforeDiscount", "nettTaxes.SERVICE_CHARGE.beforeDiscount", e, n), t.Field_Field$numeric("IF(@status = 'VOIDED', 0, IFNULL(@pax,0)*IF(@isRefund, -1, 1))", !1, "Pax", "pax", "person", "(CASE WHEN @status = 'VOIDED' THEN 0 ELSE (COALESCE(@pax,0)*CASE WHEN @is_refund THEN -1 ELSE 1 END) END)", n), t.Field_Field$string(e, !1, "Integrated order ID", d, d, e, n), t.Field_Field$numeric(E.IFNULLi, !0, "Item count", c, c, E.COALESi, n), t.Field_Field$numeric("IFNULL(@taxTotal,0)*IF(@isRefund, -1, 1)", !1, "Tax", p, p, E.COALEStax, n), t.Field_Field$numeric(E.IFNULLdiT, !1, "Discount", y, y, E.COALESdit, n), t.Field_Field$numeric(E.IFNULLg, !1, "Item gross", g, g, E.COALESg, n), t.Field_Field$numeric(E.x28IFNULnI, !1, "Bill gross", "billGrossTotal", e, E.x28COALEnC, n), t.Field_Field$numeric("IFNULL(@rounding,0)*IF(@isRefund, -1, 1)", !1, "Rounding", m, m, E.COALESr, n), t.Field_Field$numeric("IFNULL(@sstTotal,0)*IF(@isRefund, -1, 1)", !0, "SST", "sstTotal", "nettTaxes.SST.total", E.COALESss, n), t.Field_Field$string(e, !0, "SST %", "sstPercentage", "nettTaxes.SST.percentage", e, n), t.Field_Field$numeric(E.IFNULLs, !1, "SC", "serviceChargeTotal", "nettTaxes.SERVICE_CHARGE.total", E.COALESse, n), t.Field_Field$string(e, !0, "SC %", "serviceChargePercentage", "nettTaxes.SERVICE_CHARGE.percentage", e, n), t.Field_Field$numeric(E.x28IFNULo, !1, "Other charge", "otherChargeTotal", "nettTaxes.OTHER_CHARGE.total", E.x28COALEo, n), t.Field_Field$numeric(E.x28IFNULgx2d, !1, "Gross w/ takeaway", "subTotalWithoutTakeaway", e, E.x28COALEgx2d, n), t.Field_Field$numeric(E.IFNULLta, !1, "Takeaway", h, h, E.COALEStak, n), t.Field_Field$numeric(E.IFNULLth, !1, "Extra charge", A, A, E.COALESth, n), t.Field_Field$numeric(E.IFNULLde_, !1, "Delivery fee", b, b, E.COALESdex2c, n), t.Field_Field$numeric(E.IFNULLn, !1, "Nett", M, M, E.COALESn, n), t.Field_Field$numeric(E.x28IFNULgx2bd, !1, "Item gross before charges", "grossBeforeCharges", e, E.x28COALEgx2bd, n), t.Field_Field$numeric(E.x28IFNULn_, !1, "Bill gross before charges", "billGrossBeforeCharges", e, E.x28COALEn_, n), t.Field_Field$numeric(e, !1, "Member Recency", "recency", e, E.MIN_EX, n), t.Field_Field$numeric(e, !1, "Member frequency", "frequency", e, E.COUNT_, n), t.Field_Field$numeric(e, !1, "Member monetary", "monetary", e, E.SUM__n, n), t.Field_Field$numeric(E.IFNULLdeWT, !1, "Delivery fee with tax", F, F, E.COALESdex5f_, n), t.Field_Field$numeric(E.IFNULLdeWo, !1, "Delivery fee without tax", I, I, E.COALESdex5fo, n), t.Field_Field$numeric(E.IFNULLoT, !1, "Other charge with tax", R, R, E.COALESo_, n), t.Field_Field$numeric(E.IFNULLoo, !1, "Other charge without tax", w, w, E.COALESoo, n), t.Field_Field$numeric(e, !1, "Duration", "duration", e, E.EXTRAC, n), t.Field_Field$string(e, !1, "Restaurant", "restaurantName", e, E.x28selecn, n), t.Field_Field$numeric(e, !1, "Labour hour", "labourHour", e, E.x28selecS, n), t.Field_Field$string(e, !1, "Payments", "payments", e, E.x28selecstdn, n), t.Field_Field$string(e, !1, "Items", "items", e, E.x28selecstC, n), t.Field_Field$string(e, !1, "Discount reasons", "discountReasons", e, E.x28selecstda, n), t.Field_Field$numeric(E.IFNULLdiI, !1, "Discount inc tax", L, L, E.COALESdii, n), t.Field_Field$string(e, !1, "Payment Summaries", "paymentSummaries", e, E.x28selecstdC, n)], $.JSArray_Field);
|
|
8397
8397
|
},
|
|
8398
8398
|
$signature: 0
|
|
8399
8399
|
}, t.billSchema_closure0.prototype = {
|
|
@@ -19307,7 +19307,7 @@ const v0 = {
|
|
|
19307
19307
|
};
|
|
19308
19308
|
});
|
|
19309
19309
|
var ye = /* @__PURE__ */ ((T) => (T.generating = "GENERATING", T.completed = "COMPLETED", T.failed = "FAILED", T.canceled = "CANCELLED", T))(ye || {});
|
|
19310
|
-
const pt = "/assets/formatChartData.worker-
|
|
19310
|
+
const pt = "/assets/formatChartData.worker-BQkqrr7j.js", Y0 = /* @__PURE__ */ new Map();
|
|
19311
19311
|
function ie(T) {
|
|
19312
19312
|
return new Worker(T, { type: "module" });
|
|
19313
19313
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as u, computed as f, resolveComponent as p, createElementBlock as s, openBlock as t, normalizeStyle as n, normalizeClass as d, unref as e, createBlock as y, createCommentVNode as _, createVNode as h, createElementVNode as k, toDisplayString as g, renderSlot as x } from "vue";
|
|
2
|
-
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as v } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DKQ7zOQD.js";
|
|
3
3
|
import { useBreakpoints as b } from "@feedmepos/ui-library";
|
|
4
4
|
import { storeToRefs as C } from "pinia";
|
|
5
5
|
import { u as q, f as w } from "./vue-i18n-BQN8HgvD.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { computed as C, defineComponent as Ee, mergeModels as Ue, useModel as Oe, ref as p, onMounted as Ke, nextTick as ke, watch as fe, resolveComponent as q, createElementBlock as ee, openBlock as E, Fragment as Ce, renderSlot as Ye, createVNode as O, normalizeStyle as He, unref as s, createElementVNode as U, toDisplayString as ze, withCtx as ae, createBlock as ie, createCommentVNode as Ae, normalizeClass as Je, h as xt, renderList as Ct, toRaw as va, markRaw as ga, createTextVNode as Rt, onUnmounted as ya, resolveDynamicComponent as ba, withDirectives as wa, vShow as Sa, withModifiers as Tt, isRef as xa } from "vue";
|
|
2
|
-
import { W as M, e as dt, f as Ca, S as st, v as ut, g as ka, h as Ft, i as Kt, q as Zt, R as tt, j as _a, D as Pe, c as he, C as Fe, a as Ta, b as Fa, _ as Da } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { W as M, e as dt, f as Ca, S as st, v as ut, g as ka, h as Ft, i as Kt, q as Zt, R as tt, j as _a, D as Pe, c as he, C as Fe, a as Ta, b as Fa, _ as Da } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CGksnskl.js";
|
|
3
3
|
import { u as mt, b as ct, a as It, d as at, i as La } from "./vue-i18n-BQN8HgvD.js";
|
|
4
4
|
import { d as Yt, _ as Ra, a as Va, b as za, c as Aa } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js";
|
|
5
5
|
import { storeToRefs as $e, defineStore as Qt } from "pinia";
|
|
6
6
|
import { useBreakpoints as ea, useSnackbar as Wt, components as $a } from "@feedmepos/ui-library";
|
|
7
7
|
import { a as Ea } from "./SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js";
|
|
8
|
-
import { r as
|
|
8
|
+
import { r as Ge } from "./i18n-DQxDgiLO.js";
|
|
9
9
|
import { _ as Vt } from "./NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js";
|
|
10
10
|
import "@feedmepos/mf-common";
|
|
11
|
-
var zt = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(zt || {}),
|
|
11
|
+
var zt = /* @__PURE__ */ ((e) => (e.line = "LINE", e.bar = "BAR", e))(zt || {}), je = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(je || {}), At = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(At || {}), $t = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))($t || {}), Et = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Et || {}), Mt = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Mt || {}), Nt = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Nt || {});
|
|
12
12
|
M.Circular, M.Table, M.BarChart, M.LineChart, M.StackBarChart, M.StackLineChart, M.Scorecard, M.Spacer;
|
|
13
13
|
const Ma = [
|
|
14
14
|
{
|
|
@@ -94,7 +94,7 @@ function Na(e, l) {
|
|
|
94
94
|
return !0;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
const
|
|
97
|
+
const jt = [
|
|
98
98
|
"54, 162, 235",
|
|
99
99
|
//8CE6D7
|
|
100
100
|
"0, 123, 167",
|
|
@@ -122,7 +122,7 @@ function Be({
|
|
|
122
122
|
opacity: i
|
|
123
123
|
}) {
|
|
124
124
|
let a = typeof i == "number" ? i : 1;
|
|
125
|
-
return l && (a = a * 0.6), `rgba(${
|
|
125
|
+
return l && (a = a * 0.6), `rgba(${jt[e % jt.length]}, ${a})`;
|
|
126
126
|
}
|
|
127
127
|
function ta(e, l, i) {
|
|
128
128
|
if (e === "" || l === "")
|
|
@@ -538,12 +538,12 @@ const Wa = /* @__PURE__ */ Ee({
|
|
|
538
538
|
]);
|
|
539
539
|
};
|
|
540
540
|
}
|
|
541
|
-
}),
|
|
542
|
-
function
|
|
541
|
+
}), ja = {};
|
|
542
|
+
function Ga(e, l) {
|
|
543
543
|
const i = q("FmMenuDivider");
|
|
544
544
|
return E(), ie(i);
|
|
545
545
|
}
|
|
546
|
-
const Xa = /* @__PURE__ */ Ea(
|
|
546
|
+
const Xa = /* @__PURE__ */ Ea(ja, [["render", Ga]]), Ja = "mf-reporttable-dimension", Gt = Qt(Ja, () => {
|
|
547
547
|
const e = p(0), l = p([]), i = p(!1), a = (h, n) => {
|
|
548
548
|
e.value = h, x(h, n);
|
|
549
549
|
}, w = (h, n, k, F) => {
|
|
@@ -551,16 +551,16 @@ const Xa = /* @__PURE__ */ Ea(Ga, [["render", ja]]), Ja = "mf-reporttable-dimens
|
|
|
551
551
|
}, x = (h, n) => {
|
|
552
552
|
const k = (n == null ? void 0 : n.querySelectorAll("thead tr")) ?? [], F = (n == null ? void 0 : n.querySelectorAll("tbody tr")) ?? [];
|
|
553
553
|
[...k, ...F].forEach((B) => {
|
|
554
|
-
const
|
|
555
|
-
|
|
554
|
+
const G = B;
|
|
555
|
+
G && (G.style.height = `${h}px`);
|
|
556
556
|
});
|
|
557
557
|
}, R = (h, n, k, F = !1) => {
|
|
558
558
|
const A = (k == null ? void 0 : k.querySelectorAll("th")) ?? [];
|
|
559
559
|
if (h === void 0) return;
|
|
560
|
-
const B = A[h],
|
|
561
|
-
if (!B ||
|
|
560
|
+
const B = A[h], G = F ? l[h] : n;
|
|
561
|
+
if (!B || G === void 0) return;
|
|
562
562
|
const X = () => {
|
|
563
|
-
B.style.width = `${
|
|
563
|
+
B.style.width = `${G}px`;
|
|
564
564
|
};
|
|
565
565
|
F ? requestAnimationFrame(X) : X();
|
|
566
566
|
}, L = () => {
|
|
@@ -594,12 +594,12 @@ const Xa = /* @__PURE__ */ Ea(Ga, [["render", ja]]), Ja = "mf-reporttable-dimens
|
|
|
594
594
|
n.classList.remove("highlight-hover-col");
|
|
595
595
|
}) : document.querySelectorAll(".highlight-col").forEach((n) => n.classList.remove("highlight-col"));
|
|
596
596
|
}, y = (h, n) => {
|
|
597
|
-
const k = /* @__PURE__ */ new Map(), F = h.clientX, A = h.target.closest("table"), B = A == null ? void 0 : A.querySelectorAll("th")[n],
|
|
597
|
+
const k = /* @__PURE__ */ new Map(), F = h.clientX, A = h.target.closest("table"), B = A == null ? void 0 : A.querySelectorAll("th")[n], G = B == null ? void 0 : B.getBoundingClientRect().width, X = k.get(n) ? l[n.toString()] || 60 : (k.set(n, !0), G || l[n.toString()] || 60), le = B == null ? void 0 : B.querySelector("p");
|
|
598
598
|
if (!le) return;
|
|
599
599
|
const ve = le.textContent || "", we = window.getComputedStyle(le), De = `${we.fontWeight} ${we.fontSize} ${we.fontFamily}`, _e = document.createElement("canvas").getContext("2d");
|
|
600
600
|
if (!_e) return;
|
|
601
601
|
_e.font = De;
|
|
602
|
-
const b = _e.measureText(ve), $ = window.getComputedStyle(B),
|
|
602
|
+
const b = _e.measureText(ve), $ = window.getComputedStyle(B), j = parseFloat($.paddingLeft || "0"), W = parseFloat($.paddingRight || "0"), H = b.width + j + W;
|
|
603
603
|
m(n, !1);
|
|
604
604
|
const N = (Te) => {
|
|
605
605
|
const ge = Te.clientX - F, Se = Math.max(H, X + ge);
|
|
@@ -626,8 +626,8 @@ const Xa = /* @__PURE__ */ Ea(Ga, [["render", ja]]), Ja = "mf-reporttable-dimens
|
|
|
626
626
|
}, T = (h) => {
|
|
627
627
|
const n = h.clientY, k = h.target.closest("table"), F = e.value || 48;
|
|
628
628
|
u(!1);
|
|
629
|
-
const A = (
|
|
630
|
-
const X = Math.max(30, F + (
|
|
629
|
+
const A = (G) => {
|
|
630
|
+
const X = Math.max(30, F + (G.clientY - n));
|
|
631
631
|
k && a(X, k);
|
|
632
632
|
}, B = () => {
|
|
633
633
|
c(!1), document.removeEventListener("mousemove", A), document.removeEventListener("mouseup", B);
|
|
@@ -654,17 +654,17 @@ const Xa = /* @__PURE__ */ Ea(Ga, [["render", ja]]), Ja = "mf-reporttable-dimens
|
|
|
654
654
|
enableCellResizing: () => {
|
|
655
655
|
const h = document.querySelector("thead"), n = document.querySelectorAll("thead tr"), k = document.querySelectorAll("tbody tr"), F = [...n, ...k];
|
|
656
656
|
h && h.classList.remove("sticky");
|
|
657
|
-
const A = (B,
|
|
657
|
+
const A = (B, G) => {
|
|
658
658
|
const X = document.createElement("div");
|
|
659
|
-
return X.className = `${B}-resize-handle`, B === "col" ? (X.addEventListener("mouseenter", () => m(
|
|
660
|
-
le.stopPropagation(), y(le,
|
|
659
|
+
return X.className = `${B}-resize-handle`, B === "col" ? (X.addEventListener("mouseenter", () => m(G, !0)), X.addEventListener("mouseleave", () => S(!0)), X.addEventListener("mousedown", (le) => {
|
|
660
|
+
le.stopPropagation(), y(le, G);
|
|
661
661
|
})) : (X.addEventListener("mouseenter", () => u(!0)), X.addEventListener("mouseleave", () => c(!0)), X.addEventListener("mousedown", (le) => {
|
|
662
662
|
le.stopPropagation(), T(le);
|
|
663
663
|
})), X;
|
|
664
664
|
};
|
|
665
665
|
F.forEach((B) => {
|
|
666
|
-
const
|
|
667
|
-
B.querySelectorAll(
|
|
666
|
+
const G = B.closest("thead") !== null;
|
|
667
|
+
B.querySelectorAll(G ? "th" : "td").forEach((le, ve) => {
|
|
668
668
|
const we = A("col", ve), De = A("row", ve);
|
|
669
669
|
le.appendChild(we), le.appendChild(De);
|
|
670
670
|
});
|
|
@@ -683,7 +683,7 @@ function Lt(e) {
|
|
|
683
683
|
const [a, w] = l.split("."), x = new Intl.NumberFormat("en-US").format(Number(a));
|
|
684
684
|
return w !== void 0 ? `${x}.${w}` : x;
|
|
685
685
|
}
|
|
686
|
-
const Ka = "/assets/processTableData.worker-
|
|
686
|
+
const Ka = "/assets/processTableData.worker-DFxLNXJc.js", Za = { class: "my-4" }, Qa = {
|
|
687
687
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
688
688
|
style: { backgroundColor: "#f9f9f9" }
|
|
689
689
|
}, el = { class: "font-bold" }, tl = { class: "text-fm-color-neutral-gray-300" }, al = /* @__PURE__ */ Ee({
|
|
@@ -696,7 +696,7 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
696
696
|
}),
|
|
697
697
|
emits: ["update:modelValue"],
|
|
698
698
|
setup(e) {
|
|
699
|
-
const { t: l, te: i } = mt(), a = Oe(e, "modelValue"), { country: w } = It(), { clearTileSorts: x, setTileSorts: R } = Ca(), L = Wt(), z = e, d = p([]), { isEditing: m, colWidths: u, rowHeight: c } = $e(
|
|
699
|
+
const { t: l, te: i } = mt(), a = Oe(e, "modelValue"), { country: w } = It(), { clearTileSorts: x, setTileSorts: R } = Ca(), L = Wt(), z = e, d = p([]), { isEditing: m, colWidths: u, rowHeight: c } = $e(Gt()), { setColWidths: S, setRowHeights: y, enableCellResizing: T } = Gt(), v = p(null), I = C(() => {
|
|
700
700
|
var b;
|
|
701
701
|
return ((b = a.value.data) == null ? void 0 : b.columns) || [{ label: "", key: "" }];
|
|
702
702
|
}), h = C(() => {
|
|
@@ -705,19 +705,19 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
705
705
|
}), n = C(() => a.value.filterText), k = C(() => {
|
|
706
706
|
var b, $;
|
|
707
707
|
if (!(n.value && n.value.trim().length > 0 || !((b = h.value[0]) != null && b.isRollup) && !(($ = h.value[h.value.length - 1]) != null && $.isRollup))) {
|
|
708
|
-
if (a.value.rollupPosition ===
|
|
709
|
-
return
|
|
710
|
-
if (a.value.rollupPosition ===
|
|
711
|
-
return
|
|
708
|
+
if (a.value.rollupPosition === je.top || a.value.rollupPosition === void 0)
|
|
709
|
+
return je.top;
|
|
710
|
+
if (a.value.rollupPosition === je.bottom)
|
|
711
|
+
return je.bottom;
|
|
712
712
|
}
|
|
713
713
|
}), F = C(() => {
|
|
714
714
|
const W = k.value !== void 0 ? 1 : 0, H = (v.value ? v.value.$el.offsetHeight : 0) - 48;
|
|
715
715
|
return Math.floor((H - 34.5 - 32) / 48) - W;
|
|
716
716
|
}), A = C(() => {
|
|
717
|
-
var $,
|
|
717
|
+
var $, j;
|
|
718
718
|
let b = [];
|
|
719
719
|
switch (k.value) {
|
|
720
|
-
case
|
|
720
|
+
case je.top:
|
|
721
721
|
b = [...(($ = h.value[0]) == null ? void 0 : $.cells) || []].map((W, H) => {
|
|
722
722
|
var N;
|
|
723
723
|
return {
|
|
@@ -727,8 +727,8 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
727
727
|
};
|
|
728
728
|
});
|
|
729
729
|
break;
|
|
730
|
-
case
|
|
731
|
-
b = [...((
|
|
730
|
+
case je.bottom:
|
|
731
|
+
b = [...((j = h.value[h.value.length - 1]) == null ? void 0 : j.cells) || []].map((W, H) => {
|
|
732
732
|
var N;
|
|
733
733
|
return {
|
|
734
734
|
main: W,
|
|
@@ -738,7 +738,7 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
738
738
|
});
|
|
739
739
|
break;
|
|
740
740
|
}
|
|
741
|
-
return b.length > 0 && b[0].main === "" && (b[0].main =
|
|
741
|
+
return b.length > 0 && b[0].main === "" && (b[0].main = Ge(l, i, "Grand Total", "other")), b;
|
|
742
742
|
});
|
|
743
743
|
function B(b) {
|
|
744
744
|
let $ = (b == null ? void 0 : b.main) || "";
|
|
@@ -753,25 +753,25 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
753
753
|
Ke(() => {
|
|
754
754
|
x();
|
|
755
755
|
});
|
|
756
|
-
const
|
|
756
|
+
const G = p([]);
|
|
757
757
|
let X = 0, le;
|
|
758
758
|
function ve() {
|
|
759
759
|
var H;
|
|
760
760
|
if (!((H = a.value) != null && H.data)) {
|
|
761
|
-
|
|
761
|
+
G.value = [];
|
|
762
762
|
return;
|
|
763
763
|
}
|
|
764
764
|
const b = ++X, $ = (a.value.data.rows || []).map((N) => ({
|
|
765
765
|
isRollup: N.isRollup,
|
|
766
766
|
cells: Array.isArray(N.cells) ? [...N.cells] : [],
|
|
767
767
|
comparisonCells: Array.isArray(N.comparisonCells) ? [...N.comparisonCells] : []
|
|
768
|
-
})),
|
|
768
|
+
})), j = (a.value.data.columns || []).map((N) => ({
|
|
769
769
|
key: N.key,
|
|
770
770
|
type: N.type,
|
|
771
771
|
label: N.label
|
|
772
772
|
})), W = {
|
|
773
773
|
rows: $,
|
|
774
|
-
columns:
|
|
774
|
+
columns: j,
|
|
775
775
|
filter: n.value ?? "",
|
|
776
776
|
globalSorts: va(d.value).map((N) => ({
|
|
777
777
|
key: N.key,
|
|
@@ -781,7 +781,7 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
781
781
|
pageSize: F.value
|
|
782
782
|
};
|
|
783
783
|
ka(Ka, W).then((N) => {
|
|
784
|
-
b === X && (N != null && N.error ? (L.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(N.error),
|
|
784
|
+
b === X && (N != null && N.error ? (L.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(N.error), G.value = []) : G.value = ga(N.data || []));
|
|
785
785
|
});
|
|
786
786
|
}
|
|
787
787
|
fe(
|
|
@@ -792,8 +792,8 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
792
792
|
{ immediate: !0, deep: !0 }
|
|
793
793
|
);
|
|
794
794
|
const we = C(() => {
|
|
795
|
-
var
|
|
796
|
-
const b = ((
|
|
795
|
+
var j, W;
|
|
796
|
+
const b = ((j = a.value.data) == null ? void 0 : j.rows) || [], $ = ((W = a.value.data) == null ? void 0 : W.columns) || [];
|
|
797
797
|
return JSON.stringify({
|
|
798
798
|
rowsLength: b.length,
|
|
799
799
|
columns: $.map((H) => ({ key: H.key, type: H.type, label: H.label })),
|
|
@@ -811,12 +811,12 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
811
811
|
{ immediate: !0 }
|
|
812
812
|
);
|
|
813
813
|
function De(b) {
|
|
814
|
-
const $ = d.value.find((
|
|
814
|
+
const $ = d.value.find((j) => j.key === b);
|
|
815
815
|
if (!$) {
|
|
816
816
|
d.value.push({ key: b, type: st.Asc });
|
|
817
817
|
return;
|
|
818
818
|
}
|
|
819
|
-
$.type === st.Asc ? $.type = st.Desc : $.type === st.Desc && (d.value = d.value.filter((
|
|
819
|
+
$.type === st.Asc ? $.type = st.Desc : $.type === st.Desc && (d.value = d.value.filter((j) => j.key !== b));
|
|
820
820
|
}
|
|
821
821
|
const Le = C(
|
|
822
822
|
() => {
|
|
@@ -826,7 +826,7 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
826
826
|
), _e = C(() => {
|
|
827
827
|
var b;
|
|
828
828
|
return (b = a.value.data) != null && b.columns ? a.value.data.columns.map(($) => {
|
|
829
|
-
const
|
|
829
|
+
const j = Ge(l, i, $.label, "other"), W = d.value.find((ue) => ue.key === $.key), H = !!W, N = H ? W.type === st.Asc ? "arrow_upward" : "arrow_downward" : "unfold_more";
|
|
830
830
|
return {
|
|
831
831
|
accessorKey: $.key,
|
|
832
832
|
header: () => {
|
|
@@ -842,7 +842,7 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
842
842
|
xt(
|
|
843
843
|
"span",
|
|
844
844
|
{ class: `${$.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap` },
|
|
845
|
-
|
|
845
|
+
j
|
|
846
846
|
),
|
|
847
847
|
xt(ue, {
|
|
848
848
|
name: N,
|
|
@@ -888,23 +888,23 @@ const Ka = "/assets/processTableData.worker-D8SrEWGB.js", Za = { class: "my-4" }
|
|
|
888
888
|
const $ = b.querySelector("table");
|
|
889
889
|
if (!$) return;
|
|
890
890
|
$.classList.add(Le.value ? "table-fixed" : "table-auto");
|
|
891
|
-
let
|
|
892
|
-
m.value ? (T(),
|
|
891
|
+
let j, W;
|
|
892
|
+
m.value ? (T(), j = u.value, W = c.value) : (W = a.value.rowHeight, j = a.value.colWidths), typeof W == "number" && y(W, b), j == null || j.forEach((N, ue) => {
|
|
893
893
|
S(ue, N, b);
|
|
894
894
|
});
|
|
895
895
|
},
|
|
896
896
|
{ immediate: !0 }
|
|
897
897
|
), (b, $) => {
|
|
898
|
-
const
|
|
898
|
+
const j = q("FmTable");
|
|
899
899
|
return E(), ee(Ce, null, [
|
|
900
900
|
U("div", Za, [
|
|
901
901
|
Ye(b.$slots, "menu")
|
|
902
902
|
]),
|
|
903
|
-
O(
|
|
903
|
+
O(j, {
|
|
904
904
|
ref_key: "table",
|
|
905
905
|
ref: v,
|
|
906
906
|
"column-defs": _e.value,
|
|
907
|
-
"row-data":
|
|
907
|
+
"row-data": G.value,
|
|
908
908
|
"search-value": n.value,
|
|
909
909
|
"page-size": F.value,
|
|
910
910
|
"shrink-at": !1,
|
|
@@ -1310,7 +1310,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1310
1310
|
return -1;
|
|
1311
1311
|
}), c = C(() => u.value !== 0), S = C(
|
|
1312
1312
|
() => u.value != xe.value.length - 1
|
|
1313
|
-
), y = p(a.showTitle ?? !0), T = p(a.titleFontSize ?? 14), v = p(a.titleBold ?? !1), I = p(a.titleItalic ?? !1), h = p(a.titleUnderline ?? !1), n = p(a.chartWidth ?? void 0), k = p(a.chartHeight ?? void 0), F = p(a.showLabel ?? !1), A = p(a.labelAlign ?? $t.center), B = p(a.labelAnchor ?? At.center),
|
|
1313
|
+
), y = p(a.showTitle ?? !0), T = p(a.titleFontSize ?? 14), v = p(a.titleBold ?? !1), I = p(a.titleItalic ?? !1), h = p(a.titleUnderline ?? !1), n = p(a.chartWidth ?? void 0), k = p(a.chartHeight ?? void 0), F = p(a.showLabel ?? !1), A = p(a.labelAlign ?? $t.center), B = p(a.labelAnchor ?? At.center), G = p(a.labelRotation ?? 0), X = p(a.labelOffset ?? 0), le = p(a.labelFontSize ?? 12), ve = C(() => a.showSearchBar), we = p(a.showX ?? !0), De = p(a.xPosition ?? Et.bottom), Le = p(a.showXGrid ?? !1), _e = p(a.showXTick ?? !0), b = p(a.xTickFontSize ?? 12), $ = p(a.showXTitle ?? !1), j = p(a.xTitle ?? ""), W = p(a.xTitleFontSize ?? 12), H = p(a.showY ?? !0), N = p(a.yPosition ?? Mt.left), ue = p(a.showYGrid ?? !1), Te = p(a.showYTick ?? !0), ge = p(a.yTickFontSize ?? 12), Se = p(a.showYTitle ?? !1), ye = p(a.yTitle ?? ""), qe = p(a.yTitleFontSize ?? 12), Re = p(a.showLegend ?? void 0), Ve = p(a.legendPosition ?? Nt.top), t = p(a.usePointStyle ?? !0), f = p(a.legendMaxHeight), g = p(a.legendMaxWidth), _ = p(a.rowHeight ?? 0), D = p(a.colWidths ?? []), Q = p(!1), te = p(""), { breakpoints: se, getBreakpointsBoundary: Y } = ea(), V = p(), o = C(
|
|
1314
1314
|
() => R.customScreenWidth === void 0 ? window.innerWidth : R.customScreenWidth
|
|
1315
1315
|
), me = C(
|
|
1316
1316
|
() => (o == null ? void 0 : o.value) > Y("xs")[1] && (o == null ? void 0 : o.value) <= Y("sm")[1]
|
|
@@ -1382,7 +1382,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1382
1382
|
showLabel: F.value,
|
|
1383
1383
|
labelAnchor: B.value,
|
|
1384
1384
|
labelAlign: A.value,
|
|
1385
|
-
labelRotation:
|
|
1385
|
+
labelRotation: G.value,
|
|
1386
1386
|
labelOffset: X.value,
|
|
1387
1387
|
labelFontSize: le.value,
|
|
1388
1388
|
showX: we.value,
|
|
@@ -1391,7 +1391,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1391
1391
|
showXTick: _e.value,
|
|
1392
1392
|
xTickFontSize: b.value,
|
|
1393
1393
|
showXTitle: $.value,
|
|
1394
|
-
xTitle:
|
|
1394
|
+
xTitle: j.value,
|
|
1395
1395
|
xTitleFontSize: W.value,
|
|
1396
1396
|
showY: H.value,
|
|
1397
1397
|
yPosition: N.value,
|
|
@@ -1438,10 +1438,10 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1438
1438
|
return Z.sort(
|
|
1439
1439
|
(Ie, it) => (r.rowIds || []).indexOf(Dt(Ie)) - (r.rowIds || []).indexOf(Dt(it))
|
|
1440
1440
|
), [
|
|
1441
|
-
{ label:
|
|
1442
|
-
{ label:
|
|
1441
|
+
{ label: Ge(w, x, "None", "other"), value: "none" },
|
|
1442
|
+
{ label: Ge(w, x, "Grand Total", "other"), value: 0 },
|
|
1443
1443
|
...[...Z].slice(0, Z.length - 1).map((Ie, it) => ({
|
|
1444
|
-
label:
|
|
1444
|
+
label: Ge(w, x, Ie.label, "other"),
|
|
1445
1445
|
value: it + 1
|
|
1446
1446
|
}))
|
|
1447
1447
|
];
|
|
@@ -1450,7 +1450,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1450
1450
|
}), xe = C(() => {
|
|
1451
1451
|
const { config: r } = oe.value;
|
|
1452
1452
|
return r.isDrillable ? r.dimensions.map((Z) => ({
|
|
1453
|
-
label:
|
|
1453
|
+
label: Ge(w, x, Z.label, "other"),
|
|
1454
1454
|
value: Dt(Z)
|
|
1455
1455
|
})) : [];
|
|
1456
1456
|
}), wt = C(() => {
|
|
@@ -1462,7 +1462,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1462
1462
|
fe(
|
|
1463
1463
|
() => i.value.widget.config,
|
|
1464
1464
|
(r) => {
|
|
1465
|
-
z.value = r.rollup, y.value = r.showTitle ?? !0, T.value = r.titleFontSize ?? 14, v.value = r.titleBold ?? !1, I.value = r.titleItalic ?? !1, h.value = r.titleUnderline ?? !1, k.value = r.chartHeight ?? void 0, n.value = r.chartWidth ?? void 0, F.value = r.showLabel ?? !1, A.value = r.labelAlign ?? $t.center, B.value = r.labelAnchor ?? At.center,
|
|
1465
|
+
z.value = r.rollup, y.value = r.showTitle ?? !0, T.value = r.titleFontSize ?? 14, v.value = r.titleBold ?? !1, I.value = r.titleItalic ?? !1, h.value = r.titleUnderline ?? !1, k.value = r.chartHeight ?? void 0, n.value = r.chartWidth ?? void 0, F.value = r.showLabel ?? !1, A.value = r.labelAlign ?? $t.center, B.value = r.labelAnchor ?? At.center, G.value = r.labelRotation ?? 0, X.value = r.labelOffset ?? 0, le.value = r.labelFontSize ?? 12, we.value = r.showX ?? !0, De.value = r.xPosition ?? Et.bottom, Le.value = r.showXGrid ?? !1, _e.value = r.showXTick ?? !0, b.value = r.xTickFontSize ?? 12, $.value = r.showXTitle ?? !1, j.value = r.xTitle ?? "", W.value = r.xTitleFontSize ?? 12, H.value = r.showY ?? !0, N.value = r.yPosition ?? Mt.left, ue.value = r.showYGrid ?? !1, Te.value = r.showYTick ?? !0, ge.value = r.yTickFontSize ?? 12, Se.value = r.showYTitle ?? !1, ye.value = r.yTitle ?? "", qe.value = r.yTitleFontSize ?? 12, Re.value = r.showLegend ?? void 0, Ve.value = r.legendPosition ?? Nt.top, t.value = r.usePointStyle ?? !0, f.value = r.legendMaxHeight, g.value = r.legendMaxWidth, _.value = r.rowHeight ?? 0, D.value = r.colWidths ?? [];
|
|
1466
1466
|
},
|
|
1467
1467
|
{ deep: !0 }
|
|
1468
1468
|
), fe([() => z.value], () => {
|
|
@@ -1593,7 +1593,7 @@ const il = /* @__PURE__ */ Ee({
|
|
|
1593
1593
|
T.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
1594
1594
|
oe.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
1595
1595
|
]])
|
|
1596
|
-
}, ze(s(
|
|
1596
|
+
}, ze(s(Ge)(s(w), s(x), oe.value.title, "other")), 7)) : Ae("", !0)
|
|
1597
1597
|
]),
|
|
1598
1598
|
_: 1
|
|
1599
1599
|
}, 8, ["content", "disabled"]),
|
|
@@ -1926,7 +1926,7 @@ const Jt = Qt(fl, () => {
|
|
|
1926
1926
|
var t;
|
|
1927
1927
|
return ((t = a.value) == null ? void 0 : t.id) ?? "";
|
|
1928
1928
|
}), B = p([]);
|
|
1929
|
-
function
|
|
1929
|
+
function G(t) {
|
|
1930
1930
|
const g = I(t.filter).selectedValues;
|
|
1931
1931
|
t.selectedValues = t.keepSelection ? g : t.options.map((_) => _.value), t.filter.values = [...t.selectedValues], S(t.filter, t.selectedValues);
|
|
1932
1932
|
}
|
|
@@ -2094,7 +2094,7 @@ const Jt = Qt(fl, () => {
|
|
|
2094
2094
|
function $(t) {
|
|
2095
2095
|
t.visibleCount += 50, c(t.filter, 50);
|
|
2096
2096
|
}
|
|
2097
|
-
async function
|
|
2097
|
+
async function j(t) {
|
|
2098
2098
|
var f;
|
|
2099
2099
|
switch (t.type) {
|
|
2100
2100
|
case Pe.String:
|
|
@@ -2120,7 +2120,7 @@ const Jt = Qt(fl, () => {
|
|
|
2120
2120
|
label: String(V),
|
|
2121
2121
|
value: V,
|
|
2122
2122
|
available: t.keepSelection ? Y.has(V) : new Set(Q).has(V)
|
|
2123
|
-
})),
|
|
2123
|
+
})), G(t);
|
|
2124
2124
|
} catch (g) {
|
|
2125
2125
|
if ((g == null ? void 0 : g.code) === "ERR_CANCELED" || (g == null ? void 0 : g.name) === "CanceledError")
|
|
2126
2126
|
return;
|
|
@@ -2131,7 +2131,7 @@ const Jt = Qt(fl, () => {
|
|
|
2131
2131
|
t.options = [
|
|
2132
2132
|
{ label: "Yes", value: !0 },
|
|
2133
2133
|
{ label: "No", value: !1 }
|
|
2134
|
-
],
|
|
2134
|
+
], G(t);
|
|
2135
2135
|
break;
|
|
2136
2136
|
}
|
|
2137
2137
|
case Pe.Timestamp:
|
|
@@ -2139,7 +2139,7 @@ const Jt = Qt(fl, () => {
|
|
|
2139
2139
|
const g = t.filter.option;
|
|
2140
2140
|
t.options = Xt({ dimensionOption: g, t: l }), t.filter.values = t.options.length ? t.options.map((_) => _.value) : ["NULL"];
|
|
2141
2141
|
}
|
|
2142
|
-
|
|
2142
|
+
G(t);
|
|
2143
2143
|
break;
|
|
2144
2144
|
case Pe.Numeric:
|
|
2145
2145
|
break;
|
|
@@ -2151,7 +2151,7 @@ const Jt = Qt(fl, () => {
|
|
|
2151
2151
|
try {
|
|
2152
2152
|
t || (L.value = !0), n.value = !0;
|
|
2153
2153
|
const f = B.value.map(async (g) => {
|
|
2154
|
-
await
|
|
2154
|
+
await j(g);
|
|
2155
2155
|
});
|
|
2156
2156
|
await Promise.all(f);
|
|
2157
2157
|
} finally {
|
|
@@ -2443,7 +2443,7 @@ const Jt = Qt(fl, () => {
|
|
|
2443
2443
|
export {
|
|
2444
2444
|
Xe as I,
|
|
2445
2445
|
$t as L,
|
|
2446
|
-
|
|
2446
|
+
je as R,
|
|
2447
2447
|
Hl as _,
|
|
2448
2448
|
Yl as a,
|
|
2449
2449
|
At as b,
|
|
@@ -2451,5 +2451,5 @@ export {
|
|
|
2451
2451
|
Ul as d,
|
|
2452
2452
|
Ol as e,
|
|
2453
2453
|
Dt as g,
|
|
2454
|
-
|
|
2454
|
+
Gt as u
|
|
2455
2455
|
};
|
|
@@ -2,13 +2,13 @@ var Zo = Object.defineProperty;
|
|
|
2
2
|
var Jo = (i, t, e) => t in i ? Zo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var k = (i, t, e) => Jo(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as Qo, createElementBlock as U, openBlock as I, createElementVNode as R, renderSlot as Un, toDisplayString as lt, resolveDirective as Xn, createCommentVNode as St, Fragment as Ii, renderList as zi, createBlock as Ht, withDirectives as Ge, resolveDynamicComponent as es, unref as G, withCtx as Yt, createVNode as et, normalizeClass as Ze, resolveComponent as Me, useModel as ta, createTextVNode as ea, isRef as ki, nextTick as ia } from "vue";
|
|
5
|
-
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-Bo4WZz8V.js";
|
|
6
6
|
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js";
|
|
7
7
|
import { d as Bi, a as Kn, q as qn, F as Gn, u as Zn, h as ys, b as oa } from "./vue-i18n-BQN8HgvD.js";
|
|
8
8
|
import { storeToRefs as Jn } from "pinia";
|
|
9
9
|
import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
|
|
10
10
|
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js";
|
|
11
|
-
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
11
|
+
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DKQ7zOQD.js";
|
|
12
12
|
import { useCoreStore as ha } from "@feedmepos/mf-common";
|
|
13
13
|
function da({ start: i, end: t }) {
|
|
14
14
|
return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as o, resolveComponent as t, createBlock as r, openBlock as n, withCtx as _, createVNode as c } from "vue";
|
|
2
|
-
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as a } from "./Default.vue_vue_type_script_setup_true_lang-Bo4WZz8V.js";
|
|
3
3
|
const f = /* @__PURE__ */ o({
|
|
4
4
|
__name: "Layout",
|
|
5
5
|
setup(m) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as b, computed as V, createElementBlock as x, openBlock as a, createElementVNode as y, createVNode as u, unref as e, isRef as p, withCtx as _, createBlock as g, createCommentVNode as k, useModel as $, resolveComponent as f, normalizeClass as R, Fragment as w, renderList as M, toDisplayString as T } from "vue";
|
|
2
2
|
import { b as B } from "./vue-i18n-BQN8HgvD.js";
|
|
3
3
|
import { storeToRefs as D } from "pinia";
|
|
4
|
-
import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { a as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DKQ7zOQD.js";
|
|
5
5
|
import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-cfshXMB2.js";
|
|
6
|
-
import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as N } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CGksnskl.js";
|
|
7
|
+
import { a as S } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Bau6GuZI.js";
|
|
8
8
|
import { useRoute as z } from "vue-router";
|
|
9
9
|
import { useBreakpoints as E } from "@feedmepos/ui-library";
|
|
10
10
|
const L = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, O = { class: "flex flex-col gap-2 py-2" }, q = /* @__PURE__ */ b({
|
|
@@ -4,7 +4,7 @@ var ml = (e, r, t) => F5(e, typeof r != "symbol" ? r + "" : r, t);
|
|
|
4
4
|
import { defineComponent as $t, computed as nt, useModel as pn, ref as Ve, watch as ra, resolveComponent as me, createBlock as Ze, unref as q, openBlock as ne, withCtx as qe, createElementVNode as _, createVNode as J, toDisplayString as Ge, withDirectives as Un, createElementBlock as Fe, Fragment as vt, renderList as Bt, vShow as Ui, createTextVNode as jr, mergeModels as Kn, createCommentVNode as dt, normalizeClass as Jn, onMounted as i0, withKeys as qh, withModifiers as Yn, isRef as qn, vModelText as Wh, normalizeStyle as s0, renderSlot as jh, mergeProps as N5, nextTick as L5, resolveDynamicComponent as Td, createSlots as M5 } from "vue";
|
|
5
5
|
import { useRouter as Uh, useRoute as Yh } from "vue-router";
|
|
6
6
|
import { storeToRefs as xr, defineStore as l0 } from "pinia";
|
|
7
|
-
import { a as Zs, k as Cd, l as R5, h as Ll, R as ln, j as o0, m as f0, _ as c0, d as B5, v as X5, i as z5, r as H5, n as wn, o as q5, u as W5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { a as Zs, k as Cd, l as R5, h as Ll, R as ln, j as o0, m as f0, _ as c0, d as B5, v as X5, i as z5, r as H5, n as wn, o as q5, u as W5 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CGksnskl.js";
|
|
8
8
|
import { useBreakpoints as oo, components as yi, useSnackbar as ss, useDialog as j5, useDialogChild as U5, FmButtonVariant as Ed } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as Ka, k as u0, l as fo, a as Ja, F as _a, r as co, d as ct, m as ls, t as Y5, b as Pi, q as uo, n as Z5, o as G5, e as Q5, v as gl, w as Zh, x as K5, p as J5 } from "./vue-i18n-BQN8HgvD.js";
|
|
10
10
|
import { _ as Pd, a as _5 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as g, computed as w, resolveComponent as k, createBlock as a, openBlock as t, withCtx as $, createVNode as d, createElementVNode as y, unref as e, normalizeStyle as C, normalizeClass as u, createElementBlock as _, Fragment as h, renderList as B } from "vue";
|
|
2
|
-
import { _ as b } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { a as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as b } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Bau6GuZI.js";
|
|
3
|
+
import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-Bo4WZz8V.js";
|
|
4
|
+
import { a as P } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CGksnskl.js";
|
|
5
5
|
import { storeToRefs as R } from "pinia";
|
|
6
6
|
import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js";
|
|
7
7
|
import { useBreakpoints as V } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-m7X1vK7s.js";
|
|
9
9
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
10
10
|
const G = /* @__PURE__ */ g({
|
|
11
11
|
__name: "OverviewView",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as he, ref as E, watch as ae, computed as x, h as g, withModifiers as Ce, resolveComponent as S, createBlock as M, openBlock as V, withCtx as i, createVNode as l, createElementVNode as y, unref as e, normalizeStyle as xe, normalizeClass as _, withDirectives as Y, createElementBlock as Se, Fragment as _e, renderList as ke, toDisplayString as z, createTextVNode as Ie, vShow as q } from "vue";
|
|
2
2
|
import { storeToRefs as re } from "pinia";
|
|
3
|
-
import { a as we, u as $e } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as Re } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { a as we, u as $e } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CGksnskl.js";
|
|
4
|
+
import { _ as Re } from "./Default.vue_vue_type_script_setup_true_lang-Bo4WZz8V.js";
|
|
5
5
|
import { u as De } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { b as ne, f as Fe } from "./vue-i18n-BQN8HgvD.js";
|
|
7
7
|
import { useSnackbar as Le, useBreakpoints as Ne, components as Oe, FmButtonColorThemeVariant as Ve } from "@feedmepos/ui-library";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as X, mergeModels as K, useModel as Q, ref as I, computed as D, resolveComponent as c, createBlock as k, openBlock as i, withCtx as u, createElementVNode as h, createVNode as o, unref as t, normalizeClass as ie, createTextVNode as _e, toDisplayString as H, createElementBlock as T, Fragment as G, renderSlot as $e, createCommentVNode as A, watch as de, renderList as ee, resolveDynamicComponent as Ie, isRef as Te, normalizeStyle as we, onMounted as Re } from "vue";
|
|
2
|
-
import { W as We, g as qe, _ as Ee, i as Pe, S as xe, d as ke, T as Je, a as ze } from "./TransitionFade-
|
|
3
|
-
import { D as j, c as ue, C as ge, a as Oe, b as He, v as re } from "./BaseDialog.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { W as We, g as qe, _ as Ee, i as Pe, S as xe, d as ke, T as Je, a as ze } from "./TransitionFade-uRSySHyu.js";
|
|
3
|
+
import { D as j, c as ue, C as ge, a as Oe, b as He, v as re } from "./BaseDialog.vue_vue_type_script_setup_true_lang-CGksnskl.js";
|
|
4
4
|
import { storeToRefs as me } from "pinia";
|
|
5
5
|
import { useRouter as Ne, useRoute as Me } from "vue-router";
|
|
6
6
|
import { useBreakpoints as pe, useSnackbar as De, FmButtonColorThemeVariant as oe } from "@feedmepos/ui-library";
|
|
7
7
|
import { u as Ue } from "./message-dialog-UoMWOnil.js";
|
|
8
8
|
import { u as se, b as Le, i as be, f as je } from "./vue-i18n-BQN8HgvD.js";
|
|
9
|
-
import { a as Ce, _ as he } from "./FilterSelector.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { a as Ce, _ as he } from "./FilterSelector.vue_vue_type_script_setup_true_lang-Bau6GuZI.js";
|
|
10
10
|
import { _ as ye } from "./NoData.vue_vue_type_script_setup_true_lang-BUoYdn5S.js";
|
|
11
11
|
import { r as ce } from "./i18n-DQxDgiLO.js";
|
|
12
12
|
import { _ as Ve } from "./SelectComponent.vue_vue_type_script_setup_true_lang-B2oCOTUH.js";
|