@dative-gpi/foundation-shared-components 1.0.186-tile-list-12 → 1.0.188
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.
|
@@ -493,7 +493,7 @@
|
|
|
493
493
|
:headers="innerHeaders.filter(h => !$props.sneakyHeaders.includes(h.value))"
|
|
494
494
|
:selectable="$props.selectable"
|
|
495
495
|
:singleSelect="$props.singleSelect"
|
|
496
|
-
:to="$props.itemTo"
|
|
496
|
+
:to="$props.itemTo && $props.itemTo(item.raw)"
|
|
497
497
|
:bottomColor="$props.color"
|
|
498
498
|
:item="item.raw"
|
|
499
499
|
:key="index"
|
|
@@ -666,7 +666,7 @@
|
|
|
666
666
|
:headers="innerHeaders.filter(h => !$props.sneakyHeaders.includes(h.value))"
|
|
667
667
|
:selectable="$props.selectable"
|
|
668
668
|
:singleSelect="$props.singleSelect"
|
|
669
|
-
:to="$props.itemTo"
|
|
669
|
+
:to="$props.itemTo && $props.itemTo(item.raw)"
|
|
670
670
|
:bottomColor="$props.color"
|
|
671
671
|
:item="item.raw"
|
|
672
672
|
:key="index"
|
|
@@ -724,7 +724,7 @@
|
|
|
724
724
|
|
|
725
725
|
<script lang="ts">
|
|
726
726
|
import { computed, defineComponent, nextTick, onMounted, onUnmounted, type PropType, type Ref, ref, type Slot, type StyleValue, watch } from "vue";
|
|
727
|
-
import { useRouter } from "vue-router";
|
|
727
|
+
import { useRouter, type RouteLocation } from "vue-router";
|
|
728
728
|
|
|
729
729
|
import { ColorEnum, type FSDataTableColumn, type FSDataTableFilter, type FSDataTableOrder, type FSToggle } from "@dative-gpi/foundation-shared-components/models";
|
|
730
730
|
import { useBreakpoints, useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
@@ -805,7 +805,7 @@ export default defineComponent({
|
|
|
805
805
|
default: "id"
|
|
806
806
|
},
|
|
807
807
|
itemTo: {
|
|
808
|
-
type: Function
|
|
808
|
+
type: Function as PropType<(item: any) => Partial<RouteLocation>>,
|
|
809
809
|
required: false,
|
|
810
810
|
default: null
|
|
811
811
|
},
|
|
@@ -1141,7 +1141,6 @@ export default defineComponent({
|
|
|
1141
1141
|
});
|
|
1142
1142
|
|
|
1143
1143
|
const onClickLibrary = computed((): { [key: string]: Function | boolean } => {
|
|
1144
|
-
console.log(props["onClick:row"]);
|
|
1145
1144
|
if (props["onClick:row"] || props.itemTo) {
|
|
1146
1145
|
return {
|
|
1147
1146
|
clickable: true,
|
|
@@ -1154,10 +1153,7 @@ export default defineComponent({
|
|
|
1154
1153
|
}
|
|
1155
1154
|
},
|
|
1156
1155
|
mobile: (event: any, item: any) => {
|
|
1157
|
-
if (props.itemTo
|
|
1158
|
-
router.push(props.itemTo(item.raw));
|
|
1159
|
-
}
|
|
1160
|
-
else {
|
|
1156
|
+
if (!props.itemTo) {
|
|
1161
1157
|
emit("click:row", item.raw);
|
|
1162
1158
|
}
|
|
1163
1159
|
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
@update:modelValue="onSearch"
|
|
10
10
|
/>
|
|
11
11
|
<FSFadeOut
|
|
12
|
-
v-if="$props.direction ==
|
|
12
|
+
v-if="$props.direction == ListDirections.Column"
|
|
13
13
|
:maxHeight="$props.maxHeight"
|
|
14
14
|
:maskHeight="0"
|
|
15
15
|
>
|
|
@@ -226,6 +226,7 @@ export default defineComponent({
|
|
|
226
226
|
return {
|
|
227
227
|
actualSearch,
|
|
228
228
|
filteredItems,
|
|
229
|
+
ListDirections,
|
|
229
230
|
onSearch,
|
|
230
231
|
isSelected,
|
|
231
232
|
toggleSelect
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
|
|
5
5
|
},
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "1.0.
|
|
7
|
+
"version": "1.0.188",
|
|
8
8
|
"description": "",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dative-gpi/foundation-shared-domain": "1.0.
|
|
17
|
-
"@dative-gpi/foundation-shared-services": "1.0.
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.0.188",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.0.188"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"sass": "1.71.1",
|
|
39
39
|
"sass-loader": "13.3.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "5d77493228261fb2a57c5a2e233152715b9322e3"
|
|
42
42
|
}
|
package/tools/chartsTools.ts
CHANGED
|
@@ -374,10 +374,16 @@ export const yAxisTypeFromSerieType = (serieType: SerieType): AxisType[] => {
|
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
export const
|
|
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;
|