@bobbykim/mcl-forms 0.11.1 → 0.12.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/dist/index.d.ts CHANGED
@@ -3,116 +3,204 @@ import { ColorPalette } from '@bobbykim/manguito-theme';
3
3
  import { ComponentOptionsMixin } from 'vue';
4
4
  import { ComponentProvideOptions } from 'vue';
5
5
  import { ComponentPublicInstance } from 'vue';
6
+ import { ComputedRef } from 'vue';
6
7
  import { DefineComponent } from 'vue';
7
8
  import { InputType } from '@bobbykim/manguito-theme';
8
9
  import { PublicProps } from 'vue';
9
10
 
10
11
  declare const __VLS_component: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
+ invalid: boolean;
13
+ required: boolean;
14
+ groupLabel: boolean;
15
+ disabled: boolean;
11
16
  textColor: ColorPalette;
12
17
  textSize: BodyText;
13
18
  textBold: boolean;
14
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
19
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
15
20
 
16
- declare const __VLS_component_2: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
21
+ declare const __VLS_component_2: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
22
+ "update:modelValue": (value: File | null) => any;
23
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
24
+ "onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
25
+ }>, {
26
+ invalid: boolean;
27
+ required: boolean;
28
+ disabled: boolean;
29
+ textColor: ColorPalette;
30
+ bgColor: ColorPalette;
31
+ borderColor: ColorPalette;
32
+ showBorder: boolean;
33
+ showShadow: boolean;
34
+ rounded: boolean;
35
+ accept: string;
36
+ buttonText: string;
37
+ buttonTextColor: ColorPalette;
38
+ buttonColor: ColorPalette;
39
+ showClear: boolean;
40
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {
41
+ inputRef: HTMLInputElement;
42
+ }, HTMLDivElement>;
43
+
44
+ declare const __VLS_component_3: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
45
  "update:modelValue": (value: string) => any;
18
- }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
46
+ }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
19
47
  "onUpdate:modelValue"?: ((value: string) => any) | undefined;
20
48
  }>, {
21
- textColor: ColorPalette;
49
+ invalid: boolean;
22
50
  type: InputType;
23
51
  required: boolean;
24
- showBorder: boolean;
25
- borderColor: ColorPalette;
26
- rounded: boolean;
52
+ disabled: boolean;
53
+ textColor: ColorPalette;
54
+ placeholder: string;
27
55
  bgColor: ColorPalette;
56
+ borderColor: ColorPalette;
57
+ showBorder: boolean;
28
58
  showShadow: boolean;
59
+ rounded: boolean;
29
60
  showHighlight: boolean;
30
61
  highlightColor: ColorPalette;
31
- placeholder: string;
32
- invalid: boolean;
33
62
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
34
63
 
35
- declare const __VLS_component_3: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
64
+ declare const __VLS_component_4: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
36
65
  "update:modelValue": (value: string | number | null) => any;
37
66
  } & {
38
67
  select: (value: string | number) => any;
39
- clear: () => any;
40
68
  open: () => any;
41
69
  close: () => any;
70
+ clear: () => any;
42
71
  changed: (value: string | number) => any;
43
- }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
72
+ }, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
44
73
  onSelect?: ((value: string | number) => any) | undefined;
45
74
  "onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
46
- onClear?: (() => any) | undefined;
47
75
  onOpen?: (() => any) | undefined;
48
76
  onClose?: (() => any) | undefined;
77
+ onClear?: (() => any) | undefined;
49
78
  onChanged?: ((value: string | number) => any) | undefined;
50
79
  }>, {
51
- textColor: ColorPalette;
80
+ invalid: boolean;
52
81
  required: boolean;
53
- showBorder: boolean;
54
- borderColor: ColorPalette;
55
- rounded: boolean;
82
+ disabled: boolean;
83
+ textColor: ColorPalette;
84
+ placeholder: string;
56
85
  bgColor: ColorPalette;
86
+ borderColor: ColorPalette;
87
+ showBorder: boolean;
57
88
  showShadow: boolean;
89
+ rounded: boolean;
58
90
  showHighlight: boolean;
59
91
  highlightColor: ColorPalette;
60
- placeholder: string;
61
- invalid: boolean;
62
92
  iconColor: ColorPalette;
63
93
  optionHoverColor: ColorPalette;
64
94
  noMatchText: string;
65
95
  }, {}, {}, {}, string, ComponentProvideOptions, false, {
66
- componentRef: HTMLDivElement;
67
- inputBox: HTMLInputElement;
68
- dropdownRef: HTMLUListElement;
96
+ rootRef: HTMLDivElement;
97
+ inputRef: HTMLInputElement;
98
+ dropdownRef: HTMLDivElement;
69
99
  }, HTMLDivElement>;
70
100
 
101
+ declare const __VLS_component_5: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
102
+ "update:modelValue": (value: string) => any;
103
+ }, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
104
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
105
+ }>, {
106
+ invalid: boolean;
107
+ required: boolean;
108
+ disabled: boolean;
109
+ textColor: ColorPalette;
110
+ placeholder: string;
111
+ bgColor: ColorPalette;
112
+ borderColor: ColorPalette;
113
+ showBorder: boolean;
114
+ showShadow: boolean;
115
+ rounded: boolean;
116
+ showHighlight: boolean;
117
+ highlightColor: ColorPalette;
118
+ rows: number;
119
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
120
+
71
121
  declare type __VLS_Props = {
72
- labelFor: string;
122
+ /** Drives both the label's `for` and the descendant control's id. */
123
+ fieldId?: string;
124
+ /** Render `<fieldset>`/`<legend>` instead of `<label>`, for radio and checkbox sets. */
125
+ groupLabel?: boolean;
126
+ label?: string;
127
+ helpText?: string;
128
+ /**
129
+ * Presence of this prop (or the `invalid-feedback` slot) is what makes the
130
+ * group own the error region, and it is decided once at setup. Bind it to a
131
+ * string — use `''` for "no error yet" — not to a possibly-undefined value:
132
+ * `:invalid-feedback="errors.email"` with `errors.email` undefined at mount
133
+ * leaves the group not owning the region, and its message never renders.
134
+ */
135
+ invalidFeedback?: string;
136
+ invalid?: boolean;
137
+ required?: boolean;
138
+ disabled?: boolean;
73
139
  textColor?: ColorPalette;
74
140
  textSize?: BodyText;
75
141
  textBold?: boolean;
76
- label?: string;
77
142
  };
78
143
 
79
144
  declare type __VLS_Props_2 = {
80
- id: string;
145
+ id?: string;
146
+ name?: string;
147
+ accept?: string;
148
+ buttonText?: string;
149
+ buttonTextColor?: ColorPalette;
150
+ buttonColor?: ColorPalette;
81
151
  showBorder?: boolean;
82
152
  borderColor?: ColorPalette;
83
153
  rounded?: boolean;
84
154
  bgColor?: ColorPalette;
85
- buttonText?: string;
86
- buttonTextColor?: ColorPalette;
87
- buttonColor?: ColorPalette;
88
- showShadow?: boolean;
89
155
  textColor?: ColorPalette;
156
+ showShadow?: boolean;
90
157
  showClear?: boolean;
158
+ invalidFeedback?: string;
159
+ invalid?: boolean;
91
160
  required?: boolean;
92
- accept?: string;
161
+ disabled?: boolean;
93
162
  };
94
163
 
95
164
  declare type __VLS_Props_3 = {
96
- id: string;
97
- radioSize?: InputSizeType;
165
+ id?: string;
166
+ name?: string;
167
+ size?: InputSizeType;
98
168
  bgColor?: ColorPalette;
99
- checkedColor?: ColorPalette;
169
+ checkedBgColor?: ColorPalette;
170
+ indicatorColor?: ColorPalette;
171
+ /** Also the focus-ring colour, via useToggleControl. */
172
+ borderColor?: ColorPalette;
100
173
  showShadow?: boolean;
101
174
  value?: string | number;
102
- checked?: boolean;
175
+ invalid?: boolean;
176
+ required?: boolean;
177
+ disabled?: boolean;
103
178
  };
104
179
 
105
180
  declare type __VLS_Props_4 = {
106
- id: string;
107
- sliderColor?: ColorPalette;
108
- onColor?: ColorPalette;
109
- offColor?: ColorPalette;
110
- switchSize?: InputSizeType;
181
+ id?: string;
182
+ name?: string;
183
+ size?: InputSizeType;
184
+ /** The track colour when off. */
185
+ bgColor?: ColorPalette;
186
+ /** The track colour when on. */
187
+ checkedBgColor?: ColorPalette;
188
+ /** The sliding knob. */
189
+ indicatorColor?: ColorPalette;
190
+ borderColor?: ColorPalette;
191
+ showShadow?: boolean;
111
192
  rounded?: boolean;
193
+ invalid?: boolean;
194
+ required?: boolean;
195
+ disabled?: boolean;
112
196
  };
113
197
 
114
198
  declare type __VLS_Props_5 = {
115
- id: string;
199
+ id?: string;
200
+ name?: string;
201
+ type?: InputType;
202
+ placeholder?: string;
203
+ autocomplete?: string;
116
204
  showBorder?: boolean;
117
205
  borderColor?: ColorPalette;
118
206
  rounded?: boolean;
@@ -120,19 +208,21 @@ declare type __VLS_Props_5 = {
120
208
  highlightColor?: ColorPalette;
121
209
  textColor?: ColorPalette;
122
210
  bgColor?: ColorPalette;
123
- placeholder?: string;
124
- type?: InputType;
125
211
  showShadow?: boolean;
126
- required?: boolean;
127
- invalid?: boolean;
128
212
  invalidFeedback?: string;
129
213
  minLength?: number;
130
214
  maxLength?: number;
131
215
  pattern?: string;
216
+ invalid?: boolean;
217
+ required?: boolean;
218
+ disabled?: boolean;
132
219
  };
133
220
 
134
221
  declare type __VLS_Props_6 = {
135
- id: string;
222
+ options: SelectOptions;
223
+ id?: string;
224
+ name?: string;
225
+ placeholder?: string;
136
226
  showBorder?: boolean;
137
227
  borderColor?: ColorPalette;
138
228
  rounded?: boolean;
@@ -141,42 +231,49 @@ declare type __VLS_Props_6 = {
141
231
  textColor?: ColorPalette;
142
232
  bgColor?: ColorPalette;
143
233
  iconColor?: ColorPalette;
144
- placeholder?: string;
145
- showShadow?: boolean;
146
- required?: boolean;
147
- invalid?: boolean;
148
- options: SelectOptions;
149
234
  optionHoverColor?: ColorPalette;
235
+ showShadow?: boolean;
150
236
  noMatchText?: string;
237
+ invalidFeedback?: string;
238
+ invalid?: boolean;
239
+ required?: boolean;
240
+ disabled?: boolean;
151
241
  };
152
242
 
153
243
  declare type __VLS_Props_7 = {
154
- id: string;
244
+ id?: string;
245
+ name?: string;
246
+ placeholder?: string;
247
+ rows?: number;
155
248
  showBorder?: boolean;
156
249
  borderColor?: ColorPalette;
157
250
  rounded?: boolean;
158
251
  showHighlight?: boolean;
159
252
  highlightColor?: ColorPalette;
160
- bgColor?: ColorPalette;
161
253
  textColor?: ColorPalette;
162
- placeholder?: string;
254
+ bgColor?: ColorPalette;
163
255
  showShadow?: boolean;
164
- required?: boolean;
256
+ invalidFeedback?: string;
165
257
  invalid?: boolean;
166
- rows?: number;
258
+ required?: boolean;
259
+ disabled?: boolean;
167
260
  };
168
261
 
169
262
  declare type __VLS_Props_8 = {
170
- id: string;
171
- inputSize?: InputSizeType;
263
+ id?: string;
264
+ name?: string;
265
+ size?: InputSizeType;
172
266
  bgColor?: ColorPalette;
173
267
  checkedBgColor?: ColorPalette;
174
- checkColor?: ColorPalette;
268
+ indicatorColor?: ColorPalette;
175
269
  borderColor?: ColorPalette;
176
270
  showShadow?: boolean;
177
271
  rounded?: boolean;
272
+ /** Submitted value when checked; native form behaviour only. */
178
273
  value?: string | number;
179
- checked?: boolean;
274
+ invalid?: boolean;
275
+ required?: boolean;
276
+ disabled?: boolean;
180
277
  };
181
278
 
182
279
  declare type __VLS_PublicProps = {
@@ -184,82 +281,124 @@ declare type __VLS_PublicProps = {
184
281
  } & __VLS_Props_2;
185
282
 
186
283
  declare type __VLS_PublicProps_2 = {
284
+ modelValue?: string | number | null;
285
+ } & __VLS_Props_3;
286
+
287
+ declare type __VLS_PublicProps_3 = {
187
288
  modelValue?: boolean;
188
289
  } & __VLS_Props_4;
189
290
 
190
- declare type __VLS_PublicProps_3 = {
291
+ declare type __VLS_PublicProps_4 = {
191
292
  modelValue?: string;
192
293
  } & __VLS_Props_5;
193
294
 
194
- declare type __VLS_PublicProps_4 = {
295
+ declare type __VLS_PublicProps_5 = {
195
296
  modelValue?: string | number | null;
196
297
  } & __VLS_Props_6;
197
298
 
198
- declare type __VLS_PublicProps_5 = {
299
+ declare type __VLS_PublicProps_6 = {
199
300
  modelValue?: string;
200
301
  } & __VLS_Props_7;
201
302
 
202
- declare type __VLS_PublicProps_6 = {
303
+ declare type __VLS_PublicProps_7 = {
203
304
  modelValue?: boolean;
204
305
  } & __VLS_Props_8;
205
306
 
206
307
  declare function __VLS_template(): {
207
308
  attrs: Partial<{}>;
208
309
  slots: Readonly<{
209
- default: any;
210
- label: any;
310
+ default?: () => unknown;
311
+ label?: () => unknown;
312
+ help?: () => unknown;
313
+ 'invalid-feedback'?: () => unknown;
211
314
  }> & {
212
- default: any;
213
- label: any;
315
+ default?: () => unknown;
316
+ label?: () => unknown;
317
+ help?: () => unknown;
318
+ 'invalid-feedback'?: () => unknown;
214
319
  };
215
320
  refs: {};
216
- rootEl: HTMLDivElement;
321
+ rootEl: any;
217
322
  };
218
323
 
219
324
  declare function __VLS_template_2(): {
220
325
  attrs: Partial<{}>;
221
- slots: {
222
- 'invalid-feedback'?(_: {}): any;
326
+ slots: Readonly<{
327
+ 'invalid-feedback'?: () => unknown;
328
+ }> & {
329
+ 'invalid-feedback'?: () => unknown;
330
+ };
331
+ refs: {
332
+ inputRef: HTMLInputElement;
223
333
  };
224
- refs: {};
225
334
  rootEl: HTMLDivElement;
226
335
  };
227
336
 
228
337
  declare function __VLS_template_3(): {
229
338
  attrs: Partial<{}>;
230
339
  slots: Readonly<{
231
- dropdown(props: {
232
- optionClick: (e: Event, option: string | SelectOptionType) => void;
340
+ 'invalid-feedback'?: () => unknown;
341
+ }> & {
342
+ 'invalid-feedback'?: () => unknown;
343
+ };
344
+ refs: {};
345
+ rootEl: HTMLDivElement;
346
+ };
347
+
348
+ declare function __VLS_template_4(): {
349
+ attrs: Partial<{}>;
350
+ slots: Readonly<{
351
+ dropdown?(props: {
233
352
  options: (string | SelectOptionType)[];
234
353
  activeIndex: number;
354
+ optionClick: (option: string | SelectOptionType) => void;
235
355
  setRef: (el: Element | ComponentPublicInstance | null, index: number) => void;
236
356
  hover: (index: number) => void;
237
- }): any;
238
- 'no-match': any;
357
+ optionId: (index: number) => string;
358
+ }): unknown;
359
+ 'no-match'?: () => unknown;
360
+ 'invalid-feedback'?: () => unknown;
239
361
  }> & {
240
- dropdown(props: {
241
- optionClick: (e: Event, option: string | SelectOptionType) => void;
362
+ dropdown?(props: {
242
363
  options: (string | SelectOptionType)[];
243
364
  activeIndex: number;
365
+ optionClick: (option: string | SelectOptionType) => void;
244
366
  setRef: (el: Element | ComponentPublicInstance | null, index: number) => void;
245
367
  hover: (index: number) => void;
246
- }): any;
247
- 'no-match': any;
368
+ optionId: (index: number) => string;
369
+ }): unknown;
370
+ 'no-match'?: () => unknown;
371
+ 'invalid-feedback'?: () => unknown;
248
372
  };
249
373
  refs: {
250
- componentRef: HTMLDivElement;
251
- inputBox: HTMLInputElement;
252
- dropdownRef: HTMLUListElement;
374
+ rootRef: HTMLDivElement;
375
+ inputRef: HTMLInputElement;
376
+ dropdownRef: HTMLDivElement;
253
377
  };
254
378
  rootEl: HTMLDivElement;
255
379
  };
256
380
 
381
+ declare function __VLS_template_5(): {
382
+ attrs: Partial<{}>;
383
+ slots: Readonly<{
384
+ 'invalid-feedback'?: () => unknown;
385
+ }> & {
386
+ 'invalid-feedback'?: () => unknown;
387
+ };
388
+ refs: {};
389
+ rootEl: HTMLDivElement;
390
+ };
391
+
257
392
  declare type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
258
393
 
259
394
  declare type __VLS_TemplateResult_2 = ReturnType<typeof __VLS_template_2>;
260
395
 
261
396
  declare type __VLS_TemplateResult_3 = ReturnType<typeof __VLS_template_3>;
262
397
 
398
+ declare type __VLS_TemplateResult_4 = ReturnType<typeof __VLS_template_4>;
399
+
400
+ declare type __VLS_TemplateResult_5 = ReturnType<typeof __VLS_template_5>;
401
+
263
402
  declare type __VLS_WithTemplateSlots<T, S> = T & {
264
403
  new (): {
265
404
  $slots: S;
@@ -278,102 +417,147 @@ declare type __VLS_WithTemplateSlots_3<T, S> = T & {
278
417
  };
279
418
  };
280
419
 
420
+ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
421
+ new (): {
422
+ $slots: S;
423
+ };
424
+ };
425
+
426
+ declare type __VLS_WithTemplateSlots_5<T, S> = T & {
427
+ new (): {
428
+ $slots: S;
429
+ };
430
+ };
431
+
432
+ /** The resolved field state a control renders from. */
433
+ export declare interface FieldContext {
434
+ /**
435
+ * Resolved once at setup (explicit prop -> shared group id in
436
+ * single-control mode -> a freshly generated id). Changing the source
437
+ * prop after mount has no effect — this is a stable DOM id, not a
438
+ * reactive value.
439
+ */
440
+ id: string;
441
+ /**
442
+ * Reactive because a group's own `name` prop can change after setup, and
443
+ * an object literal built from it (as MclFormGroup must build, since
444
+ * `hasHelpText`/`ownsFeedback` are derived from slot/prop presence rather
445
+ * than being props themselves) would otherwise snapshot the value.
446
+ *
447
+ * `undefined` on a control that has neither its own `name` nor a group to
448
+ * inherit one from. There is deliberately no id fallback: emitting a
449
+ * generated `name` into a native form submission is not something a
450
+ * consumer could opt out of. A control that genuinely needs a fallback
451
+ * (MclInputRadio, where `name` is what groups the set) supplies it itself.
452
+ */
453
+ name: ComputedRef<string | undefined>;
454
+ errorId: string;
455
+ descriptionId: string | undefined;
456
+ invalid: ComputedRef<boolean>;
457
+ required: ComputedRef<boolean>;
458
+ disabled: ComputedRef<boolean>;
459
+ /** description and error ids in reading order, or undefined if neither applies. */
460
+ describedBy: ComputedRef<string | undefined>;
461
+ /**
462
+ * True when the surrounding MclFormGroup renders the error region itself, so
463
+ * the control must not render its own. Not reactive: it is decided at setup
464
+ * from the *presence* of the group's error prop or slot, not from its value.
465
+ */
466
+ feedbackOwnedByGroup: boolean;
467
+ /**
468
+ * True when the group renders a `<fieldset>`/`<legend>` around multiple
469
+ * controls (radio/checkbox groups), so descendants must not all claim the
470
+ * group's element id. False when the group renders a single `<label for>`
471
+ * bound to one control, which must reuse the group's id verbatim.
472
+ */
473
+ isGroupLabel: boolean;
474
+ }
475
+
476
+ /**
477
+ * Props every field control accepts on its own, independent of any
478
+ * MclFormGroup around it. `invalid`, `required` and `disabled` are
479
+ * deliberately `boolean | undefined`: `undefined` means "inherit from the
480
+ * group", which a `false` default would make indistinguishable.
481
+ */
482
+ export declare interface FieldOwnProps {
483
+ id?: string;
484
+ name?: string;
485
+ invalid?: boolean;
486
+ required?: boolean;
487
+ disabled?: boolean;
488
+ }
489
+
281
490
  export declare type InputSizeType = 'sm' | 'md' | 'lg';
282
491
 
283
- export declare const MclCheckbox: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
492
+ export declare const MclCheckbox: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
284
493
  "update:modelValue": (value: boolean) => any;
285
494
  } & {
286
- "checkbox-click": (event: Event, checked: boolean, value: string | number) => any;
287
- }, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
495
+ change: (event: Event) => any;
496
+ }, string, PublicProps, Readonly<__VLS_PublicProps_7> & Readonly<{
288
497
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
289
- "onCheckbox-click"?: ((event: Event, checked: boolean, value: string | number) => any) | undefined;
498
+ onChange?: ((event: Event) => any) | undefined;
290
499
  }>, {
291
- borderColor: ColorPalette;
292
- rounded: boolean;
500
+ invalid: boolean;
501
+ required: boolean;
502
+ disabled: boolean;
503
+ size: InputSizeType;
293
504
  bgColor: ColorPalette;
505
+ borderColor: ColorPalette;
294
506
  showShadow: boolean;
295
- checked: boolean;
296
- inputSize: InputSizeType;
507
+ rounded: boolean;
508
+ indicatorColor: ColorPalette;
297
509
  checkedBgColor: ColorPalette;
298
- checkColor: ColorPalette;
299
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
300
- checkboxRef: HTMLInputElement;
301
- }, HTMLDivElement>;
510
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
302
511
 
303
512
  export declare const MclFormGroup: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
304
513
 
305
- export declare const MclInputFile: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
306
- "update:modelValue": (value: File | null) => any;
307
- }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
308
- "onUpdate:modelValue"?: ((value: File | null) => any) | undefined;
309
- }>, {
310
- textColor: ColorPalette;
311
- required: boolean;
312
- showBorder: boolean;
313
- borderColor: ColorPalette;
314
- rounded: boolean;
315
- bgColor: ColorPalette;
316
- buttonText: string;
317
- buttonTextColor: ColorPalette;
318
- buttonColor: ColorPalette;
319
- showShadow: boolean;
320
- showClear: boolean;
321
- accept: string;
322
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
323
- inputRef: HTMLInputElement;
324
- }, HTMLDivElement>;
514
+ export declare const MclInputFile: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
325
515
 
326
- export declare const MclInputRadio: DefineComponent<__VLS_Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
327
- change: (event: Event, value: string | number) => any;
328
- }, string, PublicProps, Readonly<__VLS_Props_3> & Readonly<{
329
- onChange?: ((event: Event, value: string | number) => any) | undefined;
516
+ export declare const MclInputRadio: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
517
+ "update:modelValue": (value: string | number | null) => any;
518
+ } & {
519
+ change: (event: Event) => any;
520
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
521
+ "onUpdate:modelValue"?: ((value: string | number | null) => any) | undefined;
522
+ onChange?: ((event: Event) => any) | undefined;
330
523
  }>, {
524
+ invalid: boolean;
525
+ required: boolean;
526
+ value: string | number;
527
+ disabled: boolean;
528
+ size: InputSizeType;
331
529
  bgColor: ColorPalette;
530
+ borderColor: ColorPalette;
332
531
  showShadow: boolean;
333
- radioSize: InputSizeType;
334
- checkedColor: ColorPalette;
335
- value: string | number;
336
- checked: boolean;
337
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
338
- radioRef: HTMLInputElement;
339
- }, HTMLDivElement>;
532
+ indicatorColor: ColorPalette;
533
+ checkedBgColor: ColorPalette;
534
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
340
535
 
341
- export declare const MclInputSwitch: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
536
+ export declare const MclInputSwitch: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
342
537
  "update:modelValue": (value: boolean) => any;
343
- }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
538
+ } & {
539
+ change: (event: Event) => any;
540
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
344
541
  "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
542
+ onChange?: ((event: Event) => any) | undefined;
345
543
  }>, {
544
+ invalid: boolean;
545
+ required: boolean;
546
+ disabled: boolean;
547
+ size: InputSizeType;
548
+ bgColor: ColorPalette;
549
+ borderColor: ColorPalette;
550
+ showShadow: boolean;
346
551
  rounded: boolean;
347
- sliderColor: ColorPalette;
348
- onColor: ColorPalette;
349
- offColor: ColorPalette;
350
- switchSize: InputSizeType;
351
- }, {}, {}, {}, string, ComponentProvideOptions, false, {
352
- inputRef: HTMLInputElement;
353
- }, HTMLDivElement>;
552
+ indicatorColor: ColorPalette;
553
+ checkedBgColor: ColorPalette;
554
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
354
555
 
355
- export declare const MclInputText: __VLS_WithTemplateSlots_2<typeof __VLS_component_2, __VLS_TemplateResult_2["slots"]>;
556
+ export declare const MclInputText: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
356
557
 
357
- export declare const MclSelect: __VLS_WithTemplateSlots_3<typeof __VLS_component_3, __VLS_TemplateResult_3["slots"]>;
558
+ export declare const MclSelect: __VLS_WithTemplateSlots_4<typeof __VLS_component_4, __VLS_TemplateResult_4["slots"]>;
358
559
 
359
- export declare const MclTextArea: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
360
- "update:modelValue": (value: string) => any;
361
- }, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
362
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
363
- }>, {
364
- textColor: ColorPalette;
365
- required: boolean;
366
- showBorder: boolean;
367
- borderColor: ColorPalette;
368
- rounded: boolean;
369
- bgColor: ColorPalette;
370
- showShadow: boolean;
371
- showHighlight: boolean;
372
- highlightColor: ColorPalette;
373
- placeholder: string;
374
- invalid: boolean;
375
- rows: number;
376
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLDivElement>;
560
+ export declare const MclTextArea: __VLS_WithTemplateSlots_5<typeof __VLS_component_5, __VLS_TemplateResult_5["slots"]>;
377
561
 
378
562
  export declare type SelectOptions = SelectOptionType[] | string[];
379
563