igniteui-webcomponents-fdc3 4.2.5 → 4.3.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/igniteui-webcomponents-fdc3.umd.js +46 -46
- package/bundles/igniteui-webcomponents-fdc3.umd.min.js +1 -1
- package/esm2015/lib/Fdc3DataAdapter.js +7 -7
- package/esm5/lib/Fdc3Converter.js +2 -2
- package/esm5/lib/Fdc3DataAdapter.js +5 -5
- package/esm5/lib/Fdc3Dictionary.js +4 -4
- package/esm5/lib/Fdc3Message.js +8 -8
- package/esm5/lib/Fdc3Serializer_combined.js +28 -28
- package/esm5/lib/Fdc3Util.js +2 -2
- package/esm5/lib/Randomizer.js +2 -2
- package/fesm2015/igniteui-webcomponents-fdc3.js +7 -7
- package/fesm5/igniteui-webcomponents-fdc3.js +24 -24
- package/lib/Fdc3DataAdapter.d.ts +2 -1
- package/lib/Fdc3Message.d.ts +12 -6
- package/lib/Fdc3Serializer_combined.d.ts +34 -17
- package/package.json +2 -2
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
(function (global, factory) {
|
|
9
9
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('igniteui-webcomponents-core')) :
|
|
10
10
|
typeof define === 'function' && define.amd ? define(['exports', 'tslib', 'igniteui-webcomponents-core'], factory) :
|
|
11
|
-
(global = global || self, factory(global['igniteui-webcomponents-fdc3'] = {}, global.
|
|
12
|
-
}(this, (function (exports,
|
|
11
|
+
(global = global || self, factory(global['igniteui-webcomponents-fdc3'] = {}, global.tslib, global.igniteuiWebcomponentsCore));
|
|
12
|
+
}(this, (function (exports, tslib, igniteuiWebcomponentsCore) { 'use strict';
|
|
13
13
|
|
|
14
14
|
/*
|
|
15
15
|
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
* @hidden
|
|
85
85
|
*/
|
|
86
86
|
var Fdc3Dictionary = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
87
|
-
|
|
87
|
+
tslib.__extends(Fdc3Dictionary, _super);
|
|
88
88
|
function Fdc3Dictionary() {
|
|
89
89
|
var _this = _super.call(this) || this;
|
|
90
90
|
_this.d = null;
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
var e_1, _a;
|
|
96
96
|
var a = new igniteuiWebcomponentsCore.List$1(igniteuiWebcomponentsCore.String_$type, 0);
|
|
97
97
|
try {
|
|
98
|
-
for (var _b =
|
|
98
|
+
for (var _b = tslib.__values(igniteuiWebcomponentsCore.fromEnum(this.d)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
99
99
|
var b = _c.value;
|
|
100
100
|
a.add(b.key);
|
|
101
101
|
}
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
var e_2, _a;
|
|
120
120
|
var a = new igniteuiWebcomponentsCore.List$1(igniteuiWebcomponentsCore.Base.$, 0);
|
|
121
121
|
try {
|
|
122
|
-
for (var _b =
|
|
122
|
+
for (var _b = tslib.__values(igniteuiWebcomponentsCore.fromEnum(this.d)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
123
123
|
var b = _c.value;
|
|
124
124
|
a.add1(b.value);
|
|
125
125
|
}
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
* @hidden
|
|
256
256
|
*/
|
|
257
257
|
var Fdc3Util = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
258
|
-
|
|
258
|
+
tslib.__extends(Fdc3Util, _super);
|
|
259
259
|
function Fdc3Util() {
|
|
260
260
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
261
261
|
}
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
* @hidden
|
|
331
331
|
*/
|
|
332
332
|
var Fdc3Serializer = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
333
|
-
|
|
333
|
+
tslib.__extends(Fdc3Serializer, _super);
|
|
334
334
|
function Fdc3Serializer() {
|
|
335
335
|
var _this = _super.call(this) || this;
|
|
336
336
|
_this._sb = null;
|
|
@@ -927,7 +927,7 @@
|
|
|
927
927
|
* @hidden
|
|
928
928
|
*/
|
|
929
929
|
var Fdc3Context = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
930
|
-
|
|
930
|
+
tslib.__extends(Fdc3Context, _super);
|
|
931
931
|
function Fdc3Context(a) {
|
|
932
932
|
var _rest = [];
|
|
933
933
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
@@ -964,7 +964,7 @@
|
|
|
964
964
|
set: function (a) {
|
|
965
965
|
this.item("intent", igniteuiWebcomponentsCore.enumGetBox(Fdc3IntentType_$type, a));
|
|
966
966
|
},
|
|
967
|
-
enumerable:
|
|
967
|
+
enumerable: false,
|
|
968
968
|
configurable: true
|
|
969
969
|
});
|
|
970
970
|
Object.defineProperty(Fdc3Context.prototype, "type", {
|
|
@@ -974,7 +974,7 @@
|
|
|
974
974
|
set: function (a) {
|
|
975
975
|
this.item("type", a);
|
|
976
976
|
},
|
|
977
|
-
enumerable:
|
|
977
|
+
enumerable: false,
|
|
978
978
|
configurable: true
|
|
979
979
|
});
|
|
980
980
|
Object.defineProperty(Fdc3Context.prototype, "target", {
|
|
@@ -984,7 +984,7 @@
|
|
|
984
984
|
set: function (a) {
|
|
985
985
|
this.item("target", a);
|
|
986
986
|
},
|
|
987
|
-
enumerable:
|
|
987
|
+
enumerable: false,
|
|
988
988
|
configurable: true
|
|
989
989
|
});
|
|
990
990
|
Object.defineProperty(Fdc3Context.prototype, "name", {
|
|
@@ -994,7 +994,7 @@
|
|
|
994
994
|
set: function (a) {
|
|
995
995
|
this.item("name", a);
|
|
996
996
|
},
|
|
997
|
-
enumerable:
|
|
997
|
+
enumerable: false,
|
|
998
998
|
configurable: true
|
|
999
999
|
});
|
|
1000
1000
|
Object.defineProperty(Fdc3Context.prototype, "id", {
|
|
@@ -1004,7 +1004,7 @@
|
|
|
1004
1004
|
set: function (a) {
|
|
1005
1005
|
this._id = a;
|
|
1006
1006
|
},
|
|
1007
|
-
enumerable:
|
|
1007
|
+
enumerable: false,
|
|
1008
1008
|
configurable: true
|
|
1009
1009
|
});
|
|
1010
1010
|
Fdc3Context.prototype.toJson = function () {
|
|
@@ -1019,7 +1019,7 @@
|
|
|
1019
1019
|
* @hidden
|
|
1020
1020
|
*/
|
|
1021
1021
|
var Fdc3Instrument = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1022
|
-
|
|
1022
|
+
tslib.__extends(Fdc3Instrument, _super);
|
|
1023
1023
|
function Fdc3Instrument() {
|
|
1024
1024
|
return _super.call(this, 1, 1) || this;
|
|
1025
1025
|
}
|
|
@@ -1030,7 +1030,7 @@
|
|
|
1030
1030
|
set: function (a) {
|
|
1031
1031
|
this.id.item("ticker", a);
|
|
1032
1032
|
},
|
|
1033
|
-
enumerable:
|
|
1033
|
+
enumerable: false,
|
|
1034
1034
|
configurable: true
|
|
1035
1035
|
});
|
|
1036
1036
|
Fdc3Instrument.$t = igniteuiWebcomponentsCore.markType(Fdc3Instrument, 'Fdc3Instrument', Fdc3Context.$);
|
|
@@ -1040,7 +1040,7 @@
|
|
|
1040
1040
|
* @hidden
|
|
1041
1041
|
*/
|
|
1042
1042
|
var Fdc3InstrumentList = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1043
|
-
|
|
1043
|
+
tslib.__extends(Fdc3InstrumentList, _super);
|
|
1044
1044
|
function Fdc3InstrumentList() {
|
|
1045
1045
|
var _this = _super.call(this, 0) || this;
|
|
1046
1046
|
_this._instruments = null;
|
|
@@ -1055,7 +1055,7 @@
|
|
|
1055
1055
|
set: function (a) {
|
|
1056
1056
|
this._instruments = a;
|
|
1057
1057
|
},
|
|
1058
|
-
enumerable:
|
|
1058
|
+
enumerable: false,
|
|
1059
1059
|
configurable: true
|
|
1060
1060
|
});
|
|
1061
1061
|
Fdc3InstrumentList.$t = igniteuiWebcomponentsCore.markType(Fdc3InstrumentList, 'Fdc3InstrumentList', Fdc3Context.$);
|
|
@@ -1065,7 +1065,7 @@
|
|
|
1065
1065
|
* @hidden
|
|
1066
1066
|
*/
|
|
1067
1067
|
var Fdc3Position = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1068
|
-
|
|
1068
|
+
tslib.__extends(Fdc3Position, _super);
|
|
1069
1069
|
function Fdc3Position() {
|
|
1070
1070
|
var _this = _super.call(this, 1, 3) || this;
|
|
1071
1071
|
_this.instrument = new Fdc3Instrument();
|
|
@@ -1078,7 +1078,7 @@
|
|
|
1078
1078
|
set: function (a) {
|
|
1079
1079
|
this.item("instrument", a);
|
|
1080
1080
|
},
|
|
1081
|
-
enumerable:
|
|
1081
|
+
enumerable: false,
|
|
1082
1082
|
configurable: true
|
|
1083
1083
|
});
|
|
1084
1084
|
Object.defineProperty(Fdc3Position.prototype, "shares", {
|
|
@@ -1088,7 +1088,7 @@
|
|
|
1088
1088
|
set: function (a) {
|
|
1089
1089
|
this.item("shares", a);
|
|
1090
1090
|
},
|
|
1091
|
-
enumerable:
|
|
1091
|
+
enumerable: false,
|
|
1092
1092
|
configurable: true
|
|
1093
1093
|
});
|
|
1094
1094
|
Object.defineProperty(Fdc3Position.prototype, "cost", {
|
|
@@ -1098,7 +1098,7 @@
|
|
|
1098
1098
|
set: function (a) {
|
|
1099
1099
|
this.item("cost", a);
|
|
1100
1100
|
},
|
|
1101
|
-
enumerable:
|
|
1101
|
+
enumerable: false,
|
|
1102
1102
|
configurable: true
|
|
1103
1103
|
});
|
|
1104
1104
|
Object.defineProperty(Fdc3Position.prototype, "price", {
|
|
@@ -1108,7 +1108,7 @@
|
|
|
1108
1108
|
set: function (a) {
|
|
1109
1109
|
this.item("price", a);
|
|
1110
1110
|
},
|
|
1111
|
-
enumerable:
|
|
1111
|
+
enumerable: false,
|
|
1112
1112
|
configurable: true
|
|
1113
1113
|
});
|
|
1114
1114
|
Fdc3Position.$t = igniteuiWebcomponentsCore.markType(Fdc3Position, 'Fdc3Position', Fdc3Context.$);
|
|
@@ -1118,7 +1118,7 @@
|
|
|
1118
1118
|
* @hidden
|
|
1119
1119
|
*/
|
|
1120
1120
|
var Fdc3Portfolio = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1121
|
-
|
|
1121
|
+
tslib.__extends(Fdc3Portfolio, _super);
|
|
1122
1122
|
function Fdc3Portfolio() {
|
|
1123
1123
|
var _this = _super.call(this, 1, 4) || this;
|
|
1124
1124
|
_this._positions = null;
|
|
@@ -1132,7 +1132,7 @@
|
|
|
1132
1132
|
set: function (a) {
|
|
1133
1133
|
this._positions = a;
|
|
1134
1134
|
},
|
|
1135
|
-
enumerable:
|
|
1135
|
+
enumerable: false,
|
|
1136
1136
|
configurable: true
|
|
1137
1137
|
});
|
|
1138
1138
|
Fdc3Portfolio.$t = igniteuiWebcomponentsCore.markType(Fdc3Portfolio, 'Fdc3Portfolio', Fdc3Context.$);
|
|
@@ -1142,7 +1142,7 @@
|
|
|
1142
1142
|
* @hidden
|
|
1143
1143
|
*/
|
|
1144
1144
|
var Fdc3Organization = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1145
|
-
|
|
1145
|
+
tslib.__extends(Fdc3Organization, _super);
|
|
1146
1146
|
function Fdc3Organization() {
|
|
1147
1147
|
return _super.call(this, 1, 7) || this;
|
|
1148
1148
|
}
|
|
@@ -1153,7 +1153,7 @@
|
|
|
1153
1153
|
* @hidden
|
|
1154
1154
|
*/
|
|
1155
1155
|
var Fdc3OrganizationList = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1156
|
-
|
|
1156
|
+
tslib.__extends(Fdc3OrganizationList, _super);
|
|
1157
1157
|
function Fdc3OrganizationList() {
|
|
1158
1158
|
var _this = _super.call(this, 1, 8) || this;
|
|
1159
1159
|
_this._organizations = null;
|
|
@@ -1166,7 +1166,7 @@
|
|
|
1166
1166
|
set: function (a) {
|
|
1167
1167
|
this._organizations = a;
|
|
1168
1168
|
},
|
|
1169
|
-
enumerable:
|
|
1169
|
+
enumerable: false,
|
|
1170
1170
|
configurable: true
|
|
1171
1171
|
});
|
|
1172
1172
|
Fdc3OrganizationList.$t = igniteuiWebcomponentsCore.markType(Fdc3OrganizationList, 'Fdc3OrganizationList', Fdc3Context.$);
|
|
@@ -1176,7 +1176,7 @@
|
|
|
1176
1176
|
* @hidden
|
|
1177
1177
|
*/
|
|
1178
1178
|
var Fdc3Contact = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1179
|
-
|
|
1179
|
+
tslib.__extends(Fdc3Contact, _super);
|
|
1180
1180
|
function Fdc3Contact(a) {
|
|
1181
1181
|
var _rest = [];
|
|
1182
1182
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
@@ -1224,7 +1224,7 @@
|
|
|
1224
1224
|
set: function (a) {
|
|
1225
1225
|
this.id.item("email", a);
|
|
1226
1226
|
},
|
|
1227
|
-
enumerable:
|
|
1227
|
+
enumerable: false,
|
|
1228
1228
|
configurable: true
|
|
1229
1229
|
});
|
|
1230
1230
|
Object.defineProperty(Fdc3Contact.prototype, "phone", {
|
|
@@ -1234,7 +1234,7 @@
|
|
|
1234
1234
|
set: function (a) {
|
|
1235
1235
|
this.id.item("phone", a);
|
|
1236
1236
|
},
|
|
1237
|
-
enumerable:
|
|
1237
|
+
enumerable: false,
|
|
1238
1238
|
configurable: true
|
|
1239
1239
|
});
|
|
1240
1240
|
Object.defineProperty(Fdc3Contact.prototype, "twitter", {
|
|
@@ -1244,7 +1244,7 @@
|
|
|
1244
1244
|
set: function (a) {
|
|
1245
1245
|
this.id.item("twitter", a);
|
|
1246
1246
|
},
|
|
1247
|
-
enumerable:
|
|
1247
|
+
enumerable: false,
|
|
1248
1248
|
configurable: true
|
|
1249
1249
|
});
|
|
1250
1250
|
Fdc3Contact.$t = igniteuiWebcomponentsCore.markType(Fdc3Contact, 'Fdc3Contact', Fdc3Context.$);
|
|
@@ -1254,7 +1254,7 @@
|
|
|
1254
1254
|
* @hidden
|
|
1255
1255
|
*/
|
|
1256
1256
|
var Fdc3ContactList = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1257
|
-
|
|
1257
|
+
tslib.__extends(Fdc3ContactList, _super);
|
|
1258
1258
|
function Fdc3ContactList(a) {
|
|
1259
1259
|
var _rest = [];
|
|
1260
1260
|
for (var _i = 1; _i < arguments.length; _i++) {
|
|
@@ -1291,7 +1291,7 @@
|
|
|
1291
1291
|
set: function (a) {
|
|
1292
1292
|
this._contacts = a;
|
|
1293
1293
|
},
|
|
1294
|
-
enumerable:
|
|
1294
|
+
enumerable: false,
|
|
1295
1295
|
configurable: true
|
|
1296
1296
|
});
|
|
1297
1297
|
Fdc3ContactList.$t = igniteuiWebcomponentsCore.markType(Fdc3ContactList, 'Fdc3ContactList', Fdc3Context.$);
|
|
@@ -1336,7 +1336,7 @@
|
|
|
1336
1336
|
* @hidden
|
|
1337
1337
|
*/
|
|
1338
1338
|
var Fdc3Converter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1339
|
-
|
|
1339
|
+
tslib.__extends(Fdc3Converter, _super);
|
|
1340
1340
|
function Fdc3Converter() {
|
|
1341
1341
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1342
1342
|
}
|
|
@@ -1573,7 +1573,7 @@
|
|
|
1573
1573
|
* @hidden
|
|
1574
1574
|
*/
|
|
1575
1575
|
var Fdc3Message = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1576
|
-
|
|
1576
|
+
tslib.__extends(Fdc3Message, _super);
|
|
1577
1577
|
function Fdc3Message() {
|
|
1578
1578
|
var _this = _super.call(this) || this;
|
|
1579
1579
|
_this._tickerSymbols = null;
|
|
@@ -1593,7 +1593,7 @@
|
|
|
1593
1593
|
set: function (a) {
|
|
1594
1594
|
this._tickerSymbols = a;
|
|
1595
1595
|
},
|
|
1596
|
-
enumerable:
|
|
1596
|
+
enumerable: false,
|
|
1597
1597
|
configurable: true
|
|
1598
1598
|
});
|
|
1599
1599
|
Object.defineProperty(Fdc3Message.prototype, "tickerNames", {
|
|
@@ -1603,7 +1603,7 @@
|
|
|
1603
1603
|
set: function (a) {
|
|
1604
1604
|
this._tickerNames = a;
|
|
1605
1605
|
},
|
|
1606
|
-
enumerable:
|
|
1606
|
+
enumerable: false,
|
|
1607
1607
|
configurable: true
|
|
1608
1608
|
});
|
|
1609
1609
|
Object.defineProperty(Fdc3Message.prototype, "json", {
|
|
@@ -1613,7 +1613,7 @@
|
|
|
1613
1613
|
set: function (a) {
|
|
1614
1614
|
this._json = a;
|
|
1615
1615
|
},
|
|
1616
|
-
enumerable:
|
|
1616
|
+
enumerable: false,
|
|
1617
1617
|
configurable: true
|
|
1618
1618
|
});
|
|
1619
1619
|
Object.defineProperty(Fdc3Message.prototype, "context", {
|
|
@@ -1623,7 +1623,7 @@
|
|
|
1623
1623
|
set: function (a) {
|
|
1624
1624
|
this._context = a;
|
|
1625
1625
|
},
|
|
1626
|
-
enumerable:
|
|
1626
|
+
enumerable: false,
|
|
1627
1627
|
configurable: true
|
|
1628
1628
|
});
|
|
1629
1629
|
Object.defineProperty(Fdc3Message.prototype, "intentType", {
|
|
@@ -1633,7 +1633,7 @@
|
|
|
1633
1633
|
set: function (a) {
|
|
1634
1634
|
this._intentType = a;
|
|
1635
1635
|
},
|
|
1636
|
-
enumerable:
|
|
1636
|
+
enumerable: false,
|
|
1637
1637
|
configurable: true
|
|
1638
1638
|
});
|
|
1639
1639
|
Object.defineProperty(Fdc3Message.prototype, "contextType", {
|
|
@@ -1643,7 +1643,7 @@
|
|
|
1643
1643
|
set: function (a) {
|
|
1644
1644
|
this._contextType = a;
|
|
1645
1645
|
},
|
|
1646
|
-
enumerable:
|
|
1646
|
+
enumerable: false,
|
|
1647
1647
|
configurable: true
|
|
1648
1648
|
});
|
|
1649
1649
|
Fdc3Message.$t = igniteuiWebcomponentsCore.markType(Fdc3Message, 'Fdc3Message');
|
|
@@ -1660,7 +1660,7 @@
|
|
|
1660
1660
|
* @hidden
|
|
1661
1661
|
*/
|
|
1662
1662
|
var Fdc3DataAdapter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1663
|
-
|
|
1663
|
+
tslib.__extends(Fdc3DataAdapter, _super);
|
|
1664
1664
|
function Fdc3DataAdapter(a) {
|
|
1665
1665
|
var _this = _super.call(this) || this;
|
|
1666
1666
|
_this.messageReceived = null;
|
|
@@ -1832,7 +1832,7 @@
|
|
|
1832
1832
|
this.log("HandleIntent instrumentList " + b.count);
|
|
1833
1833
|
this.log("HandleIntent positionList " + a.count);
|
|
1834
1834
|
try {
|
|
1835
|
-
for (var _c =
|
|
1835
|
+
for (var _c = tslib.__values(igniteuiWebcomponentsCore.fromEnum(b)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
1836
1836
|
var w = _d.value;
|
|
1837
1837
|
var x = w.ticker;
|
|
1838
1838
|
if (igniteuiWebcomponentsCore.stringIsNullOrEmpty(x)) {
|
|
@@ -1856,7 +1856,7 @@
|
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
1858
|
try {
|
|
1859
|
-
for (var _e =
|
|
1859
|
+
for (var _e = tslib.__values(igniteuiWebcomponentsCore.fromEnum(a)), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
1860
1860
|
var z = _f.value;
|
|
1861
1861
|
var aa = z.instrument.ticker;
|
|
1862
1862
|
if (igniteuiWebcomponentsCore.stringIsNullOrEmpty(aa)) {
|
|
@@ -1955,7 +1955,7 @@
|
|
|
1955
1955
|
set: function (a) {
|
|
1956
1956
|
this.a3 = a;
|
|
1957
1957
|
},
|
|
1958
|
-
enumerable:
|
|
1958
|
+
enumerable: false,
|
|
1959
1959
|
configurable: true
|
|
1960
1960
|
});
|
|
1961
1961
|
Fdc3DataAdapter.prototype.a7 = function (a) {
|
|
@@ -1978,7 +1978,7 @@
|
|
|
1978
1978
|
* @hidden
|
|
1979
1979
|
*/
|
|
1980
1980
|
var Randomizer = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
1981
|
-
|
|
1981
|
+
tslib.__extends(Randomizer, _super);
|
|
1982
1982
|
function Randomizer() {
|
|
1983
1983
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1984
1984
|
}
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
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
6
|
*/
|
|
7
|
-
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("tslib"),require("igniteui-webcomponents-core")):"function"==typeof define&&define.amd?define(["exports","tslib","igniteui-webcomponents-core"],e):e((t=t||self)["igniteui-webcomponents-fdc3"]={},t.tslib_1,t.igniteuiWebcomponentsCore)}(this,(function(t,e,n){"use strict";var i=function(t){return t[t.None=0]="None",t[t.All=1]="All",t[t.Unknown=2]="Unknown",t[t.ViewChart=3]="ViewChart",t[t.ViewInstrument=4]="ViewInstrument",t[t.StartCall=5]="StartCall",t[t.StartChat=6]="StartChat",t[t.ViewAnalysis=7]="ViewAnalysis",t[t.ViewContact=8]="ViewContact",t[t.ViewNews=9]="ViewNews",t[t.ViewQuote=10]="ViewQuote",t}({}),r=n.markEnum("Fdc3IntentType","None,0|All,1|Unknown,2|ViewChart,3|ViewInstrument,4|StartCall,5|StartChat,6|ViewAnalysis,7|ViewContact,8|ViewNews,9|ViewQuote,10"),o=function(t){function i(){var e=t.call(this)||this;return e.d=null,e.d=new n.Dictionary$2(n.String_$type,n.Base.$,0),e}return e.__extends(i,t),i.prototype.getKeys=function(){var t,i,r=new n.List$1(n.String_$type,0);try{for(var o=e.__values(n.fromEnum(this.d)),s=o.next();!s.done;s=o.next()){var a=s.value;r.add(a.key)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return r.toArray()},i.prototype.getValues=function(){var t,i,r=new n.List$1(n.Base.$,0);try{for(var o=e.__values(n.fromEnum(this.d)),s=o.next();!s.done;s=o.next()){var a=s.value;r.add1(a.value)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return r.toArray()},i.prototype.item=function(t,e){return 2===arguments.length?(this.set(t,e),e):this.get(t)},i.prototype.get=function(t){return this.d.containsKey(t)||this.set(t,""),null==this.d.item(t)?"":this.d.item(t)},i.prototype.h=function(t){return this.get(t).toString()},i.prototype.e=function(t){return this.d.containsKey(t)?null==this.d.item(t)?0:parseFloat(this.d.item(t).toString()):(this.set(t,0),0)},i.prototype.set=function(t,e){this.d.containsKey(t)?this.d.item(t,e):this.d.addItem(t,e)},i.prototype.remove=function(t){this.d.containsKey(t)&&this.d.removeItem(t)},i.prototype.contains=function(t){return this.d.containsKey(t)},i.$t=n.markType(i,"Fdc3Dictionary"),i}(n.Base),s=function(t){return t[t.Unknown=0]="Unknown",t[t.Instrument=1]="Instrument",t[t.InstrumentList=2]="InstrumentList",t[t.Position=3]="Position",t[t.Portfolio=4]="Portfolio",t[t.Contact=5]="Contact",t[t.ContactList=6]="ContactList",t[t.Organization=7]="Organization",t[t.OrganizationList=8]="OrganizationList",t}({}),a=n.markEnum("Fdc3ContextType","Unknown,0|Instrument,1|InstrumentList,2|Position,3|Portfolio,4|Contact,5|ContactList,6|Organization,7|OrganizationList,8"),u=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(i,t),i.staticInit=function(){i.c=new n.Dictionary$2(n.String_$type,a,0),i.f(0),i.f(1),i.f(2),i.f(3),i.f(4),i.f(7),i.f(8),i.f(5),i.f(6),i.d=new n.Dictionary$2(n.String_$type,r,0),i.g(2),i.g(3),i.g(4),i.g(7),i.g(5),i.g(6),i.g(8),i.g(10),i.g(9)},i.getString=function(t){var e=n.EnumUtil.getName(a,t);return"fdc3."+e.substr(0,1).toLowerCase()+e.substr(1)},i.a=function(t){return i.c.containsKey(t)?i.c.item(t):0},i.b=function(t){return i.d.containsKey(t)?i.d.item(t):2},i.f=function(t){var e=i.getString(t);i.c.containsKey(e)||i.c.addItem(e,t)},i.g=function(t){var e=n.EnumUtil.getName(r,t);i.d.containsKey(e)||i.d.addItem(e,t)},i.$t=n.markType(i,"Fdc3Util"),i.c=null,i.d=null,i}(n.Base);n.callStaticConstructors();var d=function(t){function i(){var e=t.call(this)||this;return e._sb=null,e.m=0,e.l=!1,e._sb=new n.StringBuilder(0),e}return e.__extends(i,t),i.prototype.toString=function(){return this._sb.toString()},i.prototype.toJson=function(t){return this._sb.v(),null!==n.typeCast(l.$,t)?this.add4(n.typeCast(l.$,t)):null!==n.typeCast(p.$,t)?this.add5(n.typeCast(p.$,t)):null!==n.typeCast(h.$,t)?this.add9(n.typeCast(h.$,t)):null!==n.typeCast(f.$,t)?this.add8(n.typeCast(f.$,t)):null!==n.typeCast(g.$,t)?this.add1(n.typeCast(g.$,t)):null!==n.typeCast(v.$,t)?this.add2(n.typeCast(v.$,t)):null!==n.typeCast(y.$,t)?this.add6(n.typeCast(y.$,t)):null!==n.typeCast(m.$,t)?this.add7(n.typeCast(m.$,t)):this.add3(n.typeCast(c.$,t)),this.toString()},i.prototype.add4=function(t,e){void 0===e&&(e=""),this.z("serializing Fdc3Instrument"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var i=t.getKeys(),o=0;o<i.length;o++){var s=i[o];"type"!=s&&("name"!=s&&"target"!=s&&"intent"!=s&&"ticker"!=s&&"id"!=s&&this.addProp1(s,t.item(s)))}if(null==t.id)this.addProp1("id","null");else{this.addProp("id"),this.addObjectOpen(),this.addProp1("ticker",t.ticker);for(var a=t.id.getKeys(),u=0;u<a.length;u++){var d=a[u];"ticker"!=d&&this.addProp1(d,t.id.item(d))}this.addObjectClose()}this.addObjectClose(e)},i.prototype.add5=function(t){this.z("serializing Fdc3InstrumentList"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var e=t.getKeys(),i=0;i<e.length;i++){var o=e[i];"type"!=o&&("name"!=o&&"target"!=o&&"intent"!=o&&"id"!=o&&"instruments"!=o&&this.addProp1(o,t.item(o)))}if(null==t.instruments)this.addProp1("instruments","null");else{this.addProp("instruments"),this.addArrayOpen();for(var s=t.instruments,a=0;a<s.length;a++){var u=s[a];this.add4(u,",")}this.addArrayClose()}this.addObjectClose()},i.prototype.add8=function(t){this.z("serializing Fdc3Portfolio"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var e=t.getKeys(),i=0;i<e.length;i++){var o=e[i];"type"!=o&&("name"!=o&&"target"!=o&&"intent"!=o&&"id"!=o&&"positions"!=o&&this.addProp1(o,t.item(o)))}if(null==t.positions)this.addProp1("positions","null");else{this.addProp("positions"),this.addArrayOpen();for(var s=t.positions,a=0;a<s.length;a++){var u=s[a];this.add9(u,",")}this.addArrayClose()}this.addObjectClose()},i.prototype.add9=function(t,e){void 0===e&&(e=""),this.z("serializing Fdc3Position"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var i=t.getKeys(),o=0;o<i.length;o++){var s=i[o];"type"!=s&&("name"!=s&&"target"!=s&&"intent"!=s&&"id"!=s&&"instrument"!=s&&this.addProp1(s,t.item(s)))}null==t.instrument?this.addProp1("instrument","null"):(this.addProp("instrument"),this.add4(t.instrument,",")),this.addObjectClose(e)},i.prototype.add1=function(t,e){void 0===e&&(e=""),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var i=t.getKeys(),o=0;o<i.length;o++){var s=i[o];"type"!=s&&("name"!=s&&"target"!=s&&"intent"!=s&&"email"!=s&&"phone"!=s&&"id"!=s&&this.addProp1(s,t.item(s)))}if(null==t.id)this.addProp1("id","null");else{this.addProp("id"),this.addObjectOpen();for(var a=t.id.getKeys(),u=0;u<a.length;u++){var d=a[u];this.addProp1(d,t.id.item(d))}this.addObjectClose()}this.addObjectClose(e)},i.prototype.z=function(t){},i.prototype.add2=function(t){this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var e=t.getKeys(),i=0;i<e.length;i++){var o=e[i];"type"!=o&&("name"!=o&&"target"!=o&&"intent"!=o&&"id"!=o&&"contacts"!=o&&this.addProp1(o,t.item(o)))}if(null==t.contacts)this.addProp1("contacts","null");else{this.addProp("contacts"),this.addArrayOpen();for(var s=t.contacts,a=0;a<s.length;a++){var u=s[a];this.add1(u,",")}this.addArrayClose()}this.addObjectClose()},i.prototype.add6=function(t,e){void 0===e&&(e=""),this.z("serializing Fdc3Organization"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var i=t.getKeys(),o=0;o<i.length;o++){var s=i[o];"type"!=s&&("name"!=s&&"target"!=s&&"intent"!=s&&"email"!=s&&"phone"!=s&&"id"!=s&&this.addProp1(s,t.item(s)))}if(null==t.id)this.addProp1("id","null");else{this.addProp("id"),this.addObjectOpen();for(var a=t.id.getKeys(),u=0;u<a.length;u++){var d=a[u];this.addProp1(d,t.id.item(d))}this.addObjectClose()}this.addObjectClose(e)},i.prototype.add7=function(t){this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var e=t.getKeys(),i=0;i<e.length;i++){var o=e[i];"type"!=o&&("name"!=o&&"target"!=o&&"intent"!=o&&"id"!=o&&"organizations"!=o&&this.addProp1(o,t.item(o)))}if(null==t.organizations)this.addProp1("organizations","null");else{this.addProp("organizations"),this.addArrayOpen();for(var s=t.organizations,a=0;a<s.length;a++){var u=s[a];this.add4(u,",")}this.addArrayClose()}this.addObjectClose()},i.prototype.add3=function(t,e){void 0===e&&(e=""),this.z("serializing Fdc3Context"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var i=t.getKeys(),o=0;o<i.length;o++){var s=i[o];"type"!=s&&("name"!=s&&"target"!=s&&"intent"!=s&&"id"!=s&&this.addProp1(s,t.item(s)))}if(null==t.id)this.addProp1("id","null");else{this.addProp("id"),this.addObjectOpen();for(var a=t.id.getKeys(),u=0;u<a.length;u++){var d=a[u];this.addProp1(d,t.id.item(d))}this.addObjectClose()}this.addObjectClose(e)},i.prototype.addArrayOpen=function(){return this.addLine("["),this.tabIncrease(),this},i.prototype.addArrayClose=function(t){return void 0===t&&(t=""),this.tabDecrease(),this.addLine("]"+t),this},i.prototype.addObjectOpen=function(){return this.addLine("{"),this.tabIncrease(),this},i.prototype.addObjectClose=function(t){return void 0===t&&(t=""),this.tabDecrease(),this.addLine("}"+t),this},i.prototype.add=function(t){return this.i(),this._sb.l(t),this},i.prototype.addLine=function(t){return this.i(),this._sb.u(t),this.l=!0,this},i.prototype.addProp=function(t){return this.i(),this._sb.u('"'+t+'": '),this.l=!0,this},i.prototype.addProp1=function(t,e,i){void 0===i&&(i=""),this.i(),n.stringIsNullOrEmpty(i)||(i=" // "+i);var r=null==e?"null":e;if("string"==typeof e)this._sb.u('"'+t+'": "'+r+'",'+i);else if(null!==n.typeCast(n.Boolean_$type,e)){var o=r.toString().toLowerCase();this._sb.u('"'+t+'": '+o+","+i)}else this._sb.u('"'+t+'": '+r+","+i);return this.l=!0,this},i.prototype.i=function(){if(this.l){for(var t=0;t<this.m;t++)this._sb.l(" ");this.l=!1}return this},i.prototype.tabIncrease=function(){return this.m++,this},i.prototype.tabDecrease=function(){return this.m--,this},i.$t=n.markType(i,"Fdc3Serializer"),i}(n.Base),c=function(t){function i(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=t.call(this)||this;switch(r._id=null,e=null==e?0:e){case 0:var s=(a=[0])[0];r.type=u.getString(s),r.id=new o;break;case 1:var a=n[0];r.type=u.getString(a),r.id=new o}return r}return e.__extends(i,t),Object.defineProperty(i.prototype,"intent",{get:function(){return u.b(this.item("intent").toString())},set:function(t){this.item("intent",n.enumGetBox(r,t))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return this.item("type").toString()},set:function(t){this.item("type",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"target",{get:function(){return this.h("target")},set:function(t){this.item("target",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.h("name")},set:function(t){this.item("name",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!0,configurable:!0}),i.prototype.toJson=function(){return(new d).toJson(this)},i.$t=n.markType(i,"Fdc3Context",o.$),i}(o),l=function(t){function i(){return t.call(this,1,1)||this}return e.__extends(i,t),Object.defineProperty(i.prototype,"ticker",{get:function(){return this.id.item("ticker").toString()},set:function(t){this.id.item("ticker",t)},enumerable:!0,configurable:!0}),i.$t=n.markType(i,"Fdc3Instrument",c.$),i}(c),p=function(t){function i(){var e=t.call(this,0)||this;return e._instruments=null,e.type=u.getString(2),e.instruments=new Array(0),e}return e.__extends(i,t),Object.defineProperty(i.prototype,"instruments",{get:function(){return this._instruments},set:function(t){this._instruments=t},enumerable:!0,configurable:!0}),i.$t=n.markType(i,"Fdc3InstrumentList",c.$),i}(c),h=function(t){function i(){var e=t.call(this,1,3)||this;return e.instrument=new l,e}return e.__extends(i,t),Object.defineProperty(i.prototype,"instrument",{get:function(){return n.typeCast(l.$,this.item("instrument"))},set:function(t){this.item("instrument",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shares",{get:function(){return this.e("shares")},set:function(t){this.item("shares",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cost",{get:function(){return this.e("cost")},set:function(t){this.item("cost",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"price",{get:function(){return this.e("price")},set:function(t){this.item("price",t)},enumerable:!0,configurable:!0}),i.$t=n.markType(i,"Fdc3Position",c.$),i}(c),f=function(t){function i(){var e=t.call(this,1,4)||this;return e._positions=null,e.positions=new Array(0),e}return e.__extends(i,t),Object.defineProperty(i.prototype,"positions",{get:function(){return this._positions},set:function(t){this._positions=t},enumerable:!0,configurable:!0}),i.$t=n.markType(i,"Fdc3Portfolio",c.$),i}(c),y=function(t){function i(){return t.call(this,1,7)||this}return e.__extends(i,t),i.$t=n.markType(i,"Fdc3Organization",c.$),i}(c),m=function(t){function i(){var e=t.call(this,1,8)||this;return e._organizations=null,e}return e.__extends(i,t),Object.defineProperty(i.prototype,"organizations",{get:function(){return this._organizations},set:function(t){this._organizations=t},enumerable:!0,configurable:!0}),i.$t=n.markType(i,"Fdc3OrganizationList",c.$),i}(c),g=function(t){function i(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this;switch(e=null==e?0:e){case 0:var o=(d=["","","",""])[0],s=d[1],a=d[2],u=d[3];(r=t.call(this,1,5)||this).name=o,r.email=s,r.phone=a,r.twitter=u;break;case 1:var d=n[0],c=n[1];o=n[2],s=n[3];(r=t.call(this,1,5)||this).name=d,r.email=c,r.phone=o,r.twitter=s}return r}return e.__extends(i,t),Object.defineProperty(i.prototype,"email",{get:function(){return this.id.item("email").toString()},set:function(t){this.id.item("email",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"phone",{get:function(){return this.id.item("phone").toString()},set:function(t){this.id.item("phone",t)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"twitter",{get:function(){return this.id.item("twitter").toString()},set:function(t){this.id.item("twitter",t)},enumerable:!0,configurable:!0}),i.$t=n.markType(i,"Fdc3Contact",c.$),i}(c),v=function(t){function i(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this;switch(e=null==e?0:e){case 0:(r=t.call(this,1,6)||this)._contacts=null,r.contacts=new Array(0);break;case 1:var o=n[0];(r=t.call(this,1,6)||this)._contacts=null,r.contacts=new Array(0),r.contacts=o}return r}return e.__extends(i,t),Object.defineProperty(i.prototype,"contacts",{get:function(){return this._contacts},set:function(t){this._contacts=t},enumerable:!0,configurable:!0}),i.$t=n.markType(i,"Fdc3ContactList",c.$),i}(c),b=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(i,t),i.log=function(t){},i.toInstrument=function(t){var e=new l;if(null==t)return e;for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var r=n[i];if("id"===r)for(var o=Object.getOwnPropertyNames(t[r]),s=0;s<o.length;s++){var a=o[s];e.id.set(a,t[r][a])}else e.set(r,t[r])}return e},i.toInstrumentList=function(t){var e=new p;if(null==t)return e;for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var r=n[i];if(t[r]instanceof Array)for(var o=t[r],s=0;s<o.length;s++){var a=o[s];if("fdc3.instrument"===a.type){var u=this.toInstrument(a);e.instruments.push(u)}}else e.set(r,t[r])}return e},i.toPosition=function(t){var e=new h;if(null==t)return e;for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r];if("instrument"===o){var s=i.toInstrument(t[o]);e.instrument=s}else e.set(o,t[o])}return e},i.toPortfolio=function(t){var e=new f;if(null==t)return e;for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r];if(t[o]instanceof Array)for(var s=t[o],a=0;a<s.length;a++){var u=s[a];if("fdc3.position"===u.type){var d=i.toPosition(u);e.positions.push(d)}}else e.set(o,t[o])}return e},i.fromPortfolio=function(t){var e=null;if(null==t)return e;e={};for(var n=t.getKeys(),r=0;r<n.length;r++){var o=n[r];e[o]=t.item(o)}e.positions=[];for(r=0;r<t.positions.length;r++){var s=t.positions[r],a=i.fromPosition(s);e.positions.push(a)}return e},i.fromPosition=function(t){var e=null;if(null==t)return e;e={};for(var n=t.getKeys(),r=0;r<n.length;r++){var o=n[r];e[o]=t.item(o)}return e.instrument=i.fromInstrument(t.instrument),e},i.fromInstrumentList=function(t){var e=null;if(null==t)return e;e={};for(var n=t.getKeys(),r=0;r<n.length;r++){var o=n[r];e[o]=t.item(o)}e.instruments=[];for(r=0;r<t.instruments.length;r++){var s=t.instruments[r],a=i.fromInstrument(s);e.instruments.push(a)}return e},i.fromInstrument=function(t){var e=null;if(null==t)return e;e={};for(var n=t.getKeys(),i=0;i<n.length;i++){e[o=n[i]]=t.item(o)}e.id={};var r=t.id.getKeys();for(i=0;i<r.length;i++){var o=r[i];e.id[o]=t.id.item(o)}return e},i.$t=n.markType(i,"Fdc3Converter"),i}(n.Base),P=function(t){function i(){var e=t.call(this)||this;return e._tickerSymbols=null,e._tickerNames=null,e._json=null,e._context=null,e._intentType=null,e._contextType=null,e.tickerNames=new Array(0),e.tickerSymbols=new Array(0),e}return e.__extends(i,t),Object.defineProperty(i.prototype,"tickerSymbols",{get:function(){return this._tickerSymbols},set:function(t){this._tickerSymbols=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tickerNames",{get:function(){return this._tickerNames},set:function(t){this._tickerNames=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"json",{get:function(){return this._json},set:function(t){this._json=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"context",{get:function(){return this._context},set:function(t){this._context=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intentType",{get:function(){return this._intentType},set:function(t){this._intentType=t},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contextType",{get:function(){return this._contextType},set:function(t){this._contextType=t},enumerable:!0,configurable:!0}),i.$t=n.markType(i,"Fdc3Message"),i}(n.Base),O=function(t){function i(e){var n=t.call(this)||this;return n.messageReceived=null,n._openFin=null,n.a3=!1,n._openFin=e,n}return e.__extends(i,t),i.prototype.aq=function(e,n,i){t.prototype.aq.call(this,e,n,i)},i.prototype.ba=function(t){null!=t&&(null!=t.context&&n.stringIsNullOrEmpty(t.json)&&(t.json=t.context.toJson(),this.log("received '"+t.intentType+"' intent '"+t.contextType+"' context with JSON:\n"+t.json)),null!=this.messageReceived&&null!=t&&this.messageReceived(t))},i.prototype.a5=function(){var t=!0;return window.hasOwnProperty("fin")||(t=!1),t},i.prototype.subscribe=function(t,e){var i=this;(void 0===e&&(e=""),this.a5())&&(n.stringIsNullOrEmpty(t)&&(t="ViewChart"),this.log("Subscribing to '"+t+"' intent and '"+e+"' context"),(0,this._openFin.addIntentListener)(t,(function(n){return new Promise((function(r,o){try{if(i.log("Subscriber received context "),null==n.type||void 0===n.type)return void i.log("Subscriber received context with missing context.type");if(""!==e&&e!==n.type)return void i.log("Subscriber skipping not matching context.type");i.handleIntent(n,n.type,t),r()}catch(e){i.log("Subscriber detected error with "+t+" intent: \n"+e),o(e)}}))})))},i.prototype.handleIntent=function(t,i,r){var o,s,a,u,d=new P;if(this.log("HandleIntent '"+r+"' intent with '"+i+"' context"),d.intentType=r,d.contextType=i,this.log("HandleIntent"),"fdc3.instrument"===i){var c=b.toInstrument(t);d.context=c}else if("fdc3.instrumentList"===i){var y=b.toInstrumentList(t);d.context=y}else if("fdc3.position"===i){var m=b.toPosition(t);d.context=m}else if("fdc3.portfolio"===i){var g=b.toPortfolio(t);d.context=g}var v=new n.List$1(h.$,0),O=new n.List$1(l.$,0),_=new n.List$1(n.String_$type,0),w=new n.List$1(n.String_$type,0);if("fdc3.instrument"==i){this.v.clear(),n.arrayClear(this.stockPrices);var C=n.typeCast(l.$,d.context);O.add(C);var I=C.ticker;_.contains(I)||_.add(I);var $=C.name;w.contains($)||w.add($)}else if("fdc3.instrumentList"==i){this.v.clear(),n.arrayClear(this.stockPrices);var j=n.typeCast(p.$,d.context);O.o(j.instruments);for(var x=j.instruments,k=0;k<x.length;k++){var N=x[k],S=N.ticker;_.contains(S)||_.add(S);var F=N.name;w.contains(F)||w.add(F)}}else if("fdc3.position"==i){var E=n.typeCast(h.$,d.context);v.add(E);var L=E.instrument.ticker;_.contains(L)||_.add(E.instrument.ticker);var z=E.instrument.name;w.contains(z)||w.add(z)}else if("fdc3.portfolio"==i){this.x.clear(),n.arrayClear(this.stockPositions);var T=n.typeCast(f.$,d.context);v.o(T.positions);for(var A=T.positions,K=0;K<A.length;K++){var V=A[K],U=V.instrument.ticker;_.contains(U)||_.add(V.instrument.ticker);var D=V.instrument.name;w.contains(D)||w.add(D)}}d.tickerSymbols=this.f(n.String_$type,_),d.tickerNames=this.f(n.String_$type,w),this.log("HandleIntent tickerSymbols "+d.tickerSymbols),this.log("HandleIntent instrumentList "+O.count),this.log("HandleIntent positionList "+v.count);try{for(var B=e.__values(n.fromEnum(O)),R=B.next();!R.done;R=B.next()){var H=R.value.ticker;if(!n.stringIsNullOrEmpty(H)){var J=this.q(H);this.ao(H,J)}}}catch(t){o={error:t}}finally{try{R&&!R.done&&(s=B.return)&&s.call(B)}finally{if(o)throw o.error}}try{for(var q=e.__values(n.fromEnum(v)),M=q.next();!M.done;M=q.next()){var Q=M.value,G=Q.instrument.ticker;if(!n.stringIsNullOrEmpty(G)){var W=this.p(G);Q.cost>0&&(W.costPerShare=Q.cost),Q.shares>0&&(W.shares=Q.shares),Q.price>0&&(W.marketPrice=Q.price),this.an(G,W)}}}catch(t){a={error:t}}finally{try{M&&!M.done&&(u=q.return)&&u.call(q)}finally{if(a)throw a.error}}this.ba(d)},i.prototype.sendInstrument=function(t,e,n){if(void 0===n&&(n=""),null!=e){var i=b.fromInstrument(e);this.bb(t,i,n)}},i.prototype.sendInstrumentList=function(t,e,n){if(void 0===n&&(n=""),null!=e){var i=b.fromInstrumentList(e);this.bb(t,i,n)}},i.prototype.sendPosition=function(t,e,n){if(void 0===n&&(n=""),null!=e){var i=b.fromPosition(e);this.bb(t,i,n)}},i.prototype.sendPortfolio=function(t,e,n){if(void 0===n&&(n=""),null!=e){var i=b.fromPortfolio(e);this.bb(t,i,n)}},i.prototype.bb=function(t,e,n){if(void 0===n&&(n=""),this.a5()){var i=this._openFin.raiseIntent;this.log("Sending '"+t+"' intent to '"+n+"' target"),null==n||""===n?i(t,e):i(t,e,n)}},Object.defineProperty(i.prototype,"a4",{get:function(){return this.a3},set:function(t){this.a3=t},enumerable:!0,configurable:!0}),i.prototype.a7=function(t){this.a4=!0},i.prototype.dispose=function(){this.a7(!0)},i.$t=n.markType(i,"Fdc3DataAdapter",n.FinancialDataAdapter.$,[n.IDisposable_$type]),i}(n.FinancialDataAdapter),_=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(i,t),i.d=function(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",n="",r=0;r<t;r++){var o=i.c.next1(e.length);n+=e.charAt(o)}return n},i.b=function(t,e){return i.c.next2(t,e)},i.a=function(t){var e=Math.pow(10,t-1),r=9*e;return i.c.next2(n.truncate(e),n.truncate(r))},i.$t=n.markType(i,"Randomizer"),i.c=new n.Random(0),i}(n.Base);t.Fdc3Contact=g,t.Fdc3ContactList=v,t.Fdc3Context=c,t.Fdc3ContextType=s,t.Fdc3ContextType_$type=a,t.Fdc3Converter=b,t.Fdc3DataAdapter=O,t.Fdc3Dictionary=o,t.Fdc3Instrument=l,t.Fdc3InstrumentList=p,t.Fdc3IntentType=i,t.Fdc3IntentType_$type=r,t.Fdc3Message=P,t.Fdc3Organization=y,t.Fdc3OrganizationList=m,t.Fdc3Portfolio=f,t.Fdc3Position=h,t.Fdc3Serializer=d,t.Fdc3Util=u,t.Randomizer=_,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
7
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("tslib"),require("igniteui-webcomponents-core")):"function"==typeof define&&define.amd?define(["exports","tslib","igniteui-webcomponents-core"],e):e((t=t||self)["igniteui-webcomponents-fdc3"]={},t.tslib,t.igniteuiWebcomponentsCore)}(this,(function(t,e,n){"use strict";var i=function(t){return t[t.None=0]="None",t[t.All=1]="All",t[t.Unknown=2]="Unknown",t[t.ViewChart=3]="ViewChart",t[t.ViewInstrument=4]="ViewInstrument",t[t.StartCall=5]="StartCall",t[t.StartChat=6]="StartChat",t[t.ViewAnalysis=7]="ViewAnalysis",t[t.ViewContact=8]="ViewContact",t[t.ViewNews=9]="ViewNews",t[t.ViewQuote=10]="ViewQuote",t}({}),r=n.markEnum("Fdc3IntentType","None,0|All,1|Unknown,2|ViewChart,3|ViewInstrument,4|StartCall,5|StartChat,6|ViewAnalysis,7|ViewContact,8|ViewNews,9|ViewQuote,10"),o=function(t){function i(){var e=t.call(this)||this;return e.d=null,e.d=new n.Dictionary$2(n.String_$type,n.Base.$,0),e}return e.__extends(i,t),i.prototype.getKeys=function(){var t,i,r=new n.List$1(n.String_$type,0);try{for(var o=e.__values(n.fromEnum(this.d)),s=o.next();!s.done;s=o.next()){var a=s.value;r.add(a.key)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return r.toArray()},i.prototype.getValues=function(){var t,i,r=new n.List$1(n.Base.$,0);try{for(var o=e.__values(n.fromEnum(this.d)),s=o.next();!s.done;s=o.next()){var a=s.value;r.add1(a.value)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(t)throw t.error}}return r.toArray()},i.prototype.item=function(t,e){return 2===arguments.length?(this.set(t,e),e):this.get(t)},i.prototype.get=function(t){return this.d.containsKey(t)||this.set(t,""),null==this.d.item(t)?"":this.d.item(t)},i.prototype.h=function(t){return this.get(t).toString()},i.prototype.e=function(t){return this.d.containsKey(t)?null==this.d.item(t)?0:parseFloat(this.d.item(t).toString()):(this.set(t,0),0)},i.prototype.set=function(t,e){this.d.containsKey(t)?this.d.item(t,e):this.d.addItem(t,e)},i.prototype.remove=function(t){this.d.containsKey(t)&&this.d.removeItem(t)},i.prototype.contains=function(t){return this.d.containsKey(t)},i.$t=n.markType(i,"Fdc3Dictionary"),i}(n.Base),s=function(t){return t[t.Unknown=0]="Unknown",t[t.Instrument=1]="Instrument",t[t.InstrumentList=2]="InstrumentList",t[t.Position=3]="Position",t[t.Portfolio=4]="Portfolio",t[t.Contact=5]="Contact",t[t.ContactList=6]="ContactList",t[t.Organization=7]="Organization",t[t.OrganizationList=8]="OrganizationList",t}({}),a=n.markEnum("Fdc3ContextType","Unknown,0|Instrument,1|InstrumentList,2|Position,3|Portfolio,4|Contact,5|ContactList,6|Organization,7|OrganizationList,8"),u=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(i,t),i.staticInit=function(){i.c=new n.Dictionary$2(n.String_$type,a,0),i.f(0),i.f(1),i.f(2),i.f(3),i.f(4),i.f(7),i.f(8),i.f(5),i.f(6),i.d=new n.Dictionary$2(n.String_$type,r,0),i.g(2),i.g(3),i.g(4),i.g(7),i.g(5),i.g(6),i.g(8),i.g(10),i.g(9)},i.getString=function(t){var e=n.EnumUtil.getName(a,t);return"fdc3."+e.substr(0,1).toLowerCase()+e.substr(1)},i.a=function(t){return i.c.containsKey(t)?i.c.item(t):0},i.b=function(t){return i.d.containsKey(t)?i.d.item(t):2},i.f=function(t){var e=i.getString(t);i.c.containsKey(e)||i.c.addItem(e,t)},i.g=function(t){var e=n.EnumUtil.getName(r,t);i.d.containsKey(e)||i.d.addItem(e,t)},i.$t=n.markType(i,"Fdc3Util"),i.c=null,i.d=null,i}(n.Base);n.callStaticConstructors();var d=function(t){function i(){var e=t.call(this)||this;return e._sb=null,e.m=0,e.l=!1,e._sb=new n.StringBuilder(0),e}return e.__extends(i,t),i.prototype.toString=function(){return this._sb.toString()},i.prototype.toJson=function(t){return this._sb.v(),null!==n.typeCast(l.$,t)?this.add4(n.typeCast(l.$,t)):null!==n.typeCast(p.$,t)?this.add5(n.typeCast(p.$,t)):null!==n.typeCast(h.$,t)?this.add9(n.typeCast(h.$,t)):null!==n.typeCast(f.$,t)?this.add8(n.typeCast(f.$,t)):null!==n.typeCast(g.$,t)?this.add1(n.typeCast(g.$,t)):null!==n.typeCast(v.$,t)?this.add2(n.typeCast(v.$,t)):null!==n.typeCast(y.$,t)?this.add6(n.typeCast(y.$,t)):null!==n.typeCast(m.$,t)?this.add7(n.typeCast(m.$,t)):this.add3(n.typeCast(c.$,t)),this.toString()},i.prototype.add4=function(t,e){void 0===e&&(e=""),this.z("serializing Fdc3Instrument"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var i=t.getKeys(),o=0;o<i.length;o++){var s=i[o];"type"!=s&&("name"!=s&&"target"!=s&&"intent"!=s&&"ticker"!=s&&"id"!=s&&this.addProp1(s,t.item(s)))}if(null==t.id)this.addProp1("id","null");else{this.addProp("id"),this.addObjectOpen(),this.addProp1("ticker",t.ticker);for(var a=t.id.getKeys(),u=0;u<a.length;u++){var d=a[u];"ticker"!=d&&this.addProp1(d,t.id.item(d))}this.addObjectClose()}this.addObjectClose(e)},i.prototype.add5=function(t){this.z("serializing Fdc3InstrumentList"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var e=t.getKeys(),i=0;i<e.length;i++){var o=e[i];"type"!=o&&("name"!=o&&"target"!=o&&"intent"!=o&&"id"!=o&&"instruments"!=o&&this.addProp1(o,t.item(o)))}if(null==t.instruments)this.addProp1("instruments","null");else{this.addProp("instruments"),this.addArrayOpen();for(var s=t.instruments,a=0;a<s.length;a++){var u=s[a];this.add4(u,",")}this.addArrayClose()}this.addObjectClose()},i.prototype.add8=function(t){this.z("serializing Fdc3Portfolio"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var e=t.getKeys(),i=0;i<e.length;i++){var o=e[i];"type"!=o&&("name"!=o&&"target"!=o&&"intent"!=o&&"id"!=o&&"positions"!=o&&this.addProp1(o,t.item(o)))}if(null==t.positions)this.addProp1("positions","null");else{this.addProp("positions"),this.addArrayOpen();for(var s=t.positions,a=0;a<s.length;a++){var u=s[a];this.add9(u,",")}this.addArrayClose()}this.addObjectClose()},i.prototype.add9=function(t,e){void 0===e&&(e=""),this.z("serializing Fdc3Position"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var i=t.getKeys(),o=0;o<i.length;o++){var s=i[o];"type"!=s&&("name"!=s&&"target"!=s&&"intent"!=s&&"id"!=s&&"instrument"!=s&&this.addProp1(s,t.item(s)))}null==t.instrument?this.addProp1("instrument","null"):(this.addProp("instrument"),this.add4(t.instrument,",")),this.addObjectClose(e)},i.prototype.add1=function(t,e){void 0===e&&(e=""),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var i=t.getKeys(),o=0;o<i.length;o++){var s=i[o];"type"!=s&&("name"!=s&&"target"!=s&&"intent"!=s&&"email"!=s&&"phone"!=s&&"id"!=s&&this.addProp1(s,t.item(s)))}if(null==t.id)this.addProp1("id","null");else{this.addProp("id"),this.addObjectOpen();for(var a=t.id.getKeys(),u=0;u<a.length;u++){var d=a[u];this.addProp1(d,t.id.item(d))}this.addObjectClose()}this.addObjectClose(e)},i.prototype.z=function(t){},i.prototype.add2=function(t){this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var e=t.getKeys(),i=0;i<e.length;i++){var o=e[i];"type"!=o&&("name"!=o&&"target"!=o&&"intent"!=o&&"id"!=o&&"contacts"!=o&&this.addProp1(o,t.item(o)))}if(null==t.contacts)this.addProp1("contacts","null");else{this.addProp("contacts"),this.addArrayOpen();for(var s=t.contacts,a=0;a<s.length;a++){var u=s[a];this.add1(u,",")}this.addArrayClose()}this.addObjectClose()},i.prototype.add6=function(t,e){void 0===e&&(e=""),this.z("serializing Fdc3Organization"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var i=t.getKeys(),o=0;o<i.length;o++){var s=i[o];"type"!=s&&("name"!=s&&"target"!=s&&"intent"!=s&&"email"!=s&&"phone"!=s&&"id"!=s&&this.addProp1(s,t.item(s)))}if(null==t.id)this.addProp1("id","null");else{this.addProp("id"),this.addObjectOpen();for(var a=t.id.getKeys(),u=0;u<a.length;u++){var d=a[u];this.addProp1(d,t.id.item(d))}this.addObjectClose()}this.addObjectClose(e)},i.prototype.add7=function(t){this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var e=t.getKeys(),i=0;i<e.length;i++){var o=e[i];"type"!=o&&("name"!=o&&"target"!=o&&"intent"!=o&&"id"!=o&&"organizations"!=o&&this.addProp1(o,t.item(o)))}if(null==t.organizations)this.addProp1("organizations","null");else{this.addProp("organizations"),this.addArrayOpen();for(var s=t.organizations,a=0;a<s.length;a++){var u=s[a];this.add4(u,",")}this.addArrayClose()}this.addObjectClose()},i.prototype.add3=function(t,e){void 0===e&&(e=""),this.z("serializing Fdc3Context"),this.addObjectOpen(),this.addProp1("type",t.type),n.stringIsNullOrEmpty(t.target)||this.addProp1("target",t.target),2!=t.intent&&this.addProp1("intent",n.EnumUtil.getName(r,t.intent)),n.stringIsNullOrEmpty(t.name)||this.addProp1("name",t.name);for(var i=t.getKeys(),o=0;o<i.length;o++){var s=i[o];"type"!=s&&("name"!=s&&"target"!=s&&"intent"!=s&&"id"!=s&&this.addProp1(s,t.item(s)))}if(null==t.id)this.addProp1("id","null");else{this.addProp("id"),this.addObjectOpen();for(var a=t.id.getKeys(),u=0;u<a.length;u++){var d=a[u];this.addProp1(d,t.id.item(d))}this.addObjectClose()}this.addObjectClose(e)},i.prototype.addArrayOpen=function(){return this.addLine("["),this.tabIncrease(),this},i.prototype.addArrayClose=function(t){return void 0===t&&(t=""),this.tabDecrease(),this.addLine("]"+t),this},i.prototype.addObjectOpen=function(){return this.addLine("{"),this.tabIncrease(),this},i.prototype.addObjectClose=function(t){return void 0===t&&(t=""),this.tabDecrease(),this.addLine("}"+t),this},i.prototype.add=function(t){return this.i(),this._sb.l(t),this},i.prototype.addLine=function(t){return this.i(),this._sb.u(t),this.l=!0,this},i.prototype.addProp=function(t){return this.i(),this._sb.u('"'+t+'": '),this.l=!0,this},i.prototype.addProp1=function(t,e,i){void 0===i&&(i=""),this.i(),n.stringIsNullOrEmpty(i)||(i=" // "+i);var r=null==e?"null":e;if("string"==typeof e)this._sb.u('"'+t+'": "'+r+'",'+i);else if(null!==n.typeCast(n.Boolean_$type,e)){var o=r.toString().toLowerCase();this._sb.u('"'+t+'": '+o+","+i)}else this._sb.u('"'+t+'": '+r+","+i);return this.l=!0,this},i.prototype.i=function(){if(this.l){for(var t=0;t<this.m;t++)this._sb.l(" ");this.l=!1}return this},i.prototype.tabIncrease=function(){return this.m++,this},i.prototype.tabDecrease=function(){return this.m--,this},i.$t=n.markType(i,"Fdc3Serializer"),i}(n.Base),c=function(t){function i(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=t.call(this)||this;switch(r._id=null,e=null==e?0:e){case 0:var s=(a=[0])[0];r.type=u.getString(s),r.id=new o;break;case 1:var a=n[0];r.type=u.getString(a),r.id=new o}return r}return e.__extends(i,t),Object.defineProperty(i.prototype,"intent",{get:function(){return u.b(this.item("intent").toString())},set:function(t){this.item("intent",n.enumGetBox(r,t))},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"type",{get:function(){return this.item("type").toString()},set:function(t){this.item("type",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"target",{get:function(){return this.h("target")},set:function(t){this.item("target",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.h("name")},set:function(t){this.item("name",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t},enumerable:!1,configurable:!0}),i.prototype.toJson=function(){return(new d).toJson(this)},i.$t=n.markType(i,"Fdc3Context",o.$),i}(o),l=function(t){function i(){return t.call(this,1,1)||this}return e.__extends(i,t),Object.defineProperty(i.prototype,"ticker",{get:function(){return this.id.item("ticker").toString()},set:function(t){this.id.item("ticker",t)},enumerable:!1,configurable:!0}),i.$t=n.markType(i,"Fdc3Instrument",c.$),i}(c),p=function(t){function i(){var e=t.call(this,0)||this;return e._instruments=null,e.type=u.getString(2),e.instruments=new Array(0),e}return e.__extends(i,t),Object.defineProperty(i.prototype,"instruments",{get:function(){return this._instruments},set:function(t){this._instruments=t},enumerable:!1,configurable:!0}),i.$t=n.markType(i,"Fdc3InstrumentList",c.$),i}(c),h=function(t){function i(){var e=t.call(this,1,3)||this;return e.instrument=new l,e}return e.__extends(i,t),Object.defineProperty(i.prototype,"instrument",{get:function(){return n.typeCast(l.$,this.item("instrument"))},set:function(t){this.item("instrument",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"shares",{get:function(){return this.e("shares")},set:function(t){this.item("shares",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"cost",{get:function(){return this.e("cost")},set:function(t){this.item("cost",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"price",{get:function(){return this.e("price")},set:function(t){this.item("price",t)},enumerable:!1,configurable:!0}),i.$t=n.markType(i,"Fdc3Position",c.$),i}(c),f=function(t){function i(){var e=t.call(this,1,4)||this;return e._positions=null,e.positions=new Array(0),e}return e.__extends(i,t),Object.defineProperty(i.prototype,"positions",{get:function(){return this._positions},set:function(t){this._positions=t},enumerable:!1,configurable:!0}),i.$t=n.markType(i,"Fdc3Portfolio",c.$),i}(c),y=function(t){function i(){return t.call(this,1,7)||this}return e.__extends(i,t),i.$t=n.markType(i,"Fdc3Organization",c.$),i}(c),m=function(t){function i(){var e=t.call(this,1,8)||this;return e._organizations=null,e}return e.__extends(i,t),Object.defineProperty(i.prototype,"organizations",{get:function(){return this._organizations},set:function(t){this._organizations=t},enumerable:!1,configurable:!0}),i.$t=n.markType(i,"Fdc3OrganizationList",c.$),i}(c),g=function(t){function i(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this;switch(e=null==e?0:e){case 0:var o=(d=["","","",""])[0],s=d[1],a=d[2],u=d[3];(r=t.call(this,1,5)||this).name=o,r.email=s,r.phone=a,r.twitter=u;break;case 1:var d=n[0],c=n[1];o=n[2],s=n[3];(r=t.call(this,1,5)||this).name=d,r.email=c,r.phone=o,r.twitter=s}return r}return e.__extends(i,t),Object.defineProperty(i.prototype,"email",{get:function(){return this.id.item("email").toString()},set:function(t){this.id.item("email",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"phone",{get:function(){return this.id.item("phone").toString()},set:function(t){this.id.item("phone",t)},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"twitter",{get:function(){return this.id.item("twitter").toString()},set:function(t){this.id.item("twitter",t)},enumerable:!1,configurable:!0}),i.$t=n.markType(i,"Fdc3Contact",c.$),i}(c),v=function(t){function i(e){for(var n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];var r=this;switch(e=null==e?0:e){case 0:(r=t.call(this,1,6)||this)._contacts=null,r.contacts=new Array(0);break;case 1:var o=n[0];(r=t.call(this,1,6)||this)._contacts=null,r.contacts=new Array(0),r.contacts=o}return r}return e.__extends(i,t),Object.defineProperty(i.prototype,"contacts",{get:function(){return this._contacts},set:function(t){this._contacts=t},enumerable:!1,configurable:!0}),i.$t=n.markType(i,"Fdc3ContactList",c.$),i}(c),b=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(i,t),i.log=function(t){},i.toInstrument=function(t){var e=new l;if(null==t)return e;for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var r=n[i];if("id"===r)for(var o=Object.getOwnPropertyNames(t[r]),s=0;s<o.length;s++){var a=o[s];e.id.set(a,t[r][a])}else e.set(r,t[r])}return e},i.toInstrumentList=function(t){var e=new p;if(null==t)return e;for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var r=n[i];if(t[r]instanceof Array)for(var o=t[r],s=0;s<o.length;s++){var a=o[s];if("fdc3.instrument"===a.type){var u=this.toInstrument(a);e.instruments.push(u)}}else e.set(r,t[r])}return e},i.toPosition=function(t){var e=new h;if(null==t)return e;for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r];if("instrument"===o){var s=i.toInstrument(t[o]);e.instrument=s}else e.set(o,t[o])}return e},i.toPortfolio=function(t){var e=new f;if(null==t)return e;for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var o=n[r];if(t[o]instanceof Array)for(var s=t[o],a=0;a<s.length;a++){var u=s[a];if("fdc3.position"===u.type){var d=i.toPosition(u);e.positions.push(d)}}else e.set(o,t[o])}return e},i.fromPortfolio=function(t){var e=null;if(null==t)return e;e={};for(var n=t.getKeys(),r=0;r<n.length;r++){var o=n[r];e[o]=t.item(o)}e.positions=[];for(r=0;r<t.positions.length;r++){var s=t.positions[r],a=i.fromPosition(s);e.positions.push(a)}return e},i.fromPosition=function(t){var e=null;if(null==t)return e;e={};for(var n=t.getKeys(),r=0;r<n.length;r++){var o=n[r];e[o]=t.item(o)}return e.instrument=i.fromInstrument(t.instrument),e},i.fromInstrumentList=function(t){var e=null;if(null==t)return e;e={};for(var n=t.getKeys(),r=0;r<n.length;r++){var o=n[r];e[o]=t.item(o)}e.instruments=[];for(r=0;r<t.instruments.length;r++){var s=t.instruments[r],a=i.fromInstrument(s);e.instruments.push(a)}return e},i.fromInstrument=function(t){var e=null;if(null==t)return e;e={};for(var n=t.getKeys(),i=0;i<n.length;i++){e[o=n[i]]=t.item(o)}e.id={};var r=t.id.getKeys();for(i=0;i<r.length;i++){var o=r[i];e.id[o]=t.id.item(o)}return e},i.$t=n.markType(i,"Fdc3Converter"),i}(n.Base),P=function(t){function i(){var e=t.call(this)||this;return e._tickerSymbols=null,e._tickerNames=null,e._json=null,e._context=null,e._intentType=null,e._contextType=null,e.tickerNames=new Array(0),e.tickerSymbols=new Array(0),e}return e.__extends(i,t),Object.defineProperty(i.prototype,"tickerSymbols",{get:function(){return this._tickerSymbols},set:function(t){this._tickerSymbols=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"tickerNames",{get:function(){return this._tickerNames},set:function(t){this._tickerNames=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"json",{get:function(){return this._json},set:function(t){this._json=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"context",{get:function(){return this._context},set:function(t){this._context=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"intentType",{get:function(){return this._intentType},set:function(t){this._intentType=t},enumerable:!1,configurable:!0}),Object.defineProperty(i.prototype,"contextType",{get:function(){return this._contextType},set:function(t){this._contextType=t},enumerable:!1,configurable:!0}),i.$t=n.markType(i,"Fdc3Message"),i}(n.Base),O=function(t){function i(e){var n=t.call(this)||this;return n.messageReceived=null,n._openFin=null,n.a3=!1,n._openFin=e,n}return e.__extends(i,t),i.prototype.aq=function(e,n,i){t.prototype.aq.call(this,e,n,i)},i.prototype.ba=function(t){null!=t&&(null!=t.context&&n.stringIsNullOrEmpty(t.json)&&(t.json=t.context.toJson(),this.log("received '"+t.intentType+"' intent '"+t.contextType+"' context with JSON:\n"+t.json)),null!=this.messageReceived&&null!=t&&this.messageReceived(t))},i.prototype.a5=function(){var t=!0;return window.hasOwnProperty("fin")||(t=!1),t},i.prototype.subscribe=function(t,e){var i=this;(void 0===e&&(e=""),this.a5())&&(n.stringIsNullOrEmpty(t)&&(t="ViewChart"),this.log("Subscribing to '"+t+"' intent and '"+e+"' context"),(0,this._openFin.addIntentListener)(t,(function(n){return new Promise((function(r,o){try{if(i.log("Subscriber received context "),null==n.type||void 0===n.type)return void i.log("Subscriber received context with missing context.type");if(""!==e&&e!==n.type)return void i.log("Subscriber skipping not matching context.type");i.handleIntent(n,n.type,t),r()}catch(e){i.log("Subscriber detected error with "+t+" intent: \n"+e),o(e)}}))})))},i.prototype.handleIntent=function(t,i,r){var o,s,a,u,d=new P;if(this.log("HandleIntent '"+r+"' intent with '"+i+"' context"),d.intentType=r,d.contextType=i,this.log("HandleIntent"),"fdc3.instrument"===i){var c=b.toInstrument(t);d.context=c}else if("fdc3.instrumentList"===i){var y=b.toInstrumentList(t);d.context=y}else if("fdc3.position"===i){var m=b.toPosition(t);d.context=m}else if("fdc3.portfolio"===i){var g=b.toPortfolio(t);d.context=g}var v=new n.List$1(h.$,0),O=new n.List$1(l.$,0),_=new n.List$1(n.String_$type,0),w=new n.List$1(n.String_$type,0);if("fdc3.instrument"==i){this.v.clear(),n.arrayClear(this.stockPrices);var C=n.typeCast(l.$,d.context);O.add(C);var I=C.ticker;_.contains(I)||_.add(I);var $=C.name;w.contains($)||w.add($)}else if("fdc3.instrumentList"==i){this.v.clear(),n.arrayClear(this.stockPrices);var j=n.typeCast(p.$,d.context);O.o(j.instruments);for(var x=j.instruments,k=0;k<x.length;k++){var N=x[k],S=N.ticker;_.contains(S)||_.add(S);var F=N.name;w.contains(F)||w.add(F)}}else if("fdc3.position"==i){var E=n.typeCast(h.$,d.context);v.add(E);var L=E.instrument.ticker;_.contains(L)||_.add(E.instrument.ticker);var z=E.instrument.name;w.contains(z)||w.add(z)}else if("fdc3.portfolio"==i){this.x.clear(),n.arrayClear(this.stockPositions);var T=n.typeCast(f.$,d.context);v.o(T.positions);for(var A=T.positions,K=0;K<A.length;K++){var V=A[K],U=V.instrument.ticker;_.contains(U)||_.add(V.instrument.ticker);var D=V.instrument.name;w.contains(D)||w.add(D)}}d.tickerSymbols=this.f(n.String_$type,_),d.tickerNames=this.f(n.String_$type,w),this.log("HandleIntent tickerSymbols "+d.tickerSymbols),this.log("HandleIntent instrumentList "+O.count),this.log("HandleIntent positionList "+v.count);try{for(var B=e.__values(n.fromEnum(O)),R=B.next();!R.done;R=B.next()){var H=R.value.ticker;if(!n.stringIsNullOrEmpty(H)){var J=this.q(H);this.ao(H,J)}}}catch(t){o={error:t}}finally{try{R&&!R.done&&(s=B.return)&&s.call(B)}finally{if(o)throw o.error}}try{for(var q=e.__values(n.fromEnum(v)),M=q.next();!M.done;M=q.next()){var Q=M.value,G=Q.instrument.ticker;if(!n.stringIsNullOrEmpty(G)){var W=this.p(G);Q.cost>0&&(W.costPerShare=Q.cost),Q.shares>0&&(W.shares=Q.shares),Q.price>0&&(W.marketPrice=Q.price),this.an(G,W)}}}catch(t){a={error:t}}finally{try{M&&!M.done&&(u=q.return)&&u.call(q)}finally{if(a)throw a.error}}this.ba(d)},i.prototype.sendInstrument=function(t,e,n){if(void 0===n&&(n=""),null!=e){var i=b.fromInstrument(e);this.bb(t,i,n)}},i.prototype.sendInstrumentList=function(t,e,n){if(void 0===n&&(n=""),null!=e){var i=b.fromInstrumentList(e);this.bb(t,i,n)}},i.prototype.sendPosition=function(t,e,n){if(void 0===n&&(n=""),null!=e){var i=b.fromPosition(e);this.bb(t,i,n)}},i.prototype.sendPortfolio=function(t,e,n){if(void 0===n&&(n=""),null!=e){var i=b.fromPortfolio(e);this.bb(t,i,n)}},i.prototype.bb=function(t,e,n){if(void 0===n&&(n=""),this.a5()){var i=this._openFin.raiseIntent;this.log("Sending '"+t+"' intent to '"+n+"' target"),null==n||""===n?i(t,e):i(t,e,n)}},Object.defineProperty(i.prototype,"a4",{get:function(){return this.a3},set:function(t){this.a3=t},enumerable:!1,configurable:!0}),i.prototype.a7=function(t){this.a4=!0},i.prototype.dispose=function(){this.a7(!0)},i.$t=n.markType(i,"Fdc3DataAdapter",n.FinancialDataAdapter.$,[n.IDisposable_$type]),i}(n.FinancialDataAdapter),_=function(t){function i(){return null!==t&&t.apply(this,arguments)||this}return e.__extends(i,t),i.d=function(t){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",n="",r=0;r<t;r++){var o=i.c.next1(e.length);n+=e.charAt(o)}return n},i.b=function(t,e){return i.c.next2(t,e)},i.a=function(t){var e=Math.pow(10,t-1),r=9*e;return i.c.next2(n.truncate(e),n.truncate(r))},i.$t=n.markType(i,"Randomizer"),i.c=new n.Random(0),i}(n.Base);t.Fdc3Contact=g,t.Fdc3ContactList=v,t.Fdc3Context=c,t.Fdc3ContextType=s,t.Fdc3ContextType_$type=a,t.Fdc3Converter=b,t.Fdc3DataAdapter=O,t.Fdc3Dictionary=o,t.Fdc3Instrument=l,t.Fdc3InstrumentList=p,t.Fdc3IntentType=i,t.Fdc3IntentType_$type=r,t.Fdc3Message=P,t.Fdc3Organization=y,t.Fdc3OrganizationList=m,t.Fdc3Portfolio=f,t.Fdc3Position=h,t.Fdc3Serializer=d,t.Fdc3Util=u,t.Randomizer=_,Object.defineProperty(t,"__esModule",{value:!0})}));
|
|
@@ -20,13 +20,6 @@ import { arrayClear } from "igniteui-webcomponents-core";
|
|
|
20
20
|
*/
|
|
21
21
|
export let Fdc3DataAdapter = /*@__PURE__*/ (() => {
|
|
22
22
|
class Fdc3DataAdapter extends FinancialDataAdapter {
|
|
23
|
-
constructor(a) {
|
|
24
|
-
super();
|
|
25
|
-
this.messageReceived = null;
|
|
26
|
-
this._openFin = null;
|
|
27
|
-
this.a3 = false;
|
|
28
|
-
this._openFin = a;
|
|
29
|
-
}
|
|
30
23
|
aq(a, b, c) {
|
|
31
24
|
super.aq(a, b, c);
|
|
32
25
|
}
|
|
@@ -254,6 +247,13 @@ export let Fdc3DataAdapter = /*@__PURE__*/ (() => {
|
|
|
254
247
|
}
|
|
255
248
|
;
|
|
256
249
|
}
|
|
250
|
+
constructor(a) {
|
|
251
|
+
super();
|
|
252
|
+
this.messageReceived = null;
|
|
253
|
+
this._openFin = null;
|
|
254
|
+
this.a3 = false;
|
|
255
|
+
this._openFin = a;
|
|
256
|
+
}
|
|
257
257
|
get a4() {
|
|
258
258
|
return this.a3;
|
|
259
259
|
}
|
|
@@ -4,7 +4,7 @@ https://www.infragistics.com/legal/license/igultimate-la
|
|
|
4
4
|
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
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
6
|
*/
|
|
7
|
-
import
|
|
7
|
+
import { __extends } from "tslib";
|
|
8
8
|
import { Base, markType } from "igniteui-webcomponents-core";
|
|
9
9
|
import { Fdc3Instrument } from "./Fdc3Instrument";
|
|
10
10
|
import { Fdc3InstrumentList } from "./Fdc3InstrumentList";
|
|
@@ -14,7 +14,7 @@ import { Fdc3Portfolio } from "./Fdc3Portfolio";
|
|
|
14
14
|
* @hidden
|
|
15
15
|
*/
|
|
16
16
|
var Fdc3Converter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
17
|
-
|
|
17
|
+
__extends(Fdc3Converter, _super);
|
|
18
18
|
function Fdc3Converter() {
|
|
19
19
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
20
20
|
}
|
|
@@ -4,7 +4,7 @@ https://www.infragistics.com/legal/license/igultimate-la
|
|
|
4
4
|
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
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
6
|
*/
|
|
7
|
-
import
|
|
7
|
+
import { __extends, __values } from "tslib";
|
|
8
8
|
import { FinancialDataAdapter } from "igniteui-webcomponents-core";
|
|
9
9
|
import { IDisposable_$type, String_$type, typeCast, fromEnum, markType } from "igniteui-webcomponents-core";
|
|
10
10
|
import { Fdc3Message } from "./Fdc3Message";
|
|
@@ -20,7 +20,7 @@ import { arrayClear } from "igniteui-webcomponents-core";
|
|
|
20
20
|
* @hidden
|
|
21
21
|
*/
|
|
22
22
|
var Fdc3DataAdapter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
23
|
-
|
|
23
|
+
__extends(Fdc3DataAdapter, _super);
|
|
24
24
|
function Fdc3DataAdapter(a) {
|
|
25
25
|
var _this = _super.call(this) || this;
|
|
26
26
|
_this.messageReceived = null;
|
|
@@ -192,7 +192,7 @@ var Fdc3DataAdapter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
192
192
|
this.log("HandleIntent instrumentList " + b.count);
|
|
193
193
|
this.log("HandleIntent positionList " + a.count);
|
|
194
194
|
try {
|
|
195
|
-
for (var _c =
|
|
195
|
+
for (var _c = __values(fromEnum(b)), _d = _c.next(); !_d.done; _d = _c.next()) {
|
|
196
196
|
var w = _d.value;
|
|
197
197
|
var x = w.ticker;
|
|
198
198
|
if (stringIsNullOrEmpty(x)) {
|
|
@@ -216,7 +216,7 @@ var Fdc3DataAdapter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
216
216
|
}
|
|
217
217
|
}
|
|
218
218
|
try {
|
|
219
|
-
for (var _e =
|
|
219
|
+
for (var _e = __values(fromEnum(a)), _f = _e.next(); !_f.done; _f = _e.next()) {
|
|
220
220
|
var z = _f.value;
|
|
221
221
|
var aa = z.instrument.ticker;
|
|
222
222
|
if (stringIsNullOrEmpty(aa)) {
|
|
@@ -315,7 +315,7 @@ var Fdc3DataAdapter = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
315
315
|
set: function (a) {
|
|
316
316
|
this.a3 = a;
|
|
317
317
|
},
|
|
318
|
-
enumerable:
|
|
318
|
+
enumerable: false,
|
|
319
319
|
configurable: true
|
|
320
320
|
});
|
|
321
321
|
Fdc3DataAdapter.prototype.a7 = function (a) {
|
|
@@ -4,7 +4,7 @@ https://www.infragistics.com/legal/license/igultimate-la
|
|
|
4
4
|
https://www.infragistics.com/legal/license/igultimate-eula
|
|
5
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
6
|
*/
|
|
7
|
-
import
|
|
7
|
+
import { __extends, __values } from "tslib";
|
|
8
8
|
import { Base, String_$type, fromEnum, markType } from "igniteui-webcomponents-core";
|
|
9
9
|
import { Dictionary$2 } from "igniteui-webcomponents-core";
|
|
10
10
|
import { List$1 } from "igniteui-webcomponents-core";
|
|
@@ -12,7 +12,7 @@ import { List$1 } from "igniteui-webcomponents-core";
|
|
|
12
12
|
* @hidden
|
|
13
13
|
*/
|
|
14
14
|
var Fdc3Dictionary = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
15
|
-
|
|
15
|
+
__extends(Fdc3Dictionary, _super);
|
|
16
16
|
function Fdc3Dictionary() {
|
|
17
17
|
var _this = _super.call(this) || this;
|
|
18
18
|
_this.d = null;
|
|
@@ -23,7 +23,7 @@ var Fdc3Dictionary = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
23
23
|
var e_1, _a;
|
|
24
24
|
var a = new List$1(String_$type, 0);
|
|
25
25
|
try {
|
|
26
|
-
for (var _b =
|
|
26
|
+
for (var _b = __values(fromEnum(this.d)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
27
27
|
var b = _c.value;
|
|
28
28
|
a.add(b.key);
|
|
29
29
|
}
|
|
@@ -47,7 +47,7 @@ var Fdc3Dictionary = /** @class */ /*@__PURE__*/ (function (_super) {
|
|
|
47
47
|
var e_2, _a;
|
|
48
48
|
var a = new List$1(Base.$, 0);
|
|
49
49
|
try {
|
|
50
|
-
for (var _b =
|
|
50
|
+
for (var _b = __values(fromEnum(this.d)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
51
51
|
var b = _c.value;
|
|
52
52
|
a.add1(b.value);
|
|
53
53
|
}
|