@nldd/design-system 0.10.0 → 0.11.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 +739 -6
- package/dist/components/actions/button/button.d.ts +10 -0
- package/dist/components/actions/button/button.d.ts.map +1 -1
- package/dist/components/actions/button/button.js +23 -0
- package/dist/components/actions/button/button.js.map +1 -1
- package/dist/components/actions/button/button.styles.d.ts.map +1 -1
- package/dist/components/actions/button/button.styles.js +22 -0
- package/dist/components/actions/button/button.styles.js.map +1 -1
- package/dist/components/actions/button/button.template.d.ts +1 -0
- package/dist/components/actions/button/button.template.d.ts.map +1 -1
- package/dist/components/actions/button/button.template.js +20 -2
- package/dist/components/actions/button/button.template.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.d.ts +10 -0
- package/dist/components/actions/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.js +23 -0
- package/dist/components/actions/icon-button/icon-button.js.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.d.ts.map +1 -1
- package/dist/components/actions/icon-button/icon-button.template.js +10 -3
- package/dist/components/actions/icon-button/icon-button.template.js.map +1 -1
- package/dist/components/actions/menu/menu.styles.js +1 -1
- package/dist/components/actions/split-button/split-button.d.ts +8 -0
- package/dist/components/actions/split-button/split-button.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.js +20 -0
- package/dist/components/actions/split-button/split-button.js.map +1 -1
- package/dist/components/actions/split-button/split-button.template.d.ts.map +1 -1
- package/dist/components/actions/split-button/split-button.template.js +4 -0
- package/dist/components/actions/split-button/split-button.template.js.map +1 -1
- package/dist/components/components.js +381 -390
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts +3 -3
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js +6 -21
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.js.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.d.ts.map +1 -1
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js +3 -0
- package/dist/components/content/keyboard-shortcut/keyboard-shortcut.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.d.ts +14 -0
- package/dist/components/content/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.js +45 -6
- package/dist/components/content/tooltip/tooltip.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.styles.js +13 -0
- package/dist/components/content/tooltip/tooltip.styles.js.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.d.ts.map +1 -1
- package/dist/components/content/tooltip/tooltip.template.js +18 -2
- package/dist/components/content/tooltip/tooltip.template.js.map +1 -1
- package/dist/components/{icon-button-BVhiOwX9.js → icon-button-Cntrg4_E.js} +526 -61
- package/dist/components/inputs/code-editor/code-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js +2 -1
- package/dist/components/inputs/code-editor/code-editor.styles.js.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.d.ts.map +1 -1
- package/dist/components/inputs/date-picker/date-picker.styles.js +29 -5
- package/dist/components/inputs/date-picker/date-picker.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.d.ts +11 -0
- package/dist/components/inputs/search-field/search-field.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.js +30 -1
- package/dist/components/inputs/search-field/search-field.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.styles.js +18 -0
- package/dist/components/inputs/search-field/search-field.styles.js.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.d.ts.map +1 -1
- package/dist/components/inputs/search-field/search-field.template.js +12 -0
- package/dist/components/inputs/search-field/search-field.template.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.d.ts +10 -0
- package/dist/components/inputs/segmented-control/segmented-control.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.js +25 -1
- package/dist/components/inputs/segmented-control/segmented-control.js.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.d.ts.map +1 -1
- package/dist/components/inputs/segmented-control/segmented-control.template.js +20 -3
- package/dist/components/inputs/segmented-control/segmented-control.template.js.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.d.ts.map +1 -1
- package/dist/components/inputs/text-editor/text-editor.styles.js +13 -10
- package/dist/components/inputs/text-editor/text-editor.styles.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.d.ts +10 -0
- package/dist/components/inputs/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.js +25 -1
- package/dist/components/inputs/toggle-button/toggle-button.js.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.d.ts.map +1 -1
- package/dist/components/inputs/toggle-button/toggle-button.template.js +21 -7
- package/dist/components/inputs/toggle-button/toggle-button.template.js.map +1 -1
- package/dist/components/layout/card/card.styles.js +4 -4
- package/dist/components/layout/container/container.d.ts +2 -0
- package/dist/components/layout/container/container.d.ts.map +1 -1
- package/dist/components/layout/container/container.js +9 -0
- package/dist/components/layout/container/container.js.map +1 -1
- package/dist/components/layout/container/container.styles.d.ts.map +1 -1
- package/dist/components/layout/container/container.styles.js +13 -0
- package/dist/components/layout/container/container.styles.js.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.d.ts.map +1 -1
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js +9 -5
- package/dist/components/lists-and-tables/cells/step-cell/step-cell.styles.js.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.d.ts.map +1 -1
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js +16 -15
- package/dist/components/navigation/document-tab-bar/document-tab-bar.styles.js.map +1 -1
- package/dist/components/navigation/menu-bar-item/menu-bar-item.styles.js +2 -2
- package/dist/components/navigation/tab-bar/tab-bar.styles.js +9 -9
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts +16 -9
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js +16 -9
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js +23 -18
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.styles.js.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.d.ts.map +1 -1
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js +19 -21
- package/dist/components/status-and-feedback/activity-indicator/activity-indicator.template.js.map +1 -1
- package/dist/components/status-and-feedback/inline-dialog/inline-dialog.styles.js +1 -1
- package/dist/components/status-and-feedback/notification/notification.styles.js +1 -1
- package/dist/components/status-and-feedback/progress-bar/progress-bar.styles.js +4 -4
- package/dist/components/status-and-feedback/progress-circle/progress-circle.styles.js +3 -3
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js +1 -1
- package/dist/components/status-and-feedback/progress-circle/progress-circle.template.js.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.d.ts.map +1 -1
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js +7 -5
- package/dist/components/status-and-feedback/step-bar/step-bar.styles.js.map +1 -1
- package/dist/css/themes/bruin.css +108 -64
- package/dist/css/themes/donkerblauw.css +108 -64
- package/dist/css/themes/donkerbruin.css +88 -64
- package/dist/css/themes/donkergeel.css +145 -94
- package/dist/css/themes/donkergroen.css +93 -64
- package/dist/css/themes/geel.css +145 -94
- package/dist/css/themes/groen.css +108 -64
- package/dist/css/themes/hemelblauw.css +108 -64
- package/dist/css/themes/lichtblauw.css +111 -64
- package/dist/css/themes/mintgroen.css +111 -64
- package/dist/css/themes/mosgroen.css +108 -64
- package/dist/css/themes/oranje.css +162 -99
- package/dist/css/themes/paars.css +115 -64
- package/dist/css/themes/robijnrood.css +159 -96
- package/dist/css/themes/rood.css +159 -96
- package/dist/css/themes/roze.css +118 -64
- package/dist/css/themes/violet.css +93 -64
- package/dist/css/themes.css +2039 -1247
- package/dist/css/variables.css +132 -66
- package/dist/nldd.min.js +1077 -903
- package/dist/types/vue.d.ts +104 -2
- package/dist/utilities/codemirror/theme.js +1 -1
- package/dist/utilities/codemirror/theme.js.map +1 -1
- package/dist/utilities/shortcut.d.ts +50 -0
- package/dist/utilities/shortcut.d.ts.map +1 -0
- package/dist/utilities/shortcut.js +77 -0
- package/dist/utilities/shortcut.js.map +1 -0
- package/package.json +1 -1
- package/dist/components/{icon-D_ZGezHx.js → icon-zNX9A6d3.js} +1 -1
package/custom-elements.json
CHANGED
|
@@ -463,6 +463,46 @@
|
|
|
463
463
|
"description": "Accessible label forwarded to the inner <button> or <a>. Use when visible text alone lacks context.",
|
|
464
464
|
"attribute": "accessible-label"
|
|
465
465
|
},
|
|
466
|
+
{
|
|
467
|
+
"kind": "field",
|
|
468
|
+
"name": "shortcut",
|
|
469
|
+
"type": {
|
|
470
|
+
"text": "string"
|
|
471
|
+
},
|
|
472
|
+
"default": "''",
|
|
473
|
+
"attribute": "shortcut",
|
|
474
|
+
"reflects": true
|
|
475
|
+
},
|
|
476
|
+
{
|
|
477
|
+
"kind": "field",
|
|
478
|
+
"name": "shortcutMac",
|
|
479
|
+
"type": {
|
|
480
|
+
"text": "string"
|
|
481
|
+
},
|
|
482
|
+
"default": "''",
|
|
483
|
+
"attribute": "shortcut-mac",
|
|
484
|
+
"reflects": true
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"kind": "field",
|
|
488
|
+
"name": "shortcutWindows",
|
|
489
|
+
"type": {
|
|
490
|
+
"text": "string"
|
|
491
|
+
},
|
|
492
|
+
"default": "''",
|
|
493
|
+
"attribute": "shortcut-windows",
|
|
494
|
+
"reflects": true
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"kind": "field",
|
|
498
|
+
"name": "shortcutLinux",
|
|
499
|
+
"type": {
|
|
500
|
+
"text": "string"
|
|
501
|
+
},
|
|
502
|
+
"default": "''",
|
|
503
|
+
"attribute": "shortcut-linux",
|
|
504
|
+
"reflects": true
|
|
505
|
+
},
|
|
466
506
|
{
|
|
467
507
|
"kind": "field",
|
|
468
508
|
"name": "href",
|
|
@@ -743,6 +783,42 @@
|
|
|
743
783
|
"description": "Accessible label for the button, overrides text for screen readers",
|
|
744
784
|
"fieldName": "accessibleLabel"
|
|
745
785
|
},
|
|
786
|
+
{
|
|
787
|
+
"name": "shortcut",
|
|
788
|
+
"type": {
|
|
789
|
+
"text": "string"
|
|
790
|
+
},
|
|
791
|
+
"default": "''",
|
|
792
|
+
"fieldName": "shortcut",
|
|
793
|
+
"description": "Keyboard shortcut hint shown right after the text, e.g. 'Cmd+S'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name, as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable. Keep it for the few main actions of a screen (save, search); a hint on every button is noise."
|
|
794
|
+
},
|
|
795
|
+
{
|
|
796
|
+
"name": "shortcut-mac",
|
|
797
|
+
"type": {
|
|
798
|
+
"text": "string"
|
|
799
|
+
},
|
|
800
|
+
"default": "''",
|
|
801
|
+
"fieldName": "shortcutMac",
|
|
802
|
+
"description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
"name": "shortcut-windows",
|
|
806
|
+
"type": {
|
|
807
|
+
"text": "string"
|
|
808
|
+
},
|
|
809
|
+
"default": "''",
|
|
810
|
+
"fieldName": "shortcutWindows",
|
|
811
|
+
"description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"name": "shortcut-linux",
|
|
815
|
+
"type": {
|
|
816
|
+
"text": "string"
|
|
817
|
+
},
|
|
818
|
+
"default": "''",
|
|
819
|
+
"fieldName": "shortcutLinux",
|
|
820
|
+
"description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
|
|
821
|
+
},
|
|
746
822
|
{
|
|
747
823
|
"name": "href",
|
|
748
824
|
"type": {
|
|
@@ -1067,6 +1143,46 @@
|
|
|
1067
1143
|
"attribute": "tooltip-timing",
|
|
1068
1144
|
"reflects": true
|
|
1069
1145
|
},
|
|
1146
|
+
{
|
|
1147
|
+
"kind": "field",
|
|
1148
|
+
"name": "shortcut",
|
|
1149
|
+
"type": {
|
|
1150
|
+
"text": "string"
|
|
1151
|
+
},
|
|
1152
|
+
"default": "''",
|
|
1153
|
+
"attribute": "shortcut",
|
|
1154
|
+
"reflects": true
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
"kind": "field",
|
|
1158
|
+
"name": "shortcutMac",
|
|
1159
|
+
"type": {
|
|
1160
|
+
"text": "string"
|
|
1161
|
+
},
|
|
1162
|
+
"default": "''",
|
|
1163
|
+
"attribute": "shortcut-mac",
|
|
1164
|
+
"reflects": true
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"kind": "field",
|
|
1168
|
+
"name": "shortcutWindows",
|
|
1169
|
+
"type": {
|
|
1170
|
+
"text": "string"
|
|
1171
|
+
},
|
|
1172
|
+
"default": "''",
|
|
1173
|
+
"attribute": "shortcut-windows",
|
|
1174
|
+
"reflects": true
|
|
1175
|
+
},
|
|
1176
|
+
{
|
|
1177
|
+
"kind": "field",
|
|
1178
|
+
"name": "shortcutLinux",
|
|
1179
|
+
"type": {
|
|
1180
|
+
"text": "string"
|
|
1181
|
+
},
|
|
1182
|
+
"default": "''",
|
|
1183
|
+
"attribute": "shortcut-linux",
|
|
1184
|
+
"reflects": true
|
|
1185
|
+
},
|
|
1070
1186
|
{
|
|
1071
1187
|
"kind": "field",
|
|
1072
1188
|
"name": "href",
|
|
@@ -1293,6 +1409,42 @@
|
|
|
1293
1409
|
"description": "Forwarded to the inner nldd-tooltip's `timing`: 'delay' (the default, a 700 ms show-delay), 'instant', or 'never' (suppress the visual tooltip; screen readers still get the aria-label). Use 'never' when the surrounding context already explains the button (e.g. spin buttons in nldd-number-field, the chevron in nldd-split-button).",
|
|
1294
1410
|
"fieldName": "tooltipTiming"
|
|
1295
1411
|
},
|
|
1412
|
+
{
|
|
1413
|
+
"name": "shortcut",
|
|
1414
|
+
"type": {
|
|
1415
|
+
"text": "string"
|
|
1416
|
+
},
|
|
1417
|
+
"default": "''",
|
|
1418
|
+
"fieldName": "shortcut",
|
|
1419
|
+
"description": "Keyboard shortcut hint shown in the tooltip after the text, e.g. 'Alt+P'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name (\"Presentatiemodus Alt P\"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable."
|
|
1420
|
+
},
|
|
1421
|
+
{
|
|
1422
|
+
"name": "shortcut-mac",
|
|
1423
|
+
"type": {
|
|
1424
|
+
"text": "string"
|
|
1425
|
+
},
|
|
1426
|
+
"default": "''",
|
|
1427
|
+
"fieldName": "shortcutMac",
|
|
1428
|
+
"description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
|
|
1429
|
+
},
|
|
1430
|
+
{
|
|
1431
|
+
"name": "shortcut-windows",
|
|
1432
|
+
"type": {
|
|
1433
|
+
"text": "string"
|
|
1434
|
+
},
|
|
1435
|
+
"default": "''",
|
|
1436
|
+
"fieldName": "shortcutWindows",
|
|
1437
|
+
"description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"name": "shortcut-linux",
|
|
1441
|
+
"type": {
|
|
1442
|
+
"text": "string"
|
|
1443
|
+
},
|
|
1444
|
+
"default": "''",
|
|
1445
|
+
"fieldName": "shortcutLinux",
|
|
1446
|
+
"description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
|
|
1447
|
+
},
|
|
1296
1448
|
{
|
|
1297
1449
|
"name": "href",
|
|
1298
1450
|
"type": {
|
|
@@ -2261,6 +2413,46 @@
|
|
|
2261
2413
|
"attribute": "text",
|
|
2262
2414
|
"reflects": true
|
|
2263
2415
|
},
|
|
2416
|
+
{
|
|
2417
|
+
"kind": "field",
|
|
2418
|
+
"name": "shortcut",
|
|
2419
|
+
"type": {
|
|
2420
|
+
"text": "string"
|
|
2421
|
+
},
|
|
2422
|
+
"default": "''",
|
|
2423
|
+
"attribute": "shortcut",
|
|
2424
|
+
"reflects": true
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
"kind": "field",
|
|
2428
|
+
"name": "shortcutMac",
|
|
2429
|
+
"type": {
|
|
2430
|
+
"text": "string"
|
|
2431
|
+
},
|
|
2432
|
+
"default": "''",
|
|
2433
|
+
"attribute": "shortcut-mac",
|
|
2434
|
+
"reflects": true
|
|
2435
|
+
},
|
|
2436
|
+
{
|
|
2437
|
+
"kind": "field",
|
|
2438
|
+
"name": "shortcutWindows",
|
|
2439
|
+
"type": {
|
|
2440
|
+
"text": "string"
|
|
2441
|
+
},
|
|
2442
|
+
"default": "''",
|
|
2443
|
+
"attribute": "shortcut-windows",
|
|
2444
|
+
"reflects": true
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
"kind": "field",
|
|
2448
|
+
"name": "shortcutLinux",
|
|
2449
|
+
"type": {
|
|
2450
|
+
"text": "string"
|
|
2451
|
+
},
|
|
2452
|
+
"default": "''",
|
|
2453
|
+
"attribute": "shortcut-linux",
|
|
2454
|
+
"reflects": true
|
|
2455
|
+
},
|
|
2264
2456
|
{
|
|
2265
2457
|
"kind": "field",
|
|
2266
2458
|
"name": "icon",
|
|
@@ -2337,6 +2529,42 @@
|
|
|
2337
2529
|
"description": "Button text for the primary action",
|
|
2338
2530
|
"fieldName": "text"
|
|
2339
2531
|
},
|
|
2532
|
+
{
|
|
2533
|
+
"name": "shortcut",
|
|
2534
|
+
"type": {
|
|
2535
|
+
"text": "string"
|
|
2536
|
+
},
|
|
2537
|
+
"default": "''",
|
|
2538
|
+
"fieldName": "shortcut",
|
|
2539
|
+
"description": "Keyboard shortcut hint for the primary action, shown right after its text, e.g. 'Cmd+S'. Forwarded to the inner nldd-button; display only, wire up the handling in your app."
|
|
2540
|
+
},
|
|
2541
|
+
{
|
|
2542
|
+
"name": "shortcut-mac",
|
|
2543
|
+
"type": {
|
|
2544
|
+
"text": "string"
|
|
2545
|
+
},
|
|
2546
|
+
"default": "''",
|
|
2547
|
+
"fieldName": "shortcutMac",
|
|
2548
|
+
"description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
|
|
2549
|
+
},
|
|
2550
|
+
{
|
|
2551
|
+
"name": "shortcut-windows",
|
|
2552
|
+
"type": {
|
|
2553
|
+
"text": "string"
|
|
2554
|
+
},
|
|
2555
|
+
"default": "''",
|
|
2556
|
+
"fieldName": "shortcutWindows",
|
|
2557
|
+
"description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
"name": "shortcut-linux",
|
|
2561
|
+
"type": {
|
|
2562
|
+
"text": "string"
|
|
2563
|
+
},
|
|
2564
|
+
"default": "''",
|
|
2565
|
+
"fieldName": "shortcutLinux",
|
|
2566
|
+
"description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
|
|
2567
|
+
},
|
|
2340
2568
|
{
|
|
2341
2569
|
"name": "icon",
|
|
2342
2570
|
"type": {
|
|
@@ -4576,7 +4804,7 @@
|
|
|
4576
4804
|
},
|
|
4577
4805
|
"default": "''",
|
|
4578
4806
|
"fieldName": "keys",
|
|
4579
|
-
"description": "Keys separated by '+' (e.g. 'Cmd+K' or 'Ctrl+Shift+P').
|
|
4807
|
+
"description": "Keys separated by '+' (e.g. 'Cmd+K' or 'Ctrl+Shift+P'). End with '++' for a literal '+' key: 'Ctrl++' becomes 'Ctrl' + '+' ('Ctrl+++' works too). For more complex cases, such as a combo with several '+' keys, use the default slot with your own <kbd> elements instead of the keys attribute."
|
|
4580
4808
|
},
|
|
4581
4809
|
{
|
|
4582
4810
|
"name": "mac-keys",
|
|
@@ -5580,6 +5808,46 @@
|
|
|
5580
5808
|
"attribute": "text",
|
|
5581
5809
|
"reflects": true
|
|
5582
5810
|
},
|
|
5811
|
+
{
|
|
5812
|
+
"kind": "field",
|
|
5813
|
+
"name": "shortcut",
|
|
5814
|
+
"type": {
|
|
5815
|
+
"text": "string"
|
|
5816
|
+
},
|
|
5817
|
+
"default": "''",
|
|
5818
|
+
"attribute": "shortcut",
|
|
5819
|
+
"reflects": true
|
|
5820
|
+
},
|
|
5821
|
+
{
|
|
5822
|
+
"kind": "field",
|
|
5823
|
+
"name": "shortcutMac",
|
|
5824
|
+
"type": {
|
|
5825
|
+
"text": "string"
|
|
5826
|
+
},
|
|
5827
|
+
"default": "''",
|
|
5828
|
+
"attribute": "shortcut-mac",
|
|
5829
|
+
"reflects": true
|
|
5830
|
+
},
|
|
5831
|
+
{
|
|
5832
|
+
"kind": "field",
|
|
5833
|
+
"name": "shortcutWindows",
|
|
5834
|
+
"type": {
|
|
5835
|
+
"text": "string"
|
|
5836
|
+
},
|
|
5837
|
+
"default": "''",
|
|
5838
|
+
"attribute": "shortcut-windows",
|
|
5839
|
+
"reflects": true
|
|
5840
|
+
},
|
|
5841
|
+
{
|
|
5842
|
+
"kind": "field",
|
|
5843
|
+
"name": "shortcutLinux",
|
|
5844
|
+
"type": {
|
|
5845
|
+
"text": "string"
|
|
5846
|
+
},
|
|
5847
|
+
"default": "''",
|
|
5848
|
+
"attribute": "shortcut-linux",
|
|
5849
|
+
"reflects": true
|
|
5850
|
+
},
|
|
5583
5851
|
{
|
|
5584
5852
|
"kind": "field",
|
|
5585
5853
|
"name": "open",
|
|
@@ -5622,6 +5890,42 @@
|
|
|
5622
5890
|
"fieldName": "text",
|
|
5623
5891
|
"description": "Tooltip text"
|
|
5624
5892
|
},
|
|
5893
|
+
{
|
|
5894
|
+
"name": "shortcut",
|
|
5895
|
+
"type": {
|
|
5896
|
+
"text": "string"
|
|
5897
|
+
},
|
|
5898
|
+
"default": "''",
|
|
5899
|
+
"fieldName": "shortcut",
|
|
5900
|
+
"description": "Keyboard shortcut hint shown after the text, e.g. 'Cmd+P'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key. Joins the description of a light-DOM trigger. Hidden on touch-only devices, where it isn't invokable."
|
|
5901
|
+
},
|
|
5902
|
+
{
|
|
5903
|
+
"name": "shortcut-mac",
|
|
5904
|
+
"type": {
|
|
5905
|
+
"text": "string"
|
|
5906
|
+
},
|
|
5907
|
+
"default": "''",
|
|
5908
|
+
"fieldName": "shortcutMac",
|
|
5909
|
+
"description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
|
|
5910
|
+
},
|
|
5911
|
+
{
|
|
5912
|
+
"name": "shortcut-windows",
|
|
5913
|
+
"type": {
|
|
5914
|
+
"text": "string"
|
|
5915
|
+
},
|
|
5916
|
+
"default": "''",
|
|
5917
|
+
"fieldName": "shortcutWindows",
|
|
5918
|
+
"description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
|
|
5919
|
+
},
|
|
5920
|
+
{
|
|
5921
|
+
"name": "shortcut-linux",
|
|
5922
|
+
"type": {
|
|
5923
|
+
"text": "string"
|
|
5924
|
+
},
|
|
5925
|
+
"default": "''",
|
|
5926
|
+
"fieldName": "shortcutLinux",
|
|
5927
|
+
"description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
|
|
5928
|
+
},
|
|
5625
5929
|
{
|
|
5626
5930
|
"name": "open",
|
|
5627
5931
|
"type": {
|
|
@@ -14417,6 +14721,46 @@
|
|
|
14417
14721
|
"attribute": "show-search-button",
|
|
14418
14722
|
"reflects": true
|
|
14419
14723
|
},
|
|
14724
|
+
{
|
|
14725
|
+
"kind": "field",
|
|
14726
|
+
"name": "shortcut",
|
|
14727
|
+
"type": {
|
|
14728
|
+
"text": "string"
|
|
14729
|
+
},
|
|
14730
|
+
"default": "''",
|
|
14731
|
+
"attribute": "shortcut",
|
|
14732
|
+
"reflects": true
|
|
14733
|
+
},
|
|
14734
|
+
{
|
|
14735
|
+
"kind": "field",
|
|
14736
|
+
"name": "shortcutMac",
|
|
14737
|
+
"type": {
|
|
14738
|
+
"text": "string"
|
|
14739
|
+
},
|
|
14740
|
+
"default": "''",
|
|
14741
|
+
"attribute": "shortcut-mac",
|
|
14742
|
+
"reflects": true
|
|
14743
|
+
},
|
|
14744
|
+
{
|
|
14745
|
+
"kind": "field",
|
|
14746
|
+
"name": "shortcutWindows",
|
|
14747
|
+
"type": {
|
|
14748
|
+
"text": "string"
|
|
14749
|
+
},
|
|
14750
|
+
"default": "''",
|
|
14751
|
+
"attribute": "shortcut-windows",
|
|
14752
|
+
"reflects": true
|
|
14753
|
+
},
|
|
14754
|
+
{
|
|
14755
|
+
"kind": "field",
|
|
14756
|
+
"name": "shortcutLinux",
|
|
14757
|
+
"type": {
|
|
14758
|
+
"text": "string"
|
|
14759
|
+
},
|
|
14760
|
+
"default": "''",
|
|
14761
|
+
"attribute": "shortcut-linux",
|
|
14762
|
+
"reflects": true
|
|
14763
|
+
},
|
|
14420
14764
|
{
|
|
14421
14765
|
"kind": "field",
|
|
14422
14766
|
"name": "translations",
|
|
@@ -14800,6 +15144,42 @@
|
|
|
14800
15144
|
"fieldName": "showSearchButton",
|
|
14801
15145
|
"description": "When set, shows a search button on the right"
|
|
14802
15146
|
},
|
|
15147
|
+
{
|
|
15148
|
+
"name": "shortcut",
|
|
15149
|
+
"type": {
|
|
15150
|
+
"text": "string"
|
|
15151
|
+
},
|
|
15152
|
+
"default": "''",
|
|
15153
|
+
"fieldName": "shortcut",
|
|
15154
|
+
"description": "Keyboard shortcut hint shown at the right end of the empty field, e.g. 'Cmd+K' or '/'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up focusing the field in your app. Hidden while the field has focus or a value, and on touch-only devices. Joins the field's description for screen readers."
|
|
15155
|
+
},
|
|
15156
|
+
{
|
|
15157
|
+
"name": "shortcut-mac",
|
|
15158
|
+
"type": {
|
|
15159
|
+
"text": "string"
|
|
15160
|
+
},
|
|
15161
|
+
"default": "''",
|
|
15162
|
+
"fieldName": "shortcutMac",
|
|
15163
|
+
"description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
|
|
15164
|
+
},
|
|
15165
|
+
{
|
|
15166
|
+
"name": "shortcut-windows",
|
|
15167
|
+
"type": {
|
|
15168
|
+
"text": "string"
|
|
15169
|
+
},
|
|
15170
|
+
"default": "''",
|
|
15171
|
+
"fieldName": "shortcutWindows",
|
|
15172
|
+
"description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
|
|
15173
|
+
},
|
|
15174
|
+
{
|
|
15175
|
+
"name": "shortcut-linux",
|
|
15176
|
+
"type": {
|
|
15177
|
+
"text": "string"
|
|
15178
|
+
},
|
|
15179
|
+
"default": "''",
|
|
15180
|
+
"fieldName": "shortcutLinux",
|
|
15181
|
+
"description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
|
|
15182
|
+
},
|
|
14803
15183
|
{
|
|
14804
15184
|
"name": "translations",
|
|
14805
15185
|
"type": {
|
|
@@ -15049,6 +15429,46 @@
|
|
|
15049
15429
|
"description": "Icon name for nldd-icon. When not set, the icon slot is used; the icon and\nicon-and-text variants show a placeholder icon when neither is provided.",
|
|
15050
15430
|
"attribute": "icon"
|
|
15051
15431
|
},
|
|
15432
|
+
{
|
|
15433
|
+
"kind": "field",
|
|
15434
|
+
"name": "shortcut",
|
|
15435
|
+
"type": {
|
|
15436
|
+
"text": "string"
|
|
15437
|
+
},
|
|
15438
|
+
"default": "''",
|
|
15439
|
+
"attribute": "shortcut",
|
|
15440
|
+
"reflects": true
|
|
15441
|
+
},
|
|
15442
|
+
{
|
|
15443
|
+
"kind": "field",
|
|
15444
|
+
"name": "shortcutMac",
|
|
15445
|
+
"type": {
|
|
15446
|
+
"text": "string"
|
|
15447
|
+
},
|
|
15448
|
+
"default": "''",
|
|
15449
|
+
"attribute": "shortcut-mac",
|
|
15450
|
+
"reflects": true
|
|
15451
|
+
},
|
|
15452
|
+
{
|
|
15453
|
+
"kind": "field",
|
|
15454
|
+
"name": "shortcutWindows",
|
|
15455
|
+
"type": {
|
|
15456
|
+
"text": "string"
|
|
15457
|
+
},
|
|
15458
|
+
"default": "''",
|
|
15459
|
+
"attribute": "shortcut-windows",
|
|
15460
|
+
"reflects": true
|
|
15461
|
+
},
|
|
15462
|
+
{
|
|
15463
|
+
"kind": "field",
|
|
15464
|
+
"name": "shortcutLinux",
|
|
15465
|
+
"type": {
|
|
15466
|
+
"text": "string"
|
|
15467
|
+
},
|
|
15468
|
+
"default": "''",
|
|
15469
|
+
"attribute": "shortcut-linux",
|
|
15470
|
+
"reflects": true
|
|
15471
|
+
},
|
|
15052
15472
|
{
|
|
15053
15473
|
"kind": "method",
|
|
15054
15474
|
"name": "focus",
|
|
@@ -15174,6 +15594,42 @@
|
|
|
15174
15594
|
"default": "''",
|
|
15175
15595
|
"description": "Icon name for nldd-icon",
|
|
15176
15596
|
"fieldName": "icon"
|
|
15597
|
+
},
|
|
15598
|
+
{
|
|
15599
|
+
"name": "shortcut",
|
|
15600
|
+
"type": {
|
|
15601
|
+
"text": "string"
|
|
15602
|
+
},
|
|
15603
|
+
"default": "''",
|
|
15604
|
+
"fieldName": "shortcut",
|
|
15605
|
+
"description": "Keyboard shortcut hint shown in the tooltip, e.g. 'Cmd+B'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name (\"Vet Cmd B\"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable."
|
|
15606
|
+
},
|
|
15607
|
+
{
|
|
15608
|
+
"name": "shortcut-mac",
|
|
15609
|
+
"type": {
|
|
15610
|
+
"text": "string"
|
|
15611
|
+
},
|
|
15612
|
+
"default": "''",
|
|
15613
|
+
"fieldName": "shortcutMac",
|
|
15614
|
+
"description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
|
|
15615
|
+
},
|
|
15616
|
+
{
|
|
15617
|
+
"name": "shortcut-windows",
|
|
15618
|
+
"type": {
|
|
15619
|
+
"text": "string"
|
|
15620
|
+
},
|
|
15621
|
+
"default": "''",
|
|
15622
|
+
"fieldName": "shortcutWindows",
|
|
15623
|
+
"description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
|
|
15624
|
+
},
|
|
15625
|
+
{
|
|
15626
|
+
"name": "shortcut-linux",
|
|
15627
|
+
"type": {
|
|
15628
|
+
"text": "string"
|
|
15629
|
+
},
|
|
15630
|
+
"default": "''",
|
|
15631
|
+
"fieldName": "shortcutLinux",
|
|
15632
|
+
"description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
|
|
15177
15633
|
}
|
|
15178
15634
|
],
|
|
15179
15635
|
"superclass": {
|
|
@@ -22006,6 +22462,46 @@
|
|
|
22006
22462
|
"default": "''",
|
|
22007
22463
|
"attribute": "accessible-label"
|
|
22008
22464
|
},
|
|
22465
|
+
{
|
|
22466
|
+
"kind": "field",
|
|
22467
|
+
"name": "shortcut",
|
|
22468
|
+
"type": {
|
|
22469
|
+
"text": "string"
|
|
22470
|
+
},
|
|
22471
|
+
"default": "''",
|
|
22472
|
+
"attribute": "shortcut",
|
|
22473
|
+
"reflects": true
|
|
22474
|
+
},
|
|
22475
|
+
{
|
|
22476
|
+
"kind": "field",
|
|
22477
|
+
"name": "shortcutMac",
|
|
22478
|
+
"type": {
|
|
22479
|
+
"text": "string"
|
|
22480
|
+
},
|
|
22481
|
+
"default": "''",
|
|
22482
|
+
"attribute": "shortcut-mac",
|
|
22483
|
+
"reflects": true
|
|
22484
|
+
},
|
|
22485
|
+
{
|
|
22486
|
+
"kind": "field",
|
|
22487
|
+
"name": "shortcutWindows",
|
|
22488
|
+
"type": {
|
|
22489
|
+
"text": "string"
|
|
22490
|
+
},
|
|
22491
|
+
"default": "''",
|
|
22492
|
+
"attribute": "shortcut-windows",
|
|
22493
|
+
"reflects": true
|
|
22494
|
+
},
|
|
22495
|
+
{
|
|
22496
|
+
"kind": "field",
|
|
22497
|
+
"name": "shortcutLinux",
|
|
22498
|
+
"type": {
|
|
22499
|
+
"text": "string"
|
|
22500
|
+
},
|
|
22501
|
+
"default": "''",
|
|
22502
|
+
"attribute": "shortcut-linux",
|
|
22503
|
+
"reflects": true
|
|
22504
|
+
},
|
|
22009
22505
|
{
|
|
22010
22506
|
"kind": "field",
|
|
22011
22507
|
"name": "invalid",
|
|
@@ -22382,6 +22878,42 @@
|
|
|
22382
22878
|
"fieldName": "accessibleLabel",
|
|
22383
22879
|
"description": "Accessible label; required for icon-only usage"
|
|
22384
22880
|
},
|
|
22881
|
+
{
|
|
22882
|
+
"name": "shortcut",
|
|
22883
|
+
"type": {
|
|
22884
|
+
"text": "string"
|
|
22885
|
+
},
|
|
22886
|
+
"default": "''",
|
|
22887
|
+
"fieldName": "shortcut",
|
|
22888
|
+
"description": "Keyboard shortcut hint shown in the tooltip, e.g. 'Cmd+B'. Display only (rendered via nldd-keyboard-shortcut): it does not bind the key, wire up the handling in your app. Part of the accessible name (\"Vet Cmd B\"), as in nldd-menu-item. Hidden on touch-only devices, where it isn't invokable."
|
|
22889
|
+
},
|
|
22890
|
+
{
|
|
22891
|
+
"name": "shortcut-mac",
|
|
22892
|
+
"type": {
|
|
22893
|
+
"text": "string"
|
|
22894
|
+
},
|
|
22895
|
+
"default": "''",
|
|
22896
|
+
"fieldName": "shortcutMac",
|
|
22897
|
+
"description": "Override of `shortcut` on macOS, where the keys differ (falls back to `shortcut`)."
|
|
22898
|
+
},
|
|
22899
|
+
{
|
|
22900
|
+
"name": "shortcut-windows",
|
|
22901
|
+
"type": {
|
|
22902
|
+
"text": "string"
|
|
22903
|
+
},
|
|
22904
|
+
"default": "''",
|
|
22905
|
+
"fieldName": "shortcutWindows",
|
|
22906
|
+
"description": "Override of `shortcut` on Windows (falls back to `shortcut`)."
|
|
22907
|
+
},
|
|
22908
|
+
{
|
|
22909
|
+
"name": "shortcut-linux",
|
|
22910
|
+
"type": {
|
|
22911
|
+
"text": "string"
|
|
22912
|
+
},
|
|
22913
|
+
"default": "''",
|
|
22914
|
+
"fieldName": "shortcutLinux",
|
|
22915
|
+
"description": "Override of `shortcut` on Linux (falls back to `shortcut`)."
|
|
22916
|
+
},
|
|
22385
22917
|
{
|
|
22386
22918
|
"name": "invalid",
|
|
22387
22919
|
"type": {
|
|
@@ -23630,6 +24162,16 @@
|
|
|
23630
24162
|
"attribute": "max-width",
|
|
23631
24163
|
"reflects": true
|
|
23632
24164
|
},
|
|
24165
|
+
{
|
|
24166
|
+
"kind": "field",
|
|
24167
|
+
"name": "minHeight",
|
|
24168
|
+
"type": {
|
|
24169
|
+
"text": "string"
|
|
24170
|
+
},
|
|
24171
|
+
"default": "''",
|
|
24172
|
+
"attribute": "min-height",
|
|
24173
|
+
"reflects": true
|
|
24174
|
+
},
|
|
23633
24175
|
{
|
|
23634
24176
|
"kind": "field",
|
|
23635
24177
|
"name": "gap",
|
|
@@ -24039,6 +24581,15 @@
|
|
|
24039
24581
|
"fieldName": "maxWidth",
|
|
24040
24582
|
"description": "Maximum width as a CSS length (e.g. '480px')"
|
|
24041
24583
|
},
|
|
24584
|
+
{
|
|
24585
|
+
"name": "min-height",
|
|
24586
|
+
"type": {
|
|
24587
|
+
"text": "string"
|
|
24588
|
+
},
|
|
24589
|
+
"default": "''",
|
|
24590
|
+
"fieldName": "minHeight",
|
|
24591
|
+
"description": "Minimum height as a CSS length (e.g. '240px'), padding included. Reserves the room that content still on its way will take; vertical-alignment then places the children within it."
|
|
24592
|
+
},
|
|
24042
24593
|
{
|
|
24043
24594
|
"name": "gap",
|
|
24044
24595
|
"type": {
|
|
@@ -35695,7 +36246,7 @@
|
|
|
35695
36246
|
"declarations": [
|
|
35696
36247
|
{
|
|
35697
36248
|
"kind": "class",
|
|
35698
|
-
"description": "Layout placeholder that fills its parent and centers an indeterminate activity indicator. By default the indicator is held back for 1000ms so brief loading states don't flash; once the delay passes it fades in. Set `timing=\"instant\"` to skip the delay (the fade-in still plays) — this is what embedding components such as `nldd-button` use for their loading state. The default indicator is a simple icon-sized circle that follows the shared `--context-content-color` channel (set by list-item / table / menu on their content), falling back to `currentColor` wherever that channel is unset (buttons, rich-text, standalone) — so a spinner inside a cell tracks the row's state-aware content color, while embedders relying on currentColor are unaffected. An optional label sits below (hidden unless `show-text` is set).
|
|
36249
|
+
"description": "Layout placeholder that fills its parent and centers an indeterminate activity indicator. By default the indicator is held back for 1000ms so brief loading states don't flash; once the delay passes it fades in. Set `timing=\"instant\"` to skip the delay (the fade-in still plays) — this is what embedding components such as `nldd-button` use for their loading state. Sizing: fills its parent where the parent lets it (a flex column such as `nldd-container`, a grid, or a fixed height) and centers itself there. Where the parent has no height of its own, give it one: a `min-height` matching the content you expect, such as `<nldd-container min-height=\"240px\">`. As a safety net the host already takes the indicator's size (circle, plus the label with `show-text`) during the delay, so nothing shifts when it fades in; once `complete` is set it gives that space up. Label size follows `size`, not the surrounding text, so the circle and its label keep the same proportion everywhere: body-xs at 16 and 20, body-sm at 24 and 28, body-md from 32. Keep the label short; a longer explanation belongs in the area as regular text. The default indicator is a simple icon-sized circle that follows the shared `--context-content-color` channel (set by list-item / table / menu on their content), falling back to `currentColor` wherever that channel is unset (buttons, rich-text, standalone) — so a spinner inside a cell tracks the row's state-aware content color, while embedders relying on currentColor are unaffected. An optional label sits below (hidden unless `show-text` is set). The indicator is always indeterminate; when you know the progress, show `nldd-progress-bar` or `nldd-progress-circle` instead. Icon alignment: the visible ring already sits at 5/6 of its box (the SVG's r=9 plus a 2-unit stroke in a 24 view-box, the same optical inset a filled icon glyph has), so a standalone spinner lines up with an icon or an `icon-aligned` `nldd-avatar` on the same grid — no extra option needed (unlike `nldd-avatar`, which fills edge-to-edge and opts in via `icon-aligned`). Overlay mode: put content in the default slot and the indicator wraps it — it becomes a `position: relative` container, renders the spinner over a dimming backdrop (opt out with `no-backdrop`), and makes the content `inert` so its controls can't be focused or clicked. Toggle loading with `complete` (`?complete=${!isLoading}`). With no slotted content it stays the standalone placeholder described above. Reconnect behavior: every `connectedCallback` resets the timer and hides the indicator again. If a consumer toggles the element via a conditional render (remove + re-insert) the indicator disappears and re-fades after another delay. Keep the element mounted and toggle visibility / `hidden` instead if you want the timer to run only once. Accessibility: while connected and not `complete` the host is a polite live region (`role=\"status\"`). The label (`text`, or the translated \"Laden\" fallback) always renders as the region's content — visually hidden when `show-text` is off (the default) — so assistive tech announces the loading state when the indicator appears. Set `complete` (or unmount) to clear it.",
|
|
35699
36250
|
"name": "NLDDActivityIndicator",
|
|
35700
36251
|
"members": [
|
|
35701
36252
|
{
|
|
@@ -35847,10 +36398,6 @@
|
|
|
35847
36398
|
{
|
|
35848
36399
|
"name": "",
|
|
35849
36400
|
"description": "Content to wrap (overlay mode); made inert while loading. Leave empty for the standalone placeholder."
|
|
35850
|
-
},
|
|
35851
|
-
{
|
|
35852
|
-
"name": "indicator",
|
|
35853
|
-
"description": "Optional custom indicator; overrides the default circle (and its visually-hidden label). Consumers replacing it supply their own indicator semantics; the host's role=\"status\" still marks the loading region."
|
|
35854
36401
|
}
|
|
35855
36402
|
]
|
|
35856
36403
|
}
|
|
@@ -40560,6 +41107,192 @@
|
|
|
40560
41107
|
}
|
|
40561
41108
|
]
|
|
40562
41109
|
},
|
|
41110
|
+
{
|
|
41111
|
+
"kind": "javascript-module",
|
|
41112
|
+
"path": "src/utilities/shortcut.ts",
|
|
41113
|
+
"declarations": [
|
|
41114
|
+
{
|
|
41115
|
+
"kind": "function",
|
|
41116
|
+
"name": "hasShortcut",
|
|
41117
|
+
"return": {
|
|
41118
|
+
"type": {
|
|
41119
|
+
"text": "boolean"
|
|
41120
|
+
}
|
|
41121
|
+
},
|
|
41122
|
+
"parameters": [
|
|
41123
|
+
{
|
|
41124
|
+
"name": "hint",
|
|
41125
|
+
"type": {
|
|
41126
|
+
"text": "ShortcutHint"
|
|
41127
|
+
}
|
|
41128
|
+
}
|
|
41129
|
+
]
|
|
41130
|
+
},
|
|
41131
|
+
{
|
|
41132
|
+
"kind": "function",
|
|
41133
|
+
"name": "resolveKeys",
|
|
41134
|
+
"return": {
|
|
41135
|
+
"type": {
|
|
41136
|
+
"text": "string"
|
|
41137
|
+
}
|
|
41138
|
+
},
|
|
41139
|
+
"parameters": [
|
|
41140
|
+
{
|
|
41141
|
+
"name": "spec",
|
|
41142
|
+
"type": {
|
|
41143
|
+
"text": "KeysPerOS"
|
|
41144
|
+
}
|
|
41145
|
+
},
|
|
41146
|
+
{
|
|
41147
|
+
"name": "os",
|
|
41148
|
+
"type": {
|
|
41149
|
+
"text": "OS"
|
|
41150
|
+
}
|
|
41151
|
+
}
|
|
41152
|
+
],
|
|
41153
|
+
"description": "The key spec for this OS, with `keys` as the fallback."
|
|
41154
|
+
},
|
|
41155
|
+
{
|
|
41156
|
+
"kind": "function",
|
|
41157
|
+
"name": "parseKeys",
|
|
41158
|
+
"return": {
|
|
41159
|
+
"type": {
|
|
41160
|
+
"text": "string[]"
|
|
41161
|
+
}
|
|
41162
|
+
},
|
|
41163
|
+
"parameters": [
|
|
41164
|
+
{
|
|
41165
|
+
"name": "spec",
|
|
41166
|
+
"type": {
|
|
41167
|
+
"text": "string"
|
|
41168
|
+
}
|
|
41169
|
+
}
|
|
41170
|
+
],
|
|
41171
|
+
"description": "Splits 'Ctrl+Shift+P' into keys; a trailing '++' ('Ctrl++') or '+++' is a literal '+' key."
|
|
41172
|
+
},
|
|
41173
|
+
{
|
|
41174
|
+
"kind": "function",
|
|
41175
|
+
"name": "shortcutsAvailable",
|
|
41176
|
+
"return": {
|
|
41177
|
+
"type": {
|
|
41178
|
+
"text": "boolean"
|
|
41179
|
+
}
|
|
41180
|
+
},
|
|
41181
|
+
"description": "Whether a keyboard shortcut can be used on this device, so a hint for it is worth showing."
|
|
41182
|
+
},
|
|
41183
|
+
{
|
|
41184
|
+
"kind": "class",
|
|
41185
|
+
"description": "Renders the host again when shortcuts become available or unavailable, such\nas when a pointer is attached or removed, so a shortcut in its accessible\nname follows the visible hint. Pass `onChange` for work that a render does\nnot redo.",
|
|
41186
|
+
"name": "ShortcutAvailabilityController",
|
|
41187
|
+
"members": [
|
|
41188
|
+
{
|
|
41189
|
+
"kind": "field",
|
|
41190
|
+
"name": "_query",
|
|
41191
|
+
"privacy": "private"
|
|
41192
|
+
},
|
|
41193
|
+
{
|
|
41194
|
+
"kind": "field",
|
|
41195
|
+
"name": "_onChange",
|
|
41196
|
+
"type": {
|
|
41197
|
+
"text": "() => void"
|
|
41198
|
+
},
|
|
41199
|
+
"privacy": "private"
|
|
41200
|
+
},
|
|
41201
|
+
{
|
|
41202
|
+
"kind": "field",
|
|
41203
|
+
"name": "_handleChange",
|
|
41204
|
+
"privacy": "private"
|
|
41205
|
+
},
|
|
41206
|
+
{
|
|
41207
|
+
"kind": "method",
|
|
41208
|
+
"name": "hostConnected",
|
|
41209
|
+
"return": {
|
|
41210
|
+
"type": {
|
|
41211
|
+
"text": "void"
|
|
41212
|
+
}
|
|
41213
|
+
}
|
|
41214
|
+
},
|
|
41215
|
+
{
|
|
41216
|
+
"kind": "method",
|
|
41217
|
+
"name": "hostDisconnected",
|
|
41218
|
+
"return": {
|
|
41219
|
+
"type": {
|
|
41220
|
+
"text": "void"
|
|
41221
|
+
}
|
|
41222
|
+
}
|
|
41223
|
+
}
|
|
41224
|
+
]
|
|
41225
|
+
},
|
|
41226
|
+
{
|
|
41227
|
+
"kind": "function",
|
|
41228
|
+
"name": "shortcutLabel",
|
|
41229
|
+
"return": {
|
|
41230
|
+
"type": {
|
|
41231
|
+
"text": "string"
|
|
41232
|
+
}
|
|
41233
|
+
},
|
|
41234
|
+
"parameters": [
|
|
41235
|
+
{
|
|
41236
|
+
"name": "hint",
|
|
41237
|
+
"type": {
|
|
41238
|
+
"text": "ShortcutHint"
|
|
41239
|
+
}
|
|
41240
|
+
}
|
|
41241
|
+
],
|
|
41242
|
+
"description": "The shortcut as words for an accessible name (\"Ctrl Z\"), matching how\nnldd-menu-item is announced. Empty without a shortcut, and where\nshortcutsAvailable() says the key cannot be pressed, as the hint is hidden\nthere too. Read when the component renders; ShortcutAvailabilityController\nrenders it again when that changes."
|
|
41243
|
+
}
|
|
41244
|
+
],
|
|
41245
|
+
"exports": [
|
|
41246
|
+
{
|
|
41247
|
+
"kind": "js",
|
|
41248
|
+
"name": "hasShortcut",
|
|
41249
|
+
"declaration": {
|
|
41250
|
+
"name": "hasShortcut",
|
|
41251
|
+
"module": "src/utilities/shortcut.ts"
|
|
41252
|
+
}
|
|
41253
|
+
},
|
|
41254
|
+
{
|
|
41255
|
+
"kind": "js",
|
|
41256
|
+
"name": "resolveKeys",
|
|
41257
|
+
"declaration": {
|
|
41258
|
+
"name": "resolveKeys",
|
|
41259
|
+
"module": "src/utilities/shortcut.ts"
|
|
41260
|
+
}
|
|
41261
|
+
},
|
|
41262
|
+
{
|
|
41263
|
+
"kind": "js",
|
|
41264
|
+
"name": "parseKeys",
|
|
41265
|
+
"declaration": {
|
|
41266
|
+
"name": "parseKeys",
|
|
41267
|
+
"module": "src/utilities/shortcut.ts"
|
|
41268
|
+
}
|
|
41269
|
+
},
|
|
41270
|
+
{
|
|
41271
|
+
"kind": "js",
|
|
41272
|
+
"name": "shortcutsAvailable",
|
|
41273
|
+
"declaration": {
|
|
41274
|
+
"name": "shortcutsAvailable",
|
|
41275
|
+
"module": "src/utilities/shortcut.ts"
|
|
41276
|
+
}
|
|
41277
|
+
},
|
|
41278
|
+
{
|
|
41279
|
+
"kind": "js",
|
|
41280
|
+
"name": "ShortcutAvailabilityController",
|
|
41281
|
+
"declaration": {
|
|
41282
|
+
"name": "ShortcutAvailabilityController",
|
|
41283
|
+
"module": "src/utilities/shortcut.ts"
|
|
41284
|
+
}
|
|
41285
|
+
},
|
|
41286
|
+
{
|
|
41287
|
+
"kind": "js",
|
|
41288
|
+
"name": "shortcutLabel",
|
|
41289
|
+
"declaration": {
|
|
41290
|
+
"name": "shortcutLabel",
|
|
41291
|
+
"module": "src/utilities/shortcut.ts"
|
|
41292
|
+
}
|
|
41293
|
+
}
|
|
41294
|
+
]
|
|
41295
|
+
},
|
|
40563
41296
|
{
|
|
40564
41297
|
"kind": "javascript-module",
|
|
40565
41298
|
"path": "src/utilities/spacing-scale.ts",
|