@data-fair/lib-vuetify 1.6.0 → 1.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@data-fair/lib-vuetify",
3
- "version": "1.6.0",
3
+ "version": "1.6.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": [
@@ -2,7 +2,7 @@
2
2
  <v-alert
3
3
  v-if="notif"
4
4
  class="ui-notif-alert"
5
- v-bind="alertProps"
5
+ v-bind="fullAlertProps"
6
6
  >
7
7
  <p>{{ notif.msg }}</p>
8
8
  <p
@@ -18,7 +18,10 @@ import { computed } from 'vue'
18
18
  import { type UiNotif, useUiNotif } from '@data-fair/lib-vue/ui-notif.js'
19
19
 
20
20
  const {notif, alertProps} = defineProps({
21
- notif: Object as () => UiNotif,
21
+ notif: {
22
+ type: Object as () => UiNotif,
23
+ default: null
24
+ },
22
25
  alertProps: {
23
26
  type: Object,
24
27
  default () { return {} }
@@ -1,17 +1,24 @@
1
1
  import { type UiNotif } from '@data-fair/lib-vue/ui-notif.js';
2
2
  declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
3
- notif: () => UiNotif;
3
+ notif: {
4
+ type: () => UiNotif;
5
+ default: null;
6
+ };
4
7
  alertProps: {
5
8
  type: ObjectConstructor;
6
9
  default(): {};
7
10
  };
8
11
  }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
- notif: () => UiNotif;
12
+ notif: {
13
+ type: () => UiNotif;
14
+ default: null;
15
+ };
10
16
  alertProps: {
11
17
  type: ObjectConstructor;
12
18
  default(): {};
13
19
  };
14
20
  }>> & Readonly<{}>, {
21
+ notif: UiNotif;
15
22
  alertProps: Record<string, any>;
16
23
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
17
24
  export default _default;
@@ -2,7 +2,10 @@
2
2
  import { computed } from 'vue';
3
3
  const { defineProps, defineSlots, defineEmits, defineExpose, defineModel, defineOptions, withDefaults, } = await import('vue');
4
4
  const __VLS_props = defineProps({
5
- notif: Object,
5
+ notif: {
6
+ type: Object,
7
+ default: null
8
+ },
6
9
  alertProps: {
7
10
  type: Object,
8
11
  default() { return {}; }
@@ -18,7 +21,10 @@ const fullAlertProps = computed(() => {
18
21
  });
19
22
  const __VLS_fnComponent = (await import('vue')).defineComponent({
20
23
  props: {
21
- notif: Object,
24
+ notif: {
25
+ type: Object,
26
+ default: null
27
+ },
22
28
  alertProps: {
23
29
  type: Object,
24
30
  default() { return {}; }
@@ -48,8 +54,8 @@ function __VLS_template() {
48
54
  const __VLS_0 = __VLS_resolvedLocalAndGlobalComponents.VAlert;
49
55
  /** @type { [typeof __VLS_components.VAlert, typeof __VLS_components.vAlert, typeof __VLS_components.VAlert, typeof __VLS_components.vAlert, ] } */
50
56
  // @ts-ignore
51
- const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({ ...{ class: ("ui-notif-alert") }, ...(__VLS_ctx.alertProps), }));
52
- const __VLS_2 = __VLS_1({ ...{ class: ("ui-notif-alert") }, ...(__VLS_ctx.alertProps), }, ...__VLS_functionalComponentArgsRest(__VLS_1));
57
+ const __VLS_1 = __VLS_asFunctionalComponent(__VLS_0, new __VLS_0({ ...{ class: ("ui-notif-alert") }, ...(__VLS_ctx.fullAlertProps), }));
58
+ const __VLS_2 = __VLS_1({ ...{ class: ("ui-notif-alert") }, ...(__VLS_ctx.fullAlertProps), }, ...__VLS_functionalComponentArgsRest(__VLS_1));
53
59
  __VLS_elementAsFunction(__VLS_intrinsicElements.p, __VLS_intrinsicElements.p)({});
54
60
  (__VLS_ctx.notif.msg);
55
61
  if (__VLS_ctx.notif.type === 'error') {
@@ -76,11 +82,14 @@ const __VLS_self = (await import('vue')).defineComponent({
76
82
  setup() {
77
83
  return {
78
84
  notif: notif,
79
- alertProps: alertProps,
85
+ fullAlertProps: fullAlertProps,
80
86
  };
81
87
  },
82
88
  props: {
83
- notif: Object,
89
+ notif: {
90
+ type: Object,
91
+ default: null
92
+ },
84
93
  alertProps: {
85
94
  type: Object,
86
95
  default() { return {}; }
@@ -92,7 +101,10 @@ export default (await import('vue')).defineComponent({
92
101
  return {};
93
102
  },
94
103
  props: {
95
- notif: Object,
104
+ notif: {
105
+ type: Object,
106
+ default: null
107
+ },
96
108
  alertProps: {
97
109
  type: Object,
98
110
  default() { return {}; }
package/vite.d.ts CHANGED
@@ -6,6 +6,7 @@ export declare const autoImports: (string | {
6
6
  '@data-fair/lib-vue/ui-notif.js': string[];
7
7
  '@data-fair/lib-vue/fetch.js': string[];
8
8
  '@data-fair/lib-vue/ws.js': string[];
9
+ '@data-fair/lib-vue/async-action.js': string[];
9
10
  } | {
10
11
  '@data-fair/lib-vuetify/personal-menu.vue': string[][];
11
12
  '@data-fair/lib-vuetify/tutorial-alert.vue': string[][];