@rxap/schematics-xml-parser 12.1.0-next.1 → 12.2.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,44 @@
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](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.2.0-next.0...@rxap/schematics-xml-parser@12.2.0) (2022-02-19)
7
+
8
+ **Note:** Version bump only for package @rxap/schematics-xml-parser
9
+
10
+
11
+
12
+
13
+
14
+ # [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)
15
+
16
+
17
+ ### Features
18
+
19
+ * **type-element:** expose the type property accessor ([b64f710](https://gitlab.com/rxap/packages/commit/b64f7104025aa808e14bb352cfcaa30bc31c42f0))
20
+
21
+
22
+
23
+
24
+
25
+ ## [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)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * add missing peer dependencies ([83481ea](https://gitlab.com/rxap/packages/commit/83481eafb7912aef4e9574abc416edfd5f025898))
31
+
32
+
33
+
34
+
35
+
36
+ # [12.1.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.1.0-next.1...@rxap/schematics-xml-parser@12.1.0) (2021-07-22)
37
+
38
+ **Note:** Version bump only for package @rxap/schematics-xml-parser
39
+
40
+
41
+
42
+
43
+
6
44
  # [12.1.0-next.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.1.0-next.0...@rxap/schematics-xml-parser@12.1.0-next.1) (2021-07-20)
7
45
 
8
46
 
package/README.md CHANGED
@@ -15,6 +15,6 @@
15
15
  # Installation
16
16
 
17
17
  ```
18
- yarn add @rxap/schematics-xml-parser @rxap/xml-parser@^12.0.9
18
+ yarn add @rxap/schematics-xml-parser @rxap/schematics-ts-morph@^12.3.2 @rxap/xml-parser@^12.1.1-next.0
19
19
  ```
20
20
 
package/package.json CHANGED
@@ -1,12 +1,13 @@
1
1
  {
2
2
  "name": "@rxap/schematics-xml-parser",
3
- "version": "12.1.0-next.1",
3
+ "version": "12.2.0",
4
4
  "dependencies": {
5
- "@rxap/utilities": "^12.2.1-next.0",
5
+ "@rxap/utilities": "^12.2.1",
6
6
  "tslib": "^2.0.0"
7
7
  },
8
8
  "peerDependencies": {
9
- "@rxap/xml-parser": "^12.1.0-next.1",
9
+ "@rxap/schematics-ts-morph": "^12.3.2",
10
+ "@rxap/xml-parser": "^12.1.1-next.0",
10
11
  "ts-morph": "^11.0.0"
11
12
  },
12
13
  "publishConfig": {
@@ -34,6 +35,7 @@
34
35
  },
35
36
  "ng-update": {
36
37
  "packageGroup": [
38
+ "@rxap/schematics-ts-morph",
37
39
  "@rxap/schematics-xml-parser",
38
40
  "@rxap/xml-parser"
39
41
  ],
@@ -4,6 +4,7 @@ export declare class TypeElement implements ParsedElement {
4
4
  name: string;
5
5
  from?: string;
6
6
  nullable?: boolean;
7
+ get type(): string;
7
8
  toValue({ sourceFile }: {
8
9
  sourceFile: SourceFile;
9
10
  }): string;
@@ -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
- if (this.nullable) {
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;IAYf,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,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;CAEF,CAAA;AArBC;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,CAyBvB;AAzBY,kCAAW;AA6BxB,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"}
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"}