@illinois-grad/grad-vue 2.5.1 → 2.5.2

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.
@@ -241,6 +241,114 @@
241
241
  }
242
242
  ]
243
243
  },
244
+ {
245
+ "kind": "javascript-module",
246
+ "path": "dist/web-components.js",
247
+ "declarations": [
248
+ {
249
+ "kind": "custom-element",
250
+ "name": "GCheckboxGroupElement",
251
+ "tagName": "g-checkbox-group",
252
+ "members": [
253
+ {
254
+ "kind": "field",
255
+ "name": "label",
256
+ "type": {
257
+ "text": "string"
258
+ },
259
+ "optional": true,
260
+ "description": "Legend / accessible label for the group",
261
+ "default": "undefined"
262
+ },
263
+ {
264
+ "kind": "field",
265
+ "name": "options",
266
+ "type": {
267
+ "text": "CheckboxOption[]"
268
+ },
269
+ "optional": false,
270
+ "description": "List of checkbox options"
271
+ },
272
+ {
273
+ "kind": "field",
274
+ "name": "instructions",
275
+ "type": {
276
+ "text": "string"
277
+ },
278
+ "optional": true,
279
+ "description": "Instructions shown below the legend",
280
+ "default": "\"\""
281
+ },
282
+ {
283
+ "kind": "field",
284
+ "name": "errors",
285
+ "type": {
286
+ "text": "string[]"
287
+ },
288
+ "optional": true,
289
+ "description": "Error messages array (supports multiple validation errors)",
290
+ "default": "() => []"
291
+ },
292
+ {
293
+ "kind": "field",
294
+ "name": "required",
295
+ "type": {
296
+ "text": "boolean"
297
+ },
298
+ "optional": true,
299
+ "description": "Mark the group as required",
300
+ "default": "false"
301
+ },
302
+ {
303
+ "kind": "field",
304
+ "name": "radio",
305
+ "type": {
306
+ "text": "boolean"
307
+ },
308
+ "optional": true,
309
+ "description": "Render as radio buttons (single-select)",
310
+ "default": "false"
311
+ },
312
+ {
313
+ "kind": "field",
314
+ "name": "name",
315
+ "type": {
316
+ "text": "string"
317
+ },
318
+ "optional": true,
319
+ "description": "Name for form registration and native input `name` attribute",
320
+ "default": "undefined"
321
+ },
322
+ {
323
+ "kind": "field",
324
+ "name": "formKey",
325
+ "type": {
326
+ "text": "string"
327
+ },
328
+ "optional": true,
329
+ "description": "Form channel key for custom elements mode",
330
+ "default": "undefined"
331
+ },
332
+ {
333
+ "kind": "field",
334
+ "name": "modelValue",
335
+ "type": {
336
+ "text": "string[]"
337
+ },
338
+ "optional": true
339
+ }
340
+ ],
341
+ "events": [
342
+ {
343
+ "name": "change",
344
+ "type": {
345
+ "text": "CustomEvent"
346
+ }
347
+ }
348
+ ]
349
+ }
350
+ ]
351
+ },
244
352
  {
245
353
  "kind": "javascript-module",
246
354
  "path": "dist/web-components.js",
@@ -697,6 +805,139 @@
697
805
  }
698
806
  ]
699
807
  },
808
+ {
809
+ "kind": "javascript-module",
810
+ "path": "dist/web-components.js",
811
+ "declarations": [
812
+ {
813
+ "kind": "custom-element",
814
+ "name": "GFileInputElement",
815
+ "tagName": "g-file-input",
816
+ "members": [
817
+ {
818
+ "kind": "field",
819
+ "name": "label",
820
+ "type": {
821
+ "text": "string"
822
+ },
823
+ "optional": true,
824
+ "description": "Label"
825
+ },
826
+ {
827
+ "kind": "field",
828
+ "name": "instructions",
829
+ "type": {
830
+ "text": "string"
831
+ },
832
+ "optional": true,
833
+ "description": "Instructions",
834
+ "default": "\"\""
835
+ },
836
+ {
837
+ "kind": "field",
838
+ "name": "disabled",
839
+ "type": {
840
+ "text": "boolean"
841
+ },
842
+ "optional": true,
843
+ "description": "Disabled",
844
+ "default": "false"
845
+ },
846
+ {
847
+ "kind": "field",
848
+ "name": "errors",
849
+ "type": {
850
+ "text": "string[]"
851
+ },
852
+ "optional": true,
853
+ "description": "Error messages array (supports multiple validation errors)",
854
+ "default": "() => []"
855
+ },
856
+ {
857
+ "kind": "field",
858
+ "name": "required",
859
+ "type": {
860
+ "text": "boolean"
861
+ },
862
+ "optional": true,
863
+ "description": "Required",
864
+ "default": "false"
865
+ },
866
+ {
867
+ "kind": "field",
868
+ "name": "name",
869
+ "type": {
870
+ "text": "string"
871
+ },
872
+ "optional": true,
873
+ "description": "Name for form registration"
874
+ },
875
+ {
876
+ "kind": "field",
877
+ "name": "formKey",
878
+ "type": {
879
+ "text": "string"
880
+ },
881
+ "optional": true,
882
+ "description": "Form channel key for custom elements mode"
883
+ },
884
+ {
885
+ "kind": "field",
886
+ "name": "accept",
887
+ "type": {
888
+ "text": "string"
889
+ },
890
+ "optional": true,
891
+ "description": "Accepted file types (e.g. \".pdf,.docx\" or \"image/*\")"
892
+ },
893
+ {
894
+ "kind": "field",
895
+ "name": "multiple",
896
+ "type": {
897
+ "text": "boolean"
898
+ },
899
+ "optional": true,
900
+ "description": "Allow multiple file selection",
901
+ "default": "false"
902
+ },
903
+ {
904
+ "kind": "field",
905
+ "name": "maxFileSize",
906
+ "type": {
907
+ "text": "number"
908
+ },
909
+ "optional": true,
910
+ "description": "Maximum file size in bytes for client-side validation"
911
+ },
912
+ {
913
+ "kind": "field",
914
+ "name": "maxFiles",
915
+ "type": {
916
+ "text": "number"
917
+ },
918
+ "optional": true,
919
+ "description": "Maximum number of files allowed for client-side validation"
920
+ },
921
+ {
922
+ "kind": "field",
923
+ "name": "modelValue",
924
+ "type": {
925
+ "text": "File[]"
926
+ },
927
+ "optional": true
928
+ }
929
+ ],
930
+ "events": [
931
+ {
932
+ "name": "change",
933
+ "type": {
934
+ "text": "CustomEvent"
935
+ }
936
+ }
937
+ ]
938
+ }
939
+ ]
940
+ },
700
941
  {
701
942
  "kind": "javascript-module",
702
943
  "path": "dist/web-components.js",
@@ -2176,6 +2417,155 @@
2176
2417
  }
2177
2418
  ]
2178
2419
  },
2420
+ {
2421
+ "kind": "javascript-module",
2422
+ "path": "dist/web-components.js",
2423
+ "declarations": [
2424
+ {
2425
+ "kind": "custom-element",
2426
+ "name": "GTextareaElement",
2427
+ "tagName": "g-textarea",
2428
+ "members": [
2429
+ {
2430
+ "kind": "field",
2431
+ "name": "label",
2432
+ "type": {
2433
+ "text": "string"
2434
+ },
2435
+ "optional": true,
2436
+ "description": "Label",
2437
+ "default": "undefined"
2438
+ },
2439
+ {
2440
+ "kind": "field",
2441
+ "name": "placeholder",
2442
+ "type": {
2443
+ "text": "string"
2444
+ },
2445
+ "optional": true,
2446
+ "description": "Placeholder text",
2447
+ "default": "\"\""
2448
+ },
2449
+ {
2450
+ "kind": "field",
2451
+ "name": "disabled",
2452
+ "type": {
2453
+ "text": "boolean"
2454
+ },
2455
+ "optional": true,
2456
+ "description": "Disabled",
2457
+ "default": "false"
2458
+ },
2459
+ {
2460
+ "kind": "field",
2461
+ "name": "readonly",
2462
+ "type": {
2463
+ "text": "boolean"
2464
+ },
2465
+ "optional": true,
2466
+ "description": "Read-only",
2467
+ "default": "false"
2468
+ },
2469
+ {
2470
+ "kind": "field",
2471
+ "name": "required",
2472
+ "type": {
2473
+ "text": "boolean"
2474
+ },
2475
+ "optional": true,
2476
+ "description": "Required",
2477
+ "default": "false"
2478
+ },
2479
+ {
2480
+ "kind": "field",
2481
+ "name": "errors",
2482
+ "type": {
2483
+ "text": "string[]"
2484
+ },
2485
+ "optional": true,
2486
+ "description": "Error messages array (supports multiple validation errors)",
2487
+ "default": "() => []"
2488
+ },
2489
+ {
2490
+ "kind": "field",
2491
+ "name": "instructions",
2492
+ "type": {
2493
+ "text": "string"
2494
+ },
2495
+ "optional": true,
2496
+ "description": "Instructions",
2497
+ "default": "\"\""
2498
+ },
2499
+ {
2500
+ "kind": "field",
2501
+ "name": "rows",
2502
+ "type": {
2503
+ "text": "number"
2504
+ },
2505
+ "optional": true,
2506
+ "description": "Number of visible text rows",
2507
+ "default": "4"
2508
+ },
2509
+ {
2510
+ "kind": "field",
2511
+ "name": "maxlength",
2512
+ "type": {
2513
+ "text": "number"
2514
+ },
2515
+ "optional": true,
2516
+ "description": "Maximum number of characters allowed",
2517
+ "default": "undefined"
2518
+ },
2519
+ {
2520
+ "kind": "field",
2521
+ "name": "autoGrow",
2522
+ "type": {
2523
+ "text": "boolean"
2524
+ },
2525
+ "optional": true,
2526
+ "description": "Automatically grow the textarea height to fit content",
2527
+ "default": "false"
2528
+ },
2529
+ {
2530
+ "kind": "field",
2531
+ "name": "name",
2532
+ "type": {
2533
+ "text": "string"
2534
+ },
2535
+ "optional": true,
2536
+ "description": "Name for form registration",
2537
+ "default": "undefined"
2538
+ },
2539
+ {
2540
+ "kind": "field",
2541
+ "name": "formKey",
2542
+ "type": {
2543
+ "text": "string"
2544
+ },
2545
+ "optional": true,
2546
+ "description": "Form channel key for custom elements mode",
2547
+ "default": "undefined"
2548
+ },
2549
+ {
2550
+ "kind": "field",
2551
+ "name": "modelValue",
2552
+ "type": {
2553
+ "text": "string | null"
2554
+ },
2555
+ "optional": true
2556
+ }
2557
+ ],
2558
+ "events": [
2559
+ {
2560
+ "name": "change",
2561
+ "type": {
2562
+ "text": "CustomEvent"
2563
+ }
2564
+ }
2565
+ ]
2566
+ }
2567
+ ]
2568
+ },
2179
2569
  {
2180
2570
  "kind": "javascript-module",
2181
2571
  "path": "dist/web-components.js",
@@ -0,0 +1,120 @@
1
+ export interface CheckboxOption {
2
+ label: string;
3
+ value: string;
4
+ disabled?: boolean;
5
+ hint?: string;
6
+ }
7
+ /**
8
+ * A group of checkboxes (or radio buttons) with styling for a label,
9
+ * instructions, and error messages.
10
+ *
11
+ * When more than one option is provided (or `radio` mode is used), a
12
+ * `fieldset` + `legend` provides semantic grouping. With a single checkbox
13
+ * a plain `div` is rendered instead.
14
+ *
15
+ * Each option renders as a native `<input type="checkbox">` (or
16
+ * `type="radio"` when `radio` is `true`) so that keyboard navigation and
17
+ * browser/assistive-technology support come for free.
18
+ *
19
+ * In standard Vue usage, this registers with the nearest parent `GForm` via
20
+ * injection. In custom-elements mode, use matching `form-key` values to pair
21
+ * with a `GForm`.
22
+ *
23
+ * Errors are provided as an array of strings or computed values.
24
+ * Multiple errors will all be displayed.
25
+ */
26
+ declare const _default: typeof __VLS_export;
27
+ export default _default;
28
+ declare const __VLS_export: import("vue").DefineComponent<{
29
+ /**
30
+ * Legend / accessible label for the group
31
+ * @demo Checkbox Group
32
+ */
33
+ label?: string;
34
+ /**
35
+ * List of checkbox options
36
+ */
37
+ options: CheckboxOption[];
38
+ /**
39
+ * Instructions shown below the legend
40
+ * @demo
41
+ */
42
+ instructions?: string;
43
+ /**
44
+ * Error messages array (supports multiple validation errors)
45
+ */
46
+ errors?: string[];
47
+ /**
48
+ * Mark the group as required
49
+ * @demo
50
+ */
51
+ required?: boolean;
52
+ /**
53
+ * Render as radio buttons (single-select)
54
+ * @demo
55
+ */
56
+ radio?: boolean;
57
+ /**
58
+ * Name for form registration and native input `name` attribute
59
+ */
60
+ name?: string;
61
+ /**
62
+ * Form channel key for custom elements mode
63
+ */
64
+ formKey?: string;
65
+ } & {
66
+ modelValue?: string[];
67
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
68
+ "update:modelValue": (value: string[]) => any;
69
+ change: (value: string[]) => any;
70
+ }, string, import("vue").PublicProps, Readonly<{
71
+ /**
72
+ * Legend / accessible label for the group
73
+ * @demo Checkbox Group
74
+ */
75
+ label?: string;
76
+ /**
77
+ * List of checkbox options
78
+ */
79
+ options: CheckboxOption[];
80
+ /**
81
+ * Instructions shown below the legend
82
+ * @demo
83
+ */
84
+ instructions?: string;
85
+ /**
86
+ * Error messages array (supports multiple validation errors)
87
+ */
88
+ errors?: string[];
89
+ /**
90
+ * Mark the group as required
91
+ * @demo
92
+ */
93
+ required?: boolean;
94
+ /**
95
+ * Render as radio buttons (single-select)
96
+ * @demo
97
+ */
98
+ radio?: boolean;
99
+ /**
100
+ * Name for form registration and native input `name` attribute
101
+ */
102
+ name?: string;
103
+ /**
104
+ * Form channel key for custom elements mode
105
+ */
106
+ formKey?: string;
107
+ } & {
108
+ modelValue?: string[];
109
+ }> & Readonly<{
110
+ "onUpdate:modelValue"?: ((value: string[]) => any) | undefined;
111
+ onChange?: ((value: string[]) => any) | undefined;
112
+ }>, {
113
+ label: string;
114
+ radio: boolean;
115
+ name: string;
116
+ instructions: string;
117
+ errors: string[];
118
+ required: boolean;
119
+ formKey: string;
120
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -88,8 +88,8 @@ declare const __VLS_export: import("vue").DefineComponent<{
88
88
  label: string;
89
89
  placeholder: string;
90
90
  name: string;
91
- disabled: boolean;
92
- errors: string[];
93
91
  instructions: string;
92
+ errors: string[];
94
93
  formKey: string;
94
+ disabled: boolean;
95
95
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -88,8 +88,8 @@ declare const __VLS_export: import("vue").DefineComponent<{
88
88
  label: string;
89
89
  placeholder: string;
90
90
  name: string;
91
- disabled: boolean;
92
- errors: string[];
93
91
  instructions: string;
92
+ errors: string[];
94
93
  formKey: string;
94
+ disabled: boolean;
95
95
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -109,10 +109,10 @@ declare const __VLS_export: import("vue").DefineComponent<{
109
109
  }>, {
110
110
  label: string;
111
111
  name: string;
112
- disabled: boolean;
113
- errors: string[];
114
112
  instructions: string;
113
+ errors: string[];
115
114
  formKey: string;
115
+ disabled: boolean;
116
116
  startLabel: string;
117
117
  endLabel: string;
118
118
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -76,7 +76,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
76
76
  label: string;
77
77
  placeholder: string;
78
78
  name: string;
79
- disabled: boolean;
80
- errors: string[];
81
79
  instructions: string;
80
+ errors: string[];
81
+ disabled: boolean;
82
82
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;