@data-fair/lib-vuetify 1.0.0 → 1.0.1
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/date-range-picker.vue +1 -1
- package/date-range-picker.vue.d.ts +41 -10
- package/date-range-picker.vue.js +19 -6
- package/owner-avatar.vue +1 -1
- package/owner-avatar.vue.d.ts +12 -5
- package/owner-avatar.vue.js +13 -6
- package/owner-pick.vue +4 -8
- package/owner-pick.vue.d.ts +47 -8
- package/owner-pick.vue.js +20 -11
- package/package.json +7 -5
- package/personal-menu.vue +2 -2
- package/personal-menu.vue.d.ts +23 -14
- package/personal-menu.vue.js +14 -7
- package/tutorial-alert.vue +1 -1
- package/user-avatar.vue +2 -2
- package/user-avatar.vue.d.ts +12 -5
- package/user-avatar.vue.js +8 -7
package/date-range-picker.vue
CHANGED
|
@@ -1,11 +1,42 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
};
|
|
10
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
min: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: undefined;
|
|
5
|
+
};
|
|
6
|
+
max: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: undefined;
|
|
9
|
+
};
|
|
10
|
+
label: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: undefined;
|
|
13
|
+
};
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
|
+
};
|
|
17
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (modelValue: string | undefined) => any;
|
|
19
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
20
|
+
min: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
max: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: undefined;
|
|
27
|
+
};
|
|
28
|
+
label: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: undefined;
|
|
31
|
+
};
|
|
32
|
+
modelValue: {
|
|
33
|
+
type: import("vue").PropType<string>;
|
|
34
|
+
};
|
|
35
|
+
}>> & Readonly<{
|
|
36
|
+
"onUpdate:modelValue"?: ((modelValue: string | undefined) => any) | undefined;
|
|
37
|
+
}>, {
|
|
38
|
+
label: string;
|
|
39
|
+
max: string;
|
|
40
|
+
min: string;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
42
|
export default _default;
|
package/date-range-picker.vue.js
CHANGED
|
@@ -114,20 +114,33 @@ function __VLS_template() {
|
|
|
114
114
|
const __VLS_self = (await import('vue')).defineComponent({
|
|
115
115
|
setup() {
|
|
116
116
|
return {
|
|
117
|
-
$props: __VLS_makeOptional(props),
|
|
118
|
-
...props,
|
|
119
117
|
model: model,
|
|
120
118
|
start: start,
|
|
121
119
|
end: end,
|
|
122
120
|
};
|
|
123
121
|
},
|
|
122
|
+
__typeEmits: {},
|
|
123
|
+
props: {
|
|
124
|
+
...{},
|
|
125
|
+
...{
|
|
126
|
+
min: { type: String, default: undefined },
|
|
127
|
+
max: { type: String, default: undefined },
|
|
128
|
+
label: { type: String, default: undefined }
|
|
129
|
+
},
|
|
130
|
+
},
|
|
124
131
|
});
|
|
125
132
|
export default (await import('vue')).defineComponent({
|
|
126
133
|
setup() {
|
|
127
|
-
return {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
134
|
+
return {};
|
|
135
|
+
},
|
|
136
|
+
__typeEmits: {},
|
|
137
|
+
props: {
|
|
138
|
+
...{},
|
|
139
|
+
...{
|
|
140
|
+
min: { type: String, default: undefined },
|
|
141
|
+
max: { type: String, default: undefined },
|
|
142
|
+
label: { type: String, default: undefined }
|
|
143
|
+
},
|
|
131
144
|
},
|
|
132
145
|
});
|
|
133
146
|
;
|
package/owner-avatar.vue
CHANGED
package/owner-avatar.vue.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
owner:
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
owner: {
|
|
3
|
+
type: ObjectConstructor;
|
|
4
|
+
default: null;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
owner: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: null;
|
|
5
10
|
};
|
|
6
|
-
}
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
owner: Record<string, any>;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
14
|
export default _default;
|
package/owner-avatar.vue.js
CHANGED
|
@@ -84,19 +84,26 @@ function __VLS_template() {
|
|
|
84
84
|
const __VLS_self = (await import('vue')).defineComponent({
|
|
85
85
|
setup() {
|
|
86
86
|
return {
|
|
87
|
-
$props: __VLS_makeOptional(ownerProps),
|
|
88
|
-
...ownerProps,
|
|
89
87
|
avatarUrl: avatarUrl,
|
|
90
88
|
label: label,
|
|
91
89
|
};
|
|
92
90
|
},
|
|
91
|
+
props: {
|
|
92
|
+
owner: {
|
|
93
|
+
type: Object,
|
|
94
|
+
default: null
|
|
95
|
+
}
|
|
96
|
+
},
|
|
93
97
|
});
|
|
94
98
|
export default (await import('vue')).defineComponent({
|
|
95
99
|
setup() {
|
|
96
|
-
return {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
+
return {};
|
|
101
|
+
},
|
|
102
|
+
props: {
|
|
103
|
+
owner: {
|
|
104
|
+
type: Object,
|
|
105
|
+
default: null
|
|
106
|
+
}
|
|
100
107
|
},
|
|
101
108
|
});
|
|
102
109
|
;
|
package/owner-pick.vue
CHANGED
|
@@ -37,12 +37,12 @@ en:
|
|
|
37
37
|
message: Choisissez un propriétaire
|
|
38
38
|
</i18n>
|
|
39
39
|
|
|
40
|
-
<script setup>
|
|
40
|
+
<script setup lang="ts">
|
|
41
41
|
import { watch, computed } from 'vue'
|
|
42
42
|
import { computedAsync } from '@vueuse/core'
|
|
43
43
|
import { ofetch } from 'ofetch'
|
|
44
44
|
import { useI18n } from 'vue-i18n'
|
|
45
|
-
import { useSessionAuthenticated } from '@data-fair/lib
|
|
45
|
+
import { useSessionAuthenticated, type Account } from '@data-fair/lib-vue/session.js'
|
|
46
46
|
|
|
47
47
|
const { t } = useI18n({ useScope: 'local' })
|
|
48
48
|
|
|
@@ -60,8 +60,7 @@ const session = useSessionAuthenticated()
|
|
|
60
60
|
const owners = computedAsync(async () => {
|
|
61
61
|
const user = session.state.user
|
|
62
62
|
|
|
63
|
-
|
|
64
|
-
const owners = []
|
|
63
|
+
const owners: Account[] = []
|
|
65
64
|
if (props.otherAccounts || session.state.account.type === 'user') {
|
|
66
65
|
owners.push({ type: 'user', id: user.id, name: user.name })
|
|
67
66
|
}
|
|
@@ -92,10 +91,7 @@ const owners = computedAsync(async () => {
|
|
|
92
91
|
return owners
|
|
93
92
|
})
|
|
94
93
|
|
|
95
|
-
|
|
96
|
-
* @param {import('@data-fair/lib-common-types/session').Account} owner
|
|
97
|
-
*/
|
|
98
|
-
const getLabel = (owner) => {
|
|
94
|
+
const getLabel = (owner: Account) => {
|
|
99
95
|
if (owner.type === 'user' && owner.id === session.state.user?.id) return t('yourself')
|
|
100
96
|
if (owner.type === 'organization') {
|
|
101
97
|
if (owner.department) return `${t('org')} ${owner.name} / ${owner.departmentName || owner.department}`
|
package/owner-pick.vue.d.ts
CHANGED
|
@@ -1,11 +1,50 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
otherAccounts: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
hideSingle: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
message: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: null;
|
|
13
|
+
};
|
|
14
|
+
modelValue: {
|
|
15
|
+
type: import("vue").PropType<any>;
|
|
16
|
+
};
|
|
17
|
+
ready: {
|
|
18
|
+
type: import("vue").PropType<boolean>;
|
|
19
|
+
};
|
|
20
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
21
|
+
"update:modelValue": (modelValue: any) => any;
|
|
22
|
+
"update:ready": (ready: boolean) => any;
|
|
23
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
otherAccounts: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
hideSingle: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
message: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: null;
|
|
35
|
+
};
|
|
36
|
+
modelValue: {
|
|
37
|
+
type: import("vue").PropType<any>;
|
|
38
|
+
};
|
|
39
|
+
ready: {
|
|
40
|
+
type: import("vue").PropType<boolean>;
|
|
41
|
+
};
|
|
42
|
+
}>> & Readonly<{
|
|
43
|
+
"onUpdate:modelValue"?: ((modelValue: any) => any) | undefined;
|
|
44
|
+
"onUpdate:ready"?: ((ready: boolean) => any) | undefined;
|
|
45
|
+
}>, {
|
|
46
|
+
message: string;
|
|
2
47
|
otherAccounts: boolean;
|
|
3
48
|
hideSingle: boolean;
|
|
4
|
-
|
|
5
|
-
$props: {
|
|
6
|
-
readonly otherAccounts?: boolean | undefined;
|
|
7
|
-
readonly hideSingle?: boolean | undefined;
|
|
8
|
-
readonly message?: string | undefined;
|
|
9
|
-
};
|
|
10
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
49
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
11
50
|
export default _default;
|
package/owner-pick.vue.js
CHANGED
|
@@ -3,7 +3,7 @@ import { watch, computed } from 'vue';
|
|
|
3
3
|
import { computedAsync } from '@vueuse/core';
|
|
4
4
|
import { ofetch } from 'ofetch';
|
|
5
5
|
import { useI18n } from 'vue-i18n';
|
|
6
|
-
import { useSessionAuthenticated } from '@data-fair/lib
|
|
6
|
+
import { useSessionAuthenticated } from '@data-fair/lib-vue/session.js';
|
|
7
7
|
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
8
8
|
const { t } = useI18n({ useScope: 'local' });
|
|
9
9
|
const props = defineProps({
|
|
@@ -16,7 +16,6 @@ const ready = defineModel('ready', { type: Boolean, default: false });
|
|
|
16
16
|
const session = useSessionAuthenticated();
|
|
17
17
|
const owners = computedAsync(async () => {
|
|
18
18
|
const user = session.state.user;
|
|
19
|
-
/** @type {import('@data-fair/lib-common-types/session').Account[]} */
|
|
20
19
|
const owners = [];
|
|
21
20
|
if (props.otherAccounts || session.state.account.type === 'user') {
|
|
22
21
|
owners.push({ type: 'user', id: user.id, name: user.name });
|
|
@@ -47,9 +46,6 @@ const owners = computedAsync(async () => {
|
|
|
47
46
|
}
|
|
48
47
|
return owners;
|
|
49
48
|
});
|
|
50
|
-
/**
|
|
51
|
-
* @param {import('@data-fair/lib-common-types/session').Account} owner
|
|
52
|
-
*/
|
|
53
49
|
const getLabel = (owner) => {
|
|
54
50
|
if (owner.type === 'user' && owner.id === session.state.user?.id)
|
|
55
51
|
return t('yourself');
|
|
@@ -164,8 +160,6 @@ function __VLS_template() {
|
|
|
164
160
|
const __VLS_self = (await import('vue')).defineComponent({
|
|
165
161
|
setup() {
|
|
166
162
|
return {
|
|
167
|
-
$props: __VLS_makeOptional(props),
|
|
168
|
-
...props,
|
|
169
163
|
t: t,
|
|
170
164
|
model: model,
|
|
171
165
|
owners: owners,
|
|
@@ -173,13 +167,28 @@ const __VLS_self = (await import('vue')).defineComponent({
|
|
|
173
167
|
status: status,
|
|
174
168
|
};
|
|
175
169
|
},
|
|
170
|
+
__typeEmits: {},
|
|
171
|
+
props: {
|
|
172
|
+
...{},
|
|
173
|
+
...{
|
|
174
|
+
otherAccounts: { type: Boolean, default: false },
|
|
175
|
+
hideSingle: { type: Boolean, default: true },
|
|
176
|
+
message: { type: String, default: null }
|
|
177
|
+
},
|
|
178
|
+
},
|
|
176
179
|
});
|
|
177
180
|
export default (await import('vue')).defineComponent({
|
|
178
181
|
setup() {
|
|
179
|
-
return {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
182
|
+
return {};
|
|
183
|
+
},
|
|
184
|
+
__typeEmits: {},
|
|
185
|
+
props: {
|
|
186
|
+
...{},
|
|
187
|
+
...{
|
|
188
|
+
otherAccounts: { type: Boolean, default: false },
|
|
189
|
+
hideSingle: { type: Boolean, default: true },
|
|
190
|
+
message: { type: String, default: null }
|
|
191
|
+
},
|
|
183
192
|
},
|
|
184
193
|
});
|
|
185
194
|
;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@data-fair/lib-vuetify",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Components based on the Vuetify 3 UI lib for the data-fair stack.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -11,12 +11,14 @@
|
|
|
11
11
|
"author": "",
|
|
12
12
|
"license": "MIT",
|
|
13
13
|
"scripts": {
|
|
14
|
-
"prepublishOnly": "cd .. && npm run prepublishOnly"
|
|
14
|
+
"prepublishOnly": "cd .. && npm run prepublishOnly",
|
|
15
|
+
"build": "cd .. && npm run build"
|
|
15
16
|
},
|
|
16
17
|
"peerDependencies": {
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
18
|
+
"@data-fair/lib-vue": "^1.0.1",
|
|
19
|
+
"ofetch": "1",
|
|
20
|
+
"vue-i18n": "10",
|
|
21
|
+
"vuetify": "3"
|
|
20
22
|
},
|
|
21
23
|
"type": "module",
|
|
22
24
|
"dependencies": {
|
package/personal-menu.vue
CHANGED
|
@@ -224,10 +224,10 @@ en:
|
|
|
224
224
|
cancelDeletion: Cancel the deletion of the user
|
|
225
225
|
</i18n>
|
|
226
226
|
|
|
227
|
-
<script setup>
|
|
227
|
+
<script setup lang="ts">
|
|
228
228
|
import { computed, toRefs } from 'vue'
|
|
229
229
|
import { useI18n } from 'vue-i18n'
|
|
230
|
-
import { useSession } from '@data-fair/lib
|
|
230
|
+
import { useSession } from '@data-fair/lib-vue/session.js'
|
|
231
231
|
import { useTheme } from 'vuetify'
|
|
232
232
|
import UserAvatar from './user-avatar.vue'
|
|
233
233
|
|
package/personal-menu.vue.d.ts
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
declare
|
|
2
|
-
export default _default;
|
|
3
|
-
type __VLS_WithTemplateSlots<T, S> = T & (new () => {
|
|
4
|
-
$slots: S;
|
|
5
|
-
});
|
|
6
|
-
declare const __VLS_component: import("vue").DefineComponent<{}, {
|
|
7
|
-
darkModeSwitch: boolean;
|
|
8
|
-
$props: {
|
|
9
|
-
readonly darkModeSwitch?: boolean | undefined;
|
|
10
|
-
};
|
|
11
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
12
|
-
type __VLS_TemplateResult = {
|
|
1
|
+
declare function __VLS_template(): {
|
|
13
2
|
slots: {
|
|
14
3
|
"actions-before"?(_: {}): any;
|
|
15
4
|
};
|
|
16
5
|
refs: {};
|
|
17
|
-
attrs: Partial<
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
};
|
|
8
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
|
+
declare const __VLS_component: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
10
|
+
darkModeSwitch: {
|
|
11
|
+
type: BooleanConstructor;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
darkModeSwitch: {
|
|
16
|
+
type: BooleanConstructor;
|
|
17
|
+
default: boolean;
|
|
18
|
+
};
|
|
19
|
+
}>> & Readonly<{}>, {
|
|
20
|
+
darkModeSwitch: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
18
28
|
};
|
|
19
|
-
declare var __VLS_inheritedAttrs: {};
|
package/personal-menu.vue.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types=".vue-global-types/vue_3.5_false.d.ts" />
|
|
2
2
|
import { computed, toRefs } from 'vue';
|
|
3
3
|
import { useI18n } from 'vue-i18n';
|
|
4
|
-
import { useSession } from '@data-fair/lib
|
|
4
|
+
import { useSession } from '@data-fair/lib-vue/session.js';
|
|
5
5
|
import { useTheme } from 'vuetify';
|
|
6
6
|
import UserAvatar from './user-avatar.vue';
|
|
7
7
|
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
@@ -459,8 +459,6 @@ function __VLS_template() {
|
|
|
459
459
|
const __VLS_self = (await import('vue')).defineComponent({
|
|
460
460
|
setup() {
|
|
461
461
|
return {
|
|
462
|
-
$props: __VLS_makeOptional(__VLS_props),
|
|
463
|
-
...__VLS_props,
|
|
464
462
|
UserAvatar: UserAvatar,
|
|
465
463
|
theme: theme,
|
|
466
464
|
session: session,
|
|
@@ -470,13 +468,22 @@ const __VLS_self = (await import('vue')).defineComponent({
|
|
|
470
468
|
switchableOrganizations: switchableOrganizations,
|
|
471
469
|
};
|
|
472
470
|
},
|
|
471
|
+
props: {
|
|
472
|
+
darkModeSwitch: {
|
|
473
|
+
type: Boolean,
|
|
474
|
+
default: false
|
|
475
|
+
}
|
|
476
|
+
},
|
|
473
477
|
});
|
|
474
478
|
const __VLS_component = (await import('vue')).defineComponent({
|
|
475
479
|
setup() {
|
|
476
|
-
return {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
+
return {};
|
|
481
|
+
},
|
|
482
|
+
props: {
|
|
483
|
+
darkModeSwitch: {
|
|
484
|
+
type: Boolean,
|
|
485
|
+
default: false
|
|
486
|
+
}
|
|
480
487
|
},
|
|
481
488
|
});
|
|
482
489
|
export default {};
|
package/tutorial-alert.vue
CHANGED
package/user-avatar.vue
CHANGED
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
</div>
|
|
40
40
|
</template>
|
|
41
41
|
|
|
42
|
-
<script setup>
|
|
42
|
+
<script setup lang="ts">
|
|
43
43
|
import { computed } from 'vue'
|
|
44
|
-
import { useSession } from '@data-fair/lib
|
|
44
|
+
import { useSession } from '@data-fair/lib-vue/session.js'
|
|
45
45
|
|
|
46
46
|
const props = defineProps({
|
|
47
47
|
showAccount: { type: Boolean, default: false }
|
package/user-avatar.vue.d.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{
|
|
2
|
-
showAccount:
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
showAccount: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
showAccount: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
default: boolean;
|
|
5
10
|
};
|
|
6
|
-
}
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
showAccount: boolean;
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
7
14
|
export default _default;
|
package/user-avatar.vue.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference types=".vue-global-types/vue_3.5_false.d.ts" />
|
|
2
2
|
import { computed } from 'vue';
|
|
3
|
-
import { useSession } from '@data-fair/lib
|
|
3
|
+
import { useSession } from '@data-fair/lib-vue/session.js';
|
|
4
4
|
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
5
5
|
const props = defineProps({
|
|
6
6
|
showAccount: { type: Boolean, default: false }
|
|
@@ -91,21 +91,22 @@ function __VLS_template() {
|
|
|
91
91
|
const __VLS_self = (await import('vue')).defineComponent({
|
|
92
92
|
setup() {
|
|
93
93
|
return {
|
|
94
|
-
$props: __VLS_makeOptional(props),
|
|
95
|
-
...props,
|
|
96
94
|
session: session,
|
|
97
95
|
userAvatarUrl: userAvatarUrl,
|
|
98
96
|
accountAvatarUrl: accountAvatarUrl,
|
|
99
97
|
showSecondAvatar: showSecondAvatar,
|
|
100
98
|
};
|
|
101
99
|
},
|
|
100
|
+
props: {
|
|
101
|
+
showAccount: { type: Boolean, default: false }
|
|
102
|
+
},
|
|
102
103
|
});
|
|
103
104
|
export default (await import('vue')).defineComponent({
|
|
104
105
|
setup() {
|
|
105
|
-
return {
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
}
|
|
106
|
+
return {};
|
|
107
|
+
},
|
|
108
|
+
props: {
|
|
109
|
+
showAccount: { type: Boolean, default: false }
|
|
109
110
|
},
|
|
110
111
|
});
|
|
111
112
|
;
|