@@ -7,13 +7,15 @@ import type {
7
7
VTextField ,
8
8
VTextarea ,
9
9
} from 'vuetify/components' ;
10
+ import type { EventBusKey } from '@vueuse/core' ;
10
11
import {
11
12
AxiosError ,
12
13
} from 'axios' ;
13
14
14
15
15
- // -------------------------------------------------- Vuetify Types //
16
- export type Density = null | 'default' | 'comfortable' | 'compact' ;
16
+ // -------------------------------------------------- Types //
17
+ export type FieldValue = string | boolean | number | object | [ ] | null | { [ key : string ] : string | unknown ; } ;
18
+ export type TimeOpened = Date | null ;
17
19
18
20
19
21
// -------------------------------------------------- Props //
@@ -62,8 +64,6 @@ export interface SharedProps {
62
64
valueColor ?: string ;
63
65
}
64
66
65
-
66
-
67
67
// Component Props //
68
68
export interface VInlineCheckboxProps extends Omit < SharedProps ,
69
69
'autofocus' | 'hideSaveIcon' | 'loadingIcon' | 'loadingIconColor' | 'saveButtonColor' | 'saveButtonSize' | 'saveIcon' | 'saveIconColor' | 'saveButtonTitle' | 'saveButtonVariant'
@@ -108,6 +108,7 @@ export interface VInlineTextFieldProps extends Omit<SharedProps,
108
108
variant ?: VTextField [ '$props' ] [ 'variant' ] ;
109
109
}
110
110
111
+ // -------------------------------------------------- Components //
111
112
export type BooleanIcons = Required < Pick < SharedProps , 'iconFalse' | 'iconFalseColor' | 'iconFalseTitle' | 'iconTrue' | 'iconTrueColor' | 'iconTrueTitle' > > ;
112
113
113
114
export interface SaveFieldButtons extends Required < Pick < SharedProps ,
@@ -133,11 +134,6 @@ export interface SaveFieldButtons extends Required<Pick<SharedProps,
133
134
} ;
134
135
135
136
136
- // -------------------------------------------------- Methods //
137
- export type FieldValue = string | boolean | number | object | [ ] | null | { [ key : string ] : string | unknown ; } ;
138
- export type TimeOpened = Date | null ;
139
-
140
-
141
137
// -------------------------------------------------- Composables //
142
138
export interface UseToggleField {
143
139
(
@@ -170,3 +166,7 @@ export interface UseSaveValue {
170
166
value : FieldValue ,
171
167
) : Promise < { [ key : string ] : string | unknown ; } | undefined > ;
172
168
}
169
+
170
+
171
+ // -------------------------------------------------- Close Siblings Event Bus //
172
+ export const CloseSiblingsBus : EventBusKey < TimeOpened > = Symbol ( 'identifier' ) ;
0 commit comments