@feedmepos/mf-inventory-portal 0.0.23-dev.19 → 0.0.23-dev.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-DY01VbHo.js → App-N2myASr3.js} +44 -41
- package/dist/{ApprovalView-DtwXb5T7.js → ApprovalView-B87DpnNq.js} +20 -23
- package/dist/{BindingsDialog-ClnnwUTV.js → BindingsDialog-DehCgt1T.js} +7 -7
- package/dist/{BindingsPicker-DbdkXiHx.js → BindingsPicker-BBtJ3rBB.js} +7 -8
- package/dist/{BindingsTable-Cqh3Ku0d.js → BindingsTable-CfHuy-K1.js} +16 -20
- package/dist/{ClosingDraftView-CzuMTeC1.js → ClosingDraftView-BYZ1mZrG.js} +190 -196
- package/dist/{ClosingTemplateView-CVQlOya4.js → ClosingTemplateView-CAL9jYaf.js} +49 -60
- package/dist/{FmDroppableField-8RzKjEdL.js → FmDroppableField-CC7RiBoR.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BO1wCa9i.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C4G9LaXv.js} +24 -25
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-sgvBxxkn.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BBf7jmJz.js} +56 -57
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D7uvrzFU.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DjTvrLPs.js} +7 -7
- package/dist/{IngredientGroupView-DgDZnggI.js → IngredientGroupView-X0ST4tW9.js} +30 -37
- package/dist/{IngredientsView-SuCckJrj.js → IngredientsView-BUJXzpVr.js} +106 -112
- package/dist/{IntegrationView-CZQoHCkX.js → IntegrationView-QbuIwjec.js} +63 -65
- package/dist/{InventoryBindingForm-C-E3EINv.js → InventoryBindingForm-C1BR_h_3.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B3nsmCuj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CRwcFskQ.js} +18 -20
- package/dist/{InventoryBindingSummary-DNiOKfO8.js → InventoryBindingSummary-gn3Gq1ok.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdYa8Pv2.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-GY3FFm5_.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BwxgZ-vM.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DVwtuUg9.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-C6i2S9L-.js → PurchaseOrderPrintPreview-FuOYaO56.js} +13 -14
- package/dist/{ReceiveRequestView-BABjGvIn.js → ReceiveRequestView-BNz1brve.js} +66 -75
- package/dist/{RecipeView-CoMcIuHu.js → RecipeView-DRKTODfC.js} +58 -64
- package/dist/{StockView-DhJshtaj.js → StockView-DnMcfkGG.js} +80 -87
- package/dist/{SupplierView-hQtDIQzE.js → SupplierView-DAnnWZUN.js} +45 -52
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DsJUSZsm.js → TransferDetails.vue_vue_type_script_setup_true_lang-BBARPa0S.js} +103 -110
- package/dist/{TransferTemplateView-GzwT4hp-.js → TransferTemplateView-2qlKwwKg.js} +217 -227
- package/dist/{UnitView-CRMF6RWu.js → UnitView-u5wZGetF.js} +103 -108
- package/dist/{WarehouseView-AVEDff0v.js → WarehouseView-Z80N7FJV.js} +77 -84
- package/dist/api/adjustment-template.d.ts +23 -0
- package/dist/app-Fc2FPGhO.js +58871 -0
- package/dist/app.d.ts +51 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-N5ymnwhP.js → decimal-BDD-e5Lb.js} +1 -1
- package/dist/{feature-Bfq8yWgS.js → feature-BMEyYowI.js} +1 -1
- package/dist/{format-unit-display-CXawcmvj.js → format-unit-display-DvlR_z--.js} +205 -212
- package/dist/{index-CcCqc9jx.js → index-CR22QBdu.js} +1 -1
- package/dist/{netsuite-DX6L1oLu.js → netsuite-CqMWgzKo.js} +9 -9
- package/dist/router/name.d.ts +1 -0
- package/dist/{stock-Btlxmf8R.js → stock-sIy40ix1.js} +7 -8
- package/dist/style.css +1 -1
- package/dist/supplier-Cf24JqTH.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-BFqxWNzX.js → use-inventory-binding-dialog-Br9Uv9o8.js} +10 -11
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDetails.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateDialog.vue.d.ts +22 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplatePublish.vue.d.ts +6 -0
- package/dist/views/adjustment-template/wastage-template/WastageTemplateView.vue.d.ts +2 -0
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +1295 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateForm.vue.d.ts +16 -0
- package/dist/views/adjustment-template/wastage-template/form/WastageTemplateItemTable.vue.d.ts +35 -0
- package/dist/views/adjustment-template/wastage-template/form/useAdjustmentTemplateItems.d.ts +20 -0
- package/dist/views/adjustment-template/wastage-template/props.d.ts +29 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +1273 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/{xlsx-C3L2eW52.js → xlsx-sL0sD2HQ.js} +1 -1
- package/dist/{xlsx.util-CJKLCuWK.js → xlsx.util-D2Tdwf8J.js} +1 -1
- package/package.json +3 -3
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-m92y5x0G.js +0 -436
- package/dist/FmMultiselectDialog-Jr9uL_z_.js +0 -415
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-ww5ibHkL.js +0 -33540
- package/dist/date2-D5MTVjlP.js +0 -117
- package/dist/dayjs.min-7pwGJ2aW.js +0 -282
- package/dist/defineDeepModel-DJODEpcR.js +0 -13
- package/dist/form-mode.enum-BKiNVH6A.js +0 -4
- package/dist/format-time-from-id-0UkRUr39.js +0 -15
- package/dist/fuzzy-DdOiOd-q.js +0 -41
- package/dist/index-Cin_fxtb.js +0 -45
- package/dist/index-gvJJ-xRY.js +0 -22283
- package/dist/row-action.enum-7rGLGZ5v.js +0 -55
- package/dist/rules-C83wiSGb.js +0 -203
- package/dist/supplier-CSzla-9I.js +0 -77
- package/dist/use-template-enabled-locations-2-CUkqC-cd.js +0 -86
|
@@ -1,17 +1,10 @@
|
|
|
1
|
-
import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as
|
|
2
|
-
import {
|
|
3
|
-
import { useCoreStore as
|
|
4
|
-
import {
|
|
5
|
-
import { c as Ne, _ as Be, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
6
|
-
import { u as qe, _ as ze, a as Ie } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-m92y5x0G.js";
|
|
7
|
-
import { F as T } from "./form-mode.enum-BKiNVH6A.js";
|
|
8
|
-
import { useDialogChild as je, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
9
|
-
import { R as E } from "./rules-C83wiSGb.js";
|
|
1
|
+
import { ref as W, defineComponent as I, watch as ee, onMounted as te, onUnmounted as xe, openBlock as S, createElementBlock as B, toRaw as be, reactive as Fe, createElementVNode as g, toDisplayString as U, unref as c, createVNode as V, resolveComponent as L, createSlots as $e, withCtx as N, createTextVNode as We, renderSlot as De, createBlock as z, createCommentVNode as Ae, computed as x, isRef as we, normalizeClass as Se, normalizeStyle as Pe } from "vue";
|
|
2
|
+
import { N as Re, af as Te, ag as Ue, e as Ee, D as Ve, f as J, d as O, ah as Le, _ as Ne, k as E, c as T, u as qe, p as Be, q as ze, r as Ie, s as je, v as Q } from "./app-Fc2FPGhO.js";
|
|
3
|
+
import { useCoreStore as Oe, useI18n as j } from "@feedmepos/mf-common";
|
|
4
|
+
import { useDialogChild as Ge, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as Ke } from "@feedmepos/ui-library";
|
|
10
5
|
import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const X = Pe((m, h) => {
|
|
14
|
-
const y = Le();
|
|
6
|
+
const X = Re((m, h) => {
|
|
7
|
+
const y = Oe();
|
|
15
8
|
return {
|
|
16
9
|
async readWarehouses() {
|
|
17
10
|
var l;
|
|
@@ -110,7 +103,7 @@ function Ze(m, h) {
|
|
|
110
103
|
id: "action",
|
|
111
104
|
header: "",
|
|
112
105
|
cell(p) {
|
|
113
|
-
return
|
|
106
|
+
return Ee(
|
|
114
107
|
[Ve[J.Edit], Ve[J.Delete]],
|
|
115
108
|
(s) => {
|
|
116
109
|
y(s, p.row.original.original);
|
|
@@ -187,25 +180,25 @@ const Je = /* @__PURE__ */ I({
|
|
|
187
180
|
};
|
|
188
181
|
}
|
|
189
182
|
function v(r, f, b) {
|
|
190
|
-
const
|
|
191
|
-
u.push(
|
|
183
|
+
const F = l.maps.event.addListener(r, f, b);
|
|
184
|
+
u.push(F);
|
|
192
185
|
}
|
|
193
186
|
const M = W([]);
|
|
194
187
|
function $(r, f, b) {
|
|
195
188
|
v(r, f, b);
|
|
196
189
|
}
|
|
197
190
|
function C(r) {
|
|
198
|
-
|
|
199
|
-
const
|
|
191
|
+
P(null), M.value = r.map((f, b) => {
|
|
192
|
+
const F = new l.maps.Marker({
|
|
200
193
|
position: f,
|
|
201
194
|
draggable: !0
|
|
202
195
|
});
|
|
203
|
-
return $(
|
|
196
|
+
return $(F, "dragend", (D) => {
|
|
204
197
|
n("marker-change", { index: b, position: _(D) });
|
|
205
|
-
}),
|
|
206
|
-
}),
|
|
198
|
+
}), F;
|
|
199
|
+
}), P(s.value);
|
|
207
200
|
}
|
|
208
|
-
function
|
|
201
|
+
function P(r) {
|
|
209
202
|
M.value.map((f) => be(f).setMap(r));
|
|
210
203
|
}
|
|
211
204
|
const i = W([]);
|
|
@@ -216,9 +209,9 @@ const Je = /* @__PURE__ */ I({
|
|
|
216
209
|
v(r, f, b);
|
|
217
210
|
}
|
|
218
211
|
function o(r) {
|
|
219
|
-
return i.value[r].getPath().getArray().map(({ lat: b, lng:
|
|
212
|
+
return i.value[r].getPath().getArray().map(({ lat: b, lng: F }) => ({
|
|
220
213
|
lat: b(),
|
|
221
|
-
lng:
|
|
214
|
+
lng: F()
|
|
222
215
|
}));
|
|
223
216
|
}
|
|
224
217
|
function e(r) {
|
|
@@ -226,24 +219,24 @@ const Je = /* @__PURE__ */ I({
|
|
|
226
219
|
n("polygon-change", { index: r, path: f });
|
|
227
220
|
}
|
|
228
221
|
function t(r, f) {
|
|
229
|
-
const
|
|
230
|
-
n("polygon-change", { index: r, path:
|
|
222
|
+
const F = o(r).filter((D, G) => G !== f);
|
|
223
|
+
n("polygon-change", { index: r, path: F });
|
|
231
224
|
}
|
|
232
|
-
function
|
|
225
|
+
function q(r, f) {
|
|
233
226
|
f.vertex !== void 0 ? t(r, f.vertex) : n("polygon-right-click", r);
|
|
234
227
|
}
|
|
235
228
|
function w(r) {
|
|
236
229
|
d(null), i.value = r.map((f, b) => {
|
|
237
|
-
const
|
|
230
|
+
const F = new l.maps.Polygon({
|
|
238
231
|
paths: f.paths,
|
|
239
232
|
strokeColor: f.strokeColor,
|
|
240
233
|
fillColor: f.fillColor,
|
|
241
234
|
fillOpacity: 0.5,
|
|
242
235
|
editable: a.editable
|
|
243
236
|
});
|
|
244
|
-
return k(
|
|
237
|
+
return k(F, "contextmenu", (D) => q(b, D)), F.getPaths().forEach((D) => {
|
|
245
238
|
A(D, "insert_at", () => e(b)), A(D, "set_at", () => e(b));
|
|
246
|
-
}),
|
|
239
|
+
}), F;
|
|
247
240
|
}), d(s.value);
|
|
248
241
|
}
|
|
249
242
|
function d(r) {
|
|
@@ -252,7 +245,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
252
245
|
function Y(r, f, b) {
|
|
253
246
|
v(r, f, b);
|
|
254
247
|
}
|
|
255
|
-
function
|
|
248
|
+
function R() {
|
|
256
249
|
s.value = new l.maps.Map(p.value, {
|
|
257
250
|
center: a.center,
|
|
258
251
|
zoom: a.zoom,
|
|
@@ -263,10 +256,10 @@ const Je = /* @__PURE__ */ I({
|
|
|
263
256
|
}), Y(s.value, "click", (r) => n("map-click", _(r)));
|
|
264
257
|
}
|
|
265
258
|
return ee(() => a.markers, C, { deep: !0 }), ee(() => a.polygons, w, { deep: !0 }), te(() => {
|
|
266
|
-
!p.value || !l || (
|
|
267
|
-
}),
|
|
259
|
+
!p.value || !l || (R(), C(a.markers), w(a.polygons));
|
|
260
|
+
}), xe(() => {
|
|
268
261
|
u.forEach((r) => r.remove());
|
|
269
|
-
}), (r, f) => (S(),
|
|
262
|
+
}), (r, f) => (S(), B("div", {
|
|
270
263
|
ref_key: "mapRef",
|
|
271
264
|
ref: p,
|
|
272
265
|
class: "map app-map"
|
|
@@ -285,9 +278,9 @@ const Je = /* @__PURE__ */ I({
|
|
|
285
278
|
}
|
|
286
279
|
},
|
|
287
280
|
setup(m) {
|
|
288
|
-
const h = m, y =
|
|
281
|
+
const h = m, y = Ge(), a = se(), { t: n } = j(), l = Fe(
|
|
289
282
|
O(h.coordinate ? h.coordinate : le.jb)
|
|
290
|
-
), p = W(""), s =
|
|
283
|
+
), p = W(""), s = Le(async function() {
|
|
291
284
|
p.value = await a.getFirstMatchingAddress(
|
|
292
285
|
l.lat,
|
|
293
286
|
l.lng
|
|
@@ -300,7 +293,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
300
293
|
l.lat = v.lat, l.lng = v.lng, y.emitData(O(l)), s();
|
|
301
294
|
}
|
|
302
295
|
const _ = W();
|
|
303
|
-
return (v, M) => (S(),
|
|
296
|
+
return (v, M) => (S(), B("div", Qe, [
|
|
304
297
|
g("div", Xe, [
|
|
305
298
|
g("div", null, [
|
|
306
299
|
g("span", Ye, U(c(n)("inventory.formField.coordinate.address")) + ": ", 1),
|
|
@@ -327,7 +320,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
327
320
|
}, null, 8, ["center", "markers"])
|
|
328
321
|
]));
|
|
329
322
|
}
|
|
330
|
-
}), ro = /* @__PURE__ */
|
|
323
|
+
}), ro = /* @__PURE__ */ Ne(so, [["__scopeId", "data-v-272f5e8b"]]);
|
|
331
324
|
function ke([m, h]) {
|
|
332
325
|
return {
|
|
333
326
|
lat: h,
|
|
@@ -394,12 +387,12 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
394
387
|
M($);
|
|
395
388
|
}
|
|
396
389
|
}
|
|
397
|
-
function
|
|
390
|
+
function P() {
|
|
398
391
|
a("update:modelValue", null);
|
|
399
392
|
}
|
|
400
393
|
return (i, k) => {
|
|
401
394
|
const A = L("FmField"), o = L("FmButton"), e = L("FmFormGroup");
|
|
402
|
-
return S(),
|
|
395
|
+
return S(), B("div", uo, [
|
|
403
396
|
V(e, {
|
|
404
397
|
class: "flex-1",
|
|
405
398
|
"model-value": c(s),
|
|
@@ -415,7 +408,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
415
408
|
onClick: k[0] || (k[0] = (t) => C())
|
|
416
409
|
}, $e({
|
|
417
410
|
default: N(({ invalid: t }) => [
|
|
418
|
-
i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(),
|
|
411
|
+
i.modelValue && i.modelValue[0] && i.modelValue[1] ? (S(), B("div", io, [
|
|
419
412
|
V(A, {
|
|
420
413
|
invalid: t,
|
|
421
414
|
class: "fm-typo-en-body-lg-400"
|
|
@@ -425,7 +418,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
425
418
|
]),
|
|
426
419
|
_: 2
|
|
427
420
|
}, 1032, ["invalid"])
|
|
428
|
-
])) : (S(),
|
|
421
|
+
])) : (S(), B("div", co, [
|
|
429
422
|
V(o, {
|
|
430
423
|
label: c(_)("inventory.formField.coordinate.addCoordinate"),
|
|
431
424
|
"prepend-icon": "add",
|
|
@@ -447,7 +440,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
447
440
|
key: 0,
|
|
448
441
|
"prepend-icon": "delete",
|
|
449
442
|
variant: "tertiary",
|
|
450
|
-
onClick: k[1] || (k[1] = (t) =>
|
|
443
|
+
onClick: k[1] || (k[1] = (t) => P())
|
|
451
444
|
})) : Ae("", !0)
|
|
452
445
|
]);
|
|
453
446
|
};
|
|
@@ -460,7 +453,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
460
453
|
},
|
|
461
454
|
emits: ["update:modelValue", "validation-success"],
|
|
462
455
|
setup(m, { expose: h, emit: y }) {
|
|
463
|
-
const a = m, n = y, { t: l } = j(), p =
|
|
456
|
+
const a = m, n = y, { t: l } = j(), p = x({
|
|
464
457
|
get() {
|
|
465
458
|
var o, e;
|
|
466
459
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
|
|
@@ -469,7 +462,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
469
462
|
const e = a.modelValue ?? {};
|
|
470
463
|
e.profile ?? (e.profile = {}), e.profile.name = o, n("update:modelValue", e);
|
|
471
464
|
}
|
|
472
|
-
}), s =
|
|
465
|
+
}), s = x({
|
|
473
466
|
get() {
|
|
474
467
|
var o, e;
|
|
475
468
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.regNo) ?? "";
|
|
@@ -478,7 +471,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
478
471
|
const e = a.modelValue ?? {};
|
|
479
472
|
e.profile ?? (e.profile = {}), e.profile.regNo = o, n("update:modelValue", e);
|
|
480
473
|
}
|
|
481
|
-
}), u =
|
|
474
|
+
}), u = x({
|
|
482
475
|
get() {
|
|
483
476
|
var o, e, t;
|
|
484
477
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line1) ?? "";
|
|
@@ -488,7 +481,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
488
481
|
const e = a.modelValue ?? {};
|
|
489
482
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line1 = o, n("update:modelValue", e);
|
|
490
483
|
}
|
|
491
|
-
}), _ =
|
|
484
|
+
}), _ = x({
|
|
492
485
|
get() {
|
|
493
486
|
var o, e, t;
|
|
494
487
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line2) ?? "";
|
|
@@ -498,7 +491,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
498
491
|
const e = a.modelValue ?? {};
|
|
499
492
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
|
|
500
493
|
}
|
|
501
|
-
}), v =
|
|
494
|
+
}), v = x({
|
|
502
495
|
get() {
|
|
503
496
|
var o, e, t;
|
|
504
497
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
|
|
@@ -508,7 +501,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
508
501
|
const e = a.modelValue ?? {};
|
|
509
502
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.city = o, n("update:modelValue", e);
|
|
510
503
|
}
|
|
511
|
-
}), M =
|
|
504
|
+
}), M = x({
|
|
512
505
|
get() {
|
|
513
506
|
var o, e, t;
|
|
514
507
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.postcode) ?? "";
|
|
@@ -518,7 +511,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
518
511
|
const e = a.modelValue ?? {};
|
|
519
512
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.postcode = o, n("update:modelValue", e);
|
|
520
513
|
}
|
|
521
|
-
}), $ =
|
|
514
|
+
}), $ = x({
|
|
522
515
|
get() {
|
|
523
516
|
var o, e, t;
|
|
524
517
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.state) ?? "";
|
|
@@ -528,7 +521,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
528
521
|
const e = a.modelValue ?? {};
|
|
529
522
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.state = o, n("update:modelValue", e);
|
|
530
523
|
}
|
|
531
|
-
}), C =
|
|
524
|
+
}), C = x({
|
|
532
525
|
get() {
|
|
533
526
|
var o, e, t;
|
|
534
527
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.country) ?? "";
|
|
@@ -538,7 +531,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
538
531
|
const e = a.modelValue ?? {};
|
|
539
532
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.country = o, n("update:modelValue", e);
|
|
540
533
|
}
|
|
541
|
-
}),
|
|
534
|
+
}), P = x({
|
|
542
535
|
get() {
|
|
543
536
|
var o, e, t;
|
|
544
537
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.coordinates) ?? null;
|
|
@@ -548,7 +541,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
548
541
|
const e = a.modelValue ?? {};
|
|
549
542
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.coordinates = o, n("update:modelValue", e);
|
|
550
543
|
}
|
|
551
|
-
}), i =
|
|
544
|
+
}), i = x({
|
|
552
545
|
get() {
|
|
553
546
|
var o, e;
|
|
554
547
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
|
|
@@ -557,7 +550,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
557
550
|
const e = a.modelValue ?? {};
|
|
558
551
|
e.profile ?? (e.profile = {}), e.profile.phoneNo = o, n("update:modelValue", e);
|
|
559
552
|
}
|
|
560
|
-
}), k =
|
|
553
|
+
}), k = x({
|
|
561
554
|
get() {
|
|
562
555
|
var o, e;
|
|
563
556
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
|
|
@@ -581,7 +574,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
581
574
|
(e = (o = A.value) == null ? void 0 : o.resetInputs) == null || e.call(o);
|
|
582
575
|
}
|
|
583
576
|
}), (o, e) => {
|
|
584
|
-
const t = L("FmTextField"),
|
|
577
|
+
const t = L("FmTextField"), q = L("FmPhoneNumber"), w = L("FmForm");
|
|
585
578
|
return S(), z(w, {
|
|
586
579
|
ref_key: "formRef",
|
|
587
580
|
ref: A,
|
|
@@ -665,14 +658,14 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
665
658
|
disabled: o.disabled,
|
|
666
659
|
rules: [c(E)()],
|
|
667
660
|
"label-mark": "required",
|
|
668
|
-
modelValue:
|
|
669
|
-
"onUpdate:modelValue": e[8] || (e[8] = (d) =>
|
|
661
|
+
modelValue: P.value,
|
|
662
|
+
"onUpdate:modelValue": e[8] || (e[8] = (d) => P.value = d)
|
|
670
663
|
}, null, 8, ["disabled", "rules", "modelValue"])
|
|
671
664
|
]),
|
|
672
665
|
g("div", wo, [
|
|
673
666
|
g("div", Vo, U(c(l)("inventory.warehouse.contact.title")), 1),
|
|
674
667
|
g("div", _o, [
|
|
675
|
-
V(
|
|
668
|
+
V(q, {
|
|
676
669
|
disabled: o.disabled,
|
|
677
670
|
rules: [c(E)()],
|
|
678
671
|
"label-mark": "required",
|
|
@@ -704,7 +697,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
704
697
|
},
|
|
705
698
|
emits: ["update:show", "submitted"],
|
|
706
699
|
setup(m, { expose: h, emit: y }) {
|
|
707
|
-
const a = m, n = y, l = W(!1), p = ae(), { t: s } = j(), u = Ce(), _ =
|
|
700
|
+
const a = m, n = y, l = W(!1), p = ae(), { t: s } = j(), u = Ce(), _ = x(() => {
|
|
708
701
|
switch (a.mode) {
|
|
709
702
|
case T.READ:
|
|
710
703
|
return "";
|
|
@@ -714,7 +707,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
714
707
|
return s("inventory.warehouse.create.title");
|
|
715
708
|
}
|
|
716
709
|
return "";
|
|
717
|
-
}), v =
|
|
710
|
+
}), v = x(() => {
|
|
718
711
|
switch (a.mode) {
|
|
719
712
|
case T.READ:
|
|
720
713
|
return "";
|
|
@@ -740,7 +733,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
740
733
|
}
|
|
741
734
|
});
|
|
742
735
|
const $ = oe(a, "show"), C = oe(a, "warehouse");
|
|
743
|
-
function
|
|
736
|
+
function P() {
|
|
744
737
|
var o, e;
|
|
745
738
|
(e = (o = M.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
|
|
746
739
|
}
|
|
@@ -807,8 +800,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
807
800
|
}
|
|
808
801
|
}
|
|
809
802
|
return (o, e) => {
|
|
810
|
-
const t = L("FmButton"),
|
|
811
|
-
return S(), z(
|
|
803
|
+
const t = L("FmButton"), q = L("FmSideSheet");
|
|
804
|
+
return S(), z(q, {
|
|
812
805
|
header: _.value,
|
|
813
806
|
modelValue: c($),
|
|
814
807
|
"onUpdate:modelValue": e[1] || (e[1] = (w) => we($) ? $.value = w : null),
|
|
@@ -836,7 +829,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
836
829
|
V(t, {
|
|
837
830
|
loading: l.value,
|
|
838
831
|
label: v.value,
|
|
839
|
-
onClick:
|
|
832
|
+
onClick: P
|
|
840
833
|
}, null, 8, ["loading", "label"])
|
|
841
834
|
])
|
|
842
835
|
]),
|
|
@@ -844,13 +837,13 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
844
837
|
}, 8, ["header", "modelValue", "dismiss-away"]);
|
|
845
838
|
};
|
|
846
839
|
}
|
|
847
|
-
}), Co = { class: "flex flex-col py-8" },
|
|
840
|
+
}), Co = { class: "flex flex-col py-8" }, xo = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Fo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, $o = {
|
|
848
841
|
key: 0,
|
|
849
842
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
850
|
-
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" },
|
|
843
|
+
}, Wo = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary line-clamp-3" }, Uo = /* @__PURE__ */ I({
|
|
851
844
|
__name: "WarehouseView",
|
|
852
845
|
setup(m) {
|
|
853
|
-
const h = Ce(), y =
|
|
846
|
+
const h = Ce(), y = qe(), a = x(() => h.warehouses), n = Me(), l = ae(), p = W(!1), { t: s } = j();
|
|
854
847
|
te(() => {
|
|
855
848
|
y._currentLocation && A();
|
|
856
849
|
}), ee([() => y._currentLocation], () => {
|
|
@@ -899,7 +892,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
899
892
|
n.close();
|
|
900
893
|
}
|
|
901
894
|
}
|
|
902
|
-
const { columnDefs: C, formatRowData:
|
|
895
|
+
const { columnDefs: C, formatRowData: P } = Ze(
|
|
903
896
|
v,
|
|
904
897
|
M
|
|
905
898
|
);
|
|
@@ -920,7 +913,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
920
913
|
p.value = !1;
|
|
921
914
|
}
|
|
922
915
|
}
|
|
923
|
-
const { breakpoints: o } =
|
|
916
|
+
const { breakpoints: o } = Ke(), e = x(() => o.value.xs || o.value.sm), t = x(() => e.value ? 10 : 20), q = Be();
|
|
924
917
|
return (w, d) => {
|
|
925
918
|
const Y = L("FmTable");
|
|
926
919
|
return S(), z(ze, {
|
|
@@ -949,40 +942,40 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
949
942
|
searchable: "",
|
|
950
943
|
"change-location": "",
|
|
951
944
|
search: k.value,
|
|
952
|
-
"onUpdate:search": d[0] || (d[0] = (
|
|
945
|
+
"onUpdate:search": d[0] || (d[0] = (R) => k.value = R)
|
|
953
946
|
}, null, 8, ["search"]),
|
|
954
947
|
(S(), z(Y, {
|
|
955
|
-
style:
|
|
948
|
+
style: Pe(c(q).tableHeight),
|
|
956
949
|
"column-defs": c(C),
|
|
957
|
-
"row-data": c(
|
|
950
|
+
"row-data": c(P)(a.value),
|
|
958
951
|
"search-value": k.value,
|
|
959
952
|
loading: !c(y)._currentLocation || p.value,
|
|
960
|
-
onRowClick: d[1] || (d[1] = (
|
|
953
|
+
onRowClick: d[1] || (d[1] = (R) => v(R.original.original)),
|
|
961
954
|
key: a.value.length,
|
|
962
955
|
"page-size": t.value
|
|
963
956
|
}, {
|
|
964
|
-
"list-row": N((
|
|
965
|
-
V(
|
|
966
|
-
row:
|
|
957
|
+
"list-row": N((R) => [
|
|
958
|
+
V(je, {
|
|
959
|
+
row: R,
|
|
967
960
|
onRowClick: (r) => v(r.original)
|
|
968
961
|
}, {
|
|
969
962
|
default: N((r) => {
|
|
970
|
-
var f, b,
|
|
963
|
+
var f, b, F, D, G, re, ne, ue, K, ie, de, ce, pe, me, H, fe, he, ye, ve, Z, ge;
|
|
971
964
|
return [
|
|
972
965
|
g("div", Co, [
|
|
973
|
-
g("div",
|
|
966
|
+
g("div", xo, [
|
|
974
967
|
V(c(Q), {
|
|
975
|
-
render: (
|
|
968
|
+
render: (F = (b = (f = r.warehouse) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : F.cell,
|
|
976
969
|
props: (G = (D = r.warehouse) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
|
|
977
970
|
}, null, 8, ["render", "props"])
|
|
978
971
|
]),
|
|
979
|
-
g("div",
|
|
972
|
+
g("div", Fo, [
|
|
980
973
|
V(c(Q), {
|
|
981
974
|
render: (ue = (ne = (re = r.contact) == null ? void 0 : re.column) == null ? void 0 : ne.columnDef) == null ? void 0 : ue.cell,
|
|
982
975
|
props: (ie = (K = r.contact) == null ? void 0 : K.getContext) == null ? void 0 : ie.call(K)
|
|
983
976
|
}, null, 8, ["render", "props"])
|
|
984
977
|
]),
|
|
985
|
-
(de =
|
|
978
|
+
(de = R.original) != null && de.email ? (S(), B("div", $o, [
|
|
986
979
|
V(c(Q), {
|
|
987
980
|
render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
|
|
988
981
|
props: (fe = (H = r.email) == null ? void 0 : H.getContext) == null ? void 0 : fe.call(H)
|
|
@@ -1005,10 +998,10 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
1005
998
|
], 2),
|
|
1006
999
|
V(Mo, {
|
|
1007
1000
|
show: u.value.show,
|
|
1008
|
-
"onUpdate:show": d[2] || (d[2] = (
|
|
1001
|
+
"onUpdate:show": d[2] || (d[2] = (R) => u.value.show = R),
|
|
1009
1002
|
warehouse: u.value.warehouse,
|
|
1010
1003
|
mode: u.value.mode,
|
|
1011
|
-
onSubmitted: d[3] || (d[3] = (
|
|
1004
|
+
onSubmitted: d[3] || (d[3] = (R) => A(!0))
|
|
1012
1005
|
}, null, 8, ["show", "warehouse", "mode"])
|
|
1013
1006
|
]),
|
|
1014
1007
|
_: 1
|
|
@@ -1017,5 +1010,5 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
1017
1010
|
}
|
|
1018
1011
|
});
|
|
1019
1012
|
export {
|
|
1020
|
-
|
|
1013
|
+
Uo as default
|
|
1021
1014
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { RevisionIdMeta } from '@feedmepos/inventory-core';
|
|
2
|
+
export interface RecentPublish {
|
|
3
|
+
recentJob?: PublishingJob | null;
|
|
4
|
+
publishedRevs?: FdoAdjustmentTemplatePublish['publishedRev'] | null;
|
|
5
|
+
}
|
|
6
|
+
export interface PublishingJob {
|
|
7
|
+
id: string;
|
|
8
|
+
businessId: string;
|
|
9
|
+
outlets: string[];
|
|
10
|
+
completed: string[];
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const useAdjustmentTemplateApi: () => {
|
|
15
|
+
getRecentPublishingJob(): Promise<RecentPublish>;
|
|
16
|
+
startNewPublish(): Promise<PublishingJob>;
|
|
17
|
+
getTemplate(id: string): Promise<FdoAdjustmentTemplate & RevisionIdMeta>;
|
|
18
|
+
readTemplates(): Promise<(FdoAdjustmentTemplate & RevisionIdMeta)[]>;
|
|
19
|
+
createTemplate(template: Omit<FdoAdjustmentTemplate, '_id'>): Promise<FdoAdjustmentTemplate>;
|
|
20
|
+
updateTemplate(template: FdoAdjustmentTemplate & RevisionIdMeta): Promise<FdoAdjustmentTemplate>;
|
|
21
|
+
deleteTemplate(template: FdoAdjustmentTemplate & RevisionIdMeta): Promise<any>;
|
|
22
|
+
importTemplates(templates: Array<(FdoAdjustmentTemplate & RevisionIdMeta) | Omit<FdoAdjustmentTemplate, '_id'>>): Promise<any>;
|
|
23
|
+
};
|