@nordhealth/components 1.0.0-alpha.32 → 1.0.0-alpha.33
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 +1192 -111
- package/lib/Badge.js +1 -1
- package/lib/Badge.js.map +1 -1
- package/lib/Button.js +1 -1
- package/lib/Button.js.map +1 -1
- package/lib/Card.js +1 -1
- package/lib/Card.js.map +1 -1
- package/lib/CommandMenu.js +7 -0
- package/lib/CommandMenu.js.map +1 -0
- package/lib/CommandMenuAction-97598b47.js +7 -0
- package/lib/CommandMenuAction-97598b47.js.map +1 -0
- package/lib/CommandMenuAction.js +2 -0
- package/lib/CommandMenuAction.js.map +1 -0
- package/lib/DraftComponentMixin-4bb26f5d.js +44 -0
- package/lib/DraftComponentMixin-4bb26f5d.js.map +1 -0
- package/lib/FormAssociatedMixin-c9674b41.js +2 -0
- package/lib/FormAssociatedMixin-c9674b41.js.map +1 -0
- package/lib/ICommandMenuAction.js +2 -0
- package/lib/ICommandMenuAction.js.map +1 -0
- package/lib/Icon.js +2 -0
- package/lib/Icon.js.map +1 -0
- package/lib/Input.js +1 -1
- package/lib/Input.js.map +1 -1
- package/lib/InputMixin-6c108de4.js +2 -0
- package/lib/InputMixin-6c108de4.js.map +1 -0
- package/lib/KeyboardController-9a1b558b.js +2 -0
- package/lib/KeyboardController-9a1b558b.js.map +1 -0
- package/lib/KeyboardController.js +2 -0
- package/lib/KeyboardController.js.map +1 -0
- package/lib/Select.js +1 -1
- package/lib/Select.js.map +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Stack.js.map +1 -1
- package/lib/Table.js +1 -1
- package/lib/Table.js.map +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/VisuallyHidden.js.map +1 -1
- package/lib/collection.js +2 -0
- package/lib/collection.js.map +1 -0
- package/lib/directive-e9ce14b4.js +7 -0
- package/lib/directive-e9ce14b4.js.map +1 -0
- package/lib/events2.js +2 -0
- package/lib/events2.js.map +1 -0
- package/lib/focus.js +2 -0
- package/lib/focus.js.map +1 -0
- package/lib/if-defined-617ae549.js +7 -0
- package/lib/if-defined-617ae549.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/number.js +2 -0
- package/lib/number.js.map +1 -0
- package/lib/ref-65ef7607.js +17 -0
- package/lib/ref-65ef7607.js.map +1 -0
- package/lib/src/command-menu/CommandMenu.d.ts +76 -0
- package/lib/src/command-menu/CommandMenu.test.d.ts +1 -0
- package/lib/src/command-menu/CommandMenuAction.d.ts +25 -0
- package/lib/src/command-menu/ICommandMenuAction.d.ts +11 -0
- package/lib/src/command-menu/KeyboardController.d.ts +19 -0
- package/lib/src/command-menu/events.d.ts +6 -0
- package/lib/src/common/collection.d.ts +7 -0
- package/lib/src/common/controllers/LightDismissController.d.ts +10 -0
- package/lib/src/common/controllers/ShortcutController.d.ts +15 -0
- package/lib/src/common/focus.d.ts +4 -0
- package/lib/src/common/number.d.ts +5 -0
- package/lib/src/icon/Icon.d.ts +64 -0
- package/lib/src/icon/Icon.test.d.ts +1 -0
- package/lib/src/index.d.ts +8 -5
- package/lib/state-70f38ceb.js +7 -0
- package/lib/state-70f38ceb.js.map +1 -0
- package/lib/unsafe-html-21f62902.js +7 -0
- package/lib/unsafe-html-21f62902.js.map +1 -0
- package/package.json +34 -11
- package/lib/DraftComponentMixin-47a01537.js +0 -44
- package/lib/DraftComponentMixin-47a01537.js.map +0 -1
- package/lib/FormAssociatedMixin-887edc78.js +0 -7
- package/lib/FormAssociatedMixin-887edc78.js.map +0 -1
- package/lib/InputMixin-03841680.js +0 -27
- package/lib/InputMixin-03841680.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
"exports": [
|
|
10
10
|
{
|
|
11
11
|
"kind": "js",
|
|
12
|
-
"name": "
|
|
12
|
+
"name": "Badge",
|
|
13
13
|
"declaration": {
|
|
14
14
|
"name": "default",
|
|
15
|
-
"module": "\"./
|
|
15
|
+
"module": "\"./badge/Badge.js\""
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
{
|
|
@@ -25,50 +25,74 @@
|
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
"kind": "js",
|
|
28
|
-
"name": "
|
|
28
|
+
"name": "Card",
|
|
29
29
|
"declaration": {
|
|
30
30
|
"name": "default",
|
|
31
|
-
"module": "\"./
|
|
31
|
+
"module": "\"./card/Card.js\""
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
"kind": "js",
|
|
36
|
-
"name": "
|
|
36
|
+
"name": "Input",
|
|
37
37
|
"declaration": {
|
|
38
38
|
"name": "default",
|
|
39
|
-
"module": "\"./
|
|
39
|
+
"module": "\"./input/Input.js\""
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"kind": "js",
|
|
44
|
-
"name": "
|
|
44
|
+
"name": "Icon",
|
|
45
45
|
"declaration": {
|
|
46
46
|
"name": "default",
|
|
47
|
-
"module": "\"./
|
|
47
|
+
"module": "\"./icon/Icon.js\""
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"kind": "js",
|
|
52
|
-
"name": "
|
|
52
|
+
"name": "CommandMenu",
|
|
53
53
|
"declaration": {
|
|
54
54
|
"name": "default",
|
|
55
|
-
"module": "\"./
|
|
55
|
+
"module": "\"./command-menu/CommandMenu.js\""
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
"kind": "js",
|
|
60
|
-
"name": "
|
|
60
|
+
"name": "CommandMenuAction",
|
|
61
61
|
"declaration": {
|
|
62
62
|
"name": "default",
|
|
63
|
-
"module": "\"./
|
|
63
|
+
"module": "\"./command-menu/CommandMenuAction.js\""
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
"kind": "js",
|
|
68
|
-
"name": "
|
|
68
|
+
"name": "Select",
|
|
69
69
|
"declaration": {
|
|
70
70
|
"name": "default",
|
|
71
|
-
"module": "\"./
|
|
71
|
+
"module": "\"./select/Select.js\""
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"kind": "js",
|
|
76
|
+
"name": "Stack",
|
|
77
|
+
"declaration": {
|
|
78
|
+
"name": "default",
|
|
79
|
+
"module": "\"./stack/Stack.js\""
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"kind": "js",
|
|
84
|
+
"name": "Table",
|
|
85
|
+
"declaration": {
|
|
86
|
+
"name": "default",
|
|
87
|
+
"module": "\"./table/Table.js\""
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"kind": "js",
|
|
92
|
+
"name": "VisuallyHidden",
|
|
93
|
+
"declaration": {
|
|
94
|
+
"name": "default",
|
|
95
|
+
"module": "\"./visually-hidden/VisuallyHidden.js\""
|
|
72
96
|
}
|
|
73
97
|
}
|
|
74
98
|
]
|
|
@@ -547,47 +571,997 @@
|
|
|
547
571
|
"name": "Card",
|
|
548
572
|
"slots": [
|
|
549
573
|
{
|
|
550
|
-
"description": "The card content.",
|
|
551
|
-
"name": ""
|
|
574
|
+
"description": "The card content.",
|
|
575
|
+
"name": ""
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"description": "Optional slot that holds a header for the card.",
|
|
579
|
+
"name": "header"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
583
|
+
"name": "footer"
|
|
584
|
+
}
|
|
585
|
+
],
|
|
586
|
+
"members": [
|
|
587
|
+
{
|
|
588
|
+
"kind": "field",
|
|
589
|
+
"name": "padding",
|
|
590
|
+
"type": {
|
|
591
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
592
|
+
},
|
|
593
|
+
"default": "\"m\"",
|
|
594
|
+
"description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
|
|
595
|
+
"attribute": "padding",
|
|
596
|
+
"reflects": true
|
|
597
|
+
},
|
|
598
|
+
{
|
|
599
|
+
"kind": "method",
|
|
600
|
+
"name": "handleSlotChange",
|
|
601
|
+
"privacy": "private"
|
|
602
|
+
},
|
|
603
|
+
{
|
|
604
|
+
"kind": "method",
|
|
605
|
+
"name": "hasSlottedContent",
|
|
606
|
+
"privacy": "private",
|
|
607
|
+
"parameters": [
|
|
608
|
+
{
|
|
609
|
+
"name": "slotName",
|
|
610
|
+
"type": {
|
|
611
|
+
"text": "string"
|
|
612
|
+
}
|
|
613
|
+
}
|
|
614
|
+
]
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
"kind": "field",
|
|
618
|
+
"name": "_warningLogged",
|
|
619
|
+
"type": {
|
|
620
|
+
"text": "boolean"
|
|
621
|
+
},
|
|
622
|
+
"privacy": "private",
|
|
623
|
+
"static": true,
|
|
624
|
+
"default": "false",
|
|
625
|
+
"inheritedFrom": {
|
|
626
|
+
"name": "DraftComponentMixin",
|
|
627
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
],
|
|
631
|
+
"attributes": [
|
|
632
|
+
{
|
|
633
|
+
"name": "padding",
|
|
634
|
+
"type": {
|
|
635
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
636
|
+
},
|
|
637
|
+
"default": "\"m\"",
|
|
638
|
+
"description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
|
|
639
|
+
"fieldName": "padding"
|
|
640
|
+
}
|
|
641
|
+
],
|
|
642
|
+
"mixins": [
|
|
643
|
+
{
|
|
644
|
+
"name": "DraftComponentMixin",
|
|
645
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
646
|
+
}
|
|
647
|
+
],
|
|
648
|
+
"superclass": {
|
|
649
|
+
"name": "LitElement",
|
|
650
|
+
"package": "lit"
|
|
651
|
+
},
|
|
652
|
+
"status": "draft",
|
|
653
|
+
"category": "structure",
|
|
654
|
+
"tagName": "nord-card",
|
|
655
|
+
"customElement": true
|
|
656
|
+
}
|
|
657
|
+
],
|
|
658
|
+
"exports": [
|
|
659
|
+
{
|
|
660
|
+
"kind": "js",
|
|
661
|
+
"name": "default",
|
|
662
|
+
"declaration": {
|
|
663
|
+
"name": "Card",
|
|
664
|
+
"module": "src/card/Card.ts"
|
|
665
|
+
}
|
|
666
|
+
},
|
|
667
|
+
{
|
|
668
|
+
"kind": "custom-element-definition",
|
|
669
|
+
"name": "nord-card",
|
|
670
|
+
"declaration": {
|
|
671
|
+
"name": "Card",
|
|
672
|
+
"module": "src/card/Card.ts"
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
]
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"kind": "javascript-module",
|
|
679
|
+
"path": "src/common/collection.ts",
|
|
680
|
+
"declarations": [
|
|
681
|
+
{
|
|
682
|
+
"kind": "function",
|
|
683
|
+
"name": "groupBy",
|
|
684
|
+
"parameters": [
|
|
685
|
+
{
|
|
686
|
+
"name": "array",
|
|
687
|
+
"type": {
|
|
688
|
+
"text": "Array<TObject>"
|
|
689
|
+
},
|
|
690
|
+
"description": "the collection of objects to group"
|
|
691
|
+
},
|
|
692
|
+
{
|
|
693
|
+
"name": "key",
|
|
694
|
+
"type": {
|
|
695
|
+
"text": "TKey"
|
|
696
|
+
},
|
|
697
|
+
"description": "the property to group by"
|
|
698
|
+
}
|
|
699
|
+
],
|
|
700
|
+
"description": "Groups an array objects by property value",
|
|
701
|
+
"return": {
|
|
702
|
+
"type": {
|
|
703
|
+
"text": ""
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
],
|
|
708
|
+
"exports": [
|
|
709
|
+
{
|
|
710
|
+
"kind": "js",
|
|
711
|
+
"name": "groupBy",
|
|
712
|
+
"declaration": {
|
|
713
|
+
"name": "groupBy",
|
|
714
|
+
"module": "src/common/collection.ts"
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
]
|
|
718
|
+
},
|
|
719
|
+
{
|
|
720
|
+
"kind": "javascript-module",
|
|
721
|
+
"path": "src/common/events.ts",
|
|
722
|
+
"declarations": [
|
|
723
|
+
{
|
|
724
|
+
"kind": "class",
|
|
725
|
+
"description": "A base class for events which defaults to bubbling and composed",
|
|
726
|
+
"name": "NordEvent",
|
|
727
|
+
"superclass": {
|
|
728
|
+
"name": "Event",
|
|
729
|
+
"module": "src/common/events.ts"
|
|
730
|
+
},
|
|
731
|
+
"status": null,
|
|
732
|
+
"category": null
|
|
733
|
+
}
|
|
734
|
+
],
|
|
735
|
+
"exports": [
|
|
736
|
+
{
|
|
737
|
+
"kind": "js",
|
|
738
|
+
"name": "NordEvent",
|
|
739
|
+
"declaration": {
|
|
740
|
+
"name": "NordEvent",
|
|
741
|
+
"module": "src/common/events.ts"
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
]
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
"kind": "javascript-module",
|
|
748
|
+
"path": "src/common/focus.ts",
|
|
749
|
+
"declarations": [
|
|
750
|
+
{
|
|
751
|
+
"kind": "function",
|
|
752
|
+
"name": "getFocusedElement",
|
|
753
|
+
"return": {
|
|
754
|
+
"type": {
|
|
755
|
+
"text": "Element | undefined"
|
|
756
|
+
}
|
|
757
|
+
},
|
|
758
|
+
"parameters": [
|
|
759
|
+
{
|
|
760
|
+
"name": "root",
|
|
761
|
+
"type": {
|
|
762
|
+
"text": "Document | ShadowRoot"
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
],
|
|
766
|
+
"description": "Gets the currently focused element, taking shadow roots into account."
|
|
767
|
+
}
|
|
768
|
+
],
|
|
769
|
+
"exports": [
|
|
770
|
+
{
|
|
771
|
+
"kind": "js",
|
|
772
|
+
"name": "getFocusedElement",
|
|
773
|
+
"declaration": {
|
|
774
|
+
"name": "getFocusedElement",
|
|
775
|
+
"module": "src/common/focus.ts"
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
]
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"kind": "javascript-module",
|
|
782
|
+
"path": "src/common/number.ts",
|
|
783
|
+
"declarations": [
|
|
784
|
+
{
|
|
785
|
+
"kind": "function",
|
|
786
|
+
"name": "wrap",
|
|
787
|
+
"parameters": [
|
|
788
|
+
{
|
|
789
|
+
"name": "val",
|
|
790
|
+
"type": {
|
|
791
|
+
"text": "number"
|
|
792
|
+
}
|
|
793
|
+
},
|
|
794
|
+
{
|
|
795
|
+
"name": "min",
|
|
796
|
+
"type": {
|
|
797
|
+
"text": "number"
|
|
798
|
+
}
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"name": "max",
|
|
802
|
+
"type": {
|
|
803
|
+
"text": "number"
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
],
|
|
807
|
+
"description": "Wraps a value so that it always falls within min/max,\nwhere a value greater than max gets set to min, and vice versa"
|
|
808
|
+
}
|
|
809
|
+
],
|
|
810
|
+
"exports": [
|
|
811
|
+
{
|
|
812
|
+
"kind": "js",
|
|
813
|
+
"name": "wrap",
|
|
814
|
+
"declaration": {
|
|
815
|
+
"name": "wrap",
|
|
816
|
+
"module": "src/common/number.ts"
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
]
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"kind": "javascript-module",
|
|
823
|
+
"path": "src/common/ref.ts",
|
|
824
|
+
"declarations": [
|
|
825
|
+
{
|
|
826
|
+
"kind": "function",
|
|
827
|
+
"name": "mergeRefs",
|
|
828
|
+
"return": {
|
|
829
|
+
"type": {
|
|
830
|
+
"text": "RefCallback"
|
|
831
|
+
}
|
|
832
|
+
},
|
|
833
|
+
"parameters": [
|
|
834
|
+
{
|
|
835
|
+
"name": "refs",
|
|
836
|
+
"type": {
|
|
837
|
+
"text": "Ref[]"
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
],
|
|
841
|
+
"description": "Creates a ref callback which will assign the element to every given ref"
|
|
842
|
+
}
|
|
843
|
+
],
|
|
844
|
+
"exports": [
|
|
845
|
+
{
|
|
846
|
+
"kind": "js",
|
|
847
|
+
"name": "mergeRefs",
|
|
848
|
+
"declaration": {
|
|
849
|
+
"name": "mergeRefs",
|
|
850
|
+
"module": "src/common/ref.ts"
|
|
851
|
+
}
|
|
852
|
+
}
|
|
853
|
+
]
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"kind": "javascript-module",
|
|
857
|
+
"path": "src/command-menu/CommandMenu.ts",
|
|
858
|
+
"declarations": [
|
|
859
|
+
{
|
|
860
|
+
"kind": "class",
|
|
861
|
+
"description": "Command Menu allows users to navigate and use an app without touching the mouse and helps them transform into “power users” who can harness more advanced features far faster.",
|
|
862
|
+
"name": "CommandMenu",
|
|
863
|
+
"slots": [
|
|
864
|
+
{
|
|
865
|
+
"description": "Used to replace the default footer contents.",
|
|
866
|
+
"name": "footer"
|
|
867
|
+
}
|
|
868
|
+
],
|
|
869
|
+
"members": [
|
|
870
|
+
{
|
|
871
|
+
"kind": "field",
|
|
872
|
+
"name": "inputRef",
|
|
873
|
+
"privacy": "private"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"kind": "field",
|
|
877
|
+
"name": "previousFocus",
|
|
878
|
+
"type": {
|
|
879
|
+
"text": "HTMLElement | undefined"
|
|
880
|
+
},
|
|
881
|
+
"privacy": "private"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"kind": "field",
|
|
885
|
+
"name": "dismissController",
|
|
886
|
+
"privacy": "private",
|
|
887
|
+
"default": "new LightDismissController(this, () => this.close())"
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
"kind": "field",
|
|
891
|
+
"name": "keyboardController",
|
|
892
|
+
"privacy": "private",
|
|
893
|
+
"default": "new KeyboardController(this, {\n trigger: () => this.select(),\n goBack: () => this.goBack(),\n end: () => this.end(),\n start: () => this.start(),\n next: () => this.next(),\n previous: () => this.previous(),\n toggleOpen: () => this.toggleOpen(),\n })"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"kind": "field",
|
|
897
|
+
"name": "open",
|
|
898
|
+
"type": {
|
|
899
|
+
"text": "boolean"
|
|
900
|
+
},
|
|
901
|
+
"default": "false",
|
|
902
|
+
"description": "Show or hide element.",
|
|
903
|
+
"attribute": "open"
|
|
904
|
+
},
|
|
905
|
+
{
|
|
906
|
+
"kind": "field",
|
|
907
|
+
"name": "placeholder",
|
|
908
|
+
"type": {
|
|
909
|
+
"text": "string"
|
|
910
|
+
},
|
|
911
|
+
"default": "\"Type a command or search...\"",
|
|
912
|
+
"description": "Hint text to display in the search field.",
|
|
913
|
+
"attribute": "placeholder"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"kind": "field",
|
|
917
|
+
"name": "commands",
|
|
918
|
+
"type": {
|
|
919
|
+
"text": "Array<ICommandMenuAction>"
|
|
920
|
+
},
|
|
921
|
+
"default": "[]",
|
|
922
|
+
"description": "Array of commands to be included in the menu.",
|
|
923
|
+
"attribute": "commands"
|
|
924
|
+
},
|
|
925
|
+
{
|
|
926
|
+
"kind": "field",
|
|
927
|
+
"name": "parent",
|
|
928
|
+
"type": {
|
|
929
|
+
"text": "string | undefined"
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
{
|
|
933
|
+
"kind": "field",
|
|
934
|
+
"name": "search",
|
|
935
|
+
"type": {
|
|
936
|
+
"text": "string"
|
|
937
|
+
},
|
|
938
|
+
"default": "\"\""
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
"kind": "field",
|
|
942
|
+
"name": "bump",
|
|
943
|
+
"type": {
|
|
944
|
+
"text": "boolean"
|
|
945
|
+
},
|
|
946
|
+
"privacy": "private",
|
|
947
|
+
"default": "true"
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"kind": "field",
|
|
951
|
+
"name": "selectedIndex",
|
|
952
|
+
"type": {
|
|
953
|
+
"text": "number"
|
|
954
|
+
},
|
|
955
|
+
"privacy": "private",
|
|
956
|
+
"default": "0"
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
"kind": "field",
|
|
960
|
+
"name": "filteredCommands",
|
|
961
|
+
"type": {
|
|
962
|
+
"text": "Array<ICommandMenuAction>"
|
|
963
|
+
},
|
|
964
|
+
"privacy": "private",
|
|
965
|
+
"default": "[]"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"kind": "field",
|
|
969
|
+
"name": "selected",
|
|
970
|
+
"type": {
|
|
971
|
+
"text": "ICommandMenuAction"
|
|
972
|
+
},
|
|
973
|
+
"privacy": "private"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"kind": "method",
|
|
977
|
+
"name": "show",
|
|
978
|
+
"parameters": [
|
|
979
|
+
{
|
|
980
|
+
"name": "options",
|
|
981
|
+
"default": "{}",
|
|
982
|
+
"type": {
|
|
983
|
+
"text": "{ parent?: string }"
|
|
984
|
+
}
|
|
985
|
+
}
|
|
986
|
+
],
|
|
987
|
+
"description": "Show the command menu programmatically."
|
|
988
|
+
},
|
|
989
|
+
{
|
|
990
|
+
"kind": "method",
|
|
991
|
+
"name": "close",
|
|
992
|
+
"description": "Close the command menu programmatically."
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"kind": "method",
|
|
996
|
+
"name": "toggleOpen",
|
|
997
|
+
"description": "Toggle the open state programmatically."
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"kind": "method",
|
|
1001
|
+
"name": "focus",
|
|
1002
|
+
"description": "Focus the command menu's input."
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"kind": "method",
|
|
1006
|
+
"name": "renderSection",
|
|
1007
|
+
"privacy": "private",
|
|
1008
|
+
"parameters": [
|
|
1009
|
+
{
|
|
1010
|
+
"name": "section",
|
|
1011
|
+
"type": {
|
|
1012
|
+
"text": "string | undefined"
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"name": "commands",
|
|
1017
|
+
"type": {
|
|
1018
|
+
"text": "ICommandMenuAction[]"
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
]
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"kind": "method",
|
|
1025
|
+
"name": "handleAnimationEnd",
|
|
1026
|
+
"privacy": "private"
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"kind": "method",
|
|
1030
|
+
"name": "handleInput",
|
|
1031
|
+
"privacy": "private",
|
|
1032
|
+
"parameters": [
|
|
1033
|
+
{
|
|
1034
|
+
"name": "event",
|
|
1035
|
+
"type": {
|
|
1036
|
+
"text": "KeyboardEvent"
|
|
1037
|
+
}
|
|
1038
|
+
}
|
|
1039
|
+
]
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
"kind": "method",
|
|
1043
|
+
"name": "select",
|
|
1044
|
+
"privacy": "private",
|
|
1045
|
+
"parameters": [
|
|
1046
|
+
{
|
|
1047
|
+
"name": "command",
|
|
1048
|
+
"default": "this.selected",
|
|
1049
|
+
"type": {
|
|
1050
|
+
"text": "ICommandMenuAction"
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
]
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"kind": "method",
|
|
1057
|
+
"name": "start",
|
|
1058
|
+
"privacy": "private"
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"kind": "method",
|
|
1062
|
+
"name": "end",
|
|
1063
|
+
"privacy": "private"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"kind": "method",
|
|
1067
|
+
"name": "next",
|
|
1068
|
+
"privacy": "private"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"kind": "method",
|
|
1072
|
+
"name": "previous",
|
|
1073
|
+
"privacy": "private"
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"kind": "method",
|
|
1077
|
+
"name": "goBack",
|
|
1078
|
+
"privacy": "private"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"kind": "method",
|
|
1082
|
+
"name": "setParent",
|
|
1083
|
+
"privacy": "private",
|
|
1084
|
+
"parameters": [
|
|
1085
|
+
{
|
|
1086
|
+
"name": "parent",
|
|
1087
|
+
"optional": true,
|
|
1088
|
+
"type": {
|
|
1089
|
+
"text": "string"
|
|
1090
|
+
}
|
|
1091
|
+
}
|
|
1092
|
+
]
|
|
1093
|
+
},
|
|
1094
|
+
{
|
|
1095
|
+
"kind": "method",
|
|
1096
|
+
"name": "setSearch",
|
|
1097
|
+
"privacy": "private",
|
|
1098
|
+
"parameters": [
|
|
1099
|
+
{
|
|
1100
|
+
"name": "str",
|
|
1101
|
+
"type": {
|
|
1102
|
+
"text": "string"
|
|
1103
|
+
}
|
|
1104
|
+
}
|
|
1105
|
+
]
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"kind": "method",
|
|
1109
|
+
"name": "filterCommands",
|
|
1110
|
+
"privacy": "private"
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"kind": "field",
|
|
1114
|
+
"name": "_warningLogged",
|
|
1115
|
+
"type": {
|
|
1116
|
+
"text": "boolean"
|
|
1117
|
+
},
|
|
1118
|
+
"privacy": "private",
|
|
1119
|
+
"static": true,
|
|
1120
|
+
"default": "false",
|
|
1121
|
+
"inheritedFrom": {
|
|
1122
|
+
"name": "DraftComponentMixin",
|
|
1123
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1124
|
+
}
|
|
1125
|
+
}
|
|
1126
|
+
],
|
|
1127
|
+
"events": [
|
|
1128
|
+
{
|
|
1129
|
+
"name": "open",
|
|
1130
|
+
"type": {
|
|
1131
|
+
"text": "NordEvent"
|
|
1132
|
+
},
|
|
1133
|
+
"description": "The command menu was opened."
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"name": "close",
|
|
1137
|
+
"type": {
|
|
1138
|
+
"text": "NordEvent"
|
|
1139
|
+
},
|
|
1140
|
+
"description": "The command menu was closed."
|
|
1141
|
+
},
|
|
1142
|
+
{
|
|
1143
|
+
"name": "command",
|
|
1144
|
+
"type": {
|
|
1145
|
+
"text": "SelectEvent"
|
|
1146
|
+
},
|
|
1147
|
+
"description": "User selected a command from the menu."
|
|
1148
|
+
}
|
|
1149
|
+
],
|
|
1150
|
+
"attributes": [
|
|
1151
|
+
{
|
|
1152
|
+
"name": "open",
|
|
1153
|
+
"type": {
|
|
1154
|
+
"text": "boolean"
|
|
1155
|
+
},
|
|
1156
|
+
"default": "false",
|
|
1157
|
+
"description": "Show or hide element.",
|
|
1158
|
+
"fieldName": "open"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"name": "placeholder",
|
|
1162
|
+
"type": {
|
|
1163
|
+
"text": "string"
|
|
1164
|
+
},
|
|
1165
|
+
"default": "\"Type a command or search...\"",
|
|
1166
|
+
"description": "Hint text to display in the search field.",
|
|
1167
|
+
"fieldName": "placeholder"
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
"name": "commands",
|
|
1171
|
+
"type": {
|
|
1172
|
+
"text": "Array<ICommandMenuAction>"
|
|
1173
|
+
},
|
|
1174
|
+
"default": "[]",
|
|
1175
|
+
"description": "Array of commands to be included in the menu.",
|
|
1176
|
+
"fieldName": "commands"
|
|
1177
|
+
}
|
|
1178
|
+
],
|
|
1179
|
+
"mixins": [
|
|
1180
|
+
{
|
|
1181
|
+
"name": "DraftComponentMixin",
|
|
1182
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
1183
|
+
}
|
|
1184
|
+
],
|
|
1185
|
+
"superclass": {
|
|
1186
|
+
"name": "LitElement",
|
|
1187
|
+
"package": "lit"
|
|
1188
|
+
},
|
|
1189
|
+
"status": "draft",
|
|
1190
|
+
"category": "action",
|
|
1191
|
+
"tagName": "nord-command-menu",
|
|
1192
|
+
"customElement": true
|
|
1193
|
+
}
|
|
1194
|
+
],
|
|
1195
|
+
"exports": [
|
|
1196
|
+
{
|
|
1197
|
+
"kind": "js",
|
|
1198
|
+
"name": "default",
|
|
1199
|
+
"declaration": {
|
|
1200
|
+
"name": "CommandMenu",
|
|
1201
|
+
"module": "src/command-menu/CommandMenu.ts"
|
|
1202
|
+
}
|
|
1203
|
+
},
|
|
1204
|
+
{
|
|
1205
|
+
"kind": "custom-element-definition",
|
|
1206
|
+
"name": "nord-command-menu",
|
|
1207
|
+
"declaration": {
|
|
1208
|
+
"name": "CommandMenu",
|
|
1209
|
+
"module": "src/command-menu/CommandMenu.ts"
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
]
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
"kind": "javascript-module",
|
|
1216
|
+
"path": "src/command-menu/CommandMenuAction.ts",
|
|
1217
|
+
"declarations": [
|
|
1218
|
+
{
|
|
1219
|
+
"kind": "class",
|
|
1220
|
+
"description": "Command Menu Action displays a single action that can be executed by the user. For usage examples, please see Command Menu component.",
|
|
1221
|
+
"name": "CommandMenuAction",
|
|
1222
|
+
"members": [
|
|
1223
|
+
{
|
|
1224
|
+
"kind": "field",
|
|
1225
|
+
"name": "command",
|
|
1226
|
+
"type": {
|
|
1227
|
+
"text": "ICommandMenuAction"
|
|
1228
|
+
},
|
|
1229
|
+
"attribute": "command"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"kind": "field",
|
|
1233
|
+
"name": "selected",
|
|
1234
|
+
"type": {
|
|
1235
|
+
"text": "boolean"
|
|
1236
|
+
},
|
|
1237
|
+
"default": "false",
|
|
1238
|
+
"attribute": "selected"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"kind": "method",
|
|
1242
|
+
"name": "ensureInView",
|
|
1243
|
+
"privacy": "private",
|
|
1244
|
+
"description": "Scroll to show element"
|
|
1245
|
+
},
|
|
1246
|
+
{
|
|
1247
|
+
"kind": "method",
|
|
1248
|
+
"name": "renderShortcut",
|
|
1249
|
+
"privacy": "private"
|
|
1250
|
+
}
|
|
1251
|
+
],
|
|
1252
|
+
"attributes": [
|
|
1253
|
+
{
|
|
1254
|
+
"name": "command",
|
|
1255
|
+
"type": {
|
|
1256
|
+
"text": "ICommandMenuAction"
|
|
1257
|
+
},
|
|
1258
|
+
"fieldName": "command"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"name": "selected",
|
|
1262
|
+
"type": {
|
|
1263
|
+
"text": "boolean"
|
|
1264
|
+
},
|
|
1265
|
+
"default": "false",
|
|
1266
|
+
"fieldName": "selected"
|
|
1267
|
+
}
|
|
1268
|
+
],
|
|
1269
|
+
"superclass": {
|
|
1270
|
+
"name": "LitElement",
|
|
1271
|
+
"package": "lit"
|
|
1272
|
+
},
|
|
1273
|
+
"status": "internal",
|
|
1274
|
+
"category": null,
|
|
1275
|
+
"tagName": "nord-command-menu-action",
|
|
1276
|
+
"customElement": true
|
|
1277
|
+
}
|
|
1278
|
+
],
|
|
1279
|
+
"exports": [
|
|
1280
|
+
{
|
|
1281
|
+
"kind": "js",
|
|
1282
|
+
"name": "default",
|
|
1283
|
+
"declaration": {
|
|
1284
|
+
"name": "CommandMenuAction",
|
|
1285
|
+
"module": "src/command-menu/CommandMenuAction.ts"
|
|
1286
|
+
}
|
|
1287
|
+
},
|
|
1288
|
+
{
|
|
1289
|
+
"kind": "custom-element-definition",
|
|
1290
|
+
"name": "nord-command-menu-action",
|
|
1291
|
+
"declaration": {
|
|
1292
|
+
"name": "CommandMenuAction",
|
|
1293
|
+
"module": "src/command-menu/CommandMenuAction.ts"
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
]
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
"kind": "javascript-module",
|
|
1300
|
+
"path": "src/command-menu/ICommandMenuAction.ts",
|
|
1301
|
+
"declarations": [],
|
|
1302
|
+
"exports": []
|
|
1303
|
+
},
|
|
1304
|
+
{
|
|
1305
|
+
"kind": "javascript-module",
|
|
1306
|
+
"path": "src/command-menu/KeyboardController.ts",
|
|
1307
|
+
"declarations": [
|
|
1308
|
+
{
|
|
1309
|
+
"kind": "class",
|
|
1310
|
+
"description": "",
|
|
1311
|
+
"name": "KeyboardController",
|
|
1312
|
+
"members": [
|
|
1313
|
+
{
|
|
1314
|
+
"kind": "field",
|
|
1315
|
+
"name": "host",
|
|
1316
|
+
"type": {
|
|
1317
|
+
"text": "CommandMenu"
|
|
1318
|
+
},
|
|
1319
|
+
"privacy": "private",
|
|
1320
|
+
"default": "host"
|
|
1321
|
+
},
|
|
1322
|
+
{
|
|
1323
|
+
"kind": "field",
|
|
1324
|
+
"name": "globalShortcuts",
|
|
1325
|
+
"type": {
|
|
1326
|
+
"text": "ShortcutController"
|
|
1327
|
+
},
|
|
1328
|
+
"privacy": "private",
|
|
1329
|
+
"default": "new ShortcutController(host, { \"$mod+k\": actions.toggleOpen })"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"kind": "field",
|
|
1333
|
+
"name": "navigationShortcuts",
|
|
1334
|
+
"type": {
|
|
1335
|
+
"text": "ShortcutController"
|
|
1336
|
+
},
|
|
1337
|
+
"privacy": "private",
|
|
1338
|
+
"default": "new ShortcutController(\n host,\n {\n Enter: preventDefault(actions.trigger),\n Backspace: actions.goBack, // we don't want to prevent default, since that would stop backspace deleting chars\n End: preventDefault(actions.end),\n Home: preventDefault(actions.start),\n ArrowDown: preventDefault(actions.next),\n ArrowUp: preventDefault(actions.previous),\n },\n host\n )"
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"kind": "field",
|
|
1342
|
+
"name": "commandShortcuts",
|
|
1343
|
+
"type": {
|
|
1344
|
+
"text": "ShortcutController"
|
|
1345
|
+
},
|
|
1346
|
+
"privacy": "private",
|
|
1347
|
+
"default": "new ShortcutController(host)"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
"kind": "method",
|
|
1351
|
+
"name": "registerCommandShortcuts"
|
|
1352
|
+
}
|
|
1353
|
+
]
|
|
1354
|
+
}
|
|
1355
|
+
],
|
|
1356
|
+
"exports": [
|
|
1357
|
+
{
|
|
1358
|
+
"kind": "js",
|
|
1359
|
+
"name": "KeyboardController",
|
|
1360
|
+
"declaration": {
|
|
1361
|
+
"name": "KeyboardController",
|
|
1362
|
+
"module": "src/command-menu/KeyboardController.ts"
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
]
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"kind": "javascript-module",
|
|
1369
|
+
"path": "src/command-menu/events.ts",
|
|
1370
|
+
"declarations": [
|
|
1371
|
+
{
|
|
1372
|
+
"kind": "class",
|
|
1373
|
+
"description": "",
|
|
1374
|
+
"name": "SelectEvent",
|
|
1375
|
+
"members": [
|
|
1376
|
+
{
|
|
1377
|
+
"kind": "field",
|
|
1378
|
+
"name": "command",
|
|
1379
|
+
"type": {
|
|
1380
|
+
"text": "ICommandMenuAction"
|
|
1381
|
+
},
|
|
1382
|
+
"default": "command"
|
|
1383
|
+
}
|
|
1384
|
+
],
|
|
1385
|
+
"superclass": {
|
|
1386
|
+
"name": "NordEvent",
|
|
1387
|
+
"module": "/src/common/events.js"
|
|
1388
|
+
}
|
|
1389
|
+
}
|
|
1390
|
+
],
|
|
1391
|
+
"exports": [
|
|
1392
|
+
{
|
|
1393
|
+
"kind": "js",
|
|
1394
|
+
"name": "SelectEvent",
|
|
1395
|
+
"declaration": {
|
|
1396
|
+
"name": "SelectEvent",
|
|
1397
|
+
"module": "src/command-menu/events.ts"
|
|
1398
|
+
}
|
|
1399
|
+
}
|
|
1400
|
+
]
|
|
1401
|
+
},
|
|
1402
|
+
{
|
|
1403
|
+
"kind": "javascript-module",
|
|
1404
|
+
"path": "src/icon/Icon.ts",
|
|
1405
|
+
"declarations": [
|
|
1406
|
+
{
|
|
1407
|
+
"kind": "class",
|
|
1408
|
+
"description": "Icons are used to provide additional meaning or in places where text label doesn’t fit.\nIcon component allows you to display an icon from the Nordicons library.",
|
|
1409
|
+
"name": "Icon",
|
|
1410
|
+
"members": [
|
|
1411
|
+
{
|
|
1412
|
+
"kind": "field",
|
|
1413
|
+
"name": "resolver",
|
|
1414
|
+
"type": {
|
|
1415
|
+
"text": "IconResolver"
|
|
1416
|
+
},
|
|
1417
|
+
"privacy": "private",
|
|
1418
|
+
"static": true
|
|
1419
|
+
},
|
|
1420
|
+
{
|
|
1421
|
+
"kind": "field",
|
|
1422
|
+
"name": "registeredIcons",
|
|
1423
|
+
"privacy": "private",
|
|
1424
|
+
"static": true,
|
|
1425
|
+
"default": "new Map<string, string>()"
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
"kind": "method",
|
|
1429
|
+
"name": "registerResolver",
|
|
1430
|
+
"static": true,
|
|
1431
|
+
"parameters": [
|
|
1432
|
+
{
|
|
1433
|
+
"name": "resolver",
|
|
1434
|
+
"type": {
|
|
1435
|
+
"text": "IconResolver"
|
|
1436
|
+
},
|
|
1437
|
+
"description": "The resolver function to register."
|
|
1438
|
+
}
|
|
1439
|
+
],
|
|
1440
|
+
"description": "Register a custom icon resolver, which accepts the icon name as an parameter, and returns an SVG string.\nCan return a string synchronously, or a promise of a string.\nBy default, will load icons from the Nord CDN."
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
"kind": "method",
|
|
1444
|
+
"name": "registerIcon",
|
|
1445
|
+
"static": true,
|
|
1446
|
+
"return": {
|
|
1447
|
+
"type": {
|
|
1448
|
+
"text": "void"
|
|
1449
|
+
}
|
|
1450
|
+
},
|
|
1451
|
+
"parameters": [
|
|
1452
|
+
{
|
|
1453
|
+
"name": "icon",
|
|
1454
|
+
"type": {
|
|
1455
|
+
"text": "{ title: string; default: string }"
|
|
1456
|
+
}
|
|
1457
|
+
}
|
|
1458
|
+
],
|
|
1459
|
+
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
1460
|
+
},
|
|
1461
|
+
{
|
|
1462
|
+
"kind": "method",
|
|
1463
|
+
"name": "registerIcon",
|
|
1464
|
+
"static": true,
|
|
1465
|
+
"return": {
|
|
1466
|
+
"type": {
|
|
1467
|
+
"text": "void"
|
|
1468
|
+
}
|
|
1469
|
+
},
|
|
1470
|
+
"parameters": [
|
|
1471
|
+
{
|
|
1472
|
+
"name": "name",
|
|
1473
|
+
"type": {
|
|
1474
|
+
"text": "string"
|
|
1475
|
+
}
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"name": "icon",
|
|
1479
|
+
"type": {
|
|
1480
|
+
"text": "string"
|
|
1481
|
+
}
|
|
1482
|
+
}
|
|
1483
|
+
],
|
|
1484
|
+
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
"kind": "method",
|
|
1488
|
+
"name": "registerIcon",
|
|
1489
|
+
"static": true,
|
|
1490
|
+
"parameters": [
|
|
1491
|
+
{
|
|
1492
|
+
"name": "iconOrName",
|
|
1493
|
+
"type": {
|
|
1494
|
+
"text": "string | { title: string; default: string }"
|
|
1495
|
+
}
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
"name": "icon",
|
|
1499
|
+
"optional": true,
|
|
1500
|
+
"type": {
|
|
1501
|
+
"text": "string"
|
|
1502
|
+
}
|
|
1503
|
+
}
|
|
1504
|
+
]
|
|
1505
|
+
},
|
|
1506
|
+
{
|
|
1507
|
+
"kind": "field",
|
|
1508
|
+
"name": "name",
|
|
1509
|
+
"type": {
|
|
1510
|
+
"text": "string"
|
|
1511
|
+
},
|
|
1512
|
+
"default": "\"\"",
|
|
1513
|
+
"description": "The name of the icon to display, as defined by nordicons.",
|
|
1514
|
+
"attribute": "name",
|
|
1515
|
+
"reflects": true
|
|
552
1516
|
},
|
|
553
1517
|
{
|
|
554
|
-
"
|
|
555
|
-
"name": "
|
|
1518
|
+
"kind": "field",
|
|
1519
|
+
"name": "size",
|
|
1520
|
+
"type": {
|
|
1521
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
1522
|
+
},
|
|
1523
|
+
"default": "\"m\"",
|
|
1524
|
+
"description": "The size of the icon.",
|
|
1525
|
+
"attribute": "size",
|
|
1526
|
+
"reflects": true
|
|
556
1527
|
},
|
|
557
1528
|
{
|
|
558
|
-
"
|
|
559
|
-
"name": "
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
1529
|
+
"kind": "field",
|
|
1530
|
+
"name": "color",
|
|
1531
|
+
"type": {
|
|
1532
|
+
"text": "string | undefined"
|
|
1533
|
+
},
|
|
1534
|
+
"description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
|
|
1535
|
+
"attribute": "color",
|
|
1536
|
+
"reflects": true
|
|
1537
|
+
},
|
|
563
1538
|
{
|
|
564
1539
|
"kind": "field",
|
|
565
|
-
"name": "
|
|
1540
|
+
"name": "label",
|
|
566
1541
|
"type": {
|
|
567
|
-
"text": "
|
|
1542
|
+
"text": "string | undefined"
|
|
568
1543
|
},
|
|
569
|
-
"
|
|
570
|
-
"
|
|
571
|
-
"attribute": "padding",
|
|
1544
|
+
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
1545
|
+
"attribute": "label",
|
|
572
1546
|
"reflects": true
|
|
573
1547
|
},
|
|
574
1548
|
{
|
|
575
|
-
"kind": "
|
|
576
|
-
"name": "
|
|
577
|
-
"
|
|
1549
|
+
"kind": "field",
|
|
1550
|
+
"name": "svg",
|
|
1551
|
+
"type": {
|
|
1552
|
+
"text": "string"
|
|
1553
|
+
},
|
|
1554
|
+
"default": "\"\""
|
|
578
1555
|
},
|
|
579
1556
|
{
|
|
580
1557
|
"kind": "method",
|
|
581
|
-
"name": "
|
|
1558
|
+
"name": "resolve",
|
|
582
1559
|
"privacy": "private",
|
|
583
|
-
"
|
|
584
|
-
{
|
|
585
|
-
"
|
|
586
|
-
"type": {
|
|
587
|
-
"text": "string"
|
|
588
|
-
}
|
|
1560
|
+
"return": {
|
|
1561
|
+
"type": {
|
|
1562
|
+
"text": "string | Promise<string>"
|
|
589
1563
|
}
|
|
590
|
-
|
|
1564
|
+
}
|
|
591
1565
|
},
|
|
592
1566
|
{
|
|
593
1567
|
"kind": "field",
|
|
@@ -606,13 +1580,38 @@
|
|
|
606
1580
|
],
|
|
607
1581
|
"attributes": [
|
|
608
1582
|
{
|
|
609
|
-
"name": "
|
|
1583
|
+
"name": "name",
|
|
610
1584
|
"type": {
|
|
611
|
-
"text": "
|
|
1585
|
+
"text": "string"
|
|
1586
|
+
},
|
|
1587
|
+
"default": "\"\"",
|
|
1588
|
+
"description": "The name of the icon to display, as defined by nordicons.",
|
|
1589
|
+
"fieldName": "name"
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
"name": "size",
|
|
1593
|
+
"type": {
|
|
1594
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
612
1595
|
},
|
|
613
1596
|
"default": "\"m\"",
|
|
614
|
-
"description": "
|
|
615
|
-
"fieldName": "
|
|
1597
|
+
"description": "The size of the icon.",
|
|
1598
|
+
"fieldName": "size"
|
|
1599
|
+
},
|
|
1600
|
+
{
|
|
1601
|
+
"name": "color",
|
|
1602
|
+
"type": {
|
|
1603
|
+
"text": "string | undefined"
|
|
1604
|
+
},
|
|
1605
|
+
"description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
|
|
1606
|
+
"fieldName": "color"
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
"name": "label",
|
|
1610
|
+
"type": {
|
|
1611
|
+
"text": "string | undefined"
|
|
1612
|
+
},
|
|
1613
|
+
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
1614
|
+
"fieldName": "label"
|
|
616
1615
|
}
|
|
617
1616
|
],
|
|
618
1617
|
"mixins": [
|
|
@@ -626,8 +1625,8 @@
|
|
|
626
1625
|
"package": "lit"
|
|
627
1626
|
},
|
|
628
1627
|
"status": "draft",
|
|
629
|
-
"category": "
|
|
630
|
-
"tagName": "nord-
|
|
1628
|
+
"category": "image",
|
|
1629
|
+
"tagName": "nord-icon",
|
|
631
1630
|
"customElement": true
|
|
632
1631
|
}
|
|
633
1632
|
],
|
|
@@ -636,77 +1635,16 @@
|
|
|
636
1635
|
"kind": "js",
|
|
637
1636
|
"name": "default",
|
|
638
1637
|
"declaration": {
|
|
639
|
-
"name": "
|
|
640
|
-
"module": "src/
|
|
1638
|
+
"name": "Icon",
|
|
1639
|
+
"module": "src/icon/Icon.ts"
|
|
641
1640
|
}
|
|
642
1641
|
},
|
|
643
1642
|
{
|
|
644
1643
|
"kind": "custom-element-definition",
|
|
645
|
-
"name": "nord-
|
|
646
|
-
"declaration": {
|
|
647
|
-
"name": "Card",
|
|
648
|
-
"module": "src/card/Card.ts"
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
]
|
|
652
|
-
},
|
|
653
|
-
{
|
|
654
|
-
"kind": "javascript-module",
|
|
655
|
-
"path": "src/common/events.ts",
|
|
656
|
-
"declarations": [
|
|
657
|
-
{
|
|
658
|
-
"kind": "class",
|
|
659
|
-
"description": "A base class for events which defaults to bubbling and composed",
|
|
660
|
-
"name": "NordEvent",
|
|
661
|
-
"superclass": {
|
|
662
|
-
"name": "Event",
|
|
663
|
-
"module": "src/common/events.ts"
|
|
664
|
-
},
|
|
665
|
-
"status": null,
|
|
666
|
-
"category": null
|
|
667
|
-
}
|
|
668
|
-
],
|
|
669
|
-
"exports": [
|
|
670
|
-
{
|
|
671
|
-
"kind": "js",
|
|
672
|
-
"name": "NordEvent",
|
|
673
|
-
"declaration": {
|
|
674
|
-
"name": "NordEvent",
|
|
675
|
-
"module": "src/common/events.ts"
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
]
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
"kind": "javascript-module",
|
|
682
|
-
"path": "src/common/ref.ts",
|
|
683
|
-
"declarations": [
|
|
684
|
-
{
|
|
685
|
-
"kind": "function",
|
|
686
|
-
"name": "mergeRefs",
|
|
687
|
-
"return": {
|
|
688
|
-
"type": {
|
|
689
|
-
"text": "RefCallback"
|
|
690
|
-
}
|
|
691
|
-
},
|
|
692
|
-
"parameters": [
|
|
693
|
-
{
|
|
694
|
-
"name": "refs",
|
|
695
|
-
"type": {
|
|
696
|
-
"text": "Ref[]"
|
|
697
|
-
}
|
|
698
|
-
}
|
|
699
|
-
],
|
|
700
|
-
"description": "Creates a ref callback which will assign the element to every given ref"
|
|
701
|
-
}
|
|
702
|
-
],
|
|
703
|
-
"exports": [
|
|
704
|
-
{
|
|
705
|
-
"kind": "js",
|
|
706
|
-
"name": "mergeRefs",
|
|
1644
|
+
"name": "nord-icon",
|
|
707
1645
|
"declaration": {
|
|
708
|
-
"name": "
|
|
709
|
-
"module": "src/
|
|
1646
|
+
"name": "Icon",
|
|
1647
|
+
"module": "src/icon/Icon.ts"
|
|
710
1648
|
}
|
|
711
1649
|
}
|
|
712
1650
|
]
|
|
@@ -1949,6 +2887,149 @@
|
|
|
1949
2887
|
}
|
|
1950
2888
|
]
|
|
1951
2889
|
},
|
|
2890
|
+
{
|
|
2891
|
+
"kind": "javascript-module",
|
|
2892
|
+
"path": "src/common/controllers/LightDismissController.ts",
|
|
2893
|
+
"declarations": [
|
|
2894
|
+
{
|
|
2895
|
+
"kind": "class",
|
|
2896
|
+
"description": "",
|
|
2897
|
+
"name": "LightDismissController",
|
|
2898
|
+
"members": [
|
|
2899
|
+
{
|
|
2900
|
+
"kind": "field",
|
|
2901
|
+
"name": "host",
|
|
2902
|
+
"type": {
|
|
2903
|
+
"text": "LitElement"
|
|
2904
|
+
},
|
|
2905
|
+
"privacy": "private",
|
|
2906
|
+
"default": "host"
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
"kind": "field",
|
|
2910
|
+
"name": "shortcut",
|
|
2911
|
+
"type": {
|
|
2912
|
+
"text": "ShortcutController"
|
|
2913
|
+
},
|
|
2914
|
+
"privacy": "private",
|
|
2915
|
+
"default": "new ShortcutController(this.host, { Escape: onDismiss })"
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
"kind": "field",
|
|
2919
|
+
"name": "onDismiss",
|
|
2920
|
+
"type": {
|
|
2921
|
+
"text": "EventListener"
|
|
2922
|
+
},
|
|
2923
|
+
"default": "onDismiss"
|
|
2924
|
+
},
|
|
2925
|
+
{
|
|
2926
|
+
"kind": "method",
|
|
2927
|
+
"name": "hostConnected"
|
|
2928
|
+
},
|
|
2929
|
+
{
|
|
2930
|
+
"kind": "method",
|
|
2931
|
+
"name": "hostDisconnected"
|
|
2932
|
+
},
|
|
2933
|
+
{
|
|
2934
|
+
"kind": "field",
|
|
2935
|
+
"name": "handleFocusOut",
|
|
2936
|
+
"privacy": "private"
|
|
2937
|
+
}
|
|
2938
|
+
]
|
|
2939
|
+
}
|
|
2940
|
+
],
|
|
2941
|
+
"exports": [
|
|
2942
|
+
{
|
|
2943
|
+
"kind": "js",
|
|
2944
|
+
"name": "LightDismissController",
|
|
2945
|
+
"declaration": {
|
|
2946
|
+
"name": "LightDismissController",
|
|
2947
|
+
"module": "src/common/controllers/LightDismissController.ts"
|
|
2948
|
+
}
|
|
2949
|
+
}
|
|
2950
|
+
]
|
|
2951
|
+
},
|
|
2952
|
+
{
|
|
2953
|
+
"kind": "javascript-module",
|
|
2954
|
+
"path": "src/common/controllers/ShortcutController.ts",
|
|
2955
|
+
"declarations": [
|
|
2956
|
+
{
|
|
2957
|
+
"kind": "class",
|
|
2958
|
+
"description": "",
|
|
2959
|
+
"name": "ShortcutController",
|
|
2960
|
+
"members": [
|
|
2961
|
+
{
|
|
2962
|
+
"kind": "field",
|
|
2963
|
+
"name": "target",
|
|
2964
|
+
"type": {
|
|
2965
|
+
"text": "ShortcutTarget"
|
|
2966
|
+
},
|
|
2967
|
+
"privacy": "private",
|
|
2968
|
+
"default": "target"
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
"kind": "field",
|
|
2972
|
+
"name": "shortcuts",
|
|
2973
|
+
"type": {
|
|
2974
|
+
"text": "KeyBindingMap | undefined"
|
|
2975
|
+
},
|
|
2976
|
+
"privacy": "private",
|
|
2977
|
+
"default": "shortcuts"
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
"kind": "field",
|
|
2981
|
+
"name": "unregister",
|
|
2982
|
+
"type": {
|
|
2983
|
+
"text": "ReturnType<typeof tinykeys> | undefined"
|
|
2984
|
+
},
|
|
2985
|
+
"privacy": "private"
|
|
2986
|
+
},
|
|
2987
|
+
{
|
|
2988
|
+
"kind": "method",
|
|
2989
|
+
"name": "hostConnected"
|
|
2990
|
+
},
|
|
2991
|
+
{
|
|
2992
|
+
"kind": "method",
|
|
2993
|
+
"name": "hostDisconnected"
|
|
2994
|
+
},
|
|
2995
|
+
{
|
|
2996
|
+
"kind": "method",
|
|
2997
|
+
"name": "unbind"
|
|
2998
|
+
},
|
|
2999
|
+
{
|
|
3000
|
+
"kind": "method",
|
|
3001
|
+
"name": "bind",
|
|
3002
|
+
"parameters": [
|
|
3003
|
+
{
|
|
3004
|
+
"name": "shortcuts",
|
|
3005
|
+
"type": {
|
|
3006
|
+
"text": "KeyBindingMap"
|
|
3007
|
+
}
|
|
3008
|
+
}
|
|
3009
|
+
]
|
|
3010
|
+
}
|
|
3011
|
+
]
|
|
3012
|
+
}
|
|
3013
|
+
],
|
|
3014
|
+
"exports": [
|
|
3015
|
+
{
|
|
3016
|
+
"kind": "js",
|
|
3017
|
+
"name": "ShortcutController",
|
|
3018
|
+
"declaration": {
|
|
3019
|
+
"name": "ShortcutController",
|
|
3020
|
+
"module": "src/common/controllers/ShortcutController.ts"
|
|
3021
|
+
}
|
|
3022
|
+
},
|
|
3023
|
+
{
|
|
3024
|
+
"kind": "js",
|
|
3025
|
+
"name": "ShortcutMap",
|
|
3026
|
+
"declaration": {
|
|
3027
|
+
"name": "KeyBindingMap",
|
|
3028
|
+
"module": "src/common/controllers/ShortcutController.ts"
|
|
3029
|
+
}
|
|
3030
|
+
}
|
|
3031
|
+
]
|
|
3032
|
+
},
|
|
1952
3033
|
{
|
|
1953
3034
|
"kind": "javascript-module",
|
|
1954
3035
|
"path": "src/common/directives/cond.ts",
|