@rxap/schematics-xml-parser 12.1.1 → 12.2.0-next.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
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [12.2.0-next.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.1.1...@rxap/schematics-xml-parser@12.2.0-next.0) (2021-11-30)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **type-element:** expose the type property accessor ([b64f710](https://gitlab.com/rxap/packages/commit/b64f7104025aa808e14bb352cfcaa30bc31c42f0))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [12.1.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.1.0...@rxap/schematics-xml-parser@12.1.1) (2021-08-02)
|
|
7
18
|
|
|
8
19
|
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/schematics-xml-parser",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.0-next.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@rxap/utilities": "^12.2.1",
|
|
6
6
|
"tslib": "^2.0.0"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@rxap/schematics-ts-morph": "^12.3.
|
|
10
|
-
"@rxap/xml-parser": "^12.1.0",
|
|
9
|
+
"@rxap/schematics-ts-morph": "^12.3.2",
|
|
10
|
+
"@rxap/xml-parser": "^12.1.1-next.0",
|
|
11
11
|
"ts-morph": "^11.0.0"
|
|
12
12
|
},
|
|
13
13
|
"publishConfig": {
|
|
@@ -4,6 +4,12 @@ exports.StringTypeElement = exports.TypeElement = void 0;
|
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const decorators_1 = require("@rxap/xml-parser/decorators");
|
|
6
6
|
let TypeElement = class TypeElement {
|
|
7
|
+
get type() {
|
|
8
|
+
if (this.nullable) {
|
|
9
|
+
return [this.name, 'null'].join(' | ');
|
|
10
|
+
}
|
|
11
|
+
return this.name;
|
|
12
|
+
}
|
|
7
13
|
toValue({ sourceFile }) {
|
|
8
14
|
if (this.from) {
|
|
9
15
|
sourceFile.addImportDeclaration({
|
|
@@ -11,10 +17,7 @@ let TypeElement = class TypeElement {
|
|
|
11
17
|
moduleSpecifier: this.from
|
|
12
18
|
});
|
|
13
19
|
}
|
|
14
|
-
|
|
15
|
-
return [this.name, 'null'].join(' | ');
|
|
16
|
-
}
|
|
17
|
-
return this.name;
|
|
20
|
+
return this.type;
|
|
18
21
|
}
|
|
19
22
|
};
|
|
20
23
|
tslib_1.__decorate([
|
|
@@ -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;
|
|
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,EAAE;IACzB,4BAAe,EAAE;;yCACG;AAGrB;IADC,oCAAuB,EAAE;;yCACL;AAGrB;IADC,6BAAgB,EAAE;;6CACO;AAVf,WAAW;IADvB,uBAAU,CAAC,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,2BAAc,CAAC,WAAW,CAAC;IAC3B,uBAAU,CAAC,aAAa,CAAC;GACb,iBAAiB,CAI7B;AAJY,8CAAiB"}
|