@dative-gpi/foundation-shared-components 1.0.101 → 1.0.103
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/FSCalendarTwin.vue +22 -25
- package/components/FSDialog.vue +3 -1
- package/components/FSFadeOut.vue +2 -2
- package/components/fields/FSDateTimeField.vue +1 -1
- package/components/fields/FSDateTimeRangeField.vue +3 -3
- package/components/fields/FSRichTextField.vue +4 -2
- package/components/lists/FSSimpleList.vue +91 -28
- package/components/lists/FSSimpleListItem.vue +66 -97
- package/package.json +4 -4
- package/styles/components/fs_dialog.scss +11 -9
|
@@ -165,8 +165,6 @@ export default defineComponent({
|
|
|
165
165
|
const innerRightMonth = ref(new Date().getMonth());
|
|
166
166
|
const innerRightYear = ref(new Date().getFullYear());
|
|
167
167
|
|
|
168
|
-
const toggle = ref((props.modelValue?.length ?? 0) % 2);
|
|
169
|
-
|
|
170
168
|
const colors = computed(() => getColors(props.color));
|
|
171
169
|
const backgrounds = getColors(ColorEnum.Background);
|
|
172
170
|
const darks = getColors(ColorEnum.Dark);
|
|
@@ -323,43 +321,42 @@ export default defineComponent({
|
|
|
323
321
|
|
|
324
322
|
const onClickLeft = (value: unknown): void => {
|
|
325
323
|
const dates = value as Date[];
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
324
|
+
|
|
325
|
+
// Click on the same date while only one date is selected on the left calendar
|
|
326
|
+
if (dates.length === 0) {
|
|
327
|
+
if (props.modelValue && props.modelValue.length > 0) {
|
|
328
|
+
emit("update:modelValue", [props.modelValue[0], props.modelValue[0]]);
|
|
329
|
+
}
|
|
330
|
+
return;
|
|
329
331
|
}
|
|
330
|
-
|
|
332
|
+
|
|
333
|
+
const clicked = pickerToEpoch(dates[dates.length - 1]);
|
|
334
|
+
if (props.modelValue && props.modelValue[0] === props.modelValue[1]) {
|
|
331
335
|
emit("update:modelValue", [props.modelValue[0], clicked].sort());
|
|
332
336
|
}
|
|
333
337
|
else {
|
|
334
|
-
|
|
335
|
-
emit("update:modelValue", [clicked, props.modelValue[1]]);
|
|
336
|
-
}
|
|
337
|
-
else {
|
|
338
|
-
emit("update:modelValue", [clicked, props.modelValue[toggle.value]].sort());
|
|
339
|
-
toggle.value = (++toggle.value) % 2;
|
|
340
|
-
}
|
|
338
|
+
emit("update:modelValue", [clicked, clicked]);
|
|
341
339
|
}
|
|
342
340
|
};
|
|
343
341
|
|
|
344
342
|
const onClickRight = (value: unknown): void => {
|
|
345
343
|
const dates = value as Date[];
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
344
|
+
|
|
345
|
+
// Click on the same date while only one date is selected on the right calendar
|
|
346
|
+
if (dates.length === 0) {
|
|
347
|
+
if (props.modelValue && props.modelValue.length > 0) {
|
|
348
|
+
emit("update:modelValue", [props.modelValue[props.modelValue.length - 1], props.modelValue[props.modelValue.length - 1]]);
|
|
349
|
+
}
|
|
350
|
+
return;
|
|
349
351
|
}
|
|
350
|
-
|
|
352
|
+
|
|
353
|
+
const clicked = pickerToEpoch(dates[dates.length - 1]);
|
|
354
|
+
if (props.modelValue && props.modelValue[0] === props.modelValue[1]) {
|
|
351
355
|
emit("update:modelValue", [props.modelValue[0], clicked].sort());
|
|
352
356
|
}
|
|
353
357
|
else {
|
|
354
|
-
|
|
355
|
-
emit("update:modelValue", [props.modelValue[0], clicked]);
|
|
356
|
-
}
|
|
357
|
-
else {
|
|
358
|
-
emit("update:modelValue", [clicked, props.modelValue[toggle.value]].sort());
|
|
359
|
-
toggle.value = (++toggle.value) % 2;
|
|
360
|
-
}
|
|
358
|
+
emit("update:modelValue", [clicked, clicked]);
|
|
361
359
|
}
|
|
362
|
-
toggle.value = (++toggle.value) % 2;
|
|
363
360
|
};
|
|
364
361
|
|
|
365
362
|
const allowedDates = (value: unknown): boolean => {
|
package/components/FSDialog.vue
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
:class="classes"
|
|
5
5
|
:modelValue="$props.modelValue"
|
|
6
6
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
7
|
+
@click="$emit('update:modelValue', false)"
|
|
7
8
|
v-bind="$attrs"
|
|
8
9
|
>
|
|
9
10
|
<slot>
|
|
@@ -13,6 +14,7 @@
|
|
|
13
14
|
:width="$props.width"
|
|
14
15
|
:modelValue="$props.modelValue"
|
|
15
16
|
@update:modelValue="$emit('update:modelValue', $event)"
|
|
17
|
+
@click.stop="$emit('click', $event)"
|
|
16
18
|
>
|
|
17
19
|
<template
|
|
18
20
|
v-for="(_, name) in $slots"
|
|
@@ -67,7 +69,7 @@ export default defineComponent({
|
|
|
67
69
|
default: false
|
|
68
70
|
}
|
|
69
71
|
},
|
|
70
|
-
emits: ["update:modelValue"],
|
|
72
|
+
emits: ["click", "update:modelValue"],
|
|
71
73
|
setup() {
|
|
72
74
|
const { isExtraSmall } = useBreakpoints();
|
|
73
75
|
|
package/components/FSFadeOut.vue
CHANGED
|
@@ -85,8 +85,8 @@ export default defineComponent({
|
|
|
85
85
|
const elementId = `id${uuidv4()}`;
|
|
86
86
|
|
|
87
87
|
const style = computed((): StyleValue => ({
|
|
88
|
-
"--fs-fade-out-height" : props.height ? sizeToVar(props.height) :
|
|
89
|
-
"--fs-fade-out-max-height" : props.maxHeight ? sizeToVar(props.maxHeight) :
|
|
88
|
+
"--fs-fade-out-height" : props.height ? sizeToVar(props.height) : "initial",
|
|
89
|
+
"--fs-fade-out-max-height" : props.maxHeight ? sizeToVar(props.maxHeight) : "initial",
|
|
90
90
|
"--fs-fade-out-width" : sizeToVar(props.width),
|
|
91
91
|
"--fs-fade-out-padding" : sizeToVar(props.padding),
|
|
92
92
|
"--fs-fade-out-width-offset" : props.scrollOutside ? '12px' : '0px',
|
|
@@ -301,7 +301,7 @@ export default defineComponent({
|
|
|
301
301
|
if (props.modelValue) {
|
|
302
302
|
// FSClock just gives two numbers without consideration for the time zone
|
|
303
303
|
// We must adjust the time to the user's time zone
|
|
304
|
-
innerTime.value = Math.floor((props.modelValue + getUserOffset()) % (24 * 60 * 60 * 1000));
|
|
304
|
+
innerTime.value = Math.floor((props.modelValue + getUserOffset(props.modelValue)) % (24 * 60 * 60 * 1000));
|
|
305
305
|
innerDate.value = props.modelValue - innerTime.value;
|
|
306
306
|
}
|
|
307
307
|
else {
|
|
@@ -208,13 +208,13 @@ export default defineComponent({
|
|
|
208
208
|
break;
|
|
209
209
|
}
|
|
210
210
|
case 1: {
|
|
211
|
-
innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffset()) % (24 * 60 * 60 * 1000));
|
|
211
|
+
innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffset(props.modelValue[0])) % (24 * 60 * 60 * 1000));
|
|
212
212
|
innerDateRange.value = [props.modelValue[0] - innerTimeLeft.value];
|
|
213
213
|
break;
|
|
214
214
|
}
|
|
215
215
|
default: {
|
|
216
|
-
innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffset()) % (24 * 60 * 60 * 1000));
|
|
217
|
-
innerTimeRight.value = Math.floor((props.modelValue[1] + getUserOffset()) % (24 * 60 * 60 * 1000));
|
|
216
|
+
innerTimeLeft.value = Math.floor((props.modelValue[0] + getUserOffset(props.modelValue[0])) % (24 * 60 * 60 * 1000));
|
|
217
|
+
innerTimeRight.value = Math.floor((props.modelValue[1] + getUserOffset(props.modelValue[1])) % (24 * 60 * 60 * 1000));
|
|
218
218
|
innerDateRange.value = [props.modelValue[0] - innerTimeLeft.value, props.modelValue[1] - innerTimeRight.value];
|
|
219
219
|
break;
|
|
220
220
|
}
|
|
@@ -674,8 +674,10 @@ export default defineComponent({
|
|
|
674
674
|
}
|
|
675
675
|
if (props.modelValue != null) {
|
|
676
676
|
editor.update(() => {
|
|
677
|
-
if(typeof props.modelValue === "string") {
|
|
678
|
-
|
|
677
|
+
if (typeof props.modelValue === "string") {
|
|
678
|
+
if (props.modelValue !== "") {
|
|
679
|
+
editor.setEditorState(editor.parseEditorState(props.modelValue!));
|
|
680
|
+
}
|
|
679
681
|
}
|
|
680
682
|
else {
|
|
681
683
|
editor.setEditorState(editor.parseEditorState(JSON.stringify(props.modelValue)));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<FSCol
|
|
3
|
-
v-bind="$props"
|
|
4
3
|
gap="12px"
|
|
5
4
|
>
|
|
6
5
|
<FSSearchField
|
|
@@ -15,39 +14,102 @@
|
|
|
15
14
|
:maskHeight="0"
|
|
16
15
|
>
|
|
17
16
|
<FSCol>
|
|
18
|
-
<
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
17
|
+
<template
|
|
18
|
+
v-if="$props.loading"
|
|
19
|
+
>
|
|
20
|
+
<FSLoader
|
|
21
|
+
v-for="i in 4"
|
|
22
|
+
:key="i"
|
|
23
|
+
width="100%"
|
|
24
|
+
height="50px"
|
|
25
|
+
/>
|
|
26
|
+
</template>
|
|
27
|
+
<template
|
|
28
|
+
v-else
|
|
29
|
+
>
|
|
30
|
+
<FSSimpleListItem
|
|
31
|
+
v-for="item in filteredItems"
|
|
32
|
+
:key="item.id"
|
|
33
|
+
:id="item.id"
|
|
34
|
+
:label="item[$props.itemLabel ?? 'label']"
|
|
35
|
+
:icon="item.icon"
|
|
36
|
+
:imageId="item.imageId"
|
|
37
|
+
:showEdit="$props.showEdit"
|
|
38
|
+
:showRemove="$props.showRemove"
|
|
39
|
+
:showDraggable="$props.showDraggable"
|
|
40
|
+
:tileProps="$props.tileProps ? $props.tileProps(item) : undefined"
|
|
41
|
+
width="100%"
|
|
42
|
+
@click:edit="$emit('click:edit', $event)"
|
|
43
|
+
@click:remove="$emit('click:remove', $event)"
|
|
44
|
+
/>
|
|
45
|
+
</template>
|
|
26
46
|
</FSCol>
|
|
27
47
|
</FSFadeOut>
|
|
28
48
|
<FSRow
|
|
29
49
|
v-else-if="$props.direction == 'row'"
|
|
30
50
|
>
|
|
31
|
-
<
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
51
|
+
<template
|
|
52
|
+
v-if="$props.loading"
|
|
53
|
+
>
|
|
54
|
+
<FSLoader
|
|
55
|
+
v-for="i in 4"
|
|
56
|
+
:key="i"
|
|
57
|
+
width="100%"
|
|
58
|
+
height="50px"
|
|
59
|
+
/>
|
|
60
|
+
</template>
|
|
61
|
+
<template
|
|
62
|
+
v-else
|
|
63
|
+
>
|
|
64
|
+
<FSSimpleListItem
|
|
65
|
+
v-for="item in filteredItems"
|
|
66
|
+
:key="item.id"
|
|
67
|
+
:id="item.id"
|
|
68
|
+
:label="item[$props.itemLabel ?? 'label']"
|
|
69
|
+
:icon="item.icon"
|
|
70
|
+
:imageId="item.imageId"
|
|
71
|
+
:showEdit="$props.showEdit"
|
|
72
|
+
:showRemove="$props.showRemove"
|
|
73
|
+
:showDraggable="$props.showDraggable"
|
|
74
|
+
:tileProps="$props.tileProps ? $props.tileProps(item) : undefined"
|
|
75
|
+
width="fit-content"
|
|
76
|
+
@click:edit="$emit('click:edit', $event)"
|
|
77
|
+
@click:remove="$emit('click:remove', $event)"
|
|
78
|
+
/>
|
|
79
|
+
</template>
|
|
39
80
|
</FSRow>
|
|
40
81
|
<FSSlideGroup
|
|
41
82
|
v-else
|
|
42
83
|
>
|
|
43
|
-
<
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
84
|
+
<template
|
|
85
|
+
v-if="$props.loading"
|
|
86
|
+
>
|
|
87
|
+
<FSLoader
|
|
88
|
+
v-for="i in 4"
|
|
89
|
+
:key="i"
|
|
90
|
+
width="100%"
|
|
91
|
+
height="50px"
|
|
92
|
+
/>
|
|
93
|
+
</template>
|
|
94
|
+
<template
|
|
95
|
+
v-else
|
|
96
|
+
>
|
|
97
|
+
<FSSimpleListItem
|
|
98
|
+
v-for="item in filteredItems"
|
|
99
|
+
:key="item.id"
|
|
100
|
+
:id="item.id"
|
|
101
|
+
:label="item[$props.itemLabel ?? 'label']"
|
|
102
|
+
:icon="item.icon"
|
|
103
|
+
:imageId="item.imageId"
|
|
104
|
+
:showEdit="$props.showEdit"
|
|
105
|
+
:showRemove="$props.showRemove"
|
|
106
|
+
:showDraggable="$props.showDraggable"
|
|
107
|
+
:tileProps="$props.tileProps ? $props.tileProps(item) : undefined"
|
|
108
|
+
width="fit-content"
|
|
109
|
+
@click:edit="$emit('click:edit', $event)"
|
|
110
|
+
@click:remove="$emit('click:remove', $event)"
|
|
111
|
+
/>
|
|
112
|
+
</template>
|
|
51
113
|
</FSSlideGroup>
|
|
52
114
|
</FSCol>
|
|
53
115
|
</template>
|
|
@@ -62,6 +124,7 @@ import { filterItems } from "../../utils";
|
|
|
62
124
|
|
|
63
125
|
import FSRow from "../FSRow.vue";
|
|
64
126
|
import FSCol from "../FSCol.vue";
|
|
127
|
+
import FSLoader from '../FSLoader.vue';
|
|
65
128
|
import FSFadeOut from "../FSFadeOut.vue";
|
|
66
129
|
import FSSlideGroup from "../FSSlideGroup.vue"
|
|
67
130
|
import FSSearchField from "../fields/FSSearchField.vue";
|
|
@@ -73,6 +136,7 @@ export default defineComponent({
|
|
|
73
136
|
FSRow,
|
|
74
137
|
FSCol,
|
|
75
138
|
FSFadeOut,
|
|
139
|
+
FSLoader,
|
|
76
140
|
FSSlideGroup,
|
|
77
141
|
FSSearchField,
|
|
78
142
|
FSSimpleListItem
|
|
@@ -84,8 +148,7 @@ export default defineComponent({
|
|
|
84
148
|
},
|
|
85
149
|
tileProps: {
|
|
86
150
|
type: Function as PropType<(item: any) => Record<string, any>>,
|
|
87
|
-
required: false
|
|
88
|
-
default: () => () => ({})
|
|
151
|
+
required: false
|
|
89
152
|
},
|
|
90
153
|
showEdit: {
|
|
91
154
|
type: Boolean,
|
|
@@ -128,7 +191,7 @@ export default defineComponent({
|
|
|
128
191
|
default: "column"
|
|
129
192
|
},
|
|
130
193
|
itemLabel: {
|
|
131
|
-
type: String
|
|
194
|
+
type: String as PropType<string>,
|
|
132
195
|
required: false,
|
|
133
196
|
default: "label"
|
|
134
197
|
},
|
|
@@ -1,78 +1,62 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
3
|
-
v-
|
|
2
|
+
<FSTile
|
|
3
|
+
v-bind="$props.tileProps"
|
|
4
|
+
:width="$props.width"
|
|
5
|
+
height="fit-content"
|
|
6
|
+
:editable="false"
|
|
4
7
|
>
|
|
5
|
-
<
|
|
6
|
-
|
|
7
|
-
:
|
|
8
|
-
:width="loaderWidth"
|
|
9
|
-
height="50px"
|
|
10
|
-
/>
|
|
11
|
-
</template>
|
|
12
|
-
<template
|
|
13
|
-
v-else
|
|
14
|
-
>
|
|
15
|
-
<FSTile
|
|
16
|
-
v-for="item in filteredItems"
|
|
17
|
-
:key="item.id"
|
|
18
|
-
v-bind="tileProps(item)"
|
|
19
|
-
:width="tileWidth"
|
|
20
|
-
height="fit-content"
|
|
21
|
-
:editable="false"
|
|
8
|
+
<slot
|
|
9
|
+
name="item"
|
|
10
|
+
:item="{ label, icon, imageId, id }"
|
|
22
11
|
>
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
12
|
+
<FSRow
|
|
13
|
+
align="center-left"
|
|
14
|
+
height="24px"
|
|
15
|
+
:wrap="false"
|
|
26
16
|
>
|
|
17
|
+
<FSButtonDragIcon
|
|
18
|
+
v-if="showDraggable"
|
|
19
|
+
/>
|
|
20
|
+
<slot
|
|
21
|
+
name="itemContent"
|
|
22
|
+
:item="{ label, icon, imageId, id }"
|
|
23
|
+
>
|
|
24
|
+
<!-- TODO : add draggable option -->
|
|
25
|
+
<FSImage
|
|
26
|
+
v-if="$props.imageId"
|
|
27
|
+
width="24px"
|
|
28
|
+
height="24px"
|
|
29
|
+
:imageId="$props.imageId"
|
|
30
|
+
:thumbnail="true"
|
|
31
|
+
/>
|
|
32
|
+
<FSIcon
|
|
33
|
+
size="24px"
|
|
34
|
+
v-else-if="$props.icon"
|
|
35
|
+
:icon="$props.icon"
|
|
36
|
+
/>
|
|
37
|
+
<FSSpan
|
|
38
|
+
font="text-overline"
|
|
39
|
+
>
|
|
40
|
+
{{ $props.label }}
|
|
41
|
+
</FSSpan>
|
|
42
|
+
</slot>
|
|
27
43
|
<FSRow
|
|
28
|
-
|
|
29
|
-
|
|
44
|
+
v-if="showEdit || showRemove"
|
|
45
|
+
align="center-right"
|
|
30
46
|
:wrap="false"
|
|
31
47
|
>
|
|
32
|
-
<
|
|
33
|
-
v-if="
|
|
48
|
+
<FSButtonEditIcon
|
|
49
|
+
v-if="showEdit"
|
|
50
|
+
@click="$emit('click:edit', $props.id)"
|
|
51
|
+
/>
|
|
52
|
+
<FSButtonRemoveIcon
|
|
53
|
+
v-if="showRemove"
|
|
54
|
+
@click="$emit('click:remove', $props.id)"
|
|
34
55
|
/>
|
|
35
|
-
<slot
|
|
36
|
-
name="itemContent"
|
|
37
|
-
:item="item"
|
|
38
|
-
>
|
|
39
|
-
<!-- TODO : add draggable option -->
|
|
40
|
-
<FSImage
|
|
41
|
-
v-if="item.imageId"
|
|
42
|
-
width="24px"
|
|
43
|
-
height="24px"
|
|
44
|
-
:imageId="item.imageId"
|
|
45
|
-
:thumbnail="true"
|
|
46
|
-
/>
|
|
47
|
-
<FSIcon
|
|
48
|
-
size="24px"
|
|
49
|
-
v-else-if="item.icon"
|
|
50
|
-
:icon="item.icon"
|
|
51
|
-
/>
|
|
52
|
-
<FSSpan
|
|
53
|
-
font="text-overline"
|
|
54
|
-
>
|
|
55
|
-
{{ item[$props.itemLabel || 'label'] }}
|
|
56
|
-
</FSSpan>
|
|
57
|
-
</slot>
|
|
58
|
-
<FSRow
|
|
59
|
-
v-if="showEdit || showRemove"
|
|
60
|
-
align="center-right"
|
|
61
|
-
:wrap="false"
|
|
62
|
-
>
|
|
63
|
-
<FSButtonEditIcon
|
|
64
|
-
v-if="showEdit"
|
|
65
|
-
@click="$emit('click:edit', item.id)"
|
|
66
|
-
/>
|
|
67
|
-
<FSButtonRemoveIcon
|
|
68
|
-
v-if="showRemove"
|
|
69
|
-
@click="$emit('click:remove', item.id)"
|
|
70
|
-
/>
|
|
71
|
-
</FSRow>
|
|
72
56
|
</FSRow>
|
|
73
|
-
</
|
|
74
|
-
</
|
|
75
|
-
</
|
|
57
|
+
</FSRow>
|
|
58
|
+
</slot>
|
|
59
|
+
</FSTile>
|
|
76
60
|
</template>
|
|
77
61
|
|
|
78
62
|
|
|
@@ -83,7 +67,6 @@ import FSRow from "../FSRow.vue";
|
|
|
83
67
|
import FSIcon from "../FSIcon.vue";
|
|
84
68
|
import FSSpan from "../FSSpan.vue";
|
|
85
69
|
import FSImage from "../FSImage.vue";
|
|
86
|
-
import FSLoader from "../FSLoader.vue";
|
|
87
70
|
import FSTile from "../tiles/FSTile.vue";
|
|
88
71
|
import FSButtonEditIcon from "../buttons/FSButtonEditIcon.vue";
|
|
89
72
|
import FSButtonDragIcon from "../buttons/FSButtonDragIcon.vue";
|
|
@@ -97,20 +80,15 @@ export default defineComponent({
|
|
|
97
80
|
FSIcon,
|
|
98
81
|
FSSpan,
|
|
99
82
|
FSImage,
|
|
100
|
-
FSLoader,
|
|
101
83
|
FSButtonEditIcon,
|
|
102
84
|
FSButtonDragIcon,
|
|
103
85
|
FSButtonRemoveIcon,
|
|
104
86
|
},
|
|
105
87
|
props: {
|
|
106
|
-
filteredItems: {
|
|
107
|
-
type: Array as PropType<{id: string, label?: string, icon?: string, imageId?: string | null, [index: string]: any}[]>,
|
|
108
|
-
required: true
|
|
109
|
-
},
|
|
110
88
|
tileProps: {
|
|
111
|
-
type:
|
|
89
|
+
type: Object as PropType<Record<string, any>>,
|
|
112
90
|
required: false,
|
|
113
|
-
default: () => (
|
|
91
|
+
default: () => ({})
|
|
114
92
|
},
|
|
115
93
|
showEdit: {
|
|
116
94
|
type: Boolean,
|
|
@@ -127,35 +105,26 @@ export default defineComponent({
|
|
|
127
105
|
required: false,
|
|
128
106
|
default: false
|
|
129
107
|
},
|
|
130
|
-
|
|
131
|
-
type: String,
|
|
132
|
-
required: false,
|
|
133
|
-
default: ""
|
|
134
|
-
},
|
|
135
|
-
noFilter: {
|
|
136
|
-
type: Boolean,
|
|
108
|
+
width:{
|
|
109
|
+
type: [Array, String, Number] as PropType<string[] | number[] | string | number | null | undefined>,
|
|
137
110
|
required: false,
|
|
138
|
-
default:
|
|
111
|
+
default: undefined
|
|
139
112
|
},
|
|
140
|
-
|
|
113
|
+
id: {
|
|
141
114
|
type: String,
|
|
142
|
-
required:
|
|
143
|
-
default: "label"
|
|
115
|
+
required: true
|
|
144
116
|
},
|
|
145
|
-
|
|
146
|
-
type:
|
|
147
|
-
required:
|
|
148
|
-
default: undefined
|
|
117
|
+
label: {
|
|
118
|
+
type: String,
|
|
119
|
+
required: true
|
|
149
120
|
},
|
|
150
|
-
|
|
151
|
-
type:
|
|
152
|
-
required: false
|
|
153
|
-
default: undefined
|
|
121
|
+
icon: {
|
|
122
|
+
type: String,
|
|
123
|
+
required: false
|
|
154
124
|
},
|
|
155
|
-
|
|
156
|
-
type:
|
|
157
|
-
required: false
|
|
158
|
-
default: false
|
|
125
|
+
imageId: {
|
|
126
|
+
type: String as PropType<string | null>,
|
|
127
|
+
required: false
|
|
159
128
|
}
|
|
160
129
|
},
|
|
161
130
|
emits: ["click:edit", "click:remove"]
|
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.103",
|
|
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.103",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.103"
|
|
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": "10dc8024a356f5b5a04a04aeeaf8fbf0f76a3c75"
|
|
39
39
|
}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
.fs-dialog-mobile > .v-overlay__content {
|
|
2
|
-
|
|
3
|
-
max-width: 100% !important;
|
|
4
|
-
width: 100% !important;
|
|
5
|
-
margin: 0 !important;
|
|
6
|
-
align-self: flex-end;
|
|
2
|
+
flex-direction: column-reverse !important;
|
|
7
3
|
}
|
|
8
4
|
|
|
9
5
|
.fs-dialog > .v-overlay__content {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
justify-content: center !important;
|
|
7
|
+
align-items: center !important;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.v-dialog > .v-overlay__content {
|
|
11
|
+
max-height: 100vh !important;
|
|
12
|
+
max-width: 100vw !important;
|
|
13
|
+
height: 100% !important;
|
|
14
|
+
width: 100% !important;
|
|
15
|
+
margin: 0 !important;
|
|
14
16
|
}
|