@feedmepos/mf-inventory-portal 1.2.30-dev.1 → 1.2.30

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 (84) hide show
  1. package/dist/{App-kX4bqoEe.js → App-CZJre5y8.js} +57 -55
  2. package/dist/{ApprovalView-DCNKqVE2.js → ApprovalView-CnxHxojY.js} +34 -28
  3. package/dist/{BindingsDialog-d7f1f8gf.js → BindingsDialog-C6lCOPNs.js} +2 -2
  4. package/dist/{BindingsPicker-2HJOx0QW.js → BindingsPicker-DZtFKLQ5.js} +6 -5
  5. package/dist/{BindingsTable-CPAjxOZG.js → BindingsTable-BmQGLuJ4.js} +28 -24
  6. package/dist/{ClosingDraftView-CUng41eo.js → ClosingDraftView-KLtlh31f.js} +183 -175
  7. package/dist/{ClosingHistoryView-CcGc2NwU.js → ClosingHistoryView-Rf1yMhMj.js} +43 -41
  8. package/dist/ClosingTemplateView-C_IiKnGx.js +2019 -0
  9. package/dist/{DeliveryOrderPrintPreview-BsM-CCc5.js → DeliveryOrderPrintPreview-UF7V005U.js} +15 -14
  10. package/dist/FmDroppableField-J0xUsOTV.js +154 -0
  11. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-cuggJ5Xd.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcMvEdc0.js} +74 -72
  12. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CqAeF0wL.js +279 -0
  13. package/dist/{FmMultiselectDialog-BGbrqXUF.js → FmMultiselectDialog-B0aKuf2o.js} +1 -1
  14. package/dist/FmMultiselectDialog-BasrjBFA.js +597 -0
  15. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-isogcN1O.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CaYJJkXz.js} +51 -49
  16. package/dist/{ImportView-wAVrMEwL.js → ImportView-DRSoz0uM.js} +81 -74
  17. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DVUF4I2Q.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DA8SlWPy.js} +5 -5
  18. package/dist/{IngredientGroupView-BZczeXdL.js → IngredientGroupView-D5Laak2-.js} +73 -65
  19. package/dist/{IngredientsView-D5N5Y1ZY.js → IngredientsView-TG3fPQhR.js} +358 -345
  20. package/dist/{IntegrationView-Hrslmuc1.js → IntegrationView-CElpjyo7.js} +219 -209
  21. package/dist/{InventoryBindingForm-DH6wgxOG.js → InventoryBindingForm-CBgxRYBd.js} +1 -1
  22. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-Drr5vD6f.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Ys5GBHoQ.js} +41 -40
  23. package/dist/{InventoryBindingSummary-BU1ehpQZ.js → InventoryBindingSummary-OK3vNWhi.js} +1 -1
  24. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1ueC4GfZ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-9QRntUlk.js} +5 -5
  25. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-FHcU1zZt.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bc01NoOn.js} +22 -21
  26. package/dist/{PublishView-CQtj0f31.js → PublishView-CLMfiLjP.js} +26 -23
  27. package/dist/{PurchaseOrderPrintPreview-BQyXtHST.js → PurchaseOrderPrintPreview-Dy77yWDC.js} +10 -9
  28. package/dist/{ReceiveRequestView-Dm-h_SrY.js → ReceiveRequestView-BhD-NaHE.js} +478 -462
  29. package/dist/{RecipeView-DNNRvr1w.js → RecipeView-RWaO94w_.js} +73 -64
  30. package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js +251 -0
  31. package/dist/{StockView-CaOm5BCx.js → StockView-D5t8OxaG.js} +292 -282
  32. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Z91XRszD.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-3Asf1TGd.js} +1 -1
  33. package/dist/{SupplierView-JSII9qwL.js → SupplierView-DiospFKq.js} +92 -80
  34. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DfCHteOF.js +177 -0
  35. package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +135 -0
  36. package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CNtvx-LA.js +123 -0
  37. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-Mehd4lGs.js → TransferDetails.vue_vue_type_script_setup_true_lang-p959Op4k.js} +318 -305
  38. package/dist/{TransferTemplateView-DyCpNKJd.js → TransferTemplateView-ePZFdZ0p.js} +228 -216
  39. package/dist/{UnitView-CqN7mlJ2.js → UnitView-Banlxw7y.js} +70 -63
  40. package/dist/{WarehouseView-gFWD-m8e.js → WarehouseView-BL-p5hbi.js} +123 -114
  41. package/dist/WastageTemplateView-B1pmSuW0.js +2288 -0
  42. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  43. package/dist/app-EpEEb8EO.js +64040 -0
  44. package/dist/app-rgirz_52.js +8024 -0
  45. package/dist/app.d.ts +0 -21
  46. package/dist/app.js +6 -6
  47. package/dist/closing-template-zIjwO1_E.js +117 -0
  48. package/dist/date2-Dnc8Y81g.js +116 -0
  49. package/dist/dayjs.min-TdUgzmww.js +282 -0
  50. package/dist/{decimal-DfF_g5rc.js → decimal-C6s3GvGb.js} +4 -3
  51. package/dist/defineDeepModel-BSaaXVBF.js +19 -0
  52. package/dist/duplicate-template-Bw0H416G.js +34 -0
  53. package/dist/feature-C95Hao53.js +20162 -0
  54. package/dist/form-mode.enum-BKiNVH6A.js +4 -0
  55. package/dist/format-time-from-id-DlbHo6kY.js +15 -0
  56. package/dist/{format-unit-display-ivAljvlo.js → format-unit-display-QBS54q0R.js} +308 -297
  57. package/dist/{import-export.helper-B2MWv9v7.js → import-export.helper-CUKCKtP7.js} +56 -52
  58. package/dist/index-CFn_9RMm.js +45 -0
  59. package/dist/{index-DZaT0ZaL.js → index-S9Ak__QC.js} +1 -1
  60. package/dist/{index-BbhuWHyh.js → index-goD-WGVb.js} +16 -14
  61. package/dist/lodash-gq8IrP4j.js +3678 -0
  62. package/dist/netsuite-CnhAKyAO.js +4316 -0
  63. package/dist/{purchase-order-template-DdybMC_P.js → purchase-order-template-CBIpWdEW.js} +1 -1
  64. package/dist/router/shared.spec.d.ts +1 -0
  65. package/dist/row-action.enum-BcW_L_nE.js +67 -0
  66. package/dist/rules-DKklsaS1.js +201 -0
  67. package/dist/{stock-BYagIdsj.js → stock-3K93Mif9.js} +1 -1
  68. package/dist/{stock-V4ciPiBe.js → stock-BW8fen3H.js} +11 -10
  69. package/dist/style.css +1 -1
  70. package/dist/{supplier-CgtB1I9I.js → supplier-CObCSfot.js} +27 -26
  71. package/dist/tsconfig.app.tsbuildinfo +1 -1
  72. package/dist/{use-ingredient-select-dialog-BIQovyZX.js → use-ingredient-select-dialog-DwvQiaVW.js} +4 -3
  73. package/dist/{use-inventory-binding-dialog-DyjicXgc.js → use-inventory-binding-dialog-CuLEHLDM.js} +4 -3
  74. package/dist/use-template-enabled-locations-2-DkUJeppb.js +111 -0
  75. package/dist/views/adjustment-template/wastage-template/table.d.ts +1 -1
  76. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +0 -1
  77. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +1 -13
  78. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +0 -12
  79. package/dist/vue-i18n-CUznvVzc.js +2365 -0
  80. package/dist/xlsx-bT1p3YVR.js +24004 -0
  81. package/dist/xlsx.util-Cr9DpDFb.js +78 -0
  82. package/package.json +5 -5
  83. package/dist/ClosingTemplateView-D8IAdhDb.js +0 -2041
  84. package/dist/app-CnQ49Lyb.js +0 -131483
@@ -0,0 +1,279 @@
1
+ import { defineComponent as I, computed as g, ref as z, resolveComponent as h, openBlock as n, createElementBlock as y, createVNode as _, withCtx as L, createElementVNode as f, toDisplayString as Y, unref as u, createBlock as p, createCommentVNode as w, Fragment as $, renderList as R, watch as E, mergeModels as O, useModel as C, renderSlot as H, normalizeClass as S } from "vue";
2
+ import { useCoreStore as W, useI18n as P } from "@feedmepos/mf-common";
3
+ import { u as q } from "./app-EpEEb8EO.js";
4
+ import { d as U } from "./date2-Dnc8Y81g.js";
5
+ import { useBreakpoints as G } from "@feedmepos/ui-library";
6
+ import { u as J, F as K } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DY7TaxPK.js";
7
+ import { b as A } from "./app-rgirz_52.js";
8
+ const X = { class: "inline-flex" }, Z = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, ee = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, te = { class: "relative" }, oe = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, ne = /* @__PURE__ */ I({
9
+ __name: "ChangeLocationComponent",
10
+ props: {
11
+ showBusiness: { type: Boolean }
12
+ },
13
+ setup(i) {
14
+ const o = q(), m = W(), c = g(() => {
15
+ var e;
16
+ return (e = m.currentBusiness.value) == null ? void 0 : e.name;
17
+ }), { t: v } = P(), d = z(""), a = g({
18
+ get() {
19
+ return o.businessLevel;
20
+ },
21
+ set(e) {
22
+ o.businessLevel = e;
23
+ }
24
+ }), b = g(
25
+ () => o.locations.map((e) => ({ label: e.name, value: e.dbName, type: e.type })).filter(
26
+ (e) => d.value ? e.label.toLocaleLowerCase().includes(d.value.toLocaleLowerCase()) : !0
27
+ )
28
+ ), l = g(
29
+ () => b.value.filter((e) => e.type === "restaurant")
30
+ ), s = g(
31
+ () => b.value.filter((e) => e.type === "warehouse")
32
+ );
33
+ function B({ value: e }) {
34
+ a.value = !1, o.selectLocation(o.locations.find((t) => t.dbName === e));
35
+ }
36
+ return (e, t) => {
37
+ const M = h("FmIcon"), Q = h("FmSearch"), D = h("FmMenuItem"), j = h("FmMenu");
38
+ return n(), y("div", X, [
39
+ _(j, { "close-on-click": !0 }, {
40
+ "menu-button": L(() => {
41
+ var r;
42
+ return [
43
+ f("div", Z, [
44
+ _(M, {
45
+ name: e.showBusiness && a.value ? "store" : "storefront",
46
+ size: "sm"
47
+ }, null, 8, ["name"]),
48
+ f("div", ee, Y(e.showBusiness && a.value ? c.value : ((r = u(o)._currentLocation) == null ? void 0 : r.name) ?? u(v)("inventory.common.noLocationSelected")), 1),
49
+ _(M, {
50
+ name: "expand_more",
51
+ size: "sm"
52
+ })
53
+ ])
54
+ ];
55
+ }),
56
+ default: L(() => [
57
+ f("div", te, [
58
+ f("div", oe, [
59
+ _(Q, {
60
+ "model-value": d.value,
61
+ "onUpdate:modelValue": t[0] || (t[0] = (r) => d.value = r),
62
+ placeholder: u(v)("inventory.common.table.toolbar.filterItems")
63
+ }, null, 8, ["model-value", "placeholder"])
64
+ ]),
65
+ f("div", null, [
66
+ e.showBusiness ? (n(), p(D, {
67
+ key: 0,
68
+ "model-value": a.value,
69
+ label: c.value,
70
+ sublabel: "Business",
71
+ onClick: t[1] || (t[1] = (r) => a.value = !0)
72
+ }, null, 8, ["model-value", "label"])) : w("", !0),
73
+ (n(!0), y($, null, R(l.value, (r) => {
74
+ var V;
75
+ return n(), p(D, {
76
+ key: r.value,
77
+ "model-value": !a.value && ((V = u(o)._currentLocation) == null ? void 0 : V.dbName) === r.value,
78
+ label: r.label,
79
+ sublabel: "Restaurant",
80
+ onClick: (k) => B(r),
81
+ onVnodeMounted: (k) => {
82
+ var F, x, N;
83
+ return !a.value && ((F = u(o)._currentLocation) == null ? void 0 : F.dbName) === r.value && ((x = k.el) == null || x.scrollIntoView({ behavior: "instant", block: "end" }), (N = k.el) == null || N.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
84
+ }
85
+ }, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
86
+ }), 128)),
87
+ (n(!0), y($, null, R(s.value, (r) => {
88
+ var V;
89
+ return n(), p(D, {
90
+ key: r.value,
91
+ "model-value": !a.value && ((V = u(o)._currentLocation) == null ? void 0 : V.dbName) === r.value,
92
+ label: r.label,
93
+ sublabel: "Warehouse",
94
+ onClick: (k) => B(r),
95
+ onVnodeMounted: (k) => {
96
+ var F, x;
97
+ return !a.value && ((F = u(o)._currentLocation) == null ? void 0 : F.dbName) === r.value && ((x = k.el) == null || x.scrollIntoView({ behavior: "smooth", block: "center" })), void 0;
98
+ }
99
+ }, null, 8, ["model-value", "label", "onClick", "onVnodeMounted"]);
100
+ }), 128)),
101
+ !e.showBusiness && !l.value.length && !s.value.length ? (n(), p(D, {
102
+ key: 1,
103
+ disabled: "",
104
+ label: u(v)("inventory.common.noResultFound")
105
+ }, null, 8, ["label"])) : w("", !0)
106
+ ])
107
+ ])
108
+ ]),
109
+ _: 1
110
+ })
111
+ ]);
112
+ };
113
+ }
114
+ });
115
+ function he() {
116
+ const i = /* @__PURE__ */ new Date();
117
+ return i.setDate(i.getDate() - 15), {
118
+ start: i,
119
+ end: /* @__PURE__ */ new Date()
120
+ };
121
+ }
122
+ function T(i = 15) {
123
+ const o = /* @__PURE__ */ new Date();
124
+ o.setDate(o.getDate() - i);
125
+ const m = o, c = /* @__PURE__ */ new Date();
126
+ return {
127
+ startDate: `${U(m)}`,
128
+ endDate: `${U(c)}`
129
+ };
130
+ }
131
+ const le = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, ae = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, se = /* @__PURE__ */ I({
132
+ __name: "FmDateRangePickerChip",
133
+ props: {
134
+ modelValue: { default: (i) => i.modelValue ?? T() }
135
+ },
136
+ emits: ["update:modelValue"],
137
+ setup(i, { emit: o }) {
138
+ const m = o, c = z(T());
139
+ E(c, (d) => {
140
+ m("update:modelValue", d);
141
+ });
142
+ const v = g(() => {
143
+ const { startDate: d, endDate: a } = c.value;
144
+ return !d && !a ? "" : `${d} - ${a}`;
145
+ });
146
+ return (d, a) => {
147
+ const b = h("FmIcon"), l = h("FmDateRangePicker");
148
+ return n(), p(l, {
149
+ "show-predefined-range": "",
150
+ modelValue: c.value,
151
+ "onUpdate:modelValue": a[0] || (a[0] = (s) => c.value = s),
152
+ "start-label": "",
153
+ "end-label": ""
154
+ }, {
155
+ "trigger-button": L(() => [
156
+ f("div", le, [
157
+ _(b, {
158
+ name: "calendar_month",
159
+ size: "sm"
160
+ }),
161
+ f("div", ae, Y(v.value), 1)
162
+ ])
163
+ ]),
164
+ _: 1
165
+ }, 8, ["modelValue"]);
166
+ };
167
+ }
168
+ }), re = { class: "flex-1 w-full flex items-center gap-4 xs:flex-col-reverse sm:flex-col-reverse" }, ue = {
169
+ key: 0,
170
+ class: "flex-1 xs:w-full sm:w-full"
171
+ }, ie = {
172
+ key: 1,
173
+ class: "flex-1"
174
+ }, de = { class: "w-full max-w-[343px] xs:max-w-[unset] sm:max-w-[unset]" }, ge = /* @__PURE__ */ I({
175
+ __name: "FmInventoryTableToolbar",
176
+ props: /* @__PURE__ */ O({
177
+ dateRangeQuery: { type: Boolean },
178
+ changeLocation: { type: Boolean },
179
+ searchable: { type: Boolean },
180
+ hideFilterOptions: { type: Boolean },
181
+ filterable: { type: Boolean },
182
+ filterAttributes: {},
183
+ actions: {},
184
+ usingBusinessHelperText: {},
185
+ showBusiness: { type: Boolean }
186
+ }, {
187
+ search: {},
188
+ searchModifiers: {},
189
+ filter: {},
190
+ filterModifiers: {},
191
+ dateRange: {},
192
+ dateRangeModifiers: {}
193
+ }),
194
+ emits: ["update:search", "update:filter", "update:dateRange"],
195
+ setup(i) {
196
+ const { breakpoints: o } = G(), m = g(() => o.value.xs || o.value.sm), c = C(i, "search"), v = C(i, "filter"), d = C(i, "dateRange"), { t: a } = P(), b = J();
197
+ return (l, s) => {
198
+ const B = h("FmTextField"), e = h("FmButton");
199
+ return n(), y("div", {
200
+ class: "flex flex-col gap-8",
201
+ onVnodeMounted: s[4] || (s[4] = //@ts-ignore
202
+ (...t) => u(b).onMounted && u(b).onMounted(...t)),
203
+ onVnodeUnmounted: s[5] || (s[5] = //@ts-ignore
204
+ (...t) => u(b).onUnmounted && u(b).onUnmounted(...t))
205
+ }, [
206
+ H(l.$slots, "default"),
207
+ f("div", {
208
+ class: S([
209
+ "flex gap-8 items-center",
210
+ {
211
+ "px-8 flex-col-reverse h-[unset]": m.value,
212
+ "h-48": !m.value
213
+ }
214
+ ])
215
+ }, [
216
+ l.changeLocation || l.dateRangeQuery ? (n(), y("div", {
217
+ key: 0,
218
+ class: S([
219
+ "flex gap-8 items-center",
220
+ {
221
+ "w-full overflow-x-auto": m.value
222
+ }
223
+ ])
224
+ }, [
225
+ l.changeLocation ? (n(), p(ne, {
226
+ key: 0,
227
+ "show-business": l.showBusiness
228
+ }, null, 8, ["show-business"])) : w("", !0),
229
+ l.dateRangeQuery ? (n(), p(se, {
230
+ key: 1,
231
+ "model-value": d.value,
232
+ "onUpdate:modelValue": s[0] || (s[0] = (t) => d.value = t)
233
+ }, null, 8, ["model-value"])) : w("", !0)
234
+ ], 2)) : w("", !0),
235
+ f("div", re, [
236
+ l.filterable && l.filterAttributes ? (n(), y("div", ue, [
237
+ l.hideFilterOptions ? (n(), p(K, { key: 1 }, {
238
+ default: L(() => [
239
+ _(u(A), {
240
+ modelValue: v.value,
241
+ "onUpdate:modelValue": s[2] || (s[2] = (t) => v.value = t),
242
+ attributes: l.filterAttributes
243
+ }, null, 8, ["modelValue", "attributes"])
244
+ ]),
245
+ _: 1
246
+ })) : (n(), p(u(A), {
247
+ key: 0,
248
+ modelValue: v.value,
249
+ "onUpdate:modelValue": s[1] || (s[1] = (t) => v.value = t),
250
+ attributes: l.filterAttributes
251
+ }, null, 8, ["modelValue", "attributes"]))
252
+ ])) : m.value ? w("", !0) : (n(), y("div", ie)),
253
+ f("div", de, [
254
+ l.searchable ? (n(), p(B, {
255
+ key: 0,
256
+ "model-value": c.value,
257
+ "onUpdate:modelValue": s[3] || (s[3] = (t) => c.value = t),
258
+ "prepend-icon": "search",
259
+ placeholder: u(a)("inventory.common.table.toolbar.filterItems"),
260
+ class: "w-full"
261
+ }, null, 8, ["model-value", "placeholder"])) : w("", !0)
262
+ ]),
263
+ (n(!0), y($, null, R(l.actions, (t, M) => (n(), p(e, {
264
+ key: M,
265
+ variant: "tertiary",
266
+ "prepend-icon": t.icon,
267
+ onClick: t.onClick
268
+ }, null, 8, ["prepend-icon", "onClick"]))), 128))
269
+ ])
270
+ ], 2)
271
+ ], 512);
272
+ };
273
+ }
274
+ });
275
+ export {
276
+ ge as _,
277
+ he as a,
278
+ T as i
279
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineStore as p } from "pinia";
2
2
  import { useDialog as y } from "@feedmepos/ui-library";
3
3
  import { useI18n as v } from "@feedmepos/mf-common";
4
- import { x as a } from "./app-CnQ49Lyb.js";
4
+ import { a } from "./FmMultiselectDialog-BasrjBFA.js";
5
5
  import { h as S } from "vue";
6
6
  const w = p("inventoryMultiSelectDialog", () => {
7
7
  const l = y(), { t: n } = v();