@sis-cc/dotstatsuite-components 21.4.0 → 21.6.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/dist/dotstatsuite-components.js +134 -122
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { get as get$2, isEmpty as isEmpty$2, isNil as isNil$2, reduce as reduce$2, has as has$9, sortBy as sortBy$2, map as map$3, head as head$2, split as split$2, omit as omit$2, keys as keys$2, each, isArray as isArray$1,
|
|
1
|
+
import { get as get$2, isEmpty as isEmpty$2, isNil as isNil$2, reduce as reduce$2, has as has$9, sortBy as sortBy$2, map as map$3, head as head$2, split as split$2, omit as omit$2, keys as keys$2, each, isArray as isArray$1, findIndex as findIndex$2, fill, size, find as find$2, isUndefined, reject as reject$2, take as take$2, transform as transform$2, pick as pick$2, partition as partition$2, filter as filter$2, keyBy, includes as includes$2, flatten as flatten$3, compact, isEqual } from "lodash";
|
|
2
2
|
import memoizee from "memoizee";
|
|
3
3
|
import numeral from "numeral";
|
|
4
4
|
import { isRefAreaDimension, isTimePeriodDimension, getTimePeriodDimension, getRefAreaDimension, getDataFrequency, getNotDisplayedCombinations, getCodeOrder } from "@sis-cc/dotstatsuite-sdmxjs";
|
|
@@ -61,7 +61,7 @@ import getISOWeek from "date-fns/get_iso_week";
|
|
|
61
61
|
import makeStyles from "@mui/styles/makeStyles";
|
|
62
62
|
import { useTheme } from "@mui/material/styles";
|
|
63
63
|
const name$1 = "@sis-cc/dotstatsuite-components";
|
|
64
|
-
const version$1 = "21.
|
|
64
|
+
const version$1 = "21.6.0";
|
|
65
65
|
const meta$1 = {
|
|
66
66
|
name: name$1,
|
|
67
67
|
version: version$1
|
|
@@ -1542,6 +1542,44 @@ var find$1 = /* @__PURE__ */ _curry2$c(/* @__PURE__ */ _dispatchable$1(["find"],
|
|
|
1542
1542
|
idx += 1;
|
|
1543
1543
|
}
|
|
1544
1544
|
}));
|
|
1545
|
+
var XFindIndex$1 = /* @__PURE__ */ function() {
|
|
1546
|
+
function XFindIndex2(f, xf) {
|
|
1547
|
+
this.xf = xf;
|
|
1548
|
+
this.f = f;
|
|
1549
|
+
this.idx = -1;
|
|
1550
|
+
this.found = false;
|
|
1551
|
+
}
|
|
1552
|
+
XFindIndex2.prototype["@@transducer/init"] = _xfBase$1.init;
|
|
1553
|
+
XFindIndex2.prototype["@@transducer/result"] = function(result) {
|
|
1554
|
+
if (!this.found) {
|
|
1555
|
+
result = this.xf["@@transducer/step"](result, -1);
|
|
1556
|
+
}
|
|
1557
|
+
return this.xf["@@transducer/result"](result);
|
|
1558
|
+
};
|
|
1559
|
+
XFindIndex2.prototype["@@transducer/step"] = function(result, input) {
|
|
1560
|
+
this.idx += 1;
|
|
1561
|
+
if (this.f(input)) {
|
|
1562
|
+
this.found = true;
|
|
1563
|
+
result = _reduced$1(this.xf["@@transducer/step"](result, this.idx));
|
|
1564
|
+
}
|
|
1565
|
+
return result;
|
|
1566
|
+
};
|
|
1567
|
+
return XFindIndex2;
|
|
1568
|
+
}();
|
|
1569
|
+
var _xfindIndex$1 = /* @__PURE__ */ _curry2$c(function _xfindIndex(f, xf) {
|
|
1570
|
+
return new XFindIndex$1(f, xf);
|
|
1571
|
+
});
|
|
1572
|
+
var findIndex$1 = /* @__PURE__ */ _curry2$c(/* @__PURE__ */ _dispatchable$1([], _xfindIndex$1, function findIndex(fn, list) {
|
|
1573
|
+
var idx = 0;
|
|
1574
|
+
var len = list.length;
|
|
1575
|
+
while (idx < len) {
|
|
1576
|
+
if (fn(list[idx])) {
|
|
1577
|
+
return idx;
|
|
1578
|
+
}
|
|
1579
|
+
idx += 1;
|
|
1580
|
+
}
|
|
1581
|
+
return -1;
|
|
1582
|
+
}));
|
|
1545
1583
|
var XFindLastIndex$1 = /* @__PURE__ */ function() {
|
|
1546
1584
|
function XFindLastIndex2(f, xf) {
|
|
1547
1585
|
this.xf = xf;
|
|
@@ -2158,48 +2196,50 @@ function focus$3(series2, focusSelections) {
|
|
|
2158
2196
|
return [{ ...serie2, datapoints: _datapoints }];
|
|
2159
2197
|
}
|
|
2160
2198
|
function dimensionValueIsValid(dimensionValue, chartDimension) {
|
|
2161
|
-
return includes$
|
|
2162
|
-
|
|
2163
|
-
|
|
2199
|
+
return includes$1(
|
|
2200
|
+
prop$1("id", dimensionValue),
|
|
2201
|
+
map$2((k2) => prop$1(`${k2}Id`, chartDimension), ["x", "y"])
|
|
2164
2202
|
);
|
|
2165
2203
|
}
|
|
2166
2204
|
function getDimensionValues$2(dimensionValuesIndexes, dimensions, dimensionsWithValuesIndexedById2, chartDimensionId, display) {
|
|
2167
|
-
const dimensionsWithValuesIds = keys$
|
|
2168
|
-
return reduce$
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
const
|
|
2172
|
-
const
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2205
|
+
const dimensionsWithValuesIds = keys$1(dimensionsWithValuesIndexedById2);
|
|
2206
|
+
return addIndex$1(reduce$1)(
|
|
2207
|
+
(acc, dvi, i) => {
|
|
2208
|
+
const dimension = nth$1(i, dimensions);
|
|
2209
|
+
const dimensionId = prop$1("id", dimension);
|
|
2210
|
+
const dimensionValue = nth$1(dvi, propOr$1([], "values", dimension || {}));
|
|
2211
|
+
if (dimensionId !== chartDimensionId && includes$1(dimensionId, dimensionsWithValuesIds)) {
|
|
2212
|
+
return assoc$1(
|
|
2213
|
+
dimensionId,
|
|
2214
|
+
{ ...dimensionValue, name: dimensionValueDisplay$1(display)(dimensionValue) },
|
|
2215
|
+
acc
|
|
2216
|
+
);
|
|
2176
2217
|
}
|
|
2177
|
-
return
|
|
2218
|
+
return acc;
|
|
2178
2219
|
},
|
|
2179
|
-
{}
|
|
2220
|
+
{},
|
|
2221
|
+
dimensionValuesIndexes
|
|
2180
2222
|
);
|
|
2181
2223
|
}
|
|
2182
2224
|
function getDimensionValueKey(chartDimension, dimensionValue) {
|
|
2183
|
-
return
|
|
2225
|
+
return prop$1("xId", chartDimension) === prop$1("id", dimensionValue) ? "x" : "y";
|
|
2184
2226
|
}
|
|
2185
2227
|
function datapoints(observations, dimensions, dimensionsWithValuesIndexedById2, chartDimension, display, formaterAttrs) {
|
|
2186
|
-
const chartDimensionId =
|
|
2187
|
-
const chartDimensionIndex = findIndex$1(
|
|
2188
|
-
const datapoints2 = reduce$
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
const oDimensionValuesIndexes = split$
|
|
2228
|
+
const chartDimensionId = prop$1("id", chartDimension);
|
|
2229
|
+
const chartDimensionIndex = findIndex$1(propEq$1("id", chartDimensionId), dimensions);
|
|
2230
|
+
const datapoints2 = reduce$1(
|
|
2231
|
+
(acc, k2) => {
|
|
2232
|
+
const o3 = prop$1(k2, observations);
|
|
2233
|
+
const oDimensionValuesIndexes = split$1(":", k2);
|
|
2192
2234
|
const oDimensionValueIndex = oDimensionValuesIndexes[chartDimensionIndex];
|
|
2193
|
-
const
|
|
2194
|
-
|
|
2195
|
-
`[${chartDimensionIndex}].values[${oDimensionValueIndex}]`
|
|
2196
|
-
);
|
|
2235
|
+
const _chartDimension = nth$1(chartDimensionIndex, dimensions);
|
|
2236
|
+
const oDimensionValue = nth$1(oDimensionValueIndex, propOr$1([], "values", _chartDimension || {}));
|
|
2197
2237
|
if (dimensionValueIsValid(oDimensionValue, chartDimension)) {
|
|
2198
|
-
const oPartialKey =
|
|
2199
|
-
|
|
2200
|
-
(
|
|
2201
|
-
)
|
|
2202
|
-
if (!has$
|
|
2238
|
+
const oPartialKey = pipe$1(
|
|
2239
|
+
addIndex$1(reject$1)((_2, i) => i === chartDimensionIndex),
|
|
2240
|
+
join$1(":")
|
|
2241
|
+
)(oDimensionValuesIndexes);
|
|
2242
|
+
if (!has$8(oPartialKey, acc)) {
|
|
2203
2243
|
const dimensionValues = getDimensionValues$2(
|
|
2204
2244
|
oDimensionValuesIndexes,
|
|
2205
2245
|
dimensions,
|
|
@@ -2207,26 +2247,26 @@ function datapoints(observations, dimensions, dimensionsWithValuesIndexedById2,
|
|
|
2207
2247
|
chartDimensionId,
|
|
2208
2248
|
display
|
|
2209
2249
|
);
|
|
2210
|
-
|
|
2250
|
+
acc[oPartialKey] = { dimensionValues };
|
|
2211
2251
|
}
|
|
2212
2252
|
const dimensionValueKey = getDimensionValueKey(chartDimension, oDimensionValue);
|
|
2213
|
-
|
|
2214
|
-
|
|
2253
|
+
acc[oPartialKey][dimensionValueKey] = head$1(o3);
|
|
2254
|
+
acc[oPartialKey][`${dimensionValueKey}Format`] = getFormatedObservation(o3, formaterAttrs);
|
|
2215
2255
|
}
|
|
2216
|
-
return
|
|
2256
|
+
return acc;
|
|
2217
2257
|
},
|
|
2218
|
-
{}
|
|
2219
|
-
|
|
2220
|
-
return filter$2(
|
|
2221
|
-
datapoints2,
|
|
2222
|
-
(dp) => !isNil$2(dp.x) && !isNil$2(dp.y)
|
|
2258
|
+
{},
|
|
2259
|
+
keys$1(observations)
|
|
2223
2260
|
);
|
|
2261
|
+
return pipe$1(
|
|
2262
|
+
filter$1((dp) => !isNil$1(dp.x) && !isNil$1(dp.y)),
|
|
2263
|
+
values$1
|
|
2264
|
+
)(datapoints2);
|
|
2224
2265
|
}
|
|
2225
2266
|
const series$3 = (observations, dimensions, dimensionsWithValuesIndexedById2, chartDimension, display, formaterAttrs) => {
|
|
2226
|
-
const
|
|
2227
|
-
const
|
|
2228
|
-
const
|
|
2229
|
-
const yValue = find$2(yValues, { id: get$2(chartDimension, "yId") });
|
|
2267
|
+
const values4 = pipe$1(prop$1(prop$1("id", chartDimension || {})), propOr$1([], "values"))(dimensionsWithValuesIndexedById2);
|
|
2268
|
+
const xValue = find$1(propEq$1("id", prop$1("xId", chartDimension)), values4);
|
|
2269
|
+
const yValue = find$1(propEq$1("id", prop$1("yId", chartDimension)), values4);
|
|
2230
2270
|
return [{
|
|
2231
2271
|
dimensionValues: {
|
|
2232
2272
|
x: { ...xValue, name: dimensionValueDisplay$1(display)(xValue) },
|
|
@@ -2262,31 +2302,32 @@ function focus$2(series2, focusSelections) {
|
|
|
2262
2302
|
});
|
|
2263
2303
|
return [{ ...serie2, datapoints: __datapoints }];
|
|
2264
2304
|
}
|
|
2265
|
-
const __scatterDimension = (dimensions,
|
|
2266
|
-
if (isEmpty$
|
|
2305
|
+
const __scatterDimension = (dimensions, { id: id2, xId, yId }) => {
|
|
2306
|
+
if (isEmpty$1(dimensions))
|
|
2307
|
+
return;
|
|
2267
2308
|
let chartDimension;
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
if (
|
|
2271
|
-
const _dimensions = reject$
|
|
2272
|
-
chartDimension = head$
|
|
2273
|
-
}
|
|
2274
|
-
const chartDimensionId =
|
|
2275
|
-
const values4 =
|
|
2276
|
-
const xValue = find$
|
|
2277
|
-
const yValue = find$
|
|
2278
|
-
const
|
|
2279
|
-
const
|
|
2309
|
+
if (!isNil$1(id2))
|
|
2310
|
+
chartDimension = find$1(propEq$1("id", id2), dimensions);
|
|
2311
|
+
if (isNil$1(chartDimension)) {
|
|
2312
|
+
const _dimensions = reject$1(isRefAreaDimension, dimensions);
|
|
2313
|
+
chartDimension = head$1(isEmpty$1(_dimensions) ? dimensions : _dimensions);
|
|
2314
|
+
}
|
|
2315
|
+
const chartDimensionId = prop$1("id", chartDimension || {});
|
|
2316
|
+
const values4 = propOr$1([], "values", chartDimension || {});
|
|
2317
|
+
const xValue = find$1(propEq$1("id", xId), values4);
|
|
2318
|
+
const yValue = find$1((v) => propEq$1("id", yId, v) && v.id !== xId, values4);
|
|
2319
|
+
const _xId = isNil$1(xValue) ? pipe$1(reject$1(propEq$1("id", prop$1("id", yValue || {}))), head$1, prop$1("id"))(values4) : xValue.id;
|
|
2320
|
+
const _yId = isNil$1(yValue) ? pipe$1(find$1((v) => v.id !== _xId), prop$1("id"))(values4) : yValue.id;
|
|
2280
2321
|
return {
|
|
2281
2322
|
id: chartDimensionId,
|
|
2282
|
-
xId,
|
|
2283
|
-
yId
|
|
2323
|
+
xId: _xId,
|
|
2324
|
+
yId: _yId
|
|
2284
2325
|
};
|
|
2285
2326
|
};
|
|
2286
2327
|
const series$2 = (observations, dimensions, dimensionsWithValuesIndexedById2, symbolDimension2, sortDirection, display, formaterAttrs) => {
|
|
2287
2328
|
const symbolDimensionId = get$2(symbolDimension2, "id", null);
|
|
2288
2329
|
if (symbolDimensionId === null) return [];
|
|
2289
|
-
const symbolDimensionIndex = findIndex$
|
|
2330
|
+
const symbolDimensionIndex = findIndex$2(dimensions, (d) => d.id === symbolDimensionId);
|
|
2290
2331
|
const datapoints2 = sortBy$2(
|
|
2291
2332
|
reduce$2(
|
|
2292
2333
|
observations,
|
|
@@ -2297,13 +2338,13 @@ const series$2 = (observations, dimensions, dimensionsWithValuesIndexedById2, sy
|
|
|
2297
2338
|
const oDimensionValuesIndexes = split$2(observationKey, ":");
|
|
2298
2339
|
const oSymbolDimensionValueIndex = Number(oDimensionValuesIndexes[symbolDimensionIndex]);
|
|
2299
2340
|
const oSymbolDimensionValueId = dimensions[symbolDimensionIndex].values[oSymbolDimensionValueIndex].id;
|
|
2300
|
-
const symbolIndex = findIndex$
|
|
2341
|
+
const symbolIndex = findIndex$2(symbolDimension2.serie, (v) => v.id === oSymbolDimensionValueId);
|
|
2301
2342
|
if (symbolIndex === -1) {
|
|
2302
2343
|
return memo;
|
|
2303
2344
|
}
|
|
2304
2345
|
const category = categoryDisplay(oDimensionValuesIndexes, dimensions, dimensionsWithValuesIndexedById2, symbolDimensionId, display);
|
|
2305
2346
|
const ids = categoryDisplay(oDimensionValuesIndexes, dimensions, dimensionsWithValuesIndexedById2, symbolDimensionId, "code");
|
|
2306
|
-
let dpIndex = findIndex$
|
|
2347
|
+
let dpIndex = findIndex$2(memo, (dp) => dp.key === ids);
|
|
2307
2348
|
let dpValues = dpIndex === -1 ? fill(Array(size(symbolDimension2.serie)), null) : memo[dpIndex].values;
|
|
2308
2349
|
let dpFormatedValues = dpIndex === -1 ? fill(Array(size(symbolDimension2.serie)), null) : memo[dpIndex].formatedValues;
|
|
2309
2350
|
dpValues[oSymbolDimensionValueIndex] = head$2(observationValue);
|
|
@@ -2412,7 +2453,7 @@ const series$1 = (observations, dimensions, dimensionsWithValuesIndexedById2, ti
|
|
|
2412
2453
|
if (isNil$2(key) || isEmpty$2(key)) {
|
|
2413
2454
|
key = "uniq-dp";
|
|
2414
2455
|
}
|
|
2415
|
-
const serieIndex = findIndex$
|
|
2456
|
+
const serieIndex = findIndex$2(memo, (serie2) => serie2.key === key);
|
|
2416
2457
|
if (serieIndex !== -1) memo[serieIndex].datapoints.push(datapoint);
|
|
2417
2458
|
else memo.push({ datapoints: [datapoint], category, key });
|
|
2418
2459
|
return memo;
|
|
@@ -2450,7 +2491,7 @@ function focus$1(series2, focusSelections) {
|
|
|
2450
2491
|
(serie2, index2) => {
|
|
2451
2492
|
each(focusSelections, (focusSelection, focusKey) => {
|
|
2452
2493
|
const _focusKey = `${focusKey}Index`;
|
|
2453
|
-
const res = findIndex$
|
|
2494
|
+
const res = findIndex$2(
|
|
2454
2495
|
isArray$1(focusSelection) ? focusSelection : [focusSelection],
|
|
2455
2496
|
(focus2) => focus2.value === serie2.key
|
|
2456
2497
|
);
|
|
@@ -5640,47 +5681,8 @@ const addParentId = (id2, ids) => {
|
|
|
5640
5681
|
const last2 = last$1(ids);
|
|
5641
5682
|
return append$1(isNil$1(last2) ? id2 : `${last2}.${id2}`, ids);
|
|
5642
5683
|
};
|
|
5643
|
-
const
|
|
5644
|
-
|
|
5645
|
-
if (!isEmpty$1(confirmedPaths)) {
|
|
5646
|
-
confirmedPaths = reduce$1((acc, k2) => {
|
|
5647
|
-
if (has$8(k2, acc)) {
|
|
5648
|
-
return acc;
|
|
5649
|
-
}
|
|
5650
|
-
const ps = prop$1(k2, paths3);
|
|
5651
|
-
const flatConfirmed = unnest$1(values$1(acc));
|
|
5652
|
-
const filtered = filter$1((p) => !!find$1((cP) => includes$1(p, cP) || includes$1(cP, p), flatConfirmed), ps);
|
|
5653
|
-
if (!isEmpty$1(filtered)) {
|
|
5654
|
-
return assoc$1(k2, [head$1(filtered)], acc);
|
|
5655
|
-
}
|
|
5656
|
-
return acc;
|
|
5657
|
-
}, confirmedPaths, keys$1(paths3));
|
|
5658
|
-
}
|
|
5659
|
-
const remainingIds = reject$1((id2) => has$8(id2, confirmedPaths), keys$1(paths3));
|
|
5660
|
-
const getCommonPaths = (ids) => {
|
|
5661
|
-
const { commonPaths, rejectedIds } = reduce$1(
|
|
5662
|
-
(acc, id2) => {
|
|
5663
|
-
const ps = prop$1(id2, paths3);
|
|
5664
|
-
if (isEmpty$1(acc.commonPaths)) {
|
|
5665
|
-
return assoc$1("commonPaths", ps, acc);
|
|
5666
|
-
}
|
|
5667
|
-
const common = intersection$1(acc.commonPaths, ps);
|
|
5668
|
-
return isEmpty$1(common) ? assoc$1("rejectedChildrenIds", id2, acc) : assoc$1("commonPaths", common, acc);
|
|
5669
|
-
},
|
|
5670
|
-
{ commonPaths: [], rejectedIds: [] }
|
|
5671
|
-
)(ids);
|
|
5672
|
-
if (!isEmpty$1(rejectedIds)) {
|
|
5673
|
-
return append$1(head$1(commonPaths), getCommonPaths(rejectedIds));
|
|
5674
|
-
}
|
|
5675
|
-
return [head$1(commonPaths)];
|
|
5676
|
-
};
|
|
5677
|
-
const commons = getCommonPaths(remainingIds);
|
|
5678
|
-
return reduce$1(
|
|
5679
|
-
(acc, id2) => assoc$1(id2, intersection$1(commons, prop$1(id2, paths3)), acc),
|
|
5680
|
-
confirmedPaths,
|
|
5681
|
-
remainingIds
|
|
5682
|
-
);
|
|
5683
|
-
};
|
|
5684
|
+
const _refineUnconfirmedPaths = (paths3) => map$2((p) => [head$1(p)], paths3);
|
|
5685
|
+
const getHierId = (v) => isNil$1(v.parent) || isEmpty$1(v.parent) ? v.id : `${v.parent}.${v.id}`;
|
|
5684
5686
|
const applyHierarchicalCodesToDim = (hCodes, dim) => {
|
|
5685
5687
|
const confirmedHierarchisedChilds = /* @__PURE__ */ new Set([]);
|
|
5686
5688
|
let unconfirmedPaths = {};
|
|
@@ -5722,25 +5724,35 @@ const applyHierarchicalCodesToDim = (hCodes, dim) => {
|
|
|
5722
5724
|
reject$1((id2) => confirmedHierarchisedChilds.has(id2)),
|
|
5723
5725
|
(ids) => pick$1(ids, unconfirmedPaths)
|
|
5724
5726
|
)(keys$1(unconfirmedPaths));
|
|
5725
|
-
const refinedUnconfirmedPaths =
|
|
5727
|
+
const refinedUnconfirmedPaths = _refineUnconfirmedPaths(_unconfirmedPaths);
|
|
5726
5728
|
const flattenDescendants = reduce$1((acc, val) => {
|
|
5727
5729
|
const children = flattenDescendants(val.children || []);
|
|
5728
5730
|
return concat$1(acc, prepend$1(val, children));
|
|
5729
5731
|
}, []);
|
|
5730
|
-
const isValid = (val) => !val.unconfirmed ||
|
|
5732
|
+
const isValid = (val) => !val.unconfirmed || val.path === head$1(refinedUnconfirmedPaths[val.id] || []);
|
|
5731
5733
|
const refineCodes = reduce$1((acc, hC) => {
|
|
5732
5734
|
const _flatDescendants = flattenDescendants(hC.children);
|
|
5733
5735
|
const flatDescendants = prepend$1(hC, _flatDescendants);
|
|
5734
|
-
const
|
|
5735
|
-
if (
|
|
5736
|
+
const valids = filter$1(isValid, flatDescendants);
|
|
5737
|
+
if (isEmpty$1(valids)) {
|
|
5736
5738
|
return acc;
|
|
5737
5739
|
}
|
|
5738
5740
|
const refined2 = pipe$1(
|
|
5739
|
-
|
|
5741
|
+
reduce$1((_acc, v) => {
|
|
5740
5742
|
confirmedHierarchisedChilds.add(v.id);
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5743
|
+
const prev = last$1(_acc);
|
|
5744
|
+
const parents = pipe$1(
|
|
5745
|
+
(p) => isNil$1(p) ? [] : append$1(getHierId(p), prev.parents || []),
|
|
5746
|
+
filter$1((id2) => includes$1(id2, v.parents))
|
|
5747
|
+
)(prev);
|
|
5748
|
+
const rV = {
|
|
5749
|
+
...omit$1(["unconfirmed", "children", "path"], v),
|
|
5750
|
+
parents,
|
|
5751
|
+
parent: isEmpty$1(parents) ? void 0 : last$1(parents)
|
|
5752
|
+
};
|
|
5753
|
+
return append$1(rV, _acc);
|
|
5754
|
+
}, [])
|
|
5755
|
+
)(valids);
|
|
5744
5756
|
return concat$1(acc, refined2);
|
|
5745
5757
|
}, []);
|
|
5746
5758
|
const refined = refineCodes(parsed);
|
|
@@ -5756,10 +5768,10 @@ const applyHierarchicalCodesToDim = (hCodes, dim) => {
|
|
|
5756
5768
|
concat$1,
|
|
5757
5769
|
addIndex$1(map$2)((v, ind) => {
|
|
5758
5770
|
const parents = props$1(v.parents, hierarchicalIndexes);
|
|
5759
|
-
const hierId =
|
|
5771
|
+
const hierId = getHierId(v);
|
|
5760
5772
|
hierarchicalIndexes[hierId] = ind;
|
|
5761
5773
|
return {
|
|
5762
|
-
...v,
|
|
5774
|
+
...dissoc$1("path", v),
|
|
5763
5775
|
parents,
|
|
5764
5776
|
__indexPosition: ind
|
|
5765
5777
|
};
|
|
@@ -7298,7 +7310,7 @@ const getTopologyAreasCollections = memoizee(_getTopologyAreasCollections);
|
|
|
7298
7310
|
const _isNonIdealState = (data, type4, map22) => {
|
|
7299
7311
|
const defaultSeries = series(data, type4, null, null, map22);
|
|
7300
7312
|
if (type4 === "ChoroplethChart") {
|
|
7301
|
-
return findIndex$
|
|
7313
|
+
return findIndex$2(get$2(defaultSeries, "objects.areas.geometries", []), (geometry) => get$2(geometry, "properties.value", null)) === -1;
|
|
7302
7314
|
}
|
|
7303
7315
|
return isEmpty$2(get$2(defaultSeries, "[0].datapoints", []));
|
|
7304
7316
|
};
|
|
@@ -20075,11 +20087,11 @@ var XFindIndex = /* @__PURE__ */ function() {
|
|
|
20075
20087
|
};
|
|
20076
20088
|
return XFindIndex2;
|
|
20077
20089
|
}();
|
|
20078
|
-
var
|
|
20090
|
+
var _xfindIndex2 = /* @__PURE__ */ _curry2$b(function _xfindIndex3(f, xf) {
|
|
20079
20091
|
return new XFindIndex(f, xf);
|
|
20080
20092
|
});
|
|
20081
|
-
var
|
|
20082
|
-
/* @__PURE__ */ _dispatchable([],
|
|
20093
|
+
var findIndex2 = /* @__PURE__ */ _curry2$b(
|
|
20094
|
+
/* @__PURE__ */ _dispatchable([], _xfindIndex2, function findIndex3(fn, list) {
|
|
20083
20095
|
var idx = 0;
|
|
20084
20096
|
var len = list.length;
|
|
20085
20097
|
while (idx < len) {
|
|
@@ -21273,7 +21285,7 @@ const es = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
21273
21285
|
evolve: evolve2,
|
|
21274
21286
|
filter,
|
|
21275
21287
|
find: find2,
|
|
21276
|
-
findIndex,
|
|
21288
|
+
findIndex: findIndex2,
|
|
21277
21289
|
findLast,
|
|
21278
21290
|
findLastIndex: findLastIndex2,
|
|
21279
21291
|
flatten: flatten$1,
|