@feedmepos/mf-inventory-portal 0.0.24-dev.3 → 0.0.24-dev.49

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 (90) hide show
  1. package/dist/{App-C8gm6x7Q.js → App-BANIE_vi.js} +1 -1
  2. package/dist/ApprovalView-JQXB-wD3.js +140 -0
  3. package/dist/{BindingsDialog-II1cNZ8y.js → BindingsDialog-DPkylv4n.js} +8 -8
  4. package/dist/{BindingsPicker-7hWtLm42.js → BindingsPicker-DRq1pyB3.js} +1 -1
  5. package/dist/BindingsTable-CgcUJaar.js +120 -0
  6. package/dist/ClosingDraftView-MxkQABme.js +1348 -0
  7. package/dist/{ClosingTemplateView-cmdRLrA3.js → ClosingTemplateView-DK-REWKF.js} +478 -493
  8. package/dist/{FmCustomAttribute.vue_vue_type_script_setup_true_lang-Dk618cmq.js → FmCustomAttribute.vue_vue_type_script_setup_true_lang-CJYQN_nb.js} +1 -1
  9. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CH1wbfBF.js +211 -0
  10. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BcQSDPWo.js → FmUnitInput.vue_vue_type_script_setup_true_lang-BCQAMGnj.js} +1 -1
  11. package/dist/{IngredientGroupView-YGl-cE0p.js → IngredientGroupView-BbdFsju3.js} +1 -1
  12. package/dist/IngredientsView-CymDx24X.js +1742 -0
  13. package/dist/{IntegrationView-Bq-m4-Wh.js → IntegrationView-CpqWQjyz.js} +679 -642
  14. package/dist/{InventoryBindingForm-DFWSf75X.js → InventoryBindingForm-D3LbsYBi.js} +1 -1
  15. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-RQ6XxdxU.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-k8k3iqCg.js} +96 -96
  16. package/dist/{InventoryBindingSummary-DU6GO2TJ.js → InventoryBindingSummary-DQ64AcL6.js} +1 -1
  17. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-ChpZ0NwL.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-Co-zYf0x.js} +1 -1
  18. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-Ba2Uq1H-.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Bzy_5Iha.js} +1 -1
  19. package/dist/PublishView-DQrsouy_.js +222 -0
  20. package/dist/{PurchaseOrderPrintPreview-cp_DzuxM.js → PurchaseOrderPrintPreview-BQA3Sbns.js} +5 -5
  21. package/dist/ReceiveRequestView-E4FtIHQm.js +2584 -0
  22. package/dist/{RecipeView-voWc35VV.js → RecipeView-B5fp0clS.js} +3 -3
  23. package/dist/{StockView-CoigRqM-.js → StockView-WN-Uf6Nc.js} +7 -7
  24. package/dist/{SupplierView-BDpCPZE7.js → SupplierView-CaOqPzEY.js} +295 -300
  25. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-db47qL0f.js +1539 -0
  26. package/dist/TransferTemplateView-Dg7e2TeB.js +1422 -0
  27. package/dist/{UnitView-BBPJ0vhB.js → UnitView-Brnwh4tw.js} +3 -3
  28. package/dist/{WarehouseView-Ck6hBrGf.js → WarehouseView-DlUXVVHp.js} +1 -1
  29. package/dist/api/closing-draft.d.ts +1 -0
  30. package/dist/api/inventory.d.ts +2 -0
  31. package/dist/api/netsuite.d.ts +21 -4
  32. package/dist/api/purchase-order.d.ts +6 -1
  33. package/dist/api/stock.d.ts +1 -0
  34. package/dist/{app-ojZQI-KQ.js → app-CrAS505q.js} +25174 -24344
  35. package/dist/app.d.ts +0 -6
  36. package/dist/app.js +1 -1
  37. package/dist/components/FmCustomAttribute2.vue.d.ts +18 -0
  38. package/dist/components/FmLockableField.vue.d.ts +3 -0
  39. package/dist/components/FmMultiselectDialog.d.ts +23 -0
  40. package/dist/components/FmMultiselectDialog.vue.d.ts +20 -3
  41. package/dist/components/FmMultiselectDialogProps.d.ts +2 -0
  42. package/dist/{decimal-xq82Pirk.js → decimal-B3VbEmUT.js} +1 -1
  43. package/dist/{format-unit-display-ByfsyWBU.js → format-unit-display-Becux8VN.js} +256 -253
  44. package/dist/helper/fuzzy.d.ts +10 -0
  45. package/dist/{index-Bi6FnWGy.js → index-B8LjoNQa.js} +3 -3
  46. package/dist/{index-CKEbjSig.js → index-BojrVfgC.js} +1 -1
  47. package/dist/layout/SingleColumnLayout.vue.d.ts +1 -1
  48. package/dist/{stock-CC4RqQaB.js → stock-D3jX6RXK.js} +29 -25
  49. package/dist/stores/feature.d.ts +4 -2
  50. package/dist/stores/integration/netsuite.d.ts +26 -4
  51. package/dist/stores/inventory.d.ts +127 -0
  52. package/dist/stores/location.d.ts +91 -0
  53. package/dist/style.css +1 -1
  54. package/dist/{supplier-DLXOOcIm.js → supplier-BPzrg-JT.js} +1 -1
  55. package/dist/tsconfig.app.tsbuildinfo +1 -1
  56. package/dist/use-ingredient-select-dialog-CeL6kOMh.js +52 -0
  57. package/dist/{use-inventory-binding-dialog-B1zBTsW9.js → use-inventory-binding-dialog-SBHeD85N.js} +1 -1
  58. package/dist/views/closing-draft/composables/use-closing-draft-actions.d.ts +4 -1
  59. package/dist/views/closing-draft/helpers/export-draft.helper.d.ts +1 -1
  60. package/dist/views/ingredients/composables/use-ingredient-select-dialog.d.ts +16 -0
  61. package/dist/views/receive-request/components/netsuite/NetSuiteProps.d.ts +2 -0
  62. package/dist/views/receive-request/components/transfer-details/TransferDetailsProps.d.ts +2 -0
  63. package/dist/views/receive-request/components/transfer-form/TransferForm.vue.d.ts +386 -0
  64. package/dist/views/receive-request/components/transfer-form/components/ForecastStock.vue.d.ts +4 -0
  65. package/dist/views/receive-request/components/transfer-form/components/TransferItemTable.vue.d.ts +382 -2
  66. package/dist/views/receive-request/components/transfer-form/composables/use-transfer-items.d.ts +3 -0
  67. package/dist/views/receive-request/composables/use-receive-request-form.d.ts +783 -5
  68. package/dist/views/receive-request/composables/use-receive-request-table.d.ts +595 -6
  69. package/dist/views/receive-request/import/XilnexImportDialog.vue.d.ts +22 -0
  70. package/dist/views/receive-request/import/XilnexImportForm.vue.d.ts +17 -0
  71. package/dist/views/receive-request/import/XilnexResult.vue.d.ts +17 -0
  72. package/dist/views/receive-request/import/export.d.ts +14 -0
  73. package/dist/views/receive-request/import/props.d.ts +7 -0
  74. package/dist/views/stock/components/dialog/AdjustedItemForm.vue.d.ts +2 -0
  75. package/dist/views/transfer-template/components/transfer-template-form/components/TransferTemplateItemTable.vue.d.ts +220 -0
  76. package/dist/views/transfer-template/components/transfer-template-form/composables/use-transfer-template-items.d.ts +5 -1
  77. package/dist/views/transfer-template/composables/use-transfer-template-actions.d.ts +24 -0
  78. package/dist/views/transfer-template/composables/use-transfer-template-table.d.ts +24 -0
  79. package/dist/views/transfer-template/composables/useTransferTemplateHelper.d.ts +305 -0
  80. package/dist/{vue-i18n-AeCKtYb7.js → vue-i18n-DSQQNX5F.js} +270 -270
  81. package/package.json +4 -4
  82. package/dist/ApprovalView-xtUG5yeg.js +0 -138
  83. package/dist/BindingsTable-Bub-L-pM.js +0 -145
  84. package/dist/ClosingDraftView-C9VKku7E.js +0 -1225
  85. package/dist/FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-BSB7T16f.js +0 -286
  86. package/dist/IngredientsView-XxrOFv-u.js +0 -1706
  87. package/dist/PublishView-CBIvo-Qj.js +0 -192
  88. package/dist/ReceiveRequestView-UIaPylF0.js +0 -1876
  89. package/dist/TransferDetails.vue_vue_type_script_setup_true_lang-CyovzdZg.js +0 -1327
  90. package/dist/TransferTemplateView-C2XMghN_.js +0 -1284
@@ -0,0 +1,52 @@
1
+ import { defineStore as y } from "pinia";
2
+ import { a as S, J as b } from "./app-CrAS505q.js";
3
+ import { useDialog as A } from "@feedmepos/ui-library";
4
+ import { useI18n as I } from "@feedmepos/mf-common";
5
+ import "vue";
6
+ const B = y(
7
+ "ingredientSelectDialog",
8
+ function() {
9
+ const { t: s } = I(), n = S(), m = A();
10
+ async function a(l, u) {
11
+ const p = n.skus, g = u ?? ((t) => n.skuByCode[t]), d = p.map(
12
+ (t) => {
13
+ var e, o, i, c;
14
+ return {
15
+ label: t.name,
16
+ sublabel: t.code,
17
+ value: t._id,
18
+ searchKeys: (e = t.customAttributes) != null && e.tag ? [(o = t.customAttributes) == null ? void 0 : o.tag] : void 0,
19
+ tags: (i = t.customAttributes) != null && i.tag ? [(c = t.customAttributes) == null ? void 0 : c.tag] : void 0
20
+ };
21
+ }
22
+ ), f = l, { promise: v, resolve: r } = Promise.withResolvers();
23
+ return m.open({
24
+ title: s("inventory.transfer.form.items.selectItem"),
25
+ closeButton: !0,
26
+ contentComponent: b,
27
+ contentComponentProps: {
28
+ modelValue: f,
29
+ items: d,
30
+ virtualScroll: !0,
31
+ onClose: () => r(null)
32
+ },
33
+ primaryActions: {
34
+ text: s("common.confirm"),
35
+ close: !0
36
+ },
37
+ secondaryActions: {
38
+ text: s("common.close"),
39
+ close: !0,
40
+ variant: "tertiary"
41
+ }
42
+ }).onPrimary((t) => {
43
+ const e = t.map((o) => g(o));
44
+ r(e);
45
+ }), v;
46
+ }
47
+ return { promptSelectIngredients: a };
48
+ }
49
+ );
50
+ export {
51
+ B as u
52
+ };
@@ -1,4 +1,4 @@
1
- import { a as g, J as y } from "./app-ojZQI-KQ.js";
1
+ import { a as g, J as y } from "./app-CrAS505q.js";
2
2
  import { useDialog as C } from "@feedmepos/ui-library";
3
3
  function P() {
4
4
  const c = g(), u = C();
@@ -3,6 +3,7 @@ export declare const useClosingDraftActions: import("pinia").StoreDefinition<"cl
3
3
  closeDraftDialog: () => void;
4
4
  approveDraft: (draft: FdoClosingDraft, onFinished?: Function) => void;
5
5
  rejectDraft: (draft: FdoClosingDraft, onFinished?: Function) => void;
6
+ syncDraft: (draft: FdoClosingDraft, onFinished?: Function) => Promise<void>;
6
7
  exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[]) => Promise<void>;
7
8
  viewClosingDraftShow: import("vue").Ref<boolean, boolean>;
8
9
  viewClosingDraftProps: import("vue").Ref<any, any>;
@@ -11,6 +12,7 @@ export declare const useClosingDraftActions: import("pinia").StoreDefinition<"cl
11
12
  closeDraftDialog: () => void;
12
13
  approveDraft: (draft: FdoClosingDraft, onFinished?: Function) => void;
13
14
  rejectDraft: (draft: FdoClosingDraft, onFinished?: Function) => void;
15
+ syncDraft: (draft: FdoClosingDraft, onFinished?: Function) => Promise<void>;
14
16
  exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[]) => Promise<void>;
15
17
  viewClosingDraftShow: import("vue").Ref<boolean, boolean>;
16
18
  viewClosingDraftProps: import("vue").Ref<any, any>;
@@ -19,7 +21,8 @@ export declare const useClosingDraftActions: import("pinia").StoreDefinition<"cl
19
21
  closeDraftDialog: () => void;
20
22
  approveDraft: (draft: FdoClosingDraft, onFinished?: Function) => void;
21
23
  rejectDraft: (draft: FdoClosingDraft, onFinished?: Function) => void;
24
+ syncDraft: (draft: FdoClosingDraft, onFinished?: Function) => Promise<void>;
22
25
  exportDraft: (draft: FdoClosingDraft, skuBalances?: FdoSkuBalance[]) => Promise<void>;
23
26
  viewClosingDraftShow: import("vue").Ref<boolean, boolean>;
24
27
  viewClosingDraftProps: import("vue").Ref<any, any>;
25
- }, "approveDraft" | "rejectDraft" | "viewDraft" | "closeDraftDialog" | "exportDraft">>;
28
+ }, "approveDraft" | "rejectDraft" | "viewDraft" | "closeDraftDialog" | "syncDraft" | "exportDraft">>;
@@ -10,7 +10,7 @@ export interface DraftItemRow {
10
10
  adjustedDiffPercentage: number | null;
11
11
  [key: string]: string | number | null;
12
12
  }
13
- export declare function draftItemToExcelRow(item: FdoClosingDraftItem, systemBalance: FdoDecimal): DraftItemRow;
13
+ export declare function draftItemToExcelRow(item: FdoClosingDraftItem, systemBalance: FdoDecimal, enabledMeasurements: string[]): DraftItemRow;
14
14
  export type ColIdHeader<T> = {
15
15
  id: keyof T;
16
16
  name: string;
@@ -0,0 +1,16 @@
1
+ export declare const useIngredientSelectDialog: import("pinia").StoreDefinition<"ingredientSelectDialog", import("pinia")._UnwrapAll<Pick<{
2
+ promptSelectIngredients: {
3
+ (skuIds: string[]): Promise<FdoInventorySku[] | null>;
4
+ <T>(skuIds: string[], mapper?: ((e: string) => T) | undefined): Promise<T[] | null>;
5
+ };
6
+ }, never>>, Pick<{
7
+ promptSelectIngredients: {
8
+ (skuIds: string[]): Promise<FdoInventorySku[] | null>;
9
+ <T>(skuIds: string[], mapper?: ((e: string) => T) | undefined): Promise<T[] | null>;
10
+ };
11
+ }, never>, Pick<{
12
+ promptSelectIngredients: {
13
+ (skuIds: string[]): Promise<FdoInventorySku[] | null>;
14
+ <T>(skuIds: string[], mapper?: ((e: string) => T) | undefined): Promise<T[] | null>;
15
+ };
16
+ }, "promptSelectIngredients">>;
@@ -1,3 +1,4 @@
1
+ import type { PO_SCOPE } from '../../composables/use-receive-request-form';
1
2
  import type { PurchaseOrderTransactionType } from '../../constants/purchase-order-transaction-type';
2
3
  export interface NetSuiteInfoProps {
3
4
  transferType: PurchaseOrderTransactionType;
@@ -5,6 +6,7 @@ export interface NetSuiteInfoProps {
5
6
  poRequest?: FdoPurchaseOrderRequest;
6
7
  purchaseOrder?: FdoPurchaseOrder;
7
8
  isTransferBetweenOutlets?: boolean;
9
+ scope: PO_SCOPE;
8
10
  }
9
11
  export interface NetSuiteSyncProps {
10
12
  poRequest?: FdoPurchaseOrderRequest;
@@ -1,3 +1,4 @@
1
+ import type { PO_SCOPE } from '../../composables/use-receive-request-form';
1
2
  export interface TransferDetailsProps {
2
3
  poRequest?: FdoPurchaseOrderRequest;
3
4
  purchaseOrder?: FdoPurchaseOrder;
@@ -6,6 +7,7 @@ export interface TransferDetailsProps {
6
7
  show?: boolean;
7
8
  canResubmit?: boolean;
8
9
  canApprove?: boolean;
10
+ scope: PO_SCOPE;
9
11
  }
10
12
  export interface TransferDetailsEvents {
11
13
  (event: 'update:show', show: boolean): void;