@rxap/schematics-xml-parser 13.0.1-next.2 → 14.0.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/CHANGELOG.md +18 -2
- package/README.md +1 -1
- package/package.json +8 -2
- package/src/lib/elements/methods/method.element.js +10 -10
- package/src/lib/elements/methods/method.element.js.map +1 -1
- package/src/lib/elements/methods/open-api-remote-method.element.js +5 -5
- package/src/lib/elements/methods/open-api-remote-method.element.js.map +1 -1
- package/src/lib/elements/module.element.js +6 -6
- package/src/lib/elements/module.element.js.map +1 -1
- package/src/lib/elements/type.element.js +7 -7
- package/src/lib/elements/type.element.js.map +1 -1
- package/src/lib/parse-template.js +4 -4
- package/src/lib/parse-template.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,14 +3,30 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
# [14.0.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@13.0.1...@rxap/schematics-xml-parser@14.0.0) (2022-09-11)
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
|
|
9
|
+
### chore
|
|
10
|
+
|
|
11
|
+
* upgrade to 14.x.x ([c9b8ffa](https://gitlab.com/rxap/packages/commit/c9b8ffa50b9d86020143c333a4d4ed8c5af07687))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* upgrade to 14.x.x
|
|
9
17
|
|
|
10
18
|
|
|
11
19
|
|
|
12
20
|
|
|
13
21
|
|
|
22
|
+
## [13.0.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@13.0.1-next.2...@rxap/schematics-xml-parser@13.0.1) (2022-09-11)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
25
|
+
|
|
26
|
+
## [13.0.1-next.2](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@13.0.1-next.1...@rxap/schematics-xml-parser@13.0.1-next.2) (2022-05-09)
|
|
27
|
+
|
|
28
|
+
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
29
|
+
|
|
14
30
|
## [13.0.1-next.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@13.0.1-next.0...@rxap/schematics-xml-parser@13.0.1-next.1) (2022-03-23)
|
|
15
31
|
|
|
16
32
|
|
package/README.md
CHANGED
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
# Installation
|
|
16
16
|
|
|
17
17
|
```
|
|
18
|
-
yarn add @rxap/schematics-xml-parser @rxap/schematics-ts-morph@^13.0.0
|
|
18
|
+
yarn add @rxap/schematics-xml-parser @rxap/schematics-ts-morph@^13.0.0 @rxap/schematics-utilities@^13.0.0 @rxap/xml-parser@^12.1.1
|
|
19
19
|
```
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/schematics-xml-parser",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "14.0.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.3.1"
|
|
6
6
|
},
|
|
7
|
-
"peerDependencies": {},
|
|
8
7
|
"publishConfig": {
|
|
9
8
|
"directory": "../../dist/libs/xml-parser",
|
|
10
9
|
"access": "public"
|
|
@@ -37,5 +36,12 @@
|
|
|
37
36
|
],
|
|
38
37
|
"migrations": "./migration.json"
|
|
39
38
|
},
|
|
39
|
+
"peerDependencies": {
|
|
40
|
+
"@rxap/schematics-ts-morph": "^14.0.0",
|
|
41
|
+
"@rxap/schematics-utilities": "^14.0.0",
|
|
42
|
+
"@rxap/xml-parser": "^12.1.1",
|
|
43
|
+
"ts-morph": "^13.0.3",
|
|
44
|
+
"semver": "^7.3.5"
|
|
45
|
+
},
|
|
40
46
|
"typings": "./src/index.d.ts"
|
|
41
47
|
}
|
|
@@ -19,39 +19,39 @@ let MethodElement = class MethodElement {
|
|
|
19
19
|
return this.name;
|
|
20
20
|
}
|
|
21
21
|
else {
|
|
22
|
-
const methodName = schematics_utilities_1.CoerceSuffix(classify(this.name), 'Method');
|
|
23
|
-
const methodFilePath = path_1.join('/methods', `${dasherize(this.name.replace(/[-_\s]?[m|M]ethod$/, ''))}.method.ts`);
|
|
24
|
-
const methodSourceFile = schematics_ts_morph_1.CoerceSourceFile(project, methodFilePath);
|
|
22
|
+
const methodName = (0, schematics_utilities_1.CoerceSuffix)(classify(this.name), 'Method');
|
|
23
|
+
const methodFilePath = (0, path_1.join)('/methods', `${dasherize(this.name.replace(/[-_\s]?[m|M]ethod$/, ''))}.method.ts`);
|
|
24
|
+
const methodSourceFile = (0, schematics_ts_morph_1.CoerceSourceFile)(project, methodFilePath);
|
|
25
25
|
const methodOptions = {
|
|
26
26
|
statements: [`console.log('${dasherize(methodName)}', parameters);`],
|
|
27
27
|
};
|
|
28
28
|
if (this.parameterType) {
|
|
29
29
|
methodOptions.parameterType = this.parameterType.toValue({ sourceFile: methodSourceFile });
|
|
30
30
|
}
|
|
31
|
-
schematics_ts_morph_1.CoerceMethodClass(methodSourceFile, methodName, methodOptions);
|
|
31
|
+
(0, schematics_ts_morph_1.CoerceMethodClass)(methodSourceFile, methodName, methodOptions);
|
|
32
32
|
return methodName;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
tslib_1.__decorate([
|
|
37
|
-
decorators_1.ElementTextContent(),
|
|
38
|
-
decorators_1.ElementRequired(),
|
|
37
|
+
(0, decorators_1.ElementTextContent)(),
|
|
38
|
+
(0, decorators_1.ElementRequired)(),
|
|
39
39
|
tslib_1.__metadata("design:type", String)
|
|
40
40
|
], MethodElement.prototype, "name", void 0);
|
|
41
41
|
tslib_1.__decorate([
|
|
42
|
-
decorators_1.ElementAttribute(),
|
|
42
|
+
(0, decorators_1.ElementAttribute)(),
|
|
43
43
|
tslib_1.__metadata("design:type", String)
|
|
44
44
|
], MethodElement.prototype, "from", void 0);
|
|
45
45
|
tslib_1.__decorate([
|
|
46
|
-
decorators_1.ElementAttribute(),
|
|
46
|
+
(0, decorators_1.ElementAttribute)(),
|
|
47
47
|
tslib_1.__metadata("design:type", Boolean)
|
|
48
48
|
], MethodElement.prototype, "mock", void 0);
|
|
49
49
|
tslib_1.__decorate([
|
|
50
|
-
decorators_1.ElementChild(type_element_1.TypeElement),
|
|
50
|
+
(0, decorators_1.ElementChild)(type_element_1.TypeElement),
|
|
51
51
|
tslib_1.__metadata("design:type", type_element_1.TypeElement)
|
|
52
52
|
], MethodElement.prototype, "parameterType", void 0);
|
|
53
53
|
MethodElement = tslib_1.__decorate([
|
|
54
|
-
decorators_1.ElementDef('method')
|
|
54
|
+
(0, decorators_1.ElementDef)('method')
|
|
55
55
|
], MethodElement);
|
|
56
56
|
exports.MethodElement = MethodElement;
|
|
57
57
|
//# sourceMappingURL=method.element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.element.js","sourceRoot":"","sources":["../../../../../../../libs/xml-parser/src/lib/elements/methods/method.element.ts"],"names":[],"mappings":";;;;AACA,4DAMqC;AAErC,+BAA4B;AAC5B,+CAA+C;AAC/C,qEAA0D;AAC1D,mEAAuH;AACvH,kDAA8C;AAE9C,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,cAAO,CAAC;AAOlD,IAAa,aAAa,GAA1B,MAAa,aAAa;IAejB,OAAO,CAAC,EAAE,UAAU,EAAE,OAAO,EAA+C;QACjF,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,UAAU,CAAC,oBAAoB,CAAC;gBAC9B,YAAY,EAAE,CAAE,IAAI,CAAC,IAAI,CAAE;gBAC3B,eAAe,EAAE,IAAI,CAAC,IAAI;aAC3B,CAAC,CAAC;YACH,OAAO,IAAI,CAAC,IAAI,CAAC;SAClB;aAAM;YACL,MAAM,UAAU,GAAG,mCAAY,
|
|
1
|
+
{"version":3,"file":"method.element.js","sourceRoot":"","sources":["../../../../../../../libs/xml-parser/src/lib/elements/methods/method.element.ts"],"names":[],"mappings":";;;;AACA,4DAMqC;AAErC,+BAA4B;AAC5B,+CAA+C;AAC/C,qEAA0D;AAC1D,mEAAuH;AACvH,kDAA8C;AAE9C,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,cAAO,CAAC;AAOlD,IAAa,aAAa,GAA1B,MAAa,aAAa;IAejB,OAAO,CAAC,EAAE,UAAU,EAAE,OAAO,EAA+C;QACjF,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,UAAU,CAAC,oBAAoB,CAAC;gBAC9B,YAAY,EAAE,CAAE,IAAI,CAAC,IAAI,CAAE;gBAC3B,eAAe,EAAE,IAAI,CAAC,IAAI;aAC3B,CAAC,CAAC;YACH,OAAO,IAAI,CAAC,IAAI,CAAC;SAClB;aAAM;YACL,MAAM,UAAU,GAAG,IAAA,mCAAY,EAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,CAAC;YAC/D,MAAM,cAAc,GAAG,IAAA,WAAI,EAAC,UAAU,EAAE,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC;YAC/G,MAAM,gBAAgB,GAAG,IAAA,sCAAgB,EAAC,OAAO,EAAE,cAAc,CAAC,CAAC;YACnE,MAAM,aAAa,GAA0B;gBAC3C,UAAU,EAAE,CAAE,gBAAgB,SAAS,CAAC,UAAU,CAAC,iBAAiB,CAAE;aACvE,CAAC;YACF,IAAI,IAAI,CAAC,aAAa,EAAE;gBACtB,aAAa,CAAC,aAAa,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC,CAAC;aAC5F;YACD,IAAA,uCAAiB,EAAC,gBAAgB,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC;YAC/D,OAAO,UAAU,CAAC;SACnB;IACH,CAAC;CAEF,CAAA;AAjCC;IAFC,IAAA,+BAAkB,GAAE;IACpB,IAAA,4BAAe,GAAE;;2CACG;AAGrB;IADC,IAAA,6BAAgB,GAAE;;2CACE;AAGrB;IADC,IAAA,6BAAgB,GAAE;;2CACG;AAGtB;IADC,IAAA,yBAAY,EAAC,0BAAW,CAAC;sCACH,0BAAW;oDAAA;AAbvB,aAAa;IADzB,IAAA,uBAAU,EAAC,QAAQ,CAAC;GACR,aAAa,CAqCzB;AArCY,sCAAa"}
|
|
@@ -20,17 +20,17 @@ let OpenApiRemoteMethodElement = class OpenApiRemoteMethodElement {
|
|
|
20
20
|
}
|
|
21
21
|
};
|
|
22
22
|
tslib_1.__decorate([
|
|
23
|
-
decorators_1.ElementTextContent(),
|
|
24
|
-
decorators_1.ElementRequired(),
|
|
23
|
+
(0, decorators_1.ElementTextContent)(),
|
|
24
|
+
(0, decorators_1.ElementRequired)(),
|
|
25
25
|
tslib_1.__metadata("design:type", String)
|
|
26
26
|
], OpenApiRemoteMethodElement.prototype, "name", void 0);
|
|
27
27
|
tslib_1.__decorate([
|
|
28
|
-
decorators_1.ElementAttribute(),
|
|
28
|
+
(0, decorators_1.ElementAttribute)(),
|
|
29
29
|
tslib_1.__metadata("design:type", Boolean)
|
|
30
30
|
], OpenApiRemoteMethodElement.prototype, "mock", void 0);
|
|
31
31
|
OpenApiRemoteMethodElement = tslib_1.__decorate([
|
|
32
|
-
decorators_1.ElementExtends(method_element_1.MethodElement),
|
|
33
|
-
decorators_1.ElementDef('open-api-remote-method')
|
|
32
|
+
(0, decorators_1.ElementExtends)(method_element_1.MethodElement),
|
|
33
|
+
(0, decorators_1.ElementDef)('open-api-remote-method')
|
|
34
34
|
], OpenApiRemoteMethodElement);
|
|
35
35
|
exports.OpenApiRemoteMethodElement = OpenApiRemoteMethodElement;
|
|
36
36
|
//# sourceMappingURL=open-api-remote-method.element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-api-remote-method.element.js","sourceRoot":"","sources":["../../../../../../../libs/xml-parser/src/lib/elements/methods/open-api-remote-method.element.ts"],"names":[],"mappings":";;;;AAAA,4DAMqC;AAGrC,+CAA+C;AAC/C,qDAG0B;AAE1B,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,cAAO,CAAC;AAIlD,IAAa,0BAA0B,GAAvC,MAAa,0BAA0B;IAS9B,OAAO,CAAC,EAAE,UAAU,EAAE,OAAO,EAAmE;QAErG,MAAM,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC;QAErE,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;SACxD;QAED,UAAU,CAAC,oBAAoB,CAAC;YAC9B,YAAY,EAAK,CAAE,uBAAuB,CAAE;YAC5C,eAAe,EAAE,GAAG,OAAO,CAAC,aAAa,mBAAmB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB;SACjG,CAAC,CAAC;QAEH,OAAO,uBAAuB,CAAC;IAEjC,CAAC;CAEF,CAAA;AAtBC;IAFC,+BAAkB,
|
|
1
|
+
{"version":3,"file":"open-api-remote-method.element.js","sourceRoot":"","sources":["../../../../../../../libs/xml-parser/src/lib/elements/methods/open-api-remote-method.element.ts"],"names":[],"mappings":";;;;AAAA,4DAMqC;AAGrC,+CAA+C;AAC/C,qDAG0B;AAE1B,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,cAAO,CAAC;AAIlD,IAAa,0BAA0B,GAAvC,MAAa,0BAA0B;IAS9B,OAAO,CAAC,EAAE,UAAU,EAAE,OAAO,EAAmE;QAErG,MAAM,uBAAuB,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,cAAc,CAAC;QAErE,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;SACxD;QAED,UAAU,CAAC,oBAAoB,CAAC;YAC9B,YAAY,EAAK,CAAE,uBAAuB,CAAE;YAC5C,eAAe,EAAE,GAAG,OAAO,CAAC,aAAa,mBAAmB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB;SACjG,CAAC,CAAC;QAEH,OAAO,uBAAuB,CAAC;IAEjC,CAAC;CAEF,CAAA;AAtBC;IAFC,IAAA,+BAAkB,GAAE;IACpB,IAAA,4BAAe,GAAE;;wDACG;AAGrB;IADC,IAAA,6BAAgB,GAAE;;wDACG;AAPX,0BAA0B;IAFtC,IAAA,2BAAc,EAAC,8BAAa,CAAC;IAC7B,IAAA,uBAAU,EAAC,wBAAwB,CAAC;GACxB,0BAA0B,CA0BtC;AA1BY,gEAA0B"}
|
|
@@ -7,23 +7,23 @@ const decorators_1 = require("@rxap/xml-parser/decorators");
|
|
|
7
7
|
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
8
8
|
let ModuleElement = class ModuleElement {
|
|
9
9
|
handleComponentModule({ sourceFile, project, options }) {
|
|
10
|
-
schematics_ts_morph_1.AddNgModuleImport(sourceFile, this.name, this.form);
|
|
10
|
+
(0, schematics_ts_morph_1.AddNgModuleImport)(sourceFile, this.name, this.form);
|
|
11
11
|
}
|
|
12
12
|
toValue({ project, options }) {
|
|
13
|
-
return schematics_1.noop();
|
|
13
|
+
return (0, schematics_1.noop)();
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
tslib_1.__decorate([
|
|
17
|
-
decorators_1.ElementChildTextContent(),
|
|
18
|
-
decorators_1.ElementRequired(),
|
|
17
|
+
(0, decorators_1.ElementChildTextContent)(),
|
|
18
|
+
(0, decorators_1.ElementRequired)(),
|
|
19
19
|
tslib_1.__metadata("design:type", String)
|
|
20
20
|
], ModuleElement.prototype, "name", void 0);
|
|
21
21
|
tslib_1.__decorate([
|
|
22
|
-
decorators_1.ElementChildTextContent(),
|
|
22
|
+
(0, decorators_1.ElementChildTextContent)(),
|
|
23
23
|
tslib_1.__metadata("design:type", String)
|
|
24
24
|
], ModuleElement.prototype, "form", void 0);
|
|
25
25
|
ModuleElement = tslib_1.__decorate([
|
|
26
|
-
decorators_1.ElementDef('module')
|
|
26
|
+
(0, decorators_1.ElementDef)('module')
|
|
27
27
|
], ModuleElement);
|
|
28
28
|
exports.ModuleElement = ModuleElement;
|
|
29
29
|
//# sourceMappingURL=module.element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.element.js","sourceRoot":"","sources":["../../../../../../libs/xml-parser/src/lib/elements/module.element.ts"],"names":[],"mappings":";;;;AACA,2DAAwD;AACxD,4DAIqC;AAErC,mEAImC;AAGnC,IAAa,aAAa,GAA1B,MAAa,aAAa;IASjB,qBAAqB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAA+C;QACxG,uCAAiB,
|
|
1
|
+
{"version":3,"file":"module.element.js","sourceRoot":"","sources":["../../../../../../libs/xml-parser/src/lib/elements/module.element.ts"],"names":[],"mappings":";;;;AACA,2DAAwD;AACxD,4DAIqC;AAErC,mEAImC;AAGnC,IAAa,aAAa,GAA1B,MAAa,aAAa;IASjB,qBAAqB,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAA+C;QACxG,IAAA,uCAAiB,EAAC,UAAU,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAEM,OAAO,CAAC,EAAE,OAAO,EAAE,OAAO,EAAkB;QACjD,OAAO,IAAA,iBAAI,GAAE,CAAC;IAChB,CAAC;CAEF,CAAA;AAbC;IAFC,IAAA,oCAAuB,GAAE;IACzB,IAAA,4BAAe,GAAE;;2CACG;AAGrB;IADC,IAAA,oCAAuB,GAAE;;2CACL;AAPV,aAAa;IADzB,IAAA,uBAAU,EAAC,QAAQ,CAAC;GACR,aAAa,CAiBzB;AAjBY,sCAAa"}
|
|
@@ -21,20 +21,20 @@ let TypeElement = class TypeElement {
|
|
|
21
21
|
}
|
|
22
22
|
};
|
|
23
23
|
tslib_1.__decorate([
|
|
24
|
-
decorators_1.ElementChildTextContent(),
|
|
25
|
-
decorators_1.ElementRequired(),
|
|
24
|
+
(0, decorators_1.ElementChildTextContent)(),
|
|
25
|
+
(0, decorators_1.ElementRequired)(),
|
|
26
26
|
tslib_1.__metadata("design:type", String)
|
|
27
27
|
], TypeElement.prototype, "name", void 0);
|
|
28
28
|
tslib_1.__decorate([
|
|
29
|
-
decorators_1.ElementChildTextContent(),
|
|
29
|
+
(0, decorators_1.ElementChildTextContent)(),
|
|
30
30
|
tslib_1.__metadata("design:type", String)
|
|
31
31
|
], TypeElement.prototype, "from", void 0);
|
|
32
32
|
tslib_1.__decorate([
|
|
33
|
-
decorators_1.ElementAttribute(),
|
|
33
|
+
(0, decorators_1.ElementAttribute)(),
|
|
34
34
|
tslib_1.__metadata("design:type", Boolean)
|
|
35
35
|
], TypeElement.prototype, "nullable", void 0);
|
|
36
36
|
TypeElement = tslib_1.__decorate([
|
|
37
|
-
decorators_1.ElementDef('type')
|
|
37
|
+
(0, decorators_1.ElementDef)('type')
|
|
38
38
|
], TypeElement);
|
|
39
39
|
exports.TypeElement = TypeElement;
|
|
40
40
|
let StringTypeElement = class StringTypeElement extends TypeElement {
|
|
@@ -44,8 +44,8 @@ let StringTypeElement = class StringTypeElement extends TypeElement {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
StringTypeElement = tslib_1.__decorate([
|
|
47
|
-
decorators_1.ElementExtends(TypeElement),
|
|
48
|
-
decorators_1.ElementDef('string-type')
|
|
47
|
+
(0, decorators_1.ElementExtends)(TypeElement),
|
|
48
|
+
(0, decorators_1.ElementDef)('string-type')
|
|
49
49
|
], StringTypeElement);
|
|
50
50
|
exports.StringTypeElement = StringTypeElement;
|
|
51
51
|
//# sourceMappingURL=type.element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.element.js","sourceRoot":"","sources":["../../../../../../libs/xml-parser/src/lib/elements/type.element.ts"],"names":[],"mappings":";;;;AAAA,4DAMqC;AAKrC,IAAa,WAAW,GAAxB,MAAa,WAAW;IAYtB,IAAW,IAAI;QACb,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,OAAO,CAAE,IAAI,CAAC,IAAI,EAAE,MAAM,CAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC1C;QACD,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAEM,OAAO,CAAC,EAAE,UAAU,EAA8B;QACvD,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,UAAU,CAAC,oBAAoB,CAAC;gBAC9B,YAAY,EAAE,CAAE,IAAI,CAAC,IAAI,CAAE;gBAC3B,eAAe,EAAE,IAAI,CAAC,IAAI;aAC3B,CAAC,CAAC;SACJ;QACD,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CAEF,CAAA;AAzBC;IAFC,oCAAuB,
|
|
1
|
+
{"version":3,"file":"type.element.js","sourceRoot":"","sources":["../../../../../../libs/xml-parser/src/lib/elements/type.element.ts"],"names":[],"mappings":";;;;AAAA,4DAMqC;AAKrC,IAAa,WAAW,GAAxB,MAAa,WAAW;IAYtB,IAAW,IAAI;QACb,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,OAAO,CAAE,IAAI,CAAC,IAAI,EAAE,MAAM,CAAE,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAC1C;QACD,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;IAEM,OAAO,CAAC,EAAE,UAAU,EAA8B;QACvD,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,UAAU,CAAC,oBAAoB,CAAC;gBAC9B,YAAY,EAAE,CAAE,IAAI,CAAC,IAAI,CAAE;gBAC3B,eAAe,EAAE,IAAI,CAAC,IAAI;aAC3B,CAAC,CAAC;SACJ;QACD,OAAO,IAAI,CAAC,IAAI,CAAC;IACnB,CAAC;CAEF,CAAA;AAzBC;IAFC,IAAA,oCAAuB,GAAE;IACzB,IAAA,4BAAe,GAAE;;yCACG;AAGrB;IADC,IAAA,oCAAuB,GAAE;;yCACL;AAGrB;IADC,IAAA,6BAAgB,GAAE;;6CACO;AAVf,WAAW;IADvB,IAAA,uBAAU,EAAC,MAAM,CAAC;GACN,WAAW,CA6BvB;AA7BY,kCAAW;AAiCxB,IAAa,iBAAiB,GAA9B,MAAa,iBAAkB,SAAQ,WAAW;IAAlD;;QAES,SAAI,GAAG,QAAQ,CAAC;IAEzB,CAAC;CAAA,CAAA;AAJY,iBAAiB;IAF7B,IAAA,2BAAc,EAAC,WAAW,CAAC;IAC3B,IAAA,uBAAU,EAAC,aAAa,CAAC;GACb,iBAAiB,CAI7B;AAJY,8CAAiB"}
|
|
@@ -6,7 +6,7 @@ const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
|
6
6
|
const path_1 = require("path");
|
|
7
7
|
function FindTemplate(template, host, basePath, baseDirEntry = host.getDir('templates')) {
|
|
8
8
|
if (basePath) {
|
|
9
|
-
const path = path_1.join(baseDirEntry.path, basePath, template);
|
|
9
|
+
const path = (0, path_1.join)(baseDirEntry.path, basePath, template);
|
|
10
10
|
if (host.exists(path)) {
|
|
11
11
|
return path;
|
|
12
12
|
}
|
|
@@ -15,7 +15,7 @@ function FindTemplate(template, host, basePath, baseDirEntry = host.getDir('temp
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
else {
|
|
18
|
-
const path = path_1.join(baseDirEntry.path, template);
|
|
18
|
+
const path = (0, path_1.join)(baseDirEntry.path, template);
|
|
19
19
|
if (host.exists(path)) {
|
|
20
20
|
return path;
|
|
21
21
|
}
|
|
@@ -24,7 +24,7 @@ function FindTemplate(template, host, basePath, baseDirEntry = host.getDir('temp
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
{
|
|
27
|
-
const path = path_1.join(baseDirEntry.path, 'shared', template);
|
|
27
|
+
const path = (0, path_1.join)(baseDirEntry.path, 'shared', template);
|
|
28
28
|
if (host.exists(path)) {
|
|
29
29
|
return path;
|
|
30
30
|
}
|
|
@@ -75,7 +75,7 @@ function ParseTemplate(host, template, basePath, ...elements) {
|
|
|
75
75
|
let templateFile;
|
|
76
76
|
let filename = '__inline__';
|
|
77
77
|
let templateFilePath = template;
|
|
78
|
-
const basePathList = schematics_utilities_1.coerceArray(basePath);
|
|
78
|
+
const basePathList = (0, schematics_utilities_1.coerceArray)(basePath);
|
|
79
79
|
if (template.match(/\.xml$/)) {
|
|
80
80
|
if (!host.exists(template)) {
|
|
81
81
|
for (const bp of basePathList) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-template.js","sourceRoot":"","sources":["../../../../../libs/xml-parser/src/lib/parse-template.ts"],"names":[],"mappings":";;;AAAA,iDAAmE;AACnE,qEAAsE;AAEtE,+BAA4B;AAE5B,SAAgB,YAAY,CAAC,QAAgB,EAAE,IAAU,EAAE,QAA4B,EAAE,eAAyB,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;IAExI,IAAI,QAAQ,EAAE;QACZ,MAAM,IAAI,GAAG,WAAI,
|
|
1
|
+
{"version":3,"file":"parse-template.js","sourceRoot":"","sources":["../../../../../libs/xml-parser/src/lib/parse-template.ts"],"names":[],"mappings":";;;AAAA,iDAAmE;AACnE,qEAAsE;AAEtE,+BAA4B;AAE5B,SAAgB,YAAY,CAAC,QAAgB,EAAE,IAAU,EAAE,QAA4B,EAAE,eAAyB,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;IAExI,IAAI,QAAQ,EAAE;QACZ,MAAM,IAAI,GAAG,IAAA,WAAI,EAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACzD,IAAI,IAAI,CAAC,M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