@@ -2,9 +2,7 @@ import type { CSSProperties, JSXComponent, MaybeRef, Ref } from 'vue';
2
2
import type { VBtn , VCheckbox , VIcon , VSelect , VSwitch , VTextField , VTextarea } from 'vuetify/components' ;
3
3
import type { IconOptions , ThemeInstance } from 'vuetify' ;
4
4
import type { EventBusKey } from '@vueuse/core' ;
5
- export type FieldValue = string | boolean | number | object | [ ] | null | {
6
- [ key : string ] : string | unknown ;
7
- } ;
5
+ export type FieldValue = any ;
8
6
export type TimeOpened = Date | null ;
9
7
export type GlobalDensity = VCheckbox [ '$props' ] [ 'density' ] | VSelect [ '$props' ] [ 'density' ] | VSwitch [ '$props' ] [ 'density' ] | VTextField [ '$props' ] [ 'density' ] | VTextarea [ '$props' ] [ 'density' ] ;
10
8
export type GlobalVariant = VSelect [ '$props' ] [ 'variant' ] | VTextField [ '$props' ] [ 'variant' ] | VTextarea [ '$props' ] [ 'variant' ] ;
@@ -42,7 +40,7 @@ export interface SharedProps {
42
40
disabled ?: boolean ;
43
41
emptyText ?: string ;
44
42
error ?: boolean ;
45
- falseValue ?: boolean | string ;
43
+ falseValue ?: boolean | string | undefined ;
46
44
fieldOnly ?: boolean ;
47
45
hideDetails ?: boolean ;
48
46
hideSaveIcon ?: boolean ;
@@ -68,7 +66,7 @@ export interface SharedProps {
68
66
saveIcon ?: string | undefined ;
69
67
saveIconColor ?: string ;
70
68
tableField ?: boolean ;
71
- trueValue ?: boolean | string ;
69
+ trueValue ?: boolean | string | undefined ;
72
70
truncateLength ?: number | undefined ;
73
71
truncateSuffix ?: string | undefined ;
74
72
underlineColor ?: string ;
@@ -126,7 +124,7 @@ export interface DisplayValueProps {
126
124
displayPrependInnerIcon : SharedProps [ 'displayPrependInnerIcon' ] ;
127
125
displayPrependInnerIconColor : SharedProps [ 'displayPrependInnerIconColor' ] ;
128
126
displayValue : any ;
129
- empty ?: MaybeRef < boolean > | boolean | undefined ;
127
+ empty ?: Ref < boolean > | boolean ;
130
128
error ?: MaybeRef < boolean > | boolean | undefined ;
131
129
field : string ;
132
130
underlineColor ?: SharedProps [ 'underlineColor' ] ;
@@ -252,3 +250,9 @@ export interface UseConvertToUnit {
252
250
unit ?: string ;
253
251
} ) : string | void ;
254
252
}
253
+ export interface UseTruthyModelValue {
254
+ ( options : {
255
+ modelValue : any ;
256
+ trueValue ?: any ;
257
+ } ) : boolean ;
258
+ }
0 commit comments