@dative-gpi/foundation-shared-components 1.0.142-alert-filter-chart → 1.0.142-role2
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/components/FSChip.vue
CHANGED
|
@@ -1,50 +1,56 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
:
|
|
4
|
-
|
|
5
|
-
:class="classes"
|
|
6
|
-
:style="style"
|
|
7
|
-
:wrap="false"
|
|
8
|
-
v-bind="$attrs"
|
|
2
|
+
<component
|
|
3
|
+
:is="$props.to ? 'FSRouterLink' : 'div'"
|
|
4
|
+
v-bind="$props.to ? { to: $props.to } : {}"
|
|
9
5
|
>
|
|
10
|
-
<
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
<FSRow
|
|
7
|
+
:align="$props.align"
|
|
8
|
+
:width="$props.width"
|
|
9
|
+
:class="classes"
|
|
10
|
+
:style="style"
|
|
11
|
+
:wrap="false"
|
|
12
|
+
v-bind="$attrs"
|
|
13
13
|
>
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
<slot
|
|
15
|
+
name="prepend"
|
|
16
|
+
v-bind="{ color: $props.color, colors }"
|
|
17
17
|
>
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
class="fs-chip-label"
|
|
18
|
+
<FSIcon
|
|
19
|
+
v-if="$props.prependIcon"
|
|
20
|
+
size="s"
|
|
21
|
+
>
|
|
22
|
+
{{ $props.prependIcon }}
|
|
23
|
+
</FSIcon>
|
|
24
|
+
</slot>
|
|
25
|
+
<slot
|
|
26
|
+
v-bind="{ color: $props.color, colors }"
|
|
28
27
|
>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
<FSSpan
|
|
29
|
+
v-if="$props.label"
|
|
30
|
+
font="text-overline"
|
|
31
|
+
class="fs-chip-label"
|
|
32
|
+
>
|
|
33
|
+
{{ $props.label }}
|
|
34
|
+
</FSSpan>
|
|
35
|
+
</slot>
|
|
36
|
+
<slot
|
|
37
|
+
name="append"
|
|
38
|
+
v-bind="{ color: $props.color, colors }"
|
|
39
39
|
>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
<FSIcon
|
|
41
|
+
v-if="$props.appendIcon"
|
|
42
|
+
size="s"
|
|
43
|
+
>
|
|
44
|
+
{{ $props.appendIcon }}
|
|
45
|
+
</FSIcon>
|
|
46
|
+
</slot>
|
|
47
|
+
</FSRow>
|
|
48
|
+
</component>
|
|
44
49
|
</template>
|
|
45
50
|
|
|
46
51
|
<script lang="ts">
|
|
47
52
|
import { computed, defineComponent, type PropType, type StyleValue } from "vue";
|
|
53
|
+
import { type RouteLocation } from "vue-router";
|
|
48
54
|
|
|
49
55
|
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
50
56
|
import { useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
@@ -53,6 +59,7 @@ import { sizeToVar } from "@dative-gpi/foundation-shared-components/utils";
|
|
|
53
59
|
import FSIcon from "./FSIcon.vue";
|
|
54
60
|
import FSSpan from "./FSSpan.vue";
|
|
55
61
|
import FSRow from "./FSRow.vue";
|
|
62
|
+
import FSRouterLink from '@dative-gpi/foundation-shared-components/components/FSRouterLink.vue';
|
|
56
63
|
|
|
57
64
|
export default defineComponent({
|
|
58
65
|
name: "FSChip",
|
|
@@ -61,6 +68,7 @@ export default defineComponent({
|
|
|
61
68
|
FSSpan,
|
|
62
69
|
FSRow
|
|
63
70
|
},
|
|
71
|
+
inheritsAttrs: false,
|
|
64
72
|
props: {
|
|
65
73
|
prependIcon: {
|
|
66
74
|
type: String as PropType<string | null>,
|
|
@@ -106,7 +114,12 @@ export default defineComponent({
|
|
|
106
114
|
type: String as PropType<"center-center" | "center-left">,
|
|
107
115
|
required: false,
|
|
108
116
|
default: "center-center"
|
|
109
|
-
}
|
|
117
|
+
},
|
|
118
|
+
to: {
|
|
119
|
+
type: Object as PropType<RouteLocation | null>,
|
|
120
|
+
required: false,
|
|
121
|
+
default: null
|
|
122
|
+
},
|
|
110
123
|
},
|
|
111
124
|
setup(props) {
|
|
112
125
|
const { getColors } = useColors();
|
|
@@ -165,6 +178,7 @@ export default defineComponent({
|
|
|
165
178
|
});
|
|
166
179
|
|
|
167
180
|
return {
|
|
181
|
+
FSRouterLink,
|
|
168
182
|
classes,
|
|
169
183
|
colors,
|
|
170
184
|
style
|
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.142-
|
|
4
|
+
"version": "1.0.142-role2",
|
|
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.142-
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.142-
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.142-role2",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.142-role2"
|
|
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": "
|
|
38
|
+
"gitHead": "dd557e7c850d8cf93e223b43862943a34680128b"
|
|
39
39
|
}
|