@nordhealth/components 1.0.0-rc.4 → 1.0.0-rc.7
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 +914 -844
- package/lib/Avatar.js +1 -1
- package/lib/Avatar.js.map +1 -1
- package/lib/{Calendar-721aa6b9.js → Calendar-e496d80f.js} +2 -13
- package/lib/Calendar-e496d80f.js.map +1 -0
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Card.js.map +1 -1
- package/lib/DatePicker.js +1 -1
- package/lib/DatePicker.js.map +1 -1
- package/lib/Dropdown.js +1 -1
- package/lib/Dropdown.js.map +1 -1
- package/lib/Popout.js +1 -1
- package/lib/Popout.js.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/Tooltip.js.map +1 -1
- package/lib/bundle.js +7 -7
- package/lib/bundle.js.map +1 -1
- package/lib/index.js +1 -1
- package/lib/positioning-72899e14.js +2 -0
- package/lib/{positioning-4898430d.js.map → positioning-72899e14.js.map} +1 -1
- package/lib/query-2d22378e.js +12 -0
- package/lib/query-2d22378e.js.map +1 -0
- package/lib/src/avatar/Avatar.d.ts +1 -1
- package/lib/src/dropdown/Dropdown.d.ts +8 -0
- package/lib/src/popout/Popout.d.ts +4 -0
- package/lib/src/stack/Stack.d.ts +13 -2
- package/lib/src/stack/Stack.test.d.ts +1 -0
- package/package.json +6 -6
- package/lib/Calendar-721aa6b9.js.map +0 -1
- package/lib/positioning-4898430d.js +0 -2
package/custom-elements.json
CHANGED
|
@@ -287,7 +287,7 @@
|
|
|
287
287
|
"kind": "field",
|
|
288
288
|
"name": "size",
|
|
289
289
|
"type": {
|
|
290
|
-
"text": "\"m\" | \"l\" | \"xl\""
|
|
290
|
+
"text": "\"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
291
291
|
},
|
|
292
292
|
"default": "\"m\"",
|
|
293
293
|
"description": "The size of the avatar.",
|
|
@@ -339,7 +339,7 @@
|
|
|
339
339
|
{
|
|
340
340
|
"name": "size",
|
|
341
341
|
"type": {
|
|
342
|
-
"text": "\"m\" | \"l\" | \"xl\""
|
|
342
|
+
"text": "\"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
343
343
|
},
|
|
344
344
|
"default": "\"m\"",
|
|
345
345
|
"description": "The size of the avatar.",
|
|
@@ -531,353 +531,341 @@
|
|
|
531
531
|
},
|
|
532
532
|
{
|
|
533
533
|
"kind": "javascript-module",
|
|
534
|
-
"path": "src/
|
|
534
|
+
"path": "src/calendar/Calendar.ts",
|
|
535
535
|
"declarations": [
|
|
536
536
|
{
|
|
537
537
|
"kind": "class",
|
|
538
|
-
"description": "
|
|
539
|
-
"name": "
|
|
540
|
-
"
|
|
538
|
+
"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.",
|
|
539
|
+
"name": "Calendar",
|
|
540
|
+
"members": [
|
|
541
541
|
{
|
|
542
|
-
"
|
|
543
|
-
"name": ""
|
|
542
|
+
"kind": "field",
|
|
543
|
+
"name": "dialogLabelId",
|
|
544
|
+
"type": {
|
|
545
|
+
"text": "string"
|
|
546
|
+
},
|
|
547
|
+
"privacy": "private",
|
|
548
|
+
"default": "\"dialog-header\""
|
|
544
549
|
},
|
|
545
550
|
{
|
|
546
|
-
"
|
|
547
|
-
"name": "
|
|
551
|
+
"kind": "field",
|
|
552
|
+
"name": "monthSelectNode",
|
|
553
|
+
"type": {
|
|
554
|
+
"text": "HTMLElement"
|
|
555
|
+
},
|
|
556
|
+
"privacy": "private"
|
|
548
557
|
},
|
|
549
|
-
{
|
|
550
|
-
"description": "Used to place content at the end of button text. Typically used for icons.",
|
|
551
|
-
"name": "end"
|
|
552
|
-
}
|
|
553
|
-
],
|
|
554
|
-
"members": [
|
|
555
558
|
{
|
|
556
559
|
"kind": "field",
|
|
557
|
-
"name": "
|
|
560
|
+
"name": "focusedDayNode",
|
|
561
|
+
"type": {
|
|
562
|
+
"text": "HTMLButtonElement"
|
|
563
|
+
},
|
|
558
564
|
"privacy": "private"
|
|
559
565
|
},
|
|
560
566
|
{
|
|
561
567
|
"kind": "field",
|
|
562
|
-
"name": "
|
|
568
|
+
"name": "direction",
|
|
563
569
|
"privacy": "private",
|
|
564
|
-
"default": "new
|
|
570
|
+
"default": "new DirectionController(this)"
|
|
565
571
|
},
|
|
566
572
|
{
|
|
567
573
|
"kind": "field",
|
|
568
|
-
"name": "
|
|
574
|
+
"name": "swipe",
|
|
569
575
|
"privacy": "private",
|
|
570
|
-
"default": "new
|
|
576
|
+
"default": "new SwipeController(this, {\n matchesGesture: isHorizontalSwipe,\n onSwipeEnd: ({ distX }) => this.addMonths(distX < 0 ? 1 : -1),\n })"
|
|
571
577
|
},
|
|
572
578
|
{
|
|
573
579
|
"kind": "field",
|
|
574
|
-
"name": "
|
|
580
|
+
"name": "shortcuts",
|
|
581
|
+
"privacy": "private"
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
"kind": "field",
|
|
585
|
+
"name": "dateFormatShort",
|
|
575
586
|
"type": {
|
|
576
|
-
"text": "
|
|
587
|
+
"text": "Intl.DateTimeFormat"
|
|
577
588
|
},
|
|
578
|
-
"
|
|
579
|
-
"description": "
|
|
580
|
-
"attribute": "variant",
|
|
581
|
-
"reflects": true
|
|
589
|
+
"privacy": "private",
|
|
590
|
+
"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"
|
|
582
591
|
},
|
|
583
592
|
{
|
|
584
593
|
"kind": "field",
|
|
585
|
-
"name": "
|
|
594
|
+
"name": "localization",
|
|
586
595
|
"type": {
|
|
587
|
-
"text": "
|
|
596
|
+
"text": "CalendarLocalizedText"
|
|
588
597
|
},
|
|
589
|
-
"default": "
|
|
590
|
-
"description": "The type of the button.",
|
|
591
|
-
"attribute": "type",
|
|
592
|
-
"reflects": true
|
|
598
|
+
"default": "localization"
|
|
593
599
|
},
|
|
594
600
|
{
|
|
595
601
|
"kind": "field",
|
|
596
|
-
"name": "
|
|
602
|
+
"name": "value",
|
|
597
603
|
"type": {
|
|
598
|
-
"text": "
|
|
604
|
+
"text": "string"
|
|
599
605
|
},
|
|
600
|
-
"default": "\"
|
|
601
|
-
"description": "The
|
|
602
|
-
"attribute": "
|
|
603
|
-
"reflects": true
|
|
606
|
+
"default": "\"\"",
|
|
607
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
608
|
+
"attribute": "value"
|
|
604
609
|
},
|
|
605
610
|
{
|
|
606
611
|
"kind": "field",
|
|
607
|
-
"name": "
|
|
612
|
+
"name": "firstDayOfWeek",
|
|
608
613
|
"type": {
|
|
609
|
-
"text": "
|
|
614
|
+
"text": "DaysOfWeek"
|
|
610
615
|
},
|
|
611
|
-
"
|
|
612
|
-
"attribute": "
|
|
616
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
617
|
+
"attribute": "firstDayOfWeek"
|
|
613
618
|
},
|
|
614
619
|
{
|
|
615
620
|
"kind": "field",
|
|
616
|
-
"name": "
|
|
621
|
+
"name": "min",
|
|
617
622
|
"type": {
|
|
618
|
-
"text": "
|
|
623
|
+
"text": "string"
|
|
619
624
|
},
|
|
620
|
-
"
|
|
621
|
-
"
|
|
625
|
+
"default": "\"\"",
|
|
626
|
+
"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.",
|
|
627
|
+
"attribute": "min"
|
|
622
628
|
},
|
|
623
629
|
{
|
|
624
630
|
"kind": "field",
|
|
625
|
-
"name": "
|
|
631
|
+
"name": "max",
|
|
626
632
|
"type": {
|
|
627
|
-
"text": "string
|
|
633
|
+
"text": "string"
|
|
628
634
|
},
|
|
629
|
-
"
|
|
630
|
-
"
|
|
631
|
-
"
|
|
635
|
+
"default": "\"\"",
|
|
636
|
+
"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.",
|
|
637
|
+
"attribute": "max"
|
|
632
638
|
},
|
|
633
639
|
{
|
|
634
640
|
"kind": "field",
|
|
635
|
-
"name": "
|
|
641
|
+
"name": "expand",
|
|
636
642
|
"type": {
|
|
637
643
|
"text": "boolean"
|
|
638
644
|
},
|
|
639
645
|
"default": "false",
|
|
640
|
-
"description": "
|
|
641
|
-
"attribute": "
|
|
646
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
647
|
+
"attribute": "expand",
|
|
648
|
+
"reflects": true
|
|
642
649
|
},
|
|
643
650
|
{
|
|
644
651
|
"kind": "field",
|
|
645
|
-
"name": "
|
|
652
|
+
"name": "isDateDisabled",
|
|
646
653
|
"type": {
|
|
647
|
-
"text": "
|
|
654
|
+
"text": "DateDisabledPredicate"
|
|
648
655
|
},
|
|
649
|
-
"default": "
|
|
650
|
-
"description": "
|
|
651
|
-
"attribute": "target",
|
|
652
|
-
"reflects": true
|
|
656
|
+
"default": "isDateDisabled",
|
|
657
|
+
"description": "Controls which days are disabled and therefore disallowed.\nFor example, this can be used to disallow selection of weekends."
|
|
653
658
|
},
|
|
654
659
|
{
|
|
655
660
|
"kind": "field",
|
|
656
|
-
"name": "
|
|
661
|
+
"name": "activeFocus",
|
|
657
662
|
"type": {
|
|
658
663
|
"text": "boolean"
|
|
659
664
|
},
|
|
660
|
-
"
|
|
661
|
-
"
|
|
662
|
-
|
|
663
|
-
|
|
665
|
+
"privacy": "private",
|
|
666
|
+
"default": "false"
|
|
667
|
+
},
|
|
668
|
+
{
|
|
669
|
+
"kind": "field",
|
|
670
|
+
"name": "focusedDay",
|
|
671
|
+
"privacy": "private",
|
|
672
|
+
"default": "new Date()"
|
|
664
673
|
},
|
|
665
674
|
{
|
|
666
675
|
"kind": "method",
|
|
667
|
-
"name": "
|
|
676
|
+
"name": "focus",
|
|
677
|
+
"parameters": [
|
|
678
|
+
{
|
|
679
|
+
"name": "options",
|
|
680
|
+
"optional": true,
|
|
681
|
+
"type": {
|
|
682
|
+
"text": "FocusOptions & { target: \"day\" | \"month\" }"
|
|
683
|
+
},
|
|
684
|
+
"description": "An object which controls aspects of the focusing process."
|
|
685
|
+
}
|
|
686
|
+
],
|
|
687
|
+
"description": "Programmatically move focus to the calendar."
|
|
688
|
+
},
|
|
689
|
+
{
|
|
690
|
+
"kind": "method",
|
|
691
|
+
"name": "createDateFormatter",
|
|
692
|
+
"privacy": "private"
|
|
693
|
+
},
|
|
694
|
+
{
|
|
695
|
+
"kind": "field",
|
|
696
|
+
"name": "handleDaySelect",
|
|
697
|
+
"privacy": "private"
|
|
698
|
+
},
|
|
699
|
+
{
|
|
700
|
+
"kind": "method",
|
|
701
|
+
"name": "addDays",
|
|
668
702
|
"privacy": "private",
|
|
669
703
|
"parameters": [
|
|
670
704
|
{
|
|
671
|
-
"name": "
|
|
705
|
+
"name": "days",
|
|
672
706
|
"type": {
|
|
673
|
-
"text": "
|
|
707
|
+
"text": "number"
|
|
674
708
|
}
|
|
675
709
|
}
|
|
676
|
-
]
|
|
677
|
-
"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."
|
|
710
|
+
]
|
|
678
711
|
},
|
|
679
712
|
{
|
|
680
713
|
"kind": "method",
|
|
681
|
-
"name": "
|
|
714
|
+
"name": "addMonths",
|
|
682
715
|
"privacy": "private",
|
|
683
716
|
"parameters": [
|
|
684
717
|
{
|
|
685
|
-
"name": "
|
|
718
|
+
"name": "months",
|
|
686
719
|
"type": {
|
|
687
|
-
"text": "
|
|
720
|
+
"text": "number"
|
|
688
721
|
}
|
|
689
722
|
}
|
|
690
723
|
]
|
|
691
724
|
},
|
|
692
725
|
{
|
|
693
726
|
"kind": "method",
|
|
694
|
-
"name": "
|
|
727
|
+
"name": "addYears",
|
|
728
|
+
"privacy": "private",
|
|
729
|
+
"parameters": [
|
|
730
|
+
{
|
|
731
|
+
"name": "years",
|
|
732
|
+
"type": {
|
|
733
|
+
"text": "number"
|
|
734
|
+
}
|
|
735
|
+
}
|
|
736
|
+
]
|
|
737
|
+
},
|
|
738
|
+
{
|
|
739
|
+
"kind": "method",
|
|
740
|
+
"name": "startOfWeek",
|
|
695
741
|
"privacy": "private"
|
|
696
742
|
},
|
|
697
743
|
{
|
|
698
|
-
"kind": "
|
|
699
|
-
"name": "
|
|
744
|
+
"kind": "method",
|
|
745
|
+
"name": "endOfWeek",
|
|
700
746
|
"privacy": "private"
|
|
701
747
|
},
|
|
702
748
|
{
|
|
703
749
|
"kind": "method",
|
|
704
|
-
"name": "
|
|
750
|
+
"name": "setMonth",
|
|
705
751
|
"privacy": "private",
|
|
706
752
|
"parameters": [
|
|
707
753
|
{
|
|
708
|
-
"name": "
|
|
754
|
+
"name": "month",
|
|
709
755
|
"type": {
|
|
710
|
-
"text": "
|
|
756
|
+
"text": "number"
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
]
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"kind": "method",
|
|
763
|
+
"name": "setYear",
|
|
764
|
+
"privacy": "private",
|
|
765
|
+
"parameters": [
|
|
766
|
+
{
|
|
767
|
+
"name": "year",
|
|
768
|
+
"type": {
|
|
769
|
+
"text": "number"
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
]
|
|
773
|
+
},
|
|
774
|
+
{
|
|
775
|
+
"kind": "method",
|
|
776
|
+
"name": "setFocusedDay",
|
|
777
|
+
"privacy": "private",
|
|
778
|
+
"parameters": [
|
|
779
|
+
{
|
|
780
|
+
"name": "day",
|
|
781
|
+
"type": {
|
|
782
|
+
"text": "Date"
|
|
711
783
|
}
|
|
712
784
|
}
|
|
713
785
|
]
|
|
714
786
|
},
|
|
715
787
|
{
|
|
716
788
|
"kind": "field",
|
|
717
|
-
"name": "
|
|
718
|
-
"
|
|
719
|
-
"text": "boolean"
|
|
720
|
-
},
|
|
721
|
-
"default": "false",
|
|
722
|
-
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
723
|
-
"attribute": "disabled",
|
|
724
|
-
"reflects": true,
|
|
725
|
-
"inheritedFrom": {
|
|
726
|
-
"name": "InputMixin",
|
|
727
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
728
|
-
}
|
|
789
|
+
"name": "handleMonthSelect",
|
|
790
|
+
"privacy": "private"
|
|
729
791
|
},
|
|
730
792
|
{
|
|
731
793
|
"kind": "field",
|
|
732
|
-
"name": "
|
|
733
|
-
"
|
|
734
|
-
"text": "string | undefined"
|
|
735
|
-
},
|
|
736
|
-
"description": "The name of the form component.",
|
|
737
|
-
"attribute": "name",
|
|
738
|
-
"inheritedFrom": {
|
|
739
|
-
"name": "InputMixin",
|
|
740
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
741
|
-
}
|
|
794
|
+
"name": "handleYearSelect",
|
|
795
|
+
"privacy": "private"
|
|
742
796
|
},
|
|
743
797
|
{
|
|
744
798
|
"kind": "field",
|
|
745
|
-
"name": "
|
|
746
|
-
"
|
|
747
|
-
"text": "string"
|
|
748
|
-
},
|
|
749
|
-
"default": "\"\"",
|
|
750
|
-
"description": "The value of the form component.",
|
|
751
|
-
"attribute": "value",
|
|
752
|
-
"inheritedFrom": {
|
|
753
|
-
"name": "InputMixin",
|
|
754
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
755
|
-
}
|
|
799
|
+
"name": "handleNextMonthClick",
|
|
800
|
+
"privacy": "private"
|
|
756
801
|
},
|
|
757
802
|
{
|
|
758
803
|
"kind": "field",
|
|
759
|
-
"name": "
|
|
760
|
-
"privacy": "
|
|
761
|
-
"description": "Gets the form, if any, associated with the form element.",
|
|
762
|
-
"inheritedFrom": {
|
|
763
|
-
"name": "InputMixin",
|
|
764
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
765
|
-
}
|
|
804
|
+
"name": "handlePreviousMonthClick",
|
|
805
|
+
"privacy": "private"
|
|
766
806
|
},
|
|
767
807
|
{
|
|
768
808
|
"kind": "field",
|
|
769
|
-
"name": "
|
|
770
|
-
"privacy": "
|
|
771
|
-
"inheritedFrom": {
|
|
772
|
-
"name": "FocusableMixin",
|
|
773
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
774
|
-
}
|
|
775
|
-
},
|
|
776
|
-
{
|
|
777
|
-
"kind": "method",
|
|
778
|
-
"name": "focus",
|
|
779
|
-
"parameters": [
|
|
780
|
-
{
|
|
781
|
-
"name": "options",
|
|
782
|
-
"optional": true,
|
|
783
|
-
"type": {
|
|
784
|
-
"text": "FocusOptions"
|
|
785
|
-
},
|
|
786
|
-
"description": "An object which controls aspects of the focusing process."
|
|
787
|
-
}
|
|
788
|
-
],
|
|
789
|
-
"description": "Programmatically move focus to the component.",
|
|
790
|
-
"inheritedFrom": {
|
|
791
|
-
"name": "FocusableMixin",
|
|
792
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
793
|
-
}
|
|
794
|
-
},
|
|
795
|
-
{
|
|
796
|
-
"kind": "method",
|
|
797
|
-
"name": "blur",
|
|
798
|
-
"description": "Programmatically remove focus from the component.",
|
|
799
|
-
"inheritedFrom": {
|
|
800
|
-
"name": "FocusableMixin",
|
|
801
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
802
|
-
}
|
|
809
|
+
"name": "enableActiveFocus",
|
|
810
|
+
"privacy": "private"
|
|
803
811
|
},
|
|
804
812
|
{
|
|
805
|
-
"kind": "
|
|
806
|
-
"name": "
|
|
807
|
-
"
|
|
808
|
-
"inheritedFrom": {
|
|
809
|
-
"name": "FocusableMixin",
|
|
810
|
-
"module": "src/common/mixins/FocusableMixin.ts"
|
|
811
|
-
}
|
|
813
|
+
"kind": "field",
|
|
814
|
+
"name": "disableActiveFocus",
|
|
815
|
+
"privacy": "private"
|
|
812
816
|
}
|
|
813
817
|
],
|
|
814
|
-
"
|
|
815
|
-
{
|
|
816
|
-
"name": "variant",
|
|
817
|
-
"type": {
|
|
818
|
-
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
819
|
-
},
|
|
820
|
-
"default": "\"default\"",
|
|
821
|
-
"description": "The style variant of the button.",
|
|
822
|
-
"fieldName": "variant"
|
|
823
|
-
},
|
|
824
|
-
{
|
|
825
|
-
"name": "type",
|
|
826
|
-
"type": {
|
|
827
|
-
"text": "\"button\" | \"submit\" | \"reset\""
|
|
828
|
-
},
|
|
829
|
-
"default": "\"submit\"",
|
|
830
|
-
"description": "The type of the button.",
|
|
831
|
-
"fieldName": "type"
|
|
832
|
-
},
|
|
818
|
+
"events": [
|
|
833
819
|
{
|
|
834
|
-
"name": "
|
|
820
|
+
"name": "nord-focus-date",
|
|
835
821
|
"type": {
|
|
836
|
-
"text": "
|
|
822
|
+
"text": "DateSelectEvent"
|
|
837
823
|
},
|
|
838
|
-
"
|
|
839
|
-
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
840
|
-
"fieldName": "size"
|
|
824
|
+
"description": "Dispatched when the calendar's focused date changes."
|
|
841
825
|
},
|
|
842
826
|
{
|
|
843
|
-
"name": "aria-expanded",
|
|
844
827
|
"type": {
|
|
845
|
-
"text": "
|
|
828
|
+
"text": "DateSelectEvent"
|
|
846
829
|
},
|
|
847
|
-
"
|
|
848
|
-
|
|
830
|
+
"description": "Dispatched when a date is selected and the value changes.",
|
|
831
|
+
"name": "change"
|
|
832
|
+
}
|
|
833
|
+
],
|
|
834
|
+
"attributes": [
|
|
849
835
|
{
|
|
850
|
-
"name": "
|
|
836
|
+
"name": "value",
|
|
851
837
|
"type": {
|
|
852
|
-
"text": "
|
|
838
|
+
"text": "string"
|
|
853
839
|
},
|
|
854
|
-
"
|
|
840
|
+
"default": "\"\"",
|
|
841
|
+
"description": "The selected date on the calendar. Must be in IS0-8601 format: YYYY-MM-DD.",
|
|
842
|
+
"fieldName": "value"
|
|
855
843
|
},
|
|
856
844
|
{
|
|
857
|
-
"name": "
|
|
845
|
+
"name": "firstDayOfWeek",
|
|
858
846
|
"type": {
|
|
859
|
-
"text": "
|
|
847
|
+
"text": "DaysOfWeek"
|
|
860
848
|
},
|
|
861
|
-
"description": "
|
|
862
|
-
"fieldName": "
|
|
849
|
+
"description": "Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc.\nDefault is Monday.",
|
|
850
|
+
"fieldName": "firstDayOfWeek"
|
|
863
851
|
},
|
|
864
852
|
{
|
|
865
|
-
"name": "
|
|
853
|
+
"name": "min",
|
|
866
854
|
"type": {
|
|
867
|
-
"text": "
|
|
855
|
+
"text": "string"
|
|
868
856
|
},
|
|
869
|
-
"default": "
|
|
870
|
-
"description": "
|
|
871
|
-
"fieldName": "
|
|
857
|
+
"default": "\"\"",
|
|
858
|
+
"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.",
|
|
859
|
+
"fieldName": "min"
|
|
872
860
|
},
|
|
873
861
|
{
|
|
874
|
-
"name": "
|
|
862
|
+
"name": "max",
|
|
875
863
|
"type": {
|
|
876
|
-
"text": "
|
|
864
|
+
"text": "string"
|
|
877
865
|
},
|
|
878
|
-
"default": "\"
|
|
879
|
-
"description": "
|
|
880
|
-
"fieldName": "
|
|
866
|
+
"default": "\"\"",
|
|
867
|
+
"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.",
|
|
868
|
+
"fieldName": "max"
|
|
881
869
|
},
|
|
882
870
|
{
|
|
883
871
|
"name": "expand",
|
|
@@ -885,56 +873,8 @@
|
|
|
885
873
|
"text": "boolean"
|
|
886
874
|
},
|
|
887
875
|
"default": "false",
|
|
888
|
-
"description": "Controls whether the
|
|
876
|
+
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
889
877
|
"fieldName": "expand"
|
|
890
|
-
},
|
|
891
|
-
{
|
|
892
|
-
"name": "disabled",
|
|
893
|
-
"type": {
|
|
894
|
-
"text": "boolean"
|
|
895
|
-
},
|
|
896
|
-
"default": "false",
|
|
897
|
-
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
898
|
-
"fieldName": "disabled",
|
|
899
|
-
"inheritedFrom": {
|
|
900
|
-
"name": "InputMixin",
|
|
901
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
902
|
-
}
|
|
903
|
-
},
|
|
904
|
-
{
|
|
905
|
-
"name": "name",
|
|
906
|
-
"type": {
|
|
907
|
-
"text": "string | undefined"
|
|
908
|
-
},
|
|
909
|
-
"description": "The name of the form component.",
|
|
910
|
-
"fieldName": "name",
|
|
911
|
-
"inheritedFrom": {
|
|
912
|
-
"name": "InputMixin",
|
|
913
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
914
|
-
}
|
|
915
|
-
},
|
|
916
|
-
{
|
|
917
|
-
"name": "value",
|
|
918
|
-
"type": {
|
|
919
|
-
"text": "string"
|
|
920
|
-
},
|
|
921
|
-
"default": "\"\"",
|
|
922
|
-
"description": "The value of the form component.",
|
|
923
|
-
"fieldName": "value",
|
|
924
|
-
"inheritedFrom": {
|
|
925
|
-
"name": "InputMixin",
|
|
926
|
-
"module": "src/common/mixins/InputMixin.ts"
|
|
927
|
-
}
|
|
928
|
-
}
|
|
929
|
-
],
|
|
930
|
-
"mixins": [
|
|
931
|
-
{
|
|
932
|
-
"name": "InputMixin",
|
|
933
|
-
"module": "/src/common/mixins/InputMixin.js"
|
|
934
|
-
},
|
|
935
|
-
{
|
|
936
|
-
"name": "FocusableMixin",
|
|
937
|
-
"module": "/src/common/mixins/FocusableMixin.js"
|
|
938
878
|
}
|
|
939
879
|
],
|
|
940
880
|
"superclass": {
|
|
@@ -942,8 +882,8 @@
|
|
|
942
882
|
"package": "lit"
|
|
943
883
|
},
|
|
944
884
|
"status": "ready",
|
|
945
|
-
"category": "
|
|
946
|
-
"tagName": "nord-
|
|
885
|
+
"category": "list",
|
|
886
|
+
"tagName": "nord-calendar",
|
|
947
887
|
"customElement": true
|
|
948
888
|
}
|
|
949
889
|
],
|
|
@@ -952,87 +892,68 @@
|
|
|
952
892
|
"kind": "js",
|
|
953
893
|
"name": "default",
|
|
954
894
|
"declaration": {
|
|
955
|
-
"name": "
|
|
956
|
-
"module": "src/
|
|
895
|
+
"name": "Calendar",
|
|
896
|
+
"module": "src/calendar/Calendar.ts"
|
|
957
897
|
}
|
|
958
898
|
},
|
|
959
899
|
{
|
|
960
900
|
"kind": "custom-element-definition",
|
|
961
|
-
"name": "nord-
|
|
901
|
+
"name": "nord-calendar",
|
|
962
902
|
"declaration": {
|
|
963
|
-
"name": "
|
|
964
|
-
"module": "src/
|
|
903
|
+
"name": "Calendar",
|
|
904
|
+
"module": "src/calendar/Calendar.ts"
|
|
965
905
|
}
|
|
966
906
|
}
|
|
967
907
|
],
|
|
968
|
-
"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
|
|
908
|
+
"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"
|
|
969
909
|
},
|
|
970
910
|
{
|
|
971
911
|
"kind": "javascript-module",
|
|
972
|
-
"path": "src/
|
|
912
|
+
"path": "src/calendar/DateSelectEvent.ts",
|
|
973
913
|
"declarations": [
|
|
974
914
|
{
|
|
975
915
|
"kind": "class",
|
|
976
|
-
"description": "
|
|
977
|
-
"name": "
|
|
978
|
-
"slots": [
|
|
979
|
-
{
|
|
980
|
-
"description": "The card content.",
|
|
981
|
-
"name": ""
|
|
982
|
-
},
|
|
983
|
-
{
|
|
984
|
-
"description": "Optional slot that holds a header for the card.",
|
|
985
|
-
"name": "header"
|
|
986
|
-
},
|
|
987
|
-
{
|
|
988
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
989
|
-
"name": "footer"
|
|
990
|
-
}
|
|
991
|
-
],
|
|
916
|
+
"description": "",
|
|
917
|
+
"name": "DateSelectEvent",
|
|
992
918
|
"members": [
|
|
993
919
|
{
|
|
994
920
|
"kind": "field",
|
|
995
|
-
"name": "
|
|
996
|
-
"privacy": "private",
|
|
997
|
-
"default": "new SlotController(this, \"header\")"
|
|
998
|
-
},
|
|
999
|
-
{
|
|
1000
|
-
"kind": "field",
|
|
1001
|
-
"name": "footerSlot",
|
|
1002
|
-
"privacy": "private",
|
|
1003
|
-
"default": "new SlotController(this, \"footer\")"
|
|
1004
|
-
},
|
|
1005
|
-
{
|
|
1006
|
-
"kind": "field",
|
|
1007
|
-
"name": "padding",
|
|
1008
|
-
"type": {
|
|
1009
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
1010
|
-
},
|
|
1011
|
-
"default": "\"m\"",
|
|
1012
|
-
"description": "Controls the padding of card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1013
|
-
"attribute": "padding",
|
|
1014
|
-
"reflects": true
|
|
1015
|
-
}
|
|
1016
|
-
],
|
|
1017
|
-
"attributes": [
|
|
1018
|
-
{
|
|
1019
|
-
"name": "padding",
|
|
921
|
+
"name": "date",
|
|
1020
922
|
"type": {
|
|
1021
|
-
"text": "
|
|
923
|
+
"text": "Date"
|
|
1022
924
|
},
|
|
1023
|
-
"default": "
|
|
1024
|
-
"description": "Controls the padding of card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1025
|
-
"fieldName": "padding"
|
|
925
|
+
"default": "date"
|
|
1026
926
|
}
|
|
1027
927
|
],
|
|
1028
928
|
"superclass": {
|
|
1029
|
-
"name": "
|
|
1030
|
-
"
|
|
929
|
+
"name": "NordEvent",
|
|
930
|
+
"module": "/src/common/events.js"
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
],
|
|
934
|
+
"exports": [
|
|
935
|
+
{
|
|
936
|
+
"kind": "js",
|
|
937
|
+
"name": "DateSelectEvent",
|
|
938
|
+
"declaration": {
|
|
939
|
+
"name": "DateSelectEvent",
|
|
940
|
+
"module": "src/calendar/DateSelectEvent.ts"
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
],
|
|
944
|
+
"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"
|
|
945
|
+
},
|
|
946
|
+
{
|
|
947
|
+
"kind": "javascript-module",
|
|
948
|
+
"path": "src/calendar/calendar-localization.ts",
|
|
949
|
+
"declarations": [
|
|
950
|
+
{
|
|
951
|
+
"kind": "variable",
|
|
952
|
+
"name": "localization",
|
|
953
|
+
"type": {
|
|
954
|
+
"text": "CalendarLocalizedText"
|
|
1031
955
|
},
|
|
1032
|
-
"
|
|
1033
|
-
"category": "structure",
|
|
1034
|
-
"tagName": "nord-card",
|
|
1035
|
-
"customElement": true
|
|
956
|
+
"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}"
|
|
1036
957
|
}
|
|
1037
958
|
],
|
|
1038
959
|
"exports": [
|
|
@@ -1040,367 +961,468 @@
|
|
|
1040
961
|
"kind": "js",
|
|
1041
962
|
"name": "default",
|
|
1042
963
|
"declaration": {
|
|
1043
|
-
"name": "
|
|
1044
|
-
"module": "src/
|
|
964
|
+
"name": "localization",
|
|
965
|
+
"module": "src/calendar/calendar-localization.ts"
|
|
1045
966
|
}
|
|
967
|
+
}
|
|
968
|
+
],
|
|
969
|
+
"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"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"kind": "javascript-module",
|
|
973
|
+
"path": "src/calendar/month-view.ts",
|
|
974
|
+
"declarations": [
|
|
975
|
+
{
|
|
976
|
+
"kind": "function",
|
|
977
|
+
"name": "dayView",
|
|
978
|
+
"parameters": [
|
|
979
|
+
{
|
|
980
|
+
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
981
|
+
"type": {
|
|
982
|
+
"text": "DatePickerDayProps"
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
]
|
|
1046
986
|
},
|
|
1047
987
|
{
|
|
1048
|
-
"kind": "
|
|
1049
|
-
"name": "
|
|
988
|
+
"kind": "function",
|
|
989
|
+
"name": "monthView",
|
|
990
|
+
"parameters": [
|
|
991
|
+
{
|
|
992
|
+
"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}",
|
|
993
|
+
"type": {
|
|
994
|
+
"text": "MonthViewArgs"
|
|
995
|
+
}
|
|
996
|
+
}
|
|
997
|
+
]
|
|
998
|
+
}
|
|
999
|
+
],
|
|
1000
|
+
"exports": [
|
|
1001
|
+
{
|
|
1002
|
+
"kind": "js",
|
|
1003
|
+
"name": "dayView",
|
|
1050
1004
|
"declaration": {
|
|
1051
|
-
"name": "
|
|
1052
|
-
"module": "src/
|
|
1005
|
+
"name": "dayView",
|
|
1006
|
+
"module": "src/calendar/month-view.ts"
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"kind": "js",
|
|
1011
|
+
"name": "monthView",
|
|
1012
|
+
"declaration": {
|
|
1013
|
+
"name": "monthView",
|
|
1014
|
+
"module": "src/calendar/month-view.ts"
|
|
1053
1015
|
}
|
|
1054
1016
|
}
|
|
1055
1017
|
],
|
|
1056
|
-
"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
|
|
1018
|
+
"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"
|
|
1057
1019
|
},
|
|
1058
1020
|
{
|
|
1059
1021
|
"kind": "javascript-module",
|
|
1060
|
-
"path": "src/
|
|
1022
|
+
"path": "src/button/Button.ts",
|
|
1061
1023
|
"declarations": [
|
|
1062
1024
|
{
|
|
1063
1025
|
"kind": "class",
|
|
1064
|
-
"description": "
|
|
1065
|
-
"name": "
|
|
1066
|
-
"
|
|
1026
|
+
"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.",
|
|
1027
|
+
"name": "Button",
|
|
1028
|
+
"slots": [
|
|
1067
1029
|
{
|
|
1068
|
-
"
|
|
1069
|
-
"name": "
|
|
1070
|
-
"type": {
|
|
1071
|
-
"text": "string"
|
|
1072
|
-
},
|
|
1073
|
-
"privacy": "private",
|
|
1074
|
-
"default": "\"dialog-header\""
|
|
1030
|
+
"description": "The button content",
|
|
1031
|
+
"name": ""
|
|
1075
1032
|
},
|
|
1076
1033
|
{
|
|
1077
|
-
"
|
|
1078
|
-
"name": "
|
|
1079
|
-
"type": {
|
|
1080
|
-
"text": "HTMLElement"
|
|
1081
|
-
},
|
|
1082
|
-
"privacy": "private"
|
|
1034
|
+
"description": "Used to place content at the start of button text. Typically used for icons.",
|
|
1035
|
+
"name": "start"
|
|
1083
1036
|
},
|
|
1037
|
+
{
|
|
1038
|
+
"description": "Used to place content at the end of button text. Typically used for icons.",
|
|
1039
|
+
"name": "end"
|
|
1040
|
+
}
|
|
1041
|
+
],
|
|
1042
|
+
"members": [
|
|
1084
1043
|
{
|
|
1085
1044
|
"kind": "field",
|
|
1086
|
-
"name": "
|
|
1087
|
-
"type": {
|
|
1088
|
-
"text": "HTMLButtonElement"
|
|
1089
|
-
},
|
|
1045
|
+
"name": "buttonRef",
|
|
1090
1046
|
"privacy": "private"
|
|
1091
1047
|
},
|
|
1092
1048
|
{
|
|
1093
1049
|
"kind": "field",
|
|
1094
|
-
"name": "
|
|
1050
|
+
"name": "events",
|
|
1095
1051
|
"privacy": "private",
|
|
1096
|
-
"default": "new
|
|
1052
|
+
"default": "new EventController(this)"
|
|
1097
1053
|
},
|
|
1098
1054
|
{
|
|
1099
1055
|
"kind": "field",
|
|
1100
|
-
"name": "
|
|
1056
|
+
"name": "lightDom",
|
|
1101
1057
|
"privacy": "private",
|
|
1102
|
-
"default": "new
|
|
1103
|
-
},
|
|
1104
|
-
{
|
|
1105
|
-
"kind": "field",
|
|
1106
|
-
"name": "shortcuts",
|
|
1107
|
-
"privacy": "private"
|
|
1058
|
+
"default": "new LightDomController(this, {\n render: () => this.renderLightDom(),\n })"
|
|
1108
1059
|
},
|
|
1109
1060
|
{
|
|
1110
1061
|
"kind": "field",
|
|
1111
|
-
"name": "
|
|
1062
|
+
"name": "variant",
|
|
1112
1063
|
"type": {
|
|
1113
|
-
"text": "
|
|
1064
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
1114
1065
|
},
|
|
1115
|
-
"
|
|
1116
|
-
"description": "
|
|
1066
|
+
"default": "\"default\"",
|
|
1067
|
+
"description": "The style variant of the button.",
|
|
1068
|
+
"attribute": "variant",
|
|
1069
|
+
"reflects": true
|
|
1117
1070
|
},
|
|
1118
1071
|
{
|
|
1119
1072
|
"kind": "field",
|
|
1120
|
-
"name": "
|
|
1073
|
+
"name": "type",
|
|
1121
1074
|
"type": {
|
|
1122
|
-
"text": "
|
|
1075
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1123
1076
|
},
|
|
1124
|
-
"default": "
|
|
1077
|
+
"default": "\"submit\"",
|
|
1078
|
+
"description": "The type of the button.",
|
|
1079
|
+
"attribute": "type",
|
|
1080
|
+
"reflects": true
|
|
1125
1081
|
},
|
|
1126
1082
|
{
|
|
1127
1083
|
"kind": "field",
|
|
1128
|
-
"name": "
|
|
1084
|
+
"name": "size",
|
|
1129
1085
|
"type": {
|
|
1130
|
-
"text": "
|
|
1086
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
1131
1087
|
},
|
|
1132
|
-
"default": "\"\"",
|
|
1133
|
-
"description": "The
|
|
1134
|
-
"attribute": "
|
|
1088
|
+
"default": "\"m\"",
|
|
1089
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
1090
|
+
"attribute": "size",
|
|
1091
|
+
"reflects": true
|
|
1135
1092
|
},
|
|
1136
1093
|
{
|
|
1137
1094
|
"kind": "field",
|
|
1138
|
-
"name": "
|
|
1095
|
+
"name": "accessibleExpanded",
|
|
1139
1096
|
"type": {
|
|
1140
|
-
"text": "
|
|
1097
|
+
"text": "\"true\" | \"false\" | undefined"
|
|
1141
1098
|
},
|
|
1142
|
-
"
|
|
1143
|
-
"attribute": "
|
|
1099
|
+
"privacy": "private",
|
|
1100
|
+
"attribute": "aria-expanded"
|
|
1144
1101
|
},
|
|
1145
1102
|
{
|
|
1146
1103
|
"kind": "field",
|
|
1147
|
-
"name": "
|
|
1104
|
+
"name": "accessibleHasPopup",
|
|
1148
1105
|
"type": {
|
|
1149
|
-
"text": "
|
|
1106
|
+
"text": "| \"false\"\n | \"true\"\n | \"menu\"\n | \"listbox\"\n | \"tree\"\n | \"grid\"\n | \"dialog\" | undefined"
|
|
1150
1107
|
},
|
|
1151
|
-
"
|
|
1152
|
-
"
|
|
1153
|
-
"attribute": "min"
|
|
1108
|
+
"privacy": "private",
|
|
1109
|
+
"attribute": "aria-haspopup"
|
|
1154
1110
|
},
|
|
1155
1111
|
{
|
|
1156
1112
|
"kind": "field",
|
|
1157
|
-
"name": "
|
|
1113
|
+
"name": "href",
|
|
1158
1114
|
"type": {
|
|
1159
|
-
"text": "string"
|
|
1115
|
+
"text": "string | undefined"
|
|
1160
1116
|
},
|
|
1161
|
-
"
|
|
1162
|
-
"
|
|
1163
|
-
"
|
|
1117
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
1118
|
+
"attribute": "href",
|
|
1119
|
+
"reflects": true
|
|
1164
1120
|
},
|
|
1165
1121
|
{
|
|
1166
1122
|
"kind": "field",
|
|
1167
|
-
"name": "
|
|
1123
|
+
"name": "download",
|
|
1168
1124
|
"type": {
|
|
1169
1125
|
"text": "boolean"
|
|
1170
1126
|
},
|
|
1171
1127
|
"default": "false",
|
|
1172
|
-
"description": "
|
|
1173
|
-
"attribute": "
|
|
1174
|
-
"reflects": true
|
|
1128
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
1129
|
+
"attribute": "download"
|
|
1175
1130
|
},
|
|
1176
1131
|
{
|
|
1177
1132
|
"kind": "field",
|
|
1178
|
-
"name": "
|
|
1133
|
+
"name": "target",
|
|
1179
1134
|
"type": {
|
|
1180
|
-
"text": "
|
|
1135
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
1181
1136
|
},
|
|
1182
|
-
"default": "
|
|
1183
|
-
"description": "
|
|
1137
|
+
"default": "\"_self\"",
|
|
1138
|
+
"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.",
|
|
1139
|
+
"attribute": "target",
|
|
1140
|
+
"reflects": true
|
|
1184
1141
|
},
|
|
1185
1142
|
{
|
|
1186
1143
|
"kind": "field",
|
|
1187
|
-
"name": "
|
|
1144
|
+
"name": "expand",
|
|
1188
1145
|
"type": {
|
|
1189
1146
|
"text": "boolean"
|
|
1190
1147
|
},
|
|
1191
|
-
"
|
|
1192
|
-
"
|
|
1148
|
+
"default": "false",
|
|
1149
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
1150
|
+
"attribute": "expand",
|
|
1151
|
+
"reflects": true
|
|
1193
1152
|
},
|
|
1194
1153
|
{
|
|
1195
|
-
"kind": "
|
|
1196
|
-
"name": "
|
|
1154
|
+
"kind": "method",
|
|
1155
|
+
"name": "renderLink",
|
|
1197
1156
|
"privacy": "private",
|
|
1198
|
-
"
|
|
1157
|
+
"parameters": [
|
|
1158
|
+
{
|
|
1159
|
+
"name": "innards",
|
|
1160
|
+
"type": {
|
|
1161
|
+
"text": "TemplateResult"
|
|
1162
|
+
}
|
|
1163
|
+
}
|
|
1164
|
+
],
|
|
1165
|
+
"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."
|
|
1199
1166
|
},
|
|
1200
1167
|
{
|
|
1201
1168
|
"kind": "method",
|
|
1202
|
-
"name": "
|
|
1169
|
+
"name": "renderButton",
|
|
1170
|
+
"privacy": "private",
|
|
1203
1171
|
"parameters": [
|
|
1204
1172
|
{
|
|
1205
|
-
"name": "
|
|
1206
|
-
"optional": true,
|
|
1173
|
+
"name": "innards",
|
|
1207
1174
|
"type": {
|
|
1208
|
-
"text": "
|
|
1209
|
-
}
|
|
1210
|
-
"description": "An object which controls aspects of the focusing process."
|
|
1175
|
+
"text": "TemplateResult"
|
|
1176
|
+
}
|
|
1211
1177
|
}
|
|
1212
|
-
]
|
|
1213
|
-
"description": "Programmatically move focus to the calendar."
|
|
1178
|
+
]
|
|
1214
1179
|
},
|
|
1215
1180
|
{
|
|
1216
1181
|
"kind": "method",
|
|
1217
|
-
"name": "
|
|
1182
|
+
"name": "renderLightDom",
|
|
1218
1183
|
"privacy": "private"
|
|
1219
1184
|
},
|
|
1220
1185
|
{
|
|
1221
1186
|
"kind": "field",
|
|
1222
|
-
"name": "
|
|
1187
|
+
"name": "handleOuterClick",
|
|
1223
1188
|
"privacy": "private"
|
|
1224
1189
|
},
|
|
1225
1190
|
{
|
|
1226
1191
|
"kind": "method",
|
|
1227
|
-
"name": "
|
|
1192
|
+
"name": "handleClick",
|
|
1228
1193
|
"privacy": "private",
|
|
1229
1194
|
"parameters": [
|
|
1230
1195
|
{
|
|
1231
|
-
"name": "
|
|
1196
|
+
"name": "e",
|
|
1232
1197
|
"type": {
|
|
1233
|
-
"text": "
|
|
1198
|
+
"text": "Event"
|
|
1234
1199
|
}
|
|
1235
1200
|
}
|
|
1236
1201
|
]
|
|
1237
1202
|
},
|
|
1238
1203
|
{
|
|
1239
|
-
"kind": "
|
|
1240
|
-
"name": "
|
|
1241
|
-
"
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1204
|
+
"kind": "field",
|
|
1205
|
+
"name": "disabled",
|
|
1206
|
+
"type": {
|
|
1207
|
+
"text": "boolean"
|
|
1208
|
+
},
|
|
1209
|
+
"default": "false",
|
|
1210
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1211
|
+
"attribute": "disabled",
|
|
1212
|
+
"reflects": true,
|
|
1213
|
+
"inheritedFrom": {
|
|
1214
|
+
"name": "InputMixin",
|
|
1215
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1216
|
+
}
|
|
1250
1217
|
},
|
|
1251
1218
|
{
|
|
1252
|
-
"kind": "
|
|
1253
|
-
"name": "
|
|
1254
|
-
"
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1219
|
+
"kind": "field",
|
|
1220
|
+
"name": "name",
|
|
1221
|
+
"type": {
|
|
1222
|
+
"text": "string | undefined"
|
|
1223
|
+
},
|
|
1224
|
+
"description": "The name of the form component.",
|
|
1225
|
+
"attribute": "name",
|
|
1226
|
+
"inheritedFrom": {
|
|
1227
|
+
"name": "InputMixin",
|
|
1228
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1229
|
+
}
|
|
1263
1230
|
},
|
|
1264
1231
|
{
|
|
1265
|
-
"kind": "
|
|
1266
|
-
"name": "
|
|
1267
|
-
"
|
|
1232
|
+
"kind": "field",
|
|
1233
|
+
"name": "value",
|
|
1234
|
+
"type": {
|
|
1235
|
+
"text": "string"
|
|
1236
|
+
},
|
|
1237
|
+
"default": "\"\"",
|
|
1238
|
+
"description": "The value of the form component.",
|
|
1239
|
+
"attribute": "value",
|
|
1240
|
+
"inheritedFrom": {
|
|
1241
|
+
"name": "InputMixin",
|
|
1242
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1243
|
+
}
|
|
1268
1244
|
},
|
|
1269
1245
|
{
|
|
1270
|
-
"kind": "
|
|
1271
|
-
"name": "
|
|
1272
|
-
"privacy": "
|
|
1246
|
+
"kind": "field",
|
|
1247
|
+
"name": "form",
|
|
1248
|
+
"privacy": "protected",
|
|
1249
|
+
"description": "Gets the form, if any, associated with the form element.",
|
|
1250
|
+
"inheritedFrom": {
|
|
1251
|
+
"name": "InputMixin",
|
|
1252
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1253
|
+
}
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"kind": "field",
|
|
1257
|
+
"name": "focusableRef",
|
|
1258
|
+
"privacy": "protected",
|
|
1259
|
+
"inheritedFrom": {
|
|
1260
|
+
"name": "FocusableMixin",
|
|
1261
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1262
|
+
}
|
|
1273
1263
|
},
|
|
1274
1264
|
{
|
|
1275
1265
|
"kind": "method",
|
|
1276
|
-
"name": "
|
|
1277
|
-
"privacy": "private",
|
|
1266
|
+
"name": "focus",
|
|
1278
1267
|
"parameters": [
|
|
1279
1268
|
{
|
|
1280
|
-
"name": "
|
|
1269
|
+
"name": "options",
|
|
1270
|
+
"optional": true,
|
|
1281
1271
|
"type": {
|
|
1282
|
-
"text": "
|
|
1283
|
-
}
|
|
1272
|
+
"text": "FocusOptions"
|
|
1273
|
+
},
|
|
1274
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1284
1275
|
}
|
|
1285
|
-
]
|
|
1276
|
+
],
|
|
1277
|
+
"description": "Programmatically move focus to the component.",
|
|
1278
|
+
"inheritedFrom": {
|
|
1279
|
+
"name": "FocusableMixin",
|
|
1280
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1281
|
+
}
|
|
1286
1282
|
},
|
|
1287
1283
|
{
|
|
1288
1284
|
"kind": "method",
|
|
1289
|
-
"name": "
|
|
1290
|
-
"
|
|
1291
|
-
"
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
"text": "number"
|
|
1296
|
-
}
|
|
1297
|
-
}
|
|
1298
|
-
]
|
|
1285
|
+
"name": "blur",
|
|
1286
|
+
"description": "Programmatically remove focus from the component.",
|
|
1287
|
+
"inheritedFrom": {
|
|
1288
|
+
"name": "FocusableMixin",
|
|
1289
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1290
|
+
}
|
|
1299
1291
|
},
|
|
1300
1292
|
{
|
|
1301
1293
|
"kind": "method",
|
|
1302
|
-
"name": "
|
|
1303
|
-
"
|
|
1304
|
-
"
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1294
|
+
"name": "click",
|
|
1295
|
+
"description": "Programmatically simulates a click on the component.",
|
|
1296
|
+
"inheritedFrom": {
|
|
1297
|
+
"name": "FocusableMixin",
|
|
1298
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
],
|
|
1302
|
+
"attributes": [
|
|
1303
|
+
{
|
|
1304
|
+
"name": "variant",
|
|
1305
|
+
"type": {
|
|
1306
|
+
"text": "\"default\" | \"primary\" | \"dashed\" | \"plain\" | \"danger\""
|
|
1307
|
+
},
|
|
1308
|
+
"default": "\"default\"",
|
|
1309
|
+
"description": "The style variant of the button.",
|
|
1310
|
+
"fieldName": "variant"
|
|
1312
1311
|
},
|
|
1313
1312
|
{
|
|
1314
|
-
"
|
|
1315
|
-
"
|
|
1316
|
-
|
|
1313
|
+
"name": "type",
|
|
1314
|
+
"type": {
|
|
1315
|
+
"text": "\"button\" | \"submit\" | \"reset\""
|
|
1316
|
+
},
|
|
1317
|
+
"default": "\"submit\"",
|
|
1318
|
+
"description": "The type of the button.",
|
|
1319
|
+
"fieldName": "type"
|
|
1317
1320
|
},
|
|
1318
1321
|
{
|
|
1319
|
-
"
|
|
1320
|
-
"
|
|
1321
|
-
|
|
1322
|
+
"name": "size",
|
|
1323
|
+
"type": {
|
|
1324
|
+
"text": "\"s\" | \"m\" | \"l\""
|
|
1325
|
+
},
|
|
1326
|
+
"default": "\"m\"",
|
|
1327
|
+
"description": "The size of the button.\nThis affects font-size and padding.",
|
|
1328
|
+
"fieldName": "size"
|
|
1322
1329
|
},
|
|
1323
1330
|
{
|
|
1324
|
-
"
|
|
1325
|
-
"
|
|
1326
|
-
|
|
1331
|
+
"name": "aria-expanded",
|
|
1332
|
+
"type": {
|
|
1333
|
+
"text": "\"true\" | \"false\" | undefined"
|
|
1334
|
+
},
|
|
1335
|
+
"fieldName": "accessibleExpanded"
|
|
1327
1336
|
},
|
|
1328
1337
|
{
|
|
1329
|
-
"
|
|
1330
|
-
"
|
|
1331
|
-
|
|
1338
|
+
"name": "aria-haspopup",
|
|
1339
|
+
"type": {
|
|
1340
|
+
"text": "| \"false\"\n | \"true\"\n | \"menu\"\n | \"listbox\"\n | \"tree\"\n | \"grid\"\n | \"dialog\" | undefined"
|
|
1341
|
+
},
|
|
1342
|
+
"fieldName": "accessibleHasPopup"
|
|
1332
1343
|
},
|
|
1333
1344
|
{
|
|
1334
|
-
"
|
|
1335
|
-
"
|
|
1336
|
-
|
|
1345
|
+
"name": "href",
|
|
1346
|
+
"type": {
|
|
1347
|
+
"text": "string | undefined"
|
|
1348
|
+
},
|
|
1349
|
+
"description": "When provided, renders the button as a link,\nwith its href attribute set to the given value.",
|
|
1350
|
+
"fieldName": "href"
|
|
1337
1351
|
},
|
|
1338
1352
|
{
|
|
1339
|
-
"
|
|
1340
|
-
"name": "disableActiveFocus",
|
|
1341
|
-
"privacy": "private"
|
|
1342
|
-
}
|
|
1343
|
-
],
|
|
1344
|
-
"events": [
|
|
1345
|
-
{
|
|
1346
|
-
"name": "nord-focus-date",
|
|
1353
|
+
"name": "download",
|
|
1347
1354
|
"type": {
|
|
1348
|
-
"text": "
|
|
1355
|
+
"text": "boolean"
|
|
1349
1356
|
},
|
|
1350
|
-
"
|
|
1357
|
+
"default": "false",
|
|
1358
|
+
"description": "When provided together with a href property, the button will\ntrigger a file download instead of a page visit.",
|
|
1359
|
+
"fieldName": "download"
|
|
1351
1360
|
},
|
|
1352
1361
|
{
|
|
1362
|
+
"name": "target",
|
|
1353
1363
|
"type": {
|
|
1354
|
-
"text": "
|
|
1364
|
+
"text": "\"_self\" | \"_blank\" | \"_parent\" | \"_top\""
|
|
1355
1365
|
},
|
|
1356
|
-
"
|
|
1357
|
-
"
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
"attributes": [
|
|
1366
|
+
"default": "\"_self\"",
|
|
1367
|
+
"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.",
|
|
1368
|
+
"fieldName": "target"
|
|
1369
|
+
},
|
|
1361
1370
|
{
|
|
1362
|
-
"name": "
|
|
1371
|
+
"name": "expand",
|
|
1363
1372
|
"type": {
|
|
1364
|
-
"text": "
|
|
1373
|
+
"text": "boolean"
|
|
1365
1374
|
},
|
|
1366
|
-
"default": "
|
|
1367
|
-
"description": "
|
|
1368
|
-
"fieldName": "
|
|
1375
|
+
"default": "false",
|
|
1376
|
+
"description": "Controls whether the button expands to fill the width of its container.",
|
|
1377
|
+
"fieldName": "expand"
|
|
1369
1378
|
},
|
|
1370
1379
|
{
|
|
1371
|
-
"name": "
|
|
1380
|
+
"name": "disabled",
|
|
1372
1381
|
"type": {
|
|
1373
|
-
"text": "
|
|
1382
|
+
"text": "boolean"
|
|
1374
1383
|
},
|
|
1375
|
-
"
|
|
1376
|
-
"
|
|
1384
|
+
"default": "false",
|
|
1385
|
+
"description": "Makes the component disabled. This prevents users from\nbeing able to interact with the component, and conveys\nits inactive state to assistive technologies.",
|
|
1386
|
+
"fieldName": "disabled",
|
|
1387
|
+
"inheritedFrom": {
|
|
1388
|
+
"name": "InputMixin",
|
|
1389
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1390
|
+
}
|
|
1377
1391
|
},
|
|
1378
1392
|
{
|
|
1379
|
-
"name": "
|
|
1393
|
+
"name": "name",
|
|
1380
1394
|
"type": {
|
|
1381
|
-
"text": "string"
|
|
1395
|
+
"text": "string | undefined"
|
|
1382
1396
|
},
|
|
1383
|
-
"
|
|
1384
|
-
"
|
|
1385
|
-
"
|
|
1397
|
+
"description": "The name of the form component.",
|
|
1398
|
+
"fieldName": "name",
|
|
1399
|
+
"inheritedFrom": {
|
|
1400
|
+
"name": "InputMixin",
|
|
1401
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1402
|
+
}
|
|
1386
1403
|
},
|
|
1387
1404
|
{
|
|
1388
|
-
"name": "
|
|
1405
|
+
"name": "value",
|
|
1389
1406
|
"type": {
|
|
1390
1407
|
"text": "string"
|
|
1391
1408
|
},
|
|
1392
1409
|
"default": "\"\"",
|
|
1393
|
-
"description": "
|
|
1394
|
-
"fieldName": "
|
|
1410
|
+
"description": "The value of the form component.",
|
|
1411
|
+
"fieldName": "value",
|
|
1412
|
+
"inheritedFrom": {
|
|
1413
|
+
"name": "InputMixin",
|
|
1414
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
],
|
|
1418
|
+
"mixins": [
|
|
1419
|
+
{
|
|
1420
|
+
"name": "InputMixin",
|
|
1421
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
1395
1422
|
},
|
|
1396
1423
|
{
|
|
1397
|
-
"name": "
|
|
1398
|
-
"
|
|
1399
|
-
"text": "boolean"
|
|
1400
|
-
},
|
|
1401
|
-
"default": "false",
|
|
1402
|
-
"description": "Controls whether the calendar expands to fill the width of its container.",
|
|
1403
|
-
"fieldName": "expand"
|
|
1424
|
+
"name": "FocusableMixin",
|
|
1425
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
1404
1426
|
}
|
|
1405
1427
|
],
|
|
1406
1428
|
"superclass": {
|
|
@@ -1408,8 +1430,8 @@
|
|
|
1408
1430
|
"package": "lit"
|
|
1409
1431
|
},
|
|
1410
1432
|
"status": "ready",
|
|
1411
|
-
"category": "
|
|
1412
|
-
"tagName": "nord-
|
|
1433
|
+
"category": "action",
|
|
1434
|
+
"tagName": "nord-button",
|
|
1413
1435
|
"customElement": true
|
|
1414
1436
|
}
|
|
1415
1437
|
],
|
|
@@ -1418,130 +1440,108 @@
|
|
|
1418
1440
|
"kind": "js",
|
|
1419
1441
|
"name": "default",
|
|
1420
1442
|
"declaration": {
|
|
1421
|
-
"name": "
|
|
1422
|
-
"module": "src/
|
|
1443
|
+
"name": "Button",
|
|
1444
|
+
"module": "src/button/Button.ts"
|
|
1423
1445
|
}
|
|
1424
1446
|
},
|
|
1425
1447
|
{
|
|
1426
1448
|
"kind": "custom-element-definition",
|
|
1427
|
-
"name": "nord-
|
|
1449
|
+
"name": "nord-button",
|
|
1428
1450
|
"declaration": {
|
|
1429
|
-
"name": "
|
|
1430
|
-
"module": "src/
|
|
1451
|
+
"name": "Button",
|
|
1452
|
+
"module": "src/button/Button.ts"
|
|
1431
1453
|
}
|
|
1432
1454
|
}
|
|
1433
1455
|
],
|
|
1434
|
-
"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
|
|
1456
|
+
"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"
|
|
1435
1457
|
},
|
|
1436
1458
|
{
|
|
1437
1459
|
"kind": "javascript-module",
|
|
1438
|
-
"path": "src/
|
|
1460
|
+
"path": "src/card/Card.ts",
|
|
1439
1461
|
"declarations": [
|
|
1440
1462
|
{
|
|
1441
1463
|
"kind": "class",
|
|
1442
|
-
"description": "",
|
|
1443
|
-
"name": "
|
|
1464
|
+
"description": "Cards are shadowed surfaces that display content and actions on a\nsingle topic. They should be easy to scan for relevant and\nactionable information.",
|
|
1465
|
+
"name": "Card",
|
|
1466
|
+
"slots": [
|
|
1467
|
+
{
|
|
1468
|
+
"description": "The card content.",
|
|
1469
|
+
"name": ""
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"description": "Optional slot that holds a header for the card.",
|
|
1473
|
+
"name": "header"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
1477
|
+
"name": "footer"
|
|
1478
|
+
}
|
|
1479
|
+
],
|
|
1444
1480
|
"members": [
|
|
1445
1481
|
{
|
|
1446
1482
|
"kind": "field",
|
|
1447
|
-
"name": "
|
|
1483
|
+
"name": "headerSlot",
|
|
1484
|
+
"privacy": "private",
|
|
1485
|
+
"default": "new SlotController(this, \"header\")"
|
|
1486
|
+
},
|
|
1487
|
+
{
|
|
1488
|
+
"kind": "field",
|
|
1489
|
+
"name": "footerSlot",
|
|
1490
|
+
"privacy": "private",
|
|
1491
|
+
"default": "new SlotController(this, \"footer\")"
|
|
1492
|
+
},
|
|
1493
|
+
{
|
|
1494
|
+
"kind": "field",
|
|
1495
|
+
"name": "padding",
|
|
1448
1496
|
"type": {
|
|
1449
|
-
"text": "
|
|
1497
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1450
1498
|
},
|
|
1451
|
-
"default": "
|
|
1499
|
+
"default": "\"m\"",
|
|
1500
|
+
"description": "Controls the padding of card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1501
|
+
"attribute": "padding",
|
|
1502
|
+
"reflects": true
|
|
1452
1503
|
}
|
|
1453
1504
|
],
|
|
1454
|
-
"
|
|
1455
|
-
"name": "NordEvent",
|
|
1456
|
-
"module": "/src/common/events.js"
|
|
1457
|
-
}
|
|
1458
|
-
}
|
|
1459
|
-
],
|
|
1460
|
-
"exports": [
|
|
1461
|
-
{
|
|
1462
|
-
"kind": "js",
|
|
1463
|
-
"name": "DateSelectEvent",
|
|
1464
|
-
"declaration": {
|
|
1465
|
-
"name": "DateSelectEvent",
|
|
1466
|
-
"module": "src/calendar/DateSelectEvent.ts"
|
|
1467
|
-
}
|
|
1468
|
-
}
|
|
1469
|
-
],
|
|
1470
|
-
"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"
|
|
1471
|
-
},
|
|
1472
|
-
{
|
|
1473
|
-
"kind": "javascript-module",
|
|
1474
|
-
"path": "src/calendar/calendar-localization.ts",
|
|
1475
|
-
"declarations": [
|
|
1476
|
-
{
|
|
1477
|
-
"kind": "variable",
|
|
1478
|
-
"name": "localization",
|
|
1479
|
-
"type": {
|
|
1480
|
-
"text": "CalendarLocalizedText"
|
|
1481
|
-
},
|
|
1482
|
-
"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}"
|
|
1483
|
-
}
|
|
1484
|
-
],
|
|
1485
|
-
"exports": [
|
|
1486
|
-
{
|
|
1487
|
-
"kind": "js",
|
|
1488
|
-
"name": "default",
|
|
1489
|
-
"declaration": {
|
|
1490
|
-
"name": "localization",
|
|
1491
|
-
"module": "src/calendar/calendar-localization.ts"
|
|
1492
|
-
}
|
|
1493
|
-
}
|
|
1494
|
-
],
|
|
1495
|
-
"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"
|
|
1496
|
-
},
|
|
1497
|
-
{
|
|
1498
|
-
"kind": "javascript-module",
|
|
1499
|
-
"path": "src/calendar/month-view.ts",
|
|
1500
|
-
"declarations": [
|
|
1501
|
-
{
|
|
1502
|
-
"kind": "function",
|
|
1503
|
-
"name": "dayView",
|
|
1504
|
-
"parameters": [
|
|
1505
|
-
{
|
|
1506
|
-
"name": "{\n focusedDay,\n today,\n day,\n onDaySelect,\n onKeyboardNavigation,\n disabled,\n inRange,\n isSelected,\n dateFormatter,\n}",
|
|
1507
|
-
"type": {
|
|
1508
|
-
"text": "DatePickerDayProps"
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
]
|
|
1512
|
-
},
|
|
1513
|
-
{
|
|
1514
|
-
"kind": "function",
|
|
1515
|
-
"name": "monthView",
|
|
1516
|
-
"parameters": [
|
|
1505
|
+
"attributes": [
|
|
1517
1506
|
{
|
|
1518
|
-
"name": "
|
|
1507
|
+
"name": "padding",
|
|
1519
1508
|
"type": {
|
|
1520
|
-
"text": "
|
|
1521
|
-
}
|
|
1509
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1510
|
+
},
|
|
1511
|
+
"default": "\"m\"",
|
|
1512
|
+
"description": "Controls the padding of card component. When set to “none”,\nthe header and footer slots will still have padding.",
|
|
1513
|
+
"fieldName": "padding"
|
|
1522
1514
|
}
|
|
1523
|
-
]
|
|
1515
|
+
],
|
|
1516
|
+
"superclass": {
|
|
1517
|
+
"name": "LitElement",
|
|
1518
|
+
"package": "lit"
|
|
1519
|
+
},
|
|
1520
|
+
"status": "ready",
|
|
1521
|
+
"category": "structure",
|
|
1522
|
+
"tagName": "nord-card",
|
|
1523
|
+
"customElement": true
|
|
1524
1524
|
}
|
|
1525
1525
|
],
|
|
1526
1526
|
"exports": [
|
|
1527
1527
|
{
|
|
1528
1528
|
"kind": "js",
|
|
1529
|
-
"name": "
|
|
1529
|
+
"name": "default",
|
|
1530
1530
|
"declaration": {
|
|
1531
|
-
"name": "
|
|
1532
|
-
"module": "src/
|
|
1531
|
+
"name": "Card",
|
|
1532
|
+
"module": "src/card/Card.ts"
|
|
1533
1533
|
}
|
|
1534
1534
|
},
|
|
1535
1535
|
{
|
|
1536
|
-
"kind": "
|
|
1537
|
-
"name": "
|
|
1536
|
+
"kind": "custom-element-definition",
|
|
1537
|
+
"name": "nord-card",
|
|
1538
1538
|
"declaration": {
|
|
1539
|
-
"name": "
|
|
1540
|
-
"module": "src/
|
|
1539
|
+
"name": "Card",
|
|
1540
|
+
"module": "src/card/Card.ts"
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
1543
|
],
|
|
1544
|
-
"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
|
|
1544
|
+
"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 display content and actions on a single topic inside a container.\n- Use to visually separate specific parts of content in an application view.\n- Use to wrap a form into a container, for example a login form.\n\n</div>\n<div class=\"n-usage n-usage-dont\">\n\n### Don’t\n\n- Don’t use when you need to capture user’s attention in a prominent way.\n- Don’t use to inform user about important changes or conditions in the interface.\n- Don’t use multiple primary buttons inside a card. A card should only contain a single primary action.\n\n</div>\n"
|
|
1545
1545
|
},
|
|
1546
1546
|
{
|
|
1547
1547
|
"kind": "javascript-module",
|
|
@@ -4732,6 +4732,23 @@
|
|
|
4732
4732
|
}
|
|
4733
4733
|
],
|
|
4734
4734
|
"members": [
|
|
4735
|
+
{
|
|
4736
|
+
"kind": "field",
|
|
4737
|
+
"name": "shadowRootOptions",
|
|
4738
|
+
"type": {
|
|
4739
|
+
"text": "object"
|
|
4740
|
+
},
|
|
4741
|
+
"static": true,
|
|
4742
|
+
"default": "{ ...LitElement.shadowRootOptions, delegatesFocus: true }"
|
|
4743
|
+
},
|
|
4744
|
+
{
|
|
4745
|
+
"kind": "field",
|
|
4746
|
+
"name": "popout",
|
|
4747
|
+
"type": {
|
|
4748
|
+
"text": "Popout"
|
|
4749
|
+
},
|
|
4750
|
+
"privacy": "private"
|
|
4751
|
+
},
|
|
4735
4752
|
{
|
|
4736
4753
|
"kind": "field",
|
|
4737
4754
|
"name": "align",
|
|
@@ -4763,6 +4780,19 @@
|
|
|
4763
4780
|
"attribute": "expand",
|
|
4764
4781
|
"reflects": true
|
|
4765
4782
|
},
|
|
4783
|
+
{
|
|
4784
|
+
"kind": "method",
|
|
4785
|
+
"name": "handleBlur",
|
|
4786
|
+
"privacy": "private",
|
|
4787
|
+
"parameters": [
|
|
4788
|
+
{
|
|
4789
|
+
"name": "e",
|
|
4790
|
+
"type": {
|
|
4791
|
+
"text": "FocusEvent"
|
|
4792
|
+
}
|
|
4793
|
+
}
|
|
4794
|
+
]
|
|
4795
|
+
},
|
|
4766
4796
|
{
|
|
4767
4797
|
"kind": "method",
|
|
4768
4798
|
"name": "handleOpen",
|
|
@@ -8504,17 +8534,39 @@
|
|
|
8504
8534
|
"kind": "field",
|
|
8505
8535
|
"name": "alignItems",
|
|
8506
8536
|
"type": {
|
|
8507
|
-
"text": "\"center\" | \"start\" | \"end\" | undefined"
|
|
8537
|
+
"text": "\"center\" | \"start\" | \"end\" | \"stretch\" | undefined"
|
|
8508
8538
|
},
|
|
8509
8539
|
"description": "How to align the child items inside the stack.",
|
|
8510
8540
|
"attribute": "align-items",
|
|
8511
8541
|
"reflects": true
|
|
8512
8542
|
},
|
|
8543
|
+
{
|
|
8544
|
+
"kind": "field",
|
|
8545
|
+
"name": "responsive",
|
|
8546
|
+
"type": {
|
|
8547
|
+
"text": "boolean"
|
|
8548
|
+
},
|
|
8549
|
+
"default": "false",
|
|
8550
|
+
"description": "Enable or disable responsive behaviour of the stack component.\nSetting this option \"true\" makes sure that contents are\nstacked vertically on mobile (768px and under).",
|
|
8551
|
+
"attribute": "responsive",
|
|
8552
|
+
"reflects": true
|
|
8553
|
+
},
|
|
8554
|
+
{
|
|
8555
|
+
"kind": "field",
|
|
8556
|
+
"name": "wrap",
|
|
8557
|
+
"type": {
|
|
8558
|
+
"text": "boolean"
|
|
8559
|
+
},
|
|
8560
|
+
"default": "false",
|
|
8561
|
+
"description": "Defines whether the Stack items are forced in a single line\nor can be flowed into multiple lines.",
|
|
8562
|
+
"attribute": "wrap",
|
|
8563
|
+
"reflects": true
|
|
8564
|
+
},
|
|
8513
8565
|
{
|
|
8514
8566
|
"kind": "field",
|
|
8515
8567
|
"name": "justifyContent",
|
|
8516
8568
|
"type": {
|
|
8517
|
-
"text": "\"center\"
|
|
8569
|
+
"text": "| \"center\"\n | \"start\"\n | \"end\"\n | \"space-between\"\n | \"space-around\"\n | \"space-evenly\" | undefined"
|
|
8518
8570
|
},
|
|
8519
8571
|
"description": "How to justify the child items inside the stack.",
|
|
8520
8572
|
"attribute": "justify-content",
|
|
@@ -8543,15 +8595,33 @@
|
|
|
8543
8595
|
{
|
|
8544
8596
|
"name": "align-items",
|
|
8545
8597
|
"type": {
|
|
8546
|
-
"text": "\"center\" | \"start\" | \"end\" | undefined"
|
|
8598
|
+
"text": "\"center\" | \"start\" | \"end\" | \"stretch\" | undefined"
|
|
8547
8599
|
},
|
|
8548
8600
|
"description": "How to align the child items inside the stack.",
|
|
8549
8601
|
"fieldName": "alignItems"
|
|
8550
8602
|
},
|
|
8603
|
+
{
|
|
8604
|
+
"name": "responsive",
|
|
8605
|
+
"type": {
|
|
8606
|
+
"text": "boolean"
|
|
8607
|
+
},
|
|
8608
|
+
"default": "false",
|
|
8609
|
+
"description": "Enable or disable responsive behaviour of the stack component.\nSetting this option \"true\" makes sure that contents are\nstacked vertically on mobile (768px and under).",
|
|
8610
|
+
"fieldName": "responsive"
|
|
8611
|
+
},
|
|
8612
|
+
{
|
|
8613
|
+
"name": "wrap",
|
|
8614
|
+
"type": {
|
|
8615
|
+
"text": "boolean"
|
|
8616
|
+
},
|
|
8617
|
+
"default": "false",
|
|
8618
|
+
"description": "Defines whether the Stack items are forced in a single line\nor can be flowed into multiple lines.",
|
|
8619
|
+
"fieldName": "wrap"
|
|
8620
|
+
},
|
|
8551
8621
|
{
|
|
8552
8622
|
"name": "justify-content",
|
|
8553
8623
|
"type": {
|
|
8554
|
-
"text": "\"center\"
|
|
8624
|
+
"text": "| \"center\"\n | \"start\"\n | \"end\"\n | \"space-between\"\n | \"space-around\"\n | \"space-evenly\" | undefined"
|
|
8555
8625
|
},
|
|
8556
8626
|
"description": "How to justify the child items inside the stack.",
|
|
8557
8627
|
"fieldName": "justifyContent"
|
|
@@ -9401,7 +9471,7 @@
|
|
|
9401
9471
|
"type": {
|
|
9402
9472
|
"text": "number"
|
|
9403
9473
|
},
|
|
9404
|
-
"default": "
|
|
9474
|
+
"default": "500",
|
|
9405
9475
|
"description": "The delay in milliseconds before the tooltip is opened.",
|
|
9406
9476
|
"attribute": "delay",
|
|
9407
9477
|
"reflects": true
|
|
@@ -9491,264 +9561,88 @@
|
|
|
9491
9561
|
},
|
|
9492
9562
|
{
|
|
9493
9563
|
"name": "delay",
|
|
9494
|
-
"type": {
|
|
9495
|
-
"text": "number"
|
|
9496
|
-
},
|
|
9497
|
-
"default": "
|
|
9498
|
-
"description": "The delay in milliseconds before the tooltip is opened.",
|
|
9499
|
-
"fieldName": "delay"
|
|
9500
|
-
}
|
|
9501
|
-
],
|
|
9502
|
-
"superclass": {
|
|
9503
|
-
"name": "LitElement",
|
|
9504
|
-
"package": "lit"
|
|
9505
|
-
},
|
|
9506
|
-
"status": "ready",
|
|
9507
|
-
"category": "overlay",
|
|
9508
|
-
"tagName": "nord-tooltip",
|
|
9509
|
-
"customElement": true
|
|
9510
|
-
}
|
|
9511
|
-
],
|
|
9512
|
-
"exports": [
|
|
9513
|
-
{
|
|
9514
|
-
"kind": "js",
|
|
9515
|
-
"name": "default",
|
|
9516
|
-
"declaration": {
|
|
9517
|
-
"name": "Tooltip",
|
|
9518
|
-
"module": "src/tooltip/Tooltip.ts"
|
|
9519
|
-
}
|
|
9520
|
-
},
|
|
9521
|
-
{
|
|
9522
|
-
"kind": "custom-element-definition",
|
|
9523
|
-
"name": "nord-tooltip",
|
|
9524
|
-
"declaration": {
|
|
9525
|
-
"name": "Tooltip",
|
|
9526
|
-
"module": "src/tooltip/Tooltip.ts"
|
|
9527
|
-
}
|
|
9528
|
-
}
|
|
9529
|
-
],
|
|
9530
|
-
"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 accessibility.\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"
|
|
9531
|
-
},
|
|
9532
|
-
{
|
|
9533
|
-
"kind": "javascript-module",
|
|
9534
|
-
"path": "src/visually-hidden/VisuallyHidden.ts",
|
|
9535
|
-
"declarations": [
|
|
9536
|
-
{
|
|
9537
|
-
"kind": "class",
|
|
9538
|
-
"description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
|
|
9539
|
-
"name": "VisuallyHidden",
|
|
9540
|
-
"slots": [
|
|
9541
|
-
{
|
|
9542
|
-
"description": "The visually hidden content.",
|
|
9543
|
-
"name": ""
|
|
9544
|
-
}
|
|
9545
|
-
],
|
|
9546
|
-
"members": [],
|
|
9547
|
-
"superclass": {
|
|
9548
|
-
"name": "LitElement",
|
|
9549
|
-
"package": "lit"
|
|
9550
|
-
},
|
|
9551
|
-
"status": "ready",
|
|
9552
|
-
"category": "text",
|
|
9553
|
-
"tagName": "nord-visually-hidden",
|
|
9554
|
-
"customElement": true
|
|
9555
|
-
}
|
|
9556
|
-
],
|
|
9557
|
-
"exports": [
|
|
9558
|
-
{
|
|
9559
|
-
"kind": "js",
|
|
9560
|
-
"name": "default",
|
|
9561
|
-
"declaration": {
|
|
9562
|
-
"name": "VisuallyHidden",
|
|
9563
|
-
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
9564
|
-
}
|
|
9565
|
-
},
|
|
9566
|
-
{
|
|
9567
|
-
"kind": "custom-element-definition",
|
|
9568
|
-
"name": "nord-visually-hidden",
|
|
9569
|
-
"declaration": {
|
|
9570
|
-
"name": "VisuallyHidden",
|
|
9571
|
-
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
9572
|
-
}
|
|
9573
|
-
}
|
|
9574
|
-
],
|
|
9575
|
-
"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"
|
|
9576
|
-
},
|
|
9577
|
-
{
|
|
9578
|
-
"kind": "javascript-module",
|
|
9579
|
-
"path": "src/common/directives/cond.ts",
|
|
9580
|
-
"declarations": [
|
|
9581
|
-
{
|
|
9582
|
-
"kind": "variable",
|
|
9583
|
-
"name": "cond"
|
|
9584
|
-
}
|
|
9585
|
-
],
|
|
9586
|
-
"exports": [
|
|
9587
|
-
{
|
|
9588
|
-
"kind": "js",
|
|
9589
|
-
"name": "cond",
|
|
9590
|
-
"declaration": {
|
|
9591
|
-
"name": "cond",
|
|
9592
|
-
"module": "src/common/directives/cond.ts"
|
|
9593
|
-
}
|
|
9594
|
-
}
|
|
9595
|
-
]
|
|
9596
|
-
},
|
|
9597
|
-
{
|
|
9598
|
-
"kind": "javascript-module",
|
|
9599
|
-
"path": "src/common/directives/wrapIf.ts",
|
|
9600
|
-
"declarations": [
|
|
9601
|
-
{
|
|
9602
|
-
"kind": "function",
|
|
9603
|
-
"name": "wrapIf",
|
|
9604
|
-
"return": {
|
|
9605
|
-
"type": {
|
|
9606
|
-
"text": "TInner"
|
|
9607
|
-
}
|
|
9608
|
-
},
|
|
9609
|
-
"parameters": [
|
|
9610
|
-
{
|
|
9611
|
-
"name": "condition",
|
|
9612
|
-
"type": {
|
|
9613
|
-
"text": "false"
|
|
9614
|
-
}
|
|
9615
|
-
},
|
|
9616
|
-
{
|
|
9617
|
-
"name": "inner",
|
|
9618
|
-
"type": {
|
|
9619
|
-
"text": "() => TInner"
|
|
9620
|
-
}
|
|
9621
|
-
},
|
|
9622
|
-
{
|
|
9623
|
-
"name": "wrapper",
|
|
9624
|
-
"type": {
|
|
9625
|
-
"text": "(inner: TInner) => TWrapper"
|
|
9626
|
-
}
|
|
9627
|
-
}
|
|
9628
|
-
]
|
|
9629
|
-
},
|
|
9630
|
-
{
|
|
9631
|
-
"kind": "function",
|
|
9632
|
-
"name": "wrapIf",
|
|
9633
|
-
"return": {
|
|
9634
|
-
"type": {
|
|
9635
|
-
"text": "TWrapper"
|
|
9636
|
-
}
|
|
9637
|
-
},
|
|
9638
|
-
"parameters": [
|
|
9639
|
-
{
|
|
9640
|
-
"name": "condition",
|
|
9641
|
-
"type": {
|
|
9642
|
-
"text": "true"
|
|
9643
|
-
}
|
|
9644
|
-
},
|
|
9645
|
-
{
|
|
9646
|
-
"name": "inner",
|
|
9647
|
-
"type": {
|
|
9648
|
-
"text": "() => TInner"
|
|
9649
|
-
}
|
|
9650
|
-
},
|
|
9651
|
-
{
|
|
9652
|
-
"name": "wrapper",
|
|
9653
|
-
"type": {
|
|
9654
|
-
"text": "(inner: TInner) => TWrapper"
|
|
9655
|
-
}
|
|
9656
|
-
}
|
|
9657
|
-
]
|
|
9658
|
-
},
|
|
9659
|
-
{
|
|
9660
|
-
"kind": "function",
|
|
9661
|
-
"name": "wrapIf",
|
|
9662
|
-
"return": {
|
|
9663
|
-
"type": {
|
|
9664
|
-
"text": "TInner | TWrapper"
|
|
9665
|
-
}
|
|
9666
|
-
},
|
|
9667
|
-
"parameters": [
|
|
9668
|
-
{
|
|
9669
|
-
"name": "condition",
|
|
9670
|
-
"type": {
|
|
9671
|
-
"text": "unknown"
|
|
9672
|
-
}
|
|
9673
|
-
},
|
|
9674
|
-
{
|
|
9675
|
-
"name": "inner",
|
|
9676
|
-
"type": {
|
|
9677
|
-
"text": "() => TInner"
|
|
9678
|
-
}
|
|
9679
|
-
},
|
|
9680
|
-
{
|
|
9681
|
-
"name": "wrapper",
|
|
9682
|
-
"type": {
|
|
9683
|
-
"text": "(inner: TInner) => TWrapper"
|
|
9684
|
-
}
|
|
9685
|
-
}
|
|
9686
|
-
]
|
|
9687
|
-
},
|
|
9688
|
-
{
|
|
9689
|
-
"kind": "function",
|
|
9690
|
-
"name": "wrapIf",
|
|
9691
|
-
"parameters": [
|
|
9692
|
-
{
|
|
9693
|
-
"name": "condition",
|
|
9694
|
-
"type": {
|
|
9695
|
-
"text": "any"
|
|
9696
|
-
}
|
|
9697
|
-
},
|
|
9698
|
-
{
|
|
9699
|
-
"name": "inner",
|
|
9700
|
-
"type": {
|
|
9701
|
-
"text": "() => TInner"
|
|
9702
|
-
}
|
|
9703
|
-
},
|
|
9704
|
-
{
|
|
9705
|
-
"name": "wrapper",
|
|
9706
|
-
"type": {
|
|
9707
|
-
"text": "(innards: TInner) => TWrapper"
|
|
9708
|
-
}
|
|
9564
|
+
"type": {
|
|
9565
|
+
"text": "number"
|
|
9566
|
+
},
|
|
9567
|
+
"default": "500",
|
|
9568
|
+
"description": "The delay in milliseconds before the tooltip is opened.",
|
|
9569
|
+
"fieldName": "delay"
|
|
9709
9570
|
}
|
|
9710
9571
|
],
|
|
9711
|
-
"
|
|
9712
|
-
"
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9572
|
+
"superclass": {
|
|
9573
|
+
"name": "LitElement",
|
|
9574
|
+
"package": "lit"
|
|
9575
|
+
},
|
|
9576
|
+
"status": "ready",
|
|
9577
|
+
"category": "overlay",
|
|
9578
|
+
"tagName": "nord-tooltip",
|
|
9579
|
+
"customElement": true
|
|
9716
9580
|
}
|
|
9717
9581
|
],
|
|
9718
9582
|
"exports": [
|
|
9719
9583
|
{
|
|
9720
9584
|
"kind": "js",
|
|
9721
|
-
"name": "
|
|
9585
|
+
"name": "default",
|
|
9722
9586
|
"declaration": {
|
|
9723
|
-
"name": "
|
|
9724
|
-
"module": "src/
|
|
9587
|
+
"name": "Tooltip",
|
|
9588
|
+
"module": "src/tooltip/Tooltip.ts"
|
|
9725
9589
|
}
|
|
9726
9590
|
},
|
|
9727
9591
|
{
|
|
9728
|
-
"kind": "
|
|
9729
|
-
"name": "
|
|
9592
|
+
"kind": "custom-element-definition",
|
|
9593
|
+
"name": "nord-tooltip",
|
|
9730
9594
|
"declaration": {
|
|
9731
|
-
"name": "
|
|
9732
|
-
"module": "src/
|
|
9595
|
+
"name": "Tooltip",
|
|
9596
|
+
"module": "src/tooltip/Tooltip.ts"
|
|
9733
9597
|
}
|
|
9734
|
-
}
|
|
9598
|
+
}
|
|
9599
|
+
],
|
|
9600
|
+
"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 accessibility.\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"
|
|
9601
|
+
},
|
|
9602
|
+
{
|
|
9603
|
+
"kind": "javascript-module",
|
|
9604
|
+
"path": "src/visually-hidden/VisuallyHidden.ts",
|
|
9605
|
+
"declarations": [
|
|
9606
|
+
{
|
|
9607
|
+
"kind": "class",
|
|
9608
|
+
"description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
|
|
9609
|
+
"name": "VisuallyHidden",
|
|
9610
|
+
"slots": [
|
|
9611
|
+
{
|
|
9612
|
+
"description": "The visually hidden content.",
|
|
9613
|
+
"name": ""
|
|
9614
|
+
}
|
|
9615
|
+
],
|
|
9616
|
+
"members": [],
|
|
9617
|
+
"superclass": {
|
|
9618
|
+
"name": "LitElement",
|
|
9619
|
+
"package": "lit"
|
|
9620
|
+
},
|
|
9621
|
+
"status": "ready",
|
|
9622
|
+
"category": "text",
|
|
9623
|
+
"tagName": "nord-visually-hidden",
|
|
9624
|
+
"customElement": true
|
|
9625
|
+
}
|
|
9626
|
+
],
|
|
9627
|
+
"exports": [
|
|
9735
9628
|
{
|
|
9736
9629
|
"kind": "js",
|
|
9737
|
-
"name": "
|
|
9630
|
+
"name": "default",
|
|
9738
9631
|
"declaration": {
|
|
9739
|
-
"name": "
|
|
9740
|
-
"module": "src/
|
|
9632
|
+
"name": "VisuallyHidden",
|
|
9633
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
9741
9634
|
}
|
|
9742
9635
|
},
|
|
9743
9636
|
{
|
|
9744
|
-
"kind": "
|
|
9745
|
-
"name": "
|
|
9637
|
+
"kind": "custom-element-definition",
|
|
9638
|
+
"name": "nord-visually-hidden",
|
|
9746
9639
|
"declaration": {
|
|
9747
|
-
"name": "
|
|
9748
|
-
"module": "src/
|
|
9640
|
+
"name": "VisuallyHidden",
|
|
9641
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
9749
9642
|
}
|
|
9750
9643
|
}
|
|
9751
|
-
]
|
|
9644
|
+
],
|
|
9645
|
+
"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"
|
|
9752
9646
|
},
|
|
9753
9647
|
{
|
|
9754
9648
|
"kind": "javascript-module",
|
|
@@ -10685,6 +10579,182 @@
|
|
|
10685
10579
|
}
|
|
10686
10580
|
]
|
|
10687
10581
|
},
|
|
10582
|
+
{
|
|
10583
|
+
"kind": "javascript-module",
|
|
10584
|
+
"path": "src/common/directives/cond.ts",
|
|
10585
|
+
"declarations": [
|
|
10586
|
+
{
|
|
10587
|
+
"kind": "variable",
|
|
10588
|
+
"name": "cond"
|
|
10589
|
+
}
|
|
10590
|
+
],
|
|
10591
|
+
"exports": [
|
|
10592
|
+
{
|
|
10593
|
+
"kind": "js",
|
|
10594
|
+
"name": "cond",
|
|
10595
|
+
"declaration": {
|
|
10596
|
+
"name": "cond",
|
|
10597
|
+
"module": "src/common/directives/cond.ts"
|
|
10598
|
+
}
|
|
10599
|
+
}
|
|
10600
|
+
]
|
|
10601
|
+
},
|
|
10602
|
+
{
|
|
10603
|
+
"kind": "javascript-module",
|
|
10604
|
+
"path": "src/common/directives/wrapIf.ts",
|
|
10605
|
+
"declarations": [
|
|
10606
|
+
{
|
|
10607
|
+
"kind": "function",
|
|
10608
|
+
"name": "wrapIf",
|
|
10609
|
+
"return": {
|
|
10610
|
+
"type": {
|
|
10611
|
+
"text": "TInner"
|
|
10612
|
+
}
|
|
10613
|
+
},
|
|
10614
|
+
"parameters": [
|
|
10615
|
+
{
|
|
10616
|
+
"name": "condition",
|
|
10617
|
+
"type": {
|
|
10618
|
+
"text": "false"
|
|
10619
|
+
}
|
|
10620
|
+
},
|
|
10621
|
+
{
|
|
10622
|
+
"name": "inner",
|
|
10623
|
+
"type": {
|
|
10624
|
+
"text": "() => TInner"
|
|
10625
|
+
}
|
|
10626
|
+
},
|
|
10627
|
+
{
|
|
10628
|
+
"name": "wrapper",
|
|
10629
|
+
"type": {
|
|
10630
|
+
"text": "(inner: TInner) => TWrapper"
|
|
10631
|
+
}
|
|
10632
|
+
}
|
|
10633
|
+
]
|
|
10634
|
+
},
|
|
10635
|
+
{
|
|
10636
|
+
"kind": "function",
|
|
10637
|
+
"name": "wrapIf",
|
|
10638
|
+
"return": {
|
|
10639
|
+
"type": {
|
|
10640
|
+
"text": "TWrapper"
|
|
10641
|
+
}
|
|
10642
|
+
},
|
|
10643
|
+
"parameters": [
|
|
10644
|
+
{
|
|
10645
|
+
"name": "condition",
|
|
10646
|
+
"type": {
|
|
10647
|
+
"text": "true"
|
|
10648
|
+
}
|
|
10649
|
+
},
|
|
10650
|
+
{
|
|
10651
|
+
"name": "inner",
|
|
10652
|
+
"type": {
|
|
10653
|
+
"text": "() => TInner"
|
|
10654
|
+
}
|
|
10655
|
+
},
|
|
10656
|
+
{
|
|
10657
|
+
"name": "wrapper",
|
|
10658
|
+
"type": {
|
|
10659
|
+
"text": "(inner: TInner) => TWrapper"
|
|
10660
|
+
}
|
|
10661
|
+
}
|
|
10662
|
+
]
|
|
10663
|
+
},
|
|
10664
|
+
{
|
|
10665
|
+
"kind": "function",
|
|
10666
|
+
"name": "wrapIf",
|
|
10667
|
+
"return": {
|
|
10668
|
+
"type": {
|
|
10669
|
+
"text": "TInner | TWrapper"
|
|
10670
|
+
}
|
|
10671
|
+
},
|
|
10672
|
+
"parameters": [
|
|
10673
|
+
{
|
|
10674
|
+
"name": "condition",
|
|
10675
|
+
"type": {
|
|
10676
|
+
"text": "unknown"
|
|
10677
|
+
}
|
|
10678
|
+
},
|
|
10679
|
+
{
|
|
10680
|
+
"name": "inner",
|
|
10681
|
+
"type": {
|
|
10682
|
+
"text": "() => TInner"
|
|
10683
|
+
}
|
|
10684
|
+
},
|
|
10685
|
+
{
|
|
10686
|
+
"name": "wrapper",
|
|
10687
|
+
"type": {
|
|
10688
|
+
"text": "(inner: TInner) => TWrapper"
|
|
10689
|
+
}
|
|
10690
|
+
}
|
|
10691
|
+
]
|
|
10692
|
+
},
|
|
10693
|
+
{
|
|
10694
|
+
"kind": "function",
|
|
10695
|
+
"name": "wrapIf",
|
|
10696
|
+
"parameters": [
|
|
10697
|
+
{
|
|
10698
|
+
"name": "condition",
|
|
10699
|
+
"type": {
|
|
10700
|
+
"text": "any"
|
|
10701
|
+
}
|
|
10702
|
+
},
|
|
10703
|
+
{
|
|
10704
|
+
"name": "inner",
|
|
10705
|
+
"type": {
|
|
10706
|
+
"text": "() => TInner"
|
|
10707
|
+
}
|
|
10708
|
+
},
|
|
10709
|
+
{
|
|
10710
|
+
"name": "wrapper",
|
|
10711
|
+
"type": {
|
|
10712
|
+
"text": "(innards: TInner) => TWrapper"
|
|
10713
|
+
}
|
|
10714
|
+
}
|
|
10715
|
+
],
|
|
10716
|
+
"return": {
|
|
10717
|
+
"type": {
|
|
10718
|
+
"text": ""
|
|
10719
|
+
}
|
|
10720
|
+
}
|
|
10721
|
+
}
|
|
10722
|
+
],
|
|
10723
|
+
"exports": [
|
|
10724
|
+
{
|
|
10725
|
+
"kind": "js",
|
|
10726
|
+
"name": "wrapIf",
|
|
10727
|
+
"declaration": {
|
|
10728
|
+
"name": "wrapIf",
|
|
10729
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
10730
|
+
}
|
|
10731
|
+
},
|
|
10732
|
+
{
|
|
10733
|
+
"kind": "js",
|
|
10734
|
+
"name": "wrapIf",
|
|
10735
|
+
"declaration": {
|
|
10736
|
+
"name": "wrapIf",
|
|
10737
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
10738
|
+
}
|
|
10739
|
+
},
|
|
10740
|
+
{
|
|
10741
|
+
"kind": "js",
|
|
10742
|
+
"name": "wrapIf",
|
|
10743
|
+
"declaration": {
|
|
10744
|
+
"name": "wrapIf",
|
|
10745
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
10746
|
+
}
|
|
10747
|
+
},
|
|
10748
|
+
{
|
|
10749
|
+
"kind": "js",
|
|
10750
|
+
"name": "wrapIf",
|
|
10751
|
+
"declaration": {
|
|
10752
|
+
"name": "wrapIf",
|
|
10753
|
+
"module": "src/common/directives/wrapIf.ts"
|
|
10754
|
+
}
|
|
10755
|
+
}
|
|
10756
|
+
]
|
|
10757
|
+
},
|
|
10688
10758
|
{
|
|
10689
10759
|
"kind": "javascript-module",
|
|
10690
10760
|
"path": "src/common/mixins/DraftComponentMixin.ts",
|