@data-fair/lib-vuetify 1.1.1 → 1.3.0
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/lang-switcher.vue +48 -0
- package/lang-switcher.vue.d.ts +14 -0
- package/lang-switcher.vue.js +132 -0
- package/package.json +2 -2
- package/personal-menu.vue +7 -7
- package/personal-menu.vue.js +21 -25
- package/ui-notif.vue +1 -1
- package/ui-notif.vue.js +1 -1
- package/vite.d.ts +2 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<template lang="html">
|
|
2
|
+
<v-toolbar-items class="lang-switcher">
|
|
3
|
+
<v-speed-dial
|
|
4
|
+
v-if="locales.length > 1"
|
|
5
|
+
direction="bottom"
|
|
6
|
+
transition="fade-transition"
|
|
7
|
+
>
|
|
8
|
+
<template #activator="{props}">
|
|
9
|
+
<v-btn
|
|
10
|
+
v-bind="props"
|
|
11
|
+
>
|
|
12
|
+
{{ session.lang.value }}
|
|
13
|
+
</v-btn>
|
|
14
|
+
</template>
|
|
15
|
+
<v-btn
|
|
16
|
+
v-for="locale in locales.filter(l => l !== session.lang.value)"
|
|
17
|
+
:key="locale"
|
|
18
|
+
icon
|
|
19
|
+
@click="setLocale(locale)"
|
|
20
|
+
>
|
|
21
|
+
{{ locale }}
|
|
22
|
+
</v-btn>
|
|
23
|
+
</v-speed-dial>
|
|
24
|
+
</v-toolbar-items>
|
|
25
|
+
</template>
|
|
26
|
+
|
|
27
|
+
<script lang="ts" setup>
|
|
28
|
+
import { useI18n } from 'vue-i18n'
|
|
29
|
+
import useSession from '@data-fair/lib-vue/session.js'
|
|
30
|
+
|
|
31
|
+
const i18n = useI18n()
|
|
32
|
+
const session = useSession()
|
|
33
|
+
|
|
34
|
+
const {locales} = defineProps({
|
|
35
|
+
locales: {
|
|
36
|
+
type: Array as () => string[],
|
|
37
|
+
default: ['fr', 'en']
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
41
|
+
const setLocale = (locale: string) => {
|
|
42
|
+
session.switchLang(locale)
|
|
43
|
+
window.location.reload()
|
|
44
|
+
}
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<style lang="css">
|
|
48
|
+
</style>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
locales: {
|
|
3
|
+
type: () => string[];
|
|
4
|
+
default: string[];
|
|
5
|
+
};
|
|
6
|
+
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
locales: {
|
|
8
|
+
type: () => string[];
|
|
9
|
+
default: string[];
|
|
10
|
+
};
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
|
+
locales: string[];
|
|
13
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
/// <reference types=".vue-global-types/vue_3.5_false.d.ts" />
|
|
2
|
+
import { useI18n } from 'vue-i18n';
|
|
3
|
+
import useSession from '@data-fair/lib-vue/session.js';
|
|
4
|
+
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
5
|
+
const i18n = useI18n();
|
|
6
|
+
const session = useSession();
|
|
7
|
+
const __VLS_props = defineProps({
|
|
8
|
+
locales: {
|
|
9
|
+
type: Array,
|
|
10
|
+
default: ['fr', 'en']
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
const { locales } = __VLS_props;
|
|
14
|
+
const setLocale = (locale) => {
|
|
15
|
+
session.switchLang(locale);
|
|
16
|
+
window.location.reload();
|
|
17
|
+
};
|
|
18
|
+
const __VLS_fnComponent = (await import('vue')).defineComponent({
|
|
19
|
+
props: {
|
|
20
|
+
locales: {
|
|
21
|
+
type: Array,
|
|
22
|
+
default: ['fr', 'en']
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
;
|
|
27
|
+
let __VLS_functionalComponentProps;
|
|
28
|
+
function __VLS_template() {
|
|
29
|
+
const __VLS_ctx = {};
|
|
30
|
+
const __VLS_localComponents = {
|
|
31
|
+
...{},
|
|
32
|
+
...{},
|
|
33
|
+
...__VLS_ctx,
|
|
34
|
+
};
|
|
35
|
+
let __VLS_components;
|
|
36
|
+
const __VLS_localDirectives = {
|
|
37
|
+
...{},
|
|
38
|
+
...__VLS_ctx,
|
|
39
|
+
};
|
|
40
|
+
let __VLS_directives;
|
|
41
|
+
let __VLS_styleScopedClasses;
|
|
42
|
+
// CSS variable injection
|
|
43
|
+
// CSS variable injection end
|
|
44
|
+
let __VLS_resolvedLocalAndGlobalComponents;
|
|
45
|
+
const __VLS_0 = __VLS_resolvedLocalAndGlobalComponents.VToolbarItems;
|
|
46
|
+
/** @type { [typeof __VLS_components.VToolbarItems, typeof __VLS_components.vToolbarItems, typeof __VLS_components.VToolbarItems, typeof __VLS_components.vToolbarItems, ] } */
|
|
47
|
+
// @ts-ignore
|
|
48
|
+
const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({ ...{ class: ("lang-switcher") }, }));
|
|
49
|
+
const __VLS_2 = __VLS_1({ ...{ class: ("lang-switcher") }, }, ...__VLS_functionalComponentArgsRest(__VLS_1));
|
|
50
|
+
if (__VLS_ctx.locales.length > 1) {
|
|
51
|
+
const __VLS_6 = __VLS_resolvedLocalAndGlobalComponents.VSpeedDial;
|
|
52
|
+
/** @type { [typeof __VLS_components.VSpeedDial, typeof __VLS_components.vSpeedDial, typeof __VLS_components.VSpeedDial, typeof __VLS_components.vSpeedDial, ] } */
|
|
53
|
+
// @ts-ignore
|
|
54
|
+
const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({ direction: ("bottom"), transition: ("fade-transition"), }));
|
|
55
|
+
const __VLS_8 = __VLS_7({ direction: ("bottom"), transition: ("fade-transition"), }, ...__VLS_functionalComponentArgsRest(__VLS_7));
|
|
56
|
+
__VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
|
|
57
|
+
{
|
|
58
|
+
const { activator: __VLS_thisSlot } = __VLS_nonNullable(__VLS_11.slots);
|
|
59
|
+
const [{ props }] = __VLS_getSlotParams(__VLS_thisSlot);
|
|
60
|
+
const __VLS_12 = __VLS_resolvedLocalAndGlobalComponents.VBtn;
|
|
61
|
+
/** @type { [typeof __VLS_components.VBtn, typeof __VLS_components.vBtn, typeof __VLS_components.VBtn, typeof __VLS_components.vBtn, ] } */
|
|
62
|
+
// @ts-ignore
|
|
63
|
+
const __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({ ...(props), }));
|
|
64
|
+
const __VLS_14 = __VLS_13({ ...(props), }, ...__VLS_functionalComponentArgsRest(__VLS_13));
|
|
65
|
+
(__VLS_ctx.session.lang.value);
|
|
66
|
+
__VLS_nonNullable(__VLS_17.slots).default;
|
|
67
|
+
const __VLS_17 = __VLS_pickFunctionalComponentCtx(__VLS_12, __VLS_14);
|
|
68
|
+
}
|
|
69
|
+
for (const [locale] of __VLS_getVForSourceType((__VLS_ctx.locales.filter(l => l !== __VLS_ctx.session.lang.value)))) {
|
|
70
|
+
const __VLS_18 = __VLS_resolvedLocalAndGlobalComponents.VBtn;
|
|
71
|
+
/** @type { [typeof __VLS_components.VBtn, typeof __VLS_components.vBtn, typeof __VLS_components.VBtn, typeof __VLS_components.vBtn, ] } */
|
|
72
|
+
// @ts-ignore
|
|
73
|
+
const __VLS_19 = __VLS_asFunctionalComponent(__VLS_18, new __VLS_18({ ...{ 'onClick': {} }, key: ((locale)), icon: (true), }));
|
|
74
|
+
const __VLS_20 = __VLS_19({ ...{ 'onClick': {} }, key: ((locale)), icon: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_19));
|
|
75
|
+
let __VLS_24;
|
|
76
|
+
const __VLS_25 = {
|
|
77
|
+
onClick: (...[$event]) => {
|
|
78
|
+
if (!((__VLS_ctx.locales.length > 1)))
|
|
79
|
+
return;
|
|
80
|
+
__VLS_ctx.setLocale(locale);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
let __VLS_21;
|
|
84
|
+
let __VLS_22;
|
|
85
|
+
(locale);
|
|
86
|
+
__VLS_nonNullable(__VLS_23.slots).default;
|
|
87
|
+
const __VLS_23 = __VLS_pickFunctionalComponentCtx(__VLS_18, __VLS_20);
|
|
88
|
+
}
|
|
89
|
+
const __VLS_11 = __VLS_pickFunctionalComponentCtx(__VLS_6, __VLS_8);
|
|
90
|
+
}
|
|
91
|
+
__VLS_nonNullable(__VLS_5.slots).default;
|
|
92
|
+
const __VLS_5 = __VLS_pickFunctionalComponentCtx(__VLS_0, __VLS_2);
|
|
93
|
+
__VLS_styleScopedClasses['lang-switcher'];
|
|
94
|
+
var __VLS_slots;
|
|
95
|
+
var __VLS_inheritedAttrs;
|
|
96
|
+
const __VLS_refs = {};
|
|
97
|
+
var $refs;
|
|
98
|
+
return {
|
|
99
|
+
slots: __VLS_slots,
|
|
100
|
+
refs: $refs,
|
|
101
|
+
attrs: {},
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
;
|
|
105
|
+
const __VLS_self = (await import('vue')).defineComponent({
|
|
106
|
+
setup() {
|
|
107
|
+
return {
|
|
108
|
+
session: session,
|
|
109
|
+
locales: locales,
|
|
110
|
+
setLocale: setLocale,
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
props: {
|
|
114
|
+
locales: {
|
|
115
|
+
type: Array,
|
|
116
|
+
default: ['fr', 'en']
|
|
117
|
+
}
|
|
118
|
+
},
|
|
119
|
+
});
|
|
120
|
+
export default (await import('vue')).defineComponent({
|
|
121
|
+
setup() {
|
|
122
|
+
return {};
|
|
123
|
+
},
|
|
124
|
+
props: {
|
|
125
|
+
locales: {
|
|
126
|
+
type: Array,
|
|
127
|
+
default: ['fr', 'en']
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
});
|
|
131
|
+
;
|
|
132
|
+
//# sourceMappingURL=lang-switcher.vue.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@data-fair/lib-vuetify",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Components based on the Vuetify 3 UI lib for the data-fair stack.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"files": [
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"build": "cd .. && npm run build"
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@data-fair/lib-vue": "^1.
|
|
19
|
+
"@data-fair/lib-vue": "^1.2.0",
|
|
20
20
|
"ofetch": "1",
|
|
21
21
|
"vue-i18n": "10",
|
|
22
22
|
"vuetify": "3"
|
package/personal-menu.vue
CHANGED
|
@@ -24,9 +24,8 @@
|
|
|
24
24
|
v-if="user.pd"
|
|
25
25
|
color="warning"
|
|
26
26
|
style="position:absolute;"
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
</v-icon>
|
|
27
|
+
:icon="mdiAlert"
|
|
28
|
+
/>
|
|
30
29
|
</v-btn>
|
|
31
30
|
</template>
|
|
32
31
|
|
|
@@ -134,7 +133,7 @@
|
|
|
134
133
|
class="personal-menu-switch-list-item"
|
|
135
134
|
>
|
|
136
135
|
<template #prepend>
|
|
137
|
-
<v-icon
|
|
136
|
+
<v-icon :icon="mdiShieldAlert" />
|
|
138
137
|
</template>
|
|
139
138
|
<v-list-item-title>
|
|
140
139
|
<v-switch
|
|
@@ -157,7 +156,7 @@
|
|
|
157
156
|
@click="session.asAdmin(null)"
|
|
158
157
|
>
|
|
159
158
|
<template #prepend>
|
|
160
|
-
<v-icon
|
|
159
|
+
<v-icon :icon="mdiAccountSwitchOutline" />
|
|
161
160
|
</template>
|
|
162
161
|
<v-list-item-title>{{ t('backToAdmin') }}</v-list-item-title>
|
|
163
162
|
</v-list-item>
|
|
@@ -169,7 +168,7 @@
|
|
|
169
168
|
class="personal-menu-switch-list-item"
|
|
170
169
|
>
|
|
171
170
|
<template #prepend>
|
|
172
|
-
<v-icon
|
|
171
|
+
<v-icon :icon="mdiWeatherNight" />
|
|
173
172
|
</template>
|
|
174
173
|
<v-list-item-title>
|
|
175
174
|
<v-switch
|
|
@@ -190,7 +189,7 @@
|
|
|
190
189
|
@click="() => session.logout()"
|
|
191
190
|
>
|
|
192
191
|
<template #prepend>
|
|
193
|
-
<v-icon
|
|
192
|
+
<v-icon :icon="mdiLogout" />
|
|
194
193
|
</template>
|
|
195
194
|
<v-list-item-title v-t="'logout'" />
|
|
196
195
|
</v-list-item>
|
|
@@ -230,6 +229,7 @@ import { useI18n } from 'vue-i18n'
|
|
|
230
229
|
import { useSession } from '@data-fair/lib-vue/session.js'
|
|
231
230
|
import { useTheme } from 'vuetify'
|
|
232
231
|
import UserAvatar from './user-avatar.vue'
|
|
232
|
+
import { mdiAlert, mdiShieldAlert, mdiLogout, mdiAccountSwitchOutline, mdiWeatherNight } from '@mdi/js'
|
|
233
233
|
|
|
234
234
|
const theme = useTheme()
|
|
235
235
|
const session = useSession()
|
package/personal-menu.vue.js
CHANGED
|
@@ -4,6 +4,7 @@ import { useI18n } from 'vue-i18n';
|
|
|
4
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
|
+
import { mdiAlert, mdiShieldAlert, mdiLogout, mdiAccountSwitchOutline, mdiWeatherNight } from '@mdi/js';
|
|
7
8
|
const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
|
|
8
9
|
const theme = useTheme();
|
|
9
10
|
const session = useSession();
|
|
@@ -83,12 +84,10 @@ function __VLS_template() {
|
|
|
83
84
|
const __VLS_25 = __VLS_24({ showAccount: (true), }, ...__VLS_functionalComponentArgsRest(__VLS_24));
|
|
84
85
|
if (__VLS_ctx.user.pd) {
|
|
85
86
|
const __VLS_29 = __VLS_resolvedLocalAndGlobalComponents.VIcon;
|
|
86
|
-
/** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon,
|
|
87
|
+
/** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ] } */
|
|
87
88
|
// @ts-ignore
|
|
88
|
-
const __VLS_30 = __VLS_asFunctionalComponent(__VLS_29, new __VLS_29({ color: ("warning"), ...{ style: ({}) }, }));
|
|
89
|
-
const __VLS_31 = __VLS_30({ color: ("warning"), ...{ style: ({}) }, }, ...__VLS_functionalComponentArgsRest(__VLS_30));
|
|
90
|
-
__VLS_nonNullable(__VLS_34.slots).default;
|
|
91
|
-
const __VLS_34 = __VLS_pickFunctionalComponentCtx(__VLS_29, __VLS_31);
|
|
89
|
+
const __VLS_30 = __VLS_asFunctionalComponent(__VLS_29, new __VLS_29({ color: ("warning"), ...{ style: ({}) }, icon: ((__VLS_ctx.mdiAlert)), }));
|
|
90
|
+
const __VLS_31 = __VLS_30({ color: ("warning"), ...{ style: ({}) }, icon: ((__VLS_ctx.mdiAlert)), }, ...__VLS_functionalComponentArgsRest(__VLS_30));
|
|
92
91
|
}
|
|
93
92
|
__VLS_nonNullable(__VLS_23.slots).default;
|
|
94
93
|
const __VLS_23 = __VLS_pickFunctionalComponentCtx(__VLS_18, __VLS_20);
|
|
@@ -289,12 +288,10 @@ function __VLS_template() {
|
|
|
289
288
|
{
|
|
290
289
|
const { prepend: __VLS_thisSlot } = __VLS_nonNullable(__VLS_154.slots);
|
|
291
290
|
const __VLS_155 = __VLS_resolvedLocalAndGlobalComponents.VIcon;
|
|
292
|
-
/** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon,
|
|
291
|
+
/** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ] } */
|
|
293
292
|
// @ts-ignore
|
|
294
|
-
const __VLS_156 = __VLS_asFunctionalComponent(__VLS_155, new __VLS_155({}));
|
|
295
|
-
const __VLS_157 = __VLS_156({}, ...__VLS_functionalComponentArgsRest(__VLS_156));
|
|
296
|
-
__VLS_nonNullable(__VLS_160.slots).default;
|
|
297
|
-
const __VLS_160 = __VLS_pickFunctionalComponentCtx(__VLS_155, __VLS_157);
|
|
293
|
+
const __VLS_156 = __VLS_asFunctionalComponent(__VLS_155, new __VLS_155({ icon: ((__VLS_ctx.mdiShieldAlert)), }));
|
|
294
|
+
const __VLS_157 = __VLS_156({ icon: ((__VLS_ctx.mdiShieldAlert)), }, ...__VLS_functionalComponentArgsRest(__VLS_156));
|
|
298
295
|
}
|
|
299
296
|
const __VLS_161 = __VLS_resolvedLocalAndGlobalComponents.VListItemTitle;
|
|
300
297
|
/** @type { [typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ] } */
|
|
@@ -339,12 +336,10 @@ function __VLS_template() {
|
|
|
339
336
|
{
|
|
340
337
|
const { prepend: __VLS_thisSlot } = __VLS_nonNullable(__VLS_180.slots);
|
|
341
338
|
const __VLS_183 = __VLS_resolvedLocalAndGlobalComponents.VIcon;
|
|
342
|
-
/** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon,
|
|
339
|
+
/** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ] } */
|
|
343
340
|
// @ts-ignore
|
|
344
|
-
const __VLS_184 = __VLS_asFunctionalComponent(__VLS_183, new __VLS_183({}));
|
|
345
|
-
const __VLS_185 = __VLS_184({}, ...__VLS_functionalComponentArgsRest(__VLS_184));
|
|
346
|
-
__VLS_nonNullable(__VLS_188.slots).default;
|
|
347
|
-
const __VLS_188 = __VLS_pickFunctionalComponentCtx(__VLS_183, __VLS_185);
|
|
341
|
+
const __VLS_184 = __VLS_asFunctionalComponent(__VLS_183, new __VLS_183({ icon: ((__VLS_ctx.mdiAccountSwitchOutline)), }));
|
|
342
|
+
const __VLS_185 = __VLS_184({ icon: ((__VLS_ctx.mdiAccountSwitchOutline)), }, ...__VLS_functionalComponentArgsRest(__VLS_184));
|
|
348
343
|
}
|
|
349
344
|
const __VLS_189 = __VLS_resolvedLocalAndGlobalComponents.VListItemTitle;
|
|
350
345
|
/** @type { [typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ] } */
|
|
@@ -366,12 +361,10 @@ function __VLS_template() {
|
|
|
366
361
|
{
|
|
367
362
|
const { prepend: __VLS_thisSlot } = __VLS_nonNullable(__VLS_200.slots);
|
|
368
363
|
const __VLS_201 = __VLS_resolvedLocalAndGlobalComponents.VIcon;
|
|
369
|
-
/** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon,
|
|
364
|
+
/** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ] } */
|
|
370
365
|
// @ts-ignore
|
|
371
|
-
const __VLS_202 = __VLS_asFunctionalComponent(__VLS_201, new __VLS_201({}));
|
|
372
|
-
const __VLS_203 = __VLS_202({}, ...__VLS_functionalComponentArgsRest(__VLS_202));
|
|
373
|
-
__VLS_nonNullable(__VLS_206.slots).default;
|
|
374
|
-
const __VLS_206 = __VLS_pickFunctionalComponentCtx(__VLS_201, __VLS_203);
|
|
366
|
+
const __VLS_202 = __VLS_asFunctionalComponent(__VLS_201, new __VLS_201({ icon: ((__VLS_ctx.mdiWeatherNight)), }));
|
|
367
|
+
const __VLS_203 = __VLS_202({ icon: ((__VLS_ctx.mdiWeatherNight)), }, ...__VLS_functionalComponentArgsRest(__VLS_202));
|
|
375
368
|
}
|
|
376
369
|
const __VLS_207 = __VLS_resolvedLocalAndGlobalComponents.VListItemTitle;
|
|
377
370
|
/** @type { [typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ] } */
|
|
@@ -414,12 +407,10 @@ function __VLS_template() {
|
|
|
414
407
|
{
|
|
415
408
|
const { prepend: __VLS_thisSlot } = __VLS_nonNullable(__VLS_232.slots);
|
|
416
409
|
const __VLS_235 = __VLS_resolvedLocalAndGlobalComponents.VIcon;
|
|
417
|
-
/** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon,
|
|
410
|
+
/** @type { [typeof __VLS_components.VIcon, typeof __VLS_components.vIcon, ] } */
|
|
418
411
|
// @ts-ignore
|
|
419
|
-
const __VLS_236 = __VLS_asFunctionalComponent(__VLS_235, new __VLS_235({}));
|
|
420
|
-
const __VLS_237 = __VLS_236({}, ...__VLS_functionalComponentArgsRest(__VLS_236));
|
|
421
|
-
__VLS_nonNullable(__VLS_240.slots).default;
|
|
422
|
-
const __VLS_240 = __VLS_pickFunctionalComponentCtx(__VLS_235, __VLS_237);
|
|
412
|
+
const __VLS_236 = __VLS_asFunctionalComponent(__VLS_235, new __VLS_235({ icon: ((__VLS_ctx.mdiLogout)), }));
|
|
413
|
+
const __VLS_237 = __VLS_236({ icon: ((__VLS_ctx.mdiLogout)), }, ...__VLS_functionalComponentArgsRest(__VLS_236));
|
|
423
414
|
}
|
|
424
415
|
const __VLS_241 = __VLS_resolvedLocalAndGlobalComponents.VListItemTitle;
|
|
425
416
|
/** @type { [typeof __VLS_components.VListItemTitle, typeof __VLS_components.vListItemTitle, ] } */
|
|
@@ -460,6 +451,11 @@ const __VLS_self = (await import('vue')).defineComponent({
|
|
|
460
451
|
setup() {
|
|
461
452
|
return {
|
|
462
453
|
UserAvatar: UserAvatar,
|
|
454
|
+
mdiAlert: mdiAlert,
|
|
455
|
+
mdiShieldAlert: mdiShieldAlert,
|
|
456
|
+
mdiLogout: mdiLogout,
|
|
457
|
+
mdiAccountSwitchOutline: mdiAccountSwitchOutline,
|
|
458
|
+
mdiWeatherNight: mdiWeatherNight,
|
|
463
459
|
theme: theme,
|
|
464
460
|
session: session,
|
|
465
461
|
t: t,
|
package/ui-notif.vue
CHANGED
package/ui-notif.vue.js
CHANGED
|
@@ -74,7 +74,7 @@ function __VLS_template() {
|
|
|
74
74
|
(__VLS_ctx.notification.msg);
|
|
75
75
|
if (__VLS_ctx.notification.type === 'error') {
|
|
76
76
|
__VLS_elementAsFunction(__VLS_intrinsicElements.p)({ ...{ class: ("ml-3") }, });
|
|
77
|
-
__VLS_directiveAsFunction(__VLS_directives.
|
|
77
|
+
__VLS_directiveAsFunction(__VLS_directives.vText)(null, { ...__VLS_directiveBindingRestFields, value: (__VLS_ctx.notification.errorMsg) }, null, null);
|
|
78
78
|
}
|
|
79
79
|
__VLS_elementAsFunction(__VLS_intrinsicElements.template, __VLS_intrinsicElements.template)({});
|
|
80
80
|
{
|
package/vite.d.ts
CHANGED
|
@@ -4,6 +4,8 @@ export declare const autoImports: (string | {
|
|
|
4
4
|
'@data-fair/lib-vue/locale-dayjs.js': string[];
|
|
5
5
|
'@data-fair/lib-vue/concept-filters.js': string[];
|
|
6
6
|
'@data-fair/lib-vue/ui-notif.js': string[];
|
|
7
|
+
'@data-fair/lib-vue/fetch.js': string[];
|
|
8
|
+
'@data-fair/lib-vue/ws.js': string[];
|
|
7
9
|
} | {
|
|
8
10
|
'@data-fair/lib-vuetify/personal-menu.vue': string[][];
|
|
9
11
|
'@data-fair/lib-vuetify/tutorial-alert.vue': string[][];
|