@feedmepos/mf-inventory-portal 0.0.19-dev.10 → 0.0.19-dev.12
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-BgTTFiOw.js → ApprovalView-CuTAFiWC.js} +5 -5
- package/dist/{BindingsDialog-BROnpXEI.js → BindingsDialog-C_ndNZ8f.js} +1 -1
- package/dist/{BindingsPicker-aQHfS_vY.js → BindingsPicker-CcAod_ha.js} +1 -1
- package/dist/{BindingsTable-DvtIQMFk.js → BindingsTable-Bm4-kj_a.js} +1 -1
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-DR9YAhaJ.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rDMoAXyd.js} +1 -1
- package/dist/{IngredientsView-BgAQCCD-.js → IngredientsView-CyD65_rv.js} +5 -5
- package/dist/{IntegrationView-DEBb_X5K.js → IntegrationView-Bh1BWAq-.js} +2 -2
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-VF3PDSzP.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-cw3SEkW_.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BIRzNfFN.js → PremiumBadge.vue_vue_type_script_setup_true_lang-B_kVFkxk.js} +1 -1
- package/dist/{PurchaseOrderPrintPreview-D2zNGZhx.js → PurchaseOrderPrintPreview-Uf0aO8n1.js} +10 -10
- package/dist/{ReceiveRequestView-Dc5JlUMC.js → ReceiveRequestView-C0r1FIwM.js} +7 -7
- package/dist/{RecipeView-C1DBn8pW.js → RecipeView-CYE6gi__.js} +5 -5
- package/dist/{StockView-6wi6BEOE.js → StockView-CKyhKuGi.js} +135 -127
- package/dist/{SupplierView-CS7YdL5Q.js → SupplierView-BSJoZFMr.js} +5 -5
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-8L6lwGpu.js +739 -0
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-Bdby-n4P.js +1676 -0
- package/dist/TransferTemplateView-B23JFk-I.js +1101 -0
- package/dist/{UnitView-BUdKTKch.js → UnitView-DXnLq5nR.js} +6 -6
- package/dist/{WarehouseView-BbreEn79.js → WarehouseView-BCnvqHHp.js} +4 -4
- package/dist/{app-B3oV5Muh.js → app-DDxzU9iC.js} +7986 -7849
- package/dist/app.d.ts +136 -0
- package/dist/app.js +1 -1
- package/dist/components/row-action.enum.d.ts +3 -1
- package/dist/{decimal-DzjRPmPY.js → decimal-DN0h6619.js} +1 -1
- package/dist/{id-to-date-CG1QobkF.js → id-to-date-D1fU6Y7T.js} +1 -1
- package/dist/layout-DcSLry7F.js +151 -0
- package/dist/{purchase-order-transaction-type-D-GMrgDp.js → purchase-order-transaction-type-D0c31GiL.js} +92 -87
- package/dist/row-action.enum-PMKMRrZR.js +50 -0
- package/dist/{supplier-BE_AQA4h.js → supplier-CQXRbSC3.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/stock/helper/stock-row-action.d.ts +4 -2
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +20 -0
- package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +9 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -0
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +445 -1
- package/dist/{xlsx-BGXLmGtO.js → xlsx-yV2SoDMC.js} +1 -1
- package/dist/{xlsx.util-DxU-P-ww.js → xlsx.util-CTIDgqw2.js} +2 -2
- package/package.json +3 -3
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CBbbXOhl.js +0 -745
- package/dist/TransferDialog.vue_vue_type_script_setup_true_lang-CWEypKBc.js +0 -1662
- package/dist/TransferTemplateView-C1hmdeKM.js +0 -933
- package/dist/layout-qEWDq5Vs.js +0 -147
- package/dist/row-action.enum-7jVyol1k.js +0 -36
package/dist/app.d.ts
CHANGED
|
@@ -13,6 +13,8 @@ export declare const i18nMessages: {
|
|
|
13
13
|
restaurant: string;
|
|
14
14
|
warehouse: string;
|
|
15
15
|
noResultFound: string;
|
|
16
|
+
details: string;
|
|
17
|
+
print: string;
|
|
16
18
|
};
|
|
17
19
|
formField: {
|
|
18
20
|
rules: {
|
|
@@ -67,6 +69,11 @@ export declare const i18nMessages: {
|
|
|
67
69
|
noData: string;
|
|
68
70
|
daysRemaining: string;
|
|
69
71
|
};
|
|
72
|
+
action: {
|
|
73
|
+
history: string;
|
|
74
|
+
convert: string;
|
|
75
|
+
adjust: string;
|
|
76
|
+
};
|
|
70
77
|
convert: {
|
|
71
78
|
title: string;
|
|
72
79
|
amount: string;
|
|
@@ -334,17 +341,45 @@ export declare const i18nMessages: {
|
|
|
334
341
|
};
|
|
335
342
|
form: {
|
|
336
343
|
name: string;
|
|
344
|
+
loading: string;
|
|
345
|
+
unableToFetchListOfSuppliers: {
|
|
346
|
+
title: string;
|
|
347
|
+
message: string;
|
|
348
|
+
};
|
|
337
349
|
type: {
|
|
338
350
|
title: string;
|
|
339
351
|
purchase: string;
|
|
340
352
|
transfer: string;
|
|
341
353
|
};
|
|
354
|
+
lastClosing: string;
|
|
342
355
|
purchaseFrom: string;
|
|
343
356
|
transferFrom: string;
|
|
357
|
+
noLocationAvailable: string;
|
|
358
|
+
noSupplierAvailable: string;
|
|
344
359
|
reference: string;
|
|
345
360
|
remark: string;
|
|
346
361
|
items: {
|
|
347
362
|
title: string;
|
|
363
|
+
addItem: string;
|
|
364
|
+
fromTemplate: {
|
|
365
|
+
title: string;
|
|
366
|
+
sublabel: string;
|
|
367
|
+
};
|
|
368
|
+
other: {
|
|
369
|
+
title: string;
|
|
370
|
+
};
|
|
371
|
+
selectItem: string;
|
|
372
|
+
fetchingData: string;
|
|
373
|
+
comparePriceHistory: string;
|
|
374
|
+
forecastStock: {
|
|
375
|
+
title: string;
|
|
376
|
+
days: string;
|
|
377
|
+
replace: string;
|
|
378
|
+
cancel: string;
|
|
379
|
+
generate: string;
|
|
380
|
+
notAvailable: string;
|
|
381
|
+
};
|
|
382
|
+
autoCalculated: string;
|
|
348
383
|
table: {
|
|
349
384
|
Code: string;
|
|
350
385
|
Name: string;
|
|
@@ -405,6 +440,24 @@ export declare const i18nMessages: {
|
|
|
405
440
|
success: string;
|
|
406
441
|
message: string;
|
|
407
442
|
};
|
|
443
|
+
create: {
|
|
444
|
+
title: string;
|
|
445
|
+
success: string;
|
|
446
|
+
successMessage: string;
|
|
447
|
+
error: {
|
|
448
|
+
title: string;
|
|
449
|
+
message: string;
|
|
450
|
+
};
|
|
451
|
+
};
|
|
452
|
+
update: {
|
|
453
|
+
title: string;
|
|
454
|
+
success: string;
|
|
455
|
+
successMessage: string;
|
|
456
|
+
error: {
|
|
457
|
+
title: string;
|
|
458
|
+
message: string;
|
|
459
|
+
};
|
|
460
|
+
};
|
|
408
461
|
};
|
|
409
462
|
approval: {
|
|
410
463
|
title: string;
|
|
@@ -418,8 +471,23 @@ export declare const i18nMessages: {
|
|
|
418
471
|
title2: string;
|
|
419
472
|
create: {
|
|
420
473
|
title: string;
|
|
474
|
+
success: string;
|
|
475
|
+
successMessage: string;
|
|
476
|
+
error: string;
|
|
477
|
+
errorMessage: string;
|
|
478
|
+
};
|
|
479
|
+
update: {
|
|
480
|
+
title: string;
|
|
481
|
+
success: string;
|
|
482
|
+
successMessage: string;
|
|
483
|
+
error: string;
|
|
484
|
+
errorMessage: string;
|
|
421
485
|
};
|
|
422
486
|
use: string;
|
|
487
|
+
details: {
|
|
488
|
+
view: string;
|
|
489
|
+
templateSummary: string;
|
|
490
|
+
};
|
|
423
491
|
};
|
|
424
492
|
};
|
|
425
493
|
supplier: {
|
|
@@ -565,6 +633,8 @@ export declare const i18nMessages: {
|
|
|
565
633
|
restaurant: string;
|
|
566
634
|
warehouse: string;
|
|
567
635
|
noResultFound: string;
|
|
636
|
+
details: string;
|
|
637
|
+
print: string;
|
|
568
638
|
};
|
|
569
639
|
formField: {
|
|
570
640
|
rules: {
|
|
@@ -619,6 +689,11 @@ export declare const i18nMessages: {
|
|
|
619
689
|
noData: string;
|
|
620
690
|
daysRemaining: string;
|
|
621
691
|
};
|
|
692
|
+
action: {
|
|
693
|
+
history: string;
|
|
694
|
+
convert: string;
|
|
695
|
+
adjust: string;
|
|
696
|
+
};
|
|
622
697
|
convert: {
|
|
623
698
|
title: string;
|
|
624
699
|
amount: string;
|
|
@@ -929,6 +1004,24 @@ export declare const i18nMessages: {
|
|
|
929
1004
|
message: string;
|
|
930
1005
|
};
|
|
931
1006
|
title2: string;
|
|
1007
|
+
create: {
|
|
1008
|
+
title: string;
|
|
1009
|
+
success: string;
|
|
1010
|
+
successMessage: string;
|
|
1011
|
+
error: {
|
|
1012
|
+
title: string;
|
|
1013
|
+
message: string;
|
|
1014
|
+
};
|
|
1015
|
+
};
|
|
1016
|
+
update: {
|
|
1017
|
+
title: string;
|
|
1018
|
+
success: string;
|
|
1019
|
+
successMessage: string;
|
|
1020
|
+
error: {
|
|
1021
|
+
title: string;
|
|
1022
|
+
message: string;
|
|
1023
|
+
};
|
|
1024
|
+
};
|
|
932
1025
|
};
|
|
933
1026
|
approval: {
|
|
934
1027
|
title: string;
|
|
@@ -939,17 +1032,45 @@ export declare const i18nMessages: {
|
|
|
939
1032
|
};
|
|
940
1033
|
form: {
|
|
941
1034
|
name: string;
|
|
1035
|
+
loading: string;
|
|
1036
|
+
unableToFetchListOfSuppliers: {
|
|
1037
|
+
title: string;
|
|
1038
|
+
message: string;
|
|
1039
|
+
};
|
|
942
1040
|
type: {
|
|
943
1041
|
title: string;
|
|
944
1042
|
purchase: string;
|
|
945
1043
|
transfer: string;
|
|
946
1044
|
};
|
|
1045
|
+
lastClosing: string;
|
|
947
1046
|
purchaseFrom: string;
|
|
948
1047
|
transferFrom: string;
|
|
1048
|
+
noLocationAvailable: string;
|
|
1049
|
+
noSupplierAvailable: string;
|
|
949
1050
|
reference: string;
|
|
950
1051
|
remark: string;
|
|
951
1052
|
items: {
|
|
952
1053
|
title: string;
|
|
1054
|
+
addItem: string;
|
|
1055
|
+
fromTemplate: {
|
|
1056
|
+
title: string;
|
|
1057
|
+
sublabel: string;
|
|
1058
|
+
};
|
|
1059
|
+
other: {
|
|
1060
|
+
title: string;
|
|
1061
|
+
};
|
|
1062
|
+
selectItem: string;
|
|
1063
|
+
fetchingData: string;
|
|
1064
|
+
comparePriceHistory: string;
|
|
1065
|
+
forecastStock: {
|
|
1066
|
+
title: string;
|
|
1067
|
+
days: string;
|
|
1068
|
+
replace: string;
|
|
1069
|
+
cancel: string;
|
|
1070
|
+
generate: string;
|
|
1071
|
+
notAvailable: string;
|
|
1072
|
+
};
|
|
1073
|
+
autoCalculated: string;
|
|
953
1074
|
table: {
|
|
954
1075
|
Code: string;
|
|
955
1076
|
Name: string;
|
|
@@ -970,8 +1091,23 @@ export declare const i18nMessages: {
|
|
|
970
1091
|
title2: string;
|
|
971
1092
|
create: {
|
|
972
1093
|
title: string;
|
|
1094
|
+
success: string;
|
|
1095
|
+
successMessage: string;
|
|
1096
|
+
error: string;
|
|
1097
|
+
errorMessage: string;
|
|
1098
|
+
};
|
|
1099
|
+
update: {
|
|
1100
|
+
title: string;
|
|
1101
|
+
success: string;
|
|
1102
|
+
successMessage: string;
|
|
1103
|
+
error: string;
|
|
1104
|
+
errorMessage: string;
|
|
973
1105
|
};
|
|
974
1106
|
use: string;
|
|
1107
|
+
details: {
|
|
1108
|
+
view: string;
|
|
1109
|
+
templateSummary: string;
|
|
1110
|
+
};
|
|
975
1111
|
};
|
|
976
1112
|
};
|
|
977
1113
|
supplier: {
|
package/dist/app.js
CHANGED
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import { useI18n as R } from "@feedmepos/mf-common";
|
|
2
|
+
import { components as I, useBreakpoints as B } from "@feedmepos/ui-library";
|
|
3
|
+
import { h as s, defineComponent as F, computed as M, openBlock as a, createBlock as V, resolveDynamicComponent as x, unref as p, normalizeClass as z, withCtx as D, createElementVNode as c, renderSlot as L, normalizeProps as N, guardReactiveProps as P, createElementBlock as m, Fragment as k, renderList as _, createVNode as b, createCommentVNode as w } from "vue";
|
|
4
|
+
import { af as E } from "./app-DDxzU9iC.js";
|
|
5
|
+
const { FmMenu: S, FmButton: $, FmMenuItem: j } = I;
|
|
6
|
+
function U(o, r) {
|
|
7
|
+
return s(
|
|
8
|
+
S,
|
|
9
|
+
{
|
|
10
|
+
trigger: "click",
|
|
11
|
+
stopClickPropagation: !0
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"menu-button": () => s($, {
|
|
15
|
+
type: "button",
|
|
16
|
+
variant: "tertiary",
|
|
17
|
+
icon: "more_vert",
|
|
18
|
+
iconColor: "#000000",
|
|
19
|
+
size: "md"
|
|
20
|
+
}),
|
|
21
|
+
default: () => s(
|
|
22
|
+
"div",
|
|
23
|
+
{
|
|
24
|
+
style: {
|
|
25
|
+
backgroundColor: "white",
|
|
26
|
+
padding: "4px",
|
|
27
|
+
width: "160px"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
o.map(({ translationKey: l, color: e, value: t }) => {
|
|
31
|
+
const { t: u } = R(), n = u(l);
|
|
32
|
+
return s(
|
|
33
|
+
j,
|
|
34
|
+
{
|
|
35
|
+
onClick() {
|
|
36
|
+
r(t ?? n);
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: () => s(
|
|
41
|
+
"span",
|
|
42
|
+
{
|
|
43
|
+
class: e
|
|
44
|
+
},
|
|
45
|
+
n
|
|
46
|
+
)
|
|
47
|
+
}
|
|
48
|
+
);
|
|
49
|
+
})
|
|
50
|
+
)
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* vue-table
|
|
56
|
+
*
|
|
57
|
+
* Copyright (c) TanStack
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the MIT license found in the
|
|
60
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
61
|
+
*
|
|
62
|
+
* @license MIT
|
|
63
|
+
*/
|
|
64
|
+
const y = F({
|
|
65
|
+
props: ["render", "props"],
|
|
66
|
+
setup: (o) => () => typeof o.render == "function" || typeof o.render == "object" ? s(o.render, o.props) : o.render
|
|
67
|
+
}), A = { class: "flex gap-4 w-full" }, H = { class: "flex-1" }, T = { class: "flex flex-col" }, q = { key: 0 }, G = { key: 0 }, W = /* @__PURE__ */ F({
|
|
68
|
+
__name: "TableActionableRow",
|
|
69
|
+
props: {
|
|
70
|
+
row: {},
|
|
71
|
+
onRowClick: {},
|
|
72
|
+
actionColumnId: { default: "action" }
|
|
73
|
+
},
|
|
74
|
+
setup(o) {
|
|
75
|
+
const r = o, l = M(
|
|
76
|
+
() => r.row.getVisibleCells().reduce(
|
|
77
|
+
(e, t) => (e[t.column.id] = t, e),
|
|
78
|
+
{}
|
|
79
|
+
)
|
|
80
|
+
);
|
|
81
|
+
return (e, t) => (a(), V(x(e.onRowClick ? p(I).FmListItem : "div"), {
|
|
82
|
+
class: z([
|
|
83
|
+
"w-full border-b border-fm-color-neutral-gray-100",
|
|
84
|
+
{
|
|
85
|
+
"bg-fm-color-neutral-gray-100": e.row.getIsSelected(),
|
|
86
|
+
"cursor-pointer": typeof e.onRowClick == "function"
|
|
87
|
+
}
|
|
88
|
+
]),
|
|
89
|
+
onClick: t[0] || (t[0] = (u) => {
|
|
90
|
+
var n;
|
|
91
|
+
return (n = e.onRowClick) == null ? void 0 : n.call(e, e.row.original);
|
|
92
|
+
})
|
|
93
|
+
}, {
|
|
94
|
+
default: D(() => {
|
|
95
|
+
var u, n, f, d, C;
|
|
96
|
+
return [
|
|
97
|
+
c("div", A, [
|
|
98
|
+
c("div", H, [
|
|
99
|
+
L(e.$slots, "default", N(P(l.value)), () => [
|
|
100
|
+
c("div", T, [
|
|
101
|
+
(a(!0), m(k, null, _(r.row.getVisibleCells(), (i) => {
|
|
102
|
+
var g, v, h;
|
|
103
|
+
return a(), m(k, {
|
|
104
|
+
key: i.id
|
|
105
|
+
}, [
|
|
106
|
+
i.column.id !== e.actionColumnId ? (a(), m("div", q, [
|
|
107
|
+
b(p(y), {
|
|
108
|
+
render: (v = (g = i.column) == null ? void 0 : g.columnDef) == null ? void 0 : v.cell,
|
|
109
|
+
props: (h = i.getContext) == null ? void 0 : h.call(i)
|
|
110
|
+
}, null, 8, ["render", "props"])
|
|
111
|
+
])) : w("", !0)
|
|
112
|
+
], 64);
|
|
113
|
+
}), 128))
|
|
114
|
+
])
|
|
115
|
+
])
|
|
116
|
+
]),
|
|
117
|
+
l.value[e.actionColumnId ?? ""] ? (a(), m("div", G, [
|
|
118
|
+
c("div", null, [
|
|
119
|
+
b(p(y), {
|
|
120
|
+
render: (f = (n = (u = l.value[e.actionColumnId ?? ""]) == null ? void 0 : u.column) == null ? void 0 : n.columnDef) == null ? void 0 : f.cell,
|
|
121
|
+
props: (C = (d = l.value[e.actionColumnId ?? ""]) == null ? void 0 : d.getContext) == null ? void 0 : C.call(d)
|
|
122
|
+
}, null, 8, ["render", "props"])
|
|
123
|
+
])
|
|
124
|
+
])) : w("", !0)
|
|
125
|
+
])
|
|
126
|
+
];
|
|
127
|
+
}),
|
|
128
|
+
_: 3
|
|
129
|
+
}, 8, ["class"]));
|
|
130
|
+
}
|
|
131
|
+
});
|
|
132
|
+
function X() {
|
|
133
|
+
return {
|
|
134
|
+
get tableHeight() {
|
|
135
|
+
const o = E(), { breakpoints: r } = B();
|
|
136
|
+
return o.isIframeMode ? r.value.xs || r.value.sm ? {
|
|
137
|
+
height: "calc(100dvh - 180px)"
|
|
138
|
+
} : {
|
|
139
|
+
height: "calc(100dvh - 124px)"
|
|
140
|
+
} : {
|
|
141
|
+
height: "calc(100dvh - 180px)"
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
export {
|
|
147
|
+
y as F,
|
|
148
|
+
W as _,
|
|
149
|
+
U as c,
|
|
150
|
+
X as u
|
|
151
|
+
};
|