@feedmepos/mf-inventory-portal 1.7.8 → 1.7.9-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.
- package/dist/App-DEdkuDaS.js +1155 -0
- package/dist/{ApprovalView-Ba0gWkVa.js → ApprovalView-DpkYimTU.js} +9 -9
- package/dist/{BindingsDialog-CZXoBZ1d.js → BindingsDialog-9MteMW5_.js} +2 -2
- package/dist/{BindingsPicker-CMV6iPjw.js → BindingsPicker-C3R1Iaci.js} +2 -2
- package/dist/{BindingsTable-U-ZlTLYU.js → BindingsTable-yWS4vjmz.js} +6 -5
- package/dist/BulkReceiveRequestView-MYLE3mXl.js +2646 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CQF4cvgH.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DrehE0r3.js} +1 -1
- package/dist/{ClosingDraftView-DO9gdBiD.js → ClosingDraftView-BO0eUpk7.js} +19 -19
- package/dist/{ClosingHistoryView-BXB64J_7.js → ClosingHistoryView-1Gu4B0qB.js} +5 -5
- package/dist/{ClosingTemplateView-sXjGpGuz.js → ClosingTemplateView-CvAn5afN.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BWgnavaG.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CwWbC1oH.js} +1 -1
- package/dist/{DefaultView-B1CVRi4r.js → DefaultView-DeXxhLsq.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-D_aGDrVG.js → DeliveryOrderPrintPreview-Bilzn1WS.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-47JMPt7A.js → EmailDialog.vue_vue_type_script_setup_true_lang-C5xp1ceO.js} +6332 -6331
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-D5aKq-2y.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DL5i2-tq.js} +6 -6
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-nEdSBuz9.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bq36-nnH.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CZ93MtX7.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D2l0nTi_.js} +2 -2
- package/dist/{FmMultiselectDialog-924d0E8e.js → FmMultiselectDialog-CKQ1eFVZ.js} +2 -2
- package/dist/{FmMultiselectDialog-CTp_ZmWc.js → FmMultiselectDialog-COp24wS3.js} +1 -1
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-BRxkMafg.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CN4ENCPZ.js} +152 -139
- package/dist/{ImportView-BwuAAHuI.js → ImportView-CB3qjhvy.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-D9ZUAHHY.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-CBxUyjH8.js} +1 -1
- package/dist/{IngredientGroupView-YpSzpMv_.js → IngredientGroupView-DuY6Gw5V.js} +5 -5
- package/dist/{IngredientsView-Bz8qVoFv.js → IngredientsView-DxzyJE_h.js} +18 -17
- package/dist/{IntegrationExplorerView-B_-ymgN1.js → IntegrationExplorerView-Ma59NTHM.js} +4 -4
- package/dist/{IntegrationView-xnoC9QlN.js → IntegrationView-SBMEO_e9.js} +14 -14
- package/dist/{InventoryBindingForm-BTWQUPsI.js → InventoryBindingForm-CBFJRVNH.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-nEFGKA.js +563 -0
- package/dist/{InventoryBindingSummary-CooEEtKf.js → InventoryBindingSummary-c5g-35nq.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-C8SiLZRg.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DEtNW2wJ.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-B__FAGnr.js → PremiumBadge.vue_vue_type_script_setup_true_lang-BInLhmxe.js} +1 -1
- package/dist/{ProductionView-D3JiyMzC.js → ProductionView-BlhsrkXW.js} +7 -7
- package/dist/{PublishView-CYhEJUmO.js → PublishView-bMEZSiVN.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-BwshL0T9.js → PurchaseOrderPrintPreview-HvIFszQX.js} +2 -2
- package/dist/{ReceiveRequestView-5ysfk9Qw.js → ReceiveRequestView-jwXYj2Wy.js} +14 -14
- package/dist/RecipeView-DKd5h85n.js +3625 -0
- package/dist/{SettingsView-FXvsU3GV.js → SettingsView-BqELMK6p.js} +4 -4
- package/dist/{StockView-hVzDJxiT.js → StockView-6xDfuSnV.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BtE8xrKp.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CBUZIEA5.js} +1 -1
- package/dist/{SupplierView-yrlxEXgg.js → SupplierView-BwMl9JFO.js} +12 -12
- package/dist/{SurchargeView-Dbr__oJX.js → SurchargeView-AGXGqhxy.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DAgh0GuY.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DQSq3UGp.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DhHV4yRp.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BBUG8N2w.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DM9eodXF.js → TransferDetails.vue_vue_type_script_setup_true_lang-BMrGsD-f.js} +20 -20
- package/dist/{TransferTemplateView-CaBy-6XK.js → TransferTemplateView-DJYXlxpw.js} +20 -20
- package/dist/{UnitCostHistoryView-BaRe2psg.js → UnitCostHistoryView-DRgWgXhB.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-DGnnhrzA.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-CR8a6DkX.js} +4 -4
- package/dist/{UnitView-Cs_PMZJ1.js → UnitView-mWUCF13E.js} +8 -8
- package/dist/{WarehouseView-pjHowuWl.js → WarehouseView-DY4_bxzS.js} +5 -5
- package/dist/{WastageTemplateView-DIobOhxN.js → WastageTemplateView-D4YFC_zj.js} +14 -14
- package/dist/api/changelog.d.ts +64 -0
- package/dist/api/purchase-order.d.ts +2 -0
- package/dist/{app-DaNzSOfE.js → app-DCSH6Br7.js} +19659 -18887
- package/dist/app.d.ts +894 -15
- package/dist/app.js +1 -1
- package/dist/{closing-template-CDgEFOg1.js → closing-template-knrmn7Jq.js} +1 -1
- package/dist/components/FmUnitInputRules.d.ts +7 -0
- package/dist/{date2-DhrEiF43.js → date2-m9Qq52B4.js} +5 -5
- package/dist/{dayjs.min-TVnsxFg6.js → dayjs.min-BX2fRC46.js} +1 -1
- package/dist/{decimal-BWDv8ol1.js → decimal-pgdYbjfw.js} +2 -2
- package/dist/{defineDeepModel-DbsM6gfc.js → defineDeepModel-C5kt7Waa.js} +1 -1
- package/dist/{duplicate-template-PkTtWam_.js → duplicate-template-B74iiBzz.js} +1 -1
- package/dist/{feature-BHgYy3ah.js → feature-CfkazbcV.js} +2 -2
- package/dist/{format-time-from-id-D352xZ82.js → format-time-from-id-C1AIz8rq.js} +1 -1
- package/dist/{format-unit-display-CVHKzXuh.js → format-unit-display-A-G-IaSa.js} +27 -27
- package/dist/{import-export.helper-BRfb6211.js → import-export.helper-Dx6UODpr.js} +6 -6
- package/dist/{index-FtpqwqiH.js → index-CiQiwzTH.js} +3306 -3232
- package/dist/{index-DnohPynu.js → index-DjKTLy_K.js} +1 -1
- package/dist/{index-DdCqL1tq.js → index-uk9CA-G3.js} +3 -3
- package/dist/{inventory-core-dart.default-Byo1HZGy.js → inventory-core-dart.default-CMAgxo1z.js} +3728 -3685
- package/dist/{lz-string-DRHK_x08.js → lz-string-DZI7eVks.js} +1 -1
- package/dist/{netsuite-v_z3aTzd.js → netsuite-CoajVOCj.js} +2 -2
- package/dist/{number-gmV3FUZE.js → number-qzibfxtV.js} +3 -3
- package/dist/{predefined-templates-rCKSqYYr.js → predefined-templates-Bi2KN0S0.js} +1 -1
- package/dist/{purchase-order-template-GnAQ7vbn.js → purchase-order-template-q60hgvfd.js} +1 -1
- package/dist/{recalculationUtils-DTlZlorm.js → recalculationUtils-ThdsSQXA.js} +1 -1
- package/dist/{rules-DPVlkE_B.js → rules-DkRl1mdI.js} +2 -2
- package/dist/{stock-D3fUW9qa.js → stock-CDBl371n.js} +3 -3
- package/dist/{stock-BibsfxiT.js → stock-CfGnNgNm.js} +1 -1
- package/dist/stores/bulk-job.d.ts +13 -0
- package/dist/style.css +1 -1
- package/dist/{supplier-C5FZ6JiE.js → supplier-m95t74cw.js} +2 -2
- package/dist/{surcharge-B2RJmnfQ.js → surcharge-D0KNDUtM.js} +8 -8
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-Bvgpk8MW.js → uom-rules-DoC_viYg.js} +1 -1
- package/dist/{use-ingredient-select-dialog-sSIVFrjN.js → use-ingredient-select-dialog-DUDA6jkc.js} +2 -2
- package/dist/{use-inventory-binding-dialog-Bj4xYOqT.js → use-inventory-binding-dialog-DyZVwYRw.js} +2 -2
- package/dist/{use-template-enabled-locations-CDcXjJ9e.js → use-template-enabled-locations-DU6ebPLW.js} +2 -2
- package/dist/{use-transfer-locations-Cjubo6cI.js → use-transfer-locations-i4WVdQfZ.js} +2 -2
- package/dist/{useHrmPermission-CmAWvTZK.js → useHrmPermission-D4dofQF9.js} +1 -1
- package/dist/{useNavigationMenu-CMuz1qRT.js → useNavigationMenu-BwZoEiX3.js} +2 -2
- package/dist/{useSseClient-Bq84vjXH.js → useSseClient-vOXEoq_d.js} +1 -1
- package/dist/views/changelog/components/ChangelogDialog.vue.d.ts +19 -0
- package/dist/views/changelog/components/ChangelogFloatingButton.vue.d.ts +2 -0
- package/dist/views/changelog/components/ChangelogPanel.vue.d.ts +18 -0
- package/dist/views/changelog/composables/change-path.d.ts +10 -0
- package/dist/views/changelog/composables/commit-message.d.ts +9 -0
- package/dist/views/changelog/composables/commit-message.spec.d.ts +1 -0
- package/dist/views/changelog/composables/json-line-diff.d.ts +10 -0
- package/dist/views/changelog/composables/json-line-diff.spec.d.ts +1 -0
- package/dist/views/changelog/composables/use-changelog.d.ts +36 -0
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +2 -0
- package/dist/views/ingredients/components/inventory-binding/RecipeBindingBreakdown.vue.d.ts +25 -0
- package/dist/views/ingredients/components/inventory-binding/composables/recipe-breakdown.d.ts +34 -0
- package/dist/views/ingredients/components/inventory-binding/composables/recipe-breakdown.spec.d.ts +1 -0
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +2 -0
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +4 -0
- package/dist/views/receive-request/components/email-dialog/EmailDialog.spec.d.ts +1 -0
- package/dist/views/receive-request/components/email-dialog/EmailDialogProps.d.ts +23 -9
- package/dist/views/recipe/composables/use-recipe-table.d.ts +11 -0
- package/dist/{vue-i18n-Cbgnu2bw.js → vue-i18n-CV9ieqUG.js} +491 -491
- package/dist/{xlsx.util-DbTorswP.js → xlsx.util-CfgV0r9W.js} +2 -2
- package/package.json +4 -4
- package/dist/App-DI9Gew7u.js +0 -311
- package/dist/BulkReceiveRequestView-C7x81WZj.js +0 -2584
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-BZKc-zmn.js +0 -441
- package/dist/RecipeView-DOwdWmwx.js +0 -3584
package/dist/{use-ingredient-select-dialog-sSIVFrjN.js → use-ingredient-select-dialog-DUDA6jkc.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineStore as S } from "pinia";
|
|
2
|
-
import { a as b } from "./app-
|
|
3
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
+
import { a as b } from "./app-DCSH6Br7.js";
|
|
3
|
+
import { a as A } from "./FmMultiselectDialog-CKQ1eFVZ.js";
|
|
4
4
|
import { useDialog as I } from "@feedmepos/ui-library";
|
|
5
5
|
import { useI18n as D } from "@feedmepos/mf-common";
|
|
6
6
|
const w = S(
|
package/dist/{use-inventory-binding-dialog-Bj4xYOqT.js → use-inventory-binding-dialog-DyZVwYRw.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as g } from "./FmMultiselectDialog-
|
|
2
|
-
import { a as P } from "./app-
|
|
1
|
+
import { a as g } from "./FmMultiselectDialog-CKQ1eFVZ.js";
|
|
2
|
+
import { a as P } from "./app-DCSH6Br7.js";
|
|
3
3
|
import { useDialog as E } from "@feedmepos/ui-library";
|
|
4
4
|
function A() {
|
|
5
5
|
const u = P(), _ = E();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as A } from "./FmMultiselectDialog-
|
|
2
|
-
import { u as S } from "./app-
|
|
1
|
+
import { a as A } from "./FmMultiselectDialog-CKQ1eFVZ.js";
|
|
2
|
+
import { u as S } from "./app-DCSH6Br7.js";
|
|
3
3
|
import { useI18n as w, useCoreStore as i, useCustomAttributes as _ } from "@feedmepos/mf-common";
|
|
4
4
|
import { useDialog as C, components as p } from "@feedmepos/ui-library";
|
|
5
5
|
import { computed as r, h as c } from "vue";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { u as g, r as l, V as w, Y as R } from "./app-
|
|
2
|
-
import { u as E } from "./supplier-
|
|
1
|
+
import { u as g, r as l, V as w, Y as R } from "./app-DCSH6Br7.js";
|
|
2
|
+
import { u as E } from "./supplier-m95t74cw.js";
|
|
3
3
|
import { computed as u } from "vue";
|
|
4
4
|
function d(n) {
|
|
5
5
|
const c = R.safeParse(n);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { computed as T } from "vue";
|
|
2
|
-
import { b as v, R as e, a6 as b, a7 as O, a5 as A } from "./app-
|
|
2
|
+
import { b as v, R as e, a6 as b, a7 as O, a5 as A } from "./app-DCSH6Br7.js";
|
|
3
3
|
import { useCoreStore as C, useI18n as U } from "@feedmepos/mf-common";
|
|
4
|
-
import { u as _ } from "./feature-
|
|
4
|
+
import { u as _ } from "./feature-CfkazbcV.js";
|
|
5
5
|
const L = O.reduce(
|
|
6
6
|
(o, r) => {
|
|
7
7
|
var i;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
modelValue: boolean;
|
|
3
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
4
|
+
"update:modelValue": (value: boolean) => void;
|
|
5
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
modelValue: boolean;
|
|
7
|
+
}>>> & Readonly<{
|
|
8
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
10
|
+
export default _default;
|
|
11
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
13
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
14
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
15
|
+
} : {
|
|
16
|
+
type: import('vue').PropType<T[K]>;
|
|
17
|
+
required: true;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ChangelogCommit } from '@/api/changelog';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
|
+
commits: ChangelogCommit[];
|
|
4
|
+
isLoading: boolean;
|
|
5
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
|
+
commits: ChangelogCommit[];
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
|
+
export default _default;
|
|
10
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
11
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
12
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
13
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
14
|
+
} : {
|
|
15
|
+
type: import('vue').PropType<T[K]>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Structured commit message stored by inventory-backend: label key + verb + optional item name. */
|
|
2
|
+
export interface StructuredMessage {
|
|
3
|
+
labelKey: string;
|
|
4
|
+
verb: string;
|
|
5
|
+
name?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function parseStructuredMessage(message?: string): StructuredMessage | null;
|
|
8
|
+
/** True when a human path segment is a changelog i18n key (vs a literal like an entity name). */
|
|
9
|
+
export declare function isLabelKey(segment: string): boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type DiffLine = {
|
|
2
|
+
type: 'same' | 'add' | 'del' | 'skip';
|
|
3
|
+
text: string;
|
|
4
|
+
};
|
|
5
|
+
/**
|
|
6
|
+
* Diffs two JSON-encoded values line by line, git-style. Returns null unless
|
|
7
|
+
* both parse to objects/arrays whose changed region is small enough to diff —
|
|
8
|
+
* callers fall back to the plain from/to blocks.
|
|
9
|
+
*/
|
|
10
|
+
export declare function jsonLineDiff(from: string, to: string, context?: number): DiffLine[] | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type ChangelogCommit } from '@/api/changelog';
|
|
2
|
+
export declare function useChangelog(): {
|
|
3
|
+
commits: import("vue").Ref<{
|
|
4
|
+
doc_id: string;
|
|
5
|
+
id: string;
|
|
6
|
+
parent: string;
|
|
7
|
+
at: string;
|
|
8
|
+
authors: string[];
|
|
9
|
+
message?: string | undefined;
|
|
10
|
+
changes: {
|
|
11
|
+
at?: string | undefined;
|
|
12
|
+
actor?: string | undefined;
|
|
13
|
+
path: string;
|
|
14
|
+
kind: string;
|
|
15
|
+
from?: string | undefined;
|
|
16
|
+
to?: string | undefined;
|
|
17
|
+
}[];
|
|
18
|
+
}[], ChangelogCommit[] | {
|
|
19
|
+
doc_id: string;
|
|
20
|
+
id: string;
|
|
21
|
+
parent: string;
|
|
22
|
+
at: string;
|
|
23
|
+
authors: string[];
|
|
24
|
+
message?: string | undefined;
|
|
25
|
+
changes: {
|
|
26
|
+
at?: string | undefined;
|
|
27
|
+
actor?: string | undefined;
|
|
28
|
+
path: string;
|
|
29
|
+
kind: string;
|
|
30
|
+
from?: string | undefined;
|
|
31
|
+
to?: string | undefined;
|
|
32
|
+
}[];
|
|
33
|
+
}[]>;
|
|
34
|
+
isLoading: import("vue").Ref<boolean, boolean>;
|
|
35
|
+
load: (recordId: string, limit?: number) => Promise<void>;
|
|
36
|
+
};
|
|
@@ -8,6 +8,8 @@ export interface InventoryBindingFormProps {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
readonly?: boolean;
|
|
10
10
|
enableIngredientGroup?: boolean;
|
|
11
|
+
/** recipe amounts may be keyed in with decimals — off keeps them whole numbers */
|
|
12
|
+
allowRecipeDecimal?: boolean;
|
|
11
13
|
}
|
|
12
14
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InventoryBindingFormProps>, {
|
|
13
15
|
modelValue: () => never[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
2
|
+
recipeId: string;
|
|
3
|
+
/**
|
|
4
|
+
* The amount keyed in on the row, as typed — every contained amount previews as
|
|
5
|
+
* configured × this. Raw text rather than a number so a cleared field is not read as 0.
|
|
6
|
+
*/
|
|
7
|
+
multiplier: string;
|
|
8
|
+
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
9
|
+
recipeId: string;
|
|
10
|
+
/**
|
|
11
|
+
* The amount keyed in on the row, as typed — every contained amount previews as
|
|
12
|
+
* configured × this. Raw text rather than a number so a cleared field is not read as 0.
|
|
13
|
+
*/
|
|
14
|
+
multiplier: string;
|
|
15
|
+
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
18
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
19
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
20
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
21
|
+
} : {
|
|
22
|
+
type: import('vue').PropType<T[K]>;
|
|
23
|
+
required: true;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { FdoDecimal } from '@feedmepos/core/entity';
|
|
2
|
+
export interface RecipeBreakdownNode {
|
|
3
|
+
key: string;
|
|
4
|
+
name: string;
|
|
5
|
+
/** configured amount, already compounded through the parent recipes above it */
|
|
6
|
+
amount: FdoDecimal;
|
|
7
|
+
/** unit the amount is keyed in, empty for a recipe or an unresolved binding */
|
|
8
|
+
unit: string;
|
|
9
|
+
depth: number;
|
|
10
|
+
isRecipe: boolean;
|
|
11
|
+
}
|
|
12
|
+
/** what a recipe contains, and how to label a binding — supplied by the store in the composable */
|
|
13
|
+
export interface RecipeBreakdownSource {
|
|
14
|
+
contentsOf: (recipeId: string) => FdoInventoryBinding[];
|
|
15
|
+
bindingName: (binding: FdoInventoryBinding) => string;
|
|
16
|
+
bindingUnit: (binding: FdoInventoryBinding) => string;
|
|
17
|
+
}
|
|
18
|
+
/** exact decimal multiply: integer amounts multiply, precisions add — no float drift */
|
|
19
|
+
export declare function multiplyDecimal(a: FdoDecimal, b: FdoDecimal): FdoDecimal;
|
|
20
|
+
/**
|
|
21
|
+
* What a contained amount works out to for the amount keyed in on the row:
|
|
22
|
+
* configured × input. Takes the raw text, so a row cleared mid-typing previews
|
|
23
|
+
* unscaled rather than flashing zeros — `+''` would read as 0.
|
|
24
|
+
*/
|
|
25
|
+
export declare function previewAmount(amount: FdoDecimal, multiplier: string): string;
|
|
26
|
+
/** the keyed-in text as a decimal; unscaled while it is blank or not yet a number */
|
|
27
|
+
export declare function parseMultiplier(multiplier: string): FdoDecimal;
|
|
28
|
+
/**
|
|
29
|
+
* Flattens a recipe's binding tree depth-first, descending into nested recipes and
|
|
30
|
+
* multiplying each amount by the chain of recipe amounts above it.
|
|
31
|
+
* `visited` keeps a recipe that (transitively) contains itself from recursing forever —
|
|
32
|
+
* the form reports that separately as a circular-dependency error.
|
|
33
|
+
*/
|
|
34
|
+
export declare function flattenRecipeTree(recipeId: string, source: RecipeBreakdownSource, depth?: number, visited?: Set<string>, factor?: FdoDecimal): RecipeBreakdownNode[];
|
package/dist/views/ingredients/components/inventory-binding/composables/recipe-breakdown.spec.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts
CHANGED
|
@@ -19,6 +19,8 @@ export interface InventoryBindingFormProps {
|
|
|
19
19
|
recipeBindingConfig?: InventoryRecipeBindingFormConfig;
|
|
20
20
|
skuBindingConfig?: InventorySkuBindingFormConfig;
|
|
21
21
|
enableIngredientGroup?: boolean;
|
|
22
|
+
/** recipe amounts may be keyed in with decimals — off keeps them whole numbers */
|
|
23
|
+
allowRecipeDecimal?: boolean;
|
|
22
24
|
}
|
|
23
25
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<InventoryBindingFormProps>, {
|
|
24
26
|
modelValue: () => never[];
|
|
@@ -27,6 +27,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
27
27
|
} | undefined;
|
|
28
28
|
displayName: string;
|
|
29
29
|
showError: boolean;
|
|
30
|
+
/** recipe amount may be keyed in with decimals — off keeps it a whole number */
|
|
31
|
+
allowRecipeDecimal?: boolean | undefined;
|
|
30
32
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
31
33
|
delete: (id: string) => void;
|
|
32
34
|
"update:modelValue": (value: {
|
|
@@ -83,6 +85,8 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
83
85
|
} | undefined;
|
|
84
86
|
displayName: string;
|
|
85
87
|
showError: boolean;
|
|
88
|
+
/** recipe amount may be keyed in with decimals — off keeps it a whole number */
|
|
89
|
+
allowRecipeDecimal?: boolean | undefined;
|
|
86
90
|
}>>> & Readonly<{
|
|
87
91
|
onDelete?: ((id: string) => any) | undefined;
|
|
88
92
|
"onUpdate:modelValue"?: ((value: {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,21 +1,35 @@
|
|
|
1
1
|
import type { FmpBusiness } from "node_modules/@feedmepos/mf-common/dist/store";
|
|
2
|
+
import type { GetEmailAddressData } from "@/api/email";
|
|
2
3
|
export interface EmailDialogProps {
|
|
3
4
|
show?: boolean;
|
|
4
|
-
/** HTML content for the iframe preview
|
|
5
|
+
/** HTML content for the iframe preview. */
|
|
5
6
|
modelValue?: string;
|
|
6
|
-
/**
|
|
7
|
-
* Blob URL of the Lambda-generated PDF (bulk view path).
|
|
8
|
-
* When set the dialog shows the PDF instead of the rendered HTML.
|
|
9
|
-
* Caller is responsible for revoking via URL.revokeObjectURL when done.
|
|
10
|
-
*/
|
|
11
|
-
pdfBlobUrl?: string;
|
|
12
|
-
/** True while the PDF is being generated — shows a spinner instead of the preview. */
|
|
13
|
-
pdfLoading?: boolean;
|
|
14
7
|
email?: string;
|
|
15
8
|
business?: FmpBusiness;
|
|
16
9
|
senderName?: string;
|
|
17
10
|
senderEmail?: string;
|
|
18
11
|
recipientName?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Preview-only PDF blob URL (bulk view's dispatch mode) — shown in an
|
|
14
|
+
* iframe purely so the user can see what will be sent. Has no bearing on
|
|
15
|
+
* the actual send: the email attachment is generated independently,
|
|
16
|
+
* server-side, by the enqueued Lambda job. Caller revokes via
|
|
17
|
+
* URL.revokeObjectURL when done.
|
|
18
|
+
*/
|
|
19
|
+
pdfBlobUrl?: string;
|
|
20
|
+
/** True while the preview PDF is being generated — shows a spinner instead of the iframe. */
|
|
21
|
+
pdfLoading?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* When set, the dialog runs in "dispatch" mode (bulk view's single-email
|
|
24
|
+
* action): no direct SMS-API send. Send simply invokes this with the chosen
|
|
25
|
+
* sender and optional body text — the caller enqueues the background
|
|
26
|
+
* Lambda job (same pipeline as Email All) and owns its own success/error
|
|
27
|
+
* messaging. Throw to keep the dialog open on failure.
|
|
28
|
+
*/
|
|
29
|
+
onDispatch?: (payload: {
|
|
30
|
+
sender: GetEmailAddressData;
|
|
31
|
+
message: string;
|
|
32
|
+
}) => Promise<void> | void;
|
|
19
33
|
/** Called when the dialog requests a visibility change (e.g. user closes it). */
|
|
20
34
|
'onUpdate:show'?: (show: boolean) => void;
|
|
21
35
|
}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import type { ColumnDef } from '@tanstack/vue-table';
|
|
2
|
+
/** one resolved binding of a recipe: which nested recipe it came from, and the amount keyed in */
|
|
3
|
+
export type RecipeBindingCell = {
|
|
4
|
+
parentRecipe: string | null;
|
|
5
|
+
label: string;
|
|
6
|
+
};
|
|
7
|
+
/** the bindings of one nested recipe, or the recipe's own when `parentRecipe` is null */
|
|
8
|
+
export type RecipeBindingGroup = {
|
|
9
|
+
parentRecipe: string | null;
|
|
10
|
+
labels: string[];
|
|
11
|
+
};
|
|
2
12
|
export type FormattedRecipe = {
|
|
3
13
|
recipe: string;
|
|
4
14
|
readonly ingredients: string;
|
|
15
|
+
readonly bindings: RecipeBindingGroup[];
|
|
5
16
|
original: FdoInventoryRecipe;
|
|
6
17
|
};
|
|
7
18
|
export declare function useRecipeTable(): {
|