@dative-gpi/foundation-shared-components 1.0.91 → 1.0.92
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/FSCardPlaceholder.vue +0 -1
- package/components/fields/FSCommentField.vue +25 -14
- package/components/lists/FSDataTableUI.vue +11 -7
- package/components/lists/FSSimpleList.vue +1 -1
- package/components/lists/FSSimpleListItem.vue +1 -1
- package/package.json +4 -4
- package/styles/components/fs_slide_group.scss +3 -3
|
@@ -17,18 +17,21 @@
|
|
|
17
17
|
/>
|
|
18
18
|
</FSRow>
|
|
19
19
|
<FSRow>
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
20
|
+
<FSRow
|
|
21
|
+
align="center-right"
|
|
22
|
+
>
|
|
23
|
+
<FSButtonCancel
|
|
24
|
+
v-if="showCancelButton"
|
|
25
|
+
@click="$emit('cancel')"
|
|
26
|
+
/>
|
|
27
|
+
<FSButton
|
|
28
|
+
prependIcon="mdi-send-outline"
|
|
29
|
+
:color="ColorEnum.Primary"
|
|
30
|
+
:loading="creating"
|
|
31
|
+
:label="buttonLabel ?? $tr('ui.common.publish','Publish')"
|
|
32
|
+
@click="onSubmit"
|
|
33
|
+
/>
|
|
34
|
+
</FSRow>
|
|
32
35
|
</FSRow>
|
|
33
36
|
</FSCol>
|
|
34
37
|
</template>
|
|
@@ -80,13 +83,21 @@ export default defineComponent({
|
|
|
80
83
|
},
|
|
81
84
|
},
|
|
82
85
|
emits: ["submit","cancel"],
|
|
83
|
-
setup(props) {
|
|
86
|
+
setup(props, { emit }) {
|
|
84
87
|
|
|
85
88
|
const innertext = ref<string | undefined>(props.text);
|
|
89
|
+
|
|
90
|
+
const onSubmit = () => {
|
|
91
|
+
if (innertext.value) {
|
|
92
|
+
emit('submit', innertext.value);
|
|
93
|
+
innertext.value = '';
|
|
94
|
+
}
|
|
95
|
+
};
|
|
86
96
|
|
|
87
97
|
return {
|
|
88
98
|
innertext,
|
|
89
|
-
ColorEnum
|
|
99
|
+
ColorEnum,
|
|
100
|
+
onSubmit,
|
|
90
101
|
};
|
|
91
102
|
},
|
|
92
103
|
})
|
|
@@ -1039,17 +1039,21 @@ export default defineComponent({
|
|
|
1039
1039
|
});
|
|
1040
1040
|
|
|
1041
1041
|
const innerItems = computed((): any[] => {
|
|
1042
|
-
const activeFilters: { key: string
|
|
1043
|
-
|
|
1044
|
-
|
|
1042
|
+
const activeFilters: { [key: string]: FSDataTableFilter[] } = {};
|
|
1043
|
+
for (const property in filters.value) {
|
|
1044
|
+
activeFilters[property] = filters.value[property].filter((filter) => !filter.hidden);
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1045
1047
|
if (props.items && props.items.length) {
|
|
1046
1048
|
const innerSearchFormatted = innerSearch.value ? innerSearch.value.toLowerCase() : null;
|
|
1047
1049
|
return props.items.filter((item) => {
|
|
1048
1050
|
if (props.selectedOnly && !props.modelValue.includes(item[props.itemValue])) {
|
|
1049
1051
|
return false;
|
|
1050
1052
|
}
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
+
for (const property in activeFilters) {
|
|
1054
|
+
if (!activeFilters[property].some((filter) => filter.filter && filter.filter(filter.value, item[property], item))) {
|
|
1055
|
+
return false;
|
|
1056
|
+
}
|
|
1053
1057
|
}
|
|
1054
1058
|
if (innerSearchFormatted) {
|
|
1055
1059
|
return containsSearchTerm(item, innerSearchFormatted);
|
|
@@ -1245,7 +1249,7 @@ export default defineComponent({
|
|
|
1245
1249
|
return header.methodFilterRaw(ff.value, item);
|
|
1246
1250
|
}
|
|
1247
1251
|
const flat = property = [property].flat();
|
|
1248
|
-
return Array.isArray(flat) ? flat.
|
|
1252
|
+
return Array.isArray(flat) ? flat.some(f => f == ff.value) : ff.value == flat;
|
|
1249
1253
|
})
|
|
1250
1254
|
}));
|
|
1251
1255
|
filterDictionary[key] = value;
|
|
@@ -1268,7 +1272,7 @@ export default defineComponent({
|
|
|
1268
1272
|
return header.methodFilterRaw(dv, item);
|
|
1269
1273
|
}
|
|
1270
1274
|
const flat = [property].flat().map(mapToInnerValue);
|
|
1271
|
-
return Array.isArray(flat) ? flat.
|
|
1275
|
+
return Array.isArray(flat) ? flat.some(f => f == dv) : dv == flat;
|
|
1272
1276
|
})
|
|
1273
1277
|
}
|
|
1274
1278
|
});
|
|
@@ -79,7 +79,7 @@ export default defineComponent({
|
|
|
79
79
|
},
|
|
80
80
|
props: {
|
|
81
81
|
items: {
|
|
82
|
-
type: Array as PropType<{id: string, label?: string, icon?: string, imageId?: string, [index: string]: any}[]>,
|
|
82
|
+
type: Array as PropType<{id: string, label?: string, icon?: string, imageId?: string | null, [index: string]: any}[]>,
|
|
83
83
|
required: true
|
|
84
84
|
},
|
|
85
85
|
tileProps: {
|
|
@@ -103,7 +103,7 @@ export default defineComponent({
|
|
|
103
103
|
},
|
|
104
104
|
props: {
|
|
105
105
|
filteredItems: {
|
|
106
|
-
type: Array as PropType<{id: string, label?: string, icon?: string, imageId?: string, [index: string]: any}[]>,
|
|
106
|
+
type: Array as PropType<{id: string, label?: string, icon?: string, imageId?: string | null, [index: string]: any}[]>,
|
|
107
107
|
required: true
|
|
108
108
|
},
|
|
109
109
|
tileProps: {
|
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.92",
|
|
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.92",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.92"
|
|
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": "5b512a8eaedd84fb5f24896d01891a9a6c838ec5"
|
|
39
39
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
height: var(--fs-group-height);
|
|
3
3
|
width: var(--fs-group-width);
|
|
4
4
|
max-width: 100%;
|
|
5
|
-
margin: -1px;
|
|
6
|
-
padding: 1px;
|
|
5
|
+
margin: 0 -1px 0 0;
|
|
7
6
|
|
|
8
7
|
& > .v-slide-group__container > .v-slide-group__content {
|
|
9
|
-
|
|
8
|
+
margin: 0 1px 0 0;
|
|
9
|
+
|
|
10
10
|
padding: var(--fs-group-padding);
|
|
11
11
|
gap: var(--fs-group-gap);
|
|
12
12
|
}
|