@feedmepos/mf-report 5.22.25-beta.0 → 5.22.26-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.
Files changed (34) hide show
  1. package/dist/App-K5_EZRDx.js +298 -0
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-BtlKMoIq.js → BaseDialog.vue_vue_type_script_setup_true_lang-B3lk2lJW.js} +1128 -1292
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Bkrb5oit.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-BVsmF7O1.js} +5 -5
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-BRaQkmRu.js → Default.vue_vue_type_script_setup_true_lang-CXOVc4Mx.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-BXGBeZC3.js → FilterSelector.vue_vue_type_script_setup_true_lang-CYNrXo6U.js} +19 -19
  6. package/dist/InsightView-DjyJEPMi.js +664 -0
  7. package/dist/{Integration-EMAfR7Zi.js → Integration-BJiiG52P.js} +40 -40
  8. package/dist/{Integrations-CjXy0fH6.js → Integrations-1AE-ZriG.js} +14 -13
  9. package/dist/Layout-CWkjX6Dz.js +19 -0
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-zQAJw22y.js → MenuTab.vue_vue_type_script_setup_true_lang-CMfvPaez.js} +13 -13
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CthoYybo.js → NavigationTab.vue_vue_type_script_setup_true_lang-CLpD4WdM.js} +24 -24
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-saYegrOe.js → NoData.vue_vue_type_script_setup_true_lang-CDKHIlF2.js} +1 -1
  13. package/dist/OverviewView-DyGx_V_d.js +62 -0
  14. package/dist/{Report-BUrZle7z.js → Report-mpMokvC5.js} +15 -14
  15. package/dist/{ReportEditor-BMwRbo4e.js → ReportEditor-C7M1iR2K.js} +24 -23
  16. package/dist/{ReportView-BTrqUHh3.js → ReportView-5egrKEAE.js} +18 -17
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-DCcZSJ6i.js → SelectComponent.vue_vue_type_script_setup_true_lang-Df40itH5.js} +1 -1
  18. package/dist/Setting-acpfrtmh.js +326 -0
  19. package/dist/{TileEditor-CSzsBeLn.js → TileEditor-BZbN_SJj.js} +131 -131
  20. package/dist/{TransitionFade-CYQPowov.js → TransitionFade-CoIjp_fE.js} +12 -12
  21. package/dist/app-VvWXAWWb.js +11540 -0
  22. package/dist/app.js +1 -1
  23. package/dist/useRestaurantPermission-C31iMnay.js +65 -0
  24. package/dist/vue-i18n-DVWuTfed.js +2727 -0
  25. package/package.json +1 -1
  26. package/dist/App-CO_c9XPB.js +0 -294
  27. package/dist/InsightView-CJYx9369.js +0 -670
  28. package/dist/Layout-BEBDNvw5.js +0 -29
  29. package/dist/NoPermission.vue_vue_type_script_setup_true_lang-Cc68B5bL.js +0 -25
  30. package/dist/OverviewView-D74QNQC4.js +0 -63
  31. package/dist/Setting-dV1Kw8zk.js +0 -328
  32. package/dist/app-DqCVRl7o.js +0 -6658
  33. package/dist/useRestaurantPermission-DdoxTVxf.js +0 -64
  34. package/dist/vue-i18n-LXxY-G4u.js +0 -7253
package/dist/app.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "vue";
2
- import { F as e, i as o, r as p } from "./app-DqCVRl7o.js";
2
+ import { a0 as e, $ as o, a1 as p } from "./app-VvWXAWWb.js";
3
3
  export {
4
4
  e as FmApp,
5
5
  o as i18nMessages,
@@ -0,0 +1,65 @@
1
+ import { computed as u } from "vue";
2
+ import { u as c } from "./vue-i18n-DVWuTfed.js";
3
+ import { useSnackbar as f } from "@feedmepos/ui-library";
4
+ import { useCoreStore as d } from "@feedmepos/mf-common";
5
+ import { Z as l, _ as i } from "./app-VvWXAWWb.js";
6
+ function g(t) {
7
+ return Array.isArray(t) ? t : [];
8
+ }
9
+ function m(t) {
10
+ const { rules: r, action: a, restaurantId: e } = t;
11
+ if (!r.length) return !1;
12
+ const s = {
13
+ action: a,
14
+ subject: l.restaurant
15
+ };
16
+ return e ? i(s, r, { restaurantId: e }).granted : i([s], r).granted;
17
+ }
18
+ function R(t) {
19
+ const { integrationRestaurantIds: r, rules: a, action: e } = t;
20
+ if (!Array.isArray(r) || r.length === 0)
21
+ return [];
22
+ const s = [];
23
+ for (const o of r)
24
+ typeof o == "string" && (m({ rules: a, action: e, restaurantId: o }) || s.push(o));
25
+ return s;
26
+ }
27
+ function p(t) {
28
+ return R({
29
+ integrationRestaurantIds: t.integrationRestaurantIds,
30
+ rules: t.rules,
31
+ action: t.action
32
+ }).length > 0;
33
+ }
34
+ function U() {
35
+ const t = f(), { t: r } = c(), { sessionUser: a } = d(), e = u(
36
+ () => {
37
+ var n;
38
+ return g((n = a.value) == null ? void 0 : n.permissions);
39
+ }
40
+ );
41
+ function s(n) {
42
+ t.open({
43
+ type: "error",
44
+ message: r("report.integration.error.containsUnauthorizedRestaurant", {
45
+ action: r(`report.integration.permissionAction.${n}`)
46
+ })
47
+ });
48
+ }
49
+ function o(n) {
50
+ return p({
51
+ integrationRestaurantIds: n.integrationRestaurantIds,
52
+ rules: e.value,
53
+ action: n.action
54
+ });
55
+ }
56
+ return {
57
+ rules: e,
58
+ notifyUnauthorized: s,
59
+ isRestricted: o
60
+ };
61
+ }
62
+ export {
63
+ p as h,
64
+ U as u
65
+ };