@dative-gpi/foundation-shared-components 1.0.70 → 1.0.73

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.
@@ -4,8 +4,12 @@
4
4
  transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
5
5
  max-height: var(--fs-fade-out-max-height);
6
6
  padding: var(--fs-fade-out-padding);
7
+
8
+ // Petit hack pour que la barre de scroll elle soit à droite du container
9
+ padding-right: calc(var(--fs-fade-out-padding) + var(--fs-fade-out-padding-offset));
10
+ width: calc(var(--fs-fade-out-width) + var(--fs-fade-out-width-offset));
11
+
7
12
  height: var(--fs-fade-out-height);
8
- width: var(--fs-fade-out-width);
9
13
  flex-direction: column;
10
14
  position: relative;
11
15
  display: flex;
@@ -4,7 +4,7 @@
4
4
  max-width: 100%;
5
5
 
6
6
  & > .v-slide-group__container > .v-slide-group__content {
7
- margin: 0 2px 1px 0 !important;
7
+ // margin: 0 2px 1px 0 !important;
8
8
  padding: var(--fs-group-padding);
9
9
  gap: var(--fs-group-gap);
10
10
  }
@@ -1,83 +0,0 @@
1
- <template>
2
- <FSSkeletonView>
3
- <template
4
- #header
5
- >
6
- <FSListHeader
7
- ref="headerRef"
8
- :breadcrumbs="$props.breadcrumbs"
9
- :title="$props.title"
10
- padding="0 14px 0 0"
11
- >
12
- <template
13
- #toolbar
14
- >
15
- <slot
16
- name="toolbar"
17
- />
18
- </template>
19
- </FSListHeader>
20
- </template>
21
- <template
22
- #default
23
- >
24
- <FSFadeOut
25
- padding="0 8px 0 0"
26
- :height="height"
27
- >
28
- <slot
29
- name="default"
30
- />
31
- </FSFadeOut>
32
- </template>
33
- </FSSkeletonView>
34
- </template>
35
-
36
- <script lang="ts">
37
- import { computed, defineComponent, type PropType, ref } from "vue";
38
-
39
- import { type FSBreadcrumbItem } from "@dative-gpi/foundation-shared-components/models";
40
- import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composables";
41
-
42
- import FSSkeletonView from "./FSSkeletonView.vue";
43
- import FSListHeader from "./FSListHeader.vue";
44
- import FSFadeOut from "../FSFadeOut.vue";
45
-
46
- export default defineComponent({
47
- name: "FSListView",
48
- components: {
49
- FSSkeletonView,
50
- FSListHeader,
51
- FSFadeOut
52
- },
53
- props: {
54
- title: {
55
- type: String as PropType<string | null>,
56
- required: false,
57
- default: null
58
- },
59
- breadcrumbs: {
60
- type: Array as PropType<FSBreadcrumbItem[]>,
61
- required: false,
62
- default: () => []
63
- }
64
- },
65
- setup() {
66
- const { isExtraSmall, windowHeight } = useBreakpoints();
67
-
68
- const headerRef = ref<HTMLElement | null>(null);
69
-
70
- const height = computed((): string => {
71
- let other = isExtraSmall.value ? 16 + 16 : 24 + 24 // Paddings
72
- + (headerRef.value?.clientHeight ?? 0); // Header
73
-
74
- return `${windowHeight.value - other}px`;
75
- });
76
-
77
- return {
78
- headerRef,
79
- height
80
- };
81
- }
82
- });
83
- </script>
@@ -1,100 +0,0 @@
1
- <template>
2
- <template
3
- v-if="isExtraSmall"
4
- >
5
- <FSCol
6
- padding="16px 4px 16px 12px"
7
- height="100%"
8
- gap="16px"
9
- >
10
- <slot
11
- name="header"
12
- >
13
- <slot
14
- name="title"
15
- >
16
- <FSRow
17
- gap="12px"
18
- >
19
- <slot
20
- name="title-image"
21
- />
22
- <slot
23
- name="title-texts"
24
- />
25
- </FSRow>
26
- </slot>
27
- </slot>
28
- <slot
29
- name="breadcrumbs"
30
- />
31
- <slot
32
- name="toolbar"
33
- />
34
- <slot
35
- name="title-append"
36
- />
37
- <slot
38
- name="default"
39
- />
40
- </FSCol>
41
- </template>
42
- <template
43
- v-else
44
- >
45
- <FSCol
46
- padding="24px 8px 24px 24px"
47
- height="100vh"
48
- gap="16px"
49
- >
50
- <slot
51
- name="header"
52
- >
53
- <slot
54
- name="title"
55
- >
56
- <FSRow
57
- gap="32px"
58
- >
59
- <slot
60
- name="title-image"
61
- />
62
- <slot
63
- name="title-texts"
64
- />
65
- <v-spacer />
66
- <slot
67
- name="title-append"
68
- />
69
- </FSRow>
70
- </slot>
71
- </slot>
72
- <slot
73
- name="breadcrumbs"
74
- />
75
- <slot
76
- name="toolbar"
77
- />
78
- <slot
79
- name="default"
80
- />
81
- </FSCol>
82
- </template>
83
- </template>
84
-
85
- <script lang="ts">
86
- import { defineComponent } from "vue";
87
-
88
- import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composables";
89
-
90
- export default defineComponent({
91
- name: "FSSkeletonView",
92
- setup() {
93
- const { isExtraSmall } = useBreakpoints();
94
-
95
- return {
96
- isExtraSmall
97
- };
98
- }
99
- });
100
- </script>