@feedmepos/mf-inventory-portal 0.0.22-dev.5 → 0.0.22-dev.50

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 (144) hide show
  1. package/dist/ApprovalView-CyIOcyG5.js +140 -0
  2. package/dist/{BindingsDialog-DQJhC3Mo.js → BindingsDialog-BXePN5iL.js} +10 -10
  3. package/dist/{BindingsPicker-YfbPb_dG.js → BindingsPicker-Bd_qb0aO.js} +15 -15
  4. package/dist/{BindingsTable-D3MVcHXZ.js → BindingsTable-BV-nP9HU.js} +4 -4
  5. package/dist/ClosingTemplateView-CSvWLccZ.js +1829 -0
  6. package/dist/FmDroppableField-DwZ6ujPh.js +154 -0
  7. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DpCoW_-F.js +266 -0
  8. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpzreBHD.js +435 -0
  9. package/dist/IngredientBindedItem.vue_vue_type_script_setup_true_lang-C8k7pSPT.js +51 -0
  10. package/dist/IngredientGroupView-C0hPeD41.js +608 -0
  11. package/dist/IngredientsView-CpwVIGXd.js +1608 -0
  12. package/dist/IntegrationView-Bt8pGAHS.js +1225 -0
  13. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-wsBLYBpB.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-yA-qJUUz.js} +1 -1
  14. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BqcqoKyN.js +116 -0
  15. package/dist/{PurchaseOrderPrintPreview-BcAmgmD8.js → PurchaseOrderPrintPreview-D3ugzCW_.js} +7 -7
  16. package/dist/ReceiveRequestView-D14YTEEe.js +4073 -0
  17. package/dist/RecipeView-D0WsMfKm.js +594 -0
  18. package/dist/Standalone.vue.d.ts +2 -0
  19. package/dist/StockView-sxI0L6MP.js +7770 -0
  20. package/dist/SupplierView-clAkARuW.js +1468 -0
  21. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-C9NU1m6S.js +1150 -0
  22. package/dist/TransferTemplateView-DpI6kVqX.js +1258 -0
  23. package/dist/{UnitView-B95q8Xrj.js → UnitView-CneJsDum.js} +18 -18
  24. package/dist/{WarehouseView-CHGXvyeS.js → WarehouseView-DYbFWTlh.js} +176 -177
  25. package/dist/api/bill.d.ts +84 -238
  26. package/dist/api/closing-template.d.ts +6 -4
  27. package/dist/api/inventory.d.ts +282 -91
  28. package/dist/api/netsuite.d.ts +71 -0
  29. package/dist/api/purchase-order-template.d.ts +4 -6
  30. package/dist/api/supplier.d.ts +1 -0
  31. package/dist/{app-CfXF4jdF.js → app-B4pi48sM.js} +26414 -24985
  32. package/dist/app.d.ts +88 -3
  33. package/dist/app.js +3 -3
  34. package/dist/components/FmFilterableMenuOptions.vue.d.ts +54 -0
  35. package/dist/components/FmMinMaxInputRules.d.ts +2 -0
  36. package/dist/components/FmMultiselectDialog.vue.d.ts +3 -9
  37. package/dist/components/FmMultiselectDialogProps.d.ts +0 -2
  38. package/dist/components/FmUnitInputRules.d.ts +2 -0
  39. package/dist/components/inventory-binding/InventoryBinding.vue.d.ts +5 -5
  40. package/dist/components/map/GoogleMap.vue.d.ts +4 -4
  41. package/dist/components/shell/inventory/binding-dialog.vue.d.ts +2 -2
  42. package/dist/components/shell/inventory/binding-ui.vue.d.ts +2 -2
  43. package/dist/{decimal-BZ7tX47r.js → decimal-C8O2p3Sg.js} +1 -1
  44. package/dist/defineDeepModel-BXP1vLGf.js +13 -0
  45. package/dist/extensions/array.d.ts +1 -0
  46. package/dist/format-time-from-id-DgW7OJL_.js +15 -0
  47. package/dist/format-unit-display-BP4O0Pym.js +1195 -0
  48. package/dist/helper/rules.d.ts +7 -0
  49. package/dist/helper/rules.spec.d.ts +1 -0
  50. package/dist/helper/xlsx.util.d.ts +7 -0
  51. package/dist/router/name.d.ts +1 -0
  52. package/dist/stores/api.d.ts +1 -0
  53. package/dist/stores/feature.d.ts +0 -1
  54. package/dist/stores/helper/core-store-proxy.d.ts +3 -0
  55. package/dist/stores/helper/generate-backend-urls.d.ts +1 -0
  56. package/dist/stores/integration/foodmarkethub.d.ts +391 -0
  57. package/dist/stores/integration/index.d.ts +7 -0
  58. package/dist/stores/integration/netsuite.d.ts +102 -0
  59. package/dist/stores/inventory.d.ts +294 -9
  60. package/dist/stores/location.d.ts +508 -503
  61. package/dist/stores/supplier.d.ts +124 -4
  62. package/dist/style.css +1 -1
  63. package/dist/supplier-D-8XhuF_.js +77 -0
  64. package/dist/tsconfig.app.tsbuildinfo +1 -1
  65. package/dist/use-template-enabled-locations-2-C2E4j3k-.js +85 -0
  66. package/dist/views/closing-template/closing-template-import/ClosingTemplateImport.vue.d.ts +2 -0
  67. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItem.vue.d.ts +12 -0
  68. package/dist/views/closing-template/closing-template-import/ClosingTemplateImportItemProps.d.ts +7 -0
  69. package/dist/views/closing-template/components/closing-template-form/composables/use-closing-template-items.d.ts +1 -1
  70. package/dist/views/closing-template/composables/use-closing-template-actions.d.ts +877 -1038
  71. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +882 -1049
  72. package/dist/views/closing-template/helpers/import-export.helper.d.ts +58 -0
  73. package/dist/views/ingredient-group/IngredientGroupView.vue.d.ts +3 -0
  74. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialog.vue.d.ts +31 -0
  75. package/dist/views/ingredient-group/components/ingredient-group-dialog/IngredientGroupDialogProps.d.ts +12 -0
  76. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupForm.vue.d.ts +20 -0
  77. package/dist/views/ingredient-group/components/ingredient-group-form/IngredientGroupFormProps.d.ts +12 -0
  78. package/dist/views/ingredient-group/composables/use-ingredient-group-actions.d.ts +24 -0
  79. package/dist/views/ingredient-group/composables/use-ingredient-group-table.d.ts +215 -0
  80. package/dist/views/ingredients/components/convert/ConvertForm.vue.d.ts +2 -2
  81. package/dist/views/ingredients/components/ingredient-form/IngredientForm.vue.d.ts +2 -2
  82. package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +5 -5
  83. package/dist/views/ingredients/composables/use-ingredient-form.d.ts +2 -2
  84. package/dist/views/ingredients/composables/use-ingredient-table.d.ts +1 -1
  85. package/dist/views/integration/FoodMarketHub.vue.d.ts +2 -0
  86. package/dist/views/integration/NetSuite.vue.d.ts +2 -0
  87. package/dist/views/integration/components/ApplyProductDialog.vue.d.ts +7 -7
  88. package/dist/views/integration/components/ApplyProductDialogV4.vue.d.ts +7 -7
  89. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +1 -0
  90. package/dist/views/receive-request/components/transfer-form/NetSuiteField.vue.d.ts +49 -0
  91. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +1961 -87
  92. package/dist/views/receive-request/components/transfer-form/TransferFormProps.d.ts +1 -0
  93. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +2 -2
  94. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +1 -1
  95. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +2377 -292
  96. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +2329 -244
  97. package/dist/views/recipe/components/recipe-form/RecipeForm.vue.d.ts +2 -2
  98. package/dist/views/recipe/composables/use-recipe-form.d.ts +2 -2
  99. package/dist/views/stock/components/StockRecordCard.vue.d.ts +42 -119
  100. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +32 -2
  101. package/dist/views/stock/composables/use-stock-action.d.ts +2 -2
  102. package/dist/views/supplier/components/supplier-import/SupplierImport.vue.d.ts +2 -0
  103. package/dist/views/supplier/components/supplier-import/SupplierImportItem.vue.d.ts +12 -0
  104. package/dist/views/supplier/components/supplier-import/SupplierImportItemProps.d.ts +6 -0
  105. package/dist/views/supplier/composables/use-supplier-actions.d.ts +10 -0
  106. package/dist/views/supplier/helpers/import-export.helper.d.ts +50 -0
  107. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetails.vue.d.ts +0 -2
  108. package/dist/views/transfer-template/components/transfer-template-details/TransferTemplateDetailsProps.d.ts +0 -1
  109. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations-2.d.ts +13 -0
  110. package/dist/views/transfer-template/components/transfer-template-form/composables/use-template-enabled-locations.d.ts +71 -85
  111. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-locations.d.ts +39 -2
  112. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +1 -1
  113. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImport.vue.d.ts +2 -0
  114. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItem.vue.d.ts +12 -0
  115. package/dist/views/transfer-template/components/transfer-template-import/TransferTemplateImportItemProps.d.ts +9 -0
  116. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +1277 -1478
  117. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +1697 -906
  118. package/dist/views/transfer-template/helpers/import-export.helper.d.ts +76 -0
  119. package/dist/views/transfer-template/helpers/remove-deleted-skus.helper.d.ts +1 -247
  120. package/dist/views/transfer-template/helpers/template-item.error.helper.d.ts +1 -0
  121. package/dist/views/unit/composables/use-unit-form.d.ts +2 -2
  122. package/dist/{xlsx-BtP1Qjj6.js → xlsx-Dsy-fxZw.js} +1525 -1525
  123. package/dist/xlsx.util-CxGmvsp9.js +78 -0
  124. package/package.json +10 -7
  125. package/dist/ApprovalView-BdaNwUBc.js +0 -129
  126. package/dist/ClosingTemplateView-BpErgepi.js +0 -1030
  127. package/dist/FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D3B7kOlU.js +0 -372
  128. package/dist/IngredientsView-GqrkpCm5.js +0 -1758
  129. package/dist/IntegrationView-7c3MpUzS.js +0 -1141
  130. package/dist/PremiumBadge.vue_vue_type_script_setup_true_lang-BIwdObb1.js +0 -88
  131. package/dist/ReceiveRequestView-BAuXvzQW.js +0 -215
  132. package/dist/RecipeView-C6tZPQ-K.js +0 -581
  133. package/dist/StockView-4uXHYz4E.js +0 -1892
  134. package/dist/SupplierView-CuWvKCWY.js +0 -827
  135. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CTQ9HIqf.js +0 -740
  136. package/dist/TransferDialog.vue_vue_type_script_setup_true_lang--6JoXOLD.js +0 -1409
  137. package/dist/TransferTemplateView-D1Lfi3aW.js +0 -1230
  138. package/dist/defineDeepModel-BKAs9qN6.js +0 -13
  139. package/dist/format-time-from-id-B7ZE4sdX.js +0 -15
  140. package/dist/id-to-date-D1lOqIir.js +0 -30
  141. package/dist/purchase-order-transaction-type-tZ7cj1dz.js +0 -702
  142. package/dist/supplier-BIDBk5S6.js +0 -69
  143. package/dist/use-template-enabled-locations-DlMnS9WJ.js +0 -57
  144. package/dist/xlsx.util-BKFiH-ig.js +0 -109
@@ -0,0 +1,140 @@
1
+ import { defineComponent as ae, ref as g, watch as oe, computed as b, resolveComponent as re, openBlock as x, createBlock as J, unref as e, withCtx as y, createElementVNode as s, normalizeClass as ne, createVNode as n, normalizeStyle as se, toDisplayString as le, createElementBlock as ie, createCommentVNode as ce, Teleport as pe, mergeProps as ue } from "vue";
2
+ import { i as me, af as v, V as K } from "./app-B4pi48sM.js";
3
+ import { b as de, u as fe, _ as ve, a as _e } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-BpzreBHD.js";
4
+ import { a as he, b as De, _ as ge } from "./TransferDetails.vue_vue_type_script_setup_true_lang-C9NU1m6S.js";
5
+ import { _ as be, F as _ } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
6
+ import { useBreakpoints as xe } from "@feedmepos/ui-library";
7
+ import { useI18n as ye } from "@feedmepos/mf-common";
8
+ const we = { class: "flex flex-col py-8" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ke = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary line-clamp-1" }, Oe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1" }, Se = {
9
+ key: 0,
10
+ class: "fm-typo-en-body-md-400 text-fm-color-typo-primary line-clamp-1"
11
+ }, Te = { class: "pt-8" }, Le = /* @__PURE__ */ ae({
12
+ __name: "ApprovalView",
13
+ setup(Ce) {
14
+ const o = he("approval"), { columnDefs: Q } = De("approval", o), W = me();
15
+ v.object({
16
+ name: v.string().optional().nullable(),
17
+ start: v.date().optional().nullable(),
18
+ end: v.date().optional().nullable()
19
+ });
20
+ const w = g({
21
+ name: "",
22
+ ...de()
23
+ }), a = g({
24
+ startDate: K(w.value.start ?? /* @__PURE__ */ new Date()),
25
+ endDate: K(w.value.end ?? /* @__PURE__ */ new Date())
26
+ });
27
+ oe([() => a.value.startDate], () => {
28
+ if (!a.value.startDate)
29
+ return;
30
+ if (!a.value.endDate) {
31
+ a.value.endDate = a.value.startDate;
32
+ return;
33
+ }
34
+ const i = new Date(a.value.startDate);
35
+ if (new Date(a.value.endDate).getTime() < i.getTime()) {
36
+ a.value.endDate = a.value.startDate;
37
+ return;
38
+ }
39
+ });
40
+ const h = g(""), { breakpoints: R } = xe(), D = b(() => R.value.xs || R.value.sm), X = b(() => D.value ? 10 : 20), Z = fe(), { t: k } = ye(), B = b(() => [
41
+ {
42
+ label: k("common.refresh"),
43
+ value: "refresh"
44
+ }
45
+ ]);
46
+ function I(i) {
47
+ switch (i) {
48
+ case "refresh":
49
+ return o.fetchData();
50
+ }
51
+ }
52
+ return (i, l) => {
53
+ const ee = re("FmTable");
54
+ return x(), J(ve, {
55
+ title: e(k)("inventory.transfer.approval.title"),
56
+ actions: B.value,
57
+ "onClick:action": I
58
+ }, {
59
+ default: y(() => [
60
+ s("div", {
61
+ class: ne([
62
+ "flex flex-col gap-8 max-h-full",
63
+ {
64
+ "p-0": D.value,
65
+ "px-24 ": !D.value
66
+ }
67
+ ])
68
+ }, [
69
+ n(_e, {
70
+ searchable: "",
71
+ "change-location": "",
72
+ search: h.value,
73
+ "onUpdate:search": l[0] || (l[0] = (r) => h.value = r)
74
+ }, null, 8, ["search"]),
75
+ n(ee, {
76
+ style: se(e(Z).tableHeight),
77
+ "column-defs": e(Q),
78
+ "row-data": e(o).purchaseRequests.value,
79
+ "search-value": h.value,
80
+ loading: !e(W)._currentLocation || e(o).loading.value,
81
+ onRowClick: l[1] || (l[1] = (r) => e(o).promptShowTransferDetails(r.original.purchaseOrder, r.original)),
82
+ "page-size": X.value
83
+ }, {
84
+ "list-row": y((r) => [
85
+ n(be, {
86
+ row: r,
87
+ onRowClick: (t) => e(o).promptShowTransferDetails(t.purchaseOrder, t)
88
+ }, {
89
+ default: y((t) => {
90
+ var O, S, T, c, C, z, F, M, p, V, $, u, Y, m, q, L, N, P, j, d, A, E, H, U, f, G;
91
+ return [
92
+ s("div", we, [
93
+ s("div", Re, [
94
+ n(e(_), {
95
+ render: (T = (S = (O = t.purchaseOrder__id) == null ? void 0 : O.column) == null ? void 0 : S.columnDef) == null ? void 0 : T.cell,
96
+ props: (C = (c = t.purchaseOrder__id) == null ? void 0 : c.getContext) == null ? void 0 : C.call(c)
97
+ }, null, 8, ["render", "props"])
98
+ ]),
99
+ s("div", ke, [
100
+ n(e(_), {
101
+ render: (M = (F = (z = t.to_name) == null ? void 0 : z.column) == null ? void 0 : F.columnDef) == null ? void 0 : M.cell,
102
+ props: (V = (p = t.to_name) == null ? void 0 : p.getContext) == null ? void 0 : V.call(p)
103
+ }, null, 8, ["render", "props"])
104
+ ]),
105
+ s("div", Oe, le((q = (m = (Y = (u = ($ = r.original.purchaseOrder) == null ? void 0 : $.items) == null ? void 0 : u.map) == null ? void 0 : Y.call(u, (te) => `${te.name}`)) == null ? void 0 : m.join) == null ? void 0 : q.call(m, ", ")), 1),
106
+ (L = r.original.purchaseOrder) != null && L.ref ? (x(), ie("div", Se, [
107
+ n(e(_), {
108
+ render: (j = (P = (N = t.purchaseOrder_ref) == null ? void 0 : N.column) == null ? void 0 : P.columnDef) == null ? void 0 : j.cell,
109
+ props: (A = (d = t.purchaseOrder_ref) == null ? void 0 : d.getContext) == null ? void 0 : A.call(d)
110
+ }, null, 8, ["render", "props"])
111
+ ])) : ce("", !0),
112
+ s("div", Te, [
113
+ n(e(_), {
114
+ render: (U = (H = (E = t.purchaseOrder_status) == null ? void 0 : E.column) == null ? void 0 : H.columnDef) == null ? void 0 : U.cell,
115
+ props: (G = (f = t.purchaseOrder_status) == null ? void 0 : f.getContext) == null ? void 0 : G.call(f)
116
+ }, null, 8, ["render", "props"])
117
+ ])
118
+ ])
119
+ ];
120
+ }),
121
+ _: 2
122
+ }, 1032, ["row", "onRowClick"])
123
+ ]),
124
+ _: 1
125
+ }, 8, ["style", "column-defs", "row-data", "search-value", "loading", "page-size"])
126
+ ], 2),
127
+ (x(), J(pe, { to: "body" }, [
128
+ n(ge, ue(e(o).transferDetailsProps.value, {
129
+ onSubmitted: e(o).fetchData
130
+ }), null, 16, ["onSubmitted"])
131
+ ]))
132
+ ]),
133
+ _: 1
134
+ }, 8, ["title", "actions"]);
135
+ };
136
+ }
137
+ });
138
+ export {
139
+ Le as default
140
+ };
@@ -1,5 +1,5 @@
1
- import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as d, createBlock as I, withCtx as R, createVNode as a, createCommentVNode as z, createElementVNode as P } from "vue";
2
- import { u as V, an as L, _ as S } from "./app-CfXF4jdF.js";
1
+ import { defineComponent as C, ref as o, onMounted as M, onUnmounted as F, watch as x, resolveComponent as l, openBlock as i, createElementBlock as c, createBlock as I, withCtx as z, createVNode as a, createCommentVNode as R, createElementVNode as P } from "vue";
2
+ import { u as V, az as L, _ as S } from "./app-B4pi48sM.js";
3
3
  const U = {
4
4
  key: 0,
5
5
  class: "flex justify-end gap-8 items-center"
@@ -9,10 +9,10 @@ const U = {
9
9
  }, A = /* @__PURE__ */ C({
10
10
  __name: "BindingsDialog",
11
11
  setup(N) {
12
- const p = V(), u = o(!0), s = o(new Array()), c = o(), t = L(y);
12
+ const p = V(), d = o(!0), s = o(new Array()), u = o(), t = L(y);
13
13
  async function y() {
14
- await p.readInventory(), c.value = t.onMessage("props:inventory-bindings", (e) => {
15
- u.value = !1, s.value = e;
14
+ await p.readInventory(), u.value = t.onMessage("props:inventory-bindings", (e) => {
15
+ d.value = !1, s.value = e;
16
16
  }).onMessage("props:inventory-bindings:validate", () => {
17
17
  var e;
18
18
  (e = f.value) == null || e.validateInputs();
@@ -36,7 +36,7 @@ const U = {
36
36
  }).observe(e);
37
37
  }), F(() => {
38
38
  var e, n;
39
- (n = (e = c.value) == null ? void 0 : e.removeEventListener) == null || n.call(e);
39
+ (n = (e = u.value) == null ? void 0 : e.removeEventListener) == null || n.call(e);
40
40
  }), x([() => s.value], ([e]) => {
41
41
  t.sendMessage("@update:inventory-bindings", e);
42
42
  });
@@ -47,12 +47,12 @@ const U = {
47
47
  const f = o();
48
48
  return (e, n) => {
49
49
  const g = l("FmButton"), B = l("FmForm"), h = l("FmCircularProgress");
50
- return i(), d("div", {
50
+ return i(), c("div", {
51
51
  class: "bg-white",
52
52
  ref_key: "resizeableRef",
53
53
  ref: m
54
54
  }, [
55
- u.value ? (i(), d("div", E, [
55
+ d.value ? (i(), c("div", E, [
56
56
  a(h, { size: "md" }),
57
57
  n[2] || (n[2] = P("div", null, "Loading bindings dialog...", -1))
58
58
  ])) : (i(), I(B, {
@@ -62,14 +62,14 @@ const U = {
62
62
  ref: f,
63
63
  class: "flex flex-col gap-16"
64
64
  }, {
65
- default: R(() => [
65
+ default: z(() => [
66
66
  a(S, {
67
67
  "model-value": s.value,
68
68
  "onUpdate:modelValue": n[0] || (n[0] = (w) => s.value = w),
69
69
  "iframe-mode": "",
70
70
  "onClick:pickInventoryBindings": k
71
71
  }, null, 8, ["model-value"]),
72
- r.value ? z("", !0) : (i(), d("div", U, [
72
+ r.value ? R("", !0) : (i(), c("div", U, [
73
73
  a(g, {
74
74
  type: "button",
75
75
  variant: "tertiary",
@@ -1,22 +1,22 @@
1
- import { defineComponent as S, computed as r, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as u, createElementVNode as k } from "vue";
2
- import { u as x, an as M, y as z } from "./app-CfXF4jdF.js";
3
- const K = {
1
+ import { defineComponent as S, computed as u, ref as l, onMounted as U, onUnmounted as V, resolveComponent as E, openBlock as p, createElementBlock as f, createVNode as r, createElementVNode as k } from "vue";
2
+ import { u as M, az as x, j as z } from "./app-B4pi48sM.js";
3
+ const F = {
4
4
  key: 0,
5
5
  class: "flex flex-col gap-16"
6
- }, w = { class: "flex justify-end gap-8 items-center" }, F = {
6
+ }, K = { class: "flex justify-end gap-8 items-center" }, w = {
7
7
  key: 1,
8
8
  class: "p-24 flex items-center justify-center gap-16"
9
9
  }, N = /* @__PURE__ */ S({
10
10
  __name: "BindingsPicker",
11
- setup(L) {
12
- const d = x(), C = r(() => d.recipes), I = r(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = r(() => a.value === "SKU" ? I.value.map((s) => ({
11
+ setup(j) {
12
+ const d = M(), C = u(() => d.recipes), I = u(() => d.skus), g = l(!0), i = l(new Array()), a = l("RECIPE"), c = u(() => a.value === "SKU" ? I.value.map((s) => ({
13
13
  label: s.name,
14
14
  sublabel: s.code,
15
15
  value: s
16
16
  })) : C.value.map((s) => ({
17
17
  label: s.name,
18
18
  value: s
19
- }))), b = r({
19
+ }))), b = u({
20
20
  get() {
21
21
  if (a.value === "SKU") {
22
22
  const e = i.value.filter((n) => n.type === "SKU");
@@ -62,7 +62,7 @@ const K = {
62
62
  ];
63
63
  }
64
64
  }
65
- }), _ = l(), o = M(B);
65
+ }), _ = l(), o = x(B);
66
66
  async function B() {
67
67
  await d.readInventory(), _.value = o.onMessage(
68
68
  "props:binding-items",
@@ -93,22 +93,22 @@ const K = {
93
93
  ref_key: "resizeableRef",
94
94
  ref: y
95
95
  }, [
96
- g.value ? (p(), f("div", F, [
97
- u(t, { size: "md" }),
96
+ g.value ? (p(), f("div", w, [
97
+ r(t, { size: "md" }),
98
98
  s[1] || (s[1] = k("div", null, "Loading bindings dialog...", -1))
99
- ])) : (p(), f("div", K, [
100
- u(z, {
99
+ ])) : (p(), f("div", F, [
100
+ r(z, {
101
101
  "model-value": b.value,
102
102
  "onUpdate:modelValue": s[0] || (s[0] = (m) => b.value = m),
103
103
  items: c.value
104
104
  }, null, 8, ["model-value", "items"]),
105
- k("div", w, [
106
- u(n, {
105
+ k("div", K, [
106
+ r(n, {
107
107
  variant: "tertiary",
108
108
  label: "Close",
109
109
  onClick: P
110
110
  }),
111
- u(n, {
111
+ r(n, {
112
112
  label: "Submit",
113
113
  onClick: R
114
114
  })
@@ -1,5 +1,5 @@
1
- import { defineComponent as _, ref as c, provide as C, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as z, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
2
- import { q as v, u as E, an as L } from "./app-CfXF4jdF.js";
1
+ import { defineComponent as _, ref as c, provide as z, computed as f, resolveComponent as b, openBlock as p, createBlock as h, h as C, onMounted as B, onUnmounted as I, createElementBlock as y, createVNode as N, createElementVNode as x } from "vue";
2
+ import { k as v, u as E, az as L } from "./app-B4pi48sM.js";
3
3
  import { components as F } from "@feedmepos/ui-library";
4
4
  import "@feedmepos/mf-common";
5
5
  const P = /* @__PURE__ */ _({
@@ -19,7 +19,7 @@ const P = /* @__PURE__ */ _({
19
19
  context: "",
20
20
  name: ""
21
21
  });
22
- C("closeDialog", () => {
22
+ z("closeDialog", () => {
23
23
  u.value.isOpen = !u.value.isOpen;
24
24
  });
25
25
  const o = k, m = d, a = f(() => o.items.map((e) => ({
@@ -64,7 +64,7 @@ const P = /* @__PURE__ */ _({
64
64
  size: 24,
65
65
  cell(i) {
66
66
  const e = a.value.find((n) => n.key === i.row.original.key);
67
- return z(F.FmButton, {
67
+ return C(F.FmButton, {
68
68
  icon: "edit",
69
69
  bgColor: "white",
70
70
  textColor: "neutral-grey-400",