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