@dative-gpi/foundation-shared-components 1.0.168 → 1.0.169
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/FSSpan.vue
CHANGED
|
@@ -44,7 +44,12 @@ export default defineComponent({
|
|
|
44
44
|
type: String as PropType<"left" | "center" | "right">,
|
|
45
45
|
required: false,
|
|
46
46
|
default: "left"
|
|
47
|
-
}
|
|
47
|
+
},
|
|
48
|
+
wordBreak: {
|
|
49
|
+
type: String as PropType<"normal" | "break-all" | "keep-all" | "break-word">,
|
|
50
|
+
required: false,
|
|
51
|
+
default: "normal"
|
|
52
|
+
},
|
|
48
53
|
},
|
|
49
54
|
setup(props) {
|
|
50
55
|
const { fontStyles } = useBreakpoints();
|
|
@@ -53,6 +58,7 @@ export default defineComponent({
|
|
|
53
58
|
const style = computed((): StyleValue => ({
|
|
54
59
|
"--fs-span-text-align": props.align,
|
|
55
60
|
"--fs-span-line-clamp": props.lineClamp.toString(),
|
|
61
|
+
"--fs-span-word-break": props.wordBreak,
|
|
56
62
|
...fontStyles.value
|
|
57
63
|
}));
|
|
58
64
|
|
|
@@ -67,6 +73,9 @@ export default defineComponent({
|
|
|
67
73
|
else if (props.ellipsis) {
|
|
68
74
|
classNames.push("fs-span-ellipsis");
|
|
69
75
|
}
|
|
76
|
+
if (props.wordBreak !== "normal") {
|
|
77
|
+
classNames.push("fs-span-word-break");
|
|
78
|
+
}
|
|
70
79
|
return classNames;
|
|
71
80
|
});
|
|
72
81
|
|
package/components/FSText.vue
CHANGED
|
@@ -50,7 +50,12 @@ export default defineComponent({
|
|
|
50
50
|
type: String as PropType<"base" | "baseContrast" | "light" | "lightContrast" | "dark" | "darkContrast" | "soft" | "softContrast">,
|
|
51
51
|
required: false,
|
|
52
52
|
default: "base"
|
|
53
|
-
}
|
|
53
|
+
},
|
|
54
|
+
wordBreak: {
|
|
55
|
+
type: String as PropType<"normal" | "break-all" | "keep-all" | "break-word">,
|
|
56
|
+
required: false,
|
|
57
|
+
default: "normal"
|
|
58
|
+
},
|
|
54
59
|
},
|
|
55
60
|
setup(props) {
|
|
56
61
|
const { fontStyles } = useBreakpoints();
|
|
@@ -62,6 +67,7 @@ export default defineComponent({
|
|
|
62
67
|
const style = computed((): StyleValue => ({
|
|
63
68
|
"--fs-span-line-clamp": props.lineClamp.toString(),
|
|
64
69
|
"--fs-text-color" : colors.value[props.variant]!,
|
|
70
|
+
"--fs-span-word-break": props.wordBreak,
|
|
65
71
|
...fontStyles.value
|
|
66
72
|
}));
|
|
67
73
|
|
|
@@ -76,6 +82,9 @@ export default defineComponent({
|
|
|
76
82
|
else if (props.ellipsis) {
|
|
77
83
|
classNames.push("fs-span-ellipsis");
|
|
78
84
|
}
|
|
85
|
+
if (props.wordBreak !== "normal") {
|
|
86
|
+
classNames.push("fs-span-word-break");
|
|
87
|
+
}
|
|
79
88
|
return classNames;
|
|
80
89
|
});
|
|
81
90
|
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<FSCol
|
|
3
|
+
v-if="fetching"
|
|
4
|
+
>
|
|
5
|
+
<FSLoader
|
|
6
|
+
variant="field"
|
|
7
|
+
/>
|
|
8
|
+
<FSLoader
|
|
9
|
+
variant="field"
|
|
10
|
+
/>
|
|
11
|
+
</FSCol>
|
|
12
|
+
<FSCol
|
|
13
|
+
v-if="legalInformation"
|
|
14
|
+
>
|
|
15
|
+
<FSRow
|
|
16
|
+
align="center-left"
|
|
17
|
+
gap="4px"
|
|
18
|
+
>
|
|
19
|
+
<FSCheckbox
|
|
20
|
+
:label="$tr('ui.registration.i-have-read-and-understand', 'I have read and understand the')"
|
|
21
|
+
:rules="[ToggleRules.required()]"
|
|
22
|
+
:modelValue="$props.generalConditions"
|
|
23
|
+
@update:modelValue="$emit('update:generalConditions', $event)"
|
|
24
|
+
/>
|
|
25
|
+
<FSButton
|
|
26
|
+
variant="icon"
|
|
27
|
+
:label="$tr('ui.registration.general-conditions-of-use', 'general conditions of use')"
|
|
28
|
+
:color="ColorEnum.Primary"
|
|
29
|
+
@click="downloadFile(legalInformation.generalConditionsId)"
|
|
30
|
+
/>
|
|
31
|
+
</FSRow>
|
|
32
|
+
<FSRow
|
|
33
|
+
align="center-left"
|
|
34
|
+
gap="4px"
|
|
35
|
+
>
|
|
36
|
+
<FSCheckbox
|
|
37
|
+
:label="$tr('ui.registration.i-have-read-and-understand', 'I have read and understand the')"
|
|
38
|
+
:rules="[ToggleRules.required()]"
|
|
39
|
+
:modelValue="$props.privacyPolicy"
|
|
40
|
+
@update:modelValue="$emit('update:privacyPolicy', $event)"
|
|
41
|
+
/>
|
|
42
|
+
<FSButton
|
|
43
|
+
variant="icon"
|
|
44
|
+
:label="$tr('ui.registration.privacy-policy', 'privacy policy')"
|
|
45
|
+
:color="ColorEnum.Primary"
|
|
46
|
+
@click="downloadFile(legalInformation.privacyPolicyId)"
|
|
47
|
+
/>
|
|
48
|
+
</FSRow>
|
|
49
|
+
</FSCol>
|
|
50
|
+
</template>
|
|
51
|
+
|
|
52
|
+
<script lang="ts">
|
|
53
|
+
import { defineComponent, onMounted } from "vue";
|
|
54
|
+
|
|
55
|
+
import FSCol from "@dative-gpi/foundation-shared-components/components/FSCol.vue";
|
|
56
|
+
import FSRow from "@dative-gpi/foundation-shared-components/components/FSRow.vue";
|
|
57
|
+
import FSCheckbox from "@dative-gpi/foundation-shared-components/components/FSCheckbox.vue";
|
|
58
|
+
import FSButton from "@dative-gpi/foundation-shared-components/components/FSButton.vue";
|
|
59
|
+
import FSLoader from "@dative-gpi/foundation-shared-components/components/FSLoader.vue";
|
|
60
|
+
|
|
61
|
+
import { useCurrentLegalInformation, useFiles } from "@dative-gpi/foundation-shared-services/composables";
|
|
62
|
+
import { ColorEnum, ToggleRules } from "@dative-gpi/foundation-shared-components/models";
|
|
63
|
+
|
|
64
|
+
export default defineComponent({
|
|
65
|
+
name: "FSPoliciesValidationField",
|
|
66
|
+
components: {
|
|
67
|
+
FSCol,
|
|
68
|
+
FSRow,
|
|
69
|
+
FSCheckbox,
|
|
70
|
+
FSButton,
|
|
71
|
+
FSLoader
|
|
72
|
+
},
|
|
73
|
+
props: {
|
|
74
|
+
generalConditions: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
required: false
|
|
77
|
+
},
|
|
78
|
+
privacyPolicy: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
required: false
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
emits: ["update:generalConditions", "update:privacyPolicy"],
|
|
84
|
+
setup() {
|
|
85
|
+
const { fetch: getLegalInformation, entity: legalInformation, fetching } = useCurrentLegalInformation();
|
|
86
|
+
const { downloadFile } = useFiles();
|
|
87
|
+
|
|
88
|
+
onMounted(() => {
|
|
89
|
+
getLegalInformation();
|
|
90
|
+
});
|
|
91
|
+
|
|
92
|
+
return {
|
|
93
|
+
legalInformation,
|
|
94
|
+
ToggleRules,
|
|
95
|
+
ColorEnum,
|
|
96
|
+
fetching,
|
|
97
|
+
downloadFile,
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
</script>
|
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.
|
|
4
|
+
"version": "1.0.169",
|
|
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.
|
|
14
|
-
"@dative-gpi/foundation-shared-services": "1.0.
|
|
13
|
+
"@dative-gpi/foundation-shared-domain": "1.0.169",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.169"
|
|
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": "
|
|
38
|
+
"gitHead": "ea0f8aaf16cdb593d4cce83405308e2614ede007"
|
|
39
39
|
}
|