@feedmepos/mf-report 5.31.3 → 5.32.0-beta.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-o4z-EAO1.js +339 -0
- package/dist/{DateRangeSelect-kBTiWzl8.js → DateRangeSelect-DO3T_rQs.js} +18 -18
- package/dist/{Default.vue_vue_type_script_setup_true_lang-QJJFd-aD.js → Default.vue_vue_type_script_setup_true_lang-CW_VllVL.js} +1 -1
- package/dist/DigestListView-DG-vojKl.js +637 -0
- package/dist/DigestReaderView-bRfEYtZA.js +507 -0
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-dhMaJAWF.js → DynamicWidget.vue_vue_type_script_setup_true_lang-Bfmd5eMI.js} +173 -173
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Odt_cfjt.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-vy0FZKv0.js} +154 -154
- package/dist/{InsightView-CoyqETUU.js → InsightView-sLKiFc_-.js} +16 -16
- package/dist/{Integration-nK20FSKv.js → Integration-CZn5gvF8.js} +3 -3
- package/dist/{Integrations-B2zhjy-7.js → Integrations-I0rHAfPo.js} +2 -2
- package/dist/{Layout-Dl7UP2Mh.js → Layout-DPEfiH3f.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DroCP4X4.js → LocationSelect.vue_vue_type_script_setup_true_lang-DFQ943gj.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Es9KEHbl.js → MenuTab.vue_vue_type_script_setup_true_lang-BjJcvN_z.js} +9 -9
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BohRRfew.js → NavigationTab.vue_vue_type_script_setup_true_lang-zUF-G98m.js} +6 -6
- package/dist/{OverviewView-_5c2H2MT.js → OverviewView-CJS82eII.js} +5 -5
- package/dist/{Report-2w23PAp1.js → Report-DDYgnr3v.js} +30 -30
- package/dist/ReportCanvasView-m_qW7QgV.js +966 -0
- package/dist/{ReportEditor-Bd6WesQn.js → ReportEditor-CrMd2q2a.js} +7 -7
- package/dist/{ReportView-DlYt2nTi.js → ReportView-CKLzDw5j.js} +6 -6
- package/dist/{ReportViewRoute-37OLAHAq.js → ReportViewRoute-BrLi7iXr.js} +2 -2
- package/dist/{Setting-PmW3vgf2.js → Setting-BUmSYXCO.js} +3 -3
- package/dist/{Template-DkTDUZL3.js → Template-CljYVpCi.js} +18 -18
- package/dist/{TileEditor-B_X1Z1IF.js → TileEditor-3fV8xOVc.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Dj9ImYdH.js → TilePageStack.vue_vue_type_script_setup_true_lang-Biwl30EU.js} +2 -2
- package/dist/{TransitionFade-k7vzRKon.js → TransitionFade-BUSdiKFH.js} +5 -5
- package/dist/{app-DOyssexi.js → app-BXVd3ce-.js} +3354 -2967
- package/dist/app.js +4 -4
- package/dist/assets/{formatChartData.worker-R9EGYsk6.js → formatChartData.worker-BprlZnJs.js} +80 -58
- package/dist/assets/{processTableData.worker-CxpDa0tB.js → processTableData.worker-D5GSFMnH.js} +83 -61
- package/dist/{currency-Dzf-h7uE.js → currency-C6h0cwip.js} +1 -1
- package/dist/{index-uhMfapU4.js → index-BoeJLw2U.js} +1279 -1244
- package/dist/{report-D1hOlAxl.js → report-DG-20Pq8.js} +18 -18
- package/dist/report-canvas-libs/components-1.js +1126 -71
- package/dist/report-canvas-libs/geo-outlines-1.js +1 -1
- package/dist/style.css +1 -1
- package/dist/useDigestFont-Gf1l5qYq.js +205 -0
- package/dist/{ReportCanvasView-C0WPmew5.js → useReportCanvasPanel-CquUHqIK.js} +2933 -3477
- package/dist/{useRestaurantPermission-DdscVgP6.js → useRestaurantPermission-BNu9cN13.js} +1 -1
- package/package.json +1 -1
- package/dist/App-CAzuIycx.js +0 -339
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as p, F as m,
|
|
1
|
+
import { u as p, F as m, v, y as ye, a as be, b as we, B as Se, g as Ie } from "./app-BXVd3ce-.js";
|
|
2
2
|
import { storeToRefs as l, defineStore as j } from "pinia";
|
|
3
3
|
import { ref as i, computed as $, watch as Ae } from "vue";
|
|
4
4
|
import { useSnackbar as W } from "@feedmepos/ui-library";
|
|
@@ -202,7 +202,7 @@ function re(e = [], t) {
|
|
|
202
202
|
if (s) return s;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
function
|
|
205
|
+
function yt(e, t) {
|
|
206
206
|
if (!t) return e;
|
|
207
207
|
const r = re(e, t);
|
|
208
208
|
return r ? (r.tiles || (r.tiles = []), r.tiles) : e;
|
|
@@ -212,7 +212,7 @@ function J(e) {
|
|
|
212
212
|
const t = Y(e) ? e.tiles.flatMap((r) => r.tiles ?? []) : e.tiles;
|
|
213
213
|
return t.length === 0 ? 2 : 1 + Math.max(...t.map(J));
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function bt(e = []) {
|
|
216
216
|
return e.length === 0 ? 0 : Math.max(...e.map(J));
|
|
217
217
|
}
|
|
218
218
|
function wt(e, t) {
|
|
@@ -330,8 +330,8 @@ const st = j(nt, () => {
|
|
|
330
330
|
var f;
|
|
331
331
|
if (!o) return;
|
|
332
332
|
const g = `${o}|`;
|
|
333
|
-
Object.keys(t.value).forEach((
|
|
334
|
-
|
|
333
|
+
Object.keys(t.value).forEach((b) => {
|
|
334
|
+
b.startsWith(g) && delete t.value[b];
|
|
335
335
|
}), (f = R.value) != null && f.startsWith(g) && S();
|
|
336
336
|
}
|
|
337
337
|
function U(o) {
|
|
@@ -346,7 +346,7 @@ const st = j(nt, () => {
|
|
|
346
346
|
function G(o) {
|
|
347
347
|
return s.value[o] ?? 0;
|
|
348
348
|
}
|
|
349
|
-
function
|
|
349
|
+
function y(o) {
|
|
350
350
|
R.value = o;
|
|
351
351
|
}
|
|
352
352
|
function S() {
|
|
@@ -369,7 +369,7 @@ const st = j(nt, () => {
|
|
|
369
369
|
setIncludeUnavailable: U,
|
|
370
370
|
incrementAppliedTilesFiltersVersion: E,
|
|
371
371
|
getAppliedTileFiltersVersion: G,
|
|
372
|
-
openMenu:
|
|
372
|
+
openMenu: y,
|
|
373
373
|
closeMenu: S,
|
|
374
374
|
getGlobalFilterKey: X,
|
|
375
375
|
getGlobalFilterLabel: M
|
|
@@ -428,17 +428,17 @@ async function ut(e, t) {
|
|
|
428
428
|
url: `/businesses/${r.value}/my-permissions/report-manage`,
|
|
429
429
|
data: { permissionKey: e, label: t }
|
|
430
430
|
};
|
|
431
|
-
await
|
|
431
|
+
await ye.fetch(s);
|
|
432
432
|
}
|
|
433
433
|
const ct = "mf-reportreport-store", _t = j(ct, () => {
|
|
434
|
-
const { business: e } = l(
|
|
434
|
+
const { business: e } = l(be()), { globalFilters: t } = l(st()), { schemas: r } = l(it()), { flags: s } = l(we()), c = i([]), R = i([]), w = i([]), I = i(0), _ = W(), L = $e(), A = $(() => c.value.filter((n) => n.editable)), F = $(() => c.value.filter((n) => !n.editable)), U = i(!1), E = i(""), G = i(), y = i(), S = $(() => {
|
|
435
435
|
const n = s.value.find(
|
|
436
436
|
(a) => a.key === Se.report_portal_integration_custom_report
|
|
437
437
|
);
|
|
438
438
|
return typeof (n == null ? void 0 : n.value) == "number" ? n.value : null;
|
|
439
439
|
}), { isReportPermissionEnabled: M } = Ie(), o = $(() => S.value === null ? !0 : S.value - A.value.length > 0);
|
|
440
440
|
async function g() {
|
|
441
|
-
return
|
|
441
|
+
return y.value = await Ke(), y.value && H(y.value.tiles), y.value;
|
|
442
442
|
}
|
|
443
443
|
async function f() {
|
|
444
444
|
var n;
|
|
@@ -452,7 +452,7 @@ const ct = "mf-reportreport-store", _t = j(ct, () => {
|
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
454
|
}
|
|
455
|
-
async function
|
|
455
|
+
async function b() {
|
|
456
456
|
try {
|
|
457
457
|
R.value = await Be(), w.value.length === 0 && (w.value = await q());
|
|
458
458
|
} catch (n) {
|
|
@@ -519,13 +519,13 @@ const ct = "mf-reportreport-store", _t = j(ct, () => {
|
|
|
519
519
|
await Je(n), await g();
|
|
520
520
|
}
|
|
521
521
|
async function ge(n) {
|
|
522
|
-
await ke(n), await
|
|
522
|
+
await ke(n), await b();
|
|
523
523
|
}
|
|
524
524
|
async function ve(n) {
|
|
525
|
-
await xe(n), await
|
|
525
|
+
await xe(n), await b();
|
|
526
526
|
}
|
|
527
527
|
async function he(n) {
|
|
528
|
-
await He(n), await
|
|
528
|
+
await He(n), await b();
|
|
529
529
|
}
|
|
530
530
|
function O(n) {
|
|
531
531
|
E.value = n;
|
|
@@ -578,7 +578,7 @@ const ct = "mf-reportreport-store", _t = j(ct, () => {
|
|
|
578
578
|
editableReports: A,
|
|
579
579
|
nonEditableReports: F,
|
|
580
580
|
isOpenAddReportDialog: U,
|
|
581
|
-
overviewReport:
|
|
581
|
+
overviewReport: y,
|
|
582
582
|
pinReport: B,
|
|
583
583
|
scrollPositionY: I,
|
|
584
584
|
customReportQuota: S,
|
|
@@ -587,7 +587,7 @@ const ct = "mf-reportreport-store", _t = j(ct, () => {
|
|
|
587
587
|
removeReport: pe,
|
|
588
588
|
updateCurrentReportId: O,
|
|
589
589
|
getReports: f,
|
|
590
|
-
getReportTemplates:
|
|
590
|
+
getReportTemplates: b,
|
|
591
591
|
updateDefaultReport: me,
|
|
592
592
|
createReportTemplate: ge,
|
|
593
593
|
updateReportTemplate: ve,
|
|
@@ -620,7 +620,7 @@ export {
|
|
|
620
620
|
Pt as h,
|
|
621
621
|
Y as i,
|
|
622
622
|
It as j,
|
|
623
|
-
|
|
623
|
+
yt as k,
|
|
624
624
|
Et as l,
|
|
625
625
|
wt as m,
|
|
626
626
|
rt as n,
|
|
@@ -629,7 +629,7 @@ export {
|
|
|
629
629
|
H as q,
|
|
630
630
|
St as r,
|
|
631
631
|
Rt as s,
|
|
632
|
-
|
|
632
|
+
bt as t,
|
|
633
633
|
_t as u,
|
|
634
634
|
D as v,
|
|
635
635
|
Ge as w,
|