@feedmepos/mf-inventory-portal 0.0.23-dev.1 → 0.0.23-dev.10
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-Y3Ez8Rjf.js → App-DDxwfi6I.js} +36 -31
- package/dist/{ApprovalView-BUU1G4Q2.js → ApprovalView-7rpIigm0.js} +4 -4
- package/dist/{BindingsDialog-8wc4Q0JQ.js → BindingsDialog-DbyzX6mw.js} +2 -2
- package/dist/{BindingsPicker-DGWN1LQc.js → BindingsPicker-FZfhZr5O.js} +2 -2
- package/dist/{BindingsTable-7NJP2jT6.js → BindingsTable-Bk2770OV.js} +6 -6
- package/dist/ClosingDraftView-D9CnCwak.js +772 -0
- package/dist/{ClosingTemplateView-9s7vmwaT.js → ClosingTemplateView-DkpHmTtx.js} +32 -31
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DjBiov5r.js +283 -0
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CBC214tP.js} +2 -2
- package/dist/{FmMultiselectDialog-7hok9sJP.js → FmMultiselectDialog-CK6xwOeG.js} +128 -124
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-IFTMUhET.js +329 -0
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-D0otwOX8.js} +1 -1
- package/dist/{IngredientGroupView-C3maHTCg.js → IngredientGroupView-D5XtVfIQ.js} +12 -11
- package/dist/IngredientsView-c7WnQiTv.js +1666 -0
- package/dist/{IntegrationView-gO4h89Wj.js → IntegrationView-CHkhMxVM.js} +50 -50
- package/dist/{InventoryBindingForm-dh3GeyG-.js → InventoryBindingForm-BUZ9MS5V.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-YIRre_Km.js} +13 -13
- package/dist/{InventoryBindingSummary-BPoPcEoe.js → InventoryBindingSummary-BUi0mjeC.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CpYtHPFH.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js → PremiumBadge.vue_vue_type_script_setup_true_lang-D8IH1X1o.js} +2 -2
- package/dist/{PurchaseOrderPrintPreview-Dix_fIoo.js → PurchaseOrderPrintPreview-BLuoVz5N.js} +1 -1
- package/dist/ReceiveRequestView-BNM5JdQO.js +4165 -0
- package/dist/{RecipeView-C4-a4IEW.js → RecipeView-DxRumcLY.js} +11 -10
- package/dist/{StockView-Du2txrIP.js → StockView-CZyeg3sX.js} +1356 -1457
- package/dist/{SupplierView-D_09FbQh.js → SupplierView-C2XLbf27.js} +2352 -783
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BQG6UzUU.js +1229 -0
- package/dist/{TransferTemplateView-j3CRy6Lc.js → TransferTemplateView-BCxZCU0i.js} +307 -307
- package/dist/{UnitView-BXw2Vwq1.js → UnitView-uGpE4txg.js} +81 -80
- package/dist/{WarehouseView-CKamiETC.js → WarehouseView-DvQVmixr.js} +25 -24
- package/dist/api/bill.d.ts +2 -2
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/api/closing.d.ts +1 -0
- package/dist/api/netsuite.d.ts +70 -0
- package/dist/{app-GUbzqEtW.js → app-BaOENyRY.js} +3425 -3343
- package/dist/app.d.ts +3 -0
- package/dist/app.js +1 -1
- package/dist/components/FmMinMaxInputRules.d.ts +4 -1
- package/dist/components/row-action.enum.d.ts +1 -0
- package/dist/{date2-CLE9fB2R.js → date2-CfGU3sHq.js} +1 -1
- package/dist/{dayjs.min-CY1d38w7.js → dayjs.min-BMk-E1IO.js} +17 -17
- package/dist/{decimal-SIjO6Mjw.js → decimal-BkLhxOFS.js} +1 -1
- package/dist/{defineDeepModel-l40rX7kr.js → defineDeepModel-Cy-_HBnw.js} +1 -1
- package/dist/{feature-BXruKUhX.js → feature-GoxrdjJJ.js} +23 -9
- package/dist/form-mode.enum-BKiNVH6A.js +4 -0
- package/dist/{format-time-from-id-CcFsBXmk.js → format-time-from-id-96hwVl9P.js} +1 -1
- package/dist/format-unit-display-Cp0DBbM8.js +1217 -0
- package/dist/{fuzzy-CVOV9zJc.js → fuzzy-CBGiL1wK.js} +1 -1
- package/dist/index-0HEhOwKT.js +12087 -0
- package/dist/{index-BX5KZXhI.js → index-CoL8wxbn.js} +126 -122
- package/dist/{index-m9e9nYfl.js → index-S7yfliEo.js} +1 -1
- package/dist/netsuite-D3VPLW8O.js +225 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/{row-action.enum-PMKMRrZR.js → row-action.enum-7rGLGZ5v.js} +10 -5
- package/dist/{rules-DlnN8IP3.js → rules-DxLLla7a.js} +40 -35
- package/dist/stock-BbFKtx1y.js +111 -0
- package/dist/stores/feature.d.ts +2 -0
- package/dist/stores/integration/netsuite.d.ts +81 -0
- package/dist/stores/inventory.d.ts +1 -4
- package/dist/style.css +1 -1
- package/dist/{supplier-B21WlSAM.js → supplier-gGovyyjr.js} +22 -22
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-D3x6xj2O.js → use-inventory-binding-dialog-DIBMf_9-.js} +2 -2
- package/dist/{use-template-enabled-locations-2-z-b-UXef.js → use-template-enabled-locations-2-Bof9JMYI.js} +2 -2
- package/dist/views/closing-draft/ClosingDraftView.vue.d.ts +2 -0
- package/dist/views/closing-draft/components/closing-draft-action/ClosingDraftAction.vue.d.ts +22 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +447 -0
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +22 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +2601 -0
- package/dist/views/closing-draft/helpers/draft-status-to-class-name.helper.d.ts +1 -0
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +24 -192
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +24 -192
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +40 -40
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -0
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +63 -63
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +63 -63
- package/dist/views/receive-request/helper/check-netsuite-subsidiary.helper.d.ts +1 -0
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +8 -8
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +96 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +96 -96
- package/dist/{xlsx-6mM1eNiL.js → xlsx-DOnDmayp.js} +1 -1
- package/dist/{xlsx.util-BLftcF4q.js → xlsx.util-BqsQd9YP.js} +1 -1
- package/package.json +3 -3
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +0 -267
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +0 -326
- package/dist/IngredientsView-DCR3IBkR.js +0 -1613
- package/dist/ReceiveRequestView-DdPiYb2P.js +0 -4082
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +0 -1144
- package/dist/format-unit-display-DEKg8cJm.js +0 -1198
- package/dist/index-CVsyOEb1.js +0 -10545
- package/dist/netsuite-DAKRv7zr.js +0 -146
- package/dist/normalizeArguments-DP7Hrren.js +0 -1552
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
import { defineComponent as oe, mergeModels as O, useModel as se, computed as v, ref as P, watch as z, inject as ie, resolveComponent as b, openBlock as f, createElementBlock as y, createElementVNode as u, createVNode as M, withCtx as h, renderSlot as T, normalizeClass as V, toDisplayString as F, withDirectives as le, vModelText as ae, createCommentVNode as q, createTextVNode as ue, createBlock as W, Fragment as re, renderList as me } from "vue";
|
|
2
|
+
import { F as I } from "./index-CoL8wxbn.js";
|
|
3
|
+
import { I as k, g as L, c as ce, a as g, p as de, t as pe, b as fe, m as ve, n as be, u as ye } from "./rules-DxLLla7a.js";
|
|
4
|
+
import "@feedmepos/ui-library";
|
|
5
|
+
function E() {
|
|
6
|
+
return {
|
|
7
|
+
amount: I.reset()
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function H() {
|
|
11
|
+
return function(d) {
|
|
12
|
+
return k()(d.amountAsString);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
function Ve(l) {
|
|
16
|
+
return function(t) {
|
|
17
|
+
return k()(t.amountAsString) !== !0 ? !0 : +t.amountAsString < l ? `Must be at least ${l}` : !0;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function Le(l) {
|
|
21
|
+
return function(t) {
|
|
22
|
+
return k()(t.amountAsString) !== !0 ? !0 : +t.amountAsString > l ? `Must be at most ${l}` : !0;
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function G(l, d = !1) {
|
|
26
|
+
return function(r) {
|
|
27
|
+
const s = H()(r);
|
|
28
|
+
if (s != !0)
|
|
29
|
+
return d ? s : !0;
|
|
30
|
+
const x = typeof l == "number" ? l : L(l, r.modelValue.measurement);
|
|
31
|
+
return ce(+r.amountAsString).precision > x ? `Cannot exceed precision more than ${g({
|
|
32
|
+
amount: 1,
|
|
33
|
+
precision: x
|
|
34
|
+
})}` : !0;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
function $e(l) {
|
|
38
|
+
const d = de(l);
|
|
39
|
+
return function(r) {
|
|
40
|
+
return d(r.modelValue.amount);
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
const Me = { class: "flex flex-col" }, ge = { class: "flex flex-col" }, he = { class: "flex-1" }, Fe = { class: "flex items-center gap-4" }, xe = { class: "flex-1 flex gap-4" }, Ae = { class: "shrink-0 grow basis-2/5" }, _e = {
|
|
44
|
+
key: 0,
|
|
45
|
+
class: "text-fm-color-typo-secondary"
|
|
46
|
+
}, Pe = {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: "line-clamp-1 text-ellipsis break-all"
|
|
49
|
+
}, Ie = { class: "flex items-center gap-4" }, ke = { class: "line-clamp-1 text-ellipsis break-all" }, Be = { class: "max-w-[200px] flex flex-col gap-[1px]" }, De = {
|
|
50
|
+
key: 1,
|
|
51
|
+
class: "flex flex-col gap-4 pl-8 shrink-0"
|
|
52
|
+
}, Re = {
|
|
53
|
+
class: "flex items-center",
|
|
54
|
+
style: { "pointer-events": "none" }
|
|
55
|
+
}, Ue = {
|
|
56
|
+
class: "flex items-center",
|
|
57
|
+
style: { "pointer-events": "none" }
|
|
58
|
+
}, je = /* @__PURE__ */ oe({
|
|
59
|
+
__name: "FmUnitInput",
|
|
60
|
+
props: /* @__PURE__ */ O({
|
|
61
|
+
modelValue: {},
|
|
62
|
+
unit: {},
|
|
63
|
+
rules: {},
|
|
64
|
+
zIndex: {},
|
|
65
|
+
applyDefaultRules: { type: Boolean },
|
|
66
|
+
placement: {},
|
|
67
|
+
separator: {},
|
|
68
|
+
precision: {},
|
|
69
|
+
convertAmountOnChangeUnit: { type: Boolean },
|
|
70
|
+
formatMinimumPrecision: {},
|
|
71
|
+
disableUnit: { type: Boolean },
|
|
72
|
+
stepperOnly: { type: Boolean },
|
|
73
|
+
stepper: {},
|
|
74
|
+
placeholder: {},
|
|
75
|
+
minLength: {},
|
|
76
|
+
maxLength: {},
|
|
77
|
+
inputmode: {},
|
|
78
|
+
type: {},
|
|
79
|
+
readonly: { type: Boolean },
|
|
80
|
+
labelMark: {},
|
|
81
|
+
prependIcon: {},
|
|
82
|
+
appendIcon: {},
|
|
83
|
+
showValidBorder: { type: Boolean },
|
|
84
|
+
labelInfo: {},
|
|
85
|
+
showWordCount: { type: Boolean },
|
|
86
|
+
invalid: { type: Boolean },
|
|
87
|
+
autofocus: { type: Boolean },
|
|
88
|
+
formatter: { type: Function },
|
|
89
|
+
decimal: {},
|
|
90
|
+
datalist: {},
|
|
91
|
+
shiftDatalist: { type: Boolean },
|
|
92
|
+
datalistMaxHeight: {},
|
|
93
|
+
datalistMinHeight: {},
|
|
94
|
+
offsetDatalist: {},
|
|
95
|
+
datalistPlacement: {},
|
|
96
|
+
datalistZIndex: {},
|
|
97
|
+
datalistWidth: {},
|
|
98
|
+
label: {},
|
|
99
|
+
disabled: { type: Boolean },
|
|
100
|
+
focused: { type: Boolean },
|
|
101
|
+
helperText: {},
|
|
102
|
+
helperState: {}
|
|
103
|
+
}, {
|
|
104
|
+
modelValue: {},
|
|
105
|
+
modelModifiers: {}
|
|
106
|
+
}),
|
|
107
|
+
emits: /* @__PURE__ */ O(["update:amount", "update:measurement"], ["update:modelValue"]),
|
|
108
|
+
setup(l, { emit: d }) {
|
|
109
|
+
const t = l, r = d, s = se(l, "modelValue"), x = k(), B = v(() => {
|
|
110
|
+
var n;
|
|
111
|
+
return L(t.unit, (n = s.value) == null ? void 0 : n.measurement);
|
|
112
|
+
}), c = P((() => {
|
|
113
|
+
var o;
|
|
114
|
+
const e = ((o = s.value) == null ? void 0 : o.amount) ?? I.reset(), n = be(e), i = t.formatMinimumPrecision ?? n.precision, a = ye(n, i);
|
|
115
|
+
return g(a);
|
|
116
|
+
})());
|
|
117
|
+
z(c, (e) => {
|
|
118
|
+
const n = x(e), i = t.precision ?? B.value, o = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > i ? t.formatMinimumPrecision : i;
|
|
119
|
+
n == !0 && (s.value = {
|
|
120
|
+
...s.value,
|
|
121
|
+
amount: pe(+e, o)
|
|
122
|
+
}), r("update:amount", e);
|
|
123
|
+
});
|
|
124
|
+
const J = Symbol.for("fm:form-state"), D = ie(J, null), A = v(() => t.disabled ?? (D == null ? void 0 : D.getDisabled()) ?? !1), K = P(), R = P(!1), $ = P(!1), Q = v(() => R.value || $.value), X = v(() => {
|
|
125
|
+
var a;
|
|
126
|
+
const i = [...t.unit.measurements.filter((o) => !o.name.toLocaleLowerCase().includes("inactive")).filter((o) => o.abbrev !== t.unit.abbrev || +g(o.conversion) != 1).groupBy(
|
|
127
|
+
(o) => `${o.abbrev}${g(o.conversion)}`
|
|
128
|
+
).values()].map((o) => o[0]).flat();
|
|
129
|
+
return [
|
|
130
|
+
{
|
|
131
|
+
label: (a = t.unit) == null ? void 0 : a.abbrev,
|
|
132
|
+
value: null
|
|
133
|
+
},
|
|
134
|
+
...i.map((o) => ({
|
|
135
|
+
label: o.abbrev,
|
|
136
|
+
value: o.id
|
|
137
|
+
}))
|
|
138
|
+
];
|
|
139
|
+
}), U = v({
|
|
140
|
+
get() {
|
|
141
|
+
var e, n;
|
|
142
|
+
return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.id) ?? null;
|
|
143
|
+
},
|
|
144
|
+
set(e) {
|
|
145
|
+
if (e == null)
|
|
146
|
+
s.value = {
|
|
147
|
+
...s.value ?? E(),
|
|
148
|
+
measurement: null
|
|
149
|
+
}, r("update:measurement", null);
|
|
150
|
+
else {
|
|
151
|
+
const n = t.unit.measurements.find((i) => i.id === e) ?? null;
|
|
152
|
+
s.value = {
|
|
153
|
+
...s.value ?? E(),
|
|
154
|
+
measurement: n
|
|
155
|
+
}, r("update:measurement", n);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
z(U, (e, n) => {
|
|
160
|
+
var m;
|
|
161
|
+
if (!t.convertAmountOnChangeUnit)
|
|
162
|
+
return;
|
|
163
|
+
const i = ((m = s.value) == null ? void 0 : m.amount) ?? I.reset(), a = t.unit.measurements.find((_) => _.id === n) ?? null, o = t.unit.measurements.find((_) => _.id === e) ?? null, p = a ? fe(i, a.conversion) : i, w = o ? ve(p, o.conversion) : p, N = L(t.unit, o), S = I.convertPrecision({
|
|
164
|
+
value: w,
|
|
165
|
+
precision: N
|
|
166
|
+
});
|
|
167
|
+
c.value = g(S);
|
|
168
|
+
});
|
|
169
|
+
const C = v(() => {
|
|
170
|
+
var e, n;
|
|
171
|
+
return ((n = (e = s.value) == null ? void 0 : e.measurement) == null ? void 0 : n.abbrev) ?? t.unit.abbrev;
|
|
172
|
+
}), Y = v(
|
|
173
|
+
() => {
|
|
174
|
+
var e;
|
|
175
|
+
return ((e = t.rules) == null ? void 0 : e.map(
|
|
176
|
+
(n) => (i) => typeof n == "function" ? n(i) : n
|
|
177
|
+
)) ?? [];
|
|
178
|
+
}
|
|
179
|
+
), ee = v(() => [...t.applyDefaultRules ? [
|
|
180
|
+
H(),
|
|
181
|
+
typeof t.precision == "number" ? G(t.precision) : G(t.unit)
|
|
182
|
+
] : [], ...Y.value]);
|
|
183
|
+
function j(e) {
|
|
184
|
+
const n = t.precision ?? B.value, a = typeof t.formatMinimumPrecision == "number" && t.formatMinimumPrecision > n ? t.formatMinimumPrecision : n, o = e.toFixed(a), p = o.includes(".") ? o.replace(/0+$/, "") : o;
|
|
185
|
+
return p.endsWith(".") ? p.slice(0, p.length - 1) : p;
|
|
186
|
+
}
|
|
187
|
+
function te() {
|
|
188
|
+
if (!t.stepper)
|
|
189
|
+
return;
|
|
190
|
+
const e = +c.value + +g(t.stepper);
|
|
191
|
+
c.value = j(e);
|
|
192
|
+
}
|
|
193
|
+
function ne() {
|
|
194
|
+
if (!t.stepper)
|
|
195
|
+
return;
|
|
196
|
+
const e = +c.value - +g(t.stepper);
|
|
197
|
+
c.value = j(e);
|
|
198
|
+
}
|
|
199
|
+
return (e, n) => {
|
|
200
|
+
const i = b("FmLabel"), a = b("FmIcon"), o = b("FmMenuItem"), p = b("FmMenu"), w = b("FmTooltip"), N = b("FmField"), S = b("FmFormGroup");
|
|
201
|
+
return f(), y("div", Me, [
|
|
202
|
+
u("div", ge, [
|
|
203
|
+
u("div", he, [
|
|
204
|
+
M(i, {
|
|
205
|
+
label: e.label,
|
|
206
|
+
disabled: e.disabled,
|
|
207
|
+
required: e.labelMark === "required",
|
|
208
|
+
optional: e.labelMark === "optional"
|
|
209
|
+
}, null, 8, ["label", "disabled", "required", "optional"])
|
|
210
|
+
]),
|
|
211
|
+
M(N, { focused: Q.value }, {
|
|
212
|
+
default: h(() => [
|
|
213
|
+
u("div", Fe, [
|
|
214
|
+
T(e.$slots, "prepend"),
|
|
215
|
+
u("div", xe, [
|
|
216
|
+
u("div", Ae, [
|
|
217
|
+
e.stepperOnly ? (f(), y("span", {
|
|
218
|
+
key: 0,
|
|
219
|
+
class: V({
|
|
220
|
+
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
221
|
+
"text-fm-color-typo-primary": !A.value,
|
|
222
|
+
"text-fm-color-typo-disabled": A.value
|
|
223
|
+
})
|
|
224
|
+
}, F(c.value), 3)) : le((f(), y("input", {
|
|
225
|
+
key: 1,
|
|
226
|
+
type: "text",
|
|
227
|
+
ref_key: "inputRef",
|
|
228
|
+
ref: K,
|
|
229
|
+
onFocus: n[0] || (n[0] = () => R.value = !0),
|
|
230
|
+
onBlur: n[1] || (n[1] = () => R.value = !1),
|
|
231
|
+
"onUpdate:modelValue": n[2] || (n[2] = (m) => c.value = m),
|
|
232
|
+
class: V({
|
|
233
|
+
"fm-text-field--input fm-typo-en-body-lg-400": !0,
|
|
234
|
+
"text-fm-color-typo-primary": !A.value,
|
|
235
|
+
"text-fm-color-typo-disabled": A.value
|
|
236
|
+
})
|
|
237
|
+
}, null, 34)), [
|
|
238
|
+
[ae, c.value]
|
|
239
|
+
])
|
|
240
|
+
]),
|
|
241
|
+
e.separator ? (f(), y("div", _e, F(e.separator), 1)) : q("", !0),
|
|
242
|
+
u("div", {
|
|
243
|
+
class: V([e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"])
|
|
244
|
+
}, [
|
|
245
|
+
M(w, { "z-index": 51 }, {
|
|
246
|
+
content: h(() => [
|
|
247
|
+
ue(F(C.value), 1)
|
|
248
|
+
]),
|
|
249
|
+
default: h(() => [
|
|
250
|
+
e.disableUnit ? (f(), y("div", Pe, F(C.value), 1)) : (f(), W(p, {
|
|
251
|
+
key: 1,
|
|
252
|
+
onMenuChanged: n[3] || (n[3] = (m) => $.value = m),
|
|
253
|
+
"z-index": 500,
|
|
254
|
+
placement: e.placement,
|
|
255
|
+
disabled: e.disabled
|
|
256
|
+
}, {
|
|
257
|
+
"menu-button": h(() => [
|
|
258
|
+
u("div", Ie, [
|
|
259
|
+
u("div", ke, F(C.value), 1),
|
|
260
|
+
M(a, { name: "keyboard_arrow_down" })
|
|
261
|
+
])
|
|
262
|
+
]),
|
|
263
|
+
default: h(() => [
|
|
264
|
+
u("div", Be, [
|
|
265
|
+
(f(!0), y(re, null, me(X.value, (m) => (f(), W(o, {
|
|
266
|
+
key: m.value ?? void 0,
|
|
267
|
+
label: m.label,
|
|
268
|
+
"model-value": m.value == U.value,
|
|
269
|
+
onClick: (_) => U.value = m.value
|
|
270
|
+
}, null, 8, ["label", "model-value", "onClick"]))), 128))
|
|
271
|
+
])
|
|
272
|
+
]),
|
|
273
|
+
_: 1
|
|
274
|
+
}, 8, ["placement", "disabled"]))
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
})
|
|
278
|
+
], 2),
|
|
279
|
+
e.stepper ? (f(), y("div", De, [
|
|
280
|
+
u("div", {
|
|
281
|
+
class: "w-24 h-12 flex items-center justify-center fm-corner-radius-sm bg-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-200",
|
|
282
|
+
onClick: te
|
|
283
|
+
}, [
|
|
284
|
+
u("div", Re, [
|
|
285
|
+
M(a, {
|
|
286
|
+
name: "expand_less",
|
|
287
|
+
size: "md"
|
|
288
|
+
})
|
|
289
|
+
])
|
|
290
|
+
]),
|
|
291
|
+
u("div", {
|
|
292
|
+
class: "w-24 h-12 flex items-center justify-center fm-corner-radius-sm bg-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-200",
|
|
293
|
+
onClick: ne
|
|
294
|
+
}, [
|
|
295
|
+
u("div", Ue, [
|
|
296
|
+
M(a, {
|
|
297
|
+
name: "expand_more",
|
|
298
|
+
size: "md"
|
|
299
|
+
})
|
|
300
|
+
])
|
|
301
|
+
])
|
|
302
|
+
])) : q("", !0)
|
|
303
|
+
]),
|
|
304
|
+
T(e.$slots, "append")
|
|
305
|
+
])
|
|
306
|
+
]),
|
|
307
|
+
_: 3
|
|
308
|
+
}, 8, ["focused"])
|
|
309
|
+
]),
|
|
310
|
+
M(S, {
|
|
311
|
+
class: "flex-1",
|
|
312
|
+
"model-value": { modelValue: s.value, amountAsString: String(c.value) },
|
|
313
|
+
info: e.labelInfo,
|
|
314
|
+
rules: ee.value,
|
|
315
|
+
"helper-text": e.helperText,
|
|
316
|
+
"helper-state": e.helperState
|
|
317
|
+
}, null, 8, ["model-value", "info", "rules", "helper-text", "helper-state"])
|
|
318
|
+
]);
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
});
|
|
322
|
+
export {
|
|
323
|
+
Ve as F,
|
|
324
|
+
je as _,
|
|
325
|
+
Le as a,
|
|
326
|
+
$e as b,
|
|
327
|
+
H as c,
|
|
328
|
+
G as d
|
|
329
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as s, createElementBlock as n, createElementVNode as r, toDisplayString as o, unref as l, Fragment as d, renderList as x } from "vue";
|
|
2
|
-
import { a, b as y } from "./rules-
|
|
2
|
+
import { a, b as y } from "./rules-DxLLla7a.js";
|
|
3
3
|
import { useI18n as _ } from "@feedmepos/mf-common";
|
|
4
4
|
const v = { class: "flex flex-col" }, b = { 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" }, g = { class: "flex-1 py-8 px-16" }, h = {
|
|
5
5
|
class: "flex-0 py-8 px-16",
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { ref as C, computed as I, defineComponent as Y, resolveComponent as S, openBlock as M, createBlock as O, withCtx as R, createElementVNode as x, createVNode as g, unref as l, createElementBlock as ee, toDisplayString as H, createTextVNode as te, watch as ue, isRef as ce, normalizeClass as de, normalizeStyle as me, createSlots as pe, Teleport as fe, normalizeProps as ve, guardReactiveProps as ge } from "vue";
|
|
2
|
-
import { a as J, c as B, h as oe, u as ye } from "./app-
|
|
2
|
+
import { a as J, c as B, h as oe, u as ye } from "./app-BaOENyRY.js";
|
|
3
3
|
import { useDialog as le, useSnackbar as Z, useProxiedModel as be, useBreakpoints as _e } from "@feedmepos/ui-library";
|
|
4
|
-
import { F as h
|
|
4
|
+
import { F as h } from "./form-mode.enum-BKiNVH6A.js";
|
|
5
5
|
import { useI18n as W } from "@feedmepos/mf-common";
|
|
6
|
-
import { defineStore as ie, storeToRefs as
|
|
6
|
+
import { defineStore as ie, storeToRefs as ne } from "pinia";
|
|
7
|
+
import { D as se, R as Q } from "./row-action.enum-7rGLGZ5v.js";
|
|
7
8
|
import { c as xe, _ as ke, F as ae } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
|
|
8
|
-
import { u as he, _ as we, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-
|
|
9
|
+
import { u as he, _ as we, a as Se } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CBC214tP.js";
|
|
9
10
|
import "./array-hChJVZLE.js";
|
|
10
|
-
import { d as Fe } from "./defineDeepModel-
|
|
11
|
-
import { R as Ie, A as Ce } from "./rules-
|
|
12
|
-
import { F as re } from "./FmMultiselectDialog-
|
|
11
|
+
import { d as Fe } from "./defineDeepModel-Cy-_HBnw.js";
|
|
12
|
+
import { R as Ie, A as Ce } from "./rules-DxLLla7a.js";
|
|
13
|
+
import { F as re } from "./FmMultiselectDialog-CK6xwOeG.js";
|
|
13
14
|
const X = ie(
|
|
14
15
|
"ingredientGroupactions",
|
|
15
16
|
function() {
|
|
@@ -131,7 +132,7 @@ const X = ie(
|
|
|
131
132
|
header: "",
|
|
132
133
|
cell(f) {
|
|
133
134
|
return xe(
|
|
134
|
-
[
|
|
135
|
+
[se[Q.Edit], se[Q.Delete]],
|
|
135
136
|
(y) => {
|
|
136
137
|
p(y, f.row.original);
|
|
137
138
|
}
|
|
@@ -497,7 +498,7 @@ const X = ie(
|
|
|
497
498
|
}, 8, ["model-value", "header"]);
|
|
498
499
|
};
|
|
499
500
|
}
|
|
500
|
-
}), Le = { class: "flex flex-col py-8" }, ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" },
|
|
501
|
+
}), Le = { class: "flex flex-col py-8" }, ze = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ne = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ot = /* @__PURE__ */ Y({
|
|
501
502
|
__name: "IngredientGroupView",
|
|
502
503
|
setup(U) {
|
|
503
504
|
const c = J(), w = I(() => c.skuGroups), o = ye(), { t: r } = W(), {
|
|
@@ -505,7 +506,7 @@ const X = ie(
|
|
|
505
506
|
updateIngredientGroup: p,
|
|
506
507
|
importIngredientGroups: v,
|
|
507
508
|
exportIngredientGroups: f
|
|
508
|
-
} = X(), { columnDefs: y, loading: A } =
|
|
509
|
+
} = X(), { columnDefs: y, loading: A } = ne(Ae()), { ingredientGroupDialogProps: b } = ne(X());
|
|
509
510
|
function d(D) {
|
|
510
511
|
switch (D) {
|
|
511
512
|
case "add":
|
|
@@ -606,5 +607,5 @@ const X = ie(
|
|
|
606
607
|
}
|
|
607
608
|
});
|
|
608
609
|
export {
|
|
609
|
-
|
|
610
|
+
ot as default
|
|
610
611
|
};
|