@feedmepos/mf-inventory-portal 0.0.23-dev.23 → 0.0.23-dev.25

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/{App-BvEB-iR6.js → App-CNgj7enS.js} +49 -45
  2. package/dist/{ApprovalView-BmPYoGNQ.js → ApprovalView-CaVxfwVZ.js} +15 -15
  3. package/dist/{BindingsDialog-BqKMRdvl.js → BindingsDialog-jRZXoJFn.js} +9 -9
  4. package/dist/{BindingsPicker-BaEdafvS.js → BindingsPicker-B1HSa3PR.js} +5 -5
  5. package/dist/{BindingsTable--d-nM2Gv.js → BindingsTable-OF56C-md.js} +8 -8
  6. package/dist/ClosingDraftView-B6okKype.js +1134 -0
  7. package/dist/{ClosingTemplateView-BdUGSMOi.js → ClosingTemplateView-iX4shLcv.js} +251 -255
  8. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CIk6CwoD.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bj2M9OAD.js} +13 -13
  9. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-Bt1hyXul.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CnPZaNTp.js} +46 -46
  10. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-wYnVSXtH.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CGpmbbpm.js} +7 -7
  11. package/dist/{IngredientGroupView-0-nzZJcl.js → IngredientGroupView-BeW-0hWb.js} +40 -40
  12. package/dist/{IngredientsView-ClRyZ-cb.js → IngredientsView-CuVBlnOu.js} +207 -210
  13. package/dist/{IntegrationView-CgmsV7oX.js → IntegrationView-lDfeScNo.js} +89 -90
  14. package/dist/{InventoryBindingForm-DnnGejy0.js → InventoryBindingForm-D6EuWIkE.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-CapSS-KQ.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-CUpKKG4l.js} +27 -27
  16. package/dist/{InventoryBindingSummary-Dz-F2ofe.js → InventoryBindingSummary-CD60iCr_.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-glXw963h.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-7jkFhj27.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DpIyyZL-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DDXsfGVf.js} +17 -18
  19. package/dist/{PurchaseOrderPrintPreview--hGI0aFU.js → PurchaseOrderPrintPreview-eJxn76Ir.js} +1 -1
  20. package/dist/{ReceiveRequestView-cPIOC0rj.js → ReceiveRequestView-D6Cdkd36.js} +26 -27
  21. package/dist/{RecipeView-BK74973y.js → RecipeView-BWy56DhW.js} +47 -48
  22. package/dist/{StockView-D6TYfv5x.js → StockView-BEXAvBjP.js} +7 -7
  23. package/dist/{SupplierView-BFwzHw7l.js → SupplierView-C4vwkzdX.js} +203 -206
  24. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-ChwtBdsS.js → TransferDetails.vue_vue_type_script_setup_true_lang-CIcj9NWg.js} +61 -62
  25. package/dist/{TransferTemplateView-De5sG12Q.js → TransferTemplateView-27Ng_EgG.js} +144 -145
  26. package/dist/{UnitView-CQoB6Uq_.js → UnitView-CXvkO_fh.js} +3 -3
  27. package/dist/{WarehouseView-Di4mLjoS.js → WarehouseView-Cl6HN1EW.js} +52 -52
  28. package/dist/app-Dt6Yd1pM.js +84133 -0
  29. package/dist/app.js +1 -1
  30. package/dist/{decimal-D2WMzK1d.js → decimal-D1M8NkLV.js} +1 -1
  31. package/dist/{feature-SYqA_m5m.js → feature-CqDcAtUy.js} +1 -1
  32. package/dist/{format-unit-display-D0G-LaQY.js → format-unit-display-BI9EVHb3.js} +50 -53
  33. package/dist/{index-Bj8PDCww.js → index-7V6E004u.js} +1 -1
  34. package/dist/{stock-CEexJdO3.js → stock-wjdjOqbM.js} +1 -1
  35. package/dist/style.css +1 -1
  36. package/dist/{supplier-BdB47EjI.js → supplier-D3-7dgm5.js} +1 -1
  37. package/dist/tsconfig.app.tsbuildinfo +1 -1
  38. package/dist/{use-inventory-binding-dialog-n3khDS2D.js → use-inventory-binding-dialog-BLHffZgi.js} +1 -1
  39. package/dist/views/adjustment-template/import/AdjustmentTemplateImport.vue.d.ts +2 -0
  40. package/dist/views/adjustment-template/import/AdjustmentTemplateImportItem.vue.d.ts +18 -0
  41. package/dist/views/adjustment-template/import/export.d.ts +60 -0
  42. package/dist/views/closing-draft/components/closing-draft-dialog/ClosingDraftDialog.vue.d.ts +178 -8
  43. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +1498 -478
  44. package/package.json +3 -3
  45. package/dist/ClosingDraftView-Clh7bujC.js +0 -1116
  46. package/dist/FmDroppableField-DHhcKcJf.js +0 -154
  47. package/dist/app-DpJictvi.js +0 -58871
  48. package/dist/netsuite-TWj-9PDj.js +0 -251
  49. package/dist/xlsx-Cbd5szA2.js +0 -24004
  50. package/dist/xlsx.util-hCH_XTAD.js +0 -78
@@ -1,154 +0,0 @@
1
- import { defineComponent as U, ref as d, computed as y, resolveComponent as k, openBlock as s, createElementBlock as c, createElementVNode as p, createCommentVNode as S, renderSlot as u, createBlock as C, normalizeClass as f, toDisplayString as F, unref as B } from "vue";
2
- import { useI18n as W } from "@feedmepos/mf-common";
3
- import { _ as q } from "./app-DpJictvi.js";
4
- const G = {
5
- key: 0,
6
- class: "relative"
7
- }, H = ["accept", "disabled"], J = { class: "flex flex-col gap-8" }, K = ["accept", "disabled"], M = /* @__PURE__ */ U({
8
- __name: "FmDroppableField",
9
- props: {
10
- buttonLabel: {},
11
- label: { default: "" },
12
- disabled: { type: Boolean, default: !1 },
13
- accept: { default: "" },
14
- maxFileSize: { default: 8e6 },
15
- contentClass: {}
16
- },
17
- emits: ["file-upload", "file-rejected"],
18
- setup(T, { emit: V }) {
19
- const l = T, g = V, { t: r } = W(), t = d(!1), i = d(null), n = d(null), m = d(), R = (e) => {
20
- l.disabled || (e.stopPropagation(), e.preventDefault());
21
- }, $ = (e) => {
22
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !0);
23
- }, j = (e) => {
24
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !1);
25
- }, E = (e) => {
26
- var a;
27
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !1, h((a = e.dataTransfer) == null ? void 0 : a.files));
28
- };
29
- function h(e) {
30
- if (e)
31
- if (m.value = e, i.value = I(e[0]), n.value = P(e[0]), i.value && n.value)
32
- g("file-upload", e[0]);
33
- else {
34
- const a = L();
35
- g("file-rejected", [
36
- {
37
- file: e[0],
38
- reason: a
39
- }
40
- ]);
41
- }
42
- }
43
- const L = () => {
44
- const e = new Array();
45
- return i.value || e.push("invalid-type"), n.value || e.push("invalid-size"), e;
46
- }, I = (e) => {
47
- if (!l.accept) return !0;
48
- const a = l.accept.split(",").map((o) => o.trim());
49
- for (const o of a)
50
- if (w(o)) {
51
- if (D(o) === D(e.type)) return !0;
52
- } else if (A(e) === o || e.type === o) return !0;
53
- return !1;
54
- }, P = (e) => e.size <= l.maxFileSize, w = (e) => e.indexOf("*") !== -1, A = (e) => "." + e.name.split(".").pop(), D = (e) => e.substring(0, e.indexOf("/")), O = y(() => {
55
- if (t.value) return r("inventory.formField.dropField.dropToUpload");
56
- if (i.value) {
57
- if (!n.value)
58
- return r("inventory.formField.dropField.fileSizeExceeded", { size: l.maxFileSize });
59
- } else return r("inventory.formField.dropField.invalidFileType");
60
- return "";
61
- }), v = y(() => m.value ? !i.value || !n.value : !1), _ = (e) => {
62
- const a = e.target;
63
- h(a.files);
64
- }, N = y(() => {
65
- var e;
66
- return (e = m.value) == null ? void 0 : e.item(0);
67
- }), b = d();
68
- return (e, a) => {
69
- const o = k("FmLabel"), x = k("FmButton");
70
- return s(), c("label", {
71
- class: "fm-droppable-field",
72
- ref_key: "fmButtonRef",
73
- ref: b
74
- }, [
75
- e.$slots.default ? (s(), c("div", G, [
76
- p("input", {
77
- accept: e.accept,
78
- disabled: e.disabled,
79
- class: "fm-droppable-field__input",
80
- type: "file",
81
- onChange: _
82
- }, null, 40, H)
83
- ])) : S("", !0),
84
- u(e.$slots, "default", {
85
- isDragging: t.value,
86
- isValidFileType: i.value,
87
- isValidFileSize: n.value,
88
- singleValidFile: N.value,
89
- openFileDialog: () => {
90
- var z;
91
- return console.log("click", b.value), (z = b.value) == null ? void 0 : z.click();
92
- }
93
- }, () => [
94
- p("div", J, [
95
- e.$slots.label ? u(e.$slots, "label", { key: 0 }, void 0, !0) : (s(), C(o, {
96
- key: 1,
97
- label: e.label
98
- }, null, 8, ["label"]))
99
- ]),
100
- p("div", {
101
- class: f([[
102
- e.contentClass ? e.contentClass : "w-full h-full",
103
- {
104
- "fm-droppable-field__container--dragging": t.value,
105
- "fm-droppable-field__container--invalid": v.value && !e.disabled,
106
- "fm-droppable-field__container--disabled": e.disabled
107
- }
108
- ], "fm-droppable-field__container"]),
109
- onDragenter: R,
110
- onDragleave: j,
111
- onDragover: $,
112
- onDrop: E
113
- }, [
114
- (t.value || v.value) && !e.disabled ? (s(), c("div", {
115
- key: 0,
116
- class: f({
117
- "fm-typo-en-body-lg-600": !0,
118
- "text-fm-color-primary": t.value,
119
- "text-fm-color-typo-error": v.value
120
- })
121
- }, F(O.value), 3)) : (s(), C(x, {
122
- key: 1,
123
- disabled: e.disabled,
124
- label: e.buttonLabel ?? "Add files",
125
- size: "md",
126
- variant: "secondary"
127
- }, null, 8, ["disabled", "label"])),
128
- u(e.$slots, "accept-text", {}, () => [
129
- l.accept ? (s(), c("div", {
130
- key: 0,
131
- class: f([[e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"], "fm-typo-en-body-md-400"])
132
- }, F(B(r)("inventory.formField.dropField.accepts", { fileTypes: e.accept })), 3)) : S("", !0)
133
- ], !0),
134
- p("input", {
135
- accept: e.accept,
136
- disabled: e.disabled,
137
- class: "fm-droppable-field__input",
138
- type: "file",
139
- onChange: _
140
- }, null, 40, K)
141
- ], 34),
142
- u(e.$slots, "helper-text", {}, () => [
143
- p("div", {
144
- class: f([[e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"], "fm-typo-en-body-sm-400"])
145
- }, F(B(r)("inventory.formField.dropField.maxSize", { size: e.maxFileSize })), 3)
146
- ], !0)
147
- ], !0)
148
- ], 512);
149
- };
150
- }
151
- }), Z = /* @__PURE__ */ q(M, [["__scopeId", "data-v-e121b2c1"]]);
152
- export {
153
- Z as F
154
- };