@nysds/components 1.13.1 → 1.15.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/custom-elements.json +2061 -237
- package/dist/.vscode/vscode.css-custom-data.json +15 -0
- package/dist/.vscode/vscode.html-custom-data.json +158 -24
- package/dist/custom-elements.json +2061 -237
- package/dist/nysds.es.js +3178 -1988
- package/dist/nysds.es.js.map +1 -1
- package/dist/nysds.js +442 -168
- package/dist/nysds.js.map +1 -1
- package/dist/packages/nys-accordion/src/nys-accordion.d.ts +4 -0
- package/dist/packages/nys-button/src/nys-button.d.ts +8 -0
- package/dist/packages/nys-checkbox/src/nys-checkbox.d.ts +20 -0
- package/dist/packages/nys-checkbox/src/nys-checkboxgroup.d.ts +15 -0
- package/dist/packages/nys-combobox/src/index.d.ts +1 -0
- package/dist/packages/nys-combobox/src/nys-combobox.d.ts +118 -0
- package/dist/packages/nys-combobox/src/nys-combobox.figma.d.ts +1 -0
- package/dist/packages/nys-datepicker/src/nys-datepicker.d.ts +74 -7
- package/dist/packages/nys-dropdownmenu/src/index.d.ts +2 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.d.ts +110 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenu.figma.d.ts +1 -0
- package/dist/packages/nys-dropdownmenu/src/nys-dropdownmenuitem.d.ts +40 -0
- package/dist/packages/nys-fileinput/src/nys-fileinput.d.ts +8 -0
- package/dist/packages/nys-fileinput/src/nys-fileitem.d.ts +8 -0
- package/dist/packages/nys-label/src/nys-label.d.ts +5 -0
- package/dist/packages/nys-radiobutton/src/nys-radiobutton.d.ts +20 -0
- package/dist/packages/nys-radiobutton/src/nys-radiogroup.d.ts +9 -0
- package/dist/packages/nys-select/src/nys-select.d.ts +8 -0
- package/dist/packages/nys-textarea/src/nys-textarea.d.ts +8 -0
- package/dist/packages/nys-textinput/src/nys-textinput.d.ts +11 -1
- package/dist/packages/nys-toggle/src/nys-toggle.d.ts +10 -1
- package/dist/packages/nys-unavheader/src/nys-unavheader.d.ts +10 -1
- package/dist/src/index.d.ts +2 -0
- package/package.json +21 -17
- package/dist/nys-stepper/newsletter.html +0 -4
- package/dist/nys-stepper/personal.html +0 -6
- package/dist/nys-stepper/survey.html +0 -5
- package/dist/nys-stepper/team.html +0 -6
|
@@ -33,6 +33,20 @@
|
|
|
33
33
|
"kind": "class",
|
|
34
34
|
"description": "A container for grouping `nys-accordionitem` components with coordinated expand/collapse behavior.\n\nPlace `nys-accordionitem` elements as children. Set `singleSelect` to allow only one item open at a time.\nThe `bordered` style propagates to all children automatically.",
|
|
35
35
|
"name": "NysAccordion",
|
|
36
|
+
"cssProperties": [
|
|
37
|
+
{
|
|
38
|
+
"description": "Background color of the accordion header.",
|
|
39
|
+
"name": "--nys-accordion-background-color--header"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"description": "Background hover color of the accordion header.",
|
|
43
|
+
"name": "--nys-accordion-background-color--header--hover"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"description": "Maximum readable width of accordion content. Defaults to a character-based width (80ch) for readability.",
|
|
47
|
+
"name": "--nys-accordion-content-max-width"
|
|
48
|
+
}
|
|
49
|
+
],
|
|
36
50
|
"slots": [
|
|
37
51
|
{
|
|
38
52
|
"description": "Default slot for `nys-accordionitem` elements.",
|
|
@@ -1436,6 +1450,15 @@
|
|
|
1436
1450
|
}
|
|
1437
1451
|
],
|
|
1438
1452
|
"members": [
|
|
1453
|
+
{
|
|
1454
|
+
"kind": "field",
|
|
1455
|
+
"name": "shadowRootOptions",
|
|
1456
|
+
"type": {
|
|
1457
|
+
"text": "object"
|
|
1458
|
+
},
|
|
1459
|
+
"static": true,
|
|
1460
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
1461
|
+
},
|
|
1439
1462
|
{
|
|
1440
1463
|
"kind": "field",
|
|
1441
1464
|
"name": "id",
|
|
@@ -2024,6 +2047,15 @@
|
|
|
2024
2047
|
}
|
|
2025
2048
|
],
|
|
2026
2049
|
"members": [
|
|
2050
|
+
{
|
|
2051
|
+
"kind": "field",
|
|
2052
|
+
"name": "shadowRootOptions",
|
|
2053
|
+
"type": {
|
|
2054
|
+
"text": "object"
|
|
2055
|
+
},
|
|
2056
|
+
"static": true,
|
|
2057
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
2058
|
+
},
|
|
2027
2059
|
{
|
|
2028
2060
|
"kind": "field",
|
|
2029
2061
|
"name": "checked",
|
|
@@ -2194,6 +2226,39 @@
|
|
|
2194
2226
|
"attribute": "size",
|
|
2195
2227
|
"reflects": true
|
|
2196
2228
|
},
|
|
2229
|
+
{
|
|
2230
|
+
"kind": "field",
|
|
2231
|
+
"name": "other",
|
|
2232
|
+
"type": {
|
|
2233
|
+
"text": "boolean"
|
|
2234
|
+
},
|
|
2235
|
+
"default": "false",
|
|
2236
|
+
"attribute": "other",
|
|
2237
|
+
"reflects": true
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
"kind": "field",
|
|
2241
|
+
"name": "showOtherError",
|
|
2242
|
+
"type": {
|
|
2243
|
+
"text": "boolean"
|
|
2244
|
+
},
|
|
2245
|
+
"default": "false",
|
|
2246
|
+
"attribute": "showOtherError"
|
|
2247
|
+
},
|
|
2248
|
+
{
|
|
2249
|
+
"kind": "field",
|
|
2250
|
+
"name": "isMobile",
|
|
2251
|
+
"privacy": "private"
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"kind": "field",
|
|
2255
|
+
"name": "_hasUserInteracted",
|
|
2256
|
+
"type": {
|
|
2257
|
+
"text": "boolean"
|
|
2258
|
+
},
|
|
2259
|
+
"privacy": "private",
|
|
2260
|
+
"default": "false"
|
|
2261
|
+
},
|
|
2197
2262
|
{
|
|
2198
2263
|
"kind": "method",
|
|
2199
2264
|
"name": "getInputElement",
|
|
@@ -2285,12 +2350,27 @@
|
|
|
2285
2350
|
"name": "_manageLabelClick",
|
|
2286
2351
|
"privacy": "private"
|
|
2287
2352
|
},
|
|
2353
|
+
{
|
|
2354
|
+
"kind": "field",
|
|
2355
|
+
"name": "_hasDescription",
|
|
2356
|
+
"readonly": true
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
"kind": "field",
|
|
2360
|
+
"name": "_handleResize",
|
|
2361
|
+
"privacy": "private"
|
|
2362
|
+
},
|
|
2288
2363
|
{
|
|
2289
2364
|
"kind": "method",
|
|
2290
2365
|
"name": "_emitChangeEvent",
|
|
2291
2366
|
"privacy": "private",
|
|
2292
2367
|
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
2293
2368
|
},
|
|
2369
|
+
{
|
|
2370
|
+
"kind": "method",
|
|
2371
|
+
"name": "_emitOtherInputEvent",
|
|
2372
|
+
"privacy": "private"
|
|
2373
|
+
},
|
|
2294
2374
|
{
|
|
2295
2375
|
"kind": "method",
|
|
2296
2376
|
"name": "_handleChange",
|
|
@@ -2314,6 +2394,11 @@
|
|
|
2314
2394
|
"name": "_handleBlur",
|
|
2315
2395
|
"privacy": "private"
|
|
2316
2396
|
},
|
|
2397
|
+
{
|
|
2398
|
+
"kind": "method",
|
|
2399
|
+
"name": "_handleTextInputBlur",
|
|
2400
|
+
"privacy": "private"
|
|
2401
|
+
},
|
|
2317
2402
|
{
|
|
2318
2403
|
"kind": "method",
|
|
2319
2404
|
"name": "_handleKeydown",
|
|
@@ -2326,6 +2411,29 @@
|
|
|
2326
2411
|
}
|
|
2327
2412
|
}
|
|
2328
2413
|
]
|
|
2414
|
+
},
|
|
2415
|
+
{
|
|
2416
|
+
"kind": "method",
|
|
2417
|
+
"name": "_handleTextInput",
|
|
2418
|
+
"privacy": "private",
|
|
2419
|
+
"parameters": [
|
|
2420
|
+
{
|
|
2421
|
+
"name": "event",
|
|
2422
|
+
"type": {
|
|
2423
|
+
"text": "Event"
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
]
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
"kind": "method",
|
|
2430
|
+
"name": "_validateOtherAndEmitError",
|
|
2431
|
+
"privacy": "private"
|
|
2432
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
"kind": "method",
|
|
2435
|
+
"name": "_dispatchClearError",
|
|
2436
|
+
"privacy": "private"
|
|
2329
2437
|
}
|
|
2330
2438
|
],
|
|
2331
2439
|
"events": [
|
|
@@ -2336,6 +2444,13 @@
|
|
|
2336
2444
|
},
|
|
2337
2445
|
"description": "Fired when checked state changes. Detail: `{id, checked, name, value}`."
|
|
2338
2446
|
},
|
|
2447
|
+
{
|
|
2448
|
+
"name": "nys-other-input",
|
|
2449
|
+
"type": {
|
|
2450
|
+
"text": "CustomEvent"
|
|
2451
|
+
},
|
|
2452
|
+
"description": "Fired when \"other\" text input value changes. Detail: `{id, name, value}`."
|
|
2453
|
+
},
|
|
2339
2454
|
{
|
|
2340
2455
|
"name": "nys-focus",
|
|
2341
2456
|
"type": {
|
|
@@ -2349,6 +2464,18 @@
|
|
|
2349
2464
|
"text": "Event"
|
|
2350
2465
|
},
|
|
2351
2466
|
"description": "Fired when checkbox loses focus."
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
"name": "nys-error",
|
|
2470
|
+
"type": {
|
|
2471
|
+
"text": "CustomEvent"
|
|
2472
|
+
}
|
|
2473
|
+
},
|
|
2474
|
+
{
|
|
2475
|
+
"name": "nys-error-clear",
|
|
2476
|
+
"type": {
|
|
2477
|
+
"text": "CustomEvent"
|
|
2478
|
+
}
|
|
2352
2479
|
}
|
|
2353
2480
|
],
|
|
2354
2481
|
"attributes": [
|
|
@@ -2495,6 +2622,22 @@
|
|
|
2495
2622
|
"default": "\"md\"",
|
|
2496
2623
|
"description": "Checkbox size: `sm` (24px) or `md` (32px, default).",
|
|
2497
2624
|
"fieldName": "size"
|
|
2625
|
+
},
|
|
2626
|
+
{
|
|
2627
|
+
"name": "other",
|
|
2628
|
+
"type": {
|
|
2629
|
+
"text": "boolean"
|
|
2630
|
+
},
|
|
2631
|
+
"default": "false",
|
|
2632
|
+
"fieldName": "other"
|
|
2633
|
+
},
|
|
2634
|
+
{
|
|
2635
|
+
"name": "showOtherError",
|
|
2636
|
+
"type": {
|
|
2637
|
+
"text": "boolean"
|
|
2638
|
+
},
|
|
2639
|
+
"default": "false",
|
|
2640
|
+
"fieldName": "showOtherError"
|
|
2498
2641
|
}
|
|
2499
2642
|
],
|
|
2500
2643
|
"superclass": {
|
|
@@ -2544,6 +2687,15 @@
|
|
|
2544
2687
|
}
|
|
2545
2688
|
],
|
|
2546
2689
|
"members": [
|
|
2690
|
+
{
|
|
2691
|
+
"kind": "field",
|
|
2692
|
+
"name": "shadowRootOptions",
|
|
2693
|
+
"type": {
|
|
2694
|
+
"text": "object"
|
|
2695
|
+
},
|
|
2696
|
+
"static": true,
|
|
2697
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
2698
|
+
},
|
|
2547
2699
|
{
|
|
2548
2700
|
"kind": "field",
|
|
2549
2701
|
"name": "id",
|
|
@@ -2692,6 +2844,24 @@
|
|
|
2692
2844
|
"privacy": "private",
|
|
2693
2845
|
"default": "\"\""
|
|
2694
2846
|
},
|
|
2847
|
+
{
|
|
2848
|
+
"kind": "field",
|
|
2849
|
+
"name": "_hasOtherError",
|
|
2850
|
+
"type": {
|
|
2851
|
+
"text": "boolean"
|
|
2852
|
+
},
|
|
2853
|
+
"privacy": "private",
|
|
2854
|
+
"default": "false"
|
|
2855
|
+
},
|
|
2856
|
+
{
|
|
2857
|
+
"kind": "field",
|
|
2858
|
+
"name": "_otherErrorCheckbox",
|
|
2859
|
+
"type": {
|
|
2860
|
+
"text": "NysCheckbox | null"
|
|
2861
|
+
},
|
|
2862
|
+
"privacy": "private",
|
|
2863
|
+
"default": "null"
|
|
2864
|
+
},
|
|
2695
2865
|
{
|
|
2696
2866
|
"kind": "field",
|
|
2697
2867
|
"name": "_internals",
|
|
@@ -2712,10 +2882,15 @@
|
|
|
2712
2882
|
},
|
|
2713
2883
|
{
|
|
2714
2884
|
"kind": "method",
|
|
2715
|
-
"name": "
|
|
2885
|
+
"name": "_hasAtLeastOneChecked",
|
|
2716
2886
|
"privacy": "private",
|
|
2717
2887
|
"description": "Functions\n--------------------------------------------------------------------------"
|
|
2718
2888
|
},
|
|
2889
|
+
{
|
|
2890
|
+
"kind": "method",
|
|
2891
|
+
"name": "_setGroupExist",
|
|
2892
|
+
"privacy": "private"
|
|
2893
|
+
},
|
|
2719
2894
|
{
|
|
2720
2895
|
"kind": "method",
|
|
2721
2896
|
"name": "_setupCheckboxRequired",
|
|
@@ -2726,6 +2901,11 @@
|
|
|
2726
2901
|
"name": "_manageRequire",
|
|
2727
2902
|
"privacy": "private"
|
|
2728
2903
|
},
|
|
2904
|
+
{
|
|
2905
|
+
"kind": "method",
|
|
2906
|
+
"name": "_setCustomOtherError",
|
|
2907
|
+
"privacy": "private"
|
|
2908
|
+
},
|
|
2729
2909
|
{
|
|
2730
2910
|
"kind": "method",
|
|
2731
2911
|
"name": "_updateCheckboxSize",
|
|
@@ -2787,6 +2967,45 @@
|
|
|
2787
2967
|
}
|
|
2788
2968
|
],
|
|
2789
2969
|
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
2970
|
+
},
|
|
2971
|
+
{
|
|
2972
|
+
"kind": "method",
|
|
2973
|
+
"name": "_handleChildError",
|
|
2974
|
+
"privacy": "private",
|
|
2975
|
+
"parameters": [
|
|
2976
|
+
{
|
|
2977
|
+
"name": "event",
|
|
2978
|
+
"type": {
|
|
2979
|
+
"text": "Event"
|
|
2980
|
+
}
|
|
2981
|
+
}
|
|
2982
|
+
]
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
"kind": "method",
|
|
2986
|
+
"name": "_handleChildErrorClear",
|
|
2987
|
+
"privacy": "private",
|
|
2988
|
+
"parameters": [
|
|
2989
|
+
{
|
|
2990
|
+
"name": "event",
|
|
2991
|
+
"type": {
|
|
2992
|
+
"text": "Event"
|
|
2993
|
+
}
|
|
2994
|
+
}
|
|
2995
|
+
]
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
"kind": "method",
|
|
2999
|
+
"name": "_checkOtherInputs",
|
|
3000
|
+
"privacy": "private",
|
|
3001
|
+
"parameters": [
|
|
3002
|
+
{
|
|
3003
|
+
"name": "checkboxes",
|
|
3004
|
+
"type": {
|
|
3005
|
+
"text": "NysCheckbox[]"
|
|
3006
|
+
}
|
|
3007
|
+
}
|
|
3008
|
+
]
|
|
2790
3009
|
}
|
|
2791
3010
|
],
|
|
2792
3011
|
"attributes": [
|
|
@@ -2938,7 +3157,7 @@
|
|
|
2938
3157
|
},
|
|
2939
3158
|
{
|
|
2940
3159
|
"kind": "javascript-module",
|
|
2941
|
-
"path": "packages/nys-
|
|
3160
|
+
"path": "packages/nys-combobox/src/index.ts",
|
|
2942
3161
|
"declarations": [],
|
|
2943
3162
|
"exports": [
|
|
2944
3163
|
{
|
|
@@ -2946,19 +3165,29 @@
|
|
|
2946
3165
|
"name": "*",
|
|
2947
3166
|
"declaration": {
|
|
2948
3167
|
"name": "*",
|
|
2949
|
-
"module": "packages/nys-
|
|
3168
|
+
"module": "packages/nys-combobox/src/nys-combobox"
|
|
2950
3169
|
}
|
|
2951
3170
|
}
|
|
2952
3171
|
]
|
|
2953
3172
|
},
|
|
2954
3173
|
{
|
|
2955
3174
|
"kind": "javascript-module",
|
|
2956
|
-
"path": "packages/nys-
|
|
3175
|
+
"path": "packages/nys-combobox/src/nys-combobox.ts",
|
|
2957
3176
|
"declarations": [
|
|
2958
3177
|
{
|
|
2959
3178
|
"kind": "class",
|
|
2960
|
-
"description": "`<nys-
|
|
2961
|
-
"name": "
|
|
3179
|
+
"description": "`<nys-combobox>` is a form-enabled combo box combining text input with a filterable dropdown.\n\nFeatures:\n- Type to filter options\n- Keyboard navigation (Arrow keys, Enter, Escape)\n- Mouse and keyboard interaction\n- Clears non-selected text on blur\n- Clear button when value is selected\n- Integrates with forms via ElementInternals\n- Supports native <option> and <optgroup> elements\n- Accessible per W3C ARIA Authoring Practices",
|
|
3180
|
+
"name": "NysCombobox",
|
|
3181
|
+
"slots": [
|
|
3182
|
+
{
|
|
3183
|
+
"description": "Optional custom description content below the label.",
|
|
3184
|
+
"name": "description"
|
|
3185
|
+
},
|
|
3186
|
+
{
|
|
3187
|
+
"description": "Options (<option>, <optgroup>) to populate the dropdown",
|
|
3188
|
+
"name": "default"
|
|
3189
|
+
}
|
|
3190
|
+
],
|
|
2962
3191
|
"members": [
|
|
2963
3192
|
{
|
|
2964
3193
|
"kind": "field",
|
|
@@ -2982,31 +3211,30 @@
|
|
|
2982
3211
|
},
|
|
2983
3212
|
{
|
|
2984
3213
|
"kind": "field",
|
|
2985
|
-
"name": "
|
|
3214
|
+
"name": "label",
|
|
2986
3215
|
"type": {
|
|
2987
|
-
"text": "
|
|
3216
|
+
"text": "string"
|
|
2988
3217
|
},
|
|
2989
|
-
"default": "\"
|
|
2990
|
-
"attribute": "
|
|
2991
|
-
"reflects": true
|
|
3218
|
+
"default": "\"\"",
|
|
3219
|
+
"attribute": "label"
|
|
2992
3220
|
},
|
|
2993
3221
|
{
|
|
2994
3222
|
"kind": "field",
|
|
2995
|
-
"name": "
|
|
3223
|
+
"name": "description",
|
|
2996
3224
|
"type": {
|
|
2997
|
-
"text": "
|
|
3225
|
+
"text": "string"
|
|
2998
3226
|
},
|
|
2999
|
-
"default": "
|
|
3000
|
-
"attribute": "
|
|
3227
|
+
"default": "\"\"",
|
|
3228
|
+
"attribute": "description"
|
|
3001
3229
|
},
|
|
3002
3230
|
{
|
|
3003
3231
|
"kind": "field",
|
|
3004
|
-
"name": "
|
|
3232
|
+
"name": "value",
|
|
3005
3233
|
"type": {
|
|
3006
|
-
"text": "
|
|
3234
|
+
"text": "string"
|
|
3007
3235
|
},
|
|
3008
|
-
"default": "
|
|
3009
|
-
"attribute": "
|
|
3236
|
+
"default": "\"\"",
|
|
3237
|
+
"attribute": "value"
|
|
3010
3238
|
},
|
|
3011
3239
|
{
|
|
3012
3240
|
"kind": "field",
|
|
@@ -3040,22 +3268,12 @@
|
|
|
3040
3268
|
},
|
|
3041
3269
|
{
|
|
3042
3270
|
"kind": "field",
|
|
3043
|
-
"name": "
|
|
3044
|
-
"type": {
|
|
3045
|
-
"text": "boolean"
|
|
3046
|
-
},
|
|
3047
|
-
"default": "false",
|
|
3048
|
-
"attribute": "showError",
|
|
3049
|
-
"reflects": true
|
|
3050
|
-
},
|
|
3051
|
-
{
|
|
3052
|
-
"kind": "field",
|
|
3053
|
-
"name": "errorMessage",
|
|
3271
|
+
"name": "tooltip",
|
|
3054
3272
|
"type": {
|
|
3055
3273
|
"text": "string"
|
|
3056
3274
|
},
|
|
3057
3275
|
"default": "\"\"",
|
|
3058
|
-
"attribute": "
|
|
3276
|
+
"attribute": "tooltip"
|
|
3059
3277
|
},
|
|
3060
3278
|
{
|
|
3061
3279
|
"kind": "field",
|
|
@@ -3069,67 +3287,130 @@
|
|
|
3069
3287
|
},
|
|
3070
3288
|
{
|
|
3071
3289
|
"kind": "field",
|
|
3072
|
-
"name": "
|
|
3290
|
+
"name": "width",
|
|
3073
3291
|
"type": {
|
|
3074
|
-
"text": "
|
|
3292
|
+
"text": "\"md\" | \"lg\" | \"full\""
|
|
3075
3293
|
},
|
|
3076
|
-
"default": "\"\"",
|
|
3077
|
-
"attribute": "
|
|
3294
|
+
"default": "\"full\"",
|
|
3295
|
+
"attribute": "width",
|
|
3296
|
+
"reflects": true
|
|
3078
3297
|
},
|
|
3079
3298
|
{
|
|
3080
3299
|
"kind": "field",
|
|
3081
|
-
"name": "
|
|
3300
|
+
"name": "inverted",
|
|
3082
3301
|
"type": {
|
|
3083
|
-
"text": "
|
|
3302
|
+
"text": "boolean"
|
|
3084
3303
|
},
|
|
3085
|
-
"default": "
|
|
3086
|
-
"attribute": "
|
|
3304
|
+
"default": "false",
|
|
3305
|
+
"attribute": "inverted",
|
|
3306
|
+
"reflects": true
|
|
3087
3307
|
},
|
|
3088
3308
|
{
|
|
3089
3309
|
"kind": "field",
|
|
3090
|
-
"name": "
|
|
3310
|
+
"name": "showError",
|
|
3091
3311
|
"type": {
|
|
3092
|
-
"text": "
|
|
3312
|
+
"text": "boolean"
|
|
3093
3313
|
},
|
|
3094
|
-
"default": "
|
|
3095
|
-
"attribute": "
|
|
3314
|
+
"default": "false",
|
|
3315
|
+
"attribute": "showError",
|
|
3316
|
+
"reflects": true
|
|
3096
3317
|
},
|
|
3097
3318
|
{
|
|
3098
3319
|
"kind": "field",
|
|
3099
|
-
"name": "
|
|
3320
|
+
"name": "errorMessage",
|
|
3100
3321
|
"type": {
|
|
3101
3322
|
"text": "string"
|
|
3102
3323
|
},
|
|
3103
3324
|
"default": "\"\"",
|
|
3104
|
-
"attribute": "
|
|
3325
|
+
"attribute": "errorMessage"
|
|
3105
3326
|
},
|
|
3106
3327
|
{
|
|
3107
3328
|
"kind": "field",
|
|
3108
|
-
"name": "
|
|
3329
|
+
"name": "_isOpen",
|
|
3330
|
+
"type": {
|
|
3331
|
+
"text": "boolean"
|
|
3332
|
+
},
|
|
3333
|
+
"privacy": "private",
|
|
3334
|
+
"default": "false"
|
|
3335
|
+
},
|
|
3336
|
+
{
|
|
3337
|
+
"kind": "field",
|
|
3338
|
+
"name": "_filterText",
|
|
3109
3339
|
"type": {
|
|
3110
3340
|
"text": "string"
|
|
3111
3341
|
},
|
|
3112
|
-
"
|
|
3113
|
-
"
|
|
3342
|
+
"privacy": "private",
|
|
3343
|
+
"default": "\"\""
|
|
3114
3344
|
},
|
|
3115
3345
|
{
|
|
3116
3346
|
"kind": "field",
|
|
3117
|
-
"name": "
|
|
3347
|
+
"name": "_highlightedIndex",
|
|
3348
|
+
"type": {
|
|
3349
|
+
"text": "number"
|
|
3350
|
+
},
|
|
3351
|
+
"privacy": "private",
|
|
3352
|
+
"default": "-1"
|
|
3353
|
+
},
|
|
3354
|
+
{
|
|
3355
|
+
"kind": "field",
|
|
3356
|
+
"name": "_options",
|
|
3357
|
+
"type": {
|
|
3358
|
+
"text": "ComboboxOption[]"
|
|
3359
|
+
},
|
|
3360
|
+
"privacy": "private",
|
|
3361
|
+
"default": "[]"
|
|
3362
|
+
},
|
|
3363
|
+
{
|
|
3364
|
+
"kind": "field",
|
|
3365
|
+
"name": "_filteredOptions",
|
|
3366
|
+
"type": {
|
|
3367
|
+
"text": "ComboboxOption[]"
|
|
3368
|
+
},
|
|
3369
|
+
"privacy": "private",
|
|
3370
|
+
"default": "[]"
|
|
3371
|
+
},
|
|
3372
|
+
{
|
|
3373
|
+
"kind": "field",
|
|
3374
|
+
"name": "_dropdownAbove",
|
|
3118
3375
|
"type": {
|
|
3119
3376
|
"text": "boolean"
|
|
3120
3377
|
},
|
|
3121
|
-
"
|
|
3122
|
-
"
|
|
3123
|
-
"reflects": true
|
|
3378
|
+
"privacy": "private",
|
|
3379
|
+
"default": "false"
|
|
3124
3380
|
},
|
|
3125
3381
|
{
|
|
3126
3382
|
"kind": "field",
|
|
3127
|
-
"name": "
|
|
3383
|
+
"name": "_announcement",
|
|
3128
3384
|
"type": {
|
|
3129
|
-
"text": "string
|
|
3385
|
+
"text": "string"
|
|
3130
3386
|
},
|
|
3131
|
-
"
|
|
3132
|
-
"
|
|
3387
|
+
"privacy": "private",
|
|
3388
|
+
"default": "\"\""
|
|
3389
|
+
},
|
|
3390
|
+
{
|
|
3391
|
+
"kind": "field",
|
|
3392
|
+
"name": "_input",
|
|
3393
|
+
"type": {
|
|
3394
|
+
"text": "HTMLInputElement"
|
|
3395
|
+
},
|
|
3396
|
+
"privacy": "private"
|
|
3397
|
+
},
|
|
3398
|
+
{
|
|
3399
|
+
"kind": "field",
|
|
3400
|
+
"name": "_listbox",
|
|
3401
|
+
"type": {
|
|
3402
|
+
"text": "HTMLElement | undefined"
|
|
3403
|
+
},
|
|
3404
|
+
"privacy": "private"
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
"kind": "field",
|
|
3408
|
+
"name": "_originalErrorMessage",
|
|
3409
|
+
"type": {
|
|
3410
|
+
"text": "string"
|
|
3411
|
+
},
|
|
3412
|
+
"privacy": "private",
|
|
3413
|
+
"default": "\"\""
|
|
3133
3414
|
},
|
|
3134
3415
|
{
|
|
3135
3416
|
"kind": "field",
|
|
@@ -3148,6 +3429,24 @@
|
|
|
3148
3429
|
},
|
|
3149
3430
|
"privacy": "private"
|
|
3150
3431
|
},
|
|
3432
|
+
{
|
|
3433
|
+
"kind": "field",
|
|
3434
|
+
"name": "_selectedLabel",
|
|
3435
|
+
"type": {
|
|
3436
|
+
"text": "string"
|
|
3437
|
+
},
|
|
3438
|
+
"privacy": "private",
|
|
3439
|
+
"default": "\"\""
|
|
3440
|
+
},
|
|
3441
|
+
{
|
|
3442
|
+
"kind": "field",
|
|
3443
|
+
"name": "_defaultValue",
|
|
3444
|
+
"type": {
|
|
3445
|
+
"text": "string"
|
|
3446
|
+
},
|
|
3447
|
+
"privacy": "private",
|
|
3448
|
+
"default": "\"\""
|
|
3449
|
+
},
|
|
3151
3450
|
{
|
|
3152
3451
|
"kind": "field",
|
|
3153
3452
|
"name": "formAssociated",
|
|
@@ -3160,38 +3459,43 @@
|
|
|
3160
3459
|
},
|
|
3161
3460
|
{
|
|
3162
3461
|
"kind": "method",
|
|
3163
|
-
"name": "
|
|
3462
|
+
"name": "_handleSlotChange",
|
|
3164
3463
|
"privacy": "private",
|
|
3165
|
-
"
|
|
3166
|
-
"type": {
|
|
3167
|
-
"text": "Promise<WcDatepicker | null>"
|
|
3168
|
-
}
|
|
3169
|
-
}
|
|
3464
|
+
"description": "Slot handling\n--------------------------------------------------------------------------"
|
|
3170
3465
|
},
|
|
3171
3466
|
{
|
|
3172
3467
|
"kind": "method",
|
|
3173
3468
|
"name": "_setValue",
|
|
3174
3469
|
"privacy": "private",
|
|
3470
|
+
"description": "Form Integration\n--------------------------------------------------------------------------"
|
|
3471
|
+
},
|
|
3472
|
+
{
|
|
3473
|
+
"kind": "method",
|
|
3474
|
+
"name": "_manageRequire",
|
|
3475
|
+
"privacy": "private"
|
|
3476
|
+
},
|
|
3477
|
+
{
|
|
3478
|
+
"kind": "method",
|
|
3479
|
+
"name": "_setValidityMessage",
|
|
3480
|
+
"privacy": "private",
|
|
3175
3481
|
"parameters": [
|
|
3176
3482
|
{
|
|
3177
|
-
"name": "
|
|
3483
|
+
"name": "message",
|
|
3484
|
+
"default": "\"\"",
|
|
3178
3485
|
"type": {
|
|
3179
|
-
"text": "
|
|
3486
|
+
"text": "string"
|
|
3180
3487
|
}
|
|
3181
3488
|
}
|
|
3182
|
-
]
|
|
3183
|
-
"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"
|
|
3489
|
+
]
|
|
3184
3490
|
},
|
|
3185
3491
|
{
|
|
3186
3492
|
"kind": "method",
|
|
3187
|
-
"name": "
|
|
3493
|
+
"name": "_validate",
|
|
3188
3494
|
"privacy": "private"
|
|
3189
3495
|
},
|
|
3190
3496
|
{
|
|
3191
3497
|
"kind": "method",
|
|
3192
|
-
"name": "
|
|
3193
|
-
"privacy": "private",
|
|
3194
|
-
"description": "Actively validates the component:\n- Updates internal validity state\n- Updates UI (e.g. showError)\n- Called on blur/change or form submission"
|
|
3498
|
+
"name": "formResetCallback"
|
|
3195
3499
|
},
|
|
3196
3500
|
{
|
|
3197
3501
|
"kind": "method",
|
|
@@ -3200,74 +3504,92 @@
|
|
|
3200
3504
|
"type": {
|
|
3201
3505
|
"text": "boolean"
|
|
3202
3506
|
}
|
|
3203
|
-
}
|
|
3204
|
-
"description": "Passive check of validity:\n- Returns true/false\n- Does NOT update UI or show errors\n- Used in form submission checks"
|
|
3507
|
+
}
|
|
3205
3508
|
},
|
|
3206
3509
|
{
|
|
3207
3510
|
"kind": "method",
|
|
3208
|
-
"name": "
|
|
3511
|
+
"name": "_handleInvalid",
|
|
3209
3512
|
"privacy": "private",
|
|
3210
3513
|
"parameters": [
|
|
3211
3514
|
{
|
|
3212
|
-
"name": "
|
|
3213
|
-
"default": "\"\"",
|
|
3515
|
+
"name": "event",
|
|
3214
3516
|
"type": {
|
|
3215
|
-
"text": "
|
|
3517
|
+
"text": "Event"
|
|
3216
3518
|
}
|
|
3217
3519
|
}
|
|
3218
3520
|
]
|
|
3219
3521
|
},
|
|
3220
3522
|
{
|
|
3221
3523
|
"kind": "method",
|
|
3222
|
-
"name": "
|
|
3524
|
+
"name": "_positionDropdown",
|
|
3525
|
+
"privacy": "private",
|
|
3526
|
+
"description": "Dropdown positioning\n--------------------------------------------------------------------------"
|
|
3527
|
+
},
|
|
3528
|
+
{
|
|
3529
|
+
"kind": "method",
|
|
3530
|
+
"name": "_filterOptions",
|
|
3223
3531
|
"privacy": "private",
|
|
3224
3532
|
"parameters": [
|
|
3225
3533
|
{
|
|
3226
|
-
"name": "
|
|
3534
|
+
"name": "searchText",
|
|
3227
3535
|
"type": {
|
|
3228
|
-
"text": "
|
|
3536
|
+
"text": "string"
|
|
3229
3537
|
}
|
|
3230
3538
|
}
|
|
3231
|
-
]
|
|
3539
|
+
],
|
|
3540
|
+
"description": "Filtering\n--------------------------------------------------------------------------"
|
|
3232
3541
|
},
|
|
3233
3542
|
{
|
|
3234
3543
|
"kind": "method",
|
|
3235
|
-
"name": "
|
|
3544
|
+
"name": "_scrollToHighlighted",
|
|
3236
3545
|
"privacy": "private",
|
|
3237
|
-
"description": "
|
|
3546
|
+
"description": "Keyboard navigation\n--------------------------------------------------------------------------"
|
|
3238
3547
|
},
|
|
3239
3548
|
{
|
|
3240
3549
|
"kind": "method",
|
|
3241
|
-
"name": "
|
|
3242
|
-
"privacy": "private"
|
|
3550
|
+
"name": "_handleKeyDown",
|
|
3551
|
+
"privacy": "private",
|
|
3552
|
+
"parameters": [
|
|
3553
|
+
{
|
|
3554
|
+
"name": "event",
|
|
3555
|
+
"type": {
|
|
3556
|
+
"text": "KeyboardEvent"
|
|
3557
|
+
}
|
|
3558
|
+
}
|
|
3559
|
+
]
|
|
3243
3560
|
},
|
|
3244
3561
|
{
|
|
3245
3562
|
"kind": "method",
|
|
3246
|
-
"name": "
|
|
3563
|
+
"name": "_moveHighlight",
|
|
3247
3564
|
"privacy": "private",
|
|
3248
3565
|
"parameters": [
|
|
3249
3566
|
{
|
|
3250
|
-
"name": "
|
|
3567
|
+
"name": "direction",
|
|
3251
3568
|
"type": {
|
|
3252
|
-
"text": "
|
|
3569
|
+
"text": "number"
|
|
3253
3570
|
}
|
|
3254
3571
|
}
|
|
3255
3572
|
]
|
|
3256
3573
|
},
|
|
3257
3574
|
{
|
|
3258
3575
|
"kind": "method",
|
|
3259
|
-
"name": "
|
|
3576
|
+
"name": "_handleInput",
|
|
3260
3577
|
"privacy": "private",
|
|
3261
3578
|
"parameters": [
|
|
3262
3579
|
{
|
|
3263
3580
|
"name": "event",
|
|
3264
3581
|
"type": {
|
|
3265
|
-
"text": "
|
|
3582
|
+
"text": "Event"
|
|
3266
3583
|
}
|
|
3267
3584
|
}
|
|
3268
3585
|
],
|
|
3269
3586
|
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
3270
3587
|
},
|
|
3588
|
+
{
|
|
3589
|
+
"kind": "method",
|
|
3590
|
+
"name": "_handleFocus",
|
|
3591
|
+
"privacy": "private"
|
|
3592
|
+
},
|
|
3271
3593
|
{
|
|
3272
3594
|
"kind": "method",
|
|
3273
3595
|
"name": "_handleBlur",
|
|
@@ -3282,38 +3604,18 @@
|
|
|
3282
3604
|
]
|
|
3283
3605
|
},
|
|
3284
3606
|
{
|
|
3285
|
-
"kind": "
|
|
3286
|
-
"name": "
|
|
3287
|
-
"privacy": "private"
|
|
3288
|
-
},
|
|
3289
|
-
{
|
|
3290
|
-
"kind": "method",
|
|
3291
|
-
"name": "_toggleDatepicker",
|
|
3292
|
-
"privacy": "private"
|
|
3293
|
-
},
|
|
3294
|
-
{
|
|
3295
|
-
"kind": "method",
|
|
3296
|
-
"name": "_openDatepicker",
|
|
3297
|
-
"privacy": "private"
|
|
3298
|
-
},
|
|
3299
|
-
{
|
|
3300
|
-
"kind": "method",
|
|
3301
|
-
"name": "_handleDateChange",
|
|
3607
|
+
"kind": "field",
|
|
3608
|
+
"name": "_handleDocumentClick",
|
|
3302
3609
|
"privacy": "private"
|
|
3303
3610
|
},
|
|
3304
3611
|
{
|
|
3305
3612
|
"kind": "method",
|
|
3306
|
-
"name": "
|
|
3613
|
+
"name": "_handleIconClick",
|
|
3307
3614
|
"privacy": "private"
|
|
3308
3615
|
},
|
|
3309
3616
|
{
|
|
3310
3617
|
"kind": "method",
|
|
3311
3618
|
"name": "_handleClearClick",
|
|
3312
|
-
"privacy": "private"
|
|
3313
|
-
},
|
|
3314
|
-
{
|
|
3315
|
-
"kind": "method",
|
|
3316
|
-
"name": "_handleInputChange",
|
|
3317
3619
|
"privacy": "private",
|
|
3318
3620
|
"parameters": [
|
|
3319
3621
|
{
|
|
@@ -3326,68 +3628,93 @@
|
|
|
3326
3628
|
},
|
|
3327
3629
|
{
|
|
3328
3630
|
"kind": "method",
|
|
3329
|
-
"name": "
|
|
3631
|
+
"name": "_handleOptionClick",
|
|
3330
3632
|
"privacy": "private",
|
|
3331
|
-
"return": {
|
|
3332
|
-
"type": {
|
|
3333
|
-
"text": "Date | null"
|
|
3334
|
-
}
|
|
3335
|
-
},
|
|
3336
3633
|
"parameters": [
|
|
3337
3634
|
{
|
|
3338
|
-
"name": "
|
|
3635
|
+
"name": "option",
|
|
3339
3636
|
"type": {
|
|
3340
|
-
"text": "
|
|
3637
|
+
"text": "ComboboxOption"
|
|
3341
3638
|
}
|
|
3342
3639
|
}
|
|
3343
3640
|
]
|
|
3344
3641
|
},
|
|
3345
3642
|
{
|
|
3346
3643
|
"kind": "method",
|
|
3347
|
-
"name": "
|
|
3644
|
+
"name": "_handleOptionMouseEnter",
|
|
3348
3645
|
"privacy": "private",
|
|
3349
|
-
"
|
|
3350
|
-
|
|
3351
|
-
"
|
|
3646
|
+
"parameters": [
|
|
3647
|
+
{
|
|
3648
|
+
"name": "index",
|
|
3649
|
+
"type": {
|
|
3650
|
+
"text": "number"
|
|
3651
|
+
}
|
|
3352
3652
|
}
|
|
3353
|
-
|
|
3653
|
+
]
|
|
3354
3654
|
},
|
|
3355
3655
|
{
|
|
3356
3656
|
"kind": "method",
|
|
3357
|
-
"name": "
|
|
3657
|
+
"name": "_selectOption",
|
|
3358
3658
|
"privacy": "private",
|
|
3359
|
-
"
|
|
3360
|
-
|
|
3361
|
-
"
|
|
3659
|
+
"parameters": [
|
|
3660
|
+
{
|
|
3661
|
+
"name": "option",
|
|
3662
|
+
"type": {
|
|
3663
|
+
"text": "ComboboxOption"
|
|
3664
|
+
}
|
|
3362
3665
|
}
|
|
3363
|
-
|
|
3364
|
-
"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."
|
|
3666
|
+
]
|
|
3365
3667
|
},
|
|
3366
3668
|
{
|
|
3367
3669
|
"kind": "method",
|
|
3368
|
-
"name": "
|
|
3670
|
+
"name": "_handleChange",
|
|
3671
|
+
"privacy": "private"
|
|
3672
|
+
},
|
|
3673
|
+
{
|
|
3674
|
+
"kind": "method",
|
|
3675
|
+
"name": "_openDropdown",
|
|
3676
|
+
"privacy": "private"
|
|
3677
|
+
},
|
|
3678
|
+
{
|
|
3679
|
+
"kind": "method",
|
|
3680
|
+
"name": "_closeDropdown",
|
|
3681
|
+
"privacy": "private"
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
"kind": "method",
|
|
3685
|
+
"name": "_renderOptions",
|
|
3369
3686
|
"privacy": "private",
|
|
3370
|
-
"
|
|
3371
|
-
"type": {
|
|
3372
|
-
"text": "boolean"
|
|
3373
|
-
}
|
|
3374
|
-
}
|
|
3687
|
+
"description": "Render helpers\n--------------------------------------------------------------------------"
|
|
3375
3688
|
}
|
|
3376
3689
|
],
|
|
3377
3690
|
"events": [
|
|
3691
|
+
{
|
|
3692
|
+
"name": "nys-input",
|
|
3693
|
+
"type": {
|
|
3694
|
+
"text": "CustomEvent"
|
|
3695
|
+
},
|
|
3696
|
+
"description": "Fired on input change. Detail: `{ id, value }`."
|
|
3697
|
+
},
|
|
3698
|
+
{
|
|
3699
|
+
"name": "nys-focus",
|
|
3700
|
+
"type": {
|
|
3701
|
+
"text": "Event"
|
|
3702
|
+
},
|
|
3703
|
+
"description": "Fired when combobox receives focus."
|
|
3704
|
+
},
|
|
3378
3705
|
{
|
|
3379
3706
|
"name": "nys-blur",
|
|
3380
3707
|
"type": {
|
|
3381
3708
|
"text": "Event"
|
|
3382
3709
|
},
|
|
3383
|
-
"description": "
|
|
3710
|
+
"description": "Fired when combobox loses focus."
|
|
3384
3711
|
},
|
|
3385
3712
|
{
|
|
3386
|
-
"name": "nys-
|
|
3713
|
+
"name": "nys-change",
|
|
3387
3714
|
"type": {
|
|
3388
3715
|
"text": "CustomEvent"
|
|
3389
3716
|
},
|
|
3390
|
-
"description": "
|
|
3717
|
+
"description": "Fired when selection changes. Detail: `{ id, value }`."
|
|
3391
3718
|
}
|
|
3392
3719
|
],
|
|
3393
3720
|
"attributes": [
|
|
@@ -3408,246 +3735,1486 @@
|
|
|
3408
3735
|
"fieldName": "name"
|
|
3409
3736
|
},
|
|
3410
3737
|
{
|
|
3411
|
-
"name": "
|
|
3738
|
+
"name": "label",
|
|
3412
3739
|
"type": {
|
|
3413
|
-
"text": "
|
|
3740
|
+
"text": "string"
|
|
3414
3741
|
},
|
|
3415
|
-
"default": "\"
|
|
3742
|
+
"default": "\"\"",
|
|
3743
|
+
"fieldName": "label"
|
|
3744
|
+
},
|
|
3745
|
+
{
|
|
3746
|
+
"name": "description",
|
|
3747
|
+
"type": {
|
|
3748
|
+
"text": "string"
|
|
3749
|
+
},
|
|
3750
|
+
"default": "\"\"",
|
|
3751
|
+
"fieldName": "description"
|
|
3752
|
+
},
|
|
3753
|
+
{
|
|
3754
|
+
"name": "value",
|
|
3755
|
+
"type": {
|
|
3756
|
+
"text": "string"
|
|
3757
|
+
},
|
|
3758
|
+
"default": "\"\"",
|
|
3759
|
+
"fieldName": "value"
|
|
3760
|
+
},
|
|
3761
|
+
{
|
|
3762
|
+
"name": "disabled",
|
|
3763
|
+
"type": {
|
|
3764
|
+
"text": "boolean"
|
|
3765
|
+
},
|
|
3766
|
+
"default": "false",
|
|
3767
|
+
"fieldName": "disabled"
|
|
3768
|
+
},
|
|
3769
|
+
{
|
|
3770
|
+
"name": "required",
|
|
3771
|
+
"type": {
|
|
3772
|
+
"text": "boolean"
|
|
3773
|
+
},
|
|
3774
|
+
"default": "false",
|
|
3775
|
+
"fieldName": "required"
|
|
3776
|
+
},
|
|
3777
|
+
{
|
|
3778
|
+
"name": "optional",
|
|
3779
|
+
"type": {
|
|
3780
|
+
"text": "boolean"
|
|
3781
|
+
},
|
|
3782
|
+
"default": "false",
|
|
3783
|
+
"fieldName": "optional"
|
|
3784
|
+
},
|
|
3785
|
+
{
|
|
3786
|
+
"name": "tooltip",
|
|
3787
|
+
"type": {
|
|
3788
|
+
"text": "string"
|
|
3789
|
+
},
|
|
3790
|
+
"default": "\"\"",
|
|
3791
|
+
"fieldName": "tooltip"
|
|
3792
|
+
},
|
|
3793
|
+
{
|
|
3794
|
+
"name": "form",
|
|
3795
|
+
"type": {
|
|
3796
|
+
"text": "string | null"
|
|
3797
|
+
},
|
|
3798
|
+
"default": "null",
|
|
3799
|
+
"fieldName": "form"
|
|
3800
|
+
},
|
|
3801
|
+
{
|
|
3802
|
+
"name": "width",
|
|
3803
|
+
"type": {
|
|
3804
|
+
"text": "\"md\" | \"lg\" | \"full\""
|
|
3805
|
+
},
|
|
3806
|
+
"default": "\"full\"",
|
|
3416
3807
|
"fieldName": "width"
|
|
3417
3808
|
},
|
|
3418
3809
|
{
|
|
3810
|
+
"name": "inverted",
|
|
3811
|
+
"type": {
|
|
3812
|
+
"text": "boolean"
|
|
3813
|
+
},
|
|
3814
|
+
"default": "false",
|
|
3815
|
+
"fieldName": "inverted"
|
|
3816
|
+
},
|
|
3817
|
+
{
|
|
3818
|
+
"name": "showError",
|
|
3819
|
+
"type": {
|
|
3820
|
+
"text": "boolean"
|
|
3821
|
+
},
|
|
3822
|
+
"default": "false",
|
|
3823
|
+
"fieldName": "showError"
|
|
3824
|
+
},
|
|
3825
|
+
{
|
|
3826
|
+
"name": "errorMessage",
|
|
3827
|
+
"type": {
|
|
3828
|
+
"text": "string"
|
|
3829
|
+
},
|
|
3830
|
+
"default": "\"\"",
|
|
3831
|
+
"fieldName": "errorMessage"
|
|
3832
|
+
}
|
|
3833
|
+
],
|
|
3834
|
+
"superclass": {
|
|
3835
|
+
"name": "LitElement",
|
|
3836
|
+
"package": "lit"
|
|
3837
|
+
},
|
|
3838
|
+
"tagName": "nys-combobox",
|
|
3839
|
+
"customElement": true
|
|
3840
|
+
}
|
|
3841
|
+
],
|
|
3842
|
+
"exports": [
|
|
3843
|
+
{
|
|
3844
|
+
"kind": "custom-element-definition",
|
|
3845
|
+
"name": "nys-combobox",
|
|
3846
|
+
"declaration": {
|
|
3847
|
+
"name": "NysCombobox",
|
|
3848
|
+
"module": "packages/nys-combobox/src/nys-combobox.ts"
|
|
3849
|
+
}
|
|
3850
|
+
},
|
|
3851
|
+
{
|
|
3852
|
+
"kind": "js",
|
|
3853
|
+
"name": "NysCombobox",
|
|
3854
|
+
"declaration": {
|
|
3855
|
+
"name": "NysCombobox",
|
|
3856
|
+
"module": "packages/nys-combobox/src/nys-combobox.ts"
|
|
3857
|
+
}
|
|
3858
|
+
}
|
|
3859
|
+
]
|
|
3860
|
+
},
|
|
3861
|
+
{
|
|
3862
|
+
"kind": "javascript-module",
|
|
3863
|
+
"path": "packages/nys-datepicker/src/index.ts",
|
|
3864
|
+
"declarations": [],
|
|
3865
|
+
"exports": [
|
|
3866
|
+
{
|
|
3867
|
+
"kind": "js",
|
|
3868
|
+
"name": "*",
|
|
3869
|
+
"declaration": {
|
|
3870
|
+
"name": "*",
|
|
3871
|
+
"module": "packages/nys-datepicker/src/nys-datepicker"
|
|
3872
|
+
}
|
|
3873
|
+
}
|
|
3874
|
+
]
|
|
3875
|
+
},
|
|
3876
|
+
{
|
|
3877
|
+
"kind": "javascript-module",
|
|
3878
|
+
"path": "packages/nys-datepicker/src/nys-datepicker.ts",
|
|
3879
|
+
"declarations": [
|
|
3880
|
+
{
|
|
3881
|
+
"kind": "class",
|
|
3882
|
+
"description": "Date picker with calendar popup and form validation. Falls back to native date input\non Safari and mobile.",
|
|
3883
|
+
"name": "NysDatepicker",
|
|
3884
|
+
"members": [
|
|
3885
|
+
{
|
|
3886
|
+
"kind": "field",
|
|
3887
|
+
"name": "shadowRootOptions",
|
|
3888
|
+
"type": {
|
|
3889
|
+
"text": "object"
|
|
3890
|
+
},
|
|
3891
|
+
"static": true,
|
|
3892
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
3893
|
+
},
|
|
3894
|
+
{
|
|
3895
|
+
"kind": "field",
|
|
3896
|
+
"name": "id",
|
|
3897
|
+
"type": {
|
|
3898
|
+
"text": "string"
|
|
3899
|
+
},
|
|
3900
|
+
"default": "\"\"",
|
|
3901
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
3902
|
+
"attribute": "id",
|
|
3903
|
+
"reflects": true
|
|
3904
|
+
},
|
|
3905
|
+
{
|
|
3906
|
+
"kind": "field",
|
|
3907
|
+
"name": "name",
|
|
3908
|
+
"type": {
|
|
3909
|
+
"text": "string"
|
|
3910
|
+
},
|
|
3911
|
+
"default": "\"\"",
|
|
3912
|
+
"description": "Name for form submission.",
|
|
3913
|
+
"attribute": "name",
|
|
3914
|
+
"reflects": true
|
|
3915
|
+
},
|
|
3916
|
+
{
|
|
3917
|
+
"kind": "field",
|
|
3918
|
+
"name": "width",
|
|
3919
|
+
"type": {
|
|
3920
|
+
"text": "\"md\" | \"lg\" | \"full\""
|
|
3921
|
+
},
|
|
3922
|
+
"default": "\"md\"",
|
|
3923
|
+
"description": "Input width: `md` (200px), `lg` (384px), `full` (100%).",
|
|
3924
|
+
"attribute": "width",
|
|
3925
|
+
"reflects": true
|
|
3926
|
+
},
|
|
3927
|
+
{
|
|
3928
|
+
"kind": "field",
|
|
3419
3929
|
"name": "hideTodayButton",
|
|
3420
3930
|
"type": {
|
|
3421
3931
|
"text": "boolean"
|
|
3422
3932
|
},
|
|
3423
3933
|
"default": "false",
|
|
3424
|
-
"
|
|
3934
|
+
"description": "Hide the \"Today\" button in calendar popup.",
|
|
3935
|
+
"attribute": "hideTodayButton"
|
|
3425
3936
|
},
|
|
3426
3937
|
{
|
|
3938
|
+
"kind": "field",
|
|
3427
3939
|
"name": "hideClearButton",
|
|
3428
3940
|
"type": {
|
|
3429
3941
|
"text": "boolean"
|
|
3430
3942
|
},
|
|
3431
3943
|
"default": "false",
|
|
3432
|
-
"
|
|
3944
|
+
"description": "Hide the \"Clear\" button in calendar popup.",
|
|
3945
|
+
"attribute": "hideClearButton"
|
|
3433
3946
|
},
|
|
3434
3947
|
{
|
|
3948
|
+
"kind": "field",
|
|
3435
3949
|
"name": "disabled",
|
|
3436
3950
|
"type": {
|
|
3437
3951
|
"text": "boolean"
|
|
3438
3952
|
},
|
|
3439
3953
|
"default": "false",
|
|
3440
|
-
"
|
|
3954
|
+
"description": "Disable interaction.",
|
|
3955
|
+
"attribute": "disabled",
|
|
3956
|
+
"reflects": true
|
|
3441
3957
|
},
|
|
3442
3958
|
{
|
|
3959
|
+
"kind": "field",
|
|
3443
3960
|
"name": "required",
|
|
3444
3961
|
"type": {
|
|
3445
3962
|
"text": "boolean"
|
|
3446
3963
|
},
|
|
3447
3964
|
"default": "false",
|
|
3448
|
-
"
|
|
3965
|
+
"description": "Mark as required. Shows \"Required\" flag and validates on blur.",
|
|
3966
|
+
"attribute": "required",
|
|
3967
|
+
"reflects": true
|
|
3449
3968
|
},
|
|
3450
3969
|
{
|
|
3970
|
+
"kind": "field",
|
|
3451
3971
|
"name": "optional",
|
|
3452
3972
|
"type": {
|
|
3453
3973
|
"text": "boolean"
|
|
3454
3974
|
},
|
|
3455
3975
|
"default": "false",
|
|
3456
|
-
"
|
|
3976
|
+
"description": "Show \"Optional\" flag. Use when most fields are required.",
|
|
3977
|
+
"attribute": "optional",
|
|
3978
|
+
"reflects": true
|
|
3457
3979
|
},
|
|
3458
3980
|
{
|
|
3981
|
+
"kind": "field",
|
|
3459
3982
|
"name": "showError",
|
|
3460
3983
|
"type": {
|
|
3461
3984
|
"text": "boolean"
|
|
3462
3985
|
},
|
|
3463
3986
|
"default": "false",
|
|
3464
|
-
"
|
|
3987
|
+
"description": "Show error state.",
|
|
3988
|
+
"attribute": "showError",
|
|
3989
|
+
"reflects": true
|
|
3465
3990
|
},
|
|
3466
3991
|
{
|
|
3992
|
+
"kind": "field",
|
|
3467
3993
|
"name": "errorMessage",
|
|
3468
3994
|
"type": {
|
|
3469
3995
|
"text": "string"
|
|
3470
3996
|
},
|
|
3471
3997
|
"default": "\"\"",
|
|
3472
|
-
"
|
|
3998
|
+
"description": "Error message text.",
|
|
3999
|
+
"attribute": "errorMessage"
|
|
3473
4000
|
},
|
|
3474
4001
|
{
|
|
4002
|
+
"kind": "field",
|
|
3475
4003
|
"name": "form",
|
|
3476
4004
|
"type": {
|
|
3477
4005
|
"text": "string | null"
|
|
3478
4006
|
},
|
|
3479
4007
|
"default": "null",
|
|
3480
|
-
"
|
|
4008
|
+
"description": "Form `id` to associate with when input is outside form.",
|
|
4009
|
+
"attribute": "form",
|
|
4010
|
+
"reflects": true
|
|
3481
4011
|
},
|
|
3482
4012
|
{
|
|
4013
|
+
"kind": "field",
|
|
3483
4014
|
"name": "tooltip",
|
|
3484
4015
|
"type": {
|
|
3485
4016
|
"text": "string"
|
|
3486
4017
|
},
|
|
3487
4018
|
"default": "\"\"",
|
|
3488
|
-
"
|
|
4019
|
+
"description": "Tooltip text on info icon hover.",
|
|
4020
|
+
"attribute": "tooltip"
|
|
3489
4021
|
},
|
|
3490
4022
|
{
|
|
4023
|
+
"kind": "field",
|
|
3491
4024
|
"name": "type",
|
|
3492
4025
|
"type": {
|
|
3493
4026
|
"text": "string"
|
|
3494
4027
|
},
|
|
3495
4028
|
"default": "\"date\"",
|
|
3496
|
-
"
|
|
4029
|
+
"description": "Input type. Currently only supports `date`.",
|
|
4030
|
+
"attribute": "type"
|
|
3497
4031
|
},
|
|
3498
4032
|
{
|
|
4033
|
+
"kind": "field",
|
|
3499
4034
|
"name": "label",
|
|
3500
4035
|
"type": {
|
|
3501
4036
|
"text": "string"
|
|
3502
4037
|
},
|
|
3503
4038
|
"default": "\"\"",
|
|
3504
|
-
"
|
|
4039
|
+
"description": "Label text. Required for accessibility.",
|
|
4040
|
+
"attribute": "label"
|
|
3505
4041
|
},
|
|
3506
4042
|
{
|
|
4043
|
+
"kind": "field",
|
|
3507
4044
|
"name": "description",
|
|
3508
4045
|
"type": {
|
|
3509
4046
|
"text": "string"
|
|
3510
4047
|
},
|
|
3511
4048
|
"default": "\"\"",
|
|
3512
|
-
"
|
|
4049
|
+
"description": "Helper text below label.",
|
|
4050
|
+
"attribute": "description"
|
|
3513
4051
|
},
|
|
3514
4052
|
{
|
|
4053
|
+
"kind": "field",
|
|
3515
4054
|
"name": "startDate",
|
|
3516
4055
|
"type": {
|
|
3517
4056
|
"text": "string"
|
|
3518
4057
|
},
|
|
3519
4058
|
"default": "\"\"",
|
|
3520
|
-
"
|
|
4059
|
+
"description": "Initial date when calendar opens (YYYY-MM-DD).",
|
|
4060
|
+
"attribute": "startDate"
|
|
3521
4061
|
},
|
|
3522
4062
|
{
|
|
4063
|
+
"kind": "field",
|
|
3523
4064
|
"name": "inverted",
|
|
3524
4065
|
"type": {
|
|
3525
4066
|
"text": "boolean"
|
|
3526
4067
|
},
|
|
3527
4068
|
"default": "false",
|
|
3528
|
-
"
|
|
4069
|
+
"description": "Dark background mode.",
|
|
4070
|
+
"attribute": "inverted",
|
|
4071
|
+
"reflects": true
|
|
3529
4072
|
},
|
|
3530
4073
|
{
|
|
4074
|
+
"kind": "field",
|
|
3531
4075
|
"name": "value",
|
|
3532
4076
|
"type": {
|
|
3533
4077
|
"text": "string | Date | undefined"
|
|
3534
4078
|
},
|
|
3535
4079
|
"default": "undefined",
|
|
3536
|
-
"
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
4080
|
+
"description": "Selected date. Accepts Date object or ISO string (YYYY-MM-DD).",
|
|
4081
|
+
"attribute": "value"
|
|
4082
|
+
},
|
|
4083
|
+
{
|
|
4084
|
+
"kind": "field",
|
|
4085
|
+
"name": "datepickerIsOpen",
|
|
4086
|
+
"type": {
|
|
4087
|
+
"text": "boolean"
|
|
4088
|
+
},
|
|
4089
|
+
"privacy": "private",
|
|
4090
|
+
"default": "false"
|
|
4091
|
+
},
|
|
4092
|
+
{
|
|
4093
|
+
"kind": "field",
|
|
4094
|
+
"name": "_hasUserInteracted",
|
|
4095
|
+
"type": {
|
|
4096
|
+
"text": "boolean"
|
|
4097
|
+
},
|
|
4098
|
+
"privacy": "private",
|
|
4099
|
+
"default": "false"
|
|
4100
|
+
},
|
|
4101
|
+
{
|
|
4102
|
+
"kind": "field",
|
|
4103
|
+
"name": "_internals",
|
|
4104
|
+
"type": {
|
|
4105
|
+
"text": "ElementInternals"
|
|
4106
|
+
},
|
|
4107
|
+
"privacy": "private"
|
|
4108
|
+
},
|
|
4109
|
+
{
|
|
4110
|
+
"kind": "field",
|
|
4111
|
+
"name": "formAssociated",
|
|
4112
|
+
"type": {
|
|
4113
|
+
"text": "boolean"
|
|
4114
|
+
},
|
|
4115
|
+
"static": true,
|
|
4116
|
+
"default": "true",
|
|
4117
|
+
"description": "Lifecycle methods\n--------------------------------------------------------------------------"
|
|
4118
|
+
},
|
|
4119
|
+
{
|
|
4120
|
+
"kind": "method",
|
|
4121
|
+
"name": "_whenWcDatepickerReady",
|
|
4122
|
+
"privacy": "private",
|
|
4123
|
+
"return": {
|
|
4124
|
+
"type": {
|
|
4125
|
+
"text": "Promise<WcDatepicker | null>"
|
|
4126
|
+
}
|
|
4127
|
+
}
|
|
4128
|
+
},
|
|
4129
|
+
{
|
|
4130
|
+
"kind": "method",
|
|
4131
|
+
"name": "_setValue",
|
|
4132
|
+
"privacy": "private",
|
|
4133
|
+
"parameters": [
|
|
4134
|
+
{
|
|
4135
|
+
"name": "value",
|
|
4136
|
+
"type": {
|
|
4137
|
+
"text": "Date | string | undefined"
|
|
4138
|
+
}
|
|
4139
|
+
}
|
|
4140
|
+
],
|
|
4141
|
+
"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"
|
|
4142
|
+
},
|
|
4143
|
+
{
|
|
4144
|
+
"kind": "method",
|
|
4145
|
+
"name": "_manageRequire",
|
|
4146
|
+
"privacy": "private"
|
|
4147
|
+
},
|
|
4148
|
+
{
|
|
4149
|
+
"kind": "method",
|
|
4150
|
+
"name": "_validate",
|
|
4151
|
+
"privacy": "private",
|
|
4152
|
+
"description": "Actively validates the component:\n- Updates internal validity state\n- Updates UI (e.g. showError)\n- Called on blur/change or form submission"
|
|
4153
|
+
},
|
|
4154
|
+
{
|
|
4155
|
+
"kind": "method",
|
|
4156
|
+
"name": "checkValidity",
|
|
4157
|
+
"return": {
|
|
4158
|
+
"type": {
|
|
4159
|
+
"text": "boolean"
|
|
4160
|
+
}
|
|
4161
|
+
},
|
|
4162
|
+
"description": "Passive check of validity:\n- Returns true/false\n- Does NOT update UI or show errors\n- Used in form submission checks"
|
|
4163
|
+
},
|
|
4164
|
+
{
|
|
4165
|
+
"kind": "method",
|
|
4166
|
+
"name": "_setValidityMessage",
|
|
4167
|
+
"privacy": "private",
|
|
4168
|
+
"parameters": [
|
|
4169
|
+
{
|
|
4170
|
+
"name": "message",
|
|
4171
|
+
"default": "\"\"",
|
|
4172
|
+
"type": {
|
|
4173
|
+
"text": "string"
|
|
4174
|
+
}
|
|
4175
|
+
}
|
|
4176
|
+
]
|
|
4177
|
+
},
|
|
4178
|
+
{
|
|
4179
|
+
"kind": "method",
|
|
4180
|
+
"name": "_handleInvalid",
|
|
4181
|
+
"privacy": "private",
|
|
4182
|
+
"parameters": [
|
|
4183
|
+
{
|
|
4184
|
+
"name": "event",
|
|
4185
|
+
"type": {
|
|
4186
|
+
"text": "Event"
|
|
4187
|
+
}
|
|
4188
|
+
}
|
|
4189
|
+
]
|
|
4190
|
+
},
|
|
4191
|
+
{
|
|
4192
|
+
"kind": "method",
|
|
4193
|
+
"name": "_replaceButtonSVG",
|
|
4194
|
+
"privacy": "private",
|
|
4195
|
+
"description": "Replaces the default wc-datepicker month navigation buttons\nwith NYS icon components for previous and next month."
|
|
4196
|
+
},
|
|
4197
|
+
{
|
|
4198
|
+
"kind": "method",
|
|
4199
|
+
"name": "_addMonthDropdownIcon",
|
|
4200
|
+
"privacy": "private"
|
|
4201
|
+
},
|
|
4202
|
+
{
|
|
4203
|
+
"kind": "method",
|
|
4204
|
+
"name": "_parseLocalDate",
|
|
4205
|
+
"privacy": "private",
|
|
4206
|
+
"parameters": [
|
|
4207
|
+
{
|
|
4208
|
+
"name": "dateString",
|
|
4209
|
+
"type": {
|
|
4210
|
+
"text": "string"
|
|
4211
|
+
}
|
|
4212
|
+
}
|
|
4213
|
+
]
|
|
4214
|
+
},
|
|
4215
|
+
{
|
|
4216
|
+
"kind": "method",
|
|
4217
|
+
"name": "_setTodayDate",
|
|
4218
|
+
"privacy": "private"
|
|
4219
|
+
},
|
|
4220
|
+
{
|
|
4221
|
+
"kind": "method",
|
|
4222
|
+
"name": "_setFocusOnTodayDate",
|
|
4223
|
+
"privacy": "private",
|
|
4224
|
+
"parameters": [
|
|
4225
|
+
{
|
|
4226
|
+
"name": "visualFocusOnly",
|
|
4227
|
+
"default": "false"
|
|
4228
|
+
}
|
|
4229
|
+
]
|
|
4230
|
+
},
|
|
4231
|
+
{
|
|
4232
|
+
"kind": "method",
|
|
4233
|
+
"name": "_dispatchInputEvent",
|
|
4234
|
+
"privacy": "private"
|
|
4235
|
+
},
|
|
4236
|
+
{
|
|
4237
|
+
"kind": "method",
|
|
4238
|
+
"name": "_handleInputKeydown",
|
|
4239
|
+
"privacy": "private",
|
|
4240
|
+
"parameters": [
|
|
4241
|
+
{
|
|
4242
|
+
"name": "event",
|
|
4243
|
+
"type": {
|
|
4244
|
+
"text": "KeyboardEvent"
|
|
4245
|
+
}
|
|
4246
|
+
}
|
|
4247
|
+
],
|
|
4248
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
4249
|
+
},
|
|
4250
|
+
{
|
|
4251
|
+
"kind": "method",
|
|
4252
|
+
"name": "_handleBlur",
|
|
4253
|
+
"privacy": "private",
|
|
4254
|
+
"parameters": [
|
|
4255
|
+
{
|
|
4256
|
+
"name": "event",
|
|
4257
|
+
"type": {
|
|
4258
|
+
"text": "FocusEvent"
|
|
4259
|
+
}
|
|
4260
|
+
}
|
|
4261
|
+
]
|
|
4262
|
+
},
|
|
4263
|
+
{
|
|
4264
|
+
"kind": "method",
|
|
4265
|
+
"name": "_onDocumentClick",
|
|
4266
|
+
"privacy": "private"
|
|
4267
|
+
},
|
|
4268
|
+
{
|
|
4269
|
+
"kind": "field",
|
|
4270
|
+
"name": "_onKeydownEsc",
|
|
4271
|
+
"privacy": "private"
|
|
4272
|
+
},
|
|
4273
|
+
{
|
|
4274
|
+
"kind": "method",
|
|
4275
|
+
"name": "_toggleDatepicker",
|
|
4276
|
+
"privacy": "private"
|
|
4277
|
+
},
|
|
4278
|
+
{
|
|
4279
|
+
"kind": "method",
|
|
4280
|
+
"name": "_openDatepicker",
|
|
4281
|
+
"privacy": "private"
|
|
4282
|
+
},
|
|
4283
|
+
{
|
|
4284
|
+
"kind": "method",
|
|
4285
|
+
"name": "_handleDateChange",
|
|
4286
|
+
"privacy": "private"
|
|
4287
|
+
},
|
|
4288
|
+
{
|
|
4289
|
+
"kind": "method",
|
|
4290
|
+
"name": "_handleTodayClick",
|
|
4291
|
+
"privacy": "private"
|
|
4292
|
+
},
|
|
4293
|
+
{
|
|
4294
|
+
"kind": "method",
|
|
4295
|
+
"name": "_handleClearClick",
|
|
4296
|
+
"privacy": "private"
|
|
4297
|
+
},
|
|
4298
|
+
{
|
|
4299
|
+
"kind": "method",
|
|
4300
|
+
"name": "_handleInputChange",
|
|
4301
|
+
"privacy": "private",
|
|
4302
|
+
"parameters": [
|
|
4303
|
+
{
|
|
4304
|
+
"name": "event",
|
|
4305
|
+
"type": {
|
|
4306
|
+
"text": "Event"
|
|
4307
|
+
}
|
|
4308
|
+
}
|
|
4309
|
+
]
|
|
4310
|
+
},
|
|
4311
|
+
{
|
|
4312
|
+
"kind": "method",
|
|
4313
|
+
"name": "_getValidDateFromInput",
|
|
4314
|
+
"privacy": "private",
|
|
4315
|
+
"return": {
|
|
4316
|
+
"type": {
|
|
4317
|
+
"text": "Date | null"
|
|
4318
|
+
}
|
|
4319
|
+
},
|
|
4320
|
+
"parameters": [
|
|
4321
|
+
{
|
|
4322
|
+
"name": "value",
|
|
4323
|
+
"type": {
|
|
4324
|
+
"text": "string"
|
|
4325
|
+
}
|
|
4326
|
+
}
|
|
4327
|
+
]
|
|
4328
|
+
},
|
|
4329
|
+
{
|
|
4330
|
+
"kind": "method",
|
|
4331
|
+
"name": "_handleFocusTrap",
|
|
4332
|
+
"privacy": "private",
|
|
4333
|
+
"parameters": [
|
|
4334
|
+
{
|
|
4335
|
+
"name": "event",
|
|
4336
|
+
"type": {
|
|
4337
|
+
"text": "KeyboardEvent"
|
|
4338
|
+
}
|
|
4339
|
+
}
|
|
4340
|
+
]
|
|
4341
|
+
},
|
|
4342
|
+
{
|
|
4343
|
+
"kind": "method",
|
|
4344
|
+
"name": "_isSafari",
|
|
4345
|
+
"privacy": "private",
|
|
4346
|
+
"return": {
|
|
4347
|
+
"type": {
|
|
4348
|
+
"text": "boolean"
|
|
4349
|
+
}
|
|
4350
|
+
}
|
|
4351
|
+
},
|
|
4352
|
+
{
|
|
4353
|
+
"kind": "method",
|
|
4354
|
+
"name": "_isMobile",
|
|
4355
|
+
"privacy": "private",
|
|
4356
|
+
"return": {
|
|
4357
|
+
"type": {
|
|
4358
|
+
"text": ""
|
|
4359
|
+
}
|
|
4360
|
+
},
|
|
4361
|
+
"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."
|
|
4362
|
+
},
|
|
4363
|
+
{
|
|
4364
|
+
"kind": "method",
|
|
4365
|
+
"name": "_shouldUseNativeDatepicker",
|
|
4366
|
+
"privacy": "private",
|
|
4367
|
+
"return": {
|
|
4368
|
+
"type": {
|
|
4369
|
+
"text": "boolean"
|
|
4370
|
+
}
|
|
4371
|
+
}
|
|
4372
|
+
}
|
|
4373
|
+
],
|
|
4374
|
+
"events": [
|
|
4375
|
+
{
|
|
4376
|
+
"name": "nys-input",
|
|
4377
|
+
"type": {
|
|
4378
|
+
"text": "CustomEvent"
|
|
4379
|
+
},
|
|
4380
|
+
"description": "Fired on date selection. Detail: `{id, value}`."
|
|
4381
|
+
},
|
|
4382
|
+
{
|
|
4383
|
+
"name": "nys-blur",
|
|
4384
|
+
"type": {
|
|
4385
|
+
"text": "Event"
|
|
4386
|
+
},
|
|
4387
|
+
"description": "Fired when input or calendar loses focus. Triggers validation."
|
|
4388
|
+
}
|
|
4389
|
+
],
|
|
4390
|
+
"attributes": [
|
|
4391
|
+
{
|
|
4392
|
+
"name": "id",
|
|
4393
|
+
"type": {
|
|
4394
|
+
"text": "string"
|
|
4395
|
+
},
|
|
4396
|
+
"default": "\"\"",
|
|
4397
|
+
"description": "Unique identifier. Auto-generated if not provided.",
|
|
4398
|
+
"fieldName": "id"
|
|
4399
|
+
},
|
|
4400
|
+
{
|
|
4401
|
+
"name": "name",
|
|
4402
|
+
"type": {
|
|
4403
|
+
"text": "string"
|
|
4404
|
+
},
|
|
4405
|
+
"default": "\"\"",
|
|
4406
|
+
"description": "Name for form submission.",
|
|
4407
|
+
"fieldName": "name"
|
|
4408
|
+
},
|
|
4409
|
+
{
|
|
4410
|
+
"name": "width",
|
|
4411
|
+
"type": {
|
|
4412
|
+
"text": "\"md\" | \"lg\" | \"full\""
|
|
4413
|
+
},
|
|
4414
|
+
"default": "\"md\"",
|
|
4415
|
+
"description": "Input width: `md` (200px), `lg` (384px), `full` (100%).",
|
|
4416
|
+
"fieldName": "width"
|
|
4417
|
+
},
|
|
4418
|
+
{
|
|
4419
|
+
"name": "hideTodayButton",
|
|
4420
|
+
"type": {
|
|
4421
|
+
"text": "boolean"
|
|
4422
|
+
},
|
|
4423
|
+
"default": "false",
|
|
4424
|
+
"description": "Hide the \"Today\" button in calendar popup.",
|
|
4425
|
+
"fieldName": "hideTodayButton"
|
|
4426
|
+
},
|
|
4427
|
+
{
|
|
4428
|
+
"name": "hideClearButton",
|
|
4429
|
+
"type": {
|
|
4430
|
+
"text": "boolean"
|
|
4431
|
+
},
|
|
4432
|
+
"default": "false",
|
|
4433
|
+
"description": "Hide the \"Clear\" button in calendar popup.",
|
|
4434
|
+
"fieldName": "hideClearButton"
|
|
4435
|
+
},
|
|
4436
|
+
{
|
|
4437
|
+
"name": "disabled",
|
|
4438
|
+
"type": {
|
|
4439
|
+
"text": "boolean"
|
|
4440
|
+
},
|
|
4441
|
+
"default": "false",
|
|
4442
|
+
"description": "Disable interaction.",
|
|
4443
|
+
"fieldName": "disabled"
|
|
4444
|
+
},
|
|
4445
|
+
{
|
|
4446
|
+
"name": "required",
|
|
4447
|
+
"type": {
|
|
4448
|
+
"text": "boolean"
|
|
4449
|
+
},
|
|
4450
|
+
"default": "false",
|
|
4451
|
+
"description": "Mark as required. Shows \"Required\" flag and validates on blur.",
|
|
4452
|
+
"fieldName": "required"
|
|
4453
|
+
},
|
|
4454
|
+
{
|
|
4455
|
+
"name": "optional",
|
|
4456
|
+
"type": {
|
|
4457
|
+
"text": "boolean"
|
|
4458
|
+
},
|
|
4459
|
+
"default": "false",
|
|
4460
|
+
"description": "Show \"Optional\" flag. Use when most fields are required.",
|
|
4461
|
+
"fieldName": "optional"
|
|
4462
|
+
},
|
|
4463
|
+
{
|
|
4464
|
+
"name": "showError",
|
|
4465
|
+
"type": {
|
|
4466
|
+
"text": "boolean"
|
|
4467
|
+
},
|
|
4468
|
+
"default": "false",
|
|
4469
|
+
"description": "Show error state.",
|
|
4470
|
+
"fieldName": "showError"
|
|
4471
|
+
},
|
|
4472
|
+
{
|
|
4473
|
+
"name": "errorMessage",
|
|
4474
|
+
"type": {
|
|
4475
|
+
"text": "string"
|
|
4476
|
+
},
|
|
4477
|
+
"default": "\"\"",
|
|
4478
|
+
"description": "Error message text.",
|
|
4479
|
+
"fieldName": "errorMessage"
|
|
4480
|
+
},
|
|
4481
|
+
{
|
|
4482
|
+
"name": "form",
|
|
4483
|
+
"type": {
|
|
4484
|
+
"text": "string | null"
|
|
4485
|
+
},
|
|
4486
|
+
"default": "null",
|
|
4487
|
+
"description": "Form `id` to associate with when input is outside form.",
|
|
4488
|
+
"fieldName": "form"
|
|
4489
|
+
},
|
|
4490
|
+
{
|
|
4491
|
+
"name": "tooltip",
|
|
4492
|
+
"type": {
|
|
4493
|
+
"text": "string"
|
|
4494
|
+
},
|
|
4495
|
+
"default": "\"\"",
|
|
4496
|
+
"description": "Tooltip text on info icon hover.",
|
|
4497
|
+
"fieldName": "tooltip"
|
|
4498
|
+
},
|
|
4499
|
+
{
|
|
4500
|
+
"name": "type",
|
|
4501
|
+
"type": {
|
|
4502
|
+
"text": "string"
|
|
4503
|
+
},
|
|
4504
|
+
"default": "\"date\"",
|
|
4505
|
+
"description": "Input type. Currently only supports `date`.",
|
|
4506
|
+
"fieldName": "type"
|
|
4507
|
+
},
|
|
4508
|
+
{
|
|
4509
|
+
"name": "label",
|
|
4510
|
+
"type": {
|
|
4511
|
+
"text": "string"
|
|
4512
|
+
},
|
|
4513
|
+
"default": "\"\"",
|
|
4514
|
+
"description": "Label text. Required for accessibility.",
|
|
4515
|
+
"fieldName": "label"
|
|
4516
|
+
},
|
|
4517
|
+
{
|
|
4518
|
+
"name": "description",
|
|
4519
|
+
"type": {
|
|
4520
|
+
"text": "string"
|
|
4521
|
+
},
|
|
4522
|
+
"default": "\"\"",
|
|
4523
|
+
"description": "Helper text below label.",
|
|
4524
|
+
"fieldName": "description"
|
|
4525
|
+
},
|
|
4526
|
+
{
|
|
4527
|
+
"name": "startDate",
|
|
4528
|
+
"type": {
|
|
4529
|
+
"text": "string"
|
|
4530
|
+
},
|
|
4531
|
+
"default": "\"\"",
|
|
4532
|
+
"description": "Initial date when calendar opens (YYYY-MM-DD).",
|
|
4533
|
+
"fieldName": "startDate"
|
|
4534
|
+
},
|
|
4535
|
+
{
|
|
4536
|
+
"name": "inverted",
|
|
4537
|
+
"type": {
|
|
4538
|
+
"text": "boolean"
|
|
4539
|
+
},
|
|
4540
|
+
"default": "false",
|
|
4541
|
+
"description": "Dark background mode.",
|
|
4542
|
+
"fieldName": "inverted"
|
|
4543
|
+
},
|
|
4544
|
+
{
|
|
4545
|
+
"name": "value",
|
|
4546
|
+
"type": {
|
|
4547
|
+
"text": "string | Date | undefined"
|
|
4548
|
+
},
|
|
4549
|
+
"default": "undefined",
|
|
4550
|
+
"description": "Selected date. Accepts Date object or ISO string (YYYY-MM-DD).",
|
|
4551
|
+
"fieldName": "value"
|
|
4552
|
+
}
|
|
4553
|
+
],
|
|
4554
|
+
"superclass": {
|
|
4555
|
+
"name": "LitElement",
|
|
4556
|
+
"package": "lit"
|
|
4557
|
+
},
|
|
4558
|
+
"tagName": "nys-datepicker",
|
|
4559
|
+
"customElement": true,
|
|
4560
|
+
"summary": "Date picker with calendar popup and native fallback."
|
|
4561
|
+
}
|
|
4562
|
+
],
|
|
4563
|
+
"exports": [
|
|
4564
|
+
{
|
|
4565
|
+
"kind": "custom-element-definition",
|
|
4566
|
+
"name": "nys-datepicker",
|
|
4567
|
+
"declaration": {
|
|
4568
|
+
"name": "NysDatepicker",
|
|
4569
|
+
"module": "packages/nys-datepicker/src/nys-datepicker.ts"
|
|
4570
|
+
}
|
|
4571
|
+
},
|
|
4572
|
+
{
|
|
4573
|
+
"kind": "js",
|
|
4574
|
+
"name": "NysDatepicker",
|
|
4575
|
+
"declaration": {
|
|
4576
|
+
"name": "NysDatepicker",
|
|
4577
|
+
"module": "packages/nys-datepicker/src/nys-datepicker.ts"
|
|
4578
|
+
}
|
|
4579
|
+
},
|
|
4580
|
+
{
|
|
4581
|
+
"kind": "custom-element-definition",
|
|
4582
|
+
"name": "wc-datepicker",
|
|
4583
|
+
"declaration": {
|
|
4584
|
+
"name": "WcDatepicker",
|
|
4585
|
+
"package": "wc-datepicker/dist/components/wc-datepicker"
|
|
4586
|
+
}
|
|
4587
|
+
}
|
|
4588
|
+
]
|
|
4589
|
+
},
|
|
4590
|
+
{
|
|
4591
|
+
"kind": "javascript-module",
|
|
4592
|
+
"path": "packages/nys-divider/src/index.ts",
|
|
4593
|
+
"declarations": [],
|
|
4594
|
+
"exports": [
|
|
4595
|
+
{
|
|
4596
|
+
"kind": "js",
|
|
4597
|
+
"name": "*",
|
|
4598
|
+
"declaration": {
|
|
4599
|
+
"name": "*",
|
|
4600
|
+
"module": "packages/nys-divider/src/nys-divider"
|
|
4601
|
+
}
|
|
4602
|
+
}
|
|
4603
|
+
]
|
|
4604
|
+
},
|
|
4605
|
+
{
|
|
4606
|
+
"kind": "javascript-module",
|
|
4607
|
+
"path": "packages/nys-divider/src/nys-divider.ts",
|
|
4608
|
+
"declarations": [
|
|
4609
|
+
{
|
|
4610
|
+
"kind": "class",
|
|
4611
|
+
"description": "A horizontal rule for visual separation between content sections. Renders a semantic `<hr>` element.\n\nUse to separate distinct content areas within a page. Set `inverted` for use on dark backgrounds.",
|
|
4612
|
+
"name": "NysDivider",
|
|
4613
|
+
"members": [
|
|
4614
|
+
{
|
|
4615
|
+
"kind": "field",
|
|
4616
|
+
"name": "inverted",
|
|
4617
|
+
"type": {
|
|
4618
|
+
"text": "boolean"
|
|
4619
|
+
},
|
|
4620
|
+
"default": "false",
|
|
4621
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
4622
|
+
"attribute": "inverted",
|
|
4623
|
+
"reflects": true
|
|
4624
|
+
},
|
|
4625
|
+
{
|
|
4626
|
+
"kind": "method",
|
|
4627
|
+
"name": "_generateUniqueId",
|
|
4628
|
+
"privacy": "private",
|
|
4629
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
4630
|
+
}
|
|
4631
|
+
],
|
|
4632
|
+
"attributes": [
|
|
4633
|
+
{
|
|
4634
|
+
"name": "inverted",
|
|
4635
|
+
"type": {
|
|
4636
|
+
"text": "boolean"
|
|
4637
|
+
},
|
|
4638
|
+
"default": "false",
|
|
4639
|
+
"description": "Adjusts colors for dark backgrounds.",
|
|
4640
|
+
"fieldName": "inverted"
|
|
4641
|
+
}
|
|
4642
|
+
],
|
|
4643
|
+
"superclass": {
|
|
4644
|
+
"name": "LitElement",
|
|
4645
|
+
"package": "lit"
|
|
4646
|
+
},
|
|
4647
|
+
"tagName": "nys-divider",
|
|
4648
|
+
"customElement": true,
|
|
4649
|
+
"summary": "Horizontal divider for visual separation of content sections."
|
|
4650
|
+
}
|
|
4651
|
+
],
|
|
4652
|
+
"exports": [
|
|
4653
|
+
{
|
|
4654
|
+
"kind": "custom-element-definition",
|
|
4655
|
+
"name": "nys-divider",
|
|
4656
|
+
"declaration": {
|
|
4657
|
+
"name": "NysDivider",
|
|
4658
|
+
"module": "packages/nys-divider/src/nys-divider.ts"
|
|
4659
|
+
}
|
|
4660
|
+
},
|
|
4661
|
+
{
|
|
4662
|
+
"kind": "js",
|
|
4663
|
+
"name": "NysDivider",
|
|
4664
|
+
"declaration": {
|
|
4665
|
+
"name": "NysDivider",
|
|
4666
|
+
"module": "packages/nys-divider/src/nys-divider.ts"
|
|
4667
|
+
}
|
|
4668
|
+
}
|
|
4669
|
+
]
|
|
4670
|
+
},
|
|
4671
|
+
{
|
|
4672
|
+
"kind": "javascript-module",
|
|
4673
|
+
"path": "packages/nys-dropdownmenu/src/index.ts",
|
|
4674
|
+
"declarations": [],
|
|
4675
|
+
"exports": [
|
|
4676
|
+
{
|
|
4677
|
+
"kind": "js",
|
|
4678
|
+
"name": "*",
|
|
4679
|
+
"declaration": {
|
|
4680
|
+
"name": "*",
|
|
4681
|
+
"module": "packages/nys-dropdownmenu/src/nys-dropdownmenu"
|
|
4682
|
+
}
|
|
4683
|
+
},
|
|
4684
|
+
{
|
|
4685
|
+
"kind": "js",
|
|
4686
|
+
"name": "*",
|
|
4687
|
+
"declaration": {
|
|
4688
|
+
"name": "*",
|
|
4689
|
+
"module": "packages/nys-dropdownmenu/src/nys-dropdownmenuitem"
|
|
3570
4690
|
}
|
|
3571
4691
|
}
|
|
3572
|
-
]
|
|
3573
|
-
},
|
|
3574
|
-
{
|
|
3575
|
-
"kind": "javascript-module",
|
|
3576
|
-
"path": "packages/nys-
|
|
3577
|
-
"declarations": [
|
|
4692
|
+
]
|
|
4693
|
+
},
|
|
4694
|
+
{
|
|
4695
|
+
"kind": "javascript-module",
|
|
4696
|
+
"path": "packages/nys-dropdownmenu/src/nys-dropdownmenu.ts",
|
|
4697
|
+
"declarations": [
|
|
4698
|
+
{
|
|
4699
|
+
"kind": "class",
|
|
4700
|
+
"description": "",
|
|
4701
|
+
"name": "NysDropdownMenu",
|
|
4702
|
+
"members": [
|
|
4703
|
+
{
|
|
4704
|
+
"kind": "field",
|
|
4705
|
+
"name": "for",
|
|
4706
|
+
"type": {
|
|
4707
|
+
"text": "string"
|
|
4708
|
+
},
|
|
4709
|
+
"default": "\"\"",
|
|
4710
|
+
"attribute": "for",
|
|
4711
|
+
"reflects": true
|
|
4712
|
+
},
|
|
4713
|
+
{
|
|
4714
|
+
"kind": "field",
|
|
4715
|
+
"name": "showDropdown",
|
|
4716
|
+
"type": {
|
|
4717
|
+
"text": "boolean"
|
|
4718
|
+
},
|
|
4719
|
+
"default": "false",
|
|
4720
|
+
"attribute": "showDropdown"
|
|
4721
|
+
},
|
|
4722
|
+
{
|
|
4723
|
+
"kind": "field",
|
|
4724
|
+
"name": "position",
|
|
4725
|
+
"type": {
|
|
4726
|
+
"text": "Position | null"
|
|
4727
|
+
},
|
|
4728
|
+
"default": "null",
|
|
4729
|
+
"description": "Preferred position relative to trigger.",
|
|
4730
|
+
"attribute": "position",
|
|
4731
|
+
"reflects": true
|
|
4732
|
+
},
|
|
4733
|
+
{
|
|
4734
|
+
"kind": "field",
|
|
4735
|
+
"name": "_trigger",
|
|
4736
|
+
"type": {
|
|
4737
|
+
"text": "HTMLElement | null"
|
|
4738
|
+
},
|
|
4739
|
+
"privacy": "private",
|
|
4740
|
+
"default": "null"
|
|
4741
|
+
},
|
|
4742
|
+
{
|
|
4743
|
+
"kind": "field",
|
|
4744
|
+
"name": "_menuElement",
|
|
4745
|
+
"type": {
|
|
4746
|
+
"text": "HTMLElement | null"
|
|
4747
|
+
},
|
|
4748
|
+
"privacy": "private",
|
|
4749
|
+
"default": "null"
|
|
4750
|
+
},
|
|
4751
|
+
{
|
|
4752
|
+
"kind": "field",
|
|
4753
|
+
"name": "_ariaTarget",
|
|
4754
|
+
"type": {
|
|
4755
|
+
"text": "HTMLElement | null"
|
|
4756
|
+
},
|
|
4757
|
+
"privacy": "private",
|
|
4758
|
+
"default": "null"
|
|
4759
|
+
},
|
|
4760
|
+
{
|
|
4761
|
+
"kind": "field",
|
|
4762
|
+
"name": "GAP",
|
|
4763
|
+
"type": {
|
|
4764
|
+
"text": "number"
|
|
4765
|
+
},
|
|
4766
|
+
"privacy": "private",
|
|
4767
|
+
"readonly": true,
|
|
4768
|
+
"default": "4"
|
|
4769
|
+
},
|
|
4770
|
+
{
|
|
4771
|
+
"kind": "method",
|
|
4772
|
+
"name": "_findTrigger",
|
|
4773
|
+
"privacy": "private",
|
|
4774
|
+
"description": "Functions\n--------------------------------------------------------------------------"
|
|
4775
|
+
},
|
|
4776
|
+
{
|
|
4777
|
+
"kind": "method",
|
|
4778
|
+
"name": "_connectTrigger",
|
|
4779
|
+
"privacy": "private"
|
|
4780
|
+
},
|
|
4781
|
+
{
|
|
4782
|
+
"kind": "field",
|
|
4783
|
+
"name": "_toggleDropdown",
|
|
4784
|
+
"privacy": "private"
|
|
4785
|
+
},
|
|
4786
|
+
{
|
|
4787
|
+
"kind": "method",
|
|
4788
|
+
"name": "_closeDropdown",
|
|
4789
|
+
"privacy": "private"
|
|
4790
|
+
},
|
|
4791
|
+
{
|
|
4792
|
+
"kind": "method",
|
|
4793
|
+
"name": "_getMenuItems",
|
|
4794
|
+
"privacy": "private",
|
|
4795
|
+
"return": {
|
|
4796
|
+
"type": {
|
|
4797
|
+
"text": "HTMLElement[]"
|
|
4798
|
+
}
|
|
4799
|
+
}
|
|
4800
|
+
},
|
|
4801
|
+
{
|
|
4802
|
+
"kind": "field",
|
|
4803
|
+
"name": "_handleDocumentClick",
|
|
4804
|
+
"privacy": "private"
|
|
4805
|
+
},
|
|
4806
|
+
{
|
|
4807
|
+
"kind": "method",
|
|
4808
|
+
"name": "_focusOnFirstItem",
|
|
4809
|
+
"privacy": "private"
|
|
4810
|
+
},
|
|
4811
|
+
{
|
|
4812
|
+
"kind": "method",
|
|
4813
|
+
"name": "applyInverseTransform",
|
|
4814
|
+
"privacy": "private"
|
|
4815
|
+
},
|
|
4816
|
+
{
|
|
4817
|
+
"kind": "method",
|
|
4818
|
+
"name": "_positionMenu",
|
|
4819
|
+
"privacy": "private",
|
|
4820
|
+
"description": "The controller function for positioning the dropdown menu.\nThe logic diverts to if user sets position or we auto position the dropdown menu"
|
|
4821
|
+
},
|
|
4822
|
+
{
|
|
4823
|
+
"kind": "method",
|
|
4824
|
+
"name": "_setUserPosition",
|
|
4825
|
+
"privacy": "private",
|
|
4826
|
+
"return": {
|
|
4827
|
+
"type": {
|
|
4828
|
+
"text": "Position"
|
|
4829
|
+
}
|
|
4830
|
+
},
|
|
4831
|
+
"parameters": [
|
|
4832
|
+
{
|
|
4833
|
+
"name": "userPosition",
|
|
4834
|
+
"type": {
|
|
4835
|
+
"text": "Position"
|
|
4836
|
+
}
|
|
4837
|
+
}
|
|
4838
|
+
]
|
|
4839
|
+
},
|
|
4840
|
+
{
|
|
4841
|
+
"kind": "method",
|
|
4842
|
+
"name": "_autoPosition",
|
|
4843
|
+
"privacy": "private",
|
|
4844
|
+
"return": {
|
|
4845
|
+
"type": {
|
|
4846
|
+
"text": "Position"
|
|
4847
|
+
}
|
|
4848
|
+
},
|
|
4849
|
+
"description": "Auto Positioning of the dropdown menu relies on the best surrounding space available\nto select the desirable position."
|
|
4850
|
+
},
|
|
4851
|
+
{
|
|
4852
|
+
"kind": "method",
|
|
4853
|
+
"name": "_checkSpaceAvailable",
|
|
4854
|
+
"privacy": "private",
|
|
4855
|
+
"return": {
|
|
4856
|
+
"type": {
|
|
4857
|
+
"text": "SpaceAvailable"
|
|
4858
|
+
}
|
|
4859
|
+
},
|
|
4860
|
+
"description": "Checks if the dropdown menu fits inside the viewport on the given side of the trigger.\nOverrides user set position for auto-positioning if user's desire space is not available"
|
|
4861
|
+
},
|
|
4862
|
+
{
|
|
4863
|
+
"kind": "method",
|
|
4864
|
+
"name": "_checkPositionFits",
|
|
4865
|
+
"privacy": "private",
|
|
4866
|
+
"return": {
|
|
4867
|
+
"type": {
|
|
4868
|
+
"text": "boolean"
|
|
4869
|
+
}
|
|
4870
|
+
},
|
|
4871
|
+
"parameters": [
|
|
4872
|
+
{
|
|
4873
|
+
"name": "position",
|
|
4874
|
+
"type": {
|
|
4875
|
+
"text": "Position"
|
|
4876
|
+
}
|
|
4877
|
+
},
|
|
4878
|
+
{
|
|
4879
|
+
"name": "space",
|
|
4880
|
+
"type": {
|
|
4881
|
+
"text": "SpaceAvailable"
|
|
4882
|
+
}
|
|
4883
|
+
},
|
|
4884
|
+
{
|
|
4885
|
+
"name": "menuRect",
|
|
4886
|
+
"type": {
|
|
4887
|
+
"text": "DOMRect"
|
|
4888
|
+
}
|
|
4889
|
+
}
|
|
4890
|
+
]
|
|
4891
|
+
},
|
|
4892
|
+
{
|
|
4893
|
+
"kind": "method",
|
|
4894
|
+
"name": "_findBestAlternative",
|
|
4895
|
+
"privacy": "private",
|
|
4896
|
+
"return": {
|
|
4897
|
+
"type": {
|
|
4898
|
+
"text": "Position"
|
|
4899
|
+
}
|
|
4900
|
+
},
|
|
4901
|
+
"parameters": [
|
|
4902
|
+
{
|
|
4903
|
+
"name": "userPosition",
|
|
4904
|
+
"type": {
|
|
4905
|
+
"text": "Position"
|
|
4906
|
+
}
|
|
4907
|
+
},
|
|
4908
|
+
{
|
|
4909
|
+
"name": "space",
|
|
4910
|
+
"type": {
|
|
4911
|
+
"text": "SpaceAvailable"
|
|
4912
|
+
}
|
|
4913
|
+
},
|
|
4914
|
+
{
|
|
4915
|
+
"name": "menuRect",
|
|
4916
|
+
"type": {
|
|
4917
|
+
"text": "DOMRect"
|
|
4918
|
+
}
|
|
4919
|
+
}
|
|
4920
|
+
],
|
|
4921
|
+
"description": "This position is called for when user's set position didn't fit OR auto positioning when default position doesn't fit\nWe look for the best alternative positions in order of preference base on the set position (e.g. bottom-start => bottom-end)."
|
|
4922
|
+
},
|
|
4923
|
+
{
|
|
4924
|
+
"kind": "method",
|
|
4925
|
+
"name": "_findMostAvailableSpace",
|
|
4926
|
+
"privacy": "private",
|
|
4927
|
+
"return": {
|
|
4928
|
+
"type": {
|
|
4929
|
+
"text": "Position"
|
|
4930
|
+
}
|
|
4931
|
+
},
|
|
4932
|
+
"parameters": [
|
|
4933
|
+
{
|
|
4934
|
+
"name": "space",
|
|
4935
|
+
"type": {
|
|
4936
|
+
"text": "SpaceAvailable"
|
|
4937
|
+
}
|
|
4938
|
+
}
|
|
4939
|
+
]
|
|
4940
|
+
},
|
|
4941
|
+
{
|
|
4942
|
+
"kind": "method",
|
|
4943
|
+
"name": "_calculateCoordinates",
|
|
4944
|
+
"privacy": "private",
|
|
4945
|
+
"return": {
|
|
4946
|
+
"type": {
|
|
4947
|
+
"text": ""
|
|
4948
|
+
}
|
|
4949
|
+
},
|
|
4950
|
+
"parameters": [
|
|
4951
|
+
{
|
|
4952
|
+
"name": "position",
|
|
4953
|
+
"type": {
|
|
4954
|
+
"text": "Position"
|
|
4955
|
+
}
|
|
4956
|
+
}
|
|
4957
|
+
],
|
|
4958
|
+
"description": "A valid ideal position has been chosen.\nThis function calculates the coordinate of the trigger to properly position the dropdown menu."
|
|
4959
|
+
},
|
|
4960
|
+
{
|
|
4961
|
+
"kind": "method",
|
|
4962
|
+
"name": "_applyPosition",
|
|
4963
|
+
"privacy": "private",
|
|
4964
|
+
"parameters": [
|
|
4965
|
+
{
|
|
4966
|
+
"name": "coords",
|
|
4967
|
+
"type": {
|
|
4968
|
+
"text": "PositionCoordinates"
|
|
4969
|
+
}
|
|
4970
|
+
}
|
|
4971
|
+
]
|
|
4972
|
+
},
|
|
4973
|
+
{
|
|
4974
|
+
"kind": "field",
|
|
4975
|
+
"name": "_handleTriggerKeydown",
|
|
4976
|
+
"privacy": "private",
|
|
4977
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
4978
|
+
},
|
|
4979
|
+
{
|
|
4980
|
+
"kind": "field",
|
|
4981
|
+
"name": "_handleMenuKeydown",
|
|
4982
|
+
"privacy": "private"
|
|
4983
|
+
},
|
|
4984
|
+
{
|
|
4985
|
+
"kind": "field",
|
|
4986
|
+
"name": "_handleWindowResize",
|
|
4987
|
+
"privacy": "private"
|
|
4988
|
+
},
|
|
4989
|
+
{
|
|
4990
|
+
"kind": "field",
|
|
4991
|
+
"name": "_handleWindowScroll",
|
|
4992
|
+
"privacy": "private"
|
|
4993
|
+
}
|
|
4994
|
+
],
|
|
4995
|
+
"attributes": [
|
|
4996
|
+
{
|
|
4997
|
+
"name": "for",
|
|
4998
|
+
"type": {
|
|
4999
|
+
"text": "string"
|
|
5000
|
+
},
|
|
5001
|
+
"default": "\"\"",
|
|
5002
|
+
"fieldName": "for"
|
|
5003
|
+
},
|
|
5004
|
+
{
|
|
5005
|
+
"name": "showDropdown",
|
|
5006
|
+
"type": {
|
|
5007
|
+
"text": "boolean"
|
|
5008
|
+
},
|
|
5009
|
+
"default": "false",
|
|
5010
|
+
"fieldName": "showDropdown"
|
|
5011
|
+
},
|
|
5012
|
+
{
|
|
5013
|
+
"name": "position",
|
|
5014
|
+
"type": {
|
|
5015
|
+
"text": "Position | null"
|
|
5016
|
+
},
|
|
5017
|
+
"default": "null",
|
|
5018
|
+
"description": "Preferred position relative to trigger.",
|
|
5019
|
+
"fieldName": "position"
|
|
5020
|
+
}
|
|
5021
|
+
],
|
|
5022
|
+
"superclass": {
|
|
5023
|
+
"name": "LitElement",
|
|
5024
|
+
"package": "lit"
|
|
5025
|
+
},
|
|
5026
|
+
"tagName": "nys-dropdownmenu",
|
|
5027
|
+
"customElement": true
|
|
5028
|
+
}
|
|
5029
|
+
],
|
|
3578
5030
|
"exports": [
|
|
5031
|
+
{
|
|
5032
|
+
"kind": "custom-element-definition",
|
|
5033
|
+
"name": "nys-dropdownmenu",
|
|
5034
|
+
"declaration": {
|
|
5035
|
+
"name": "NysDropdownMenu",
|
|
5036
|
+
"module": "packages/nys-dropdownmenu/src/nys-dropdownmenu.ts"
|
|
5037
|
+
}
|
|
5038
|
+
},
|
|
3579
5039
|
{
|
|
3580
5040
|
"kind": "js",
|
|
3581
|
-
"name": "
|
|
5041
|
+
"name": "NysDropdownMenu",
|
|
3582
5042
|
"declaration": {
|
|
3583
|
-
"name": "
|
|
3584
|
-
"module": "packages/nys-
|
|
5043
|
+
"name": "NysDropdownMenu",
|
|
5044
|
+
"module": "packages/nys-dropdownmenu/src/nys-dropdownmenu.ts"
|
|
3585
5045
|
}
|
|
3586
5046
|
}
|
|
3587
5047
|
]
|
|
3588
5048
|
},
|
|
3589
5049
|
{
|
|
3590
5050
|
"kind": "javascript-module",
|
|
3591
|
-
"path": "packages/nys-
|
|
5051
|
+
"path": "packages/nys-dropdownmenu/src/nys-dropdownmenuitem.ts",
|
|
3592
5052
|
"declarations": [
|
|
3593
5053
|
{
|
|
3594
5054
|
"kind": "class",
|
|
3595
|
-
"description": "
|
|
3596
|
-
"name": "
|
|
5055
|
+
"description": "**Slotted component.** Displays an individual dropdown item within `nys-dropdown` with label.\n\nThe `nys-dropdownitem` is used as customizable item within the dropdown so users don't have to raw code <ul>, <li>, <a href>\nand have the benefit of default customization.",
|
|
5056
|
+
"name": "NysDropdownMenuItem",
|
|
3597
5057
|
"members": [
|
|
3598
5058
|
{
|
|
3599
|
-
"kind": "field",
|
|
3600
|
-
"name": "
|
|
5059
|
+
"kind": "field",
|
|
5060
|
+
"name": "shadowRootOptions",
|
|
5061
|
+
"type": {
|
|
5062
|
+
"text": "object"
|
|
5063
|
+
},
|
|
5064
|
+
"static": true,
|
|
5065
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
5066
|
+
},
|
|
5067
|
+
{
|
|
5068
|
+
"kind": "field",
|
|
5069
|
+
"name": "label",
|
|
5070
|
+
"type": {
|
|
5071
|
+
"text": "string"
|
|
5072
|
+
},
|
|
5073
|
+
"default": "\"\"",
|
|
5074
|
+
"attribute": "label"
|
|
5075
|
+
},
|
|
5076
|
+
{
|
|
5077
|
+
"kind": "field",
|
|
5078
|
+
"name": "href",
|
|
5079
|
+
"type": {
|
|
5080
|
+
"text": "string"
|
|
5081
|
+
},
|
|
5082
|
+
"default": "\"\"",
|
|
5083
|
+
"attribute": "href"
|
|
5084
|
+
},
|
|
5085
|
+
{
|
|
5086
|
+
"kind": "field",
|
|
5087
|
+
"name": "disabled",
|
|
5088
|
+
"type": {
|
|
5089
|
+
"text": "boolean"
|
|
5090
|
+
},
|
|
5091
|
+
"default": "false",
|
|
5092
|
+
"attribute": "disabled",
|
|
5093
|
+
"reflects": true
|
|
5094
|
+
},
|
|
5095
|
+
{
|
|
5096
|
+
"kind": "field",
|
|
5097
|
+
"name": "target",
|
|
5098
|
+
"type": {
|
|
5099
|
+
"text": "string"
|
|
5100
|
+
},
|
|
5101
|
+
"default": "\"_self\"",
|
|
5102
|
+
"attribute": "target"
|
|
5103
|
+
},
|
|
5104
|
+
{
|
|
5105
|
+
"kind": "field",
|
|
5106
|
+
"name": "prefixIcon",
|
|
5107
|
+
"type": {
|
|
5108
|
+
"text": "string"
|
|
5109
|
+
},
|
|
5110
|
+
"default": "\"\"",
|
|
5111
|
+
"attribute": "prefixIcon"
|
|
5112
|
+
},
|
|
5113
|
+
{
|
|
5114
|
+
"kind": "field",
|
|
5115
|
+
"name": "divider",
|
|
5116
|
+
"type": {
|
|
5117
|
+
"text": "string"
|
|
5118
|
+
},
|
|
5119
|
+
"default": "\"\"",
|
|
5120
|
+
"attribute": "divider"
|
|
5121
|
+
},
|
|
5122
|
+
{
|
|
5123
|
+
"kind": "method",
|
|
5124
|
+
"name": "_handleClick",
|
|
5125
|
+
"privacy": "private",
|
|
5126
|
+
"parameters": [
|
|
5127
|
+
{
|
|
5128
|
+
"name": "e",
|
|
5129
|
+
"type": {
|
|
5130
|
+
"text": "Event"
|
|
5131
|
+
}
|
|
5132
|
+
}
|
|
5133
|
+
]
|
|
5134
|
+
}
|
|
5135
|
+
],
|
|
5136
|
+
"events": [
|
|
5137
|
+
{
|
|
5138
|
+
"name": "nys-click",
|
|
5139
|
+
"type": {
|
|
5140
|
+
"text": "CustomEvent"
|
|
5141
|
+
}
|
|
5142
|
+
}
|
|
5143
|
+
],
|
|
5144
|
+
"attributes": [
|
|
5145
|
+
{
|
|
5146
|
+
"name": "label",
|
|
5147
|
+
"type": {
|
|
5148
|
+
"text": "string"
|
|
5149
|
+
},
|
|
5150
|
+
"default": "\"\"",
|
|
5151
|
+
"fieldName": "label"
|
|
5152
|
+
},
|
|
5153
|
+
{
|
|
5154
|
+
"name": "href",
|
|
5155
|
+
"type": {
|
|
5156
|
+
"text": "string"
|
|
5157
|
+
},
|
|
5158
|
+
"default": "\"\"",
|
|
5159
|
+
"fieldName": "href"
|
|
5160
|
+
},
|
|
5161
|
+
{
|
|
5162
|
+
"name": "disabled",
|
|
3601
5163
|
"type": {
|
|
3602
5164
|
"text": "boolean"
|
|
3603
5165
|
},
|
|
3604
5166
|
"default": "false",
|
|
3605
|
-
"
|
|
3606
|
-
"attribute": "inverted",
|
|
3607
|
-
"reflects": true
|
|
5167
|
+
"fieldName": "disabled"
|
|
3608
5168
|
},
|
|
3609
5169
|
{
|
|
3610
|
-
"
|
|
3611
|
-
"
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
5170
|
+
"name": "target",
|
|
5171
|
+
"type": {
|
|
5172
|
+
"text": "string"
|
|
5173
|
+
},
|
|
5174
|
+
"default": "\"_self\"",
|
|
5175
|
+
"fieldName": "target"
|
|
5176
|
+
},
|
|
3617
5177
|
{
|
|
3618
|
-
"name": "
|
|
5178
|
+
"name": "prefixIcon",
|
|
3619
5179
|
"type": {
|
|
3620
|
-
"text": "
|
|
5180
|
+
"text": "string"
|
|
3621
5181
|
},
|
|
3622
|
-
"default": "
|
|
3623
|
-
"
|
|
3624
|
-
|
|
5182
|
+
"default": "\"\"",
|
|
5183
|
+
"fieldName": "prefixIcon"
|
|
5184
|
+
},
|
|
5185
|
+
{
|
|
5186
|
+
"name": "divider",
|
|
5187
|
+
"type": {
|
|
5188
|
+
"text": "string"
|
|
5189
|
+
},
|
|
5190
|
+
"default": "\"\"",
|
|
5191
|
+
"fieldName": "divider"
|
|
3625
5192
|
}
|
|
3626
5193
|
],
|
|
3627
5194
|
"superclass": {
|
|
3628
5195
|
"name": "LitElement",
|
|
3629
5196
|
"package": "lit"
|
|
3630
5197
|
},
|
|
3631
|
-
"tagName": "nys-
|
|
5198
|
+
"tagName": "nys-dropdownmenuitem",
|
|
3632
5199
|
"customElement": true,
|
|
3633
|
-
"summary": "
|
|
5200
|
+
"summary": "Dropdown item to display label and provide href link."
|
|
3634
5201
|
}
|
|
3635
5202
|
],
|
|
3636
5203
|
"exports": [
|
|
3637
5204
|
{
|
|
3638
5205
|
"kind": "custom-element-definition",
|
|
3639
|
-
"name": "nys-
|
|
5206
|
+
"name": "nys-dropdownmenuitem",
|
|
3640
5207
|
"declaration": {
|
|
3641
|
-
"name": "
|
|
3642
|
-
"module": "packages/nys-
|
|
5208
|
+
"name": "NysDropdownMenuItem",
|
|
5209
|
+
"module": "packages/nys-dropdownmenu/src/nys-dropdownmenuitem.ts"
|
|
3643
5210
|
}
|
|
3644
5211
|
},
|
|
3645
5212
|
{
|
|
3646
5213
|
"kind": "js",
|
|
3647
|
-
"name": "
|
|
5214
|
+
"name": "NysDropdownMenuItem",
|
|
3648
5215
|
"declaration": {
|
|
3649
|
-
"name": "
|
|
3650
|
-
"module": "packages/nys-
|
|
5216
|
+
"name": "NysDropdownMenuItem",
|
|
5217
|
+
"module": "packages/nys-dropdownmenu/src/nys-dropdownmenuitem.ts"
|
|
3651
5218
|
}
|
|
3652
5219
|
}
|
|
3653
5220
|
]
|
|
@@ -3813,6 +5380,15 @@
|
|
|
3813
5380
|
}
|
|
3814
5381
|
],
|
|
3815
5382
|
"members": [
|
|
5383
|
+
{
|
|
5384
|
+
"kind": "field",
|
|
5385
|
+
"name": "shadowRootOptions",
|
|
5386
|
+
"type": {
|
|
5387
|
+
"text": "object"
|
|
5388
|
+
},
|
|
5389
|
+
"static": true,
|
|
5390
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
5391
|
+
},
|
|
3816
5392
|
{
|
|
3817
5393
|
"kind": "field",
|
|
3818
5394
|
"name": "id",
|
|
@@ -4417,6 +5993,15 @@
|
|
|
4417
5993
|
"description": "**Internal component.** Displays an individual file within `nys-fileinput` with status and progress.\n\nRendered automatically by `nys-fileinput` for each selected file. Shows filename, upload status\n(pending/processing/done/error), progress bar during upload, and error messages. Remove button emits event.",
|
|
4418
5994
|
"name": "NysFileItem",
|
|
4419
5995
|
"members": [
|
|
5996
|
+
{
|
|
5997
|
+
"kind": "field",
|
|
5998
|
+
"name": "shadowRootOptions",
|
|
5999
|
+
"type": {
|
|
6000
|
+
"text": "object"
|
|
6001
|
+
},
|
|
6002
|
+
"static": true,
|
|
6003
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
6004
|
+
},
|
|
4420
6005
|
{
|
|
4421
6006
|
"kind": "field",
|
|
4422
6007
|
"name": "filename",
|
|
@@ -5163,6 +6748,20 @@
|
|
|
5163
6748
|
},
|
|
5164
6749
|
"privacy": "private",
|
|
5165
6750
|
"default": "\"\""
|
|
6751
|
+
},
|
|
6752
|
+
{
|
|
6753
|
+
"kind": "method",
|
|
6754
|
+
"name": "_handleLabelClick",
|
|
6755
|
+
"privacy": "private",
|
|
6756
|
+
"parameters": [
|
|
6757
|
+
{
|
|
6758
|
+
"name": "event",
|
|
6759
|
+
"type": {
|
|
6760
|
+
"text": "Event"
|
|
6761
|
+
}
|
|
6762
|
+
}
|
|
6763
|
+
],
|
|
6764
|
+
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
5166
6765
|
}
|
|
5167
6766
|
],
|
|
5168
6767
|
"attributes": [
|
|
@@ -5810,6 +7409,15 @@
|
|
|
5810
7409
|
}
|
|
5811
7410
|
],
|
|
5812
7411
|
"members": [
|
|
7412
|
+
{
|
|
7413
|
+
"kind": "field",
|
|
7414
|
+
"name": "shadowRootOptions",
|
|
7415
|
+
"type": {
|
|
7416
|
+
"text": "object"
|
|
7417
|
+
},
|
|
7418
|
+
"static": true,
|
|
7419
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
7420
|
+
},
|
|
5813
7421
|
{
|
|
5814
7422
|
"kind": "field",
|
|
5815
7423
|
"name": "checked",
|
|
@@ -5939,6 +7547,39 @@
|
|
|
5939
7547
|
"attribute": "tile",
|
|
5940
7548
|
"reflects": true
|
|
5941
7549
|
},
|
|
7550
|
+
{
|
|
7551
|
+
"kind": "field",
|
|
7552
|
+
"name": "other",
|
|
7553
|
+
"type": {
|
|
7554
|
+
"text": "boolean"
|
|
7555
|
+
},
|
|
7556
|
+
"default": "false",
|
|
7557
|
+
"attribute": "other",
|
|
7558
|
+
"reflects": true
|
|
7559
|
+
},
|
|
7560
|
+
{
|
|
7561
|
+
"kind": "field",
|
|
7562
|
+
"name": "showOtherError",
|
|
7563
|
+
"type": {
|
|
7564
|
+
"text": "boolean"
|
|
7565
|
+
},
|
|
7566
|
+
"default": "false",
|
|
7567
|
+
"attribute": "showOtherError"
|
|
7568
|
+
},
|
|
7569
|
+
{
|
|
7570
|
+
"kind": "field",
|
|
7571
|
+
"name": "isMobile",
|
|
7572
|
+
"privacy": "private"
|
|
7573
|
+
},
|
|
7574
|
+
{
|
|
7575
|
+
"kind": "field",
|
|
7576
|
+
"name": "_hasUserInteracted",
|
|
7577
|
+
"type": {
|
|
7578
|
+
"text": "boolean"
|
|
7579
|
+
},
|
|
7580
|
+
"privacy": "private",
|
|
7581
|
+
"default": "false"
|
|
7582
|
+
},
|
|
5942
7583
|
{
|
|
5943
7584
|
"kind": "field",
|
|
5944
7585
|
"name": "buttonGroup",
|
|
@@ -5964,12 +7605,27 @@
|
|
|
5964
7605
|
"name": "formResetUpdate",
|
|
5965
7606
|
"privacy": "public"
|
|
5966
7607
|
},
|
|
7608
|
+
{
|
|
7609
|
+
"kind": "field",
|
|
7610
|
+
"name": "_handleResize",
|
|
7611
|
+
"privacy": "private"
|
|
7612
|
+
},
|
|
7613
|
+
{
|
|
7614
|
+
"kind": "method",
|
|
7615
|
+
"name": "_clearOtherState",
|
|
7616
|
+
"privacy": "private"
|
|
7617
|
+
},
|
|
5967
7618
|
{
|
|
5968
7619
|
"kind": "method",
|
|
5969
7620
|
"name": "_emitChangeEvent",
|
|
5970
7621
|
"privacy": "private",
|
|
5971
7622
|
"description": "Event Handlers\n--------------------------------------------------------------------------"
|
|
5972
7623
|
},
|
|
7624
|
+
{
|
|
7625
|
+
"kind": "method",
|
|
7626
|
+
"name": "_emitOtherInputEvent",
|
|
7627
|
+
"privacy": "private"
|
|
7628
|
+
},
|
|
5973
7629
|
{
|
|
5974
7630
|
"kind": "method",
|
|
5975
7631
|
"name": "_handleChange",
|
|
@@ -5989,9 +7645,51 @@
|
|
|
5989
7645
|
"kind": "method",
|
|
5990
7646
|
"name": "_callInputHandling",
|
|
5991
7647
|
"privacy": "private"
|
|
7648
|
+
},
|
|
7649
|
+
{
|
|
7650
|
+
"kind": "method",
|
|
7651
|
+
"name": "_handleTextInput",
|
|
7652
|
+
"privacy": "private",
|
|
7653
|
+
"parameters": [
|
|
7654
|
+
{
|
|
7655
|
+
"name": "event",
|
|
7656
|
+
"type": {
|
|
7657
|
+
"text": "Event"
|
|
7658
|
+
}
|
|
7659
|
+
}
|
|
7660
|
+
]
|
|
7661
|
+
},
|
|
7662
|
+
{
|
|
7663
|
+
"kind": "method",
|
|
7664
|
+
"name": "_handleTextInputBlur",
|
|
7665
|
+
"privacy": "private"
|
|
7666
|
+
},
|
|
7667
|
+
{
|
|
7668
|
+
"kind": "method",
|
|
7669
|
+
"name": "_validateOtherAndEmitError",
|
|
7670
|
+
"privacy": "private"
|
|
7671
|
+
},
|
|
7672
|
+
{
|
|
7673
|
+
"kind": "method",
|
|
7674
|
+
"name": "_handleOtherKeydown",
|
|
7675
|
+
"privacy": "private",
|
|
7676
|
+
"parameters": [
|
|
7677
|
+
{
|
|
7678
|
+
"name": "e",
|
|
7679
|
+
"type": {
|
|
7680
|
+
"text": "KeyboardEvent"
|
|
7681
|
+
}
|
|
7682
|
+
}
|
|
7683
|
+
]
|
|
5992
7684
|
}
|
|
5993
7685
|
],
|
|
5994
7686
|
"events": [
|
|
7687
|
+
{
|
|
7688
|
+
"name": "nys-error-clear",
|
|
7689
|
+
"type": {
|
|
7690
|
+
"text": "CustomEvent"
|
|
7691
|
+
}
|
|
7692
|
+
},
|
|
5995
7693
|
{
|
|
5996
7694
|
"name": "nys-change",
|
|
5997
7695
|
"type": {
|
|
@@ -5999,6 +7697,13 @@
|
|
|
5999
7697
|
},
|
|
6000
7698
|
"description": "Fired when selection changes. Detail: `{id, checked, name, value}`."
|
|
6001
7699
|
},
|
|
7700
|
+
{
|
|
7701
|
+
"name": "nys-other-input",
|
|
7702
|
+
"type": {
|
|
7703
|
+
"text": "CustomEvent"
|
|
7704
|
+
},
|
|
7705
|
+
"description": "Fired when \"other\" text input value changes. Detail: `{id, name, value}`."
|
|
7706
|
+
},
|
|
6002
7707
|
{
|
|
6003
7708
|
"name": "nys-focus",
|
|
6004
7709
|
"type": {
|
|
@@ -6012,6 +7717,12 @@
|
|
|
6012
7717
|
"text": "Event"
|
|
6013
7718
|
},
|
|
6014
7719
|
"description": "Fired when radio loses focus."
|
|
7720
|
+
},
|
|
7721
|
+
{
|
|
7722
|
+
"name": "nys-error",
|
|
7723
|
+
"type": {
|
|
7724
|
+
"text": "CustomEvent"
|
|
7725
|
+
}
|
|
6015
7726
|
}
|
|
6016
7727
|
],
|
|
6017
7728
|
"attributes": [
|
|
@@ -6122,6 +7833,22 @@
|
|
|
6122
7833
|
"default": "false",
|
|
6123
7834
|
"description": "Renders as tile with larger clickable area.",
|
|
6124
7835
|
"fieldName": "tile"
|
|
7836
|
+
},
|
|
7837
|
+
{
|
|
7838
|
+
"name": "other",
|
|
7839
|
+
"type": {
|
|
7840
|
+
"text": "boolean"
|
|
7841
|
+
},
|
|
7842
|
+
"default": "false",
|
|
7843
|
+
"fieldName": "other"
|
|
7844
|
+
},
|
|
7845
|
+
{
|
|
7846
|
+
"name": "showOtherError",
|
|
7847
|
+
"type": {
|
|
7848
|
+
"text": "boolean"
|
|
7849
|
+
},
|
|
7850
|
+
"default": "false",
|
|
7851
|
+
"fieldName": "showOtherError"
|
|
6125
7852
|
}
|
|
6126
7853
|
],
|
|
6127
7854
|
"superclass": {
|
|
@@ -6171,6 +7898,15 @@
|
|
|
6171
7898
|
}
|
|
6172
7899
|
],
|
|
6173
7900
|
"members": [
|
|
7901
|
+
{
|
|
7902
|
+
"kind": "field",
|
|
7903
|
+
"name": "shadowRootOptions",
|
|
7904
|
+
"type": {
|
|
7905
|
+
"text": "object"
|
|
7906
|
+
},
|
|
7907
|
+
"static": true,
|
|
7908
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
7909
|
+
},
|
|
6174
7910
|
{
|
|
6175
7911
|
"kind": "field",
|
|
6176
7912
|
"name": "id",
|
|
@@ -6461,6 +8197,19 @@
|
|
|
6461
8197
|
}
|
|
6462
8198
|
}
|
|
6463
8199
|
]
|
|
8200
|
+
},
|
|
8201
|
+
{
|
|
8202
|
+
"kind": "method",
|
|
8203
|
+
"name": "_handleChildError",
|
|
8204
|
+
"privacy": "private",
|
|
8205
|
+
"parameters": [
|
|
8206
|
+
{
|
|
8207
|
+
"name": "event",
|
|
8208
|
+
"type": {
|
|
8209
|
+
"text": "Event"
|
|
8210
|
+
}
|
|
8211
|
+
}
|
|
8212
|
+
]
|
|
6464
8213
|
}
|
|
6465
8214
|
],
|
|
6466
8215
|
"attributes": [
|
|
@@ -6796,6 +8545,15 @@
|
|
|
6796
8545
|
}
|
|
6797
8546
|
],
|
|
6798
8547
|
"members": [
|
|
8548
|
+
{
|
|
8549
|
+
"kind": "field",
|
|
8550
|
+
"name": "shadowRootOptions",
|
|
8551
|
+
"type": {
|
|
8552
|
+
"text": "object"
|
|
8553
|
+
},
|
|
8554
|
+
"static": true,
|
|
8555
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
8556
|
+
},
|
|
6799
8557
|
{
|
|
6800
8558
|
"kind": "field",
|
|
6801
8559
|
"name": "id",
|
|
@@ -8109,6 +9867,15 @@
|
|
|
8109
9867
|
}
|
|
8110
9868
|
],
|
|
8111
9869
|
"members": [
|
|
9870
|
+
{
|
|
9871
|
+
"kind": "field",
|
|
9872
|
+
"name": "shadowRootOptions",
|
|
9873
|
+
"type": {
|
|
9874
|
+
"text": "object"
|
|
9875
|
+
},
|
|
9876
|
+
"static": true,
|
|
9877
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
9878
|
+
},
|
|
8112
9879
|
{
|
|
8113
9880
|
"kind": "field",
|
|
8114
9881
|
"name": "id",
|
|
@@ -8721,6 +10488,15 @@
|
|
|
8721
10488
|
}
|
|
8722
10489
|
],
|
|
8723
10490
|
"members": [
|
|
10491
|
+
{
|
|
10492
|
+
"kind": "field",
|
|
10493
|
+
"name": "shadowRootOptions",
|
|
10494
|
+
"type": {
|
|
10495
|
+
"text": "object"
|
|
10496
|
+
},
|
|
10497
|
+
"static": true,
|
|
10498
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
10499
|
+
},
|
|
8724
10500
|
{
|
|
8725
10501
|
"kind": "field",
|
|
8726
10502
|
"name": "id",
|
|
@@ -8879,6 +10655,16 @@
|
|
|
8879
10655
|
"description": "Maximum character length.",
|
|
8880
10656
|
"attribute": "maxlength"
|
|
8881
10657
|
},
|
|
10658
|
+
{
|
|
10659
|
+
"kind": "field",
|
|
10660
|
+
"name": "ariaLabel",
|
|
10661
|
+
"type": {
|
|
10662
|
+
"text": "string"
|
|
10663
|
+
},
|
|
10664
|
+
"default": "\"\"",
|
|
10665
|
+
"description": "Accessible label. When set, assuming \"label\" isn't provided for private special cases (i.e., <checkbox other>).",
|
|
10666
|
+
"attribute": "ariaLabel"
|
|
10667
|
+
},
|
|
8882
10668
|
{
|
|
8883
10669
|
"kind": "field",
|
|
8884
10670
|
"name": "width",
|
|
@@ -9309,6 +11095,15 @@
|
|
|
9309
11095
|
"description": "Maximum character length.",
|
|
9310
11096
|
"fieldName": "maxlength"
|
|
9311
11097
|
},
|
|
11098
|
+
{
|
|
11099
|
+
"name": "ariaLabel",
|
|
11100
|
+
"type": {
|
|
11101
|
+
"text": "string"
|
|
11102
|
+
},
|
|
11103
|
+
"default": "\"\"",
|
|
11104
|
+
"description": "Accessible label. When set, assuming \"label\" isn't provided for private special cases (i.e., <checkbox other>).",
|
|
11105
|
+
"fieldName": "ariaLabel"
|
|
11106
|
+
},
|
|
9312
11107
|
{
|
|
9313
11108
|
"name": "width",
|
|
9314
11109
|
"type": {
|
|
@@ -9431,6 +11226,15 @@
|
|
|
9431
11226
|
}
|
|
9432
11227
|
],
|
|
9433
11228
|
"members": [
|
|
11229
|
+
{
|
|
11230
|
+
"kind": "field",
|
|
11231
|
+
"name": "shadowRootOptions",
|
|
11232
|
+
"type": {
|
|
11233
|
+
"text": "object"
|
|
11234
|
+
},
|
|
11235
|
+
"static": true,
|
|
11236
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true, }"
|
|
11237
|
+
},
|
|
9434
11238
|
{
|
|
9435
11239
|
"kind": "field",
|
|
9436
11240
|
"name": "id",
|
|
@@ -9589,7 +11393,12 @@
|
|
|
9589
11393
|
},
|
|
9590
11394
|
{
|
|
9591
11395
|
"kind": "method",
|
|
9592
|
-
"name": "
|
|
11396
|
+
"name": "_handleClick",
|
|
11397
|
+
"privacy": "private"
|
|
11398
|
+
},
|
|
11399
|
+
{
|
|
11400
|
+
"kind": "method",
|
|
11401
|
+
"name": "_handleSliderClick",
|
|
9593
11402
|
"privacy": "private",
|
|
9594
11403
|
"parameters": [
|
|
9595
11404
|
{
|
|
@@ -10240,7 +12049,7 @@
|
|
|
10240
12049
|
"declarations": [
|
|
10241
12050
|
{
|
|
10242
12051
|
"kind": "class",
|
|
10243
|
-
"description": "
|
|
12052
|
+
"description": "",
|
|
10244
12053
|
"name": "NysUnavHeader",
|
|
10245
12054
|
"members": [
|
|
10246
12055
|
{
|
|
@@ -10310,16 +12119,17 @@
|
|
|
10310
12119
|
"text": "string"
|
|
10311
12120
|
},
|
|
10312
12121
|
"default": "\"\"",
|
|
12122
|
+
"description": "The URL endpoint of the search, make sure to include the query param.",
|
|
10313
12123
|
"attribute": "searchUrl"
|
|
10314
12124
|
},
|
|
10315
12125
|
{
|
|
10316
12126
|
"kind": "field",
|
|
10317
12127
|
"name": "languages",
|
|
10318
12128
|
"type": {
|
|
10319
|
-
"text": "[
|
|
12129
|
+
"text": "Language[]"
|
|
10320
12130
|
},
|
|
10321
|
-
"
|
|
10322
|
-
"
|
|
12131
|
+
"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: \"اردو\" }, ]",
|
|
12132
|
+
"description": "The list of languages this site can be translated to, default to use Smartling",
|
|
10323
12133
|
"attribute": "languages"
|
|
10324
12134
|
},
|
|
10325
12135
|
{
|
|
@@ -10352,6 +12162,19 @@
|
|
|
10352
12162
|
"name": "_toggleSearchDropdown",
|
|
10353
12163
|
"privacy": "private"
|
|
10354
12164
|
},
|
|
12165
|
+
{
|
|
12166
|
+
"kind": "method",
|
|
12167
|
+
"name": "_handleLanguageSelect",
|
|
12168
|
+
"privacy": "private",
|
|
12169
|
+
"parameters": [
|
|
12170
|
+
{
|
|
12171
|
+
"name": "language",
|
|
12172
|
+
"type": {
|
|
12173
|
+
"text": "Language"
|
|
12174
|
+
}
|
|
12175
|
+
}
|
|
12176
|
+
]
|
|
12177
|
+
},
|
|
10355
12178
|
{
|
|
10356
12179
|
"kind": "method",
|
|
10357
12180
|
"name": "_handleSearchFocus",
|
|
@@ -10463,14 +12286,16 @@
|
|
|
10463
12286
|
"text": "string"
|
|
10464
12287
|
},
|
|
10465
12288
|
"default": "\"\"",
|
|
12289
|
+
"description": "The URL endpoint of the search, make sure to include the query param.",
|
|
10466
12290
|
"fieldName": "searchUrl"
|
|
10467
12291
|
},
|
|
10468
12292
|
{
|
|
10469
12293
|
"name": "languages",
|
|
10470
12294
|
"type": {
|
|
10471
|
-
"text": "[
|
|
12295
|
+
"text": "Language[]"
|
|
10472
12296
|
},
|
|
10473
|
-
"default": "[
|
|
12297
|
+
"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: \"اردو\" }, ]",
|
|
12298
|
+
"description": "The list of languages this site can be translated to, default to use Smartling",
|
|
10474
12299
|
"fieldName": "languages"
|
|
10475
12300
|
}
|
|
10476
12301
|
],
|
|
@@ -10479,8 +12304,7 @@
|
|
|
10479
12304
|
"package": "lit"
|
|
10480
12305
|
},
|
|
10481
12306
|
"tagName": "nys-unavheader",
|
|
10482
|
-
"customElement": true
|
|
10483
|
-
"summary": "Universal NYS header with trust bar, search, and translation. Required site-wide."
|
|
12307
|
+
"customElement": true
|
|
10484
12308
|
}
|
|
10485
12309
|
],
|
|
10486
12310
|
"exports": [
|