@datawheel/data-explorer 1.1.3 → 1.1.5
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/main.mjs +11 -5
- package/package.json +1 -1
package/dist/main.mjs
CHANGED
|
@@ -450,7 +450,7 @@ var vizbuilderTranslation = {
|
|
|
450
450
|
action_fileissue: "Report an issue",
|
|
451
451
|
action_retry: "Retry",
|
|
452
452
|
aggregator: {
|
|
453
|
-
average: "Average
|
|
453
|
+
average: "Average {{measure}}",
|
|
454
454
|
max: "Max {{measure}}",
|
|
455
455
|
min: "Min {{measure}}",
|
|
456
456
|
sum: "{{measure}}"
|
|
@@ -3374,7 +3374,12 @@ function TableView({
|
|
|
3374
3374
|
striped: true,
|
|
3375
3375
|
verticalSpacing: "xs",
|
|
3376
3376
|
withBorder: true,
|
|
3377
|
-
withColumnBorders: true
|
|
3377
|
+
withColumnBorders: true,
|
|
3378
|
+
sx: {
|
|
3379
|
+
"thead > tr > th": {
|
|
3380
|
+
padding: "0.5rem 1rem"
|
|
3381
|
+
}
|
|
3382
|
+
}
|
|
3378
3383
|
},
|
|
3379
3384
|
/* @__PURE__ */ React13__default.createElement(
|
|
3380
3385
|
Box,
|
|
@@ -3394,8 +3399,6 @@ function TableView({
|
|
|
3394
3399
|
const base = (theme) => ({
|
|
3395
3400
|
backgroundColor: theme.colorScheme === "dark" ? theme.colors.dark[7] : theme.colors.gray[0],
|
|
3396
3401
|
textAlign: isNumeric ? "right" : "left",
|
|
3397
|
-
height: 60,
|
|
3398
|
-
paddingBottom: 10,
|
|
3399
3402
|
minWidth: 210,
|
|
3400
3403
|
width: 300,
|
|
3401
3404
|
maxWidth: 450,
|
|
@@ -7819,11 +7822,14 @@ function VizbuilderView(props) {
|
|
|
7819
7822
|
const data = query.data;
|
|
7820
7823
|
const types = (_a = query.data) == null ? void 0 : _a.types;
|
|
7821
7824
|
const columns = Object.keys(types || {});
|
|
7825
|
+
const filteredData = ((data == null ? void 0 : data.data) || []).filter(
|
|
7826
|
+
(row) => Object.values(row).every((value) => value !== null)
|
|
7827
|
+
);
|
|
7822
7828
|
const dataset = {
|
|
7823
7829
|
columns: Object.fromEntries(
|
|
7824
7830
|
columns.map((columnName) => [columnName, buildColumn(cube, columnName, columns)])
|
|
7825
7831
|
),
|
|
7826
|
-
data:
|
|
7832
|
+
data: filteredData,
|
|
7827
7833
|
locale: params.locale || "en"
|
|
7828
7834
|
};
|
|
7829
7835
|
return /* @__PURE__ */ React13__default.createElement(React13__default.Fragment, null, /* @__PURE__ */ React13__default.createElement(
|