@feedmepos/mf-inventory-portal 1.2.1 → 1.2.2-5.dev-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/App-DMkUg806.js +297 -0
- package/dist/{ApprovalView-DwRrbVDo.js → ApprovalView-DWJh2K6W.js} +65 -64
- package/dist/{BindingsDialog-DUVKv10-.js → BindingsDialog-EmHCvqJI.js} +2 -2
- package/dist/{BindingsPicker-Daib_iq4.js → BindingsPicker-h_9jm1s0.js} +3 -3
- package/dist/{BindingsTable-Bv9UmcJP.js → BindingsTable-BAVWGUoa.js} +1 -1
- package/dist/ClosingDraftView-Du4kOwIg.js +1899 -0
- package/dist/ClosingHistoryView-DuW2Vtrs.js +355 -0
- package/dist/ClosingTemplateView-CfPY8R5M.js +2001 -0
- package/dist/{DeliveryOrderPrintPreview-DZPcRAja.js → DeliveryOrderPrintPreview-C6Cj8mOp.js} +9 -9
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-WWIrybw_.js +230 -0
- package/dist/{FmMultiselectDialog-CZmwOkrb.js → FmMultiselectDialog-BzWrQOS4.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-C-2V2bGc.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DwqVRUFz.js} +36 -36
- package/dist/ImportView-lKlYeLay.js +1291 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BGnoF1Zz.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-_2WZMZU2.js} +5 -5
- package/dist/{IngredientGroupView-CAVYpEj3.js → IngredientGroupView-CrmwR2Xt.js} +34 -35
- package/dist/IngredientsView-1bAsyz-b.js +2254 -0
- package/dist/{IntegrationView-DdLFyZ4H.js → IntegrationView-D16qeEc_.js} +1773 -1635
- package/dist/{InventoryBindingForm-C7BdEDtM.js → InventoryBindingForm-BRwOXV_P.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B7DND2dQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-NDbtbtqK.js} +28 -28
- package/dist/{InventoryBindingSummary-IZ7F-Lti.js → InventoryBindingSummary-DKM2gX8_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sgqVSlUB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CdaiYTdf.js} +4 -4
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DeF32bHu.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B0OKeK5O.js} +7 -7
- package/dist/{PublishView-DkgfYneI.js → PublishView-D0NnU22l.js} +73 -63
- package/dist/{PurchaseOrderPrintPreview-CltLC4o4.js → PurchaseOrderPrintPreview-BmuwNbeL.js} +4 -4
- package/dist/{ReceiveRequestView-Dj7ji0DY.js → ReceiveRequestView-j79m7TKk.js} +343 -333
- package/dist/RecipeView-D_fNQQ-C.js +636 -0
- package/dist/StockView-DX_xeFBT.js +2385 -0
- package/dist/SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Bg49isUy.js +172 -0
- package/dist/{SupplierView-DE_M_9kd.js → SupplierView-DuFTqbOg.js} +1193 -1073
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-c428GXwc.js +3233 -0
- package/dist/{TransferTemplateView-gWGBCF3u.js → TransferTemplateView-Ccsfcetz.js} +104 -103
- package/dist/UnitView-BklpNsFN.js +674 -0
- package/dist/WarehouseView-BrURbU67.js +1066 -0
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/bill.d.ts +140 -2
- package/dist/api/closing-template.d.ts +1 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/inventory.d.ts +405 -0
- package/dist/api/netsuite.d.ts +5 -1
- package/dist/api/purchase-order-template.d.ts +1 -0
- package/dist/api/purchase-order.d.ts +3 -0
- package/dist/api/shipment.d.ts +11 -0
- package/dist/api/stock.d.ts +2 -44
- package/dist/api/warehouse.d.ts +3 -1
- package/dist/{app-CruHLH1e.js → app-a9r50k3U.js} +68551 -67573
- package/dist/app.d.ts +643 -15
- package/dist/app.js +6 -6
- package/dist/components/FmAdminBadge.vue.d.ts +1 -4
- package/dist/components/FmEnhancedSelect.vue.d.ts +30 -0
- package/dist/components/FmInventoryTableToolbar.vue.d.ts +16 -2
- package/dist/components/FmLockableField.vue.d.ts +3 -0
- package/dist/components/netsuite/ItemSubsidiaryTreeDialog.vue.d.ts +16 -0
- package/dist/components/netsuite/SubsidiaryTreeDialog.vue.d.ts +2 -0
- package/dist/composable/defineApi.d.ts +1 -1
- package/dist/composable/useIframe.d.ts +2 -2
- package/dist/{decimal-izbvCC1j.js → decimal-AusUnA1W.js} +1 -1
- package/dist/{format-unit-display-4SAdfyZB.js → format-unit-display-BqkHL-ph.js} +397 -429
- package/dist/helper/array.d.ts +1 -0
- package/dist/helper/core/country/utils.d.ts +3 -4
- package/dist/helper/country.d.ts +6 -255
- package/dist/helper/number.d.ts +1 -0
- package/dist/import-export.helper-PIyNeHfa.js +238 -0
- package/dist/{index-B6GGthLw.js → index-CjxirPvn.js} +283 -268
- package/dist/{index-CnQloOEo.js → index-Dj9-pdT9.js} +1 -1
- package/dist/layout/SingleColumnLayout.vue.d.ts +6 -3
- package/dist/purchase-order-template-CQikvY1p.js +41 -0
- package/dist/router/name.d.ts +2 -0
- package/dist/stock-CDZ2uWSF.js +83 -0
- package/dist/stock-Dw908dIC.js +74 -0
- package/dist/stores/feature.d.ts +12 -0
- package/dist/stores/integration/netsuite.d.ts +42 -0
- package/dist/stores/inventory.d.ts +28 -199
- package/dist/stores/location.d.ts +331 -1
- package/dist/stores/supplier.d.ts +96 -0
- package/dist/stores/warehouse.d.ts +4 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-CTVE1lHO.js → supplier-BPPBUudN.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CM80TfX0.js → use-ingredient-select-dialog-C_fSKN3_.js} +5 -5
- package/dist/{use-inventory-binding-dialog-D_omdhgn.js → use-inventory-binding-dialog-ClAkJ864.js} +8 -8
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +60 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +60 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +56 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +3 -3
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +468 -0
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +9 -2
- package/dist/views/closing-history/ClosingHistoryView.vue.d.ts +2 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +4 -1
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +5 -0
- package/dist/views/import/ImportView.vue.d.ts +3 -0
- package/dist/views/import/components/ImportDialog.vue.d.ts +2 -0
- package/dist/views/import/helper/import-export.helper.d.ts +4 -0
- package/dist/views/ingredients/components/ingredient-dialog/IngredientDialogProps.d.ts +1 -1
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +181 -12
- package/dist/views/ingredients/components/ingredient-form/IngredientFormProps.d.ts +6 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +4 -1
- package/dist/views/integration/components/netsuite/business/BusinessNetSuiteSideSheet.vue.d.ts +2 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/CreateFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/delivery-order-form/EditForm.vue.d.ts +16 -0
- package/dist/views/receive-request/components/delivery-order-form/EditFormProps.d.ts +4 -0
- package/dist/views/receive-request/components/delivery-order-form/SystemTrailDialog.vue.d.ts +21 -0
- package/dist/views/receive-request/components/netsuite/NetSuiteTransactionChangeLog.vue.d.ts +15 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +420 -2
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +99 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +644 -13
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +711 -14
- package/dist/views/recipe/RecipeView.vue.d.ts +1 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipeItem.vue.d.ts +16 -0
- package/dist/views/recipe/components/import-recipes/ImportRecipes.vue.d.ts +2 -0
- package/dist/views/recipe/helper/import-recipe.d.ts +48 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +70 -1
- package/dist/views/stock/components/dialog/RecalculationDialog.vue.d.ts +11 -0
- package/dist/views/stock/components/dialog/RecalculationDialogProps.d.ts +3 -0
- package/dist/views/stock/components/dialog/StockAdjustmentSideSheet.vue.d.ts +20 -0
- package/dist/views/supplier/components/SupplierForm.vue.d.ts +8 -0
- package/dist/views/supplier/components/SupplierSupplyItemField.vue.d.ts +3 -0
- package/dist/views/supplier/composables/use-supplier-table.d.ts +4 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +16 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +48 -0
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +48 -0
- package/dist/views/unit/UnitView.vue.d.ts +1 -0
- package/dist/views/unit/components/import-units/ImportUnitItem.vue.d.ts +12 -0
- package/dist/views/unit/components/import-units/ImportUnitItemProps.d.ts +6 -0
- package/dist/views/unit/components/import-units/ImportUnits.vue.d.ts +9 -0
- package/dist/views/unit/components/import-units/ImportUnitsProps.d.ts +5 -0
- package/dist/views/unit/helper/import-export.helper.d.ts +40 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +8 -0
- package/package.json +3 -3
- package/dist/App-BqaRC0Sb.js +0 -276
- package/dist/ClosingDraftView-sJ_zRPeo.js +0 -1687
- package/dist/ClosingTemplateView-cNgXHq1r.js +0 -1908
- package/dist/FmAdminBadge-oCnz8SW6.js +0 -34
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BKR8C4p_.js +0 -224
- package/dist/IngredientsView-CHHeAJH_.js +0 -1858
- package/dist/RecipeView-BukmKdVG.js +0 -621
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-KLXSWvo5.js +0 -59
- package/dist/StockView-wxRCw_w-.js +0 -2087
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-eqUOnJoM.js +0 -2336
- package/dist/UnitView-BgwDmGZo.js +0 -667
- package/dist/WarehouseView-BdccenhO.js +0 -1034
- package/dist/array-Ca8T3f_G.js +0 -44
- package/dist/helper/core/country/codes.d.ts +0 -255
- package/dist/stock-BJP5BB5b.js +0 -146
|
@@ -1,667 +0,0 @@
|
|
|
1
|
-
import { defineComponent as G, computed as b, openBlock as v, createElementBlock as w, createElementVNode as s, Fragment as q, renderList as H, toDisplayString as V, createCommentVNode as Y, ref as R, watch as ee, resolveComponent as I, createBlock as T, withCtx as A, createVNode as f, unref as l, isRef as te, normalizeClass as ie, normalizeStyle as ue, Teleport as de, normalizeProps as me, guardReactiveProps as ce } from "vue";
|
|
2
|
-
import { a as K, e as U, S as pe, h as ve, D as ne, i as L, f as se, Q as fe, m as j, A as ye, j as J, T as be, V as ge, q as oe, u as xe, b as _e, B as he, _ as Ve, C as Ue, E as we, G as Ce } from "./app-CruHLH1e.js";
|
|
3
|
-
import { useDialog as Se, useSnackbar as ae, useProxiedModel as le, useBreakpoints as ke } from "@feedmepos/ui-library";
|
|
4
|
-
import { i as Fe, _ as Ee } from "./is-linked-ingredient-error-fJ2TJb3z.js";
|
|
5
|
-
import { defineStore as $e, storeToRefs as Ie } from "pinia";
|
|
6
|
-
import { useI18n as O } from "@feedmepos/mf-common";
|
|
7
|
-
import { F as De } from "./decimal-izbvCC1j.js";
|
|
8
|
-
import { _ as Ae } from "./NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sgqVSlUB.js";
|
|
9
|
-
const Re = { class: "flex flex-col gap-8" }, Me = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "flex flex-col"
|
|
12
|
-
}, Pe = { class: "flex-1 py-8 px-16" }, Te = {
|
|
13
|
-
class: "flex-0 py-8 px-16",
|
|
14
|
-
style: { "flex-basis": "240px" }
|
|
15
|
-
}, Be = {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "flex flex-col"
|
|
18
|
-
}, Ne = { class: "flex-1 py-8 px-16" }, ze = {
|
|
19
|
-
class: "flex-0 py-8 px-16",
|
|
20
|
-
style: { "flex-basis": "240px" }
|
|
21
|
-
}, Le = {
|
|
22
|
-
key: 2,
|
|
23
|
-
class: "flex flex-col"
|
|
24
|
-
}, je = { class: "flex-1 py-8 px-16" }, qe = {
|
|
25
|
-
class: "flex-0 py-8 px-16",
|
|
26
|
-
style: { "flex-basis": "240px" }
|
|
27
|
-
}, He = /* @__PURE__ */ G({
|
|
28
|
-
__name: "UnitUsedBy",
|
|
29
|
-
props: {
|
|
30
|
-
unit: {}
|
|
31
|
-
},
|
|
32
|
-
setup(F) {
|
|
33
|
-
const c = F, y = K(), m = b(() => y.validateUnitUsage(c.unit)), a = b(() => m.value.filter((n) => n.from === "INGREDIENT")), r = b(() => m.value.filter((n) => n.from === "RECIPE")), d = b(() => m.value.filter((n) => n.from === "MENU"));
|
|
34
|
-
return (n, p) => (v(), w("div", Re, [
|
|
35
|
-
p[3] || (p[3] = s("div", { class: "fm-typo-en-body-md-400" }, "Sorry, this unit is used in the following modules:", -1)),
|
|
36
|
-
a.value.length ? (v(), w("div", Me, [
|
|
37
|
-
p[0] || (p[0] = s("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
|
|
38
|
-
s("div", { class: "flex-1 py-8 px-16" }, "Ingredient"),
|
|
39
|
-
s("div", {
|
|
40
|
-
class: "flex-0 py-8 px-16",
|
|
41
|
-
style: { "flex-basis": "240px" }
|
|
42
|
-
}, "Used in")
|
|
43
|
-
], -1)),
|
|
44
|
-
(v(!0), w(q, null, H(a.value, (i) => {
|
|
45
|
-
var t;
|
|
46
|
-
return v(), w("div", {
|
|
47
|
-
key: i.code,
|
|
48
|
-
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
49
|
-
}, [
|
|
50
|
-
s("div", Pe, V(i.code) + " " + V(i.name), 1),
|
|
51
|
-
s("div", Te, V((t = i.bindedIngredient) != null && t.length ? "Convert binding" : "Item unit"), 1)
|
|
52
|
-
]);
|
|
53
|
-
}), 128))
|
|
54
|
-
])) : Y("", !0),
|
|
55
|
-
r.value.length ? (v(), w("div", Be, [
|
|
56
|
-
p[1] || (p[1] = s("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
|
|
57
|
-
s("div", { class: "flex-1 py-8 px-16" }, "Recipe"),
|
|
58
|
-
s("div", {
|
|
59
|
-
class: "flex-0 py-8 px-16",
|
|
60
|
-
style: { "flex-basis": "240px" }
|
|
61
|
-
}, "Used in")
|
|
62
|
-
], -1)),
|
|
63
|
-
(v(!0), w(q, null, H(r.value, (i) => {
|
|
64
|
-
var t, u, g;
|
|
65
|
-
return v(), w("div", {
|
|
66
|
-
key: i.code,
|
|
67
|
-
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
68
|
-
}, [
|
|
69
|
-
s("div", Ne, V(i.code) + " " + V(i.name), 1),
|
|
70
|
-
s("div", ze, V((t = i.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((C) => C.code).join(", ")) + " " + V(i.bindedIngredient && ((u = i.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((g = i.bindedIngredient) == null ? void 0 : g.length) - 3} more` : ""), 1)
|
|
71
|
-
]);
|
|
72
|
-
}), 128))
|
|
73
|
-
])) : Y("", !0),
|
|
74
|
-
d.value.length ? (v(), w("div", Le, [
|
|
75
|
-
p[2] || (p[2] = s("div", { class: "flex flex-row fm-typo-en-body-md-600 bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary h-48 items-center" }, [
|
|
76
|
-
s("div", { class: "flex-1 py-8 px-16" }, "Menu"),
|
|
77
|
-
s("div", {
|
|
78
|
-
class: "flex-0 py-8 px-16",
|
|
79
|
-
style: { "flex-basis": "240px" }
|
|
80
|
-
}, "Used in")
|
|
81
|
-
], -1)),
|
|
82
|
-
(v(!0), w(q, null, H(d.value, (i) => {
|
|
83
|
-
var t, u, g;
|
|
84
|
-
return v(), w("div", {
|
|
85
|
-
key: i.code,
|
|
86
|
-
class: "flex flex-row fm-typo-en-body-md-400 h-48 items-center border-b border-b-fm-color-neutral-gray-100"
|
|
87
|
-
}, [
|
|
88
|
-
s("div", je, V(i.code) + " " + V(i.name), 1),
|
|
89
|
-
s("div", qe, V((t = i.bindedIngredient) == null ? void 0 : t.slice(0, 3).map((C) => C.code).join(", ")) + " " + V(i.bindedIngredient && ((u = i.bindedIngredient) == null ? void 0 : u.length) > 3 ? `and ${((g = i.bindedIngredient) == null ? void 0 : g.length) - 3} more` : ""), 1)
|
|
90
|
-
]);
|
|
91
|
-
}), 128))
|
|
92
|
-
])) : Y("", !0)
|
|
93
|
-
]));
|
|
94
|
-
}
|
|
95
|
-
}), W = $e("unitForm", function() {
|
|
96
|
-
const c = Se(), y = ae(), m = K(), a = R(!1), r = R();
|
|
97
|
-
function d() {
|
|
98
|
-
const t = {
|
|
99
|
-
unit: {},
|
|
100
|
-
mode: U.CREATE,
|
|
101
|
-
show: !0,
|
|
102
|
-
"onUpdate:show"(u) {
|
|
103
|
-
r.value.show = u;
|
|
104
|
-
}
|
|
105
|
-
};
|
|
106
|
-
r.value = t;
|
|
107
|
-
}
|
|
108
|
-
async function n(t) {
|
|
109
|
-
const u = {
|
|
110
|
-
unit: t,
|
|
111
|
-
mode: U.UPDATE,
|
|
112
|
-
show: !0,
|
|
113
|
-
"onUpdate:show"(g) {
|
|
114
|
-
r.value.show = g;
|
|
115
|
-
}
|
|
116
|
-
};
|
|
117
|
-
r.value = u;
|
|
118
|
-
}
|
|
119
|
-
async function p(t) {
|
|
120
|
-
a.value = !0;
|
|
121
|
-
try {
|
|
122
|
-
await m.deleteUnit(t), y.open({
|
|
123
|
-
title: "Success",
|
|
124
|
-
message: `Deleted ${t.name}`,
|
|
125
|
-
type: "success"
|
|
126
|
-
});
|
|
127
|
-
} catch (u) {
|
|
128
|
-
u instanceof pe && Fe(u) ? c.open({
|
|
129
|
-
title: "Cannot delete unit",
|
|
130
|
-
contentComponent: Ee,
|
|
131
|
-
contentComponentProps: {
|
|
132
|
-
subject: (t == null ? void 0 : t.name) ?? "",
|
|
133
|
-
items: u.errorResponse.message
|
|
134
|
-
},
|
|
135
|
-
secondaryActions: {
|
|
136
|
-
text: "Close",
|
|
137
|
-
close: !0
|
|
138
|
-
}
|
|
139
|
-
}) : console.log("unable to delete unit", u), y.open({
|
|
140
|
-
title: `Cannot delete ${t.name}`,
|
|
141
|
-
message: "Please try again.",
|
|
142
|
-
type: "error"
|
|
143
|
-
}), console.error("failed to delete unit", u);
|
|
144
|
-
} finally {
|
|
145
|
-
a.value = !1;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
function i(t) {
|
|
149
|
-
if (m.validateUnitUsage(t).length) {
|
|
150
|
-
c.open({
|
|
151
|
-
title: `Cannot delete ${(t == null ? void 0 : t.name) ?? "unit"}`,
|
|
152
|
-
overlay: !0,
|
|
153
|
-
dismissAway: !0,
|
|
154
|
-
closeButton: !0,
|
|
155
|
-
contentComponent: He,
|
|
156
|
-
contentComponentProps: {
|
|
157
|
-
unit: t
|
|
158
|
-
},
|
|
159
|
-
primaryActions: {
|
|
160
|
-
text: "Confirm",
|
|
161
|
-
close: !0
|
|
162
|
-
}
|
|
163
|
-
});
|
|
164
|
-
return;
|
|
165
|
-
}
|
|
166
|
-
c.open({
|
|
167
|
-
title: `Delete ${(t == null ? void 0 : t.name) ?? "unit"}?`,
|
|
168
|
-
closeButton: !1,
|
|
169
|
-
message: "You may not be able to delete this unit if it is linked in any of the inventory modules.",
|
|
170
|
-
primaryActions: {
|
|
171
|
-
text: "Delete",
|
|
172
|
-
close: !0,
|
|
173
|
-
variant: "destructive"
|
|
174
|
-
},
|
|
175
|
-
secondaryActions: {
|
|
176
|
-
text: "Cancel",
|
|
177
|
-
close: !0
|
|
178
|
-
}
|
|
179
|
-
}).onPrimary(() => p(t));
|
|
180
|
-
}
|
|
181
|
-
return {
|
|
182
|
-
createUnit: d,
|
|
183
|
-
updateUnit: n,
|
|
184
|
-
deleteUnit: i,
|
|
185
|
-
unitDialogProps: r,
|
|
186
|
-
unitViewLoading: a
|
|
187
|
-
};
|
|
188
|
-
});
|
|
189
|
-
function Ge() {
|
|
190
|
-
const { updateUnit: F, deleteUnit: c } = W(), { t: y } = O();
|
|
191
|
-
async function m(r, d) {
|
|
192
|
-
const n = se(d);
|
|
193
|
-
if (r === L.Edit) {
|
|
194
|
-
await F(n);
|
|
195
|
-
return;
|
|
196
|
-
}
|
|
197
|
-
if (r === L.Delete) {
|
|
198
|
-
await c(n);
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
return { columnDefs: [
|
|
203
|
-
{
|
|
204
|
-
accessorKey: "name",
|
|
205
|
-
header: y("inventory.unit.table.name"),
|
|
206
|
-
enableSorting: !0,
|
|
207
|
-
size: 300
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
accessorKey: "abbrev",
|
|
211
|
-
header: y("inventory.unit.table.symbol"),
|
|
212
|
-
enableSorting: !1,
|
|
213
|
-
size: "auto"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
id: "action",
|
|
217
|
-
header: "",
|
|
218
|
-
cell(r) {
|
|
219
|
-
return ve(
|
|
220
|
-
[ne[L.Edit], ne[L.Delete]],
|
|
221
|
-
(d) => {
|
|
222
|
-
m(d, r.row.original);
|
|
223
|
-
}
|
|
224
|
-
);
|
|
225
|
-
},
|
|
226
|
-
enableSorting: !1,
|
|
227
|
-
size: 40,
|
|
228
|
-
meta: {
|
|
229
|
-
cellClass: "",
|
|
230
|
-
headerClass: ""
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
] };
|
|
234
|
-
}
|
|
235
|
-
const Ke = { class: "flex flex-col gap-24" }, Oe = { class: "flex gap-24" }, Qe = { class: "flex-1" }, Ye = { class: "flex-1" }, Je = { class: "flex" }, We = { class: "flex items-center" }, Xe = { class: "fm-typo-en-body-lg-600 flex-grow" }, Ze = { class: "flex flex-col gap-24" }, et = { class: "flex gap-24" }, tt = { class: "flex-1" }, nt = { class: "flex-1" }, ot = /* @__PURE__ */ G({
|
|
236
|
-
__name: "UnitForm",
|
|
237
|
-
props: {
|
|
238
|
-
mode: {},
|
|
239
|
-
modelValue: {},
|
|
240
|
-
disabled: { type: Boolean }
|
|
241
|
-
},
|
|
242
|
-
emits: ["update:modelValue", "click:submit"],
|
|
243
|
-
setup(F, { expose: c, emit: y }) {
|
|
244
|
-
const m = F, a = y, { t: r } = O();
|
|
245
|
-
function d() {
|
|
246
|
-
a("click:submit");
|
|
247
|
-
}
|
|
248
|
-
const n = R(m.modelValue);
|
|
249
|
-
ee(
|
|
250
|
-
() => m.modelValue,
|
|
251
|
-
(e) => {
|
|
252
|
-
n.value = e;
|
|
253
|
-
}
|
|
254
|
-
);
|
|
255
|
-
const p = b({
|
|
256
|
-
get() {
|
|
257
|
-
var e;
|
|
258
|
-
return ((e = n.value) == null ? void 0 : e.name) ?? "";
|
|
259
|
-
},
|
|
260
|
-
set(e) {
|
|
261
|
-
n.value.name = e, a("update:modelValue", n.value);
|
|
262
|
-
}
|
|
263
|
-
}), i = b({
|
|
264
|
-
get() {
|
|
265
|
-
var e;
|
|
266
|
-
return ((e = n.value) == null ? void 0 : e.abbrev) ?? "";
|
|
267
|
-
},
|
|
268
|
-
set(e) {
|
|
269
|
-
n.value.abbrev = e, a("update:modelValue", n.value);
|
|
270
|
-
}
|
|
271
|
-
}), t = b({
|
|
272
|
-
get() {
|
|
273
|
-
var e;
|
|
274
|
-
return ((e = n.value) == null ? void 0 : e.precision) ?? 0;
|
|
275
|
-
},
|
|
276
|
-
set(e) {
|
|
277
|
-
n.value.precision = e, a("update:modelValue", n.value);
|
|
278
|
-
}
|
|
279
|
-
}), u = b({
|
|
280
|
-
get() {
|
|
281
|
-
var e;
|
|
282
|
-
return ((e = n.value) == null ? void 0 : e.measurements) ?? [];
|
|
283
|
-
},
|
|
284
|
-
set(e) {
|
|
285
|
-
n.value.measurements = e, a("update:modelValue", n.value);
|
|
286
|
-
}
|
|
287
|
-
});
|
|
288
|
-
ee(
|
|
289
|
-
() => t.value,
|
|
290
|
-
(e) => {
|
|
291
|
-
if (typeof e == "number" && !isNaN(e)) {
|
|
292
|
-
const o = u.value.map((x) => ({
|
|
293
|
-
...x,
|
|
294
|
-
conversion: fe.convertPrecision({
|
|
295
|
-
value: x.conversion,
|
|
296
|
-
precision: e
|
|
297
|
-
})
|
|
298
|
-
}));
|
|
299
|
-
n.value.measurements = o, a("update:modelValue", n.value);
|
|
300
|
-
}
|
|
301
|
-
},
|
|
302
|
-
{ immediate: !0 }
|
|
303
|
-
);
|
|
304
|
-
function g() {
|
|
305
|
-
const e = n.value.measurements ?? [];
|
|
306
|
-
n.value.measurements = [
|
|
307
|
-
...e,
|
|
308
|
-
{
|
|
309
|
-
id: `measurement_${(/* @__PURE__ */ new Date()).toISOString()}_${Math.random().toString(16).slice(2, 8)}`,
|
|
310
|
-
name: "",
|
|
311
|
-
abbrev: "",
|
|
312
|
-
conversion: {
|
|
313
|
-
amount: 1,
|
|
314
|
-
precision: 0
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
], a("update:modelValue", n.value);
|
|
318
|
-
}
|
|
319
|
-
function C(e) {
|
|
320
|
-
const o = n.value.measurements ?? [];
|
|
321
|
-
o.splice(e, 1), n.value.measurements = o, a("update:modelValue", n.value);
|
|
322
|
-
}
|
|
323
|
-
const S = R();
|
|
324
|
-
return c({
|
|
325
|
-
validateInputs: () => {
|
|
326
|
-
var e, o;
|
|
327
|
-
(o = (e = S.value) == null ? void 0 : e.validateInputs) == null || o.call(e);
|
|
328
|
-
},
|
|
329
|
-
resetInputsValidation: () => {
|
|
330
|
-
var e, o;
|
|
331
|
-
(o = (e = S.value) == null ? void 0 : e.resetInputsValidation) == null || o.call(e);
|
|
332
|
-
},
|
|
333
|
-
resetInputs: () => {
|
|
334
|
-
var e, o;
|
|
335
|
-
(o = (e = S.value) == null ? void 0 : e.resetInputs) == null || o.call(e);
|
|
336
|
-
}
|
|
337
|
-
}), (e, o) => {
|
|
338
|
-
const x = I("FmTextField"), M = I("FmStepperField"), _ = I("FmButton"), Q = I("FmCard"), $ = I("FmForm");
|
|
339
|
-
return v(), T($, {
|
|
340
|
-
ref_key: "formRef",
|
|
341
|
-
ref: S,
|
|
342
|
-
class: "flex flex-col gap-40",
|
|
343
|
-
onValidationSuccess: d
|
|
344
|
-
}, {
|
|
345
|
-
default: A(() => {
|
|
346
|
-
var P;
|
|
347
|
-
return [
|
|
348
|
-
s("div", Ke, [
|
|
349
|
-
s("div", Oe, [
|
|
350
|
-
s("div", Qe, [
|
|
351
|
-
f(x, {
|
|
352
|
-
disabled: e.disabled,
|
|
353
|
-
label: l(r)("inventory.unit.name"),
|
|
354
|
-
modelValue: p.value,
|
|
355
|
-
"onUpdate:modelValue": o[0] || (o[0] = (k) => p.value = k),
|
|
356
|
-
rules: [l(j)()],
|
|
357
|
-
"label-mark": "required"
|
|
358
|
-
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
359
|
-
]),
|
|
360
|
-
s("div", Ye, [
|
|
361
|
-
f(x, {
|
|
362
|
-
disabled: e.disabled,
|
|
363
|
-
label: l(r)("inventory.unit.symbol"),
|
|
364
|
-
modelValue: i.value,
|
|
365
|
-
"onUpdate:modelValue": o[1] || (o[1] = (k) => i.value = k),
|
|
366
|
-
rules: [l(j)()],
|
|
367
|
-
"label-mark": "required"
|
|
368
|
-
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
369
|
-
])
|
|
370
|
-
]),
|
|
371
|
-
s("div", null, [
|
|
372
|
-
f(M, {
|
|
373
|
-
disabled: e.disabled,
|
|
374
|
-
class: "col-span-3",
|
|
375
|
-
label: l(r)("inventory.unit.precision"),
|
|
376
|
-
modelValue: t.value,
|
|
377
|
-
"onUpdate:modelValue": o[2] || (o[2] = (k) => t.value = k),
|
|
378
|
-
rules: [l(ye)(0)]
|
|
379
|
-
}, null, 8, ["disabled", "label", "modelValue", "rules"])
|
|
380
|
-
])
|
|
381
|
-
]),
|
|
382
|
-
s("div", Je, [
|
|
383
|
-
f(_, {
|
|
384
|
-
disabled: e.disabled,
|
|
385
|
-
type: "button",
|
|
386
|
-
"prepend-icon": "add",
|
|
387
|
-
label: l(r)("inventory.unit.measurement.addMeasurement"),
|
|
388
|
-
variant: "plain",
|
|
389
|
-
onClick: g
|
|
390
|
-
}, null, 8, ["disabled", "label"])
|
|
391
|
-
]),
|
|
392
|
-
(v(!0), w(q, null, H((P = e.modelValue) == null ? void 0 : P.measurements, (k, h) => (v(), T(Q, {
|
|
393
|
-
class: "flex flex-col gap-16 p-16",
|
|
394
|
-
variant: "outlined",
|
|
395
|
-
key: k.id
|
|
396
|
-
}, {
|
|
397
|
-
default: A(() => [
|
|
398
|
-
s("div", We, [
|
|
399
|
-
s("div", Xe, V(l(r)("inventory.unit.measurement.measurementDefault", [h + 1])), 1),
|
|
400
|
-
f(_, {
|
|
401
|
-
disabled: e.disabled,
|
|
402
|
-
variant: "tertiary",
|
|
403
|
-
"prepend-icon": "delete",
|
|
404
|
-
onClick: (E) => C(h)
|
|
405
|
-
}, null, 8, ["disabled", "onClick"])
|
|
406
|
-
]),
|
|
407
|
-
s("div", Ze, [
|
|
408
|
-
s("div", et, [
|
|
409
|
-
s("div", tt, [
|
|
410
|
-
f(x, {
|
|
411
|
-
disabled: e.disabled,
|
|
412
|
-
class: "col-span-2",
|
|
413
|
-
label: l(r)("inventory.unit.measurement.name"),
|
|
414
|
-
modelValue: e.modelValue.measurements[h].name,
|
|
415
|
-
"onUpdate:modelValue": (E) => e.modelValue.measurements[h].name = E,
|
|
416
|
-
rules: [l(j)()],
|
|
417
|
-
"label-mark": "required"
|
|
418
|
-
}, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
419
|
-
]),
|
|
420
|
-
s("div", nt, [
|
|
421
|
-
f(x, {
|
|
422
|
-
disabled: e.disabled,
|
|
423
|
-
label: l(r)("inventory.unit.measurement.symbol"),
|
|
424
|
-
modelValue: e.modelValue.measurements[h].abbrev,
|
|
425
|
-
"onUpdate:modelValue": (E) => e.modelValue.measurements[h].abbrev = E,
|
|
426
|
-
rules: [l(j)()],
|
|
427
|
-
"label-mark": "required"
|
|
428
|
-
}, null, 8, ["disabled", "label", "modelValue", "onUpdate:modelValue", "rules"])
|
|
429
|
-
])
|
|
430
|
-
]),
|
|
431
|
-
f(Ae, {
|
|
432
|
-
disabled: e.disabled,
|
|
433
|
-
class: "col-span-3",
|
|
434
|
-
label: l(r)("inventory.unit.measurement.conversion"),
|
|
435
|
-
"model-value": +l(J)(e.modelValue.measurements[h].conversion),
|
|
436
|
-
"onUpdate:modelValue": (E) => u.value = u.value.map(
|
|
437
|
-
(D, B) => B === h ? {
|
|
438
|
-
...D,
|
|
439
|
-
conversion: l(De).toPrecision(
|
|
440
|
-
l(be)(E),
|
|
441
|
-
t.value
|
|
442
|
-
)
|
|
443
|
-
} : D
|
|
444
|
-
),
|
|
445
|
-
rules: [l(ge)(0)],
|
|
446
|
-
step: +l(J)({ amount: 1, precision: t.value }),
|
|
447
|
-
"helper-text": l(r)("inventory.unit.measurement.conversionHelper", {
|
|
448
|
-
measurementSymbol: e.modelValue.measurements[h].name || " measurement unit",
|
|
449
|
-
conversion: +l(J)(e.modelValue.measurements[h].conversion),
|
|
450
|
-
unitSymbol: i.value || "base unit"
|
|
451
|
-
})
|
|
452
|
-
}, null, 8, ["disabled", "label", "model-value", "onUpdate:modelValue", "rules", "step", "helper-text"])
|
|
453
|
-
])
|
|
454
|
-
]),
|
|
455
|
-
_: 2
|
|
456
|
-
}, 1024))), 128))
|
|
457
|
-
];
|
|
458
|
-
}),
|
|
459
|
-
_: 1
|
|
460
|
-
}, 512);
|
|
461
|
-
};
|
|
462
|
-
}
|
|
463
|
-
}), lt = { class: "flex gap-4" }, st = /* @__PURE__ */ G({
|
|
464
|
-
__name: "UnitDialog",
|
|
465
|
-
props: {
|
|
466
|
-
show: { type: Boolean },
|
|
467
|
-
unit: {},
|
|
468
|
-
mode: { default: U.READ }
|
|
469
|
-
},
|
|
470
|
-
emits: ["update:show"],
|
|
471
|
-
setup(F) {
|
|
472
|
-
const c = F, y = K(), m = ae(), { t: a } = O(), r = le(c, "show"), d = le(c, "unit"), n = b(() => {
|
|
473
|
-
switch (c.mode) {
|
|
474
|
-
case U.READ:
|
|
475
|
-
return "";
|
|
476
|
-
case U.UPDATE:
|
|
477
|
-
return a("inventory.unit.update.title");
|
|
478
|
-
case U.CREATE:
|
|
479
|
-
return a("inventory.unit.create.title");
|
|
480
|
-
}
|
|
481
|
-
return "";
|
|
482
|
-
}), p = b(() => {
|
|
483
|
-
switch (c.mode) {
|
|
484
|
-
case U.READ:
|
|
485
|
-
return "";
|
|
486
|
-
case U.UPDATE:
|
|
487
|
-
return a("common.save");
|
|
488
|
-
case U.CREATE:
|
|
489
|
-
return a("common.add");
|
|
490
|
-
}
|
|
491
|
-
return "";
|
|
492
|
-
}), i = R(), t = R(!1);
|
|
493
|
-
async function u() {
|
|
494
|
-
t.value = !0;
|
|
495
|
-
try {
|
|
496
|
-
const e = se(d.value);
|
|
497
|
-
e.precision ?? (e.precision = 0), e.measurements ?? (e.measurements = []), await y.createUnit(e), r.value = !1, m.open({
|
|
498
|
-
title: a("inventory.common.success"),
|
|
499
|
-
message: a("inventory.unit.create.success", { name: d.value.name }),
|
|
500
|
-
type: "success"
|
|
501
|
-
});
|
|
502
|
-
} catch (e) {
|
|
503
|
-
e instanceof oe || m.open({
|
|
504
|
-
title: a("inventory.unit.create.error.title"),
|
|
505
|
-
message: a("inventory.unit.create.error.message"),
|
|
506
|
-
type: "error"
|
|
507
|
-
});
|
|
508
|
-
} finally {
|
|
509
|
-
t.value = !1;
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
async function g() {
|
|
513
|
-
t.value = !0;
|
|
514
|
-
try {
|
|
515
|
-
await y.updateUnit(d.value), r.value = !1, m.open({
|
|
516
|
-
title: a("inventory.common.success"),
|
|
517
|
-
message: a("inventory.unit.update.success", { name: d.value.name }),
|
|
518
|
-
type: "success"
|
|
519
|
-
});
|
|
520
|
-
} catch (e) {
|
|
521
|
-
e instanceof oe || m.open({
|
|
522
|
-
title: a("inventory.unit.update.error.title"),
|
|
523
|
-
message: a("inventory.unit.update.error.message"),
|
|
524
|
-
type: "error"
|
|
525
|
-
});
|
|
526
|
-
} finally {
|
|
527
|
-
t.value = !1;
|
|
528
|
-
}
|
|
529
|
-
}
|
|
530
|
-
function C() {
|
|
531
|
-
var e, o;
|
|
532
|
-
(o = (e = i.value) == null ? void 0 : e.validateInputs) == null || o.call(e);
|
|
533
|
-
}
|
|
534
|
-
function S() {
|
|
535
|
-
switch (c.mode) {
|
|
536
|
-
case U.READ:
|
|
537
|
-
return;
|
|
538
|
-
case U.UPDATE:
|
|
539
|
-
return g();
|
|
540
|
-
case U.CREATE:
|
|
541
|
-
return u();
|
|
542
|
-
}
|
|
543
|
-
}
|
|
544
|
-
return (e, o) => {
|
|
545
|
-
const x = I("FmButton"), M = I("FmSideSheet");
|
|
546
|
-
return v(), T(M, {
|
|
547
|
-
"model-value": l(r),
|
|
548
|
-
"onUpdate:modelValue": o[3] || (o[3] = (_) => te(r) ? r.value = _ : null),
|
|
549
|
-
header: n.value,
|
|
550
|
-
"close-button": "",
|
|
551
|
-
"dismiss-away": "",
|
|
552
|
-
"max-width": 500
|
|
553
|
-
}, {
|
|
554
|
-
"side-sheet-footer": A(() => [
|
|
555
|
-
s("div", lt, [
|
|
556
|
-
f(x, {
|
|
557
|
-
loading: t.value,
|
|
558
|
-
label: p.value,
|
|
559
|
-
onClick: C
|
|
560
|
-
}, null, 8, ["loading", "label"]),
|
|
561
|
-
f(x, {
|
|
562
|
-
disabled: t.value,
|
|
563
|
-
label: l(a)("common.close"),
|
|
564
|
-
variant: "tertiary",
|
|
565
|
-
onClick: o[2] || (o[2] = (_) => r.value = !1)
|
|
566
|
-
}, null, 8, ["disabled", "label"])
|
|
567
|
-
])
|
|
568
|
-
]),
|
|
569
|
-
default: A(() => [
|
|
570
|
-
f(ot, {
|
|
571
|
-
class: "w-full",
|
|
572
|
-
ref_key: "hasValidationExpose",
|
|
573
|
-
ref: i,
|
|
574
|
-
modelValue: l(d),
|
|
575
|
-
"onUpdate:modelValue": o[0] || (o[0] = (_) => te(d) ? d.value = _ : null),
|
|
576
|
-
mode: e.mode,
|
|
577
|
-
disabled: t.value,
|
|
578
|
-
"onClick:submit": o[1] || (o[1] = (_) => S())
|
|
579
|
-
}, null, 8, ["modelValue", "mode", "disabled"])
|
|
580
|
-
]),
|
|
581
|
-
_: 1
|
|
582
|
-
}, 8, ["model-value", "header"]);
|
|
583
|
-
};
|
|
584
|
-
}
|
|
585
|
-
}), at = { class: "flex flex-col py-8" }, rt = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, it = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, bt = /* @__PURE__ */ G({
|
|
586
|
-
__name: "UnitView",
|
|
587
|
-
setup(F) {
|
|
588
|
-
const c = K(), y = xe(), m = _e(), a = b(() => c.units), { createUnit: r, updateUnit: d } = W(), { unitDialogProps: n, unitViewLoading: p } = Ie(W()), { columnDefs: i } = Ge();
|
|
589
|
-
function t(M) {
|
|
590
|
-
M === "add" && r();
|
|
591
|
-
}
|
|
592
|
-
const u = R(""), g = b(() => p.value), { breakpoints: C } = ke(), S = b(() => C.value.xs || C.value.sm), e = b(() => S.value ? 10 : 20), o = he(), { t: x } = O();
|
|
593
|
-
return (M, _) => {
|
|
594
|
-
const Q = I("FmTable");
|
|
595
|
-
return v(), T(Ve, {
|
|
596
|
-
title: l(x)("inventory.unit.title"),
|
|
597
|
-
actions: l(m).isEnabled ? [] : [
|
|
598
|
-
{
|
|
599
|
-
label: l(x)("inventory.unit.create.title"),
|
|
600
|
-
value: "add",
|
|
601
|
-
isPrimary: !0,
|
|
602
|
-
prependIcon: "add"
|
|
603
|
-
}
|
|
604
|
-
],
|
|
605
|
-
"onClick:action": t
|
|
606
|
-
}, {
|
|
607
|
-
default: A(() => [
|
|
608
|
-
s("div", {
|
|
609
|
-
class: ie([
|
|
610
|
-
"flex flex-col gap-8 max-h-full",
|
|
611
|
-
{
|
|
612
|
-
"p-0": S.value,
|
|
613
|
-
"px-24 ": !S.value
|
|
614
|
-
}
|
|
615
|
-
])
|
|
616
|
-
}, [
|
|
617
|
-
f(Ue, {
|
|
618
|
-
searchable: "",
|
|
619
|
-
search: u.value,
|
|
620
|
-
"onUpdate:search": _[0] || (_[0] = ($) => u.value = $)
|
|
621
|
-
}, null, 8, ["search"]),
|
|
622
|
-
f(Q, {
|
|
623
|
-
style: ue(l(o).tableHeight),
|
|
624
|
-
"column-defs": l(i),
|
|
625
|
-
"row-data": a.value,
|
|
626
|
-
"search-value": u.value,
|
|
627
|
-
loading: !l(y)._currentLocation || g.value,
|
|
628
|
-
onRowClick: _[1] || (_[1] = ($) => l(d)($.original)),
|
|
629
|
-
"page-size": e.value
|
|
630
|
-
}, {
|
|
631
|
-
"list-row": A(($) => [
|
|
632
|
-
f(we, {
|
|
633
|
-
row: $,
|
|
634
|
-
onRowClick: l(d)
|
|
635
|
-
}, {
|
|
636
|
-
default: A((P) => {
|
|
637
|
-
var k, h, E, D, B, N, X, z, Z;
|
|
638
|
-
return [
|
|
639
|
-
s("div", at, [
|
|
640
|
-
s("div", rt, [
|
|
641
|
-
f(l(Ce), {
|
|
642
|
-
render: (E = (h = (k = P.name) == null ? void 0 : k.column) == null ? void 0 : h.columnDef) == null ? void 0 : E.cell,
|
|
643
|
-
props: (B = (D = P.name) == null ? void 0 : D.getContext) == null ? void 0 : B.call(D)
|
|
644
|
-
}, null, 8, ["render", "props"])
|
|
645
|
-
]),
|
|
646
|
-
s("div", it, V((Z = (z = (X = (N = $.original.measurements) == null ? void 0 : N.map) == null ? void 0 : X.call(N, (re) => re.name)) == null ? void 0 : z.join) == null ? void 0 : Z.call(z, ", ")), 1)
|
|
647
|
-
])
|
|
648
|
-
];
|
|
649
|
-
}),
|
|
650
|
-
_: 2
|
|
651
|
-
}, 1032, ["row", "onRowClick"])
|
|
652
|
-
]),
|
|
653
|
-
_: 1
|
|
654
|
-
}, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
|
|
655
|
-
], 2),
|
|
656
|
-
(v(), T(de, { to: "body" }, [
|
|
657
|
-
f(st, me(ce(l(n))), null, 16)
|
|
658
|
-
]))
|
|
659
|
-
]),
|
|
660
|
-
_: 1
|
|
661
|
-
}, 8, ["title", "actions"]);
|
|
662
|
-
};
|
|
663
|
-
}
|
|
664
|
-
});
|
|
665
|
-
export {
|
|
666
|
-
bt as default
|
|
667
|
-
};
|