@nordhealth/components 1.1.1 → 1.1.2
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 +1938 -1938
- package/lib/Popout.js +1 -1
- package/lib/Popout.js.map +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.js.map +1 -1
- package/package.json +2 -2
package/custom-elements.json
CHANGED
|
@@ -424,276 +424,125 @@
|
|
|
424
424
|
},
|
|
425
425
|
{
|
|
426
426
|
"kind": "javascript-module",
|
|
427
|
-
"path": "src/
|
|
428
|
-
"declarations": [
|
|
429
|
-
{
|
|
430
|
-
"kind": "class",
|
|
431
|
-
"description": "Badges are used to inform users of the status of an object or of an action that’s been taken. Commonly used in tabular data to indicate status.",
|
|
432
|
-
"name": "Badge",
|
|
433
|
-
"slots": [
|
|
434
|
-
{
|
|
435
|
-
"description": "The badge content.",
|
|
436
|
-
"name": ""
|
|
437
|
-
}
|
|
438
|
-
],
|
|
439
|
-
"members": [
|
|
440
|
-
{
|
|
441
|
-
"kind": "field",
|
|
442
|
-
"name": "type",
|
|
443
|
-
"type": {
|
|
444
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
|
|
445
|
-
},
|
|
446
|
-
"default": "\"info\"",
|
|
447
|
-
"description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
|
|
448
|
-
"attribute": "type",
|
|
449
|
-
"reflects": true
|
|
450
|
-
}
|
|
451
|
-
],
|
|
452
|
-
"attributes": [
|
|
453
|
-
{
|
|
454
|
-
"name": "type",
|
|
455
|
-
"type": {
|
|
456
|
-
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
|
|
457
|
-
},
|
|
458
|
-
"default": "\"info\"",
|
|
459
|
-
"description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
|
|
460
|
-
"fieldName": "type"
|
|
461
|
-
}
|
|
462
|
-
],
|
|
463
|
-
"superclass": {
|
|
464
|
-
"name": "LitElement",
|
|
465
|
-
"package": "lit"
|
|
466
|
-
},
|
|
467
|
-
"status": "ready",
|
|
468
|
-
"category": "text",
|
|
469
|
-
"tagName": "nord-badge",
|
|
470
|
-
"customElement": true
|
|
471
|
-
}
|
|
472
|
-
],
|
|
473
|
-
"exports": [
|
|
474
|
-
{
|
|
475
|
-
"kind": "js",
|
|
476
|
-
"name": "default",
|
|
477
|
-
"declaration": {
|
|
478
|
-
"name": "Badge",
|
|
479
|
-
"module": "src/badge/Badge.ts"
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
{
|
|
483
|
-
"kind": "custom-element-definition",
|
|
484
|
-
"name": "nord-badge",
|
|
485
|
-
"declaration": {
|
|
486
|
-
"name": "Badge",
|
|
487
|
-
"module": "src/badge/Badge.ts"
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
],
|
|
491
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Use established color patterns so that users can clearly identify the importance level.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `info` | The default variant. Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n"
|
|
492
|
-
},
|
|
493
|
-
{
|
|
494
|
-
"kind": "javascript-module",
|
|
495
|
-
"path": "src/banner/Banner.ts",
|
|
427
|
+
"path": "src/button/Button.ts",
|
|
496
428
|
"declarations": [
|
|
497
429
|
{
|
|
498
430
|
"kind": "class",
|
|
499
|
-
"description": "
|
|
500
|
-
"name": "
|
|
431
|
+
"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.",
|
|
432
|
+
"name": "Button",
|
|
501
433
|
"slots": [
|
|
502
434
|
{
|
|
503
|
-
"description": "
|
|
435
|
+
"description": "The button content",
|
|
504
436
|
"name": ""
|
|
505
|
-
}
|
|
506
|
-
],
|
|
507
|
-
"members": [
|
|
437
|
+
},
|
|
508
438
|
{
|
|
509
|
-
"
|
|
510
|
-
"name": "
|
|
511
|
-
|
|
512
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
513
|
-
},
|
|
514
|
-
"default": "\"info\"",
|
|
515
|
-
"description": "The style variant of the banner.",
|
|
516
|
-
"attribute": "variant",
|
|
517
|
-
"reflects": true
|
|
518
|
-
}
|
|
519
|
-
],
|
|
520
|
-
"attributes": [
|
|
439
|
+
"description": "Used to place content at the start of button text. Typically used for icons.",
|
|
440
|
+
"name": "start"
|
|
441
|
+
},
|
|
521
442
|
{
|
|
522
|
-
"
|
|
523
|
-
"
|
|
524
|
-
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
525
|
-
},
|
|
526
|
-
"default": "\"info\"",
|
|
527
|
-
"description": "The style variant of the banner.",
|
|
528
|
-
"fieldName": "variant"
|
|
443
|
+
"description": "Used to place content at the end of button text. Typically used for icons.",
|
|
444
|
+
"name": "end"
|
|
529
445
|
}
|
|
530
446
|
],
|
|
531
|
-
"superclass": {
|
|
532
|
-
"name": "LitElement",
|
|
533
|
-
"package": "lit"
|
|
534
|
-
},
|
|
535
|
-
"status": "new",
|
|
536
|
-
"category": "feedback",
|
|
537
|
-
"tagName": "nord-banner",
|
|
538
|
-
"customElement": true
|
|
539
|
-
}
|
|
540
|
-
],
|
|
541
|
-
"exports": [
|
|
542
|
-
{
|
|
543
|
-
"kind": "js",
|
|
544
|
-
"name": "default",
|
|
545
|
-
"declaration": {
|
|
546
|
-
"name": "Banner",
|
|
547
|
-
"module": "src/banner/Banner.ts"
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
{
|
|
551
|
-
"kind": "custom-element-definition",
|
|
552
|
-
"name": "nord-banner",
|
|
553
|
-
"declaration": {
|
|
554
|
-
"name": "Banner",
|
|
555
|
-
"module": "src/banner/Banner.ts"
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
],
|
|
559
|
-
"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"
|
|
560
|
-
},
|
|
561
|
-
{
|
|
562
|
-
"kind": "javascript-module",
|
|
563
|
-
"path": "src/calendar/Calendar.ts",
|
|
564
|
-
"declarations": [
|
|
565
|
-
{
|
|
566
|
-
"kind": "class",
|
|
567
|
-
"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.",
|
|
568
|
-
"name": "Calendar",
|
|
569
447
|
"members": [
|
|
570
448
|
{
|
|
571
449
|
"kind": "field",
|
|
572
|
-
"name": "
|
|
573
|
-
"type": {
|
|
574
|
-
"text": "string"
|
|
575
|
-
},
|
|
576
|
-
"privacy": "private",
|
|
577
|
-
"default": "\"dialog-header\""
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
"kind": "field",
|
|
581
|
-
"name": "monthSelectNode",
|
|
582
|
-
"type": {
|
|
583
|
-
"text": "HTMLElement"
|
|
584
|
-
},
|
|
585
|
-
"privacy": "private"
|
|
586
|
-
},
|
|
587
|
-
{
|
|
588
|
-
"kind": "field",
|
|
589
|
-
"name": "focusedDayNode",
|
|
590
|
-
"type": {
|
|
591
|
-
"text": "HTMLButtonElement"
|
|
592
|
-
},
|
|
450
|
+
"name": "buttonRef",
|
|
593
451
|
"privacy": "private"
|
|
594
452
|
},
|
|
595
453
|
{
|
|
596
454
|
"kind": "field",
|
|
597
|
-
"name": "
|
|
598
|
-
"privacy": "private",
|
|
599
|
-
"default": "new DirectionController(this)"
|
|
600
|
-
},
|
|
601
|
-
{
|
|
602
|
-
"kind": "field",
|
|
603
|
-
"name": "swipe",
|
|
455
|
+
"name": "events",
|
|
604
456
|
"privacy": "private",
|
|
605
|
-
"default": "new
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
"kind": "field",
|
|
609
|
-
"name": "shortcuts",
|
|
610
|
-
"privacy": "private"
|
|
457
|
+
"default": "new EventController(this)"
|
|
611
458
|
},
|
|
612
459
|
{
|
|
613
460
|
"kind": "field",
|
|
614
|
-
"name": "
|
|
461
|
+
"name": "lightDom",
|
|
615
462
|
"privacy": "private",
|
|
616
|
-
"default": "new
|
|
463
|
+
"default": "new LightDomController(this, {\n render: () => this.renderLightDom(),\n })"
|
|
617
464
|
},
|
|
618
465
|
{
|
|
619
466
|
"kind": "field",
|
|
620
|
-
"name": "
|
|
467
|
+
"name": "variant",
|
|
621
468
|
"type": {
|
|
622
|
-
"text": "
|
|
469
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
623
470
|
},
|
|
624
|
-
"
|
|
625
|
-
"description": "
|
|
471
|
+
"default": "\"default\"",
|
|
472
|
+
"description": "The style variant of the button.",
|
|
473
|
+
"attribute": "variant",
|
|
474
|
+
"reflects": true
|
|
626
475
|
},
|
|
627
476
|
{
|
|
628
477
|
"kind": "field",
|
|
629
|
-
"name": "
|
|
478
|
+
"name": "type",
|
|
630
479
|
"type": {
|
|
631
|
-
"text": "
|
|
480
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
632
481
|
},
|
|
633
|
-
"
|
|
482
|
+
"default": "\"submit\"",
|
|
483
|
+
"description": "The type of the button.",
|
|
484
|
+
"attribute": "type",
|
|
485
|
+
"reflects": true
|
|
634
486
|
},
|
|
635
487
|
{
|
|
636
488
|
"kind": "field",
|
|
637
|
-
"name": "
|
|
489
|
+
"name": "size",
|
|
638
490
|
"type": {
|
|
639
|
-
"text": "
|
|
491
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
640
492
|
},
|
|
641
|
-
"
|
|
493
|
+
"default": "\"m\"",
|
|
494
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
495
|
+
"attribute": "size",
|
|
496
|
+
"reflects": true
|
|
642
497
|
},
|
|
643
498
|
{
|
|
644
499
|
"kind": "field",
|
|
645
|
-
"name": "
|
|
500
|
+
"name": "accessibleExpanded",
|
|
646
501
|
"type": {
|
|
647
|
-
"text": "
|
|
502
|
+
"text": "\"true\" | \"false\" | undefined"
|
|
648
503
|
},
|
|
649
|
-
"privacy": "private"
|
|
504
|
+
"privacy": "private",
|
|
505
|
+
"attribute": "aria-expanded"
|
|
650
506
|
},
|
|
651
507
|
{
|
|
652
508
|
"kind": "field",
|
|
653
|
-
"name": "
|
|
509
|
+
"name": "accessibleHasPopup",
|
|
654
510
|
"type": {
|
|
655
|
-
"text": "
|
|
511
|
+
"text": "| \"false\"\n | \"true\"\n | \"menu\"\n | \"listbox\"\n | \"tree\"\n | \"grid\"\n | \"dialog\" | undefined"
|
|
656
512
|
},
|
|
657
|
-
"privacy": "private"
|
|
513
|
+
"privacy": "private",
|
|
514
|
+
"attribute": "aria-haspopup"
|
|
658
515
|
},
|
|
659
516
|
{
|
|
660
517
|
"kind": "field",
|
|
661
|
-
"name": "
|
|
518
|
+
"name": "href",
|
|
662
519
|
"type": {
|
|
663
|
-
"text": "string"
|
|
520
|
+
"text": "string | undefined"
|
|
664
521
|
},
|
|
665
|
-
"
|
|
666
|
-
"
|
|
667
|
-
"
|
|
522
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
523
|
+
"attribute": "href",
|
|
524
|
+
"reflects": true
|
|
668
525
|
},
|
|
669
526
|
{
|
|
670
527
|
"kind": "field",
|
|
671
|
-
"name": "
|
|
528
|
+
"name": "download",
|
|
672
529
|
"type": {
|
|
673
|
-
"text": "
|
|
530
|
+
"text": "boolean"
|
|
674
531
|
},
|
|
675
|
-
"
|
|
676
|
-
"
|
|
532
|
+
"default": "false",
|
|
533
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
534
|
+
"attribute": "download"
|
|
677
535
|
},
|
|
678
536
|
{
|
|
679
537
|
"kind": "field",
|
|
680
|
-
"name": "
|
|
538
|
+
"name": "target",
|
|
681
539
|
"type": {
|
|
682
|
-
"text": "
|
|
540
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
683
541
|
},
|
|
684
|
-
"default": "\"\"",
|
|
685
|
-
"description": "
|
|
686
|
-
"attribute": "
|
|
687
|
-
|
|
688
|
-
{
|
|
689
|
-
"kind": "field",
|
|
690
|
-
"name": "max",
|
|
691
|
-
"type": {
|
|
692
|
-
"text": "string"
|
|
693
|
-
},
|
|
694
|
-
"default": "\"\"",
|
|
695
|
-
"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.",
|
|
696
|
-
"attribute": "max"
|
|
542
|
+
"default": "\"_self\"",
|
|
543
|
+
"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.",
|
|
544
|
+
"attribute": "target",
|
|
545
|
+
"reflects": true
|
|
697
546
|
},
|
|
698
547
|
{
|
|
699
548
|
"kind": "field",
|
|
@@ -702,239 +551,226 @@
|
|
|
702
551
|
"text": "boolean"
|
|
703
552
|
},
|
|
704
553
|
"default": "false",
|
|
705
|
-
"description": "Controls whether the
|
|
554
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
706
555
|
"attribute": "expand",
|
|
707
556
|
"reflects": true
|
|
708
557
|
},
|
|
709
|
-
{
|
|
710
|
-
"kind": "field",
|
|
711
|
-
"name": "isDateDisabled",
|
|
712
|
-
"type": {
|
|
713
|
-
"text": "DateDisabledPredicate"
|
|
714
|
-
},
|
|
715
|
-
"default": "isDateDisabled",
|
|
716
|
-
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
717
|
-
},
|
|
718
|
-
{
|
|
719
|
-
"kind": "field",
|
|
720
|
-
"name": "activeFocus",
|
|
721
|
-
"type": {
|
|
722
|
-
"text": "boolean"
|
|
723
|
-
},
|
|
724
|
-
"privacy": "private",
|
|
725
|
-
"default": "false"
|
|
726
|
-
},
|
|
727
|
-
{
|
|
728
|
-
"kind": "field",
|
|
729
|
-
"name": "focusedDay",
|
|
730
|
-
"privacy": "private",
|
|
731
|
-
"default": "new Date()"
|
|
732
|
-
},
|
|
733
|
-
{
|
|
734
|
-
"kind": "method",
|
|
735
|
-
"name": "focus",
|
|
736
|
-
"parameters": [
|
|
737
|
-
{
|
|
738
|
-
"name": "options",
|
|
739
|
-
"optional": true,
|
|
740
|
-
"type": {
|
|
741
|
-
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
742
|
-
},
|
|
743
|
-
"description": "An object which controls aspects of the focusing process."
|
|
744
|
-
}
|
|
745
|
-
],
|
|
746
|
-
"description": "Programmatically move focus to the calendar."
|
|
747
|
-
},
|
|
748
|
-
{
|
|
749
|
-
"kind": "method",
|
|
750
|
-
"name": "handleValueChange",
|
|
751
|
-
"privacy": "protected"
|
|
752
|
-
},
|
|
753
|
-
{
|
|
754
|
-
"kind": "method",
|
|
755
|
-
"name": "handleFocusedDayChange",
|
|
756
|
-
"privacy": "protected"
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
"kind": "method",
|
|
760
|
-
"name": "handleLangChange",
|
|
761
|
-
"privacy": "private"
|
|
762
|
-
},
|
|
763
|
-
{
|
|
764
|
-
"kind": "field",
|
|
765
|
-
"name": "handleDaySelect",
|
|
766
|
-
"privacy": "private"
|
|
767
|
-
},
|
|
768
|
-
{
|
|
769
|
-
"kind": "method",
|
|
770
|
-
"name": "addDays",
|
|
771
|
-
"privacy": "private",
|
|
772
|
-
"parameters": [
|
|
773
|
-
{
|
|
774
|
-
"name": "days",
|
|
775
|
-
"type": {
|
|
776
|
-
"text": "number"
|
|
777
|
-
}
|
|
778
|
-
}
|
|
779
|
-
]
|
|
780
|
-
},
|
|
781
558
|
{
|
|
782
559
|
"kind": "method",
|
|
783
|
-
"name": "
|
|
560
|
+
"name": "renderLink",
|
|
784
561
|
"privacy": "private",
|
|
785
562
|
"parameters": [
|
|
786
563
|
{
|
|
787
|
-
"name": "
|
|
564
|
+
"name": "innards",
|
|
788
565
|
"type": {
|
|
789
|
-
"text": "
|
|
566
|
+
"text": "TemplateResult"
|
|
790
567
|
}
|
|
791
568
|
}
|
|
792
|
-
]
|
|
569
|
+
],
|
|
570
|
+
"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."
|
|
793
571
|
},
|
|
794
572
|
{
|
|
795
573
|
"kind": "method",
|
|
796
|
-
"name": "
|
|
574
|
+
"name": "renderButton",
|
|
797
575
|
"privacy": "private",
|
|
798
576
|
"parameters": [
|
|
799
577
|
{
|
|
800
|
-
"name": "
|
|
578
|
+
"name": "innards",
|
|
801
579
|
"type": {
|
|
802
|
-
"text": "
|
|
580
|
+
"text": "TemplateResult"
|
|
803
581
|
}
|
|
804
582
|
}
|
|
805
583
|
]
|
|
806
584
|
},
|
|
807
585
|
{
|
|
808
586
|
"kind": "method",
|
|
809
|
-
"name": "
|
|
587
|
+
"name": "renderLightDom",
|
|
810
588
|
"privacy": "private"
|
|
811
589
|
},
|
|
812
590
|
{
|
|
813
|
-
"kind": "
|
|
814
|
-
"name": "
|
|
591
|
+
"kind": "field",
|
|
592
|
+
"name": "handleOuterClick",
|
|
815
593
|
"privacy": "private"
|
|
816
594
|
},
|
|
817
595
|
{
|
|
818
596
|
"kind": "method",
|
|
819
|
-
"name": "
|
|
597
|
+
"name": "handleClick",
|
|
820
598
|
"privacy": "private",
|
|
821
599
|
"parameters": [
|
|
822
600
|
{
|
|
823
|
-
"name": "
|
|
601
|
+
"name": "e",
|
|
824
602
|
"type": {
|
|
825
|
-
"text": "
|
|
603
|
+
"text": "Event"
|
|
826
604
|
}
|
|
827
605
|
}
|
|
828
606
|
]
|
|
829
607
|
},
|
|
830
608
|
{
|
|
831
|
-
"kind": "
|
|
832
|
-
"name": "
|
|
833
|
-
"
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
609
|
+
"kind": "field",
|
|
610
|
+
"name": "disabled",
|
|
611
|
+
"type": {
|
|
612
|
+
"text": "boolean"
|
|
613
|
+
},
|
|
614
|
+
"default": "false",
|
|
615
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
616
|
+
"attribute": "disabled",
|
|
617
|
+
"reflects": true,
|
|
618
|
+
"inheritedFrom": {
|
|
619
|
+
"name": "InputMixin",
|
|
620
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
621
|
+
}
|
|
842
622
|
},
|
|
843
623
|
{
|
|
844
|
-
"kind": "
|
|
845
|
-
"name": "
|
|
846
|
-
"
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
624
|
+
"kind": "field",
|
|
625
|
+
"name": "name",
|
|
626
|
+
"type": {
|
|
627
|
+
"text": "string | undefined"
|
|
628
|
+
},
|
|
629
|
+
"description": "The name of the form component.",
|
|
630
|
+
"attribute": "name",
|
|
631
|
+
"inheritedFrom": {
|
|
632
|
+
"name": "InputMixin",
|
|
633
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
634
|
+
}
|
|
855
635
|
},
|
|
856
636
|
{
|
|
857
637
|
"kind": "field",
|
|
858
|
-
"name": "
|
|
859
|
-
"
|
|
638
|
+
"name": "value",
|
|
639
|
+
"type": {
|
|
640
|
+
"text": "string"
|
|
641
|
+
},
|
|
642
|
+
"default": "\"\"",
|
|
643
|
+
"description": "The value of the form component.",
|
|
644
|
+
"attribute": "value",
|
|
645
|
+
"inheritedFrom": {
|
|
646
|
+
"name": "InputMixin",
|
|
647
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
648
|
+
}
|
|
860
649
|
},
|
|
861
650
|
{
|
|
862
651
|
"kind": "field",
|
|
863
|
-
"name": "
|
|
864
|
-
"privacy": "
|
|
652
|
+
"name": "form",
|
|
653
|
+
"privacy": "protected",
|
|
654
|
+
"description": "Gets the form, if any, associated with the form element.",
|
|
655
|
+
"inheritedFrom": {
|
|
656
|
+
"name": "InputMixin",
|
|
657
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
658
|
+
}
|
|
865
659
|
},
|
|
866
660
|
{
|
|
867
661
|
"kind": "field",
|
|
868
|
-
"name": "
|
|
869
|
-
"privacy": "
|
|
662
|
+
"name": "focusableRef",
|
|
663
|
+
"privacy": "protected",
|
|
664
|
+
"inheritedFrom": {
|
|
665
|
+
"name": "FocusableMixin",
|
|
666
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
667
|
+
}
|
|
870
668
|
},
|
|
871
669
|
{
|
|
872
|
-
"kind": "
|
|
873
|
-
"name": "
|
|
874
|
-
"
|
|
670
|
+
"kind": "method",
|
|
671
|
+
"name": "focus",
|
|
672
|
+
"parameters": [
|
|
673
|
+
{
|
|
674
|
+
"name": "options",
|
|
675
|
+
"optional": true,
|
|
676
|
+
"type": {
|
|
677
|
+
"text": "FocusOptions"
|
|
678
|
+
},
|
|
679
|
+
"description": "An object which controls aspects of the focusing process."
|
|
680
|
+
}
|
|
681
|
+
],
|
|
682
|
+
"description": "Programmatically move focus to the component.",
|
|
683
|
+
"inheritedFrom": {
|
|
684
|
+
"name": "FocusableMixin",
|
|
685
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
686
|
+
}
|
|
875
687
|
},
|
|
876
688
|
{
|
|
877
|
-
"kind": "
|
|
878
|
-
"name": "
|
|
879
|
-
"
|
|
689
|
+
"kind": "method",
|
|
690
|
+
"name": "blur",
|
|
691
|
+
"description": "Programmatically remove focus from the component.",
|
|
692
|
+
"inheritedFrom": {
|
|
693
|
+
"name": "FocusableMixin",
|
|
694
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
695
|
+
}
|
|
880
696
|
},
|
|
881
697
|
{
|
|
882
|
-
"kind": "
|
|
883
|
-
"name": "
|
|
884
|
-
"
|
|
698
|
+
"kind": "method",
|
|
699
|
+
"name": "click",
|
|
700
|
+
"description": "Programmatically simulates a click on the component.",
|
|
701
|
+
"inheritedFrom": {
|
|
702
|
+
"name": "FocusableMixin",
|
|
703
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
704
|
+
}
|
|
885
705
|
}
|
|
886
706
|
],
|
|
887
|
-
"
|
|
707
|
+
"attributes": [
|
|
888
708
|
{
|
|
889
|
-
"name": "
|
|
709
|
+
"name": "variant",
|
|
890
710
|
"type": {
|
|
891
|
-
"text": "
|
|
711
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
892
712
|
},
|
|
893
|
-
"
|
|
713
|
+
"default": "\"default\"",
|
|
714
|
+
"description": "The style variant of the button.",
|
|
715
|
+
"fieldName": "variant"
|
|
894
716
|
},
|
|
895
717
|
{
|
|
718
|
+
"name": "type",
|
|
896
719
|
"type": {
|
|
897
|
-
"text": "
|
|
720
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
898
721
|
},
|
|
899
|
-
"
|
|
900
|
-
"
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
"attributes": [
|
|
722
|
+
"default": "\"submit\"",
|
|
723
|
+
"description": "The type of the button.",
|
|
724
|
+
"fieldName": "type"
|
|
725
|
+
},
|
|
904
726
|
{
|
|
905
|
-
"name": "
|
|
727
|
+
"name": "size",
|
|
906
728
|
"type": {
|
|
907
|
-
"text": "
|
|
729
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
908
730
|
},
|
|
909
|
-
"default": "\"\"",
|
|
910
|
-
"description": "The
|
|
911
|
-
"fieldName": "
|
|
912
|
-
},
|
|
731
|
+
"default": "\"m\"",
|
|
732
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
733
|
+
"fieldName": "size"
|
|
734
|
+
},
|
|
913
735
|
{
|
|
914
|
-
"name": "
|
|
736
|
+
"name": "aria-expanded",
|
|
915
737
|
"type": {
|
|
916
|
-
"text": "
|
|
738
|
+
"text": "\"true\" | \"false\" | undefined"
|
|
917
739
|
},
|
|
918
|
-
"
|
|
919
|
-
"fieldName": "firstDayOfWeek"
|
|
740
|
+
"fieldName": "accessibleExpanded"
|
|
920
741
|
},
|
|
921
742
|
{
|
|
922
|
-
"name": "
|
|
743
|
+
"name": "aria-haspopup",
|
|
923
744
|
"type": {
|
|
924
|
-
"text": "
|
|
745
|
+
"text": "| \"false\"\n | \"true\"\n | \"menu\"\n | \"listbox\"\n | \"tree\"\n | \"grid\"\n | \"dialog\" | undefined"
|
|
925
746
|
},
|
|
926
|
-
"
|
|
927
|
-
"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.",
|
|
928
|
-
"fieldName": "min"
|
|
747
|
+
"fieldName": "accessibleHasPopup"
|
|
929
748
|
},
|
|
930
749
|
{
|
|
931
|
-
"name": "
|
|
750
|
+
"name": "href",
|
|
932
751
|
"type": {
|
|
933
|
-
"text": "string"
|
|
752
|
+
"text": "string | undefined"
|
|
934
753
|
},
|
|
935
|
-
"
|
|
936
|
-
"
|
|
937
|
-
|
|
754
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
755
|
+
"fieldName": "href"
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
"name": "download",
|
|
759
|
+
"type": {
|
|
760
|
+
"text": "boolean"
|
|
761
|
+
},
|
|
762
|
+
"default": "false",
|
|
763
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
764
|
+
"fieldName": "download"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
"name": "target",
|
|
768
|
+
"type": {
|
|
769
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
770
|
+
},
|
|
771
|
+
"default": "\"_self\"",
|
|
772
|
+
"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.",
|
|
773
|
+
"fieldName": "target"
|
|
938
774
|
},
|
|
939
775
|
{
|
|
940
776
|
"name": "expand",
|
|
@@ -942,8 +778,56 @@
|
|
|
942
778
|
"text": "boolean"
|
|
943
779
|
},
|
|
944
780
|
"default": "false",
|
|
945
|
-
"description": "Controls whether the
|
|
781
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
946
782
|
"fieldName": "expand"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"name": "disabled",
|
|
786
|
+
"type": {
|
|
787
|
+
"text": "boolean"
|
|
788
|
+
},
|
|
789
|
+
"default": "false",
|
|
790
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
791
|
+
"fieldName": "disabled",
|
|
792
|
+
"inheritedFrom": {
|
|
793
|
+
"name": "InputMixin",
|
|
794
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
795
|
+
}
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"name": "name",
|
|
799
|
+
"type": {
|
|
800
|
+
"text": "string | undefined"
|
|
801
|
+
},
|
|
802
|
+
"description": "The name of the form component.",
|
|
803
|
+
"fieldName": "name",
|
|
804
|
+
"inheritedFrom": {
|
|
805
|
+
"name": "InputMixin",
|
|
806
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
807
|
+
}
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"name": "value",
|
|
811
|
+
"type": {
|
|
812
|
+
"text": "string"
|
|
813
|
+
},
|
|
814
|
+
"default": "\"\"",
|
|
815
|
+
"description": "The value of the form component.",
|
|
816
|
+
"fieldName": "value",
|
|
817
|
+
"inheritedFrom": {
|
|
818
|
+
"name": "InputMixin",
|
|
819
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
820
|
+
}
|
|
821
|
+
}
|
|
822
|
+
],
|
|
823
|
+
"mixins": [
|
|
824
|
+
{
|
|
825
|
+
"name": "InputMixin",
|
|
826
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
827
|
+
},
|
|
828
|
+
{
|
|
829
|
+
"name": "FocusableMixin",
|
|
830
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
947
831
|
}
|
|
948
832
|
],
|
|
949
833
|
"superclass": {
|
|
@@ -951,8 +835,8 @@
|
|
|
951
835
|
"package": "lit"
|
|
952
836
|
},
|
|
953
837
|
"status": "ready",
|
|
954
|
-
"category": "
|
|
955
|
-
"tagName": "nord-
|
|
838
|
+
"category": "action",
|
|
839
|
+
"tagName": "nord-button",
|
|
956
840
|
"customElement": true
|
|
957
841
|
}
|
|
958
842
|
],
|
|
@@ -961,120 +845,88 @@
|
|
|
961
845
|
"kind": "js",
|
|
962
846
|
"name": "default",
|
|
963
847
|
"declaration": {
|
|
964
|
-
"name": "
|
|
965
|
-
"module": "src/
|
|
848
|
+
"name": "Button",
|
|
849
|
+
"module": "src/button/Button.ts"
|
|
966
850
|
}
|
|
967
851
|
},
|
|
968
852
|
{
|
|
969
853
|
"kind": "custom-element-definition",
|
|
970
|
-
"name": "nord-
|
|
854
|
+
"name": "nord-button",
|
|
971
855
|
"declaration": {
|
|
972
|
-
"name": "
|
|
973
|
-
"module": "src/
|
|
856
|
+
"name": "Button",
|
|
857
|
+
"module": "src/button/Button.ts"
|
|
974
858
|
}
|
|
975
859
|
}
|
|
976
860
|
],
|
|
977
|
-
"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
|
|
861
|
+
"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"
|
|
978
862
|
},
|
|
979
863
|
{
|
|
980
864
|
"kind": "javascript-module",
|
|
981
|
-
"path": "src/
|
|
865
|
+
"path": "src/badge/Badge.ts",
|
|
982
866
|
"declarations": [
|
|
983
867
|
{
|
|
984
868
|
"kind": "class",
|
|
985
|
-
"description": "",
|
|
986
|
-
"name": "
|
|
987
|
-
"
|
|
988
|
-
"name": "NordEvent",
|
|
989
|
-
"module": "/src/common/events.js"
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
],
|
|
993
|
-
"exports": [
|
|
994
|
-
{
|
|
995
|
-
"kind": "js",
|
|
996
|
-
"name": "DateSelectEvent",
|
|
997
|
-
"declaration": {
|
|
998
|
-
"name": "DateSelectEvent",
|
|
999
|
-
"module": "src/calendar/DateSelectEvent.ts"
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
],
|
|
1003
|
-
"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"
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
"kind": "javascript-module",
|
|
1007
|
-
"path": "src/calendar/localization.ts",
|
|
1008
|
-
"declarations": [
|
|
1009
|
-
{
|
|
1010
|
-
"kind": "variable",
|
|
1011
|
-
"name": "calendarLocalization",
|
|
1012
|
-
"type": {
|
|
1013
|
-
"text": "object"
|
|
1014
|
-
},
|
|
1015
|
-
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n}"
|
|
1016
|
-
}
|
|
1017
|
-
],
|
|
1018
|
-
"exports": [
|
|
1019
|
-
{
|
|
1020
|
-
"kind": "js",
|
|
1021
|
-
"name": "default",
|
|
1022
|
-
"declaration": {
|
|
1023
|
-
"name": "calendarLocalization",
|
|
1024
|
-
"module": "src/calendar/localization.ts"
|
|
1025
|
-
}
|
|
1026
|
-
}
|
|
1027
|
-
],
|
|
1028
|
-
"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"
|
|
1029
|
-
},
|
|
1030
|
-
{
|
|
1031
|
-
"kind": "javascript-module",
|
|
1032
|
-
"path": "src/calendar/month-view.ts",
|
|
1033
|
-
"declarations": [
|
|
1034
|
-
{
|
|
1035
|
-
"kind": "function",
|
|
1036
|
-
"name": "dayView",
|
|
1037
|
-
"parameters": [
|
|
869
|
+
"description": "Badges are used to inform users of the status of an object or of an action that’s been taken. Commonly used in tabular data to indicate status.",
|
|
870
|
+
"name": "Badge",
|
|
871
|
+
"slots": [
|
|
1038
872
|
{
|
|
1039
|
-
"
|
|
873
|
+
"description": "The badge content.",
|
|
874
|
+
"name": ""
|
|
875
|
+
}
|
|
876
|
+
],
|
|
877
|
+
"members": [
|
|
878
|
+
{
|
|
879
|
+
"kind": "field",
|
|
880
|
+
"name": "type",
|
|
1040
881
|
"type": {
|
|
1041
|
-
"text": "
|
|
1042
|
-
}
|
|
882
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
|
|
883
|
+
},
|
|
884
|
+
"default": "\"info\"",
|
|
885
|
+
"description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
|
|
886
|
+
"attribute": "type",
|
|
887
|
+
"reflects": true
|
|
1043
888
|
}
|
|
1044
|
-
]
|
|
1045
|
-
|
|
1046
|
-
{
|
|
1047
|
-
"kind": "function",
|
|
1048
|
-
"name": "monthView",
|
|
1049
|
-
"parameters": [
|
|
889
|
+
],
|
|
890
|
+
"attributes": [
|
|
1050
891
|
{
|
|
1051
|
-
"name": "
|
|
892
|
+
"name": "type",
|
|
1052
893
|
"type": {
|
|
1053
|
-
"text": "
|
|
1054
|
-
}
|
|
894
|
+
"text": "\"warning\" | \"success\" | \"danger\" | \"highlight\" | \"info\" | undefined"
|
|
895
|
+
},
|
|
896
|
+
"default": "\"info\"",
|
|
897
|
+
"description": "The type of badge.\nDetermines the color of the chip shown on the badge.",
|
|
898
|
+
"fieldName": "type"
|
|
1055
899
|
}
|
|
1056
|
-
]
|
|
900
|
+
],
|
|
901
|
+
"superclass": {
|
|
902
|
+
"name": "LitElement",
|
|
903
|
+
"package": "lit"
|
|
904
|
+
},
|
|
905
|
+
"status": "ready",
|
|
906
|
+
"category": "text",
|
|
907
|
+
"tagName": "nord-badge",
|
|
908
|
+
"customElement": true
|
|
1057
909
|
}
|
|
1058
910
|
],
|
|
1059
911
|
"exports": [
|
|
1060
912
|
{
|
|
1061
913
|
"kind": "js",
|
|
1062
|
-
"name": "
|
|
914
|
+
"name": "default",
|
|
1063
915
|
"declaration": {
|
|
1064
|
-
"name": "
|
|
1065
|
-
"module": "src/
|
|
916
|
+
"name": "Badge",
|
|
917
|
+
"module": "src/badge/Badge.ts"
|
|
1066
918
|
}
|
|
1067
919
|
},
|
|
1068
920
|
{
|
|
1069
|
-
"kind": "
|
|
1070
|
-
"name": "
|
|
921
|
+
"kind": "custom-element-definition",
|
|
922
|
+
"name": "nord-badge",
|
|
1071
923
|
"declaration": {
|
|
1072
|
-
"name": "
|
|
1073
|
-
"module": "src/
|
|
924
|
+
"name": "Badge",
|
|
925
|
+
"module": "src/badge/Badge.ts"
|
|
1074
926
|
}
|
|
1075
927
|
}
|
|
1076
928
|
],
|
|
1077
|
-
"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
|
|
929
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to show a status update on a piece of information or action.\n- Use to mark something as a “draft” or “new”.\n- Use when you want to highlight something that has been added recently.\n- Use established color patterns so that users can clearly identify the importance level.\n- Always position badge so that it’s clear to understand what object it’s related to.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t make badges clickable. Instead use button component’s small variant.\n- Don’t use alternatives to existing badge variants.\n\n</div>\n\n---\n\n## Content guidelines\n\nBadge labels should use a single word to describe the status of an object. Only use two words if you need to describe a complex state:\n\n<div class=\"n-usage n-usage-do\">Complete</div>\n<div class=\"n-usage n-usage-dont\">Action completed</div>\n\nWhen writing badge labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Partially refunded</div>\n<div class=\"n-usage n-usage-dont\">Partially Refunded</div>\n\nAvoid unnecessary words and articles in badge labels, such as “is”, “the”, “an” or “a”:\n\n<div class=\"n-usage n-usage-do\">Pending</div>\n<div class=\"n-usage n-usage-dont\">Item is pending</div>\n\nAlways describe the status in the past tense:\n\n<div class=\"n-usage n-usage-do\">Refunded</div>\n<div class=\"n-usage n-usage-dont\">Refund</div>\n\n---\n\n## Variants\n\nThis section describes the different component variants, their purpose, and when to use each variant.\n\n| Name | Purpose |\n| ----------- | --------------------------------------------------------------------------------------------------------------------------------------- |\n| `info` | The default variant. Used to convey general information that isn’t critical. |\n| `success` | Used to convey success states. For example, you might want to show a badge that tells the user a payment was successful. |\n| `highlight` | Used to highlight specific items in the interface, like notifications. |\n| `danger` | Used to communicate problems that have to be resolved so that user can continue forward. Should always be used for highlighting errors. |\n| `warning` | Used to display information that needs a user’s attention attention and may require further steps. |\n"
|
|
1078
930
|
},
|
|
1079
931
|
{
|
|
1080
932
|
"kind": "javascript-module",
|
|
@@ -1166,497 +1018,381 @@
|
|
|
1166
1018
|
},
|
|
1167
1019
|
{
|
|
1168
1020
|
"kind": "javascript-module",
|
|
1169
|
-
"path": "src/
|
|
1021
|
+
"path": "src/calendar/Calendar.ts",
|
|
1170
1022
|
"declarations": [
|
|
1171
1023
|
{
|
|
1172
1024
|
"kind": "class",
|
|
1173
|
-
"description": "
|
|
1174
|
-
"name": "
|
|
1175
|
-
"
|
|
1025
|
+
"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.",
|
|
1026
|
+
"name": "Calendar",
|
|
1027
|
+
"members": [
|
|
1176
1028
|
{
|
|
1177
|
-
"
|
|
1178
|
-
"name": "
|
|
1029
|
+
"kind": "field",
|
|
1030
|
+
"name": "dialogLabelId",
|
|
1031
|
+
"type": {
|
|
1032
|
+
"text": "string"
|
|
1033
|
+
},
|
|
1034
|
+
"privacy": "private",
|
|
1035
|
+
"default": "\"dialog-header\""
|
|
1179
1036
|
},
|
|
1180
1037
|
{
|
|
1181
|
-
"
|
|
1182
|
-
"name": "
|
|
1038
|
+
"kind": "field",
|
|
1039
|
+
"name": "monthSelectNode",
|
|
1040
|
+
"type": {
|
|
1041
|
+
"text": "HTMLElement"
|
|
1042
|
+
},
|
|
1043
|
+
"privacy": "private"
|
|
1183
1044
|
},
|
|
1184
|
-
{
|
|
1185
|
-
"description": "Optional slot that holds error text for the input.",
|
|
1186
|
-
"name": "error"
|
|
1187
|
-
}
|
|
1188
|
-
],
|
|
1189
|
-
"members": [
|
|
1190
1045
|
{
|
|
1191
1046
|
"kind": "field",
|
|
1192
|
-
"name": "
|
|
1193
|
-
"
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
}
|
|
1047
|
+
"name": "focusedDayNode",
|
|
1048
|
+
"type": {
|
|
1049
|
+
"text": "HTMLButtonElement"
|
|
1050
|
+
},
|
|
1051
|
+
"privacy": "private"
|
|
1198
1052
|
},
|
|
1199
1053
|
{
|
|
1200
1054
|
"kind": "field",
|
|
1201
|
-
"name": "
|
|
1202
|
-
"
|
|
1203
|
-
|
|
1204
|
-
},
|
|
1205
|
-
"default": "false",
|
|
1206
|
-
"description": "Controls whether the checkbox is checked or not.",
|
|
1207
|
-
"attribute": "checked"
|
|
1055
|
+
"name": "direction",
|
|
1056
|
+
"privacy": "private",
|
|
1057
|
+
"default": "new DirectionController(this)"
|
|
1208
1058
|
},
|
|
1209
1059
|
{
|
|
1210
|
-
"kind": "
|
|
1211
|
-
"name": "
|
|
1212
|
-
"privacy": "
|
|
1213
|
-
"
|
|
1214
|
-
{
|
|
1215
|
-
"name": "e",
|
|
1216
|
-
"type": {
|
|
1217
|
-
"text": "Event"
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
],
|
|
1221
|
-
"return": {
|
|
1222
|
-
"type": {
|
|
1223
|
-
"text": "void"
|
|
1224
|
-
}
|
|
1225
|
-
},
|
|
1226
|
-
"inheritedFrom": {
|
|
1227
|
-
"name": "FormAssociatedMixin",
|
|
1228
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1229
|
-
}
|
|
1060
|
+
"kind": "field",
|
|
1061
|
+
"name": "swipe",
|
|
1062
|
+
"privacy": "private",
|
|
1063
|
+
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
1230
1064
|
},
|
|
1231
1065
|
{
|
|
1232
1066
|
"kind": "field",
|
|
1233
|
-
"name": "
|
|
1234
|
-
"privacy": "
|
|
1235
|
-
"default": "new SlotController(this, \"label\")",
|
|
1236
|
-
"inheritedFrom": {
|
|
1237
|
-
"name": "FormAssociatedMixin",
|
|
1238
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1239
|
-
}
|
|
1067
|
+
"name": "shortcuts",
|
|
1068
|
+
"privacy": "private"
|
|
1240
1069
|
},
|
|
1241
1070
|
{
|
|
1242
1071
|
"kind": "field",
|
|
1243
|
-
"name": "
|
|
1244
|
-
"privacy": "
|
|
1245
|
-
"default": "new
|
|
1246
|
-
"inheritedFrom": {
|
|
1247
|
-
"name": "FormAssociatedMixin",
|
|
1248
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1249
|
-
}
|
|
1072
|
+
"name": "localize",
|
|
1073
|
+
"privacy": "private",
|
|
1074
|
+
"default": "new LocalizeController<\"nord-calendar\">(this, {\n onLangChange: () => this.handleLangChange(),\n })"
|
|
1250
1075
|
},
|
|
1251
1076
|
{
|
|
1252
1077
|
"kind": "field",
|
|
1253
|
-
"name": "
|
|
1254
|
-
"
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
}
|
|
1078
|
+
"name": "dateFormatShort",
|
|
1079
|
+
"type": {
|
|
1080
|
+
"text": "Intl.DateTimeFormat"
|
|
1081
|
+
},
|
|
1082
|
+
"privacy": "private",
|
|
1083
|
+
"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"
|
|
1260
1084
|
},
|
|
1261
1085
|
{
|
|
1262
1086
|
"kind": "field",
|
|
1263
|
-
"name": "
|
|
1264
|
-
"
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1269
|
-
}
|
|
1087
|
+
"name": "monthNames",
|
|
1088
|
+
"type": {
|
|
1089
|
+
"text": "string[]"
|
|
1090
|
+
},
|
|
1091
|
+
"privacy": "private"
|
|
1270
1092
|
},
|
|
1271
1093
|
{
|
|
1272
1094
|
"kind": "field",
|
|
1273
|
-
"name": "
|
|
1095
|
+
"name": "monthNamesShort",
|
|
1274
1096
|
"type": {
|
|
1275
|
-
"text": "string"
|
|
1097
|
+
"text": "string[]"
|
|
1276
1098
|
},
|
|
1277
|
-
"privacy": "
|
|
1278
|
-
"default": "\"input\"",
|
|
1279
|
-
"inheritedFrom": {
|
|
1280
|
-
"name": "FormAssociatedMixin",
|
|
1281
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1282
|
-
}
|
|
1099
|
+
"privacy": "private"
|
|
1283
1100
|
},
|
|
1284
1101
|
{
|
|
1285
1102
|
"kind": "field",
|
|
1286
|
-
"name": "
|
|
1103
|
+
"name": "dayNames",
|
|
1287
1104
|
"type": {
|
|
1288
|
-
"text": "string"
|
|
1105
|
+
"text": "string[]"
|
|
1289
1106
|
},
|
|
1290
|
-
"privacy": "
|
|
1291
|
-
"default": "\"error\"",
|
|
1292
|
-
"inheritedFrom": {
|
|
1293
|
-
"name": "FormAssociatedMixin",
|
|
1294
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1295
|
-
}
|
|
1107
|
+
"privacy": "private"
|
|
1296
1108
|
},
|
|
1297
1109
|
{
|
|
1298
1110
|
"kind": "field",
|
|
1299
|
-
"name": "
|
|
1111
|
+
"name": "dayNamesShort",
|
|
1300
1112
|
"type": {
|
|
1301
|
-
"text": "string"
|
|
1113
|
+
"text": "string[]"
|
|
1302
1114
|
},
|
|
1303
|
-
"privacy": "
|
|
1304
|
-
"default": "\"hint\"",
|
|
1305
|
-
"inheritedFrom": {
|
|
1306
|
-
"name": "FormAssociatedMixin",
|
|
1307
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1308
|
-
}
|
|
1115
|
+
"privacy": "private"
|
|
1309
1116
|
},
|
|
1310
1117
|
{
|
|
1311
1118
|
"kind": "field",
|
|
1312
|
-
"name": "
|
|
1119
|
+
"name": "value",
|
|
1313
1120
|
"type": {
|
|
1314
1121
|
"text": "string"
|
|
1315
1122
|
},
|
|
1316
1123
|
"default": "\"\"",
|
|
1317
|
-
"description": "
|
|
1318
|
-
"attribute": "
|
|
1319
|
-
"inheritedFrom": {
|
|
1320
|
-
"name": "FormAssociatedMixin",
|
|
1321
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1322
|
-
}
|
|
1124
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
1125
|
+
"attribute": "value"
|
|
1323
1126
|
},
|
|
1324
1127
|
{
|
|
1325
1128
|
"kind": "field",
|
|
1326
|
-
"name": "
|
|
1129
|
+
"name": "firstDayOfWeek",
|
|
1327
1130
|
"type": {
|
|
1328
|
-
"text": "
|
|
1131
|
+
"text": "DaysOfWeek"
|
|
1329
1132
|
},
|
|
1330
|
-
"description": "
|
|
1331
|
-
"attribute": "
|
|
1332
|
-
"inheritedFrom": {
|
|
1333
|
-
"name": "FormAssociatedMixin",
|
|
1334
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1335
|
-
}
|
|
1133
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
1134
|
+
"attribute": "firstDayOfWeek"
|
|
1336
1135
|
},
|
|
1337
1136
|
{
|
|
1338
1137
|
"kind": "field",
|
|
1339
|
-
"name": "
|
|
1138
|
+
"name": "min",
|
|
1340
1139
|
"type": {
|
|
1341
|
-
"text": "
|
|
1140
|
+
"text": "string"
|
|
1342
1141
|
},
|
|
1343
|
-
"default": "
|
|
1344
|
-
"description": "
|
|
1345
|
-
"attribute": "
|
|
1346
|
-
"inheritedFrom": {
|
|
1347
|
-
"name": "FormAssociatedMixin",
|
|
1348
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1349
|
-
}
|
|
1142
|
+
"default": "\"\"",
|
|
1143
|
+
"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.",
|
|
1144
|
+
"attribute": "min"
|
|
1350
1145
|
},
|
|
1351
1146
|
{
|
|
1352
1147
|
"kind": "field",
|
|
1353
|
-
"name": "
|
|
1148
|
+
"name": "max",
|
|
1354
1149
|
"type": {
|
|
1355
|
-
"text": "string
|
|
1150
|
+
"text": "string"
|
|
1356
1151
|
},
|
|
1357
|
-
"
|
|
1358
|
-
"
|
|
1359
|
-
"
|
|
1360
|
-
"name": "FormAssociatedMixin",
|
|
1361
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1362
|
-
}
|
|
1152
|
+
"default": "\"\"",
|
|
1153
|
+
"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.",
|
|
1154
|
+
"attribute": "max"
|
|
1363
1155
|
},
|
|
1364
1156
|
{
|
|
1365
1157
|
"kind": "field",
|
|
1366
|
-
"name": "
|
|
1158
|
+
"name": "expand",
|
|
1367
1159
|
"type": {
|
|
1368
|
-
"text": "
|
|
1160
|
+
"text": "boolean"
|
|
1369
1161
|
},
|
|
1370
|
-
"
|
|
1371
|
-
"
|
|
1372
|
-
"
|
|
1373
|
-
|
|
1374
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1375
|
-
}
|
|
1162
|
+
"default": "false",
|
|
1163
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
1164
|
+
"attribute": "expand",
|
|
1165
|
+
"reflects": true
|
|
1376
1166
|
},
|
|
1377
1167
|
{
|
|
1378
1168
|
"kind": "field",
|
|
1379
|
-
"name": "
|
|
1169
|
+
"name": "isDateDisabled",
|
|
1380
1170
|
"type": {
|
|
1381
|
-
"text": "
|
|
1171
|
+
"text": "DateDisabledPredicate"
|
|
1382
1172
|
},
|
|
1383
|
-
"default": "
|
|
1384
|
-
"description": "
|
|
1385
|
-
"attribute": "required",
|
|
1386
|
-
"inheritedFrom": {
|
|
1387
|
-
"name": "FormAssociatedMixin",
|
|
1388
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1389
|
-
}
|
|
1173
|
+
"default": "isDateDisabled",
|
|
1174
|
+
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
1390
1175
|
},
|
|
1391
1176
|
{
|
|
1392
1177
|
"kind": "field",
|
|
1393
|
-
"name": "
|
|
1178
|
+
"name": "activeFocus",
|
|
1394
1179
|
"type": {
|
|
1395
1180
|
"text": "boolean"
|
|
1396
1181
|
},
|
|
1397
|
-
"
|
|
1398
|
-
"
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
"
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1182
|
+
"privacy": "private",
|
|
1183
|
+
"default": "false"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"kind": "field",
|
|
1187
|
+
"name": "focusedDay",
|
|
1188
|
+
"privacy": "private",
|
|
1189
|
+
"default": "new Date()"
|
|
1405
1190
|
},
|
|
1406
1191
|
{
|
|
1407
1192
|
"kind": "method",
|
|
1408
|
-
"name": "
|
|
1409
|
-
"privacy": "protected",
|
|
1193
|
+
"name": "focus",
|
|
1410
1194
|
"parameters": [
|
|
1411
1195
|
{
|
|
1412
|
-
"name": "
|
|
1196
|
+
"name": "options",
|
|
1197
|
+
"optional": true,
|
|
1413
1198
|
"type": {
|
|
1414
|
-
"text": "
|
|
1415
|
-
}
|
|
1199
|
+
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
1200
|
+
},
|
|
1201
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1416
1202
|
}
|
|
1417
1203
|
],
|
|
1418
|
-
"
|
|
1419
|
-
"name": "FormAssociatedMixin",
|
|
1420
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1421
|
-
}
|
|
1204
|
+
"description": "Programmatically move focus to the calendar."
|
|
1422
1205
|
},
|
|
1423
1206
|
{
|
|
1424
1207
|
"kind": "method",
|
|
1425
|
-
"name": "
|
|
1426
|
-
"privacy": "protected"
|
|
1427
|
-
"inheritedFrom": {
|
|
1428
|
-
"name": "FormAssociatedMixin",
|
|
1429
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1430
|
-
}
|
|
1208
|
+
"name": "handleValueChange",
|
|
1209
|
+
"privacy": "protected"
|
|
1431
1210
|
},
|
|
1432
1211
|
{
|
|
1433
1212
|
"kind": "method",
|
|
1434
|
-
"name": "
|
|
1435
|
-
"privacy": "protected"
|
|
1436
|
-
"inheritedFrom": {
|
|
1437
|
-
"name": "FormAssociatedMixin",
|
|
1438
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1439
|
-
}
|
|
1213
|
+
"name": "handleFocusedDayChange",
|
|
1214
|
+
"privacy": "protected"
|
|
1440
1215
|
},
|
|
1441
1216
|
{
|
|
1442
1217
|
"kind": "method",
|
|
1443
|
-
"name": "
|
|
1444
|
-
"privacy": "
|
|
1445
|
-
"inheritedFrom": {
|
|
1446
|
-
"name": "FormAssociatedMixin",
|
|
1447
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1448
|
-
}
|
|
1449
|
-
},
|
|
1450
|
-
{
|
|
1451
|
-
"kind": "method",
|
|
1452
|
-
"name": "getInvalid",
|
|
1453
|
-
"privacy": "protected",
|
|
1454
|
-
"inheritedFrom": {
|
|
1455
|
-
"name": "FormAssociatedMixin",
|
|
1456
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1457
|
-
}
|
|
1218
|
+
"name": "handleLangChange",
|
|
1219
|
+
"privacy": "private"
|
|
1458
1220
|
},
|
|
1459
1221
|
{
|
|
1460
1222
|
"kind": "field",
|
|
1461
|
-
"name": "
|
|
1462
|
-
"privacy": "
|
|
1463
|
-
"inheritedFrom": {
|
|
1464
|
-
"name": "FormAssociatedMixin",
|
|
1465
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1466
|
-
}
|
|
1223
|
+
"name": "handleDaySelect",
|
|
1224
|
+
"privacy": "private"
|
|
1467
1225
|
},
|
|
1468
1226
|
{
|
|
1469
|
-
"kind": "
|
|
1470
|
-
"name": "
|
|
1471
|
-
"privacy": "
|
|
1472
|
-
"
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1227
|
+
"kind": "method",
|
|
1228
|
+
"name": "addDays",
|
|
1229
|
+
"privacy": "private",
|
|
1230
|
+
"parameters": [
|
|
1231
|
+
{
|
|
1232
|
+
"name": "days",
|
|
1233
|
+
"type": {
|
|
1234
|
+
"text": "number"
|
|
1235
|
+
}
|
|
1236
|
+
}
|
|
1237
|
+
]
|
|
1476
1238
|
},
|
|
1477
1239
|
{
|
|
1478
|
-
"kind": "
|
|
1479
|
-
"name": "
|
|
1480
|
-
"
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1490
|
-
}
|
|
1240
|
+
"kind": "method",
|
|
1241
|
+
"name": "addMonths",
|
|
1242
|
+
"privacy": "private",
|
|
1243
|
+
"parameters": [
|
|
1244
|
+
{
|
|
1245
|
+
"name": "months",
|
|
1246
|
+
"type": {
|
|
1247
|
+
"text": "number"
|
|
1248
|
+
}
|
|
1249
|
+
}
|
|
1250
|
+
]
|
|
1491
1251
|
},
|
|
1492
1252
|
{
|
|
1493
|
-
"kind": "
|
|
1494
|
-
"name": "
|
|
1495
|
-
"
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1253
|
+
"kind": "method",
|
|
1254
|
+
"name": "addYears",
|
|
1255
|
+
"privacy": "private",
|
|
1256
|
+
"parameters": [
|
|
1257
|
+
{
|
|
1258
|
+
"name": "years",
|
|
1259
|
+
"type": {
|
|
1260
|
+
"text": "number"
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
]
|
|
1504
1264
|
},
|
|
1505
1265
|
{
|
|
1506
|
-
"kind": "
|
|
1507
|
-
"name": "
|
|
1508
|
-
"
|
|
1509
|
-
"text": "string"
|
|
1510
|
-
},
|
|
1511
|
-
"default": "\"\"",
|
|
1512
|
-
"description": "The value of the form component.",
|
|
1513
|
-
"attribute": "value",
|
|
1514
|
-
"inheritedFrom": {
|
|
1515
|
-
"name": "InputMixin",
|
|
1516
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1517
|
-
}
|
|
1266
|
+
"kind": "method",
|
|
1267
|
+
"name": "startOfWeek",
|
|
1268
|
+
"privacy": "private"
|
|
1518
1269
|
},
|
|
1519
1270
|
{
|
|
1520
|
-
"kind": "
|
|
1521
|
-
"name": "
|
|
1522
|
-
"privacy": "
|
|
1523
|
-
"description": "Gets the form, if any, associated with the form element.",
|
|
1524
|
-
"inheritedFrom": {
|
|
1525
|
-
"name": "InputMixin",
|
|
1526
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1527
|
-
}
|
|
1271
|
+
"kind": "method",
|
|
1272
|
+
"name": "endOfWeek",
|
|
1273
|
+
"privacy": "private"
|
|
1528
1274
|
},
|
|
1529
1275
|
{
|
|
1530
|
-
"kind": "
|
|
1531
|
-
"name": "
|
|
1532
|
-
"privacy": "
|
|
1533
|
-
"
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1276
|
+
"kind": "method",
|
|
1277
|
+
"name": "setMonth",
|
|
1278
|
+
"privacy": "private",
|
|
1279
|
+
"parameters": [
|
|
1280
|
+
{
|
|
1281
|
+
"name": "month",
|
|
1282
|
+
"type": {
|
|
1283
|
+
"text": "number"
|
|
1284
|
+
}
|
|
1285
|
+
}
|
|
1286
|
+
]
|
|
1537
1287
|
},
|
|
1538
1288
|
{
|
|
1539
1289
|
"kind": "method",
|
|
1540
|
-
"name": "
|
|
1290
|
+
"name": "setYear",
|
|
1291
|
+
"privacy": "private",
|
|
1541
1292
|
"parameters": [
|
|
1542
1293
|
{
|
|
1543
|
-
"name": "
|
|
1544
|
-
"optional": true,
|
|
1294
|
+
"name": "year",
|
|
1545
1295
|
"type": {
|
|
1546
|
-
"text": "
|
|
1547
|
-
}
|
|
1548
|
-
"description": "An object which controls aspects of the focusing process."
|
|
1296
|
+
"text": "number"
|
|
1297
|
+
}
|
|
1549
1298
|
}
|
|
1550
|
-
]
|
|
1551
|
-
"description": "Programmatically move focus to the component.",
|
|
1552
|
-
"inheritedFrom": {
|
|
1553
|
-
"name": "FocusableMixin",
|
|
1554
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1555
|
-
}
|
|
1299
|
+
]
|
|
1556
1300
|
},
|
|
1557
1301
|
{
|
|
1558
1302
|
"kind": "method",
|
|
1559
|
-
"name": "
|
|
1560
|
-
"
|
|
1561
|
-
"
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1303
|
+
"name": "setFocusedDay",
|
|
1304
|
+
"privacy": "private",
|
|
1305
|
+
"parameters": [
|
|
1306
|
+
{
|
|
1307
|
+
"name": "day",
|
|
1308
|
+
"type": {
|
|
1309
|
+
"text": "Date"
|
|
1310
|
+
}
|
|
1311
|
+
}
|
|
1312
|
+
]
|
|
1565
1313
|
},
|
|
1566
1314
|
{
|
|
1567
|
-
"kind": "
|
|
1568
|
-
"name": "
|
|
1569
|
-
"
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1315
|
+
"kind": "field",
|
|
1316
|
+
"name": "handleMonthSelect",
|
|
1317
|
+
"privacy": "private"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"kind": "field",
|
|
1321
|
+
"name": "handleYearSelect",
|
|
1322
|
+
"privacy": "private"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"kind": "field",
|
|
1326
|
+
"name": "handleNextMonthClick",
|
|
1327
|
+
"privacy": "private"
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
"kind": "field",
|
|
1331
|
+
"name": "handlePreviousMonthClick",
|
|
1332
|
+
"privacy": "private"
|
|
1333
|
+
},
|
|
1334
|
+
{
|
|
1335
|
+
"kind": "field",
|
|
1336
|
+
"name": "enableActiveFocus",
|
|
1337
|
+
"privacy": "private"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"kind": "field",
|
|
1341
|
+
"name": "disableActiveFocus",
|
|
1342
|
+
"privacy": "private"
|
|
1574
1343
|
}
|
|
1575
1344
|
],
|
|
1576
|
-
"
|
|
1345
|
+
"events": [
|
|
1577
1346
|
{
|
|
1578
|
-
"name": "
|
|
1347
|
+
"name": "nord-focus-date",
|
|
1579
1348
|
"type": {
|
|
1580
|
-
"text": "
|
|
1349
|
+
"text": "DateSelectEvent"
|
|
1581
1350
|
},
|
|
1582
|
-
"
|
|
1583
|
-
"description": "Controls whether the checkbox is checked or not.",
|
|
1584
|
-
"fieldName": "checked"
|
|
1351
|
+
"description": "Dispatched when the calendar's focused date changes."
|
|
1585
1352
|
},
|
|
1586
1353
|
{
|
|
1587
|
-
"
|
|
1354
|
+
"type": {
|
|
1355
|
+
"text": "DateSelectEvent"
|
|
1356
|
+
},
|
|
1357
|
+
"description": "Dispatched when a date is selected and the value changes.",
|
|
1358
|
+
"name": "change"
|
|
1359
|
+
}
|
|
1360
|
+
],
|
|
1361
|
+
"attributes": [
|
|
1362
|
+
{
|
|
1363
|
+
"name": "value",
|
|
1588
1364
|
"type": {
|
|
1589
1365
|
"text": "string"
|
|
1590
1366
|
},
|
|
1591
1367
|
"default": "\"\"",
|
|
1592
|
-
"description": "
|
|
1593
|
-
"fieldName": "
|
|
1594
|
-
"inheritedFrom": {
|
|
1595
|
-
"name": "FormAssociatedMixin",
|
|
1596
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1597
|
-
}
|
|
1368
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
1369
|
+
"fieldName": "value"
|
|
1598
1370
|
},
|
|
1599
1371
|
{
|
|
1600
|
-
"name": "
|
|
1372
|
+
"name": "firstDayOfWeek",
|
|
1601
1373
|
"type": {
|
|
1602
|
-
"text": "
|
|
1374
|
+
"text": "DaysOfWeek"
|
|
1603
1375
|
},
|
|
1604
|
-
"description": "
|
|
1605
|
-
"fieldName": "
|
|
1606
|
-
"inheritedFrom": {
|
|
1607
|
-
"name": "FormAssociatedMixin",
|
|
1608
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1609
|
-
}
|
|
1376
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
1377
|
+
"fieldName": "firstDayOfWeek"
|
|
1610
1378
|
},
|
|
1611
1379
|
{
|
|
1612
|
-
"name": "
|
|
1380
|
+
"name": "min",
|
|
1613
1381
|
"type": {
|
|
1614
|
-
"text": "
|
|
1382
|
+
"text": "string"
|
|
1615
1383
|
},
|
|
1616
|
-
"default": "
|
|
1617
|
-
"description": "
|
|
1618
|
-
"fieldName": "
|
|
1619
|
-
"inheritedFrom": {
|
|
1620
|
-
"name": "FormAssociatedMixin",
|
|
1621
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1622
|
-
}
|
|
1384
|
+
"default": "\"\"",
|
|
1385
|
+
"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.",
|
|
1386
|
+
"fieldName": "min"
|
|
1623
1387
|
},
|
|
1624
1388
|
{
|
|
1625
|
-
"name": "
|
|
1389
|
+
"name": "max",
|
|
1626
1390
|
"type": {
|
|
1627
|
-
"text": "string
|
|
1628
|
-
},
|
|
1629
|
-
"description": "Placeholder text to display within the input.",
|
|
1630
|
-
"fieldName": "placeholder",
|
|
1631
|
-
"inheritedFrom": {
|
|
1632
|
-
"name": "FormAssociatedMixin",
|
|
1633
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1634
|
-
}
|
|
1635
|
-
},
|
|
1636
|
-
{
|
|
1637
|
-
"name": "error",
|
|
1638
|
-
"type": {
|
|
1639
|
-
"text": "string | undefined"
|
|
1640
|
-
},
|
|
1641
|
-
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
1642
|
-
"fieldName": "error",
|
|
1643
|
-
"inheritedFrom": {
|
|
1644
|
-
"name": "FormAssociatedMixin",
|
|
1645
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1646
|
-
}
|
|
1647
|
-
},
|
|
1648
|
-
{
|
|
1649
|
-
"name": "required",
|
|
1650
|
-
"type": {
|
|
1651
|
-
"text": "boolean"
|
|
1391
|
+
"text": "string"
|
|
1652
1392
|
},
|
|
1653
|
-
"default": "
|
|
1654
|
-
"description": "
|
|
1655
|
-
"fieldName": "
|
|
1656
|
-
"inheritedFrom": {
|
|
1657
|
-
"name": "FormAssociatedMixin",
|
|
1658
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1659
|
-
}
|
|
1393
|
+
"default": "\"\"",
|
|
1394
|
+
"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.",
|
|
1395
|
+
"fieldName": "max"
|
|
1660
1396
|
},
|
|
1661
1397
|
{
|
|
1662
1398
|
"name": "expand",
|
|
@@ -1664,64 +1400,8 @@
|
|
|
1664
1400
|
"text": "boolean"
|
|
1665
1401
|
},
|
|
1666
1402
|
"default": "false",
|
|
1667
|
-
"description": "Controls whether the
|
|
1668
|
-
"fieldName": "expand"
|
|
1669
|
-
"inheritedFrom": {
|
|
1670
|
-
"name": "FormAssociatedMixin",
|
|
1671
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1672
|
-
}
|
|
1673
|
-
},
|
|
1674
|
-
{
|
|
1675
|
-
"name": "disabled",
|
|
1676
|
-
"type": {
|
|
1677
|
-
"text": "boolean"
|
|
1678
|
-
},
|
|
1679
|
-
"default": "false",
|
|
1680
|
-
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1681
|
-
"fieldName": "disabled",
|
|
1682
|
-
"inheritedFrom": {
|
|
1683
|
-
"name": "InputMixin",
|
|
1684
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1685
|
-
}
|
|
1686
|
-
},
|
|
1687
|
-
{
|
|
1688
|
-
"name": "name",
|
|
1689
|
-
"type": {
|
|
1690
|
-
"text": "string | undefined"
|
|
1691
|
-
},
|
|
1692
|
-
"description": "The name of the form component.",
|
|
1693
|
-
"fieldName": "name",
|
|
1694
|
-
"inheritedFrom": {
|
|
1695
|
-
"name": "InputMixin",
|
|
1696
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1697
|
-
}
|
|
1698
|
-
},
|
|
1699
|
-
{
|
|
1700
|
-
"name": "value",
|
|
1701
|
-
"type": {
|
|
1702
|
-
"text": "string"
|
|
1703
|
-
},
|
|
1704
|
-
"default": "\"\"",
|
|
1705
|
-
"description": "The value of the form component.",
|
|
1706
|
-
"fieldName": "value",
|
|
1707
|
-
"inheritedFrom": {
|
|
1708
|
-
"name": "InputMixin",
|
|
1709
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
1710
|
-
}
|
|
1711
|
-
}
|
|
1712
|
-
],
|
|
1713
|
-
"mixins": [
|
|
1714
|
-
{
|
|
1715
|
-
"name": "FormAssociatedMixin",
|
|
1716
|
-
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
1717
|
-
},
|
|
1718
|
-
{
|
|
1719
|
-
"name": "InputMixin",
|
|
1720
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
1721
|
-
},
|
|
1722
|
-
{
|
|
1723
|
-
"name": "FocusableMixin",
|
|
1724
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
1403
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
1404
|
+
"fieldName": "expand"
|
|
1725
1405
|
}
|
|
1726
1406
|
],
|
|
1727
1407
|
"superclass": {
|
|
@@ -1729,30 +1409,106 @@
|
|
|
1729
1409
|
"package": "lit"
|
|
1730
1410
|
},
|
|
1731
1411
|
"status": "ready",
|
|
1732
|
-
"category": "
|
|
1733
|
-
"tagName": "nord-
|
|
1734
|
-
"customElement": true
|
|
1735
|
-
|
|
1412
|
+
"category": "list",
|
|
1413
|
+
"tagName": "nord-calendar",
|
|
1414
|
+
"customElement": true
|
|
1415
|
+
}
|
|
1416
|
+
],
|
|
1417
|
+
"exports": [
|
|
1418
|
+
{
|
|
1419
|
+
"kind": "js",
|
|
1420
|
+
"name": "default",
|
|
1421
|
+
"declaration": {
|
|
1422
|
+
"name": "Calendar",
|
|
1423
|
+
"module": "src/calendar/Calendar.ts"
|
|
1424
|
+
}
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
"kind": "custom-element-definition",
|
|
1428
|
+
"name": "nord-calendar",
|
|
1429
|
+
"declaration": {
|
|
1430
|
+
"name": "Calendar",
|
|
1431
|
+
"module": "src/calendar/Calendar.ts"
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1434
|
+
],
|
|
1435
|
+
"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"
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"kind": "javascript-module",
|
|
1439
|
+
"path": "src/calendar/DateSelectEvent.ts",
|
|
1440
|
+
"declarations": [
|
|
1441
|
+
{
|
|
1442
|
+
"kind": "class",
|
|
1443
|
+
"description": "",
|
|
1444
|
+
"name": "DateSelectEvent",
|
|
1445
|
+
"superclass": {
|
|
1446
|
+
"name": "NordEvent",
|
|
1447
|
+
"module": "/src/common/events.js"
|
|
1448
|
+
}
|
|
1449
|
+
}
|
|
1450
|
+
],
|
|
1451
|
+
"exports": [
|
|
1452
|
+
{
|
|
1453
|
+
"kind": "js",
|
|
1454
|
+
"name": "DateSelectEvent",
|
|
1455
|
+
"declaration": {
|
|
1456
|
+
"name": "DateSelectEvent",
|
|
1457
|
+
"module": "src/calendar/DateSelectEvent.ts"
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
],
|
|
1461
|
+
"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"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"kind": "javascript-module",
|
|
1465
|
+
"path": "src/calendar/localization.ts",
|
|
1466
|
+
"declarations": [
|
|
1467
|
+
{
|
|
1468
|
+
"kind": "variable",
|
|
1469
|
+
"name": "calendarLocalization",
|
|
1470
|
+
"type": {
|
|
1471
|
+
"text": "object"
|
|
1472
|
+
},
|
|
1473
|
+
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n}"
|
|
1474
|
+
}
|
|
1475
|
+
],
|
|
1476
|
+
"exports": [
|
|
1477
|
+
{
|
|
1478
|
+
"kind": "js",
|
|
1479
|
+
"name": "default",
|
|
1480
|
+
"declaration": {
|
|
1481
|
+
"name": "calendarLocalization",
|
|
1482
|
+
"module": "src/calendar/localization.ts"
|
|
1483
|
+
}
|
|
1484
|
+
}
|
|
1485
|
+
],
|
|
1486
|
+
"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"
|
|
1487
|
+
},
|
|
1488
|
+
{
|
|
1489
|
+
"kind": "javascript-module",
|
|
1490
|
+
"path": "src/calendar/month-view.ts",
|
|
1491
|
+
"declarations": [
|
|
1492
|
+
{
|
|
1493
|
+
"kind": "function",
|
|
1494
|
+
"name": "dayView",
|
|
1495
|
+
"parameters": [
|
|
1736
1496
|
{
|
|
1737
|
-
"name": "
|
|
1497
|
+
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
1738
1498
|
"type": {
|
|
1739
|
-
"text": "
|
|
1740
|
-
},
|
|
1741
|
-
"description": "Fired as the user types into the input.",
|
|
1742
|
-
"inheritedFrom": {
|
|
1743
|
-
"name": "FormAssociatedMixin",
|
|
1744
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1499
|
+
"text": "DatePickerDayProps"
|
|
1745
1500
|
}
|
|
1746
|
-
}
|
|
1501
|
+
}
|
|
1502
|
+
]
|
|
1503
|
+
},
|
|
1504
|
+
{
|
|
1505
|
+
"kind": "function",
|
|
1506
|
+
"name": "monthView",
|
|
1507
|
+
"parameters": [
|
|
1747
1508
|
{
|
|
1748
|
-
"name": "
|
|
1509
|
+
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n dayNames,\n dayNamesShort,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
1749
1510
|
"type": {
|
|
1750
|
-
"text": "
|
|
1751
|
-
},
|
|
1752
|
-
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
1753
|
-
"inheritedFrom": {
|
|
1754
|
-
"name": "FormAssociatedMixin",
|
|
1755
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1511
|
+
"text": "MonthViewArgs"
|
|
1756
1512
|
}
|
|
1757
1513
|
}
|
|
1758
1514
|
]
|
|
@@ -1761,144 +1517,246 @@
|
|
|
1761
1517
|
"exports": [
|
|
1762
1518
|
{
|
|
1763
1519
|
"kind": "js",
|
|
1764
|
-
"name": "
|
|
1520
|
+
"name": "dayView",
|
|
1765
1521
|
"declaration": {
|
|
1766
|
-
"name": "
|
|
1767
|
-
"module": "src/
|
|
1522
|
+
"name": "dayView",
|
|
1523
|
+
"module": "src/calendar/month-view.ts"
|
|
1768
1524
|
}
|
|
1769
1525
|
},
|
|
1770
1526
|
{
|
|
1771
|
-
"kind": "
|
|
1772
|
-
"name": "
|
|
1527
|
+
"kind": "js",
|
|
1528
|
+
"name": "monthView",
|
|
1773
1529
|
"declaration": {
|
|
1774
|
-
"name": "
|
|
1775
|
-
"module": "src/
|
|
1530
|
+
"name": "monthView",
|
|
1531
|
+
"module": "src/calendar/month-view.ts"
|
|
1776
1532
|
}
|
|
1777
1533
|
}
|
|
1778
1534
|
],
|
|
1779
|
-
"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
|
|
1535
|
+
"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"
|
|
1780
1536
|
},
|
|
1781
1537
|
{
|
|
1782
1538
|
"kind": "javascript-module",
|
|
1783
|
-
"path": "src/
|
|
1539
|
+
"path": "src/checkbox/Checkbox.ts",
|
|
1784
1540
|
"declarations": [
|
|
1785
1541
|
{
|
|
1786
1542
|
"kind": "class",
|
|
1787
|
-
"description": "
|
|
1788
|
-
"name": "
|
|
1543
|
+
"description": "Checkboxes allow user to choose one or more options from a limited set of options.\nIf you have more than 10 options, please use Select component instead.",
|
|
1544
|
+
"name": "Checkbox",
|
|
1789
1545
|
"slots": [
|
|
1790
1546
|
{
|
|
1791
|
-
"description": "
|
|
1792
|
-
"name": ""
|
|
1547
|
+
"description": "Use when a label requires more than plain text.",
|
|
1548
|
+
"name": "label"
|
|
1793
1549
|
},
|
|
1794
1550
|
{
|
|
1795
|
-
"description": "
|
|
1796
|
-
"name": "
|
|
1551
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
1552
|
+
"name": "hint"
|
|
1797
1553
|
},
|
|
1798
1554
|
{
|
|
1799
|
-
"description": "
|
|
1800
|
-
"name": "
|
|
1555
|
+
"description": "Optional slot that holds error text for the input.",
|
|
1556
|
+
"name": "error"
|
|
1801
1557
|
}
|
|
1802
1558
|
],
|
|
1803
1559
|
"members": [
|
|
1804
1560
|
{
|
|
1805
1561
|
"kind": "field",
|
|
1806
|
-
"name": "
|
|
1807
|
-
"privacy": "
|
|
1562
|
+
"name": "formValue",
|
|
1563
|
+
"privacy": "protected",
|
|
1564
|
+
"inheritedFrom": {
|
|
1565
|
+
"name": "FormAssociatedMixin",
|
|
1566
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1567
|
+
}
|
|
1808
1568
|
},
|
|
1809
1569
|
{
|
|
1810
1570
|
"kind": "field",
|
|
1811
|
-
"name": "
|
|
1812
|
-
"
|
|
1813
|
-
|
|
1814
|
-
|
|
1571
|
+
"name": "checked",
|
|
1572
|
+
"type": {
|
|
1573
|
+
"text": "boolean"
|
|
1574
|
+
},
|
|
1575
|
+
"default": "false",
|
|
1576
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
1577
|
+
"attribute": "checked"
|
|
1578
|
+
},
|
|
1579
|
+
{
|
|
1580
|
+
"kind": "method",
|
|
1581
|
+
"name": "handleChange",
|
|
1582
|
+
"privacy": "protected",
|
|
1583
|
+
"parameters": [
|
|
1584
|
+
{
|
|
1585
|
+
"name": "e",
|
|
1586
|
+
"type": {
|
|
1587
|
+
"text": "Event"
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
],
|
|
1591
|
+
"return": {
|
|
1592
|
+
"type": {
|
|
1593
|
+
"text": "void"
|
|
1594
|
+
}
|
|
1595
|
+
},
|
|
1596
|
+
"inheritedFrom": {
|
|
1597
|
+
"name": "FormAssociatedMixin",
|
|
1598
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1599
|
+
}
|
|
1600
|
+
},
|
|
1815
1601
|
{
|
|
1816
1602
|
"kind": "field",
|
|
1817
|
-
"name": "
|
|
1818
|
-
"privacy": "
|
|
1819
|
-
"default": "new
|
|
1603
|
+
"name": "labelSlot",
|
|
1604
|
+
"privacy": "protected",
|
|
1605
|
+
"default": "new SlotController(this, \"label\")",
|
|
1606
|
+
"inheritedFrom": {
|
|
1607
|
+
"name": "FormAssociatedMixin",
|
|
1608
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1609
|
+
}
|
|
1820
1610
|
},
|
|
1821
1611
|
{
|
|
1822
1612
|
"kind": "field",
|
|
1823
|
-
"name": "
|
|
1824
|
-
"
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
"reflects": true
|
|
1613
|
+
"name": "errorSlot",
|
|
1614
|
+
"privacy": "protected",
|
|
1615
|
+
"default": "new SlotController(this, \"error\")",
|
|
1616
|
+
"inheritedFrom": {
|
|
1617
|
+
"name": "FormAssociatedMixin",
|
|
1618
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1619
|
+
}
|
|
1831
1620
|
},
|
|
1832
1621
|
{
|
|
1833
1622
|
"kind": "field",
|
|
1834
|
-
"name": "
|
|
1623
|
+
"name": "hintSlot",
|
|
1624
|
+
"privacy": "protected",
|
|
1625
|
+
"default": "new SlotController(this, \"hint\")",
|
|
1626
|
+
"inheritedFrom": {
|
|
1627
|
+
"name": "FormAssociatedMixin",
|
|
1628
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1629
|
+
}
|
|
1630
|
+
},
|
|
1631
|
+
{
|
|
1632
|
+
"kind": "field",
|
|
1633
|
+
"name": "formData",
|
|
1634
|
+
"privacy": "protected",
|
|
1635
|
+
"default": "new FormDataController(this, { value: () => this.formValue })",
|
|
1636
|
+
"inheritedFrom": {
|
|
1637
|
+
"name": "FormAssociatedMixin",
|
|
1638
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1639
|
+
}
|
|
1640
|
+
},
|
|
1641
|
+
{
|
|
1642
|
+
"kind": "field",
|
|
1643
|
+
"name": "inputId",
|
|
1835
1644
|
"type": {
|
|
1836
|
-
"text": "
|
|
1645
|
+
"text": "string"
|
|
1837
1646
|
},
|
|
1838
|
-
"
|
|
1839
|
-
"
|
|
1840
|
-
"
|
|
1841
|
-
|
|
1647
|
+
"privacy": "protected",
|
|
1648
|
+
"default": "\"input\"",
|
|
1649
|
+
"inheritedFrom": {
|
|
1650
|
+
"name": "FormAssociatedMixin",
|
|
1651
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1652
|
+
}
|
|
1842
1653
|
},
|
|
1843
1654
|
{
|
|
1844
1655
|
"kind": "field",
|
|
1845
|
-
"name": "
|
|
1656
|
+
"name": "errorId",
|
|
1846
1657
|
"type": {
|
|
1847
|
-
"text": "
|
|
1658
|
+
"text": "string"
|
|
1848
1659
|
},
|
|
1849
|
-
"
|
|
1850
|
-
"
|
|
1851
|
-
"
|
|
1852
|
-
|
|
1660
|
+
"privacy": "protected",
|
|
1661
|
+
"default": "\"error\"",
|
|
1662
|
+
"inheritedFrom": {
|
|
1663
|
+
"name": "FormAssociatedMixin",
|
|
1664
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1665
|
+
}
|
|
1853
1666
|
},
|
|
1854
1667
|
{
|
|
1855
1668
|
"kind": "field",
|
|
1856
|
-
"name": "
|
|
1669
|
+
"name": "hintId",
|
|
1857
1670
|
"type": {
|
|
1858
|
-
"text": "
|
|
1671
|
+
"text": "string"
|
|
1859
1672
|
},
|
|
1860
|
-
"privacy": "
|
|
1861
|
-
"
|
|
1673
|
+
"privacy": "protected",
|
|
1674
|
+
"default": "\"hint\"",
|
|
1675
|
+
"inheritedFrom": {
|
|
1676
|
+
"name": "FormAssociatedMixin",
|
|
1677
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1678
|
+
}
|
|
1862
1679
|
},
|
|
1863
1680
|
{
|
|
1864
1681
|
"kind": "field",
|
|
1865
|
-
"name": "
|
|
1682
|
+
"name": "label",
|
|
1866
1683
|
"type": {
|
|
1867
|
-
"text": "
|
|
1684
|
+
"text": "string"
|
|
1868
1685
|
},
|
|
1869
|
-
"
|
|
1870
|
-
"
|
|
1686
|
+
"default": "\"\"",
|
|
1687
|
+
"description": "Label for the input.",
|
|
1688
|
+
"attribute": "label",
|
|
1689
|
+
"inheritedFrom": {
|
|
1690
|
+
"name": "FormAssociatedMixin",
|
|
1691
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1692
|
+
}
|
|
1871
1693
|
},
|
|
1872
1694
|
{
|
|
1873
1695
|
"kind": "field",
|
|
1874
|
-
"name": "
|
|
1696
|
+
"name": "hint",
|
|
1875
1697
|
"type": {
|
|
1876
1698
|
"text": "string | undefined"
|
|
1877
1699
|
},
|
|
1878
|
-
"description": "
|
|
1879
|
-
"attribute": "
|
|
1880
|
-
"
|
|
1700
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
1701
|
+
"attribute": "hint",
|
|
1702
|
+
"inheritedFrom": {
|
|
1703
|
+
"name": "FormAssociatedMixin",
|
|
1704
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1705
|
+
}
|
|
1881
1706
|
},
|
|
1882
1707
|
{
|
|
1883
1708
|
"kind": "field",
|
|
1884
|
-
"name": "
|
|
1709
|
+
"name": "hideLabel",
|
|
1885
1710
|
"type": {
|
|
1886
1711
|
"text": "boolean"
|
|
1887
1712
|
},
|
|
1888
1713
|
"default": "false",
|
|
1889
|
-
"description": "
|
|
1890
|
-
"attribute": "
|
|
1714
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
1715
|
+
"attribute": "hide-label",
|
|
1716
|
+
"inheritedFrom": {
|
|
1717
|
+
"name": "FormAssociatedMixin",
|
|
1718
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1719
|
+
}
|
|
1891
1720
|
},
|
|
1892
1721
|
{
|
|
1893
1722
|
"kind": "field",
|
|
1894
|
-
"name": "
|
|
1723
|
+
"name": "placeholder",
|
|
1895
1724
|
"type": {
|
|
1896
|
-
"text": "
|
|
1725
|
+
"text": "string | undefined"
|
|
1897
1726
|
},
|
|
1898
|
-
"
|
|
1899
|
-
"
|
|
1900
|
-
"
|
|
1901
|
-
|
|
1727
|
+
"description": "Placeholder text to display within the input.",
|
|
1728
|
+
"attribute": "placeholder",
|
|
1729
|
+
"inheritedFrom": {
|
|
1730
|
+
"name": "FormAssociatedMixin",
|
|
1731
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1732
|
+
}
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
"kind": "field",
|
|
1736
|
+
"name": "error",
|
|
1737
|
+
"type": {
|
|
1738
|
+
"text": "string | undefined"
|
|
1739
|
+
},
|
|
1740
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
1741
|
+
"attribute": "error",
|
|
1742
|
+
"inheritedFrom": {
|
|
1743
|
+
"name": "FormAssociatedMixin",
|
|
1744
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1745
|
+
}
|
|
1746
|
+
},
|
|
1747
|
+
{
|
|
1748
|
+
"kind": "field",
|
|
1749
|
+
"name": "required",
|
|
1750
|
+
"type": {
|
|
1751
|
+
"text": "boolean"
|
|
1752
|
+
},
|
|
1753
|
+
"default": "false",
|
|
1754
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
1755
|
+
"attribute": "required",
|
|
1756
|
+
"inheritedFrom": {
|
|
1757
|
+
"name": "FormAssociatedMixin",
|
|
1758
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1759
|
+
}
|
|
1902
1760
|
},
|
|
1903
1761
|
{
|
|
1904
1762
|
"kind": "field",
|
|
@@ -1907,59 +1765,84 @@
|
|
|
1907
1765
|
"text": "boolean"
|
|
1908
1766
|
},
|
|
1909
1767
|
"default": "false",
|
|
1910
|
-
"description": "Controls whether the
|
|
1768
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
1911
1769
|
"attribute": "expand",
|
|
1912
|
-
"reflects": true
|
|
1770
|
+
"reflects": true,
|
|
1771
|
+
"inheritedFrom": {
|
|
1772
|
+
"name": "FormAssociatedMixin",
|
|
1773
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1774
|
+
}
|
|
1913
1775
|
},
|
|
1914
1776
|
{
|
|
1915
1777
|
"kind": "method",
|
|
1916
|
-
"name": "
|
|
1917
|
-
"privacy": "
|
|
1778
|
+
"name": "handleInput",
|
|
1779
|
+
"privacy": "protected",
|
|
1918
1780
|
"parameters": [
|
|
1919
1781
|
{
|
|
1920
|
-
"name": "
|
|
1782
|
+
"name": "e",
|
|
1921
1783
|
"type": {
|
|
1922
|
-
"text": "
|
|
1784
|
+
"text": "Event"
|
|
1923
1785
|
}
|
|
1924
1786
|
}
|
|
1925
1787
|
],
|
|
1926
|
-
"
|
|
1788
|
+
"inheritedFrom": {
|
|
1789
|
+
"name": "FormAssociatedMixin",
|
|
1790
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1791
|
+
}
|
|
1927
1792
|
},
|
|
1928
1793
|
{
|
|
1929
1794
|
"kind": "method",
|
|
1930
|
-
"name": "
|
|
1931
|
-
"privacy": "
|
|
1932
|
-
"
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
"text": "TemplateResult"
|
|
1937
|
-
}
|
|
1938
|
-
}
|
|
1939
|
-
]
|
|
1795
|
+
"name": "renderLabel",
|
|
1796
|
+
"privacy": "protected",
|
|
1797
|
+
"inheritedFrom": {
|
|
1798
|
+
"name": "FormAssociatedMixin",
|
|
1799
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1800
|
+
}
|
|
1940
1801
|
},
|
|
1941
1802
|
{
|
|
1942
1803
|
"kind": "method",
|
|
1943
|
-
"name": "
|
|
1944
|
-
"privacy": "
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
"privacy": "private"
|
|
1804
|
+
"name": "renderError",
|
|
1805
|
+
"privacy": "protected",
|
|
1806
|
+
"inheritedFrom": {
|
|
1807
|
+
"name": "FormAssociatedMixin",
|
|
1808
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1809
|
+
}
|
|
1950
1810
|
},
|
|
1951
1811
|
{
|
|
1952
1812
|
"kind": "method",
|
|
1953
|
-
"name": "
|
|
1954
|
-
"privacy": "
|
|
1955
|
-
"
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1813
|
+
"name": "getDescribedBy",
|
|
1814
|
+
"privacy": "protected",
|
|
1815
|
+
"inheritedFrom": {
|
|
1816
|
+
"name": "FormAssociatedMixin",
|
|
1817
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
"kind": "method",
|
|
1822
|
+
"name": "getInvalid",
|
|
1823
|
+
"privacy": "protected",
|
|
1824
|
+
"inheritedFrom": {
|
|
1825
|
+
"name": "FormAssociatedMixin",
|
|
1826
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1827
|
+
}
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"kind": "field",
|
|
1831
|
+
"name": "hasHint",
|
|
1832
|
+
"privacy": "protected",
|
|
1833
|
+
"inheritedFrom": {
|
|
1834
|
+
"name": "FormAssociatedMixin",
|
|
1835
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1836
|
+
}
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"kind": "field",
|
|
1840
|
+
"name": "hasError",
|
|
1841
|
+
"privacy": "protected",
|
|
1842
|
+
"inheritedFrom": {
|
|
1843
|
+
"name": "FormAssociatedMixin",
|
|
1844
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1845
|
+
}
|
|
1963
1846
|
},
|
|
1964
1847
|
{
|
|
1965
1848
|
"kind": "field",
|
|
@@ -2062,71 +1945,88 @@
|
|
|
2062
1945
|
],
|
|
2063
1946
|
"attributes": [
|
|
2064
1947
|
{
|
|
2065
|
-
"name": "
|
|
1948
|
+
"name": "checked",
|
|
2066
1949
|
"type": {
|
|
2067
|
-
"text": "
|
|
1950
|
+
"text": "boolean"
|
|
2068
1951
|
},
|
|
2069
|
-
"default": "
|
|
2070
|
-
"description": "
|
|
2071
|
-
"fieldName": "
|
|
1952
|
+
"default": "false",
|
|
1953
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
1954
|
+
"fieldName": "checked"
|
|
2072
1955
|
},
|
|
2073
1956
|
{
|
|
2074
|
-
"name": "
|
|
1957
|
+
"name": "label",
|
|
2075
1958
|
"type": {
|
|
2076
|
-
"text": "
|
|
1959
|
+
"text": "string"
|
|
2077
1960
|
},
|
|
2078
|
-
"default": "\"
|
|
2079
|
-
"description": "
|
|
2080
|
-
"fieldName": "
|
|
1961
|
+
"default": "\"\"",
|
|
1962
|
+
"description": "Label for the input.",
|
|
1963
|
+
"fieldName": "label",
|
|
1964
|
+
"inheritedFrom": {
|
|
1965
|
+
"name": "FormAssociatedMixin",
|
|
1966
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1967
|
+
}
|
|
2081
1968
|
},
|
|
2082
1969
|
{
|
|
2083
|
-
"name": "
|
|
1970
|
+
"name": "hint",
|
|
2084
1971
|
"type": {
|
|
2085
|
-
"text": "
|
|
1972
|
+
"text": "string | undefined"
|
|
2086
1973
|
},
|
|
2087
|
-
"
|
|
2088
|
-
"
|
|
2089
|
-
"
|
|
1974
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
1975
|
+
"fieldName": "hint",
|
|
1976
|
+
"inheritedFrom": {
|
|
1977
|
+
"name": "FormAssociatedMixin",
|
|
1978
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1979
|
+
}
|
|
2090
1980
|
},
|
|
2091
1981
|
{
|
|
2092
|
-
"name": "
|
|
1982
|
+
"name": "hide-label",
|
|
2093
1983
|
"type": {
|
|
2094
|
-
"text": "
|
|
1984
|
+
"text": "boolean"
|
|
2095
1985
|
},
|
|
2096
|
-
"
|
|
1986
|
+
"default": "false",
|
|
1987
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
1988
|
+
"fieldName": "hideLabel",
|
|
1989
|
+
"inheritedFrom": {
|
|
1990
|
+
"name": "FormAssociatedMixin",
|
|
1991
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1992
|
+
}
|
|
2097
1993
|
},
|
|
2098
1994
|
{
|
|
2099
|
-
"name": "
|
|
1995
|
+
"name": "placeholder",
|
|
2100
1996
|
"type": {
|
|
2101
|
-
"text": "
|
|
1997
|
+
"text": "string | undefined"
|
|
2102
1998
|
},
|
|
2103
|
-
"
|
|
1999
|
+
"description": "Placeholder text to display within the input.",
|
|
2000
|
+
"fieldName": "placeholder",
|
|
2001
|
+
"inheritedFrom": {
|
|
2002
|
+
"name": "FormAssociatedMixin",
|
|
2003
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2004
|
+
}
|
|
2104
2005
|
},
|
|
2105
2006
|
{
|
|
2106
|
-
"name": "
|
|
2007
|
+
"name": "error",
|
|
2107
2008
|
"type": {
|
|
2108
2009
|
"text": "string | undefined"
|
|
2109
2010
|
},
|
|
2110
|
-
"description": "
|
|
2111
|
-
"fieldName": "
|
|
2011
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
2012
|
+
"fieldName": "error",
|
|
2013
|
+
"inheritedFrom": {
|
|
2014
|
+
"name": "FormAssociatedMixin",
|
|
2015
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2016
|
+
}
|
|
2112
2017
|
},
|
|
2113
2018
|
{
|
|
2114
|
-
"name": "
|
|
2019
|
+
"name": "required",
|
|
2115
2020
|
"type": {
|
|
2116
2021
|
"text": "boolean"
|
|
2117
2022
|
},
|
|
2118
2023
|
"default": "false",
|
|
2119
|
-
"description": "
|
|
2120
|
-
"fieldName": "
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
2126
|
-
},
|
|
2127
|
-
"default": "\"_self\"",
|
|
2128
|
-
"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.",
|
|
2129
|
-
"fieldName": "target"
|
|
2024
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
2025
|
+
"fieldName": "required",
|
|
2026
|
+
"inheritedFrom": {
|
|
2027
|
+
"name": "FormAssociatedMixin",
|
|
2028
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2029
|
+
}
|
|
2130
2030
|
},
|
|
2131
2031
|
{
|
|
2132
2032
|
"name": "expand",
|
|
@@ -2134,8 +2034,12 @@
|
|
|
2134
2034
|
"text": "boolean"
|
|
2135
2035
|
},
|
|
2136
2036
|
"default": "false",
|
|
2137
|
-
"description": "Controls whether the
|
|
2138
|
-
"fieldName": "expand"
|
|
2037
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
2038
|
+
"fieldName": "expand",
|
|
2039
|
+
"inheritedFrom": {
|
|
2040
|
+
"name": "FormAssociatedMixin",
|
|
2041
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2042
|
+
}
|
|
2139
2043
|
},
|
|
2140
2044
|
{
|
|
2141
2045
|
"name": "disabled",
|
|
@@ -2177,6 +2081,10 @@
|
|
|
2177
2081
|
}
|
|
2178
2082
|
],
|
|
2179
2083
|
"mixins": [
|
|
2084
|
+
{
|
|
2085
|
+
"name": "FormAssociatedMixin",
|
|
2086
|
+
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
2087
|
+
},
|
|
2180
2088
|
{
|
|
2181
2089
|
"name": "InputMixin",
|
|
2182
2090
|
"module": "/src/common/mixins/InputMixin.js"
|
|
@@ -2191,8 +2099,100 @@
|
|
|
2191
2099
|
"package": "lit"
|
|
2192
2100
|
},
|
|
2193
2101
|
"status": "ready",
|
|
2194
|
-
"category": "
|
|
2195
|
-
"tagName": "nord-
|
|
2102
|
+
"category": "form",
|
|
2103
|
+
"tagName": "nord-checkbox",
|
|
2104
|
+
"customElement": true,
|
|
2105
|
+
"events": [
|
|
2106
|
+
{
|
|
2107
|
+
"name": "input",
|
|
2108
|
+
"type": {
|
|
2109
|
+
"text": "NordEvent"
|
|
2110
|
+
},
|
|
2111
|
+
"description": "Fired as the user types into the input.",
|
|
2112
|
+
"inheritedFrom": {
|
|
2113
|
+
"name": "FormAssociatedMixin",
|
|
2114
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
"name": "change",
|
|
2119
|
+
"type": {
|
|
2120
|
+
"text": "NordEvent"
|
|
2121
|
+
},
|
|
2122
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
2123
|
+
"inheritedFrom": {
|
|
2124
|
+
"name": "FormAssociatedMixin",
|
|
2125
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2126
|
+
}
|
|
2127
|
+
}
|
|
2128
|
+
]
|
|
2129
|
+
}
|
|
2130
|
+
],
|
|
2131
|
+
"exports": [
|
|
2132
|
+
{
|
|
2133
|
+
"kind": "js",
|
|
2134
|
+
"name": "default",
|
|
2135
|
+
"declaration": {
|
|
2136
|
+
"name": "Checkbox",
|
|
2137
|
+
"module": "src/checkbox/Checkbox.ts"
|
|
2138
|
+
}
|
|
2139
|
+
},
|
|
2140
|
+
{
|
|
2141
|
+
"kind": "custom-element-definition",
|
|
2142
|
+
"name": "nord-checkbox",
|
|
2143
|
+
"declaration": {
|
|
2144
|
+
"name": "Checkbox",
|
|
2145
|
+
"module": "src/checkbox/Checkbox.ts"
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
],
|
|
2149
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use for making it possible to choose one or more options from a limited number of options.\n- Use for “accepting terms of service” and similar functionality.\n- Use in forms to toggle something on or off.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when you have more than 10 options to choose from.\n- Don’t change the selection of another checkbox when another one is clicked. Only exception is when a checkbox is used to make a bulk selection of multiple items.\n\n</div>\n\n---\n\n## Content guidelines\n\nCheckbox labels should be clear, accurate and predictable. It should be possible for the user to understand what they are selecting:\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">Option 1</div>\n\nWhen writing checkbox labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">User settings</div>\n<div class=\"n-usage n-usage-dont\">User Settings</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Show dashboard</div>\n<div class=\"n-usage n-usage-dont\">Show dashboard.</div>\n\nDo not use commas or semicolons at the end of each line\n\n<div class=\"n-usage n-usage-do\">Patients</div>\n<div class=\"n-usage n-usage-dont\">Patients;</div>\n"
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
"kind": "javascript-module",
|
|
2153
|
+
"path": "src/banner/Banner.ts",
|
|
2154
|
+
"declarations": [
|
|
2155
|
+
{
|
|
2156
|
+
"kind": "class",
|
|
2157
|
+
"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.",
|
|
2158
|
+
"name": "Banner",
|
|
2159
|
+
"slots": [
|
|
2160
|
+
{
|
|
2161
|
+
"description": "default slot",
|
|
2162
|
+
"name": ""
|
|
2163
|
+
}
|
|
2164
|
+
],
|
|
2165
|
+
"members": [
|
|
2166
|
+
{
|
|
2167
|
+
"kind": "field",
|
|
2168
|
+
"name": "variant",
|
|
2169
|
+
"type": {
|
|
2170
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
2171
|
+
},
|
|
2172
|
+
"default": "\"info\"",
|
|
2173
|
+
"description": "The style variant of the banner.",
|
|
2174
|
+
"attribute": "variant",
|
|
2175
|
+
"reflects": true
|
|
2176
|
+
}
|
|
2177
|
+
],
|
|
2178
|
+
"attributes": [
|
|
2179
|
+
{
|
|
2180
|
+
"name": "variant",
|
|
2181
|
+
"type": {
|
|
2182
|
+
"text": "\"info\" | \"danger\" | \"success\" | \"warning\""
|
|
2183
|
+
},
|
|
2184
|
+
"default": "\"info\"",
|
|
2185
|
+
"description": "The style variant of the banner.",
|
|
2186
|
+
"fieldName": "variant"
|
|
2187
|
+
}
|
|
2188
|
+
],
|
|
2189
|
+
"superclass": {
|
|
2190
|
+
"name": "LitElement",
|
|
2191
|
+
"package": "lit"
|
|
2192
|
+
},
|
|
2193
|
+
"status": "new",
|
|
2194
|
+
"category": "feedback",
|
|
2195
|
+
"tagName": "nord-banner",
|
|
2196
2196
|
"customElement": true
|
|
2197
2197
|
}
|
|
2198
2198
|
],
|
|
@@ -2201,20 +2201,20 @@
|
|
|
2201
2201
|
"kind": "js",
|
|
2202
2202
|
"name": "default",
|
|
2203
2203
|
"declaration": {
|
|
2204
|
-
"name": "
|
|
2205
|
-
"module": "src/
|
|
2204
|
+
"name": "Banner",
|
|
2205
|
+
"module": "src/banner/Banner.ts"
|
|
2206
2206
|
}
|
|
2207
2207
|
},
|
|
2208
2208
|
{
|
|
2209
2209
|
"kind": "custom-element-definition",
|
|
2210
|
-
"name": "nord-
|
|
2210
|
+
"name": "nord-banner",
|
|
2211
2211
|
"declaration": {
|
|
2212
|
-
"name": "
|
|
2213
|
-
"module": "src/
|
|
2212
|
+
"name": "Banner",
|
|
2213
|
+
"module": "src/banner/Banner.ts"
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
2216
|
],
|
|
2217
|
-
"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
|
|
2217
|
+
"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"
|
|
2218
2218
|
},
|
|
2219
2219
|
{
|
|
2220
2220
|
"kind": "javascript-module",
|
|
@@ -9972,20 +9972,454 @@
|
|
|
9972
9972
|
},
|
|
9973
9973
|
{
|
|
9974
9974
|
"kind": "javascript-module",
|
|
9975
|
-
"path": "src/common/
|
|
9975
|
+
"path": "src/common/directives/cond.ts",
|
|
9976
9976
|
"declarations": [
|
|
9977
9977
|
{
|
|
9978
|
-
"kind": "
|
|
9979
|
-
"
|
|
9980
|
-
"
|
|
9981
|
-
|
|
9978
|
+
"kind": "function",
|
|
9979
|
+
"name": "cond",
|
|
9980
|
+
"return": {
|
|
9981
|
+
"type": {
|
|
9982
|
+
"text": "typeof value | typeof nothing"
|
|
9983
|
+
}
|
|
9984
|
+
},
|
|
9985
|
+
"parameters": [
|
|
9982
9986
|
{
|
|
9983
|
-
"
|
|
9984
|
-
"
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9987
|
+
"name": "value",
|
|
9988
|
+
"type": {
|
|
9989
|
+
"text": "any"
|
|
9990
|
+
}
|
|
9991
|
+
}
|
|
9992
|
+
],
|
|
9993
|
+
"description": "if value is truthy, return it, otherwise return nothing"
|
|
9994
|
+
},
|
|
9995
|
+
{
|
|
9996
|
+
"kind": "function",
|
|
9997
|
+
"name": "cond",
|
|
9998
|
+
"return": {
|
|
9999
|
+
"type": {
|
|
10000
|
+
"text": "typeof trueCase | typeof nothing"
|
|
10001
|
+
}
|
|
10002
|
+
},
|
|
10003
|
+
"parameters": [
|
|
10004
|
+
{
|
|
10005
|
+
"name": "condition",
|
|
10006
|
+
"type": {
|
|
10007
|
+
"text": "unknown"
|
|
10008
|
+
}
|
|
10009
|
+
},
|
|
10010
|
+
{
|
|
10011
|
+
"name": "trueCase",
|
|
10012
|
+
"type": {
|
|
10013
|
+
"text": "any"
|
|
10014
|
+
}
|
|
10015
|
+
}
|
|
10016
|
+
],
|
|
10017
|
+
"description": "if condition is truthy, return trueCase, otherwise return nothing"
|
|
10018
|
+
},
|
|
10019
|
+
{
|
|
10020
|
+
"kind": "function",
|
|
10021
|
+
"name": "cond",
|
|
10022
|
+
"return": {
|
|
10023
|
+
"type": {
|
|
10024
|
+
"text": "typeof trueCase"
|
|
10025
|
+
}
|
|
10026
|
+
},
|
|
10027
|
+
"parameters": [
|
|
10028
|
+
{
|
|
10029
|
+
"name": "condition",
|
|
10030
|
+
"type": {
|
|
10031
|
+
"text": "true"
|
|
10032
|
+
}
|
|
10033
|
+
},
|
|
10034
|
+
{
|
|
10035
|
+
"name": "trueCase",
|
|
10036
|
+
"type": {
|
|
10037
|
+
"text": "any"
|
|
10038
|
+
}
|
|
10039
|
+
}
|
|
10040
|
+
],
|
|
10041
|
+
"description": "condition is true, so always return trueCase"
|
|
10042
|
+
},
|
|
10043
|
+
{
|
|
10044
|
+
"kind": "function",
|
|
10045
|
+
"name": "cond",
|
|
10046
|
+
"return": {
|
|
10047
|
+
"type": {
|
|
10048
|
+
"text": "typeof nothing"
|
|
10049
|
+
}
|
|
10050
|
+
},
|
|
10051
|
+
"parameters": [
|
|
10052
|
+
{
|
|
10053
|
+
"name": "condition",
|
|
10054
|
+
"type": {
|
|
10055
|
+
"text": "false"
|
|
10056
|
+
}
|
|
10057
|
+
},
|
|
10058
|
+
{
|
|
10059
|
+
"name": "trueCase",
|
|
10060
|
+
"type": {
|
|
10061
|
+
"text": "any"
|
|
10062
|
+
}
|
|
10063
|
+
}
|
|
10064
|
+
],
|
|
10065
|
+
"description": "condition is false, to will always return nothing"
|
|
10066
|
+
},
|
|
10067
|
+
{
|
|
10068
|
+
"kind": "function",
|
|
10069
|
+
"name": "cond",
|
|
10070
|
+
"return": {
|
|
10071
|
+
"type": {
|
|
10072
|
+
"text": "typeof trueCase | typeof falseCase"
|
|
10073
|
+
}
|
|
10074
|
+
},
|
|
10075
|
+
"parameters": [
|
|
10076
|
+
{
|
|
10077
|
+
"name": "condition",
|
|
10078
|
+
"type": {
|
|
10079
|
+
"text": "unknown"
|
|
10080
|
+
}
|
|
10081
|
+
},
|
|
10082
|
+
{
|
|
10083
|
+
"name": "trueCase",
|
|
10084
|
+
"type": {
|
|
10085
|
+
"text": "any"
|
|
10086
|
+
}
|
|
10087
|
+
},
|
|
10088
|
+
{
|
|
10089
|
+
"name": "falseCase",
|
|
10090
|
+
"type": {
|
|
10091
|
+
"text": "any"
|
|
10092
|
+
}
|
|
10093
|
+
}
|
|
10094
|
+
],
|
|
10095
|
+
"description": "if condition is truthy, return trueCase, otherwise return falseCase"
|
|
10096
|
+
},
|
|
10097
|
+
{
|
|
10098
|
+
"kind": "function",
|
|
10099
|
+
"name": "cond",
|
|
10100
|
+
"return": {
|
|
10101
|
+
"type": {
|
|
10102
|
+
"text": "typeof trueCase"
|
|
10103
|
+
}
|
|
10104
|
+
},
|
|
10105
|
+
"parameters": [
|
|
10106
|
+
{
|
|
10107
|
+
"name": "condition",
|
|
10108
|
+
"type": {
|
|
10109
|
+
"text": "true"
|
|
10110
|
+
}
|
|
10111
|
+
},
|
|
10112
|
+
{
|
|
10113
|
+
"name": "trueCase",
|
|
10114
|
+
"type": {
|
|
10115
|
+
"text": "any"
|
|
10116
|
+
}
|
|
10117
|
+
},
|
|
10118
|
+
{
|
|
10119
|
+
"name": "falseCase",
|
|
10120
|
+
"type": {
|
|
10121
|
+
"text": "any"
|
|
10122
|
+
}
|
|
10123
|
+
}
|
|
10124
|
+
],
|
|
10125
|
+
"description": "condition is true, so always return trueCase"
|
|
10126
|
+
},
|
|
10127
|
+
{
|
|
10128
|
+
"kind": "function",
|
|
10129
|
+
"name": "cond",
|
|
10130
|
+
"return": {
|
|
10131
|
+
"type": {
|
|
10132
|
+
"text": "typeof falseCase"
|
|
10133
|
+
}
|
|
10134
|
+
},
|
|
10135
|
+
"parameters": [
|
|
10136
|
+
{
|
|
10137
|
+
"name": "condition",
|
|
10138
|
+
"type": {
|
|
10139
|
+
"text": "false"
|
|
10140
|
+
}
|
|
10141
|
+
},
|
|
10142
|
+
{
|
|
10143
|
+
"name": "trueCase",
|
|
10144
|
+
"type": {
|
|
10145
|
+
"text": "any"
|
|
10146
|
+
}
|
|
10147
|
+
},
|
|
10148
|
+
{
|
|
10149
|
+
"name": "falseCase",
|
|
10150
|
+
"type": {
|
|
10151
|
+
"text": "any"
|
|
10152
|
+
}
|
|
10153
|
+
}
|
|
10154
|
+
],
|
|
10155
|
+
"description": "condition is false, so always return falseCase"
|
|
10156
|
+
},
|
|
10157
|
+
{
|
|
10158
|
+
"kind": "function",
|
|
10159
|
+
"name": "cond",
|
|
10160
|
+
"parameters": [
|
|
10161
|
+
{
|
|
10162
|
+
"name": "condition",
|
|
10163
|
+
"type": {
|
|
10164
|
+
"text": "unknown"
|
|
10165
|
+
}
|
|
10166
|
+
},
|
|
10167
|
+
{
|
|
10168
|
+
"name": "trueCase",
|
|
10169
|
+
"default": "condition",
|
|
10170
|
+
"type": {
|
|
10171
|
+
"text": "any"
|
|
10172
|
+
}
|
|
10173
|
+
},
|
|
10174
|
+
{
|
|
10175
|
+
"name": "falseCase",
|
|
10176
|
+
"default": "nothing",
|
|
10177
|
+
"type": {
|
|
10178
|
+
"text": "any"
|
|
10179
|
+
}
|
|
10180
|
+
}
|
|
10181
|
+
]
|
|
10182
|
+
}
|
|
10183
|
+
],
|
|
10184
|
+
"exports": [
|
|
10185
|
+
{
|
|
10186
|
+
"kind": "js",
|
|
10187
|
+
"name": "cond",
|
|
10188
|
+
"declaration": {
|
|
10189
|
+
"name": "cond",
|
|
10190
|
+
"module": "src/common/directives/cond.ts"
|
|
10191
|
+
}
|
|
10192
|
+
},
|
|
10193
|
+
{
|
|
10194
|
+
"kind": "js",
|
|
10195
|
+
"name": "cond",
|
|
10196
|
+
"declaration": {
|
|
10197
|
+
"name": "cond",
|
|
10198
|
+
"module": "src/common/directives/cond.ts"
|
|
10199
|
+
}
|
|
10200
|
+
},
|
|
10201
|
+
{
|
|
10202
|
+
"kind": "js",
|
|
10203
|
+
"name": "cond",
|
|
10204
|
+
"declaration": {
|
|
10205
|
+
"name": "cond",
|
|
10206
|
+
"module": "src/common/directives/cond.ts"
|
|
10207
|
+
}
|
|
10208
|
+
},
|
|
10209
|
+
{
|
|
10210
|
+
"kind": "js",
|
|
10211
|
+
"name": "cond",
|
|
10212
|
+
"declaration": {
|
|
10213
|
+
"name": "cond",
|
|
10214
|
+
"module": "src/common/directives/cond.ts"
|
|
10215
|
+
}
|
|
10216
|
+
},
|
|
10217
|
+
{
|
|
10218
|
+
"kind": "js",
|
|
10219
|
+
"name": "cond",
|
|
10220
|
+
"declaration": {
|
|
10221
|
+
"name": "cond",
|
|
10222
|
+
"module": "src/common/directives/cond.ts"
|
|
10223
|
+
}
|
|
10224
|
+
},
|
|
10225
|
+
{
|
|
10226
|
+
"kind": "js",
|
|
10227
|
+
"name": "cond",
|
|
10228
|
+
"declaration": {
|
|
10229
|
+
"name": "cond",
|
|
10230
|
+
"module": "src/common/directives/cond.ts"
|
|
10231
|
+
}
|
|
10232
|
+
},
|
|
10233
|
+
{
|
|
10234
|
+
"kind": "js",
|
|
10235
|
+
"name": "cond",
|
|
10236
|
+
"declaration": {
|
|
10237
|
+
"name": "cond",
|
|
10238
|
+
"module": "src/common/directives/cond.ts"
|
|
10239
|
+
}
|
|
10240
|
+
},
|
|
10241
|
+
{
|
|
10242
|
+
"kind": "js",
|
|
10243
|
+
"name": "cond",
|
|
10244
|
+
"declaration": {
|
|
10245
|
+
"name": "cond",
|
|
10246
|
+
"module": "src/common/directives/cond.ts"
|
|
10247
|
+
}
|
|
10248
|
+
}
|
|
10249
|
+
]
|
|
10250
|
+
},
|
|
10251
|
+
{
|
|
10252
|
+
"kind": "javascript-module",
|
|
10253
|
+
"path": "src/common/directives/wrapIf.ts",
|
|
10254
|
+
"declarations": [
|
|
10255
|
+
{
|
|
10256
|
+
"kind": "function",
|
|
10257
|
+
"name": "wrapIf",
|
|
10258
|
+
"return": {
|
|
10259
|
+
"type": {
|
|
10260
|
+
"text": "TInner"
|
|
10261
|
+
}
|
|
10262
|
+
},
|
|
10263
|
+
"parameters": [
|
|
10264
|
+
{
|
|
10265
|
+
"name": "condition",
|
|
10266
|
+
"type": {
|
|
10267
|
+
"text": "false"
|
|
10268
|
+
}
|
|
10269
|
+
},
|
|
10270
|
+
{
|
|
10271
|
+
"name": "inner",
|
|
10272
|
+
"type": {
|
|
10273
|
+
"text": "() => TInner"
|
|
10274
|
+
}
|
|
10275
|
+
},
|
|
10276
|
+
{
|
|
10277
|
+
"name": "wrapper",
|
|
10278
|
+
"type": {
|
|
10279
|
+
"text": "(inner: TInner) => TWrapper"
|
|
10280
|
+
}
|
|
10281
|
+
}
|
|
10282
|
+
]
|
|
10283
|
+
},
|
|
10284
|
+
{
|
|
10285
|
+
"kind": "function",
|
|
10286
|
+
"name": "wrapIf",
|
|
10287
|
+
"return": {
|
|
10288
|
+
"type": {
|
|
10289
|
+
"text": "TWrapper"
|
|
10290
|
+
}
|
|
10291
|
+
},
|
|
10292
|
+
"parameters": [
|
|
10293
|
+
{
|
|
10294
|
+
"name": "condition",
|
|
10295
|
+
"type": {
|
|
10296
|
+
"text": "true"
|
|
10297
|
+
}
|
|
10298
|
+
},
|
|
10299
|
+
{
|
|
10300
|
+
"name": "inner",
|
|
10301
|
+
"type": {
|
|
10302
|
+
"text": "() => TInner"
|
|
10303
|
+
}
|
|
10304
|
+
},
|
|
10305
|
+
{
|
|
10306
|
+
"name": "wrapper",
|
|
10307
|
+
"type": {
|
|
10308
|
+
"text": "(inner: TInner) => TWrapper"
|
|
10309
|
+
}
|
|
10310
|
+
}
|
|
10311
|
+
]
|
|
10312
|
+
},
|
|
10313
|
+
{
|
|
10314
|
+
"kind": "function",
|
|
10315
|
+
"name": "wrapIf",
|
|
10316
|
+
"return": {
|
|
10317
|
+
"type": {
|
|
10318
|
+
"text": "TInner | TWrapper"
|
|
10319
|
+
}
|
|
10320
|
+
},
|
|
10321
|
+
"parameters": [
|
|
10322
|
+
{
|
|
10323
|
+
"name": "condition",
|
|
10324
|
+
"type": {
|
|
10325
|
+
"text": "unknown"
|
|
10326
|
+
}
|
|
10327
|
+
},
|
|
10328
|
+
{
|
|
10329
|
+
"name": "inner",
|
|
10330
|
+
"type": {
|
|
10331
|
+
"text": "() => TInner"
|
|
10332
|
+
}
|
|
10333
|
+
},
|
|
10334
|
+
{
|
|
10335
|
+
"name": "wrapper",
|
|
10336
|
+
"type": {
|
|
10337
|
+
"text": "(inner: TInner) => TWrapper"
|
|
10338
|
+
}
|
|
10339
|
+
}
|
|
10340
|
+
]
|
|
10341
|
+
},
|
|
10342
|
+
{
|
|
10343
|
+
"kind": "function",
|
|
10344
|
+
"name": "wrapIf",
|
|
10345
|
+
"parameters": [
|
|
10346
|
+
{
|
|
10347
|
+
"name": "condition",
|
|
10348
|
+
"type": {
|
|
10349
|
+
"text": "any"
|
|
10350
|
+
}
|
|
10351
|
+
},
|
|
10352
|
+
{
|
|
10353
|
+
"name": "inner",
|
|
10354
|
+
"type": {
|
|
10355
|
+
"text": "() => TInner"
|
|
10356
|
+
}
|
|
10357
|
+
},
|
|
10358
|
+
{
|
|
10359
|
+
"name": "wrapper",
|
|
10360
|
+
"type": {
|
|
10361
|
+
"text": "(innards: TInner) => TWrapper"
|
|
10362
|
+
}
|
|
10363
|
+
}
|
|
10364
|
+
],
|
|
10365
|
+
"return": {
|
|
10366
|
+
"type": {
|
|
10367
|
+
"text": ""
|
|
10368
|
+
}
|
|
10369
|
+
}
|
|
10370
|
+
}
|
|
10371
|
+
],
|
|
10372
|
+
"exports": [
|
|
10373
|
+
{
|
|
10374
|
+
"kind": "js",
|
|
10375
|
+
"name": "wrapIf",
|
|
10376
|
+
"declaration": {
|
|
10377
|
+
"name": "wrapIf",
|
|
10378
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
10379
|
+
}
|
|
10380
|
+
},
|
|
10381
|
+
{
|
|
10382
|
+
"kind": "js",
|
|
10383
|
+
"name": "wrapIf",
|
|
10384
|
+
"declaration": {
|
|
10385
|
+
"name": "wrapIf",
|
|
10386
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
10387
|
+
}
|
|
10388
|
+
},
|
|
10389
|
+
{
|
|
10390
|
+
"kind": "js",
|
|
10391
|
+
"name": "wrapIf",
|
|
10392
|
+
"declaration": {
|
|
10393
|
+
"name": "wrapIf",
|
|
10394
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
10395
|
+
}
|
|
10396
|
+
},
|
|
10397
|
+
{
|
|
10398
|
+
"kind": "js",
|
|
10399
|
+
"name": "wrapIf",
|
|
10400
|
+
"declaration": {
|
|
10401
|
+
"name": "wrapIf",
|
|
10402
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
10403
|
+
}
|
|
10404
|
+
}
|
|
10405
|
+
]
|
|
10406
|
+
},
|
|
10407
|
+
{
|
|
10408
|
+
"kind": "javascript-module",
|
|
10409
|
+
"path": "src/common/controllers/DirectionController.ts",
|
|
10410
|
+
"declarations": [
|
|
10411
|
+
{
|
|
10412
|
+
"kind": "class",
|
|
10413
|
+
"description": "",
|
|
10414
|
+
"name": "DirectionController",
|
|
10415
|
+
"members": [
|
|
10416
|
+
{
|
|
10417
|
+
"kind": "field",
|
|
10418
|
+
"name": "hosts",
|
|
10419
|
+
"privacy": "private",
|
|
10420
|
+
"static": true,
|
|
10421
|
+
"default": "new Set<ReactiveControllerHost>()"
|
|
10422
|
+
},
|
|
9989
10423
|
{
|
|
9990
10424
|
"kind": "field",
|
|
9991
10425
|
"name": "observer",
|
|
@@ -10850,276 +11284,34 @@
|
|
|
10850
11284
|
"exports": [
|
|
10851
11285
|
{
|
|
10852
11286
|
"kind": "js",
|
|
10853
|
-
"name": "DraftComponentMixin",
|
|
10854
|
-
"declaration": {
|
|
10855
|
-
"name": "DraftComponentMixin",
|
|
10856
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
10857
|
-
}
|
|
10858
|
-
}
|
|
10859
|
-
]
|
|
10860
|
-
},
|
|
10861
|
-
{
|
|
10862
|
-
"kind": "javascript-module",
|
|
10863
|
-
"path": "src/common/mixins/FocusableMixin.ts",
|
|
10864
|
-
"declarations": [
|
|
10865
|
-
{
|
|
10866
|
-
"kind": "class",
|
|
10867
|
-
"description": "",
|
|
10868
|
-
"name": "FocusableMixinInterface",
|
|
10869
|
-
"members": [
|
|
10870
|
-
{
|
|
10871
|
-
"kind": "field",
|
|
10872
|
-
"name": "focusableRef",
|
|
10873
|
-
"type": {
|
|
10874
|
-
"text": "Ref<HTMLElement>"
|
|
10875
|
-
},
|
|
10876
|
-
"privacy": "protected"
|
|
10877
|
-
},
|
|
10878
|
-
{
|
|
10879
|
-
"kind": "method",
|
|
10880
|
-
"name": "focus",
|
|
10881
|
-
"return": {
|
|
10882
|
-
"type": {
|
|
10883
|
-
"text": "void"
|
|
10884
|
-
}
|
|
10885
|
-
},
|
|
10886
|
-
"parameters": [
|
|
10887
|
-
{
|
|
10888
|
-
"name": "options",
|
|
10889
|
-
"optional": true,
|
|
10890
|
-
"type": {
|
|
10891
|
-
"text": "FocusOptions"
|
|
10892
|
-
}
|
|
10893
|
-
}
|
|
10894
|
-
]
|
|
10895
|
-
},
|
|
10896
|
-
{
|
|
10897
|
-
"kind": "method",
|
|
10898
|
-
"name": "blur",
|
|
10899
|
-
"return": {
|
|
10900
|
-
"type": {
|
|
10901
|
-
"text": "void"
|
|
10902
|
-
}
|
|
10903
|
-
}
|
|
10904
|
-
},
|
|
10905
|
-
{
|
|
10906
|
-
"kind": "method",
|
|
10907
|
-
"name": "click",
|
|
10908
|
-
"return": {
|
|
10909
|
-
"type": {
|
|
10910
|
-
"text": "void"
|
|
10911
|
-
}
|
|
10912
|
-
}
|
|
10913
|
-
}
|
|
10914
|
-
]
|
|
10915
|
-
},
|
|
10916
|
-
{
|
|
10917
|
-
"kind": "mixin",
|
|
10918
|
-
"description": "",
|
|
10919
|
-
"name": "FocusableMixin",
|
|
10920
|
-
"members": [
|
|
10921
|
-
{
|
|
10922
|
-
"kind": "field",
|
|
10923
|
-
"name": "focusableRef",
|
|
10924
|
-
"privacy": "protected"
|
|
10925
|
-
},
|
|
10926
|
-
{
|
|
10927
|
-
"kind": "method",
|
|
10928
|
-
"name": "focus",
|
|
10929
|
-
"parameters": [
|
|
10930
|
-
{
|
|
10931
|
-
"name": "options",
|
|
10932
|
-
"optional": true,
|
|
10933
|
-
"type": {
|
|
10934
|
-
"text": "FocusOptions"
|
|
10935
|
-
},
|
|
10936
|
-
"description": "An object which controls aspects of the focusing process."
|
|
10937
|
-
}
|
|
10938
|
-
],
|
|
10939
|
-
"description": "Programmatically move focus to the component."
|
|
10940
|
-
},
|
|
10941
|
-
{
|
|
10942
|
-
"kind": "method",
|
|
10943
|
-
"name": "blur",
|
|
10944
|
-
"description": "Programmatically remove focus from the component."
|
|
10945
|
-
},
|
|
10946
|
-
{
|
|
10947
|
-
"kind": "method",
|
|
10948
|
-
"name": "click",
|
|
10949
|
-
"description": "Programmatically simulates a click on the component."
|
|
10950
|
-
}
|
|
10951
|
-
],
|
|
10952
|
-
"parameters": [
|
|
10953
|
-
{
|
|
10954
|
-
"name": "superClass",
|
|
10955
|
-
"type": {
|
|
10956
|
-
"text": "T"
|
|
10957
|
-
}
|
|
10958
|
-
}
|
|
10959
|
-
]
|
|
10960
|
-
}
|
|
10961
|
-
],
|
|
10962
|
-
"exports": [
|
|
10963
|
-
{
|
|
10964
|
-
"kind": "js",
|
|
10965
|
-
"name": "FocusableMixinInterface",
|
|
10966
|
-
"declaration": {
|
|
10967
|
-
"name": "FocusableMixinInterface",
|
|
10968
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
10969
|
-
}
|
|
10970
|
-
},
|
|
10971
|
-
{
|
|
10972
|
-
"kind": "js",
|
|
10973
|
-
"name": "FocusableMixin",
|
|
11287
|
+
"name": "DraftComponentMixin",
|
|
10974
11288
|
"declaration": {
|
|
10975
|
-
"name": "
|
|
10976
|
-
"module": "src/common/mixins/
|
|
11289
|
+
"name": "DraftComponentMixin",
|
|
11290
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
10977
11291
|
}
|
|
10978
11292
|
}
|
|
10979
11293
|
]
|
|
10980
11294
|
},
|
|
10981
11295
|
{
|
|
10982
11296
|
"kind": "javascript-module",
|
|
10983
|
-
"path": "src/common/mixins/
|
|
11297
|
+
"path": "src/common/mixins/FocusableMixin.ts",
|
|
10984
11298
|
"declarations": [
|
|
10985
11299
|
{
|
|
10986
11300
|
"kind": "class",
|
|
10987
11301
|
"description": "",
|
|
10988
|
-
"name": "
|
|
11302
|
+
"name": "FocusableMixinInterface",
|
|
10989
11303
|
"members": [
|
|
10990
11304
|
{
|
|
10991
11305
|
"kind": "field",
|
|
10992
|
-
"name": "
|
|
10993
|
-
"type": {
|
|
10994
|
-
"text": "string"
|
|
10995
|
-
}
|
|
10996
|
-
},
|
|
10997
|
-
{
|
|
10998
|
-
"kind": "field",
|
|
10999
|
-
"name": "required",
|
|
11000
|
-
"type": {
|
|
11001
|
-
"text": "boolean"
|
|
11002
|
-
}
|
|
11003
|
-
},
|
|
11004
|
-
{
|
|
11005
|
-
"kind": "field",
|
|
11006
|
-
"name": "hint",
|
|
11007
|
-
"type": {
|
|
11008
|
-
"text": "string | undefined"
|
|
11009
|
-
}
|
|
11010
|
-
},
|
|
11011
|
-
{
|
|
11012
|
-
"kind": "field",
|
|
11013
|
-
"name": "hideLabel",
|
|
11014
|
-
"type": {
|
|
11015
|
-
"text": "boolean"
|
|
11016
|
-
}
|
|
11017
|
-
},
|
|
11018
|
-
{
|
|
11019
|
-
"kind": "field",
|
|
11020
|
-
"name": "placeholder",
|
|
11021
|
-
"type": {
|
|
11022
|
-
"text": "string | undefined"
|
|
11023
|
-
}
|
|
11024
|
-
},
|
|
11025
|
-
{
|
|
11026
|
-
"kind": "field",
|
|
11027
|
-
"name": "error",
|
|
11028
|
-
"type": {
|
|
11029
|
-
"text": "string | undefined"
|
|
11030
|
-
}
|
|
11031
|
-
},
|
|
11032
|
-
{
|
|
11033
|
-
"kind": "field",
|
|
11034
|
-
"name": "expand",
|
|
11035
|
-
"type": {
|
|
11036
|
-
"text": "boolean"
|
|
11037
|
-
}
|
|
11038
|
-
},
|
|
11039
|
-
{
|
|
11040
|
-
"kind": "field",
|
|
11041
|
-
"name": "inputId",
|
|
11042
|
-
"type": {
|
|
11043
|
-
"text": "string"
|
|
11044
|
-
},
|
|
11045
|
-
"privacy": "protected"
|
|
11046
|
-
},
|
|
11047
|
-
{
|
|
11048
|
-
"kind": "field",
|
|
11049
|
-
"name": "errorId",
|
|
11050
|
-
"type": {
|
|
11051
|
-
"text": "string"
|
|
11052
|
-
},
|
|
11053
|
-
"privacy": "protected"
|
|
11054
|
-
},
|
|
11055
|
-
{
|
|
11056
|
-
"kind": "field",
|
|
11057
|
-
"name": "hintId",
|
|
11058
|
-
"type": {
|
|
11059
|
-
"text": "string"
|
|
11060
|
-
},
|
|
11061
|
-
"privacy": "protected"
|
|
11062
|
-
},
|
|
11063
|
-
{
|
|
11064
|
-
"kind": "field",
|
|
11065
|
-
"name": "labelSlot",
|
|
11066
|
-
"type": {
|
|
11067
|
-
"text": "SlotController"
|
|
11068
|
-
},
|
|
11069
|
-
"privacy": "protected"
|
|
11070
|
-
},
|
|
11071
|
-
{
|
|
11072
|
-
"kind": "field",
|
|
11073
|
-
"name": "hintSlot",
|
|
11074
|
-
"type": {
|
|
11075
|
-
"text": "SlotController"
|
|
11076
|
-
},
|
|
11077
|
-
"privacy": "protected"
|
|
11078
|
-
},
|
|
11079
|
-
{
|
|
11080
|
-
"kind": "field",
|
|
11081
|
-
"name": "errorSlot",
|
|
11082
|
-
"type": {
|
|
11083
|
-
"text": "SlotController"
|
|
11084
|
-
},
|
|
11085
|
-
"privacy": "protected"
|
|
11086
|
-
},
|
|
11087
|
-
{
|
|
11088
|
-
"kind": "field",
|
|
11089
|
-
"name": "formData",
|
|
11090
|
-
"type": {
|
|
11091
|
-
"text": "FormDataController"
|
|
11092
|
-
},
|
|
11093
|
-
"privacy": "protected"
|
|
11094
|
-
},
|
|
11095
|
-
{
|
|
11096
|
-
"kind": "field",
|
|
11097
|
-
"name": "formValue",
|
|
11098
|
-
"type": {
|
|
11099
|
-
"text": "string | undefined"
|
|
11100
|
-
},
|
|
11101
|
-
"privacy": "protected"
|
|
11102
|
-
},
|
|
11103
|
-
{
|
|
11104
|
-
"kind": "field",
|
|
11105
|
-
"name": "hasError",
|
|
11106
|
-
"type": {
|
|
11107
|
-
"text": "boolean"
|
|
11108
|
-
},
|
|
11109
|
-
"privacy": "protected"
|
|
11110
|
-
},
|
|
11111
|
-
{
|
|
11112
|
-
"kind": "field",
|
|
11113
|
-
"name": "hasHint",
|
|
11306
|
+
"name": "focusableRef",
|
|
11114
11307
|
"type": {
|
|
11115
|
-
"text": "
|
|
11308
|
+
"text": "Ref<HTMLElement>"
|
|
11116
11309
|
},
|
|
11117
11310
|
"privacy": "protected"
|
|
11118
11311
|
},
|
|
11119
11312
|
{
|
|
11120
11313
|
"kind": "method",
|
|
11121
|
-
"name": "
|
|
11122
|
-
"privacy": "protected",
|
|
11314
|
+
"name": "focus",
|
|
11123
11315
|
"return": {
|
|
11124
11316
|
"type": {
|
|
11125
11317
|
"text": "void"
|
|
@@ -11127,68 +11319,29 @@
|
|
|
11127
11319
|
},
|
|
11128
11320
|
"parameters": [
|
|
11129
11321
|
{
|
|
11130
|
-
"name": "
|
|
11322
|
+
"name": "options",
|
|
11323
|
+
"optional": true,
|
|
11131
11324
|
"type": {
|
|
11132
|
-
"text": "
|
|
11325
|
+
"text": "FocusOptions"
|
|
11133
11326
|
}
|
|
11134
11327
|
}
|
|
11135
11328
|
]
|
|
11136
11329
|
},
|
|
11137
11330
|
{
|
|
11138
11331
|
"kind": "method",
|
|
11139
|
-
"name": "
|
|
11140
|
-
"privacy": "protected",
|
|
11332
|
+
"name": "blur",
|
|
11141
11333
|
"return": {
|
|
11142
11334
|
"type": {
|
|
11143
11335
|
"text": "void"
|
|
11144
11336
|
}
|
|
11145
|
-
},
|
|
11146
|
-
"parameters": [
|
|
11147
|
-
{
|
|
11148
|
-
"name": "e",
|
|
11149
|
-
"type": {
|
|
11150
|
-
"text": "Event"
|
|
11151
|
-
}
|
|
11152
|
-
}
|
|
11153
|
-
]
|
|
11154
|
-
},
|
|
11155
|
-
{
|
|
11156
|
-
"kind": "method",
|
|
11157
|
-
"name": "renderLabel",
|
|
11158
|
-
"privacy": "protected",
|
|
11159
|
-
"return": {
|
|
11160
|
-
"type": {
|
|
11161
|
-
"text": "TemplateResult"
|
|
11162
|
-
}
|
|
11163
|
-
}
|
|
11164
|
-
},
|
|
11165
|
-
{
|
|
11166
|
-
"kind": "method",
|
|
11167
|
-
"name": "renderError",
|
|
11168
|
-
"privacy": "protected",
|
|
11169
|
-
"return": {
|
|
11170
|
-
"type": {
|
|
11171
|
-
"text": "TemplateResult"
|
|
11172
|
-
}
|
|
11173
|
-
}
|
|
11174
|
-
},
|
|
11175
|
-
{
|
|
11176
|
-
"kind": "method",
|
|
11177
|
-
"name": "getDescribedBy",
|
|
11178
|
-
"privacy": "protected",
|
|
11179
|
-
"return": {
|
|
11180
|
-
"type": {
|
|
11181
|
-
"text": "string | undefined"
|
|
11182
|
-
}
|
|
11183
11337
|
}
|
|
11184
11338
|
},
|
|
11185
11339
|
{
|
|
11186
11340
|
"kind": "method",
|
|
11187
|
-
"name": "
|
|
11188
|
-
"privacy": "protected",
|
|
11341
|
+
"name": "click",
|
|
11189
11342
|
"return": {
|
|
11190
11343
|
"type": {
|
|
11191
|
-
"text": "
|
|
11344
|
+
"text": "void"
|
|
11192
11345
|
}
|
|
11193
11346
|
}
|
|
11194
11347
|
}
|
|
@@ -11197,331 +11350,280 @@
|
|
|
11197
11350
|
{
|
|
11198
11351
|
"kind": "mixin",
|
|
11199
11352
|
"description": "",
|
|
11200
|
-
"name": "
|
|
11353
|
+
"name": "FocusableMixin",
|
|
11201
11354
|
"members": [
|
|
11202
11355
|
{
|
|
11203
11356
|
"kind": "field",
|
|
11204
|
-
"name": "
|
|
11205
|
-
"privacy": "protected"
|
|
11206
|
-
"default": "new SlotController(this, \"label\")"
|
|
11207
|
-
},
|
|
11208
|
-
{
|
|
11209
|
-
"kind": "field",
|
|
11210
|
-
"name": "errorSlot",
|
|
11211
|
-
"privacy": "protected",
|
|
11212
|
-
"default": "new SlotController(this, \"error\")"
|
|
11213
|
-
},
|
|
11214
|
-
{
|
|
11215
|
-
"kind": "field",
|
|
11216
|
-
"name": "hintSlot",
|
|
11217
|
-
"privacy": "protected",
|
|
11218
|
-
"default": "new SlotController(this, \"hint\")"
|
|
11219
|
-
},
|
|
11220
|
-
{
|
|
11221
|
-
"kind": "field",
|
|
11222
|
-
"name": "formData",
|
|
11223
|
-
"privacy": "protected",
|
|
11224
|
-
"default": "new FormDataController(this, { value: () => this.formValue })"
|
|
11357
|
+
"name": "focusableRef",
|
|
11358
|
+
"privacy": "protected"
|
|
11225
11359
|
},
|
|
11226
11360
|
{
|
|
11227
|
-
"kind": "
|
|
11228
|
-
"name": "
|
|
11229
|
-
"
|
|
11361
|
+
"kind": "method",
|
|
11362
|
+
"name": "focus",
|
|
11363
|
+
"parameters": [
|
|
11364
|
+
{
|
|
11365
|
+
"name": "options",
|
|
11366
|
+
"optional": true,
|
|
11367
|
+
"type": {
|
|
11368
|
+
"text": "FocusOptions"
|
|
11369
|
+
},
|
|
11370
|
+
"description": "An object which controls aspects of the focusing process."
|
|
11371
|
+
}
|
|
11372
|
+
],
|
|
11373
|
+
"description": "Programmatically move focus to the component."
|
|
11230
11374
|
},
|
|
11231
11375
|
{
|
|
11232
|
-
"kind": "
|
|
11233
|
-
"name": "
|
|
11234
|
-
"
|
|
11235
|
-
"text": "string"
|
|
11236
|
-
},
|
|
11237
|
-
"privacy": "protected",
|
|
11238
|
-
"default": "\"input\""
|
|
11376
|
+
"kind": "method",
|
|
11377
|
+
"name": "blur",
|
|
11378
|
+
"description": "Programmatically remove focus from the component."
|
|
11239
11379
|
},
|
|
11240
11380
|
{
|
|
11241
|
-
"kind": "
|
|
11242
|
-
"name": "
|
|
11381
|
+
"kind": "method",
|
|
11382
|
+
"name": "click",
|
|
11383
|
+
"description": "Programmatically simulates a click on the component."
|
|
11384
|
+
}
|
|
11385
|
+
],
|
|
11386
|
+
"parameters": [
|
|
11387
|
+
{
|
|
11388
|
+
"name": "superClass",
|
|
11243
11389
|
"type": {
|
|
11244
|
-
"text": "
|
|
11245
|
-
}
|
|
11246
|
-
|
|
11247
|
-
|
|
11248
|
-
|
|
11390
|
+
"text": "T"
|
|
11391
|
+
}
|
|
11392
|
+
}
|
|
11393
|
+
]
|
|
11394
|
+
}
|
|
11395
|
+
],
|
|
11396
|
+
"exports": [
|
|
11397
|
+
{
|
|
11398
|
+
"kind": "js",
|
|
11399
|
+
"name": "FocusableMixinInterface",
|
|
11400
|
+
"declaration": {
|
|
11401
|
+
"name": "FocusableMixinInterface",
|
|
11402
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
11403
|
+
}
|
|
11404
|
+
},
|
|
11405
|
+
{
|
|
11406
|
+
"kind": "js",
|
|
11407
|
+
"name": "FocusableMixin",
|
|
11408
|
+
"declaration": {
|
|
11409
|
+
"name": "FocusableMixin",
|
|
11410
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
11411
|
+
}
|
|
11412
|
+
}
|
|
11413
|
+
]
|
|
11414
|
+
},
|
|
11415
|
+
{
|
|
11416
|
+
"kind": "javascript-module",
|
|
11417
|
+
"path": "src/common/mixins/FormAssociatedMixin.ts",
|
|
11418
|
+
"declarations": [
|
|
11419
|
+
{
|
|
11420
|
+
"kind": "class",
|
|
11421
|
+
"description": "",
|
|
11422
|
+
"name": "FormAssociatedMixinInterface",
|
|
11423
|
+
"members": [
|
|
11249
11424
|
{
|
|
11250
11425
|
"kind": "field",
|
|
11251
|
-
"name": "
|
|
11426
|
+
"name": "label",
|
|
11252
11427
|
"type": {
|
|
11253
11428
|
"text": "string"
|
|
11254
|
-
}
|
|
11255
|
-
"privacy": "protected",
|
|
11256
|
-
"default": "\"hint\""
|
|
11429
|
+
}
|
|
11257
11430
|
},
|
|
11258
11431
|
{
|
|
11259
11432
|
"kind": "field",
|
|
11260
|
-
"name": "
|
|
11433
|
+
"name": "required",
|
|
11261
11434
|
"type": {
|
|
11262
|
-
"text": "
|
|
11263
|
-
}
|
|
11264
|
-
"default": "\"\"",
|
|
11265
|
-
"description": "Label for the input.",
|
|
11266
|
-
"attribute": "label"
|
|
11435
|
+
"text": "boolean"
|
|
11436
|
+
}
|
|
11267
11437
|
},
|
|
11268
11438
|
{
|
|
11269
11439
|
"kind": "field",
|
|
11270
11440
|
"name": "hint",
|
|
11271
11441
|
"type": {
|
|
11272
11442
|
"text": "string | undefined"
|
|
11273
|
-
}
|
|
11274
|
-
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
11275
|
-
"attribute": "hint"
|
|
11443
|
+
}
|
|
11276
11444
|
},
|
|
11277
11445
|
{
|
|
11278
11446
|
"kind": "field",
|
|
11279
11447
|
"name": "hideLabel",
|
|
11280
11448
|
"type": {
|
|
11281
11449
|
"text": "boolean"
|
|
11282
|
-
}
|
|
11283
|
-
"default": "false",
|
|
11284
|
-
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
11285
|
-
"attribute": "hide-label"
|
|
11450
|
+
}
|
|
11286
11451
|
},
|
|
11287
11452
|
{
|
|
11288
11453
|
"kind": "field",
|
|
11289
11454
|
"name": "placeholder",
|
|
11290
11455
|
"type": {
|
|
11291
11456
|
"text": "string | undefined"
|
|
11292
|
-
}
|
|
11293
|
-
"description": "Placeholder text to display within the input.",
|
|
11294
|
-
"attribute": "placeholder"
|
|
11457
|
+
}
|
|
11295
11458
|
},
|
|
11296
11459
|
{
|
|
11297
11460
|
"kind": "field",
|
|
11298
11461
|
"name": "error",
|
|
11299
11462
|
"type": {
|
|
11300
11463
|
"text": "string | undefined"
|
|
11301
|
-
}
|
|
11302
|
-
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
11303
|
-
"attribute": "error"
|
|
11464
|
+
}
|
|
11304
11465
|
},
|
|
11305
11466
|
{
|
|
11306
11467
|
"kind": "field",
|
|
11307
|
-
"name": "
|
|
11468
|
+
"name": "expand",
|
|
11308
11469
|
"type": {
|
|
11309
11470
|
"text": "boolean"
|
|
11310
|
-
}
|
|
11311
|
-
"default": "false",
|
|
11312
|
-
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
11313
|
-
"attribute": "required"
|
|
11471
|
+
}
|
|
11314
11472
|
},
|
|
11315
11473
|
{
|
|
11316
11474
|
"kind": "field",
|
|
11317
|
-
"name": "
|
|
11475
|
+
"name": "inputId",
|
|
11318
11476
|
"type": {
|
|
11319
|
-
"text": "
|
|
11477
|
+
"text": "string"
|
|
11320
11478
|
},
|
|
11321
|
-
"default": "false",
|
|
11322
|
-
"description": "Controls whether the input expands to fill the width of its container.",
|
|
11323
|
-
"attribute": "expand",
|
|
11324
|
-
"reflects": true
|
|
11325
|
-
},
|
|
11326
|
-
{
|
|
11327
|
-
"kind": "method",
|
|
11328
|
-
"name": "handleInput",
|
|
11329
|
-
"privacy": "protected",
|
|
11330
|
-
"parameters": [
|
|
11331
|
-
{
|
|
11332
|
-
"name": "e",
|
|
11333
|
-
"type": {
|
|
11334
|
-
"text": "Event"
|
|
11335
|
-
}
|
|
11336
|
-
}
|
|
11337
|
-
]
|
|
11338
|
-
},
|
|
11339
|
-
{
|
|
11340
|
-
"kind": "method",
|
|
11341
|
-
"name": "handleChange",
|
|
11342
|
-
"privacy": "protected",
|
|
11343
|
-
"parameters": [
|
|
11344
|
-
{
|
|
11345
|
-
"name": "e",
|
|
11346
|
-
"type": {
|
|
11347
|
-
"text": "Event"
|
|
11348
|
-
}
|
|
11349
|
-
}
|
|
11350
|
-
]
|
|
11351
|
-
},
|
|
11352
|
-
{
|
|
11353
|
-
"kind": "method",
|
|
11354
|
-
"name": "renderLabel",
|
|
11355
|
-
"privacy": "protected"
|
|
11356
|
-
},
|
|
11357
|
-
{
|
|
11358
|
-
"kind": "method",
|
|
11359
|
-
"name": "renderError",
|
|
11360
|
-
"privacy": "protected"
|
|
11361
|
-
},
|
|
11362
|
-
{
|
|
11363
|
-
"kind": "method",
|
|
11364
|
-
"name": "getDescribedBy",
|
|
11365
|
-
"privacy": "protected"
|
|
11366
|
-
},
|
|
11367
|
-
{
|
|
11368
|
-
"kind": "method",
|
|
11369
|
-
"name": "getInvalid",
|
|
11370
|
-
"privacy": "protected"
|
|
11371
|
-
},
|
|
11372
|
-
{
|
|
11373
|
-
"kind": "field",
|
|
11374
|
-
"name": "hasHint",
|
|
11375
11479
|
"privacy": "protected"
|
|
11376
11480
|
},
|
|
11377
11481
|
{
|
|
11378
11482
|
"kind": "field",
|
|
11379
|
-
"name": "
|
|
11380
|
-
"privacy": "protected"
|
|
11381
|
-
}
|
|
11382
|
-
],
|
|
11383
|
-
"events": [
|
|
11384
|
-
{
|
|
11385
|
-
"name": "input",
|
|
11386
|
-
"type": {
|
|
11387
|
-
"text": "NordEvent"
|
|
11388
|
-
},
|
|
11389
|
-
"description": "Fired as the user types into the input."
|
|
11390
|
-
},
|
|
11391
|
-
{
|
|
11392
|
-
"name": "change",
|
|
11393
|
-
"type": {
|
|
11394
|
-
"text": "NordEvent"
|
|
11395
|
-
},
|
|
11396
|
-
"description": "Fired whenever the input's value is changed via user interaction."
|
|
11397
|
-
}
|
|
11398
|
-
],
|
|
11399
|
-
"attributes": [
|
|
11400
|
-
{
|
|
11401
|
-
"name": "label",
|
|
11483
|
+
"name": "errorId",
|
|
11402
11484
|
"type": {
|
|
11403
11485
|
"text": "string"
|
|
11404
11486
|
},
|
|
11405
|
-
"
|
|
11406
|
-
"description": "Label for the input.",
|
|
11407
|
-
"fieldName": "label"
|
|
11408
|
-
},
|
|
11409
|
-
{
|
|
11410
|
-
"name": "hint",
|
|
11411
|
-
"type": {
|
|
11412
|
-
"text": "string | undefined"
|
|
11413
|
-
},
|
|
11414
|
-
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
11415
|
-
"fieldName": "hint"
|
|
11487
|
+
"privacy": "protected"
|
|
11416
11488
|
},
|
|
11417
11489
|
{
|
|
11418
|
-
"
|
|
11490
|
+
"kind": "field",
|
|
11491
|
+
"name": "hintId",
|
|
11419
11492
|
"type": {
|
|
11420
|
-
"text": "
|
|
11493
|
+
"text": "string"
|
|
11421
11494
|
},
|
|
11422
|
-
"
|
|
11423
|
-
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
11424
|
-
"fieldName": "hideLabel"
|
|
11495
|
+
"privacy": "protected"
|
|
11425
11496
|
},
|
|
11426
11497
|
{
|
|
11427
|
-
"
|
|
11498
|
+
"kind": "field",
|
|
11499
|
+
"name": "labelSlot",
|
|
11428
11500
|
"type": {
|
|
11429
|
-
"text": "
|
|
11501
|
+
"text": "SlotController"
|
|
11430
11502
|
},
|
|
11431
|
-
"
|
|
11432
|
-
"fieldName": "placeholder"
|
|
11503
|
+
"privacy": "protected"
|
|
11433
11504
|
},
|
|
11434
11505
|
{
|
|
11435
|
-
"
|
|
11506
|
+
"kind": "field",
|
|
11507
|
+
"name": "hintSlot",
|
|
11436
11508
|
"type": {
|
|
11437
|
-
"text": "
|
|
11509
|
+
"text": "SlotController"
|
|
11438
11510
|
},
|
|
11439
|
-
"
|
|
11440
|
-
"fieldName": "error"
|
|
11511
|
+
"privacy": "protected"
|
|
11441
11512
|
},
|
|
11442
11513
|
{
|
|
11443
|
-
"
|
|
11514
|
+
"kind": "field",
|
|
11515
|
+
"name": "errorSlot",
|
|
11444
11516
|
"type": {
|
|
11445
|
-
"text": "
|
|
11517
|
+
"text": "SlotController"
|
|
11446
11518
|
},
|
|
11447
|
-
"
|
|
11448
|
-
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
11449
|
-
"fieldName": "required"
|
|
11519
|
+
"privacy": "protected"
|
|
11450
11520
|
},
|
|
11451
|
-
{
|
|
11452
|
-
"name": "expand",
|
|
11453
|
-
"type": {
|
|
11454
|
-
"text": "boolean"
|
|
11455
|
-
},
|
|
11456
|
-
"default": "false",
|
|
11457
|
-
"description": "Controls whether the input expands to fill the width of its container.",
|
|
11458
|
-
"fieldName": "expand"
|
|
11459
|
-
}
|
|
11460
|
-
],
|
|
11461
|
-
"parameters": [
|
|
11462
|
-
{
|
|
11463
|
-
"name": "superClass",
|
|
11464
|
-
"type": {
|
|
11465
|
-
"text": "T"
|
|
11466
|
-
}
|
|
11467
|
-
}
|
|
11468
|
-
]
|
|
11469
|
-
}
|
|
11470
|
-
],
|
|
11471
|
-
"exports": [
|
|
11472
|
-
{
|
|
11473
|
-
"kind": "js",
|
|
11474
|
-
"name": "FormAssociatedMixinInterface",
|
|
11475
|
-
"declaration": {
|
|
11476
|
-
"name": "FormAssociatedMixinInterface",
|
|
11477
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11478
|
-
}
|
|
11479
|
-
},
|
|
11480
|
-
{
|
|
11481
|
-
"kind": "js",
|
|
11482
|
-
"name": "FormAssociatedMixin",
|
|
11483
|
-
"declaration": {
|
|
11484
|
-
"name": "FormAssociatedMixin",
|
|
11485
|
-
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11486
|
-
}
|
|
11487
|
-
}
|
|
11488
|
-
]
|
|
11489
|
-
},
|
|
11490
|
-
{
|
|
11491
|
-
"kind": "javascript-module",
|
|
11492
|
-
"path": "src/common/mixins/InputMixin.ts",
|
|
11493
|
-
"declarations": [
|
|
11494
|
-
{
|
|
11495
|
-
"kind": "class",
|
|
11496
|
-
"description": "",
|
|
11497
|
-
"name": "InputMixinInterface",
|
|
11498
|
-
"members": [
|
|
11499
11521
|
{
|
|
11500
11522
|
"kind": "field",
|
|
11501
|
-
"name": "
|
|
11523
|
+
"name": "formData",
|
|
11502
11524
|
"type": {
|
|
11503
|
-
"text": "
|
|
11504
|
-
}
|
|
11525
|
+
"text": "FormDataController"
|
|
11526
|
+
},
|
|
11527
|
+
"privacy": "protected"
|
|
11505
11528
|
},
|
|
11506
11529
|
{
|
|
11507
11530
|
"kind": "field",
|
|
11508
|
-
"name": "
|
|
11531
|
+
"name": "formValue",
|
|
11509
11532
|
"type": {
|
|
11510
|
-
"text": "string"
|
|
11511
|
-
}
|
|
11533
|
+
"text": "string | undefined"
|
|
11534
|
+
},
|
|
11535
|
+
"privacy": "protected"
|
|
11512
11536
|
},
|
|
11513
11537
|
{
|
|
11514
11538
|
"kind": "field",
|
|
11515
|
-
"name": "
|
|
11539
|
+
"name": "hasError",
|
|
11516
11540
|
"type": {
|
|
11517
11541
|
"text": "boolean"
|
|
11518
|
-
}
|
|
11542
|
+
},
|
|
11543
|
+
"privacy": "protected"
|
|
11519
11544
|
},
|
|
11520
11545
|
{
|
|
11521
11546
|
"kind": "field",
|
|
11522
|
-
"name": "
|
|
11547
|
+
"name": "hasHint",
|
|
11523
11548
|
"type": {
|
|
11524
|
-
"text": "
|
|
11549
|
+
"text": "boolean"
|
|
11550
|
+
},
|
|
11551
|
+
"privacy": "protected"
|
|
11552
|
+
},
|
|
11553
|
+
{
|
|
11554
|
+
"kind": "method",
|
|
11555
|
+
"name": "handleChange",
|
|
11556
|
+
"privacy": "protected",
|
|
11557
|
+
"return": {
|
|
11558
|
+
"type": {
|
|
11559
|
+
"text": "void"
|
|
11560
|
+
}
|
|
11561
|
+
},
|
|
11562
|
+
"parameters": [
|
|
11563
|
+
{
|
|
11564
|
+
"name": "e",
|
|
11565
|
+
"type": {
|
|
11566
|
+
"text": "Event"
|
|
11567
|
+
}
|
|
11568
|
+
}
|
|
11569
|
+
]
|
|
11570
|
+
},
|
|
11571
|
+
{
|
|
11572
|
+
"kind": "method",
|
|
11573
|
+
"name": "handleInput",
|
|
11574
|
+
"privacy": "protected",
|
|
11575
|
+
"return": {
|
|
11576
|
+
"type": {
|
|
11577
|
+
"text": "void"
|
|
11578
|
+
}
|
|
11579
|
+
},
|
|
11580
|
+
"parameters": [
|
|
11581
|
+
{
|
|
11582
|
+
"name": "e",
|
|
11583
|
+
"type": {
|
|
11584
|
+
"text": "Event"
|
|
11585
|
+
}
|
|
11586
|
+
}
|
|
11587
|
+
]
|
|
11588
|
+
},
|
|
11589
|
+
{
|
|
11590
|
+
"kind": "method",
|
|
11591
|
+
"name": "renderLabel",
|
|
11592
|
+
"privacy": "protected",
|
|
11593
|
+
"return": {
|
|
11594
|
+
"type": {
|
|
11595
|
+
"text": "TemplateResult"
|
|
11596
|
+
}
|
|
11597
|
+
}
|
|
11598
|
+
},
|
|
11599
|
+
{
|
|
11600
|
+
"kind": "method",
|
|
11601
|
+
"name": "renderError",
|
|
11602
|
+
"privacy": "protected",
|
|
11603
|
+
"return": {
|
|
11604
|
+
"type": {
|
|
11605
|
+
"text": "TemplateResult"
|
|
11606
|
+
}
|
|
11607
|
+
}
|
|
11608
|
+
},
|
|
11609
|
+
{
|
|
11610
|
+
"kind": "method",
|
|
11611
|
+
"name": "getDescribedBy",
|
|
11612
|
+
"privacy": "protected",
|
|
11613
|
+
"return": {
|
|
11614
|
+
"type": {
|
|
11615
|
+
"text": "string | undefined"
|
|
11616
|
+
}
|
|
11617
|
+
}
|
|
11618
|
+
},
|
|
11619
|
+
{
|
|
11620
|
+
"kind": "method",
|
|
11621
|
+
"name": "getInvalid",
|
|
11622
|
+
"privacy": "protected",
|
|
11623
|
+
"return": {
|
|
11624
|
+
"type": {
|
|
11625
|
+
"text": "\"true\" | undefined"
|
|
11626
|
+
}
|
|
11525
11627
|
}
|
|
11526
11628
|
}
|
|
11527
11629
|
]
|
|
@@ -11529,308 +11631,272 @@
|
|
|
11529
11631
|
{
|
|
11530
11632
|
"kind": "mixin",
|
|
11531
11633
|
"description": "",
|
|
11532
|
-
"name": "
|
|
11634
|
+
"name": "FormAssociatedMixin",
|
|
11533
11635
|
"members": [
|
|
11534
11636
|
{
|
|
11535
11637
|
"kind": "field",
|
|
11536
|
-
"name": "
|
|
11537
|
-
"
|
|
11538
|
-
|
|
11539
|
-
},
|
|
11540
|
-
"default": "false",
|
|
11541
|
-
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
11542
|
-
"attribute": "disabled",
|
|
11543
|
-
"reflects": true
|
|
11638
|
+
"name": "labelSlot",
|
|
11639
|
+
"privacy": "protected",
|
|
11640
|
+
"default": "new SlotController(this, \"label\")"
|
|
11544
11641
|
},
|
|
11545
11642
|
{
|
|
11546
11643
|
"kind": "field",
|
|
11547
|
-
"name": "
|
|
11548
|
-
"
|
|
11549
|
-
|
|
11550
|
-
},
|
|
11551
|
-
"description": "The name of the form component.",
|
|
11552
|
-
"attribute": "name"
|
|
11644
|
+
"name": "errorSlot",
|
|
11645
|
+
"privacy": "protected",
|
|
11646
|
+
"default": "new SlotController(this, \"error\")"
|
|
11553
11647
|
},
|
|
11554
11648
|
{
|
|
11555
11649
|
"kind": "field",
|
|
11556
|
-
"name": "
|
|
11557
|
-
"
|
|
11558
|
-
|
|
11559
|
-
},
|
|
11560
|
-
"default": "\"\"",
|
|
11561
|
-
"description": "The value of the form component.",
|
|
11562
|
-
"attribute": "value"
|
|
11650
|
+
"name": "hintSlot",
|
|
11651
|
+
"privacy": "protected",
|
|
11652
|
+
"default": "new SlotController(this, \"hint\")"
|
|
11563
11653
|
},
|
|
11564
11654
|
{
|
|
11565
11655
|
"kind": "field",
|
|
11566
|
-
"name": "
|
|
11656
|
+
"name": "formData",
|
|
11567
11657
|
"privacy": "protected",
|
|
11568
|
-
"
|
|
11569
|
-
}
|
|
11570
|
-
],
|
|
11571
|
-
"attributes": [
|
|
11658
|
+
"default": "new FormDataController(this, { value: () => this.formValue })"
|
|
11659
|
+
},
|
|
11572
11660
|
{
|
|
11573
|
-
"
|
|
11574
|
-
"
|
|
11575
|
-
|
|
11576
|
-
},
|
|
11577
|
-
"default": "false",
|
|
11578
|
-
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
11579
|
-
"fieldName": "disabled"
|
|
11661
|
+
"kind": "field",
|
|
11662
|
+
"name": "formValue",
|
|
11663
|
+
"privacy": "protected"
|
|
11580
11664
|
},
|
|
11581
11665
|
{
|
|
11582
|
-
"
|
|
11666
|
+
"kind": "field",
|
|
11667
|
+
"name": "inputId",
|
|
11583
11668
|
"type": {
|
|
11584
|
-
"text": "string
|
|
11669
|
+
"text": "string"
|
|
11585
11670
|
},
|
|
11586
|
-
"
|
|
11587
|
-
"
|
|
11671
|
+
"privacy": "protected",
|
|
11672
|
+
"default": "\"input\""
|
|
11588
11673
|
},
|
|
11589
11674
|
{
|
|
11590
|
-
"
|
|
11675
|
+
"kind": "field",
|
|
11676
|
+
"name": "errorId",
|
|
11591
11677
|
"type": {
|
|
11592
11678
|
"text": "string"
|
|
11593
11679
|
},
|
|
11594
|
-
"
|
|
11595
|
-
"
|
|
11596
|
-
"fieldName": "value"
|
|
11597
|
-
}
|
|
11598
|
-
],
|
|
11599
|
-
"parameters": [
|
|
11600
|
-
{
|
|
11601
|
-
"name": "superClass",
|
|
11602
|
-
"type": {
|
|
11603
|
-
"text": "T"
|
|
11604
|
-
}
|
|
11605
|
-
}
|
|
11606
|
-
]
|
|
11607
|
-
}
|
|
11608
|
-
],
|
|
11609
|
-
"exports": [
|
|
11610
|
-
{
|
|
11611
|
-
"kind": "js",
|
|
11612
|
-
"name": "InputMixinInterface",
|
|
11613
|
-
"declaration": {
|
|
11614
|
-
"name": "InputMixinInterface",
|
|
11615
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
11616
|
-
}
|
|
11617
|
-
},
|
|
11618
|
-
{
|
|
11619
|
-
"kind": "js",
|
|
11620
|
-
"name": "InputMixin",
|
|
11621
|
-
"declaration": {
|
|
11622
|
-
"name": "InputMixin",
|
|
11623
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
11624
|
-
}
|
|
11625
|
-
}
|
|
11626
|
-
]
|
|
11627
|
-
},
|
|
11628
|
-
{
|
|
11629
|
-
"kind": "javascript-module",
|
|
11630
|
-
"path": "src/common/directives/cond.ts",
|
|
11631
|
-
"declarations": [
|
|
11632
|
-
{
|
|
11633
|
-
"kind": "function",
|
|
11634
|
-
"name": "cond",
|
|
11635
|
-
"return": {
|
|
11636
|
-
"type": {
|
|
11637
|
-
"text": "typeof value | typeof nothing"
|
|
11638
|
-
}
|
|
11639
|
-
},
|
|
11640
|
-
"parameters": [
|
|
11641
|
-
{
|
|
11642
|
-
"name": "value",
|
|
11643
|
-
"type": {
|
|
11644
|
-
"text": "any"
|
|
11645
|
-
}
|
|
11646
|
-
}
|
|
11647
|
-
],
|
|
11648
|
-
"description": "if value is truthy, return it, otherwise return nothing"
|
|
11649
|
-
},
|
|
11650
|
-
{
|
|
11651
|
-
"kind": "function",
|
|
11652
|
-
"name": "cond",
|
|
11653
|
-
"return": {
|
|
11654
|
-
"type": {
|
|
11655
|
-
"text": "typeof trueCase | typeof nothing"
|
|
11656
|
-
}
|
|
11657
|
-
},
|
|
11658
|
-
"parameters": [
|
|
11659
|
-
{
|
|
11660
|
-
"name": "condition",
|
|
11661
|
-
"type": {
|
|
11662
|
-
"text": "unknown"
|
|
11663
|
-
}
|
|
11680
|
+
"privacy": "protected",
|
|
11681
|
+
"default": "\"error\""
|
|
11664
11682
|
},
|
|
11665
11683
|
{
|
|
11666
|
-
"
|
|
11684
|
+
"kind": "field",
|
|
11685
|
+
"name": "hintId",
|
|
11667
11686
|
"type": {
|
|
11668
|
-
"text": "
|
|
11669
|
-
}
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
},
|
|
11674
|
-
{
|
|
11675
|
-
"kind": "function",
|
|
11676
|
-
"name": "cond",
|
|
11677
|
-
"return": {
|
|
11678
|
-
"type": {
|
|
11679
|
-
"text": "typeof trueCase"
|
|
11680
|
-
}
|
|
11681
|
-
},
|
|
11682
|
-
"parameters": [
|
|
11687
|
+
"text": "string"
|
|
11688
|
+
},
|
|
11689
|
+
"privacy": "protected",
|
|
11690
|
+
"default": "\"hint\""
|
|
11691
|
+
},
|
|
11683
11692
|
{
|
|
11684
|
-
"
|
|
11693
|
+
"kind": "field",
|
|
11694
|
+
"name": "label",
|
|
11685
11695
|
"type": {
|
|
11686
|
-
"text": "
|
|
11687
|
-
}
|
|
11696
|
+
"text": "string"
|
|
11697
|
+
},
|
|
11698
|
+
"default": "\"\"",
|
|
11699
|
+
"description": "Label for the input.",
|
|
11700
|
+
"attribute": "label"
|
|
11688
11701
|
},
|
|
11689
11702
|
{
|
|
11690
|
-
"
|
|
11703
|
+
"kind": "field",
|
|
11704
|
+
"name": "hint",
|
|
11691
11705
|
"type": {
|
|
11692
|
-
"text": "
|
|
11693
|
-
}
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
},
|
|
11698
|
-
{
|
|
11699
|
-
"kind": "function",
|
|
11700
|
-
"name": "cond",
|
|
11701
|
-
"return": {
|
|
11702
|
-
"type": {
|
|
11703
|
-
"text": "typeof nothing"
|
|
11704
|
-
}
|
|
11705
|
-
},
|
|
11706
|
-
"parameters": [
|
|
11706
|
+
"text": "string | undefined"
|
|
11707
|
+
},
|
|
11708
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
11709
|
+
"attribute": "hint"
|
|
11710
|
+
},
|
|
11707
11711
|
{
|
|
11708
|
-
"
|
|
11712
|
+
"kind": "field",
|
|
11713
|
+
"name": "hideLabel",
|
|
11709
11714
|
"type": {
|
|
11710
|
-
"text": "
|
|
11711
|
-
}
|
|
11715
|
+
"text": "boolean"
|
|
11716
|
+
},
|
|
11717
|
+
"default": "false",
|
|
11718
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
11719
|
+
"attribute": "hide-label"
|
|
11712
11720
|
},
|
|
11713
11721
|
{
|
|
11714
|
-
"
|
|
11722
|
+
"kind": "field",
|
|
11723
|
+
"name": "placeholder",
|
|
11715
11724
|
"type": {
|
|
11716
|
-
"text": "
|
|
11717
|
-
}
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
},
|
|
11722
|
-
{
|
|
11723
|
-
"kind": "function",
|
|
11724
|
-
"name": "cond",
|
|
11725
|
-
"return": {
|
|
11726
|
-
"type": {
|
|
11727
|
-
"text": "typeof trueCase | typeof falseCase"
|
|
11728
|
-
}
|
|
11729
|
-
},
|
|
11730
|
-
"parameters": [
|
|
11725
|
+
"text": "string | undefined"
|
|
11726
|
+
},
|
|
11727
|
+
"description": "Placeholder text to display within the input.",
|
|
11728
|
+
"attribute": "placeholder"
|
|
11729
|
+
},
|
|
11731
11730
|
{
|
|
11732
|
-
"
|
|
11731
|
+
"kind": "field",
|
|
11732
|
+
"name": "error",
|
|
11733
11733
|
"type": {
|
|
11734
|
-
"text": "
|
|
11735
|
-
}
|
|
11734
|
+
"text": "string | undefined"
|
|
11735
|
+
},
|
|
11736
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
11737
|
+
"attribute": "error"
|
|
11736
11738
|
},
|
|
11737
11739
|
{
|
|
11738
|
-
"
|
|
11740
|
+
"kind": "field",
|
|
11741
|
+
"name": "required",
|
|
11739
11742
|
"type": {
|
|
11740
|
-
"text": "
|
|
11741
|
-
}
|
|
11743
|
+
"text": "boolean"
|
|
11744
|
+
},
|
|
11745
|
+
"default": "false",
|
|
11746
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
11747
|
+
"attribute": "required"
|
|
11742
11748
|
},
|
|
11743
11749
|
{
|
|
11744
|
-
"
|
|
11750
|
+
"kind": "field",
|
|
11751
|
+
"name": "expand",
|
|
11745
11752
|
"type": {
|
|
11746
|
-
"text": "
|
|
11747
|
-
}
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11753
|
-
"kind": "function",
|
|
11754
|
-
"name": "cond",
|
|
11755
|
-
"return": {
|
|
11756
|
-
"type": {
|
|
11757
|
-
"text": "typeof trueCase"
|
|
11758
|
-
}
|
|
11759
|
-
},
|
|
11760
|
-
"parameters": [
|
|
11753
|
+
"text": "boolean"
|
|
11754
|
+
},
|
|
11755
|
+
"default": "false",
|
|
11756
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
11757
|
+
"attribute": "expand",
|
|
11758
|
+
"reflects": true
|
|
11759
|
+
},
|
|
11761
11760
|
{
|
|
11762
|
-
"
|
|
11763
|
-
"
|
|
11764
|
-
|
|
11765
|
-
|
|
11761
|
+
"kind": "method",
|
|
11762
|
+
"name": "handleInput",
|
|
11763
|
+
"privacy": "protected",
|
|
11764
|
+
"parameters": [
|
|
11765
|
+
{
|
|
11766
|
+
"name": "e",
|
|
11767
|
+
"type": {
|
|
11768
|
+
"text": "Event"
|
|
11769
|
+
}
|
|
11770
|
+
}
|
|
11771
|
+
]
|
|
11766
11772
|
},
|
|
11767
11773
|
{
|
|
11768
|
-
"
|
|
11774
|
+
"kind": "method",
|
|
11775
|
+
"name": "handleChange",
|
|
11776
|
+
"privacy": "protected",
|
|
11777
|
+
"parameters": [
|
|
11778
|
+
{
|
|
11779
|
+
"name": "e",
|
|
11780
|
+
"type": {
|
|
11781
|
+
"text": "Event"
|
|
11782
|
+
}
|
|
11783
|
+
}
|
|
11784
|
+
]
|
|
11785
|
+
},
|
|
11786
|
+
{
|
|
11787
|
+
"kind": "method",
|
|
11788
|
+
"name": "renderLabel",
|
|
11789
|
+
"privacy": "protected"
|
|
11790
|
+
},
|
|
11791
|
+
{
|
|
11792
|
+
"kind": "method",
|
|
11793
|
+
"name": "renderError",
|
|
11794
|
+
"privacy": "protected"
|
|
11795
|
+
},
|
|
11796
|
+
{
|
|
11797
|
+
"kind": "method",
|
|
11798
|
+
"name": "getDescribedBy",
|
|
11799
|
+
"privacy": "protected"
|
|
11800
|
+
},
|
|
11801
|
+
{
|
|
11802
|
+
"kind": "method",
|
|
11803
|
+
"name": "getInvalid",
|
|
11804
|
+
"privacy": "protected"
|
|
11805
|
+
},
|
|
11806
|
+
{
|
|
11807
|
+
"kind": "field",
|
|
11808
|
+
"name": "hasHint",
|
|
11809
|
+
"privacy": "protected"
|
|
11810
|
+
},
|
|
11811
|
+
{
|
|
11812
|
+
"kind": "field",
|
|
11813
|
+
"name": "hasError",
|
|
11814
|
+
"privacy": "protected"
|
|
11815
|
+
}
|
|
11816
|
+
],
|
|
11817
|
+
"events": [
|
|
11818
|
+
{
|
|
11819
|
+
"name": "input",
|
|
11769
11820
|
"type": {
|
|
11770
|
-
"text": "
|
|
11771
|
-
}
|
|
11821
|
+
"text": "NordEvent"
|
|
11822
|
+
},
|
|
11823
|
+
"description": "Fired as the user types into the input."
|
|
11772
11824
|
},
|
|
11773
11825
|
{
|
|
11774
|
-
"name": "
|
|
11826
|
+
"name": "change",
|
|
11775
11827
|
"type": {
|
|
11776
|
-
"text": "
|
|
11777
|
-
}
|
|
11828
|
+
"text": "NordEvent"
|
|
11829
|
+
},
|
|
11830
|
+
"description": "Fired whenever the input's value is changed via user interaction."
|
|
11778
11831
|
}
|
|
11779
11832
|
],
|
|
11780
|
-
"
|
|
11781
|
-
},
|
|
11782
|
-
{
|
|
11783
|
-
"kind": "function",
|
|
11784
|
-
"name": "cond",
|
|
11785
|
-
"return": {
|
|
11786
|
-
"type": {
|
|
11787
|
-
"text": "typeof falseCase"
|
|
11788
|
-
}
|
|
11789
|
-
},
|
|
11790
|
-
"parameters": [
|
|
11833
|
+
"attributes": [
|
|
11791
11834
|
{
|
|
11792
|
-
"name": "
|
|
11835
|
+
"name": "label",
|
|
11793
11836
|
"type": {
|
|
11794
|
-
"text": "
|
|
11795
|
-
}
|
|
11837
|
+
"text": "string"
|
|
11838
|
+
},
|
|
11839
|
+
"default": "\"\"",
|
|
11840
|
+
"description": "Label for the input.",
|
|
11841
|
+
"fieldName": "label"
|
|
11796
11842
|
},
|
|
11797
11843
|
{
|
|
11798
|
-
"name": "
|
|
11844
|
+
"name": "hint",
|
|
11799
11845
|
"type": {
|
|
11800
|
-
"text": "
|
|
11801
|
-
}
|
|
11846
|
+
"text": "string | undefined"
|
|
11847
|
+
},
|
|
11848
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
11849
|
+
"fieldName": "hint"
|
|
11802
11850
|
},
|
|
11803
11851
|
{
|
|
11804
|
-
"name": "
|
|
11852
|
+
"name": "hide-label",
|
|
11805
11853
|
"type": {
|
|
11806
|
-
"text": "
|
|
11807
|
-
}
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
{
|
|
11813
|
-
"kind": "function",
|
|
11814
|
-
"name": "cond",
|
|
11815
|
-
"parameters": [
|
|
11854
|
+
"text": "boolean"
|
|
11855
|
+
},
|
|
11856
|
+
"default": "false",
|
|
11857
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
11858
|
+
"fieldName": "hideLabel"
|
|
11859
|
+
},
|
|
11816
11860
|
{
|
|
11817
|
-
"name": "
|
|
11861
|
+
"name": "placeholder",
|
|
11818
11862
|
"type": {
|
|
11819
|
-
"text": "
|
|
11820
|
-
}
|
|
11863
|
+
"text": "string | undefined"
|
|
11864
|
+
},
|
|
11865
|
+
"description": "Placeholder text to display within the input.",
|
|
11866
|
+
"fieldName": "placeholder"
|
|
11821
11867
|
},
|
|
11822
11868
|
{
|
|
11823
|
-
"name": "
|
|
11824
|
-
"default": "condition",
|
|
11869
|
+
"name": "error",
|
|
11825
11870
|
"type": {
|
|
11826
|
-
"text": "
|
|
11827
|
-
}
|
|
11871
|
+
"text": "string | undefined"
|
|
11872
|
+
},
|
|
11873
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
11874
|
+
"fieldName": "error"
|
|
11875
|
+
},
|
|
11876
|
+
{
|
|
11877
|
+
"name": "required",
|
|
11878
|
+
"type": {
|
|
11879
|
+
"text": "boolean"
|
|
11880
|
+
},
|
|
11881
|
+
"default": "false",
|
|
11882
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
11883
|
+
"fieldName": "required"
|
|
11828
11884
|
},
|
|
11829
11885
|
{
|
|
11830
|
-
"name": "
|
|
11831
|
-
"default": "nothing",
|
|
11886
|
+
"name": "expand",
|
|
11832
11887
|
"type": {
|
|
11833
|
-
"text": "
|
|
11888
|
+
"text": "boolean"
|
|
11889
|
+
},
|
|
11890
|
+
"default": "false",
|
|
11891
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
11892
|
+
"fieldName": "expand"
|
|
11893
|
+
}
|
|
11894
|
+
],
|
|
11895
|
+
"parameters": [
|
|
11896
|
+
{
|
|
11897
|
+
"name": "superClass",
|
|
11898
|
+
"type": {
|
|
11899
|
+
"text": "T"
|
|
11834
11900
|
}
|
|
11835
11901
|
}
|
|
11836
11902
|
]
|
|
@@ -11839,222 +11905,156 @@
|
|
|
11839
11905
|
"exports": [
|
|
11840
11906
|
{
|
|
11841
11907
|
"kind": "js",
|
|
11842
|
-
"name": "
|
|
11843
|
-
"declaration": {
|
|
11844
|
-
"name": "cond",
|
|
11845
|
-
"module": "src/common/directives/cond.ts"
|
|
11846
|
-
}
|
|
11847
|
-
},
|
|
11848
|
-
{
|
|
11849
|
-
"kind": "js",
|
|
11850
|
-
"name": "cond",
|
|
11851
|
-
"declaration": {
|
|
11852
|
-
"name": "cond",
|
|
11853
|
-
"module": "src/common/directives/cond.ts"
|
|
11854
|
-
}
|
|
11855
|
-
},
|
|
11856
|
-
{
|
|
11857
|
-
"kind": "js",
|
|
11858
|
-
"name": "cond",
|
|
11859
|
-
"declaration": {
|
|
11860
|
-
"name": "cond",
|
|
11861
|
-
"module": "src/common/directives/cond.ts"
|
|
11862
|
-
}
|
|
11863
|
-
},
|
|
11864
|
-
{
|
|
11865
|
-
"kind": "js",
|
|
11866
|
-
"name": "cond",
|
|
11867
|
-
"declaration": {
|
|
11868
|
-
"name": "cond",
|
|
11869
|
-
"module": "src/common/directives/cond.ts"
|
|
11870
|
-
}
|
|
11871
|
-
},
|
|
11872
|
-
{
|
|
11873
|
-
"kind": "js",
|
|
11874
|
-
"name": "cond",
|
|
11875
|
-
"declaration": {
|
|
11876
|
-
"name": "cond",
|
|
11877
|
-
"module": "src/common/directives/cond.ts"
|
|
11878
|
-
}
|
|
11879
|
-
},
|
|
11880
|
-
{
|
|
11881
|
-
"kind": "js",
|
|
11882
|
-
"name": "cond",
|
|
11883
|
-
"declaration": {
|
|
11884
|
-
"name": "cond",
|
|
11885
|
-
"module": "src/common/directives/cond.ts"
|
|
11886
|
-
}
|
|
11887
|
-
},
|
|
11888
|
-
{
|
|
11889
|
-
"kind": "js",
|
|
11890
|
-
"name": "cond",
|
|
11908
|
+
"name": "FormAssociatedMixinInterface",
|
|
11891
11909
|
"declaration": {
|
|
11892
|
-
"name": "
|
|
11893
|
-
"module": "src/common/
|
|
11910
|
+
"name": "FormAssociatedMixinInterface",
|
|
11911
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11894
11912
|
}
|
|
11895
11913
|
},
|
|
11896
11914
|
{
|
|
11897
11915
|
"kind": "js",
|
|
11898
|
-
"name": "
|
|
11916
|
+
"name": "FormAssociatedMixin",
|
|
11899
11917
|
"declaration": {
|
|
11900
|
-
"name": "
|
|
11901
|
-
"module": "src/common/
|
|
11918
|
+
"name": "FormAssociatedMixin",
|
|
11919
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
11902
11920
|
}
|
|
11903
11921
|
}
|
|
11904
11922
|
]
|
|
11905
11923
|
},
|
|
11906
11924
|
{
|
|
11907
11925
|
"kind": "javascript-module",
|
|
11908
|
-
"path": "src/common/
|
|
11926
|
+
"path": "src/common/mixins/InputMixin.ts",
|
|
11909
11927
|
"declarations": [
|
|
11910
11928
|
{
|
|
11911
|
-
"kind": "
|
|
11912
|
-
"
|
|
11913
|
-
"
|
|
11914
|
-
|
|
11915
|
-
"text": "TInner"
|
|
11916
|
-
}
|
|
11917
|
-
},
|
|
11918
|
-
"parameters": [
|
|
11919
|
-
{
|
|
11920
|
-
"name": "condition",
|
|
11921
|
-
"type": {
|
|
11922
|
-
"text": "false"
|
|
11923
|
-
}
|
|
11924
|
-
},
|
|
11929
|
+
"kind": "class",
|
|
11930
|
+
"description": "",
|
|
11931
|
+
"name": "InputMixinInterface",
|
|
11932
|
+
"members": [
|
|
11925
11933
|
{
|
|
11926
|
-
"
|
|
11934
|
+
"kind": "field",
|
|
11935
|
+
"name": "name",
|
|
11927
11936
|
"type": {
|
|
11928
|
-
"text": "
|
|
11937
|
+
"text": "string | undefined"
|
|
11929
11938
|
}
|
|
11930
11939
|
},
|
|
11931
11940
|
{
|
|
11932
|
-
"
|
|
11933
|
-
"
|
|
11934
|
-
"text": "(inner: TInner) => TWrapper"
|
|
11935
|
-
}
|
|
11936
|
-
}
|
|
11937
|
-
]
|
|
11938
|
-
},
|
|
11939
|
-
{
|
|
11940
|
-
"kind": "function",
|
|
11941
|
-
"name": "wrapIf",
|
|
11942
|
-
"return": {
|
|
11943
|
-
"type": {
|
|
11944
|
-
"text": "TWrapper"
|
|
11945
|
-
}
|
|
11946
|
-
},
|
|
11947
|
-
"parameters": [
|
|
11948
|
-
{
|
|
11949
|
-
"name": "condition",
|
|
11941
|
+
"kind": "field",
|
|
11942
|
+
"name": "value",
|
|
11950
11943
|
"type": {
|
|
11951
|
-
"text": "
|
|
11944
|
+
"text": "string"
|
|
11952
11945
|
}
|
|
11953
11946
|
},
|
|
11954
11947
|
{
|
|
11955
|
-
"
|
|
11948
|
+
"kind": "field",
|
|
11949
|
+
"name": "disabled",
|
|
11956
11950
|
"type": {
|
|
11957
|
-
"text": "
|
|
11951
|
+
"text": "boolean"
|
|
11958
11952
|
}
|
|
11959
11953
|
},
|
|
11960
11954
|
{
|
|
11961
|
-
"
|
|
11955
|
+
"kind": "field",
|
|
11956
|
+
"name": "form",
|
|
11962
11957
|
"type": {
|
|
11963
|
-
"text": "
|
|
11958
|
+
"text": "HTMLFormElement | undefined"
|
|
11964
11959
|
}
|
|
11965
11960
|
}
|
|
11966
11961
|
]
|
|
11967
11962
|
},
|
|
11968
11963
|
{
|
|
11969
|
-
"kind": "
|
|
11970
|
-
"
|
|
11971
|
-
"
|
|
11972
|
-
|
|
11973
|
-
"text": "TInner | TWrapper"
|
|
11974
|
-
}
|
|
11975
|
-
},
|
|
11976
|
-
"parameters": [
|
|
11964
|
+
"kind": "mixin",
|
|
11965
|
+
"description": "",
|
|
11966
|
+
"name": "InputMixin",
|
|
11967
|
+
"members": [
|
|
11977
11968
|
{
|
|
11978
|
-
"
|
|
11969
|
+
"kind": "field",
|
|
11970
|
+
"name": "disabled",
|
|
11979
11971
|
"type": {
|
|
11980
|
-
"text": "
|
|
11981
|
-
}
|
|
11972
|
+
"text": "boolean"
|
|
11973
|
+
},
|
|
11974
|
+
"default": "false",
|
|
11975
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
11976
|
+
"attribute": "disabled",
|
|
11977
|
+
"reflects": true
|
|
11982
11978
|
},
|
|
11983
11979
|
{
|
|
11984
|
-
"
|
|
11980
|
+
"kind": "field",
|
|
11981
|
+
"name": "name",
|
|
11985
11982
|
"type": {
|
|
11986
|
-
"text": "
|
|
11987
|
-
}
|
|
11983
|
+
"text": "string | undefined"
|
|
11984
|
+
},
|
|
11985
|
+
"description": "The name of the form component.",
|
|
11986
|
+
"attribute": "name"
|
|
11988
11987
|
},
|
|
11989
11988
|
{
|
|
11990
|
-
"
|
|
11989
|
+
"kind": "field",
|
|
11990
|
+
"name": "value",
|
|
11991
11991
|
"type": {
|
|
11992
|
-
"text": "
|
|
11993
|
-
}
|
|
11992
|
+
"text": "string"
|
|
11993
|
+
},
|
|
11994
|
+
"default": "\"\"",
|
|
11995
|
+
"description": "The value of the form component.",
|
|
11996
|
+
"attribute": "value"
|
|
11997
|
+
},
|
|
11998
|
+
{
|
|
11999
|
+
"kind": "field",
|
|
12000
|
+
"name": "form",
|
|
12001
|
+
"privacy": "protected",
|
|
12002
|
+
"description": "Gets the form, if any, associated with the form element."
|
|
11994
12003
|
}
|
|
11995
|
-
]
|
|
11996
|
-
|
|
11997
|
-
{
|
|
11998
|
-
"kind": "function",
|
|
11999
|
-
"name": "wrapIf",
|
|
12000
|
-
"parameters": [
|
|
12004
|
+
],
|
|
12005
|
+
"attributes": [
|
|
12001
12006
|
{
|
|
12002
|
-
"name": "
|
|
12007
|
+
"name": "disabled",
|
|
12003
12008
|
"type": {
|
|
12004
|
-
"text": "
|
|
12005
|
-
}
|
|
12009
|
+
"text": "boolean"
|
|
12010
|
+
},
|
|
12011
|
+
"default": "false",
|
|
12012
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
12013
|
+
"fieldName": "disabled"
|
|
12006
12014
|
},
|
|
12007
12015
|
{
|
|
12008
|
-
"name": "
|
|
12016
|
+
"name": "name",
|
|
12009
12017
|
"type": {
|
|
12010
|
-
"text": "
|
|
12011
|
-
}
|
|
12018
|
+
"text": "string | undefined"
|
|
12019
|
+
},
|
|
12020
|
+
"description": "The name of the form component.",
|
|
12021
|
+
"fieldName": "name"
|
|
12012
12022
|
},
|
|
12013
12023
|
{
|
|
12014
|
-
"name": "
|
|
12024
|
+
"name": "value",
|
|
12015
12025
|
"type": {
|
|
12016
|
-
"text": "
|
|
12017
|
-
}
|
|
12026
|
+
"text": "string"
|
|
12027
|
+
},
|
|
12028
|
+
"default": "\"\"",
|
|
12029
|
+
"description": "The value of the form component.",
|
|
12030
|
+
"fieldName": "value"
|
|
12018
12031
|
}
|
|
12019
12032
|
],
|
|
12020
|
-
"
|
|
12021
|
-
|
|
12022
|
-
"
|
|
12033
|
+
"parameters": [
|
|
12034
|
+
{
|
|
12035
|
+
"name": "superClass",
|
|
12036
|
+
"type": {
|
|
12037
|
+
"text": "T"
|
|
12038
|
+
}
|
|
12023
12039
|
}
|
|
12024
|
-
|
|
12040
|
+
]
|
|
12025
12041
|
}
|
|
12026
12042
|
],
|
|
12027
12043
|
"exports": [
|
|
12028
12044
|
{
|
|
12029
12045
|
"kind": "js",
|
|
12030
|
-
"name": "
|
|
12031
|
-
"declaration": {
|
|
12032
|
-
"name": "wrapIf",
|
|
12033
|
-
"module": "src/common/directives/wrapIf.ts"
|
|
12034
|
-
}
|
|
12035
|
-
},
|
|
12036
|
-
{
|
|
12037
|
-
"kind": "js",
|
|
12038
|
-
"name": "wrapIf",
|
|
12039
|
-
"declaration": {
|
|
12040
|
-
"name": "wrapIf",
|
|
12041
|
-
"module": "src/common/directives/wrapIf.ts"
|
|
12042
|
-
}
|
|
12043
|
-
},
|
|
12044
|
-
{
|
|
12045
|
-
"kind": "js",
|
|
12046
|
-
"name": "wrapIf",
|
|
12046
|
+
"name": "InputMixinInterface",
|
|
12047
12047
|
"declaration": {
|
|
12048
|
-
"name": "
|
|
12049
|
-
"module": "src/common/
|
|
12048
|
+
"name": "InputMixinInterface",
|
|
12049
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
12050
12050
|
}
|
|
12051
12051
|
},
|
|
12052
12052
|
{
|
|
12053
12053
|
"kind": "js",
|
|
12054
|
-
"name": "
|
|
12054
|
+
"name": "InputMixin",
|
|
12055
12055
|
"declaration": {
|
|
12056
|
-
"name": "
|
|
12057
|
-
"module": "src/common/
|
|
12056
|
+
"name": "InputMixin",
|
|
12057
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
12058
12058
|
}
|
|
12059
12059
|
}
|
|
12060
12060
|
]
|