/
ComponentProps.ts
343 lines (329 loc) · 9.15 KB
/
ComponentProps.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
import type {Boundary, Middleware, Padding, RootBoundary, Strategy} from '@floating-ui/vue'
import type {ComponentPublicInstance, RendererElement, TransitionProps} from 'vue'
import type {RouteLocationRaw} from 'vue-router'
import type {
AttrsValue,
Breakpoint,
ButtonType,
ButtonVariant,
ClassValue,
ColorExtendables,
ColorVariant,
LinkTarget,
Numberish,
PopoverPlacement,
RadiusElementExtendables,
Size,
TableField,
TableFieldRaw,
TableItem,
TextColorVariant,
TransitionMode,
VerticalAlign,
} from '.'
export interface BLinkProps {
active?: boolean
activeClass?: string
append?: boolean
disabled?: boolean
exactActiveClass?: string
href?: string
icon?: boolean
// noPrefetch: {type: [Boolean, String] as PropType<boolean>, default: false},
opacity?: 10 | 25 | 50 | 75 | 100 | '10' | '25' | '50' | '75' | '100'
opacityHover?: 10 | 25 | 50 | 75 | 100 | '10' | '25' | '50' | '75' | '100'
// prefetch: {type: [Boolean, String] as PropType<boolean>, default: null},
rel?: string
replace?: boolean
routerComponentName?: string
routerTag?: string
target?: LinkTarget
to?: RouteLocationRaw
underlineOffset?: 1 | 2 | 3 | '1' | '2' | '3'
underlineOffsetHover?: 1 | 2 | 3 | '1' | '2' | '3'
underlineOpacity?: 0 | 10 | 25 | 50 | 75 | 100 | '0' | '10' | '25' | '50' | '75' | '100'
underlineOpacityHover?: 0 | 10 | 25 | 50 | 75 | 100 | '0' | '10' | '25' | '50' | '75' | '100'
underlineVariant?: ColorVariant | null
variant?: ColorVariant | null
}
export interface BTransitionProps {
appear?: boolean
mode?: TransitionMode
noFade?: boolean
transProps?: Readonly<TransitionProps>
}
export interface BImgProps extends RadiusElementExtendables {
blank?: boolean
blankColor?: string
block?: boolean
center?: boolean
end?: boolean
fluid?: boolean
fluidGrow?: boolean
height?: Numberish
lazy?: boolean
sizes?: string | readonly string[]
src?: string
srcset?: string | readonly string[]
start?: boolean
thumbnail?: boolean
width?: Numberish
}
export interface BFormProps {
floating?: boolean
id?: string
novalidate?: boolean
validated?: boolean
}
export interface BTableSimpleProps {
bordered?: boolean
borderless?: boolean
borderVariant?: ColorVariant | null
captionTop?: boolean
dark?: boolean
fixed?: boolean
hover?: boolean
id?: string
noBorderCollapse?: boolean
outlined?: boolean
responsive?: boolean | Breakpoint
small?: boolean
stacked?: boolean | Breakpoint
stickyHeader?: boolean
striped?: boolean
stripedColumns?: boolean
tableClass?: ClassValue
variant?: ColorVariant | null
}
export interface BTableLiteProps<T = Record<string, unknown>> extends BTableSimpleProps {
align?: VerticalAlign
caption?: string
captionHtml?: string
detailsTdClass?: ClassValue
emptyFilteredText?: string
emptyText?: string
fieldColumnClass?: // eslint-disable-next-line @typescript-eslint/no-explicit-any
| ((field: TableField<T>) => readonly Record<string, any>[])
| string
// eslint-disable-next-line @typescript-eslint/no-explicit-any
| Readonly<Record<PropertyKey, any>>
// eslint-disable-next-line @typescript-eslint/no-explicit-any
| readonly any[]
fields?: TableFieldRaw<T>[]
footClone?: boolean
footRowVariant?: ColorVariant | null
footVariant?: ColorVariant | null
headRowVariant?: ColorVariant | null
headVariant?: ColorVariant | null
items?: readonly TableItem<T>[]
labelStacked?: boolean
// eslint-disable-next-line @typescript-eslint/no-explicit-any
modelValue?: any
primaryKey?: string
showEmpty?: boolean
tbodyClass?: ClassValue
// eslint-disable-next-line @typescript-eslint/no-explicit-any
tbodyTrAttr?: any
// tbodyTransitionHandlers
// tbodyTransitionProps
tbodyTrClass?: // eslint-disable-next-line @typescript-eslint/no-explicit-any
| ((item: TableItem | null, type: string) => string | readonly any[] | null | undefined)
| string
// eslint-disable-next-line @typescript-eslint/no-explicit-any
| Readonly<Record<PropertyKey, any>>
// eslint-disable-next-line @typescript-eslint/no-explicit-any
| readonly any[]
tfootClass?: ClassValue
tfootTrClass?: ClassValue
theadClass?: ClassValue
theadTrClass?: ClassValue
}
export interface BProgressBarProps extends ColorExtendables {
animated?: boolean
label?: string
labelHtml?: string
max?: Numberish
precision?: Numberish
showProgress?: boolean
showValue?: boolean
striped?: boolean
value?: Numberish
}
export interface BInputGroupAddonProps {
isText?: boolean
}
export interface BFormFeedbackSharedProps {
ariaLive?: string
forceShow?: boolean
id?: string
role?: string
state?: boolean | null
tag?: string
text?: string
tooltip?: boolean
}
export interface BDropdownProps {
ariaLabel?: string
autoClose?: boolean | 'inside' | 'outside'
boundary?: Boundary | RootBoundary
boundaryPadding?: Padding
center?: boolean
container?: string | ComponentPublicInstance<HTMLElement> | HTMLElement | undefined
disabled?: boolean
dropend?: boolean
dropstart?: boolean
dropup?: boolean
end?: boolean
floatingMiddleware?: Middleware[]
id?: string
isNav?: boolean
lazy?: boolean
menuClass?: ClassValue
modelValue?: boolean
noCaret?: boolean
noFlip?: boolean
noShift?: boolean
noSize?: boolean
offset?:
| number
| string
| Readonly<{mainAxis?: number; crossAxis?: number; alignmentAxis?: number | null}>
role?: string
size?: Size
split?: boolean
splitButtonType?: ButtonType
splitClass?: ClassValue
splitDisabled?: boolean
splitHref?: string
splitTo?: RouteLocationRaw
splitVariant?: ButtonVariant | null
strategy?: Strategy
text?: string
toggleClass?: ClassValue
toggleText?: string
variant?: ButtonVariant | null
}
export interface BToastProps extends ColorExtendables, Omit<BLinkProps, 'routerTag'> {
body?: string
bodyClass?: ClassValue
headerClass?: ClassValue
headerTag?: string
id?: string
interval?: Numberish
isStatus?: boolean
modelValue?: boolean | number
noCloseButton?: boolean
noFade?: boolean
noHoverPause?: boolean
progressProps?: Omit<BProgressBarProps, 'label' | 'labelHtml' | 'max' | 'value'>
showOnPause?: boolean
solid?: boolean
title?: string
toastClass?: ClassValue
transProps?: Readonly<BTransitionProps>
}
export interface BPopoverProps {
boundary?: Boundary | RootBoundary
boundaryPadding?: Padding
click?: boolean
container?: string | Readonly<ComponentPublicInstance> | Readonly<HTMLElement> | undefined
content?: string
customClass?: ClassValue
delay?:
| number
| Readonly<{
show: number
hide: number
}>
floatingMiddleware?: Middleware[]
hide?: boolean
html?: boolean
id?: string
inline?: boolean
manual?: boolean
modelValue?: boolean
noAutoClose?: boolean
noFade?: boolean
noFlip?: boolean
noHide?: boolean
noShift?: boolean
noSize?: boolean
noninteractive?: boolean
offset?: Numberish | null
placement?: PopoverPlacement
persistent?: boolean
realtime?: boolean
reference?: string | Readonly<ComponentPublicInstance> | Readonly<HTMLElement> | null
strategy?: Strategy
target?: string | Readonly<ComponentPublicInstance> | Readonly<HTMLElement> | null
title?: string
tooltip?: boolean
variant?: ColorVariant | null
}
export interface BTooltipProps extends Omit<BPopoverProps, 'tooltip'> {
interactive?: boolean
}
export interface BCardHeadFootProps extends ColorExtendables {
borderVariant?: ColorVariant | null
html?: string
tag?: string
text?: string
}
export interface BModalProps {
autoFocus?: boolean
autoFocusButton?: 'ok' | 'cancel' | 'close'
body?: string
backdropVariant?: ColorVariant | null
bodyAttrs?: Readonly<AttrsValue>
bodyBgVariant?: ColorVariant | null
bodyClass?: ClassValue
bodyScrolling?: boolean
bodyTextVariant?: TextColorVariant | null
bodyVariant?: ColorVariant | null
busy?: boolean
buttonSize?: Size
cancelDisabled?: boolean
cancelTitle?: string
cancelVariant?: ButtonVariant | null
centered?: boolean
contentClass?: ClassValue
dialogClass?: ClassValue
footerBgVariant?: ColorVariant | null
footerBorderVariant?: ColorVariant | null
footerClass?: ClassValue
footerTextVariant?: TextColorVariant | null
footerVariant?: ColorVariant | null
fullscreen?: boolean | Breakpoint
headerBgVariant?: ColorVariant | null
headerBorderVariant?: ColorVariant | null
headerClass?: ClassValue
headerCloseClass?: ClassValue
headerCloseLabel?: string
headerCloseVariant?: ButtonVariant | null
headerTextVariant?: TextColorVariant | null
headerVariant?: ColorVariant | null
hideBackdrop?: boolean
hideFooter?: boolean
hideHeader?: boolean
hideHeaderClose?: boolean
id?: string
lazy?: boolean
modalClass?: ClassValue
modelValue?: boolean
noCloseOnBackdrop?: boolean
noCloseOnEsc?: boolean
noFade?: boolean
okDisabled?: boolean
okOnly?: boolean
okTitle?: string
okVariant?: ButtonVariant | null
scrollable?: boolean
size?: Size | 'xl'
teleportDisabled?: boolean
teleportTo?: string | Readonly<RendererElement> | null | undefined
title?: string
titleClass?: ClassValue
titleVisibilityHiddenOnly?: boolean
titleTag?: string
transProps?: Readonly<BTransitionProps>
}