@feedmepos/mf-report 5.8.2 → 5.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/dist/{App-C6VF9T5V.js → App-CSOLBHvz.js} +6 -7
  2. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-DFhiXlTW.js +180 -0
  3. package/dist/{Default.vue_vue_type_script_setup_true_lang-B0_QlxYu.js → Default.vue_vue_type_script_setup_true_lang-Bk5Aw-iX.js} +2 -2
  4. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-zgh_zMvL.js +1447 -0
  5. package/dist/{InsightView-BQlzh0ue.js → InsightView-Bwh7zRnV.js} +7 -8
  6. package/dist/Integration-C6jAZ1_i.js +5222 -0
  7. package/dist/Integrations-BGmJBj90.js +338 -0
  8. package/dist/{Layout-RhBG3zKc.js → Layout-Db6yStGK.js} +1 -1
  9. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-BEHjV9yH.js +342 -0
  10. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BdzurgE4.js → NavigationTab.vue_vue_type_script_setup_true_lang-gDVPczBf.js} +1078 -1080
  11. package/dist/NoData.vue_vue_type_script_setup_true_lang-D-J81GXC.js +38 -0
  12. package/dist/{OverviewView-Boq9rgbj.js → OverviewView-WOEuALSq.js} +5 -5
  13. package/dist/{Report-C7GvAhoG.js → Report-_YQ9GpRY.js} +4 -4
  14. package/dist/ReportEditor-C9W5Dkcl.js +968 -0
  15. package/dist/{ReportView-DMLyspIY.js → ReportView-B2dPbjug.js} +7 -7
  16. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-CGlkGXWL.js +110 -0
  17. package/dist/{Setting-CLBZdtvx.js → Setting-BONU5EUv.js} +26 -23
  18. package/dist/TileEditor-B_5Z6Y4K.js +3080 -0
  19. package/dist/{TransitionFade-D3megUTB.js → TransitionFade-nQahFBUN.js} +207 -203
  20. package/dist/app.js +59 -19
  21. package/dist/helper-CFNxnCtm.js +75 -0
  22. package/dist/style.css +1 -1
  23. package/dist/{v4-Bi2F4URu.js → v4-CboKZWvc.js} +1955 -1844
  24. package/dist/{global-loader-CEOgl5uZ.js → vue-i18n-DX0diAld.js} +2057 -1976
  25. package/package.json +1 -1
  26. package/dist/DateRangeSelect.vue_vue_type_script_setup_true_lang-CpakO4U-.js +0 -162
  27. package/dist/DynamicWidget.vue_vue_type_script_setup_true_lang-BO_HTvjY.js +0 -1417
  28. package/dist/Integration-CB31rvSG.js +0 -4751
  29. package/dist/Integrations-DGlzyZMR.js +0 -334
  30. package/dist/MenuTab.vue_vue_type_script_setup_true_lang-DsY5W3k7.js +0 -101
  31. package/dist/NoData.vue_vue_type_script_setup_true_lang-DZJxcekm.js +0 -31
  32. package/dist/ReportEditor-CwzONBLC.js +0 -621
  33. package/dist/SelectComponent.vue_vue_type_script_setup_true_lang-C23-eIYF.js +0 -104
  34. package/dist/TileEditor-CtVM3IbI.js +0 -3016
  35. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  36. package/dist/index-CH1WFv_s.js +0 -147
  37. package/dist/report-schema-C3sI223M.js +0 -31
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-report",
3
- "version": "5.8.2",
3
+ "version": "5.9.0",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -1,162 +0,0 @@
1
- import { defineComponent as F, resolveComponent as g, createBlock as p, openBlock as u, withCtx as v, createCommentVNode as y, createElementVNode as w, toDisplayString as M, renderSlot as P, mergeModels as T, useModel as f, ref as C, watch as I, createElementBlock as x, createVNode as D, unref as c } from "vue";
2
- import { d as n, J as O, C as B } from "./global-loader-CEOgl5uZ.js";
3
- import { b as V } from "./index-CH1WFv_s.js";
4
- import { detectLocale as $ } from "@feedmepos/mf-common";
5
- const Y = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, j = { class: "fm-typo-en-body-md-600 text-ellipsis overflow-hidden whitespace-nowrap" }, k = /* @__PURE__ */ F({
6
- __name: "FilterChip",
7
- props: {
8
- label: {
9
- type: String,
10
- default: ""
11
- },
12
- leftIcon: {
13
- type: String,
14
- default: ""
15
- },
16
- rightIcon: {
17
- type: String,
18
- default: ""
19
- }
20
- },
21
- setup(a) {
22
- const r = a;
23
- return (d, l) => {
24
- const e = g("FmIcon"), t = g("FmChip");
25
- return u(), p(t, { class: "bg-fm-color-neutral-gray-100 text-fm-color-neutral-gray-400 max-w-fit" }, {
26
- default: v(() => [
27
- a.leftIcon ? (u(), p(e, {
28
- key: 0,
29
- name: r.leftIcon,
30
- size: "sm",
31
- outline: ""
32
- }, null, 8, ["name"])) : y("", !0),
33
- w("p", Y, M(r.label), 1),
34
- a.rightIcon ? (u(), p(e, {
35
- key: 1,
36
- name: a.rightIcon,
37
- size: "sm",
38
- outline: ""
39
- }, null, 8, ["name"])) : y("", !0),
40
- w("div", j, [
41
- P(d.$slots, "default")
42
- ])
43
- ]),
44
- _: 3
45
- });
46
- };
47
- }
48
- }), N = { class: "flex gap-2 items-center" }, i = "YYYY-MM-DD", J = /* @__PURE__ */ F({
49
- __name: "DateRangeSelect",
50
- props: /* @__PURE__ */ T({
51
- compare: {
52
- type: Boolean,
53
- default: !1
54
- },
55
- datePredefinedRanges: {
56
- type: Array,
57
- default: () => O
58
- }
59
- }, {
60
- compareType: {
61
- type: String,
62
- default: B.PrecedingPeriod
63
- },
64
- compareTypeModifiers: {},
65
- dateRange: {
66
- type: Object,
67
- default: () => ({
68
- startDate: void 0,
69
- endDate: void 0
70
- })
71
- },
72
- dateRangeModifiers: {},
73
- compareDateRange: {
74
- type: Object,
75
- default: () => ({
76
- startDate: void 0,
77
- endDate: void 0
78
- })
79
- },
80
- compareDateRangeModifiers: {}
81
- }),
82
- emits: ["update:compareType", "update:dateRange", "update:compareDateRange"],
83
- setup(a) {
84
- var S, R, b;
85
- const r = f(a, "compareType"), d = f(a, "dateRange"), l = f(a, "compareDateRange"), e = C({
86
- startDate: (S = n(d.value.startDate)) == null ? void 0 : S.local().format(i),
87
- endDate: (R = n(d.value.endDate)) == null ? void 0 : R.local().format(i)
88
- }), t = C({
89
- startDate: l.value.startDate ? (b = n(l.value.startDate)) == null ? void 0 : b.local().format(i) : void 0,
90
- endDate: l.value.endDate ? n(l.value.endDate).local().format(i) : void 0
91
- });
92
- I(
93
- [() => e.value],
94
- () => {
95
- e.value.endDate || (e.value.endDate = e.value.startDate), d.value = {
96
- startDate: n(e.value.startDate).toISOString(),
97
- endDate: n(e.value.endDate).toISOString()
98
- };
99
- },
100
- { deep: !0 }
101
- ), I([() => t.value], () => {
102
- l.value = {
103
- startDate: t.value.startDate ? n(t.value.startDate).toISOString() : void 0,
104
- endDate: t.value.endDate ? n(t.value.endDate).toISOString() : void 0
105
- };
106
- });
107
- function _(m) {
108
- r.value = m;
109
- }
110
- return (m, s) => {
111
- const h = g("FmSimpleDateRangePicker");
112
- return u(), x("div", N, [
113
- D(h, {
114
- modelValue: e.value,
115
- "onUpdate:modelValue": s[0] || (s[0] = (o) => e.value = o),
116
- "show-predefined-range": "",
117
- "predefined-range": a.datePredefinedRanges.map((o) => ({
118
- ...o,
119
- label: m.$t(`report.date.${o.label}`)
120
- })),
121
- class: "w-2/6"
122
- }, {
123
- "trigger-button": v(() => [
124
- D(k, {
125
- "left-icon": "calendar_month",
126
- label: `${c(V)({
127
- startDate: e.value.startDate ?? "",
128
- endDate: e.value.endDate ?? "",
129
- locale: c($)()
130
- })}`
131
- }, null, 8, ["label"])
132
- ]),
133
- _: 1
134
- }, 8, ["modelValue", "predefined-range"]),
135
- a.compare ? (u(), p(h, {
136
- key: 0,
137
- modelValue: t.value,
138
- "onUpdate:modelValue": s[1] || (s[1] = (o) => t.value = o),
139
- "show-predefined-range": "",
140
- "compare-target": e.value,
141
- "default-compare-type": r.value,
142
- onSelectComparison: _
143
- }, {
144
- "trigger-button": v(() => [
145
- D(k, {
146
- label: `${m.$t("report.common.compare")}: ${c(V)({
147
- startDate: t.value.startDate ?? null,
148
- endDate: t.value.endDate ?? null,
149
- locale: c($)()
150
- })}`
151
- }, null, 8, ["label"])
152
- ]),
153
- _: 1
154
- }, 8, ["modelValue", "compare-target", "default-compare-type"])) : y("", !0)
155
- ]);
156
- };
157
- }
158
- });
159
- export {
160
- J as _,
161
- k as a
162
- };