@dative-gpi/foundation-shared-components 0.0.90 → 0.0.91
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 +34 -5
- package/components/FSClickable.vue +38 -16
- package/components/FSClock.vue +0 -3
- package/components/FSDialog.vue +46 -11
- package/components/FSDialogForm.vue +7 -28
- package/components/FSDialogRemove.vue +2 -1
- package/components/FSDialogSubmit.vue +7 -28
- package/components/FSDivider.vue +16 -6
- package/components/FSFadeOut.vue +32 -59
- package/components/FSSlideGroup.vue +14 -5
- package/components/FSSlider.vue +21 -9
- package/components/FSWindow.vue +13 -1
- package/components/FSWrapGroup.vue +2 -1
- package/components/deviceOrganisations/FSConnectivity.vue +4 -1
- package/components/deviceOrganisations/FSConnectivityCard.vue +31 -12
- package/components/deviceOrganisations/FSStatus.vue +4 -1
- package/components/deviceOrganisations/FSStatusCard.vue +48 -23
- package/components/deviceOrganisations/FSStatusesCarousel.vue +57 -39
- package/components/deviceOrganisations/FSWorstAlert.vue +4 -1
- package/components/deviceOrganisations/FSWorstAlertCard.vue +32 -14
- package/components/fields/FSAutocompleteField.vue +2 -7
- package/components/fields/FSSelectField.vue +1 -0
- package/components/lists/FSDataTableUI.vue +82 -33
- package/components/lists/FSFilterButton.vue +38 -24
- package/components/lists/FSHeaderButton.vue +21 -13
- package/components/lists/FSHiddenButton.vue +33 -15
- package/components/tiles/FSDeviceOrganisationTileUI.vue +3 -1
- package/components/tiles/FSFolderTileUI.vue +1 -1
- package/package.json +4 -4
- package/styles/components/fs_autocomplete_field.scss +7 -2
- package/styles/components/fs_chip.scss +1 -8
- package/styles/components/fs_dialog.scss +6 -18
- package/styles/components/fs_divider.scss +8 -2
- package/styles/components/fs_fade_out.scss +8 -23
- package/styles/components/fs_filter_button.scss +4 -4
- package/styles/components/fs_header_button.scss +4 -0
- package/styles/components/fs_select_field.scss +4 -3
- package/styles/components/fs_text_area.scss +0 -1
- package/styles/components/index.scss +0 -1
- package/styles/globals/overrides.scss +0 -4
- package/themes/default.ts +1 -1
- package/components/FSCarousel.vue +0 -72
- package/styles/components/fs_carousel.scss +0 -9
|
@@ -35,18 +35,19 @@
|
|
|
35
35
|
|
|
36
36
|
.v-overlay-container > .v-overlay > .v-select__content {
|
|
37
37
|
box-shadow: 0px 5px 8px 0px #00000029;
|
|
38
|
+
max-width: none !important;
|
|
38
39
|
border-radius: 4px;
|
|
39
40
|
|
|
40
41
|
& > .v-list {
|
|
41
42
|
@extend .fs-hide-y-scrollbar;
|
|
42
43
|
|
|
43
44
|
background-color: var(--fs-select-field-background-color);
|
|
45
|
+
padding: 2px 8px 2px 16px;
|
|
44
46
|
border-radius: 4px;
|
|
45
|
-
margin-top: 4px;
|
|
46
|
-
padding: 2px;
|
|
47
47
|
|
|
48
48
|
& .v-list-item {
|
|
49
|
-
border-radius: 4px;
|
|
49
|
+
border-radius: 4px !important;
|
|
50
|
+
margin-top: 2px !important;
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
53
|
}
|
package/themes/default.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { ThemeDefinition } from "vuetify";
|
|
|
3
3
|
export const DefaultTheme: ThemeDefinition = {
|
|
4
4
|
dark: false,
|
|
5
5
|
colors: {
|
|
6
|
-
"background": "#
|
|
6
|
+
"background": "#FAFBFC",
|
|
7
7
|
"light" : "#E1E2E3", // hsv(216, 1, 89)
|
|
8
8
|
"dark" : "#3F4040", // hsv(211, 1, 25)
|
|
9
9
|
"primary" : "#0059E5", // hsv(217, 100, 90)
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-carousel
|
|
3
|
-
:hideDelimiters="true"
|
|
4
|
-
:class="classes"
|
|
5
|
-
:style="style"
|
|
6
|
-
v-bind="$attrs"
|
|
7
|
-
>
|
|
8
|
-
<template v-for="(_, name) in slots" v-slot:[name]="slotData">
|
|
9
|
-
<slot :name="name" v-bind="slotData" />
|
|
10
|
-
</template>
|
|
11
|
-
<v-carousel-item
|
|
12
|
-
v-for="(component, index) in getChildren('default')"
|
|
13
|
-
:value="value(component, index)"
|
|
14
|
-
:key="index"
|
|
15
|
-
>
|
|
16
|
-
<component
|
|
17
|
-
:is="component"
|
|
18
|
-
/>
|
|
19
|
-
</v-carousel-item>
|
|
20
|
-
</v-carousel>
|
|
21
|
-
</template>
|
|
22
|
-
|
|
23
|
-
<script lang="ts">
|
|
24
|
-
import { computed, defineComponent, PropType, VNode } from "vue";
|
|
25
|
-
|
|
26
|
-
import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/composables";
|
|
27
|
-
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
28
|
-
import { sizeToVar } from "@dative-gpi/foundation-shared-components/utils";
|
|
29
|
-
|
|
30
|
-
export default defineComponent({
|
|
31
|
-
name: "FSCarousel",
|
|
32
|
-
props: {
|
|
33
|
-
height: {
|
|
34
|
-
type: [Array, String, Number] as PropType<string[] | number[] | string | number>,
|
|
35
|
-
required: false,
|
|
36
|
-
default: "100%"
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
setup(props) {
|
|
40
|
-
const { slots, getChildren } = useSlots();
|
|
41
|
-
const { getColors } = useColors();
|
|
42
|
-
|
|
43
|
-
delete slots.default;
|
|
44
|
-
|
|
45
|
-
const backgrounds = getColors(ColorEnum.Background);
|
|
46
|
-
|
|
47
|
-
const style = computed((): { [key: string] : string | undefined } => {
|
|
48
|
-
return {
|
|
49
|
-
"--fs-carousel-height" : sizeToVar(props.height),
|
|
50
|
-
"--fs-carousel-background-color": backgrounds.base
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
const classes = computed((): string[] => {
|
|
55
|
-
const classNames = ["fs-carousel", "fs-background"];
|
|
56
|
-
return classNames;
|
|
57
|
-
});
|
|
58
|
-
|
|
59
|
-
const value = (component: VNode, index: number): any => {
|
|
60
|
-
return component?.props?.value ?? index;
|
|
61
|
-
};
|
|
62
|
-
|
|
63
|
-
return {
|
|
64
|
-
classes,
|
|
65
|
-
slots,
|
|
66
|
-
style,
|
|
67
|
-
getChildren,
|
|
68
|
-
value
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
})
|
|
72
|
-
</script>
|