@feedmepos/mf-report 5.31.3 → 5.32.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-CAzuIycx.js → App-DmCGLjX7.js} +99 -99
- package/dist/{DateRangeSelect-kBTiWzl8.js → DateRangeSelect-ByNkTDjz.js} +18 -18
- package/dist/{Default.vue_vue_type_script_setup_true_lang-QJJFd-aD.js → Default.vue_vue_type_script_setup_true_lang-B0KI2grl.js} +1 -1
- package/dist/DigestListView-De9tIPMS.js +637 -0
- package/dist/DigestReaderView-DO_nmqE8.js +507 -0
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-dhMaJAWF.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BCrF_c93.js} +173 -173
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Odt_cfjt.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CqSpNI7C.js} +154 -154
- package/dist/{InsightView-CoyqETUU.js → InsightView-C-CwTtk_.js} +16 -16
- package/dist/{Integration-nK20FSKv.js → Integration-BRNvT1Bi.js} +3 -3
- package/dist/{Integrations-B2zhjy-7.js → Integrations-apd0BYi4.js} +2 -2
- package/dist/{Layout-Dl7UP2Mh.js → Layout-CAcG75jm.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-DroCP4X4.js → LocationSelect.vue_vue_type_script_setup_true_lang-D77iP1So.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Es9KEHbl.js → MenuTab.vue_vue_type_script_setup_true_lang-0FI-8jfq.js} +9 -9
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BohRRfew.js → NavigationTab.vue_vue_type_script_setup_true_lang-caeBZJMd.js} +6 -6
- package/dist/{OverviewView-_5c2H2MT.js → OverviewView-DT4wH9BY.js} +5 -5
- package/dist/{Report-2w23PAp1.js → Report-DC5SaVnn.js} +30 -30
- package/dist/ReportCanvasView-DKSSW9vS.js +966 -0
- package/dist/{ReportEditor-Bd6WesQn.js → ReportEditor-pv17FE6d.js} +7 -7
- package/dist/{ReportView-DlYt2nTi.js → ReportView-hu8o7gHa.js} +6 -6
- package/dist/{ReportViewRoute-37OLAHAq.js → ReportViewRoute-Dv72tGDa.js} +2 -2
- package/dist/{Setting-PmW3vgf2.js → Setting-B98DTITn.js} +3 -3
- package/dist/{Template-DkTDUZL3.js → Template-CaVg_yFH.js} +18 -18
- package/dist/{TileEditor-B_X1Z1IF.js → TileEditor-HXcsJvnS.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-Dj9ImYdH.js → TilePageStack.vue_vue_type_script_setup_true_lang-B9kTXx-f.js} +2 -2
- package/dist/{TransitionFade-k7vzRKon.js → TransitionFade-CIv_c2SU.js} +5 -5
- package/dist/{app-DOyssexi.js → app-DvNjldW6.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-DkfeAufo.js} +1 -1
- package/dist/{index-uhMfapU4.js → index-BfS1DQsO.js} +1279 -1244
- package/dist/{report-D1hOlAxl.js → report-BYoPJJLO.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-qj5lGRy-.js +205 -0
- package/dist/{ReportCanvasView-C0WPmew5.js → useReportCanvasPanel-BJTLOzd9.js} +2933 -3477
- package/dist/{useRestaurantPermission-DdscVgP6.js → useRestaurantPermission-Cy0Wr066.js} +1 -1
- package/package.json +1 -1
|
@@ -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-B0KI2grl.js";
|
|
3
3
|
const f = /* @__PURE__ */ o({
|
|
4
4
|
__name: "Layout",
|
|
5
5
|
setup(m) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as Zt, mergeModels as du, useModel as tl, ref as he, createElementBlock as se, onMounted as ry, openBlock as N, Fragment as Se, createBlock as fe, createCommentVNode as Ve, unref as mt, computed as Ne, watch as An, resolveComponent as W, createElementVNode as ne, createVNode as R, renderList as jt, withCtx as Te, toDisplayString as Bn, renderSlot as nl, mergeProps as ay, normalizeClass as rl, normalizeStyle as iy, withModifiers as lu, nextTick as uy } from "vue";
|
|
2
|
-
import { _ as oy } from "./DateRangeSelect-
|
|
3
|
-
import { a as sy } from "./app-
|
|
2
|
+
import { _ as oy } from "./DateRangeSelect-ByNkTDjz.js";
|
|
3
|
+
import { a as sy } from "./app-DvNjldW6.js";
|
|
4
4
|
import { useBreakpoints as ly, useDialog as cy, useDialogChild as fy } from "@feedmepos/ui-library";
|
|
5
5
|
import { u as dy } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
6
6
|
const py = { class: "px-8" }, hy = { class: "max-h-[160px] overflow-y-auto" }, vy = /* @__PURE__ */ Zt({
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as S, computed as w, watch as A, createElementBlock as k, openBlock as d, createElementVNode as C, createVNode as p, unref as t, isRef as g, withCtx as y, useModel as E, resolveComponent as x, normalizeClass as B, createBlock as b, createCommentVNode as I, Fragment as L, renderList as
|
|
2
|
-
import { a as
|
|
1
|
+
import { defineComponent as S, computed as w, watch as A, createElementBlock as k, openBlock as d, createElementVNode as C, createVNode as p, unref as t, isRef as g, withCtx as y, useModel as E, resolveComponent as x, normalizeClass as B, createBlock as b, createCommentVNode as I, Fragment as L, renderList as q, toDisplayString as G } from "vue";
|
|
2
|
+
import { a as j, g as H, i as J, o as K, p as Q, s as M } from "./app-DvNjldW6.js";
|
|
3
3
|
import { storeToRefs as F } from "pinia";
|
|
4
|
-
import { _ as X } from "./LocationSelect.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { D as Y } from "./DateRangeSelect-
|
|
6
|
-
import { f as Z, _ as h } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { _ as X } from "./LocationSelect.vue_vue_type_script_setup_true_lang-D77iP1So.js";
|
|
5
|
+
import { D as Y } from "./DateRangeSelect-ByNkTDjz.js";
|
|
6
|
+
import { f as Z, _ as h } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CqSpNI7C.js";
|
|
7
7
|
import { useRoute as ee } from "vue-router";
|
|
8
|
-
import { u as te, o as ae } from "./report-
|
|
8
|
+
import { u as te, o as ae } from "./report-BYoPJJLO.js";
|
|
9
9
|
import { useBreakpoints as oe } from "@feedmepos/ui-library";
|
|
10
10
|
const ne = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrollbar-hide" }, le = { class: "flex flex-col gap-2 py-2" }, re = /* @__PURE__ */ S({
|
|
11
11
|
__name: "Filter",
|
|
@@ -19,7 +19,7 @@ const ne = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrol
|
|
|
19
19
|
defaultDateSetting: f,
|
|
20
20
|
selectTimeDefault: v,
|
|
21
21
|
timezone: u
|
|
22
|
-
} = F(
|
|
22
|
+
} = F(j()), m = ee(), D = w(() => m.name === "overview"), $ = te(), { currentReport: U, overviewReport: W } = F($), { globalFilters: P } = F(ae()), { getReportAccessWindow: z, getPageAccessWindow: N } = H(), i = w(() => D.value ? W.value : U.value), R = w(() => D.value ? N(
|
|
23
23
|
J.report_accessOverview,
|
|
24
24
|
u.value
|
|
25
25
|
) : i.value ? z(i.value, u.value) : null), O = w(
|
|
@@ -134,7 +134,7 @@ const ne = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrol
|
|
|
134
134
|
})
|
|
135
135
|
]),
|
|
136
136
|
default: y(() => [
|
|
137
|
-
(d(!0), k(L, null,
|
|
137
|
+
(d(!0), k(L, null, q(_.value, (m, D) => (d(), b(v, {
|
|
138
138
|
key: `button-${D}`,
|
|
139
139
|
onClick: m.onClick
|
|
140
140
|
}, {
|
|
@@ -143,7 +143,7 @@ const ne = { class: "flex flex-col gap-2 overflow-x-auto overflow-y-hidden scrol
|
|
|
143
143
|
key: 0,
|
|
144
144
|
name: m.icon
|
|
145
145
|
}, null, 8, ["name"])) : I("", !0),
|
|
146
|
-
C("p", se,
|
|
146
|
+
C("p", se, G(m.label), 1)
|
|
147
147
|
]),
|
|
148
148
|
_: 2
|
|
149
149
|
}, 1032, ["onClick"]))), 128))
|
|
@@ -4,15 +4,15 @@ var wn = (e, t, r) => so(e, typeof t != "symbol" ? t + "" : t, r);
|
|
|
4
4
|
import { defineComponent as Ur, computed as Ve, useModel as ta, ref as Pe, watch as lt, resolveComponent as ye, createBlock as Qe, unref as E, openBlock as ie, withCtx as Oe, createElementVNode as H, createVNode as _, createElementBlock as xe, createCommentVNode as _e, Fragment as pr, toDisplayString as he, withDirectives as ha, renderList as gr, vShow as $a, createTextVNode as Hr, mergeModels as fn, normalizeClass as Fa, onMounted as xf, withKeys as Pf, withModifiers as en, isRef as nt, vModelText as Sf, normalizeStyle as Ti, resolveDynamicComponent as ii, createSlots as io } from "vue";
|
|
5
5
|
import { useRouter as Of, useRoute as Df } from "vue-router";
|
|
6
6
|
import { storeToRefs as Ir, defineStore as ki } from "pinia";
|
|
7
|
-
import { u as za, w as Kt, E as vt, y as rn, z as Vn, v as fo, o as lo, A as oo } from "./report-
|
|
7
|
+
import { u as za, w as Kt, E as vt, y as rn, z as Vn, v as fo, o as lo, A as oo } from "./report-BYoPJJLO.js";
|
|
8
8
|
import { useBreakpoints as Ls, components as da, useSnackbar as wa, FmButtonVariant as c0 } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as it, _ as If } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
10
10
|
import { a as u0 } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
11
|
-
import {
|
|
12
|
-
import { C as dr, g as mo, a as Qt, b as Vf, D as Nf } from "./DateRangeSelect-
|
|
11
|
+
import { g as co, u as gt, F as wt, ag as un, a as ya, d as Ye, q as Gn, ah as Lf, ai as uo, O as Ao, e as ho, B as yn, v as Ff, c as po, aj as vo } from "./app-DvNjldW6.js";
|
|
12
|
+
import { C as dr, g as mo, a as Qt, b as Vf, D as Nf } from "./DateRangeSelect-ByNkTDjz.js";
|
|
13
13
|
import { detectLocale as go, useCoreStore as wo } from "@feedmepos/mf-common";
|
|
14
|
-
import { l as A0, m as yo, f as Ci, a as To, _ as Mf, i as ko, r as Co, R as Nt, n as bo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { _ as Bf } from "./LocationSelect.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { l as A0, m as yo, f as Ci, a as To, _ as Mf, i as ko, r as Co, R as Nt, n as bo } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CqSpNI7C.js";
|
|
15
|
+
import { _ as Bf } from "./LocationSelect.vue_vue_type_script_setup_true_lang-D77iP1So.js";
|
|
16
16
|
import { p as Eo } from "./index-CtZE4sab.js";
|
|
17
17
|
const xo = { class: "flex flex-col" }, Po = { class: "fm-typo-en-title-sm-600" }, So = { class: "fm-typo-en-body-sm-600 mt-8" }, Oo = { class: "grow" }, Do = { class: "flex flex-col gap-8" }, Io = { class: "flex flex-col w-full" }, Lo = { class: "flex flex-col gap-5 p-6" }, Fo = { class: "flex" }, h0 = {
|
|
18
18
|
// sales: [
|
|
@@ -27348,7 +27348,7 @@ const E7 = { class: "flex gap-2 py-16" }, x7 = { class: "fm-typo-en-title-md-400
|
|
|
27348
27348
|
}
|
|
27349
27349
|
const X = !0, V = Ve(() => !a.query.token), Y = Ve(() => s.value.map((z) => ({
|
|
27350
27350
|
...z,
|
|
27351
|
-
label: t(`report.view.${z.label}.title`)
|
|
27351
|
+
label: t(z.labelKey ?? `report.view.${z.label}.title`)
|
|
27352
27352
|
}))), M = Ve(() => ["SG", "MY"].includes(T.currentCountry.value || "")), N = Ve(() => vo(g.timezone));
|
|
27353
27353
|
return (z, G) => {
|
|
27354
27354
|
const ne = ye("FmCollapsibleTabs"), fe = ye("FmIcon"), re = ye("FmListItem"), Ee = ye("FmMenu"), q = ye("FmButton");
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as C, defineAsyncComponent as b, computed as l, resolveComponent as I, createBlock as n, openBlock as s, withCtx as $, createVNode as d, createElementBlock as u, unref as e, normalizeStyle as v, normalizeClass as B, createElementVNode as R } from "vue";
|
|
2
|
-
import { _ as V } from "./TilePageStack.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as z, l as H } from "./report-
|
|
4
|
-
import { _ as P } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as V } from "./TilePageStack.vue_vue_type_script_setup_true_lang-B9kTXx-f.js";
|
|
3
|
+
import { u as z, l as H } from "./report-BYoPJJLO.js";
|
|
4
|
+
import { _ as P } from "./Default.vue_vue_type_script_setup_true_lang-B0KI2grl.js";
|
|
5
5
|
import { storeToRefs as S } from "pinia";
|
|
6
6
|
import { _ as T } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
7
7
|
import { useBreakpoints as A } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as D } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as D } from "./MenuTab.vue_vue_type_script_setup_true_lang-0FI-8jfq.js";
|
|
9
9
|
import { useI18n as E } from "@feedmepos/mf-common";
|
|
10
10
|
import { r as F } from "./i18n-DbyciK4x.js";
|
|
11
11
|
const L = { class: "sticky top-0 z-10 bg-white" }, Y = /* @__PURE__ */ C({
|
|
12
12
|
__name: "OverviewView",
|
|
13
13
|
setup(N) {
|
|
14
14
|
const f = b(
|
|
15
|
-
() => import("./ReportCanvasView-
|
|
15
|
+
() => import("./ReportCanvasView-DKSSW9vS.js")
|
|
16
16
|
), { t: i, te: _ } = E(), x = z(), { breakpoints: a } = A(), { isOpenDownloadDialog: g, overviewReport: t } = S(x), r = l(() => {
|
|
17
17
|
var o;
|
|
18
18
|
return ((o = t.value) == null ? void 0 : o.tiles) || [];
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as Ae, ref as $, watch as we, computed as h, h as d, withModifiers as ze, resolveComponent as I, createBlock as se, openBlock as B, withCtx as m, createVNode as c, createElementVNode as v, unref as t, normalizeStyle as Je, normalizeClass as
|
|
1
|
+
import { defineComponent as Ae, ref as $, watch as we, computed as h, h as d, withModifiers as ze, resolveComponent as I, createBlock as se, openBlock as B, withCtx as m, createVNode as c, createElementVNode as v, unref as t, normalizeStyle as Je, normalizeClass as b, withDirectives as Re, createElementBlock as Be, Fragment as Ke, renderList as Ee, toDisplayString as k, createTextVNode as je, vShow as he } from "vue";
|
|
2
2
|
import { storeToRefs as Pe } from "pinia";
|
|
3
|
-
import { u as He, s as Ye } from "./report-
|
|
4
|
-
import { _ as qe } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as He, s as Ye } from "./report-BYoPJJLO.js";
|
|
4
|
+
import { _ as qe } from "./Default.vue_vue_type_script_setup_true_lang-B0KI2grl.js";
|
|
5
5
|
import { u as Ge } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { u as Qe } from "./global-loader-BuxFfehu.js";
|
|
7
7
|
import { useSnackbar as We, useBreakpoints as Xe, components as Ze, FmButtonColorThemeVariant as et } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as tt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
9
|
-
import { c as ot, a as xe,
|
|
9
|
+
import { c as ot, a as xe, g as at } from "./app-DvNjldW6.js";
|
|
10
10
|
import { useRouter as st, useRoute as rt, onBeforeRouteLeave as nt } from "vue-router";
|
|
11
11
|
import { useI18n as lt } from "@feedmepos/mf-common";
|
|
12
12
|
import { r as re } from "./i18n-DbyciK4x.js";
|
|
@@ -43,7 +43,7 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
43
43
|
);
|
|
44
44
|
const me = h(() => q.value.length > 0 ? f.value.filter(
|
|
45
45
|
(o) => q.value.findIndex((e) => e.id === o.id) === -1
|
|
46
|
-
) : f.value), { FmButton: De, FmMenu: G, FmMenuItem: P, FmIcon: Q, FmChip: W, FmTooltip: $e, FmSwitch: fe } = Ze,
|
|
46
|
+
) : f.value), { FmButton: De, FmMenu: G, FmMenuItem: P, FmIcon: Q, FmChip: W, FmTooltip: $e, FmSwitch: fe } = Ze, g = $(/* @__PURE__ */ new Set()), X = $(/* @__PURE__ */ new Map()), Oe = /* @__PURE__ */ new Set([
|
|
47
47
|
"closeup",
|
|
48
48
|
"dailySales",
|
|
49
49
|
"hourlySales",
|
|
@@ -159,11 +159,11 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
159
159
|
},
|
|
160
160
|
cell: (o) => {
|
|
161
161
|
var J;
|
|
162
|
-
const e = o.row.original, r = e.reportId, n = f.value.find((u) => u.id === r), ae = r === ((J = E.value) == null ? void 0 : J.id), A = !e.canRead, D = n ? ue(n) : !1, z = n ? Y(n) : !1, s = e.reportType === "canvas", C = !e.canUpdate || e.isMandatoryPosReport || s ||
|
|
162
|
+
const e = o.row.original, r = e.reportId, n = f.value.find((u) => u.id === r), ae = r === ((J = E.value) == null ? void 0 : J.id), A = !e.canRead, D = n ? ue(n) : !1, z = n ? Y(n) : !1, s = e.reportType === "canvas", C = !e.canUpdate || e.isMandatoryPosReport || s || g.value.has(r), i = s ? a("reportV5.reportList.canvasPosReportHint") : e.isMandatoryPosReport ? a("reportV5.reportList.mandatoryPosReportHint") : a("reportV5.reportList.posV8Hint"), y = [
|
|
163
163
|
{
|
|
164
164
|
label: a("report.common.duplicate"),
|
|
165
165
|
onClick: () => {
|
|
166
|
-
n && D ?
|
|
166
|
+
n && D ? be(n) : D || l.open({
|
|
167
167
|
message: a("report.messages.noPermissionDuplicateReport"),
|
|
168
168
|
type: "error"
|
|
169
169
|
});
|
|
@@ -182,7 +182,7 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
182
182
|
{
|
|
183
183
|
label: a("report.common.remove"),
|
|
184
184
|
onClick: () => {
|
|
185
|
-
n && (z ?
|
|
185
|
+
n && (z ? ge(n) : l.open({
|
|
186
186
|
message: a("report.messages.noPermissionDeleteReport"),
|
|
187
187
|
type: "error"
|
|
188
188
|
}));
|
|
@@ -326,8 +326,8 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
326
326
|
});
|
|
327
327
|
return;
|
|
328
328
|
}
|
|
329
|
-
if (!
|
|
330
|
-
|
|
329
|
+
if (!g.value.has(o.id)) {
|
|
330
|
+
g.value = new Set(g.value).add(o.id);
|
|
331
331
|
try {
|
|
332
332
|
const e = !o.isSupportPos;
|
|
333
333
|
await Ye(o.id, e), o.isSupportPos = e, X.value = new Map(X.value).set(
|
|
@@ -340,8 +340,8 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
340
340
|
type: "error"
|
|
341
341
|
});
|
|
342
342
|
} finally {
|
|
343
|
-
const e = new Set(
|
|
344
|
-
e.delete(o.id),
|
|
343
|
+
const e = new Set(g.value);
|
|
344
|
+
e.delete(o.id), g.value = e;
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
@@ -378,7 +378,7 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
378
378
|
const e = f.value.find((r) => r.id === o.reportId);
|
|
379
379
|
return !o.editable || !e || !Y(e);
|
|
380
380
|
}
|
|
381
|
-
async function
|
|
381
|
+
async function ge(o) {
|
|
382
382
|
if (!Y(o)) {
|
|
383
383
|
l.open({
|
|
384
384
|
message: a("report.messages.noPermissionDeleteReport"),
|
|
@@ -400,7 +400,7 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
400
400
|
}
|
|
401
401
|
});
|
|
402
402
|
}
|
|
403
|
-
async function
|
|
403
|
+
async function be(o) {
|
|
404
404
|
if (ie.value)
|
|
405
405
|
await Ve(o);
|
|
406
406
|
else {
|
|
@@ -461,11 +461,11 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
461
461
|
"onClick:action": e[0] || (e[0] = (s) => Me())
|
|
462
462
|
}, null, 8, ["title", "actions"]),
|
|
463
463
|
v("div", {
|
|
464
|
-
class:
|
|
464
|
+
class: b(`overflow-y-hidden flex flex-col gap-8 ${t(p).sm || t(p).xs ? "mb-20" : ""}`),
|
|
465
465
|
style: Je({ height: `calc(100% - ${t(p).lg || t(p).md ? 72 : 64}px)` })
|
|
466
466
|
}, [
|
|
467
467
|
c(ae, {
|
|
468
|
-
class:
|
|
468
|
+
class: b(`flex items-center gap-2 ${t(p).sm || t(p).xs ? "px-3" : "px-24"}`)
|
|
469
469
|
}, {
|
|
470
470
|
default: m(() => [
|
|
471
471
|
c(t(G), null, {
|
|
@@ -488,7 +488,7 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
488
488
|
_: 1
|
|
489
489
|
}),
|
|
490
490
|
v("div", {
|
|
491
|
-
class:
|
|
491
|
+
class: b(`flex ${t(p).sm || t(p).xs ? "justify-center items-center" : ""}`)
|
|
492
492
|
}, [
|
|
493
493
|
v("p", ct, k(t(a)("report.common.results", { count: x.value.length })), 1)
|
|
494
494
|
], 2),
|
|
@@ -497,7 +497,7 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
497
497
|
c(n, {
|
|
498
498
|
modelValue: Z.value,
|
|
499
499
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => Z.value = s),
|
|
500
|
-
class:
|
|
500
|
+
class: b(`${t(p).lg || t(p).md ? "grow" : ""}`)
|
|
501
501
|
}, null, 8, ["modelValue", "class"])
|
|
502
502
|
])
|
|
503
503
|
]),
|
|
@@ -507,7 +507,7 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
507
507
|
key: Fe.value,
|
|
508
508
|
ref_key: "table",
|
|
509
509
|
ref: R,
|
|
510
|
-
class:
|
|
510
|
+
class: b([t(p).sm || t(p).xs ? "px-0" : "px-24", "report-table"]),
|
|
511
511
|
style: { height: "calc(100% - 40px)" },
|
|
512
512
|
"column-defs": Te.value,
|
|
513
513
|
"row-data": x.value,
|
|
@@ -573,7 +573,7 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
573
573
|
}, {
|
|
574
574
|
append: m(() => [
|
|
575
575
|
c(t(W), {
|
|
576
|
-
class:
|
|
576
|
+
class: b(`${s.category !== "Uncategorized" ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"} ${s.canRead ? "" : "opacity-40 cursor-not-allowed"}`),
|
|
577
577
|
compact: !0
|
|
578
578
|
}, {
|
|
579
579
|
default: m(() => [
|
|
@@ -606,10 +606,10 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
606
606
|
v("div", {
|
|
607
607
|
role: "menuitem",
|
|
608
608
|
"data-testid": "mobile-pos-v8-toggle",
|
|
609
|
-
tabindex: !s.canUpdate || s.isMandatoryPosReport || s.reportType === "canvas" ||
|
|
610
|
-
"aria-disabled": !s.canUpdate || s.isMandatoryPosReport || s.reportType === "canvas" ||
|
|
611
|
-
class:
|
|
612
|
-
!s.canUpdate || s.isMandatoryPosReport || s.reportType === "canvas" ||
|
|
609
|
+
tabindex: !s.canUpdate || s.isMandatoryPosReport || s.reportType === "canvas" || g.value.has(s.reportId) ? void 0 : -1,
|
|
610
|
+
"aria-disabled": !s.canUpdate || s.isMandatoryPosReport || s.reportType === "canvas" || g.value.has(s.reportId),
|
|
611
|
+
class: b(
|
|
612
|
+
!s.canUpdate || s.isMandatoryPosReport || s.reportType === "canvas" || g.value.has(s.reportId) ? "flex max-h-[78px] w-full cursor-not-allowed items-center justify-between gap-2 rounded px-3 py-2 pl-12 text-fm-color-typo-disabled" : "flex max-h-[78px] w-full cursor-pointer items-center justify-between gap-2 rounded px-3 py-2 pl-12 hover:bg-fm-color-opacity-sm"
|
|
613
613
|
),
|
|
614
614
|
onClick: (i) => {
|
|
615
615
|
i.stopPropagation();
|
|
@@ -626,7 +626,7 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
626
626
|
s.reportId,
|
|
627
627
|
s.isSupportPos
|
|
628
628
|
),
|
|
629
|
-
disabled: !s.canUpdate || s.isMandatoryPosReport || s.reportType === "canvas" ||
|
|
629
|
+
disabled: !s.canUpdate || s.isMandatoryPosReport || s.reportType === "canvas" || g.value.has(s.reportId),
|
|
630
630
|
"aria-label": "Show in POS v8",
|
|
631
631
|
class: "pointer-events-none"
|
|
632
632
|
}, null, 8, ["model-value", "disabled"])
|
|
@@ -635,14 +635,14 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
635
635
|
c(t(P), {
|
|
636
636
|
label: t(a)("report.common.duplicate"),
|
|
637
637
|
disabled: te(s),
|
|
638
|
-
class:
|
|
638
|
+
class: b(
|
|
639
639
|
te(s) ? "text-fm-color-typo-disabled" : ""
|
|
640
640
|
),
|
|
641
641
|
onClick: () => {
|
|
642
642
|
const i = t(f).find(
|
|
643
643
|
(y) => y.id === s.reportId
|
|
644
644
|
);
|
|
645
|
-
i && !te(s) ?
|
|
645
|
+
i && !te(s) ? be(i) : t(l).open({
|
|
646
646
|
message: t(a)("report.messages.noPermissionDuplicateReport"),
|
|
647
647
|
type: "error"
|
|
648
648
|
});
|
|
@@ -662,14 +662,14 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
662
662
|
c(t(P), {
|
|
663
663
|
label: t(a)("report.common.delete"),
|
|
664
664
|
disabled: oe(s),
|
|
665
|
-
class:
|
|
665
|
+
class: b(
|
|
666
666
|
oe(s) ? "text-fm-color-typo-disabled" : "text-fm-color-typo-error"
|
|
667
667
|
),
|
|
668
668
|
onClick: () => {
|
|
669
669
|
const i = t(f).find(
|
|
670
670
|
(y) => y.id === s.reportId
|
|
671
671
|
);
|
|
672
|
-
i && !oe(s) &&
|
|
672
|
+
i && !oe(s) && ge(i);
|
|
673
673
|
}
|
|
674
674
|
}, {
|
|
675
675
|
label: m(() => [
|
|
@@ -684,7 +684,7 @@ const ct = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, it
|
|
|
684
684
|
]),
|
|
685
685
|
default: m(() => [
|
|
686
686
|
v("span", {
|
|
687
|
-
class:
|
|
687
|
+
class: b(["fm-typo-en-body-lg-400 line-clamp-1 break-all text-fm-color-typo-primary", s.canRead ? "" : "opacity-40 cursor-not-allowed"])
|
|
688
688
|
}, k(s.name), 3)
|
|
689
689
|
]),
|
|
690
690
|
_: 2
|