@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,18 +1,20 @@
|
|
|
1
1
|
import { defineComponent as we, mergeModels as ke, useModel as Te, ref as E, computed as g, resolveComponent as C, createBlock as x, openBlock as c, withCtx as w, createElementVNode as v, createVNode as u, unref as l, normalizeClass as Le, createTextVNode as Ae, toDisplayString as U, createElementBlock as M, Fragment as he, renderSlot as gt, createCommentVNode as I, watch as pe, renderList as Ee, onMounted as bt, onUnmounted as Dt, resolveDynamicComponent as It, isRef as yt, normalizeStyle as rt } from "vue";
|
|
2
|
-
import { W as Ot, g as Ut, _ as Nt, a as Bt, e as De, S as We, d as ht, b as wt, T as Mt, c as Rt } from "./TransitionFade-
|
|
3
|
-
import { C as xe, D as te,
|
|
2
|
+
import { W as Ot, g as Ut, _ as Nt, a as Bt, e as De, S as We, d as ht, b as wt, T as Mt, c as Rt } from "./TransitionFade-D-8BYs6T.js";
|
|
3
|
+
import { C as xe, D as te, b as ze, F as Je, c as Ie, u as it, i as Pe, d as ce, M as _t, r as zt, e as et, n as Pt, f as qt, g as Et, h as Lt, j as Gt, k as Wt, m as At, a as Ht, o as mt, p as tt, q as jt, Q as Ke, l as Jt, s as Kt } from "./report-DjGDWvm3.js";
|
|
4
4
|
import { storeToRefs as qe } from "pinia";
|
|
5
5
|
import { useRouter as st, useRoute as ut } from "vue-router";
|
|
6
6
|
import { useBreakpoints as Qe, useSnackbar as Ft, FmButtonColorThemeVariant as Ce } from "@feedmepos/ui-library";
|
|
7
7
|
import { u as dt } from "./message-dialog-UoMWOnil.js";
|
|
8
|
-
import { u as
|
|
8
|
+
import { u as Qt } from "./global-loader-BuxFfehu.js";
|
|
9
|
+
import { u as Ge } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
9
10
|
import { r as He } from "./i18n-DbyciK4x.js";
|
|
10
|
-
import { _ as lt } from "./TilePageStack.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { a as ot, _ as at } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { d as
|
|
11
|
+
import { _ as lt } from "./TilePageStack.vue_vue_type_script_setup_true_lang-CzggUdfI.js";
|
|
12
|
+
import { a as ot, _ as at } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
13
|
+
import { d as Yt, e as Xt, i as Zt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CQM-l5Rk.js";
|
|
14
|
+
import { g as el, d as tl, _ as ct } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CMioHpn1.js";
|
|
13
15
|
import { useCoreStore as ll } from "@feedmepos/mf-common";
|
|
14
|
-
import { u as ol, a as al } from "./app-
|
|
15
|
-
import { d as rl } from "./DateRangeSelect-
|
|
16
|
+
import { u as ol, a as al } from "./app-Bjt_JuJi.js";
|
|
17
|
+
import { d as rl } from "./DateRangeSelect-CRsKMi0U.js";
|
|
16
18
|
const nl = /* @__PURE__ */ we({
|
|
17
19
|
__name: "WidgetDialog",
|
|
18
20
|
props: /* @__PURE__ */ ke({
|
|
@@ -218,7 +220,7 @@ const nl = /* @__PURE__ */ we({
|
|
|
218
220
|
}
|
|
219
221
|
function ie(n) {
|
|
220
222
|
if (_.value)
|
|
221
|
-
return
|
|
223
|
+
return el({
|
|
222
224
|
operator: n ?? oe(),
|
|
223
225
|
dataType: _.value.type,
|
|
224
226
|
dimensionOption: _.value.type === te.Timestamp ? D.value ?? null : null,
|
|
@@ -794,7 +796,7 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
794
796
|
wt.value = Q.value, Z.editingTileIndex = t, Z.editingTile = JSON.parse(JSON.stringify(e)), T.push({ name: "tileEditor", query: _.query });
|
|
795
797
|
}
|
|
796
798
|
function ve(e, t) {
|
|
797
|
-
k.value.splice(t + 1, 0,
|
|
799
|
+
k.value.splice(t + 1, 0, zt(e));
|
|
798
800
|
}
|
|
799
801
|
async function J(e, t) {
|
|
800
802
|
var F;
|
|
@@ -809,10 +811,10 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
809
811
|
});
|
|
810
812
|
}
|
|
811
813
|
function _e() {
|
|
812
|
-
a.value && (a.value.tiles || (a.value.tiles = []), a.value.tiles.push(
|
|
814
|
+
a.value && (a.value.tiles || (a.value.tiles = []), a.value.tiles.push(Pt(a.value.tiles.length + 1)));
|
|
813
815
|
}
|
|
814
816
|
function ae(e) {
|
|
815
|
-
|
|
817
|
+
qt(e);
|
|
816
818
|
}
|
|
817
819
|
async function Se(e, t) {
|
|
818
820
|
var F;
|
|
@@ -824,13 +826,13 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
824
826
|
(F = d.report.globalFilters) == null || F.forEach(($) => {
|
|
825
827
|
var B;
|
|
826
828
|
$.tileIds = (B = $.tileIds) == null ? void 0 : B.filter((G) => !y.includes(G));
|
|
827
|
-
}),
|
|
829
|
+
}), Et(e);
|
|
828
830
|
}
|
|
829
831
|
function Oe() {
|
|
830
|
-
k.value.push(
|
|
832
|
+
k.value.push(Lt());
|
|
831
833
|
}
|
|
832
834
|
function Ue() {
|
|
833
|
-
k.value.push(
|
|
835
|
+
k.value.push(Gt());
|
|
834
836
|
}
|
|
835
837
|
function fe(e) {
|
|
836
838
|
var s;
|
|
@@ -873,10 +875,10 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
873
875
|
}), Fe = g({
|
|
874
876
|
get: () => {
|
|
875
877
|
var e, t;
|
|
876
|
-
return be.value === Ie.Custom ?
|
|
878
|
+
return be.value === Ie.Custom ? Yt(((e = a.value) == null ? void 0 : e.tabIcon) ?? "") : ((t = a.value) == null ? void 0 : t.tabIcon) ?? "";
|
|
877
879
|
},
|
|
878
880
|
set: (e) => {
|
|
879
|
-
a.value && (a.value.tabIcon = be.value === Ie.Custom ?
|
|
881
|
+
a.value && (a.value.tabIcon = be.value === Ie.Custom ? Xt(e) : e.trim());
|
|
880
882
|
}
|
|
881
883
|
}), ye = E(!1), Ve = E(null), ee = E([]);
|
|
882
884
|
function $e(e) {
|
|
@@ -909,7 +911,7 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
909
911
|
s(d.report.tiles, 1, "");
|
|
910
912
|
const y = new Set(et(e));
|
|
911
913
|
return t.filter(
|
|
912
|
-
(F) => F.parentId !== Q.value && !(F.parentId && y.has(F.parentId)) &&
|
|
914
|
+
(F) => F.parentId !== Q.value && !(F.parentId && y.has(F.parentId)) && At(e, F.level)
|
|
913
915
|
);
|
|
914
916
|
}
|
|
915
917
|
function Re(e) {
|
|
@@ -919,7 +921,7 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
919
921
|
const t = Ve.value;
|
|
920
922
|
if (!t) return;
|
|
921
923
|
const s = k.value.indexOf(t);
|
|
922
|
-
s >= 0 && k.value.splice(s, 1),
|
|
924
|
+
s >= 0 && k.value.splice(s, 1), Wt(d.report.tiles, e.parentId).push(t), ye.value = !1, Ve.value = null;
|
|
923
925
|
}
|
|
924
926
|
return (e, t) => {
|
|
925
927
|
const s = C("FmButton"), y = C("FmTextField"), F = C("FmSelect"), $ = C("FmTextarea"), B = C("FmStepperField"), G = C("FmIcon"), O = C("FmMenuItem"), re = C("FmMenu"), Y = C("FmList"), m = C("FmListItem"), o = C("FmDialog");
|
|
@@ -1307,7 +1309,7 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
1307
1309
|
editingTileIndex: z,
|
|
1308
1310
|
editingGlobalFilter: a,
|
|
1309
1311
|
editingGlobalFilterIndex: S
|
|
1310
|
-
} = qe(it()), { schemas: k } = qe(
|
|
1312
|
+
} = qe(it()), { schemas: k } = qe(Ht()), { globalFilters: Q } = qe(mt()), { getGlobalFilterLabel: ne } = mt(), { promptMessage: ue } = dt(), W = E(!1), A = E(!1), { t: V, te: X, locale: le } = Ge(), oe = E(void 0), ie = g(() => {
|
|
1311
1313
|
const m = tt(d.value.tiles).flatMap((o) => {
|
|
1312
1314
|
var H;
|
|
1313
1315
|
const r = o.widget.config.schemaNames ?? [], f = ((H = o.widget.config.joinDatasources) == null ? void 0 : H.flatMap((je) => je.schemaNames ?? [])) ?? [];
|
|
@@ -1324,7 +1326,7 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
1324
1326
|
pe(
|
|
1325
1327
|
() => _.value,
|
|
1326
1328
|
() => {
|
|
1327
|
-
_.value !== void 0 && (oe.value =
|
|
1329
|
+
_.value !== void 0 && (oe.value = Zt(_.value), Z.value = oe.value, z.value = -1, wt.value = se.value, q.push({
|
|
1328
1330
|
name: "tileEditor",
|
|
1329
1331
|
query: K.query
|
|
1330
1332
|
}));
|
|
@@ -1333,7 +1335,7 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
1333
1335
|
), pe(
|
|
1334
1336
|
() => d.value.tiles,
|
|
1335
1337
|
(m) => {
|
|
1336
|
-
|
|
1338
|
+
jt(m);
|
|
1337
1339
|
},
|
|
1338
1340
|
{ immediate: !0, deep: !0 }
|
|
1339
1341
|
);
|
|
@@ -1476,7 +1478,7 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
1476
1478
|
const o = await Promise.all(
|
|
1477
1479
|
m.map((r) => {
|
|
1478
1480
|
const f = new AbortController();
|
|
1479
|
-
return G.push(f),
|
|
1481
|
+
return G.push(f), tl({
|
|
1480
1482
|
widget: r.widget,
|
|
1481
1483
|
signal: f.signal,
|
|
1482
1484
|
tileId: r.id,
|
|
@@ -1801,7 +1803,7 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
1801
1803
|
setup(R, { emit: p }) {
|
|
1802
1804
|
const { breakpoints: d } = Qe(), b = Te(R, "modelValue"), i = g(() => {
|
|
1803
1805
|
var _;
|
|
1804
|
-
return
|
|
1806
|
+
return Jt((_ = b.value) == null ? void 0 : _.tiles);
|
|
1805
1807
|
}), h = R, q = g(() => h.previewWidth > 0 && h.previewHeight > 0), K = g(() => d.value.sm || d.value.xs), T = p;
|
|
1806
1808
|
return (_, D) => {
|
|
1807
1809
|
const Z = C("FmCircularProgress"), z = C("FmButton"), a = C("FmMenuDivider"), S = C("FmCard");
|
|
@@ -1912,10 +1914,10 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
1912
1914
|
]);
|
|
1913
1915
|
};
|
|
1914
1916
|
}
|
|
1915
|
-
}), go = { class: "flex items-center gap-4" }, bo = { class: "flex justify-center items-center gap-2 w-full" }, yo = { class: "flex gap-4" },
|
|
1917
|
+
}), go = { class: "flex items-center gap-4" }, bo = { class: "flex justify-center items-center gap-2 w-full" }, yo = { class: "flex gap-4" }, Ro = /* @__PURE__ */ we({
|
|
1916
1918
|
__name: "ReportEditor",
|
|
1917
1919
|
setup(R) {
|
|
1918
|
-
const p = st(), d = ut(), b = it(), { promptLoader: i } =
|
|
1920
|
+
const p = st(), d = ut(), b = it(), { promptLoader: i } = Qt(), { t: h, te: q } = Ge(), { currentReport: K, editingReport: T } = qe(b), { breakpoints: _ } = Qe(), D = g(() => {
|
|
1919
1921
|
var P;
|
|
1920
1922
|
return !((P = T.value) != null && P.editable);
|
|
1921
1923
|
}), Z = g(() => {
|
|
@@ -1930,7 +1932,7 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
1930
1932
|
a.open({ message: h("report.messages.noWidget"), type: "error" });
|
|
1931
1933
|
return;
|
|
1932
1934
|
}
|
|
1933
|
-
if (
|
|
1935
|
+
if (Kt(T.value.tiles) > _t) {
|
|
1934
1936
|
a.open({ message: h("report.messages.tooDeepNesting"), type: "error" });
|
|
1935
1937
|
return;
|
|
1936
1938
|
}
|
|
@@ -2069,5 +2071,5 @@ const Fl = { class: "flex flex-col gap-16" }, Vl = {
|
|
|
2069
2071
|
}
|
|
2070
2072
|
});
|
|
2071
2073
|
export {
|
|
2072
|
-
|
|
2074
|
+
Ro as default
|
|
2073
2075
|
};
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { defineComponent as F, computed as i, createBlock as f, openBlock as y, withCtx as S, renderSlot as ne, ref as ie, watch as ue, resolveComponent as j, createVNode as k, createElementVNode as R, unref as l, toDisplayString as ce, normalizeStyle as pe, normalizeClass as me } from "vue";
|
|
2
|
-
import { _ as de } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as ve } from "./TilePageStack.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as fe, l as ye,
|
|
2
|
+
import { _ as de } from "./MenuTab.vue_vue_type_script_setup_true_lang-nOukNXp3.js";
|
|
3
|
+
import { _ as ve } from "./TilePageStack.vue_vue_type_script_setup_true_lang-CzggUdfI.js";
|
|
4
|
+
import { u as fe, l as ye, t as ge } from "./report-DjGDWvm3.js";
|
|
5
5
|
import { useRouter as be, useRoute as _e } from "vue-router";
|
|
6
|
-
import { _ as we } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as we } from "./Default.vue_vue_type_script_setup_true_lang-WGOOX2b8.js";
|
|
7
7
|
import { storeToRefs as w } from "pinia";
|
|
8
|
-
import {
|
|
9
|
-
import { _ as V } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { a as Se, b as he, u as Ce, g as xe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-DXNbt08D.js";
|
|
9
|
+
import { _ as V } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
10
10
|
import { useSnackbar as Te, useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
11
|
-
import { u as
|
|
12
|
-
import { u as
|
|
13
|
-
import { e as
|
|
11
|
+
import { u as Re } from "./global-loader-BuxFfehu.js";
|
|
12
|
+
import { u as Pe } from "./message-dialog-UoMWOnil.js";
|
|
13
|
+
import { e as De, h as Ie } from "./app-Bjt_JuJi.js";
|
|
14
|
+
import { u as z, _ as Oe } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
14
15
|
import { r as $e } from "./i18n-DbyciK4x.js";
|
|
15
16
|
const Ae = /* @__PURE__ */ F({
|
|
16
17
|
__name: "NoPermission",
|
|
@@ -33,7 +34,7 @@ const Ae = /* @__PURE__ */ F({
|
|
|
33
34
|
}), Ee = { class: "fm-typo-en-title-md-600 block min-w-0 max-w-full overflow-hidden text-ellipsis whitespace-nowrap" }, Ne = { class: "sticky top-0 z-10 bg-white" }, Je = /* @__PURE__ */ F({
|
|
34
35
|
__name: "ReportView",
|
|
35
36
|
setup(P) {
|
|
36
|
-
const { t: e, te: g } = z(), d = be(), p = _e(), r = Te(), { promptMessage: h } =
|
|
37
|
+
const { t: e, te: g } = z(), d = be(), p = _e(), r = Te(), { promptMessage: h } = Pe(), m = fe(), D = Se(), { promptLoader: b } = Re(), { breakpoints: u } = ke(), { isOpenAccountingDialog: L } = w(he()), { isOpenScheduleDialog: I } = w(Ce()), { disabled: O } = w(De()), $ = ie(null), A = i(
|
|
37
38
|
() => {
|
|
38
39
|
var a;
|
|
39
40
|
return ((a = $.value) == null ? void 0 : a.reportId) === c.value;
|
|
@@ -50,7 +51,7 @@ const Ae = /* @__PURE__ */ F({
|
|
|
50
51
|
editingReport: Y,
|
|
51
52
|
canCreateCustomReport: G,
|
|
52
53
|
customReportQuota: E
|
|
53
|
-
} = w(m), { canRead: Q, canUpdate: K, canDuplicate: X, isAdmin: Z } =
|
|
54
|
+
} = w(m), { canRead: Q, canUpdate: K, canDuplicate: X, isAdmin: Z } = Ie(), _ = i(() => o.value ? Q(o.value) : !0), C = i(
|
|
54
55
|
() => _.value && Z.value && !!o.value && !o.value.isDefault
|
|
55
56
|
);
|
|
56
57
|
ue(
|
|
@@ -322,7 +323,7 @@ const Ae = /* @__PURE__ */ F({
|
|
|
322
323
|
});
|
|
323
324
|
};
|
|
324
325
|
}
|
|
325
|
-
}),
|
|
326
|
+
}), Xe = /* @__PURE__ */ Oe(Je, [["__scopeId", "data-v-721a94f1"]]);
|
|
326
327
|
export {
|
|
327
|
-
|
|
328
|
+
Xe as default
|
|
328
329
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defineComponent as i, defineAsyncComponent as t, computed as m, createBlock as r, openBlock as n, unref as o } from "vue";
|
|
2
|
+
import { useRoute as f } from "vue-router";
|
|
3
|
+
import { u as _ } from "./report-DjGDWvm3.js";
|
|
4
|
+
const v = /* @__PURE__ */ i({
|
|
5
|
+
__name: "ReportViewRoute",
|
|
6
|
+
setup(R) {
|
|
7
|
+
const p = t(() => import("./ReportView-CIQQHvWT.js")), s = t(() => import("./ReportCanvasView-ILVhB1KL.js")), c = f(), u = _(), a = m(() => {
|
|
8
|
+
var e;
|
|
9
|
+
return ((e = u.currentReport) == null ? void 0 : e.reportType) === "canvas";
|
|
10
|
+
});
|
|
11
|
+
return (e, d) => a.value ? (n(), r(o(s), {
|
|
12
|
+
key: String(o(c).query.reportId ?? "")
|
|
13
|
+
})) : (n(), r(o(p), { key: 1 }));
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
v as default
|
|
18
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as S, computed as d, resolveComponent as s, createElementBlock as y, openBlock as i, renderSlot as N, createVNode as m, withCtx as c, createCommentVNode as j, createElementVNode as r, toDisplayString as v, mergeModels as A, useModel as B, ref as F, createBlock as x, normalizeStyle as O, withDirectives as P, unref as z, vShow as L, Fragment as R, renderList as U, normalizeClass as E } from "vue";
|
|
2
|
-
import { u as w } from "./_plugin-vue_export-helper-
|
|
2
|
+
import { u as w } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
3
3
|
const H = { class: "flex flex-col h-full" }, q = ["src"], G = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, J = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Z = /* @__PURE__ */ S({
|
|
4
4
|
__name: "NoData",
|
|
5
5
|
props: {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as R, ref as N, useModel as L, resolveComponent as V, createElementBlock as $, openBlock as h, createBlock as U, createElementVNode as t, resolveDynamicComponent as ue, unref as e, withCtx as b, createVNode as n, normalizeClass as B, toDisplayString as a, Fragment as W, renderList as X, createTextVNode as de, withDirectives as Y, vShow as ee, createCommentVNode as pe, computed as q, watch as ce, normalizeStyle as fe } from "vue";
|
|
2
|
-
import { _ as _e } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as A, C as G, D as ve,
|
|
2
|
+
import { _ as _e } from "./Default.vue_vue_type_script_setup_true_lang-WGOOX2b8.js";
|
|
3
|
+
import { d as A, C as G, D as ve, l as ge, m as Z, a as ye } from "./app-Bjt_JuJi.js";
|
|
4
4
|
import { components as K, useSnackbar as te, useBreakpoints as oe, FmButtonColorThemeVariant as Q } from "@feedmepos/ui-library";
|
|
5
|
-
import {
|
|
5
|
+
import { e as le, t as E, s as he } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CMioHpn1.js";
|
|
6
6
|
import { u as xe } from "./message-dialog-UoMWOnil.js";
|
|
7
|
-
import { u as w } from "./_plugin-vue_export-helper-
|
|
7
|
+
import { u as w } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
8
8
|
import { detectLocale as F } from "@feedmepos/mf-common";
|
|
9
|
-
import { a as j } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { a as j } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
10
10
|
import { storeToRefs as be } from "pinia";
|
|
11
11
|
const Ve = { class: "px-5 py-2" }, Te = { class: "flex" }, Ce = { class: "flex px-5 gap-2" }, De = { class: "flex flex-col gap-2" }, $e = { class: "fm-typo-en-title-sm-600" }, Se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "w-full gap-[24px] flex flex-col pt-2" }, Fe = { class: "flex items-center w-full gap-3" }, Re = { class: "text-fm-color-typo-primary" }, we = { class: "text-fm-color-typo-secondary" }, Oe = { class: "flex items-center gap-2" }, He = /* @__PURE__ */ R({
|
|
12
12
|
__name: "ReportHour",
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { defineComponent as ie, computed as u, resolveComponent as v, createElementBlock as A, openBlock as _, renderSlot as Ve, createVNode as n, withCtx as s, createCommentVNode as q, createElementVNode as i, toDisplayString as d, ref as b, h as p, onMounted as Le, createBlock as R, unref as l, normalizeStyle as Se, normalizeClass as C, withDirectives as ae, Fragment as $e, renderList as Ie, withModifiers as re, vShow as ne } from "vue";
|
|
2
|
-
import { a as Re } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as me
|
|
4
|
-
import { _ as
|
|
2
|
+
import { a as Re } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
3
|
+
import { u as me } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
4
|
+
import { _ as Pe } from "./Default.vue_vue_type_script_setup_true_lang-WGOOX2b8.js";
|
|
5
|
+
import { u as ze } from "./global-loader-BuxFfehu.js";
|
|
5
6
|
import { u as De } from "./message-dialog-UoMWOnil.js";
|
|
6
|
-
import { u as Ne } from "./
|
|
7
|
+
import { u as Ne } from "./report-DjGDWvm3.js";
|
|
7
8
|
import { r as se } from "./i18n-DbyciK4x.js";
|
|
8
9
|
import { useBreakpoints as Be, useSnackbar as Me, components as Ee, FmButtonColorThemeVariant as Ke } from "@feedmepos/ui-library";
|
|
9
10
|
import { useRouter as Ue, useRoute as He } from "vue-router";
|
|
10
11
|
import { storeToRefs as Oe } from "pinia";
|
|
11
|
-
import { h as je } from "./app-
|
|
12
|
+
import { h as je } from "./app-Bjt_JuJi.js";
|
|
12
13
|
const Ae = { class: "flex flex-col h-full" }, qe = ["src"], Ge = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Je = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Qe = /* @__PURE__ */ ie({
|
|
13
14
|
__name: "NoTemplate",
|
|
14
15
|
props: {
|
|
@@ -45,10 +46,10 @@ const Ae = { class: "flex flex-col h-full" }, qe = ["src"], Ge = { class: "fm-ty
|
|
|
45
46
|
]);
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
}), We = { class: "flex items-center gap-2" }, Xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ye = { class: "w-[343px]" }, Ze = { class: "flex items-center gap-2" }, et = { class: "fm-typo-en-body-sm-600" }, tt = { class: "fm-typo-en-body-md-600" }, ot = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, lt = { class: "fm-typo-en-title-sm-600" }, at = { class: "flex flex-col gap-3" }, rt = { class: "flex flex-col gap-1" }, nt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" },
|
|
49
|
+
}), We = { class: "flex items-center gap-2" }, Xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ye = { class: "w-[343px]" }, Ze = { class: "flex items-center gap-2" }, et = { class: "fm-typo-en-body-sm-600" }, tt = { class: "fm-typo-en-body-md-600" }, ot = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, lt = { class: "fm-typo-en-title-sm-600" }, at = { class: "flex flex-col gap-3" }, rt = { class: "flex flex-col gap-1" }, nt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, _t = /* @__PURE__ */ ie({
|
|
49
50
|
__name: "Template",
|
|
50
51
|
setup(G) {
|
|
51
|
-
const w = Ne(), { isAdmin: x, canManageTemplate: g } = je(), { breakpoints: m } = Be(), { t, te: k } = me(), f = Ue(), J = He(), c = Me(), { promptLoader: Q } =
|
|
52
|
+
const w = Ne(), { isAdmin: x, canManageTemplate: g } = je(), { breakpoints: m } = Be(), { t, te: k } = me(), f = Ue(), J = He(), c = Me(), { promptLoader: Q } = ze(), { promptMessage: W } = De(), { FmButton: N, FmMenu: B, FmMenuItem: F, FmIcon: M, FmChip: V, FmSearch: ce, FmTooltip: pe } = Ee, { editingReport: ue, reportTemplates: de, categories: fe } = Oe(w), E = u(() => fe.value ?? []), X = u(() => de.value ?? []), K = u(() => [
|
|
52
53
|
{
|
|
53
54
|
label: t("report.common.all"),
|
|
54
55
|
value: void 0
|
|
@@ -295,7 +296,7 @@ const Ae = { class: "flex flex-col h-full" }, qe = ["src"], Ge = { class: "fm-ty
|
|
|
295
296
|
await w.getReportTemplates();
|
|
296
297
|
}), (o, e) => {
|
|
297
298
|
const a = v("FmPageHead"), y = v("FmForm"), O = v("FmListItem"), Te = v("FmList"), Ce = v("FmTable"), le = v("FmTextField"), ke = v("FmSwitch"), Fe = v("FmDialog");
|
|
298
|
-
return _(), R(
|
|
299
|
+
return _(), R(Pe, null, {
|
|
299
300
|
default: s(() => [
|
|
300
301
|
n(a, {
|
|
301
302
|
title: l(t)("report.view.template.title"),
|
|
@@ -517,5 +518,5 @@ const Ae = { class: "flex flex-col h-full" }, qe = ["src"], Ge = { class: "fm-ty
|
|
|
517
518
|
}
|
|
518
519
|
});
|
|
519
520
|
export {
|
|
520
|
-
|
|
521
|
+
_t as default
|
|
521
522
|
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { defineComponent as de, mergeModels as ve, useModel as ge, computed as C, ref as oe, resolveComponent as A, createElementBlock as W, openBlock as m, createVNode as u, createElementVNode as g, unref as l, withCtx as Z, toDisplayString as K, Fragment as me, renderList as $e, withModifiers as he, createTextVNode as Xe, watch as ke, createCommentVNode as P, createBlock as z, renderSlot as Fl, onBeforeUnmount as ul, resolveDynamicComponent as Vl, normalizeClass as Ve, withDirectives as Fe, vShow as Te, onMounted as Sl, withKeys as fl, vModelText as Xl, normalizeStyle as sl, isRef as Hl } from "vue";
|
|
2
2
|
import { useRoute as ql, useRouter as Gl } from "vue-router";
|
|
3
|
-
import { u as dl, f as ml, h as We, F as Ne, d as He, S as rl, a as Yl, W as Jl, T as Kl, c as Ql, b as gl } from "./TransitionFade-
|
|
4
|
-
import { W as J, a as _l,
|
|
3
|
+
import { u as dl, f as ml, h as We, F as Ne, d as He, S as rl, a as Yl, W as Jl, T as Kl, c as Ql, b as gl } from "./TransitionFade-D-8BYs6T.js";
|
|
4
|
+
import { W as J, a as _l, D as Ke, S as yl, C as Zl, u as Tl, P as bl, F as Pe, c as Le, o as et, k as lt } from "./report-DjGDWvm3.js";
|
|
5
5
|
import { storeToRefs as Re } from "pinia";
|
|
6
6
|
import { u as $l } from "./message-dialog-UoMWOnil.js";
|
|
7
|
-
import { useSnackbar as
|
|
8
|
-
import { h as
|
|
9
|
-
import { a as
|
|
10
|
-
import {
|
|
7
|
+
import { useSnackbar as tt, useBreakpoints as Dl, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
|
|
8
|
+
import { h as ot, g as xe, R as hl, d as at, e as nt, a as it, L as Ae, b as al, S as re, c as fe, f as nl, j as wl, _ as Ul } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CQM-l5Rk.js";
|
|
9
|
+
import { a as qe, _ as st } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CMioHpn1.js";
|
|
10
|
+
import { a as be, _ as Bl } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
11
|
+
import { u as pe, _ as Ll } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
11
12
|
import { r as ue } from "./i18n-DbyciK4x.js";
|
|
12
|
-
import { a as je
|
|
13
|
-
import {
|
|
13
|
+
import { a as je } from "./index-CtZE4sab.js";
|
|
14
|
+
import { d as Qe } from "./DateRangeSelect-CRsKMi0U.js";
|
|
15
|
+
import { a as rt, d as Je } from "./app-Bjt_JuJi.js";
|
|
14
16
|
const tl = [
|
|
15
17
|
{
|
|
16
18
|
type: J.Circular,
|
|
@@ -195,7 +197,7 @@ const tl = [
|
|
|
195
197
|
const r = a.value.schemaNames[0], b = _.value.find((L) => L.name === r), R = ((b == null ? void 0 : b.joins) || []).map((L) => L);
|
|
196
198
|
return w.value.filter((L) => R.includes(L.raw.name));
|
|
197
199
|
}
|
|
198
|
-
}), S = oe(!1), N = oe(""), n = oe(), i =
|
|
200
|
+
}), S = oe(!1), N = oe(""), n = oe(), i = tt();
|
|
199
201
|
function f(r) {
|
|
200
202
|
var b;
|
|
201
203
|
return ue(
|
|
@@ -261,7 +263,7 @@ const tl = [
|
|
|
261
263
|
name: "close",
|
|
262
264
|
onClick: he(
|
|
263
265
|
() => {
|
|
264
|
-
a.value.schemaNames = l(
|
|
266
|
+
a.value.schemaNames = l(ot)(a.value.schemaNames, F);
|
|
265
267
|
},
|
|
266
268
|
["stop"]
|
|
267
269
|
)
|
|
@@ -2012,10 +2014,10 @@ const zt = { class: "flex flex-col gap-5" }, Pt = { class: "fm-typo-en-body-lg-6
|
|
|
2012
2014
|
a(), _("update:model", { ...o.model, showSearchBar: F });
|
|
2013
2015
|
}
|
|
2014
2016
|
}), B = C({
|
|
2015
|
-
get: () => o.model.titleIconType === Le.Custom ?
|
|
2017
|
+
get: () => o.model.titleIconType === Le.Custom ? at(o.model.titleIcon ?? "") : o.model.titleIcon ?? "",
|
|
2016
2018
|
set: (F) => {
|
|
2017
2019
|
a();
|
|
2018
|
-
const I = r.value === Le.Custom ?
|
|
2020
|
+
const I = r.value === Le.Custom ? nt(F) : F.trim();
|
|
2019
2021
|
_("update:model", { ...o.model, titleIcon: I });
|
|
2020
2022
|
}
|
|
2021
2023
|
}), r = C({
|
|
@@ -2207,7 +2209,7 @@ const zt = { class: "flex flex-col gap-5" }, Pt = { class: "fm-typo-en-body-lg-6
|
|
|
2207
2209
|
}
|
|
2208
2210
|
function b() {
|
|
2209
2211
|
const d = [...p.value.widget.config.joinDatasources || []];
|
|
2210
|
-
d.push({ ...
|
|
2212
|
+
d.push({ ...it(p.value.widget.type), conditions: [] }), r({
|
|
2211
2213
|
...p.value,
|
|
2212
2214
|
widget: {
|
|
2213
2215
|
...p.value.widget,
|
|
@@ -4102,7 +4104,7 @@ const zt = { class: "flex flex-col gap-5" }, Pt = { class: "fm-typo-en-body-lg-6
|
|
|
4102
4104
|
}, Ua = {
|
|
4103
4105
|
key: 0,
|
|
4104
4106
|
class: "flex items-start justify-start px-24 py-12 flex-wrap w-full"
|
|
4105
|
-
},
|
|
4107
|
+
}, qa = /* @__PURE__ */ de({
|
|
4106
4108
|
__name: "TileEditor",
|
|
4107
4109
|
setup($) {
|
|
4108
4110
|
const c = ql(), e = Gl(), a = Tl(), { globalFilters: o } = Re(et()), { currentSelectWidgetType: _, editingReport: w, editingTile: p, editingTileIndex: S } = Re(a), { breakpoints: N } = Dl(), { promptMessage: n } = $l(), { t: i, te: f } = pe(), k = C(() => {
|
|
@@ -4123,7 +4125,7 @@ const zt = { class: "flex flex-col gap-5" }, Pt = { class: "fm-typo-en-body-lg-6
|
|
|
4123
4125
|
title: i("report.tile.save.title"),
|
|
4124
4126
|
message: i("report.tile.save.confirm", { title: ((s = (y = p.value) == null ? void 0 : y.widget) == null ? void 0 : s.title) ?? "" })
|
|
4125
4127
|
}) && p.value) {
|
|
4126
|
-
const F =
|
|
4128
|
+
const F = lt(w.value.tiles, gl.value);
|
|
4127
4129
|
S.value === -1 ? F.push(p.value) : F[S.value] = p.value, r();
|
|
4128
4130
|
}
|
|
4129
4131
|
}
|
|
@@ -4159,7 +4161,7 @@ const zt = { class: "flex flex-col gap-5" }, Pt = { class: "fm-typo-en-body-lg-6
|
|
|
4159
4161
|
const I = F.tileIds, M = l(p) && l(p).id;
|
|
4160
4162
|
return Array.isArray(I) && typeof M == "string" && I.includes(M);
|
|
4161
4163
|
}) ? (m(), W("div", Ua, [
|
|
4162
|
-
u(
|
|
4164
|
+
u(st)
|
|
4163
4165
|
])) : P("", !0),
|
|
4164
4166
|
l(p) ? (m(), z(Vl(l(N).lg || l(N).md ? Sa : $a), {
|
|
4165
4167
|
key: 1,
|
|
@@ -4178,5 +4180,5 @@ const zt = { class: "flex flex-col gap-5" }, Pt = { class: "fm-typo-en-body-lg-6
|
|
|
4178
4180
|
}
|
|
4179
4181
|
});
|
|
4180
4182
|
export {
|
|
4181
|
-
|
|
4183
|
+
qa as default
|
|
4182
4184
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as R, reactive as J, resolveComponent as B, createElementBlock as d, openBlock as n, Fragment as I, renderList as P, createBlock as V, createCommentVNode as y, unref as oe, normalizeStyle as w, normalizeClass as l, withCtx as C, createVNode as u, createElementVNode as $, toDisplayString as T, mergeProps as ne, createSlots as ie, withDirectives as G, vShow as L, ref as de, watch as se } from "vue";
|
|
2
|
-
import { u as X } from "./_plugin-vue_export-helper-
|
|
3
|
-
import {
|
|
4
|
-
import { i as fe, F as D, W as ye } from "./
|
|
2
|
+
import { u as X } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
3
|
+
import { k as ae, _ as O, l as ce, m as le, n as ue, t as pe, p as me } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-CQM-l5Rk.js";
|
|
4
|
+
import { i as fe, F as D, W as ye } from "./report-DjGDWvm3.js";
|
|
5
5
|
import { useBreakpoints as he } from "@feedmepos/ui-library";
|
|
6
6
|
import { r as Y } from "./i18n-DbyciK4x.js";
|
|
7
7
|
const _e = {
|