@feedmepos/mf-report 5.27.38 → 5.27.39
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/README.md +18 -3
- package/dist/{App-D0egtvQ-.js → App-S90BTDsA.js} +4 -4
- package/dist/{DateRangeSelect-CqMwZ27u.js → DateRangeSelect-D8yWjVRH.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-D39cFe6x.js → Default.vue_vue_type_script_setup_true_lang-CPKHc9Ij.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-625jnYWz.js → DynamicWidget.vue_vue_type_script_setup_true_lang-aP-DhJoD.js} +360 -365
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CWYMdEeD.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js} +4 -4
- package/dist/{InsightView-94nHX-WA.js → InsightView-9dc7VxLd.js} +4 -4
- package/dist/{Integration-CtKBgWah.js → Integration-DgT3WP7T.js} +3 -3
- package/dist/{Integrations-CgdpQtx8.js → Integrations-DTjuN8ir.js} +2 -2
- package/dist/{Layout-XtPVe59c.js → Layout-BhTbEl_I.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-D7MNgCvE.js → MenuTab.vue_vue_type_script_setup_true_lang-B3NaH_DG.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-D3zMj_qy.js → NavigationTab.vue_vue_type_script_setup_true_lang-Cg-74bAB.js} +3 -3
- package/dist/{OverviewView-e_yLkpE7.js → OverviewView-CLUe1Opn.js} +4 -4
- package/dist/{Report-BJRREsz2.js → Report-BtKLh93q.js} +3 -3
- package/dist/{ReportEditor-DuNJhfDd.js → ReportEditor-BSoWyCZA.js} +6 -6
- package/dist/{ReportView-6vGSlxht.js → ReportView-DMah7z_A.js} +6 -6
- package/dist/{Setting-9lMuIq7F.js → Setting-DbZY2zk5.js} +3 -3
- package/dist/Template-CoM9-uOV.js +521 -0
- package/dist/{TileEditor-D4xAquwa.js → TileEditor-DDtA5B1e.js} +5 -5
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-DoSQ6pxv.js → TileGrid.vue_vue_type_script_setup_true_lang-DdwPdPJ2.js} +2 -2
- package/dist/{TransitionFade-DokaTWBh.js → TransitionFade-cviixQkL.js} +4 -4
- package/dist/{app-CqDIZ6G6.js → app-CuP9NY1I.js} +1138 -1121
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-4gz12Ml-.js → formatChartData.worker-C3TaOBES.js} +1 -1
- package/dist/assets/{processTableData.worker-KnOy0AZ-.js → processTableData.worker-boBcpckx.js} +1 -1
- package/dist/{useRestaurantPermission-D26lLMqS.js → useRestaurantPermission-i9i6cu96.js} +1 -1
- package/package.json +17 -5
- package/dist/Template-pAXd86VQ.js +0 -482
|
@@ -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-CPKHc9Ij.js";
|
|
3
3
|
const f = /* @__PURE__ */ o({
|
|
4
4
|
__name: "Layout",
|
|
5
5
|
setup(m) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
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 j, toDisplayString as q } from "vue";
|
|
2
|
-
import { a as G, h as H, g as J, i as K, j as Q, k as M } from "./app-
|
|
2
|
+
import { a as G, h as H, g as J, i as K, j as Q, k as M } from "./app-CuP9NY1I.js";
|
|
3
3
|
import { storeToRefs as F } from "pinia";
|
|
4
|
-
import { a as X } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { D as Y } from "./DateRangeSelect-
|
|
6
|
-
import { u as Z, b as h, _ as ee, c as te } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { a as X } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cg-74bAB.js";
|
|
5
|
+
import { D as Y } from "./DateRangeSelect-D8yWjVRH.js";
|
|
6
|
+
import { u as Z, b as h, _ as ee, c as te } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js";
|
|
7
7
|
import { useRoute as ae } from "vue-router";
|
|
8
8
|
import { useBreakpoints as oe } from "@feedmepos/ui-library";
|
|
9
9
|
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({
|
|
@@ -4,12 +4,12 @@ var Dl = (e, r, t) => I5(e, typeof r != "symbol" ? r + "" : r, t);
|
|
|
4
4
|
import { defineComponent as tr, computed as Ge, useModel as Sn, ref as Fe, watch as Nr, resolveComponent as ge, createBlock as Ke, unref as V, openBlock as ae, withCtx as Ue, createElementVNode as K, createVNode as _, toDisplayString as Ne, withDirectives as Ii, createElementBlock as Pe, Fragment as gt, renderList as Xt, vShow as Qs, createTextVNode as _r, mergeModels as fi, createCommentVNode as at, normalizeClass as ci, onMounted as o0, withKeys as zh, withModifiers as ii, isRef as wa, vModelText as Xh, normalizeStyle as ac, renderSlot as Hh, mergeProps as F5, nextTick as V5, resolveDynamicComponent as Hu, createSlots as L5 } from "vue";
|
|
5
5
|
import { useRouter as qh, useRoute as Wh } from "vue-router";
|
|
6
6
|
import { storeToRefs as Lr, defineStore as f0 } from "pinia";
|
|
7
|
-
import { u as gs, N as kd, O as N5, A as ai, R as Wa, J as Ks, T as Gl, _ as c0, t as M5, y as R5, b as B5, U as z5, c as jh, B as X5, V as H5, X as wn, Y as q5 } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
7
|
+
import { u as gs, N as kd, O as N5, A as ai, R as Wa, J as Ks, T as Gl, _ as c0, t as M5, y as R5, b as B5, U as z5, c as jh, B as X5, V as H5, X as wn, Y as q5 } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js";
|
|
8
8
|
import { useBreakpoints as ko, components as Fi, useSnackbar as Xi, useDialog as W5, useDialogChild as j5, FmButtonVariant as xd } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as ha, _ as Uh } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
10
10
|
import { a as Td } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
11
|
-
import { C as hr, g as U5, b as ti, e as Zh, _ as Z5, D as Yh, p as Y5 } from "./DateRangeSelect-
|
|
12
|
-
import { u as Za, F as Ya, m as fl, a as Hi, d as Ot, q as xo, n as Gh, o as G5, p as Q5, e as K5, t as Il, r as Qh, c as J5, v as _5 } from "./app-
|
|
11
|
+
import { C as hr, g as U5, b as ti, e as Zh, _ as Z5, D as Yh, p as Y5 } from "./DateRangeSelect-D8yWjVRH.js";
|
|
12
|
+
import { u as Za, F as Ya, m as fl, a as Hi, d as Ot, q as xo, n as Gh, o as G5, p as Q5, e as K5, t as Il, r as Qh, c as J5, v as _5 } from "./app-CuP9NY1I.js";
|
|
13
13
|
import { detectLocale as $5, useCoreStore as e8 } from "@feedmepos/mf-common";
|
|
14
14
|
const t8 = { class: "flex flex-col" }, r8 = { class: "fm-typo-en-title-sm-600" }, a8 = { class: "grow" }, n8 = { class: "flex flex-col gap-8" }, i8 = { class: "flex flex-col w-full" }, s8 = { class: "flex flex-col gap-5 p-6" }, l8 = { class: "flex" }, Cd = {
|
|
15
15
|
// sales: [
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as w, computed as l, resolveComponent as y, createBlock as p, openBlock as s, withCtx as k, createVNode as i, createElementVNode as c, unref as e, normalizeStyle as b, normalizeClass as d, createElementBlock as h } from "vue";
|
|
2
|
-
import { _ as I } from "./TileGrid.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { u as $, l as B } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as C } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as I } from "./TileGrid.vue_vue_type_script_setup_true_lang-DdwPdPJ2.js";
|
|
3
|
+
import { u as $, l as B } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js";
|
|
4
|
+
import { _ as C } from "./Default.vue_vue_type_script_setup_true_lang-CPKHc9Ij.js";
|
|
5
5
|
import { storeToRefs as z } from "pinia";
|
|
6
6
|
import { _ as P } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
7
7
|
import { useBreakpoints as R } from "@feedmepos/ui-library";
|
|
8
|
-
import { _ as S } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { _ as S } from "./MenuTab.vue_vue_type_script_setup_true_lang-B3NaH_DG.js";
|
|
9
9
|
import { useI18n as V } from "@feedmepos/mf-common";
|
|
10
10
|
import { r as D } from "./i18n-CI_sQ5d_.js";
|
|
11
11
|
const E = { class: "sticky top-0 z-10 bg-white" }, M = /* @__PURE__ */ w({
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as $e, ref as j, watch as pe, computed as b, h as p, withModifiers as De, resolveComponent as S, createBlock as G, openBlock as A, withCtx as m, createVNode as c, createElementVNode as w, unref as e, normalizeStyle as Ie, normalizeClass as k, withDirectives as H, createElementBlock as Fe, Fragment as Oe, renderList as Le, toDisplayString as J, createTextVNode as Pe, vShow as Q } from "vue";
|
|
2
2
|
import { storeToRefs as de } from "pinia";
|
|
3
|
-
import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js";
|
|
4
|
+
import { _ as Ve } from "./Default.vue_vue_type_script_setup_true_lang-CPKHc9Ij.js";
|
|
5
5
|
import { u as Ae } from "./message-dialog-UoMWOnil.js";
|
|
6
6
|
import { a as Je } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
7
7
|
import { useSnackbar as ze, useBreakpoints as Be, components as Te, FmButtonColorThemeVariant as Ue } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as Ee } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
9
|
-
import { c as Ke, a as fe, h as Me } from "./app-
|
|
9
|
+
import { c as Ke, a as fe, h as Me } from "./app-CuP9NY1I.js";
|
|
10
10
|
import { useRouter as Ye, useRoute as qe, onBeforeRouteLeave as je } from "vue-router";
|
|
11
11
|
import { useI18n as Ge } from "@feedmepos/mf-common";
|
|
12
12
|
import { r as W } from "./i18n-CI_sQ5d_.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as we, mergeModels as ke, useModel as Te, ref as L, computed as b, resolveComponent as C, createBlock as T, openBlock as c, withCtx as _, createElementVNode as v, createVNode as i, unref as o, normalizeClass as Pe, createTextVNode as Ge, toDisplayString as B, createElementBlock as R, Fragment as he, renderSlot as vt, createCommentVNode as M, watch as ge, renderList as qe, onMounted as ft, onUnmounted as St, resolveDynamicComponent as $t, isRef as gt, normalizeStyle as lt } from "vue";
|
|
2
|
-
import { W as Dt, g as Ot, _ as It, a as Ut, e as Oe, S as Le, d as bt, b as yt, T as Bt, c as Nt } from "./TransitionFade-
|
|
3
|
-
import { C as Ve, D as te, d as Re, g as Mt, F as He, e as Ie, u as at, M as ht, r as Rt, f as st, n as zt, h as qt, i as Pt, j as Et, k as Lt, a as Gt, b as ut, m as Xe, o as Wt, Q as je, p as At, l as Ht, c as dt, q as jt } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { W as Dt, g as Ot, _ as It, a as Ut, e as Oe, S as Le, d as bt, b as yt, T as Bt, c as Nt } from "./TransitionFade-cviixQkL.js";
|
|
3
|
+
import { C as Ve, D as te, d as Re, g as Mt, F as He, e as Ie, u as at, M as ht, r as Rt, f as st, n as zt, h as qt, i as Pt, j as Et, k as Lt, a as Gt, b as ut, m as Xe, o as Wt, Q as je, p as At, l as Ht, c as dt, q as jt } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js";
|
|
4
4
|
import { storeToRefs as ze } from "pinia";
|
|
5
5
|
import { useRouter as rt, useRoute as nt } from "vue-router";
|
|
6
6
|
import { useBreakpoints as Je, useSnackbar as wt, FmButtonColorThemeVariant as Ce } from "@feedmepos/ui-library";
|
|
7
7
|
import { u as it } from "./message-dialog-UoMWOnil.js";
|
|
8
8
|
import { u as Ee, a as Jt } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
9
9
|
import { r as We } from "./i18n-CI_sQ5d_.js";
|
|
10
|
-
import { _ as Ze } from "./TileGrid.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { _ as Ze } from "./TileGrid.vue_vue_type_script_setup_true_lang-DdwPdPJ2.js";
|
|
11
11
|
import { a as et, _ as tt } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
12
|
-
import { d as Kt, e as Qt, i as Yt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-
|
|
12
|
+
import { d as Kt, e as Qt, i as Yt } from "./DynamicWidget.vue_vue_type_script_setup_true_lang-aP-DhJoD.js";
|
|
13
13
|
import { useCoreStore as Xt } from "@feedmepos/mf-common";
|
|
14
|
-
import { u as Zt, a as el } from "./app-
|
|
15
|
-
import { d as tl } from "./DateRangeSelect-
|
|
14
|
+
import { u as Zt, a as el } from "./app-CuP9NY1I.js";
|
|
15
|
+
import { d as tl } from "./DateRangeSelect-D8yWjVRH.js";
|
|
16
16
|
const ll = /* @__PURE__ */ we({
|
|
17
17
|
__name: "WidgetDialog",
|
|
18
18
|
props: /* @__PURE__ */ ke({
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as V, computed as i, createBlock as S, openBlock as f, withCtx as h, renderSlot as ie, ref as ue, watch as ce, resolveComponent as j, createVNode as _, createElementVNode as R, unref as l, toDisplayString as pe, normalizeStyle as me, normalizeClass as F, createElementBlock as de } from "vue";
|
|
2
|
-
import { _ as ve } from "./MenuTab.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { _ as fe } from "./TileGrid.vue_vue_type_script_setup_true_lang-
|
|
4
|
-
import { u as ye, l as ge, s as be } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
2
|
+
import { _ as ve } from "./MenuTab.vue_vue_type_script_setup_true_lang-B3NaH_DG.js";
|
|
3
|
+
import { _ as fe } from "./TileGrid.vue_vue_type_script_setup_true_lang-DdwPdPJ2.js";
|
|
4
|
+
import { u as ye, l as ge, s as be } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js";
|
|
5
5
|
import { useRouter as _e, useRoute as we } from "vue-router";
|
|
6
|
-
import { _ as Se } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
6
|
+
import { _ as Se } from "./Default.vue_vue_type_script_setup_true_lang-CPKHc9Ij.js";
|
|
7
7
|
import { storeToRefs as w } from "pinia";
|
|
8
|
-
import { b as he, c as Ce, u as xe, g as Te } from "./NavigationTab.vue_vue_type_script_setup_true_lang-
|
|
8
|
+
import { b as he, c as Ce, u as xe, g as Te } from "./NavigationTab.vue_vue_type_script_setup_true_lang-Cg-74bAB.js";
|
|
9
9
|
import { _ as z } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
10
10
|
import { useSnackbar as ke, useBreakpoints as Re } from "@feedmepos/ui-library";
|
|
11
11
|
import { u as L, a as Pe, _ as De } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
12
12
|
import { u as Ie } from "./message-dialog-UoMWOnil.js";
|
|
13
|
-
import { e as Oe, h as $e } from "./app-
|
|
13
|
+
import { e as Oe, h as $e } from "./app-CuP9NY1I.js";
|
|
14
14
|
import { r as Ae } from "./i18n-CI_sQ5d_.js";
|
|
15
15
|
const Ee = /* @__PURE__ */ V({
|
|
16
16
|
__name: "NoPermission",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as B, ref as H, useModel as M, resolveComponent as h, createElementBlock as k, openBlock as x, createBlock as P, createElementVNode as t, resolveDynamicComponent as ne, unref as e, withCtx as y, createVNode as a, normalizeClass as O, toDisplayString as s, Fragment as A, renderList as G, createTextVNode as ie, withDirectives as K, vShow as Q, watch as me, normalizeStyle as ue } from "vue";
|
|
2
|
-
import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { d as J, C as q, D as pe, a as ce } from "./app-
|
|
2
|
+
import { _ as de } from "./Default.vue_vue_type_script_setup_true_lang-CPKHc9Ij.js";
|
|
3
|
+
import { d as J, C as q, D as pe, a as ce } from "./app-CuP9NY1I.js";
|
|
4
4
|
import { components as z, useSnackbar as W, useBreakpoints as X, FmButtonColorThemeVariant as I } from "@feedmepos/ui-library";
|
|
5
|
-
import { K as N, L as fe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { K as N, L as fe } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js";
|
|
6
6
|
import { u as ve } from "./message-dialog-UoMWOnil.js";
|
|
7
7
|
import { u as U } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
8
8
|
import { detectLocale as F } from "@feedmepos/mf-common";
|
|
@@ -0,0 +1,521 @@
|
|
|
1
|
+
import { defineComponent as ie, computed as u, resolveComponent as v, createElementBlock as A, openBlock as _, renderSlot as Ve, createVNode as n, withCtx as s, createCommentVNode as q, createElementVNode as i, toDisplayString as d, ref as b, h as p, onMounted as Le, createBlock as R, unref as l, normalizeStyle as Se, normalizeClass as C, withDirectives as ae, Fragment as $e, renderList as Ie, withModifiers as re, vShow as ne } from "vue";
|
|
2
|
+
import { a as Re } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
3
|
+
import { u as me, a as Pe } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
4
|
+
import { _ as ze } from "./Default.vue_vue_type_script_setup_true_lang-CPKHc9Ij.js";
|
|
5
|
+
import { u as De } from "./message-dialog-UoMWOnil.js";
|
|
6
|
+
import { u as Ne } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js";
|
|
7
|
+
import { r as se } from "./i18n-CI_sQ5d_.js";
|
|
8
|
+
import { useBreakpoints as Be, useSnackbar as Me, components as Ee, FmButtonColorThemeVariant as Ke } from "@feedmepos/ui-library";
|
|
9
|
+
import { useRouter as Ue, useRoute as He } from "vue-router";
|
|
10
|
+
import { storeToRefs as Oe } from "pinia";
|
|
11
|
+
import { h as je } from "./app-CuP9NY1I.js";
|
|
12
|
+
const Ae = { class: "flex flex-col h-full" }, qe = ["src"], Ge = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Je = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary text-center" }, Qe = /* @__PURE__ */ ie({
|
|
13
|
+
__name: "NoTemplate",
|
|
14
|
+
props: {
|
|
15
|
+
title: { default: "report.view.template.noTemplates" },
|
|
16
|
+
subTitle: { default: "report.view.template.noTemplatesHint" },
|
|
17
|
+
svgPath: { default: "" }
|
|
18
|
+
},
|
|
19
|
+
setup(G) {
|
|
20
|
+
const { t: w, te: x } = me(), g = G;
|
|
21
|
+
function m(f) {
|
|
22
|
+
return x(f) ? w(f) : f;
|
|
23
|
+
}
|
|
24
|
+
const t = u(() => m(g.title)), k = u(() => m(g.subTitle));
|
|
25
|
+
return (f, J) => {
|
|
26
|
+
const c = v("FmCard");
|
|
27
|
+
return _(), A("div", Ae, [
|
|
28
|
+
Ve(f.$slots, "menu"),
|
|
29
|
+
n(c, {
|
|
30
|
+
class: "p-24 h-full flex flex-col gap-2 items-center justify-center",
|
|
31
|
+
variant: "flat"
|
|
32
|
+
}, {
|
|
33
|
+
default: s(() => [
|
|
34
|
+
f.svgPath ? (_(), A("img", {
|
|
35
|
+
key: 0,
|
|
36
|
+
src: f.svgPath,
|
|
37
|
+
alt: "No data illustration",
|
|
38
|
+
class: "mb-4 w-80 h-80"
|
|
39
|
+
}, null, 8, qe)) : q("", !0),
|
|
40
|
+
i("p", Ge, d(t.value), 1),
|
|
41
|
+
i("p", Je, d(k.value), 1)
|
|
42
|
+
]),
|
|
43
|
+
_: 1
|
|
44
|
+
})
|
|
45
|
+
]);
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
}), We = { class: "flex items-center gap-2" }, Xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ye = { class: "w-[343px]" }, Ze = { class: "flex items-center gap-2" }, et = { class: "fm-typo-en-body-sm-600" }, tt = { class: "fm-typo-en-body-md-600" }, ot = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, lt = { class: "fm-typo-en-title-sm-600" }, at = { class: "flex flex-col gap-3" }, rt = { class: "flex flex-col gap-1" }, nt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, bt = /* @__PURE__ */ ie({
|
|
49
|
+
__name: "Template",
|
|
50
|
+
setup(G) {
|
|
51
|
+
const w = Ne(), { isAdmin: x, canManageTemplate: g } = je(), { breakpoints: m } = Be(), { t, te: k } = me(), f = Ue(), J = He(), c = Me(), { promptLoader: Q } = Pe(), { promptMessage: W } = De(), { FmButton: N, FmMenu: B, FmMenuItem: F, FmIcon: M, FmChip: V, FmSearch: ce, FmTooltip: pe } = Ee, { editingReport: ue, reportTemplates: de, categories: fe } = Oe(w), E = u(() => fe.value ?? []), X = u(() => de.value ?? []), K = u(() => [
|
|
52
|
+
{
|
|
53
|
+
label: t("report.common.all"),
|
|
54
|
+
value: void 0
|
|
55
|
+
},
|
|
56
|
+
...E.value.map((o) => ({
|
|
57
|
+
label: U(o.name),
|
|
58
|
+
value: o.id
|
|
59
|
+
}))
|
|
60
|
+
]), P = b(void 0), ve = u(
|
|
61
|
+
() => {
|
|
62
|
+
var o, e;
|
|
63
|
+
return ((o = K.value.find((a) => a.value === P.value)) == null ? void 0 : o.label) ?? ((e = K.value[0]) == null ? void 0 : e.label) ?? "";
|
|
64
|
+
}
|
|
65
|
+
), z = b(!1), L = b(null), h = b(""), S = b(""), $ = b(""), I = b(!1), ge = u(() => [
|
|
66
|
+
{
|
|
67
|
+
label: t("report.common.uncategorized"),
|
|
68
|
+
value: ""
|
|
69
|
+
},
|
|
70
|
+
...E.value.map((o) => ({
|
|
71
|
+
label: U(o.name),
|
|
72
|
+
value: o.id
|
|
73
|
+
}))
|
|
74
|
+
]), D = b(""), T = u(() => {
|
|
75
|
+
const o = D.value.toLowerCase(), e = t("report.common.uncategorized");
|
|
76
|
+
return X.value.map((a) => {
|
|
77
|
+
const y = E.value.find((O) => O.id === a.category);
|
|
78
|
+
return {
|
|
79
|
+
id: a.id,
|
|
80
|
+
name: se(t, k, Y(a), "other"),
|
|
81
|
+
description: se(t, k, a.description || "", "other"),
|
|
82
|
+
categoryId: a.category || "",
|
|
83
|
+
categoryLabel: y ? U(y.name) : e,
|
|
84
|
+
isOwner: a.isOwner ?? !1,
|
|
85
|
+
isInternal: a.isInternal ?? !1
|
|
86
|
+
};
|
|
87
|
+
}).filter((a) => P.value && a.categoryId !== P.value ? !1 : !D.value.trim() || a.name.toLowerCase().includes(o) || a.description.toLowerCase().includes(o));
|
|
88
|
+
}), ye = u(
|
|
89
|
+
() => T.value.map(
|
|
90
|
+
(o) => `${o.id}${o.name}${o.categoryLabel}${o.isInternal}`
|
|
91
|
+
).join("")
|
|
92
|
+
), be = u(() => [
|
|
93
|
+
{
|
|
94
|
+
accessorKey: "name",
|
|
95
|
+
header: t("report.common.name"),
|
|
96
|
+
enableSorting: !1,
|
|
97
|
+
cell: (o) => {
|
|
98
|
+
const e = o.row.original;
|
|
99
|
+
return p("div", { class: "flex items-center gap-2" }, [
|
|
100
|
+
p("span", o.getValue()),
|
|
101
|
+
...e.isInternal ? [_e()] : []
|
|
102
|
+
]);
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
accessorKey: "categoryLabel",
|
|
107
|
+
header: t("report.common.category"),
|
|
108
|
+
enableSorting: !1,
|
|
109
|
+
meta: {
|
|
110
|
+
width: "100px"
|
|
111
|
+
},
|
|
112
|
+
cell: (o) => p(
|
|
113
|
+
V,
|
|
114
|
+
{
|
|
115
|
+
class: `${o.getValue() !== t("report.common.uncategorized") ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"} fm-typo-en-body-sm-600`,
|
|
116
|
+
compact: !0
|
|
117
|
+
},
|
|
118
|
+
{ default: () => o.getValue() }
|
|
119
|
+
)
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
accessorKey: "description",
|
|
123
|
+
header: t("report.common.description"),
|
|
124
|
+
enableSorting: !1,
|
|
125
|
+
cell: (o) => p("span", o.getValue())
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
accessorKey: "",
|
|
129
|
+
id: "Action",
|
|
130
|
+
header: "",
|
|
131
|
+
meta: {
|
|
132
|
+
width: "0px"
|
|
133
|
+
},
|
|
134
|
+
cell: (o) => {
|
|
135
|
+
const e = o.row.original, a = !g(e);
|
|
136
|
+
return p(
|
|
137
|
+
"div",
|
|
138
|
+
{
|
|
139
|
+
class: `flex ${m.value.lg || m.value.md ? "justify-end" : ""} items-center`
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
default: () => x.value ? [
|
|
143
|
+
p(
|
|
144
|
+
B,
|
|
145
|
+
{
|
|
146
|
+
stopClickPropagation: !0,
|
|
147
|
+
shift: !0,
|
|
148
|
+
disabled: a
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
default: () => [
|
|
152
|
+
p(F, {
|
|
153
|
+
label: t("report.common.edit"),
|
|
154
|
+
disabled: a,
|
|
155
|
+
onClick: () => ee(e.id)
|
|
156
|
+
}),
|
|
157
|
+
p(F, {
|
|
158
|
+
label: t("report.common.delete"),
|
|
159
|
+
disabled: a,
|
|
160
|
+
onClick: () => te(e.id)
|
|
161
|
+
})
|
|
162
|
+
],
|
|
163
|
+
"menu-button": () => p(N, {
|
|
164
|
+
variant: "tertiary",
|
|
165
|
+
size: "md",
|
|
166
|
+
icon: "more_vert",
|
|
167
|
+
iconColor: Ke.NeutralGray400,
|
|
168
|
+
disabled: a
|
|
169
|
+
})
|
|
170
|
+
}
|
|
171
|
+
)
|
|
172
|
+
] : []
|
|
173
|
+
}
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
]);
|
|
178
|
+
function _e() {
|
|
179
|
+
return p(
|
|
180
|
+
V,
|
|
181
|
+
{
|
|
182
|
+
class: "bg-fm-color-system-warning-100 text-fm-color-typo-warning fm-typo-en-body-sm-600",
|
|
183
|
+
compact: !0
|
|
184
|
+
},
|
|
185
|
+
{ default: () => t("report.view.template.internal") }
|
|
186
|
+
);
|
|
187
|
+
}
|
|
188
|
+
function U(o) {
|
|
189
|
+
const e = `report.category.${o}`;
|
|
190
|
+
return k(e) ? t(e) : o;
|
|
191
|
+
}
|
|
192
|
+
function we(o) {
|
|
193
|
+
return o.id;
|
|
194
|
+
}
|
|
195
|
+
function Y(o) {
|
|
196
|
+
return o.name;
|
|
197
|
+
}
|
|
198
|
+
function xe(o) {
|
|
199
|
+
P.value = o;
|
|
200
|
+
}
|
|
201
|
+
function H(o) {
|
|
202
|
+
return X.value.find((e) => we(e) === o);
|
|
203
|
+
}
|
|
204
|
+
function Z(o) {
|
|
205
|
+
const e = H(o);
|
|
206
|
+
if (!e) return;
|
|
207
|
+
const a = {
|
|
208
|
+
...e.report,
|
|
209
|
+
id: "",
|
|
210
|
+
isDefault: !1,
|
|
211
|
+
editable: !0
|
|
212
|
+
}, y = Y(e);
|
|
213
|
+
a.name = `${y} duplicate`, ue.value = a, f.push({
|
|
214
|
+
name: "reportEditor",
|
|
215
|
+
query: J.query
|
|
216
|
+
});
|
|
217
|
+
}
|
|
218
|
+
function ee(o) {
|
|
219
|
+
if (!x.value) {
|
|
220
|
+
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
const e = H(o);
|
|
224
|
+
if (!e) return;
|
|
225
|
+
if (!g(e)) {
|
|
226
|
+
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
const a = JSON.parse(JSON.stringify(e));
|
|
230
|
+
L.value = a, h.value = a.name || "", S.value = a.description || "", $.value = a.category || "", I.value = a.isInternal ?? !1, z.value = !0;
|
|
231
|
+
}
|
|
232
|
+
async function te(o) {
|
|
233
|
+
if (!x.value) {
|
|
234
|
+
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
const e = H(o);
|
|
238
|
+
if (!e) return;
|
|
239
|
+
if (!g(e)) {
|
|
240
|
+
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
await W({
|
|
244
|
+
title: t("report.messages.deleteTemplate"),
|
|
245
|
+
message: t("report.messages.confirmDelete", { name: e.name })
|
|
246
|
+
}) && await Q(async () => {
|
|
247
|
+
await w.removeReportTemplates(e), c.open({
|
|
248
|
+
message: t("report.messages.deleteSuccess", { name: e.name }),
|
|
249
|
+
type: "success"
|
|
250
|
+
});
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
function oe() {
|
|
254
|
+
z.value = !1, L.value = null, h.value = "", S.value = "", $.value = "", I.value = !1;
|
|
255
|
+
}
|
|
256
|
+
async function he() {
|
|
257
|
+
if (!x.value) {
|
|
258
|
+
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
if (!L.value) return;
|
|
262
|
+
if (!g(L.value)) {
|
|
263
|
+
c.open({ message: t("report.messages.noPermission"), type: "error" });
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
const o = t("report.common.update"), e = {
|
|
267
|
+
...L.value,
|
|
268
|
+
name: h.value,
|
|
269
|
+
description: S.value,
|
|
270
|
+
category: $.value,
|
|
271
|
+
isInternal: I.value
|
|
272
|
+
};
|
|
273
|
+
if (await W({
|
|
274
|
+
title: o,
|
|
275
|
+
message: t("report.messages.confirmAction", {
|
|
276
|
+
action: o,
|
|
277
|
+
name: e.name
|
|
278
|
+
})
|
|
279
|
+
}))
|
|
280
|
+
try {
|
|
281
|
+
await Q(async () => {
|
|
282
|
+
await w.updateReportTemplate(e);
|
|
283
|
+
}), c.open({
|
|
284
|
+
message: t("report.messages.saveSuccess"),
|
|
285
|
+
type: "success"
|
|
286
|
+
}), oe();
|
|
287
|
+
} catch (y) {
|
|
288
|
+
console.error(y), c.open({
|
|
289
|
+
message: t("report.messages.failedToAction", { action: t("report.common.update") }),
|
|
290
|
+
type: "error"
|
|
291
|
+
});
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
return Le(async () => {
|
|
295
|
+
await w.getReportTemplates();
|
|
296
|
+
}), (o, e) => {
|
|
297
|
+
const a = v("FmPageHead"), y = v("FmForm"), O = v("FmListItem"), Te = v("FmList"), Ce = v("FmTable"), le = v("FmTextField"), ke = v("FmSwitch"), Fe = v("FmDialog");
|
|
298
|
+
return _(), R(ze, null, {
|
|
299
|
+
default: s(() => [
|
|
300
|
+
n(a, {
|
|
301
|
+
title: l(t)("report.view.template.title"),
|
|
302
|
+
class: "h-[68px] fm-typo-en-title-md-600"
|
|
303
|
+
}, {
|
|
304
|
+
title: s(() => [
|
|
305
|
+
i("div", We, [
|
|
306
|
+
i("p", null, d(l(t)("report.view.template.title")), 1),
|
|
307
|
+
n(l(pe), {
|
|
308
|
+
content: l(t)("report.view.template.sharedTooltip"),
|
|
309
|
+
placement: "bottom",
|
|
310
|
+
"z-index": 2e3
|
|
311
|
+
}, {
|
|
312
|
+
default: s(() => [
|
|
313
|
+
n(l(M), {
|
|
314
|
+
name: "info",
|
|
315
|
+
size: "md",
|
|
316
|
+
color: "primary"
|
|
317
|
+
})
|
|
318
|
+
]),
|
|
319
|
+
_: 1
|
|
320
|
+
}, 8, ["content"])
|
|
321
|
+
])
|
|
322
|
+
]),
|
|
323
|
+
_: 1
|
|
324
|
+
}, 8, ["title"]),
|
|
325
|
+
i("div", {
|
|
326
|
+
class: C(`overflow-y-hidden flex flex-col gap-8 ${l(m).sm || l(m).xs ? "mb-20" : ""}`),
|
|
327
|
+
style: Se({ height: `calc(100% - ${l(m).lg || l(m).md ? 72 : 64}px)` })
|
|
328
|
+
}, [
|
|
329
|
+
n(y, {
|
|
330
|
+
class: C(`flex items-center gap-2 ${l(m).sm || l(m).xs ? "px-3" : "px-24"}`)
|
|
331
|
+
}, {
|
|
332
|
+
default: s(() => [
|
|
333
|
+
n(l(B), null, {
|
|
334
|
+
"menu-button": s(() => [
|
|
335
|
+
n(l(V), { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-400" }, {
|
|
336
|
+
default: s(() => [
|
|
337
|
+
i("p", null, d(ve.value), 1),
|
|
338
|
+
n(l(M), { name: "expand_more" })
|
|
339
|
+
]),
|
|
340
|
+
_: 1
|
|
341
|
+
})
|
|
342
|
+
]),
|
|
343
|
+
default: s(() => [
|
|
344
|
+
(_(!0), A($e, null, Ie(K.value, (r, j) => (_(), R(l(F), {
|
|
345
|
+
key: j,
|
|
346
|
+
label: r.label,
|
|
347
|
+
onClick: () => xe(r.value)
|
|
348
|
+
}, null, 8, ["label", "onClick"]))), 128))
|
|
349
|
+
]),
|
|
350
|
+
_: 1
|
|
351
|
+
}),
|
|
352
|
+
i("div", {
|
|
353
|
+
class: C(`flex ${l(m).sm || l(m).xs ? "justify-center items-center" : ""}`)
|
|
354
|
+
}, [
|
|
355
|
+
i("p", Xe, d(l(t)("report.common.results", { count: T.value.length })), 1)
|
|
356
|
+
], 2),
|
|
357
|
+
e[7] || (e[7] = i("div", { class: "grow" }, null, -1)),
|
|
358
|
+
i("div", Ye, [
|
|
359
|
+
n(l(ce), {
|
|
360
|
+
modelValue: D.value,
|
|
361
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => D.value = r),
|
|
362
|
+
class: C(`${l(m).lg || l(m).md ? "grow" : ""}`)
|
|
363
|
+
}, null, 8, ["modelValue", "class"])
|
|
364
|
+
])
|
|
365
|
+
]),
|
|
366
|
+
_: 1
|
|
367
|
+
}, 8, ["class"]),
|
|
368
|
+
ae((_(), R(Ce, {
|
|
369
|
+
key: ye.value,
|
|
370
|
+
ref: "table",
|
|
371
|
+
class: C([l(m).sm || l(m).xs ? "px-0" : "px-24", "report-table"]),
|
|
372
|
+
style: { height: "calc(100% - 40px)" },
|
|
373
|
+
"column-defs": be.value,
|
|
374
|
+
"row-data": T.value,
|
|
375
|
+
"page-size": T.value.length,
|
|
376
|
+
"hide-footer": !0,
|
|
377
|
+
"row-class-name": "row",
|
|
378
|
+
onRowClick: e[1] || (e[1] = (r) => Z(r.original.id))
|
|
379
|
+
}, {
|
|
380
|
+
"list-row": s(({ original: r }) => [
|
|
381
|
+
n(Te, {
|
|
382
|
+
onClick: () => Z(r.id)
|
|
383
|
+
}, {
|
|
384
|
+
default: s(() => [
|
|
385
|
+
n(O, {
|
|
386
|
+
tag: "label",
|
|
387
|
+
label: r.name,
|
|
388
|
+
clickable: ""
|
|
389
|
+
}, {
|
|
390
|
+
append: s(() => [
|
|
391
|
+
i("div", Ze, [
|
|
392
|
+
r.isInternal ? (_(), R(l(V), {
|
|
393
|
+
key: 0,
|
|
394
|
+
class: "bg-fm-color-system-warning-100 text-fm-color-typo-warning",
|
|
395
|
+
compact: !0
|
|
396
|
+
}, {
|
|
397
|
+
default: s(() => [
|
|
398
|
+
i("p", et, d(l(t)("report.view.template.internal")), 1)
|
|
399
|
+
]),
|
|
400
|
+
_: 1
|
|
401
|
+
})) : q("", !0),
|
|
402
|
+
n(l(V), {
|
|
403
|
+
class: C(
|
|
404
|
+
r.categoryLabel !== l(t)("report.common.uncategorized") ? "bg-fm-color-system-info-100 text-fm-color-typo-info" : "text-fm-color-typo-secondary"
|
|
405
|
+
),
|
|
406
|
+
compact: !0
|
|
407
|
+
}, {
|
|
408
|
+
default: s(() => [
|
|
409
|
+
i("p", tt, d(r.categoryLabel), 1)
|
|
410
|
+
]),
|
|
411
|
+
_: 2
|
|
412
|
+
}, 1032, ["class"]),
|
|
413
|
+
l(g)(r) ? (_(), R(l(B), {
|
|
414
|
+
key: 1,
|
|
415
|
+
placement: "left",
|
|
416
|
+
"stop-click-propagation": !0
|
|
417
|
+
}, {
|
|
418
|
+
"menu-button": s(() => [
|
|
419
|
+
n(l(M), { name: "more_vert" })
|
|
420
|
+
]),
|
|
421
|
+
default: s(() => [
|
|
422
|
+
n(l(F), {
|
|
423
|
+
label: l(t)("report.common.edit"),
|
|
424
|
+
onClick: re((j) => ee(r.id), ["stop"])
|
|
425
|
+
}, null, 8, ["label", "onClick"]),
|
|
426
|
+
n(l(F), {
|
|
427
|
+
label: l(t)("report.common.delete"),
|
|
428
|
+
class: "text-fm-color-typo-error",
|
|
429
|
+
onClick: re((j) => te(r.id), ["stop"])
|
|
430
|
+
}, null, 8, ["label", "onClick"])
|
|
431
|
+
]),
|
|
432
|
+
_: 2
|
|
433
|
+
}, 1024)) : q("", !0)
|
|
434
|
+
])
|
|
435
|
+
]),
|
|
436
|
+
"sub-label": s(() => [
|
|
437
|
+
i("p", ot, d(r.description), 1)
|
|
438
|
+
]),
|
|
439
|
+
_: 2
|
|
440
|
+
}, 1032, ["label"])
|
|
441
|
+
]),
|
|
442
|
+
_: 2
|
|
443
|
+
}, 1032, ["onClick"])
|
|
444
|
+
]),
|
|
445
|
+
_: 1
|
|
446
|
+
}, 8, ["class", "column-defs", "row-data", "page-size"])), [
|
|
447
|
+
[ne, T.value.length > 0]
|
|
448
|
+
]),
|
|
449
|
+
ae(n(Qe, {
|
|
450
|
+
title: "report.view.template.noTemplates",
|
|
451
|
+
"sub-title": "report.view.template.noTemplatesHint"
|
|
452
|
+
}, null, 512), [
|
|
453
|
+
[ne, T.value.length === 0]
|
|
454
|
+
])
|
|
455
|
+
], 6),
|
|
456
|
+
n(Fe, {
|
|
457
|
+
modelValue: z.value,
|
|
458
|
+
"onUpdate:modelValue": e[6] || (e[6] = (r) => z.value = r),
|
|
459
|
+
overlay: !0,
|
|
460
|
+
"dismiss-away": !0
|
|
461
|
+
}, {
|
|
462
|
+
"dialog-header": s(() => [
|
|
463
|
+
i("p", lt, d(l(t)("report.common.edit")), 1)
|
|
464
|
+
]),
|
|
465
|
+
default: s(() => [
|
|
466
|
+
i("div", at, [
|
|
467
|
+
n(le, {
|
|
468
|
+
modelValue: h.value,
|
|
469
|
+
"onUpdate:modelValue": e[2] || (e[2] = (r) => h.value = r),
|
|
470
|
+
label: l(t)("report.common.name"),
|
|
471
|
+
placeholder: l(t)("report.view.report.enter")
|
|
472
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
473
|
+
n(le, {
|
|
474
|
+
modelValue: S.value,
|
|
475
|
+
"onUpdate:modelValue": e[3] || (e[3] = (r) => S.value = r),
|
|
476
|
+
label: l(t)("report.common.description"),
|
|
477
|
+
placeholder: l(t)("report.common.description")
|
|
478
|
+
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
479
|
+
n(Re, {
|
|
480
|
+
modelValue: $.value,
|
|
481
|
+
"onUpdate:modelValue": e[4] || (e[4] = (r) => $.value = r),
|
|
482
|
+
label: l(t)("report.common.category"),
|
|
483
|
+
items: ge.value,
|
|
484
|
+
"disable-search": !0
|
|
485
|
+
}, null, 8, ["modelValue", "label", "items"]),
|
|
486
|
+
i("div", rt, [
|
|
487
|
+
n(ke, {
|
|
488
|
+
modelValue: I.value,
|
|
489
|
+
"onUpdate:modelValue": e[5] || (e[5] = (r) => I.value = r),
|
|
490
|
+
label: l(t)("report.view.template.internal"),
|
|
491
|
+
"label-placement": "right"
|
|
492
|
+
}, null, 8, ["modelValue", "label"]),
|
|
493
|
+
i("p", nt, d(l(t)("report.view.template.internalHint")), 1)
|
|
494
|
+
])
|
|
495
|
+
])
|
|
496
|
+
]),
|
|
497
|
+
"dialog-footer": s(() => [
|
|
498
|
+
e[8] || (e[8] = i("div", { class: "grow" }, null, -1)),
|
|
499
|
+
n(l(N), {
|
|
500
|
+
label: l(t)("report.common.cancel"),
|
|
501
|
+
variant: "tertiary",
|
|
502
|
+
onClick: oe
|
|
503
|
+
}, null, 8, ["label"]),
|
|
504
|
+
n(l(N), {
|
|
505
|
+
label: l(t)("report.common.save"),
|
|
506
|
+
variant: "primary",
|
|
507
|
+
disabled: h.value.trim() === "",
|
|
508
|
+
onClick: he
|
|
509
|
+
}, null, 8, ["label", "disabled"])
|
|
510
|
+
]),
|
|
511
|
+
_: 1
|
|
512
|
+
}, 8, ["modelValue"])
|
|
513
|
+
]),
|
|
514
|
+
_: 1
|
|
515
|
+
});
|
|
516
|
+
};
|
|
517
|
+
}
|
|
518
|
+
});
|
|
519
|
+
export {
|
|
520
|
+
bt as default
|
|
521
|
+
};
|