@feedmepos/mf-inventory-portal 1.7.9-dev.1 → 1.7.9-dev.3

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 (105) hide show
  1. package/dist/App-DownW83F.js +1434 -0
  2. package/dist/{ApprovalView-DpkYimTU.js → ApprovalView-B5amT80y.js} +9 -9
  3. package/dist/{BindingsDialog-9MteMW5_.js → BindingsDialog-CEUoxncy.js} +2 -2
  4. package/dist/{BindingsPicker-C3R1Iaci.js → BindingsPicker-Dw5JyYmq.js} +2 -2
  5. package/dist/{BindingsTable-yWS4vjmz.js → BindingsTable-dmxUVOtK.js} +4 -4
  6. package/dist/{BulkReceiveRequestView-MYLE3mXl.js → BulkReceiveRequestView-CY7UPaI2.js} +19 -19
  7. package/dist/{ChangeLocationComponent.vue_vue_type_script_setup_true_lang-DrehE0r3.js → ChangeLocationComponent.vue_vue_type_script_setup_true_lang-imaNFowE.js} +1 -1
  8. package/dist/{ClosingDraftView-BO0eUpk7.js → ClosingDraftView-DYxcWU3G.js} +19 -19
  9. package/dist/{ClosingHistoryView-1Gu4B0qB.js → ClosingHistoryView-DAb7Pchk.js} +5 -5
  10. package/dist/{ClosingTemplateView-CvAn5afN.js → ClosingTemplateView-BQT2KXP8.js} +16 -16
  11. package/dist/{CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-CwWbC1oH.js → CustomPrintTemplatePreview.vue_vue_type_script_setup_true_lang-UsXIW4vc.js} +1 -1
  12. package/dist/{DefaultView-DeXxhLsq.js → DefaultView-B9cjZltR.js} +2 -2
  13. package/dist/{DeliveryOrderPrintPreview-Bilzn1WS.js → DeliveryOrderPrintPreview-B6RRZ_xx.js} +2 -2
  14. package/dist/{EmailDialog.vue_vue_type_script_setup_true_lang-C5xp1ceO.js → EmailDialog.vue_vue_type_script_setup_true_lang-6SAcd-Lu.js} +23 -23
  15. package/dist/{FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-DL5i2-tq.js → FmDateRangePickerChip.vue_vue_type_script_setup_true_lang-BKIR8ZLY.js} +1 -1
  16. package/dist/{FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-Bq36-nnH.js → FmFilterableMenuOptions.vue_vue_type_script_setup_true_lang-CTivpMb5.js} +2 -2
  17. package/dist/{FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-D2l0nTi_.js → FmInventoryTableToolbar.vue_vue_type_script_setup_true_lang-rVm8WLNZ.js} +2 -2
  18. package/dist/{FmMultiselectDialog-CKQ1eFVZ.js → FmMultiselectDialog-Bf4g4osy.js} +2 -2
  19. package/dist/{FmMultiselectDialog-COp24wS3.js → FmMultiselectDialog-DBZYeMI9.js} +1 -1
  20. package/dist/{FmUnitInput.vue_vue_type_script_setup_true_lang-CN4ENCPZ.js → FmUnitInput.vue_vue_type_script_setup_true_lang-gf1UDVVJ.js} +6 -6
  21. package/dist/{ImportView-CB3qjhvy.js → ImportView-CvTEgn9i.js} +499 -496
  22. package/dist/{IngredientBindedItem.vue_vue_type_script_setup_true_lang-CBxUyjH8.js → IngredientBindedItem.vue_vue_type_script_setup_true_lang-C_Ro5Q3e.js} +1 -1
  23. package/dist/{IngredientGroupView-DuY6Gw5V.js → IngredientGroupView-BfQj9xKV.js} +5 -5
  24. package/dist/{IngredientsView-DxzyJE_h.js → IngredientsView-uISbT62R.js} +15 -15
  25. package/dist/{IntegrationExplorerView-Ma59NTHM.js → IntegrationExplorerView-0GXFfKHM.js} +4 -4
  26. package/dist/{IntegrationView-SBMEO_e9.js → IntegrationView-6qKc8DLs.js} +14 -14
  27. package/dist/{InventoryBindingForm-CBFJRVNH.js → InventoryBindingForm-Cg4xgKgC.js} +1 -1
  28. package/dist/{InventoryBindingForm.vue_vue_type_script_setup_true_lang-B-nEFGKA.js → InventoryBindingForm.vue_vue_type_script_setup_true_lang-B78sgTc8.js} +5 -5
  29. package/dist/{InventoryBindingSummary-c5g-35nq.js → InventoryBindingSummary-CygEJTQk.js} +1 -1
  30. package/dist/{NumberPrecisionInput.vue_vue_type_script_setup_true_lang-DEtNW2wJ.js → NumberPrecisionInput.vue_vue_type_script_setup_true_lang-B9i4xUkA.js} +1 -1
  31. package/dist/{PremiumBadge.vue_vue_type_script_setup_true_lang-BInLhmxe.js → PremiumBadge.vue_vue_type_script_setup_true_lang-IYfWAX3U.js} +1 -1
  32. package/dist/{ProductionView-BlhsrkXW.js → ProductionView-B9tfb0__.js} +7 -7
  33. package/dist/{PublishView-bMEZSiVN.js → PublishView-DSz5DFu7.js} +3 -3
  34. package/dist/{PurchaseOrderPrintPreview-HvIFszQX.js → PurchaseOrderPrintPreview-CVGcA1NI.js} +2 -2
  35. package/dist/{ReceiveRequestView-jwXYj2Wy.js → ReceiveRequestView-DweKCvrP.js} +14 -14
  36. package/dist/{RecipeView-DKd5h85n.js → RecipeView-M1iR-IGf.js} +17 -17
  37. package/dist/{SettingsView-BqELMK6p.js → SettingsView-wWaJ1hSv.js} +4 -4
  38. package/dist/{StockView-6xDfuSnV.js → StockView-RffrZC0S.js} +21 -21
  39. package/dist/{SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-CBUZIEA5.js → SubsidiaryTreeDialog.vue_vue_type_script_setup_true_lang-BC1aoZ4v.js} +1 -1
  40. package/dist/{SupplierView-BwMl9JFO.js → SupplierView-CEuRDvnA.js} +12 -12
  41. package/dist/{SurchargeView-AGXGqhxy.js → SurchargeView-CnZsFwuM.js} +6 -6
  42. package/dist/{SystemTrailDialog.vue_vue_type_script_setup_true_lang-DQSq3UGp.js → SystemTrailDialog.vue_vue_type_script_setup_true_lang-DTz--8q9.js} +2 -2
  43. package/dist/{TemplatePublishDialog.vue_vue_type_script_setup_true_lang-BBUG8N2w.js → TemplatePublishDialog.vue_vue_type_script_setup_true_lang-C5T6eC6g.js} +1 -1
  44. package/dist/{TransferDetails.vue_vue_type_script_setup_true_lang-BMrGsD-f.js → TransferDetails.vue_vue_type_script_setup_true_lang-BWzeUGhD.js} +20 -20
  45. package/dist/{TransferTemplateView-DJYXlxpw.js → TransferTemplateView-BuUv4UwP.js} +20 -20
  46. package/dist/{UnitCostHistoryView-DRgWgXhB.js → UnitCostHistoryView-JpsZaM24.js} +4 -4
  47. package/dist/{UnitDisplayControl.vue_vue_type_script_setup_true_lang-CR8a6DkX.js → UnitDisplayControl.vue_vue_type_script_setup_true_lang-Bt_Ydj8q.js} +4 -4
  48. package/dist/{UnitView-mWUCF13E.js → UnitView-CDfmfOJd.js} +7 -7
  49. package/dist/{WarehouseView-DY4_bxzS.js → WarehouseView-CZJKpVYV.js} +5 -5
  50. package/dist/{WastageTemplateView-D4YFC_zj.js → WastageTemplateView-q0-8E264.js} +14 -14
  51. package/dist/api/changelog.d.ts +69 -1
  52. package/dist/{app-DCSH6Br7.js → app-806v4udw.js} +35 -23
  53. package/dist/app.d.ts +20 -8
  54. package/dist/app.js +1 -1
  55. package/dist/{closing-template-knrmn7Jq.js → closing-template-1foridZ5.js} +1 -1
  56. package/dist/{date2-m9Qq52B4.js → date2-D9lNDN0F.js} +1 -1
  57. package/dist/{dayjs.min-BX2fRC46.js → dayjs.min-DU83C2ko.js} +1 -1
  58. package/dist/{decimal-pgdYbjfw.js → decimal-C7jB4XJl.js} +2 -2
  59. package/dist/{defineDeepModel-C5kt7Waa.js → defineDeepModel-DBtE8i8j.js} +1 -1
  60. package/dist/{duplicate-template-B74iiBzz.js → duplicate-template-C19hkOiT.js} +1 -1
  61. package/dist/{feature-CfkazbcV.js → feature-DZXUs6TN.js} +2 -2
  62. package/dist/{format-time-from-id-C1AIz8rq.js → format-time-from-id-Yeedyd8O.js} +1 -1
  63. package/dist/{format-unit-display-A-G-IaSa.js → format-unit-display-D9AGU7Yr.js} +12 -12
  64. package/dist/{import-export.helper-Dx6UODpr.js → import-export.helper-DY1Vc5tk.js} +6 -6
  65. package/dist/{index-DjKTLy_K.js → index-DBwfoE2e.js} +1 -1
  66. package/dist/{index-CiQiwzTH.js → index-DXIyCaXQ.js} +1 -1
  67. package/dist/{index-uk9CA-G3.js → index-vAc_wEUQ.js} +3 -3
  68. package/dist/{inventory-core-dart.default-CMAgxo1z.js → inventory-core-dart.default-C7P3Kz0T.js} +1 -1
  69. package/dist/{lz-string-DZI7eVks.js → lz-string-CUIRjCEm.js} +1 -1
  70. package/dist/{netsuite-CoajVOCj.js → netsuite-Dd2pky4L.js} +2 -2
  71. package/dist/{number-qzibfxtV.js → number-DTLt_eRR.js} +3 -3
  72. package/dist/{predefined-templates-Bi2KN0S0.js → predefined-templates-V6hy-60C.js} +1 -1
  73. package/dist/{purchase-order-template-q60hgvfd.js → purchase-order-template-FF9OAmuC.js} +1 -1
  74. package/dist/{recalculationUtils-ThdsSQXA.js → recalculationUtils-Cvf1yOQH.js} +1 -1
  75. package/dist/{rules-DkRl1mdI.js → rules-DhlafJxm.js} +2 -2
  76. package/dist/{stock-CDBl371n.js → stock-BmFPsc4d.js} +3 -3
  77. package/dist/{stock-CfGnNgNm.js → stock-DBxX_D-9.js} +1 -1
  78. package/dist/style.css +1 -1
  79. package/dist/{supplier-m95t74cw.js → supplier-DH-sc9h0.js} +2 -2
  80. package/dist/{surcharge-D0KNDUtM.js → surcharge-BJ1QU6ll.js} +1 -1
  81. package/dist/tsconfig.app.tsbuildinfo +1 -1
  82. package/dist/{uom-rules-DoC_viYg.js → uom-rules-B3-B6cp2.js} +1 -1
  83. package/dist/{use-ingredient-select-dialog-DUDA6jkc.js → use-ingredient-select-dialog-CK0RFvcL.js} +2 -2
  84. package/dist/{use-inventory-binding-dialog-DyZVwYRw.js → use-inventory-binding-dialog-Cp5MGmpQ.js} +2 -2
  85. package/dist/{use-template-enabled-locations-DU6ebPLW.js → use-template-enabled-locations-Cco8sx4I.js} +2 -2
  86. package/dist/{use-transfer-locations-i4WVdQfZ.js → use-transfer-locations-B3xCMiEX.js} +2 -2
  87. package/dist/{useHrmPermission-D4dofQF9.js → useHrmPermission-CqJ0E15x.js} +1 -1
  88. package/dist/{useNavigationMenu-BwZoEiX3.js → useNavigationMenu-BItQaHE7.js} +2 -2
  89. package/dist/{useSseClient-vOXEoq_d.js → useSseClient-CwVHj0zJ.js} +1 -1
  90. package/dist/views/changelog/components/ChangelogPanel.spec.d.ts +1 -0
  91. package/dist/views/changelog/components/ChangelogPanel.vue.d.ts +2 -0
  92. package/dist/views/changelog/composables/use-changelog.d.ts +56 -2
  93. package/dist/views/changelog/composables/use-changelog.spec.d.ts +1 -0
  94. package/dist/views/changelog/composables/use-inventory-record-commits.d.ts +97 -0
  95. package/dist/views/changelog/composables/use-inventory-record-commits.spec.d.ts +1 -0
  96. package/dist/views/changelog/composables/use-snapshot-diff.d.ts +29 -0
  97. package/dist/views/changelog/composables/use-snapshot-diff.spec.d.ts +1 -0
  98. package/dist/views/changelog/composables/value-tree.d.ts +14 -0
  99. package/dist/views/changelog/composables/value-tree.spec.d.ts +1 -0
  100. package/dist/views/import/helper/submit-rows.d.ts +13 -0
  101. package/dist/views/import/helper/submit-rows.spec.d.ts +1 -0
  102. package/dist/{vue-i18n-CV9ieqUG.js → vue-i18n-H3LGoV9N.js} +295 -295
  103. package/dist/{xlsx.util-CfgV0r9W.js → xlsx.util-_HpAAREu.js} +2 -2
  104. package/package.json +3 -3
  105. package/dist/App-DEdkuDaS.js +0 -1155
@@ -1,5 +1,5 @@
1
1
  import { computed as o } from "vue";
2
- import { u } from "./netsuite-CoajVOCj.js";
2
+ import { u } from "./netsuite-Dd2pky4L.js";
3
3
  function i(e) {
4
4
  const t = (n) => !!n && n.toLocaleLowerCase().includes("inactive");
5
5
  return t(e.name) || t(e.abbrev);
@@ -1,6 +1,6 @@
1
1
  import { defineStore as S } from "pinia";
2
- import { a as b } from "./app-DCSH6Br7.js";
3
- import { a as A } from "./FmMultiselectDialog-CKQ1eFVZ.js";
2
+ import { a as b } from "./app-806v4udw.js";
3
+ import { a as A } from "./FmMultiselectDialog-Bf4g4osy.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(
@@ -1,5 +1,5 @@
1
- import { a as g } from "./FmMultiselectDialog-CKQ1eFVZ.js";
2
- import { a as P } from "./app-DCSH6Br7.js";
1
+ import { a as g } from "./FmMultiselectDialog-Bf4g4osy.js";
2
+ import { a as P } from "./app-806v4udw.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-CKQ1eFVZ.js";
2
- import { u as S } from "./app-DCSH6Br7.js";
1
+ import { a as A } from "./FmMultiselectDialog-Bf4g4osy.js";
2
+ import { u as S } from "./app-806v4udw.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-DCSH6Br7.js";
2
- import { u as E } from "./supplier-m95t74cw.js";
1
+ import { u as g, r as l, V as w, Y as R } from "./app-806v4udw.js";
2
+ import { u as E } from "./supplier-DH-sc9h0.js";
3
3
  import { computed as u } from "vue";
4
4
  function d(n) {
5
5
  const c = R.safeParse(n);
@@ -1,5 +1,5 @@
1
1
  import { computed as p, toValue as o } from "vue";
2
- import { a5 as n } from "./app-DCSH6Br7.js";
2
+ import { a5 as n } from "./app-806v4udw.js";
3
3
  import { useCoreStore as c } from "@feedmepos/mf-common";
4
4
  function g(t, i = "all") {
5
5
  const m = c();
@@ -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-DCSH6Br7.js";
2
+ import { b as v, R as e, a6 as b, a7 as O, a5 as A } from "./app-806v4udw.js";
3
3
  import { useCoreStore as C, useI18n as U } from "@feedmepos/mf-common";
4
- import { u as _ } from "./feature-CfkazbcV.js";
4
+ import { u as _ } from "./feature-DZXUs6TN.js";
5
5
  const L = O.reduce(
6
6
  (o, r) => {
7
7
  var i;
@@ -1,4 +1,4 @@
1
- import { d as se } from "./app-DCSH6Br7.js";
1
+ import { d as se } from "./app-806v4udw.js";
2
2
  import { useCoreStore as ne } from "@feedmepos/mf-common";
3
3
  const re = se((e, t) => ({
4
4
  getSubscribeUrl(s, r, a) {
@@ -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,36 @@ 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
+ hasMore: import("vue").Ref<boolean, boolean>;
88
+ load: (recordId: string, limit?: number, explain?: ExplainSchema) => Promise<void>;
89
+ loadMore: () => Promise<void>;
36
90
  };
@@ -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,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,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,13 @@
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[];
@@ -0,0 +1 @@
1
+ export {};