@dative-gpi/foundation-shared-components 1.1.1 → 1.1.2
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.
|
@@ -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 } from "@dative-gpi/foundation-shared-components/models";
|
|
107
|
+
import { type ColorBase, ColorEnum, type DialogMultiFormMode, DialogMultiFormModes, type DialogMultiFormVariant } 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,6 +118,7 @@ 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";
|
|
121
122
|
|
|
122
123
|
export default defineComponent({
|
|
123
124
|
name: "FSDialogMultiFormBody",
|
|
@@ -146,9 +147,9 @@ export default defineComponent({
|
|
|
146
147
|
default: "auto"
|
|
147
148
|
},
|
|
148
149
|
variant: {
|
|
149
|
-
type: String as PropType<
|
|
150
|
+
type: String as PropType<DialogMultiFormVariant>,
|
|
150
151
|
required: false,
|
|
151
|
-
default:
|
|
152
|
+
default: DialogMultiFormVariants.Submit
|
|
152
153
|
},
|
|
153
154
|
steps: {
|
|
154
155
|
type: Number,
|
|
@@ -225,9 +226,9 @@ export default defineComponent({
|
|
|
225
226
|
default: false
|
|
226
227
|
},
|
|
227
228
|
mode: {
|
|
228
|
-
type: String as PropType<
|
|
229
|
+
type: String as PropType<DialogMultiFormMode>,
|
|
229
230
|
required: false,
|
|
230
|
-
default:
|
|
231
|
+
default: DialogMultiFormModes.Pagination
|
|
231
232
|
},
|
|
232
233
|
tabsColor: {
|
|
233
234
|
type: String as PropType<ColorBase>,
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
gap="16px"
|
|
15
15
|
width="fill"
|
|
16
16
|
>
|
|
17
|
-
<
|
|
17
|
+
<FSSpan
|
|
18
18
|
font="text-button"
|
|
19
19
|
>
|
|
20
20
|
{{ $props.label }}
|
|
21
|
-
</
|
|
21
|
+
</FSSpan>
|
|
22
22
|
<FSRow
|
|
23
23
|
:wrap="false"
|
|
24
24
|
align="center-left"
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
<FSIcon>
|
|
27
27
|
mdi-view-dashboard-outline
|
|
28
28
|
</FSIcon>
|
|
29
|
-
<
|
|
29
|
+
<FSSpan
|
|
30
30
|
font="text-overline"
|
|
31
31
|
>
|
|
32
32
|
{{ $tr('ui.dashboards.dynamic', '{0} dashboard(s)', $props.dashboardsCount) }}
|
|
33
|
-
</
|
|
33
|
+
</FSSpan>
|
|
34
34
|
</FSRow>
|
|
35
35
|
<FSRow
|
|
36
36
|
:wrap="false"
|
|
@@ -40,18 +40,18 @@
|
|
|
40
40
|
variant="fill"
|
|
41
41
|
:value="automaticTransition"
|
|
42
42
|
/>
|
|
43
|
-
<
|
|
43
|
+
<FSSpan
|
|
44
44
|
font="text-overline"
|
|
45
45
|
v-if="automaticTransition"
|
|
46
46
|
>
|
|
47
47
|
{{$tr('ui.playlist.transition-delay.dynamic', 'Transition : {0}', getTimeBestString($props.delay ?? 0))}}
|
|
48
|
-
</
|
|
49
|
-
<
|
|
48
|
+
</FSSpan>
|
|
49
|
+
<FSSpan
|
|
50
50
|
font="text-overline"
|
|
51
51
|
v-else
|
|
52
52
|
>
|
|
53
53
|
{{ $tr('ui.playlist.automatic-transition', 'Automatic transition') }}
|
|
54
|
-
</
|
|
54
|
+
</FSSpan>
|
|
55
55
|
</FSRow>
|
|
56
56
|
<FSRow
|
|
57
57
|
:wrap="false"
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
variant="fill"
|
|
62
62
|
:value="$props.looped"
|
|
63
63
|
/>
|
|
64
|
-
<
|
|
64
|
+
<FSSpan
|
|
65
65
|
font="text-overline"
|
|
66
66
|
>
|
|
67
67
|
{{ $tr('entity.playlist.looped', 'Looped') }}
|
|
68
|
-
</
|
|
68
|
+
</FSSpan>
|
|
69
69
|
</FSRow>
|
|
70
70
|
</FSCol>
|
|
71
71
|
<slot
|
|
@@ -85,7 +85,7 @@ import { getTimeBestString } from "@dative-gpi/foundation-shared-components/util
|
|
|
85
85
|
import FSIconCheck from "../FSIconCheck.vue";
|
|
86
86
|
import FSTile from "../tiles/FSTile.vue";
|
|
87
87
|
import FSIcon from "../FSIcon.vue";
|
|
88
|
-
import
|
|
88
|
+
import FSSpan from "../FSSpan.vue";
|
|
89
89
|
import FSRow from "../FSRow.vue";
|
|
90
90
|
import FSCol from "../FSCol.vue";
|
|
91
91
|
|
|
@@ -95,7 +95,7 @@ export default defineComponent({
|
|
|
95
95
|
FSIconCheck,
|
|
96
96
|
FSIcon,
|
|
97
97
|
FSTile,
|
|
98
|
-
|
|
98
|
+
FSSpan,
|
|
99
99
|
FSRow,
|
|
100
100
|
FSCol
|
|
101
101
|
},
|
package/models/variants.ts
CHANGED
|
@@ -10,4 +10,17 @@ export type SnackbarVariant = "standard" | "full";
|
|
|
10
10
|
export enum SnackbarVariants {
|
|
11
11
|
Standard = "standard",
|
|
12
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"
|
|
13
26
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
|
|
5
5
|
},
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "1.1.
|
|
7
|
+
"version": "1.1.2",
|
|
8
8
|
"description": "",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dative-gpi/foundation-shared-domain": "1.1.
|
|
17
|
-
"@dative-gpi/foundation-shared-services": "1.1.
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.1.2",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.1.2"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@dative-gpi/bones-ui": "^1.0.0",
|
|
@@ -38,5 +38,5 @@
|
|
|
38
38
|
"sass": "1.71.1",
|
|
39
39
|
"sass-loader": "13.3.2"
|
|
40
40
|
},
|
|
41
|
-
"gitHead": "
|
|
41
|
+
"gitHead": "de9d8959468d94abe835e551090afbc46ecb4f86"
|
|
42
42
|
}
|