@feedmepos/mf-connect 0.0.16-beta.1 → 0.0.16-beta.11

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 (95) hide show
  1. package/dist/{Analytic-C-zZmF5N.js → Analytic-Gq7PoNer.js} +368 -365
  2. package/dist/App-Cikl5jnp.js +177 -0
  3. package/dist/Broadcast-DU3JnBwZ.js +223 -0
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-VWLBlxy1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0I8IZIR.js} +20 -20
  5. package/dist/Card-hIeQ5XUH.js +825 -0
  6. package/dist/Collections-B1SC1rr7.js +453 -0
  7. package/dist/Credit-BgwI8DR3.js +216 -0
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bz6TSmbW.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D9VR3P2d.js} +1026 -1022
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-AhWnHG02.js → EffectSheet.vue_vue_type_style_index_0_lang-DPgu45MD.js} +29 -29
  10. package/dist/Experience-C2Q-zqV6.js +221 -0
  11. package/dist/Game-DU2pZDGk.js +255 -0
  12. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +144 -0
  13. package/dist/JsonViewer-v8_C7l5N.js +87 -0
  14. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DykNOOFD.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js} +1 -1
  15. package/dist/{MainLayout-D0AoA1tk.js → MainLayout-B1aJoR95.js} +2 -2
  16. package/dist/Marketing-DWiTQp9I.js +316 -0
  17. package/dist/Member-BEXKBFry.js +69 -0
  18. package/dist/MemberList-DzMdajIf.js +1733 -0
  19. package/dist/MemberOverview-wL_ailso.js +58 -0
  20. package/dist/{MemberTransactions-CTAx5jIV.js → MemberTransactions-Bciankuu.js} +1 -1
  21. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C-BtHxSc.js → MessageInput.vue_vue_type_script_setup_true_lang-DH25Hfk3.js} +46 -46
  22. package/dist/Mission-KzwRlaA5.js +259 -0
  23. package/dist/Point-CSKvZXHc.js +222 -0
  24. package/dist/Promotion-IiwPhx8p.js +221 -0
  25. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CrpJySSp.js → RuleGroup.vue_vue_type_script_setup_true_lang-4zIO3oCr.js} +545 -544
  26. package/dist/Segment-2Q0PonBb.js +447 -0
  27. package/dist/{Setting-Zrj5P_4m.js → Setting-Df5vVRt4.js} +600 -598
  28. package/dist/Store-C0WXCKs6.js +1503 -0
  29. package/dist/StoreRewards-eSSIO0nk.js +401 -0
  30. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DS4APaHw.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BjnCRKGX.js} +106 -108
  31. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-ZYjWlDJ1.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-b0xTcoEp.js} +1 -1
  32. package/dist/{Tier-DVWJyQ9S.js → Tier-v-1FkRU-.js} +464 -449
  33. package/dist/{Title-B5kX64vs.js → Title-CQ2JWqBW.js} +315 -299
  34. package/dist/Transaction-0OouN_6s.js +39 -0
  35. package/dist/Voucher-CL0cgogx.js +488 -0
  36. package/dist/_commonjsHelpers-BkfeUUK-.js +28 -0
  37. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  38. package/dist/app-Bd19eW7X.js +5381 -0
  39. package/dist/app-CfS25Z66.js +34797 -0
  40. package/dist/app-wDQR6dpb.js +39 -0
  41. package/dist/app.js +5 -3
  42. package/dist/business-dQh3AEot.js +78 -0
  43. package/dist/{campaign-BZJuknWK.js → campaign-BOl8AgKA.js} +12 -12
  44. package/dist/{collection.fn-DoCkZ6z4.js → collection.fn-B_YsXmrP.js} +2 -2
  45. package/dist/dto-B8NfyVPG.js +1169 -0
  46. package/dist/{effect-B8kmnKvY.js → effect-C2jCStXO.js} +1 -1
  47. package/dist/{export-Dm6LYnWo.js → export-BtZc3Yzh.js} +3 -3
  48. package/dist/{helper-DR4XK3nv.js → helper-8oGsrM56.js} +1 -1
  49. package/dist/{index-DcUrk07Q.js → index-6FkKY3q0.js} +3 -3
  50. package/dist/{index-Bu4_26qI.js → index-C7oeXRUl.js} +1 -1
  51. package/dist/{index-CuL5-ORK.js → index-CZKYIefW.js} +6 -7
  52. package/dist/{index-yxJMhfxj.js → index-C_0IFnwi.js} +5 -5
  53. package/dist/{index-BryrRq8O.js → index-DCixRRvz.js} +36 -30
  54. package/dist/{index-CkiYkbXb.js → index-DFgt4-VW.js} +1 -1
  55. package/dist/{index-CWf0mh3a.js → index-DYDhH9bi.js} +177 -168
  56. package/dist/{index-boor8e80.js → index-Di-kWSmf.js} +3 -3
  57. package/dist/{app-DkI7dYRN.js → index-Dn0jdj0o.js} +9665 -13024
  58. package/dist/index-DwKqFNF6.js +3 -0
  59. package/dist/{index-BobRgQrE.js → index-HoacsZDk.js} +2 -2
  60. package/dist/{index-BxkxVtgm.js → index-UTQHDUdW.js} +1 -1
  61. package/dist/{loading-BzV5acUX.js → loading-D_AN6p24.js} +6807 -6805
  62. package/dist/{lodash-mg4435Qq.js → lodash-B5I3zXaY.js} +1 -1
  63. package/dist/{membership-CqbsLHqx.js → membership-Ccrx9R6r.js} +3 -3
  64. package/dist/{money-DA_gtp3q.js → money-waD-f-Zz.js} +1 -1
  65. package/dist/{number-C388eyOu.js → number-CwTGGsh9.js} +1 -1
  66. package/dist/{rule-Clmr5y4j.js → rule-DJ07h3Gh.js} +2 -2
  67. package/dist/{rule-builder-BgqNbM-P.js → rule-builder-DJ-acvVD.js} +1 -1
  68. package/dist/style.css +1 -1
  69. package/dist/template-clxvNnbF.js +190 -0
  70. package/dist/{usePagination-o5fgsZwU.js → usePagination-BeF5K3M7.js} +86 -86
  71. package/dist/vue-i18n-BxwiXSkp.js +2365 -0
  72. package/dist/{xlsx-BRdh9e2p.js → xlsx-BB366cdN.js} +1945 -1945
  73. package/package.json +9 -5
  74. package/dist/Broadcast-X69Mtv3b.js +0 -216
  75. package/dist/Card-D0X3v1UF.js +0 -822
  76. package/dist/Collections-umR6Ehqf.js +0 -452
  77. package/dist/Credit-C1EWF7R0.js +0 -214
  78. package/dist/Experience-CqL8wyPm.js +0 -211
  79. package/dist/Game--kYe64EV.js +0 -250
  80. package/dist/ImageInput.vue_vue_type_script_setup_true_lang-BjOJ3XSL.js +0 -144
  81. package/dist/Marketing-CTCQ5ZmZ.js +0 -308
  82. package/dist/Member-DCduX7zP.js +0 -91
  83. package/dist/MemberList-B0EkXZJu.js +0 -1729
  84. package/dist/MemberOverview-C2n9oJZh.js +0 -58
  85. package/dist/Mission-CVr9rS_D.js +0 -248
  86. package/dist/Point-BnZ6M74y.js +0 -220
  87. package/dist/Promotion-B0PUve5S.js +0 -218
  88. package/dist/Segment-B-XpkyM5.js +0 -445
  89. package/dist/Store-B2gywCt2.js +0 -1503
  90. package/dist/StoreRewards-D8410Q_-.js +0 -434
  91. package/dist/Transaction-CZBO4v4d.js +0 -36
  92. package/dist/Voucher-se-4JF9B.js +0 -481
  93. package/dist/app-B2ImSO3V.js +0 -53382
  94. package/dist/dto-BWpvRpK2.js +0 -1151
  95. package/dist/template-Dwp7heBA.js +0 -190
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@feedmepos/mf-connect",
3
- "version": "0.0.16-beta.1",
3
+ "version": "0.0.16-beta.11",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -16,9 +16,10 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "@feedmepos/core": "^2.10.4",
19
+ "@feedmepos/custom-attributes": "0.0.0-rc.3",
19
20
  "@feedmepos/menu": "1.0.34",
20
- "@feedmepos/mf-common": "1.8.37",
21
- "@feedmepos/mf-core-ui": "1.0.13",
21
+ "@feedmepos/mf-common": "1.15.0-beta.6",
22
+ "@feedmepos/mf-core-ui": "1.0.15",
22
23
  "@feedmepos/ui-library": "1.3.5",
23
24
  "@types/qrcode": "^1.5.5",
24
25
  "axios": "^1.7.2",
@@ -30,6 +31,7 @@
30
31
  "email-addresses": "^5.0.0",
31
32
  "fabric": "^6.4.2",
32
33
  "firebase": "^10.12.2",
34
+ "i18next": "^24.2.1",
33
35
  "lodash": "^4.17.21",
34
36
  "moment": "^2.30.1",
35
37
  "pinia": "^2.1.7",
@@ -38,11 +40,13 @@
38
40
  "unplugin-auto-import": "^0.17.6",
39
41
  "uuid": "^10.0.0",
40
42
  "vite-plugin-vue-devtools": "^7.6.4",
41
- "vue": "^3.4.29",
43
+ "vue": "^3.5.13",
44
+ "vue-i18n": "10.0.5",
42
45
  "vue-router": "^4.3.3",
43
46
  "vue3-lottie": "^3.3.0",
44
47
  "xlsx": "^0.18.5",
45
- "zod": "3.22.4"
48
+ "zod": "3.22.4",
49
+ "zod-i18n-map": "^2.27.0"
46
50
  },
47
51
  "devDependencies": {
48
52
  "@types/lodash": "^4.17.5",
@@ -1,216 +0,0 @@
1
- import { defineComponent as P, ref as g, computed as U, onMounted as M, resolveComponent as l, openBlock as i, createElementBlock as f, Fragment as _, createVNode as r, unref as a, createElementVNode as s, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as E, toDisplayString as b, createCommentVNode as H, h as q } from "vue";
2
- import { _ as z } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as G, components as J } from "@feedmepos/ui-library";
4
- import { u as Q, p as W } from "./loading-BzV5acUX.js";
5
- import { a as X } from "./app-DkI7dYRN.js";
6
- import { u as Y } from "./campaign-BZJuknWK.js";
7
- import { g as F, b as k } from "./dto-BWpvRpK2.js";
8
- import { _ as Z } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
9
- import { _ as ee } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bz6TSmbW.js";
10
- import { u as te } from "./template-Dwp7heBA.js";
11
- import { c as y } from "./index-BxkxVtgm.js";
12
- const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ne = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "space-y-4" }, ce = { class: "fm-typo-en-body-lg-600" }, me = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { key: 0 }, ue = /* @__PURE__ */ s("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), pe = [
13
- ue
14
- ], fe = /* @__PURE__ */ s("img", {
15
- src: z,
16
- class: "aspect-square w-[150px]"
17
- }, null, -1), ye = /* @__PURE__ */ s("div", { class: "flex flex-col gap-16 text-center" }, [
18
- /* @__PURE__ */ s("div", { class: "fm-typo-en-title-sm-800" }, " Create your broadcast campaign "),
19
- /* @__PURE__ */ s("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Broadcasting allows you to send text messages to all your customers, informing them about new deals, events, or important updates. ")
20
- ], -1), Ae = /* @__PURE__ */ P({
21
- __name: "Broadcast",
22
- setup(ge) {
23
- const A = {
24
- label: "Create campaign",
25
- value: "create",
26
- isPrimary: !0,
27
- prependIcon: "add"
28
- }, V = te("BROADCAST", G()), R = X(), c = Y(), { global: D, minor: C } = Q, L = g((/* @__PURE__ */ new Date()).toISOString()), n = g({
29
- searchKey: "",
30
- location: null
31
- }), u = U(
32
- () => c.campaigns.broadcast.filter(
33
- (e) => !n.value.location || !e.targetLocation || e.targetLocation.includes(n.value.location)
34
- )
35
- ), T = [
36
- {
37
- header: "Broadcast title",
38
- accessorFn: (e) => e.name
39
- },
40
- {
41
- header: "Status",
42
- cell(e) {
43
- return F(e.row.original);
44
- }
45
- },
46
- {
47
- header: "Summary",
48
- accessorFn: (e) => k(e)
49
- },
50
- {
51
- header: "Message sent",
52
- accessorFn: (e) => e.currentReceive ?? "N/A"
53
- },
54
- {
55
- header: "Actions",
56
- cell(e) {
57
- return q(J.FmButton, {
58
- variant: "tertiary",
59
- icon: "delete",
60
- iconColor: "neutral-gray-400",
61
- onClick: (o) => {
62
- o.stopPropagation(), x(e.row.original);
63
- }
64
- });
65
- }
66
- }
67
- ], v = g();
68
- async function x(e) {
69
- await W.remove(`Are you sure you want to remove ${e.name}?`) && await C(
70
- async () => {
71
- await y.delete(e._id), await c.read("BROADCAST");
72
- },
73
- {
74
- message: `Removing ${e.name}`,
75
- successMessage: `Removed ${e.name} successfully`
76
- }
77
- );
78
- }
79
- async function p(e) {
80
- L.value = (/* @__PURE__ */ new Date()).toISOString(), e ? await o() : V.open(async (m) => {
81
- await o(m);
82
- });
83
- async function o(m) {
84
- var d;
85
- (d = v.value) == null || d.showSheet(
86
- !0,
87
- "BROADCAST",
88
- e ? await y.readById(e._id) : void 0,
89
- m
90
- );
91
- }
92
- }
93
- async function $(e) {
94
- await C(
95
- async () => {
96
- e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await c.read("BROADCAST");
97
- },
98
- {
99
- message: `${e.campaign._id ? "Updating" : "Creating"} broadcast`,
100
- successMessage: `Broadcast ${e.campaign._id ? "updated" : "created"} successfully`
101
- }
102
- );
103
- }
104
- return M(async () => {
105
- await D(async () => {
106
- await c.read("BROADCAST");
107
- });
108
- }), (e, o) => {
109
- const m = l("FmPageHead"), d = l("FmSearch"), K = l("FmTable"), S = l("FmButton"), I = l("FmListItem"), O = l("FmList"), N = l("FmCard");
110
- return i(), f(_, null, [
111
- r(m, {
112
- title: "Broadcast",
113
- actions: a(u).length > 0 ? [A] : [],
114
- "onClick:action": o[0] || (o[0] = () => p())
115
- }, null, 8, ["actions"]),
116
- s("div", oe, [
117
- r(d, {
118
- modelValue: a(n).searchKey,
119
- "onUpdate:modelValue": o[1] || (o[1] = (t) => a(n).searchKey = t),
120
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
121
- placeholder: "search",
122
- collapsible: ""
123
- }, null, 8, ["modelValue"]),
124
- a(c).campaigns.broadcast && a(c).campaigns.broadcast.length > 0 ? (i(), f(_, { key: 0 }, [
125
- s("div", ae, [
126
- s("div", se, [
127
- r(Z, {
128
- modelValue: a(n).location,
129
- "onUpdate:modelValue": o[2] || (o[2] = (t) => a(n).location = t),
130
- label: "Location: ",
131
- "show-item-label": !0,
132
- icon: "storefront",
133
- placement: "bottom-start",
134
- items: a(R).locationItems
135
- }, null, 8, ["modelValue", "items"])
136
- ]),
137
- r(d, {
138
- modelValue: a(n).searchKey,
139
- "onUpdate:modelValue": o[3] || (o[3] = (t) => a(n).searchKey = t),
140
- class: "xs:hidden",
141
- placeholder: "search",
142
- collapsible: ""
143
- }, null, 8, ["modelValue"])
144
- ]),
145
- r(K, {
146
- class: "xs:hidden",
147
- "row-data": a(u),
148
- "column-defs": T,
149
- "search-value": a(n).searchKey,
150
- "column-filter": [],
151
- onRowClick: o[4] || (o[4] = (t) => p(t.original)),
152
- "hide-footer": !0
153
- }, null, 8, ["row-data", "search-value"]),
154
- r(O, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
155
- default: h(() => [
156
- (i(!0), f(_, null, j(a(u).filter(
157
- (t) => t.name.toLowerCase().includes(a(n).searchKey.toLowerCase())
158
- ), (t) => (i(), w(I, {
159
- key: t._id.toString(),
160
- onClick: (B) => p(t),
161
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
162
- }, {
163
- default: h(() => [
164
- s("div", ne, [
165
- s("div", re, [
166
- (i(), w(E(a(F)(t)))),
167
- s("div", le, b(t.currentReceive ?? 0) + " sent ", 1)
168
- ]),
169
- s("div", ie, [
170
- s("div", ce, b(t.name), 1),
171
- s("div", me, b(a(k)(t)), 1)
172
- ])
173
- ]),
174
- r(S, {
175
- icon: "delete",
176
- "icon-color": "neutral-gray-400",
177
- variant: "tertiary",
178
- onClick: (B) => (B.stopPropagation(), x(t))
179
- }, null, 8, ["onClick"])
180
- ]),
181
- _: 2
182
- }, 1032, ["onClick"]))), 128))
183
- ]),
184
- _: 1
185
- }),
186
- a(u).length == 0 ? (i(), f("div", de, pe)) : H("", !0)
187
- ], 64)) : (i(), w(N, {
188
- key: 1,
189
- variant: "outlined",
190
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
191
- }, {
192
- default: h(() => [
193
- fe,
194
- ye,
195
- r(S, {
196
- variant: "primary",
197
- label: "Create broadcast campaign",
198
- icon: "add",
199
- onClick: o[5] || (o[5] = (t) => p())
200
- })
201
- ]),
202
- _: 1
203
- })),
204
- r(ee, {
205
- ref_key: "sheetRef",
206
- ref: v,
207
- "onSubmit:modelValue": $
208
- }, null, 512)
209
- ])
210
- ], 64);
211
- };
212
- }
213
- });
214
- export {
215
- Ae as default
216
- };