@feedmepos/mf-connect 0.1.0-beta.9 → 0.1.1-prod

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 (102) hide show
  1. package/dist/Analytic-C2etD-eu.js +620 -0
  2. package/dist/{App-DQUbRsdA.js → App-DlRvkDpN.js} +58 -59
  3. package/dist/Broadcast-DpCGUS6r.js +216 -0
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D-BFllvG.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cj4IcH5D.js} +20 -20
  5. package/dist/Card-DjGC6jmq.js +823 -0
  6. package/dist/Collections-Q2pYWnJF.js +440 -0
  7. package/dist/Credit-DOIq2VYW.js +214 -0
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C_ZKNWzb.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D7ML8ePp.js} +1010 -1026
  9. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-CyxWG5I7.js +344 -0
  10. package/dist/Experience-DUst4I0H.js +211 -0
  11. package/dist/Game-CXnQR-wV.js +250 -0
  12. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
  13. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → MainLayout-DpZC6o3R.js} +53 -19
  14. package/dist/Marketing-CZfHsMFC.js +309 -0
  15. package/dist/Member-CX5Ohgeg.js +92 -0
  16. package/dist/MemberList-D8I3SaAs.js +1040 -0
  17. package/dist/MemberOverview-C2n9oJZh.js +58 -0
  18. package/dist/{MemberTransactions-zSxSnUkK.js → MemberTransactions-DfZNbCHD.js} +1 -1
  19. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-BxFVEoBX.js +203 -0
  20. package/dist/Mission-S1pwDbqp.js +248 -0
  21. package/dist/Point-BdLUcGZy.js +220 -0
  22. package/dist/Promotion-DWAeQGkU.js +244 -0
  23. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CTKKhH-r.js → RuleGroup.vue_vue_type_script_setup_true_lang-Dux_NMO5.js} +577 -568
  24. package/dist/Segment-CXSE8Bzf.js +560 -0
  25. package/dist/Setting-CLuXuEId.js +1870 -0
  26. package/dist/Store-Be3cui0S.js +1533 -0
  27. package/dist/StoreRewards-zFy_w8p4.js +429 -0
  28. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-2Jqj_rKv.js → StoreTransactions.vue_vue_type_script_setup_true_lang-DxGJKgbc.js} +10 -10
  29. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BkdSj0cX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dreo45H1.js} +1 -1
  30. package/dist/{Tier-Cpl0FV8L.js → Tier-ChzcISYF.js} +453 -481
  31. package/dist/{Title-CbMDd1Et.js → Title-DQSjhBkT.js} +295 -314
  32. package/dist/Transaction-CeWmWpN_.js +36 -0
  33. package/dist/Voucher-BkLIxiZN.js +485 -0
  34. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-3LlSDiq0.js +140 -0
  35. package/dist/app-CLNirPsB.js +2974 -0
  36. package/dist/{app-VxaUCtgl.js → app-DuNsy0aC.js} +1 -1
  37. package/dist/app.js +3 -5
  38. package/dist/{business-DR7jpnLz.js → business-COGiTmLD.js} +1 -1
  39. package/dist/{campaign-MqcTb329.js → campaign-BHZMjQi5.js} +3 -5
  40. package/dist/{collection.fn-CvEoe61K.js → collection.fn-sAxtYO_r.js} +2 -2
  41. package/dist/dto-ndeeV_nc.js +1145 -0
  42. package/dist/{effect-BjjQeiQg.js → effect-BQt0rkdT.js} +9 -9
  43. package/dist/email-addresses-B3PazwKs.js +705 -0
  44. package/dist/{export-B8cvWh5n.js → export-D6r-xNji.js} +3 -3
  45. package/dist/{helper-DfgVNY7B.js → helper-CrjQw_Et.js} +1 -1
  46. package/dist/{index-CWR3qYjb.js → index-Btlj28Vg.js} +1 -1
  47. package/dist/{index-C7zMfUgy.js → index-Buy-yvAZ.js} +319 -304
  48. package/dist/{index-0UYoh1-7.js → index-C3AAy__p.js} +1 -1
  49. package/dist/index-CHAaFSD2.js +11 -0
  50. package/dist/{index-Dap5R3vr.js → index-Cg3RFxc9.js} +91 -102
  51. package/dist/{index-2P9w5u3m.js → index-CqpEhMr6.js} +4 -4
  52. package/dist/{index-BsfWRB8R.js → index-CvHj-wYi.js} +1 -1
  53. package/dist/index-DGLmbBnE.js +28997 -0
  54. package/dist/{index-CJ8Uh2Ja.js → index-DXpd07G3.js} +3 -3
  55. package/dist/{index-B5NufbUt.js → index-Daax_BQa.js} +1 -1
  56. package/dist/{index-C2JNcGc-.js → index-DrLEuIe1.js} +281 -299
  57. package/dist/{index-DBy30v8N.js → index-tSEYvA-2.js} +3 -3
  58. package/dist/{index.esm2017-D1X3PgpO.js → index.esm2017-a5BlZ76G.js} +55 -55
  59. package/dist/{loading-CJ3nOovJ.js → loading-B3XGyQ8W.js} +460 -469
  60. package/dist/{membership-B1cmSRyk.js → membership-GIOJ1ptN.js} +3 -3
  61. package/dist/money-z7VwzhZP.js +15 -0
  62. package/dist/number-DHYb2ua_.js +12 -0
  63. package/dist/{rule-builder-CSmOONdb.js → rule-builder-CcsWd5r9.js} +1 -1
  64. package/dist/{rule-ChWyR-0j.js → rule-iIEblTE4.js} +179 -177
  65. package/dist/style.css +1 -1
  66. package/dist/{template-Cug7aRK0.js → template-DMRMDZOW.js} +63 -63
  67. package/dist/{xlsx-CfgPFFvp.js → usePagination-CNFe0T2B.js} +3176 -2955
  68. package/package.json +5 -8
  69. package/dist/Analytic-CMXUjK_F.js +0 -622
  70. package/dist/Broadcast-DowFtHv6.js +0 -223
  71. package/dist/Card-C7rhL0pV.js +0 -825
  72. package/dist/Collections-B-1wlk3r.js +0 -453
  73. package/dist/Credit-DDjozmoF.js +0 -220
  74. package/dist/EffectSheet.vue_vue_type_style_index_0_lang-pwMuIgs5.js +0 -345
  75. package/dist/Experience-BbE-c1Op.js +0 -221
  76. package/dist/Game-DQdRpaN-.js +0 -255
  77. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
  78. package/dist/MainLayout-B1aJoR95.js +0 -41
  79. package/dist/Marketing-Dgmxzg4h.js +0 -316
  80. package/dist/Member-w23oRVwN.js +0 -69
  81. package/dist/MemberList-BLIdjznQ.js +0 -1735
  82. package/dist/MemberOverview-wL_ailso.js +0 -58
  83. package/dist/MessageInput.vue_vue_type_script_setup_true_lang-Dy_lMdZA.js +0 -432
  84. package/dist/Mission-Cjt0E083.js +0 -261
  85. package/dist/Point-CQJL3Ewu.js +0 -222
  86. package/dist/Promotion-BYViH3bu.js +0 -247
  87. package/dist/Segment-B9Jj1ak0.js +0 -437
  88. package/dist/Setting-DXWbgRxs.js +0 -1901
  89. package/dist/Store-Dswk2e_z.js +0 -1511
  90. package/dist/StoreRewards-CNUhG_Ue.js +0 -401
  91. package/dist/Transaction-BB-kk-84.js +0 -39
  92. package/dist/Voucher-b1_Jlm6X.js +0 -490
  93. package/dist/ZodTextField.vue_vue_type_script_setup_true_lang-pG-SrXp9.js +0 -56
  94. package/dist/app-DCHKJoql.js +0 -5639
  95. package/dist/dto-jcK3TGB7.js +0 -2770
  96. package/dist/index-Cv7pLAYq.js +0 -3
  97. package/dist/index-LrSSauN2.js +0 -29193
  98. package/dist/money-BEATdGS6.js +0 -15
  99. package/dist/number-CeAYAKCp.js +0 -12
  100. package/dist/usePagination-BeF5K3M7.js +0 -223
  101. package/dist/vue-i18n-BRhKDHdF.js +0 -2365
  102. package/dist/zod-Bg2FbC-D.js +0 -90
@@ -1,15 +0,0 @@
1
- import { e as r } from "./index-LrSSauN2.js";
2
- function n(e) {
3
- return r.fromNumber({ number: e });
4
- }
5
- function t() {
6
- return r.zero().toObject();
7
- }
8
- function u() {
9
- return r.zero();
10
- }
11
- export {
12
- u as a,
13
- n as t,
14
- t as z
15
- };
@@ -1,12 +0,0 @@
1
- import { c as n } from "./index-LrSSauN2.js";
2
- function f(t) {
3
- return n(t).multiply(100).toFormat(!1);
4
- }
5
- function m(t, r = 2, o = !1) {
6
- const e = parseFloat(String(t)).toFixed(r);
7
- return o ? parseFloat(e).toString() : e;
8
- }
9
- export {
10
- f as F,
11
- m as f
12
- };
@@ -1,223 +0,0 @@
1
- import { defineComponent as M, ref as w, resolveComponent as C, openBlock as v, createBlock as F, withCtx as B, createVNode as c, createElementVNode as i, normalizeStyle as N, createElementBlock as S, Fragment as P, renderList as E, computed as h, onMounted as L, watch as R, unref as p, createCommentVNode as V, toDisplayString as x } from "vue";
2
- import { l as A } from "./lodash-B5I3zXaY.js";
3
- const T = ["id"], D = /* @__PURE__ */ M({
4
- __name: "FmTableSelection",
5
- props: {
6
- value: {},
7
- items: {}
8
- },
9
- emits: ["update:modelValue"],
10
- setup(f, { emit: g }) {
11
- const a = g, l = f, r = w(!1);
12
- return (d, u) => {
13
- const y = C("FmButton"), b = C("FmMenuItem"), o = C("FmMenu");
14
- return v(), F(o, {
15
- "max-height": 264,
16
- shift: "",
17
- onMenuChanged: u[0] || (u[0] = (n) => r.value = n)
18
- }, {
19
- "menu-button": B(() => {
20
- var n;
21
- return [
22
- c(y, {
23
- icon: r.value ? "expand_less" : "expand_more",
24
- label: (n = d.items.find((s) => s.value === l.value)) == null ? void 0 : n.label,
25
- "icon-position": "append",
26
- size: "md",
27
- variant: "tertiary"
28
- }, null, 8, ["icon", "label"])
29
- ];
30
- }),
31
- "menu-wrapper": B(({ maxHeight: n }) => [
32
- i("div", {
33
- id: `menu-wrapper-${n}`,
34
- style: N({ maxHeight: `${n}px` }),
35
- class: "bg-fm-color-neutral-white flex flex-col overflow-y-auto px-4 py-12 rounded-md shadow-light-300 w-[75px]"
36
- }, [
37
- (v(!0), S(P, null, E(d.items, (s) => (v(), F(b, {
38
- key: s.value,
39
- label: s.label,
40
- value: s.value,
41
- "model-value": s.value === l.value,
42
- "onUpdate:modelValue": (z) => a("update:modelValue", s.value)
43
- }, null, 8, ["label", "value", "model-value", "onUpdate:modelValue"]))), 128))
44
- ], 12, T)
45
- ]),
46
- _: 1
47
- });
48
- };
49
- }
50
- }), U = { class: "" }, O = {
51
- key: 0,
52
- class: "w-full flex flex-col gap-16 items-center py-16"
53
- }, j = {
54
- key: 1,
55
- class: "basis-72 bg-white flex items-center justify-between px-24 pt-6 border-t border-fm-color-border"
56
- }, W = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, q = { class: "flex gap-8 items-center" }, G = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, H = { class: "flex gap-8 items-center" }, J = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, K = { class: "flex gap-8" }, Y = /* @__PURE__ */ M({
57
- __name: "BaseTable",
58
- props: {
59
- rowData: {},
60
- columnDefs: {},
61
- loading: { type: Boolean, default: !1 },
62
- rowCount: { default: 0 },
63
- shrinkAt: { type: [Number, Boolean], default: !1 },
64
- pageCount: {},
65
- pageIndex: {},
66
- hideFooter: { type: Boolean, default: !1 },
67
- pageSize: {},
68
- pageSizeOptions: { default: () => [
69
- { label: "10", value: 10 },
70
- { label: "20", value: 20 },
71
- { label: "50", value: 50 }
72
- ] }
73
- },
74
- emits: ["sortChange", "rowClick", "pageChange"],
75
- setup(f, { emit: g }) {
76
- const a = f, l = g, r = h(() => a.pageIndex + 1), d = h(() => a.pageIndex * a.pageSize), u = h(
77
- () => Math.min(d.value + a.pageSize, a.rowCount || 0)
78
- ), y = h(() => a.pageIndex > 0), b = h(() => a.pageIndex < a.pageCount - 1), o = (e) => {
79
- l("sortChange", e);
80
- }, n = (e) => {
81
- l("rowClick", e);
82
- }, s = (e) => {
83
- l("pageChange", { pageIndex: e, pageSize: a.pageSize });
84
- }, z = (e) => {
85
- l("pageChange", { pageIndex: 0, pageSize: e });
86
- }, I = w(!1);
87
- return L(() => {
88
- R(
89
- () => a.loading,
90
- (e, t) => {
91
- t === !0 && e === !1 && (I.value = !0);
92
- }
93
- );
94
- }), (e, t) => {
95
- const $ = C("FmTable"), k = C("FmButton");
96
- return v(), S("div", U, [
97
- c($, {
98
- loading: e.loading,
99
- "row-data": e.rowData,
100
- "row-count": e.rowCount,
101
- "column-defs": e.columnDefs,
102
- "shrink-at": e.shrinkAt,
103
- "page-count": e.pageCount,
104
- "page-size": e.pageSize,
105
- "fetch-fn": void 0,
106
- "hide-footer": "",
107
- onSortChange: o,
108
- onRowClick: n
109
- }, null, 8, ["loading", "row-data", "row-count", "column-defs", "shrink-at", "page-count", "page-size"]),
110
- e.rowData.length == 0 && e.loading == !1 && p(I) ? (v(), S("div", O, t[5] || (t[5] = [
111
- i("div", { class: "fm-typo-en-body-lg-600" }, "No data found", -1),
112
- i("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " No data to show at the current moment. ", -1)
113
- ]))) : V("", !0),
114
- e.hideFooter ? V("", !0) : (v(), S("div", j, [
115
- i("div", W, [
116
- i("div", q, [
117
- t[6] || (t[6] = i("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1)),
118
- c(D, {
119
- items: e.pageSizeOptions,
120
- value: e.pageSize,
121
- "onUpdate:modelValue": z
122
- }, null, 8, ["items", "value"])
123
- ]),
124
- i("span", G, x(p(d) + 1) + " - " + x(p(u)) + " of " + x(e.rowCount) + " items ", 1)
125
- ]),
126
- i("div", H, [
127
- c(D, {
128
- items: Array.from(Array(e.pageCount), (m, _) => ({
129
- label: (_ + 1).toString(),
130
- value: _ + 1
131
- })),
132
- value: p(r),
133
- "onUpdate:modelValue": t[0] || (t[0] = (m) => s(m - 1))
134
- }, null, 8, ["items", "value"]),
135
- i("span", J, " of " + x(e.pageCount) + " pages ", 1),
136
- i("div", K, [
137
- c(k, {
138
- disabled: !p(y),
139
- icon: "first_page",
140
- "icon-color": "neutral-black",
141
- variant: "tertiary",
142
- onClick: t[1] || (t[1] = (m) => s(0))
143
- }, null, 8, ["disabled"]),
144
- c(k, {
145
- disabled: !p(y),
146
- icon: "chevron_left",
147
- "icon-color": "neutral-black",
148
- variant: "tertiary",
149
- onClick: t[2] || (t[2] = (m) => s(e.pageIndex - 1))
150
- }, null, 8, ["disabled"]),
151
- c(k, {
152
- disabled: !p(b),
153
- icon: "chevron_right",
154
- "icon-color": "neutral-black",
155
- variant: "tertiary",
156
- onClick: t[3] || (t[3] = (m) => s(e.pageIndex + 1))
157
- }, null, 8, ["disabled"]),
158
- c(k, {
159
- disabled: !p(b),
160
- icon: "last_page",
161
- "icon-color": "neutral-black",
162
- variant: "tertiary",
163
- onClick: t[4] || (t[4] = (m) => s(e.pageCount - 1))
164
- }, null, 8, ["disabled"])
165
- ])
166
- ])
167
- ]))
168
- ]);
169
- };
170
- }
171
- });
172
- function Z(f, g = { key: "_id", descending: !0 }) {
173
- const a = w({
174
- pageCount: 0,
175
- searchValue: "",
176
- pageIndex: 0,
177
- totalRows: 0,
178
- isLoading: !1,
179
- pageSize: 10
180
- }), l = w(g), r = w([]), d = async (o) => {
181
- a.value.isLoading = !0, r.value = [];
182
- try {
183
- const n = await f({
184
- limit: o.pageSize || a.value.pageSize,
185
- skip: o.pageIndex ?? 0,
186
- sortBy: l.value.key,
187
- descending: l.value.descending,
188
- search: a.value.searchValue
189
- });
190
- r.value = n.resources, a.value.totalRows = n.meta.totalResources ?? 0, a.value.pageCount = n.meta.totalPages ?? 0, a.value.pageIndex = n.meta.skip ?? 0;
191
- } catch (n) {
192
- console.error("Error fetching data:", n);
193
- } finally {
194
- a.value.isLoading = !1;
195
- }
196
- }, u = A.debounce(async (o) => {
197
- a.value.pageSize = (o == null ? void 0 : o.pageSize) || a.value.pageSize, await d({
198
- pageSize: a.value.pageSize,
199
- pageIndex: (o == null ? void 0 : o.pageIndex) || 0
200
- });
201
- }, 200);
202
- return {
203
- tableMeta: a,
204
- rowData: r,
205
- sortBy: l,
206
- fetchData: d,
207
- debouncedFetchData: u,
208
- onSort: async (o) => {
209
- var n;
210
- console.log("sortState", (n = o[0]) == null ? void 0 : n.id), o.length ? (l.value = {
211
- key: o[0].id.startsWith("_") ? o[0].id : o[0].id.replace(new RegExp("_", "g"), "."),
212
- descending: o[0].desc
213
- }, console.log("sortBy", l.value)) : l.value = g, await u();
214
- },
215
- onSearch: () => {
216
- u({ pageIndex: 0, pageSize: a.value.pageSize });
217
- }
218
- };
219
- }
220
- export {
221
- Y as _,
222
- Z as u
223
- };