@feedmepos/mf-connect 0.1.0-prod → 0.1.2-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.
- package/dist/{Analytic-D1vIDmhJ.js → Analytic-AqWU_lJy.js} +7 -7
- package/dist/{App-DHrfWG8l.js → App-CRTD0U-N.js} +205 -205
- package/dist/{Broadcast-B2rxZAZi.js → Broadcast-utWSrzP9.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D2a9rcXK.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C5zUv0Zx.js} +8 -8
- package/dist/{Card-Dr6pTTM0.js → Card-x6qnEaIt.js} +57 -58
- package/dist/{Collections-0tbg0MFt.js → Collections-BgbWoLWI.js} +11 -12
- package/dist/{Credit-KbB_7Jq-.js → Credit-CojzmUnh.js} +7 -7
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-we7ADwFk.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-C137bE1q.js} +36 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-VBNyvZCJ.js → EffectSheet.vue_vue_type_style_index_0_lang-8l3Dt_Lo.js} +5 -5
- package/dist/{Experience-C_Q9Iml8.js → Experience-CPjovKWF.js} +7 -7
- package/dist/{Game-BwODw7M6.js → Game-DWcjPfZP.js} +7 -7
- package/dist/{Marketing-QOKTAS_T.js → Marketing-CwoI0pFF.js} +4 -4
- package/dist/{Member-d7RIGRm1.js → Member-oRcVGr20.js} +3 -3
- package/dist/MemberList-ISy05wGZ.js +1040 -0
- package/dist/{MemberTransactions-D-pnlXiP.js → MemberTransactions-CXvhJngX.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-3VS7JnK6.js → MessageInput.vue_vue_type_script_setup_true_lang-Ca1LO__F.js} +2 -2
- package/dist/{Mission-BAKDm4VZ.js → Mission-Y8s5MQIC.js} +7 -7
- package/dist/{Point-Puu0jKz0.js → Point-0Fw3qLIW.js} +7 -7
- package/dist/{Promotion-DRIaUvJi.js → Promotion-vqM23NPX.js} +8 -8
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DTdfYGya.js → RuleGroup.vue_vue_type_script_setup_true_lang-D1eQ3i5D.js} +86 -77
- package/dist/Segment-lgzMRCyd.js +564 -0
- package/dist/{Setting-DLB2ywCp.js → Setting-CFGB53S0.js} +7 -7
- package/dist/Store-fJlew3HJ.js +1533 -0
- package/dist/{StoreRewards-DZfqUeYR.js → StoreRewards-DWq34E4p.js} +10 -10
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-RTfozD01.js → StoreTransactions.vue_vue_type_script_setup_true_lang-nhS5Dhhk.js} +10 -10
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BGI78ycg.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DWlpmE56.js} +1 -1
- package/dist/{Tier-BnQRujpX.js → Tier-DLrOmrnK.js} +13 -13
- package/dist/{Title-BPf1tUFx.js → Title-MHQuel7h.js} +13 -13
- package/dist/{Transaction-ese0oNrz.js → Transaction-CYqMFEzc.js} +1 -1
- package/dist/{Voucher--gtOZQx1.js → Voucher-B0QCX_nG.js} +10 -10
- package/dist/{app-DHE61XdR.js → app-BjOpRVdv.js} +1 -1
- package/dist/{app-Bt59niI-.js → app-SOHUUM08.js} +24 -24
- package/dist/app.js +1 -1
- package/dist/{business-BSo7EPan.js → business-DveMDDHY.js} +1 -1
- package/dist/{campaign-CsOje3Ap.js → campaign-CMb05XLt.js} +2 -2
- package/dist/{collection.fn-BYQfFJOr.js → collection.fn-BjaBPYMU.js} +2 -2
- package/dist/{dto-CfEXSCq6.js → dto-CY7JrHkZ.js} +8 -8
- package/dist/{effect-Bn_ofYS3.js → effect-CxAdSlyD.js} +1 -1
- package/dist/email-addresses-Dtr5OALQ.js +705 -0
- package/dist/{export-CMR243CF.js → export-DuBekrcg.js} +3 -3
- package/dist/{helper-BqOQRtvW.js → helper-DL6hnmtJ.js} +1 -1
- package/dist/{index-CHO4_zsT.js → index-BBBytzpn.js} +1 -1
- package/dist/{index-DbP04yeg.js → index-BMxu_XL-.js} +1 -1
- package/dist/index-BSIUoSG3.js +28997 -0
- package/dist/{index-BaBNmzUb.js → index-BZAlqAaJ.js} +1 -1
- package/dist/{index-D_f2lmK2.js → index-CAQpU5Rv.js} +319 -304
- package/dist/{index-BWnFs-Cb.js → index-CGHNWhkM.js} +5 -5
- package/dist/{index-Boo5np6l.js → index-CgPlJqkX.js} +1 -1
- package/dist/{index-DtPe-TEm.js → index-Cibwzgac.js} +3 -3
- package/dist/{index-DEZsrQ2f.js → index-DISwCnfH.js} +3 -3
- package/dist/{index-CC1GV8OW.js → index-Dx4pkNRc.js} +1 -1
- package/dist/{index-Da142OER.js → index-gcsOy_cD.js} +34 -33
- package/dist/{index-FvlaxwGB.js → index-raYm7Ew2.js} +2 -2
- package/dist/{index.esm2017-ePm--Atp.js → index.esm2017-Bs9CWbrs.js} +1 -1
- package/dist/{loading-KNmEMBUB.js → loading-Dj5bx8fg.js} +4 -4
- package/dist/{membership-DKoVIS1a.js → membership-B2avlZoN.js} +3 -3
- package/dist/{money-CkD3zl5C.js → money-CNSWtAf-.js} +1 -1
- package/dist/{number-BDsGpOXm.js → number-BA58pjU6.js} +1 -1
- package/dist/{rule-CzamI50_.js → rule-BWazFYuZ.js} +179 -177
- package/dist/{rule-builder-DHf6wfaQ.js → rule-builder-RIloDQBn.js} +1 -1
- package/dist/{template-CFAIPoD7.js → template-u01r84LY.js} +4 -4
- package/dist/{xlsx-BDJMaozs.js → usePagination--B6Wt7C1.js} +3246 -3025
- package/package.json +2 -2
- package/dist/MemberList-CK9629ew.js +0 -1737
- package/dist/Segment-DpBxGuuu.js +0 -435
- package/dist/Store-8DO6ITWc.js +0 -1513
- package/dist/index-BLDYTxnc.js +0 -28058
- package/dist/usePagination-JoYaROkV.js +0 -223
|
@@ -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 x, Fragment as P, renderList as E, computed as b, onMounted as L, watch as R, unref as p, createCommentVNode as V, toDisplayString as k } 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 o = g, t = f, r = w(!1);
|
|
12
|
-
return (d, u) => {
|
|
13
|
-
const h = C("FmButton"), y = C("FmMenuItem"), a = C("FmMenu");
|
|
14
|
-
return v(), F(a, {
|
|
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(h, {
|
|
23
|
-
icon: r.value ? "expand_less" : "expand_more",
|
|
24
|
-
label: (n = d.items.find((l) => l.value === t.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), x(P, null, E(d.items, (l) => (v(), F(y, {
|
|
38
|
-
key: l.value,
|
|
39
|
-
label: l.label,
|
|
40
|
-
value: l.value,
|
|
41
|
-
"model-value": l.value === t.value,
|
|
42
|
-
"onUpdate:modelValue": (S) => o("update:modelValue", l.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 = /* @__PURE__ */ i("div", { class: "fm-typo-en-body-lg-600" }, "No data found", -1), W = /* @__PURE__ */ i("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " No data to show at the current moment. ", -1), q = [
|
|
54
|
-
j,
|
|
55
|
-
W
|
|
56
|
-
], G = {
|
|
57
|
-
key: 1,
|
|
58
|
-
class: "basis-72 bg-white flex items-center justify-between px-24 pt-6 border-t border-fm-color-border"
|
|
59
|
-
}, H = { class: "flex gap-24 items-center justify-between xs:hidden xs:invisible" }, J = { class: "flex gap-8 items-center" }, K = /* @__PURE__ */ i("span", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary" }, " Items per page: ", -1), Q = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, X = { class: "flex gap-8 items-center" }, Y = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary xs:mr-auto" }, Z = { class: "flex gap-8" }, ae = /* @__PURE__ */ M({
|
|
60
|
-
__name: "BaseTable",
|
|
61
|
-
props: {
|
|
62
|
-
rowData: {},
|
|
63
|
-
columnDefs: {},
|
|
64
|
-
loading: { type: Boolean, default: !1 },
|
|
65
|
-
rowCount: { default: 0 },
|
|
66
|
-
shrinkAt: { type: [Number, Boolean], default: !1 },
|
|
67
|
-
pageCount: {},
|
|
68
|
-
pageIndex: {},
|
|
69
|
-
hideFooter: { type: Boolean, default: !1 },
|
|
70
|
-
pageSize: {},
|
|
71
|
-
pageSizeOptions: { default: () => [
|
|
72
|
-
{ label: "10", value: 10 },
|
|
73
|
-
{ label: "20", value: 20 },
|
|
74
|
-
{ label: "50", value: 50 }
|
|
75
|
-
] }
|
|
76
|
-
},
|
|
77
|
-
emits: ["sortChange", "rowClick", "pageChange"],
|
|
78
|
-
setup(f, { emit: g }) {
|
|
79
|
-
const o = f, t = g, r = b(() => o.pageIndex + 1), d = b(() => o.pageIndex * o.pageSize), u = b(
|
|
80
|
-
() => Math.min(d.value + o.pageSize, o.rowCount || 0)
|
|
81
|
-
), h = b(() => o.pageIndex > 0), y = b(() => o.pageIndex < o.pageCount - 1), a = (e) => {
|
|
82
|
-
t("sortChange", e);
|
|
83
|
-
}, n = (e) => {
|
|
84
|
-
t("rowClick", e);
|
|
85
|
-
}, l = (e) => {
|
|
86
|
-
t("pageChange", { pageIndex: e, pageSize: o.pageSize });
|
|
87
|
-
}, S = (e) => {
|
|
88
|
-
t("pageChange", { pageIndex: 0, pageSize: e });
|
|
89
|
-
}, z = w(!1);
|
|
90
|
-
return L(() => {
|
|
91
|
-
R(
|
|
92
|
-
() => o.loading,
|
|
93
|
-
(e, s) => {
|
|
94
|
-
s === !0 && e === !1 && (z.value = !0);
|
|
95
|
-
}
|
|
96
|
-
);
|
|
97
|
-
}), (e, s) => {
|
|
98
|
-
const $ = C("FmTable"), _ = C("FmButton");
|
|
99
|
-
return v(), x("div", U, [
|
|
100
|
-
c($, {
|
|
101
|
-
loading: e.loading,
|
|
102
|
-
"row-data": e.rowData,
|
|
103
|
-
"row-count": e.rowCount,
|
|
104
|
-
"column-defs": e.columnDefs,
|
|
105
|
-
"shrink-at": e.shrinkAt,
|
|
106
|
-
"page-count": e.pageCount,
|
|
107
|
-
"page-size": e.pageSize,
|
|
108
|
-
"fetch-fn": void 0,
|
|
109
|
-
"hide-footer": "",
|
|
110
|
-
onSortChange: a,
|
|
111
|
-
onRowClick: n
|
|
112
|
-
}, null, 8, ["loading", "row-data", "row-count", "column-defs", "shrink-at", "page-count", "page-size"]),
|
|
113
|
-
e.rowData.length == 0 && e.loading == !1 && p(z) ? (v(), x("div", O, q)) : V("", !0),
|
|
114
|
-
e.hideFooter ? V("", !0) : (v(), x("div", G, [
|
|
115
|
-
i("div", H, [
|
|
116
|
-
i("div", J, [
|
|
117
|
-
K,
|
|
118
|
-
c(D, {
|
|
119
|
-
items: e.pageSizeOptions,
|
|
120
|
-
value: e.pageSize,
|
|
121
|
-
"onUpdate:modelValue": S
|
|
122
|
-
}, null, 8, ["items", "value"])
|
|
123
|
-
]),
|
|
124
|
-
i("span", Q, k(p(d) + 1) + " - " + k(p(u)) + " of " + k(e.rowCount) + " items ", 1)
|
|
125
|
-
]),
|
|
126
|
-
i("div", X, [
|
|
127
|
-
c(D, {
|
|
128
|
-
items: Array.from(Array(e.pageCount), (m, I) => ({
|
|
129
|
-
label: (I + 1).toString(),
|
|
130
|
-
value: I + 1
|
|
131
|
-
})),
|
|
132
|
-
value: p(r),
|
|
133
|
-
"onUpdate:modelValue": s[0] || (s[0] = (m) => l(m - 1))
|
|
134
|
-
}, null, 8, ["items", "value"]),
|
|
135
|
-
i("span", Y, " of " + k(e.pageCount) + " pages ", 1),
|
|
136
|
-
i("div", Z, [
|
|
137
|
-
c(_, {
|
|
138
|
-
disabled: !p(h),
|
|
139
|
-
icon: "first_page",
|
|
140
|
-
"icon-color": "neutral-black",
|
|
141
|
-
variant: "tertiary",
|
|
142
|
-
onClick: s[1] || (s[1] = (m) => l(0))
|
|
143
|
-
}, null, 8, ["disabled"]),
|
|
144
|
-
c(_, {
|
|
145
|
-
disabled: !p(h),
|
|
146
|
-
icon: "chevron_left",
|
|
147
|
-
"icon-color": "neutral-black",
|
|
148
|
-
variant: "tertiary",
|
|
149
|
-
onClick: s[2] || (s[2] = (m) => l(e.pageIndex - 1))
|
|
150
|
-
}, null, 8, ["disabled"]),
|
|
151
|
-
c(_, {
|
|
152
|
-
disabled: !p(y),
|
|
153
|
-
icon: "chevron_right",
|
|
154
|
-
"icon-color": "neutral-black",
|
|
155
|
-
variant: "tertiary",
|
|
156
|
-
onClick: s[3] || (s[3] = (m) => l(e.pageIndex + 1))
|
|
157
|
-
}, null, 8, ["disabled"]),
|
|
158
|
-
c(_, {
|
|
159
|
-
disabled: !p(y),
|
|
160
|
-
icon: "last_page",
|
|
161
|
-
"icon-color": "neutral-black",
|
|
162
|
-
variant: "tertiary",
|
|
163
|
-
onClick: s[4] || (s[4] = (m) => l(e.pageCount - 1))
|
|
164
|
-
}, null, 8, ["disabled"])
|
|
165
|
-
])
|
|
166
|
-
])
|
|
167
|
-
]))
|
|
168
|
-
]);
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
function ne(f, g = { key: "_id", descending: !0 }) {
|
|
173
|
-
const o = w({
|
|
174
|
-
pageCount: 0,
|
|
175
|
-
searchValue: "",
|
|
176
|
-
pageIndex: 0,
|
|
177
|
-
totalRows: 0,
|
|
178
|
-
isLoading: !1,
|
|
179
|
-
pageSize: 10
|
|
180
|
-
}), t = w(g), r = w([]), d = async (a) => {
|
|
181
|
-
o.value.isLoading = !0, r.value = [];
|
|
182
|
-
try {
|
|
183
|
-
const n = await f({
|
|
184
|
-
limit: a.pageSize || o.value.pageSize,
|
|
185
|
-
skip: a.pageIndex ?? 0,
|
|
186
|
-
sortBy: t.value.key,
|
|
187
|
-
descending: t.value.descending,
|
|
188
|
-
search: o.value.searchValue
|
|
189
|
-
});
|
|
190
|
-
r.value = n.resources, o.value.totalRows = n.meta.totalResources ?? 0, o.value.pageCount = n.meta.totalPages ?? 0, o.value.pageIndex = n.meta.skip ?? 0;
|
|
191
|
-
} catch (n) {
|
|
192
|
-
console.error("Error fetching data:", n);
|
|
193
|
-
} finally {
|
|
194
|
-
o.value.isLoading = !1;
|
|
195
|
-
}
|
|
196
|
-
}, u = A.debounce(async (a) => {
|
|
197
|
-
o.value.pageSize = (a == null ? void 0 : a.pageSize) || o.value.pageSize, await d({
|
|
198
|
-
pageSize: o.value.pageSize,
|
|
199
|
-
pageIndex: (a == null ? void 0 : a.pageIndex) || 0
|
|
200
|
-
});
|
|
201
|
-
}, 200);
|
|
202
|
-
return {
|
|
203
|
-
tableMeta: o,
|
|
204
|
-
rowData: r,
|
|
205
|
-
sortBy: t,
|
|
206
|
-
fetchData: d,
|
|
207
|
-
debouncedFetchData: u,
|
|
208
|
-
onSort: async (a) => {
|
|
209
|
-
var n;
|
|
210
|
-
console.log("sortState", (n = a[0]) == null ? void 0 : n.id), a.length ? (t.value = {
|
|
211
|
-
key: a[0].id.startsWith("_") ? a[0].id : a[0].id.replace(new RegExp("_", "g"), "."),
|
|
212
|
-
descending: a[0].desc
|
|
213
|
-
}, console.log("sortBy", t.value)) : t.value = g, await u();
|
|
214
|
-
},
|
|
215
|
-
onSearch: () => {
|
|
216
|
-
u({ pageIndex: 0, pageSize: o.value.pageSize });
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
}
|
|
220
|
-
export {
|
|
221
|
-
ae as _,
|
|
222
|
-
ne as u
|
|
223
|
-
};
|