@feedmepos/mf-inventory-portal 0.0.22-dev.41 → 0.0.22-dev.43

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 (53) hide show
  1. package/dist/{ApprovalView-DKqwRFlF.js → ApprovalView-1ZKaZJ2Z.js} +3 -3
  2. package/dist/{BindingsDialog-CtMSqEuE.js → BindingsDialog-CKjAs5mJ.js} +1 -1
  3. package/dist/{BindingsPicker-DCLNF1PL.js → BindingsPicker-BAVZ-3dF.js} +1 -1
  4. package/dist/{BindingsTable-6ndQuHeA.js → BindingsTable-qq8M9fzG.js} +1 -1
  5. package/dist/ClosingTemplateView-DOLuHmy8.js +1775 -0
  6. package/dist/FmDroppableField-BBpVEZs4.js +154 -0
  7. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BUGB0uk3.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-ChRPq-Ok.js} +3 -3
  8. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CM93v-jp.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BSxhRfE4.js} +1 -1
  9. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-SNp8etCc.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-DrL5a2Pn.js} +1 -1
  10. package/dist/{IngredientsView-B1jGkWYN.js → IngredientsView-m5K8MlM2.js} +5 -5
  11. package/dist/IntegrationView-BE5P68EJ.js +1141 -0
  12. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-mZQlrYaY.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B8cCv--C.js} +1 -1
  13. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BEFmqnHk.js → PremiumBadge.vue_vue_type_script_setup_true_lang-CcM04Veu.js} +2 -2
  14. package/dist/{PurchaseOrderPrintPreview-DTQViYuX.js → PurchaseOrderPrintPreview-D40E9qZt.js} +1 -1
  15. package/dist/{ReceiveRequestView-CNRixgQu.js → ReceiveRequestView-Ci7FgSjU.js} +10 -10
  16. package/dist/{RecipeView-HStPC5pE.js → RecipeView-Bp7iBiy7.js} +4 -4
  17. package/dist/{StockView-JO3NtkX9.js → StockView-BzowFcFA.js} +5 -5
  18. package/dist/SupplierView-CbRnAb8G.js +3037 -0
  19. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-dPt3qbcX.js → TransferDetails.vue_vue_type_script_setup_true_lang-BMikyrhA.js} +5 -5
  20. package/dist/TransferTemplateView-BwamiSyk.js +1302 -0
  21. package/dist/{UnitView-dbInWUk4.js → UnitView-B-058oRk.js} +4 -4
  22. package/dist/{WarehouseView-BlTBvLF0.js → WarehouseView-RtU3sWKx.js} +2 -2
  23. package/dist/api/supplier.d.ts +1 -0
  24. package/dist/{app-TB3IWuaU.js → app-By3PLx0q.js} +3918 -3854
  25. package/dist/app.d.ts +70 -3
  26. package/dist/app.js +1 -1
  27. package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
  28. package/dist/{decimal-BRAYgPnN.js → decimal-CtriZ1S6.js} +1 -1
  29. package/dist/{defineDeepModel-DrEk5Fhq.js → defineDeepModel-ClK3S9xx.js} +1 -1
  30. package/dist/{format-time-from-id-kpVYfVQb.js → format-time-from-id-CGLKzJJO.js} +1 -1
  31. package/dist/format-unit-display-COeZSqdS.js +1195 -0
  32. package/dist/stores/netsuite.d.ts +1 -1
  33. package/dist/stores/supplier.d.ts +4 -1
  34. package/dist/style.css +1 -1
  35. package/dist/supplier-BxBMThPQ.js +77 -0
  36. package/dist/tsconfig.app.tsbuildinfo +1 -1
  37. package/dist/{use-template-enabled-locations-2-DyD24laW.js → use-template-enabled-locations-2-BIgPnzRW.js} +1 -1
  38. package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
  39. package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
  40. package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
  41. package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
  42. package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
  43. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +7 -5
  44. package/dist/{xlsx-Dd5ckm6-.js → xlsx-X_0qJPDg.js} +1 -1
  45. package/dist/{xlsx.util-qlqvEcJz.js → xlsx.util-BOPzVbUa.js} +1 -1
  46. package/package.json +2 -1
  47. package/dist/ClosingTemplateView-BPrDQ_8-.js +0 -1688
  48. package/dist/FmDroppableField-DQFPEiJn.js +0 -152
  49. package/dist/IntegrationView-Bu0waSjB.js +0 -1141
  50. package/dist/SupplierView-gtaS4K3U.js +0 -827
  51. package/dist/TransferTemplateView-C0pjLfbz.js +0 -2054
  52. package/dist/purchase-order-transaction-type-ZMNa__2l.js +0 -348
  53. package/dist/supplier-CJcqHpaM.js +0 -70
@@ -1,152 +0,0 @@
1
- import { defineComponent as O, ref as r, computed as v, resolveComponent as z, openBlock as n, createElementBlock as p, createElementVNode as d, createCommentVNode as k, renderSlot as c, createBlock as C, normalizeClass as u, toDisplayString as g } from "vue";
2
- import { X as N } from "./app-TB3IWuaU.js";
3
- const M = {
4
- key: 0,
5
- class: "relative"
6
- }, W = ["accept", "disabled"], X = { class: "flex flex-col gap-8" }, q = ["accept", "disabled"], G = /* @__PURE__ */ O({
7
- __name: "FmDroppableField",
8
- props: {
9
- buttonLabel: {},
10
- label: { default: "" },
11
- disabled: { type: Boolean, default: !1 },
12
- accept: { default: "" },
13
- maxFileSize: { default: 8e6 },
14
- contentClass: {}
15
- },
16
- emits: ["file-upload", "file-rejected"],
17
- setup(S, { emit: $ }) {
18
- const l = S, y = $, t = r(!1), i = r(null), s = r(null), f = r(), B = (e) => {
19
- l.disabled || (e.stopPropagation(), e.preventDefault());
20
- }, V = (e) => {
21
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !0);
22
- }, R = (e) => {
23
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !1);
24
- }, j = (e) => {
25
- var a;
26
- l.disabled || (e.stopPropagation(), e.preventDefault(), t.value = !1, F((a = e.dataTransfer) == null ? void 0 : a.files));
27
- };
28
- function F(e) {
29
- if (e)
30
- if (f.value = e, i.value = T(e[0]), s.value = A(e[0]), i.value && s.value)
31
- y("file-upload", e[0]);
32
- else {
33
- const a = L();
34
- y("file-rejected", [
35
- {
36
- file: e[0],
37
- reason: a
38
- }
39
- ]);
40
- }
41
- }
42
- const L = () => {
43
- const e = new Array();
44
- return i.value || e.push("invalid-type"), s.value || e.push("invalid-size"), e;
45
- }, T = (e) => {
46
- if (!l.accept) return !0;
47
- const a = l.accept.split(",").map((o) => o.trim());
48
- for (const o of a)
49
- if (E(o)) {
50
- if (D(o) === D(e.type)) return !0;
51
- } else if (P(e) === o || e.type === o) return !0;
52
- return !1;
53
- }, A = (e) => e.size <= l.maxFileSize, E = (e) => e.indexOf("*") !== -1, P = (e) => "." + e.name.split(".").pop(), D = (e) => e.substring(0, e.indexOf("/")), w = v(() => {
54
- if (t.value) return "Drop file to upload";
55
- if (i.value) {
56
- if (!s.value) return `File size exceeds ${l.maxFileSize * 1e-6}mb`;
57
- } else return "File type is not valid";
58
- return "";
59
- }), m = v(() => f.value ? !i.value || !s.value : !1), _ = (e) => {
60
- const a = e.target;
61
- F(a.files);
62
- }, x = v(() => {
63
- var e;
64
- return (e = f.value) == null ? void 0 : e.item(0);
65
- }), b = r();
66
- return (e, a) => {
67
- const o = z("FmLabel"), I = z("FmButton");
68
- return n(), p("label", {
69
- class: "fm-droppable-field",
70
- ref_key: "fmButtonRef",
71
- ref: b
72
- }, [
73
- e.$slots.default ? (n(), p("div", M, [
74
- d("input", {
75
- accept: e.accept,
76
- disabled: e.disabled,
77
- class: "fm-droppable-field__input",
78
- type: "file",
79
- onChange: _
80
- }, null, 40, W)
81
- ])) : k("", !0),
82
- c(e.$slots, "default", {
83
- isDragging: t.value,
84
- isValidFileType: i.value,
85
- isValidFileSize: s.value,
86
- singleValidFile: x.value,
87
- openFileDialog: () => {
88
- var h;
89
- return console.log("click", b.value), (h = b.value) == null ? void 0 : h.click();
90
- }
91
- }, () => [
92
- d("div", X, [
93
- e.$slots.label ? c(e.$slots, "label", { key: 0 }, void 0, !0) : (n(), C(o, {
94
- key: 1,
95
- label: e.label
96
- }, null, 8, ["label"]))
97
- ]),
98
- d("div", {
99
- class: u([[
100
- e.contentClass ? e.contentClass : "w-full h-full",
101
- {
102
- "fm-droppable-field__container--dragging": t.value,
103
- "fm-droppable-field__container--invalid": m.value && !e.disabled,
104
- "fm-droppable-field__container--disabled": e.disabled
105
- }
106
- ], "fm-droppable-field__container"]),
107
- onDragenter: B,
108
- onDragleave: R,
109
- onDragover: V,
110
- onDrop: j
111
- }, [
112
- (t.value || m.value) && !e.disabled ? (n(), p("div", {
113
- key: 0,
114
- class: u({
115
- "fm-typo-en-body-lg-600": !0,
116
- "text-fm-color-primary": t.value,
117
- "text-fm-color-typo-error": m.value
118
- })
119
- }, g(w.value), 3)) : (n(), C(I, {
120
- key: 1,
121
- disabled: e.disabled,
122
- label: e.buttonLabel ?? "Add files",
123
- size: "md",
124
- variant: "secondary"
125
- }, null, 8, ["disabled", "label"])),
126
- c(e.$slots, "accept-text", {}, () => [
127
- l.accept ? (n(), p("div", {
128
- key: 0,
129
- class: u([[e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"], "fm-typo-en-body-md-400"])
130
- }, g(`Accepts ${l.accept}`), 3)) : k("", !0)
131
- ], !0),
132
- d("input", {
133
- accept: e.accept,
134
- disabled: e.disabled,
135
- class: "fm-droppable-field__input",
136
- type: "file",
137
- onChange: _
138
- }, null, 40, q)
139
- ], 34),
140
- c(e.$slots, "helper-text", {}, () => [
141
- d("div", {
142
- class: u([[e.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-secondary"], "fm-typo-en-body-sm-400"])
143
- }, g(`Max size ${l.maxFileSize * 1e-6}mb`), 3)
144
- ], !0)
145
- ], !0)
146
- ], 512);
147
- };
148
- }
149
- }), K = /* @__PURE__ */ N(G, [["__scopeId", "data-v-311b22a0"]]);
150
- export {
151
- K as F
152
- };