@vuu-ui/vuu-data-test 0.8.24-debug → 0.8.25-debug
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/cjs/index.js +33 -27
- package/cjs/index.js.map +3 -3
- package/esm/index.js +33 -27
- package/esm/index.js.map +3 -3
- package/package.json +6 -6
package/cjs/index.js
CHANGED
|
@@ -1005,11 +1005,11 @@ var getColumnAndRowGenerator = (table) => {
|
|
|
1005
1005
|
);
|
|
1006
1006
|
}
|
|
1007
1007
|
};
|
|
1008
|
-
var populateArray = (
|
|
1008
|
+
var populateArray = (count2, colGen, rowGen, columns) => {
|
|
1009
1009
|
const columnDescriptors = colGen(columns);
|
|
1010
1010
|
const generateRow = rowGen(columnDescriptors.map((col) => col.name));
|
|
1011
1011
|
const data = [];
|
|
1012
|
-
for (let i = 0; i <
|
|
1012
|
+
for (let i = 0; i < count2; i++) {
|
|
1013
1013
|
const row = generateRow(i);
|
|
1014
1014
|
if (row) {
|
|
1015
1015
|
data[i] = row;
|
|
@@ -2193,36 +2193,42 @@ var InstrumentColumnMap = {
|
|
|
2193
2193
|
price: 7
|
|
2194
2194
|
};
|
|
2195
2195
|
var instrumentsData = [];
|
|
2196
|
-
var
|
|
2196
|
+
var chars1 = Array.from("ABCEFGHKMN");
|
|
2197
|
+
var chars2 = Array.from("ABCEFGHKMN");
|
|
2198
|
+
var chars3 = Array.from("OPQRTUVWYZ");
|
|
2199
|
+
var chars4 = Array.from("OPQRTUVWYZ");
|
|
2197
2200
|
var randomPrice = () => {
|
|
2198
2201
|
const price = random(0, 1e4);
|
|
2199
2202
|
const multiplier = random(1, 10);
|
|
2200
2203
|
return price / multiplier;
|
|
2201
2204
|
};
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
const char3
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2205
|
+
var count = 0;
|
|
2206
|
+
for (const char1 of chars1) {
|
|
2207
|
+
for (const char2 of chars2) {
|
|
2208
|
+
for (const char3 of chars3) {
|
|
2209
|
+
for (const char4 of chars4) {
|
|
2210
|
+
const suffix = suffixes[count % 8];
|
|
2211
|
+
const ric = char1 + char2 + char3 + char4 + "." + suffix;
|
|
2212
|
+
const bbg = char1 + char2 + char3 + char4 + " " + suffix;
|
|
2213
|
+
const description = `${ric} description`;
|
|
2214
|
+
const currency = currencies[random(0, 4)];
|
|
2215
|
+
const isin = (0, import_isin_generator.isinGenerator)();
|
|
2216
|
+
const lotSize = lotsizes[random(0, lotsizes.length - 1)];
|
|
2217
|
+
const exchange = locations[suffix][1];
|
|
2218
|
+
const price = randomPrice();
|
|
2219
|
+
instrumentsData.push([
|
|
2220
|
+
bbg,
|
|
2221
|
+
currency,
|
|
2222
|
+
description,
|
|
2223
|
+
exchange,
|
|
2224
|
+
String(isin),
|
|
2225
|
+
lotSize,
|
|
2226
|
+
ric,
|
|
2227
|
+
price
|
|
2228
|
+
]);
|
|
2229
|
+
count++;
|
|
2230
|
+
}
|
|
2231
|
+
}
|
|
2226
2232
|
}
|
|
2227
2233
|
}
|
|
2228
2234
|
var getRic = (defaultRic) => {
|