@feedmepos/mf-inventory-portal 0.0.22-dev.2 → 0.0.22-dev.4

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 (42) hide show
  1. package/dist/App.vue.d.ts +2 -0
  2. package/dist/{ApprovalView-D7WEr35k.js → ApprovalView-xF73Z1jN.js} +19 -19
  3. package/dist/{BindingsDialog-C-3uO6pD.js → BindingsDialog-CCSAxGT4.js} +1 -1
  4. package/dist/{BindingsPicker-B3tGisCE.js → BindingsPicker-ErFH0uEQ.js} +1 -1
  5. package/dist/{BindingsTable-CPtiH3vj.js → BindingsTable-D8ffJgIJ.js} +1 -1
  6. package/dist/ClosingTemplateView-DdZlX1ug.js +1030 -0
  7. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ohHZLOuR.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ZYtBNoaE.js} +13 -15
  8. package/dist/{IngredientsView-D-EKGLq9.js → IngredientsView-DnwwQJTN.js} +5 -6
  9. package/dist/{IntegrationView-BVAO_vch.js → IntegrationView-54yz2EqS.js} +2 -2
  10. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CJYmB7Ct.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CKvKlCk-.js} +1 -1
  11. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BxkM-SOw.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bom_KvXW.js} +1 -1
  12. package/dist/{PurchaseOrderPrintPreview-CP-mK62z.js → PurchaseOrderPrintPreview-pcpWSfl4.js} +1 -1
  13. package/dist/{ReceiveRequestView-x8WTvuDk.js → ReceiveRequestView-D5HXMY4Z.js} +15 -16
  14. package/dist/{RecipeView-BysIWI1W.js → RecipeView-BHkTgm5H.js} +3 -3
  15. package/dist/{StockView-SyWxT4Ee.js → StockView-iczCFYxn.js} +8 -9
  16. package/dist/{SupplierView-a0HAZJau.js → SupplierView-TYCkPXan.js} +3 -3
  17. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-ckp8gcT_.js → TransferDetails.vue_vue_type_script_setup_true_lang-EN3JgHKF.js} +4 -4
  18. package/dist/{TransferDialog.vue_vue_type_script_setup_true_lang-BSvpuWY9.js → TransferDialog.vue_vue_type_script_setup_true_lang-DC0Ss5hi.js} +5 -5
  19. package/dist/{TransferTemplateView-BGi6zd6d.js → TransferTemplateView-Bbvpuys7.js} +45 -165
  20. package/dist/{UnitView-B3c7W5lw.js → UnitView-B9yE4-rc.js} +4 -4
  21. package/dist/{WarehouseView-DDV-yslF.js → WarehouseView-DUtVLTjb.js} +16 -16
  22. package/dist/api/closing-template.d.ts +14 -0
  23. package/dist/{app-DURkcZal.js → app-w8TOQVZc.js} +1288 -1221
  24. package/dist/app.js +3 -3
  25. package/dist/{decimal-BGJlFDm8.js → decimal-C4q7UMfr.js} +1 -1
  26. package/dist/{defineDeepModel-pATZSiCT.js → defineDeepModel-BOApqV24.js} +1 -1
  27. package/dist/extensions/promises.d.ts +14 -0
  28. package/dist/{format-time-from-id-BCAuJEq2.js → format-time-from-id-Cafjo8fn.js} +1 -1
  29. package/dist/helper/date2.d.ts +1 -0
  30. package/dist/{id-to-date-CVHmTOJk.js → id-to-date-CtSHSVJF.js} +1 -1
  31. package/dist/{purchase-order-transaction-type-DvSpCSXr.js → purchase-order-transaction-type-CIC5h-6x.js} +10 -10
  32. package/dist/style.css +1 -1
  33. package/dist/{supplier-DmBbGAwf.js → supplier-CM-vZ4bQ.js} +1 -1
  34. package/dist/tsconfig.app.tsbuildinfo +1 -1
  35. package/dist/{use-template-enabled-locations-BiuOdu1M.js → use-template-enabled-locations-Bm00vEzC.js} +1 -1
  36. package/dist/views/closing-template/components/closing-template-publish/ClosingTemplatePublish.vue.d.ts +6 -0
  37. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +65 -1
  38. package/dist/{xlsx-1DLm6bBD.js → xlsx-BggStaH1.js} +1 -1
  39. package/dist/{xlsx.util-DLtch7r5.js → xlsx.util-CqlYZLKW.js} +2 -2
  40. package/package.json +1 -1
  41. package/dist/ClosingTemplateView-Df0lgpjS.js +0 -928
  42. package/dist/array-ClJzD_Lt.js +0 -30
package/dist/app.js CHANGED
@@ -1,7 +1,7 @@
1
- import { ap as s, _ as r, aq as e, an as o, ao as t, u as i } from "./app-DURkcZal.js";
1
+ import { aq as r, _ as s, ar as e, ao as o, ap as t, u as i } from "./app-w8TOQVZc.js";
2
2
  export {
3
- s as FmApp,
4
- r as InventoryBindingForm,
3
+ r as FmApp,
4
+ s as InventoryBindingForm,
5
5
  e as InventoryBindingSummary,
6
6
  o as i18nMessages,
7
7
  t as routers,
@@ -1,4 +1,4 @@
1
- import "./app-DURkcZal.js";
1
+ import "./app-w8TOQVZc.js";
2
2
  function m(a) {
3
3
  function t(o, n = !0) {
4
4
  const e = Math.round(Math.log10(o));
@@ -1,4 +1,4 @@
1
- import { c as d, ag as i } from "./app-DURkcZal.js";
1
+ import { c as d, ah as i } from "./app-w8TOQVZc.js";
2
2
  import { getCurrentInstance as r, reactive as m, watch as u } from "vue";
3
3
  function b(e = "modelValue") {
4
4
  var o, n;
@@ -0,0 +1,14 @@
1
+ declare global {
2
+ interface PromiseConstructor {
3
+ withResolvers<T>(): {
4
+ promise: Promise<T>;
5
+ resolve: (value: T | PromiseLike<T>) => void;
6
+ reject: (reason?: unknown) => void;
7
+ };
8
+ }
9
+ interface Promise<T> {
10
+ /** Delays promise return by milliseconds */
11
+ delayed(milli: number): Promise<T>;
12
+ }
13
+ }
14
+ export {};
@@ -1,4 +1,4 @@
1
- import { a6 as n } from "./app-DURkcZal.js";
1
+ import { a7 as n } from "./app-w8TOQVZc.js";
2
2
  function d(r) {
3
3
  const t = a(r);
4
4
  return t === null ? "" : n(t);
@@ -1,4 +1,5 @@
1
1
  import type { DateRange } from 'node_modules/@feedmepos/ui-library/dist/components/form/calendar/date-range-picker/common';
2
+ export declare function formatDateToDDMMMYYYYHHMMAMPM(date: Date | string): string;
2
3
  export declare function formatDateToDDMMMYYYY(date: Date): string;
3
4
  export declare function formatDateToHHMMAMPM(date: Date): string;
4
5
  export declare function formatDateToYYYYMMM(date: Date, separator?: string): `${string}-${string}-${string}`;
@@ -1,4 +1,4 @@
1
- import { u as s, a as i } from "./xlsx-1DLm6bBD.js";
1
+ import { u as s, a as i } from "./xlsx-BggStaH1.js";
2
2
  function c(t, e) {
3
3
  return e.map((n) => typeof n.selector == "function" ? n.selector(t) : t[n.selector]);
4
4
  }
@@ -1,11 +1,11 @@
1
- import { n as W, j as A, ah as P, c as O, S as re, y as ae, a7 as oe, J as ne, K as se, ai as ce, ad as le, w as ie, b as ue, a as de } from "./app-DURkcZal.js";
1
+ import { n as W, j as A, ai as P, c as O, S as re, y as ae, a8 as oe, J as ne, K as se, aj as ce, ae as le, w as ie, b as ue, a as de } from "./app-w8TOQVZc.js";
2
2
  import { ref as w, computed as L, defineComponent as me, onMounted as pe, resolveComponent as q, openBlock as E, createElementBlock as K, createElementVNode as N, createVNode as I, createCommentVNode as fe, createBlock as H } from "vue";
3
- import { i as ve } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ohHZLOuR.js";
3
+ import { i as ve } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-ZYtBNoaE.js";
4
4
  import { F as x, D as M, R as C } from "./row-action.enum-PMKMRrZR.js";
5
5
  import { useDialog as G, useSnackbar as J, FmButtonVariant as z } from "@feedmepos/ui-library";
6
- import { f as he, p as ge } from "./format-time-from-id-BCAuJEq2.js";
6
+ import { f as he, p as ge } from "./format-time-from-id-Cafjo8fn.js";
7
7
  import { c as ye } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DlNJ6kRg.js";
8
- import { useCoreStore as V, useI18n as be } from "@feedmepos/mf-common";
8
+ import { useCoreStore as j, useI18n as be } from "@feedmepos/mf-common";
9
9
  import { defineStore as we } from "pinia";
10
10
  import { useRouter as Te } from "vue-router";
11
11
  const Se = W((a, n) => {
@@ -99,7 +99,7 @@ const Se = W((a, n) => {
99
99
  }, Q = W((a, n) => {
100
100
  function s() {
101
101
  var p;
102
- const e = V(), t = A(), r = t.businessLevel, l = `business_${((p = e.currentBusiness.value) == null ? void 0 : p._id) ?? ""}`, i = t.currentLocation.dbName;
102
+ const e = j(), t = A(), r = t.businessLevel, l = `business_${((p = e.currentBusiness.value) == null ? void 0 : p._id) ?? ""}`, i = t.currentLocation.dbName;
103
103
  return r ? l : i;
104
104
  }
105
105
  return {
@@ -113,7 +113,7 @@ const Se = W((a, n) => {
113
113
  },
114
114
  async getBusinessTemplate(e) {
115
115
  var i;
116
- const r = `business_${((i = V().currentBusiness.value) == null ? void 0 : i._id) ?? ""}`, l = `${a.inventoryBackendUrl}/${r}/purchase-order-template/${e}`;
116
+ const r = `business_${((i = j().currentBusiness.value) == null ? void 0 : i._id) ?? ""}`, l = `${a.inventoryBackendUrl}/${r}/purchase-order-template/${e}`;
117
117
  return n.get(l);
118
118
  },
119
119
  async readTemplates() {
@@ -126,7 +126,7 @@ const Se = W((a, n) => {
126
126
  },
127
127
  async readBusinessTemplates() {
128
128
  var l;
129
- const t = `business_${((l = V().currentBusiness.value) == null ? void 0 : l._id) ?? ""}`, r = `${a.inventoryBackendUrl}/${t}/purchase-order-template`;
129
+ const t = `business_${((l = j().currentBusiness.value) == null ? void 0 : l._id) ?? ""}`, r = `${a.inventoryBackendUrl}/${t}/purchase-order-template`;
130
130
  return n.get(r);
131
131
  },
132
132
  async createTemplate(e) {
@@ -598,11 +598,11 @@ function ke(a, n) {
598
598
  }
599
599
  await U();
600
600
  });
601
- const _ = w(), j = w(Math.random().toString());
601
+ const _ = w(), V = w(Math.random().toString());
602
602
  async function X(c, o) {
603
603
  var D, k;
604
604
  const h = Math.random().toString();
605
- j.value = h;
605
+ V.value = h;
606
606
  const g = a === "receive/request" ? e.currentLocation : o == null ? void 0 : o.to, $ = {
607
607
  purchaseOrder: c,
608
608
  transferTo: g == null ? void 0 : g.name,
@@ -622,7 +622,7 @@ function ke(a, n) {
622
622
  } catch {
623
623
  console.error("Error at fetching po request to check");
624
624
  }
625
- h === j.value && (_.value.canResubmit = !o, _.value.transferTo = (D = o == null ? void 0 : o.to) == null ? void 0 : D.name, _.value.transferToDbName = (k = o == null ? void 0 : o.to) == null ? void 0 : k.dbName);
625
+ h === V.value && (_.value.canResubmit = !o, _.value.transferTo = (D = o == null ? void 0 : o.to) == null ? void 0 : D.name, _.value.transferToDbName = (k = o == null ? void 0 : o.to) == null ? void 0 : k.dbName);
626
626
  }
627
627
  }
628
628
  async function Z(c, o, h, g) {
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .v-enter-active[data-v-849aa362],.v-leave-active[data-v-849aa362]{transition:opacity .1s ease}.v-enter-from[data-v-849aa362],.v-leave-to[data-v-849aa362]{opacity:0}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-chip-transfer-info{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.fm-droppable-field[data-v-311b22a0]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-311b22a0]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-droppable-field__container--disabled[data-v-311b22a0]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-droppable-field__container--dragging[data-v-311b22a0]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-311b22a0]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-311b22a0]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-311b22a0]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-311b22a0]:disabled{display:none;cursor:not-allowed}.map-button[data-v-272f5e8b]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-92a03d5c]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-92a03d5c],table th[data-v-92a03d5c]{padding:3px 5px;vertical-align:top}hr[data-v-92a03d5c]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-92a03d5c]{text-align:left}.text-right[data-v-92a03d5c]{text-align:right}.purchase-box[data-v-92a03d5c]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-92a03d5c]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-92a03d5c]{font-weight:600;color:#333}.sub-header[data-v-92a03d5c]{font-size:18px;color:#333}.caption[data-v-92a03d5c]{font-size:14px;color:#666}.address[data-v-92a03d5c]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-92a03d5c]{margin-top:30px}.item-header[data-v-92a03d5c]{border:0px;background:#ccc;color:#444}
1
+ .v-enter-active[data-v-849aa362],.v-leave-active[data-v-849aa362]{transition:opacity .1s ease}.v-enter-from[data-v-849aa362],.v-leave-to[data-v-849aa362]{opacity:0}.fm-status-badge-draft{background-color:var(--fm-color-neutral-gray-100);color:var(--fm-color-neutral-gray-500)}.fm-status-badge-receiving{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-status-badge-cancel{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-status-badge-complete{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-status-badge-processing,.fm-status-badge-requesting{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-chip-transfer-info{background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-chip-info-secondary{font-size:.875rem;font-weight:600;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;background-color:var(--fm-color-system-blue-100);color:var(--fm-color-system-blue-400)}.fm-chip-success-secondary{font-size:.875rem;font-weight:600;line-height:1.125rem;letter-spacing:.0125em;text-decoration-line:none;background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fade-enter-active,.fade-leave-active{transition:opacity .5s ease}.fade-enter-from,.fade-leave-to{opacity:0}.fm-forecast-notification-low{background-color:var(--fm-color-system-red-100);color:var(--fm-color-system-red-400)}.fm-forecast-notification-mid{background-color:var(--fm-color-system-orange-100);color:var(--fm-color-system-orange-400)}.fm-forecast-notification-high{background-color:var(--fm-color-system-green-100);color:var(--fm-color-system-green-400)}.fm-forecast-notification-indicator{display:inline-block;height:12px;width:12px;border-radius:9999px}.fm-forecast-notification-indicator-low{background-color:var(--fm-color-system-red-400)}.fm-forecast-notification-indicator-mid{background-color:var(--fm-color-system-orange-400)}.fm-forecast-notification-indicator-high{background-color:var(--fm-color-system-green-400)}.fm-droppable-field[data-v-311b22a0]{display:flex;flex-direction:column;gap:4px}.fm-droppable-field__container[data-v-311b22a0]{position:relative;background-color:var(--fm-color-neutral-white);padding:12px;border-radius:8px;border-width:2px;border-style:dashed;border-color:var(--fm-color-neutral-gray-300);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center}.fm-droppable-field__container--disabled[data-v-311b22a0]{cursor:not-allowed;color:var(--fm-color-neutral-gray-200);border-color:var(--fm-color-neutral-gray-200)}.fm-droppable-field__container--dragging[data-v-311b22a0]{border-color:var(--fm-color-primary)}.fm-droppable-field__container--invalid[data-v-311b22a0]{border-color:var(--fm-color-system-red-300)}.fm-droppable-field__container[data-v-311b22a0]:hover:not(.fm-droppable-field__container--disabled){border-color:var(--fm-color-neutral-gray-400)}.fm-droppable-field__input[data-v-311b22a0]{cursor:pointer;opacity:0;position:absolute;top:0;left:0;height:100%;width:100%}.fm-droppable-field__input[data-v-311b22a0]:disabled{display:none;cursor:not-allowed}.map-button[data-v-272f5e8b]{border-top-width:1px;border-top-color:var(--fm-color-neutral-gray-200);color:var(--fm-color-neutral-gray-400);padding:.2rem 1rem;border-radius:8px}table[data-v-92a03d5c]{width:100%;border-spacing:unset;line-height:inherit}table td[data-v-92a03d5c],table th[data-v-92a03d5c]{padding:3px 5px;vertical-align:top}hr[data-v-92a03d5c]{border-collapse:unset;background:#888;height:2px;border:0px}.text-left[data-v-92a03d5c]{text-align:left}.text-right[data-v-92a03d5c]{text-align:right}.purchase-box[data-v-92a03d5c]{max-width:800px;margin:auto;padding:30px;border:1px solid #eee;box-shadow:0 0 10px #00000026;font-size:16px;line-height:1.5;font-family:Helvetica Neue,Helvetica,Helvetica,Arial,sans-serif;color:#555}.title[data-v-92a03d5c]{padding-bottom:0;font-size:30px;color:#333}.header[data-v-92a03d5c]{font-weight:600;color:#333}.sub-header[data-v-92a03d5c]{font-size:18px;color:#333}.caption[data-v-92a03d5c]{font-size:14px;color:#666}.address[data-v-92a03d5c]{font-size:16px;line-height:1.2;color:#666}.purchase-body[data-v-92a03d5c]{margin-top:30px}.item-header[data-v-92a03d5c]{border:0px;background:#ccc;color:#444}
@@ -1,4 +1,4 @@
1
- import { n as S, j as u, Q as m, T as y } from "./app-DURkcZal.js";
1
+ import { n as S, j as u, T as m, V as y } from "./app-w8TOQVZc.js";
2
2
  import { useCoreStore as c } from "@feedmepos/mf-common";
3
3
  import { defineStore as b } from "pinia";
4
4
  import { ref as l, computed as v } from "vue";