@feedmepos/mf-inventory-portal 1.7.2 → 1.7.3-dev.1

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 (107) hide show
  1. package/dist/{App-DohhNCXa.js → App-DK0-LWWu.js} +4 -4
  2. package/dist/{ApprovalView-To3lr_er.js → ApprovalView-BxV4_keX.js} +8 -8
  3. package/dist/{BindingsDialog-DUMIiVoC.js → BindingsDialog-DYVL00NY.js} +2 -2
  4. package/dist/{BindingsPicker-DQNUl07K.js → BindingsPicker-Bi1EcW62.js} +2 -2
  5. package/dist/{BindingsTable-DR6tP4Vq.js → BindingsTable-CvtOCAkc.js} +3 -3
  6. package/dist/BulkReceiveRequestView-Dgp3EWOn.js +2208 -0
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-B8d6WuAD.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DX3Ug_dN.js} +1 -1
  8. package/dist/{ClosingDraftView-0cVbpL_Y.js → ClosingDraftView-D2uvIKY5.js} +20 -20
  9. package/dist/{ClosingHistoryView-CgeySFOV.js → ClosingHistoryView-CIb7Ch4L.js} +6 -6
  10. package/dist/{ClosingTemplateView-0DND6wXY.js → ClosingTemplateView-XVSVYB2y.js} +17 -17
  11. package/dist/CursorPaginatedTable.vue_vue_type_script_setup_true_lang-BCUhtL_B.js +136 -0
  12. package/dist/{DefaultView-CJJPVYaP.js → DefaultView-BJets42n.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-BYGrbUM7.js → DeliveryOrderPrintPreview-DaQHEkqA.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-y-pJP1Jp.js → EmailDialog.vue_vue_type_script_setup_true_lang-CBL0xqFW.js} +1636 -1636
  15. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DuCO2ruW.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DbQxJtrd.js} +1 -1
  16. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-MttAbvza.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BgCS24jN.js} +2 -2
  17. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yAqRbXI7.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Dc6xTcD8.js} +2 -2
  18. package/dist/{FmMultiselectDialog-DFa8dpii.js → FmMultiselectDialog-Bq_Na17d.js} +2 -2
  19. package/dist/{FmMultiselectDialog-DYzEHEev.js → FmMultiselectDialog-CxsksooH.js} +1 -1
  20. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-5xj-8OQS.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DkftHtJN.js} +5 -5
  21. package/dist/{ImportView-gcy9rku3.js → ImportView-BzNfHFEx.js} +6 -6
  22. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-sx6-tRnK.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-Hat27Ar4.js} +1 -1
  23. package/dist/{IngredientGroupView-BAC3mW8X.js → IngredientGroupView-ClG1OM4D.js} +5 -5
  24. package/dist/{IngredientsView-DUwPOngs.js → IngredientsView-BYE1xoOE.js} +15 -15
  25. package/dist/{IntegrationExplorerView-A-el5q_l.js → IntegrationExplorerView-DwvsbHfd.js} +4 -4
  26. package/dist/{IntegrationView-CZNWvTcS.js → IntegrationView-ikLaCdnl.js} +797 -750
  27. package/dist/{InventoryBindingForm-D2QosIsu.js → InventoryBindingForm-C6P0ZuXJ.js} +1 -1
  28. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-BITnywUj.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-DzLxq3uM.js} +5 -5
  29. package/dist/{InventoryBindingSummary-D6HNweqs.js → InventoryBindingSummary-CMSSSTdo.js} +1 -1
  30. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B6h1Gd2a.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-COXmn2a8.js} +1 -1
  31. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-DcypxqiE.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BvrpIpql.js} +1 -1
  32. package/dist/{ProductionView-lhMrHKJn.js → ProductionView-DI3JxiFg.js} +7 -7
  33. package/dist/{PublishView-CQsNNeNS.js → PublishView-BoyEuUAu.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-Cos7s-NS.js → PurchaseOrderPrintPreview-D60kdiQU.js} +2 -2
  35. package/dist/{ReceiveRequestView-kkBYw4JQ.js → ReceiveRequestView-DhpS9JLx.js} +13 -13
  36. package/dist/{RecipeView-CjaZPxYm.js → RecipeView-Cz-Q0aio.js} +17 -17
  37. package/dist/{SettingsView-BmQpMvRD.js → SettingsView-BNDr4ez-.js} +4 -4
  38. package/dist/{StockView-3LQX-iUo.js → StockView-bpRLYtw0.js} +21 -21
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BWc-rqnP.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-B0wulwNM.js} +1 -1
  40. package/dist/{SupplierView-JIgEU67D.js → SupplierView-CDHpZdob.js} +13 -13
  41. package/dist/{SurchargeView-CLxruSjz.js → SurchargeView-BQ1O-fAr.js} +6 -6
  42. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-DicFDlas.js +209 -0
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DGnnOvqu.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D0NGjAyr.js} +1 -1
  44. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-SHMiHC5F.js +4709 -0
  45. package/dist/{TransferTemplateView-BopBFYQK.js → TransferTemplateView-BRYAJdlG.js} +20 -20
  46. package/dist/{UnitCostHistoryView-Dn_riEm2.js → UnitCostHistoryView-DLLPBU9n.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-BY6MtjNI.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DTJBsfEj.js} +4 -4
  48. package/dist/{UnitView-C14LJdh1.js → UnitView-DwZMbt4A.js} +7 -7
  49. package/dist/{WarehouseView-DSofhuRJ.js → WarehouseView-DyKR9b4c.js} +5 -5
  50. package/dist/{WastageTemplateView-CVNs59Q3.js → WastageTemplateView-CZhQ7MKe.js} +14 -14
  51. package/dist/api/codemax.d.ts +1 -1
  52. package/dist/api/purchase-order.d.ts +39 -1
  53. package/dist/{app-D3Pk5TsF.js → app-CPHh8dJ8.js} +2540 -2506
  54. package/dist/app.js +1 -1
  55. package/dist/{closing-template-ChgHEg6X.js → closing-template-DV8hM9mR.js} +1 -1
  56. package/dist/components/{CursorPaginatedTable.vue.d.ts → cursor-paginated-table/CursorPaginatedTable.vue.d.ts} +1 -7
  57. package/dist/components/cursor-paginated-table/use-row-action.d.ts +17 -0
  58. package/dist/{date2-S8CzVzLb.js → date2-CMYcYkVI.js} +1 -1
  59. package/dist/{dayjs.min-BTkKTXC_.js → dayjs.min-Crreg1xX.js} +1 -1
  60. package/dist/{decimal-DbIrw0-W.js → decimal-DhFDmEjW.js} +2 -2
  61. package/dist/{defineDeepModel-VV8-dLQB.js → defineDeepModel-DSzyuBIx.js} +1 -1
  62. package/dist/dinero-DMLEtkS9.js +1260 -0
  63. package/dist/{duplicate-template-CU7i2OYd.js → duplicate-template-qbIou3kX.js} +1 -1
  64. package/dist/{feature-PxsJCXfx.js → feature-Do5dZj8x.js} +2 -2
  65. package/dist/{format-time-from-id-DzyQO052.js → format-time-from-id-BbguyEMG.js} +1 -1
  66. package/dist/{format-unit-display-Ce_ihiZh.js → format-unit-display-C-RAKWPU.js} +12 -12
  67. package/dist/{import-export.helper-BMjR_wjj.js → import-export.helper-Duq-vfeY.js} +6 -6
  68. package/dist/{index-DVld56cO.js → index-75GfRz2O.js} +1 -1
  69. package/dist/{index-CVnjxAU0.js → index-Ctrxj7cE.js} +3 -3
  70. package/dist/{index-ntOX0GTR.js → index-D73SJ6zk.js} +3807 -5062
  71. package/dist/{inventory-core-dart.default-Crk5o9NC.js → inventory-core-dart.default-toC4Oswn.js} +1 -1
  72. package/dist/{jszip.min-n1XNOZh7.js → jszip.min-DCDx15Lo.js} +523 -523
  73. package/dist/{lz-string-BOPYfMhM.js → lz-string-DIrw_osP.js} +1 -1
  74. package/dist/{netsuite-XygzV566.js → netsuite-BCPPfv5q.js} +2 -2
  75. package/dist/{number-C2ht-mjX.js → number-Dj-zUn93.js} +3 -3
  76. package/dist/{predefined-templates-BwKtONp8.js → predefined-templates-CkZwybVN.js} +1 -1
  77. package/dist/{purchase-order-template-B43-m0J3.js → purchase-order-template-B96No_lH.js} +1 -1
  78. package/dist/{recalculationUtils-DIVwhfP2.js → recalculationUtils-lkExVizR.js} +1 -1
  79. package/dist/{rules-D_NC8Wh3.js → rules-DjI-FPha.js} +2 -2
  80. package/dist/{stock-CnspYkq6.js → stock-BLL3aLEQ.js} +3 -3
  81. package/dist/{stock-yL5X9man.js → stock-KNrrUQF1.js} +1 -1
  82. package/dist/{supplier-W7lS_7Ga.js → supplier-CosSdx6_.js} +2 -2
  83. package/dist/{surcharge-BNENHWoz.js → surcharge-DFnSG3ka.js} +1 -1
  84. package/dist/tsconfig.app.tsbuildinfo +1 -1
  85. package/dist/{uom-rules-C4weCQ1J.js → uom-rules-MbRvuo5s.js} +1 -1
  86. package/dist/{use-ingredient-select-dialog-CoMShpCA.js → use-ingredient-select-dialog-HqatzFkQ.js} +2 -2
  87. package/dist/{use-inventory-binding-dialog-DAiB6uuX.js → use-inventory-binding-dialog-CHIrX4O3.js} +2 -2
  88. package/dist/use-row-action-Cvq6VO38.js +31 -0
  89. package/dist/{use-template-enabled-locations-DAnSVWry.js → use-template-enabled-locations-CZDQcsEJ.js} +2 -2
  90. package/dist/{use-transfer-locations-Bunxkf8T.js → use-transfer-locations-BRCrX_-r.js} +2 -2
  91. package/dist/{useHrmPermission-8T4AE1Is.js → useHrmPermission-B9vfKTf-.js} +1 -1
  92. package/dist/{useNavigationMenu-BpMry1lp.js → useNavigationMenu-DPD_pWDz.js} +2 -2
  93. package/dist/{useSseClient-eneZ6wE5.js → useSseClient-CuljyleL.js} +1 -1
  94. package/dist/views/closing-draft/composables/use-closing-draft-table.d.ts +7 -7
  95. package/dist/views/closing-template/composables/use-closing-template-table.d.ts +1 -1
  96. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +46 -8
  97. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-form.d.ts +504 -529
  98. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.d.ts +33 -2
  99. package/dist/views/receive-request-bulk/composables/use-bulk-receive-request-table.spec.d.ts +1 -0
  100. package/dist/views/receive-request-bulk/helpers/resolve-po-print-context.d.ts +21 -0
  101. package/dist/{vue-i18n-L-ghmVMg.js → vue-i18n-CyoeLXfI.js} +396 -396
  102. package/dist/{xlsx.util-DjAJxws5.js → xlsx.util-C6g7kacG.js} +2 -2
  103. package/package.json +4 -4
  104. package/dist/BulkReceiveRequestView-Dz1lQS-u.js +0 -2011
  105. package/dist/CursorPaginatedTable.vue_vue_type_script_setup_true_lang-4KT9rH9e.js +0 -152
  106. package/dist/SystemTrailDialog.vue_vue_type_script_setup_true_lang-IXZTVQ42.js +0 -178
  107. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-UStf5-hI.js +0 -4682
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as E, computed as v, ref as j, resolveComponent as f, createElementBlock as u, openBlock as l, createVNode as y, withCtx as x, createElementVNode as p, unref as t, createBlock as L, createCommentVNode as M, Fragment as b, renderList as S, createTextVNode as C, toDisplayString as k } from "vue";
2
- import { u as D } from "./app-D3Pk5TsF.js";
2
+ import { u as D } from "./app-CPHh8dJ8.js";
3
3
  import { useCoreStore as T, useI18n as U } from "@feedmepos/mf-common";
4
4
  const W = { class: "inline-flex" }, q = { class: "inline-flex rounded-md items-center gap-4 justify-center h-[30px] px-8 py-4 bg-fm-color-neutral-gray-100 cursor-pointer text-fm-color-neutral-gray-400" }, A = { class: "fm-typo-en-body-md-600 select-none text-ellipsis overflow-hidden whitespace-nowrap" }, G = { class: "relative" }, H = { class: "sticky top-0 py-8 bg-white translate-y-[-12px]" }, Q = /* @__PURE__ */ E({
5
5
  __name: "ChangeLocationComponent",
@@ -2,28 +2,28 @@ import { defineComponent as Se, ref as q, computed as S, onMounted as ro, resolv
2
2
  import { u as Wo, _ as Ko } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
3
3
  import { useCoreStore as lo, useI18n as ot } from "@feedmepos/mf-common";
4
4
  import { useSnackbar as Ue, useDialog as io, components as be, useProxiedModel as Tt, useBreakpoints as qo } from "@feedmepos/ui-library";
5
- import { m as Qo, u as Qe, O as fe, w as se, q as co, s as Ie, P as xe, B as Le, c as Jo, a as jt, j as Zo } from "./app-D3Pk5TsF.js";
5
+ import { m as Qo, u as Qe, O as fe, w as se, q as co, s as Ie, P as xe, B as Le, c as Jo, a as jt, j as Zo } from "./app-CPHh8dJ8.js";
6
6
  import { defineStore as uo, storeToRefs as Xo } from "pinia";
7
- import { b as qe, e as mo, f as en, a as Fe } from "./date2-S8CzVzLb.js";
8
- import { R as po } from "./rules-D_NC8Wh3.js";
9
- import { e as ht, c as et, j as tt, l as fo, m as vo, a as tn, k as go, o as me, t as on } from "./number-C2ht-mjX.js";
10
- import { b as nn, d as an, u as vt, w as sn, c as rn } from "./xlsx.util-DjAJxws5.js";
11
- import { i as Rt, u as Mt } from "./uom-rules-C4weCQ1J.js";
12
- import { u as ln } from "./stock-CnspYkq6.js";
13
- import { u as _t } from "./stock-yL5X9man.js";
7
+ import { b as qe, e as mo, f as en, a as Fe } from "./date2-CMYcYkVI.js";
8
+ import { R as po } from "./rules-DjI-FPha.js";
9
+ import { e as ht, c as et, j as tt, l as fo, m as vo, a as tn, k as go, o as me, t as on } from "./number-Dj-zUn93.js";
10
+ import { b as nn, d as an, u as vt, w as sn, c as rn } from "./xlsx.util-C6g7kacG.js";
11
+ import { i as Rt, u as Mt } from "./uom-rules-MbRvuo5s.js";
12
+ import { u as ln } from "./stock-BLL3aLEQ.js";
13
+ import { u as _t } from "./stock-KNrrUQF1.js";
14
14
  import { D as ao, R as Ye } from "./row-action.enum-DQ9bJ_uv.js";
15
15
  import { c as cn } from "./component-kqxARxvM.js";
16
- import { f as un } from "./format-time-from-id-DzyQO052.js";
17
- import { i as dn } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DuCO2ruW.js";
18
- import { f as mn } from "./recalculationUtils-DIVwhfP2.js";
19
- import { _ as pn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yAqRbXI7.js";
20
- import { _ as fn } from "./CursorPaginatedTable.vue_vue_type_script_setup_true_lang-4KT9rH9e.js";
16
+ import { f as un } from "./format-time-from-id-BbguyEMG.js";
17
+ import { i as dn } from "./FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DbQxJtrd.js";
18
+ import { f as mn } from "./recalculationUtils-lkExVizR.js";
19
+ import { _ as pn } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Dc6xTcD8.js";
20
+ import { _ as fn } from "./CursorPaginatedTable.vue_vue_type_script_setup_true_lang-BCUhtL_B.js";
21
21
  import { _ as yo } from "./empty-placeholder-B0QU467o.js";
22
22
  import { F as Ft } from "./FmAdminBadge-DlplQOHb.js";
23
- import { u as vn } from "./vue-i18n-L-ghmVMg.js";
24
- import { F as gn } from "./decimal-DbIrw0-W.js";
25
- import { u as yn } from "./useSseClient-eneZ6wE5.js";
26
- import { d as bn } from "./dayjs.min-BTkKTXC_.js";
23
+ import { u as vn } from "./vue-i18n-CyoeLXfI.js";
24
+ import { F as gn } from "./decimal-DhFDmEjW.js";
25
+ import { u as yn } from "./useSseClient-CuljyleL.js";
26
+ import { d as bn } from "./dayjs.min-Crreg1xX.js";
27
27
  import { F as hn } from "./FmDroppableField-J0tG_U3w.js";
28
28
  import { _ as _n } from "./FmConfirmationButton.vue_vue_type_script_setup_true_lang-Vg8U7WMZ.js";
29
29
  import { _ as kn, F as Ze } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
@@ -930,7 +930,7 @@ const bo = uo(
930
930
  const [g] = await Promise.all([
931
931
  c.getDraft(p),
932
932
  new Promise((H) => setTimeout(H, 1e3))
933
- ]), { toClosingDraftListItem: M } = await import("./index-ntOX0GTR.js");
933
+ ]), { toClosingDraftListItem: M } = await import("./index-D73SJ6zk.js");
934
934
  i.value = k([
935
935
  M(g)
936
936
  ]), w(p);
@@ -960,7 +960,7 @@ const bo = uo(
960
960
  }
961
961
  }
962
962
  async function x(p, g) {
963
- const { toClosingDraftListItem: M } = await import("./index-ntOX0GTR.js");
963
+ const { toClosingDraftListItem: M } = await import("./index-D73SJ6zk.js");
964
964
  return {
965
965
  ...M(
966
966
  p
@@ -973,7 +973,7 @@ const bo = uo(
973
973
  };
974
974
  }
975
975
  async function re(p) {
976
- const { toClosingDraftListItem: g } = await import("./index-ntOX0GTR.js");
976
+ const { toClosingDraftListItem: g } = await import("./index-D73SJ6zk.js");
977
977
  i.value = i.value.map((M) => M._id === p._id ? {
978
978
  ...g(p),
979
979
  _rev: p._rev,
@@ -1,14 +1,14 @@
1
1
  import { defineComponent as se, ref as g, computed as D, watch as re, resolveComponent as w, createElementBlock as p, openBlock as i, createBlock as j, createCommentVNode as _, createVNode as h, withModifiers as pe, withCtx as F, createElementVNode as a, toDisplayString as l, unref as c, Fragment as G, createTextVNode as te, renderList as le, normalizeClass as ve, h as ee, Teleport as be } from "vue";
2
2
  import { _ as ke } from "./SingleColumnLayout.vue_vue_type_script_setup_true_lang-DwrLsWX_.js";
3
3
  import { useI18n as ie, useCoreStore as xe } from "@feedmepos/mf-common";
4
- import { G as de, B as P, a as De, u as Se } from "./app-D3Pk5TsF.js";
4
+ import { G as de, B as P, a as De, u as Se } from "./app-CPHh8dJ8.js";
5
5
  import { F as fe } from "./FmAdminBadge-DlplQOHb.js";
6
- import { _ as we } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yAqRbXI7.js";
7
- import { _ as ye } from "./CursorPaginatedTable.vue_vue_type_script_setup_true_lang-4KT9rH9e.js";
6
+ import { _ as we } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Dc6xTcD8.js";
7
+ import { _ as ye } from "./CursorPaginatedTable.vue_vue_type_script_setup_true_lang-BCUhtL_B.js";
8
8
  import { useSnackbar as ue, useDialog as Ve } from "@feedmepos/ui-library";
9
- import { u as ge } from "./stock-yL5X9man.js";
10
- import { g as he, f as $e } from "./recalculationUtils-DIVwhfP2.js";
11
- import { _ as Ce } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-BY6MtjNI.js";
9
+ import { u as ge } from "./stock-KNrrUQF1.js";
10
+ import { g as he, f as $e } from "./recalculationUtils-lkExVizR.js";
11
+ import { _ as Ce } from "./UnitDisplayControl.vue_vue_type_script_setup_true_lang-DTJBsfEj.js";
12
12
  const Ae = { class: "fm-typo-en-heading-lg-600" }, Fe = { class: "flex flex-col gap-16" }, Re = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Be = { class: "flex flex-col gap-8" }, Ie = { class: "fm-typo-en-body-md-600" }, Te = { class: "flex flex-col gap-8" }, Le = { class: "fm-typo-en-body-md-600" }, Oe = { class: "flex items-center gap-8 mb-8" }, Pe = {
13
13
  key: 2,
14
14
  class: "text-red-500 text-sm mt-2"
@@ -4,24 +4,24 @@ import { useCoreStore as Ae, useI18n as ne } from "@feedmepos/mf-common";
4
4
  import { useDialogChild as rt, useSnackbar as ue, useDialog as Fe, FmButtonVariant as xe, components as lt, useProxiedModel as it, useBreakpoints as ct } from "@feedmepos/ui-library";
5
5
  import { defineStore as ze, storeToRefs as Ge } from "pinia";
6
6
  import { F as oe } from "./form-mode.enum-BKiNVH6A.js";
7
- import { a as pe } from "./closing-template-ChgHEg6X.js";
8
- import { a as Re, l as mt, u as Pe, c as Oe } from "./app-D3Pk5TsF.js";
9
- import { t as Te, a as Me, d as Ee, s as He, r as dt } from "./xlsx.util-DjAJxws5.js";
7
+ import { a as pe } from "./closing-template-DV8hM9mR.js";
8
+ import { a as Re, l as mt, u as Pe, c as Oe } from "./app-CPHh8dJ8.js";
9
+ import { t as Te, a as Me, d as Ee, s as He, r as dt } from "./xlsx.util-C6g7kacG.js";
10
10
  import { F as ut } from "./FmDroppableField-J0tG_U3w.js";
11
- import { f as je, a as $e } from "./date2-S8CzVzLb.js";
12
- import { u as pt } from "./netsuite-XygzV566.js";
11
+ import { f as je, a as $e } from "./date2-CMYcYkVI.js";
12
+ import { u as pt } from "./netsuite-BCPPfv5q.js";
13
13
  import { D as ke, R as J } from "./row-action.enum-DQ9bJ_uv.js";
14
14
  import { c as ft } from "./component-kqxARxvM.js";
15
- import { f as yt } from "./format-time-from-id-DzyQO052.js";
16
- import { _ as vt } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DGnnOvqu.js";
17
- import { u as gt } from "./duplicate-template-CU7i2OYd.js";
18
- import { _ as bt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-yAqRbXI7.js";
19
- import { _ as ht } from "./CursorPaginatedTable.vue_vue_type_script_setup_true_lang-4KT9rH9e.js";
20
- import { R as _t, A as xt } from "./rules-D_NC8Wh3.js";
21
- import { u as Ye } from "./use-ingredient-select-dialog-CoMShpCA.js";
22
- import { d as kt } from "./defineDeepModel-VV8-dLQB.js";
23
- import { u as wt } from "./use-template-enabled-locations-DAnSVWry.js";
24
- import { _ as $t } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-IXZTVQ42.js";
15
+ import { f as yt } from "./format-time-from-id-BbguyEMG.js";
16
+ import { _ as vt } from "./TemplatePublishDialog.vue_vue_type_script_setup_true_lang-D0NGjAyr.js";
17
+ import { u as gt } from "./duplicate-template-qbIou3kX.js";
18
+ import { _ as bt } from "./FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-Dc6xTcD8.js";
19
+ import { _ as ht } from "./CursorPaginatedTable.vue_vue_type_script_setup_true_lang-BCUhtL_B.js";
20
+ import { R as _t, A as xt } from "./rules-DjI-FPha.js";
21
+ import { u as Ye } from "./use-ingredient-select-dialog-HqatzFkQ.js";
22
+ import { d as kt } from "./defineDeepModel-DSzyuBIx.js";
23
+ import { u as wt } from "./use-template-enabled-locations-CZDQcsEJ.js";
24
+ import { _ as $t } from "./SystemTrailDialog.vue_vue_type_script_setup_true_lang-DicFDlas.js";
25
25
  import { _ as Tt, F as we } from "./TableActionableRow.vue_vue_type_script_setup_true_lang-DAMpuZ1X.js";
26
26
  import { _ as Ct } from "./_plugin-vue_export-helper-CHgC5LLL.js";
27
27
  var Ne = /* @__PURE__ */ ((m) => (m.Ingredients = "Ingredients", m))(Ne || {});
@@ -738,7 +738,7 @@ const Nt = { class: "flex items-center gap-12 pl-8" }, Bt = { class: "flex flex-
738
738
  const [c] = await Promise.all([
739
739
  i.getTemplate(s),
740
740
  new Promise((R) => setTimeout(R, 1e3))
741
- ]), { toClosingTemplateListItem: M } = await import("./index-ntOX0GTR.js");
741
+ ]), { toClosingTemplateListItem: M } = await import("./index-D73SJ6zk.js");
742
742
  l.value = [
743
743
  M(c)
744
744
  ];
@@ -2153,7 +2153,7 @@ const gn = /* @__PURE__ */ Ct(yn, [["render", vn]]), bn = { class: "flex flex-co
2153
2153
  (R = x.value) == null || R.openRowDetail(M);
2154
2154
  }
2155
2155
  async function $(M) {
2156
- const { toClosingTemplateListItem: R } = await import("./index-ntOX0GTR.js");
2156
+ const { toClosingTemplateListItem: R } = await import("./index-D73SJ6zk.js");
2157
2157
  return { ...R(M), _rev: M._rev };
2158
2158
  }
2159
2159
  const n = U(() => I.value.xs || I.value.sm), w = U(() => n.value ? 10 : 20);
@@ -0,0 +1,136 @@
1
+ import { defineComponent as q, ref as l, watch as T, nextTick as H, resolveComponent as k, createElementBlock as A, openBlock as _, createBlock as L, createCommentVNode as O, mergeProps as W, createSlots as G, renderList as I, withCtx as J, renderSlot as Q, normalizeProps as U, guardReactiveProps as X, unref as m, normalizeStyle as Y, createElementVNode as B, createVNode as F, toDisplayString as Z } from "vue";
2
+ import "@feedmepos/ui-library";
3
+ import { useI18n as ee } from "@feedmepos/mf-common";
4
+ import { u as te } from "./use-row-action-Cvq6VO38.js";
5
+ const oe = { class: "flex items-center gap-12 rounded-md bg-white px-16 py-8 shadow-lg" }, ne = { class: "fm-typo-en-body-md-400" }, ce = /* @__PURE__ */ q({
6
+ inheritAttrs: !1,
7
+ __name: "CursorPaginatedTable",
8
+ props: {
9
+ fetchPage: {},
10
+ rows: {},
11
+ transform: { type: Function, default: void 0 },
12
+ pageSize: { default: 10 },
13
+ refreshKey: { default: 0 },
14
+ loading: { type: Boolean, default: !1 },
15
+ rowAction: {},
16
+ fetchDetail: {},
17
+ detailToRow: {}
18
+ },
19
+ emits: ["update:rows", "detail"],
20
+ setup($, { expose: z, emit: E }) {
21
+ const i = $, f = E, c = l(1), C = l(0), u = l(!1);
22
+ let h = {}, y, d = 0, p;
23
+ async function K({ pageSize: e, pageIndex: t }) {
24
+ const o = d, r = `${o}:${t}:${e}`;
25
+ if (u.value && r === p) return;
26
+ p = r, y !== e && (h = {}, y = e, c.value = 1);
27
+ const s = h;
28
+ u.value = !0;
29
+ try {
30
+ let n = t;
31
+ for (; n > 0 && s[n] === void 0; ) n--;
32
+ let a = await i.fetchPage({ limit: e, startkey: s[n] });
33
+ for (a.nextStartkey && (s[n + 1] = a.nextStartkey); n < t && a.hasMore; ) {
34
+ if (s[n + 1] === void 0) {
35
+ console.log("Cursor pagination: hasMore without nextStartkey; stopping at page", n);
36
+ break;
37
+ }
38
+ n++, a = await i.fetchPage({ limit: e, startkey: s[n] }), a.nextStartkey && (s[n + 1] = a.nextStartkey);
39
+ }
40
+ const w = i.transform ? await i.transform(a.docs) : a.docs;
41
+ if (o !== d || r !== p) return;
42
+ const j = !!(a.hasMore && a.nextStartkey);
43
+ c.value = Math.max(c.value, n + 1 + (j ? 1 : 0)), f("update:rows", w);
44
+ } catch (n) {
45
+ console.log("Something went wrong when fetching page:", n);
46
+ } finally {
47
+ o === d && r === p && (u.value = !1);
48
+ }
49
+ }
50
+ function R() {
51
+ d++, h = {}, y = void 0, c.value = 1, f("update:rows", []), C.value++;
52
+ }
53
+ T(
54
+ () => i.refreshKey,
55
+ () => R()
56
+ );
57
+ const { t: b } = ee(), {
58
+ pending: x,
59
+ run: g,
60
+ cancel: M
61
+ } = te(), P = l(), v = l();
62
+ T(x, async (e) => {
63
+ var r;
64
+ if (!e) return;
65
+ v.value = void 0, await H();
66
+ const t = (r = P.value) == null ? void 0 : r.firstElementChild, o = t == null ? void 0 : t.lastElementChild;
67
+ o && (v.value = `${o.offsetTop + o.offsetHeight}px`);
68
+ });
69
+ async function N(e, t) {
70
+ if (!(t != null && t._rev) || !(e != null && e._rev) || e._rev === t._rev) return;
71
+ const o = i.rows.findIndex((a) => (a == null ? void 0 : a._id) === t._id);
72
+ if (o < 0) return;
73
+ const r = i.rows[o], s = i.detailToRow ? await i.detailToRow(t, r) : D(t, r), n = [...i.rows];
74
+ n[o] = s, f("update:rows", n);
75
+ }
76
+ function D(e, t) {
77
+ const o = { ...t };
78
+ for (const r of Object.keys(o))
79
+ r in e && (o[r] = e[r]);
80
+ return o;
81
+ }
82
+ async function S(e) {
83
+ i.fetchDetail && await g(async (t) => {
84
+ const o = await i.fetchDetail(e, t);
85
+ f("detail", o), await N(e, o);
86
+ });
87
+ }
88
+ function V(e) {
89
+ if (i.fetchDetail) return void S((e == null ? void 0 : e.original) ?? e);
90
+ i.rowAction && g((t) => i.rowAction(e, t));
91
+ }
92
+ return z({ refresh: R, runRowAction: g, openRowDetail: S }), (e, t) => {
93
+ const o = k("FmTable"), r = k("FmCircularProgress"), s = k("FmButton");
94
+ return _(), A("div", {
95
+ ref_key: "wrapperRef",
96
+ ref: P,
97
+ class: "relative"
98
+ }, [
99
+ (_(), L(o, W(e.$attrs, {
100
+ key: C.value,
101
+ "row-data": e.rows,
102
+ "page-size": e.pageSize,
103
+ "page-count": c.value,
104
+ "fetch-fn": K,
105
+ loading: e.loading || u.value,
106
+ "on-row-click": e.fetchDetail || e.rowAction ? V : void 0
107
+ }), G({ _: 2 }, [
108
+ I(e.$slots, (n, a) => ({
109
+ name: a,
110
+ fn: J((w) => [
111
+ Q(e.$slots, a, U(X(w ?? {})))
112
+ ])
113
+ }))
114
+ ]), 1040, ["row-data", "page-size", "page-count", "loading", "on-row-click"])),
115
+ m(x) ? (_(), A("div", {
116
+ key: 0,
117
+ class: "absolute left-0 right-0 top-0 z-10 flex items-center justify-center bg-fm-color-opacity-sm",
118
+ style: Y({ height: v.value ?? "100%" })
119
+ }, [
120
+ B("div", oe, [
121
+ F(r, { size: "md" }),
122
+ B("span", ne, Z(m(b)("inventory.common.loading")), 1),
123
+ F(s, {
124
+ variant: "secondary",
125
+ label: m(b)("inventory.common.cancel"),
126
+ onClick: m(M)
127
+ }, null, 8, ["label", "onClick"])
128
+ ])
129
+ ], 4)) : O("", !0)
130
+ ], 512);
131
+ };
132
+ }
133
+ });
134
+ export {
135
+ ce as _
136
+ };
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as p, computed as f, watchEffect as d, resolveComponent as n, createElementBlock as _, openBlock as v, createVNode as o, createElementVNode as c } from "vue";
2
2
  import { useRouter as g } from "vue-router";
3
3
  import { useCoreStore as x } from "@feedmepos/mf-common";
4
- import { u as S } from "./useNavigationMenu-BpMry1lp.js";
5
- import { u as y } from "./feature-PxsJCXfx.js";
4
+ import { u as S } from "./useNavigationMenu-DPD_pWDz.js";
5
+ import { u as y } from "./feature-Do5dZj8x.js";
6
6
  const C = { class: "flex flex-col items-center w-full h-full gap-24" }, V = /* @__PURE__ */ p({
7
7
  __name: "DefaultView",
8
8
  setup(F) {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as x, computed as g, ref as h, onMounted as _, createElementBlock as i, openBlock as u, createElementVNode as t, createCommentVNode as d, createTextVNode as n, toDisplayString as l, Fragment as o, renderList as p, normalizeClass as c } from "vue";
2
2
  import { useRoute as w } from "vue-router";
3
- import { T as b } from "./app-D3Pk5TsF.js";
4
- import { L as k } from "./lz-string-BOPYfMhM.js";
3
+ import { T as b } from "./app-CPHh8dJ8.js";
4
+ import { L as k } from "./lz-string-DIrw_osP.js";
5
5
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const P = { class: "purchase-box" }, A = { valign: "bottom" }, E = { class: "sub-header" }, C = ["src"], D = { style: { "padding-left": "10px" } }, O = { class: "address" }, R = { class: "text-right" }, S = {
7
7
  key: 0,