@dative-gpi/foundation-shared-components 1.0.136-maps → 1.0.136-override-widgets

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.
@@ -22,6 +22,7 @@
22
22
  :color="ColorEnum.Primary"
23
23
  :latlng="gpsPosition"
24
24
  />
25
+
25
26
  <FSMapFeatureGroup
26
27
  v-if="$props.areas"
27
28
  :expected-layers="$props.areas.length"
@@ -35,6 +36,7 @@
35
36
  @click="$emit('update:selectedAreaId', area.id)"
36
37
  />
37
38
  </FSMapFeatureGroup>
39
+
38
40
  <FSMapMarkerClusterGroup
39
41
  v-if="$props.locations"
40
42
  :expected-layers="$props.locations.length"
@@ -52,7 +54,6 @@
52
54
  @click="$emit('update:selectedLocationId', location.id)"
53
55
  />
54
56
  </FSMapMarkerClusterGroup>
55
- <slot />
56
57
  </template>
57
58
  </div>
58
59
 
@@ -87,15 +87,15 @@ export default {
87
87
  icon = divIcon({
88
88
  html: locationMarkerHtml(props.icon, getColors(props.color).base, props.label),
89
89
  iconSize: [size, size],
90
- className: props.selected ? 'fs-map-marker fs-map-location fs-map-location-selected' : 'fs-map-marker fs-map-location',
90
+ className: props.selected ? 'fs-map-location fs-map-location-selected' : 'fs-map-location',
91
91
  iconAnchor: [size / 2, size / 2],
92
92
  });
93
93
  } else {
94
- const size = 16;
94
+ const size = 20;
95
95
  icon = divIcon({
96
- html: pinMarkerHtml(getColors(props.color).base, props.label),
96
+ html: pinMarkerHtml(getColors(props.color).base),
97
97
  iconSize: [size, size],
98
- className: props.selected ? 'fs-map-marker fs-map-pin fs-map-pin-selected' : 'fs-map-marker fs-map-pin',
98
+ className: props.selected ? 'fs-map-location fs-map-location-selected' : 'fs-map-location',
99
99
  iconAnchor: [size / 2, size / 2],
100
100
  });
101
101
  }
@@ -45,7 +45,7 @@ export default {
45
45
 
46
46
  return divIcon({
47
47
  html: clusterMarkerHtml(cluster.getChildCount()),
48
- className: 'fs-map-marker fs-map-cluster-marker',
48
+ className: 'fs-map-location fs-map-location-full',
49
49
  iconSize: [size, size],
50
50
  iconAnchor: [size / 2, size / 2],
51
51
  });
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.136-maps",
4
+ "version": "1.0.136-override-widgets",
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.136-maps",
14
- "@dative-gpi/foundation-shared-services": "1.0.136-maps"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.136-override-widgets",
14
+ "@dative-gpi/foundation-shared-services": "1.0.136-override-widgets"
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": "e5804d19ea9d2d1f215ddab730d72f0256841295"
38
+ "gitHead": "c2765a250ad2c493b88f3801f13ddd71405e898a"
39
39
  }
@@ -77,10 +77,17 @@
77
77
  }
78
78
  }
79
79
 
80
- .fs-map-marker > div {
80
+ .fs-map-point-pin {
81
+ background-color: var(--fs-map-point-pin-color);
82
+ border-radius: 100%;
83
+ }
84
+
85
+ .fs-map-location > div {
81
86
  display: flex;
82
87
  height: 100%;
88
+ color: var(--fs-map-location-pin-color);
83
89
  border-radius: 50%;
90
+ background-color: white;
84
91
  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.4));
85
92
  align-items: center;
86
93
  justify-content: center;
@@ -96,7 +103,7 @@
96
103
  }
97
104
  }
98
105
 
99
- .fs-map-cluster-marker > div {
106
+ .fs-map-location-full > div {
100
107
  background-color: var(--fs-map-location-pin-color);
101
108
  color: white;
102
109
  }
@@ -119,41 +126,6 @@
119
126
  }
120
127
  }
121
128
 
122
- .fs-map-location > div {
123
- color: var(--fs-map-location-pin-color);
124
- background-color: white;
125
- }
126
-
127
- .fs-map-pin > div {
128
- background-color: var(--fs-map-point-pin-color);
129
- position: relative;
130
-
131
- transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
132
- }
133
-
134
- .fs-map-pin > div::before {
135
- content: "";
136
- position: absolute;
137
- top: -4px;
138
- left: -4px;
139
- width: calc(100% + 8px);
140
- height: calc(100% + 8px);
141
- border-radius: 50%;
142
- border: 2px solid var(--fs-map-point-pin-color);
143
- opacity: 0.4;
144
-
145
- @include clickscreen {
146
- &:hover {
147
- opacity: 1;
148
- }
149
- }
150
- }
151
-
152
- .fs-map-pin-selected > div {
153
- transform: scale(1.35);
154
- }
155
-
156
-
157
129
  .fs-map-site {
158
130
  opacity: 0.6;
159
131
  transition: opacity 0.28s cubic-bezier(0.4, 0, 0.2, 1);