@sap-ux/fiori-annotation-api 0.1.0
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/LICENSE +201 -0
- package/Readme.md +35 -0
- package/dist/avt/annotations.d.ts +72 -0
- package/dist/avt/annotations.d.ts.map +1 -0
- package/dist/avt/annotations.js +508 -0
- package/dist/avt/annotations.js.map +1 -0
- package/dist/avt/expressions.d.ts +13 -0
- package/dist/avt/expressions.d.ts.map +1 -0
- package/dist/avt/expressions.js +34 -0
- package/dist/avt/expressions.js.map +1 -0
- package/dist/avt/find.d.ts +39 -0
- package/dist/avt/find.d.ts.map +1 -0
- package/dist/avt/find.js +130 -0
- package/dist/avt/find.js.map +1 -0
- package/dist/avt/index.d.ts +9 -0
- package/dist/avt/index.d.ts.map +1 -0
- package/dist/avt/index.js +32 -0
- package/dist/avt/index.js.map +1 -0
- package/dist/avt/metadata.d.ts +10 -0
- package/dist/avt/metadata.d.ts.map +1 -0
- package/dist/avt/metadata.js +346 -0
- package/dist/avt/metadata.js.map +1 -0
- package/dist/avt/pointer.d.ts +12 -0
- package/dist/avt/pointer.d.ts.map +1 -0
- package/dist/avt/pointer.js +188 -0
- package/dist/avt/pointer.js.map +1 -0
- package/dist/avt/to-internal.d.ts +81 -0
- package/dist/avt/to-internal.d.ts.map +1 -0
- package/dist/avt/to-internal.js +340 -0
- package/dist/avt/to-internal.js.map +1 -0
- package/dist/avt/types.d.ts +3 -0
- package/dist/avt/types.d.ts.map +1 -0
- package/dist/avt/types.js +3 -0
- package/dist/avt/types.js.map +1 -0
- package/dist/avt/utils.d.ts +61 -0
- package/dist/avt/utils.d.ts.map +1 -0
- package/dist/avt/utils.js +87 -0
- package/dist/avt/utils.js.map +1 -0
- package/dist/cds/adapter.d.ts +112 -0
- package/dist/cds/adapter.d.ts.map +1 -0
- package/dist/cds/adapter.js +703 -0
- package/dist/cds/adapter.js.map +1 -0
- package/dist/cds/cds-compiler-tokens.d.ts +30 -0
- package/dist/cds/cds-compiler-tokens.d.ts.map +1 -0
- package/dist/cds/cds-compiler-tokens.js +57 -0
- package/dist/cds/cds-compiler-tokens.js.map +1 -0
- package/dist/cds/change.d.ts +347 -0
- package/dist/cds/change.d.ts.map +1 -0
- package/dist/cds/change.js +232 -0
- package/dist/cds/change.js.map +1 -0
- package/dist/cds/comments.d.ts +15 -0
- package/dist/cds/comments.d.ts.map +1 -0
- package/dist/cds/comments.js +56 -0
- package/dist/cds/comments.js.map +1 -0
- package/dist/cds/deletion.d.ts +59 -0
- package/dist/cds/deletion.d.ts.map +1 -0
- package/dist/cds/deletion.js +821 -0
- package/dist/cds/deletion.js.map +1 -0
- package/dist/cds/document.d.ts +52 -0
- package/dist/cds/document.d.ts.map +1 -0
- package/dist/cds/document.js +98 -0
- package/dist/cds/document.js.map +1 -0
- package/dist/cds/indent.d.ts +20 -0
- package/dist/cds/indent.d.ts.map +1 -0
- package/dist/cds/indent.js +86 -0
- package/dist/cds/indent.js.map +1 -0
- package/dist/cds/index.d.ts +3 -0
- package/dist/cds/index.d.ts.map +1 -0
- package/dist/cds/index.js +21 -0
- package/dist/cds/index.js.map +1 -0
- package/dist/cds/pointer.d.ts +23 -0
- package/dist/cds/pointer.d.ts.map +1 -0
- package/dist/cds/pointer.js +438 -0
- package/dist/cds/pointer.js.map +1 -0
- package/dist/cds/preprocessor.d.ts +12 -0
- package/dist/cds/preprocessor.d.ts.map +1 -0
- package/dist/cds/preprocessor.js +338 -0
- package/dist/cds/preprocessor.js.map +1 -0
- package/dist/cds/references.d.ts +35 -0
- package/dist/cds/references.d.ts.map +1 -0
- package/dist/cds/references.js +413 -0
- package/dist/cds/references.js.map +1 -0
- package/dist/cds/service.d.ts +11 -0
- package/dist/cds/service.d.ts.map +1 -0
- package/dist/cds/service.js +37 -0
- package/dist/cds/service.js.map +1 -0
- package/dist/cds/utils.d.ts +35 -0
- package/dist/cds/utils.d.ts.map +1 -0
- package/dist/cds/utils.js +75 -0
- package/dist/cds/utils.js.map +1 -0
- package/dist/cds/writer.d.ts +104 -0
- package/dist/cds/writer.d.ts.map +1 -0
- package/dist/cds/writer.js +1086 -0
- package/dist/cds/writer.js.map +1 -0
- package/dist/change-converter.d.ts +54 -0
- package/dist/change-converter.d.ts.map +1 -0
- package/dist/change-converter.js +639 -0
- package/dist/change-converter.js.map +1 -0
- package/dist/error.d.ts +35 -0
- package/dist/error.d.ts.map +1 -0
- package/dist/error.js +64 -0
- package/dist/error.js.map +1 -0
- package/dist/fiori-service.d.ts +130 -0
- package/dist/fiori-service.d.ts.map +1 -0
- package/dist/fiori-service.js +362 -0
- package/dist/fiori-service.js.map +1 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/protected.d.ts +3 -0
- package/dist/protected.d.ts.map +1 -0
- package/dist/protected.js +11 -0
- package/dist/protected.js.map +1 -0
- package/dist/types/adapter.d.ts +46 -0
- package/dist/types/adapter.d.ts.map +1 -0
- package/dist/types/adapter.js +3 -0
- package/dist/types/adapter.js.map +1 -0
- package/dist/types/change.d.ts +187 -0
- package/dist/types/change.d.ts.map +1 -0
- package/dist/types/change.js +52 -0
- package/dist/types/change.js.map +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +33 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/internal-change.d.ts +98 -0
- package/dist/types/internal-change.d.ts.map +1 -0
- package/dist/types/internal-change.js +18 -0
- package/dist/types/internal-change.js.map +1 -0
- package/dist/types/project-info.d.ts +6 -0
- package/dist/types/project-info.d.ts.map +1 -0
- package/dist/types/project-info.js +3 -0
- package/dist/types/project-info.js.map +1 -0
- package/dist/types/service.d.ts +27 -0
- package/dist/types/service.d.ts.map +1 -0
- package/dist/types/service.js +3 -0
- package/dist/types/service.js.map +1 -0
- package/dist/types/text-file.d.ts +12 -0
- package/dist/types/text-file.d.ts.map +1 -0
- package/dist/types/text-file.js +3 -0
- package/dist/types/text-file.js.map +1 -0
- package/dist/utils/constants.d.ts +2 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +24 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/indent.d.ts +10 -0
- package/dist/utils/indent.d.ts.map +1 -0
- package/dist/utils/indent.js +36 -0
- package/dist/utils/indent.js.map +1 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +16 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/path.d.ts +8 -0
- package/dist/utils/path.d.ts.map +1 -0
- package/dist/utils/path.js +31 -0
- package/dist/utils/path.js.map +1 -0
- package/dist/utils/pointer.d.ts +11 -0
- package/dist/utils/pointer.d.ts.map +1 -0
- package/dist/utils/pointer.js +26 -0
- package/dist/utils/pointer.js.map +1 -0
- package/dist/utils/reference.d.ts +10 -0
- package/dist/utils/reference.d.ts.map +1 -0
- package/dist/utils/reference.js +20 -0
- package/dist/utils/reference.js.map +1 -0
- package/dist/utils/text-edits.d.ts +12 -0
- package/dist/utils/text-edits.d.ts.map +1 -0
- package/dist/utils/text-edits.js +29 -0
- package/dist/utils/text-edits.js.map +1 -0
- package/dist/vocabularies.d.ts +11 -0
- package/dist/vocabularies.d.ts.map +1 -0
- package/dist/vocabularies.js +26 -0
- package/dist/vocabularies.js.map +1 -0
- package/dist/xml/adapter.d.ts +85 -0
- package/dist/xml/adapter.d.ts.map +1 -0
- package/dist/xml/adapter.js +579 -0
- package/dist/xml/adapter.js.map +1 -0
- package/dist/xml/changes.d.ts +117 -0
- package/dist/xml/changes.d.ts.map +1 -0
- package/dist/xml/changes.js +34 -0
- package/dist/xml/changes.js.map +1 -0
- package/dist/xml/comments.d.ts +17 -0
- package/dist/xml/comments.d.ts.map +1 -0
- package/dist/xml/comments.js +49 -0
- package/dist/xml/comments.js.map +1 -0
- package/dist/xml/document.d.ts +11 -0
- package/dist/xml/document.d.ts.map +1 -0
- package/dist/xml/document.js +3 -0
- package/dist/xml/document.js.map +1 -0
- package/dist/xml/index.d.ts +3 -0
- package/dist/xml/index.d.ts.map +1 -0
- package/dist/xml/index.js +8 -0
- package/dist/xml/index.js.map +1 -0
- package/dist/xml/pointer.d.ts +10 -0
- package/dist/xml/pointer.d.ts.map +1 -0
- package/dist/xml/pointer.js +29 -0
- package/dist/xml/pointer.js.map +1 -0
- package/dist/xml/references.d.ts +9 -0
- package/dist/xml/references.d.ts.map +1 -0
- package/dist/xml/references.js +87 -0
- package/dist/xml/references.js.map +1 -0
- package/dist/xml/service.d.ts +12 -0
- package/dist/xml/service.d.ts.map +1 -0
- package/dist/xml/service.js +55 -0
- package/dist/xml/service.js.map +1 -0
- package/dist/xml/writer.d.ts +39 -0
- package/dist/xml/writer.d.ts.map +1 -0
- package/dist/xml/writer.js +855 -0
- package/dist/xml/writer.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/types/service.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export interface TextFile {
|
|
2
|
+
/**
|
|
3
|
+
* Absolute uri to the file
|
|
4
|
+
*/
|
|
5
|
+
uri: string;
|
|
6
|
+
/**
|
|
7
|
+
* Some of the files in project can not be written to. For example generated files should not be modified and such files will have this flag set to true.
|
|
8
|
+
* If it's not set or the value is false, then the file can be modified.
|
|
9
|
+
*/
|
|
10
|
+
isReadOnly?: boolean;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=text-file.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-file.d.ts","sourceRoot":"","sources":["../../src/types/text-file.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,QAAQ;IACrB;;OAEG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-file.js","sourceRoot":"","sources":["../../src/types/text-file.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,EAAE,MAAM,EAmBxC,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PRIMITIVE_TYPE_NAMES = void 0;
|
|
4
|
+
exports.PRIMITIVE_TYPE_NAMES = [
|
|
5
|
+
"Bool" /* Edm.Bool */,
|
|
6
|
+
"String" /* Edm.String */,
|
|
7
|
+
"Decimal" /* Edm.Decimal */,
|
|
8
|
+
"EnumMember" /* Edm.EnumMember */,
|
|
9
|
+
"Binary" /* Edm.Binary */,
|
|
10
|
+
"Date" /* Edm.Date */,
|
|
11
|
+
"DateTimeOffset" /* Edm.DateTimeOffset */,
|
|
12
|
+
"TimeOfDay" /* Edm.TimeOfDay */,
|
|
13
|
+
"Duration" /* Edm.Duration */,
|
|
14
|
+
"Float" /* Edm.Float */,
|
|
15
|
+
"Int" /* Edm.Int */,
|
|
16
|
+
"Null" /* Edm.Null */,
|
|
17
|
+
"Guid" /* Edm.Guid */,
|
|
18
|
+
"ModelElementPath" /* Edm.ModelElementPath */,
|
|
19
|
+
"NavigationPropertyPath" /* Edm.NavigationPropertyPath */,
|
|
20
|
+
"PropertyPath" /* Edm.PropertyPath */,
|
|
21
|
+
"Path" /* Edm.Path */,
|
|
22
|
+
"AnnotationPath" /* Edm.AnnotationPath */
|
|
23
|
+
];
|
|
24
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":";;;AAEa,QAAA,oBAAoB,GAAa;;;;;;;;;;;;;;;;;;;CAmB7C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Increases indentation of the given multi line text value.
|
|
3
|
+
*
|
|
4
|
+
* @param text - Input value.
|
|
5
|
+
* @param level - Indentation level.
|
|
6
|
+
* @param skipFirstLine - Flag if the first line should remain unchanged.
|
|
7
|
+
* @returns Indented value.
|
|
8
|
+
*/
|
|
9
|
+
export declare function increaseIndent(text: string, level?: number, skipFirstLine?: boolean): string;
|
|
10
|
+
//# sourceMappingURL=indent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indent.d.ts","sourceRoot":"","sources":["../../src/utils/indent.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,SAAI,EAAE,aAAa,UAAQ,GAAG,MAAM,CAYrF"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.increaseIndent = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Increases indentation of the given multi line text value.
|
|
6
|
+
*
|
|
7
|
+
* @param text - Input value.
|
|
8
|
+
* @param level - Indentation level.
|
|
9
|
+
* @param skipFirstLine - Flag if the first line should remain unchanged.
|
|
10
|
+
* @returns Indented value.
|
|
11
|
+
*/
|
|
12
|
+
function increaseIndent(text, level = 0, skipFirstLine = false) {
|
|
13
|
+
if (level === 0) {
|
|
14
|
+
return text;
|
|
15
|
+
}
|
|
16
|
+
const parts = text.split('\n');
|
|
17
|
+
const indent = ' ';
|
|
18
|
+
for (let i = skipFirstLine ? 1 : 0; i < parts.length; i++) {
|
|
19
|
+
const line = parts[i];
|
|
20
|
+
parts[i] = indentLine(indent, level, line);
|
|
21
|
+
}
|
|
22
|
+
return parts.join('\n');
|
|
23
|
+
}
|
|
24
|
+
exports.increaseIndent = increaseIndent;
|
|
25
|
+
/**
|
|
26
|
+
* Indents a value to the given level.
|
|
27
|
+
*
|
|
28
|
+
* @param indent Indent character(s).
|
|
29
|
+
* @param level Indent level.
|
|
30
|
+
* @param string Value that will be indented.
|
|
31
|
+
* @returns Indented value.
|
|
32
|
+
*/
|
|
33
|
+
function indentLine(indent, level, string) {
|
|
34
|
+
return `${indent.repeat(level)}${string}`;
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=indent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"indent.js","sourceRoot":"","sources":["../../src/utils/indent.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,SAAgB,cAAc,CAAC,IAAY,EAAE,KAAK,GAAG,CAAC,EAAE,aAAa,GAAG,KAAK;IACzE,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;QACd,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC/B,MAAM,MAAM,GAAG,MAAM,CAAC;IACtB,KAAK,IAAI,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;QACxD,MAAM,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;QACtB,KAAK,CAAC,CAAC,CAAC,GAAG,UAAU,CAAC,MAAM,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC/C,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC5B,CAAC;AAZD,wCAYC;AAED;;;;;;;GAOG;AACH,SAAS,UAAU,CAAC,MAAc,EAAE,KAAa,EAAE,MAAc;IAC7D,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,EAAE,CAAC;AAC9C,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { pathFromUri } from './path';
|
|
2
|
+
export { PRIMITIVE_TYPE_NAMES } from './constants';
|
|
3
|
+
export { getGenericNodeFromPointer } from './pointer';
|
|
4
|
+
export { increaseIndent } from './indent';
|
|
5
|
+
export { annotationReferenceToString } from './reference';
|
|
6
|
+
export { compareTextEdits } from './text-edits';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compareTextEdits = exports.annotationReferenceToString = exports.increaseIndent = exports.getGenericNodeFromPointer = exports.PRIMITIVE_TYPE_NAMES = exports.pathFromUri = void 0;
|
|
4
|
+
var path_1 = require("./path");
|
|
5
|
+
Object.defineProperty(exports, "pathFromUri", { enumerable: true, get: function () { return path_1.pathFromUri; } });
|
|
6
|
+
var constants_1 = require("./constants");
|
|
7
|
+
Object.defineProperty(exports, "PRIMITIVE_TYPE_NAMES", { enumerable: true, get: function () { return constants_1.PRIMITIVE_TYPE_NAMES; } });
|
|
8
|
+
var pointer_1 = require("./pointer");
|
|
9
|
+
Object.defineProperty(exports, "getGenericNodeFromPointer", { enumerable: true, get: function () { return pointer_1.getGenericNodeFromPointer; } });
|
|
10
|
+
var indent_1 = require("./indent");
|
|
11
|
+
Object.defineProperty(exports, "increaseIndent", { enumerable: true, get: function () { return indent_1.increaseIndent; } });
|
|
12
|
+
var reference_1 = require("./reference");
|
|
13
|
+
Object.defineProperty(exports, "annotationReferenceToString", { enumerable: true, get: function () { return reference_1.annotationReferenceToString; } });
|
|
14
|
+
var text_edits_1 = require("./text-edits");
|
|
15
|
+
Object.defineProperty(exports, "compareTextEdits", { enumerable: true, get: function () { return text_edits_1.compareTextEdits; } });
|
|
16
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";;;AAAA,+BAAqC;AAA5B,mGAAA,WAAW,OAAA;AACpB,yCAAmD;AAA1C,iHAAA,oBAAoB,OAAA;AAC7B,qCAAsD;AAA7C,oHAAA,yBAAyB,OAAA;AAClC,mCAA0C;AAAjC,wGAAA,cAAc,OAAA;AACvB,yCAA0D;AAAjD,wHAAA,2BAA2B,OAAA;AACpC,2CAAgD;AAAvC,8GAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/utils/path.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAS/C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pathFromUri = void 0;
|
|
4
|
+
const fs_1 = require("fs");
|
|
5
|
+
const url_1 = require("url");
|
|
6
|
+
const driveLetter = process.platform === 'win32' ? fs_1.realpathSync.native('\\')[0] : '';
|
|
7
|
+
/**
|
|
8
|
+
* Converts URI to path.
|
|
9
|
+
*
|
|
10
|
+
* @param uri - URI.
|
|
11
|
+
* @returns File path.
|
|
12
|
+
*/
|
|
13
|
+
function pathFromUri(uri) {
|
|
14
|
+
const parsedUri = (0, url_1.fileURLToPath)(uri);
|
|
15
|
+
// for windows, some NodeJS methods will output uppercase drive letters, some in lowercase
|
|
16
|
+
if (process.platform === 'win32') {
|
|
17
|
+
return toggleCase(parsedUri.charAt(0)) + parsedUri.slice(1);
|
|
18
|
+
}
|
|
19
|
+
return parsedUri;
|
|
20
|
+
}
|
|
21
|
+
exports.pathFromUri = pathFromUri;
|
|
22
|
+
/**
|
|
23
|
+
* Changes the drive letter to the same as `realpathSync`.
|
|
24
|
+
*
|
|
25
|
+
* @param character Drive letter character
|
|
26
|
+
* @returns Normalized drive letter character
|
|
27
|
+
*/
|
|
28
|
+
function toggleCase(character) {
|
|
29
|
+
return driveLetter === driveLetter.toUpperCase() ? character.toUpperCase() : character.toLowerCase();
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=path.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"path.js","sourceRoot":"","sources":["../../src/utils/path.ts"],"names":[],"mappings":";;;AAAA,2BAAkC;AAClC,6BAAoC;AAEpC,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,iBAAY,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAErF;;;;;GAKG;AACH,SAAgB,WAAW,CAAC,GAAW;IACnC,MAAM,SAAS,GAAG,IAAA,mBAAa,EAAC,GAAG,CAAC,CAAC;IAErC,0FAA0F;IAC1F,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,EAAE,CAAC;QAC/B,OAAO,UAAU,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAChE,CAAC;IAED,OAAO,SAAS,CAAC;AACrB,CAAC;AATD,kCASC;AAED;;;;;GAKG;AACH,SAAS,UAAU,CAAC,SAAiB;IACjC,OAAO,WAAW,KAAK,WAAW,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC;AACzG,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AnyNode } from '@sap-ux/odata-annotation-core-types';
|
|
2
|
+
import type { JsonPointer } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Traverses the object tree and finds a node based on the pointer.
|
|
5
|
+
*
|
|
6
|
+
* @param root - Root of the object tree.
|
|
7
|
+
* @param pointer - Pointer pointing to a specific node.
|
|
8
|
+
* @returns A node.
|
|
9
|
+
*/
|
|
10
|
+
export declare function getGenericNodeFromPointer(root: AnyNode, pointer: JsonPointer): AnyNode | undefined;
|
|
11
|
+
//# sourceMappingURL=pointer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pointer.d.ts","sourceRoot":"","sources":["../../src/utils/pointer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C;;;;;;GAMG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,GAAG,SAAS,CAalG"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGenericNodeFromPointer = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Traverses the object tree and finds a node based on the pointer.
|
|
6
|
+
*
|
|
7
|
+
* @param root - Root of the object tree.
|
|
8
|
+
* @param pointer - Pointer pointing to a specific node.
|
|
9
|
+
* @returns A node.
|
|
10
|
+
*/
|
|
11
|
+
function getGenericNodeFromPointer(root, pointer) {
|
|
12
|
+
const segments = pointer.slice(1).split('/');
|
|
13
|
+
let node = root;
|
|
14
|
+
for (const segment of segments) {
|
|
15
|
+
const next = node[segment];
|
|
16
|
+
if (next) {
|
|
17
|
+
node = next;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return node;
|
|
24
|
+
}
|
|
25
|
+
exports.getGenericNodeFromPointer = getGenericNodeFromPointer;
|
|
26
|
+
//# sourceMappingURL=pointer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pointer.js","sourceRoot":"","sources":["../../src/utils/pointer.ts"],"names":[],"mappings":";;;AAGA;;;;;;GAMG;AACH,SAAgB,yBAAyB,CAAC,IAAa,EAAE,OAAoB;IACzE,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAE7C,IAAI,IAAI,GAAY,IAAI,CAAC;IACzB,KAAK,MAAM,OAAO,IAAI,QAAQ,EAAE,CAAC;QAC7B,MAAM,IAAI,GAAyB,IAA8C,CAAC,OAAO,CAAC,CAAC;QAC3F,IAAI,IAAI,EAAE,CAAC;YACP,IAAI,GAAG,IAAI,CAAC;QAChB,CAAC;aAAM,CAAC;YACJ,OAAO,SAAS,CAAC;QACrB,CAAC;IACL,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAbD,8DAaC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { AnnotationReference } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Serializes annotation reference to a string identifier.
|
|
4
|
+
*
|
|
5
|
+
* @param reference - Reference that will be serialized.
|
|
6
|
+
* @param uri - Uri which will be included in the identifier. If omitted, then annotations from different files can not be distinguished by the identifier.
|
|
7
|
+
* @returns Identifier for a specific annotation with Target/Term/Qualifier combination.
|
|
8
|
+
*/
|
|
9
|
+
export declare function annotationReferenceToString(reference: AnnotationReference, uri?: string): string;
|
|
10
|
+
//# sourceMappingURL=reference.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference.d.ts","sourceRoot":"","sources":["../../src/utils/reference.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAEpD;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,SAAS,EAAE,mBAAmB,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAOhG"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.annotationReferenceToString = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Serializes annotation reference to a string identifier.
|
|
6
|
+
*
|
|
7
|
+
* @param reference - Reference that will be serialized.
|
|
8
|
+
* @param uri - Uri which will be included in the identifier. If omitted, then annotations from different files can not be distinguished by the identifier.
|
|
9
|
+
* @returns Identifier for a specific annotation with Target/Term/Qualifier combination.
|
|
10
|
+
*/
|
|
11
|
+
function annotationReferenceToString(reference, uri) {
|
|
12
|
+
const qualifierSuffix = reference.qualifier ? `#${reference.qualifier}` : '';
|
|
13
|
+
const annotation = `${reference.target}/${reference.term}${qualifierSuffix}`;
|
|
14
|
+
if (uri) {
|
|
15
|
+
return `${uri} ${annotation}`;
|
|
16
|
+
}
|
|
17
|
+
return annotation;
|
|
18
|
+
}
|
|
19
|
+
exports.annotationReferenceToString = annotationReferenceToString;
|
|
20
|
+
//# sourceMappingURL=reference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reference.js","sourceRoot":"","sources":["../../src/utils/reference.ts"],"names":[],"mappings":";;;AAEA;;;;;;GAMG;AACH,SAAgB,2BAA2B,CAAC,SAA8B,EAAE,GAAY;IACpF,MAAM,eAAe,GAAG,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,SAAS,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC7E,MAAM,UAAU,GAAG,GAAG,SAAS,CAAC,MAAM,IAAI,SAAS,CAAC,IAAI,GAAG,eAAe,EAAE,CAAC;IAC7E,IAAI,GAAG,EAAE,CAAC;QACN,OAAO,GAAG,GAAG,IAAI,UAAU,EAAE,CAAC;IAClC,CAAC;IACD,OAAO,UAAU,CAAC;AACtB,CAAC;AAPD,kEAOC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TextEdit } from '@sap-ux/odata-annotation-core-types';
|
|
2
|
+
/**
|
|
3
|
+
* Compares two text edits based on their ranges.
|
|
4
|
+
* Can be used in {@link Array.prototype.sort} to sort in ascending order.
|
|
5
|
+
*
|
|
6
|
+
* @param a - First text edit.
|
|
7
|
+
* @param b - Second text edit.
|
|
8
|
+
* @returns A negative number if {@link a} should come before {@link b}; A positive number if {@link b} should come before {@link a};
|
|
9
|
+
* 0 if the text edit ranges are equal.
|
|
10
|
+
*/
|
|
11
|
+
export declare function compareTextEdits(a: TextEdit, b: TextEdit): number;
|
|
12
|
+
//# sourceMappingURL=text-edits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-edits.d.ts","sourceRoot":"","sources":["../../src/utils/text-edits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AAEpE;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,GAAG,MAAM,CAcjE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.compareTextEdits = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Compares two text edits based on their ranges.
|
|
6
|
+
* Can be used in {@link Array.prototype.sort} to sort in ascending order.
|
|
7
|
+
*
|
|
8
|
+
* @param a - First text edit.
|
|
9
|
+
* @param b - Second text edit.
|
|
10
|
+
* @returns A negative number if {@link a} should come before {@link b}; A positive number if {@link b} should come before {@link a};
|
|
11
|
+
* 0 if the text edit ranges are equal.
|
|
12
|
+
*/
|
|
13
|
+
function compareTextEdits(a, b) {
|
|
14
|
+
const diff = a.range.start.line - b.range.start.line;
|
|
15
|
+
if (diff === 0) {
|
|
16
|
+
const startCharacterDiff = a.range.start.character - b.range.start.character;
|
|
17
|
+
if (startCharacterDiff === 0) {
|
|
18
|
+
const endLineDiff = a.range.end.line - b.range.end.line;
|
|
19
|
+
if (endLineDiff === 0) {
|
|
20
|
+
return a.range.end.character - b.range.end.character;
|
|
21
|
+
}
|
|
22
|
+
return endLineDiff;
|
|
23
|
+
}
|
|
24
|
+
return a.range.start.character - b.range.start.character;
|
|
25
|
+
}
|
|
26
|
+
return diff;
|
|
27
|
+
}
|
|
28
|
+
exports.compareTextEdits = compareTextEdits;
|
|
29
|
+
//# sourceMappingURL=text-edits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-edits.js","sourceRoot":"","sources":["../../src/utils/text-edits.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;GAQG;AACH,SAAgB,gBAAgB,CAAC,CAAW,EAAE,CAAW;IACrD,MAAM,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;IACrD,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;QACb,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;QAC7E,IAAI,kBAAkB,KAAK,CAAC,EAAE,CAAC;YAC3B,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;YACxD,IAAI,WAAW,KAAK,CAAC,EAAE,CAAC;gBACpB,OAAO,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,SAAS,CAAC;YACzD,CAAC;YACD,OAAO,WAAW,CAAC;QACvB,CAAC;QACD,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC;IAC7D,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAdD,4CAcC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { AliasInformation } from '@sap-ux/odata-annotation-core-types';
|
|
2
|
+
import type { Vocabulary } from '@sap-ux/odata-vocabularies';
|
|
3
|
+
/**
|
|
4
|
+
* Adds vocabularies to the alias map if they are not already present there.
|
|
5
|
+
*
|
|
6
|
+
* @param aliasInfo Base AliasInfo object (it will not be modified)
|
|
7
|
+
* @param vocabularies A map of vocabularies where key is the namespace of vocabulary
|
|
8
|
+
* @returns A copy of the AliasInfo with added vocabularies
|
|
9
|
+
*/
|
|
10
|
+
export declare function addAllVocabulariesToAliasInformation(aliasInfo: AliasInformation, vocabularies: Map<string, Vocabulary>): AliasInformation;
|
|
11
|
+
//# sourceMappingURL=vocabularies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabularies.d.ts","sourceRoot":"","sources":["../src/vocabularies.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AAC5E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D;;;;;;GAMG;AACH,wBAAgB,oCAAoC,CAChD,SAAS,EAAE,gBAAgB,EAC3B,YAAY,EAAE,GAAG,CAAC,MAAM,EAAE,UAAU,CAAC,GACtC,gBAAgB,CAalB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addAllVocabulariesToAliasInformation = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Adds vocabularies to the alias map if they are not already present there.
|
|
6
|
+
*
|
|
7
|
+
* @param aliasInfo Base AliasInfo object (it will not be modified)
|
|
8
|
+
* @param vocabularies A map of vocabularies where key is the namespace of vocabulary
|
|
9
|
+
* @returns A copy of the AliasInfo with added vocabularies
|
|
10
|
+
*/
|
|
11
|
+
function addAllVocabulariesToAliasInformation(aliasInfo, vocabularies) {
|
|
12
|
+
const aliasInfoWithDefaults = JSON.parse(JSON.stringify(aliasInfo));
|
|
13
|
+
for (const [namespace, vocabulary] of vocabularies) {
|
|
14
|
+
if (!aliasInfo.aliasMapVocabulary[namespace]) {
|
|
15
|
+
// add vocabulary with it's default alias
|
|
16
|
+
aliasInfoWithDefaults.aliasMapVocabulary[vocabulary.namespace] = vocabulary.namespace;
|
|
17
|
+
aliasInfoWithDefaults.aliasMapVocabulary[vocabulary.defaultAlias] = vocabulary.namespace;
|
|
18
|
+
aliasInfoWithDefaults.aliasMap[vocabulary.namespace] = vocabulary.namespace;
|
|
19
|
+
aliasInfoWithDefaults.aliasMap[vocabulary.defaultAlias] = vocabulary.namespace;
|
|
20
|
+
aliasInfoWithDefaults.reverseAliasMap[vocabulary.namespace] = vocabulary.defaultAlias;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return aliasInfoWithDefaults;
|
|
24
|
+
}
|
|
25
|
+
exports.addAllVocabulariesToAliasInformation = addAllVocabulariesToAliasInformation;
|
|
26
|
+
//# sourceMappingURL=vocabularies.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vocabularies.js","sourceRoot":"","sources":["../src/vocabularies.ts"],"names":[],"mappings":";;;AAGA;;;;;;GAMG;AACH,SAAgB,oCAAoC,CAChD,SAA2B,EAC3B,YAAqC;IAErC,MAAM,qBAAqB,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC;IACpE,KAAK,MAAM,CAAC,SAAS,EAAE,UAAU,CAAC,IAAI,YAAY,EAAE,CAAC;QACjD,IAAI,CAAC,SAAS,CAAC,kBAAkB,CAAC,SAAS,CAAC,EAAE,CAAC;YAC3C,yCAAyC;YACzC,qBAAqB,CAAC,kBAAkB,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC;YACtF,qBAAqB,CAAC,kBAAkB,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC;YACzF,qBAAqB,CAAC,QAAQ,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC;YAC5E,qBAAqB,CAAC,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,GAAG,UAAU,CAAC,SAAS,CAAC;YAC/E,qBAAqB,CAAC,eAAe,CAAC,UAAU,CAAC,SAAS,CAAC,GAAG,UAAU,CAAC,YAAY,CAAC;QAC1F,CAAC;IACL,CAAC;IACD,OAAO,qBAAqB,CAAC;AACjC,CAAC;AAhBD,oFAgBC"}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import type { Target, WorkspaceEdit } from '@sap-ux/odata-annotation-core-types';
|
|
2
|
+
import type { Project } from '@sap-ux/project-access';
|
|
3
|
+
import type { VocabularyService } from '@sap-ux/odata-vocabularies';
|
|
4
|
+
import { MetadataService } from '@sap-ux/odata-entity-model';
|
|
5
|
+
import { type LocalEDMXService, type CompiledService, type TextFile, type AnnotationServiceAdapter, type AnnotationFileChange } from '../types';
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
export declare class XMLAnnotationServiceAdapter implements AnnotationServiceAdapter {
|
|
10
|
+
private service;
|
|
11
|
+
private vocabularyService;
|
|
12
|
+
private project;
|
|
13
|
+
private appName;
|
|
14
|
+
metadataService: MetadataService;
|
|
15
|
+
splitAnnotationSupport: boolean;
|
|
16
|
+
fileCache: Map<string, string>;
|
|
17
|
+
private documents;
|
|
18
|
+
private metadata;
|
|
19
|
+
private setFileCache;
|
|
20
|
+
private _compiledService;
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
* @returns Compiled XML service.
|
|
24
|
+
*/
|
|
25
|
+
get compiledService(): CompiledService;
|
|
26
|
+
private set compiledService(value);
|
|
27
|
+
/**
|
|
28
|
+
*
|
|
29
|
+
* @param service - Service structure.
|
|
30
|
+
* @param vocabularyService - Vocabulary API.
|
|
31
|
+
* @param project - Project structure.
|
|
32
|
+
* @param appName - Name of the application.
|
|
33
|
+
*/
|
|
34
|
+
constructor(service: LocalEDMXService, vocabularyService: VocabularyService, project: Project, appName: string);
|
|
35
|
+
/**
|
|
36
|
+
* Refreshes internal data structures from the provided project files.
|
|
37
|
+
*
|
|
38
|
+
* @param fileCache - File uri mapped to file content.
|
|
39
|
+
*/
|
|
40
|
+
sync(fileCache: Map<string, string>): void;
|
|
41
|
+
/**
|
|
42
|
+
* Returns all relevant service files.
|
|
43
|
+
*
|
|
44
|
+
* @returns All relevant service files.
|
|
45
|
+
*/
|
|
46
|
+
getAllFiles(): TextFile[];
|
|
47
|
+
/**
|
|
48
|
+
* Creates empty annotation file content for the given service.
|
|
49
|
+
*
|
|
50
|
+
* @param serviceName - Name of the service.
|
|
51
|
+
* @param uri - URI for the new annotation file.
|
|
52
|
+
* @returns New annotation file content.
|
|
53
|
+
*/
|
|
54
|
+
getInitialFileContent(serviceName: string, uri: string): string;
|
|
55
|
+
/**
|
|
56
|
+
* Converts changes to workspace edits.
|
|
57
|
+
*
|
|
58
|
+
* @param changes - Internal changes.
|
|
59
|
+
* @returns Workspace edits.
|
|
60
|
+
*/
|
|
61
|
+
getWorkspaceEdit(changes: AnnotationFileChange[]): Promise<WorkspaceEdit>;
|
|
62
|
+
/**
|
|
63
|
+
* No checking is done for XML files.
|
|
64
|
+
*
|
|
65
|
+
* @param fileCache - Updated file content.
|
|
66
|
+
* @returns Nothing.
|
|
67
|
+
*/
|
|
68
|
+
validateChanges(fileCache: Map<string, string>): void;
|
|
69
|
+
/**
|
|
70
|
+
* Converts annotation object to a string.
|
|
71
|
+
*
|
|
72
|
+
* @param target - Content of an 'Annotations' element.
|
|
73
|
+
* @returns XML representation of the annotations.
|
|
74
|
+
*/
|
|
75
|
+
serializeTarget(target: Target): string;
|
|
76
|
+
private getUniqueNamespace;
|
|
77
|
+
private _getCompiledService;
|
|
78
|
+
private processChange;
|
|
79
|
+
private markElementDeletion;
|
|
80
|
+
private postprocessEdits;
|
|
81
|
+
private updateReferences;
|
|
82
|
+
private removeReferences;
|
|
83
|
+
private addReferences;
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../src/xml/adapter.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAMR,MAAM,EAEN,aAAa,EAGhB,MAAM,qCAAqC,CAAC;AAY7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAE7D,OAAO,EACH,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,QAAQ,EACb,KAAK,wBAAwB,EAC7B,KAAK,oBAAoB,EAI5B,MAAM,UAAU,CAAC;AAWlB;;GAEG;AACH,qBAAa,2BAA4B,YAAW,wBAAwB;IAmCpE,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,iBAAiB;IACzB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,OAAO;IArCZ,eAAe,kBAAyB;IACxC,sBAAsB,UAAS;IAC/B,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEtC,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,QAAQ,CAAyB;IAEzC,OAAO,CAAC,YAAY;IAIpB,OAAO,CAAC,gBAAgB,CAA8B;IACtD;;;OAGG;IACH,IAAW,eAAe,IAAI,eAAe,CAK5C;IACD,OAAO,KAAK,eAAe,QAE1B;IAED;;;;;;OAMG;gBAES,OAAO,EAAE,gBAAgB,EACzB,iBAAiB,EAAE,iBAAiB,EACpC,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,MAAM;IAK3B;;;;OAIG;IACI,IAAI,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAkCjD;;;;OAIG;IACI,WAAW,IAAI,QAAQ,EAAE;IAIhC;;;;;;OAMG;IACI,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM;IA2BtE;;;;;OAKG;IACU,gBAAgB,CAAC,OAAO,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC;IAsCtF;;;;;OAKG;IACI,eAAe,CAAC,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAI5D;;;;;OAKG;IACI,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM;IAI9C,OAAO,CAAC,kBAAkB;IAoB1B,OAAO,CAAC,mBAAmB;IAkB3B,OAAO,CAAC,aAAa;IAiJrB,OAAO,CAAC,mBAAmB;IAoB3B,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,gBAAgB;IAkBxB,OAAO,CAAC,gBAAgB;IAmCxB,OAAO,CAAC,aAAa;CAmCxB"}
|