@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,149 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSTile
|
|
3
|
-
:activeColor="ColorEnum.Primary"
|
|
4
|
-
:modelValue="$props.modelValue"
|
|
5
|
-
:width="$props.width"
|
|
6
|
-
:height="$props.height"
|
|
7
|
-
padding="16px 24px"
|
|
8
|
-
v-bind="$attrs"
|
|
9
|
-
>
|
|
10
|
-
<FSRow
|
|
11
|
-
:wrap="false"
|
|
12
|
-
>
|
|
13
|
-
<FSCol
|
|
14
|
-
gap="16px"
|
|
15
|
-
width="fill"
|
|
16
|
-
>
|
|
17
|
-
<FSSpan
|
|
18
|
-
font="text-button"
|
|
19
|
-
>
|
|
20
|
-
{{ $props.label }}
|
|
21
|
-
</FSSpan>
|
|
22
|
-
<FSRow
|
|
23
|
-
:wrap="false"
|
|
24
|
-
align="center-left"
|
|
25
|
-
>
|
|
26
|
-
<FSIcon>
|
|
27
|
-
mdi-view-dashboard-outline
|
|
28
|
-
</FSIcon>
|
|
29
|
-
<FSSpan
|
|
30
|
-
font="text-overline"
|
|
31
|
-
>
|
|
32
|
-
{{ $tr('ui.dashboards.dynamic', '{0} dashboard(s)', $props.dashboardsCount) }}
|
|
33
|
-
</FSSpan>
|
|
34
|
-
</FSRow>
|
|
35
|
-
<FSRow
|
|
36
|
-
:wrap="false"
|
|
37
|
-
align="center-left"
|
|
38
|
-
>
|
|
39
|
-
<FSIconCheck
|
|
40
|
-
variant="fill"
|
|
41
|
-
:value="automaticTransition"
|
|
42
|
-
/>
|
|
43
|
-
<FSSpan
|
|
44
|
-
font="text-overline"
|
|
45
|
-
v-if="automaticTransition"
|
|
46
|
-
>
|
|
47
|
-
{{$tr('ui.playlist.transition-delay.dynamic', 'Transition : {0}', getTimeBestString($props.delay ?? 0))}}
|
|
48
|
-
</FSSpan>
|
|
49
|
-
<FSSpan
|
|
50
|
-
font="text-overline"
|
|
51
|
-
v-else
|
|
52
|
-
>
|
|
53
|
-
{{ $tr('ui.playlist.automatic-transition', 'Automatic transition') }}
|
|
54
|
-
</FSSpan>
|
|
55
|
-
</FSRow>
|
|
56
|
-
<FSRow
|
|
57
|
-
:wrap="false"
|
|
58
|
-
align="center-left"
|
|
59
|
-
>
|
|
60
|
-
<FSIconCheck
|
|
61
|
-
variant="fill"
|
|
62
|
-
:value="$props.looped"
|
|
63
|
-
/>
|
|
64
|
-
<FSSpan
|
|
65
|
-
font="text-overline"
|
|
66
|
-
>
|
|
67
|
-
{{ $tr('entity.playlist.looped', 'Looped') }}
|
|
68
|
-
</FSSpan>
|
|
69
|
-
</FSRow>
|
|
70
|
-
</FSCol>
|
|
71
|
-
<slot
|
|
72
|
-
name="actions"
|
|
73
|
-
/>
|
|
74
|
-
</FSRow>
|
|
75
|
-
</FSTile>
|
|
76
|
-
</template>
|
|
77
|
-
|
|
78
|
-
<script lang="ts">
|
|
79
|
-
import { computed, defineComponent, type PropType } from "vue";
|
|
80
|
-
|
|
81
|
-
import { ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
82
|
-
|
|
83
|
-
import { getTimeBestString } from "@dative-gpi/foundation-shared-components/utils";
|
|
84
|
-
|
|
85
|
-
import FSIconCheck from "../FSIconCheck.vue";
|
|
86
|
-
import FSTile from "../tiles/FSTile.vue";
|
|
87
|
-
import FSIcon from "../FSIcon.vue";
|
|
88
|
-
import FSSpan from "../FSSpan.vue";
|
|
89
|
-
import FSRow from "../FSRow.vue";
|
|
90
|
-
import FSCol from "../FSCol.vue";
|
|
91
|
-
|
|
92
|
-
export default defineComponent({
|
|
93
|
-
name: "FSPlaylistTileUI",
|
|
94
|
-
components: {
|
|
95
|
-
FSIconCheck,
|
|
96
|
-
FSIcon,
|
|
97
|
-
FSTile,
|
|
98
|
-
FSSpan,
|
|
99
|
-
FSRow,
|
|
100
|
-
FSCol
|
|
101
|
-
},
|
|
102
|
-
inheritAttrs: false,
|
|
103
|
-
props: {
|
|
104
|
-
width: {
|
|
105
|
-
type: [Array, String, Number] as PropType<string[] | number[] | string | number | null>,
|
|
106
|
-
required: false,
|
|
107
|
-
default: () => [352, 336]
|
|
108
|
-
},
|
|
109
|
-
height: {
|
|
110
|
-
type: [Array, String, Number] as PropType<string[] | number[] | string | number | null>,
|
|
111
|
-
required: false,
|
|
112
|
-
default: () => 'hug'
|
|
113
|
-
},
|
|
114
|
-
label: {
|
|
115
|
-
type: String as PropType<string>,
|
|
116
|
-
required: true
|
|
117
|
-
},
|
|
118
|
-
dashboardsCount: {
|
|
119
|
-
type: Number,
|
|
120
|
-
required: true
|
|
121
|
-
},
|
|
122
|
-
delay: {
|
|
123
|
-
type: Number ,
|
|
124
|
-
required: false
|
|
125
|
-
},
|
|
126
|
-
looped: {
|
|
127
|
-
type: Boolean,
|
|
128
|
-
required: true
|
|
129
|
-
},
|
|
130
|
-
modelValue: {
|
|
131
|
-
type: Boolean,
|
|
132
|
-
required: false,
|
|
133
|
-
default: false
|
|
134
|
-
}
|
|
135
|
-
},
|
|
136
|
-
setup(props) {
|
|
137
|
-
|
|
138
|
-
const automaticTransition = computed((): boolean => {
|
|
139
|
-
return props.delay ? props.delay > 0 : false;
|
|
140
|
-
});
|
|
141
|
-
|
|
142
|
-
return {
|
|
143
|
-
getTimeBestString,
|
|
144
|
-
automaticTransition,
|
|
145
|
-
ColorEnum
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
</script>
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<FSSimpleTileUI
|
|
3
|
-
:bottomColor="null"
|
|
4
|
-
v-bind="$attrs"
|
|
5
|
-
>
|
|
6
|
-
<template
|
|
7
|
-
#append-info
|
|
8
|
-
>
|
|
9
|
-
<FSRow
|
|
10
|
-
v-if="$props.groupingLabel && $props.groupingIcon"
|
|
11
|
-
align="center-left"
|
|
12
|
-
:wrap="false"
|
|
13
|
-
>
|
|
14
|
-
<FSColor
|
|
15
|
-
height="24px"
|
|
16
|
-
:color="$props.groupingColor"
|
|
17
|
-
:border="false"
|
|
18
|
-
variant="standard"
|
|
19
|
-
>
|
|
20
|
-
<FSRow
|
|
21
|
-
align="center-center"
|
|
22
|
-
width="24px"
|
|
23
|
-
>
|
|
24
|
-
<FSIcon
|
|
25
|
-
size="16px"
|
|
26
|
-
>
|
|
27
|
-
{{ $props.groupingIcon }}
|
|
28
|
-
</FSIcon>
|
|
29
|
-
</FSRow>
|
|
30
|
-
</FSColor>
|
|
31
|
-
<FSSpan
|
|
32
|
-
font="text-overline"
|
|
33
|
-
>
|
|
34
|
-
{{ $props.groupingLabel }}
|
|
35
|
-
</FSSpan>
|
|
36
|
-
</FSRow>
|
|
37
|
-
<FSEntityCountBadge
|
|
38
|
-
:label="$tr('ui.common.devices', 'Devices')"
|
|
39
|
-
:count="$props.deviceOrganisationsCount ?? 0"
|
|
40
|
-
:color="ColorEnum.Primary"
|
|
41
|
-
/>
|
|
42
|
-
</template>
|
|
43
|
-
</FSSimpleTileUI>
|
|
44
|
-
</template>
|
|
45
|
-
|
|
46
|
-
<script lang="ts">
|
|
47
|
-
import { defineComponent, type PropType } from "vue";
|
|
48
|
-
|
|
49
|
-
import { type ColorBase, ColorEnum } from "@dative-gpi/foundation-shared-components/models";
|
|
50
|
-
|
|
51
|
-
import FSEntityCountBadge from "./FSEntityCountBadge.vue";
|
|
52
|
-
import FSSimpleTileUI from './FSSimpleTileUI.vue';
|
|
53
|
-
import FSColor from "../FSColor.vue";
|
|
54
|
-
import FSIcon from "../FSIcon.vue";
|
|
55
|
-
import FSSpan from "../FSSpan.vue";
|
|
56
|
-
import FSRow from "../FSRow.vue";
|
|
57
|
-
|
|
58
|
-
export default defineComponent({
|
|
59
|
-
name: "FSSubgroupingTileUI",
|
|
60
|
-
components: {
|
|
61
|
-
FSEntityCountBadge,
|
|
62
|
-
FSSimpleTileUI,
|
|
63
|
-
FSColor,
|
|
64
|
-
FSIcon,
|
|
65
|
-
FSSpan,
|
|
66
|
-
FSRow
|
|
67
|
-
},
|
|
68
|
-
props: {
|
|
69
|
-
groupingLabel: {
|
|
70
|
-
type: String as PropType<string | null>,
|
|
71
|
-
required: false,
|
|
72
|
-
default: null
|
|
73
|
-
},
|
|
74
|
-
groupingIcon: {
|
|
75
|
-
type: String as PropType<string | null>,
|
|
76
|
-
required: false,
|
|
77
|
-
default: null
|
|
78
|
-
},
|
|
79
|
-
groupingColor: {
|
|
80
|
-
type: String as PropType<ColorBase>,
|
|
81
|
-
required: false,
|
|
82
|
-
default: ColorEnum.Dark
|
|
83
|
-
},
|
|
84
|
-
deviceOrganisationsCount: {
|
|
85
|
-
type: Number,
|
|
86
|
-
required: false,
|
|
87
|
-
default: null
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
inheritAttrs: false,
|
|
91
|
-
setup() {
|
|
92
|
-
return {
|
|
93
|
-
ColorEnum,
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
</script>
|
package/models/variants.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export type CardVariant = "background" | "standard" | "full" | "gradient";
|
|
2
|
-
export enum CardVariants {
|
|
3
|
-
Background = "background",
|
|
4
|
-
Standard = "standard",
|
|
5
|
-
Full = "full",
|
|
6
|
-
Gradient = "gradient"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export type SnackbarVariant = "standard" | "full";
|
|
10
|
-
export enum SnackbarVariants {
|
|
11
|
-
Standard = "standard",
|
|
12
|
-
Full = "full"
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type DialogMultiFormVariant = "standard" | "submit";
|
|
16
|
-
export enum DialogMultiFormVariants {
|
|
17
|
-
Standard = "standard",
|
|
18
|
-
Submit = "submit"
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type DialogMultiFormMode = "pagination" | "tabs" | "hidden";
|
|
22
|
-
export enum DialogMultiFormModes {
|
|
23
|
-
Pagination = "pagination",
|
|
24
|
-
Tabs = "tabs",
|
|
25
|
-
Hidden = "hidden"
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export type ChipGroupVariant = "wrap" | "slide" | "menu";
|
|
29
|
-
export enum ChipGroupVariants {
|
|
30
|
-
Wrap = "wrap",
|
|
31
|
-
Slide = "slide",
|
|
32
|
-
Menu = "menu"
|
|
33
|
-
}
|