@datawheel/bespoke 0.1.33 → 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 +29 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6376,6 +6376,7 @@ function OptionsModal(props) {
|
|
|
6376
6376
|
return /* @__PURE__ */ jsx("div", { className: "cms-section-options-modal", children: open && /* @__PURE__ */ jsx(
|
|
6377
6377
|
Modal,
|
|
6378
6378
|
{
|
|
6379
|
+
className: "bespoke-options-modal",
|
|
6379
6380
|
opened: true,
|
|
6380
6381
|
onClose: () => onEnds(),
|
|
6381
6382
|
size: "xl",
|
|
@@ -7133,14 +7134,17 @@ function Section({ section }) {
|
|
|
7133
7134
|
children: /* @__PURE__ */ jsx(ColumnsWrapper, { children: Object.keys(columns).sort((a, b) => orderSort(a, b, "blockcol")).map((columnIndex) => {
|
|
7134
7135
|
const column = columns[columnIndex];
|
|
7135
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;
|
|
7136
7140
|
return /* @__PURE__ */ jsx(
|
|
7137
7141
|
SectionColumn,
|
|
7138
7142
|
{
|
|
7139
7143
|
column,
|
|
7140
7144
|
columnSettings,
|
|
7141
7145
|
sx: { flexBasis: `${100 / colsQty}%` },
|
|
7142
|
-
children:
|
|
7143
|
-
if (!item.id || !status[item.id].allowed)
|
|
7146
|
+
children: columnBlocks.map((item) => {
|
|
7147
|
+
if (!item.id || !status[item.id].allowed && item.type !== BLOCK_TYPES.NAV)
|
|
7144
7148
|
return null;
|
|
7145
7149
|
const { settings: settings2, type } = blockRecords[item.id];
|
|
7146
7150
|
const blockWidth = settings2.width && !settings2.width.stretch && settings2.width.unit ? formatters[settings2.width.unit](settings2.width.value) : settings2.display === "inline" ? "auto" : "100%";
|
|
@@ -11477,7 +11481,28 @@ var buildOptions = (options) => {
|
|
|
11477
11481
|
};
|
|
11478
11482
|
function FilterSidebar2({ onChange, loading }) {
|
|
11479
11483
|
const dispatch = useAppDispatch();
|
|
11480
|
-
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
|
+
});
|
|
11481
11506
|
const localeDefault9 = useAppSelector((state) => state.status.localeDefault);
|
|
11482
11507
|
const [query, setQuery] = useState("");
|
|
11483
11508
|
const [loadingRegenerate, setLoadingRegenerate] = useState(false);
|
|
@@ -11909,7 +11934,7 @@ function MemberForm({ memberId, onEditEnd }) {
|
|
|
11909
11934
|
{
|
|
11910
11935
|
locale: "all",
|
|
11911
11936
|
content_ids: [memberId],
|
|
11912
|
-
all:
|
|
11937
|
+
all: true,
|
|
11913
11938
|
mode: "content_ids",
|
|
11914
11939
|
output: "full"
|
|
11915
11940
|
}
|