@datawheel/data-explorer 1.0.12 → 1.0.14

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.
Files changed (2) hide show
  1. package/dist/main.mjs +15 -6
  2. package/package.json +1 -1
package/dist/main.mjs CHANGED
@@ -382,7 +382,7 @@ var explorerTranslation = {
382
382
  },
383
383
  locale: {
384
384
  title: "Multilingual",
385
- text1: "The Data Explorer makes data available multiple languages.",
385
+ text1: "The Data Explorer makes data available in multiple languages.",
386
386
  text2: "Use the dropdown menu to change the output language of the data."
387
387
  },
388
388
  dataset: {
@@ -560,7 +560,14 @@ function SettingsProvider(props) {
560
560
  locale: locale || props.defaultLocale
561
561
  };
562
562
  },
563
- [props.formatters, props.previewLimit, props.toolbarConfig, locale, props.defaultLocale]
563
+ [
564
+ props.formatters,
565
+ props.previewLimit,
566
+ props.toolbarConfig,
567
+ locale,
568
+ props.defaultLocale,
569
+ props.defaultCube
570
+ ]
564
571
  );
565
572
  return /* @__PURE__ */ React13__default.createElement(TranslationProvider, { defaultLocale: props.defaultLocale, translations: props.translations }, /* @__PURE__ */ React13__default.createElement(ContextProvider, { value }, props.children));
566
573
  }
@@ -3505,9 +3512,10 @@ function MultiFilter({ header }) {
3505
3512
  data: drilldown.members.map((m) => {
3506
3513
  const idFormatter = idFormatters[`${localeLabel} ID`];
3507
3514
  const formattedKey = idFormatter ? idFormatter(m.key) : m.key;
3515
+ const key = formattedKey ? `(${formattedKey})` : formattedKey;
3508
3516
  return {
3509
3517
  value: `${m.key}`,
3510
- label: m.caption ? `${m.caption} (${formattedKey})` : `${formattedKey}`
3518
+ label: m.caption ? `${m.caption} ${key}` : `${key}`
3511
3519
  };
3512
3520
  }),
3513
3521
  clearButtonProps: { "aria-label": "Clear selection" },
@@ -3773,9 +3781,10 @@ function LevelItem({
3773
3781
  data: currentDrilldown.members.map((m) => {
3774
3782
  const idFormatter = idFormatters[`${label} ID`];
3775
3783
  const formattedKey = idFormatter ? idFormatter(m.key) : m.key;
3784
+ const key = formattedKey ? `(${formattedKey})` : formattedKey;
3776
3785
  return {
3777
3786
  value: `${m.key}`,
3778
- label: m.caption ? `${m.caption} (${formattedKey})` : `${formattedKey}`
3787
+ label: m.caption ? `${m.caption} ${key}` : `${key}`
3779
3788
  };
3780
3789
  }),
3781
3790
  clearable: true,
@@ -6295,12 +6304,12 @@ function ExplorerComponent(props) {
6295
6304
  serverConfig: props.serverConfig,
6296
6305
  serverURL: props.serverURL,
6297
6306
  defaultLocale,
6298
- translations: props.translations
6307
+ translations: props.translations,
6308
+ defaultCube: props.defaultCube
6299
6309
  },
6300
6310
  /* @__PURE__ */ React13__default.createElement(AppProviders, null, /* @__PURE__ */ React13__default.createElement(ExplorerTour, { tourConfig: { ...defaultTourConfig, ...tourConfig } }, /* @__PURE__ */ React13__default.createElement(
6301
6311
  ExplorerContent,
6302
6312
  {
6303
- defaultCube: props.defaultCube,
6304
6313
  defaultOpenParams,
6305
6314
  height,
6306
6315
  panels,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datawheel/data-explorer",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "main": "./dist/main.mjs",
5
5
  "types": "./dist/main.d.mts",
6
6
  "files": [