@datawheel/data-explorer 0.3.5 → 0.3.7-rc.1
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.js → main.mjs} +52 -29
- package/package.json +3 -3
|
@@ -3026,7 +3026,7 @@ function SideBar(props) {
|
|
|
3026
3026
|
boxShadow: "0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",
|
|
3027
3027
|
maxWidth: expanded ? 300 : 54,
|
|
3028
3028
|
padding: 0,
|
|
3029
|
-
zIndex:
|
|
3029
|
+
zIndex: 9,
|
|
3030
3030
|
boxSizing: "border-box",
|
|
3031
3031
|
[t2.fn.smallerThan("md")]: {
|
|
3032
3032
|
position: "absolute",
|
|
@@ -3593,7 +3593,7 @@ function TableFooter(props) {
|
|
|
3593
3593
|
{
|
|
3594
3594
|
p: "md",
|
|
3595
3595
|
justify: "space-between",
|
|
3596
|
-
align: "
|
|
3596
|
+
align: "center",
|
|
3597
3597
|
direction: { base: "column-reverse", md: "row" },
|
|
3598
3598
|
gap: "sm"
|
|
3599
3599
|
},
|
|
@@ -4254,7 +4254,7 @@ function TableView({
|
|
|
4254
4254
|
sx: {
|
|
4255
4255
|
position: "relative",
|
|
4256
4256
|
top: 0,
|
|
4257
|
-
zIndex:
|
|
4257
|
+
zIndex: 8
|
|
4258
4258
|
}
|
|
4259
4259
|
},
|
|
4260
4260
|
table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ React19__default.createElement(Box, { component: "tr", key: headerGroup.id, sx: { fontWeight: "normal" } }, headerGroup.headers.map((header) => {
|
|
@@ -5034,7 +5034,7 @@ function Toolbar({
|
|
|
5034
5034
|
}) {
|
|
5035
5035
|
const { translate: t } = useTranslation();
|
|
5036
5036
|
const theme = useMantineTheme();
|
|
5037
|
-
const smallerThanLg = useMediaQuery(`(max-width: ${theme.breakpoints.lg})`);
|
|
5037
|
+
const smallerThanLg = useMediaQuery(`(max-width: ${theme.breakpoints.lg}${/(?:px|em|rem|vh|vw|%)$/.test(theme.breakpoints.lg) ? "" : "px"})`);
|
|
5038
5038
|
const { toolbarConfig } = useSettings();
|
|
5039
5039
|
const settings = /* @__PURE__ */ React19__default.createElement(
|
|
5040
5040
|
Flex,
|
|
@@ -5164,34 +5164,57 @@ function SuccessResult(props) {
|
|
|
5164
5164
|
const tabHandler = useCallback((newTab) => {
|
|
5165
5165
|
actions2.switchPanel(newTab);
|
|
5166
5166
|
}, []);
|
|
5167
|
-
return /* @__PURE__ */ React19__default.createElement(
|
|
5167
|
+
return /* @__PURE__ */ React19__default.createElement(
|
|
5168
5168
|
Flex,
|
|
5169
5169
|
{
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5170
|
+
gap: "xs",
|
|
5171
|
+
direction: "column",
|
|
5172
|
+
w: "100%",
|
|
5173
|
+
className: props.className,
|
|
5174
|
+
h: "100%",
|
|
5175
|
+
sx: { overflow: "hidden" }
|
|
5176
5176
|
},
|
|
5177
|
-
/* @__PURE__ */ React19__default.createElement(
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5177
|
+
/* @__PURE__ */ React19__default.createElement(
|
|
5178
|
+
Paper,
|
|
5179
|
+
{
|
|
5180
|
+
ref: fullscreen.ref,
|
|
5181
|
+
id: "query-results-success",
|
|
5182
|
+
h: "100%",
|
|
5183
|
+
sx: { display: "flex", flexDirection: "column", overflow: "hidden", border: "1px solid red" }
|
|
5184
|
+
},
|
|
5185
|
+
/* @__PURE__ */ React19__default.createElement(
|
|
5186
|
+
Flex,
|
|
5187
|
+
{
|
|
5188
|
+
sx: (t2) => ({
|
|
5189
|
+
alignItems: "center",
|
|
5190
|
+
background: t2.colorScheme === "dark" ? t2.colors.dark[7] : t2.colors.gray[1],
|
|
5191
|
+
justifyContent: "space-between"
|
|
5192
|
+
}),
|
|
5193
|
+
w: "100%",
|
|
5194
|
+
h: "fit-content"
|
|
5195
|
+
},
|
|
5196
|
+
/* @__PURE__ */ React19__default.createElement(ExplorerTabs, { panels, onChange: tabHandler, value: panelKey }),
|
|
5197
|
+
(!queryItem.panel || queryItem.panel === "table") && /* @__PURE__ */ React19__default.createElement(Group, { sx: { display: "flex", flex: "0 1 auto", gap: "0.5rem" }, mr: "sm", noWrap: true }, /* @__PURE__ */ React19__default.createElement(Toolbar, { table, fullscreen }), /* @__PURE__ */ React19__default.createElement(DrawerMenu_default, null))
|
|
5198
|
+
),
|
|
5199
|
+
isPreviewMode && /* @__PURE__ */ React19__default.createElement(Alert, { id: "alert-load-all-results", color: "yellow", radius: 0, sx: { flex: "0 0 auto" } }, /* @__PURE__ */ React19__default.createElement(Group, { position: "apart" }, /* @__PURE__ */ React19__default.createElement(Text, null, /* @__PURE__ */ React19__default.createElement(Text, { fw: 700, span: true }, t("previewMode.title_preview"), ":", " "), /* @__PURE__ */ React19__default.createElement(Text, { span: true }, t("previewMode.description_preview", { limit: previewLimit }))), /* @__PURE__ */ React19__default.createElement(PreviewModeSwitch, null))),
|
|
5200
|
+
/* @__PURE__ */ React19__default.createElement(Box, { id: "query-results-content", sx: { flex: "1 1 calc(100% - 70px)", maxHeight: "calc(100% - 70px)", border: "1px solid green" } }, /* @__PURE__ */ React19__default.createElement(Suspense, { fallback: props.children }, /* @__PURE__ */ React19__default.createElement(Flex, { h: "100%" }, /* @__PURE__ */ React19__default.createElement(Box, { sx: { flex: "1 1", overflowX: "scroll" } }, /* @__PURE__ */ React19__default.createElement(
|
|
5201
|
+
CurrentComponent,
|
|
5202
|
+
{
|
|
5203
|
+
panelKey: `${panelKey}-${panelMeta}`,
|
|
5204
|
+
cube,
|
|
5205
|
+
params,
|
|
5206
|
+
result,
|
|
5207
|
+
table,
|
|
5208
|
+
isError,
|
|
5209
|
+
isLoading,
|
|
5210
|
+
data,
|
|
5211
|
+
columns,
|
|
5212
|
+
pagination,
|
|
5213
|
+
setPagination
|
|
5214
|
+
}
|
|
5215
|
+
)))))
|
|
5216
|
+
)
|
|
5217
|
+
);
|
|
5195
5218
|
}
|
|
5196
5219
|
|
|
5197
5220
|
// src/components/ParamsExplorer.tsx
|
package/package.json
CHANGED