@datawheel/bespoke 0.1.34 → 0.1.35
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/index.js +27 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7134,13 +7134,16 @@ function Section({ section }) {
|
|
|
7134
7134
|
children: /* @__PURE__ */ jsx(ColumnsWrapper, { children: Object.keys(columns).sort((a, b) => orderSort(a, b, "blockcol")).map((columnIndex) => {
|
|
7135
7135
|
const column = columns[columnIndex];
|
|
7136
7136
|
const columnSettings = settings.columnSettings ? settings.columnSettings[columnIndex] : {};
|
|
7137
|
+
const columnBlocks = Object.values(column).sort((a, b) => orderSort(a, b, "blockrow"));
|
|
7138
|
+
if (!columnBlocks.some((block) => status[block.id].allowed))
|
|
7139
|
+
return null;
|
|
7137
7140
|
return /* @__PURE__ */ jsx(
|
|
7138
7141
|
SectionColumn,
|
|
7139
7142
|
{
|
|
7140
7143
|
column,
|
|
7141
7144
|
columnSettings,
|
|
7142
7145
|
sx: { flexBasis: `${100 / colsQty}%` },
|
|
7143
|
-
children:
|
|
7146
|
+
children: columnBlocks.map((item) => {
|
|
7144
7147
|
if (!item.id || !status[item.id].allowed && item.type !== BLOCK_TYPES.NAV)
|
|
7145
7148
|
return null;
|
|
7146
7149
|
const { settings: settings2, type } = blockRecords[item.id];
|
|
@@ -11478,7 +11481,28 @@ var buildOptions = (options) => {
|
|
|
11478
11481
|
};
|
|
11479
11482
|
function FilterSidebar2({ onChange, loading }) {
|
|
11480
11483
|
const dispatch = useAppDispatch();
|
|
11481
|
-
const reportsNested = useAppSelector((state) =>
|
|
11484
|
+
const reportsNested = useAppSelector((state) => {
|
|
11485
|
+
return Object.values(state.records.entities.report).map((report) => {
|
|
11486
|
+
return {
|
|
11487
|
+
id: report.id,
|
|
11488
|
+
name: report.name,
|
|
11489
|
+
dimensions: report.dimensions.map((dId) => {
|
|
11490
|
+
const dimension = state.records.entities.dimension[dId];
|
|
11491
|
+
return {
|
|
11492
|
+
id: dimension.id,
|
|
11493
|
+
name: dimension.name,
|
|
11494
|
+
variants: dimension.variants.map((vId) => {
|
|
11495
|
+
const variant = state.records.entities.variant[vId];
|
|
11496
|
+
return {
|
|
11497
|
+
id: variant.id,
|
|
11498
|
+
name: variant.name
|
|
11499
|
+
};
|
|
11500
|
+
})
|
|
11501
|
+
};
|
|
11502
|
+
})
|
|
11503
|
+
};
|
|
11504
|
+
});
|
|
11505
|
+
});
|
|
11482
11506
|
const localeDefault9 = useAppSelector((state) => state.status.localeDefault);
|
|
11483
11507
|
const [query, setQuery] = useState("");
|
|
11484
11508
|
const [loadingRegenerate, setLoadingRegenerate] = useState(false);
|
|
@@ -11910,7 +11934,7 @@ function MemberForm({ memberId, onEditEnd }) {
|
|
|
11910
11934
|
{
|
|
11911
11935
|
locale: "all",
|
|
11912
11936
|
content_ids: [memberId],
|
|
11913
|
-
all:
|
|
11937
|
+
all: true,
|
|
11914
11938
|
mode: "content_ids",
|
|
11915
11939
|
output: "full"
|
|
11916
11940
|
}
|