@dative-gpi/foundation-shared-components 1.0.194 → 1.1.0-fix01

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 (34) hide show
  1. package/components/FSButton.vue +43 -89
  2. package/components/FSCard.vue +208 -100
  3. package/components/FSCardPlaceholder.vue +29 -25
  4. package/components/FSChip.vue +54 -127
  5. package/components/FSChipGroup.vue +3 -3
  6. package/components/FSClickable.vue +24 -326
  7. package/components/FSColor.vue +3 -3
  8. package/components/FSColorIcon.vue +1 -0
  9. package/components/FSDialogContent.vue +37 -28
  10. package/components/FSEditImageUI.vue +19 -30
  11. package/components/FSIconCheck.vue +8 -0
  12. package/components/FSImageCard.vue +4 -4
  13. package/components/FSLink.vue +1 -13
  14. package/components/FSOptionItem.vue +4 -4
  15. package/components/FSOptionsMenu.vue +6 -6
  16. package/components/FSPlayButtons.vue +8 -8
  17. package/components/FSRouterLink.vue +84 -14
  18. package/components/FSSlideGroup.vue +5 -1
  19. package/components/agenda/FSAgendaHorizontalEvent.vue +4 -4
  20. package/components/agenda/FSAgendaVerticalEvent.vue +4 -4
  21. package/components/deviceOrganisations/FSStatusRichCard.vue +2 -7
  22. package/components/lists/FSFilterButton.vue +11 -8
  23. package/components/lists/FSHeaderButton.vue +6 -3
  24. package/components/tiles/FSTile.vue +31 -65
  25. package/models/index.ts +2 -1
  26. package/models/variants.ts +7 -0
  27. package/package.json +4 -4
  28. package/styles/components/fs_button.scss +1 -7
  29. package/styles/components/fs_card.scss +75 -4
  30. package/styles/components/fs_chip.scss +0 -29
  31. package/styles/components/index.scss +0 -2
  32. package/styles/globals/overrides.scss +1 -1
  33. package/styles/components/fs_clickable.scss +0 -69
  34. package/styles/components/fs_color_icon.scss +0 -3
@@ -2,11 +2,11 @@
2
2
  border: var(--fs-card-border-size) var(--fs-card-border-style);
3
3
  border-radius: var(--fs-card-border-radius);
4
4
  padding: var(--fs-card-padding);
5
- height: var(--fs-card-height);
6
- width: var(--fs-card-width);
7
- max-width: var(--fs-card-max-width);
5
+ height: 100%;
6
+ width: 100%;
8
7
  position: relative;
9
8
  display: flex;
9
+ transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
10
10
 
11
11
  border-color: var(--fs-card-border-color);
12
12
  color: var(--fs-card-color);
@@ -24,10 +24,81 @@
24
24
  background: var(--fs-card-background-color);
25
25
  }
26
26
 
27
+ &-load {
28
+ content: "";
29
+
30
+ & > *:not(.fs-card-load__spinner) {
31
+ opacity: 0;
32
+ }
33
+ }
34
+
35
+ &-clickable {
36
+ cursor: pointer;
37
+
38
+ &.fs-card-disabled {
39
+ cursor: default;
40
+ }
41
+
42
+ &:not(.fs-card-disabled):active:not(:has( .fs-stopclick:hover)) {
43
+ background-color: var(--fs-card-active-background-color) !important;
44
+ border-color: var(--fs-card-active-border-color) !important;
45
+ color: var(--fs-card-active-color) !important;
46
+
47
+ & .fs-card-clickable:not(.fs-card-disable-hover-style) {
48
+ transition: background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
49
+ background-color: var(--fs-card-active-background-color);
50
+ }
51
+ }
52
+
53
+ @include clickscreen {
54
+ &:not(.fs-card-disabled):not(.fs-card-disable-hover-style):hover:not(:has( .fs-stopclick:hover)) {
55
+ background-color: var(--fs-card-hover-background-color) !important;
56
+ border-color: var(--fs-card-hover-border-color) !important;
57
+ color: var(--fs-card-hover-color) !important;
58
+
59
+ & .fs-card-clickable:not(.fs-card-disable-hover-style) {
60
+ transition: background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
61
+ background-color: var(--fs-card-hover-background-color);
62
+ }
63
+ }
64
+ // Désactive le hover si un parent a .fs-card-load
65
+ .fs-card-load & {
66
+ pointer-events: none;
67
+ }
68
+ }
69
+ }
70
+
27
71
  .fs-card-top-right {
28
72
  position: absolute;
29
73
  line-height: normal;
30
74
  right: var(--fs-card-top-right-padding);
31
75
  top: var(--fs-card-top-right-padding);
32
76
  }
33
- }
77
+ }
78
+
79
+ .fs-card-wrapper {
80
+ display: block;
81
+ position: relative;
82
+ padding: 0 !important;
83
+ height: var(--fs-card-height);
84
+ width: var(--fs-card-width);
85
+ max-width: var(--fs-card-max-width);
86
+ background: none;
87
+ border: none;
88
+ text-decoration: none;
89
+ box-sizing: border-box;
90
+ }
91
+
92
+ .fs-card-load__spinner {
93
+ cursor: default;
94
+ position: absolute !important;
95
+ height: 100% !important;
96
+ width: 100% !important;
97
+ left: 0;
98
+ top: 0;
99
+
100
+ & > svg {
101
+ height: 24px !important;
102
+ }
103
+ }
104
+
@@ -1,32 +1,3 @@
1
- .fs-chip-container {
2
- text-decoration: none;
3
- }
4
-
5
1
  .fs-chip {
6
2
  user-select: none;
7
- transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
8
- background-color: var(--fs-chip-background-color) !important;
9
- border: 1px solid var(--fs-chip-border-color) !important;
10
- height: var(--fs-chip-height) !important;
11
- color: var(--fs-chip-color) !important;
12
- border-radius: 50px !important;
13
- padding: 2px 20px !important;
14
- }
15
-
16
- .fs-chip-clickable {
17
- cursor: pointer !important;
18
-
19
- &:active {
20
- background-color: var(--fs-chip-active-background-color) !important;
21
- border-color: var(--fs-chip-active-border-color) !important;
22
- color: var(--fs-chip-active-color) !important;
23
- }
24
-
25
- @include clickscreen {
26
- &:hover {
27
- background-color: var(--fs-chip-hover-background-color) !important;
28
- border-color: var(--fs-chip-hover-border-color) !important;
29
- color: var(--fs-chip-hover-color) !important;
30
- }
31
- }
32
3
  }
@@ -12,12 +12,10 @@
12
12
  @import "fs_card.scss";
13
13
  @import "fs_checkbox.scss";
14
14
  @import "fs_chip.scss";
15
- @import "fs_clickable.scss";
16
15
  @import "fs_clock.scss";
17
16
  @import "fs_col.scss";
18
17
  @import "fs_color_field.scss";
19
18
  @import "fs_color.scss";
20
- @import "fs_color_icon.scss";
21
19
  @import "fs_data_table.scss";
22
20
  @import "fs_dialog_menu.scss";
23
21
  @import "fs_dialog.scss";
@@ -175,7 +175,7 @@ $nthOverlay: 25;
175
175
  color: var(--fs-group-color);
176
176
  min-width: 32px !important;
177
177
  width: 32px !important;
178
- flex: 1 1 0 !important;
178
+ flex: 0 1 32px !important;
179
179
 
180
180
  @include touchscreen {
181
181
  display: none !important;
@@ -1,69 +0,0 @@
1
- .fs-clickable {
2
- border: var(--fs-clickable-border-size) var(--fs-clickable-border-style) !important;
3
- border-radius: var(--fs-clickable-border-radius) !important;
4
- transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
5
- cursor: pointer;
6
-
7
- background-color: var(--fs-clickable-background-color) !important;
8
- border-color: var(--fs-clickable-border-color) !important;
9
- color: var(--fs-clickable-color) !important;
10
-
11
- &.fs-clickable-disabled {
12
- cursor: default;
13
- }
14
-
15
- &:not(.fs-clickable-disabled):active:not(:has( .fs-stopclick:hover)) {
16
- background-color: var(--fs-clickable-active-background-color) !important;
17
- border-color: var(--fs-clickable-active-border-color) !important;
18
- color: var(--fs-clickable-active-color) !important;
19
-
20
- & .fs-card-clickable {
21
- transition: background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
22
- background-color: var(--fs-clickable-active-background-color);
23
- }
24
- }
25
-
26
- @include clickscreen {
27
- &:not(.fs-clickable-disabled):hover:not(:has( .fs-stopclick:hover)) {
28
- background-color: var(--fs-clickable-hover-background-color) !important;
29
- border-color: var(--fs-clickable-hover-border-color) !important;
30
- color: var(--fs-clickable-hover-color) !important;
31
-
32
- & .fs-card-clickable {
33
- transition: background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1);
34
- background-color: var(--fs-clickable-hover-background-color);
35
- }
36
- }
37
- }
38
- }
39
-
40
- a:has(.fs-clickable) {
41
- position: relative !important;
42
- text-decoration: none;
43
- padding: 0 !important;
44
- height: var(--fs-clickable-height);
45
- width: var(--fs-clickable-width);
46
- }
47
-
48
- button:has(.fs-clickable) {
49
- position: relative;
50
- height: var(--fs-clickable-height);
51
- width: var(--fs-clickable-width);
52
- }
53
-
54
- .fs-clickable-load {
55
- cursor: default;
56
- position: absolute !important;
57
- height: 100% !important;
58
- width: 100% !important;
59
- left: 0;
60
- top: 0;
61
-
62
- & > svg {
63
- height: 24px !important;
64
- }
65
- }
66
-
67
- *:has(~ .fs-clickable-load) > * {
68
- opacity: 0;
69
- }
@@ -1,3 +0,0 @@
1
- .fs-color-icon {
2
- cursor: pointer;
3
- }