@datawheel/data-explorer 1.0.12 → 1.0.13
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.mjs +5 -3
- 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: {
|
|
@@ -3505,9 +3505,10 @@ function MultiFilter({ header }) {
|
|
|
3505
3505
|
data: drilldown.members.map((m) => {
|
|
3506
3506
|
const idFormatter = idFormatters[`${localeLabel} ID`];
|
|
3507
3507
|
const formattedKey = idFormatter ? idFormatter(m.key) : m.key;
|
|
3508
|
+
const key = formattedKey ? `(${formattedKey})` : formattedKey;
|
|
3508
3509
|
return {
|
|
3509
3510
|
value: `${m.key}`,
|
|
3510
|
-
label: m.caption ? `${m.caption}
|
|
3511
|
+
label: m.caption ? `${m.caption} ${key}` : `${key}`
|
|
3511
3512
|
};
|
|
3512
3513
|
}),
|
|
3513
3514
|
clearButtonProps: { "aria-label": "Clear selection" },
|
|
@@ -3773,9 +3774,10 @@ function LevelItem({
|
|
|
3773
3774
|
data: currentDrilldown.members.map((m) => {
|
|
3774
3775
|
const idFormatter = idFormatters[`${label} ID`];
|
|
3775
3776
|
const formattedKey = idFormatter ? idFormatter(m.key) : m.key;
|
|
3777
|
+
const key = formattedKey ? `(${formattedKey})` : formattedKey;
|
|
3776
3778
|
return {
|
|
3777
3779
|
value: `${m.key}`,
|
|
3778
|
-
label: m.caption ? `${m.caption}
|
|
3780
|
+
label: m.caption ? `${m.caption} ${key}` : `${key}`
|
|
3779
3781
|
};
|
|
3780
3782
|
}),
|
|
3781
3783
|
clearable: true,
|