@dative-gpi/foundation-shared-components 1.0.183 → 1.0.184-chart-axis

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.
@@ -348,7 +348,7 @@
348
348
  name="clear"
349
349
  >
350
350
  <FSButton
351
- v-if="$props.clearable && $props.disabled && !!$props.modelValue"
351
+ v-if="$props.clearable && !$props.disabled && !!$props.modelValue"
352
352
  icon="mdi-close"
353
353
  variant="icon"
354
354
  :color="ColorEnum.Dark"
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.183",
4
+ "version": "1.0.184-chart-axis",
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.183",
14
- "@dative-gpi/foundation-shared-services": "1.0.183"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.184-chart-axis",
14
+ "@dative-gpi/foundation-shared-services": "1.0.184-chart-axis"
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": "29633d62b5b516cc5dde10c9c79f36217d64292c"
38
+ "gitHead": "acc786c5b9b183753ebb7ec3927dec0fa431b0e0"
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;