@feedmepos/mf-inventory-portal 1.2.61-dev.1 → 1.2.61
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-Dj4TFhg1.js → App-BqScGtJx.js} +78 -82
- package/dist/{ApprovalView-Cpbfph-H.js → ApprovalView-BFdlYIot.js} +5 -5
- package/dist/{BindingsDialog-CUbU9tih.js → BindingsDialog-Dvmrms77.js} +5 -5
- package/dist/{BindingsPicker-CMlAGOJT.js → BindingsPicker-fPVSXv-h.js} +3 -3
- package/dist/{BindingsTable-DvOE5QM2.js → BindingsTable-CnUa8VOi.js} +5 -5
- package/dist/{ClosingDraftView-DKv-ehO_.js → ClosingDraftView-10BcpWkm.js} +216 -217
- package/dist/{ClosingHistoryView-DIl78iH9.js → ClosingHistoryView-zLh0HCIb.js} +36 -36
- package/dist/{ClosingTemplateView-DPDh_geQ.js → ClosingTemplateView-BFupX87V.js} +14 -14
- package/dist/{DeliveryOrderPrintPreview-Bi3xgagw.js → DeliveryOrderPrintPreview-BLBqmOjw.js} +7 -7
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B_5_SxUn.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DN8ziFA_.js} +20 -20
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B3Kl8YBw.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DJT_7Uus.js} +2 -2
- package/dist/{FmMultiselectDialog-1IUxEPwt.js → FmMultiselectDialog-B5paZk6T.js} +16 -16
- package/dist/{FmMultiselectDialog-BSOTemHV.js → FmMultiselectDialog-DmnYEmN1.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BMK8Az4J.js → FmUnitInput.vue_vue_type_script_setup_true_lang-MW749j29.js} +22 -23
- package/dist/{ImportView-CkitDDEU.js → ImportView-BsI1_unJ.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-DZUQavPo.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-D8hvH-4n.js} +1 -1
- package/dist/{IngredientGroupView-ogDZwQFL.js → IngredientGroupView-BALVTSwF.js} +5 -5
- package/dist/{IngredientsView-B5AWPQhS.js → IngredientsView-C-sauieO.js} +24 -25
- package/dist/{IntegrationView-DIx6B_wR.js → IntegrationView-GG2E4Yrl.js} +17 -18
- package/dist/{InventoryBindingForm-CAs2PaKF.js → InventoryBindingForm-DCSBFj6b.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-D62U_Ewm.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-4_i25unG.js} +16 -17
- package/dist/{InventoryBindingSummary-DNWMJUDR.js → InventoryBindingSummary-6dFJPewB.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-flGJ-4xe.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CU9mgYbv.js} +5 -5
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-CwcKHn69.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DC1HpuMm.js} +2 -2
- package/dist/{PublishView-IYCGQZF7.js → PublishView-DO7k1AeP.js} +8 -8
- package/dist/{PurchaseOrderPrintPreview-CQ-J1uJn.js → PurchaseOrderPrintPreview-C3VqOLCi.js} +11 -11
- package/dist/ReceiveRequestView-CpgLQtbw.js +2806 -0
- package/dist/RecipeView-C2D7FdzN.js +646 -0
- package/dist/{StockView-F7oGArF7.js → StockView-CtC3ldc6.js} +105 -106
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-j6pS_g4o.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cj6cVmd0.js} +1 -1
- package/dist/{SupplierView-DaDXVRF6.js → SupplierView-DKFtc22j.js} +19 -20
- package/dist/{SurchargeView-CBkF-szL.js → SurchargeView-B-EYMp6w.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-BDxbVt07.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-CDeeFvnm.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DnoutmMc.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CH3hjFS8.js} +1 -1
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-rAyYuhku.js +3493 -0
- package/dist/{TransferTemplateView-BlyMl_7M.js → TransferTemplateView-FeC34QoJ.js} +21 -22
- package/dist/{UnitView-JRqgYWbI.js → UnitView-BoJisnXd.js} +10 -11
- package/dist/{WarehouseView-Cb5Dj6f4.js → WarehouseView-s-xF6xJ0.js} +5 -5
- package/dist/{WastageTemplateView-DoyXkHM6.js → WastageTemplateView-BQBlHZLh.js} +14 -14
- package/dist/api/inventory.d.ts +36 -126
- package/dist/api/netsuite.d.ts +1 -8
- package/dist/{app-DMbbrEyL.js → app-_4kRbuQl.js} +7147 -8148
- package/dist/app.d.ts +0 -228
- package/dist/app.js +1 -1
- package/dist/{closing-template-B68c4BCg.js → closing-template-BBWYKm_X.js} +1 -1
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -37
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +0 -14
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -16
- package/dist/{date2-WSrIZrGN.js → date2-Cd93SZu4.js} +1 -1
- package/dist/{dayjs.min-BEzS3oNC.js → dayjs.min-DeHn_Fz-.js} +16 -16
- package/dist/{defineDeepModel-B7GuNHyt.js → defineDeepModel-DUOLQh1E.js} +1 -1
- package/dist/{duplicate-template-BTdZ25aR.js → duplicate-template-BgpMF-fd.js} +1 -1
- package/dist/{feature-DJFFmYSS.js → feature-DqGkM6Yx.js} +1439 -1334
- package/dist/{format-time-from-id-BEqcrmTR.js → format-time-from-id-BkH4swoc.js} +1 -1
- package/dist/{format-unit-display-DIqyPFuN.js → format-unit-display-rkrD3WLD.js} +15 -16
- package/dist/{import-export.helper-Dnvx2Wa0.js → import-export.helper-C8Q4AMQx.js} +15 -16
- package/dist/{index-dh2P5FKl.js → index-B0WTs-3a.js} +1412 -1471
- package/dist/{index-J3wFLjDN.js → index-B3m_9m2a.js} +3 -3
- package/dist/{index-BNBtrozQ.js → index-O5M93j6z.js} +1 -1
- package/dist/{lodash-DoqYeksT.js → lodash-Dj6GdEkm.js} +1 -1
- package/dist/{netsuite-C87QvoFY.js → netsuite-DpQxb3vH.js} +60 -60
- package/dist/{purchase-order-template-CbRmEHxi.js → purchase-order-template-DKuo07gT.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/rules-D6o4zK8x.js +327 -0
- package/dist/{stock-DrdiXQFX.js → stock-D7HQf4-H.js} +1 -1
- package/dist/stock-DLFjfcAv.js +75 -0
- package/dist/stores/feature.d.ts +0 -2
- package/dist/stores/integration/netsuite.d.ts +1 -8
- package/dist/stores/inventory.d.ts +30 -119
- package/dist/{supplier-DWophRmk.js → supplier-B3kE2tbF.js} +2 -2
- package/dist/{surcharge-Ds9TtpDs.js → surcharge-Cc9vownX.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-ingredient-select-dialog-CPugamev.js → use-ingredient-select-dialog-MnUTm-3P.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Vj7T-h-w.js → use-inventory-binding-dialog-_J9LNiGo.js} +2 -2
- package/dist/{use-template-enabled-locations-2-DfKY5avH.js → use-template-enabled-locations-2-B9gbuIPM.js} +2 -2
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -64
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +24 -192
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -8
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +12 -96
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +12 -96
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +18 -18
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +0 -14
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +4 -32
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -28
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -8
- package/dist/views/integration/components/netsuite/InventoryTransferIngredientTable.vue.d.ts +2 -16
- package/dist/views/receive-request/components/transfer-form/TransferFormWithController.vue.d.ts +5 -33
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -16
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +4 -32
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -8
- package/dist/views/receive-request/composables/use-process-purchase-order.d.ts +6 -41
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +36 -246
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +42 -287
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +0 -16
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +0 -1
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-dialog/TransferTemplateDialog.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-form/components/NetSuiteCustomCodeSelection.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +2 -16
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -8
- package/dist/views/transfer-template/composables/use-netsuite-custom-field.d.ts +3 -24
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +12 -96
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +12 -96
- package/dist/{vue-i18n-Td4-wYd2.js → vue-i18n-BvsTy4Fg.js} +535 -535
- package/dist/{xlsx-DFL__z5b.js → xlsx-BvjocXXw.js} +398 -398
- package/dist/{xlsx.util-Bi7Vb-wa.js → xlsx.util-D65Nsat4.js} +1 -1
- package/package.json +3 -3
- package/dist/ReceiveRequestView-NOIHVxoI.js +0 -2916
- package/dist/RecipeView-KZV269Yw.js +0 -1558
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-B_u8kuNh.js +0 -3354
- package/dist/UnitCostHistoryView-B6mco57v.js +0 -651
- package/dist/api/unit-cost-history.d.ts +0 -28
- package/dist/number-nN9jCKom.js +0 -232
- package/dist/rules-Dbz4JyZU.js +0 -98
- package/dist/stock-ChSl_QOD.js +0 -75
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -169
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingAlternative.vue.d.ts +0 -43
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryBindingRule.vue.d.ts +0 -25
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +0 -125
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventorySkuBindingV2Field.vue.d.ts +0 -129
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-alternative-table.d.ts +0 -30
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -4
- package/dist/views/unit-cost-history/UnitCostHistoryView.vue.d.ts +0 -2
- package/dist/views/unit-cost-history/components/UnitCostDetailsSideSheet.vue.d.ts +0 -19
- package/dist/views/unit-cost-history/components/UnitCostRecalculationDialog.vue.d.ts +0 -11
- package/dist/views/unit-cost-history/composables/use-unit-cost-history.d.ts +0 -65
package/dist/number-nN9jCKom.js
DELETED
|
@@ -1,232 +0,0 @@
|
|
|
1
|
-
import { y as a } from "./app-DMbbrEyL.js";
|
|
2
|
-
import "./dayjs.min-BEzS3oNC.js";
|
|
3
|
-
function l(n) {
|
|
4
|
-
function t(o, e = !0) {
|
|
5
|
-
const u = Math.round(Math.log10(o));
|
|
6
|
-
return isFinite(u) && u >= 0 ? Math.ceil(u) : e ? 0 : Math.floor(u);
|
|
7
|
-
}
|
|
8
|
-
function r(o) {
|
|
9
|
-
const e = o.conversion;
|
|
10
|
-
return i - e.precision + t(e.amount);
|
|
11
|
-
}
|
|
12
|
-
const i = n.precision;
|
|
13
|
-
return n.measurements.reduce((o, e) => {
|
|
14
|
-
const u = r(e);
|
|
15
|
-
return u > o ? u : o;
|
|
16
|
-
}, 0);
|
|
17
|
-
}
|
|
18
|
-
class c {
|
|
19
|
-
static toDouble(t) {
|
|
20
|
-
return t.amount / Math.pow(10, t.precision);
|
|
21
|
-
}
|
|
22
|
-
static multiplyDecimal(t, r) {
|
|
23
|
-
let i = t.amount * r.amount, o = i == 0 ? 0 : t.precision + r.precision, e = i.toString();
|
|
24
|
-
for (; e.length > 0 && e[e.length - 1] == "0" && o > 0; )
|
|
25
|
-
i = i / 10, o -= 1, e = i.toString();
|
|
26
|
-
return {
|
|
27
|
-
amount: i,
|
|
28
|
-
precision: o
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
static divide(t, r) {
|
|
32
|
-
return {
|
|
33
|
-
amount: Math.floor(t.amount / r),
|
|
34
|
-
precision: t.precision
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
/// Adds two decimals and returns result of any max precision from [left] or [right]
|
|
38
|
-
static addDecimal(t, r) {
|
|
39
|
-
const i = c.normalize([t, r]), o = i[0], e = i[1];
|
|
40
|
-
return {
|
|
41
|
-
amount: o.amount + e.amount,
|
|
42
|
-
precision: o.precision
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
/// Multiplies amount if new precision is higher or rounds amount if new precision is lower
|
|
46
|
-
///
|
|
47
|
-
/// e.g. 0.4 to 2 precision --> 0.40
|
|
48
|
-
/// 0.47 to 1 precision --> 0.5
|
|
49
|
-
/// 0.22 to 1 precision --> 0.0
|
|
50
|
-
static toPrecision(t, r) {
|
|
51
|
-
function i(e, u) {
|
|
52
|
-
let s = e.amount;
|
|
53
|
-
for (let m = e.precision; m < u; m++)
|
|
54
|
-
s *= 10;
|
|
55
|
-
return {
|
|
56
|
-
amount: s,
|
|
57
|
-
precision: u
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function o(e, u) {
|
|
61
|
-
let s = e.amount;
|
|
62
|
-
for (let m = e.precision; m > u; m--)
|
|
63
|
-
s /= 10;
|
|
64
|
-
return {
|
|
65
|
-
amount: Number(s.toFixed(0)),
|
|
66
|
-
precision: u
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
return t.precision == r ? t : t.precision < r ? i(t, r) : o(t, r);
|
|
70
|
-
}
|
|
71
|
-
static equal(t, r) {
|
|
72
|
-
const i = c.normalize([t, r]), o = i[0], e = i[1];
|
|
73
|
-
return o.amount == e.amount;
|
|
74
|
-
}
|
|
75
|
-
static normalize(t) {
|
|
76
|
-
const r = t.reduce(
|
|
77
|
-
(i, o) => Math.max(i, Math.floor(o.precision)),
|
|
78
|
-
0
|
|
79
|
-
);
|
|
80
|
-
return t.map((i) => c.toPrecision(i, r));
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
function N(n, t, r, i = !0) {
|
|
84
|
-
let o = {
|
|
85
|
-
...n
|
|
86
|
-
};
|
|
87
|
-
if (r) {
|
|
88
|
-
const e = typeof r == "string" ? t.measurements.find((s) => s.id === r) : r;
|
|
89
|
-
if (!e)
|
|
90
|
-
return "NaN";
|
|
91
|
-
const u = l(t);
|
|
92
|
-
return o.precision < u && (o = c.toPrecision(o, l(t))), o = c.divide(o, c.toDouble(e.conversion)), `${c.toDouble(o)} ${e.abbrev}`;
|
|
93
|
-
}
|
|
94
|
-
return i ? `${c.toDouble(o)} ${t.abbrev}` : c.toDouble(o);
|
|
95
|
-
}
|
|
96
|
-
function x(n, t) {
|
|
97
|
-
return a.convertPrecision({
|
|
98
|
-
value: n,
|
|
99
|
-
precision: t
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function M(n, t) {
|
|
103
|
-
return a.subtract([n, t]);
|
|
104
|
-
}
|
|
105
|
-
function j(n, t) {
|
|
106
|
-
return a.add([n, t]);
|
|
107
|
-
}
|
|
108
|
-
function y(n, t) {
|
|
109
|
-
return a.multiply([n, t]);
|
|
110
|
-
}
|
|
111
|
-
function D(n, t) {
|
|
112
|
-
return a.multiply([n, t]);
|
|
113
|
-
}
|
|
114
|
-
function h(n, t) {
|
|
115
|
-
const r = +p(n), i = +p(t);
|
|
116
|
-
return r / i;
|
|
117
|
-
}
|
|
118
|
-
function F(n, t) {
|
|
119
|
-
n = f(n), t = f(t);
|
|
120
|
-
const r = h(n, t);
|
|
121
|
-
return b(r);
|
|
122
|
-
}
|
|
123
|
-
function w(n, t) {
|
|
124
|
-
return n.precision >= t ? n : a.convertPrecision({ value: n, precision: t });
|
|
125
|
-
}
|
|
126
|
-
function f(n) {
|
|
127
|
-
if (n.amount === 0) return b(0);
|
|
128
|
-
const t = g(n.amount), r = n.precision - t;
|
|
129
|
-
return a.convertPrecision({ value: n, precision: Math.max(0, r) });
|
|
130
|
-
}
|
|
131
|
-
function p(n, t = !0) {
|
|
132
|
-
return t ? Number(n.amount / Math.pow(10, n.precision)).toFixed(n.precision) : Number(n.amount / Math.pow(10, n.precision)).toString();
|
|
133
|
-
}
|
|
134
|
-
function $(n, t) {
|
|
135
|
-
t = t ?? d(n);
|
|
136
|
-
const r = t, i = n.toFixed(r), o = i.includes(".") ? i.replace(/0+$/, "") : i;
|
|
137
|
-
return o.endsWith(".") ? o.slice(0, o.length - 1) : o;
|
|
138
|
-
}
|
|
139
|
-
function z(n, t = !1, r = 2) {
|
|
140
|
-
const i = Number(n.amount / Math.pow(10, n.precision)), o = i.toFixed(
|
|
141
|
-
Number.isInteger(i) ? 2 : Math.min(4, Math.max(2, r))
|
|
142
|
-
);
|
|
143
|
-
return t ? `${o} ${n.currency}` : n.currency === "MYR" ? `RM ${o}` : `${n.currency} ${o}`;
|
|
144
|
-
}
|
|
145
|
-
function v(n) {
|
|
146
|
-
return {
|
|
147
|
-
...n,
|
|
148
|
-
amount: Math.abs(n.amount)
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
function d(n) {
|
|
152
|
-
if (!isFinite(n)) return 0;
|
|
153
|
-
let t = 1, r = 0;
|
|
154
|
-
for (; Math.round(n * t) / t !== n; )
|
|
155
|
-
t *= 10, r++;
|
|
156
|
-
return r;
|
|
157
|
-
}
|
|
158
|
-
function b(n) {
|
|
159
|
-
const t = d(n);
|
|
160
|
-
return {
|
|
161
|
-
precision: t,
|
|
162
|
-
amount: n * 10 ** t
|
|
163
|
-
};
|
|
164
|
-
}
|
|
165
|
-
function S(n, t = 0, r = !1) {
|
|
166
|
-
let i = 0;
|
|
167
|
-
return Number.isNaN(Number(n)) || (r || Number(n) >= 0) && (i = Number(n)), {
|
|
168
|
-
amount: Number((i * 10 ** t).toFixed(0)),
|
|
169
|
-
precision: t
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
function g(n) {
|
|
173
|
-
const t = `${n}`, r = t.replace(/0*$/g, "");
|
|
174
|
-
return t.length - r.length;
|
|
175
|
-
}
|
|
176
|
-
function E(n, t) {
|
|
177
|
-
if (!t)
|
|
178
|
-
return n.precision;
|
|
179
|
-
const r = g(t.conversion.amount);
|
|
180
|
-
return n.precision - t.conversion.precision + r;
|
|
181
|
-
}
|
|
182
|
-
function k(n, t = {}) {
|
|
183
|
-
if (n == null)
|
|
184
|
-
throw new Error("Value cannot be null or undefined");
|
|
185
|
-
const { minPrecision: r = 2, maxPrecision: i = 2, locale: o = "en-US" } = t;
|
|
186
|
-
if (r > i)
|
|
187
|
-
throw new Error("minPrecision cannot be greater than maxPrecision");
|
|
188
|
-
let e = 0;
|
|
189
|
-
switch (typeof n) {
|
|
190
|
-
case "number": {
|
|
191
|
-
e = n;
|
|
192
|
-
break;
|
|
193
|
-
}
|
|
194
|
-
case "string": {
|
|
195
|
-
e = Number(n);
|
|
196
|
-
break;
|
|
197
|
-
}
|
|
198
|
-
case "object": {
|
|
199
|
-
if (n.amount === void 0 || n.precision === void 0)
|
|
200
|
-
throw new Error("Invalid AdjustmentAmount object");
|
|
201
|
-
e = c.toDouble(n);
|
|
202
|
-
break;
|
|
203
|
-
}
|
|
204
|
-
default:
|
|
205
|
-
throw new Error("Invalid value type");
|
|
206
|
-
}
|
|
207
|
-
return e.toLocaleString(o, {
|
|
208
|
-
minimumFractionDigits: r,
|
|
209
|
-
maximumFractionDigits: i
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
export {
|
|
213
|
-
c as F,
|
|
214
|
-
p as a,
|
|
215
|
-
f as b,
|
|
216
|
-
b as c,
|
|
217
|
-
z as d,
|
|
218
|
-
D as e,
|
|
219
|
-
N as f,
|
|
220
|
-
E as g,
|
|
221
|
-
d as h,
|
|
222
|
-
v as i,
|
|
223
|
-
y as j,
|
|
224
|
-
j as k,
|
|
225
|
-
x as l,
|
|
226
|
-
M as m,
|
|
227
|
-
$ as n,
|
|
228
|
-
F as o,
|
|
229
|
-
k as p,
|
|
230
|
-
S as t,
|
|
231
|
-
w as u
|
|
232
|
-
};
|
package/dist/rules-Dbz4JyZU.js
DELETED
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { a as u, g as d, c as f, b as m } from "./number-nN9jCKom.js";
|
|
2
|
-
import { d as b, b as p } from "./date2-WSrIZrGN.js";
|
|
3
|
-
function M() {
|
|
4
|
-
return function(e) {
|
|
5
|
-
return !!e || "Required";
|
|
6
|
-
};
|
|
7
|
-
}
|
|
8
|
-
function s(n) {
|
|
9
|
-
return n && typeof n == "object" && Object.prototype.hasOwnProperty.call(n, "amount") && Object.prototype.hasOwnProperty.call(n, "precision");
|
|
10
|
-
}
|
|
11
|
-
function A(n, e) {
|
|
12
|
-
const o = typeof n == "object" ? +u(n) : n;
|
|
13
|
-
function i(t) {
|
|
14
|
-
return Object.prototype.hasOwnProperty.call(t, "length");
|
|
15
|
-
}
|
|
16
|
-
return function(r) {
|
|
17
|
-
return s(r) && (r = +u(r)), Number.isFinite(+r) && (r = +r), i(r) ? r.length >= o ? !0 : typeof e == "function" ? e(r.length) : e ?? `Must be at least ${o}` : typeof r == "number" ? r >= o ? !0 : typeof e == "function" ? e(r) : e ?? `Must be at least ${o}` : `Cannot validate at least ${o}`;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function $(n) {
|
|
21
|
-
const e = typeof n == "object" ? +u(n) : n;
|
|
22
|
-
function o(i) {
|
|
23
|
-
return Object.prototype.hasOwnProperty.call(i, "length");
|
|
24
|
-
}
|
|
25
|
-
return function(t, r) {
|
|
26
|
-
return s(t) && (t = +u(t)), o(t) ? t.length > e ? !0 : typeof r == "function" ? r(t.length) : r ?? `Must be more than ${e}` : typeof t == "number" ? t > e ? !0 : typeof r == "function" ? r(t) : r ?? `Must be more than ${e}` : `Cannot validate more than ${e}`;
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function P(n, e) {
|
|
30
|
-
return n instanceof Date && e instanceof Date ? function(i) {
|
|
31
|
-
const t = new Date(i);
|
|
32
|
-
return isNaN(t.getTime()) ? "Invalid date" : t.getTime() < n.getTime() ? `Date must be at least ${b(n)} ${p(n)}` : t.getTime() >= e.getTime() ? `Date must be less than ${b(e)} ${p(e)}` : !0;
|
|
33
|
-
} : typeof n == "number" && typeof e == "number" ? function(i) {
|
|
34
|
-
const t = +i;
|
|
35
|
-
return isNaN(t) ? "Invalid number" : t < n ? `Value must be at least ${n}` : t >= e ? `Value must be less than ${e}` : !0;
|
|
36
|
-
} : function() {
|
|
37
|
-
return "Progamming error: invalid range parameter.";
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
function c() {
|
|
41
|
-
return function(n) {
|
|
42
|
-
if (n = String(n), n.length === 0)
|
|
43
|
-
return !0;
|
|
44
|
-
const e = +n;
|
|
45
|
-
return isFinite(e) || "Must be a number";
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
function j(n, e) {
|
|
49
|
-
return typeof n == "number" ? function(i) {
|
|
50
|
-
const t = c()(i);
|
|
51
|
-
return typeof t == "string" ? t : f(+i).precision > n ? `Precision cannot be more than ${n} decimal point.` : !0;
|
|
52
|
-
} : function(i) {
|
|
53
|
-
const t = c()(i);
|
|
54
|
-
if (typeof t == "string")
|
|
55
|
-
return t;
|
|
56
|
-
const r = d(n, e);
|
|
57
|
-
return f(+i).precision > r ? `Precision cannot be more than ${r} decimal point.` : !0;
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function g(n, e) {
|
|
61
|
-
return function(i) {
|
|
62
|
-
const t = c()(i);
|
|
63
|
-
if (typeof t == "string")
|
|
64
|
-
return t;
|
|
65
|
-
const r = f(+i);
|
|
66
|
-
return r.precision > n ? typeof e == "function" ? e(r.precision) : e ?? `Precision cannot be more than ${n}` : !0;
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function D(n, e, o) {
|
|
70
|
-
return function(t) {
|
|
71
|
-
if (t === e) return !0;
|
|
72
|
-
const r = n.find((a) => a.value === t);
|
|
73
|
-
return r ? o ? o(r) : `Already used in ${r.label}` : !0;
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
function N(n) {
|
|
77
|
-
let e = typeof n == "number" ? f(n) : n;
|
|
78
|
-
e = m(e);
|
|
79
|
-
const o = u(e);
|
|
80
|
-
return function(t) {
|
|
81
|
-
if (!s(t)) {
|
|
82
|
-
if (t = +t, Number.isNaN(t)) return !0;
|
|
83
|
-
t = f(t);
|
|
84
|
-
}
|
|
85
|
-
return t = m(t), t.amount % e.amount === 0 && t.precision <= e.precision ? !0 : `${u(t)} must be a multiple of ${o}`;
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
export {
|
|
89
|
-
A,
|
|
90
|
-
P as B,
|
|
91
|
-
c as I,
|
|
92
|
-
j as M,
|
|
93
|
-
M as R,
|
|
94
|
-
D as U,
|
|
95
|
-
N as a,
|
|
96
|
-
g as b,
|
|
97
|
-
$ as c
|
|
98
|
-
};
|
package/dist/stock-ChSl_QOD.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { u as i } from "./stock-DrdiXQFX.js";
|
|
2
|
-
import { a as s, M as p } from "./app-DMbbrEyL.js";
|
|
3
|
-
import { ref as k, computed as B } from "vue";
|
|
4
|
-
import { c as d } from "./number-nN9jCKom.js";
|
|
5
|
-
function m() {
|
|
6
|
-
return {
|
|
7
|
-
stockBalance: {
|
|
8
|
-
_id: "",
|
|
9
|
-
items: []
|
|
10
|
-
},
|
|
11
|
-
productBalance: []
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
const v = d(0), f = {
|
|
15
|
-
id: "",
|
|
16
|
-
balance: v,
|
|
17
|
-
closing: null,
|
|
18
|
-
costs: null
|
|
19
|
-
}, n = k(m()), w = () => {
|
|
20
|
-
const r = s(), u = B(() => {
|
|
21
|
-
var a;
|
|
22
|
-
const o = (a = n.value.stockBalance.skus) == null ? void 0 : a.groupBy((t) => t.id), e = (t) => {
|
|
23
|
-
var c;
|
|
24
|
-
return ((c = o == null ? void 0 : o.get(t)) == null ? void 0 : c[0]) ?? { ...f, id: t };
|
|
25
|
-
};
|
|
26
|
-
return r.skus.map((t) => e(t._id));
|
|
27
|
-
}), l = i();
|
|
28
|
-
return {
|
|
29
|
-
// state
|
|
30
|
-
get stockBalance() {
|
|
31
|
-
return {
|
|
32
|
-
...n.value.stockBalance,
|
|
33
|
-
skus: u.value
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
set stockBalance(o) {
|
|
37
|
-
n.value.stockBalance = o;
|
|
38
|
-
},
|
|
39
|
-
get productBalance() {
|
|
40
|
-
return n.value.productBalance;
|
|
41
|
-
},
|
|
42
|
-
set productBalance(o) {
|
|
43
|
-
n.value.productBalance = o;
|
|
44
|
-
},
|
|
45
|
-
// actions
|
|
46
|
-
async readStockBalance() {
|
|
47
|
-
this.stockBalance = await l.readStockBalance();
|
|
48
|
-
},
|
|
49
|
-
async readProductBalance() {
|
|
50
|
-
this.productBalance = [];
|
|
51
|
-
const o = s(), e = p({
|
|
52
|
-
recipes: o.recipes,
|
|
53
|
-
skus: o.skus,
|
|
54
|
-
skuGroups: o.skuGroups,
|
|
55
|
-
inventoryBindingMapping: {},
|
|
56
|
-
stockBalance: this.stockBalance
|
|
57
|
-
// silent: true
|
|
58
|
-
});
|
|
59
|
-
function a(t, c) {
|
|
60
|
-
return Object.prototype.hasOwnProperty.call(t, c);
|
|
61
|
-
}
|
|
62
|
-
for (const t in e.convertCountdown)
|
|
63
|
-
if (a(e.convertCountdown, t)) {
|
|
64
|
-
const c = e.convertCountdown[t];
|
|
65
|
-
this.productBalance.push({
|
|
66
|
-
id: t,
|
|
67
|
-
count: c
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
export {
|
|
74
|
-
w as u
|
|
75
|
-
};
|
package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts
DELETED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import type { ValidationResult } from '@feedmepos/ui-library';
|
|
2
|
-
export interface InventoryRecipeBindingFormConfig {
|
|
3
|
-
ableToApplyRules?: boolean;
|
|
4
|
-
enabled?: boolean;
|
|
5
|
-
}
|
|
6
|
-
export interface InventorySkuBindingFormConfig {
|
|
7
|
-
ableToApplyRules?: boolean;
|
|
8
|
-
ableToConfigureAlternative?: boolean;
|
|
9
|
-
enabled?: boolean;
|
|
10
|
-
}
|
|
11
|
-
export interface InventoryBindingFormProps {
|
|
12
|
-
id?: string;
|
|
13
|
-
modelValue?: FdoInventoryBinding[];
|
|
14
|
-
excludeBindingId?: string;
|
|
15
|
-
rules?: (ValidationResult | ((bindings: FdoInventoryBinding[]) => ValidationResult))[];
|
|
16
|
-
iframeMode?: boolean;
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
readonly?: boolean;
|
|
19
|
-
recipeBindingConfig?: InventoryRecipeBindingFormConfig;
|
|
20
|
-
skuBindingConfig?: InventorySkuBindingFormConfig;
|
|
21
|
-
}
|
|
22
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InventoryBindingFormProps>, {
|
|
23
|
-
modelValue: () => never[];
|
|
24
|
-
errors: () => never[];
|
|
25
|
-
rules: () => never[];
|
|
26
|
-
recipeBindingConfig: () => {
|
|
27
|
-
enabled: boolean;
|
|
28
|
-
ableToApplyRules: boolean;
|
|
29
|
-
};
|
|
30
|
-
skuBindingConfig: () => {
|
|
31
|
-
enabled: boolean;
|
|
32
|
-
ableToApplyRules: boolean;
|
|
33
|
-
ableToConfigureAlternative: boolean;
|
|
34
|
-
};
|
|
35
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
36
|
-
"update:modelValue": (bindings: {
|
|
37
|
-
measurement?: {
|
|
38
|
-
id: string;
|
|
39
|
-
name: string;
|
|
40
|
-
abbrev: string;
|
|
41
|
-
conversion: {
|
|
42
|
-
amount: number;
|
|
43
|
-
precision: number;
|
|
44
|
-
};
|
|
45
|
-
} | null | undefined;
|
|
46
|
-
rules?: Record<string, any> | null | undefined;
|
|
47
|
-
alternatives?: {
|
|
48
|
-
priority?: number | null | undefined;
|
|
49
|
-
default?: boolean | null | undefined;
|
|
50
|
-
trackingMeasurement?: string | null | undefined;
|
|
51
|
-
_id: string;
|
|
52
|
-
}[] | null | undefined;
|
|
53
|
-
id: string;
|
|
54
|
-
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
55
|
-
amount: {
|
|
56
|
-
amount: number;
|
|
57
|
-
precision: number;
|
|
58
|
-
};
|
|
59
|
-
}[]) => void;
|
|
60
|
-
"click:pick-inventory-bindings": (type: "RECIPE" | "SKU" | "SKU_GROUP") => void;
|
|
61
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InventoryBindingFormProps>, {
|
|
62
|
-
modelValue: () => never[];
|
|
63
|
-
errors: () => never[];
|
|
64
|
-
rules: () => never[];
|
|
65
|
-
recipeBindingConfig: () => {
|
|
66
|
-
enabled: boolean;
|
|
67
|
-
ableToApplyRules: boolean;
|
|
68
|
-
};
|
|
69
|
-
skuBindingConfig: () => {
|
|
70
|
-
enabled: boolean;
|
|
71
|
-
ableToApplyRules: boolean;
|
|
72
|
-
ableToConfigureAlternative: boolean;
|
|
73
|
-
};
|
|
74
|
-
}>>> & Readonly<{
|
|
75
|
-
"onUpdate:modelValue"?: ((bindings: {
|
|
76
|
-
measurement?: {
|
|
77
|
-
id: string;
|
|
78
|
-
name: string;
|
|
79
|
-
abbrev: string;
|
|
80
|
-
conversion: {
|
|
81
|
-
amount: number;
|
|
82
|
-
precision: number;
|
|
83
|
-
};
|
|
84
|
-
} | null | undefined;
|
|
85
|
-
rules?: Record<string, any> | null | undefined;
|
|
86
|
-
alternatives?: {
|
|
87
|
-
priority?: number | null | undefined;
|
|
88
|
-
default?: boolean | null | undefined;
|
|
89
|
-
trackingMeasurement?: string | null | undefined;
|
|
90
|
-
_id: string;
|
|
91
|
-
}[] | null | undefined;
|
|
92
|
-
id: string;
|
|
93
|
-
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
94
|
-
amount: {
|
|
95
|
-
amount: number;
|
|
96
|
-
precision: number;
|
|
97
|
-
};
|
|
98
|
-
}[]) => any) | undefined;
|
|
99
|
-
"onClick:pick-inventory-bindings"?: ((type: "RECIPE" | "SKU" | "SKU_GROUP") => any) | undefined;
|
|
100
|
-
}>, {
|
|
101
|
-
rules: (ValidationResult | ((bindings: {
|
|
102
|
-
measurement?: {
|
|
103
|
-
id: string;
|
|
104
|
-
name: string;
|
|
105
|
-
abbrev: string;
|
|
106
|
-
conversion: {
|
|
107
|
-
amount: number;
|
|
108
|
-
precision: number;
|
|
109
|
-
};
|
|
110
|
-
} | null | undefined;
|
|
111
|
-
rules?: Record<string, any> | null | undefined;
|
|
112
|
-
alternatives?: {
|
|
113
|
-
priority?: number | null | undefined;
|
|
114
|
-
default?: boolean | null | undefined;
|
|
115
|
-
trackingMeasurement?: string | null | undefined;
|
|
116
|
-
_id: string;
|
|
117
|
-
}[] | null | undefined;
|
|
118
|
-
id: string;
|
|
119
|
-
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
120
|
-
amount: {
|
|
121
|
-
amount: number;
|
|
122
|
-
precision: number;
|
|
123
|
-
};
|
|
124
|
-
}[]) => ValidationResult))[];
|
|
125
|
-
modelValue: {
|
|
126
|
-
measurement?: {
|
|
127
|
-
id: string;
|
|
128
|
-
name: string;
|
|
129
|
-
abbrev: string;
|
|
130
|
-
conversion: {
|
|
131
|
-
amount: number;
|
|
132
|
-
precision: number;
|
|
133
|
-
};
|
|
134
|
-
} | null | undefined;
|
|
135
|
-
rules?: Record<string, any> | null | undefined;
|
|
136
|
-
alternatives?: {
|
|
137
|
-
priority?: number | null | undefined;
|
|
138
|
-
default?: boolean | null | undefined;
|
|
139
|
-
trackingMeasurement?: string | null | undefined;
|
|
140
|
-
_id: string;
|
|
141
|
-
}[] | null | undefined;
|
|
142
|
-
id: string;
|
|
143
|
-
type: "RECIPE" | "SKU" | "SKU_GROUP";
|
|
144
|
-
amount: {
|
|
145
|
-
amount: number;
|
|
146
|
-
precision: number;
|
|
147
|
-
};
|
|
148
|
-
}[];
|
|
149
|
-
recipeBindingConfig: InventoryRecipeBindingFormConfig;
|
|
150
|
-
skuBindingConfig: InventorySkuBindingFormConfig;
|
|
151
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
152
|
-
export default _default;
|
|
153
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
154
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
155
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
156
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
157
|
-
} : {
|
|
158
|
-
type: import('vue').PropType<T[K]>;
|
|
159
|
-
required: true;
|
|
160
|
-
};
|
|
161
|
-
};
|
|
162
|
-
type __VLS_WithDefaults<P, D> = {
|
|
163
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
164
|
-
default: D[K];
|
|
165
|
-
}> : P[K];
|
|
166
|
-
};
|
|
167
|
-
type __VLS_Prettify<T> = {
|
|
168
|
-
[K in keyof T]: T[K];
|
|
169
|
-
} & {};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
disabled?: boolean | undefined;
|
|
3
|
-
modelValue?: {
|
|
4
|
-
priority?: number | null | undefined;
|
|
5
|
-
default?: boolean | null | undefined;
|
|
6
|
-
trackingMeasurement?: string | null | undefined;
|
|
7
|
-
_id: string;
|
|
8
|
-
}[] | null | undefined;
|
|
9
|
-
filterIngredientIds: string[];
|
|
10
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
-
"update:modelValue": (value: {
|
|
12
|
-
priority?: number | null | undefined;
|
|
13
|
-
default?: boolean | null | undefined;
|
|
14
|
-
trackingMeasurement?: string | null | undefined;
|
|
15
|
-
_id: string;
|
|
16
|
-
}[]) => void;
|
|
17
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
18
|
-
disabled?: boolean | undefined;
|
|
19
|
-
modelValue?: {
|
|
20
|
-
priority?: number | null | undefined;
|
|
21
|
-
default?: boolean | null | undefined;
|
|
22
|
-
trackingMeasurement?: string | null | undefined;
|
|
23
|
-
_id: string;
|
|
24
|
-
}[] | null | undefined;
|
|
25
|
-
filterIngredientIds: string[];
|
|
26
|
-
}>>> & Readonly<{
|
|
27
|
-
"onUpdate:modelValue"?: ((value: {
|
|
28
|
-
priority?: number | null | undefined;
|
|
29
|
-
default?: boolean | null | undefined;
|
|
30
|
-
trackingMeasurement?: string | null | undefined;
|
|
31
|
-
_id: string;
|
|
32
|
-
}[]) => any) | undefined;
|
|
33
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
34
|
-
export default _default;
|
|
35
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
36
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
37
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
38
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
39
|
-
} : {
|
|
40
|
-
type: import('vue').PropType<T[K]>;
|
|
41
|
-
required: true;
|
|
42
|
-
};
|
|
43
|
-
};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
disabled?: boolean | undefined;
|
|
3
|
-
modelValue?: any | null;
|
|
4
|
-
minCount?: number | undefined;
|
|
5
|
-
maxCount?: number | undefined;
|
|
6
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
7
|
-
"update:modelValue": (value: any) => void;
|
|
8
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
-
disabled?: boolean | undefined;
|
|
10
|
-
modelValue?: any | null;
|
|
11
|
-
minCount?: number | undefined;
|
|
12
|
-
maxCount?: number | undefined;
|
|
13
|
-
}>>> & Readonly<{
|
|
14
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
15
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
-
export default _default;
|
|
17
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
-
} : {
|
|
22
|
-
type: import('vue').PropType<T[K]>;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
|
-
};
|