@nysds/components 1.11.4 → 1.13.0
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/README.md +3 -1
- package/dist/.vscode/vscode.html-custom-data.json +183 -95
- package/dist/custom-elements.json +1570 -635
- package/dist/nysds.es.js +3414 -1837
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +286 -187
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-accordion/src/nys-accordion.d.ts +20 -5
- package/dist/packages/nys-accordion/src/nys-accordion.figma.d.ts +1 -0
- package/dist/packages/nys-accordion/src/nys-accordionitem.d.ts +20 -2
- package/dist/packages/nys-alert/src/nys-alert.d.ts +40 -8
- package/dist/packages/nys-alert/src/nys-alert.figma.d.ts +1 -0
- package/dist/packages/nys-avatar/src/nys-avatar.d.ts +25 -2
- package/dist/packages/nys-avatar/src/nys-avatar.figma.d.ts +1 -0
- package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +19 -0
- package/dist/packages/nys-backtotop/src/nys-backtotop.figma.d.ts +1 -0
- package/dist/packages/nys-badge/src/nys-badge.d.ts +22 -8
- package/dist/packages/nys-badge/src/nys-badge.figma.d.ts +1 -0
- package/dist/packages/nys-button/src/nys-button.d.ts +28 -20
- package/dist/packages/nys-button/src/nys-button.figma.d.ts +1 -0
- package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +35 -9
- package/dist/packages/nys-checkbox/src/nys-checkbox.figma.d.ts +1 -0
- package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +31 -8
- package/dist/packages/nys-datepicker/src/index.d.ts +1 -0
- package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +116 -0
- package/dist/packages/nys-datepicker/src/nys-datepicker.figma.d.ts +1 -0
- package/dist/packages/nys-divider/src/nys-divider.d.ts +4 -0
- package/dist/packages/nys-divider/src/nys-divider.figma.d.ts +1 -0
- package/dist/packages/nys-errormessage/src/nys-errormessage.d.ts +9 -1
- package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +34 -5
- package/dist/packages/nys-fileinput/src/nys-fileinput.figma.d.ts +1 -0
- package/dist/packages/nys-fileinput/src/nys-fileitem.d.ts +4 -0
- package/dist/packages/nys-globalfooter/src/nys-globalfooter.d.ts +20 -3
- package/dist/packages/nys-globalfooter/src/nys-globalfooter.figma.d.ts +1 -0
- package/dist/packages/nys-globalheader/src/nys-global.logo.d.ts +2 -0
- package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +26 -8
- package/dist/packages/nys-globalheader/src/nys-globalheader.figma.d.ts +1 -0
- package/dist/packages/nys-icon/src/nys-icon.d.ts +12 -4
- package/dist/packages/nys-icon/src/nys-icon.figma.d.ts +1 -0
- package/dist/packages/nys-label/src/nys-label.d.ts +5 -0
- package/dist/packages/nys-modal/src/nys-modal.d.ts +25 -7
- package/dist/packages/nys-modal/src/nys-modal.figma.d.ts +1 -0
- package/dist/packages/nys-pagination/src/nys-pagination.d.ts +21 -3
- package/dist/packages/nys-pagination/src/nys-pagination.figma.d.ts +1 -0
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +28 -7
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.figma.d.ts +1 -0
- package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +32 -11
- package/dist/packages/nys-select/src/nys-select.d.ts +36 -10
- package/dist/packages/nys-select/src/nys-select.figma.d.ts +1 -0
- package/dist/packages/nys-skipnav/src/nys-skipnav.d.ts +13 -1
- package/dist/packages/nys-skipnav/src/nys-skipnav.figma.d.ts +1 -0
- package/dist/packages/nys-table/src/index.d.ts +1 -0
- package/dist/packages/nys-table/src/nys-table.d.ts +38 -0
- package/dist/packages/nys-table/src/nys-table.figma.d.ts +1 -0
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +32 -12
- package/dist/packages/nys-textarea/src/nys-textarea.figma.d.ts +1 -0
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +33 -12
- package/dist/packages/nys-textinput/src/nys-textinput.figma.d.ts +1 -0
- package/dist/packages/nys-toggle/src/nys-toggle.d.ts +24 -7
- package/dist/packages/nys-toggle/src/nys-toggle.figma.d.ts +1 -0
- package/dist/packages/nys-tooltip/src/nys-tooltip.d.ts +49 -9
- package/dist/packages/nys-tooltip/src/nys-tooltip.figma.d.ts +1 -0
- package/dist/packages/nys-unavfooter/src/nys-unavfooter.d.ts +12 -1
- package/dist/packages/nys-unavfooter/src/nys-unavfooter.figma.d.ts +1 -0
- package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +20 -2
- package/dist/packages/nys-unavheader/src/nys-unavheader.figma.d.ts +1 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +19 -16
|
@@ -31,8 +31,14 @@
|
|
|
31
31
|
"declarations": [
|
|
32
32
|
{
|
|
33
33
|
"kind": "class",
|
|
34
|
-
"description": "
|
|
34
|
+
"description": "`<nys-accordion>` groups one or more `<nys-accordionitem>` elements.\n\nFeatures:\n- Optionally enforces single-expanded-item behavior via `singleSelect`.\n- Propagates shared visual `bordered` property to child items.\n- Generates a stable unique identifier if none is provided.",
|
|
35
35
|
"name": "NysAccordion",
|
|
36
|
+
"slots": [
|
|
37
|
+
{
|
|
38
|
+
"description": "Place one or more `<nys-accordionitem>` components here.",
|
|
39
|
+
"name": "default"
|
|
40
|
+
}
|
|
41
|
+
],
|
|
36
42
|
"members": [
|
|
37
43
|
{
|
|
38
44
|
"kind": "field",
|
|
@@ -68,11 +74,11 @@
|
|
|
68
74
|
"kind": "method",
|
|
69
75
|
"name": "_generateUniqueId",
|
|
70
76
|
"privacy": "private",
|
|
71
|
-
"description": "
|
|
77
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
72
78
|
},
|
|
73
79
|
{
|
|
74
80
|
"kind": "method",
|
|
75
|
-
"name": "
|
|
81
|
+
"name": "_getAccordionItems",
|
|
76
82
|
"privacy": "private"
|
|
77
83
|
},
|
|
78
84
|
{
|
|
@@ -94,6 +100,12 @@
|
|
|
94
100
|
"privacy": "private"
|
|
95
101
|
}
|
|
96
102
|
],
|
|
103
|
+
"events": [
|
|
104
|
+
{
|
|
105
|
+
"description": "Fired when a child `<nys-accordionitem>` is toggled. Event detail includes `{ id: string, heading: string, expanded: boolean }`.",
|
|
106
|
+
"name": "nys-accordionitem-toggle"
|
|
107
|
+
}
|
|
108
|
+
],
|
|
97
109
|
"attributes": [
|
|
98
110
|
{
|
|
99
111
|
"name": "id",
|
|
@@ -153,8 +165,14 @@
|
|
|
153
165
|
"declarations": [
|
|
154
166
|
{
|
|
155
167
|
"kind": "class",
|
|
156
|
-
"description": "",
|
|
168
|
+
"description": "`<nys-accordionitem>` represents a single collapsible item inside a `<nys-accordion>`.",
|
|
157
169
|
"name": "NysAccordionItem",
|
|
170
|
+
"slots": [
|
|
171
|
+
{
|
|
172
|
+
"description": "Default slot for the content inside the accordion panel.",
|
|
173
|
+
"name": ""
|
|
174
|
+
}
|
|
175
|
+
],
|
|
158
176
|
"members": [
|
|
159
177
|
{
|
|
160
178
|
"kind": "field",
|
|
@@ -199,7 +217,7 @@
|
|
|
199
217
|
"kind": "method",
|
|
200
218
|
"name": "_generateUniqueId",
|
|
201
219
|
"privacy": "private",
|
|
202
|
-
"description": "
|
|
220
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
203
221
|
},
|
|
204
222
|
{
|
|
205
223
|
"kind": "method",
|
|
@@ -243,7 +261,8 @@
|
|
|
243
261
|
"name": "nys-accordionitem-toggle",
|
|
244
262
|
"type": {
|
|
245
263
|
"text": "CustomEvent"
|
|
246
|
-
}
|
|
264
|
+
},
|
|
265
|
+
"description": "Fired when the item is expanded or collapsed."
|
|
247
266
|
}
|
|
248
267
|
],
|
|
249
268
|
"attributes": [
|
|
@@ -328,8 +347,14 @@
|
|
|
328
347
|
"declarations": [
|
|
329
348
|
{
|
|
330
349
|
"kind": "class",
|
|
331
|
-
"description": "",
|
|
350
|
+
"description": "`<nys-alert>` renders an informational, success, warning, or error alert.",
|
|
332
351
|
"name": "NysAlert",
|
|
352
|
+
"slots": [
|
|
353
|
+
{
|
|
354
|
+
"description": "Default slot for additional alert content.",
|
|
355
|
+
"name": ""
|
|
356
|
+
}
|
|
357
|
+
],
|
|
333
358
|
"members": [
|
|
334
359
|
{
|
|
335
360
|
"kind": "field",
|
|
@@ -338,7 +363,6 @@
|
|
|
338
363
|
"text": "string"
|
|
339
364
|
},
|
|
340
365
|
"default": "\"\"",
|
|
341
|
-
"description": "******************** Properties *********************",
|
|
342
366
|
"attribute": "id",
|
|
343
367
|
"reflects": true
|
|
344
368
|
},
|
|
@@ -425,6 +449,16 @@
|
|
|
425
449
|
"default": "\"Dismiss\"",
|
|
426
450
|
"attribute": "secondaryLabel"
|
|
427
451
|
},
|
|
452
|
+
{
|
|
453
|
+
"kind": "field",
|
|
454
|
+
"name": "type",
|
|
455
|
+
"type": {
|
|
456
|
+
"text": "| \"base\"\n | \"info\"\n | \"success\"\n | \"warning\"\n | \"danger\"\n | \"emergency\""
|
|
457
|
+
},
|
|
458
|
+
"default": "\"base\"",
|
|
459
|
+
"attribute": "type",
|
|
460
|
+
"reflects": true
|
|
461
|
+
},
|
|
428
462
|
{
|
|
429
463
|
"kind": "field",
|
|
430
464
|
"name": "_alertClosed",
|
|
@@ -445,36 +479,20 @@
|
|
|
445
479
|
},
|
|
446
480
|
{
|
|
447
481
|
"kind": "field",
|
|
448
|
-
"name": "
|
|
449
|
-
"privacy": "private",
|
|
450
|
-
"static": true,
|
|
451
|
-
"readonly": true,
|
|
452
|
-
"default": "[ \"base\", \"info\", \"success\", \"warning\", \"danger\", \"emergency\", ]",
|
|
453
|
-
"type": {
|
|
454
|
-
"text": "[\n \"base\",\n \"info\",\n \"success\",\n \"warning\",\n \"danger\",\n \"emergency\",\n ]"
|
|
455
|
-
}
|
|
456
|
-
},
|
|
457
|
-
{
|
|
458
|
-
"kind": "field",
|
|
459
|
-
"name": "_type",
|
|
482
|
+
"name": "ariaAttributes",
|
|
460
483
|
"type": {
|
|
461
|
-
"text": "
|
|
484
|
+
"text": "{\n role: \"alert\" | \"status\" | \"region\";\n ariaLabel: string;\n }"
|
|
462
485
|
},
|
|
463
|
-
"
|
|
464
|
-
"
|
|
465
|
-
},
|
|
466
|
-
{
|
|
467
|
-
"kind": "field",
|
|
468
|
-
"name": "type",
|
|
469
|
-
"attribute": "type",
|
|
470
|
-
"reflects": true
|
|
486
|
+
"description": "Returns ARIA role and label based on alert type.\n- 'alert' => assertive live region (implied)\n- 'status' => polite live region\n- 'region' => generic, requires aria-label",
|
|
487
|
+
"readonly": true
|
|
471
488
|
},
|
|
472
489
|
{
|
|
473
490
|
"kind": "field",
|
|
474
|
-
"name": "
|
|
491
|
+
"name": "liveRegion",
|
|
475
492
|
"type": {
|
|
476
|
-
"text": "
|
|
493
|
+
"text": "\"polite\" | undefined"
|
|
477
494
|
},
|
|
495
|
+
"description": "Returns live-region type for screen readers if applicable.\n- 'polite' for status role\n- undefined for alert (since it's implicitly assertive) or region",
|
|
478
496
|
"readonly": true
|
|
479
497
|
},
|
|
480
498
|
{
|
|
@@ -485,17 +503,17 @@
|
|
|
485
503
|
},
|
|
486
504
|
"privacy": "private",
|
|
487
505
|
"default": "null",
|
|
488
|
-
"description": "
|
|
506
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
489
507
|
},
|
|
490
508
|
{
|
|
491
509
|
"kind": "method",
|
|
492
510
|
"name": "_generateUniqueId",
|
|
493
511
|
"privacy": "private",
|
|
494
|
-
"description": "
|
|
512
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
495
513
|
},
|
|
496
514
|
{
|
|
497
515
|
"kind": "method",
|
|
498
|
-
"name": "
|
|
516
|
+
"name": "_resolveIconName",
|
|
499
517
|
"privacy": "private"
|
|
500
518
|
},
|
|
501
519
|
{
|
|
@@ -511,7 +529,8 @@
|
|
|
511
529
|
{
|
|
512
530
|
"kind": "method",
|
|
513
531
|
"name": "_checkSlotContent",
|
|
514
|
-
"privacy": "private"
|
|
532
|
+
"privacy": "private",
|
|
533
|
+
"description": "Checks whether the default slot has content.\nUpdates `_slotHasContent` accordingly."
|
|
515
534
|
}
|
|
516
535
|
],
|
|
517
536
|
"events": [
|
|
@@ -519,7 +538,8 @@
|
|
|
519
538
|
"name": "nys-close",
|
|
520
539
|
"type": {
|
|
521
540
|
"text": "CustomEvent"
|
|
522
|
-
}
|
|
541
|
+
},
|
|
542
|
+
"description": "Fired when alert is dismissed (manual or timeout)."
|
|
523
543
|
}
|
|
524
544
|
],
|
|
525
545
|
"attributes": [
|
|
@@ -529,7 +549,6 @@
|
|
|
529
549
|
"text": "string"
|
|
530
550
|
},
|
|
531
551
|
"default": "\"\"",
|
|
532
|
-
"description": "******************** Properties *********************",
|
|
533
552
|
"fieldName": "id"
|
|
534
553
|
},
|
|
535
554
|
{
|
|
@@ -606,6 +625,10 @@
|
|
|
606
625
|
},
|
|
607
626
|
{
|
|
608
627
|
"name": "type",
|
|
628
|
+
"type": {
|
|
629
|
+
"text": "| \"base\"\n | \"info\"\n | \"success\"\n | \"warning\"\n | \"danger\"\n | \"emergency\""
|
|
630
|
+
},
|
|
631
|
+
"default": "\"base\"",
|
|
609
632
|
"fieldName": "type"
|
|
610
633
|
}
|
|
611
634
|
],
|
|
@@ -657,8 +680,14 @@
|
|
|
657
680
|
"declarations": [
|
|
658
681
|
{
|
|
659
682
|
"kind": "class",
|
|
660
|
-
"description": "",
|
|
683
|
+
"description": "`<nys-avatar>` displays a user avatar as an image, initials, or icon.",
|
|
661
684
|
"name": "NysAvatar",
|
|
685
|
+
"slots": [
|
|
686
|
+
{
|
|
687
|
+
"description": "Default slot for custom icon content. Fallback icon is used if slot is empty. Features: - Computes foreground color for sufficient contrast based on background. - Supports interactive avatars with button role. - Fallback to icon when image or initials are missing. - Lazy loading for performance optimization.",
|
|
688
|
+
"name": ""
|
|
689
|
+
}
|
|
690
|
+
],
|
|
662
691
|
"members": [
|
|
663
692
|
{
|
|
664
693
|
"kind": "field",
|
|
@@ -667,7 +696,6 @@
|
|
|
667
696
|
"text": "string"
|
|
668
697
|
},
|
|
669
698
|
"default": "\"\"",
|
|
670
|
-
"description": "******************** Properties *********************",
|
|
671
699
|
"attribute": "id",
|
|
672
700
|
"reflects": true
|
|
673
701
|
},
|
|
@@ -763,7 +791,13 @@
|
|
|
763
791
|
{
|
|
764
792
|
"kind": "method",
|
|
765
793
|
"name": "getContrastForeground",
|
|
766
|
-
"privacy": "private"
|
|
794
|
+
"privacy": "private",
|
|
795
|
+
"description": "Computes the appropriate foreground color (icon or initials)\nbased on the avatar's background color for sufficient contrast.",
|
|
796
|
+
"return": {
|
|
797
|
+
"type": {
|
|
798
|
+
"text": ""
|
|
799
|
+
}
|
|
800
|
+
}
|
|
767
801
|
}
|
|
768
802
|
],
|
|
769
803
|
"attributes": [
|
|
@@ -773,7 +807,6 @@
|
|
|
773
807
|
"text": "string"
|
|
774
808
|
},
|
|
775
809
|
"default": "\"\"",
|
|
776
|
-
"description": "******************** Properties *********************",
|
|
777
810
|
"fieldName": "id"
|
|
778
811
|
},
|
|
779
812
|
{
|
|
@@ -889,7 +922,7 @@
|
|
|
889
922
|
"declarations": [
|
|
890
923
|
{
|
|
891
924
|
"kind": "class",
|
|
892
|
-
"description": "",
|
|
925
|
+
"description": "`<nys-backtotop>` renders a button that scrolls the page to the top.\n\nFeatures:\n- Automatically appears after scrolling past 1.5 viewport heights\n if the page is at least 4 screens tall.\n- Adapts to mobile screens (renders as a circle button when narrow).\n- Can be explicitly shown with the `visible` attribute.",
|
|
893
926
|
"name": "NysBacktotop",
|
|
894
927
|
"members": [
|
|
895
928
|
{
|
|
@@ -940,7 +973,8 @@
|
|
|
940
973
|
{
|
|
941
974
|
"kind": "method",
|
|
942
975
|
"name": "_handleScroll",
|
|
943
|
-
"privacy": "private"
|
|
976
|
+
"privacy": "private",
|
|
977
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
944
978
|
},
|
|
945
979
|
{
|
|
946
980
|
"kind": "method",
|
|
@@ -953,6 +987,12 @@
|
|
|
953
987
|
"privacy": "private"
|
|
954
988
|
}
|
|
955
989
|
],
|
|
990
|
+
"events": [
|
|
991
|
+
{
|
|
992
|
+
"description": "Fired when the button is clicked (scrolls page to top).",
|
|
993
|
+
"name": "nys-click"
|
|
994
|
+
}
|
|
995
|
+
],
|
|
956
996
|
"attributes": [
|
|
957
997
|
{
|
|
958
998
|
"name": "position",
|
|
@@ -1019,7 +1059,7 @@
|
|
|
1019
1059
|
"declarations": [
|
|
1020
1060
|
{
|
|
1021
1061
|
"kind": "class",
|
|
1022
|
-
"description": "",
|
|
1062
|
+
"description": "`<nys-badge>` displays a badge with optional prefix/suffix icons and labels.\n\nFeatures:\n- Conveys an intent (`neutral`, `error`, `success`, `warning`) which affects default icons and styling.\n- Supports custom prefix and suffix icons.",
|
|
1023
1063
|
"name": "NysBadge",
|
|
1024
1064
|
"members": [
|
|
1025
1065
|
{
|
|
@@ -1042,61 +1082,23 @@
|
|
|
1042
1082
|
"attribute": "name",
|
|
1043
1083
|
"reflects": true
|
|
1044
1084
|
},
|
|
1045
|
-
{
|
|
1046
|
-
"kind": "field",
|
|
1047
|
-
"name": "VALID_SIZES",
|
|
1048
|
-
"privacy": "private",
|
|
1049
|
-
"static": true,
|
|
1050
|
-
"readonly": true,
|
|
1051
|
-
"default": "[\"sm\", \"md\"]",
|
|
1052
|
-
"type": {
|
|
1053
|
-
"text": "[\"sm\", \"md\"]"
|
|
1054
|
-
}
|
|
1055
|
-
},
|
|
1056
|
-
{
|
|
1057
|
-
"kind": "field",
|
|
1058
|
-
"name": "_size",
|
|
1059
|
-
"type": {
|
|
1060
|
-
"text": "(typeof NysBadge.VALID_SIZES)[number]"
|
|
1061
|
-
},
|
|
1062
|
-
"privacy": "private",
|
|
1063
|
-
"default": "\"md\""
|
|
1064
|
-
},
|
|
1065
1085
|
{
|
|
1066
1086
|
"kind": "field",
|
|
1067
1087
|
"name": "size",
|
|
1068
1088
|
"type": {
|
|
1069
|
-
"text": "
|
|
1089
|
+
"text": "\"sm\" | \"md\""
|
|
1070
1090
|
},
|
|
1091
|
+
"default": "\"md\"",
|
|
1071
1092
|
"attribute": "size",
|
|
1072
1093
|
"reflects": true
|
|
1073
1094
|
},
|
|
1074
|
-
{
|
|
1075
|
-
"kind": "field",
|
|
1076
|
-
"name": "VALID_INTENT",
|
|
1077
|
-
"privacy": "private",
|
|
1078
|
-
"static": true,
|
|
1079
|
-
"readonly": true,
|
|
1080
|
-
"default": "[ \"neutral\", \"error\", \"success\", \"warning\", ]",
|
|
1081
|
-
"type": {
|
|
1082
|
-
"text": "[\n \"neutral\",\n \"error\",\n \"success\",\n \"warning\",\n ]"
|
|
1083
|
-
}
|
|
1084
|
-
},
|
|
1085
|
-
{
|
|
1086
|
-
"kind": "field",
|
|
1087
|
-
"name": "_intent",
|
|
1088
|
-
"type": {
|
|
1089
|
-
"text": "(typeof NysBadge.VALID_INTENT)[number]"
|
|
1090
|
-
},
|
|
1091
|
-
"privacy": "private",
|
|
1092
|
-
"default": "\"neutral\""
|
|
1093
|
-
},
|
|
1094
1095
|
{
|
|
1095
1096
|
"kind": "field",
|
|
1096
1097
|
"name": "intent",
|
|
1097
1098
|
"type": {
|
|
1098
|
-
"text": "
|
|
1099
|
+
"text": "| \"neutral\"\n | \"error\"\n | \"success\"\n | \"warning\""
|
|
1099
1100
|
},
|
|
1101
|
+
"default": "\"neutral\"",
|
|
1100
1102
|
"attribute": "intent",
|
|
1101
1103
|
"reflects": true
|
|
1102
1104
|
},
|
|
@@ -1161,7 +1163,8 @@
|
|
|
1161
1163
|
"privacy": "private",
|
|
1162
1164
|
"static": true,
|
|
1163
1165
|
"readonly": true,
|
|
1164
|
-
"default": "{ neutral: \"info\", error: \"emergency_home\", success: \"check_circle\", warning: \"warning\", }"
|
|
1166
|
+
"default": "{ neutral: \"info\", error: \"emergency_home\", success: \"check_circle\", warning: \"warning\", }",
|
|
1167
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
1165
1168
|
},
|
|
1166
1169
|
{
|
|
1167
1170
|
"kind": "method",
|
|
@@ -1169,7 +1172,7 @@
|
|
|
1169
1172
|
"privacy": "private",
|
|
1170
1173
|
"return": {
|
|
1171
1174
|
"type": {
|
|
1172
|
-
"text": "
|
|
1175
|
+
"text": ""
|
|
1173
1176
|
}
|
|
1174
1177
|
},
|
|
1175
1178
|
"parameters": [
|
|
@@ -1177,9 +1180,11 @@
|
|
|
1177
1180
|
"name": "icon",
|
|
1178
1181
|
"type": {
|
|
1179
1182
|
"text": "string | boolean"
|
|
1180
|
-
}
|
|
1183
|
+
},
|
|
1184
|
+
"description": "The icon property value (string or boolean)"
|
|
1181
1185
|
}
|
|
1182
|
-
]
|
|
1186
|
+
],
|
|
1187
|
+
"description": "Resolves which icon should be rendered."
|
|
1183
1188
|
}
|
|
1184
1189
|
],
|
|
1185
1190
|
"attributes": [
|
|
@@ -1202,15 +1207,17 @@
|
|
|
1202
1207
|
{
|
|
1203
1208
|
"name": "size",
|
|
1204
1209
|
"type": {
|
|
1205
|
-
"text": "
|
|
1210
|
+
"text": "\"sm\" | \"md\""
|
|
1206
1211
|
},
|
|
1212
|
+
"default": "\"md\"",
|
|
1207
1213
|
"fieldName": "size"
|
|
1208
1214
|
},
|
|
1209
1215
|
{
|
|
1210
1216
|
"name": "intent",
|
|
1211
1217
|
"type": {
|
|
1212
|
-
"text": "
|
|
1218
|
+
"text": "| \"neutral\"\n | \"error\"\n | \"success\"\n | \"warning\""
|
|
1213
1219
|
},
|
|
1220
|
+
"default": "\"neutral\"",
|
|
1214
1221
|
"fieldName": "intent"
|
|
1215
1222
|
},
|
|
1216
1223
|
{
|
|
@@ -1292,7 +1299,7 @@
|
|
|
1292
1299
|
"declarations": [
|
|
1293
1300
|
{
|
|
1294
1301
|
"kind": "class",
|
|
1295
|
-
"description": "",
|
|
1302
|
+
"description": "`<nys-button>` is a versatile button component supporting:\n- Multiple variants (`filled`, `outline`, `ghost`, `text`)\n- Sizes (`sm`, `md`, `lg`) and full-width layout\n- Icons (prefix, suffix, or circle) and optional labels\n- Native `<button>` or link `<a>` behavior with form association\n- Keyboard and accessibility support (`aria-label`, `aria-controls`, `aria-description`)",
|
|
1296
1303
|
"name": "NysButton",
|
|
1297
1304
|
"members": [
|
|
1298
1305
|
{
|
|
@@ -1315,32 +1322,13 @@
|
|
|
1315
1322
|
"attribute": "name",
|
|
1316
1323
|
"reflects": true
|
|
1317
1324
|
},
|
|
1318
|
-
{
|
|
1319
|
-
"kind": "field",
|
|
1320
|
-
"name": "VALID_SIZES",
|
|
1321
|
-
"privacy": "private",
|
|
1322
|
-
"static": true,
|
|
1323
|
-
"readonly": true,
|
|
1324
|
-
"default": "[\"sm\", \"md\", \"lg\"]",
|
|
1325
|
-
"type": {
|
|
1326
|
-
"text": "[\"sm\", \"md\", \"lg\"]"
|
|
1327
|
-
}
|
|
1328
|
-
},
|
|
1329
|
-
{
|
|
1330
|
-
"kind": "field",
|
|
1331
|
-
"name": "_size",
|
|
1332
|
-
"type": {
|
|
1333
|
-
"text": "(typeof NysButton.VALID_SIZES)[number]"
|
|
1334
|
-
},
|
|
1335
|
-
"privacy": "private",
|
|
1336
|
-
"default": "\"md\""
|
|
1337
|
-
},
|
|
1338
1325
|
{
|
|
1339
1326
|
"kind": "field",
|
|
1340
1327
|
"name": "size",
|
|
1341
1328
|
"type": {
|
|
1342
|
-
"text": "
|
|
1329
|
+
"text": "\"sm\" | \"md\" | \"lg\""
|
|
1343
1330
|
},
|
|
1331
|
+
"default": "\"md\"",
|
|
1344
1332
|
"attribute": "size",
|
|
1345
1333
|
"reflects": true
|
|
1346
1334
|
},
|
|
@@ -1354,32 +1342,13 @@
|
|
|
1354
1342
|
"attribute": "fullWidth",
|
|
1355
1343
|
"reflects": true
|
|
1356
1344
|
},
|
|
1357
|
-
{
|
|
1358
|
-
"kind": "field",
|
|
1359
|
-
"name": "VALID_VARIANTS",
|
|
1360
|
-
"privacy": "private",
|
|
1361
|
-
"static": true,
|
|
1362
|
-
"readonly": true,
|
|
1363
|
-
"default": "[ \"filled\", \"outline\", \"ghost\", \"text\", ]",
|
|
1364
|
-
"type": {
|
|
1365
|
-
"text": "[\n \"filled\",\n \"outline\",\n \"ghost\",\n \"text\",\n ]"
|
|
1366
|
-
}
|
|
1367
|
-
},
|
|
1368
|
-
{
|
|
1369
|
-
"kind": "field",
|
|
1370
|
-
"name": "_variant",
|
|
1371
|
-
"type": {
|
|
1372
|
-
"text": "(typeof NysButton.VALID_VARIANTS)[number]"
|
|
1373
|
-
},
|
|
1374
|
-
"privacy": "private",
|
|
1375
|
-
"default": "\"filled\""
|
|
1376
|
-
},
|
|
1377
1345
|
{
|
|
1378
1346
|
"kind": "field",
|
|
1379
1347
|
"name": "variant",
|
|
1380
1348
|
"type": {
|
|
1381
|
-
"text": "
|
|
1349
|
+
"text": "| \"filled\"\n | \"outline\"\n | \"ghost\"\n | \"text\""
|
|
1382
1350
|
},
|
|
1351
|
+
"default": "\"filled\"",
|
|
1383
1352
|
"attribute": "variant",
|
|
1384
1353
|
"reflects": true
|
|
1385
1354
|
},
|
|
@@ -1495,32 +1464,13 @@
|
|
|
1495
1464
|
"default": "\"\"",
|
|
1496
1465
|
"attribute": "ariaDescription"
|
|
1497
1466
|
},
|
|
1498
|
-
{
|
|
1499
|
-
"kind": "field",
|
|
1500
|
-
"name": "VALID_TYPES",
|
|
1501
|
-
"privacy": "private",
|
|
1502
|
-
"static": true,
|
|
1503
|
-
"readonly": true,
|
|
1504
|
-
"default": "[\"submit\", \"reset\", \"button\"]",
|
|
1505
|
-
"type": {
|
|
1506
|
-
"text": "[\"submit\", \"reset\", \"button\"]"
|
|
1507
|
-
}
|
|
1508
|
-
},
|
|
1509
|
-
{
|
|
1510
|
-
"kind": "field",
|
|
1511
|
-
"name": "_type",
|
|
1512
|
-
"type": {
|
|
1513
|
-
"text": "(typeof NysButton.VALID_TYPES)[number]"
|
|
1514
|
-
},
|
|
1515
|
-
"privacy": "private",
|
|
1516
|
-
"default": "\"button\""
|
|
1517
|
-
},
|
|
1518
1467
|
{
|
|
1519
1468
|
"kind": "field",
|
|
1520
1469
|
"name": "type",
|
|
1521
1470
|
"type": {
|
|
1522
|
-
"text": "
|
|
1471
|
+
"text": "| \"submit\"\n | \"reset\"\n | \"button\""
|
|
1523
1472
|
},
|
|
1473
|
+
"default": "\"button\"",
|
|
1524
1474
|
"attribute": "type",
|
|
1525
1475
|
"reflects": true
|
|
1526
1476
|
},
|
|
@@ -1541,32 +1491,13 @@
|
|
|
1541
1491
|
"default": "\"\"",
|
|
1542
1492
|
"attribute": "href"
|
|
1543
1493
|
},
|
|
1544
|
-
{
|
|
1545
|
-
"kind": "field",
|
|
1546
|
-
"name": "VALID_TARGETS",
|
|
1547
|
-
"privacy": "private",
|
|
1548
|
-
"static": true,
|
|
1549
|
-
"readonly": true,
|
|
1550
|
-
"default": "[ \"_self\", \"_blank\", \"_parent\", \"_top\", \"framename\", ]",
|
|
1551
|
-
"type": {
|
|
1552
|
-
"text": "[\n \"_self\",\n \"_blank\",\n \"_parent\",\n \"_top\",\n \"framename\",\n ]"
|
|
1553
|
-
}
|
|
1554
|
-
},
|
|
1555
|
-
{
|
|
1556
|
-
"kind": "field",
|
|
1557
|
-
"name": "_target",
|
|
1558
|
-
"type": {
|
|
1559
|
-
"text": "(typeof NysButton.VALID_TARGETS)[number]"
|
|
1560
|
-
},
|
|
1561
|
-
"privacy": "private",
|
|
1562
|
-
"default": "\"_self\""
|
|
1563
|
-
},
|
|
1564
1494
|
{
|
|
1565
1495
|
"kind": "field",
|
|
1566
1496
|
"name": "target",
|
|
1567
1497
|
"type": {
|
|
1568
|
-
"text": "
|
|
1498
|
+
"text": "| \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | \"framename\""
|
|
1569
1499
|
},
|
|
1500
|
+
"default": "\"_self\"",
|
|
1570
1501
|
"attribute": "target",
|
|
1571
1502
|
"reflects": true
|
|
1572
1503
|
},
|
|
@@ -1596,13 +1527,13 @@
|
|
|
1596
1527
|
},
|
|
1597
1528
|
"static": true,
|
|
1598
1529
|
"default": "true",
|
|
1599
|
-
"description": "
|
|
1530
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
1600
1531
|
},
|
|
1601
1532
|
{
|
|
1602
1533
|
"kind": "method",
|
|
1603
1534
|
"name": "_generateUniqueId",
|
|
1604
1535
|
"privacy": "private",
|
|
1605
|
-
"description": "
|
|
1536
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
1606
1537
|
},
|
|
1607
1538
|
{
|
|
1608
1539
|
"kind": "method",
|
|
@@ -1613,7 +1544,7 @@
|
|
|
1613
1544
|
"kind": "method",
|
|
1614
1545
|
"name": "_handleFocus",
|
|
1615
1546
|
"privacy": "private",
|
|
1616
|
-
"description": "
|
|
1547
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
1617
1548
|
},
|
|
1618
1549
|
{
|
|
1619
1550
|
"kind": "method",
|
|
@@ -1664,8 +1595,7 @@
|
|
|
1664
1595
|
"text": "FocusOptions"
|
|
1665
1596
|
}
|
|
1666
1597
|
}
|
|
1667
|
-
]
|
|
1668
|
-
"description": "****************** Public Methods *******************"
|
|
1598
|
+
]
|
|
1669
1599
|
}
|
|
1670
1600
|
],
|
|
1671
1601
|
"events": [
|
|
@@ -1673,19 +1603,22 @@
|
|
|
1673
1603
|
"name": "nys-focus",
|
|
1674
1604
|
"type": {
|
|
1675
1605
|
"text": "Event"
|
|
1676
|
-
}
|
|
1606
|
+
},
|
|
1607
|
+
"description": "Fired when button receives focus"
|
|
1677
1608
|
},
|
|
1678
1609
|
{
|
|
1679
1610
|
"name": "nys-blur",
|
|
1680
1611
|
"type": {
|
|
1681
1612
|
"text": "Event"
|
|
1682
|
-
}
|
|
1613
|
+
},
|
|
1614
|
+
"description": "Fired when button loses focus"
|
|
1683
1615
|
},
|
|
1684
1616
|
{
|
|
1685
1617
|
"name": "nys-click",
|
|
1686
1618
|
"type": {
|
|
1687
1619
|
"text": "Event"
|
|
1688
|
-
}
|
|
1620
|
+
},
|
|
1621
|
+
"description": "Fired on button click"
|
|
1689
1622
|
}
|
|
1690
1623
|
],
|
|
1691
1624
|
"attributes": [
|
|
@@ -1708,8 +1641,9 @@
|
|
|
1708
1641
|
{
|
|
1709
1642
|
"name": "size",
|
|
1710
1643
|
"type": {
|
|
1711
|
-
"text": "
|
|
1644
|
+
"text": "\"sm\" | \"md\" | \"lg\""
|
|
1712
1645
|
},
|
|
1646
|
+
"default": "\"md\"",
|
|
1713
1647
|
"fieldName": "size"
|
|
1714
1648
|
},
|
|
1715
1649
|
{
|
|
@@ -1723,8 +1657,9 @@
|
|
|
1723
1657
|
{
|
|
1724
1658
|
"name": "variant",
|
|
1725
1659
|
"type": {
|
|
1726
|
-
"text": "
|
|
1660
|
+
"text": "| \"filled\"\n | \"outline\"\n | \"ghost\"\n | \"text\""
|
|
1727
1661
|
},
|
|
1662
|
+
"default": "\"filled\"",
|
|
1728
1663
|
"fieldName": "variant"
|
|
1729
1664
|
},
|
|
1730
1665
|
{
|
|
@@ -1826,8 +1761,9 @@
|
|
|
1826
1761
|
{
|
|
1827
1762
|
"name": "type",
|
|
1828
1763
|
"type": {
|
|
1829
|
-
"text": "
|
|
1764
|
+
"text": "| \"submit\"\n | \"reset\"\n | \"button\""
|
|
1830
1765
|
},
|
|
1766
|
+
"default": "\"button\"",
|
|
1831
1767
|
"fieldName": "type"
|
|
1832
1768
|
},
|
|
1833
1769
|
{
|
|
@@ -1841,8 +1777,9 @@
|
|
|
1841
1777
|
{
|
|
1842
1778
|
"name": "target",
|
|
1843
1779
|
"type": {
|
|
1844
|
-
"text": "
|
|
1780
|
+
"text": "| \"_self\"\n | \"_blank\"\n | \"_parent\"\n | \"_top\"\n | \"framename\""
|
|
1845
1781
|
},
|
|
1782
|
+
"default": "\"_self\"",
|
|
1846
1783
|
"fieldName": "target"
|
|
1847
1784
|
}
|
|
1848
1785
|
],
|
|
@@ -1902,8 +1839,14 @@
|
|
|
1902
1839
|
"declarations": [
|
|
1903
1840
|
{
|
|
1904
1841
|
"kind": "class",
|
|
1905
|
-
"description": "",
|
|
1842
|
+
"description": "`<nys-checkbox>` is an accessible, form-associated checkbox component.\nCan be used standalone or within a `<nys-checkboxgroup>`.\n\nFeatures:\n- Supports labels, descriptions, and tooltips\n- Displays error messages with `showError` and `errorMessage`\n- Keyboard interaction with spacebar toggle\n- Form integration via ElementInternals (`checked` value submitted)",
|
|
1906
1843
|
"name": "NysCheckbox",
|
|
1844
|
+
"slots": [
|
|
1845
|
+
{
|
|
1846
|
+
"description": "Slot to provide a custom description element",
|
|
1847
|
+
"name": "description"
|
|
1848
|
+
}
|
|
1849
|
+
],
|
|
1907
1850
|
"members": [
|
|
1908
1851
|
{
|
|
1909
1852
|
"kind": "field",
|
|
@@ -2042,30 +1985,20 @@
|
|
|
2042
1985
|
},
|
|
2043
1986
|
{
|
|
2044
1987
|
"kind": "field",
|
|
2045
|
-
"name": "
|
|
2046
|
-
"privacy": "private",
|
|
2047
|
-
"static": true,
|
|
2048
|
-
"readonly": true,
|
|
2049
|
-
"default": "[\"sm\", \"md\"]",
|
|
2050
|
-
"type": {
|
|
2051
|
-
"text": "[\"sm\", \"md\"]"
|
|
2052
|
-
}
|
|
2053
|
-
},
|
|
2054
|
-
{
|
|
2055
|
-
"kind": "field",
|
|
2056
|
-
"name": "_size",
|
|
1988
|
+
"name": "tooltip",
|
|
2057
1989
|
"type": {
|
|
2058
|
-
"text": "
|
|
1990
|
+
"text": "string"
|
|
2059
1991
|
},
|
|
2060
|
-
"
|
|
2061
|
-
"
|
|
1992
|
+
"default": "\"\"",
|
|
1993
|
+
"attribute": "tooltip"
|
|
2062
1994
|
},
|
|
2063
1995
|
{
|
|
2064
1996
|
"kind": "field",
|
|
2065
1997
|
"name": "size",
|
|
2066
1998
|
"type": {
|
|
2067
|
-
"text": "
|
|
1999
|
+
"text": "\"sm\" | \"md\""
|
|
2068
2000
|
},
|
|
2001
|
+
"default": "\"md\"",
|
|
2069
2002
|
"attribute": "size",
|
|
2070
2003
|
"reflects": true
|
|
2071
2004
|
},
|
|
@@ -2095,17 +2028,13 @@
|
|
|
2095
2028
|
},
|
|
2096
2029
|
"static": true,
|
|
2097
2030
|
"default": "true",
|
|
2098
|
-
"description": "
|
|
2099
|
-
},
|
|
2100
|
-
{
|
|
2101
|
-
"kind": "method",
|
|
2102
|
-
"name": "formResetCallback"
|
|
2031
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
2103
2032
|
},
|
|
2104
2033
|
{
|
|
2105
2034
|
"kind": "method",
|
|
2106
2035
|
"name": "_setValue",
|
|
2107
2036
|
"privacy": "private",
|
|
2108
|
-
"description": "
|
|
2037
|
+
"description": "Form Integration\n--------------------------------------------------------------------------"
|
|
2109
2038
|
},
|
|
2110
2039
|
{
|
|
2111
2040
|
"kind": "method",
|
|
@@ -2131,6 +2060,10 @@
|
|
|
2131
2060
|
"name": "_validate",
|
|
2132
2061
|
"privacy": "private"
|
|
2133
2062
|
},
|
|
2063
|
+
{
|
|
2064
|
+
"kind": "method",
|
|
2065
|
+
"name": "formResetCallback"
|
|
2066
|
+
},
|
|
2134
2067
|
{
|
|
2135
2068
|
"kind": "method",
|
|
2136
2069
|
"name": "checkValidity",
|
|
@@ -2139,7 +2072,7 @@
|
|
|
2139
2072
|
"text": "boolean"
|
|
2140
2073
|
}
|
|
2141
2074
|
},
|
|
2142
|
-
"description": "
|
|
2075
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
2143
2076
|
},
|
|
2144
2077
|
{
|
|
2145
2078
|
"kind": "method",
|
|
@@ -2163,7 +2096,7 @@
|
|
|
2163
2096
|
"kind": "method",
|
|
2164
2097
|
"name": "_emitChangeEvent",
|
|
2165
2098
|
"privacy": "private",
|
|
2166
|
-
"description": "
|
|
2099
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
2167
2100
|
},
|
|
2168
2101
|
{
|
|
2169
2102
|
"kind": "method",
|
|
@@ -2207,19 +2140,22 @@
|
|
|
2207
2140
|
"name": "nys-change",
|
|
2208
2141
|
"type": {
|
|
2209
2142
|
"text": "CustomEvent"
|
|
2210
|
-
}
|
|
2143
|
+
},
|
|
2144
|
+
"description": "Fired when checkbox value changes"
|
|
2211
2145
|
},
|
|
2212
2146
|
{
|
|
2213
2147
|
"name": "nys-focus",
|
|
2214
2148
|
"type": {
|
|
2215
2149
|
"text": "Event"
|
|
2216
|
-
}
|
|
2150
|
+
},
|
|
2151
|
+
"description": "Fired on focus"
|
|
2217
2152
|
},
|
|
2218
2153
|
{
|
|
2219
2154
|
"name": "nys-blur",
|
|
2220
2155
|
"type": {
|
|
2221
2156
|
"text": "Event"
|
|
2222
|
-
}
|
|
2157
|
+
},
|
|
2158
|
+
"description": "Fired on blur"
|
|
2223
2159
|
}
|
|
2224
2160
|
],
|
|
2225
2161
|
"attributes": [
|
|
@@ -2335,11 +2271,20 @@
|
|
|
2335
2271
|
"default": "false",
|
|
2336
2272
|
"fieldName": "inverted"
|
|
2337
2273
|
},
|
|
2274
|
+
{
|
|
2275
|
+
"name": "tooltip",
|
|
2276
|
+
"type": {
|
|
2277
|
+
"text": "string"
|
|
2278
|
+
},
|
|
2279
|
+
"default": "\"\"",
|
|
2280
|
+
"fieldName": "tooltip"
|
|
2281
|
+
},
|
|
2338
2282
|
{
|
|
2339
2283
|
"name": "size",
|
|
2340
2284
|
"type": {
|
|
2341
|
-
"text": "
|
|
2285
|
+
"text": "\"sm\" | \"md\""
|
|
2342
2286
|
},
|
|
2287
|
+
"default": "\"md\"",
|
|
2343
2288
|
"fieldName": "size"
|
|
2344
2289
|
}
|
|
2345
2290
|
],
|
|
@@ -2376,8 +2321,18 @@
|
|
|
2376
2321
|
"declarations": [
|
|
2377
2322
|
{
|
|
2378
2323
|
"kind": "class",
|
|
2379
|
-
"description": "",
|
|
2324
|
+
"description": "`<nys-checkboxgroup>` is a form-associated container for multiple `<nys-checkbox>` components.\nHandles grouping, validation, required constraints, form submission, and accessibility.\n\nFeatures:\n- Manages multiple checkboxes as a single form field\n- Supports required/optional flags and error messages\n- Propagates size, tile, and inverted styling to child checkboxes\n- Keyboard and screen reader accessible via fieldset/legend",
|
|
2380
2325
|
"name": "NysCheckboxgroup",
|
|
2326
|
+
"slots": [
|
|
2327
|
+
{
|
|
2328
|
+
"description": "Slot for child `<nys-checkbox>` elements",
|
|
2329
|
+
"name": "default"
|
|
2330
|
+
},
|
|
2331
|
+
{
|
|
2332
|
+
"description": "Slot for custom description content",
|
|
2333
|
+
"name": "description"
|
|
2334
|
+
}
|
|
2335
|
+
],
|
|
2381
2336
|
"members": [
|
|
2382
2337
|
{
|
|
2383
2338
|
"kind": "field",
|
|
@@ -2468,12 +2423,12 @@
|
|
|
2468
2423
|
},
|
|
2469
2424
|
{
|
|
2470
2425
|
"kind": "field",
|
|
2471
|
-
"name": "
|
|
2426
|
+
"name": "tooltip",
|
|
2472
2427
|
"type": {
|
|
2473
2428
|
"text": "string"
|
|
2474
2429
|
},
|
|
2475
2430
|
"default": "\"\"",
|
|
2476
|
-
"attribute": "
|
|
2431
|
+
"attribute": "tooltip"
|
|
2477
2432
|
},
|
|
2478
2433
|
{
|
|
2479
2434
|
"kind": "field",
|
|
@@ -2497,41 +2452,22 @@
|
|
|
2497
2452
|
},
|
|
2498
2453
|
{
|
|
2499
2454
|
"kind": "field",
|
|
2500
|
-
"name": "
|
|
2455
|
+
"name": "size",
|
|
2501
2456
|
"type": {
|
|
2502
|
-
"text": "
|
|
2457
|
+
"text": "\"sm\" | \"md\""
|
|
2503
2458
|
},
|
|
2504
|
-
"
|
|
2505
|
-
"
|
|
2506
|
-
|
|
2507
|
-
{
|
|
2508
|
-
"kind": "field",
|
|
2509
|
-
"name": "VALID_SIZES",
|
|
2510
|
-
"privacy": "private",
|
|
2511
|
-
"static": true,
|
|
2512
|
-
"readonly": true,
|
|
2513
|
-
"default": "[\"sm\", \"md\"]",
|
|
2514
|
-
"type": {
|
|
2515
|
-
"text": "[\"sm\", \"md\"]"
|
|
2516
|
-
}
|
|
2459
|
+
"default": "\"md\"",
|
|
2460
|
+
"attribute": "size",
|
|
2461
|
+
"reflects": true
|
|
2517
2462
|
},
|
|
2518
2463
|
{
|
|
2519
2464
|
"kind": "field",
|
|
2520
|
-
"name": "
|
|
2465
|
+
"name": "_slottedDescriptionText",
|
|
2521
2466
|
"type": {
|
|
2522
|
-
"text": "
|
|
2467
|
+
"text": "string"
|
|
2523
2468
|
},
|
|
2524
2469
|
"privacy": "private",
|
|
2525
|
-
"default": "\"
|
|
2526
|
-
},
|
|
2527
|
-
{
|
|
2528
|
-
"kind": "field",
|
|
2529
|
-
"name": "size",
|
|
2530
|
-
"type": {
|
|
2531
|
-
"text": "(typeof NysCheckboxgroup.VALID_SIZES)[number]"
|
|
2532
|
-
},
|
|
2533
|
-
"attribute": "size",
|
|
2534
|
-
"reflects": true
|
|
2470
|
+
"default": "\"\""
|
|
2535
2471
|
},
|
|
2536
2472
|
{
|
|
2537
2473
|
"kind": "field",
|
|
@@ -2549,13 +2485,13 @@
|
|
|
2549
2485
|
},
|
|
2550
2486
|
"static": true,
|
|
2551
2487
|
"default": "true",
|
|
2552
|
-
"description": "
|
|
2488
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
2553
2489
|
},
|
|
2554
2490
|
{
|
|
2555
2491
|
"kind": "method",
|
|
2556
2492
|
"name": "_setGroupExist",
|
|
2557
2493
|
"privacy": "private",
|
|
2558
|
-
"description": "
|
|
2494
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
2559
2495
|
},
|
|
2560
2496
|
{
|
|
2561
2497
|
"kind": "method",
|
|
@@ -2622,7 +2558,21 @@
|
|
|
2622
2558
|
}
|
|
2623
2559
|
}
|
|
2624
2560
|
],
|
|
2625
|
-
"description": "
|
|
2561
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
2562
|
+
}
|
|
2563
|
+
],
|
|
2564
|
+
"events": [
|
|
2565
|
+
{
|
|
2566
|
+
"description": "Fired when any child checkbox changes",
|
|
2567
|
+
"name": "nys-change"
|
|
2568
|
+
},
|
|
2569
|
+
{
|
|
2570
|
+
"description": "Fired when any child checkbox gains focus",
|
|
2571
|
+
"name": "nys-focus"
|
|
2572
|
+
},
|
|
2573
|
+
{
|
|
2574
|
+
"description": "Fired when any child checkbox loses focus",
|
|
2575
|
+
"name": "nys-blur"
|
|
2626
2576
|
}
|
|
2627
2577
|
],
|
|
2628
2578
|
"attributes": [
|
|
@@ -2699,12 +2649,12 @@
|
|
|
2699
2649
|
"fieldName": "tile"
|
|
2700
2650
|
},
|
|
2701
2651
|
{
|
|
2702
|
-
"name": "
|
|
2652
|
+
"name": "tooltip",
|
|
2703
2653
|
"type": {
|
|
2704
2654
|
"text": "string"
|
|
2705
2655
|
},
|
|
2706
2656
|
"default": "\"\"",
|
|
2707
|
-
"fieldName": "
|
|
2657
|
+
"fieldName": "tooltip"
|
|
2708
2658
|
},
|
|
2709
2659
|
{
|
|
2710
2660
|
"name": "inverted",
|
|
@@ -2725,8 +2675,9 @@
|
|
|
2725
2675
|
{
|
|
2726
2676
|
"name": "size",
|
|
2727
2677
|
"type": {
|
|
2728
|
-
"text": "
|
|
2678
|
+
"text": "\"sm\" | \"md\""
|
|
2729
2679
|
},
|
|
2680
|
+
"default": "\"md\"",
|
|
2730
2681
|
"fieldName": "size"
|
|
2731
2682
|
}
|
|
2732
2683
|
],
|
|
@@ -2759,7 +2710,7 @@
|
|
|
2759
2710
|
},
|
|
2760
2711
|
{
|
|
2761
2712
|
"kind": "javascript-module",
|
|
2762
|
-
"path": "packages/nys-
|
|
2713
|
+
"path": "packages/nys-datepicker/src/index.ts",
|
|
2763
2714
|
"declarations": [],
|
|
2764
2715
|
"exports": [
|
|
2765
2716
|
{
|
|
@@ -2767,19 +2718,654 @@
|
|
|
2767
2718
|
"name": "*",
|
|
2768
2719
|
"declaration": {
|
|
2769
2720
|
"name": "*",
|
|
2770
|
-
"module": "packages/nys-
|
|
2721
|
+
"module": "packages/nys-datepicker/src/nys-datepicker"
|
|
2771
2722
|
}
|
|
2772
2723
|
}
|
|
2773
2724
|
]
|
|
2774
2725
|
},
|
|
2775
2726
|
{
|
|
2776
2727
|
"kind": "javascript-module",
|
|
2777
|
-
"path": "packages/nys-
|
|
2728
|
+
"path": "packages/nys-datepicker/src/nys-datepicker.ts",
|
|
2778
2729
|
"declarations": [
|
|
2779
2730
|
{
|
|
2780
2731
|
"kind": "class",
|
|
2781
|
-
"description": "",
|
|
2782
|
-
"name": "
|
|
2732
|
+
"description": "`<nys-datepicker>` is a form-associated, accessible date picker component.\nOptionally wraps a `<wc-datepicker>` for custom calendar UI.\n\nEvents:",
|
|
2733
|
+
"name": "NysDatepicker",
|
|
2734
|
+
"members": [
|
|
2735
|
+
{
|
|
2736
|
+
"kind": "field",
|
|
2737
|
+
"name": "id",
|
|
2738
|
+
"type": {
|
|
2739
|
+
"text": "string"
|
|
2740
|
+
},
|
|
2741
|
+
"default": "\"\"",
|
|
2742
|
+
"attribute": "id",
|
|
2743
|
+
"reflects": true
|
|
2744
|
+
},
|
|
2745
|
+
{
|
|
2746
|
+
"kind": "field",
|
|
2747
|
+
"name": "name",
|
|
2748
|
+
"type": {
|
|
2749
|
+
"text": "string"
|
|
2750
|
+
},
|
|
2751
|
+
"default": "\"\"",
|
|
2752
|
+
"attribute": "name",
|
|
2753
|
+
"reflects": true
|
|
2754
|
+
},
|
|
2755
|
+
{
|
|
2756
|
+
"kind": "field",
|
|
2757
|
+
"name": "width",
|
|
2758
|
+
"type": {
|
|
2759
|
+
"text": "\"md\" | \"lg\" | \"full\""
|
|
2760
|
+
},
|
|
2761
|
+
"default": "\"md\"",
|
|
2762
|
+
"attribute": "width",
|
|
2763
|
+
"reflects": true
|
|
2764
|
+
},
|
|
2765
|
+
{
|
|
2766
|
+
"kind": "field",
|
|
2767
|
+
"name": "hideTodayButton",
|
|
2768
|
+
"type": {
|
|
2769
|
+
"text": "boolean"
|
|
2770
|
+
},
|
|
2771
|
+
"default": "false",
|
|
2772
|
+
"attribute": "hideTodayButton"
|
|
2773
|
+
},
|
|
2774
|
+
{
|
|
2775
|
+
"kind": "field",
|
|
2776
|
+
"name": "hideClearButton",
|
|
2777
|
+
"type": {
|
|
2778
|
+
"text": "boolean"
|
|
2779
|
+
},
|
|
2780
|
+
"default": "false",
|
|
2781
|
+
"attribute": "hideClearButton"
|
|
2782
|
+
},
|
|
2783
|
+
{
|
|
2784
|
+
"kind": "field",
|
|
2785
|
+
"name": "disabled",
|
|
2786
|
+
"type": {
|
|
2787
|
+
"text": "boolean"
|
|
2788
|
+
},
|
|
2789
|
+
"default": "false",
|
|
2790
|
+
"attribute": "disabled",
|
|
2791
|
+
"reflects": true
|
|
2792
|
+
},
|
|
2793
|
+
{
|
|
2794
|
+
"kind": "field",
|
|
2795
|
+
"name": "required",
|
|
2796
|
+
"type": {
|
|
2797
|
+
"text": "boolean"
|
|
2798
|
+
},
|
|
2799
|
+
"default": "false",
|
|
2800
|
+
"attribute": "required",
|
|
2801
|
+
"reflects": true
|
|
2802
|
+
},
|
|
2803
|
+
{
|
|
2804
|
+
"kind": "field",
|
|
2805
|
+
"name": "optional",
|
|
2806
|
+
"type": {
|
|
2807
|
+
"text": "boolean"
|
|
2808
|
+
},
|
|
2809
|
+
"default": "false",
|
|
2810
|
+
"attribute": "optional",
|
|
2811
|
+
"reflects": true
|
|
2812
|
+
},
|
|
2813
|
+
{
|
|
2814
|
+
"kind": "field",
|
|
2815
|
+
"name": "showError",
|
|
2816
|
+
"type": {
|
|
2817
|
+
"text": "boolean"
|
|
2818
|
+
},
|
|
2819
|
+
"default": "false",
|
|
2820
|
+
"attribute": "showError",
|
|
2821
|
+
"reflects": true
|
|
2822
|
+
},
|
|
2823
|
+
{
|
|
2824
|
+
"kind": "field",
|
|
2825
|
+
"name": "errorMessage",
|
|
2826
|
+
"type": {
|
|
2827
|
+
"text": "string"
|
|
2828
|
+
},
|
|
2829
|
+
"default": "\"\"",
|
|
2830
|
+
"attribute": "errorMessage"
|
|
2831
|
+
},
|
|
2832
|
+
{
|
|
2833
|
+
"kind": "field",
|
|
2834
|
+
"name": "form",
|
|
2835
|
+
"type": {
|
|
2836
|
+
"text": "string | null"
|
|
2837
|
+
},
|
|
2838
|
+
"default": "null",
|
|
2839
|
+
"attribute": "form",
|
|
2840
|
+
"reflects": true
|
|
2841
|
+
},
|
|
2842
|
+
{
|
|
2843
|
+
"kind": "field",
|
|
2844
|
+
"name": "tooltip",
|
|
2845
|
+
"type": {
|
|
2846
|
+
"text": "string"
|
|
2847
|
+
},
|
|
2848
|
+
"default": "\"\"",
|
|
2849
|
+
"attribute": "tooltip"
|
|
2850
|
+
},
|
|
2851
|
+
{
|
|
2852
|
+
"kind": "field",
|
|
2853
|
+
"name": "type",
|
|
2854
|
+
"type": {
|
|
2855
|
+
"text": "string"
|
|
2856
|
+
},
|
|
2857
|
+
"default": "\"date\"",
|
|
2858
|
+
"attribute": "type"
|
|
2859
|
+
},
|
|
2860
|
+
{
|
|
2861
|
+
"kind": "field",
|
|
2862
|
+
"name": "label",
|
|
2863
|
+
"type": {
|
|
2864
|
+
"text": "string"
|
|
2865
|
+
},
|
|
2866
|
+
"default": "\"\"",
|
|
2867
|
+
"attribute": "label"
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
"kind": "field",
|
|
2871
|
+
"name": "description",
|
|
2872
|
+
"type": {
|
|
2873
|
+
"text": "string"
|
|
2874
|
+
},
|
|
2875
|
+
"default": "\"\"",
|
|
2876
|
+
"attribute": "description"
|
|
2877
|
+
},
|
|
2878
|
+
{
|
|
2879
|
+
"kind": "field",
|
|
2880
|
+
"name": "startDate",
|
|
2881
|
+
"type": {
|
|
2882
|
+
"text": "string"
|
|
2883
|
+
},
|
|
2884
|
+
"default": "\"\"",
|
|
2885
|
+
"attribute": "startDate"
|
|
2886
|
+
},
|
|
2887
|
+
{
|
|
2888
|
+
"kind": "field",
|
|
2889
|
+
"name": "inverted",
|
|
2890
|
+
"type": {
|
|
2891
|
+
"text": "boolean"
|
|
2892
|
+
},
|
|
2893
|
+
"default": "false",
|
|
2894
|
+
"attribute": "inverted",
|
|
2895
|
+
"reflects": true
|
|
2896
|
+
},
|
|
2897
|
+
{
|
|
2898
|
+
"kind": "field",
|
|
2899
|
+
"name": "value",
|
|
2900
|
+
"type": {
|
|
2901
|
+
"text": "string | Date | undefined"
|
|
2902
|
+
},
|
|
2903
|
+
"default": "undefined",
|
|
2904
|
+
"attribute": "value"
|
|
2905
|
+
},
|
|
2906
|
+
{
|
|
2907
|
+
"kind": "field",
|
|
2908
|
+
"name": "_hasUserInteracted",
|
|
2909
|
+
"type": {
|
|
2910
|
+
"text": "boolean"
|
|
2911
|
+
},
|
|
2912
|
+
"privacy": "private",
|
|
2913
|
+
"default": "false"
|
|
2914
|
+
},
|
|
2915
|
+
{
|
|
2916
|
+
"kind": "field",
|
|
2917
|
+
"name": "_internals",
|
|
2918
|
+
"type": {
|
|
2919
|
+
"text": "ElementInternals"
|
|
2920
|
+
},
|
|
2921
|
+
"privacy": "private"
|
|
2922
|
+
},
|
|
2923
|
+
{
|
|
2924
|
+
"kind": "field",
|
|
2925
|
+
"name": "formAssociated",
|
|
2926
|
+
"type": {
|
|
2927
|
+
"text": "boolean"
|
|
2928
|
+
},
|
|
2929
|
+
"static": true,
|
|
2930
|
+
"default": "true",
|
|
2931
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
2932
|
+
},
|
|
2933
|
+
{
|
|
2934
|
+
"kind": "method",
|
|
2935
|
+
"name": "_whenWcDatepickerReady",
|
|
2936
|
+
"privacy": "private",
|
|
2937
|
+
"return": {
|
|
2938
|
+
"type": {
|
|
2939
|
+
"text": "Promise<WcDatepicker | null>"
|
|
2940
|
+
}
|
|
2941
|
+
}
|
|
2942
|
+
},
|
|
2943
|
+
{
|
|
2944
|
+
"kind": "method",
|
|
2945
|
+
"name": "_setValue",
|
|
2946
|
+
"privacy": "private",
|
|
2947
|
+
"parameters": [
|
|
2948
|
+
{
|
|
2949
|
+
"name": "value",
|
|
2950
|
+
"type": {
|
|
2951
|
+
"text": "Date | string | undefined"
|
|
2952
|
+
}
|
|
2953
|
+
}
|
|
2954
|
+
],
|
|
2955
|
+
"description": "Form helper methods:\n- _setValue: set internal value and trigger validation\n- _manageRequire: handle required state\n- _validate: actively validate and show errors\n- checkValidity: passive boolean check without UI\n- _setValidityMessage: sync validation message with UI and internals\n- _handleInvalid: handle form invalid event and focus first invalid field"
|
|
2956
|
+
},
|
|
2957
|
+
{
|
|
2958
|
+
"kind": "method",
|
|
2959
|
+
"name": "_manageRequire",
|
|
2960
|
+
"privacy": "private"
|
|
2961
|
+
},
|
|
2962
|
+
{
|
|
2963
|
+
"kind": "method",
|
|
2964
|
+
"name": "_validate",
|
|
2965
|
+
"privacy": "private",
|
|
2966
|
+
"description": "Actively validates the component:\n- Updates internal validity state\n- Updates UI (e.g. showError)\n- Called on blur/change or form submission"
|
|
2967
|
+
},
|
|
2968
|
+
{
|
|
2969
|
+
"kind": "method",
|
|
2970
|
+
"name": "checkValidity",
|
|
2971
|
+
"return": {
|
|
2972
|
+
"type": {
|
|
2973
|
+
"text": "boolean"
|
|
2974
|
+
}
|
|
2975
|
+
},
|
|
2976
|
+
"description": "Passive check of validity:\n- Returns true/false\n- Does NOT update UI or show errors\n- Used in form submission checks"
|
|
2977
|
+
},
|
|
2978
|
+
{
|
|
2979
|
+
"kind": "method",
|
|
2980
|
+
"name": "_setValidityMessage",
|
|
2981
|
+
"privacy": "private",
|
|
2982
|
+
"parameters": [
|
|
2983
|
+
{
|
|
2984
|
+
"name": "message",
|
|
2985
|
+
"default": "\"\"",
|
|
2986
|
+
"type": {
|
|
2987
|
+
"text": "string"
|
|
2988
|
+
}
|
|
2989
|
+
}
|
|
2990
|
+
]
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
"kind": "method",
|
|
2994
|
+
"name": "_handleInvalid",
|
|
2995
|
+
"privacy": "private",
|
|
2996
|
+
"parameters": [
|
|
2997
|
+
{
|
|
2998
|
+
"name": "event",
|
|
2999
|
+
"type": {
|
|
3000
|
+
"text": "Event"
|
|
3001
|
+
}
|
|
3002
|
+
}
|
|
3003
|
+
]
|
|
3004
|
+
},
|
|
3005
|
+
{
|
|
3006
|
+
"kind": "method",
|
|
3007
|
+
"name": "_replaceButtonSVG",
|
|
3008
|
+
"privacy": "private",
|
|
3009
|
+
"description": "Replaces the default wc-datepicker month navigation buttons\nwith NYS icon components for previous and next month."
|
|
3010
|
+
},
|
|
3011
|
+
{
|
|
3012
|
+
"kind": "method",
|
|
3013
|
+
"name": "_addMonthDropdownIcon",
|
|
3014
|
+
"privacy": "private"
|
|
3015
|
+
},
|
|
3016
|
+
{
|
|
3017
|
+
"kind": "method",
|
|
3018
|
+
"name": "_parseLocalDate",
|
|
3019
|
+
"privacy": "private",
|
|
3020
|
+
"parameters": [
|
|
3021
|
+
{
|
|
3022
|
+
"name": "dateString",
|
|
3023
|
+
"type": {
|
|
3024
|
+
"text": "string"
|
|
3025
|
+
}
|
|
3026
|
+
}
|
|
3027
|
+
]
|
|
3028
|
+
},
|
|
3029
|
+
{
|
|
3030
|
+
"kind": "method",
|
|
3031
|
+
"name": "_handleInputKeydown",
|
|
3032
|
+
"privacy": "private",
|
|
3033
|
+
"parameters": [
|
|
3034
|
+
{
|
|
3035
|
+
"name": "event",
|
|
3036
|
+
"type": {
|
|
3037
|
+
"text": "KeyboardEvent"
|
|
3038
|
+
}
|
|
3039
|
+
}
|
|
3040
|
+
],
|
|
3041
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
3042
|
+
},
|
|
3043
|
+
{
|
|
3044
|
+
"kind": "method",
|
|
3045
|
+
"name": "_handleBlur",
|
|
3046
|
+
"privacy": "private",
|
|
3047
|
+
"parameters": [
|
|
3048
|
+
{
|
|
3049
|
+
"name": "event",
|
|
3050
|
+
"type": {
|
|
3051
|
+
"text": "FocusEvent"
|
|
3052
|
+
}
|
|
3053
|
+
}
|
|
3054
|
+
]
|
|
3055
|
+
},
|
|
3056
|
+
{
|
|
3057
|
+
"kind": "method",
|
|
3058
|
+
"name": "_onDocumentClick",
|
|
3059
|
+
"privacy": "private"
|
|
3060
|
+
},
|
|
3061
|
+
{
|
|
3062
|
+
"kind": "method",
|
|
3063
|
+
"name": "_toggleDatepicker",
|
|
3064
|
+
"privacy": "private"
|
|
3065
|
+
},
|
|
3066
|
+
{
|
|
3067
|
+
"kind": "method",
|
|
3068
|
+
"name": "_openDatepicker",
|
|
3069
|
+
"privacy": "private"
|
|
3070
|
+
},
|
|
3071
|
+
{
|
|
3072
|
+
"kind": "method",
|
|
3073
|
+
"name": "_handleDateChange",
|
|
3074
|
+
"privacy": "private"
|
|
3075
|
+
},
|
|
3076
|
+
{
|
|
3077
|
+
"kind": "method",
|
|
3078
|
+
"name": "_handleTodayClick",
|
|
3079
|
+
"privacy": "private"
|
|
3080
|
+
},
|
|
3081
|
+
{
|
|
3082
|
+
"kind": "method",
|
|
3083
|
+
"name": "_handleClearClick",
|
|
3084
|
+
"privacy": "private"
|
|
3085
|
+
},
|
|
3086
|
+
{
|
|
3087
|
+
"kind": "method",
|
|
3088
|
+
"name": "_handleInputChange",
|
|
3089
|
+
"privacy": "private",
|
|
3090
|
+
"parameters": [
|
|
3091
|
+
{
|
|
3092
|
+
"name": "event",
|
|
3093
|
+
"type": {
|
|
3094
|
+
"text": "Event"
|
|
3095
|
+
}
|
|
3096
|
+
}
|
|
3097
|
+
]
|
|
3098
|
+
},
|
|
3099
|
+
{
|
|
3100
|
+
"kind": "method",
|
|
3101
|
+
"name": "_getValidDateFromInput",
|
|
3102
|
+
"privacy": "private",
|
|
3103
|
+
"return": {
|
|
3104
|
+
"type": {
|
|
3105
|
+
"text": "Date | null"
|
|
3106
|
+
}
|
|
3107
|
+
},
|
|
3108
|
+
"parameters": [
|
|
3109
|
+
{
|
|
3110
|
+
"name": "value",
|
|
3111
|
+
"type": {
|
|
3112
|
+
"text": "string"
|
|
3113
|
+
}
|
|
3114
|
+
}
|
|
3115
|
+
]
|
|
3116
|
+
},
|
|
3117
|
+
{
|
|
3118
|
+
"kind": "method",
|
|
3119
|
+
"name": "_isSafari",
|
|
3120
|
+
"privacy": "private",
|
|
3121
|
+
"return": {
|
|
3122
|
+
"type": {
|
|
3123
|
+
"text": "boolean"
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
},
|
|
3127
|
+
{
|
|
3128
|
+
"kind": "method",
|
|
3129
|
+
"name": "_isMobile",
|
|
3130
|
+
"privacy": "private",
|
|
3131
|
+
"return": {
|
|
3132
|
+
"type": {
|
|
3133
|
+
"text": ""
|
|
3134
|
+
}
|
|
3135
|
+
},
|
|
3136
|
+
"description": "Determines whether the current device uses a coarse pointer.\nA coarse pointer usually means touch-based input where precise pointing\nis not expected, such as fingers on phones and most tablets.\n\nNote: This is not a guarantee of a mobile device.\nSome non-mobile devices may also report a coarse pointer,\nand some mobile devices may not."
|
|
3137
|
+
},
|
|
3138
|
+
{
|
|
3139
|
+
"kind": "method",
|
|
3140
|
+
"name": "_shouldUseNativeDatepicker",
|
|
3141
|
+
"privacy": "private",
|
|
3142
|
+
"return": {
|
|
3143
|
+
"type": {
|
|
3144
|
+
"text": "boolean"
|
|
3145
|
+
}
|
|
3146
|
+
}
|
|
3147
|
+
}
|
|
3148
|
+
],
|
|
3149
|
+
"events": [
|
|
3150
|
+
{
|
|
3151
|
+
"name": "nys-blur",
|
|
3152
|
+
"type": {
|
|
3153
|
+
"text": "Event"
|
|
3154
|
+
},
|
|
3155
|
+
"description": "Dispatched when input or calendar loses focus"
|
|
3156
|
+
},
|
|
3157
|
+
{
|
|
3158
|
+
"name": "nys-input",
|
|
3159
|
+
"type": {
|
|
3160
|
+
"text": "CustomEvent"
|
|
3161
|
+
},
|
|
3162
|
+
"description": "Dispatched when user selects or types a valid date Notes: - Uses native date input on Safari or mobile devices (custom calendar removed for these scenarios)"
|
|
3163
|
+
}
|
|
3164
|
+
],
|
|
3165
|
+
"attributes": [
|
|
3166
|
+
{
|
|
3167
|
+
"name": "id",
|
|
3168
|
+
"type": {
|
|
3169
|
+
"text": "string"
|
|
3170
|
+
},
|
|
3171
|
+
"default": "\"\"",
|
|
3172
|
+
"fieldName": "id"
|
|
3173
|
+
},
|
|
3174
|
+
{
|
|
3175
|
+
"name": "name",
|
|
3176
|
+
"type": {
|
|
3177
|
+
"text": "string"
|
|
3178
|
+
},
|
|
3179
|
+
"default": "\"\"",
|
|
3180
|
+
"fieldName": "name"
|
|
3181
|
+
},
|
|
3182
|
+
{
|
|
3183
|
+
"name": "width",
|
|
3184
|
+
"type": {
|
|
3185
|
+
"text": "\"md\" | \"lg\" | \"full\""
|
|
3186
|
+
},
|
|
3187
|
+
"default": "\"md\"",
|
|
3188
|
+
"fieldName": "width"
|
|
3189
|
+
},
|
|
3190
|
+
{
|
|
3191
|
+
"name": "hideTodayButton",
|
|
3192
|
+
"type": {
|
|
3193
|
+
"text": "boolean"
|
|
3194
|
+
},
|
|
3195
|
+
"default": "false",
|
|
3196
|
+
"fieldName": "hideTodayButton"
|
|
3197
|
+
},
|
|
3198
|
+
{
|
|
3199
|
+
"name": "hideClearButton",
|
|
3200
|
+
"type": {
|
|
3201
|
+
"text": "boolean"
|
|
3202
|
+
},
|
|
3203
|
+
"default": "false",
|
|
3204
|
+
"fieldName": "hideClearButton"
|
|
3205
|
+
},
|
|
3206
|
+
{
|
|
3207
|
+
"name": "disabled",
|
|
3208
|
+
"type": {
|
|
3209
|
+
"text": "boolean"
|
|
3210
|
+
},
|
|
3211
|
+
"default": "false",
|
|
3212
|
+
"fieldName": "disabled"
|
|
3213
|
+
},
|
|
3214
|
+
{
|
|
3215
|
+
"name": "required",
|
|
3216
|
+
"type": {
|
|
3217
|
+
"text": "boolean"
|
|
3218
|
+
},
|
|
3219
|
+
"default": "false",
|
|
3220
|
+
"fieldName": "required"
|
|
3221
|
+
},
|
|
3222
|
+
{
|
|
3223
|
+
"name": "optional",
|
|
3224
|
+
"type": {
|
|
3225
|
+
"text": "boolean"
|
|
3226
|
+
},
|
|
3227
|
+
"default": "false",
|
|
3228
|
+
"fieldName": "optional"
|
|
3229
|
+
},
|
|
3230
|
+
{
|
|
3231
|
+
"name": "showError",
|
|
3232
|
+
"type": {
|
|
3233
|
+
"text": "boolean"
|
|
3234
|
+
},
|
|
3235
|
+
"default": "false",
|
|
3236
|
+
"fieldName": "showError"
|
|
3237
|
+
},
|
|
3238
|
+
{
|
|
3239
|
+
"name": "errorMessage",
|
|
3240
|
+
"type": {
|
|
3241
|
+
"text": "string"
|
|
3242
|
+
},
|
|
3243
|
+
"default": "\"\"",
|
|
3244
|
+
"fieldName": "errorMessage"
|
|
3245
|
+
},
|
|
3246
|
+
{
|
|
3247
|
+
"name": "form",
|
|
3248
|
+
"type": {
|
|
3249
|
+
"text": "string | null"
|
|
3250
|
+
},
|
|
3251
|
+
"default": "null",
|
|
3252
|
+
"fieldName": "form"
|
|
3253
|
+
},
|
|
3254
|
+
{
|
|
3255
|
+
"name": "tooltip",
|
|
3256
|
+
"type": {
|
|
3257
|
+
"text": "string"
|
|
3258
|
+
},
|
|
3259
|
+
"default": "\"\"",
|
|
3260
|
+
"fieldName": "tooltip"
|
|
3261
|
+
},
|
|
3262
|
+
{
|
|
3263
|
+
"name": "type",
|
|
3264
|
+
"type": {
|
|
3265
|
+
"text": "string"
|
|
3266
|
+
},
|
|
3267
|
+
"default": "\"date\"",
|
|
3268
|
+
"fieldName": "type"
|
|
3269
|
+
},
|
|
3270
|
+
{
|
|
3271
|
+
"name": "label",
|
|
3272
|
+
"type": {
|
|
3273
|
+
"text": "string"
|
|
3274
|
+
},
|
|
3275
|
+
"default": "\"\"",
|
|
3276
|
+
"fieldName": "label"
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
"name": "description",
|
|
3280
|
+
"type": {
|
|
3281
|
+
"text": "string"
|
|
3282
|
+
},
|
|
3283
|
+
"default": "\"\"",
|
|
3284
|
+
"fieldName": "description"
|
|
3285
|
+
},
|
|
3286
|
+
{
|
|
3287
|
+
"name": "startDate",
|
|
3288
|
+
"type": {
|
|
3289
|
+
"text": "string"
|
|
3290
|
+
},
|
|
3291
|
+
"default": "\"\"",
|
|
3292
|
+
"fieldName": "startDate"
|
|
3293
|
+
},
|
|
3294
|
+
{
|
|
3295
|
+
"name": "inverted",
|
|
3296
|
+
"type": {
|
|
3297
|
+
"text": "boolean"
|
|
3298
|
+
},
|
|
3299
|
+
"default": "false",
|
|
3300
|
+
"fieldName": "inverted"
|
|
3301
|
+
},
|
|
3302
|
+
{
|
|
3303
|
+
"name": "value",
|
|
3304
|
+
"type": {
|
|
3305
|
+
"text": "string | Date | undefined"
|
|
3306
|
+
},
|
|
3307
|
+
"default": "undefined",
|
|
3308
|
+
"fieldName": "value"
|
|
3309
|
+
}
|
|
3310
|
+
],
|
|
3311
|
+
"superclass": {
|
|
3312
|
+
"name": "LitElement",
|
|
3313
|
+
"package": "lit"
|
|
3314
|
+
},
|
|
3315
|
+
"tagName": "nys-datepicker",
|
|
3316
|
+
"customElement": true
|
|
3317
|
+
}
|
|
3318
|
+
],
|
|
3319
|
+
"exports": [
|
|
3320
|
+
{
|
|
3321
|
+
"kind": "custom-element-definition",
|
|
3322
|
+
"name": "nys-datepicker",
|
|
3323
|
+
"declaration": {
|
|
3324
|
+
"name": "NysDatepicker",
|
|
3325
|
+
"module": "packages/nys-datepicker/src/nys-datepicker.ts"
|
|
3326
|
+
}
|
|
3327
|
+
},
|
|
3328
|
+
{
|
|
3329
|
+
"kind": "js",
|
|
3330
|
+
"name": "NysDatepicker",
|
|
3331
|
+
"declaration": {
|
|
3332
|
+
"name": "NysDatepicker",
|
|
3333
|
+
"module": "packages/nys-datepicker/src/nys-datepicker.ts"
|
|
3334
|
+
}
|
|
3335
|
+
},
|
|
3336
|
+
{
|
|
3337
|
+
"kind": "custom-element-definition",
|
|
3338
|
+
"name": "wc-datepicker",
|
|
3339
|
+
"declaration": {
|
|
3340
|
+
"name": "WcDatepicker",
|
|
3341
|
+
"package": "wc-datepicker/dist/components/wc-datepicker"
|
|
3342
|
+
}
|
|
3343
|
+
}
|
|
3344
|
+
]
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
"kind": "javascript-module",
|
|
3348
|
+
"path": "packages/nys-divider/src/index.ts",
|
|
3349
|
+
"declarations": [],
|
|
3350
|
+
"exports": [
|
|
3351
|
+
{
|
|
3352
|
+
"kind": "js",
|
|
3353
|
+
"name": "*",
|
|
3354
|
+
"declaration": {
|
|
3355
|
+
"name": "*",
|
|
3356
|
+
"module": "packages/nys-divider/src/nys-divider"
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
]
|
|
3360
|
+
},
|
|
3361
|
+
{
|
|
3362
|
+
"kind": "javascript-module",
|
|
3363
|
+
"path": "packages/nys-divider/src/nys-divider.ts",
|
|
3364
|
+
"declarations": [
|
|
3365
|
+
{
|
|
3366
|
+
"kind": "class",
|
|
3367
|
+
"description": "`<nys-divider>` renders a horizontal rule `<hr>` element with optional styling.\nCan be inverted for dark backgrounds.",
|
|
3368
|
+
"name": "NysDivider",
|
|
2783
3369
|
"members": [
|
|
2784
3370
|
{
|
|
2785
3371
|
"kind": "field",
|
|
@@ -2850,7 +3436,7 @@
|
|
|
2850
3436
|
"declarations": [
|
|
2851
3437
|
{
|
|
2852
3438
|
"kind": "class",
|
|
2853
|
-
"description": "",
|
|
3439
|
+
"description": "THIS IS A PRIVATE COMPONENT!\n`<nys-errormessage>` displays an error message for form elements.\nCan optionally show a divider and supports native form validation messages.",
|
|
2854
3440
|
"name": "NysErrorMessage",
|
|
2855
3441
|
"members": [
|
|
2856
3442
|
{
|
|
@@ -2897,7 +3483,7 @@
|
|
|
2897
3483
|
},
|
|
2898
3484
|
"static": true,
|
|
2899
3485
|
"default": "true",
|
|
2900
|
-
"description": "
|
|
3486
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
2901
3487
|
}
|
|
2902
3488
|
],
|
|
2903
3489
|
"attributes": [
|
|
@@ -2974,8 +3560,14 @@
|
|
|
2974
3560
|
"declarations": [
|
|
2975
3561
|
{
|
|
2976
3562
|
"kind": "class",
|
|
2977
|
-
"description": "",
|
|
3563
|
+
"description": "`<nys-fileinput>` provides accessible file selection with optional\ndrag-and-drop support, progress tracking, validation, and form submission.\n\nFeatures:\n- Supports single or multiple file uploads\n- Optional drag-and-drop dropzone\n- File type validation and upload progress\n- Form-associated with native validation behavior\n- Keyboard and screen reader accessible",
|
|
2978
3564
|
"name": "NysFileinput",
|
|
3565
|
+
"slots": [
|
|
3566
|
+
{
|
|
3567
|
+
"description": "Custom description content under the label",
|
|
3568
|
+
"name": "description"
|
|
3569
|
+
}
|
|
3570
|
+
],
|
|
2979
3571
|
"members": [
|
|
2980
3572
|
{
|
|
2981
3573
|
"kind": "field",
|
|
@@ -3036,12 +3628,12 @@
|
|
|
3036
3628
|
},
|
|
3037
3629
|
{
|
|
3038
3630
|
"kind": "field",
|
|
3039
|
-
"name": "
|
|
3631
|
+
"name": "tooltip",
|
|
3040
3632
|
"type": {
|
|
3041
3633
|
"text": "string"
|
|
3042
3634
|
},
|
|
3043
3635
|
"default": "\"\"",
|
|
3044
|
-
"attribute": "
|
|
3636
|
+
"attribute": "tooltip"
|
|
3045
3637
|
},
|
|
3046
3638
|
{
|
|
3047
3639
|
"kind": "field",
|
|
@@ -3200,13 +3792,13 @@
|
|
|
3200
3792
|
},
|
|
3201
3793
|
"static": true,
|
|
3202
3794
|
"default": "true",
|
|
3203
|
-
"description": "
|
|
3795
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
3204
3796
|
},
|
|
3205
3797
|
{
|
|
3206
3798
|
"kind": "method",
|
|
3207
3799
|
"name": "_setValue",
|
|
3208
3800
|
"privacy": "private",
|
|
3209
|
-
"description": "
|
|
3801
|
+
"description": "Form Integration\n--------------------------------------------------------------------------"
|
|
3210
3802
|
},
|
|
3211
3803
|
{
|
|
3212
3804
|
"kind": "method",
|
|
@@ -3266,7 +3858,7 @@
|
|
|
3266
3858
|
}
|
|
3267
3859
|
}
|
|
3268
3860
|
],
|
|
3269
|
-
"description": "
|
|
3861
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
3270
3862
|
},
|
|
3271
3863
|
{
|
|
3272
3864
|
"kind": "method",
|
|
@@ -3313,7 +3905,7 @@
|
|
|
3313
3905
|
}
|
|
3314
3906
|
}
|
|
3315
3907
|
],
|
|
3316
|
-
"description": "
|
|
3908
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
3317
3909
|
},
|
|
3318
3910
|
{
|
|
3319
3911
|
"kind": "method",
|
|
@@ -3373,7 +3965,8 @@
|
|
|
3373
3965
|
"name": "nys-change",
|
|
3374
3966
|
"type": {
|
|
3375
3967
|
"text": "CustomEvent"
|
|
3376
|
-
}
|
|
3968
|
+
},
|
|
3969
|
+
"description": "Fired when files are added or removed"
|
|
3377
3970
|
}
|
|
3378
3971
|
],
|
|
3379
3972
|
"attributes": [
|
|
@@ -3426,12 +4019,12 @@
|
|
|
3426
4019
|
"fieldName": "form"
|
|
3427
4020
|
},
|
|
3428
4021
|
{
|
|
3429
|
-
"name": "
|
|
4022
|
+
"name": "tooltip",
|
|
3430
4023
|
"type": {
|
|
3431
4024
|
"text": "string"
|
|
3432
4025
|
},
|
|
3433
4026
|
"default": "\"\"",
|
|
3434
|
-
"fieldName": "
|
|
4027
|
+
"fieldName": "tooltip"
|
|
3435
4028
|
},
|
|
3436
4029
|
{
|
|
3437
4030
|
"name": "accept",
|
|
@@ -3539,7 +4132,7 @@
|
|
|
3539
4132
|
"declarations": [
|
|
3540
4133
|
{
|
|
3541
4134
|
"kind": "class",
|
|
3542
|
-
"description": "",
|
|
4135
|
+
"description": "`<nys-fileitem>` displays an individual file in a file input component.\nIt shows the file name, upload status, progress bar, and error messages.",
|
|
3543
4136
|
"name": "NysFileItem",
|
|
3544
4137
|
"members": [
|
|
3545
4138
|
{
|
|
@@ -3726,8 +4319,14 @@
|
|
|
3726
4319
|
"declarations": [
|
|
3727
4320
|
{
|
|
3728
4321
|
"kind": "class",
|
|
3729
|
-
"description": "",
|
|
4322
|
+
"description": "`<nys-globalfooter>` renders a New York State–style global footer.\n\nDisplays an agency name with an optional homepage link and supports\nstructured footer content via slots.",
|
|
3730
4323
|
"name": "NysGlobalFooter",
|
|
4324
|
+
"slots": [
|
|
4325
|
+
{
|
|
4326
|
+
"description": "Footer content such as headings, links, or groups Layout behavior: - Multiple `<h4>` elements trigger a multi-column layout - Single group content renders in a compact layout",
|
|
4327
|
+
"name": "default"
|
|
4328
|
+
}
|
|
4329
|
+
],
|
|
3731
4330
|
"members": [
|
|
3732
4331
|
{
|
|
3733
4332
|
"kind": "field",
|
|
@@ -3736,7 +4335,6 @@
|
|
|
3736
4335
|
"text": "string"
|
|
3737
4336
|
},
|
|
3738
4337
|
"default": "\"\"",
|
|
3739
|
-
"description": "******************** Properties *********************",
|
|
3740
4338
|
"attribute": "agencyName"
|
|
3741
4339
|
},
|
|
3742
4340
|
{
|
|
@@ -3761,7 +4359,7 @@
|
|
|
3761
4359
|
"kind": "method",
|
|
3762
4360
|
"name": "_handleSlotChange",
|
|
3763
4361
|
"privacy": "private",
|
|
3764
|
-
"description": "
|
|
4362
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
3765
4363
|
}
|
|
3766
4364
|
],
|
|
3767
4365
|
"attributes": [
|
|
@@ -3771,7 +4369,6 @@
|
|
|
3771
4369
|
"text": "string"
|
|
3772
4370
|
},
|
|
3773
4371
|
"default": "\"\"",
|
|
3774
|
-
"description": "******************** Properties *********************",
|
|
3775
4372
|
"fieldName": "agencyName"
|
|
3776
4373
|
},
|
|
3777
4374
|
{
|
|
@@ -3831,8 +4428,18 @@
|
|
|
3831
4428
|
"declarations": [
|
|
3832
4429
|
{
|
|
3833
4430
|
"kind": "class",
|
|
3834
|
-
"description": "",
|
|
4431
|
+
"description": "`<nys-globalheader>` renders a New York State–style global header.\n\nDisplays an optional application name, agency name, and homepage link.\nSupports slotted navigation content with automatic active-link detection\nand a responsive mobile menu.",
|
|
3835
4432
|
"name": "NysGlobalHeader",
|
|
4433
|
+
"slots": [
|
|
4434
|
+
{
|
|
4435
|
+
"description": "Primary navigation list, typically a `<ul>` with links",
|
|
4436
|
+
"name": "default"
|
|
4437
|
+
},
|
|
4438
|
+
{
|
|
4439
|
+
"description": "Optional user action elements such as login or profile Behavior: - Automatically highlights the best matching link based on the current URL - Duplicates navigation content for desktop and mobile layouts - Provides a toggleable mobile menu when navigation content exists",
|
|
4440
|
+
"name": "user-actions"
|
|
4441
|
+
}
|
|
4442
|
+
],
|
|
3836
4443
|
"members": [
|
|
3837
4444
|
{
|
|
3838
4445
|
"kind": "field",
|
|
@@ -3841,7 +4448,6 @@
|
|
|
3841
4448
|
"text": "string"
|
|
3842
4449
|
},
|
|
3843
4450
|
"default": "\"\"",
|
|
3844
|
-
"description": "******************** Properties *********************",
|
|
3845
4451
|
"attribute": "appName"
|
|
3846
4452
|
},
|
|
3847
4453
|
{
|
|
@@ -3864,16 +4470,16 @@
|
|
|
3864
4470
|
},
|
|
3865
4471
|
{
|
|
3866
4472
|
"kind": "field",
|
|
3867
|
-
"name": "
|
|
4473
|
+
"name": "isMobileMenuOpen",
|
|
3868
4474
|
"type": {
|
|
3869
4475
|
"text": "boolean"
|
|
3870
4476
|
},
|
|
3871
4477
|
"privacy": "private",
|
|
3872
|
-
"default": "
|
|
4478
|
+
"default": "false"
|
|
3873
4479
|
},
|
|
3874
4480
|
{
|
|
3875
4481
|
"kind": "field",
|
|
3876
|
-
"name": "
|
|
4482
|
+
"name": "hasLinkContent",
|
|
3877
4483
|
"type": {
|
|
3878
4484
|
"text": "boolean"
|
|
3879
4485
|
},
|
|
@@ -3882,17 +4488,35 @@
|
|
|
3882
4488
|
},
|
|
3883
4489
|
{
|
|
3884
4490
|
"kind": "method",
|
|
3885
|
-
"name": "
|
|
4491
|
+
"name": "_highlightActiveLink",
|
|
3886
4492
|
"privacy": "private",
|
|
3887
|
-
"
|
|
4493
|
+
"parameters": [
|
|
4494
|
+
{
|
|
4495
|
+
"name": "container",
|
|
4496
|
+
"type": {
|
|
4497
|
+
"text": "HTMLElement"
|
|
4498
|
+
}
|
|
4499
|
+
}
|
|
4500
|
+
],
|
|
4501
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
4502
|
+
},
|
|
4503
|
+
{
|
|
4504
|
+
"kind": "method",
|
|
4505
|
+
"name": "_handleListSlotChange",
|
|
4506
|
+
"privacy": "private"
|
|
3888
4507
|
},
|
|
3889
4508
|
{
|
|
3890
4509
|
"kind": "method",
|
|
3891
4510
|
"name": "_normalizePath",
|
|
3892
4511
|
"privacy": "private",
|
|
4512
|
+
"return": {
|
|
4513
|
+
"type": {
|
|
4514
|
+
"text": "string | null"
|
|
4515
|
+
}
|
|
4516
|
+
},
|
|
3893
4517
|
"parameters": [
|
|
3894
4518
|
{
|
|
3895
|
-
"name": "
|
|
4519
|
+
"name": "href",
|
|
3896
4520
|
"type": {
|
|
3897
4521
|
"text": "string | null"
|
|
3898
4522
|
}
|
|
@@ -3907,8 +4531,7 @@
|
|
|
3907
4531
|
{
|
|
3908
4532
|
"kind": "method",
|
|
3909
4533
|
"name": "_listenLinkClicks",
|
|
3910
|
-
"privacy": "private"
|
|
3911
|
-
"description": "Handles client-side navigation when links are clicked (no full page refresh)."
|
|
4534
|
+
"privacy": "private"
|
|
3912
4535
|
}
|
|
3913
4536
|
],
|
|
3914
4537
|
"attributes": [
|
|
@@ -3918,7 +4541,6 @@
|
|
|
3918
4541
|
"text": "string"
|
|
3919
4542
|
},
|
|
3920
4543
|
"default": "\"\"",
|
|
3921
|
-
"description": "******************** Properties *********************",
|
|
3922
4544
|
"fieldName": "appName"
|
|
3923
4545
|
},
|
|
3924
4546
|
{
|
|
@@ -3986,7 +4608,7 @@
|
|
|
3986
4608
|
"declarations": [
|
|
3987
4609
|
{
|
|
3988
4610
|
"kind": "class",
|
|
3989
|
-
"description": "",
|
|
4611
|
+
"description": "`<nys-icon>` renders an SVG icon from the internal icon library.\n\nIcons are inline SVGs and support sizing, rotation, flipping, color,\nand accessibility labeling.",
|
|
3990
4612
|
"name": "NysIcon",
|
|
3991
4613
|
"members": [
|
|
3992
4614
|
{
|
|
@@ -4035,34 +4657,14 @@
|
|
|
4035
4657
|
"default": "\"\"",
|
|
4036
4658
|
"attribute": "color"
|
|
4037
4659
|
},
|
|
4038
|
-
{
|
|
4039
|
-
"kind": "field",
|
|
4040
|
-
"name": "VALID_TYPES",
|
|
4041
|
-
"privacy": "private",
|
|
4042
|
-
"static": true,
|
|
4043
|
-
"readonly": true,
|
|
4044
|
-
"default": "[ \"xs\", \"sm\", \"md\", \"lg\", \"xl\", \"2xl\", \"3xl\", \"4xl\", \"5xl\", \"12\", \"14\", \"16\", \"18\", \"20\", \"24\", \"32\", \"40\", \"50\", ]",
|
|
4045
|
-
"type": {
|
|
4046
|
-
"text": "[\n \"xs\",\n \"sm\",\n \"md\",\n \"lg\",\n \"xl\",\n \"2xl\",\n \"3xl\",\n \"4xl\",\n \"5xl\",\n \"12\",\n \"14\",\n \"16\",\n \"18\",\n \"20\",\n \"24\",\n \"32\",\n \"40\",\n \"50\",\n ]"
|
|
4047
|
-
}
|
|
4048
|
-
},
|
|
4049
|
-
{
|
|
4050
|
-
"kind": "field",
|
|
4051
|
-
"name": "_size",
|
|
4052
|
-
"type": {
|
|
4053
|
-
"text": "(typeof NysIcon.VALID_TYPES)[number]"
|
|
4054
|
-
},
|
|
4055
|
-
"privacy": "private",
|
|
4056
|
-
"default": "\"md\""
|
|
4057
|
-
},
|
|
4058
4660
|
{
|
|
4059
4661
|
"kind": "field",
|
|
4060
4662
|
"name": "size",
|
|
4061
4663
|
"type": {
|
|
4062
|
-
"text": "
|
|
4664
|
+
"text": "| \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"12\"\n | \"14\"\n | \"16\"\n | \"18\"\n | \"20\"\n | \"24\"\n | \"32\"\n | \"40\"\n | \"50\""
|
|
4063
4665
|
},
|
|
4064
|
-
"
|
|
4065
|
-
"
|
|
4666
|
+
"default": "\"md\"",
|
|
4667
|
+
"attribute": "size"
|
|
4066
4668
|
},
|
|
4067
4669
|
{
|
|
4068
4670
|
"kind": "method",
|
|
@@ -4070,9 +4672,10 @@
|
|
|
4070
4672
|
"privacy": "private",
|
|
4071
4673
|
"return": {
|
|
4072
4674
|
"type": {
|
|
4073
|
-
"text": "
|
|
4675
|
+
"text": ""
|
|
4074
4676
|
}
|
|
4075
|
-
}
|
|
4677
|
+
},
|
|
4678
|
+
"description": "Retrieves the SVG element for the given icon name and applies\naccessibility, rotation, flip, color, and size classes."
|
|
4076
4679
|
}
|
|
4077
4680
|
],
|
|
4078
4681
|
"attributes": [
|
|
@@ -4119,8 +4722,9 @@
|
|
|
4119
4722
|
{
|
|
4120
4723
|
"name": "size",
|
|
4121
4724
|
"type": {
|
|
4122
|
-
"text": "
|
|
4725
|
+
"text": "| \"xs\"\n | \"sm\"\n | \"md\"\n | \"lg\"\n | \"xl\"\n | \"2xl\"\n | \"3xl\"\n | \"4xl\"\n | \"5xl\"\n | \"12\"\n | \"14\"\n | \"16\"\n | \"18\"\n | \"20\"\n | \"24\"\n | \"32\"\n | \"40\"\n | \"50\""
|
|
4123
4726
|
},
|
|
4727
|
+
"default": "\"md\"",
|
|
4124
4728
|
"fieldName": "size"
|
|
4125
4729
|
}
|
|
4126
4730
|
],
|
|
@@ -4172,7 +4776,7 @@
|
|
|
4172
4776
|
"declarations": [
|
|
4173
4777
|
{
|
|
4174
4778
|
"kind": "class",
|
|
4175
|
-
"description": "",
|
|
4779
|
+
"description": "THIS IS A PRIVATE COMPONENT!\n`NysLabel` is a component for rendering form labels with optional\ndescriptions, flags (required/optional), and tooltips.",
|
|
4176
4780
|
"name": "NysLabel",
|
|
4177
4781
|
"members": [
|
|
4178
4782
|
{
|
|
@@ -4330,8 +4934,18 @@
|
|
|
4330
4934
|
"declarations": [
|
|
4331
4935
|
{
|
|
4332
4936
|
"kind": "class",
|
|
4333
|
-
"description": "",
|
|
4937
|
+
"description": "`<nys-modal>` renders an accessible modal dialog.\n\nSupports headings, optional subheading, body content, and action buttons.\nManages focus trapping, escape key handling, and body scroll locking.",
|
|
4334
4938
|
"name": "NysModal",
|
|
4939
|
+
"slots": [
|
|
4940
|
+
{
|
|
4941
|
+
"description": "Modal body content",
|
|
4942
|
+
"name": ""
|
|
4943
|
+
},
|
|
4944
|
+
{
|
|
4945
|
+
"description": "Action buttons shown in the footer",
|
|
4946
|
+
"name": "actions"
|
|
4947
|
+
}
|
|
4948
|
+
],
|
|
4335
4949
|
"members": [
|
|
4336
4950
|
{
|
|
4337
4951
|
"kind": "field",
|
|
@@ -4381,32 +4995,13 @@
|
|
|
4381
4995
|
"attribute": "mandatory",
|
|
4382
4996
|
"reflects": true
|
|
4383
4997
|
},
|
|
4384
|
-
{
|
|
4385
|
-
"kind": "field",
|
|
4386
|
-
"name": "VALID_WIDTHS",
|
|
4387
|
-
"privacy": "private",
|
|
4388
|
-
"static": true,
|
|
4389
|
-
"readonly": true,
|
|
4390
|
-
"default": "[\"sm\", \"md\", \"lg\"]",
|
|
4391
|
-
"type": {
|
|
4392
|
-
"text": "[\"sm\", \"md\", \"lg\"]"
|
|
4393
|
-
}
|
|
4394
|
-
},
|
|
4395
|
-
{
|
|
4396
|
-
"kind": "field",
|
|
4397
|
-
"name": "_width",
|
|
4398
|
-
"type": {
|
|
4399
|
-
"text": "(typeof NysModal.VALID_WIDTHS)[number]"
|
|
4400
|
-
},
|
|
4401
|
-
"privacy": "private",
|
|
4402
|
-
"default": "\"md\""
|
|
4403
|
-
},
|
|
4404
4998
|
{
|
|
4405
4999
|
"kind": "field",
|
|
4406
5000
|
"name": "width",
|
|
4407
5001
|
"type": {
|
|
4408
|
-
"text": "
|
|
5002
|
+
"text": "\"sm\" | \"md\" | \"lg\""
|
|
4409
5003
|
},
|
|
5004
|
+
"default": "\"md\"",
|
|
4410
5005
|
"attribute": "width",
|
|
4411
5006
|
"reflects": true
|
|
4412
5007
|
},
|
|
@@ -4459,7 +5054,7 @@
|
|
|
4459
5054
|
"kind": "method",
|
|
4460
5055
|
"name": "_hideBodyScroll",
|
|
4461
5056
|
"privacy": "private",
|
|
4462
|
-
"description": "
|
|
5057
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
4463
5058
|
},
|
|
4464
5059
|
{
|
|
4465
5060
|
"kind": "method",
|
|
@@ -4529,7 +5124,7 @@
|
|
|
4529
5124
|
}
|
|
4530
5125
|
}
|
|
4531
5126
|
],
|
|
4532
|
-
"description": "
|
|
5127
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
4533
5128
|
},
|
|
4534
5129
|
{
|
|
4535
5130
|
"kind": "method",
|
|
@@ -4542,13 +5137,15 @@
|
|
|
4542
5137
|
"name": "nys-open",
|
|
4543
5138
|
"type": {
|
|
4544
5139
|
"text": "CustomEvent"
|
|
4545
|
-
}
|
|
5140
|
+
},
|
|
5141
|
+
"description": "Emitted when the modal opens"
|
|
4546
5142
|
},
|
|
4547
5143
|
{
|
|
4548
5144
|
"name": "nys-close",
|
|
4549
5145
|
"type": {
|
|
4550
5146
|
"text": "CustomEvent"
|
|
4551
|
-
}
|
|
5147
|
+
},
|
|
5148
|
+
"description": "Emitted when the modal closes"
|
|
4552
5149
|
}
|
|
4553
5150
|
],
|
|
4554
5151
|
"attributes": [
|
|
@@ -4595,8 +5192,9 @@
|
|
|
4595
5192
|
{
|
|
4596
5193
|
"name": "width",
|
|
4597
5194
|
"type": {
|
|
4598
|
-
"text": "
|
|
5195
|
+
"text": "\"sm\" | \"md\" | \"lg\""
|
|
4599
5196
|
},
|
|
5197
|
+
"default": "\"md\"",
|
|
4600
5198
|
"fieldName": "width"
|
|
4601
5199
|
}
|
|
4602
5200
|
],
|
|
@@ -4648,7 +5246,7 @@
|
|
|
4648
5246
|
"declarations": [
|
|
4649
5247
|
{
|
|
4650
5248
|
"kind": "class",
|
|
4651
|
-
"description": "",
|
|
5249
|
+
"description": "`<nys-pagination>` renders page navigation controls.\n\nDisplays previous and next buttons, page numbers, and ellipses\nwhen pages are skipped. Handles page bounds automatically.",
|
|
4652
5250
|
"name": "NysPagination",
|
|
4653
5251
|
"members": [
|
|
4654
5252
|
{
|
|
@@ -4718,7 +5316,7 @@
|
|
|
4718
5316
|
}
|
|
4719
5317
|
}
|
|
4720
5318
|
],
|
|
4721
|
-
"description": "
|
|
5319
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
4722
5320
|
},
|
|
4723
5321
|
{
|
|
4724
5322
|
"kind": "method",
|
|
@@ -4737,7 +5335,7 @@
|
|
|
4737
5335
|
}
|
|
4738
5336
|
}
|
|
4739
5337
|
],
|
|
4740
|
-
"description": "
|
|
5338
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
4741
5339
|
}
|
|
4742
5340
|
],
|
|
4743
5341
|
"events": [
|
|
@@ -4745,7 +5343,8 @@
|
|
|
4745
5343
|
"name": "nys-change",
|
|
4746
5344
|
"type": {
|
|
4747
5345
|
"text": "CustomEvent"
|
|
4748
|
-
}
|
|
5346
|
+
},
|
|
5347
|
+
"description": "Fired when the page changes detail: { page: number }"
|
|
4749
5348
|
}
|
|
4750
5349
|
],
|
|
4751
5350
|
"attributes": [
|
|
@@ -4846,8 +5445,14 @@
|
|
|
4846
5445
|
"declarations": [
|
|
4847
5446
|
{
|
|
4848
5447
|
"kind": "class",
|
|
4849
|
-
"description": "",
|
|
5448
|
+
"description": "`<nys-radiobutton>` represents a single radio button for use in a `<nys-radiogroup>`.\n\nFeatures:\n- Single selection per group\n- Supports labels, descriptions, tile layout, inverted style, and size variants\n- Integrates with forms and dispatches `nys-change` events on selection",
|
|
4850
5449
|
"name": "NysRadiobutton",
|
|
5450
|
+
"slots": [
|
|
5451
|
+
{
|
|
5452
|
+
"description": "Optional description text announced to screen readers",
|
|
5453
|
+
"name": "description"
|
|
5454
|
+
}
|
|
5455
|
+
],
|
|
4851
5456
|
"members": [
|
|
4852
5457
|
{
|
|
4853
5458
|
"kind": "field",
|
|
@@ -4946,32 +5551,13 @@
|
|
|
4946
5551
|
"attribute": "form",
|
|
4947
5552
|
"reflects": true
|
|
4948
5553
|
},
|
|
4949
|
-
{
|
|
4950
|
-
"kind": "field",
|
|
4951
|
-
"name": "VALID_SIZES",
|
|
4952
|
-
"privacy": "private",
|
|
4953
|
-
"static": true,
|
|
4954
|
-
"readonly": true,
|
|
4955
|
-
"default": "[\"sm\", \"md\"]",
|
|
4956
|
-
"type": {
|
|
4957
|
-
"text": "[\"sm\", \"md\"]"
|
|
4958
|
-
}
|
|
4959
|
-
},
|
|
4960
|
-
{
|
|
4961
|
-
"kind": "field",
|
|
4962
|
-
"name": "_size",
|
|
4963
|
-
"type": {
|
|
4964
|
-
"text": "(typeof NysRadiobutton.VALID_SIZES)[number]"
|
|
4965
|
-
},
|
|
4966
|
-
"privacy": "private",
|
|
4967
|
-
"default": "\"md\""
|
|
4968
|
-
},
|
|
4969
5554
|
{
|
|
4970
5555
|
"kind": "field",
|
|
4971
5556
|
"name": "size",
|
|
4972
5557
|
"type": {
|
|
4973
|
-
"text": "
|
|
5558
|
+
"text": "\"sm\" | \"md\""
|
|
4974
5559
|
},
|
|
5560
|
+
"default": "\"md\"",
|
|
4975
5561
|
"attribute": "size",
|
|
4976
5562
|
"reflects": true
|
|
4977
5563
|
},
|
|
@@ -5017,13 +5603,13 @@
|
|
|
5017
5603
|
"text": "boolean"
|
|
5018
5604
|
}
|
|
5019
5605
|
},
|
|
5020
|
-
"description": "
|
|
5606
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
5021
5607
|
},
|
|
5022
5608
|
{
|
|
5023
5609
|
"kind": "method",
|
|
5024
5610
|
"name": "_emitChangeEvent",
|
|
5025
5611
|
"privacy": "private",
|
|
5026
|
-
"description": "
|
|
5612
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
5027
5613
|
},
|
|
5028
5614
|
{
|
|
5029
5615
|
"kind": "method",
|
|
@@ -5051,19 +5637,22 @@
|
|
|
5051
5637
|
"name": "nys-change",
|
|
5052
5638
|
"type": {
|
|
5053
5639
|
"text": "CustomEvent"
|
|
5054
|
-
}
|
|
5640
|
+
},
|
|
5641
|
+
"description": "Fired when the radio is selected or deselected detail: { id: string, checked: boolean, name: string, value: string }"
|
|
5055
5642
|
},
|
|
5056
5643
|
{
|
|
5057
5644
|
"name": "nys-focus",
|
|
5058
5645
|
"type": {
|
|
5059
5646
|
"text": "Event"
|
|
5060
|
-
}
|
|
5647
|
+
},
|
|
5648
|
+
"description": "Fired when the radio gains focus"
|
|
5061
5649
|
},
|
|
5062
5650
|
{
|
|
5063
5651
|
"name": "nys-blur",
|
|
5064
5652
|
"type": {
|
|
5065
5653
|
"text": "Event"
|
|
5066
|
-
}
|
|
5654
|
+
},
|
|
5655
|
+
"description": "Fired when the radio loses focus"
|
|
5067
5656
|
}
|
|
5068
5657
|
],
|
|
5069
5658
|
"attributes": [
|
|
@@ -5150,8 +5739,9 @@
|
|
|
5150
5739
|
{
|
|
5151
5740
|
"name": "size",
|
|
5152
5741
|
"type": {
|
|
5153
|
-
"text": "
|
|
5742
|
+
"text": "\"sm\" | \"md\""
|
|
5154
5743
|
},
|
|
5744
|
+
"default": "\"md\"",
|
|
5155
5745
|
"fieldName": "size"
|
|
5156
5746
|
},
|
|
5157
5747
|
{
|
|
@@ -5196,8 +5786,18 @@
|
|
|
5196
5786
|
"declarations": [
|
|
5197
5787
|
{
|
|
5198
5788
|
"kind": "class",
|
|
5199
|
-
"description": "",
|
|
5789
|
+
"description": "`<nys-radiogroup>` groups `<nys-radiobutton>` elements into a single\nselectable control.\n\nSupports keyboard navigation, validation, and native form submission\nthrough ElementInternals.",
|
|
5200
5790
|
"name": "NysRadiogroup",
|
|
5791
|
+
"slots": [
|
|
5792
|
+
{
|
|
5793
|
+
"description": "One or more `<nys-radiobutton>` elements",
|
|
5794
|
+
"name": "default"
|
|
5795
|
+
},
|
|
5796
|
+
{
|
|
5797
|
+
"description": "Optional descriptive text announced to screen readers",
|
|
5798
|
+
"name": "description"
|
|
5799
|
+
}
|
|
5800
|
+
],
|
|
5201
5801
|
"members": [
|
|
5202
5802
|
{
|
|
5203
5803
|
"kind": "field",
|
|
@@ -5288,12 +5888,12 @@
|
|
|
5288
5888
|
},
|
|
5289
5889
|
{
|
|
5290
5890
|
"kind": "field",
|
|
5291
|
-
"name": "
|
|
5891
|
+
"name": "tooltip",
|
|
5292
5892
|
"type": {
|
|
5293
5893
|
"text": "string"
|
|
5294
5894
|
},
|
|
5295
5895
|
"default": "\"\"",
|
|
5296
|
-
"attribute": "
|
|
5896
|
+
"attribute": "tooltip"
|
|
5297
5897
|
},
|
|
5298
5898
|
{
|
|
5299
5899
|
"kind": "field",
|
|
@@ -5315,6 +5915,16 @@
|
|
|
5315
5915
|
"attribute": "form",
|
|
5316
5916
|
"reflects": true
|
|
5317
5917
|
},
|
|
5918
|
+
{
|
|
5919
|
+
"kind": "field",
|
|
5920
|
+
"name": "size",
|
|
5921
|
+
"type": {
|
|
5922
|
+
"text": "\"sm\" | \"md\""
|
|
5923
|
+
},
|
|
5924
|
+
"default": "\"md\"",
|
|
5925
|
+
"attribute": "size",
|
|
5926
|
+
"reflects": true
|
|
5927
|
+
},
|
|
5318
5928
|
{
|
|
5319
5929
|
"kind": "field",
|
|
5320
5930
|
"name": "selectedValue",
|
|
@@ -5333,35 +5943,6 @@
|
|
|
5333
5943
|
"privacy": "private",
|
|
5334
5944
|
"default": "\"\""
|
|
5335
5945
|
},
|
|
5336
|
-
{
|
|
5337
|
-
"kind": "field",
|
|
5338
|
-
"name": "VALID_SIZES",
|
|
5339
|
-
"privacy": "private",
|
|
5340
|
-
"static": true,
|
|
5341
|
-
"readonly": true,
|
|
5342
|
-
"default": "[\"sm\", \"md\"]",
|
|
5343
|
-
"type": {
|
|
5344
|
-
"text": "[\"sm\", \"md\"]"
|
|
5345
|
-
}
|
|
5346
|
-
},
|
|
5347
|
-
{
|
|
5348
|
-
"kind": "field",
|
|
5349
|
-
"name": "_size",
|
|
5350
|
-
"type": {
|
|
5351
|
-
"text": "(typeof NysRadiogroup.VALID_SIZES)[number]"
|
|
5352
|
-
},
|
|
5353
|
-
"privacy": "private",
|
|
5354
|
-
"default": "\"md\""
|
|
5355
|
-
},
|
|
5356
|
-
{
|
|
5357
|
-
"kind": "field",
|
|
5358
|
-
"name": "size",
|
|
5359
|
-
"type": {
|
|
5360
|
-
"text": "(typeof NysRadiogroup.VALID_SIZES)[number]"
|
|
5361
|
-
},
|
|
5362
|
-
"attribute": "size",
|
|
5363
|
-
"reflects": true
|
|
5364
|
-
},
|
|
5365
5946
|
{
|
|
5366
5947
|
"kind": "field",
|
|
5367
5948
|
"name": "_internals",
|
|
@@ -5378,17 +5959,13 @@
|
|
|
5378
5959
|
},
|
|
5379
5960
|
"static": true,
|
|
5380
5961
|
"default": "true",
|
|
5381
|
-
"description": "
|
|
5382
|
-
},
|
|
5383
|
-
{
|
|
5384
|
-
"kind": "method",
|
|
5385
|
-
"name": "formResetCallback"
|
|
5962
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
5386
5963
|
},
|
|
5387
5964
|
{
|
|
5388
5965
|
"kind": "method",
|
|
5389
5966
|
"name": "_setValue",
|
|
5390
5967
|
"privacy": "private",
|
|
5391
|
-
"description": "
|
|
5968
|
+
"description": "Form Integration\n--------------------------------------------------------------------------"
|
|
5392
5969
|
},
|
|
5393
5970
|
{
|
|
5394
5971
|
"kind": "method",
|
|
@@ -5412,8 +5989,7 @@
|
|
|
5412
5989
|
{
|
|
5413
5990
|
"kind": "method",
|
|
5414
5991
|
"name": "_getAllRadios",
|
|
5415
|
-
"privacy": "private"
|
|
5416
|
-
"description": "******************** Core Keyboard & Click Logic *********************"
|
|
5992
|
+
"privacy": "private"
|
|
5417
5993
|
},
|
|
5418
5994
|
{
|
|
5419
5995
|
"kind": "method",
|
|
@@ -5433,11 +6009,15 @@
|
|
|
5433
6009
|
"name": "_updateGroupTabIndex",
|
|
5434
6010
|
"privacy": "private"
|
|
5435
6011
|
},
|
|
6012
|
+
{
|
|
6013
|
+
"kind": "method",
|
|
6014
|
+
"name": "formResetCallback"
|
|
6015
|
+
},
|
|
5436
6016
|
{
|
|
5437
6017
|
"kind": "method",
|
|
5438
6018
|
"name": "_initializeChildAttributes",
|
|
5439
6019
|
"privacy": "private",
|
|
5440
|
-
"description": "
|
|
6020
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
5441
6021
|
},
|
|
5442
6022
|
{
|
|
5443
6023
|
"kind": "method",
|
|
@@ -5481,7 +6061,7 @@
|
|
|
5481
6061
|
}
|
|
5482
6062
|
}
|
|
5483
6063
|
],
|
|
5484
|
-
"description": "
|
|
6064
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
5485
6065
|
},
|
|
5486
6066
|
{
|
|
5487
6067
|
"kind": "method",
|
|
@@ -5497,6 +6077,12 @@
|
|
|
5497
6077
|
]
|
|
5498
6078
|
}
|
|
5499
6079
|
],
|
|
6080
|
+
"events": [
|
|
6081
|
+
{
|
|
6082
|
+
"description": "Fired when selection changes detail: { name: string; value: string }",
|
|
6083
|
+
"name": "nys-change"
|
|
6084
|
+
}
|
|
6085
|
+
],
|
|
5500
6086
|
"attributes": [
|
|
5501
6087
|
{
|
|
5502
6088
|
"name": "id",
|
|
@@ -5571,12 +6157,12 @@
|
|
|
5571
6157
|
"fieldName": "tile"
|
|
5572
6158
|
},
|
|
5573
6159
|
{
|
|
5574
|
-
"name": "
|
|
6160
|
+
"name": "tooltip",
|
|
5575
6161
|
"type": {
|
|
5576
6162
|
"text": "string"
|
|
5577
6163
|
},
|
|
5578
6164
|
"default": "\"\"",
|
|
5579
|
-
"fieldName": "
|
|
6165
|
+
"fieldName": "tooltip"
|
|
5580
6166
|
},
|
|
5581
6167
|
{
|
|
5582
6168
|
"name": "inverted",
|
|
@@ -5597,8 +6183,9 @@
|
|
|
5597
6183
|
{
|
|
5598
6184
|
"name": "size",
|
|
5599
6185
|
"type": {
|
|
5600
|
-
"text": "
|
|
6186
|
+
"text": "\"sm\" | \"md\""
|
|
5601
6187
|
},
|
|
6188
|
+
"default": "\"md\"",
|
|
5602
6189
|
"fieldName": "size"
|
|
5603
6190
|
}
|
|
5604
6191
|
],
|
|
@@ -5785,8 +6372,18 @@
|
|
|
5785
6372
|
"declarations": [
|
|
5786
6373
|
{
|
|
5787
6374
|
"kind": "class",
|
|
5788
|
-
"description": "",
|
|
6375
|
+
"description": "`<nys-select>` is a custom select/dropdown component.\n\nFeatures:\n- Supports slotted `<nys-option>` elements, native `<option>` and `<optgroup>`\n- Integrates with forms via ElementInternals\n- Handles validation, error messages, and required/optional states\n- Inverted style and width variants supported",
|
|
5789
6376
|
"name": "NysSelect",
|
|
6377
|
+
"slots": [
|
|
6378
|
+
{
|
|
6379
|
+
"description": "Optional description text announced to screen readers",
|
|
6380
|
+
"name": "description"
|
|
6381
|
+
},
|
|
6382
|
+
{
|
|
6383
|
+
"description": "Options (<nys-option>, <option>, <optgroup>) to populate the dropdown",
|
|
6384
|
+
"name": "default"
|
|
6385
|
+
}
|
|
6386
|
+
],
|
|
5790
6387
|
"members": [
|
|
5791
6388
|
{
|
|
5792
6389
|
"kind": "field",
|
|
@@ -5867,12 +6464,12 @@
|
|
|
5867
6464
|
},
|
|
5868
6465
|
{
|
|
5869
6466
|
"kind": "field",
|
|
5870
|
-
"name": "
|
|
6467
|
+
"name": "tooltip",
|
|
5871
6468
|
"type": {
|
|
5872
6469
|
"text": "string"
|
|
5873
6470
|
},
|
|
5874
6471
|
"default": "\"\"",
|
|
5875
|
-
"attribute": "
|
|
6472
|
+
"attribute": "tooltip"
|
|
5876
6473
|
},
|
|
5877
6474
|
{
|
|
5878
6475
|
"kind": "field",
|
|
@@ -5913,32 +6510,13 @@
|
|
|
5913
6510
|
"default": "\"\"",
|
|
5914
6511
|
"attribute": "errorMessage"
|
|
5915
6512
|
},
|
|
5916
|
-
{
|
|
5917
|
-
"kind": "field",
|
|
5918
|
-
"name": "VALID_WIDTHS",
|
|
5919
|
-
"privacy": "private",
|
|
5920
|
-
"static": true,
|
|
5921
|
-
"readonly": true,
|
|
5922
|
-
"default": "[\"sm\", \"md\", \"lg\", \"full\"]",
|
|
5923
|
-
"type": {
|
|
5924
|
-
"text": "[\"sm\", \"md\", \"lg\", \"full\"]"
|
|
5925
|
-
}
|
|
5926
|
-
},
|
|
5927
|
-
{
|
|
5928
|
-
"kind": "field",
|
|
5929
|
-
"name": "_width",
|
|
5930
|
-
"type": {
|
|
5931
|
-
"text": "(typeof NysSelect.VALID_WIDTHS)[number]"
|
|
5932
|
-
},
|
|
5933
|
-
"privacy": "private",
|
|
5934
|
-
"default": "\"full\""
|
|
5935
|
-
},
|
|
5936
6513
|
{
|
|
5937
6514
|
"kind": "field",
|
|
5938
6515
|
"name": "width",
|
|
5939
6516
|
"type": {
|
|
5940
|
-
"text": "
|
|
6517
|
+
"text": "| \"sm\"\n | \"md\"\n | \"lg\"\n | \"full\""
|
|
5941
6518
|
},
|
|
6519
|
+
"default": "\"full\"",
|
|
5942
6520
|
"attribute": "width",
|
|
5943
6521
|
"reflects": true
|
|
5944
6522
|
},
|
|
@@ -5976,11 +6554,7 @@
|
|
|
5976
6554
|
},
|
|
5977
6555
|
"static": true,
|
|
5978
6556
|
"default": "true",
|
|
5979
|
-
"description": "
|
|
5980
|
-
},
|
|
5981
|
-
{
|
|
5982
|
-
"kind": "method",
|
|
5983
|
-
"name": "formResetCallback"
|
|
6557
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
5984
6558
|
},
|
|
5985
6559
|
{
|
|
5986
6560
|
"kind": "method",
|
|
@@ -5991,7 +6565,7 @@
|
|
|
5991
6565
|
"kind": "method",
|
|
5992
6566
|
"name": "_setValue",
|
|
5993
6567
|
"privacy": "private",
|
|
5994
|
-
"description": "
|
|
6568
|
+
"description": "Form Integration\n--------------------------------------------------------------------------"
|
|
5995
6569
|
},
|
|
5996
6570
|
{
|
|
5997
6571
|
"kind": "method",
|
|
@@ -6017,6 +6591,10 @@
|
|
|
6017
6591
|
"name": "_validate",
|
|
6018
6592
|
"privacy": "private"
|
|
6019
6593
|
},
|
|
6594
|
+
{
|
|
6595
|
+
"kind": "method",
|
|
6596
|
+
"name": "formResetCallback"
|
|
6597
|
+
},
|
|
6020
6598
|
{
|
|
6021
6599
|
"kind": "method",
|
|
6022
6600
|
"name": "checkValidity",
|
|
@@ -6025,7 +6603,7 @@
|
|
|
6025
6603
|
"text": "boolean"
|
|
6026
6604
|
}
|
|
6027
6605
|
},
|
|
6028
|
-
"description": "
|
|
6606
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
6029
6607
|
},
|
|
6030
6608
|
{
|
|
6031
6609
|
"kind": "method",
|
|
@@ -6052,7 +6630,7 @@
|
|
|
6052
6630
|
}
|
|
6053
6631
|
}
|
|
6054
6632
|
],
|
|
6055
|
-
"description": "
|
|
6633
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
6056
6634
|
},
|
|
6057
6635
|
{
|
|
6058
6636
|
"kind": "method",
|
|
@@ -6070,19 +6648,22 @@
|
|
|
6070
6648
|
"name": "nys-change",
|
|
6071
6649
|
"type": {
|
|
6072
6650
|
"text": "CustomEvent"
|
|
6073
|
-
}
|
|
6651
|
+
},
|
|
6652
|
+
"description": "Fired when the selected value changes detail: { id: string, value: string }"
|
|
6074
6653
|
},
|
|
6075
6654
|
{
|
|
6076
6655
|
"name": "nys-focus",
|
|
6077
6656
|
"type": {
|
|
6078
6657
|
"text": "Event"
|
|
6079
|
-
}
|
|
6658
|
+
},
|
|
6659
|
+
"description": "Fired when the select gains focus"
|
|
6080
6660
|
},
|
|
6081
6661
|
{
|
|
6082
6662
|
"name": "nys-blur",
|
|
6083
6663
|
"type": {
|
|
6084
6664
|
"text": "Event"
|
|
6085
|
-
}
|
|
6665
|
+
},
|
|
6666
|
+
"description": "Fired when the select loses focus"
|
|
6086
6667
|
}
|
|
6087
6668
|
],
|
|
6088
6669
|
"attributes": [
|
|
@@ -6151,12 +6732,12 @@
|
|
|
6151
6732
|
"fieldName": "optional"
|
|
6152
6733
|
},
|
|
6153
6734
|
{
|
|
6154
|
-
"name": "
|
|
6735
|
+
"name": "tooltip",
|
|
6155
6736
|
"type": {
|
|
6156
6737
|
"text": "string"
|
|
6157
6738
|
},
|
|
6158
6739
|
"default": "\"\"",
|
|
6159
|
-
"fieldName": "
|
|
6740
|
+
"fieldName": "tooltip"
|
|
6160
6741
|
},
|
|
6161
6742
|
{
|
|
6162
6743
|
"name": "form",
|
|
@@ -6193,8 +6774,9 @@
|
|
|
6193
6774
|
{
|
|
6194
6775
|
"name": "width",
|
|
6195
6776
|
"type": {
|
|
6196
|
-
"text": "
|
|
6777
|
+
"text": "| \"sm\"\n | \"md\"\n | \"lg\"\n | \"full\""
|
|
6197
6778
|
},
|
|
6779
|
+
"default": "\"full\"",
|
|
6198
6780
|
"fieldName": "width"
|
|
6199
6781
|
}
|
|
6200
6782
|
],
|
|
@@ -6246,7 +6828,7 @@
|
|
|
6246
6828
|
"declarations": [
|
|
6247
6829
|
{
|
|
6248
6830
|
"kind": "class",
|
|
6249
|
-
"description": "",
|
|
6831
|
+
"description": "`<nys-skipnav>` provides an accessible skip navigation link for keyboard\nand screen reader users to jump directly to the main content of a page.\n\nFeatures:\n- Default target is `#main-content` if `href` is not provided\n- Link becomes visible on focus and hides on blur\n- Ensures the target element is focusable for accessibility",
|
|
6250
6832
|
"name": "NysSkipnav",
|
|
6251
6833
|
"members": [
|
|
6252
6834
|
{
|
|
@@ -6272,7 +6854,7 @@
|
|
|
6272
6854
|
"kind": "method",
|
|
6273
6855
|
"name": "_handleFocus",
|
|
6274
6856
|
"privacy": "private",
|
|
6275
|
-
"description": "
|
|
6857
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
6276
6858
|
},
|
|
6277
6859
|
{
|
|
6278
6860
|
"kind": "method",
|
|
@@ -6535,7 +7117,7 @@
|
|
|
6535
7117
|
"declarations": [
|
|
6536
7118
|
{
|
|
6537
7119
|
"kind": "class",
|
|
6538
|
-
"description": "",
|
|
7120
|
+
"description": "`<nys-stepper>` manages a sequence of `<nys-step>` elements, providing\nmulti-step navigation for forms or workflows.\n\nFeatures:\n- Tracks selected and current steps\n- Displays a step counter (e.g., \"Step 2 of 5\")\n- Supports compact/expanded view toggle\n- Validates that only `<nys-step>` or `<div slot=\"actions\">` children are used",
|
|
6539
7121
|
"name": "NysStepper",
|
|
6540
7122
|
"members": [
|
|
6541
7123
|
{
|
|
@@ -6642,6 +7224,303 @@
|
|
|
6642
7224
|
]
|
|
6643
7225
|
}
|
|
6644
7226
|
],
|
|
7227
|
+
"events": [
|
|
7228
|
+
{
|
|
7229
|
+
"description": "Fired when a step is clicked; bubbles with the event path",
|
|
7230
|
+
"name": "nys-step-click"
|
|
7231
|
+
}
|
|
7232
|
+
],
|
|
7233
|
+
"attributes": [
|
|
7234
|
+
{
|
|
7235
|
+
"name": "id",
|
|
7236
|
+
"type": {
|
|
7237
|
+
"text": "string"
|
|
7238
|
+
},
|
|
7239
|
+
"default": "\"\"",
|
|
7240
|
+
"fieldName": "id"
|
|
7241
|
+
},
|
|
7242
|
+
{
|
|
7243
|
+
"name": "name",
|
|
7244
|
+
"type": {
|
|
7245
|
+
"text": "string"
|
|
7246
|
+
},
|
|
7247
|
+
"default": "\"\"",
|
|
7248
|
+
"fieldName": "name"
|
|
7249
|
+
},
|
|
7250
|
+
{
|
|
7251
|
+
"name": "label",
|
|
7252
|
+
"type": {
|
|
7253
|
+
"text": "string"
|
|
7254
|
+
},
|
|
7255
|
+
"default": "\"\"",
|
|
7256
|
+
"fieldName": "label"
|
|
7257
|
+
},
|
|
7258
|
+
{
|
|
7259
|
+
"name": "counterText",
|
|
7260
|
+
"type": {
|
|
7261
|
+
"text": "string"
|
|
7262
|
+
},
|
|
7263
|
+
"default": "\"initial\"",
|
|
7264
|
+
"fieldName": "counterText"
|
|
7265
|
+
},
|
|
7266
|
+
{
|
|
7267
|
+
"name": "isCompactExpanded",
|
|
7268
|
+
"type": {
|
|
7269
|
+
"text": "boolean"
|
|
7270
|
+
},
|
|
7271
|
+
"default": "false",
|
|
7272
|
+
"fieldName": "isCompactExpanded"
|
|
7273
|
+
}
|
|
7274
|
+
],
|
|
7275
|
+
"superclass": {
|
|
7276
|
+
"name": "LitElement",
|
|
7277
|
+
"package": "lit"
|
|
7278
|
+
},
|
|
7279
|
+
"tagName": "nys-stepper",
|
|
7280
|
+
"customElement": true
|
|
7281
|
+
}
|
|
7282
|
+
],
|
|
7283
|
+
"exports": [
|
|
7284
|
+
{
|
|
7285
|
+
"kind": "custom-element-definition",
|
|
7286
|
+
"name": "nys-stepper",
|
|
7287
|
+
"declaration": {
|
|
7288
|
+
"name": "NysStepper",
|
|
7289
|
+
"module": "packages/nys-stepper/src/nys-stepper.ts"
|
|
7290
|
+
}
|
|
7291
|
+
},
|
|
7292
|
+
{
|
|
7293
|
+
"kind": "js",
|
|
7294
|
+
"name": "NysStepper",
|
|
7295
|
+
"declaration": {
|
|
7296
|
+
"name": "NysStepper",
|
|
7297
|
+
"module": "packages/nys-stepper/src/nys-stepper.ts"
|
|
7298
|
+
}
|
|
7299
|
+
}
|
|
7300
|
+
]
|
|
7301
|
+
},
|
|
7302
|
+
{
|
|
7303
|
+
"kind": "javascript-module",
|
|
7304
|
+
"path": "packages/nys-table/src/index.ts",
|
|
7305
|
+
"declarations": [],
|
|
7306
|
+
"exports": [
|
|
7307
|
+
{
|
|
7308
|
+
"kind": "js",
|
|
7309
|
+
"name": "*",
|
|
7310
|
+
"declaration": {
|
|
7311
|
+
"name": "*",
|
|
7312
|
+
"module": "packages/nys-table/src/nys-table"
|
|
7313
|
+
}
|
|
7314
|
+
}
|
|
7315
|
+
]
|
|
7316
|
+
},
|
|
7317
|
+
{
|
|
7318
|
+
"kind": "javascript-module",
|
|
7319
|
+
"path": "packages/nys-table/src/nys-table.ts",
|
|
7320
|
+
"declarations": [
|
|
7321
|
+
{
|
|
7322
|
+
"kind": "class",
|
|
7323
|
+
"description": "`<nys-table>` is a responsive table component that can display native HTML tables,\nsupports striped and bordered styling, sortable columns, and CSV download.",
|
|
7324
|
+
"name": "NysTable",
|
|
7325
|
+
"slots": [
|
|
7326
|
+
{
|
|
7327
|
+
"description": "Accepts a `<table>` element. Only the first table is rendered.",
|
|
7328
|
+
"name": ""
|
|
7329
|
+
}
|
|
7330
|
+
],
|
|
7331
|
+
"members": [
|
|
7332
|
+
{
|
|
7333
|
+
"kind": "field",
|
|
7334
|
+
"name": "id",
|
|
7335
|
+
"type": {
|
|
7336
|
+
"text": "string"
|
|
7337
|
+
},
|
|
7338
|
+
"default": "\"\"",
|
|
7339
|
+
"attribute": "id",
|
|
7340
|
+
"reflects": true
|
|
7341
|
+
},
|
|
7342
|
+
{
|
|
7343
|
+
"kind": "field",
|
|
7344
|
+
"name": "name",
|
|
7345
|
+
"type": {
|
|
7346
|
+
"text": "string"
|
|
7347
|
+
},
|
|
7348
|
+
"default": "\"\"",
|
|
7349
|
+
"attribute": "name",
|
|
7350
|
+
"reflects": true
|
|
7351
|
+
},
|
|
7352
|
+
{
|
|
7353
|
+
"kind": "field",
|
|
7354
|
+
"name": "striped",
|
|
7355
|
+
"type": {
|
|
7356
|
+
"text": "boolean"
|
|
7357
|
+
},
|
|
7358
|
+
"default": "false",
|
|
7359
|
+
"attribute": "striped",
|
|
7360
|
+
"reflects": true
|
|
7361
|
+
},
|
|
7362
|
+
{
|
|
7363
|
+
"kind": "field",
|
|
7364
|
+
"name": "sortable",
|
|
7365
|
+
"type": {
|
|
7366
|
+
"text": "boolean"
|
|
7367
|
+
},
|
|
7368
|
+
"default": "false",
|
|
7369
|
+
"attribute": "sortable",
|
|
7370
|
+
"reflects": true
|
|
7371
|
+
},
|
|
7372
|
+
{
|
|
7373
|
+
"kind": "field",
|
|
7374
|
+
"name": "bordered",
|
|
7375
|
+
"type": {
|
|
7376
|
+
"text": "boolean"
|
|
7377
|
+
},
|
|
7378
|
+
"default": "false",
|
|
7379
|
+
"attribute": "bordered",
|
|
7380
|
+
"reflects": true
|
|
7381
|
+
},
|
|
7382
|
+
{
|
|
7383
|
+
"kind": "field",
|
|
7384
|
+
"name": "download",
|
|
7385
|
+
"type": {
|
|
7386
|
+
"text": "string"
|
|
7387
|
+
},
|
|
7388
|
+
"default": "\"\"",
|
|
7389
|
+
"attribute": "download",
|
|
7390
|
+
"reflects": true
|
|
7391
|
+
},
|
|
7392
|
+
{
|
|
7393
|
+
"kind": "field",
|
|
7394
|
+
"name": "_sortColumn",
|
|
7395
|
+
"type": {
|
|
7396
|
+
"text": "number | null"
|
|
7397
|
+
},
|
|
7398
|
+
"privacy": "private",
|
|
7399
|
+
"default": "null"
|
|
7400
|
+
},
|
|
7401
|
+
{
|
|
7402
|
+
"kind": "field",
|
|
7403
|
+
"name": "_sortDirection",
|
|
7404
|
+
"type": {
|
|
7405
|
+
"text": "\"asc\" | \"desc\" | \"none\""
|
|
7406
|
+
},
|
|
7407
|
+
"privacy": "private",
|
|
7408
|
+
"default": "\"none\""
|
|
7409
|
+
},
|
|
7410
|
+
{
|
|
7411
|
+
"kind": "field",
|
|
7412
|
+
"name": "_captionText",
|
|
7413
|
+
"type": {
|
|
7414
|
+
"text": "string"
|
|
7415
|
+
},
|
|
7416
|
+
"privacy": "private",
|
|
7417
|
+
"default": "\"\""
|
|
7418
|
+
},
|
|
7419
|
+
{
|
|
7420
|
+
"kind": "method",
|
|
7421
|
+
"name": "_handleSlotChange"
|
|
7422
|
+
},
|
|
7423
|
+
{
|
|
7424
|
+
"kind": "method",
|
|
7425
|
+
"name": "_normalizeTable",
|
|
7426
|
+
"parameters": [
|
|
7427
|
+
{
|
|
7428
|
+
"name": "table",
|
|
7429
|
+
"type": {
|
|
7430
|
+
"text": "HTMLTableElement"
|
|
7431
|
+
}
|
|
7432
|
+
}
|
|
7433
|
+
]
|
|
7434
|
+
},
|
|
7435
|
+
{
|
|
7436
|
+
"kind": "method",
|
|
7437
|
+
"name": "_addSortIcons",
|
|
7438
|
+
"parameters": [
|
|
7439
|
+
{
|
|
7440
|
+
"name": "table",
|
|
7441
|
+
"type": {
|
|
7442
|
+
"text": "HTMLTableElement"
|
|
7443
|
+
}
|
|
7444
|
+
}
|
|
7445
|
+
]
|
|
7446
|
+
},
|
|
7447
|
+
{
|
|
7448
|
+
"kind": "method",
|
|
7449
|
+
"name": "_updateSortIcons",
|
|
7450
|
+
"parameters": [
|
|
7451
|
+
{
|
|
7452
|
+
"name": "table",
|
|
7453
|
+
"type": {
|
|
7454
|
+
"text": "HTMLTableElement"
|
|
7455
|
+
}
|
|
7456
|
+
}
|
|
7457
|
+
]
|
|
7458
|
+
},
|
|
7459
|
+
{
|
|
7460
|
+
"kind": "method",
|
|
7461
|
+
"name": "_onSortClick",
|
|
7462
|
+
"parameters": [
|
|
7463
|
+
{
|
|
7464
|
+
"name": "columnIndex",
|
|
7465
|
+
"type": {
|
|
7466
|
+
"text": "number"
|
|
7467
|
+
}
|
|
7468
|
+
},
|
|
7469
|
+
{
|
|
7470
|
+
"name": "table",
|
|
7471
|
+
"type": {
|
|
7472
|
+
"text": "HTMLTableElement"
|
|
7473
|
+
}
|
|
7474
|
+
}
|
|
7475
|
+
]
|
|
7476
|
+
},
|
|
7477
|
+
{
|
|
7478
|
+
"kind": "method",
|
|
7479
|
+
"name": "_sortTable",
|
|
7480
|
+
"parameters": [
|
|
7481
|
+
{
|
|
7482
|
+
"name": "table",
|
|
7483
|
+
"type": {
|
|
7484
|
+
"text": "HTMLTableElement"
|
|
7485
|
+
}
|
|
7486
|
+
},
|
|
7487
|
+
{
|
|
7488
|
+
"name": "columnIndex",
|
|
7489
|
+
"type": {
|
|
7490
|
+
"text": "number"
|
|
7491
|
+
}
|
|
7492
|
+
},
|
|
7493
|
+
{
|
|
7494
|
+
"name": "direction",
|
|
7495
|
+
"type": {
|
|
7496
|
+
"text": "\"asc\" | \"desc\""
|
|
7497
|
+
}
|
|
7498
|
+
}
|
|
7499
|
+
]
|
|
7500
|
+
},
|
|
7501
|
+
{
|
|
7502
|
+
"kind": "method",
|
|
7503
|
+
"name": "_updateSortedColumnStyles",
|
|
7504
|
+
"parameters": [
|
|
7505
|
+
{
|
|
7506
|
+
"name": "table",
|
|
7507
|
+
"type": {
|
|
7508
|
+
"text": "HTMLTableElement"
|
|
7509
|
+
}
|
|
7510
|
+
}
|
|
7511
|
+
]
|
|
7512
|
+
},
|
|
7513
|
+
{
|
|
7514
|
+
"kind": "method",
|
|
7515
|
+
"name": "downloadFile"
|
|
7516
|
+
}
|
|
7517
|
+
],
|
|
7518
|
+
"events": [
|
|
7519
|
+
{
|
|
7520
|
+
"description": "Fired when the download button or sortable headers are clicked.",
|
|
7521
|
+
"name": "nys-click"
|
|
7522
|
+
}
|
|
7523
|
+
],
|
|
6645
7524
|
"attributes": [
|
|
6646
7525
|
{
|
|
6647
7526
|
"name": "id",
|
|
@@ -6660,53 +7539,61 @@
|
|
|
6660
7539
|
"fieldName": "name"
|
|
6661
7540
|
},
|
|
6662
7541
|
{
|
|
6663
|
-
"name": "
|
|
7542
|
+
"name": "striped",
|
|
6664
7543
|
"type": {
|
|
6665
|
-
"text": "
|
|
7544
|
+
"text": "boolean"
|
|
6666
7545
|
},
|
|
6667
|
-
"default": "
|
|
6668
|
-
"fieldName": "
|
|
7546
|
+
"default": "false",
|
|
7547
|
+
"fieldName": "striped"
|
|
6669
7548
|
},
|
|
6670
7549
|
{
|
|
6671
|
-
"name": "
|
|
7550
|
+
"name": "sortable",
|
|
6672
7551
|
"type": {
|
|
6673
|
-
"text": "
|
|
7552
|
+
"text": "boolean"
|
|
6674
7553
|
},
|
|
6675
|
-
"default": "
|
|
6676
|
-
"fieldName": "
|
|
7554
|
+
"default": "false",
|
|
7555
|
+
"fieldName": "sortable"
|
|
6677
7556
|
},
|
|
6678
7557
|
{
|
|
6679
|
-
"name": "
|
|
7558
|
+
"name": "bordered",
|
|
6680
7559
|
"type": {
|
|
6681
7560
|
"text": "boolean"
|
|
6682
7561
|
},
|
|
6683
7562
|
"default": "false",
|
|
6684
|
-
"fieldName": "
|
|
7563
|
+
"fieldName": "bordered"
|
|
7564
|
+
},
|
|
7565
|
+
{
|
|
7566
|
+
"name": "download",
|
|
7567
|
+
"type": {
|
|
7568
|
+
"text": "string"
|
|
7569
|
+
},
|
|
7570
|
+
"default": "\"\"",
|
|
7571
|
+
"fieldName": "download"
|
|
6685
7572
|
}
|
|
6686
7573
|
],
|
|
6687
7574
|
"superclass": {
|
|
6688
7575
|
"name": "LitElement",
|
|
6689
7576
|
"package": "lit"
|
|
6690
7577
|
},
|
|
6691
|
-
"tagName": "nys-
|
|
7578
|
+
"tagName": "nys-table",
|
|
6692
7579
|
"customElement": true
|
|
6693
7580
|
}
|
|
6694
7581
|
],
|
|
6695
7582
|
"exports": [
|
|
6696
7583
|
{
|
|
6697
7584
|
"kind": "custom-element-definition",
|
|
6698
|
-
"name": "nys-
|
|
7585
|
+
"name": "nys-table",
|
|
6699
7586
|
"declaration": {
|
|
6700
|
-
"name": "
|
|
6701
|
-
"module": "packages/nys-
|
|
7587
|
+
"name": "NysTable",
|
|
7588
|
+
"module": "packages/nys-table/src/nys-table.ts"
|
|
6702
7589
|
}
|
|
6703
7590
|
},
|
|
6704
7591
|
{
|
|
6705
7592
|
"kind": "js",
|
|
6706
|
-
"name": "
|
|
7593
|
+
"name": "NysTable",
|
|
6707
7594
|
"declaration": {
|
|
6708
|
-
"name": "
|
|
6709
|
-
"module": "packages/nys-
|
|
7595
|
+
"name": "NysTable",
|
|
7596
|
+
"module": "packages/nys-table/src/nys-table.ts"
|
|
6710
7597
|
}
|
|
6711
7598
|
}
|
|
6712
7599
|
]
|
|
@@ -6732,8 +7619,14 @@
|
|
|
6732
7619
|
"declarations": [
|
|
6733
7620
|
{
|
|
6734
7621
|
"kind": "class",
|
|
6735
|
-
"description": "",
|
|
7622
|
+
"description": "`<nys-textarea>` is a form-enabled textarea with validation, accessibility support,\nand live error messages. Integrates with forms via ElementInternals.",
|
|
6736
7623
|
"name": "NysTextarea",
|
|
7624
|
+
"slots": [
|
|
7625
|
+
{
|
|
7626
|
+
"description": "Optional slot for custom description content below the label.",
|
|
7627
|
+
"name": "description"
|
|
7628
|
+
}
|
|
7629
|
+
],
|
|
6737
7630
|
"members": [
|
|
6738
7631
|
{
|
|
6739
7632
|
"kind": "field",
|
|
@@ -6833,12 +7726,12 @@
|
|
|
6833
7726
|
},
|
|
6834
7727
|
{
|
|
6835
7728
|
"kind": "field",
|
|
6836
|
-
"name": "
|
|
7729
|
+
"name": "tooltip",
|
|
6837
7730
|
"type": {
|
|
6838
7731
|
"text": "string"
|
|
6839
7732
|
},
|
|
6840
7733
|
"default": "\"\"",
|
|
6841
|
-
"attribute": "
|
|
7734
|
+
"attribute": "tooltip"
|
|
6842
7735
|
},
|
|
6843
7736
|
{
|
|
6844
7737
|
"kind": "field",
|
|
@@ -6869,22 +7762,11 @@
|
|
|
6869
7762
|
"default": "null",
|
|
6870
7763
|
"attribute": "maxlength"
|
|
6871
7764
|
},
|
|
6872
|
-
{
|
|
6873
|
-
"kind": "field",
|
|
6874
|
-
"name": "VALID_WIDTHS",
|
|
6875
|
-
"privacy": "private",
|
|
6876
|
-
"static": true,
|
|
6877
|
-
"readonly": true,
|
|
6878
|
-
"default": "[\"sm\", \"md\", \"lg\", \"full\"]",
|
|
6879
|
-
"type": {
|
|
6880
|
-
"text": "[\"sm\", \"md\", \"lg\", \"full\"]"
|
|
6881
|
-
}
|
|
6882
|
-
},
|
|
6883
7765
|
{
|
|
6884
7766
|
"kind": "field",
|
|
6885
7767
|
"name": "width",
|
|
6886
7768
|
"type": {
|
|
6887
|
-
"text": "
|
|
7769
|
+
"text": "| \"sm\"\n | \"md\"\n | \"lg\"\n | \"full\""
|
|
6888
7770
|
},
|
|
6889
7771
|
"default": "\"full\"",
|
|
6890
7772
|
"attribute": "width",
|
|
@@ -6899,32 +7781,13 @@
|
|
|
6899
7781
|
"default": "4",
|
|
6900
7782
|
"attribute": "rows"
|
|
6901
7783
|
},
|
|
6902
|
-
{
|
|
6903
|
-
"kind": "field",
|
|
6904
|
-
"name": "VALID_RESIZE",
|
|
6905
|
-
"privacy": "private",
|
|
6906
|
-
"static": true,
|
|
6907
|
-
"readonly": true,
|
|
6908
|
-
"default": "[\"vertical\", \"none\"]",
|
|
6909
|
-
"type": {
|
|
6910
|
-
"text": "[\"vertical\", \"none\"]"
|
|
6911
|
-
}
|
|
6912
|
-
},
|
|
6913
|
-
{
|
|
6914
|
-
"kind": "field",
|
|
6915
|
-
"name": "_resize",
|
|
6916
|
-
"type": {
|
|
6917
|
-
"text": "(typeof NysTextarea.VALID_RESIZE)[number]"
|
|
6918
|
-
},
|
|
6919
|
-
"privacy": "private",
|
|
6920
|
-
"default": "\"vertical\""
|
|
6921
|
-
},
|
|
6922
7784
|
{
|
|
6923
7785
|
"kind": "field",
|
|
6924
7786
|
"name": "resize",
|
|
6925
7787
|
"type": {
|
|
6926
|
-
"text": "
|
|
7788
|
+
"text": "\"vertical\" | \"none\""
|
|
6927
7789
|
},
|
|
7790
|
+
"default": "\"vertical\"",
|
|
6928
7791
|
"attribute": "resize",
|
|
6929
7792
|
"reflects": true
|
|
6930
7793
|
},
|
|
@@ -6972,17 +7835,13 @@
|
|
|
6972
7835
|
},
|
|
6973
7836
|
"static": true,
|
|
6974
7837
|
"default": "true",
|
|
6975
|
-
"description": "
|
|
6976
|
-
},
|
|
6977
|
-
{
|
|
6978
|
-
"kind": "method",
|
|
6979
|
-
"name": "formResetCallback"
|
|
7838
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
6980
7839
|
},
|
|
6981
7840
|
{
|
|
6982
7841
|
"kind": "method",
|
|
6983
7842
|
"name": "_setValue",
|
|
6984
7843
|
"privacy": "private",
|
|
6985
|
-
"description": "
|
|
7844
|
+
"description": "Form Integration\n--------------------------------------------------------------------------"
|
|
6986
7845
|
},
|
|
6987
7846
|
{
|
|
6988
7847
|
"kind": "method",
|
|
@@ -7008,6 +7867,10 @@
|
|
|
7008
7867
|
"name": "_validate",
|
|
7009
7868
|
"privacy": "private"
|
|
7010
7869
|
},
|
|
7870
|
+
{
|
|
7871
|
+
"kind": "method",
|
|
7872
|
+
"name": "formResetCallback"
|
|
7873
|
+
},
|
|
7011
7874
|
{
|
|
7012
7875
|
"kind": "method",
|
|
7013
7876
|
"name": "checkValidity",
|
|
@@ -7016,7 +7879,7 @@
|
|
|
7016
7879
|
"text": "boolean"
|
|
7017
7880
|
}
|
|
7018
7881
|
},
|
|
7019
|
-
"description": "
|
|
7882
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
7020
7883
|
},
|
|
7021
7884
|
{
|
|
7022
7885
|
"kind": "method",
|
|
@@ -7043,7 +7906,7 @@
|
|
|
7043
7906
|
}
|
|
7044
7907
|
}
|
|
7045
7908
|
],
|
|
7046
|
-
"description": "
|
|
7909
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
7047
7910
|
},
|
|
7048
7911
|
{
|
|
7049
7912
|
"kind": "method",
|
|
@@ -7087,31 +7950,36 @@
|
|
|
7087
7950
|
"name": "nys-input",
|
|
7088
7951
|
"type": {
|
|
7089
7952
|
"text": "CustomEvent"
|
|
7090
|
-
}
|
|
7953
|
+
},
|
|
7954
|
+
"description": "Fired on input, detail: `{ id, value }`"
|
|
7091
7955
|
},
|
|
7092
7956
|
{
|
|
7093
7957
|
"name": "nys-focus",
|
|
7094
7958
|
"type": {
|
|
7095
7959
|
"text": "Event"
|
|
7096
|
-
}
|
|
7960
|
+
},
|
|
7961
|
+
"description": "Fired on focus."
|
|
7097
7962
|
},
|
|
7098
7963
|
{
|
|
7099
7964
|
"name": "nys-blur",
|
|
7100
7965
|
"type": {
|
|
7101
7966
|
"text": "Event"
|
|
7102
|
-
}
|
|
7967
|
+
},
|
|
7968
|
+
"description": "Fired on blur."
|
|
7103
7969
|
},
|
|
7104
7970
|
{
|
|
7105
7971
|
"name": "nys-select",
|
|
7106
7972
|
"type": {
|
|
7107
7973
|
"text": "CustomEvent"
|
|
7108
|
-
}
|
|
7974
|
+
},
|
|
7975
|
+
"description": "Fired on text selection, detail: `{ id, value }`"
|
|
7109
7976
|
},
|
|
7110
7977
|
{
|
|
7111
7978
|
"name": "nys-selectionchange",
|
|
7112
7979
|
"type": {
|
|
7113
7980
|
"text": "CustomEvent"
|
|
7114
|
-
}
|
|
7981
|
+
},
|
|
7982
|
+
"description": "Fired on selection change, detail: `{ id, value }`"
|
|
7115
7983
|
}
|
|
7116
7984
|
],
|
|
7117
7985
|
"attributes": [
|
|
@@ -7196,12 +8064,12 @@
|
|
|
7196
8064
|
"fieldName": "optional"
|
|
7197
8065
|
},
|
|
7198
8066
|
{
|
|
7199
|
-
"name": "
|
|
8067
|
+
"name": "tooltip",
|
|
7200
8068
|
"type": {
|
|
7201
8069
|
"text": "string"
|
|
7202
8070
|
},
|
|
7203
8071
|
"default": "\"\"",
|
|
7204
|
-
"fieldName": "
|
|
8072
|
+
"fieldName": "tooltip"
|
|
7205
8073
|
},
|
|
7206
8074
|
{
|
|
7207
8075
|
"name": "inverted",
|
|
@@ -7230,7 +8098,7 @@
|
|
|
7230
8098
|
{
|
|
7231
8099
|
"name": "width",
|
|
7232
8100
|
"type": {
|
|
7233
|
-
"text": "
|
|
8101
|
+
"text": "| \"sm\"\n | \"md\"\n | \"lg\"\n | \"full\""
|
|
7234
8102
|
},
|
|
7235
8103
|
"default": "\"full\"",
|
|
7236
8104
|
"fieldName": "width"
|
|
@@ -7246,8 +8114,9 @@
|
|
|
7246
8114
|
{
|
|
7247
8115
|
"name": "resize",
|
|
7248
8116
|
"type": {
|
|
7249
|
-
"text": "
|
|
8117
|
+
"text": "\"vertical\" | \"none\""
|
|
7250
8118
|
},
|
|
8119
|
+
"default": "\"vertical\"",
|
|
7251
8120
|
"fieldName": "resize"
|
|
7252
8121
|
},
|
|
7253
8122
|
{
|
|
@@ -7315,8 +8184,22 @@
|
|
|
7315
8184
|
"declarations": [
|
|
7316
8185
|
{
|
|
7317
8186
|
"kind": "class",
|
|
7318
|
-
"description": "",
|
|
8187
|
+
"description": "`<nys-textinput>` is a form-enabled text input with validation, optional\nmasking, password toggle, accessibility support, and live error messages.\nWorks with forms via ElementInternals.",
|
|
7319
8188
|
"name": "NysTextinput",
|
|
8189
|
+
"slots": [
|
|
8190
|
+
{
|
|
8191
|
+
"description": "Optional custom description content below the label.",
|
|
8192
|
+
"name": "description"
|
|
8193
|
+
},
|
|
8194
|
+
{
|
|
8195
|
+
"description": "Slot for a single <nys-button> at the start of the input.",
|
|
8196
|
+
"name": "startButton"
|
|
8197
|
+
},
|
|
8198
|
+
{
|
|
8199
|
+
"description": "Slot for a single <nys-button> at the end of the input.",
|
|
8200
|
+
"name": "endButton"
|
|
8201
|
+
}
|
|
8202
|
+
],
|
|
7320
8203
|
"members": [
|
|
7321
8204
|
{
|
|
7322
8205
|
"kind": "field",
|
|
@@ -7338,32 +8221,13 @@
|
|
|
7338
8221
|
"attribute": "name",
|
|
7339
8222
|
"reflects": true
|
|
7340
8223
|
},
|
|
7341
|
-
{
|
|
7342
|
-
"kind": "field",
|
|
7343
|
-
"name": "VALID_TYPES",
|
|
7344
|
-
"privacy": "private",
|
|
7345
|
-
"static": true,
|
|
7346
|
-
"readonly": true,
|
|
7347
|
-
"default": "[ \"email\", \"number\", \"password\", \"search\", \"tel\", \"text\", \"url\", ]",
|
|
7348
|
-
"type": {
|
|
7349
|
-
"text": "[\n \"email\",\n \"number\",\n \"password\",\n \"search\",\n \"tel\",\n \"text\",\n \"url\",\n ]"
|
|
7350
|
-
}
|
|
7351
|
-
},
|
|
7352
|
-
{
|
|
7353
|
-
"kind": "field",
|
|
7354
|
-
"name": "_type",
|
|
7355
|
-
"type": {
|
|
7356
|
-
"text": "(typeof NysTextinput.VALID_TYPES)[number]"
|
|
7357
|
-
},
|
|
7358
|
-
"privacy": "private",
|
|
7359
|
-
"default": "\"text\""
|
|
7360
|
-
},
|
|
7361
8224
|
{
|
|
7362
8225
|
"kind": "field",
|
|
7363
8226
|
"name": "type",
|
|
7364
8227
|
"type": {
|
|
7365
|
-
"text": "
|
|
8228
|
+
"text": "| \"email\"\n | \"number\"\n | \"password\"\n | \"search\"\n | \"tel\"\n | \"text\"\n | \"url\""
|
|
7366
8229
|
},
|
|
8230
|
+
"default": "\"text\"",
|
|
7367
8231
|
"attribute": "type",
|
|
7368
8232
|
"reflects": true
|
|
7369
8233
|
},
|
|
@@ -7445,12 +8309,12 @@
|
|
|
7445
8309
|
},
|
|
7446
8310
|
{
|
|
7447
8311
|
"kind": "field",
|
|
7448
|
-
"name": "
|
|
8312
|
+
"name": "tooltip",
|
|
7449
8313
|
"type": {
|
|
7450
8314
|
"text": "string"
|
|
7451
8315
|
},
|
|
7452
8316
|
"default": "\"\"",
|
|
7453
|
-
"attribute": "
|
|
8317
|
+
"attribute": "tooltip"
|
|
7454
8318
|
},
|
|
7455
8319
|
{
|
|
7456
8320
|
"kind": "field",
|
|
@@ -7480,22 +8344,11 @@
|
|
|
7480
8344
|
"default": "null",
|
|
7481
8345
|
"attribute": "maxlength"
|
|
7482
8346
|
},
|
|
7483
|
-
{
|
|
7484
|
-
"kind": "field",
|
|
7485
|
-
"name": "VALID_WIDTHS",
|
|
7486
|
-
"privacy": "private",
|
|
7487
|
-
"static": true,
|
|
7488
|
-
"readonly": true,
|
|
7489
|
-
"default": "[\"sm\", \"md\", \"lg\", \"full\"]",
|
|
7490
|
-
"type": {
|
|
7491
|
-
"text": "[\"sm\", \"md\", \"lg\", \"full\"]"
|
|
7492
|
-
}
|
|
7493
|
-
},
|
|
7494
8347
|
{
|
|
7495
8348
|
"kind": "field",
|
|
7496
8349
|
"name": "width",
|
|
7497
8350
|
"type": {
|
|
7498
|
-
"text": "
|
|
8351
|
+
"text": "| \"sm\"\n | \"md\"\n | \"lg\"\n | \"full\""
|
|
7499
8352
|
},
|
|
7500
8353
|
"default": "\"full\"",
|
|
7501
8354
|
"attribute": "width",
|
|
@@ -7609,17 +8462,13 @@
|
|
|
7609
8462
|
},
|
|
7610
8463
|
"static": true,
|
|
7611
8464
|
"default": "true",
|
|
7612
|
-
"description": "
|
|
7613
|
-
},
|
|
7614
|
-
{
|
|
7615
|
-
"kind": "method",
|
|
7616
|
-
"name": "formResetCallback"
|
|
8465
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
7617
8466
|
},
|
|
7618
8467
|
{
|
|
7619
8468
|
"kind": "method",
|
|
7620
8469
|
"name": "_setValue",
|
|
7621
8470
|
"privacy": "private",
|
|
7622
|
-
"description": "
|
|
8471
|
+
"description": "Form Integration\n--------------------------------------------------------------------------"
|
|
7623
8472
|
},
|
|
7624
8473
|
{
|
|
7625
8474
|
"kind": "method",
|
|
@@ -7645,6 +8494,10 @@
|
|
|
7645
8494
|
"name": "_validate",
|
|
7646
8495
|
"privacy": "private"
|
|
7647
8496
|
},
|
|
8497
|
+
{
|
|
8498
|
+
"kind": "method",
|
|
8499
|
+
"name": "formResetCallback"
|
|
8500
|
+
},
|
|
7648
8501
|
{
|
|
7649
8502
|
"kind": "method",
|
|
7650
8503
|
"name": "checkValidity",
|
|
@@ -7653,7 +8506,7 @@
|
|
|
7653
8506
|
"text": "boolean"
|
|
7654
8507
|
}
|
|
7655
8508
|
},
|
|
7656
|
-
"description": "
|
|
8509
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
7657
8510
|
},
|
|
7658
8511
|
{
|
|
7659
8512
|
"kind": "method",
|
|
@@ -7728,7 +8581,7 @@
|
|
|
7728
8581
|
}
|
|
7729
8582
|
}
|
|
7730
8583
|
],
|
|
7731
|
-
"description": "
|
|
8584
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
7732
8585
|
},
|
|
7733
8586
|
{
|
|
7734
8587
|
"kind": "method",
|
|
@@ -7759,19 +8612,22 @@
|
|
|
7759
8612
|
"name": "nys-input",
|
|
7760
8613
|
"type": {
|
|
7761
8614
|
"text": "CustomEvent"
|
|
7762
|
-
}
|
|
8615
|
+
},
|
|
8616
|
+
"description": "Fired on input change. Detail: `{ id, value }`."
|
|
7763
8617
|
},
|
|
7764
8618
|
{
|
|
7765
8619
|
"name": "nys-focus",
|
|
7766
8620
|
"type": {
|
|
7767
8621
|
"text": "Event"
|
|
7768
|
-
}
|
|
8622
|
+
},
|
|
8623
|
+
"description": "Fired when input receives focus."
|
|
7769
8624
|
},
|
|
7770
8625
|
{
|
|
7771
8626
|
"name": "nys-blur",
|
|
7772
8627
|
"type": {
|
|
7773
8628
|
"text": "Event"
|
|
7774
|
-
}
|
|
8629
|
+
},
|
|
8630
|
+
"description": "Fired when input loses focus."
|
|
7775
8631
|
}
|
|
7776
8632
|
],
|
|
7777
8633
|
"attributes": [
|
|
@@ -7794,8 +8650,9 @@
|
|
|
7794
8650
|
{
|
|
7795
8651
|
"name": "type",
|
|
7796
8652
|
"type": {
|
|
7797
|
-
"text": "
|
|
8653
|
+
"text": "| \"email\"\n | \"number\"\n | \"password\"\n | \"search\"\n | \"tel\"\n | \"text\"\n | \"url\""
|
|
7798
8654
|
},
|
|
8655
|
+
"default": "\"text\"",
|
|
7799
8656
|
"fieldName": "type"
|
|
7800
8657
|
},
|
|
7801
8658
|
{
|
|
@@ -7863,12 +8720,12 @@
|
|
|
7863
8720
|
"fieldName": "optional"
|
|
7864
8721
|
},
|
|
7865
8722
|
{
|
|
7866
|
-
"name": "
|
|
8723
|
+
"name": "tooltip",
|
|
7867
8724
|
"type": {
|
|
7868
8725
|
"text": "string"
|
|
7869
8726
|
},
|
|
7870
8727
|
"default": "\"\"",
|
|
7871
|
-
"fieldName": "
|
|
8728
|
+
"fieldName": "tooltip"
|
|
7872
8729
|
},
|
|
7873
8730
|
{
|
|
7874
8731
|
"name": "form",
|
|
@@ -7897,7 +8754,7 @@
|
|
|
7897
8754
|
{
|
|
7898
8755
|
"name": "width",
|
|
7899
8756
|
"type": {
|
|
7900
|
-
"text": "
|
|
8757
|
+
"text": "| \"sm\"\n | \"md\"\n | \"lg\"\n | \"full\""
|
|
7901
8758
|
},
|
|
7902
8759
|
"default": "\"full\"",
|
|
7903
8760
|
"fieldName": "width"
|
|
@@ -7999,8 +8856,14 @@
|
|
|
7999
8856
|
"declarations": [
|
|
8000
8857
|
{
|
|
8001
8858
|
"kind": "class",
|
|
8002
|
-
"description": "",
|
|
8859
|
+
"description": "`<nys-toggle>` is a form-associated toggle switch with label, description,\nsize variants, inverted styles, and optional icons. Supports keyboard\ninteraction and integrates with forms via ElementInternals.",
|
|
8003
8860
|
"name": "NysToggle",
|
|
8861
|
+
"slots": [
|
|
8862
|
+
{
|
|
8863
|
+
"description": "Optional slot to provide additional description below the label.",
|
|
8864
|
+
"name": "description"
|
|
8865
|
+
}
|
|
8866
|
+
],
|
|
8004
8867
|
"members": [
|
|
8005
8868
|
{
|
|
8006
8869
|
"kind": "field",
|
|
@@ -8098,32 +8961,13 @@
|
|
|
8098
8961
|
"attribute": "inverted",
|
|
8099
8962
|
"reflects": true
|
|
8100
8963
|
},
|
|
8101
|
-
{
|
|
8102
|
-
"kind": "field",
|
|
8103
|
-
"name": "VALID_SIZES",
|
|
8104
|
-
"privacy": "private",
|
|
8105
|
-
"static": true,
|
|
8106
|
-
"readonly": true,
|
|
8107
|
-
"default": "[\"sm\", \"md\"]",
|
|
8108
|
-
"type": {
|
|
8109
|
-
"text": "[\"sm\", \"md\"]"
|
|
8110
|
-
}
|
|
8111
|
-
},
|
|
8112
|
-
{
|
|
8113
|
-
"kind": "field",
|
|
8114
|
-
"name": "_size",
|
|
8115
|
-
"type": {
|
|
8116
|
-
"text": "(typeof NysToggle.VALID_SIZES)[number]"
|
|
8117
|
-
},
|
|
8118
|
-
"privacy": "private",
|
|
8119
|
-
"default": "\"md\""
|
|
8120
|
-
},
|
|
8121
8964
|
{
|
|
8122
8965
|
"kind": "field",
|
|
8123
8966
|
"name": "size",
|
|
8124
8967
|
"type": {
|
|
8125
|
-
"text": "
|
|
8968
|
+
"text": "\"sm\" | \"md\""
|
|
8126
8969
|
},
|
|
8970
|
+
"default": "\"md\"",
|
|
8127
8971
|
"attribute": "size",
|
|
8128
8972
|
"reflects": true
|
|
8129
8973
|
},
|
|
@@ -8143,13 +8987,13 @@
|
|
|
8143
8987
|
},
|
|
8144
8988
|
"static": true,
|
|
8145
8989
|
"default": "true",
|
|
8146
|
-
"description": "
|
|
8990
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
8147
8991
|
},
|
|
8148
8992
|
{
|
|
8149
8993
|
"kind": "method",
|
|
8150
8994
|
"name": "_emitChangeEvent",
|
|
8151
8995
|
"privacy": "private",
|
|
8152
|
-
"description": "
|
|
8996
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
8153
8997
|
},
|
|
8154
8998
|
{
|
|
8155
8999
|
"kind": "method",
|
|
@@ -8193,19 +9037,22 @@
|
|
|
8193
9037
|
"name": "nys-change",
|
|
8194
9038
|
"type": {
|
|
8195
9039
|
"text": "CustomEvent"
|
|
8196
|
-
}
|
|
9040
|
+
},
|
|
9041
|
+
"description": "Fired when toggle changes state. Detail: `{ id, checked }`."
|
|
8197
9042
|
},
|
|
8198
9043
|
{
|
|
8199
9044
|
"name": "nys-focus",
|
|
8200
9045
|
"type": {
|
|
8201
9046
|
"text": "Event"
|
|
8202
|
-
}
|
|
9047
|
+
},
|
|
9048
|
+
"description": "Fired when toggle receives focus."
|
|
8203
9049
|
},
|
|
8204
9050
|
{
|
|
8205
9051
|
"name": "nys-blur",
|
|
8206
9052
|
"type": {
|
|
8207
9053
|
"text": "Event"
|
|
8208
|
-
}
|
|
9054
|
+
},
|
|
9055
|
+
"description": "Fired when toggle loses focus."
|
|
8209
9056
|
}
|
|
8210
9057
|
],
|
|
8211
9058
|
"attributes": [
|
|
@@ -8292,8 +9139,9 @@
|
|
|
8292
9139
|
{
|
|
8293
9140
|
"name": "size",
|
|
8294
9141
|
"type": {
|
|
8295
|
-
"text": "
|
|
9142
|
+
"text": "\"sm\" | \"md\""
|
|
8296
9143
|
},
|
|
9144
|
+
"default": "\"md\"",
|
|
8297
9145
|
"fieldName": "size"
|
|
8298
9146
|
}
|
|
8299
9147
|
],
|
|
@@ -8345,7 +9193,7 @@
|
|
|
8345
9193
|
"declarations": [
|
|
8346
9194
|
{
|
|
8347
9195
|
"kind": "class",
|
|
8348
|
-
"description": "",
|
|
9196
|
+
"description": "`<nys-tooltip>` is a custom tooltip component for NYS design system elements.\nIt supports dynamic positioning, screen-reader accessibility, keyboard interaction,\nand viewport overflow handling.\n\nThe tooltip automatically positions itself relative to a target element specified\nvia the `for` attribute, but can also respect a user-defined position.",
|
|
8349
9197
|
"name": "NysTooltip",
|
|
8350
9198
|
"members": [
|
|
8351
9199
|
{
|
|
@@ -8379,13 +9227,12 @@
|
|
|
8379
9227
|
},
|
|
8380
9228
|
{
|
|
8381
9229
|
"kind": "field",
|
|
8382
|
-
"name": "
|
|
9230
|
+
"name": "for",
|
|
8383
9231
|
"type": {
|
|
8384
|
-
"text": "
|
|
9232
|
+
"text": "string"
|
|
8385
9233
|
},
|
|
8386
|
-
"default": "
|
|
8387
|
-
"attribute": "
|
|
8388
|
-
"reflects": true
|
|
9234
|
+
"default": "\"\"",
|
|
9235
|
+
"attribute": "for"
|
|
8389
9236
|
},
|
|
8390
9237
|
{
|
|
8391
9238
|
"kind": "field",
|
|
@@ -8423,6 +9270,15 @@
|
|
|
8423
9270
|
"privacy": "private",
|
|
8424
9271
|
"default": "false"
|
|
8425
9272
|
},
|
|
9273
|
+
{
|
|
9274
|
+
"kind": "field",
|
|
9275
|
+
"name": "_hideTimeout",
|
|
9276
|
+
"type": {
|
|
9277
|
+
"text": "number | null"
|
|
9278
|
+
},
|
|
9279
|
+
"privacy": "private",
|
|
9280
|
+
"default": "null"
|
|
9281
|
+
},
|
|
8426
9282
|
{
|
|
8427
9283
|
"kind": "field",
|
|
8428
9284
|
"name": "_position",
|
|
@@ -8430,8 +9286,7 @@
|
|
|
8430
9286
|
"text": "\"top\" | \"bottom\" | \"left\" | \"right\" | null"
|
|
8431
9287
|
},
|
|
8432
9288
|
"privacy": "private",
|
|
8433
|
-
"default": "null"
|
|
8434
|
-
"description": "******************* Position Logic ********************"
|
|
9289
|
+
"default": "null"
|
|
8435
9290
|
},
|
|
8436
9291
|
{
|
|
8437
9292
|
"kind": "field",
|
|
@@ -8441,22 +9296,31 @@
|
|
|
8441
9296
|
},
|
|
8442
9297
|
{
|
|
8443
9298
|
"kind": "field",
|
|
8444
|
-
"name": "
|
|
8445
|
-
"type": {
|
|
8446
|
-
"text": "HTMLElement | undefined"
|
|
8447
|
-
},
|
|
9299
|
+
"name": "_showTooltip",
|
|
8448
9300
|
"privacy": "private",
|
|
8449
|
-
"
|
|
9301
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
8450
9302
|
},
|
|
8451
9303
|
{
|
|
8452
9304
|
"kind": "field",
|
|
8453
|
-
"name": "
|
|
9305
|
+
"name": "_handleBlurOrMouseLeave",
|
|
9306
|
+
"privacy": "private"
|
|
9307
|
+
},
|
|
9308
|
+
{
|
|
9309
|
+
"kind": "method",
|
|
9310
|
+
"name": "_triggerFadeOut",
|
|
8454
9311
|
"privacy": "private",
|
|
8455
|
-
"
|
|
9312
|
+
"parameters": [
|
|
9313
|
+
{
|
|
9314
|
+
"name": "tooltip",
|
|
9315
|
+
"type": {
|
|
9316
|
+
"text": "HTMLElement"
|
|
9317
|
+
}
|
|
9318
|
+
}
|
|
9319
|
+
]
|
|
8456
9320
|
},
|
|
8457
9321
|
{
|
|
8458
9322
|
"kind": "field",
|
|
8459
|
-
"name": "
|
|
9323
|
+
"name": "_cancelFadeOut",
|
|
8460
9324
|
"privacy": "private"
|
|
8461
9325
|
},
|
|
8462
9326
|
{
|
|
@@ -8479,6 +9343,12 @@
|
|
|
8479
9343
|
"name": "_handleEscapeKey",
|
|
8480
9344
|
"privacy": "private"
|
|
8481
9345
|
},
|
|
9346
|
+
{
|
|
9347
|
+
"kind": "method",
|
|
9348
|
+
"name": "_getReferenceElement",
|
|
9349
|
+
"privacy": "private",
|
|
9350
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
9351
|
+
},
|
|
8482
9352
|
{
|
|
8483
9353
|
"kind": "method",
|
|
8484
9354
|
"name": "_passAria",
|
|
@@ -8490,8 +9360,21 @@
|
|
|
8490
9360
|
"text": "HTMLElement"
|
|
8491
9361
|
}
|
|
8492
9362
|
}
|
|
9363
|
+
]
|
|
9364
|
+
},
|
|
9365
|
+
{
|
|
9366
|
+
"kind": "method",
|
|
9367
|
+
"name": "_applyTooltipPropToFormComponent",
|
|
9368
|
+
"privacy": "private",
|
|
9369
|
+
"parameters": [
|
|
9370
|
+
{
|
|
9371
|
+
"name": "ref",
|
|
9372
|
+
"type": {
|
|
9373
|
+
"text": "HTMLElement"
|
|
9374
|
+
}
|
|
9375
|
+
}
|
|
8493
9376
|
],
|
|
8494
|
-
"description": "
|
|
9377
|
+
"description": "In React, the reference element found is often the native HTML element within the nys-component.\nTherefore, this function accounts for the closest NYS component ancestor that supports a tooltip prop."
|
|
8495
9378
|
},
|
|
8496
9379
|
{
|
|
8497
9380
|
"kind": "method",
|
|
@@ -8517,11 +9400,52 @@
|
|
|
8517
9400
|
"text": "typeof this._position"
|
|
8518
9401
|
}
|
|
8519
9402
|
}
|
|
9403
|
+
],
|
|
9404
|
+
"description": "Checks if the tooltip fits inside the viewport on the given side of the trigger.\nUsed for auto-positioning. Ignores text overflow for now."
|
|
9405
|
+
},
|
|
9406
|
+
{
|
|
9407
|
+
"kind": "method",
|
|
9408
|
+
"name": "_userPositionTooltip",
|
|
9409
|
+
"privacy": "private"
|
|
9410
|
+
},
|
|
9411
|
+
{
|
|
9412
|
+
"kind": "method",
|
|
9413
|
+
"name": "_autoPositionTooltip",
|
|
9414
|
+
"privacy": "private"
|
|
9415
|
+
},
|
|
9416
|
+
{
|
|
9417
|
+
"kind": "method",
|
|
9418
|
+
"name": "_positionStartingBase",
|
|
9419
|
+
"privacy": "private"
|
|
9420
|
+
},
|
|
9421
|
+
{
|
|
9422
|
+
"kind": "method",
|
|
9423
|
+
"name": "_positionTooltipElement",
|
|
9424
|
+
"privacy": "private",
|
|
9425
|
+
"parameters": [
|
|
9426
|
+
{
|
|
9427
|
+
"name": "ref",
|
|
9428
|
+
"type": {
|
|
9429
|
+
"text": "HTMLElement"
|
|
9430
|
+
}
|
|
9431
|
+
},
|
|
9432
|
+
{
|
|
9433
|
+
"name": "tooltip",
|
|
9434
|
+
"type": {
|
|
9435
|
+
"text": "HTMLElement"
|
|
9436
|
+
}
|
|
9437
|
+
},
|
|
9438
|
+
{
|
|
9439
|
+
"name": "bestPosition",
|
|
9440
|
+
"type": {
|
|
9441
|
+
"text": "typeof this._position"
|
|
9442
|
+
}
|
|
9443
|
+
}
|
|
8520
9444
|
]
|
|
8521
9445
|
},
|
|
8522
9446
|
{
|
|
8523
9447
|
"kind": "method",
|
|
8524
|
-
"name": "
|
|
9448
|
+
"name": "applyInverseTransform",
|
|
8525
9449
|
"privacy": "private"
|
|
8526
9450
|
},
|
|
8527
9451
|
{
|
|
@@ -8564,6 +9488,16 @@
|
|
|
8564
9488
|
]
|
|
8565
9489
|
}
|
|
8566
9490
|
],
|
|
9491
|
+
"events": [
|
|
9492
|
+
{
|
|
9493
|
+
"description": "Dispatched when the reference element receives focus (via keyboard or programmatically).",
|
|
9494
|
+
"name": "nys-focus"
|
|
9495
|
+
},
|
|
9496
|
+
{
|
|
9497
|
+
"description": "Dispatched when the reference element loses focus or mouse leaves the tooltip. Notes: - Tooltip visibility is automatically managed on hover/focus of the reference element. - The component adjusts position dynamically to prevent overflow off-screen. - Supports keyboard dismissal with the Escape key.",
|
|
9498
|
+
"name": "nys-blur"
|
|
9499
|
+
}
|
|
9500
|
+
],
|
|
8567
9501
|
"attributes": [
|
|
8568
9502
|
{
|
|
8569
9503
|
"name": "id",
|
|
@@ -8590,12 +9524,12 @@
|
|
|
8590
9524
|
"fieldName": "inverted"
|
|
8591
9525
|
},
|
|
8592
9526
|
{
|
|
8593
|
-
"name": "
|
|
9527
|
+
"name": "for",
|
|
8594
9528
|
"type": {
|
|
8595
|
-
"text": "
|
|
9529
|
+
"text": "string"
|
|
8596
9530
|
},
|
|
8597
|
-
"default": "
|
|
8598
|
-
"fieldName": "
|
|
9531
|
+
"default": "\"\"",
|
|
9532
|
+
"fieldName": "for"
|
|
8599
9533
|
},
|
|
8600
9534
|
{
|
|
8601
9535
|
"name": "position",
|
|
@@ -8650,14 +9584,14 @@
|
|
|
8650
9584
|
"declarations": [
|
|
8651
9585
|
{
|
|
8652
9586
|
"kind": "class",
|
|
8653
|
-
"description": "",
|
|
9587
|
+
"description": "`<nys-unavfooter>` is a footer component for New York State websites.\nIt displays the official NYS logo linking to ny.gov and a set of primary navigation links.\n\nFeatures:\n- Renders the NYS logo as an inline SVG linking to https://www.ny.gov\n- Provides key navigation links",
|
|
8654
9588
|
"name": "NysUnavFooter",
|
|
8655
9589
|
"members": [
|
|
8656
9590
|
{
|
|
8657
9591
|
"kind": "method",
|
|
8658
9592
|
"name": "_getNysLogo",
|
|
8659
9593
|
"privacy": "private",
|
|
8660
|
-
"description": "
|
|
9594
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
8661
9595
|
}
|
|
8662
9596
|
],
|
|
8663
9597
|
"superclass": {
|
|
@@ -8708,7 +9642,7 @@
|
|
|
8708
9642
|
"declarations": [
|
|
8709
9643
|
{
|
|
8710
9644
|
"kind": "class",
|
|
8711
|
-
"description": "",
|
|
9645
|
+
"description": "`<nys-unavheader>` is a universal header for New York State websites.\n\nFeatures:\n- Trust bar indicating official NYS site status, with expandable details\n- NYS logo linking to the homepage\n- Search bar with dropdown behavior for mobile and desktop\n- Language translation dropdown supporting multiple languages\n- Accessible interactions with ARIA attributes and keyboard handling",
|
|
8712
9646
|
"name": "NysUnavHeader",
|
|
8713
9647
|
"members": [
|
|
8714
9648
|
{
|
|
@@ -8779,7 +9713,8 @@
|
|
|
8779
9713
|
{
|
|
8780
9714
|
"kind": "method",
|
|
8781
9715
|
"name": "_getNysLogo",
|
|
8782
|
-
"privacy": "private"
|
|
9716
|
+
"privacy": "private",
|
|
9717
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
8783
9718
|
},
|
|
8784
9719
|
{
|
|
8785
9720
|
"kind": "method",
|