@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.
Files changed (43) hide show
  1. package/components/FSChip.vue +34 -5
  2. package/components/FSClickable.vue +38 -16
  3. package/components/FSClock.vue +0 -3
  4. package/components/FSDialog.vue +46 -11
  5. package/components/FSDialogForm.vue +7 -28
  6. package/components/FSDialogRemove.vue +2 -1
  7. package/components/FSDialogSubmit.vue +7 -28
  8. package/components/FSDivider.vue +16 -6
  9. package/components/FSFadeOut.vue +32 -59
  10. package/components/FSSlideGroup.vue +14 -5
  11. package/components/FSSlider.vue +21 -9
  12. package/components/FSWindow.vue +13 -1
  13. package/components/FSWrapGroup.vue +2 -1
  14. package/components/deviceOrganisations/FSConnectivity.vue +4 -1
  15. package/components/deviceOrganisations/FSConnectivityCard.vue +31 -12
  16. package/components/deviceOrganisations/FSStatus.vue +4 -1
  17. package/components/deviceOrganisations/FSStatusCard.vue +48 -23
  18. package/components/deviceOrganisations/FSStatusesCarousel.vue +57 -39
  19. package/components/deviceOrganisations/FSWorstAlert.vue +4 -1
  20. package/components/deviceOrganisations/FSWorstAlertCard.vue +32 -14
  21. package/components/fields/FSAutocompleteField.vue +2 -7
  22. package/components/fields/FSSelectField.vue +1 -0
  23. package/components/lists/FSDataTableUI.vue +82 -33
  24. package/components/lists/FSFilterButton.vue +38 -24
  25. package/components/lists/FSHeaderButton.vue +21 -13
  26. package/components/lists/FSHiddenButton.vue +33 -15
  27. package/components/tiles/FSDeviceOrganisationTileUI.vue +3 -1
  28. package/components/tiles/FSFolderTileUI.vue +1 -1
  29. package/package.json +4 -4
  30. package/styles/components/fs_autocomplete_field.scss +7 -2
  31. package/styles/components/fs_chip.scss +1 -8
  32. package/styles/components/fs_dialog.scss +6 -18
  33. package/styles/components/fs_divider.scss +8 -2
  34. package/styles/components/fs_fade_out.scss +8 -23
  35. package/styles/components/fs_filter_button.scss +4 -4
  36. package/styles/components/fs_header_button.scss +4 -0
  37. package/styles/components/fs_select_field.scss +4 -3
  38. package/styles/components/fs_text_area.scss +0 -1
  39. package/styles/components/index.scss +0 -1
  40. package/styles/globals/overrides.scss +0 -4
  41. package/themes/default.ts +1 -1
  42. package/components/FSCarousel.vue +0 -72
  43. 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
  }
@@ -1,7 +1,6 @@
1
1
  .fs-text-area:not(.fs-text-area-auto-grow) {
2
2
  & > .v-input__control > .v-field {
3
3
  border: 1px solid var(--fs-text-area-border-color) !important;
4
- padding: 0 !important;
5
4
 
6
5
  &--error {
7
6
  border-color: var(--fs-text-area-error-border-color) !important;
@@ -5,7 +5,6 @@
5
5
  @import "fs_button.scss";
6
6
  @import "fs_calendar.scss";
7
7
  @import "fs_card.scss";
8
- @import "fs_carousel.scss";
9
8
  @import "fs_checkbox.scss";
10
9
  @import "fs_chip.scss";
11
10
  @import "fs_clickable.scss";
@@ -99,10 +99,6 @@
99
99
  display: none !important;
100
100
  }
101
101
 
102
- .v-overlay__content {
103
- min-width: fit-content !important;
104
- }
105
-
106
102
  // No up / down buttons in input field of type number
107
103
  input[type=number] {
108
104
  -moz-appearance: textfield;
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": "#F9F9F9",
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>
@@ -1,9 +0,0 @@
1
- .fs-carousel {
2
- background-color: var(--fs-carousel-background-color);
3
- transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
4
- height: var(--fs-carousel-height) !important;
5
-
6
- & > .v-window__container > .v-window-item {
7
- cursor: inherit !important;
8
- }
9
- }