@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.
@@ -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: 99,
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: "flex-end",
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: 10
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(Flex, { gap: "xs", direction: "column", w: "100%", className: props.className }, /* @__PURE__ */ React19__default.createElement(Paper, { ref: fullscreen.ref, id: "query-results-success", h: "100%" }, /* @__PURE__ */ React19__default.createElement(
5167
+ return /* @__PURE__ */ React19__default.createElement(
5168
5168
  Flex,
5169
5169
  {
5170
- sx: (t2) => ({
5171
- alignItems: "center",
5172
- background: t2.colorScheme === "dark" ? t2.colors.dark[7] : t2.colors.gray[1],
5173
- justifyContent: "space-between"
5174
- }),
5175
- w: "100%"
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(ExplorerTabs, { panels, onChange: tabHandler, value: panelKey }),
5178
- (!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))
5179
- ), 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))), /* @__PURE__ */ React19__default.createElement(Box, { id: "query-results-content", sx: { flex: "1 1", height: "calc(100% - 60px)" } }, /* @__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(
5180
- CurrentComponent,
5181
- {
5182
- panelKey: `${panelKey}-${panelMeta}`,
5183
- cube,
5184
- params,
5185
- result,
5186
- table,
5187
- isError,
5188
- isLoading,
5189
- data,
5190
- columns,
5191
- pagination,
5192
- setPagination
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
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@datawheel/data-explorer",
3
- "version": "0.3.5",
4
- "main": "./dist/main.js",
5
- "types": "./dist/main.d.ts",
3
+ "version": "0.3.7-rc.1",
4
+ "main": "./dist/main.mjs",
5
+ "types": "./dist/main.d.mts",
6
6
  "files": [
7
7
  "dist",
8
8
  "README.md"