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,2024 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('igniteui-webcomponents-core')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'tslib', 'igniteui-webcomponents-core'], factory) :
4
+ (global = global || self, factory(global['igniteui-webcomponents-fdc3'] = {}, global.tslib_1, global.igniteuiWebcomponentsCore));
5
+ }(this, (function (exports, tslib_1, igniteuiWebcomponentsCore) { 'use strict';
6
+
7
+ /*
8
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
9
+ https://www.infragistics.com/legal/license/igultimate-la
10
+ https://www.infragistics.com/legal/license/igultimate-eula
11
+ 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.
12
+ */
13
+ /**
14
+ * Specifies type of FDC3 intent
15
+ * https://fdc3.finos.org/docs/1.0/intents-spec
16
+ *
17
+ */
18
+ var Fdc3IntentType = /*@__PURE__*/ (function (Fdc3IntentType) {
19
+ /**
20
+ * Specifies no intent for FDC3 data adapter to listen to
21
+ */
22
+ Fdc3IntentType[Fdc3IntentType["None"] = 0] = "None";
23
+ /**
24
+ * Specifies all intents for FDC3 data adapter to listen to
25
+ */
26
+ Fdc3IntentType[Fdc3IntentType["All"] = 1] = "All";
27
+ /**
28
+ * Specifies an intent that is unknown by FDC3 data adapter
29
+ */
30
+ Fdc3IntentType[Fdc3IntentType["Unknown"] = 2] = "Unknown";
31
+ /**
32
+ * Specifies an intent to view a chart for stock tickers in the Instrument context
33
+ */
34
+ Fdc3IntentType[Fdc3IntentType["ViewChart"] = 3] = "ViewChart";
35
+ /**
36
+ * Specifies an intent to view information about stock tickers in the Instrument context
37
+ */
38
+ Fdc3IntentType[Fdc3IntentType["ViewInstrument"] = 4] = "ViewInstrument";
39
+ /**
40
+ * Currently not supported - Starts a call with Contact(s) context
41
+ */
42
+ Fdc3IntentType[Fdc3IntentType["StartCall"] = 5] = "StartCall";
43
+ /**
44
+ * Currently not supported - Starts a chat with Contact(s) context
45
+ */
46
+ Fdc3IntentType[Fdc3IntentType["StartChat"] = 6] = "StartChat";
47
+ /**
48
+ * Currently not supported - Display analysis about Instrument, Contact, or Organization
49
+ */
50
+ Fdc3IntentType[Fdc3IntentType["ViewAnalysis"] = 7] = "ViewAnalysis";
51
+ /**
52
+ * Currently not supported - Display details of the Contact context
53
+ */
54
+ Fdc3IntentType[Fdc3IntentType["ViewContact"] = 8] = "ViewContact";
55
+ /**
56
+ * Currently not supported - Display news for Instrument, Contact, or Organization
57
+ */
58
+ Fdc3IntentType[Fdc3IntentType["ViewNews"] = 9] = "ViewNews";
59
+ /**
60
+ * Currently not supported - Display pricing for the Instrument context
61
+ */
62
+ Fdc3IntentType[Fdc3IntentType["ViewQuote"] = 10] = "ViewQuote";
63
+ return Fdc3IntentType;
64
+ })({});
65
+ /**
66
+ * @hidden
67
+ */
68
+ var Fdc3IntentType_$type = /*@__PURE__*/ igniteuiWebcomponentsCore.markEnum('Fdc3IntentType', 'None,0|All,1|Unknown,2|ViewChart,3|ViewInstrument,4|StartCall,5|StartChat,6|ViewAnalysis,7|ViewContact,8|ViewNews,9|ViewQuote,10');
69
+
70
+ /*
71
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
72
+ https://www.infragistics.com/legal/license/igultimate-la
73
+ https://www.infragistics.com/legal/license/igultimate-eula
74
+ 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.
75
+ */
76
+ /**
77
+ * @hidden
78
+ */
79
+ var Fdc3Dictionary = /** @class */ /*@__PURE__*/ (function (_super) {
80
+ tslib_1.__extends(Fdc3Dictionary, _super);
81
+ function Fdc3Dictionary() {
82
+ var _this = _super.call(this) || this;
83
+ _this.d = null;
84
+ _this.d = new igniteuiWebcomponentsCore.Dictionary$2(igniteuiWebcomponentsCore.String_$type, igniteuiWebcomponentsCore.Base.$, 0);
85
+ return _this;
86
+ }
87
+ Fdc3Dictionary.prototype.getKeys = function () {
88
+ var e_1, _a;
89
+ var a = new igniteuiWebcomponentsCore.List$1(igniteuiWebcomponentsCore.String_$type, 0);
90
+ try {
91
+ for (var _b = tslib_1.__values(igniteuiWebcomponentsCore.fromEnum(this.d)), _c = _b.next(); !_c.done; _c = _b.next()) {
92
+ var b = _c.value;
93
+ a.add(b.key);
94
+ }
95
+ }
96
+ catch (e_1_1) {
97
+ e_1 = { error: e_1_1 };
98
+ }
99
+ finally {
100
+ try {
101
+ if (_c && !_c.done && (_a = _b.return))
102
+ _a.call(_b);
103
+ }
104
+ finally {
105
+ if (e_1)
106
+ throw e_1.error;
107
+ }
108
+ }
109
+ return a.toArray();
110
+ };
111
+ Fdc3Dictionary.prototype.getValues = function () {
112
+ var e_2, _a;
113
+ var a = new igniteuiWebcomponentsCore.List$1(igniteuiWebcomponentsCore.Base.$, 0);
114
+ try {
115
+ for (var _b = tslib_1.__values(igniteuiWebcomponentsCore.fromEnum(this.d)), _c = _b.next(); !_c.done; _c = _b.next()) {
116
+ var b = _c.value;
117
+ a.add1(b.value);
118
+ }
119
+ }
120
+ catch (e_2_1) {
121
+ e_2 = { error: e_2_1 };
122
+ }
123
+ finally {
124
+ try {
125
+ if (_c && !_c.done && (_a = _b.return))
126
+ _a.call(_b);
127
+ }
128
+ finally {
129
+ if (e_2)
130
+ throw e_2.error;
131
+ }
132
+ }
133
+ return a.toArray();
134
+ };
135
+ Fdc3Dictionary.prototype.item = function (a, b) {
136
+ if (arguments.length === 2) {
137
+ this.set(a, b);
138
+ return b;
139
+ }
140
+ else {
141
+ return this.get(a);
142
+ }
143
+ };
144
+ Fdc3Dictionary.prototype.get = function (a) {
145
+ if (!this.d.containsKey(a)) {
146
+ this.set(a, "");
147
+ }
148
+ if (this.d.item(a) == null) {
149
+ return "";
150
+ }
151
+ return this.d.item(a);
152
+ };
153
+ Fdc3Dictionary.prototype.h = function (a) {
154
+ return this.get(a).toString();
155
+ };
156
+ Fdc3Dictionary.prototype.e = function (a) {
157
+ if (!this.d.containsKey(a)) {
158
+ this.set(a, 0);
159
+ return 0;
160
+ }
161
+ if (this.d.item(a) == null) {
162
+ return 0;
163
+ }
164
+ return parseFloat(this.d.item(a).toString());
165
+ };
166
+ Fdc3Dictionary.prototype.set = function (a, b) {
167
+ if (this.d.containsKey(a)) {
168
+ this.d.item(a, b);
169
+ }
170
+ else {
171
+ this.d.addItem(a, b);
172
+ }
173
+ };
174
+ Fdc3Dictionary.prototype.remove = function (a) {
175
+ if (this.d.containsKey(a)) {
176
+ this.d.removeItem(a);
177
+ }
178
+ };
179
+ Fdc3Dictionary.prototype.contains = function (a) {
180
+ return this.d.containsKey(a);
181
+ };
182
+ Fdc3Dictionary.$t = igniteuiWebcomponentsCore.markType(Fdc3Dictionary, 'Fdc3Dictionary');
183
+ return Fdc3Dictionary;
184
+ }(igniteuiWebcomponentsCore.Base));
185
+
186
+ /*
187
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
188
+ https://www.infragistics.com/legal/license/igultimate-la
189
+ https://www.infragistics.com/legal/license/igultimate-eula
190
+ 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.
191
+ */
192
+ /**
193
+ * Specifies type of FDC3 context
194
+ * https://fdc3.finos.org/docs/1.0/context-spec
195
+ *
196
+ */
197
+ var Fdc3ContextType = /*@__PURE__*/ (function (Fdc3ContextType) {
198
+ /**
199
+ * Specifies a context that is unknown by FDC3 data adapter
200
+ */
201
+ Fdc3ContextType[Fdc3ContextType["Unknown"] = 0] = "Unknown";
202
+ /**
203
+ * Specifies FDC3 context for single instrument with stock name, stock ticker/symbol
204
+ */
205
+ Fdc3ContextType[Fdc3ContextType["Instrument"] = 1] = "Instrument";
206
+ /**
207
+ * Specifies FDC3 context for multiple instrument
208
+ */
209
+ Fdc3ContextType[Fdc3ContextType["InstrumentList"] = 2] = "InstrumentList";
210
+ /**
211
+ * Specifies FDC3 context for single position
212
+ */
213
+ Fdc3ContextType[Fdc3ContextType["Position"] = 3] = "Position";
214
+ /**
215
+ * Specifies FDC3 context for multiple positions
216
+ */
217
+ Fdc3ContextType[Fdc3ContextType["Portfolio"] = 4] = "Portfolio";
218
+ /**
219
+ * Currently not supported - Specifies FDC3 context for single contact with person name, email, phone, etc.
220
+ */
221
+ Fdc3ContextType[Fdc3ContextType["Contact"] = 5] = "Contact";
222
+ /**
223
+ * Currently not supported - Specifies FDC3 context for multiple contacts
224
+ */
225
+ Fdc3ContextType[Fdc3ContextType["ContactList"] = 6] = "ContactList";
226
+ /**
227
+ * Currently not supported - Specifies FDC3 context for single organization with company name
228
+ */
229
+ Fdc3ContextType[Fdc3ContextType["Organization"] = 7] = "Organization";
230
+ /**
231
+ * Currently not supported - Specifies FDC3 context for multiple organizations
232
+ */
233
+ Fdc3ContextType[Fdc3ContextType["OrganizationList"] = 8] = "OrganizationList";
234
+ return Fdc3ContextType;
235
+ })({});
236
+ /**
237
+ * @hidden
238
+ */
239
+ var Fdc3ContextType_$type = /*@__PURE__*/ igniteuiWebcomponentsCore.markEnum('Fdc3ContextType', 'Unknown,0|Instrument,1|InstrumentList,2|Position,3|Portfolio,4|Contact,5|ContactList,6|Organization,7|OrganizationList,8');
240
+
241
+ /*
242
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
243
+ https://www.infragistics.com/legal/license/igultimate-la
244
+ https://www.infragistics.com/legal/license/igultimate-eula
245
+ 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.
246
+ */
247
+ /**
248
+ * @hidden
249
+ */
250
+ var Fdc3Util = /** @class */ /*@__PURE__*/ (function (_super) {
251
+ tslib_1.__extends(Fdc3Util, _super);
252
+ function Fdc3Util() {
253
+ return _super !== null && _super.apply(this, arguments) || this;
254
+ }
255
+ Fdc3Util.staticInit = function () {
256
+ Fdc3Util.c = new igniteuiWebcomponentsCore.Dictionary$2(igniteuiWebcomponentsCore.String_$type, Fdc3ContextType_$type, 0);
257
+ Fdc3Util.f(0);
258
+ Fdc3Util.f(1);
259
+ Fdc3Util.f(2);
260
+ Fdc3Util.f(3);
261
+ Fdc3Util.f(4);
262
+ Fdc3Util.f(7);
263
+ Fdc3Util.f(8);
264
+ Fdc3Util.f(5);
265
+ Fdc3Util.f(6);
266
+ Fdc3Util.d = new igniteuiWebcomponentsCore.Dictionary$2(igniteuiWebcomponentsCore.String_$type, Fdc3IntentType_$type, 0);
267
+ Fdc3Util.g(2);
268
+ Fdc3Util.g(3);
269
+ Fdc3Util.g(4);
270
+ Fdc3Util.g(7);
271
+ Fdc3Util.g(5);
272
+ Fdc3Util.g(6);
273
+ Fdc3Util.g(8);
274
+ Fdc3Util.g(10);
275
+ Fdc3Util.g(9);
276
+ };
277
+ Fdc3Util.getString = function (a) {
278
+ var b = igniteuiWebcomponentsCore.EnumUtil.getName(Fdc3ContextType_$type, a);
279
+ return "fdc3." + b.substr(0, 1).toLowerCase() + b.substr(1);
280
+ };
281
+ Fdc3Util.a = function (a) {
282
+ if (Fdc3Util.c.containsKey(a)) {
283
+ return Fdc3Util.c.item(a);
284
+ }
285
+ else {
286
+ return 0;
287
+ }
288
+ };
289
+ Fdc3Util.b = function (a) {
290
+ if (Fdc3Util.d.containsKey(a)) {
291
+ return Fdc3Util.d.item(a);
292
+ }
293
+ else {
294
+ return 2;
295
+ }
296
+ };
297
+ Fdc3Util.f = function (a) {
298
+ var b = Fdc3Util.getString(a);
299
+ if (!Fdc3Util.c.containsKey(b)) {
300
+ Fdc3Util.c.addItem(b, a);
301
+ }
302
+ };
303
+ Fdc3Util.g = function (a) {
304
+ var b = igniteuiWebcomponentsCore.EnumUtil.getName(Fdc3IntentType_$type, a);
305
+ if (!Fdc3Util.d.containsKey(b)) {
306
+ Fdc3Util.d.addItem(b, a);
307
+ }
308
+ };
309
+ Fdc3Util.$t = igniteuiWebcomponentsCore.markType(Fdc3Util, 'Fdc3Util');
310
+ Fdc3Util.c = null;
311
+ Fdc3Util.d = null;
312
+ return Fdc3Util;
313
+ }(igniteuiWebcomponentsCore.Base));
314
+ (function (v) { igniteuiWebcomponentsCore.callStaticConstructors(); })(true);
315
+
316
+ /*
317
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
318
+ https://www.infragistics.com/legal/license/igultimate-la
319
+ https://www.infragistics.com/legal/license/igultimate-eula
320
+ 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.
321
+ */
322
+ /**
323
+ * @hidden
324
+ */
325
+ var Fdc3Serializer = /** @class */ /*@__PURE__*/ (function (_super) {
326
+ tslib_1.__extends(Fdc3Serializer, _super);
327
+ function Fdc3Serializer() {
328
+ var _this = _super.call(this) || this;
329
+ _this._sb = null;
330
+ _this.m = 0;
331
+ _this.l = false;
332
+ _this._sb = new igniteuiWebcomponentsCore.StringBuilder(0);
333
+ return _this;
334
+ }
335
+ Fdc3Serializer.prototype.toString = function () {
336
+ return this._sb.toString();
337
+ };
338
+ Fdc3Serializer.prototype.toJson = function (a) {
339
+ this._sb.v();
340
+ if (igniteuiWebcomponentsCore.typeCast(Fdc3Instrument.$, a) !== null) {
341
+ this.add4(igniteuiWebcomponentsCore.typeCast(Fdc3Instrument.$, a));
342
+ }
343
+ else if (igniteuiWebcomponentsCore.typeCast(Fdc3InstrumentList.$, a) !== null) {
344
+ this.add5(igniteuiWebcomponentsCore.typeCast(Fdc3InstrumentList.$, a));
345
+ }
346
+ else if (igniteuiWebcomponentsCore.typeCast(Fdc3Position.$, a) !== null) {
347
+ this.add9(igniteuiWebcomponentsCore.typeCast(Fdc3Position.$, a));
348
+ }
349
+ else if (igniteuiWebcomponentsCore.typeCast(Fdc3Portfolio.$, a) !== null) {
350
+ this.add8(igniteuiWebcomponentsCore.typeCast(Fdc3Portfolio.$, a));
351
+ }
352
+ else if (igniteuiWebcomponentsCore.typeCast(Fdc3Contact.$, a) !== null) {
353
+ this.add1(igniteuiWebcomponentsCore.typeCast(Fdc3Contact.$, a));
354
+ }
355
+ else if (igniteuiWebcomponentsCore.typeCast(Fdc3ContactList.$, a) !== null) {
356
+ this.add2(igniteuiWebcomponentsCore.typeCast(Fdc3ContactList.$, a));
357
+ }
358
+ else if (igniteuiWebcomponentsCore.typeCast(Fdc3Organization.$, a) !== null) {
359
+ this.add6(igniteuiWebcomponentsCore.typeCast(Fdc3Organization.$, a));
360
+ }
361
+ else if (igniteuiWebcomponentsCore.typeCast(Fdc3OrganizationList.$, a) !== null) {
362
+ this.add7(igniteuiWebcomponentsCore.typeCast(Fdc3OrganizationList.$, a));
363
+ }
364
+ else {
365
+ this.add3(igniteuiWebcomponentsCore.typeCast(Fdc3Context.$, a));
366
+ }
367
+ return this.toString();
368
+ };
369
+ Fdc3Serializer.prototype.add4 = function (a, b) {
370
+ if (b === void 0) {
371
+ b = "";
372
+ }
373
+ this.z("serializing Fdc3Instrument");
374
+ this.addObjectOpen();
375
+ this.addProp1("type", a.type);
376
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.target)) {
377
+ this.addProp1("target", a.target);
378
+ }
379
+ if (a.intent != 2) {
380
+ this.addProp1("intent", igniteuiWebcomponentsCore.EnumUtil.getName(Fdc3IntentType_$type, a.intent));
381
+ }
382
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.name)) {
383
+ this.addProp1("name", a.name);
384
+ }
385
+ var e = a.getKeys();
386
+ for (var d = 0; d < e.length; d++) {
387
+ var c = e[d];
388
+ if (c == "type") {
389
+ continue;
390
+ }
391
+ if (c == "name") {
392
+ continue;
393
+ }
394
+ if (c == "target") {
395
+ continue;
396
+ }
397
+ if (c == "intent") {
398
+ continue;
399
+ }
400
+ if (c == "ticker") {
401
+ continue;
402
+ }
403
+ if (c != "id") {
404
+ this.addProp1(c, a.item(c));
405
+ }
406
+ }
407
+ if (a.id == null) {
408
+ this.addProp1("id", "null");
409
+ }
410
+ else {
411
+ this.addProp("id");
412
+ this.addObjectOpen();
413
+ this.addProp1("ticker", a.ticker);
414
+ var h = a.id.getKeys();
415
+ for (var g = 0; g < h.length; g++) {
416
+ var f = h[g];
417
+ if (f == "ticker") {
418
+ continue;
419
+ }
420
+ this.addProp1(f, a.id.item(f));
421
+ }
422
+ this.addObjectClose();
423
+ }
424
+ this.addObjectClose(b);
425
+ };
426
+ Fdc3Serializer.prototype.add5 = function (a) {
427
+ this.z("serializing Fdc3InstrumentList");
428
+ this.addObjectOpen();
429
+ this.addProp1("type", a.type);
430
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.target)) {
431
+ this.addProp1("target", a.target);
432
+ }
433
+ if (a.intent != 2) {
434
+ this.addProp1("intent", igniteuiWebcomponentsCore.EnumUtil.getName(Fdc3IntentType_$type, a.intent));
435
+ }
436
+ if (!igniteuiWebcomponentsCore.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 != "instruments") {
458
+ this.addProp1(b, a.item(b));
459
+ }
460
+ }
461
+ if (a.instruments == null) {
462
+ this.addProp1("instruments", "null");
463
+ }
464
+ else {
465
+ this.addProp("instruments");
466
+ this.addArrayOpen();
467
+ var g = a.instruments;
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.add8 = function (a) {
477
+ this.z("serializing Fdc3Portfolio");
478
+ this.addObjectOpen();
479
+ this.addProp1("type", a.type);
480
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.target)) {
481
+ this.addProp1("target", a.target);
482
+ }
483
+ if (a.intent != 2) {
484
+ this.addProp1("intent", igniteuiWebcomponentsCore.EnumUtil.getName(Fdc3IntentType_$type, a.intent));
485
+ }
486
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.name)) {
487
+ this.addProp1("name", a.name);
488
+ }
489
+ var d = a.getKeys();
490
+ for (var c = 0; c < d.length; c++) {
491
+ var b = d[c];
492
+ if (b == "type") {
493
+ continue;
494
+ }
495
+ if (b == "name") {
496
+ continue;
497
+ }
498
+ if (b == "target") {
499
+ continue;
500
+ }
501
+ if (b == "intent") {
502
+ continue;
503
+ }
504
+ if (b == "id") {
505
+ continue;
506
+ }
507
+ if (b != "positions") {
508
+ this.addProp1(b, a.item(b));
509
+ }
510
+ }
511
+ if (a.positions == null) {
512
+ this.addProp1("positions", "null");
513
+ }
514
+ else {
515
+ this.addProp("positions");
516
+ this.addArrayOpen();
517
+ var g = a.positions;
518
+ for (var f = 0; f < g.length; f++) {
519
+ var e = g[f];
520
+ this.add9(e, ",");
521
+ }
522
+ this.addArrayClose();
523
+ }
524
+ this.addObjectClose();
525
+ };
526
+ Fdc3Serializer.prototype.add9 = function (a, b) {
527
+ if (b === void 0) {
528
+ b = "";
529
+ }
530
+ this.z("serializing Fdc3Position");
531
+ this.addObjectOpen();
532
+ this.addProp1("type", a.type);
533
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.target)) {
534
+ this.addProp1("target", a.target);
535
+ }
536
+ if (a.intent != 2) {
537
+ this.addProp1("intent", igniteuiWebcomponentsCore.EnumUtil.getName(Fdc3IntentType_$type, a.intent));
538
+ }
539
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.name)) {
540
+ this.addProp1("name", a.name);
541
+ }
542
+ var e = a.getKeys();
543
+ for (var d = 0; d < e.length; d++) {
544
+ var c = e[d];
545
+ if (c == "type") {
546
+ continue;
547
+ }
548
+ if (c == "name") {
549
+ continue;
550
+ }
551
+ if (c == "target") {
552
+ continue;
553
+ }
554
+ if (c == "intent") {
555
+ continue;
556
+ }
557
+ if (c == "id") {
558
+ continue;
559
+ }
560
+ if (c != "instrument") {
561
+ this.addProp1(c, a.item(c));
562
+ }
563
+ }
564
+ if (a.instrument == null) {
565
+ this.addProp1("instrument", "null");
566
+ }
567
+ else {
568
+ this.addProp("instrument");
569
+ this.add4(a.instrument, ",");
570
+ }
571
+ this.addObjectClose(b);
572
+ };
573
+ Fdc3Serializer.prototype.add1 = function (a, b) {
574
+ if (b === void 0) {
575
+ b = "";
576
+ }
577
+ this.addObjectOpen();
578
+ this.addProp1("type", a.type);
579
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.target)) {
580
+ this.addProp1("target", a.target);
581
+ }
582
+ if (a.intent != 2) {
583
+ this.addProp1("intent", igniteuiWebcomponentsCore.EnumUtil.getName(Fdc3IntentType_$type, a.intent));
584
+ }
585
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.name)) {
586
+ this.addProp1("name", a.name);
587
+ }
588
+ var e = a.getKeys();
589
+ for (var d = 0; d < e.length; d++) {
590
+ var c = e[d];
591
+ if (c == "type") {
592
+ continue;
593
+ }
594
+ if (c == "name") {
595
+ continue;
596
+ }
597
+ if (c == "target") {
598
+ continue;
599
+ }
600
+ if (c == "intent") {
601
+ continue;
602
+ }
603
+ if (c == "email") {
604
+ continue;
605
+ }
606
+ if (c == "phone") {
607
+ continue;
608
+ }
609
+ if (c != "id") {
610
+ this.addProp1(c, a.item(c));
611
+ }
612
+ }
613
+ if (a.id == null) {
614
+ this.addProp1("id", "null");
615
+ }
616
+ else {
617
+ this.addProp("id");
618
+ this.addObjectOpen();
619
+ var h = a.id.getKeys();
620
+ for (var g = 0; g < h.length; g++) {
621
+ var f = h[g];
622
+ this.addProp1(f, a.id.item(f));
623
+ }
624
+ this.addObjectClose();
625
+ }
626
+ this.addObjectClose(b);
627
+ };
628
+ Fdc3Serializer.prototype.z = function (message_) {
629
+ };
630
+ Fdc3Serializer.prototype.add2 = function (a) {
631
+ this.addObjectOpen();
632
+ this.addProp1("type", a.type);
633
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.target)) {
634
+ this.addProp1("target", a.target);
635
+ }
636
+ if (a.intent != 2) {
637
+ this.addProp1("intent", igniteuiWebcomponentsCore.EnumUtil.getName(Fdc3IntentType_$type, a.intent));
638
+ }
639
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.name)) {
640
+ this.addProp1("name", a.name);
641
+ }
642
+ var d = a.getKeys();
643
+ for (var c = 0; c < d.length; c++) {
644
+ var b = d[c];
645
+ if (b == "type") {
646
+ continue;
647
+ }
648
+ if (b == "name") {
649
+ continue;
650
+ }
651
+ if (b == "target") {
652
+ continue;
653
+ }
654
+ if (b == "intent") {
655
+ continue;
656
+ }
657
+ if (b == "id") {
658
+ continue;
659
+ }
660
+ if (b != "contacts") {
661
+ this.addProp1(b, a.item(b));
662
+ }
663
+ }
664
+ if (a.contacts == null) {
665
+ this.addProp1("contacts", "null");
666
+ }
667
+ else {
668
+ this.addProp("contacts");
669
+ this.addArrayOpen();
670
+ var g = a.contacts;
671
+ for (var f = 0; f < g.length; f++) {
672
+ var e = g[f];
673
+ this.add1(e, ",");
674
+ }
675
+ this.addArrayClose();
676
+ }
677
+ this.addObjectClose();
678
+ };
679
+ Fdc3Serializer.prototype.add6 = function (a, b) {
680
+ if (b === void 0) {
681
+ b = "";
682
+ }
683
+ this.z("serializing Fdc3Organization");
684
+ this.addObjectOpen();
685
+ this.addProp1("type", a.type);
686
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.target)) {
687
+ this.addProp1("target", a.target);
688
+ }
689
+ if (a.intent != 2) {
690
+ this.addProp1("intent", igniteuiWebcomponentsCore.EnumUtil.getName(Fdc3IntentType_$type, a.intent));
691
+ }
692
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.name)) {
693
+ this.addProp1("name", a.name);
694
+ }
695
+ var e = a.getKeys();
696
+ for (var d = 0; d < e.length; d++) {
697
+ var c = e[d];
698
+ if (c == "type") {
699
+ continue;
700
+ }
701
+ if (c == "name") {
702
+ continue;
703
+ }
704
+ if (c == "target") {
705
+ continue;
706
+ }
707
+ if (c == "intent") {
708
+ continue;
709
+ }
710
+ if (c == "email") {
711
+ continue;
712
+ }
713
+ if (c == "phone") {
714
+ continue;
715
+ }
716
+ if (c != "id") {
717
+ this.addProp1(c, a.item(c));
718
+ }
719
+ }
720
+ if (a.id == null) {
721
+ this.addProp1("id", "null");
722
+ }
723
+ else {
724
+ this.addProp("id");
725
+ this.addObjectOpen();
726
+ var h = a.id.getKeys();
727
+ for (var g = 0; g < h.length; g++) {
728
+ var f = h[g];
729
+ this.addProp1(f, a.id.item(f));
730
+ }
731
+ this.addObjectClose();
732
+ }
733
+ this.addObjectClose(b);
734
+ };
735
+ Fdc3Serializer.prototype.add7 = function (a) {
736
+ this.addObjectOpen();
737
+ this.addProp1("type", a.type);
738
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.target)) {
739
+ this.addProp1("target", a.target);
740
+ }
741
+ if (a.intent != 2) {
742
+ this.addProp1("intent", igniteuiWebcomponentsCore.EnumUtil.getName(Fdc3IntentType_$type, a.intent));
743
+ }
744
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.name)) {
745
+ this.addProp1("name", a.name);
746
+ }
747
+ var d = a.getKeys();
748
+ for (var c = 0; c < d.length; c++) {
749
+ var b = d[c];
750
+ if (b == "type") {
751
+ continue;
752
+ }
753
+ if (b == "name") {
754
+ continue;
755
+ }
756
+ if (b == "target") {
757
+ continue;
758
+ }
759
+ if (b == "intent") {
760
+ continue;
761
+ }
762
+ if (b == "id") {
763
+ continue;
764
+ }
765
+ if (b != "organizations") {
766
+ this.addProp1(b, a.item(b));
767
+ }
768
+ }
769
+ if (a.organizations == null) {
770
+ this.addProp1("organizations", "null");
771
+ }
772
+ else {
773
+ this.addProp("organizations");
774
+ this.addArrayOpen();
775
+ var g = a.organizations;
776
+ for (var f = 0; f < g.length; f++) {
777
+ var e = g[f];
778
+ this.add4(e, ",");
779
+ }
780
+ this.addArrayClose();
781
+ }
782
+ this.addObjectClose();
783
+ };
784
+ Fdc3Serializer.prototype.add3 = function (a, b) {
785
+ if (b === void 0) {
786
+ b = "";
787
+ }
788
+ this.z("serializing Fdc3Context");
789
+ this.addObjectOpen();
790
+ this.addProp1("type", a.type);
791
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.target)) {
792
+ this.addProp1("target", a.target);
793
+ }
794
+ if (a.intent != 2) {
795
+ this.addProp1("intent", igniteuiWebcomponentsCore.EnumUtil.getName(Fdc3IntentType_$type, a.intent));
796
+ }
797
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.name)) {
798
+ this.addProp1("name", a.name);
799
+ }
800
+ var e = a.getKeys();
801
+ for (var d = 0; d < e.length; d++) {
802
+ var c = e[d];
803
+ if (c == "type") {
804
+ continue;
805
+ }
806
+ if (c == "name") {
807
+ continue;
808
+ }
809
+ if (c == "target") {
810
+ continue;
811
+ }
812
+ if (c == "intent") {
813
+ continue;
814
+ }
815
+ if (c != "id") {
816
+ this.addProp1(c, a.item(c));
817
+ }
818
+ }
819
+ if (a.id == null) {
820
+ this.addProp1("id", "null");
821
+ }
822
+ else {
823
+ this.addProp("id");
824
+ this.addObjectOpen();
825
+ var h = a.id.getKeys();
826
+ for (var g = 0; g < h.length; g++) {
827
+ var f = h[g];
828
+ this.addProp1(f, a.id.item(f));
829
+ }
830
+ this.addObjectClose();
831
+ }
832
+ this.addObjectClose(b);
833
+ };
834
+ Fdc3Serializer.prototype.addArrayOpen = function () {
835
+ this.addLine("[");
836
+ this.tabIncrease();
837
+ return this;
838
+ };
839
+ Fdc3Serializer.prototype.addArrayClose = function (a) {
840
+ if (a === void 0) {
841
+ a = "";
842
+ }
843
+ this.tabDecrease();
844
+ this.addLine("]" + a);
845
+ return this;
846
+ };
847
+ Fdc3Serializer.prototype.addObjectOpen = function () {
848
+ this.addLine("{");
849
+ this.tabIncrease();
850
+ return this;
851
+ };
852
+ Fdc3Serializer.prototype.addObjectClose = function (a) {
853
+ if (a === void 0) {
854
+ a = "";
855
+ }
856
+ this.tabDecrease();
857
+ this.addLine("}" + a);
858
+ return this;
859
+ };
860
+ Fdc3Serializer.prototype.add = function (a) {
861
+ this.i();
862
+ this._sb.l(a);
863
+ return this;
864
+ };
865
+ Fdc3Serializer.prototype.addLine = function (a) {
866
+ this.i();
867
+ this._sb.u(a);
868
+ this.l = true;
869
+ return this;
870
+ };
871
+ Fdc3Serializer.prototype.addProp = function (a) {
872
+ this.i();
873
+ this._sb.u("\"" + a + "\": ");
874
+ this.l = true;
875
+ return this;
876
+ };
877
+ Fdc3Serializer.prototype.addProp1 = function (a, b, c) {
878
+ if (c === void 0) {
879
+ c = "";
880
+ }
881
+ this.i();
882
+ if (!igniteuiWebcomponentsCore.stringIsNullOrEmpty(c)) {
883
+ c = " // " + c;
884
+ }
885
+ var d = b == null ? "null" : b;
886
+ if (typeof b === 'string') {
887
+ this._sb.u("\"" + a + "\": \"" + d + "\"," + c);
888
+ }
889
+ else if (igniteuiWebcomponentsCore.typeCast(igniteuiWebcomponentsCore.Boolean_$type, b) !== null) {
890
+ var e = d.toString().toLowerCase();
891
+ this._sb.u("\"" + a + "\": " + e + "," + c);
892
+ }
893
+ else {
894
+ this._sb.u("\"" + a + "\": " + d + "," + c);
895
+ }
896
+ this.l = true;
897
+ return this;
898
+ };
899
+ Fdc3Serializer.prototype.i = function () {
900
+ if (this.l) {
901
+ for (var a = 0; a < this.m; a++) {
902
+ this._sb.l(" ");
903
+ }
904
+ this.l = false;
905
+ }
906
+ return this;
907
+ };
908
+ Fdc3Serializer.prototype.tabIncrease = function () {
909
+ this.m++;
910
+ return this;
911
+ };
912
+ Fdc3Serializer.prototype.tabDecrease = function () {
913
+ this.m--;
914
+ return this;
915
+ };
916
+ Fdc3Serializer.$t = igniteuiWebcomponentsCore.markType(Fdc3Serializer, 'Fdc3Serializer');
917
+ return Fdc3Serializer;
918
+ }(igniteuiWebcomponentsCore.Base));
919
+ /**
920
+ * @hidden
921
+ */
922
+ var Fdc3Context = /** @class */ /*@__PURE__*/ (function (_super) {
923
+ tslib_1.__extends(Fdc3Context, _super);
924
+ function Fdc3Context(a) {
925
+ var _rest = [];
926
+ for (var _i = 1; _i < arguments.length; _i++) {
927
+ _rest[_i - 1] = arguments[_i];
928
+ }
929
+ var _this = _super.call(this) || this;
930
+ _this._id = null;
931
+ a = (a == void 0) ? 0 : a;
932
+ switch (a) {
933
+ case 0:
934
+ {
935
+ var c = [0];
936
+ {
937
+ var e = c[0];
938
+ _this.type = Fdc3Util.getString(e);
939
+ _this.id = new Fdc3Dictionary();
940
+ }
941
+ }
942
+ break;
943
+ case 1:
944
+ {
945
+ var c = _rest[0];
946
+ _this.type = Fdc3Util.getString(c);
947
+ _this.id = new Fdc3Dictionary();
948
+ }
949
+ break;
950
+ }
951
+ return _this;
952
+ }
953
+ Object.defineProperty(Fdc3Context.prototype, "intent", {
954
+ get: function () {
955
+ return Fdc3Util.b(this.item("intent").toString());
956
+ },
957
+ set: function (a) {
958
+ this.item("intent", igniteuiWebcomponentsCore.enumGetBox(Fdc3IntentType_$type, a));
959
+ },
960
+ enumerable: true,
961
+ configurable: true
962
+ });
963
+ Object.defineProperty(Fdc3Context.prototype, "type", {
964
+ get: function () {
965
+ return this.item("type").toString();
966
+ },
967
+ set: function (a) {
968
+ this.item("type", a);
969
+ },
970
+ enumerable: true,
971
+ configurable: true
972
+ });
973
+ Object.defineProperty(Fdc3Context.prototype, "target", {
974
+ get: function () {
975
+ return this.h("target");
976
+ },
977
+ set: function (a) {
978
+ this.item("target", a);
979
+ },
980
+ enumerable: true,
981
+ configurable: true
982
+ });
983
+ Object.defineProperty(Fdc3Context.prototype, "name", {
984
+ get: function () {
985
+ return this.h("name");
986
+ },
987
+ set: function (a) {
988
+ this.item("name", a);
989
+ },
990
+ enumerable: true,
991
+ configurable: true
992
+ });
993
+ Object.defineProperty(Fdc3Context.prototype, "id", {
994
+ get: function () {
995
+ return this._id;
996
+ },
997
+ set: function (a) {
998
+ this._id = a;
999
+ },
1000
+ enumerable: true,
1001
+ configurable: true
1002
+ });
1003
+ Fdc3Context.prototype.toJson = function () {
1004
+ var a = new Fdc3Serializer();
1005
+ var b = a.toJson(this);
1006
+ return b;
1007
+ };
1008
+ Fdc3Context.$t = igniteuiWebcomponentsCore.markType(Fdc3Context, 'Fdc3Context', Fdc3Dictionary.$);
1009
+ return Fdc3Context;
1010
+ }(Fdc3Dictionary));
1011
+ /**
1012
+ * @hidden
1013
+ */
1014
+ var Fdc3Instrument = /** @class */ /*@__PURE__*/ (function (_super) {
1015
+ tslib_1.__extends(Fdc3Instrument, _super);
1016
+ function Fdc3Instrument() {
1017
+ return _super.call(this, 1, 1) || this;
1018
+ }
1019
+ Object.defineProperty(Fdc3Instrument.prototype, "ticker", {
1020
+ get: function () {
1021
+ return this.id.item("ticker").toString();
1022
+ },
1023
+ set: function (a) {
1024
+ this.id.item("ticker", a);
1025
+ },
1026
+ enumerable: true,
1027
+ configurable: true
1028
+ });
1029
+ Fdc3Instrument.$t = igniteuiWebcomponentsCore.markType(Fdc3Instrument, 'Fdc3Instrument', Fdc3Context.$);
1030
+ return Fdc3Instrument;
1031
+ }(Fdc3Context));
1032
+ /**
1033
+ * @hidden
1034
+ */
1035
+ var Fdc3InstrumentList = /** @class */ /*@__PURE__*/ (function (_super) {
1036
+ tslib_1.__extends(Fdc3InstrumentList, _super);
1037
+ function Fdc3InstrumentList() {
1038
+ var _this = _super.call(this, 0) || this;
1039
+ _this._instruments = null;
1040
+ _this.type = Fdc3Util.getString(2);
1041
+ _this.instruments = new Array(0);
1042
+ return _this;
1043
+ }
1044
+ Object.defineProperty(Fdc3InstrumentList.prototype, "instruments", {
1045
+ get: function () {
1046
+ return this._instruments;
1047
+ },
1048
+ set: function (a) {
1049
+ this._instruments = a;
1050
+ },
1051
+ enumerable: true,
1052
+ configurable: true
1053
+ });
1054
+ Fdc3InstrumentList.$t = igniteuiWebcomponentsCore.markType(Fdc3InstrumentList, 'Fdc3InstrumentList', Fdc3Context.$);
1055
+ return Fdc3InstrumentList;
1056
+ }(Fdc3Context));
1057
+ /**
1058
+ * @hidden
1059
+ */
1060
+ var Fdc3Position = /** @class */ /*@__PURE__*/ (function (_super) {
1061
+ tslib_1.__extends(Fdc3Position, _super);
1062
+ function Fdc3Position() {
1063
+ var _this = _super.call(this, 1, 3) || this;
1064
+ _this.instrument = new Fdc3Instrument();
1065
+ return _this;
1066
+ }
1067
+ Object.defineProperty(Fdc3Position.prototype, "instrument", {
1068
+ get: function () {
1069
+ return igniteuiWebcomponentsCore.typeCast(Fdc3Instrument.$, this.item("instrument"));
1070
+ },
1071
+ set: function (a) {
1072
+ this.item("instrument", a);
1073
+ },
1074
+ enumerable: true,
1075
+ configurable: true
1076
+ });
1077
+ Object.defineProperty(Fdc3Position.prototype, "shares", {
1078
+ get: function () {
1079
+ return this.e("shares");
1080
+ },
1081
+ set: function (a) {
1082
+ this.item("shares", a);
1083
+ },
1084
+ enumerable: true,
1085
+ configurable: true
1086
+ });
1087
+ Object.defineProperty(Fdc3Position.prototype, "cost", {
1088
+ get: function () {
1089
+ return this.e("cost");
1090
+ },
1091
+ set: function (a) {
1092
+ this.item("cost", a);
1093
+ },
1094
+ enumerable: true,
1095
+ configurable: true
1096
+ });
1097
+ Object.defineProperty(Fdc3Position.prototype, "price", {
1098
+ get: function () {
1099
+ return this.e("price");
1100
+ },
1101
+ set: function (a) {
1102
+ this.item("price", a);
1103
+ },
1104
+ enumerable: true,
1105
+ configurable: true
1106
+ });
1107
+ Fdc3Position.$t = igniteuiWebcomponentsCore.markType(Fdc3Position, 'Fdc3Position', Fdc3Context.$);
1108
+ return Fdc3Position;
1109
+ }(Fdc3Context));
1110
+ /**
1111
+ * @hidden
1112
+ */
1113
+ var Fdc3Portfolio = /** @class */ /*@__PURE__*/ (function (_super) {
1114
+ tslib_1.__extends(Fdc3Portfolio, _super);
1115
+ function Fdc3Portfolio() {
1116
+ var _this = _super.call(this, 1, 4) || this;
1117
+ _this._positions = null;
1118
+ _this.positions = new Array(0);
1119
+ return _this;
1120
+ }
1121
+ Object.defineProperty(Fdc3Portfolio.prototype, "positions", {
1122
+ get: function () {
1123
+ return this._positions;
1124
+ },
1125
+ set: function (a) {
1126
+ this._positions = a;
1127
+ },
1128
+ enumerable: true,
1129
+ configurable: true
1130
+ });
1131
+ Fdc3Portfolio.$t = igniteuiWebcomponentsCore.markType(Fdc3Portfolio, 'Fdc3Portfolio', Fdc3Context.$);
1132
+ return Fdc3Portfolio;
1133
+ }(Fdc3Context));
1134
+ /**
1135
+ * @hidden
1136
+ */
1137
+ var Fdc3Organization = /** @class */ /*@__PURE__*/ (function (_super) {
1138
+ tslib_1.__extends(Fdc3Organization, _super);
1139
+ function Fdc3Organization() {
1140
+ return _super.call(this, 1, 7) || this;
1141
+ }
1142
+ Fdc3Organization.$t = igniteuiWebcomponentsCore.markType(Fdc3Organization, 'Fdc3Organization', Fdc3Context.$);
1143
+ return Fdc3Organization;
1144
+ }(Fdc3Context));
1145
+ /**
1146
+ * @hidden
1147
+ */
1148
+ var Fdc3OrganizationList = /** @class */ /*@__PURE__*/ (function (_super) {
1149
+ tslib_1.__extends(Fdc3OrganizationList, _super);
1150
+ function Fdc3OrganizationList() {
1151
+ var _this = _super.call(this, 1, 8) || this;
1152
+ _this._organizations = null;
1153
+ return _this;
1154
+ }
1155
+ Object.defineProperty(Fdc3OrganizationList.prototype, "organizations", {
1156
+ get: function () {
1157
+ return this._organizations;
1158
+ },
1159
+ set: function (a) {
1160
+ this._organizations = a;
1161
+ },
1162
+ enumerable: true,
1163
+ configurable: true
1164
+ });
1165
+ Fdc3OrganizationList.$t = igniteuiWebcomponentsCore.markType(Fdc3OrganizationList, 'Fdc3OrganizationList', Fdc3Context.$);
1166
+ return Fdc3OrganizationList;
1167
+ }(Fdc3Context));
1168
+ /**
1169
+ * @hidden
1170
+ */
1171
+ var Fdc3Contact = /** @class */ /*@__PURE__*/ (function (_super) {
1172
+ tslib_1.__extends(Fdc3Contact, _super);
1173
+ function Fdc3Contact(a) {
1174
+ var _rest = [];
1175
+ for (var _i = 1; _i < arguments.length; _i++) {
1176
+ _rest[_i - 1] = arguments[_i];
1177
+ }
1178
+ var _this = this;
1179
+ a = (a == void 0) ? 0 : a;
1180
+ switch (a) {
1181
+ case 0:
1182
+ {
1183
+ var c = ["", "", "", ""];
1184
+ {
1185
+ var e = c[0];
1186
+ var f = c[1];
1187
+ var g = c[2];
1188
+ var h = c[3];
1189
+ _this = _super.call(this, 1, 5) || this;
1190
+ _this.name = e;
1191
+ _this.email = f;
1192
+ _this.phone = g;
1193
+ _this.twitter = h;
1194
+ }
1195
+ }
1196
+ break;
1197
+ case 1:
1198
+ {
1199
+ var c = _rest[0];
1200
+ var d = _rest[1];
1201
+ var e = _rest[2];
1202
+ var f = _rest[3];
1203
+ _this = _super.call(this, 1, 5) || this;
1204
+ _this.name = c;
1205
+ _this.email = d;
1206
+ _this.phone = e;
1207
+ _this.twitter = f;
1208
+ }
1209
+ break;
1210
+ }
1211
+ return _this;
1212
+ }
1213
+ Object.defineProperty(Fdc3Contact.prototype, "email", {
1214
+ get: function () {
1215
+ return this.id.item("email").toString();
1216
+ },
1217
+ set: function (a) {
1218
+ this.id.item("email", a);
1219
+ },
1220
+ enumerable: true,
1221
+ configurable: true
1222
+ });
1223
+ Object.defineProperty(Fdc3Contact.prototype, "phone", {
1224
+ get: function () {
1225
+ return this.id.item("phone").toString();
1226
+ },
1227
+ set: function (a) {
1228
+ this.id.item("phone", a);
1229
+ },
1230
+ enumerable: true,
1231
+ configurable: true
1232
+ });
1233
+ Object.defineProperty(Fdc3Contact.prototype, "twitter", {
1234
+ get: function () {
1235
+ return this.id.item("twitter").toString();
1236
+ },
1237
+ set: function (a) {
1238
+ this.id.item("twitter", a);
1239
+ },
1240
+ enumerable: true,
1241
+ configurable: true
1242
+ });
1243
+ Fdc3Contact.$t = igniteuiWebcomponentsCore.markType(Fdc3Contact, 'Fdc3Contact', Fdc3Context.$);
1244
+ return Fdc3Contact;
1245
+ }(Fdc3Context));
1246
+ /**
1247
+ * @hidden
1248
+ */
1249
+ var Fdc3ContactList = /** @class */ /*@__PURE__*/ (function (_super) {
1250
+ tslib_1.__extends(Fdc3ContactList, _super);
1251
+ function Fdc3ContactList(a) {
1252
+ var _rest = [];
1253
+ for (var _i = 1; _i < arguments.length; _i++) {
1254
+ _rest[_i - 1] = arguments[_i];
1255
+ }
1256
+ var _this = this;
1257
+ a = (a == void 0) ? 0 : a;
1258
+ switch (a) {
1259
+ case 0:
1260
+ {
1261
+ _this = _super.call(this, 1, 6) || this;
1262
+ _this._contacts = null;
1263
+ _this.contacts = new Array(0);
1264
+ }
1265
+ break;
1266
+ case 1:
1267
+ {
1268
+ var c = _rest[0];
1269
+ {
1270
+ _this = _super.call(this, 1, 6) || this;
1271
+ _this._contacts = null;
1272
+ _this.contacts = new Array(0);
1273
+ }
1274
+ _this.contacts = c;
1275
+ }
1276
+ break;
1277
+ }
1278
+ return _this;
1279
+ }
1280
+ Object.defineProperty(Fdc3ContactList.prototype, "contacts", {
1281
+ get: function () {
1282
+ return this._contacts;
1283
+ },
1284
+ set: function (a) {
1285
+ this._contacts = a;
1286
+ },
1287
+ enumerable: true,
1288
+ configurable: true
1289
+ });
1290
+ Fdc3ContactList.$t = igniteuiWebcomponentsCore.markType(Fdc3ContactList, 'Fdc3ContactList', Fdc3Context.$);
1291
+ return Fdc3ContactList;
1292
+ }(Fdc3Context));
1293
+
1294
+ /*
1295
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1296
+ https://www.infragistics.com/legal/license/igultimate-la
1297
+ https://www.infragistics.com/legal/license/igultimate-eula
1298
+ 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.
1299
+ */
1300
+
1301
+ /*
1302
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1303
+ https://www.infragistics.com/legal/license/igultimate-la
1304
+ https://www.infragistics.com/legal/license/igultimate-eula
1305
+ 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.
1306
+ */
1307
+
1308
+ /*
1309
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1310
+ https://www.infragistics.com/legal/license/igultimate-la
1311
+ https://www.infragistics.com/legal/license/igultimate-eula
1312
+ 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.
1313
+ */
1314
+
1315
+ /*
1316
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1317
+ https://www.infragistics.com/legal/license/igultimate-la
1318
+ https://www.infragistics.com/legal/license/igultimate-eula
1319
+ 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.
1320
+ */
1321
+
1322
+ /*
1323
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1324
+ https://www.infragistics.com/legal/license/igultimate-la
1325
+ https://www.infragistics.com/legal/license/igultimate-eula
1326
+ 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.
1327
+ */
1328
+ /**
1329
+ * @hidden
1330
+ */
1331
+ var Fdc3Converter = /** @class */ /*@__PURE__*/ (function (_super) {
1332
+ tslib_1.__extends(Fdc3Converter, _super);
1333
+ function Fdc3Converter() {
1334
+ return _super !== null && _super.apply(this, arguments) || this;
1335
+ }
1336
+ Fdc3Converter.log = function (message_) {
1337
+ };
1338
+ Fdc3Converter.toInstrument = function (context_) {
1339
+ var instrument_ = new Fdc3Instrument();
1340
+ if (context_ == null) {
1341
+ return instrument_;
1342
+ }
1343
+ // Fdc3Converter.log('converting to Instrument');
1344
+ var propNames = Object.getOwnPropertyNames(context_);
1345
+ for (var i = 0; i < propNames.length; i++) {
1346
+ var prop = propNames[i];
1347
+ if (prop === 'id') {
1348
+ var propIDs = Object.getOwnPropertyNames(context_[prop]);
1349
+ for (var ii = 0; ii < propIDs.length; ii++) {
1350
+ var id = propIDs[ii];
1351
+ instrument_.id.set(id, context_[prop][id]);
1352
+ }
1353
+ }
1354
+ else {
1355
+ instrument_.set(prop, context_[prop]);
1356
+ }
1357
+ }
1358
+ ;
1359
+ return instrument_;
1360
+ };
1361
+ Fdc3Converter.toInstrumentList = function (context_) {
1362
+ var list_ = new Fdc3InstrumentList();
1363
+ if (context_ == null) {
1364
+ return list_;
1365
+ }
1366
+ // Fdc3Converter.log('converting to InstrumentList');
1367
+ var propNames = Object.getOwnPropertyNames(context_);
1368
+ for (var i = 0; i < propNames.length; i++) {
1369
+ var prop = propNames[i];
1370
+ if (context_[prop] instanceof Array) {
1371
+ var array = context_[prop];
1372
+ for (var ii = 0; ii < array.length; ii++) {
1373
+ var item = array[ii];
1374
+ if (item['type'] === 'fdc3.instrument') {
1375
+ var instrument = this.toInstrument(item);
1376
+ list_.instruments.push(instrument);
1377
+ }
1378
+ }
1379
+ }
1380
+ else {
1381
+ list_.set(prop, context_[prop]);
1382
+ }
1383
+ }
1384
+ ;
1385
+ return list_;
1386
+ };
1387
+ Fdc3Converter.toPosition = function (context_) {
1388
+ var position_ = new Fdc3Position();
1389
+ if (context_ == null) {
1390
+ return position_;
1391
+ }
1392
+ // Fdc3Converter.log('converting to Position');
1393
+ var propNames = Object.getOwnPropertyNames(context_);
1394
+ for (var i = 0; i < propNames.length; i++) {
1395
+ var prop = propNames[i];
1396
+ if (prop === 'instrument') {
1397
+ var inst = Fdc3Converter.toInstrument(context_[prop]);
1398
+ position_.instrument = inst;
1399
+ }
1400
+ else {
1401
+ position_.set(prop, context_[prop]);
1402
+ }
1403
+ }
1404
+ ;
1405
+ return position_;
1406
+ };
1407
+ Fdc3Converter.toPortfolio = function (context_) {
1408
+ var portfolio_ = new Fdc3Portfolio();
1409
+ if (context_ == null) {
1410
+ return portfolio_;
1411
+ }
1412
+ // Fdc3Converter.log('converting to Portfolio');
1413
+ var propNames = Object.getOwnPropertyNames(context_);
1414
+ for (var i = 0; i < propNames.length; i++) {
1415
+ var prop = propNames[i];
1416
+ if (context_[prop] instanceof Array) {
1417
+ // Fdc3Converter.log('array ');
1418
+ var array = context_[prop];
1419
+ for (var ii = 0; ii < array.length; ii++) {
1420
+ var item = array[ii];
1421
+ if (item['type'] === 'fdc3.position') {
1422
+ var position_ = Fdc3Converter.toPosition(item);
1423
+ portfolio_.positions.push(position_);
1424
+ }
1425
+ }
1426
+ }
1427
+ else {
1428
+ portfolio_.set(prop, context_[prop]);
1429
+ }
1430
+ }
1431
+ ;
1432
+ return portfolio_;
1433
+ };
1434
+ Fdc3Converter.fromPortfolio = function (portfolio_) {
1435
+ var context_ = null;
1436
+ if (portfolio_ == null) {
1437
+ return context_;
1438
+ }
1439
+ // Fdc3Converter.log('converting from Portfolio');
1440
+ context_ = {};
1441
+ var propNames = portfolio_.getKeys();
1442
+ for (var i = 0; i < propNames.length; i++) {
1443
+ var prop = propNames[i];
1444
+ context_[prop] = portfolio_.item(prop);
1445
+ }
1446
+ context_.positions = [];
1447
+ for (var i = 0; i < portfolio_.positions.length; i++) {
1448
+ var position_ = portfolio_.positions[i];
1449
+ var item = Fdc3Converter.fromPosition(position_);
1450
+ context_.positions.push(item);
1451
+ }
1452
+ ;
1453
+ return context_;
1454
+ };
1455
+ Fdc3Converter.fromPosition = function (position_) {
1456
+ var context_ = null;
1457
+ if (position_ == null) {
1458
+ return context_;
1459
+ }
1460
+ // Fdc3Converter.log('converting from position');
1461
+ context_ = {};
1462
+ var propNames = position_.getKeys();
1463
+ for (var i = 0; i < propNames.length; i++) {
1464
+ var prop = propNames[i];
1465
+ context_[prop] = position_.item(prop);
1466
+ }
1467
+ context_.instrument = Fdc3Converter.fromInstrument(position_.instrument);
1468
+ ;
1469
+ return context_;
1470
+ };
1471
+ Fdc3Converter.fromInstrumentList = function (list_) {
1472
+ var context_ = null;
1473
+ if (list_ == null) {
1474
+ return context_;
1475
+ }
1476
+ // Fdc3Converter.log('converting from InstrumentList');
1477
+ context_ = {};
1478
+ var propNames = list_.getKeys();
1479
+ for (var i = 0; i < propNames.length; i++) {
1480
+ var prop = propNames[i];
1481
+ context_[prop] = list_.item(prop);
1482
+ }
1483
+ context_.instruments = [];
1484
+ for (var i = 0; i < list_.instruments.length; i++) {
1485
+ var instrument = list_.instruments[i];
1486
+ var item = Fdc3Converter.fromInstrument(instrument);
1487
+ context_.instruments.push(item);
1488
+ }
1489
+ ;
1490
+ return context_;
1491
+ };
1492
+ Fdc3Converter.fromInstrument = function (instrument_) {
1493
+ var context_ = null;
1494
+ if (instrument_ == null) {
1495
+ return context_;
1496
+ }
1497
+ // Fdc3Converter.log('converting from Instrument');
1498
+ context_ = {};
1499
+ var propNames = instrument_.getKeys();
1500
+ for (var i = 0; i < propNames.length; i++) {
1501
+ var prop = propNames[i];
1502
+ context_[prop] = instrument_.item(prop);
1503
+ }
1504
+ context_.id = {};
1505
+ var propIDs = instrument_.id.getKeys();
1506
+ for (var i = 0; i < propIDs.length; i++) {
1507
+ var prop = propIDs[i];
1508
+ context_.id[prop] = instrument_.id.item(prop);
1509
+ }
1510
+ ;
1511
+ return context_;
1512
+ };
1513
+ Fdc3Converter.$t = igniteuiWebcomponentsCore.markType(Fdc3Converter, 'Fdc3Converter');
1514
+ return Fdc3Converter;
1515
+ }(igniteuiWebcomponentsCore.Base));
1516
+
1517
+ /*
1518
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1519
+ https://www.infragistics.com/legal/license/igultimate-la
1520
+ https://www.infragistics.com/legal/license/igultimate-eula
1521
+ 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.
1522
+ */
1523
+
1524
+ /*
1525
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1526
+ https://www.infragistics.com/legal/license/igultimate-la
1527
+ https://www.infragistics.com/legal/license/igultimate-eula
1528
+ 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.
1529
+ */
1530
+
1531
+ /*
1532
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1533
+ https://www.infragistics.com/legal/license/igultimate-la
1534
+ https://www.infragistics.com/legal/license/igultimate-eula
1535
+ 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.
1536
+ */
1537
+
1538
+ /*
1539
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1540
+ https://www.infragistics.com/legal/license/igultimate-la
1541
+ https://www.infragistics.com/legal/license/igultimate-eula
1542
+ 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.
1543
+ */
1544
+
1545
+ /*
1546
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1547
+ https://www.infragistics.com/legal/license/igultimate-la
1548
+ https://www.infragistics.com/legal/license/igultimate-eula
1549
+ 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.
1550
+ */
1551
+
1552
+ /*
1553
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1554
+ https://www.infragistics.com/legal/license/igultimate-la
1555
+ https://www.infragistics.com/legal/license/igultimate-eula
1556
+ 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.
1557
+ */
1558
+
1559
+ /*
1560
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1561
+ https://www.infragistics.com/legal/license/igultimate-la
1562
+ https://www.infragistics.com/legal/license/igultimate-eula
1563
+ 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.
1564
+ */
1565
+ /**
1566
+ * @hidden
1567
+ */
1568
+ var Fdc3Message = /** @class */ /*@__PURE__*/ (function (_super) {
1569
+ tslib_1.__extends(Fdc3Message, _super);
1570
+ function Fdc3Message() {
1571
+ var _this = _super.call(this) || this;
1572
+ _this._tickerSymbols = null;
1573
+ _this._tickerNames = null;
1574
+ _this._json = null;
1575
+ _this._context = null;
1576
+ _this._intentType = null;
1577
+ _this._contextType = null;
1578
+ _this.tickerNames = new Array(0);
1579
+ _this.tickerSymbols = new Array(0);
1580
+ return _this;
1581
+ }
1582
+ Object.defineProperty(Fdc3Message.prototype, "tickerSymbols", {
1583
+ get: function () {
1584
+ return this._tickerSymbols;
1585
+ },
1586
+ set: function (a) {
1587
+ this._tickerSymbols = a;
1588
+ },
1589
+ enumerable: true,
1590
+ configurable: true
1591
+ });
1592
+ Object.defineProperty(Fdc3Message.prototype, "tickerNames", {
1593
+ get: function () {
1594
+ return this._tickerNames;
1595
+ },
1596
+ set: function (a) {
1597
+ this._tickerNames = a;
1598
+ },
1599
+ enumerable: true,
1600
+ configurable: true
1601
+ });
1602
+ Object.defineProperty(Fdc3Message.prototype, "json", {
1603
+ get: function () {
1604
+ return this._json;
1605
+ },
1606
+ set: function (a) {
1607
+ this._json = a;
1608
+ },
1609
+ enumerable: true,
1610
+ configurable: true
1611
+ });
1612
+ Object.defineProperty(Fdc3Message.prototype, "context", {
1613
+ get: function () {
1614
+ return this._context;
1615
+ },
1616
+ set: function (a) {
1617
+ this._context = a;
1618
+ },
1619
+ enumerable: true,
1620
+ configurable: true
1621
+ });
1622
+ Object.defineProperty(Fdc3Message.prototype, "intentType", {
1623
+ get: function () {
1624
+ return this._intentType;
1625
+ },
1626
+ set: function (a) {
1627
+ this._intentType = a;
1628
+ },
1629
+ enumerable: true,
1630
+ configurable: true
1631
+ });
1632
+ Object.defineProperty(Fdc3Message.prototype, "contextType", {
1633
+ get: function () {
1634
+ return this._contextType;
1635
+ },
1636
+ set: function (a) {
1637
+ this._contextType = a;
1638
+ },
1639
+ enumerable: true,
1640
+ configurable: true
1641
+ });
1642
+ Fdc3Message.$t = igniteuiWebcomponentsCore.markType(Fdc3Message, 'Fdc3Message');
1643
+ return Fdc3Message;
1644
+ }(igniteuiWebcomponentsCore.Base));
1645
+
1646
+ /*
1647
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1648
+ https://www.infragistics.com/legal/license/igultimate-la
1649
+ https://www.infragistics.com/legal/license/igultimate-eula
1650
+ 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.
1651
+ */
1652
+ /**
1653
+ * @hidden
1654
+ */
1655
+ var Fdc3DataAdapter = /** @class */ /*@__PURE__*/ (function (_super) {
1656
+ tslib_1.__extends(Fdc3DataAdapter, _super);
1657
+ function Fdc3DataAdapter(a) {
1658
+ var _this = _super.call(this) || this;
1659
+ _this.messageReceived = null;
1660
+ _this._openFin = null;
1661
+ _this.a3 = false;
1662
+ _this._openFin = a;
1663
+ return _this;
1664
+ }
1665
+ Fdc3DataAdapter.prototype.aq = function (a, b, c) {
1666
+ _super.prototype.aq.call(this, a, b, c);
1667
+ };
1668
+ Fdc3DataAdapter.prototype.ba = function (a) {
1669
+ if (a == null) {
1670
+ return;
1671
+ }
1672
+ if (a.context != null && igniteuiWebcomponentsCore.stringIsNullOrEmpty(a.json)) {
1673
+ a.json = a.context.toJson();
1674
+ this.log("received '" + a.intentType + "' intent '" + a.contextType + "' context with JSON:\n" + a.json);
1675
+ }
1676
+ if (this.messageReceived != null && a != null) {
1677
+ this.messageReceived(a);
1678
+ }
1679
+ };
1680
+ Fdc3DataAdapter.prototype.a5 = function () {
1681
+ var isRunning_ = true;
1682
+ if (!window.hasOwnProperty('fin')) {
1683
+ isRunning_ = false;
1684
+ }
1685
+ ;
1686
+ return isRunning_;
1687
+ };
1688
+ Fdc3DataAdapter.prototype.subscribe = function (intentType_, contextType_) {
1689
+ var _this = this;
1690
+ if (contextType_ === void 0) {
1691
+ contextType_ = "";
1692
+ }
1693
+ if (!this.a5()) {
1694
+ return;
1695
+ }
1696
+ if (igniteuiWebcomponentsCore.stringIsNullOrEmpty(intentType_)) {
1697
+ intentType_ = "ViewChart";
1698
+ }
1699
+ this.log("Subscribing to '" + intentType_ + "' intent and '" + contextType_ + "' context");
1700
+ var addIntentListener_ = this._openFin.addIntentListener;
1701
+ // calling OpenFin API:
1702
+ addIntentListener_(intentType_, function (context) {
1703
+ return new Promise(function (resolve, reject) {
1704
+ try {
1705
+ _this.log('Subscriber received context ');
1706
+ if (context.type == null || context.type === undefined) {
1707
+ _this.log('Subscriber received context with missing context.type');
1708
+ return;
1709
+ }
1710
+ if (contextType_ !== '' && contextType_ !== context.type) {
1711
+ _this.log('Subscriber skipping not matching context.type');
1712
+ return;
1713
+ }
1714
+ // call function to handle intent and process its context
1715
+ _this.handleIntent(context, context.type, intentType_);
1716
+ resolve();
1717
+ }
1718
+ catch (e) {
1719
+ _this.log('Subscriber detected error with ' + intentType_ + ' intent: \n' + e);
1720
+ reject(e);
1721
+ }
1722
+ });
1723
+ });
1724
+ ;
1725
+ };
1726
+ Fdc3DataAdapter.prototype.handleIntent = function (context_, contextType_, intentType_) {
1727
+ var e_1, _a, e_2, _b;
1728
+ var msg_ = new Fdc3Message();
1729
+ this.log("HandleIntent '" + intentType_ + "' intent with '" + contextType_ + "' context");
1730
+ msg_.intentType = intentType_;
1731
+ msg_.contextType = contextType_;
1732
+ this.log('HandleIntent');
1733
+ if (contextType_ === 'fdc3.instrument') {
1734
+ var instrument = Fdc3Converter.toInstrument(context_);
1735
+ msg_.context = instrument;
1736
+ }
1737
+ else if (contextType_ === 'fdc3.instrumentList') {
1738
+ var list = Fdc3Converter.toInstrumentList(context_);
1739
+ msg_.context = list;
1740
+ }
1741
+ else if (contextType_ === 'fdc3.position') {
1742
+ var position = Fdc3Converter.toPosition(context_);
1743
+ msg_.context = position;
1744
+ }
1745
+ else if (contextType_ === 'fdc3.portfolio') {
1746
+ var portfolio = Fdc3Converter.toPortfolio(context_);
1747
+ msg_.context = portfolio;
1748
+ }
1749
+ else // TODO other unsupported/custom context of FDC3 messages
1750
+ {
1751
+ // var custom = Fdc3Converter.toPortfolio(context_);
1752
+ // msg_.context = custom;
1753
+ // this.log('received custom \n' + custom.toJson());
1754
+ }
1755
+ ;
1756
+ var a = new igniteuiWebcomponentsCore.List$1(Fdc3Position.$, 0);
1757
+ var b = new igniteuiWebcomponentsCore.List$1(Fdc3Instrument.$, 0);
1758
+ var c = new igniteuiWebcomponentsCore.List$1(igniteuiWebcomponentsCore.String_$type, 0);
1759
+ var d = new igniteuiWebcomponentsCore.List$1(igniteuiWebcomponentsCore.String_$type, 0);
1760
+ if (contextType_ == "fdc3.instrument") {
1761
+ this.v.clear();
1762
+ igniteuiWebcomponentsCore.arrayClear(this.stockPrices);
1763
+ var e = igniteuiWebcomponentsCore.typeCast(Fdc3Instrument.$, msg_.context);
1764
+ b.add(e);
1765
+ var f = e.ticker;
1766
+ if (!c.contains(f)) {
1767
+ c.add(f);
1768
+ }
1769
+ var g = e.name;
1770
+ if (!d.contains(g)) {
1771
+ d.add(g);
1772
+ }
1773
+ }
1774
+ else if (contextType_ == "fdc3.instrumentList") {
1775
+ this.v.clear();
1776
+ igniteuiWebcomponentsCore.arrayClear(this.stockPrices);
1777
+ var h = igniteuiWebcomponentsCore.typeCast(Fdc3InstrumentList.$, msg_.context);
1778
+ b.o(h.instruments);
1779
+ var k = h.instruments;
1780
+ for (var j = 0; j < k.length; j++) {
1781
+ var i = k[j];
1782
+ var l = i.ticker;
1783
+ if (!c.contains(l)) {
1784
+ c.add(l);
1785
+ }
1786
+ var m = i.name;
1787
+ if (!d.contains(m)) {
1788
+ d.add(m);
1789
+ }
1790
+ }
1791
+ }
1792
+ else if (contextType_ == "fdc3.position") {
1793
+ var n = igniteuiWebcomponentsCore.typeCast(Fdc3Position.$, msg_.context);
1794
+ a.add(n);
1795
+ var o = n.instrument.ticker;
1796
+ if (!c.contains(o)) {
1797
+ c.add(n.instrument.ticker);
1798
+ }
1799
+ var p = n.instrument.name;
1800
+ if (!d.contains(p)) {
1801
+ d.add(p);
1802
+ }
1803
+ }
1804
+ else if (contextType_ == "fdc3.portfolio") {
1805
+ this.x.clear();
1806
+ igniteuiWebcomponentsCore.arrayClear(this.stockPositions);
1807
+ var q = igniteuiWebcomponentsCore.typeCast(Fdc3Portfolio.$, msg_.context);
1808
+ a.o(q.positions);
1809
+ var t = q.positions;
1810
+ for (var s = 0; s < t.length; s++) {
1811
+ var r = t[s];
1812
+ var u = r.instrument.ticker;
1813
+ if (!c.contains(u)) {
1814
+ c.add(r.instrument.ticker);
1815
+ }
1816
+ var v = r.instrument.name;
1817
+ if (!d.contains(v)) {
1818
+ d.add(v);
1819
+ }
1820
+ }
1821
+ }
1822
+ msg_.tickerSymbols = this.f(igniteuiWebcomponentsCore.String_$type, c);
1823
+ msg_.tickerNames = this.f(igniteuiWebcomponentsCore.String_$type, d);
1824
+ this.log("HandleIntent tickerSymbols " + msg_.tickerSymbols);
1825
+ this.log("HandleIntent instrumentList " + b.count);
1826
+ this.log("HandleIntent positionList " + a.count);
1827
+ try {
1828
+ for (var _c = tslib_1.__values(igniteuiWebcomponentsCore.fromEnum(b)), _d = _c.next(); !_d.done; _d = _c.next()) {
1829
+ var w = _d.value;
1830
+ var x = w.ticker;
1831
+ if (igniteuiWebcomponentsCore.stringIsNullOrEmpty(x)) {
1832
+ continue;
1833
+ }
1834
+ var y = this.q(x);
1835
+ this.ao(x, y);
1836
+ }
1837
+ }
1838
+ catch (e_1_1) {
1839
+ e_1 = { error: e_1_1 };
1840
+ }
1841
+ finally {
1842
+ try {
1843
+ if (_d && !_d.done && (_a = _c.return))
1844
+ _a.call(_c);
1845
+ }
1846
+ finally {
1847
+ if (e_1)
1848
+ throw e_1.error;
1849
+ }
1850
+ }
1851
+ try {
1852
+ for (var _e = tslib_1.__values(igniteuiWebcomponentsCore.fromEnum(a)), _f = _e.next(); !_f.done; _f = _e.next()) {
1853
+ var z = _f.value;
1854
+ var aa = z.instrument.ticker;
1855
+ if (igniteuiWebcomponentsCore.stringIsNullOrEmpty(aa)) {
1856
+ continue;
1857
+ }
1858
+ var ab = this.p(aa);
1859
+ if (z.cost > 0) {
1860
+ ab.costPerShare = z.cost;
1861
+ }
1862
+ if (z.shares > 0) {
1863
+ ab.shares = z.shares;
1864
+ }
1865
+ if (z.price > 0) {
1866
+ ab.marketPrice = z.price;
1867
+ }
1868
+ this.an(aa, ab);
1869
+ }
1870
+ }
1871
+ catch (e_2_1) {
1872
+ e_2 = { error: e_2_1 };
1873
+ }
1874
+ finally {
1875
+ try {
1876
+ if (_f && !_f.done && (_b = _e.return))
1877
+ _b.call(_e);
1878
+ }
1879
+ finally {
1880
+ if (e_2)
1881
+ throw e_2.error;
1882
+ }
1883
+ }
1884
+ this.ba(msg_);
1885
+ };
1886
+ Fdc3DataAdapter.prototype.sendInstrument = function (a, b, c) {
1887
+ if (c === void 0) {
1888
+ c = "";
1889
+ }
1890
+ if (b == null) {
1891
+ return;
1892
+ }
1893
+ var d = Fdc3Converter.fromInstrument(b);
1894
+ this.bb(a, d, c);
1895
+ };
1896
+ Fdc3DataAdapter.prototype.sendInstrumentList = function (a, b, c) {
1897
+ if (c === void 0) {
1898
+ c = "";
1899
+ }
1900
+ if (b == null) {
1901
+ return;
1902
+ }
1903
+ var d = Fdc3Converter.fromInstrumentList(b);
1904
+ this.bb(a, d, c);
1905
+ };
1906
+ Fdc3DataAdapter.prototype.sendPosition = function (a, b, c) {
1907
+ if (c === void 0) {
1908
+ c = "";
1909
+ }
1910
+ if (b == null) {
1911
+ return;
1912
+ }
1913
+ var d = Fdc3Converter.fromPosition(b);
1914
+ this.bb(a, d, c);
1915
+ };
1916
+ Fdc3DataAdapter.prototype.sendPortfolio = function (a, b, c) {
1917
+ if (c === void 0) {
1918
+ c = "";
1919
+ }
1920
+ if (b == null) {
1921
+ return;
1922
+ }
1923
+ var d = Fdc3Converter.fromPortfolio(b);
1924
+ this.bb(a, d, c);
1925
+ };
1926
+ Fdc3DataAdapter.prototype.bb = function (intent_, context_, target_) {
1927
+ if (target_ === void 0) {
1928
+ target_ = "";
1929
+ }
1930
+ if (!this.a5()) {
1931
+ return;
1932
+ }
1933
+ var raiseIntent_ = this._openFin.raiseIntent;
1934
+ this.log('Sending \'' + intent_ + '\' intent to \'' + target_ + '\' target');
1935
+ // calling OpenFin API:
1936
+ if (target_ == null || target_ === '') {
1937
+ raiseIntent_(intent_, context_); // send to all OpenFin apps
1938
+ }
1939
+ else {
1940
+ raiseIntent_(intent_, context_, target_); // send only to Target app
1941
+ }
1942
+ ;
1943
+ };
1944
+ Object.defineProperty(Fdc3DataAdapter.prototype, "a4", {
1945
+ get: function () {
1946
+ return this.a3;
1947
+ },
1948
+ set: function (a) {
1949
+ this.a3 = a;
1950
+ },
1951
+ enumerable: true,
1952
+ configurable: true
1953
+ });
1954
+ Fdc3DataAdapter.prototype.a7 = function (a) {
1955
+ this.a4 = true;
1956
+ };
1957
+ Fdc3DataAdapter.prototype.dispose = function () {
1958
+ this.a7(true);
1959
+ };
1960
+ Fdc3DataAdapter.$t = igniteuiWebcomponentsCore.markType(Fdc3DataAdapter, 'Fdc3DataAdapter', igniteuiWebcomponentsCore.FinancialDataAdapter.$, [igniteuiWebcomponentsCore.IDisposable_$type]);
1961
+ return Fdc3DataAdapter;
1962
+ }(igniteuiWebcomponentsCore.FinancialDataAdapter));
1963
+
1964
+ /*
1965
+ THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
1966
+ https://www.infragistics.com/legal/license/igultimate-la
1967
+ https://www.infragistics.com/legal/license/igultimate-eula
1968
+ 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.
1969
+ */
1970
+ /**
1971
+ * @hidden
1972
+ */
1973
+ var Randomizer = /** @class */ /*@__PURE__*/ (function (_super) {
1974
+ tslib_1.__extends(Randomizer, _super);
1975
+ function Randomizer() {
1976
+ return _super !== null && _super.apply(this, arguments) || this;
1977
+ }
1978
+ Randomizer.d = function (a) {
1979
+ var b = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
1980
+ var c = "";
1981
+ for (var d = 0; d < a; d++) {
1982
+ var e = Randomizer.c.next1(b.length);
1983
+ c += b.charAt(e);
1984
+ }
1985
+ return c;
1986
+ };
1987
+ Randomizer.b = function (a, b) {
1988
+ return Randomizer.c.next2(a, b);
1989
+ };
1990
+ Randomizer.a = function (a) {
1991
+ var b = Math.pow(10, (a - 1));
1992
+ var c = 9 * b;
1993
+ return Randomizer.c.next2(igniteuiWebcomponentsCore.truncate(b), igniteuiWebcomponentsCore.truncate(c));
1994
+ };
1995
+ Randomizer.$t = igniteuiWebcomponentsCore.markType(Randomizer, 'Randomizer');
1996
+ Randomizer.c = new igniteuiWebcomponentsCore.Random(0);
1997
+ return Randomizer;
1998
+ }(igniteuiWebcomponentsCore.Base));
1999
+
2000
+ exports.Fdc3Contact = Fdc3Contact;
2001
+ exports.Fdc3ContactList = Fdc3ContactList;
2002
+ exports.Fdc3Context = Fdc3Context;
2003
+ exports.Fdc3ContextType = Fdc3ContextType;
2004
+ exports.Fdc3ContextType_$type = Fdc3ContextType_$type;
2005
+ exports.Fdc3Converter = Fdc3Converter;
2006
+ exports.Fdc3DataAdapter = Fdc3DataAdapter;
2007
+ exports.Fdc3Dictionary = Fdc3Dictionary;
2008
+ exports.Fdc3Instrument = Fdc3Instrument;
2009
+ exports.Fdc3InstrumentList = Fdc3InstrumentList;
2010
+ exports.Fdc3IntentType = Fdc3IntentType;
2011
+ exports.Fdc3IntentType_$type = Fdc3IntentType_$type;
2012
+ exports.Fdc3Message = Fdc3Message;
2013
+ exports.Fdc3Organization = Fdc3Organization;
2014
+ exports.Fdc3OrganizationList = Fdc3OrganizationList;
2015
+ exports.Fdc3Portfolio = Fdc3Portfolio;
2016
+ exports.Fdc3Position = Fdc3Position;
2017
+ exports.Fdc3Serializer = Fdc3Serializer;
2018
+ exports.Fdc3Util = Fdc3Util;
2019
+ exports.Randomizer = Randomizer;
2020
+
2021
+ Object.defineProperty(exports, '__esModule', { value: true });
2022
+
2023
+ })));
2024
+ //# sourceMappingURL=igniteui-webcomponents-fdc3.umd.js.map