@lionweb/validation 0.6.13-beta.2 → 0.6.13-beta.5

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 (190) hide show
  1. package/dist/index.d.ts +0 -3
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +0 -3
  4. package/dist/index.js.map +1 -1
  5. package/dist/issues/LanguageIssues.d.ts +4 -4
  6. package/dist/issues/LanguageIssues.d.ts.map +1 -1
  7. package/dist/issues/LanguageIssues.js +1 -1
  8. package/dist/issues/LanguageIssues.js.map +1 -1
  9. package/dist/issues/ReferenceIssues.d.ts +6 -6
  10. package/dist/issues/ReferenceIssues.d.ts.map +1 -1
  11. package/dist/issues/ReferenceIssues.js +3 -3
  12. package/dist/issues/ReferenceIssues.js.map +1 -1
  13. package/dist/issues/SyntaxIssues.d.ts +1 -1
  14. package/dist/issues/SyntaxIssues.d.ts.map +1 -1
  15. package/dist/issues/ValidationIssue.d.ts +1 -1
  16. package/dist/issues/ValidationIssue.d.ts.map +1 -1
  17. package/dist/issues/ValidationIssue.js.map +1 -1
  18. package/dist/issues/index.d.ts +0 -1
  19. package/dist/issues/index.d.ts.map +1 -1
  20. package/dist/issues/index.js +0 -1
  21. package/dist/issues/index.js.map +1 -1
  22. package/dist/languages/CompositeLionWebLanguageWrapper.d.ts +1 -1
  23. package/dist/languages/CompositeLionWebLanguageWrapper.d.ts.map +1 -1
  24. package/dist/languages/LanguageRegistry.d.ts +1 -1
  25. package/dist/languages/LanguageRegistry.d.ts.map +1 -1
  26. package/dist/languages/LanguageUtils.d.ts +1 -1
  27. package/dist/languages/LanguageUtils.d.ts.map +1 -1
  28. package/dist/languages/LanguageUtils.js +5 -5
  29. package/dist/languages/LanguageUtils.js.map +1 -1
  30. package/dist/languages/LionWebLanguageWrapper.d.ts +3 -3
  31. package/dist/languages/LionWebLanguageWrapper.d.ts.map +1 -1
  32. package/dist/languages/LionWebLanguageWrapper.js +2 -2
  33. package/dist/languages/LionWebLanguageWrapper.js.map +1 -1
  34. package/dist/languages/MetaPointerMap.d.ts +2 -2
  35. package/dist/languages/MetaPointerMap.d.ts.map +1 -1
  36. package/dist/languages/MetaPointerMap.js +1 -1
  37. package/dist/languages/MetaPointerMap.js.map +1 -1
  38. package/dist/runners/FileUtils.d.ts.map +1 -1
  39. package/dist/runners/FileUtils.js +1 -1
  40. package/dist/runners/FileUtils.js.map +1 -1
  41. package/dist/runners/RunCheckFolderWithLanguage.js.map +1 -1
  42. package/dist/runners/RunLioncoreDiff.js +1 -1
  43. package/dist/runners/RunLioncoreDiff.js.map +1 -1
  44. package/dist/validators/LionWebChunkDefinitions.d.ts.map +1 -1
  45. package/dist/validators/LionWebChunkDefinitions.js +1 -1
  46. package/dist/validators/LionWebChunkDefinitions.js.map +1 -1
  47. package/dist/validators/LionWebLanguageReferenceValidator.d.ts +2 -4
  48. package/dist/validators/LionWebLanguageReferenceValidator.d.ts.map +1 -1
  49. package/dist/validators/LionWebLanguageReferenceValidator.js +2 -6
  50. package/dist/validators/LionWebLanguageReferenceValidator.js.map +1 -1
  51. package/dist/validators/LionWebLanguageValidator.d.ts +2 -3
  52. package/dist/validators/LionWebLanguageValidator.d.ts.map +1 -1
  53. package/dist/validators/LionWebLanguageValidator.js +2 -4
  54. package/dist/validators/LionWebLanguageValidator.js.map +1 -1
  55. package/dist/validators/LionWebReferenceValidator.d.ts +3 -4
  56. package/dist/validators/LionWebReferenceValidator.d.ts.map +1 -1
  57. package/dist/validators/LionWebReferenceValidator.js +2 -3
  58. package/dist/validators/LionWebReferenceValidator.js.map +1 -1
  59. package/dist/validators/LionWebSyntaxValidator.d.ts.map +1 -1
  60. package/dist/validators/LionWebSyntaxValidator.js +1 -1
  61. package/dist/validators/LionWebSyntaxValidator.js.map +1 -1
  62. package/dist/validators/LionWebValidator.d.ts +1 -1
  63. package/dist/validators/LionWebValidator.d.ts.map +1 -1
  64. package/dist/validators/LionWebValidator.js +2 -2
  65. package/dist/validators/LionWebValidator.js.map +1 -1
  66. package/dist/validators/ValidationFunctions.d.ts +5 -1
  67. package/dist/validators/ValidationFunctions.d.ts.map +1 -1
  68. package/dist/validators/ValidationFunctions.js +0 -4
  69. package/dist/validators/ValidationFunctions.js.map +1 -1
  70. package/dist/validators/generic/SyntaxValidator.d.ts +1 -1
  71. package/dist/validators/generic/SyntaxValidator.d.ts.map +1 -1
  72. package/dist/validators/generic/SyntaxValidator.js +1 -1
  73. package/dist/validators/generic/SyntaxValidator.js.map +1 -1
  74. package/dist/validators/generic/ValidationTypes.d.ts +1 -1
  75. package/dist/validators/generic/ValidationTypes.d.ts.map +1 -1
  76. package/dist/validators/generic/ValidationTypes.js.map +1 -1
  77. package/package.json +6 -1
  78. package/src/index.ts +0 -3
  79. package/src/issues/LanguageIssues.ts +12 -14
  80. package/src/issues/ReferenceIssues.ts +9 -9
  81. package/src/issues/SyntaxIssues.ts +5 -5
  82. package/src/issues/ValidationIssue.ts +7 -4
  83. package/src/issues/index.ts +0 -1
  84. package/src/languages/CompositeLionWebLanguageWrapper.ts +1 -1
  85. package/src/languages/LanguageRegistry.ts +1 -1
  86. package/src/languages/LanguageUtils.ts +6 -6
  87. package/src/languages/LionWebLanguageWrapper.ts +5 -9
  88. package/src/languages/MetaPointerMap.ts +7 -6
  89. package/src/runners/FileUtils.ts +1 -1
  90. package/src/runners/RunCheckFolderWithLanguage.ts +1 -1
  91. package/src/runners/RunLioncoreDiff.ts +2 -2
  92. package/src/validators/LionWebChunkDefinitions.ts +1 -6
  93. package/src/validators/LionWebLanguageReferenceValidator.ts +17 -20
  94. package/src/validators/LionWebLanguageValidator.ts +2 -4
  95. package/src/validators/LionWebReferenceValidator.ts +6 -14
  96. package/src/validators/LionWebSyntaxValidator.ts +1 -1
  97. package/src/validators/LionWebValidator.ts +3 -3
  98. package/src/validators/ValidationFunctions.ts +1 -1
  99. package/src/validators/generic/SyntaxValidator.ts +1 -1
  100. package/src/validators/generic/ValidationTypes.ts +4 -5
  101. package/dist/diff/DiffResult.d.ts +0 -9
  102. package/dist/diff/DiffResult.d.ts.map +0 -1
  103. package/dist/diff/DiffResult.js +0 -18
  104. package/dist/diff/DiffResult.js.map +0 -1
  105. package/dist/diff/LionWebJsonDiff.d.ts +0 -25
  106. package/dist/diff/LionWebJsonDiff.d.ts.map +0 -1
  107. package/dist/diff/LionWebJsonDiff.js +0 -249
  108. package/dist/diff/LionWebJsonDiff.js.map +0 -1
  109. package/dist/diff/changes/Change.d.ts +0 -34
  110. package/dist/diff/changes/Change.d.ts.map +0 -1
  111. package/dist/diff/changes/Change.js +0 -38
  112. package/dist/diff/changes/Change.js.map +0 -1
  113. package/dist/diff/changes/ChunkChange.d.ts +0 -43
  114. package/dist/diff/changes/ChunkChange.d.ts.map +0 -1
  115. package/dist/diff/changes/ChunkChange.js +0 -57
  116. package/dist/diff/changes/ChunkChange.js.map +0 -1
  117. package/dist/diff/changes/ContainmentChange.d.ts +0 -25
  118. package/dist/diff/changes/ContainmentChange.d.ts.map +0 -1
  119. package/dist/diff/changes/ContainmentChange.js +0 -34
  120. package/dist/diff/changes/ContainmentChange.js.map +0 -1
  121. package/dist/diff/changes/NodeChange.d.ts +0 -41
  122. package/dist/diff/changes/NodeChange.d.ts.map +0 -1
  123. package/dist/diff/changes/NodeChange.js +0 -54
  124. package/dist/diff/changes/NodeChange.js.map +0 -1
  125. package/dist/diff/changes/PropertyChange.d.ts +0 -24
  126. package/dist/diff/changes/PropertyChange.d.ts.map +0 -1
  127. package/dist/diff/changes/PropertyChange.js +0 -29
  128. package/dist/diff/changes/PropertyChange.js.map +0 -1
  129. package/dist/diff/changes/ReferenceChange.d.ts +0 -25
  130. package/dist/diff/changes/ReferenceChange.d.ts.map +0 -1
  131. package/dist/diff/changes/ReferenceChange.js +0 -34
  132. package/dist/diff/changes/ReferenceChange.js.map +0 -1
  133. package/dist/diff/changes/index.d.ts +0 -7
  134. package/dist/diff/changes/index.d.ts.map +0 -1
  135. package/dist/diff/changes/index.js +0 -7
  136. package/dist/diff/changes/index.js.map +0 -1
  137. package/dist/diff/index.d.ts +0 -4
  138. package/dist/diff/index.d.ts.map +0 -1
  139. package/dist/diff/index.js +0 -4
  140. package/dist/diff/index.js.map +0 -1
  141. package/dist/json/ChunkUtils.d.ts +0 -26
  142. package/dist/json/ChunkUtils.d.ts.map +0 -1
  143. package/dist/json/ChunkUtils.js +0 -46
  144. package/dist/json/ChunkUtils.js.map +0 -1
  145. package/dist/json/JsonContext.d.ts +0 -11
  146. package/dist/json/JsonContext.d.ts.map +0 -1
  147. package/dist/json/JsonContext.js +0 -25
  148. package/dist/json/JsonContext.js.map +0 -1
  149. package/dist/json/LionWebJson.d.ts +0 -50
  150. package/dist/json/LionWebJson.d.ts.map +0 -1
  151. package/dist/json/LionWebJson.js +0 -27
  152. package/dist/json/LionWebJson.js.map +0 -1
  153. package/dist/json/LionWebJsonChunkWrapper.d.ts +0 -39
  154. package/dist/json/LionWebJsonChunkWrapper.d.ts.map +0 -1
  155. package/dist/json/LionWebJsonChunkWrapper.js +0 -119
  156. package/dist/json/LionWebJsonChunkWrapper.js.map +0 -1
  157. package/dist/json/M3definitions.d.ts +0 -176
  158. package/dist/json/M3definitions.d.ts.map +0 -1
  159. package/dist/json/M3definitions.js +0 -174
  160. package/dist/json/M3definitions.js.map +0 -1
  161. package/dist/json/NodeUtils.d.ts +0 -23
  162. package/dist/json/NodeUtils.d.ts.map +0 -1
  163. package/dist/json/NodeUtils.js +0 -57
  164. package/dist/json/NodeUtils.js.map +0 -1
  165. package/dist/json/index.d.ts +0 -7
  166. package/dist/json/index.d.ts.map +0 -1
  167. package/dist/json/index.js +0 -7
  168. package/dist/json/index.js.map +0 -1
  169. package/dist/util/graphs.d.ts +0 -18
  170. package/dist/util/graphs.d.ts.map +0 -1
  171. package/dist/util/graphs.js +0 -27
  172. package/dist/util/graphs.js.map +0 -1
  173. package/src/diff/DiffResult.ts +0 -21
  174. package/src/diff/LionWebJsonDiff.ts +0 -309
  175. package/src/diff/changes/Change.ts +0 -76
  176. package/src/diff/changes/ChunkChange.ts +0 -68
  177. package/src/diff/changes/ContainmentChange.ts +0 -32
  178. package/src/diff/changes/NodeChange.ts +0 -63
  179. package/src/diff/changes/PropertyChange.ts +0 -31
  180. package/src/diff/changes/ReferenceChange.ts +0 -34
  181. package/src/diff/changes/index.ts +0 -6
  182. package/src/diff/index.ts +0 -3
  183. package/src/json/ChunkUtils.ts +0 -49
  184. package/src/json/JsonContext.ts +0 -31
  185. package/src/json/LionWebJson.ts +0 -80
  186. package/src/json/LionWebJsonChunkWrapper.ts +0 -136
  187. package/src/json/M3definitions.ts +0 -177
  188. package/src/json/NodeUtils.ts +0 -75
  189. package/src/json/index.ts +0 -6
  190. package/src/util/graphs.ts +0 -36
@@ -1,34 +0,0 @@
1
- import { JsonContext } from "../../issues/index.js";
2
- export type ChangeType = "GenericChange" | "NodeRemoved" | "NodeAdded" | "ChildRemoved" | "ChildAdded" | "ParentChanged" | "PropertyValueChanged" | "SerializationFormatChange" | "PropertyRemoved" | "PropertyAdded" | "NodeClassifierChanged" | "ContainmentAdded" | "ContainmentRemoved" | "LanguageRemoved" | "LanguageAdded" | "TargetAdded" | "TargetRemoved" | "ReferenceRemoved" | "ReferenceAdded" | "AnnotationRemoved" | "AnnotationAdded" | "ChildOrderChanged" | "AnnotationOrderChanged" | "TargetOrderChanged";
3
- /**
4
- * Additionbal property in property, contauinment and reference changes to state
5
- * that the whole property/ containment / reference definition is missing.
6
- */
7
- export declare enum Missing {
8
- /**
9
- * Both before and after have a definition for the property / containment / reference
10
- */
11
- NotMissing = 0,
12
- /**
13
- * The definition is missing _before_ for the property / containment / reference
14
- */
15
- MissingBefore = 1,
16
- /**
17
- * The definition is missing _after_ for the property / containment / reference
18
- */
19
- MissingAfter = 2
20
- }
21
- export declare abstract class Change {
22
- abstract readonly changeType: ChangeType;
23
- context: JsonContext;
24
- constructor(context: JsonContext);
25
- protected abstract msg(): string;
26
- changeMsg(): string;
27
- }
28
- export declare class GenericChange extends Change {
29
- protected message: string;
30
- readonly changeType = "GenericChange";
31
- constructor(context: JsonContext, message: string);
32
- protected msg(): string;
33
- }
34
- //# sourceMappingURL=Change.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Change.d.ts","sourceRoot":"","sources":["../../../src/diff/changes/Change.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,MAAM,MAAM,UAAU,GAChB,eAAe,GACf,aAAa,GACb,WAAW,GACX,cAAc,GACd,YAAY,GACZ,eAAe,GACf,sBAAsB,GACtB,2BAA2B,GAC3B,iBAAiB,GACjB,eAAe,GACf,uBAAuB,GACvB,kBAAkB,GAClB,oBAAoB,GACpB,iBAAiB,GACjB,eAAe,GACf,aAAa,GACb,eAAe,GACf,kBAAkB,GAClB,gBAAgB,GAChB,mBAAmB,GACnB,iBAAiB,GACjB,mBAAmB,GACnB,wBAAwB,GACxB,oBAAoB,CAAA;AAE1B;;;GAGG;AACH,oBAAY,OAAO;IACf;;OAEG;IACH,UAAU,IAAA;IACV;;OAEG;IACH,aAAa,IAAA;IACb;;OAEG;IACH,YAAY,IAAA;CACf;AAED,8BAAsB,MAAM;IACxB,QAAQ,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAA;IACxC,OAAO,EAAE,WAAW,CAAA;gBAER,OAAO,EAAE,WAAW;IAIhC,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,MAAM;IAEzB,SAAS,IAAI,MAAM;CAG7B;AAED,qBAAa,aAAc,SAAQ,MAAM;IAKjC,SAAS,CAAC,OAAO,EAAE,MAAM;IAJ7B,QAAQ,CAAC,UAAU,mBAAkB;gBAGjC,OAAO,EAAE,WAAW,EACV,OAAO,EAAE,MAAM;IAK7B,SAAS,CAAC,GAAG,IAAI,MAAM;CAG1B"}
@@ -1,38 +0,0 @@
1
- /**
2
- * Additionbal property in property, contauinment and reference changes to state
3
- * that the whole property/ containment / reference definition is missing.
4
- */
5
- export var Missing;
6
- (function (Missing) {
7
- /**
8
- * Both before and after have a definition for the property / containment / reference
9
- */
10
- Missing[Missing["NotMissing"] = 0] = "NotMissing";
11
- /**
12
- * The definition is missing _before_ for the property / containment / reference
13
- */
14
- Missing[Missing["MissingBefore"] = 1] = "MissingBefore";
15
- /**
16
- * The definition is missing _after_ for the property / containment / reference
17
- */
18
- Missing[Missing["MissingAfter"] = 2] = "MissingAfter";
19
- })(Missing || (Missing = {}));
20
- export class Change {
21
- constructor(context) {
22
- this.context = context;
23
- }
24
- changeMsg() {
25
- return `${this.changeType}: ${this.msg()} at ${this.context.toString()} `;
26
- }
27
- }
28
- export class GenericChange extends Change {
29
- constructor(context, message) {
30
- super(context);
31
- this.message = message;
32
- this.changeType = "GenericChange";
33
- }
34
- msg() {
35
- return this.message;
36
- }
37
- }
38
- //# sourceMappingURL=Change.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Change.js","sourceRoot":"","sources":["../../../src/diff/changes/Change.ts"],"names":[],"mappings":"AA4BA;;;GAGG;AACH,MAAM,CAAN,IAAY,OAaX;AAbD,WAAY,OAAO;IACf;;OAEG;IACH,iDAAU,CAAA;IACV;;OAEG;IACH,uDAAa,CAAA;IACb;;OAEG;IACH,qDAAY,CAAA;AAChB,CAAC,EAbW,OAAO,KAAP,OAAO,QAalB;AAED,MAAM,OAAgB,MAAM;IAIxB,YAAY,OAAoB;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAA;IAC1B,CAAC;IAIM,SAAS;QACZ,OAAO,GAAG,IAAI,CAAC,UAAU,KAAK,IAAI,CAAC,GAAG,EAAE,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,GAAG,CAAA;IAC7E,CAAC;CACJ;AAED,MAAM,OAAO,aAAc,SAAQ,MAAM;IAGrC,YACI,OAAoB,EACV,OAAe;QAEzB,KAAK,CAAC,OAAO,CAAC,CAAA;QAFJ,YAAO,GAAP,OAAO,CAAQ;QAJpB,eAAU,GAAG,eAAe,CAAA;IAOrC,CAAC;IAES,GAAG;QACT,OAAO,IAAI,CAAC,OAAO,CAAA;IACvB,CAAC;CACJ"}
@@ -1,43 +0,0 @@
1
- import { JsonContext } from "../../issues/index.js";
2
- import { LionWebJsonNode, LwJsonUsedLanguage } from "../../json/index.js";
3
- import { Change } from "./Change.js";
4
- export declare abstract class ChunkChange extends Change {
5
- context: JsonContext;
6
- constructor(context: JsonContext);
7
- }
8
- export declare class SerializationFormatChange extends ChunkChange {
9
- context: JsonContext;
10
- protected original: string;
11
- protected newValue: string;
12
- readonly changeType = "SerializationFormatChange";
13
- constructor(context: JsonContext, original: string, newValue: string);
14
- protected msg: () => string;
15
- }
16
- export declare class NodeRemoved extends ChunkChange {
17
- context: JsonContext;
18
- node: LionWebJsonNode;
19
- readonly changeType = "NodeRemoved";
20
- constructor(context: JsonContext, node: LionWebJsonNode);
21
- protected msg: () => string;
22
- }
23
- export declare class NodeAdded extends ChunkChange {
24
- context: JsonContext;
25
- node: LionWebJsonNode;
26
- readonly changeType = "NodeAdded";
27
- constructor(context: JsonContext, node: LionWebJsonNode);
28
- protected msg: () => string;
29
- }
30
- export declare abstract class LanguageChange extends ChunkChange {
31
- context: JsonContext;
32
- language: LwJsonUsedLanguage;
33
- constructor(context: JsonContext, language: LwJsonUsedLanguage);
34
- }
35
- export declare class LanguageRemoved extends LanguageChange {
36
- readonly changeType = "LanguageRemoved";
37
- protected msg: () => string;
38
- }
39
- export declare class LanguageAdded extends LanguageChange {
40
- readonly changeType = "LanguageAdded";
41
- protected msg: () => string;
42
- }
43
- //# sourceMappingURL=ChunkChange.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChunkChange.d.ts","sourceRoot":"","sources":["../../../src/diff/changes/ChunkChange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAA;AACzE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,8BAAsB,WAAY,SAAQ,MAAM;IACzB,OAAO,EAAE,WAAW;gBAApB,OAAO,EAAE,WAAW;CAG1C;AAED,qBAAa,yBAA0B,SAAQ,WAAW;IAI3C,OAAO,EAAE,WAAW;IAC3B,SAAS,CAAC,QAAQ,EAAE,MAAM;IAC1B,SAAS,CAAC,QAAQ,EAAE,MAAM;IAL9B,QAAQ,CAAC,UAAU,+BAA8B;gBAGtC,OAAO,EAAE,WAAW,EACjB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM;IAK9B,SAAS,CAAC,GAAG,eAAoF;CACpG;AAED,qBAAa,WAAY,SAAQ,WAAW;IAI7B,OAAO,EAAE,WAAW;IACpB,IAAI,EAAE,eAAe;IAJhC,QAAQ,CAAC,UAAU,iBAAgB;gBAGxB,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,eAAe;IAKhC,SAAS,CAAC,GAAG,eAA0C;CAC1D;AAED,qBAAa,SAAU,SAAQ,WAAW;IAI3B,OAAO,EAAE,WAAW;IACpB,IAAI,EAAE,eAAe;IAJhC,QAAQ,CAAC,UAAU,eAAc;gBAGtB,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,eAAe;IAKhC,SAAS,CAAC,GAAG,eAAwC;CACxD;AAED,8BAAsB,cAAe,SAAQ,WAAW;IAEzC,OAAO,EAAE,WAAW;IACpB,QAAQ,EAAE,kBAAkB;gBAD5B,OAAO,EAAE,WAAW,EACpB,QAAQ,EAAE,kBAAkB;CAI1C;AAED,qBAAa,eAAgB,SAAQ,cAAc;IAC/C,QAAQ,CAAC,UAAU,qBAAoB;IACvC,SAAS,CAAC,GAAG,eAAkG;CAClH;AAED,qBAAa,aAAc,SAAQ,cAAc;IAC7C,QAAQ,CAAC,UAAU,mBAAkB;IACrC,SAAS,CAAC,GAAG,eAAgG;CAChH"}
@@ -1,57 +0,0 @@
1
- import { Change } from "./Change.js";
2
- export class ChunkChange extends Change {
3
- constructor(context) {
4
- super(context);
5
- this.context = context;
6
- }
7
- }
8
- export class SerializationFormatChange extends ChunkChange {
9
- constructor(context, original, newValue) {
10
- super(context);
11
- this.context = context;
12
- this.original = original;
13
- this.newValue = newValue;
14
- this.changeType = "SerializationFormatChange";
15
- this.msg = () => `Serialization versions do not match: ${this.original} vs ${this.newValue}`;
16
- }
17
- }
18
- export class NodeRemoved extends ChunkChange {
19
- constructor(context, node) {
20
- super(context);
21
- this.context = context;
22
- this.node = node;
23
- this.changeType = "NodeRemoved";
24
- this.msg = () => `Node ${this.node.id} is removed`;
25
- }
26
- }
27
- export class NodeAdded extends ChunkChange {
28
- constructor(context, node) {
29
- super(context);
30
- this.context = context;
31
- this.node = node;
32
- this.changeType = "NodeAdded";
33
- this.msg = () => `Node ${this.node.id} is added`;
34
- }
35
- }
36
- export class LanguageChange extends ChunkChange {
37
- constructor(context, language) {
38
- super(context);
39
- this.context = context;
40
- this.language = language;
41
- }
42
- }
43
- export class LanguageRemoved extends LanguageChange {
44
- constructor() {
45
- super(...arguments);
46
- this.changeType = "LanguageRemoved";
47
- this.msg = () => `Language with key ${this.language.key} and version ${this.language.version} is removed`;
48
- }
49
- }
50
- export class LanguageAdded extends LanguageChange {
51
- constructor() {
52
- super(...arguments);
53
- this.changeType = "LanguageAdded";
54
- this.msg = () => `Language with key ${this.language.key} and version ${this.language.version} is added`;
55
- }
56
- }
57
- //# sourceMappingURL=ChunkChange.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChunkChange.js","sourceRoot":"","sources":["../../../src/diff/changes/ChunkChange.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AAEpC,MAAM,OAAgB,WAAY,SAAQ,MAAM;IAC5C,YAAmB,OAAoB;QACnC,KAAK,CAAC,OAAO,CAAC,CAAA;QADC,YAAO,GAAP,OAAO,CAAa;IAEvC,CAAC;CACJ;AAED,MAAM,OAAO,yBAA0B,SAAQ,WAAW;IAGtD,YACW,OAAoB,EACjB,QAAgB,EAChB,QAAgB;QAE1B,KAAK,CAAC,OAAO,CAAC,CAAA;QAJP,YAAO,GAAP,OAAO,CAAa;QACjB,aAAQ,GAAR,QAAQ,CAAQ;QAChB,aAAQ,GAAR,QAAQ,CAAQ;QALrB,eAAU,GAAG,2BAA2B,CAAA;QAUvC,QAAG,GAAG,GAAG,EAAE,CAAC,wCAAwC,IAAI,CAAC,QAAQ,OAAO,IAAI,CAAC,QAAQ,EAAE,CAAA;IAFjG,CAAC;CAGJ;AAED,MAAM,OAAO,WAAY,SAAQ,WAAW;IAGxC,YACW,OAAoB,EACpB,IAAqB;QAE5B,KAAK,CAAC,OAAO,CAAC,CAAA;QAHP,YAAO,GAAP,OAAO,CAAa;QACpB,SAAI,GAAJ,IAAI,CAAiB;QAJvB,eAAU,GAAG,aAAa,CAAA;QASzB,QAAG,GAAG,GAAG,EAAE,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,EAAE,aAAa,CAAA;IAFvD,CAAC;CAGJ;AAED,MAAM,OAAO,SAAU,SAAQ,WAAW;IAGtC,YACW,OAAoB,EACpB,IAAqB;QAE5B,KAAK,CAAC,OAAO,CAAC,CAAA;QAHP,YAAO,GAAP,OAAO,CAAa;QACpB,SAAI,GAAJ,IAAI,CAAiB;QAJvB,eAAU,GAAG,WAAW,CAAA;QASvB,QAAG,GAAG,GAAG,EAAE,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,EAAE,WAAW,CAAA;IAFrD,CAAC;CAGJ;AAED,MAAM,OAAgB,cAAe,SAAQ,WAAW;IACpD,YACW,OAAoB,EACpB,QAA4B;QAEnC,KAAK,CAAC,OAAO,CAAC,CAAA;QAHP,YAAO,GAAP,OAAO,CAAa;QACpB,aAAQ,GAAR,QAAQ,CAAoB;IAGvC,CAAC;CACJ;AAED,MAAM,OAAO,eAAgB,SAAQ,cAAc;IAAnD;;QACa,eAAU,GAAG,iBAAiB,CAAA;QAC7B,QAAG,GAAG,GAAG,EAAE,CAAC,sBAAsB,IAAI,CAAC,QAAQ,CAAC,GAAG,gBAAgB,IAAI,CAAC,QAAQ,CAAC,OAAO,aAAa,CAAA;IACnH,CAAC;CAAA;AAED,MAAM,OAAO,aAAc,SAAQ,cAAc;IAAjD;;QACa,eAAU,GAAG,eAAe,CAAA;QAC3B,QAAG,GAAG,GAAG,EAAE,CAAC,sBAAsB,IAAI,CAAC,QAAQ,CAAC,GAAG,gBAAgB,IAAI,CAAC,QAAQ,CAAC,OAAO,WAAW,CAAA;IACjH,CAAC;CAAA"}
@@ -1,25 +0,0 @@
1
- import { JsonContext } from "../../issues/index.js";
2
- import { LionWebJsonContainment, LionWebJsonMetaPointer, LionWebJsonNode } from "../../json/index.js";
3
- import { Change, Missing } from "./Change.js";
4
- export declare abstract class ContainmentChange extends Change {
5
- context: JsonContext;
6
- parentNode: LionWebJsonNode;
7
- containment: LionWebJsonMetaPointer;
8
- afterContainment: LionWebJsonContainment | undefined;
9
- childId: string;
10
- missing: Missing;
11
- constructor(context: JsonContext, parentNode: LionWebJsonNode, containment: LionWebJsonMetaPointer, afterContainment: LionWebJsonContainment | undefined, childId: string, missing?: Missing);
12
- }
13
- export declare class ChildAdded extends ContainmentChange {
14
- readonly changeType = "ChildAdded";
15
- protected msg: () => string;
16
- }
17
- export declare class ChildRemoved extends ContainmentChange {
18
- readonly changeType = "ChildRemoved";
19
- protected msg: () => string;
20
- }
21
- export declare class ChildOrderChanged extends ContainmentChange {
22
- readonly changeType = "ChildOrderChanged";
23
- protected msg: () => string;
24
- }
25
- //# sourceMappingURL=ContainmentChange.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContainmentChange.d.ts","sourceRoot":"","sources":["../../../src/diff/changes/ContainmentChange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE7C,8BAAsB,iBAAkB,SAAQ,MAAM;IAEvC,OAAO,EAAE,WAAW;IACpB,UAAU,EAAE,eAAe;IAC3B,WAAW,EAAE,sBAAsB;IACnC,gBAAgB,EAAE,sBAAsB,GAAG,SAAS;IACpD,OAAO,EAAE,MAAM;IACf,OAAO;gBALP,OAAO,EAAE,WAAW,EACpB,UAAU,EAAE,eAAe,EAC3B,WAAW,EAAE,sBAAsB,EACnC,gBAAgB,EAAE,sBAAsB,GAAG,SAAS,EACpD,OAAO,EAAE,MAAM,EACf,OAAO,UAAqB;CAI1C;AAED,qBAAa,UAAW,SAAQ,iBAAiB;IAC7C,QAAQ,CAAC,UAAU,gBAAe;IAClC,SAAS,CAAC,GAAG,eAA4G;CAC5H;AAED,qBAAa,YAAa,SAAQ,iBAAiB;IAC/C,QAAQ,CAAC,UAAU,kBAAiB;IACpC,SAAS,CAAC,GAAG,eAAkH;CAClI;AAED,qBAAa,iBAAkB,SAAQ,iBAAiB;IACpD,QAAQ,CAAC,UAAU,uBAAsB;IACzC,SAAS,CAAC,GAAG,eAA0G;CAC1H"}
@@ -1,34 +0,0 @@
1
- import { Change, Missing } from "./Change.js";
2
- export class ContainmentChange extends Change {
3
- constructor(context, parentNode, containment, afterContainment, childId, missing = Missing.NotMissing) {
4
- super(context);
5
- this.context = context;
6
- this.parentNode = parentNode;
7
- this.containment = containment;
8
- this.afterContainment = afterContainment;
9
- this.childId = childId;
10
- this.missing = missing;
11
- }
12
- }
13
- export class ChildAdded extends ContainmentChange {
14
- constructor() {
15
- super(...arguments);
16
- this.changeType = "ChildAdded";
17
- this.msg = () => `Node "${this.parentNode.id}" added child "${this.childId}" to containment ${this.containment.key}`;
18
- }
19
- }
20
- export class ChildRemoved extends ContainmentChange {
21
- constructor() {
22
- super(...arguments);
23
- this.changeType = "ChildRemoved";
24
- this.msg = () => `Node "${this.parentNode.id}" removed child "${this.childId}" from containment "${this.containment.key}"`;
25
- }
26
- }
27
- export class ChildOrderChanged extends ContainmentChange {
28
- constructor() {
29
- super(...arguments);
30
- this.changeType = "ChildOrderChanged";
31
- this.msg = () => `Node "${this.parentNode.id}" changed order of children in containment "${this.containment.key}"`;
32
- }
33
- }
34
- //# sourceMappingURL=ContainmentChange.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContainmentChange.js","sourceRoot":"","sources":["../../../src/diff/changes/ContainmentChange.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,OAAgB,iBAAkB,SAAQ,MAAM;IAClD,YACW,OAAoB,EACpB,UAA2B,EAC3B,WAAmC,EACnC,gBAAoD,EACpD,OAAe,EACf,UAAU,OAAO,CAAC,UAAU;QAEnC,KAAK,CAAC,OAAO,CAAC,CAAA;QAPP,YAAO,GAAP,OAAO,CAAa;QACpB,eAAU,GAAV,UAAU,CAAiB;QAC3B,gBAAW,GAAX,WAAW,CAAwB;QACnC,qBAAgB,GAAhB,gBAAgB,CAAoC;QACpD,YAAO,GAAP,OAAO,CAAQ;QACf,YAAO,GAAP,OAAO,CAAqB;IAGvC,CAAC;CACJ;AAED,MAAM,OAAO,UAAW,SAAQ,iBAAiB;IAAjD;;QACa,eAAU,GAAG,YAAY,CAAA;QACxB,QAAG,GAAG,GAAG,EAAE,CAAC,SAAS,IAAI,CAAC,UAAU,CAAC,EAAE,kBAAkB,IAAI,CAAC,OAAO,oBAAoB,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE,CAAA;IAC7H,CAAC;CAAA;AAED,MAAM,OAAO,YAAa,SAAQ,iBAAiB;IAAnD;;QACa,eAAU,GAAG,cAAc,CAAA;QAC1B,QAAG,GAAG,GAAG,EAAE,CAAC,SAAS,IAAI,CAAC,UAAU,CAAC,EAAE,oBAAoB,IAAI,CAAC,OAAO,uBAAuB,IAAI,CAAC,WAAW,CAAC,GAAG,GAAG,CAAA;IACnI,CAAC;CAAA;AAED,MAAM,OAAO,iBAAkB,SAAQ,iBAAiB;IAAxD;;QACa,eAAU,GAAG,mBAAmB,CAAA;QAC/B,QAAG,GAAG,GAAG,EAAE,CAAC,SAAS,IAAI,CAAC,UAAU,CAAC,EAAE,+CAA+C,IAAI,CAAC,WAAW,CAAC,GAAG,GAAG,CAAA;IAC3H,CAAC;CAAA"}
@@ -1,41 +0,0 @@
1
- import { JsonContext } from "../../issues/index.js";
2
- import { LionWebJsonMetaPointer, LionWebJsonNode } from "../../json/index.js";
3
- import { Change, ChangeType } from "./Change.js";
4
- export declare class NodeClassifierChanged extends Change {
5
- context: JsonContext;
6
- node: LionWebJsonNode;
7
- oldClassifier: LionWebJsonMetaPointer;
8
- newClassifier: LionWebJsonMetaPointer;
9
- readonly changeType: ChangeType;
10
- constructor(context: JsonContext, node: LionWebJsonNode, oldClassifier: LionWebJsonMetaPointer, newClassifier: LionWebJsonMetaPointer);
11
- protected msg: () => string;
12
- }
13
- export declare class ParentChanged extends Change {
14
- context: JsonContext;
15
- node: LionWebJsonNode;
16
- beforeParentId: string | null;
17
- afterParentId: string | null;
18
- readonly changeType = "ParentChanged";
19
- constructor(context: JsonContext, node: LionWebJsonNode, beforeParentId: string | null, afterParentId: string | null);
20
- protected msg: () => string;
21
- }
22
- export declare abstract class AnnotationChange extends Change {
23
- nodeBefore: LionWebJsonNode;
24
- nodeAfter: LionWebJsonNode;
25
- annotationId: string;
26
- index: number;
27
- constructor(ctx: JsonContext, nodeBefore: LionWebJsonNode, nodeAfter: LionWebJsonNode, annotationId: string, index: number);
28
- }
29
- export declare class AnnotationRemoved extends AnnotationChange {
30
- readonly changeType = "AnnotationRemoved";
31
- protected msg: () => string;
32
- }
33
- export declare class AnnotationAdded extends AnnotationChange {
34
- readonly changeType = "AnnotationAdded";
35
- protected msg: () => string;
36
- }
37
- export declare class AnnotationOrderChanged extends AnnotationChange {
38
- readonly changeType = "AnnotationOrderChanged";
39
- protected msg: () => string;
40
- }
41
- //# sourceMappingURL=NodeChange.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NodeChange.d.ts","sourceRoot":"","sources":["../../../src/diff/changes/NodeChange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC7E,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAEhD,qBAAa,qBAAsB,SAAQ,MAAM;IAIlC,OAAO,EAAE,WAAW;IACpB,IAAI,EAAE,eAAe;IACrB,aAAa,EAAE,sBAAsB;IACrC,aAAa,EAAE,sBAAsB;IANhD,QAAQ,CAAC,UAAU,EAAE,UAAU,CAA0B;gBAG9C,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,eAAe,EACrB,aAAa,EAAE,sBAAsB,EACrC,aAAa,EAAE,sBAAsB;IAKhD,SAAS,CAAC,GAAG,eAAoH;CACpI;AAED,qBAAa,aAAc,SAAQ,MAAM;IAI1B,OAAO,EAAE,WAAW;IACpB,IAAI,EAAE,eAAe;IACrB,cAAc,EAAE,MAAM,GAAG,IAAI;IAC7B,aAAa,EAAE,MAAM,GAAG,IAAI;IANvC,QAAQ,CAAC,UAAU,mBAAkB;gBAG1B,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,eAAe,EACrB,cAAc,EAAE,MAAM,GAAG,IAAI,EAC7B,aAAa,EAAE,MAAM,GAAG,IAAI;IAKvC,SAAS,CAAC,GAAG,eAAwG;CACxH;AAED,8BAAsB,gBAAiB,SAAQ,MAAM;IAGtC,UAAU,EAAE,eAAe;IAC3B,SAAS,EAAE,eAAe;IAC1B,YAAY,EAAE,MAAM;IACpB,KAAK,EAAE,MAAM;gBAJpB,GAAG,EAAE,WAAW,EACT,UAAU,EAAE,eAAe,EAC3B,SAAS,EAAE,eAAe,EAC1B,YAAY,EAAE,MAAM,EACpB,KAAK,EAAE,MAAM;CAI3B;AAED,qBAAa,iBAAkB,SAAQ,gBAAgB;IACnD,QAAQ,CAAC,UAAU,uBAAsB;IAEzC,SAAS,CAAC,GAAG,eAAiF;CACjG;AAED,qBAAa,eAAgB,SAAQ,gBAAgB;IACjD,QAAQ,CAAC,UAAU,qBAAoB;IAEvC,SAAS,CAAC,GAAG,eAA8E;CAC9F;AAGD,qBAAa,sBAAuB,SAAQ,gBAAgB;IACxD,QAAQ,CAAC,UAAU,4BAA2B;IAC9C,SAAS,CAAC,GAAG,eAAmE;CACnF"}
@@ -1,54 +0,0 @@
1
- import { Change } from "./Change.js";
2
- export class NodeClassifierChanged extends Change {
3
- constructor(context, node, oldClassifier, newClassifier) {
4
- super(context);
5
- this.context = context;
6
- this.node = node;
7
- this.oldClassifier = oldClassifier;
8
- this.newClassifier = newClassifier;
9
- this.changeType = "NodeClassifierChanged";
10
- this.msg = () => `Object ${this.node.id} has classifier changed from ${this.oldClassifier.key} to ${this.newClassifier.key}`;
11
- }
12
- }
13
- export class ParentChanged extends Change {
14
- constructor(context, node, beforeParentId, afterParentId) {
15
- super(context);
16
- this.context = context;
17
- this.node = node;
18
- this.beforeParentId = beforeParentId;
19
- this.afterParentId = afterParentId;
20
- this.changeType = "ParentChanged";
21
- this.msg = () => `Node "${this.node.id}" changed parent from "${this.beforeParentId}" to "${this.afterParentId}`;
22
- }
23
- }
24
- export class AnnotationChange extends Change {
25
- constructor(ctx, nodeBefore, nodeAfter, annotationId, index) {
26
- super(ctx);
27
- this.nodeBefore = nodeBefore;
28
- this.nodeAfter = nodeAfter;
29
- this.annotationId = annotationId;
30
- this.index = index;
31
- }
32
- }
33
- export class AnnotationRemoved extends AnnotationChange {
34
- constructor() {
35
- super(...arguments);
36
- this.changeType = "AnnotationRemoved";
37
- this.msg = () => `Node "${this.nodeBefore.id}" removed annotation "${this.annotationId}"`;
38
- }
39
- }
40
- export class AnnotationAdded extends AnnotationChange {
41
- constructor() {
42
- super(...arguments);
43
- this.changeType = "AnnotationAdded";
44
- this.msg = () => `Node "${this.nodeAfter.id}" added annotation "${this.annotationId}"`;
45
- }
46
- }
47
- export class AnnotationOrderChanged extends AnnotationChange {
48
- constructor() {
49
- super(...arguments);
50
- this.changeType = "AnnotationOrderChanged";
51
- this.msg = () => `Node "${this.nodeAfter.id}" changed order of annotations`;
52
- }
53
- }
54
- //# sourceMappingURL=NodeChange.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NodeChange.js","sourceRoot":"","sources":["../../../src/diff/changes/NodeChange.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAc,MAAM,aAAa,CAAA;AAEhD,MAAM,OAAO,qBAAsB,SAAQ,MAAM;IAG7C,YACW,OAAoB,EACpB,IAAqB,EACrB,aAAqC,EACrC,aAAqC;QAE5C,KAAK,CAAC,OAAO,CAAC,CAAA;QALP,YAAO,GAAP,OAAO,CAAa;QACpB,SAAI,GAAJ,IAAI,CAAiB;QACrB,kBAAa,GAAb,aAAa,CAAwB;QACrC,kBAAa,GAAb,aAAa,CAAwB;QANvC,eAAU,GAAe,uBAAuB,CAAA;QAW/C,QAAG,GAAG,GAAG,EAAE,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,EAAE,gCAAgC,IAAI,CAAC,aAAa,CAAC,GAAG,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,EAAE,CAAA;IAFjI,CAAC;CAGJ;AAED,MAAM,OAAO,aAAc,SAAQ,MAAM;IAGrC,YACW,OAAoB,EACpB,IAAqB,EACrB,cAA6B,EAC7B,aAA4B;QAEnC,KAAK,CAAC,OAAO,CAAC,CAAA;QALP,YAAO,GAAP,OAAO,CAAa;QACpB,SAAI,GAAJ,IAAI,CAAiB;QACrB,mBAAc,GAAd,cAAc,CAAe;QAC7B,kBAAa,GAAb,aAAa,CAAe;QAN9B,eAAU,GAAG,eAAe,CAAA;QAW3B,QAAG,GAAG,GAAG,EAAE,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,EAAE,0BAA0B,IAAI,CAAC,cAAc,SAAS,IAAI,CAAC,aAAa,EAAE,CAAA;IAFrH,CAAC;CAGJ;AAED,MAAM,OAAgB,gBAAiB,SAAQ,MAAM;IACjD,YACI,GAAgB,EACT,UAA2B,EAC3B,SAA0B,EAC1B,YAAoB,EACpB,KAAa;QAEpB,KAAK,CAAC,GAAG,CAAC,CAAA;QALH,eAAU,GAAV,UAAU,CAAiB;QAC3B,cAAS,GAAT,SAAS,CAAiB;QAC1B,iBAAY,GAAZ,YAAY,CAAQ;QACpB,UAAK,GAAL,KAAK,CAAQ;IAGxB,CAAC;CACJ;AAED,MAAM,OAAO,iBAAkB,SAAQ,gBAAgB;IAAvD;;QACa,eAAU,GAAG,mBAAmB,CAAA;QAE/B,QAAG,GAAG,GAAG,EAAE,CAAC,SAAS,IAAI,CAAC,UAAU,CAAC,EAAE,yBAAyB,IAAI,CAAC,YAAY,GAAG,CAAA;IAClG,CAAC;CAAA;AAED,MAAM,OAAO,eAAgB,SAAQ,gBAAgB;IAArD;;QACa,eAAU,GAAG,iBAAiB,CAAA;QAE7B,QAAG,GAAG,GAAG,EAAE,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,EAAE,uBAAuB,IAAI,CAAC,YAAY,GAAG,CAAA;IAC/F,CAAC;CAAA;AAGD,MAAM,OAAO,sBAAuB,SAAQ,gBAAgB;IAA5D;;QACa,eAAU,GAAG,wBAAwB,CAAA;QACpC,QAAG,GAAG,GAAG,EAAE,CAAC,SAAS,IAAI,CAAC,SAAS,CAAC,EAAE,gCAAgC,CAAA;IACpF,CAAC;CAAA"}
@@ -1,24 +0,0 @@
1
- import { JsonContext } from "../../issues/index.js";
2
- import { LionWebJsonMetaPointer, LionWebJsonNode } from "../../json/index.js";
3
- import { Change, Missing } from "./Change.js";
4
- export declare abstract class PropertyChange extends Change {
5
- context: JsonContext;
6
- nodeId: string;
7
- property: LionWebJsonMetaPointer;
8
- oldValue: string | null;
9
- newValue: string | null;
10
- missing: Missing;
11
- constructor(context: JsonContext, nodeId: string, property: LionWebJsonMetaPointer, oldValue: string | null, newValue: string | null, missing?: Missing);
12
- }
13
- export declare class PropertyValueChanged extends PropertyChange {
14
- readonly changeType = "PropertyValueChanged";
15
- protected msg: () => string;
16
- }
17
- export declare class PropertyAdded extends Change {
18
- node: LionWebJsonNode;
19
- property: LionWebJsonMetaPointer;
20
- readonly changeType = "PropertyAdded";
21
- constructor(ctx: JsonContext, node: LionWebJsonNode, property: LionWebJsonMetaPointer);
22
- protected msg: () => string;
23
- }
24
- //# sourceMappingURL=PropertyChange.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PropertyChange.d.ts","sourceRoot":"","sources":["../../../src/diff/changes/PropertyChange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC7E,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAG7C,8BAAsB,cAAe,SAAQ,MAAM;IAEpC,OAAO,EAAE,WAAW;IACpB,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,sBAAsB;IAChC,QAAQ,EAAE,MAAM,GAAG,IAAI;IACvB,QAAQ,EAAE,MAAM,GAAG,IAAI;IACvB,OAAO,EAAE,OAAO;gBALhB,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,sBAAsB,EAChC,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,OAAO,GAAE,OAA4B;CAInD;AAED,qBAAa,oBAAqB,SAAQ,cAAc;IACpD,QAAQ,CAAC,UAAU,0BAAyB;IAC5C,SAAS,CAAC,GAAG,eAA8H;CAC9I;AAED,qBAAa,aAAc,SAAQ,MAAM;IAEA,IAAI,EAAE,eAAe;IAAS,QAAQ,EAAE,sBAAsB;IADnG,QAAQ,CAAC,UAAU,mBAAmB;gBAC1B,GAAG,EAAE,WAAW,EAAS,IAAI,EAAE,eAAe,EAAS,QAAQ,EAAE,sBAAsB;IAInG,SAAS,CAAC,GAAG,eAAuF;CACvG"}
@@ -1,29 +0,0 @@
1
- import { Change, Missing } from "./Change.js";
2
- export class PropertyChange extends Change {
3
- constructor(context, nodeId, property, oldValue, newValue, missing = Missing.NotMissing) {
4
- super(context);
5
- this.context = context;
6
- this.nodeId = nodeId;
7
- this.property = property;
8
- this.oldValue = oldValue;
9
- this.newValue = newValue;
10
- this.missing = missing;
11
- }
12
- }
13
- export class PropertyValueChanged extends PropertyChange {
14
- constructor() {
15
- super(...arguments);
16
- this.changeType = "PropertyValueChanged";
17
- this.msg = () => `Node "${this.nodeId} changed value of property "${this.property.key}" from "${this.oldValue}" to "${this.newValue}"`;
18
- }
19
- }
20
- export class PropertyAdded extends Change {
21
- constructor(ctx, node, property) {
22
- super(ctx);
23
- this.node = node;
24
- this.property = property;
25
- this.changeType = "PropertyAdded";
26
- this.msg = () => `Node "${this.node.id}" containment added: "${JSON.stringify(this.property)}"`;
27
- }
28
- }
29
- //# sourceMappingURL=PropertyChange.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"PropertyChange.js","sourceRoot":"","sources":["../../../src/diff/changes/PropertyChange.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAG7C,MAAM,OAAgB,cAAe,SAAQ,MAAM;IAC/C,YACW,OAAoB,EACpB,MAAc,EACd,QAAgC,EAChC,QAAuB,EACvB,QAAuB,EACvB,UAAmB,OAAO,CAAC,UAAU;QAE5C,KAAK,CAAC,OAAO,CAAC,CAAA;QAPP,YAAO,GAAP,OAAO,CAAa;QACpB,WAAM,GAAN,MAAM,CAAQ;QACd,aAAQ,GAAR,QAAQ,CAAwB;QAChC,aAAQ,GAAR,QAAQ,CAAe;QACvB,aAAQ,GAAR,QAAQ,CAAe;QACvB,YAAO,GAAP,OAAO,CAA8B;IAGhD,CAAC;CACJ;AAED,MAAM,OAAO,oBAAqB,SAAQ,cAAc;IAAxD;;QACa,eAAU,GAAG,sBAAsB,CAAA;QAClC,QAAG,GAAG,GAAG,EAAE,CAAC,SAAS,IAAI,CAAC,MAAM,+BAA+B,IAAI,CAAC,QAAQ,CAAC,GAAG,WAAW,IAAI,CAAC,QAAQ,SAAS,IAAI,CAAC,QAAQ,GAAG,CAAA;IAC/I,CAAC;CAAA;AAED,MAAM,OAAO,aAAc,SAAQ,MAAM;IAErC,YAAY,GAAgB,EAAS,IAAqB,EAAS,QAAgC;QAC/F,KAAK,CAAC,GAAG,CAAC,CAAA;QADuB,SAAI,GAAJ,IAAI,CAAiB;QAAS,aAAQ,GAAR,QAAQ,CAAwB;QAD1F,eAAU,GAAG,eAAe,CAAC;QAK5B,QAAG,GAAG,GAAG,EAAE,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,EAAE,yBAAyB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAA;IAFpG,CAAC;CAGJ"}
@@ -1,25 +0,0 @@
1
- import { JsonContext } from "../../issues/index.js";
2
- import { LionWebJsonNode, LionWebJsonReference, LionWebJsonReferenceTarget } from "../../json/index.js";
3
- import { Change, Missing } from "./Change.js";
4
- export declare abstract class ReferenceChange extends Change {
5
- context: JsonContext;
6
- node: LionWebJsonNode;
7
- beforeReference: LionWebJsonReference | undefined;
8
- afterReference: LionWebJsonReference | undefined;
9
- target: LionWebJsonReferenceTarget;
10
- missing: Missing;
11
- constructor(context: JsonContext, node: LionWebJsonNode, beforeReference: LionWebJsonReference | undefined, afterReference: LionWebJsonReference | undefined, target: LionWebJsonReferenceTarget, missing?: Missing);
12
- }
13
- export declare class TargetAdded extends ReferenceChange {
14
- readonly changeType = "TargetAdded";
15
- protected msg: () => string;
16
- }
17
- export declare class TargetRemoved extends ReferenceChange {
18
- readonly changeType = "TargetRemoved";
19
- protected msg: () => string;
20
- }
21
- export declare class TargetOrderChanged extends ReferenceChange {
22
- readonly changeType = "TargetOrderChanged";
23
- protected msg: () => string;
24
- }
25
- //# sourceMappingURL=ReferenceChange.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReferenceChange.d.ts","sourceRoot":"","sources":["../../../src/diff/changes/ReferenceChange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAA;AACvG,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE7C,8BAAsB,eAAgB,SAAQ,MAAM;IAErC,OAAO,EAAE,WAAW;IACpB,IAAI,EAAE,eAAe;IACrB,eAAe,EAAE,oBAAoB,GAAG,SAAS;IACjD,cAAc,EAAE,oBAAoB,GAAG,SAAS;IAChD,MAAM,EAAE,0BAA0B;IAClC,OAAO;gBALP,OAAO,EAAE,WAAW,EACpB,IAAI,EAAE,eAAe,EACrB,eAAe,EAAE,oBAAoB,GAAG,SAAS,EACjD,cAAc,EAAE,oBAAoB,GAAG,SAAS,EAChD,MAAM,EAAE,0BAA0B,EAClC,OAAO,UAAqB;CAI1C;AAED,qBAAa,WAAY,SAAQ,eAAe;IAC5C,QAAQ,CAAC,UAAU,iBAAgB;IACnC,SAAS,CAAC,GAAG,eAC8G;CAC9H;AAED,qBAAa,aAAc,SAAQ,eAAe;IAC9C,QAAQ,CAAC,UAAU,mBAAkB;IACrC,SAAS,CAAC,GAAG,eACmH;CACnI;AAED,qBAAa,kBAAmB,SAAQ,eAAe;IACnD,QAAQ,CAAC,UAAU,wBAAuB;IAC1C,SAAS,CAAC,GAAG,eAAgH;CAChI"}
@@ -1,34 +0,0 @@
1
- import { Change, Missing } from "./Change.js";
2
- export class ReferenceChange extends Change {
3
- constructor(context, node, beforeReference, afterReference, target, missing = Missing.NotMissing) {
4
- super(context);
5
- this.context = context;
6
- this.node = node;
7
- this.beforeReference = beforeReference;
8
- this.afterReference = afterReference;
9
- this.target = target;
10
- this.missing = missing;
11
- }
12
- }
13
- export class TargetAdded extends ReferenceChange {
14
- constructor() {
15
- super(...arguments);
16
- this.changeType = "TargetAdded";
17
- this.msg = () => `Node "${this.node.id}" added target "${this.target.reference}" to reference "${this?.afterReference?.reference?.key}"`;
18
- }
19
- }
20
- export class TargetRemoved extends ReferenceChange {
21
- constructor() {
22
- super(...arguments);
23
- this.changeType = "TargetRemoved";
24
- this.msg = () => `Node "${this.node.id}" removed target "${this.target.reference}" from reference "${this?.beforeReference?.reference?.key}"`;
25
- }
26
- }
27
- export class TargetOrderChanged extends ReferenceChange {
28
- constructor() {
29
- super(...arguments);
30
- this.changeType = "TargetOrderChanged";
31
- this.msg = () => `Node "${this.node.id}" changed order of targets in reference "${this.afterReference?.reference?.key}"`;
32
- }
33
- }
34
- //# sourceMappingURL=ReferenceChange.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ReferenceChange.js","sourceRoot":"","sources":["../../../src/diff/changes/ReferenceChange.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE7C,MAAM,OAAgB,eAAgB,SAAQ,MAAM;IAChD,YACW,OAAoB,EACpB,IAAqB,EACrB,eAAiD,EACjD,cAAgD,EAChD,MAAkC,EAClC,UAAU,OAAO,CAAC,UAAU;QAEnC,KAAK,CAAC,OAAO,CAAC,CAAA;QAPP,YAAO,GAAP,OAAO,CAAa;QACpB,SAAI,GAAJ,IAAI,CAAiB;QACrB,oBAAe,GAAf,eAAe,CAAkC;QACjD,mBAAc,GAAd,cAAc,CAAkC;QAChD,WAAM,GAAN,MAAM,CAA4B;QAClC,YAAO,GAAP,OAAO,CAAqB;IAGvC,CAAC;CACJ;AAED,MAAM,OAAO,WAAY,SAAQ,eAAe;IAAhD;;QACa,eAAU,GAAG,aAAa,CAAA;QACzB,QAAG,GAAG,GAAG,EAAE,CACjB,SAAS,IAAI,CAAC,IAAI,CAAC,EAAE,mBAAmB,IAAI,CAAC,MAAM,CAAC,SAAS,mBAAmB,IAAI,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,GAAG,CAAA;IAC/H,CAAC;CAAA;AAED,MAAM,OAAO,aAAc,SAAQ,eAAe;IAAlD;;QACa,eAAU,GAAG,eAAe,CAAA;QAC3B,QAAG,GAAG,GAAG,EAAE,CACjB,SAAS,IAAI,CAAC,IAAI,CAAC,EAAE,qBAAqB,IAAI,CAAC,MAAM,CAAC,SAAS,qBAAqB,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,GAAG,CAAA;IACpI,CAAC;CAAA;AAED,MAAM,OAAO,kBAAmB,SAAQ,eAAe;IAAvD;;QACa,eAAU,GAAG,oBAAoB,CAAA;QAChC,QAAG,GAAG,GAAG,EAAE,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,EAAE,4CAA4C,IAAI,CAAC,cAAc,EAAE,SAAS,EAAE,GAAG,GAAG,CAAA;IACjI,CAAC;CAAA"}
@@ -1,7 +0,0 @@
1
- export * from "./Change.js";
2
- export * from "./ChunkChange.js";
3
- export * from "./ContainmentChange.js";
4
- export * from "./NodeChange.js";
5
- export * from "./PropertyChange.js";
6
- export * from "./ReferenceChange.js";
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/diff/changes/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA"}
@@ -1,7 +0,0 @@
1
- export * from "./Change.js";
2
- export * from "./ChunkChange.js";
3
- export * from "./ContainmentChange.js";
4
- export * from "./NodeChange.js";
5
- export * from "./PropertyChange.js";
6
- export * from "./ReferenceChange.js";
7
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/diff/changes/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,kBAAkB,CAAA;AAChC,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from "./changes/index.js";
2
- export * from "./DiffResult.js";
3
- export * from "./LionWebJsonDiff.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/diff/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from "./changes/index.js";
2
- export * from "./DiffResult.js";
3
- export * from "./LionWebJsonDiff.js";
4
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/diff/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA"}
@@ -1,26 +0,0 @@
1
- import { LionWebJsonChunk, LionWebJsonNode, LwJsonUsedLanguage } from "./LionWebJson.js";
2
- /**
3
- * Utility functions for LionWeb chunks
4
- */
5
- export declare class ChunkUtils {
6
- /**
7
- * Find a used language in `chunk` with `key`.
8
- * @param chunk
9
- * @param key
10
- */
11
- static findLwUsedLanguage(chunk: LionWebJsonChunk, key: string): LwJsonUsedLanguage | null;
12
- /**
13
- * Find a used language in `chunk` with `key` and 'version'.
14
- * @param chunk
15
- * @param key
16
- * @param version
17
- */
18
- static findLwUsedLanguageWithVersion(chunk: LionWebJsonChunk, key: string, version: string): LwJsonUsedLanguage | null;
19
- /**
20
- * Find node with id equals `id` in `chunk`.
21
- * @param chunk
22
- * @param id
23
- */
24
- static findNode(chunk: LionWebJsonChunk, id: string): LionWebJsonNode | null;
25
- }
26
- //# sourceMappingURL=ChunkUtils.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChunkUtils.d.ts","sourceRoot":"","sources":["../../src/json/ChunkUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AAExF;;GAEG;AACH,qBAAa,UAAU;IACnB;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI;IAS1F;;;;;OAKG;IACH,MAAM,CAAC,6BAA6B,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,kBAAkB,GAAG,IAAI;IAStH;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,gBAAgB,EAAE,EAAE,EAAE,MAAM,GAAG,eAAe,GAAG,IAAI;CAQ/E"}
@@ -1,46 +0,0 @@
1
- /**
2
- * Utility functions for LionWeb chunks
3
- */
4
- export class ChunkUtils {
5
- /**
6
- * Find a used language in `chunk` with `key`.
7
- * @param chunk
8
- * @param key
9
- */
10
- static findLwUsedLanguage(chunk, key) {
11
- for (const language of chunk.languages) {
12
- if (language.key === key) {
13
- return language;
14
- }
15
- }
16
- return null;
17
- }
18
- /**
19
- * Find a used language in `chunk` with `key` and 'version'.
20
- * @param chunk
21
- * @param key
22
- * @param version
23
- */
24
- static findLwUsedLanguageWithVersion(chunk, key, version) {
25
- for (const language of chunk.languages) {
26
- if (language.key === key && language.version === version) {
27
- return language;
28
- }
29
- }
30
- return null;
31
- }
32
- /**
33
- * Find node with id equals `id` in `chunk`.
34
- * @param chunk
35
- * @param id
36
- */
37
- static findNode(chunk, id) {
38
- for (const node of chunk.nodes) {
39
- if (node.id === id) {
40
- return node;
41
- }
42
- }
43
- return null;
44
- }
45
- }
46
- //# sourceMappingURL=ChunkUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ChunkUtils.js","sourceRoot":"","sources":["../../src/json/ChunkUtils.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,OAAO,UAAU;IACnB;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,KAAuB,EAAE,GAAW;QAC1D,KAAK,MAAM,QAAQ,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;YACrC,IAAI,QAAQ,CAAC,GAAG,KAAK,GAAG,EAAE,CAAC;gBACvB,OAAO,QAAQ,CAAA;YACnB,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAA;IACf,CAAC;IAED;;;;;OAKG;IACH,MAAM,CAAC,6BAA6B,CAAC,KAAuB,EAAE,GAAW,EAAE,OAAe;QACtF,KAAK,MAAM,QAAQ,IAAI,KAAK,CAAC,SAAS,EAAE,CAAC;YACrC,IAAI,QAAQ,CAAC,GAAG,KAAK,GAAG,IAAI,QAAQ,CAAC,OAAO,KAAK,OAAO,EAAE,CAAC;gBACvD,OAAO,QAAQ,CAAA;YACnB,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAA;IACf,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,QAAQ,CAAC,KAAuB,EAAE,EAAU;QAC/C,KAAK,MAAM,IAAI,IAAI,KAAK,CAAC,KAAK,EAAE,CAAC;YAC7B,IAAI,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;gBACjB,OAAO,IAAI,CAAA;YACf,CAAC;QACL,CAAC;QACD,OAAO,IAAI,CAAA;IACf,CAAC;CACJ"}