@feedmepos/mf-menu 0.31.33 → 0.31.34-alpha

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 (101) hide show
  1. package/dist/{App-DNDOc3bV.js → App-CaKDbV0S.js} +6 -6
  2. package/dist/{ApplyProduct.vue_vue_type_script_setup_true_lang-BvrfcWHU.js → ApplyProduct.vue_vue_type_script_setup_true_lang-gY18sRMg.js} +20 -20
  3. package/dist/{Catalog-Zhi-3W6T.js → Catalog-B0zMoi7e.js} +80 -80
  4. package/dist/{Category-BU0bkAGd.js → Category-Dyou6Q17.js} +31 -27
  5. package/dist/{Category-CE9ixFkD.js → Category-rMN8037Q.js} +19 -19
  6. package/dist/{CookingGuide-eghVaeEY.js → CookingGuide-DT2XxaWa.js} +4 -4
  7. package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-Cv9LNAfi.js +113 -0
  8. package/dist/{Group-DWrtP9Au.js → Group-CYSIOe3D.js} +1 -1
  9. package/dist/{Group-DDZPf6LY.js → Group-M4WPAAYz.js} +3 -3
  10. package/dist/Group.vue_vue_type_script_setup_true_lang-B-BH-2WN.js +686 -0
  11. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-TQWka93A.js +367 -0
  12. package/dist/{ImportProductDialog.vue_vue_type_script_setup_true_lang-Cus0YKUt.js → ImportProductDialog.vue_vue_type_script_setup_true_lang-DgSO7SQW.js} +4982 -5081
  13. package/dist/{Ingredient-BJgvOyV9.js → Ingredient-DNvr30pW.js} +3 -3
  14. package/dist/{InventoryBinding.vue_vue_type_script_setup_true_lang-CF99abLi.js → InventoryBinding.vue_vue_type_script_setup_true_lang-G44luws0.js} +1052 -1052
  15. package/dist/LinkProductSideSheet-Cp0HFoP2.js +297 -0
  16. package/dist/LinkProductSideSheet.vue_vue_type_style_index_0_scoped_97fa9d58_lang-DvG3mOom.js +8024 -0
  17. package/dist/{MenuSetting-gkwORUX0.js → MenuSetting-UeQ2NyVm.js} +4 -4
  18. package/dist/{PrintRoute-Cda6sFlL.js → PrintRoute-5uX9ymJY.js} +89 -88
  19. package/dist/{Product-61AAh5L-.js → Product-Dxqf8_iq.js} +1 -1
  20. package/dist/Product.vue_vue_type_script_setup_true_lang-DUtGVRCH.js +1578 -0
  21. package/dist/{ProductInternalTools-o8cVZXCT.js → ProductInternalTools-BCF9q0i_.js} +5 -5
  22. package/dist/Products--adhOQ8n.js +283 -0
  23. package/dist/{Publish-BRgJUzoA.js → Publish-CRaoaFxc.js} +3 -3
  24. package/dist/{Recipe-CV8lvryp.js → Recipe-DPkzZMJi.js} +4 -4
  25. package/dist/{Scheduler-B_ptvb82.js → Scheduler-BuwjNHHj.js} +3 -3
  26. package/dist/{ServingSequence-DABGnLbT.js → ServingSequence-Cdf_Zmat.js} +3 -3
  27. package/dist/Setting-Vr3Thttm.js +259 -0
  28. package/dist/{Subcategory-BiqlAvMs.js → Subcategory-DoXmjcg1.js} +4 -4
  29. package/dist/{Takeaway-BBdkzEiP.js → Takeaway-BRTQu8VT.js} +1 -1
  30. package/dist/{Takeaway-nIjrDu5C.js → Takeaway-t3il54Bd.js} +4 -4
  31. package/dist/{Takeaway.vue_vue_type_script_setup_true_lang-D_M2PFO-.js → Takeaway.vue_vue_type_script_setup_true_lang-DtHABSgp.js} +6 -6
  32. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-D_ACNj_Z.js +431 -0
  33. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-DAoGiRV-.js +5990 -0
  34. package/dist/{Unit-Di5sUbhV.js → Unit-C_QY3IX_.js} +2 -2
  35. package/dist/{Variant-CiZCtZk9.js → Variant-CR4IEm-Q.js} +3 -3
  36. package/dist/_id_-DOU7ieGB.js +202 -0
  37. package/dist/{app-B63V5b4I.js → app--fRC3N4C.js} +1 -1
  38. package/dist/{app-DuD_IPou.js → app-CrXLAKdw.js} +95 -97
  39. package/dist/app.js +6 -7
  40. package/dist/apps/mf-menu/src/app.d.ts +62 -3
  41. package/dist/apps/mf-menu/src/components/feature/PriceTier/LinkPriceTierSection.vue.d.ts +24 -0
  42. package/dist/apps/mf-menu/src/components/feature/PriceTier/PriceTierRuleEditor.vue.d.ts +30 -0
  43. package/dist/apps/mf-menu/src/components/feature/RestaurantAttributesSelector.vue.d.ts +33 -0
  44. package/dist/apps/mf-menu/src/components/feature/TreeEditor/composable/catalog.d.ts +2 -0
  45. package/dist/apps/mf-menu/src/components/feature/TreeEditor/store/menuV2.d.ts +80 -1
  46. package/dist/apps/mf-menu/src/composable/linkProducts.d.ts +1276 -0
  47. package/dist/apps/mf-menu/src/helper/import-export.d.ts +77 -0
  48. package/dist/apps/mf-menu/src/helper/menu.d.ts +77 -0
  49. package/dist/apps/mf-menu/src/helper/setting/catalogSetting.d.ts +11 -2
  50. package/dist/apps/mf-menu/src/manager/menu/item.d.ts +77 -0
  51. package/dist/apps/mf-menu/src/router/shared.d.ts +0 -1
  52. package/dist/apps/mf-menu/src/stores/manager/catalog.d.ts +2 -0
  53. package/dist/apps/mf-menu/src/stores/menu.d.ts +79 -0
  54. package/dist/apps/mf-menu/src/types/linkProducts.d.ts +21 -0
  55. package/dist/apps/mf-menu/src/views/PrintRoute/PrintDepartmentDialog.vue.d.ts +5 -3
  56. package/dist/apps/mf-menu/src/views/Publish/UpdateCatalogDialog.vue.d.ts +82 -0
  57. package/dist/apps/mf-menu/tsconfig.app.tsbuildinfo +1 -1
  58. package/dist/assets/linked-status-BTF_dm9R.js +24 -0
  59. package/dist/assets/override-menu-BPu7TVCy.js +24 -0
  60. package/dist/assets/validate-menu-BQpDfHbr.js +24 -0
  61. package/dist/{catalog-DfYSMjLc.js → catalog-BGiDWODL.js} +1 -1
  62. package/dist/catalogSetting-C34kIcYn.js +71 -0
  63. package/dist/{category-mmjX_QdF.js → category-CayMSpUc.js} +1 -1
  64. package/dist/{currency-3ugQtBPt.js → currency-BggoZpJv.js} +1 -1
  65. package/dist/{dayjs.min-CkV4mNm8.js → dayjs.min-BKDTLohL.js} +1 -1
  66. package/dist/{index-Cztb2LVZ.js → index-BPcRbiW0.js} +3 -3
  67. package/dist/{index-BboaHtmY.js → index-CLFhXi0y.js} +3 -3
  68. package/dist/index-D7yR1j9C.js +215 -0
  69. package/dist/{index-BZaKuDcN.js → index-f9kzXNPD.js} +28 -28
  70. package/dist/{item-CVnDeXhJ.js → item-C51o9ejv.js} +547 -545
  71. package/dist/{jszip.min-GxfcHBC5.js → jszip.min-m57vowh9.js} +353 -353
  72. package/dist/{menu-sGVv4bhQ.js → menu-DHfLxvzU.js} +4 -4
  73. package/dist/menu-DK7wG3S5.js +133287 -0
  74. package/dist/menuV2-B-0V65cx.js +707 -0
  75. package/dist/mf-menu.css +1 -1
  76. package/dist/{priceTier-CHTA0ZEb.js → priceTier-DD-24pkj.js} +1 -1
  77. package/dist/{scheduler-CaMxCHZ0.js → scheduler-NjDv_P4c.js} +16 -17
  78. package/dist/subcategory-DLdBwjHV.js +148 -0
  79. package/dist/{toExcel-WorodvP1.js → toExcel-coJ5igRV.js} +15 -15
  80. package/dist/{unit-DtKZZYL6.js → unit-C7XUV0EW.js} +5 -4
  81. package/package.json +5 -5
  82. package/dist/CustomAttributeChip.vue_vue_type_script_setup_true_lang-BiF8rW4M.js +0 -7949
  83. package/dist/FormItem.vue_vue_type_script_setup_true_lang-BmPAVphe.js +0 -26
  84. package/dist/Group.vue_vue_type_script_setup_true_lang-DyqGsRAW.js +0 -698
  85. package/dist/GroupMarkupPriceDialog.vue_vue_type_script_setup_true_lang-BmRUg94d.js +0 -206
  86. package/dist/LinkProductSideSheet-CTT4oGUY.js +0 -112
  87. package/dist/Product.vue_vue_type_script_setup_true_lang-Cy4uok1E.js +0 -1560
  88. package/dist/Products-D0rrANT6.js +0 -270
  89. package/dist/Setting-3ISlMXOA.js +0 -258
  90. package/dist/Thumbnail.vue_vue_type_script_setup_true_lang-DzQ8_6Bi.js +0 -71
  91. package/dist/TreeEditorOpenner.vue_vue_type_script_setup_true_lang-y0n5hTLk.js +0 -6149
  92. package/dist/_id_-DY8himeL.js +0 -200
  93. package/dist/apps/mf-menu/src/components/feature/LinkProduct/LinkProductSideSheet.vue.d.ts +0 -70
  94. package/dist/assets/linked-status-CkBKnMXs.js +0 -24
  95. package/dist/assets/override-menu-XZ7XfcfS.js +0 -24
  96. package/dist/assets/validate-menu-Bomogq01.js +0 -24
  97. package/dist/catalogSetting-_4Z0s3_Q.js +0 -65
  98. package/dist/index-Ce4v8o7D.js +0 -106
  99. package/dist/menu-IGORh0Ik.js +0 -108039
  100. package/dist/subcategory-CmVttqlG.js +0 -817
  101. /package/dist/{apps/mf-menu/src/components → packages/shared/src/components/info}/CustomAttributeChip.vue.d.ts +0 -0
@@ -1,19 +1,19 @@
1
- import { defineComponent as A, ref as F, computed as B, watch as se, resolveComponent as p, createElementBlock as E, openBlock as f, Fragment as Z, renderSlot as re, createVNode as d, unref as e, withCtx as g, createElementVNode as n, toDisplayString as T, h as L, withModifiers as z, getCurrentInstance as ie, renderList as ce, createBlock as U, createCommentVNode as ue } from "vue";
1
+ import { defineComponent as A, ref as F, computed as B, watch as se, resolveComponent as p, createElementBlock as E, openBlock as f, Fragment as Q, renderSlot as re, createVNode as d, unref as e, withCtx as g, createElementVNode as n, toDisplayString as T, h as L, withModifiers as z, getCurrentInstance as ie, renderList as ce, createBlock as U, createCommentVNode as ue } from "vue";
2
2
  import { useI18n as j } from "@feedmepos/mf-common";
3
- import { useSnackbar as Y, components as R, useDialog as ee, FmButtonVariant as H, useBreakpoints as de, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
3
+ import { useSnackbar as Y, components as R, useDialog as ee, FmButtonVariant as X, useBreakpoints as de, FmButtonColorThemeVariant as me } from "@feedmepos/ui-library";
4
4
  import { _ as pe } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { D as G, u as ge, $ as fe, Y as _e, G as K, a4 as ye, O as q, J as te } from "./menu-IGORh0Ik.js";
5
+ import { D as G, u as ge, Z as fe, X as _e, G as K, a3 as ye, O as q, J as te } from "./menu-DK7wG3S5.js";
6
6
  import { _ as ve } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
7
- import { _ as he } from "./app-DuD_IPou.js";
7
+ import { _ as he } from "./app-CrXLAKdw.js";
8
8
  import { c as be } from "./createForm-BoUQeZTd.js";
9
- import { _ as Q } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
9
+ import { _ as Z } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
10
10
  import { u as xe } from "./discardConfirm-BHni0LNu.js";
11
- import { c as X } from "./object-DVUNCr7w.js";
11
+ import { c as H } from "./object-DVUNCr7w.js";
12
12
  import { r as Ce } from "./rules-CIWTZQfh.js";
13
- import { u as J, a as ke } from "./menu-sGVv4bhQ.js";
13
+ import { u as J, a as ke } from "./menu-DHfLxvzU.js";
14
14
  import { c as we } from "./check-C9mY6LiX.js";
15
- import { u as Fe } from "./item-CVnDeXhJ.js";
16
- import { u as oe } from "./category-mmjX_QdF.js";
15
+ import { u as Fe } from "./item-C51o9ejv.js";
16
+ import { u as oe } from "./category-CayMSpUc.js";
17
17
  import { _ as Ve } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
18
18
  const $e = {
19
19
  class: "fm-typo-en-title-md-600"
@@ -43,7 +43,7 @@ const $e = {
43
43
  t
44
44
  } = j(), O = F(!1), u = F(!1), M = (o) => {
45
45
  we.isBoolean(o) ? u.value = o : u.value = !u.value;
46
- }, i = F(X(_.initialValue)), C = F(""), S = B(() => {
46
+ }, i = F(H(_.initialValue)), C = F(""), S = B(() => {
47
47
  var k;
48
48
  const o = ((k = x.value.find((w) => w.id === i.value.id)) == null ? void 0 : k.items) || [], a = fe(i.value.id);
49
49
  return _e(o, (w) => w.code || w.name, a);
@@ -106,13 +106,13 @@ const $e = {
106
106
  }, i.value.name), M(!1);
107
107
  }
108
108
  return se(() => u.value, () => {
109
- u.value && (i.value = X(_.initialValue));
109
+ u.value && (i.value = H(_.initialValue));
110
110
  }), h({
111
111
  trigger: M,
112
112
  show: u
113
113
  }), (o, a) => {
114
114
  const k = p("FmTextField"), w = p("FmButton"), ae = p("FmSearch"), ne = p("FmTable"), W = p("fm-button"), le = p("fm-side-sheet");
115
- return f(), E(Z, null, [re(o.$slots, "default", {
115
+ return f(), E(Q, null, [re(o.$slots, "default", {
116
116
  trigger: M
117
117
  }), d(le, {
118
118
  id: "group-form",
@@ -140,7 +140,7 @@ const $e = {
140
140
  variant: "tertiary",
141
141
  onClick: a[3] || (a[3] = () => u.value = !1)
142
142
  }, null, 8, ["label"])])]),
143
- default: g(() => [n("div", Me, [d(Q, {
143
+ default: g(() => [n("div", Me, [d(Z, {
144
144
  title: e(t)("menu.category.detail")
145
145
  }, {
146
146
  default: g(() => [d(k, {
@@ -151,7 +151,7 @@ const $e = {
151
151
  rules: [e(Ce)]
152
152
  }, null, 8, ["label", "modelValue", "disabled", "rules"])]),
153
153
  _: 1
154
- }, 8, ["title"]), d(Q, {
154
+ }, 8, ["title"]), d(Z, {
155
155
  title: e(t)("menu.category.products.title"),
156
156
  class: "flex-1 min-h-0",
157
157
  shrinkable: !0
@@ -274,7 +274,7 @@ const $e = {
274
274
  primaryActions: {
275
275
  text: "Remove",
276
276
  close: !0,
277
- variant: H.Destructive
277
+ variant: X.Destructive
278
278
  },
279
279
  secondaryActions: {
280
280
  text: "Cancel",
@@ -310,7 +310,7 @@ const $e = {
310
310
  placeholder: e(t)("menu.common.labels.search_placeholder", {
311
311
  type: "categories"
312
312
  })
313
- }, null, 8, ["modelValue", "placeholder"])]), n("div", Re, [(f(!0), E(Z, null, ce(x.value, (c) => (f(), E("div", {
313
+ }, null, 8, ["modelValue", "placeholder"])]), n("div", Re, [(f(!0), E(Q, null, ce(x.value, (c) => (f(), E("div", {
314
314
  key: c.id || "",
315
315
  class: "flex flex-row py-12 px-16",
316
316
  onClick: (o) => C(c)
@@ -318,7 +318,7 @@ const $e = {
318
318
  count: c.items.length
319
319
  })), 1)]), d(I, {
320
320
  "text-color": e(me).NeutralGray400,
321
- variant: e(H).Tertiary,
321
+ variant: e(X).Tertiary,
322
322
  "prepend-icon": "delete",
323
323
  disabled: !c.id,
324
324
  onClick: z((o) => u(c), ["stop"])
@@ -347,7 +347,7 @@ const $e = {
347
347
  })]));
348
348
  };
349
349
  }
350
- }), qe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Je = { class: "flex items-center" }, We = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, He = { class: "fm-typo-en-body-md-600 font-semibold" }, gt = /* @__PURE__ */ A({
350
+ }), qe = { class: "flex-1 flex justify-between gap-8 pl-8" }, Je = { class: "flex items-center" }, We = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, Xe = { class: "fm-typo-en-body-md-600 font-semibold" }, gt = /* @__PURE__ */ A({
351
351
  __name: "Category",
352
352
  setup(N) {
353
353
  const h = ee(), _ = Y(), V = G(_), b = q(V), $ = oe({ dialog: h, menuLoader: b }), { categories: m } = J(), { t: r } = j();
@@ -373,7 +373,7 @@ const $e = {
373
373
  n("div", qe, [
374
374
  n("div", Je, [
375
375
  n("div", We, [
376
- n("p", He, T(t.value), 1)
376
+ n("p", Xe, T(t.value), 1)
377
377
  ])
378
378
  ]),
379
379
  e(m).length > 0 ? (f(), U(pe, {
@@ -2,12 +2,12 @@ import { defineComponent as ae, ref as w, computed as V, resolveComponent as x,
2
2
  import { useI18n as se } from "@feedmepos/mf-common";
3
3
  import { components as ue, useSnackbar as be, useDialog as ye } from "@feedmepos/ui-library";
4
4
  import { _ as ke } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
5
- import { _ as he } from "./app-DuD_IPou.js";
6
- import { H as ee, I as me, J as re, G as oe, u as xe, O as Ce, D as we } from "./menu-IGORh0Ik.js";
5
+ import { _ as he } from "./app-CrXLAKdw.js";
6
+ import { H as ee, I as me, J as re, G as oe, u as xe, O as Ce, D as we } from "./menu-DK7wG3S5.js";
7
7
  import { d as Fe } from "./vuedraggable-CK8z7qA8.js";
8
8
  import { _ as Z } from "./FormSection.vue_vue_type_script_setup_true_lang-CO4YGYLB.js";
9
9
  import { u as pe } from "./discardConfirm-BHni0LNu.js";
10
- import { L as Ve } from "./LinkProductSideSheet-CTT4oGUY.js";
10
+ import { L as Ve } from "./LinkProductSideSheet-Cp0HFoP2.js";
11
11
  import { _ as Se } from "./index.vue_vue_type_script_setup_true_lang-BgqsTzLI.js";
12
12
  import { _ as Ie } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
13
13
  const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = { class: "space-y-32" }, Ke = { class: "flex bg-fm-color-neutral-gray-100 border-b border-b-fm-color-neutral-gray-200" }, De = { class: "px-16 py-8 w-[40%]" }, Le = { class: "px-16 py-8 grow" }, Ne = { class: "px-16 py-8 w-[40%]" }, Ge = { class: "px-16 py-8 grow" }, Ue = { class: "space-y-16" }, Te = { class: "flex flex-wrap gap-8 overflow-hidden mb-8" }, Be = { class: "flex gap-8 items-center justify-start" }, Me = /* @__PURE__ */ ae({
@@ -381,7 +381,7 @@ const $e = { class: "flex items-center gap-8" }, Oe = { class: "grow" }, Ee = {
381
381
  (r) => r.productId === e && r.combinationKey == o
382
382
  );
383
383
  }
384
- function n(e) {
384
+ function n({ items: e }) {
385
385
  const o = e.reduce((r, c) => (r[c._id] = r[c._id] ?? [], c.combinationKey && (r[c._id] = [...r[c._id], c.combinationKey]), r), {}), b = Object.entries(o).reduce(
386
386
  (r, [c, Q]) => {
387
387
  var te;
@@ -0,0 +1,113 @@
1
+ import { defineComponent as S, computed as o, createBlock as v, openBlock as t, unref as c, withCtx as g, renderSlot as B, ref as A, resolveComponent as I, createElementBlock as a, createElementVNode as m, createCommentVNode as b, Fragment as f, renderList as C, toDisplayString as d, withModifiers as F } from "vue";
2
+ import { useI18n as V } from "@feedmepos/mf-common";
3
+ import { _ as M } from "./MenuSelector.vue_vue_type_script_setup_true_lang-K6Z0QJBl.js";
4
+ import { u as D } from "./menu-DK7wG3S5.js";
5
+ import { useBreakpoints as E } from "@feedmepos/ui-library";
6
+ import { _ as y } from "./TextChip.vue_vue_type_script_setup_true_lang-8frWuZFL.js";
7
+ const X = /* @__PURE__ */ S({
8
+ __name: "SchedulerSelector",
9
+ setup(k) {
10
+ const s = D(), { t: n } = V(), l = o({
11
+ get: () => s.state.currentSchedulerId || "",
12
+ set: (e) => s.selectScheduler(e)
13
+ }), _ = o(() => [
14
+ { label: n("menu.common.labels.summary"), value: "" },
15
+ ...s.schedulers.map((e) => ({
16
+ label: e.name,
17
+ value: e._id
18
+ }))
19
+ ]), h = o(() => {
20
+ var e;
21
+ return ((e = _.value.find((r) => r.value === l.value)) == null ? void 0 : e.label) || n("menu.common.labels.summary");
22
+ });
23
+ return (e, r) => (t(), v(M, {
24
+ modelValue: l.value,
25
+ "onUpdate:modelValue": r[0] || (r[0] = (u) => l.value = u),
26
+ items: _.value,
27
+ placeholder: c(n)("menu.common.labels.summary"),
28
+ "search-placeholder": c(n)("menu.common.actions.search"),
29
+ title: c(n)("menu.common.labels.scheduler_title", { label: h.value })
30
+ }, {
31
+ append: g(() => [
32
+ B(e.$slots, "append")
33
+ ]),
34
+ _: 3
35
+ }, 8, ["modelValue", "items", "placeholder", "search-placeholder", "title"]));
36
+ }
37
+ }), L = { class: "flex flex-wrap gap-8" }, N = { class: "py-12 px-16 space-y-12" }, O = { class: "fm-typo-en-body-md-600 text-fm-color-neutral-gray-600" }, T = { class: "flex flex-wrap gap-8" }, z = {
38
+ key: 0,
39
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
40
+ }, U = { key: 0 }, q = {
41
+ key: 1,
42
+ class: "inline-block w-8"
43
+ }, G = { key: 0 }, H = { key: 1 }, Y = /* @__PURE__ */ S({
44
+ __name: "CustomAttributeChip",
45
+ props: {
46
+ customAttributes: {},
47
+ ellipsis: { type: Boolean, default: !0 }
48
+ },
49
+ setup(k) {
50
+ const s = k, { t: n } = V(), l = o(() => Object.values(s.customAttributes || {})), _ = E(), h = o(() => _.breakpoints.value.xs), e = o(() => s.ellipsis ? h.value ? 1 : 2 : 1 / 0), r = o(() => l.value.length <= e.value ? l.value : l.value.slice(0, e.value)), u = A(!0), $ = o(() => {
51
+ if (u.value) {
52
+ const i = r.value.join(", ");
53
+ return i.length > 20 ? i.slice(0, 20) + "..." : i;
54
+ }
55
+ return l.value.join(", ");
56
+ });
57
+ return (j, i) => {
58
+ const w = I("FmTooltip");
59
+ return h.value ? (t(), a(f, { key: 1 }, [
60
+ l.value.length > 0 ? (t(), a("p", z, [
61
+ m("span", null, d(c(n)("menu.product.table.columns.tagging")) + ": ", 1),
62
+ m("span", null, d($.value), 1),
63
+ u.value ? (t(), a("span", q)) : (t(), a("br", U)),
64
+ l.value.length > e.value ? (t(), a("span", {
65
+ key: 2,
66
+ class: "fm-typo-en-body-md-400 text-fm-color-primary cursor-pointer",
67
+ onClick: i[0] || (i[0] = F((p) => u.value = !u.value, ["stop", "prevent"]))
68
+ }, [
69
+ u.value ? (t(), a("span", G, d(c(n)("menu.product.table.tagging.expand", { count: l.value.length - e.value })), 1)) : (t(), a("span", H, d(c(n)("menu.product.table.tagging.collapse")), 1))
70
+ ])) : b("", !0)
71
+ ])) : b("", !0)
72
+ ], 64)) : (t(), v(w, {
73
+ key: 0,
74
+ class: "flex",
75
+ variant: "rich",
76
+ placement: "top",
77
+ "z-index": 50
78
+ }, {
79
+ content: g(() => [
80
+ m("div", N, [
81
+ m("p", O, d(c(n)("menu.product.table.tagging.all")), 1),
82
+ m("div", T, [
83
+ (t(!0), a(f, null, C(Object.entries(s.customAttributes || {}), ([p, x]) => (t(), v(y, {
84
+ key: x,
85
+ label: `${p}: ${x}`,
86
+ variant: "neutral"
87
+ }, null, 8, ["label"]))), 128))
88
+ ])
89
+ ])
90
+ ]),
91
+ default: g(() => [
92
+ m("div", L, [
93
+ (t(!0), a(f, null, C(r.value, (p) => (t(), v(y, {
94
+ key: p,
95
+ label: p,
96
+ variant: "neutral"
97
+ }, null, 8, ["label"]))), 128)),
98
+ l.value.length > e.value ? (t(), v(y, {
99
+ key: 0,
100
+ label: "...",
101
+ variant: "neutral"
102
+ })) : b("", !0)
103
+ ])
104
+ ]),
105
+ _: 1
106
+ }));
107
+ };
108
+ }
109
+ });
110
+ export {
111
+ Y as _,
112
+ X as a
113
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-DyqGsRAW.js";
1
+ import { _ as f } from "./Group.vue_vue_type_script_setup_true_lang-B-BH-2WN.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -2,9 +2,9 @@ import { defineComponent as m, ref as p, createBlock as i, openBlock as d, unref
2
2
  import { useI18n as _ } from "@feedmepos/mf-common";
3
3
  import { _ as f } from "./ResponsiveFabButton.vue_vue_type_script_setup_true_lang-Cn-3MRBO.js";
4
4
  import { _ as g } from "./PageLayout.vue_vue_type_script_setup_true_lang-2f0QfweQ.js";
5
- import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-DyqGsRAW.js";
6
- import { A as b } from "./item-CVnDeXhJ.js";
7
- import { a as h } from "./menu-sGVv4bhQ.js";
5
+ import { _ as y } from "./Group.vue_vue_type_script_setup_true_lang-B-BH-2WN.js";
6
+ import { A as b } from "./item-C51o9ejv.js";
7
+ import { a as h } from "./menu-DHfLxvzU.js";
8
8
  const v = { class: "flex-1 flex justify-between gap-8 pl-8" }, x = { class: "flex items-center" }, k = { class: "bg-fm-color-neutral-gray-100 rounded-md px-8 py-4" }, C = { class: "fm-typo-en-body-md-600 font-semibold" }, j = /* @__PURE__ */ m({
9
9
  __name: "Group",
10
10
  setup(N) {