@feedmepos/mf-connect 0.1.0-beta.2 → 0.1.0-beta.21

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 (97) hide show
  1. package/dist/Analytic-CZ8gfj2V.js +424 -0
  2. package/dist/{App-D8a5eW51.js → App-Da9h7lhI.js} +397 -384
  3. package/dist/{Broadcast-C8jgMe6g.js → Broadcast-m6ehTw7F.js} +32 -32
  4. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-pG8WvV4I.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BTKA2Ygl.js} +8 -8
  5. package/dist/Card-DqZveZ44.js +685 -0
  6. package/dist/{Collections-lMrdPUuM.js → Collections-XIY6SLgQ.js} +4 -4
  7. package/dist/{Credit-CJfU5tP4.js → Credit-B6Yg3_al.js} +14 -14
  8. package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +108 -0
  9. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D1gub9ZP.js +2198 -0
  10. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CzEtOmp0.js → EffectSheet.vue_vue_type_style_index_0_lang-tRUwA8zh.js} +8 -8
  11. package/dist/{Experience-Bp2ki8gU.js → Experience-CsoneWLZ.js} +8 -8
  12. package/dist/{Game-BpTf6ebE.js → Game-B029f9yE.js} +15 -15
  13. package/dist/Index-B2LvLfrR.js +226 -0
  14. package/dist/Marketing-DUTyDRXu.js +20070 -0
  15. package/dist/{Member-BSWyy32a.js → Member-CATybMaC.js} +4 -4
  16. package/dist/MemberList-DxvQ7DnC.js +1045 -0
  17. package/dist/{MemberTransactions-BzHiXCnp.js → MemberTransactions-fEZyBY9P.js} +1 -1
  18. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-e-zWg08J.js → MessageInput.vue_vue_type_script_setup_true_lang-BCCEsJZj.js} +2 -2
  19. package/dist/{Mission-8IGT3T2C.js → Mission-Cl3O0ULj.js} +16 -16
  20. package/dist/Overview-BVI2xGvT.js +1014 -0
  21. package/dist/{Point-CbbJ6ohd.js → Point-DSVn47pK.js} +23 -23
  22. package/dist/{Promotion-BYXCJa_S.js → Promotion-C4HyMpPg.js} +53 -47
  23. package/dist/Record-BSKXwUu2.js +187 -0
  24. package/dist/Reward-Cus20Wq5.js +399 -0
  25. package/dist/RewardGroup.vue_vue_type_script_setup_true_lang-Dm6Vgx8-.js +151 -0
  26. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CqMCdTsv.js +1597 -0
  27. package/dist/Segment-DAHJ2FYV.js +567 -0
  28. package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DpkIgpqy.js +181 -0
  29. package/dist/{Setting-CLpvvZTv.js → Setting-D7dKlTiZ.js} +8 -8
  30. package/dist/Store-DQdWn1Dw.js +1745 -0
  31. package/dist/{StoreRewards-CUM2irXK.js → StoreRewards-Cut9mJGn.js} +12 -12
  32. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BQscw_Di.js +957 -0
  33. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DEb4OBcX.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BVzz2Zkl.js} +1 -1
  34. package/dist/{Tier-DZTDxWBo.js → Tier-DGpNybHO.js} +15 -15
  35. package/dist/{Title-C2Dr5ceK.js → Title-D5y8GEwE.js} +15 -15
  36. package/dist/{Transaction-BL4mS29d.js → Transaction-CCnZouEv.js} +2 -2
  37. package/dist/UserRuleGroup.vue_vue_type_script_setup_true_lang-Cr9DV7hr.js +130 -0
  38. package/dist/{Voucher-Cx0r2-df.js → Voucher-BJ6RC4SS.js} +31 -31
  39. package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-6751WdaT.js +419 -0
  40. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DWuAODUF.js → ZodTextField.vue_vue_type_script_setup_true_lang-aq-9V3Gc.js} +1 -1
  41. package/dist/{app-wE5HTF_Y.js → app-D3chCumI.js} +1279 -1282
  42. package/dist/{app-B_xuZ5HB.js → app-PfWyqx7U.js} +1 -1
  43. package/dist/app.js +1 -1
  44. package/dist/{business-DSv8zM8C.js → business-trsrJyHK.js} +1 -1
  45. package/dist/{campaign-7y5qquHZ.js → campaign-B1rgdv77.js} +2 -2
  46. package/dist/collectible.enum-ZoD0ya1M.js +19 -0
  47. package/dist/{collection.fn-BxVZQAx0.js → collection.fn-CnQjdokW.js} +2 -2
  48. package/dist/{dto-Ew1QwLci.js → dto-DuJumvC2.js} +12 -20
  49. package/dist/{effect-BzPh8fRI.js → effect-CFYktLyZ.js} +9 -9
  50. package/dist/email-addresses-BocLAqLt.js +705 -0
  51. package/dist/{export-C9tDplkA.js → export-BDxbvd3c.js} +3 -3
  52. package/dist/{helper-Sz7oQ0F4.js → helper-Bx6u7f_W.js} +1 -1
  53. package/dist/{index-DH_1nOJ_.js → index-7QsBQpBM.js} +39 -35
  54. package/dist/{index-z0IfdrZk.js → index-AcoIUTDS.js} +203 -195
  55. package/dist/{index-C3_4GUiI.js → index-BAUe6Mqp.js} +7 -1
  56. package/dist/{index-C0lpADCo.js → index-C20tnKDo.js} +1 -1
  57. package/dist/{index-C-SOz7jt.js → index-CDgSJNKm.js} +1 -1
  58. package/dist/{index-DBMaUGYI.js → index-CTnZ9dt0.js} +30 -26
  59. package/dist/index-CUMB0mpB.js +28997 -0
  60. package/dist/index-CsF6BSZU.js +1067 -0
  61. package/dist/index-CsaQJMAR.js +66 -0
  62. package/dist/{index-tv4t0Pnh.js → index-DwXHEi0X.js} +1 -1
  63. package/dist/{index-_3qBsogG.js → index-ZXWgygOr.js} +1500 -1479
  64. package/dist/index-_v_LQTuR.js +53 -0
  65. package/dist/index-kLMiwwB-.js +38 -0
  66. package/dist/{index-gIRszcHf.js → index-pRpTA8Kd.js} +1 -1
  67. package/dist/{index.esm2017-BnKJDxUo.js → index.esm2017-DuOZ7nuk.js} +33 -33
  68. package/dist/{loading-Ds-yFYhc.js → loading-BTEwnG5-.js} +591 -597
  69. package/dist/{membership-DaiVw9qF.js → membership-DkH7qw6W.js} +51 -43
  70. package/dist/money-BfCdj0Ts.js +15 -0
  71. package/dist/number-BKHcstZb.js +12 -0
  72. package/dist/objectid-CumRza_j.js +145 -0
  73. package/dist/remy-vue-client-Cpppk9h-.js +1693 -0
  74. package/dist/reward-DpR3xoxT.js +36 -0
  75. package/dist/{rule-Cd2M6Ri2.js → rule-Hb9_sJvP.js} +180 -177
  76. package/dist/{rule-builder-B6og27Q1.js → rule-builder-BhwlX4fv.js} +1 -1
  77. package/dist/style.css +1 -1
  78. package/dist/{template-DouRWBpv.js → template-PkDFDppy.js} +5 -5
  79. package/dist/trigger-vLHrldAH.js +114 -0
  80. package/dist/{vue-i18n-BTlOChXs.js → vue-i18n-ComnFt3O.js} +2 -2
  81. package/dist/{xlsx-SahfXQ70.js → xlsx-CsUJ1mq4.js} +1 -1
  82. package/package.json +8 -7
  83. package/dist/Analytic-DSD9TsKr.js +0 -622
  84. package/dist/Card-C1K7ULPo.js +0 -825
  85. package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js +0 -2809
  86. package/dist/Marketing-BiKE2gxA.js +0 -316
  87. package/dist/MemberList-CHlGREyR.js +0 -1733
  88. package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Bruh-umZ.js +0 -1753
  89. package/dist/Segment-DXDNM0yd.js +0 -437
  90. package/dist/Store-C6-P6bwc.js +0 -1511
  91. package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-JaRdmqif.js +0 -890
  92. package/dist/index-BQm0C3Jm.js +0 -298
  93. package/dist/index-CuvNtC_M.js +0 -61
  94. package/dist/index-D-2nFLsg.js +0 -762
  95. package/dist/index-Dy4pmQpt.js +0 -29193
  96. package/dist/money-BHtBdZoz.js +0 -15
  97. package/dist/number-CZhcB8ef.js +0 -12
@@ -4,14 +4,14 @@ var $ = (f, r, u) => te(f, typeof r != "symbol" ? r + "" : r, u);
4
4
  import { defineComponent as H, ref as p, computed as J, watch as O, resolveComponent as d, openBlock as y, createBlock as T, unref as o, isRef as K, withCtx as I, createElementVNode as b, createVNode as s, createElementBlock as R, Fragment as N, renderList as ae, createCommentVNode as P, onMounted as le, h as S } from "vue";
5
5
  import { h as j } from "./moment-BWErdI6_.js";
6
6
  import { components as G } from "@feedmepos/ui-library";
7
- import { u as Q, a as ne } from "./loading-Ds-yFYhc.js";
7
+ import { u as Q, a as ne } from "./loading-BTEwnG5-.js";
8
8
  import { J as se } from "./JsonViewer-v8_C7l5N.js";
9
9
  import { u as re } from "./app-wDQR6dpb.js";
10
10
  import { useRoute as W, useRouter as ie } from "vue-router";
11
- import { c as A } from "./index-C-SOz7jt.js";
12
- import { u as z, w as de } from "./xlsx-SahfXQ70.js";
11
+ import { c as A } from "./index-CDgSJNKm.js";
12
+ import { u as z, w as de } from "./xlsx-CsUJ1mq4.js";
13
13
  import { u as ue, _ as ce } from "./usePagination-BeF5K3M7.js";
14
- import { m as me } from "./index-C3_4GUiI.js";
14
+ import { m as me } from "./index-BAUe6Mqp.js";
15
15
  import { o as pe } from "./objectId-dwaoBfJX.js";
16
16
  const fe = { class: "space-y-16" }, ge = { class: "gap-16 grid grid-cols-2" }, be = { class: "flex items-center gap-8" }, Ce = /* @__PURE__ */ H({
17
17
  __name: "CreateCollectionSheet",
@@ -1,15 +1,15 @@
1
1
  import { defineComponent as N, ref as S, computed as j, h as M, onMounted as A, resolveComponent as l, openBlock as c, createElementBlock as y, Fragment as h, createVNode as i, unref as a, createElementVNode as n, withCtx as C, renderList as H, createBlock as v, resolveDynamicComponent as q, toDisplayString as g, createCommentVNode as z } from "vue";
2
2
  import { _ as G } from "./campaign-CpzFl8Vr.js";
3
3
  import { useDialog as J, components as O } from "@feedmepos/ui-library";
4
- import { p as Q, u as W } from "./loading-Ds-yFYhc.js";
5
- import { u as X } from "./business-DSv8zM8C.js";
6
- import { u as Y } from "./campaign-7y5qquHZ.js";
7
- import { g as V, b as L } from "./dto-Ew1QwLci.js";
8
- import { u as Z } from "./vue-i18n-BTlOChXs.js";
4
+ import { p as Q, u as W } from "./loading-BTEwnG5-.js";
5
+ import { u as X } from "./business-trsrJyHK.js";
6
+ import { u as Y } from "./campaign-B1rgdv77.js";
7
+ import { g as V, a as L } from "./dto-DuJumvC2.js";
8
+ import { u as Z } from "./vue-i18n-ComnFt3O.js";
9
9
  import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
10
- import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BYoaa_-x.js";
11
- import { u as te } from "./template-DouRWBpv.js";
12
- import { c as _ } from "./index-C-SOz7jt.js";
10
+ import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-D1gub9ZP.js";
11
+ import { u as te } from "./template-PkDFDppy.js";
12
+ import { c as _ } from "./index-CDgSJNKm.js";
13
13
  const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, se = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ce = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { key: 0 }, Ve = /* @__PURE__ */ N({
14
14
  __name: "Credit",
15
15
  setup(fe) {
@@ -50,13 +50,13 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
50
50
  icon: "delete",
51
51
  iconColor: "neutral-gray-400",
52
52
  onClick: (o) => {
53
- o.stopPropagation(), x(e.row.original);
53
+ o.stopPropagation(), b(e.row.original);
54
54
  }
55
55
  });
56
56
  }
57
57
  }
58
- ], b = S();
59
- async function x(e) {
58
+ ], x = S();
59
+ async function b(e) {
60
60
  await Q.remove(
61
61
  r("connect.program.common.remove.confirm", { name: e.name })
62
62
  ) && await w(
@@ -77,7 +77,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
77
77
  });
78
78
  async function o(p) {
79
79
  var u;
80
- (u = b.value) == null || u.showSheet(
80
+ (u = x.value) == null || u.showSheet(
81
81
  !0,
82
82
  "CREDIT",
83
83
  e ? await _.readById(e._id) : void 0,
@@ -171,7 +171,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
171
171
  icon: "delete",
172
172
  "icon-color": "neutral-gray-400",
173
173
  variant: "tertiary",
174
- onClick: (k) => (k.stopPropagation(), x(t))
174
+ onClick: (k) => (k.stopPropagation(), b(t))
175
175
  }, null, 8, ["onClick"])
176
176
  ]),
177
177
  _: 2
@@ -207,7 +207,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
207
207
  })),
208
208
  i(oe, {
209
209
  ref_key: "sheetRef",
210
- ref: b,
210
+ ref: x,
211
211
  "onSubmit:modelValue": E
212
212
  }, null, 512)
213
213
  ])
@@ -0,0 +1,108 @@
1
+ import { defineComponent as I, ref as P, resolveComponent as u, openBlock as t, createBlock as y, unref as h, withCtx as d, renderSlot as V, createElementBlock as s, toDisplayString as i, createCommentVNode as S, createVNode as x, normalizeClass as g, createElementVNode as B, Fragment as N, renderList as j } from "vue";
2
+ const q = {
3
+ key: 0,
4
+ class: "fm-typo-en-body-lg-400 mb-4"
5
+ }, $ = {
6
+ key: 1,
7
+ class: "fm-typo-en-body-lg-400"
8
+ }, E = { class: "rounded-md bg-white shadow-md max-h-[300px] overflow-y-scroll pl-4 py-12" }, O = /* @__PURE__ */ I({
9
+ __name: "CustomSelect",
10
+ props: {
11
+ label: {
12
+ type: String,
13
+ required: !1
14
+ },
15
+ placeholder: {
16
+ type: String,
17
+ required: !1
18
+ },
19
+ items: {
20
+ type: Object,
21
+ required: !0
22
+ },
23
+ modelValue: {
24
+ type: Object
25
+ },
26
+ zIndex: {
27
+ type: Number
28
+ },
29
+ multiselect: {
30
+ type: Boolean
31
+ }
32
+ },
33
+ emits: ["update:model-value"],
34
+ setup(e, { emit: k }) {
35
+ const r = k, m = P(!1);
36
+ return (v, b) => {
37
+ const F = u("FmIcon"), C = u("FmField"), p = u("FmMenuItem"), w = u("FmPopover");
38
+ return t(), y(w, {
39
+ "show-popover": h(m),
40
+ onPopoverChanged: b[0] || (b[0] = (l) => m.value = l),
41
+ "z-index": e.zIndex
42
+ }, {
43
+ "popover-button": d(() => [
44
+ V(v.$slots, "popover-button", {}, () => [
45
+ e.label ? (t(), s("div", q, i(e.label), 1)) : S("", !0),
46
+ x(C, null, {
47
+ append: d(() => [
48
+ V(v.$slots, "append"),
49
+ x(F, {
50
+ name: h(m) ? "expand_less" : "expand_more",
51
+ size: "md",
52
+ color: "black"
53
+ }, null, 8, ["name"])
54
+ ]),
55
+ default: d(() => {
56
+ var l;
57
+ return [
58
+ e.multiselect ? (t(), s("div", $, i(e.items.filter((o) => {
59
+ var a;
60
+ return (a = e.modelValue) == null ? void 0 : a.includes(o.value);
61
+ }).map((o) => o.label).join(", ")), 1)) : (t(), s("div", {
62
+ key: 0,
63
+ class: g(["fm-typo-en-body-lg-400", {
64
+ "text-fm-color-typo-secondary": !e.items.find(
65
+ (o) => o.value == e.modelValue
66
+ )
67
+ }])
68
+ }, i(((l = e.items.find((o) => o.value == e.modelValue)) == null ? void 0 : l.label) || e.placeholder), 3))
69
+ ];
70
+ }),
71
+ _: 3
72
+ })
73
+ ])
74
+ ]),
75
+ default: d(() => [
76
+ B("div", E, [
77
+ (t(!0), s(N, null, j(e.items, (l) => {
78
+ var o, a;
79
+ return t(), y(p, {
80
+ class: g(`${e.multiselect ? (o = e.modelValue) != null && o.some((n) => n == l.value) ? "bg-fm-color-system-warning-100" : "" : e.modelValue == l.value}`),
81
+ "has-checkbox": e.multiselect,
82
+ key: l.value,
83
+ "model-value": e.multiselect ? (a = e.modelValue) == null ? void 0 : a.some((n) => n == l.value) : e.modelValue == l.value,
84
+ label: l.label,
85
+ onClick: (n) => {
86
+ var f;
87
+ if (n.stopPropagation(), !e.multiselect)
88
+ m.value = !1, r("update:model-value", l.value);
89
+ else {
90
+ const z = (f = e.modelValue) == null ? void 0 : f.some((c) => c == l.value);
91
+ r(
92
+ "update:model-value",
93
+ z ? (e.modelValue ?? []).filter((c) => c !== l.value) : [...e.modelValue ?? [], l.value]
94
+ );
95
+ }
96
+ }
97
+ }, null, 8, ["class", "has-checkbox", "model-value", "label", "onClick"]);
98
+ }), 128))
99
+ ])
100
+ ]),
101
+ _: 3
102
+ }, 8, ["show-popover", "z-index"]);
103
+ };
104
+ }
105
+ });
106
+ export {
107
+ O as _
108
+ };