@dative-gpi/foundation-core-components 1.0.194 → 1.1.0-fix01

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.
@@ -41,17 +41,18 @@
41
41
  <template
42
42
  #item.tile="{ index, item }"
43
43
  >
44
- <FSClickable
44
+ <FSCard
45
45
  :key="index"
46
46
  padding="12px"
47
47
  height="60px"
48
48
  width="233px"
49
- :color="isSelected(item.id) ? ColorEnum.Primary : ColorEnum.Dark"
49
+ :variant="isSelected(item.id) ? CardVariants.Standard : CardVariants.Background"
50
+ :color="ColorEnum.Primary"
50
51
  @click="$emit('update:modelValue', [item.id])"
51
52
  v-bind="$attrs"
52
53
  >
53
54
  <template
54
- #default
55
+ #default="{ contentVariant }"
55
56
  >
56
57
  <FSRow
57
58
  align="center-center"
@@ -66,11 +67,11 @@
66
67
  <FSIcon
67
68
  :color="item.correlated ? ColorEnum.Primary : ColorEnum.Light"
68
69
  :icon="item.correlated ? 'mdi-link' : 'mdi-link-off'"
69
- variant="dark"
70
+ :variant="contentVariant"
70
71
  />
71
72
  </FSRow>
72
73
  </template>
73
- </FSClickable>
74
+ </FSCard>
74
75
  </template>
75
76
  </FSDataTable>
76
77
  </FSFadeOut>
@@ -81,7 +82,7 @@
81
82
  import { defineComponent, type PropType, ref, watch } from "vue";
82
83
  import _ from "lodash";
83
84
 
84
- import {ColorEnum} from "@dative-gpi/foundation-shared-components/models";
85
+ import {CardVariants, ColorEnum} from "@dative-gpi/foundation-shared-components/models";
85
86
 
86
87
  import { useDataCategories } from "@dative-gpi/foundation-core-services/composables";
87
88
  import type { DataCategoryFilters } from "@dative-gpi/foundation-core-domain/models";
@@ -89,10 +90,10 @@ import type { DataCategoryFilters } from "@dative-gpi/foundation-core-domain/mod
89
90
  import FSDataTable from "../FSDataTable.vue";
90
91
  import FSCol from "@dative-gpi/foundation-shared-components/components/FSCol.vue";
91
92
  import FSRow from "@dative-gpi/foundation-shared-components/components/FSRow.vue";
93
+ import FSCard from "@dative-gpi/foundation-shared-components/components/FSCard.vue";
92
94
  import FSIcon from "@dative-gpi/foundation-shared-components/components/FSIcon.vue";
93
95
  import FSSpan from "@dative-gpi/foundation-shared-components/components/FSSpan.vue";
94
96
  import FSFadeOut from "@dative-gpi/foundation-shared-components/components/FSFadeOut.vue";
95
- import FSClickable from "@dative-gpi/foundation-shared-components/components/FSClickable.vue";
96
97
  import FSSearchField from "@dative-gpi/foundation-shared-components/components/fields/FSSearchField.vue";
97
98
  import FSButtonCheckbox from "@dative-gpi/foundation-shared-components/components/buttons/FSButtonCheckbox.vue";
98
99
 
@@ -102,7 +103,7 @@ export default defineComponent({
102
103
  FSDataTable,
103
104
  FSCol,
104
105
  FSFadeOut,
105
- FSClickable,
106
+ FSCard,
106
107
  FSRow,
107
108
  FSSpan,
108
109
  FSSearchField,
@@ -146,6 +147,7 @@ export default defineComponent({
146
147
  return {
147
148
  fetchingDataCategories,
148
149
  dataCategories,
150
+ CardVariants,
149
151
  ColorEnum,
150
152
  search,
151
153
  correlated,
@@ -28,17 +28,18 @@
28
28
  <template
29
29
  #item.tile="{ index, item }"
30
30
  >
31
- <FSClickable
31
+ <FSCard
32
32
  :key="index"
33
33
  padding="12px"
34
34
  height="60px"
35
35
  width="233px"
36
- :color="isSelected(item.id) ? ColorEnum.Primary : ColorEnum.Light"
36
+ :color="ColorEnum.Primary"
37
+ :variant="isSelected(item.id) ? CardVariants.Standard : CardVariants.Background"
37
38
  @click="$emit('update:modelValue', [item.id])"
38
39
  v-bind="$attrs"
39
40
  >
40
41
  <template
41
- #default
42
+ #default="{ contentVariant }"
42
43
  >
43
44
  <FSRow
44
45
  align="center-center"
@@ -54,11 +55,12 @@
54
55
  <v-spacer/>
55
56
  <FSIcon
56
57
  :color="ColorEnum.Primary"
58
+ :variant="contentVariant"
57
59
  icon="mdi-link"
58
60
  />
59
61
  </FSRow>
60
62
  </template>
61
- </FSClickable>
63
+ </FSCard>
62
64
  </template>
63
65
  </FSDataTable>
64
66
  </template>
@@ -67,7 +69,7 @@
67
69
  import { defineComponent, type PropType, watch } from "vue";
68
70
  import _ from "lodash";
69
71
 
70
- import {ColorEnum} from "@dative-gpi/foundation-shared-components/models";
72
+ import { CardVariants, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
71
73
 
72
74
  import { useDataDefinitions } from "@dative-gpi/foundation-core-services/composables";
73
75
  import type { DataDefinitionFilters } from "@dative-gpi/foundation-core-domain/models";
@@ -76,7 +78,7 @@ import FSDataTable from "../FSDataTable.vue";
76
78
  import FSRow from "@dative-gpi/foundation-shared-components/components/FSRow.vue";
77
79
  import FSSpan from "@dative-gpi/foundation-shared-components/components/FSSpan.vue";
78
80
  import FSIcon from "@dative-gpi/foundation-shared-components/components/FSIcon.vue";
79
- import FSClickable from "@dative-gpi/foundation-shared-components/components/FSClickable.vue";
81
+ import FSCard from "@dative-gpi/foundation-shared-components/components/FSCard.vue";
80
82
  import FSButtonCheckbox from "@dative-gpi/foundation-shared-components/components/buttons/FSButtonCheckbox.vue";
81
83
 
82
84
  export default defineComponent({
@@ -84,7 +86,7 @@ export default defineComponent({
84
86
  components: {
85
87
  FSButtonCheckbox,
86
88
  FSDataTable,
87
- FSClickable,
89
+ FSCard,
88
90
  FSSpan,
89
91
  FSIcon,
90
92
  FSRow,
@@ -123,6 +125,7 @@ export default defineComponent({
123
125
  return {
124
126
  fetchingDataDefinitions,
125
127
  dataDefinitions,
128
+ CardVariants,
126
129
  ColorEnum,
127
130
  isSelected
128
131
  };
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.194",
7
+ "version": "1.1.0-fix01",
8
8
  "description": "",
9
9
  "publishConfig": {
10
10
  "access": "public"
@@ -13,21 +13,21 @@
13
13
  "author": "",
14
14
  "license": "ISC",
15
15
  "dependencies": {
16
- "@dative-gpi/foundation-core-domain": "1.0.194",
17
- "@dative-gpi/foundation-core-services": "1.0.194",
18
- "@dative-gpi/foundation-shared-components": "1.0.194",
19
- "@dative-gpi/foundation-shared-domain": "1.0.194",
20
- "@dative-gpi/foundation-shared-services": "1.0.194"
16
+ "@dative-gpi/foundation-core-domain": "1.1.0-fix01",
17
+ "@dative-gpi/foundation-core-services": "1.1.0-fix01",
18
+ "@dative-gpi/foundation-shared-components": "1.1.0-fix01",
19
+ "@dative-gpi/foundation-shared-domain": "1.1.0-fix01",
20
+ "@dative-gpi/foundation-shared-services": "1.1.0-fix01"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@dative-gpi/bones-ui": "^1.0.0",
24
24
  "color": "^4.2.3",
25
- "vue": "^3.4.38"
25
+ "vue": "^3.5.26"
26
26
  },
27
27
  "devDependencies": {
28
28
  "@types/color": "3.0.6",
29
29
  "sass": "1.71.1",
30
30
  "sass-loader": "13.3.2"
31
31
  },
32
- "gitHead": "def5664a8d5b97efeba050d6c166f1a3b9fb33e8"
32
+ "gitHead": "278e797abb199f1bf32f7758b2eec5e101537874"
33
33
  }