@feedmepos/mf-inventory-portal 1.3.7-dev.2 → 1.3.8-dev.1

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 (82) hide show
  1. package/dist/{App-Bt9_9LW3.js → App-Dl97lAmD.js} +3 -3
  2. package/dist/{ApprovalView-BAFatrEE.js → ApprovalView-RePEhbhl.js} +7 -7
  3. package/dist/{BindingsDialog-lLNdP2RG.js → BindingsDialog-8QVbtnnq.js} +2 -2
  4. package/dist/{BindingsPicker-BwxdoHu-.js → BindingsPicker-D9yuDGcq.js} +2 -2
  5. package/dist/{BindingsTable-C8cf9nV_.js → BindingsTable-DAYhI-6V.js} +3 -3
  6. package/dist/{ClosingDraftView-CHB815at.js → ClosingDraftView-D_VtBfFG.js} +11 -11
  7. package/dist/{ClosingHistoryView-BQS52wLi.js → ClosingHistoryView-ClUnxQS2.js} +4 -4
  8. package/dist/{ClosingTemplateView-7o5xDvYi.js → ClosingTemplateView-0a_isyyx.js} +14 -14
  9. package/dist/{DeliveryOrderPrintPreview-DBWYDmhP.js → DeliveryOrderPrintPreview-DovAi6j-.js} +2 -2
  10. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-hX9rZGHP.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjNZ0m13.js} +3 -3
  11. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-4vZH2hLF.js} +2 -2
  12. package/dist/{FmMultiselectDialog-eZLmEoMJ.js → FmMultiselectDialog-B5-aK-b2.js} +1 -1
  13. package/dist/{FmMultiselectDialog-CX6Q05kY.js → FmMultiselectDialog-Z49kK96R.js} +2 -2
  14. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CNP7o7p-.js → FmUnitInput.vue_vue_type_script_setup_true_lang-zP1nS7bp.js} +4 -4
  15. package/dist/{ImportView-5F1k_NOx.js → ImportView-Dba8fJry.js} +6 -6
  16. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-COyKYsPf.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DHITBIhp.js} +1 -1
  17. package/dist/{IngredientGroupView-1kwOZDub.js → IngredientGroupView-CHi5_A4T.js} +5 -5
  18. package/dist/{IngredientsView-L50oDR5B.js → IngredientsView-DWk27PJg.js} +15 -15
  19. package/dist/{IntegrationExplorerView-BVJ3qSYS.js → IntegrationExplorerView-CixgHWVb.js} +5 -5
  20. package/dist/{IntegrationView-CwBluyeW.js → IntegrationView-fttszvyC.js} +13 -13
  21. package/dist/{InventoryBindingForm-28KU0Y69.js → InventoryBindingForm-DDcM2paa.js} +1 -1
  22. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DAxmcGtJ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DOHrtdbl.js} +5 -5
  23. package/dist/{InventoryBindingSummary-hjZLd6je.js → InventoryBindingSummary-BERshnpd.js} +1 -1
  24. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GqT3S9zo.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D4u0MM_k.js} +1 -1
  25. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-6jv1aHW-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-eFb-84g2.js} +1 -1
  26. package/dist/PublishView-COGdnDHP.js +208 -0
  27. package/dist/{PurchaseOrderPrintPreview-C_AaZuFs.js → PurchaseOrderPrintPreview-COJVgeTm.js} +2 -2
  28. package/dist/{ReceiveRequestView-sebwwuaH.js → ReceiveRequestView-DvC12_QK.js} +23 -23
  29. package/dist/{RecipeView-B39YtOhH.js → RecipeView-BKlVCFPR.js} +15 -15
  30. package/dist/{SettingsView-CFoKuaMo.js → SettingsView-DbXva8_D.js} +4 -4
  31. package/dist/{StockView-DGO3Xf6j.js → StockView-Hri6SSjn.js} +18 -18
  32. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-b6jr57r-.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DiRfjFmz.js} +1 -1
  33. package/dist/{SupplierView-Bfo4AYFs.js → SupplierView-DCMW5muk.js} +12 -12
  34. package/dist/{SurchargeView-CPuDx3I8.js → SurchargeView-DRh5EAi8.js} +6 -6
  35. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-EmbaZT8X.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-BHNIS7Pp.js} +2 -2
  36. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CMWRgrTV.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BVyoZ2a4.js} +67 -60
  37. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-_5fogvJl.js → TransferDetails.vue_vue_type_script_setup_true_lang-CMSKhz6_.js} +19 -19
  38. package/dist/{TransferTemplateView-DH1BkbUP.js → TransferTemplateView-71XY525Q.js} +17 -17
  39. package/dist/{UnitCostHistoryView-DonGH8na.js → UnitCostHistoryView-CjEaekfJ.js} +4 -4
  40. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CW3kofME.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-B8dRQhZi.js} +4 -4
  41. package/dist/{UnitView-CFBdZjSP.js → UnitView-D06txpBT.js} +7 -7
  42. package/dist/{WarehouseView-gdd1ou_Y.js → WarehouseView-DQluGq0D.js} +5 -5
  43. package/dist/{WastageTemplateView-BoMqb-zR.js → WastageTemplateView-Bqmd_r_Y.js} +14 -14
  44. package/dist/{app-QEDlYnlN.js → app-B5-QVzib.js} +11 -11
  45. package/dist/app.js +1 -1
  46. package/dist/{closing-template-CbHN15AQ.js → closing-template-C3ClR8Pj.js} +1 -1
  47. package/dist/{date2-Z-I7Kd_W.js → date2-CQCX7jCE.js} +1 -1
  48. package/dist/{dayjs.min-D4CmdyEZ.js → dayjs.min-Dhp0BWSV.js} +1 -1
  49. package/dist/{decimal-C-T875Hm.js → decimal-98G--u_X.js} +2 -2
  50. package/dist/{defineDeepModel-Ds_lq_kg.js → defineDeepModel-BmHs4vdS.js} +1 -1
  51. package/dist/{duplicate-template-CmTg7BGs.js → duplicate-template-UzmArmcM.js} +1 -1
  52. package/dist/{export-B1VAPZRx.js → export-Bdxro0GT.js} +1 -1
  53. package/dist/{feature-_WJViVjR.js → feature-DyfUPR3b.js} +2 -2
  54. package/dist/{format-time-from-id-DZ_PAFci.js → format-time-from-id-uRCD3JxF.js} +1 -1
  55. package/dist/{format-unit-display-DlODRa7k.js → format-unit-display-C-_85vuL.js} +11 -11
  56. package/dist/{import-export.helper-DVCiPtHv.js → import-export.helper-N1BqiTub.js} +6 -6
  57. package/dist/{index-BHqcJDf6.js → index-B1RZtqz-.js} +1 -1
  58. package/dist/{index-BZxwdVW1.js → index-CaREZ_vQ.js} +3 -3
  59. package/dist/{index-rghVMuZK.js → index-CwqHa5AY.js} +1 -1
  60. package/dist/{inventory-core-dart.default-ugZJdof5.js → inventory-core-dart.default-BK8f9n8e.js} +1 -1
  61. package/dist/{lodash-CgDY9U7s.js → lodash-B9tHF9A4.js} +1 -1
  62. package/dist/{lz-string-DNoTxtCy.js → lz-string-BSMjlcH9.js} +1 -1
  63. package/dist/{netsuite-B64xGIt5.js → netsuite-D4KHhWWu.js} +3 -3
  64. package/dist/{number-Bqy4-9rV.js → number-DmqVo28f.js} +3 -3
  65. package/dist/{predefined-templates-B5qmOdnZ.js → predefined-templates-Dy5hYXMM.js} +1 -1
  66. package/dist/{purchase-order-template-BxowjjVQ.js → purchase-order-template-BT3tF_gn.js} +1 -1
  67. package/dist/{rules-BkK6oJzC.js → rules-CbJ7idQa.js} +2 -2
  68. package/dist/{stock-CedueOcQ.js → stock-C9RXv-3_.js} +1 -1
  69. package/dist/{stock-lXNLY2TO.js → stock-YXoLCE8o.js} +3 -3
  70. package/dist/{supplier-BxEW6DYL.js → supplier-Duiacdig.js} +2 -2
  71. package/dist/{surcharge-_zxlHhpJ.js → surcharge-CkDK4P_6.js} +1 -1
  72. package/dist/tsconfig.app.tsbuildinfo +1 -1
  73. package/dist/{use-ingredient-select-dialog-BQFTqO6q.js → use-ingredient-select-dialog-C7uVeT1M.js} +2 -2
  74. package/dist/{use-inventory-binding-dialog-BnJKIhqC.js → use-inventory-binding-dialog-BIo9Fi-9.js} +2 -2
  75. package/dist/{use-template-enabled-locations-2-Ch5vC3Ux.js → use-template-enabled-locations-BtbfLc0y.js} +33 -21
  76. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +7 -93
  77. package/dist/{vue-i18n-taYcBeKI.js → vue-i18n-D1JHIbLE.js} +2 -2
  78. package/dist/{xlsx-BlvEsbYy.js → xlsx-BEbkruI_.js} +1 -1
  79. package/dist/{xlsx.util-B4ae3AUU.js → xlsx.util-BMTXqfxw.js} +1 -1
  80. package/package.json +3 -3
  81. package/dist/PublishView-kBqlO98G.js +0 -234
  82. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +0 -13
@@ -1,13 +1,13 @@
1
- import { defineComponent as q, ref as y, computed as r, watch as G, h as i, resolveComponent as x, openBlock as F, createElementBlock as H, createElementVNode as b, toDisplayString as J, createVNode as g, createBlock as O, createCommentVNode as Q, unref as L } from "vue";
1
+ import { defineComponent as q, ref as f, computed as r, watch as G, h as i, resolveComponent as x, openBlock as B, createElementBlock as H, createElementVNode as b, toDisplayString as J, createVNode as y, createBlock as O, createCommentVNode as Q, unref as V } from "vue";
2
2
  import { useCoreStore as W, useI18n as X } from "@feedmepos/mf-common";
3
3
  import { useSnackbar as Y, components as A } from "@feedmepos/ui-library";
4
4
  import { K as Z, D as ee } from "./app-DiX-EfV6.js";
5
- import { u as le } from "./app-QEDlYnlN.js";
5
+ import { u as le } from "./app-B5-QVzib.js";
6
6
  import { F as te } from "./FmAdminBadge-BOEV93D3.js";
7
7
  const ae = {
8
8
  class: "flex flex-col gap-24 h-full",
9
9
  style: { "max-height": "50vh" }
10
- }, oe = { class: "flex items-center flex-shrink-0" }, ne = { class: "fm-typo-en-body-lg-600 flex-1" }, se = { class: "flex gap-8" }, ie = { class: "flex flex-col gap-4 w-full flex-1 min-h-0" }, ue = { class: "flex items-center gap-8 flex-shrink-0" }, re = { class: "flex-1 border border-fm-color-border-secondary rounded-lg overflow-hidden overflow-y-auto min-h-0" }, pe = /* @__PURE__ */ q({
10
+ }, oe = { class: "flex items-center flex-shrink-0" }, ne = { class: "fm-typo-en-body-lg-600 flex-1" }, se = { class: "flex gap-8" }, ie = { class: "flex flex-col gap-4 w-full flex-1 min-h-0" }, re = { class: "flex items-center gap-8 flex-shrink-0" }, ue = { class: "flex-1 border border-fm-color-border-secondary rounded-lg overflow-hidden overflow-y-auto min-h-0" }, he = /* @__PURE__ */ q({
11
11
  __name: "TemplatePublishDialog",
12
12
  props: {
13
13
  title: {},
@@ -18,28 +18,29 @@ const ae = {
18
18
  enabledLocations: {},
19
19
  hideUnpublish: { type: Boolean }
20
20
  },
21
- setup(B) {
22
- const s = B, m = y(s.initialPublishedRev ?? {}), t = y(), n = y(/* @__PURE__ */ new Set()), V = le(), U = W(), k = Y(), $ = r(() => {
21
+ setup(U) {
22
+ const s = U, p = f(s.initialPublishedRev ?? {}), t = f(), n = f(/* @__PURE__ */ new Set()), C = le(), $ = W(), k = Y(), E = r(() => {
23
23
  var e;
24
- return ((e = U.sessionUser.value) == null ? void 0 : e.role.isAdmin) ?? !1;
25
- }), E = r(() => {
24
+ return ((e = $.sessionUser.value) == null ? void 0 : e.role.isAdmin) ?? !1;
25
+ }), S = r(() => {
26
26
  var l;
27
27
  return ((l = s.enabledLocations) != null && l.length ? s.enabledLocations : s.locations).map((a) => {
28
28
  var o;
29
- if (!!!V.locationByDbName[a.dbName])
29
+ if (!!!C.locationByDbName[a.dbName])
30
30
  return {
31
31
  ...a,
32
32
  status: "invalid"
33
33
  };
34
- const v = !!(((o = m.value) == null ? void 0 : o[a.dbName]) ?? []).find(
34
+ const v = !!(((o = p.value) == null ? void 0 : o[a.dbName]) ?? []).find(
35
35
  (_) => _._id === s.doc._id && (_.updatedAt ? _.updatedAt === s.doc.updatedAt : _._rev === s.doc._rev)
36
36
  );
37
37
  return {
38
38
  ...a,
39
- status: v ? "published" : "outdated"
39
+ status: v ? "published" : "outdated",
40
+ state: a.doc.profile.address.state
40
41
  };
41
42
  });
42
- }), { t: h } = X(), w = y(""), N = y({
43
+ }), { t: m } = X(), g = f(""), w = f({
43
44
  logic: "AND",
44
45
  rules: []
45
46
  }), D = [
@@ -48,38 +49,46 @@ const ae = {
48
49
  key: "status",
49
50
  entity: "inventory",
50
51
  values: ["published", "outdated"]
52
+ },
53
+ {
54
+ type: "string",
55
+ key: "state",
56
+ entity: "inventory",
57
+ values: [
58
+ ...new Set(C.locations.map((e) => e.doc.profile.address.state).filter(Boolean))
59
+ ]
51
60
  }
52
- ], p = r(() => {
53
- const e = w.value.toLowerCase();
54
- return E.value.filter((l) => Z(l, N.value)).filter(({ name: l, dbName: a }) => !!(!e || l.toLowerCase().includes(e) || $.value && a.toLowerCase().includes(e)));
55
- }), u = r(
56
- () => p.value.filter((e) => e.status !== "invalid")
61
+ ], u = r(() => {
62
+ const e = g.value.toLowerCase();
63
+ return S.value.filter((l) => Z(l, w.value)).filter(({ name: l, dbName: a }) => !!(!e || l.toLowerCase().includes(e) || E.value && a.toLowerCase().includes(e)));
64
+ }), N = r(
65
+ () => u.value.filter((e) => e.status !== "invalid")
57
66
  );
58
67
  G(
59
- [w, N],
68
+ [g, w],
60
69
  () => {
61
70
  n.value = /* @__PURE__ */ new Set();
62
71
  },
63
72
  { deep: !0 }
64
73
  );
65
- const S = r(() => u.value.length === 0 ? !1 : u.value.every((e) => n.value.has(e.dbName))), T = r(() => {
66
- if (u.value.length === 0) return !1;
67
- const e = u.value.filter(
74
+ const F = r(() => u.value.length === 0 ? !1 : u.value.every((e) => n.value.has(e.dbName))), T = r(() => {
75
+ if (N.value.length === 0) return !1;
76
+ const e = N.value.filter(
68
77
  (l) => n.value.has(l.dbName)
69
78
  ).length;
70
- return e > 0 && e < u.value.length;
79
+ return e > 0 && e < N.value.length;
71
80
  });
72
- function P() {
73
- S.value ? u.value.forEach((e) => n.value.delete(e.dbName)) : u.value.forEach((e) => n.value.add(e.dbName)), n.value = new Set(n.value);
81
+ function z() {
82
+ F.value ? u.value.forEach((e) => n.value.delete(e.dbName)) : u.value.forEach((e) => n.value.add(e.dbName)), n.value = new Set(n.value);
74
83
  }
75
- function z(e) {
84
+ function P(e) {
76
85
  e.status !== "invalid" && (n.value.has(e.dbName) ? n.value.delete(e.dbName) : n.value.add(e.dbName), n.value = new Set(n.value));
77
86
  }
78
- function C() {
79
- const e = p.value.filter(
87
+ function L() {
88
+ const e = u.value.filter(
80
89
  (l) => l.status !== "invalid" && n.value.has(l.dbName)
81
90
  );
82
- return e.length === 0 ? u.value : e;
91
+ return e.length === 0 ? N.value : e;
83
92
  }
84
93
  const R = r(() => [
85
94
  {
@@ -91,7 +100,7 @@ const ae = {
91
100
  return l.status === "invalid" ? i("div", { class: "w-56" }) : i(A.FmCheckbox, {
92
101
  value: l.dbName,
93
102
  modelValue: n.value.has(l.dbName),
94
- "onUpdate:modelValue": () => z(l)
103
+ "onUpdate:modelValue": () => P(l)
95
104
  });
96
105
  }
97
106
  },
@@ -125,8 +134,8 @@ const ae = {
125
134
  message: l.name,
126
135
  type: "success"
127
136
  });
128
- } catch (f) {
129
- console.error("Failed to copy:", f);
137
+ } catch (h) {
138
+ console.error("Failed to copy:", h);
130
139
  }
131
140
  }
132
141
  })
@@ -160,7 +169,7 @@ const ae = {
160
169
  t.value = `unpublish-${l.dbName}`;
161
170
  try {
162
171
  const o = await s.controller.unpublishAtLocation(l).delayed(1e3);
163
- m.value = o;
172
+ p.value = o;
164
173
  } catch (o) {
165
174
  console.error("Error unpublishing at location:", o);
166
175
  } finally {
@@ -176,7 +185,7 @@ const ae = {
176
185
  t.value = `publish-${l.dbName}`;
177
186
  try {
178
187
  const o = await s.controller.publishAtLocation(l).delayed(1e3);
179
- m.value = o;
188
+ p.value = o;
180
189
  } catch (o) {
181
190
  console.error("Error publishing at location:", o);
182
191
  } finally {
@@ -193,7 +202,7 @@ const ae = {
193
202
  a ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
194
203
  ]
195
204
  },
196
- h(a ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
205
+ m(a ? "inventory.publish.status.published" : "inventory.publish.status.outdated")
197
206
  )
198
207
  ];
199
208
  return c && v.push(c), i("div", { class: "flex items-center gap-8" }, v);
@@ -203,8 +212,8 @@ const ae = {
203
212
  async function I() {
204
213
  t.value = "all";
205
214
  try {
206
- const e = C(), l = await s.controller.publishAll(e).delayed(1e3);
207
- m.value = l;
215
+ const e = L(), l = await s.controller.publishAll(e).delayed(1e3);
216
+ p.value = l;
208
217
  } catch (e) {
209
218
  console.error("Error publishing all:", e);
210
219
  } finally {
@@ -215,8 +224,8 @@ const ae = {
215
224
  if (s.controller.unpublishAll) {
216
225
  t.value = "unpublish-all";
217
226
  try {
218
- const e = C(), l = await s.controller.unpublishAll(e).delayed(1e3);
219
- m.value = l;
227
+ const e = L(), l = await s.controller.unpublishAll(e).delayed(1e3);
228
+ p.value = l;
220
229
  } catch (e) {
221
230
  console.error("Error unpublishing all:", e);
222
231
  } finally {
@@ -224,23 +233,21 @@ const ae = {
224
233
  }
225
234
  }
226
235
  }
227
- const d = r(() => p.value.filter(
228
- (e) => e.status !== "invalid" && n.value.has(e.dbName)
229
- ).length), M = r(() => d.value === 0 || d.value === u.value.length ? h("inventory.publish.actions.publishAll") : h("inventory.publish.actions.publishSelected", { count: d.value })), j = r(() => d.value === 0 || d.value === u.value.length ? "Unpublish all" : `Unpublish selected ${d.value} location${d.value === 1 ? "" : "s"}`);
236
+ const d = r(() => n.value.size), M = r(() => d.value === 0 || d.value === S.value.length ? m("inventory.publish.actions.publishAll") : m("inventory.publish.actions.publishSelected", { count: d.value })), j = r(() => d.value === 0 || d.value === S.value.length ? "Unpublish all" : `Unpublish selected ${d.value} location${d.value === 1 ? "" : "s"}`);
230
237
  return (e, l) => {
231
- const a = x("FmButton"), f = x("FmTextField"), c = x("FmCheckbox"), v = x("FmTable");
232
- return F(), H("div", ae, [
238
+ const a = x("FmButton"), h = x("FmTextField"), c = x("FmCheckbox"), v = x("FmTable");
239
+ return B(), H("div", ae, [
233
240
  b("div", oe, [
234
241
  b("div", ne, J(e.title), 1),
235
242
  b("div", se, [
236
- g(a, {
243
+ y(a, {
237
244
  label: M.value,
238
245
  variant: "secondary",
239
246
  onClick: l[0] || (l[0] = (o) => I()),
240
247
  loading: t.value === "all",
241
248
  disabled: t.value !== "all" && t.value !== void 0
242
249
  }, null, 8, ["label", "loading", "disabled"]),
243
- e.controller.unpublishAll && !e.hideUnpublish ? (F(), O(a, {
250
+ e.controller.unpublishAll && !e.hideUnpublish ? (B(), O(a, {
244
251
  key: 0,
245
252
  label: j.value,
246
253
  variant: "tertiary",
@@ -251,34 +258,34 @@ const ae = {
251
258
  ])
252
259
  ]),
253
260
  b("div", ie, [
254
- g(f, {
255
- modelValue: w.value,
256
- "onUpdate:modelValue": l[2] || (l[2] = (o) => w.value = o),
261
+ y(h, {
262
+ modelValue: g.value,
263
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => g.value = o),
257
264
  class: "w-full flex-shrink-0",
258
- placeholder: L(h)("inventory.publish.search.placeholder"),
265
+ placeholder: V(m)("inventory.publish.search.placeholder"),
259
266
  "prepend-icon": "search"
260
267
  }, null, 8, ["modelValue", "placeholder"]),
261
- b("div", ue, [
262
- g(L(ee), {
263
- modelValue: N.value,
264
- "onUpdate:modelValue": l[3] || (l[3] = (o) => N.value = o),
268
+ b("div", re, [
269
+ y(V(ee), {
270
+ modelValue: w.value,
271
+ "onUpdate:modelValue": l[3] || (l[3] = (o) => w.value = o),
265
272
  attributes: D
266
273
  }, null, 8, ["modelValue"]),
267
- g(c, {
274
+ y(c, {
268
275
  value: "select-all",
269
- "model-value": S.value,
276
+ "model-value": F.value,
270
277
  indeterminate: T.value,
271
- "onUpdate:modelValue": P,
278
+ "onUpdate:modelValue": z,
272
279
  label: "Select all"
273
280
  }, null, 8, ["model-value", "indeterminate"])
274
281
  ]),
275
- b("div", re, [
276
- g(v, {
277
- "row-data": p.value,
282
+ b("div", ue, [
283
+ y(v, {
284
+ "row-data": u.value,
278
285
  "column-defs": R.value,
279
286
  "shrink-at": 9999,
280
287
  virtual: !0,
281
- "page-size": p.value.length,
288
+ "page-size": u.value.length,
282
289
  "hide-footer": ""
283
290
  }, null, 8, ["row-data", "column-defs", "page-size"])
284
291
  ])
@@ -288,5 +295,5 @@ const ae = {
288
295
  }
289
296
  });
290
297
  export {
291
- pe as _
298
+ he as _
292
299
  };
@@ -1,31 +1,31 @@
1
1
  import { defineComponent as De, ref as G, watch as Ke, nextTick as Ut, openBlock as i, createBlock as ie, Teleport as jt, createElementBlock as b, withModifiers as Bt, createElementVNode as e, normalizeClass as je, toDisplayString as p, createCommentVNode as U, unref as d, withDirectives as zt, vModelText as Kt, toRaw as Ht, shallowRef as St, onUnmounted as Wt, triggerRef as Gt, computed as Z, readonly as Yt, h as z, reactive as Qt, onMounted as Nt, resolveComponent as X, withCtx as oe, createVNode as L, Fragment as fe, renderList as ke, createTextVNode as Pe, isRef as Jt, resolveDynamicComponent as Xt } from "vue";
2
- import { f as Zt, h as er, r as tr, s as rr } from "./predefined-templates-B5qmOdnZ.js";
3
- import { f as tt, p as sr } from "./format-time-from-id-DZ_PAFci.js";
2
+ import { f as Zt, h as er, r as tr, s as rr } from "./predefined-templates-Dy5hYXMM.js";
3
+ import { f as tt, p as sr } from "./format-time-from-id-uRCD3JxF.js";
4
4
  import { c as Ot } from "./component-kqxARxvM.js";
5
5
  import { D as xe, R as ue } from "./row-action.enum-Co_O4qD9.js";
6
- import { I as Ye, o as or, u as Te, W as q, X as lt, Q as ae, a as nr, Y as wt, Z as ar, _ as lr, H as ir, c as At, v as ht, s as Ce, $ as Pt, t as Ze, D as st, y as Ue, E as Me } from "./app-QEDlYnlN.js";
7
- import { j as cr, c as ur, a as be, t as ot, d as Je } from "./number-Bqy4-9rV.js";
8
- import { F as dr } from "./decimal-C-T875Hm.js";
9
- import { h as _t, t as mr, d as pr, a as et } from "./date2-Z-I7Kd_W.js";
10
- import { F as Xe, c as fr, a as mt } from "./inventory-core-dart.default-ugZJdof5.js";
11
- import { L as yr } from "./lz-string-DNoTxtCy.js";
6
+ import { I as Ye, o as or, u as Te, W as q, X as lt, Q as ae, a as nr, Y as wt, Z as ar, _ as lr, H as ir, c as At, v as ht, s as Ce, $ as Pt, t as Ze, D as st, y as Ue, E as Me } from "./app-B5-QVzib.js";
7
+ import { j as cr, c as ur, a as be, t as ot, d as Je } from "./number-DmqVo28f.js";
8
+ import { F as dr } from "./decimal-98G--u_X.js";
9
+ import { h as _t, t as mr, d as pr, a as et } from "./date2-CQCX7jCE.js";
10
+ import { F as Xe, c as fr, a as mt } from "./inventory-core-dart.default-BK8f9n8e.js";
11
+ import { L as yr } from "./lz-string-BSMjlcH9.js";
12
12
  import { useI18n as it, useCoreStore as ct, validatePermission as vr, Permission as Ct } from "@feedmepos/mf-common";
13
- import { u as ut, a as xt, S as Ne } from "./netsuite-B64xGIt5.js";
13
+ import { u as ut, a as xt, S as Ne } from "./netsuite-D4KHhWWu.js";
14
14
  import { useDialog as dt, useSnackbar as He, components as nt, FmButtonVariant as we, useProxiedModel as br } from "@feedmepos/ui-library";
15
15
  import { F as Be } from "./FmAdminBadge-BOEV93D3.js";
16
- import { u as Ee } from "./feature-_WJViVjR.js";
16
+ import { u as Ee } from "./feature-DyfUPR3b.js";
17
17
  import { E as gr } from "./empty-placeholder-wf6-BWE8.js";
18
- import { u as hr, a as _r, f as xr } from "./format-unit-display-DlODRa7k.js";
19
- import { u as We, _ as Sr } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-EmbaZT8X.js";
20
- import { _ as Or, a as wr, b as Cr } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CNP7o7p-.js";
18
+ import { u as hr, a as _r, f as xr } from "./format-unit-display-C-_85vuL.js";
19
+ import { u as We, _ as Sr } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-BHNIS7Pp.js";
20
+ import { _ as Or, a as wr, b as Cr } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-zP1nS7bp.js";
21
21
  import { u as Dr, R as Dt } from "./usePromise-CbVUCxhj.js";
22
- import { c as $r } from "./index-BZxwdVW1.js";
23
- import { i as kr } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js";
22
+ import { c as $r } from "./index-CaREZ_vQ.js";
23
+ import { i as kr } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-4vZH2hLF.js";
24
24
  import { F as $t } from "./form-mode.enum-BKiNVH6A.js";
25
- import { u as Rr } from "./supplier-BxEW6DYL.js";
26
- import { u as Nr } from "./surcharge-_zxlHhpJ.js";
27
- import { d as Tt } from "./defineDeepModel-Ds_lq_kg.js";
28
- import { u as Ar } from "./vue-i18n-taYcBeKI.js";
25
+ import { u as Rr } from "./supplier-Duiacdig.js";
26
+ import { u as Nr } from "./surcharge-CkDK4P_6.js";
27
+ import { d as Tt } from "./defineDeepModel-BmHs4vdS.js";
28
+ import { u as Ar } from "./vue-i18n-D1JHIbLE.js";
29
29
  function Ft(f, r) {
30
30
  return r.reduce(
31
31
  (l, c) => {
@@ -1,28 +1,28 @@
1
1
  import { defineComponent as ae, onMounted as Fe, computed as N, ref as H, watch as Ce, inject as ot, resolveComponent as V, openBlock as S, createElementBlock as L, createElementVNode as e, createVNode as c, withCtx as B, renderSlot as xe, withDirectives as qe, normalizeClass as re, vModelText as Pe, reactive as st, h as Q, toDisplayString as I, unref as t, createCommentVNode as oe, Fragment as pe, normalizeStyle as ke, renderList as Qe, createBlock as ne, mergeProps as Ye, createTextVNode as le, mergeModels as Le, useModel as nt, isRef as He, Teleport as lt, normalizeProps as at, guardReactiveProps as rt } from "vue";
2
2
  import { u as it, _ as ut } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
3
3
  import { useI18n as me } from "@feedmepos/mf-common";
4
- import { f as dt, t as mt, u as Ne, a as pt } from "./format-unit-display-DlODRa7k.js";
4
+ import { f as dt, t as mt, u as Ne, a as pt } from "./format-unit-display-C-_85vuL.js";
5
5
  import { R as Ee } from "./row-action.enum-Co_O4qD9.js";
6
- import { a as We, s as ct, t as X, u as Ge, v as ft, k as ye } from "./app-QEDlYnlN.js";
7
- import { _ as yt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js";
6
+ import { a as We, s as ct, t as X, u as Ge, v as ft, k as ye } from "./app-B5-QVzib.js";
7
+ import { _ as yt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-4vZH2hLF.js";
8
8
  import { components as ue, useSnackbar as vt, useProxiedModel as Ke, useBreakpoints as bt } from "@feedmepos/ui-library";
9
9
  import { defineStore as gt, storeToRefs as ze } from "pinia";
10
10
  import { F as de } from "./form-mode.enum-BKiNVH6A.js";
11
- import { I as ht, a as _t, R as we, A as Te, M as xt } from "./rules-BkK6oJzC.js";
12
- import { u as he, t as je, b as kt, n as wt, a as se, g as be, c as ve, d as Tt } from "./number-Bqy4-9rV.js";
13
- import { d as Ze } from "./defineDeepModel-Ds_lq_kg.js";
14
- import { _ as Ft, F as Ct, a as It, b as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-CNP7o7p-.js";
15
- import { u as ge } from "./feature-_WJViVjR.js";
16
- import { u as Je } from "./netsuite-B64xGIt5.js";
17
- import { F as _e } from "./inventory-core-dart.default-ugZJdof5.js";
18
- import { u as $t } from "./supplier-BxEW6DYL.js";
19
- import { u as St } from "./use-ingredient-select-dialog-BQFTqO6q.js";
11
+ import { I as ht, a as _t, R as we, A as Te, M as xt } from "./rules-CbJ7idQa.js";
12
+ import { u as he, t as je, b as kt, n as wt, a as se, g as be, c as ve, d as Tt } from "./number-DmqVo28f.js";
13
+ import { d as Ze } from "./defineDeepModel-BmHs4vdS.js";
14
+ import { _ as Ft, F as Ct, a as It, b as Mt } from "./FmUnitInput.vue_vue_type_script_setup_true_lang-zP1nS7bp.js";
15
+ import { u as ge } from "./feature-DyfUPR3b.js";
16
+ import { u as Je } from "./netsuite-D4KHhWWu.js";
17
+ import { F as _e } from "./inventory-core-dart.default-BK8f9n8e.js";
18
+ import { u as $t } from "./supplier-Duiacdig.js";
19
+ import { u as St } from "./use-ingredient-select-dialog-C7uVeT1M.js";
20
20
  import { F as ee, _ as Xe } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
21
- import { u as Ot } from "./use-template-enabled-locations-2-Ch5vC3Ux.js";
22
- import { u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-hX9rZGHP.js";
23
- import { u as At } from "./purchase-order-template-BxowjjVQ.js";
24
- import { f as Rt } from "./format-time-from-id-DZ_PAFci.js";
25
- import { f as Bt } from "./date2-Z-I7Kd_W.js";
21
+ import { u as Ot } from "./use-template-enabled-locations-BtbfLc0y.js";
22
+ import { u as Dt, _ as Vt } from "./FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjNZ0m13.js";
23
+ import { u as At } from "./purchase-order-template-BT3tF_gn.js";
24
+ import { f as Rt } from "./format-time-from-id-uRCD3JxF.js";
25
+ import { f as Bt } from "./date2-CQCX7jCE.js";
26
26
  const Ut = { class: "flex flex-col" }, qt = { class: "flex flex-col" }, Pt = { class: "flex-1" }, Lt = { class: "flex items-center" }, Nt = { class: "flex-1" }, Et = { class: "flex-1" }, zt = /* @__PURE__ */ ae({
27
27
  __name: "FmMinMaxInput",
28
28
  props: {
@@ -1,11 +1,11 @@
1
1
  import { ref as h, defineComponent as Q, computed as b, resolveComponent as L, openBlock as u, createElementBlock as g, createVNode as p, withModifiers as oe, withCtx as A, createElementVNode as t, toDisplayString as n, unref as r, Fragment as O, createTextVNode as H, createCommentVNode as F, createBlock as T, renderList as se, normalizeClass as E, normalizeStyle as ae, Teleport as X } from "vue";
2
2
  import { u as ne, _ as le } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
3
- import { o as re, u as J, a as Z } from "./app-QEDlYnlN.js";
3
+ import { o as re, u as J, a as Z } from "./app-B5-QVzib.js";
4
4
  import { useSnackbar as q, useBreakpoints as ie } from "@feedmepos/ui-library";
5
- import { _ as ce } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js";
5
+ import { _ as ce } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-4vZH2hLF.js";
6
6
  import { useI18n as ee, useCoreStore as ue } from "@feedmepos/mf-common";
7
- import { b as Y } from "./date2-Z-I7Kd_W.js";
8
- import { d as j } from "./number-Bqy4-9rV.js";
7
+ import { b as Y } from "./date2-CQCX7jCE.js";
8
+ import { d as j } from "./number-DmqVo28f.js";
9
9
  import { F as de } from "./FmAdminBadge-BOEV93D3.js";
10
10
  import { P as me, J as fe } from "./app-DiX-EfV6.js";
11
11
  const te = re((w, _) => {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as U, ref as y, computed as v, resolveComponent as p, openBlock as d, createBlock as _, withCtx as g, createElementVNode as b, normalizeClass as D, toDisplayString as F, createVNode as I, createElementBlock as $, Fragment as E, renderList as B, unref as k } from "vue";
2
- import { g as m } from "./decimal-C-T875Hm.js";
3
- import { d as L } from "./dayjs.min-D4CmdyEZ.js";
4
- import { e as Y } from "./export-B1VAPZRx.js";
5
- import { u as h } from "./app-QEDlYnlN.js";
2
+ import { g as m } from "./decimal-98G--u_X.js";
3
+ import { d as L } from "./dayjs.min-Dhp0BWSV.js";
4
+ import { e as Y } from "./export-Bdxro0GT.js";
5
+ import { u as h } from "./app-B5-QVzib.js";
6
6
  async function z(o) {
7
7
  const r = `${(h().currentLocation.name || "").replace(
8
8
  / /g,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as O, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as K, renderList as G, toDisplayString as h, createCommentVNode as Q, ref as I, watch as oe, resolveComponent as $, createBlock as T, withCtx as A, createVNode as f, unref as i, isRef as le, normalizeClass as me, normalizeStyle as ce, Teleport as pe, normalizeProps as ve, guardReactiveProps as fe } from "vue";
2
- import { a as Y, S as ye, c as ie, y as be, j as se, u as ge } from "./app-QEDlYnlN.js";
2
+ import { a as Y, S as ye, c as ie, y as be, j as se, u as ge } from "./app-B5-QVzib.js";
3
3
  import { useDialog as ue, useSnackbar as Z, useProxiedModel as ae, useBreakpoints as xe } from "@feedmepos/ui-library";
4
4
  import { i as _e, _ as he } from "./is-linked-ingredient-error-fJ2TJb3z.js";
5
5
  import { F as U } from "./form-mode.enum-BKiNVH6A.js";
@@ -8,13 +8,13 @@ import { D as re, R as q } from "./row-action.enum-Co_O4qD9.js";
8
8
  import { c as we } from "./component-kqxARxvM.js";
9
9
  import { useI18n as J } from "@feedmepos/mf-common";
10
10
  import { u as Ce, _ as Se } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
11
- import { R as H, A as Fe, c as ke } from "./rules-BkK6oJzC.js";
12
- import { a as W, c as Ee } from "./number-Bqy4-9rV.js";
13
- import { F as $e } from "./decimal-C-T875Hm.js";
14
- import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GqT3S9zo.js";
11
+ import { R as H, A as Fe, c as ke } from "./rules-CbJ7idQa.js";
12
+ import { a as W, c as Ee } from "./number-DmqVo28f.js";
13
+ import { F as $e } from "./decimal-98G--u_X.js";
14
+ import { _ as Ie } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D4u0MM_k.js";
15
15
  import { _ as Ae, F as De } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
16
- import { _ as Re } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js";
17
- import { u as Me } from "./netsuite-B64xGIt5.js";
16
+ import { _ as Re } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-4vZH2hLF.js";
17
+ import { u as Me } from "./netsuite-D4KHhWWu.js";
18
18
  const Pe = { class: "flex flex-col gap-8" }, Te = {
19
19
  key: 0,
20
20
  class: "flex flex-col"
@@ -1,19 +1,19 @@
1
1
  import { ref as D, defineComponent as j, watch as ee, onMounted as te, onUnmounted as $e, openBlock as W, createElementBlock as B, toRaw as we, reactive as Se, createElementVNode as g, toDisplayString as E, unref as u, createVNode as k, resolveComponent as N, createSlots as Te, withCtx as I, createTextVNode as Me, renderSlot as De, createBlock as z, createCommentVNode as ae, computed as $, isRef as Ve, normalizeClass as We, normalizeStyle as Re } from "vue";
2
- import { o as Pe, p as Ue, q as Ee, c as G, r as Ne, S as Le, u as Ie } from "./app-QEDlYnlN.js";
2
+ import { o as Pe, p as Ue, q as Ee, c as G, r as Ne, S as Le, u as Ie } from "./app-B5-QVzib.js";
3
3
  import { useCoreStore as Fe, useI18n as O } from "@feedmepos/mf-common";
4
4
  import { D as _e, R as J } from "./row-action.enum-Co_O4qD9.js";
5
5
  import { c as qe } from "./component-kqxARxvM.js";
6
6
  import { u as Be, _ as ze } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
7
7
  import { F as U } from "./form-mode.enum-BKiNVH6A.js";
8
8
  import { useDialogChild as je, useDialog as Ce, useSnackbar as le, useProxiedModel as oe, useBreakpoints as Oe } from "@feedmepos/ui-library";
9
- import { R as L } from "./rules-BkK6oJzC.js";
9
+ import { R as L } from "./rules-CbJ7idQa.js";
10
10
  import { c as se, u as re } from "./googlemap-Dm8ERVai.js";
11
- import { d as Ge } from "./index-BHqcJDf6.js";
11
+ import { d as Ge } from "./index-B1RZtqz-.js";
12
12
  import { _ as Ke } from "./_plugin-vue_export-helper-CHgC5LLL.js";
13
13
  import { _ as He } from "./FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js";
14
- import { u as Ye } from "./feature-_WJViVjR.js";
14
+ import { u as Ye } from "./feature-DyfUPR3b.js";
15
15
  import { _ as Ze, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
16
- import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js";
16
+ import { _ as Je } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-4vZH2hLF.js";
17
17
  const X = Pe((v, h) => {
18
18
  const b = Fe();
19
19
  return {
@@ -2,26 +2,26 @@ import { ref as R, h as E, defineComponent as Y, resolveComponent as M, openBloc
2
2
  import { u as et, _ as tt } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-CkPuJQWF.js";
3
3
  import { useI18n as G, useCoreStore as Ue } from "@feedmepos/mf-common";
4
4
  import { D as ae, R as B } from "./row-action.enum-Co_O4qD9.js";
5
- import { _ as nt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DLo83JRe.js";
5
+ import { _ as nt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-4vZH2hLF.js";
6
6
  import { useDialog as X, useDialogChild as ot, useSnackbar as ue, FmButtonVariant as q, components as H, useProxiedModel as Le, useBreakpoints as st } from "@feedmepos/ui-library";
7
7
  import { defineStore as Ne, storeToRefs as Be } from "pinia";
8
8
  import { _ as at, F as le } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-Ca_eYa8-.js";
9
- import { u as ye, c as ze, a as Z, K as L, n as lt, G as pe } from "./app-QEDlYnlN.js";
9
+ import { u as ye, c as ze, a as Z, K as L, n as lt, G as pe } from "./app-B5-QVzib.js";
10
10
  import { F as J } from "./form-mode.enum-BKiNVH6A.js";
11
11
  import { c as rt } from "./component-kqxARxvM.js";
12
- import { f as it } from "./format-time-from-id-DZ_PAFci.js";
13
- import { u as ce } from "./closing-template-CbHN15AQ.js";
14
- import { _ as Ee } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CMWRgrTV.js";
15
- import { t as fe, a as Oe, d as He, s as We, r as ut } from "./xlsx.util-B4ae3AUU.js";
16
- import { f as ct, a as mt } from "./date2-Z-I7Kd_W.js";
17
- import { u as dt } from "./netsuite-B64xGIt5.js";
12
+ import { f as it } from "./format-time-from-id-uRCD3JxF.js";
13
+ import { u as ce } from "./closing-template-C3ClR8Pj.js";
14
+ import { _ as Ee } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BVyoZ2a4.js";
15
+ import { t as fe, a as Oe, d as He, s as We, r as ut } from "./xlsx.util-BMTXqfxw.js";
16
+ import { f as ct, a as mt } from "./date2-CQCX7jCE.js";
17
+ import { u as dt } from "./netsuite-D4KHhWWu.js";
18
18
  import { F as pt } from "./FmDroppableField-J0xUsOTV.js";
19
- import { u as ft } from "./duplicate-template-CmTg7BGs.js";
20
- import { A as vt, R as Ke } from "./rules-BkK6oJzC.js";
21
- import { d as yt } from "./defineDeepModel-Ds_lq_kg.js";
22
- import { u as ht } from "./use-template-enabled-locations-2-Ch5vC3Ux.js";
23
- import { a as gt } from "./FmMultiselectDialog-CX6Q05kY.js";
24
- import { _ as bt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-EmbaZT8X.js";
19
+ import { u as ft } from "./duplicate-template-UzmArmcM.js";
20
+ import { A as vt, R as Ke } from "./rules-CbJ7idQa.js";
21
+ import { d as yt } from "./defineDeepModel-BmHs4vdS.js";
22
+ import { u as ht } from "./use-template-enabled-locations-BtbfLc0y.js";
23
+ import { a as gt } from "./FmMultiselectDialog-Z49kK96R.js";
24
+ import { _ as bt } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-BHNIS7Pp.js";
25
25
  import { _ as _t } from "./_plugin-vue_export-helper-CHgC5LLL.js";
26
26
  const me = Ne(
27
27
  "wastageTable",