@dative-gpi/foundation-shared-components 1.1.23 → 1.1.24-unit-formatter
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.
- package/components/FSAccordionPanel.vue +0 -2
- package/components/FSButton.vue +87 -43
- package/components/FSCard.vue +100 -208
- package/components/FSCardPlaceholder.vue +25 -29
- package/components/FSChip.vue +127 -54
- package/components/FSChipGroup.vue +23 -141
- package/components/FSClickable.vue +326 -24
- package/components/FSColor.vue +3 -3
- package/components/FSColorIcon.vue +0 -1
- package/components/FSDialogContent.vue +28 -39
- package/components/FSDialogFormBody.vue +0 -2
- package/components/FSDialogMenu.vue +1 -8
- package/components/FSDialogMultiFormBody.vue +5 -6
- package/components/FSDivider.vue +1 -5
- package/components/FSEditImageUI.vue +30 -21
- package/components/FSGridMosaic.vue +0 -2
- package/components/FSIconCard.vue +1 -3
- package/components/FSIconCheck.vue +0 -8
- package/components/FSImageCard.vue +4 -4
- package/components/FSInstantPicker.vue +0 -2
- package/components/FSLink.vue +13 -1
- package/components/FSOptionItem.vue +4 -4
- package/components/FSOptionsMenu.vue +6 -6
- package/components/FSPlayButtons.vue +9 -11
- package/components/FSProgressBar.vue +28 -142
- package/components/FSRangePicker.vue +0 -2
- package/components/FSRouterLink.vue +14 -84
- package/components/FSSlideGroup.vue +1 -5
- package/components/FSWindow.vue +0 -2
- package/components/agenda/FSAgendaHorizontalEvent.vue +4 -4
- package/components/agenda/FSAgendaVerticalEvent.vue +4 -4
- package/components/deviceOrganisations/FSStatusRichCard.vue +7 -4
- package/components/fields/FSAutocompleteField.vue +0 -1
- package/components/fields/FSEntityFieldUI.vue +0 -12
- package/components/fields/FSRichTextField.vue +0 -2
- package/components/lists/FSDataIteratorItem.vue +0 -2
- package/components/lists/FSDataTableUI.vue +0 -12
- package/components/lists/FSFilterButton.vue +23 -34
- package/components/lists/FSHeaderButton.vue +3 -6
- package/components/lists/FSTileList.vue +6 -23
- package/components/map/FSMap.vue +1 -1
- package/components/map/FSMapMarker.vue +3 -4
- package/components/selects/FSSelectMapLayer.vue +0 -5
- package/components/tiles/FSChartTileUI.vue +0 -2
- package/components/tiles/FSFolderTileUI.vue +2 -2
- package/components/tiles/FSLocationTileUI.vue +0 -2
- package/components/tiles/FSServiceAccountOrganisationTileUI.vue +0 -2
- package/components/tiles/FSTile.vue +64 -32
- package/components/tiles/FSUserOrganisationTileUI.vue +0 -2
- package/components/toggleSets/FSToggleSetPosition.vue +0 -5
- package/composables/useMapLayers.ts +0 -12
- package/models/index.ts +1 -2
- package/models/map.ts +1 -2
- package/models/tables.ts +0 -1
- package/package.json +4 -4
- package/styles/components/fs_button.scss +7 -1
- package/styles/components/fs_card.scss +4 -75
- package/styles/components/fs_chip.scss +29 -0
- package/styles/components/fs_clickable.scss +69 -0
- package/styles/components/fs_color_icon.scss +3 -0
- package/styles/components/fs_filter_button.scss +1 -6
- package/styles/components/fs_map.scss +1 -7
- package/styles/components/fs_progress_bar.scss +6 -62
- package/styles/components/index.scss +2 -1
- package/styles/globals/overrides.scss +1 -1
- package/assets/images/map/open-street-map.png +0 -0
- package/components/FSGroupingChip.vue +0 -115
- package/components/FSSnackbar.vue +0 -146
- package/components/FSSubgroupingChip.vue +0 -138
- package/components/fields/FSDurationField.vue +0 -184
- package/components/tiles/FSPlaylistTileUI.vue +0 -149
- package/components/tiles/FSSubgroupingTileUI.vue +0 -97
- package/models/variants.ts +0 -33
- package/styles/components/fs_snackbar.scss +0 -7
|
@@ -1,61 +1,363 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
:
|
|
5
|
-
:
|
|
6
|
-
|
|
2
|
+
<a
|
|
3
|
+
v-if="$props.href"
|
|
4
|
+
:href="$props.href"
|
|
5
|
+
:style="style"
|
|
6
|
+
:class="$props.class"
|
|
7
|
+
@mouseover="hover = true"
|
|
8
|
+
@mouseleave="hover = false"
|
|
9
|
+
@mousedown="active = true"
|
|
10
|
+
@mouseup="active = false"
|
|
7
11
|
>
|
|
12
|
+
<FSCard
|
|
13
|
+
height="100%"
|
|
14
|
+
width="100%"
|
|
15
|
+
:borderRadius="$props.borderRadius"
|
|
16
|
+
:borderStyle="$props.borderStyle"
|
|
17
|
+
:padding="$props.padding"
|
|
18
|
+
:class="classes"
|
|
19
|
+
v-bind="$attrs"
|
|
20
|
+
>
|
|
21
|
+
<template
|
|
22
|
+
v-for="(_, name) in $slots"
|
|
23
|
+
v-slot:[name]="slotData"
|
|
24
|
+
>
|
|
25
|
+
<slot
|
|
26
|
+
:name="name"
|
|
27
|
+
v-bind="{ ...slotData, contentVariant }"
|
|
28
|
+
/>
|
|
29
|
+
</template>
|
|
30
|
+
</FSCard>
|
|
31
|
+
<template
|
|
32
|
+
v-if="$props.load"
|
|
33
|
+
>
|
|
34
|
+
<v-progress-circular
|
|
35
|
+
class="fs-clickable-load"
|
|
36
|
+
width="2"
|
|
37
|
+
size="24"
|
|
38
|
+
:indeterminate="true"
|
|
39
|
+
:color="loadColor"
|
|
40
|
+
/>
|
|
41
|
+
</template>
|
|
42
|
+
</a>
|
|
43
|
+
<FSRouterLink
|
|
44
|
+
v-else-if="$props.to"
|
|
45
|
+
:style="style"
|
|
46
|
+
:to="$props.to"
|
|
47
|
+
:class="$props.class"
|
|
48
|
+
@mouseover="hover = true"
|
|
49
|
+
@mouseleave="hover = false"
|
|
50
|
+
@mousedown="active = true"
|
|
51
|
+
@mouseup="active = false"
|
|
52
|
+
>
|
|
53
|
+
<FSCard
|
|
54
|
+
height="100%"
|
|
55
|
+
width="100%"
|
|
56
|
+
:borderRadius="$props.borderRadius"
|
|
57
|
+
:borderStyle="$props.borderStyle"
|
|
58
|
+
:padding="$props.padding"
|
|
59
|
+
:class="classes"
|
|
60
|
+
v-bind="$attrs"
|
|
61
|
+
>
|
|
62
|
+
<template
|
|
63
|
+
v-for="(_, name) in $slots"
|
|
64
|
+
v-slot:[name]="slotData"
|
|
65
|
+
>
|
|
66
|
+
<slot
|
|
67
|
+
:name="name"
|
|
68
|
+
v-bind="{ ...slotData, contentVariant }"
|
|
69
|
+
/>
|
|
70
|
+
</template>
|
|
71
|
+
</FSCard>
|
|
72
|
+
<template
|
|
73
|
+
v-if="$props.load"
|
|
74
|
+
>
|
|
75
|
+
<v-progress-circular
|
|
76
|
+
class="fs-clickable-load"
|
|
77
|
+
width="2"
|
|
78
|
+
size="24"
|
|
79
|
+
:indeterminate="true"
|
|
80
|
+
:color="loadColor"
|
|
81
|
+
/>
|
|
82
|
+
</template>
|
|
83
|
+
</FSRouterLink>
|
|
84
|
+
<button
|
|
85
|
+
v-else
|
|
86
|
+
:type="$props.type"
|
|
87
|
+
:style="style"
|
|
88
|
+
:class="$props.class"
|
|
89
|
+
:disabled="$props.load || $props.disabled"
|
|
90
|
+
@click.stop="onClick"
|
|
91
|
+
@mouseover="hover = true"
|
|
92
|
+
@mouseleave="hover = false"
|
|
93
|
+
@mousedown="active = true"
|
|
94
|
+
@mouseup="active = false"
|
|
95
|
+
>
|
|
96
|
+
<FSCard
|
|
97
|
+
height="100%"
|
|
98
|
+
width="100%"
|
|
99
|
+
:borderRadius="$props.borderRadius"
|
|
100
|
+
:borderStyle="$props.borderStyle"
|
|
101
|
+
:padding="$props.padding"
|
|
102
|
+
:class="classes"
|
|
103
|
+
v-bind="$attrs"
|
|
104
|
+
>
|
|
105
|
+
<template
|
|
106
|
+
v-for="(_, name) in $slots"
|
|
107
|
+
v-slot:[name]="slotData"
|
|
108
|
+
>
|
|
109
|
+
<slot
|
|
110
|
+
:name="name"
|
|
111
|
+
v-bind="{ ...slotData, contentVariant }"
|
|
112
|
+
/>
|
|
113
|
+
</template>
|
|
114
|
+
</FSCard>
|
|
8
115
|
<template
|
|
9
|
-
v-
|
|
10
|
-
v-slot:[name]="slotData"
|
|
116
|
+
v-if="$props.load"
|
|
11
117
|
>
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
118
|
+
<v-progress-circular
|
|
119
|
+
class="fs-clickable-load"
|
|
120
|
+
width="2"
|
|
121
|
+
size="24"
|
|
122
|
+
:indeterminate="true"
|
|
123
|
+
:color="loadColor"
|
|
15
124
|
/>
|
|
16
125
|
</template>
|
|
17
|
-
</
|
|
126
|
+
</button>
|
|
18
127
|
</template>
|
|
19
128
|
|
|
20
129
|
<script lang="ts">
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
* Clickable prop to true is not necessary as it is will listen to any click listener or href, to prop.
|
|
24
|
-
* This component will be removed in a future release.
|
|
25
|
-
*/
|
|
26
|
-
import { defineComponent, type PropType, onMounted } from "vue";
|
|
130
|
+
import { computed, defineComponent, type PropType, ref, type StyleValue } from "vue";
|
|
131
|
+
import { type RouteLocation } from "vue-router";
|
|
27
132
|
|
|
28
|
-
import { type
|
|
133
|
+
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
134
|
+
import { useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
135
|
+
import { sizeToVar } from "@dative-gpi/foundation-shared-components/utils";
|
|
29
136
|
|
|
137
|
+
import FSRouterLink from "./FSRouterLink.vue";
|
|
30
138
|
import FSCard from "./FSCard.vue";
|
|
31
139
|
|
|
32
140
|
export default defineComponent({
|
|
33
141
|
name: "FSClickable",
|
|
34
142
|
components: {
|
|
143
|
+
FSRouterLink,
|
|
35
144
|
FSCard
|
|
36
145
|
},
|
|
37
146
|
props: {
|
|
147
|
+
height: {
|
|
148
|
+
type: [Array, String, Number] as PropType<string[] | number[] | string | number | null>,
|
|
149
|
+
required: false,
|
|
150
|
+
default: null
|
|
151
|
+
},
|
|
152
|
+
width: {
|
|
153
|
+
type: [Array, String, Number] as PropType<string[] | number[] | string | number | null>,
|
|
154
|
+
required: false,
|
|
155
|
+
default: null
|
|
156
|
+
},
|
|
157
|
+
padding: {
|
|
158
|
+
type: [Array, String, Number] as PropType<string[] | number[] | string | number | null>,
|
|
159
|
+
required: false,
|
|
160
|
+
default: "0"
|
|
161
|
+
},
|
|
162
|
+
class: {
|
|
163
|
+
type: [String, Array] as PropType<string | string[] | null>,
|
|
164
|
+
required: false,
|
|
165
|
+
default: null
|
|
166
|
+
},
|
|
167
|
+
to: {
|
|
168
|
+
type: Object as PropType<RouteLocation | null>,
|
|
169
|
+
required: false,
|
|
170
|
+
default: null
|
|
171
|
+
},
|
|
172
|
+
href: {
|
|
173
|
+
type: String as PropType<string | null>,
|
|
174
|
+
required: false,
|
|
175
|
+
default: null
|
|
176
|
+
},
|
|
38
177
|
variant: {
|
|
39
|
-
type: String as PropType<
|
|
178
|
+
type: String as PropType<"standard" | "background" | "full">,
|
|
40
179
|
required: false,
|
|
41
|
-
default:
|
|
180
|
+
default: "standard"
|
|
181
|
+
},
|
|
182
|
+
type: {
|
|
183
|
+
type: String as PropType<"button" | "submit">,
|
|
184
|
+
required: false,
|
|
185
|
+
default: "button"
|
|
42
186
|
},
|
|
43
187
|
color: {
|
|
44
188
|
type: String as PropType<ColorBase>,
|
|
45
189
|
required: false,
|
|
46
190
|
default: ColorEnum.Light
|
|
47
191
|
},
|
|
48
|
-
|
|
192
|
+
border: {
|
|
49
193
|
type: Boolean,
|
|
50
194
|
required: false,
|
|
51
195
|
default: true
|
|
196
|
+
},
|
|
197
|
+
borderRadius: {
|
|
198
|
+
type: [String, Number],
|
|
199
|
+
required: false,
|
|
200
|
+
default: "4px"
|
|
201
|
+
},
|
|
202
|
+
borderStyle: {
|
|
203
|
+
type: String as PropType<"solid" | "dashed" | "dotted" | "double" | "groove" | "ridge" | "inset" | "outset" | "none">,
|
|
204
|
+
required: false,
|
|
205
|
+
default: "solid"
|
|
206
|
+
},
|
|
207
|
+
load: {
|
|
208
|
+
type: Boolean,
|
|
209
|
+
required: false,
|
|
210
|
+
default: false
|
|
211
|
+
},
|
|
212
|
+
disabled: {
|
|
213
|
+
type: Boolean,
|
|
214
|
+
required: false,
|
|
215
|
+
default: false
|
|
52
216
|
}
|
|
53
217
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
218
|
+
emits: ["click"],
|
|
219
|
+
setup(props, { emit }) {
|
|
220
|
+
const { getColors } = useColors();
|
|
221
|
+
|
|
222
|
+
const colors = computed(() => getColors(props.color));
|
|
223
|
+
const backgrounds = getColors(ColorEnum.Background);
|
|
224
|
+
const lights = getColors(ColorEnum.Light);
|
|
225
|
+
const darks = getColors(ColorEnum.Dark);
|
|
226
|
+
|
|
227
|
+
const hover = ref(false);
|
|
228
|
+
const active = ref(false);
|
|
229
|
+
|
|
230
|
+
const style = computed((): StyleValue => {
|
|
231
|
+
if (props.disabled) {
|
|
232
|
+
return {
|
|
233
|
+
"--fs-clickable-border-size" : props.border ? "1px" : "0",
|
|
234
|
+
"--fs-clickable-border-style" : props.borderStyle,
|
|
235
|
+
"--fs-clickable-border-radius" : sizeToVar(props.borderRadius),
|
|
236
|
+
"--fs-clickable-background-color": lights.light,
|
|
237
|
+
"--fs-clickable-border-color" : lights.dark,
|
|
238
|
+
"--fs-clickable-color" : lights.dark,
|
|
239
|
+
"--fs-clickable-height" : sizeToVar(props.height),
|
|
240
|
+
"--fs-clickable-width" : sizeToVar(props.width)
|
|
241
|
+
};
|
|
242
|
+
}
|
|
243
|
+
switch (props.variant) {
|
|
244
|
+
case "standard":
|
|
245
|
+
switch (props.color) {
|
|
246
|
+
case ColorEnum.Dark :
|
|
247
|
+
case ColorEnum.Light: return {
|
|
248
|
+
"--fs-clickable-border-size" : props.border ? "1px" : "0",
|
|
249
|
+
"--fs-clickable-border-style" : props.borderStyle,
|
|
250
|
+
"--fs-clickable-border-radius" : sizeToVar(props.borderRadius),
|
|
251
|
+
"--fs-clickable-background-color" : backgrounds.base,
|
|
252
|
+
"--fs-clickable-border-color" : lights.dark,
|
|
253
|
+
"--fs-clickable-color" : lights.lightContrast!,
|
|
254
|
+
"--fs-clickable-hover-background-color" : lights.base,
|
|
255
|
+
"--fs-clickable-hover-border-color" : lights.dark,
|
|
256
|
+
"--fs-clickable-hover-color" : lights.baseContrast!,
|
|
257
|
+
"--fs-clickable-active-background-color": lights.dark,
|
|
258
|
+
"--fs-clickable-active-border-color" : lights.dark,
|
|
259
|
+
"--fs-clickable-active-color" : lights.darkContrast!,
|
|
260
|
+
"--fs-clickable-height" : sizeToVar(props.height),
|
|
261
|
+
"--fs-clickable-width" : sizeToVar(props.width)
|
|
262
|
+
};
|
|
263
|
+
default: return {
|
|
264
|
+
"--fs-clickable-border-size" : props.border ? "1px" : "0",
|
|
265
|
+
"--fs-clickable-border-style" : props.borderStyle,
|
|
266
|
+
"--fs-clickable-border-radius" : sizeToVar(props.borderRadius),
|
|
267
|
+
"--fs-clickable-background-color" : colors.value.light,
|
|
268
|
+
"--fs-clickable-border-color" : colors.value.lightContrast!,
|
|
269
|
+
"--fs-clickable-color" : colors.value.lightContrast!,
|
|
270
|
+
"--fs-clickable-hover-background-color" : colors.value.base,
|
|
271
|
+
"--fs-clickable-hover-border-color" : colors.value.base,
|
|
272
|
+
"--fs-clickable-hover-color" : colors.value.baseContrast!,
|
|
273
|
+
"--fs-clickable-active-background-color": colors.value.dark,
|
|
274
|
+
"--fs-clickable-active-border-color" : colors.value.darkContrast!,
|
|
275
|
+
"--fs-clickable-active-color" : colors.value.darkContrast!,
|
|
276
|
+
"--fs-clickable-height" : sizeToVar(props.height),
|
|
277
|
+
"--fs-clickable-width" : sizeToVar(props.width)
|
|
278
|
+
};
|
|
279
|
+
}
|
|
280
|
+
case "background": return {
|
|
281
|
+
"--fs-clickable-border-size" : props.border ? "1px" : "0",
|
|
282
|
+
"--fs-clickable-border-style" : props.borderStyle,
|
|
283
|
+
"--fs-clickable-border-radius" : sizeToVar(props.borderRadius),
|
|
284
|
+
"--fs-clickable-background-color" : backgrounds.base,
|
|
285
|
+
"--fs-clickable-border-color" : lights.dark,
|
|
286
|
+
"--fs-clickable-color" : darks.base,
|
|
287
|
+
"--fs-clickable-hover-background-color" : colors.value.base,
|
|
288
|
+
"--fs-clickable-hover-border-color" : colors.value.baseContrast!,
|
|
289
|
+
"--fs-clickable-hover-color" : colors.value.baseContrast!,
|
|
290
|
+
"--fs-clickable-active-background-color": colors.value.dark,
|
|
291
|
+
"--fs-clickable-active-border-color" : colors.value.darkContrast!,
|
|
292
|
+
"--fs-clickable-active-color" : colors.value.darkContrast!,
|
|
293
|
+
"--fs-clickable-height" : sizeToVar(props.height),
|
|
294
|
+
"--fs-clickable-width" : sizeToVar(props.width)
|
|
295
|
+
};
|
|
296
|
+
case "full": return {
|
|
297
|
+
"--fs-clickable-border-size" : props.border ? "1px" : "0",
|
|
298
|
+
"--fs-clickable-border-style" : props.borderStyle,
|
|
299
|
+
"--fs-clickable-border-radius" : sizeToVar(props.borderRadius),
|
|
300
|
+
"--fs-clickable-background-color" : colors.value.base,
|
|
301
|
+
"--fs-clickable-border-color" : colors.value.base,
|
|
302
|
+
"--fs-clickable-color" : colors.value.baseContrast!,
|
|
303
|
+
"--fs-clickable-hover-background-color" : colors.value.base,
|
|
304
|
+
"--fs-clickable-hover-border-color" : colors.value.base,
|
|
305
|
+
"--fs-clickable-hover-color" : colors.value.baseContrast!,
|
|
306
|
+
"--fs-clickable-active-background-color": colors.value.dark,
|
|
307
|
+
"--fs-clickable-active-border-color" : colors.value.dark,
|
|
308
|
+
"--fs-clickable-active-color" : colors.value.darkContrast!,
|
|
309
|
+
"--fs-clickable-height" : sizeToVar(props.height),
|
|
310
|
+
"--fs-clickable-width" : sizeToVar(props.width)
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
|
|
315
|
+
const contentVariant = computed((): "base" | "baseContrast" | "light" | "lightContrast" | "dark" | "darkContrast" => {
|
|
316
|
+
if (active.value) {
|
|
317
|
+
return "darkContrast";
|
|
318
|
+
}
|
|
319
|
+
if (hover.value) {
|
|
320
|
+
return "baseContrast";
|
|
321
|
+
}
|
|
322
|
+
switch (props.variant) {
|
|
323
|
+
case "standard" : return "lightContrast";
|
|
324
|
+
case "background": return "base";
|
|
325
|
+
case "full" : return "baseContrast";
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
|
|
329
|
+
const classes = computed((): string[] => {
|
|
330
|
+
const classNames: string[] = ["fs-clickable"];
|
|
331
|
+
if (props.disabled) {
|
|
332
|
+
classNames.push("fs-clickable-disabled");
|
|
333
|
+
}
|
|
334
|
+
return classNames;
|
|
335
|
+
});
|
|
336
|
+
|
|
337
|
+
const loadColor = computed((): string => {
|
|
338
|
+
switch (props.color) {
|
|
339
|
+
case ColorEnum.Primary:
|
|
340
|
+
case ColorEnum.Success:
|
|
341
|
+
case ColorEnum.Warning:
|
|
342
|
+
case ColorEnum.Error : return ["full"].includes(props.variant) ? colors.value.light : colors.value.dark;
|
|
343
|
+
default : return ["full"].includes(props.variant) ? darks.soft : darks.dark;
|
|
344
|
+
}
|
|
57
345
|
});
|
|
346
|
+
|
|
347
|
+
const onClick = (event: MouseEvent) => {
|
|
348
|
+
if (!props.to && !props.href && !props.disabled && !props.load) {
|
|
349
|
+
emit("click", event);
|
|
350
|
+
}
|
|
351
|
+
};
|
|
352
|
+
|
|
58
353
|
return {
|
|
354
|
+
contentVariant,
|
|
355
|
+
loadColor,
|
|
356
|
+
classes,
|
|
357
|
+
active,
|
|
358
|
+
hover,
|
|
359
|
+
style,
|
|
360
|
+
onClick
|
|
59
361
|
};
|
|
60
362
|
}
|
|
61
363
|
});
|
package/components/FSColor.vue
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<script lang="ts">
|
|
15
15
|
import { computed, defineComponent, type PropType } from "vue";
|
|
16
16
|
|
|
17
|
-
import { type
|
|
17
|
+
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
18
18
|
import { useColors } from "@dative-gpi/foundation-shared-components/composables";
|
|
19
19
|
|
|
20
20
|
import FSCard from "./FSCard.vue";
|
|
@@ -26,9 +26,9 @@ export default defineComponent({
|
|
|
26
26
|
},
|
|
27
27
|
props: {
|
|
28
28
|
variant: {
|
|
29
|
-
type: String as PropType<
|
|
29
|
+
type: String as PropType<"standard" | "full">,
|
|
30
30
|
required: false,
|
|
31
|
-
default:
|
|
31
|
+
default: "standard"
|
|
32
32
|
},
|
|
33
33
|
color: {
|
|
34
34
|
type: String as PropType<ColorBase>,
|
|
@@ -6,46 +6,37 @@
|
|
|
6
6
|
:color="$props.color"
|
|
7
7
|
:width="cardWidth"
|
|
8
8
|
>
|
|
9
|
-
<
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
:wrap="false"
|
|
18
|
-
>
|
|
19
|
-
<FSText
|
|
20
|
-
font="text-h2"
|
|
21
|
-
>
|
|
22
|
-
{{ $props.title }}
|
|
23
|
-
</FSText>
|
|
24
|
-
<FSRow
|
|
25
|
-
align="center-right"
|
|
26
|
-
>
|
|
27
|
-
<FSButton
|
|
28
|
-
icon="mdi-close"
|
|
29
|
-
variant="icon"
|
|
30
|
-
:color="ColorEnum.Dark"
|
|
31
|
-
@click="$emit('update:modelValue', false)"
|
|
32
|
-
/>
|
|
33
|
-
</FSRow>
|
|
34
|
-
</FSRow>
|
|
9
|
+
<template
|
|
10
|
+
#header
|
|
11
|
+
>
|
|
12
|
+
<FSCol>
|
|
13
|
+
<FSRow
|
|
14
|
+
align="center-left"
|
|
15
|
+
:wrap="false"
|
|
16
|
+
>
|
|
35
17
|
<FSText
|
|
36
|
-
|
|
18
|
+
font="text-h2"
|
|
37
19
|
>
|
|
38
|
-
{{ $props.
|
|
20
|
+
{{ $props.title }}
|
|
39
21
|
</FSText>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
22
|
+
<FSRow
|
|
23
|
+
align="center-right"
|
|
24
|
+
>
|
|
25
|
+
<FSButton
|
|
26
|
+
icon="mdi-close"
|
|
27
|
+
variant="icon"
|
|
28
|
+
:color="ColorEnum.Dark"
|
|
29
|
+
@click="$emit('update:modelValue', false)"
|
|
30
|
+
/>
|
|
31
|
+
</FSRow>
|
|
32
|
+
</FSRow>
|
|
33
|
+
<FSText
|
|
34
|
+
v-if="$props.subtitle"
|
|
35
|
+
>
|
|
36
|
+
{{ $props.subtitle }}
|
|
37
|
+
</FSText>
|
|
38
|
+
</FSCol>
|
|
39
|
+
</template>
|
|
49
40
|
<template
|
|
50
41
|
v-for="(_, name) in $slots"
|
|
51
42
|
v-slot:[name]="slotData"
|
|
@@ -68,7 +59,6 @@ import { sizeToVar } from "@dative-gpi/foundation-shared-components/utils";
|
|
|
68
59
|
import FSButton from "./FSButton.vue";
|
|
69
60
|
import FSCard from "./FSCard.vue";
|
|
70
61
|
import FSText from "./FSText.vue";
|
|
71
|
-
import FSCol from "./FSCol.vue";
|
|
72
62
|
import FSRow from "./FSRow.vue";
|
|
73
63
|
|
|
74
64
|
export default defineComponent({
|
|
@@ -77,7 +67,6 @@ export default defineComponent({
|
|
|
77
67
|
FSButton,
|
|
78
68
|
FSCard,
|
|
79
69
|
FSText,
|
|
80
|
-
FSCol,
|
|
81
70
|
FSRow
|
|
82
71
|
},
|
|
83
72
|
props: {
|
|
@@ -99,7 +99,6 @@ import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composa
|
|
|
99
99
|
import FSFadeOut from "./FSFadeOut.vue";
|
|
100
100
|
import FSButton from "./FSButton.vue";
|
|
101
101
|
import FSForm from "./FSForm.vue";
|
|
102
|
-
import FSCol from "./FSCol.vue";
|
|
103
102
|
import FSRow from "./FSRow.vue";
|
|
104
103
|
|
|
105
104
|
export default defineComponent({
|
|
@@ -108,7 +107,6 @@ export default defineComponent({
|
|
|
108
107
|
FSFadeOut,
|
|
109
108
|
FSButton,
|
|
110
109
|
FSForm,
|
|
111
|
-
FSCol,
|
|
112
110
|
FSRow
|
|
113
111
|
},
|
|
114
112
|
props: {
|
|
@@ -10,11 +10,6 @@
|
|
|
10
10
|
:color="$props.color"
|
|
11
11
|
:class="classes"
|
|
12
12
|
>
|
|
13
|
-
<FSCol>
|
|
14
|
-
<slot
|
|
15
|
-
name="body"
|
|
16
|
-
/>
|
|
17
|
-
</FSCol>
|
|
18
13
|
<template
|
|
19
14
|
v-for="(_, name) in $slots"
|
|
20
15
|
v-slot:[name]="slotData"
|
|
@@ -35,13 +30,11 @@ import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-compone
|
|
|
35
30
|
import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composables";
|
|
36
31
|
|
|
37
32
|
import FSCard from "./FSCard.vue";
|
|
38
|
-
import FSCol from "./FSCol.vue";
|
|
39
33
|
|
|
40
34
|
export default defineComponent({
|
|
41
35
|
name: "FSDialogMenu",
|
|
42
36
|
components: {
|
|
43
|
-
FSCard
|
|
44
|
-
FSCol
|
|
37
|
+
FSCard
|
|
45
38
|
},
|
|
46
39
|
props: {
|
|
47
40
|
classes: {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
import { computed, defineComponent, type PropType, ref } from "vue";
|
|
105
105
|
|
|
106
106
|
import { useTranslations as useTranslationsProvider } from "@dative-gpi/bones-ui/composables";
|
|
107
|
-
import { type ColorBase, ColorEnum
|
|
107
|
+
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
108
108
|
import { useBreakpoints } from "@dative-gpi/foundation-shared-components/composables";
|
|
109
109
|
|
|
110
110
|
import FSPagination from "./FSPagination.vue";
|
|
@@ -118,7 +118,6 @@ import FSTabs from "./FSTabs.vue";
|
|
|
118
118
|
import FSTab from "./FSTab.vue";
|
|
119
119
|
import FSIcon from "./FSIcon.vue";
|
|
120
120
|
import FSWindow from "./FSWindow.vue";
|
|
121
|
-
import { DialogMultiFormVariants } from "@dative-gpi/foundation-shared-components/models";
|
|
122
121
|
|
|
123
122
|
export default defineComponent({
|
|
124
123
|
name: "FSDialogMultiFormBody",
|
|
@@ -147,9 +146,9 @@ export default defineComponent({
|
|
|
147
146
|
default: "auto"
|
|
148
147
|
},
|
|
149
148
|
variant: {
|
|
150
|
-
type: String as PropType<
|
|
149
|
+
type: String as PropType<"standard" | "submit">,
|
|
151
150
|
required: false,
|
|
152
|
-
default:
|
|
151
|
+
default: "submit"
|
|
153
152
|
},
|
|
154
153
|
steps: {
|
|
155
154
|
type: Number,
|
|
@@ -226,9 +225,9 @@ export default defineComponent({
|
|
|
226
225
|
default: false
|
|
227
226
|
},
|
|
228
227
|
mode: {
|
|
229
|
-
type: String as PropType<
|
|
228
|
+
type: String as PropType<"pagination" | "tabs">,
|
|
230
229
|
required: false,
|
|
231
|
-
default:
|
|
230
|
+
default: "pagination"
|
|
232
231
|
},
|
|
233
232
|
tabsColor: {
|
|
234
233
|
type: String as PropType<ColorBase>,
|
package/components/FSDivider.vue
CHANGED
|
@@ -41,15 +41,11 @@ import { useColors, useSlots } from "@dative-gpi/foundation-shared-components/co
|
|
|
41
41
|
import { sizeToVar } from "@dative-gpi/foundation-shared-components/utils";
|
|
42
42
|
|
|
43
43
|
import FSText from "./FSText.vue";
|
|
44
|
-
import FSCol from "./FSCol.vue";
|
|
45
|
-
import FSRow from "./FSRow.vue";
|
|
46
44
|
|
|
47
45
|
export default defineComponent({
|
|
48
46
|
name: "FSDivider",
|
|
49
47
|
components: {
|
|
50
|
-
FSText
|
|
51
|
-
FSCol,
|
|
52
|
-
FSRow
|
|
48
|
+
FSText
|
|
53
49
|
},
|
|
54
50
|
props: {
|
|
55
51
|
label: {
|