@feedmepos/mf-inventory-portal 0.0.16 → 0.0.17-dev.2
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/{ApprovalView-UPMlfF5g.js → ApprovalView-DuDqkTeC.js} +9 -9
- package/dist/{BindingsDialog-DLiropIq.js → BindingsDialog-0Q6o47Up.js} +5 -5
- package/dist/{BindingsPicker-DhCy4s2z.js → BindingsPicker-k4drpC9m.js} +6 -6
- package/dist/{BindingsTable-Dhps_Bmp.js → BindingsTable-B5hZHvuD.js} +26 -26
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DaGRG8JZ.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CoiUbqV-.js} +1 -1
- package/dist/{FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C4CDnbbR.js → FmMultiselectDialog.vue_vue_type_script_setup_true_lang-C1TGiM-x.js} +9 -9
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BOH3bs27.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DsjnPaTj.js} +3 -3
- package/dist/IngredientsView-D3uTxXqO.js +1637 -0
- package/dist/{IntegrationView-CzsOzr40.js → IntegrationView-B1iYpADR.js} +4 -4
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-mXNWcOA1.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-GinKxaoG.js} +6 -6
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BurvAmK1.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-BDznyTkG.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-ClzPjQT5.js → PurchaseOrderPrintPreview-BJ4uktza.js} +4 -4
- package/dist/{ReceiveRequestView-DMwEXkO8.js → ReceiveRequestView-BOvNswDa.js} +13 -13
- package/dist/RecipeView-4I-OWCb6.js +581 -0
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-Dov3Uq2z.js +64 -0
- package/dist/StockForecast.vue_vue_type_style_index_0_lang-B5EK101t.js +58 -0
- package/dist/StockView-D2cS56Qi.js +1960 -0
- package/dist/{SupplierView-mKXvaKxV.js → SupplierView-CZPwQkMt.js} +8 -8
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-CGQsxC-o.js → TransferDetails.vue_vue_type_script_setup_true_lang-CqKi2NMD.js} +5 -5
- package/dist/{UnitView-Blc7xGVs.js → UnitView-CV7Od1Jw.js} +7 -7
- package/dist/{WarehouseView-Bto12ePn.js → WarehouseView-BtQJYBl0.js} +4 -4
- package/dist/api/inventory.d.ts +102 -0
- package/dist/api/stock.d.ts +8 -0
- package/dist/{app-6F9Nq1nz.js → app-B4nF7QvC.js} +1037 -1019
- package/dist/app.js +1 -1
- package/dist/components/FmDroppableField.vue.d.ts +75 -0
- package/dist/components/StockForecast.vue.d.ts +1 -1
- package/dist/components/StockForecastProps.d.ts +7 -0
- package/dist/{date2-BfJmVTjj.js → date2-BwR5G9qy.js} +4 -4
- package/dist/{dayjs.min-fpInHghy.js → dayjs.min-DGsqRPL2.js} +171 -136
- package/dist/{decimal-CCOpA0Pu.js → decimal-DGwTROX2.js} +1 -1
- package/dist/{fuzzy-5KUpKfV-.js → fuzzy-D903uHSq.js} +1 -1
- package/dist/helper/random.d.ts +2 -0
- package/dist/helper/xlsx.util.d.ts +1 -0
- package/dist/{init-date-range-BFXfLRPQ.js → init-date-range-CWbgpQ8e.js} +1 -1
- package/dist/{layout-17a6ifdn.js → layout-8DgajRcn.js} +12 -12
- package/dist/{rules-lFRUMKT0.js → rules-Dq4Ee_PT.js} +1 -1
- package/dist/{stock-estimate-BpYbGfCv.js → stock-estimate-4jgl53Nk.js} +2 -2
- package/dist/stores/inventory.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-DcmzVKNJ.js → supplier-Bv4RiUno.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{use-inventory-binding-dialog-CGJklwZu.js → use-inventory-binding-dialog-h8HlGzcz.js} +2 -2
- package/dist/views/ingredients/components/import-ingredients/ImportIngredientItem.vue.d.ts +12 -0
- package/dist/views/ingredients/components/import-ingredients/ImportIngredientItemProps.d.ts +6 -0
- package/dist/views/ingredients/components/import-ingredients/ImportIngredients.vue.d.ts +2 -0
- package/dist/views/ingredients/components/import-ingredients/ImportIngredientsProps.d.ts +5 -0
- package/dist/views/ingredients/helper/import-export.helper.d.ts +45 -0
- package/dist/views/ingredients/helper/sku-days-threshold.helper.d.ts +1 -0
- package/dist/views/ingredients/helper/sku-id.helper.d.ts +1 -0
- package/dist/views/stock/components/StockRecalculateDialog.vue.d.ts +9 -0
- package/dist/xlsx-wBLs03H5.js +24004 -0
- package/dist/xlsx.util-DxDZloWT.js +107 -0
- package/package.json +6 -6
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-pxmVRIYW.js +0 -49
- package/dist/IngredientsView-BugOG1Jr.js +0 -832
- package/dist/RecipeView-DueXRRaL.js +0 -596
- package/dist/SingleColumnLayout.vue_vue_type_script_setup_true_lang-CFjO4TPG.js +0 -53
- package/dist/StockView-BN5rzuO5.js +0 -1887
- package/dist/util-CEVKTbZD.js +0 -18
- package/dist/xlsx-Cm2_c_X-.js +0 -15510
|
@@ -6,3 +6,4 @@ export declare function sheetToRowArray(sheet: WorkSheet): string[][];
|
|
|
6
6
|
export declare function cellArrayToMapByHeaderRow<T = Record<string, string>>(items: string[][], usingHeader: string[]): T[];
|
|
7
7
|
export declare function toSheet(data: any[][], header: string[], sheetName?: string): XLSX.WorkBook;
|
|
8
8
|
export declare function downloadExcel(workbook: WorkBook, filename: string): void;
|
|
9
|
+
export declare function readExcel(file: File): Promise<XLSX.WorkBook>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { components as
|
|
2
|
-
import { h as i, defineComponent as I, computed as
|
|
3
|
-
import {
|
|
4
|
-
const { FmMenu: S, FmButton: $, FmMenuItem: j } =
|
|
1
|
+
import { components as x, useBreakpoints as B } from "@feedmepos/ui-library";
|
|
2
|
+
import { h as i, defineComponent as I, computed as M, resolveComponent as R, openBlock as u, createBlock as _, normalizeClass as V, withCtx as L, createElementVNode as d, renderSlot as z, normalizeProps as N, guardReactiveProps as P, createElementBlock as c, Fragment as h, renderList as D, createVNode as k, unref as b, createCommentVNode as w } from "vue";
|
|
3
|
+
import { x as E } from "./app-B4nF7QvC.js";
|
|
4
|
+
const { FmMenu: S, FmButton: $, FmMenuItem: j } = x;
|
|
5
5
|
function Q(o, n) {
|
|
6
6
|
return i(
|
|
7
7
|
S,
|
|
@@ -68,15 +68,15 @@ const y = I({
|
|
|
68
68
|
actionColumnId: { default: "action" }
|
|
69
69
|
},
|
|
70
70
|
setup(o) {
|
|
71
|
-
const n = o, t =
|
|
71
|
+
const n = o, t = M(
|
|
72
72
|
() => n.row.getVisibleCells().reduce(
|
|
73
73
|
(e, r) => (e[r.column.id] = r, e),
|
|
74
74
|
{}
|
|
75
75
|
)
|
|
76
76
|
);
|
|
77
77
|
return (e, r) => {
|
|
78
|
-
const F =
|
|
79
|
-
return u(),
|
|
78
|
+
const F = R("FmListItem");
|
|
79
|
+
return u(), _(F, {
|
|
80
80
|
class: V([
|
|
81
81
|
"px-12 py-16 w-full border-b border-fm-color-neutral-gray-100",
|
|
82
82
|
{
|
|
@@ -103,11 +103,11 @@ const y = I({
|
|
|
103
103
|
key: l.id
|
|
104
104
|
}, [
|
|
105
105
|
l.column.id !== e.actionColumnId ? (u(), c("div", q, [
|
|
106
|
-
k(
|
|
106
|
+
k(b(y), {
|
|
107
107
|
render: (g = (C = l.column) == null ? void 0 : C.columnDef) == null ? void 0 : g.cell,
|
|
108
108
|
props: (v = l.getContext) == null ? void 0 : v.call(l)
|
|
109
109
|
}, null, 8, ["render", "props"])
|
|
110
|
-
])) :
|
|
110
|
+
])) : w("", !0)
|
|
111
111
|
], 64);
|
|
112
112
|
}), 128))
|
|
113
113
|
])
|
|
@@ -115,12 +115,12 @@ const y = I({
|
|
|
115
115
|
]),
|
|
116
116
|
t.value[e.actionColumnId ?? ""] ? (u(), c("div", G, [
|
|
117
117
|
d("div", null, [
|
|
118
|
-
k(
|
|
118
|
+
k(b(y), {
|
|
119
119
|
render: (p = (s = (m = t.value[e.actionColumnId ?? ""]) == null ? void 0 : m.column) == null ? void 0 : s.columnDef) == null ? void 0 : p.cell,
|
|
120
120
|
props: (f = (a = t.value[e.actionColumnId ?? ""]) == null ? void 0 : a.getContext) == null ? void 0 : f.call(a)
|
|
121
121
|
}, null, 8, ["render", "props"])
|
|
122
122
|
])
|
|
123
|
-
])) :
|
|
123
|
+
])) : w("", !0)
|
|
124
124
|
])
|
|
125
125
|
];
|
|
126
126
|
}),
|
|
@@ -132,7 +132,7 @@ const y = I({
|
|
|
132
132
|
function W() {
|
|
133
133
|
return {
|
|
134
134
|
get tableHeight() {
|
|
135
|
-
const o = E(), { breakpoints: n } =
|
|
135
|
+
const o = E(), { breakpoints: n } = B();
|
|
136
136
|
return o.isIframeMode ? n.value.xs || n.value.sm ? {
|
|
137
137
|
height: "calc(100dvh - 180px)"
|
|
138
138
|
} : {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { u as l, a as f } from "./xlsx-
|
|
1
|
+
import { u as l, a as f } from "./xlsx-wBLs03H5.js";
|
|
2
2
|
import { defineComponent as h, resolveComponent as p, openBlock as y, createElementBlock as _, renderSlot as v, createVNode as d, withCtx as g, createElementVNode as F, ref as k } from "vue";
|
|
3
|
-
import {
|
|
3
|
+
import { h as x, f as I } from "./app-B4nF7QvC.js";
|
|
4
4
|
import { useCoreStore as w } from "@feedmepos/mf-common";
|
|
5
5
|
function S(t, e) {
|
|
6
6
|
return e.map((r) => typeof r.selector == "function" ? r.selector(t) : t[r.selector]);
|
|
@@ -2059,5 +2059,6 @@ export declare function useInventoryStore(): {
|
|
|
2059
2059
|
deleteRecipe({ _id }: FdoInventoryRecipe): Promise<void>;
|
|
2060
2060
|
createSku(sku: FdoInventorySku): Promise<void>;
|
|
2061
2061
|
updateSku(sku: FdoInventorySku): Promise<void>;
|
|
2062
|
+
importSkus(skus: FdtoBulkSkuRequest): Promise<void>;
|
|
2062
2063
|
deleteSku({ _id }: FdoInventorySku): Promise<void>;
|
|
2063
2064
|
};
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.v-enter-active[data-v-9581df70],.v-leave-active[data-v-9581df70]{transition:opacity .1s ease}.v-enter-from[data-v-9581df70],.v-leave-to[data-v-9581df70]{opacity:0}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.map-button[data-v-ea67d23a]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-54384fc1]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-54384fc1],table th[data-v-54384fc1]{padding:3px 5px;vertical-align:top}hr[data-v-54384fc1]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-54384fc1]{text-align:left}.text-right[data-v-54384fc1]{text-align:right}.purchase-box[data-v-54384fc1]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-54384fc1]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-54384fc1]{font-weight:600;color:#333}.sub-header[data-v-54384fc1]{font-size:18px;color:#333}.caption[data-v-54384fc1]{font-size:14px;color:#666}.address[data-v-54384fc1]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-54384fc1]{margin-top:30px}.item-header[data-v-54384fc1]{border:0px;background:#ccc;color:#444}
|
|
1
|
+
.v-enter-active[data-v-9581df70],.v-leave-active[data-v-9581df70]{transition:opacity .1s ease}.v-enter-from[data-v-9581df70],.v-leave-to[data-v-9581df70]{opacity:0}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.fm-droppable-field[data-v-311b22a0]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-311b22a0]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-droppable-field__container--disabled[data-v-311b22a0]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-droppable-field__container--dragging[data-v-311b22a0]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-311b22a0]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-311b22a0]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-311b22a0]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-311b22a0]:disabled{display:none;cursor:not-allowed}.map-button[data-v-ea67d23a]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-54384fc1]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-54384fc1],table th[data-v-54384fc1]{padding:3px 5px;vertical-align:top}hr[data-v-54384fc1]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-54384fc1]{text-align:left}.text-right[data-v-54384fc1]{text-align:right}.purchase-box[data-v-54384fc1]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-54384fc1]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-54384fc1]{font-weight:600;color:#333}.sub-header[data-v-54384fc1]{font-size:18px;color:#333}.caption[data-v-54384fc1]{font-size:14px;color:#666}.address[data-v-54384fc1]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-54384fc1]{margin-top:30px}.item-header[data-v-54384fc1]{border:0px;background:#ccc;color:#444}
|