@sis-cc/dotstatsuite-components 21.0.2 → 21.1.0

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.
@@ -61,7 +61,7 @@ import getISOWeek from "date-fns/get_iso_week";
61
61
  import makeStyles from "@mui/styles/makeStyles";
62
62
  import { useTheme } from "@mui/material/styles";
63
63
  const name$1 = "@sis-cc/dotstatsuite-components";
64
- const version$1 = "21.0.2";
64
+ const version$1 = "21.1.0";
65
65
  const meta$1 = {
66
66
  name: name$1,
67
67
  version: version$1
@@ -3787,6 +3787,7 @@ const parseMetadataSeries = (metadataJson, options2) => {
3787
3787
  ({ series: series2 = [], observation = [] }) => concat$1(series2, observation),
3788
3788
  (dims) => isEmpty$1(options2.dimensions || []) ? dims : props$1(pluck$1("id", options2.dimensions), indexBy$1(prop$1("id"), dims))
3789
3789
  )(metadataJson);
3790
+ const { notDisplayedIds = {} } = options2;
3790
3791
  const metadataSeries = pipe$1(
3791
3792
  pathOr$1({}, ["data", "dataSets", 0, "dimensionGroupAttributes"]),
3792
3793
  (series2) => reduce$1(
@@ -3812,7 +3813,8 @@ const parseMetadataSeries = (metadataJson, options2) => {
3812
3813
  addIndex$1(reduce$1)(
3813
3814
  (acc2, valueIndex, attrIndex) => {
3814
3815
  const attribute = nth$1(attrIndex, metadataAttributes);
3815
- if (isNil$1(valueIndex) && !attribute.isPresentational) {
3816
+ const isHidden = has$8(attribute.id, notDisplayedIds);
3817
+ if (isNil$1(valueIndex) && !attribute.isPresentational || isHidden) {
3816
3818
  return acc2;
3817
3819
  }
3818
3820
  const attrOptions = pathOr$1({}, ["attributes", attribute.id], options2);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sis-cc/dotstatsuite-components",
3
3
  "description": "Set components based on React.",
4
- "version": "21.0.2",
4
+ "version": "21.1.0",
5
5
  "type": "module",
6
6
  "module": "./dist/dotstatsuite-components.js",
7
7
  "files": [