@dative-gpi/foundation-shared-components 1.0.184 → 1.0.185

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-shared-components",
3
3
  "sideEffects": false,
4
- "version": "1.0.184",
4
+ "version": "1.0.185",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,8 +10,8 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-shared-domain": "1.0.184",
14
- "@dative-gpi/foundation-shared-services": "1.0.184"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.185",
14
+ "@dative-gpi/foundation-shared-services": "1.0.185"
15
15
  },
16
16
  "peerDependencies": {
17
17
  "@dative-gpi/bones-ui": "^1.0.0",
@@ -35,5 +35,5 @@
35
35
  "sass": "1.71.1",
36
36
  "sass-loader": "13.3.2"
37
37
  },
38
- "gitHead": "e433eba0bd97d095ea708e634e8128606d8d02ef"
38
+ "gitHead": "b2b0c5c6f53ecc2da483b659bb48ece7d1112f95"
39
39
  }
@@ -374,10 +374,16 @@ export const yAxisTypeFromSerieType = (serieType: SerieType): AxisType[] => {
374
374
  }
375
375
  }
376
376
 
377
- export const hasAxis = (chartType: ChartType) => {
377
+ export const hasYAxis = (chartType: ChartType) => {
378
+ return chartType == ChartType.XY;
379
+ }
380
+
381
+ export const hasXAxis = (chartType: ChartType) => {
378
382
  switch (chartType) {
379
383
  case ChartType.XY:
380
384
  case ChartType.Heatmap:
385
+ case ChartType.Gauge:
386
+ case ChartType.Slider:
381
387
  return true;
382
388
  default:
383
389
  return false;