@feedmepos/mf-inventory-portal 0.0.25-dev.4 → 0.0.25-dev.41
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-DavuRdR4.js → App-BqAbcrCa.js} +35 -34
- package/dist/ApprovalView-CstNyWuq.js +143 -0
- package/dist/{BindingsDialog-Ckbhr9x3.js → BindingsDialog-B2POgTvT.js} +6 -6
- package/dist/{BindingsPicker-B63gIPVJ.js → BindingsPicker-Bp8wNAW0.js} +8 -8
- package/dist/{BindingsTable-5w7_8JzF.js → BindingsTable-C5ToIwJw.js} +6 -6
- package/dist/ClosingDraftView-B5KgTQOB.js +1348 -0
- package/dist/ClosingTemplateView-B6gT5-A_.js +1859 -0
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-D-IWRjRD.js +34 -0
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BcedQV1P.js +211 -0
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-M5pWGm8D.js → FmUnitInput.vue_vue_type_script_setup_true_lang-Bc6eTKR-.js} +52 -52
- package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-C76t4wed.js +51 -0
- package/dist/{IngredientGroupView-D_1gJl4X.js → IngredientGroupView-Bo18pDpd.js} +1 -1
- package/dist/IngredientsView-D4Tx5h1N.js +1744 -0
- package/dist/{IntegrationView-BcF7Qhvw.js → IntegrationView-5cTVErK7.js} +660 -623
- package/dist/{InventoryBindingForm-Cm49VDtA.js → InventoryBindingForm-D_JUD2PF.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-EJ0U2gdF.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-Co33Sz1A.js} +96 -96
- package/dist/{InventoryBindingSummary-D821YZ-3.js → InventoryBindingSummary-DsQqzLxI.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-D6jGlkOx.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKCHqrFd.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-TMYgOcbh.js → PremiumBadge.vue_vue_type_script_setup_true_lang-NhSXPpV1.js} +15 -15
- package/dist/PublishView-CVReC-7J.js +222 -0
- package/dist/{PurchaseOrderPrintPreview-DiCTMEY4.js → PurchaseOrderPrintPreview-kHtSdc_I.js} +1 -1
- package/dist/ReceiveRequestView-JJdBl6jR.js +2577 -0
- package/dist/{RecipeView-k5yiAPop.js → RecipeView-BAZzsPdQ.js} +32 -31
- package/dist/{index-DhAsCP14.js → StockView-Dwzf7ewT.js} +3577 -1764
- package/dist/{SupplierView-De4_YCtR.js → SupplierView-BoTsfsYX.js} +12 -11
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C2ZBmCNY.js +1564 -0
- package/dist/TransferTemplateView-BLO1uHet.js +1526 -0
- package/dist/{UnitView-DouWNXFf.js → UnitView-DfJ-huaQ.js} +14 -14
- package/dist/{WarehouseView-RQN-XBeO.js → WarehouseView-h5_GDAYM.js} +332 -314
- package/dist/api/closing-draft.d.ts +1 -0
- package/dist/api/inventory.d.ts +9 -6
- package/dist/api/netsuite.d.ts +21 -4
- package/dist/api/purchase-order.d.ts +6 -1
- package/dist/api/stock.d.ts +1 -0
- package/dist/{app-Bmmin1VX.js → app-CRWxxzQN.js} +29019 -28968
- package/dist/app.js +1 -1
- package/dist/components/FmAutocompleteTextField.vue.d.ts +31 -0
- package/dist/components/FmCustomAttribute.vue.d.ts +3 -8
- package/dist/components/FmLockableField.vue.d.ts +3 -0
- package/dist/components/FmMultiselectDialog.d.ts +23 -0
- package/dist/components/FmMultiselectDialog.vue.d.ts +20 -3
- package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
- package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +1 -1
- package/dist/components/shell/inventory/binding-ui.vue.d.ts +1 -1
- package/dist/{decimal-CZhBTty7.js → decimal-BDt03-KF.js} +1 -1
- package/dist/feature-D_c7uzcV.js +1007 -0
- package/dist/{format-unit-display-CijRcRSo.js → format-unit-display-CsfojMpU.js} +335 -328
- package/dist/helper/fuzzy.d.ts +10 -0
- package/dist/index-BbwuhE-c.js +35546 -0
- package/dist/{stock-D5lxPBQG.js → stock-DSyF_gBG.js} +29 -25
- package/dist/stores/feature.d.ts +4 -5
- package/dist/stores/integration/netsuite.d.ts +21 -4
- package/dist/stores/inventory.d.ts +135 -8
- package/dist/stores/location.d.ts +100 -0
- package/dist/stores/warehouse.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-BU1WhNTR.js → supplier-BLqNIQG9.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/use-ingredient-select-dialog-BSxFzWSk.js +51 -0
- package/dist/{use-inventory-binding-dialog-ZneYylve.js → use-inventory-binding-dialog-DyIQsTTm.js} +1 -1
- package/dist/views/adjustment-template/wastage-template/actions.d.ts +24 -0
- package/dist/views/adjustment-template/wastage-template/table.d.ts +24 -0
- package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +8 -4
- package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
- package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +48 -24
- package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
- 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 +36 -12
- package/dist/views/closing-template/composables/use-closing-template-table.d.ts +36 -12
- package/dist/views/dev/components/AutocompleteTextField.vue.d.ts +2 -0
- package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +3 -3
- package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
- package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
- package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
- package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
- package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +4 -1
- package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +411 -17
- package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +6 -2
- package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +382 -2
- package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +6 -3
- package/dist/views/receive-request/composables/use-receive-request-form.d.ts +822 -29
- package/dist/views/receive-request/composables/use-receive-request-table.d.ts +650 -48
- package/dist/views/receive-request/import/XilnexImportDialog.vue.d.ts +22 -0
- package/dist/views/receive-request/import/XilnexImportForm.vue.d.ts +17 -0
- package/dist/views/receive-request/import/XilnexResult.vue.d.ts +17 -0
- package/dist/views/receive-request/import/export.d.ts +12 -0
- package/dist/views/receive-request/import/props.d.ts +7 -0
- package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +4 -2
- package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +220 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +8 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +1 -0
- package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +9 -4
- package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +60 -12
- package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +60 -12
- package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +305 -0
- package/dist/views/warehouse/components/WarehouseForm.vue.d.ts +2 -0
- package/dist/{vue-i18n-BQNx5sCM.js → vue-i18n-ZO6qpjnw.js} +226 -226
- package/package.json +2 -2
- package/dist/ApprovalView-DjDzZmVI.js +0 -138
- package/dist/ClosingDraftView-BwV3uiYC.js +0 -1225
- package/dist/ClosingTemplateView-vaAj0Y-0.js +0 -1819
- package/dist/FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dy1BXu1R.js +0 -142
- package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DZ_Q-3lU.js +0 -286
- package/dist/IngredientsView-Xzt0_AP8.js +0 -1706
- package/dist/PublishView-CYdu5jl4.js +0 -192
- package/dist/ReceiveRequestView-DGqs1rpr.js +0 -1876
- package/dist/StockView-DX0RjayP.js +0 -1817
- package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-DhdMwHAA.js +0 -1327
- package/dist/TransferTemplateView-DEwJaqYB.js +0 -1284
- package/dist/components/FmCustomAttribute2.vue.d.ts +0 -18
- package/dist/index-DbE8p73U.js +0 -29202
|
@@ -1,192 +0,0 @@
|
|
|
1
|
-
import { defineComponent as j, computed as i, ref as q, resolveComponent as a, openBlock as k, createBlock as D, unref as p, createSlots as G, withCtx as r, createElementVNode as b, normalizeClass as J, createVNode as n, normalizeStyle as Q, Teleport as W, h } from "vue";
|
|
2
|
-
import { u as X, a as Z, z as ee, _ as te, ae as P } from "./app-Bmmin1VX.js";
|
|
3
|
-
import { useBreakpoints as oe, components as ne } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as le } from "./vue-i18n-BQNx5sCM.js";
|
|
5
|
-
const ae = { class: "flex flex-col py-8" }, se = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ie = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, pe = /* @__PURE__ */ j({
|
|
6
|
-
__name: "PublishView",
|
|
7
|
-
setup(re) {
|
|
8
|
-
const { t: l } = le(), { breakpoints: y } = oe(), _ = X(), g = Z(), u = i(() => g.state.inventory.updatedAt ? g.state.inventory.updatedAt : null), H = ee(), L = i(() => _.locations), f = i(() => y.value.xs || y.value.sm), R = i(() => f.value ? 10 : 20), Y = i(() => [
|
|
9
|
-
// { label: t('inventory.publish.actions.publishAll'), value: 'publish' }
|
|
10
|
-
]);
|
|
11
|
-
function B(e) {
|
|
12
|
-
switch (e) {
|
|
13
|
-
case "publish":
|
|
14
|
-
console.log("publish all");
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
const v = q(!1), I = [
|
|
18
|
-
{
|
|
19
|
-
value: "publish",
|
|
20
|
-
label: l("inventory.publish.actions.publishAll")
|
|
21
|
-
}
|
|
22
|
-
];
|
|
23
|
-
function N(e) {
|
|
24
|
-
switch (v.value = !1, e) {
|
|
25
|
-
case "publish":
|
|
26
|
-
console.log("publish all");
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
const U = [
|
|
30
|
-
{
|
|
31
|
-
id: "type",
|
|
32
|
-
header: () => l("inventory.publish.columns.type"),
|
|
33
|
-
enableSorting: !0,
|
|
34
|
-
cell(e) {
|
|
35
|
-
return h(ne.FmChip, {
|
|
36
|
-
color: "primary",
|
|
37
|
-
label: e.row.original.type
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
accessorKey: "name",
|
|
43
|
-
header: () => l("inventory.publish.columns.location"),
|
|
44
|
-
enableSorting: !0,
|
|
45
|
-
size: 300
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
id: "version",
|
|
49
|
-
header: () => l("inventory.publish.columns.version"),
|
|
50
|
-
enableSorting: !0,
|
|
51
|
-
cell(e) {
|
|
52
|
-
var t, o;
|
|
53
|
-
return (t = e.row.original.inventory) != null && t.updatedAt ? P((o = e.row.original.inventory) == null ? void 0 : o.updatedAt) : "";
|
|
54
|
-
}
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
id: "status",
|
|
58
|
-
header: () => l("inventory.publish.columns.status"),
|
|
59
|
-
enableSorting: !0,
|
|
60
|
-
cell(e) {
|
|
61
|
-
var o;
|
|
62
|
-
if (!u.value)
|
|
63
|
-
return "";
|
|
64
|
-
const t = ((o = e.row.original.inventory) == null ? void 0 : o.updatedAt) == u.value;
|
|
65
|
-
return h(
|
|
66
|
-
"div",
|
|
67
|
-
{
|
|
68
|
-
class: "flex"
|
|
69
|
-
},
|
|
70
|
-
h(
|
|
71
|
-
"div",
|
|
72
|
-
{
|
|
73
|
-
class: [
|
|
74
|
-
"fm-status-badge",
|
|
75
|
-
t ? "fm-status-badge-success-secondary" : "fm-status-badge-info-secondary"
|
|
76
|
-
]
|
|
77
|
-
},
|
|
78
|
-
t ? "Published" : "Outdated"
|
|
79
|
-
)
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
// {
|
|
84
|
-
// id: 'action',
|
|
85
|
-
// header: '',
|
|
86
|
-
// cell(props) {
|
|
87
|
-
// return createContextMenuComponents(
|
|
88
|
-
// [DefaultRowActions[RowActionEnum.Edit], DefaultRowActions[RowActionEnum.Delete]],
|
|
89
|
-
// (action) => {
|
|
90
|
-
// onActionMenu(action, props.row.original)
|
|
91
|
-
// }
|
|
92
|
-
// )
|
|
93
|
-
// },
|
|
94
|
-
// enableSorting: false,
|
|
95
|
-
// size: 40,
|
|
96
|
-
// meta: {
|
|
97
|
-
// cellClass: '',
|
|
98
|
-
// headerClass: ''
|
|
99
|
-
// }
|
|
100
|
-
// }
|
|
101
|
-
];
|
|
102
|
-
return (e, t) => {
|
|
103
|
-
const o = a("FmChip"), x = a("FlexRender"), $ = a("TableActionableRow"), E = a("FmTable"), K = a("FmCollapsibleTabs"), O = a("FmBottomSheet");
|
|
104
|
-
return k(), D(te, {
|
|
105
|
-
title: p(l)("inventory.publish.title"),
|
|
106
|
-
actions: Y.value,
|
|
107
|
-
"onClick:action": B
|
|
108
|
-
}, G({
|
|
109
|
-
default: r(() => {
|
|
110
|
-
var w;
|
|
111
|
-
return [
|
|
112
|
-
b("div", {
|
|
113
|
-
class: J([
|
|
114
|
-
"flex flex-col gap-8 max-h-full",
|
|
115
|
-
{
|
|
116
|
-
"p-0": f.value,
|
|
117
|
-
"px-24 ": !f.value
|
|
118
|
-
}
|
|
119
|
-
])
|
|
120
|
-
}, [
|
|
121
|
-
n(E, {
|
|
122
|
-
style: Q(p(H).tableHeight),
|
|
123
|
-
"column-defs": U,
|
|
124
|
-
"row-data": L.value,
|
|
125
|
-
loading: ((w = p(_)._locations) == null ? void 0 : w.length) === 0,
|
|
126
|
-
"loading-text": "Loading",
|
|
127
|
-
"page-size": R.value
|
|
128
|
-
}, {
|
|
129
|
-
"list-row": r((s) => [
|
|
130
|
-
n($, { row: s }, {
|
|
131
|
-
default: r((c) => {
|
|
132
|
-
var S, A, F, d, M, C, T, V, m, z;
|
|
133
|
-
return [
|
|
134
|
-
b("div", ae, [
|
|
135
|
-
b("div", se, [
|
|
136
|
-
n(x, {
|
|
137
|
-
render: (F = (A = (S = c.code) == null ? void 0 : S.column) == null ? void 0 : A.columnDef) == null ? void 0 : F.cell,
|
|
138
|
-
props: (M = (d = c.code) == null ? void 0 : d.getContext) == null ? void 0 : M.call(d)
|
|
139
|
-
}, null, 8, ["render", "props"])
|
|
140
|
-
]),
|
|
141
|
-
b("div", ie, [
|
|
142
|
-
n(x, {
|
|
143
|
-
render: (V = (T = (C = c.name) == null ? void 0 : C.column) == null ? void 0 : T.columnDef) == null ? void 0 : V.cell,
|
|
144
|
-
props: (z = (m = c.name) == null ? void 0 : m.getContext) == null ? void 0 : z.call(m)
|
|
145
|
-
}, null, 8, ["render", "props"])
|
|
146
|
-
])
|
|
147
|
-
])
|
|
148
|
-
];
|
|
149
|
-
}),
|
|
150
|
-
_: 2
|
|
151
|
-
}, 1032, ["row"])
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
}, 8, ["style", "row-data", "loading", "page-size"])
|
|
155
|
-
], 2),
|
|
156
|
-
(k(), D(W, { to: "body" }, [
|
|
157
|
-
n(O, {
|
|
158
|
-
"dismiss-away": "",
|
|
159
|
-
modelValue: v.value,
|
|
160
|
-
"onUpdate:modelValue": t[1] || (t[1] = (s) => v.value = s)
|
|
161
|
-
}, {
|
|
162
|
-
default: r(() => [
|
|
163
|
-
n(K, {
|
|
164
|
-
class: "pb-8",
|
|
165
|
-
items: I,
|
|
166
|
-
"onUpdate:modelValue": t[0] || (t[0] = (s) => N(s))
|
|
167
|
-
})
|
|
168
|
-
]),
|
|
169
|
-
_: 1
|
|
170
|
-
}, 8, ["modelValue"])
|
|
171
|
-
]))
|
|
172
|
-
];
|
|
173
|
-
}),
|
|
174
|
-
_: 2
|
|
175
|
-
}, [
|
|
176
|
-
u.value ? {
|
|
177
|
-
name: "headerInfo",
|
|
178
|
-
fn: r(() => [
|
|
179
|
-
n(o, {
|
|
180
|
-
variant: "info",
|
|
181
|
-
label: `Latest: ${p(P)(u.value)}`
|
|
182
|
-
}, null, 8, ["label"])
|
|
183
|
-
]),
|
|
184
|
-
key: "0"
|
|
185
|
-
} : void 0
|
|
186
|
-
]), 1032, ["title", "actions"]);
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
});
|
|
190
|
-
export {
|
|
191
|
-
pe as default
|
|
192
|
-
};
|