@feedmepos/mf-inventory-portal 1.5.12 → 1.6.0-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-DBEmTaMX.js → App-HlUs-LF4.js} +4 -4
- package/dist/{ApprovalView-BvzIwH1r.js → ApprovalView-qmRODLFE.js} +7 -7
- package/dist/{BindingsDialog-DnqHoU0Y.js → BindingsDialog-DhSose8-.js} +2 -2
- package/dist/{BindingsPicker-Bjpj0zdJ.js → BindingsPicker-JnvHyWiF.js} +2 -2
- package/dist/{BindingsTable-S5Nqq4Qv.js → BindingsTable-B8BSFIJ8.js} +3 -3
- package/dist/ClosingDraftView-XGq-b6Sj.js +4318 -0
- package/dist/{ClosingHistoryView-B2ccrB2K.js → ClosingHistoryView-DAo8MIT2.js} +5 -5
- package/dist/ClosingTemplateView-DSFABll0.js +2221 -0
- package/dist/{DefaultView-DQhLe6LE.js → DefaultView-B-HflwRG.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-Cup9mzpO.js → DeliveryOrderPrintPreview-Drn8FFa7.js} +2 -2
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DuZFuSbw.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CK8RpMEu.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DoPyc0aE.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-P64wdK5z.js} +2 -2
- package/dist/{FmMultiselectDialog-Cwazmlw3.js → FmMultiselectDialog-CH126sIF.js} +2 -2
- package/dist/{FmMultiselectDialog-DnuUrW7h.js → FmMultiselectDialog-CRG145W_.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BMzzUsa4.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Dg0alt69.js} +5 -5
- package/dist/{ImportView-CXtrdABV.js → ImportView-Ca1QPSKV.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-Cfp95IvX.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CoFavJB9.js} +1 -1
- package/dist/{IngredientGroupView-Bm-2yK8J.js → IngredientGroupView-BfBtqgnZ.js} +5 -5
- package/dist/{IngredientsView-Bo8w9LSr.js → IngredientsView-WzM4VxgZ.js} +15 -15
- package/dist/{IntegrationExplorerView-DUqQ64CE.js → IntegrationExplorerView-OwTTR-uV.js} +352 -352
- package/dist/{IntegrationView-CtkbKPzC.js → IntegrationView-DYAGDE0m.js} +13 -13
- package/dist/{InventoryBindingForm-DWJRCTf8.js → InventoryBindingForm-Cs-8ACDl.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-DH-xUQ5m.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Dm9Nna0r.js} +5 -5
- package/dist/{InventoryBindingSummary-DSwCvTnu.js → InventoryBindingSummary-BbhIvkwv.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-KDWRZCxm.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Ci0Wx2Gl.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Wuv2teWn.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BLOC3W1b.js} +1 -1
- package/dist/{PublishView-BSahQbqy.js → PublishView-CUNDP20R.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-C8umjCEU.js → PurchaseOrderPrintPreview-oUPrrGvK.js} +2 -2
- package/dist/{ReceiveRequestView-Bf5dAcun.js → ReceiveRequestView-CxcE8Azw.js} +26 -26
- package/dist/{RecipeView-wU9u23Zp.js → RecipeView-CdN4CJal.js} +1104 -1117
- package/dist/{SettingsView-C5Uc6h0A.js → SettingsView-B5QKC4i7.js} +4 -4
- package/dist/{StockView-QF68mXtU.js → StockView-By0MuX62.js} +19 -19
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Cgw8EDXb.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-C7Elh3p_.js} +1 -1
- package/dist/{SupplierView-xBONJSsg.js → SupplierView-apsm42Mq.js} +12 -12
- package/dist/{SurchargeView-BK8aNKZl.js → SurchargeView-B-G77ghZ.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-tsuedeNl.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DlhMQg5r.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BXVa7pt5.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-CmYIHCe2.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CVRD5iri.js → TransferDetails.vue_vue_type_script_setup_true_lang-24nRAago.js} +20 -20
- package/dist/TransferTemplateView-BBIIu12F.js +2327 -0
- package/dist/{UnitCostHistoryView-BS0nrbkD.js → UnitCostHistoryView-CG-6grmh.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CeD0qWRC.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DtmY7fLw.js} +5 -5
- package/dist/{UnitView-DsKX7DM0.js → UnitView-CIrL8HXK.js} +7 -7
- package/dist/{WarehouseView-DRZaGu80.js → WarehouseView-Bvd72APe.js} +5 -5
- package/dist/{WastageTemplateView-CtMSWKFj.js → WastageTemplateView-DHej2xrY.js} +14 -14
- package/dist/api/closing-draft.d.ts +6 -0
- package/dist/{app-DYMYQwvV.js → app-BCF9ZpO-.js} +16381 -14374
- package/dist/app.d.ts +268 -0
- package/dist/app.js +1 -1
- package/dist/{closing-template-Cxsa4j_W.js → closing-template-CIuRAYD3.js} +1 -1
- package/dist/{date2-BdXL0GG5.js → date2-DJVh7XJh.js} +1 -1
- package/dist/{dayjs.min-LoBFKjU2.js → dayjs.min-HcfNNaXG.js} +1 -1
- package/dist/{decimal-BFFta-yv.js → decimal-BZ-WtkK6.js} +2 -2
- package/dist/{defineDeepModel-CCZ3fqXQ.js → defineDeepModel-D06G28ot.js} +1 -1
- package/dist/{duplicate-template-C2Qho2Ig.js → duplicate-template-y-uKyjAx.js} +1 -1
- package/dist/{feature-Dt5ZFkZR.js → feature-DW0OW8Zl.js} +2 -2
- package/dist/{format-time-from-id-LqoWbcB4.js → format-time-from-id-CrGnGtJV.js} +1 -1
- package/dist/format-unit-display-DVEnGOV-.js +1432 -0
- package/dist/{import-export.helper-DogBd6aS.js → import-export.helper-CPoS7Xw2.js} +6 -6
- package/dist/{index-D0xsiYLO.js → index-BAI_qEVG.js} +1 -1
- package/dist/{index-2DNXazDV.js → index-BF_ER6cD.js} +3 -3
- package/dist/{index-IMHyRNdu.js → index-BSLoykmu.js} +1 -1
- package/dist/{inventory-core-dart.default-BkcD7c_a.js → inventory-core-dart.default-B8GRBHwH.js} +1 -1
- package/dist/{lz-string-CgecKowu.js → lz-string-DllDsJgA.js} +1 -1
- package/dist/{netsuite-9qEVrdMv.js → netsuite-BdXvv_AI.js} +2 -2
- package/dist/{number-DSMFbPf0.js → number-fWsZU3Us.js} +3 -3
- package/dist/{predefined-templates-OZoiOUoA.js → predefined-templates-C-9FNSkn.js} +1 -1
- package/dist/{purchase-order-template-CUee1L_x.js → purchase-order-template-DDMRkK1M.js} +1 -1
- package/dist/{recalculationUtils-CPcCUHIm.js → recalculationUtils-17E1-6g0.js} +1 -1
- package/dist/{rules-CMNaUkUU.js → rules-clVHbjpg.js} +2 -2
- package/dist/{stock-BOaUT0Y3.js → stock-ZvR0DmAv.js} +1 -1
- package/dist/{supplier-BAbQZL7x.js → supplier-BnYLExem.js} +2 -2
- package/dist/{surcharge-C5tQ0vs0.js → surcharge-CYjKFXbG.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-CSmRb5Ds.js → uom-rules-C_eQhUkx.js} +1 -1
- package/dist/{use-ingredient-select-dialog-B9XYlxjA.js → use-ingredient-select-dialog-ClGmxwFU.js} +16 -16
- package/dist/{use-inventory-binding-dialog-BzIb4yxm.js → use-inventory-binding-dialog-CpKdIwMo.js} +2 -2
- package/dist/use-template-enabled-locations-deP7LXci.js +132 -0
- package/dist/{use-transfer-locations-Di5ozOgU.js → use-transfer-locations-D3nYdH_3.js} +2 -2
- package/dist/{useHrmPermission-N8GPw9P_.js → useHrmPermission-CMTlJ6AP.js} +1 -1
- package/dist/{useNavigationMenu-BLnGMLsm.js → useNavigationMenu-BxATo1IC.js} +2 -2
- package/dist/{useSseClient-BQtJfryY.js → useSseClient-CGJVJAXa.js} +3 -3
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftApprovalDialog.vue.d.ts +800 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +40 -0
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupAction.vue.d.ts +21 -0
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupCard.vue.d.ts +20 -0
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupDetailSideSheet.vue.d.ts +823 -0
- package/dist/views/closing-draft/components/closing-draft-groups/ClosingGroupGrid.vue.d.ts +20 -0
- package/dist/views/closing-draft/composables/use-closing-draft-import.d.ts +10 -0
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1400 -133
- package/dist/views/closing-draft/helpers/closing-draft-summary.helper.d.ts +11 -0
- package/dist/views/closing-draft/helpers/closing-group-detail.helper.d.ts +68 -0
- package/dist/views/closing-draft/helpers/closing-group-status.helper.d.ts +6 -0
- package/dist/views/closing-draft/helpers/closing-groups.helper.d.ts +28 -0
- package/dist/views/closing-draft/helpers/merge-closing-draft-items.helper.d.ts +9 -0
- package/dist/views/closing-template/components/closing-template-form/components/ClosingTemplateGroupsEditor.vue.d.ts +31 -0
- package/dist/views/closing-template/components/closing-template-form/components/ClosingTemplateItem.vue.d.ts +164 -7
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +24 -88
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +108 -0
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +108 -0
- package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +3 -3
- package/dist/views/recipe/composables/use-recipe-bulk-editor.d.ts +3 -3
- package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorDialog.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep1.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep2.vue.d.ts +8 -0
- package/dist/views/transfer-template/components/template-item-bulk-editor/TemplateItemBulkEditorStep3.vue.d.ts +2 -0
- package/dist/views/transfer-template/composables/use-template-item-bulk-editor.d.ts +3225 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +4 -1
- package/dist/views/transfer-template/helpers/template-item-bulk-editor-export.d.ts +9 -0
- package/dist/{vue-i18n-DR8I1LQH.js → vue-i18n-DCgzd-Rs.js} +498 -498
- package/dist/{xlsx-D5-Cqx-l.js → xlsx-Cy0iFCJQ.js} +398 -398
- package/dist/{xlsx.util-DEdsfN6W.js → xlsx.util-D8wvUM2Y.js} +3 -3
- package/package.json +5 -5
- package/dist/ClosingDraftView-Y074sSoz.js +0 -3343
- package/dist/ClosingTemplateView-BcvKBWVJ.js +0 -2077
- package/dist/TransferTemplateView-Cm4evaK3.js +0 -1564
- package/dist/format-unit-display-CWqmpVa_.js +0 -1268
- package/dist/use-template-enabled-locations-V5iE0ywc.js +0 -146
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { a as A } from "./FmMultiselectDialog-Cwazmlw3.js";
|
|
2
|
-
import { u as S } from "./app-DYMYQwvV.js";
|
|
3
|
-
import { useI18n as w, useCoreStore as i, useCustomAttributes as _ } from "@feedmepos/mf-common";
|
|
4
|
-
import { useDialog as C, components as p } from "@feedmepos/ui-library";
|
|
5
|
-
import { computed as r, h as c } from "vue";
|
|
6
|
-
function K(a) {
|
|
7
|
-
const f = C(), n = S(), { t: l } = w(), b = r(() => i().restaurants.value.reduce((t, s) => (t[s._id] = s.customAttributes || {}, t), {})), u = r(
|
|
8
|
-
() => i().restaurants.value.filter((o) => {
|
|
9
|
-
var t;
|
|
10
|
-
return (t = o.profile) == null ? void 0 : t.code;
|
|
11
|
-
}).map((o) => ({ value: o.profile.code, label: `${o.profile.name} (${o.profile.code})` }))
|
|
12
|
-
), { attributes: y } = _({
|
|
13
|
-
valueSource: i().restaurants,
|
|
14
|
-
entity: "restaurant"
|
|
15
|
-
});
|
|
16
|
-
function L() {
|
|
17
|
-
var d;
|
|
18
|
-
const o = a.getLocations() ?? [], t = n.locationById, s = o.filter((e) => !t[e.doc._id]);
|
|
19
|
-
f.open({
|
|
20
|
-
title: "Select at least one location",
|
|
21
|
-
contentComponent: c(
|
|
22
|
-
A,
|
|
23
|
-
{
|
|
24
|
-
modelValue: ((d = h.value) == null ? void 0 : d.map((e) => e.doc._id)) ?? [],
|
|
25
|
-
items: n.locations.map((e) => ({
|
|
26
|
-
label: `${e.name}(${e.doc.profile.code ?? "--"})`,
|
|
27
|
-
sublabel: e.type,
|
|
28
|
-
value: e.doc._id,
|
|
29
|
-
customAttributes: {
|
|
30
|
-
...b.value[e.doc._id],
|
|
31
|
-
state: e.doc.profile.address.state,
|
|
32
|
-
...e.doc.profile.code ? { outlet: e.doc.profile.code } : {}
|
|
33
|
-
}
|
|
34
|
-
})),
|
|
35
|
-
filterAttributes: [
|
|
36
|
-
...y.value,
|
|
37
|
-
{
|
|
38
|
-
type: "string",
|
|
39
|
-
key: "state",
|
|
40
|
-
entity: "location",
|
|
41
|
-
values: [
|
|
42
|
-
...new Set(
|
|
43
|
-
n.locations.map((e) => e.doc.profile.address.state).filter(Boolean)
|
|
44
|
-
)
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
...u.value.length > 0 ? [
|
|
48
|
-
{
|
|
49
|
-
type: "string",
|
|
50
|
-
key: "outlet",
|
|
51
|
-
entity: "restaurant",
|
|
52
|
-
options: u.value
|
|
53
|
-
}
|
|
54
|
-
] : []
|
|
55
|
-
],
|
|
56
|
-
attributeKey: "customAttributes"
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
appendList() {
|
|
60
|
-
return s.map(
|
|
61
|
-
(e) => c(
|
|
62
|
-
p.FmListItem,
|
|
63
|
-
{
|
|
64
|
-
label: `${e.name}(${e.doc.profile.code ?? "--"})`,
|
|
65
|
-
sublabel: "This location is not manageable by your account.",
|
|
66
|
-
disabled: !0
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
prepend: c(p.FmCheckbox, {
|
|
70
|
-
modelValue: !0,
|
|
71
|
-
value: "",
|
|
72
|
-
disabled: !0
|
|
73
|
-
})
|
|
74
|
-
}
|
|
75
|
-
)
|
|
76
|
-
);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
contentComponentProps: {},
|
|
81
|
-
primaryActions: {
|
|
82
|
-
text: l("common.confirm"),
|
|
83
|
-
close: !0
|
|
84
|
-
},
|
|
85
|
-
secondaryActions: {
|
|
86
|
-
text: l("common.close"),
|
|
87
|
-
close: !0
|
|
88
|
-
}
|
|
89
|
-
}).onPrimary((e) => {
|
|
90
|
-
const m = [...n.locations.filter((v) => e.includes(v.doc._id)), ...s];
|
|
91
|
-
m.length ? a.setLocations(m) : a.setLocations(null);
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
const h = r(() => {
|
|
95
|
-
var t;
|
|
96
|
-
const o = /* @__PURE__ */ new Set([...n.locations.map((s) => s.doc._id)]);
|
|
97
|
-
return (t = a.getLocations()) == null ? void 0 : t.filter((s) => o.has(s.doc._id));
|
|
98
|
-
}), g = r(() => {
|
|
99
|
-
const o = a.getLocations();
|
|
100
|
-
return o ? o.reduce(
|
|
101
|
-
(t, s) => {
|
|
102
|
-
switch (s.type) {
|
|
103
|
-
case "restaurant": {
|
|
104
|
-
t[0].restaurants += 1;
|
|
105
|
-
break;
|
|
106
|
-
}
|
|
107
|
-
case "warehouse": {
|
|
108
|
-
t[0].warehouses += 1;
|
|
109
|
-
break;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
return t[0][s.type] += 1, t;
|
|
113
|
-
},
|
|
114
|
-
[
|
|
115
|
-
{
|
|
116
|
-
restaurants: 0,
|
|
117
|
-
warehouses: 0
|
|
118
|
-
}
|
|
119
|
-
]
|
|
120
|
-
) : [
|
|
121
|
-
{
|
|
122
|
-
restaurants: "All",
|
|
123
|
-
warehouses: "All"
|
|
124
|
-
}
|
|
125
|
-
];
|
|
126
|
-
});
|
|
127
|
-
return {
|
|
128
|
-
promptSelectLocations: L,
|
|
129
|
-
columnDefs: [
|
|
130
|
-
{
|
|
131
|
-
accessorKey: "restaurants",
|
|
132
|
-
header: () => "Restaurants",
|
|
133
|
-
enableSorting: !1
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
accessorKey: "warehouses",
|
|
137
|
-
header: () => "Warehouses",
|
|
138
|
-
enableSorting: !1
|
|
139
|
-
}
|
|
140
|
-
],
|
|
141
|
-
rowData: g
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
export {
|
|
145
|
-
K as u
|
|
146
|
-
};
|