@feedmepos/mf-inventory-portal 0.0.23-dev.2 → 0.0.23-dev.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-DRE3c1lJ.js → App-CvIvF0fg.js} +59 -51
- package/dist/{ApprovalView-B4ZYcS3B.js → ApprovalView-BOn2HDVY.js} +20 -23
- package/dist/{BindingsDialog-Df1yrWHU.js → BindingsDialog-9qfADiSA.js} +7 -7
- package/dist/{BindingsPicker-BERMWh4w.js → BindingsPicker-CpV9uOqj.js} +7 -8
- package/dist/{BindingsTable-DRIapOWW.js → BindingsTable-BYScxUTj.js} +16 -20
- package/dist/ClosingDraftView-DM7-3zOd.js +1116 -0
- package/dist/{ClosingTemplateView-CbFn3Sdy.js → ClosingTemplateView-Cye5VPAM.js} +66 -76
- package/dist/{FmDroppableField-8RzKjEdL.js → FmDroppableField-AIKfZo3H.js} +1 -1
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CQUsooGm.js +282 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BHSGZyJL.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CFQc-CBX.js} +121 -119
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DH5IQchQ.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-2r8mut0B.js} +7 -7
- package/dist/{IngredientGroupView-DoETcEvV.js → IngredientGroupView-RNokzPJa.js} +30 -36
- package/dist/IngredientsView-M7K_GAEO.js +1660 -0
- package/dist/{IntegrationView-D1HeBiGF.js → IntegrationView-D9a8d1sO.js} +18 -20
- package/dist/{InventoryBindingForm-Dmz9BQ37.js → InventoryBindingForm-B0Gx5N1p.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DoyqVBOd.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DEOudgKD.js} +15 -17
- package/dist/{InventoryBindingSummary-DrpwiRGZ.js → InventoryBindingSummary-C16Nc5aN.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yNEswIEI.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CZiypEex.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Br4_VUza.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BbYZwclN.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-cp671yWE.js → PurchaseOrderPrintPreview-DdKF8g0J.js} +13 -14
- package/dist/ReceiveRequestView-DBPRR6fz.js +4186 -0
- package/dist/{RecipeView-CD_dAWLo.js → RecipeView-CzUgVxKz.js} +58 -63
- package/dist/{StockView-DfUzFC1b.js → StockView-DCO3N1FS.js} +1338 -1446
- package/dist/{SupplierView-DB-zrNxh.js → SupplierView-CzV6DYSj.js} +2345 -783
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-00pcY0qu.js +1228 -0
- package/dist/TransferTemplateView-uL5PId9-.js +1265 -0
- package/dist/{UnitView-BlC9-WOA.js → UnitView-d-mCs-cS.js} +40 -44
- package/dist/{WarehouseView-CgEY87Lo.js → WarehouseView-B7z8m-Hv.js} +67 -73
- package/dist/api/adjustment-template.d.ts +23 -0
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/netsuite.d.ts +69 -0
- package/dist/app-CTCC1zfY.js +58871 -0
- package/dist/app.d.ts +56 -0
- package/dist/app.js +2 -2
- package/dist/components/FmMinMaxInputRules.d.ts +4 -1
- package/dist/components/FmMultiselectDialogProps.d.ts +1 -0
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/composable/defineDeepModel.d.ts +1 -1
- package/dist/{decimal-D7BCubZO.js → decimal-DhUR6QsF.js} +1 -1
- package/dist/{feature-BR-MsGYt.js → feature-DiGS5Fa4.js} +23 -9
- package/dist/format-unit-display-MRARpSlY.js +1210 -0
- package/dist/index-BSN3RnCl.js +12087 -0
- package/dist/netsuite-CIibMNer.js +251 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-COHpOTJk.js +110 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +81 -0
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-aBuwVukl.js → supplier-csNwTHYl.js} +15 -15
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-CLQ0LUmW.js → use-inventory-binding-dialog-172A48Xx.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/closing-draft/ClosingDraftView.vue.d.ts +2 -0
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +451 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +25 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +2601 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +19 -0
- package/dist/views/closing-draft/helpers/get-calculated-total.helper.d.ts +4 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -192
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +34 -34
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +54 -54
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +54 -54
- package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- 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/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
- package/dist/{xlsx-BbtURTDy.js → xlsx-CH-bhcOL.js} +1 -1
- package/dist/{xlsx.util-zYS4OJFi.js → xlsx.util-4aHI7W-Z.js} +1 -1
- package/package.json +3 -3
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-7JYNssTm.js +0 -267
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-KbYSywk2.js +0 -436
- package/dist/FmMultiselectDialog-Da9JMCYa.js +0 -415
- package/dist/IngredientsView-DHAhj9pV.js +0 -1613
- package/dist/ReceiveRequestView-C1WBlpho.js +0 -4082
- package/dist/TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js +0 -135
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-2mzqFGCz.js +0 -1144
- package/dist/TransferTemplateView-CaAJrqU6.js +0 -1262
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/app-CAyFhmAz.js +0 -33457
- package/dist/date2-D9i5izMt.js +0 -117
- package/dist/dayjs.min-SJKP9zBL.js +0 -282
- package/dist/defineDeepModel-DS4Shctf.js +0 -13
- package/dist/format-time-from-id-CUby60uW.js +0 -15
- package/dist/format-unit-display-D25Al2JZ.js +0 -1198
- package/dist/fuzzy-BryBtMz_.js +0 -41
- package/dist/index-ByJbUSIQ.js +0 -45
- package/dist/index-CFA_VFyX.js +0 -10545
- package/dist/index-CTvgBOum.js +0 -22280
- package/dist/netsuite-D0G4B60k.js +0 -146
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
- package/dist/row-action.enum-PMKMRrZR.js +0 -50
- package/dist/rules-DxVY0b7F.js +0 -198
- package/dist/use-template-enabled-locations-2-BgTiwy_3.js +0 -86
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import { defineComponent as K, computed as _, openBlock as v, createElementBlock as w, createElementVNode as l, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as M, resolveComponent as I, createBlock as T, withCtx as R, createVNode as y, unref as a, isRef as Z, normalizeClass as ae, normalizeStyle as re, Teleport as ie, normalizeProps as ue, guardReactiveProps as de } from "vue";
|
|
2
|
-
import { a as G, S as me,
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { i as
|
|
5
|
-
import {
|
|
6
|
-
import { defineStore as be, storeToRefs as ge } from "pinia";
|
|
7
|
-
import { c as xe, _ as _e, F as he } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
2
|
+
import { a as G, c as U, S as me, e as ce, D as ee, f as N, d as oe, k as j, A as pe, h as J, z as fe, B as ve, m as te, u as ye, p as be, q as ge, r as xe, s as _e, v as he } from "./app-CTCC1zfY.js";
|
|
3
|
+
import { useDialog as Ve, useSnackbar as le, useProxiedModel as ne, useBreakpoints as Ue } from "@feedmepos/ui-library";
|
|
4
|
+
import { i as we, _ as Ce } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
+
import { defineStore as ke, storeToRefs as Se } from "pinia";
|
|
8
6
|
import { useI18n as O } from "@feedmepos/mf-common";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { F as Se } from "./decimal-D7BCubZO.js";
|
|
12
|
-
import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yNEswIEI.js";
|
|
7
|
+
import { F as Fe } from "./decimal-DhUR6QsF.js";
|
|
8
|
+
import { _ as $e } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CZiypEex.js";
|
|
13
9
|
const Ee = { class: "flex flex-col gap-8" }, Ie = {
|
|
14
10
|
key: 0,
|
|
15
11
|
class: "flex flex-col"
|
|
@@ -96,8 +92,8 @@ const Ee = { class: "flex flex-col gap-8" }, Ie = {
|
|
|
96
92
|
])) : Y("", !0)
|
|
97
93
|
]));
|
|
98
94
|
}
|
|
99
|
-
}), Q =
|
|
100
|
-
const f =
|
|
95
|
+
}), Q = ke("unitForm", function() {
|
|
96
|
+
const f = Ve(), b = le(), i = G(), r = M(!1), o = M();
|
|
101
97
|
function m() {
|
|
102
98
|
const n = {
|
|
103
99
|
unit: {},
|
|
@@ -129,9 +125,9 @@ const Ee = { class: "flex flex-col gap-8" }, Ie = {
|
|
|
129
125
|
type: "success"
|
|
130
126
|
});
|
|
131
127
|
} catch (u) {
|
|
132
|
-
u instanceof me &&
|
|
128
|
+
u instanceof me && we(u) ? f.open({
|
|
133
129
|
title: "Cannot delete unit",
|
|
134
|
-
contentComponent:
|
|
130
|
+
contentComponent: Ce,
|
|
135
131
|
contentComponentProps: {
|
|
136
132
|
subject: (n == null ? void 0 : n.name) ?? "",
|
|
137
133
|
items: u.errorResponse.message
|
|
@@ -220,8 +216,8 @@ function Ne() {
|
|
|
220
216
|
id: "action",
|
|
221
217
|
header: "",
|
|
222
218
|
cell(o) {
|
|
223
|
-
return
|
|
224
|
-
[
|
|
219
|
+
return ce(
|
|
220
|
+
[ee[N.Edit], ee[N.Delete]],
|
|
225
221
|
(m) => {
|
|
226
222
|
i(m, o.row.original);
|
|
227
223
|
}
|
|
@@ -320,7 +316,7 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
320
316
|
(t = (e = x.value) == null ? void 0 : e.resetInputs) == null || t.call(e);
|
|
321
317
|
}
|
|
322
318
|
}), (e, t) => {
|
|
323
|
-
const d = I("FmTextField"), D = I("FmStepperField"),
|
|
319
|
+
const d = I("FmTextField"), D = I("FmStepperField"), S = I("FmButton"), F = I("FmCard"), E = I("FmForm");
|
|
324
320
|
return v(), T(E, {
|
|
325
321
|
ref_key: "formRef",
|
|
326
322
|
ref: x,
|
|
@@ -360,12 +356,12 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
360
356
|
label: a(o)("inventory.unit.precision"),
|
|
361
357
|
modelValue: s.value,
|
|
362
358
|
"onUpdate:modelValue": t[2] || (t[2] = (C) => s.value = C),
|
|
363
|
-
rules: [a(
|
|
359
|
+
rules: [a(pe)(0)]
|
|
364
360
|
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
365
361
|
])
|
|
366
362
|
]),
|
|
367
363
|
l("div", Ge, [
|
|
368
|
-
y(
|
|
364
|
+
y(S, {
|
|
369
365
|
disabled: e.disabled,
|
|
370
366
|
type: "button",
|
|
371
367
|
"prepend-icon": "add",
|
|
@@ -374,7 +370,7 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
374
370
|
onClick: u
|
|
375
371
|
}, null, 8, ["disabled", "label"])
|
|
376
372
|
]),
|
|
377
|
-
(v(!0), w(q, null, H((P = e.modelValue) == null ? void 0 : P.measurements, (C, h) => (v(), T(
|
|
373
|
+
(v(!0), w(q, null, H((P = e.modelValue) == null ? void 0 : P.measurements, (C, h) => (v(), T(F, {
|
|
378
374
|
class: "flex flex-col gap-16 p-16",
|
|
379
375
|
variant: "outlined",
|
|
380
376
|
key: C.id
|
|
@@ -382,7 +378,7 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
382
378
|
default: R(() => [
|
|
383
379
|
l("div", Oe, [
|
|
384
380
|
l("div", Ye, V(a(o)("inventory.unit.measurement.measurementDefault", [h + 1])), 1),
|
|
385
|
-
y(
|
|
381
|
+
y(S, {
|
|
386
382
|
disabled: e.disabled,
|
|
387
383
|
variant: "tertiary",
|
|
388
384
|
"prepend-icon": "delete",
|
|
@@ -421,13 +417,13 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
421
417
|
"onUpdate:modelValue": ($) => n.value = n.value.map(
|
|
422
418
|
(A, B) => B === h ? {
|
|
423
419
|
...A,
|
|
424
|
-
conversion: a(
|
|
425
|
-
a(
|
|
420
|
+
conversion: a(Fe).toPrecision(
|
|
421
|
+
a(fe)($),
|
|
426
422
|
s.value
|
|
427
423
|
)
|
|
428
424
|
} : A
|
|
429
425
|
),
|
|
430
|
-
rules: [a(
|
|
426
|
+
rules: [a(ve)(0)],
|
|
431
427
|
step: +a(J)({ amount: 1, precision: s.value }),
|
|
432
428
|
"helper-text": a(o)("inventory.unit.measurement.conversionHelper", {
|
|
433
429
|
measurementSymbol: e.modelValue.measurements[h].name || " measurement unit",
|
|
@@ -454,7 +450,7 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
454
450
|
},
|
|
455
451
|
emits: ["update:show"],
|
|
456
452
|
setup(k) {
|
|
457
|
-
const f = k, b = G(), i = le(), { t: r } = O(), o =
|
|
453
|
+
const f = k, b = G(), i = le(), { t: r } = O(), o = ne(f, "show"), m = ne(f, "unit"), c = _(() => {
|
|
458
454
|
switch (f.mode) {
|
|
459
455
|
case U.READ:
|
|
460
456
|
return "";
|
|
@@ -485,7 +481,7 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
485
481
|
type: "success"
|
|
486
482
|
});
|
|
487
483
|
} catch (t) {
|
|
488
|
-
t instanceof
|
|
484
|
+
t instanceof te || i.open({
|
|
489
485
|
title: r("inventory.unit.create.error.title"),
|
|
490
486
|
message: r("inventory.unit.create.error.message"),
|
|
491
487
|
type: "error"
|
|
@@ -503,7 +499,7 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
503
499
|
type: "success"
|
|
504
500
|
});
|
|
505
501
|
} catch (t) {
|
|
506
|
-
t instanceof
|
|
502
|
+
t instanceof te || i.open({
|
|
507
503
|
title: r("inventory.unit.update.error.title"),
|
|
508
504
|
message: r("inventory.unit.update.error.message"),
|
|
509
505
|
type: "error"
|
|
@@ -527,10 +523,10 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
527
523
|
}
|
|
528
524
|
}
|
|
529
525
|
return (t, d) => {
|
|
530
|
-
const D = I("FmButton"),
|
|
531
|
-
return v(), T(
|
|
526
|
+
const D = I("FmButton"), S = I("FmSideSheet");
|
|
527
|
+
return v(), T(S, {
|
|
532
528
|
"model-value": a(o),
|
|
533
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
529
|
+
"onUpdate:modelValue": d[3] || (d[3] = (F) => Z(o) ? o.value = F : null),
|
|
534
530
|
header: c.value,
|
|
535
531
|
"close-button": "",
|
|
536
532
|
"dismiss-away": "",
|
|
@@ -547,7 +543,7 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
547
543
|
disabled: n.value,
|
|
548
544
|
label: a(r)("common.close"),
|
|
549
545
|
variant: "tertiary",
|
|
550
|
-
onClick: d[2] || (d[2] = (
|
|
546
|
+
onClick: d[2] || (d[2] = (F) => o.value = !1)
|
|
551
547
|
}, null, 8, ["disabled", "label"])
|
|
552
548
|
])
|
|
553
549
|
]),
|
|
@@ -557,27 +553,27 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
557
553
|
ref_key: "hasValidationExpose",
|
|
558
554
|
ref: s,
|
|
559
555
|
modelValue: a(m),
|
|
560
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
556
|
+
"onUpdate:modelValue": d[0] || (d[0] = (F) => Z(m) ? m.value = F : null),
|
|
561
557
|
mode: t.mode,
|
|
562
558
|
disabled: n.value,
|
|
563
|
-
"onClick:submit": d[1] || (d[1] = (
|
|
559
|
+
"onClick:submit": d[1] || (d[1] = (F) => e())
|
|
564
560
|
}, null, 8, ["modelValue", "mode", "disabled"])
|
|
565
561
|
]),
|
|
566
562
|
_: 1
|
|
567
563
|
}, 8, ["model-value", "header"]);
|
|
568
564
|
};
|
|
569
565
|
}
|
|
570
|
-
}), nt = { class: "flex flex-col py-8" }, ot = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, lt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
566
|
+
}), nt = { class: "flex flex-col py-8" }, ot = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, lt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pt = /* @__PURE__ */ K({
|
|
571
567
|
__name: "UnitView",
|
|
572
568
|
setup(k) {
|
|
573
|
-
const f = G(), b =
|
|
569
|
+
const f = G(), b = ye(), i = _(() => f.units), { createUnit: r, updateUnit: o } = Q(), { unitDialogProps: m, unitViewLoading: c } = Se(Q()), { columnDefs: p } = Ne();
|
|
574
570
|
function s(D) {
|
|
575
571
|
D === "add" && r();
|
|
576
572
|
}
|
|
577
|
-
const n = M(""), u = _(() => c.value), { breakpoints: g } =
|
|
578
|
-
return (D,
|
|
579
|
-
const
|
|
580
|
-
return v(), T(
|
|
573
|
+
const n = M(""), u = _(() => c.value), { breakpoints: g } = Ue(), x = _(() => g.value.xs || g.value.sm), e = _(() => x.value ? 10 : 20), t = be(), { t: d } = O();
|
|
574
|
+
return (D, S) => {
|
|
575
|
+
const F = I("FmTable");
|
|
576
|
+
return v(), T(ge, {
|
|
581
577
|
title: a(d)("inventory.unit.title"),
|
|
582
578
|
actions: [
|
|
583
579
|
{ label: a(d)("inventory.unit.create.title"), value: "add", isPrimary: !0, prependIcon: "add" }
|
|
@@ -594,18 +590,18 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
594
590
|
}
|
|
595
591
|
])
|
|
596
592
|
}, [
|
|
597
|
-
y(
|
|
593
|
+
y(xe, {
|
|
598
594
|
searchable: "",
|
|
599
595
|
search: n.value,
|
|
600
|
-
"onUpdate:search":
|
|
596
|
+
"onUpdate:search": S[0] || (S[0] = (E) => n.value = E)
|
|
601
597
|
}, null, 8, ["search"]),
|
|
602
|
-
y(
|
|
598
|
+
y(F, {
|
|
603
599
|
style: re(a(t).tableHeight),
|
|
604
600
|
"column-defs": a(p),
|
|
605
601
|
"row-data": i.value,
|
|
606
602
|
"search-value": n.value,
|
|
607
603
|
loading: !a(b)._currentLocation || u.value,
|
|
608
|
-
onRowClick:
|
|
604
|
+
onRowClick: S[1] || (S[1] = (E) => a(o)(E.original)),
|
|
609
605
|
"page-size": e.value
|
|
610
606
|
}, {
|
|
611
607
|
"list-row": R((E) => [
|
|
@@ -643,5 +639,5 @@ const je = { class: "flex flex-col gap-24" }, qe = { class: "flex gap-24" }, He
|
|
|
643
639
|
}
|
|
644
640
|
});
|
|
645
641
|
export {
|
|
646
|
-
|
|
642
|
+
pt as default
|
|
647
643
|
};
|
|
@@ -1,16 +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 qe, F as Q } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
6
|
-
import { u as Be, _ as ze, a as Ie } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-KbYSywk2.js";
|
|
7
|
-
import { useDialogChild as je, useDialog as Me, useSnackbar as ae, useProxiedModel as oe, useBreakpoints as Oe } from "@feedmepos/ui-library";
|
|
8
|
-
import { R as E } from "./rules-DxVY0b7F.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-CTCC1zfY.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";
|
|
9
5
|
import { c as le, u as se } from "./googlemap-Dm8ERVai.js";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
const X = Pe((m, h) => {
|
|
13
|
-
const y = Le();
|
|
6
|
+
const X = Re((m, h) => {
|
|
7
|
+
const y = Oe();
|
|
14
8
|
return {
|
|
15
9
|
async readWarehouses() {
|
|
16
10
|
var l;
|
|
@@ -109,7 +103,7 @@ function Ze(m, h) {
|
|
|
109
103
|
id: "action",
|
|
110
104
|
header: "",
|
|
111
105
|
cell(p) {
|
|
112
|
-
return
|
|
106
|
+
return Ee(
|
|
113
107
|
[Ve[J.Edit], Ve[J.Delete]],
|
|
114
108
|
(s) => {
|
|
115
109
|
y(s, p.row.original.original);
|
|
@@ -186,25 +180,25 @@ const Je = /* @__PURE__ */ I({
|
|
|
186
180
|
};
|
|
187
181
|
}
|
|
188
182
|
function v(r, f, b) {
|
|
189
|
-
const
|
|
190
|
-
u.push(
|
|
183
|
+
const F = l.maps.event.addListener(r, f, b);
|
|
184
|
+
u.push(F);
|
|
191
185
|
}
|
|
192
186
|
const M = W([]);
|
|
193
187
|
function $(r, f, b) {
|
|
194
188
|
v(r, f, b);
|
|
195
189
|
}
|
|
196
190
|
function C(r) {
|
|
197
|
-
|
|
198
|
-
const
|
|
191
|
+
P(null), M.value = r.map((f, b) => {
|
|
192
|
+
const F = new l.maps.Marker({
|
|
199
193
|
position: f,
|
|
200
194
|
draggable: !0
|
|
201
195
|
});
|
|
202
|
-
return $(
|
|
196
|
+
return $(F, "dragend", (D) => {
|
|
203
197
|
n("marker-change", { index: b, position: _(D) });
|
|
204
|
-
}),
|
|
205
|
-
}),
|
|
198
|
+
}), F;
|
|
199
|
+
}), P(s.value);
|
|
206
200
|
}
|
|
207
|
-
function
|
|
201
|
+
function P(r) {
|
|
208
202
|
M.value.map((f) => be(f).setMap(r));
|
|
209
203
|
}
|
|
210
204
|
const i = W([]);
|
|
@@ -215,9 +209,9 @@ const Je = /* @__PURE__ */ I({
|
|
|
215
209
|
v(r, f, b);
|
|
216
210
|
}
|
|
217
211
|
function o(r) {
|
|
218
|
-
return i.value[r].getPath().getArray().map(({ lat: b, lng:
|
|
212
|
+
return i.value[r].getPath().getArray().map(({ lat: b, lng: F }) => ({
|
|
219
213
|
lat: b(),
|
|
220
|
-
lng:
|
|
214
|
+
lng: F()
|
|
221
215
|
}));
|
|
222
216
|
}
|
|
223
217
|
function e(r) {
|
|
@@ -225,24 +219,24 @@ const Je = /* @__PURE__ */ I({
|
|
|
225
219
|
n("polygon-change", { index: r, path: f });
|
|
226
220
|
}
|
|
227
221
|
function t(r, f) {
|
|
228
|
-
const
|
|
229
|
-
n("polygon-change", { index: r, path:
|
|
222
|
+
const F = o(r).filter((D, G) => G !== f);
|
|
223
|
+
n("polygon-change", { index: r, path: F });
|
|
230
224
|
}
|
|
231
225
|
function q(r, f) {
|
|
232
226
|
f.vertex !== void 0 ? t(r, f.vertex) : n("polygon-right-click", r);
|
|
233
227
|
}
|
|
234
228
|
function w(r) {
|
|
235
229
|
d(null), i.value = r.map((f, b) => {
|
|
236
|
-
const
|
|
230
|
+
const F = new l.maps.Polygon({
|
|
237
231
|
paths: f.paths,
|
|
238
232
|
strokeColor: f.strokeColor,
|
|
239
233
|
fillColor: f.fillColor,
|
|
240
234
|
fillOpacity: 0.5,
|
|
241
235
|
editable: a.editable
|
|
242
236
|
});
|
|
243
|
-
return k(
|
|
237
|
+
return k(F, "contextmenu", (D) => q(b, D)), F.getPaths().forEach((D) => {
|
|
244
238
|
A(D, "insert_at", () => e(b)), A(D, "set_at", () => e(b));
|
|
245
|
-
}),
|
|
239
|
+
}), F;
|
|
246
240
|
}), d(s.value);
|
|
247
241
|
}
|
|
248
242
|
function d(r) {
|
|
@@ -251,7 +245,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
251
245
|
function Y(r, f, b) {
|
|
252
246
|
v(r, f, b);
|
|
253
247
|
}
|
|
254
|
-
function
|
|
248
|
+
function R() {
|
|
255
249
|
s.value = new l.maps.Map(p.value, {
|
|
256
250
|
center: a.center,
|
|
257
251
|
zoom: a.zoom,
|
|
@@ -262,8 +256,8 @@ const Je = /* @__PURE__ */ I({
|
|
|
262
256
|
}), Y(s.value, "click", (r) => n("map-click", _(r)));
|
|
263
257
|
}
|
|
264
258
|
return ee(() => a.markers, C, { deep: !0 }), ee(() => a.polygons, w, { deep: !0 }), te(() => {
|
|
265
|
-
!p.value || !l || (
|
|
266
|
-
}),
|
|
259
|
+
!p.value || !l || (R(), C(a.markers), w(a.polygons));
|
|
260
|
+
}), xe(() => {
|
|
267
261
|
u.forEach((r) => r.remove());
|
|
268
262
|
}), (r, f) => (S(), B("div", {
|
|
269
263
|
ref_key: "mapRef",
|
|
@@ -284,9 +278,9 @@ const Je = /* @__PURE__ */ I({
|
|
|
284
278
|
}
|
|
285
279
|
},
|
|
286
280
|
setup(m) {
|
|
287
|
-
const h = m, y =
|
|
281
|
+
const h = m, y = Ge(), a = se(), { t: n } = j(), l = Fe(
|
|
288
282
|
O(h.coordinate ? h.coordinate : le.jb)
|
|
289
|
-
), p = W(""), s =
|
|
283
|
+
), p = W(""), s = Le(async function() {
|
|
290
284
|
p.value = await a.getFirstMatchingAddress(
|
|
291
285
|
l.lat,
|
|
292
286
|
l.lng
|
|
@@ -326,7 +320,7 @@ const Je = /* @__PURE__ */ I({
|
|
|
326
320
|
}, null, 8, ["center", "markers"])
|
|
327
321
|
]));
|
|
328
322
|
}
|
|
329
|
-
}), ro = /* @__PURE__ */
|
|
323
|
+
}), ro = /* @__PURE__ */ Ne(so, [["__scopeId", "data-v-272f5e8b"]]);
|
|
330
324
|
function ke([m, h]) {
|
|
331
325
|
return {
|
|
332
326
|
lat: h,
|
|
@@ -393,7 +387,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
393
387
|
M($);
|
|
394
388
|
}
|
|
395
389
|
}
|
|
396
|
-
function
|
|
390
|
+
function P() {
|
|
397
391
|
a("update:modelValue", null);
|
|
398
392
|
}
|
|
399
393
|
return (i, k) => {
|
|
@@ -446,7 +440,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
446
440
|
key: 0,
|
|
447
441
|
"prepend-icon": "delete",
|
|
448
442
|
variant: "tertiary",
|
|
449
|
-
onClick: k[1] || (k[1] = (t) =>
|
|
443
|
+
onClick: k[1] || (k[1] = (t) => P())
|
|
450
444
|
})) : Ae("", !0)
|
|
451
445
|
]);
|
|
452
446
|
};
|
|
@@ -459,7 +453,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
459
453
|
},
|
|
460
454
|
emits: ["update:modelValue", "validation-success"],
|
|
461
455
|
setup(m, { expose: h, emit: y }) {
|
|
462
|
-
const a = m, n = y, { t: l } = j(), p =
|
|
456
|
+
const a = m, n = y, { t: l } = j(), p = x({
|
|
463
457
|
get() {
|
|
464
458
|
var o, e;
|
|
465
459
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.name) ?? "";
|
|
@@ -468,7 +462,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
468
462
|
const e = a.modelValue ?? {};
|
|
469
463
|
e.profile ?? (e.profile = {}), e.profile.name = o, n("update:modelValue", e);
|
|
470
464
|
}
|
|
471
|
-
}), s =
|
|
465
|
+
}), s = x({
|
|
472
466
|
get() {
|
|
473
467
|
var o, e;
|
|
474
468
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.regNo) ?? "";
|
|
@@ -477,7 +471,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
477
471
|
const e = a.modelValue ?? {};
|
|
478
472
|
e.profile ?? (e.profile = {}), e.profile.regNo = o, n("update:modelValue", e);
|
|
479
473
|
}
|
|
480
|
-
}), u =
|
|
474
|
+
}), u = x({
|
|
481
475
|
get() {
|
|
482
476
|
var o, e, t;
|
|
483
477
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line1) ?? "";
|
|
@@ -487,7 +481,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
487
481
|
const e = a.modelValue ?? {};
|
|
488
482
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line1 = o, n("update:modelValue", e);
|
|
489
483
|
}
|
|
490
|
-
}), _ =
|
|
484
|
+
}), _ = x({
|
|
491
485
|
get() {
|
|
492
486
|
var o, e, t;
|
|
493
487
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.line2) ?? "";
|
|
@@ -497,7 +491,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
497
491
|
const e = a.modelValue ?? {};
|
|
498
492
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.line2 = o, n("update:modelValue", e);
|
|
499
493
|
}
|
|
500
|
-
}), v =
|
|
494
|
+
}), v = x({
|
|
501
495
|
get() {
|
|
502
496
|
var o, e, t;
|
|
503
497
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.city) ?? "";
|
|
@@ -507,7 +501,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
507
501
|
const e = a.modelValue ?? {};
|
|
508
502
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.city = o, n("update:modelValue", e);
|
|
509
503
|
}
|
|
510
|
-
}), M =
|
|
504
|
+
}), M = x({
|
|
511
505
|
get() {
|
|
512
506
|
var o, e, t;
|
|
513
507
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.postcode) ?? "";
|
|
@@ -517,7 +511,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
517
511
|
const e = a.modelValue ?? {};
|
|
518
512
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.postcode = o, n("update:modelValue", e);
|
|
519
513
|
}
|
|
520
|
-
}), $ =
|
|
514
|
+
}), $ = x({
|
|
521
515
|
get() {
|
|
522
516
|
var o, e, t;
|
|
523
517
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.state) ?? "";
|
|
@@ -527,7 +521,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
527
521
|
const e = a.modelValue ?? {};
|
|
528
522
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.state = o, n("update:modelValue", e);
|
|
529
523
|
}
|
|
530
|
-
}), C =
|
|
524
|
+
}), C = x({
|
|
531
525
|
get() {
|
|
532
526
|
var o, e, t;
|
|
533
527
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.country) ?? "";
|
|
@@ -537,7 +531,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
537
531
|
const e = a.modelValue ?? {};
|
|
538
532
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.country = o, n("update:modelValue", e);
|
|
539
533
|
}
|
|
540
|
-
}),
|
|
534
|
+
}), P = x({
|
|
541
535
|
get() {
|
|
542
536
|
var o, e, t;
|
|
543
537
|
return ((t = (e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.address) == null ? void 0 : t.coordinates) ?? null;
|
|
@@ -547,7 +541,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
547
541
|
const e = a.modelValue ?? {};
|
|
548
542
|
e.profile ?? (e.profile = {}), (t = e.profile).address ?? (t.address = {}), e.profile.address.coordinates = o, n("update:modelValue", e);
|
|
549
543
|
}
|
|
550
|
-
}), i =
|
|
544
|
+
}), i = x({
|
|
551
545
|
get() {
|
|
552
546
|
var o, e;
|
|
553
547
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.phoneNo) ?? "";
|
|
@@ -556,7 +550,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
556
550
|
const e = a.modelValue ?? {};
|
|
557
551
|
e.profile ?? (e.profile = {}), e.profile.phoneNo = o, n("update:modelValue", e);
|
|
558
552
|
}
|
|
559
|
-
}), k =
|
|
553
|
+
}), k = x({
|
|
560
554
|
get() {
|
|
561
555
|
var o, e;
|
|
562
556
|
return ((e = (o = a.modelValue) == null ? void 0 : o.profile) == null ? void 0 : e.email) ?? "";
|
|
@@ -664,8 +658,8 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
664
658
|
disabled: o.disabled,
|
|
665
659
|
rules: [c(E)()],
|
|
666
660
|
"label-mark": "required",
|
|
667
|
-
modelValue:
|
|
668
|
-
"onUpdate:modelValue": e[8] || (e[8] = (d) =>
|
|
661
|
+
modelValue: P.value,
|
|
662
|
+
"onUpdate:modelValue": e[8] || (e[8] = (d) => P.value = d)
|
|
669
663
|
}, null, 8, ["disabled", "rules", "modelValue"])
|
|
670
664
|
]),
|
|
671
665
|
g("div", wo, [
|
|
@@ -703,7 +697,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
703
697
|
},
|
|
704
698
|
emits: ["update:show", "submitted"],
|
|
705
699
|
setup(m, { expose: h, emit: y }) {
|
|
706
|
-
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(() => {
|
|
707
701
|
switch (a.mode) {
|
|
708
702
|
case T.READ:
|
|
709
703
|
return "";
|
|
@@ -713,7 +707,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
713
707
|
return s("inventory.warehouse.create.title");
|
|
714
708
|
}
|
|
715
709
|
return "";
|
|
716
|
-
}), v =
|
|
710
|
+
}), v = x(() => {
|
|
717
711
|
switch (a.mode) {
|
|
718
712
|
case T.READ:
|
|
719
713
|
return "";
|
|
@@ -739,7 +733,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
739
733
|
}
|
|
740
734
|
});
|
|
741
735
|
const $ = oe(a, "show"), C = oe(a, "warehouse");
|
|
742
|
-
function
|
|
736
|
+
function P() {
|
|
743
737
|
var o, e;
|
|
744
738
|
(e = (o = M.value) == null ? void 0 : o.validateInputs) == null || e.call(o);
|
|
745
739
|
}
|
|
@@ -835,7 +829,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
835
829
|
V(t, {
|
|
836
830
|
loading: l.value,
|
|
837
831
|
label: v.value,
|
|
838
|
-
onClick:
|
|
832
|
+
onClick: P
|
|
839
833
|
}, null, 8, ["loading", "label"])
|
|
840
834
|
])
|
|
841
835
|
]),
|
|
@@ -843,13 +837,13 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
843
837
|
}, 8, ["header", "modelValue", "dismiss-away"]);
|
|
844
838
|
};
|
|
845
839
|
}
|
|
846
|
-
}), 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 = {
|
|
847
841
|
key: 0,
|
|
848
842
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
849
|
-
}, 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({
|
|
850
844
|
__name: "WarehouseView",
|
|
851
845
|
setup(m) {
|
|
852
|
-
const h = Ce(), y =
|
|
846
|
+
const h = Ce(), y = qe(), a = x(() => h.warehouses), n = Me(), l = ae(), p = W(!1), { t: s } = j();
|
|
853
847
|
te(() => {
|
|
854
848
|
y._currentLocation && A();
|
|
855
849
|
}), ee([() => y._currentLocation], () => {
|
|
@@ -898,7 +892,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
898
892
|
n.close();
|
|
899
893
|
}
|
|
900
894
|
}
|
|
901
|
-
const { columnDefs: C, formatRowData:
|
|
895
|
+
const { columnDefs: C, formatRowData: P } = Ze(
|
|
902
896
|
v,
|
|
903
897
|
M
|
|
904
898
|
);
|
|
@@ -919,7 +913,7 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
919
913
|
p.value = !1;
|
|
920
914
|
}
|
|
921
915
|
}
|
|
922
|
-
const { breakpoints: o } =
|
|
916
|
+
const { breakpoints: o } = Ke(), e = x(() => o.value.xs || o.value.sm), t = x(() => e.value ? 10 : 20), q = Be();
|
|
923
917
|
return (w, d) => {
|
|
924
918
|
const Y = L("FmTable");
|
|
925
919
|
return S(), z(ze, {
|
|
@@ -948,40 +942,40 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
948
942
|
searchable: "",
|
|
949
943
|
"change-location": "",
|
|
950
944
|
search: k.value,
|
|
951
|
-
"onUpdate:search": d[0] || (d[0] = (
|
|
945
|
+
"onUpdate:search": d[0] || (d[0] = (R) => k.value = R)
|
|
952
946
|
}, null, 8, ["search"]),
|
|
953
947
|
(S(), z(Y, {
|
|
954
|
-
style:
|
|
948
|
+
style: Pe(c(q).tableHeight),
|
|
955
949
|
"column-defs": c(C),
|
|
956
|
-
"row-data": c(
|
|
950
|
+
"row-data": c(P)(a.value),
|
|
957
951
|
"search-value": k.value,
|
|
958
952
|
loading: !c(y)._currentLocation || p.value,
|
|
959
|
-
onRowClick: d[1] || (d[1] = (
|
|
953
|
+
onRowClick: d[1] || (d[1] = (R) => v(R.original.original)),
|
|
960
954
|
key: a.value.length,
|
|
961
955
|
"page-size": t.value
|
|
962
956
|
}, {
|
|
963
|
-
"list-row": N((
|
|
964
|
-
V(
|
|
965
|
-
row:
|
|
957
|
+
"list-row": N((R) => [
|
|
958
|
+
V(je, {
|
|
959
|
+
row: R,
|
|
966
960
|
onRowClick: (r) => v(r.original)
|
|
967
961
|
}, {
|
|
968
962
|
default: N((r) => {
|
|
969
|
-
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;
|
|
970
964
|
return [
|
|
971
965
|
g("div", Co, [
|
|
972
|
-
g("div",
|
|
966
|
+
g("div", xo, [
|
|
973
967
|
V(c(Q), {
|
|
974
|
-
render: (
|
|
968
|
+
render: (F = (b = (f = r.warehouse) == null ? void 0 : f.column) == null ? void 0 : b.columnDef) == null ? void 0 : F.cell,
|
|
975
969
|
props: (G = (D = r.warehouse) == null ? void 0 : D.getContext) == null ? void 0 : G.call(D)
|
|
976
970
|
}, null, 8, ["render", "props"])
|
|
977
971
|
]),
|
|
978
|
-
g("div",
|
|
972
|
+
g("div", Fo, [
|
|
979
973
|
V(c(Q), {
|
|
980
974
|
render: (ue = (ne = (re = r.contact) == null ? void 0 : re.column) == null ? void 0 : ne.columnDef) == null ? void 0 : ue.cell,
|
|
981
975
|
props: (ie = (K = r.contact) == null ? void 0 : K.getContext) == null ? void 0 : ie.call(K)
|
|
982
976
|
}, null, 8, ["render", "props"])
|
|
983
977
|
]),
|
|
984
|
-
(de =
|
|
978
|
+
(de = R.original) != null && de.email ? (S(), B("div", $o, [
|
|
985
979
|
V(c(Q), {
|
|
986
980
|
render: (me = (pe = (ce = r.email) == null ? void 0 : ce.column) == null ? void 0 : pe.columnDef) == null ? void 0 : me.cell,
|
|
987
981
|
props: (fe = (H = r.email) == null ? void 0 : H.getContext) == null ? void 0 : fe.call(H)
|
|
@@ -1004,10 +998,10 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
1004
998
|
], 2),
|
|
1005
999
|
V(Mo, {
|
|
1006
1000
|
show: u.value.show,
|
|
1007
|
-
"onUpdate:show": d[2] || (d[2] = (
|
|
1001
|
+
"onUpdate:show": d[2] || (d[2] = (R) => u.value.show = R),
|
|
1008
1002
|
warehouse: u.value.warehouse,
|
|
1009
1003
|
mode: u.value.mode,
|
|
1010
|
-
onSubmitted: d[3] || (d[3] = (
|
|
1004
|
+
onSubmitted: d[3] || (d[3] = (R) => A(!0))
|
|
1011
1005
|
}, null, 8, ["show", "warehouse", "mode"])
|
|
1012
1006
|
]),
|
|
1013
1007
|
_: 1
|
|
@@ -1016,5 +1010,5 @@ const uo = { class: "flex gap-8 items-center" }, io = { key: 0 }, co = { key: 1
|
|
|
1016
1010
|
}
|
|
1017
1011
|
});
|
|
1018
1012
|
export {
|
|
1019
|
-
|
|
1013
|
+
Uo as default
|
|
1020
1014
|
};
|