@feedmepos/mf-inventory-portal 0.0.22-dev.9 → 0.0.23-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-Y3Ez8Rjf.js +255 -0
- package/dist/ApprovalView-BUU1G4Q2.js +141 -0
- package/dist/{BindingsDialog-GzX9Bo2g.js → BindingsDialog-8wc4Q0JQ.js} +13 -12
- package/dist/{BindingsPicker-SbOetc0-.js → BindingsPicker-DGWN1LQc.js} +19 -18
- package/dist/{BindingsTable-CAcE5y8U.js → BindingsTable-7NJP2jT6.js} +20 -16
- package/dist/ClosingTemplateView-9s7vmwaT.js +1833 -0
- package/dist/FmDroppableField-8RzKjEdL.js +154 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-B4DDh9-a.js +267 -0
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-5DINn0ZB.js +436 -0
- package/dist/FmMultiselectDialog-7hok9sJP.js +411 -0
- package/dist/FmUnitInput.vue_vue_type_script_setup_true_lang-CxR1FCft.js +326 -0
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-FQ0HjuL3.js +51 -0
- package/dist/IngredientGroupView-C3maHTCg.js +610 -0
- package/dist/IngredientsView-DCR3IBkR.js +1613 -0
- package/dist/IntegrationView-gO4h89Wj.js +1227 -0
- package/dist/InventoryBindingForm-dh3GeyG-.js +4 -0
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CJuo3i7W.js +278 -0
- package/dist/InventoryBindingSummary-BPoPcEoe.js +75 -0
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-1FCwvO8A.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-olm8sZKt.js} +1 -1
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BezTV43V.js +116 -0
- package/dist/{PurchaseOrderPrintPreview-5HIWHR_f.js → PurchaseOrderPrintPreview-Dix_fIoo.js} +14 -13
- package/dist/ReceiveRequestView-DdPiYb2P.js +4082 -0
- package/dist/RecipeView-C4-a4IEW.js +597 -0
- package/dist/Standalone.vue.d.ts +2 -0
- package/dist/StockView-Du2txrIP.js +7778 -0
- package/dist/SupplierView-D_09FbQh.js +1474 -0
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9MOos--.js +1144 -0
- package/dist/TransferTemplateView-j3CRy6Lc.js +1262 -0
- package/dist/{UnitView-BpU0Yk7X.js → UnitView-BXw2Vwq1.js} +30 -29
- package/dist/{WarehouseView-DqxWgogc.js → WarehouseView-CKamiETC.js} +205 -202
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/api/bill.d.ts +86 -240
- package/dist/api/closing-template.d.ts +6 -4
- package/dist/api/inventory.d.ts +281 -88
- package/dist/api/netsuite.d.ts +32 -1
- package/dist/api/purchase-order-template.d.ts +4 -2
- package/dist/api/supplier.d.ts +1 -0
- package/dist/app-GUbzqEtW.js +33456 -0
- package/dist/app.d.ts +259 -6
- package/dist/app.js +8 -7
- package/dist/array-hChJVZLE.js +43 -0
- package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
- package/dist/components/FmMinMaxInputRules.d.ts +2 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
- package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
- package/dist/components/FmUnitInputRules.d.ts +2 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
- package/dist/components/map/GoogleMap.vue.d.ts +4 -4
- package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
- package/dist/date2-CLE9fB2R.js +117 -0
- package/dist/dayjs.min-CY1d38w7.js +282 -0
- package/dist/{decimal-DWbwRn_v.js → decimal-SIjO6Mjw.js} +1 -1
- package/dist/defineDeepModel-l40rX7kr.js +13 -0
- package/dist/extensions/array.d.ts +1 -0
- package/dist/feature-BXruKUhX.js +78 -0
- package/dist/{format-time-from-id-BnmaRuab.js → format-time-from-id-CcFsBXmk.js} +1 -1
- package/dist/format-unit-display-DEKg8cJm.js +1198 -0
- package/dist/fuzzy-CVOV9zJc.js +41 -0
- package/dist/googlemap-Dm8ERVai.js +97 -0
- package/dist/helper/rules.d.ts +7 -0
- package/dist/helper/rules.spec.d.ts +1 -0
- package/dist/helper/xlsx.util.d.ts +7 -0
- package/dist/index-BX5KZXhI.js +22279 -0
- package/dist/index-CVsyOEb1.js +10545 -0
- package/dist/index-m9e9nYfl.js +45 -0
- package/dist/netsuite-DAKRv7zr.js +146 -0
- package/dist/normalizeArguments-DP7Hrren.js +1552 -0
- package/dist/router/name.d.ts +1 -0
- package/dist/rules-DlnN8IP3.js +198 -0
- package/dist/stores/integration/foodmarkethub.d.ts +391 -0
- package/dist/stores/integration/index.d.ts +7 -0
- package/dist/stores/integration/netsuite.d.ts +102 -0
- package/dist/stores/inventory.d.ts +295 -9
- package/dist/stores/location.d.ts +508 -485
- package/dist/stores/supplier.d.ts +124 -4
- package/dist/stores/warehouse.d.ts +7 -4
- package/dist/style.css +1 -1
- package/dist/supplier-B21WlSAM.js +77 -0
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-inventory-binding-dialog-D3x6xj2O.js +95 -0
- package/dist/{use-template-enabled-locations-2-ClBq9FjN.js → use-template-enabled-locations-2-z-b-UXef.js} +9 -8
- package/dist/useTabStorage-BkIVScW_.js +25 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
- package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
- package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1002
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1013
- package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
- package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
- package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
- package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
- package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
- package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
- package/dist/views/integration/NetSuite.vue.d.ts +2 -0
- package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
- package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1913 -53
- package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2370 -327
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2304 -261
- package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
- package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
- package/dist/views/stock/components/StockRecordCard.vue.d.ts +43 -120
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +34 -4
- package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
- package/dist/views/stock/helper/compute-summary-total.d.ts +2 -2
- package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
- package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
- package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
- package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -82
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +38 -1
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
- package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1279 -1528
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +2207 -446
- package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
- package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -251
- package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
- package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +14 -8
- package/dist/{xlsx-DiOKvJ6l.js → xlsx-6mM1eNiL.js} +1525 -1525
- package/dist/xlsx.util-BLftcF4q.js +78 -0
- package/package.json +7 -4
- package/dist/ApprovalView-BPsScR5_.js +0 -129
- package/dist/ClosingTemplateView-DECwEnlK.js +0 -1066
- package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DnogYrRE.js +0 -372
- package/dist/IngredientsView-8fT1Ljd5.js +0 -1758
- package/dist/IntegrationView-CjGLRM78.js +0 -1141
- package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-DlhNc8Vk.js +0 -88
- package/dist/ReceiveRequestView-CXZv8g5U.js +0 -215
- package/dist/RecipeView-sB0Lgmob.js +0 -581
- package/dist/StockView-CY2kNohB.js +0 -1892
- package/dist/SupplierView-DTqeZPts.js +0 -827
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-BBby29tW.js +0 -762
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-ByNQap9n.js +0 -1498
- package/dist/TransferTemplateView-DkRVfAox.js +0 -1277
- package/dist/app-BuyAj4kw.js +0 -69068
- package/dist/defineDeepModel-DuVmbMwq.js +0 -13
- package/dist/id-to-date-CI5Vv0Ji.js +0 -30
- package/dist/purchase-order-transaction-type-DrFJFvtK.js +0 -676
- package/dist/stores/netsuite.d.ts +0 -49
- package/dist/supplier-BQyK2eSZ.js +0 -69
- package/dist/xlsx.util-CZ7zYxdP.js +0 -109
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { J as v } from "./app-GUbzqEtW.js";
|
|
2
|
+
var x = { exports: {} };
|
|
3
|
+
(function(h, m) {
|
|
4
|
+
(function() {
|
|
5
|
+
var o = {};
|
|
6
|
+
h.exports = o, o.simpleFilter = function(e, n) {
|
|
7
|
+
return n.filter(function(r) {
|
|
8
|
+
return o.test(e, r);
|
|
9
|
+
});
|
|
10
|
+
}, o.test = function(e, n) {
|
|
11
|
+
return o.match(e, n) !== null;
|
|
12
|
+
}, o.match = function(e, n, r) {
|
|
13
|
+
r = r || {};
|
|
14
|
+
var t = 0, i = [], c = n.length, f = 0, u = 0, l = r.pre || "", d = r.post || "", g = r.caseSensitive && n || n.toLowerCase(), s;
|
|
15
|
+
e = r.caseSensitive && e || e.toLowerCase();
|
|
16
|
+
for (var a = 0; a < c; a++)
|
|
17
|
+
s = n[a], g[a] === e[t] ? (s = l + s + d, t += 1, u += 1 + u) : u = 0, f += u, i[i.length] = s;
|
|
18
|
+
return t === e.length ? (f = g === e ? 1 / 0 : f, { rendered: i.join(""), score: f }) : null;
|
|
19
|
+
}, o.filter = function(e, n, r) {
|
|
20
|
+
return !n || n.length === 0 ? [] : typeof e != "string" ? n : (r = r || {}, n.reduce(function(t, i, c, f) {
|
|
21
|
+
var u = i;
|
|
22
|
+
r.extract && (u = r.extract(i));
|
|
23
|
+
var l = o.match(e, u, r);
|
|
24
|
+
return l != null && (t[t.length] = {
|
|
25
|
+
string: l.rendered,
|
|
26
|
+
score: l.score,
|
|
27
|
+
index: c,
|
|
28
|
+
original: i
|
|
29
|
+
}), t;
|
|
30
|
+
}, []).sort(function(t, i) {
|
|
31
|
+
var c = i.score - t.score;
|
|
32
|
+
return c || t.index - i.index;
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
})(x);
|
|
37
|
+
var z = x.exports;
|
|
38
|
+
const S = /* @__PURE__ */ v(z);
|
|
39
|
+
export {
|
|
40
|
+
S as f
|
|
41
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { ref as p } from "vue";
|
|
2
|
+
class r {
|
|
3
|
+
constructor(t = null, e = {}) {
|
|
4
|
+
if (this.apiKey = t, this.options = e, typeof window > "u")
|
|
5
|
+
throw new Error("google-maps is supported only in browser environment");
|
|
6
|
+
}
|
|
7
|
+
load() {
|
|
8
|
+
return typeof this.api < "u" ? Promise.resolve(this.api) : typeof this.loader < "u" ? this.loader : (window[r.CALLBACK_NAME] = () => {
|
|
9
|
+
if (this.api = window.google, typeof this.resolve > "u")
|
|
10
|
+
throw new Error("Should not happen");
|
|
11
|
+
this.resolve(this.api);
|
|
12
|
+
}, window.gm_authFailure = () => {
|
|
13
|
+
if (typeof this.reject > "u")
|
|
14
|
+
throw new Error("Should not happen");
|
|
15
|
+
this.reject(new Error("google-maps: authentication error"));
|
|
16
|
+
}, this.loader = new Promise((t, e) => {
|
|
17
|
+
this.resolve = t, this.reject = e;
|
|
18
|
+
const o = document.createElement("script");
|
|
19
|
+
o.src = this.createUrl(), o.async = !0, o.onerror = (n) => e(n), document.head.appendChild(o);
|
|
20
|
+
}));
|
|
21
|
+
}
|
|
22
|
+
createUrl() {
|
|
23
|
+
const t = [
|
|
24
|
+
`callback=${r.CALLBACK_NAME}`
|
|
25
|
+
];
|
|
26
|
+
this.apiKey && t.push(`key=${this.apiKey}`);
|
|
27
|
+
for (let e in this.options)
|
|
28
|
+
if (this.options.hasOwnProperty(e)) {
|
|
29
|
+
let o = this.options[e];
|
|
30
|
+
e === "version" && (e = "v"), e === "libraries" && (o = o.join(",")), t.push(`${e}=${o}`);
|
|
31
|
+
}
|
|
32
|
+
return `https://maps.googleapis.com/maps/api/js?${t.join("&")}`;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
r.CALLBACK_NAME = "_dk_google_maps_loader_cb";
|
|
36
|
+
const a = Object.freeze({
|
|
37
|
+
jb: {
|
|
38
|
+
lat: 1.492659,
|
|
39
|
+
lng: 103.7413591
|
|
40
|
+
}
|
|
41
|
+
}), s = p({});
|
|
42
|
+
function l() {
|
|
43
|
+
return {
|
|
44
|
+
// state
|
|
45
|
+
get _googleMap() {
|
|
46
|
+
return s.value._googleMap;
|
|
47
|
+
},
|
|
48
|
+
set _googleMap(i) {
|
|
49
|
+
s.value._googleMap = i;
|
|
50
|
+
},
|
|
51
|
+
// computed
|
|
52
|
+
get googleMap() {
|
|
53
|
+
if (!this._googleMap) throw new Error("Google Map is not initialized!");
|
|
54
|
+
return this._googleMap;
|
|
55
|
+
},
|
|
56
|
+
get isGoogleMapReady() {
|
|
57
|
+
return !!this._googleMap;
|
|
58
|
+
},
|
|
59
|
+
// actions
|
|
60
|
+
async initGoogleMap(i) {
|
|
61
|
+
if (this._googleMap) return;
|
|
62
|
+
const e = await new r(i, {
|
|
63
|
+
libraries: ["places"]
|
|
64
|
+
}).load();
|
|
65
|
+
this._googleMap = e;
|
|
66
|
+
},
|
|
67
|
+
getGeocoder() {
|
|
68
|
+
return new this.googleMap.maps.Geocoder();
|
|
69
|
+
},
|
|
70
|
+
getFirstMatchingAddress(i, t) {
|
|
71
|
+
return new Promise((e) => {
|
|
72
|
+
this.getGeocoder().geocode({ location: { lat: i, lng: t } }, (o) => {
|
|
73
|
+
if (o != null && o.length) {
|
|
74
|
+
const [n] = o;
|
|
75
|
+
e(n.formatted_address);
|
|
76
|
+
} else
|
|
77
|
+
e("");
|
|
78
|
+
});
|
|
79
|
+
});
|
|
80
|
+
},
|
|
81
|
+
getFirstMatchingCoordinate(i) {
|
|
82
|
+
return new Promise((t) => {
|
|
83
|
+
this.getGeocoder().geocode({ address: i }, (e) => {
|
|
84
|
+
if (e != null && e.length) {
|
|
85
|
+
const [{ geometry: o }] = e;
|
|
86
|
+
t([o.location.lng(), o.location.lat()]);
|
|
87
|
+
} else
|
|
88
|
+
t([a.jb.lng, a.jb.lat]);
|
|
89
|
+
});
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export {
|
|
95
|
+
a as c,
|
|
96
|
+
l as u
|
|
97
|
+
};
|
package/dist/helper/rules.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { ValidationResult } from 'node_modules/@feedmepos/ui-library/dist/composables/useValidation';
|
|
2
2
|
import { type AdjustmentAmount } from './number';
|
|
3
3
|
import type { ISelectItem } from '@feedmepos/ui-library';
|
|
4
|
+
import type { FdoDecimal } from '@feedmepos/core/entity';
|
|
4
5
|
export declare function Required(): (val: string) => true | "Required";
|
|
5
6
|
export declare function isAdjustmentAmount(val: any): val is AdjustmentAmount;
|
|
6
7
|
export declare function AtLeast(amount: number | AdjustmentAmount, message?: string | ((current: number) => string)): (val: any) => string | true;
|
|
@@ -20,3 +21,9 @@ export declare function MaximumPrecision(unit: FdoInventoryUnit, measurement?: F
|
|
|
20
21
|
};
|
|
21
22
|
export declare function MaximumPrecisionLiteral(precision: number, message?: string | ((precision: number) => string)): (val: string) => string | true;
|
|
22
23
|
export declare function Unique(pool: ISelectItem[], current?: string, message?: (item: ISelectItem) => string): (value: any) => string | true;
|
|
24
|
+
export declare function MultipleOf(n: number): {
|
|
25
|
+
(val: any): ValidationResult;
|
|
26
|
+
};
|
|
27
|
+
export declare function MultipleOf(n: FdoDecimal): {
|
|
28
|
+
(val: any): ValidationResult;
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -4,6 +4,13 @@ export declare function rowGenerator(range: string): Generator<number, void, unk
|
|
|
4
4
|
export declare function columnGenerator(range: string): Generator<string, void, unknown>;
|
|
5
5
|
export declare function sheetToRowArray(sheet: WorkSheet): string[][];
|
|
6
6
|
export declare function cellArrayToMapByHeaderRow<T = Record<string, string>>(items: string[][], usingHeader: string[]): T[];
|
|
7
|
+
/** @returns workbook instead, use toWorkSheet instead */
|
|
7
8
|
export declare function toSheet(data: any[][], header: string[], sheetName?: string): XLSX.WorkBook;
|
|
9
|
+
/** @returns workbook instead, use toWorkSheet instead */
|
|
10
|
+
export declare function toWorkSheet(data: any[][], header: string[]): XLSX.WorkSheet;
|
|
11
|
+
/** @returns workbook instead, use toWorkSheet instead */
|
|
12
|
+
export declare function toWorkBook<T extends {
|
|
13
|
+
[key: string]: XLSX.WorkSheet;
|
|
14
|
+
}>(workSheets: T, sheetNames?: (keyof T)[]): XLSX.WorkBook;
|
|
8
15
|
export declare function downloadExcel(workbook: WorkBook, filename: string): void;
|
|
9
16
|
export declare function readExcel(file: File): Promise<XLSX.WorkBook>;
|