@nordhealth/components 2.14.1 → 2.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 +1593 -1593
- package/lib/{AutocompleteMixin-5163f8db.js → AutocompleteMixin-c8018288.js} +2 -2
- package/lib/{AutocompleteMixin-5163f8db.js.map → AutocompleteMixin-c8018288.js.map} +1 -1
- package/lib/Avatar.js +1 -1
- package/lib/Badge.js +1 -1
- package/lib/Badge.js.map +1 -1
- package/lib/Banner.js +1 -1
- package/lib/Banner.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/ButtonGroup.js +1 -1
- package/lib/Calendar-55de6612.js +2 -0
- package/lib/Calendar-55de6612.js.map +1 -0
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +1 -1
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/CommandMenuAction.js.map +1 -1
- package/lib/{Component-449e40fb.js → Component-d4d6fa77.js} +2 -2
- package/lib/Component-d4d6fa77.js.map +1 -0
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/Divider.js +1 -1
- package/lib/Divider.js.map +1 -1
- package/lib/Drawer.js +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/Dropdown.js.map +1 -1
- package/lib/DropdownGroup.js +1 -1
- package/lib/DropdownItem.js +1 -1
- package/lib/EmptyState.js +1 -1
- package/lib/Fieldset.js +1 -1
- package/lib/FocusableMixin-fc1e2a13.js +2 -0
- package/lib/{FocusableMixin-32631bff.js.map → FocusableMixin-fc1e2a13.js.map} +1 -1
- package/lib/{FormAssociatedMixin-dc7ee1d9.js → FormAssociatedMixin-ad4d6c08.js} +2 -2
- package/lib/{FormAssociatedMixin-dc7ee1d9.js.map → FormAssociatedMixin-ad4d6c08.js.map} +1 -1
- package/lib/{FormField-413f22f5.js → FormField-c733b196.js} +2 -2
- package/lib/FormField-c733b196.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Icon.js +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/{InputMixin-7fa755e1.js → InputMixin-1564ca2a.js} +2 -2
- package/lib/{InputMixin-7fa755e1.js.map → InputMixin-1564ca2a.js.map} +1 -1
- package/lib/Layout.js +1 -1
- package/lib/{LightDomController-052f446a.js → LightDomController-3b7b1f44.js} +2 -2
- package/lib/{LightDomController-052f446a.js.map → LightDomController-3b7b1f44.js.map} +1 -1
- package/lib/Modal.js +1 -1
- package/lib/NavGroup.js +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavToggle.js +1 -1
- package/lib/NavToggle.js.map +1 -1
- package/lib/Navigation.js +1 -1
- package/lib/{Popout-4584e406.js → Popout-66e0a6a6.js} +2 -2
- package/lib/{Popout-4584e406.js.map → Popout-66e0a6a6.js.map} +1 -1
- package/lib/Popout.js +1 -1
- package/lib/ProgressBar.js +1 -1
- package/lib/Qrcode.js +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Range.js +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/{SizeMixin-4d04817d.js → SizeMixin-9da6dc81.js} +2 -2
- package/lib/{SizeMixin-4d04817d.js.map → SizeMixin-9da6dc81.js.map} +1 -1
- package/lib/Skeleton.js +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Stack.js +1 -1
- package/lib/{Sticky-c4cf185e.js → Sticky-64b0b58a.js} +2 -2
- package/lib/Sticky-64b0b58a.js.map +1 -0
- package/lib/Tab.js +1 -1
- package/lib/TabGroup.js +1 -1
- package/lib/TabPanel.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/{TextField-ca819c35.js → TextField-6a272cd7.js} +2 -2
- package/lib/{TextField-ca819c35.js.map → TextField-6a272cd7.js.map} +1 -1
- package/lib/Textarea.js +1 -1
- package/lib/Toast.js +1 -1
- package/lib/Toast.js.map +1 -1
- package/lib/ToastGroup.js +1 -1
- package/lib/Toggle.js +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/bundle.js +11 -12
- package/lib/bundle.js.map +1 -1
- package/lib/class-map-1bc3148f.js +7 -0
- package/lib/{class-map-21152cee.js.map → class-map-1bc3148f.js.map} +1 -1
- package/lib/{collection-7eee4e72.js → collection-a0cd49b2.js} +2 -2
- package/lib/{collection-7eee4e72.js.map → collection-a0cd49b2.js.map} +1 -1
- package/lib/cond-8e7df9cf.js +2 -0
- package/lib/{cond-2da54107.js.map → cond-8e7df9cf.js.map} +1 -1
- package/lib/{if-defined-720964c0.js → if-defined-718a58b2.js} +2 -2
- package/lib/{if-defined-720964c0.js.map → if-defined-718a58b2.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/interface-close-small-f26b0299.js +2 -0
- package/lib/interface-close-small-f26b0299.js.map +1 -0
- package/lib/positioning-acf73137.js +2 -0
- package/lib/positioning-acf73137.js.map +1 -0
- package/lib/query-assigned-elements-89f41e17.js +34 -0
- package/lib/query-assigned-elements-89f41e17.js.map +1 -0
- package/lib/{ref-c44e9f3c.js → ref-4265fcf9.js} +4 -4
- package/lib/{ref-c44e9f3c.js.map → ref-4265fcf9.js.map} +1 -1
- package/lib/{style-map-2e8fcab6.js → style-map-c63c0180.js} +2 -2
- package/lib/{style-map-2e8fcab6.js.map → style-map-c63c0180.js.map} +1 -1
- package/package.json +3 -3
- package/lib/Calendar-82dc5980.js +0 -2
- package/lib/Calendar-82dc5980.js.map +0 -1
- package/lib/Component-449e40fb.js.map +0 -1
- package/lib/FocusableMixin-32631bff.js +0 -2
- package/lib/FormField-413f22f5.js.map +0 -1
- package/lib/Sticky-c4cf185e.js.map +0 -1
- package/lib/class-map-21152cee.js +0 -7
- package/lib/cond-2da54107.js +0 -2
- package/lib/interface-close-small-44ababc3.js +0 -2
- package/lib/interface-close-small-44ababc3.js.map +0 -1
- package/lib/positioning-3bbd3548.js +0 -2
- package/lib/positioning-3bbd3548.js.map +0 -1
- package/lib/query-assigned-elements-cf502539.js +0 -35
- package/lib/query-assigned-elements-cf502539.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -568,93 +568,6 @@
|
|
|
568
568
|
}
|
|
569
569
|
]
|
|
570
570
|
},
|
|
571
|
-
{
|
|
572
|
-
"kind": "javascript-module",
|
|
573
|
-
"path": "src/badge/Badge.ts",
|
|
574
|
-
"declarations": [
|
|
575
|
-
{
|
|
576
|
-
"kind": "class",
|
|
577
|
-
"description": "Badges are used to inform users of the status of an object\nor of an action that’s been taken. Commonly used in tabular\ndata to indicate status.",
|
|
578
|
-
"name": "Badge",
|
|
579
|
-
"slots": [
|
|
580
|
-
{
|
|
581
|
-
"description": "The badge content.",
|
|
582
|
-
"name": ""
|
|
583
|
-
}
|
|
584
|
-
],
|
|
585
|
-
"members": [
|
|
586
|
-
{
|
|
587
|
-
"kind": "field",
|
|
588
|
-
"name": "type",
|
|
589
|
-
"type": {
|
|
590
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
591
|
-
},
|
|
592
|
-
"default": "\"neutral\"",
|
|
593
|
-
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
594
|
-
"attribute": "type",
|
|
595
|
-
"reflects": true
|
|
596
|
-
},
|
|
597
|
-
{
|
|
598
|
-
"kind": "field",
|
|
599
|
-
"name": "progress",
|
|
600
|
-
"type": {
|
|
601
|
-
"text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
|
|
602
|
-
},
|
|
603
|
-
"description": "The progress of the badge. Displays a progress\nindicator next to the label.",
|
|
604
|
-
"attribute": "progress"
|
|
605
|
-
}
|
|
606
|
-
],
|
|
607
|
-
"attributes": [
|
|
608
|
-
{
|
|
609
|
-
"name": "type",
|
|
610
|
-
"type": {
|
|
611
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
612
|
-
},
|
|
613
|
-
"default": "\"neutral\"",
|
|
614
|
-
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
615
|
-
"fieldName": "type"
|
|
616
|
-
},
|
|
617
|
-
{
|
|
618
|
-
"name": "progress",
|
|
619
|
-
"type": {
|
|
620
|
-
"text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
|
|
621
|
-
},
|
|
622
|
-
"description": "The progress of the badge. Displays a progress\nindicator next to the label.",
|
|
623
|
-
"fieldName": "progress"
|
|
624
|
-
}
|
|
625
|
-
],
|
|
626
|
-
"superclass": {
|
|
627
|
-
"name": "LitElement",
|
|
628
|
-
"package": "lit"
|
|
629
|
-
},
|
|
630
|
-
"localization": [],
|
|
631
|
-
"status": "ready",
|
|
632
|
-
"category": "text",
|
|
633
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use established variants and color patterns so that users can clearly identify the importance level.\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `neutral` | The default style variant. |\n| `info` | Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n| `progress` | Used to convey something that’s in progress. |\n",
|
|
634
|
-
"examples": [],
|
|
635
|
-
"tagName": "nord-badge",
|
|
636
|
-
"customElement": true
|
|
637
|
-
}
|
|
638
|
-
],
|
|
639
|
-
"exports": [
|
|
640
|
-
{
|
|
641
|
-
"kind": "js",
|
|
642
|
-
"name": "default",
|
|
643
|
-
"declaration": {
|
|
644
|
-
"name": "Badge",
|
|
645
|
-
"module": "src/badge/Badge.ts"
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
{
|
|
649
|
-
"kind": "custom-element-definition",
|
|
650
|
-
"name": "nord-badge",
|
|
651
|
-
"declaration": {
|
|
652
|
-
"name": "Badge",
|
|
653
|
-
"module": "src/badge/Badge.ts"
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
]
|
|
657
|
-
},
|
|
658
571
|
{
|
|
659
572
|
"kind": "javascript-module",
|
|
660
573
|
"path": "src/banner/Banner.ts",
|
|
@@ -1401,432 +1314,744 @@
|
|
|
1401
1314
|
},
|
|
1402
1315
|
{
|
|
1403
1316
|
"kind": "javascript-module",
|
|
1404
|
-
"path": "src/
|
|
1317
|
+
"path": "src/badge/Badge.ts",
|
|
1405
1318
|
"declarations": [
|
|
1406
1319
|
{
|
|
1407
1320
|
"kind": "class",
|
|
1408
|
-
"description": "
|
|
1409
|
-
"name": "
|
|
1410
|
-
"
|
|
1411
|
-
{
|
|
1412
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
1413
|
-
"name": "--n-calendar-border-radius",
|
|
1414
|
-
"default": "var(--n-border-radius)"
|
|
1415
|
-
},
|
|
1321
|
+
"description": "Badges are used to inform users of the status of an object\nor of an action that’s been taken. Commonly used in tabular\ndata to indicate status.",
|
|
1322
|
+
"name": "Badge",
|
|
1323
|
+
"slots": [
|
|
1416
1324
|
{
|
|
1417
|
-
"description": "
|
|
1418
|
-
"name": "
|
|
1419
|
-
"default": "var(--n-box-shadow-popout)"
|
|
1325
|
+
"description": "The badge content.",
|
|
1326
|
+
"name": ""
|
|
1420
1327
|
}
|
|
1421
1328
|
],
|
|
1422
1329
|
"members": [
|
|
1423
1330
|
{
|
|
1424
1331
|
"kind": "field",
|
|
1425
|
-
"name": "
|
|
1332
|
+
"name": "type",
|
|
1426
1333
|
"type": {
|
|
1427
|
-
"text": "
|
|
1334
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
1428
1335
|
},
|
|
1429
|
-
"
|
|
1336
|
+
"default": "\"neutral\"",
|
|
1337
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
1338
|
+
"attribute": "type",
|
|
1339
|
+
"reflects": true
|
|
1430
1340
|
},
|
|
1431
1341
|
{
|
|
1432
1342
|
"kind": "field",
|
|
1433
|
-
"name": "
|
|
1343
|
+
"name": "progress",
|
|
1434
1344
|
"type": {
|
|
1435
|
-
"text": "
|
|
1345
|
+
"text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
|
|
1436
1346
|
},
|
|
1437
|
-
"
|
|
1438
|
-
|
|
1347
|
+
"description": "The progress of the badge. Displays a progress\nindicator next to the label.",
|
|
1348
|
+
"attribute": "progress"
|
|
1349
|
+
}
|
|
1350
|
+
],
|
|
1351
|
+
"attributes": [
|
|
1439
1352
|
{
|
|
1440
|
-
"
|
|
1441
|
-
"
|
|
1442
|
-
|
|
1443
|
-
|
|
1353
|
+
"name": "type",
|
|
1354
|
+
"type": {
|
|
1355
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | \"neutral\" | \"progress\" | undefined"
|
|
1356
|
+
},
|
|
1357
|
+
"default": "\"neutral\"",
|
|
1358
|
+
"description": "The type of badge.\nDetermines the background color of the badge.",
|
|
1359
|
+
"fieldName": "type"
|
|
1444
1360
|
},
|
|
1445
1361
|
{
|
|
1446
|
-
"
|
|
1447
|
-
"
|
|
1448
|
-
|
|
1449
|
-
|
|
1362
|
+
"name": "progress",
|
|
1363
|
+
"type": {
|
|
1364
|
+
"text": "\"cancelled\" | \"complete\" | \"incomplete\" | \"partially-complete\" | undefined"
|
|
1365
|
+
},
|
|
1366
|
+
"description": "The progress of the badge. Displays a progress\nindicator next to the label.",
|
|
1367
|
+
"fieldName": "progress"
|
|
1368
|
+
}
|
|
1369
|
+
],
|
|
1370
|
+
"superclass": {
|
|
1371
|
+
"name": "LitElement",
|
|
1372
|
+
"package": "lit"
|
|
1373
|
+
},
|
|
1374
|
+
"localization": [],
|
|
1375
|
+
"status": "ready",
|
|
1376
|
+
"category": "text",
|
|
1377
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use established variants and color patterns so that users can clearly identify the importance level.\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `neutral` | The default style variant. |\n| `info` | Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n| `progress` | Used to convey something that’s in progress. |\n",
|
|
1378
|
+
"examples": [],
|
|
1379
|
+
"tagName": "nord-badge",
|
|
1380
|
+
"customElement": true
|
|
1381
|
+
}
|
|
1382
|
+
],
|
|
1383
|
+
"exports": [
|
|
1384
|
+
{
|
|
1385
|
+
"kind": "js",
|
|
1386
|
+
"name": "default",
|
|
1387
|
+
"declaration": {
|
|
1388
|
+
"name": "Badge",
|
|
1389
|
+
"module": "src/badge/Badge.ts"
|
|
1390
|
+
}
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"kind": "custom-element-definition",
|
|
1394
|
+
"name": "nord-badge",
|
|
1395
|
+
"declaration": {
|
|
1396
|
+
"name": "Badge",
|
|
1397
|
+
"module": "src/badge/Badge.ts"
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
]
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"kind": "javascript-module",
|
|
1404
|
+
"path": "src/checkbox/Checkbox.ts",
|
|
1405
|
+
"declarations": [
|
|
1406
|
+
{
|
|
1407
|
+
"kind": "class",
|
|
1408
|
+
"description": "Checkboxes allow user to choose one or more options from a limited set of options.\nIf you have more than 10 options, please use Select component instead.",
|
|
1409
|
+
"name": "Checkbox",
|
|
1410
|
+
"slots": [
|
|
1411
|
+
{
|
|
1412
|
+
"description": "Use when a label requires more than plain text.",
|
|
1413
|
+
"name": "label"
|
|
1450
1414
|
},
|
|
1451
1415
|
{
|
|
1452
|
-
"
|
|
1453
|
-
"name": "
|
|
1454
|
-
"privacy": "private"
|
|
1416
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
1417
|
+
"name": "hint"
|
|
1455
1418
|
},
|
|
1419
|
+
{
|
|
1420
|
+
"description": "Optional slot that holds error text for the input.",
|
|
1421
|
+
"name": "error"
|
|
1422
|
+
}
|
|
1423
|
+
],
|
|
1424
|
+
"members": [
|
|
1456
1425
|
{
|
|
1457
1426
|
"kind": "field",
|
|
1458
|
-
"name": "
|
|
1459
|
-
"privacy": "
|
|
1460
|
-
"
|
|
1427
|
+
"name": "formValue",
|
|
1428
|
+
"privacy": "protected",
|
|
1429
|
+
"inheritedFrom": {
|
|
1430
|
+
"name": "FormAssociatedMixin",
|
|
1431
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1432
|
+
}
|
|
1461
1433
|
},
|
|
1462
1434
|
{
|
|
1463
1435
|
"kind": "field",
|
|
1464
|
-
"name": "
|
|
1436
|
+
"name": "indeterminate",
|
|
1465
1437
|
"type": {
|
|
1466
|
-
"text": "
|
|
1438
|
+
"text": "boolean"
|
|
1467
1439
|
},
|
|
1468
|
-
"
|
|
1469
|
-
"description": "
|
|
1440
|
+
"default": "false",
|
|
1441
|
+
"description": "Controls whether the checkbox is in an indeterminate state.",
|
|
1442
|
+
"attribute": "indeterminate"
|
|
1470
1443
|
},
|
|
1471
1444
|
{
|
|
1472
1445
|
"kind": "field",
|
|
1473
|
-
"name": "
|
|
1446
|
+
"name": "checked",
|
|
1474
1447
|
"type": {
|
|
1475
|
-
"text": "
|
|
1448
|
+
"text": "boolean"
|
|
1476
1449
|
},
|
|
1477
|
-
"
|
|
1450
|
+
"default": "false",
|
|
1451
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
1452
|
+
"attribute": "checked"
|
|
1478
1453
|
},
|
|
1479
1454
|
{
|
|
1480
|
-
"kind": "
|
|
1481
|
-
"name": "
|
|
1482
|
-
"
|
|
1483
|
-
|
|
1455
|
+
"kind": "method",
|
|
1456
|
+
"name": "handleChange",
|
|
1457
|
+
"privacy": "protected",
|
|
1458
|
+
"parameters": [
|
|
1459
|
+
{
|
|
1460
|
+
"name": "e",
|
|
1461
|
+
"type": {
|
|
1462
|
+
"text": "Event"
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
],
|
|
1466
|
+
"return": {
|
|
1467
|
+
"type": {
|
|
1468
|
+
"text": "void"
|
|
1469
|
+
}
|
|
1484
1470
|
},
|
|
1485
|
-
"
|
|
1471
|
+
"inheritedFrom": {
|
|
1472
|
+
"name": "FormAssociatedMixin",
|
|
1473
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1474
|
+
}
|
|
1486
1475
|
},
|
|
1487
1476
|
{
|
|
1488
1477
|
"kind": "field",
|
|
1489
|
-
"name": "
|
|
1478
|
+
"name": "size",
|
|
1490
1479
|
"type": {
|
|
1491
|
-
"text": "
|
|
1480
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
1492
1481
|
},
|
|
1493
|
-
"
|
|
1482
|
+
"default": "\"m\"",
|
|
1483
|
+
"description": "The size of the component.",
|
|
1484
|
+
"attribute": "size",
|
|
1485
|
+
"reflects": true,
|
|
1486
|
+
"inheritedFrom": {
|
|
1487
|
+
"name": "SizeMixin",
|
|
1488
|
+
"module": "src/common/mixins/SizeMixin.ts"
|
|
1489
|
+
}
|
|
1494
1490
|
},
|
|
1495
1491
|
{
|
|
1496
1492
|
"kind": "field",
|
|
1497
|
-
"name": "
|
|
1493
|
+
"name": "labelSlot",
|
|
1494
|
+
"privacy": "protected",
|
|
1495
|
+
"default": "new SlotController(this, \"label\")",
|
|
1496
|
+
"inheritedFrom": {
|
|
1497
|
+
"name": "FormAssociatedMixin",
|
|
1498
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1499
|
+
}
|
|
1500
|
+
},
|
|
1501
|
+
{
|
|
1502
|
+
"kind": "field",
|
|
1503
|
+
"name": "errorSlot",
|
|
1504
|
+
"privacy": "protected",
|
|
1505
|
+
"default": "new SlotController(this, \"error\")",
|
|
1506
|
+
"inheritedFrom": {
|
|
1507
|
+
"name": "FormAssociatedMixin",
|
|
1508
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1509
|
+
}
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"kind": "field",
|
|
1513
|
+
"name": "hintSlot",
|
|
1514
|
+
"privacy": "protected",
|
|
1515
|
+
"default": "new SlotController(this, \"hint\")",
|
|
1516
|
+
"inheritedFrom": {
|
|
1517
|
+
"name": "FormAssociatedMixin",
|
|
1518
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1519
|
+
}
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"kind": "field",
|
|
1523
|
+
"name": "formData",
|
|
1524
|
+
"privacy": "protected",
|
|
1525
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
1526
|
+
"inheritedFrom": {
|
|
1527
|
+
"name": "FormAssociatedMixin",
|
|
1528
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1529
|
+
}
|
|
1530
|
+
},
|
|
1531
|
+
{
|
|
1532
|
+
"kind": "field",
|
|
1533
|
+
"name": "inputId",
|
|
1498
1534
|
"type": {
|
|
1499
|
-
"text": "string
|
|
1535
|
+
"text": "string"
|
|
1500
1536
|
},
|
|
1501
|
-
"privacy": "
|
|
1537
|
+
"privacy": "protected",
|
|
1538
|
+
"default": "\"input\"",
|
|
1539
|
+
"inheritedFrom": {
|
|
1540
|
+
"name": "FormAssociatedMixin",
|
|
1541
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1542
|
+
}
|
|
1502
1543
|
},
|
|
1503
1544
|
{
|
|
1504
1545
|
"kind": "field",
|
|
1505
|
-
"name": "
|
|
1546
|
+
"name": "errorId",
|
|
1506
1547
|
"type": {
|
|
1507
1548
|
"text": "string"
|
|
1508
1549
|
},
|
|
1509
|
-
"
|
|
1510
|
-
"
|
|
1511
|
-
"
|
|
1550
|
+
"privacy": "protected",
|
|
1551
|
+
"default": "\"error\"",
|
|
1552
|
+
"inheritedFrom": {
|
|
1553
|
+
"name": "FormAssociatedMixin",
|
|
1554
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1555
|
+
}
|
|
1512
1556
|
},
|
|
1513
1557
|
{
|
|
1514
1558
|
"kind": "field",
|
|
1515
|
-
"name": "
|
|
1559
|
+
"name": "hintId",
|
|
1516
1560
|
"type": {
|
|
1517
|
-
"text": "
|
|
1561
|
+
"text": "string"
|
|
1518
1562
|
},
|
|
1519
|
-
"
|
|
1520
|
-
"
|
|
1563
|
+
"privacy": "protected",
|
|
1564
|
+
"default": "\"hint\"",
|
|
1565
|
+
"inheritedFrom": {
|
|
1566
|
+
"name": "FormAssociatedMixin",
|
|
1567
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1568
|
+
}
|
|
1521
1569
|
},
|
|
1522
1570
|
{
|
|
1523
1571
|
"kind": "field",
|
|
1524
|
-
"name": "
|
|
1572
|
+
"name": "label",
|
|
1525
1573
|
"type": {
|
|
1526
1574
|
"text": "string"
|
|
1527
1575
|
},
|
|
1528
1576
|
"default": "\"\"",
|
|
1529
|
-
"description": "
|
|
1530
|
-
"attribute": "
|
|
1577
|
+
"description": "Label for the input.",
|
|
1578
|
+
"attribute": "label",
|
|
1579
|
+
"inheritedFrom": {
|
|
1580
|
+
"name": "FormAssociatedMixin",
|
|
1581
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1582
|
+
}
|
|
1531
1583
|
},
|
|
1532
1584
|
{
|
|
1533
1585
|
"kind": "field",
|
|
1534
|
-
"name": "
|
|
1586
|
+
"name": "hint",
|
|
1535
1587
|
"type": {
|
|
1536
|
-
"text": "string"
|
|
1588
|
+
"text": "string | undefined"
|
|
1537
1589
|
},
|
|
1538
|
-
"
|
|
1539
|
-
"
|
|
1540
|
-
"
|
|
1590
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
1591
|
+
"attribute": "hint",
|
|
1592
|
+
"inheritedFrom": {
|
|
1593
|
+
"name": "FormAssociatedMixin",
|
|
1594
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1595
|
+
}
|
|
1541
1596
|
},
|
|
1542
1597
|
{
|
|
1543
1598
|
"kind": "field",
|
|
1544
|
-
"name": "
|
|
1599
|
+
"name": "hideLabel",
|
|
1545
1600
|
"type": {
|
|
1546
1601
|
"text": "boolean"
|
|
1547
1602
|
},
|
|
1548
1603
|
"default": "false",
|
|
1549
|
-
"description": "
|
|
1550
|
-
"attribute": "
|
|
1551
|
-
"
|
|
1604
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
1605
|
+
"attribute": "hide-label",
|
|
1606
|
+
"inheritedFrom": {
|
|
1607
|
+
"name": "FormAssociatedMixin",
|
|
1608
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1609
|
+
}
|
|
1552
1610
|
},
|
|
1553
1611
|
{
|
|
1554
1612
|
"kind": "field",
|
|
1555
|
-
"name": "
|
|
1613
|
+
"name": "placeholder",
|
|
1556
1614
|
"type": {
|
|
1557
|
-
"text": "
|
|
1615
|
+
"text": "string | undefined"
|
|
1558
1616
|
},
|
|
1559
|
-
"
|
|
1560
|
-
"
|
|
1617
|
+
"description": "Placeholder text to display within the input.",
|
|
1618
|
+
"attribute": "placeholder",
|
|
1619
|
+
"inheritedFrom": {
|
|
1620
|
+
"name": "FormAssociatedMixin",
|
|
1621
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1622
|
+
}
|
|
1561
1623
|
},
|
|
1562
1624
|
{
|
|
1563
1625
|
"kind": "field",
|
|
1564
|
-
"name": "
|
|
1626
|
+
"name": "error",
|
|
1565
1627
|
"type": {
|
|
1566
|
-
"text": "
|
|
1628
|
+
"text": "string | undefined"
|
|
1567
1629
|
},
|
|
1568
|
-
"
|
|
1569
|
-
"
|
|
1630
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
1631
|
+
"attribute": "error",
|
|
1632
|
+
"inheritedFrom": {
|
|
1633
|
+
"name": "FormAssociatedMixin",
|
|
1634
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1635
|
+
}
|
|
1570
1636
|
},
|
|
1571
1637
|
{
|
|
1572
1638
|
"kind": "field",
|
|
1573
|
-
"name": "
|
|
1639
|
+
"name": "required",
|
|
1574
1640
|
"type": {
|
|
1575
1641
|
"text": "boolean"
|
|
1576
1642
|
},
|
|
1577
|
-
"
|
|
1578
|
-
"
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
"default": "new Date()"
|
|
1585
|
-
},
|
|
1586
|
-
{
|
|
1587
|
-
"kind": "method",
|
|
1588
|
-
"name": "focus",
|
|
1589
|
-
"parameters": [
|
|
1590
|
-
{
|
|
1591
|
-
"name": "options",
|
|
1592
|
-
"optional": true,
|
|
1593
|
-
"type": {
|
|
1594
|
-
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
1595
|
-
},
|
|
1596
|
-
"description": "An object which controls aspects of the focusing process."
|
|
1597
|
-
}
|
|
1598
|
-
],
|
|
1599
|
-
"description": "Programmatically move focus to the calendar."
|
|
1600
|
-
},
|
|
1601
|
-
{
|
|
1602
|
-
"kind": "method",
|
|
1603
|
-
"name": "handleValueChange",
|
|
1604
|
-
"privacy": "protected"
|
|
1605
|
-
},
|
|
1606
|
-
{
|
|
1607
|
-
"kind": "method",
|
|
1608
|
-
"name": "handleFocusedDayChange",
|
|
1609
|
-
"privacy": "protected"
|
|
1610
|
-
},
|
|
1611
|
-
{
|
|
1612
|
-
"kind": "method",
|
|
1613
|
-
"name": "handleLangChange",
|
|
1614
|
-
"privacy": "private"
|
|
1643
|
+
"default": "false",
|
|
1644
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
1645
|
+
"attribute": "required",
|
|
1646
|
+
"inheritedFrom": {
|
|
1647
|
+
"name": "FormAssociatedMixin",
|
|
1648
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1649
|
+
}
|
|
1615
1650
|
},
|
|
1616
1651
|
{
|
|
1617
1652
|
"kind": "field",
|
|
1618
|
-
"name": "
|
|
1619
|
-
"
|
|
1653
|
+
"name": "hideRequired",
|
|
1654
|
+
"type": {
|
|
1655
|
+
"text": "boolean"
|
|
1656
|
+
},
|
|
1657
|
+
"default": "false",
|
|
1658
|
+
"description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
|
|
1659
|
+
"attribute": "hide-required",
|
|
1660
|
+
"inheritedFrom": {
|
|
1661
|
+
"name": "FormAssociatedMixin",
|
|
1662
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1663
|
+
}
|
|
1620
1664
|
},
|
|
1621
1665
|
{
|
|
1622
1666
|
"kind": "method",
|
|
1623
|
-
"name": "
|
|
1624
|
-
"privacy": "
|
|
1667
|
+
"name": "handleInput",
|
|
1668
|
+
"privacy": "protected",
|
|
1625
1669
|
"parameters": [
|
|
1626
1670
|
{
|
|
1627
|
-
"name": "
|
|
1671
|
+
"name": "e",
|
|
1628
1672
|
"type": {
|
|
1629
|
-
"text": "
|
|
1673
|
+
"text": "Event"
|
|
1630
1674
|
}
|
|
1631
1675
|
}
|
|
1632
|
-
]
|
|
1676
|
+
],
|
|
1677
|
+
"inheritedFrom": {
|
|
1678
|
+
"name": "FormAssociatedMixin",
|
|
1679
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1680
|
+
}
|
|
1633
1681
|
},
|
|
1634
1682
|
{
|
|
1635
1683
|
"kind": "method",
|
|
1636
|
-
"name": "
|
|
1637
|
-
"privacy": "
|
|
1684
|
+
"name": "renderLabel",
|
|
1685
|
+
"privacy": "protected",
|
|
1638
1686
|
"parameters": [
|
|
1639
1687
|
{
|
|
1640
|
-
"name": "
|
|
1688
|
+
"name": "additionalContent",
|
|
1689
|
+
"optional": true,
|
|
1641
1690
|
"type": {
|
|
1642
|
-
"text": "
|
|
1691
|
+
"text": "TemplateResult"
|
|
1643
1692
|
}
|
|
1644
1693
|
}
|
|
1645
|
-
]
|
|
1694
|
+
],
|
|
1695
|
+
"inheritedFrom": {
|
|
1696
|
+
"name": "FormAssociatedMixin",
|
|
1697
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1698
|
+
}
|
|
1646
1699
|
},
|
|
1647
1700
|
{
|
|
1648
1701
|
"kind": "method",
|
|
1649
|
-
"name": "
|
|
1650
|
-
"privacy": "
|
|
1651
|
-
"
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
"text": "number"
|
|
1656
|
-
}
|
|
1657
|
-
}
|
|
1658
|
-
]
|
|
1702
|
+
"name": "renderError",
|
|
1703
|
+
"privacy": "protected",
|
|
1704
|
+
"inheritedFrom": {
|
|
1705
|
+
"name": "FormAssociatedMixin",
|
|
1706
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1707
|
+
}
|
|
1659
1708
|
},
|
|
1660
1709
|
{
|
|
1661
1710
|
"kind": "method",
|
|
1662
|
-
"name": "
|
|
1663
|
-
"privacy": "
|
|
1711
|
+
"name": "getDescribedBy",
|
|
1712
|
+
"privacy": "protected",
|
|
1713
|
+
"inheritedFrom": {
|
|
1714
|
+
"name": "FormAssociatedMixin",
|
|
1715
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1716
|
+
}
|
|
1664
1717
|
},
|
|
1665
1718
|
{
|
|
1666
1719
|
"kind": "method",
|
|
1667
|
-
"name": "
|
|
1668
|
-
"privacy": "
|
|
1720
|
+
"name": "getInvalid",
|
|
1721
|
+
"privacy": "protected",
|
|
1722
|
+
"inheritedFrom": {
|
|
1723
|
+
"name": "FormAssociatedMixin",
|
|
1724
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1725
|
+
}
|
|
1669
1726
|
},
|
|
1670
1727
|
{
|
|
1671
|
-
"kind": "
|
|
1672
|
-
"name": "
|
|
1673
|
-
"privacy": "
|
|
1674
|
-
"
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
"text": "number"
|
|
1679
|
-
}
|
|
1680
|
-
}
|
|
1681
|
-
]
|
|
1728
|
+
"kind": "field",
|
|
1729
|
+
"name": "hasHint",
|
|
1730
|
+
"privacy": "protected",
|
|
1731
|
+
"inheritedFrom": {
|
|
1732
|
+
"name": "FormAssociatedMixin",
|
|
1733
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1734
|
+
}
|
|
1682
1735
|
},
|
|
1683
1736
|
{
|
|
1684
|
-
"kind": "
|
|
1685
|
-
"name": "
|
|
1686
|
-
"privacy": "
|
|
1687
|
-
"
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
"text": "number"
|
|
1692
|
-
}
|
|
1693
|
-
}
|
|
1694
|
-
]
|
|
1737
|
+
"kind": "field",
|
|
1738
|
+
"name": "hasError",
|
|
1739
|
+
"privacy": "protected",
|
|
1740
|
+
"inheritedFrom": {
|
|
1741
|
+
"name": "FormAssociatedMixin",
|
|
1742
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1743
|
+
}
|
|
1695
1744
|
},
|
|
1696
1745
|
{
|
|
1697
|
-
"kind": "
|
|
1698
|
-
"name": "
|
|
1699
|
-
"
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1746
|
+
"kind": "field",
|
|
1747
|
+
"name": "disabled",
|
|
1748
|
+
"type": {
|
|
1749
|
+
"text": "boolean"
|
|
1750
|
+
},
|
|
1751
|
+
"default": "false",
|
|
1752
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1753
|
+
"attribute": "disabled",
|
|
1754
|
+
"reflects": true,
|
|
1755
|
+
"inheritedFrom": {
|
|
1756
|
+
"name": "InputMixin",
|
|
1757
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1758
|
+
}
|
|
1708
1759
|
},
|
|
1709
1760
|
{
|
|
1710
1761
|
"kind": "field",
|
|
1711
|
-
"name": "
|
|
1712
|
-
"
|
|
1762
|
+
"name": "name",
|
|
1763
|
+
"type": {
|
|
1764
|
+
"text": "string | undefined"
|
|
1765
|
+
},
|
|
1766
|
+
"description": "The name of the form component.",
|
|
1767
|
+
"attribute": "name",
|
|
1768
|
+
"inheritedFrom": {
|
|
1769
|
+
"name": "InputMixin",
|
|
1770
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1771
|
+
}
|
|
1713
1772
|
},
|
|
1714
1773
|
{
|
|
1715
1774
|
"kind": "field",
|
|
1716
|
-
"name": "
|
|
1717
|
-
"
|
|
1775
|
+
"name": "value",
|
|
1776
|
+
"type": {
|
|
1777
|
+
"text": "string"
|
|
1778
|
+
},
|
|
1779
|
+
"default": "\"\"",
|
|
1780
|
+
"description": "The value of the form component.",
|
|
1781
|
+
"attribute": "value",
|
|
1782
|
+
"inheritedFrom": {
|
|
1783
|
+
"name": "InputMixin",
|
|
1784
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1785
|
+
}
|
|
1718
1786
|
},
|
|
1719
1787
|
{
|
|
1720
1788
|
"kind": "field",
|
|
1721
|
-
"name": "
|
|
1722
|
-
"
|
|
1789
|
+
"name": "form",
|
|
1790
|
+
"description": "Gets the form, if any, associated with the form element.",
|
|
1791
|
+
"inheritedFrom": {
|
|
1792
|
+
"name": "InputMixin",
|
|
1793
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1794
|
+
}
|
|
1723
1795
|
},
|
|
1724
1796
|
{
|
|
1725
1797
|
"kind": "field",
|
|
1726
|
-
"name": "
|
|
1727
|
-
"privacy": "
|
|
1798
|
+
"name": "focusableRef",
|
|
1799
|
+
"privacy": "protected",
|
|
1800
|
+
"inheritedFrom": {
|
|
1801
|
+
"name": "FocusableMixin",
|
|
1802
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1803
|
+
}
|
|
1728
1804
|
},
|
|
1729
1805
|
{
|
|
1730
|
-
"kind": "
|
|
1731
|
-
"name": "
|
|
1732
|
-
"
|
|
1806
|
+
"kind": "method",
|
|
1807
|
+
"name": "focus",
|
|
1808
|
+
"parameters": [
|
|
1809
|
+
{
|
|
1810
|
+
"name": "options",
|
|
1811
|
+
"optional": true,
|
|
1812
|
+
"type": {
|
|
1813
|
+
"text": "FocusOptions"
|
|
1814
|
+
},
|
|
1815
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1816
|
+
}
|
|
1817
|
+
],
|
|
1818
|
+
"description": "Programmatically move focus to the component.",
|
|
1819
|
+
"inheritedFrom": {
|
|
1820
|
+
"name": "FocusableMixin",
|
|
1821
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1822
|
+
}
|
|
1733
1823
|
},
|
|
1734
1824
|
{
|
|
1735
|
-
"kind": "
|
|
1736
|
-
"name": "
|
|
1737
|
-
"
|
|
1825
|
+
"kind": "method",
|
|
1826
|
+
"name": "blur",
|
|
1827
|
+
"description": "Programmatically remove focus from the component.",
|
|
1828
|
+
"inheritedFrom": {
|
|
1829
|
+
"name": "FocusableMixin",
|
|
1830
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1831
|
+
}
|
|
1832
|
+
},
|
|
1833
|
+
{
|
|
1834
|
+
"kind": "method",
|
|
1835
|
+
"name": "click",
|
|
1836
|
+
"description": "Programmatically simulates a click on the component.",
|
|
1837
|
+
"inheritedFrom": {
|
|
1838
|
+
"name": "FocusableMixin",
|
|
1839
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1840
|
+
}
|
|
1738
1841
|
}
|
|
1739
1842
|
],
|
|
1740
|
-
"
|
|
1843
|
+
"attributes": [
|
|
1741
1844
|
{
|
|
1742
|
-
"name": "
|
|
1845
|
+
"name": "indeterminate",
|
|
1743
1846
|
"type": {
|
|
1744
|
-
"text": "
|
|
1847
|
+
"text": "boolean"
|
|
1745
1848
|
},
|
|
1746
|
-
"
|
|
1849
|
+
"default": "false",
|
|
1850
|
+
"description": "Controls whether the checkbox is in an indeterminate state.",
|
|
1851
|
+
"fieldName": "indeterminate"
|
|
1747
1852
|
},
|
|
1748
1853
|
{
|
|
1854
|
+
"name": "checked",
|
|
1749
1855
|
"type": {
|
|
1750
|
-
"text": "
|
|
1751
|
-
},
|
|
1752
|
-
"description": "Dispatched when a date is selected and the value changes.",
|
|
1753
|
-
"name": "change"
|
|
1754
|
-
}
|
|
1755
|
-
],
|
|
1756
|
-
"attributes": [
|
|
1757
|
-
{
|
|
1758
|
-
"name": "value",
|
|
1759
|
-
"type": {
|
|
1760
|
-
"text": "string"
|
|
1856
|
+
"text": "boolean"
|
|
1761
1857
|
},
|
|
1762
|
-
"default": "
|
|
1763
|
-
"description": "
|
|
1764
|
-
"fieldName": "
|
|
1858
|
+
"default": "false",
|
|
1859
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
1860
|
+
"fieldName": "checked"
|
|
1765
1861
|
},
|
|
1766
1862
|
{
|
|
1767
|
-
"name": "
|
|
1863
|
+
"name": "size",
|
|
1768
1864
|
"type": {
|
|
1769
|
-
"text": "
|
|
1865
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
1770
1866
|
},
|
|
1771
|
-
"
|
|
1772
|
-
"
|
|
1867
|
+
"default": "\"m\"",
|
|
1868
|
+
"description": "The size of the component.",
|
|
1869
|
+
"fieldName": "size",
|
|
1870
|
+
"inheritedFrom": {
|
|
1871
|
+
"name": "SizeMixin",
|
|
1872
|
+
"module": "src/common/mixins/SizeMixin.ts"
|
|
1873
|
+
}
|
|
1773
1874
|
},
|
|
1774
1875
|
{
|
|
1775
|
-
"name": "
|
|
1876
|
+
"name": "label",
|
|
1776
1877
|
"type": {
|
|
1777
1878
|
"text": "string"
|
|
1778
1879
|
},
|
|
1779
1880
|
"default": "\"\"",
|
|
1780
|
-
"description": "
|
|
1781
|
-
"fieldName": "
|
|
1881
|
+
"description": "Label for the input.",
|
|
1882
|
+
"fieldName": "label",
|
|
1883
|
+
"inheritedFrom": {
|
|
1884
|
+
"name": "FormAssociatedMixin",
|
|
1885
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1886
|
+
}
|
|
1782
1887
|
},
|
|
1783
1888
|
{
|
|
1784
|
-
"name": "
|
|
1889
|
+
"name": "hint",
|
|
1785
1890
|
"type": {
|
|
1786
|
-
"text": "string"
|
|
1891
|
+
"text": "string | undefined"
|
|
1787
1892
|
},
|
|
1788
|
-
"
|
|
1789
|
-
"
|
|
1790
|
-
"
|
|
1893
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
1894
|
+
"fieldName": "hint",
|
|
1895
|
+
"inheritedFrom": {
|
|
1896
|
+
"name": "FormAssociatedMixin",
|
|
1897
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1898
|
+
}
|
|
1791
1899
|
},
|
|
1792
1900
|
{
|
|
1793
|
-
"name": "
|
|
1901
|
+
"name": "hide-label",
|
|
1794
1902
|
"type": {
|
|
1795
1903
|
"text": "boolean"
|
|
1796
1904
|
},
|
|
1797
1905
|
"default": "false",
|
|
1798
|
-
"description": "
|
|
1799
|
-
"fieldName": "
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
"package": "lit"
|
|
1805
|
-
},
|
|
1806
|
-
"localization": [
|
|
1807
|
-
{
|
|
1808
|
-
"name": "prevMonthLabel",
|
|
1809
|
-
"description": "Accessible label for the previous month button."
|
|
1906
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
1907
|
+
"fieldName": "hideLabel",
|
|
1908
|
+
"inheritedFrom": {
|
|
1909
|
+
"name": "FormAssociatedMixin",
|
|
1910
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1911
|
+
}
|
|
1810
1912
|
},
|
|
1811
1913
|
{
|
|
1812
|
-
"name": "
|
|
1813
|
-
"
|
|
1914
|
+
"name": "placeholder",
|
|
1915
|
+
"type": {
|
|
1916
|
+
"text": "string | undefined"
|
|
1917
|
+
},
|
|
1918
|
+
"description": "Placeholder text to display within the input.",
|
|
1919
|
+
"fieldName": "placeholder",
|
|
1920
|
+
"inheritedFrom": {
|
|
1921
|
+
"name": "FormAssociatedMixin",
|
|
1922
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1923
|
+
}
|
|
1814
1924
|
},
|
|
1815
1925
|
{
|
|
1816
|
-
"name": "
|
|
1817
|
-
"
|
|
1926
|
+
"name": "error",
|
|
1927
|
+
"type": {
|
|
1928
|
+
"text": "string | undefined"
|
|
1929
|
+
},
|
|
1930
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
1931
|
+
"fieldName": "error",
|
|
1932
|
+
"inheritedFrom": {
|
|
1933
|
+
"name": "FormAssociatedMixin",
|
|
1934
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1935
|
+
}
|
|
1818
1936
|
},
|
|
1819
1937
|
{
|
|
1820
|
-
"name": "
|
|
1821
|
-
"
|
|
1938
|
+
"name": "required",
|
|
1939
|
+
"type": {
|
|
1940
|
+
"text": "boolean"
|
|
1941
|
+
},
|
|
1942
|
+
"default": "false",
|
|
1943
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
1944
|
+
"fieldName": "required",
|
|
1945
|
+
"inheritedFrom": {
|
|
1946
|
+
"name": "FormAssociatedMixin",
|
|
1947
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1948
|
+
}
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
"name": "hide-required",
|
|
1952
|
+
"type": {
|
|
1953
|
+
"text": "boolean"
|
|
1954
|
+
},
|
|
1955
|
+
"default": "false",
|
|
1956
|
+
"description": "Visually hide the required indicator, but still show\nrequired attribute to assistive technologies like screen readers.",
|
|
1957
|
+
"fieldName": "hideRequired",
|
|
1958
|
+
"inheritedFrom": {
|
|
1959
|
+
"name": "FormAssociatedMixin",
|
|
1960
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
{
|
|
1964
|
+
"name": "disabled",
|
|
1965
|
+
"type": {
|
|
1966
|
+
"text": "boolean"
|
|
1967
|
+
},
|
|
1968
|
+
"default": "false",
|
|
1969
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1970
|
+
"fieldName": "disabled",
|
|
1971
|
+
"inheritedFrom": {
|
|
1972
|
+
"name": "InputMixin",
|
|
1973
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1974
|
+
}
|
|
1975
|
+
},
|
|
1976
|
+
{
|
|
1977
|
+
"name": "name",
|
|
1978
|
+
"type": {
|
|
1979
|
+
"text": "string | undefined"
|
|
1980
|
+
},
|
|
1981
|
+
"description": "The name of the form component.",
|
|
1982
|
+
"fieldName": "name",
|
|
1983
|
+
"inheritedFrom": {
|
|
1984
|
+
"name": "InputMixin",
|
|
1985
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1986
|
+
}
|
|
1987
|
+
},
|
|
1988
|
+
{
|
|
1989
|
+
"name": "value",
|
|
1990
|
+
"type": {
|
|
1991
|
+
"text": "string"
|
|
1992
|
+
},
|
|
1993
|
+
"default": "\"\"",
|
|
1994
|
+
"description": "The value of the form component.",
|
|
1995
|
+
"fieldName": "value",
|
|
1996
|
+
"inheritedFrom": {
|
|
1997
|
+
"name": "InputMixin",
|
|
1998
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1999
|
+
}
|
|
1822
2000
|
}
|
|
1823
2001
|
],
|
|
2002
|
+
"mixins": [
|
|
2003
|
+
{
|
|
2004
|
+
"name": "SizeMixin",
|
|
2005
|
+
"module": "/src/common/mixins/SizeMixin.js"
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
"name": "FormAssociatedMixin",
|
|
2009
|
+
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
"name": "InputMixin",
|
|
2013
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
2014
|
+
},
|
|
2015
|
+
{
|
|
2016
|
+
"name": "FocusableMixin",
|
|
2017
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
2018
|
+
}
|
|
2019
|
+
],
|
|
2020
|
+
"superclass": {
|
|
2021
|
+
"name": "LitElement",
|
|
2022
|
+
"package": "lit"
|
|
2023
|
+
},
|
|
2024
|
+
"localization": [],
|
|
1824
2025
|
"status": "ready",
|
|
1825
|
-
"category": "
|
|
1826
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use
|
|
2026
|
+
"category": "form",
|
|
2027
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for making it possible to choose one or more options from a limited number of options.\n- Use for “accepting terms of service” and similar functionality.\n- Use in forms to toggle something on or off.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Avoid using when you have more than 10 options to choose from.\n- Don’t change the selection of another checkbox when another one is clicked. Only exception is when a checkbox is used to make a bulk selection of multiple items.\n\n</div>\n\n---\n\n## Content guidelines\n\nCheckbox labels should be clear, accurate and predictable. It should be possible for the user to understand what they are selecting:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing checkbox labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">User Settings</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Show dashboard</div>\n<div class=\"n-usage n-usage-dont\">Show dashboard.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients;</div>\n",
|
|
1827
2028
|
"examples": [],
|
|
1828
|
-
"tagName": "nord-
|
|
1829
|
-
"customElement": true
|
|
2029
|
+
"tagName": "nord-checkbox",
|
|
2030
|
+
"customElement": true,
|
|
2031
|
+
"events": [
|
|
2032
|
+
{
|
|
2033
|
+
"name": "input",
|
|
2034
|
+
"type": {
|
|
2035
|
+
"text": "NordEvent"
|
|
2036
|
+
},
|
|
2037
|
+
"description": "Fired as the user types into the input.",
|
|
2038
|
+
"inheritedFrom": {
|
|
2039
|
+
"name": "FormAssociatedMixin",
|
|
2040
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2041
|
+
}
|
|
2042
|
+
},
|
|
2043
|
+
{
|
|
2044
|
+
"name": "change",
|
|
2045
|
+
"type": {
|
|
2046
|
+
"text": "NordEvent"
|
|
2047
|
+
},
|
|
2048
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
2049
|
+
"inheritedFrom": {
|
|
2050
|
+
"name": "FormAssociatedMixin",
|
|
2051
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
]
|
|
1830
2055
|
}
|
|
1831
2056
|
],
|
|
1832
2057
|
"exports": [
|
|
@@ -1834,65 +2059,16 @@
|
|
|
1834
2059
|
"kind": "js",
|
|
1835
2060
|
"name": "default",
|
|
1836
2061
|
"declaration": {
|
|
1837
|
-
"name": "
|
|
1838
|
-
"module": "src/
|
|
2062
|
+
"name": "Checkbox",
|
|
2063
|
+
"module": "src/checkbox/Checkbox.ts"
|
|
1839
2064
|
}
|
|
1840
2065
|
},
|
|
1841
2066
|
{
|
|
1842
2067
|
"kind": "custom-element-definition",
|
|
1843
|
-
"name": "nord-
|
|
1844
|
-
"declaration": {
|
|
1845
|
-
"name": "Calendar",
|
|
1846
|
-
"module": "src/calendar/Calendar.ts"
|
|
1847
|
-
}
|
|
1848
|
-
}
|
|
1849
|
-
]
|
|
1850
|
-
},
|
|
1851
|
-
{
|
|
1852
|
-
"kind": "javascript-module",
|
|
1853
|
-
"path": "src/calendar/DateSelectEvent.ts",
|
|
1854
|
-
"declarations": [
|
|
1855
|
-
{
|
|
1856
|
-
"kind": "class",
|
|
1857
|
-
"description": "",
|
|
1858
|
-
"name": "DateSelectEvent",
|
|
1859
|
-
"superclass": {
|
|
1860
|
-
"name": "NordEvent",
|
|
1861
|
-
"module": "/src/common/events.js"
|
|
1862
|
-
}
|
|
1863
|
-
}
|
|
1864
|
-
],
|
|
1865
|
-
"exports": [
|
|
1866
|
-
{
|
|
1867
|
-
"kind": "js",
|
|
1868
|
-
"name": "DateSelectEvent",
|
|
1869
|
-
"declaration": {
|
|
1870
|
-
"name": "DateSelectEvent",
|
|
1871
|
-
"module": "src/calendar/DateSelectEvent.ts"
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
]
|
|
1875
|
-
},
|
|
1876
|
-
{
|
|
1877
|
-
"kind": "javascript-module",
|
|
1878
|
-
"path": "src/calendar/localization.ts",
|
|
1879
|
-
"declarations": [
|
|
1880
|
-
{
|
|
1881
|
-
"kind": "variable",
|
|
1882
|
-
"name": "calendarLocalization",
|
|
1883
|
-
"type": {
|
|
1884
|
-
"text": "object"
|
|
1885
|
-
},
|
|
1886
|
-
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n}"
|
|
1887
|
-
}
|
|
1888
|
-
],
|
|
1889
|
-
"exports": [
|
|
1890
|
-
{
|
|
1891
|
-
"kind": "js",
|
|
1892
|
-
"name": "default",
|
|
2068
|
+
"name": "nord-checkbox",
|
|
1893
2069
|
"declaration": {
|
|
1894
|
-
"name": "
|
|
1895
|
-
"module": "src/
|
|
2070
|
+
"name": "Checkbox",
|
|
2071
|
+
"module": "src/checkbox/Checkbox.ts"
|
|
1896
2072
|
}
|
|
1897
2073
|
}
|
|
1898
2074
|
]
|
|
@@ -2021,657 +2197,432 @@
|
|
|
2021
2197
|
},
|
|
2022
2198
|
{
|
|
2023
2199
|
"kind": "javascript-module",
|
|
2024
|
-
"path": "src/
|
|
2200
|
+
"path": "src/calendar/Calendar.ts",
|
|
2025
2201
|
"declarations": [
|
|
2026
2202
|
{
|
|
2027
2203
|
"kind": "class",
|
|
2028
|
-
"description": "
|
|
2029
|
-
"name": "
|
|
2030
|
-
"
|
|
2031
|
-
{
|
|
2032
|
-
"description": "Use when a label requires more than plain text.",
|
|
2033
|
-
"name": "label"
|
|
2034
|
-
},
|
|
2204
|
+
"description": "Calendar allows user to pick a date. It comes with built-in\nfunctionality that allows you to set a minimum and a maximum allowed date.\nPlease note that the date must be passed in ISO-8601 format.",
|
|
2205
|
+
"name": "Calendar",
|
|
2206
|
+
"cssProperties": [
|
|
2035
2207
|
{
|
|
2036
|
-
"description": "
|
|
2037
|
-
"name": "
|
|
2208
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
2209
|
+
"name": "--n-calendar-border-radius",
|
|
2210
|
+
"default": "var(--n-border-radius)"
|
|
2038
2211
|
},
|
|
2039
2212
|
{
|
|
2040
|
-
"description": "
|
|
2041
|
-
"name": "
|
|
2213
|
+
"description": "Controls the surrounding shadow, using [box shadow tokens](/tokens/#box-shadow).",
|
|
2214
|
+
"name": "--n-calendar-box-shadow",
|
|
2215
|
+
"default": "var(--n-box-shadow-popout)"
|
|
2042
2216
|
}
|
|
2043
2217
|
],
|
|
2044
2218
|
"members": [
|
|
2045
2219
|
{
|
|
2046
2220
|
"kind": "field",
|
|
2047
|
-
"name": "
|
|
2048
|
-
"
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
}
|
|
2221
|
+
"name": "monthSelectNode",
|
|
2222
|
+
"type": {
|
|
2223
|
+
"text": "HTMLElement"
|
|
2224
|
+
},
|
|
2225
|
+
"privacy": "private"
|
|
2053
2226
|
},
|
|
2054
2227
|
{
|
|
2055
2228
|
"kind": "field",
|
|
2056
|
-
"name": "
|
|
2229
|
+
"name": "focusedDayNode",
|
|
2057
2230
|
"type": {
|
|
2058
|
-
"text": "
|
|
2231
|
+
"text": "HTMLButtonElement"
|
|
2059
2232
|
},
|
|
2060
|
-
"
|
|
2061
|
-
"description": "Controls whether the checkbox is in an indeterminate state.",
|
|
2062
|
-
"attribute": "indeterminate"
|
|
2233
|
+
"privacy": "private"
|
|
2063
2234
|
},
|
|
2064
2235
|
{
|
|
2065
2236
|
"kind": "field",
|
|
2066
|
-
"name": "
|
|
2067
|
-
"
|
|
2068
|
-
|
|
2069
|
-
},
|
|
2070
|
-
"default": "false",
|
|
2071
|
-
"description": "Controls whether the checkbox is checked or not.",
|
|
2072
|
-
"attribute": "checked"
|
|
2237
|
+
"name": "direction",
|
|
2238
|
+
"privacy": "private",
|
|
2239
|
+
"default": "new DirectionController(this)"
|
|
2073
2240
|
},
|
|
2074
2241
|
{
|
|
2075
|
-
"kind": "
|
|
2076
|
-
"name": "
|
|
2077
|
-
"privacy": "
|
|
2078
|
-
"
|
|
2079
|
-
{
|
|
2080
|
-
"name": "e",
|
|
2081
|
-
"type": {
|
|
2082
|
-
"text": "Event"
|
|
2083
|
-
}
|
|
2084
|
-
}
|
|
2085
|
-
],
|
|
2086
|
-
"return": {
|
|
2087
|
-
"type": {
|
|
2088
|
-
"text": "void"
|
|
2089
|
-
}
|
|
2090
|
-
},
|
|
2091
|
-
"inheritedFrom": {
|
|
2092
|
-
"name": "FormAssociatedMixin",
|
|
2093
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2094
|
-
}
|
|
2242
|
+
"kind": "field",
|
|
2243
|
+
"name": "swipe",
|
|
2244
|
+
"privacy": "private",
|
|
2245
|
+
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
2095
2246
|
},
|
|
2096
2247
|
{
|
|
2097
2248
|
"kind": "field",
|
|
2098
|
-
"name": "
|
|
2099
|
-
"
|
|
2100
|
-
"text": "\"s\" | \"m\" | \"l\""
|
|
2101
|
-
},
|
|
2102
|
-
"default": "\"m\"",
|
|
2103
|
-
"description": "The size of the component.",
|
|
2104
|
-
"attribute": "size",
|
|
2105
|
-
"reflects": true,
|
|
2106
|
-
"inheritedFrom": {
|
|
2107
|
-
"name": "SizeMixin",
|
|
2108
|
-
"module": "src/common/mixins/SizeMixin.ts"
|
|
2109
|
-
}
|
|
2249
|
+
"name": "shortcuts",
|
|
2250
|
+
"privacy": "private"
|
|
2110
2251
|
},
|
|
2111
2252
|
{
|
|
2112
2253
|
"kind": "field",
|
|
2113
|
-
"name": "
|
|
2114
|
-
"privacy": "
|
|
2115
|
-
"default": "new
|
|
2116
|
-
"inheritedFrom": {
|
|
2117
|
-
"name": "FormAssociatedMixin",
|
|
2118
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2119
|
-
}
|
|
2254
|
+
"name": "localize",
|
|
2255
|
+
"privacy": "private",
|
|
2256
|
+
"default": "new LocalizeController<\"nord-calendar\">(this, {\n onLangChange: () => this.handleLangChange(),\n })"
|
|
2120
2257
|
},
|
|
2121
2258
|
{
|
|
2122
2259
|
"kind": "field",
|
|
2123
|
-
"name": "
|
|
2124
|
-
"
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
}
|
|
2260
|
+
"name": "dateFormatShort",
|
|
2261
|
+
"type": {
|
|
2262
|
+
"text": "Intl.DateTimeFormat"
|
|
2263
|
+
},
|
|
2264
|
+
"privacy": "private",
|
|
2265
|
+
"description": "Whilst dateAdapter is used for handling the formatting/parsing dates in the input,\nthese are used to format dates exclusively for the benefit of screen readers.\n\nWe prefer DateTimeFormat over date.toLocaleDateString, as the former has\nbetter performance when formatting large number of dates. See:\nhttps://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString#Performance"
|
|
2130
2266
|
},
|
|
2131
2267
|
{
|
|
2132
2268
|
"kind": "field",
|
|
2133
|
-
"name": "
|
|
2134
|
-
"
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2139
|
-
}
|
|
2269
|
+
"name": "monthNames",
|
|
2270
|
+
"type": {
|
|
2271
|
+
"text": "string[]"
|
|
2272
|
+
},
|
|
2273
|
+
"privacy": "private"
|
|
2140
2274
|
},
|
|
2141
2275
|
{
|
|
2142
2276
|
"kind": "field",
|
|
2143
|
-
"name": "
|
|
2144
|
-
"
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2149
|
-
}
|
|
2277
|
+
"name": "monthNamesShort",
|
|
2278
|
+
"type": {
|
|
2279
|
+
"text": "string[]"
|
|
2280
|
+
},
|
|
2281
|
+
"privacy": "private"
|
|
2150
2282
|
},
|
|
2151
2283
|
{
|
|
2152
2284
|
"kind": "field",
|
|
2153
|
-
"name": "
|
|
2285
|
+
"name": "dayNames",
|
|
2154
2286
|
"type": {
|
|
2155
|
-
"text": "string"
|
|
2287
|
+
"text": "string[]"
|
|
2156
2288
|
},
|
|
2157
|
-
"privacy": "
|
|
2158
|
-
"default": "\"input\"",
|
|
2159
|
-
"inheritedFrom": {
|
|
2160
|
-
"name": "FormAssociatedMixin",
|
|
2161
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2162
|
-
}
|
|
2289
|
+
"privacy": "private"
|
|
2163
2290
|
},
|
|
2164
2291
|
{
|
|
2165
2292
|
"kind": "field",
|
|
2166
|
-
"name": "
|
|
2293
|
+
"name": "dayNamesShort",
|
|
2167
2294
|
"type": {
|
|
2168
|
-
"text": "string"
|
|
2295
|
+
"text": "string[]"
|
|
2169
2296
|
},
|
|
2170
|
-
"privacy": "
|
|
2171
|
-
"default": "\"error\"",
|
|
2172
|
-
"inheritedFrom": {
|
|
2173
|
-
"name": "FormAssociatedMixin",
|
|
2174
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2175
|
-
}
|
|
2297
|
+
"privacy": "private"
|
|
2176
2298
|
},
|
|
2177
2299
|
{
|
|
2178
2300
|
"kind": "field",
|
|
2179
|
-
"name": "
|
|
2301
|
+
"name": "value",
|
|
2180
2302
|
"type": {
|
|
2181
2303
|
"text": "string"
|
|
2182
2304
|
},
|
|
2183
|
-
"
|
|
2184
|
-
"
|
|
2185
|
-
"
|
|
2186
|
-
"name": "FormAssociatedMixin",
|
|
2187
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2188
|
-
}
|
|
2305
|
+
"default": "\"\"",
|
|
2306
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
2307
|
+
"attribute": "value"
|
|
2189
2308
|
},
|
|
2190
2309
|
{
|
|
2191
2310
|
"kind": "field",
|
|
2192
|
-
"name": "
|
|
2311
|
+
"name": "firstDayOfWeek",
|
|
2193
2312
|
"type": {
|
|
2194
|
-
"text": "
|
|
2313
|
+
"text": "DaysOfWeek"
|
|
2195
2314
|
},
|
|
2196
|
-
"
|
|
2197
|
-
"
|
|
2198
|
-
"attribute": "label",
|
|
2199
|
-
"inheritedFrom": {
|
|
2200
|
-
"name": "FormAssociatedMixin",
|
|
2201
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2202
|
-
}
|
|
2315
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
2316
|
+
"attribute": "firstDayOfWeek"
|
|
2203
2317
|
},
|
|
2204
2318
|
{
|
|
2205
2319
|
"kind": "field",
|
|
2206
|
-
"name": "
|
|
2320
|
+
"name": "min",
|
|
2207
2321
|
"type": {
|
|
2208
|
-
"text": "string
|
|
2322
|
+
"text": "string"
|
|
2209
2323
|
},
|
|
2210
|
-
"
|
|
2211
|
-
"
|
|
2212
|
-
"
|
|
2213
|
-
"name": "FormAssociatedMixin",
|
|
2214
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2215
|
-
}
|
|
2324
|
+
"default": "\"\"",
|
|
2325
|
+
"description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
|
|
2326
|
+
"attribute": "min"
|
|
2216
2327
|
},
|
|
2217
2328
|
{
|
|
2218
2329
|
"kind": "field",
|
|
2219
|
-
"name": "
|
|
2330
|
+
"name": "max",
|
|
2220
2331
|
"type": {
|
|
2221
|
-
"text": "
|
|
2332
|
+
"text": "string"
|
|
2222
2333
|
},
|
|
2223
|
-
"default": "
|
|
2224
|
-
"description": "
|
|
2225
|
-
"attribute": "
|
|
2226
|
-
"inheritedFrom": {
|
|
2227
|
-
"name": "FormAssociatedMixin",
|
|
2228
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2229
|
-
}
|
|
2334
|
+
"default": "\"\"",
|
|
2335
|
+
"description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
|
|
2336
|
+
"attribute": "max"
|
|
2230
2337
|
},
|
|
2231
2338
|
{
|
|
2232
2339
|
"kind": "field",
|
|
2233
|
-
"name": "
|
|
2340
|
+
"name": "expand",
|
|
2234
2341
|
"type": {
|
|
2235
|
-
"text": "
|
|
2342
|
+
"text": "boolean"
|
|
2236
2343
|
},
|
|
2237
|
-
"
|
|
2238
|
-
"
|
|
2239
|
-
"
|
|
2240
|
-
|
|
2241
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2242
|
-
}
|
|
2344
|
+
"default": "false",
|
|
2345
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
2346
|
+
"attribute": "expand",
|
|
2347
|
+
"reflects": true
|
|
2243
2348
|
},
|
|
2244
2349
|
{
|
|
2245
2350
|
"kind": "field",
|
|
2246
|
-
"name": "
|
|
2351
|
+
"name": "isDateDisabled",
|
|
2247
2352
|
"type": {
|
|
2248
|
-
"text": "
|
|
2353
|
+
"text": "DatePredicate"
|
|
2249
2354
|
},
|
|
2250
|
-
"
|
|
2251
|
-
"
|
|
2252
|
-
"inheritedFrom": {
|
|
2253
|
-
"name": "FormAssociatedMixin",
|
|
2254
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2255
|
-
}
|
|
2355
|
+
"default": "isDateDisabled",
|
|
2356
|
+
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
2256
2357
|
},
|
|
2257
2358
|
{
|
|
2258
2359
|
"kind": "field",
|
|
2259
|
-
"name": "
|
|
2360
|
+
"name": "isDateHighlighted",
|
|
2260
2361
|
"type": {
|
|
2261
|
-
"text": "boolean"
|
|
2362
|
+
"text": "(date: Date) => string | boolean"
|
|
2262
2363
|
},
|
|
2263
|
-
"default": "
|
|
2264
|
-
"description": "
|
|
2265
|
-
"attribute": "required",
|
|
2266
|
-
"inheritedFrom": {
|
|
2267
|
-
"name": "FormAssociatedMixin",
|
|
2268
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2269
|
-
}
|
|
2364
|
+
"default": "isDateHighlighted",
|
|
2365
|
+
"description": "Controls which days are highlighted with a small indicator.\nReturning a \"falsy\" value will not show an indicator.\nReturning \"truthy\" value will show the indicator, but without an accessible label.\nReturning a string will show the indicator, and use the string as accessible label.\nIt is recommended to return a string rather than a truthy value whenever possible."
|
|
2270
2366
|
},
|
|
2271
2367
|
{
|
|
2272
2368
|
"kind": "field",
|
|
2273
|
-
"name": "
|
|
2369
|
+
"name": "activeFocus",
|
|
2274
2370
|
"type": {
|
|
2275
2371
|
"text": "boolean"
|
|
2276
2372
|
},
|
|
2277
|
-
"
|
|
2278
|
-
"
|
|
2279
|
-
"attribute": "hide-required",
|
|
2280
|
-
"inheritedFrom": {
|
|
2281
|
-
"name": "FormAssociatedMixin",
|
|
2282
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2283
|
-
}
|
|
2373
|
+
"privacy": "private",
|
|
2374
|
+
"default": "false"
|
|
2284
2375
|
},
|
|
2285
2376
|
{
|
|
2286
|
-
"kind": "
|
|
2287
|
-
"name": "
|
|
2288
|
-
"privacy": "
|
|
2289
|
-
"
|
|
2290
|
-
{
|
|
2291
|
-
"name": "e",
|
|
2292
|
-
"type": {
|
|
2293
|
-
"text": "Event"
|
|
2294
|
-
}
|
|
2295
|
-
}
|
|
2296
|
-
],
|
|
2297
|
-
"inheritedFrom": {
|
|
2298
|
-
"name": "FormAssociatedMixin",
|
|
2299
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2300
|
-
}
|
|
2377
|
+
"kind": "field",
|
|
2378
|
+
"name": "focusedDay",
|
|
2379
|
+
"privacy": "private",
|
|
2380
|
+
"default": "new Date()"
|
|
2301
2381
|
},
|
|
2302
2382
|
{
|
|
2303
2383
|
"kind": "method",
|
|
2304
|
-
"name": "
|
|
2305
|
-
"privacy": "protected",
|
|
2384
|
+
"name": "focus",
|
|
2306
2385
|
"parameters": [
|
|
2307
2386
|
{
|
|
2308
|
-
"name": "
|
|
2387
|
+
"name": "options",
|
|
2309
2388
|
"optional": true,
|
|
2310
2389
|
"type": {
|
|
2311
|
-
"text": "
|
|
2312
|
-
}
|
|
2390
|
+
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
2391
|
+
},
|
|
2392
|
+
"description": "An object which controls aspects of the focusing process."
|
|
2313
2393
|
}
|
|
2314
2394
|
],
|
|
2315
|
-
"
|
|
2316
|
-
"name": "FormAssociatedMixin",
|
|
2317
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2318
|
-
}
|
|
2395
|
+
"description": "Programmatically move focus to the calendar."
|
|
2319
2396
|
},
|
|
2320
2397
|
{
|
|
2321
2398
|
"kind": "method",
|
|
2322
|
-
"name": "
|
|
2323
|
-
"privacy": "protected"
|
|
2324
|
-
"inheritedFrom": {
|
|
2325
|
-
"name": "FormAssociatedMixin",
|
|
2326
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2327
|
-
}
|
|
2399
|
+
"name": "handleValueChange",
|
|
2400
|
+
"privacy": "protected"
|
|
2328
2401
|
},
|
|
2329
2402
|
{
|
|
2330
2403
|
"kind": "method",
|
|
2331
|
-
"name": "
|
|
2332
|
-
"privacy": "protected"
|
|
2333
|
-
"inheritedFrom": {
|
|
2334
|
-
"name": "FormAssociatedMixin",
|
|
2335
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2336
|
-
}
|
|
2404
|
+
"name": "handleFocusedDayChange",
|
|
2405
|
+
"privacy": "protected"
|
|
2337
2406
|
},
|
|
2338
2407
|
{
|
|
2339
2408
|
"kind": "method",
|
|
2340
|
-
"name": "
|
|
2341
|
-
"privacy": "
|
|
2342
|
-
"inheritedFrom": {
|
|
2343
|
-
"name": "FormAssociatedMixin",
|
|
2344
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2345
|
-
}
|
|
2346
|
-
},
|
|
2347
|
-
{
|
|
2348
|
-
"kind": "field",
|
|
2349
|
-
"name": "hasHint",
|
|
2350
|
-
"privacy": "protected",
|
|
2351
|
-
"inheritedFrom": {
|
|
2352
|
-
"name": "FormAssociatedMixin",
|
|
2353
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2354
|
-
}
|
|
2409
|
+
"name": "handleLangChange",
|
|
2410
|
+
"privacy": "private"
|
|
2355
2411
|
},
|
|
2356
2412
|
{
|
|
2357
2413
|
"kind": "field",
|
|
2358
|
-
"name": "
|
|
2359
|
-
"privacy": "
|
|
2360
|
-
"inheritedFrom": {
|
|
2361
|
-
"name": "FormAssociatedMixin",
|
|
2362
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2363
|
-
}
|
|
2414
|
+
"name": "handleDaySelect",
|
|
2415
|
+
"privacy": "private"
|
|
2364
2416
|
},
|
|
2365
2417
|
{
|
|
2366
|
-
"kind": "
|
|
2367
|
-
"name": "
|
|
2368
|
-
"
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
2378
|
-
}
|
|
2418
|
+
"kind": "method",
|
|
2419
|
+
"name": "addDays",
|
|
2420
|
+
"privacy": "private",
|
|
2421
|
+
"parameters": [
|
|
2422
|
+
{
|
|
2423
|
+
"name": "days",
|
|
2424
|
+
"type": {
|
|
2425
|
+
"text": "number"
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
]
|
|
2379
2429
|
},
|
|
2380
2430
|
{
|
|
2381
|
-
"kind": "
|
|
2382
|
-
"name": "
|
|
2383
|
-
"
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2431
|
+
"kind": "method",
|
|
2432
|
+
"name": "addMonths",
|
|
2433
|
+
"privacy": "private",
|
|
2434
|
+
"parameters": [
|
|
2435
|
+
{
|
|
2436
|
+
"name": "months",
|
|
2437
|
+
"type": {
|
|
2438
|
+
"text": "number"
|
|
2439
|
+
}
|
|
2440
|
+
}
|
|
2441
|
+
]
|
|
2392
2442
|
},
|
|
2393
2443
|
{
|
|
2394
|
-
"kind": "
|
|
2395
|
-
"name": "
|
|
2396
|
-
"
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
}
|
|
2444
|
+
"kind": "method",
|
|
2445
|
+
"name": "addYears",
|
|
2446
|
+
"privacy": "private",
|
|
2447
|
+
"parameters": [
|
|
2448
|
+
{
|
|
2449
|
+
"name": "years",
|
|
2450
|
+
"type": {
|
|
2451
|
+
"text": "number"
|
|
2452
|
+
}
|
|
2453
|
+
}
|
|
2454
|
+
]
|
|
2406
2455
|
},
|
|
2407
2456
|
{
|
|
2408
|
-
"kind": "
|
|
2409
|
-
"name": "
|
|
2410
|
-
"
|
|
2411
|
-
"inheritedFrom": {
|
|
2412
|
-
"name": "InputMixin",
|
|
2413
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
2414
|
-
}
|
|
2457
|
+
"kind": "method",
|
|
2458
|
+
"name": "startOfWeek",
|
|
2459
|
+
"privacy": "private"
|
|
2415
2460
|
},
|
|
2416
2461
|
{
|
|
2417
|
-
"kind": "
|
|
2418
|
-
"name": "
|
|
2419
|
-
"privacy": "
|
|
2420
|
-
"inheritedFrom": {
|
|
2421
|
-
"name": "FocusableMixin",
|
|
2422
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
2423
|
-
}
|
|
2462
|
+
"kind": "method",
|
|
2463
|
+
"name": "endOfWeek",
|
|
2464
|
+
"privacy": "private"
|
|
2424
2465
|
},
|
|
2425
2466
|
{
|
|
2426
2467
|
"kind": "method",
|
|
2427
|
-
"name": "
|
|
2468
|
+
"name": "setMonth",
|
|
2469
|
+
"privacy": "private",
|
|
2428
2470
|
"parameters": [
|
|
2429
2471
|
{
|
|
2430
|
-
"name": "
|
|
2431
|
-
"optional": true,
|
|
2472
|
+
"name": "month",
|
|
2432
2473
|
"type": {
|
|
2433
|
-
"text": "
|
|
2434
|
-
}
|
|
2435
|
-
"description": "An object which controls aspects of the focusing process."
|
|
2474
|
+
"text": "number"
|
|
2475
|
+
}
|
|
2436
2476
|
}
|
|
2437
|
-
]
|
|
2438
|
-
"description": "Programmatically move focus to the component.",
|
|
2439
|
-
"inheritedFrom": {
|
|
2440
|
-
"name": "FocusableMixin",
|
|
2441
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
2442
|
-
}
|
|
2477
|
+
]
|
|
2443
2478
|
},
|
|
2444
2479
|
{
|
|
2445
2480
|
"kind": "method",
|
|
2446
|
-
"name": "
|
|
2447
|
-
"
|
|
2448
|
-
"
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2481
|
+
"name": "setYear",
|
|
2482
|
+
"privacy": "private",
|
|
2483
|
+
"parameters": [
|
|
2484
|
+
{
|
|
2485
|
+
"name": "year",
|
|
2486
|
+
"type": {
|
|
2487
|
+
"text": "number"
|
|
2488
|
+
}
|
|
2489
|
+
}
|
|
2490
|
+
]
|
|
2452
2491
|
},
|
|
2453
2492
|
{
|
|
2454
2493
|
"kind": "method",
|
|
2455
|
-
"name": "
|
|
2456
|
-
"
|
|
2457
|
-
"
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
"name": "indeterminate",
|
|
2466
|
-
"type": {
|
|
2467
|
-
"text": "boolean"
|
|
2468
|
-
},
|
|
2469
|
-
"default": "false",
|
|
2470
|
-
"description": "Controls whether the checkbox is in an indeterminate state.",
|
|
2471
|
-
"fieldName": "indeterminate"
|
|
2494
|
+
"name": "setFocusedDay",
|
|
2495
|
+
"privacy": "private",
|
|
2496
|
+
"parameters": [
|
|
2497
|
+
{
|
|
2498
|
+
"name": "day",
|
|
2499
|
+
"type": {
|
|
2500
|
+
"text": "Date"
|
|
2501
|
+
}
|
|
2502
|
+
}
|
|
2503
|
+
]
|
|
2472
2504
|
},
|
|
2473
2505
|
{
|
|
2474
|
-
"
|
|
2475
|
-
"
|
|
2476
|
-
|
|
2477
|
-
},
|
|
2478
|
-
"default": "false",
|
|
2479
|
-
"description": "Controls whether the checkbox is checked or not.",
|
|
2480
|
-
"fieldName": "checked"
|
|
2506
|
+
"kind": "field",
|
|
2507
|
+
"name": "handleMonthSelect",
|
|
2508
|
+
"privacy": "private"
|
|
2481
2509
|
},
|
|
2482
2510
|
{
|
|
2483
|
-
"
|
|
2484
|
-
"
|
|
2485
|
-
|
|
2486
|
-
},
|
|
2487
|
-
"default": "\"m\"",
|
|
2488
|
-
"description": "The size of the component.",
|
|
2489
|
-
"fieldName": "size",
|
|
2490
|
-
"inheritedFrom": {
|
|
2491
|
-
"name": "SizeMixin",
|
|
2492
|
-
"module": "src/common/mixins/SizeMixin.ts"
|
|
2493
|
-
}
|
|
2511
|
+
"kind": "field",
|
|
2512
|
+
"name": "handleYearSelect",
|
|
2513
|
+
"privacy": "private"
|
|
2494
2514
|
},
|
|
2495
2515
|
{
|
|
2496
|
-
"
|
|
2497
|
-
"
|
|
2498
|
-
|
|
2499
|
-
},
|
|
2500
|
-
"default": "\"\"",
|
|
2501
|
-
"description": "Label for the input.",
|
|
2502
|
-
"fieldName": "label",
|
|
2503
|
-
"inheritedFrom": {
|
|
2504
|
-
"name": "FormAssociatedMixin",
|
|
2505
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2506
|
-
}
|
|
2516
|
+
"kind": "field",
|
|
2517
|
+
"name": "handleNextMonthClick",
|
|
2518
|
+
"privacy": "private"
|
|
2507
2519
|
},
|
|
2508
2520
|
{
|
|
2509
|
-
"
|
|
2510
|
-
"
|
|
2511
|
-
|
|
2512
|
-
},
|
|
2513
|
-
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
2514
|
-
"fieldName": "hint",
|
|
2515
|
-
"inheritedFrom": {
|
|
2516
|
-
"name": "FormAssociatedMixin",
|
|
2517
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2518
|
-
}
|
|
2521
|
+
"kind": "field",
|
|
2522
|
+
"name": "handlePreviousMonthClick",
|
|
2523
|
+
"privacy": "private"
|
|
2519
2524
|
},
|
|
2520
2525
|
{
|
|
2521
|
-
"
|
|
2522
|
-
"
|
|
2523
|
-
|
|
2524
|
-
},
|
|
2525
|
-
"default": "false",
|
|
2526
|
-
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
2527
|
-
"fieldName": "hideLabel",
|
|
2528
|
-
"inheritedFrom": {
|
|
2529
|
-
"name": "FormAssociatedMixin",
|
|
2530
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2531
|
-
}
|
|
2526
|
+
"kind": "field",
|
|
2527
|
+
"name": "enableActiveFocus",
|
|
2528
|
+
"privacy": "private"
|
|
2532
2529
|
},
|
|
2533
2530
|
{
|
|
2534
|
-
"
|
|
2535
|
-
"
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
"inheritedFrom": {
|
|
2541
|
-
"name": "FormAssociatedMixin",
|
|
2542
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2543
|
-
}
|
|
2544
|
-
},
|
|
2531
|
+
"kind": "field",
|
|
2532
|
+
"name": "disableActiveFocus",
|
|
2533
|
+
"privacy": "private"
|
|
2534
|
+
}
|
|
2535
|
+
],
|
|
2536
|
+
"events": [
|
|
2545
2537
|
{
|
|
2546
|
-
"name": "
|
|
2538
|
+
"name": "nord-focus-date",
|
|
2547
2539
|
"type": {
|
|
2548
|
-
"text": "
|
|
2540
|
+
"text": "DateSelectEvent"
|
|
2549
2541
|
},
|
|
2550
|
-
"description": "
|
|
2551
|
-
"fieldName": "error",
|
|
2552
|
-
"inheritedFrom": {
|
|
2553
|
-
"name": "FormAssociatedMixin",
|
|
2554
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2555
|
-
}
|
|
2542
|
+
"description": "Dispatched when the calendar's focused date changes."
|
|
2556
2543
|
},
|
|
2557
2544
|
{
|
|
2558
|
-
"name": "required",
|
|
2559
2545
|
"type": {
|
|
2560
|
-
"text": "
|
|
2546
|
+
"text": "DateSelectEvent"
|
|
2561
2547
|
},
|
|
2562
|
-
"
|
|
2563
|
-
"
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2568
|
-
}
|
|
2569
|
-
},
|
|
2548
|
+
"description": "Dispatched when a date is selected and the value changes.",
|
|
2549
|
+
"name": "change"
|
|
2550
|
+
}
|
|
2551
|
+
],
|
|
2552
|
+
"attributes": [
|
|
2570
2553
|
{
|
|
2571
|
-
"name": "
|
|
2554
|
+
"name": "value",
|
|
2572
2555
|
"type": {
|
|
2573
|
-
"text": "
|
|
2556
|
+
"text": "string"
|
|
2574
2557
|
},
|
|
2575
|
-
"default": "
|
|
2576
|
-
"description": "
|
|
2577
|
-
"fieldName": "
|
|
2578
|
-
"inheritedFrom": {
|
|
2579
|
-
"name": "FormAssociatedMixin",
|
|
2580
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2581
|
-
}
|
|
2558
|
+
"default": "\"\"",
|
|
2559
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
2560
|
+
"fieldName": "value"
|
|
2582
2561
|
},
|
|
2583
2562
|
{
|
|
2584
|
-
"name": "
|
|
2563
|
+
"name": "firstDayOfWeek",
|
|
2585
2564
|
"type": {
|
|
2586
|
-
"text": "
|
|
2565
|
+
"text": "DaysOfWeek"
|
|
2587
2566
|
},
|
|
2588
|
-
"
|
|
2589
|
-
"
|
|
2590
|
-
"fieldName": "disabled",
|
|
2591
|
-
"inheritedFrom": {
|
|
2592
|
-
"name": "InputMixin",
|
|
2593
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
2594
|
-
}
|
|
2567
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
2568
|
+
"fieldName": "firstDayOfWeek"
|
|
2595
2569
|
},
|
|
2596
2570
|
{
|
|
2597
|
-
"name": "
|
|
2571
|
+
"name": "min",
|
|
2598
2572
|
"type": {
|
|
2599
|
-
"text": "string
|
|
2573
|
+
"text": "string"
|
|
2600
2574
|
},
|
|
2601
|
-
"
|
|
2602
|
-
"
|
|
2603
|
-
"
|
|
2604
|
-
"name": "InputMixin",
|
|
2605
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
2606
|
-
}
|
|
2575
|
+
"default": "\"\"",
|
|
2576
|
+
"description": "Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the max property.",
|
|
2577
|
+
"fieldName": "min"
|
|
2607
2578
|
},
|
|
2608
2579
|
{
|
|
2609
|
-
"name": "
|
|
2580
|
+
"name": "max",
|
|
2610
2581
|
"type": {
|
|
2611
2582
|
"text": "string"
|
|
2612
2583
|
},
|
|
2613
2584
|
"default": "\"\"",
|
|
2614
|
-
"description": "
|
|
2615
|
-
"fieldName": "
|
|
2616
|
-
"inheritedFrom": {
|
|
2617
|
-
"name": "InputMixin",
|
|
2618
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
2619
|
-
}
|
|
2620
|
-
}
|
|
2621
|
-
],
|
|
2622
|
-
"mixins": [
|
|
2623
|
-
{
|
|
2624
|
-
"name": "SizeMixin",
|
|
2625
|
-
"module": "/src/common/mixins/SizeMixin.js"
|
|
2626
|
-
},
|
|
2627
|
-
{
|
|
2628
|
-
"name": "FormAssociatedMixin",
|
|
2629
|
-
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
2630
|
-
},
|
|
2631
|
-
{
|
|
2632
|
-
"name": "InputMixin",
|
|
2633
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
2585
|
+
"description": "Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD.\nThis setting can be used alone or together with the min property.",
|
|
2586
|
+
"fieldName": "max"
|
|
2634
2587
|
},
|
|
2635
2588
|
{
|
|
2636
|
-
"name": "
|
|
2637
|
-
"
|
|
2589
|
+
"name": "expand",
|
|
2590
|
+
"type": {
|
|
2591
|
+
"text": "boolean"
|
|
2592
|
+
},
|
|
2593
|
+
"default": "false",
|
|
2594
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
2595
|
+
"fieldName": "expand"
|
|
2638
2596
|
}
|
|
2639
2597
|
],
|
|
2640
2598
|
"superclass": {
|
|
2641
2599
|
"name": "LitElement",
|
|
2642
2600
|
"package": "lit"
|
|
2643
2601
|
},
|
|
2644
|
-
"localization": [
|
|
2645
|
-
"status": "ready",
|
|
2646
|
-
"category": "form",
|
|
2647
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for making it possible to choose one or more options from a limited number of options.\n- Use for “accepting terms of service” and similar functionality.\n- Use in forms to toggle something on or off.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Avoid using when you have more than 10 options to choose from.\n- Don’t change the selection of another checkbox when another one is clicked. Only exception is when a checkbox is used to make a bulk selection of multiple items.\n\n</div>\n\n---\n\n## Content guidelines\n\nCheckbox labels should be clear, accurate and predictable. It should be possible for the user to understand what they are selecting:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing checkbox labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">User Settings</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Show dashboard</div>\n<div class=\"n-usage n-usage-dont\">Show dashboard.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients;</div>\n",
|
|
2648
|
-
"examples": [],
|
|
2649
|
-
"tagName": "nord-checkbox",
|
|
2650
|
-
"customElement": true,
|
|
2651
|
-
"events": [
|
|
2602
|
+
"localization": [
|
|
2652
2603
|
{
|
|
2653
|
-
"name": "
|
|
2654
|
-
"
|
|
2655
|
-
"text": "NordEvent"
|
|
2656
|
-
},
|
|
2657
|
-
"description": "Fired as the user types into the input.",
|
|
2658
|
-
"inheritedFrom": {
|
|
2659
|
-
"name": "FormAssociatedMixin",
|
|
2660
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2661
|
-
}
|
|
2604
|
+
"name": "prevMonthLabel",
|
|
2605
|
+
"description": "Accessible label for the previous month button."
|
|
2662
2606
|
},
|
|
2663
2607
|
{
|
|
2664
|
-
"name": "
|
|
2665
|
-
"
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
"
|
|
2669
|
-
"
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2608
|
+
"name": "nextMonthLabel",
|
|
2609
|
+
"description": "Accessible label for the next month button."
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
"name": "monthSelectLabel",
|
|
2613
|
+
"description": "Accessible label for the month select."
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
"name": "yearSelectLabel",
|
|
2617
|
+
"description": "Accessible label for the year select."
|
|
2673
2618
|
}
|
|
2674
|
-
]
|
|
2619
|
+
],
|
|
2620
|
+
"status": "ready",
|
|
2621
|
+
"category": "list",
|
|
2622
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use when the user needs to choose a single date or a date range.\n- Close calendar after a single date is selected, unless a range with a start and end date is required.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for entering date of birth. Use input component instead.\n- Don’t use for choosing a date that is over 10 years in the future or the past.\n\n</div>\n\n---\n\n## Keyboard accessibility\n\nCalendar component is built to closely follow [W3C Date Picker Dialog example](https://www.w3.org/TR/wai-aria-practices/examples/dialog-modal/datepicker-dialog.html) with some small exceptions to e.g. better support iOS VoiceOver and Android TalkBack.\n\n### Month/year buttons\n\n- `Space, Enter`: Changes the month and/or year displayed.\n\n### Calendar grid\n\n- `Space, Enter`: Selects a date.\n- `Arrow up`: Moves focus to the same day of the previous week.\n- `Arrow down`: Moves focus to the same day of the next week.\n- `Arrow right`: Moves focus to the next day. In right-to-left languages, moves focus to the previous day.\n- `Arrow left`: Moves focus to the previous day. In right-to-left languages, moves focus to the next day.\n- `Home`: Moves focus to the first day (e.g Monday) of the current week.\n- `End`: Moves focus to the last day (e.g. Sunday) of the current week.\n- `Page Up`: Changes the grid of dates to the previous month and sets focus on the same day of the same week.\n- `Shift + Page Up`: Changes the grid of dates to the previous year and sets focus on the same day of the same week.\n- `Page Down`: Changes the grid of dates to the next month and sets focus on the same day of the same week.\n- `Shift + Page Down`: Changes the grid of dates to the next year and sets focus on the same day of the same week.\n",
|
|
2623
|
+
"examples": [],
|
|
2624
|
+
"tagName": "nord-calendar",
|
|
2625
|
+
"customElement": true
|
|
2675
2626
|
}
|
|
2676
2627
|
],
|
|
2677
2628
|
"exports": [
|
|
@@ -2679,16 +2630,65 @@
|
|
|
2679
2630
|
"kind": "js",
|
|
2680
2631
|
"name": "default",
|
|
2681
2632
|
"declaration": {
|
|
2682
|
-
"name": "
|
|
2683
|
-
"module": "src/
|
|
2633
|
+
"name": "Calendar",
|
|
2634
|
+
"module": "src/calendar/Calendar.ts"
|
|
2684
2635
|
}
|
|
2685
2636
|
},
|
|
2686
2637
|
{
|
|
2687
2638
|
"kind": "custom-element-definition",
|
|
2688
|
-
"name": "nord-
|
|
2639
|
+
"name": "nord-calendar",
|
|
2689
2640
|
"declaration": {
|
|
2690
|
-
"name": "
|
|
2691
|
-
"module": "src/
|
|
2641
|
+
"name": "Calendar",
|
|
2642
|
+
"module": "src/calendar/Calendar.ts"
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
]
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
"kind": "javascript-module",
|
|
2649
|
+
"path": "src/calendar/DateSelectEvent.ts",
|
|
2650
|
+
"declarations": [
|
|
2651
|
+
{
|
|
2652
|
+
"kind": "class",
|
|
2653
|
+
"description": "",
|
|
2654
|
+
"name": "DateSelectEvent",
|
|
2655
|
+
"superclass": {
|
|
2656
|
+
"name": "NordEvent",
|
|
2657
|
+
"module": "/src/common/events.js"
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2660
|
+
],
|
|
2661
|
+
"exports": [
|
|
2662
|
+
{
|
|
2663
|
+
"kind": "js",
|
|
2664
|
+
"name": "DateSelectEvent",
|
|
2665
|
+
"declaration": {
|
|
2666
|
+
"name": "DateSelectEvent",
|
|
2667
|
+
"module": "src/calendar/DateSelectEvent.ts"
|
|
2668
|
+
}
|
|
2669
|
+
}
|
|
2670
|
+
]
|
|
2671
|
+
},
|
|
2672
|
+
{
|
|
2673
|
+
"kind": "javascript-module",
|
|
2674
|
+
"path": "src/calendar/localization.ts",
|
|
2675
|
+
"declarations": [
|
|
2676
|
+
{
|
|
2677
|
+
"kind": "variable",
|
|
2678
|
+
"name": "calendarLocalization",
|
|
2679
|
+
"type": {
|
|
2680
|
+
"text": "object"
|
|
2681
|
+
},
|
|
2682
|
+
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n}"
|
|
2683
|
+
}
|
|
2684
|
+
],
|
|
2685
|
+
"exports": [
|
|
2686
|
+
{
|
|
2687
|
+
"kind": "js",
|
|
2688
|
+
"name": "default",
|
|
2689
|
+
"declaration": {
|
|
2690
|
+
"name": "calendarLocalization",
|
|
2691
|
+
"module": "src/calendar/localization.ts"
|
|
2692
2692
|
}
|
|
2693
2693
|
}
|
|
2694
2694
|
]
|
|
@@ -8766,267 +8766,65 @@
|
|
|
8766
8766
|
"name": "hostConnected"
|
|
8767
8767
|
},
|
|
8768
8768
|
{
|
|
8769
|
-
"kind": "method",
|
|
8770
|
-
"name": "hostDisconnected",
|
|
8771
|
-
"return": {
|
|
8772
|
-
"type": {
|
|
8773
|
-
"text": "void"
|
|
8774
|
-
}
|
|
8775
|
-
}
|
|
8776
|
-
},
|
|
8777
|
-
{
|
|
8778
|
-
"kind": "method",
|
|
8779
|
-
"name": "block"
|
|
8780
|
-
},
|
|
8781
|
-
{
|
|
8782
|
-
"kind": "method",
|
|
8783
|
-
"name": "unblock"
|
|
8784
|
-
},
|
|
8785
|
-
{
|
|
8786
|
-
"kind": "field",
|
|
8787
|
-
"name": "trackLastButton",
|
|
8788
|
-
"privacy": "private",
|
|
8789
|
-
"description": "capture the last button clicked, so that we can polyfill `submitter` property in submit event"
|
|
8790
|
-
},
|
|
8791
|
-
{
|
|
8792
|
-
"kind": "field",
|
|
8793
|
-
"name": "polyfillSubmitter",
|
|
8794
|
-
"privacy": "private"
|
|
8795
|
-
},
|
|
8796
|
-
{
|
|
8797
|
-
"kind": "field",
|
|
8798
|
-
"name": "handleTransitionEnd",
|
|
8799
|
-
"privacy": "private"
|
|
8800
|
-
},
|
|
8801
|
-
{
|
|
8802
|
-
"kind": "field",
|
|
8803
|
-
"name": "handleLightDismiss",
|
|
8804
|
-
"privacy": "private"
|
|
8805
|
-
},
|
|
8806
|
-
{
|
|
8807
|
-
"kind": "field",
|
|
8808
|
-
"name": "handleSubmit",
|
|
8809
|
-
"privacy": "private"
|
|
8810
|
-
}
|
|
8811
|
-
]
|
|
8812
|
-
}
|
|
8813
|
-
],
|
|
8814
|
-
"exports": [
|
|
8815
|
-
{
|
|
8816
|
-
"kind": "js",
|
|
8817
|
-
"name": "ModalController",
|
|
8818
|
-
"declaration": {
|
|
8819
|
-
"name": "ModalController",
|
|
8820
|
-
"module": "src/modal/ModalController.ts"
|
|
8821
|
-
}
|
|
8822
|
-
}
|
|
8823
|
-
]
|
|
8824
|
-
},
|
|
8825
|
-
{
|
|
8826
|
-
"kind": "javascript-module",
|
|
8827
|
-
"path": "src/modal/localization.ts",
|
|
8828
|
-
"declarations": [
|
|
8829
|
-
{
|
|
8830
|
-
"kind": "variable",
|
|
8831
|
-
"name": "localization",
|
|
8832
|
-
"type": {
|
|
8833
|
-
"text": "object"
|
|
8834
|
-
},
|
|
8835
|
-
"default": "{\n closeLabel: \"Close dialog\",\n}"
|
|
8836
|
-
}
|
|
8837
|
-
],
|
|
8838
|
-
"exports": [
|
|
8839
|
-
{
|
|
8840
|
-
"kind": "js",
|
|
8841
|
-
"name": "default",
|
|
8842
|
-
"declaration": {
|
|
8843
|
-
"name": "localization",
|
|
8844
|
-
"module": "src/modal/localization.ts"
|
|
8845
|
-
}
|
|
8846
|
-
}
|
|
8847
|
-
]
|
|
8848
|
-
},
|
|
8849
|
-
{
|
|
8850
|
-
"kind": "javascript-module",
|
|
8851
|
-
"path": "src/nav-group/NavGroup.ts",
|
|
8852
|
-
"declarations": [
|
|
8853
|
-
{
|
|
8854
|
-
"kind": "class",
|
|
8855
|
-
"description": "Navigation group includes all the actions or items in a single\ngroup and is used for grouping items into related categories.",
|
|
8856
|
-
"name": "NavGroup",
|
|
8857
|
-
"slots": [
|
|
8858
|
-
{
|
|
8859
|
-
"description": "The default slot used for the nav items.",
|
|
8860
|
-
"name": ""
|
|
8861
|
-
}
|
|
8862
|
-
],
|
|
8863
|
-
"members": [
|
|
8864
|
-
{
|
|
8865
|
-
"kind": "field",
|
|
8866
|
-
"name": "heading",
|
|
8867
|
-
"type": {
|
|
8868
|
-
"text": "string | undefined"
|
|
8869
|
-
},
|
|
8870
|
-
"description": "Heading and accessible label for the nav group",
|
|
8871
|
-
"attribute": "heading"
|
|
8872
|
-
}
|
|
8873
|
-
],
|
|
8874
|
-
"attributes": [
|
|
8875
|
-
{
|
|
8876
|
-
"name": "heading",
|
|
8877
|
-
"type": {
|
|
8878
|
-
"text": "string | undefined"
|
|
8879
|
-
},
|
|
8880
|
-
"description": "Heading and accessible label for the nav group",
|
|
8881
|
-
"fieldName": "heading"
|
|
8882
|
-
}
|
|
8883
|
-
],
|
|
8884
|
-
"superclass": {
|
|
8885
|
-
"name": "LitElement",
|
|
8886
|
-
"package": "lit"
|
|
8887
|
-
},
|
|
8888
|
-
"localization": [],
|
|
8889
|
-
"status": "ready",
|
|
8890
|
-
"category": "navigation",
|
|
8891
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
8892
|
-
"examples": [],
|
|
8893
|
-
"tagName": "nord-nav-group",
|
|
8894
|
-
"customElement": true
|
|
8895
|
-
}
|
|
8896
|
-
],
|
|
8897
|
-
"exports": [
|
|
8898
|
-
{
|
|
8899
|
-
"kind": "js",
|
|
8900
|
-
"name": "default",
|
|
8901
|
-
"declaration": {
|
|
8902
|
-
"name": "NavGroup",
|
|
8903
|
-
"module": "src/nav-group/NavGroup.ts"
|
|
8904
|
-
}
|
|
8905
|
-
},
|
|
8906
|
-
{
|
|
8907
|
-
"kind": "custom-element-definition",
|
|
8908
|
-
"name": "nord-nav-group",
|
|
8909
|
-
"declaration": {
|
|
8910
|
-
"name": "NavGroup",
|
|
8911
|
-
"module": "src/nav-group/NavGroup.ts"
|
|
8912
|
-
}
|
|
8913
|
-
}
|
|
8914
|
-
]
|
|
8915
|
-
},
|
|
8916
|
-
{
|
|
8917
|
-
"kind": "javascript-module",
|
|
8918
|
-
"path": "src/nav-toggle/NavToggle.ts",
|
|
8919
|
-
"declarations": [
|
|
8920
|
-
{
|
|
8921
|
-
"kind": "class",
|
|
8922
|
-
"description": "Nav toggle is meant for hiding and showing the primary navigation.\nThis component is used internally in the Layout component, but can also be\nused separate to further customize the behaviour.",
|
|
8923
|
-
"name": "NavToggle",
|
|
8924
|
-
"members": [
|
|
8925
|
-
{
|
|
8926
|
-
"kind": "field",
|
|
8927
|
-
"name": "direction",
|
|
8928
|
-
"privacy": "private",
|
|
8929
|
-
"default": "new DirectionController(this)"
|
|
8930
|
-
},
|
|
8931
|
-
{
|
|
8932
|
-
"kind": "field",
|
|
8933
|
-
"name": "localization",
|
|
8934
|
-
"privacy": "private",
|
|
8935
|
-
"default": "new LocalizeController<\"nord-nav-toggle\">(this)"
|
|
8936
|
-
},
|
|
8937
|
-
{
|
|
8938
|
-
"kind": "field",
|
|
8939
|
-
"name": "focusableRef",
|
|
8940
|
-
"privacy": "protected",
|
|
8941
|
-
"inheritedFrom": {
|
|
8942
|
-
"name": "FocusableMixin",
|
|
8943
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8944
|
-
}
|
|
8945
|
-
},
|
|
8946
|
-
{
|
|
8947
|
-
"kind": "method",
|
|
8948
|
-
"name": "focus",
|
|
8949
|
-
"parameters": [
|
|
8950
|
-
{
|
|
8951
|
-
"name": "options",
|
|
8952
|
-
"optional": true,
|
|
8953
|
-
"type": {
|
|
8954
|
-
"text": "FocusOptions"
|
|
8955
|
-
},
|
|
8956
|
-
"description": "An object which controls aspects of the focusing process."
|
|
8769
|
+
"kind": "method",
|
|
8770
|
+
"name": "hostDisconnected",
|
|
8771
|
+
"return": {
|
|
8772
|
+
"type": {
|
|
8773
|
+
"text": "void"
|
|
8957
8774
|
}
|
|
8958
|
-
],
|
|
8959
|
-
"description": "Programmatically move focus to the component.",
|
|
8960
|
-
"inheritedFrom": {
|
|
8961
|
-
"name": "FocusableMixin",
|
|
8962
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8963
8775
|
}
|
|
8964
8776
|
},
|
|
8965
8777
|
{
|
|
8966
8778
|
"kind": "method",
|
|
8967
|
-
"name": "
|
|
8968
|
-
"description": "Programmatically remove focus from the component.",
|
|
8969
|
-
"inheritedFrom": {
|
|
8970
|
-
"name": "FocusableMixin",
|
|
8971
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8972
|
-
}
|
|
8779
|
+
"name": "block"
|
|
8973
8780
|
},
|
|
8974
8781
|
{
|
|
8975
8782
|
"kind": "method",
|
|
8976
|
-
"name": "
|
|
8977
|
-
|
|
8978
|
-
"inheritedFrom": {
|
|
8979
|
-
"name": "FocusableMixin",
|
|
8980
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
8981
|
-
}
|
|
8982
|
-
}
|
|
8983
|
-
],
|
|
8984
|
-
"mixins": [
|
|
8783
|
+
"name": "unblock"
|
|
8784
|
+
},
|
|
8985
8785
|
{
|
|
8986
|
-
"
|
|
8987
|
-
"
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
"name": "LitElement",
|
|
8992
|
-
"package": "lit"
|
|
8993
|
-
},
|
|
8994
|
-
"localization": [
|
|
8786
|
+
"kind": "field",
|
|
8787
|
+
"name": "trackLastButton",
|
|
8788
|
+
"privacy": "private",
|
|
8789
|
+
"description": "capture the last button clicked, so that we can polyfill `submitter` property in submit event"
|
|
8790
|
+
},
|
|
8995
8791
|
{
|
|
8996
|
-
"
|
|
8997
|
-
"
|
|
8792
|
+
"kind": "field",
|
|
8793
|
+
"name": "polyfillSubmitter",
|
|
8794
|
+
"privacy": "private"
|
|
8795
|
+
},
|
|
8796
|
+
{
|
|
8797
|
+
"kind": "field",
|
|
8798
|
+
"name": "handleTransitionEnd",
|
|
8799
|
+
"privacy": "private"
|
|
8800
|
+
},
|
|
8801
|
+
{
|
|
8802
|
+
"kind": "field",
|
|
8803
|
+
"name": "handleLightDismiss",
|
|
8804
|
+
"privacy": "private"
|
|
8805
|
+
},
|
|
8806
|
+
{
|
|
8807
|
+
"kind": "field",
|
|
8808
|
+
"name": "handleSubmit",
|
|
8809
|
+
"privacy": "private"
|
|
8998
8810
|
}
|
|
8999
|
-
]
|
|
9000
|
-
"status": "new",
|
|
9001
|
-
"category": "action",
|
|
9002
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use a tooltip with the toggle that’s labelled as `Toggle navigation`.\n- We recommend setting a keyboard shortcut that toggles the navigation.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use as a generic button or toggle. Use the [Button component](/components/button/) instead.\n\n</div>\n",
|
|
9003
|
-
"examples": [],
|
|
9004
|
-
"tagName": "nord-nav-toggle",
|
|
9005
|
-
"customElement": true
|
|
8811
|
+
]
|
|
9006
8812
|
}
|
|
9007
8813
|
],
|
|
9008
8814
|
"exports": [
|
|
9009
8815
|
{
|
|
9010
8816
|
"kind": "js",
|
|
9011
|
-
"name": "
|
|
9012
|
-
"declaration": {
|
|
9013
|
-
"name": "NavToggle",
|
|
9014
|
-
"module": "src/nav-toggle/NavToggle.ts"
|
|
9015
|
-
}
|
|
9016
|
-
},
|
|
9017
|
-
{
|
|
9018
|
-
"kind": "custom-element-definition",
|
|
9019
|
-
"name": "nord-nav-toggle",
|
|
8817
|
+
"name": "ModalController",
|
|
9020
8818
|
"declaration": {
|
|
9021
|
-
"name": "
|
|
9022
|
-
"module": "src/
|
|
8819
|
+
"name": "ModalController",
|
|
8820
|
+
"module": "src/modal/ModalController.ts"
|
|
9023
8821
|
}
|
|
9024
8822
|
}
|
|
9025
8823
|
]
|
|
9026
8824
|
},
|
|
9027
8825
|
{
|
|
9028
8826
|
"kind": "javascript-module",
|
|
9029
|
-
"path": "src/
|
|
8827
|
+
"path": "src/modal/localization.ts",
|
|
9030
8828
|
"declarations": [
|
|
9031
8829
|
{
|
|
9032
8830
|
"kind": "variable",
|
|
@@ -9034,7 +8832,7 @@
|
|
|
9034
8832
|
"type": {
|
|
9035
8833
|
"text": "object"
|
|
9036
8834
|
},
|
|
9037
|
-
"default": "{\n
|
|
8835
|
+
"default": "{\n closeLabel: \"Close dialog\",\n}"
|
|
9038
8836
|
}
|
|
9039
8837
|
],
|
|
9040
8838
|
"exports": [
|
|
@@ -9043,7 +8841,7 @@
|
|
|
9043
8841
|
"name": "default",
|
|
9044
8842
|
"declaration": {
|
|
9045
8843
|
"name": "localization",
|
|
9046
|
-
"module": "src/
|
|
8844
|
+
"module": "src/modal/localization.ts"
|
|
9047
8845
|
}
|
|
9048
8846
|
}
|
|
9049
8847
|
]
|
|
@@ -9254,21 +9052,194 @@
|
|
|
9254
9052
|
"fieldName": "href"
|
|
9255
9053
|
},
|
|
9256
9054
|
{
|
|
9257
|
-
"name": "badge",
|
|
9258
|
-
"type": {
|
|
9259
|
-
"text": "string | undefined"
|
|
9260
|
-
},
|
|
9261
|
-
"description": "Allows you to add a notification badge with a number next to the nav item.",
|
|
9262
|
-
"fieldName": "badge"
|
|
9055
|
+
"name": "badge",
|
|
9056
|
+
"type": {
|
|
9057
|
+
"text": "string | undefined"
|
|
9058
|
+
},
|
|
9059
|
+
"description": "Allows you to add a notification badge with a number next to the nav item.",
|
|
9060
|
+
"fieldName": "badge"
|
|
9061
|
+
},
|
|
9062
|
+
{
|
|
9063
|
+
"name": "open",
|
|
9064
|
+
"type": {
|
|
9065
|
+
"text": "boolean"
|
|
9066
|
+
},
|
|
9067
|
+
"default": "false",
|
|
9068
|
+
"description": "When the nav items contains a subnav, controls whether the section is expanded or not.\nNote: this is only used if you have nested navigation using the \"subnav\" slot.",
|
|
9069
|
+
"fieldName": "open"
|
|
9070
|
+
}
|
|
9071
|
+
],
|
|
9072
|
+
"mixins": [
|
|
9073
|
+
{
|
|
9074
|
+
"name": "FocusableMixin",
|
|
9075
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
9076
|
+
}
|
|
9077
|
+
],
|
|
9078
|
+
"superclass": {
|
|
9079
|
+
"name": "LitElement",
|
|
9080
|
+
"package": "lit"
|
|
9081
|
+
},
|
|
9082
|
+
"localization": [],
|
|
9083
|
+
"status": "ready",
|
|
9084
|
+
"category": "navigation",
|
|
9085
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use navigation item outside of navigation group and navigation components.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
9086
|
+
"examples": [],
|
|
9087
|
+
"tagName": "nord-nav-item",
|
|
9088
|
+
"customElement": true
|
|
9089
|
+
}
|
|
9090
|
+
],
|
|
9091
|
+
"exports": [
|
|
9092
|
+
{
|
|
9093
|
+
"kind": "js",
|
|
9094
|
+
"name": "default",
|
|
9095
|
+
"declaration": {
|
|
9096
|
+
"name": "NavItem",
|
|
9097
|
+
"module": "src/nav-item/NavItem.ts"
|
|
9098
|
+
}
|
|
9099
|
+
},
|
|
9100
|
+
{
|
|
9101
|
+
"kind": "custom-element-definition",
|
|
9102
|
+
"name": "nord-nav-item",
|
|
9103
|
+
"declaration": {
|
|
9104
|
+
"name": "NavItem",
|
|
9105
|
+
"module": "src/nav-item/NavItem.ts"
|
|
9106
|
+
}
|
|
9107
|
+
}
|
|
9108
|
+
]
|
|
9109
|
+
},
|
|
9110
|
+
{
|
|
9111
|
+
"kind": "javascript-module",
|
|
9112
|
+
"path": "src/nav-group/NavGroup.ts",
|
|
9113
|
+
"declarations": [
|
|
9114
|
+
{
|
|
9115
|
+
"kind": "class",
|
|
9116
|
+
"description": "Navigation group includes all the actions or items in a single\ngroup and is used for grouping items into related categories.",
|
|
9117
|
+
"name": "NavGroup",
|
|
9118
|
+
"slots": [
|
|
9119
|
+
{
|
|
9120
|
+
"description": "The default slot used for the nav items.",
|
|
9121
|
+
"name": ""
|
|
9122
|
+
}
|
|
9123
|
+
],
|
|
9124
|
+
"members": [
|
|
9125
|
+
{
|
|
9126
|
+
"kind": "field",
|
|
9127
|
+
"name": "heading",
|
|
9128
|
+
"type": {
|
|
9129
|
+
"text": "string | undefined"
|
|
9130
|
+
},
|
|
9131
|
+
"description": "Heading and accessible label for the nav group",
|
|
9132
|
+
"attribute": "heading"
|
|
9133
|
+
}
|
|
9134
|
+
],
|
|
9135
|
+
"attributes": [
|
|
9136
|
+
{
|
|
9137
|
+
"name": "heading",
|
|
9138
|
+
"type": {
|
|
9139
|
+
"text": "string | undefined"
|
|
9140
|
+
},
|
|
9141
|
+
"description": "Heading and accessible label for the nav group",
|
|
9142
|
+
"fieldName": "heading"
|
|
9143
|
+
}
|
|
9144
|
+
],
|
|
9145
|
+
"superclass": {
|
|
9146
|
+
"name": "LitElement",
|
|
9147
|
+
"package": "lit"
|
|
9148
|
+
},
|
|
9149
|
+
"localization": [],
|
|
9150
|
+
"status": "ready",
|
|
9151
|
+
"category": "navigation",
|
|
9152
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Group navigation items into navigation groups based on related categories.\n- Use group headings to clarify the category of a section.\n- Use icons for all top level navigation items.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for grouping other types of content.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing navigation item labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in item labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Change theme</div>\n<div class=\"n-usage n-usage-dont\">Change the theme</div>\n\nAvoid ending item labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Switch user</div>\n<div class=\"n-usage n-usage-dont\">Switch user.</div>\n\nUse as few words as possible to describe each item label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for item labels and group titles:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n",
|
|
9153
|
+
"examples": [],
|
|
9154
|
+
"tagName": "nord-nav-group",
|
|
9155
|
+
"customElement": true
|
|
9156
|
+
}
|
|
9157
|
+
],
|
|
9158
|
+
"exports": [
|
|
9159
|
+
{
|
|
9160
|
+
"kind": "js",
|
|
9161
|
+
"name": "default",
|
|
9162
|
+
"declaration": {
|
|
9163
|
+
"name": "NavGroup",
|
|
9164
|
+
"module": "src/nav-group/NavGroup.ts"
|
|
9165
|
+
}
|
|
9166
|
+
},
|
|
9167
|
+
{
|
|
9168
|
+
"kind": "custom-element-definition",
|
|
9169
|
+
"name": "nord-nav-group",
|
|
9170
|
+
"declaration": {
|
|
9171
|
+
"name": "NavGroup",
|
|
9172
|
+
"module": "src/nav-group/NavGroup.ts"
|
|
9173
|
+
}
|
|
9174
|
+
}
|
|
9175
|
+
]
|
|
9176
|
+
},
|
|
9177
|
+
{
|
|
9178
|
+
"kind": "javascript-module",
|
|
9179
|
+
"path": "src/nav-toggle/NavToggle.ts",
|
|
9180
|
+
"declarations": [
|
|
9181
|
+
{
|
|
9182
|
+
"kind": "class",
|
|
9183
|
+
"description": "Nav toggle is meant for hiding and showing the primary navigation.\nThis component is used internally in the Layout component, but can also be\nused separate to further customize the behaviour.",
|
|
9184
|
+
"name": "NavToggle",
|
|
9185
|
+
"members": [
|
|
9186
|
+
{
|
|
9187
|
+
"kind": "field",
|
|
9188
|
+
"name": "direction",
|
|
9189
|
+
"privacy": "private",
|
|
9190
|
+
"default": "new DirectionController(this)"
|
|
9191
|
+
},
|
|
9192
|
+
{
|
|
9193
|
+
"kind": "field",
|
|
9194
|
+
"name": "localization",
|
|
9195
|
+
"privacy": "private",
|
|
9196
|
+
"default": "new LocalizeController<\"nord-nav-toggle\">(this)"
|
|
9197
|
+
},
|
|
9198
|
+
{
|
|
9199
|
+
"kind": "field",
|
|
9200
|
+
"name": "focusableRef",
|
|
9201
|
+
"privacy": "protected",
|
|
9202
|
+
"inheritedFrom": {
|
|
9203
|
+
"name": "FocusableMixin",
|
|
9204
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9205
|
+
}
|
|
9206
|
+
},
|
|
9207
|
+
{
|
|
9208
|
+
"kind": "method",
|
|
9209
|
+
"name": "focus",
|
|
9210
|
+
"parameters": [
|
|
9211
|
+
{
|
|
9212
|
+
"name": "options",
|
|
9213
|
+
"optional": true,
|
|
9214
|
+
"type": {
|
|
9215
|
+
"text": "FocusOptions"
|
|
9216
|
+
},
|
|
9217
|
+
"description": "An object which controls aspects of the focusing process."
|
|
9218
|
+
}
|
|
9219
|
+
],
|
|
9220
|
+
"description": "Programmatically move focus to the component.",
|
|
9221
|
+
"inheritedFrom": {
|
|
9222
|
+
"name": "FocusableMixin",
|
|
9223
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9224
|
+
}
|
|
9225
|
+
},
|
|
9226
|
+
{
|
|
9227
|
+
"kind": "method",
|
|
9228
|
+
"name": "blur",
|
|
9229
|
+
"description": "Programmatically remove focus from the component.",
|
|
9230
|
+
"inheritedFrom": {
|
|
9231
|
+
"name": "FocusableMixin",
|
|
9232
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9233
|
+
}
|
|
9263
9234
|
},
|
|
9264
9235
|
{
|
|
9265
|
-
"
|
|
9266
|
-
"
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9236
|
+
"kind": "method",
|
|
9237
|
+
"name": "click",
|
|
9238
|
+
"description": "Programmatically simulates a click on the component.",
|
|
9239
|
+
"inheritedFrom": {
|
|
9240
|
+
"name": "FocusableMixin",
|
|
9241
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9242
|
+
}
|
|
9272
9243
|
}
|
|
9273
9244
|
],
|
|
9274
9245
|
"mixins": [
|
|
@@ -9281,12 +9252,17 @@
|
|
|
9281
9252
|
"name": "LitElement",
|
|
9282
9253
|
"package": "lit"
|
|
9283
9254
|
},
|
|
9284
|
-
"localization": [
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9255
|
+
"localization": [
|
|
9256
|
+
{
|
|
9257
|
+
"name": "label",
|
|
9258
|
+
"description": "Accessible label for the nav toggle button."
|
|
9259
|
+
}
|
|
9260
|
+
],
|
|
9261
|
+
"status": "new",
|
|
9262
|
+
"category": "action",
|
|
9263
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use a tooltip with the toggle that’s labelled as `Toggle navigation`.\n- We recommend setting a keyboard shortcut that toggles the navigation.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use as a generic button or toggle. Use the [Button component](/components/button/) instead.\n\n</div>\n",
|
|
9288
9264
|
"examples": [],
|
|
9289
|
-
"tagName": "nord-nav-
|
|
9265
|
+
"tagName": "nord-nav-toggle",
|
|
9290
9266
|
"customElement": true
|
|
9291
9267
|
}
|
|
9292
9268
|
],
|
|
@@ -9295,16 +9271,40 @@
|
|
|
9295
9271
|
"kind": "js",
|
|
9296
9272
|
"name": "default",
|
|
9297
9273
|
"declaration": {
|
|
9298
|
-
"name": "
|
|
9299
|
-
"module": "src/nav-
|
|
9274
|
+
"name": "NavToggle",
|
|
9275
|
+
"module": "src/nav-toggle/NavToggle.ts"
|
|
9300
9276
|
}
|
|
9301
9277
|
},
|
|
9302
9278
|
{
|
|
9303
9279
|
"kind": "custom-element-definition",
|
|
9304
|
-
"name": "nord-nav-
|
|
9280
|
+
"name": "nord-nav-toggle",
|
|
9305
9281
|
"declaration": {
|
|
9306
|
-
"name": "
|
|
9307
|
-
"module": "src/nav-
|
|
9282
|
+
"name": "NavToggle",
|
|
9283
|
+
"module": "src/nav-toggle/NavToggle.ts"
|
|
9284
|
+
}
|
|
9285
|
+
}
|
|
9286
|
+
]
|
|
9287
|
+
},
|
|
9288
|
+
{
|
|
9289
|
+
"kind": "javascript-module",
|
|
9290
|
+
"path": "src/nav-toggle/localization.ts",
|
|
9291
|
+
"declarations": [
|
|
9292
|
+
{
|
|
9293
|
+
"kind": "variable",
|
|
9294
|
+
"name": "localization",
|
|
9295
|
+
"type": {
|
|
9296
|
+
"text": "object"
|
|
9297
|
+
},
|
|
9298
|
+
"default": "{\n label: \"Toggle navigation\",\n}"
|
|
9299
|
+
}
|
|
9300
|
+
],
|
|
9301
|
+
"exports": [
|
|
9302
|
+
{
|
|
9303
|
+
"kind": "js",
|
|
9304
|
+
"name": "default",
|
|
9305
|
+
"declaration": {
|
|
9306
|
+
"name": "localization",
|
|
9307
|
+
"module": "src/nav-toggle/localization.ts"
|
|
9308
9308
|
}
|
|
9309
9309
|
}
|
|
9310
9310
|
]
|
|
@@ -9694,180 +9694,9 @@
|
|
|
9694
9694
|
{
|
|
9695
9695
|
"kind": "custom-element-definition",
|
|
9696
9696
|
"name": "nord-popout",
|
|
9697
|
-
"declaration": {
|
|
9698
|
-
"name": "Popout",
|
|
9699
|
-
"module": "src/popout/Popout.ts"
|
|
9700
|
-
}
|
|
9701
|
-
}
|
|
9702
|
-
]
|
|
9703
|
-
},
|
|
9704
|
-
{
|
|
9705
|
-
"kind": "javascript-module",
|
|
9706
|
-
"path": "src/progress-bar/ProgressBar.ts",
|
|
9707
|
-
"declarations": [
|
|
9708
|
-
{
|
|
9709
|
-
"kind": "class",
|
|
9710
|
-
"description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
|
|
9711
|
-
"name": "ProgressBar",
|
|
9712
|
-
"cssProperties": [
|
|
9713
|
-
{
|
|
9714
|
-
"description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
|
|
9715
|
-
"name": "--n-progress-size",
|
|
9716
|
-
"default": "var(--n-space-s)"
|
|
9717
|
-
},
|
|
9718
|
-
{
|
|
9719
|
-
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
9720
|
-
"name": "--n-progress-border-radius",
|
|
9721
|
-
"default": "var(--n-border-radius-s)"
|
|
9722
|
-
},
|
|
9723
|
-
{
|
|
9724
|
-
"description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
|
|
9725
|
-
"name": "--n-progress-color",
|
|
9726
|
-
"default": "var(--n-color-accent)"
|
|
9727
|
-
}
|
|
9728
|
-
],
|
|
9729
|
-
"members": [
|
|
9730
|
-
{
|
|
9731
|
-
"kind": "field",
|
|
9732
|
-
"name": "value",
|
|
9733
|
-
"type": {
|
|
9734
|
-
"text": "number | undefined"
|
|
9735
|
-
},
|
|
9736
|
-
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
9737
|
-
"attribute": "value",
|
|
9738
|
-
"reflects": true
|
|
9739
|
-
},
|
|
9740
|
-
{
|
|
9741
|
-
"kind": "field",
|
|
9742
|
-
"name": "max",
|
|
9743
|
-
"type": {
|
|
9744
|
-
"text": "number"
|
|
9745
|
-
},
|
|
9746
|
-
"default": "100",
|
|
9747
|
-
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
9748
|
-
"attribute": "max",
|
|
9749
|
-
"reflects": true
|
|
9750
|
-
},
|
|
9751
|
-
{
|
|
9752
|
-
"kind": "field",
|
|
9753
|
-
"name": "label",
|
|
9754
|
-
"type": {
|
|
9755
|
-
"text": "string"
|
|
9756
|
-
},
|
|
9757
|
-
"default": "\"Current progress\"",
|
|
9758
|
-
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
9759
|
-
"attribute": "label",
|
|
9760
|
-
"reflects": true
|
|
9761
|
-
},
|
|
9762
|
-
{
|
|
9763
|
-
"kind": "field",
|
|
9764
|
-
"name": "focusableRef",
|
|
9765
|
-
"privacy": "protected",
|
|
9766
|
-
"inheritedFrom": {
|
|
9767
|
-
"name": "FocusableMixin",
|
|
9768
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9769
|
-
}
|
|
9770
|
-
},
|
|
9771
|
-
{
|
|
9772
|
-
"kind": "method",
|
|
9773
|
-
"name": "focus",
|
|
9774
|
-
"parameters": [
|
|
9775
|
-
{
|
|
9776
|
-
"name": "options",
|
|
9777
|
-
"optional": true,
|
|
9778
|
-
"type": {
|
|
9779
|
-
"text": "FocusOptions"
|
|
9780
|
-
},
|
|
9781
|
-
"description": "An object which controls aspects of the focusing process."
|
|
9782
|
-
}
|
|
9783
|
-
],
|
|
9784
|
-
"description": "Programmatically move focus to the component.",
|
|
9785
|
-
"inheritedFrom": {
|
|
9786
|
-
"name": "FocusableMixin",
|
|
9787
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9788
|
-
}
|
|
9789
|
-
},
|
|
9790
|
-
{
|
|
9791
|
-
"kind": "method",
|
|
9792
|
-
"name": "blur",
|
|
9793
|
-
"description": "Programmatically remove focus from the component.",
|
|
9794
|
-
"inheritedFrom": {
|
|
9795
|
-
"name": "FocusableMixin",
|
|
9796
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9797
|
-
}
|
|
9798
|
-
},
|
|
9799
|
-
{
|
|
9800
|
-
"kind": "method",
|
|
9801
|
-
"name": "click",
|
|
9802
|
-
"description": "Programmatically simulates a click on the component.",
|
|
9803
|
-
"inheritedFrom": {
|
|
9804
|
-
"name": "FocusableMixin",
|
|
9805
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9806
|
-
}
|
|
9807
|
-
}
|
|
9808
|
-
],
|
|
9809
|
-
"attributes": [
|
|
9810
|
-
{
|
|
9811
|
-
"name": "value",
|
|
9812
|
-
"type": {
|
|
9813
|
-
"text": "number | undefined"
|
|
9814
|
-
},
|
|
9815
|
-
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
9816
|
-
"fieldName": "value"
|
|
9817
|
-
},
|
|
9818
|
-
{
|
|
9819
|
-
"name": "max",
|
|
9820
|
-
"type": {
|
|
9821
|
-
"text": "number"
|
|
9822
|
-
},
|
|
9823
|
-
"default": "100",
|
|
9824
|
-
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
9825
|
-
"fieldName": "max"
|
|
9826
|
-
},
|
|
9827
|
-
{
|
|
9828
|
-
"name": "label",
|
|
9829
|
-
"type": {
|
|
9830
|
-
"text": "string"
|
|
9831
|
-
},
|
|
9832
|
-
"default": "\"Current progress\"",
|
|
9833
|
-
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
9834
|
-
"fieldName": "label"
|
|
9835
|
-
}
|
|
9836
|
-
],
|
|
9837
|
-
"mixins": [
|
|
9838
|
-
{
|
|
9839
|
-
"name": "FocusableMixin",
|
|
9840
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
9841
|
-
}
|
|
9842
|
-
],
|
|
9843
|
-
"superclass": {
|
|
9844
|
-
"name": "LitElement",
|
|
9845
|
-
"package": "lit"
|
|
9846
|
-
},
|
|
9847
|
-
"localization": [],
|
|
9848
|
-
"status": "ready",
|
|
9849
|
-
"category": "feedback",
|
|
9850
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
|
|
9851
|
-
"examples": [],
|
|
9852
|
-
"tagName": "nord-progress-bar",
|
|
9853
|
-
"customElement": true
|
|
9854
|
-
}
|
|
9855
|
-
],
|
|
9856
|
-
"exports": [
|
|
9857
|
-
{
|
|
9858
|
-
"kind": "js",
|
|
9859
|
-
"name": "default",
|
|
9860
|
-
"declaration": {
|
|
9861
|
-
"name": "ProgressBar",
|
|
9862
|
-
"module": "src/progress-bar/ProgressBar.ts"
|
|
9863
|
-
}
|
|
9864
|
-
},
|
|
9865
|
-
{
|
|
9866
|
-
"kind": "custom-element-definition",
|
|
9867
|
-
"name": "nord-progress-bar",
|
|
9868
|
-
"declaration": {
|
|
9869
|
-
"name": "ProgressBar",
|
|
9870
|
-
"module": "src/progress-bar/ProgressBar.ts"
|
|
9697
|
+
"declaration": {
|
|
9698
|
+
"name": "Popout",
|
|
9699
|
+
"module": "src/popout/Popout.ts"
|
|
9871
9700
|
}
|
|
9872
9701
|
}
|
|
9873
9702
|
]
|
|
@@ -10058,6 +9887,177 @@
|
|
|
10058
9887
|
}
|
|
10059
9888
|
]
|
|
10060
9889
|
},
|
|
9890
|
+
{
|
|
9891
|
+
"kind": "javascript-module",
|
|
9892
|
+
"path": "src/progress-bar/ProgressBar.ts",
|
|
9893
|
+
"declarations": [
|
|
9894
|
+
{
|
|
9895
|
+
"kind": "class",
|
|
9896
|
+
"description": "Progress Bar is used to visually represent the completion\nof a task or process. It shows how much of the task has\nbeen completed and how much is still left.",
|
|
9897
|
+
"name": "ProgressBar",
|
|
9898
|
+
"cssProperties": [
|
|
9899
|
+
{
|
|
9900
|
+
"description": "Controls the thickness of the progress bar, using our [spacing tokens](/tokens/#space).",
|
|
9901
|
+
"name": "--n-progress-size",
|
|
9902
|
+
"default": "var(--n-space-s)"
|
|
9903
|
+
},
|
|
9904
|
+
{
|
|
9905
|
+
"description": "Controls how rounded the corners are, using [border radius tokens](/tokens/#border-radius).",
|
|
9906
|
+
"name": "--n-progress-border-radius",
|
|
9907
|
+
"default": "var(--n-border-radius-s)"
|
|
9908
|
+
},
|
|
9909
|
+
{
|
|
9910
|
+
"description": "Controls the color of the progress bar, using [color tokens](/tokens/#color).",
|
|
9911
|
+
"name": "--n-progress-color",
|
|
9912
|
+
"default": "var(--n-color-accent)"
|
|
9913
|
+
}
|
|
9914
|
+
],
|
|
9915
|
+
"members": [
|
|
9916
|
+
{
|
|
9917
|
+
"kind": "field",
|
|
9918
|
+
"name": "value",
|
|
9919
|
+
"type": {
|
|
9920
|
+
"text": "number | undefined"
|
|
9921
|
+
},
|
|
9922
|
+
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
9923
|
+
"attribute": "value",
|
|
9924
|
+
"reflects": true
|
|
9925
|
+
},
|
|
9926
|
+
{
|
|
9927
|
+
"kind": "field",
|
|
9928
|
+
"name": "max",
|
|
9929
|
+
"type": {
|
|
9930
|
+
"text": "number"
|
|
9931
|
+
},
|
|
9932
|
+
"default": "100",
|
|
9933
|
+
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
9934
|
+
"attribute": "max",
|
|
9935
|
+
"reflects": true
|
|
9936
|
+
},
|
|
9937
|
+
{
|
|
9938
|
+
"kind": "field",
|
|
9939
|
+
"name": "label",
|
|
9940
|
+
"type": {
|
|
9941
|
+
"text": "string"
|
|
9942
|
+
},
|
|
9943
|
+
"default": "\"Current progress\"",
|
|
9944
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
9945
|
+
"attribute": "label",
|
|
9946
|
+
"reflects": true
|
|
9947
|
+
},
|
|
9948
|
+
{
|
|
9949
|
+
"kind": "field",
|
|
9950
|
+
"name": "focusableRef",
|
|
9951
|
+
"privacy": "protected",
|
|
9952
|
+
"inheritedFrom": {
|
|
9953
|
+
"name": "FocusableMixin",
|
|
9954
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9955
|
+
}
|
|
9956
|
+
},
|
|
9957
|
+
{
|
|
9958
|
+
"kind": "method",
|
|
9959
|
+
"name": "focus",
|
|
9960
|
+
"parameters": [
|
|
9961
|
+
{
|
|
9962
|
+
"name": "options",
|
|
9963
|
+
"optional": true,
|
|
9964
|
+
"type": {
|
|
9965
|
+
"text": "FocusOptions"
|
|
9966
|
+
},
|
|
9967
|
+
"description": "An object which controls aspects of the focusing process."
|
|
9968
|
+
}
|
|
9969
|
+
],
|
|
9970
|
+
"description": "Programmatically move focus to the component.",
|
|
9971
|
+
"inheritedFrom": {
|
|
9972
|
+
"name": "FocusableMixin",
|
|
9973
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9974
|
+
}
|
|
9975
|
+
},
|
|
9976
|
+
{
|
|
9977
|
+
"kind": "method",
|
|
9978
|
+
"name": "blur",
|
|
9979
|
+
"description": "Programmatically remove focus from the component.",
|
|
9980
|
+
"inheritedFrom": {
|
|
9981
|
+
"name": "FocusableMixin",
|
|
9982
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9983
|
+
}
|
|
9984
|
+
},
|
|
9985
|
+
{
|
|
9986
|
+
"kind": "method",
|
|
9987
|
+
"name": "click",
|
|
9988
|
+
"description": "Programmatically simulates a click on the component.",
|
|
9989
|
+
"inheritedFrom": {
|
|
9990
|
+
"name": "FocusableMixin",
|
|
9991
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
9992
|
+
}
|
|
9993
|
+
}
|
|
9994
|
+
],
|
|
9995
|
+
"attributes": [
|
|
9996
|
+
{
|
|
9997
|
+
"name": "value",
|
|
9998
|
+
"type": {
|
|
9999
|
+
"text": "number | undefined"
|
|
10000
|
+
},
|
|
10001
|
+
"description": "Specifies how much of the task has been completed. Must be a valid floating\npoint number between 0 and max, or between 0 and 100 if max is omitted. If\nthere is no value, the progress bar is indeterminate; this indicates that\nan activity is ongoing with no indication of how long it’s expected to take.",
|
|
10002
|
+
"fieldName": "value"
|
|
10003
|
+
},
|
|
10004
|
+
{
|
|
10005
|
+
"name": "max",
|
|
10006
|
+
"type": {
|
|
10007
|
+
"text": "number"
|
|
10008
|
+
},
|
|
10009
|
+
"default": "100",
|
|
10010
|
+
"description": "Describes how much work the task indicated by the progress element requires.\nThe max attribute, if present, must have a value greater than 0 and be a\nvalid floating point number.",
|
|
10011
|
+
"fieldName": "max"
|
|
10012
|
+
},
|
|
10013
|
+
{
|
|
10014
|
+
"name": "label",
|
|
10015
|
+
"type": {
|
|
10016
|
+
"text": "string"
|
|
10017
|
+
},
|
|
10018
|
+
"default": "\"Current progress\"",
|
|
10019
|
+
"description": "Accessible label for the progress indicator. Visually hidden, but shown\nfor assistive technology.",
|
|
10020
|
+
"fieldName": "label"
|
|
10021
|
+
}
|
|
10022
|
+
],
|
|
10023
|
+
"mixins": [
|
|
10024
|
+
{
|
|
10025
|
+
"name": "FocusableMixin",
|
|
10026
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
10027
|
+
}
|
|
10028
|
+
],
|
|
10029
|
+
"superclass": {
|
|
10030
|
+
"name": "LitElement",
|
|
10031
|
+
"package": "lit"
|
|
10032
|
+
},
|
|
10033
|
+
"localization": [],
|
|
10034
|
+
"status": "ready",
|
|
10035
|
+
"category": "feedback",
|
|
10036
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show the completion status of an ongoing task.\n- Use progress bar when you can determine the percentage of the completed task at any time.\n- Always provide an accessible label when using Progress Bar.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use in constrained spaces indicating indeterminate loading state, see [Spinner](/components/spinner/) instead.\n\n</div>\n",
|
|
10037
|
+
"examples": [],
|
|
10038
|
+
"tagName": "nord-progress-bar",
|
|
10039
|
+
"customElement": true
|
|
10040
|
+
}
|
|
10041
|
+
],
|
|
10042
|
+
"exports": [
|
|
10043
|
+
{
|
|
10044
|
+
"kind": "js",
|
|
10045
|
+
"name": "default",
|
|
10046
|
+
"declaration": {
|
|
10047
|
+
"name": "ProgressBar",
|
|
10048
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
10049
|
+
}
|
|
10050
|
+
},
|
|
10051
|
+
{
|
|
10052
|
+
"kind": "custom-element-definition",
|
|
10053
|
+
"name": "nord-progress-bar",
|
|
10054
|
+
"declaration": {
|
|
10055
|
+
"name": "ProgressBar",
|
|
10056
|
+
"module": "src/progress-bar/ProgressBar.ts"
|
|
10057
|
+
}
|
|
10058
|
+
}
|
|
10059
|
+
]
|
|
10060
|
+
},
|
|
10061
10061
|
{
|
|
10062
10062
|
"kind": "javascript-module",
|
|
10063
10063
|
"path": "src/radio/Radio.ts",
|
|
@@ -12351,20 +12351,114 @@
|
|
|
12351
12351
|
"fieldName": "size"
|
|
12352
12352
|
},
|
|
12353
12353
|
{
|
|
12354
|
-
"name": "color",
|
|
12354
|
+
"name": "color",
|
|
12355
|
+
"type": {
|
|
12356
|
+
"text": "string | undefined"
|
|
12357
|
+
},
|
|
12358
|
+
"description": "The color of the spinner.\nCan accept any valid CSS color value, including custom properties.",
|
|
12359
|
+
"fieldName": "color"
|
|
12360
|
+
},
|
|
12361
|
+
{
|
|
12362
|
+
"name": "label",
|
|
12363
|
+
"type": {
|
|
12364
|
+
"text": "string | undefined"
|
|
12365
|
+
},
|
|
12366
|
+
"description": "An accessible label for the spinner.\nIf no label is supplied, the spinner is hidden from assistive technology.",
|
|
12367
|
+
"fieldName": "label"
|
|
12368
|
+
}
|
|
12369
|
+
],
|
|
12370
|
+
"superclass": {
|
|
12371
|
+
"name": "LitElement",
|
|
12372
|
+
"package": "lit"
|
|
12373
|
+
},
|
|
12374
|
+
"localization": [],
|
|
12375
|
+
"status": "ready",
|
|
12376
|
+
"category": "feedback",
|
|
12377
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for indicating users that their action is being processed.\n- Use the label property to provide an accessible label for the spinner. If no label is supplied, the spinner is hidden from assistive technology.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use to show progress. Favor a progress bar instead.\n\n</div>\n",
|
|
12378
|
+
"examples": [],
|
|
12379
|
+
"tagName": "nord-spinner",
|
|
12380
|
+
"customElement": true
|
|
12381
|
+
}
|
|
12382
|
+
],
|
|
12383
|
+
"exports": [
|
|
12384
|
+
{
|
|
12385
|
+
"kind": "js",
|
|
12386
|
+
"name": "default",
|
|
12387
|
+
"declaration": {
|
|
12388
|
+
"name": "Spinner",
|
|
12389
|
+
"module": "src/spinner/Spinner.ts"
|
|
12390
|
+
}
|
|
12391
|
+
},
|
|
12392
|
+
{
|
|
12393
|
+
"kind": "custom-element-definition",
|
|
12394
|
+
"name": "nord-spinner",
|
|
12395
|
+
"declaration": {
|
|
12396
|
+
"name": "Spinner",
|
|
12397
|
+
"module": "src/spinner/Spinner.ts"
|
|
12398
|
+
}
|
|
12399
|
+
}
|
|
12400
|
+
]
|
|
12401
|
+
},
|
|
12402
|
+
{
|
|
12403
|
+
"kind": "javascript-module",
|
|
12404
|
+
"path": "src/tab/Tab.ts",
|
|
12405
|
+
"declarations": [
|
|
12406
|
+
{
|
|
12407
|
+
"kind": "class",
|
|
12408
|
+
"description": "The interactive tab button for use within the tab group component.",
|
|
12409
|
+
"name": "Tab",
|
|
12410
|
+
"cssProperties": [
|
|
12411
|
+
{
|
|
12412
|
+
"description": "Controls the text color of the tab, using our [color tokens](/tokens/#color).",
|
|
12413
|
+
"name": "--n-tab-color",
|
|
12414
|
+
"default": "var(--n-color-text-weak)"
|
|
12415
|
+
},
|
|
12416
|
+
{
|
|
12417
|
+
"description": "Controls the font weight of the tab, using our [font tokens](/tokens/#font).",
|
|
12418
|
+
"name": "--n-tab-font-weight",
|
|
12419
|
+
"default": "var(--n-font-weight)"
|
|
12420
|
+
}
|
|
12421
|
+
],
|
|
12422
|
+
"slots": [
|
|
12423
|
+
{
|
|
12424
|
+
"description": "The tab button content.",
|
|
12425
|
+
"name": ""
|
|
12426
|
+
}
|
|
12427
|
+
],
|
|
12428
|
+
"members": [
|
|
12429
|
+
{
|
|
12430
|
+
"kind": "field",
|
|
12431
|
+
"name": "defaultSlot",
|
|
12432
|
+
"privacy": "private",
|
|
12433
|
+
"default": "new SlotController(this)"
|
|
12434
|
+
},
|
|
12435
|
+
{
|
|
12436
|
+
"kind": "field",
|
|
12437
|
+
"name": "selected",
|
|
12355
12438
|
"type": {
|
|
12356
|
-
"text": "
|
|
12439
|
+
"text": "boolean"
|
|
12357
12440
|
},
|
|
12358
|
-
"
|
|
12359
|
-
"
|
|
12441
|
+
"default": "false",
|
|
12442
|
+
"description": "Whether the tab item is selected",
|
|
12443
|
+
"attribute": "selected",
|
|
12444
|
+
"reflects": true
|
|
12360
12445
|
},
|
|
12361
12446
|
{
|
|
12362
|
-
"
|
|
12447
|
+
"kind": "method",
|
|
12448
|
+
"name": "handleSelectionChange",
|
|
12449
|
+
"privacy": "protected",
|
|
12450
|
+
"description": "Apply accessible attributes and values to the tab button.\nObserve the selected property if it changes"
|
|
12451
|
+
}
|
|
12452
|
+
],
|
|
12453
|
+
"attributes": [
|
|
12454
|
+
{
|
|
12455
|
+
"name": "selected",
|
|
12363
12456
|
"type": {
|
|
12364
|
-
"text": "
|
|
12457
|
+
"text": "boolean"
|
|
12365
12458
|
},
|
|
12366
|
-
"
|
|
12367
|
-
"
|
|
12459
|
+
"default": "false",
|
|
12460
|
+
"description": "Whether the tab item is selected",
|
|
12461
|
+
"fieldName": "selected"
|
|
12368
12462
|
}
|
|
12369
12463
|
],
|
|
12370
12464
|
"superclass": {
|
|
@@ -12373,10 +12467,10 @@
|
|
|
12373
12467
|
},
|
|
12374
12468
|
"localization": [],
|
|
12375
12469
|
"status": "ready",
|
|
12376
|
-
"category": "
|
|
12377
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use
|
|
12470
|
+
"category": "navigation",
|
|
12471
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab component within the tab group component.\n- Use the `selected` option to signify if the tab is selected.\n- Use text, icons and other non-interactive content within the tab.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use tabs to navigate to other pages. Use navigation or links instead.\n- Don't use the tab component outside of the tab group component.\n- Don't add interactive elements, such as buttons and links, inside the tab component.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular section you wish to show out of order of the tabs UI itself consider using the `selected` option to select the tab but prevent the order of the tabs being affected.\n",
|
|
12378
12472
|
"examples": [],
|
|
12379
|
-
"tagName": "nord-
|
|
12473
|
+
"tagName": "nord-tab",
|
|
12380
12474
|
"customElement": true
|
|
12381
12475
|
}
|
|
12382
12476
|
],
|
|
@@ -12385,16 +12479,16 @@
|
|
|
12385
12479
|
"kind": "js",
|
|
12386
12480
|
"name": "default",
|
|
12387
12481
|
"declaration": {
|
|
12388
|
-
"name": "
|
|
12389
|
-
"module": "src/
|
|
12482
|
+
"name": "Tab",
|
|
12483
|
+
"module": "src/tab/Tab.ts"
|
|
12390
12484
|
}
|
|
12391
12485
|
},
|
|
12392
12486
|
{
|
|
12393
12487
|
"kind": "custom-element-definition",
|
|
12394
|
-
"name": "nord-
|
|
12488
|
+
"name": "nord-tab",
|
|
12395
12489
|
"declaration": {
|
|
12396
|
-
"name": "
|
|
12397
|
-
"module": "src/
|
|
12490
|
+
"name": "Tab",
|
|
12491
|
+
"module": "src/tab/Tab.ts"
|
|
12398
12492
|
}
|
|
12399
12493
|
}
|
|
12400
12494
|
]
|
|
@@ -12578,66 +12672,19 @@
|
|
|
12578
12672
|
},
|
|
12579
12673
|
{
|
|
12580
12674
|
"kind": "javascript-module",
|
|
12581
|
-
"path": "src/tab/
|
|
12675
|
+
"path": "src/tab-panel/TabPanel.ts",
|
|
12582
12676
|
"declarations": [
|
|
12583
12677
|
{
|
|
12584
12678
|
"kind": "class",
|
|
12585
|
-
"description": "The
|
|
12586
|
-
"name": "
|
|
12587
|
-
"cssProperties": [
|
|
12588
|
-
{
|
|
12589
|
-
"description": "Controls the text color of the tab, using our [color tokens](/tokens/#color).",
|
|
12590
|
-
"name": "--n-tab-color",
|
|
12591
|
-
"default": "var(--n-color-text-weak)"
|
|
12592
|
-
},
|
|
12593
|
-
{
|
|
12594
|
-
"description": "Controls the font weight of the tab, using our [font tokens](/tokens/#font).",
|
|
12595
|
-
"name": "--n-tab-font-weight",
|
|
12596
|
-
"default": "var(--n-font-weight)"
|
|
12597
|
-
}
|
|
12598
|
-
],
|
|
12679
|
+
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
12680
|
+
"name": "TabPanel",
|
|
12599
12681
|
"slots": [
|
|
12600
12682
|
{
|
|
12601
|
-
"description": "The tab
|
|
12683
|
+
"description": "The tab panel content.",
|
|
12602
12684
|
"name": ""
|
|
12603
12685
|
}
|
|
12604
12686
|
],
|
|
12605
|
-
"members": [
|
|
12606
|
-
{
|
|
12607
|
-
"kind": "field",
|
|
12608
|
-
"name": "defaultSlot",
|
|
12609
|
-
"privacy": "private",
|
|
12610
|
-
"default": "new SlotController(this)"
|
|
12611
|
-
},
|
|
12612
|
-
{
|
|
12613
|
-
"kind": "field",
|
|
12614
|
-
"name": "selected",
|
|
12615
|
-
"type": {
|
|
12616
|
-
"text": "boolean"
|
|
12617
|
-
},
|
|
12618
|
-
"default": "false",
|
|
12619
|
-
"description": "Whether the tab item is selected",
|
|
12620
|
-
"attribute": "selected",
|
|
12621
|
-
"reflects": true
|
|
12622
|
-
},
|
|
12623
|
-
{
|
|
12624
|
-
"kind": "method",
|
|
12625
|
-
"name": "handleSelectionChange",
|
|
12626
|
-
"privacy": "protected",
|
|
12627
|
-
"description": "Apply accessible attributes and values to the tab button.\nObserve the selected property if it changes"
|
|
12628
|
-
}
|
|
12629
|
-
],
|
|
12630
|
-
"attributes": [
|
|
12631
|
-
{
|
|
12632
|
-
"name": "selected",
|
|
12633
|
-
"type": {
|
|
12634
|
-
"text": "boolean"
|
|
12635
|
-
},
|
|
12636
|
-
"default": "false",
|
|
12637
|
-
"description": "Whether the tab item is selected",
|
|
12638
|
-
"fieldName": "selected"
|
|
12639
|
-
}
|
|
12640
|
-
],
|
|
12687
|
+
"members": [],
|
|
12641
12688
|
"superclass": {
|
|
12642
12689
|
"name": "LitElement",
|
|
12643
12690
|
"package": "lit"
|
|
@@ -12645,9 +12692,9 @@
|
|
|
12645
12692
|
"localization": [],
|
|
12646
12693
|
"status": "ready",
|
|
12647
12694
|
"category": "navigation",
|
|
12648
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab component within the tab group component.\n- Use
|
|
12695
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the tab panel component within the tab group component.\n- Use both non-interactive and interactive elements within the contents of the tab panel.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don't use the tab panel component outside of the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the related tab component to select the tab but prevent the order of the tabs being affected.\n",
|
|
12649
12696
|
"examples": [],
|
|
12650
|
-
"tagName": "nord-tab",
|
|
12697
|
+
"tagName": "nord-tab-panel",
|
|
12651
12698
|
"customElement": true
|
|
12652
12699
|
}
|
|
12653
12700
|
],
|
|
@@ -12656,16 +12703,16 @@
|
|
|
12656
12703
|
"kind": "js",
|
|
12657
12704
|
"name": "default",
|
|
12658
12705
|
"declaration": {
|
|
12659
|
-
"name": "
|
|
12660
|
-
"module": "src/tab/
|
|
12706
|
+
"name": "TabPanel",
|
|
12707
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
12661
12708
|
}
|
|
12662
12709
|
},
|
|
12663
12710
|
{
|
|
12664
12711
|
"kind": "custom-element-definition",
|
|
12665
|
-
"name": "nord-tab",
|
|
12712
|
+
"name": "nord-tab-panel",
|
|
12666
12713
|
"declaration": {
|
|
12667
|
-
"name": "
|
|
12668
|
-
"module": "src/tab/
|
|
12714
|
+
"name": "TabPanel",
|
|
12715
|
+
"module": "src/tab-panel/TabPanel.ts"
|
|
12669
12716
|
}
|
|
12670
12717
|
}
|
|
12671
12718
|
]
|
|
@@ -12838,105 +12885,197 @@
|
|
|
12838
12885
|
},
|
|
12839
12886
|
{
|
|
12840
12887
|
"kind": "method",
|
|
12841
|
-
"name": "updateSelectedTab",
|
|
12842
|
-
"privacy": "private",
|
|
12843
|
-
"parameters": [
|
|
12844
|
-
{
|
|
12845
|
-
"name": "selectedTab",
|
|
12846
|
-
"type": {
|
|
12847
|
-
"text": "Tab"
|
|
12848
|
-
}
|
|
12849
|
-
}
|
|
12850
|
-
],
|
|
12851
|
-
"description": "Update the selected tab button with attributes and values.\nUpdate the tab group state."
|
|
12888
|
+
"name": "updateSelectedTab",
|
|
12889
|
+
"privacy": "private",
|
|
12890
|
+
"parameters": [
|
|
12891
|
+
{
|
|
12892
|
+
"name": "selectedTab",
|
|
12893
|
+
"type": {
|
|
12894
|
+
"text": "Tab"
|
|
12895
|
+
}
|
|
12896
|
+
}
|
|
12897
|
+
],
|
|
12898
|
+
"description": "Update the selected tab button with attributes and values.\nUpdate the tab group state."
|
|
12899
|
+
}
|
|
12900
|
+
],
|
|
12901
|
+
"attributes": [
|
|
12902
|
+
{
|
|
12903
|
+
"name": "label",
|
|
12904
|
+
"type": {
|
|
12905
|
+
"text": "string"
|
|
12906
|
+
},
|
|
12907
|
+
"default": "\"\"",
|
|
12908
|
+
"description": "Adds an accessible label to the tab list container.",
|
|
12909
|
+
"fieldName": "label"
|
|
12910
|
+
},
|
|
12911
|
+
{
|
|
12912
|
+
"name": "padding",
|
|
12913
|
+
"type": {
|
|
12914
|
+
"text": "\"m\" | \"l\" | \"none\" | undefined"
|
|
12915
|
+
},
|
|
12916
|
+
"default": "\"m\"",
|
|
12917
|
+
"description": "Controls the padding of the tab group component.",
|
|
12918
|
+
"fieldName": "padding"
|
|
12919
|
+
},
|
|
12920
|
+
{
|
|
12921
|
+
"name": "sticky",
|
|
12922
|
+
"type": {
|
|
12923
|
+
"text": "boolean"
|
|
12924
|
+
},
|
|
12925
|
+
"default": "false",
|
|
12926
|
+
"description": "Whether the tab list sticks to the top of the tab group as you scroll.",
|
|
12927
|
+
"fieldName": "sticky"
|
|
12928
|
+
}
|
|
12929
|
+
],
|
|
12930
|
+
"superclass": {
|
|
12931
|
+
"name": "LitElement",
|
|
12932
|
+
"package": "lit"
|
|
12933
|
+
},
|
|
12934
|
+
"localization": [],
|
|
12935
|
+
"status": "ready",
|
|
12936
|
+
"category": "navigation",
|
|
12937
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to allow multiple panels to be contained within a single window.\n- Use the tab panel and tab components within the tab group component.\n- Use the tab and tab panel components in order to create a tab group content structure.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use tabs to navigate to other pages. Use navigation or links instead.\n- Don't use other components to the tab and tab panel within the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n- Don't add a tab or tab panel component without providing an accompanying panel or tab.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the tab component related to the panel to select the tab but prevent the order of the tabs being affected.\n",
|
|
12938
|
+
"examples": [],
|
|
12939
|
+
"tagName": "nord-tab-group",
|
|
12940
|
+
"customElement": true
|
|
12941
|
+
}
|
|
12942
|
+
],
|
|
12943
|
+
"exports": [
|
|
12944
|
+
{
|
|
12945
|
+
"kind": "js",
|
|
12946
|
+
"name": "default",
|
|
12947
|
+
"declaration": {
|
|
12948
|
+
"name": "TabGroup",
|
|
12949
|
+
"module": "src/tab-group/TabGroup.ts"
|
|
12950
|
+
}
|
|
12951
|
+
},
|
|
12952
|
+
{
|
|
12953
|
+
"kind": "custom-element-definition",
|
|
12954
|
+
"name": "nord-tab-group",
|
|
12955
|
+
"declaration": {
|
|
12956
|
+
"name": "TabGroup",
|
|
12957
|
+
"module": "src/tab-group/TabGroup.ts"
|
|
12958
|
+
}
|
|
12959
|
+
}
|
|
12960
|
+
]
|
|
12961
|
+
},
|
|
12962
|
+
{
|
|
12963
|
+
"kind": "javascript-module",
|
|
12964
|
+
"path": "src/toast/Toast.ts",
|
|
12965
|
+
"declarations": [
|
|
12966
|
+
{
|
|
12967
|
+
"kind": "class",
|
|
12968
|
+
"description": "Toasts are non-disruptive messages that appear in the interface\nto provide quick, at-a-glance feedback on the outcome of an action.",
|
|
12969
|
+
"name": "Toast",
|
|
12970
|
+
"slots": [
|
|
12971
|
+
{
|
|
12972
|
+
"description": "Default slot used for the toast text/message.",
|
|
12973
|
+
"name": ""
|
|
12974
|
+
}
|
|
12975
|
+
],
|
|
12976
|
+
"members": [
|
|
12977
|
+
{
|
|
12978
|
+
"kind": "field",
|
|
12979
|
+
"name": "timeoutId",
|
|
12980
|
+
"type": {
|
|
12981
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
12982
|
+
},
|
|
12983
|
+
"privacy": "private"
|
|
12984
|
+
},
|
|
12985
|
+
{
|
|
12986
|
+
"kind": "field",
|
|
12987
|
+
"name": "events",
|
|
12988
|
+
"privacy": "private",
|
|
12989
|
+
"default": "new EventController(this)"
|
|
12990
|
+
},
|
|
12991
|
+
{
|
|
12992
|
+
"kind": "field",
|
|
12993
|
+
"name": "toast",
|
|
12994
|
+
"type": {
|
|
12995
|
+
"text": "HTMLElement"
|
|
12996
|
+
},
|
|
12997
|
+
"privacy": "private"
|
|
12998
|
+
},
|
|
12999
|
+
{
|
|
13000
|
+
"kind": "field",
|
|
13001
|
+
"name": "dismissed",
|
|
13002
|
+
"type": {
|
|
13003
|
+
"text": "boolean"
|
|
13004
|
+
},
|
|
13005
|
+
"privacy": "private",
|
|
13006
|
+
"default": "false"
|
|
13007
|
+
},
|
|
13008
|
+
{
|
|
13009
|
+
"kind": "field",
|
|
13010
|
+
"name": "variant",
|
|
13011
|
+
"type": {
|
|
13012
|
+
"text": "\"default\" | \"danger\""
|
|
13013
|
+
},
|
|
13014
|
+
"default": "\"default\"",
|
|
13015
|
+
"description": "The style variant of the toast.",
|
|
13016
|
+
"attribute": "variant",
|
|
13017
|
+
"reflects": true
|
|
13018
|
+
},
|
|
13019
|
+
{
|
|
13020
|
+
"kind": "field",
|
|
13021
|
+
"name": "autoDismiss",
|
|
13022
|
+
"type": {
|
|
13023
|
+
"text": "number"
|
|
13024
|
+
},
|
|
13025
|
+
"default": "10000",
|
|
13026
|
+
"description": "Timeout in milliseconds before the toast is automatically dismissed.",
|
|
13027
|
+
"attribute": "auto-dismiss"
|
|
13028
|
+
},
|
|
13029
|
+
{
|
|
13030
|
+
"kind": "method",
|
|
13031
|
+
"name": "dismiss",
|
|
13032
|
+
"description": "Programmatically dismiss the toast.\nThe returned promise resolves when toast's exit animation is complete."
|
|
13033
|
+
},
|
|
13034
|
+
{
|
|
13035
|
+
"kind": "method",
|
|
13036
|
+
"name": "handleAutoDismissChange",
|
|
13037
|
+
"privacy": "protected"
|
|
12852
13038
|
}
|
|
12853
13039
|
],
|
|
12854
|
-
"
|
|
13040
|
+
"events": [
|
|
12855
13041
|
{
|
|
12856
|
-
"name": "
|
|
13042
|
+
"name": "dismiss",
|
|
12857
13043
|
"type": {
|
|
12858
|
-
"text": "
|
|
13044
|
+
"text": "NordEvent"
|
|
12859
13045
|
},
|
|
12860
|
-
"
|
|
12861
|
-
|
|
12862
|
-
|
|
12863
|
-
|
|
13046
|
+
"description": "Fired when the toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM."
|
|
13047
|
+
}
|
|
13048
|
+
],
|
|
13049
|
+
"attributes": [
|
|
12864
13050
|
{
|
|
12865
|
-
"name": "
|
|
13051
|
+
"name": "variant",
|
|
12866
13052
|
"type": {
|
|
12867
|
-
"text": "\"
|
|
13053
|
+
"text": "\"default\" | \"danger\""
|
|
12868
13054
|
},
|
|
12869
|
-
"default": "\"
|
|
12870
|
-
"description": "
|
|
12871
|
-
"fieldName": "
|
|
13055
|
+
"default": "\"default\"",
|
|
13056
|
+
"description": "The style variant of the toast.",
|
|
13057
|
+
"fieldName": "variant"
|
|
12872
13058
|
},
|
|
12873
13059
|
{
|
|
12874
|
-
"name": "
|
|
13060
|
+
"name": "auto-dismiss",
|
|
12875
13061
|
"type": {
|
|
12876
|
-
"text": "
|
|
13062
|
+
"text": "number"
|
|
12877
13063
|
},
|
|
12878
|
-
"default": "
|
|
12879
|
-
"description": "
|
|
12880
|
-
"fieldName": "
|
|
12881
|
-
}
|
|
12882
|
-
],
|
|
12883
|
-
"superclass": {
|
|
12884
|
-
"name": "LitElement",
|
|
12885
|
-
"package": "lit"
|
|
12886
|
-
},
|
|
12887
|
-
"localization": [],
|
|
12888
|
-
"status": "ready",
|
|
12889
|
-
"category": "navigation",
|
|
12890
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to allow multiple panels to be contained within a single window.\n- Use the tab panel and tab components within the tab group component.\n- Use the tab and tab panel components in order to create a tab group content structure.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use tabs to navigate to other pages. Use navigation or links instead.\n- Don't use other components to the tab and tab panel within the tab group component.\n- Don't obscure important information within a tab panel that isn't revealed by default.\n- Don't add a tab or tab panel component without providing an accompanying panel or tab.\n\n</div>\n\n---\n\n## Content guidelines\n\nWhen writing tab labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">My tasks</div>\n<div class=\"n-usage n-usage-dont\">My Tasks</div>\n\nAvoid unnecessary words and articles in tab labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">The dashboard</div>\n\nAvoid ending tab labels in punctuation:\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients.</div>\n\nUse as few words as possible to describe each tab label:\n\n<div class=\"n-usage n-usage-do\">Payments</div>\n<div class=\"n-usage n-usage-dont\">Payments in your clinic</div>\n\nAvoid all caps for tab labels:\n\n<div class=\"n-usage n-usage-do\">Dashboard</div>\n<div class=\"n-usage n-usage-dont\">DASHBOARD</div>\n\n---\n\n## Additional considerations\n\n- If the content contained within the tabs UI has significance or is important for the user to see, consider using a different form of presentation that doesn't obscure it.\n- If there is a particular tab panel you wish to show out of order of the tabs UI itself consider using the `selected` option on the tab component related to the panel to select the tab but prevent the order of the tabs being affected.\n",
|
|
12891
|
-
"examples": [],
|
|
12892
|
-
"tagName": "nord-tab-group",
|
|
12893
|
-
"customElement": true
|
|
12894
|
-
}
|
|
12895
|
-
],
|
|
12896
|
-
"exports": [
|
|
12897
|
-
{
|
|
12898
|
-
"kind": "js",
|
|
12899
|
-
"name": "default",
|
|
12900
|
-
"declaration": {
|
|
12901
|
-
"name": "TabGroup",
|
|
12902
|
-
"module": "src/tab-group/TabGroup.ts"
|
|
12903
|
-
}
|
|
12904
|
-
},
|
|
12905
|
-
{
|
|
12906
|
-
"kind": "custom-element-definition",
|
|
12907
|
-
"name": "nord-tab-group",
|
|
12908
|
-
"declaration": {
|
|
12909
|
-
"name": "TabGroup",
|
|
12910
|
-
"module": "src/tab-group/TabGroup.ts"
|
|
12911
|
-
}
|
|
12912
|
-
}
|
|
12913
|
-
]
|
|
12914
|
-
},
|
|
12915
|
-
{
|
|
12916
|
-
"kind": "javascript-module",
|
|
12917
|
-
"path": "src/tab-panel/TabPanel.ts",
|
|
12918
|
-
"declarations": [
|
|
12919
|
-
{
|
|
12920
|
-
"kind": "class",
|
|
12921
|
-
"description": "The panel which contains content that can be revealed using a tab\nin the tab group component.",
|
|
12922
|
-
"name": "TabPanel",
|
|
12923
|
-
"slots": [
|
|
12924
|
-
{
|
|
12925
|
-
"description": "The tab panel content.",
|
|
12926
|
-
"name": ""
|
|
13064
|
+
"default": "10000",
|
|
13065
|
+
"description": "Timeout in milliseconds before the toast is automatically dismissed.",
|
|
13066
|
+
"fieldName": "autoDismiss"
|
|
12927
13067
|
}
|
|
12928
13068
|
],
|
|
12929
|
-
"members": [],
|
|
12930
13069
|
"superclass": {
|
|
12931
13070
|
"name": "LitElement",
|
|
12932
13071
|
"package": "lit"
|
|
12933
13072
|
},
|
|
12934
13073
|
"localization": [],
|
|
12935
13074
|
"status": "ready",
|
|
12936
|
-
"category": "
|
|
12937
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use
|
|
13075
|
+
"category": "feedback",
|
|
13076
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for short messages that confirm an action taken by a user.\n- Use for ephemeral status updates.\n- Use in combination with [Toast group](../toast-group/) so that toasts get styled and announced to screen readers correctly.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use toasts for critical information that user needs to act on.\n- Don’t rely on users seeing toasts. Toasts are transient and should not be used for critical messages.\n- Don’t place interactive content in toasts. Assistive technology like screen readers will not convey any semantics when announcing toast messages.\n- Don’t use for error messages unless absolutely necessary. Try to favor a [Banner](/components/banner/) for error messaging instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
12938
13077
|
"examples": [],
|
|
12939
|
-
"tagName": "nord-
|
|
13078
|
+
"tagName": "nord-toast",
|
|
12940
13079
|
"customElement": true
|
|
12941
13080
|
}
|
|
12942
13081
|
],
|
|
@@ -12945,16 +13084,16 @@
|
|
|
12945
13084
|
"kind": "js",
|
|
12946
13085
|
"name": "default",
|
|
12947
13086
|
"declaration": {
|
|
12948
|
-
"name": "
|
|
12949
|
-
"module": "src/
|
|
13087
|
+
"name": "Toast",
|
|
13088
|
+
"module": "src/toast/Toast.ts"
|
|
12950
13089
|
}
|
|
12951
13090
|
},
|
|
12952
13091
|
{
|
|
12953
13092
|
"kind": "custom-element-definition",
|
|
12954
|
-
"name": "nord-
|
|
13093
|
+
"name": "nord-toast",
|
|
12955
13094
|
"declaration": {
|
|
12956
|
-
"name": "
|
|
12957
|
-
"module": "src/
|
|
13095
|
+
"name": "Toast",
|
|
13096
|
+
"module": "src/toast/Toast.ts"
|
|
12958
13097
|
}
|
|
12959
13098
|
}
|
|
12960
13099
|
]
|
|
@@ -13970,145 +14109,6 @@
|
|
|
13970
14109
|
}
|
|
13971
14110
|
]
|
|
13972
14111
|
},
|
|
13973
|
-
{
|
|
13974
|
-
"kind": "javascript-module",
|
|
13975
|
-
"path": "src/toast/Toast.ts",
|
|
13976
|
-
"declarations": [
|
|
13977
|
-
{
|
|
13978
|
-
"kind": "class",
|
|
13979
|
-
"description": "Toasts are non-disruptive messages that appear in the interface\nto provide quick, at-a-glance feedback on the outcome of an action.",
|
|
13980
|
-
"name": "Toast",
|
|
13981
|
-
"slots": [
|
|
13982
|
-
{
|
|
13983
|
-
"description": "Default slot used for the toast text/message.",
|
|
13984
|
-
"name": ""
|
|
13985
|
-
}
|
|
13986
|
-
],
|
|
13987
|
-
"members": [
|
|
13988
|
-
{
|
|
13989
|
-
"kind": "field",
|
|
13990
|
-
"name": "timeoutId",
|
|
13991
|
-
"type": {
|
|
13992
|
-
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
13993
|
-
},
|
|
13994
|
-
"privacy": "private"
|
|
13995
|
-
},
|
|
13996
|
-
{
|
|
13997
|
-
"kind": "field",
|
|
13998
|
-
"name": "events",
|
|
13999
|
-
"privacy": "private",
|
|
14000
|
-
"default": "new EventController(this)"
|
|
14001
|
-
},
|
|
14002
|
-
{
|
|
14003
|
-
"kind": "field",
|
|
14004
|
-
"name": "toast",
|
|
14005
|
-
"type": {
|
|
14006
|
-
"text": "HTMLElement"
|
|
14007
|
-
},
|
|
14008
|
-
"privacy": "private"
|
|
14009
|
-
},
|
|
14010
|
-
{
|
|
14011
|
-
"kind": "field",
|
|
14012
|
-
"name": "dismissed",
|
|
14013
|
-
"type": {
|
|
14014
|
-
"text": "boolean"
|
|
14015
|
-
},
|
|
14016
|
-
"privacy": "private",
|
|
14017
|
-
"default": "false"
|
|
14018
|
-
},
|
|
14019
|
-
{
|
|
14020
|
-
"kind": "field",
|
|
14021
|
-
"name": "variant",
|
|
14022
|
-
"type": {
|
|
14023
|
-
"text": "\"default\" | \"danger\""
|
|
14024
|
-
},
|
|
14025
|
-
"default": "\"default\"",
|
|
14026
|
-
"description": "The style variant of the toast.",
|
|
14027
|
-
"attribute": "variant",
|
|
14028
|
-
"reflects": true
|
|
14029
|
-
},
|
|
14030
|
-
{
|
|
14031
|
-
"kind": "field",
|
|
14032
|
-
"name": "autoDismiss",
|
|
14033
|
-
"type": {
|
|
14034
|
-
"text": "number"
|
|
14035
|
-
},
|
|
14036
|
-
"default": "10000",
|
|
14037
|
-
"description": "Timeout in milliseconds before the toast is automatically dismissed.",
|
|
14038
|
-
"attribute": "auto-dismiss"
|
|
14039
|
-
},
|
|
14040
|
-
{
|
|
14041
|
-
"kind": "method",
|
|
14042
|
-
"name": "dismiss",
|
|
14043
|
-
"description": "Programmatically dismiss the toast.\nThe returned promise resolves when toast's exit animation is complete."
|
|
14044
|
-
},
|
|
14045
|
-
{
|
|
14046
|
-
"kind": "method",
|
|
14047
|
-
"name": "handleAutoDismissChange",
|
|
14048
|
-
"privacy": "protected"
|
|
14049
|
-
}
|
|
14050
|
-
],
|
|
14051
|
-
"events": [
|
|
14052
|
-
{
|
|
14053
|
-
"name": "dismiss",
|
|
14054
|
-
"type": {
|
|
14055
|
-
"text": "NordEvent"
|
|
14056
|
-
},
|
|
14057
|
-
"description": "Fired when the toast is dismissed (via user action or auto-dismiss), and its exit animation has completed. This event should be used to remove the dismissed toast from the DOM."
|
|
14058
|
-
}
|
|
14059
|
-
],
|
|
14060
|
-
"attributes": [
|
|
14061
|
-
{
|
|
14062
|
-
"name": "variant",
|
|
14063
|
-
"type": {
|
|
14064
|
-
"text": "\"default\" | \"danger\""
|
|
14065
|
-
},
|
|
14066
|
-
"default": "\"default\"",
|
|
14067
|
-
"description": "The style variant of the toast.",
|
|
14068
|
-
"fieldName": "variant"
|
|
14069
|
-
},
|
|
14070
|
-
{
|
|
14071
|
-
"name": "auto-dismiss",
|
|
14072
|
-
"type": {
|
|
14073
|
-
"text": "number"
|
|
14074
|
-
},
|
|
14075
|
-
"default": "10000",
|
|
14076
|
-
"description": "Timeout in milliseconds before the toast is automatically dismissed.",
|
|
14077
|
-
"fieldName": "autoDismiss"
|
|
14078
|
-
}
|
|
14079
|
-
],
|
|
14080
|
-
"superclass": {
|
|
14081
|
-
"name": "LitElement",
|
|
14082
|
-
"package": "lit"
|
|
14083
|
-
},
|
|
14084
|
-
"localization": [],
|
|
14085
|
-
"status": "ready",
|
|
14086
|
-
"category": "feedback",
|
|
14087
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for short messages that confirm an action taken by a user.\n- Use for ephemeral status updates.\n- Use in combination with [Toast group](../toast-group/) so that toasts get styled and announced to screen readers correctly.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use toasts for critical information that user needs to act on.\n- Don’t rely on users seeing toasts. Toasts are transient and should not be used for critical messages.\n- Don’t place interactive content in toasts. Assistive technology like screen readers will not convey any semantics when announcing toast messages.\n- Don’t use for error messages unless absolutely necessary. Try to favor a [Banner](/components/banner/) for error messaging instead.\n\n</div>\n\n---\n\n## Content guidelines\n\nToast content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Your message has been sent</div>\n\nWhen writing the toast content, use the {noun} + {verb} content formula:\n\n<div class=\"n-usage n-usage-do\">Patient created</div>\n<div class=\"n-usage n-usage-dont\">Your patient has been successfully updated</div>\n\nUse a maximum of 3 words when writing the toast content:\n\n<div class=\"n-usage n-usage-do\">Product updated</div>\n<div class=\"n-usage n-usage-dont\">Your product was updated just now</div>\n\nWhen writing the toast content, always write it in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message Sent</div>\n\nAvoid unnecessary words and articles in the toast content, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Changes saved</div>\n<div class=\"n-usage n-usage-dont\">The changes were saved</div>\n\nNever end in punctuation:\n\n<div class=\"n-usage n-usage-do\">Message sent</div>\n<div class=\"n-usage n-usage-dont\">Message sent.</div>\n\n---\n\n## Additional considerations\n\n- Toasts are complicated from an accessibility perspective. Whilst they are a convenient UI pattern for messaging, they present difficulties for keyboard or screen reader users. Therefore careful consideration should be given as to whether a toast is the correct choice.\n- If the message cannot be conveyed in 3 words or less, consider re-wording. If the message cannot be shortened any further, consider choosing a different pattern than toast.\n",
|
|
14088
|
-
"examples": [],
|
|
14089
|
-
"tagName": "nord-toast",
|
|
14090
|
-
"customElement": true
|
|
14091
|
-
}
|
|
14092
|
-
],
|
|
14093
|
-
"exports": [
|
|
14094
|
-
{
|
|
14095
|
-
"kind": "js",
|
|
14096
|
-
"name": "default",
|
|
14097
|
-
"declaration": {
|
|
14098
|
-
"name": "Toast",
|
|
14099
|
-
"module": "src/toast/Toast.ts"
|
|
14100
|
-
}
|
|
14101
|
-
},
|
|
14102
|
-
{
|
|
14103
|
-
"kind": "custom-element-definition",
|
|
14104
|
-
"name": "nord-toast",
|
|
14105
|
-
"declaration": {
|
|
14106
|
-
"name": "Toast",
|
|
14107
|
-
"module": "src/toast/Toast.ts"
|
|
14108
|
-
}
|
|
14109
|
-
}
|
|
14110
|
-
]
|
|
14111
|
-
},
|
|
14112
14112
|
{
|
|
14113
14113
|
"kind": "javascript-module",
|
|
14114
14114
|
"path": "src/toast-group/ToastGroup.ts",
|