@feedmepos/mf-report 5.5.10 → 5.5.11-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-CI59NhMr.js → App-BCCZItsv.js} +42 -42
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-C3Dsnzzo.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CN3UKRaQ.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-HE3jlz2q.js → Default.vue_vue_type_script_setup_true_lang-D7TqpbQ9.js} +2 -2
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-Blu98Lu7.js +1082 -0
- package/dist/{InsightView-CArL6hDD.js → InsightView-bZx6j8q5.js} +6 -6
- package/dist/{Integration-CYsx29Kj.js → Integration-CoavOChV.js} +3 -3
- package/dist/{Integrations-RluH7jrn.js → Integrations-B6ACZi86.js} +3 -3
- package/dist/{Layout-BhKNg55v.js → Layout-CVsorGV9.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B_N9ULY9.js → MenuTab.vue_vue_type_script_setup_true_lang-AopNmaX1.js} +3 -3
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DULwCyXt.js → NavigationTab.vue_vue_type_script_setup_true_lang-4LIEfrJG.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-CCA1l-Cz.js → NoData.vue_vue_type_script_setup_true_lang-DI4X_DSc.js} +1 -1
- package/dist/{OverviewView-CQGrtNQb.js → OverviewView-D7wq9voi.js} +5 -5
- package/dist/{Report-Cl-cAzXC.js → Report-St-N-XGu.js} +90 -89
- package/dist/{ReportEditor-CWjNbjr_.js → ReportEditor-BhaqAf-H.js} +176 -175
- package/dist/ReportView-BqHk2OOl.js +190 -0
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CXYvLXnR.js → SelectComponent.vue_vue_type_script_setup_true_lang-BVs1C4af.js} +1 -1
- package/dist/{Setting-DC_StvBp.js → Setting-CF6M_Gb2.js} +4 -4
- package/dist/TileEditor-Dh1OSYsO.js +2538 -0
- package/dist/{TransitionFade-DdNpeVds.js → TransitionFade-z9aoIr9s.js} +5 -5
- package/dist/app.js +1616 -71
- package/dist/{global-loader-KvOGLx9k.js → global-loader-BqFQzk46.js} +1 -1
- package/dist/i18n-Cif1I9J2.js +11 -0
- package/dist/{index-CW2xYO89.js → index-DqqTHE7n.js} +1 -1
- package/dist/{report-schema-Zw8e6-XZ.js → report-schema-OJAFh4P6.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{v4-CHk_oNmT.js → v4-HCTsB306.js} +1 -1
- package/package.json +1 -1
- package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-DxpesBb1.js +0 -1074
- package/dist/ReportView-ChiQMhSH.js +0 -180
- package/dist/TileEditor-DNuK7pwX.js +0 -2514
|
@@ -2,14 +2,14 @@ var Zo = Object.defineProperty;
|
|
|
2
2
|
var Jo = (i, t, e) => t in i ? Zo(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
3
|
var k = (i, t, e) => Jo(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
4
|
import { ref as $t, defineComponent as oe, watch as ri, computed as _t, onMounted as Qo, createElementBlock as U, openBlock as I, createElementVNode as R, renderSlot as Un, toDisplayString as lt, resolveDirective as Xn, createCommentVNode as St, Fragment as Ii, renderList as zi, createBlock as Ht, withDirectives as Ge, resolveDynamicComponent as es, unref as G, withCtx as Yt, createVNode as et, normalizeClass as Ze, resolveComponent as Me, useModel as ta, createTextVNode as ea, isRef as ki, nextTick as ia } from "vue";
|
|
5
|
-
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { d as Bi, a as Kn, h as qn, F as Gn, u as Zn, b as oa } from "./global-loader-
|
|
5
|
+
import { _ as sa } from "./Default.vue_vue_type_script_setup_true_lang-D7TqpbQ9.js";
|
|
6
|
+
import { _ as na } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CN3UKRaQ.js";
|
|
7
|
+
import { d as Bi, a as Kn, h as qn, F as Gn, u as Zn, b as oa } from "./global-loader-BqFQzk46.js";
|
|
8
8
|
import { storeToRefs as Jn } from "pinia";
|
|
9
9
|
import { components as is, useSnackbar as aa } from "@feedmepos/ui-library";
|
|
10
|
-
import { c as ys } from "./index-
|
|
11
|
-
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { c as ys } from "./index-DqqTHE7n.js";
|
|
11
|
+
import { _ as ra } from "./NoData.vue_vue_type_script_setup_true_lang-DI4X_DSc.js";
|
|
12
|
+
import { a as la, G as ca } from "./NavigationTab.vue_vue_type_script_setup_true_lang-4LIEfrJG.js";
|
|
13
13
|
import { useCoreStore as ha } from "@feedmepos/mf-common";
|
|
14
14
|
function da({ start: i, end: t }) {
|
|
15
15
|
return `${Bi(t).format("DD MMM")}, ${Bi(t).format("YYYY")}`;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as q, mergeModels as ye, useModel as X, computed as Y, resolveComponent as S, createElementBlock as F, openBlock as c, createElementVNode as t, createCommentVNode as N, normalizeClass as Ae, Fragment as L, renderList as H, createBlock as M, createVNode as r, withCtx as ge, toDisplayString as T, unref as p, ref as B, onUnmounted as be, watch as ve, isRef as we, h as I, resolveDynamicComponent as xe, mergeProps as Ee, onMounted as ze } from "vue";
|
|
2
2
|
import { useRouter as de, useRoute as Ye } from "vue-router";
|
|
3
|
-
import { u as J, I as ce, d as Le, e as _e, f as he, b as pe, q as qe, m as He, p as Ve, r as ke, s as $e, t as Se, v as Pe, w as Xe, x as Qe, y as Ge, A as fe, z as Ne, B as Je, E as We } from "./global-loader-
|
|
3
|
+
import { u as J, I as ce, d as Le, e as _e, f as he, b as pe, q as qe, m as He, p as Ve, r as ke, s as $e, t as Se, v as Pe, w as Xe, x as Qe, y as Ge, A as fe, z as Ne, B as Je, E as We } from "./global-loader-BqFQzk46.js";
|
|
4
4
|
import { u as Ce } from "./message-dialog-UoMWOnil.js";
|
|
5
5
|
import { useSnackbar as ue } from "@feedmepos/ui-library";
|
|
6
|
-
import { s as Ze } from "./index-
|
|
6
|
+
import { s as Ze } from "./index-DqqTHE7n.js";
|
|
7
7
|
import { storeToRefs as Fe } from "pinia";
|
|
8
|
-
import { _ as De } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as De } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CN3UKRaQ.js";
|
|
9
9
|
const et = { class: "flex flex-row items-center w-[100%] gap-[4px] justify-between" }, tt = { class: "text-nowrap w-[100%] overflow-hidden text-ellipsis" }, ot = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "w-[24px] flex items-center"
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as q, mergeModels as z, useModel as $, computed as G, resolveComponent as b, createBlock as S, unref as n, openBlock as V, withCtx as w, createElementVNode as i, createVNode as m, toDisplayString as J, createTextVNode as Q, ref as T, h as g, createElementBlock as X, Fragment as Y } from "vue";
|
|
2
2
|
import { useRouter as Z, useRoute as ee } from "vue-router";
|
|
3
|
-
import { I as R, u as E, e as N, f as oe, o as P, p as te } from "./global-loader-
|
|
3
|
+
import { I as R, u as E, e as N, f as oe, o as P, p as te } from "./global-loader-BqFQzk46.js";
|
|
4
4
|
import { useBreakpoints as K, useSnackbar as ae, components as le, FmButtonColorThemeVariant as M } from "@feedmepos/ui-library";
|
|
5
|
-
import { _ as ne } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { _ as ne } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BVs1C4af.js";
|
|
6
6
|
import { storeToRefs as O } from "pinia";
|
|
7
7
|
import { u as re } from "./message-dialog-UoMWOnil.js";
|
|
8
|
-
import { _ as se } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as se } from "./NoData.vue_vue_type_script_setup_true_lang-DI4X_DSc.js";
|
|
9
9
|
import { _ as ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
const me = { class: "flex flex-col" }, de = { class: "fm-typo-en-body-lg-600" }, ue = { class: "flex gap-2 overflow-hidden flex-col" }, pe = { class: "flex gap-2 overflow-hidden" }, ce = { class: "flex flex-col w-full" }, fe = { class: "flex flex-col gap-5 p-6" }, ge = { class: "flex" }, ve = /* @__PURE__ */ q({
|
|
11
11
|
__name: "AddIntegrationDialog",
|
|
@@ -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-D7TqpbQ9.js";
|
|
3
3
|
const f = /* @__PURE__ */ o({
|
|
4
4
|
__name: "Layout",
|
|
5
5
|
setup(m) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as b, createElementBlock as y, openBlock as l, createVNode as d, unref as t, isRef as u, withCtx as g, useModel as R, resolveComponent as _, normalizeClass as x, createElementVNode as F, createBlock as v, createCommentVNode as C, Fragment as V, renderList as M, toDisplayString as T } from "vue";
|
|
2
|
-
import { b as $ } from "./global-loader-
|
|
2
|
+
import { b as $ } from "./global-loader-BqFQzk46.js";
|
|
3
3
|
import { storeToRefs as B } from "pinia";
|
|
4
|
-
import { a as D, d as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { a as D, d as I } from "./NavigationTab.vue_vue_type_script_setup_true_lang-4LIEfrJG.js";
|
|
5
|
+
import { _ as U } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CN3UKRaQ.js";
|
|
6
6
|
import { useBreakpoints as w } from "@feedmepos/ui-library";
|
|
7
7
|
const S = { class: "flex overflow-x-auto overflow-y-hidden scrollbar-hide" }, N = /* @__PURE__ */ b({
|
|
8
8
|
__name: "Filter",
|
|
@@ -4,14 +4,14 @@ var ds = (e, t, r) => w9(e, typeof t != "symbol" ? t + "" : t, r);
|
|
|
4
4
|
import { defineComponent as qr, computed as Fr, useModel as Ta, ref as Xe, watch as ha, resolveComponent as de, createBlock as Ye, unref as J, openBlock as se, withCtx as Me, createElementVNode as ce, createVNode as K, toDisplayString as pr, withDirectives as zn, createElementBlock as Re, Fragment as yr, renderList as Rr, vShow as u0, createTextVNode as St, mergeModels as Cn, createCommentVNode as kr, normalizeClass as jn, withModifiers as Ds, resolveDynamicComponent as vh, onMounted as Bd, renderSlot as Ld, mergeProps as b9, nextTick as C9, withKeys as k9, vModelText as E9, normalizeStyle as T9, isRef as V0, createSlots as F9 } from "vue";
|
|
5
5
|
import { useRouter as Md, useRoute as Rd } from "vue-router";
|
|
6
6
|
import { storeToRefs as Ct, defineStore as tu } from "pinia";
|
|
7
|
-
import { a as Xi, R as Is, g as bo, v as P9, d as S9, r as O9, b as xn, c as D9, e as I9, s as N9, u as V9 } from "./v4-
|
|
7
|
+
import { a as Xi, R as Is, g as bo, v as P9, d as S9, r as O9, b as xn, c as D9, e as I9, s as N9, u as V9 } from "./v4-HCTsB306.js";
|
|
8
8
|
import { useBreakpoints as il, components as h0, useSnackbar as zi, FmButtonVariant as mh, useDialog as B9, useDialogChild as L9 } from "@feedmepos/ui-library";
|
|
9
|
-
import { u as ja, i as au, j as sl, a as Ua, F as Za, h as Ya, d as Qe, b as _0, k as Hi, l as M9, m as R9, e as X9, n as As } from "./global-loader-
|
|
10
|
-
import { _ as xh } from "./SelectComponent.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { C as nn, g as z9, a as Xd, s as H9, p as q9 } from "./index-
|
|
9
|
+
import { u as ja, i as au, j as sl, a as Ua, F as Za, h as Ya, d as Qe, b as _0, k as Hi, l as M9, m as R9, e as X9, n as As } from "./global-loader-BqFQzk46.js";
|
|
10
|
+
import { _ as xh } from "./SelectComponent.vue_vue_type_script_setup_true_lang-BVs1C4af.js";
|
|
11
|
+
import { C as nn, g as z9, a as Xd, s as H9, p as q9 } from "./index-DqqTHE7n.js";
|
|
12
12
|
import { _ as W9 } from "./BaseDialog.vue_vue_type_script_setup_true_lang-DTNiGKgd.js";
|
|
13
13
|
import { _ as j9 } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
14
|
-
import { a as zd, _ as U9 } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
14
|
+
import { a as zd, _ as U9 } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CN3UKRaQ.js";
|
|
15
15
|
import { detectLocale as ps, useCoreStore as Z9 } from "@feedmepos/mf-common";
|
|
16
16
|
const Y9 = { class: "flex flex-col" }, G9 = { class: "fm-typo-en-title-sm-600" }, Q9 = { class: "grow" }, K9 = { class: "flex flex-col gap-8" }, J9 = { class: "flex flex-col w-full" }, _9 = { class: "flex flex-col gap-5 p-6" }, $9 = { class: "flex" }, gh = {
|
|
17
17
|
// sales: [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as m, computed as s, resolveComponent as p, createElementBlock as f, openBlock as u, renderSlot as d, createVNode as _, withCtx as g, createElementVNode as o, toDisplayString as r } from "vue";
|
|
2
|
-
import { u as y } from "./global-loader-
|
|
2
|
+
import { u as y } from "./global-loader-BqFQzk46.js";
|
|
3
3
|
const x = { class: "flex flex-col h-full" }, D = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, T = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, v = /* @__PURE__ */ m({
|
|
4
4
|
__name: "NoData",
|
|
5
5
|
props: {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as g, computed as w, resolveComponent as k, createBlock as a, openBlock as t, withCtx as $, createVNode as d, createElementVNode as y, unref as e, normalizeStyle as C, normalizeClass as u, createElementBlock as _, Fragment as h, renderList as B } from "vue";
|
|
2
|
-
import { _ as b } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { a as P } from "./v4-
|
|
2
|
+
import { _ as b } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-Blu98Lu7.js";
|
|
3
|
+
import { _ as F } from "./Default.vue_vue_type_script_setup_true_lang-D7TqpbQ9.js";
|
|
4
|
+
import { a as P } from "./v4-HCTsB306.js";
|
|
5
5
|
import { storeToRefs as R } from "pinia";
|
|
6
|
-
import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as S } from "./NoData.vue_vue_type_script_setup_true_lang-DI4X_DSc.js";
|
|
7
7
|
import { useBreakpoints as V } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as z } from "./MenuTab.vue_vue_type_script_setup_true_lang-AopNmaX1.js";
|
|
9
9
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
10
10
|
const G = /* @__PURE__ */ g({
|
|
11
11
|
__name: "OverviewView",
|
|
@@ -1,56 +1,57 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { storeToRefs as
|
|
3
|
-
import { a as
|
|
4
|
-
import { _ as
|
|
5
|
-
import { u as
|
|
6
|
-
import { b as
|
|
7
|
-
import { useSnackbar as
|
|
8
|
-
import { _ as
|
|
9
|
-
import { useRouter as
|
|
10
|
-
import { useI18n as
|
|
11
|
-
|
|
1
|
+
import { defineComponent as me, ref as O, watch as W, computed as w, h as f, withModifiers as ue, resolveComponent as x, createBlock as T, openBlock as F, withCtx as i, createVNode as n, createElementVNode as y, unref as e, normalizeStyle as pe, normalizeClass as C, withDirectives as B, createElementBlock as de, Fragment as fe, renderList as ve, toDisplayString as R, createTextVNode as ye, vShow as D } from "vue";
|
|
2
|
+
import { storeToRefs as X } from "pinia";
|
|
3
|
+
import { a as ge } from "./v4-HCTsB306.js";
|
|
4
|
+
import { _ as be } from "./Default.vue_vue_type_script_setup_true_lang-D7TqpbQ9.js";
|
|
5
|
+
import { u as he } from "./message-dialog-UoMWOnil.js";
|
|
6
|
+
import { b as xe, f as Ce } from "./global-loader-BqFQzk46.js";
|
|
7
|
+
import { useSnackbar as _e, useBreakpoints as ke, components as we, FmButtonColorThemeVariant as $e } from "@feedmepos/ui-library";
|
|
8
|
+
import { _ as Ie } from "./NoData.vue_vue_type_script_setup_true_lang-DI4X_DSc.js";
|
|
9
|
+
import { useRouter as Se, useRoute as Fe, onBeforeRouteLeave as Re } from "vue-router";
|
|
10
|
+
import { useI18n as Le } from "@feedmepos/mf-common";
|
|
11
|
+
import { r as Z } from "./i18n-Cif1I9J2.js";
|
|
12
|
+
const Ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ze = { class: "w-[343px]" }, Pe = { class: "fm-typo-en-body-md-600" }, Ye = /* @__PURE__ */ me({
|
|
12
13
|
__name: "Report",
|
|
13
|
-
setup(
|
|
14
|
-
const { t: r } =
|
|
14
|
+
setup(Ne) {
|
|
15
|
+
const { t: r, te: A } = Le(), M = Se(), q = Fe(), p = ge(), { business: ee } = X(xe()), {
|
|
15
16
|
reports: d,
|
|
16
17
|
categories: $,
|
|
17
18
|
pinReport: I,
|
|
18
|
-
isOpenAddReportDialog:
|
|
19
|
-
scrollPositionY:
|
|
20
|
-
customReportQuota:
|
|
21
|
-
canCreateCustomReport:
|
|
22
|
-
} =
|
|
23
|
-
|
|
24
|
-
g.value && (
|
|
25
|
-
}),
|
|
19
|
+
isOpenAddReportDialog: te,
|
|
20
|
+
scrollPositionY: J,
|
|
21
|
+
customReportQuota: K,
|
|
22
|
+
canCreateCustomReport: oe
|
|
23
|
+
} = X(p), { promptMessage: U } = he(), { promptLoader: j } = Ce(), v = _e(), { breakpoints: s } = ke(), g = O();
|
|
24
|
+
Re(() => {
|
|
25
|
+
g.value && (J.value = g.value.$el.children[0].scrollTop);
|
|
26
|
+
}), W(g, () => {
|
|
26
27
|
g.value && setTimeout(() => {
|
|
27
|
-
g.value.$el.children[0].scrollTop =
|
|
28
|
+
g.value.$el.children[0].scrollTop = J.value;
|
|
28
29
|
}, 200);
|
|
29
30
|
});
|
|
30
31
|
const L = w(() => I.value && d.value ? d.value.filter((t) => {
|
|
31
32
|
var o;
|
|
32
33
|
return (o = I.value) == null ? void 0 : o.includes(t.id);
|
|
33
34
|
}) : []);
|
|
34
|
-
|
|
35
|
-
[() =>
|
|
35
|
+
W(
|
|
36
|
+
[() => ee.value],
|
|
36
37
|
() => {
|
|
37
38
|
p.refreshPinReport();
|
|
38
39
|
},
|
|
39
40
|
{ immediate: !0 }
|
|
40
41
|
);
|
|
41
|
-
const
|
|
42
|
+
const Y = w(() => L.value.length > 0 ? d.value.filter(
|
|
42
43
|
(t) => L.value.findIndex((o) => o.id === t.id) === -1
|
|
43
|
-
) : d.value), { FmButton:
|
|
44
|
+
) : d.value), { FmButton: re, FmMenu: V, FmMenuItem: _, FmIcon: z, FmChip: P } = we, E = w(() => [
|
|
44
45
|
{ value: void 0, label: "All" },
|
|
45
46
|
...$.value.map((t) => ({
|
|
46
47
|
value: t.id,
|
|
47
48
|
label: t.name
|
|
48
49
|
}))
|
|
49
|
-
]), b = O(
|
|
50
|
+
]), b = O(E.value[0]), S = O(""), h = w(() => Y.value.length === 0 || $.value.length === 0 ? [] : [
|
|
50
51
|
...L.value.map((o) => {
|
|
51
52
|
const a = $.value.find((c) => c.id === o.category);
|
|
52
53
|
return {
|
|
53
|
-
name: o.name,
|
|
54
|
+
name: Z(r, A, o.name, "other"),
|
|
54
55
|
categoryId: (a == null ? void 0 : a.id) ?? "",
|
|
55
56
|
category: a != null && a.name ? r(`report.category.${a.name}`) : r("report.common.uncategorized"),
|
|
56
57
|
reportId: o.id,
|
|
@@ -58,10 +59,10 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
58
59
|
pin: !0
|
|
59
60
|
};
|
|
60
61
|
}).filter((o) => b.value.value && o.categoryId !== b.value.value ? !1 : o.name.toLowerCase().indexOf(S.value.toLowerCase()) !== -1),
|
|
61
|
-
...
|
|
62
|
+
...Y.value.map((o) => {
|
|
62
63
|
const a = $.value.find((c) => c.id === o.category);
|
|
63
64
|
return {
|
|
64
|
-
name: o.name,
|
|
65
|
+
name: Z(r, A, o.name, "other"),
|
|
65
66
|
categoryId: (a == null ? void 0 : a.id) ?? "",
|
|
66
67
|
category: a != null && a.name ? r(`report.category.${a.name}`) : r("report.common.uncategorized"),
|
|
67
68
|
reportId: o.id,
|
|
@@ -69,9 +70,9 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
69
70
|
pin: !1
|
|
70
71
|
};
|
|
71
72
|
}).filter((o) => b.value.value && o.categoryId !== b.value.value ? !1 : o.name.toLowerCase().indexOf(S.value.toLowerCase()) !== -1)
|
|
72
|
-
]),
|
|
73
|
-
() =>
|
|
74
|
-
),
|
|
73
|
+
]), ae = w(
|
|
74
|
+
() => h.value.map((t) => `${t.name}${t.category}`).toString()
|
|
75
|
+
), le = [
|
|
75
76
|
{
|
|
76
77
|
accessorKey: "name",
|
|
77
78
|
header: r("report.common.name"),
|
|
@@ -106,7 +107,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
106
107
|
{
|
|
107
108
|
label: r("report.common.duplicate"),
|
|
108
109
|
onClick: () => {
|
|
109
|
-
c &&
|
|
110
|
+
c && G(c);
|
|
110
111
|
},
|
|
111
112
|
variant: "",
|
|
112
113
|
disabled: !1
|
|
@@ -114,7 +115,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
114
115
|
{
|
|
115
116
|
label: r("report.common.remove"),
|
|
116
117
|
onClick: () => {
|
|
117
|
-
c &&
|
|
118
|
+
c && H(c);
|
|
118
119
|
},
|
|
119
120
|
variant: "destructive",
|
|
120
121
|
disabled: !o.editable
|
|
@@ -130,8 +131,8 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
130
131
|
f(
|
|
131
132
|
"button",
|
|
132
133
|
{
|
|
133
|
-
onClick:
|
|
134
|
-
c &&
|
|
134
|
+
onClick: ue(() => {
|
|
135
|
+
c && Q(c);
|
|
135
136
|
}, ["stop"]),
|
|
136
137
|
class: `text-fm-color-neutral-gray-400 ${o.pin ? "" : "show-pin"} hover:bg-fm-color-opacity-sm rounded-lg flex items-center justify-center`
|
|
137
138
|
},
|
|
@@ -156,7 +157,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
156
157
|
{
|
|
157
158
|
default: () => N.map(
|
|
158
159
|
(m) => f(
|
|
159
|
-
|
|
160
|
+
_,
|
|
160
161
|
{
|
|
161
162
|
onClick: m.disabled ? {} : m.onClick,
|
|
162
163
|
label: m.label,
|
|
@@ -169,12 +170,12 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
169
170
|
)
|
|
170
171
|
),
|
|
171
172
|
"menu-button": () => f(
|
|
172
|
-
|
|
173
|
+
re,
|
|
173
174
|
{
|
|
174
175
|
variant: "tertiary",
|
|
175
176
|
size: "md",
|
|
176
177
|
icon: "more_vert",
|
|
177
|
-
iconColor:
|
|
178
|
+
iconColor: $e.NeutralGray400
|
|
178
179
|
},
|
|
179
180
|
{}
|
|
180
181
|
)
|
|
@@ -186,8 +187,8 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
186
187
|
}
|
|
187
188
|
}
|
|
188
189
|
];
|
|
189
|
-
async function
|
|
190
|
-
if (await
|
|
190
|
+
async function G(t) {
|
|
191
|
+
if (await U({
|
|
191
192
|
title: r("report.common.duplicate"),
|
|
192
193
|
message: r("report.messages.confirmAction", {
|
|
193
194
|
action: r("report.common.duplicate"),
|
|
@@ -195,7 +196,7 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
195
196
|
})
|
|
196
197
|
})) {
|
|
197
198
|
const a = JSON.parse(JSON.stringify(t));
|
|
198
|
-
a.editable = !0, a.id = "", a.name = `${a.name} ${r("report.common.duplicate")}`,
|
|
199
|
+
a.editable = !0, a.id = "", a.name = `${a.name} ${r("report.common.duplicate")}`, j(async () => {
|
|
199
200
|
try {
|
|
200
201
|
await p.createOrUpdateReport(a), v.open({
|
|
201
202
|
message: `${r("report.messages.duplicateSuccess", { name: a.name })}`,
|
|
@@ -207,11 +208,11 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
207
208
|
});
|
|
208
209
|
}
|
|
209
210
|
}
|
|
210
|
-
async function
|
|
211
|
-
await
|
|
211
|
+
async function H(t) {
|
|
212
|
+
await U({
|
|
212
213
|
title: r("report.messages.deleteReport"),
|
|
213
214
|
message: r("report.messages.confirmDelete", { name: t.name })
|
|
214
|
-
}) &&
|
|
215
|
+
}) && j(async () => {
|
|
215
216
|
try {
|
|
216
217
|
await p.removeReport(t), v.open({
|
|
217
218
|
message: r("report.messages.deleteSuccess", { name: t.name }),
|
|
@@ -222,18 +223,18 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
222
223
|
}
|
|
223
224
|
});
|
|
224
225
|
}
|
|
225
|
-
function
|
|
226
|
-
if (
|
|
227
|
-
|
|
226
|
+
function ne() {
|
|
227
|
+
if (oe.value)
|
|
228
|
+
te.value = !0;
|
|
228
229
|
else {
|
|
229
|
-
let t = `Your current plan only support up to ${
|
|
230
|
-
|
|
230
|
+
let t = `Your current plan only support up to ${K.value} custom reports.`;
|
|
231
|
+
K.value === 0 && (t = "Your current plan does not support custom report."), v.open({
|
|
231
232
|
message: t,
|
|
232
233
|
type: "error"
|
|
233
234
|
});
|
|
234
235
|
}
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
+
function Q(t) {
|
|
237
238
|
I.value && I.value.includes(t.id) ? (v.open({
|
|
238
239
|
message: `${r("report.common.unpin")} ${t.name} ${r("report.common.successful")}`,
|
|
239
240
|
type: "success"
|
|
@@ -242,12 +243,12 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
242
243
|
type: "success"
|
|
243
244
|
}), p.cachePinReport(t));
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
+
function se(t) {
|
|
246
247
|
b.value = t;
|
|
247
248
|
}
|
|
248
249
|
return (t, o) => {
|
|
249
|
-
const a =
|
|
250
|
-
return F(), T(
|
|
250
|
+
const a = x("FmPageHead"), c = x("FmSearch"), N = x("FmForm"), m = x("FmListItem"), ce = x("FmList"), ie = x("FmTable");
|
|
251
|
+
return F(), T(be, null, {
|
|
251
252
|
default: i(() => [
|
|
252
253
|
n(a, {
|
|
253
254
|
title: e(r)("report.common.report", 1),
|
|
@@ -260,14 +261,14 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
260
261
|
prependIcon: "add"
|
|
261
262
|
}
|
|
262
263
|
],
|
|
263
|
-
"onClick:action": o[0] || (o[0] = (l) =>
|
|
264
|
+
"onClick:action": o[0] || (o[0] = (l) => ne())
|
|
264
265
|
}, null, 8, ["title", "actions"]),
|
|
265
266
|
y("div", {
|
|
266
|
-
class:
|
|
267
|
-
style:
|
|
267
|
+
class: C(`overflow-y-hidden flex flex-col gap-8 ${e(s).sm || e(s).xs ? "mb-20" : ""}`),
|
|
268
|
+
style: pe({ height: `calc(100% - ${e(s).lg || e(s).md ? 72 : 64}px)` })
|
|
268
269
|
}, [
|
|
269
270
|
n(N, {
|
|
270
|
-
class:
|
|
271
|
+
class: C(`flex items-center gap-2 ${e(s).sm || e(s).xs ? "px-3" : "px-24"}`)
|
|
271
272
|
}, {
|
|
272
273
|
default: i(() => [
|
|
273
274
|
n(e(V), null, {
|
|
@@ -281,54 +282,54 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
281
282
|
})
|
|
282
283
|
]),
|
|
283
284
|
default: i(() => [
|
|
284
|
-
(F(!0),
|
|
285
|
+
(F(!0), de(fe, null, ve(E.value, (l, u) => (F(), T(e(_), {
|
|
285
286
|
key: u,
|
|
286
287
|
label: e(r)(`report.category.${l.label}`),
|
|
287
|
-
onClick: () =>
|
|
288
|
+
onClick: () => se(l)
|
|
288
289
|
}, null, 8, ["label", "onClick"]))), 128))
|
|
289
290
|
]),
|
|
290
291
|
_: 1
|
|
291
292
|
}),
|
|
292
293
|
y("div", {
|
|
293
|
-
class:
|
|
294
|
+
class: C(`flex ${e(s).sm || e(s).xs ? "justify-center items-center" : ""}`)
|
|
294
295
|
}, [
|
|
295
|
-
y("p",
|
|
296
|
+
y("p", Ve, R(e(r)("report.common.results", { count: h.value.length })), 1)
|
|
296
297
|
], 2),
|
|
297
298
|
o[3] || (o[3] = y("div", { class: "grow" }, null, -1)),
|
|
298
|
-
y("div",
|
|
299
|
+
y("div", ze, [
|
|
299
300
|
n(c, {
|
|
300
301
|
modelValue: S.value,
|
|
301
302
|
"onUpdate:modelValue": o[1] || (o[1] = (l) => S.value = l),
|
|
302
|
-
class:
|
|
303
|
+
class: C(`${e(s).lg || e(s).md ? "grow" : ""}`)
|
|
303
304
|
}, null, 8, ["modelValue", "class"])
|
|
304
305
|
])
|
|
305
306
|
]),
|
|
306
307
|
_: 1
|
|
307
308
|
}, 8, ["class"]),
|
|
308
|
-
B((F(), T(
|
|
309
|
-
key:
|
|
309
|
+
B((F(), T(ie, {
|
|
310
|
+
key: ae.value,
|
|
310
311
|
ref_key: "table",
|
|
311
312
|
ref: g,
|
|
312
|
-
class:
|
|
313
|
+
class: C([e(s).sm || e(s).xs ? "px-0" : "px-24", "report-table"]),
|
|
313
314
|
style: { height: "calc(100% - 40px)" },
|
|
314
|
-
"column-defs":
|
|
315
|
-
"row-data":
|
|
316
|
-
"page-size":
|
|
315
|
+
"column-defs": le,
|
|
316
|
+
"row-data": h.value,
|
|
317
|
+
"page-size": h.value.length,
|
|
317
318
|
"hide-footer": !0,
|
|
318
319
|
"row-class-name": "row",
|
|
319
320
|
onRowClick: o[2] || (o[2] = (l) => {
|
|
320
|
-
e(p).updateCurrentReportId(l.original.reportId), e(
|
|
321
|
+
e(p).updateCurrentReportId(l.original.reportId), e(M).push({
|
|
321
322
|
name: "reportView",
|
|
322
|
-
query: e(
|
|
323
|
+
query: e(q).query
|
|
323
324
|
});
|
|
324
325
|
})
|
|
325
326
|
}, {
|
|
326
327
|
"list-row": i(({ original: l }) => [
|
|
327
|
-
n(
|
|
328
|
+
n(ce, {
|
|
328
329
|
onClick: () => {
|
|
329
|
-
l.reportId && (e(p).updateCurrentReportId(l.reportId), e(
|
|
330
|
+
l.reportId && (e(p).updateCurrentReportId(l.reportId), e(M).push({
|
|
330
331
|
name: "reportView",
|
|
331
|
-
query: e(
|
|
332
|
+
query: e(q).query
|
|
332
333
|
}));
|
|
333
334
|
}
|
|
334
335
|
}, {
|
|
@@ -340,13 +341,13 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
340
341
|
}, {
|
|
341
342
|
append: i(() => [
|
|
342
343
|
n(e(P), {
|
|
343
|
-
class:
|
|
344
|
+
class: C(
|
|
344
345
|
l.category !== "Uncategorized" ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
|
|
345
346
|
),
|
|
346
347
|
compact: !0
|
|
347
348
|
}, {
|
|
348
349
|
default: i(() => [
|
|
349
|
-
y("p",
|
|
350
|
+
y("p", Pe, R(l.category), 1)
|
|
350
351
|
]),
|
|
351
352
|
_: 2
|
|
352
353
|
}, 1032, ["class"]),
|
|
@@ -361,36 +362,36 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
361
362
|
})
|
|
362
363
|
]),
|
|
363
364
|
default: i(() => [
|
|
364
|
-
n(e(
|
|
365
|
+
n(e(_), {
|
|
365
366
|
label: l.pin ? "Unpin" : "Pin",
|
|
366
367
|
onClick: () => {
|
|
367
368
|
const u = e(d).find(
|
|
368
369
|
(k) => k.id === l.reportId
|
|
369
370
|
);
|
|
370
|
-
u &&
|
|
371
|
+
u && Q(u);
|
|
371
372
|
}
|
|
372
373
|
}, null, 8, ["label", "onClick"]),
|
|
373
|
-
n(e(
|
|
374
|
+
n(e(_), {
|
|
374
375
|
label: e(r)("report.common.duplicate"),
|
|
375
376
|
onClick: () => {
|
|
376
377
|
const u = e(d).find(
|
|
377
378
|
(k) => k.id === l.reportId
|
|
378
379
|
);
|
|
379
|
-
u &&
|
|
380
|
+
u && G(u);
|
|
380
381
|
}
|
|
381
382
|
}, null, 8, ["label", "onClick"]),
|
|
382
|
-
B(n(e(
|
|
383
|
+
B(n(e(_), {
|
|
383
384
|
label: e(r)("report.common.delete"),
|
|
384
385
|
class: "text-fm-color-typo-error",
|
|
385
386
|
onClick: () => {
|
|
386
387
|
const u = e(d).find(
|
|
387
388
|
(k) => k.id === l.reportId
|
|
388
389
|
);
|
|
389
|
-
u &&
|
|
390
|
+
u && H(u);
|
|
390
391
|
}
|
|
391
392
|
}, {
|
|
392
393
|
label: i(() => [
|
|
393
|
-
|
|
394
|
+
ye(R(e(r)("report.common.delete")), 1)
|
|
394
395
|
]),
|
|
395
396
|
_: 2
|
|
396
397
|
}, 1032, ["label", "onClick"]), [
|
|
@@ -408,10 +409,10 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
408
409
|
]),
|
|
409
410
|
_: 1
|
|
410
411
|
}, 8, ["class", "row-data", "page-size"])), [
|
|
411
|
-
[D,
|
|
412
|
+
[D, h.value.length > 0]
|
|
412
413
|
]),
|
|
413
|
-
B(n(
|
|
414
|
-
[D,
|
|
414
|
+
B(n(Ie, null, null, 512), [
|
|
415
|
+
[D, h.value.length === 0]
|
|
415
416
|
])
|
|
416
417
|
], 6)
|
|
417
418
|
]),
|
|
@@ -421,5 +422,5 @@ const Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Le
|
|
|
421
422
|
}
|
|
422
423
|
});
|
|
423
424
|
export {
|
|
424
|
-
|
|
425
|
+
Ye as default
|
|
425
426
|
};
|