@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,26 +1,20 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { a as re, c as je, S as at,
|
|
3
|
-
import { useDialog as
|
|
4
|
-
import { i as
|
|
5
|
-
import { F as W } from "./form-mode.enum-BKiNVH6A.js";
|
|
1
|
+
import { ref as q, defineComponent as me, computed as V, resolveComponent as $, openBlock as v, createBlock as A, withCtx as S, createVNode as f, unref as d, createElementBlock as R, Fragment as J, createElementVNode as u, createCommentVNode as H, onMounted as nt, watch as ze, normalizeClass as le, createTextVNode as He, toDisplayString as N, renderList as te, isRef as Ee, createSlots as Oe, normalizeStyle as ot, Teleport as Re, normalizeProps as lt, guardReactiveProps as rt } from "vue";
|
|
2
|
+
import { a as re, c as W, d as je, S as at, e as st, D as Ae, f as ge, A as be, h as Ye, i as he, t as qe, j as ve, k as xe, U as it, M as ut, l as De, C as Ve, m as Te, n as dt, o as mt, I as ct, u as pt, p as vt, q as ft, r as yt, s as gt, v as Pe } from "./app-Fc2FPGhO.js";
|
|
3
|
+
import { useDialog as Ge, useSnackbar as _e, useProxiedModel as Be, useDialogChild as bt, useBreakpoints as ht } from "@feedmepos/ui-library";
|
|
4
|
+
import { i as _t, _ as xt } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
6
5
|
import { useI18n as ae, useCoreStore as fe } from "@feedmepos/mf-common";
|
|
7
|
-
import { defineStore as
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { g as kt, _ as ke, S as Se } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
13
|
-
import { _ as St } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-B3nsmCuj.js";
|
|
14
|
-
import { _ as Ce } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-D7uvrzFU.js";
|
|
15
|
-
import { u as We } from "./feature-Bfq8yWgS.js";
|
|
6
|
+
import { defineStore as Vt, storeToRefs as kt } from "pinia";
|
|
7
|
+
import { g as St, _ as ke, S as Se } from "./StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js";
|
|
8
|
+
import { _ as Ct } from "./InventoryBindingForm.vue_vue_type_script_setup_true_lang-CRwcFskQ.js";
|
|
9
|
+
import { _ as Ce } from "./IngredientBindedItem.vue_vue_type_script_setup_true_lang-DjTvrLPs.js";
|
|
10
|
+
import { u as We } from "./feature-BMEyYowI.js";
|
|
16
11
|
import { _ as we } from "./PreviewBadge.vue_vue_type_script_setup_true_lang-CRZiQHjx.js";
|
|
17
|
-
import { u as
|
|
18
|
-
import { t as Ke, d as Je, s as
|
|
19
|
-
import {
|
|
20
|
-
import { F as It } from "./FmDroppableField-8RzKjEdL.js";
|
|
12
|
+
import { u as wt } from "./netsuite-CqMWgzKo.js";
|
|
13
|
+
import { t as Ke, d as Je, s as Mt, r as Ft } from "./xlsx.util-D2Tdwf8J.js";
|
|
14
|
+
import { F as It } from "./FmDroppableField-CC7RiBoR.js";
|
|
21
15
|
import "./array-hChJVZLE.js";
|
|
22
|
-
const
|
|
23
|
-
const r =
|
|
16
|
+
const Me = Vt("ingredientForm", function() {
|
|
17
|
+
const r = Ge(), g = _e(), s = re(), n = q(!1), { t: l } = ae(), o = q();
|
|
24
18
|
function m() {
|
|
25
19
|
const b = {
|
|
26
20
|
unit: {},
|
|
@@ -52,9 +46,9 @@ const Fe = pt("ingredientForm", function() {
|
|
|
52
46
|
type: "success"
|
|
53
47
|
});
|
|
54
48
|
} catch (i) {
|
|
55
|
-
i instanceof at &&
|
|
49
|
+
i instanceof at && _t(i) ? r.open({
|
|
56
50
|
title: "Cannot delete ingredient",
|
|
57
|
-
contentComponent:
|
|
51
|
+
contentComponent: xt,
|
|
58
52
|
contentComponentProps: {
|
|
59
53
|
subject: (b == null ? void 0 : b.name) ?? "",
|
|
60
54
|
items: i.errorResponse.message
|
|
@@ -97,7 +91,7 @@ const Fe = pt("ingredientForm", function() {
|
|
|
97
91
|
};
|
|
98
92
|
});
|
|
99
93
|
function $t() {
|
|
100
|
-
const { updateIngredient: a, deleteIngredient: r } =
|
|
94
|
+
const { updateIngredient: a, deleteIngredient: r } = Me(), { t: g } = ae();
|
|
101
95
|
async function s(l, o) {
|
|
102
96
|
const m = je(o);
|
|
103
97
|
if (l === ge.Edit) {
|
|
@@ -144,8 +138,8 @@ function $t() {
|
|
|
144
138
|
id: "action",
|
|
145
139
|
header: "",
|
|
146
140
|
cell(l) {
|
|
147
|
-
return
|
|
148
|
-
[
|
|
141
|
+
return st(
|
|
142
|
+
[Ae[ge.Edit], Ae[ge.Delete]],
|
|
149
143
|
(o) => {
|
|
150
144
|
s(o, l.row.original);
|
|
151
145
|
}
|
|
@@ -185,7 +179,7 @@ const Ut = /* @__PURE__ */ me({
|
|
|
185
179
|
inventoryBindings: []
|
|
186
180
|
}) : l("update:modelValue", null);
|
|
187
181
|
}
|
|
188
|
-
}), y = V(() =>
|
|
182
|
+
}), y = V(() => St(s.value));
|
|
189
183
|
function _(i) {
|
|
190
184
|
const p = g.modelValue ?? {};
|
|
191
185
|
p.measurement = i ? `${i}` : null, l("update:modelValue", p);
|
|
@@ -206,12 +200,12 @@ const Ut = /* @__PURE__ */ me({
|
|
|
206
200
|
class: "p-16 flex flex-col gap-16"
|
|
207
201
|
}, {
|
|
208
202
|
default: S(() => {
|
|
209
|
-
var C,
|
|
203
|
+
var C, M;
|
|
210
204
|
return [
|
|
211
205
|
f(D, {
|
|
212
206
|
value: "",
|
|
213
207
|
"model-value": m.value,
|
|
214
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
208
|
+
"onUpdate:modelValue": p[0] || (p[0] = (F) => m.value = F),
|
|
215
209
|
label: d(o)("inventory.ingredient.convertible.title"),
|
|
216
210
|
sublabel: d(o)("inventory.ingredient.convertible.subtitle"),
|
|
217
211
|
labelPlacement: "right"
|
|
@@ -225,9 +219,9 @@ const Ut = /* @__PURE__ */ me({
|
|
|
225
219
|
items: y.value
|
|
226
220
|
}, null, 8, ["label", "modelValue", "items"])
|
|
227
221
|
]),
|
|
228
|
-
f(
|
|
222
|
+
f(Ct, {
|
|
229
223
|
id: n.value,
|
|
230
|
-
"model-value": ((
|
|
224
|
+
"model-value": ((M = i.modelValue) == null ? void 0 : M.inventoryBindings) ?? [],
|
|
231
225
|
"onUpdate:modelValue": x,
|
|
232
226
|
"exclude-binding-id": n.value,
|
|
233
227
|
rules: [d(be)(1)]
|
|
@@ -252,8 +246,8 @@ const Et = { class: "flex gap-8" }, Rt = { class: "flex-1" }, At = { class: "fle
|
|
|
252
246
|
}, Bt = {
|
|
253
247
|
key: 2,
|
|
254
248
|
class: "border-1 border-fm-color-neutral-gray-200 fm-corner-radius-lg flex flex-col p-16 gap-16"
|
|
255
|
-
}, Nt = { class: "flex flex-col gap-12" }, Lt = { class: "flex flex-col gap-4" }, zt = { class: "fm-typo-en-title-sm-600" }, Ht = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ot = { class: "flex flex-col gap-4" }, jt = { class: "flex fm-corner-radius-md border-1 border-fm-color-neutral-gray-200" }, Yt = { class: "flex-1 p-12 flex flex-col gap-8" },
|
|
256
|
-
var
|
|
249
|
+
}, Nt = { class: "flex flex-col gap-12" }, Lt = { class: "flex flex-col gap-4" }, zt = { class: "fm-typo-en-title-sm-600" }, Ht = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ot = { class: "flex flex-col gap-4" }, jt = { class: "flex fm-corner-radius-md border-1 border-fm-color-neutral-gray-200" }, Yt = { class: "flex-1 p-12 flex flex-col gap-8" }, qt = { class: "mx-auto" }, Gt = { class: "flex flex-col" }, Wt = { class: "fm-typo-en-body-sm-600 translate-y-4" }, Kt = { class: "flex-1 p-12 flex flex-col gap-8" }, Jt = { class: "mx-auto" }, Qt = { class: "flex flex-col" }, Xt = { class: "fm-typo-en-body-sm-600 translate-y-4" }, Zt = { class: "flex-1 p-12 flex flex-col gap-8" }, en = { class: "mx-auto" }, tn = { class: "flex flex-col" }, nn = { class: "fm-typo-en-body-sm-600 translate-y-4" };
|
|
250
|
+
var Fe = /* @__PURE__ */ ((a) => (a.Daily = "Daily", a.Consumables = "Consumables", a.ShortTerm = "Short term", a.Kitchen = "Kitchen", a))(Fe || {});
|
|
257
251
|
const on = /* @__PURE__ */ me({
|
|
258
252
|
__name: "IngredientForm",
|
|
259
253
|
props: {
|
|
@@ -306,7 +300,7 @@ const on = /* @__PURE__ */ me({
|
|
|
306
300
|
get() {
|
|
307
301
|
var t, c;
|
|
308
302
|
const e = (c = (t = n.modelValue) == null ? void 0 : t.defaultCost) == null ? void 0 : c.costPerUnit;
|
|
309
|
-
return e ? +
|
|
303
|
+
return e ? +Ye(e) : 0;
|
|
310
304
|
},
|
|
311
305
|
set(e) {
|
|
312
306
|
var c, h, U, I;
|
|
@@ -355,7 +349,7 @@ const on = /* @__PURE__ */ me({
|
|
|
355
349
|
}), L = V(
|
|
356
350
|
() => [
|
|
357
351
|
...new Set(
|
|
358
|
-
o.skus.map((e) => e.operationalGroup ?? "").filter((e) => e && !Object.values(
|
|
352
|
+
o.skus.map((e) => e.operationalGroup ?? "").filter((e) => e && !Object.values(Fe).includes(e))
|
|
359
353
|
)
|
|
360
354
|
].sort()
|
|
361
355
|
), C = V({
|
|
@@ -365,7 +359,7 @@ const on = /* @__PURE__ */ me({
|
|
|
365
359
|
set(e) {
|
|
366
360
|
e ? w.value = "" : w.value = null;
|
|
367
361
|
}
|
|
368
|
-
}),
|
|
362
|
+
}), M = V(
|
|
369
363
|
() => o.units.flatMap(({ name: e, _id: t, abbrev: c, measurements: h }) => [
|
|
370
364
|
{
|
|
371
365
|
label: `${e}`,
|
|
@@ -384,7 +378,7 @@ const on = /* @__PURE__ */ me({
|
|
|
384
378
|
}))
|
|
385
379
|
])
|
|
386
380
|
);
|
|
387
|
-
function
|
|
381
|
+
function F(e) {
|
|
388
382
|
var t, c, h, U, I;
|
|
389
383
|
return ((c = (t = n.modelValue) == null ? void 0 : t.unit) == null ? void 0 : c._id) === ((h = e.value) == null ? void 0 : h._id) && ((U = n.modelValue) == null ? void 0 : U.trackingMeasurement) === ((I = e.value) == null ? void 0 : I.measurement);
|
|
390
384
|
}
|
|
@@ -433,7 +427,7 @@ const on = /* @__PURE__ */ me({
|
|
|
433
427
|
} : {};
|
|
434
428
|
t.valuation = e, l("update:modelValue", t);
|
|
435
429
|
}
|
|
436
|
-
}), O =
|
|
430
|
+
}), O = q();
|
|
437
431
|
r({
|
|
438
432
|
validateInputs: () => {
|
|
439
433
|
var e, t;
|
|
@@ -448,7 +442,7 @@ const on = /* @__PURE__ */ me({
|
|
|
448
442
|
(t = (e = O.value) == null ? void 0 : e.resetInputs) == null || t.call(e);
|
|
449
443
|
}
|
|
450
444
|
});
|
|
451
|
-
const z =
|
|
445
|
+
const z = q(!1), se = V(
|
|
452
446
|
() => {
|
|
453
447
|
var e, t, c;
|
|
454
448
|
return (e = n.modelValue) != null && e._id ? ((c = o.menu.bindedBySkuId[(t = n.modelValue) == null ? void 0 : t._id]) == null ? void 0 : c.filter(
|
|
@@ -469,7 +463,7 @@ const on = /* @__PURE__ */ me({
|
|
|
469
463
|
}
|
|
470
464
|
), ce = V(
|
|
471
465
|
() => o.skus.map((e) => ({ label: e.name, value: e.code }))
|
|
472
|
-
), ie =
|
|
466
|
+
), ie = q((oe = n.modelValue) == null ? void 0 : oe.code);
|
|
473
467
|
function pe(e) {
|
|
474
468
|
var c;
|
|
475
469
|
const t = e.el;
|
|
@@ -477,17 +471,17 @@ const on = /* @__PURE__ */ me({
|
|
|
477
471
|
}
|
|
478
472
|
function B(e) {
|
|
479
473
|
switch (e) {
|
|
480
|
-
case
|
|
474
|
+
case Ve.MY:
|
|
481
475
|
return "MYR";
|
|
482
|
-
case
|
|
476
|
+
case Ve.SG:
|
|
483
477
|
return "SGD";
|
|
484
|
-
case
|
|
478
|
+
case Ve.ID:
|
|
485
479
|
return "IDR";
|
|
486
480
|
default:
|
|
487
481
|
return "MYR";
|
|
488
482
|
}
|
|
489
483
|
}
|
|
490
|
-
const
|
|
484
|
+
const G = V(
|
|
491
485
|
() => {
|
|
492
486
|
var e, t, c, h, U, I;
|
|
493
487
|
return ((h = (c = (t = (e = n.modelValue) == null ? void 0 : e.unit) == null ? void 0 : t.measurements) == null ? void 0 : c.find(
|
|
@@ -547,7 +541,7 @@ const on = /* @__PURE__ */ me({
|
|
|
547
541
|
label: d(s)("inventory.ingredient.code"),
|
|
548
542
|
"model-value": b.value,
|
|
549
543
|
"onUpdate:modelValue": t[0] || (t[0] = (k) => b.value = k),
|
|
550
|
-
rules: [d(
|
|
544
|
+
rules: [d(xe)(), d(it)(ce.value, ie.value)],
|
|
551
545
|
"label-mark": "required"
|
|
552
546
|
}, null, 8, ["label", "model-value", "rules"])
|
|
553
547
|
]),
|
|
@@ -556,14 +550,14 @@ const on = /* @__PURE__ */ me({
|
|
|
556
550
|
label: d(s)("inventory.ingredient.name"),
|
|
557
551
|
"model-value": i.value,
|
|
558
552
|
"onUpdate:modelValue": t[1] || (t[1] = (k) => i.value = k),
|
|
559
|
-
rules: [d(
|
|
553
|
+
rules: [d(xe)()],
|
|
560
554
|
"label-mark": "required"
|
|
561
555
|
}, null, 8, ["label", "model-value", "rules"])
|
|
562
556
|
])
|
|
563
557
|
]),
|
|
564
558
|
f(Ie, {
|
|
565
559
|
"model-value": D.value,
|
|
566
|
-
rules: [d(
|
|
560
|
+
rules: [d(xe)()],
|
|
567
561
|
"label-mark": "required"
|
|
568
562
|
}, {
|
|
569
563
|
label: S(() => [
|
|
@@ -599,7 +593,7 @@ const on = /* @__PURE__ */ me({
|
|
|
599
593
|
class: "overflow-x-hidden overflow-y-auto max-h-[300px]",
|
|
600
594
|
onVnodeMounted: pe
|
|
601
595
|
}, [
|
|
602
|
-
(v(!0), R(J, null, te(
|
|
596
|
+
(v(!0), R(J, null, te(M.value, (Y) => (v(), R(J, {
|
|
603
597
|
key: Y.label
|
|
604
598
|
}, [
|
|
605
599
|
Y.displayAsSection ? (v(), R(J, { key: 0 }, [
|
|
@@ -610,9 +604,9 @@ const on = /* @__PURE__ */ me({
|
|
|
610
604
|
], 64)) : (v(), A(K, {
|
|
611
605
|
key: 1,
|
|
612
606
|
label: Y.label,
|
|
613
|
-
"model-value":
|
|
607
|
+
"model-value": F(Y),
|
|
614
608
|
onClick: (Nn) => P(Y.value),
|
|
615
|
-
"x-should-scroll-into": `${
|
|
609
|
+
"x-should-scroll-into": `${F(Y)}`
|
|
616
610
|
}, null, 8, ["label", "model-value", "onClick", "x-should-scroll-into"]))
|
|
617
611
|
], 64))), 128))
|
|
618
612
|
], 512)
|
|
@@ -645,7 +639,7 @@ const on = /* @__PURE__ */ me({
|
|
|
645
639
|
key: 1,
|
|
646
640
|
"model-value": p.value,
|
|
647
641
|
"onUpdate:modelValue": t[3] || (t[3] = (k) => p.value = k),
|
|
648
|
-
rules: [d(be)(0), d(
|
|
642
|
+
rules: [d(be)(0), d(ut)(4)]
|
|
649
643
|
}, {
|
|
650
644
|
label: S(() => [
|
|
651
645
|
f(we, { "z-index": 50 }, {
|
|
@@ -660,11 +654,11 @@ const on = /* @__PURE__ */ me({
|
|
|
660
654
|
prepend: S(() => {
|
|
661
655
|
var k, Y;
|
|
662
656
|
return [
|
|
663
|
-
u("div", Dt, N(B(((k = d(m).currentCountry) == null ? void 0 : k.value) ?? d(
|
|
657
|
+
u("div", Dt, N(B(((k = d(m).currentCountry) == null ? void 0 : k.value) ?? d(De)) === "MYR" ? "RM" : B(((Y = d(m).currentCountry) == null ? void 0 : Y.value) ?? d(De))), 1)
|
|
664
658
|
];
|
|
665
659
|
}),
|
|
666
660
|
append: S(() => [
|
|
667
|
-
u("div", Tt, " / " + N(
|
|
661
|
+
u("div", Tt, " / " + N(G.value), 1)
|
|
668
662
|
]),
|
|
669
663
|
_: 1
|
|
670
664
|
}, 8, ["model-value", "rules"])) : H("", !0),
|
|
@@ -699,7 +693,7 @@ const on = /* @__PURE__ */ me({
|
|
|
699
693
|
]),
|
|
700
694
|
default: S(() => [
|
|
701
695
|
f(I, { label: "Preset" }),
|
|
702
|
-
(v(!0), R(J, null, te(Object.values(
|
|
696
|
+
(v(!0), R(J, null, te(Object.values(Fe), (k) => (v(), A(K, {
|
|
703
697
|
key: k,
|
|
704
698
|
label: k,
|
|
705
699
|
"model-value": w.value === k,
|
|
@@ -768,13 +762,13 @@ const on = /* @__PURE__ */ me({
|
|
|
768
762
|
}, null, 8, ["model-value", "rules"]),
|
|
769
763
|
u("div", jt, [
|
|
770
764
|
u("div", Yt, [
|
|
771
|
-
u("div",
|
|
765
|
+
u("div", qt, [
|
|
772
766
|
f(ke, {
|
|
773
767
|
days: ne.value,
|
|
774
768
|
level: d(Se).low
|
|
775
769
|
}, null, 8, ["days", "level"])
|
|
776
770
|
]),
|
|
777
|
-
u("div",
|
|
771
|
+
u("div", Gt, [
|
|
778
772
|
u("div", Wt, N(d(s)("inventory.ingredient.threshold.whenRemaining")), 1),
|
|
779
773
|
f(Ue, {
|
|
780
774
|
modelValue: ne.value,
|
|
@@ -864,14 +858,14 @@ const on = /* @__PURE__ */ me({
|
|
|
864
858
|
},
|
|
865
859
|
emits: ["update:show"],
|
|
866
860
|
setup(a) {
|
|
867
|
-
const r = a, g = re(), s =
|
|
861
|
+
const r = a, g = re(), s = wt(), n = _e(), { t: l } = ae(), o = Be(r, "show"), m = Be(r, "unit"), y = V(
|
|
868
862
|
() => {
|
|
869
|
-
var
|
|
870
|
-
return s.isEnabled && s.netSuiteItemBySkuId.has((
|
|
863
|
+
var F;
|
|
864
|
+
return s.isEnabled && s.netSuiteItemBySkuId.has((F = r.unit) == null ? void 0 : F._id);
|
|
871
865
|
}
|
|
872
866
|
), _ = V(() => {
|
|
873
|
-
var
|
|
874
|
-
return !((
|
|
867
|
+
var F;
|
|
868
|
+
return !((F = r.unit) != null && F._id) || !y.value;
|
|
875
869
|
}), x = V(() => {
|
|
876
870
|
switch (r.mode) {
|
|
877
871
|
case W.READ:
|
|
@@ -892,7 +886,7 @@ const on = /* @__PURE__ */ me({
|
|
|
892
886
|
return l("common.add");
|
|
893
887
|
}
|
|
894
888
|
return "";
|
|
895
|
-
}), i =
|
|
889
|
+
}), i = q(), p = q(!1);
|
|
896
890
|
async function D() {
|
|
897
891
|
p.value = !0;
|
|
898
892
|
try {
|
|
@@ -901,8 +895,8 @@ const on = /* @__PURE__ */ me({
|
|
|
901
895
|
message: l("inventory.ingredient.create.success", { name: m.value.name }),
|
|
902
896
|
type: "success"
|
|
903
897
|
});
|
|
904
|
-
} catch (
|
|
905
|
-
|
|
898
|
+
} catch (F) {
|
|
899
|
+
F instanceof Te || n.open({
|
|
906
900
|
title: l("inventory.ingredient.create.error.title"),
|
|
907
901
|
message: l("inventory.ingredient.create.error.message"),
|
|
908
902
|
type: "error"
|
|
@@ -919,8 +913,8 @@ const on = /* @__PURE__ */ me({
|
|
|
919
913
|
message: l("inventory.ingredient.update.success", { name: m.value.name }),
|
|
920
914
|
type: "success"
|
|
921
915
|
});
|
|
922
|
-
} catch (
|
|
923
|
-
|
|
916
|
+
} catch (F) {
|
|
917
|
+
F instanceof Te || n.open({
|
|
924
918
|
title: l("inventory.ingredient.update.error.title"),
|
|
925
919
|
message: l("inventory.ingredient.update.error.message"),
|
|
926
920
|
type: "error"
|
|
@@ -930,8 +924,8 @@ const on = /* @__PURE__ */ me({
|
|
|
930
924
|
}
|
|
931
925
|
}
|
|
932
926
|
function L() {
|
|
933
|
-
var
|
|
934
|
-
(P = (
|
|
927
|
+
var F, P;
|
|
928
|
+
(P = (F = i.value) == null ? void 0 : F.validateInputs) == null || P.call(F);
|
|
935
929
|
}
|
|
936
930
|
function C() {
|
|
937
931
|
switch (r.mode) {
|
|
@@ -943,12 +937,12 @@ const on = /* @__PURE__ */ me({
|
|
|
943
937
|
return D();
|
|
944
938
|
}
|
|
945
939
|
}
|
|
946
|
-
const
|
|
940
|
+
const M = V(() => {
|
|
947
941
|
var X, Z;
|
|
948
942
|
if (!s.isEnabled || !((X = r.unit) != null && X._id)) return null;
|
|
949
|
-
const
|
|
950
|
-
return
|
|
951
|
-
(j) => j.parentNetSuiteId ===
|
|
943
|
+
const F = (Z = s.netSuiteItemBySkuId.get(r.unit._id)) == null ? void 0 : Z[0];
|
|
944
|
+
return F ? s.state.setting.childItems.filter(
|
|
945
|
+
(j) => j.parentNetSuiteId === F.netSuiteId
|
|
952
946
|
).map((j) => {
|
|
953
947
|
var z;
|
|
954
948
|
const O = (z = s.measurementByNetsuiteId.get(j.unitOfMeasureId)) == null ? void 0 : z[0];
|
|
@@ -958,7 +952,7 @@ const on = /* @__PURE__ */ me({
|
|
|
958
952
|
} : null;
|
|
959
953
|
}).filter((j) => j).map((j) => j) : null;
|
|
960
954
|
});
|
|
961
|
-
return (
|
|
955
|
+
return (F, P) => {
|
|
962
956
|
const X = $("FmChip"), Z = $("FmButton"), j = $("FmSideSheet");
|
|
963
957
|
return v(), A(j, {
|
|
964
958
|
"model-value": d(o),
|
|
@@ -1001,14 +995,14 @@ const on = /* @__PURE__ */ me({
|
|
|
1001
995
|
ref: i,
|
|
1002
996
|
modelValue: d(m),
|
|
1003
997
|
"onUpdate:modelValue": P[0] || (P[0] = (z) => Ee(m) ? m.value = z : null),
|
|
1004
|
-
mode:
|
|
998
|
+
mode: F.mode,
|
|
1005
999
|
disabled: p.value,
|
|
1006
1000
|
"onClick:submit": P[1] || (P[1] = (z) => C())
|
|
1007
1001
|
}, null, 8, ["modelValue", "mode", "disabled"]),
|
|
1008
|
-
(O =
|
|
1002
|
+
(O = M.value) != null && O.length ? (v(), R("div", rn, [
|
|
1009
1003
|
P[4] || (P[4] = u("div", { class: "fm-typo-en-title-sm-600" }, N("NetSuite info"), -1)),
|
|
1010
1004
|
u("div", an, [
|
|
1011
|
-
(v(!0), R(J, null, te(
|
|
1005
|
+
(v(!0), R(J, null, te(M.value, (z, se) => (v(), R("div", {
|
|
1012
1006
|
key: se,
|
|
1013
1007
|
class: "flex items-center"
|
|
1014
1008
|
}, [
|
|
@@ -1050,7 +1044,7 @@ function yn(a) {
|
|
|
1050
1044
|
unit: ((g = a.unit.measurements.find((m) => m.id === a.trackingMeasurement)) == null ? void 0 : g.abbrev) ?? a.unit.abbrev,
|
|
1051
1045
|
baseUnit: a.unit.abbrev,
|
|
1052
1046
|
valuationMethod: a.valuation ?? "WAVG",
|
|
1053
|
-
pricePerUnit: (s = a.defaultCost) != null && s.costPerUnit ? +
|
|
1047
|
+
pricePerUnit: (s = a.defaultCost) != null && s.costPerUnit ? +Ye((n = a.defaultCost) == null ? void 0 : n.costPerUnit) : 0,
|
|
1054
1048
|
thresholdLow: ((l = a.thresholds) == null ? void 0 : l.low) ?? de().low,
|
|
1055
1049
|
thresholdMid: ((o = a.thresholds) == null ? void 0 : o.mid) ?? de().mid
|
|
1056
1050
|
};
|
|
@@ -1103,7 +1097,7 @@ function gn() {
|
|
|
1103
1097
|
[],
|
|
1104
1098
|
n.map((_) => _.name),
|
|
1105
1099
|
...r.map((_) => n.map((x) => _[x.id]))
|
|
1106
|
-
], o = n.map((_) => `system:${_.id}`), m = Ke(l, o), y = `${s == null ? void 0 : s.name} ingredients (${
|
|
1100
|
+
], o = n.map((_) => `system:${_.id}`), m = Ke(l, o), y = `${s == null ? void 0 : s.name} ingredients (${dt(/* @__PURE__ */ new Date())}).xlsx`;
|
|
1107
1101
|
return Je(m, y), y;
|
|
1108
1102
|
}
|
|
1109
1103
|
function bn() {
|
|
@@ -1125,7 +1119,7 @@ function hn(a) {
|
|
|
1125
1119
|
l,
|
|
1126
1120
|
o,
|
|
1127
1121
|
...m
|
|
1128
|
-
] =
|
|
1122
|
+
] = Mt(a);
|
|
1129
1123
|
if (!r || !r.length || r.some((i) => i.length && !i.startsWith("system:")))
|
|
1130
1124
|
throw new Error("Missing meta header. Excel file does not come from the template.");
|
|
1131
1125
|
const y = r.map((i) => i.split(":")[1]), x = ["code", "name", "unit", "baseUnit"].filter((i) => !y.includes(i));
|
|
@@ -1147,24 +1141,24 @@ function hn(a) {
|
|
|
1147
1141
|
}
|
|
1148
1142
|
function Ne(a, r, g) {
|
|
1149
1143
|
var C;
|
|
1150
|
-
const n = re().units, l = new Array(), o = g.filter((
|
|
1144
|
+
const n = re().units, l = new Array(), o = g.filter((M) => M.data.code === a.code);
|
|
1151
1145
|
o.length > 1 && l.push(
|
|
1152
|
-
`Code ${a.code} is already used in row ${o.map((
|
|
1146
|
+
`Code ${a.code} is already used in row ${o.map((M) => M.index + 6).join()}.`
|
|
1153
1147
|
);
|
|
1154
|
-
const m = n.find((
|
|
1148
|
+
const m = n.find((M) => M.abbrev === a.baseUnit), y = m == null ? void 0 : m.measurements.find((M) => M.abbrev === a.unit);
|
|
1155
1149
|
if (!m)
|
|
1156
1150
|
l.push(`Cannot find base unit of symbol ${a.baseUnit}.`);
|
|
1157
1151
|
else if (a.baseUnit !== a.unit && !y) {
|
|
1158
|
-
const
|
|
1159
|
-
l.push(
|
|
1152
|
+
const M = `Cannot find unit conversion for ${a.baseUnit} with symbol ${a.unit || "[empty]"}.`;
|
|
1153
|
+
l.push(M);
|
|
1160
1154
|
}
|
|
1161
1155
|
const _ = ve.options.find(
|
|
1162
|
-
(
|
|
1156
|
+
(M) => M === a.valuationMethod
|
|
1163
1157
|
);
|
|
1164
1158
|
a.valuationMethod && !_ && l.push(
|
|
1165
1159
|
`Expected valuation method to be one of ${ve.options.join()} but got ${a.valuationMethod} instead.`
|
|
1166
1160
|
);
|
|
1167
|
-
const b = fe().currentCountry.value, i = (
|
|
1161
|
+
const b = fe().currentCountry.value, i = (M) => `${M}`.length && ct()(M) === !0, p = i(`${a.pricePerUnit}`) === !0 ? {
|
|
1168
1162
|
costPerUnit: {
|
|
1169
1163
|
...qe(Number(a.pricePerUnit) || 0),
|
|
1170
1164
|
currency: ((C = he(b)) == null ? void 0 : C.currency) ?? "MYR"
|
|
@@ -1180,7 +1174,7 @@ function Ne(a, r, g) {
|
|
|
1180
1174
|
_id: vn(),
|
|
1181
1175
|
code: a.code,
|
|
1182
1176
|
name: a.name,
|
|
1183
|
-
unit: m ?? n.find((
|
|
1177
|
+
unit: m ?? n.find((M) => M) ?? fn,
|
|
1184
1178
|
trackingMeasurement: y == null ? void 0 : y.id,
|
|
1185
1179
|
valuation: _,
|
|
1186
1180
|
defaultCost: p,
|
|
@@ -1192,7 +1186,7 @@ function Ne(a, r, g) {
|
|
|
1192
1186
|
}
|
|
1193
1187
|
function _n(a) {
|
|
1194
1188
|
try {
|
|
1195
|
-
const r = hn(a).filter((_) => _.data.code), s = re().skus, n =
|
|
1189
|
+
const r = hn(a).filter((_) => _.data.code), s = re().skus, n = mt(s, "code"), l = r.filter((_) => !n[_.data.code]), o = r.filter((_) => n[_.data.code]), m = l.map(
|
|
1196
1190
|
(_) => Ne(_.data, _.index, r)
|
|
1197
1191
|
), y = o.map((_) => {
|
|
1198
1192
|
const x = Ne(_.data, _.index, r), b = n[_.data.code];
|
|
@@ -1284,7 +1278,7 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1284
1278
|
]);
|
|
1285
1279
|
};
|
|
1286
1280
|
}
|
|
1287
|
-
}), wn = { class: "flex flex-col gap-24" },
|
|
1281
|
+
}), wn = { class: "flex flex-col gap-24" }, Mn = { class: "fm-typo-en-body-md-400" }, Fn = { class: "flex flex-col gap-8" }, In = { class: "line-clamp-2 text-ellipsis break-all" }, $n = {
|
|
1288
1282
|
key: 2,
|
|
1289
1283
|
class: "shrink-0"
|
|
1290
1284
|
}, Un = {
|
|
@@ -1296,7 +1290,7 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1296
1290
|
}, An = { class: "fm-typo-en-body-lg-600" }, Dn = /* @__PURE__ */ me({
|
|
1297
1291
|
__name: "ImportIngredients",
|
|
1298
1292
|
setup(a) {
|
|
1299
|
-
const r =
|
|
1293
|
+
const r = q(null), g = bt(), s = _e(), n = q(!1), l = q(new Array()), o = q([]), m = q([]), y = V(
|
|
1300
1294
|
() => !!l.value.length || o.value.some((i) => i.errors.length) || m.value.some((i) => i.errors.length)
|
|
1301
1295
|
), _ = V(
|
|
1302
1296
|
() => !!o.value.length || !!m.value.length
|
|
@@ -1342,7 +1336,7 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1342
1336
|
}), (i, p) => {
|
|
1343
1337
|
const D = $("FmCircularProgress"), w = $("FmIcon"), L = $("FmButton");
|
|
1344
1338
|
return v(), R("div", wn, [
|
|
1345
|
-
u("div",
|
|
1339
|
+
u("div", Mn, N(d(x)("inventory.ingredient.import.uploadDescription")), 1),
|
|
1346
1340
|
f(It, {
|
|
1347
1341
|
class: le({
|
|
1348
1342
|
"w-full": !0,
|
|
@@ -1356,7 +1350,7 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1356
1350
|
r.value ? {
|
|
1357
1351
|
name: "default",
|
|
1358
1352
|
fn: S(({ openFileDialog: C }) => [
|
|
1359
|
-
u("div",
|
|
1353
|
+
u("div", Fn, [
|
|
1360
1354
|
u("div", {
|
|
1361
1355
|
class: le([
|
|
1362
1356
|
"fm-corner-radius-md p-16 flex items-center gap-16",
|
|
@@ -1398,8 +1392,8 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1398
1392
|
]))
|
|
1399
1393
|
], 2),
|
|
1400
1394
|
l.value.length ? (v(), R("div", Un, [
|
|
1401
|
-
(v(!0), R(J, null, te(l.value, (
|
|
1402
|
-
key:
|
|
1395
|
+
(v(!0), R(J, null, te(l.value, (M, F) => (v(), R("div", {
|
|
1396
|
+
key: F,
|
|
1403
1397
|
class: "flex gap-8 items-center"
|
|
1404
1398
|
}, [
|
|
1405
1399
|
f(w, {
|
|
@@ -1407,7 +1401,7 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1407
1401
|
size: "sm",
|
|
1408
1402
|
color: "system-error-300"
|
|
1409
1403
|
}),
|
|
1410
|
-
u("div", En, N(
|
|
1404
|
+
u("div", En, N(M), 1)
|
|
1411
1405
|
]))), 128))
|
|
1412
1406
|
])) : H("", !0)
|
|
1413
1407
|
])
|
|
@@ -1435,10 +1429,10 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1435
1429
|
]);
|
|
1436
1430
|
};
|
|
1437
1431
|
}
|
|
1438
|
-
}), Tn = { class: "flex flex-col py-8" }, Pn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" },
|
|
1432
|
+
}), Tn = { class: "flex flex-col py-8" }, Pn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bn = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, to = /* @__PURE__ */ me({
|
|
1439
1433
|
__name: "IngredientsView",
|
|
1440
1434
|
setup(a) {
|
|
1441
|
-
const r = re(), g = V(() => r.skus), s =
|
|
1435
|
+
const r = re(), g = V(() => r.skus), s = pt(), n = Ge(), l = _e(), { t: o } = ae(), { createIngredient: m, updateIngredient: y } = Me(), { ingredientDialogProps: _, ingredientViewLoading: x } = kt(Me()), { columnDefs: b } = $t();
|
|
1442
1436
|
function i(T) {
|
|
1443
1437
|
switch (T) {
|
|
1444
1438
|
case "add":
|
|
@@ -1449,7 +1443,7 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1449
1443
|
return O();
|
|
1450
1444
|
}
|
|
1451
1445
|
}
|
|
1452
|
-
const p =
|
|
1446
|
+
const p = q(""), D = q(!1), w = V(() => D.value || x.value), { breakpoints: L } = ht(), C = V(() => L.value.xs || L.value.sm), M = V(() => C.value ? 10 : 20), F = vt(), P = q(!1), X = [
|
|
1453
1447
|
{
|
|
1454
1448
|
value: "import",
|
|
1455
1449
|
label: o("common.import")
|
|
@@ -1549,8 +1543,8 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1549
1543
|
};
|
|
1550
1544
|
for (const B of E.chunk(100))
|
|
1551
1545
|
pe(), await r.importSkus({
|
|
1552
|
-
create: B.filter((
|
|
1553
|
-
update: B.filter((
|
|
1546
|
+
create: B.filter((G) => G.type === "create").map((G) => G.sku),
|
|
1547
|
+
update: B.filter((G) => G.type === "update").map((G) => G.sku)
|
|
1554
1548
|
});
|
|
1555
1549
|
l.open({
|
|
1556
1550
|
title: o("inventory.ingredient.import.success"),
|
|
@@ -1568,7 +1562,7 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1568
1562
|
}
|
|
1569
1563
|
return (T, E) => {
|
|
1570
1564
|
const ce = $("FmTable"), ie = $("FmCollapsibleTabs"), pe = $("FmBottomSheet");
|
|
1571
|
-
return v(), A(
|
|
1565
|
+
return v(), A(ft, {
|
|
1572
1566
|
title: d(o)("inventory.ingredient.title"),
|
|
1573
1567
|
actions: j.value,
|
|
1574
1568
|
"onClick:action": i
|
|
@@ -1583,40 +1577,40 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1583
1577
|
}
|
|
1584
1578
|
])
|
|
1585
1579
|
}, [
|
|
1586
|
-
f(
|
|
1580
|
+
f(yt, {
|
|
1587
1581
|
searchable: "",
|
|
1588
1582
|
search: p.value,
|
|
1589
1583
|
"onUpdate:search": E[0] || (E[0] = (B) => p.value = B)
|
|
1590
1584
|
}, null, 8, ["search"]),
|
|
1591
1585
|
f(ce, {
|
|
1592
|
-
style: ot(d(
|
|
1586
|
+
style: ot(d(F).tableHeight),
|
|
1593
1587
|
"column-defs": d(b),
|
|
1594
1588
|
"row-data": g.value,
|
|
1595
1589
|
"search-value": p.value,
|
|
1596
1590
|
loading: !d(s)._currentLocation || w.value,
|
|
1597
1591
|
"loading-text": "Loading",
|
|
1598
1592
|
onRowClick: E[1] || (E[1] = (B) => d(y)(B.original)),
|
|
1599
|
-
"page-size":
|
|
1593
|
+
"page-size": M.value
|
|
1600
1594
|
}, {
|
|
1601
1595
|
"list-row": S((B) => [
|
|
1602
|
-
f(
|
|
1596
|
+
f(gt, {
|
|
1603
1597
|
row: B,
|
|
1604
1598
|
onRowClick: d(y)
|
|
1605
1599
|
}, Oe({
|
|
1606
|
-
default: S((
|
|
1600
|
+
default: S((G) => {
|
|
1607
1601
|
var ne, ee, ye, oe, e, t, c, h, U, I;
|
|
1608
1602
|
return [
|
|
1609
1603
|
u("div", Tn, [
|
|
1610
1604
|
u("div", Pn, [
|
|
1611
|
-
f(d(
|
|
1612
|
-
render: (ye = (ee = (ne =
|
|
1613
|
-
props: (e = (oe =
|
|
1605
|
+
f(d(Pe), {
|
|
1606
|
+
render: (ye = (ee = (ne = G.code) == null ? void 0 : ne.column) == null ? void 0 : ee.columnDef) == null ? void 0 : ye.cell,
|
|
1607
|
+
props: (e = (oe = G.code) == null ? void 0 : oe.getContext) == null ? void 0 : e.call(oe)
|
|
1614
1608
|
}, null, 8, ["render", "props"])
|
|
1615
1609
|
]),
|
|
1616
1610
|
u("div", Bn, [
|
|
1617
|
-
f(d(
|
|
1618
|
-
render: (h = (c = (t =
|
|
1619
|
-
props: (I = (U =
|
|
1611
|
+
f(d(Pe), {
|
|
1612
|
+
render: (h = (c = (t = G.name) == null ? void 0 : t.column) == null ? void 0 : c.columnDef) == null ? void 0 : h.cell,
|
|
1613
|
+
props: (I = (U = G.name) == null ? void 0 : U.getContext) == null ? void 0 : I.call(U)
|
|
1620
1614
|
}, null, 8, ["render", "props"])
|
|
1621
1615
|
])
|
|
1622
1616
|
])
|
|
@@ -1662,5 +1656,5 @@ const xn = { class: "flex items-center gap-12 pl-8" }, Vn = { class: "flex flex-
|
|
|
1662
1656
|
}
|
|
1663
1657
|
});
|
|
1664
1658
|
export {
|
|
1665
|
-
|
|
1659
|
+
to as default
|
|
1666
1660
|
};
|