@rxap/schematics-xml-parser 16.0.0-dev.0 → 16.0.0-dev.10
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 +84 -139
- package/{LICENSE → LICENSE.md} +3 -12
- package/README.md +7 -6
- package/package.json +57 -32
- package/src/index.d.ts +3 -6
- package/src/index.js +3 -10
- package/src/index.js.map +1 -1
- package/src/lib/elements/index.d.ts +2 -0
- package/src/lib/elements/index.js +6 -0
- package/src/lib/elements/index.js.map +1 -0
- package/src/lib/elements/methods/index.d.ts +3 -0
- package/src/lib/elements/methods/index.js +7 -0
- package/src/lib/elements/methods/index.js.map +1 -0
- package/src/lib/elements/methods/method.element.d.ts +1 -1
- package/src/lib/elements/methods/method.element.js +14 -15
- package/src/lib/elements/methods/method.element.js.map +1 -1
- package/src/lib/elements/methods/methods.js +1 -1
- package/src/lib/elements/methods/methods.js.map +1 -1
- package/src/lib/elements/methods/open-api-remote-method.element.d.ts +1 -1
- package/src/lib/elements/methods/open-api-remote-method.element.js +13 -13
- package/src/lib/elements/methods/open-api-remote-method.element.js.map +1 -1
- package/src/lib/elements/module.element.d.ts +3 -3
- package/src/lib/elements/module.element.js +9 -10
- package/src/lib/elements/module.element.js.map +1 -1
- package/src/lib/elements/type.element.js +15 -16
- package/src/lib/elements/type.element.js.map +1 -1
- package/src/lib/index.d.ts +1 -0
- package/src/lib/index.js +5 -0
- package/src/lib/index.js.map +1 -0
- package/src/lib/parse-template.js +1 -1
- package/src/lib/parse-template.js.map +1 -1
- package/migration.json +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,277 +3,222 @@
|
|
|
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
|
-
# [16.0.0-dev.
|
|
6
|
+
# [16.0.0-dev.10](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@16.0.0-dev.9...@rxap/schematics-xml-parser@16.0.0-dev.10) (2023-08-31)
|
|
7
7
|
|
|
8
|
+
### Bug Fixes
|
|
8
9
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* upgrade to 16.x.x ([81cd2ca](https://gitlab.com/rxap/packages/commit/81cd2cab02c29c81e50ebe1b5c699953dce528ee))
|
|
10
|
+
- ensure the project name is not included in the project tag list ([b131ac3](https://gitlab.com/rxap/packages/commit/b131ac3bd92b3b8799d62f15bbd30a1997d7c753))
|
|
12
11
|
|
|
12
|
+
# [16.0.0-dev.9](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@16.0.0-dev.8...@rxap/schematics-xml-parser@16.0.0-dev.9) (2023-08-17)
|
|
13
13
|
|
|
14
|
-
###
|
|
15
|
-
|
|
16
|
-
* upgrade to 16.x.x
|
|
14
|
+
### Reverts
|
|
17
15
|
|
|
16
|
+
- change from commonjs to es2022 ([747a381](https://gitlab.com/rxap/packages/commit/747a381a090f0a276cf363da61bb19ed0c9cb5b7))
|
|
18
17
|
|
|
18
|
+
# [16.0.0-dev.8](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@16.0.0-dev.7...@rxap/schematics-xml-parser@16.0.0-dev.8) (2023-08-16)
|
|
19
19
|
|
|
20
|
+
### Bug Fixes
|
|
20
21
|
|
|
22
|
+
- change from commonjs to es2022 ([fd0f2ba](https://gitlab.com/rxap/packages/commit/fd0f2bae24eae7c854e96f630076cd5598c30be6))
|
|
21
23
|
|
|
22
|
-
# [
|
|
24
|
+
# [16.0.0-dev.7](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@16.0.0-dev.6...@rxap/schematics-xml-parser@16.0.0-dev.7) (2023-08-04)
|
|
23
25
|
|
|
26
|
+
### Bug Fixes
|
|
24
27
|
|
|
25
|
-
|
|
28
|
+
- add licence file to publishable packages ([ca6d4d5](https://gitlab.com/rxap/packages/commit/ca6d4d509a743b89bad5ed7ae935d3007231705a))
|
|
29
|
+
- generate readme with peer dependencies to install ([e7039bb](https://gitlab.com/rxap/packages/commit/e7039bb5e86ffeadfe7cc92d5fc71d32f8efb4fb))
|
|
26
30
|
|
|
27
|
-
|
|
28
|
-
* upgrade to nrwl 15.x.x ([de2b991](https://gitlab.com/rxap/packages/commit/de2b99196ee6d388f37efd17b464a5bfa744de7e))
|
|
31
|
+
# 16.0.0-dev.6 (2023-08-01)
|
|
29
32
|
|
|
33
|
+
### Bug Fixes
|
|
30
34
|
|
|
31
|
-
|
|
35
|
+
- restructure and merge mono repos packages, schematics, plugins and nest ([a057d77](https://gitlab.com/rxap/packages/commit/a057d77ca2acf9426a03a497da8532f8a2fe2c86))
|
|
36
|
+
- update package dependency versions ([45bd022](https://gitlab.com/rxap/packages/commit/45bd022d755c0c11f7d0bcc76d26b39928007941))
|
|
32
37
|
|
|
33
|
-
|
|
34
|
-
* upgrade nrwl 15.x.x
|
|
38
|
+
# [16.0.0-dev.5](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@16.0.0-dev.4...@rxap/schematics-xml-parser@16.0.0-dev.5) (2023-07-10)
|
|
35
39
|
|
|
40
|
+
### Bug Fixes
|
|
36
41
|
|
|
42
|
+
- update package dependency versions ([8479f5c](https://gitlab.com/rxap/packages/commit/8479f5c405a885cc0f300cec6156584e4c65d59c))
|
|
37
43
|
|
|
44
|
+
# [16.0.0-dev.4](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.0.2...@rxap/schematics-xml-parser@16.0.0-dev.4) (2023-07-10)
|
|
38
45
|
|
|
46
|
+
### Bug Fixes
|
|
39
47
|
|
|
40
|
-
|
|
48
|
+
- restructure and merge mono repos packages, schematics, plugins and nest ([653b4cd](https://gitlab.com/rxap/packages/commit/653b4cd39fc92d322df9b3959651fea0aa6079da))
|
|
41
49
|
|
|
42
|
-
|
|
50
|
+
# [16.0.0-dev.3](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@16.0.0-dev.2...@rxap/schematics-xml-parser@16.0.0-dev.3) (2023-05-31)
|
|
43
51
|
|
|
52
|
+
### Features
|
|
44
53
|
|
|
54
|
+
- use the CoerceImports function for allimports ([901a68a](https://gitlab.com/rxap/packages/commit/901a68a4fcb81d691573ea4ad20412b40cea3ec4))
|
|
45
55
|
|
|
56
|
+
# [16.0.0-dev.2](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@16.0.0-dev.1...@rxap/schematics-xml-parser@16.0.0-dev.2) (2023-05-18)
|
|
46
57
|
|
|
58
|
+
### Bug Fixes
|
|
47
59
|
|
|
48
|
-
|
|
60
|
+
- remove deprecated pack targetconcept ([eeb3748](https://gitlab.com/rxap/schematics/commit/eeb3748be1201fa7f5b3cd05771b95502376d4a3))
|
|
49
61
|
|
|
62
|
+
# [16.0.0-dev.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@16.0.0-dev.0...@rxap/schematics-xml-parser@16.0.0-dev.1) (2023-05-18)
|
|
50
63
|
|
|
51
64
|
### Bug Fixes
|
|
52
65
|
|
|
53
|
-
|
|
66
|
+
- **deps:** update rxap packages to16.x.x ([f9c2263](https://gitlab.com/rxap/schematics/commit/f9c226356bebe4b3ece8b80f4b08cb80582854a7))
|
|
54
67
|
|
|
68
|
+
# [16.0.0-dev.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@15.0.0...@rxap/schematics-xml-parser@16.0.0-dev.0) (2023-05-17)
|
|
55
69
|
|
|
70
|
+
### chore
|
|
56
71
|
|
|
72
|
+
- upgrade to 16.x.x ([81cd2ca](https://gitlab.com/rxap/schematics/commit/81cd2cab02c29c81e50ebe1b5c699953dce528ee))
|
|
57
73
|
|
|
74
|
+
### BREAKING CHANGES
|
|
58
75
|
|
|
59
|
-
|
|
76
|
+
- upgrade to 16.x.x
|
|
60
77
|
|
|
78
|
+
# [15.0.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@14.0.2...@rxap/schematics-xml-parser@15.0.0) (2022-12-14)
|
|
61
79
|
|
|
62
80
|
### chore
|
|
63
81
|
|
|
64
|
-
|
|
65
|
-
|
|
82
|
+
- upgrade to nrwl 15.x.x ([c0a94f6](https://gitlab.com/rxap/schematics/commit/c0a94f6b044213fe55dbda0634bef60859daa345))
|
|
83
|
+
- upgrade to nrwl 15.x.x ([de2b991](https://gitlab.com/rxap/schematics/commit/de2b99196ee6d388f37efd17b464a5bfa744de7e))
|
|
66
84
|
|
|
67
85
|
### BREAKING CHANGES
|
|
68
86
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
87
|
+
- upgrade nrwl 15.x.x
|
|
88
|
+
- upgrade nrwl 15.x.x
|
|
73
89
|
|
|
74
|
-
|
|
75
|
-
## [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)
|
|
90
|
+
## [14.0.2](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@14.0.1...@rxap/schematics-xml-parser@14.0.2) (2022-12-14)
|
|
76
91
|
|
|
77
92
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
78
93
|
|
|
79
|
-
## [
|
|
94
|
+
## [14.0.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@14.0.0...@rxap/schematics-xml-parser@14.0.1) (2022-10-06)
|
|
80
95
|
|
|
81
|
-
|
|
96
|
+
### Bug Fixes
|
|
82
97
|
|
|
83
|
-
|
|
98
|
+
- upgrade all rxap packages to14.x.x ([a720767](https://gitlab.com/rxap/schematics/commit/a7207671d2a7d5b668aa0daaf346ca4393447a90))
|
|
84
99
|
|
|
100
|
+
# [14.0.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@13.0.1...@rxap/schematics-xml-parser@14.0.0) (2022-09-11)
|
|
85
101
|
|
|
86
|
-
###
|
|
102
|
+
### chore
|
|
87
103
|
|
|
88
|
-
|
|
104
|
+
- upgrade to 14.x.x ([c9b8ffa](https://gitlab.com/rxap/schematics/commit/c9b8ffa50b9d86020143c333a4d4ed8c5af07687))
|
|
89
105
|
|
|
106
|
+
### BREAKING CHANGES
|
|
90
107
|
|
|
108
|
+
- upgrade to 14.x.x
|
|
91
109
|
|
|
110
|
+
## [13.0.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@13.0.1-next.2...@rxap/schematics-xml-parser@13.0.1) (2022-09-11)
|
|
92
111
|
|
|
112
|
+
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
93
113
|
|
|
94
|
-
## [13.0.1-next.
|
|
114
|
+
## [13.0.1-next.2](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@13.0.1-next.1...@rxap/schematics-xml-parser@13.0.1-next.2) (2022-05-09)
|
|
95
115
|
|
|
96
116
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
97
117
|
|
|
118
|
+
## [13.0.1-next.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@13.0.1-next.0...@rxap/schematics-xml-parser@13.0.1-next.1) (2022-03-23)
|
|
98
119
|
|
|
120
|
+
### Bug Fixes
|
|
99
121
|
|
|
122
|
+
- remove rxap/utilitiesdependency ([d8dfe16](https://gitlab.com/rxap/schematics/commit/d8dfe168f5d3afd5cd88d4fd143bd2c7b2c687b7))
|
|
100
123
|
|
|
101
|
-
|
|
102
|
-
# [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)
|
|
124
|
+
## [13.0.1-next.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@13.0.0-next.0...@rxap/schematics-xml-parser@13.0.1-next.0) (2022-03-03)
|
|
103
125
|
|
|
104
126
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
105
127
|
|
|
128
|
+
# [12.2.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.2.0-next.0...@rxap/schematics-xml-parser@12.2.0) (2022-02-19)
|
|
106
129
|
|
|
130
|
+
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
107
131
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
# [13.0.0-next.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.2.0-next.0...@rxap/schematics-xml-parser@13.0.0-next.0) (2022-02-19)
|
|
111
|
-
|
|
132
|
+
# [13.0.0-next.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.2.0-next.0...@rxap/schematics-xml-parser@13.0.0-next.0) (2022-02-19)
|
|
112
133
|
|
|
113
134
|
### Build System
|
|
114
135
|
|
|
115
|
-
|
|
116
|
-
|
|
136
|
+
- upgrade to nrwl 13.x.x ([5cd07c1](https://gitlab.com/rxap/schematics/commit/5cd07c19645528c787ef01a121a4a4367db78902))
|
|
117
137
|
|
|
118
138
|
### BREAKING CHANGES
|
|
119
139
|
|
|
120
|
-
|
|
140
|
+
- update the core nrwl packages to 13.x.x
|
|
121
141
|
|
|
122
142
|
Signed-off-by: Merzough Münker <mmuenker@digitaix.com>
|
|
123
143
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
# [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)
|
|
129
|
-
|
|
144
|
+
# [12.2.0-next.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.1.1...@rxap/schematics-xml-parser@12.2.0-next.0) (2021-11-30)
|
|
130
145
|
|
|
131
146
|
### Features
|
|
132
147
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
## [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)
|
|
148
|
+
- **type-element:** expose the type propertyaccessor ([b64f710](https://gitlab.com/rxap/schematics/commit/b64f7104025aa808e14bb352cfcaa30bc31c42f0))
|
|
140
149
|
|
|
150
|
+
## [12.1.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.1.0...@rxap/schematics-xml-parser@12.1.1) (2021-08-02)
|
|
141
151
|
|
|
142
152
|
### Bug Fixes
|
|
143
153
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
154
|
+
- add missing peerdependencies ([83481ea](https://gitlab.com/rxap/schematics/commit/83481eafb7912aef4e9574abc416edfd5f025898))
|
|
149
155
|
|
|
150
|
-
# [12.1.0](https://gitlab.com/rxap/
|
|
156
|
+
# [12.1.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.1.0-next.1...@rxap/schematics-xml-parser@12.1.0) (2021-07-22)
|
|
151
157
|
|
|
152
158
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
153
159
|
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
# [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)
|
|
159
|
-
|
|
160
|
+
# [12.1.0-next.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.1.0-next.0...@rxap/schematics-xml-parser@12.1.0-next.1) (2021-07-20)
|
|
160
161
|
|
|
161
162
|
### Features
|
|
162
163
|
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
# [12.1.0-next.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.0.8...@rxap/schematics-xml-parser@12.1.0-next.0) (2021-07-12)
|
|
164
|
+
- add TypeElementclasses ([775f0c1](https://gitlab.com/rxap/schematics/commit/775f0c11c145881f61ac1964e334b29677647810))
|
|
170
165
|
|
|
166
|
+
# [12.1.0-next.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.0.8...@rxap/schematics-xml-parser@12.1.0-next.0) (2021-07-12)
|
|
171
167
|
|
|
172
168
|
### Features
|
|
173
169
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
170
|
+
- **parse-template:** support multiple base templatepaths ([24773c4](https://gitlab.com/rxap/schematics/commit/24773c426793a0840db06774633be9ccd6383682))
|
|
178
171
|
|
|
179
|
-
|
|
180
|
-
## [12.0.8](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.0.8-next.0...@rxap/schematics-xml-parser@12.0.8) (2021-06-29)
|
|
172
|
+
## [12.0.8](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.0.8-next.0...@rxap/schematics-xml-parser@12.0.8) (2021-06-29)
|
|
181
173
|
|
|
182
174
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
183
175
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
## [12.0.8-next.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.0.7...@rxap/schematics-xml-parser@12.0.8-next.0) (2021-06-23)
|
|
176
|
+
## [12.0.8-next.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.0.7...@rxap/schematics-xml-parser@12.0.8-next.0) (2021-06-23)
|
|
189
177
|
|
|
190
178
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
191
179
|
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
## [12.0.7](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.0.6...@rxap/schematics-xml-parser@12.0.7) (2021-06-23)
|
|
180
|
+
## [12.0.7](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.0.6...@rxap/schematics-xml-parser@12.0.7) (2021-06-23)
|
|
197
181
|
|
|
198
182
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
199
183
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
## [12.0.7-next.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.0.6...@rxap/schematics-xml-parser@12.0.7-next.0) (2021-06-23)
|
|
184
|
+
## [12.0.7-next.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.0.6...@rxap/schematics-xml-parser@12.0.7-next.0) (2021-06-23)
|
|
205
185
|
|
|
206
186
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
207
187
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
## [12.0.6](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.0.4...@rxap/schematics-xml-parser@12.0.6) (2021-06-22)
|
|
188
|
+
## [12.0.6](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.0.4...@rxap/schematics-xml-parser@12.0.6) (2021-06-22)
|
|
213
189
|
|
|
214
190
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
215
191
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
## [12.0.4](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.0.3...@rxap/schematics-xml-parser@12.0.4) (2021-06-17)
|
|
221
|
-
|
|
192
|
+
## [12.0.4](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.0.3...@rxap/schematics-xml-parser@12.0.4) (2021-06-17)
|
|
222
193
|
|
|
223
194
|
### Bug Fixes
|
|
224
195
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
196
|
+
- set correct peerDependencies anddependencies ([92c5eae](https://gitlab.com/rxap/schematics/commit/92c5eae7eb84c65381ed005da1900ce5f0ce80a3))
|
|
230
197
|
|
|
231
198
|
## 12.0.3 (2021-06-14)
|
|
232
199
|
|
|
233
200
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
234
201
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
## [12.0.2](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@11.1.2...@rxap/schematics-xml-parser@12.0.2) (2021-06-09)
|
|
202
|
+
## [12.0.2](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@11.1.2...@rxap/schematics-xml-parser@12.0.2) (2021-06-09)
|
|
240
203
|
|
|
241
204
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
242
205
|
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
## [12.0.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@12.0.0...@rxap/schematics-xml-parser@12.0.1) (2021-05-24)
|
|
206
|
+
## [12.0.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@12.0.0...@rxap/schematics-xml-parser@12.0.1) (2021-05-24)
|
|
248
207
|
|
|
249
208
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
250
209
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
# [12.0.0](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@11.1.1...@rxap/schematics-xml-parser@12.0.0) (2021-05-24)
|
|
210
|
+
# [12.0.0](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@11.1.1...@rxap/schematics-xml-parser@12.0.0) (2021-05-24)
|
|
256
211
|
|
|
257
212
|
**Note:** Version bump only for package @rxap/schematics-xml-parser
|
|
258
213
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
## [11.1.1](https://gitlab.com/rxap/packages/compare/@rxap/schematics-xml-parser@11.1.0...@rxap/schematics-xml-parser@11.1.1) (2021-04-30)
|
|
264
|
-
|
|
214
|
+
## [11.1.1](https://gitlab.com/rxap/schematics/compare/@rxap/schematics-xml-parser@11.1.0...@rxap/schematics-xml-parser@11.1.1) (2021-04-30)
|
|
265
215
|
|
|
266
216
|
### Bug Fixes
|
|
267
217
|
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
218
|
+
- update build target toes6 ([6418b27](https://gitlab.com/rxap/schematics/commit/6418b27af301db0c794bb584504d786ad20cfe8c))
|
|
273
219
|
|
|
274
220
|
# 11.1.0 (2021-04-26)
|
|
275
221
|
|
|
276
|
-
|
|
277
222
|
### Features
|
|
278
223
|
|
|
279
|
-
|
|
224
|
+
- split the @rxap/schematics-utilities into ts-morph, html andxml-parser ([8312bc2](https://gitlab.com/rxap/schematics/commit/8312bc2c11d1b15e57185726b62d3b80acf135f9))
|
package/{LICENSE → LICENSE.md}
RENAMED
|
@@ -1,18 +1,7 @@
|
|
|
1
|
-
Copyright (C) 2021 Merzough Münker
|
|
2
|
-
|
|
3
|
-
This program is free software: you can redistribute it and/or modify
|
|
4
|
-
it under the terms of the GNU General Public License as published by
|
|
5
|
-
the Free Software Foundation, either version 3 of the License, or
|
|
6
|
-
(at your option) any later version.
|
|
7
|
-
|
|
8
|
-
This program is distributed in the hope that it will be useful,
|
|
9
|
-
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
10
|
-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
11
|
-
|
|
12
1
|
GNU GENERAL PUBLIC LICENSE
|
|
13
2
|
Version 3, 29 June 2007
|
|
14
3
|
|
|
15
|
-
Copyright (C) 2007 Free Software Foundation, Inc. <
|
|
4
|
+
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
|
16
5
|
Everyone is permitted to copy and distribute verbatim copies
|
|
17
6
|
of this license document, but changing it is not allowed.
|
|
18
7
|
|
|
@@ -628,3 +617,5 @@ reviewing courts shall apply local law that most closely approximates
|
|
|
628
617
|
an absolute waiver of all civil liability in connection with the
|
|
629
618
|
Program, unless a warranty or assumption of liability accompanies a
|
|
630
619
|
copy of the Program in return for a fee.
|
|
620
|
+
|
|
621
|
+
END OF TERMS AND CONDITIONS
|
package/README.md
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
@rxap/schematics-xml-parser
|
|
2
|
-
======
|
|
1
|
+
# @rxap/schematics-xml-parser
|
|
3
2
|
|
|
4
3
|
[](https://www.npmjs.com/package/@rxap/schematics-xml-parser)
|
|
5
4
|
[](https://commitizen.github.io/cz-cli/)
|
|
@@ -8,13 +7,15 @@
|
|
|
8
7
|

|
|
9
8
|

|
|
10
9
|
|
|
11
|
-
>
|
|
12
|
-
|
|
13
10
|
- [Installation](#installation)
|
|
14
11
|
|
|
15
12
|
# Installation
|
|
16
13
|
|
|
14
|
+
**Add the package to your workspace:**
|
|
15
|
+
```bash
|
|
16
|
+
yarn add @rxap/schematics-xml-parser
|
|
17
17
|
```
|
|
18
|
-
|
|
18
|
+
**Install peer dependencies:**
|
|
19
|
+
```bash
|
|
20
|
+
yarn add @angular-devkit/core@^16.1.4 @angular-devkit/schematics@^16.1.4 @rxap/schematics-ts-morph@^16.0.0-dev.13 @rxap/schematics-utilities@^16.0.0-dev.10 @rxap/xml-parser@^16.0.0-dev.11 ts-morph@^18.0.0
|
|
19
21
|
```
|
|
20
|
-
|
package/package.json
CHANGED
|
@@ -1,49 +1,74 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxap/schematics-xml-parser",
|
|
3
|
-
"version": "16.0.0-dev.
|
|
3
|
+
"version": "16.0.0-dev.10",
|
|
4
|
+
"type": "commonjs",
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular-devkit/core": "^16.1.4",
|
|
7
|
+
"@angular-devkit/schematics": "^16.1.4",
|
|
8
|
+
"@rxap/schematics-ts-morph": "^16.0.0-dev.13",
|
|
9
|
+
"@rxap/schematics-utilities": "^16.0.0-dev.10",
|
|
10
|
+
"@rxap/xml-parser": "^16.0.0-dev.11",
|
|
11
|
+
"ts-morph": "^18.0.0",
|
|
12
|
+
"@rxap/mixin": "16.0.0-dev.9",
|
|
13
|
+
"@rxap/node-utilities": "1.1.0-dev.4",
|
|
14
|
+
"@rxap/reflect-metadata": "1.0.1-dev.5",
|
|
15
|
+
"@rxap/utilities": "16.0.0-dev.13",
|
|
16
|
+
"@rxap/workspace-ts-morph": "0.1.0-dev.3",
|
|
17
|
+
"@rxap/workspace-utilities": "0.1.0-dev.6",
|
|
18
|
+
"@types/xmldom": "0.1.31",
|
|
19
|
+
"handlebars": "4.7.7"
|
|
20
|
+
},
|
|
4
21
|
"dependencies": {
|
|
22
|
+
"ignore": "^5.2.4",
|
|
23
|
+
"process": "0.11.10",
|
|
24
|
+
"reflect-metadata": "^0.1.13",
|
|
5
25
|
"semver": "^7.3.5",
|
|
6
|
-
"tslib": "
|
|
26
|
+
"tslib": "2.5.3",
|
|
27
|
+
"xmldom": "0.6.0"
|
|
7
28
|
},
|
|
8
29
|
"publishConfig": {
|
|
9
|
-
"
|
|
10
|
-
"
|
|
30
|
+
"access": "public",
|
|
31
|
+
"directory": "../../../dist/packages/schematic/xml-parser"
|
|
11
32
|
},
|
|
12
|
-
"main": "src/index.js",
|
|
13
|
-
"license": "GPL-3.0",
|
|
14
33
|
"keywords": [
|
|
15
34
|
"rxap",
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"xml-parser"
|
|
35
|
+
"packages",
|
|
36
|
+
"schematic",
|
|
37
|
+
"xml-parser",
|
|
38
|
+
"schematic-xml-parser"
|
|
19
39
|
],
|
|
20
|
-
"
|
|
21
|
-
"save": "devDependencies"
|
|
22
|
-
},
|
|
23
|
-
"repository": "git@gitlab.com:rxap/packages.git",
|
|
24
|
-
"homepage": "https://gitlab.com/rxap/packages",
|
|
25
|
-
"author": "Merzough Münker",
|
|
26
|
-
"private": false,
|
|
40
|
+
"homepage": "https:/gitlab.com/rxap/packages/packages/schematic/xml-parser",
|
|
27
41
|
"bugs": {
|
|
28
|
-
"url": "https://gitlab.com/rxap/
|
|
42
|
+
"url": "https://gitlab.com/rxap/packages/-/issues",
|
|
29
43
|
"email": "incoming+rxap-packages-14898188-issue-@incoming.gitlab.com"
|
|
30
44
|
},
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"@rxap/xml-parser"
|
|
37
|
-
],
|
|
38
|
-
"migrations": "./migration.json"
|
|
45
|
+
"license": "GPL-3.0-or-later",
|
|
46
|
+
"repository": {
|
|
47
|
+
"type": "git",
|
|
48
|
+
"url": "https://gitlab.com/rxap/packages.git",
|
|
49
|
+
"directory": "packages/schematic/xml-parser"
|
|
39
50
|
},
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
"
|
|
46
|
-
|
|
51
|
+
"author": {
|
|
52
|
+
"name": "Merzough Münker",
|
|
53
|
+
"email": "mmuenker@digitaix.com"
|
|
54
|
+
},
|
|
55
|
+
"nx-migrations": {
|
|
56
|
+
"packageGroup": [
|
|
57
|
+
{
|
|
58
|
+
"package": "@rxap/schematics-ts-morph",
|
|
59
|
+
"version": "16.0.0-dev.13"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"package": "@rxap/schematics-utilities",
|
|
63
|
+
"version": "16.0.0-dev.10"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"package": "@rxap/xml-parser",
|
|
67
|
+
"version": "16.0.0-dev.11"
|
|
68
|
+
}
|
|
69
|
+
]
|
|
47
70
|
},
|
|
71
|
+
"gitHead": "3d49d0a2548a0c403ad55c564108b54ba734a677",
|
|
72
|
+
"main": "./src/index.js",
|
|
48
73
|
"types": "./src/index.d.ts"
|
|
49
74
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
export * from './lib
|
|
2
|
-
export * from './lib/elements
|
|
3
|
-
export * from './lib/elements/
|
|
4
|
-
export * from './lib/elements/methods/methods';
|
|
5
|
-
export * from './lib/elements/methods/open-api-remote-method.element';
|
|
6
|
-
export * from './lib/elements/methods/method.element';
|
|
1
|
+
export * from './lib';
|
|
2
|
+
export * from './lib/elements';
|
|
3
|
+
export * from './lib/elements/methods';
|
package/src/index.js
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./lib
|
|
5
|
-
|
|
6
|
-
tslib_1.__exportStar(require("./lib/elements/
|
|
7
|
-
tslib_1.__exportStar(require("./lib/elements/type.element"), exports);
|
|
8
|
-
// region methods
|
|
9
|
-
tslib_1.__exportStar(require("./lib/elements/methods/methods"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./lib/elements/methods/open-api-remote-method.element"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./lib/elements/methods/method.element"), exports);
|
|
12
|
-
// endregion
|
|
13
|
-
// endregion
|
|
4
|
+
tslib_1.__exportStar(require("./lib"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./lib/elements"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./lib/elements/methods"), exports);
|
|
14
7
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/schematic/xml-parser/src/index.ts"],"names":[],"mappings":";;;AAAA,gDAAsB;AACtB,yDAA+B;AAC/B,iEAAuC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./module.element"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./type.element"), exports);
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/xml-parser/src/lib/elements/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,yDAA+B"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./method.element"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./methods"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./open-api-remote-method.element"), exports);
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/xml-parser/src/lib/elements/methods/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC;AACjC,oDAA0B;AAC1B,2EAAiD"}
|
|
@@ -10,7 +10,7 @@ export declare class MethodElement implements ParsedElement<string>, IMethodElem
|
|
|
10
10
|
from?: string;
|
|
11
11
|
mock?: boolean;
|
|
12
12
|
parameterType?: TypeElement;
|
|
13
|
-
toValue({ sourceFile, project }: {
|
|
13
|
+
toValue({ sourceFile, project, }: {
|
|
14
14
|
sourceFile: SourceFile;
|
|
15
15
|
} & ToValueContext): string;
|
|
16
16
|
}
|
|
@@ -2,19 +2,19 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MethodElement = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
5
|
+
const xml_parser_1 = require("@rxap/xml-parser");
|
|
6
6
|
const path_1 = require("path");
|
|
7
7
|
const core_1 = require("@angular-devkit/core");
|
|
8
8
|
const schematics_utilities_1 = require("@rxap/schematics-utilities");
|
|
9
9
|
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
10
10
|
const type_element_1 = require("../type.element");
|
|
11
|
-
const { dasherize, classify, camelize } = core_1.strings;
|
|
12
|
-
let MethodElement = class MethodElement {
|
|
13
|
-
toValue({ sourceFile, project }) {
|
|
11
|
+
const { dasherize, classify, camelize, } = core_1.strings;
|
|
12
|
+
let MethodElement = exports.MethodElement = class MethodElement {
|
|
13
|
+
toValue({ sourceFile, project, }) {
|
|
14
14
|
if (this.from) {
|
|
15
|
-
|
|
15
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
16
16
|
namedImports: [this.name],
|
|
17
|
-
moduleSpecifier: this.from
|
|
17
|
+
moduleSpecifier: this.from,
|
|
18
18
|
});
|
|
19
19
|
return this.name;
|
|
20
20
|
}
|
|
@@ -28,30 +28,29 @@ let MethodElement = class MethodElement {
|
|
|
28
28
|
if (this.parameterType) {
|
|
29
29
|
methodOptions.parameterType = this.parameterType.toValue({ sourceFile: methodSourceFile });
|
|
30
30
|
}
|
|
31
|
-
(0, schematics_ts_morph_1.
|
|
31
|
+
(0, schematics_ts_morph_1.CoerceMethodClassLegacy)(methodSourceFile, methodName, methodOptions);
|
|
32
32
|
return methodName;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
tslib_1.__decorate([
|
|
37
|
-
(0,
|
|
38
|
-
(0,
|
|
37
|
+
(0, xml_parser_1.ElementTextContent)(),
|
|
38
|
+
(0, xml_parser_1.ElementRequired)(),
|
|
39
39
|
tslib_1.__metadata("design:type", String)
|
|
40
40
|
], MethodElement.prototype, "name", void 0);
|
|
41
41
|
tslib_1.__decorate([
|
|
42
|
-
(0,
|
|
42
|
+
(0, xml_parser_1.ElementAttribute)(),
|
|
43
43
|
tslib_1.__metadata("design:type", String)
|
|
44
44
|
], MethodElement.prototype, "from", void 0);
|
|
45
45
|
tslib_1.__decorate([
|
|
46
|
-
(0,
|
|
46
|
+
(0, xml_parser_1.ElementAttribute)(),
|
|
47
47
|
tslib_1.__metadata("design:type", Boolean)
|
|
48
48
|
], MethodElement.prototype, "mock", void 0);
|
|
49
49
|
tslib_1.__decorate([
|
|
50
|
-
(0,
|
|
50
|
+
(0, xml_parser_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
|
-
MethodElement = tslib_1.__decorate([
|
|
54
|
-
(0,
|
|
53
|
+
exports.MethodElement = MethodElement = tslib_1.__decorate([
|
|
54
|
+
(0, xml_parser_1.ElementDef)('method')
|
|
55
55
|
], MethodElement);
|
|
56
|
-
exports.MethodElement = MethodElement;
|
|
57
56
|
//# sourceMappingURL=method.element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"method.element.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"method.element.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/xml-parser/src/lib/elements/methods/method.element.ts"],"names":[],"mappings":";;;;AAAA,iDAO0B;AAE1B,+BAA4B;AAC5B,+CAA+C;AAC/C,qEAA0D;AAC1D,mEAMmC;AACnC,kDAA8C;AAE9C,MAAM,EACJ,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,GAAG,cAAO,CAAC;AAOL,IAAM,aAAa,2BAAnB,MAAM,aAAa;IAejB,OAAO,CAAC,EACE,UAAU,EACV,OAAO,GACqC;QAC3D,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,IAAA,mCAAa,EAAC,UAAU,EAAE;gBACxB,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,GAAI,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,oBAAoB,EAAE,EAAE,CAAC,CAAE,YAAY,CAAC,CAAC;YACjH,MAAM,gBAAgB,GAAG,IAAA,sCAAgB,EAAC,OAAO,EAAE,cAAc,CAAC,CAAC;YACnE,MAAM,aAAa,GAA0B;gBAC3C,UAAU,EAAE,CAAE,gBAAiB,SAAS,CAAC,UAAU,CAAE,iBAAiB,CAAE;aACzE,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,6CAAuB,EAAC,gBAAgB,EAAE,UAAU,EAAE,aAAa,CAAC,CAAC;YACrE,OAAO,UAAU,CAAC;SACnB;IACH,CAAC;CAEF,CAAA;AApCQ;IAFN,IAAA,+BAAkB,GAAE;IACpB,IAAA,4BAAe,GAAE;;2CACG;AAGd;IADN,IAAA,6BAAgB,GAAE;;2CACE;AAGd;IADN,IAAA,6BAAgB,GAAE;;2CACG;AAGf;IADN,IAAA,yBAAY,EAAC,0BAAW,CAAC;sCACH,0BAAW;oDAAC;wBAbxB,aAAa;IADzB,IAAA,uBAAU,EAAC,QAAQ,CAAC;GACR,aAAa,CAwCzB"}
|
|
@@ -5,6 +5,6 @@ const method_element_1 = require("./method.element");
|
|
|
5
5
|
const open_api_remote_method_element_1 = require("./open-api-remote-method.element");
|
|
6
6
|
exports.Methods = [
|
|
7
7
|
method_element_1.MethodElement,
|
|
8
|
-
open_api_remote_method_element_1.OpenApiRemoteMethodElement
|
|
8
|
+
open_api_remote_method_element_1.OpenApiRemoteMethodElement,
|
|
9
9
|
];
|
|
10
10
|
//# sourceMappingURL=methods.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"methods.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"methods.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/xml-parser/src/lib/elements/methods/methods.ts"],"names":[],"mappings":";;;AAEA,qDAAiD;AACjD,qFAA8E;AAEjE,QAAA,OAAO,GAAsC;IACxD,8BAAa;IACb,2DAA0B;CAC3B,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { IMethodElement } from './method.element';
|
|
|
4
4
|
export declare class OpenApiRemoteMethodElement implements ParsedElement<string>, IMethodElement {
|
|
5
5
|
name: string;
|
|
6
6
|
mock?: boolean;
|
|
7
|
-
toValue({ sourceFile, options }: {
|
|
7
|
+
toValue({ sourceFile, options, }: {
|
|
8
8
|
sourceFile: SourceFile;
|
|
9
9
|
options: {
|
|
10
10
|
openApiModule?: string;
|
|
@@ -2,35 +2,35 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.OpenApiRemoteMethodElement = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
5
|
+
const xml_parser_1 = require("@rxap/xml-parser");
|
|
6
6
|
const core_1 = require("@angular-devkit/core");
|
|
7
7
|
const method_element_1 = require("./method.element");
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
9
|
+
const { dasherize, classify, camelize, } = core_1.strings;
|
|
10
|
+
let OpenApiRemoteMethodElement = exports.OpenApiRemoteMethodElement = class OpenApiRemoteMethodElement {
|
|
11
|
+
toValue({ sourceFile, options, }) {
|
|
11
12
|
const openApiRemoteMethodName = classify(this.name) + 'RemoteMethod';
|
|
12
13
|
if (!options.openApiModule) {
|
|
13
14
|
throw new Error('The open api module is not defined!');
|
|
14
15
|
}
|
|
15
|
-
|
|
16
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
16
17
|
namedImports: [openApiRemoteMethodName],
|
|
17
|
-
moduleSpecifier: `${options.openApiModule}/remote-methods/${dasherize(this.name)}.remote-method
|
|
18
|
+
moduleSpecifier: `${options.openApiModule}/remote-methods/${dasherize(this.name)}.remote-method`,
|
|
18
19
|
});
|
|
19
20
|
return openApiRemoteMethodName;
|
|
20
21
|
}
|
|
21
22
|
};
|
|
22
23
|
tslib_1.__decorate([
|
|
23
|
-
(0,
|
|
24
|
-
(0,
|
|
24
|
+
(0, xml_parser_1.ElementTextContent)(),
|
|
25
|
+
(0, xml_parser_1.ElementRequired)(),
|
|
25
26
|
tslib_1.__metadata("design:type", String)
|
|
26
27
|
], OpenApiRemoteMethodElement.prototype, "name", void 0);
|
|
27
28
|
tslib_1.__decorate([
|
|
28
|
-
(0,
|
|
29
|
+
(0, xml_parser_1.ElementAttribute)(),
|
|
29
30
|
tslib_1.__metadata("design:type", Boolean)
|
|
30
31
|
], OpenApiRemoteMethodElement.prototype, "mock", void 0);
|
|
31
|
-
OpenApiRemoteMethodElement = tslib_1.__decorate([
|
|
32
|
-
(0,
|
|
33
|
-
(0,
|
|
32
|
+
exports.OpenApiRemoteMethodElement = OpenApiRemoteMethodElement = tslib_1.__decorate([
|
|
33
|
+
(0, xml_parser_1.ElementExtends)(method_element_1.MethodElement),
|
|
34
|
+
(0, xml_parser_1.ElementDef)('open-api-remote-method')
|
|
34
35
|
], OpenApiRemoteMethodElement);
|
|
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":["
|
|
1
|
+
{"version":3,"file":"open-api-remote-method.element.js","sourceRoot":"","sources":["../../../../../../../../packages/schematic/xml-parser/src/lib/elements/methods/open-api-remote-method.element.ts"],"names":[],"mappings":";;;;AAAA,iDAO0B;AAE1B,+CAA+C;AAC/C,qDAG0B;AAC1B,mEAA0D;AAE1D,MAAM,EACJ,SAAS,EACT,QAAQ,EACR,QAAQ,GACT,GAAG,cAAO,CAAC;AAIL,IAAM,0BAA0B,wCAAhC,MAAM,0BAA0B;IAS9B,OAAO,CAAC,EACE,UAAU,EACV,OAAO,GACyD;QAE/E,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,IAAA,mCAAa,EAAC,UAAU,EAAE;YACxB,YAAY,EAAE,CAAE,uBAAuB,CAAE;YACzC,eAAe,EAAE,GAAI,OAAO,CAAC,aAAc,mBAAoB,SAAS,CAAC,IAAI,CAAC,IAAI,CAAE,gBAAgB;SACrG,CAAC,CAAC;QAEH,OAAO,uBAAuB,CAAC;IAEjC,CAAC;CAEF,CAAA;AAzBQ;IAFN,IAAA,+BAAkB,GAAE;IACpB,IAAA,4BAAe,GAAE;;wDACG;AAGd;IADN,IAAA,6BAAgB,GAAE;;wDACG;qCAPX,0BAA0B;IAFtC,IAAA,2BAAc,EAAC,8BAAa,CAAC;IAC7B,IAAA,uBAAU,EAAC,wBAAwB,CAAC;GACxB,0BAA0B,CA6BtC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { ParsedElement } from '@rxap/xml-parser';
|
|
2
2
|
import { Rule } from '@angular-devkit/schematics';
|
|
3
3
|
import { SourceFile } from 'ts-morph';
|
|
4
|
-
import {
|
|
4
|
+
import { HandleComponentModule, ToValueContext } from '@rxap/schematics-ts-morph';
|
|
5
5
|
export declare class ModuleElement implements ParsedElement<Rule>, HandleComponentModule {
|
|
6
6
|
name: string;
|
|
7
7
|
form?: string;
|
|
8
|
-
handleComponentModule({ sourceFile, project, options }: ToValueContext & {
|
|
8
|
+
handleComponentModule({ sourceFile, project, options, }: ToValueContext & {
|
|
9
9
|
sourceFile: SourceFile;
|
|
10
10
|
}): void;
|
|
11
|
-
toValue({ project, options }: ToValueContext): Rule;
|
|
11
|
+
toValue({ project, options, }: ToValueContext): Rule;
|
|
12
12
|
}
|
|
@@ -2,28 +2,27 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ModuleElement = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
+
const xml_parser_1 = require("@rxap/xml-parser");
|
|
5
6
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
-
const decorators_1 = require("@rxap/xml-parser/decorators");
|
|
7
7
|
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
8
|
-
let ModuleElement = class ModuleElement {
|
|
9
|
-
handleComponentModule({ sourceFile, project, options }) {
|
|
8
|
+
let ModuleElement = exports.ModuleElement = class ModuleElement {
|
|
9
|
+
handleComponentModule({ sourceFile, project, options, }) {
|
|
10
10
|
(0, schematics_ts_morph_1.AddNgModuleImport)(sourceFile, this.name, this.form);
|
|
11
11
|
}
|
|
12
|
-
toValue({ project, options }) {
|
|
12
|
+
toValue({ project, options, }) {
|
|
13
13
|
return (0, schematics_1.noop)();
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
tslib_1.__decorate([
|
|
17
|
-
(0,
|
|
18
|
-
(0,
|
|
17
|
+
(0, xml_parser_1.ElementChildTextContent)(),
|
|
18
|
+
(0, xml_parser_1.ElementRequired)(),
|
|
19
19
|
tslib_1.__metadata("design:type", String)
|
|
20
20
|
], ModuleElement.prototype, "name", void 0);
|
|
21
21
|
tslib_1.__decorate([
|
|
22
|
-
(0,
|
|
22
|
+
(0, xml_parser_1.ElementChildTextContent)(),
|
|
23
23
|
tslib_1.__metadata("design:type", String)
|
|
24
24
|
], ModuleElement.prototype, "form", void 0);
|
|
25
|
-
ModuleElement = tslib_1.__decorate([
|
|
26
|
-
(0,
|
|
25
|
+
exports.ModuleElement = ModuleElement = tslib_1.__decorate([
|
|
26
|
+
(0, xml_parser_1.ElementDef)('module')
|
|
27
27
|
], ModuleElement);
|
|
28
|
-
exports.ModuleElement = ModuleElement;
|
|
29
28
|
//# sourceMappingURL=module.element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.element.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"module.element.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/xml-parser/src/lib/elements/module.element.ts"],"names":[],"mappings":";;;;AAAA,iDAK0B;AAC1B,2DAGoC;AAEpC,mEAImC;AAG5B,IAAM,aAAa,2BAAnB,MAAM,aAAa;IASjB,qBAAqB,CAAC,EACE,UAAU,EACV,OAAO,EACP,OAAO,GACqC;QACzE,IAAA,uCAAiB,EAAC,UAAU,EAAE,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAEM,OAAO,CAAC,EACE,OAAO,EACP,OAAO,GACQ;QAC9B,OAAO,IAAA,iBAAI,GAAE,CAAC;IAChB,CAAC;CAEF,CAAA;AApBQ;IAFN,IAAA,oCAAuB,GAAE;IACzB,IAAA,4BAAe,GAAE;;2CACG;AAGd;IADN,IAAA,oCAAuB,GAAE;;2CACL;wBAPV,aAAa;IADzB,IAAA,uBAAU,EAAC,QAAQ,CAAC;GACR,aAAa,CAwBzB"}
|
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StringTypeElement = exports.TypeElement = void 0;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
|
-
const
|
|
6
|
-
|
|
5
|
+
const xml_parser_1 = require("@rxap/xml-parser");
|
|
6
|
+
const schematics_ts_morph_1 = require("@rxap/schematics-ts-morph");
|
|
7
|
+
let TypeElement = exports.TypeElement = class TypeElement {
|
|
7
8
|
get type() {
|
|
8
9
|
if (this.nullable) {
|
|
9
10
|
return [this.name, 'null'].join(' | ');
|
|
@@ -12,40 +13,38 @@ let TypeElement = class TypeElement {
|
|
|
12
13
|
}
|
|
13
14
|
toValue({ sourceFile }) {
|
|
14
15
|
if (this.from) {
|
|
15
|
-
|
|
16
|
+
(0, schematics_ts_morph_1.CoerceImports)(sourceFile, {
|
|
16
17
|
namedImports: [this.name],
|
|
17
|
-
moduleSpecifier: this.from
|
|
18
|
+
moduleSpecifier: this.from,
|
|
18
19
|
});
|
|
19
20
|
}
|
|
20
21
|
return this.type;
|
|
21
22
|
}
|
|
22
23
|
};
|
|
23
24
|
tslib_1.__decorate([
|
|
24
|
-
(0,
|
|
25
|
-
(0,
|
|
25
|
+
(0, xml_parser_1.ElementChildTextContent)(),
|
|
26
|
+
(0, xml_parser_1.ElementRequired)(),
|
|
26
27
|
tslib_1.__metadata("design:type", String)
|
|
27
28
|
], TypeElement.prototype, "name", void 0);
|
|
28
29
|
tslib_1.__decorate([
|
|
29
|
-
(0,
|
|
30
|
+
(0, xml_parser_1.ElementChildTextContent)(),
|
|
30
31
|
tslib_1.__metadata("design:type", String)
|
|
31
32
|
], TypeElement.prototype, "from", void 0);
|
|
32
33
|
tslib_1.__decorate([
|
|
33
|
-
(0,
|
|
34
|
+
(0, xml_parser_1.ElementAttribute)(),
|
|
34
35
|
tslib_1.__metadata("design:type", Boolean)
|
|
35
36
|
], TypeElement.prototype, "nullable", void 0);
|
|
36
|
-
TypeElement = tslib_1.__decorate([
|
|
37
|
-
(0,
|
|
37
|
+
exports.TypeElement = TypeElement = tslib_1.__decorate([
|
|
38
|
+
(0, xml_parser_1.ElementDef)('type')
|
|
38
39
|
], TypeElement);
|
|
39
|
-
exports.
|
|
40
|
-
let StringTypeElement = class StringTypeElement extends TypeElement {
|
|
40
|
+
let StringTypeElement = exports.StringTypeElement = class StringTypeElement extends TypeElement {
|
|
41
41
|
constructor() {
|
|
42
42
|
super(...arguments);
|
|
43
43
|
this.name = 'string';
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
StringTypeElement = tslib_1.__decorate([
|
|
47
|
-
(0,
|
|
48
|
-
(0,
|
|
46
|
+
exports.StringTypeElement = StringTypeElement = tslib_1.__decorate([
|
|
47
|
+
(0, xml_parser_1.ElementExtends)(TypeElement),
|
|
48
|
+
(0, xml_parser_1.ElementDef)('string-type')
|
|
49
49
|
], StringTypeElement);
|
|
50
|
-
exports.StringTypeElement = StringTypeElement;
|
|
51
50
|
//# sourceMappingURL=type.element.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"type.element.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"type.element.js","sourceRoot":"","sources":["../../../../../../../packages/schematic/xml-parser/src/lib/elements/type.element.ts"],"names":[],"mappings":";;;;AAAA,iDAO0B;AAE1B,mEAA0D;AAGnD,IAAM,WAAW,yBAAjB,MAAM,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,IAAA,mCAAa,EAAC,UAAU,EAAE;gBACxB,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;AAzBQ;IAFN,IAAA,oCAAuB,GAAE;IACzB,IAAA,4BAAe,GAAE;;yCACG;AAGd;IADN,IAAA,oCAAuB,GAAE;;yCACL;AAGd;IADN,IAAA,6BAAgB,GAAE;;6CACO;sBAVf,WAAW;IADvB,IAAA,uBAAU,EAAC,MAAM,CAAC;GACN,WAAW,CA6BvB;AAIM,IAAM,iBAAiB,+BAAvB,MAAM,iBAAkB,SAAQ,WAAW;IAA3C;;QAEW,SAAI,GAAG,QAAQ,CAAC;IAElC,CAAC;CAAA,CAAA;4BAJY,iBAAiB;IAF7B,IAAA,2BAAc,EAAC,WAAW,CAAC;IAC3B,IAAA,uBAAU,EAAC,aAAa,CAAC;GACb,iBAAiB,CAI7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './parse-template';
|
package/src/lib/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/schematic/xml-parser/src/lib/index.ts"],"names":[],"mappings":";;;AAAA,2DAAiC"}
|
|
@@ -91,7 +91,7 @@ function ParseTemplate(host, template, basePath, ...elements) {
|
|
|
91
91
|
else {
|
|
92
92
|
console.log(`Find template file path '${templateFilePath}' for '${template}'`);
|
|
93
93
|
}
|
|
94
|
-
const filenameMatch = templateFilePath.match(/\/([
|
|
94
|
+
const filenameMatch = templateFilePath.match(/\/([^/]+)\.xml$/);
|
|
95
95
|
if (filenameMatch && filenameMatch[1]) {
|
|
96
96
|
filename = filenameMatch[1];
|
|
97
97
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-template.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"parse-template.js","sourceRoot":"","sources":["../../../../../../packages/schematic/xml-parser/src/lib/parse-template.ts"],"names":[],"mappings":";;;AAAA,iDAG0B;AAC1B,qEAGoC;AAKpC,+BAA4B;AAE5B,SAAgB,YAAY,CAC1B,QAAgB,EAChB,IAAU,EACV,QAA4B,EAC5B,eAAyB,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC;IAGjD,IAAI,QAAQ,EAAE;QACZ,MAAM,IAAI,GAAG,IAAA,WAAI,EAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACzD,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;YACrB,OAAO,IAAI,CAAC;SACb;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,0DAA2D,IAAK,EAAE,CAAC,CAAC;SAClF;KACF;SAAM;QACL,MAAM,IAAI,GAAG,IAAA,WAAI,EAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QAC/C,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;YACrB,OAAO,IAAI,CAAC;SACb;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,oDAAqD,IAAK,EAAE,CAAC,CAAC;SAC5E;KACF;IAED;QACE,MAAM,IAAI,GAAG,IAAA,WAAI,EAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACzD,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;YACrB,OAAO,IAAI,CAAC;SACb;aAAM;YACL,OAAO,CAAC,IAAI,CAAC,sDAAuD,IAAK,EAAE,CAAC,CAAC;SAC9E;KACF;IAED,OAAO,IAAI,CAAC;AACd,CAAC;AAjCD,oCAiCC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,SAAgB,aAAa,CAC3B,IAAU,EACV,QAAgB,EAChB,QAAuC,EACvC,GAAG,QAA2C;IAG9C,IAAI,YAAoB,CAAC;IACzB,IAAI,QAAQ,GAAG,YAAY,CAAC;IAC5B,IAAI,gBAAgB,GAAkB,QAAQ,CAAC;IAC/C,MAAM,YAAY,GAAG,IAAA,kCAAW,EAAC,QAAQ,CAAC,CAAC;IAE3C,IAAI,QAAQ,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE;QAE5B,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE;YAC1B,KAAK,MAAM,EAAE,IAAI,YAAY,EAAE;gBAC7B,gBAAgB,GAAG,YAAY,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,CAAC;gBACpD,IAAI,gBAAgB,EAAE;oBACpB,MAAM;iBACP;aACF;SACF;QAED,IAAI,CAAC,gBAAgB,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,qCAAsC,QAAS,GAAG,CAAC,CAAC;SACrE;aAAM;YACL,OAAO,CAAC,GAAG,CAAC,4BAA6B,gBAAiB,UAAW,QAAS,GAAG,CAAC,CAAC;SACpF;QAED,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QAEhE,IAAI,aAAa,IAAI,aAAa,CAAC,CAAC,CAAC,EAAE;YACrC,QAAQ,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;SAC7B;QAED,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QAEvD,IAAI,CAAC,kBAAkB,EAAE;YACvB,MAAM,IAAI,KAAK,CAAC,oCAAqC,gBAAiB,GAAG,CAAC,CAAC;SAC5E;QAED,YAAY,GAAG,kBAAkB,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;KAErD;SAAM;QACL,YAAY,GAAG,QAAQ,CAAC;KACzB;IAED,MAAM,MAAM,GAAG,IAAI,6BAAgB,EAAE,CAAC;IAEtC,MAAM,CAAC,QAAQ,CAAC,GAAG,QAAQ,CAAC,CAAC;IAE7B,IAAI,CAAC,YAAY,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;KACnE;IAED,OAAO,MAAM,CAAC,YAAY,CAAI,YAAY,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC;AAC1E,CAAC;AAxDD,sCAwDC"}
|
package/migration.json
DELETED