@dative-gpi/foundation-shared-components 0.0.68 → 0.0.69
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.
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
|
|
83
83
|
<script lang="ts">
|
|
84
84
|
import { computed, defineComponent, PropType } from "vue";
|
|
85
|
-
import { RouteLocation
|
|
85
|
+
import { RouteLocation } from "vue-router";
|
|
86
86
|
|
|
87
87
|
import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
88
88
|
import { useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
@@ -155,7 +155,6 @@ export default defineComponent({
|
|
|
155
155
|
emits: ["click"],
|
|
156
156
|
setup(props, { emit }) {
|
|
157
157
|
const { getColors } = useColors();
|
|
158
|
-
const router = useRouter();
|
|
159
158
|
|
|
160
159
|
const colors = computed(() => getColors(props.color));
|
|
161
160
|
const backgrounds = getColors(ColorEnum.Background);
|
package/components/FSLink.vue
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
|
|
25
25
|
<script lang="ts">
|
|
26
26
|
import { computed, defineComponent, PropType } from "vue";
|
|
27
|
-
import { RouteLocation
|
|
27
|
+
import { RouteLocation } from "vue-router";
|
|
28
28
|
|
|
29
29
|
import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
30
30
|
import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
@@ -76,7 +76,6 @@ export default defineComponent({
|
|
|
76
76
|
setup(props) {
|
|
77
77
|
const { getColors } = useColors();
|
|
78
78
|
const { slots } = useSlots();
|
|
79
|
-
const router = useRouter();
|
|
80
79
|
|
|
81
80
|
const colors = computed(() => getColors(props.color));
|
|
82
81
|
|
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
<template>
|
|
2
|
+
<FSClickable
|
|
3
|
+
v-if="$props.href || $props.to || $attrs.onClick"
|
|
4
|
+
class="fs-tile"
|
|
5
|
+
padding="12px"
|
|
6
|
+
:height="height"
|
|
7
|
+
:width="width"
|
|
8
|
+
:style="style"
|
|
9
|
+
:href="$props.href"
|
|
10
|
+
:to="$props.to"
|
|
11
|
+
v-bind="$attrs"
|
|
12
|
+
>
|
|
13
|
+
<slot />
|
|
14
|
+
<FSCard
|
|
15
|
+
v-if="$props.editable"
|
|
16
|
+
class="fs-tile-checkbox"
|
|
17
|
+
:border="false"
|
|
18
|
+
>
|
|
19
|
+
<FSCheckbox
|
|
20
|
+
:color="ColorEnum.Dark"
|
|
21
|
+
:modelValue="$props.modelValue"
|
|
22
|
+
@update:modelValue="() => $emit('update:modelValue', !$props.modelValue)"
|
|
23
|
+
/>
|
|
24
|
+
</FSCard>
|
|
25
|
+
<div
|
|
26
|
+
class="fs-tile-bottom"
|
|
27
|
+
:style="style"
|
|
28
|
+
/>
|
|
29
|
+
</FSClickable>
|
|
2
30
|
<FSCard
|
|
31
|
+
v-else
|
|
3
32
|
class="fs-tile"
|
|
4
33
|
padding="12px"
|
|
5
34
|
:style="style"
|
|
@@ -27,20 +56,33 @@
|
|
|
27
56
|
|
|
28
57
|
<script lang="ts">
|
|
29
58
|
import { computed, defineComponent, PropType } from "vue";
|
|
59
|
+
import { RouteLocation } from "vue-router";
|
|
30
60
|
|
|
31
61
|
import { useBreakpoints, useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
32
62
|
import { ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
33
63
|
|
|
64
|
+
import FSClickable from "../FSClickable.vue";
|
|
34
65
|
import FSCheckbox from "../FSCheckbox.vue";
|
|
35
66
|
import FSCard from "../FSCard.vue";
|
|
36
67
|
|
|
37
68
|
export default defineComponent({
|
|
38
69
|
name: "FSTile",
|
|
39
70
|
components: {
|
|
71
|
+
FSClickable,
|
|
40
72
|
FSCheckbox,
|
|
41
73
|
FSCard
|
|
42
74
|
},
|
|
43
75
|
props: {
|
|
76
|
+
to: {
|
|
77
|
+
type: [String, Object] as PropType<string | RouteLocation | null>,
|
|
78
|
+
required: false,
|
|
79
|
+
default: null
|
|
80
|
+
},
|
|
81
|
+
href: {
|
|
82
|
+
type: String as PropType<string | null>,
|
|
83
|
+
required: false,
|
|
84
|
+
default: null
|
|
85
|
+
},
|
|
44
86
|
modelValue: {
|
|
45
87
|
type: Boolean,
|
|
46
88
|
required: false,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-shared-components",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.69",
|
|
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": "0.0.
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "0.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "0.0.69",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "0.0.69",
|
|
15
15
|
"@fontsource/montserrat": "^5.0.16",
|
|
16
16
|
"@lexical/clipboard": "^0.12.5",
|
|
17
17
|
"@lexical/history": "^0.12.5",
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
"sass": "^1.69.5",
|
|
33
33
|
"sass-loader": "^13.3.2"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "f42750502e3f9499a2df817d41a2e89847c83cdd"
|
|
36
36
|
}
|