@data-fair/lib-vuetify 1.13.2 → 2.0.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.
@@ -1,7 +1,6 @@
1
- /// <reference types=".vue-global-types/vue_3.5_false.d.ts" />
1
+ /// <reference types="../../node_modules/.vue-global-types/vue_3.5_0_0_0.d.ts" />
2
2
  import { computed } from 'vue';
3
3
  import { useSession } from '@data-fair/lib-vue/session.js';
4
- const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
5
4
  const props = defineProps({
6
5
  showAccount: { type: Boolean, default: false }
7
6
  });
@@ -17,68 +16,67 @@ const accountAvatarUrl = computed(() => {
17
16
  return url;
18
17
  });
19
18
  const showSecondAvatar = computed(() => props.showAccount && session.state.account && session.state.account.type !== 'user');
20
- const __VLS_fnComponent = (await import('vue')).defineComponent({
21
- props: {
22
- showAccount: { type: Boolean, default: false }
23
- },
19
+ debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
20
+ const __VLS_ctx = {};
21
+ let __VLS_components;
22
+ let __VLS_directives;
23
+ // CSS variable injection
24
+ // CSS variable injection end
25
+ __VLS_asFunctionalElement(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({
26
+ ...{ class: "sd-avatar" },
27
+ ...{ class: ({ 'has-secondary-avatar': __VLS_ctx.showSecondAvatar }) },
28
+ 'aria-hidden': true,
24
29
  });
25
- ;
26
- let __VLS_functionalComponentProps;
27
- function __VLS_template() {
28
- const __VLS_ctx = {};
29
- const __VLS_localComponents = {
30
- ...{},
31
- ...{},
32
- ...__VLS_ctx,
33
- };
34
- let __VLS_components;
35
- const __VLS_localDirectives = {
36
- ...{},
37
- ...__VLS_ctx,
38
- };
39
- let __VLS_directives;
40
- let __VLS_styleScopedClasses;
41
- // CSS variable injection
42
- // CSS variable injection end
43
- let __VLS_resolvedLocalAndGlobalComponents;
44
- __VLS_elementAsFunction(__VLS_intrinsicElements.div, __VLS_intrinsicElements.div)({ ...{ class: ("sd-avatar") }, ...{ class: (({ 'has-secondary-avatar': __VLS_ctx.showSecondAvatar })) }, "aria-hidden": (true), });
45
- if (__VLS_ctx.showAccount && __VLS_ctx.session.state.account && __VLS_ctx.session.state.account.type === 'user') {
46
- const __VLS_0 = __VLS_resolvedLocalAndGlobalComponents.VAvatar;
47
- /** @type { [typeof __VLS_components.VAvatar, typeof __VLS_components.vAvatar, ] } */
48
- // @ts-ignore
49
- const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({ ...{ class: ("primary-avatar") }, size: ((36)), image: ((__VLS_ctx.userAvatarUrl)), }));
50
- const __VLS_2 = __VLS_1({ ...{ class: ("primary-avatar") }, size: ((36)), image: ((__VLS_ctx.userAvatarUrl)), }, ...__VLS_functionalComponentArgsRest(__VLS_1));
51
- }
52
- else {
53
- const __VLS_6 = __VLS_resolvedLocalAndGlobalComponents.VAvatar;
54
- /** @type { [typeof __VLS_components.VAvatar, typeof __VLS_components.vAvatar, ] } */
55
- // @ts-ignore
56
- const __VLS_7 = __VLS_asFunctionalComponent(__VLS_6, new __VLS_6({ ...{ class: ("primary-avatar") }, size: ((36)), image: ((__VLS_ctx.accountAvatarUrl)), }));
57
- const __VLS_8 = __VLS_7({ ...{ class: ("primary-avatar") }, size: ((36)), image: ((__VLS_ctx.accountAvatarUrl)), }, ...__VLS_functionalComponentArgsRest(__VLS_7));
58
- }
59
- if (__VLS_ctx.showSecondAvatar) {
60
- const __VLS_12 = __VLS_resolvedLocalAndGlobalComponents.VAvatar;
61
- /** @type { [typeof __VLS_components.VAvatar, typeof __VLS_components.vAvatar, ] } */
62
- // @ts-ignore
63
- const __VLS_13 = __VLS_asFunctionalComponent(__VLS_12, new __VLS_12({ ...{ class: ("secondary-avatar") }, size: ((28)), image: ((__VLS_ctx.userAvatarUrl)), }));
64
- const __VLS_14 = __VLS_13({ ...{ class: ("secondary-avatar") }, size: ((28)), image: ((__VLS_ctx.userAvatarUrl)), }, ...__VLS_functionalComponentArgsRest(__VLS_13));
65
- }
66
- __VLS_styleScopedClasses['sd-avatar'];
67
- __VLS_styleScopedClasses['has-secondary-avatar'];
68
- __VLS_styleScopedClasses['primary-avatar'];
69
- __VLS_styleScopedClasses['primary-avatar'];
70
- __VLS_styleScopedClasses['secondary-avatar'];
71
- var __VLS_slots;
72
- var __VLS_inheritedAttrs;
73
- const __VLS_refs = {};
74
- var $refs;
75
- return {
76
- slots: __VLS_slots,
77
- refs: $refs,
78
- attrs: {},
79
- };
30
+ if (__VLS_ctx.showAccount && __VLS_ctx.session.state.account && __VLS_ctx.session.state.account.type === 'user') {
31
+ const __VLS_0 = {}.VAvatar;
32
+ /** @type {[typeof __VLS_components.VAvatar, typeof __VLS_components.vAvatar, ]} */ ;
33
+ // @ts-ignore
34
+ const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({
35
+ ...{ class: "primary-avatar" },
36
+ size: (36),
37
+ image: (__VLS_ctx.userAvatarUrl),
38
+ }));
39
+ const __VLS_2 = __VLS_1({
40
+ ...{ class: "primary-avatar" },
41
+ size: (36),
42
+ image: (__VLS_ctx.userAvatarUrl),
43
+ }, ...__VLS_functionalComponentArgsRest(__VLS_1));
44
+ }
45
+ else {
46
+ const __VLS_4 = {}.VAvatar;
47
+ /** @type {[typeof __VLS_components.VAvatar, typeof __VLS_components.vAvatar, ]} */ ;
48
+ // @ts-ignore
49
+ const __VLS_5 = __VLS_asFunctionalComponent(__VLS_4, new __VLS_4({
50
+ ...{ class: "primary-avatar" },
51
+ size: (36),
52
+ image: (__VLS_ctx.accountAvatarUrl),
53
+ }));
54
+ const __VLS_6 = __VLS_5({
55
+ ...{ class: "primary-avatar" },
56
+ size: (36),
57
+ image: (__VLS_ctx.accountAvatarUrl),
58
+ }, ...__VLS_functionalComponentArgsRest(__VLS_5));
59
+ }
60
+ if (__VLS_ctx.showSecondAvatar) {
61
+ const __VLS_8 = {}.VAvatar;
62
+ /** @type {[typeof __VLS_components.VAvatar, typeof __VLS_components.vAvatar, ]} */ ;
63
+ // @ts-ignore
64
+ const __VLS_9 = __VLS_asFunctionalComponent(__VLS_8, new __VLS_8({
65
+ ...{ class: "secondary-avatar" },
66
+ size: (28),
67
+ image: (__VLS_ctx.userAvatarUrl),
68
+ }));
69
+ const __VLS_10 = __VLS_9({
70
+ ...{ class: "secondary-avatar" },
71
+ size: (28),
72
+ image: (__VLS_ctx.userAvatarUrl),
73
+ }, ...__VLS_functionalComponentArgsRest(__VLS_9));
80
74
  }
81
- ;
75
+ /** @type {__VLS_StyleScopedClasses['sd-avatar']} */ ;
76
+ /** @type {__VLS_StyleScopedClasses['primary-avatar']} */ ;
77
+ /** @type {__VLS_StyleScopedClasses['primary-avatar']} */ ;
78
+ /** @type {__VLS_StyleScopedClasses['secondary-avatar']} */ ;
79
+ var __VLS_dollars;
82
80
  const __VLS_self = (await import('vue')).defineComponent({
83
81
  setup() {
84
82
  return {
@@ -100,5 +98,5 @@ export default (await import('vue')).defineComponent({
100
98
  showAccount: { type: Boolean, default: false }
101
99
  },
102
100
  });
103
- ;
101
+ ; /* PartiallyEnd: #4569/main.vue */
104
102
  //# sourceMappingURL=user-avatar.vue.js.map