@feedmepos/mf-inventory-portal 1.7.12-dev.4 → 1.7.12
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-CnYmvN66.js +311 -0
- package/dist/{ApprovalView-ByzE83J4.js → ApprovalView-DA9aRu-i.js} +9 -9
- package/dist/{BindingsDialog-CRz7DUI8.js → BindingsDialog-BEOtRW53.js} +2 -2
- package/dist/{BindingsPicker-BGEocwgg.js → BindingsPicker-CSyMNRwK.js} +2 -2
- package/dist/{BindingsTable-hnXgqHv-.js → BindingsTable-Dngf7YVT.js} +4 -4
- package/dist/BulkReceiveRequestView-ueRj_k7-.js +2595 -0
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-CR4Rfawi.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-BF6iXbf2.js} +1 -1
- package/dist/{ClosingDraftView-CtARNdZD.js → ClosingDraftView-CxwnjpoD.js} +19 -19
- package/dist/{ClosingHistoryView-1GPfRzPI.js → ClosingHistoryView-CpzjcP-S.js} +5 -5
- package/dist/{ClosingTemplateView-CRDYkUnC.js → ClosingTemplateView-Cbz3WgzS.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang--Pl8ahzv.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-vZ1jrY-5.js} +1 -1
- package/dist/{DefaultView-Dkm69C-h.js → DefaultView-CD-wDNOZ.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-D3C7Mfti.js → DeliveryOrderPrintPreview-B_a61I3p.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-BLJK4TLU.js → EmailDialog.vue_vue_type_script_setup_true_lang-Bw3cyaZa.js} +4106 -4111
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-COsbqYTt.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-YbLaL8WJ.js} +6 -6
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CqJZdU1b.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-DOdZdn5i.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-IVoazKhD.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-wJ_p-Ld5.js} +2 -2
- package/dist/{FmMultiselectDialog-DyNULdDc.js → FmMultiselectDialog-DIzL6c9U.js} +1 -1
- package/dist/{FmMultiselectDialog-CcDje3Qo.js → FmMultiselectDialog-b0WH0SJC.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-B4iKp8As.js → FmUnitInput.vue_vue_type_script_setup_true_lang-CCT3ROmh.js} +6 -6
- package/dist/{ImportView-Bo5_flTQ.js → ImportView-DRwh58Ys.js} +496 -499
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-ojpfy2Ii.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-9RWiSk12.js} +1 -1
- package/dist/{IngredientGroupView-DwI_dzmA.js → IngredientGroupView-0G8ru_Mg.js} +5 -5
- package/dist/{IngredientsView-CZ1dUF0O.js → IngredientsView-CveyeIDT.js} +17 -18
- package/dist/{IntegrationExplorerView-C5vZlZBh.js → IntegrationExplorerView-Cs7BOfbi.js} +4 -4
- package/dist/{IntegrationView-D4HIODSv.js → IntegrationView-EM8QVxrX.js} +3507 -3460
- package/dist/{InventoryBindingForm-DN1cW0S7.js → InventoryBindingForm-CLoDLMUq.js} +1 -1
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-CzKnqty8.js +441 -0
- package/dist/{InventoryBindingSummary-NKawlUi9.js → InventoryBindingSummary-C3_h9jB6.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-CSUy694_.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-sVLNX_Ju.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BXsQFkO3.js → PremiumBadge.vue_vue_type_script_setup_true_lang-DdtF7Ghs.js} +1 -1
- package/dist/{ProductionView-7k5Oox5D.js → ProductionView-BfPM2Uwr.js} +7 -7
- package/dist/{PublishView-BmHkV9UU.js → PublishView-CacyxkTH.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-B-TxDilP.js → PurchaseOrderPrintPreview-CO8Ft7Jt.js} +2 -2
- package/dist/{ReceiveRequestView-CSJHwpJk.js → ReceiveRequestView-DNygshBP.js} +14 -14
- package/dist/RecipeView-Da5pXK-k.js +3584 -0
- package/dist/{SettingsView-D7qk5anS.js → SettingsView-8JTt0Ri0.js} +4 -4
- package/dist/{StockView-CrSYJS-y.js → StockView-Dkcp8EeQ.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CIcAv3iV.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-DEv0WzZE.js} +1 -1
- package/dist/{SupplierView-mspLWCeX.js → SupplierView-BFhZxnxG.js} +12 -12
- package/dist/{SurchargeView-JnM8h5T5.js → SurchargeView-EkT2b_46.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-CsTY_Ixm.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-Bvt_VW9G.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-nlr6Nrx1.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-DxCESF-e.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-DVoH2PXF.js → TransferDetails.vue_vue_type_script_setup_true_lang-D1bdw7Bp.js} +1575 -1639
- package/dist/{TransferTemplateView-CfVvqBEw.js → TransferTemplateView-DmiaoBw3.js} +20 -20
- package/dist/{UnitCostHistoryView-D8hbU8E9.js → UnitCostHistoryView-DklfNkXP.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CVwO5FhL.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-DpPiPLhD.js} +4 -4
- package/dist/{UnitView-BU7iOhKk.js → UnitView-De_D6GEz.js} +8 -8
- package/dist/WarehouseView-DkfQ6t0t.js +1079 -0
- package/dist/{WastageTemplateView-CofGUoCL.js → WastageTemplateView-CRdzM2as.js} +14 -14
- package/dist/api/purchase-order.d.ts +0 -2
- package/dist/{app-CaVwxRtv.js → app-DX9D1w8l.js} +9137 -10054
- package/dist/app.d.ts +9 -908
- package/dist/app.js +1 -1
- package/dist/{closing-template-zk-8riyF.js → closing-template-qpRg_Az9.js} +1 -1
- package/dist/{date2-Da1yrXy2.js → date2-CZ7adCWH.js} +5 -5
- package/dist/{dayjs.min-DZDLiUUR.js → dayjs.min-3MdjqoXO.js} +1 -1
- package/dist/{decimal-BXr5jFCt.js → decimal-C1LKdLkQ.js} +2 -2
- package/dist/{defineDeepModel-B58ZSZ2-.js → defineDeepModel-DoDzh2b2.js} +1 -1
- package/dist/{duplicate-template-DB7BeIdr.js → duplicate-template-C9Le1Znd.js} +1 -1
- package/dist/{feature-CoiZLX8h.js → feature-BZyCqcEn.js} +2 -2
- package/dist/{format-time-from-id-Dk2sMpaD.js → format-time-from-id-AU__62uQ.js} +1 -1
- package/dist/{format-unit-display-IvpQg1Zz.js → format-unit-display-Dw-0qEj4.js} +27 -27
- package/dist/{import-export.helper-BkEbqxoN.js → import-export.helper-OGX7xcXn.js} +6 -6
- package/dist/{index-9BgqIon0.js → index-BMsjGqmL.js} +3 -3
- package/dist/{index-D8SmmnoO.js → index-D8dszMaZ.js} +3232 -3306
- package/dist/{index-Lsgo5RyK.js → index-DU65mxS4.js} +1 -1
- package/dist/{inventory-core-dart.default-I4pnD6mk.js → inventory-core-dart.default-C8gA6YiZ.js} +1 -1
- package/dist/{lz-string-DpMUoHOE.js → lz-string-BzBGfdiF.js} +1 -1
- package/dist/{netsuite-PtHEjkyJ.js → netsuite-CvV6-vXA.js} +1387 -1397
- package/dist/{number-BrslsQSR.js → number-BxmfHF3Y.js} +3 -3
- package/dist/{predefined-templates-BhmpuXal.js → predefined-templates-5u9eGHKJ.js} +1 -1
- package/dist/{purchase-order-template-DxbJKpHo.js → purchase-order-template-Qr5AMiU6.js} +1 -1
- package/dist/{recalculationUtils-5Kc541X6.js → recalculationUtils-2gL9pc0H.js} +1 -1
- package/dist/{rules-LmD1GbEX.js → rules-BPasrLXm.js} +2 -2
- package/dist/{stock-Bn5ZJ4l-.js → stock-CzIzVIbM.js} +1 -1
- package/dist/{stock-BhSrDwve.js → stock-yRjAx4ZH.js} +3 -3
- package/dist/stores/bulk-job.d.ts +0 -13
- package/dist/style.css +1 -1
- package/dist/{supplier-CN9kcBaa.js → supplier-DMTqpJg3.js} +2 -2
- package/dist/{surcharge-KXfzn-DG.js → surcharge-BeUZBYR1.js} +8 -8
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-BLkhY22f.js → uom-rules-LihPxQ9x.js} +1 -1
- package/dist/{use-ingredient-select-dialog-BI10BAsU.js → use-ingredient-select-dialog-CxE1cAK-.js} +2 -2
- package/dist/{use-inventory-binding-dialog-U7gMV5AO.js → use-inventory-binding-dialog-BOx62zVs.js} +2 -2
- package/dist/{use-template-enabled-locations-ByqGD0Zl.js → use-template-enabled-locations-C8eeA9Sb.js} +2 -2
- package/dist/{use-transfer-locations-CjmdtOJn.js → use-transfer-locations-Dnxc410A.js} +2 -2
- package/dist/{useHrmPermission-BLPoqAqK.js → useHrmPermission-BdejOjVT.js} +1 -1
- package/dist/{useNavigationMenu-KC6IkTar.js → useNavigationMenu-9-UDO0Au.js} +2 -2
- package/dist/{useSseClient-Mg1vIf5l.js → useSseClient-CnNQR4iL.js} +1 -1
- package/dist/views/ingredients/components/inventory-binding/InventoryBindingForm.vue.d.ts +0 -2
- package/dist/views/ingredients/components/inventory-binding/v2/InventoryBindingFormV2.vue.d.ts +0 -2
- package/dist/views/ingredients/components/inventory-binding/v2/components/InventoryRecipeBindingV2Field.vue.d.ts +0 -4
- package/dist/views/receive-request/components/email-dialog/EmailDialogProps.d.ts +9 -23
- package/dist/views/recipe/composables/use-recipe-table.d.ts +0 -11
- package/dist/{vue-i18n-9MAnRv0c.js → vue-i18n-X-U3UMbs.js} +332 -332
- package/dist/{xlsx.util-Dlw4yUlp.js → xlsx.util-CE04FVCJ.js} +2 -2
- package/package.json +4 -4
- package/dist/App-BA0j7vXh.js +0 -1465
- package/dist/BulkReceiveRequestView-BePjklka.js +0 -2657
- package/dist/InventoryBindingForm.vue_vue_type_script_setup_true_lang-78aK3g9R.js +0 -563
- package/dist/RecipeView-FQRnQku1.js +0 -3625
- package/dist/WarehouseView-7RlAD3Dp.js +0 -1082
- package/dist/api/changelog.d.ts +0 -132
- package/dist/views/changelog/components/ChangelogDialog.vue.d.ts +0 -19
- package/dist/views/changelog/components/ChangelogFloatingButton.vue.d.ts +0 -2
- package/dist/views/changelog/components/ChangelogPanel.spec.d.ts +0 -1
- package/dist/views/changelog/components/ChangelogPanel.vue.d.ts +0 -20
- package/dist/views/changelog/composables/change-path.d.ts +0 -10
- package/dist/views/changelog/composables/commit-message.d.ts +0 -9
- package/dist/views/changelog/composables/commit-message.spec.d.ts +0 -1
- package/dist/views/changelog/composables/json-line-diff.d.ts +0 -10
- package/dist/views/changelog/composables/json-line-diff.spec.d.ts +0 -1
- package/dist/views/changelog/composables/use-changelog.d.ts +0 -90
- package/dist/views/changelog/composables/use-changelog.spec.d.ts +0 -1
- package/dist/views/changelog/composables/use-inventory-record-commits.d.ts +0 -97
- package/dist/views/changelog/composables/use-inventory-record-commits.spec.d.ts +0 -1
- package/dist/views/changelog/composables/use-snapshot-diff.d.ts +0 -29
- package/dist/views/changelog/composables/use-snapshot-diff.spec.d.ts +0 -1
- package/dist/views/changelog/composables/value-tree.d.ts +0 -14
- package/dist/views/changelog/composables/value-tree.spec.d.ts +0 -1
- package/dist/views/import/helper/submit-rows.d.ts +0 -13
- package/dist/views/import/helper/submit-rows.spec.d.ts +0 -1
- package/dist/views/ingredients/components/inventory-binding/RecipeBindingBreakdown.vue.d.ts +0 -25
- package/dist/views/ingredients/components/inventory-binding/composables/recipe-breakdown.d.ts +0 -34
- package/dist/views/ingredients/components/inventory-binding/composables/recipe-breakdown.spec.d.ts +0 -1
- package/dist/views/receive-request/components/email-dialog/EmailDialog.spec.d.ts +0 -1
package/dist/api/changelog.d.ts
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
import type { FdtoChangeLog } from '@feedmepos/zod-inventory';
|
|
2
|
-
/** A domain the changelog browser lists generically (backend `changelog/domains`). */
|
|
3
|
-
export interface BrowsableChangelogDomain {
|
|
4
|
-
domain: string;
|
|
5
|
-
labelKey: string;
|
|
6
|
-
}
|
|
7
|
-
/** A resolved value tree the server attaches to a change's from/to when explain=1 (mirrors kit's ValueNode). */
|
|
8
|
-
export interface ValueNode {
|
|
9
|
-
label?: string;
|
|
10
|
-
value?: string;
|
|
11
|
-
display?: string;
|
|
12
|
-
list?: boolean;
|
|
13
|
-
bookkeeping?: boolean;
|
|
14
|
-
kids?: ValueNode[];
|
|
15
|
-
}
|
|
16
|
-
/** The `schema` query param for explain=1 — field-trail labels/identity, mirroring kit httpapi's explainOptions. */
|
|
17
|
-
export interface ExplainSchema {
|
|
18
|
-
array_keys?: Record<string, string>;
|
|
19
|
-
identity_fields?: string[];
|
|
20
|
-
name_fields?: string[];
|
|
21
|
-
ignored_fields?: string[];
|
|
22
|
-
names?: Record<string, string>;
|
|
23
|
-
label_keys?: {
|
|
24
|
-
prefix: string;
|
|
25
|
-
fields: string[];
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Domain-agnostic explain schema for domains without their own: keyed-array
|
|
30
|
-
* pairing falls back to `_id`/`id`, and field labels reuse the inventory i18n
|
|
31
|
-
* keys — consistent with the differ, whose label resolver is registered once
|
|
32
|
-
* app-wide, so stored human paths already use these keys in every domain.
|
|
33
|
-
*/
|
|
34
|
-
export declare const DEFAULT_EXPLAIN_SCHEMA: ExplainSchema;
|
|
35
|
-
/**
|
|
36
|
-
* Inventory domain's explain schema: the default plus the nested-array
|
|
37
|
-
* identity declarations the `_id`/`id` fallback can't express, and the same
|
|
38
|
-
* field labels the differ already translates (LABELED_FIELDS,
|
|
39
|
-
* apps/inventory-backend/src/inventory/changelog-labels.ts) so a resolved
|
|
40
|
-
* value tree's field labels go through the same i18n keys as field-level diffs.
|
|
41
|
-
*/
|
|
42
|
-
export declare const INVENTORY_EXPLAIN_SCHEMA: ExplainSchema;
|
|
43
|
-
/** The keyed-array element a kit-dialect change sits inside (mirrors kit's Element). */
|
|
44
|
-
export interface ChangelogElement {
|
|
45
|
-
trail?: string[];
|
|
46
|
-
name?: string;
|
|
47
|
-
id?: string;
|
|
48
|
-
}
|
|
49
|
-
/** Resolved display names for id-valued from/to (mirrors kit's Display). */
|
|
50
|
-
export interface ChangelogDisplay {
|
|
51
|
-
from?: string;
|
|
52
|
-
to?: string;
|
|
53
|
-
}
|
|
54
|
-
/** One diff line within a commit (mirrors the changelog server's Change). */
|
|
55
|
-
export interface ChangelogChange {
|
|
56
|
-
at?: string;
|
|
57
|
-
actor?: string;
|
|
58
|
-
path: string;
|
|
59
|
-
kind: string;
|
|
60
|
-
from?: string;
|
|
61
|
-
to?: string;
|
|
62
|
-
from_value?: ValueNode;
|
|
63
|
-
to_value?: ValueNode;
|
|
64
|
-
/** kit-dialect only: human label trail of the changed field, relative to element when set. */
|
|
65
|
-
field?: string[];
|
|
66
|
-
/** kit-dialect only: set when the change sits inside a keyed array element. */
|
|
67
|
-
element?: ChangelogElement;
|
|
68
|
-
/** kit-dialect only: resolved display names when from/to are known ids. */
|
|
69
|
-
display?: ChangelogDisplay;
|
|
70
|
-
}
|
|
71
|
-
/** One sealed commit for a record (the server's CommitEnvelope). */
|
|
72
|
-
export interface ChangelogCommit {
|
|
73
|
-
doc_id: string;
|
|
74
|
-
id: string;
|
|
75
|
-
parent: string;
|
|
76
|
-
at: string;
|
|
77
|
-
authors: string[];
|
|
78
|
-
message?: string;
|
|
79
|
-
changes: ChangelogChange[];
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* True when an API call rejected with a 409 — the backend's changelog/state
|
|
83
|
-
* passthrough answers this way when the document's history has any pre-kit
|
|
84
|
-
* (legacy-dialect) commit, since kit's state replay cannot fold those.
|
|
85
|
-
*/
|
|
86
|
-
export declare function isStateConflict(error: unknown): boolean;
|
|
87
|
-
export declare const useChangelogApi: () => {
|
|
88
|
-
/**
|
|
89
|
-
* Commits for one record. recordId is the changelog docId, `${dbName}/${id}`.
|
|
90
|
-
* The dbName scopes the (access-checked) backend route; only the bare id is
|
|
91
|
-
* sent — the backend rebuilds the docId server-side.
|
|
92
|
-
*/
|
|
93
|
-
getRecordChangelog(recordId: string, limit?: number, explain?: ExplainSchema, before?: string): Promise<ChangelogCommit[]>;
|
|
94
|
-
/**
|
|
95
|
-
* Purchase orders in a date range, each with when it last changed. The
|
|
96
|
-
* backend joins the orders to their newest commit, so no ids travel and the
|
|
97
|
-
* browser makes one request instead of list-then-ask-for-timestamps.
|
|
98
|
-
*/
|
|
99
|
-
listPurchaseOrders(dbName: string, start: string, end: string): Promise<FdtoChangeLog[]>;
|
|
100
|
-
/**
|
|
101
|
-
* Closing drafts created in a date range, each with when it last changed.
|
|
102
|
-
* Closing groups come back as rows of their own — their submit/approve/
|
|
103
|
-
* reject is recorded against the group document, not its parent.
|
|
104
|
-
*/
|
|
105
|
-
listClosingDrafts(dbName: string, start: string, end: string): Promise<FdtoChangeLog[]>;
|
|
106
|
-
/**
|
|
107
|
-
* A kit-dialect record's whole document, at HEAD or as of (and including)
|
|
108
|
-
* commit `at`. Same dbName/id split as getRecordChangelog. Rejects with a
|
|
109
|
-
* 409 (see isStateConflict) when the record's history predates the kit
|
|
110
|
-
* write path — the backend passthrough for kit httpapi's GET /api/state.
|
|
111
|
-
*/
|
|
112
|
-
getState(dbName: string, docId: string, at?: string): Promise<Record<string, unknown>>;
|
|
113
|
-
/**
|
|
114
|
-
* The domains the browser lists generically, declared in
|
|
115
|
-
* changelog-domains-pkg and served by the backend — a new browsable domain
|
|
116
|
-
* becomes a tab without a portal change. Backends predating the route
|
|
117
|
-
* yield an error the caller treats as "no extra domains".
|
|
118
|
-
*/
|
|
119
|
-
listDomains(businessId: string): Promise<BrowsableChangelogDomain[]>;
|
|
120
|
-
/**
|
|
121
|
-
* One generic domain's records, each with when it last changed. Business-
|
|
122
|
-
* scoped: the generic domains are configuration documents of the business
|
|
123
|
-
* db, not of a location.
|
|
124
|
-
*/
|
|
125
|
-
listDomainRecords(businessId: string, domain: string): Promise<FdtoChangeLog[]>;
|
|
126
|
-
/**
|
|
127
|
-
* One inventory module's records, each with when it last changed. Business-
|
|
128
|
-
* scoped, so the db is `business_<id>` — the same prefixed name the record's
|
|
129
|
-
* own changelog docId carries.
|
|
130
|
-
*/
|
|
131
|
-
listInventory(businessId: string, module: 'sku' | 'recipe' | 'unit'): Promise<FdtoChangeLog[]>;
|
|
132
|
-
};
|
|
@@ -1,19 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
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
|
-
resolveName?: ((id: string) => string | undefined) | undefined;
|
|
6
|
-
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
7
|
-
commits: ChangelogCommit[];
|
|
8
|
-
isLoading: boolean;
|
|
9
|
-
resolveName?: ((id: string) => string | undefined) | undefined;
|
|
10
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
|
-
export default _default;
|
|
12
|
-
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
13
|
-
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
14
|
-
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
15
|
-
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
16
|
-
} : {
|
|
17
|
-
type: import('vue').PropType<T[K]>;
|
|
18
|
-
required: true;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,10 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { type ChangelogCommit, type ExplainSchema } 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
|
-
from_value?: {
|
|
18
|
-
label?: string | undefined;
|
|
19
|
-
value?: string | undefined;
|
|
20
|
-
display?: string | undefined;
|
|
21
|
-
list?: boolean | undefined;
|
|
22
|
-
bookkeeping?: boolean | undefined;
|
|
23
|
-
kids?: any[] | undefined;
|
|
24
|
-
} | undefined;
|
|
25
|
-
to_value?: {
|
|
26
|
-
label?: string | undefined;
|
|
27
|
-
value?: string | undefined;
|
|
28
|
-
display?: string | undefined;
|
|
29
|
-
list?: boolean | undefined;
|
|
30
|
-
bookkeeping?: boolean | undefined;
|
|
31
|
-
kids?: any[] | undefined;
|
|
32
|
-
} | undefined;
|
|
33
|
-
field?: string[] | undefined;
|
|
34
|
-
element?: {
|
|
35
|
-
trail?: string[] | undefined;
|
|
36
|
-
name?: string | undefined;
|
|
37
|
-
id?: string | undefined;
|
|
38
|
-
} | undefined;
|
|
39
|
-
display?: {
|
|
40
|
-
from?: string | undefined;
|
|
41
|
-
to?: string | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
}[];
|
|
44
|
-
}[], ChangelogCommit[] | {
|
|
45
|
-
doc_id: string;
|
|
46
|
-
id: string;
|
|
47
|
-
parent: string;
|
|
48
|
-
at: string;
|
|
49
|
-
authors: string[];
|
|
50
|
-
message?: string | undefined;
|
|
51
|
-
changes: {
|
|
52
|
-
at?: string | undefined;
|
|
53
|
-
actor?: string | undefined;
|
|
54
|
-
path: string;
|
|
55
|
-
kind: string;
|
|
56
|
-
from?: string | undefined;
|
|
57
|
-
to?: string | undefined;
|
|
58
|
-
from_value?: {
|
|
59
|
-
label?: string | undefined;
|
|
60
|
-
value?: string | undefined;
|
|
61
|
-
display?: string | undefined;
|
|
62
|
-
list?: boolean | undefined;
|
|
63
|
-
bookkeeping?: boolean | undefined;
|
|
64
|
-
kids?: any[] | undefined;
|
|
65
|
-
} | undefined;
|
|
66
|
-
to_value?: {
|
|
67
|
-
label?: string | undefined;
|
|
68
|
-
value?: string | undefined;
|
|
69
|
-
display?: string | undefined;
|
|
70
|
-
list?: boolean | undefined;
|
|
71
|
-
bookkeeping?: boolean | undefined;
|
|
72
|
-
kids?: any[] | undefined;
|
|
73
|
-
} | undefined;
|
|
74
|
-
field?: string[] | undefined;
|
|
75
|
-
element?: {
|
|
76
|
-
trail?: string[] | undefined;
|
|
77
|
-
name?: string | undefined;
|
|
78
|
-
id?: string | undefined;
|
|
79
|
-
} | undefined;
|
|
80
|
-
display?: {
|
|
81
|
-
from?: string | undefined;
|
|
82
|
-
to?: string | undefined;
|
|
83
|
-
} | undefined;
|
|
84
|
-
}[];
|
|
85
|
-
}[]>;
|
|
86
|
-
isLoading: import("vue").Ref<boolean, boolean>;
|
|
87
|
-
hasMore: import("vue").Ref<boolean, boolean>;
|
|
88
|
-
load: (recordId: string, limit?: number, explain?: ExplainSchema) => Promise<void>;
|
|
89
|
-
loadMore: () => Promise<void>;
|
|
90
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
import { type ChangelogCommit } from '@/api/changelog';
|
|
2
|
-
export declare const INVENTORY_COMMIT_LIMIT = 1000;
|
|
3
|
-
/** Newest-first merge of two commit lists — ISO-8601 `at` compares lexicographically in chronological order. */
|
|
4
|
-
export declare function mergeCommitsNewestFirst(a: ChangelogCommit[], b: ChangelogCommit[]): ChangelogCommit[];
|
|
5
|
-
/**
|
|
6
|
-
* A record's per-entity changelog doc (Phase D-inventory:
|
|
7
|
-
* `${sharedDocId}/${module}/${entityId}`), to merge alongside its legacy
|
|
8
|
-
* shared-doc history. Most records predate the migration and have no
|
|
9
|
-
* per-entity doc yet, so an empty or failed fetch here is expected, not an
|
|
10
|
-
* error — the caller's legacy list is unaffected either way.
|
|
11
|
-
*/
|
|
12
|
-
export declare function usePerEntityCommits(): {
|
|
13
|
-
commits: import("vue").Ref<{
|
|
14
|
-
doc_id: string;
|
|
15
|
-
id: string;
|
|
16
|
-
parent: string;
|
|
17
|
-
at: string;
|
|
18
|
-
authors: string[];
|
|
19
|
-
message?: string | undefined;
|
|
20
|
-
changes: {
|
|
21
|
-
at?: string | undefined;
|
|
22
|
-
actor?: string | undefined;
|
|
23
|
-
path: string;
|
|
24
|
-
kind: string;
|
|
25
|
-
from?: string | undefined;
|
|
26
|
-
to?: string | undefined;
|
|
27
|
-
from_value?: {
|
|
28
|
-
label?: string | undefined;
|
|
29
|
-
value?: string | undefined;
|
|
30
|
-
display?: string | undefined;
|
|
31
|
-
list?: boolean | undefined;
|
|
32
|
-
bookkeeping?: boolean | undefined;
|
|
33
|
-
kids?: any[] | undefined;
|
|
34
|
-
} | undefined;
|
|
35
|
-
to_value?: {
|
|
36
|
-
label?: string | undefined;
|
|
37
|
-
value?: string | undefined;
|
|
38
|
-
display?: string | undefined;
|
|
39
|
-
list?: boolean | undefined;
|
|
40
|
-
bookkeeping?: boolean | undefined;
|
|
41
|
-
kids?: any[] | undefined;
|
|
42
|
-
} | undefined;
|
|
43
|
-
field?: string[] | undefined;
|
|
44
|
-
element?: {
|
|
45
|
-
trail?: string[] | undefined;
|
|
46
|
-
name?: string | undefined;
|
|
47
|
-
id?: string | undefined;
|
|
48
|
-
} | undefined;
|
|
49
|
-
display?: {
|
|
50
|
-
from?: string | undefined;
|
|
51
|
-
to?: string | undefined;
|
|
52
|
-
} | undefined;
|
|
53
|
-
}[];
|
|
54
|
-
}[], ChangelogCommit[] | {
|
|
55
|
-
doc_id: string;
|
|
56
|
-
id: string;
|
|
57
|
-
parent: string;
|
|
58
|
-
at: string;
|
|
59
|
-
authors: string[];
|
|
60
|
-
message?: string | undefined;
|
|
61
|
-
changes: {
|
|
62
|
-
at?: string | undefined;
|
|
63
|
-
actor?: string | undefined;
|
|
64
|
-
path: string;
|
|
65
|
-
kind: string;
|
|
66
|
-
from?: string | undefined;
|
|
67
|
-
to?: string | undefined;
|
|
68
|
-
from_value?: {
|
|
69
|
-
label?: string | undefined;
|
|
70
|
-
value?: string | undefined;
|
|
71
|
-
display?: string | undefined;
|
|
72
|
-
list?: boolean | undefined;
|
|
73
|
-
bookkeeping?: boolean | undefined;
|
|
74
|
-
kids?: any[] | undefined;
|
|
75
|
-
} | undefined;
|
|
76
|
-
to_value?: {
|
|
77
|
-
label?: string | undefined;
|
|
78
|
-
value?: string | undefined;
|
|
79
|
-
display?: string | undefined;
|
|
80
|
-
list?: boolean | undefined;
|
|
81
|
-
bookkeeping?: boolean | undefined;
|
|
82
|
-
kids?: any[] | undefined;
|
|
83
|
-
} | undefined;
|
|
84
|
-
field?: string[] | undefined;
|
|
85
|
-
element?: {
|
|
86
|
-
trail?: string[] | undefined;
|
|
87
|
-
name?: string | undefined;
|
|
88
|
-
id?: string | undefined;
|
|
89
|
-
} | undefined;
|
|
90
|
-
display?: {
|
|
91
|
-
from?: string | undefined;
|
|
92
|
-
to?: string | undefined;
|
|
93
|
-
} | undefined;
|
|
94
|
-
}[];
|
|
95
|
-
}[]>;
|
|
96
|
-
load: (recordId: string) => Promise<void>;
|
|
97
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { type ChangelogCommit } from '@/api/changelog';
|
|
2
|
-
import { type DiffLine } from './json-line-diff';
|
|
3
|
-
export interface SnapshotResult {
|
|
4
|
-
diff: DiffLine[] | null;
|
|
5
|
-
conflict: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Per-commit whole-document diff (kit-dialect records only): state at the
|
|
9
|
-
* commit vs state at its parent, over the backend's changelog/state
|
|
10
|
-
* passthrough. Cached per commit id so re-toggling the view is free; a 409
|
|
11
|
-
* (pre-kit history) is cached too, so it doesn't re-fetch on every toggle.
|
|
12
|
-
*/
|
|
13
|
-
export declare function useSnapshotDiff(): {
|
|
14
|
-
isLoading: import("vue").Ref<boolean, boolean>;
|
|
15
|
-
result: import("vue").Ref<{
|
|
16
|
-
diff: {
|
|
17
|
-
type: "add" | "del" | "same" | "skip";
|
|
18
|
-
text: string;
|
|
19
|
-
}[] | null;
|
|
20
|
-
conflict: boolean;
|
|
21
|
-
} | null, SnapshotResult | {
|
|
22
|
-
diff: {
|
|
23
|
-
type: "add" | "del" | "same" | "skip";
|
|
24
|
-
text: string;
|
|
25
|
-
}[] | null;
|
|
26
|
-
conflict: boolean;
|
|
27
|
-
} | null>;
|
|
28
|
-
load: (commit: ChangelogCommit) => Promise<void>;
|
|
29
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ValueNode } from '@/api/changelog';
|
|
2
|
-
export interface ValueTreeLine {
|
|
3
|
-
depth: number;
|
|
4
|
-
label?: string;
|
|
5
|
-
text?: string;
|
|
6
|
-
bookkeeping: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Flattens one ValueNode tree; i18n-key labels are translated via `t`, literals
|
|
10
|
-
* pass through. `resolveName` fills in a display name for id-valued leaves the
|
|
11
|
-
* server couldn't resolve — ids referencing entities outside the explained
|
|
12
|
-
* value (kit's document walk only sees the value itself).
|
|
13
|
-
*/
|
|
14
|
-
export declare function flattenValueTree(node: ValueNode, t: (key: string) => string, depth?: number, resolveName?: (id: string) => string | undefined): ValueTreeLine[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The import preview merges transient validation state onto each entity row
|
|
3
|
-
* (`{ ...entity, errors }`) so the summary table can show per-row problems.
|
|
4
|
-
* The bulk API must receive the entity alone: rows submitted whole persisted
|
|
5
|
-
* `errors: []` into the inventory doc's skus/recipes/units, which then
|
|
6
|
-
* surfaced in the changelog as a phantom "Errors" field on every later edit.
|
|
7
|
-
* One boundary, one strip: valid rows only, `errors` removed.
|
|
8
|
-
*
|
|
9
|
-
* Untyped by necessity: the rows come off `importSummary` (a `ref<any>`), so a
|
|
10
|
-
* generic would only infer its own constraint and then fail against the typed
|
|
11
|
-
* bulk-request params. The spec pins the runtime contract instead.
|
|
12
|
-
*/
|
|
13
|
-
export declare function submittableRows(rows: Array<Record<string, any>> | undefined): any[];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/views/ingredients/components/inventory-binding/composables/recipe-breakdown.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
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
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|