@dative-gpi/foundation-shared-components 1.0.127 → 1.0.128
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/FSWindow.vue +10 -5
- package/package.json +4 -4
package/components/FSWindow.vue
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<template
|
|
3
|
-
v-if="
|
|
3
|
+
v-if="showError"
|
|
4
4
|
>
|
|
5
5
|
<slot
|
|
6
|
-
name="error"
|
|
6
|
+
name="error"
|
|
7
|
+
v-bind="{ goBack, width: $props.width, height: $props.height }"
|
|
7
8
|
>
|
|
8
9
|
<FSRow
|
|
9
10
|
padding="16px"
|
|
@@ -144,14 +145,18 @@ export default defineComponent({
|
|
|
144
145
|
}, 560);
|
|
145
146
|
});
|
|
146
147
|
|
|
147
|
-
const
|
|
148
|
+
const showError = computed((): boolean => {
|
|
148
149
|
if (!windowRef.value) {
|
|
149
|
-
return;
|
|
150
|
+
return false;
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
// https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/components/VWindow/VWindow.tsx
|
|
153
154
|
// https://github.com/vuetifyjs/vuetify/blob/master/packages/vuetify/src/composables/group.ts#L161
|
|
154
155
|
const group = windowRef.value.group;
|
|
156
|
+
|
|
157
|
+
if (!group.items.value.length) {
|
|
158
|
+
return false;
|
|
159
|
+
}
|
|
155
160
|
return !group.items.value.find((item: any) => item.value === props.modelValue);
|
|
156
161
|
});
|
|
157
162
|
|
|
@@ -172,7 +177,7 @@ export default defineComponent({
|
|
|
172
177
|
return {
|
|
173
178
|
ColorEnum,
|
|
174
179
|
windowRef,
|
|
175
|
-
|
|
180
|
+
showError,
|
|
176
181
|
slots,
|
|
177
182
|
style,
|
|
178
183
|
getChildren,
|
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.128",
|
|
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.128",
|
|
14
|
+
"@dative-gpi/foundation-shared-services": "1.0.128"
|
|
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": "ca2de0b5abd0fb4f1fdfaafbc4267182ab609336"
|
|
39
39
|
}
|