@feedmepos/mf-inventory-portal 1.7.9-dev.1 → 1.7.9-dev.2
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-BYCW0L94.js +1403 -0
- package/dist/{ApprovalView-DpkYimTU.js → ApprovalView-pmI_SFo7.js} +9 -9
- package/dist/{BindingsDialog-9MteMW5_.js → BindingsDialog-D902flPr.js} +2 -2
- package/dist/{BindingsPicker-C3R1Iaci.js → BindingsPicker-JEKsY59b.js} +2 -2
- package/dist/{BindingsTable-yWS4vjmz.js → BindingsTable-DqlzOIxF.js} +4 -4
- package/dist/{BulkReceiveRequestView-MYLE3mXl.js → BulkReceiveRequestView-Chw7ma2k.js} +19 -19
- package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DrehE0r3.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-Cct8Ko19.js} +1 -1
- package/dist/{ClosingDraftView-BO0eUpk7.js → ClosingDraftView-D1ymRsd2.js} +19 -19
- package/dist/{ClosingHistoryView-1Gu4B0qB.js → ClosingHistoryView-5yr_itIV.js} +5 -5
- package/dist/{ClosingTemplateView-CvAn5afN.js → ClosingTemplateView-MDl5Zq-g.js} +16 -16
- package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CwWbC1oH.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-BcG0gWV4.js} +1 -1
- package/dist/{DefaultView-DeXxhLsq.js → DefaultView-dOfbL3iF.js} +2 -2
- package/dist/{DeliveryOrderPrintPreview-Bilzn1WS.js → DeliveryOrderPrintPreview-BfVgQOx8.js} +2 -2
- package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-C5xp1ceO.js → EmailDialog.vue_vue_type_script_setup_true_lang-DHspOJQW.js} +23 -23
- package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DL5i2-tq.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-B7NLu0us.js} +1 -1
- package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bq36-nnH.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-C0nunKjx.js} +2 -2
- package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D2l0nTi_.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-CMst9tkA.js} +2 -2
- package/dist/{FmMultiselectDialog-COp24wS3.js → FmMultiselectDialog-BjBx94pY.js} +1 -1
- package/dist/{FmMultiselectDialog-CKQ1eFVZ.js → FmMultiselectDialog-Dt54hvqw.js} +2 -2
- package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CN4ENCPZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-DtG9Ieo_.js} +6 -6
- package/dist/{ImportView-CB3qjhvy.js → ImportView-CdZN8k_Y.js} +6 -6
- package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CBxUyjH8.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-iCpYEneM.js} +1 -1
- package/dist/{IngredientGroupView-DuY6Gw5V.js → IngredientGroupView-BBVS1mKn.js} +5 -5
- package/dist/{IngredientsView-DxzyJE_h.js → IngredientsView-BGOaAUzR.js} +15 -15
- package/dist/{IntegrationExplorerView-Ma59NTHM.js → IntegrationExplorerView-UUBCmqdR.js} +4 -4
- package/dist/{IntegrationView-SBMEO_e9.js → IntegrationView-B2YowH-i.js} +14 -14
- package/dist/{InventoryBindingForm-CBFJRVNH.js → InventoryBindingForm-kDx6Mvhn.js} +1 -1
- package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-nEFGKA.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-C8bktmYH.js} +5 -5
- package/dist/{InventoryBindingSummary-c5g-35nq.js → InventoryBindingSummary-DJrBTa8_.js} +1 -1
- package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DEtNW2wJ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DHk9uEAP.js} +1 -1
- package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BInLhmxe.js → PremiumBadge.vue_vue_type_script_setup_true_lang-Dx1VktdW.js} +1 -1
- package/dist/{ProductionView-BlhsrkXW.js → ProductionView-CxUcsRBP.js} +7 -7
- package/dist/{PublishView-bMEZSiVN.js → PublishView-DtP-Ms7q.js} +3 -3
- package/dist/{PurchaseOrderPrintPreview-HvIFszQX.js → PurchaseOrderPrintPreview-C_qC2KF5.js} +2 -2
- package/dist/{ReceiveRequestView-jwXYj2Wy.js → ReceiveRequestView-Dy3BpqsP.js} +14 -14
- package/dist/{RecipeView-DKd5h85n.js → RecipeView-DeR7pqj8.js} +17 -17
- package/dist/{SettingsView-BqELMK6p.js → SettingsView-C7ZXmatO.js} +4 -4
- package/dist/{StockView-6xDfuSnV.js → StockView-wFLnNSRr.js} +21 -21
- package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CBUZIEA5.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-Fxh3-Nqi.js} +1 -1
- package/dist/{SupplierView-BwMl9JFO.js → SupplierView-CeTDNDDK.js} +12 -12
- package/dist/{SurchargeView-AGXGqhxy.js → SurchargeView-BQJnCdPA.js} +6 -6
- package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DQSq3UGp.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-D1zxuH66.js} +2 -2
- package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BBUG8N2w.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BFkh3Ubb.js} +1 -1
- package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BMrGsD-f.js → TransferDetails.vue_vue_type_script_setup_true_lang-CZVDhXNz.js} +20 -20
- package/dist/{TransferTemplateView-DJYXlxpw.js → TransferTemplateView-XaI2T5fa.js} +20 -20
- package/dist/{UnitCostHistoryView-DRgWgXhB.js → UnitCostHistoryView-DTNW7-mk.js} +4 -4
- package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CR8a6DkX.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-vRsEjVJc.js} +4 -4
- package/dist/{UnitView-mWUCF13E.js → UnitView-DXnyzkj3.js} +7 -7
- package/dist/{WarehouseView-DY4_bxzS.js → WarehouseView-iEHFgIqh.js} +5 -5
- package/dist/{WastageTemplateView-D4YFC_zj.js → WastageTemplateView-CGDUCPbr.js} +14 -14
- package/dist/api/changelog.d.ts +69 -1
- package/dist/{app-DCSH6Br7.js → app-BIXJtvvD.js} +31 -23
- package/dist/app.d.ts +16 -8
- package/dist/app.js +1 -1
- package/dist/{closing-template-knrmn7Jq.js → closing-template-CLY-r6Cf.js} +1 -1
- package/dist/{date2-m9Qq52B4.js → date2-DbYQycSa.js} +1 -1
- package/dist/{dayjs.min-BX2fRC46.js → dayjs.min-Dv7-fEed.js} +1 -1
- package/dist/{decimal-pgdYbjfw.js → decimal-B8YR17QC.js} +2 -2
- package/dist/{defineDeepModel-C5kt7Waa.js → defineDeepModel-C5ncgNxj.js} +1 -1
- package/dist/{duplicate-template-B74iiBzz.js → duplicate-template-CAlG1nzV.js} +1 -1
- package/dist/{feature-CfkazbcV.js → feature-BLSNLI5y.js} +2 -2
- package/dist/{format-time-from-id-C1AIz8rq.js → format-time-from-id-D5DcWpHS.js} +1 -1
- package/dist/{format-unit-display-A-G-IaSa.js → format-unit-display-Ch97dVXx.js} +12 -12
- package/dist/{import-export.helper-Dx6UODpr.js → import-export.helper-CvUFSOa1.js} +6 -6
- package/dist/{index-CiQiwzTH.js → index-Bk8DOv4n.js} +1 -1
- package/dist/{index-uk9CA-G3.js → index-CXzVUrJS.js} +3 -3
- package/dist/{index-DjKTLy_K.js → index-rRPErzP4.js} +1 -1
- package/dist/{inventory-core-dart.default-CMAgxo1z.js → inventory-core-dart.default-Cj7CxnpK.js} +1 -1
- package/dist/{lz-string-DZI7eVks.js → lz-string-DWkGPESZ.js} +1 -1
- package/dist/{netsuite-CoajVOCj.js → netsuite-Cn0y1rH3.js} +2 -2
- package/dist/{number-qzibfxtV.js → number-CxbQxQwj.js} +3 -3
- package/dist/{predefined-templates-Bi2KN0S0.js → predefined-templates-CrSoG3R9.js} +1 -1
- package/dist/{purchase-order-template-q60hgvfd.js → purchase-order-template-BmQQnrEl.js} +1 -1
- package/dist/{recalculationUtils-ThdsSQXA.js → recalculationUtils-CSnowXma.js} +1 -1
- package/dist/{rules-DkRl1mdI.js → rules-CurdOAcA.js} +2 -2
- package/dist/{stock-CfGnNgNm.js → stock-BdDR_L8p.js} +1 -1
- package/dist/{stock-CDBl371n.js → stock-BiqEgcgU.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{supplier-m95t74cw.js → supplier-CsjbmP_P.js} +2 -2
- package/dist/{surcharge-D0KNDUtM.js → surcharge--kBjIIst.js} +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/{uom-rules-DoC_viYg.js → uom-rules-D8UPS06O.js} +1 -1
- package/dist/{use-ingredient-select-dialog-DUDA6jkc.js → use-ingredient-select-dialog-BZdrpLOE.js} +2 -2
- package/dist/{use-inventory-binding-dialog-DyZVwYRw.js → use-inventory-binding-dialog-CkNxixT2.js} +2 -2
- package/dist/{use-template-enabled-locations-DU6ebPLW.js → use-template-enabled-locations-Dkl1_1F-.js} +2 -2
- package/dist/{use-transfer-locations-i4WVdQfZ.js → use-transfer-locations-Bmj4zTJj.js} +2 -2
- package/dist/{useHrmPermission-D4dofQF9.js → useHrmPermission-DcBe_-Q6.js} +1 -1
- package/dist/{useNavigationMenu-BwZoEiX3.js → useNavigationMenu-CsRbtAc7.js} +2 -2
- package/dist/{useSseClient-vOXEoq_d.js → useSseClient-hl2SQF5b.js} +1 -1
- package/dist/views/changelog/components/ChangelogPanel.spec.d.ts +1 -0
- package/dist/views/changelog/components/ChangelogPanel.vue.d.ts +2 -0
- package/dist/views/changelog/composables/use-changelog.d.ts +54 -2
- package/dist/views/changelog/composables/use-inventory-record-commits.d.ts +97 -0
- package/dist/views/changelog/composables/use-inventory-record-commits.spec.d.ts +1 -0
- package/dist/views/changelog/composables/use-snapshot-diff.d.ts +29 -0
- package/dist/views/changelog/composables/use-snapshot-diff.spec.d.ts +1 -0
- package/dist/views/changelog/composables/value-tree.d.ts +14 -0
- package/dist/views/changelog/composables/value-tree.spec.d.ts +1 -0
- package/dist/{vue-i18n-CV9ieqUG.js → vue-i18n-yL99yI4f.js} +258 -258
- package/dist/{xlsx.util-CfgV0r9W.js → xlsx.util-B8azJxkS.js} +2 -2
- package/package.json +4 -4
- package/dist/App-DEdkuDaS.js +0 -1155
package/dist/{use-ingredient-select-dialog-DUDA6jkc.js → use-ingredient-select-dialog-BZdrpLOE.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-BIXJtvvD.js";
|
|
3
|
+
import { a as A } from "./FmMultiselectDialog-Dt54hvqw.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-DyZVwYRw.js → use-inventory-binding-dialog-CkNxixT2.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-Dt54hvqw.js";
|
|
2
|
+
import { a as P } from "./app-BIXJtvvD.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-Dt54hvqw.js";
|
|
2
|
+
import { u as S } from "./app-BIXJtvvD.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-BIXJtvvD.js";
|
|
2
|
+
import { u as E } from "./supplier-CsjbmP_P.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-BIXJtvvD.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-BLSNLI5y.js";
|
|
5
5
|
const L = O.reduce(
|
|
6
6
|
(o, r) => {
|
|
7
7
|
var i;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -2,9 +2,11 @@ import type { ChangelogCommit } from '@/api/changelog';
|
|
|
2
2
|
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
3
3
|
commits: ChangelogCommit[];
|
|
4
4
|
isLoading: boolean;
|
|
5
|
+
resolveName?: ((id: string) => string | undefined) | undefined;
|
|
5
6
|
}>>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
6
7
|
commits: ChangelogCommit[];
|
|
7
8
|
isLoading: boolean;
|
|
9
|
+
resolveName?: ((id: string) => string | undefined) | undefined;
|
|
8
10
|
}>>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
9
11
|
export default _default;
|
|
10
12
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ChangelogCommit } from '@/api/changelog';
|
|
1
|
+
import { type ChangelogCommit, type ExplainSchema } from '@/api/changelog';
|
|
2
2
|
export declare function useChangelog(): {
|
|
3
3
|
commits: import("vue").Ref<{
|
|
4
4
|
doc_id: string;
|
|
@@ -14,6 +14,32 @@ export declare function useChangelog(): {
|
|
|
14
14
|
kind: string;
|
|
15
15
|
from?: string | undefined;
|
|
16
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;
|
|
17
43
|
}[];
|
|
18
44
|
}[], ChangelogCommit[] | {
|
|
19
45
|
doc_id: string;
|
|
@@ -29,8 +55,34 @@ export declare function useChangelog(): {
|
|
|
29
55
|
kind: string;
|
|
30
56
|
from?: string | undefined;
|
|
31
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;
|
|
32
84
|
}[];
|
|
33
85
|
}[]>;
|
|
34
86
|
isLoading: import("vue").Ref<boolean, boolean>;
|
|
35
|
-
load: (recordId: string, limit?: number) => Promise<void>;
|
|
87
|
+
load: (recordId: string, limit?: number, explain?: ExplainSchema) => Promise<void>;
|
|
36
88
|
};
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
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[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|