@nordhealth/components 1.0.0-alpha.31 → 1.0.0-alpha.35
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 +1929 -72
- 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 +2 -0
- package/lib/Input.js.map +1 -0
- 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/badge/Badge.d.ts +4 -1
- package/lib/src/button/Button.d.ts +4 -1
- package/lib/src/card/Card.d.ts +7 -2
- package/lib/src/card/Card.test.d.ts +1 -0
- package/lib/src/command-menu/CommandMenu.d.ts +77 -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/directives/cond.d.ts +7 -0
- package/lib/src/common/focus.d.ts +4 -0
- package/lib/src/common/mixins/DraftComponentMixin.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 -4
- package/lib/src/input/Input.d.ts +53 -0
- package/lib/src/input/Input.test.d.ts +1 -0
- package/lib/src/select/Select.d.ts +16 -1
- package/lib/src/stack/Stack.d.ts +10 -2
- package/lib/src/table/Table.d.ts +7 -2
- package/lib/src/visually-hidden/VisuallyHidden.d.ts +12 -2
- 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 +35 -10
- package/lib/Button-d775fe0c.js +0 -28
- package/lib/Button-d775fe0c.js.map +0 -1
- package/lib/custom-element-cf3681d2.js +0 -44
- package/lib/custom-element-cf3681d2.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,10 +25,42 @@
|
|
|
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
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"kind": "js",
|
|
36
|
+
"name": "Input",
|
|
37
|
+
"declaration": {
|
|
38
|
+
"name": "default",
|
|
39
|
+
"module": "\"./input/Input.js\""
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"kind": "js",
|
|
44
|
+
"name": "Icon",
|
|
45
|
+
"declaration": {
|
|
46
|
+
"name": "default",
|
|
47
|
+
"module": "\"./icon/Icon.js\""
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"kind": "js",
|
|
52
|
+
"name": "CommandMenu",
|
|
53
|
+
"declaration": {
|
|
54
|
+
"name": "default",
|
|
55
|
+
"module": "\"./command-menu/CommandMenu.js\""
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"kind": "js",
|
|
60
|
+
"name": "CommandMenuAction",
|
|
61
|
+
"declaration": {
|
|
62
|
+
"name": "default",
|
|
63
|
+
"module": "\"./command-menu/CommandMenuAction.js\""
|
|
32
64
|
}
|
|
33
65
|
},
|
|
34
66
|
{
|
|
@@ -41,26 +73,26 @@
|
|
|
41
73
|
},
|
|
42
74
|
{
|
|
43
75
|
"kind": "js",
|
|
44
|
-
"name": "
|
|
76
|
+
"name": "Stack",
|
|
45
77
|
"declaration": {
|
|
46
78
|
"name": "default",
|
|
47
|
-
"module": "\"./
|
|
79
|
+
"module": "\"./stack/Stack.js\""
|
|
48
80
|
}
|
|
49
81
|
},
|
|
50
82
|
{
|
|
51
83
|
"kind": "js",
|
|
52
|
-
"name": "
|
|
84
|
+
"name": "Table",
|
|
53
85
|
"declaration": {
|
|
54
86
|
"name": "default",
|
|
55
|
-
"module": "\"./
|
|
87
|
+
"module": "\"./table/Table.js\""
|
|
56
88
|
}
|
|
57
89
|
},
|
|
58
90
|
{
|
|
59
91
|
"kind": "js",
|
|
60
|
-
"name": "
|
|
92
|
+
"name": "VisuallyHidden",
|
|
61
93
|
"declaration": {
|
|
62
94
|
"name": "default",
|
|
63
|
-
"module": "\"./
|
|
95
|
+
"module": "\"./visually-hidden/VisuallyHidden.js\""
|
|
64
96
|
}
|
|
65
97
|
}
|
|
66
98
|
]
|
|
@@ -90,6 +122,20 @@
|
|
|
90
122
|
"description": "The type of badge.\nDetermines the colour of the chip shown on the badge.",
|
|
91
123
|
"attribute": "type",
|
|
92
124
|
"reflects": true
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"kind": "field",
|
|
128
|
+
"name": "_warningLogged",
|
|
129
|
+
"type": {
|
|
130
|
+
"text": "boolean"
|
|
131
|
+
},
|
|
132
|
+
"privacy": "private",
|
|
133
|
+
"static": true,
|
|
134
|
+
"default": "false",
|
|
135
|
+
"inheritedFrom": {
|
|
136
|
+
"name": "DraftComponentMixin",
|
|
137
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
138
|
+
}
|
|
93
139
|
}
|
|
94
140
|
],
|
|
95
141
|
"attributes": [
|
|
@@ -103,11 +149,18 @@
|
|
|
103
149
|
"fieldName": "type"
|
|
104
150
|
}
|
|
105
151
|
],
|
|
152
|
+
"mixins": [
|
|
153
|
+
{
|
|
154
|
+
"name": "DraftComponentMixin",
|
|
155
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
156
|
+
}
|
|
157
|
+
],
|
|
106
158
|
"superclass": {
|
|
107
159
|
"name": "LitElement",
|
|
108
160
|
"package": "lit"
|
|
109
161
|
},
|
|
110
162
|
"status": "draft",
|
|
163
|
+
"category": "text",
|
|
111
164
|
"tagName": "nord-badge",
|
|
112
165
|
"customElement": true
|
|
113
166
|
}
|
|
@@ -137,7 +190,7 @@
|
|
|
137
190
|
"declarations": [
|
|
138
191
|
{
|
|
139
192
|
"kind": "class",
|
|
140
|
-
"description": "Buttons are used for interface actions. Primary style should be
|
|
193
|
+
"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.",
|
|
141
194
|
"name": "Button",
|
|
142
195
|
"slots": [
|
|
143
196
|
{
|
|
@@ -348,6 +401,20 @@
|
|
|
348
401
|
"name": "FocusableMixin",
|
|
349
402
|
"module": "src/common/mixins/FocusableMixin.ts"
|
|
350
403
|
}
|
|
404
|
+
},
|
|
405
|
+
{
|
|
406
|
+
"kind": "field",
|
|
407
|
+
"name": "_warningLogged",
|
|
408
|
+
"type": {
|
|
409
|
+
"text": "boolean"
|
|
410
|
+
},
|
|
411
|
+
"privacy": "private",
|
|
412
|
+
"static": true,
|
|
413
|
+
"default": "false",
|
|
414
|
+
"inheritedFrom": {
|
|
415
|
+
"name": "DraftComponentMixin",
|
|
416
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
417
|
+
}
|
|
351
418
|
}
|
|
352
419
|
],
|
|
353
420
|
"attributes": [
|
|
@@ -459,6 +526,10 @@
|
|
|
459
526
|
{
|
|
460
527
|
"name": "FocusableMixin",
|
|
461
528
|
"module": "/src/common/mixins/FocusableMixin.js"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"name": "DraftComponentMixin",
|
|
532
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
462
533
|
}
|
|
463
534
|
],
|
|
464
535
|
"superclass": {
|
|
@@ -466,6 +537,7 @@
|
|
|
466
537
|
"package": "lit"
|
|
467
538
|
},
|
|
468
539
|
"status": "draft",
|
|
540
|
+
"category": "action",
|
|
469
541
|
"tagName": "nord-button",
|
|
470
542
|
"customElement": true
|
|
471
543
|
}
|
|
@@ -495,7 +567,7 @@
|
|
|
495
567
|
"declarations": [
|
|
496
568
|
{
|
|
497
569
|
"kind": "class",
|
|
498
|
-
"description": "Cards are shadowed surfaces that display content and actions on a
|
|
570
|
+
"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.",
|
|
499
571
|
"name": "Card",
|
|
500
572
|
"slots": [
|
|
501
573
|
{
|
|
@@ -540,6 +612,20 @@
|
|
|
540
612
|
}
|
|
541
613
|
}
|
|
542
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
|
+
}
|
|
543
629
|
}
|
|
544
630
|
],
|
|
545
631
|
"attributes": [
|
|
@@ -553,11 +639,18 @@
|
|
|
553
639
|
"fieldName": "padding"
|
|
554
640
|
}
|
|
555
641
|
],
|
|
642
|
+
"mixins": [
|
|
643
|
+
{
|
|
644
|
+
"name": "DraftComponentMixin",
|
|
645
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
646
|
+
}
|
|
647
|
+
],
|
|
556
648
|
"superclass": {
|
|
557
649
|
"name": "LitElement",
|
|
558
650
|
"package": "lit"
|
|
559
651
|
},
|
|
560
652
|
"status": "draft",
|
|
653
|
+
"category": "structure",
|
|
561
654
|
"tagName": "nord-card",
|
|
562
655
|
"customElement": true
|
|
563
656
|
}
|
|
@@ -581,6 +674,48 @@
|
|
|
581
674
|
}
|
|
582
675
|
]
|
|
583
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
|
+
},
|
|
584
719
|
{
|
|
585
720
|
"kind": "javascript-module",
|
|
586
721
|
"path": "src/common/events.ts",
|
|
@@ -593,7 +728,8 @@
|
|
|
593
728
|
"name": "Event",
|
|
594
729
|
"module": "src/common/events.ts"
|
|
595
730
|
},
|
|
596
|
-
"status": null
|
|
731
|
+
"status": null,
|
|
732
|
+
"category": null
|
|
597
733
|
}
|
|
598
734
|
],
|
|
599
735
|
"exports": [
|
|
@@ -607,6 +743,81 @@
|
|
|
607
743
|
}
|
|
608
744
|
]
|
|
609
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
|
+
},
|
|
610
821
|
{
|
|
611
822
|
"kind": "javascript-module",
|
|
612
823
|
"path": "src/common/ref.ts",
|
|
@@ -643,89 +854,1401 @@
|
|
|
643
854
|
},
|
|
644
855
|
{
|
|
645
856
|
"kind": "javascript-module",
|
|
646
|
-
"path": "src/
|
|
857
|
+
"path": "src/command-menu/CommandMenu.ts",
|
|
647
858
|
"declarations": [
|
|
648
859
|
{
|
|
649
860
|
"kind": "class",
|
|
650
|
-
"description": "
|
|
651
|
-
"name": "
|
|
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",
|
|
652
863
|
"slots": [
|
|
653
864
|
{
|
|
654
|
-
"description": "
|
|
655
|
-
"name": ""
|
|
656
|
-
},
|
|
657
|
-
{
|
|
658
|
-
"description": "Use when a label requires more than plain text.",
|
|
659
|
-
"name": "label"
|
|
865
|
+
"description": "Used to replace the default footer contents.",
|
|
866
|
+
"name": "footer"
|
|
660
867
|
}
|
|
661
868
|
],
|
|
662
869
|
"members": [
|
|
663
870
|
{
|
|
664
871
|
"kind": "field",
|
|
665
|
-
"name": "
|
|
872
|
+
"name": "inputRef",
|
|
873
|
+
"privacy": "private"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"kind": "field",
|
|
877
|
+
"name": "listRef",
|
|
878
|
+
"privacy": "private"
|
|
879
|
+
},
|
|
880
|
+
{
|
|
881
|
+
"kind": "field",
|
|
882
|
+
"name": "previousFocus",
|
|
883
|
+
"type": {
|
|
884
|
+
"text": "HTMLElement | undefined"
|
|
885
|
+
},
|
|
886
|
+
"privacy": "private"
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
"kind": "field",
|
|
890
|
+
"name": "dismissController",
|
|
891
|
+
"privacy": "private",
|
|
892
|
+
"default": "new LightDismissController(this, () => this.close())"
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"kind": "field",
|
|
896
|
+
"name": "keyboardController",
|
|
897
|
+
"privacy": "private",
|
|
898
|
+
"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 })"
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
"kind": "field",
|
|
902
|
+
"name": "open",
|
|
666
903
|
"type": {
|
|
667
904
|
"text": "boolean"
|
|
668
905
|
},
|
|
669
906
|
"default": "false",
|
|
670
|
-
"description": "
|
|
671
|
-
"attribute": "
|
|
907
|
+
"description": "Show or hide element.",
|
|
908
|
+
"attribute": "open"
|
|
672
909
|
},
|
|
673
910
|
{
|
|
674
911
|
"kind": "field",
|
|
675
912
|
"name": "placeholder",
|
|
676
913
|
"type": {
|
|
677
|
-
"text": "string
|
|
914
|
+
"text": "string"
|
|
678
915
|
},
|
|
679
|
-
"
|
|
916
|
+
"default": "\"Type a command or search...\"",
|
|
917
|
+
"description": "Hint text to display in the search field.",
|
|
680
918
|
"attribute": "placeholder"
|
|
681
919
|
},
|
|
682
920
|
{
|
|
683
921
|
"kind": "field",
|
|
684
|
-
"name": "
|
|
922
|
+
"name": "commands",
|
|
923
|
+
"type": {
|
|
924
|
+
"text": "Array<ICommandMenuAction>"
|
|
925
|
+
},
|
|
926
|
+
"default": "[]",
|
|
927
|
+
"description": "Array of commands to be included in the menu.",
|
|
928
|
+
"attribute": "commands"
|
|
929
|
+
},
|
|
930
|
+
{
|
|
931
|
+
"kind": "field",
|
|
932
|
+
"name": "parent",
|
|
933
|
+
"type": {
|
|
934
|
+
"text": "string | undefined"
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
"kind": "field",
|
|
939
|
+
"name": "search",
|
|
940
|
+
"type": {
|
|
941
|
+
"text": "string"
|
|
942
|
+
},
|
|
943
|
+
"default": "\"\""
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
"kind": "field",
|
|
947
|
+
"name": "bump",
|
|
685
948
|
"type": {
|
|
686
949
|
"text": "boolean"
|
|
687
950
|
},
|
|
688
|
-
"
|
|
689
|
-
"
|
|
690
|
-
"attribute": "expand",
|
|
691
|
-
"reflects": true
|
|
951
|
+
"privacy": "private",
|
|
952
|
+
"default": "true"
|
|
692
953
|
},
|
|
693
954
|
{
|
|
694
|
-
"kind": "
|
|
695
|
-
"name": "
|
|
696
|
-
"
|
|
955
|
+
"kind": "field",
|
|
956
|
+
"name": "selectedIndex",
|
|
957
|
+
"type": {
|
|
958
|
+
"text": "number"
|
|
959
|
+
},
|
|
960
|
+
"privacy": "private",
|
|
961
|
+
"default": "0"
|
|
697
962
|
},
|
|
698
963
|
{
|
|
699
964
|
"kind": "field",
|
|
700
|
-
"name": "
|
|
965
|
+
"name": "filteredCommands",
|
|
966
|
+
"type": {
|
|
967
|
+
"text": "Array<ICommandMenuAction>"
|
|
968
|
+
},
|
|
969
|
+
"privacy": "private",
|
|
970
|
+
"default": "[]"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"kind": "field",
|
|
974
|
+
"name": "selected",
|
|
975
|
+
"type": {
|
|
976
|
+
"text": "ICommandMenuAction"
|
|
977
|
+
},
|
|
701
978
|
"privacy": "private"
|
|
702
979
|
},
|
|
703
980
|
{
|
|
704
981
|
"kind": "method",
|
|
705
|
-
"name": "
|
|
706
|
-
"privacy": "private",
|
|
707
|
-
"return": {
|
|
708
|
-
"type": {
|
|
709
|
-
"text": "string"
|
|
710
|
-
}
|
|
711
|
-
},
|
|
982
|
+
"name": "show",
|
|
712
983
|
"parameters": [
|
|
713
984
|
{
|
|
714
985
|
"name": "options",
|
|
986
|
+
"default": "{}",
|
|
715
987
|
"type": {
|
|
716
|
-
"text": "
|
|
988
|
+
"text": "{ parent?: string }"
|
|
717
989
|
}
|
|
718
990
|
}
|
|
719
|
-
]
|
|
991
|
+
],
|
|
992
|
+
"description": "Show the command menu programmatically."
|
|
720
993
|
},
|
|
721
994
|
{
|
|
722
995
|
"kind": "method",
|
|
723
|
-
"name": "
|
|
724
|
-
"
|
|
996
|
+
"name": "close",
|
|
997
|
+
"description": "Close the command menu programmatically."
|
|
725
998
|
},
|
|
726
999
|
{
|
|
727
1000
|
"kind": "method",
|
|
728
|
-
"name": "
|
|
1001
|
+
"name": "toggleOpen",
|
|
1002
|
+
"description": "Toggle the open state programmatically."
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
"kind": "method",
|
|
1006
|
+
"name": "focus",
|
|
1007
|
+
"description": "Focus the command menu's input."
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
"kind": "method",
|
|
1011
|
+
"name": "renderSection",
|
|
1012
|
+
"privacy": "private",
|
|
1013
|
+
"parameters": [
|
|
1014
|
+
{
|
|
1015
|
+
"name": "section",
|
|
1016
|
+
"type": {
|
|
1017
|
+
"text": "string | undefined"
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
"name": "commands",
|
|
1022
|
+
"type": {
|
|
1023
|
+
"text": "ICommandMenuAction[]"
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
]
|
|
1027
|
+
},
|
|
1028
|
+
{
|
|
1029
|
+
"kind": "method",
|
|
1030
|
+
"name": "handleAnimationEnd",
|
|
1031
|
+
"privacy": "private"
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
"kind": "method",
|
|
1035
|
+
"name": "handleInput",
|
|
1036
|
+
"privacy": "private",
|
|
1037
|
+
"parameters": [
|
|
1038
|
+
{
|
|
1039
|
+
"name": "event",
|
|
1040
|
+
"type": {
|
|
1041
|
+
"text": "KeyboardEvent"
|
|
1042
|
+
}
|
|
1043
|
+
}
|
|
1044
|
+
]
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"kind": "method",
|
|
1048
|
+
"name": "select",
|
|
1049
|
+
"privacy": "private",
|
|
1050
|
+
"parameters": [
|
|
1051
|
+
{
|
|
1052
|
+
"name": "command",
|
|
1053
|
+
"default": "this.selected",
|
|
1054
|
+
"type": {
|
|
1055
|
+
"text": "ICommandMenuAction"
|
|
1056
|
+
}
|
|
1057
|
+
}
|
|
1058
|
+
]
|
|
1059
|
+
},
|
|
1060
|
+
{
|
|
1061
|
+
"kind": "method",
|
|
1062
|
+
"name": "start",
|
|
1063
|
+
"privacy": "private"
|
|
1064
|
+
},
|
|
1065
|
+
{
|
|
1066
|
+
"kind": "method",
|
|
1067
|
+
"name": "end",
|
|
1068
|
+
"privacy": "private"
|
|
1069
|
+
},
|
|
1070
|
+
{
|
|
1071
|
+
"kind": "method",
|
|
1072
|
+
"name": "next",
|
|
1073
|
+
"privacy": "private"
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"kind": "method",
|
|
1077
|
+
"name": "previous",
|
|
1078
|
+
"privacy": "private"
|
|
1079
|
+
},
|
|
1080
|
+
{
|
|
1081
|
+
"kind": "method",
|
|
1082
|
+
"name": "goBack",
|
|
1083
|
+
"privacy": "private"
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
"kind": "method",
|
|
1087
|
+
"name": "setParent",
|
|
1088
|
+
"privacy": "private",
|
|
1089
|
+
"parameters": [
|
|
1090
|
+
{
|
|
1091
|
+
"name": "parent",
|
|
1092
|
+
"optional": true,
|
|
1093
|
+
"type": {
|
|
1094
|
+
"text": "string"
|
|
1095
|
+
}
|
|
1096
|
+
}
|
|
1097
|
+
]
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"kind": "method",
|
|
1101
|
+
"name": "setSearch",
|
|
1102
|
+
"privacy": "private",
|
|
1103
|
+
"parameters": [
|
|
1104
|
+
{
|
|
1105
|
+
"name": "str",
|
|
1106
|
+
"type": {
|
|
1107
|
+
"text": "string"
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
]
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"kind": "method",
|
|
1114
|
+
"name": "filterCommands",
|
|
1115
|
+
"privacy": "private"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
"kind": "field",
|
|
1119
|
+
"name": "_warningLogged",
|
|
1120
|
+
"type": {
|
|
1121
|
+
"text": "boolean"
|
|
1122
|
+
},
|
|
1123
|
+
"privacy": "private",
|
|
1124
|
+
"static": true,
|
|
1125
|
+
"default": "false",
|
|
1126
|
+
"inheritedFrom": {
|
|
1127
|
+
"name": "DraftComponentMixin",
|
|
1128
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1129
|
+
}
|
|
1130
|
+
}
|
|
1131
|
+
],
|
|
1132
|
+
"events": [
|
|
1133
|
+
{
|
|
1134
|
+
"name": "open",
|
|
1135
|
+
"type": {
|
|
1136
|
+
"text": "NordEvent"
|
|
1137
|
+
},
|
|
1138
|
+
"description": "The command menu was opened."
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
"name": "close",
|
|
1142
|
+
"type": {
|
|
1143
|
+
"text": "NordEvent"
|
|
1144
|
+
},
|
|
1145
|
+
"description": "The command menu was closed."
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"name": "command",
|
|
1149
|
+
"type": {
|
|
1150
|
+
"text": "SelectEvent"
|
|
1151
|
+
},
|
|
1152
|
+
"description": "User selected a command from the menu."
|
|
1153
|
+
}
|
|
1154
|
+
],
|
|
1155
|
+
"attributes": [
|
|
1156
|
+
{
|
|
1157
|
+
"name": "open",
|
|
1158
|
+
"type": {
|
|
1159
|
+
"text": "boolean"
|
|
1160
|
+
},
|
|
1161
|
+
"default": "false",
|
|
1162
|
+
"description": "Show or hide element.",
|
|
1163
|
+
"fieldName": "open"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"name": "placeholder",
|
|
1167
|
+
"type": {
|
|
1168
|
+
"text": "string"
|
|
1169
|
+
},
|
|
1170
|
+
"default": "\"Type a command or search...\"",
|
|
1171
|
+
"description": "Hint text to display in the search field.",
|
|
1172
|
+
"fieldName": "placeholder"
|
|
1173
|
+
},
|
|
1174
|
+
{
|
|
1175
|
+
"name": "commands",
|
|
1176
|
+
"type": {
|
|
1177
|
+
"text": "Array<ICommandMenuAction>"
|
|
1178
|
+
},
|
|
1179
|
+
"default": "[]",
|
|
1180
|
+
"description": "Array of commands to be included in the menu.",
|
|
1181
|
+
"fieldName": "commands"
|
|
1182
|
+
}
|
|
1183
|
+
],
|
|
1184
|
+
"mixins": [
|
|
1185
|
+
{
|
|
1186
|
+
"name": "DraftComponentMixin",
|
|
1187
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
1188
|
+
}
|
|
1189
|
+
],
|
|
1190
|
+
"superclass": {
|
|
1191
|
+
"name": "LitElement",
|
|
1192
|
+
"package": "lit"
|
|
1193
|
+
},
|
|
1194
|
+
"status": "draft",
|
|
1195
|
+
"category": "action",
|
|
1196
|
+
"tagName": "nord-command-menu",
|
|
1197
|
+
"customElement": true
|
|
1198
|
+
}
|
|
1199
|
+
],
|
|
1200
|
+
"exports": [
|
|
1201
|
+
{
|
|
1202
|
+
"kind": "js",
|
|
1203
|
+
"name": "default",
|
|
1204
|
+
"declaration": {
|
|
1205
|
+
"name": "CommandMenu",
|
|
1206
|
+
"module": "src/command-menu/CommandMenu.ts"
|
|
1207
|
+
}
|
|
1208
|
+
},
|
|
1209
|
+
{
|
|
1210
|
+
"kind": "custom-element-definition",
|
|
1211
|
+
"name": "nord-command-menu",
|
|
1212
|
+
"declaration": {
|
|
1213
|
+
"name": "CommandMenu",
|
|
1214
|
+
"module": "src/command-menu/CommandMenu.ts"
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
]
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"kind": "javascript-module",
|
|
1221
|
+
"path": "src/command-menu/CommandMenuAction.ts",
|
|
1222
|
+
"declarations": [
|
|
1223
|
+
{
|
|
1224
|
+
"kind": "class",
|
|
1225
|
+
"description": "Command Menu Action displays a single action that can be executed by the user. For usage examples, please see Command Menu component.",
|
|
1226
|
+
"name": "CommandMenuAction",
|
|
1227
|
+
"members": [
|
|
1228
|
+
{
|
|
1229
|
+
"kind": "field",
|
|
1230
|
+
"name": "command",
|
|
1231
|
+
"type": {
|
|
1232
|
+
"text": "ICommandMenuAction"
|
|
1233
|
+
},
|
|
1234
|
+
"attribute": "command"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"kind": "field",
|
|
1238
|
+
"name": "selected",
|
|
1239
|
+
"type": {
|
|
1240
|
+
"text": "boolean"
|
|
1241
|
+
},
|
|
1242
|
+
"default": "false",
|
|
1243
|
+
"attribute": "selected"
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"kind": "method",
|
|
1247
|
+
"name": "ensureInView",
|
|
1248
|
+
"privacy": "private",
|
|
1249
|
+
"description": "Scroll to show element"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"kind": "method",
|
|
1253
|
+
"name": "renderShortcut",
|
|
1254
|
+
"privacy": "private"
|
|
1255
|
+
}
|
|
1256
|
+
],
|
|
1257
|
+
"attributes": [
|
|
1258
|
+
{
|
|
1259
|
+
"name": "command",
|
|
1260
|
+
"type": {
|
|
1261
|
+
"text": "ICommandMenuAction"
|
|
1262
|
+
},
|
|
1263
|
+
"fieldName": "command"
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"name": "selected",
|
|
1267
|
+
"type": {
|
|
1268
|
+
"text": "boolean"
|
|
1269
|
+
},
|
|
1270
|
+
"default": "false",
|
|
1271
|
+
"fieldName": "selected"
|
|
1272
|
+
}
|
|
1273
|
+
],
|
|
1274
|
+
"superclass": {
|
|
1275
|
+
"name": "LitElement",
|
|
1276
|
+
"package": "lit"
|
|
1277
|
+
},
|
|
1278
|
+
"status": "internal",
|
|
1279
|
+
"category": null,
|
|
1280
|
+
"tagName": "nord-command-menu-action",
|
|
1281
|
+
"customElement": true
|
|
1282
|
+
}
|
|
1283
|
+
],
|
|
1284
|
+
"exports": [
|
|
1285
|
+
{
|
|
1286
|
+
"kind": "js",
|
|
1287
|
+
"name": "default",
|
|
1288
|
+
"declaration": {
|
|
1289
|
+
"name": "CommandMenuAction",
|
|
1290
|
+
"module": "src/command-menu/CommandMenuAction.ts"
|
|
1291
|
+
}
|
|
1292
|
+
},
|
|
1293
|
+
{
|
|
1294
|
+
"kind": "custom-element-definition",
|
|
1295
|
+
"name": "nord-command-menu-action",
|
|
1296
|
+
"declaration": {
|
|
1297
|
+
"name": "CommandMenuAction",
|
|
1298
|
+
"module": "src/command-menu/CommandMenuAction.ts"
|
|
1299
|
+
}
|
|
1300
|
+
}
|
|
1301
|
+
]
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"kind": "javascript-module",
|
|
1305
|
+
"path": "src/command-menu/ICommandMenuAction.ts",
|
|
1306
|
+
"declarations": [],
|
|
1307
|
+
"exports": []
|
|
1308
|
+
},
|
|
1309
|
+
{
|
|
1310
|
+
"kind": "javascript-module",
|
|
1311
|
+
"path": "src/command-menu/KeyboardController.ts",
|
|
1312
|
+
"declarations": [
|
|
1313
|
+
{
|
|
1314
|
+
"kind": "class",
|
|
1315
|
+
"description": "",
|
|
1316
|
+
"name": "KeyboardController",
|
|
1317
|
+
"members": [
|
|
1318
|
+
{
|
|
1319
|
+
"kind": "field",
|
|
1320
|
+
"name": "host",
|
|
1321
|
+
"type": {
|
|
1322
|
+
"text": "CommandMenu"
|
|
1323
|
+
},
|
|
1324
|
+
"privacy": "private",
|
|
1325
|
+
"default": "host"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"kind": "field",
|
|
1329
|
+
"name": "globalShortcuts",
|
|
1330
|
+
"type": {
|
|
1331
|
+
"text": "ShortcutController"
|
|
1332
|
+
},
|
|
1333
|
+
"privacy": "private",
|
|
1334
|
+
"default": "new ShortcutController(host, { \"$mod+k\": actions.toggleOpen })"
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"kind": "field",
|
|
1338
|
+
"name": "navigationShortcuts",
|
|
1339
|
+
"type": {
|
|
1340
|
+
"text": "ShortcutController"
|
|
1341
|
+
},
|
|
1342
|
+
"privacy": "private",
|
|
1343
|
+
"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 )"
|
|
1344
|
+
},
|
|
1345
|
+
{
|
|
1346
|
+
"kind": "field",
|
|
1347
|
+
"name": "commandShortcuts",
|
|
1348
|
+
"type": {
|
|
1349
|
+
"text": "ShortcutController"
|
|
1350
|
+
},
|
|
1351
|
+
"privacy": "private",
|
|
1352
|
+
"default": "new ShortcutController(host)"
|
|
1353
|
+
},
|
|
1354
|
+
{
|
|
1355
|
+
"kind": "method",
|
|
1356
|
+
"name": "registerCommandShortcuts"
|
|
1357
|
+
}
|
|
1358
|
+
]
|
|
1359
|
+
}
|
|
1360
|
+
],
|
|
1361
|
+
"exports": [
|
|
1362
|
+
{
|
|
1363
|
+
"kind": "js",
|
|
1364
|
+
"name": "KeyboardController",
|
|
1365
|
+
"declaration": {
|
|
1366
|
+
"name": "KeyboardController",
|
|
1367
|
+
"module": "src/command-menu/KeyboardController.ts"
|
|
1368
|
+
}
|
|
1369
|
+
}
|
|
1370
|
+
]
|
|
1371
|
+
},
|
|
1372
|
+
{
|
|
1373
|
+
"kind": "javascript-module",
|
|
1374
|
+
"path": "src/command-menu/events.ts",
|
|
1375
|
+
"declarations": [
|
|
1376
|
+
{
|
|
1377
|
+
"kind": "class",
|
|
1378
|
+
"description": "",
|
|
1379
|
+
"name": "SelectEvent",
|
|
1380
|
+
"members": [
|
|
1381
|
+
{
|
|
1382
|
+
"kind": "field",
|
|
1383
|
+
"name": "command",
|
|
1384
|
+
"type": {
|
|
1385
|
+
"text": "ICommandMenuAction"
|
|
1386
|
+
},
|
|
1387
|
+
"default": "command"
|
|
1388
|
+
}
|
|
1389
|
+
],
|
|
1390
|
+
"superclass": {
|
|
1391
|
+
"name": "NordEvent",
|
|
1392
|
+
"module": "/src/common/events.js"
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
],
|
|
1396
|
+
"exports": [
|
|
1397
|
+
{
|
|
1398
|
+
"kind": "js",
|
|
1399
|
+
"name": "SelectEvent",
|
|
1400
|
+
"declaration": {
|
|
1401
|
+
"name": "SelectEvent",
|
|
1402
|
+
"module": "src/command-menu/events.ts"
|
|
1403
|
+
}
|
|
1404
|
+
}
|
|
1405
|
+
]
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"kind": "javascript-module",
|
|
1409
|
+
"path": "src/icon/Icon.ts",
|
|
1410
|
+
"declarations": [
|
|
1411
|
+
{
|
|
1412
|
+
"kind": "class",
|
|
1413
|
+
"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.",
|
|
1414
|
+
"name": "Icon",
|
|
1415
|
+
"members": [
|
|
1416
|
+
{
|
|
1417
|
+
"kind": "field",
|
|
1418
|
+
"name": "resolver",
|
|
1419
|
+
"type": {
|
|
1420
|
+
"text": "IconResolver"
|
|
1421
|
+
},
|
|
1422
|
+
"privacy": "private",
|
|
1423
|
+
"static": true
|
|
1424
|
+
},
|
|
1425
|
+
{
|
|
1426
|
+
"kind": "field",
|
|
1427
|
+
"name": "registeredIcons",
|
|
1428
|
+
"privacy": "private",
|
|
1429
|
+
"static": true,
|
|
1430
|
+
"default": "new Map<string, string>()"
|
|
1431
|
+
},
|
|
1432
|
+
{
|
|
1433
|
+
"kind": "method",
|
|
1434
|
+
"name": "registerResolver",
|
|
1435
|
+
"static": true,
|
|
1436
|
+
"parameters": [
|
|
1437
|
+
{
|
|
1438
|
+
"name": "resolver",
|
|
1439
|
+
"type": {
|
|
1440
|
+
"text": "IconResolver"
|
|
1441
|
+
},
|
|
1442
|
+
"description": "The resolver function to register."
|
|
1443
|
+
}
|
|
1444
|
+
],
|
|
1445
|
+
"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."
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"kind": "method",
|
|
1449
|
+
"name": "registerIcon",
|
|
1450
|
+
"static": true,
|
|
1451
|
+
"return": {
|
|
1452
|
+
"type": {
|
|
1453
|
+
"text": "void"
|
|
1454
|
+
}
|
|
1455
|
+
},
|
|
1456
|
+
"parameters": [
|
|
1457
|
+
{
|
|
1458
|
+
"name": "icon",
|
|
1459
|
+
"type": {
|
|
1460
|
+
"text": "{ title: string; default: string }"
|
|
1461
|
+
}
|
|
1462
|
+
}
|
|
1463
|
+
],
|
|
1464
|
+
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
"kind": "method",
|
|
1468
|
+
"name": "registerIcon",
|
|
1469
|
+
"static": true,
|
|
1470
|
+
"return": {
|
|
1471
|
+
"type": {
|
|
1472
|
+
"text": "void"
|
|
1473
|
+
}
|
|
1474
|
+
},
|
|
1475
|
+
"parameters": [
|
|
1476
|
+
{
|
|
1477
|
+
"name": "name",
|
|
1478
|
+
"type": {
|
|
1479
|
+
"text": "string"
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"name": "icon",
|
|
1484
|
+
"type": {
|
|
1485
|
+
"text": "string"
|
|
1486
|
+
}
|
|
1487
|
+
}
|
|
1488
|
+
],
|
|
1489
|
+
"description": "Register an individual icon so it can be rendered synchronously, to avoid loading over the network."
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"kind": "method",
|
|
1493
|
+
"name": "registerIcon",
|
|
1494
|
+
"static": true,
|
|
1495
|
+
"parameters": [
|
|
1496
|
+
{
|
|
1497
|
+
"name": "iconOrName",
|
|
1498
|
+
"type": {
|
|
1499
|
+
"text": "string | { title: string; default: string }"
|
|
1500
|
+
}
|
|
1501
|
+
},
|
|
1502
|
+
{
|
|
1503
|
+
"name": "icon",
|
|
1504
|
+
"optional": true,
|
|
1505
|
+
"type": {
|
|
1506
|
+
"text": "string"
|
|
1507
|
+
}
|
|
1508
|
+
}
|
|
1509
|
+
]
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"kind": "field",
|
|
1513
|
+
"name": "name",
|
|
1514
|
+
"type": {
|
|
1515
|
+
"text": "string"
|
|
1516
|
+
},
|
|
1517
|
+
"default": "\"\"",
|
|
1518
|
+
"description": "The name of the icon to display, as defined by nordicons.",
|
|
1519
|
+
"attribute": "name",
|
|
1520
|
+
"reflects": true
|
|
1521
|
+
},
|
|
1522
|
+
{
|
|
1523
|
+
"kind": "field",
|
|
1524
|
+
"name": "size",
|
|
1525
|
+
"type": {
|
|
1526
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
1527
|
+
},
|
|
1528
|
+
"default": "\"m\"",
|
|
1529
|
+
"description": "The size of the icon.",
|
|
1530
|
+
"attribute": "size",
|
|
1531
|
+
"reflects": true
|
|
1532
|
+
},
|
|
1533
|
+
{
|
|
1534
|
+
"kind": "field",
|
|
1535
|
+
"name": "color",
|
|
1536
|
+
"type": {
|
|
1537
|
+
"text": "string | undefined"
|
|
1538
|
+
},
|
|
1539
|
+
"description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
|
|
1540
|
+
"attribute": "color",
|
|
1541
|
+
"reflects": true
|
|
1542
|
+
},
|
|
1543
|
+
{
|
|
1544
|
+
"kind": "field",
|
|
1545
|
+
"name": "label",
|
|
1546
|
+
"type": {
|
|
1547
|
+
"text": "string | undefined"
|
|
1548
|
+
},
|
|
1549
|
+
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
1550
|
+
"attribute": "label",
|
|
1551
|
+
"reflects": true
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"kind": "field",
|
|
1555
|
+
"name": "svg",
|
|
1556
|
+
"type": {
|
|
1557
|
+
"text": "string"
|
|
1558
|
+
},
|
|
1559
|
+
"default": "\"\""
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
"kind": "method",
|
|
1563
|
+
"name": "resolve",
|
|
1564
|
+
"privacy": "private",
|
|
1565
|
+
"return": {
|
|
1566
|
+
"type": {
|
|
1567
|
+
"text": "string | Promise<string>"
|
|
1568
|
+
}
|
|
1569
|
+
}
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
"kind": "field",
|
|
1573
|
+
"name": "_warningLogged",
|
|
1574
|
+
"type": {
|
|
1575
|
+
"text": "boolean"
|
|
1576
|
+
},
|
|
1577
|
+
"privacy": "private",
|
|
1578
|
+
"static": true,
|
|
1579
|
+
"default": "false",
|
|
1580
|
+
"inheritedFrom": {
|
|
1581
|
+
"name": "DraftComponentMixin",
|
|
1582
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1583
|
+
}
|
|
1584
|
+
}
|
|
1585
|
+
],
|
|
1586
|
+
"attributes": [
|
|
1587
|
+
{
|
|
1588
|
+
"name": "name",
|
|
1589
|
+
"type": {
|
|
1590
|
+
"text": "string"
|
|
1591
|
+
},
|
|
1592
|
+
"default": "\"\"",
|
|
1593
|
+
"description": "The name of the icon to display, as defined by nordicons.",
|
|
1594
|
+
"fieldName": "name"
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
"name": "size",
|
|
1598
|
+
"type": {
|
|
1599
|
+
"text": "\"xs\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
1600
|
+
},
|
|
1601
|
+
"default": "\"m\"",
|
|
1602
|
+
"description": "The size of the icon.",
|
|
1603
|
+
"fieldName": "size"
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
"name": "color",
|
|
1607
|
+
"type": {
|
|
1608
|
+
"text": "string | undefined"
|
|
1609
|
+
},
|
|
1610
|
+
"description": "The color of the icon.\nCan accept any valid CSS color value, including custom properties.",
|
|
1611
|
+
"fieldName": "color"
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
"name": "label",
|
|
1615
|
+
"type": {
|
|
1616
|
+
"text": "string | undefined"
|
|
1617
|
+
},
|
|
1618
|
+
"description": "An accessible label for the icon.\nIf no label is supplied, the icon is hidden from assistive technology.",
|
|
1619
|
+
"fieldName": "label"
|
|
1620
|
+
}
|
|
1621
|
+
],
|
|
1622
|
+
"mixins": [
|
|
1623
|
+
{
|
|
1624
|
+
"name": "DraftComponentMixin",
|
|
1625
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
1626
|
+
}
|
|
1627
|
+
],
|
|
1628
|
+
"superclass": {
|
|
1629
|
+
"name": "LitElement",
|
|
1630
|
+
"package": "lit"
|
|
1631
|
+
},
|
|
1632
|
+
"status": "draft",
|
|
1633
|
+
"category": "image",
|
|
1634
|
+
"tagName": "nord-icon",
|
|
1635
|
+
"customElement": true
|
|
1636
|
+
}
|
|
1637
|
+
],
|
|
1638
|
+
"exports": [
|
|
1639
|
+
{
|
|
1640
|
+
"kind": "js",
|
|
1641
|
+
"name": "default",
|
|
1642
|
+
"declaration": {
|
|
1643
|
+
"name": "Icon",
|
|
1644
|
+
"module": "src/icon/Icon.ts"
|
|
1645
|
+
}
|
|
1646
|
+
},
|
|
1647
|
+
{
|
|
1648
|
+
"kind": "custom-element-definition",
|
|
1649
|
+
"name": "nord-icon",
|
|
1650
|
+
"declaration": {
|
|
1651
|
+
"name": "Icon",
|
|
1652
|
+
"module": "src/icon/Icon.ts"
|
|
1653
|
+
}
|
|
1654
|
+
}
|
|
1655
|
+
]
|
|
1656
|
+
},
|
|
1657
|
+
{
|
|
1658
|
+
"kind": "javascript-module",
|
|
1659
|
+
"path": "src/input/Input.ts",
|
|
1660
|
+
"declarations": [
|
|
1661
|
+
{
|
|
1662
|
+
"kind": "class",
|
|
1663
|
+
"description": "Inputs are used to allow users to provide text input when the expected input is short.\nAs well as plain text, Input supports various types of text, including passwords and numbers.",
|
|
1664
|
+
"name": "Input",
|
|
1665
|
+
"slots": [
|
|
1666
|
+
{
|
|
1667
|
+
"description": "Use when a label requires more than plain text.",
|
|
1668
|
+
"name": "label"
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
1672
|
+
"name": "hint"
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
"description": "Optional slot that holds error text for the input.",
|
|
1676
|
+
"name": "error"
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
"description": "Optional slot that holds an icon for the input.",
|
|
1680
|
+
"name": "before"
|
|
1681
|
+
}
|
|
1682
|
+
],
|
|
1683
|
+
"members": [
|
|
1684
|
+
{
|
|
1685
|
+
"kind": "field",
|
|
1686
|
+
"name": "type",
|
|
1687
|
+
"type": {
|
|
1688
|
+
"text": "\"text\" | \"email\" | \"password\" | \"tel\" | \"url\" | \"search\" | \"number\""
|
|
1689
|
+
},
|
|
1690
|
+
"default": "\"text\"",
|
|
1691
|
+
"description": "The type of the input.",
|
|
1692
|
+
"attribute": "type"
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"kind": "field",
|
|
1696
|
+
"name": "hint",
|
|
1697
|
+
"type": {
|
|
1698
|
+
"text": "string | undefined"
|
|
1699
|
+
},
|
|
1700
|
+
"description": "Optional hint text to be displayed with input. Alternatively use the hint slot.",
|
|
1701
|
+
"attribute": "hint"
|
|
1702
|
+
},
|
|
1703
|
+
{
|
|
1704
|
+
"kind": "field",
|
|
1705
|
+
"name": "hideLabel",
|
|
1706
|
+
"type": {
|
|
1707
|
+
"text": "boolean"
|
|
1708
|
+
},
|
|
1709
|
+
"default": "false",
|
|
1710
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
1711
|
+
"attribute": "hide-label"
|
|
1712
|
+
},
|
|
1713
|
+
{
|
|
1714
|
+
"kind": "field",
|
|
1715
|
+
"name": "placeholder",
|
|
1716
|
+
"type": {
|
|
1717
|
+
"text": "string | undefined"
|
|
1718
|
+
},
|
|
1719
|
+
"description": "Placeholder of the input.",
|
|
1720
|
+
"attribute": "placeholder"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"kind": "field",
|
|
1724
|
+
"name": "error",
|
|
1725
|
+
"type": {
|
|
1726
|
+
"text": "string | undefined"
|
|
1727
|
+
},
|
|
1728
|
+
"description": "Optional error to be shown with input. Alternatively use the error slot.",
|
|
1729
|
+
"attribute": "error"
|
|
1730
|
+
},
|
|
1731
|
+
{
|
|
1732
|
+
"kind": "field",
|
|
1733
|
+
"name": "expand",
|
|
1734
|
+
"type": {
|
|
1735
|
+
"text": "boolean"
|
|
1736
|
+
},
|
|
1737
|
+
"default": "false",
|
|
1738
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
1739
|
+
"attribute": "expand",
|
|
1740
|
+
"reflects": true
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
"kind": "method",
|
|
1744
|
+
"name": "renderLabel",
|
|
1745
|
+
"privacy": "private",
|
|
1746
|
+
"parameters": [
|
|
1747
|
+
{
|
|
1748
|
+
"name": "hasHint",
|
|
1749
|
+
"type": {
|
|
1750
|
+
"text": "boolean"
|
|
1751
|
+
}
|
|
1752
|
+
}
|
|
1753
|
+
]
|
|
1754
|
+
},
|
|
1755
|
+
{
|
|
1756
|
+
"kind": "method",
|
|
1757
|
+
"name": "renderHint",
|
|
1758
|
+
"privacy": "private"
|
|
1759
|
+
},
|
|
1760
|
+
{
|
|
1761
|
+
"kind": "method",
|
|
1762
|
+
"name": "renderError",
|
|
1763
|
+
"privacy": "private"
|
|
1764
|
+
},
|
|
1765
|
+
{
|
|
1766
|
+
"kind": "method",
|
|
1767
|
+
"name": "handleSlotChange",
|
|
1768
|
+
"privacy": "private"
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"kind": "method",
|
|
1772
|
+
"name": "hasSlottedContent",
|
|
1773
|
+
"privacy": "private",
|
|
1774
|
+
"parameters": [
|
|
1775
|
+
{
|
|
1776
|
+
"name": "slotName",
|
|
1777
|
+
"type": {
|
|
1778
|
+
"text": "string"
|
|
1779
|
+
}
|
|
1780
|
+
}
|
|
1781
|
+
]
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
"kind": "field",
|
|
1785
|
+
"name": "label",
|
|
1786
|
+
"type": {
|
|
1787
|
+
"text": "string"
|
|
1788
|
+
},
|
|
1789
|
+
"default": "\"\"",
|
|
1790
|
+
"description": "Label for the input.",
|
|
1791
|
+
"attribute": "label",
|
|
1792
|
+
"inheritedFrom": {
|
|
1793
|
+
"name": "FormAssociatedMixin",
|
|
1794
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1795
|
+
}
|
|
1796
|
+
},
|
|
1797
|
+
{
|
|
1798
|
+
"kind": "field",
|
|
1799
|
+
"name": "required",
|
|
1800
|
+
"type": {
|
|
1801
|
+
"text": "boolean"
|
|
1802
|
+
},
|
|
1803
|
+
"default": "false",
|
|
1804
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
1805
|
+
"attribute": "required",
|
|
1806
|
+
"inheritedFrom": {
|
|
1807
|
+
"name": "FormAssociatedMixin",
|
|
1808
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1809
|
+
}
|
|
1810
|
+
},
|
|
1811
|
+
{
|
|
1812
|
+
"kind": "field",
|
|
1813
|
+
"name": "handleFormData",
|
|
1814
|
+
"privacy": "private",
|
|
1815
|
+
"inheritedFrom": {
|
|
1816
|
+
"name": "FormAssociatedMixin",
|
|
1817
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1818
|
+
}
|
|
1819
|
+
},
|
|
1820
|
+
{
|
|
1821
|
+
"kind": "method",
|
|
1822
|
+
"name": "handleChange",
|
|
1823
|
+
"privacy": "protected",
|
|
1824
|
+
"parameters": [
|
|
1825
|
+
{
|
|
1826
|
+
"name": "e",
|
|
1827
|
+
"type": {
|
|
1828
|
+
"text": "Event"
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
],
|
|
1832
|
+
"inheritedFrom": {
|
|
1833
|
+
"name": "FormAssociatedMixin",
|
|
1834
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1835
|
+
}
|
|
1836
|
+
},
|
|
1837
|
+
{
|
|
1838
|
+
"kind": "field",
|
|
1839
|
+
"name": "disabled",
|
|
1840
|
+
"type": {
|
|
1841
|
+
"text": "boolean"
|
|
1842
|
+
},
|
|
1843
|
+
"default": "false",
|
|
1844
|
+
"description": "Makes the input component disabled.\nThis prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies.",
|
|
1845
|
+
"attribute": "disabled",
|
|
1846
|
+
"inheritedFrom": {
|
|
1847
|
+
"name": "InputMixin",
|
|
1848
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1849
|
+
}
|
|
1850
|
+
},
|
|
1851
|
+
{
|
|
1852
|
+
"kind": "field",
|
|
1853
|
+
"name": "name",
|
|
1854
|
+
"type": {
|
|
1855
|
+
"text": "string | undefined"
|
|
1856
|
+
},
|
|
1857
|
+
"description": "The name of the input component.",
|
|
1858
|
+
"attribute": "name",
|
|
1859
|
+
"inheritedFrom": {
|
|
1860
|
+
"name": "InputMixin",
|
|
1861
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1862
|
+
}
|
|
1863
|
+
},
|
|
1864
|
+
{
|
|
1865
|
+
"kind": "field",
|
|
1866
|
+
"name": "value",
|
|
1867
|
+
"type": {
|
|
1868
|
+
"text": "string | undefined"
|
|
1869
|
+
},
|
|
1870
|
+
"description": "The value of the input component.",
|
|
1871
|
+
"attribute": "value",
|
|
1872
|
+
"inheritedFrom": {
|
|
1873
|
+
"name": "InputMixin",
|
|
1874
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1875
|
+
}
|
|
1876
|
+
},
|
|
1877
|
+
{
|
|
1878
|
+
"kind": "field",
|
|
1879
|
+
"name": "form",
|
|
1880
|
+
"description": "Gets the form, if any, associated with the input element.",
|
|
1881
|
+
"inheritedFrom": {
|
|
1882
|
+
"name": "InputMixin",
|
|
1883
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1884
|
+
}
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
"kind": "field",
|
|
1888
|
+
"name": "focusableRef",
|
|
1889
|
+
"privacy": "protected",
|
|
1890
|
+
"inheritedFrom": {
|
|
1891
|
+
"name": "FocusableMixin",
|
|
1892
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1893
|
+
}
|
|
1894
|
+
},
|
|
1895
|
+
{
|
|
1896
|
+
"kind": "method",
|
|
1897
|
+
"name": "focus",
|
|
1898
|
+
"parameters": [
|
|
1899
|
+
{
|
|
1900
|
+
"name": "options",
|
|
1901
|
+
"optional": true,
|
|
1902
|
+
"type": {
|
|
1903
|
+
"text": "FocusOptions"
|
|
1904
|
+
},
|
|
1905
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1906
|
+
}
|
|
1907
|
+
],
|
|
1908
|
+
"description": "Programmatically move focus to the component",
|
|
1909
|
+
"inheritedFrom": {
|
|
1910
|
+
"name": "FocusableMixin",
|
|
1911
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
"kind": "method",
|
|
1916
|
+
"name": "blur",
|
|
1917
|
+
"description": "Programmatically remove focus from the component.",
|
|
1918
|
+
"inheritedFrom": {
|
|
1919
|
+
"name": "FocusableMixin",
|
|
1920
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1921
|
+
}
|
|
1922
|
+
},
|
|
1923
|
+
{
|
|
1924
|
+
"kind": "method",
|
|
1925
|
+
"name": "click",
|
|
1926
|
+
"description": "Programmatically simulates a click on the component.",
|
|
1927
|
+
"inheritedFrom": {
|
|
1928
|
+
"name": "FocusableMixin",
|
|
1929
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1930
|
+
}
|
|
1931
|
+
},
|
|
1932
|
+
{
|
|
1933
|
+
"kind": "field",
|
|
1934
|
+
"name": "_warningLogged",
|
|
1935
|
+
"type": {
|
|
1936
|
+
"text": "boolean"
|
|
1937
|
+
},
|
|
1938
|
+
"privacy": "private",
|
|
1939
|
+
"static": true,
|
|
1940
|
+
"default": "false",
|
|
1941
|
+
"inheritedFrom": {
|
|
1942
|
+
"name": "DraftComponentMixin",
|
|
1943
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1944
|
+
}
|
|
1945
|
+
}
|
|
1946
|
+
],
|
|
1947
|
+
"attributes": [
|
|
1948
|
+
{
|
|
1949
|
+
"name": "type",
|
|
1950
|
+
"type": {
|
|
1951
|
+
"text": "\"text\" | \"email\" | \"password\" | \"tel\" | \"url\" | \"search\" | \"number\""
|
|
1952
|
+
},
|
|
1953
|
+
"default": "\"text\"",
|
|
1954
|
+
"description": "The type of the input.",
|
|
1955
|
+
"fieldName": "type"
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
"name": "hint",
|
|
1959
|
+
"type": {
|
|
1960
|
+
"text": "string | undefined"
|
|
1961
|
+
},
|
|
1962
|
+
"description": "Optional hint text to be displayed with input. Alternatively use the hint slot.",
|
|
1963
|
+
"fieldName": "hint"
|
|
1964
|
+
},
|
|
1965
|
+
{
|
|
1966
|
+
"name": "hide-label",
|
|
1967
|
+
"type": {
|
|
1968
|
+
"text": "boolean"
|
|
1969
|
+
},
|
|
1970
|
+
"default": "false",
|
|
1971
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
1972
|
+
"fieldName": "hideLabel"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"name": "placeholder",
|
|
1976
|
+
"type": {
|
|
1977
|
+
"text": "string | undefined"
|
|
1978
|
+
},
|
|
1979
|
+
"description": "Placeholder of the input.",
|
|
1980
|
+
"fieldName": "placeholder"
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
"name": "error",
|
|
1984
|
+
"type": {
|
|
1985
|
+
"text": "string | undefined"
|
|
1986
|
+
},
|
|
1987
|
+
"description": "Optional error to be shown with input. Alternatively use the error slot.",
|
|
1988
|
+
"fieldName": "error"
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
"name": "expand",
|
|
1992
|
+
"type": {
|
|
1993
|
+
"text": "boolean"
|
|
1994
|
+
},
|
|
1995
|
+
"default": "false",
|
|
1996
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
1997
|
+
"fieldName": "expand"
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
"name": "label",
|
|
2001
|
+
"type": {
|
|
2002
|
+
"text": "string"
|
|
2003
|
+
},
|
|
2004
|
+
"default": "\"\"",
|
|
2005
|
+
"description": "Label for the input.",
|
|
2006
|
+
"fieldName": "label",
|
|
2007
|
+
"inheritedFrom": {
|
|
2008
|
+
"name": "FormAssociatedMixin",
|
|
2009
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2010
|
+
}
|
|
2011
|
+
},
|
|
2012
|
+
{
|
|
2013
|
+
"name": "required",
|
|
2014
|
+
"type": {
|
|
2015
|
+
"text": "boolean"
|
|
2016
|
+
},
|
|
2017
|
+
"default": "false",
|
|
2018
|
+
"description": "Determines whether the input is required or not.\nAn input marked as required will be announced as such to users of assistive technology.\nWhen using this property you need to also set “novalidate” attribute on a form element to prevent browser from displaying its own validation errors.",
|
|
2019
|
+
"fieldName": "required",
|
|
2020
|
+
"inheritedFrom": {
|
|
2021
|
+
"name": "FormAssociatedMixin",
|
|
2022
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2023
|
+
}
|
|
2024
|
+
},
|
|
2025
|
+
{
|
|
2026
|
+
"name": "disabled",
|
|
2027
|
+
"type": {
|
|
2028
|
+
"text": "boolean"
|
|
2029
|
+
},
|
|
2030
|
+
"default": "false",
|
|
2031
|
+
"description": "Makes the input component disabled.\nThis prevents users from being able to interact with the component, and conveys its inactive state to assistive technologies.",
|
|
2032
|
+
"fieldName": "disabled",
|
|
2033
|
+
"inheritedFrom": {
|
|
2034
|
+
"name": "InputMixin",
|
|
2035
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
2036
|
+
}
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
"name": "name",
|
|
2040
|
+
"type": {
|
|
2041
|
+
"text": "string | undefined"
|
|
2042
|
+
},
|
|
2043
|
+
"description": "The name of the input component.",
|
|
2044
|
+
"fieldName": "name",
|
|
2045
|
+
"inheritedFrom": {
|
|
2046
|
+
"name": "InputMixin",
|
|
2047
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
2048
|
+
}
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
"name": "value",
|
|
2052
|
+
"type": {
|
|
2053
|
+
"text": "string | undefined"
|
|
2054
|
+
},
|
|
2055
|
+
"description": "The value of the input component.",
|
|
2056
|
+
"fieldName": "value",
|
|
2057
|
+
"inheritedFrom": {
|
|
2058
|
+
"name": "InputMixin",
|
|
2059
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
2060
|
+
}
|
|
2061
|
+
}
|
|
2062
|
+
],
|
|
2063
|
+
"mixins": [
|
|
2064
|
+
{
|
|
2065
|
+
"name": "FormAssociatedMixin",
|
|
2066
|
+
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
2067
|
+
},
|
|
2068
|
+
{
|
|
2069
|
+
"name": "InputMixin",
|
|
2070
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
2071
|
+
},
|
|
2072
|
+
{
|
|
2073
|
+
"name": "FocusableMixin",
|
|
2074
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
2075
|
+
},
|
|
2076
|
+
{
|
|
2077
|
+
"name": "DraftComponentMixin",
|
|
2078
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
2079
|
+
}
|
|
2080
|
+
],
|
|
2081
|
+
"superclass": {
|
|
2082
|
+
"name": "LitElement",
|
|
2083
|
+
"package": "lit"
|
|
2084
|
+
},
|
|
2085
|
+
"status": "draft",
|
|
2086
|
+
"category": "form",
|
|
2087
|
+
"tagName": "nord-input",
|
|
2088
|
+
"customElement": true,
|
|
2089
|
+
"events": [
|
|
2090
|
+
{
|
|
2091
|
+
"name": "change",
|
|
2092
|
+
"type": {
|
|
2093
|
+
"text": "NordEvent"
|
|
2094
|
+
},
|
|
2095
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
2096
|
+
"inheritedFrom": {
|
|
2097
|
+
"name": "FormAssociatedMixin",
|
|
2098
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
]
|
|
2102
|
+
}
|
|
2103
|
+
],
|
|
2104
|
+
"exports": [
|
|
2105
|
+
{
|
|
2106
|
+
"kind": "js",
|
|
2107
|
+
"name": "default",
|
|
2108
|
+
"declaration": {
|
|
2109
|
+
"name": "Input",
|
|
2110
|
+
"module": "src/input/Input.ts"
|
|
2111
|
+
}
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
"kind": "custom-element-definition",
|
|
2115
|
+
"name": "nord-input",
|
|
2116
|
+
"declaration": {
|
|
2117
|
+
"name": "Input",
|
|
2118
|
+
"module": "src/input/Input.ts"
|
|
2119
|
+
}
|
|
2120
|
+
}
|
|
2121
|
+
]
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
"kind": "javascript-module",
|
|
2125
|
+
"path": "src/select/Select.ts",
|
|
2126
|
+
"declarations": [
|
|
2127
|
+
{
|
|
2128
|
+
"kind": "class",
|
|
2129
|
+
"description": "Select lets users choose one option from an options menu.\nConsider using select when you have 5 or more options to choose from.",
|
|
2130
|
+
"name": "Select",
|
|
2131
|
+
"slots": [
|
|
2132
|
+
{
|
|
2133
|
+
"description": "Default slot for holding <option> elements.",
|
|
2134
|
+
"name": ""
|
|
2135
|
+
},
|
|
2136
|
+
{
|
|
2137
|
+
"description": "Use when a label requires more than plain text.",
|
|
2138
|
+
"name": "label"
|
|
2139
|
+
},
|
|
2140
|
+
{
|
|
2141
|
+
"description": "Use when a hint requires more than plain text.",
|
|
2142
|
+
"name": "hint"
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
"description": "Optional slot that holds error text for the input.",
|
|
2146
|
+
"name": "error"
|
|
2147
|
+
}
|
|
2148
|
+
],
|
|
2149
|
+
"members": [
|
|
2150
|
+
{
|
|
2151
|
+
"kind": "field",
|
|
2152
|
+
"name": "hint",
|
|
2153
|
+
"type": {
|
|
2154
|
+
"text": "string | undefined"
|
|
2155
|
+
},
|
|
2156
|
+
"description": "Optional hint text to be displayed with select. Alternatively use the hint slot.",
|
|
2157
|
+
"attribute": "hint"
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
"kind": "field",
|
|
2161
|
+
"name": "hideLabel",
|
|
2162
|
+
"type": {
|
|
2163
|
+
"text": "boolean"
|
|
2164
|
+
},
|
|
2165
|
+
"default": "false",
|
|
2166
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
2167
|
+
"attribute": "hide-label"
|
|
2168
|
+
},
|
|
2169
|
+
{
|
|
2170
|
+
"kind": "field",
|
|
2171
|
+
"name": "placeholder",
|
|
2172
|
+
"type": {
|
|
2173
|
+
"text": "string | undefined"
|
|
2174
|
+
},
|
|
2175
|
+
"description": "Hint text to display as the first option of the select element.",
|
|
2176
|
+
"attribute": "placeholder"
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
"kind": "field",
|
|
2180
|
+
"name": "error",
|
|
2181
|
+
"type": {
|
|
2182
|
+
"text": "string | undefined"
|
|
2183
|
+
},
|
|
2184
|
+
"description": "Optional error to be shown with the select. Alternatively use the error slot.",
|
|
2185
|
+
"attribute": "error"
|
|
2186
|
+
},
|
|
2187
|
+
{
|
|
2188
|
+
"kind": "field",
|
|
2189
|
+
"name": "expand",
|
|
2190
|
+
"type": {
|
|
2191
|
+
"text": "boolean"
|
|
2192
|
+
},
|
|
2193
|
+
"default": "false",
|
|
2194
|
+
"description": "Controls whether the select expands to fill the width of its container.",
|
|
2195
|
+
"attribute": "expand",
|
|
2196
|
+
"reflects": true
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
"kind": "method",
|
|
2200
|
+
"name": "handleSlotChange",
|
|
2201
|
+
"privacy": "private"
|
|
2202
|
+
},
|
|
2203
|
+
{
|
|
2204
|
+
"kind": "field",
|
|
2205
|
+
"name": "options",
|
|
2206
|
+
"privacy": "private"
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
"kind": "method",
|
|
2210
|
+
"name": "getButtonText",
|
|
2211
|
+
"privacy": "private",
|
|
2212
|
+
"return": {
|
|
2213
|
+
"type": {
|
|
2214
|
+
"text": "string"
|
|
2215
|
+
}
|
|
2216
|
+
},
|
|
2217
|
+
"parameters": [
|
|
2218
|
+
{
|
|
2219
|
+
"name": "options",
|
|
2220
|
+
"type": {
|
|
2221
|
+
"text": "HTMLOptionElement[]"
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
]
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
"kind": "method",
|
|
2228
|
+
"name": "renderLabel",
|
|
2229
|
+
"privacy": "private",
|
|
2230
|
+
"parameters": [
|
|
2231
|
+
{
|
|
2232
|
+
"name": "hasHint",
|
|
2233
|
+
"type": {
|
|
2234
|
+
"text": "boolean"
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
]
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
"kind": "method",
|
|
2241
|
+
"name": "renderHint",
|
|
2242
|
+
"privacy": "private"
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
"kind": "method",
|
|
2246
|
+
"name": "renderError",
|
|
2247
|
+
"privacy": "private"
|
|
2248
|
+
},
|
|
2249
|
+
{
|
|
2250
|
+
"kind": "method",
|
|
2251
|
+
"name": "renderOption",
|
|
729
2252
|
"privacy": "private",
|
|
730
2253
|
"parameters": [
|
|
731
2254
|
{
|
|
@@ -736,6 +2259,19 @@
|
|
|
736
2259
|
}
|
|
737
2260
|
]
|
|
738
2261
|
},
|
|
2262
|
+
{
|
|
2263
|
+
"kind": "method",
|
|
2264
|
+
"name": "hasSlottedContent",
|
|
2265
|
+
"privacy": "private",
|
|
2266
|
+
"parameters": [
|
|
2267
|
+
{
|
|
2268
|
+
"name": "slotName",
|
|
2269
|
+
"type": {
|
|
2270
|
+
"text": "string"
|
|
2271
|
+
}
|
|
2272
|
+
}
|
|
2273
|
+
]
|
|
2274
|
+
},
|
|
739
2275
|
{
|
|
740
2276
|
"kind": "field",
|
|
741
2277
|
"name": "label",
|
|
@@ -884,9 +2420,31 @@
|
|
|
884
2420
|
"name": "FocusableMixin",
|
|
885
2421
|
"module": "src/common/mixins/FocusableMixin.ts"
|
|
886
2422
|
}
|
|
2423
|
+
},
|
|
2424
|
+
{
|
|
2425
|
+
"kind": "field",
|
|
2426
|
+
"name": "_warningLogged",
|
|
2427
|
+
"type": {
|
|
2428
|
+
"text": "boolean"
|
|
2429
|
+
},
|
|
2430
|
+
"privacy": "private",
|
|
2431
|
+
"static": true,
|
|
2432
|
+
"default": "false",
|
|
2433
|
+
"inheritedFrom": {
|
|
2434
|
+
"name": "DraftComponentMixin",
|
|
2435
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
2436
|
+
}
|
|
887
2437
|
}
|
|
888
2438
|
],
|
|
889
2439
|
"attributes": [
|
|
2440
|
+
{
|
|
2441
|
+
"name": "hint",
|
|
2442
|
+
"type": {
|
|
2443
|
+
"text": "string | undefined"
|
|
2444
|
+
},
|
|
2445
|
+
"description": "Optional hint text to be displayed with select. Alternatively use the hint slot.",
|
|
2446
|
+
"fieldName": "hint"
|
|
2447
|
+
},
|
|
890
2448
|
{
|
|
891
2449
|
"name": "hide-label",
|
|
892
2450
|
"type": {
|
|
@@ -904,6 +2462,14 @@
|
|
|
904
2462
|
"description": "Hint text to display as the first option of the select element.",
|
|
905
2463
|
"fieldName": "placeholder"
|
|
906
2464
|
},
|
|
2465
|
+
{
|
|
2466
|
+
"name": "error",
|
|
2467
|
+
"type": {
|
|
2468
|
+
"text": "string | undefined"
|
|
2469
|
+
},
|
|
2470
|
+
"description": "Optional error to be shown with the select. Alternatively use the error slot.",
|
|
2471
|
+
"fieldName": "error"
|
|
2472
|
+
},
|
|
907
2473
|
{
|
|
908
2474
|
"name": "expand",
|
|
909
2475
|
"type": {
|
|
@@ -989,6 +2555,10 @@
|
|
|
989
2555
|
{
|
|
990
2556
|
"name": "FocusableMixin",
|
|
991
2557
|
"module": "/src/common/mixins/FocusableMixin.js"
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
"name": "DraftComponentMixin",
|
|
2561
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
992
2562
|
}
|
|
993
2563
|
],
|
|
994
2564
|
"superclass": {
|
|
@@ -996,6 +2566,7 @@
|
|
|
996
2566
|
"package": "lit"
|
|
997
2567
|
},
|
|
998
2568
|
"status": "draft",
|
|
2569
|
+
"category": "form",
|
|
999
2570
|
"tagName": "nord-select",
|
|
1000
2571
|
"customElement": true,
|
|
1001
2572
|
"events": [
|
|
@@ -1038,7 +2609,7 @@
|
|
|
1038
2609
|
"declarations": [
|
|
1039
2610
|
{
|
|
1040
2611
|
"kind": "class",
|
|
1041
|
-
"description": "Stack component
|
|
2612
|
+
"description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
|
|
1042
2613
|
"name": "Stack",
|
|
1043
2614
|
"slots": [
|
|
1044
2615
|
{
|
|
@@ -1068,6 +2639,30 @@
|
|
|
1068
2639
|
"description": "The direction of the stack.",
|
|
1069
2640
|
"attribute": "direction",
|
|
1070
2641
|
"reflects": true
|
|
2642
|
+
},
|
|
2643
|
+
{
|
|
2644
|
+
"kind": "field",
|
|
2645
|
+
"name": "alignItems",
|
|
2646
|
+
"type": {
|
|
2647
|
+
"text": "\"center\" | \"start\" | \"end\" | undefined"
|
|
2648
|
+
},
|
|
2649
|
+
"description": "How to align the child items inside the stack.",
|
|
2650
|
+
"attribute": "align-items",
|
|
2651
|
+
"reflects": true
|
|
2652
|
+
},
|
|
2653
|
+
{
|
|
2654
|
+
"kind": "field",
|
|
2655
|
+
"name": "_warningLogged",
|
|
2656
|
+
"type": {
|
|
2657
|
+
"text": "boolean"
|
|
2658
|
+
},
|
|
2659
|
+
"privacy": "private",
|
|
2660
|
+
"static": true,
|
|
2661
|
+
"default": "false",
|
|
2662
|
+
"inheritedFrom": {
|
|
2663
|
+
"name": "DraftComponentMixin",
|
|
2664
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
2665
|
+
}
|
|
1071
2666
|
}
|
|
1072
2667
|
],
|
|
1073
2668
|
"attributes": [
|
|
@@ -1088,6 +2683,20 @@
|
|
|
1088
2683
|
"default": "\"vertical\"",
|
|
1089
2684
|
"description": "The direction of the stack.",
|
|
1090
2685
|
"fieldName": "direction"
|
|
2686
|
+
},
|
|
2687
|
+
{
|
|
2688
|
+
"name": "align-items",
|
|
2689
|
+
"type": {
|
|
2690
|
+
"text": "\"center\" | \"start\" | \"end\" | undefined"
|
|
2691
|
+
},
|
|
2692
|
+
"description": "How to align the child items inside the stack.",
|
|
2693
|
+
"fieldName": "alignItems"
|
|
2694
|
+
}
|
|
2695
|
+
],
|
|
2696
|
+
"mixins": [
|
|
2697
|
+
{
|
|
2698
|
+
"name": "DraftComponentMixin",
|
|
2699
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
1091
2700
|
}
|
|
1092
2701
|
],
|
|
1093
2702
|
"superclass": {
|
|
@@ -1095,6 +2704,7 @@
|
|
|
1095
2704
|
"package": "lit"
|
|
1096
2705
|
},
|
|
1097
2706
|
"status": "draft",
|
|
2707
|
+
"category": "structure",
|
|
1098
2708
|
"tagName": "nord-stack",
|
|
1099
2709
|
"customElement": true
|
|
1100
2710
|
}
|
|
@@ -1118,13 +2728,78 @@
|
|
|
1118
2728
|
}
|
|
1119
2729
|
]
|
|
1120
2730
|
},
|
|
2731
|
+
{
|
|
2732
|
+
"kind": "javascript-module",
|
|
2733
|
+
"path": "src/visually-hidden/VisuallyHidden.ts",
|
|
2734
|
+
"declarations": [
|
|
2735
|
+
{
|
|
2736
|
+
"kind": "class",
|
|
2737
|
+
"description": "Visually hidden is used when an element needs to be available\nto assistive technologies like screen readers, but be otherwise\nhidden.",
|
|
2738
|
+
"name": "VisuallyHidden",
|
|
2739
|
+
"slots": [
|
|
2740
|
+
{
|
|
2741
|
+
"description": "The visually hidden content.",
|
|
2742
|
+
"name": ""
|
|
2743
|
+
}
|
|
2744
|
+
],
|
|
2745
|
+
"members": [
|
|
2746
|
+
{
|
|
2747
|
+
"kind": "field",
|
|
2748
|
+
"name": "_warningLogged",
|
|
2749
|
+
"type": {
|
|
2750
|
+
"text": "boolean"
|
|
2751
|
+
},
|
|
2752
|
+
"privacy": "private",
|
|
2753
|
+
"static": true,
|
|
2754
|
+
"default": "false",
|
|
2755
|
+
"inheritedFrom": {
|
|
2756
|
+
"name": "DraftComponentMixin",
|
|
2757
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
2758
|
+
}
|
|
2759
|
+
}
|
|
2760
|
+
],
|
|
2761
|
+
"mixins": [
|
|
2762
|
+
{
|
|
2763
|
+
"name": "DraftComponentMixin",
|
|
2764
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
2765
|
+
}
|
|
2766
|
+
],
|
|
2767
|
+
"superclass": {
|
|
2768
|
+
"name": "LitElement",
|
|
2769
|
+
"package": "lit"
|
|
2770
|
+
},
|
|
2771
|
+
"status": "draft",
|
|
2772
|
+
"category": "text",
|
|
2773
|
+
"tagName": "nord-visually-hidden",
|
|
2774
|
+
"customElement": true
|
|
2775
|
+
}
|
|
2776
|
+
],
|
|
2777
|
+
"exports": [
|
|
2778
|
+
{
|
|
2779
|
+
"kind": "js",
|
|
2780
|
+
"name": "default",
|
|
2781
|
+
"declaration": {
|
|
2782
|
+
"name": "VisuallyHidden",
|
|
2783
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
2784
|
+
}
|
|
2785
|
+
},
|
|
2786
|
+
{
|
|
2787
|
+
"kind": "custom-element-definition",
|
|
2788
|
+
"name": "nord-visually-hidden",
|
|
2789
|
+
"declaration": {
|
|
2790
|
+
"name": "VisuallyHidden",
|
|
2791
|
+
"module": "src/visually-hidden/VisuallyHidden.ts"
|
|
2792
|
+
}
|
|
2793
|
+
}
|
|
2794
|
+
]
|
|
2795
|
+
},
|
|
1121
2796
|
{
|
|
1122
2797
|
"kind": "javascript-module",
|
|
1123
2798
|
"path": "src/table/Table.ts",
|
|
1124
2799
|
"declarations": [
|
|
1125
2800
|
{
|
|
1126
2801
|
"kind": "class",
|
|
1127
|
-
"description": "Table is
|
|
2802
|
+
"description": "Table is used to organize and display information from a data set.\nProvides table styles in addition to features like sticky\nheaders and support for narrow viewports.",
|
|
1128
2803
|
"name": "Table",
|
|
1129
2804
|
"slots": [
|
|
1130
2805
|
{
|
|
@@ -1155,6 +2830,20 @@
|
|
|
1155
2830
|
"name": "createRenderRoot",
|
|
1156
2831
|
"privacy": "protected",
|
|
1157
2832
|
"description": "opt out of shadow dom"
|
|
2833
|
+
},
|
|
2834
|
+
{
|
|
2835
|
+
"kind": "field",
|
|
2836
|
+
"name": "_warningLogged",
|
|
2837
|
+
"type": {
|
|
2838
|
+
"text": "boolean"
|
|
2839
|
+
},
|
|
2840
|
+
"privacy": "private",
|
|
2841
|
+
"static": true,
|
|
2842
|
+
"default": "false",
|
|
2843
|
+
"inheritedFrom": {
|
|
2844
|
+
"name": "DraftComponentMixin",
|
|
2845
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
2846
|
+
}
|
|
1158
2847
|
}
|
|
1159
2848
|
],
|
|
1160
2849
|
"attributes": [
|
|
@@ -1168,11 +2857,18 @@
|
|
|
1168
2857
|
"fieldName": "density"
|
|
1169
2858
|
}
|
|
1170
2859
|
],
|
|
2860
|
+
"mixins": [
|
|
2861
|
+
{
|
|
2862
|
+
"name": "DraftComponentMixin",
|
|
2863
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
2864
|
+
}
|
|
2865
|
+
],
|
|
1171
2866
|
"superclass": {
|
|
1172
2867
|
"name": "LitElement",
|
|
1173
2868
|
"package": "lit"
|
|
1174
2869
|
},
|
|
1175
2870
|
"status": "draft",
|
|
2871
|
+
"category": "list",
|
|
1176
2872
|
"tagName": "nord-table",
|
|
1177
2873
|
"customElement": true
|
|
1178
2874
|
}
|
|
@@ -1198,43 +2894,204 @@
|
|
|
1198
2894
|
},
|
|
1199
2895
|
{
|
|
1200
2896
|
"kind": "javascript-module",
|
|
1201
|
-
"path": "src/
|
|
2897
|
+
"path": "src/common/controllers/LightDismissController.ts",
|
|
1202
2898
|
"declarations": [
|
|
1203
2899
|
{
|
|
1204
2900
|
"kind": "class",
|
|
1205
|
-
"description": "
|
|
1206
|
-
"name": "
|
|
1207
|
-
"
|
|
2901
|
+
"description": "",
|
|
2902
|
+
"name": "LightDismissController",
|
|
2903
|
+
"members": [
|
|
1208
2904
|
{
|
|
1209
|
-
"
|
|
1210
|
-
"name": ""
|
|
2905
|
+
"kind": "field",
|
|
2906
|
+
"name": "host",
|
|
2907
|
+
"type": {
|
|
2908
|
+
"text": "LitElement"
|
|
2909
|
+
},
|
|
2910
|
+
"privacy": "private",
|
|
2911
|
+
"default": "host"
|
|
2912
|
+
},
|
|
2913
|
+
{
|
|
2914
|
+
"kind": "field",
|
|
2915
|
+
"name": "shortcut",
|
|
2916
|
+
"type": {
|
|
2917
|
+
"text": "ShortcutController"
|
|
2918
|
+
},
|
|
2919
|
+
"privacy": "private",
|
|
2920
|
+
"default": "new ShortcutController(this.host, { Escape: onDismiss })"
|
|
2921
|
+
},
|
|
2922
|
+
{
|
|
2923
|
+
"kind": "field",
|
|
2924
|
+
"name": "onDismiss",
|
|
2925
|
+
"type": {
|
|
2926
|
+
"text": "EventListener"
|
|
2927
|
+
},
|
|
2928
|
+
"default": "onDismiss"
|
|
2929
|
+
},
|
|
2930
|
+
{
|
|
2931
|
+
"kind": "method",
|
|
2932
|
+
"name": "hostConnected"
|
|
2933
|
+
},
|
|
2934
|
+
{
|
|
2935
|
+
"kind": "method",
|
|
2936
|
+
"name": "hostDisconnected"
|
|
2937
|
+
},
|
|
2938
|
+
{
|
|
2939
|
+
"kind": "field",
|
|
2940
|
+
"name": "handleClickOut",
|
|
2941
|
+
"privacy": "private"
|
|
1211
2942
|
}
|
|
1212
|
-
]
|
|
1213
|
-
"members": [],
|
|
1214
|
-
"superclass": {
|
|
1215
|
-
"name": "LitElement",
|
|
1216
|
-
"package": "lit"
|
|
1217
|
-
},
|
|
1218
|
-
"status": "draft",
|
|
1219
|
-
"tagName": "nord-visually-hidden",
|
|
1220
|
-
"customElement": true
|
|
2943
|
+
]
|
|
1221
2944
|
}
|
|
1222
2945
|
],
|
|
1223
2946
|
"exports": [
|
|
1224
2947
|
{
|
|
1225
2948
|
"kind": "js",
|
|
1226
|
-
"name": "
|
|
2949
|
+
"name": "LightDismissController",
|
|
1227
2950
|
"declaration": {
|
|
1228
|
-
"name": "
|
|
1229
|
-
"module": "src/
|
|
2951
|
+
"name": "LightDismissController",
|
|
2952
|
+
"module": "src/common/controllers/LightDismissController.ts"
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
]
|
|
2956
|
+
},
|
|
2957
|
+
{
|
|
2958
|
+
"kind": "javascript-module",
|
|
2959
|
+
"path": "src/common/controllers/ShortcutController.ts",
|
|
2960
|
+
"declarations": [
|
|
2961
|
+
{
|
|
2962
|
+
"kind": "class",
|
|
2963
|
+
"description": "",
|
|
2964
|
+
"name": "ShortcutController",
|
|
2965
|
+
"members": [
|
|
2966
|
+
{
|
|
2967
|
+
"kind": "field",
|
|
2968
|
+
"name": "target",
|
|
2969
|
+
"type": {
|
|
2970
|
+
"text": "ShortcutTarget"
|
|
2971
|
+
},
|
|
2972
|
+
"privacy": "private",
|
|
2973
|
+
"default": "target"
|
|
2974
|
+
},
|
|
2975
|
+
{
|
|
2976
|
+
"kind": "field",
|
|
2977
|
+
"name": "shortcuts",
|
|
2978
|
+
"type": {
|
|
2979
|
+
"text": "KeyBindingMap | undefined"
|
|
2980
|
+
},
|
|
2981
|
+
"privacy": "private",
|
|
2982
|
+
"default": "shortcuts"
|
|
2983
|
+
},
|
|
2984
|
+
{
|
|
2985
|
+
"kind": "field",
|
|
2986
|
+
"name": "unregister",
|
|
2987
|
+
"type": {
|
|
2988
|
+
"text": "ReturnType<typeof tinykeys> | undefined"
|
|
2989
|
+
},
|
|
2990
|
+
"privacy": "private"
|
|
2991
|
+
},
|
|
2992
|
+
{
|
|
2993
|
+
"kind": "method",
|
|
2994
|
+
"name": "hostConnected"
|
|
2995
|
+
},
|
|
2996
|
+
{
|
|
2997
|
+
"kind": "method",
|
|
2998
|
+
"name": "hostDisconnected"
|
|
2999
|
+
},
|
|
3000
|
+
{
|
|
3001
|
+
"kind": "method",
|
|
3002
|
+
"name": "unbind"
|
|
3003
|
+
},
|
|
3004
|
+
{
|
|
3005
|
+
"kind": "method",
|
|
3006
|
+
"name": "bind",
|
|
3007
|
+
"parameters": [
|
|
3008
|
+
{
|
|
3009
|
+
"name": "shortcuts",
|
|
3010
|
+
"type": {
|
|
3011
|
+
"text": "KeyBindingMap"
|
|
3012
|
+
}
|
|
3013
|
+
}
|
|
3014
|
+
]
|
|
3015
|
+
}
|
|
3016
|
+
]
|
|
3017
|
+
}
|
|
3018
|
+
],
|
|
3019
|
+
"exports": [
|
|
3020
|
+
{
|
|
3021
|
+
"kind": "js",
|
|
3022
|
+
"name": "ShortcutController",
|
|
3023
|
+
"declaration": {
|
|
3024
|
+
"name": "ShortcutController",
|
|
3025
|
+
"module": "src/common/controllers/ShortcutController.ts"
|
|
1230
3026
|
}
|
|
1231
3027
|
},
|
|
1232
3028
|
{
|
|
1233
|
-
"kind": "
|
|
1234
|
-
"name": "
|
|
3029
|
+
"kind": "js",
|
|
3030
|
+
"name": "ShortcutMap",
|
|
1235
3031
|
"declaration": {
|
|
1236
|
-
"name": "
|
|
1237
|
-
"module": "src/
|
|
3032
|
+
"name": "KeyBindingMap",
|
|
3033
|
+
"module": "src/common/controllers/ShortcutController.ts"
|
|
3034
|
+
}
|
|
3035
|
+
}
|
|
3036
|
+
]
|
|
3037
|
+
},
|
|
3038
|
+
{
|
|
3039
|
+
"kind": "javascript-module",
|
|
3040
|
+
"path": "src/common/directives/cond.ts",
|
|
3041
|
+
"declarations": [
|
|
3042
|
+
{
|
|
3043
|
+
"kind": "variable",
|
|
3044
|
+
"name": "cond"
|
|
3045
|
+
}
|
|
3046
|
+
],
|
|
3047
|
+
"exports": [
|
|
3048
|
+
{
|
|
3049
|
+
"kind": "js",
|
|
3050
|
+
"name": "cond",
|
|
3051
|
+
"declaration": {
|
|
3052
|
+
"name": "cond",
|
|
3053
|
+
"module": "src/common/directives/cond.ts"
|
|
3054
|
+
}
|
|
3055
|
+
}
|
|
3056
|
+
]
|
|
3057
|
+
},
|
|
3058
|
+
{
|
|
3059
|
+
"kind": "javascript-module",
|
|
3060
|
+
"path": "src/common/mixins/DraftComponentMixin.ts",
|
|
3061
|
+
"declarations": [
|
|
3062
|
+
{
|
|
3063
|
+
"kind": "mixin",
|
|
3064
|
+
"description": "",
|
|
3065
|
+
"name": "DraftComponentMixin",
|
|
3066
|
+
"members": [
|
|
3067
|
+
{
|
|
3068
|
+
"kind": "field",
|
|
3069
|
+
"name": "_warningLogged",
|
|
3070
|
+
"type": {
|
|
3071
|
+
"text": "boolean"
|
|
3072
|
+
},
|
|
3073
|
+
"privacy": "private",
|
|
3074
|
+
"static": true,
|
|
3075
|
+
"default": "false"
|
|
3076
|
+
}
|
|
3077
|
+
],
|
|
3078
|
+
"parameters": [
|
|
3079
|
+
{
|
|
3080
|
+
"name": "superClass",
|
|
3081
|
+
"type": {
|
|
3082
|
+
"text": "T"
|
|
3083
|
+
}
|
|
3084
|
+
}
|
|
3085
|
+
]
|
|
3086
|
+
}
|
|
3087
|
+
],
|
|
3088
|
+
"exports": [
|
|
3089
|
+
{
|
|
3090
|
+
"kind": "js",
|
|
3091
|
+
"name": "DraftComponentMixin",
|
|
3092
|
+
"declaration": {
|
|
3093
|
+
"name": "DraftComponentMixin",
|
|
3094
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1238
3095
|
}
|
|
1239
3096
|
}
|
|
1240
3097
|
]
|