@nysds/components 1.21.1-alpha-1 → 1.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +276 -154
- package/dist/.vscode/vscode.css-custom-data.json +40 -0
- package/dist/.vscode/vscode.html-custom-data.json +17 -7
- package/dist/custom-elements.json +268 -98
- package/dist/{nys-icon.library-Bi_7DKlD-BEL9M8Q4.js → nys-icon.library-BxwfG3ym-D4Dl8jc_.js} +12 -4
- package/dist/nys-icon.library-BxwfG3ym-D4Dl8jc_.js.map +1 -0
- package/dist/{nys-icon.library-CwuPZJAc.js → nys-icon.library-C02yNW9R.js} +2 -2
- package/dist/{nys-icon.library-D_YvOGLH.js.map → nys-icon.library-C02yNW9R.js.map} +1 -1
- package/dist/nysds.es.js +4130 -4709
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +346 -328
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-backtotop/src/nys-backtotop.d.ts +2 -2
- package/dist/packages/nys-breadcrumbs/src/nys-breadcrumbs.d.ts +7 -2
- package/dist/packages/nys-card/src/nys-card.d.ts +52 -0
- package/dist/packages/nys-globalfooter/src/nys-globalfooter.d.ts +1 -0
- package/dist/packages/nys-globalheader/src/nys-globalheader.d.ts +19 -56
- package/dist/packages/nys-iconlist/src/nys-iconlist.d.ts +22 -1
- package/dist/packages/nys-iconlist/src/nys-iconlistitem.d.ts +6 -0
- package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +3 -16
- package/package.json +4 -4
- package/packages/react/.turbo/turbo-build.log +59 -0
- package/packages/react/NysCard.d.ts +11 -0
- package/packages/react/NysCard.js +2 -0
- package/packages/react/NysGlobalHeader.d.ts +0 -3
- package/packages/react/NysGlobalHeader.js +0 -2
- package/packages/react/NysIconlist.d.ts +4 -1
- package/packages/react/NysIconlist.js +2 -1
- package/packages/react/NysIconlistitem.d.ts +4 -0
- package/packages/react/NysIconlistitem.js +2 -1
- package/packages/react/NysUnavHeader.d.ts +3 -6
- package/packages/react/NysUnavHeader.js +0 -2
- package/packages/react/nysds-jsx.d.ts +19 -8
- package/dist/nys-icon.library-Bi_7DKlD-BEL9M8Q4.js.map +0 -1
- package/dist/nys-icon.library-Bi_7DKlD-YSs5zqZy.js +0 -698
- package/dist/nys-icon.library-Bi_7DKlD-YSs5zqZy.js.map +0 -1
- package/dist/nys-icon.library-CwuPZJAc.js.map +0 -1
- package/dist/nys-icon.library-D_YvOGLH.js +0 -696
package/custom-elements.json
CHANGED
|
@@ -1372,13 +1372,13 @@
|
|
|
1372
1372
|
"title": "Basic",
|
|
1373
1373
|
"code": "<footer>\n<nys-backtotop></nys-backtotop>\n<!-- Other footer content -->\n</footer>",
|
|
1374
1374
|
"lang": "html",
|
|
1375
|
-
"render": "<style>\ncode {\nwhite-space: nowrap;\npadding: var(--nys-space-1px) var(--nys-space-2px);\nborder-radius: var(--nys-radius-md);\ncolor: var(--nys-color-red-600);\nbackground: var(--nys-color-neutral-10);\nfont-size: var(--nys-font-size-sm);\n}\n</style>\n<nys-unavheader
|
|
1375
|
+
"render": "<style>\ncode {\nwhite-space: nowrap;\npadding: var(--nys-space-1px) var(--nys-space-2px);\nborder-radius: var(--nys-radius-md);\ncolor: var(--nys-color-red-600);\nbackground: var(--nys-color-neutral-10);\nfont-size: var(--nys-font-size-sm);\n}\n</style>\n<nys-unavheader hideTranslate hideSearch></nys-unavheader>\n<nys-globalheader appName=\"Back to Top Example\"></nys-globalheader>\n<main style=\"padding: 0 2rem\">\n<h1>Sample Content on page</h1>\n<p>\nThis is a sample content area used to demonstrate the functionality of\nthe Back to Top button. In an actual application,\n<code>nys-backtotop</code> would not be visible until the user scrolls\ndown the page.\n</p>\n</main>\n<footer>\n<nys-backtotop visible></nys-backtotop>\n<nys-unavfooter></nys-unavfooter>\n</footer>"
|
|
1376
1376
|
},
|
|
1377
1377
|
{
|
|
1378
1378
|
"title": "Left",
|
|
1379
1379
|
"code": "<footer>\n<nys-backtotop position=\"left\"></nys-backtotop>\n<!-- Other footer content -->\n</footer>",
|
|
1380
1380
|
"lang": "html",
|
|
1381
|
-
"render": "<style>\ncode {\nwhite-space: nowrap;\npadding: var(--nys-space-1px) var(--nys-space-2px);\nborder-radius: var(--nys-radius-md);\ncolor: var(--nys-color-red-600);\nbackground: var(--nys-color-neutral-10);\nfont-size: var(--nys-font-size-sm);\n}\nnys-button {\nposition: fixed;\nbottom: 1rem;\nright: 1rem;\n--_nys-button-border-radius: var(--nys-radius-round);\n}\n</style>\n<nys-unavheader
|
|
1381
|
+
"render": "<style>\ncode {\nwhite-space: nowrap;\npadding: var(--nys-space-1px) var(--nys-space-2px);\nborder-radius: var(--nys-radius-md);\ncolor: var(--nys-color-red-600);\nbackground: var(--nys-color-neutral-10);\nfont-size: var(--nys-font-size-sm);\n}\nnys-button {\nposition: fixed;\nbottom: 1rem;\nright: 1rem;\n--_nys-button-border-radius: var(--nys-radius-round);\n}\n</style>\n<nys-unavheader hideTranslate hideSearch></nys-unavheader>\n<nys-globalheader appName=\"Back to Top Example\"></nys-globalheader>\n<main style=\"padding: 0 2rem\">\n<h1>Sample Content on page</h1>\n<p>\nThis is a sample content area used to demonstrate the functionality of\nthe Back to Top button. In an actual application,\n<code>nys-backtotop</code> would not be visible until the user scrolls\ndown the page.\n</p>\n</main>\n<footer>\n<nys-backtotop visible position=\"left\"></nys-backtotop>\n<nys-button prefixIcon=\"sms\" variant=\"outline\" label=\"Chat with us\" size=\"sm\"></nys-button>\n<nys-unavfooter></nys-unavfooter>\n</footer>"
|
|
1382
1382
|
}
|
|
1383
1383
|
]
|
|
1384
1384
|
}
|
|
@@ -1939,6 +1939,11 @@
|
|
|
1939
1939
|
"privacy": "private",
|
|
1940
1940
|
"description": "Functions\n--------------------------------------------------------------------------"
|
|
1941
1941
|
},
|
|
1942
|
+
{
|
|
1943
|
+
"kind": "field",
|
|
1944
|
+
"name": "_boundDisabledClickGuard",
|
|
1945
|
+
"privacy": "private"
|
|
1946
|
+
},
|
|
1942
1947
|
{
|
|
1943
1948
|
"kind": "method",
|
|
1944
1949
|
"name": "_getSlottedOl",
|
|
@@ -1957,7 +1962,15 @@
|
|
|
1957
1962
|
"type": {
|
|
1958
1963
|
"text": "HTMLLIElement[]"
|
|
1959
1964
|
}
|
|
1960
|
-
}
|
|
1965
|
+
},
|
|
1966
|
+
"parameters": [
|
|
1967
|
+
{
|
|
1968
|
+
"name": "ol",
|
|
1969
|
+
"type": {
|
|
1970
|
+
"text": "HTMLOListElement"
|
|
1971
|
+
}
|
|
1972
|
+
}
|
|
1973
|
+
]
|
|
1961
1974
|
},
|
|
1962
1975
|
{
|
|
1963
1976
|
"kind": "method",
|
|
@@ -1997,7 +2010,31 @@
|
|
|
1997
2010
|
},
|
|
1998
2011
|
{
|
|
1999
2012
|
"kind": "method",
|
|
2000
|
-
"name": "
|
|
2013
|
+
"name": "_createIcon",
|
|
2014
|
+
"privacy": "private",
|
|
2015
|
+
"return": {
|
|
2016
|
+
"type": {
|
|
2017
|
+
"text": "HTMLElement"
|
|
2018
|
+
}
|
|
2019
|
+
},
|
|
2020
|
+
"parameters": [
|
|
2021
|
+
{
|
|
2022
|
+
"name": "name",
|
|
2023
|
+
"type": {
|
|
2024
|
+
"text": "string"
|
|
2025
|
+
}
|
|
2026
|
+
},
|
|
2027
|
+
{
|
|
2028
|
+
"name": "size",
|
|
2029
|
+
"type": {
|
|
2030
|
+
"text": "string"
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
2033
|
+
]
|
|
2034
|
+
},
|
|
2035
|
+
{
|
|
2036
|
+
"kind": "method",
|
|
2037
|
+
"name": "_resetItem",
|
|
2001
2038
|
"privacy": "private",
|
|
2002
2039
|
"parameters": [
|
|
2003
2040
|
{
|
|
@@ -2010,7 +2047,33 @@
|
|
|
2010
2047
|
},
|
|
2011
2048
|
{
|
|
2012
2049
|
"kind": "method",
|
|
2013
|
-
"name": "
|
|
2050
|
+
"name": "_applyDisabledState",
|
|
2051
|
+
"privacy": "private",
|
|
2052
|
+
"parameters": [
|
|
2053
|
+
{
|
|
2054
|
+
"name": "a",
|
|
2055
|
+
"type": {
|
|
2056
|
+
"text": "HTMLAnchorElement"
|
|
2057
|
+
}
|
|
2058
|
+
}
|
|
2059
|
+
]
|
|
2060
|
+
},
|
|
2061
|
+
{
|
|
2062
|
+
"kind": "method",
|
|
2063
|
+
"name": "_applyBackToParentStyle",
|
|
2064
|
+
"privacy": "private",
|
|
2065
|
+
"parameters": [
|
|
2066
|
+
{
|
|
2067
|
+
"name": "li",
|
|
2068
|
+
"type": {
|
|
2069
|
+
"text": "HTMLLIElement"
|
|
2070
|
+
}
|
|
2071
|
+
}
|
|
2072
|
+
]
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
"kind": "method",
|
|
2076
|
+
"name": "_applyCrumbStyle",
|
|
2014
2077
|
"privacy": "private",
|
|
2015
2078
|
"parameters": [
|
|
2016
2079
|
{
|
|
@@ -2027,6 +2090,19 @@
|
|
|
2027
2090
|
}
|
|
2028
2091
|
]
|
|
2029
2092
|
},
|
|
2093
|
+
{
|
|
2094
|
+
"kind": "method",
|
|
2095
|
+
"name": "_insertEllipsis",
|
|
2096
|
+
"privacy": "private",
|
|
2097
|
+
"parameters": [
|
|
2098
|
+
{
|
|
2099
|
+
"name": "referenceLi",
|
|
2100
|
+
"type": {
|
|
2101
|
+
"text": "HTMLLIElement"
|
|
2102
|
+
}
|
|
2103
|
+
}
|
|
2104
|
+
]
|
|
2105
|
+
},
|
|
2030
2106
|
{
|
|
2031
2107
|
"kind": "method",
|
|
2032
2108
|
"name": "_handleSlotChange",
|
|
@@ -3047,6 +3123,38 @@
|
|
|
3047
3123
|
"description": "Height of the card. Set to `100%` to stretch the card to its container's height, so a row of cards renders at an equal height. The extra height is absorbed by the main content area, keeping the `footer` slot pinned to the bottom of the card. Requires the container to give the card a height to fill (e.g. a grid column with `nys-display-flex`).",
|
|
3048
3124
|
"name": "--nys-card-height",
|
|
3049
3125
|
"default": "fit-content"
|
|
3126
|
+
},
|
|
3127
|
+
{
|
|
3128
|
+
"description": "Font size of the preheading text.",
|
|
3129
|
+
"name": "--nys-card-font-size--preheading"
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
"description": "Font size of the heading text.",
|
|
3133
|
+
"name": "--nys-card-font-size--heading"
|
|
3134
|
+
},
|
|
3135
|
+
{
|
|
3136
|
+
"description": "Font size of the subheading text.",
|
|
3137
|
+
"name": "--nys-card-font-size--subheading"
|
|
3138
|
+
},
|
|
3139
|
+
{
|
|
3140
|
+
"description": "Font size of the description text.",
|
|
3141
|
+
"name": "--nys-card-font-size--description"
|
|
3142
|
+
},
|
|
3143
|
+
{
|
|
3144
|
+
"description": "Line height of the preheading text.",
|
|
3145
|
+
"name": "--nys-card-line-height--preheading"
|
|
3146
|
+
},
|
|
3147
|
+
{
|
|
3148
|
+
"description": "Line height of the heading text.",
|
|
3149
|
+
"name": "--nys-card-line-height--heading"
|
|
3150
|
+
},
|
|
3151
|
+
{
|
|
3152
|
+
"description": "Line height of the subheading text.",
|
|
3153
|
+
"name": "--nys-card-line-height--subheading"
|
|
3154
|
+
},
|
|
3155
|
+
{
|
|
3156
|
+
"description": "Line height of the description text.",
|
|
3157
|
+
"name": "--nys-card-line-height--description"
|
|
3050
3158
|
}
|
|
3051
3159
|
],
|
|
3052
3160
|
"slots": [
|
|
@@ -3083,6 +3191,17 @@
|
|
|
3083
3191
|
"attribute": "id",
|
|
3084
3192
|
"reflects": true
|
|
3085
3193
|
},
|
|
3194
|
+
{
|
|
3195
|
+
"kind": "field",
|
|
3196
|
+
"name": "size",
|
|
3197
|
+
"type": {
|
|
3198
|
+
"text": "\"sm\" | \"md\" | \"lg\""
|
|
3199
|
+
},
|
|
3200
|
+
"default": "\"md\"",
|
|
3201
|
+
"description": "The size of the text content within a card (preheading, heading, subheading, and description).",
|
|
3202
|
+
"attribute": "size",
|
|
3203
|
+
"reflects": true
|
|
3204
|
+
},
|
|
3086
3205
|
{
|
|
3087
3206
|
"kind": "field",
|
|
3088
3207
|
"name": "preheading",
|
|
@@ -3357,6 +3476,16 @@
|
|
|
3357
3476
|
"fieldName": "id",
|
|
3358
3477
|
"propName": "id"
|
|
3359
3478
|
},
|
|
3479
|
+
{
|
|
3480
|
+
"name": "size",
|
|
3481
|
+
"type": {
|
|
3482
|
+
"text": "\"sm\" | \"md\" | \"lg\""
|
|
3483
|
+
},
|
|
3484
|
+
"default": "\"md\"",
|
|
3485
|
+
"description": "The size of the text content within a card (preheading, heading, subheading, and description).",
|
|
3486
|
+
"fieldName": "size",
|
|
3487
|
+
"propName": "size"
|
|
3488
|
+
},
|
|
3360
3489
|
{
|
|
3361
3490
|
"name": "preheading",
|
|
3362
3491
|
"type": {
|
|
@@ -3476,6 +3605,21 @@
|
|
|
3476
3605
|
"code": "<div class=\"nys-tablet:nys-grid-col-6 nys-desktop:nys-grid-col-3\">\n<nys-card\nheading=\"Heading\"\nsubheading=\"Subheading\"\ndescription=\"A short description of the card's subject.\"\n></nys-card>\n</div>",
|
|
3477
3606
|
"lang": "html"
|
|
3478
3607
|
},
|
|
3608
|
+
{
|
|
3609
|
+
"title": "Size SM",
|
|
3610
|
+
"code": "<div class=\"nys-tablet:nys-grid-col-6 nys-desktop:nys-grid-col-3\">\n<nys-card\nsize=\"sm\"\npreheading=\"Preheading\"\nheading=\"Heading\"\nsubheading=\"Subheading\"\ndescription=\"A short description of the card's subject.\"\n></nys-card>\n</div>",
|
|
3611
|
+
"lang": "html"
|
|
3612
|
+
},
|
|
3613
|
+
{
|
|
3614
|
+
"title": "Size MD (default)",
|
|
3615
|
+
"code": "<div class=\"nys-tablet:nys-grid-col-6 nys-desktop:nys-grid-col-3\">\n<nys-card\nsize=\"md\"\npreheading=\"Preheading\"\nheading=\"Heading\"\nsubheading=\"Subheading\"\ndescription=\"A short description of the card's subject.\"\n></nys-card>\n</div>",
|
|
3616
|
+
"lang": "html"
|
|
3617
|
+
},
|
|
3618
|
+
{
|
|
3619
|
+
"title": "Size LG",
|
|
3620
|
+
"code": "<div class=\"nys-tablet:nys-grid-col-6 nys-desktop:nys-grid-col-3\">\n<nys-card\nsize=\"lg\"\npreheading=\"Preheading\"\nheading=\"Heading\"\nsubheading=\"Subheading\"\ndescription=\"A short description of the card's subject.\"\n></nys-card>\n</div>",
|
|
3621
|
+
"lang": "html"
|
|
3622
|
+
},
|
|
3479
3623
|
{
|
|
3480
3624
|
"title": "Media",
|
|
3481
3625
|
"code": "<div class=\"nys-tablet:nys-grid-col-6 nys-desktop:nys-grid-col-3\">\n<nys-card\nheading=\"Heading\"\ndescription=\"A card with a media image.\"\n>\n<img slot=\"media\"\nsrc=\"https://images.unsplash.com/photo-1513360371669-4adf3dd7dff8?q=80&w=2070&auto=format&fit=crop\"\nrole=\"presentation\"\n/>\n</nys-card>\n</div>",
|
|
@@ -8584,7 +8728,7 @@
|
|
|
8584
8728
|
"declarations": [
|
|
8585
8729
|
{
|
|
8586
8730
|
"kind": "class",
|
|
8587
|
-
"description": "Agency-branded header with app/agency name, navigation, and responsive mobile menu.\n\nPlace below `nys-unavheader`. Slot navigation links as `<ul><li><a>` elements; active links\nare auto-highlighted based on current URL
|
|
8731
|
+
"description": "Agency-branded header with app/agency name, navigation, and responsive mobile menu.\n\nPlace below `nys-unavheader`. Slot navigation links as `<ul><li><a>` elements; active links\nare auto-highlighted based on current URL. Mobile menu toggles automatically on narrow screens.",
|
|
8588
8732
|
"name": "NysGlobalHeader",
|
|
8589
8733
|
"slots": [
|
|
8590
8734
|
{
|
|
@@ -8597,17 +8741,6 @@
|
|
|
8597
8741
|
}
|
|
8598
8742
|
],
|
|
8599
8743
|
"members": [
|
|
8600
|
-
{
|
|
8601
|
-
"kind": "field",
|
|
8602
|
-
"name": "id",
|
|
8603
|
-
"type": {
|
|
8604
|
-
"text": "string"
|
|
8605
|
-
},
|
|
8606
|
-
"default": "\"\"",
|
|
8607
|
-
"description": "Unique identifier. Auto-generated if not provided.",
|
|
8608
|
-
"attribute": "id",
|
|
8609
|
-
"reflects": true
|
|
8610
|
-
},
|
|
8611
8744
|
{
|
|
8612
8745
|
"kind": "field",
|
|
8613
8746
|
"name": "appName",
|
|
@@ -8694,19 +8827,30 @@
|
|
|
8694
8827
|
"privacy": "private",
|
|
8695
8828
|
"description": "Watches for the viewport growing past the mobile breakpoint. The menu and its\ntoggle are `display: none` there, so an open menu that survived a resize would\nleave the focus trap guarding elements nobody can reach."
|
|
8696
8829
|
},
|
|
8830
|
+
{
|
|
8831
|
+
"kind": "field",
|
|
8832
|
+
"name": "_navSlot",
|
|
8833
|
+
"type": {
|
|
8834
|
+
"text": "HTMLSlotElement | null"
|
|
8835
|
+
},
|
|
8836
|
+
"privacy": "private",
|
|
8837
|
+
"description": "Functions\n--------------------------------------------------------------------------",
|
|
8838
|
+
"readonly": true
|
|
8839
|
+
},
|
|
8697
8840
|
{
|
|
8698
8841
|
"kind": "method",
|
|
8699
|
-
"name": "
|
|
8842
|
+
"name": "_getAssignedLinks",
|
|
8700
8843
|
"privacy": "private",
|
|
8701
|
-
"
|
|
8702
|
-
{
|
|
8703
|
-
"
|
|
8704
|
-
"type": {
|
|
8705
|
-
"text": "HTMLElement"
|
|
8706
|
-
}
|
|
8844
|
+
"return": {
|
|
8845
|
+
"type": {
|
|
8846
|
+
"text": "HTMLAnchorElement[]"
|
|
8707
8847
|
}
|
|
8708
|
-
|
|
8709
|
-
|
|
8848
|
+
}
|
|
8849
|
+
},
|
|
8850
|
+
{
|
|
8851
|
+
"kind": "method",
|
|
8852
|
+
"name": "_highlightActiveLink",
|
|
8853
|
+
"privacy": "private"
|
|
8710
8854
|
},
|
|
8711
8855
|
{
|
|
8712
8856
|
"kind": "method",
|
|
@@ -8731,6 +8875,23 @@
|
|
|
8731
8875
|
}
|
|
8732
8876
|
]
|
|
8733
8877
|
},
|
|
8878
|
+
{
|
|
8879
|
+
"kind": "method",
|
|
8880
|
+
"name": "_setMobileMenuOpen",
|
|
8881
|
+
"privacy": "private",
|
|
8882
|
+
"parameters": [
|
|
8883
|
+
{
|
|
8884
|
+
"name": "open",
|
|
8885
|
+
"type": {
|
|
8886
|
+
"text": "boolean"
|
|
8887
|
+
}
|
|
8888
|
+
},
|
|
8889
|
+
{
|
|
8890
|
+
"name": "restoreFocus",
|
|
8891
|
+
"default": "false"
|
|
8892
|
+
}
|
|
8893
|
+
]
|
|
8894
|
+
},
|
|
8734
8895
|
{
|
|
8735
8896
|
"kind": "method",
|
|
8736
8897
|
"name": "_toggleMobileMenu",
|
|
@@ -8743,30 +8904,8 @@
|
|
|
8743
8904
|
"text": "HTMLElement | null"
|
|
8744
8905
|
},
|
|
8745
8906
|
"privacy": "private",
|
|
8746
|
-
"description": "The toggle, which is both the trap's first stop and where focus returns.",
|
|
8747
|
-
"readonly": true
|
|
8748
|
-
},
|
|
8749
|
-
{
|
|
8750
|
-
"kind": "field",
|
|
8751
|
-
"name": "_mobileNav",
|
|
8752
|
-
"type": {
|
|
8753
|
-
"text": "HTMLElement | null"
|
|
8754
|
-
},
|
|
8755
|
-
"privacy": "private",
|
|
8756
8907
|
"readonly": true
|
|
8757
8908
|
},
|
|
8758
|
-
{
|
|
8759
|
-
"kind": "method",
|
|
8760
|
-
"name": "_closeMobileMenu",
|
|
8761
|
-
"privacy": "private",
|
|
8762
|
-
"parameters": [
|
|
8763
|
-
{
|
|
8764
|
-
"name": "restoreFocus",
|
|
8765
|
-
"default": "false"
|
|
8766
|
-
}
|
|
8767
|
-
],
|
|
8768
|
-
"description": "Closes the mobile menu.\n\n`restoreFocus` moves focus back to the toggle, which is required whenever the\nmenu is dismissed by keyboard: the closed menu is `display: none`, so focus\nsitting on one of its links would otherwise be dropped to the top of the\ndocument (WCAG 2.4.3 Focus Order). A click outside is a pointer gesture that\nlands somewhere the user chose, so that path leaves focus alone."
|
|
8769
|
-
},
|
|
8770
8909
|
{
|
|
8771
8910
|
"kind": "method",
|
|
8772
8911
|
"name": "_focusableMenuElements",
|
|
@@ -8795,7 +8934,7 @@
|
|
|
8795
8934
|
}
|
|
8796
8935
|
}
|
|
8797
8936
|
],
|
|
8798
|
-
"description": "The focused element, but only when it is one of the menu's own stops.\n\n`document.activeElement` reports the host for anything focused inside this\nshadow root
|
|
8937
|
+
"description": "The focused element, but only when it is one of the menu's own stops.\n\n`document.activeElement` reports the host for anything focused inside this\nshadow root (the toggle button) or the links in the lightDOM."
|
|
8799
8938
|
},
|
|
8800
8939
|
{
|
|
8801
8940
|
"kind": "method",
|
|
@@ -8813,7 +8952,33 @@
|
|
|
8813
8952
|
},
|
|
8814
8953
|
{
|
|
8815
8954
|
"kind": "method",
|
|
8816
|
-
"name": "
|
|
8955
|
+
"name": "_renderBrandMark",
|
|
8956
|
+
"privacy": "private"
|
|
8957
|
+
},
|
|
8958
|
+
{
|
|
8959
|
+
"kind": "method",
|
|
8960
|
+
"name": "_getNysLogo",
|
|
8961
|
+
"privacy": "private"
|
|
8962
|
+
},
|
|
8963
|
+
{
|
|
8964
|
+
"kind": "field",
|
|
8965
|
+
"name": "_boundClickOutside",
|
|
8966
|
+
"privacy": "private"
|
|
8967
|
+
},
|
|
8968
|
+
{
|
|
8969
|
+
"kind": "field",
|
|
8970
|
+
"name": "_boundLinkClick",
|
|
8971
|
+
"privacy": "private"
|
|
8972
|
+
},
|
|
8973
|
+
{
|
|
8974
|
+
"kind": "field",
|
|
8975
|
+
"name": "_boundBreakpointChange",
|
|
8976
|
+
"privacy": "private",
|
|
8977
|
+
"description": "Growing past the mobile breakpoint takes the menu off the page, so drop the\nopen state with it. No focus restore: the toggle is gone too, and the resize\nwas not a dismissal the user aimed at anything."
|
|
8978
|
+
},
|
|
8979
|
+
{
|
|
8980
|
+
"kind": "field",
|
|
8981
|
+
"name": "_boundKeyDown",
|
|
8817
8982
|
"privacy": "private"
|
|
8818
8983
|
},
|
|
8819
8984
|
{
|
|
@@ -8845,51 +9010,9 @@
|
|
|
8845
9010
|
"privacy": "private",
|
|
8846
9011
|
"description": "Literal name for the banner: the author's override, or the \"Site\" default when\nthere is no visible title to reference. Undefined whenever `_bannerLabelledBy`\nhas something to point at, so the landmark never carries both.",
|
|
8847
9012
|
"readonly": true
|
|
8848
|
-
},
|
|
8849
|
-
{
|
|
8850
|
-
"kind": "method",
|
|
8851
|
-
"name": "_renderNameContainer",
|
|
8852
|
-
"privacy": "private",
|
|
8853
|
-
"description": "App/agency title block. Rendered on its own so the linked and unlinked\nvariants cannot drift apart — the ids here are what names the banner."
|
|
8854
|
-
},
|
|
8855
|
-
{
|
|
8856
|
-
"kind": "method",
|
|
8857
|
-
"name": "_renderBrandMark",
|
|
8858
|
-
"privacy": "private"
|
|
8859
|
-
},
|
|
8860
|
-
{
|
|
8861
|
-
"kind": "method",
|
|
8862
|
-
"name": "_getNysLogo",
|
|
8863
|
-
"privacy": "private"
|
|
8864
|
-
},
|
|
8865
|
-
{
|
|
8866
|
-
"kind": "field",
|
|
8867
|
-
"name": "_boundClickOutside",
|
|
8868
|
-
"privacy": "private"
|
|
8869
|
-
},
|
|
8870
|
-
{
|
|
8871
|
-
"kind": "field",
|
|
8872
|
-
"name": "_boundBreakpointChange",
|
|
8873
|
-
"privacy": "private",
|
|
8874
|
-
"description": "Growing past the mobile breakpoint takes the menu off the page, so drop the\nopen state with it. No focus restore: the toggle is gone too, and the resize\nwas not a dismissal the user aimed at anything."
|
|
8875
|
-
},
|
|
8876
|
-
{
|
|
8877
|
-
"kind": "field",
|
|
8878
|
-
"name": "_boundKeyDown",
|
|
8879
|
-
"privacy": "private"
|
|
8880
9013
|
}
|
|
8881
9014
|
],
|
|
8882
9015
|
"attributes": [
|
|
8883
|
-
{
|
|
8884
|
-
"name": "id",
|
|
8885
|
-
"type": {
|
|
8886
|
-
"text": "string"
|
|
8887
|
-
},
|
|
8888
|
-
"default": "\"\"",
|
|
8889
|
-
"description": "Unique identifier. Auto-generated if not provided.",
|
|
8890
|
-
"fieldName": "id",
|
|
8891
|
-
"propName": "id"
|
|
8892
|
-
},
|
|
8893
9016
|
{
|
|
8894
9017
|
"name": "appName",
|
|
8895
9018
|
"type": {
|
|
@@ -8974,14 +9097,9 @@
|
|
|
8974
9097
|
"code": "<nys-globalheader agencyName=\"Office of Information Technology Services\">\n<ul>\n<li><a href=\"https://its.ny.gov/services\">Services</a></li>\n<li><a href=\"https://its.ny.gov/get-help\">Help Center</a></li>\n<li><a href=\"https://its.ny.gov/cybersecurity\">Cybersecurity</a></li>\n<li><a href=\"https://its.ny.gov/policies\">Policies and Laws</a></li>\n<li><a href=\"https://its.ny.gov/procurement\">Procurement</a></li>\n<li><a href=\"https://its.ny.gov/about-us\">About Us</a></li>\n</ul>\n</nys-globalheader>",
|
|
8975
9098
|
"lang": "html"
|
|
8976
9099
|
},
|
|
8977
|
-
{
|
|
8978
|
-
"title": "Author-controlled active link",
|
|
8979
|
-
"code": "<!-- Set aria-current yourself and the header stops guessing from the URL. -->\n<nys-globalheader agencyName=\"Office of Information Technology Services\">\n<ul>\n<li><a href=\"#/services\">Services</a></li>\n<li><a href=\"#/help\" aria-current=\"page\">Help Center</a></li>\n</ul>\n</nys-globalheader>",
|
|
8980
|
-
"lang": "html"
|
|
8981
|
-
},
|
|
8982
9100
|
{
|
|
8983
9101
|
"title": "User Actions",
|
|
8984
|
-
"code": "<nys-globalheader agencyName=\"Office of Information Technology Services\">\n<nys-button slot=\"user-actions\" label=\"Log out\">\n<nys-avatar\nslot=\"prefix-icon\"\nariaLabel=\"User avatar\"\ninitials=\"NY\"\n></nys-avatar>\n</nys-button>\n</nys-globalheader>\n<nys-dropdownmenu id=\"dropdownmenu\" for=\"my-action-slot\">\n<nys-dropdownmenuitem label=\"Profile\" href=\"/profile\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Repositories & Github Pages\" href=\"/repos\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Organizations\" href=\"/organizations\" disabled></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Sign out\" href=\"/logout\"></nys-dropdownmenuitem>\n</nys-dropdownmenu>",
|
|
9102
|
+
"code": "<nys-globalheader agencyName=\"Office of Information Technology Services\">\n<nys-button id=\"my-action-slot\" slot=\"user-actions\" label=\"Log out\">\n<nys-avatar\nslot=\"prefix-icon\"\nariaLabel=\"User avatar\"\ninitials=\"NY\"\n></nys-avatar>\n</nys-button>\n</nys-globalheader>\n<nys-dropdownmenu id=\"dropdownmenu\" for=\"my-action-slot\">\n<nys-dropdownmenuitem label=\"Profile\" href=\"/profile\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Repositories & Github Pages\" href=\"/repos\"></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Organizations\" href=\"/organizations\" disabled></nys-dropdownmenuitem>\n<nys-dropdownmenuitem label=\"Sign out\" href=\"/logout\"></nys-dropdownmenuitem>\n</nys-dropdownmenu>",
|
|
8985
9103
|
"lang": "html"
|
|
8986
9104
|
},
|
|
8987
9105
|
{
|
|
@@ -9688,11 +9806,22 @@
|
|
|
9688
9806
|
"attribute": "divider",
|
|
9689
9807
|
"reflects": true
|
|
9690
9808
|
},
|
|
9809
|
+
{
|
|
9810
|
+
"kind": "field",
|
|
9811
|
+
"name": "inverted",
|
|
9812
|
+
"type": {
|
|
9813
|
+
"text": "boolean"
|
|
9814
|
+
},
|
|
9815
|
+
"default": "false",
|
|
9816
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
9817
|
+
"attribute": "inverted",
|
|
9818
|
+
"reflects": true
|
|
9819
|
+
},
|
|
9691
9820
|
{
|
|
9692
9821
|
"kind": "field",
|
|
9693
9822
|
"name": "_childObserver",
|
|
9694
9823
|
"privacy": "private",
|
|
9695
|
-
"default": "new MutationObserver(() => this._syncDividers())"
|
|
9824
|
+
"default": "new MutationObserver(() => { this._syncDividers(); this._syncInverted(); })"
|
|
9696
9825
|
},
|
|
9697
9826
|
{
|
|
9698
9827
|
"kind": "field",
|
|
@@ -9700,6 +9829,11 @@
|
|
|
9700
9829
|
"privacy": "private",
|
|
9701
9830
|
"default": "new WeakSet<Element>()"
|
|
9702
9831
|
},
|
|
9832
|
+
{
|
|
9833
|
+
"kind": "method",
|
|
9834
|
+
"name": "_syncInverted",
|
|
9835
|
+
"privacy": "private"
|
|
9836
|
+
},
|
|
9703
9837
|
{
|
|
9704
9838
|
"kind": "method",
|
|
9705
9839
|
"name": "_syncDividers",
|
|
@@ -9726,6 +9860,16 @@
|
|
|
9726
9860
|
"description": "Draws a divider between items. No divider is drawn after the last item.",
|
|
9727
9861
|
"fieldName": "divider",
|
|
9728
9862
|
"propName": "divider"
|
|
9863
|
+
},
|
|
9864
|
+
{
|
|
9865
|
+
"name": "inverted",
|
|
9866
|
+
"type": {
|
|
9867
|
+
"text": "boolean"
|
|
9868
|
+
},
|
|
9869
|
+
"default": "false",
|
|
9870
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
9871
|
+
"fieldName": "inverted",
|
|
9872
|
+
"propName": "inverted"
|
|
9729
9873
|
}
|
|
9730
9874
|
],
|
|
9731
9875
|
"superclass": {
|
|
@@ -9734,7 +9878,7 @@
|
|
|
9734
9878
|
},
|
|
9735
9879
|
"tagName": "nys-iconlist",
|
|
9736
9880
|
"customElement": true,
|
|
9737
|
-
"summary": "A scannable list of icon + text items
|
|
9881
|
+
"summary": "A scannable list of icon + text items.",
|
|
9738
9882
|
"examples": [
|
|
9739
9883
|
{
|
|
9740
9884
|
"title": "Basic",
|
|
@@ -9756,6 +9900,11 @@
|
|
|
9756
9900
|
"code": "<nys-iconlist id=\"event-details3\">\n<nys-iconlistitem icon=\"calendar_month\">July 4, 2026</nys-iconlistitem>\n<nys-iconlistitem icon=\"schedule\">\n5:00 PM\n<span slot=\"secondary\">Eastern Standard Time</span>\n</nys-iconlistitem>\n<nys-iconlistitem icon=\"location_on\">\nCentral Park West\n<span slot=\"secondary\">New York, NY</span>\n</nys-iconlistitem>\n</nys-iconlist>",
|
|
9757
9901
|
"lang": "html"
|
|
9758
9902
|
},
|
|
9903
|
+
{
|
|
9904
|
+
"title": "Inverted",
|
|
9905
|
+
"code": "<nys-iconlist id=\"demo-inverted\" divider inverted>\n<nys-iconlistitem icon=\"calendar_month\">July 4, 2026</nys-iconlistitem>\n<nys-iconlistitem icon=\"schedule\">\n5:00 PM\n<span slot=\"secondary\">Eastern Standard Time</span>\n</nys-iconlistitem>\n<nys-iconlistitem icon=\"location_on\">\nCentral Park West\n<span slot=\"secondary\">New York, NY</span>\n</nys-iconlistitem>\n</nys-iconlist>",
|
|
9906
|
+
"lang": "html"
|
|
9907
|
+
},
|
|
9759
9908
|
{
|
|
9760
9909
|
"title": "Checklist",
|
|
9761
9910
|
"code": "<nys-iconlist id=\"requirements\">\n<nys-iconlistitem icon=\"check_circle\">Recent pay stubs</nys-iconlistitem>\n<nys-iconlistitem icon=\"check_circle\">Current rent/mortgage statement</nys-iconlistitem>\n<nys-iconlistitem icon=\"check_circle\">Current property tax bill</nys-iconlistitem>\n<nys-iconlistitem icon=\"check_circle\">Current homeowner's insurance bill</nys-iconlistitem>\n<nys-iconlistitem icon=\"check_circle\">Social Security card</nys-iconlistitem>\n</nys-iconlist>",
|
|
@@ -9823,6 +9972,17 @@
|
|
|
9823
9972
|
"attribute": "divider",
|
|
9824
9973
|
"reflects": true
|
|
9825
9974
|
},
|
|
9975
|
+
{
|
|
9976
|
+
"kind": "field",
|
|
9977
|
+
"name": "inverted",
|
|
9978
|
+
"type": {
|
|
9979
|
+
"text": "boolean"
|
|
9980
|
+
},
|
|
9981
|
+
"default": "false",
|
|
9982
|
+
"description": "Adjusts colors for dark backgrounds. Set by the parent `<nys-iconlist inverted>`; not intended to be\nset directly.",
|
|
9983
|
+
"attribute": "inverted",
|
|
9984
|
+
"reflects": true
|
|
9985
|
+
},
|
|
9826
9986
|
{
|
|
9827
9987
|
"kind": "method",
|
|
9828
9988
|
"name": "_handleSecondarySlotChange",
|
|
@@ -9857,6 +10017,16 @@
|
|
|
9857
10017
|
"description": "Draws a rule below the item. Set by the parent `<nys-iconlist divider>`; not intended to be\nset directly.",
|
|
9858
10018
|
"fieldName": "divider",
|
|
9859
10019
|
"propName": "divider"
|
|
10020
|
+
},
|
|
10021
|
+
{
|
|
10022
|
+
"name": "inverted",
|
|
10023
|
+
"type": {
|
|
10024
|
+
"text": "boolean"
|
|
10025
|
+
},
|
|
10026
|
+
"default": "false",
|
|
10027
|
+
"description": "Adjusts colors for dark backgrounds. Set by the parent `<nys-iconlist inverted>`; not intended to be\nset directly.",
|
|
10028
|
+
"fieldName": "inverted",
|
|
10029
|
+
"propName": "inverted"
|
|
9860
10030
|
}
|
|
9861
10031
|
],
|
|
9862
10032
|
"superclass": {
|
|
@@ -17366,16 +17536,6 @@
|
|
|
17366
17536
|
"description": "The URL endpoint of the search, make sure to include the query param.",
|
|
17367
17537
|
"attribute": "searchUrl"
|
|
17368
17538
|
},
|
|
17369
|
-
{
|
|
17370
|
-
"kind": "field",
|
|
17371
|
-
"name": "translateKey",
|
|
17372
|
-
"type": {
|
|
17373
|
-
"text": "string"
|
|
17374
|
-
},
|
|
17375
|
-
"default": "\"\"",
|
|
17376
|
-
"description": "Localize project key. If provided, the component will load and initialize LocalizeJS automatically.",
|
|
17377
|
-
"attribute": "translateKey"
|
|
17378
|
-
},
|
|
17379
17539
|
{
|
|
17380
17540
|
"kind": "field",
|
|
17381
17541
|
"name": "landmarkLabel",
|
|
@@ -17392,8 +17552,8 @@
|
|
|
17392
17552
|
"type": {
|
|
17393
17553
|
"text": "Language[]"
|
|
17394
17554
|
},
|
|
17395
|
-
"default": "[ { code: \"en\", label: \"English\"
|
|
17396
|
-
"description": "The list of languages this site can be translated to, default to use
|
|
17555
|
+
"default": "[ { code: \"en\", label: \"English\" }, { code: \"es\", label: \"Español\" }, { code: \"zh\", label: \"中文\" }, { code: \"zh-traditional\", label: \"繁體中文\" }, { code: \"yi\", label: \"יידיש\" }, { code: \"ru\", label: \"Русский\" }, { code: \"bn\", label: \"বাংলা\" }, { code: \"ko\", label: \"한국어\" }, { code: \"ht\", label: \"Kreyòl Ayisyen\" }, { code: \"it\", label: \"Italiano\" }, { code: \"ar\", label: \"العربية\" }, { code: \"pl\", label: \"Polski\" }, { code: \"fr\", label: \"Français\" }, { code: \"ur\", label: \"اردو\" }, ]",
|
|
17556
|
+
"description": "The list of languages this site can be translated to, default to use Smartling",
|
|
17397
17557
|
"attribute": "languages"
|
|
17398
17558
|
},
|
|
17399
17559
|
{
|
|
@@ -17503,30 +17663,11 @@
|
|
|
17503
17663
|
],
|
|
17504
17664
|
"description": "Moves both focus and the tab stop to an option, wrapping at either end. Index\n-1 is the last option, so \"previous from the first\" and \"End\" are the same call."
|
|
17505
17665
|
},
|
|
17506
|
-
{
|
|
17507
|
-
"kind": "method",
|
|
17508
|
-
"name": "_initLocalize",
|
|
17509
|
-
"privacy": "private"
|
|
17510
|
-
},
|
|
17511
17666
|
{
|
|
17512
17667
|
"kind": "method",
|
|
17513
17668
|
"name": "_toggleSearchDropdown",
|
|
17514
17669
|
"privacy": "private"
|
|
17515
17670
|
},
|
|
17516
|
-
{
|
|
17517
|
-
"kind": "method",
|
|
17518
|
-
"name": "_updateTranslateDisclaimer",
|
|
17519
|
-
"privacy": "private",
|
|
17520
|
-
"parameters": [
|
|
17521
|
-
{
|
|
17522
|
-
"name": "languageCode",
|
|
17523
|
-
"type": {
|
|
17524
|
-
"text": "string"
|
|
17525
|
-
}
|
|
17526
|
-
}
|
|
17527
|
-
],
|
|
17528
|
-
"description": "Shows, replaces, or removes the translation disclaimer banner for the given\nlanguage code. Called from the Localize \"setLanguage\" listener — which also\nfires on page load for a remembered language — and directly from\n`_handleLanguageSelect` when the Localize API isn't available."
|
|
17529
|
-
},
|
|
17530
17671
|
{
|
|
17531
17672
|
"kind": "method",
|
|
17532
17673
|
"name": "_handleLanguageSelect",
|
|
@@ -17751,20 +17892,11 @@
|
|
|
17751
17892
|
"privacy": "private",
|
|
17752
17893
|
"description": "The banner's accessible name. A blank override would put the page back where\n#1795 found it — two unnamed banners — so it falls back to the default.",
|
|
17753
17894
|
"readonly": true
|
|
17754
|
-
},
|
|
17755
|
-
{
|
|
17756
|
-
"kind": "field",
|
|
17757
|
-
"name": "_locale",
|
|
17758
|
-
"type": {
|
|
17759
|
-
"text": "string"
|
|
17760
|
-
},
|
|
17761
|
-
"privacy": "private",
|
|
17762
|
-
"readonly": true
|
|
17763
17895
|
}
|
|
17764
17896
|
],
|
|
17765
17897
|
"events": [
|
|
17766
17898
|
{
|
|
17767
|
-
"description": "Fired when a language is selected. Detail: `{language: {code, label, url?}}`. Cancelable; `preventDefault()` overrides the default
|
|
17899
|
+
"description": "Fired when a language is selected. Detail: `{language: {code, label, url?}}`. Cancelable; `preventDefault()` overrides the default Smartling redirect.",
|
|
17768
17900
|
"name": "nys-language-select"
|
|
17769
17901
|
},
|
|
17770
17902
|
{
|
|
@@ -17843,16 +17975,6 @@
|
|
|
17843
17975
|
"fieldName": "searchUrl",
|
|
17844
17976
|
"propName": "searchurl"
|
|
17845
17977
|
},
|
|
17846
|
-
{
|
|
17847
|
-
"name": "translateKey",
|
|
17848
|
-
"type": {
|
|
17849
|
-
"text": "string"
|
|
17850
|
-
},
|
|
17851
|
-
"default": "\"\"",
|
|
17852
|
-
"description": "Localize project key. If provided, the component will load and initialize LocalizeJS automatically.",
|
|
17853
|
-
"fieldName": "translateKey",
|
|
17854
|
-
"propName": "translatekey"
|
|
17855
|
-
},
|
|
17856
17978
|
{
|
|
17857
17979
|
"name": "landmarkLabel",
|
|
17858
17980
|
"default": "DEFAULT_LANDMARK_LABEL",
|
|
@@ -17865,8 +17987,8 @@
|
|
|
17865
17987
|
"type": {
|
|
17866
17988
|
"text": "Language[]"
|
|
17867
17989
|
},
|
|
17868
|
-
"default": "[ { code: \"en\", label: \"English\"
|
|
17869
|
-
"description": "The list of languages this site can be translated to, default to use
|
|
17990
|
+
"default": "[ { code: \"en\", label: \"English\" }, { code: \"es\", label: \"Español\" }, { code: \"zh\", label: \"中文\" }, { code: \"zh-traditional\", label: \"繁體中文\" }, { code: \"yi\", label: \"יידיש\" }, { code: \"ru\", label: \"Русский\" }, { code: \"bn\", label: \"বাংলা\" }, { code: \"ko\", label: \"한국어\" }, { code: \"ht\", label: \"Kreyòl Ayisyen\" }, { code: \"it\", label: \"Italiano\" }, { code: \"ar\", label: \"العربية\" }, { code: \"pl\", label: \"Polski\" }, { code: \"fr\", label: \"Français\" }, { code: \"ur\", label: \"اردو\" }, ]",
|
|
17991
|
+
"description": "The list of languages this site can be translated to, default to use Smartling",
|
|
17870
17992
|
"fieldName": "languages",
|
|
17871
17993
|
"propName": "languages"
|
|
17872
17994
|
}
|
|
@@ -17881,7 +18003,7 @@
|
|
|
17881
18003
|
"examples": [
|
|
17882
18004
|
{
|
|
17883
18005
|
"title": "Basic",
|
|
17884
|
-
"code": "<nys-unavheader
|
|
18006
|
+
"code": "<nys-unavheader></nys-unavheader>",
|
|
17885
18007
|
"lang": "html"
|
|
17886
18008
|
},
|
|
17887
18009
|
{
|