@dative-gpi/foundation-shared-components 1.0.143-onboarding → 1.0.144

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.
@@ -30,14 +30,6 @@
30
30
  </FSRow>
31
31
  </FSCol>
32
32
  </slot>
33
- <FSRow
34
- v-if="$slots['top-right']"
35
- class="fs-card-top-right"
36
- >
37
- <slot
38
- name="top-right"
39
- />
40
- </FSRow>
41
33
  </div>
42
34
  </template>
43
35
 
@@ -107,11 +99,6 @@ export default defineComponent({
107
99
  type: Boolean,
108
100
  required: false,
109
101
  default: false
110
- },
111
- topRightPadding: {
112
- type: [String, Number],
113
- required: false,
114
- default: "4px"
115
102
  }
116
103
  },
117
104
  setup(props) {
@@ -156,8 +143,7 @@ export default defineComponent({
156
143
  "--fs-card-width" : sizeToVar(props.width),
157
144
  "--fs-card-background-color": backgrounds.base,
158
145
  "--fs-card-border-color" : borderColor.value,
159
- "--fs-card-color" : darks.base,
160
- "--fs-card-top-right-padding": sizeToVar(props.topRightPadding)
146
+ "--fs-card-color" : darks.base
161
147
  }
162
148
  case "standard": return {
163
149
  "--fs-card-border-size" : props.border ? "1px" : "0",
@@ -168,8 +154,7 @@ export default defineComponent({
168
154
  "--fs-card-width" : sizeToVar(props.width),
169
155
  "--fs-card-background-color": colors.value.light,
170
156
  "--fs-card-border-color" : borderColor.value,
171
- "--fs-card-color" : colors.value.lightContrast!,
172
- "--fs-card-top-right-padding": sizeToVar(props.topRightPadding)
157
+ "--fs-card-color" : colors.value.lightContrast!
173
158
  }
174
159
  case "full": return {
175
160
  "--fs-card-border-size" : props.border ? "1px" : "0",
@@ -180,8 +165,7 @@ export default defineComponent({
180
165
  "--fs-card-width" : sizeToVar(props.width),
181
166
  "--fs-card-background-color": colors.value.base,
182
167
  "--fs-card-border-color" : borderColor.value,
183
- "--fs-card-color" : colors.value.baseContrast!,
184
- "--fs-card-top-right-padding": sizeToVar(props.topRightPadding)
168
+ "--fs-card-color" : colors.value.baseContrast!
185
169
  }
186
170
  case "gradient": return {
187
171
  "--fs-card-border-size" : props.border ? "1px" : "0",
@@ -192,8 +176,7 @@ export default defineComponent({
192
176
  "--fs-card-width" : sizeToVar(props.width),
193
177
  "--fs-card-background-color": gradients.value.base,
194
178
  "--fs-card-border-color" : borderColor.value,
195
- "--fs-card-color" : colors.value.lightContrast!,
196
- "--fs-card-top-right-padding": sizeToVar(props.topRightPadding)
179
+ "--fs-card-color" : colors.value.lightContrast!
197
180
  }
198
181
  }
199
182
  });
@@ -64,6 +64,7 @@ import FSRouterLink from '@dative-gpi/foundation-shared-components/components/FS
64
64
  export default defineComponent({
65
65
  name: "FSChip",
66
66
  components: {
67
+ FSRouterLink,
67
68
  FSIcon,
68
69
  FSSpan,
69
70
  FSRow
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <FSMenu
2
+ <v-menu
3
3
  :closeOnContentClick="false"
4
4
  v-model="menu"
5
5
  location="bottom center"
@@ -22,7 +22,7 @@
22
22
  :deviceConnectivity="$props.deviceConnectivity"
23
23
  @close="menu = false"
24
24
  />
25
- </FSMenu>
25
+ </v-menu>
26
26
  </template>
27
27
 
28
28
  <script lang="ts">
@@ -33,14 +33,12 @@ import type { FSDeviceConnectivity } from "@dative-gpi/foundation-shared-compone
33
33
 
34
34
  import FSConnectivityCard from "./FSConnectivityCard.vue";
35
35
  import FSColorIcon from "../FSColorIcon.vue";
36
- import FSMenu from '../FSMenu.vue';
37
36
 
38
37
  export default defineComponent({
39
38
  name: "FSConnectivity",
40
39
  components: {
41
40
  FSConnectivityCard,
42
- FSColorIcon,
43
- FSMenu
41
+ FSColorIcon
44
42
  },
45
43
  props: {
46
44
  deviceConnectivity: {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <FSMenu
2
+ <v-menu
3
3
  :closeOnContentClick="false"
4
4
  v-model="menu"
5
5
  location="bottom center"
@@ -23,7 +23,7 @@
23
23
  :statusGroup="$props.statusGroup"
24
24
  @close="menu = false"
25
25
  />
26
- </FSMenu>
26
+ </v-menu>
27
27
  </template>
28
28
 
29
29
  <script lang="ts">
@@ -34,14 +34,12 @@ import type { FSDeviceStatusGroup, FSModelStatus } from "@dative-gpi/foundation-
34
34
 
35
35
  import FSStatusCard from "./FSStatusCard.vue";
36
36
  import FSColorIcon from "../FSColorIcon.vue";
37
- import FSMenu from '../FSMenu.vue';
38
37
 
39
38
  export default defineComponent({
40
39
  name: "FSStatus",
41
40
  components: {
42
41
  FSStatusCard,
43
- FSColorIcon,
44
- FSMenu
42
+ FSColorIcon
45
43
  },
46
44
  props: {
47
45
  modelStatus: {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <FSMenu
2
+ <v-menu
3
3
  :closeOnContentClick="false"
4
4
  v-model="menu"
5
5
  location="bottom center"
@@ -28,7 +28,7 @@
28
28
  :alertTo="$props.alertTo"
29
29
  @close="menu = false"
30
30
  />
31
- </FSMenu>
31
+ </v-menu>
32
32
  </template>
33
33
 
34
34
  <script lang="ts">
@@ -42,15 +42,13 @@ import { type FSDeviceAlert } from "@dative-gpi/foundation-shared-components/mod
42
42
  import FSWorstAlertCard from "./FSWorstAlertCard.vue";
43
43
  import FSColorIcon from "../FSColorIcon.vue";
44
44
  import FSBadge from "../FSBadge.vue";
45
- import FSMenu from '../FSMenu.vue';
46
45
 
47
46
  export default defineComponent({
48
47
  name: "FSWorstAlert",
49
48
  components: {
50
49
  FSWorstAlertCard,
51
50
  FSColorIcon,
52
- FSBadge,
53
- FSMenu
51
+ FSBadge
54
52
  },
55
53
  props: {
56
54
  deviceWorstAlert: {
@@ -1,4 +1,5 @@
1
1
  <template>
2
+
2
3
  <FSBaseField
3
4
  class="fs-color-field"
4
5
  :description="$props.description"
@@ -33,7 +34,7 @@
33
34
  </FSRow>
34
35
  </FSCard>
35
36
  </FSBaseField>
36
- <FSMenu
37
+ <v-menu
37
38
  origin="top left"
38
39
  min-width="300px"
39
40
  :activator="`#${activatorId}`"
@@ -72,7 +73,7 @@
72
73
  />
73
74
  </FSCol>
74
75
  </FSCard>
75
- </FSMenu>
76
+ </v-menu>
76
77
  </template>
77
78
 
78
79
  <script lang="ts">
@@ -86,7 +87,6 @@ import FSBaseField from "./FSBaseField.vue";
86
87
  import FSCard from "../FSCard.vue";
87
88
  import FSIcon from "../FSIcon.vue";
88
89
  import FSText from "../FSText.vue";
89
- import FSMenu from "../FSMenu.vue";
90
90
  import FSRow from "../FSRow.vue";
91
91
  import FSCol from "../FSCol.vue";
92
92
 
@@ -94,7 +94,6 @@ export default defineComponent({
94
94
  name: "FSColorField",
95
95
  components: {
96
96
  FSBaseField,
97
- FSMenu,
98
97
  FSText,
99
98
  FSCard,
100
99
  FSIcon,
@@ -71,7 +71,7 @@
71
71
  <template
72
72
  v-else
73
73
  >
74
- <FSMenu
74
+ <v-menu
75
75
  min-width="300px"
76
76
  :closeOnContentClick="false"
77
77
  :modelValue="menu && !$props.disabled"
@@ -142,7 +142,7 @@
142
142
  />
143
143
  </FSCol>
144
144
  </FSCard>
145
- </FSMenu>
145
+ </v-menu>
146
146
  </template>
147
147
  </FSCol>
148
148
  </template>
@@ -160,7 +160,6 @@ import FSTextField from "./FSTextField.vue";
160
160
  import FSCalendar from "../FSCalendar.vue";
161
161
  import FSButton from "../FSButton.vue";
162
162
  import FSCard from "../FSCard.vue";
163
- import FSMenu from '../FSMenu.vue';
164
163
  import FSCol from "../FSCol.vue";
165
164
 
166
165
  export default defineComponent({
@@ -171,7 +170,6 @@ export default defineComponent({
171
170
  FSCalendar,
172
171
  FSButton,
173
172
  FSCard,
174
- FSMenu,
175
173
  FSCol
176
174
  },
177
175
  props: {
@@ -91,8 +91,7 @@
91
91
  <template
92
92
  v-else
93
93
  >
94
- <FSMenu
95
- min-width="300px"
94
+ <v-menu
96
95
  :closeOnContentClick="false"
97
96
  :modelValue="menu && !$props.disabled"
98
97
  @update:modelValue="menu = $event"
@@ -188,7 +187,7 @@
188
187
  </FSCol>
189
188
  </FSCard>
190
189
  </FSWindow>
191
- </FSMenu>
190
+ </v-menu>
192
191
  </template>
193
192
  </FSCol>
194
193
  </template>
@@ -207,7 +206,6 @@ import FSWindow from "../FSWindow.vue";
207
206
  import FSButton from "../FSButton.vue";
208
207
  import FSClock from "../FSClock.vue";
209
208
  import FSCard from "../FSCard.vue";
210
- import FSMenu from '../FSMenu.vue';
211
209
  import FSCol from "../FSCol.vue";
212
210
 
213
211
  export default defineComponent({
@@ -220,7 +218,6 @@ export default defineComponent({
220
218
  FSButton,
221
219
  FSClock,
222
220
  FSCard,
223
- FSMenu,
224
221
  FSCol
225
222
  },
226
223
  props: {
@@ -116,7 +116,7 @@
116
116
  >
117
117
  mdi-link
118
118
  </FSIcon>
119
- <FSMenu
119
+ <v-menu
120
120
  v-if="$props.variableReferences && $props.variableReferences.length > 0"
121
121
  :closeOnContentClick="false"
122
122
  v-model="menuVariable"
@@ -146,7 +146,7 @@
146
146
  @update:modelValue="insertVariable($event)"
147
147
  />
148
148
  </FSCard>
149
- </FSMenu>
149
+ </v-menu>
150
150
  <v-divider
151
151
  vertical
152
152
  />
@@ -246,7 +246,6 @@ import FSTextField from "./FSTextField.vue";
246
246
  import FSIcon from "../FSIcon.vue";
247
247
  import FSCard from "../FSCard.vue";
248
248
  import FSText from "../FSText.vue";
249
- import FSMenu from '../FSMenu.vue';
250
249
  import FSCol from "../FSCol.vue";
251
250
  import FSRow from "../FSRow.vue";
252
251
 
@@ -258,7 +257,6 @@ export default defineComponent({
258
257
  FSText,
259
258
  FSIcon,
260
259
  FSCard,
261
- FSMenu,
262
260
  FSCol,
263
261
  FSRow
264
262
  },
@@ -44,7 +44,7 @@
44
44
  >
45
45
  <FSTextField
46
46
  :label="$tr('ui.common.default-value', 'Default value')"
47
- :disabled="$props.disabled"
47
+ :disabled="true"
48
48
  :modelValue="$props.modelValue"
49
49
  />
50
50
  <FSCol
@@ -131,7 +131,7 @@
131
131
  <template
132
132
  v-else
133
133
  >
134
- <FSMenu
134
+ <v-menu
135
135
  :closeOnContentClick="false"
136
136
  :modelValue="menu && !$props.disabled"
137
137
  @update:modelValue="menu = $event"
@@ -233,7 +233,7 @@
233
233
  #title
234
234
  />
235
235
  </v-treeview>
236
- </FSMenu>
236
+ </v-menu>
237
237
  </template>
238
238
  </FSCol>
239
239
  </template>
@@ -253,7 +253,6 @@ import FSFadeOut from "../FSFadeOut.vue";
253
253
  import FSLoader from "../FSLoader.vue";
254
254
  import FSRadio from "../FSRadio.vue";
255
255
  import FSSpan from "../FSSpan.vue";
256
- import FSMenu from '../FSMenu.vue';
257
256
  import FSCol from "../FSCol.vue";
258
257
 
259
258
  export default defineComponent({
@@ -267,7 +266,6 @@ export default defineComponent({
267
266
  FSLoader,
268
267
  FSRadio,
269
268
  FSSpan,
270
- FSMenu,
271
269
  FSCol,
272
270
  },
273
271
  props: {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <FSMenu
2
+ <v-menu
3
3
  :closeOnContentClick="false"
4
4
  v-model="expanded"
5
5
  >
@@ -79,7 +79,7 @@
79
79
  </FSFadeOut>
80
80
  </FSCol>
81
81
  </FSCard>
82
- </FSMenu>
82
+ </v-menu>
83
83
  </template>
84
84
 
85
85
  <script lang="ts">
@@ -94,7 +94,6 @@ import FSDivider from "../FSDivider.vue";
94
94
  import FSCard from "../FSCard.vue";
95
95
  import FSChip from "../FSChip.vue";
96
96
  import FSSpan from "../FSSpan.vue";
97
- import FSMenu from '../FSMenu.vue';
98
97
  import FSCol from "../FSCol.vue";
99
98
 
100
99
  export default defineComponent({
@@ -106,7 +105,6 @@ export default defineComponent({
106
105
  FSCard,
107
106
  FSChip,
108
107
  FSSpan,
109
- FSMenu,
110
108
  FSCol
111
109
  },
112
110
  props: {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <FSMenu
2
+ <v-menu
3
3
  v-model="expanded"
4
4
  >
5
5
  <template
@@ -61,7 +61,7 @@
61
61
  </FSCol>
62
62
  </FSCol>
63
63
  </FSCard>
64
- </FSMenu>
64
+ </v-menu>
65
65
  </template>
66
66
 
67
67
  <script lang="ts">
@@ -73,7 +73,6 @@ import FSButton from "../FSButton.vue";
73
73
  import FSCard from "../FSCard.vue";
74
74
  import FSSpan from "../FSSpan.vue";
75
75
  import FSChip from "../FSChip.vue";
76
- import FSMenu from '../FSMenu.vue';
77
76
  import FSCol from "../FSCol.vue";
78
77
 
79
78
  export default defineComponent({
@@ -83,7 +82,6 @@ export default defineComponent({
83
82
  FSCard,
84
83
  FSChip,
85
84
  FSSpan,
86
- FSMenu,
87
85
  FSCol
88
86
  },
89
87
  props: {
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <FSMenu
2
+ <v-menu
3
3
  :closeOnContentClick="false"
4
4
  v-model="expanded"
5
5
  >
@@ -55,7 +55,7 @@
55
55
  </FSFadeOut>
56
56
  </FSCol>
57
57
  </FSCard>
58
- </FSMenu>
58
+ </v-menu>
59
59
  </template>
60
60
 
61
61
  <script lang="ts">
@@ -66,7 +66,6 @@ import { type ColorBase, ColorEnum, type FSDataTableColumn } from "@dative-gpi/f
66
66
  import FSCard from "../FSCard.vue";
67
67
  import FSChip from "../FSChip.vue";
68
68
  import FSSpan from "../FSSpan.vue";
69
- import FSMenu from '../FSMenu.vue';
70
69
  import FSCol from "../FSCol.vue";
71
70
 
72
71
  export default defineComponent({
@@ -75,7 +74,6 @@ export default defineComponent({
75
74
  FSCard,
76
75
  FSChip,
77
76
  FSSpan,
78
- FSMenu,
79
77
  FSCol
80
78
  },
81
79
  props: {
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.143-onboarding",
4
+ "version": "1.0.144",
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.143-onboarding",
14
- "@dative-gpi/foundation-shared-services": "1.0.143-onboarding"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.144",
14
+ "@dative-gpi/foundation-shared-services": "1.0.144"
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": "44c75a707aeddf8826add43b55f4971b91046b70"
38
+ "gitHead": "885ad0c42bb531c28c3d0f948e343b0e6cea912b"
39
39
  }
@@ -4,7 +4,6 @@
4
4
  padding: var(--fs-card-padding);
5
5
  height: var(--fs-card-height);
6
6
  width: var(--fs-card-width);
7
- position: relative;
8
7
  display: flex;
9
8
 
10
9
  border-color: var(--fs-card-border-color);
@@ -22,11 +21,4 @@
22
21
  &-gradient {
23
22
  background: var(--fs-card-background-color);
24
23
  }
25
-
26
- .fs-card-top-right {
27
- position: absolute;
28
- line-height: normal;
29
- right: var(--fs-card-top-right-padding);
30
- top: var(--fs-card-top-right-padding);
31
- }
32
24
  }
@@ -1,124 +0,0 @@
1
- <template>
2
- <FSMenu
3
- :location="$props.location"
4
- :closeOnContentClick="false"
5
- minWidth="0"
6
- v-model="modelValue"
7
- v-bind="$attrs"
8
- >
9
- <template
10
- #activator="{ props }"
11
- >
12
- <slot
13
- name="activator"
14
- v-bind="props"
15
- >
16
- <FSButton
17
- v-bind="props"
18
- :color="lightColors.dark"
19
- :iconSize="$props.iconSize"
20
- variant="icon"
21
- icon="mdi-information-outline"
22
- />
23
- </slot>
24
- </template>
25
- <slot
26
- name="menuContent"
27
- >
28
- <FSCard
29
- :width="$props.width"
30
- :padding="$props.padding"
31
- :elevation="true"
32
- align="center"
33
- >
34
- <slot
35
- name="cardContent"
36
- >
37
- <FSRow
38
- align="center-center"
39
- >
40
- <FSText
41
- font="text-overline"
42
- :lineClamp="4"
43
- >
44
- {{ $props.content }}
45
- </FSText>
46
- </FSRow>
47
- </slot>
48
- <template
49
- #top-right
50
- >
51
- <FSButton
52
- variant="icon"
53
- icon="mdi-close"
54
- iconSize="18px"
55
- :color="lightColors.dark"
56
- @click="modelValue = false"
57
- />
58
- </template>
59
- </FSCard>
60
- </slot>
61
- </FSMenu>
62
- </template>
63
-
64
- <script lang="ts">
65
- import { defineComponent, ref, type PropType } from "vue";
66
-
67
- import { useColors } from "@dative-gpi/foundation-shared-components/composables";
68
-
69
- import { ColorEnum } from '@dative-gpi/foundation-shared-components/models';
70
-
71
- import FSRow from '@dative-gpi/foundation-shared-components/components/FSRow.vue';
72
- import FSMenu from '@dative-gpi/foundation-shared-components/components/FSMenu.vue';
73
- import FSCard from '@dative-gpi/foundation-shared-components/components/FSCard.vue';
74
- import FSText from '@dative-gpi/foundation-shared-components/components/FSText.vue';
75
- import FSButton from '@dative-gpi/foundation-shared-components/components/FSButton.vue';
76
-
77
- export default defineComponent({
78
- name: "FSInformationsMenu",
79
- components: {
80
- FSMenu,
81
- FSCard,
82
- FSRow,
83
- FSText,
84
- FSButton
85
- },
86
- props: {
87
- content: {
88
- type: String as PropType<string | null>,
89
- required: false,
90
- default: null
91
- },
92
- location: {
93
- type: String,
94
- default: "top"
95
- },
96
- width: {
97
- type: [Array, String, Number] as PropType<string[] | number[] | string | number | null>,
98
- default: 182
99
- },
100
- padding: {
101
- type: [Array, String, Number] as PropType<string[] | number[] | string | number | null>,
102
- default: "16px 8px"
103
- },
104
- iconSize: {
105
- type: String,
106
- default: "18px"
107
- }
108
- },
109
- emits: ["update:modelValue"],
110
- setup() {
111
- const modelValue = ref(false);
112
-
113
- const { getColors } = useColors();
114
-
115
- const lightColors = getColors(ColorEnum.Light);
116
-
117
- return {
118
- ColorEnum,
119
- modelValue,
120
- lightColors
121
- };
122
- }
123
- });
124
- </script>
@@ -1,47 +0,0 @@
1
- <template>
2
- <v-menu
3
- :modelValue="$props.modelValue"
4
- :scrollStrategy="$props.scrollStrategy"
5
- :offset="$props.offset"
6
- @update:modelValue="$emit('update:modelValue', $event)"
7
- >
8
- <template
9
- v-for="(_, name) in $slots"
10
- v-slot:[name]="slotData"
11
- >
12
- <slot
13
- :name="name"
14
- v-bind="slotData"
15
- />
16
- </template>
17
- <slot />
18
- </v-menu>
19
- </template>
20
-
21
- <script lang="ts">
22
- import { defineComponent, type PropType } from "vue";
23
-
24
- export default defineComponent({
25
- name: "FSMenu",
26
- props: {
27
- modelValue: {
28
- type: Boolean,
29
- default: false
30
- },
31
- scrollStrategy: {
32
- type: String,
33
- default: "close"
34
- },
35
- offset: {
36
- type: [String, Number] as PropType<string | number | null>,
37
- default: "4px"
38
- },
39
- },
40
- emits: ["update:modelValue"],
41
- setup() {
42
-
43
- return {
44
- };
45
- }
46
- });
47
- </script>