igniteui-webcomponents-fdc3 1.3.3

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.
Files changed (116) hide show
  1. package/License +27 -0
  2. package/README.md +23 -0
  3. package/bundles/igniteui-webcomponents-fdc3.umd.js +2024 -0
  4. package/bundles/igniteui-webcomponents-fdc3.umd.js.map +1 -0
  5. package/bundles/igniteui-webcomponents-fdc3.umd.min.js +2 -0
  6. package/bundles/igniteui-webcomponents-fdc3.umd.min.js.map +1 -0
  7. package/esm2015/igniteui-webcomponents-fdc3.js +2 -0
  8. package/esm2015/igniteui-webcomponents-fdc3.js.map +1 -0
  9. package/esm2015/lib/Fdc3Contact.js +8 -0
  10. package/esm2015/lib/Fdc3Contact.js.map +1 -0
  11. package/esm2015/lib/Fdc3ContactList.js +8 -0
  12. package/esm2015/lib/Fdc3ContactList.js.map +1 -0
  13. package/esm2015/lib/Fdc3Context.js +8 -0
  14. package/esm2015/lib/Fdc3Context.js.map +1 -0
  15. package/esm2015/lib/Fdc3ContextType.js +56 -0
  16. package/esm2015/lib/Fdc3ContextType.js.map +1 -0
  17. package/esm2015/lib/Fdc3Converter.js +198 -0
  18. package/esm2015/lib/Fdc3Converter.js.map +1 -0
  19. package/esm2015/lib/Fdc3DataAdapter.js +273 -0
  20. package/esm2015/lib/Fdc3DataAdapter.js.map +1 -0
  21. package/esm2015/lib/Fdc3Dictionary.js +85 -0
  22. package/esm2015/lib/Fdc3Dictionary.js.map +1 -0
  23. package/esm2015/lib/Fdc3Instrument.js +8 -0
  24. package/esm2015/lib/Fdc3Instrument.js.map +1 -0
  25. package/esm2015/lib/Fdc3InstrumentList.js +8 -0
  26. package/esm2015/lib/Fdc3InstrumentList.js.map +1 -0
  27. package/esm2015/lib/Fdc3IntentType.js +64 -0
  28. package/esm2015/lib/Fdc3IntentType.js.map +1 -0
  29. package/esm2015/lib/Fdc3Message.js +64 -0
  30. package/esm2015/lib/Fdc3Message.js.map +1 -0
  31. package/esm2015/lib/Fdc3Organization.js +8 -0
  32. package/esm2015/lib/Fdc3Organization.js.map +1 -0
  33. package/esm2015/lib/Fdc3OrganizationList.js +8 -0
  34. package/esm2015/lib/Fdc3OrganizationList.js.map +1 -0
  35. package/esm2015/lib/Fdc3Portfolio.js +8 -0
  36. package/esm2015/lib/Fdc3Portfolio.js.map +1 -0
  37. package/esm2015/lib/Fdc3Position.js +8 -0
  38. package/esm2015/lib/Fdc3Position.js.map +1 -0
  39. package/esm2015/lib/Fdc3Serializer.js +8 -0
  40. package/esm2015/lib/Fdc3Serializer.js.map +1 -0
  41. package/esm2015/lib/Fdc3Serializer_combined.js +880 -0
  42. package/esm2015/lib/Fdc3Serializer_combined.js.map +1 -0
  43. package/esm2015/lib/Fdc3Util.js +77 -0
  44. package/esm2015/lib/Fdc3Util.js.map +1 -0
  45. package/esm2015/lib/Randomizer.js +37 -0
  46. package/esm2015/lib/Randomizer.js.map +1 -0
  47. package/esm2015/public_api.js +19 -0
  48. package/esm2015/public_api.js.map +1 -0
  49. package/esm5/igniteui-webcomponents-fdc3.js +2 -0
  50. package/esm5/igniteui-webcomponents-fdc3.js.map +1 -0
  51. package/esm5/lib/Fdc3Contact.js +8 -0
  52. package/esm5/lib/Fdc3Contact.js.map +1 -0
  53. package/esm5/lib/Fdc3ContactList.js +8 -0
  54. package/esm5/lib/Fdc3ContactList.js.map +1 -0
  55. package/esm5/lib/Fdc3Context.js +8 -0
  56. package/esm5/lib/Fdc3Context.js.map +1 -0
  57. package/esm5/lib/Fdc3ContextType.js +56 -0
  58. package/esm5/lib/Fdc3ContextType.js.map +1 -0
  59. package/esm5/lib/Fdc3Converter.js +202 -0
  60. package/esm5/lib/Fdc3Converter.js.map +1 -0
  61. package/esm5/lib/Fdc3DataAdapter.js +331 -0
  62. package/esm5/lib/Fdc3DataAdapter.js.map +1 -0
  63. package/esm5/lib/Fdc3Dictionary.js +121 -0
  64. package/esm5/lib/Fdc3Dictionary.js.map +1 -0
  65. package/esm5/lib/Fdc3Instrument.js +8 -0
  66. package/esm5/lib/Fdc3Instrument.js.map +1 -0
  67. package/esm5/lib/Fdc3InstrumentList.js +8 -0
  68. package/esm5/lib/Fdc3InstrumentList.js.map +1 -0
  69. package/esm5/lib/Fdc3IntentType.js +64 -0
  70. package/esm5/lib/Fdc3IntentType.js.map +1 -0
  71. package/esm5/lib/Fdc3Message.js +90 -0
  72. package/esm5/lib/Fdc3Message.js.map +1 -0
  73. package/esm5/lib/Fdc3Organization.js +8 -0
  74. package/esm5/lib/Fdc3Organization.js.map +1 -0
  75. package/esm5/lib/Fdc3OrganizationList.js +8 -0
  76. package/esm5/lib/Fdc3OrganizationList.js.map +1 -0
  77. package/esm5/lib/Fdc3Portfolio.js +8 -0
  78. package/esm5/lib/Fdc3Portfolio.js.map +1 -0
  79. package/esm5/lib/Fdc3Position.js +8 -0
  80. package/esm5/lib/Fdc3Position.js.map +1 -0
  81. package/esm5/lib/Fdc3Serializer.js +8 -0
  82. package/esm5/lib/Fdc3Serializer.js.map +1 -0
  83. package/esm5/lib/Fdc3Serializer_combined.js +995 -0
  84. package/esm5/lib/Fdc3Serializer_combined.js.map +1 -0
  85. package/esm5/lib/Fdc3Util.js +81 -0
  86. package/esm5/lib/Fdc3Util.js.map +1 -0
  87. package/esm5/lib/Randomizer.js +41 -0
  88. package/esm5/lib/Randomizer.js.map +1 -0
  89. package/esm5/public_api.js +19 -0
  90. package/esm5/public_api.js.map +1 -0
  91. package/fesm2015/igniteui-webcomponents-fdc3.js +1773 -0
  92. package/fesm2015/igniteui-webcomponents-fdc3.js.map +1 -0
  93. package/fesm5/igniteui-webcomponents-fdc3.js +1998 -0
  94. package/fesm5/igniteui-webcomponents-fdc3.js.map +1 -0
  95. package/igniteui-webcomponents-fdc3.d.ts +1 -0
  96. package/lib/Fdc3Contact.d.ts +1 -0
  97. package/lib/Fdc3ContactList.d.ts +1 -0
  98. package/lib/Fdc3Context.d.ts +1 -0
  99. package/lib/Fdc3ContextType.d.ts +48 -0
  100. package/lib/Fdc3Converter.d.ts +20 -0
  101. package/lib/Fdc3DataAdapter.d.ts +30 -0
  102. package/lib/Fdc3Dictionary.d.ts +19 -0
  103. package/lib/Fdc3Instrument.d.ts +1 -0
  104. package/lib/Fdc3InstrumentList.d.ts +1 -0
  105. package/lib/Fdc3IntentType.d.ts +56 -0
  106. package/lib/Fdc3Message.d.ts +21 -0
  107. package/lib/Fdc3Organization.d.ts +1 -0
  108. package/lib/Fdc3OrganizationList.d.ts +1 -0
  109. package/lib/Fdc3Portfolio.d.ts +1 -0
  110. package/lib/Fdc3Position.d.ts +1 -0
  111. package/lib/Fdc3Serializer.d.ts +1 -0
  112. package/lib/Fdc3Serializer_combined.d.ts +129 -0
  113. package/lib/Fdc3Util.d.ts +17 -0
  114. package/lib/Randomizer.d.ts +11 -0
  115. package/package.json +43 -0
  116. package/public_api.d.ts +18 -0
@@ -0,0 +1,995 @@
1
+ /*
2
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
3
+ https://www.infragistics.com/legal/license/igultimate-la
4
+ https://www.infragistics.com/legal/license/igultimate-eula
5
+ GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
6
+ */
7
+ import * as tslib_1 from "tslib";
8
+ import { Base, typeCast, EnumUtil, Boolean_$type, markType, enumGetBox } from "igniteui-webcomponents-core";
9
+ import { StringBuilder } from "igniteui-webcomponents-core";
10
+ import { Fdc3IntentType_$type } from "./Fdc3IntentType";
11
+ import { Fdc3Dictionary } from "./Fdc3Dictionary";
12
+ import { stringIsNullOrEmpty } from "igniteui-webcomponents-core";
13
+ import { Fdc3Util } from "./Fdc3Util";
14
+ /**
15
+ * @hidden
16
+ */
17
+ var Fdc3Serializer = /** @class */ /*@__PURE__*/ (function (_super) {
18
+ tslib_1.__extends(Fdc3Serializer, _super);
19
+ function Fdc3Serializer() {
20
+ var _this = _super.call(this) || this;
21
+ _this._sb = null;
22
+ _this.m = 0;
23
+ _this.l = false;
24
+ _this._sb = new StringBuilder(0);
25
+ return _this;
26
+ }
27
+ Fdc3Serializer.prototype.toString = function () {
28
+ return this._sb.toString();
29
+ };
30
+ Fdc3Serializer.prototype.toJson = function (a) {
31
+ this._sb.v();
32
+ if (typeCast(Fdc3Instrument.$, a) !== null) {
33
+ this.add4(typeCast(Fdc3Instrument.$, a));
34
+ }
35
+ else if (typeCast(Fdc3InstrumentList.$, a) !== null) {
36
+ this.add5(typeCast(Fdc3InstrumentList.$, a));
37
+ }
38
+ else if (typeCast(Fdc3Position.$, a) !== null) {
39
+ this.add9(typeCast(Fdc3Position.$, a));
40
+ }
41
+ else if (typeCast(Fdc3Portfolio.$, a) !== null) {
42
+ this.add8(typeCast(Fdc3Portfolio.$, a));
43
+ }
44
+ else if (typeCast(Fdc3Contact.$, a) !== null) {
45
+ this.add1(typeCast(Fdc3Contact.$, a));
46
+ }
47
+ else if (typeCast(Fdc3ContactList.$, a) !== null) {
48
+ this.add2(typeCast(Fdc3ContactList.$, a));
49
+ }
50
+ else if (typeCast(Fdc3Organization.$, a) !== null) {
51
+ this.add6(typeCast(Fdc3Organization.$, a));
52
+ }
53
+ else if (typeCast(Fdc3OrganizationList.$, a) !== null) {
54
+ this.add7(typeCast(Fdc3OrganizationList.$, a));
55
+ }
56
+ else {
57
+ this.add3(typeCast(Fdc3Context.$, a));
58
+ }
59
+ return this.toString();
60
+ };
61
+ Fdc3Serializer.prototype.add4 = function (a, b) {
62
+ if (b === void 0) {
63
+ b = "";
64
+ }
65
+ this.z("serializing Fdc3Instrument");
66
+ this.addObjectOpen();
67
+ this.addProp1("type", a.type);
68
+ if (!stringIsNullOrEmpty(a.target)) {
69
+ this.addProp1("target", a.target);
70
+ }
71
+ if (a.intent != 2) {
72
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
73
+ }
74
+ if (!stringIsNullOrEmpty(a.name)) {
75
+ this.addProp1("name", a.name);
76
+ }
77
+ var e = a.getKeys();
78
+ for (var d = 0; d < e.length; d++) {
79
+ var c = e[d];
80
+ if (c == "type") {
81
+ continue;
82
+ }
83
+ if (c == "name") {
84
+ continue;
85
+ }
86
+ if (c == "target") {
87
+ continue;
88
+ }
89
+ if (c == "intent") {
90
+ continue;
91
+ }
92
+ if (c == "ticker") {
93
+ continue;
94
+ }
95
+ if (c != "id") {
96
+ this.addProp1(c, a.item(c));
97
+ }
98
+ }
99
+ if (a.id == null) {
100
+ this.addProp1("id", "null");
101
+ }
102
+ else {
103
+ this.addProp("id");
104
+ this.addObjectOpen();
105
+ this.addProp1("ticker", a.ticker);
106
+ var h = a.id.getKeys();
107
+ for (var g = 0; g < h.length; g++) {
108
+ var f = h[g];
109
+ if (f == "ticker") {
110
+ continue;
111
+ }
112
+ this.addProp1(f, a.id.item(f));
113
+ }
114
+ this.addObjectClose();
115
+ }
116
+ this.addObjectClose(b);
117
+ };
118
+ Fdc3Serializer.prototype.add5 = function (a) {
119
+ this.z("serializing Fdc3InstrumentList");
120
+ this.addObjectOpen();
121
+ this.addProp1("type", a.type);
122
+ if (!stringIsNullOrEmpty(a.target)) {
123
+ this.addProp1("target", a.target);
124
+ }
125
+ if (a.intent != 2) {
126
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
127
+ }
128
+ if (!stringIsNullOrEmpty(a.name)) {
129
+ this.addProp1("name", a.name);
130
+ }
131
+ var d = a.getKeys();
132
+ for (var c = 0; c < d.length; c++) {
133
+ var b = d[c];
134
+ if (b == "type") {
135
+ continue;
136
+ }
137
+ if (b == "name") {
138
+ continue;
139
+ }
140
+ if (b == "target") {
141
+ continue;
142
+ }
143
+ if (b == "intent") {
144
+ continue;
145
+ }
146
+ if (b == "id") {
147
+ continue;
148
+ }
149
+ if (b != "instruments") {
150
+ this.addProp1(b, a.item(b));
151
+ }
152
+ }
153
+ if (a.instruments == null) {
154
+ this.addProp1("instruments", "null");
155
+ }
156
+ else {
157
+ this.addProp("instruments");
158
+ this.addArrayOpen();
159
+ var g = a.instruments;
160
+ for (var f = 0; f < g.length; f++) {
161
+ var e = g[f];
162
+ this.add4(e, ",");
163
+ }
164
+ this.addArrayClose();
165
+ }
166
+ this.addObjectClose();
167
+ };
168
+ Fdc3Serializer.prototype.add8 = function (a) {
169
+ this.z("serializing Fdc3Portfolio");
170
+ this.addObjectOpen();
171
+ this.addProp1("type", a.type);
172
+ if (!stringIsNullOrEmpty(a.target)) {
173
+ this.addProp1("target", a.target);
174
+ }
175
+ if (a.intent != 2) {
176
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
177
+ }
178
+ if (!stringIsNullOrEmpty(a.name)) {
179
+ this.addProp1("name", a.name);
180
+ }
181
+ var d = a.getKeys();
182
+ for (var c = 0; c < d.length; c++) {
183
+ var b = d[c];
184
+ if (b == "type") {
185
+ continue;
186
+ }
187
+ if (b == "name") {
188
+ continue;
189
+ }
190
+ if (b == "target") {
191
+ continue;
192
+ }
193
+ if (b == "intent") {
194
+ continue;
195
+ }
196
+ if (b == "id") {
197
+ continue;
198
+ }
199
+ if (b != "positions") {
200
+ this.addProp1(b, a.item(b));
201
+ }
202
+ }
203
+ if (a.positions == null) {
204
+ this.addProp1("positions", "null");
205
+ }
206
+ else {
207
+ this.addProp("positions");
208
+ this.addArrayOpen();
209
+ var g = a.positions;
210
+ for (var f = 0; f < g.length; f++) {
211
+ var e = g[f];
212
+ this.add9(e, ",");
213
+ }
214
+ this.addArrayClose();
215
+ }
216
+ this.addObjectClose();
217
+ };
218
+ Fdc3Serializer.prototype.add9 = function (a, b) {
219
+ if (b === void 0) {
220
+ b = "";
221
+ }
222
+ this.z("serializing Fdc3Position");
223
+ this.addObjectOpen();
224
+ this.addProp1("type", a.type);
225
+ if (!stringIsNullOrEmpty(a.target)) {
226
+ this.addProp1("target", a.target);
227
+ }
228
+ if (a.intent != 2) {
229
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
230
+ }
231
+ if (!stringIsNullOrEmpty(a.name)) {
232
+ this.addProp1("name", a.name);
233
+ }
234
+ var e = a.getKeys();
235
+ for (var d = 0; d < e.length; d++) {
236
+ var c = e[d];
237
+ if (c == "type") {
238
+ continue;
239
+ }
240
+ if (c == "name") {
241
+ continue;
242
+ }
243
+ if (c == "target") {
244
+ continue;
245
+ }
246
+ if (c == "intent") {
247
+ continue;
248
+ }
249
+ if (c == "id") {
250
+ continue;
251
+ }
252
+ if (c != "instrument") {
253
+ this.addProp1(c, a.item(c));
254
+ }
255
+ }
256
+ if (a.instrument == null) {
257
+ this.addProp1("instrument", "null");
258
+ }
259
+ else {
260
+ this.addProp("instrument");
261
+ this.add4(a.instrument, ",");
262
+ }
263
+ this.addObjectClose(b);
264
+ };
265
+ Fdc3Serializer.prototype.add1 = function (a, b) {
266
+ if (b === void 0) {
267
+ b = "";
268
+ }
269
+ this.addObjectOpen();
270
+ this.addProp1("type", a.type);
271
+ if (!stringIsNullOrEmpty(a.target)) {
272
+ this.addProp1("target", a.target);
273
+ }
274
+ if (a.intent != 2) {
275
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
276
+ }
277
+ if (!stringIsNullOrEmpty(a.name)) {
278
+ this.addProp1("name", a.name);
279
+ }
280
+ var e = a.getKeys();
281
+ for (var d = 0; d < e.length; d++) {
282
+ var c = e[d];
283
+ if (c == "type") {
284
+ continue;
285
+ }
286
+ if (c == "name") {
287
+ continue;
288
+ }
289
+ if (c == "target") {
290
+ continue;
291
+ }
292
+ if (c == "intent") {
293
+ continue;
294
+ }
295
+ if (c == "email") {
296
+ continue;
297
+ }
298
+ if (c == "phone") {
299
+ continue;
300
+ }
301
+ if (c != "id") {
302
+ this.addProp1(c, a.item(c));
303
+ }
304
+ }
305
+ if (a.id == null) {
306
+ this.addProp1("id", "null");
307
+ }
308
+ else {
309
+ this.addProp("id");
310
+ this.addObjectOpen();
311
+ var h = a.id.getKeys();
312
+ for (var g = 0; g < h.length; g++) {
313
+ var f = h[g];
314
+ this.addProp1(f, a.id.item(f));
315
+ }
316
+ this.addObjectClose();
317
+ }
318
+ this.addObjectClose(b);
319
+ };
320
+ Fdc3Serializer.prototype.z = function (message_) {
321
+ };
322
+ Fdc3Serializer.prototype.add2 = function (a) {
323
+ this.addObjectOpen();
324
+ this.addProp1("type", a.type);
325
+ if (!stringIsNullOrEmpty(a.target)) {
326
+ this.addProp1("target", a.target);
327
+ }
328
+ if (a.intent != 2) {
329
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
330
+ }
331
+ if (!stringIsNullOrEmpty(a.name)) {
332
+ this.addProp1("name", a.name);
333
+ }
334
+ var d = a.getKeys();
335
+ for (var c = 0; c < d.length; c++) {
336
+ var b = d[c];
337
+ if (b == "type") {
338
+ continue;
339
+ }
340
+ if (b == "name") {
341
+ continue;
342
+ }
343
+ if (b == "target") {
344
+ continue;
345
+ }
346
+ if (b == "intent") {
347
+ continue;
348
+ }
349
+ if (b == "id") {
350
+ continue;
351
+ }
352
+ if (b != "contacts") {
353
+ this.addProp1(b, a.item(b));
354
+ }
355
+ }
356
+ if (a.contacts == null) {
357
+ this.addProp1("contacts", "null");
358
+ }
359
+ else {
360
+ this.addProp("contacts");
361
+ this.addArrayOpen();
362
+ var g = a.contacts;
363
+ for (var f = 0; f < g.length; f++) {
364
+ var e = g[f];
365
+ this.add1(e, ",");
366
+ }
367
+ this.addArrayClose();
368
+ }
369
+ this.addObjectClose();
370
+ };
371
+ Fdc3Serializer.prototype.add6 = function (a, b) {
372
+ if (b === void 0) {
373
+ b = "";
374
+ }
375
+ this.z("serializing Fdc3Organization");
376
+ this.addObjectOpen();
377
+ this.addProp1("type", a.type);
378
+ if (!stringIsNullOrEmpty(a.target)) {
379
+ this.addProp1("target", a.target);
380
+ }
381
+ if (a.intent != 2) {
382
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
383
+ }
384
+ if (!stringIsNullOrEmpty(a.name)) {
385
+ this.addProp1("name", a.name);
386
+ }
387
+ var e = a.getKeys();
388
+ for (var d = 0; d < e.length; d++) {
389
+ var c = e[d];
390
+ if (c == "type") {
391
+ continue;
392
+ }
393
+ if (c == "name") {
394
+ continue;
395
+ }
396
+ if (c == "target") {
397
+ continue;
398
+ }
399
+ if (c == "intent") {
400
+ continue;
401
+ }
402
+ if (c == "email") {
403
+ continue;
404
+ }
405
+ if (c == "phone") {
406
+ continue;
407
+ }
408
+ if (c != "id") {
409
+ this.addProp1(c, a.item(c));
410
+ }
411
+ }
412
+ if (a.id == null) {
413
+ this.addProp1("id", "null");
414
+ }
415
+ else {
416
+ this.addProp("id");
417
+ this.addObjectOpen();
418
+ var h = a.id.getKeys();
419
+ for (var g = 0; g < h.length; g++) {
420
+ var f = h[g];
421
+ this.addProp1(f, a.id.item(f));
422
+ }
423
+ this.addObjectClose();
424
+ }
425
+ this.addObjectClose(b);
426
+ };
427
+ Fdc3Serializer.prototype.add7 = function (a) {
428
+ this.addObjectOpen();
429
+ this.addProp1("type", a.type);
430
+ if (!stringIsNullOrEmpty(a.target)) {
431
+ this.addProp1("target", a.target);
432
+ }
433
+ if (a.intent != 2) {
434
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
435
+ }
436
+ if (!stringIsNullOrEmpty(a.name)) {
437
+ this.addProp1("name", a.name);
438
+ }
439
+ var d = a.getKeys();
440
+ for (var c = 0; c < d.length; c++) {
441
+ var b = d[c];
442
+ if (b == "type") {
443
+ continue;
444
+ }
445
+ if (b == "name") {
446
+ continue;
447
+ }
448
+ if (b == "target") {
449
+ continue;
450
+ }
451
+ if (b == "intent") {
452
+ continue;
453
+ }
454
+ if (b == "id") {
455
+ continue;
456
+ }
457
+ if (b != "organizations") {
458
+ this.addProp1(b, a.item(b));
459
+ }
460
+ }
461
+ if (a.organizations == null) {
462
+ this.addProp1("organizations", "null");
463
+ }
464
+ else {
465
+ this.addProp("organizations");
466
+ this.addArrayOpen();
467
+ var g = a.organizations;
468
+ for (var f = 0; f < g.length; f++) {
469
+ var e = g[f];
470
+ this.add4(e, ",");
471
+ }
472
+ this.addArrayClose();
473
+ }
474
+ this.addObjectClose();
475
+ };
476
+ Fdc3Serializer.prototype.add3 = function (a, b) {
477
+ if (b === void 0) {
478
+ b = "";
479
+ }
480
+ this.z("serializing Fdc3Context");
481
+ this.addObjectOpen();
482
+ this.addProp1("type", a.type);
483
+ if (!stringIsNullOrEmpty(a.target)) {
484
+ this.addProp1("target", a.target);
485
+ }
486
+ if (a.intent != 2) {
487
+ this.addProp1("intent", EnumUtil.getName(Fdc3IntentType_$type, a.intent));
488
+ }
489
+ if (!stringIsNullOrEmpty(a.name)) {
490
+ this.addProp1("name", a.name);
491
+ }
492
+ var e = a.getKeys();
493
+ for (var d = 0; d < e.length; d++) {
494
+ var c = e[d];
495
+ if (c == "type") {
496
+ continue;
497
+ }
498
+ if (c == "name") {
499
+ continue;
500
+ }
501
+ if (c == "target") {
502
+ continue;
503
+ }
504
+ if (c == "intent") {
505
+ continue;
506
+ }
507
+ if (c != "id") {
508
+ this.addProp1(c, a.item(c));
509
+ }
510
+ }
511
+ if (a.id == null) {
512
+ this.addProp1("id", "null");
513
+ }
514
+ else {
515
+ this.addProp("id");
516
+ this.addObjectOpen();
517
+ var h = a.id.getKeys();
518
+ for (var g = 0; g < h.length; g++) {
519
+ var f = h[g];
520
+ this.addProp1(f, a.id.item(f));
521
+ }
522
+ this.addObjectClose();
523
+ }
524
+ this.addObjectClose(b);
525
+ };
526
+ Fdc3Serializer.prototype.addArrayOpen = function () {
527
+ this.addLine("[");
528
+ this.tabIncrease();
529
+ return this;
530
+ };
531
+ Fdc3Serializer.prototype.addArrayClose = function (a) {
532
+ if (a === void 0) {
533
+ a = "";
534
+ }
535
+ this.tabDecrease();
536
+ this.addLine("]" + a);
537
+ return this;
538
+ };
539
+ Fdc3Serializer.prototype.addObjectOpen = function () {
540
+ this.addLine("{");
541
+ this.tabIncrease();
542
+ return this;
543
+ };
544
+ Fdc3Serializer.prototype.addObjectClose = function (a) {
545
+ if (a === void 0) {
546
+ a = "";
547
+ }
548
+ this.tabDecrease();
549
+ this.addLine("}" + a);
550
+ return this;
551
+ };
552
+ Fdc3Serializer.prototype.add = function (a) {
553
+ this.i();
554
+ this._sb.l(a);
555
+ return this;
556
+ };
557
+ Fdc3Serializer.prototype.addLine = function (a) {
558
+ this.i();
559
+ this._sb.u(a);
560
+ this.l = true;
561
+ return this;
562
+ };
563
+ Fdc3Serializer.prototype.addProp = function (a) {
564
+ this.i();
565
+ this._sb.u("\"" + a + "\": ");
566
+ this.l = true;
567
+ return this;
568
+ };
569
+ Fdc3Serializer.prototype.addProp1 = function (a, b, c) {
570
+ if (c === void 0) {
571
+ c = "";
572
+ }
573
+ this.i();
574
+ if (!stringIsNullOrEmpty(c)) {
575
+ c = " // " + c;
576
+ }
577
+ var d = b == null ? "null" : b;
578
+ if (typeof b === 'string') {
579
+ this._sb.u("\"" + a + "\": \"" + d + "\"," + c);
580
+ }
581
+ else if (typeCast(Boolean_$type, b) !== null) {
582
+ var e = d.toString().toLowerCase();
583
+ this._sb.u("\"" + a + "\": " + e + "," + c);
584
+ }
585
+ else {
586
+ this._sb.u("\"" + a + "\": " + d + "," + c);
587
+ }
588
+ this.l = true;
589
+ return this;
590
+ };
591
+ Fdc3Serializer.prototype.i = function () {
592
+ if (this.l) {
593
+ for (var a = 0; a < this.m; a++) {
594
+ this._sb.l(" ");
595
+ }
596
+ this.l = false;
597
+ }
598
+ return this;
599
+ };
600
+ Fdc3Serializer.prototype.tabIncrease = function () {
601
+ this.m++;
602
+ return this;
603
+ };
604
+ Fdc3Serializer.prototype.tabDecrease = function () {
605
+ this.m--;
606
+ return this;
607
+ };
608
+ Fdc3Serializer.$t = markType(Fdc3Serializer, 'Fdc3Serializer');
609
+ return Fdc3Serializer;
610
+ }(Base));
611
+ export { Fdc3Serializer };
612
+ /**
613
+ * @hidden
614
+ */
615
+ var Fdc3Context = /** @class */ /*@__PURE__*/ (function (_super) {
616
+ tslib_1.__extends(Fdc3Context, _super);
617
+ function Fdc3Context(a) {
618
+ var _rest = [];
619
+ for (var _i = 1; _i < arguments.length; _i++) {
620
+ _rest[_i - 1] = arguments[_i];
621
+ }
622
+ var _this = _super.call(this) || this;
623
+ _this._id = null;
624
+ a = (a == void 0) ? 0 : a;
625
+ switch (a) {
626
+ case 0:
627
+ {
628
+ var c = [0];
629
+ {
630
+ var e = c[0];
631
+ _this.type = Fdc3Util.getString(e);
632
+ _this.id = new Fdc3Dictionary();
633
+ }
634
+ }
635
+ break;
636
+ case 1:
637
+ {
638
+ var c = _rest[0];
639
+ _this.type = Fdc3Util.getString(c);
640
+ _this.id = new Fdc3Dictionary();
641
+ }
642
+ break;
643
+ }
644
+ return _this;
645
+ }
646
+ Object.defineProperty(Fdc3Context.prototype, "intent", {
647
+ get: function () {
648
+ return Fdc3Util.b(this.item("intent").toString());
649
+ },
650
+ set: function (a) {
651
+ this.item("intent", enumGetBox(Fdc3IntentType_$type, a));
652
+ },
653
+ enumerable: true,
654
+ configurable: true
655
+ });
656
+ Object.defineProperty(Fdc3Context.prototype, "type", {
657
+ get: function () {
658
+ return this.item("type").toString();
659
+ },
660
+ set: function (a) {
661
+ this.item("type", a);
662
+ },
663
+ enumerable: true,
664
+ configurable: true
665
+ });
666
+ Object.defineProperty(Fdc3Context.prototype, "target", {
667
+ get: function () {
668
+ return this.h("target");
669
+ },
670
+ set: function (a) {
671
+ this.item("target", a);
672
+ },
673
+ enumerable: true,
674
+ configurable: true
675
+ });
676
+ Object.defineProperty(Fdc3Context.prototype, "name", {
677
+ get: function () {
678
+ return this.h("name");
679
+ },
680
+ set: function (a) {
681
+ this.item("name", a);
682
+ },
683
+ enumerable: true,
684
+ configurable: true
685
+ });
686
+ Object.defineProperty(Fdc3Context.prototype, "id", {
687
+ get: function () {
688
+ return this._id;
689
+ },
690
+ set: function (a) {
691
+ this._id = a;
692
+ },
693
+ enumerable: true,
694
+ configurable: true
695
+ });
696
+ Fdc3Context.prototype.toJson = function () {
697
+ var a = new Fdc3Serializer();
698
+ var b = a.toJson(this);
699
+ return b;
700
+ };
701
+ Fdc3Context.$t = markType(Fdc3Context, 'Fdc3Context', Fdc3Dictionary.$);
702
+ return Fdc3Context;
703
+ }(Fdc3Dictionary));
704
+ export { Fdc3Context };
705
+ /**
706
+ * @hidden
707
+ */
708
+ var Fdc3Instrument = /** @class */ /*@__PURE__*/ (function (_super) {
709
+ tslib_1.__extends(Fdc3Instrument, _super);
710
+ function Fdc3Instrument() {
711
+ return _super.call(this, 1, 1) || this;
712
+ }
713
+ Object.defineProperty(Fdc3Instrument.prototype, "ticker", {
714
+ get: function () {
715
+ return this.id.item("ticker").toString();
716
+ },
717
+ set: function (a) {
718
+ this.id.item("ticker", a);
719
+ },
720
+ enumerable: true,
721
+ configurable: true
722
+ });
723
+ Fdc3Instrument.$t = markType(Fdc3Instrument, 'Fdc3Instrument', Fdc3Context.$);
724
+ return Fdc3Instrument;
725
+ }(Fdc3Context));
726
+ export { Fdc3Instrument };
727
+ /**
728
+ * @hidden
729
+ */
730
+ var Fdc3InstrumentList = /** @class */ /*@__PURE__*/ (function (_super) {
731
+ tslib_1.__extends(Fdc3InstrumentList, _super);
732
+ function Fdc3InstrumentList() {
733
+ var _this = _super.call(this, 0) || this;
734
+ _this._instruments = null;
735
+ _this.type = Fdc3Util.getString(2);
736
+ _this.instruments = new Array(0);
737
+ return _this;
738
+ }
739
+ Object.defineProperty(Fdc3InstrumentList.prototype, "instruments", {
740
+ get: function () {
741
+ return this._instruments;
742
+ },
743
+ set: function (a) {
744
+ this._instruments = a;
745
+ },
746
+ enumerable: true,
747
+ configurable: true
748
+ });
749
+ Fdc3InstrumentList.$t = markType(Fdc3InstrumentList, 'Fdc3InstrumentList', Fdc3Context.$);
750
+ return Fdc3InstrumentList;
751
+ }(Fdc3Context));
752
+ export { Fdc3InstrumentList };
753
+ /**
754
+ * @hidden
755
+ */
756
+ var Fdc3Position = /** @class */ /*@__PURE__*/ (function (_super) {
757
+ tslib_1.__extends(Fdc3Position, _super);
758
+ function Fdc3Position() {
759
+ var _this = _super.call(this, 1, 3) || this;
760
+ _this.instrument = new Fdc3Instrument();
761
+ return _this;
762
+ }
763
+ Object.defineProperty(Fdc3Position.prototype, "instrument", {
764
+ get: function () {
765
+ return typeCast(Fdc3Instrument.$, this.item("instrument"));
766
+ },
767
+ set: function (a) {
768
+ this.item("instrument", a);
769
+ },
770
+ enumerable: true,
771
+ configurable: true
772
+ });
773
+ Object.defineProperty(Fdc3Position.prototype, "shares", {
774
+ get: function () {
775
+ return this.e("shares");
776
+ },
777
+ set: function (a) {
778
+ this.item("shares", a);
779
+ },
780
+ enumerable: true,
781
+ configurable: true
782
+ });
783
+ Object.defineProperty(Fdc3Position.prototype, "cost", {
784
+ get: function () {
785
+ return this.e("cost");
786
+ },
787
+ set: function (a) {
788
+ this.item("cost", a);
789
+ },
790
+ enumerable: true,
791
+ configurable: true
792
+ });
793
+ Object.defineProperty(Fdc3Position.prototype, "price", {
794
+ get: function () {
795
+ return this.e("price");
796
+ },
797
+ set: function (a) {
798
+ this.item("price", a);
799
+ },
800
+ enumerable: true,
801
+ configurable: true
802
+ });
803
+ Fdc3Position.$t = markType(Fdc3Position, 'Fdc3Position', Fdc3Context.$);
804
+ return Fdc3Position;
805
+ }(Fdc3Context));
806
+ export { Fdc3Position };
807
+ /**
808
+ * @hidden
809
+ */
810
+ var Fdc3Portfolio = /** @class */ /*@__PURE__*/ (function (_super) {
811
+ tslib_1.__extends(Fdc3Portfolio, _super);
812
+ function Fdc3Portfolio() {
813
+ var _this = _super.call(this, 1, 4) || this;
814
+ _this._positions = null;
815
+ _this.positions = new Array(0);
816
+ return _this;
817
+ }
818
+ Object.defineProperty(Fdc3Portfolio.prototype, "positions", {
819
+ get: function () {
820
+ return this._positions;
821
+ },
822
+ set: function (a) {
823
+ this._positions = a;
824
+ },
825
+ enumerable: true,
826
+ configurable: true
827
+ });
828
+ Fdc3Portfolio.$t = markType(Fdc3Portfolio, 'Fdc3Portfolio', Fdc3Context.$);
829
+ return Fdc3Portfolio;
830
+ }(Fdc3Context));
831
+ export { Fdc3Portfolio };
832
+ /**
833
+ * @hidden
834
+ */
835
+ var Fdc3Organization = /** @class */ /*@__PURE__*/ (function (_super) {
836
+ tslib_1.__extends(Fdc3Organization, _super);
837
+ function Fdc3Organization() {
838
+ return _super.call(this, 1, 7) || this;
839
+ }
840
+ Fdc3Organization.$t = markType(Fdc3Organization, 'Fdc3Organization', Fdc3Context.$);
841
+ return Fdc3Organization;
842
+ }(Fdc3Context));
843
+ export { Fdc3Organization };
844
+ /**
845
+ * @hidden
846
+ */
847
+ var Fdc3OrganizationList = /** @class */ /*@__PURE__*/ (function (_super) {
848
+ tslib_1.__extends(Fdc3OrganizationList, _super);
849
+ function Fdc3OrganizationList() {
850
+ var _this = _super.call(this, 1, 8) || this;
851
+ _this._organizations = null;
852
+ return _this;
853
+ }
854
+ Object.defineProperty(Fdc3OrganizationList.prototype, "organizations", {
855
+ get: function () {
856
+ return this._organizations;
857
+ },
858
+ set: function (a) {
859
+ this._organizations = a;
860
+ },
861
+ enumerable: true,
862
+ configurable: true
863
+ });
864
+ Fdc3OrganizationList.$t = markType(Fdc3OrganizationList, 'Fdc3OrganizationList', Fdc3Context.$);
865
+ return Fdc3OrganizationList;
866
+ }(Fdc3Context));
867
+ export { Fdc3OrganizationList };
868
+ /**
869
+ * @hidden
870
+ */
871
+ var Fdc3Contact = /** @class */ /*@__PURE__*/ (function (_super) {
872
+ tslib_1.__extends(Fdc3Contact, _super);
873
+ function Fdc3Contact(a) {
874
+ var _rest = [];
875
+ for (var _i = 1; _i < arguments.length; _i++) {
876
+ _rest[_i - 1] = arguments[_i];
877
+ }
878
+ var _this = this;
879
+ a = (a == void 0) ? 0 : a;
880
+ switch (a) {
881
+ case 0:
882
+ {
883
+ var c = ["", "", "", ""];
884
+ {
885
+ var e = c[0];
886
+ var f = c[1];
887
+ var g = c[2];
888
+ var h = c[3];
889
+ _this = _super.call(this, 1, 5) || this;
890
+ _this.name = e;
891
+ _this.email = f;
892
+ _this.phone = g;
893
+ _this.twitter = h;
894
+ }
895
+ }
896
+ break;
897
+ case 1:
898
+ {
899
+ var c = _rest[0];
900
+ var d = _rest[1];
901
+ var e = _rest[2];
902
+ var f = _rest[3];
903
+ _this = _super.call(this, 1, 5) || this;
904
+ _this.name = c;
905
+ _this.email = d;
906
+ _this.phone = e;
907
+ _this.twitter = f;
908
+ }
909
+ break;
910
+ }
911
+ return _this;
912
+ }
913
+ Object.defineProperty(Fdc3Contact.prototype, "email", {
914
+ get: function () {
915
+ return this.id.item("email").toString();
916
+ },
917
+ set: function (a) {
918
+ this.id.item("email", a);
919
+ },
920
+ enumerable: true,
921
+ configurable: true
922
+ });
923
+ Object.defineProperty(Fdc3Contact.prototype, "phone", {
924
+ get: function () {
925
+ return this.id.item("phone").toString();
926
+ },
927
+ set: function (a) {
928
+ this.id.item("phone", a);
929
+ },
930
+ enumerable: true,
931
+ configurable: true
932
+ });
933
+ Object.defineProperty(Fdc3Contact.prototype, "twitter", {
934
+ get: function () {
935
+ return this.id.item("twitter").toString();
936
+ },
937
+ set: function (a) {
938
+ this.id.item("twitter", a);
939
+ },
940
+ enumerable: true,
941
+ configurable: true
942
+ });
943
+ Fdc3Contact.$t = markType(Fdc3Contact, 'Fdc3Contact', Fdc3Context.$);
944
+ return Fdc3Contact;
945
+ }(Fdc3Context));
946
+ export { Fdc3Contact };
947
+ /**
948
+ * @hidden
949
+ */
950
+ var Fdc3ContactList = /** @class */ /*@__PURE__*/ (function (_super) {
951
+ tslib_1.__extends(Fdc3ContactList, _super);
952
+ function Fdc3ContactList(a) {
953
+ var _rest = [];
954
+ for (var _i = 1; _i < arguments.length; _i++) {
955
+ _rest[_i - 1] = arguments[_i];
956
+ }
957
+ var _this = this;
958
+ a = (a == void 0) ? 0 : a;
959
+ switch (a) {
960
+ case 0:
961
+ {
962
+ _this = _super.call(this, 1, 6) || this;
963
+ _this._contacts = null;
964
+ _this.contacts = new Array(0);
965
+ }
966
+ break;
967
+ case 1:
968
+ {
969
+ var c = _rest[0];
970
+ {
971
+ _this = _super.call(this, 1, 6) || this;
972
+ _this._contacts = null;
973
+ _this.contacts = new Array(0);
974
+ }
975
+ _this.contacts = c;
976
+ }
977
+ break;
978
+ }
979
+ return _this;
980
+ }
981
+ Object.defineProperty(Fdc3ContactList.prototype, "contacts", {
982
+ get: function () {
983
+ return this._contacts;
984
+ },
985
+ set: function (a) {
986
+ this._contacts = a;
987
+ },
988
+ enumerable: true,
989
+ configurable: true
990
+ });
991
+ Fdc3ContactList.$t = markType(Fdc3ContactList, 'Fdc3ContactList', Fdc3Context.$);
992
+ return Fdc3ContactList;
993
+ }(Fdc3Context));
994
+ export { Fdc3ContactList };
995
+ //# sourceMappingURL=Fdc3Serializer_combined.js.map