@feedmepos/mf-report 5.27.54 → 5.28.0
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-C6xpf-Q0.js → App-BDhSFQX_.js} +45 -44
- package/dist/DateRangeSelect-CRsKMi0U.js +437 -0
- package/dist/{Default.vue_vue_type_script_setup_true_lang-BwPZXC_d.js → Default.vue_vue_type_script_setup_true_lang-WGOOX2b8.js} +12 -11
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BpgXiPBY.js → DynamicWidget.vue_vue_type_script_setup_true_lang-CQM-l5Rk.js} +182 -181
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CVShUWJC.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CMioHpn1.js} +5091 -5717
- package/dist/{InsightView-BYW66Wrv.js → InsightView-lnOobZAr.js} +17 -15
- package/dist/{Integration-DQPJBE-0.js → Integration-D5ssimUg.js} +27 -25
- package/dist/{Integrations-BW4H9lUS.js → Integrations-CaqGvkzI.js} +8 -7
- package/dist/{Layout-CMlh08aB.js → Layout-DS0XCT_E.js} +1 -1
- package/dist/LocationSelect.vue_vue_type_script_setup_true_lang-DC9QYJk-.js +8055 -0
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BUvD1_b0.js → MenuTab.vue_vue_type_script_setup_true_lang-nOukNXp3.js} +11 -10
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-TpeQ_Wm1.js → NavigationTab.vue_vue_type_script_setup_true_lang-DXNbt08D.js} +9636 -17677
- package/dist/{OverviewView-BtGpQkBY.js → OverviewView-BkIozvMs.js} +5 -5
- package/dist/{Report-CJ9myNLK.js → Report-HiSGRNhn.js} +27 -25
- package/dist/ReportCanvasView-ILVhB1KL.js +448 -0
- package/dist/{ReportEditor-DtnTBbY1.js → ReportEditor-B4tyVB8s.js} +30 -28
- package/dist/{ReportView-Ci8nFyI9.js → ReportView-CIQQHvWT.js} +14 -13
- package/dist/ReportViewRoute-B3KwVB0v.js +18 -0
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-Ckn2p74A.js → SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js} +1 -1
- package/dist/{Setting-QSiMSAQk.js → Setting-CvToMUKq.js} +5 -5
- package/dist/{Template-CAPlAQO9.js → Template-BBQEaHrM.js} +10 -9
- package/dist/{TileEditor-e7ZCWMU9.js → TileEditor-Cqy98LmJ.js} +19 -17
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-B4g3YPzM.js → TilePageStack.vue_vue_type_script_setup_true_lang-CzggUdfI.js} +3 -3
- package/dist/{TransitionFade-DqIazHHG.js → TransitionFade-D-8BYs6T.js} +36 -33
- package/dist/{_plugin-vue_export-helper-kkiiQoKl.js → _plugin-vue_export-helper-C6QDExPN.js} +276 -291
- package/dist/{app-BAgs-zHf.js → app-Bjt_JuJi.js} +670 -567
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-epD1fsTW.js → formatChartData.worker-BeBGCyYW.js} +1 -1
- package/dist/assets/{processTableData.worker-BJZ_Z45H.js → processTableData.worker-frTYV0ok.js} +39 -39
- package/dist/global-loader-BuxFfehu.js +19 -0
- package/dist/index-CtZE4sab.js +82 -0
- package/dist/report-DjGDWvm3.js +635 -0
- package/dist/report-canvas-frame.html +888 -0
- package/dist/report-canvas-libs/chart.js-4.js +14 -0
- package/dist/report-canvas-libs/fm-ui-1.js +904 -0
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-ChYMJfXG.js → useRestaurantPermission-Dkbh_cv8.js} +4 -4
- package/package.json +1 -1
- package/dist/DateRangeSelect-DYVOvSCA.js +0 -517
|
@@ -1,19 +1,22 @@
|
|
|
1
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
|
-
import { u as
|
|
2
|
+
import { u as fo } from "./global-loader-BuxFfehu.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 {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { u as Lt, _ as an } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
7
|
+
import { W as xe, Q as ho, b as Ge } from "./report-DjGDWvm3.js";
|
|
8
|
+
import { p as go, a as On } from "./index-CtZE4sab.js";
|
|
9
|
+
import { d as Sn } from "./DateRangeSelect-CRsKMi0U.js";
|
|
10
|
+
import { u as vo, F as bo, r as yo, d as Ut } from "./app-Bjt_JuJi.js";
|
|
11
|
+
import { I as rt, b as Cn, c as Rn, g as Eo, a as _o } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CMioHpn1.js";
|
|
12
|
+
import { a as dn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
10
13
|
import { r as fn } from "./i18n-DbyciK4x.js";
|
|
11
14
|
import { useSnackbar as To } from "@feedmepos/ui-library";
|
|
12
|
-
import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
15
|
+
import { g as gt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CQM-l5Rk.js";
|
|
13
16
|
const wo = {
|
|
14
17
|
key: 0,
|
|
15
18
|
class: "flex gap-24 flex-col h-screen w-screen justify-center items-center"
|
|
16
|
-
}, xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
19
|
+
}, xo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ti = /* @__PURE__ */ We({
|
|
17
20
|
__name: "FullScreen",
|
|
18
21
|
setup(t) {
|
|
19
22
|
const { t: e } = Lt(), n = mo(), { isLoading: o } = In(fo()), r = po();
|
|
@@ -1792,7 +1795,7 @@ const vr = {
|
|
|
1792
1795
|
break;
|
|
1793
1796
|
}
|
|
1794
1797
|
return {
|
|
1795
|
-
label:
|
|
1798
|
+
label: go(t[0]),
|
|
1796
1799
|
icon: e,
|
|
1797
1800
|
value: t[1]
|
|
1798
1801
|
};
|
|
@@ -1852,7 +1855,7 @@ const vr = {
|
|
|
1852
1855
|
]);
|
|
1853
1856
|
};
|
|
1854
1857
|
}
|
|
1855
|
-
}),
|
|
1858
|
+
}), wi = /* @__PURE__ */ an(_r, [["__scopeId", "data-v-0535b07b"]]), Tr = {
|
|
1856
1859
|
key: 0,
|
|
1857
1860
|
class: "flex flex-col gap-5"
|
|
1858
1861
|
}, wr = /* @__PURE__ */ We({
|
|
@@ -1888,7 +1891,7 @@ const vr = {
|
|
|
1888
1891
|
], 64);
|
|
1889
1892
|
};
|
|
1890
1893
|
}
|
|
1891
|
-
}),
|
|
1894
|
+
}), xi = /* @__PURE__ */ an(wr, [["__scopeId", "data-v-fa67a3a4"]]);
|
|
1892
1895
|
var J = /* @__PURE__ */ ((t) => (t.Dimension = "DIMENSION", t.Metric = "METRIC", t))(J || {});
|
|
1893
1896
|
const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { class: "flex items-center gap-1 px-3 py-1" }, Or = {
|
|
1894
1897
|
key: 1,
|
|
@@ -2713,17 +2716,17 @@ const xr = { class: "relative" }, Dr = ["placeholder", "onKeydown"], Ir = { clas
|
|
|
2713
2716
|
};
|
|
2714
2717
|
}
|
|
2715
2718
|
}), zr = async (t, e, n = []) => {
|
|
2716
|
-
const { businessId: o } = In(
|
|
2719
|
+
const { businessId: o } = In(vo());
|
|
2717
2720
|
if (!t || !t.trim())
|
|
2718
2721
|
return { valid: !1, queryDatasource: e, error: { message: "Formula is empty" } };
|
|
2719
2722
|
if (!o.value)
|
|
2720
2723
|
return { valid: !1, queryDatasource: e, error: { message: "Business ID is not defined" } };
|
|
2721
2724
|
const r = {
|
|
2722
|
-
fetchType:
|
|
2725
|
+
fetchType: bo.Post,
|
|
2723
2726
|
url: `/${o.value}/formula/validate`,
|
|
2724
2727
|
data: { formula: t, queryDatasource: e, allowedFields: n }
|
|
2725
2728
|
};
|
|
2726
|
-
return
|
|
2729
|
+
return yo.fetch(r);
|
|
2727
2730
|
};
|
|
2728
2731
|
function jr(t) {
|
|
2729
2732
|
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);
|
|
@@ -2732,7 +2735,7 @@ function jr(t) {
|
|
|
2732
2735
|
}
|
|
2733
2736
|
function E(g) {
|
|
2734
2737
|
let L = 0;
|
|
2735
|
-
const H =
|
|
2738
|
+
const H = Sn(
|
|
2736
2739
|
async (M, X) => {
|
|
2737
2740
|
if (!(!o() || X !== L)) {
|
|
2738
2741
|
if (!M) {
|
|
@@ -2858,7 +2861,7 @@ const Kr = { class: "grow" }, qr = {
|
|
|
2858
2861
|
}
|
|
2859
2862
|
function a(s, u) {
|
|
2860
2863
|
var b, y;
|
|
2861
|
-
const f =
|
|
2864
|
+
const f = Cn(n.option), c = Rn(n.option);
|
|
2862
2865
|
((b = n.config) == null ? void 0 : b.type) === rt.TextField && (f !== void 0 && u < f || c !== void 0 && u > c) && (o.value[s] = `Value must be between ${f} and ${c}`);
|
|
2863
2866
|
const E = [...e.value];
|
|
2864
2867
|
((y = n.config) == null ? void 0 : y.type) === rt.Timestamp ? E[s] = i({
|
|
@@ -2923,15 +2926,15 @@ const Kr = { class: "grow" }, qr = {
|
|
|
2923
2926
|
], Jr = Qn.filter(
|
|
2924
2927
|
(t) => t !== Ge.DateTime
|
|
2925
2928
|
);
|
|
2926
|
-
function
|
|
2929
|
+
function Di(t) {
|
|
2927
2930
|
return Qn.map((e) => ({
|
|
2928
|
-
label: t(`report.section.filter.${
|
|
2931
|
+
label: t(`report.section.filter.${On(e)}`),
|
|
2929
2932
|
value: e
|
|
2930
2933
|
}));
|
|
2931
2934
|
}
|
|
2932
2935
|
function ei(t) {
|
|
2933
2936
|
return Jr.map((e) => ({
|
|
2934
|
-
label: t(`report.section.filter.${
|
|
2937
|
+
label: t(`report.section.filter.${On(e)}`),
|
|
2935
2938
|
value: e
|
|
2936
2939
|
}));
|
|
2937
2940
|
}
|
|
@@ -2976,7 +2979,7 @@ function ti({
|
|
|
2976
2979
|
allowedFormulaFields: a
|
|
2977
2980
|
};
|
|
2978
2981
|
}
|
|
2979
|
-
const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body-lg-600" }, ri = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, ii = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" },
|
|
2982
|
+
const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body-lg-600" }, ri = { class: "fm-typo-en-body-sm-600 text-fm-color-neutral-gray-400" }, ii = { class: "fm-typo-en-body-lg-400 text-ellipsis overflow-hidden line-clamp-1" }, Ii = /* @__PURE__ */ We({
|
|
2980
2983
|
__name: "FilterSection",
|
|
2981
2984
|
props: /* @__PURE__ */ kt({
|
|
2982
2985
|
options: {
|
|
@@ -3033,7 +3036,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
|
|
|
3033
3036
|
var v;
|
|
3034
3037
|
return (v = g.value.find((I) => I.option === d)) == null ? void 0 : v.value;
|
|
3035
3038
|
}
|
|
3036
|
-
const H =
|
|
3039
|
+
const H = Sn(
|
|
3037
3040
|
(d, v) => {
|
|
3038
3041
|
const I = g.value.find((te) => te.option === d);
|
|
3039
3042
|
I ? I.value = v : g.value.push({ option: d, value: v });
|
|
@@ -3095,7 +3098,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
|
|
|
3095
3098
|
});
|
|
3096
3099
|
}
|
|
3097
3100
|
function B() {
|
|
3098
|
-
y.value && c.value && (b.value =
|
|
3101
|
+
y.value && c.value && (b.value = Eo({
|
|
3099
3102
|
operator: c.value.operator,
|
|
3100
3103
|
dataType: y.value.type,
|
|
3101
3104
|
dimensionOption: c.value.option,
|
|
@@ -3117,7 +3120,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
|
|
|
3117
3120
|
const d = [...s.value.map((ne) => ne.value)];
|
|
3118
3121
|
if (c.value) {
|
|
3119
3122
|
E.value || (c.value.dataFormula = void 0);
|
|
3120
|
-
const ne =
|
|
3123
|
+
const ne = Cn((v = c.value) == null ? void 0 : v.option), pe = Rn((I = c.value) == null ? void 0 : I.option), Ye = (te = c.value.values) == null ? void 0 : te.map(
|
|
3121
3124
|
(Me, nt) => typeof Me == "number" && !Re(Me, ne, pe) ? nt : null
|
|
3122
3125
|
).filter((Me) => Me !== null);
|
|
3123
3126
|
if (!c.value.values || Ye.length > 0) {
|
|
@@ -3165,7 +3168,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
|
|
|
3165
3168
|
return (d, v) => {
|
|
3166
3169
|
const I = z("FmCheckbox"), te = z("FmSelect"), ne = z("FmForm"), pe = z("FmIcon"), Ye = z("FmButton"), Me = z("FmListItem"), nt = z("FmList"), Pt = z("FmField");
|
|
3167
3170
|
return D(), k("div", ni, [
|
|
3168
|
-
G(
|
|
3171
|
+
G(_o, {
|
|
3169
3172
|
modelValue: a.value,
|
|
3170
3173
|
"onUpdate:modelValue": v[6] || (v[6] = (_e) => a.value = _e),
|
|
3171
3174
|
title: i.value,
|
|
@@ -3286,7 +3289,7 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
|
|
|
3286
3289
|
]);
|
|
3287
3290
|
};
|
|
3288
3291
|
}
|
|
3289
|
-
}),
|
|
3292
|
+
}), Oi = q(null), Si = q([]), ai = /* @__PURE__ */ We({
|
|
3290
3293
|
__name: "TransitionFade",
|
|
3291
3294
|
props: {
|
|
3292
3295
|
modelValue: { type: Boolean, required: !0, default: !0 },
|
|
@@ -3310,20 +3313,20 @@ const ni = { class: "flex flex-col my-2 gap-8" }, oi = { class: "fm-typo-en-body
|
|
|
3310
3313
|
})
|
|
3311
3314
|
], 64));
|
|
3312
3315
|
}
|
|
3313
|
-
}),
|
|
3316
|
+
}), Ci = /* @__PURE__ */ an(ai, [["__scopeId", "data-v-a98ca9bc"]]);
|
|
3314
3317
|
export {
|
|
3315
3318
|
J as F,
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
+
xi as S,
|
|
3320
|
+
Ci as T,
|
|
3321
|
+
wi as W,
|
|
3319
3322
|
Zr as _,
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
+
Ii as a,
|
|
3324
|
+
Oi as b,
|
|
3325
|
+
Ti as c,
|
|
3323
3326
|
yr as d,
|
|
3324
|
-
|
|
3327
|
+
Si as e,
|
|
3325
3328
|
jr as f,
|
|
3326
|
-
|
|
3329
|
+
Di as g,
|
|
3327
3330
|
Gr as h,
|
|
3328
3331
|
ti as u
|
|
3329
3332
|
};
|