eco-vue-js 0.10.36 → 0.10.37

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.
Files changed (34) hide show
  1. package/dist/components/ActionsBar/WActionsBar.vue.d.ts +1 -0
  2. package/dist/components/ActionsBar/WActionsBar.vue.d.ts.map +1 -1
  3. package/dist/components/ActionsBar/WActionsBar.vue.js +4 -3
  4. package/dist/components/Button/WButtonAction.vue.d.ts +1 -0
  5. package/dist/components/Button/WButtonAction.vue.d.ts.map +1 -1
  6. package/dist/components/Button/WButtonAction.vue.js +17 -6
  7. package/dist/components/Form/WForm.vue.d.ts +4 -0
  8. package/dist/components/Form/WForm.vue.d.ts.map +1 -1
  9. package/dist/components/Form/WForm.vue.js +11 -2
  10. package/dist/components/Form/WFormValidator.vue.d.ts +2 -0
  11. package/dist/components/Form/WFormValidator.vue.d.ts.map +1 -1
  12. package/dist/components/Form/WFormValidator.vue.js +24 -25
  13. package/dist/components/Form/models/injection.d.ts +1 -0
  14. package/dist/components/Form/models/injection.d.ts.map +1 -1
  15. package/dist/components/Form/models/injection.js +2 -1
  16. package/dist/components/Form/use/useFormValueMap.d.ts.map +1 -1
  17. package/dist/components/Form/use/useFormValueMap.js +2 -6
  18. package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts +3 -1
  19. package/dist/components/FormAsync/WFormAsyncToggle.vue.d.ts.map +1 -1
  20. package/dist/components/FormAsync/WFormAsyncToggle.vue.js +10 -2
  21. package/dist/components/Input/WInput.vue.js +1 -1
  22. package/dist/components/Modal/WModalStepper.vue.d.ts +40 -8
  23. package/dist/components/Modal/WModalStepper.vue.d.ts.map +1 -1
  24. package/dist/components/Modal/WModalWrapper.vue.js +3 -3
  25. package/dist/components/Tabs/WTabs.vue.d.ts +48 -24
  26. package/dist/components/Tabs/WTabs.vue.d.ts.map +1 -1
  27. package/dist/components/Tabs/WTabs.vue.js +2 -2
  28. package/dist/components/Tabs/components/TabItem.vue.d.ts +20 -4
  29. package/dist/components/Tabs/components/TabItem.vue.d.ts.map +1 -1
  30. package/dist/components/Toggle/WToggle.vue.d.ts +3 -1
  31. package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
  32. package/dist/components/Toggle/WToggle.vue.js +10 -6
  33. package/package.json +1 -1
  34. package/tailwind-base/plugins/default.ts +1 -0
@@ -19,6 +19,7 @@ declare function __VLS_template(): {
19
19
  readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
20
20
  readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
21
21
  readonly "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
22
+ readonly "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
22
23
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
23
24
  $attrs: {
24
25
  [x: string]: unknown;
@@ -32,7 +33,7 @@ declare function __VLS_template(): {
32
33
  $root: import('vue').ComponentPublicInstance | null;
33
34
  $parent: import('vue').ComponentPublicInstance | null;
34
35
  $host: Element | null;
35
- $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void);
36
+ $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void) & ((event: "update:has-shown", value: boolean) => void);
36
37
  $el: any;
37
38
  $options: import('vue').ComponentOptionsBase<Readonly<{
38
39
  name?: string;
@@ -42,12 +43,15 @@ declare function __VLS_template(): {
42
43
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
43
44
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
44
45
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
46
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
45
47
  }>, {
46
48
  isValid: import('vue').ComputedRef<boolean>;
47
49
  hasChanges: import('vue').Ref<boolean, boolean>;
48
50
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
49
51
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
50
52
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
53
+ hasShown: import('vue').Ref<boolean, boolean>;
54
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
51
55
  validate: import('vue').Ref<(silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>;
52
56
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>>;
53
57
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -60,6 +64,7 @@ declare function __VLS_template(): {
60
64
  "update:is-valid": (value: boolean | undefined) => any;
61
65
  "update:has-changes": (value: boolean) => any;
62
66
  "update:has-value": (value: boolean | null) => any;
67
+ "update:has-shown": (value: boolean) => any;
63
68
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
64
69
  beforeCreate?: (() => void) | (() => void)[];
65
70
  created?: (() => void) | (() => void)[];
@@ -79,8 +84,7 @@ declare function __VLS_template(): {
79
84
  };
80
85
  $forceUpdate: () => void;
81
86
  $nextTick: typeof import('vue').nextTick;
82
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (
83
- /** @type { typeof __VLS_ctx.button } */ ...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
87
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
84
88
  } & Readonly<{}> & Omit<Readonly<{
85
89
  name?: string;
86
90
  title?: string;
@@ -89,12 +93,15 @@ declare function __VLS_template(): {
89
93
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
90
94
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
91
95
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
92
- }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
96
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
97
+ }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "hasShown" | "hasShownMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
93
98
  isValid: import('vue').ComputedRef<boolean>;
94
99
  hasChanges: import('vue').Ref<boolean, boolean>;
95
100
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
96
101
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
97
102
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
103
+ hasShown: import('vue').Ref<boolean, boolean>;
104
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
98
105
  validate: import('vue').Ref<(silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>;
99
106
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>>;
100
107
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -205,8 +212,7 @@ declare function __VLS_template(): {
205
212
  };
206
213
  $forceUpdate: () => void;
207
214
  $nextTick: typeof import('vue').nextTick;
208
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (
209
- /** @type { typeof __VLS_ctx.button } */ ...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
215
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
210
216
  } & Readonly<{}> & Omit<Readonly<{
211
217
  active: boolean;
212
218
  index: number;
@@ -278,6 +284,7 @@ declare function __VLS_template(): {
278
284
  readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
279
285
  readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
280
286
  readonly "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
287
+ readonly "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
281
288
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
282
289
  $attrs: {
283
290
  [x: string]: unknown;
@@ -291,7 +298,7 @@ declare function __VLS_template(): {
291
298
  $root: import('vue').ComponentPublicInstance | null;
292
299
  $parent: import('vue').ComponentPublicInstance | null;
293
300
  $host: Element | null;
294
- $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void);
301
+ $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void) & ((event: "update:has-shown", value: boolean) => void);
295
302
  $el: any;
296
303
  $options: import('vue').ComponentOptionsBase<Readonly<{
297
304
  name?: string;
@@ -301,12 +308,15 @@ declare function __VLS_template(): {
301
308
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
302
309
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
303
310
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
311
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
304
312
  }>, {
305
313
  isValid: import('vue').ComputedRef<boolean>;
306
314
  hasChanges: import('vue').Ref<boolean, boolean>;
307
315
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
308
316
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
309
317
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
318
+ hasShown: import('vue').Ref<boolean, boolean>;
319
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
310
320
  validate: import('vue').Ref<(silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>;
311
321
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>>;
312
322
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -319,6 +329,7 @@ declare function __VLS_template(): {
319
329
  "update:is-valid": (value: boolean | undefined) => any;
320
330
  "update:has-changes": (value: boolean) => any;
321
331
  "update:has-value": (value: boolean | null) => any;
332
+ "update:has-shown": (value: boolean) => any;
322
333
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
323
334
  beforeCreate?: (() => void) | (() => void)[];
324
335
  created?: (() => void) | (() => void)[];
@@ -338,8 +349,7 @@ declare function __VLS_template(): {
338
349
  };
339
350
  $forceUpdate: () => void;
340
351
  $nextTick: typeof import('vue').nextTick;
341
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (
342
- /** @type { typeof __VLS_ctx.button } */ ...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
352
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
343
353
  } & Readonly<{}> & Omit<Readonly<{
344
354
  name?: string;
345
355
  title?: string;
@@ -348,12 +358,15 @@ declare function __VLS_template(): {
348
358
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
349
359
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
350
360
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
351
- }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
361
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
362
+ }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "hasShown" | "hasShownMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
352
363
  isValid: import('vue').ComputedRef<boolean>;
353
364
  hasChanges: import('vue').Ref<boolean, boolean>;
354
365
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
355
366
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
356
367
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
368
+ hasShown: import('vue').Ref<boolean, boolean>;
369
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
357
370
  validate: import('vue').Ref<(silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>;
358
371
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>>;
359
372
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -411,8 +424,7 @@ declare function __VLS_template(): {
411
424
  };
412
425
  $forceUpdate: () => void;
413
426
  $nextTick: typeof import('vue').nextTick;
414
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (
415
- /** @type { typeof __VLS_ctx.button } */ ...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
427
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
416
428
  } & Readonly<{}> & Omit<Readonly<{
417
429
  name: string;
418
430
  title: string;
@@ -473,6 +485,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
473
485
  readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
474
486
  readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
475
487
  readonly "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
488
+ readonly "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
476
489
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
477
490
  $attrs: {
478
491
  [x: string]: unknown;
@@ -486,7 +499,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
486
499
  $root: import('vue').ComponentPublicInstance | null;
487
500
  $parent: import('vue').ComponentPublicInstance | null;
488
501
  $host: Element | null;
489
- $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void);
502
+ $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void) & ((event: "update:has-shown", value: boolean) => void);
490
503
  $el: any;
491
504
  $options: import('vue').ComponentOptionsBase<Readonly<{
492
505
  name?: string;
@@ -496,12 +509,15 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
496
509
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
497
510
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
498
511
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
512
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
499
513
  }>, {
500
514
  isValid: import('vue').ComputedRef<boolean>;
501
515
  hasChanges: import('vue').Ref<boolean, boolean>;
502
516
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
503
517
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
504
518
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
519
+ hasShown: import('vue').Ref<boolean, boolean>;
520
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
505
521
  validate: import('vue').Ref<(silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>;
506
522
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>>;
507
523
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -514,6 +530,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
514
530
  "update:is-valid": (value: boolean | undefined) => any;
515
531
  "update:has-changes": (value: boolean) => any;
516
532
  "update:has-value": (value: boolean | null) => any;
533
+ "update:has-shown": (value: boolean) => any;
517
534
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
518
535
  beforeCreate?: (() => void) | (() => void)[];
519
536
  created?: (() => void) | (() => void)[];
@@ -533,8 +550,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
533
550
  };
534
551
  $forceUpdate: () => void;
535
552
  $nextTick: typeof import('vue').nextTick;
536
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (
537
- /** @type { typeof __VLS_ctx.button } */ ...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
553
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
538
554
  } & Readonly<{}> & Omit<Readonly<{
539
555
  name?: string;
540
556
  title?: string;
@@ -543,12 +559,15 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
543
559
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
544
560
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
545
561
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
546
- }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
562
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
563
+ }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "hasShown" | "hasShownMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
547
564
  isValid: import('vue').ComputedRef<boolean>;
548
565
  hasChanges: import('vue').Ref<boolean, boolean>;
549
566
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
550
567
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
551
568
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
569
+ hasShown: import('vue').Ref<boolean, boolean>;
570
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
552
571
  validate: import('vue').Ref<(silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>;
553
572
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>>;
554
573
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -659,8 +678,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
659
678
  };
660
679
  $forceUpdate: () => void;
661
680
  $nextTick: typeof import('vue').nextTick;
662
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (
663
- /** @type { typeof __VLS_ctx.button } */ ...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
681
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
664
682
  } & Readonly<{}> & Omit<Readonly<{
665
683
  active: boolean;
666
684
  index: number;
@@ -732,6 +750,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
732
750
  readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
733
751
  readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
734
752
  readonly "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
753
+ readonly "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
735
754
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
736
755
  $attrs: {
737
756
  [x: string]: unknown;
@@ -745,7 +764,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
745
764
  $root: import('vue').ComponentPublicInstance | null;
746
765
  $parent: import('vue').ComponentPublicInstance | null;
747
766
  $host: Element | null;
748
- $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void);
767
+ $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void) & ((event: "update:has-shown", value: boolean) => void);
749
768
  $el: any;
750
769
  $options: import('vue').ComponentOptionsBase<Readonly<{
751
770
  name?: string;
@@ -755,12 +774,15 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
755
774
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
756
775
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
757
776
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
777
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
758
778
  }>, {
759
779
  isValid: import('vue').ComputedRef<boolean>;
760
780
  hasChanges: import('vue').Ref<boolean, boolean>;
761
781
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
762
782
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
763
783
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
784
+ hasShown: import('vue').Ref<boolean, boolean>;
785
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
764
786
  validate: import('vue').Ref<(silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>;
765
787
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>>;
766
788
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -773,6 +795,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
773
795
  "update:is-valid": (value: boolean | undefined) => any;
774
796
  "update:has-changes": (value: boolean) => any;
775
797
  "update:has-value": (value: boolean | null) => any;
798
+ "update:has-shown": (value: boolean) => any;
776
799
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
777
800
  beforeCreate?: (() => void) | (() => void)[];
778
801
  created?: (() => void) | (() => void)[];
@@ -792,8 +815,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
792
815
  };
793
816
  $forceUpdate: () => void;
794
817
  $nextTick: typeof import('vue').nextTick;
795
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (
796
- /** @type { typeof __VLS_ctx.button } */ ...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
818
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
797
819
  } & Readonly<{}> & Omit<Readonly<{
798
820
  name?: string;
799
821
  title?: string;
@@ -802,12 +824,15 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
802
824
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
803
825
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
804
826
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
805
- }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
827
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
828
+ }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "hasShown" | "hasShownMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
806
829
  isValid: import('vue').ComputedRef<boolean>;
807
830
  hasChanges: import('vue').Ref<boolean, boolean>;
808
831
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
809
832
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
810
833
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
834
+ hasShown: import('vue').Ref<boolean, boolean>;
835
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
811
836
  validate: import('vue').Ref<(silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>;
812
837
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../Form/models/utils').ValidatePath) => string | undefined>>;
813
838
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -865,8 +890,7 @@ declare const __VLS_component: import('vue').DefineComponent<TabsProps, {
865
890
  };
866
891
  $forceUpdate: () => void;
867
892
  $nextTick: typeof import('vue').nextTick;
868
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (
869
- /** @type { typeof __VLS_ctx.button } */ ...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
893
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
870
894
  } & Readonly<{}> & Omit<Readonly<{
871
895
  name: string;
872
896
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"WTabs.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/WTabs.vue"],"names":[],"mappings":"AAgIA;AAAA,OAiZO,KAAK,EAAgB,SAAS,EAAC,MAAM,SAAS,CAAA;AAErD,OAAO,EAAC,KAAK,aAAa,EAAsJ,MAAM,KAAK,CAAA;AAE3L,OAAO,KAAK,MAAM,6BAA6B,CAAA;AAwR/C,iBAAS,cAAc;WAyRT,OAAO,IAA6B;;iBA9RvC,MAAM,IAAI;;iBAAV,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAiGlB,GAAE;YACL,wCAAwC,CAAA,GAAtC,yBAAyB,GAAG,6DACP,GAAG;;;;;;;;;;;;;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CAAC;sBAIvI,MAAM,KAAsE,UAAU,CAAC,iBAAiB,CAAC,OAAO,KAAK,CAAC,CAAC,WAAW,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA4LzG,GAAG,8CAA8C,GAAG,yBACnF,GAAG,6DACG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAFsB,GAAG,8CAA8C,GAAG,yBACnF,GAAG,6DACG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAFsB,GAAG,8CAA8C,GAAG,yBACnF,GAAG,6DACG,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCAFsB,GAAG,8CAA8C,GAAG,yBACnF,GAAG,6DACG,GAAG;;;;;;;;;;;;;;;;;;OA4O5B,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -49,7 +49,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
49
49
  const indicatorStyle = ref(void 0);
50
50
  const minHeight = ref(0);
51
51
  const tabItemRef = useTemplateRef("tabItem");
52
- const currentIsValid = computed(() => typeof formRef.value?.errorMessageMap[current.value] !== "string");
52
+ const currentIsValid = computed(() => formRef.value?.hasShownMap[current.value] === false || typeof formRef.value?.errorMessageMap[current.value] !== "string");
53
53
  const hasNoValueFirst = computed(() => {
54
54
  if (!props.stepper) return 0;
55
55
  const index = defaultSlotsKeys.value.findIndex((item) => formRef.value?.hasValueMap[item] === false);
@@ -226,7 +226,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
226
226
  title: slot.props.title,
227
227
  icon: slot.props.icon,
228
228
  "has-changes": unref(formRef)?.hasChangesMap[slot.props.name] === true,
229
- "has-error": typeof unref(formRef)?.errorMessageMap[slot.props.name] === "string",
229
+ "has-error": unref(formRef)?.hasShownMap[slot.props.name] === true && typeof unref(formRef)?.errorMessageMap[slot.props.name] === "string",
230
230
  "has-value": unref(formRef)?.hasValueMap[slot.props.name] === true,
231
231
  first: defaultSlots.value.indexOf(slot) === 0,
232
232
  last: defaultSlots.value.indexOf(slot) === defaultSlots.value.length - 1,
@@ -21,6 +21,7 @@ declare function __VLS_template(): {
21
21
  readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
22
22
  readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
23
23
  readonly "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
24
+ readonly "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
24
25
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
25
26
  $attrs: {
26
27
  [x: string]: unknown;
@@ -34,7 +35,7 @@ declare function __VLS_template(): {
34
35
  $root: import('vue').ComponentPublicInstance | null;
35
36
  $parent: import('vue').ComponentPublicInstance | null;
36
37
  $host: Element | null;
37
- $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void);
38
+ $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void) & ((event: "update:has-shown", value: boolean) => void);
38
39
  $el: any;
39
40
  $options: import('vue').ComponentOptionsBase<Readonly<{
40
41
  name?: string;
@@ -44,12 +45,15 @@ declare function __VLS_template(): {
44
45
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
45
46
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
46
47
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
48
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
47
49
  }>, {
48
50
  isValid: import('vue').ComputedRef<boolean>;
49
51
  hasChanges: import('vue').Ref<boolean, boolean>;
50
52
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
51
53
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
52
54
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
55
+ hasShown: import('vue').Ref<boolean, boolean>;
56
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
53
57
  validate: import('vue').Ref<(silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>;
54
58
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>>;
55
59
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -62,6 +66,7 @@ declare function __VLS_template(): {
62
66
  "update:is-valid": (value: boolean | undefined) => any;
63
67
  "update:has-changes": (value: boolean) => any;
64
68
  "update:has-value": (value: boolean | null) => any;
69
+ "update:has-shown": (value: boolean) => any;
65
70
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
66
71
  beforeCreate?: (() => void) | (() => void)[];
67
72
  created?: (() => void) | (() => void)[];
@@ -90,12 +95,15 @@ declare function __VLS_template(): {
90
95
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
91
96
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
92
97
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
93
- }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
98
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
99
+ }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "hasShown" | "hasShownMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
94
100
  isValid: import('vue').ComputedRef<boolean>;
95
101
  hasChanges: import('vue').Ref<boolean, boolean>;
96
102
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
97
103
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
98
104
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
105
+ hasShown: import('vue').Ref<boolean, boolean>;
106
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
99
107
  validate: import('vue').Ref<(silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>;
100
108
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>>;
101
109
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -135,6 +143,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
135
143
  readonly "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
136
144
  readonly "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
137
145
  readonly "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
146
+ readonly "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
138
147
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
139
148
  $attrs: {
140
149
  [x: string]: unknown;
@@ -148,7 +157,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
148
157
  $root: import('vue').ComponentPublicInstance | null;
149
158
  $parent: import('vue').ComponentPublicInstance | null;
150
159
  $host: Element | null;
151
- $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void);
160
+ $emit: ((event: "update:is-valid", value: boolean | undefined) => void) & ((event: "update:has-changes", value: boolean) => void) & ((event: "update:has-value", value: boolean | null) => void) & ((event: "update:has-shown", value: boolean) => void);
152
161
  $el: any;
153
162
  $options: import('vue').ComponentOptionsBase<Readonly<{
154
163
  name?: string;
@@ -158,12 +167,15 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
158
167
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
159
168
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
160
169
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
170
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
161
171
  }>, {
162
172
  isValid: import('vue').ComputedRef<boolean>;
163
173
  hasChanges: import('vue').Ref<boolean, boolean>;
164
174
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
165
175
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
166
176
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
177
+ hasShown: import('vue').Ref<boolean, boolean>;
178
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
167
179
  validate: import('vue').Ref<(silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>;
168
180
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>>;
169
181
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -176,6 +188,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
176
188
  "update:is-valid": (value: boolean | undefined) => any;
177
189
  "update:has-changes": (value: boolean) => any;
178
190
  "update:has-value": (value: boolean | null) => any;
191
+ "update:has-shown": (value: boolean) => any;
179
192
  }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
180
193
  beforeCreate?: (() => void) | (() => void)[];
181
194
  created?: (() => void) | (() => void)[];
@@ -204,12 +217,15 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
204
217
  "onUpdate:is-valid"?: ((value: boolean | undefined) => any) | undefined;
205
218
  "onUpdate:has-changes"?: ((value: boolean) => any) | undefined;
206
219
  "onUpdate:has-value"?: ((value: boolean | null) => any) | undefined;
207
- }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
220
+ "onUpdate:has-shown"?: ((value: boolean) => any) | undefined;
221
+ }>, "errorMessage" | "hasChanges" | "isValid" | "hasChangesMap" | "hasValue" | "hasValueMap" | "hasShown" | "hasShownMap" | "validate" | "validateMap" | "invalidate" | "invalidateMap" | "initModel" | "initModelMap" | "errorMessageMap"> & import('vue').ShallowUnwrapRef<{
208
222
  isValid: import('vue').ComputedRef<boolean>;
209
223
  hasChanges: import('vue').Ref<boolean, boolean>;
210
224
  hasChangesMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
211
225
  hasValue: import('vue').Ref<boolean | null, boolean | null>;
212
226
  hasValueMap: import('vue').Ref<Record<string, boolean | null>, Record<string, boolean | null>>;
227
+ hasShown: import('vue').Ref<boolean, boolean>;
228
+ hasShownMap: import('vue').Ref<Record<string, boolean>, Record<string, boolean>>;
213
229
  validate: import('vue').Ref<(silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>;
214
230
  validateMap: import('vue').Ref<Record<string, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>, Record<string, (silent?: boolean, path?: import('../../Form/models/utils').ValidatePath) => string | undefined>>;
215
231
  invalidate: import('vue').Ref<(messages: Record<string, string | string[] | undefined>) => void, (messages: Record<string, string | string[] | undefined>) => void>;
@@ -1 +1 @@
1
- {"version":3,"file":"TabItem.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/Tabs/components/TabItem.vue"],"names":[],"mappings":"AAYA;AA2DA,OAAO,EAAC,QAAQ,EAA+B,MAAM,KAAK,CAAA;AAM1D,KAAK,WAAW,GAAG;IACjB,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,OAAO,CAAA;CACnB,CAAC;AAyCF,iBAAS,cAAc;WAoDT,OAAO,IAA6B;;yBAXrB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAmDyzoB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAnC98oB;AAUD,KAAK,oBAAoB,GAAG,UAA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;;;;;;;;;;;;;;;;;;;;;;;;;oCAuH8zoB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAf78oB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -5,7 +5,9 @@ declare const _default: <Value extends boolean | null = boolean>(__VLS_props: No
5
5
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ToggleProps<Value> & Partial<{}>> & import('vue').PublicProps;
6
6
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
7
7
  attrs: any;
8
- slots: {};
8
+ slots: {
9
+ title?(_: {}): any;
10
+ };
9
11
  emit: (e: "update:modelValue", value: Value) => void;
10
12
  }>) => import('vue').VNode & {
11
13
  __ctx?: Awaited<typeof __VLS_setup>;
@@ -1 +1 @@
1
- {"version":3,"file":"WToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Toggle/WToggle.vue"],"names":[],"mappings":"AA6EA;AAiJA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;yBASvB,KAAK,SAAS,OAAO,GAAG,IAAI,GAAG,OAAO,EACtD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,eAAe,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ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8M4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createElementVNode, createCommentVNode, toDisplayString, unref, createBlock, resolveDynamicComponent } from 'vue';
1
+ import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, createElementVNode, createCommentVNode, renderSlot, createTextVNode, toDisplayString, unref, createBlock, resolveDynamicComponent } from 'vue';
2
2
  import WSpinner from '../Spinner/WSpinner.vue.js';
3
3
  import { Notify } from '../../utils/Notify.js';
4
4
  import { useSemanticTypeBackgroundMap, SemanticType } from '../../utils/SemanticType.js';
@@ -75,22 +75,26 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
75
75
  "cursor-pointer": !_ctx.readonly && !_ctx.loading && !_ctx.disabled,
76
76
  "cursor-auto select-text": _ctx.readonly,
77
77
  "select-none": !_ctx.readonly,
78
- "grid-cols-[1fr,auto]": _ctx.title && !_ctx.rightLabel,
79
- "grid-cols-[auto,1fr]": _ctx.title && _ctx.rightLabel,
80
- "gap-4": _ctx.title,
78
+ "grid-cols-[1fr,auto]": (_ctx.title || _ctx.$slots.title) && !_ctx.rightLabel,
79
+ "grid-cols-[auto,1fr]": (_ctx.title || _ctx.$slots.title) && _ctx.rightLabel,
80
+ "gap-4": _ctx.title || _ctx.$slots.title,
81
81
  "justify-center": _ctx.center
82
82
  }]),
83
83
  disabled: _ctx.disabled || _ctx.readonly,
84
84
  onClick: updateModelValue
85
85
  }, [
86
- _ctx.title ? (openBlock(), createElementBlock("div", {
86
+ _ctx.title || _ctx.$slots.title ? (openBlock(), createElementBlock("div", {
87
87
  key: 0,
88
88
  class: normalizeClass(["text-accent font-semibold", {
89
89
  "order-1": _ctx.rightLabel,
90
90
  "text-xs": _ctx.small,
91
91
  "text-base": !_ctx.small
92
92
  }])
93
- }, toDisplayString(_ctx.title), 3)) : createCommentVNode("", true),
93
+ }, [
94
+ renderSlot(_ctx.$slots, "title", {}, () => [
95
+ createTextVNode(toDisplayString(_ctx.title), 1)
96
+ ])
97
+ ], 2)) : createCommentVNode("", true),
94
98
  createElementVNode("div", _hoisted_2, [
95
99
  createElementVNode("div", {
96
100
  class: normalizeClass(["width-10 p-0.75 h-full rounded-full bg-[200%_auto] [background-position:right]", {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.10.36",
7
+ "version": "0.10.37",
8
8
  "scripts": {
9
9
  "build": "run-p type-check \"build-only {@}\" --",
10
10
  "dev": "vite build --mode development --watch",
@@ -441,6 +441,7 @@ const pluginDefault = plugin(function ({matchUtilities, addVariant, addUtilities
441
441
  {
442
442
  'w-skeleton-h': value => ({'--skeleton-height': value}),
443
443
  'w-input-h': value => ({'--w-input-height': value}),
444
+ 'w-input-min-h': value => ({'--w-input-min-height': value}),
444
445
  'w-textarea-h': value => ({'--w-textarea-height': value}),
445
446
  'w-button-h': value => ({'--w-button-height': value}),
446
447
  },