igniteui-angular-core 17.2.0 → 17.2.1
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/bundles/igniteui-angular-core.umd.js +110 -68
- package/bundles/igniteui-angular-core.umd.min.js +2 -2
- package/esm2015/lib/BrushUtil.js +16 -2
- package/esm2015/lib/CodeGeneratingComponentRendererCodeEmitter_combined.js +1 -1
- package/esm2015/lib/CodeGeneratingComponentRendererTemplateEmitter.js +62 -45
- package/esm2015/lib/DotNetCodeGeneratingComponentRendererTemplateEmitter.js +3 -3
- package/esm2015/lib/IgcDropdownBridge.js +9 -2
- package/esm2015/lib/TSCodeGeneratingComponentRendererTemplateEmitter.js +16 -16
- package/esm5/lib/BrushUtil.js +16 -2
- package/esm5/lib/CodeGeneratingComponentRendererCodeEmitter_combined.js +1 -1
- package/esm5/lib/CodeGeneratingComponentRendererTemplateEmitter.js +66 -45
- package/esm5/lib/DotNetCodeGeneratingComponentRendererTemplateEmitter.js +3 -3
- package/esm5/lib/IgcDropdownBridge.js +9 -2
- package/esm5/lib/TSCodeGeneratingComponentRendererTemplateEmitter.js +16 -16
- package/fesm2015/igniteui-angular-core.js +106 -68
- package/fesm5/igniteui-angular-core.js +110 -68
- package/lib/CodeGeneratingComponentRendererTemplateEmitter.d.ts +15 -13
- package/lib/DotNetCodeGeneratingComponentRendererTemplateEmitter.d.ts +2 -2
- package/lib/TSCodeGeneratingComponentRendererTemplateEmitter.d.ts +5 -5
- package/package.json +1 -1
package/esm2015/lib/BrushUtil.js
CHANGED
|
@@ -6,9 +6,9 @@ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOA
|
|
|
6
6
|
*/
|
|
7
7
|
import { Base, Boolean_$type, typeCast, String_$type, markType } from "./type";
|
|
8
8
|
import { Brush } from "./Brush";
|
|
9
|
+
import { Color } from "./Color";
|
|
9
10
|
import { LinearGradientBrush } from "./LinearGradientBrush";
|
|
10
11
|
import { GradientStop } from "./GradientStop";
|
|
11
|
-
import { Color } from "./Color";
|
|
12
12
|
import { ColorUtil } from "./ColorUtil";
|
|
13
13
|
import { Tuple$2 } from "./Tuple$2";
|
|
14
14
|
import { BrushCollection } from "./BrushCollection";
|
|
@@ -21,7 +21,21 @@ import { truncate } from "./number";
|
|
|
21
21
|
export let BrushUtil = /*@__PURE__*/ (() => {
|
|
22
22
|
class BrushUtil extends Base {
|
|
23
23
|
static d(a, b) {
|
|
24
|
-
|
|
24
|
+
if (a == null && b == null) {
|
|
25
|
+
return true;
|
|
26
|
+
}
|
|
27
|
+
else if ((a != null && b == null) || (a == null && b != null)) {
|
|
28
|
+
return false;
|
|
29
|
+
}
|
|
30
|
+
if ((a._fill == null && b._fill != null) || (a._fill != null && b._fill == null)) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
else if (a._fill == null && b._fill == null) {
|
|
34
|
+
return a.color.equals(b.color) && a.isGradient == b.isGradient && a.isImageFill == b.isImageFill && a.isRadialGradient == b.isRadialGradient;
|
|
35
|
+
}
|
|
36
|
+
else {
|
|
37
|
+
return Base.equalsStatic(a, b);
|
|
38
|
+
}
|
|
25
39
|
}
|
|
26
40
|
static m(a, b) {
|
|
27
41
|
if (a == null) {
|
|
@@ -17,56 +17,61 @@ export let CodeGeneratingComponentRendererTemplateEmitter = /*@__PURE__*/ (() =>
|
|
|
17
17
|
class CodeGeneratingComponentRendererTemplateEmitter extends Base {
|
|
18
18
|
constructor(a, b) {
|
|
19
19
|
super();
|
|
20
|
+
this.o = null;
|
|
20
21
|
this.m = null;
|
|
21
|
-
this.
|
|
22
|
-
this.d = null;
|
|
22
|
+
this.e = null;
|
|
23
23
|
this.b = null;
|
|
24
24
|
this.c = null;
|
|
25
|
+
this.d = null;
|
|
25
26
|
this.a = null;
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.a = new CodeGeneratingCodeWriter(this.
|
|
32
|
-
this.b = new CodeGeneratingCodeWriter(this.
|
|
33
|
-
this.c = new CodeGeneratingCodeWriter(this.
|
|
27
|
+
this.k = new CodeGeneratingImportManager();
|
|
28
|
+
this.p = new HashSet$1(String_$type, 0);
|
|
29
|
+
this.o = a;
|
|
30
|
+
this.m = b;
|
|
31
|
+
this.e = new CodeGeneratingCodeWriter(this.o);
|
|
32
|
+
this.a = new CodeGeneratingCodeWriter(this.o);
|
|
33
|
+
this.b = new CodeGeneratingCodeWriter(this.o);
|
|
34
|
+
this.c = new CodeGeneratingCodeWriter(this.o);
|
|
35
|
+
this.d = new CodeGeneratingCodeWriter(this.o);
|
|
34
36
|
}
|
|
35
|
-
get
|
|
36
|
-
return this.
|
|
37
|
+
get n() {
|
|
38
|
+
return this.m;
|
|
37
39
|
}
|
|
38
|
-
get
|
|
39
|
-
return this.
|
|
40
|
+
get j() {
|
|
41
|
+
return this.e;
|
|
40
42
|
}
|
|
41
|
-
get
|
|
43
|
+
get g() {
|
|
42
44
|
return this.b;
|
|
43
45
|
}
|
|
44
|
-
get
|
|
46
|
+
get h() {
|
|
45
47
|
return this.c;
|
|
46
48
|
}
|
|
47
|
-
get
|
|
49
|
+
get i() {
|
|
50
|
+
return this.d;
|
|
51
|
+
}
|
|
52
|
+
get f() {
|
|
48
53
|
return this.a;
|
|
49
54
|
}
|
|
50
|
-
get
|
|
51
|
-
return this.
|
|
55
|
+
get l() {
|
|
56
|
+
return this.k;
|
|
52
57
|
}
|
|
53
|
-
|
|
58
|
+
r() {
|
|
54
59
|
let a = new HashSet$1(String_$type, 0);
|
|
55
|
-
for (let b = 0; b < this.
|
|
56
|
-
let c = this.
|
|
60
|
+
for (let b = 0; b < this.m.t.count; b++) {
|
|
61
|
+
let c = this.m.t._inner[b];
|
|
57
62
|
if (c.a != null && c.c == null) {
|
|
58
|
-
if (this.
|
|
63
|
+
if (this.o.library != null && this.o.library.hasItem(c.a.e)) {
|
|
59
64
|
if (a.contains(c.a.e)) {
|
|
60
65
|
continue;
|
|
61
66
|
}
|
|
62
67
|
a.add_1(c.a.e);
|
|
63
|
-
let d = this.
|
|
68
|
+
let d = this.o.library.getItem(c.a.e);
|
|
64
69
|
if (d.type == 2) {
|
|
65
|
-
let e = d.getContentForPlatform(this.
|
|
70
|
+
let e = d.getContentForPlatform(this.m.platform);
|
|
66
71
|
if (e != null) {
|
|
67
72
|
if (e.isJSContent) {
|
|
68
73
|
let f = e.content;
|
|
69
|
-
this.
|
|
74
|
+
this.f.l(f);
|
|
70
75
|
}
|
|
71
76
|
else if (e.isJson) {
|
|
72
77
|
let g = new JsonDictionaryParser();
|
|
@@ -79,9 +84,9 @@ export let CodeGeneratingComponentRendererTemplateEmitter = /*@__PURE__*/ (() =>
|
|
|
79
84
|
if (k.trim().length == 0) {
|
|
80
85
|
continue;
|
|
81
86
|
}
|
|
82
|
-
if (!this.
|
|
83
|
-
this.
|
|
84
|
-
this.
|
|
87
|
+
if (!this.p.contains(k)) {
|
|
88
|
+
this.p.add_1(k);
|
|
89
|
+
this.s(this.l, k);
|
|
85
90
|
}
|
|
86
91
|
}
|
|
87
92
|
}
|
|
@@ -93,28 +98,28 @@ export let CodeGeneratingComponentRendererTemplateEmitter = /*@__PURE__*/ (() =>
|
|
|
93
98
|
if (o.trim().length == 0) {
|
|
94
99
|
continue;
|
|
95
100
|
}
|
|
96
|
-
this.
|
|
101
|
+
this.g.l(o);
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
104
|
if (h.g("supportingMethods")) {
|
|
100
105
|
let q = h.item("supportingMethods").value;
|
|
101
|
-
q = this.
|
|
106
|
+
q = this.q(c.a.e, q);
|
|
102
107
|
let r = stringReplace(q, "\r\n", "\n").split('\n');
|
|
103
108
|
for (let t = 0; t < r.length; t++) {
|
|
104
109
|
let s = r[t];
|
|
105
110
|
if (s.trim().length == 0) {
|
|
106
111
|
continue;
|
|
107
112
|
}
|
|
108
|
-
this.
|
|
113
|
+
this.h.l(s);
|
|
109
114
|
}
|
|
110
115
|
}
|
|
111
116
|
if (h.g("content")) {
|
|
112
117
|
let u = h.item("content").value;
|
|
113
|
-
u = this.
|
|
118
|
+
u = this.q(c.a.e, u);
|
|
114
119
|
let v = stringReplace(u, "\r\n", "\n").split('\n');
|
|
115
120
|
let w = 0x7FFFFFFF;
|
|
116
121
|
let x = "";
|
|
117
|
-
for (let y = 0; y < this.
|
|
122
|
+
for (let y = 0; y < this.o.indentSpaces; y++) {
|
|
118
123
|
x += " ";
|
|
119
124
|
}
|
|
120
125
|
for (let aa = 0; aa < v.length; aa++) {
|
|
@@ -147,32 +152,44 @@ export let CodeGeneratingComponentRendererTemplateEmitter = /*@__PURE__*/ (() =>
|
|
|
147
152
|
}
|
|
148
153
|
if (ag.charAt(0) == '\t') {
|
|
149
154
|
ag = ag.substr(1);
|
|
150
|
-
ah += this.
|
|
155
|
+
ah += this.o.indentSpaces;
|
|
151
156
|
}
|
|
152
157
|
}
|
|
153
158
|
}
|
|
154
|
-
this.
|
|
159
|
+
this.j.l(ag);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
if (h.g("supportingTypes")) {
|
|
163
|
+
let ai = h.item("supportingTypes").value;
|
|
164
|
+
let aj = stringReplace(ai, "\r\n", "\n").split('\n');
|
|
165
|
+
for (let al = 0; al < aj.length; al++) {
|
|
166
|
+
let ak = aj[al];
|
|
167
|
+
if (ak.trim().length == 0) {
|
|
168
|
+
continue;
|
|
169
|
+
}
|
|
170
|
+
this.i.l(ak);
|
|
155
171
|
}
|
|
156
172
|
}
|
|
157
173
|
}
|
|
158
174
|
else {
|
|
159
|
-
let
|
|
160
|
-
this.
|
|
175
|
+
let am = e.content;
|
|
176
|
+
this.j.l(am);
|
|
161
177
|
}
|
|
162
178
|
}
|
|
163
179
|
}
|
|
164
180
|
}
|
|
165
181
|
}
|
|
166
182
|
}
|
|
167
|
-
this.
|
|
168
|
-
this.
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
171
|
-
this.
|
|
183
|
+
this.m.addContainerResult("templateContents", this.j.toString());
|
|
184
|
+
this.m.addImportResult("templateImports", this.l);
|
|
185
|
+
this.m.addContainerResult("templateSupportingMethods", this.h.toString());
|
|
186
|
+
this.m.addContainerResult("templateSupportingTypes", this.i.toString());
|
|
187
|
+
this.m.addContainerResult("templateStyles", this.g.toString());
|
|
188
|
+
this.m.addContainerResult("templateScripts", this.f.toString());
|
|
172
189
|
}
|
|
173
|
-
|
|
190
|
+
s(a, b) {
|
|
174
191
|
}
|
|
175
|
-
|
|
192
|
+
q(a, b) {
|
|
176
193
|
return b;
|
|
177
194
|
}
|
|
178
195
|
}
|
|
@@ -14,11 +14,11 @@ export let DotNetCodeGeneratingComponentRendererTemplateEmitter = /*@__PURE__*/
|
|
|
14
14
|
constructor(a, b) {
|
|
15
15
|
super(a, b);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
super.
|
|
17
|
+
s(a, b) {
|
|
18
|
+
super.s(a, b);
|
|
19
19
|
a.addUsing(b);
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
q(a, b) {
|
|
22
22
|
return b;
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -90,7 +90,14 @@ export let IgcDropdownBridge = /*@__PURE__*/ (() => {
|
|
|
90
90
|
let l = d[k];
|
|
91
91
|
let m = l.getText();
|
|
92
92
|
if (m == this.x) {
|
|
93
|
-
a.
|
|
93
|
+
let targ_ = a.getNativeElement();
|
|
94
|
+
if (targ_ != null && (targ_._selectItem)) {
|
|
95
|
+
let currItem_ = l.getNativeElement();
|
|
96
|
+
targ_._selectItem(currItem_);
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
a.setProperty("selectedItem", l.getNativeElement());
|
|
100
|
+
}
|
|
94
101
|
}
|
|
95
102
|
}
|
|
96
103
|
}
|
|
@@ -108,7 +115,7 @@ export let IgcDropdownBridge = /*@__PURE__*/ (() => {
|
|
|
108
115
|
if (q == this.x) {
|
|
109
116
|
let targ_ = a.getNativeElement();
|
|
110
117
|
if (targ_ != null && (targ_._selectItem)) {
|
|
111
|
-
let currItem_ = p;
|
|
118
|
+
let currItem_ = p.getNativeElement();
|
|
112
119
|
targ_._selectItem(currItem_);
|
|
113
120
|
}
|
|
114
121
|
else {
|
|
@@ -15,35 +15,35 @@ export let TSCodeGeneratingComponentRendererTemplateEmitter = /*@__PURE__*/ (()
|
|
|
15
15
|
class TSCodeGeneratingComponentRendererTemplateEmitter extends CodeGeneratingComponentRendererTemplateEmitter {
|
|
16
16
|
constructor(a, b, c) {
|
|
17
17
|
super(a, b);
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
18
|
+
this.t = 0;
|
|
19
|
+
this.t = c;
|
|
20
20
|
}
|
|
21
|
-
get
|
|
22
|
-
switch (this.
|
|
21
|
+
get u() {
|
|
22
|
+
switch (this.t) {
|
|
23
23
|
case 1: return "angular";
|
|
24
24
|
case 2: return "react";
|
|
25
25
|
case 3: return "webcomponents";
|
|
26
26
|
}
|
|
27
27
|
return "";
|
|
28
28
|
}
|
|
29
|
-
get
|
|
30
|
-
switch (this.
|
|
29
|
+
get v() {
|
|
30
|
+
switch (this.t) {
|
|
31
31
|
case 1: return "Igx";
|
|
32
32
|
case 2: return "Igr";
|
|
33
33
|
case 3: return "Igc";
|
|
34
34
|
}
|
|
35
35
|
return "";
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
super.
|
|
37
|
+
s(a, b) {
|
|
38
|
+
super.s(a, b);
|
|
39
39
|
let c = new CodeGeneratingRegexHelper("import {([^}]+)}\\s+from\\s+['\"]([^'\"]+)['\"]");
|
|
40
40
|
c.execute(b, (d, e, f) => {
|
|
41
41
|
let g = d(1);
|
|
42
42
|
let h = d(2);
|
|
43
|
-
h = stringReplace(h, "webcomponents", this.
|
|
44
|
-
h = stringReplace(h, "react", this.
|
|
45
|
-
h = stringReplace(h, "angular", this.
|
|
46
|
-
if (this.
|
|
43
|
+
h = stringReplace(h, "webcomponents", this.u);
|
|
44
|
+
h = stringReplace(h, "react", this.u);
|
|
45
|
+
h = stringReplace(h, "angular", this.u);
|
|
46
|
+
if (this.u == "angular" || this.u == "react") {
|
|
47
47
|
if (stringContains(h, "/grids")) {
|
|
48
48
|
h = stringReplace(h, "/grids", "");
|
|
49
49
|
}
|
|
@@ -53,13 +53,13 @@ export let TSCodeGeneratingComponentRendererTemplateEmitter = /*@__PURE__*/ (()
|
|
|
53
53
|
let j = i[k];
|
|
54
54
|
let l = j.trim();
|
|
55
55
|
if (stringStartsWith(l, "Igc")) {
|
|
56
|
-
l = this.
|
|
56
|
+
l = this.v + l.substr(3);
|
|
57
57
|
}
|
|
58
58
|
if (stringStartsWith(l, "Igr")) {
|
|
59
|
-
l = this.
|
|
59
|
+
l = this.v + l.substr(3);
|
|
60
60
|
}
|
|
61
61
|
if (stringStartsWith(l, "Igx")) {
|
|
62
|
-
l = this.
|
|
62
|
+
l = this.v + l.substr(3);
|
|
63
63
|
}
|
|
64
64
|
if (stringStartsWith(l, "Igr") && stringEndsWith(l, "Component")) {
|
|
65
65
|
l = l.substr(0, l.length - ("Component").length);
|
|
@@ -69,7 +69,7 @@ export let TSCodeGeneratingComponentRendererTemplateEmitter = /*@__PURE__*/ (()
|
|
|
69
69
|
return null;
|
|
70
70
|
});
|
|
71
71
|
}
|
|
72
|
-
|
|
72
|
+
q(a, b) {
|
|
73
73
|
return b;
|
|
74
74
|
}
|
|
75
75
|
}
|
package/esm5/lib/BrushUtil.js
CHANGED
|
@@ -7,9 +7,9 @@ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOA
|
|
|
7
7
|
import { __extends } from "tslib";
|
|
8
8
|
import { Base, Boolean_$type, typeCast, String_$type, markType } from "./type";
|
|
9
9
|
import { Brush } from "./Brush";
|
|
10
|
+
import { Color } from "./Color";
|
|
10
11
|
import { LinearGradientBrush } from "./LinearGradientBrush";
|
|
11
12
|
import { GradientStop } from "./GradientStop";
|
|
12
|
-
import { Color } from "./Color";
|
|
13
13
|
import { ColorUtil } from "./ColorUtil";
|
|
14
14
|
import { Tuple$2 } from "./Tuple$2";
|
|
15
15
|
import { BrushCollection } from "./BrushCollection";
|
|
@@ -25,7 +25,21 @@ var BrushUtil = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
25
25
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
26
26
|
}
|
|
27
27
|
BrushUtil.d = function (a, b) {
|
|
28
|
-
|
|
28
|
+
if (a == null && b == null) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
else if ((a != null && b == null) || (a == null && b != null)) {
|
|
32
|
+
return false;
|
|
33
|
+
}
|
|
34
|
+
if ((a._fill == null && b._fill != null) || (a._fill != null && b._fill == null)) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
else if (a._fill == null && b._fill == null) {
|
|
38
|
+
return a.color.equals(b.color) && a.isGradient == b.isGradient && a.isImageFill == b.isImageFill && a.isRadialGradient == b.isRadialGradient;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return Base.equalsStatic(a, b);
|
|
42
|
+
}
|
|
29
43
|
};
|
|
30
44
|
BrushUtil.m = function (a, b) {
|
|
31
45
|
if (a == null) {
|
|
@@ -18,81 +18,90 @@ var CodeGeneratingComponentRendererTemplateEmitter = /** @class */ /*@__PURE__*/
|
|
|
18
18
|
__extends(CodeGeneratingComponentRendererTemplateEmitter, _super);
|
|
19
19
|
function CodeGeneratingComponentRendererTemplateEmitter(a, b) {
|
|
20
20
|
var _this = _super.call(this) || this;
|
|
21
|
+
_this.o = null;
|
|
21
22
|
_this.m = null;
|
|
22
|
-
_this.
|
|
23
|
-
_this.d = null;
|
|
23
|
+
_this.e = null;
|
|
24
24
|
_this.b = null;
|
|
25
25
|
_this.c = null;
|
|
26
|
+
_this.d = null;
|
|
26
27
|
_this.a = null;
|
|
27
|
-
_this.
|
|
28
|
-
_this.
|
|
29
|
-
_this.
|
|
30
|
-
_this.
|
|
31
|
-
_this.
|
|
32
|
-
_this.a = new CodeGeneratingCodeWriter(_this.
|
|
33
|
-
_this.b = new CodeGeneratingCodeWriter(_this.
|
|
34
|
-
_this.c = new CodeGeneratingCodeWriter(_this.
|
|
28
|
+
_this.k = new CodeGeneratingImportManager();
|
|
29
|
+
_this.p = new HashSet$1(String_$type, 0);
|
|
30
|
+
_this.o = a;
|
|
31
|
+
_this.m = b;
|
|
32
|
+
_this.e = new CodeGeneratingCodeWriter(_this.o);
|
|
33
|
+
_this.a = new CodeGeneratingCodeWriter(_this.o);
|
|
34
|
+
_this.b = new CodeGeneratingCodeWriter(_this.o);
|
|
35
|
+
_this.c = new CodeGeneratingCodeWriter(_this.o);
|
|
36
|
+
_this.d = new CodeGeneratingCodeWriter(_this.o);
|
|
35
37
|
return _this;
|
|
36
38
|
}
|
|
37
|
-
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "
|
|
39
|
+
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "n", {
|
|
38
40
|
get: function () {
|
|
39
|
-
return this.
|
|
41
|
+
return this.m;
|
|
40
42
|
},
|
|
41
43
|
enumerable: false,
|
|
42
44
|
configurable: true
|
|
43
45
|
});
|
|
44
|
-
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "
|
|
46
|
+
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "j", {
|
|
45
47
|
get: function () {
|
|
46
|
-
return this.
|
|
48
|
+
return this.e;
|
|
47
49
|
},
|
|
48
50
|
enumerable: false,
|
|
49
51
|
configurable: true
|
|
50
52
|
});
|
|
51
|
-
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "
|
|
53
|
+
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "g", {
|
|
52
54
|
get: function () {
|
|
53
55
|
return this.b;
|
|
54
56
|
},
|
|
55
57
|
enumerable: false,
|
|
56
58
|
configurable: true
|
|
57
59
|
});
|
|
58
|
-
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "
|
|
60
|
+
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "h", {
|
|
59
61
|
get: function () {
|
|
60
62
|
return this.c;
|
|
61
63
|
},
|
|
62
64
|
enumerable: false,
|
|
63
65
|
configurable: true
|
|
64
66
|
});
|
|
65
|
-
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "
|
|
67
|
+
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "i", {
|
|
68
|
+
get: function () {
|
|
69
|
+
return this.d;
|
|
70
|
+
},
|
|
71
|
+
enumerable: false,
|
|
72
|
+
configurable: true
|
|
73
|
+
});
|
|
74
|
+
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "f", {
|
|
66
75
|
get: function () {
|
|
67
76
|
return this.a;
|
|
68
77
|
},
|
|
69
78
|
enumerable: false,
|
|
70
79
|
configurable: true
|
|
71
80
|
});
|
|
72
|
-
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "
|
|
81
|
+
Object.defineProperty(CodeGeneratingComponentRendererTemplateEmitter.prototype, "l", {
|
|
73
82
|
get: function () {
|
|
74
|
-
return this.
|
|
83
|
+
return this.k;
|
|
75
84
|
},
|
|
76
85
|
enumerable: false,
|
|
77
86
|
configurable: true
|
|
78
87
|
});
|
|
79
|
-
CodeGeneratingComponentRendererTemplateEmitter.prototype.
|
|
88
|
+
CodeGeneratingComponentRendererTemplateEmitter.prototype.r = function () {
|
|
80
89
|
var a = new HashSet$1(String_$type, 0);
|
|
81
|
-
for (var b = 0; b < this.
|
|
82
|
-
var c = this.
|
|
90
|
+
for (var b = 0; b < this.m.t.count; b++) {
|
|
91
|
+
var c = this.m.t._inner[b];
|
|
83
92
|
if (c.a != null && c.c == null) {
|
|
84
|
-
if (this.
|
|
93
|
+
if (this.o.library != null && this.o.library.hasItem(c.a.e)) {
|
|
85
94
|
if (a.contains(c.a.e)) {
|
|
86
95
|
continue;
|
|
87
96
|
}
|
|
88
97
|
a.add_1(c.a.e);
|
|
89
|
-
var d = this.
|
|
98
|
+
var d = this.o.library.getItem(c.a.e);
|
|
90
99
|
if (d.type == 2) {
|
|
91
|
-
var e = d.getContentForPlatform(this.
|
|
100
|
+
var e = d.getContentForPlatform(this.m.platform);
|
|
92
101
|
if (e != null) {
|
|
93
102
|
if (e.isJSContent) {
|
|
94
103
|
var f = e.content;
|
|
95
|
-
this.
|
|
104
|
+
this.f.l(f);
|
|
96
105
|
}
|
|
97
106
|
else if (e.isJson) {
|
|
98
107
|
var g = new JsonDictionaryParser();
|
|
@@ -105,9 +114,9 @@ var CodeGeneratingComponentRendererTemplateEmitter = /** @class */ /*@__PURE__*/
|
|
|
105
114
|
if (k.trim().length == 0) {
|
|
106
115
|
continue;
|
|
107
116
|
}
|
|
108
|
-
if (!this.
|
|
109
|
-
this.
|
|
110
|
-
this.
|
|
117
|
+
if (!this.p.contains(k)) {
|
|
118
|
+
this.p.add_1(k);
|
|
119
|
+
this.s(this.l, k);
|
|
111
120
|
}
|
|
112
121
|
}
|
|
113
122
|
}
|
|
@@ -119,28 +128,28 @@ var CodeGeneratingComponentRendererTemplateEmitter = /** @class */ /*@__PURE__*/
|
|
|
119
128
|
if (o.trim().length == 0) {
|
|
120
129
|
continue;
|
|
121
130
|
}
|
|
122
|
-
this.
|
|
131
|
+
this.g.l(o);
|
|
123
132
|
}
|
|
124
133
|
}
|
|
125
134
|
if (h.g("supportingMethods")) {
|
|
126
135
|
var q = h.item("supportingMethods").value;
|
|
127
|
-
q = this.
|
|
136
|
+
q = this.q(c.a.e, q);
|
|
128
137
|
var r = stringReplace(q, "\r\n", "\n").split('\n');
|
|
129
138
|
for (var t = 0; t < r.length; t++) {
|
|
130
139
|
var s = r[t];
|
|
131
140
|
if (s.trim().length == 0) {
|
|
132
141
|
continue;
|
|
133
142
|
}
|
|
134
|
-
this.
|
|
143
|
+
this.h.l(s);
|
|
135
144
|
}
|
|
136
145
|
}
|
|
137
146
|
if (h.g("content")) {
|
|
138
147
|
var u = h.item("content").value;
|
|
139
|
-
u = this.
|
|
148
|
+
u = this.q(c.a.e, u);
|
|
140
149
|
var v = stringReplace(u, "\r\n", "\n").split('\n');
|
|
141
150
|
var w = 0x7FFFFFFF;
|
|
142
151
|
var x = "";
|
|
143
|
-
for (var y = 0; y < this.
|
|
152
|
+
for (var y = 0; y < this.o.indentSpaces; y++) {
|
|
144
153
|
x += " ";
|
|
145
154
|
}
|
|
146
155
|
for (var aa = 0; aa < v.length; aa++) {
|
|
@@ -173,32 +182,44 @@ var CodeGeneratingComponentRendererTemplateEmitter = /** @class */ /*@__PURE__*/
|
|
|
173
182
|
}
|
|
174
183
|
if (ag.charAt(0) == '\t') {
|
|
175
184
|
ag = ag.substr(1);
|
|
176
|
-
ah += this.
|
|
185
|
+
ah += this.o.indentSpaces;
|
|
177
186
|
}
|
|
178
187
|
}
|
|
179
188
|
}
|
|
180
|
-
this.
|
|
189
|
+
this.j.l(ag);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
if (h.g("supportingTypes")) {
|
|
193
|
+
var ai = h.item("supportingTypes").value;
|
|
194
|
+
var aj = stringReplace(ai, "\r\n", "\n").split('\n');
|
|
195
|
+
for (var al = 0; al < aj.length; al++) {
|
|
196
|
+
var ak = aj[al];
|
|
197
|
+
if (ak.trim().length == 0) {
|
|
198
|
+
continue;
|
|
199
|
+
}
|
|
200
|
+
this.i.l(ak);
|
|
181
201
|
}
|
|
182
202
|
}
|
|
183
203
|
}
|
|
184
204
|
else {
|
|
185
|
-
var
|
|
186
|
-
this.
|
|
205
|
+
var am = e.content;
|
|
206
|
+
this.j.l(am);
|
|
187
207
|
}
|
|
188
208
|
}
|
|
189
209
|
}
|
|
190
210
|
}
|
|
191
211
|
}
|
|
192
212
|
}
|
|
193
|
-
this.
|
|
194
|
-
this.
|
|
195
|
-
this.
|
|
196
|
-
this.
|
|
197
|
-
this.
|
|
213
|
+
this.m.addContainerResult("templateContents", this.j.toString());
|
|
214
|
+
this.m.addImportResult("templateImports", this.l);
|
|
215
|
+
this.m.addContainerResult("templateSupportingMethods", this.h.toString());
|
|
216
|
+
this.m.addContainerResult("templateSupportingTypes", this.i.toString());
|
|
217
|
+
this.m.addContainerResult("templateStyles", this.g.toString());
|
|
218
|
+
this.m.addContainerResult("templateScripts", this.f.toString());
|
|
198
219
|
};
|
|
199
|
-
CodeGeneratingComponentRendererTemplateEmitter.prototype.
|
|
220
|
+
CodeGeneratingComponentRendererTemplateEmitter.prototype.s = function (a, b) {
|
|
200
221
|
};
|
|
201
|
-
CodeGeneratingComponentRendererTemplateEmitter.prototype.
|
|
222
|
+
CodeGeneratingComponentRendererTemplateEmitter.prototype.q = function (a, b) {
|
|
202
223
|
return b;
|
|
203
224
|
};
|
|
204
225
|
CodeGeneratingComponentRendererTemplateEmitter.$t = markType(CodeGeneratingComponentRendererTemplateEmitter, 'CodeGeneratingComponentRendererTemplateEmitter');
|
|
@@ -15,11 +15,11 @@ var DotNetCodeGeneratingComponentRendererTemplateEmitter = /** @class */ /*@__PU
|
|
|
15
15
|
function DotNetCodeGeneratingComponentRendererTemplateEmitter(a, b) {
|
|
16
16
|
return _super.call(this, a, b) || this;
|
|
17
17
|
}
|
|
18
|
-
DotNetCodeGeneratingComponentRendererTemplateEmitter.prototype.
|
|
19
|
-
_super.prototype.
|
|
18
|
+
DotNetCodeGeneratingComponentRendererTemplateEmitter.prototype.s = function (a, b) {
|
|
19
|
+
_super.prototype.s.call(this, a, b);
|
|
20
20
|
a.addUsing(b);
|
|
21
21
|
};
|
|
22
|
-
DotNetCodeGeneratingComponentRendererTemplateEmitter.prototype.
|
|
22
|
+
DotNetCodeGeneratingComponentRendererTemplateEmitter.prototype.q = function (a, b) {
|
|
23
23
|
return b;
|
|
24
24
|
};
|
|
25
25
|
DotNetCodeGeneratingComponentRendererTemplateEmitter.$t = markType(DotNetCodeGeneratingComponentRendererTemplateEmitter, 'DotNetCodeGeneratingComponentRendererTemplateEmitter', CodeGeneratingComponentRendererTemplateEmitter.$);
|