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

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 (76) hide show
  1. package/dist/{Analytic-Gq7PoNer.js → Analytic-B8FGU0B7.js} +32 -32
  2. package/dist/App-BXAJ1Z_T.js +6260 -0
  3. package/dist/{Broadcast-DU3JnBwZ.js → Broadcast-DvmjAtxH.js} +8 -8
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D0I8IZIR.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Dvp3mOEx.js} +8 -8
  5. package/dist/Card-DblSxqRr.js +825 -0
  6. package/dist/{Collections-B1SC1rr7.js → Collections-C4KRnnWW.js} +4 -4
  7. package/dist/{Credit-BgwI8DR3.js → Credit-C5MbDbWr.js} +8 -8
  8. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-D9VR3P2d.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-2MKUx_As.js} +718 -718
  9. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DPgu45MD.js → EffectSheet.vue_vue_type_style_index_0_lang-CCsxDg45.js} +8 -8
  10. package/dist/{Experience-C2Q-zqV6.js → Experience-CmDLg17p.js} +8 -8
  11. package/dist/{Game-DU2pZDGk.js → Game-5zvjlfuj.js} +8 -8
  12. package/dist/{Marketing-DWiTQp9I.js → Marketing-BVpimsBU.js} +5 -5
  13. package/dist/Member-BkOqtn9n.js +69 -0
  14. package/dist/{MemberList-DzMdajIf.js → MemberList-3IvxRInu.js} +105 -105
  15. package/dist/{MemberTransactions-Bciankuu.js → MemberTransactions-DRpV77Pn.js} +1 -1
  16. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DH25Hfk3.js → MessageInput.vue_vue_type_script_setup_true_lang-CBvpHaAl.js} +2 -2
  17. package/dist/{Mission-KzwRlaA5.js → Mission-9fJLMJKS.js} +8 -8
  18. package/dist/{Point-CSKvZXHc.js → Point-7O6IdhWH.js} +8 -8
  19. package/dist/Promotion-XqpFw0IZ.js +247 -0
  20. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-4zIO3oCr.js → RuleGroup.vue_vue_type_script_setup_true_lang-1Fko0V0J.js} +14 -14
  21. package/dist/{Segment-2Q0PonBb.js → Segment-DMaHcJT_.js} +8 -8
  22. package/dist/{Setting-Df5vVRt4.js → Setting-DQh2aqfD.js} +8 -8
  23. package/dist/{Store-C0WXCKs6.js → Store-WvEUlY9N.js} +393 -393
  24. package/dist/{StoreRewards-eSSIO0nk.js → StoreRewards-D50uR2b9.js} +11 -11
  25. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BjnCRKGX.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Cm0lHUkP.js} +6 -6
  26. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-b0xTcoEp.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BnjVkkS1.js} +1 -1
  27. package/dist/{Tier-v-1FkRU-.js → Tier-CqNKi52t.js} +14 -14
  28. package/dist/{Title-CQ2JWqBW.js → Title-CzBp5ig0.js} +14 -14
  29. package/dist/{Transaction-0OouN_6s.js → Transaction-EKIwyavj.js} +2 -2
  30. package/dist/{Voucher-CL0cgogx.js → Voucher-Dhpzn8gs.js} +11 -11
  31. package/dist/{app-Bd19eW7X.js → app-3-6LVz11.js} +27 -24
  32. package/dist/app-DM-4iSsh.js +53428 -0
  33. package/dist/app.js +1 -1
  34. package/dist/{business-dQh3AEot.js → business-Wk7ElvEz.js} +1 -1
  35. package/dist/{campaign-BOl8AgKA.js → campaign-tHUDB7cm.js} +2 -2
  36. package/dist/{collection.fn-B_YsXmrP.js → collection.fn-DS11Xpbu.js} +2 -2
  37. package/dist/dto-B8X9qnLh.js +1169 -0
  38. package/dist/{effect-C2jCStXO.js → effect-BH3AL4S6.js} +9 -9
  39. package/dist/{export-BtZc3Yzh.js → export-DAAmj_h9.js} +3 -3
  40. package/dist/{helper-8oGsrM56.js → helper-BSKllptD.js} +1 -1
  41. package/dist/index-5FIs0G8O.js +29193 -0
  42. package/dist/{index-HoacsZDk.js → index-B0Pw9YQd.js} +46 -39
  43. package/dist/{index-C_0IFnwi.js → index-BH-mOC5-.js} +5 -5
  44. package/dist/{index-C7oeXRUl.js → index-BO94KhQO.js} +1 -1
  45. package/dist/{index-DCixRRvz.js → index-BgIWS3vT.js} +5 -5
  46. package/dist/{index-CZKYIefW.js → index-CIBWHBM-.js} +2 -2
  47. package/dist/{index-Di-kWSmf.js → index-CPxCpRFW.js} +3 -3
  48. package/dist/{index-DYDhH9bi.js → index-CoYSYku2.js} +1 -1
  49. package/dist/{index-DwKqFNF6.js → index-DOFTUTiA.js} +1 -1
  50. package/dist/{index-DFgt4-VW.js → index-DmxAa1MA.js} +1 -1
  51. package/dist/{index-UTQHDUdW.js → index-Z7d84hDW.js} +7 -2
  52. package/dist/{index-6FkKY3q0.js → index-vIwngIP9.js} +1 -1
  53. package/dist/index.esm2017-jX1Q0DsS.js +3069 -0
  54. package/dist/loading-DeWfPgai.js +29843 -0
  55. package/dist/{membership-Ccrx9R6r.js → membership-oIubaesw.js} +3 -3
  56. package/dist/money-D-3GphEZ.js +15 -0
  57. package/dist/number-D_Fi0beD.js +12 -0
  58. package/dist/{rule-DJ07h3Gh.js → rule-C37bqQrm.js} +314 -343
  59. package/dist/{rule-builder-DJ-acvVD.js → rule-builder-DPQJ8Tbv.js} +1 -1
  60. package/dist/style.css +1 -1
  61. package/dist/{template-clxvNnbF.js → template-CIStnXhd.js} +4 -4
  62. package/dist/tslib.es6-BCqqvLQ_.js +44 -0
  63. package/dist/vue-i18n-jf-SfrQy.js +2365 -0
  64. package/dist/{xlsx-BB366cdN.js → xlsx-C91dwH9k.js} +1903 -1903
  65. package/package.json +12 -12
  66. package/dist/App-Cikl5jnp.js +0 -177
  67. package/dist/Card-hIeQ5XUH.js +0 -825
  68. package/dist/Member-BEXKBFry.js +0 -69
  69. package/dist/Promotion-IiwPhx8p.js +0 -221
  70. package/dist/app-CfS25Z66.js +0 -34797
  71. package/dist/dto-B8NfyVPG.js +0 -1169
  72. package/dist/index-Dn0jdj0o.js +0 -28058
  73. package/dist/loading-D_AN6p24.js +0 -32697
  74. package/dist/money-waD-f-Zz.js +0 -15
  75. package/dist/number-CwTGGsh9.js +0 -12
  76. package/dist/vue-i18n-BxwiXSkp.js +0 -2365
@@ -1,69 +0,0 @@
1
- import { defineComponent as f, computed as T, ref as p, watch as k, resolveComponent as m, openBlock as d, createElementBlock as B, Fragment as E, createVNode as _, unref as n, createElementVNode as y, createBlock as A, createCommentVNode as L } from "vue";
2
- import "./index-DwKqFNF6.js";
3
- import { u as M } from "./vue-i18n-BxwiXSkp.js";
4
- import { useRouter as N } from "vue-router";
5
- import { m as Y } from "./index-6FkKY3q0.js";
6
- import { R as u } from "./app-Bd19eW7X.js";
7
- const w = { class: "px-24 flex flex-col gap-y-16 pb-24" }, x = /* @__PURE__ */ f({
8
- __name: "Member",
9
- setup(C) {
10
- const e = N(), { t: s } = M(), o = [
11
- {
12
- label: s("connect.loyalty.member.tabs.member_list"),
13
- value: u["$connect-LOYALTY_MEMBER_LIST"],
14
- actions: []
15
- }
16
- ], c = T(() => {
17
- var a;
18
- return e.currentRoute.value.name != u["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? {
19
- title: r.value.label,
20
- actions: r.value.actions,
21
- description: void 0
22
- } : (r.value = o[1], {
23
- backButton: !0,
24
- title: s("connect.loyalty.member.title"),
25
- actions: [],
26
- description: (a = i.value) == null ? void 0 : a.name,
27
- onBackButton: async () => {
28
- await e.push({ name: u["$connect-LOYALTY_MEMBER_LIST"] });
29
- }
30
- });
31
- }), r = p(
32
- o.find((t) => t.value === e.currentRoute.value.name) ?? o[0]
33
- ), i = p();
34
- async function b(t) {
35
- await e.push({ name: t });
36
- }
37
- return k(
38
- () => e.currentRoute.value.name,
39
- async (t) => {
40
- r.value = o.find((l) => l.value === t) ?? o[0];
41
- const a = e.currentRoute.value.params.id;
42
- a && (i.value = await Y.readById(a)), await e.push({ name: t });
43
- }
44
- ), (t, a) => {
45
- const l = m("FmPageHead"), v = m("FmTabs"), R = m("RouterView");
46
- return d(), B(E, null, [
47
- _(l, {
48
- actions: n(c).actions,
49
- title: n(c).title,
50
- description: n(c).description,
51
- "back-button": n(c).backButton,
52
- "onClick:back": n(c).onBackButton
53
- }, null, 8, ["actions", "title", "description", "back-button", "onClick:back"]),
54
- y("div", w, [
55
- n(e).currentRoute.value.name != n(u)["$connect-LOYALTY_MEMBER_TRANSACTIONS"] ? (d(), A(v, {
56
- key: 0,
57
- "model-value": n(r).value,
58
- items: o,
59
- "onUpdate:modelValue": b
60
- }, null, 8, ["model-value"])) : L("", !0),
61
- _(R)
62
- ])
63
- ], 64);
64
- };
65
- }
66
- });
67
- export {
68
- x as default
69
- };
@@ -1,221 +0,0 @@
1
- import { defineComponent as j, ref as O, computed as E, h as A, onMounted as H, resolveComponent as r, openBlock as m, createElementBlock as _, Fragment as h, createVNode as l, unref as a, createElementVNode as s, withCtx as v, renderList as q, createBlock as w, resolveDynamicComponent as z, toDisplayString as y } from "vue";
2
- import { _ as G } from "./campaign-CpzFl8Vr.js";
3
- import { useDialog as J, components as Q } from "@feedmepos/ui-library";
4
- import { c as P, p as W, u as X } from "./loading-D_AN6p24.js";
5
- import { u as Y } from "./business-dQh3AEot.js";
6
- import { u as Z } from "./campaign-BOl8AgKA.js";
7
- import { u as ee } from "./vue-i18n-BxwiXSkp.js";
8
- import { g as V } from "./dto-B8NfyVPG.js";
9
- import { e as I } from "./effect-C2jCStXO.js";
10
- import { _ as oe } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
11
- import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-D9VR3P2d.js";
12
- import { u as ne } from "./template-clxvNnbF.js";
13
- import { c as g } from "./index-UTQHDUdW.js";
14
- const ae = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, ie = { class: "flex gap-8 overflow-x-auto" }, le = { class: "space-y-8" }, re = { class: "flex w-full gap-4 items-center" }, ce = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "flex flex-col gap-16 text-center" }, ue = { class: "fm-typo-en-title-sm-800" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = /* @__PURE__ */ j({
15
- __name: "Promotion",
16
- setup(ye) {
17
- const { t: n } = ee(), L = {
18
- label: n("connect.promotion.createCampaign"),
19
- value: "create",
20
- isPrimary: !0,
21
- prependIcon: "add"
22
- }, T = ne("PROMOTION", J()), x = Y(), u = Z(), { global: B, minor: b } = X, i = O({
23
- searchKey: "",
24
- location: null
25
- }), c = E(
26
- () => u.campaigns.promotion.filter(
27
- (e) => !i.value.location || !e.targetLocation || e.targetLocation.includes(i.value.location)
28
- )
29
- ), R = [
30
- {
31
- header: n("connect.promotion.promotionTitle"),
32
- accessorFn: (e) => e.name
33
- },
34
- {
35
- header: n("connect.promotion.status"),
36
- cell(e) {
37
- return V(e.row.original);
38
- }
39
- },
40
- {
41
- header: n("connect.promotion.type"),
42
- accessorFn: (e) => `${P.title(e.effect.options.target)} promotion`
43
- },
44
- {
45
- header: n("connect.promotion.summary"),
46
- accessorFn: (e) => I(e.effect)
47
- },
48
- {
49
- header: n("connect.promotion.actions"),
50
- cell(e) {
51
- return A(Q.FmButton, {
52
- variant: "tertiary",
53
- icon: "delete",
54
- iconColor: "neutral-gray-400",
55
- onClick: (o) => {
56
- o.stopPropagation(), F(e.row.original);
57
- }
58
- });
59
- }
60
- }
61
- ], C = O();
62
- async function F(e) {
63
- await W.remove(n("promotion.confirmRemove", { name: e.name })) && await b(
64
- async () => {
65
- await g.delete(e._id), await u.read("PROMOTION");
66
- },
67
- {
68
- message: n("promotion.removing", { name: e.name }),
69
- successMessage: n("promotion.removedSuccessfully", { name: e.name })
70
- }
71
- );
72
- }
73
- async function f(e) {
74
- e ? await o() : T.open(async (p) => {
75
- await o(p);
76
- });
77
- async function o(p) {
78
- var d;
79
- (d = C.value) == null || d.showSheet(
80
- !0,
81
- "PROMOTION",
82
- e ? await g.readById(e._id) : void 0,
83
- p
84
- );
85
- }
86
- }
87
- async function M(e) {
88
- await b(
89
- async () => {
90
- e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await u.read("PROMOTION");
91
- },
92
- {
93
- message: n(e.campaign._id ? "promotion.updating" : "promotion.creating"),
94
- successMessage: n(
95
- e.campaign._id ? "promotion.updatedSuccessfully" : "promotion.createdSuccessfully"
96
- )
97
- }
98
- );
99
- }
100
- return H(async () => {
101
- await B(async () => {
102
- await x.readLocations(), await u.read("PROMOTION");
103
- });
104
- }), (e, o) => {
105
- const p = r("FmPageHead"), d = r("FmSearch"), K = r("FmTable"), N = r("FmChip"), k = r("FmButton"), $ = r("FmListItem"), D = r("FmList"), U = r("FmCard");
106
- return m(), _(h, null, [
107
- l(p, {
108
- title: a(n)("connect.promotion.title"),
109
- actions: a(c).length > 0 ? [L] : [],
110
- "onClick:action": o[0] || (o[0] = (t) => f())
111
- }, null, 8, ["title", "actions"]),
112
- s("div", ae, [
113
- l(d, {
114
- modelValue: i.value.searchKey,
115
- "onUpdate:modelValue": o[1] || (o[1] = (t) => i.value.searchKey = t),
116
- class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
117
- placeholder: a(n)("connect.promotion.search"),
118
- collapsible: ""
119
- }, null, 8, ["modelValue", "placeholder"]),
120
- a(c) && a(c).length > 0 ? (m(), _(h, { key: 0 }, [
121
- s("div", se, [
122
- s("div", ie, [
123
- l(oe, {
124
- modelValue: i.value.location,
125
- "onUpdate:modelValue": o[2] || (o[2] = (t) => i.value.location = t),
126
- label: a(n)("connect.promotion.location"),
127
- "show-item-label": !0,
128
- icon: "storefront",
129
- placement: "bottom-start",
130
- items: a(x).locationItems
131
- }, null, 8, ["modelValue", "label", "items"])
132
- ]),
133
- l(d, {
134
- modelValue: i.value.searchKey,
135
- "onUpdate:modelValue": o[3] || (o[3] = (t) => i.value.searchKey = t),
136
- class: "xs:hidden",
137
- placeholder: "search",
138
- collapsible: ""
139
- }, null, 8, ["modelValue"])
140
- ]),
141
- l(K, {
142
- class: "xs:hidden",
143
- "row-data": a(c),
144
- "column-defs": R,
145
- "search-value": i.value.searchKey,
146
- "column-filter": [],
147
- onRowClick: o[4] || (o[4] = (t) => f(t.original)),
148
- "hide-footer": a(c).length < 10
149
- }, null, 8, ["row-data", "search-value", "hide-footer"]),
150
- l(D, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
151
- default: v(() => [
152
- (m(!0), _(h, null, q(a(c).filter(
153
- (t) => t.name.toLowerCase().includes(i.value.searchKey.toLowerCase())
154
- ), (t) => (m(), w($, {
155
- key: t._id.toString(),
156
- onClick: (S) => f(t),
157
- class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
158
- }, {
159
- default: v(() => [
160
- s("div", le, [
161
- s("div", re, [
162
- (m(), w(z(a(V)(t)))),
163
- l(N, {
164
- class: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
165
- compact: !0,
166
- label: `${a(P).title(t.effect.options.target)} promotion`
167
- }, null, 8, ["label"])
168
- ]),
169
- s("div", ce, [
170
- s("div", me, y(t.name), 1),
171
- s("div", pe, y(a(I)(t.effect)), 1)
172
- ])
173
- ]),
174
- l(k, {
175
- icon: "delete",
176
- "icon-color": "neutral-gray-400",
177
- variant: "tertiary",
178
- onClick: (S) => (S.stopPropagation(), F(t))
179
- }, null, 8, ["onClick"])
180
- ]),
181
- _: 2
182
- }, 1032, ["onClick"]))), 128))
183
- ]),
184
- _: 1
185
- })
186
- ], 64)) : (m(), w(U, {
187
- key: 1,
188
- variant: "outlined",
189
- class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
190
- }, {
191
- default: v(() => [
192
- o[6] || (o[6] = s("img", {
193
- src: G,
194
- class: "aspect-square w-[150px]"
195
- }, null, -1)),
196
- s("div", de, [
197
- s("div", ue, y(a(n)("connect.promotion.createPromotionCampaign")), 1),
198
- s("div", fe, y(a(n)("connect.promotion.description")), 1)
199
- ]),
200
- l(k, {
201
- variant: "primary",
202
- label: a(n)("connect.promotion.createPromotionCampaign"),
203
- icon: "add",
204
- onClick: o[5] || (o[5] = (t) => f())
205
- }, null, 8, ["label"])
206
- ]),
207
- _: 1
208
- }))
209
- ]),
210
- l(te, {
211
- ref_key: "sheetRef",
212
- ref: C,
213
- "onSubmit:modelValue": M
214
- }, null, 512)
215
- ], 64);
216
- };
217
- }
218
- });
219
- export {
220
- Ve as default
221
- };