@feedmepos/mf-report 5.28.1 → 5.28.2-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-BQcj7ZgK.js → App-BXAJux6l.js} +37 -37
- package/dist/{DateRangeSelect-TQA-9XXm.js → DateRangeSelect-CTRmA328.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-2PkkRpW_.js → Default.vue_vue_type_script_setup_true_lang-BG2jxJPI.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-BpZh4FDA.js → DynamicWidget.vue_vue_type_script_setup_true_lang-C_DJ9FoF.js} +5 -5
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-Ddimiuh3.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DYRTdidI.js} +567 -563
- package/dist/{InsightView-BG5IeWD1.js → InsightView-DaOWIctS.js} +5 -5
- package/dist/{Integration-DUBg0wiX.js → Integration-BpGek4aO.js} +3 -3
- package/dist/{Integrations-CerT8IlU.js → Integrations-14q5kVTI.js} +2 -2
- package/dist/{Layout-Rr16bUkn.js → Layout-DvcgX7Iv.js} +1 -1
- package/dist/{LocationSelect.vue_vue_type_script_setup_true_lang-BEUDpozo.js → LocationSelect.vue_vue_type_script_setup_true_lang-C_CDdD0A.js} +2 -2
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Ca-Vlwmm.js → MenuTab.vue_vue_type_script_setup_true_lang-DDzDc9Jf.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-IJ7NUGbC.js → NavigationTab.vue_vue_type_script_setup_true_lang-CQQhOfTk.js} +5 -5
- package/dist/{OverviewView-D5q_5KwX.js → OverviewView-COpmh0Kb.js} +4 -4
- package/dist/{Report-CDk8BkDF.js → Report-CKz6bZsI.js} +3 -3
- package/dist/{ReportCanvasView-BNy6YAj6.js → ReportCanvasView-1XK-YyTM.js} +3 -3
- package/dist/{ReportEditor-JAgqGYhA.js → ReportEditor-CCheaXAp.js} +849 -830
- package/dist/ReportView-QNB3gvs4.js +333 -0
- package/dist/{ReportViewRoute-NmDrsao2.js → ReportViewRoute-Dx_TqR4V.js} +2 -2
- package/dist/{Setting-BCBWGuMP.js → Setting-CL9fHaC_.js} +3 -3
- package/dist/{Template-B0Z7IA2P.js → Template-CQXJLmIR.js} +3 -3
- package/dist/{TileEditor-CUUIrvVX.js → TileEditor-dRlM0Rt9.js} +6 -6
- package/dist/{TilePageStack.vue_vue_type_script_setup_true_lang-ByOoDTHP.js → TilePageStack.vue_vue_type_script_setup_true_lang-DsvTr7fz.js} +2 -2
- package/dist/{TransitionFade-DVVKEBlH.js → TransitionFade-BmUpvHUW.js} +5 -5
- package/dist/{app-CVVEOyIu.js → app-DajOeQ5X.js} +721 -717
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-BeBGCyYW.js → formatChartData.worker-Dx1USoTn.js} +5 -1
- package/dist/assets/{processTableData.worker-frTYV0ok.js → processTableData.worker-clNopMr8.js} +5 -1
- package/dist/{report-35Rm6TvO.js → report-a3OefqFb.js} +157 -153
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-BAkRCzWY.js → useRestaurantPermission-xyo71b-g.js} +1 -1
- package/package.json +1 -1
- package/dist/ReportView-C3LFd5yk.js +0 -329
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-e0ce1b3c] .report-date-access-disabled{color:var(--fm-color-typo-disabled, #a8a8a8);opacity:.45}[data-v-e0ce1b3c] .report-date-access-disabled .fm-calendar__cell__button{cursor:not-allowed;color:var(--fm-color-typo-disabled, #a8a8a8);text-decoration:line-through}.glassmorphism{background:linear-gradient(135deg,#fffffff5,#fffffff5);box-shadow:0 8px 24px #0f172a2e}.chart-legend-text[data-v-706fa016]{color:var(--legend-text-color);font-size:var(--legend-font-size)}.chart-legend-list[data-v-706fa016]{scrollbar-width:none;-ms-overflow-style:none}.chart-legend-list[data-v-706fa016]::-webkit-scrollbar{display:none;width:0;height:0}.circular.circular{flex:1 1 auto;min-height:0;min-width:0;max-height:100%;max-width:100%;overflow:hidden;padding:0;width:calc(100% - var(--legend-panel-width, 0px));height:calc(100% - var(--legend-panel-height, 0px))}.circular.circular .flex-col.gap-8{gap:0!important}.circular.circular .fm-color-typo-primary:empty,.circular.circular .fm-color-typo-secondary:empty{display:none}.circular.circular .grow{height:100%}.sparkline.sparkline{margin:0;padding:0}.sparkline.sparkline .grow{height:50px;flex-grow:1;min-height:0}.sparkline-chart>div:not(.grow){display:none}.sparkline-chart canvas{display:block}.scrollbar-hide-table>div{scrollbar-width:thin}.bar-chart.bar-chart{flex:1 1 auto;min-height:0;min-width:0;max-width:100%;max-height:100%;overflow:hidden;padding:0;width:calc(100% - var(--legend-panel-width, 0px));height:calc(100% - var(--legend-panel-height, 0px))}.bar-chart.bar-chart .grow{height:100%}.bar-chart.bar-chart .flex-col{gap:0}.widget-content{display:flex;flex-direction:column;width:100%;height:100%;min-height:0}.chart-layout{display:flex;flex-direction:column;flex:1 1 auto;width:100%;min-height:0}.chart-layout--side{flex-direction:row;align-items:stretch;gap:0;min-height:0}.line-chart.line-chart{flex:1 1 auto;min-height:0;min-width:0;max-width:100%;max-height:100%;overflow:hidden;margin:0;padding:8px 0 0;width:calc(100% - var(--legend-panel-width, 0px));height:calc(100% - var(--legend-panel-height, 0px))}.line-chart.line-chart .grow{height:100%}.line-chart.line-chart .flex-col{gap:0}.card-container[data-v-818eab25]{overflow-y:auto;overflow-x:hidden}.fm-progress-linear-custom span[data-v-2f6d52e6]{width:auto;height:100%;position:absolute;display:inline-block;top:0;left:0}.fm-progress-linear-custom span.dash-1[data-v-2f6d52e6]{left:-35%;animation:progress-linear-dash-1-2f6d52e6 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.fm-progress-linear-custom span.dash-2[data-v-2f6d52e6]{left:100%;animation:progress-linear-dash-2-2f6d52e6 2.1s cubic-bezier(.165,.84,.44,1) 1.15s infinite}@keyframes progress-linear-dash-1-2f6d52e6{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes progress-linear-dash-2-2f6d52e6{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes shimmer-2f6d52e6{0%{transform:translate(-100%)}to{transform:translate(400%)}}.progress-bar-fill[data-v-2f6d52e6]{position:relative;overflow:hidden}.progress-bar-fill[data-v-2f6d52e6]:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;width:50%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.12) 30%,rgba(255,255,255,.28) 50%,rgba(255,255,255,.12) 70%,transparent 100%);animation:shimmer-2f6d52e6 1.5s infinite linear}.show-pin{visibility:hidden}.row:hover .show-pin,.row:hover .show-actions{visibility:visible}.icon-btn{border-radius:100%}.overlay{background:#0006;position:absolute;top:0;left:0;height:100vh;width:100vw}.side-panel{position:fixed;right:0;top:0;height:100%;background:#fff}.fade-enter-active,.fade-leave-active{transition:opacity .2s ease}.fade-enter-from,.fade-leave-to{opacity:0}.slide-enter-active,.slide-leave-active{transition:all .3s ease-out}.slide-enter-from,.slide-leave-to{transform:translate(100%)}.selected-widget[data-v-0535b07b]{background-color:#fff4e6;border-color:#ff7823}.slide-fade-enter-active[data-v-fa67a3a4],.slide-fade-leave-active[data-v-fa67a3a4]{transition:all .3s ease-in-out}.slide-fade-enter-from[data-v-fa67a3a4],.slide-fade-leave-to[data-v-fa67a3a4]{transform:translateY(-50px);opacity:0}.slide-fade-right-enter-active[data-v-a98ca9bc],.slide-fade-right-leave-active[data-v-a98ca9bc]{transition:all .3s ease-in-out}.slide-fade-right-enter-from[data-v-a98ca9bc],.slide-fade-right-leave-to[data-v-a98ca9bc]{position:absolute;transform:translate(-50px);opacity:.4}.slide-fade-left-enter-active[data-v-a98ca9bc]{transition-delay:.3s;transition:all .3s ease-in-out}.slide-fade-left-leave-active[data-v-a98ca9bc]{transition:all .3s ease-in-out}.slide-fade-left-enter-from[data-v-a98ca9bc],.slide-fade-left-leave-to[data-v-a98ca9bc]{position:absolute;transform:translate(-50px);opacity:.1}.legend-color-input[data-v-0e072961]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:40px;height:24px;border:0;background:transparent;padding:0}.legend-color-input[data-v-0e072961]::-webkit-color-swatch-wrapper{padding:0}.legend-color-input[data-v-0e072961]::-webkit-color-swatch{border:1px solid rgb(var(--fm-color-neutral-gray-200));border-radius:4px}.legend-color-input[data-v-0e072961]::-moz-color-swatch{border:1px solid rgb(var(--fm-color-neutral-gray-200));border-radius:4px}.line-style-icon[data-v-f1c35513]{width:28px;border-top:2px solid currentColor;color:rgb(var(--fm-color-neutral-gray-300));flex-shrink:0}.line-style-icon--solid[data-v-f1c35513]{border-top-style:solid}.line-style-icon--dashed[data-v-f1c35513]{border-top-style:dashed}.line-style-icon--dotted[data-v-f1c35513]{border-top-style:dotted}.fm-top-sheet{height:100%}.integration-card[data-v-60c3aea9]{height:140px;width:140px;padding:0}.integration-card .logo-card[data-v-60c3aea9]{width:100%;padding:24px;background:#fff}.integration-card .title-card[data-v-60c3aea9]{height:36px;color:#fff}@keyframes project-mapping-highlight-5aaec20d{0%{box-shadow:0 0 0 0 transparent;border-color:transparent}20%{box-shadow:0 0 0 2px var(--fm-color-primary);border-color:var(--fm-color-primary)}35%{box-shadow:0 0 0 0 transparent;border-color:transparent}50%{box-shadow:0 0 0 2px var(--fm-color-primary);border-color:var(--fm-color-primary)}65%{box-shadow:0 0 0 0 transparent;border-color:transparent}70%{box-shadow:0 0 0 2px var(--fm-color-primary);border-color:var(--fm-color-primary)}to{box-shadow:0 0 0 0 transparent;border-color:transparent}}.animate-project-mapping-highlight[data-v-5aaec20d]{animation:project-mapping-highlight-5aaec20d 1.4s ease-out;border:1px solid transparent}.ap-project-shared-field[data-v-5aaec20d] .inline-flex>div:last-child{text-decoration:underline}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.remove-line-clamping[data-v-
|
|
1
|
+
[data-v-e0ce1b3c] .report-date-access-disabled{color:var(--fm-color-typo-disabled, #a8a8a8);opacity:.45}[data-v-e0ce1b3c] .report-date-access-disabled .fm-calendar__cell__button{cursor:not-allowed;color:var(--fm-color-typo-disabled, #a8a8a8);text-decoration:line-through}.glassmorphism{background:linear-gradient(135deg,#fffffff5,#fffffff5);box-shadow:0 8px 24px #0f172a2e}.chart-legend-text[data-v-706fa016]{color:var(--legend-text-color);font-size:var(--legend-font-size)}.chart-legend-list[data-v-706fa016]{scrollbar-width:none;-ms-overflow-style:none}.chart-legend-list[data-v-706fa016]::-webkit-scrollbar{display:none;width:0;height:0}.circular.circular{flex:1 1 auto;min-height:0;min-width:0;max-height:100%;max-width:100%;overflow:hidden;padding:0;width:calc(100% - var(--legend-panel-width, 0px));height:calc(100% - var(--legend-panel-height, 0px))}.circular.circular .flex-col.gap-8{gap:0!important}.circular.circular .fm-color-typo-primary:empty,.circular.circular .fm-color-typo-secondary:empty{display:none}.circular.circular .grow{height:100%}.sparkline.sparkline{margin:0;padding:0}.sparkline.sparkline .grow{height:50px;flex-grow:1;min-height:0}.sparkline-chart>div:not(.grow){display:none}.sparkline-chart canvas{display:block}.scrollbar-hide-table>div{scrollbar-width:thin}.bar-chart.bar-chart{flex:1 1 auto;min-height:0;min-width:0;max-width:100%;max-height:100%;overflow:hidden;padding:0;width:calc(100% - var(--legend-panel-width, 0px));height:calc(100% - var(--legend-panel-height, 0px))}.bar-chart.bar-chart .grow{height:100%}.bar-chart.bar-chart .flex-col{gap:0}.widget-content{display:flex;flex-direction:column;width:100%;height:100%;min-height:0}.chart-layout{display:flex;flex-direction:column;flex:1 1 auto;width:100%;min-height:0}.chart-layout--side{flex-direction:row;align-items:stretch;gap:0;min-height:0}.line-chart.line-chart{flex:1 1 auto;min-height:0;min-width:0;max-width:100%;max-height:100%;overflow:hidden;margin:0;padding:8px 0 0;width:calc(100% - var(--legend-panel-width, 0px));height:calc(100% - var(--legend-panel-height, 0px))}.line-chart.line-chart .grow{height:100%}.line-chart.line-chart .flex-col{gap:0}.card-container[data-v-818eab25]{overflow-y:auto;overflow-x:hidden}.fm-progress-linear-custom span[data-v-2f6d52e6]{width:auto;height:100%;position:absolute;display:inline-block;top:0;left:0}.fm-progress-linear-custom span.dash-1[data-v-2f6d52e6]{left:-35%;animation:progress-linear-dash-1-2f6d52e6 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.fm-progress-linear-custom span.dash-2[data-v-2f6d52e6]{left:100%;animation:progress-linear-dash-2-2f6d52e6 2.1s cubic-bezier(.165,.84,.44,1) 1.15s infinite}@keyframes progress-linear-dash-1-2f6d52e6{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes progress-linear-dash-2-2f6d52e6{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}@keyframes shimmer-2f6d52e6{0%{transform:translate(-100%)}to{transform:translate(400%)}}.progress-bar-fill[data-v-2f6d52e6]{position:relative;overflow:hidden}.progress-bar-fill[data-v-2f6d52e6]:after{content:"";position:absolute;top:0;right:0;bottom:0;left:0;width:50%;background:linear-gradient(90deg,transparent 0%,rgba(255,255,255,.12) 30%,rgba(255,255,255,.28) 50%,rgba(255,255,255,.12) 70%,transparent 100%);animation:shimmer-2f6d52e6 1.5s infinite linear}.show-pin{visibility:hidden}.row:hover .show-pin,.row:hover .show-actions{visibility:visible}.icon-btn{border-radius:100%}.overlay{background:#0006;position:absolute;top:0;left:0;height:100vh;width:100vw}.side-panel{position:fixed;right:0;top:0;height:100%;background:#fff}.fade-enter-active,.fade-leave-active{transition:opacity .2s ease}.fade-enter-from,.fade-leave-to{opacity:0}.slide-enter-active,.slide-leave-active{transition:all .3s ease-out}.slide-enter-from,.slide-leave-to{transform:translate(100%)}.selected-widget[data-v-0535b07b]{background-color:#fff4e6;border-color:#ff7823}.slide-fade-enter-active[data-v-fa67a3a4],.slide-fade-leave-active[data-v-fa67a3a4]{transition:all .3s ease-in-out}.slide-fade-enter-from[data-v-fa67a3a4],.slide-fade-leave-to[data-v-fa67a3a4]{transform:translateY(-50px);opacity:0}.slide-fade-right-enter-active[data-v-a98ca9bc],.slide-fade-right-leave-active[data-v-a98ca9bc]{transition:all .3s ease-in-out}.slide-fade-right-enter-from[data-v-a98ca9bc],.slide-fade-right-leave-to[data-v-a98ca9bc]{position:absolute;transform:translate(-50px);opacity:.4}.slide-fade-left-enter-active[data-v-a98ca9bc]{transition-delay:.3s;transition:all .3s ease-in-out}.slide-fade-left-leave-active[data-v-a98ca9bc]{transition:all .3s ease-in-out}.slide-fade-left-enter-from[data-v-a98ca9bc],.slide-fade-left-leave-to[data-v-a98ca9bc]{position:absolute;transform:translate(-50px);opacity:.1}.legend-color-input[data-v-0e072961]{-moz-appearance:none;appearance:none;-webkit-appearance:none;width:40px;height:24px;border:0;background:transparent;padding:0}.legend-color-input[data-v-0e072961]::-webkit-color-swatch-wrapper{padding:0}.legend-color-input[data-v-0e072961]::-webkit-color-swatch{border:1px solid rgb(var(--fm-color-neutral-gray-200));border-radius:4px}.legend-color-input[data-v-0e072961]::-moz-color-swatch{border:1px solid rgb(var(--fm-color-neutral-gray-200));border-radius:4px}.line-style-icon[data-v-f1c35513]{width:28px;border-top:2px solid currentColor;color:rgb(var(--fm-color-neutral-gray-300));flex-shrink:0}.line-style-icon--solid[data-v-f1c35513]{border-top-style:solid}.line-style-icon--dashed[data-v-f1c35513]{border-top-style:dashed}.line-style-icon--dotted[data-v-f1c35513]{border-top-style:dotted}.fm-top-sheet{height:100%}.integration-card[data-v-60c3aea9]{height:140px;width:140px;padding:0}.integration-card .logo-card[data-v-60c3aea9]{width:100%;padding:24px;background:#fff}.integration-card .title-card[data-v-60c3aea9]{height:36px;color:#fff}@keyframes project-mapping-highlight-5aaec20d{0%{box-shadow:0 0 0 0 transparent;border-color:transparent}20%{box-shadow:0 0 0 2px var(--fm-color-primary);border-color:var(--fm-color-primary)}35%{box-shadow:0 0 0 0 transparent;border-color:transparent}50%{box-shadow:0 0 0 2px var(--fm-color-primary);border-color:var(--fm-color-primary)}65%{box-shadow:0 0 0 0 transparent;border-color:transparent}70%{box-shadow:0 0 0 2px var(--fm-color-primary);border-color:var(--fm-color-primary)}to{box-shadow:0 0 0 0 transparent;border-color:transparent}}.animate-project-mapping-highlight[data-v-5aaec20d]{animation:project-mapping-highlight-5aaec20d 1.4s ease-out;border:1px solid transparent}.ap-project-shared-field[data-v-5aaec20d] .inline-flex>div:last-child{text-decoration:underline}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.remove-line-clamping[data-v-9a1ddac7] .line-clamp-1,.remove-line-clamping[data-v-9a1ddac7] .line-clamp-2{display:block!important;-webkit-line-clamp:unset!important;line-clamp:unset!important;-webkit-box-orient:unset!important;overflow:visible!important;white-space:normal!important}.remove-line-clamping[data-v-9a1ddac7] .flex.flex-col.flex-grow{min-width:0}.remove-line-clamping[data-v-9a1ddac7] .cursor-pointer.flex.items-center.justify-center.relative{min-width:0;max-width:100%;overflow:hidden}
|
|
@@ -2,7 +2,7 @@ import { computed as u } from "vue";
|
|
|
2
2
|
import { u as c } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
3
3
|
import { useSnackbar as f } from "@feedmepos/ui-library";
|
|
4
4
|
import { useCoreStore as d } from "@feedmepos/mf-common";
|
|
5
|
-
import { T as l, U as i } from "./app-
|
|
5
|
+
import { T as l, U as i } from "./app-DajOeQ5X.js";
|
|
6
6
|
function g(t) {
|
|
7
7
|
return Array.isArray(t) ? t : [];
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,329 +0,0 @@
|
|
|
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-Ca-Vlwmm.js";
|
|
3
|
-
import { _ as ve } from "./TilePageStack.vue_vue_type_script_setup_true_lang-ByOoDTHP.js";
|
|
4
|
-
import { u as fe, l as ye, t as ge } from "./report-35Rm6TvO.js";
|
|
5
|
-
import { useRouter as be, useRoute as _e } from "vue-router";
|
|
6
|
-
import { _ as we } from "./Default.vue_vue_type_script_setup_true_lang-2PkkRpW_.js";
|
|
7
|
-
import { storeToRefs as w } from "pinia";
|
|
8
|
-
import { a as Se, b as he, u as Ce, g as xe } from "./NavigationTab.vue_vue_type_script_setup_true_lang-IJ7NUGbC.js";
|
|
9
|
-
import { _ as V } from "./SelectComponent.vue_vue_type_script_setup_true_lang-DW7Dk7iQ.js";
|
|
10
|
-
import { useSnackbar as Te, useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
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-CVVEOyIu.js";
|
|
14
|
-
import { u as z, _ as Oe } from "./_plugin-vue_export-helper-C6QDExPN.js";
|
|
15
|
-
import { r as $e } from "./i18n-DbyciK4x.js";
|
|
16
|
-
const Ae = /* @__PURE__ */ F({
|
|
17
|
-
__name: "NoPermission",
|
|
18
|
-
props: {
|
|
19
|
-
title: { default: "report.messages.noPermission" },
|
|
20
|
-
subTitle: { default: "report.messages.noPermissionPageAccess" }
|
|
21
|
-
},
|
|
22
|
-
setup(P) {
|
|
23
|
-
const e = P, { t: g } = z(), d = i(() => g(e.title)), p = i(() => g(e.subTitle));
|
|
24
|
-
return (r, h) => (y(), f(V, {
|
|
25
|
-
title: d.value,
|
|
26
|
-
"sub-title": p.value
|
|
27
|
-
}, {
|
|
28
|
-
menu: S(() => [
|
|
29
|
-
ne(r.$slots, "menu")
|
|
30
|
-
]),
|
|
31
|
-
_: 3
|
|
32
|
-
}, 8, ["title", "sub-title"]));
|
|
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({
|
|
35
|
-
__name: "ReportView",
|
|
36
|
-
setup(P) {
|
|
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(
|
|
38
|
-
() => {
|
|
39
|
-
var a;
|
|
40
|
-
return ((a = $.value) == null ? void 0 : a.reportId) === c.value;
|
|
41
|
-
}
|
|
42
|
-
), U = i(() => {
|
|
43
|
-
var a;
|
|
44
|
-
return !!((a = o.value) != null && a.isSupportPos);
|
|
45
|
-
}), {
|
|
46
|
-
currentReport: o,
|
|
47
|
-
overviewReport: H,
|
|
48
|
-
currentReportId: c,
|
|
49
|
-
isOpenDownloadDialog: M,
|
|
50
|
-
isOpenEmailDialog: W,
|
|
51
|
-
editingReport: Y,
|
|
52
|
-
canCreateCustomReport: G,
|
|
53
|
-
customReportQuota: E
|
|
54
|
-
} = w(m), { canRead: Q, canUpdate: K, canDuplicate: X, isAdmin: Z } = Ie(), _ = i(() => o.value ? Q(o.value) : !0), C = i(
|
|
55
|
-
() => _.value && Z.value && !!o.value && !o.value.isDefault
|
|
56
|
-
);
|
|
57
|
-
ue(
|
|
58
|
-
() => c.value,
|
|
59
|
-
async () => $.value = await xe(c.value),
|
|
60
|
-
{ immediate: !0 }
|
|
61
|
-
);
|
|
62
|
-
const ee = i(() => {
|
|
63
|
-
var s;
|
|
64
|
-
if (!_.value) return [];
|
|
65
|
-
const a = c.value === ((s = H.value) == null ? void 0 : s.id), t = [
|
|
66
|
-
{
|
|
67
|
-
icon: "mail",
|
|
68
|
-
label: e("report.common.emailSchedule"),
|
|
69
|
-
onClick: () => {
|
|
70
|
-
I.value = !0;
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
icon: "article",
|
|
75
|
-
label: e(a ? "report.common.unsetAsOverview" : "report.common.setAsOverview"),
|
|
76
|
-
onClick: async () => {
|
|
77
|
-
await b(async () => {
|
|
78
|
-
if (o.value)
|
|
79
|
-
try {
|
|
80
|
-
await m.updateDefaultReport(a ? null : o.value.id), r.open({
|
|
81
|
-
message: `Successfully ${a ? "unset" : "set"} ${o.value.name} as Overview`,
|
|
82
|
-
type: "success"
|
|
83
|
-
});
|
|
84
|
-
} catch (v) {
|
|
85
|
-
r.open({ message: JSON.stringify(v), type: "error" });
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
icon: "content_copy",
|
|
92
|
-
label: e("report.common.copyID"),
|
|
93
|
-
onClick: () => {
|
|
94
|
-
o.value && (navigator.clipboard.writeText(c.value), r.open({ message: e("report.messages.copiedReportIdToClipboard"), type: "success" }));
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
icon: "report_jobs",
|
|
99
|
-
label: e("report.common.reportStatus"),
|
|
100
|
-
onClick: () => {
|
|
101
|
-
N();
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
];
|
|
105
|
-
return !O.value && A.value && t.splice(1, 0, {
|
|
106
|
-
icon: "download",
|
|
107
|
-
label: e("report.common.accountingExport"),
|
|
108
|
-
onClick: B
|
|
109
|
-
}), C.value && t.splice(t.length - 1, 0, {
|
|
110
|
-
icon: "library_add",
|
|
111
|
-
label: e("report.common.copyToTemplate"),
|
|
112
|
-
onClick: () => {
|
|
113
|
-
J();
|
|
114
|
-
}
|
|
115
|
-
}), t;
|
|
116
|
-
});
|
|
117
|
-
async function N() {
|
|
118
|
-
D.isOpenJobDialog = !0, await D.getJobs();
|
|
119
|
-
}
|
|
120
|
-
function oe() {
|
|
121
|
-
if (!o.value || !K(o.value)) {
|
|
122
|
-
r.open({
|
|
123
|
-
message: e("report.messages.noPermissionUpdateReport"),
|
|
124
|
-
type: "error"
|
|
125
|
-
});
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
Y.value = JSON.parse(JSON.stringify(o.value)), d.push({
|
|
129
|
-
name: "reportEditor",
|
|
130
|
-
query: p.query
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
async function te() {
|
|
134
|
-
if (!o.value || !X(o.value)) {
|
|
135
|
-
r.open({
|
|
136
|
-
message: e("report.messages.noPermissionDuplicateReport"),
|
|
137
|
-
type: "error"
|
|
138
|
-
});
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
if (!G.value) {
|
|
142
|
-
let t = `Your current plan only support up to ${E.value} custom reports.`;
|
|
143
|
-
E.value === 0 && (t = "Your current plan does not support custom report."), r.open({
|
|
144
|
-
message: t,
|
|
145
|
-
type: "error"
|
|
146
|
-
});
|
|
147
|
-
return;
|
|
148
|
-
}
|
|
149
|
-
if (!o.value) {
|
|
150
|
-
r.open({ message: "No Widget", type: "error" });
|
|
151
|
-
return;
|
|
152
|
-
}
|
|
153
|
-
if (await h({
|
|
154
|
-
title: `${e("report.messages.duplicateReport")}`,
|
|
155
|
-
message: e("report.messages.confirmAction", {
|
|
156
|
-
action: e("report.common.duplicate"),
|
|
157
|
-
name: o.value.name
|
|
158
|
-
})
|
|
159
|
-
}) && o.value) {
|
|
160
|
-
const t = JSON.parse(JSON.stringify(o.value));
|
|
161
|
-
t.editable = !0, t.id = "", t.name = `${t.name} duplicate`, t.isDefault = !1;
|
|
162
|
-
try {
|
|
163
|
-
await b(async () => {
|
|
164
|
-
const s = await m.createOrUpdateReport(t);
|
|
165
|
-
m.updateCurrentReportId(s.id), d.push({
|
|
166
|
-
name: "reportView",
|
|
167
|
-
params: p.params,
|
|
168
|
-
query: p.query
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
} catch (s) {
|
|
172
|
-
console.log(s), r.open({ message: "Failed to clone report", type: "error" });
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
async function J() {
|
|
177
|
-
var t;
|
|
178
|
-
if (!C.value) {
|
|
179
|
-
r.open({
|
|
180
|
-
message: e("report.messages.noPermission"),
|
|
181
|
-
type: "error"
|
|
182
|
-
});
|
|
183
|
-
return;
|
|
184
|
-
}
|
|
185
|
-
if (!o.value) {
|
|
186
|
-
r.open({ message: "No Widget", type: "error" });
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
if (await h({
|
|
190
|
-
title: `${e("report.common.copyToTemplate")}`,
|
|
191
|
-
message: e("report.messages.confirmAction", {
|
|
192
|
-
action: e("report.common.copyToTemplate"),
|
|
193
|
-
name: (t = o == null ? void 0 : o.value) == null ? void 0 : t.name
|
|
194
|
-
})
|
|
195
|
-
}))
|
|
196
|
-
try {
|
|
197
|
-
await b(async () => {
|
|
198
|
-
var s;
|
|
199
|
-
await m.createReportTemplate(o.value), r.open({
|
|
200
|
-
message: e("report.messages.copyTemplateSuccess", { name: (s = o.value) == null ? void 0 : s.name }),
|
|
201
|
-
type: "success"
|
|
202
|
-
});
|
|
203
|
-
});
|
|
204
|
-
} catch (s) {
|
|
205
|
-
console.log(s), r.open({
|
|
206
|
-
message: e("report.messages.failedToAction", { action: e("report.common.copyToTemplate") }),
|
|
207
|
-
type: "error"
|
|
208
|
-
});
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
function B() {
|
|
212
|
-
L.value = !0;
|
|
213
|
-
}
|
|
214
|
-
function ae() {
|
|
215
|
-
o.value && (navigator.clipboard.writeText(c.value), r.open({ message: "Copied report ID to clipboard", type: "success" }));
|
|
216
|
-
}
|
|
217
|
-
async function re() {
|
|
218
|
-
if (o.value)
|
|
219
|
-
try {
|
|
220
|
-
await b(async () => {
|
|
221
|
-
await ge(c.value, !U.value), await m.getReports();
|
|
222
|
-
});
|
|
223
|
-
} catch (a) {
|
|
224
|
-
console.log(a), r.open({
|
|
225
|
-
message: e("report.messages.failedToAction", { action: e("report.common.update") }),
|
|
226
|
-
type: "error"
|
|
227
|
-
});
|
|
228
|
-
}
|
|
229
|
-
}
|
|
230
|
-
const x = i(() => o.value ? o.value.tiles : []), se = i(() => ye(x.value)), le = i(() => {
|
|
231
|
-
var s;
|
|
232
|
-
if (!_.value) return [];
|
|
233
|
-
let t = [
|
|
234
|
-
// TODO: In future once decided to support report showing configuration for POS,
|
|
235
|
-
// uncomment this:
|
|
236
|
-
// {
|
|
237
|
-
// label: t("report.common.showInPOS"),
|
|
238
|
-
// value: "show_in_pos",
|
|
239
|
-
// isPrimary: false,
|
|
240
|
-
// appendIcon: isCurrentReportShownInPOS.value
|
|
241
|
-
// ? "radio_button_checked"
|
|
242
|
-
// : "radio_button_unchecked"
|
|
243
|
-
// },
|
|
244
|
-
!!((s = o.value) != null && s.editable) ? { label: e("report.common.edit"), value: "edit", isPrimary: !1 } : {
|
|
245
|
-
label: e("report.common.duplicate"),
|
|
246
|
-
value: "duplicate",
|
|
247
|
-
isPrimary: !1
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
label: e("report.common.download"),
|
|
251
|
-
value: "download",
|
|
252
|
-
isPrimary: !0,
|
|
253
|
-
prependIcon: "download"
|
|
254
|
-
},
|
|
255
|
-
{ label: e("report.schedule.sendEmail"), value: "email", isPrimary: !0 }
|
|
256
|
-
];
|
|
257
|
-
return u.value.xs && (t = [
|
|
258
|
-
...t,
|
|
259
|
-
{ label: e("report.schedule.sendEmail"), value: "email", isPrimary: !1 },
|
|
260
|
-
{ label: e("report.common.reportStatus"), value: "report_jobs", isPrimary: !1 },
|
|
261
|
-
{ label: e("report.common.emailSchedule"), value: "schedule_email", isPrimary: !1 },
|
|
262
|
-
{ label: e("report.common.copyID"), value: "content_copy", isPrimary: !1 }
|
|
263
|
-
], C.value && t.push({
|
|
264
|
-
label: e("report.common.copyToTemplate"),
|
|
265
|
-
value: "copy_to_template",
|
|
266
|
-
isPrimary: !1
|
|
267
|
-
}), !O.value && A.value && t.push({ label: e("report.common.accountingExport"), value: "export", isPrimary: !1 }), t = t.filter((v) => v.value !== "edit")), t;
|
|
268
|
-
}), T = i(() => {
|
|
269
|
-
var a;
|
|
270
|
-
return $e(e, g, (a = o == null ? void 0 : o.value) == null ? void 0 : a.name, "other");
|
|
271
|
-
});
|
|
272
|
-
return (a, t) => {
|
|
273
|
-
const s = j("FmTooltip"), v = j("FmPageHead");
|
|
274
|
-
return y(), f(we, null, {
|
|
275
|
-
default: S(() => {
|
|
276
|
-
var q;
|
|
277
|
-
return [
|
|
278
|
-
k(v, {
|
|
279
|
-
title: T.value,
|
|
280
|
-
"back-button": !0,
|
|
281
|
-
actions: le.value,
|
|
282
|
-
class: "remove-line-clamping",
|
|
283
|
-
"onClick:back": t[0] || (t[0] = (n) => l(d).push({ name: "reports", query: l(p).query })),
|
|
284
|
-
"onClick:action": t[1] || (t[1] = (n) => {
|
|
285
|
-
n === "show_in_pos" && re(), n === "duplicate" && te(), n === "download" && (M.value = !0), n === "email" && (W.value = !0), n === "edit" && oe(), n === "schedule_email" && (I.value = !0), n === "content_copy" && ae(), n === "copy_to_template" && J(), n === "export" && B(), n === "report_jobs" && N();
|
|
286
|
-
})
|
|
287
|
-
}, {
|
|
288
|
-
title: S(() => [
|
|
289
|
-
k(s, {
|
|
290
|
-
content: T.value,
|
|
291
|
-
placement: "bottom",
|
|
292
|
-
"z-index": 2e3,
|
|
293
|
-
class: "flex min-w-0 max-w-full justify-start"
|
|
294
|
-
}, {
|
|
295
|
-
default: S(() => [
|
|
296
|
-
R("p", Ee, ce(T.value), 1)
|
|
297
|
-
]),
|
|
298
|
-
_: 1
|
|
299
|
-
}, 8, ["content"])
|
|
300
|
-
]),
|
|
301
|
-
_: 1
|
|
302
|
-
}, 8, ["title", "actions"]),
|
|
303
|
-
R("div", {
|
|
304
|
-
class: me(`flex flex-col overflow-y-auto ${l(u).xs || l(u).sm ? "pb-20" : ""}`),
|
|
305
|
-
style: pe({ height: `calc(100% - ${l(u).lg || l(u).md ? 72 : 64}px)` })
|
|
306
|
-
}, [
|
|
307
|
-
R("div", Ne, [
|
|
308
|
-
k(de, {
|
|
309
|
-
"model-value": l(u).lg || l(u).md ? ee.value : []
|
|
310
|
-
}, null, 8, ["model-value"])
|
|
311
|
-
]),
|
|
312
|
-
l(o) && !_.value ? (y(), f(Ae, { key: 0 })) : l(o) && ((q = x.value) == null ? void 0 : q.length) > 0 ? (y(), f(ve, {
|
|
313
|
-
key: 1,
|
|
314
|
-
tiles: x.value,
|
|
315
|
-
"report-id": l(c),
|
|
316
|
-
"leaf-index-by-id": se.value,
|
|
317
|
-
"grid-class": l(u).sm || l(u).xs ? "px-3 gap-[16px]" : "px-24 gap-[24px]"
|
|
318
|
-
}, null, 8, ["tiles", "report-id", "leaf-index-by-id", "grid-class"])) : (y(), f(V, { key: 2 }))
|
|
319
|
-
], 6)
|
|
320
|
-
];
|
|
321
|
-
}),
|
|
322
|
-
_: 1
|
|
323
|
-
});
|
|
324
|
-
};
|
|
325
|
-
}
|
|
326
|
-
}), Xe = /* @__PURE__ */ Oe(Je, [["__scopeId", "data-v-721a94f1"]]);
|
|
327
|
-
export {
|
|
328
|
-
Xe as default
|
|
329
|
-
};
|