@feedmepos/mf-report 5.27.39 → 5.27.40
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-S90BTDsA.js → App-gwDfjs0u.js} +51 -51
- package/dist/{DateRangeSelect-D8yWjVRH.js → DateRangeSelect-UoFskU18.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CPKHc9Ij.js → Default.vue_vue_type_script_setup_true_lang-DD2mYIoH.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-aP-DhJoD.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BtYC32jI.js} +1383 -1377
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-HWUtlVoJ.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DT2SiGub.js} +2 -2
- package/dist/{InsightView-9dc7VxLd.js → InsightView-BOM8sS76.js} +4 -4
- package/dist/{Integration-DgT3WP7T.js → Integration-Balw3Mat.js} +3 -3
- package/dist/{Integrations-DTjuN8ir.js → Integrations-mur9Phe_.js} +2 -2
- package/dist/{Layout-BhTbEl_I.js → Layout-ChpQW6k2.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-B3NaH_DG.js → MenuTab.vue_vue_type_script_setup_true_lang-VIJ3DR4n.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-Cg-74bAB.js → NavigationTab.vue_vue_type_script_setup_true_lang-CooqFHBx.js} +1248 -1252
- package/dist/{OverviewView-CLUe1Opn.js → OverviewView-Cf3MrDd_.js} +4 -4
- package/dist/{Report-BtKLh93q.js → Report-D0ybaqZN.js} +3 -3
- package/dist/{ReportEditor-BSoWyCZA.js → ReportEditor-BAOUNxIf.js} +6 -6
- package/dist/{ReportView-DMah7z_A.js → ReportView-BaHqhBsX.js} +6 -6
- package/dist/Setting-IDAzH_zb.js +366 -0
- package/dist/{Template-CoM9-uOV.js → Template-C1Ei0GcR.js} +3 -3
- package/dist/{TileEditor-DDtA5B1e.js → TileEditor-D5lXwoDY.js} +5 -5
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-DdwPdPJ2.js → TileGrid.vue_vue_type_script_setup_true_lang-DVmhbkCB.js} +2 -2
- package/dist/{TransitionFade-cviixQkL.js → TransitionFade-CtE41B0o.js} +4 -4
- package/dist/{app-CuP9NY1I.js → app-FVupSSYM.js} +1610 -1538
- package/dist/app.js +1 -1
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-i9i6cu96.js → useRestaurantPermission-DivfYXir.js} +1 -1
- package/package.json +2 -2
- package/dist/Setting-DbZY2zk5.js +0 -327
package/dist/app.js
CHANGED
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{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 .flex-col.gap-8{gap:0!important}.circular .fm-color-typo-primary:empty,.circular .fm-color-typo-secondary:empty{display:none}.circular .grow{height:100%}.sparkline{margin:0;padding:0}.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{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 .grow{height:100%}.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{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 .grow{height:100%}.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%)}.remove-line-clamping[data-v-cf9709d9] .line-clamp-1,.remove-line-clamping[data-v-cf9709d9] .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-cf9709d9] .flex.flex-col.flex-grow{min-width:0}.remove-line-clamping[data-v-cf9709d9] .cursor-pointer.flex.items-center.justify-center.relative{min-width:0;max-width:100%;overflow:hidden}.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-a58dc5da{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-a58dc5da]{animation:project-mapping-highlight-a58dc5da 1.4s ease-out;border:1px solid transparent}.ap-project-shared-field[data-v-a58dc5da] .inline-flex>div:last-child{text-decoration:underline}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}
|
|
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%)}.remove-line-clamping[data-v-cf9709d9] .line-clamp-1,.remove-line-clamping[data-v-cf9709d9] .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-cf9709d9] .flex.flex-col.flex-grow{min-width:0}.remove-line-clamping[data-v-cf9709d9] .cursor-pointer.flex.items-center.justify-center.relative{min-width:0;max-width:100%;overflow:hidden}.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-a58dc5da{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-a58dc5da]{animation:project-mapping-highlight-a58dc5da 1.4s ease-out;border:1px solid transparent}.ap-project-shared-field[data-v-a58dc5da] .inline-flex>div:last-child{text-decoration:underline}.scrollbar-hide::-webkit-scrollbar{display:none}.scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}
|
|
@@ -2,7 +2,7 @@ import { computed as u } from "vue";
|
|
|
2
2
|
import { u as c } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
3
3
|
import { useSnackbar as f } from "@feedmepos/ui-library";
|
|
4
4
|
import { useCoreStore as d } from "@feedmepos/mf-common";
|
|
5
|
-
import {
|
|
5
|
+
import { Z as l, _ as i } from "./app-FVupSSYM.js";
|
|
6
6
|
function g(t) {
|
|
7
7
|
return Array.isArray(t) ? t : [];
|
|
8
8
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feedmepos/mf-report",
|
|
3
|
-
"version": "5.27.
|
|
3
|
+
"version": "5.27.40",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"@feedmepos/feature-flag": "^0.0.15",
|
|
21
21
|
"@feedmepos/hrm-permission": "1.1.0-dev.3",
|
|
22
22
|
"@feedmepos/mf-common": "1.29.19",
|
|
23
|
-
"@feedmepos/ui-library": "1.10.
|
|
23
|
+
"@feedmepos/ui-library": "1.10.12",
|
|
24
24
|
"axios": "^1.6.7",
|
|
25
25
|
"change-case": "^5.4.3",
|
|
26
26
|
"chart.js": "^4.4.2",
|
package/dist/Setting-DbZY2zk5.js
DELETED
|
@@ -1,327 +0,0 @@
|
|
|
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-CPKHc9Ij.js";
|
|
3
|
-
import { d as J, C as q, D as pe, a as ce } from "./app-CuP9NY1I.js";
|
|
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-HWUtlVoJ.js";
|
|
6
|
-
import { u as ve } from "./message-dialog-UoMWOnil.js";
|
|
7
|
-
import { u as U } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
8
|
-
import { detectLocale as F } from "@feedmepos/mf-common";
|
|
9
|
-
import { a as Y } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
10
|
-
import { storeToRefs as _e } from "pinia";
|
|
11
|
-
const ge = { class: "px-5 py-2" }, ye = { class: "flex" }, he = { class: "flex px-5 gap-2" }, xe = { class: "flex flex-col gap-2" }, be = { class: "fm-typo-en-title-sm-600" }, Ce = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = { class: "w-full gap-[24px] flex flex-col pt-2" }, De = { class: "flex items-center w-full gap-3" }, Te = { class: "text-fm-color-typo-primary" }, $e = { class: "text-fm-color-typo-secondary" }, Se = { class: "flex items-center gap-2" }, ke = /* @__PURE__ */ B({
|
|
12
|
-
__name: "ReportHour",
|
|
13
|
-
props: {
|
|
14
|
-
modelValue: {
|
|
15
|
-
required: !0,
|
|
16
|
-
default: () => []
|
|
17
|
-
},
|
|
18
|
-
modelModifiers: {}
|
|
19
|
-
},
|
|
20
|
-
emits: ["update:modelValue"],
|
|
21
|
-
setup(D) {
|
|
22
|
-
const o = H(!1), p = H(), l = {
|
|
23
|
-
name: "",
|
|
24
|
-
isDefault: !1,
|
|
25
|
-
startTime: { hour: 0, minute: 0 },
|
|
26
|
-
endTime: { hour: 0, minute: 0 }
|
|
27
|
-
}, { FmForm: c } = z, n = H(), { promptMessage: T } = ve(), b = W(), r = H(JSON.parse(JSON.stringify(l))), m = M(D, "modelValue"), { t: u } = U(), d = () => {
|
|
28
|
-
o.value = !1, r.value && p.value === void 0 ? m.value.push(r.value) : m.value[p.value] = r.value;
|
|
29
|
-
}, R = () => {
|
|
30
|
-
var v;
|
|
31
|
-
(v = n.value) == null || v.validateInputs();
|
|
32
|
-
}, L = () => {
|
|
33
|
-
o.value = !1, r.value = l;
|
|
34
|
-
}, Z = (v) => {
|
|
35
|
-
p.value = v, r.value = JSON.parse(JSON.stringify(m.value[p.value])), o.value = !0;
|
|
36
|
-
}, ee = () => {
|
|
37
|
-
r.value = l, o.value = !0;
|
|
38
|
-
}, te = async (v) => {
|
|
39
|
-
const i = m.value.find((C, f) => f === v);
|
|
40
|
-
if (!i) {
|
|
41
|
-
b.open({ message: `index ${v} cannot be found`, type: "error" });
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
if (i.isDefault)
|
|
45
|
-
return;
|
|
46
|
-
await T({
|
|
47
|
-
title: u("report.setting.reportHour.deleteTitle"),
|
|
48
|
-
message: u("report.setting.reportHour.deleteConfirm", { name: i.name })
|
|
49
|
-
}) && (m.value = m.value.filter((f, E) => E !== v), m.value.find((f) => f.isDefault) || (m.value[0].isDefault = !0), r.value = l);
|
|
50
|
-
}, oe = (v, i) => {
|
|
51
|
-
v ? m.value = m.value.map(($, C) => ({
|
|
52
|
-
...$,
|
|
53
|
-
isDefault: i === C
|
|
54
|
-
})) : m.value = m.value.map(($, C) => ({
|
|
55
|
-
...$,
|
|
56
|
-
isDefault: C === 0
|
|
57
|
-
}));
|
|
58
|
-
}, { breakpoints: w } = X(), { FmSideSheet: le, FmTopSheet: ae } = z;
|
|
59
|
-
return (v, i) => {
|
|
60
|
-
const $ = h("FmTextField"), C = h("FmTimePicker"), f = h("FmButton"), E = h("FmSwitch"), se = h("FmChip"), re = h("FmCard");
|
|
61
|
-
return x(), k("div", null, [
|
|
62
|
-
(x(), P(ne(e(w).lg || e(w).md ? e(le) : e(ae)), {
|
|
63
|
-
modelValue: o.value,
|
|
64
|
-
"onUpdate:modelValue": i[3] || (i[3] = (_) => o.value = _),
|
|
65
|
-
"fullscreen-size": "sm",
|
|
66
|
-
"dismiss-away": !0
|
|
67
|
-
}, {
|
|
68
|
-
"side-sheet-header": y(() => [
|
|
69
|
-
t("p", null, s(e(u)("report.setting.reportHour.addTitle")), 1)
|
|
70
|
-
]),
|
|
71
|
-
"top-sheet-header": y(() => [
|
|
72
|
-
t("div", ge, [
|
|
73
|
-
t("p", null, s(e(u)("report.setting.reportHour.addTitle")), 1)
|
|
74
|
-
])
|
|
75
|
-
]),
|
|
76
|
-
"side-sheet-footer": y(() => [
|
|
77
|
-
t("div", ye, [
|
|
78
|
-
a(f, {
|
|
79
|
-
label: "Save",
|
|
80
|
-
variant: "primary",
|
|
81
|
-
onClick: R
|
|
82
|
-
}),
|
|
83
|
-
a(f, {
|
|
84
|
-
label: "Cancel",
|
|
85
|
-
variant: "tertiary",
|
|
86
|
-
onClick: L
|
|
87
|
-
})
|
|
88
|
-
])
|
|
89
|
-
]),
|
|
90
|
-
"top-sheet-footer": y(() => [
|
|
91
|
-
t("div", he, [
|
|
92
|
-
a(f, {
|
|
93
|
-
label: "Save",
|
|
94
|
-
variant: "primary",
|
|
95
|
-
onClick: R
|
|
96
|
-
}),
|
|
97
|
-
a(f, {
|
|
98
|
-
label: "Cancel",
|
|
99
|
-
variant: "tertiary",
|
|
100
|
-
onClick: L
|
|
101
|
-
})
|
|
102
|
-
])
|
|
103
|
-
]),
|
|
104
|
-
default: y(() => [
|
|
105
|
-
a(e(c), {
|
|
106
|
-
ref_key: "form",
|
|
107
|
-
ref: n,
|
|
108
|
-
class: O(["flex flex-col gap-2", `${e(w).sm || e(w).xs ? "px-24" : ""}`]),
|
|
109
|
-
onValidationSuccess: d
|
|
110
|
-
}, {
|
|
111
|
-
default: y(() => {
|
|
112
|
-
var _, V, S, j;
|
|
113
|
-
return [
|
|
114
|
-
a($, {
|
|
115
|
-
modelValue: r.value.name,
|
|
116
|
-
"onUpdate:modelValue": i[0] || (i[0] = (g) => r.value.name = g),
|
|
117
|
-
label: e(u)("report.setting.reportHour.hourSetName"),
|
|
118
|
-
placeholder: e(u)("report.setting.reportHour.namePlaceholder"),
|
|
119
|
-
rules: [(g) => g !== "" || e(u)("report.setting.reportHour.cannotBeEmpty")]
|
|
120
|
-
}, null, 8, ["modelValue", "label", "placeholder", "rules"]),
|
|
121
|
-
a(C, {
|
|
122
|
-
"model-value": e(J)().hour(((_ = r.value.startTime) == null ? void 0 : _.hour) ?? 0).minute(((V = r.value.startTime) == null ? void 0 : V.minute) ?? 0).locale(e(F)()).format("HH:mm"),
|
|
123
|
-
class: "grow",
|
|
124
|
-
label: e(u)("report.setting.reportHour.startTime"),
|
|
125
|
-
"onUpdate:modelValue": i[1] || (i[1] = (g) => {
|
|
126
|
-
g && (r.value.startTime.hour = Number(g.split(":")[0]), r.value.startTime.minute = Number(g.split(":")[1]));
|
|
127
|
-
})
|
|
128
|
-
}, null, 8, ["model-value", "label"]),
|
|
129
|
-
a(C, {
|
|
130
|
-
"model-value": e(J)().hour(((S = r.value.endTime) == null ? void 0 : S.hour) ?? 0).minute(((j = r.value.endTime) == null ? void 0 : j.minute) ?? 0).format("HH:mm"),
|
|
131
|
-
class: "grow",
|
|
132
|
-
label: e(u)("report.setting.reportHour.closeTime"),
|
|
133
|
-
"onUpdate:modelValue": i[2] || (i[2] = (g) => {
|
|
134
|
-
g && (r.value.endTime.hour = Number(g.split(":")[0]), r.value.endTime.minute = Number(g.split(":")[1]));
|
|
135
|
-
})
|
|
136
|
-
}, null, 8, ["model-value", "label"])
|
|
137
|
-
];
|
|
138
|
-
}),
|
|
139
|
-
_: 1
|
|
140
|
-
}, 8, ["class"])
|
|
141
|
-
]),
|
|
142
|
-
_: 1
|
|
143
|
-
}, 8, ["modelValue"])),
|
|
144
|
-
t("div", xe, [
|
|
145
|
-
t("p", be, s(e(u)("report.setting.reportHour.title")), 1),
|
|
146
|
-
t("p", Ce, s(e(u)("report.setting.reportHour.description")), 1)
|
|
147
|
-
]),
|
|
148
|
-
t("div", Ve, [
|
|
149
|
-
(x(!0), k(A, null, G(m.value, (_, V) => (x(), P(re, {
|
|
150
|
-
key: `report_${V}`,
|
|
151
|
-
class: "flex p-4",
|
|
152
|
-
variant: "outlined"
|
|
153
|
-
}, {
|
|
154
|
-
default: y(() => [
|
|
155
|
-
t("div", De, [
|
|
156
|
-
a(E, {
|
|
157
|
-
"model-value": _.isDefault,
|
|
158
|
-
"onUpdate:modelValue": (S) => oe(S, V)
|
|
159
|
-
}, null, 8, ["model-value", "onUpdate:modelValue"]),
|
|
160
|
-
t("div", null, [
|
|
161
|
-
t("p", Te, [
|
|
162
|
-
ie(s(_.name) + " ", 1),
|
|
163
|
-
K(a(se, {
|
|
164
|
-
label: e(u)("report.common.default"),
|
|
165
|
-
class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
|
|
166
|
-
compact: ""
|
|
167
|
-
}, null, 8, ["label"]), [
|
|
168
|
-
[Q, _.isDefault]
|
|
169
|
-
])
|
|
170
|
-
]),
|
|
171
|
-
t("p", $e, s(e(N)(_.startTime, e(F)())) + " - " + s(e(N)(_.endTime, e(F)())), 1)
|
|
172
|
-
]),
|
|
173
|
-
i[4] || (i[4] = t("div", { class: "grow" }, null, -1)),
|
|
174
|
-
t("div", Se, [
|
|
175
|
-
a(f, {
|
|
176
|
-
icon: "edit",
|
|
177
|
-
variant: "tertiary",
|
|
178
|
-
onClick: (S) => Z(V)
|
|
179
|
-
}, null, 8, ["onClick"]),
|
|
180
|
-
a(f, {
|
|
181
|
-
icon: "delete",
|
|
182
|
-
variant: "tertiary",
|
|
183
|
-
disabled: _.isDefault,
|
|
184
|
-
onClick: (S) => te(V)
|
|
185
|
-
}, null, 8, ["disabled", "onClick"])
|
|
186
|
-
])
|
|
187
|
-
])
|
|
188
|
-
]),
|
|
189
|
-
_: 2
|
|
190
|
-
}, 1024))), 128)),
|
|
191
|
-
t("div", null, [
|
|
192
|
-
a(f, {
|
|
193
|
-
label: e(u)("report.setting.reportHour.add"),
|
|
194
|
-
variant: "secondary",
|
|
195
|
-
icon: "add",
|
|
196
|
-
"icon-position": "prepend",
|
|
197
|
-
"border-color": e(I).ColorPrimary,
|
|
198
|
-
"text-color": e(I).ColorPrimary,
|
|
199
|
-
onClick: ee
|
|
200
|
-
}, null, 8, ["label", "border-color", "text-color"])
|
|
201
|
-
])
|
|
202
|
-
])
|
|
203
|
-
]);
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
}), Fe = { class: "py-2 w-full gap-2 flex flex-col" }, Re = { class: "fm-typo-en-title-sm-600" }, we = /* @__PURE__ */ B({
|
|
207
|
-
__name: "CompareRangeSetting",
|
|
208
|
-
props: {
|
|
209
|
-
modelValue: {
|
|
210
|
-
required: !0,
|
|
211
|
-
default: q.PRECEDING_PERIOD
|
|
212
|
-
},
|
|
213
|
-
modelModifiers: {}
|
|
214
|
-
},
|
|
215
|
-
emits: ["update:modelValue"],
|
|
216
|
-
setup(D) {
|
|
217
|
-
const { t: o } = U(), p = M(D, "modelValue"), l = Object.values(q).map((c) => ({
|
|
218
|
-
label: o(`report.compare.${c}`),
|
|
219
|
-
value: c
|
|
220
|
-
})).slice(0, -1);
|
|
221
|
-
return (c, n) => (x(), k("div", Fe, [
|
|
222
|
-
t("p", Re, s(e(o)("report.setting.summary.comparisonDateRange")), 1),
|
|
223
|
-
a(Y, {
|
|
224
|
-
modelValue: p.value,
|
|
225
|
-
"onUpdate:modelValue": n[0] || (n[0] = (T) => p.value = T),
|
|
226
|
-
label: e(o)("report.setting.summary.comparisonDateRange"),
|
|
227
|
-
items: e(l),
|
|
228
|
-
"disable-search": !0
|
|
229
|
-
}, null, 8, ["modelValue", "label", "items"])
|
|
230
|
-
]));
|
|
231
|
-
}
|
|
232
|
-
}), He = { class: "py-2 w-full gap-2 flex flex-col" }, Oe = { class: "fm-typo-en-title-sm-600" }, Ne = /* @__PURE__ */ B({
|
|
233
|
-
__name: "DateRangeSetting",
|
|
234
|
-
props: {
|
|
235
|
-
modelValue: { required: !0 },
|
|
236
|
-
modelModifiers: {}
|
|
237
|
-
},
|
|
238
|
-
emits: ["update:modelValue"],
|
|
239
|
-
setup(D) {
|
|
240
|
-
const { t: o } = U(), p = M(D, "modelValue"), l = Object.values(pe).filter((c) => !["This month", "Last month"].includes(c)).map((c) => ({
|
|
241
|
-
label: o(`report.date.${c}`),
|
|
242
|
-
value: c
|
|
243
|
-
}));
|
|
244
|
-
return (c, n) => (x(), k("div", He, [
|
|
245
|
-
t("p", Oe, s(e(o)("report.setting.summary.defaultDateRange")), 1),
|
|
246
|
-
a(Y, {
|
|
247
|
-
modelValue: p.value,
|
|
248
|
-
"onUpdate:modelValue": n[0] || (n[0] = (T) => p.value = T),
|
|
249
|
-
label: e(o)("report.setting.summary.defaultDateRange"),
|
|
250
|
-
items: e(l),
|
|
251
|
-
"disable-search": !0
|
|
252
|
-
}, null, 8, ["modelValue", "label", "items"])
|
|
253
|
-
]));
|
|
254
|
-
}
|
|
255
|
-
}), Be = { class: "w-2/4" }, Ue = { class: "fm-typo-en-title-sm-600" }, Ee = { class: "text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-lg-600" }, Me = { class: "text-fm-color-typo-secondary" }, Le = { class: "fm-typo-en-body-lg-600" }, je = { class: "text-fm-color-typo-secondary" }, Je = { class: "fm-typo-en-body-lg-600" }, Ze = /* @__PURE__ */ B({
|
|
256
|
-
__name: "Setting",
|
|
257
|
-
setup(D) {
|
|
258
|
-
const { breakpoints: o } = X(), p = ce(), { defaultDateSetting: l } = _e(p), c = W(), { t: n } = U();
|
|
259
|
-
return me(
|
|
260
|
-
[
|
|
261
|
-
() => l.value.defaultCompareType,
|
|
262
|
-
() => l.value.defaultDateRange,
|
|
263
|
-
() => l.value.timeOptions
|
|
264
|
-
],
|
|
265
|
-
() => {
|
|
266
|
-
l.value.timeOptions.length === 0 ? c.open({ message: n("report.setting.reportHour.cannotBeEmptyError"), type: "error" }) : p.createOrUpdateBusinessSetting(l.value);
|
|
267
|
-
},
|
|
268
|
-
{ deep: !0 }
|
|
269
|
-
), (T, b) => {
|
|
270
|
-
const r = h("FmPageHead"), m = h("FmMenuDivider"), u = h("FmCard");
|
|
271
|
-
return x(), P(de, null, {
|
|
272
|
-
default: y(() => [
|
|
273
|
-
a(r, {
|
|
274
|
-
title: e(n)("report.view.setting.title")
|
|
275
|
-
}, null, 8, ["title"]),
|
|
276
|
-
t("div", {
|
|
277
|
-
class: O(`${e(o).sm || e(o).xs ? "pb-20" : ""} overflow-y-auto flex`),
|
|
278
|
-
style: ue({ height: `calc(100% - ${e(o).sm || e(o).xs ? 60 : 72}px)` })
|
|
279
|
-
}, [
|
|
280
|
-
t("div", {
|
|
281
|
-
class: O(`${e(o).lg || e(o).md ? "px-24" : "px-3"} w-full flex flex-col gap-[40px]`)
|
|
282
|
-
}, [
|
|
283
|
-
a(ke, {
|
|
284
|
-
modelValue: e(l).timeOptions,
|
|
285
|
-
"onUpdate:modelValue": b[0] || (b[0] = (d) => e(l).timeOptions = d)
|
|
286
|
-
}, null, 8, ["modelValue"]),
|
|
287
|
-
a(Ne, {
|
|
288
|
-
modelValue: e(l).defaultDateRange,
|
|
289
|
-
"onUpdate:modelValue": b[1] || (b[1] = (d) => e(l).defaultDateRange = d)
|
|
290
|
-
}, null, 8, ["modelValue"]),
|
|
291
|
-
a(we, {
|
|
292
|
-
modelValue: e(l).defaultCompareType,
|
|
293
|
-
"onUpdate:modelValue": b[2] || (b[2] = (d) => e(l).defaultCompareType = d)
|
|
294
|
-
}, null, 8, ["modelValue"])
|
|
295
|
-
], 2),
|
|
296
|
-
K(t("div", Be, [
|
|
297
|
-
a(u, {
|
|
298
|
-
variant: "outlined",
|
|
299
|
-
class: O(["flex flex-col gap-3", `${e(o).lg || e(o).md ? "mr-5 p-6" : ""}`])
|
|
300
|
-
}, {
|
|
301
|
-
default: y(() => [
|
|
302
|
-
t("p", Ue, s(e(n)("report.setting.summary.title")), 1),
|
|
303
|
-
a(m),
|
|
304
|
-
t("p", Ee, s(e(n)("report.setting.summary.reportHour")), 1),
|
|
305
|
-
(x(!0), k(A, null, G(e(l).timeOptions, (d, R) => (x(), k("div", { key: R }, [
|
|
306
|
-
t("p", Pe, s(d.name) + s(d.isDefault ? `(${e(n)("report.setting.reportHour.default")})` : "") + " " + s(e(N)(d.startTime, e(F)())) + " " + s(e(N)(d.endTime, e(F)())) + " " + s(e(fe)(d.startTime, d.endTime)), 1)
|
|
307
|
-
]))), 128)),
|
|
308
|
-
t("p", Me, s(e(n)("report.setting.summary.defaultDateRange")), 1),
|
|
309
|
-
t("p", Le, s(e(n)(`report.date.${e(l).defaultDateRange}`)), 1),
|
|
310
|
-
t("p", je, s(e(n)("report.setting.summary.comparisonDateRange")), 1),
|
|
311
|
-
t("p", Je, s(e(n)(`report.compare.${e(l).defaultCompareType}`)), 1)
|
|
312
|
-
]),
|
|
313
|
-
_: 1
|
|
314
|
-
}, 8, ["class"])
|
|
315
|
-
], 512), [
|
|
316
|
-
[Q, e(o).lg || e(o).md]
|
|
317
|
-
])
|
|
318
|
-
], 6)
|
|
319
|
-
]),
|
|
320
|
-
_: 1
|
|
321
|
-
});
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
});
|
|
325
|
-
export {
|
|
326
|
-
Ze as default
|
|
327
|
-
};
|