@nordhealth/components 1.0.0-beta.14 → 1.0.0-beta.15
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 +862 -862
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/Calendar-4cb3c8f2.js +13 -0
- package/lib/{Calendar-664c2b4c.js.map → Calendar-4cb3c8f2.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/Checkbox.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/CommandMenuAction.js.map +1 -1
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/Input.js +1 -1
- package/lib/NavItem.js +1 -1
- package/lib/NavItem.js.map +1 -1
- package/lib/Radio.js +1 -1
- package/lib/Radio.js.map +1 -1
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Spinner.js.map +1 -1
- package/lib/{TextField-00822066.js → TextField-d799db1a.js} +2 -2
- package/lib/TextField-d799db1a.js.map +1 -0
- package/lib/Textarea.js +1 -1
- package/lib/bundle.js +3 -3
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/package.json +5 -5
- package/lib/Calendar-664c2b4c.js +0 -13
- package/lib/TextField-00822066.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -490,372 +490,312 @@
|
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
492
|
"kind": "javascript-module",
|
|
493
|
-
"path": "src/
|
|
493
|
+
"path": "src/calendar/Calendar.ts",
|
|
494
494
|
"declarations": [
|
|
495
495
|
{
|
|
496
496
|
"kind": "class",
|
|
497
|
-
"description": "
|
|
498
|
-
"name": "
|
|
499
|
-
"
|
|
497
|
+
"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.",
|
|
498
|
+
"name": "Calendar",
|
|
499
|
+
"members": [
|
|
500
500
|
{
|
|
501
|
-
"
|
|
502
|
-
"name": ""
|
|
501
|
+
"kind": "field",
|
|
502
|
+
"name": "dialogLabelId",
|
|
503
|
+
"type": {
|
|
504
|
+
"text": "string"
|
|
505
|
+
},
|
|
506
|
+
"privacy": "private",
|
|
507
|
+
"default": "\"dialog-header\""
|
|
503
508
|
},
|
|
504
509
|
{
|
|
505
|
-
"
|
|
506
|
-
"name": "
|
|
510
|
+
"kind": "field",
|
|
511
|
+
"name": "monthSelectNode",
|
|
512
|
+
"type": {
|
|
513
|
+
"text": "HTMLElement"
|
|
514
|
+
},
|
|
515
|
+
"privacy": "private"
|
|
507
516
|
},
|
|
508
517
|
{
|
|
509
|
-
"
|
|
510
|
-
"name": "
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
518
|
+
"kind": "field",
|
|
519
|
+
"name": "focusedDayNode",
|
|
520
|
+
"type": {
|
|
521
|
+
"text": "HTMLButtonElement"
|
|
522
|
+
},
|
|
523
|
+
"privacy": "private"
|
|
524
|
+
},
|
|
514
525
|
{
|
|
515
526
|
"kind": "field",
|
|
516
|
-
"name": "
|
|
527
|
+
"name": "direction",
|
|
528
|
+
"privacy": "private",
|
|
529
|
+
"default": "new DirectionController(this)"
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"kind": "field",
|
|
533
|
+
"name": "swipe",
|
|
534
|
+
"privacy": "private",
|
|
535
|
+
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"kind": "field",
|
|
539
|
+
"name": "shortcuts",
|
|
517
540
|
"privacy": "private"
|
|
518
541
|
},
|
|
519
542
|
{
|
|
520
543
|
"kind": "field",
|
|
521
|
-
"name": "
|
|
544
|
+
"name": "dateFormatShort",
|
|
545
|
+
"type": {
|
|
546
|
+
"text": "Intl.DateTimeFormat"
|
|
547
|
+
},
|
|
522
548
|
"privacy": "private",
|
|
523
|
-
"
|
|
549
|
+
"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"
|
|
524
550
|
},
|
|
525
551
|
{
|
|
526
552
|
"kind": "field",
|
|
527
|
-
"name": "
|
|
553
|
+
"name": "localization",
|
|
528
554
|
"type": {
|
|
529
|
-
"text": "
|
|
555
|
+
"text": "CalendarLocalizedText"
|
|
530
556
|
},
|
|
531
|
-
"default": "
|
|
532
|
-
"description": "The style variant of the button.",
|
|
533
|
-
"attribute": "variant",
|
|
534
|
-
"reflects": true
|
|
557
|
+
"default": "localization"
|
|
535
558
|
},
|
|
536
559
|
{
|
|
537
560
|
"kind": "field",
|
|
538
|
-
"name": "
|
|
561
|
+
"name": "value",
|
|
539
562
|
"type": {
|
|
540
|
-
"text": "
|
|
563
|
+
"text": "string"
|
|
541
564
|
},
|
|
542
|
-
"default": "\"
|
|
543
|
-
"description": "The
|
|
544
|
-
"attribute": "
|
|
545
|
-
"reflects": true
|
|
565
|
+
"default": "\"\"",
|
|
566
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
567
|
+
"attribute": "value"
|
|
546
568
|
},
|
|
547
569
|
{
|
|
548
570
|
"kind": "field",
|
|
549
|
-
"name": "
|
|
571
|
+
"name": "firstDayOfWeek",
|
|
550
572
|
"type": {
|
|
551
|
-
"text": "
|
|
573
|
+
"text": "DaysOfWeek"
|
|
552
574
|
},
|
|
553
|
-
"
|
|
554
|
-
"
|
|
555
|
-
"attribute": "size",
|
|
556
|
-
"reflects": true
|
|
575
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
576
|
+
"attribute": "firstDayOfWeek"
|
|
557
577
|
},
|
|
558
578
|
{
|
|
559
579
|
"kind": "field",
|
|
560
|
-
"name": "
|
|
580
|
+
"name": "min",
|
|
561
581
|
"type": {
|
|
562
|
-
"text": "string
|
|
582
|
+
"text": "string"
|
|
563
583
|
},
|
|
564
|
-
"
|
|
565
|
-
"
|
|
566
|
-
"
|
|
584
|
+
"default": "\"\"",
|
|
585
|
+
"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.",
|
|
586
|
+
"attribute": "min"
|
|
567
587
|
},
|
|
568
588
|
{
|
|
569
589
|
"kind": "field",
|
|
570
|
-
"name": "
|
|
590
|
+
"name": "max",
|
|
571
591
|
"type": {
|
|
572
|
-
"text": "
|
|
592
|
+
"text": "string"
|
|
573
593
|
},
|
|
574
|
-
"default": "
|
|
575
|
-
"description": "
|
|
576
|
-
"attribute": "
|
|
594
|
+
"default": "\"\"",
|
|
595
|
+
"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.",
|
|
596
|
+
"attribute": "max"
|
|
577
597
|
},
|
|
578
598
|
{
|
|
579
599
|
"kind": "field",
|
|
580
|
-
"name": "
|
|
600
|
+
"name": "isDateDisabled",
|
|
581
601
|
"type": {
|
|
582
|
-
"text": "
|
|
602
|
+
"text": "DateDisabledPredicate"
|
|
583
603
|
},
|
|
584
|
-
"default": "
|
|
585
|
-
"description": "
|
|
586
|
-
"attribute": "target",
|
|
587
|
-
"reflects": true
|
|
604
|
+
"default": "isDateDisabled",
|
|
605
|
+
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
588
606
|
},
|
|
589
607
|
{
|
|
590
608
|
"kind": "field",
|
|
591
|
-
"name": "
|
|
609
|
+
"name": "activeFocus",
|
|
592
610
|
"type": {
|
|
593
611
|
"text": "boolean"
|
|
594
612
|
},
|
|
595
|
-
"
|
|
596
|
-
"
|
|
597
|
-
"attribute": "expand",
|
|
598
|
-
"reflects": true
|
|
613
|
+
"privacy": "private",
|
|
614
|
+
"default": "false"
|
|
599
615
|
},
|
|
600
616
|
{
|
|
601
|
-
"kind": "
|
|
602
|
-
"name": "
|
|
617
|
+
"kind": "field",
|
|
618
|
+
"name": "focusedDay",
|
|
603
619
|
"privacy": "private",
|
|
604
|
-
"
|
|
605
|
-
{
|
|
606
|
-
"name": "innards",
|
|
607
|
-
"type": {
|
|
608
|
-
"text": "TemplateResult"
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
],
|
|
612
|
-
"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."
|
|
620
|
+
"default": "new Date()"
|
|
613
621
|
},
|
|
614
622
|
{
|
|
615
623
|
"kind": "method",
|
|
616
|
-
"name": "
|
|
617
|
-
"privacy": "private",
|
|
624
|
+
"name": "focus",
|
|
618
625
|
"parameters": [
|
|
619
626
|
{
|
|
620
|
-
"name": "
|
|
627
|
+
"name": "options",
|
|
628
|
+
"optional": true,
|
|
621
629
|
"type": {
|
|
622
|
-
"text": "
|
|
630
|
+
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
623
631
|
}
|
|
624
632
|
}
|
|
625
633
|
]
|
|
626
634
|
},
|
|
627
635
|
{
|
|
628
636
|
"kind": "method",
|
|
629
|
-
"name": "
|
|
637
|
+
"name": "createDateFormatter",
|
|
630
638
|
"privacy": "private"
|
|
631
639
|
},
|
|
632
640
|
{
|
|
633
641
|
"kind": "field",
|
|
634
|
-
"name": "
|
|
642
|
+
"name": "handleDaySelect",
|
|
635
643
|
"privacy": "private"
|
|
636
644
|
},
|
|
637
645
|
{
|
|
638
646
|
"kind": "method",
|
|
639
|
-
"name": "
|
|
647
|
+
"name": "addDays",
|
|
640
648
|
"privacy": "private",
|
|
641
649
|
"parameters": [
|
|
642
650
|
{
|
|
643
|
-
"name": "
|
|
651
|
+
"name": "days",
|
|
644
652
|
"type": {
|
|
645
|
-
"text": "
|
|
653
|
+
"text": "number"
|
|
646
654
|
}
|
|
647
655
|
}
|
|
648
656
|
]
|
|
649
657
|
},
|
|
650
658
|
{
|
|
651
|
-
"kind": "
|
|
652
|
-
"name": "
|
|
653
|
-
"
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
663
|
-
}
|
|
659
|
+
"kind": "method",
|
|
660
|
+
"name": "addMonths",
|
|
661
|
+
"privacy": "private",
|
|
662
|
+
"parameters": [
|
|
663
|
+
{
|
|
664
|
+
"name": "months",
|
|
665
|
+
"type": {
|
|
666
|
+
"text": "number"
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
]
|
|
664
670
|
},
|
|
665
671
|
{
|
|
666
|
-
"kind": "
|
|
667
|
-
"name": "
|
|
668
|
-
"
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
672
|
+
"kind": "method",
|
|
673
|
+
"name": "addYears",
|
|
674
|
+
"privacy": "private",
|
|
675
|
+
"parameters": [
|
|
676
|
+
{
|
|
677
|
+
"name": "years",
|
|
678
|
+
"type": {
|
|
679
|
+
"text": "number"
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
]
|
|
677
683
|
},
|
|
678
684
|
{
|
|
679
|
-
"kind": "
|
|
680
|
-
"name": "
|
|
681
|
-
"
|
|
682
|
-
"text": "string"
|
|
683
|
-
},
|
|
684
|
-
"default": "\"\"",
|
|
685
|
-
"description": "The value of the form component.",
|
|
686
|
-
"attribute": "value",
|
|
687
|
-
"inheritedFrom": {
|
|
688
|
-
"name": "InputMixin",
|
|
689
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
690
|
-
}
|
|
685
|
+
"kind": "method",
|
|
686
|
+
"name": "startOfWeek",
|
|
687
|
+
"privacy": "private"
|
|
691
688
|
},
|
|
692
689
|
{
|
|
693
|
-
"kind": "
|
|
694
|
-
"name": "
|
|
695
|
-
"privacy": "
|
|
696
|
-
"description": "Gets the form, if any, associated with the form element.",
|
|
697
|
-
"inheritedFrom": {
|
|
698
|
-
"name": "InputMixin",
|
|
699
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
700
|
-
}
|
|
690
|
+
"kind": "method",
|
|
691
|
+
"name": "endOfWeek",
|
|
692
|
+
"privacy": "private"
|
|
701
693
|
},
|
|
702
694
|
{
|
|
703
|
-
"kind": "
|
|
704
|
-
"name": "
|
|
705
|
-
"privacy": "
|
|
706
|
-
"
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
695
|
+
"kind": "method",
|
|
696
|
+
"name": "setMonth",
|
|
697
|
+
"privacy": "private",
|
|
698
|
+
"parameters": [
|
|
699
|
+
{
|
|
700
|
+
"name": "month",
|
|
701
|
+
"type": {
|
|
702
|
+
"text": "number"
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
]
|
|
710
706
|
},
|
|
711
707
|
{
|
|
712
708
|
"kind": "method",
|
|
713
|
-
"name": "
|
|
709
|
+
"name": "setYear",
|
|
710
|
+
"privacy": "private",
|
|
714
711
|
"parameters": [
|
|
715
712
|
{
|
|
716
|
-
"name": "
|
|
717
|
-
"optional": true,
|
|
713
|
+
"name": "year",
|
|
718
714
|
"type": {
|
|
719
|
-
"text": "
|
|
720
|
-
}
|
|
721
|
-
"description": "An object which controls aspects of the focusing process."
|
|
715
|
+
"text": "number"
|
|
716
|
+
}
|
|
722
717
|
}
|
|
723
|
-
]
|
|
724
|
-
"description": "Programmatically move focus to the component.",
|
|
725
|
-
"inheritedFrom": {
|
|
726
|
-
"name": "FocusableMixin",
|
|
727
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
728
|
-
}
|
|
718
|
+
]
|
|
729
719
|
},
|
|
730
720
|
{
|
|
731
721
|
"kind": "method",
|
|
732
|
-
"name": "
|
|
733
|
-
"
|
|
734
|
-
"
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
722
|
+
"name": "setFocusedDay",
|
|
723
|
+
"privacy": "private",
|
|
724
|
+
"parameters": [
|
|
725
|
+
{
|
|
726
|
+
"name": "day",
|
|
727
|
+
"type": {
|
|
728
|
+
"text": "Date"
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
]
|
|
738
732
|
},
|
|
739
733
|
{
|
|
740
|
-
"kind": "
|
|
741
|
-
"name": "
|
|
742
|
-
"
|
|
743
|
-
"inheritedFrom": {
|
|
744
|
-
"name": "FocusableMixin",
|
|
745
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
746
|
-
}
|
|
747
|
-
}
|
|
748
|
-
],
|
|
749
|
-
"attributes": [
|
|
750
|
-
{
|
|
751
|
-
"name": "variant",
|
|
752
|
-
"type": {
|
|
753
|
-
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
754
|
-
},
|
|
755
|
-
"default": "\"default\"",
|
|
756
|
-
"description": "The style variant of the button.",
|
|
757
|
-
"fieldName": "variant"
|
|
734
|
+
"kind": "field",
|
|
735
|
+
"name": "handleMonthSelect",
|
|
736
|
+
"privacy": "private"
|
|
758
737
|
},
|
|
759
738
|
{
|
|
760
|
-
"
|
|
761
|
-
"
|
|
762
|
-
|
|
763
|
-
},
|
|
764
|
-
"default": "\"submit\"",
|
|
765
|
-
"description": "The type of the button.",
|
|
766
|
-
"fieldName": "type"
|
|
739
|
+
"kind": "field",
|
|
740
|
+
"name": "handleYearSelect",
|
|
741
|
+
"privacy": "private"
|
|
767
742
|
},
|
|
768
743
|
{
|
|
769
|
-
"
|
|
770
|
-
"
|
|
771
|
-
|
|
772
|
-
},
|
|
773
|
-
"default": "\"m\"",
|
|
774
|
-
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
775
|
-
"fieldName": "size"
|
|
744
|
+
"kind": "field",
|
|
745
|
+
"name": "handleNextMonthClick",
|
|
746
|
+
"privacy": "private"
|
|
776
747
|
},
|
|
777
748
|
{
|
|
778
|
-
"
|
|
779
|
-
"
|
|
780
|
-
|
|
781
|
-
},
|
|
782
|
-
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
783
|
-
"fieldName": "href"
|
|
749
|
+
"kind": "field",
|
|
750
|
+
"name": "handlePreviousMonthClick",
|
|
751
|
+
"privacy": "private"
|
|
784
752
|
},
|
|
785
753
|
{
|
|
786
|
-
"
|
|
787
|
-
"
|
|
788
|
-
|
|
789
|
-
},
|
|
790
|
-
"default": "false",
|
|
791
|
-
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
792
|
-
"fieldName": "download"
|
|
754
|
+
"kind": "field",
|
|
755
|
+
"name": "enableActiveFocus",
|
|
756
|
+
"privacy": "private"
|
|
793
757
|
},
|
|
794
758
|
{
|
|
795
|
-
"
|
|
796
|
-
"
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
"fieldName": "target"
|
|
802
|
-
},
|
|
759
|
+
"kind": "field",
|
|
760
|
+
"name": "disableActiveFocus",
|
|
761
|
+
"privacy": "private"
|
|
762
|
+
}
|
|
763
|
+
],
|
|
764
|
+
"attributes": [
|
|
803
765
|
{
|
|
804
|
-
"name": "
|
|
766
|
+
"name": "value",
|
|
805
767
|
"type": {
|
|
806
|
-
"text": "
|
|
768
|
+
"text": "string"
|
|
807
769
|
},
|
|
808
|
-
"default": "
|
|
809
|
-
"description": "
|
|
810
|
-
"fieldName": "
|
|
770
|
+
"default": "\"\"",
|
|
771
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
772
|
+
"fieldName": "value"
|
|
811
773
|
},
|
|
812
774
|
{
|
|
813
|
-
"name": "
|
|
775
|
+
"name": "firstDayOfWeek",
|
|
814
776
|
"type": {
|
|
815
|
-
"text": "
|
|
777
|
+
"text": "DaysOfWeek"
|
|
816
778
|
},
|
|
817
|
-
"
|
|
818
|
-
"
|
|
819
|
-
"fieldName": "disabled",
|
|
820
|
-
"inheritedFrom": {
|
|
821
|
-
"name": "InputMixin",
|
|
822
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
823
|
-
}
|
|
779
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
780
|
+
"fieldName": "firstDayOfWeek"
|
|
824
781
|
},
|
|
825
782
|
{
|
|
826
|
-
"name": "
|
|
783
|
+
"name": "min",
|
|
827
784
|
"type": {
|
|
828
|
-
"text": "string
|
|
785
|
+
"text": "string"
|
|
829
786
|
},
|
|
830
|
-
"
|
|
831
|
-
"
|
|
832
|
-
"
|
|
833
|
-
"name": "InputMixin",
|
|
834
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
835
|
-
}
|
|
787
|
+
"default": "\"\"",
|
|
788
|
+
"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.",
|
|
789
|
+
"fieldName": "min"
|
|
836
790
|
},
|
|
837
791
|
{
|
|
838
|
-
"name": "
|
|
792
|
+
"name": "max",
|
|
839
793
|
"type": {
|
|
840
794
|
"text": "string"
|
|
841
795
|
},
|
|
842
796
|
"default": "\"\"",
|
|
843
|
-
"description": "
|
|
844
|
-
"fieldName": "
|
|
845
|
-
"inheritedFrom": {
|
|
846
|
-
"name": "InputMixin",
|
|
847
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
],
|
|
851
|
-
"mixins": [
|
|
852
|
-
{
|
|
853
|
-
"name": "InputMixin",
|
|
854
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
855
|
-
},
|
|
856
|
-
{
|
|
857
|
-
"name": "FocusableMixin",
|
|
858
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
797
|
+
"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.",
|
|
798
|
+
"fieldName": "max"
|
|
859
799
|
}
|
|
860
800
|
],
|
|
861
801
|
"superclass": {
|
|
@@ -863,8 +803,8 @@
|
|
|
863
803
|
"package": "lit"
|
|
864
804
|
},
|
|
865
805
|
"status": "ready",
|
|
866
|
-
"category": "
|
|
867
|
-
"tagName": "nord-
|
|
806
|
+
"category": "list",
|
|
807
|
+
"tagName": "nord-calendar",
|
|
868
808
|
"customElement": true
|
|
869
809
|
}
|
|
870
810
|
],
|
|
@@ -873,417 +813,518 @@
|
|
|
873
813
|
"kind": "js",
|
|
874
814
|
"name": "default",
|
|
875
815
|
"declaration": {
|
|
876
|
-
"name": "
|
|
877
|
-
"module": "src/
|
|
816
|
+
"name": "Calendar",
|
|
817
|
+
"module": "src/calendar/Calendar.ts"
|
|
878
818
|
}
|
|
879
819
|
},
|
|
880
820
|
{
|
|
881
821
|
"kind": "custom-element-definition",
|
|
882
|
-
"name": "nord-
|
|
822
|
+
"name": "nord-calendar",
|
|
883
823
|
"declaration": {
|
|
884
|
-
"name": "
|
|
885
|
-
"module": "src/
|
|
824
|
+
"name": "Calendar",
|
|
825
|
+
"module": "src/calendar/Calendar.ts"
|
|
886
826
|
}
|
|
887
827
|
}
|
|
888
828
|
],
|
|
889
|
-
"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
|
|
829
|
+
"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"
|
|
890
830
|
},
|
|
891
831
|
{
|
|
892
832
|
"kind": "javascript-module",
|
|
893
|
-
"path": "src/calendar/
|
|
833
|
+
"path": "src/calendar/DateSelectEvent.ts",
|
|
894
834
|
"declarations": [
|
|
895
835
|
{
|
|
896
836
|
"kind": "class",
|
|
897
|
-
"description": "
|
|
898
|
-
"name": "
|
|
837
|
+
"description": "",
|
|
838
|
+
"name": "DateSelectEvent",
|
|
899
839
|
"members": [
|
|
900
840
|
{
|
|
901
841
|
"kind": "field",
|
|
902
|
-
"name": "
|
|
842
|
+
"name": "eventName",
|
|
903
843
|
"type": {
|
|
904
844
|
"text": "string"
|
|
905
845
|
},
|
|
906
|
-
"
|
|
907
|
-
"default": "\"
|
|
846
|
+
"static": true,
|
|
847
|
+
"default": "\"nord-select\""
|
|
908
848
|
},
|
|
909
849
|
{
|
|
910
850
|
"kind": "field",
|
|
911
|
-
"name": "
|
|
851
|
+
"name": "date",
|
|
912
852
|
"type": {
|
|
913
|
-
"text": "
|
|
853
|
+
"text": "Date"
|
|
914
854
|
},
|
|
915
|
-
"
|
|
916
|
-
}
|
|
855
|
+
"default": "date"
|
|
856
|
+
}
|
|
857
|
+
],
|
|
858
|
+
"superclass": {
|
|
859
|
+
"name": "NordEvent",
|
|
860
|
+
"module": "/src/common/events.js"
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
],
|
|
864
|
+
"exports": [
|
|
865
|
+
{
|
|
866
|
+
"kind": "js",
|
|
867
|
+
"name": "DateSelectEvent",
|
|
868
|
+
"declaration": {
|
|
869
|
+
"name": "DateSelectEvent",
|
|
870
|
+
"module": "src/calendar/DateSelectEvent.ts"
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
],
|
|
874
|
+
"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"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
"kind": "javascript-module",
|
|
878
|
+
"path": "src/calendar/calendar-localization.ts",
|
|
879
|
+
"declarations": [
|
|
880
|
+
{
|
|
881
|
+
"kind": "variable",
|
|
882
|
+
"name": "localization",
|
|
883
|
+
"type": {
|
|
884
|
+
"text": "CalendarLocalizedText"
|
|
885
|
+
},
|
|
886
|
+
"default": "{\n prevMonthLabel: \"Previous month\",\n nextMonthLabel: \"Next month\",\n monthSelectLabel: \"Month\",\n yearSelectLabel: \"Year\",\n calendarHeading: \"Choose a date\",\n dayNames: [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"],\n monthNames: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n monthNamesShort: [\"Jan\", \"Feb\", \"Mar\", \"Apr\", \"May\", \"Jun\", \"Jul\", \"Aug\", \"Sep\", \"Oct\", \"Nov\", \"Dec\"],\n locale: \"en-GB\",\n}"
|
|
887
|
+
}
|
|
888
|
+
],
|
|
889
|
+
"exports": [
|
|
890
|
+
{
|
|
891
|
+
"kind": "js",
|
|
892
|
+
"name": "default",
|
|
893
|
+
"declaration": {
|
|
894
|
+
"name": "localization",
|
|
895
|
+
"module": "src/calendar/calendar-localization.ts"
|
|
896
|
+
}
|
|
897
|
+
}
|
|
898
|
+
],
|
|
899
|
+
"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"
|
|
900
|
+
},
|
|
901
|
+
{
|
|
902
|
+
"kind": "javascript-module",
|
|
903
|
+
"path": "src/calendar/month-view.ts",
|
|
904
|
+
"declarations": [
|
|
905
|
+
{
|
|
906
|
+
"kind": "function",
|
|
907
|
+
"name": "dayView",
|
|
908
|
+
"parameters": [
|
|
917
909
|
{
|
|
918
|
-
"
|
|
919
|
-
"name": "focusedDayNode",
|
|
910
|
+
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
920
911
|
"type": {
|
|
921
|
-
"text": "
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
912
|
+
"text": "DatePickerDayProps"
|
|
913
|
+
}
|
|
914
|
+
}
|
|
915
|
+
]
|
|
916
|
+
},
|
|
917
|
+
{
|
|
918
|
+
"kind": "function",
|
|
919
|
+
"name": "monthView",
|
|
920
|
+
"parameters": [
|
|
921
|
+
{
|
|
922
|
+
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n localization,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
923
|
+
"type": {
|
|
924
|
+
"text": "MonthViewArgs"
|
|
925
|
+
}
|
|
926
|
+
}
|
|
927
|
+
]
|
|
928
|
+
}
|
|
929
|
+
],
|
|
930
|
+
"exports": [
|
|
931
|
+
{
|
|
932
|
+
"kind": "js",
|
|
933
|
+
"name": "dayView",
|
|
934
|
+
"declaration": {
|
|
935
|
+
"name": "dayView",
|
|
936
|
+
"module": "src/calendar/month-view.ts"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"kind": "js",
|
|
941
|
+
"name": "monthView",
|
|
942
|
+
"declaration": {
|
|
943
|
+
"name": "monthView",
|
|
944
|
+
"module": "src/calendar/month-view.ts"
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
],
|
|
948
|
+
"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"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"kind": "javascript-module",
|
|
952
|
+
"path": "src/button/Button.ts",
|
|
953
|
+
"declarations": [
|
|
954
|
+
{
|
|
955
|
+
"kind": "class",
|
|
956
|
+
"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.",
|
|
957
|
+
"name": "Button",
|
|
958
|
+
"slots": [
|
|
959
|
+
{
|
|
960
|
+
"description": "The button content",
|
|
961
|
+
"name": ""
|
|
930
962
|
},
|
|
931
963
|
{
|
|
932
|
-
"
|
|
933
|
-
"name": "
|
|
934
|
-
"privacy": "private",
|
|
935
|
-
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
964
|
+
"description": "Used to place content before button text. Typically used for icons.",
|
|
965
|
+
"name": "before"
|
|
936
966
|
},
|
|
967
|
+
{
|
|
968
|
+
"description": "Used to place content after button text. Typically used for icons.",
|
|
969
|
+
"name": "after"
|
|
970
|
+
}
|
|
971
|
+
],
|
|
972
|
+
"members": [
|
|
937
973
|
{
|
|
938
974
|
"kind": "field",
|
|
939
|
-
"name": "
|
|
975
|
+
"name": "buttonRef",
|
|
940
976
|
"privacy": "private"
|
|
941
977
|
},
|
|
942
978
|
{
|
|
943
979
|
"kind": "field",
|
|
944
|
-
"name": "
|
|
945
|
-
"type": {
|
|
946
|
-
"text": "Intl.DateTimeFormat"
|
|
947
|
-
},
|
|
980
|
+
"name": "lightDom",
|
|
948
981
|
"privacy": "private",
|
|
949
|
-
"
|
|
982
|
+
"default": "new LightDomController(this, {\n render: () => this.renderLightDom(),\n })"
|
|
950
983
|
},
|
|
951
984
|
{
|
|
952
985
|
"kind": "field",
|
|
953
|
-
"name": "
|
|
986
|
+
"name": "variant",
|
|
954
987
|
"type": {
|
|
955
|
-
"text": "
|
|
988
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
956
989
|
},
|
|
957
|
-
"default": "
|
|
990
|
+
"default": "\"default\"",
|
|
991
|
+
"description": "The style variant of the button.",
|
|
992
|
+
"attribute": "variant",
|
|
993
|
+
"reflects": true
|
|
958
994
|
},
|
|
959
995
|
{
|
|
960
996
|
"kind": "field",
|
|
961
|
-
"name": "
|
|
997
|
+
"name": "type",
|
|
962
998
|
"type": {
|
|
963
|
-
"text": "
|
|
999
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
964
1000
|
},
|
|
965
|
-
"default": "\"\"",
|
|
966
|
-
"description": "The
|
|
967
|
-
"attribute": "
|
|
1001
|
+
"default": "\"submit\"",
|
|
1002
|
+
"description": "The type of the button.",
|
|
1003
|
+
"attribute": "type",
|
|
1004
|
+
"reflects": true
|
|
968
1005
|
},
|
|
969
1006
|
{
|
|
970
1007
|
"kind": "field",
|
|
971
|
-
"name": "
|
|
1008
|
+
"name": "size",
|
|
972
1009
|
"type": {
|
|
973
|
-
"text": "
|
|
1010
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
974
1011
|
},
|
|
975
|
-
"
|
|
976
|
-
"
|
|
1012
|
+
"default": "\"m\"",
|
|
1013
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
1014
|
+
"attribute": "size",
|
|
1015
|
+
"reflects": true
|
|
977
1016
|
},
|
|
978
1017
|
{
|
|
979
1018
|
"kind": "field",
|
|
980
|
-
"name": "
|
|
1019
|
+
"name": "href",
|
|
981
1020
|
"type": {
|
|
982
|
-
"text": "string"
|
|
1021
|
+
"text": "string | undefined"
|
|
983
1022
|
},
|
|
984
|
-
"
|
|
985
|
-
"
|
|
986
|
-
"
|
|
1023
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
1024
|
+
"attribute": "href",
|
|
1025
|
+
"reflects": true
|
|
987
1026
|
},
|
|
988
1027
|
{
|
|
989
1028
|
"kind": "field",
|
|
990
|
-
"name": "
|
|
1029
|
+
"name": "download",
|
|
991
1030
|
"type": {
|
|
992
|
-
"text": "
|
|
1031
|
+
"text": "boolean"
|
|
993
1032
|
},
|
|
994
|
-
"default": "
|
|
995
|
-
"description": "
|
|
996
|
-
"attribute": "
|
|
1033
|
+
"default": "false",
|
|
1034
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
1035
|
+
"attribute": "download"
|
|
997
1036
|
},
|
|
998
1037
|
{
|
|
999
1038
|
"kind": "field",
|
|
1000
|
-
"name": "
|
|
1039
|
+
"name": "target",
|
|
1001
1040
|
"type": {
|
|
1002
|
-
"text": "
|
|
1041
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
1003
1042
|
},
|
|
1004
|
-
"default": "
|
|
1005
|
-
"description": "
|
|
1043
|
+
"default": "\"_self\"",
|
|
1044
|
+
"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.",
|
|
1045
|
+
"attribute": "target",
|
|
1046
|
+
"reflects": true
|
|
1006
1047
|
},
|
|
1007
1048
|
{
|
|
1008
1049
|
"kind": "field",
|
|
1009
|
-
"name": "
|
|
1050
|
+
"name": "expand",
|
|
1010
1051
|
"type": {
|
|
1011
1052
|
"text": "boolean"
|
|
1012
1053
|
},
|
|
1013
|
-
"
|
|
1014
|
-
"
|
|
1054
|
+
"default": "false",
|
|
1055
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
1056
|
+
"attribute": "expand",
|
|
1057
|
+
"reflects": true
|
|
1015
1058
|
},
|
|
1016
1059
|
{
|
|
1017
|
-
"kind": "
|
|
1018
|
-
"name": "
|
|
1060
|
+
"kind": "method",
|
|
1061
|
+
"name": "renderLink",
|
|
1019
1062
|
"privacy": "private",
|
|
1020
|
-
"
|
|
1063
|
+
"parameters": [
|
|
1064
|
+
{
|
|
1065
|
+
"name": "innards",
|
|
1066
|
+
"type": {
|
|
1067
|
+
"text": "TemplateResult"
|
|
1068
|
+
}
|
|
1069
|
+
}
|
|
1070
|
+
],
|
|
1071
|
+
"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."
|
|
1021
1072
|
},
|
|
1022
1073
|
{
|
|
1023
1074
|
"kind": "method",
|
|
1024
|
-
"name": "
|
|
1075
|
+
"name": "renderButton",
|
|
1076
|
+
"privacy": "private",
|
|
1025
1077
|
"parameters": [
|
|
1026
1078
|
{
|
|
1027
|
-
"name": "
|
|
1028
|
-
"optional": true,
|
|
1079
|
+
"name": "innards",
|
|
1029
1080
|
"type": {
|
|
1030
|
-
"text": "
|
|
1081
|
+
"text": "TemplateResult"
|
|
1031
1082
|
}
|
|
1032
1083
|
}
|
|
1033
1084
|
]
|
|
1034
1085
|
},
|
|
1035
1086
|
{
|
|
1036
1087
|
"kind": "method",
|
|
1037
|
-
"name": "
|
|
1088
|
+
"name": "renderLightDom",
|
|
1038
1089
|
"privacy": "private"
|
|
1039
1090
|
},
|
|
1040
1091
|
{
|
|
1041
1092
|
"kind": "field",
|
|
1042
|
-
"name": "
|
|
1093
|
+
"name": "handleOuterClick",
|
|
1043
1094
|
"privacy": "private"
|
|
1044
1095
|
},
|
|
1045
1096
|
{
|
|
1046
1097
|
"kind": "method",
|
|
1047
|
-
"name": "
|
|
1098
|
+
"name": "handleClick",
|
|
1048
1099
|
"privacy": "private",
|
|
1049
1100
|
"parameters": [
|
|
1050
1101
|
{
|
|
1051
|
-
"name": "
|
|
1102
|
+
"name": "e",
|
|
1052
1103
|
"type": {
|
|
1053
|
-
"text": "
|
|
1104
|
+
"text": "Event"
|
|
1054
1105
|
}
|
|
1055
1106
|
}
|
|
1056
1107
|
]
|
|
1057
1108
|
},
|
|
1058
1109
|
{
|
|
1059
|
-
"kind": "
|
|
1060
|
-
"name": "
|
|
1061
|
-
"
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1110
|
+
"kind": "field",
|
|
1111
|
+
"name": "disabled",
|
|
1112
|
+
"type": {
|
|
1113
|
+
"text": "boolean"
|
|
1114
|
+
},
|
|
1115
|
+
"default": "false",
|
|
1116
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1117
|
+
"attribute": "disabled",
|
|
1118
|
+
"reflects": true,
|
|
1119
|
+
"inheritedFrom": {
|
|
1120
|
+
"name": "InputMixin",
|
|
1121
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1122
|
+
}
|
|
1070
1123
|
},
|
|
1071
1124
|
{
|
|
1072
|
-
"kind": "
|
|
1073
|
-
"name": "
|
|
1074
|
-
"
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1125
|
+
"kind": "field",
|
|
1126
|
+
"name": "name",
|
|
1127
|
+
"type": {
|
|
1128
|
+
"text": "string | undefined"
|
|
1129
|
+
},
|
|
1130
|
+
"description": "The name of the form component.",
|
|
1131
|
+
"attribute": "name",
|
|
1132
|
+
"inheritedFrom": {
|
|
1133
|
+
"name": "InputMixin",
|
|
1134
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1135
|
+
}
|
|
1083
1136
|
},
|
|
1084
1137
|
{
|
|
1085
|
-
"kind": "
|
|
1086
|
-
"name": "
|
|
1087
|
-
"
|
|
1138
|
+
"kind": "field",
|
|
1139
|
+
"name": "value",
|
|
1140
|
+
"type": {
|
|
1141
|
+
"text": "string"
|
|
1142
|
+
},
|
|
1143
|
+
"default": "\"\"",
|
|
1144
|
+
"description": "The value of the form component.",
|
|
1145
|
+
"attribute": "value",
|
|
1146
|
+
"inheritedFrom": {
|
|
1147
|
+
"name": "InputMixin",
|
|
1148
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1149
|
+
}
|
|
1088
1150
|
},
|
|
1089
1151
|
{
|
|
1090
|
-
"kind": "
|
|
1091
|
-
"name": "
|
|
1092
|
-
"privacy": "
|
|
1152
|
+
"kind": "field",
|
|
1153
|
+
"name": "form",
|
|
1154
|
+
"privacy": "protected",
|
|
1155
|
+
"description": "Gets the form, if any, associated with the form element.",
|
|
1156
|
+
"inheritedFrom": {
|
|
1157
|
+
"name": "InputMixin",
|
|
1158
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1159
|
+
}
|
|
1093
1160
|
},
|
|
1094
1161
|
{
|
|
1095
|
-
"kind": "
|
|
1096
|
-
"name": "
|
|
1097
|
-
"privacy": "
|
|
1098
|
-
"
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
"text": "number"
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
]
|
|
1162
|
+
"kind": "field",
|
|
1163
|
+
"name": "focusableRef",
|
|
1164
|
+
"privacy": "protected",
|
|
1165
|
+
"inheritedFrom": {
|
|
1166
|
+
"name": "FocusableMixin",
|
|
1167
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1168
|
+
}
|
|
1106
1169
|
},
|
|
1107
1170
|
{
|
|
1108
1171
|
"kind": "method",
|
|
1109
|
-
"name": "
|
|
1110
|
-
"privacy": "private",
|
|
1172
|
+
"name": "focus",
|
|
1111
1173
|
"parameters": [
|
|
1112
1174
|
{
|
|
1113
|
-
"name": "
|
|
1175
|
+
"name": "options",
|
|
1176
|
+
"optional": true,
|
|
1114
1177
|
"type": {
|
|
1115
|
-
"text": "
|
|
1116
|
-
}
|
|
1178
|
+
"text": "FocusOptions"
|
|
1179
|
+
},
|
|
1180
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1117
1181
|
}
|
|
1118
|
-
]
|
|
1182
|
+
],
|
|
1183
|
+
"description": "Programmatically move focus to the component.",
|
|
1184
|
+
"inheritedFrom": {
|
|
1185
|
+
"name": "FocusableMixin",
|
|
1186
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1187
|
+
}
|
|
1119
1188
|
},
|
|
1120
1189
|
{
|
|
1121
1190
|
"kind": "method",
|
|
1122
|
-
"name": "
|
|
1123
|
-
"
|
|
1124
|
-
"
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
"text": "Date"
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
]
|
|
1191
|
+
"name": "blur",
|
|
1192
|
+
"description": "Programmatically remove focus from the component.",
|
|
1193
|
+
"inheritedFrom": {
|
|
1194
|
+
"name": "FocusableMixin",
|
|
1195
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1196
|
+
}
|
|
1132
1197
|
},
|
|
1133
1198
|
{
|
|
1134
|
-
"kind": "
|
|
1135
|
-
"name": "
|
|
1136
|
-
"
|
|
1137
|
-
|
|
1199
|
+
"kind": "method",
|
|
1200
|
+
"name": "click",
|
|
1201
|
+
"description": "Programmatically simulates a click on the component.",
|
|
1202
|
+
"inheritedFrom": {
|
|
1203
|
+
"name": "FocusableMixin",
|
|
1204
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1205
|
+
}
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
"attributes": [
|
|
1138
1209
|
{
|
|
1139
|
-
"
|
|
1140
|
-
"
|
|
1141
|
-
|
|
1210
|
+
"name": "variant",
|
|
1211
|
+
"type": {
|
|
1212
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
1213
|
+
},
|
|
1214
|
+
"default": "\"default\"",
|
|
1215
|
+
"description": "The style variant of the button.",
|
|
1216
|
+
"fieldName": "variant"
|
|
1142
1217
|
},
|
|
1143
1218
|
{
|
|
1144
|
-
"
|
|
1145
|
-
"
|
|
1146
|
-
|
|
1219
|
+
"name": "type",
|
|
1220
|
+
"type": {
|
|
1221
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1222
|
+
},
|
|
1223
|
+
"default": "\"submit\"",
|
|
1224
|
+
"description": "The type of the button.",
|
|
1225
|
+
"fieldName": "type"
|
|
1147
1226
|
},
|
|
1148
1227
|
{
|
|
1149
|
-
"
|
|
1150
|
-
"
|
|
1151
|
-
|
|
1228
|
+
"name": "size",
|
|
1229
|
+
"type": {
|
|
1230
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
1231
|
+
},
|
|
1232
|
+
"default": "\"m\"",
|
|
1233
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
1234
|
+
"fieldName": "size"
|
|
1152
1235
|
},
|
|
1153
1236
|
{
|
|
1154
|
-
"
|
|
1155
|
-
"
|
|
1156
|
-
|
|
1237
|
+
"name": "href",
|
|
1238
|
+
"type": {
|
|
1239
|
+
"text": "string | undefined"
|
|
1240
|
+
},
|
|
1241
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
1242
|
+
"fieldName": "href"
|
|
1157
1243
|
},
|
|
1158
1244
|
{
|
|
1159
|
-
"
|
|
1160
|
-
"
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1245
|
+
"name": "download",
|
|
1246
|
+
"type": {
|
|
1247
|
+
"text": "boolean"
|
|
1248
|
+
},
|
|
1249
|
+
"default": "false",
|
|
1250
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
1251
|
+
"fieldName": "download"
|
|
1252
|
+
},
|
|
1165
1253
|
{
|
|
1166
|
-
"name": "
|
|
1254
|
+
"name": "target",
|
|
1167
1255
|
"type": {
|
|
1168
|
-
"text": "
|
|
1256
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
1169
1257
|
},
|
|
1170
|
-
"default": "\"\"",
|
|
1171
|
-
"description": "
|
|
1172
|
-
"fieldName": "
|
|
1258
|
+
"default": "\"_self\"",
|
|
1259
|
+
"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.",
|
|
1260
|
+
"fieldName": "target"
|
|
1173
1261
|
},
|
|
1174
1262
|
{
|
|
1175
|
-
"name": "
|
|
1263
|
+
"name": "expand",
|
|
1176
1264
|
"type": {
|
|
1177
|
-
"text": "
|
|
1265
|
+
"text": "boolean"
|
|
1178
1266
|
},
|
|
1179
|
-
"
|
|
1180
|
-
"
|
|
1267
|
+
"default": "false",
|
|
1268
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
1269
|
+
"fieldName": "expand"
|
|
1181
1270
|
},
|
|
1182
1271
|
{
|
|
1183
|
-
"name": "
|
|
1272
|
+
"name": "disabled",
|
|
1184
1273
|
"type": {
|
|
1185
|
-
"text": "
|
|
1274
|
+
"text": "boolean"
|
|
1186
1275
|
},
|
|
1187
|
-
"default": "
|
|
1188
|
-
"description": "
|
|
1189
|
-
"fieldName": "
|
|
1276
|
+
"default": "false",
|
|
1277
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1278
|
+
"fieldName": "disabled",
|
|
1279
|
+
"inheritedFrom": {
|
|
1280
|
+
"name": "InputMixin",
|
|
1281
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1282
|
+
}
|
|
1190
1283
|
},
|
|
1191
1284
|
{
|
|
1192
|
-
"name": "
|
|
1285
|
+
"name": "name",
|
|
1193
1286
|
"type": {
|
|
1194
|
-
"text": "string"
|
|
1287
|
+
"text": "string | undefined"
|
|
1195
1288
|
},
|
|
1196
|
-
"
|
|
1197
|
-
"
|
|
1198
|
-
"
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
"package": "lit"
|
|
1204
|
-
},
|
|
1205
|
-
"status": "ready",
|
|
1206
|
-
"category": "list",
|
|
1207
|
-
"tagName": "nord-calendar",
|
|
1208
|
-
"customElement": true
|
|
1209
|
-
}
|
|
1210
|
-
],
|
|
1211
|
-
"exports": [
|
|
1212
|
-
{
|
|
1213
|
-
"kind": "js",
|
|
1214
|
-
"name": "default",
|
|
1215
|
-
"declaration": {
|
|
1216
|
-
"name": "Calendar",
|
|
1217
|
-
"module": "src/calendar/Calendar.ts"
|
|
1218
|
-
}
|
|
1219
|
-
},
|
|
1220
|
-
{
|
|
1221
|
-
"kind": "custom-element-definition",
|
|
1222
|
-
"name": "nord-calendar",
|
|
1223
|
-
"declaration": {
|
|
1224
|
-
"name": "Calendar",
|
|
1225
|
-
"module": "src/calendar/Calendar.ts"
|
|
1226
|
-
}
|
|
1227
|
-
}
|
|
1228
|
-
],
|
|
1229
|
-
"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"
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
"kind": "javascript-module",
|
|
1233
|
-
"path": "src/calendar/DateSelectEvent.ts",
|
|
1234
|
-
"declarations": [
|
|
1235
|
-
{
|
|
1236
|
-
"kind": "class",
|
|
1237
|
-
"description": "",
|
|
1238
|
-
"name": "DateSelectEvent",
|
|
1239
|
-
"members": [
|
|
1289
|
+
"description": "The name of the form component.",
|
|
1290
|
+
"fieldName": "name",
|
|
1291
|
+
"inheritedFrom": {
|
|
1292
|
+
"name": "InputMixin",
|
|
1293
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1294
|
+
}
|
|
1295
|
+
},
|
|
1240
1296
|
{
|
|
1241
|
-
"
|
|
1242
|
-
"name": "eventName",
|
|
1297
|
+
"name": "value",
|
|
1243
1298
|
"type": {
|
|
1244
1299
|
"text": "string"
|
|
1245
1300
|
},
|
|
1246
|
-
"
|
|
1247
|
-
"
|
|
1301
|
+
"default": "\"\"",
|
|
1302
|
+
"description": "The value of the form component.",
|
|
1303
|
+
"fieldName": "value",
|
|
1304
|
+
"inheritedFrom": {
|
|
1305
|
+
"name": "InputMixin",
|
|
1306
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
],
|
|
1310
|
+
"mixins": [
|
|
1311
|
+
{
|
|
1312
|
+
"name": "InputMixin",
|
|
1313
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
1248
1314
|
},
|
|
1249
1315
|
{
|
|
1250
|
-
"
|
|
1251
|
-
"
|
|
1252
|
-
"type": {
|
|
1253
|
-
"text": "Date"
|
|
1254
|
-
},
|
|
1255
|
-
"default": "date"
|
|
1316
|
+
"name": "FocusableMixin",
|
|
1317
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
1256
1318
|
}
|
|
1257
1319
|
],
|
|
1258
1320
|
"superclass": {
|
|
1259
|
-
"name": "
|
|
1260
|
-
"
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
],
|
|
1264
|
-
"exports": [
|
|
1265
|
-
{
|
|
1266
|
-
"kind": "js",
|
|
1267
|
-
"name": "DateSelectEvent",
|
|
1268
|
-
"declaration": {
|
|
1269
|
-
"name": "DateSelectEvent",
|
|
1270
|
-
"module": "src/calendar/DateSelectEvent.ts"
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
],
|
|
1274
|
-
"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"
|
|
1275
|
-
},
|
|
1276
|
-
{
|
|
1277
|
-
"kind": "javascript-module",
|
|
1278
|
-
"path": "src/calendar/calendar-localization.ts",
|
|
1279
|
-
"declarations": [
|
|
1280
|
-
{
|
|
1281
|
-
"kind": "variable",
|
|
1282
|
-
"name": "localization",
|
|
1283
|
-
"type": {
|
|
1284
|
-
"text": "CalendarLocalizedText"
|
|
1321
|
+
"name": "LitElement",
|
|
1322
|
+
"package": "lit"
|
|
1285
1323
|
},
|
|
1286
|
-
"
|
|
1324
|
+
"status": "ready",
|
|
1325
|
+
"category": "action",
|
|
1326
|
+
"tagName": "nord-button",
|
|
1327
|
+
"customElement": true
|
|
1287
1328
|
}
|
|
1288
1329
|
],
|
|
1289
1330
|
"exports": [
|
|
@@ -1291,61 +1332,20 @@
|
|
|
1291
1332
|
"kind": "js",
|
|
1292
1333
|
"name": "default",
|
|
1293
1334
|
"declaration": {
|
|
1294
|
-
"name": "
|
|
1295
|
-
"module": "src/
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
],
|
|
1299
|
-
"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"
|
|
1300
|
-
},
|
|
1301
|
-
{
|
|
1302
|
-
"kind": "javascript-module",
|
|
1303
|
-
"path": "src/calendar/month-view.ts",
|
|
1304
|
-
"declarations": [
|
|
1305
|
-
{
|
|
1306
|
-
"kind": "function",
|
|
1307
|
-
"name": "dayView",
|
|
1308
|
-
"parameters": [
|
|
1309
|
-
{
|
|
1310
|
-
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
1311
|
-
"type": {
|
|
1312
|
-
"text": "DatePickerDayProps"
|
|
1313
|
-
}
|
|
1314
|
-
}
|
|
1315
|
-
]
|
|
1316
|
-
},
|
|
1317
|
-
{
|
|
1318
|
-
"kind": "function",
|
|
1319
|
-
"name": "monthView",
|
|
1320
|
-
"parameters": [
|
|
1321
|
-
{
|
|
1322
|
-
"name": "{\n onFocusIn,\n onFocusOut,\n selectedDate,\n focusedDate,\n labelledById,\n localization,\n firstDayOfWeek,\n min,\n max,\n dateFormatter,\n isDateDisabled,\n onDateSelect,\n onKeyboardNavigation,\n}",
|
|
1323
|
-
"type": {
|
|
1324
|
-
"text": "MonthViewArgs"
|
|
1325
|
-
}
|
|
1326
|
-
}
|
|
1327
|
-
]
|
|
1328
|
-
}
|
|
1329
|
-
],
|
|
1330
|
-
"exports": [
|
|
1331
|
-
{
|
|
1332
|
-
"kind": "js",
|
|
1333
|
-
"name": "dayView",
|
|
1334
|
-
"declaration": {
|
|
1335
|
-
"name": "dayView",
|
|
1336
|
-
"module": "src/calendar/month-view.ts"
|
|
1335
|
+
"name": "Button",
|
|
1336
|
+
"module": "src/button/Button.ts"
|
|
1337
1337
|
}
|
|
1338
1338
|
},
|
|
1339
1339
|
{
|
|
1340
|
-
"kind": "
|
|
1341
|
-
"name": "
|
|
1340
|
+
"kind": "custom-element-definition",
|
|
1341
|
+
"name": "nord-button",
|
|
1342
1342
|
"declaration": {
|
|
1343
|
-
"name": "
|
|
1344
|
-
"module": "src/
|
|
1343
|
+
"name": "Button",
|
|
1344
|
+
"module": "src/button/Button.ts"
|
|
1345
1345
|
}
|
|
1346
1346
|
}
|
|
1347
1347
|
],
|
|
1348
|
-
"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
|
|
1348
|
+
"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"
|
|
1349
1349
|
},
|
|
1350
1350
|
{
|
|
1351
1351
|
"kind": "javascript-module",
|
|
@@ -4660,82 +4660,6 @@
|
|
|
4660
4660
|
],
|
|
4661
4661
|
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the fieldset component when you need to create a relationship between multiple form inputs.\n- It is especially important to use with a group of radio components.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t place interactive content (buttons, links etc) inside the label.\n- Don’t use with a checkbox component when there is **only one** checkbox. For example, when accepting terms and conditions.\n\n</div>\n\n-------\n\n## Content guidelines\n\nFieldset label should be clear, accurate and predictable. It should help the user to understand how the items in the fieldset are grouped together, or what kind of choice the user is making:\n\n<div class=\"n-usage n-usage-do\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Choose</div>\n\nWhen writing fieldset labels, always write them in sentence case, not title case. The first word should be capitalized and the rest lowercase (unless a proper noun):\n\n<div class=\"n-usage n-usage-do\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Pick A Color</div>\n\nAvoid ending in punctuation if it’s a single sentence, word, or a fragment:\n\n<div class=\"n-usage n-usage-do\">Pick a color</div>\n<div class=\"n-usage n-usage-dont\">Pick a color.</div>\n\nDo not use colons in fieldset label:\n\n<div class=\"n-usage n-usage-do\">Payment details</div>\n<div class=\"n-usage n-usage-dont\">Payment details:</div>\n\n-------\n\n## Additional considerations\n\n- A label (which becomes to `<legend>` inside the fieldset) is always required.\n- Hint text can be used to offer further information or explanation for an option.\n"
|
|
4662
4662
|
},
|
|
4663
|
-
{
|
|
4664
|
-
"kind": "javascript-module",
|
|
4665
|
-
"path": "src/header/Header.ts",
|
|
4666
|
-
"declarations": [
|
|
4667
|
-
{
|
|
4668
|
-
"kind": "class",
|
|
4669
|
-
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
4670
|
-
"name": "Header",
|
|
4671
|
-
"slots": [
|
|
4672
|
-
{
|
|
4673
|
-
"description": "The header content.",
|
|
4674
|
-
"name": ""
|
|
4675
|
-
},
|
|
4676
|
-
{
|
|
4677
|
-
"description": "Optional slot for buttons, toggles, etc.",
|
|
4678
|
-
"name": "action"
|
|
4679
|
-
}
|
|
4680
|
-
],
|
|
4681
|
-
"members": [
|
|
4682
|
-
{
|
|
4683
|
-
"kind": "field",
|
|
4684
|
-
"name": "actionSlot",
|
|
4685
|
-
"privacy": "private",
|
|
4686
|
-
"default": "new SlotController(this, \"action\")"
|
|
4687
|
-
},
|
|
4688
|
-
{
|
|
4689
|
-
"kind": "field",
|
|
4690
|
-
"name": "_warningLogged",
|
|
4691
|
-
"type": {
|
|
4692
|
-
"text": "boolean"
|
|
4693
|
-
},
|
|
4694
|
-
"privacy": "private",
|
|
4695
|
-
"static": true,
|
|
4696
|
-
"default": "false",
|
|
4697
|
-
"inheritedFrom": {
|
|
4698
|
-
"name": "DraftComponentMixin",
|
|
4699
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
4700
|
-
}
|
|
4701
|
-
}
|
|
4702
|
-
],
|
|
4703
|
-
"mixins": [
|
|
4704
|
-
{
|
|
4705
|
-
"name": "DraftComponentMixin",
|
|
4706
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
4707
|
-
}
|
|
4708
|
-
],
|
|
4709
|
-
"superclass": {
|
|
4710
|
-
"name": "LitElement",
|
|
4711
|
-
"package": "lit"
|
|
4712
|
-
},
|
|
4713
|
-
"status": "draft",
|
|
4714
|
-
"category": "structure",
|
|
4715
|
-
"tagName": "nord-header",
|
|
4716
|
-
"customElement": true
|
|
4717
|
-
}
|
|
4718
|
-
],
|
|
4719
|
-
"exports": [
|
|
4720
|
-
{
|
|
4721
|
-
"kind": "js",
|
|
4722
|
-
"name": "default",
|
|
4723
|
-
"declaration": {
|
|
4724
|
-
"name": "Header",
|
|
4725
|
-
"module": "src/header/Header.ts"
|
|
4726
|
-
}
|
|
4727
|
-
},
|
|
4728
|
-
{
|
|
4729
|
-
"kind": "custom-element-definition",
|
|
4730
|
-
"name": "nord-header",
|
|
4731
|
-
"declaration": {
|
|
4732
|
-
"name": "Header",
|
|
4733
|
-
"module": "src/header/Header.ts"
|
|
4734
|
-
}
|
|
4735
|
-
}
|
|
4736
|
-
],
|
|
4737
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n\n</div>\n\n-------\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n"
|
|
4738
|
-
},
|
|
4739
4663
|
{
|
|
4740
4664
|
"kind": "javascript-module",
|
|
4741
4665
|
"path": "src/icon/Icon.ts",
|
|
@@ -4933,21 +4857,97 @@
|
|
|
4933
4857
|
"fieldName": "color"
|
|
4934
4858
|
},
|
|
4935
4859
|
{
|
|
4936
|
-
"name": "label",
|
|
4860
|
+
"name": "label",
|
|
4861
|
+
"type": {
|
|
4862
|
+
"text": "string | undefined"
|
|
4863
|
+
},
|
|
4864
|
+
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
4865
|
+
"fieldName": "label"
|
|
4866
|
+
}
|
|
4867
|
+
],
|
|
4868
|
+
"superclass": {
|
|
4869
|
+
"name": "LitElement",
|
|
4870
|
+
"package": "lit"
|
|
4871
|
+
},
|
|
4872
|
+
"status": "ready",
|
|
4873
|
+
"category": "image",
|
|
4874
|
+
"tagName": "nord-icon",
|
|
4875
|
+
"customElement": true
|
|
4876
|
+
}
|
|
4877
|
+
],
|
|
4878
|
+
"exports": [
|
|
4879
|
+
{
|
|
4880
|
+
"kind": "js",
|
|
4881
|
+
"name": "default",
|
|
4882
|
+
"declaration": {
|
|
4883
|
+
"name": "Icon",
|
|
4884
|
+
"module": "src/icon/Icon.ts"
|
|
4885
|
+
}
|
|
4886
|
+
},
|
|
4887
|
+
{
|
|
4888
|
+
"kind": "custom-element-definition",
|
|
4889
|
+
"name": "nord-icon",
|
|
4890
|
+
"declaration": {
|
|
4891
|
+
"name": "Icon",
|
|
4892
|
+
"module": "src/icon/Icon.ts"
|
|
4893
|
+
}
|
|
4894
|
+
}
|
|
4895
|
+
],
|
|
4896
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use to provide additional meaning in addition to a text label.\n- Use to help users who have difficulties with reading and attention.\n- Use in places where text label doesn’t fit (remember to add an accessible label for the icon).\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for decorative purposes alone.\n- Don’t use when a button’s action is already clear based on the text label.\n- Don’t use the same icon for differing purposes, as users will come to associate icons with specific types of actions.\n\n</div>\n\n---\n\n## Additional considerations\n\n- Icon components are hidden from assistive technologies by default.\n- Use `label` property to give an accessible label for the icon and to make it visible to assistive technologies.\n"
|
|
4897
|
+
},
|
|
4898
|
+
{
|
|
4899
|
+
"kind": "javascript-module",
|
|
4900
|
+
"path": "src/header/Header.ts",
|
|
4901
|
+
"declarations": [
|
|
4902
|
+
{
|
|
4903
|
+
"kind": "class",
|
|
4904
|
+
"description": "The header is a block of designated space for labelling the currently\nviewed context as well as providing primary actions.",
|
|
4905
|
+
"name": "Header",
|
|
4906
|
+
"slots": [
|
|
4907
|
+
{
|
|
4908
|
+
"description": "The header content.",
|
|
4909
|
+
"name": ""
|
|
4910
|
+
},
|
|
4911
|
+
{
|
|
4912
|
+
"description": "Optional slot for buttons, toggles, etc.",
|
|
4913
|
+
"name": "action"
|
|
4914
|
+
}
|
|
4915
|
+
],
|
|
4916
|
+
"members": [
|
|
4917
|
+
{
|
|
4918
|
+
"kind": "field",
|
|
4919
|
+
"name": "actionSlot",
|
|
4920
|
+
"privacy": "private",
|
|
4921
|
+
"default": "new SlotController(this, \"action\")"
|
|
4922
|
+
},
|
|
4923
|
+
{
|
|
4924
|
+
"kind": "field",
|
|
4925
|
+
"name": "_warningLogged",
|
|
4937
4926
|
"type": {
|
|
4938
|
-
"text": "
|
|
4927
|
+
"text": "boolean"
|
|
4939
4928
|
},
|
|
4940
|
-
"
|
|
4941
|
-
"
|
|
4929
|
+
"privacy": "private",
|
|
4930
|
+
"static": true,
|
|
4931
|
+
"default": "false",
|
|
4932
|
+
"inheritedFrom": {
|
|
4933
|
+
"name": "DraftComponentMixin",
|
|
4934
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
4935
|
+
}
|
|
4936
|
+
}
|
|
4937
|
+
],
|
|
4938
|
+
"mixins": [
|
|
4939
|
+
{
|
|
4940
|
+
"name": "DraftComponentMixin",
|
|
4941
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
4942
4942
|
}
|
|
4943
4943
|
],
|
|
4944
4944
|
"superclass": {
|
|
4945
4945
|
"name": "LitElement",
|
|
4946
4946
|
"package": "lit"
|
|
4947
4947
|
},
|
|
4948
|
-
"status": "
|
|
4949
|
-
"category": "
|
|
4950
|
-
"tagName": "nord-
|
|
4948
|
+
"status": "draft",
|
|
4949
|
+
"category": "structure",
|
|
4950
|
+
"tagName": "nord-header",
|
|
4951
4951
|
"customElement": true
|
|
4952
4952
|
}
|
|
4953
4953
|
],
|
|
@@ -4956,20 +4956,20 @@
|
|
|
4956
4956
|
"kind": "js",
|
|
4957
4957
|
"name": "default",
|
|
4958
4958
|
"declaration": {
|
|
4959
|
-
"name": "
|
|
4960
|
-
"module": "src/
|
|
4959
|
+
"name": "Header",
|
|
4960
|
+
"module": "src/header/Header.ts"
|
|
4961
4961
|
}
|
|
4962
4962
|
},
|
|
4963
4963
|
{
|
|
4964
4964
|
"kind": "custom-element-definition",
|
|
4965
|
-
"name": "nord-
|
|
4965
|
+
"name": "nord-header",
|
|
4966
4966
|
"declaration": {
|
|
4967
|
-
"name": "
|
|
4968
|
-
"module": "src/
|
|
4967
|
+
"name": "Header",
|
|
4968
|
+
"module": "src/header/Header.ts"
|
|
4969
4969
|
}
|
|
4970
4970
|
}
|
|
4971
4971
|
],
|
|
4972
|
-
"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
|
|
4972
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use the header component to show a heading to describe the current view.\n- Use the header component to hold primary actions.\n- Use the header component at a visual high position at full width.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t overcrowd the header component with too many actions or information.\n- Don’t nest the header component too deeply and restrict its available space.\n\n</div>\n\n-------\n\n## Content guidelines\n\nThe header component should be a containing element placed high on the page to present high level controls and to describe the page itself. It shouldn’t be overcrowded with controls or information.\n\n<div class=\"n-usage n-usage-do\">[Menu] Dashboard [Account] [Log out]</div>\n<div class=\"n-usage n-usage-dont\">[Menu] Use the cards below to view various information [Export] [Save] [Edit Profile] [Log out] [Preferences]</div>\n"
|
|
4973
4973
|
},
|
|
4974
4974
|
{
|
|
4975
4975
|
"kind": "javascript-module",
|
|
@@ -8492,263 +8492,87 @@
|
|
|
8492
8492
|
{
|
|
8493
8493
|
"name": "delay",
|
|
8494
8494
|
"type": {
|
|
8495
|
-
"text": "number"
|
|
8496
|
-
},
|
|
8497
|
-
"default": "300",
|
|
8498
|
-
"description": "The delay in milliseconds before the tooltip is opened.",
|
|
8499
|
-
"fieldName": "delay"
|
|
8500
|
-
}
|
|
8501
|
-
],
|
|
8502
|
-
"superclass": {
|
|
8503
|
-
"name": "LitElement",
|
|
8504
|
-
"package": "lit"
|
|
8505
|
-
},
|
|
8506
|
-
"status": "ready",
|
|
8507
|
-
"category": "overlay",
|
|
8508
|
-
"tagName": "nord-tooltip",
|
|
8509
|
-
"customElement": true
|
|
8510
|
-
}
|
|
8511
|
-
],
|
|
8512
|
-
"exports": [
|
|
8513
|
-
{
|
|
8514
|
-
"kind": "js",
|
|
8515
|
-
"name": "default",
|
|
8516
|
-
"declaration": {
|
|
8517
|
-
"name": "Tooltip",
|
|
8518
|
-
"module": "src/tooltip/Tooltip.ts"
|
|
8519
|
-
}
|
|
8520
|
-
},
|
|
8521
|
-
{
|
|
8522
|
-
"kind": "custom-element-definition",
|
|
8523
|
-
"name": "nord-tooltip",
|
|
8524
|
-
"declaration": {
|
|
8525
|
-
"name": "Tooltip",
|
|
8526
|
-
"module": "src/tooltip/Tooltip.ts"
|
|
8527
|
-
}
|
|
8528
|
-
}
|
|
8529
|
-
],
|
|
8530
|
-
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use a tooltip if an interactive element requires more explanation.\n- Use a tooltip to provide additional information, such as UI shortcuts.\n- Use the `label` attribute on icons used for shortcuts for accessability.\n- Use clear and accurate phrasing.\n- Be consistent with positioning of tooltips in the user interface.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use interactive elements such as links or buttons inside a tooltip.\n- Don’t rely on tooltips when you have room to provide more explanation.\n- Don’t depend on tooltips for vital information.\n\n</div>\n\n-------\n\n## Content guidelines\n\nTooltips should be clear and informative, but not imperative to using the interface they refer to. They should not contain interactive elements such as buttons or links.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data as a CSV, <u>more information on CSVs</u></div>\n\nTooltips should provide useful information and not repeat information that is already present.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data</div>\n\nWhen writing tooltips, 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\">Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export Data As a Spreadsheet</div>\n\nUse tooltips sparingly. If your UI is requiring a lot of tooltips, consider revising the interface to provide better explanations and better labelling.\n\n-------\n\n## Additional considerations\n\n- Always provide a tooltip for icon-only buttons or a button with an associated keyboard shortcut.\n- Don’t use tooltip to communicate critical information, including errors.\n- Use sparingly. If you’re building something that requires a lot of tooltips, take a step back and work on clarifying the design and the language used instead.\n"
|
|
8531
|
-
},
|
|
8532
|
-
{
|
|
8533
|
-
"kind": "javascript-module",
|
|
8534
|
-
"path": "src/visually-hidden/VisuallyHidden.ts",
|
|
8535
|
-
"declarations": [
|
|
8536
|
-
{
|
|
8537
|
-
"kind": "class",
|
|
8538
|
-
"description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
|
|
8539
|
-
"name": "VisuallyHidden",
|
|
8540
|
-
"slots": [
|
|
8541
|
-
{
|
|
8542
|
-
"description": "The visually hidden content.",
|
|
8543
|
-
"name": ""
|
|
8544
|
-
}
|
|
8545
|
-
],
|
|
8546
|
-
"members": [],
|
|
8547
|
-
"superclass": {
|
|
8548
|
-
"name": "LitElement",
|
|
8549
|
-
"package": "lit"
|
|
8550
|
-
},
|
|
8551
|
-
"status": "ready",
|
|
8552
|
-
"category": "text",
|
|
8553
|
-
"tagName": "nord-visually-hidden",
|
|
8554
|
-
"customElement": true
|
|
8555
|
-
}
|
|
8556
|
-
],
|
|
8557
|
-
"exports": [
|
|
8558
|
-
{
|
|
8559
|
-
"kind": "js",
|
|
8560
|
-
"name": "default",
|
|
8561
|
-
"declaration": {
|
|
8562
|
-
"name": "VisuallyHidden",
|
|
8563
|
-
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
8564
|
-
}
|
|
8565
|
-
},
|
|
8566
|
-
{
|
|
8567
|
-
"kind": "custom-element-definition",
|
|
8568
|
-
"name": "nord-visually-hidden",
|
|
8569
|
-
"declaration": {
|
|
8570
|
-
"name": "VisuallyHidden",
|
|
8571
|
-
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
8572
|
-
}
|
|
8573
|
-
}
|
|
8574
|
-
],
|
|
8575
|
-
"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 hide text visually from the screen, but keep it available to assistive technologies, such as screen readers.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for hiding interactive content.\n\n</div>\n"
|
|
8576
|
-
},
|
|
8577
|
-
{
|
|
8578
|
-
"kind": "javascript-module",
|
|
8579
|
-
"path": "src/common/directives/cond.ts",
|
|
8580
|
-
"declarations": [
|
|
8581
|
-
{
|
|
8582
|
-
"kind": "variable",
|
|
8583
|
-
"name": "cond"
|
|
8584
|
-
}
|
|
8585
|
-
],
|
|
8586
|
-
"exports": [
|
|
8587
|
-
{
|
|
8588
|
-
"kind": "js",
|
|
8589
|
-
"name": "cond",
|
|
8590
|
-
"declaration": {
|
|
8591
|
-
"name": "cond",
|
|
8592
|
-
"module": "src/common/directives/cond.ts"
|
|
8593
|
-
}
|
|
8594
|
-
}
|
|
8595
|
-
]
|
|
8596
|
-
},
|
|
8597
|
-
{
|
|
8598
|
-
"kind": "javascript-module",
|
|
8599
|
-
"path": "src/common/directives/wrapIf.ts",
|
|
8600
|
-
"declarations": [
|
|
8601
|
-
{
|
|
8602
|
-
"kind": "function",
|
|
8603
|
-
"name": "wrapIf",
|
|
8604
|
-
"return": {
|
|
8605
|
-
"type": {
|
|
8606
|
-
"text": "TInner"
|
|
8607
|
-
}
|
|
8608
|
-
},
|
|
8609
|
-
"parameters": [
|
|
8610
|
-
{
|
|
8611
|
-
"name": "condition",
|
|
8612
|
-
"type": {
|
|
8613
|
-
"text": "false"
|
|
8614
|
-
}
|
|
8615
|
-
},
|
|
8616
|
-
{
|
|
8617
|
-
"name": "inner",
|
|
8618
|
-
"type": {
|
|
8619
|
-
"text": "() => TInner"
|
|
8620
|
-
}
|
|
8621
|
-
},
|
|
8622
|
-
{
|
|
8623
|
-
"name": "wrapper",
|
|
8624
|
-
"type": {
|
|
8625
|
-
"text": "(inner: TInner) => TWrapper"
|
|
8626
|
-
}
|
|
8627
|
-
}
|
|
8628
|
-
]
|
|
8629
|
-
},
|
|
8630
|
-
{
|
|
8631
|
-
"kind": "function",
|
|
8632
|
-
"name": "wrapIf",
|
|
8633
|
-
"return": {
|
|
8634
|
-
"type": {
|
|
8635
|
-
"text": "TWrapper"
|
|
8636
|
-
}
|
|
8637
|
-
},
|
|
8638
|
-
"parameters": [
|
|
8639
|
-
{
|
|
8640
|
-
"name": "condition",
|
|
8641
|
-
"type": {
|
|
8642
|
-
"text": "true"
|
|
8643
|
-
}
|
|
8644
|
-
},
|
|
8645
|
-
{
|
|
8646
|
-
"name": "inner",
|
|
8647
|
-
"type": {
|
|
8648
|
-
"text": "() => TInner"
|
|
8649
|
-
}
|
|
8650
|
-
},
|
|
8651
|
-
{
|
|
8652
|
-
"name": "wrapper",
|
|
8653
|
-
"type": {
|
|
8654
|
-
"text": "(inner: TInner) => TWrapper"
|
|
8655
|
-
}
|
|
8656
|
-
}
|
|
8657
|
-
]
|
|
8658
|
-
},
|
|
8659
|
-
{
|
|
8660
|
-
"kind": "function",
|
|
8661
|
-
"name": "wrapIf",
|
|
8662
|
-
"return": {
|
|
8663
|
-
"type": {
|
|
8664
|
-
"text": "TInner | TWrapper"
|
|
8665
|
-
}
|
|
8666
|
-
},
|
|
8667
|
-
"parameters": [
|
|
8668
|
-
{
|
|
8669
|
-
"name": "condition",
|
|
8670
|
-
"type": {
|
|
8671
|
-
"text": "unknown"
|
|
8672
|
-
}
|
|
8673
|
-
},
|
|
8674
|
-
{
|
|
8675
|
-
"name": "inner",
|
|
8676
|
-
"type": {
|
|
8677
|
-
"text": "() => TInner"
|
|
8678
|
-
}
|
|
8679
|
-
},
|
|
8680
|
-
{
|
|
8681
|
-
"name": "wrapper",
|
|
8682
|
-
"type": {
|
|
8683
|
-
"text": "(inner: TInner) => TWrapper"
|
|
8684
|
-
}
|
|
8685
|
-
}
|
|
8686
|
-
]
|
|
8687
|
-
},
|
|
8688
|
-
{
|
|
8689
|
-
"kind": "function",
|
|
8690
|
-
"name": "wrapIf",
|
|
8691
|
-
"parameters": [
|
|
8692
|
-
{
|
|
8693
|
-
"name": "condition",
|
|
8694
|
-
"type": {
|
|
8695
|
-
"text": "any"
|
|
8696
|
-
}
|
|
8697
|
-
},
|
|
8698
|
-
{
|
|
8699
|
-
"name": "inner",
|
|
8700
|
-
"type": {
|
|
8701
|
-
"text": "() => TInner"
|
|
8702
|
-
}
|
|
8703
|
-
},
|
|
8704
|
-
{
|
|
8705
|
-
"name": "wrapper",
|
|
8706
|
-
"type": {
|
|
8707
|
-
"text": "(innards: TInner) => TWrapper"
|
|
8708
|
-
}
|
|
8495
|
+
"text": "number"
|
|
8496
|
+
},
|
|
8497
|
+
"default": "300",
|
|
8498
|
+
"description": "The delay in milliseconds before the tooltip is opened.",
|
|
8499
|
+
"fieldName": "delay"
|
|
8709
8500
|
}
|
|
8710
8501
|
],
|
|
8711
|
-
"
|
|
8712
|
-
"
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8502
|
+
"superclass": {
|
|
8503
|
+
"name": "LitElement",
|
|
8504
|
+
"package": "lit"
|
|
8505
|
+
},
|
|
8506
|
+
"status": "ready",
|
|
8507
|
+
"category": "overlay",
|
|
8508
|
+
"tagName": "nord-tooltip",
|
|
8509
|
+
"customElement": true
|
|
8716
8510
|
}
|
|
8717
8511
|
],
|
|
8718
8512
|
"exports": [
|
|
8719
8513
|
{
|
|
8720
8514
|
"kind": "js",
|
|
8721
|
-
"name": "
|
|
8515
|
+
"name": "default",
|
|
8722
8516
|
"declaration": {
|
|
8723
|
-
"name": "
|
|
8724
|
-
"module": "src/
|
|
8517
|
+
"name": "Tooltip",
|
|
8518
|
+
"module": "src/tooltip/Tooltip.ts"
|
|
8725
8519
|
}
|
|
8726
8520
|
},
|
|
8727
8521
|
{
|
|
8728
|
-
"kind": "
|
|
8729
|
-
"name": "
|
|
8522
|
+
"kind": "custom-element-definition",
|
|
8523
|
+
"name": "nord-tooltip",
|
|
8730
8524
|
"declaration": {
|
|
8731
|
-
"name": "
|
|
8732
|
-
"module": "src/
|
|
8525
|
+
"name": "Tooltip",
|
|
8526
|
+
"module": "src/tooltip/Tooltip.ts"
|
|
8733
8527
|
}
|
|
8734
|
-
}
|
|
8528
|
+
}
|
|
8529
|
+
],
|
|
8530
|
+
"readme": "## Usage\n\nThis section includes guidelines for designers and developers about the usage of this component in different contexts.\n\n<div class=\"n-usage n-usage-do\">\n\n### Do\n\n- Use a tooltip if an interactive element requires more explanation.\n- Use a tooltip to provide additional information, such as UI shortcuts.\n- Use the `label` attribute on icons used for shortcuts for accessability.\n- Use clear and accurate phrasing.\n- Be consistent with positioning of tooltips in the user interface.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use interactive elements such as links or buttons inside a tooltip.\n- Don’t rely on tooltips when you have room to provide more explanation.\n- Don’t depend on tooltips for vital information.\n\n</div>\n\n-------\n\n## Content guidelines\n\nTooltips should be clear and informative, but not imperative to using the interface they refer to. They should not contain interactive elements such as buttons or links.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data as a CSV, <u>more information on CSVs</u></div>\n\nTooltips should provide useful information and not repeat information that is already present.\n\n<div class=\"n-usage n-usage-do\">Export – Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export – Export data</div>\n\nWhen writing tooltips, 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\">Export data as a spreadsheet</div>\n<div class=\"n-usage n-usage-dont\">Export Data As a Spreadsheet</div>\n\nUse tooltips sparingly. If your UI is requiring a lot of tooltips, consider revising the interface to provide better explanations and better labelling.\n\n-------\n\n## Additional considerations\n\n- Always provide a tooltip for icon-only buttons or a button with an associated keyboard shortcut.\n- Don’t use tooltip to communicate critical information, including errors.\n- Use sparingly. If you’re building something that requires a lot of tooltips, take a step back and work on clarifying the design and the language used instead.\n"
|
|
8531
|
+
},
|
|
8532
|
+
{
|
|
8533
|
+
"kind": "javascript-module",
|
|
8534
|
+
"path": "src/visually-hidden/VisuallyHidden.ts",
|
|
8535
|
+
"declarations": [
|
|
8536
|
+
{
|
|
8537
|
+
"kind": "class",
|
|
8538
|
+
"description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
|
|
8539
|
+
"name": "VisuallyHidden",
|
|
8540
|
+
"slots": [
|
|
8541
|
+
{
|
|
8542
|
+
"description": "The visually hidden content.",
|
|
8543
|
+
"name": ""
|
|
8544
|
+
}
|
|
8545
|
+
],
|
|
8546
|
+
"members": [],
|
|
8547
|
+
"superclass": {
|
|
8548
|
+
"name": "LitElement",
|
|
8549
|
+
"package": "lit"
|
|
8550
|
+
},
|
|
8551
|
+
"status": "ready",
|
|
8552
|
+
"category": "text",
|
|
8553
|
+
"tagName": "nord-visually-hidden",
|
|
8554
|
+
"customElement": true
|
|
8555
|
+
}
|
|
8556
|
+
],
|
|
8557
|
+
"exports": [
|
|
8735
8558
|
{
|
|
8736
8559
|
"kind": "js",
|
|
8737
|
-
"name": "
|
|
8560
|
+
"name": "default",
|
|
8738
8561
|
"declaration": {
|
|
8739
|
-
"name": "
|
|
8740
|
-
"module": "src/
|
|
8562
|
+
"name": "VisuallyHidden",
|
|
8563
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
8741
8564
|
}
|
|
8742
8565
|
},
|
|
8743
8566
|
{
|
|
8744
|
-
"kind": "
|
|
8745
|
-
"name": "
|
|
8567
|
+
"kind": "custom-element-definition",
|
|
8568
|
+
"name": "nord-visually-hidden",
|
|
8746
8569
|
"declaration": {
|
|
8747
|
-
"name": "
|
|
8748
|
-
"module": "src/
|
|
8570
|
+
"name": "VisuallyHidden",
|
|
8571
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
8749
8572
|
}
|
|
8750
8573
|
}
|
|
8751
|
-
]
|
|
8574
|
+
],
|
|
8575
|
+
"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 hide text visually from the screen, but keep it available to assistive technologies, such as screen readers.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use for hiding interactive content.\n\n</div>\n"
|
|
8752
8576
|
},
|
|
8753
8577
|
{
|
|
8754
8578
|
"kind": "javascript-module",
|
|
@@ -9464,6 +9288,182 @@
|
|
|
9464
9288
|
}
|
|
9465
9289
|
]
|
|
9466
9290
|
},
|
|
9291
|
+
{
|
|
9292
|
+
"kind": "javascript-module",
|
|
9293
|
+
"path": "src/common/directives/cond.ts",
|
|
9294
|
+
"declarations": [
|
|
9295
|
+
{
|
|
9296
|
+
"kind": "variable",
|
|
9297
|
+
"name": "cond"
|
|
9298
|
+
}
|
|
9299
|
+
],
|
|
9300
|
+
"exports": [
|
|
9301
|
+
{
|
|
9302
|
+
"kind": "js",
|
|
9303
|
+
"name": "cond",
|
|
9304
|
+
"declaration": {
|
|
9305
|
+
"name": "cond",
|
|
9306
|
+
"module": "src/common/directives/cond.ts"
|
|
9307
|
+
}
|
|
9308
|
+
}
|
|
9309
|
+
]
|
|
9310
|
+
},
|
|
9311
|
+
{
|
|
9312
|
+
"kind": "javascript-module",
|
|
9313
|
+
"path": "src/common/directives/wrapIf.ts",
|
|
9314
|
+
"declarations": [
|
|
9315
|
+
{
|
|
9316
|
+
"kind": "function",
|
|
9317
|
+
"name": "wrapIf",
|
|
9318
|
+
"return": {
|
|
9319
|
+
"type": {
|
|
9320
|
+
"text": "TInner"
|
|
9321
|
+
}
|
|
9322
|
+
},
|
|
9323
|
+
"parameters": [
|
|
9324
|
+
{
|
|
9325
|
+
"name": "condition",
|
|
9326
|
+
"type": {
|
|
9327
|
+
"text": "false"
|
|
9328
|
+
}
|
|
9329
|
+
},
|
|
9330
|
+
{
|
|
9331
|
+
"name": "inner",
|
|
9332
|
+
"type": {
|
|
9333
|
+
"text": "() => TInner"
|
|
9334
|
+
}
|
|
9335
|
+
},
|
|
9336
|
+
{
|
|
9337
|
+
"name": "wrapper",
|
|
9338
|
+
"type": {
|
|
9339
|
+
"text": "(inner: TInner) => TWrapper"
|
|
9340
|
+
}
|
|
9341
|
+
}
|
|
9342
|
+
]
|
|
9343
|
+
},
|
|
9344
|
+
{
|
|
9345
|
+
"kind": "function",
|
|
9346
|
+
"name": "wrapIf",
|
|
9347
|
+
"return": {
|
|
9348
|
+
"type": {
|
|
9349
|
+
"text": "TWrapper"
|
|
9350
|
+
}
|
|
9351
|
+
},
|
|
9352
|
+
"parameters": [
|
|
9353
|
+
{
|
|
9354
|
+
"name": "condition",
|
|
9355
|
+
"type": {
|
|
9356
|
+
"text": "true"
|
|
9357
|
+
}
|
|
9358
|
+
},
|
|
9359
|
+
{
|
|
9360
|
+
"name": "inner",
|
|
9361
|
+
"type": {
|
|
9362
|
+
"text": "() => TInner"
|
|
9363
|
+
}
|
|
9364
|
+
},
|
|
9365
|
+
{
|
|
9366
|
+
"name": "wrapper",
|
|
9367
|
+
"type": {
|
|
9368
|
+
"text": "(inner: TInner) => TWrapper"
|
|
9369
|
+
}
|
|
9370
|
+
}
|
|
9371
|
+
]
|
|
9372
|
+
},
|
|
9373
|
+
{
|
|
9374
|
+
"kind": "function",
|
|
9375
|
+
"name": "wrapIf",
|
|
9376
|
+
"return": {
|
|
9377
|
+
"type": {
|
|
9378
|
+
"text": "TInner | TWrapper"
|
|
9379
|
+
}
|
|
9380
|
+
},
|
|
9381
|
+
"parameters": [
|
|
9382
|
+
{
|
|
9383
|
+
"name": "condition",
|
|
9384
|
+
"type": {
|
|
9385
|
+
"text": "unknown"
|
|
9386
|
+
}
|
|
9387
|
+
},
|
|
9388
|
+
{
|
|
9389
|
+
"name": "inner",
|
|
9390
|
+
"type": {
|
|
9391
|
+
"text": "() => TInner"
|
|
9392
|
+
}
|
|
9393
|
+
},
|
|
9394
|
+
{
|
|
9395
|
+
"name": "wrapper",
|
|
9396
|
+
"type": {
|
|
9397
|
+
"text": "(inner: TInner) => TWrapper"
|
|
9398
|
+
}
|
|
9399
|
+
}
|
|
9400
|
+
]
|
|
9401
|
+
},
|
|
9402
|
+
{
|
|
9403
|
+
"kind": "function",
|
|
9404
|
+
"name": "wrapIf",
|
|
9405
|
+
"parameters": [
|
|
9406
|
+
{
|
|
9407
|
+
"name": "condition",
|
|
9408
|
+
"type": {
|
|
9409
|
+
"text": "any"
|
|
9410
|
+
}
|
|
9411
|
+
},
|
|
9412
|
+
{
|
|
9413
|
+
"name": "inner",
|
|
9414
|
+
"type": {
|
|
9415
|
+
"text": "() => TInner"
|
|
9416
|
+
}
|
|
9417
|
+
},
|
|
9418
|
+
{
|
|
9419
|
+
"name": "wrapper",
|
|
9420
|
+
"type": {
|
|
9421
|
+
"text": "(innards: TInner) => TWrapper"
|
|
9422
|
+
}
|
|
9423
|
+
}
|
|
9424
|
+
],
|
|
9425
|
+
"return": {
|
|
9426
|
+
"type": {
|
|
9427
|
+
"text": ""
|
|
9428
|
+
}
|
|
9429
|
+
}
|
|
9430
|
+
}
|
|
9431
|
+
],
|
|
9432
|
+
"exports": [
|
|
9433
|
+
{
|
|
9434
|
+
"kind": "js",
|
|
9435
|
+
"name": "wrapIf",
|
|
9436
|
+
"declaration": {
|
|
9437
|
+
"name": "wrapIf",
|
|
9438
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
9439
|
+
}
|
|
9440
|
+
},
|
|
9441
|
+
{
|
|
9442
|
+
"kind": "js",
|
|
9443
|
+
"name": "wrapIf",
|
|
9444
|
+
"declaration": {
|
|
9445
|
+
"name": "wrapIf",
|
|
9446
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
9447
|
+
}
|
|
9448
|
+
},
|
|
9449
|
+
{
|
|
9450
|
+
"kind": "js",
|
|
9451
|
+
"name": "wrapIf",
|
|
9452
|
+
"declaration": {
|
|
9453
|
+
"name": "wrapIf",
|
|
9454
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
9455
|
+
}
|
|
9456
|
+
},
|
|
9457
|
+
{
|
|
9458
|
+
"kind": "js",
|
|
9459
|
+
"name": "wrapIf",
|
|
9460
|
+
"declaration": {
|
|
9461
|
+
"name": "wrapIf",
|
|
9462
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
9463
|
+
}
|
|
9464
|
+
}
|
|
9465
|
+
]
|
|
9466
|
+
},
|
|
9467
9467
|
{
|
|
9468
9468
|
"kind": "javascript-module",
|
|
9469
9469
|
"path": "src/common/mixins/DraftComponentMixin.ts",
|