@nordhealth/components 1.0.0-beta.21 → 1.0.0-beta.24
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 +999 -731
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/Calendar-72e99fb9.js +13 -0
- package/lib/Calendar-72e99fb9.js.map +1 -0
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Card.js.map +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/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/EventController-d99ebeef.js +2 -0
- package/lib/EventController-d99ebeef.js.map +1 -0
- package/lib/Fieldset.js +1 -1
- package/lib/Fieldset.js.map +1 -1
- package/lib/FormAssociatedMixin-1f97ed66.js +2 -0
- package/lib/FormAssociatedMixin-1f97ed66.js.map +1 -0
- package/lib/Header.js +1 -1
- package/lib/Header.js.map +1 -1
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/LightDismissController-a35d0f66.js +2 -0
- package/lib/LightDismissController-a35d0f66.js.map +1 -0
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/SlotController-683d0e7c.js +2 -0
- package/lib/SlotController-683d0e7c.js.map +1 -0
- package/lib/Textarea.js +1 -1
- package/lib/Textarea.js.map +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/Tooltip.js.map +1 -1
- package/lib/bundle.js +8 -8
- package/lib/bundle.js.map +1 -1
- package/lib/fsm-50373df9.js +2 -0
- package/lib/fsm-50373df9.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/src/button/Button.d.ts +1 -1
- package/lib/src/common/controllers/EventController.d.ts +14 -0
- package/lib/src/common/controllers/FormDataController.d.ts +1 -1
- package/lib/src/common/controllers/LightDismissController.d.ts +1 -1
- package/lib/src/common/controllers/SlotController.d.ts +1 -1
- package/lib/src/common/controllers/SwipeController.d.ts +3 -5
- package/lib/src/common/fsm.d.ts +2 -0
- package/lib/src/tooltip/Tooltip.d.ts +16 -18
- package/lib/src/tooltip/Tooltip.test.d.ts +1 -0
- package/package.json +12 -3
- package/lib/Calendar-600fd148.js +0 -13
- package/lib/Calendar-600fd148.js.map +0 -1
- package/lib/FormAssociatedMixin-ccae91fd.js +0 -2
- package/lib/FormAssociatedMixin-ccae91fd.js.map +0 -1
- package/lib/LightDismissController-cc5b4bf2.js +0 -2
- package/lib/LightDismissController-cc5b4bf2.js.map +0 -1
- package/lib/SlotController-5bfc47d1.js +0 -2
- package/lib/SlotController-5bfc47d1.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -246,7 +246,7 @@
|
|
|
246
246
|
"kind": "field",
|
|
247
247
|
"name": "state",
|
|
248
248
|
"type": {
|
|
249
|
-
"text": "States"
|
|
249
|
+
"text": "States<typeof transition>"
|
|
250
250
|
},
|
|
251
251
|
"privacy": "private",
|
|
252
252
|
"default": "\"initial\""
|
|
@@ -431,330 +431,446 @@
|
|
|
431
431
|
},
|
|
432
432
|
{
|
|
433
433
|
"kind": "javascript-module",
|
|
434
|
-
"path": "src/
|
|
434
|
+
"path": "src/banner/Banner.ts",
|
|
435
435
|
"declarations": [
|
|
436
436
|
{
|
|
437
437
|
"kind": "class",
|
|
438
|
-
"description": "
|
|
439
|
-
"name": "
|
|
438
|
+
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
439
|
+
"name": "Banner",
|
|
440
|
+
"slots": [
|
|
441
|
+
{
|
|
442
|
+
"description": "default slot",
|
|
443
|
+
"name": ""
|
|
444
|
+
}
|
|
445
|
+
],
|
|
440
446
|
"members": [
|
|
441
447
|
{
|
|
442
448
|
"kind": "field",
|
|
443
|
-
"name": "
|
|
449
|
+
"name": "variant",
|
|
444
450
|
"type": {
|
|
445
|
-
"text": "
|
|
451
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
446
452
|
},
|
|
447
|
-
"
|
|
448
|
-
"
|
|
449
|
-
|
|
453
|
+
"default": "\"info\"",
|
|
454
|
+
"description": "The style variant of the banner.",
|
|
455
|
+
"attribute": "variant",
|
|
456
|
+
"reflects": true
|
|
457
|
+
}
|
|
458
|
+
],
|
|
459
|
+
"attributes": [
|
|
450
460
|
{
|
|
451
|
-
"
|
|
452
|
-
"name": "monthSelectNode",
|
|
461
|
+
"name": "variant",
|
|
453
462
|
"type": {
|
|
454
|
-
"text": "
|
|
463
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
455
464
|
},
|
|
456
|
-
"
|
|
457
|
-
|
|
465
|
+
"default": "\"info\"",
|
|
466
|
+
"description": "The style variant of the banner.",
|
|
467
|
+
"fieldName": "variant"
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
"superclass": {
|
|
471
|
+
"name": "LitElement",
|
|
472
|
+
"package": "lit"
|
|
473
|
+
},
|
|
474
|
+
"status": "new",
|
|
475
|
+
"category": "feedback",
|
|
476
|
+
"tagName": "nord-banner",
|
|
477
|
+
"customElement": true
|
|
478
|
+
}
|
|
479
|
+
],
|
|
480
|
+
"exports": [
|
|
481
|
+
{
|
|
482
|
+
"kind": "js",
|
|
483
|
+
"name": "default",
|
|
484
|
+
"declaration": {
|
|
485
|
+
"name": "Banner",
|
|
486
|
+
"module": "src/banner/Banner.ts"
|
|
487
|
+
}
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"kind": "custom-element-definition",
|
|
491
|
+
"name": "nord-banner",
|
|
492
|
+
"declaration": {
|
|
493
|
+
"name": "Banner",
|
|
494
|
+
"module": "src/banner/Banner.ts"
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
"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 this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner 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\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"kind": "javascript-module",
|
|
502
|
+
"path": "src/button/Button.ts",
|
|
503
|
+
"declarations": [
|
|
504
|
+
{
|
|
505
|
+
"kind": "class",
|
|
506
|
+
"description": "Buttons are used for interface actions. Primary style should be\nused only once per section for main call-to-action, while other\nstyles can appear more frequently.",
|
|
507
|
+
"name": "Button",
|
|
508
|
+
"slots": [
|
|
458
509
|
{
|
|
459
|
-
"
|
|
460
|
-
"name": "
|
|
461
|
-
"type": {
|
|
462
|
-
"text": "HTMLButtonElement"
|
|
463
|
-
},
|
|
464
|
-
"privacy": "private"
|
|
510
|
+
"description": "The button content",
|
|
511
|
+
"name": ""
|
|
465
512
|
},
|
|
466
513
|
{
|
|
467
|
-
"
|
|
468
|
-
"name": "
|
|
469
|
-
"privacy": "private",
|
|
470
|
-
"default": "new DirectionController(this)"
|
|
514
|
+
"description": "Used to place content at the start of button text. Typically used for icons.",
|
|
515
|
+
"name": "start"
|
|
471
516
|
},
|
|
517
|
+
{
|
|
518
|
+
"description": "Used to place content at the end of button text. Typically used for icons.",
|
|
519
|
+
"name": "end"
|
|
520
|
+
}
|
|
521
|
+
],
|
|
522
|
+
"members": [
|
|
472
523
|
{
|
|
473
524
|
"kind": "field",
|
|
474
|
-
"name": "
|
|
475
|
-
"privacy": "private"
|
|
476
|
-
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
525
|
+
"name": "buttonRef",
|
|
526
|
+
"privacy": "private"
|
|
477
527
|
},
|
|
478
528
|
{
|
|
479
529
|
"kind": "field",
|
|
480
|
-
"name": "
|
|
481
|
-
"privacy": "private"
|
|
530
|
+
"name": "events",
|
|
531
|
+
"privacy": "private",
|
|
532
|
+
"default": "new EventController(this)"
|
|
482
533
|
},
|
|
483
534
|
{
|
|
484
535
|
"kind": "field",
|
|
485
|
-
"name": "
|
|
486
|
-
"type": {
|
|
487
|
-
"text": "Intl.DateTimeFormat"
|
|
488
|
-
},
|
|
536
|
+
"name": "lightDom",
|
|
489
537
|
"privacy": "private",
|
|
490
|
-
"
|
|
538
|
+
"default": "new LightDomController(this, {\n render: () => this.renderLightDom(),\n })"
|
|
491
539
|
},
|
|
492
540
|
{
|
|
493
541
|
"kind": "field",
|
|
494
|
-
"name": "
|
|
542
|
+
"name": "variant",
|
|
495
543
|
"type": {
|
|
496
|
-
"text": "
|
|
544
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
497
545
|
},
|
|
498
|
-
"default": "
|
|
546
|
+
"default": "\"default\"",
|
|
547
|
+
"description": "The style variant of the button.",
|
|
548
|
+
"attribute": "variant",
|
|
549
|
+
"reflects": true
|
|
499
550
|
},
|
|
500
551
|
{
|
|
501
552
|
"kind": "field",
|
|
502
|
-
"name": "
|
|
553
|
+
"name": "type",
|
|
503
554
|
"type": {
|
|
504
|
-
"text": "
|
|
555
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
505
556
|
},
|
|
506
|
-
"default": "\"\"",
|
|
507
|
-
"description": "The
|
|
508
|
-
"attribute": "
|
|
557
|
+
"default": "\"submit\"",
|
|
558
|
+
"description": "The type of the button.",
|
|
559
|
+
"attribute": "type",
|
|
560
|
+
"reflects": true
|
|
509
561
|
},
|
|
510
562
|
{
|
|
511
563
|
"kind": "field",
|
|
512
|
-
"name": "
|
|
564
|
+
"name": "size",
|
|
513
565
|
"type": {
|
|
514
|
-
"text": "
|
|
566
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
515
567
|
},
|
|
516
|
-
"
|
|
517
|
-
"
|
|
568
|
+
"default": "\"m\"",
|
|
569
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
570
|
+
"attribute": "size",
|
|
571
|
+
"reflects": true
|
|
518
572
|
},
|
|
519
573
|
{
|
|
520
574
|
"kind": "field",
|
|
521
|
-
"name": "
|
|
575
|
+
"name": "href",
|
|
522
576
|
"type": {
|
|
523
|
-
"text": "string"
|
|
577
|
+
"text": "string | undefined"
|
|
524
578
|
},
|
|
525
|
-
"
|
|
526
|
-
"
|
|
527
|
-
"
|
|
579
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
580
|
+
"attribute": "href",
|
|
581
|
+
"reflects": true
|
|
528
582
|
},
|
|
529
583
|
{
|
|
530
584
|
"kind": "field",
|
|
531
|
-
"name": "
|
|
585
|
+
"name": "download",
|
|
532
586
|
"type": {
|
|
533
|
-
"text": "
|
|
587
|
+
"text": "boolean"
|
|
534
588
|
},
|
|
535
|
-
"default": "
|
|
536
|
-
"description": "
|
|
537
|
-
"attribute": "
|
|
589
|
+
"default": "false",
|
|
590
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
591
|
+
"attribute": "download"
|
|
538
592
|
},
|
|
539
593
|
{
|
|
540
594
|
"kind": "field",
|
|
541
|
-
"name": "
|
|
595
|
+
"name": "target",
|
|
542
596
|
"type": {
|
|
543
|
-
"text": "
|
|
597
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
544
598
|
},
|
|
545
|
-
"default": "
|
|
546
|
-
"description": "
|
|
599
|
+
"default": "\"_self\"",
|
|
600
|
+
"description": "When provided together with a href property, determines where\nto open the linked URL. The keywords have special meanings for\nwhere to load the URL: “_self” means the current browsing context,\n“_blank” usually a new tab but users can configure browsers this to\nopen a new window instead, “_parent” means the parent browsing\ncontext of the current one, but if no parent exists, behaves as\n_self, and finally “top” means the topmost browsing context.",
|
|
601
|
+
"attribute": "target",
|
|
602
|
+
"reflects": true
|
|
547
603
|
},
|
|
548
604
|
{
|
|
549
605
|
"kind": "field",
|
|
550
|
-
"name": "
|
|
606
|
+
"name": "expand",
|
|
551
607
|
"type": {
|
|
552
608
|
"text": "boolean"
|
|
553
609
|
},
|
|
554
|
-
"
|
|
555
|
-
"
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
"kind": "field",
|
|
559
|
-
"name": "focusedDay",
|
|
560
|
-
"privacy": "private",
|
|
561
|
-
"default": "new Date()"
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
"kind": "method",
|
|
565
|
-
"name": "focus",
|
|
566
|
-
"parameters": [
|
|
567
|
-
{
|
|
568
|
-
"name": "options",
|
|
569
|
-
"optional": true,
|
|
570
|
-
"type": {
|
|
571
|
-
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
572
|
-
},
|
|
573
|
-
"description": "An object which controls aspects of the focusing process."
|
|
574
|
-
}
|
|
575
|
-
],
|
|
576
|
-
"description": "Programmatically move focus to the calendar."
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
"kind": "method",
|
|
580
|
-
"name": "createDateFormatter",
|
|
581
|
-
"privacy": "private"
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
"kind": "field",
|
|
585
|
-
"name": "handleDaySelect",
|
|
586
|
-
"privacy": "private"
|
|
587
|
-
},
|
|
588
|
-
{
|
|
589
|
-
"kind": "method",
|
|
590
|
-
"name": "addDays",
|
|
591
|
-
"privacy": "private",
|
|
592
|
-
"parameters": [
|
|
593
|
-
{
|
|
594
|
-
"name": "days",
|
|
595
|
-
"type": {
|
|
596
|
-
"text": "number"
|
|
597
|
-
}
|
|
598
|
-
}
|
|
599
|
-
]
|
|
610
|
+
"default": "false",
|
|
611
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
612
|
+
"attribute": "expand",
|
|
613
|
+
"reflects": true
|
|
600
614
|
},
|
|
601
615
|
{
|
|
602
616
|
"kind": "method",
|
|
603
|
-
"name": "
|
|
617
|
+
"name": "renderLink",
|
|
604
618
|
"privacy": "private",
|
|
605
619
|
"parameters": [
|
|
606
620
|
{
|
|
607
|
-
"name": "
|
|
621
|
+
"name": "innards",
|
|
608
622
|
"type": {
|
|
609
|
-
"text": "
|
|
623
|
+
"text": "TemplateResult"
|
|
610
624
|
}
|
|
611
625
|
}
|
|
612
|
-
]
|
|
626
|
+
],
|
|
627
|
+
"description": "We jump through some hoops here to ensure the link is treated correctly when \"disabled\".\nLinks cannot be disabled natively, so we need to rely on some aria magic to get the correct semantics.\nAlong with the advice in the article below, we also set tabindex to \"-1\", so it is taken out of tab order."
|
|
613
628
|
},
|
|
614
629
|
{
|
|
615
630
|
"kind": "method",
|
|
616
|
-
"name": "
|
|
631
|
+
"name": "renderButton",
|
|
617
632
|
"privacy": "private",
|
|
618
633
|
"parameters": [
|
|
619
634
|
{
|
|
620
|
-
"name": "
|
|
635
|
+
"name": "innards",
|
|
621
636
|
"type": {
|
|
622
|
-
"text": "
|
|
637
|
+
"text": "TemplateResult"
|
|
623
638
|
}
|
|
624
639
|
}
|
|
625
640
|
]
|
|
626
641
|
},
|
|
627
642
|
{
|
|
628
643
|
"kind": "method",
|
|
629
|
-
"name": "
|
|
644
|
+
"name": "renderLightDom",
|
|
630
645
|
"privacy": "private"
|
|
631
646
|
},
|
|
632
647
|
{
|
|
633
|
-
"kind": "
|
|
634
|
-
"name": "
|
|
648
|
+
"kind": "field",
|
|
649
|
+
"name": "handleOuterClick",
|
|
635
650
|
"privacy": "private"
|
|
636
651
|
},
|
|
637
652
|
{
|
|
638
653
|
"kind": "method",
|
|
639
|
-
"name": "
|
|
654
|
+
"name": "handleClick",
|
|
640
655
|
"privacy": "private",
|
|
641
656
|
"parameters": [
|
|
642
657
|
{
|
|
643
|
-
"name": "
|
|
658
|
+
"name": "e",
|
|
644
659
|
"type": {
|
|
645
|
-
"text": "
|
|
660
|
+
"text": "Event"
|
|
646
661
|
}
|
|
647
662
|
}
|
|
648
663
|
]
|
|
649
664
|
},
|
|
650
665
|
{
|
|
651
|
-
"kind": "
|
|
652
|
-
"name": "
|
|
653
|
-
"
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
666
|
+
"kind": "field",
|
|
667
|
+
"name": "disabled",
|
|
668
|
+
"type": {
|
|
669
|
+
"text": "boolean"
|
|
670
|
+
},
|
|
671
|
+
"default": "false",
|
|
672
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
673
|
+
"attribute": "disabled",
|
|
674
|
+
"reflects": true,
|
|
675
|
+
"inheritedFrom": {
|
|
676
|
+
"name": "InputMixin",
|
|
677
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
678
|
+
}
|
|
662
679
|
},
|
|
663
680
|
{
|
|
664
|
-
"kind": "
|
|
665
|
-
"name": "
|
|
666
|
-
"
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
681
|
+
"kind": "field",
|
|
682
|
+
"name": "name",
|
|
683
|
+
"type": {
|
|
684
|
+
"text": "string | undefined"
|
|
685
|
+
},
|
|
686
|
+
"description": "The name of the form component.",
|
|
687
|
+
"attribute": "name",
|
|
688
|
+
"inheritedFrom": {
|
|
689
|
+
"name": "InputMixin",
|
|
690
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
691
|
+
}
|
|
675
692
|
},
|
|
676
693
|
{
|
|
677
694
|
"kind": "field",
|
|
678
|
-
"name": "
|
|
679
|
-
"
|
|
695
|
+
"name": "value",
|
|
696
|
+
"type": {
|
|
697
|
+
"text": "string"
|
|
698
|
+
},
|
|
699
|
+
"default": "\"\"",
|
|
700
|
+
"description": "The value of the form component.",
|
|
701
|
+
"attribute": "value",
|
|
702
|
+
"inheritedFrom": {
|
|
703
|
+
"name": "InputMixin",
|
|
704
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
705
|
+
}
|
|
680
706
|
},
|
|
681
707
|
{
|
|
682
708
|
"kind": "field",
|
|
683
|
-
"name": "
|
|
684
|
-
"privacy": "
|
|
709
|
+
"name": "form",
|
|
710
|
+
"privacy": "protected",
|
|
711
|
+
"description": "Gets the form, if any, associated with the form element.",
|
|
712
|
+
"inheritedFrom": {
|
|
713
|
+
"name": "InputMixin",
|
|
714
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
715
|
+
}
|
|
685
716
|
},
|
|
686
717
|
{
|
|
687
718
|
"kind": "field",
|
|
688
|
-
"name": "
|
|
689
|
-
"privacy": "
|
|
719
|
+
"name": "focusableRef",
|
|
720
|
+
"privacy": "protected",
|
|
721
|
+
"inheritedFrom": {
|
|
722
|
+
"name": "FocusableMixin",
|
|
723
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
724
|
+
}
|
|
690
725
|
},
|
|
691
726
|
{
|
|
692
|
-
"kind": "
|
|
693
|
-
"name": "
|
|
694
|
-
"
|
|
727
|
+
"kind": "method",
|
|
728
|
+
"name": "focus",
|
|
729
|
+
"parameters": [
|
|
730
|
+
{
|
|
731
|
+
"name": "options",
|
|
732
|
+
"optional": true,
|
|
733
|
+
"type": {
|
|
734
|
+
"text": "FocusOptions"
|
|
735
|
+
},
|
|
736
|
+
"description": "An object which controls aspects of the focusing process."
|
|
737
|
+
}
|
|
738
|
+
],
|
|
739
|
+
"description": "Programmatically move focus to the component.",
|
|
740
|
+
"inheritedFrom": {
|
|
741
|
+
"name": "FocusableMixin",
|
|
742
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
743
|
+
}
|
|
695
744
|
},
|
|
696
745
|
{
|
|
697
|
-
"kind": "
|
|
698
|
-
"name": "
|
|
699
|
-
"
|
|
746
|
+
"kind": "method",
|
|
747
|
+
"name": "blur",
|
|
748
|
+
"description": "Programmatically remove focus from the component.",
|
|
749
|
+
"inheritedFrom": {
|
|
750
|
+
"name": "FocusableMixin",
|
|
751
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
752
|
+
}
|
|
700
753
|
},
|
|
701
754
|
{
|
|
702
|
-
"kind": "
|
|
703
|
-
"name": "
|
|
704
|
-
"
|
|
755
|
+
"kind": "method",
|
|
756
|
+
"name": "click",
|
|
757
|
+
"description": "Programmatically simulates a click on the component.",
|
|
758
|
+
"inheritedFrom": {
|
|
759
|
+
"name": "FocusableMixin",
|
|
760
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
761
|
+
}
|
|
705
762
|
}
|
|
706
763
|
],
|
|
707
|
-
"
|
|
764
|
+
"attributes": [
|
|
708
765
|
{
|
|
709
|
-
"name": "
|
|
766
|
+
"name": "variant",
|
|
710
767
|
"type": {
|
|
711
|
-
"text": "
|
|
768
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
712
769
|
},
|
|
713
|
-
"
|
|
770
|
+
"default": "\"default\"",
|
|
771
|
+
"description": "The style variant of the button.",
|
|
772
|
+
"fieldName": "variant"
|
|
714
773
|
},
|
|
715
774
|
{
|
|
775
|
+
"name": "type",
|
|
716
776
|
"type": {
|
|
717
|
-
"text": "
|
|
777
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
718
778
|
},
|
|
719
|
-
"
|
|
720
|
-
"
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
"attributes": [
|
|
779
|
+
"default": "\"submit\"",
|
|
780
|
+
"description": "The type of the button.",
|
|
781
|
+
"fieldName": "type"
|
|
782
|
+
},
|
|
724
783
|
{
|
|
725
|
-
"name": "
|
|
784
|
+
"name": "size",
|
|
726
785
|
"type": {
|
|
727
|
-
"text": "
|
|
786
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
728
787
|
},
|
|
729
|
-
"default": "\"\"",
|
|
730
|
-
"description": "The
|
|
731
|
-
"fieldName": "
|
|
788
|
+
"default": "\"m\"",
|
|
789
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
790
|
+
"fieldName": "size"
|
|
732
791
|
},
|
|
733
792
|
{
|
|
734
|
-
"name": "
|
|
793
|
+
"name": "href",
|
|
735
794
|
"type": {
|
|
736
|
-
"text": "
|
|
795
|
+
"text": "string | undefined"
|
|
737
796
|
},
|
|
738
|
-
"description": "
|
|
739
|
-
"fieldName": "
|
|
797
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
798
|
+
"fieldName": "href"
|
|
740
799
|
},
|
|
741
800
|
{
|
|
742
|
-
"name": "
|
|
801
|
+
"name": "download",
|
|
743
802
|
"type": {
|
|
744
|
-
"text": "
|
|
803
|
+
"text": "boolean"
|
|
745
804
|
},
|
|
746
|
-
"default": "
|
|
747
|
-
"description": "
|
|
748
|
-
"fieldName": "
|
|
805
|
+
"default": "false",
|
|
806
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
807
|
+
"fieldName": "download"
|
|
749
808
|
},
|
|
750
809
|
{
|
|
751
|
-
"name": "
|
|
810
|
+
"name": "target",
|
|
811
|
+
"type": {
|
|
812
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
813
|
+
},
|
|
814
|
+
"default": "\"_self\"",
|
|
815
|
+
"description": "When provided together with a href property, determines where\nto open the linked URL. The keywords have special meanings for\nwhere to load the URL: “_self” means the current browsing context,\n“_blank” usually a new tab but users can configure browsers this to\nopen a new window instead, “_parent” means the parent browsing\ncontext of the current one, but if no parent exists, behaves as\n_self, and finally “top” means the topmost browsing context.",
|
|
816
|
+
"fieldName": "target"
|
|
817
|
+
},
|
|
818
|
+
{
|
|
819
|
+
"name": "expand",
|
|
820
|
+
"type": {
|
|
821
|
+
"text": "boolean"
|
|
822
|
+
},
|
|
823
|
+
"default": "false",
|
|
824
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
825
|
+
"fieldName": "expand"
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
"name": "disabled",
|
|
829
|
+
"type": {
|
|
830
|
+
"text": "boolean"
|
|
831
|
+
},
|
|
832
|
+
"default": "false",
|
|
833
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
834
|
+
"fieldName": "disabled",
|
|
835
|
+
"inheritedFrom": {
|
|
836
|
+
"name": "InputMixin",
|
|
837
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
838
|
+
}
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"name": "name",
|
|
842
|
+
"type": {
|
|
843
|
+
"text": "string | undefined"
|
|
844
|
+
},
|
|
845
|
+
"description": "The name of the form component.",
|
|
846
|
+
"fieldName": "name",
|
|
847
|
+
"inheritedFrom": {
|
|
848
|
+
"name": "InputMixin",
|
|
849
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
850
|
+
}
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
"name": "value",
|
|
752
854
|
"type": {
|
|
753
855
|
"text": "string"
|
|
754
856
|
},
|
|
755
857
|
"default": "\"\"",
|
|
756
|
-
"description": "
|
|
757
|
-
"fieldName": "
|
|
858
|
+
"description": "The value of the form component.",
|
|
859
|
+
"fieldName": "value",
|
|
860
|
+
"inheritedFrom": {
|
|
861
|
+
"name": "InputMixin",
|
|
862
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
863
|
+
}
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
"mixins": [
|
|
867
|
+
{
|
|
868
|
+
"name": "InputMixin",
|
|
869
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"name": "FocusableMixin",
|
|
873
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
758
874
|
}
|
|
759
875
|
],
|
|
760
876
|
"superclass": {
|
|
@@ -762,8 +878,8 @@
|
|
|
762
878
|
"package": "lit"
|
|
763
879
|
},
|
|
764
880
|
"status": "ready",
|
|
765
|
-
"category": "
|
|
766
|
-
"tagName": "nord-
|
|
881
|
+
"category": "action",
|
|
882
|
+
"tagName": "nord-button",
|
|
767
883
|
"customElement": true
|
|
768
884
|
}
|
|
769
885
|
],
|
|
@@ -772,598 +888,488 @@
|
|
|
772
888
|
"kind": "js",
|
|
773
889
|
"name": "default",
|
|
774
890
|
"declaration": {
|
|
775
|
-
"name": "
|
|
776
|
-
"module": "src/
|
|
891
|
+
"name": "Button",
|
|
892
|
+
"module": "src/button/Button.ts"
|
|
777
893
|
}
|
|
778
894
|
},
|
|
779
895
|
{
|
|
780
896
|
"kind": "custom-element-definition",
|
|
781
|
-
"name": "nord-
|
|
897
|
+
"name": "nord-button",
|
|
782
898
|
"declaration": {
|
|
783
|
-
"name": "
|
|
784
|
-
"module": "src/
|
|
899
|
+
"name": "Button",
|
|
900
|
+
"module": "src/button/Button.ts"
|
|
785
901
|
}
|
|
786
902
|
}
|
|
787
903
|
],
|
|
788
|
-
"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
|
|
904
|
+
"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 clear and accurate labels.\n- Use established button colors appropriately. For example, only use a danger button style for an action that’s difficult or impossible to undo.\n- Prioritize the most important actions. Too many buttons will cause confusion.\n- Be consistent with positioning of buttons in the user interface.\n- Use strong, actionable verbs in labels such as “Add”, “Close”, “Cancel”, or “Save”.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use buttons to link to other pages. Use regular link or a plain style instead where necessary.\n- Don’t use buttons for navigation where the link appears within or following a sentence.\n- Don’t use labels such as “Read more”, “Click here” or “More”.\n\n</div>\n\n---\n\n## Content guidelines\n\nButton labels should be clear, accurate and predictable. It should be possible for the user to understand what will happen when they click a button:\n\n<div class=\"n-usage n-usage-do\">View user settings</div>\n<div class=\"n-usage n-usage-dont\">Click here</div>\n\nWhen writing button 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 button labels, such as “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Add item</div>\n<div class=\"n-usage n-usage-dont\">Add an item</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| `default` | Default style is the most common button variant. Only switch to another variant if you need to adjust the visual weight of the element. |\n| `primary` | Primary style is reserved for main call-to-actions. Should be used only once per content area or panel, e.g. for a “Save” action. |\n| `dashed` | Dashed style should be used for actions that trigger filtering. |\n| `danger` | Danger style should be used for actions that delete data or otherwise make it hard to undo the action. |\n| `plain` | Used for less important or less common actions. Can be also used for linking to other pages. |\n| `disabled` | Used for actions that aren’t currently available or not available anymore. Also prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies. |\n\n---\n\n## Additional considerations\n\n- Users of assistive technology expect a button to submit data or do an action. If you need the button to navigate into another view, use the `href` property which will output `<a>` tag instead of a `<button>`.\n- When you need to disable a button, use `disabled` property as it conveys this information correctly to assistive technologies like screen readers.\n- Button component provides 3 size variants; small, medium and large. The large size should only be used for marketing purposes or on areas such as an empty space/content notice.\n"
|
|
789
905
|
},
|
|
790
906
|
{
|
|
791
907
|
"kind": "javascript-module",
|
|
792
|
-
"path": "src/calendar/
|
|
908
|
+
"path": "src/calendar/Calendar.ts",
|
|
793
909
|
"declarations": [
|
|
794
910
|
{
|
|
795
911
|
"kind": "class",
|
|
796
|
-
"description": "",
|
|
797
|
-
"name": "
|
|
912
|
+
"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.",
|
|
913
|
+
"name": "Calendar",
|
|
798
914
|
"members": [
|
|
799
915
|
{
|
|
800
916
|
"kind": "field",
|
|
801
|
-
"name": "
|
|
917
|
+
"name": "dialogLabelId",
|
|
802
918
|
"type": {
|
|
803
|
-
"text": "
|
|
919
|
+
"text": "string"
|
|
804
920
|
},
|
|
805
|
-
"
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
"superclass": {
|
|
809
|
-
"name": "NordEvent",
|
|
810
|
-
"module": "/src/common/events.js"
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
],
|
|
814
|
-
"exports": [
|
|
815
|
-
{
|
|
816
|
-
"kind": "js",
|
|
817
|
-
"name": "DateSelectEvent",
|
|
818
|
-
"declaration": {
|
|
819
|
-
"name": "DateSelectEvent",
|
|
820
|
-
"module": "src/calendar/DateSelectEvent.ts"
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
],
|
|
824
|
-
"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"
|
|
825
|
-
},
|
|
826
|
-
{
|
|
827
|
-
"kind": "javascript-module",
|
|
828
|
-
"path": "src/calendar/calendar-localization.ts",
|
|
829
|
-
"declarations": [
|
|
830
|
-
{
|
|
831
|
-
"kind": "variable",
|
|
832
|
-
"name": "localization",
|
|
833
|
-
"type": {
|
|
834
|
-
"text": "CalendarLocalizedText"
|
|
835
|
-
},
|
|
836
|
-
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n calendarHeading: \"Choose a date\",\n dayNames: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n monthNames: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n monthNamesShort: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"],\n locale: \"en-GB\",\n}"
|
|
837
|
-
}
|
|
838
|
-
],
|
|
839
|
-
"exports": [
|
|
840
|
-
{
|
|
841
|
-
"kind": "js",
|
|
842
|
-
"name": "default",
|
|
843
|
-
"declaration": {
|
|
844
|
-
"name": "localization",
|
|
845
|
-
"module": "src/calendar/calendar-localization.ts"
|
|
846
|
-
}
|
|
847
|
-
}
|
|
848
|
-
],
|
|
849
|
-
"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"
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
"kind": "javascript-module",
|
|
853
|
-
"path": "src/calendar/month-view.ts",
|
|
854
|
-
"declarations": [
|
|
855
|
-
{
|
|
856
|
-
"kind": "function",
|
|
857
|
-
"name": "dayView",
|
|
858
|
-
"parameters": [
|
|
859
|
-
{
|
|
860
|
-
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
861
|
-
"type": {
|
|
862
|
-
"text": "DatePickerDayProps"
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
]
|
|
866
|
-
},
|
|
867
|
-
{
|
|
868
|
-
"kind": "function",
|
|
869
|
-
"name": "monthView",
|
|
870
|
-
"parameters": [
|
|
871
|
-
{
|
|
872
|
-
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n localization,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
873
|
-
"type": {
|
|
874
|
-
"text": "MonthViewArgs"
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
]
|
|
878
|
-
}
|
|
879
|
-
],
|
|
880
|
-
"exports": [
|
|
881
|
-
{
|
|
882
|
-
"kind": "js",
|
|
883
|
-
"name": "dayView",
|
|
884
|
-
"declaration": {
|
|
885
|
-
"name": "dayView",
|
|
886
|
-
"module": "src/calendar/month-view.ts"
|
|
887
|
-
}
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
"kind": "js",
|
|
891
|
-
"name": "monthView",
|
|
892
|
-
"declaration": {
|
|
893
|
-
"name": "monthView",
|
|
894
|
-
"module": "src/calendar/month-view.ts"
|
|
895
|
-
}
|
|
896
|
-
}
|
|
897
|
-
],
|
|
898
|
-
"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"
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
"kind": "javascript-module",
|
|
902
|
-
"path": "src/banner/Banner.ts",
|
|
903
|
-
"declarations": [
|
|
904
|
-
{
|
|
905
|
-
"kind": "class",
|
|
906
|
-
"description": "Banner informs users about important changes or conditions in the\ninterface. Use this component if you need to communicate to users\nin a prominent way.",
|
|
907
|
-
"name": "Banner",
|
|
908
|
-
"slots": [
|
|
909
|
-
{
|
|
910
|
-
"description": "default slot",
|
|
911
|
-
"name": ""
|
|
912
|
-
}
|
|
913
|
-
],
|
|
914
|
-
"members": [
|
|
921
|
+
"privacy": "private",
|
|
922
|
+
"default": "\"dialog-header\""
|
|
923
|
+
},
|
|
915
924
|
{
|
|
916
925
|
"kind": "field",
|
|
917
|
-
"name": "
|
|
926
|
+
"name": "monthSelectNode",
|
|
918
927
|
"type": {
|
|
919
|
-
"text": "
|
|
928
|
+
"text": "HTMLElement"
|
|
920
929
|
},
|
|
921
|
-
"
|
|
922
|
-
|
|
923
|
-
"attribute": "variant",
|
|
924
|
-
"reflects": true
|
|
925
|
-
}
|
|
926
|
-
],
|
|
927
|
-
"attributes": [
|
|
930
|
+
"privacy": "private"
|
|
931
|
+
},
|
|
928
932
|
{
|
|
929
|
-
"
|
|
933
|
+
"kind": "field",
|
|
934
|
+
"name": "focusedDayNode",
|
|
930
935
|
"type": {
|
|
931
|
-
"text": "
|
|
936
|
+
"text": "HTMLButtonElement"
|
|
932
937
|
},
|
|
933
|
-
"
|
|
934
|
-
"description": "The style variant of the banner.",
|
|
935
|
-
"fieldName": "variant"
|
|
936
|
-
}
|
|
937
|
-
],
|
|
938
|
-
"superclass": {
|
|
939
|
-
"name": "LitElement",
|
|
940
|
-
"package": "lit"
|
|
941
|
-
},
|
|
942
|
-
"status": "new",
|
|
943
|
-
"category": "feedback",
|
|
944
|
-
"tagName": "nord-banner",
|
|
945
|
-
"customElement": true
|
|
946
|
-
}
|
|
947
|
-
],
|
|
948
|
-
"exports": [
|
|
949
|
-
{
|
|
950
|
-
"kind": "js",
|
|
951
|
-
"name": "default",
|
|
952
|
-
"declaration": {
|
|
953
|
-
"name": "Banner",
|
|
954
|
-
"module": "src/banner/Banner.ts"
|
|
955
|
-
}
|
|
956
|
-
},
|
|
957
|
-
{
|
|
958
|
-
"kind": "custom-element-definition",
|
|
959
|
-
"name": "nord-banner",
|
|
960
|
-
"declaration": {
|
|
961
|
-
"name": "Banner",
|
|
962
|
-
"module": "src/banner/Banner.ts"
|
|
963
|
-
}
|
|
964
|
-
}
|
|
965
|
-
],
|
|
966
|
-
"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 this component if you need to communicate in a prominent way.\n- Place banner at the top of the section it applies to.\n- Use for highlighting errors and success statuses.\n- Put banner close to the context it’s referring to.\n- Move focus to the banner if it’s relevant to the current workflow.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Move focus to banner if it appears on page load.\n- Use for highlighting general content or as a banner.\n- Use to replace an error page.\n\n</div>\n\n---\n\n## Content guidelines\n\nBanner content should be clear, accurate and easy to understand:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident. Please see our status page for more details.</div>\n<div class=\"n-usage n-usage-dont\">There was an error.</div>\n\nWhen writing banner 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\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re Experiencing An Incident.</div>\n\nAlways end in punctuation:\n\n<div class=\"n-usage n-usage-do\">We’re experiencing an incident.</div>\n<div class=\"n-usage n-usage-dont\">We’re experiencing an incident</div>\n"
|
|
967
|
-
},
|
|
968
|
-
{
|
|
969
|
-
"kind": "javascript-module",
|
|
970
|
-
"path": "src/button/Button.ts",
|
|
971
|
-
"declarations": [
|
|
972
|
-
{
|
|
973
|
-
"kind": "class",
|
|
974
|
-
"description": "Buttons are used for interface actions. Primary style should be\nused only once per section for main call-to-action, while other\nstyles can appear more frequently.",
|
|
975
|
-
"name": "Button",
|
|
976
|
-
"slots": [
|
|
977
|
-
{
|
|
978
|
-
"description": "The button content",
|
|
979
|
-
"name": ""
|
|
938
|
+
"privacy": "private"
|
|
980
939
|
},
|
|
981
940
|
{
|
|
982
|
-
"
|
|
983
|
-
"name": "
|
|
941
|
+
"kind": "field",
|
|
942
|
+
"name": "direction",
|
|
943
|
+
"privacy": "private",
|
|
944
|
+
"default": "new DirectionController(this)"
|
|
984
945
|
},
|
|
985
946
|
{
|
|
986
|
-
"
|
|
987
|
-
"name": "
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
947
|
+
"kind": "field",
|
|
948
|
+
"name": "swipe",
|
|
949
|
+
"privacy": "private",
|
|
950
|
+
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
951
|
+
},
|
|
991
952
|
{
|
|
992
953
|
"kind": "field",
|
|
993
|
-
"name": "
|
|
954
|
+
"name": "shortcuts",
|
|
994
955
|
"privacy": "private"
|
|
995
956
|
},
|
|
996
957
|
{
|
|
997
958
|
"kind": "field",
|
|
998
|
-
"name": "
|
|
959
|
+
"name": "dateFormatShort",
|
|
960
|
+
"type": {
|
|
961
|
+
"text": "Intl.DateTimeFormat"
|
|
962
|
+
},
|
|
999
963
|
"privacy": "private",
|
|
1000
|
-
"
|
|
964
|
+
"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"
|
|
1001
965
|
},
|
|
1002
966
|
{
|
|
1003
967
|
"kind": "field",
|
|
1004
|
-
"name": "
|
|
968
|
+
"name": "localization",
|
|
1005
969
|
"type": {
|
|
1006
|
-
"text": "
|
|
970
|
+
"text": "CalendarLocalizedText"
|
|
1007
971
|
},
|
|
1008
|
-
"default": "
|
|
1009
|
-
"description": "The style variant of the button.",
|
|
1010
|
-
"attribute": "variant",
|
|
1011
|
-
"reflects": true
|
|
972
|
+
"default": "localization"
|
|
1012
973
|
},
|
|
1013
974
|
{
|
|
1014
975
|
"kind": "field",
|
|
1015
|
-
"name": "
|
|
976
|
+
"name": "value",
|
|
1016
977
|
"type": {
|
|
1017
|
-
"text": "
|
|
978
|
+
"text": "string"
|
|
1018
979
|
},
|
|
1019
|
-
"default": "\"
|
|
1020
|
-
"description": "The
|
|
1021
|
-
"attribute": "
|
|
1022
|
-
"reflects": true
|
|
980
|
+
"default": "\"\"",
|
|
981
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
982
|
+
"attribute": "value"
|
|
1023
983
|
},
|
|
1024
984
|
{
|
|
1025
985
|
"kind": "field",
|
|
1026
|
-
"name": "
|
|
986
|
+
"name": "firstDayOfWeek",
|
|
1027
987
|
"type": {
|
|
1028
|
-
"text": "
|
|
988
|
+
"text": "DaysOfWeek"
|
|
1029
989
|
},
|
|
1030
|
-
"
|
|
1031
|
-
"
|
|
1032
|
-
"attribute": "size",
|
|
1033
|
-
"reflects": true
|
|
990
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
991
|
+
"attribute": "firstDayOfWeek"
|
|
1034
992
|
},
|
|
1035
993
|
{
|
|
1036
994
|
"kind": "field",
|
|
1037
|
-
"name": "
|
|
995
|
+
"name": "min",
|
|
1038
996
|
"type": {
|
|
1039
|
-
"text": "string
|
|
997
|
+
"text": "string"
|
|
1040
998
|
},
|
|
1041
|
-
"
|
|
1042
|
-
"
|
|
1043
|
-
"
|
|
999
|
+
"default": "\"\"",
|
|
1000
|
+
"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.",
|
|
1001
|
+
"attribute": "min"
|
|
1044
1002
|
},
|
|
1045
1003
|
{
|
|
1046
1004
|
"kind": "field",
|
|
1047
|
-
"name": "
|
|
1005
|
+
"name": "max",
|
|
1048
1006
|
"type": {
|
|
1049
|
-
"text": "
|
|
1007
|
+
"text": "string"
|
|
1050
1008
|
},
|
|
1051
|
-
"default": "
|
|
1052
|
-
"description": "
|
|
1053
|
-
"attribute": "
|
|
1009
|
+
"default": "\"\"",
|
|
1010
|
+
"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.",
|
|
1011
|
+
"attribute": "max"
|
|
1054
1012
|
},
|
|
1055
1013
|
{
|
|
1056
1014
|
"kind": "field",
|
|
1057
|
-
"name": "
|
|
1015
|
+
"name": "isDateDisabled",
|
|
1058
1016
|
"type": {
|
|
1059
|
-
"text": "
|
|
1017
|
+
"text": "DateDisabledPredicate"
|
|
1060
1018
|
},
|
|
1061
|
-
"default": "
|
|
1062
|
-
"description": "
|
|
1063
|
-
"attribute": "target",
|
|
1064
|
-
"reflects": true
|
|
1019
|
+
"default": "isDateDisabled",
|
|
1020
|
+
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
1065
1021
|
},
|
|
1066
1022
|
{
|
|
1067
1023
|
"kind": "field",
|
|
1068
|
-
"name": "
|
|
1024
|
+
"name": "activeFocus",
|
|
1069
1025
|
"type": {
|
|
1070
1026
|
"text": "boolean"
|
|
1071
1027
|
},
|
|
1072
|
-
"
|
|
1073
|
-
"
|
|
1074
|
-
|
|
1075
|
-
|
|
1028
|
+
"privacy": "private",
|
|
1029
|
+
"default": "false"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"kind": "field",
|
|
1033
|
+
"name": "focusedDay",
|
|
1034
|
+
"privacy": "private",
|
|
1035
|
+
"default": "new Date()"
|
|
1076
1036
|
},
|
|
1077
1037
|
{
|
|
1078
1038
|
"kind": "method",
|
|
1079
|
-
"name": "
|
|
1039
|
+
"name": "focus",
|
|
1040
|
+
"parameters": [
|
|
1041
|
+
{
|
|
1042
|
+
"name": "options",
|
|
1043
|
+
"optional": true,
|
|
1044
|
+
"type": {
|
|
1045
|
+
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
1046
|
+
},
|
|
1047
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1048
|
+
}
|
|
1049
|
+
],
|
|
1050
|
+
"description": "Programmatically move focus to the calendar."
|
|
1051
|
+
},
|
|
1052
|
+
{
|
|
1053
|
+
"kind": "method",
|
|
1054
|
+
"name": "createDateFormatter",
|
|
1055
|
+
"privacy": "private"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
"kind": "field",
|
|
1059
|
+
"name": "handleDaySelect",
|
|
1060
|
+
"privacy": "private"
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
"kind": "method",
|
|
1064
|
+
"name": "addDays",
|
|
1080
1065
|
"privacy": "private",
|
|
1081
1066
|
"parameters": [
|
|
1082
1067
|
{
|
|
1083
|
-
"name": "
|
|
1068
|
+
"name": "days",
|
|
1084
1069
|
"type": {
|
|
1085
|
-
"text": "
|
|
1070
|
+
"text": "number"
|
|
1086
1071
|
}
|
|
1087
1072
|
}
|
|
1088
|
-
]
|
|
1089
|
-
"description": "We jump through some hoops here to ensure the link is treated correctly when \"disabled\".\nLinks cannot be disabled natively, so we need to rely on some aria magic to get the correct semantics.\nAlong with the advice in the article below, we also set tabindex to \"-1\", so it is taken out of tab order."
|
|
1073
|
+
]
|
|
1090
1074
|
},
|
|
1091
1075
|
{
|
|
1092
1076
|
"kind": "method",
|
|
1093
|
-
"name": "
|
|
1077
|
+
"name": "addMonths",
|
|
1094
1078
|
"privacy": "private",
|
|
1095
1079
|
"parameters": [
|
|
1096
1080
|
{
|
|
1097
|
-
"name": "
|
|
1081
|
+
"name": "months",
|
|
1098
1082
|
"type": {
|
|
1099
|
-
"text": "
|
|
1083
|
+
"text": "number"
|
|
1100
1084
|
}
|
|
1101
1085
|
}
|
|
1102
1086
|
]
|
|
1103
1087
|
},
|
|
1104
1088
|
{
|
|
1105
1089
|
"kind": "method",
|
|
1106
|
-
"name": "
|
|
1090
|
+
"name": "addYears",
|
|
1091
|
+
"privacy": "private",
|
|
1092
|
+
"parameters": [
|
|
1093
|
+
{
|
|
1094
|
+
"name": "years",
|
|
1095
|
+
"type": {
|
|
1096
|
+
"text": "number"
|
|
1097
|
+
}
|
|
1098
|
+
}
|
|
1099
|
+
]
|
|
1100
|
+
},
|
|
1101
|
+
{
|
|
1102
|
+
"kind": "method",
|
|
1103
|
+
"name": "startOfWeek",
|
|
1107
1104
|
"privacy": "private"
|
|
1108
1105
|
},
|
|
1109
1106
|
{
|
|
1110
|
-
"kind": "
|
|
1111
|
-
"name": "
|
|
1107
|
+
"kind": "method",
|
|
1108
|
+
"name": "endOfWeek",
|
|
1112
1109
|
"privacy": "private"
|
|
1113
1110
|
},
|
|
1114
1111
|
{
|
|
1115
1112
|
"kind": "method",
|
|
1116
|
-
"name": "
|
|
1113
|
+
"name": "setMonth",
|
|
1114
|
+
"privacy": "private",
|
|
1115
|
+
"parameters": [
|
|
1116
|
+
{
|
|
1117
|
+
"name": "month",
|
|
1118
|
+
"type": {
|
|
1119
|
+
"text": "number"
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
]
|
|
1123
|
+
},
|
|
1124
|
+
{
|
|
1125
|
+
"kind": "method",
|
|
1126
|
+
"name": "setYear",
|
|
1127
|
+
"privacy": "private",
|
|
1128
|
+
"parameters": [
|
|
1129
|
+
{
|
|
1130
|
+
"name": "year",
|
|
1131
|
+
"type": {
|
|
1132
|
+
"text": "number"
|
|
1133
|
+
}
|
|
1134
|
+
}
|
|
1135
|
+
]
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"kind": "method",
|
|
1139
|
+
"name": "setFocusedDay",
|
|
1117
1140
|
"privacy": "private",
|
|
1118
1141
|
"parameters": [
|
|
1119
1142
|
{
|
|
1120
|
-
"name": "
|
|
1143
|
+
"name": "day",
|
|
1121
1144
|
"type": {
|
|
1122
|
-
"text": "
|
|
1145
|
+
"text": "Date"
|
|
1123
1146
|
}
|
|
1124
1147
|
}
|
|
1125
1148
|
]
|
|
1126
1149
|
},
|
|
1127
1150
|
{
|
|
1128
1151
|
"kind": "field",
|
|
1129
|
-
"name": "
|
|
1130
|
-
"
|
|
1131
|
-
"text": "boolean"
|
|
1132
|
-
},
|
|
1133
|
-
"default": "false",
|
|
1134
|
-
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1135
|
-
"attribute": "disabled",
|
|
1136
|
-
"reflects": true,
|
|
1137
|
-
"inheritedFrom": {
|
|
1138
|
-
"name": "InputMixin",
|
|
1139
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1140
|
-
}
|
|
1152
|
+
"name": "handleMonthSelect",
|
|
1153
|
+
"privacy": "private"
|
|
1141
1154
|
},
|
|
1142
1155
|
{
|
|
1143
1156
|
"kind": "field",
|
|
1144
|
-
"name": "
|
|
1145
|
-
"
|
|
1146
|
-
"text": "string | undefined"
|
|
1147
|
-
},
|
|
1148
|
-
"description": "The name of the form component.",
|
|
1149
|
-
"attribute": "name",
|
|
1150
|
-
"inheritedFrom": {
|
|
1151
|
-
"name": "InputMixin",
|
|
1152
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1153
|
-
}
|
|
1157
|
+
"name": "handleYearSelect",
|
|
1158
|
+
"privacy": "private"
|
|
1154
1159
|
},
|
|
1155
1160
|
{
|
|
1156
1161
|
"kind": "field",
|
|
1157
|
-
"name": "
|
|
1158
|
-
"
|
|
1159
|
-
"text": "string"
|
|
1160
|
-
},
|
|
1161
|
-
"default": "\"\"",
|
|
1162
|
-
"description": "The value of the form component.",
|
|
1163
|
-
"attribute": "value",
|
|
1164
|
-
"inheritedFrom": {
|
|
1165
|
-
"name": "InputMixin",
|
|
1166
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1167
|
-
}
|
|
1162
|
+
"name": "handleNextMonthClick",
|
|
1163
|
+
"privacy": "private"
|
|
1168
1164
|
},
|
|
1169
1165
|
{
|
|
1170
1166
|
"kind": "field",
|
|
1171
|
-
"name": "
|
|
1172
|
-
"privacy": "
|
|
1173
|
-
"description": "Gets the form, if any, associated with the form element.",
|
|
1174
|
-
"inheritedFrom": {
|
|
1175
|
-
"name": "InputMixin",
|
|
1176
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1177
|
-
}
|
|
1167
|
+
"name": "handlePreviousMonthClick",
|
|
1168
|
+
"privacy": "private"
|
|
1178
1169
|
},
|
|
1179
1170
|
{
|
|
1180
1171
|
"kind": "field",
|
|
1181
|
-
"name": "
|
|
1182
|
-
"privacy": "
|
|
1183
|
-
"inheritedFrom": {
|
|
1184
|
-
"name": "FocusableMixin",
|
|
1185
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1186
|
-
}
|
|
1187
|
-
},
|
|
1188
|
-
{
|
|
1189
|
-
"kind": "method",
|
|
1190
|
-
"name": "focus",
|
|
1191
|
-
"parameters": [
|
|
1192
|
-
{
|
|
1193
|
-
"name": "options",
|
|
1194
|
-
"optional": true,
|
|
1195
|
-
"type": {
|
|
1196
|
-
"text": "FocusOptions"
|
|
1197
|
-
},
|
|
1198
|
-
"description": "An object which controls aspects of the focusing process."
|
|
1199
|
-
}
|
|
1200
|
-
],
|
|
1201
|
-
"description": "Programmatically move focus to the component.",
|
|
1202
|
-
"inheritedFrom": {
|
|
1203
|
-
"name": "FocusableMixin",
|
|
1204
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1205
|
-
}
|
|
1206
|
-
},
|
|
1207
|
-
{
|
|
1208
|
-
"kind": "method",
|
|
1209
|
-
"name": "blur",
|
|
1210
|
-
"description": "Programmatically remove focus from the component.",
|
|
1211
|
-
"inheritedFrom": {
|
|
1212
|
-
"name": "FocusableMixin",
|
|
1213
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1214
|
-
}
|
|
1172
|
+
"name": "enableActiveFocus",
|
|
1173
|
+
"privacy": "private"
|
|
1215
1174
|
},
|
|
1216
1175
|
{
|
|
1217
|
-
"kind": "
|
|
1218
|
-
"name": "
|
|
1219
|
-
"
|
|
1220
|
-
"inheritedFrom": {
|
|
1221
|
-
"name": "FocusableMixin",
|
|
1222
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1223
|
-
}
|
|
1176
|
+
"kind": "field",
|
|
1177
|
+
"name": "disableActiveFocus",
|
|
1178
|
+
"privacy": "private"
|
|
1224
1179
|
}
|
|
1225
1180
|
],
|
|
1226
|
-
"
|
|
1227
|
-
{
|
|
1228
|
-
"name": "variant",
|
|
1229
|
-
"type": {
|
|
1230
|
-
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
1231
|
-
},
|
|
1232
|
-
"default": "\"default\"",
|
|
1233
|
-
"description": "The style variant of the button.",
|
|
1234
|
-
"fieldName": "variant"
|
|
1235
|
-
},
|
|
1181
|
+
"events": [
|
|
1236
1182
|
{
|
|
1237
|
-
"name": "
|
|
1183
|
+
"name": "nord-focus-date",
|
|
1238
1184
|
"type": {
|
|
1239
|
-
"text": "
|
|
1185
|
+
"text": "DateSelectEvent"
|
|
1240
1186
|
},
|
|
1241
|
-
"
|
|
1242
|
-
"description": "The type of the button.",
|
|
1243
|
-
"fieldName": "type"
|
|
1187
|
+
"description": "Dispatched when the calendar's focused date changes."
|
|
1244
1188
|
},
|
|
1245
1189
|
{
|
|
1246
|
-
"name": "size",
|
|
1247
1190
|
"type": {
|
|
1248
|
-
"text": "
|
|
1191
|
+
"text": "DateSelectEvent"
|
|
1249
1192
|
},
|
|
1250
|
-
"
|
|
1251
|
-
"
|
|
1252
|
-
|
|
1253
|
-
|
|
1193
|
+
"description": "Dispatched when a date is selected and the value changes.",
|
|
1194
|
+
"name": "change"
|
|
1195
|
+
}
|
|
1196
|
+
],
|
|
1197
|
+
"attributes": [
|
|
1254
1198
|
{
|
|
1255
|
-
"name": "
|
|
1199
|
+
"name": "value",
|
|
1256
1200
|
"type": {
|
|
1257
|
-
"text": "string
|
|
1201
|
+
"text": "string"
|
|
1258
1202
|
},
|
|
1259
|
-
"
|
|
1260
|
-
"
|
|
1203
|
+
"default": "\"\"",
|
|
1204
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
1205
|
+
"fieldName": "value"
|
|
1261
1206
|
},
|
|
1262
1207
|
{
|
|
1263
|
-
"name": "
|
|
1208
|
+
"name": "firstDayOfWeek",
|
|
1264
1209
|
"type": {
|
|
1265
|
-
"text": "
|
|
1210
|
+
"text": "DaysOfWeek"
|
|
1266
1211
|
},
|
|
1267
|
-
"
|
|
1268
|
-
"
|
|
1269
|
-
"fieldName": "download"
|
|
1212
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
1213
|
+
"fieldName": "firstDayOfWeek"
|
|
1270
1214
|
},
|
|
1271
1215
|
{
|
|
1272
|
-
"name": "
|
|
1216
|
+
"name": "min",
|
|
1273
1217
|
"type": {
|
|
1274
|
-
"text": "
|
|
1218
|
+
"text": "string"
|
|
1275
1219
|
},
|
|
1276
|
-
"default": "\"
|
|
1277
|
-
"description": "
|
|
1278
|
-
"fieldName": "
|
|
1220
|
+
"default": "\"\"",
|
|
1221
|
+
"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.",
|
|
1222
|
+
"fieldName": "min"
|
|
1279
1223
|
},
|
|
1280
1224
|
{
|
|
1281
|
-
"name": "
|
|
1225
|
+
"name": "max",
|
|
1282
1226
|
"type": {
|
|
1283
|
-
"text": "
|
|
1227
|
+
"text": "string"
|
|
1284
1228
|
},
|
|
1285
|
-
"default": "
|
|
1286
|
-
"description": "
|
|
1287
|
-
"fieldName": "
|
|
1288
|
-
}
|
|
1229
|
+
"default": "\"\"",
|
|
1230
|
+
"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.",
|
|
1231
|
+
"fieldName": "max"
|
|
1232
|
+
}
|
|
1233
|
+
],
|
|
1234
|
+
"superclass": {
|
|
1235
|
+
"name": "LitElement",
|
|
1236
|
+
"package": "lit"
|
|
1237
|
+
},
|
|
1238
|
+
"status": "ready",
|
|
1239
|
+
"category": "list",
|
|
1240
|
+
"tagName": "nord-calendar",
|
|
1241
|
+
"customElement": true
|
|
1242
|
+
}
|
|
1243
|
+
],
|
|
1244
|
+
"exports": [
|
|
1245
|
+
{
|
|
1246
|
+
"kind": "js",
|
|
1247
|
+
"name": "default",
|
|
1248
|
+
"declaration": {
|
|
1249
|
+
"name": "Calendar",
|
|
1250
|
+
"module": "src/calendar/Calendar.ts"
|
|
1251
|
+
}
|
|
1252
|
+
},
|
|
1253
|
+
{
|
|
1254
|
+
"kind": "custom-element-definition",
|
|
1255
|
+
"name": "nord-calendar",
|
|
1256
|
+
"declaration": {
|
|
1257
|
+
"name": "Calendar",
|
|
1258
|
+
"module": "src/calendar/Calendar.ts"
|
|
1259
|
+
}
|
|
1260
|
+
}
|
|
1261
|
+
],
|
|
1262
|
+
"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"
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"kind": "javascript-module",
|
|
1266
|
+
"path": "src/calendar/DateSelectEvent.ts",
|
|
1267
|
+
"declarations": [
|
|
1268
|
+
{
|
|
1269
|
+
"kind": "class",
|
|
1270
|
+
"description": "",
|
|
1271
|
+
"name": "DateSelectEvent",
|
|
1272
|
+
"members": [
|
|
1289
1273
|
{
|
|
1290
|
-
"
|
|
1274
|
+
"kind": "field",
|
|
1275
|
+
"name": "date",
|
|
1291
1276
|
"type": {
|
|
1292
|
-
"text": "
|
|
1277
|
+
"text": "Date"
|
|
1293
1278
|
},
|
|
1294
|
-
"default": "
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1279
|
+
"default": "date"
|
|
1280
|
+
}
|
|
1281
|
+
],
|
|
1282
|
+
"superclass": {
|
|
1283
|
+
"name": "NordEvent",
|
|
1284
|
+
"module": "/src/common/events.js"
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
],
|
|
1288
|
+
"exports": [
|
|
1289
|
+
{
|
|
1290
|
+
"kind": "js",
|
|
1291
|
+
"name": "DateSelectEvent",
|
|
1292
|
+
"declaration": {
|
|
1293
|
+
"name": "DateSelectEvent",
|
|
1294
|
+
"module": "src/calendar/DateSelectEvent.ts"
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
],
|
|
1298
|
+
"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"
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"kind": "javascript-module",
|
|
1302
|
+
"path": "src/calendar/calendar-localization.ts",
|
|
1303
|
+
"declarations": [
|
|
1304
|
+
{
|
|
1305
|
+
"kind": "variable",
|
|
1306
|
+
"name": "localization",
|
|
1307
|
+
"type": {
|
|
1308
|
+
"text": "CalendarLocalizedText"
|
|
1309
|
+
},
|
|
1310
|
+
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n calendarHeading: \"Choose a date\",\n dayNames: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n monthNames: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n monthNamesShort: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"],\n locale: \"en-GB\",\n}"
|
|
1311
|
+
}
|
|
1312
|
+
],
|
|
1313
|
+
"exports": [
|
|
1314
|
+
{
|
|
1315
|
+
"kind": "js",
|
|
1316
|
+
"name": "default",
|
|
1317
|
+
"declaration": {
|
|
1318
|
+
"name": "localization",
|
|
1319
|
+
"module": "src/calendar/calendar-localization.ts"
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
],
|
|
1323
|
+
"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"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"kind": "javascript-module",
|
|
1327
|
+
"path": "src/calendar/month-view.ts",
|
|
1328
|
+
"declarations": [
|
|
1329
|
+
{
|
|
1330
|
+
"kind": "function",
|
|
1331
|
+
"name": "dayView",
|
|
1332
|
+
"parameters": [
|
|
1302
1333
|
{
|
|
1303
|
-
"name": "
|
|
1334
|
+
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
1304
1335
|
"type": {
|
|
1305
|
-
"text": "
|
|
1306
|
-
},
|
|
1307
|
-
"description": "The name of the form component.",
|
|
1308
|
-
"fieldName": "name",
|
|
1309
|
-
"inheritedFrom": {
|
|
1310
|
-
"name": "InputMixin",
|
|
1311
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1336
|
+
"text": "DatePickerDayProps"
|
|
1312
1337
|
}
|
|
1313
|
-
}
|
|
1338
|
+
}
|
|
1339
|
+
]
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
"kind": "function",
|
|
1343
|
+
"name": "monthView",
|
|
1344
|
+
"parameters": [
|
|
1314
1345
|
{
|
|
1315
|
-
"name": "
|
|
1346
|
+
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n localization,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
1316
1347
|
"type": {
|
|
1317
|
-
"text": "
|
|
1318
|
-
},
|
|
1319
|
-
"default": "\"\"",
|
|
1320
|
-
"description": "The value of the form component.",
|
|
1321
|
-
"fieldName": "value",
|
|
1322
|
-
"inheritedFrom": {
|
|
1323
|
-
"name": "InputMixin",
|
|
1324
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1348
|
+
"text": "MonthViewArgs"
|
|
1325
1349
|
}
|
|
1326
1350
|
}
|
|
1327
|
-
]
|
|
1328
|
-
"mixins": [
|
|
1329
|
-
{
|
|
1330
|
-
"name": "InputMixin",
|
|
1331
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
1332
|
-
},
|
|
1333
|
-
{
|
|
1334
|
-
"name": "FocusableMixin",
|
|
1335
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
1336
|
-
}
|
|
1337
|
-
],
|
|
1338
|
-
"superclass": {
|
|
1339
|
-
"name": "LitElement",
|
|
1340
|
-
"package": "lit"
|
|
1341
|
-
},
|
|
1342
|
-
"status": "ready",
|
|
1343
|
-
"category": "action",
|
|
1344
|
-
"tagName": "nord-button",
|
|
1345
|
-
"customElement": true
|
|
1351
|
+
]
|
|
1346
1352
|
}
|
|
1347
1353
|
],
|
|
1348
1354
|
"exports": [
|
|
1349
1355
|
{
|
|
1350
1356
|
"kind": "js",
|
|
1351
|
-
"name": "
|
|
1357
|
+
"name": "dayView",
|
|
1352
1358
|
"declaration": {
|
|
1353
|
-
"name": "
|
|
1354
|
-
"module": "src/
|
|
1359
|
+
"name": "dayView",
|
|
1360
|
+
"module": "src/calendar/month-view.ts"
|
|
1355
1361
|
}
|
|
1356
1362
|
},
|
|
1357
1363
|
{
|
|
1358
|
-
"kind": "
|
|
1359
|
-
"name": "
|
|
1364
|
+
"kind": "js",
|
|
1365
|
+
"name": "monthView",
|
|
1360
1366
|
"declaration": {
|
|
1361
|
-
"name": "
|
|
1362
|
-
"module": "src/
|
|
1367
|
+
"name": "monthView",
|
|
1368
|
+
"module": "src/calendar/month-view.ts"
|
|
1363
1369
|
}
|
|
1364
1370
|
}
|
|
1365
1371
|
],
|
|
1366
|
-
"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
|
|
1372
|
+
"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"
|
|
1367
1373
|
},
|
|
1368
1374
|
{
|
|
1369
1375
|
"kind": "javascript-module",
|
|
@@ -4682,82 +4688,6 @@
|
|
|
4682
4688
|
],
|
|
4683
4689
|
"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 fieldset component when you need to create a relationship between multiple form inputs.\n- It is especially important to use with a group of radio components.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use with a checkbox component when there is **only one** checkbox. For example, when accepting terms and conditions.\n\n</div>\n\n-------\n\n## Content guidelines\n\nFieldset label should be clear, accurate and predictable. It should help the user to understand how the items in the fieldset are grouped together, or what kind of choice the user is making:\n\n<div class=\"n-usage n-usage-do\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Choose</div>\n\nWhen writing fieldset 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\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Pick A Color</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\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Pick a color.</div>\n\nDo not use colons in fieldset label:\n\n<div class=\"n-usage n-usage-do\">Payment details</div>\n<div class=\"n-usage n-usage-dont\">Payment details:</div>\n\n-------\n\n## Additional considerations\n\n- A label (which becomes to `<legend>` inside the fieldset) is always required.\n- Hint text can be used to offer further information or explanation for an option.\n"
|
|
4684
4690
|
},
|
|
4685
|
-
{
|
|
4686
|
-
"kind": "javascript-module",
|
|
4687
|
-
"path": "src/header/Header.ts",
|
|
4688
|
-
"declarations": [
|
|
4689
|
-
{
|
|
4690
|
-
"kind": "class",
|
|
4691
|
-
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
4692
|
-
"name": "Header",
|
|
4693
|
-
"slots": [
|
|
4694
|
-
{
|
|
4695
|
-
"description": "The header content.",
|
|
4696
|
-
"name": ""
|
|
4697
|
-
},
|
|
4698
|
-
{
|
|
4699
|
-
"description": "Optional slot for buttons, toggles, etc.",
|
|
4700
|
-
"name": "action"
|
|
4701
|
-
}
|
|
4702
|
-
],
|
|
4703
|
-
"members": [
|
|
4704
|
-
{
|
|
4705
|
-
"kind": "field",
|
|
4706
|
-
"name": "actionSlot",
|
|
4707
|
-
"privacy": "private",
|
|
4708
|
-
"default": "new SlotController(this, \"action\")"
|
|
4709
|
-
},
|
|
4710
|
-
{
|
|
4711
|
-
"kind": "field",
|
|
4712
|
-
"name": "_warningLogged",
|
|
4713
|
-
"type": {
|
|
4714
|
-
"text": "boolean"
|
|
4715
|
-
},
|
|
4716
|
-
"privacy": "private",
|
|
4717
|
-
"static": true,
|
|
4718
|
-
"default": "false",
|
|
4719
|
-
"inheritedFrom": {
|
|
4720
|
-
"name": "DraftComponentMixin",
|
|
4721
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
4722
|
-
}
|
|
4723
|
-
}
|
|
4724
|
-
],
|
|
4725
|
-
"mixins": [
|
|
4726
|
-
{
|
|
4727
|
-
"name": "DraftComponentMixin",
|
|
4728
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
4729
|
-
}
|
|
4730
|
-
],
|
|
4731
|
-
"superclass": {
|
|
4732
|
-
"name": "LitElement",
|
|
4733
|
-
"package": "lit"
|
|
4734
|
-
},
|
|
4735
|
-
"status": "draft",
|
|
4736
|
-
"category": "structure",
|
|
4737
|
-
"tagName": "nord-header",
|
|
4738
|
-
"customElement": true
|
|
4739
|
-
}
|
|
4740
|
-
],
|
|
4741
|
-
"exports": [
|
|
4742
|
-
{
|
|
4743
|
-
"kind": "js",
|
|
4744
|
-
"name": "default",
|
|
4745
|
-
"declaration": {
|
|
4746
|
-
"name": "Header",
|
|
4747
|
-
"module": "src/header/Header.ts"
|
|
4748
|
-
}
|
|
4749
|
-
},
|
|
4750
|
-
{
|
|
4751
|
-
"kind": "custom-element-definition",
|
|
4752
|
-
"name": "nord-header",
|
|
4753
|
-
"declaration": {
|
|
4754
|
-
"name": "Header",
|
|
4755
|
-
"module": "src/header/Header.ts"
|
|
4756
|
-
}
|
|
4757
|
-
}
|
|
4758
|
-
],
|
|
4759
|
-
"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 header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n\n</div>\n\n-------\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n"
|
|
4760
|
-
},
|
|
4761
4691
|
{
|
|
4762
4692
|
"kind": "javascript-module",
|
|
4763
4693
|
"path": "src/icon/Icon.ts",
|
|
@@ -4996,6 +4926,82 @@
|
|
|
4996
4926
|
],
|
|
4997
4927
|
"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 provide additional meaning in addition to a text label.\n- Use to help users who have difficulties with reading and attention.\n- Use in places where text label doesn’t fit (remember to add an accessible label for the icon).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for decorative purposes alone.\n- Don’t use when a button’s action is already clear based on the text label.\n- Don’t use the same icon for differing purposes, as users will come to associate icons with specific types of actions.\n\n</div>\n\n---\n\n## Additional considerations\n\n- Icon components are hidden from assistive technologies by default.\n- Use `label` property to give an accessible label for the icon and to make it visible to assistive technologies.\n"
|
|
4998
4928
|
},
|
|
4929
|
+
{
|
|
4930
|
+
"kind": "javascript-module",
|
|
4931
|
+
"path": "src/header/Header.ts",
|
|
4932
|
+
"declarations": [
|
|
4933
|
+
{
|
|
4934
|
+
"kind": "class",
|
|
4935
|
+
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
4936
|
+
"name": "Header",
|
|
4937
|
+
"slots": [
|
|
4938
|
+
{
|
|
4939
|
+
"description": "The header content.",
|
|
4940
|
+
"name": ""
|
|
4941
|
+
},
|
|
4942
|
+
{
|
|
4943
|
+
"description": "Optional slot for buttons, toggles, etc.",
|
|
4944
|
+
"name": "action"
|
|
4945
|
+
}
|
|
4946
|
+
],
|
|
4947
|
+
"members": [
|
|
4948
|
+
{
|
|
4949
|
+
"kind": "field",
|
|
4950
|
+
"name": "actionSlot",
|
|
4951
|
+
"privacy": "private",
|
|
4952
|
+
"default": "new SlotController(this, \"action\")"
|
|
4953
|
+
},
|
|
4954
|
+
{
|
|
4955
|
+
"kind": "field",
|
|
4956
|
+
"name": "_warningLogged",
|
|
4957
|
+
"type": {
|
|
4958
|
+
"text": "boolean"
|
|
4959
|
+
},
|
|
4960
|
+
"privacy": "private",
|
|
4961
|
+
"static": true,
|
|
4962
|
+
"default": "false",
|
|
4963
|
+
"inheritedFrom": {
|
|
4964
|
+
"name": "DraftComponentMixin",
|
|
4965
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
4966
|
+
}
|
|
4967
|
+
}
|
|
4968
|
+
],
|
|
4969
|
+
"mixins": [
|
|
4970
|
+
{
|
|
4971
|
+
"name": "DraftComponentMixin",
|
|
4972
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
4973
|
+
}
|
|
4974
|
+
],
|
|
4975
|
+
"superclass": {
|
|
4976
|
+
"name": "LitElement",
|
|
4977
|
+
"package": "lit"
|
|
4978
|
+
},
|
|
4979
|
+
"status": "draft",
|
|
4980
|
+
"category": "structure",
|
|
4981
|
+
"tagName": "nord-header",
|
|
4982
|
+
"customElement": true
|
|
4983
|
+
}
|
|
4984
|
+
],
|
|
4985
|
+
"exports": [
|
|
4986
|
+
{
|
|
4987
|
+
"kind": "js",
|
|
4988
|
+
"name": "default",
|
|
4989
|
+
"declaration": {
|
|
4990
|
+
"name": "Header",
|
|
4991
|
+
"module": "src/header/Header.ts"
|
|
4992
|
+
}
|
|
4993
|
+
},
|
|
4994
|
+
{
|
|
4995
|
+
"kind": "custom-element-definition",
|
|
4996
|
+
"name": "nord-header",
|
|
4997
|
+
"declaration": {
|
|
4998
|
+
"name": "Header",
|
|
4999
|
+
"module": "src/header/Header.ts"
|
|
5000
|
+
}
|
|
5001
|
+
}
|
|
5002
|
+
],
|
|
5003
|
+
"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 header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n\n</div>\n\n-------\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n"
|
|
5004
|
+
},
|
|
4999
5005
|
{
|
|
5000
5006
|
"kind": "javascript-module",
|
|
5001
5007
|
"path": "src/input/Input.ts",
|
|
@@ -8509,15 +8515,29 @@
|
|
|
8509
8515
|
},
|
|
8510
8516
|
{
|
|
8511
8517
|
"kind": "field",
|
|
8512
|
-
"name": "shortcutSlot",
|
|
8513
|
-
"privacy": "private",
|
|
8514
|
-
"default": "new SlotController(this, \"shortcut\")"
|
|
8518
|
+
"name": "shortcutSlot",
|
|
8519
|
+
"privacy": "private",
|
|
8520
|
+
"default": "new SlotController(this, \"shortcut\")"
|
|
8521
|
+
},
|
|
8522
|
+
{
|
|
8523
|
+
"kind": "field",
|
|
8524
|
+
"name": "events",
|
|
8525
|
+
"privacy": "private",
|
|
8526
|
+
"default": "new EventController(this)"
|
|
8527
|
+
},
|
|
8528
|
+
{
|
|
8529
|
+
"kind": "field",
|
|
8530
|
+
"name": "currentElement",
|
|
8531
|
+
"type": {
|
|
8532
|
+
"text": "FocusableElement | undefined"
|
|
8533
|
+
},
|
|
8534
|
+
"privacy": "private"
|
|
8515
8535
|
},
|
|
8516
8536
|
{
|
|
8517
8537
|
"kind": "field",
|
|
8518
|
-
"name": "
|
|
8538
|
+
"name": "timeoutId",
|
|
8519
8539
|
"type": {
|
|
8520
|
-
"text": "
|
|
8540
|
+
"text": "ReturnType<typeof setTimeout> | undefined"
|
|
8521
8541
|
},
|
|
8522
8542
|
"privacy": "private"
|
|
8523
8543
|
},
|
|
@@ -8529,12 +8549,22 @@
|
|
|
8529
8549
|
},
|
|
8530
8550
|
{
|
|
8531
8551
|
"kind": "field",
|
|
8532
|
-
"name": "
|
|
8552
|
+
"name": "state",
|
|
8553
|
+
"type": {
|
|
8554
|
+
"text": "TooltipStates"
|
|
8555
|
+
},
|
|
8556
|
+
"privacy": "private",
|
|
8557
|
+
"default": "\"hidden\"",
|
|
8558
|
+
"description": "The current state of the tooltip, dependent on the state machine"
|
|
8559
|
+
},
|
|
8560
|
+
{
|
|
8561
|
+
"kind": "field",
|
|
8562
|
+
"name": "coords",
|
|
8533
8563
|
"type": {
|
|
8534
|
-
"text": "
|
|
8564
|
+
"text": "[number, number]"
|
|
8535
8565
|
},
|
|
8536
|
-
"
|
|
8537
|
-
"
|
|
8566
|
+
"privacy": "private",
|
|
8567
|
+
"default": "[0, 0]"
|
|
8538
8568
|
},
|
|
8539
8569
|
{
|
|
8540
8570
|
"kind": "field",
|
|
@@ -8580,6 +8610,19 @@
|
|
|
8580
8610
|
"attribute": "delay",
|
|
8581
8611
|
"reflects": true
|
|
8582
8612
|
},
|
|
8613
|
+
{
|
|
8614
|
+
"kind": "method",
|
|
8615
|
+
"name": "handleTransition",
|
|
8616
|
+
"privacy": "private",
|
|
8617
|
+
"parameters": [
|
|
8618
|
+
{
|
|
8619
|
+
"name": "prevState",
|
|
8620
|
+
"type": {
|
|
8621
|
+
"text": "TooltipStates"
|
|
8622
|
+
}
|
|
8623
|
+
}
|
|
8624
|
+
]
|
|
8625
|
+
},
|
|
8583
8626
|
{
|
|
8584
8627
|
"kind": "field",
|
|
8585
8628
|
"name": "updatePosition",
|
|
@@ -8588,18 +8631,22 @@
|
|
|
8588
8631
|
},
|
|
8589
8632
|
{
|
|
8590
8633
|
"kind": "field",
|
|
8591
|
-
"name": "
|
|
8634
|
+
"name": "hideTooltip",
|
|
8592
8635
|
"privacy": "private"
|
|
8593
8636
|
},
|
|
8594
8637
|
{
|
|
8595
8638
|
"kind": "field",
|
|
8596
|
-
"name": "
|
|
8597
|
-
"privacy": "private"
|
|
8598
|
-
"description": "Show and hide the tooltip using inline styles"
|
|
8639
|
+
"name": "reposition",
|
|
8640
|
+
"privacy": "private"
|
|
8599
8641
|
},
|
|
8600
8642
|
{
|
|
8601
8643
|
"kind": "field",
|
|
8602
|
-
"name": "
|
|
8644
|
+
"name": "handleShow",
|
|
8645
|
+
"privacy": "private"
|
|
8646
|
+
},
|
|
8647
|
+
{
|
|
8648
|
+
"kind": "field",
|
|
8649
|
+
"name": "handleHide",
|
|
8603
8650
|
"privacy": "private"
|
|
8604
8651
|
},
|
|
8605
8652
|
{
|
|
@@ -8804,6 +8851,217 @@
|
|
|
8804
8851
|
}
|
|
8805
8852
|
]
|
|
8806
8853
|
},
|
|
8854
|
+
{
|
|
8855
|
+
"kind": "javascript-module",
|
|
8856
|
+
"path": "src/common/controllers/EventController.ts",
|
|
8857
|
+
"declarations": [
|
|
8858
|
+
{
|
|
8859
|
+
"kind": "class",
|
|
8860
|
+
"description": "",
|
|
8861
|
+
"name": "EventController",
|
|
8862
|
+
"members": [
|
|
8863
|
+
{
|
|
8864
|
+
"kind": "field",
|
|
8865
|
+
"name": "listeners",
|
|
8866
|
+
"type": {
|
|
8867
|
+
"text": "Array<() => void>"
|
|
8868
|
+
},
|
|
8869
|
+
"privacy": "private",
|
|
8870
|
+
"default": "[]"
|
|
8871
|
+
},
|
|
8872
|
+
{
|
|
8873
|
+
"kind": "method",
|
|
8874
|
+
"name": "hostDisconnected"
|
|
8875
|
+
},
|
|
8876
|
+
{
|
|
8877
|
+
"kind": "method",
|
|
8878
|
+
"name": "listen",
|
|
8879
|
+
"return": {
|
|
8880
|
+
"type": {
|
|
8881
|
+
"text": "void"
|
|
8882
|
+
}
|
|
8883
|
+
},
|
|
8884
|
+
"parameters": [
|
|
8885
|
+
{
|
|
8886
|
+
"name": "window",
|
|
8887
|
+
"type": {
|
|
8888
|
+
"text": "Window"
|
|
8889
|
+
}
|
|
8890
|
+
},
|
|
8891
|
+
{
|
|
8892
|
+
"name": "type",
|
|
8893
|
+
"type": {
|
|
8894
|
+
"text": "K"
|
|
8895
|
+
}
|
|
8896
|
+
},
|
|
8897
|
+
{
|
|
8898
|
+
"name": "listener",
|
|
8899
|
+
"type": {
|
|
8900
|
+
"text": "(this: Window, ev: WindowEventMap[K]) => any"
|
|
8901
|
+
}
|
|
8902
|
+
},
|
|
8903
|
+
{
|
|
8904
|
+
"name": "options",
|
|
8905
|
+
"optional": true,
|
|
8906
|
+
"type": {
|
|
8907
|
+
"text": "boolean | AddEventListenerOptions"
|
|
8908
|
+
}
|
|
8909
|
+
}
|
|
8910
|
+
]
|
|
8911
|
+
},
|
|
8912
|
+
{
|
|
8913
|
+
"kind": "method",
|
|
8914
|
+
"name": "listen",
|
|
8915
|
+
"return": {
|
|
8916
|
+
"type": {
|
|
8917
|
+
"text": "void"
|
|
8918
|
+
}
|
|
8919
|
+
},
|
|
8920
|
+
"parameters": [
|
|
8921
|
+
{
|
|
8922
|
+
"name": "document",
|
|
8923
|
+
"type": {
|
|
8924
|
+
"text": "Document"
|
|
8925
|
+
}
|
|
8926
|
+
},
|
|
8927
|
+
{
|
|
8928
|
+
"name": "type",
|
|
8929
|
+
"type": {
|
|
8930
|
+
"text": "K"
|
|
8931
|
+
}
|
|
8932
|
+
},
|
|
8933
|
+
{
|
|
8934
|
+
"name": "listener",
|
|
8935
|
+
"type": {
|
|
8936
|
+
"text": "(this: Document, ev: DocumentEventMap[K]) => any"
|
|
8937
|
+
}
|
|
8938
|
+
},
|
|
8939
|
+
{
|
|
8940
|
+
"name": "options",
|
|
8941
|
+
"optional": true,
|
|
8942
|
+
"type": {
|
|
8943
|
+
"text": "boolean | AddEventListenerOptions"
|
|
8944
|
+
}
|
|
8945
|
+
}
|
|
8946
|
+
]
|
|
8947
|
+
},
|
|
8948
|
+
{
|
|
8949
|
+
"kind": "method",
|
|
8950
|
+
"name": "listen",
|
|
8951
|
+
"return": {
|
|
8952
|
+
"type": {
|
|
8953
|
+
"text": "void"
|
|
8954
|
+
}
|
|
8955
|
+
},
|
|
8956
|
+
"parameters": [
|
|
8957
|
+
{
|
|
8958
|
+
"name": "element",
|
|
8959
|
+
"type": {
|
|
8960
|
+
"text": "HTMLElement"
|
|
8961
|
+
}
|
|
8962
|
+
},
|
|
8963
|
+
{
|
|
8964
|
+
"name": "type",
|
|
8965
|
+
"type": {
|
|
8966
|
+
"text": "K"
|
|
8967
|
+
}
|
|
8968
|
+
},
|
|
8969
|
+
{
|
|
8970
|
+
"name": "listener",
|
|
8971
|
+
"type": {
|
|
8972
|
+
"text": "(this: HTMLElement, ev: HTMLElementEventMap[K]) => any"
|
|
8973
|
+
}
|
|
8974
|
+
},
|
|
8975
|
+
{
|
|
8976
|
+
"name": "options",
|
|
8977
|
+
"optional": true,
|
|
8978
|
+
"type": {
|
|
8979
|
+
"text": "boolean | AddEventListenerOptions"
|
|
8980
|
+
}
|
|
8981
|
+
}
|
|
8982
|
+
]
|
|
8983
|
+
},
|
|
8984
|
+
{
|
|
8985
|
+
"kind": "method",
|
|
8986
|
+
"name": "listen",
|
|
8987
|
+
"return": {
|
|
8988
|
+
"type": {
|
|
8989
|
+
"text": "void"
|
|
8990
|
+
}
|
|
8991
|
+
},
|
|
8992
|
+
"parameters": [
|
|
8993
|
+
{
|
|
8994
|
+
"name": "element",
|
|
8995
|
+
"type": {
|
|
8996
|
+
"text": "ShadowRoot"
|
|
8997
|
+
}
|
|
8998
|
+
},
|
|
8999
|
+
{
|
|
9000
|
+
"name": "type",
|
|
9001
|
+
"type": {
|
|
9002
|
+
"text": "K"
|
|
9003
|
+
}
|
|
9004
|
+
},
|
|
9005
|
+
{
|
|
9006
|
+
"name": "listener",
|
|
9007
|
+
"type": {
|
|
9008
|
+
"text": "(this: ShadowRoot, ev: ShadowRootEventMap[K]) => any"
|
|
9009
|
+
}
|
|
9010
|
+
},
|
|
9011
|
+
{
|
|
9012
|
+
"name": "options",
|
|
9013
|
+
"optional": true,
|
|
9014
|
+
"type": {
|
|
9015
|
+
"text": "boolean | AddEventListenerOptions"
|
|
9016
|
+
}
|
|
9017
|
+
}
|
|
9018
|
+
]
|
|
9019
|
+
},
|
|
9020
|
+
{
|
|
9021
|
+
"kind": "method",
|
|
9022
|
+
"name": "listen",
|
|
9023
|
+
"parameters": [
|
|
9024
|
+
{
|
|
9025
|
+
"name": "element",
|
|
9026
|
+
"type": {
|
|
9027
|
+
"text": "Window | Document | HTMLElement | ShadowRoot"
|
|
9028
|
+
}
|
|
9029
|
+
},
|
|
9030
|
+
{
|
|
9031
|
+
"name": "type",
|
|
9032
|
+
"type": {
|
|
9033
|
+
"text": "string"
|
|
9034
|
+
}
|
|
9035
|
+
},
|
|
9036
|
+
{
|
|
9037
|
+
"name": "listener",
|
|
9038
|
+
"type": {
|
|
9039
|
+
"text": "(ev: any) => any"
|
|
9040
|
+
}
|
|
9041
|
+
},
|
|
9042
|
+
{
|
|
9043
|
+
"name": "options",
|
|
9044
|
+
"optional": true,
|
|
9045
|
+
"type": {
|
|
9046
|
+
"text": "boolean | AddEventListenerOptions"
|
|
9047
|
+
}
|
|
9048
|
+
}
|
|
9049
|
+
]
|
|
9050
|
+
}
|
|
9051
|
+
]
|
|
9052
|
+
}
|
|
9053
|
+
],
|
|
9054
|
+
"exports": [
|
|
9055
|
+
{
|
|
9056
|
+
"kind": "js",
|
|
9057
|
+
"name": "EventController",
|
|
9058
|
+
"declaration": {
|
|
9059
|
+
"name": "EventController",
|
|
9060
|
+
"module": "src/common/controllers/EventController.ts"
|
|
9061
|
+
}
|
|
9062
|
+
}
|
|
9063
|
+
]
|
|
9064
|
+
},
|
|
8807
9065
|
{
|
|
8808
9066
|
"kind": "javascript-module",
|
|
8809
9067
|
"path": "src/common/controllers/FormDataController.ts",
|
|
@@ -8814,12 +9072,17 @@
|
|
|
8814
9072
|
"name": "FormDataController",
|
|
8815
9073
|
"members": [
|
|
8816
9074
|
{
|
|
8817
|
-
"kind": "
|
|
8818
|
-
"name": "
|
|
9075
|
+
"kind": "field",
|
|
9076
|
+
"name": "events",
|
|
9077
|
+
"type": {
|
|
9078
|
+
"text": "EventController"
|
|
9079
|
+
},
|
|
9080
|
+
"privacy": "private",
|
|
9081
|
+
"default": "new EventController(host)"
|
|
8819
9082
|
},
|
|
8820
9083
|
{
|
|
8821
9084
|
"kind": "method",
|
|
8822
|
-
"name": "
|
|
9085
|
+
"name": "hostConnected"
|
|
8823
9086
|
},
|
|
8824
9087
|
{
|
|
8825
9088
|
"kind": "field",
|
|
@@ -8869,12 +9132,17 @@
|
|
|
8869
9132
|
"default": "new ShortcutController(this.host, { Escape: this.handleEsc })"
|
|
8870
9133
|
},
|
|
8871
9134
|
{
|
|
8872
|
-
"kind": "
|
|
8873
|
-
"name": "
|
|
9135
|
+
"kind": "field",
|
|
9136
|
+
"name": "events",
|
|
9137
|
+
"type": {
|
|
9138
|
+
"text": "EventController"
|
|
9139
|
+
},
|
|
9140
|
+
"privacy": "private",
|
|
9141
|
+
"default": "new EventController(host)"
|
|
8874
9142
|
},
|
|
8875
9143
|
{
|
|
8876
9144
|
"kind": "method",
|
|
8877
|
-
"name": "
|
|
9145
|
+
"name": "hostConnected"
|
|
8878
9146
|
},
|
|
8879
9147
|
{
|
|
8880
9148
|
"kind": "field",
|
|
@@ -8995,11 +9263,7 @@
|
|
|
8995
9263
|
},
|
|
8996
9264
|
{
|
|
8997
9265
|
"kind": "method",
|
|
8998
|
-
"name": "hostDisconnected"
|
|
8999
|
-
"inheritedFrom": {
|
|
9000
|
-
"name": "SlotController",
|
|
9001
|
-
"module": "src/common/controllers/SlotController.ts"
|
|
9002
|
-
}
|
|
9266
|
+
"name": "hostDisconnected"
|
|
9003
9267
|
},
|
|
9004
9268
|
{
|
|
9005
9269
|
"kind": "field",
|
|
@@ -9028,6 +9292,19 @@
|
|
|
9028
9292
|
"name": "options",
|
|
9029
9293
|
"default": "options"
|
|
9030
9294
|
},
|
|
9295
|
+
{
|
|
9296
|
+
"kind": "field",
|
|
9297
|
+
"name": "events",
|
|
9298
|
+
"type": {
|
|
9299
|
+
"text": "EventController"
|
|
9300
|
+
},
|
|
9301
|
+
"privacy": "private",
|
|
9302
|
+
"default": "new EventController(host)",
|
|
9303
|
+
"inheritedFrom": {
|
|
9304
|
+
"name": "SlotController",
|
|
9305
|
+
"module": "src/common/controllers/SlotController.ts"
|
|
9306
|
+
}
|
|
9307
|
+
},
|
|
9031
9308
|
{
|
|
9032
9309
|
"kind": "field",
|
|
9033
9310
|
"name": "hasContent",
|
|
@@ -9244,12 +9521,17 @@
|
|
|
9244
9521
|
"name": "SlotController",
|
|
9245
9522
|
"members": [
|
|
9246
9523
|
{
|
|
9247
|
-
"kind": "
|
|
9248
|
-
"name": "
|
|
9524
|
+
"kind": "field",
|
|
9525
|
+
"name": "events",
|
|
9526
|
+
"type": {
|
|
9527
|
+
"text": "EventController"
|
|
9528
|
+
},
|
|
9529
|
+
"privacy": "private",
|
|
9530
|
+
"default": "new EventController(host)"
|
|
9249
9531
|
},
|
|
9250
9532
|
{
|
|
9251
9533
|
"kind": "method",
|
|
9252
|
-
"name": "
|
|
9534
|
+
"name": "hostConnected"
|
|
9253
9535
|
},
|
|
9254
9536
|
{
|
|
9255
9537
|
"kind": "field",
|
|
@@ -9316,16 +9598,16 @@
|
|
|
9316
9598
|
"members": [
|
|
9317
9599
|
{
|
|
9318
9600
|
"kind": "field",
|
|
9319
|
-
"name": "
|
|
9601
|
+
"name": "events",
|
|
9320
9602
|
"type": {
|
|
9321
|
-
"text": "
|
|
9603
|
+
"text": "EventController"
|
|
9322
9604
|
},
|
|
9323
9605
|
"privacy": "private",
|
|
9324
|
-
"default": "host"
|
|
9606
|
+
"default": "new EventController(host)"
|
|
9325
9607
|
},
|
|
9326
9608
|
{
|
|
9327
9609
|
"kind": "field",
|
|
9328
|
-
"name": "
|
|
9610
|
+
"name": "hadFirstUpdate",
|
|
9329
9611
|
"type": {
|
|
9330
9612
|
"text": "boolean"
|
|
9331
9613
|
},
|
|
@@ -9352,26 +9634,12 @@
|
|
|
9352
9634
|
},
|
|
9353
9635
|
{
|
|
9354
9636
|
"kind": "field",
|
|
9355
|
-
"name": "
|
|
9356
|
-
"type": {
|
|
9357
|
-
"text": "() => HTMLElement"
|
|
9358
|
-
},
|
|
9359
|
-
"privacy": "private"
|
|
9360
|
-
},
|
|
9361
|
-
{
|
|
9362
|
-
"kind": "field",
|
|
9363
|
-
"name": "onSwipeEnd",
|
|
9637
|
+
"name": "options",
|
|
9364
9638
|
"type": {
|
|
9365
|
-
"text": "SwipeControllerOptions
|
|
9639
|
+
"text": "SetRequired<SwipeControllerOptions, \"target\">"
|
|
9366
9640
|
},
|
|
9367
|
-
"privacy": "private"
|
|
9368
|
-
|
|
9369
|
-
{
|
|
9370
|
-
"kind": "field",
|
|
9371
|
-
"name": "matchesGesture",
|
|
9372
|
-
"type": {
|
|
9373
|
-
"text": "SwipeControllerOptions[\"matchesGesture\"]"
|
|
9374
|
-
}
|
|
9641
|
+
"privacy": "private",
|
|
9642
|
+
"default": "{\n target: () => host,\n ...options,\n }"
|
|
9375
9643
|
},
|
|
9376
9644
|
{
|
|
9377
9645
|
"kind": "method",
|