@feedmepos/mf-inventory-portal 0.0.21-dev.7 → 0.0.22-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.
Files changed (50) hide show
  1. package/dist/{ApprovalView-BYJfdiYM.js → ApprovalView-CtH8I01g.js} +4 -4
  2. package/dist/{BindingsDialog-BryZK4Tg.js → BindingsDialog-DFrk_fyd.js} +1 -1
  3. package/dist/{BindingsPicker-IWAltg_U.js → BindingsPicker-400gISaV.js} +1 -1
  4. package/dist/{BindingsTable-DDwukKAy.js → BindingsTable-CnFKI6iP.js} +1 -1
  5. package/dist/ClosingTemplateView--8m8cua_.js +919 -0
  6. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CLBgszfX.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-B9RU_arW.js} +1 -1
  7. package/dist/{IngredientsView-DgSzNCNX.js → IngredientsView-CRTAgKJz.js} +3 -3
  8. package/dist/{IntegrationView-BtXzjG3j.js → IntegrationView-CNFTKqjk.js} +2 -2
  9. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sPzZAvKH.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VkiVLx1K.js} +1 -1
  10. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BYX1ubPe.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DkZrgqyr.js} +1 -1
  11. package/dist/{PurchaseOrderPrintPreview-Ke1-hYgN.js → PurchaseOrderPrintPreview-CJli-_Vn.js} +1 -1
  12. package/dist/{ReceiveRequestView-CE9BFQn3.js → ReceiveRequestView-DV_GDzJG.js} +6 -6
  13. package/dist/{RecipeView-K3f9W_AV.js → RecipeView-CTm_7oNG.js} +3 -3
  14. package/dist/{StockView-BH3wK8AT.js → StockView-DtHT2ulM.js} +6 -6
  15. package/dist/{SupplierView-DwVN-3IQ.js → SupplierView-B9A5R2Vm.js} +3 -3
  16. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-B0Vdby5t.js → TransferDetails.vue_vue_type_script_setup_true_lang-mUNCQTNw.js} +40 -39
  17. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-DijNNVgt.js → TransferDialog.vue_vue_type_script_setup_true_lang-BwkUuXqj.js} +493 -501
  18. package/dist/{TransferTemplateView-ikRXcgOO.js → TransferTemplateView-DnyenkGu.js} +454 -498
  19. package/dist/{UnitView-yexlK1KM.js → UnitView-BL-jtVuZ.js} +4 -4
  20. package/dist/{WarehouseView-BjBJrjbZ.js → WarehouseView-BkUv1792.js} +2 -2
  21. package/dist/api/closing-template.d.ts +7 -0
  22. package/dist/{app-BD7MP1Oe.js → app-C-z1MfF6.js} +3992 -3929
  23. package/dist/app.d.ts +35 -0
  24. package/dist/app.js +1 -1
  25. package/dist/{decimal-Ct-e_mRV.js → decimal-DZz-_lgE.js} +1 -1
  26. package/dist/defineDeepModel-7VQajdPt.js +13 -0
  27. package/dist/format-time-from-id-9XFszs1J.js +15 -0
  28. package/dist/{id-to-date-Chhy1kB3.js → id-to-date-Bkue77uI.js} +1 -1
  29. package/dist/layout/layout-routes.d.ts +0 -1
  30. package/dist/{purchase-order-transaction-type-Bqu6bNsx.js → purchase-order-transaction-type-DHzMBgFs.js} +90 -101
  31. package/dist/router/name.d.ts +1 -0
  32. package/dist/style.css +1 -1
  33. package/dist/{supplier-DErisCtS.js → supplier-C6YWXF2Y.js} +1 -1
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/use-template-enabled-locations-CFCfbaOd.js +57 -0
  36. package/dist/views/closing-template/ClosingTemplateView.vue.d.ts +2 -0
  37. package/dist/views/closing-template/components/closing-template-details/ClosingTemplateDetails.vue.d.ts +2 -0
  38. package/dist/views/closing-template/components/closing-template-details/ClosingTemplateDetailsProps.d.ts +8 -0
  39. package/dist/views/closing-template/components/closing-template-dialog/ClosingTemplateDialog.vue.d.ts +22 -0
  40. package/dist/views/closing-template/components/closing-template-dialog/ClosingTemplateDialogProps.d.ts +10 -0
  41. package/dist/views/closing-template/components/closing-template-form/ClosingTemplateForm.vue.d.ts +16 -0
  42. package/dist/views/closing-template/components/closing-template-form/ClosingTemplateFormProps.d.ts +7 -0
  43. package/dist/views/closing-template/components/closing-template-form/components/ClosingTemplateItem.vue.d.ts +18 -0
  44. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +79 -0
  45. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +2165 -0
  46. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +2084 -0
  47. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +1 -1
  48. package/dist/{xlsx-DyScN5Bf.js → xlsx-Dl6dAHFx.js} +1 -1
  49. package/dist/{xlsx.util-DEyeAnEa.js → xlsx.util-C1tUhDb8.js} +2 -2
  50. package/package.json +3 -3
@@ -0,0 +1,57 @@
1
+ import { j as u, y as p } from "./app-C-z1MfF6.js";
2
+ import { useI18n as L } from "@feedmepos/mf-common";
3
+ import { useDialog as f } from "@feedmepos/ui-library";
4
+ import { computed as c } from "vue";
5
+ function S(e) {
6
+ const m = f(), i = u(), { t: a } = L(), l = c({
7
+ get() {
8
+ return Array.isArray(e.getLocations());
9
+ },
10
+ set(t) {
11
+ t ? e.setLocations([]) : e.setLocations(null);
12
+ }
13
+ });
14
+ function r() {
15
+ var t;
16
+ m.open({
17
+ title: "Select at least one location",
18
+ contentComponent: p,
19
+ contentComponentProps: {
20
+ modelValue: ((t = s.value) == null ? void 0 : t.map((o) => o.doc._id)) ?? [],
21
+ items: i.locations.map((o) => ({
22
+ label: o.name,
23
+ sublabel: o.type,
24
+ value: o.doc._id
25
+ }))
26
+ },
27
+ primaryActions: {
28
+ text: a("common.confirm"),
29
+ close: !0
30
+ },
31
+ secondaryActions: {
32
+ text: a("common.close"),
33
+ close: !0
34
+ }
35
+ }).onPrimary((o) => {
36
+ e.setLocations(i.locations.filter((n) => o.includes(n.doc._id)));
37
+ });
38
+ }
39
+ const s = c(() => {
40
+ var o;
41
+ const t = /* @__PURE__ */ new Set([...i.locations.map((n) => n.doc._id)]);
42
+ return (o = e.getLocations()) == null ? void 0 : o.filter((n) => t.has(n.doc._id));
43
+ });
44
+ function d(t) {
45
+ var o;
46
+ e.setLocations((o = e.getLocations()) == null ? void 0 : o.filter((n) => n.doc._id !== t));
47
+ }
48
+ return {
49
+ enabledLocations: s,
50
+ enabledLocationsSwitch: l,
51
+ promptSelectLocations: r,
52
+ removeLocation: d
53
+ };
54
+ }
55
+ export {
56
+ S as u
57
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,8 @@
1
+ export interface ClosingTemplateDetailsProps {
2
+ template?: FdoClosingTemplate;
3
+ show?: boolean;
4
+ }
5
+ export interface ClosingTemplateDetailsEvents {
6
+ (event: 'update:show', show: boolean): void;
7
+ (event: 'action:edit'): void;
8
+ }
@@ -0,0 +1,22 @@
1
+ import type { ClosingTemplateDialogProps } from './ClosingTemplateDialogProps';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ClosingTemplateDialogProps>>, {
3
+ validateInputs: () => void;
4
+ resetInputsValidation: () => void;
5
+ resetInputs: () => void;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
+ "update:show": (show: boolean) => void;
8
+ submitted: () => void;
9
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ClosingTemplateDialogProps>>> & Readonly<{
10
+ "onUpdate:show"?: ((show: boolean) => any) | undefined;
11
+ onSubmitted?: (() => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
13
+ export default _default;
14
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
@@ -0,0 +1,10 @@
1
+ import type { FormMode } from '@/components/form/form-mode.enum';
2
+ export interface ClosingTemplateDialogProps {
3
+ mode?: FormMode;
4
+ modelValue?: FdoClosingTemplate;
5
+ show?: boolean;
6
+ }
7
+ export interface ClosingTemplateDialogEvents {
8
+ (event: 'update:show', show: boolean): void;
9
+ (event: 'submitted'): void;
10
+ }
@@ -0,0 +1,16 @@
1
+ import type { ClosingTemplateFormProps } from './ClosingTemplateFormProps';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ClosingTemplateFormProps>>, {
3
+ validateInputs: () => void;
4
+ resetInputsValidation: () => void;
5
+ resetInputs: () => void;
6
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<ClosingTemplateFormProps>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
7
+ export default _default;
8
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ type __VLS_TypePropsToRuntimeProps<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };
@@ -0,0 +1,7 @@
1
+ export interface ClosingTemplateFormProps {
2
+ modelValue: FdoClosingTemplate;
3
+ disabled?: boolean;
4
+ }
5
+ export interface ClosingTemplateFormEvents {
6
+ (event: 'validation-success'): void;
7
+ }
@@ -0,0 +1,18 @@
1
+ import { type Cell, type Row } from '@tanstack/vue-table';
2
+ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
3
+ cellByColId: Record<string, Cell<any, any>>;
4
+ row: Row<unknown>;
5
+ }>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ cellByColId: Record<string, Cell<any, any>>;
7
+ row: Row<unknown>;
8
+ }>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
9
+ export default _default;
10
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
@@ -0,0 +1,79 @@
1
+ import type { ColumnDef } from '@tanstack/vue-table';
2
+ export declare enum ItemColumn {
3
+ Name = "Name",
4
+ Unit = "Unit",
5
+ Delete = "Delete"
6
+ }
7
+ export declare function useClosingTemplateItems(controller: {
8
+ updateItem: (item: FdoClosingTemplateItem) => void;
9
+ deleteItem: (item: FdoClosingTemplateItem) => void;
10
+ get items(): FdoClosingTemplateItem[];
11
+ get disabled(): boolean;
12
+ }): {
13
+ columnDefs: import("vue").ComputedRef<ColumnDef<{
14
+ disabledMeasurements?: string[] | null | undefined;
15
+ sku: {
16
+ trackingMeasurement?: string | null | undefined;
17
+ convert?: {
18
+ measurement?: string | null | undefined;
19
+ inventoryBindings?: {
20
+ measurement?: {
21
+ id: string;
22
+ name: string;
23
+ abbrev: string;
24
+ conversion: {
25
+ amount: number;
26
+ precision: number;
27
+ };
28
+ } | null | undefined;
29
+ type: "RECIPE" | "SKU";
30
+ amount: {
31
+ amount: number;
32
+ precision: number;
33
+ };
34
+ id: string;
35
+ }[] | null | undefined;
36
+ } | null | undefined;
37
+ valuation?: "FIFO" | "LIFO" | "FEFO" | "WAVG" | null | undefined;
38
+ defaultCost?: {
39
+ measurement?: {
40
+ id: string;
41
+ name: string;
42
+ abbrev: string;
43
+ conversion: {
44
+ amount: number;
45
+ precision: number;
46
+ };
47
+ } | null | undefined;
48
+ costPerUnit: {
49
+ currency: "AED" | "AFN" | "ALL" | "AMD" | "ANG" | "AOA" | "ARS" | "AUD" | "AWG" | "AZN" | "BAM" | "BBD" | "BDT" | "BGN" | "BHD" | "BIF" | "BMD" | "BND" | "BOB" | "BOV" | "BRL" | "BSD" | "BTN" | "BWP" | "BYN" | "BZD" | "CAD" | "CDF" | "CHE" | "CHF" | "CHW" | "CLF" | "CLP" | "CNY" | "COP" | "COU" | "CRC" | "CUC" | "CUP" | "CVE" | "CZK" | "DJF" | "DKK" | "DOP" | "DZD" | "EGP" | "ERN" | "ETB" | "EUR" | "FJD" | "FKP" | "GBP" | "GEL" | "GHS" | "GIP" | "GMD" | "GNF" | "GTQ" | "GYD" | "HKD" | "HNL" | "HRK" | "HTG" | "HUF" | "IDR" | "ILS" | "INR" | "IQD" | "IRR" | "ISK" | "JMD" | "JOD" | "JPY" | "KES" | "KGS" | "KHR" | "KMF" | "KPW" | "KRW" | "KWD" | "KYD" | "KZT" | "LAK" | "LBP" | "LKR" | "LRD" | "LSL" | "LYD" | "MAD" | "MDL" | "MGA" | "MKD" | "MMK" | "MNT" | "MOP" | "MRU" | "MUR" | "MVR" | "MWK" | "MXN" | "MXV" | "MYR" | "MZN" | "NAD" | "NGN" | "NIO" | "NOK" | "NPR" | "NZD" | "OMR" | "PAB" | "PEN" | "PGK" | "PHP" | "PKR" | "PLN" | "PYG" | "QAR" | "RON" | "RSD" | "RUB" | "RWF" | "SAR" | "SBD" | "SCR" | "SDG" | "SEK" | "SGD" | "SHP" | "SLL" | "SOS" | "SRD" | "SSP" | "STN" | "SVC" | "SYP" | "SZL" | "THB" | "TJS" | "TMT" | "TND" | "TOP" | "TRY" | "TTD" | "TWD" | "TZS" | "UAH" | "UGX" | "USD" | "USN" | "UYI" | "UYU" | "UYW" | "UZS" | "VES" | "VND" | "VUV" | "WST" | "XAF" | "XAG" | "XAU" | "XBA" | "XBB" | "XBC" | "XBD" | "XCD" | "XDR" | "XOF" | "XPD" | "XPF" | "XPT" | "XSU" | "XTS" | "XUA" | "XXX" | "YER" | "ZAR" | "ZMW" | "ZWL";
50
+ amount: number;
51
+ precision: number;
52
+ };
53
+ } | null | undefined;
54
+ thresholds?: {
55
+ low: number;
56
+ mid: number;
57
+ } | null | undefined;
58
+ operationalGroup?: string | null | undefined;
59
+ unit: {
60
+ _id: string;
61
+ name: string;
62
+ abbrev: string;
63
+ precision: number;
64
+ measurements: {
65
+ id: string;
66
+ name: string;
67
+ abbrev: string;
68
+ conversion: {
69
+ amount: number;
70
+ precision: number;
71
+ };
72
+ }[];
73
+ };
74
+ code: string;
75
+ _id: string;
76
+ name: string;
77
+ };
78
+ }>[]>;
79
+ };