@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/esm/index.js
CHANGED
|
@@ -974,11 +974,11 @@ var getColumnAndRowGenerator = (table) => {
|
|
|
974
974
|
);
|
|
975
975
|
}
|
|
976
976
|
};
|
|
977
|
-
var populateArray = (
|
|
977
|
+
var populateArray = (count2, colGen, rowGen, columns) => {
|
|
978
978
|
const columnDescriptors = colGen(columns);
|
|
979
979
|
const generateRow = rowGen(columnDescriptors.map((col) => col.name));
|
|
980
980
|
const data = [];
|
|
981
|
-
for (let i = 0; i <
|
|
981
|
+
for (let i = 0; i < count2; i++) {
|
|
982
982
|
const row = generateRow(i);
|
|
983
983
|
if (row) {
|
|
984
984
|
data[i] = row;
|
|
@@ -2164,36 +2164,42 @@ var InstrumentColumnMap = {
|
|
|
2164
2164
|
price: 7
|
|
2165
2165
|
};
|
|
2166
2166
|
var instrumentsData = [];
|
|
2167
|
-
var
|
|
2167
|
+
var chars1 = Array.from("ABCEFGHKMN");
|
|
2168
|
+
var chars2 = Array.from("ABCEFGHKMN");
|
|
2169
|
+
var chars3 = Array.from("OPQRTUVWYZ");
|
|
2170
|
+
var chars4 = Array.from("OPQRTUVWYZ");
|
|
2168
2171
|
var randomPrice = () => {
|
|
2169
2172
|
const price = random(0, 1e4);
|
|
2170
2173
|
const multiplier = random(1, 10);
|
|
2171
2174
|
return price / multiplier;
|
|
2172
2175
|
};
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
const char3
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2176
|
+
var count = 0;
|
|
2177
|
+
for (const char1 of chars1) {
|
|
2178
|
+
for (const char2 of chars2) {
|
|
2179
|
+
for (const char3 of chars3) {
|
|
2180
|
+
for (const char4 of chars4) {
|
|
2181
|
+
const suffix = suffixes[count % 8];
|
|
2182
|
+
const ric = char1 + char2 + char3 + char4 + "." + suffix;
|
|
2183
|
+
const bbg = char1 + char2 + char3 + char4 + " " + suffix;
|
|
2184
|
+
const description = `${ric} description`;
|
|
2185
|
+
const currency = currencies[random(0, 4)];
|
|
2186
|
+
const isin = (0, import_isin_generator.isinGenerator)();
|
|
2187
|
+
const lotSize = lotsizes[random(0, lotsizes.length - 1)];
|
|
2188
|
+
const exchange = locations[suffix][1];
|
|
2189
|
+
const price = randomPrice();
|
|
2190
|
+
instrumentsData.push([
|
|
2191
|
+
bbg,
|
|
2192
|
+
currency,
|
|
2193
|
+
description,
|
|
2194
|
+
exchange,
|
|
2195
|
+
String(isin),
|
|
2196
|
+
lotSize,
|
|
2197
|
+
ric,
|
|
2198
|
+
price
|
|
2199
|
+
]);
|
|
2200
|
+
count++;
|
|
2201
|
+
}
|
|
2202
|
+
}
|
|
2197
2203
|
}
|
|
2198
2204
|
}
|
|
2199
2205
|
var getRic = (defaultRic) => {
|