@feedmepos/mf-inventory-portal 1.8.0-dev.4 → 1.8.0-dev.5
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-FeJnwZme.js → App-DEbWEOwe.js} +609 -558
- package/dist/{ApprovalView-Eo-cGWyA.js → ApprovalView-BEnYHIlU.js} +9 -9
- package/dist/{BindingsDialog-DkjuXydb.js → BindingsDialog-CJVkMoBS.js} +2 -2
- package/dist/{BindingsPicker-DUOQcOlj.js → BindingsPicker-CX9o-xdQ.js} +2 -2
- package/dist/{BindingsTable-CoDdU5xh.js → BindingsTable-Cil4LJ7l.js} +4 -4
- package/dist/{BulkReceiveRequestView-BGh8fbEX.js → BulkReceiveRequestView-DYEc2jPw.js} +19 -19
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CStISRqy.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DoAv2mHA.js} +1 -1
- package/dist/{ClosingDraftView-Cwnhrv5P.js → ClosingDraftView-Bz94Iejf.js} +20 -20
- package/dist/{ClosingHistoryView-oHf77Lal.js → ClosingHistoryView-B479Y-mH.js} +5 -5
- package/dist/{ClosingTemplateView-1P8J1vAn.js → ClosingTemplateView-F_nx43n6.js} +18 -18
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BuEPaqQK.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-DddYGHxQ.js} +1 -1
- package/dist/{DefaultView-3Z8aVFSU.js → DefaultView-CkZOl0ov.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-uT_e3Suw.js → DeliveryOrderPrintPreview-BJEpwAX6.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BCgnXxEi.js → EmailDialog.vue_vue_type_script_setup_true_lang-BW988AoC.js} +23 -23
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-Izn-hTjK.js +297 -0
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BlKpGdCx.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-CoUWxHlj.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DKkxn1J-.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Ci81xTbl.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-dOXDST-E.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CnaHTAUZ.js} +2 -2
- package/dist/{FmMultiselectDialog-DRxZAkcu.js → FmMultiselectDialog-BE8BlO6_.js} +2 -2
- package/dist/FmMultiselectDialog-COKgBmPZ.js +123 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-DRSzQqVJ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BQHd3NjM.js} +6 -6
- package/dist/ImportView-Crb_yrNb.js +1291 -0
- package/dist/{IngredientsView-N9U7tdI_.js → IngredientsView-lDypeR4c.js} +34 -35
- package/dist/{IntegrationExplorerView-CjmeGQ14.js → IntegrationExplorerView-DgOFGj7H.js} +4 -4
- package/dist/{IntegrationView-DAdpmuxx.js → IntegrationView-0sbjINo5.js} +973 -974
- package/dist/{InventoryBindingForm-CAj3MurI.js → InventoryBindingForm-BhyrjIXJ.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-KCz_BQ6T.js +472 -0
- package/dist/{InventoryBindingSummary-B-1OBUdw.js → InventoryBindingSummary-CsfNKd1r.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CUYYEuW3.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C32OoIBz.js} +1 -1
- package/dist/{ProductionRunDetailView-eFvl8-By.js → ProductionRunDetailView-BxbDtGMo.js} +4 -4
- package/dist/{ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-DaC7e4qS.js → ProductionRunLifecycleDialogs.vue_vue_type_script_setup_true_lang-BdJVvwSP.js} +9 -9
- package/dist/{ProductionRunView-C_NJJKLr.js → ProductionRunView-CJhNEIzT.js} +3 -3
- package/dist/{PublishView-BglAEkzU.js → PublishView-vkt6-D6P.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-BTF9ikpQ.js → PurchaseOrderPrintPreview-25dHfVKp.js} +2 -2
- package/dist/{ReceiveRequestView-BUvehG10.js → ReceiveRequestView-BO4Z2dZu.js} +13 -13
- package/dist/RecipeView-B_AE7QQv.js +3428 -0
- package/dist/{SettingsView-DRR86cHo.js → SettingsView-qTUvQCuu.js} +164 -168
- package/dist/{StockView-D1oEnbZp.js → StockView-yh6qkYUS.js} +267 -267
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CxU92-io.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cn_fx9qG.js} +1 -1
- package/dist/{SupplierView-D68wz0-g.js → SupplierView-Dqzu1Bvh.js} +14 -14
- package/dist/{SurchargeView-Cw9rTw2h.js → SurchargeView-CDosn36c.js} +7 -7
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-Az-a1Dsp.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DZ3Gdlp9.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C-sxbacO.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CWoh2FqQ.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CsHfLaCv.js → TransferDetails.vue_vue_type_script_setup_true_lang-BtjKnIwf.js} +690 -666
- package/dist/{TransferTemplateView-CHPJMjYC.js → TransferTemplateView-fDZcC9i4.js} +20 -20
- package/dist/{UnitCostHistoryView-DM8OzWhe.js → UnitCostHistoryView-CmTTIXAp.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpwK5mFH.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DZihCM0T.js} +4 -4
- package/dist/{UnitView-90uR-ZzQ.js → UnitView-BTx59sFK.js} +8 -8
- package/dist/{WarehouseView-Bulg6Vac.js → WarehouseView-BIFe08FJ.js} +8 -8
- package/dist/{WastageTemplateView-BmAHnnwm.js → WastageTemplateView-B_oJqm0_.js} +15 -15
- package/dist/api/feature-flags.d.ts +2 -0
- package/dist/api/license.d.ts +0 -2
- package/dist/{app-Ccdgbe4f.js → app-DyEvx3Em.js} +1628 -1817
- package/dist/app.d.ts +0 -150
- package/dist/app.js +1 -1
- package/dist/{closing-template-DuBZxoXx.js → closing-template-FgcLy4RT.js} +1 -1
- package/dist/{date2-IBrLdtni.js → date2-Rv4IwT9a.js} +1 -1
- package/dist/{dayjs.min-DEkq-Hpp.js → dayjs.min-DOq1QM_M.js} +1 -1
- package/dist/{decimal-g6jRdlSk.js → decimal-7vA05AaD.js} +2 -2
- package/dist/{defineDeepModel-P5a5Ffpn.js → defineDeepModel-22Md2SKY.js} +1 -1
- package/dist/{duplicate-template-Do8s80ei.js → duplicate-template-D2tjCY7C.js} +1 -1
- package/dist/{feature-ChVm5JED.js → feature-BMTKl6PK.js} +1999 -3092
- package/dist/feature-flags/portal-feature-catalog.d.ts +0 -2
- package/dist/{format-time-from-id-BgbBOII7.js → format-time-from-id-DXhm_Ji1.js} +1 -1
- package/dist/{format-unit-display-hSXy2iu6.js → format-unit-display-DxWLjFPz.js} +13 -13
- package/dist/helper/menu-usage-module.d.ts +1 -1
- package/dist/{id-to-date-DlGYysU8.js → id-to-date-VKlOL3mN.js} +1 -1
- package/dist/{import-export.helper-LrZhiz2W.js → import-export.helper-BiF5aKUp.js} +6 -6
- package/dist/{index-BTNJ1fk2.js → index-DEl_gZn0.js} +3 -3
- package/dist/{index-DsOmtywr.js → index-DdtsVAcv.js} +1 -1
- package/dist/{index-DCiNwlw2.js → index-DoBWE4Ci.js} +1 -1
- package/dist/{lz-string-DRuyjE9G.js → lz-string-BwQj8QRN.js} +1 -1
- package/dist/{netsuite-B6y8GZCP.js → netsuite-s1S33-lP.js} +2 -2
- package/dist/{number-Besn-1-5.js → number-BmKjsNrc.js} +3 -3
- package/dist/{predefined-templates-D92mN_2S.js → predefined-templates-BZ2KqNix.js} +1 -1
- package/dist/{purchase-order-template-hvq2pfWx.js → purchase-order-template-CINU4my1.js} +1 -1
- package/dist/{recalculationUtils-BlZR5O2G.js → recalculationUtils-R5tFu_ts.js} +1 -1
- package/dist/router/name.d.ts +0 -1
- package/dist/{row-action.enum-R2bi3eAv.js → row-action.enum-ePO-Py0V.js} +1 -1
- package/dist/{rules-DzwoRKUS.js → rules-BZrZVzw7.js} +2 -2
- package/dist/{stock-Cq37EARQ.js → stock-C2HOKq0k.js} +8 -8
- package/dist/{stock-oJqnUrtt.js → stock-Ce1UvAZ3.js} +1 -1
- package/dist/stores/feature.d.ts +9 -9
- package/dist/stores/inventory.d.ts +0 -47
- package/dist/stores/supplier.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/{supplier-DtdwvcPr.js → supplier-DgT66emI.js} +2 -2
- package/dist/{surcharge-CjdJGIsM.js → surcharge-CsVMuzPM.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BqPn_GoZ.js → uom-rules-CR1XukyM.js} +1 -1
- package/dist/{use-ingredient-select-dialog-0hRCj6Fu.js → use-ingredient-select-dialog-CJkG4hEX.js} +2 -2
- package/dist/use-inventory-binding-dialog-B36kPj4V.js +113 -0
- package/dist/{use-template-enabled-locations-8ZfTj4YB.js → use-template-enabled-locations-Boa9QLPV.js} +2 -2
- package/dist/{use-transfer-locations-BGS1EBEt.js → use-transfer-locations-BxOygSUg.js} +2 -2
- package/dist/{useHrmPermission-BcQ2KPD-.js → useHrmPermission-DLHAqbLV.js} +1 -1
- package/dist/{useNavigationMenu-DImtns81.js → useNavigationMenu-D6abZMGz.js} +65 -74
- package/dist/{useSseClient-DPSFFVci.js → useSseClient-C7pff-EW.js} +1 -1
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/composables/use-inventory-binding-dialog.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/v2/composables/use-inventory-binding-dialog.d.ts +0 -1
- package/dist/views/ingredients/helper/is-linked-ingredient-error.d.ts +1 -1
- package/dist/views/integration/components/IntegrationCard.vue.d.ts +3 -3
- package/dist/views/recipe/helper/bulk-edit-simulation.helper.d.ts +0 -1
- package/dist/views/recipe/helper/import-recipe.d.ts +2 -2
- package/dist/{vue-i18n-DTyGIjTI.js → vue-i18n-CpOOFhVU.js} +219 -219
- package/dist/{xlsx.util-CK9Lnq3Q.js → xlsx.util-xwI5tVz6.js} +2 -2
- package/package.json +4 -4
- package/dist/DeprecateSoonWarningDialog.vue_vue_type_script_setup_true_lang-D_vmtZDZ.js +0 -58
- package/dist/FeatureCapabilityBadge.vue_vue_type_script_setup_true_lang-D-RzUmqA.js +0 -81
- package/dist/FmMultiselectDialog-C8uYx8rr.js +0 -77
- package/dist/ImportView-Qigtf3ik.js +0 -1302
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-B8PJeYrP.js +0 -51
- package/dist/IngredientGroupView-RNYZLkQu.js +0 -1000
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-3pYuu62C.js +0 -563
- package/dist/RecipeView-DO5-jgwh.js +0 -3624
- package/dist/feature-flags/premium-flags.spec.d.ts +0 -1
- package/dist/random-CSbEbElR.js +0 -10
- package/dist/use-inventory-binding-dialog-BLRcIC1u.js +0 -152
- package/dist/usePromise-CbVUCxhj.js +0 -29
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +0 -3
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +0 -31
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +0 -10
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +0 -21
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +0 -12
- package/dist/views/ingredient-group/components/ingredient-group-rule-field/IngredientGroupRuleField.vue.d.ts +0 -37
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +0 -24
- package/dist/views/ingredient-group/composables/use-ingredient-group-rule-item.d.ts +0 -31
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +0 -77
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/random-CSbEbElR.js
DELETED
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
import { a as g } from "./FmMultiselectDialog-DRxZAkcu.js";
|
|
2
|
-
import { a as P } from "./app-Ccdgbe4f.js";
|
|
3
|
-
import { useDialog as E } from "@feedmepos/ui-library";
|
|
4
|
-
function A() {
|
|
5
|
-
const u = P(), _ = E();
|
|
6
|
-
async function b(e, m, s, f = []) {
|
|
7
|
-
var i, o;
|
|
8
|
-
const y = e.filter((n) => n.type === "SKU"), l = e.filter((n) => n.type !== "SKU"), c = /* @__PURE__ */ new Set();
|
|
9
|
-
if (s)
|
|
10
|
-
for (const n of u.skus)
|
|
11
|
-
!f.some((a) => a === n._id) && n._id !== s && !((o = (i = n.convert) == null ? void 0 : i.inventoryBindings) != null && o.some((a) => a.id === s)) || c.add(n._id);
|
|
12
|
-
const t = u.skus.map((n) => ({
|
|
13
|
-
label: n.name,
|
|
14
|
-
sublabel: `${n.code}${c.has(n._id) ? " (Cannot bind, will cause recursive binding)" : ""}`,
|
|
15
|
-
value: n,
|
|
16
|
-
disabled: c.has(n._id)
|
|
17
|
-
})), p = t.filter(
|
|
18
|
-
(n) => y.find((d) => d.id === n.value._id) && !c.has(n.value._id)
|
|
19
|
-
).map((n) => n.value);
|
|
20
|
-
_.open({
|
|
21
|
-
title: "Select ingredients",
|
|
22
|
-
contentComponent: g,
|
|
23
|
-
contentComponentProps: {
|
|
24
|
-
items: t,
|
|
25
|
-
modelValue: p,
|
|
26
|
-
virtualScroll: !0
|
|
27
|
-
},
|
|
28
|
-
primaryActions: {
|
|
29
|
-
text: "Confirm",
|
|
30
|
-
close: !0
|
|
31
|
-
},
|
|
32
|
-
secondaryActions: {
|
|
33
|
-
text: "Close",
|
|
34
|
-
close: !0,
|
|
35
|
-
variant: "tertiary"
|
|
36
|
-
}
|
|
37
|
-
}).onPrimary((n) => {
|
|
38
|
-
const d = [
|
|
39
|
-
...l,
|
|
40
|
-
...e.filter((a) => n.find((r) => r._id === a.id)),
|
|
41
|
-
...n.filter((a) => !e.find((r) => r.id === a._id)).map((a) => ({
|
|
42
|
-
type: "SKU",
|
|
43
|
-
id: a._id,
|
|
44
|
-
amount: {
|
|
45
|
-
amount: 1,
|
|
46
|
-
precision: 0
|
|
47
|
-
}
|
|
48
|
-
}))
|
|
49
|
-
];
|
|
50
|
-
m(d);
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
async function v(e, m, s = []) {
|
|
54
|
-
var p;
|
|
55
|
-
const f = e.filter((i) => i.type === "RECIPE"), y = e.filter((i) => i.type !== "RECIPE"), l = /* @__PURE__ */ new Set();
|
|
56
|
-
if (s.length)
|
|
57
|
-
for (const i of u.recipes) {
|
|
58
|
-
const o = ((p = u.recipeBindingFlattenCache[i._id]) == null ? void 0 : p.inventoryBindings) ?? [], n = o.some(
|
|
59
|
-
(r) => r.bindingPaths.some((S) => s.some((h) => h === S.id))
|
|
60
|
-
), d = o.some(
|
|
61
|
-
(r) => "success" in r && s.includes(r.ingredient._id)
|
|
62
|
-
);
|
|
63
|
-
(s.some((r) => r === i._id) || n || d) && l.add(i._id);
|
|
64
|
-
}
|
|
65
|
-
const c = u.recipes.filter((i) => !s.includes(i._id)).map((i) => ({
|
|
66
|
-
label: i.name,
|
|
67
|
-
sublabel: l.has(i._id) ? "(Cannot bind, will cause recursive binding)" : `${i.contains.length} inventory bindings`,
|
|
68
|
-
value: i,
|
|
69
|
-
disabled: l.has(i._id)
|
|
70
|
-
})), t = c.filter(
|
|
71
|
-
(i) => f.find((o) => o.id === i.value._id) && !l.has(i.value._id)
|
|
72
|
-
).map((i) => i.value);
|
|
73
|
-
_.open({
|
|
74
|
-
title: "Select recipes",
|
|
75
|
-
contentComponent: g,
|
|
76
|
-
contentComponentProps: {
|
|
77
|
-
items: c,
|
|
78
|
-
modelValue: t,
|
|
79
|
-
virtualScroll: !0
|
|
80
|
-
},
|
|
81
|
-
primaryActions: {
|
|
82
|
-
text: "Confirm",
|
|
83
|
-
close: !0
|
|
84
|
-
},
|
|
85
|
-
secondaryActions: {
|
|
86
|
-
text: "Close",
|
|
87
|
-
close: !0,
|
|
88
|
-
variant: "tertiary"
|
|
89
|
-
}
|
|
90
|
-
}).onPrimary((i) => {
|
|
91
|
-
const o = [
|
|
92
|
-
...e.filter((n) => i.find((d) => d._id === n.id)),
|
|
93
|
-
...i.filter((n) => !e.find((d) => d.id === n._id)).map((n) => ({
|
|
94
|
-
type: "RECIPE",
|
|
95
|
-
id: n._id,
|
|
96
|
-
amount: {
|
|
97
|
-
amount: 1,
|
|
98
|
-
precision: 0
|
|
99
|
-
}
|
|
100
|
-
})),
|
|
101
|
-
...y
|
|
102
|
-
];
|
|
103
|
-
m(o);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
async function C(e, m, s = []) {
|
|
107
|
-
const f = e.filter((t) => t.type === "SKU_GROUP"), y = e.filter((t) => t.type !== "SKU_GROUP"), l = u.skuGroups.filter((t) => !s.includes(t._id)).map((t) => ({
|
|
108
|
-
label: t.name,
|
|
109
|
-
value: t
|
|
110
|
-
})), c = l.filter((t) => f.find((p) => p.id === t.value._id)).map((t) => t.value);
|
|
111
|
-
_.open({
|
|
112
|
-
title: "Select ingredient group",
|
|
113
|
-
contentComponent: g,
|
|
114
|
-
contentComponentProps: {
|
|
115
|
-
items: l,
|
|
116
|
-
modelValue: c,
|
|
117
|
-
virtualScroll: !0
|
|
118
|
-
},
|
|
119
|
-
primaryActions: {
|
|
120
|
-
text: "Confirm",
|
|
121
|
-
close: !0
|
|
122
|
-
},
|
|
123
|
-
secondaryActions: {
|
|
124
|
-
text: "Close",
|
|
125
|
-
close: !0,
|
|
126
|
-
variant: "tertiary"
|
|
127
|
-
}
|
|
128
|
-
}).onPrimary((t) => {
|
|
129
|
-
const p = [
|
|
130
|
-
...e.filter((i) => t.find((o) => o._id === i.id)),
|
|
131
|
-
...t.filter((i) => !e.find((o) => o.id === i._id)).map((i) => ({
|
|
132
|
-
type: "SKU_GROUP",
|
|
133
|
-
id: i._id,
|
|
134
|
-
amount: {
|
|
135
|
-
amount: 1,
|
|
136
|
-
precision: 0
|
|
137
|
-
}
|
|
138
|
-
})),
|
|
139
|
-
...y
|
|
140
|
-
];
|
|
141
|
-
m(p);
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
return {
|
|
145
|
-
promptIngredientsBinding: b,
|
|
146
|
-
promptRecipesBinding: v,
|
|
147
|
-
promptIngredientGroupsBinding: C
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
|
-
export {
|
|
151
|
-
A as u
|
|
152
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ref as c } from "vue";
|
|
2
|
-
var n = /* @__PURE__ */ ((r) => (r.loading = "loading", r.error = "error", r.success = "success", r))(n || {});
|
|
3
|
-
function i(r) {
|
|
4
|
-
const e = c({
|
|
5
|
-
state: "loading"
|
|
6
|
-
/* loading */
|
|
7
|
-
}), s = async (a) => {
|
|
8
|
-
const t = a || r;
|
|
9
|
-
if (!t) {
|
|
10
|
-
e.value = { state: "error", error: new Error("No promise task provided") };
|
|
11
|
-
return;
|
|
12
|
-
}
|
|
13
|
-
e.value = {
|
|
14
|
-
state: "loading"
|
|
15
|
-
/* loading */
|
|
16
|
-
};
|
|
17
|
-
try {
|
|
18
|
-
const o = await t();
|
|
19
|
-
e.value = { state: "success", data: o };
|
|
20
|
-
} catch (o) {
|
|
21
|
-
e.value = { state: "error", error: o };
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
return r && s(), { result: e, execute: s };
|
|
25
|
-
}
|
|
26
|
-
export {
|
|
27
|
-
n as R,
|
|
28
|
-
i as u
|
|
29
|
-
};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import '@/extensions/array';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
3
|
-
export default _default;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import type { IngredientGroupDialogProps } from './IngredientGroupDialogProps';
|
|
2
|
-
import { FormMode } from '@/components/form/form-mode.enum';
|
|
3
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IngredientGroupDialogProps>, {
|
|
4
|
-
mode: FormMode;
|
|
5
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
6
|
-
"update:show": (show: boolean) => void;
|
|
7
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<IngredientGroupDialogProps>, {
|
|
8
|
-
mode: FormMode;
|
|
9
|
-
}>>> & Readonly<{
|
|
10
|
-
"onUpdate:show"?: ((show: boolean) => any) | undefined;
|
|
11
|
-
}>, {
|
|
12
|
-
mode: FormMode;
|
|
13
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
-
export default _default;
|
|
15
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
16
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
17
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
18
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
19
|
-
} : {
|
|
20
|
-
type: import('vue').PropType<T[K]>;
|
|
21
|
-
required: true;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
type __VLS_WithDefaults<P, D> = {
|
|
25
|
-
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
26
|
-
default: D[K];
|
|
27
|
-
}> : P[K];
|
|
28
|
-
};
|
|
29
|
-
type __VLS_Prettify<T> = {
|
|
30
|
-
[K in keyof T]: T[K];
|
|
31
|
-
} & {};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { FormMode } from '@/components/form/form-mode.enum';
|
|
2
|
-
export type IngredientGroupDialogModelValue = FdoInventorySkuGroup;
|
|
3
|
-
export interface IngredientGroupDialogProps {
|
|
4
|
-
show?: boolean;
|
|
5
|
-
mode?: FormMode;
|
|
6
|
-
modelValue?: IngredientGroupDialogModelValue;
|
|
7
|
-
}
|
|
8
|
-
export interface IngredientGroupDialogEvents {
|
|
9
|
-
(event: 'update:show', show: boolean): void;
|
|
10
|
-
}
|
package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { IngredientGroupFormProps } from './IngredientGroupFormProps';
|
|
2
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IngredientGroupFormProps>>, {
|
|
3
|
-
validateInputs: () => void;
|
|
4
|
-
resetInputsValidation: () => void;
|
|
5
|
-
resetInputs: () => void;
|
|
6
|
-
getFormData?: (() => unknown) | undefined;
|
|
7
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
8
|
-
"validation-success": () => void;
|
|
9
|
-
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<IngredientGroupFormProps>>> & Readonly<{
|
|
10
|
-
"onValidation-success"?: (() => any) | undefined;
|
|
11
|
-
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
-
export default _default;
|
|
13
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
14
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
15
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
16
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
17
|
-
} : {
|
|
18
|
-
type: import('vue').PropType<T[K]>;
|
|
19
|
-
required: true;
|
|
20
|
-
};
|
|
21
|
-
};
|
package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { FormMode } from '@/components/form/form-mode.enum';
|
|
2
|
-
import type { FdoMenuV4 } from '@feedmepos/menu/entity';
|
|
3
|
-
export type IngredientGroupFormModelValue = FdoInventorySkuGroup;
|
|
4
|
-
export interface IngredientGroupFormProps {
|
|
5
|
-
mode?: FormMode;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
modelValue?: IngredientGroupFormModelValue;
|
|
8
|
-
menu?: FdoMenuV4;
|
|
9
|
-
}
|
|
10
|
-
export interface IngredientGroupFormEvents {
|
|
11
|
-
(event: 'validation-success'): void;
|
|
12
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
-
disabled?: boolean | undefined;
|
|
3
|
-
modelValue?: {
|
|
4
|
-
rule?: any;
|
|
5
|
-
_id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
skuRefs: {
|
|
8
|
-
default?: boolean | null | undefined;
|
|
9
|
-
trackingMeasurement?: string | null | undefined;
|
|
10
|
-
priority?: number | null | undefined;
|
|
11
|
-
_id: string;
|
|
12
|
-
}[];
|
|
13
|
-
} | null | undefined;
|
|
14
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
15
|
-
disabled?: boolean | undefined;
|
|
16
|
-
modelValue?: {
|
|
17
|
-
rule?: any;
|
|
18
|
-
_id: string;
|
|
19
|
-
name: string;
|
|
20
|
-
skuRefs: {
|
|
21
|
-
default?: boolean | null | undefined;
|
|
22
|
-
trackingMeasurement?: string | null | undefined;
|
|
23
|
-
priority?: number | null | undefined;
|
|
24
|
-
_id: string;
|
|
25
|
-
}[];
|
|
26
|
-
} | null | undefined;
|
|
27
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
28
|
-
export default _default;
|
|
29
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
31
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
-
} : {
|
|
34
|
-
type: import('vue').PropType<T[K]>;
|
|
35
|
-
required: true;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { type Ref } from 'vue';
|
|
2
|
-
import type { IngredientGroupDialogProps } from '../components/ingredient-group-dialog/IngredientGroupDialogProps';
|
|
3
|
-
export declare const useIngredientGroupActions: import("pinia").StoreDefinition<"ingredientGroupactions", import("pinia")._UnwrapAll<Pick<{
|
|
4
|
-
createIngredientGroup: () => void;
|
|
5
|
-
updateIngredientGroup: (data: FdoInventorySkuGroup) => Promise<void>;
|
|
6
|
-
deleteIngredientGroup: (group: FdoInventorySkuGroup, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
|
|
7
|
-
importIngredientGroups: () => void;
|
|
8
|
-
exportIngredientGroups: () => void;
|
|
9
|
-
ingredientGroupDialogProps: Ref<IngredientGroupDialogProps | undefined, IngredientGroupDialogProps | undefined>;
|
|
10
|
-
}, "ingredientGroupDialogProps">>, Pick<{
|
|
11
|
-
createIngredientGroup: () => void;
|
|
12
|
-
updateIngredientGroup: (data: FdoInventorySkuGroup) => Promise<void>;
|
|
13
|
-
deleteIngredientGroup: (group: FdoInventorySkuGroup, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
|
|
14
|
-
importIngredientGroups: () => void;
|
|
15
|
-
exportIngredientGroups: () => void;
|
|
16
|
-
ingredientGroupDialogProps: Ref<IngredientGroupDialogProps | undefined, IngredientGroupDialogProps | undefined>;
|
|
17
|
-
}, never>, Pick<{
|
|
18
|
-
createIngredientGroup: () => void;
|
|
19
|
-
updateIngredientGroup: (data: FdoInventorySkuGroup) => Promise<void>;
|
|
20
|
-
deleteIngredientGroup: (group: FdoInventorySkuGroup, loadingRef: Ref<boolean>, onDeleted: () => void) => void;
|
|
21
|
-
importIngredientGroups: () => void;
|
|
22
|
-
exportIngredientGroups: () => void;
|
|
23
|
-
ingredientGroupDialogProps: Ref<IngredientGroupDialogProps | undefined, IngredientGroupDialogProps | undefined>;
|
|
24
|
-
}, "createIngredientGroup" | "updateIngredientGroup" | "deleteIngredientGroup" | "importIngredientGroups" | "exportIngredientGroups">>;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type ColumnDef } from '@tanstack/vue-table';
|
|
2
|
-
export declare const enum ItemColumn {
|
|
3
|
-
Delete = "delete",
|
|
4
|
-
SkuRef = "skuRef",
|
|
5
|
-
UnitOption = "unitOption",
|
|
6
|
-
Unit = "unit",
|
|
7
|
-
Priority = "priority",
|
|
8
|
-
Default = "default",
|
|
9
|
-
Move = "move"
|
|
10
|
-
}
|
|
11
|
-
export declare function useIngredientGroupRuleItem(controller: {
|
|
12
|
-
get disabled(): boolean | undefined | null;
|
|
13
|
-
get skuRefs(): FdoSkuGroupRuleSkuRef[];
|
|
14
|
-
set skuRefs(value: FdoSkuGroupRuleSkuRef[]);
|
|
15
|
-
isDefaultList: boolean;
|
|
16
|
-
allowOverride?: boolean;
|
|
17
|
-
}): {
|
|
18
|
-
readonly columnDefs: ColumnDef<{
|
|
19
|
-
default?: boolean | null | undefined;
|
|
20
|
-
trackingMeasurement?: string | null | undefined;
|
|
21
|
-
priority?: number | null | undefined;
|
|
22
|
-
_id: string;
|
|
23
|
-
}>[];
|
|
24
|
-
promptAddIngredient: () => Promise<void>;
|
|
25
|
-
columnVisibility: {
|
|
26
|
-
readonly delete: boolean;
|
|
27
|
-
readonly unit: boolean;
|
|
28
|
-
readonly unitOption: boolean;
|
|
29
|
-
readonly move: false;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { type ColumnDef } from '@feedmepos/ui-library';
|
|
2
|
-
export declare const useIngredientGroupTable: import("pinia").StoreDefinition<"ingredientGroupTable", import("pinia")._UnwrapAll<Pick<{
|
|
3
|
-
fetchIngredientGroups: () => Promise<void>;
|
|
4
|
-
loading: import("vue").Ref<boolean, boolean>;
|
|
5
|
-
columnDefs: import("vue").ComputedRef<ColumnDef<{
|
|
6
|
-
rules?: {
|
|
7
|
-
rule?: any;
|
|
8
|
-
_id: string;
|
|
9
|
-
name: string;
|
|
10
|
-
skuRefs: {
|
|
11
|
-
default?: boolean | null | undefined;
|
|
12
|
-
trackingMeasurement?: string | null | undefined;
|
|
13
|
-
priority?: number | null | undefined;
|
|
14
|
-
_id: string;
|
|
15
|
-
}[];
|
|
16
|
-
}[] | null | undefined;
|
|
17
|
-
ref?: string | null | undefined;
|
|
18
|
-
defaultSkuRefs?: {
|
|
19
|
-
default?: boolean | null | undefined;
|
|
20
|
-
trackingMeasurement?: string | null | undefined;
|
|
21
|
-
priority?: number | null | undefined;
|
|
22
|
-
_id: string;
|
|
23
|
-
}[] | null | undefined;
|
|
24
|
-
_id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
}>[]>;
|
|
27
|
-
}, "loading">>, Pick<{
|
|
28
|
-
fetchIngredientGroups: () => Promise<void>;
|
|
29
|
-
loading: import("vue").Ref<boolean, boolean>;
|
|
30
|
-
columnDefs: import("vue").ComputedRef<ColumnDef<{
|
|
31
|
-
rules?: {
|
|
32
|
-
rule?: any;
|
|
33
|
-
_id: string;
|
|
34
|
-
name: string;
|
|
35
|
-
skuRefs: {
|
|
36
|
-
default?: boolean | null | undefined;
|
|
37
|
-
trackingMeasurement?: string | null | undefined;
|
|
38
|
-
priority?: number | null | undefined;
|
|
39
|
-
_id: string;
|
|
40
|
-
}[];
|
|
41
|
-
}[] | null | undefined;
|
|
42
|
-
ref?: string | null | undefined;
|
|
43
|
-
defaultSkuRefs?: {
|
|
44
|
-
default?: boolean | null | undefined;
|
|
45
|
-
trackingMeasurement?: string | null | undefined;
|
|
46
|
-
priority?: number | null | undefined;
|
|
47
|
-
_id: string;
|
|
48
|
-
}[] | null | undefined;
|
|
49
|
-
_id: string;
|
|
50
|
-
name: string;
|
|
51
|
-
}>[]>;
|
|
52
|
-
}, "columnDefs">, Pick<{
|
|
53
|
-
fetchIngredientGroups: () => Promise<void>;
|
|
54
|
-
loading: import("vue").Ref<boolean, boolean>;
|
|
55
|
-
columnDefs: import("vue").ComputedRef<ColumnDef<{
|
|
56
|
-
rules?: {
|
|
57
|
-
rule?: any;
|
|
58
|
-
_id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
skuRefs: {
|
|
61
|
-
default?: boolean | null | undefined;
|
|
62
|
-
trackingMeasurement?: string | null | undefined;
|
|
63
|
-
priority?: number | null | undefined;
|
|
64
|
-
_id: string;
|
|
65
|
-
}[];
|
|
66
|
-
}[] | null | undefined;
|
|
67
|
-
ref?: string | null | undefined;
|
|
68
|
-
defaultSkuRefs?: {
|
|
69
|
-
default?: boolean | null | undefined;
|
|
70
|
-
trackingMeasurement?: string | null | undefined;
|
|
71
|
-
priority?: number | null | undefined;
|
|
72
|
-
_id: string;
|
|
73
|
-
}[] | null | undefined;
|
|
74
|
-
_id: string;
|
|
75
|
-
name: string;
|
|
76
|
-
}>[]>;
|
|
77
|
-
}, "fetchIngredientGroups">>;
|