@feedmepos/mf-inventory-portal 1.2.64 → 1.2.66-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-apJIvz1w.js → App-BUNonuLz.js} +82 -78
- package/dist/{ApprovalView-CnT6gEI8.js → ApprovalView-BlS1tfbh.js} +6 -6
- package/dist/{BindingsDialog-DLEGDbV2.js → BindingsDialog-tRpsVTm0.js} +5 -5
- package/dist/{BindingsPicker-1Xt1vCu9.js → BindingsPicker-CUvkqcAG.js} +3 -3
- package/dist/{BindingsTable-_0cOM0Kx.js → BindingsTable-B86pWYMk.js} +5 -5
- package/dist/{ClosingDraftView-DsVPsN87.js → ClosingDraftView-gMVnQcWw.js} +226 -224
- package/dist/ClosingHistoryView-DhbE1pEl.js +1147 -0
- package/dist/{ClosingTemplateView-DB3F1wul.js → ClosingTemplateView-Ywbdj05y.js} +15 -15
- package/dist/{DeliveryOrderPrintPreview-CglCMgHc.js → DeliveryOrderPrintPreview-BPhVNc_r.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-MMPTJodu.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BrPh_Nvx.js} +16 -16
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CCID5O2Y.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CkUwLhut.js} +3 -3
- package/dist/{FmMultiselectDialog-B8xFmCsH.js → FmMultiselectDialog-C6E_KMFO.js} +1 -1
- package/dist/{FmMultiselectDialog-lQM1qEEW.js → FmMultiselectDialog-DBXpkw5b.js} +16 -16
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BLDz8wwK.js → FmUnitInput.vue_vue_type_script_setup_true_lang-D-ZqJ8sU.js} +23 -22
- package/dist/{ImportView-DeC-MPFn.js → ImportView-DV1e51qk.js} +7 -7
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-BGDZlmsr.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DkQL7hK2.js} +1 -1
- package/dist/{IngredientGroupView-CuFwQ8Bo.js → IngredientGroupView-CdXGO34J.js} +6 -6
- package/dist/{IngredientsView-CfloqEqn.js → IngredientsView-D2qffNiJ.js} +26 -25
- package/dist/{IntegrationView-CFU0yG6C.js → IntegrationView-RFJIHXQv.js} +19 -18
- package/dist/{InventoryBindingForm-i7eNurS2.js → InventoryBindingForm-CPn-IXgg.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-zOo9YVJe.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-0Vrih8D5.js} +17 -16
- package/dist/{InventoryBindingSummary-BbHLCdjj.js → InventoryBindingSummary-B_WUQ6By.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-NEPqmkHR.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BmDuR4Yb.js} +5 -5
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DhIHSpzG.js +93 -0
- package/dist/{PublishView-CbwCLtph.js → PublishView-BtTSOUyL.js} +9 -9
- package/dist/{PurchaseOrderPrintPreview-DLhgjhHB.js → PurchaseOrderPrintPreview-CxhMPx5u.js} +11 -11
- package/dist/{ReceiveRequestView-CE2aQR-o.js → ReceiveRequestView-CsqEjf7r.js} +144 -142
- package/dist/RecipeView-DASoba97.js +1558 -0
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-mvRR4CrP.js +254 -0
- package/dist/StockView-B4Km4DgB.js +2395 -0
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-D0BDdq4d.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cki-LAZR.js} +1 -1
- package/dist/{SupplierView-wSzWjZLY.js → SupplierView-CrzFvBIx.js} +21 -20
- package/dist/{SurchargeView-G8OyE60y.js → SurchargeView-BoNWpxFY.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CROQL761.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Dcp5vZPM.js} +3 -3
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-IAknr-ye.js +292 -0
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-D1AGDeEP.js → TransferDetails.vue_vue_type_script_setup_true_lang-D9aNX0oM.js} +131 -130
- package/dist/{TransferTemplateView-CVfi8jsk.js → TransferTemplateView-DwIU0paO.js} +23 -22
- package/dist/UnitCostHistoryView-Bjs4RwyR.js +651 -0
- package/dist/UnitDisplayControl.vue_vue_type_script_setup_true_lang-BH0PxivU.js +137 -0
- package/dist/{UnitView-Dn3nuQHm.js → UnitView-BbQ0jOgS.js} +12 -10
- package/dist/{WarehouseView-GSxQ_Ev2.js → WarehouseView-DzPttKzE.js} +6 -6
- package/dist/WastageTemplateView-CxyZz5JC.js +2327 -0
- package/dist/api/adjustment-template.d.ts +1 -0
- package/dist/api/closing.d.ts +2 -0
- package/dist/api/inventory.d.ts +126 -36
- package/dist/api/netsuite.d.ts +8 -1
- package/dist/api/stock.d.ts +5 -1
- package/dist/api/unit-cost-history.d.ts +28 -0
- package/dist/{app-CYbiMVcX.js → app-EoCCjoRh.js} +9021 -7945
- package/dist/app.d.ts +236 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-Dq16W8vW.js → closing-template-O_hzhisU.js} +5 -1
- package/dist/components/TemplatePublishDialog.d.ts +1 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +37 -1
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +14 -0
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +16 -1
- package/dist/{date2-De3BHKh5.js → date2-CTHKdfXp.js} +1 -1
- package/dist/{dayjs.min-DxdfVXA-.js → dayjs.min-Ccv4NdEp.js} +16 -16
- package/dist/decimal-tRyklLh0.js +99 -0
- package/dist/{defineDeepModel-2n_afItE.js → defineDeepModel-rmOd66to.js} +1 -1
- package/dist/{duplicate-template-DM7YIgor.js → duplicate-template-k8Erwdzo.js} +1 -1
- package/dist/export-TmaGpV98.js +25 -0
- package/dist/{feature-_nNpSZuh.js → feature-D4-lt7R6.js} +94 -89
- package/dist/{format-time-from-id-D5HSMsS-.js → format-time-from-id-Cru7cG1h.js} +1 -1
- package/dist/{format-unit-display-CQUFDxVm.js → format-unit-display-DZDD796a.js} +16 -15
- package/dist/{import-export.helper-BoxczUsX.js → import-export.helper-BjzXGudc.js} +16 -15
- package/dist/{index-B6nDUCCe.js → index-BeEz64I1.js} +3 -3
- package/dist/{index-Cp_mpu5S.js → index-DKCY6354.js} +1471 -1412
- package/dist/{index-CdfF5GGW.js → index-gGbN4qbt.js} +1 -1
- package/dist/{lodash-2R7Rgorb.js → lodash-BSCFf0k7.js} +1 -1
- package/dist/{netsuite-Bss4fURp.js → netsuite-DwoCq3Mv.js} +92 -92
- package/dist/number-CEUoMyIk.js +138 -0
- package/dist/{purchase-order-template-CBSvv0b2.js → purchase-order-template-DWTdjo9l.js} +1 -1
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-CyW1Bx31.js +98 -0
- package/dist/{stock-DMX_hH5c.js → stock-DYWJ4DZW.js} +28 -27
- package/dist/stock-Ds3GNgHG.js +75 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +8 -1
- package/dist/stores/inventory.d.ts +120 -30
- package/dist/{supplier-Cf5HW15s.js → supplier-DwUb1oVo.js} +2 -2
- package/dist/{surcharge-CyReT8lG.js → surcharge-UTJFNBLN.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-BCyydlHR.js → use-ingredient-select-dialog-D8A3bPTe.js} +2 -2
- package/dist/{use-inventory-binding-dialog-WGQs-_2i.js → use-inventory-binding-dialog-DFmiAQ9d.js} +2 -2
- package/dist/{use-template-enabled-locations-2-B0nlqUjb.js → use-template-enabled-locations-2-snlITfW8.js} +2 -2
- package/dist/views/adjustment-template/wastage-template/table.d.ts +10 -1
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +68 -12
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +204 -36
- package/dist/views/closing-history/ClosingDetailDialog.vue.d.ts +23 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +8 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +96 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +96 -12
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +14 -0
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +32 -4
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +28 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +169 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +43 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +25 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +125 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +129 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +30 -0
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +4 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +8 -1
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +33 -5
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +16 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +32 -4
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +8 -1
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +41 -6
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +246 -36
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +287 -42
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +16 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +16 -2
- package/dist/views/stock/components/dialog/SnapshotRecalculationDialog.vue.d.ts +11 -0
- package/dist/views/stock/components/dialog/recalculationUtils.d.ts +16 -0
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +16 -2
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -1
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +24 -3
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -12
- package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +2 -0
- package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +19 -0
- package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +11 -0
- package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +65 -0
- package/dist/{vue-i18n-DwS_fjo9.js → vue-i18n-CY4442Fb.js} +510 -510
- package/dist/{xlsx-9MOvXxhT.js → xlsx-Kc1XotGV.js} +1 -1
- package/dist/{xlsx.util-D1DdGA1N.js → xlsx.util-Dy4jmPyv.js} +1 -1
- package/package.json +1 -1
- package/dist/ClosingHistoryView-YrEVWvGu.js +0 -447
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BDVHkTSE.js +0 -116
- package/dist/RecipeView-B-gmrXHR.js +0 -646
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-CWZkVCAj.js +0 -251
- package/dist/StockView-BNe2_5bA.js +0 -2520
- package/dist/TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CwV2luel.js +0 -263
- package/dist/WastageTemplateView-BG-y48uc.js +0 -2388
- package/dist/rules-T-fs8_4_.js +0 -327
- package/dist/stock-CFWu5bRA.js +0 -75
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { defineComponent as H, resolveComponent as h, unref as A, openBlock as n, createElementBlock as c, renderSlot as I, createElementVNode as p, normalizeClass as C, createVNode as v, reactive as D, onUnmounted as R, ref as X, computed as $, Fragment as k, createTextVNode as Y, toDisplayString as T, createCommentVNode as _, createBlock as u, renderList as U, withCtx as x, Teleport as N } from "vue";
|
|
2
|
+
import { useBreakpoints as G } from "@feedmepos/ui-library";
|
|
3
|
+
import { useCoreStore as z, useI18n as J } from "@feedmepos/mf-common";
|
|
4
|
+
import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const Q = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "group gap-8 inline-flex items-center relative select-none border-1 border-dashed rounded-md border-red-500 hover:border-opacity-30 transition-opacity"
|
|
8
|
+
}, W = { class: "fm-typo-en-body-sm-400 justify-center flex items-center w-full" }, Z = /* @__PURE__ */ H({
|
|
9
|
+
__name: "FmAdminBadge",
|
|
10
|
+
props: {
|
|
11
|
+
class: { default: void 0 }
|
|
12
|
+
},
|
|
13
|
+
setup(b) {
|
|
14
|
+
const m = b, f = z();
|
|
15
|
+
return (r, d) => {
|
|
16
|
+
var a;
|
|
17
|
+
const i = h("FmIcon");
|
|
18
|
+
return (a = A(f).sessionUser.value) != null && a.role.isAdmin ? (n(), c("div", Q, [
|
|
19
|
+
I(r.$slots, "default", {}, void 0, !0),
|
|
20
|
+
p("div", {
|
|
21
|
+
class: C([
|
|
22
|
+
"fm-admin-badge",
|
|
23
|
+
"group-hover:opacity-20",
|
|
24
|
+
m.class,
|
|
25
|
+
{
|
|
26
|
+
absolute: !0,
|
|
27
|
+
"bottom-[-5px] right-[-8px] px-4 h-[25px] w-[25px] border-2 border-red-800": !0
|
|
28
|
+
}
|
|
29
|
+
])
|
|
30
|
+
}, [
|
|
31
|
+
p("span", W, [
|
|
32
|
+
v(i, {
|
|
33
|
+
name: "support_agent",
|
|
34
|
+
size: "sm",
|
|
35
|
+
outline: ""
|
|
36
|
+
})
|
|
37
|
+
])
|
|
38
|
+
], 2)
|
|
39
|
+
])) : I(r.$slots, "non-admin", { key: 1 }, void 0, !0);
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
}), F = /* @__PURE__ */ K(Z, [["__scopeId", "data-v-643bdbae"]]), M = D({});
|
|
43
|
+
function ee() {
|
|
44
|
+
const b = `${Math.random()}`, m = new ResizeObserver((d) => {
|
|
45
|
+
const i = d.map((a) => a.target.scrollHeight).reduce((a, t) => a + t);
|
|
46
|
+
M[b] = i;
|
|
47
|
+
}), f = (d) => {
|
|
48
|
+
const i = d.el;
|
|
49
|
+
i && m.observe(i);
|
|
50
|
+
}, r = (d) => {
|
|
51
|
+
const i = d.el;
|
|
52
|
+
i && m.unobserve(i);
|
|
53
|
+
};
|
|
54
|
+
return R(() => {
|
|
55
|
+
m.disconnect(), delete M[b];
|
|
56
|
+
}), {
|
|
57
|
+
get tableHeight() {
|
|
58
|
+
return {
|
|
59
|
+
height: `calc(100dvh - ${Object.values(M).reduce((a, t) => a + t, 0) + 80}px)`
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
onMounted: f,
|
|
63
|
+
onUnmounted: r
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
const te = {
|
|
67
|
+
key: 0,
|
|
68
|
+
class: /* @__PURE__ */ C(["text-fm-color-typo-secondary fm-typo-en-body-sm-400"])
|
|
69
|
+
}, ne = { class: "bg-white flex-1" }, le = { class: "fixed bottom-96 right-16" }, S = 3, ue = /* @__PURE__ */ H({
|
|
70
|
+
__name: "SingleColumnLayout",
|
|
71
|
+
props: {
|
|
72
|
+
actions: { default: () => [] },
|
|
73
|
+
title: { default: "Title" },
|
|
74
|
+
description: {},
|
|
75
|
+
showBackButton: { type: Boolean },
|
|
76
|
+
defaultPadding: { type: Boolean },
|
|
77
|
+
breadcrumbs: { default: () => [] },
|
|
78
|
+
helperText: {}
|
|
79
|
+
},
|
|
80
|
+
emits: ["click:action"],
|
|
81
|
+
setup(b, { emit: m }) {
|
|
82
|
+
const f = b, r = m, { t: d } = J(), i = z(), a = X(!1), t = $(() => f.actions.find((o) => o.isPrimary)), y = $(() => f.actions.filter((o) => !o.isPrimary)), E = $(
|
|
83
|
+
() => y.value.filter((o) => {
|
|
84
|
+
var s;
|
|
85
|
+
return o.isAdminOnly ?? !1 ? (s = i.sessionUser.value) == null ? void 0 : s.role.isAdmin : !0;
|
|
86
|
+
}).map(
|
|
87
|
+
(o) => ({
|
|
88
|
+
label: `${o.label} ${o.isAdminOnly == !0 ? "(Admin only)" : ""}`,
|
|
89
|
+
value: o.value
|
|
90
|
+
})
|
|
91
|
+
)
|
|
92
|
+
), { breakpoints: w } = G(), g = $(() => w.value.xs || w.value.sm), O = ee();
|
|
93
|
+
return (o, l) => {
|
|
94
|
+
var V;
|
|
95
|
+
const s = h("FmButton"), L = h("FmMenuItem"), P = h("FmMenu"), j = h("FmCollapsibleTabs"), q = h("FmBottomSheet");
|
|
96
|
+
return n(), c(k, null, [
|
|
97
|
+
p("div", {
|
|
98
|
+
class: C([
|
|
99
|
+
"flex flex-col w-full bg-white h-full",
|
|
100
|
+
{
|
|
101
|
+
"gap-12": g.value
|
|
102
|
+
}
|
|
103
|
+
])
|
|
104
|
+
}, [
|
|
105
|
+
p("div", {
|
|
106
|
+
onVnodeMounted: l[3] || (l[3] = //@ts-ignore
|
|
107
|
+
(...e) => A(O).onMounted && A(O).onMounted(...e)),
|
|
108
|
+
class: C([
|
|
109
|
+
"flex gap-8 items-center",
|
|
110
|
+
{
|
|
111
|
+
"p-12 border-b-[1px] border-b-fm-color-neutral-gray-100": g.value,
|
|
112
|
+
"px-24 py-16": !g.value
|
|
113
|
+
}
|
|
114
|
+
])
|
|
115
|
+
}, [
|
|
116
|
+
p("div", {
|
|
117
|
+
class: C([
|
|
118
|
+
"flex-1 flex flex-col gap-4 fm-typo-en-title-md-600 bg-white",
|
|
119
|
+
{
|
|
120
|
+
"py-12": g.value
|
|
121
|
+
}
|
|
122
|
+
])
|
|
123
|
+
}, [
|
|
124
|
+
p("div", null, [
|
|
125
|
+
Y(T(o.title) + " ", 1),
|
|
126
|
+
I(o.$slots, "headerInfo")
|
|
127
|
+
]),
|
|
128
|
+
o.helperText ? (n(), c("div", te, T(o.helperText), 1)) : _("", !0)
|
|
129
|
+
], 2),
|
|
130
|
+
g.value ? (n(), c(k, { key: 0 }, [
|
|
131
|
+
y.value.length ? (n(), u(s, {
|
|
132
|
+
key: 0,
|
|
133
|
+
variant: "tertiary",
|
|
134
|
+
"prepend-icon": "more_vert",
|
|
135
|
+
onClick: l[0] || (l[0] = (e) => a.value = !0)
|
|
136
|
+
})) : _("", !0)
|
|
137
|
+
], 64)) : (n(), c(k, { key: 1 }, [
|
|
138
|
+
(n(!0), c(k, null, U(y.value.slice(0, S), (e) => (n(), c(k, {
|
|
139
|
+
key: e.value
|
|
140
|
+
}, [
|
|
141
|
+
e.isAdminOnly ? (n(), u(F, { key: 0 }, {
|
|
142
|
+
default: x(() => [
|
|
143
|
+
v(s, {
|
|
144
|
+
label: e.label,
|
|
145
|
+
"prepend-icon": e.prependIcon,
|
|
146
|
+
variant: e.variant,
|
|
147
|
+
"bg-color": e.variant ? void 0 : "neutral-gray-100",
|
|
148
|
+
"text-color": e.variant ? void 0 : "neutral-gray-400",
|
|
149
|
+
onClick: (B) => r("click:action", e.value)
|
|
150
|
+
}, null, 8, ["label", "prepend-icon", "variant", "bg-color", "text-color", "onClick"])
|
|
151
|
+
]),
|
|
152
|
+
_: 2
|
|
153
|
+
}, 1024)) : (n(), u(s, {
|
|
154
|
+
key: 1,
|
|
155
|
+
label: e.label,
|
|
156
|
+
"prepend-icon": e.prependIcon,
|
|
157
|
+
variant: e.variant,
|
|
158
|
+
"bg-color": e.variant ? void 0 : "neutral-gray-100",
|
|
159
|
+
"text-color": e.variant ? void 0 : "neutral-gray-400",
|
|
160
|
+
onClick: (B) => r("click:action", e.value)
|
|
161
|
+
}, null, 8, ["label", "prepend-icon", "variant", "bg-color", "text-color", "onClick"]))
|
|
162
|
+
], 64))), 128)),
|
|
163
|
+
y.value.length > S ? (n(), u(P, { key: 0 }, {
|
|
164
|
+
"menu-button": x(() => [
|
|
165
|
+
v(s, {
|
|
166
|
+
label: A(d)("inventory.common.more"),
|
|
167
|
+
"append-icon": "expand_more",
|
|
168
|
+
"bg-color": "neutral-gray-100",
|
|
169
|
+
"text-color": "neutral-gray-400"
|
|
170
|
+
}, null, 8, ["label"])
|
|
171
|
+
]),
|
|
172
|
+
default: x(() => [
|
|
173
|
+
(n(!0), c(k, null, U(y.value.slice(S), (e, B) => (n(), u(L, {
|
|
174
|
+
key: B,
|
|
175
|
+
label: e.label,
|
|
176
|
+
onClick: (oe) => r("click:action", e.value)
|
|
177
|
+
}, null, 8, ["label", "onClick"]))), 128))
|
|
178
|
+
]),
|
|
179
|
+
_: 1
|
|
180
|
+
})) : _("", !0),
|
|
181
|
+
(V = t.value) != null && V.isAdminOnly ? (n(), u(F, { key: 1 }, {
|
|
182
|
+
default: x(() => [
|
|
183
|
+
v(s, {
|
|
184
|
+
label: t.value.label,
|
|
185
|
+
"prepend-icon": t.value.prependIcon,
|
|
186
|
+
onClick: l[1] || (l[1] = (e) => r("click:action", t.value.value))
|
|
187
|
+
}, null, 8, ["label", "prepend-icon"])
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
})) : t.value ? (n(), u(s, {
|
|
191
|
+
key: 2,
|
|
192
|
+
label: t.value.label,
|
|
193
|
+
"prepend-icon": t.value.prependIcon,
|
|
194
|
+
onClick: l[2] || (l[2] = (e) => r("click:action", t.value.value))
|
|
195
|
+
}, null, 8, ["label", "prepend-icon"])) : _("", !0)
|
|
196
|
+
], 64))
|
|
197
|
+
], 2),
|
|
198
|
+
p("div", ne, [
|
|
199
|
+
I(o.$slots, "default")
|
|
200
|
+
])
|
|
201
|
+
], 2),
|
|
202
|
+
t.value && g.value ? (n(), u(N, {
|
|
203
|
+
key: 0,
|
|
204
|
+
to: "body"
|
|
205
|
+
}, [
|
|
206
|
+
p("div", le, [
|
|
207
|
+
t.value.isAdminOnly ? (n(), u(F, { key: 0 }, {
|
|
208
|
+
default: x(() => [
|
|
209
|
+
v(s, {
|
|
210
|
+
label: t.value.label,
|
|
211
|
+
"prepend-icon": t.value.prependIcon,
|
|
212
|
+
onClick: l[4] || (l[4] = (e) => r("click:action", t.value.value)),
|
|
213
|
+
variant: "fab"
|
|
214
|
+
}, null, 8, ["label", "prepend-icon"])
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
})) : (n(), u(s, {
|
|
218
|
+
key: 1,
|
|
219
|
+
label: t.value.label,
|
|
220
|
+
"prepend-icon": t.value.prependIcon,
|
|
221
|
+
onClick: l[5] || (l[5] = (e) => r("click:action", t.value.value)),
|
|
222
|
+
variant: "fab"
|
|
223
|
+
}, null, 8, ["label", "prepend-icon"]))
|
|
224
|
+
])
|
|
225
|
+
])) : _("", !0),
|
|
226
|
+
y.value.length ? (n(), u(N, {
|
|
227
|
+
key: 1,
|
|
228
|
+
to: "body"
|
|
229
|
+
}, [
|
|
230
|
+
v(q, {
|
|
231
|
+
"dismiss-away": "",
|
|
232
|
+
"no-header": "",
|
|
233
|
+
modelValue: a.value,
|
|
234
|
+
"onUpdate:modelValue": l[7] || (l[7] = (e) => a.value = e)
|
|
235
|
+
}, {
|
|
236
|
+
default: x(() => [
|
|
237
|
+
v(j, {
|
|
238
|
+
class: "pb-8",
|
|
239
|
+
items: E.value,
|
|
240
|
+
"onUpdate:modelValue": l[6] || (l[6] = (e) => (r("click:action", e), a.value = !1))
|
|
241
|
+
}, null, 8, ["items"])
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
}, 8, ["modelValue"])
|
|
245
|
+
])) : _("", !0)
|
|
246
|
+
], 64);
|
|
247
|
+
};
|
|
248
|
+
}
|
|
249
|
+
});
|
|
250
|
+
export {
|
|
251
|
+
F,
|
|
252
|
+
ue as _,
|
|
253
|
+
ee as u
|
|
254
|
+
};
|