@nordhealth/components 1.0.0-alpha.45 → 1.0.0-alpha.46
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 +1744 -1153
- package/lib/Badge.js +1 -1
- package/lib/Button.js +1 -1
- package/lib/{Calendar-a3670c4d.js → Calendar-0249fe40.js} +2 -2
- package/lib/{Calendar-a3670c4d.js.map → Calendar-0249fe40.js.map} +1 -1
- package/lib/Calendar.js +1 -1
- package/lib/Card.js +1 -1
- package/lib/Checkbox.js +2 -0
- package/lib/Checkbox.js.map +1 -0
- package/lib/CommandMenu.js +1 -1
- package/lib/CommandMenu.js.map +1 -1
- package/lib/CommandMenuAction.js +1 -1
- package/lib/DatePicker.js +1 -1
- package/lib/{FormField-51d4bc33.js → FormField-d45dea82.js} +2 -2
- package/lib/{FormField-51d4bc33.js.map → FormField-d45dea82.js.map} +1 -1
- package/lib/Icon.js +1 -1
- package/lib/Input.js +1 -1
- package/lib/{InputMixin-3557c381.js → InputMixin-67983448.js} +2 -2
- package/lib/{InputMixin-3557c381.js.map → InputMixin-67983448.js.map} +1 -1
- package/lib/Select.js +1 -1
- package/lib/Spinner.js +1 -1
- package/lib/Stack.js +1 -1
- package/lib/Table.js +1 -1
- package/lib/{TextField-fa6242da.js → TextField-8f1a0294.js} +2 -2
- package/lib/TextField-8f1a0294.js.map +1 -0
- package/lib/Textarea.js +1 -1
- package/lib/VisuallyHidden.js +1 -1
- package/lib/{class-map-756151db.js → class-map-8601d1a3.js} +2 -2
- package/lib/class-map-8601d1a3.js.map +1 -0
- package/lib/{directive-e9ce14b4.js → directive-de55b00a.js} +1 -1
- package/lib/directive-de55b00a.js.map +1 -0
- package/lib/{if-defined-9acae812.js → if-defined-c9888cf2.js} +2 -2
- package/lib/if-defined-c9888cf2.js.map +1 -0
- package/lib/index.js +1 -1
- package/lib/{lit-element-5ddf42d5.js → lit-element-8f368fa0.js} +1 -1
- package/lib/lit-element-8f368fa0.js.map +1 -0
- package/lib/month-view.js +1 -1
- package/lib/{ref-9addd32e.js → ref-c92ec298.js} +2 -2
- package/lib/ref-c92ec298.js.map +1 -0
- package/lib/src/badge/Badge.d.ts +1 -1
- package/lib/src/button/Button.d.ts +1 -1
- package/lib/src/calendar/Calendar.d.ts +1 -1
- package/lib/src/calendar/month-view.d.ts +2 -2
- package/lib/src/card/Card.d.ts +1 -1
- package/lib/src/checkbox/Checkbox.d.ts +27 -0
- package/lib/src/checkbox/Checkbox.test.d.ts +2 -0
- package/lib/src/command-menu/CommandMenu.d.ts +1 -1
- package/lib/src/command-menu/CommandMenuAction.d.ts +1 -1
- package/lib/src/common/directives/cond.d.ts +1 -1
- package/lib/src/date-picker/DatePicker.d.ts +1 -1
- package/lib/src/icon/Icon.d.ts +1 -1
- package/lib/src/index.d.ts +1 -0
- package/lib/src/input/Input.d.ts +1 -1
- package/lib/src/select/Select.d.ts +1 -1
- package/lib/src/spinner/Spinner.d.ts +1 -1
- package/lib/src/stack/Stack.d.ts +1 -1
- package/lib/src/textarea/Textarea.d.ts +1 -1
- package/lib/src/visually-hidden/VisuallyHidden.d.ts +1 -1
- package/lib/unsafe-html-5ab9167e.js +7 -0
- package/lib/unsafe-html-5ab9167e.js.map +1 -0
- package/package.json +2 -2
- package/lib/TextField-fa6242da.js.map +0 -1
- package/lib/class-map-756151db.js.map +0 -1
- package/lib/directive-e9ce14b4.js.map +0 -1
- package/lib/if-defined-9acae812.js.map +0 -1
- package/lib/lit-element-5ddf42d5.js.map +0 -1
- package/lib/ref-9addd32e.js.map +0 -1
- package/lib/unsafe-html-c7264329.js +0 -7
- package/lib/unsafe-html-c7264329.js.map +0 -1
package/custom-elements.json
CHANGED
|
@@ -126,6 +126,14 @@
|
|
|
126
126
|
"name": "default",
|
|
127
127
|
"module": "\"./date-picker/DatePicker.js\""
|
|
128
128
|
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"kind": "js",
|
|
132
|
+
"name": "Checkbox",
|
|
133
|
+
"declaration": {
|
|
134
|
+
"name": "default",
|
|
135
|
+
"module": "\"./checkbox/Checkbox.js\""
|
|
136
|
+
}
|
|
129
137
|
}
|
|
130
138
|
]
|
|
131
139
|
},
|
|
@@ -591,107 +599,6 @@
|
|
|
591
599
|
}
|
|
592
600
|
]
|
|
593
601
|
},
|
|
594
|
-
{
|
|
595
|
-
"kind": "javascript-module",
|
|
596
|
-
"path": "src/card/Card.ts",
|
|
597
|
-
"declarations": [
|
|
598
|
-
{
|
|
599
|
-
"kind": "class",
|
|
600
|
-
"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.",
|
|
601
|
-
"name": "Card",
|
|
602
|
-
"slots": [
|
|
603
|
-
{
|
|
604
|
-
"description": "The card content.",
|
|
605
|
-
"name": ""
|
|
606
|
-
},
|
|
607
|
-
{
|
|
608
|
-
"description": "Optional slot that holds a header for the card.",
|
|
609
|
-
"name": "header"
|
|
610
|
-
},
|
|
611
|
-
{
|
|
612
|
-
"description": "Optional slot that holds footer content for the card.",
|
|
613
|
-
"name": "footer"
|
|
614
|
-
}
|
|
615
|
-
],
|
|
616
|
-
"members": [
|
|
617
|
-
{
|
|
618
|
-
"kind": "field",
|
|
619
|
-
"name": "slots",
|
|
620
|
-
"privacy": "private",
|
|
621
|
-
"default": "new SlotController(this)"
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
"kind": "field",
|
|
625
|
-
"name": "padding",
|
|
626
|
-
"type": {
|
|
627
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
628
|
-
},
|
|
629
|
-
"default": "\"m\"",
|
|
630
|
-
"description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
|
|
631
|
-
"attribute": "padding",
|
|
632
|
-
"reflects": true
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
"kind": "field",
|
|
636
|
-
"name": "_warningLogged",
|
|
637
|
-
"type": {
|
|
638
|
-
"text": "boolean"
|
|
639
|
-
},
|
|
640
|
-
"privacy": "private",
|
|
641
|
-
"static": true,
|
|
642
|
-
"default": "false",
|
|
643
|
-
"inheritedFrom": {
|
|
644
|
-
"name": "DraftComponentMixin",
|
|
645
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
],
|
|
649
|
-
"attributes": [
|
|
650
|
-
{
|
|
651
|
-
"name": "padding",
|
|
652
|
-
"type": {
|
|
653
|
-
"text": "\"m\" | \"l\" | \"none\""
|
|
654
|
-
},
|
|
655
|
-
"default": "\"m\"",
|
|
656
|
-
"description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
|
|
657
|
-
"fieldName": "padding"
|
|
658
|
-
}
|
|
659
|
-
],
|
|
660
|
-
"mixins": [
|
|
661
|
-
{
|
|
662
|
-
"name": "DraftComponentMixin",
|
|
663
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
664
|
-
}
|
|
665
|
-
],
|
|
666
|
-
"superclass": {
|
|
667
|
-
"name": "LitElement",
|
|
668
|
-
"package": "lit"
|
|
669
|
-
},
|
|
670
|
-
"status": "draft",
|
|
671
|
-
"category": "structure",
|
|
672
|
-
"tagName": "nord-card",
|
|
673
|
-
"customElement": true
|
|
674
|
-
}
|
|
675
|
-
],
|
|
676
|
-
"exports": [
|
|
677
|
-
{
|
|
678
|
-
"kind": "js",
|
|
679
|
-
"name": "default",
|
|
680
|
-
"declaration": {
|
|
681
|
-
"name": "Card",
|
|
682
|
-
"module": "src/card/Card.ts"
|
|
683
|
-
}
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
"kind": "custom-element-definition",
|
|
687
|
-
"name": "nord-card",
|
|
688
|
-
"declaration": {
|
|
689
|
-
"name": "Card",
|
|
690
|
-
"module": "src/card/Card.ts"
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
]
|
|
694
|
-
},
|
|
695
602
|
{
|
|
696
603
|
"kind": "javascript-module",
|
|
697
604
|
"path": "src/calendar/Calendar.ts",
|
|
@@ -1168,912 +1075,736 @@
|
|
|
1168
1075
|
},
|
|
1169
1076
|
{
|
|
1170
1077
|
"kind": "javascript-module",
|
|
1171
|
-
"path": "src/
|
|
1078
|
+
"path": "src/checkbox/Checkbox.ts",
|
|
1172
1079
|
"declarations": [
|
|
1173
1080
|
{
|
|
1174
|
-
"kind": "
|
|
1175
|
-
"
|
|
1176
|
-
"
|
|
1081
|
+
"kind": "class",
|
|
1082
|
+
"description": "Checkboxes allow user to choose one or more options from a limited set of options.\nIf you have more than 10 options, please use Select component instead.",
|
|
1083
|
+
"name": "Checkbox",
|
|
1084
|
+
"slots": [
|
|
1177
1085
|
{
|
|
1178
|
-
"
|
|
1086
|
+
"description": "Use when a label requires more than plain text.",
|
|
1087
|
+
"name": "label"
|
|
1088
|
+
},
|
|
1089
|
+
{
|
|
1090
|
+
"description": "Optional slot that holds hint text for the input.",
|
|
1091
|
+
"name": "hint"
|
|
1092
|
+
},
|
|
1093
|
+
{
|
|
1094
|
+
"description": "Optional slot that holds error text for the input.",
|
|
1095
|
+
"name": "error"
|
|
1096
|
+
}
|
|
1097
|
+
],
|
|
1098
|
+
"members": [
|
|
1099
|
+
{
|
|
1100
|
+
"kind": "field",
|
|
1101
|
+
"name": "checked",
|
|
1179
1102
|
"type": {
|
|
1180
|
-
"text": "
|
|
1103
|
+
"text": "boolean"
|
|
1181
1104
|
},
|
|
1182
|
-
"
|
|
1105
|
+
"default": "false",
|
|
1106
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
1107
|
+
"attribute": "checked"
|
|
1183
1108
|
},
|
|
1184
1109
|
{
|
|
1185
|
-
"
|
|
1186
|
-
"
|
|
1187
|
-
|
|
1110
|
+
"kind": "method",
|
|
1111
|
+
"name": "handleChange",
|
|
1112
|
+
"privacy": "protected",
|
|
1113
|
+
"return": {
|
|
1114
|
+
"type": {
|
|
1115
|
+
"text": "void"
|
|
1116
|
+
}
|
|
1188
1117
|
},
|
|
1189
|
-
"
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
"return": {
|
|
1203
|
-
"type": {
|
|
1204
|
-
"text": ""
|
|
1205
|
-
}
|
|
1206
|
-
},
|
|
1207
|
-
"parameters": [
|
|
1118
|
+
"parameters": [
|
|
1119
|
+
{
|
|
1120
|
+
"name": "e",
|
|
1121
|
+
"type": {
|
|
1122
|
+
"text": "Event"
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
],
|
|
1126
|
+
"inheritedFrom": {
|
|
1127
|
+
"name": "FormAssociatedMixin",
|
|
1128
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1129
|
+
}
|
|
1130
|
+
},
|
|
1208
1131
|
{
|
|
1209
|
-
"
|
|
1132
|
+
"kind": "field",
|
|
1133
|
+
"name": "slots",
|
|
1134
|
+
"privacy": "protected",
|
|
1135
|
+
"default": "new SlotController(this)",
|
|
1136
|
+
"inheritedFrom": {
|
|
1137
|
+
"name": "FormAssociatedMixin",
|
|
1138
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"kind": "field",
|
|
1143
|
+
"name": "inputId",
|
|
1210
1144
|
"type": {
|
|
1211
|
-
"text": "
|
|
1145
|
+
"text": "string"
|
|
1146
|
+
},
|
|
1147
|
+
"privacy": "protected",
|
|
1148
|
+
"default": "\"input\"",
|
|
1149
|
+
"inheritedFrom": {
|
|
1150
|
+
"name": "FormAssociatedMixin",
|
|
1151
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1212
1152
|
}
|
|
1213
1153
|
},
|
|
1214
1154
|
{
|
|
1215
|
-
"
|
|
1155
|
+
"kind": "field",
|
|
1156
|
+
"name": "label",
|
|
1216
1157
|
"type": {
|
|
1217
|
-
"text": "
|
|
1158
|
+
"text": "string"
|
|
1159
|
+
},
|
|
1160
|
+
"default": "\"\"",
|
|
1161
|
+
"description": "Label for the input.",
|
|
1162
|
+
"attribute": "label",
|
|
1163
|
+
"inheritedFrom": {
|
|
1164
|
+
"name": "FormAssociatedMixin",
|
|
1165
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1218
1166
|
}
|
|
1219
|
-
}
|
|
1220
|
-
],
|
|
1221
|
-
"description": "Split an array into chunks of the given size"
|
|
1222
|
-
},
|
|
1223
|
-
{
|
|
1224
|
-
"kind": "function",
|
|
1225
|
-
"name": "mapWithOffset",
|
|
1226
|
-
"return": {
|
|
1227
|
-
"type": {
|
|
1228
|
-
"text": ""
|
|
1229
|
-
}
|
|
1230
|
-
},
|
|
1231
|
-
"parameters": [
|
|
1167
|
+
},
|
|
1232
1168
|
{
|
|
1233
|
-
"
|
|
1169
|
+
"kind": "field",
|
|
1170
|
+
"name": "hint",
|
|
1234
1171
|
"type": {
|
|
1235
|
-
"text": "
|
|
1172
|
+
"text": "string | undefined"
|
|
1173
|
+
},
|
|
1174
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
1175
|
+
"attribute": "hint",
|
|
1176
|
+
"inheritedFrom": {
|
|
1177
|
+
"name": "FormAssociatedMixin",
|
|
1178
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1236
1179
|
}
|
|
1237
1180
|
},
|
|
1238
1181
|
{
|
|
1239
|
-
"
|
|
1182
|
+
"kind": "field",
|
|
1183
|
+
"name": "hideLabel",
|
|
1240
1184
|
"type": {
|
|
1241
|
-
"text": "
|
|
1185
|
+
"text": "boolean"
|
|
1186
|
+
},
|
|
1187
|
+
"default": "false",
|
|
1188
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
1189
|
+
"attribute": "hide-label",
|
|
1190
|
+
"inheritedFrom": {
|
|
1191
|
+
"name": "FormAssociatedMixin",
|
|
1192
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1242
1193
|
}
|
|
1243
1194
|
},
|
|
1244
1195
|
{
|
|
1245
|
-
"
|
|
1196
|
+
"kind": "field",
|
|
1197
|
+
"name": "placeholder",
|
|
1246
1198
|
"type": {
|
|
1247
|
-
"text": "
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
"exports": [
|
|
1255
|
-
{
|
|
1256
|
-
"kind": "js",
|
|
1257
|
-
"name": "groupBy",
|
|
1258
|
-
"declaration": {
|
|
1259
|
-
"name": "groupBy",
|
|
1260
|
-
"module": "src/common/collection.ts"
|
|
1261
|
-
}
|
|
1262
|
-
},
|
|
1263
|
-
{
|
|
1264
|
-
"kind": "js",
|
|
1265
|
-
"name": "chunk",
|
|
1266
|
-
"declaration": {
|
|
1267
|
-
"name": "chunk",
|
|
1268
|
-
"module": "src/common/collection.ts"
|
|
1269
|
-
}
|
|
1270
|
-
},
|
|
1271
|
-
{
|
|
1272
|
-
"kind": "js",
|
|
1273
|
-
"name": "mapWithOffset",
|
|
1274
|
-
"declaration": {
|
|
1275
|
-
"name": "mapWithOffset",
|
|
1276
|
-
"module": "src/common/collection.ts"
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
]
|
|
1280
|
-
},
|
|
1281
|
-
{
|
|
1282
|
-
"kind": "javascript-module",
|
|
1283
|
-
"path": "src/common/dates.ts",
|
|
1284
|
-
"declarations": [
|
|
1285
|
-
{
|
|
1286
|
-
"kind": "function",
|
|
1287
|
-
"name": "createDate",
|
|
1288
|
-
"return": {
|
|
1289
|
-
"type": {
|
|
1290
|
-
"text": "Date | undefined"
|
|
1291
|
-
}
|
|
1292
|
-
},
|
|
1293
|
-
"parameters": [
|
|
1294
|
-
{
|
|
1295
|
-
"name": "year",
|
|
1296
|
-
"type": {
|
|
1297
|
-
"text": "string"
|
|
1199
|
+
"text": "string | undefined"
|
|
1200
|
+
},
|
|
1201
|
+
"description": "Placeholder text to display within the input.",
|
|
1202
|
+
"attribute": "placeholder",
|
|
1203
|
+
"inheritedFrom": {
|
|
1204
|
+
"name": "FormAssociatedMixin",
|
|
1205
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1298
1206
|
}
|
|
1299
1207
|
},
|
|
1300
1208
|
{
|
|
1301
|
-
"
|
|
1209
|
+
"kind": "field",
|
|
1210
|
+
"name": "error",
|
|
1302
1211
|
"type": {
|
|
1303
|
-
"text": "string"
|
|
1212
|
+
"text": "string | undefined"
|
|
1213
|
+
},
|
|
1214
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
1215
|
+
"attribute": "error",
|
|
1216
|
+
"inheritedFrom": {
|
|
1217
|
+
"name": "FormAssociatedMixin",
|
|
1218
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1304
1219
|
}
|
|
1305
1220
|
},
|
|
1306
1221
|
{
|
|
1307
|
-
"
|
|
1222
|
+
"kind": "field",
|
|
1223
|
+
"name": "required",
|
|
1308
1224
|
"type": {
|
|
1309
|
-
"text": "
|
|
1225
|
+
"text": "boolean"
|
|
1226
|
+
},
|
|
1227
|
+
"default": "false",
|
|
1228
|
+
"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.",
|
|
1229
|
+
"attribute": "required",
|
|
1230
|
+
"inheritedFrom": {
|
|
1231
|
+
"name": "FormAssociatedMixin",
|
|
1232
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1310
1233
|
}
|
|
1311
|
-
}
|
|
1312
|
-
]
|
|
1313
|
-
},
|
|
1314
|
-
{
|
|
1315
|
-
"kind": "function",
|
|
1316
|
-
"name": "parseISODate",
|
|
1317
|
-
"return": {
|
|
1318
|
-
"type": {
|
|
1319
|
-
"text": "Date | undefined"
|
|
1320
|
-
}
|
|
1321
|
-
},
|
|
1322
|
-
"parameters": [
|
|
1234
|
+
},
|
|
1323
1235
|
{
|
|
1324
|
-
"
|
|
1236
|
+
"kind": "field",
|
|
1237
|
+
"name": "expand",
|
|
1325
1238
|
"type": {
|
|
1326
|
-
"text": "
|
|
1239
|
+
"text": "boolean"
|
|
1327
1240
|
},
|
|
1328
|
-
"
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
"return": {
|
|
1336
|
-
"type": {
|
|
1337
|
-
"text": "string"
|
|
1338
|
-
}
|
|
1339
|
-
},
|
|
1340
|
-
"parameters": [
|
|
1341
|
-
{
|
|
1342
|
-
"name": "date",
|
|
1343
|
-
"type": {
|
|
1344
|
-
"text": "Date"
|
|
1241
|
+
"default": "false",
|
|
1242
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
1243
|
+
"attribute": "expand",
|
|
1244
|
+
"reflects": true,
|
|
1245
|
+
"inheritedFrom": {
|
|
1246
|
+
"name": "FormAssociatedMixin",
|
|
1247
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1345
1248
|
}
|
|
1346
|
-
}
|
|
1347
|
-
],
|
|
1348
|
-
"description": "print date in format YYYY-MM-DD"
|
|
1349
|
-
},
|
|
1350
|
-
{
|
|
1351
|
-
"kind": "function",
|
|
1352
|
-
"name": "isEqualMonth",
|
|
1353
|
-
"return": {
|
|
1354
|
-
"type": {
|
|
1355
|
-
"text": "boolean"
|
|
1356
|
-
}
|
|
1357
|
-
},
|
|
1358
|
-
"parameters": [
|
|
1249
|
+
},
|
|
1359
1250
|
{
|
|
1360
|
-
"
|
|
1361
|
-
"
|
|
1362
|
-
"
|
|
1363
|
-
|
|
1251
|
+
"kind": "field",
|
|
1252
|
+
"name": "handleFormData",
|
|
1253
|
+
"privacy": "private",
|
|
1254
|
+
"inheritedFrom": {
|
|
1255
|
+
"name": "FormAssociatedMixin",
|
|
1256
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1364
1257
|
}
|
|
1365
1258
|
},
|
|
1366
1259
|
{
|
|
1367
|
-
"
|
|
1368
|
-
"
|
|
1369
|
-
"
|
|
1370
|
-
|
|
1260
|
+
"kind": "method",
|
|
1261
|
+
"name": "handleInput",
|
|
1262
|
+
"privacy": "protected",
|
|
1263
|
+
"parameters": [
|
|
1264
|
+
{
|
|
1265
|
+
"name": "e",
|
|
1266
|
+
"type": {
|
|
1267
|
+
"text": "Event"
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
],
|
|
1271
|
+
"inheritedFrom": {
|
|
1272
|
+
"name": "FormAssociatedMixin",
|
|
1273
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1371
1274
|
}
|
|
1372
|
-
}
|
|
1373
|
-
],
|
|
1374
|
-
"description": "Compare if two dates are in the same month of the same year."
|
|
1375
|
-
},
|
|
1376
|
-
{
|
|
1377
|
-
"kind": "function",
|
|
1378
|
-
"name": "isEqual",
|
|
1379
|
-
"return": {
|
|
1380
|
-
"type": {
|
|
1381
|
-
"text": "boolean"
|
|
1382
|
-
}
|
|
1383
|
-
},
|
|
1384
|
-
"parameters": [
|
|
1275
|
+
},
|
|
1385
1276
|
{
|
|
1386
|
-
"
|
|
1387
|
-
"
|
|
1388
|
-
"
|
|
1389
|
-
|
|
1277
|
+
"kind": "method",
|
|
1278
|
+
"name": "renderLabel",
|
|
1279
|
+
"privacy": "protected",
|
|
1280
|
+
"inheritedFrom": {
|
|
1281
|
+
"name": "FormAssociatedMixin",
|
|
1282
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1390
1283
|
}
|
|
1391
1284
|
},
|
|
1392
1285
|
{
|
|
1393
|
-
"
|
|
1394
|
-
"
|
|
1395
|
-
"
|
|
1396
|
-
|
|
1286
|
+
"kind": "method",
|
|
1287
|
+
"name": "renderHint",
|
|
1288
|
+
"privacy": "private",
|
|
1289
|
+
"inheritedFrom": {
|
|
1290
|
+
"name": "FormAssociatedMixin",
|
|
1291
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1397
1292
|
}
|
|
1398
|
-
}
|
|
1399
|
-
],
|
|
1400
|
-
"description": "Compare if two dates are equal in terms of day, month, and year"
|
|
1401
|
-
},
|
|
1402
|
-
{
|
|
1403
|
-
"kind": "function",
|
|
1404
|
-
"name": "addDays",
|
|
1405
|
-
"return": {
|
|
1406
|
-
"type": {
|
|
1407
|
-
"text": "Date"
|
|
1408
|
-
}
|
|
1409
|
-
},
|
|
1410
|
-
"parameters": [
|
|
1293
|
+
},
|
|
1411
1294
|
{
|
|
1412
|
-
"
|
|
1413
|
-
"
|
|
1414
|
-
|
|
1295
|
+
"kind": "method",
|
|
1296
|
+
"name": "renderError",
|
|
1297
|
+
"privacy": "protected",
|
|
1298
|
+
"inheritedFrom": {
|
|
1299
|
+
"name": "FormAssociatedMixin",
|
|
1300
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1415
1301
|
}
|
|
1416
1302
|
},
|
|
1417
1303
|
{
|
|
1418
|
-
"
|
|
1419
|
-
"
|
|
1420
|
-
|
|
1304
|
+
"kind": "method",
|
|
1305
|
+
"name": "getDescribedBy",
|
|
1306
|
+
"privacy": "protected",
|
|
1307
|
+
"inheritedFrom": {
|
|
1308
|
+
"name": "FormAssociatedMixin",
|
|
1309
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1421
1310
|
}
|
|
1422
|
-
}
|
|
1423
|
-
]
|
|
1424
|
-
},
|
|
1425
|
-
{
|
|
1426
|
-
"kind": "function",
|
|
1427
|
-
"name": "addMonths",
|
|
1428
|
-
"return": {
|
|
1429
|
-
"type": {
|
|
1430
|
-
"text": "Date"
|
|
1431
|
-
}
|
|
1432
|
-
},
|
|
1433
|
-
"parameters": [
|
|
1311
|
+
},
|
|
1434
1312
|
{
|
|
1435
|
-
"
|
|
1436
|
-
"
|
|
1437
|
-
|
|
1313
|
+
"kind": "method",
|
|
1314
|
+
"name": "getInvalid",
|
|
1315
|
+
"privacy": "protected",
|
|
1316
|
+
"inheritedFrom": {
|
|
1317
|
+
"name": "FormAssociatedMixin",
|
|
1318
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1438
1319
|
}
|
|
1439
1320
|
},
|
|
1440
1321
|
{
|
|
1441
|
-
"
|
|
1442
|
-
"
|
|
1443
|
-
|
|
1322
|
+
"kind": "field",
|
|
1323
|
+
"name": "hasHint",
|
|
1324
|
+
"privacy": "protected",
|
|
1325
|
+
"inheritedFrom": {
|
|
1326
|
+
"name": "FormAssociatedMixin",
|
|
1327
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1444
1328
|
}
|
|
1445
|
-
}
|
|
1446
|
-
]
|
|
1447
|
-
},
|
|
1448
|
-
{
|
|
1449
|
-
"kind": "function",
|
|
1450
|
-
"name": "addYears",
|
|
1451
|
-
"return": {
|
|
1452
|
-
"type": {
|
|
1453
|
-
"text": "Date"
|
|
1454
|
-
}
|
|
1455
|
-
},
|
|
1456
|
-
"parameters": [
|
|
1329
|
+
},
|
|
1457
1330
|
{
|
|
1458
|
-
"
|
|
1459
|
-
"
|
|
1460
|
-
|
|
1331
|
+
"kind": "field",
|
|
1332
|
+
"name": "hasError",
|
|
1333
|
+
"privacy": "protected",
|
|
1334
|
+
"inheritedFrom": {
|
|
1335
|
+
"name": "FormAssociatedMixin",
|
|
1336
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1461
1337
|
}
|
|
1462
1338
|
},
|
|
1463
1339
|
{
|
|
1464
|
-
"
|
|
1340
|
+
"kind": "field",
|
|
1341
|
+
"name": "disabled",
|
|
1465
1342
|
"type": {
|
|
1466
|
-
"text": "
|
|
1343
|
+
"text": "boolean"
|
|
1344
|
+
},
|
|
1345
|
+
"default": "false",
|
|
1346
|
+
"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.",
|
|
1347
|
+
"attribute": "disabled",
|
|
1348
|
+
"inheritedFrom": {
|
|
1349
|
+
"name": "InputMixin",
|
|
1350
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1467
1351
|
}
|
|
1468
|
-
}
|
|
1469
|
-
]
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
"kind": "function",
|
|
1473
|
-
"name": "startOfWeek",
|
|
1474
|
-
"return": {
|
|
1475
|
-
"type": {
|
|
1476
|
-
"text": "Date"
|
|
1477
|
-
}
|
|
1478
|
-
},
|
|
1479
|
-
"parameters": [
|
|
1352
|
+
},
|
|
1480
1353
|
{
|
|
1481
|
-
"
|
|
1354
|
+
"kind": "field",
|
|
1355
|
+
"name": "name",
|
|
1482
1356
|
"type": {
|
|
1483
|
-
"text": "
|
|
1357
|
+
"text": "string | undefined"
|
|
1358
|
+
},
|
|
1359
|
+
"description": "The name of the input component.",
|
|
1360
|
+
"attribute": "name",
|
|
1361
|
+
"inheritedFrom": {
|
|
1362
|
+
"name": "InputMixin",
|
|
1363
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1484
1364
|
}
|
|
1485
1365
|
},
|
|
1486
1366
|
{
|
|
1487
|
-
"
|
|
1488
|
-
"
|
|
1367
|
+
"kind": "field",
|
|
1368
|
+
"name": "value",
|
|
1489
1369
|
"type": {
|
|
1490
|
-
"text": "
|
|
1370
|
+
"text": "string"
|
|
1371
|
+
},
|
|
1372
|
+
"default": "\"\"",
|
|
1373
|
+
"description": "The value of the input component.",
|
|
1374
|
+
"attribute": "value",
|
|
1375
|
+
"inheritedFrom": {
|
|
1376
|
+
"name": "InputMixin",
|
|
1377
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1491
1378
|
}
|
|
1492
|
-
}
|
|
1493
|
-
]
|
|
1494
|
-
},
|
|
1495
|
-
{
|
|
1496
|
-
"kind": "function",
|
|
1497
|
-
"name": "endOfWeek",
|
|
1498
|
-
"return": {
|
|
1499
|
-
"type": {
|
|
1500
|
-
"text": "Date"
|
|
1501
|
-
}
|
|
1502
|
-
},
|
|
1503
|
-
"parameters": [
|
|
1379
|
+
},
|
|
1504
1380
|
{
|
|
1505
|
-
"
|
|
1506
|
-
"
|
|
1507
|
-
|
|
1381
|
+
"kind": "field",
|
|
1382
|
+
"name": "form",
|
|
1383
|
+
"privacy": "protected",
|
|
1384
|
+
"description": "Gets the form, if any, associated with the input element.",
|
|
1385
|
+
"inheritedFrom": {
|
|
1386
|
+
"name": "InputMixin",
|
|
1387
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1508
1388
|
}
|
|
1509
1389
|
},
|
|
1510
1390
|
{
|
|
1511
|
-
"
|
|
1512
|
-
"
|
|
1513
|
-
"
|
|
1514
|
-
|
|
1391
|
+
"kind": "field",
|
|
1392
|
+
"name": "focusableRef",
|
|
1393
|
+
"privacy": "protected",
|
|
1394
|
+
"inheritedFrom": {
|
|
1395
|
+
"name": "FocusableMixin",
|
|
1396
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1515
1397
|
}
|
|
1516
|
-
}
|
|
1517
|
-
]
|
|
1518
|
-
},
|
|
1519
|
-
{
|
|
1520
|
-
"kind": "function",
|
|
1521
|
-
"name": "startOfMonth",
|
|
1522
|
-
"return": {
|
|
1523
|
-
"type": {
|
|
1524
|
-
"text": "Date"
|
|
1525
|
-
}
|
|
1526
|
-
},
|
|
1527
|
-
"parameters": [
|
|
1398
|
+
},
|
|
1528
1399
|
{
|
|
1529
|
-
"
|
|
1530
|
-
"
|
|
1531
|
-
|
|
1400
|
+
"kind": "method",
|
|
1401
|
+
"name": "focus",
|
|
1402
|
+
"parameters": [
|
|
1403
|
+
{
|
|
1404
|
+
"name": "options",
|
|
1405
|
+
"optional": true,
|
|
1406
|
+
"type": {
|
|
1407
|
+
"text": "FocusOptions"
|
|
1408
|
+
},
|
|
1409
|
+
"description": "An object which controls aspects of the focusing process."
|
|
1410
|
+
}
|
|
1411
|
+
],
|
|
1412
|
+
"description": "Programmatically move focus to the component",
|
|
1413
|
+
"inheritedFrom": {
|
|
1414
|
+
"name": "FocusableMixin",
|
|
1415
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1532
1416
|
}
|
|
1533
|
-
}
|
|
1534
|
-
]
|
|
1535
|
-
},
|
|
1536
|
-
{
|
|
1537
|
-
"kind": "function",
|
|
1538
|
-
"name": "endOfMonth",
|
|
1539
|
-
"return": {
|
|
1540
|
-
"type": {
|
|
1541
|
-
"text": "Date"
|
|
1542
|
-
}
|
|
1543
|
-
},
|
|
1544
|
-
"parameters": [
|
|
1417
|
+
},
|
|
1545
1418
|
{
|
|
1546
|
-
"
|
|
1547
|
-
"
|
|
1548
|
-
|
|
1419
|
+
"kind": "method",
|
|
1420
|
+
"name": "blur",
|
|
1421
|
+
"description": "Programmatically remove focus from the component.",
|
|
1422
|
+
"inheritedFrom": {
|
|
1423
|
+
"name": "FocusableMixin",
|
|
1424
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1549
1425
|
}
|
|
1550
|
-
}
|
|
1551
|
-
]
|
|
1552
|
-
},
|
|
1553
|
-
{
|
|
1554
|
-
"kind": "function",
|
|
1555
|
-
"name": "setMonth",
|
|
1556
|
-
"return": {
|
|
1557
|
-
"type": {
|
|
1558
|
-
"text": "Date"
|
|
1559
|
-
}
|
|
1560
|
-
},
|
|
1561
|
-
"parameters": [
|
|
1426
|
+
},
|
|
1562
1427
|
{
|
|
1563
|
-
"
|
|
1564
|
-
"
|
|
1565
|
-
|
|
1428
|
+
"kind": "method",
|
|
1429
|
+
"name": "click",
|
|
1430
|
+
"description": "Programmatically simulates a click on the component.",
|
|
1431
|
+
"inheritedFrom": {
|
|
1432
|
+
"name": "FocusableMixin",
|
|
1433
|
+
"module": "src/common/mixins/FocusableMixin.ts"
|
|
1566
1434
|
}
|
|
1567
1435
|
},
|
|
1568
1436
|
{
|
|
1569
|
-
"
|
|
1437
|
+
"kind": "field",
|
|
1438
|
+
"name": "_warningLogged",
|
|
1570
1439
|
"type": {
|
|
1571
|
-
"text": "
|
|
1440
|
+
"text": "boolean"
|
|
1441
|
+
},
|
|
1442
|
+
"privacy": "private",
|
|
1443
|
+
"static": true,
|
|
1444
|
+
"default": "false",
|
|
1445
|
+
"inheritedFrom": {
|
|
1446
|
+
"name": "DraftComponentMixin",
|
|
1447
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1572
1448
|
}
|
|
1573
1449
|
}
|
|
1574
|
-
]
|
|
1575
|
-
|
|
1576
|
-
{
|
|
1577
|
-
"kind": "function",
|
|
1578
|
-
"name": "setYear",
|
|
1579
|
-
"return": {
|
|
1580
|
-
"type": {
|
|
1581
|
-
"text": "Date"
|
|
1582
|
-
}
|
|
1583
|
-
},
|
|
1584
|
-
"parameters": [
|
|
1450
|
+
],
|
|
1451
|
+
"attributes": [
|
|
1585
1452
|
{
|
|
1586
|
-
"name": "
|
|
1453
|
+
"name": "checked",
|
|
1587
1454
|
"type": {
|
|
1588
|
-
"text": "
|
|
1589
|
-
}
|
|
1455
|
+
"text": "boolean"
|
|
1456
|
+
},
|
|
1457
|
+
"default": "false",
|
|
1458
|
+
"description": "Controls whether the checkbox is checked or not.",
|
|
1459
|
+
"fieldName": "checked"
|
|
1590
1460
|
},
|
|
1591
1461
|
{
|
|
1592
|
-
"name": "
|
|
1462
|
+
"name": "label",
|
|
1593
1463
|
"type": {
|
|
1594
|
-
"text": "
|
|
1464
|
+
"text": "string"
|
|
1465
|
+
},
|
|
1466
|
+
"default": "\"\"",
|
|
1467
|
+
"description": "Label for the input.",
|
|
1468
|
+
"fieldName": "label",
|
|
1469
|
+
"inheritedFrom": {
|
|
1470
|
+
"name": "FormAssociatedMixin",
|
|
1471
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1595
1472
|
}
|
|
1596
|
-
}
|
|
1597
|
-
]
|
|
1598
|
-
},
|
|
1599
|
-
{
|
|
1600
|
-
"kind": "function",
|
|
1601
|
-
"name": "clamp",
|
|
1602
|
-
"return": {
|
|
1603
|
-
"type": {
|
|
1604
|
-
"text": "Date"
|
|
1605
|
-
}
|
|
1606
|
-
},
|
|
1607
|
-
"parameters": [
|
|
1473
|
+
},
|
|
1608
1474
|
{
|
|
1609
|
-
"name": "
|
|
1475
|
+
"name": "hint",
|
|
1610
1476
|
"type": {
|
|
1611
|
-
"text": "
|
|
1477
|
+
"text": "string | undefined"
|
|
1478
|
+
},
|
|
1479
|
+
"description": "Optional hint text to be displayed with the input. Alternatively use the hint slot.",
|
|
1480
|
+
"fieldName": "hint",
|
|
1481
|
+
"inheritedFrom": {
|
|
1482
|
+
"name": "FormAssociatedMixin",
|
|
1483
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1612
1484
|
}
|
|
1613
1485
|
},
|
|
1614
1486
|
{
|
|
1615
|
-
"name": "
|
|
1616
|
-
"optional": true,
|
|
1487
|
+
"name": "hide-label",
|
|
1617
1488
|
"type": {
|
|
1618
|
-
"text": "
|
|
1489
|
+
"text": "boolean"
|
|
1490
|
+
},
|
|
1491
|
+
"default": "false",
|
|
1492
|
+
"description": "Visually hide the label, but still show it to assistive technologies like screen readers.",
|
|
1493
|
+
"fieldName": "hideLabel",
|
|
1494
|
+
"inheritedFrom": {
|
|
1495
|
+
"name": "FormAssociatedMixin",
|
|
1496
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1619
1497
|
}
|
|
1620
1498
|
},
|
|
1621
1499
|
{
|
|
1622
|
-
"name": "
|
|
1623
|
-
"optional": true,
|
|
1500
|
+
"name": "placeholder",
|
|
1624
1501
|
"type": {
|
|
1625
|
-
"text": "
|
|
1502
|
+
"text": "string | undefined"
|
|
1503
|
+
},
|
|
1504
|
+
"description": "Placeholder text to display within the input.",
|
|
1505
|
+
"fieldName": "placeholder",
|
|
1506
|
+
"inheritedFrom": {
|
|
1507
|
+
"name": "FormAssociatedMixin",
|
|
1508
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1626
1509
|
}
|
|
1627
|
-
}
|
|
1628
|
-
],
|
|
1629
|
-
"description": "Ensures date is within range, returns min or max if out of bounds"
|
|
1630
|
-
},
|
|
1631
|
-
{
|
|
1632
|
-
"kind": "function",
|
|
1633
|
-
"name": "inRange",
|
|
1634
|
-
"return": {
|
|
1635
|
-
"type": {
|
|
1636
|
-
"text": "boolean"
|
|
1637
|
-
}
|
|
1638
|
-
},
|
|
1639
|
-
"parameters": [
|
|
1510
|
+
},
|
|
1640
1511
|
{
|
|
1641
|
-
"name": "
|
|
1512
|
+
"name": "error",
|
|
1642
1513
|
"type": {
|
|
1643
|
-
"text": "
|
|
1514
|
+
"text": "string | undefined"
|
|
1515
|
+
},
|
|
1516
|
+
"description": "Optional error to be shown with the input. Alternatively use the error slot.",
|
|
1517
|
+
"fieldName": "error",
|
|
1518
|
+
"inheritedFrom": {
|
|
1519
|
+
"name": "FormAssociatedMixin",
|
|
1520
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1644
1521
|
}
|
|
1645
1522
|
},
|
|
1646
1523
|
{
|
|
1647
|
-
"name": "
|
|
1648
|
-
"optional": true,
|
|
1524
|
+
"name": "required",
|
|
1649
1525
|
"type": {
|
|
1650
|
-
"text": "
|
|
1526
|
+
"text": "boolean"
|
|
1527
|
+
},
|
|
1528
|
+
"default": "false",
|
|
1529
|
+
"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.",
|
|
1530
|
+
"fieldName": "required",
|
|
1531
|
+
"inheritedFrom": {
|
|
1532
|
+
"name": "FormAssociatedMixin",
|
|
1533
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1651
1534
|
}
|
|
1652
1535
|
},
|
|
1653
1536
|
{
|
|
1654
|
-
"name": "
|
|
1655
|
-
"optional": true,
|
|
1537
|
+
"name": "expand",
|
|
1656
1538
|
"type": {
|
|
1657
|
-
"text": "
|
|
1539
|
+
"text": "boolean"
|
|
1540
|
+
},
|
|
1541
|
+
"default": "false",
|
|
1542
|
+
"description": "Controls whether the input expands to fill the width of its container.",
|
|
1543
|
+
"fieldName": "expand",
|
|
1544
|
+
"inheritedFrom": {
|
|
1545
|
+
"name": "FormAssociatedMixin",
|
|
1546
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1547
|
+
}
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"name": "disabled",
|
|
1551
|
+
"type": {
|
|
1552
|
+
"text": "boolean"
|
|
1553
|
+
},
|
|
1554
|
+
"default": "false",
|
|
1555
|
+
"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.",
|
|
1556
|
+
"fieldName": "disabled",
|
|
1557
|
+
"inheritedFrom": {
|
|
1558
|
+
"name": "InputMixin",
|
|
1559
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1560
|
+
}
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
"name": "name",
|
|
1564
|
+
"type": {
|
|
1565
|
+
"text": "string | undefined"
|
|
1566
|
+
},
|
|
1567
|
+
"description": "The name of the input component.",
|
|
1568
|
+
"fieldName": "name",
|
|
1569
|
+
"inheritedFrom": {
|
|
1570
|
+
"name": "InputMixin",
|
|
1571
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
"name": "value",
|
|
1576
|
+
"type": {
|
|
1577
|
+
"text": "string"
|
|
1578
|
+
},
|
|
1579
|
+
"default": "\"\"",
|
|
1580
|
+
"description": "The value of the input component.",
|
|
1581
|
+
"fieldName": "value",
|
|
1582
|
+
"inheritedFrom": {
|
|
1583
|
+
"name": "InputMixin",
|
|
1584
|
+
"module": "src/common/mixins/InputMixin.ts"
|
|
1658
1585
|
}
|
|
1659
1586
|
}
|
|
1660
1587
|
],
|
|
1661
|
-
"
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
"
|
|
1588
|
+
"mixins": [
|
|
1589
|
+
{
|
|
1590
|
+
"name": "FormAssociatedMixin",
|
|
1591
|
+
"module": "/src/common/mixins/FormAssociatedMixin.js"
|
|
1592
|
+
},
|
|
1593
|
+
{
|
|
1594
|
+
"name": "InputMixin",
|
|
1595
|
+
"module": "/src/common/mixins/InputMixin.js"
|
|
1596
|
+
},
|
|
1597
|
+
{
|
|
1598
|
+
"name": "FocusableMixin",
|
|
1599
|
+
"module": "/src/common/mixins/FocusableMixin.js"
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
"name": "DraftComponentMixin",
|
|
1603
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
1669
1604
|
}
|
|
1605
|
+
],
|
|
1606
|
+
"superclass": {
|
|
1607
|
+
"name": "LitElement",
|
|
1608
|
+
"package": "lit"
|
|
1670
1609
|
},
|
|
1671
|
-
"
|
|
1610
|
+
"status": "draft",
|
|
1611
|
+
"category": "form",
|
|
1612
|
+
"tagName": "nord-checkbox",
|
|
1613
|
+
"customElement": true,
|
|
1614
|
+
"events": [
|
|
1672
1615
|
{
|
|
1673
|
-
"name": "
|
|
1616
|
+
"name": "input",
|
|
1674
1617
|
"type": {
|
|
1675
|
-
"text": "
|
|
1618
|
+
"text": "NordEvent"
|
|
1619
|
+
},
|
|
1620
|
+
"description": "Fired as the user types into the input.",
|
|
1621
|
+
"inheritedFrom": {
|
|
1622
|
+
"name": "FormAssociatedMixin",
|
|
1623
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1676
1624
|
}
|
|
1677
1625
|
},
|
|
1678
1626
|
{
|
|
1679
|
-
"name": "
|
|
1680
|
-
"default": "DaysOfWeek.Monday",
|
|
1627
|
+
"name": "change",
|
|
1681
1628
|
"type": {
|
|
1682
|
-
"text": "
|
|
1629
|
+
"text": "NordEvent"
|
|
1630
|
+
},
|
|
1631
|
+
"description": "Fired whenever the input's value is changed via user interaction.",
|
|
1632
|
+
"inheritedFrom": {
|
|
1633
|
+
"name": "FormAssociatedMixin",
|
|
1634
|
+
"module": "src/common/mixins/FormAssociatedMixin.ts"
|
|
1683
1635
|
}
|
|
1684
1636
|
}
|
|
1685
|
-
]
|
|
1686
|
-
"description": "given a date, return an array of dates from a calendar perspective"
|
|
1637
|
+
]
|
|
1687
1638
|
}
|
|
1688
1639
|
],
|
|
1689
1640
|
"exports": [
|
|
1690
1641
|
{
|
|
1691
1642
|
"kind": "js",
|
|
1692
|
-
"name": "
|
|
1643
|
+
"name": "default",
|
|
1693
1644
|
"declaration": {
|
|
1694
|
-
"name": "
|
|
1695
|
-
"module": "src/
|
|
1645
|
+
"name": "Checkbox",
|
|
1646
|
+
"module": "src/checkbox/Checkbox.ts"
|
|
1696
1647
|
}
|
|
1697
1648
|
},
|
|
1698
1649
|
{
|
|
1699
|
-
"kind": "
|
|
1700
|
-
"name": "
|
|
1650
|
+
"kind": "custom-element-definition",
|
|
1651
|
+
"name": "nord-checkbox",
|
|
1701
1652
|
"declaration": {
|
|
1702
|
-
"name": "
|
|
1703
|
-
"module": "src/
|
|
1653
|
+
"name": "Checkbox",
|
|
1654
|
+
"module": "src/checkbox/Checkbox.ts"
|
|
1704
1655
|
}
|
|
1705
|
-
}
|
|
1656
|
+
}
|
|
1657
|
+
]
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
"kind": "javascript-module",
|
|
1661
|
+
"path": "src/card/Card.ts",
|
|
1662
|
+
"declarations": [
|
|
1663
|
+
{
|
|
1664
|
+
"kind": "class",
|
|
1665
|
+
"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.",
|
|
1666
|
+
"name": "Card",
|
|
1667
|
+
"slots": [
|
|
1668
|
+
{
|
|
1669
|
+
"description": "The card content.",
|
|
1670
|
+
"name": ""
|
|
1671
|
+
},
|
|
1672
|
+
{
|
|
1673
|
+
"description": "Optional slot that holds a header for the card.",
|
|
1674
|
+
"name": "header"
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
"description": "Optional slot that holds footer content for the card.",
|
|
1678
|
+
"name": "footer"
|
|
1679
|
+
}
|
|
1680
|
+
],
|
|
1681
|
+
"members": [
|
|
1682
|
+
{
|
|
1683
|
+
"kind": "field",
|
|
1684
|
+
"name": "slots",
|
|
1685
|
+
"privacy": "private",
|
|
1686
|
+
"default": "new SlotController(this)"
|
|
1687
|
+
},
|
|
1688
|
+
{
|
|
1689
|
+
"kind": "field",
|
|
1690
|
+
"name": "padding",
|
|
1691
|
+
"type": {
|
|
1692
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1693
|
+
},
|
|
1694
|
+
"default": "\"m\"",
|
|
1695
|
+
"description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
|
|
1696
|
+
"attribute": "padding",
|
|
1697
|
+
"reflects": true
|
|
1698
|
+
},
|
|
1699
|
+
{
|
|
1700
|
+
"kind": "field",
|
|
1701
|
+
"name": "_warningLogged",
|
|
1702
|
+
"type": {
|
|
1703
|
+
"text": "boolean"
|
|
1704
|
+
},
|
|
1705
|
+
"privacy": "private",
|
|
1706
|
+
"static": true,
|
|
1707
|
+
"default": "false",
|
|
1708
|
+
"inheritedFrom": {
|
|
1709
|
+
"name": "DraftComponentMixin",
|
|
1710
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
1711
|
+
}
|
|
1712
|
+
}
|
|
1713
|
+
],
|
|
1714
|
+
"attributes": [
|
|
1715
|
+
{
|
|
1716
|
+
"name": "padding",
|
|
1717
|
+
"type": {
|
|
1718
|
+
"text": "\"m\" | \"l\" | \"none\""
|
|
1719
|
+
},
|
|
1720
|
+
"default": "\"m\"",
|
|
1721
|
+
"description": "Control the padding of the card component.\nWhen set to \"none\", the header and footer slots will still have padding.",
|
|
1722
|
+
"fieldName": "padding"
|
|
1723
|
+
}
|
|
1724
|
+
],
|
|
1725
|
+
"mixins": [
|
|
1726
|
+
{
|
|
1727
|
+
"name": "DraftComponentMixin",
|
|
1728
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
1729
|
+
}
|
|
1730
|
+
],
|
|
1731
|
+
"superclass": {
|
|
1732
|
+
"name": "LitElement",
|
|
1733
|
+
"package": "lit"
|
|
1734
|
+
},
|
|
1735
|
+
"status": "draft",
|
|
1736
|
+
"category": "structure",
|
|
1737
|
+
"tagName": "nord-card",
|
|
1738
|
+
"customElement": true
|
|
1739
|
+
}
|
|
1740
|
+
],
|
|
1741
|
+
"exports": [
|
|
1706
1742
|
{
|
|
1707
1743
|
"kind": "js",
|
|
1708
|
-
"name": "
|
|
1744
|
+
"name": "default",
|
|
1709
1745
|
"declaration": {
|
|
1710
|
-
"name": "
|
|
1711
|
-
"module": "src/
|
|
1746
|
+
"name": "Card",
|
|
1747
|
+
"module": "src/card/Card.ts"
|
|
1712
1748
|
}
|
|
1713
1749
|
},
|
|
1714
1750
|
{
|
|
1715
|
-
"kind": "
|
|
1716
|
-
"name": "
|
|
1717
|
-
"declaration": {
|
|
1718
|
-
"name": "isEqualMonth",
|
|
1719
|
-
"module": "src/common/dates.ts"
|
|
1720
|
-
}
|
|
1721
|
-
},
|
|
1722
|
-
{
|
|
1723
|
-
"kind": "js",
|
|
1724
|
-
"name": "isEqual",
|
|
1725
|
-
"declaration": {
|
|
1726
|
-
"name": "isEqual",
|
|
1727
|
-
"module": "src/common/dates.ts"
|
|
1728
|
-
}
|
|
1729
|
-
},
|
|
1730
|
-
{
|
|
1731
|
-
"kind": "js",
|
|
1732
|
-
"name": "addDays",
|
|
1733
|
-
"declaration": {
|
|
1734
|
-
"name": "addDays",
|
|
1735
|
-
"module": "src/common/dates.ts"
|
|
1736
|
-
}
|
|
1737
|
-
},
|
|
1738
|
-
{
|
|
1739
|
-
"kind": "js",
|
|
1740
|
-
"name": "addMonths",
|
|
1741
|
-
"declaration": {
|
|
1742
|
-
"name": "addMonths",
|
|
1743
|
-
"module": "src/common/dates.ts"
|
|
1744
|
-
}
|
|
1745
|
-
},
|
|
1746
|
-
{
|
|
1747
|
-
"kind": "js",
|
|
1748
|
-
"name": "addYears",
|
|
1749
|
-
"declaration": {
|
|
1750
|
-
"name": "addYears",
|
|
1751
|
-
"module": "src/common/dates.ts"
|
|
1752
|
-
}
|
|
1753
|
-
},
|
|
1754
|
-
{
|
|
1755
|
-
"kind": "js",
|
|
1756
|
-
"name": "startOfWeek",
|
|
1757
|
-
"declaration": {
|
|
1758
|
-
"name": "startOfWeek",
|
|
1759
|
-
"module": "src/common/dates.ts"
|
|
1760
|
-
}
|
|
1761
|
-
},
|
|
1762
|
-
{
|
|
1763
|
-
"kind": "js",
|
|
1764
|
-
"name": "endOfWeek",
|
|
1765
|
-
"declaration": {
|
|
1766
|
-
"name": "endOfWeek",
|
|
1767
|
-
"module": "src/common/dates.ts"
|
|
1768
|
-
}
|
|
1769
|
-
},
|
|
1770
|
-
{
|
|
1771
|
-
"kind": "js",
|
|
1772
|
-
"name": "startOfMonth",
|
|
1773
|
-
"declaration": {
|
|
1774
|
-
"name": "startOfMonth",
|
|
1775
|
-
"module": "src/common/dates.ts"
|
|
1776
|
-
}
|
|
1777
|
-
},
|
|
1778
|
-
{
|
|
1779
|
-
"kind": "js",
|
|
1780
|
-
"name": "endOfMonth",
|
|
1781
|
-
"declaration": {
|
|
1782
|
-
"name": "endOfMonth",
|
|
1783
|
-
"module": "src/common/dates.ts"
|
|
1784
|
-
}
|
|
1785
|
-
},
|
|
1786
|
-
{
|
|
1787
|
-
"kind": "js",
|
|
1788
|
-
"name": "setMonth",
|
|
1789
|
-
"declaration": {
|
|
1790
|
-
"name": "setMonth",
|
|
1791
|
-
"module": "src/common/dates.ts"
|
|
1792
|
-
}
|
|
1793
|
-
},
|
|
1794
|
-
{
|
|
1795
|
-
"kind": "js",
|
|
1796
|
-
"name": "setYear",
|
|
1797
|
-
"declaration": {
|
|
1798
|
-
"name": "setYear",
|
|
1799
|
-
"module": "src/common/dates.ts"
|
|
1800
|
-
}
|
|
1801
|
-
},
|
|
1802
|
-
{
|
|
1803
|
-
"kind": "js",
|
|
1804
|
-
"name": "clamp",
|
|
1805
|
-
"declaration": {
|
|
1806
|
-
"name": "clamp",
|
|
1807
|
-
"module": "src/common/dates.ts"
|
|
1808
|
-
}
|
|
1809
|
-
},
|
|
1810
|
-
{
|
|
1811
|
-
"kind": "js",
|
|
1812
|
-
"name": "inRange",
|
|
1813
|
-
"declaration": {
|
|
1814
|
-
"name": "inRange",
|
|
1815
|
-
"module": "src/common/dates.ts"
|
|
1816
|
-
}
|
|
1817
|
-
},
|
|
1818
|
-
{
|
|
1819
|
-
"kind": "js",
|
|
1820
|
-
"name": "getViewOfMonth",
|
|
1751
|
+
"kind": "custom-element-definition",
|
|
1752
|
+
"name": "nord-card",
|
|
1821
1753
|
"declaration": {
|
|
1822
|
-
"name": "
|
|
1823
|
-
"module": "src/
|
|
1754
|
+
"name": "Card",
|
|
1755
|
+
"module": "src/card/Card.ts"
|
|
1824
1756
|
}
|
|
1825
1757
|
}
|
|
1826
1758
|
]
|
|
1827
1759
|
},
|
|
1828
1760
|
{
|
|
1829
1761
|
"kind": "javascript-module",
|
|
1830
|
-
"path": "src/
|
|
1762
|
+
"path": "src/command-menu/CommandMenu.ts",
|
|
1831
1763
|
"declarations": [
|
|
1832
1764
|
{
|
|
1833
1765
|
"kind": "class",
|
|
1834
|
-
"description": "
|
|
1835
|
-
"name": "
|
|
1836
|
-
"
|
|
1837
|
-
"name": "Event",
|
|
1838
|
-
"module": "src/common/events.ts"
|
|
1839
|
-
},
|
|
1840
|
-
"status": null,
|
|
1841
|
-
"category": null
|
|
1842
|
-
}
|
|
1843
|
-
],
|
|
1844
|
-
"exports": [
|
|
1845
|
-
{
|
|
1846
|
-
"kind": "js",
|
|
1847
|
-
"name": "NordEvent",
|
|
1848
|
-
"declaration": {
|
|
1849
|
-
"name": "NordEvent",
|
|
1850
|
-
"module": "src/common/events.ts"
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
]
|
|
1854
|
-
},
|
|
1855
|
-
{
|
|
1856
|
-
"kind": "javascript-module",
|
|
1857
|
-
"path": "src/common/focus.ts",
|
|
1858
|
-
"declarations": [
|
|
1859
|
-
{
|
|
1860
|
-
"kind": "function",
|
|
1861
|
-
"name": "getFocusedElement",
|
|
1862
|
-
"return": {
|
|
1863
|
-
"type": {
|
|
1864
|
-
"text": "Element | undefined"
|
|
1865
|
-
}
|
|
1866
|
-
},
|
|
1867
|
-
"parameters": [
|
|
1766
|
+
"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.",
|
|
1767
|
+
"name": "CommandMenu",
|
|
1768
|
+
"slots": [
|
|
1868
1769
|
{
|
|
1869
|
-
"
|
|
1870
|
-
"
|
|
1871
|
-
"text": "Document | ShadowRoot"
|
|
1872
|
-
}
|
|
1770
|
+
"description": "Used to replace the default footer contents.",
|
|
1771
|
+
"name": "footer"
|
|
1873
1772
|
}
|
|
1874
1773
|
],
|
|
1875
|
-
"
|
|
1876
|
-
}
|
|
1877
|
-
],
|
|
1878
|
-
"exports": [
|
|
1879
|
-
{
|
|
1880
|
-
"kind": "js",
|
|
1881
|
-
"name": "getFocusedElement",
|
|
1882
|
-
"declaration": {
|
|
1883
|
-
"name": "getFocusedElement",
|
|
1884
|
-
"module": "src/common/focus.ts"
|
|
1885
|
-
}
|
|
1886
|
-
}
|
|
1887
|
-
]
|
|
1888
|
-
},
|
|
1889
|
-
{
|
|
1890
|
-
"kind": "javascript-module",
|
|
1891
|
-
"path": "src/common/input.ts",
|
|
1892
|
-
"declarations": [
|
|
1893
|
-
{
|
|
1894
|
-
"kind": "function",
|
|
1895
|
-
"name": "cleanValue",
|
|
1896
|
-
"return": {
|
|
1897
|
-
"type": {
|
|
1898
|
-
"text": "string"
|
|
1899
|
-
}
|
|
1900
|
-
},
|
|
1901
|
-
"parameters": [
|
|
1774
|
+
"members": [
|
|
1902
1775
|
{
|
|
1903
|
-
"
|
|
1904
|
-
"
|
|
1905
|
-
|
|
1906
|
-
}
|
|
1776
|
+
"kind": "field",
|
|
1777
|
+
"name": "inputRef",
|
|
1778
|
+
"privacy": "private"
|
|
1907
1779
|
},
|
|
1908
1780
|
{
|
|
1909
|
-
"
|
|
1910
|
-
"
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
}
|
|
1914
|
-
]
|
|
1915
|
-
}
|
|
1916
|
-
],
|
|
1917
|
-
"exports": [
|
|
1918
|
-
{
|
|
1919
|
-
"kind": "js",
|
|
1920
|
-
"name": "cleanValue",
|
|
1921
|
-
"declaration": {
|
|
1922
|
-
"name": "cleanValue",
|
|
1923
|
-
"module": "src/common/input.ts"
|
|
1924
|
-
}
|
|
1925
|
-
}
|
|
1926
|
-
]
|
|
1927
|
-
},
|
|
1928
|
-
{
|
|
1929
|
-
"kind": "javascript-module",
|
|
1930
|
-
"path": "src/common/number.ts",
|
|
1931
|
-
"declarations": [
|
|
1932
|
-
{
|
|
1933
|
-
"kind": "function",
|
|
1934
|
-
"name": "wrap",
|
|
1935
|
-
"parameters": [
|
|
1781
|
+
"kind": "field",
|
|
1782
|
+
"name": "listRef",
|
|
1783
|
+
"privacy": "private"
|
|
1784
|
+
},
|
|
1936
1785
|
{
|
|
1937
|
-
"
|
|
1786
|
+
"kind": "field",
|
|
1787
|
+
"name": "previousFocus",
|
|
1938
1788
|
"type": {
|
|
1939
|
-
"text": "
|
|
1940
|
-
}
|
|
1789
|
+
"text": "HTMLElement | undefined"
|
|
1790
|
+
},
|
|
1791
|
+
"privacy": "private"
|
|
1941
1792
|
},
|
|
1942
1793
|
{
|
|
1943
|
-
"
|
|
1944
|
-
"
|
|
1945
|
-
|
|
1946
|
-
}
|
|
1794
|
+
"kind": "field",
|
|
1795
|
+
"name": "dismissController",
|
|
1796
|
+
"privacy": "private",
|
|
1797
|
+
"default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
|
|
1947
1798
|
},
|
|
1948
1799
|
{
|
|
1949
|
-
"
|
|
1950
|
-
"
|
|
1951
|
-
|
|
1952
|
-
}
|
|
1953
|
-
}
|
|
1954
|
-
],
|
|
1955
|
-
"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"
|
|
1956
|
-
},
|
|
1957
|
-
{
|
|
1958
|
-
"kind": "function",
|
|
1959
|
-
"name": "range",
|
|
1960
|
-
"parameters": [
|
|
1800
|
+
"kind": "field",
|
|
1801
|
+
"name": "keyboardController",
|
|
1802
|
+
"privacy": "private",
|
|
1803
|
+
"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 })"
|
|
1804
|
+
},
|
|
1961
1805
|
{
|
|
1962
|
-
"
|
|
1963
|
-
"
|
|
1964
|
-
"text": "number"
|
|
1965
|
-
}
|
|
1966
|
-
},
|
|
1967
|
-
{
|
|
1968
|
-
"name": "to",
|
|
1969
|
-
"type": {
|
|
1970
|
-
"text": "number"
|
|
1971
|
-
}
|
|
1972
|
-
}
|
|
1973
|
-
]
|
|
1974
|
-
}
|
|
1975
|
-
],
|
|
1976
|
-
"exports": [
|
|
1977
|
-
{
|
|
1978
|
-
"kind": "js",
|
|
1979
|
-
"name": "wrap",
|
|
1980
|
-
"declaration": {
|
|
1981
|
-
"name": "wrap",
|
|
1982
|
-
"module": "src/common/number.ts"
|
|
1983
|
-
}
|
|
1984
|
-
},
|
|
1985
|
-
{
|
|
1986
|
-
"kind": "js",
|
|
1987
|
-
"name": "range",
|
|
1988
|
-
"declaration": {
|
|
1989
|
-
"name": "range",
|
|
1990
|
-
"module": "src/common/number.ts"
|
|
1991
|
-
}
|
|
1992
|
-
}
|
|
1993
|
-
]
|
|
1994
|
-
},
|
|
1995
|
-
{
|
|
1996
|
-
"kind": "javascript-module",
|
|
1997
|
-
"path": "src/common/ref.ts",
|
|
1998
|
-
"declarations": [
|
|
1999
|
-
{
|
|
2000
|
-
"kind": "function",
|
|
2001
|
-
"name": "mergeRefs",
|
|
2002
|
-
"return": {
|
|
2003
|
-
"type": {
|
|
2004
|
-
"text": "RefCallback"
|
|
2005
|
-
}
|
|
2006
|
-
},
|
|
2007
|
-
"parameters": [
|
|
2008
|
-
{
|
|
2009
|
-
"name": "refs",
|
|
2010
|
-
"type": {
|
|
2011
|
-
"text": "Ref[]"
|
|
2012
|
-
}
|
|
2013
|
-
}
|
|
2014
|
-
],
|
|
2015
|
-
"description": "Creates a ref callback which will assign the element to every given ref"
|
|
2016
|
-
}
|
|
2017
|
-
],
|
|
2018
|
-
"exports": [
|
|
2019
|
-
{
|
|
2020
|
-
"kind": "js",
|
|
2021
|
-
"name": "mergeRefs",
|
|
2022
|
-
"declaration": {
|
|
2023
|
-
"name": "mergeRefs",
|
|
2024
|
-
"module": "src/common/ref.ts"
|
|
2025
|
-
}
|
|
2026
|
-
}
|
|
2027
|
-
]
|
|
2028
|
-
},
|
|
2029
|
-
{
|
|
2030
|
-
"kind": "javascript-module",
|
|
2031
|
-
"path": "src/command-menu/CommandMenu.ts",
|
|
2032
|
-
"declarations": [
|
|
2033
|
-
{
|
|
2034
|
-
"kind": "class",
|
|
2035
|
-
"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.",
|
|
2036
|
-
"name": "CommandMenu",
|
|
2037
|
-
"slots": [
|
|
2038
|
-
{
|
|
2039
|
-
"description": "Used to replace the default footer contents.",
|
|
2040
|
-
"name": "footer"
|
|
2041
|
-
}
|
|
2042
|
-
],
|
|
2043
|
-
"members": [
|
|
2044
|
-
{
|
|
2045
|
-
"kind": "field",
|
|
2046
|
-
"name": "inputRef",
|
|
2047
|
-
"privacy": "private"
|
|
2048
|
-
},
|
|
2049
|
-
{
|
|
2050
|
-
"kind": "field",
|
|
2051
|
-
"name": "listRef",
|
|
2052
|
-
"privacy": "private"
|
|
2053
|
-
},
|
|
2054
|
-
{
|
|
2055
|
-
"kind": "field",
|
|
2056
|
-
"name": "previousFocus",
|
|
2057
|
-
"type": {
|
|
2058
|
-
"text": "HTMLElement | undefined"
|
|
2059
|
-
},
|
|
2060
|
-
"privacy": "private"
|
|
2061
|
-
},
|
|
2062
|
-
{
|
|
2063
|
-
"kind": "field",
|
|
2064
|
-
"name": "dismissController",
|
|
2065
|
-
"privacy": "private",
|
|
2066
|
-
"default": "new LightDismissController(this, {\n isOpen: () => this.open,\n onDismiss: () => this.close(),\n })"
|
|
2067
|
-
},
|
|
2068
|
-
{
|
|
2069
|
-
"kind": "field",
|
|
2070
|
-
"name": "keyboardController",
|
|
2071
|
-
"privacy": "private",
|
|
2072
|
-
"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 })"
|
|
2073
|
-
},
|
|
2074
|
-
{
|
|
2075
|
-
"kind": "field",
|
|
2076
|
-
"name": "open",
|
|
1806
|
+
"kind": "field",
|
|
1807
|
+
"name": "open",
|
|
2077
1808
|
"type": {
|
|
2078
1809
|
"text": "boolean"
|
|
2079
1810
|
},
|
|
@@ -2283,254 +2014,1107 @@
|
|
|
2283
2014
|
]
|
|
2284
2015
|
},
|
|
2285
2016
|
{
|
|
2286
|
-
"kind": "method",
|
|
2287
|
-
"name": "setSearch",
|
|
2288
|
-
"privacy": "private",
|
|
2289
|
-
"parameters": [
|
|
2290
|
-
{
|
|
2291
|
-
"name": "str",
|
|
2292
|
-
"type": {
|
|
2293
|
-
"text": "string"
|
|
2294
|
-
}
|
|
2295
|
-
}
|
|
2296
|
-
]
|
|
2017
|
+
"kind": "method",
|
|
2018
|
+
"name": "setSearch",
|
|
2019
|
+
"privacy": "private",
|
|
2020
|
+
"parameters": [
|
|
2021
|
+
{
|
|
2022
|
+
"name": "str",
|
|
2023
|
+
"type": {
|
|
2024
|
+
"text": "string"
|
|
2025
|
+
}
|
|
2026
|
+
}
|
|
2027
|
+
]
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
"kind": "method",
|
|
2031
|
+
"name": "filterCommands",
|
|
2032
|
+
"privacy": "private"
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
"kind": "field",
|
|
2036
|
+
"name": "_warningLogged",
|
|
2037
|
+
"type": {
|
|
2038
|
+
"text": "boolean"
|
|
2039
|
+
},
|
|
2040
|
+
"privacy": "private",
|
|
2041
|
+
"static": true,
|
|
2042
|
+
"default": "false",
|
|
2043
|
+
"inheritedFrom": {
|
|
2044
|
+
"name": "DraftComponentMixin",
|
|
2045
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
],
|
|
2049
|
+
"events": [
|
|
2050
|
+
{
|
|
2051
|
+
"name": "open",
|
|
2052
|
+
"type": {
|
|
2053
|
+
"text": "NordEvent"
|
|
2054
|
+
},
|
|
2055
|
+
"description": "The command menu was opened foo."
|
|
2056
|
+
},
|
|
2057
|
+
{
|
|
2058
|
+
"name": "close",
|
|
2059
|
+
"type": {
|
|
2060
|
+
"text": "NordEvent"
|
|
2061
|
+
},
|
|
2062
|
+
"description": "The command menu was closed bar."
|
|
2063
|
+
},
|
|
2064
|
+
{
|
|
2065
|
+
"type": {
|
|
2066
|
+
"text": "SelectEvent"
|
|
2067
|
+
},
|
|
2068
|
+
"description": "User selected a command from the menu.",
|
|
2069
|
+
"name": "n-select"
|
|
2070
|
+
}
|
|
2071
|
+
],
|
|
2072
|
+
"attributes": [
|
|
2073
|
+
{
|
|
2074
|
+
"name": "open",
|
|
2075
|
+
"type": {
|
|
2076
|
+
"text": "boolean"
|
|
2077
|
+
},
|
|
2078
|
+
"default": "false",
|
|
2079
|
+
"description": "Show or hide the command menu.",
|
|
2080
|
+
"fieldName": "open"
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
"name": "placeholder",
|
|
2084
|
+
"type": {
|
|
2085
|
+
"text": "string"
|
|
2086
|
+
},
|
|
2087
|
+
"default": "\"Type a command or search...\"",
|
|
2088
|
+
"description": "Hint text to display in the search field.",
|
|
2089
|
+
"fieldName": "placeholder"
|
|
2090
|
+
}
|
|
2091
|
+
],
|
|
2092
|
+
"mixins": [
|
|
2093
|
+
{
|
|
2094
|
+
"name": "DraftComponentMixin",
|
|
2095
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
2096
|
+
}
|
|
2097
|
+
],
|
|
2098
|
+
"superclass": {
|
|
2099
|
+
"name": "LitElement",
|
|
2100
|
+
"package": "lit"
|
|
2101
|
+
},
|
|
2102
|
+
"status": "draft",
|
|
2103
|
+
"category": "action",
|
|
2104
|
+
"tagName": "nord-command-menu",
|
|
2105
|
+
"customElement": true
|
|
2106
|
+
}
|
|
2107
|
+
],
|
|
2108
|
+
"exports": [
|
|
2109
|
+
{
|
|
2110
|
+
"kind": "js",
|
|
2111
|
+
"name": "default",
|
|
2112
|
+
"declaration": {
|
|
2113
|
+
"name": "CommandMenu",
|
|
2114
|
+
"module": "src/command-menu/CommandMenu.ts"
|
|
2115
|
+
}
|
|
2116
|
+
},
|
|
2117
|
+
{
|
|
2118
|
+
"kind": "custom-element-definition",
|
|
2119
|
+
"name": "nord-command-menu",
|
|
2120
|
+
"declaration": {
|
|
2121
|
+
"name": "CommandMenu",
|
|
2122
|
+
"module": "src/command-menu/CommandMenu.ts"
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
]
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
"kind": "javascript-module",
|
|
2129
|
+
"path": "src/command-menu/CommandMenuAction.ts",
|
|
2130
|
+
"declarations": [
|
|
2131
|
+
{
|
|
2132
|
+
"kind": "class",
|
|
2133
|
+
"description": "Command Menu Action displays a single action that can be executed by the user. For usage examples, please see Command Menu component.",
|
|
2134
|
+
"name": "CommandMenuAction",
|
|
2135
|
+
"members": [
|
|
2136
|
+
{
|
|
2137
|
+
"kind": "field",
|
|
2138
|
+
"name": "command",
|
|
2139
|
+
"type": {
|
|
2140
|
+
"text": "ICommandMenuAction"
|
|
2141
|
+
},
|
|
2142
|
+
"attribute": "command"
|
|
2143
|
+
},
|
|
2144
|
+
{
|
|
2145
|
+
"kind": "field",
|
|
2146
|
+
"name": "selected",
|
|
2147
|
+
"type": {
|
|
2148
|
+
"text": "boolean"
|
|
2149
|
+
},
|
|
2150
|
+
"default": "false",
|
|
2151
|
+
"attribute": "selected"
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
"kind": "method",
|
|
2155
|
+
"name": "ensureInView",
|
|
2156
|
+
"privacy": "private",
|
|
2157
|
+
"description": "Scroll to show element"
|
|
2158
|
+
},
|
|
2159
|
+
{
|
|
2160
|
+
"kind": "method",
|
|
2161
|
+
"name": "renderShortcut",
|
|
2162
|
+
"privacy": "private"
|
|
2163
|
+
}
|
|
2164
|
+
],
|
|
2165
|
+
"attributes": [
|
|
2166
|
+
{
|
|
2167
|
+
"name": "command",
|
|
2168
|
+
"type": {
|
|
2169
|
+
"text": "ICommandMenuAction"
|
|
2170
|
+
},
|
|
2171
|
+
"fieldName": "command"
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
"name": "selected",
|
|
2175
|
+
"type": {
|
|
2176
|
+
"text": "boolean"
|
|
2177
|
+
},
|
|
2178
|
+
"default": "false",
|
|
2179
|
+
"fieldName": "selected"
|
|
2180
|
+
}
|
|
2181
|
+
],
|
|
2182
|
+
"superclass": {
|
|
2183
|
+
"name": "LitElement",
|
|
2184
|
+
"package": "lit"
|
|
2185
|
+
},
|
|
2186
|
+
"status": "internal",
|
|
2187
|
+
"category": null,
|
|
2188
|
+
"tagName": "nord-command-menu-action",
|
|
2189
|
+
"customElement": true
|
|
2190
|
+
}
|
|
2191
|
+
],
|
|
2192
|
+
"exports": [
|
|
2193
|
+
{
|
|
2194
|
+
"kind": "js",
|
|
2195
|
+
"name": "default",
|
|
2196
|
+
"declaration": {
|
|
2197
|
+
"name": "CommandMenuAction",
|
|
2198
|
+
"module": "src/command-menu/CommandMenuAction.ts"
|
|
2199
|
+
}
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
"kind": "custom-element-definition",
|
|
2203
|
+
"name": "nord-command-menu-action",
|
|
2204
|
+
"declaration": {
|
|
2205
|
+
"name": "CommandMenuAction",
|
|
2206
|
+
"module": "src/command-menu/CommandMenuAction.ts"
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
]
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
"kind": "javascript-module",
|
|
2213
|
+
"path": "src/command-menu/ICommandMenuAction.ts",
|
|
2214
|
+
"declarations": [],
|
|
2215
|
+
"exports": []
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
"kind": "javascript-module",
|
|
2219
|
+
"path": "src/command-menu/KeyboardController.ts",
|
|
2220
|
+
"declarations": [
|
|
2221
|
+
{
|
|
2222
|
+
"kind": "class",
|
|
2223
|
+
"description": "",
|
|
2224
|
+
"name": "KeyboardController",
|
|
2225
|
+
"members": [
|
|
2226
|
+
{
|
|
2227
|
+
"kind": "field",
|
|
2228
|
+
"name": "host",
|
|
2229
|
+
"type": {
|
|
2230
|
+
"text": "CommandMenu"
|
|
2231
|
+
},
|
|
2232
|
+
"privacy": "private",
|
|
2233
|
+
"default": "host"
|
|
2234
|
+
},
|
|
2235
|
+
{
|
|
2236
|
+
"kind": "field",
|
|
2237
|
+
"name": "globalShortcuts",
|
|
2238
|
+
"type": {
|
|
2239
|
+
"text": "ShortcutController"
|
|
2240
|
+
},
|
|
2241
|
+
"privacy": "private",
|
|
2242
|
+
"default": "new ShortcutController(host, { \"$mod+k\": preventDefault(actions.toggleOpen) })"
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
"kind": "field",
|
|
2246
|
+
"name": "navigationShortcuts",
|
|
2247
|
+
"type": {
|
|
2248
|
+
"text": "ShortcutController"
|
|
2249
|
+
},
|
|
2250
|
+
"privacy": "private",
|
|
2251
|
+
"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 )"
|
|
2252
|
+
},
|
|
2253
|
+
{
|
|
2254
|
+
"kind": "field",
|
|
2255
|
+
"name": "commandShortcuts",
|
|
2256
|
+
"type": {
|
|
2257
|
+
"text": "ShortcutController"
|
|
2258
|
+
},
|
|
2259
|
+
"privacy": "private",
|
|
2260
|
+
"default": "new ShortcutController(host)"
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
"kind": "method",
|
|
2264
|
+
"name": "registerCommandShortcuts"
|
|
2265
|
+
}
|
|
2266
|
+
]
|
|
2267
|
+
}
|
|
2268
|
+
],
|
|
2269
|
+
"exports": [
|
|
2270
|
+
{
|
|
2271
|
+
"kind": "js",
|
|
2272
|
+
"name": "KeyboardController",
|
|
2273
|
+
"declaration": {
|
|
2274
|
+
"name": "KeyboardController",
|
|
2275
|
+
"module": "src/command-menu/KeyboardController.ts"
|
|
2276
|
+
}
|
|
2277
|
+
}
|
|
2278
|
+
]
|
|
2279
|
+
},
|
|
2280
|
+
{
|
|
2281
|
+
"kind": "javascript-module",
|
|
2282
|
+
"path": "src/command-menu/events.ts",
|
|
2283
|
+
"declarations": [
|
|
2284
|
+
{
|
|
2285
|
+
"kind": "class",
|
|
2286
|
+
"description": "",
|
|
2287
|
+
"name": "SelectEvent",
|
|
2288
|
+
"members": [
|
|
2289
|
+
{
|
|
2290
|
+
"kind": "field",
|
|
2291
|
+
"name": "command",
|
|
2292
|
+
"type": {
|
|
2293
|
+
"text": "ICommandMenuAction"
|
|
2294
|
+
},
|
|
2295
|
+
"default": "command"
|
|
2296
|
+
}
|
|
2297
|
+
],
|
|
2298
|
+
"superclass": {
|
|
2299
|
+
"name": "NordEvent",
|
|
2300
|
+
"module": "/src/common/events.js"
|
|
2301
|
+
}
|
|
2302
|
+
}
|
|
2303
|
+
],
|
|
2304
|
+
"exports": [
|
|
2305
|
+
{
|
|
2306
|
+
"kind": "js",
|
|
2307
|
+
"name": "SelectEvent",
|
|
2308
|
+
"declaration": {
|
|
2309
|
+
"name": "SelectEvent",
|
|
2310
|
+
"module": "src/command-menu/events.ts"
|
|
2311
|
+
}
|
|
2312
|
+
}
|
|
2313
|
+
]
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
"kind": "javascript-module",
|
|
2317
|
+
"path": "src/common/collection.ts",
|
|
2318
|
+
"declarations": [
|
|
2319
|
+
{
|
|
2320
|
+
"kind": "function",
|
|
2321
|
+
"name": "groupBy",
|
|
2322
|
+
"parameters": [
|
|
2323
|
+
{
|
|
2324
|
+
"name": "array",
|
|
2325
|
+
"type": {
|
|
2326
|
+
"text": "Array<TObject>"
|
|
2327
|
+
},
|
|
2328
|
+
"description": "the collection of objects to group"
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
"name": "key",
|
|
2332
|
+
"type": {
|
|
2333
|
+
"text": "TKey"
|
|
2334
|
+
},
|
|
2335
|
+
"description": "the property to group by"
|
|
2336
|
+
}
|
|
2337
|
+
],
|
|
2338
|
+
"description": "Groups an array objects by property value",
|
|
2339
|
+
"return": {
|
|
2340
|
+
"type": {
|
|
2341
|
+
"text": ""
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
},
|
|
2345
|
+
{
|
|
2346
|
+
"kind": "function",
|
|
2347
|
+
"name": "chunk",
|
|
2348
|
+
"return": {
|
|
2349
|
+
"type": {
|
|
2350
|
+
"text": ""
|
|
2351
|
+
}
|
|
2352
|
+
},
|
|
2353
|
+
"parameters": [
|
|
2354
|
+
{
|
|
2355
|
+
"name": "array",
|
|
2356
|
+
"type": {
|
|
2357
|
+
"text": "T[]"
|
|
2358
|
+
}
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"name": "chunkSize",
|
|
2362
|
+
"type": {
|
|
2363
|
+
"text": "number"
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
],
|
|
2367
|
+
"description": "Split an array into chunks of the given size"
|
|
2368
|
+
},
|
|
2369
|
+
{
|
|
2370
|
+
"kind": "function",
|
|
2371
|
+
"name": "mapWithOffset",
|
|
2372
|
+
"return": {
|
|
2373
|
+
"type": {
|
|
2374
|
+
"text": ""
|
|
2375
|
+
}
|
|
2376
|
+
},
|
|
2377
|
+
"parameters": [
|
|
2378
|
+
{
|
|
2379
|
+
"name": "array",
|
|
2380
|
+
"type": {
|
|
2381
|
+
"text": "T[]"
|
|
2382
|
+
}
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
"name": "startingOffset",
|
|
2386
|
+
"type": {
|
|
2387
|
+
"text": "number"
|
|
2388
|
+
}
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"name": "mapFn",
|
|
2392
|
+
"type": {
|
|
2393
|
+
"text": "(item: T) => U"
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
],
|
|
2397
|
+
"description": "maps over an array, starting at the given offset and wrapping around."
|
|
2398
|
+
}
|
|
2399
|
+
],
|
|
2400
|
+
"exports": [
|
|
2401
|
+
{
|
|
2402
|
+
"kind": "js",
|
|
2403
|
+
"name": "groupBy",
|
|
2404
|
+
"declaration": {
|
|
2405
|
+
"name": "groupBy",
|
|
2406
|
+
"module": "src/common/collection.ts"
|
|
2407
|
+
}
|
|
2408
|
+
},
|
|
2409
|
+
{
|
|
2410
|
+
"kind": "js",
|
|
2411
|
+
"name": "chunk",
|
|
2412
|
+
"declaration": {
|
|
2413
|
+
"name": "chunk",
|
|
2414
|
+
"module": "src/common/collection.ts"
|
|
2415
|
+
}
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
"kind": "js",
|
|
2419
|
+
"name": "mapWithOffset",
|
|
2420
|
+
"declaration": {
|
|
2421
|
+
"name": "mapWithOffset",
|
|
2422
|
+
"module": "src/common/collection.ts"
|
|
2423
|
+
}
|
|
2424
|
+
}
|
|
2425
|
+
]
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
"kind": "javascript-module",
|
|
2429
|
+
"path": "src/common/dates.ts",
|
|
2430
|
+
"declarations": [
|
|
2431
|
+
{
|
|
2432
|
+
"kind": "function",
|
|
2433
|
+
"name": "createDate",
|
|
2434
|
+
"return": {
|
|
2435
|
+
"type": {
|
|
2436
|
+
"text": "Date | undefined"
|
|
2437
|
+
}
|
|
2438
|
+
},
|
|
2439
|
+
"parameters": [
|
|
2440
|
+
{
|
|
2441
|
+
"name": "year",
|
|
2442
|
+
"type": {
|
|
2443
|
+
"text": "string"
|
|
2444
|
+
}
|
|
2445
|
+
},
|
|
2446
|
+
{
|
|
2447
|
+
"name": "month",
|
|
2448
|
+
"type": {
|
|
2449
|
+
"text": "string"
|
|
2450
|
+
}
|
|
2451
|
+
},
|
|
2452
|
+
{
|
|
2453
|
+
"name": "day",
|
|
2454
|
+
"type": {
|
|
2455
|
+
"text": "string"
|
|
2456
|
+
}
|
|
2457
|
+
}
|
|
2458
|
+
]
|
|
2459
|
+
},
|
|
2460
|
+
{
|
|
2461
|
+
"kind": "function",
|
|
2462
|
+
"name": "parseISODate",
|
|
2463
|
+
"return": {
|
|
2464
|
+
"type": {
|
|
2465
|
+
"text": "Date | undefined"
|
|
2466
|
+
}
|
|
2467
|
+
},
|
|
2468
|
+
"parameters": [
|
|
2469
|
+
{
|
|
2470
|
+
"name": "value",
|
|
2471
|
+
"type": {
|
|
2472
|
+
"text": "string"
|
|
2473
|
+
},
|
|
2474
|
+
"description": "date string in ISO format YYYY-MM-DD"
|
|
2475
|
+
}
|
|
2476
|
+
]
|
|
2477
|
+
},
|
|
2478
|
+
{
|
|
2479
|
+
"kind": "function",
|
|
2480
|
+
"name": "printISODate",
|
|
2481
|
+
"return": {
|
|
2482
|
+
"type": {
|
|
2483
|
+
"text": "string"
|
|
2484
|
+
}
|
|
2485
|
+
},
|
|
2486
|
+
"parameters": [
|
|
2487
|
+
{
|
|
2488
|
+
"name": "date",
|
|
2489
|
+
"type": {
|
|
2490
|
+
"text": "Date"
|
|
2491
|
+
}
|
|
2492
|
+
}
|
|
2493
|
+
],
|
|
2494
|
+
"description": "print date in format YYYY-MM-DD"
|
|
2495
|
+
},
|
|
2496
|
+
{
|
|
2497
|
+
"kind": "function",
|
|
2498
|
+
"name": "isEqualMonth",
|
|
2499
|
+
"return": {
|
|
2500
|
+
"type": {
|
|
2501
|
+
"text": "boolean"
|
|
2502
|
+
}
|
|
2503
|
+
},
|
|
2504
|
+
"parameters": [
|
|
2505
|
+
{
|
|
2506
|
+
"name": "a",
|
|
2507
|
+
"optional": true,
|
|
2508
|
+
"type": {
|
|
2509
|
+
"text": "Date"
|
|
2510
|
+
}
|
|
2511
|
+
},
|
|
2512
|
+
{
|
|
2513
|
+
"name": "b",
|
|
2514
|
+
"optional": true,
|
|
2515
|
+
"type": {
|
|
2516
|
+
"text": "Date"
|
|
2517
|
+
}
|
|
2518
|
+
}
|
|
2519
|
+
],
|
|
2520
|
+
"description": "Compare if two dates are in the same month of the same year."
|
|
2521
|
+
},
|
|
2522
|
+
{
|
|
2523
|
+
"kind": "function",
|
|
2524
|
+
"name": "isEqual",
|
|
2525
|
+
"return": {
|
|
2526
|
+
"type": {
|
|
2527
|
+
"text": "boolean"
|
|
2528
|
+
}
|
|
2529
|
+
},
|
|
2530
|
+
"parameters": [
|
|
2531
|
+
{
|
|
2532
|
+
"name": "a",
|
|
2533
|
+
"optional": true,
|
|
2534
|
+
"type": {
|
|
2535
|
+
"text": "Date"
|
|
2536
|
+
}
|
|
2537
|
+
},
|
|
2538
|
+
{
|
|
2539
|
+
"name": "b",
|
|
2540
|
+
"optional": true,
|
|
2541
|
+
"type": {
|
|
2542
|
+
"text": "Date"
|
|
2543
|
+
}
|
|
2544
|
+
}
|
|
2545
|
+
],
|
|
2546
|
+
"description": "Compare if two dates are equal in terms of day, month, and year"
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
"kind": "function",
|
|
2550
|
+
"name": "addDays",
|
|
2551
|
+
"return": {
|
|
2552
|
+
"type": {
|
|
2553
|
+
"text": "Date"
|
|
2554
|
+
}
|
|
2555
|
+
},
|
|
2556
|
+
"parameters": [
|
|
2557
|
+
{
|
|
2558
|
+
"name": "date",
|
|
2559
|
+
"type": {
|
|
2560
|
+
"text": "Date"
|
|
2561
|
+
}
|
|
2562
|
+
},
|
|
2563
|
+
{
|
|
2564
|
+
"name": "days",
|
|
2565
|
+
"type": {
|
|
2566
|
+
"text": "number"
|
|
2567
|
+
}
|
|
2568
|
+
}
|
|
2569
|
+
]
|
|
2570
|
+
},
|
|
2571
|
+
{
|
|
2572
|
+
"kind": "function",
|
|
2573
|
+
"name": "addMonths",
|
|
2574
|
+
"return": {
|
|
2575
|
+
"type": {
|
|
2576
|
+
"text": "Date"
|
|
2577
|
+
}
|
|
2578
|
+
},
|
|
2579
|
+
"parameters": [
|
|
2580
|
+
{
|
|
2581
|
+
"name": "date",
|
|
2582
|
+
"type": {
|
|
2583
|
+
"text": "Date"
|
|
2584
|
+
}
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
"name": "months",
|
|
2588
|
+
"type": {
|
|
2589
|
+
"text": "number"
|
|
2590
|
+
}
|
|
2591
|
+
}
|
|
2592
|
+
]
|
|
2593
|
+
},
|
|
2594
|
+
{
|
|
2595
|
+
"kind": "function",
|
|
2596
|
+
"name": "addYears",
|
|
2597
|
+
"return": {
|
|
2598
|
+
"type": {
|
|
2599
|
+
"text": "Date"
|
|
2600
|
+
}
|
|
2601
|
+
},
|
|
2602
|
+
"parameters": [
|
|
2603
|
+
{
|
|
2604
|
+
"name": "date",
|
|
2605
|
+
"type": {
|
|
2606
|
+
"text": "Date"
|
|
2607
|
+
}
|
|
2608
|
+
},
|
|
2609
|
+
{
|
|
2610
|
+
"name": "years",
|
|
2611
|
+
"type": {
|
|
2612
|
+
"text": "number"
|
|
2613
|
+
}
|
|
2614
|
+
}
|
|
2615
|
+
]
|
|
2616
|
+
},
|
|
2617
|
+
{
|
|
2618
|
+
"kind": "function",
|
|
2619
|
+
"name": "startOfWeek",
|
|
2620
|
+
"return": {
|
|
2621
|
+
"type": {
|
|
2622
|
+
"text": "Date"
|
|
2623
|
+
}
|
|
2624
|
+
},
|
|
2625
|
+
"parameters": [
|
|
2626
|
+
{
|
|
2627
|
+
"name": "date",
|
|
2628
|
+
"type": {
|
|
2629
|
+
"text": "Date"
|
|
2630
|
+
}
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
"name": "firstDayOfWeek",
|
|
2634
|
+
"default": "DaysOfWeek.Monday",
|
|
2635
|
+
"type": {
|
|
2636
|
+
"text": "DaysOfWeek"
|
|
2637
|
+
}
|
|
2638
|
+
}
|
|
2639
|
+
]
|
|
2640
|
+
},
|
|
2641
|
+
{
|
|
2642
|
+
"kind": "function",
|
|
2643
|
+
"name": "endOfWeek",
|
|
2644
|
+
"return": {
|
|
2645
|
+
"type": {
|
|
2646
|
+
"text": "Date"
|
|
2647
|
+
}
|
|
2648
|
+
},
|
|
2649
|
+
"parameters": [
|
|
2650
|
+
{
|
|
2651
|
+
"name": "date",
|
|
2652
|
+
"type": {
|
|
2653
|
+
"text": "Date"
|
|
2654
|
+
}
|
|
2655
|
+
},
|
|
2656
|
+
{
|
|
2657
|
+
"name": "firstDayOfWeek",
|
|
2658
|
+
"default": "DaysOfWeek.Monday",
|
|
2659
|
+
"type": {
|
|
2660
|
+
"text": "DaysOfWeek"
|
|
2661
|
+
}
|
|
2662
|
+
}
|
|
2663
|
+
]
|
|
2664
|
+
},
|
|
2665
|
+
{
|
|
2666
|
+
"kind": "function",
|
|
2667
|
+
"name": "startOfMonth",
|
|
2668
|
+
"return": {
|
|
2669
|
+
"type": {
|
|
2670
|
+
"text": "Date"
|
|
2671
|
+
}
|
|
2672
|
+
},
|
|
2673
|
+
"parameters": [
|
|
2674
|
+
{
|
|
2675
|
+
"name": "date",
|
|
2676
|
+
"type": {
|
|
2677
|
+
"text": "Date"
|
|
2678
|
+
}
|
|
2679
|
+
}
|
|
2680
|
+
]
|
|
2681
|
+
},
|
|
2682
|
+
{
|
|
2683
|
+
"kind": "function",
|
|
2684
|
+
"name": "endOfMonth",
|
|
2685
|
+
"return": {
|
|
2686
|
+
"type": {
|
|
2687
|
+
"text": "Date"
|
|
2688
|
+
}
|
|
2689
|
+
},
|
|
2690
|
+
"parameters": [
|
|
2691
|
+
{
|
|
2692
|
+
"name": "date",
|
|
2693
|
+
"type": {
|
|
2694
|
+
"text": "Date"
|
|
2695
|
+
}
|
|
2696
|
+
}
|
|
2697
|
+
]
|
|
2698
|
+
},
|
|
2699
|
+
{
|
|
2700
|
+
"kind": "function",
|
|
2701
|
+
"name": "setMonth",
|
|
2702
|
+
"return": {
|
|
2703
|
+
"type": {
|
|
2704
|
+
"text": "Date"
|
|
2705
|
+
}
|
|
2706
|
+
},
|
|
2707
|
+
"parameters": [
|
|
2708
|
+
{
|
|
2709
|
+
"name": "date",
|
|
2710
|
+
"type": {
|
|
2711
|
+
"text": "Date"
|
|
2712
|
+
}
|
|
2713
|
+
},
|
|
2714
|
+
{
|
|
2715
|
+
"name": "month",
|
|
2716
|
+
"type": {
|
|
2717
|
+
"text": "number"
|
|
2718
|
+
}
|
|
2719
|
+
}
|
|
2720
|
+
]
|
|
2721
|
+
},
|
|
2722
|
+
{
|
|
2723
|
+
"kind": "function",
|
|
2724
|
+
"name": "setYear",
|
|
2725
|
+
"return": {
|
|
2726
|
+
"type": {
|
|
2727
|
+
"text": "Date"
|
|
2728
|
+
}
|
|
2729
|
+
},
|
|
2730
|
+
"parameters": [
|
|
2731
|
+
{
|
|
2732
|
+
"name": "date",
|
|
2733
|
+
"type": {
|
|
2734
|
+
"text": "Date"
|
|
2735
|
+
}
|
|
2736
|
+
},
|
|
2737
|
+
{
|
|
2738
|
+
"name": "year",
|
|
2739
|
+
"type": {
|
|
2740
|
+
"text": "number"
|
|
2741
|
+
}
|
|
2742
|
+
}
|
|
2743
|
+
]
|
|
2744
|
+
},
|
|
2745
|
+
{
|
|
2746
|
+
"kind": "function",
|
|
2747
|
+
"name": "clamp",
|
|
2748
|
+
"return": {
|
|
2749
|
+
"type": {
|
|
2750
|
+
"text": "Date"
|
|
2751
|
+
}
|
|
2752
|
+
},
|
|
2753
|
+
"parameters": [
|
|
2754
|
+
{
|
|
2755
|
+
"name": "date",
|
|
2756
|
+
"type": {
|
|
2757
|
+
"text": "Date"
|
|
2758
|
+
}
|
|
2297
2759
|
},
|
|
2298
2760
|
{
|
|
2299
|
-
"
|
|
2300
|
-
"
|
|
2301
|
-
"
|
|
2761
|
+
"name": "min",
|
|
2762
|
+
"optional": true,
|
|
2763
|
+
"type": {
|
|
2764
|
+
"text": "Date"
|
|
2765
|
+
}
|
|
2302
2766
|
},
|
|
2303
2767
|
{
|
|
2304
|
-
"
|
|
2305
|
-
"
|
|
2768
|
+
"name": "max",
|
|
2769
|
+
"optional": true,
|
|
2306
2770
|
"type": {
|
|
2307
|
-
"text": "
|
|
2308
|
-
},
|
|
2309
|
-
"privacy": "private",
|
|
2310
|
-
"static": true,
|
|
2311
|
-
"default": "false",
|
|
2312
|
-
"inheritedFrom": {
|
|
2313
|
-
"name": "DraftComponentMixin",
|
|
2314
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
2771
|
+
"text": "Date"
|
|
2315
2772
|
}
|
|
2316
2773
|
}
|
|
2317
2774
|
],
|
|
2318
|
-
"
|
|
2775
|
+
"description": "Ensures date is within range, returns min or max if out of bounds"
|
|
2776
|
+
},
|
|
2777
|
+
{
|
|
2778
|
+
"kind": "function",
|
|
2779
|
+
"name": "inRange",
|
|
2780
|
+
"return": {
|
|
2781
|
+
"type": {
|
|
2782
|
+
"text": "boolean"
|
|
2783
|
+
}
|
|
2784
|
+
},
|
|
2785
|
+
"parameters": [
|
|
2319
2786
|
{
|
|
2320
|
-
"name": "
|
|
2787
|
+
"name": "date",
|
|
2321
2788
|
"type": {
|
|
2322
|
-
"text": "
|
|
2323
|
-
}
|
|
2324
|
-
"description": "The command menu was opened foo."
|
|
2789
|
+
"text": "Date"
|
|
2790
|
+
}
|
|
2325
2791
|
},
|
|
2326
2792
|
{
|
|
2327
|
-
"name": "
|
|
2793
|
+
"name": "min",
|
|
2794
|
+
"optional": true,
|
|
2328
2795
|
"type": {
|
|
2329
|
-
"text": "
|
|
2330
|
-
}
|
|
2331
|
-
"description": "The command menu was closed bar."
|
|
2796
|
+
"text": "Date"
|
|
2797
|
+
}
|
|
2332
2798
|
},
|
|
2333
2799
|
{
|
|
2800
|
+
"name": "max",
|
|
2801
|
+
"optional": true,
|
|
2334
2802
|
"type": {
|
|
2335
|
-
"text": "
|
|
2336
|
-
}
|
|
2337
|
-
"description": "User selected a command from the menu.",
|
|
2338
|
-
"name": "n-select"
|
|
2803
|
+
"text": "Date"
|
|
2804
|
+
}
|
|
2339
2805
|
}
|
|
2340
2806
|
],
|
|
2341
|
-
"
|
|
2807
|
+
"description": "Check if date is within a min and max"
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
"kind": "function",
|
|
2811
|
+
"name": "getViewOfMonth",
|
|
2812
|
+
"return": {
|
|
2813
|
+
"type": {
|
|
2814
|
+
"text": "Date[]"
|
|
2815
|
+
}
|
|
2816
|
+
},
|
|
2817
|
+
"parameters": [
|
|
2342
2818
|
{
|
|
2343
|
-
"name": "
|
|
2819
|
+
"name": "date",
|
|
2344
2820
|
"type": {
|
|
2345
|
-
"text": "
|
|
2346
|
-
}
|
|
2347
|
-
"default": "false",
|
|
2348
|
-
"description": "Show or hide the command menu.",
|
|
2349
|
-
"fieldName": "open"
|
|
2821
|
+
"text": "Date"
|
|
2822
|
+
}
|
|
2350
2823
|
},
|
|
2351
2824
|
{
|
|
2352
|
-
"name": "
|
|
2825
|
+
"name": "firstDayOfWeek",
|
|
2826
|
+
"default": "DaysOfWeek.Monday",
|
|
2353
2827
|
"type": {
|
|
2354
|
-
"text": "
|
|
2355
|
-
}
|
|
2356
|
-
"default": "\"Type a command or search...\"",
|
|
2357
|
-
"description": "Hint text to display in the search field.",
|
|
2358
|
-
"fieldName": "placeholder"
|
|
2359
|
-
}
|
|
2360
|
-
],
|
|
2361
|
-
"mixins": [
|
|
2362
|
-
{
|
|
2363
|
-
"name": "DraftComponentMixin",
|
|
2364
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
2828
|
+
"text": "DaysOfWeek"
|
|
2829
|
+
}
|
|
2365
2830
|
}
|
|
2366
2831
|
],
|
|
2367
|
-
"
|
|
2368
|
-
"name": "LitElement",
|
|
2369
|
-
"package": "lit"
|
|
2370
|
-
},
|
|
2371
|
-
"status": "draft",
|
|
2372
|
-
"category": "action",
|
|
2373
|
-
"tagName": "nord-command-menu",
|
|
2374
|
-
"customElement": true
|
|
2832
|
+
"description": "given a date, return an array of dates from a calendar perspective"
|
|
2375
2833
|
}
|
|
2376
2834
|
],
|
|
2377
2835
|
"exports": [
|
|
2378
2836
|
{
|
|
2379
2837
|
"kind": "js",
|
|
2380
|
-
"name": "
|
|
2838
|
+
"name": "createDate",
|
|
2839
|
+
"declaration": {
|
|
2840
|
+
"name": "createDate",
|
|
2841
|
+
"module": "src/common/dates.ts"
|
|
2842
|
+
}
|
|
2843
|
+
},
|
|
2844
|
+
{
|
|
2845
|
+
"kind": "js",
|
|
2846
|
+
"name": "parseISODate",
|
|
2847
|
+
"declaration": {
|
|
2848
|
+
"name": "parseISODate",
|
|
2849
|
+
"module": "src/common/dates.ts"
|
|
2850
|
+
}
|
|
2851
|
+
},
|
|
2852
|
+
{
|
|
2853
|
+
"kind": "js",
|
|
2854
|
+
"name": "printISODate",
|
|
2855
|
+
"declaration": {
|
|
2856
|
+
"name": "printISODate",
|
|
2857
|
+
"module": "src/common/dates.ts"
|
|
2858
|
+
}
|
|
2859
|
+
},
|
|
2860
|
+
{
|
|
2861
|
+
"kind": "js",
|
|
2862
|
+
"name": "isEqualMonth",
|
|
2863
|
+
"declaration": {
|
|
2864
|
+
"name": "isEqualMonth",
|
|
2865
|
+
"module": "src/common/dates.ts"
|
|
2866
|
+
}
|
|
2867
|
+
},
|
|
2868
|
+
{
|
|
2869
|
+
"kind": "js",
|
|
2870
|
+
"name": "isEqual",
|
|
2871
|
+
"declaration": {
|
|
2872
|
+
"name": "isEqual",
|
|
2873
|
+
"module": "src/common/dates.ts"
|
|
2874
|
+
}
|
|
2875
|
+
},
|
|
2876
|
+
{
|
|
2877
|
+
"kind": "js",
|
|
2878
|
+
"name": "addDays",
|
|
2879
|
+
"declaration": {
|
|
2880
|
+
"name": "addDays",
|
|
2881
|
+
"module": "src/common/dates.ts"
|
|
2882
|
+
}
|
|
2883
|
+
},
|
|
2884
|
+
{
|
|
2885
|
+
"kind": "js",
|
|
2886
|
+
"name": "addMonths",
|
|
2887
|
+
"declaration": {
|
|
2888
|
+
"name": "addMonths",
|
|
2889
|
+
"module": "src/common/dates.ts"
|
|
2890
|
+
}
|
|
2891
|
+
},
|
|
2892
|
+
{
|
|
2893
|
+
"kind": "js",
|
|
2894
|
+
"name": "addYears",
|
|
2895
|
+
"declaration": {
|
|
2896
|
+
"name": "addYears",
|
|
2897
|
+
"module": "src/common/dates.ts"
|
|
2898
|
+
}
|
|
2899
|
+
},
|
|
2900
|
+
{
|
|
2901
|
+
"kind": "js",
|
|
2902
|
+
"name": "startOfWeek",
|
|
2903
|
+
"declaration": {
|
|
2904
|
+
"name": "startOfWeek",
|
|
2905
|
+
"module": "src/common/dates.ts"
|
|
2906
|
+
}
|
|
2907
|
+
},
|
|
2908
|
+
{
|
|
2909
|
+
"kind": "js",
|
|
2910
|
+
"name": "endOfWeek",
|
|
2911
|
+
"declaration": {
|
|
2912
|
+
"name": "endOfWeek",
|
|
2913
|
+
"module": "src/common/dates.ts"
|
|
2914
|
+
}
|
|
2915
|
+
},
|
|
2916
|
+
{
|
|
2917
|
+
"kind": "js",
|
|
2918
|
+
"name": "startOfMonth",
|
|
2919
|
+
"declaration": {
|
|
2920
|
+
"name": "startOfMonth",
|
|
2921
|
+
"module": "src/common/dates.ts"
|
|
2922
|
+
}
|
|
2923
|
+
},
|
|
2924
|
+
{
|
|
2925
|
+
"kind": "js",
|
|
2926
|
+
"name": "endOfMonth",
|
|
2927
|
+
"declaration": {
|
|
2928
|
+
"name": "endOfMonth",
|
|
2929
|
+
"module": "src/common/dates.ts"
|
|
2930
|
+
}
|
|
2931
|
+
},
|
|
2932
|
+
{
|
|
2933
|
+
"kind": "js",
|
|
2934
|
+
"name": "setMonth",
|
|
2935
|
+
"declaration": {
|
|
2936
|
+
"name": "setMonth",
|
|
2937
|
+
"module": "src/common/dates.ts"
|
|
2938
|
+
}
|
|
2939
|
+
},
|
|
2940
|
+
{
|
|
2941
|
+
"kind": "js",
|
|
2942
|
+
"name": "setYear",
|
|
2943
|
+
"declaration": {
|
|
2944
|
+
"name": "setYear",
|
|
2945
|
+
"module": "src/common/dates.ts"
|
|
2946
|
+
}
|
|
2947
|
+
},
|
|
2948
|
+
{
|
|
2949
|
+
"kind": "js",
|
|
2950
|
+
"name": "clamp",
|
|
2951
|
+
"declaration": {
|
|
2952
|
+
"name": "clamp",
|
|
2953
|
+
"module": "src/common/dates.ts"
|
|
2954
|
+
}
|
|
2955
|
+
},
|
|
2956
|
+
{
|
|
2957
|
+
"kind": "js",
|
|
2958
|
+
"name": "inRange",
|
|
2381
2959
|
"declaration": {
|
|
2382
|
-
"name": "
|
|
2383
|
-
"module": "src/
|
|
2960
|
+
"name": "inRange",
|
|
2961
|
+
"module": "src/common/dates.ts"
|
|
2384
2962
|
}
|
|
2385
2963
|
},
|
|
2386
2964
|
{
|
|
2387
|
-
"kind": "
|
|
2388
|
-
"name": "
|
|
2965
|
+
"kind": "js",
|
|
2966
|
+
"name": "getViewOfMonth",
|
|
2389
2967
|
"declaration": {
|
|
2390
|
-
"name": "
|
|
2391
|
-
"module": "src/
|
|
2968
|
+
"name": "getViewOfMonth",
|
|
2969
|
+
"module": "src/common/dates.ts"
|
|
2392
2970
|
}
|
|
2393
2971
|
}
|
|
2394
2972
|
]
|
|
2395
2973
|
},
|
|
2396
2974
|
{
|
|
2397
2975
|
"kind": "javascript-module",
|
|
2398
|
-
"path": "src/
|
|
2976
|
+
"path": "src/common/events.ts",
|
|
2399
2977
|
"declarations": [
|
|
2400
2978
|
{
|
|
2401
2979
|
"kind": "class",
|
|
2402
|
-
"description": "
|
|
2403
|
-
"name": "
|
|
2404
|
-
"
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2980
|
+
"description": "A base class for events which defaults to bubbling and composed",
|
|
2981
|
+
"name": "NordEvent",
|
|
2982
|
+
"superclass": {
|
|
2983
|
+
"name": "Event",
|
|
2984
|
+
"module": "src/common/events.ts"
|
|
2985
|
+
},
|
|
2986
|
+
"status": null,
|
|
2987
|
+
"category": null
|
|
2988
|
+
}
|
|
2989
|
+
],
|
|
2990
|
+
"exports": [
|
|
2991
|
+
{
|
|
2992
|
+
"kind": "js",
|
|
2993
|
+
"name": "NordEvent",
|
|
2994
|
+
"declaration": {
|
|
2995
|
+
"name": "NordEvent",
|
|
2996
|
+
"module": "src/common/events.ts"
|
|
2997
|
+
}
|
|
2998
|
+
}
|
|
2999
|
+
]
|
|
3000
|
+
},
|
|
3001
|
+
{
|
|
3002
|
+
"kind": "javascript-module",
|
|
3003
|
+
"path": "src/common/focus.ts",
|
|
3004
|
+
"declarations": [
|
|
3005
|
+
{
|
|
3006
|
+
"kind": "function",
|
|
3007
|
+
"name": "getFocusedElement",
|
|
3008
|
+
"return": {
|
|
3009
|
+
"type": {
|
|
3010
|
+
"text": "Element | undefined"
|
|
3011
|
+
}
|
|
3012
|
+
},
|
|
3013
|
+
"parameters": [
|
|
2413
3014
|
{
|
|
2414
|
-
"
|
|
2415
|
-
"name": "selected",
|
|
3015
|
+
"name": "root",
|
|
2416
3016
|
"type": {
|
|
2417
|
-
"text": "
|
|
2418
|
-
}
|
|
2419
|
-
"default": "false",
|
|
2420
|
-
"attribute": "selected"
|
|
2421
|
-
},
|
|
2422
|
-
{
|
|
2423
|
-
"kind": "method",
|
|
2424
|
-
"name": "ensureInView",
|
|
2425
|
-
"privacy": "private",
|
|
2426
|
-
"description": "Scroll to show element"
|
|
2427
|
-
},
|
|
2428
|
-
{
|
|
2429
|
-
"kind": "method",
|
|
2430
|
-
"name": "renderShortcut",
|
|
2431
|
-
"privacy": "private"
|
|
3017
|
+
"text": "Document | ShadowRoot"
|
|
3018
|
+
}
|
|
2432
3019
|
}
|
|
2433
3020
|
],
|
|
2434
|
-
"
|
|
3021
|
+
"description": "Gets the currently focused element, taking shadow roots into account."
|
|
3022
|
+
}
|
|
3023
|
+
],
|
|
3024
|
+
"exports": [
|
|
3025
|
+
{
|
|
3026
|
+
"kind": "js",
|
|
3027
|
+
"name": "getFocusedElement",
|
|
3028
|
+
"declaration": {
|
|
3029
|
+
"name": "getFocusedElement",
|
|
3030
|
+
"module": "src/common/focus.ts"
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
3033
|
+
]
|
|
3034
|
+
},
|
|
3035
|
+
{
|
|
3036
|
+
"kind": "javascript-module",
|
|
3037
|
+
"path": "src/common/input.ts",
|
|
3038
|
+
"declarations": [
|
|
3039
|
+
{
|
|
3040
|
+
"kind": "function",
|
|
3041
|
+
"name": "cleanValue",
|
|
3042
|
+
"return": {
|
|
3043
|
+
"type": {
|
|
3044
|
+
"text": "string"
|
|
3045
|
+
}
|
|
3046
|
+
},
|
|
3047
|
+
"parameters": [
|
|
2435
3048
|
{
|
|
2436
|
-
"name": "
|
|
3049
|
+
"name": "inputEl",
|
|
2437
3050
|
"type": {
|
|
2438
|
-
"text": "
|
|
2439
|
-
}
|
|
2440
|
-
"fieldName": "command"
|
|
3051
|
+
"text": "HTMLInputElement"
|
|
3052
|
+
}
|
|
2441
3053
|
},
|
|
2442
3054
|
{
|
|
2443
|
-
"name": "
|
|
3055
|
+
"name": "regex",
|
|
2444
3056
|
"type": {
|
|
2445
|
-
"text": "
|
|
2446
|
-
}
|
|
2447
|
-
"default": "false",
|
|
2448
|
-
"fieldName": "selected"
|
|
3057
|
+
"text": "RegExp"
|
|
3058
|
+
}
|
|
2449
3059
|
}
|
|
2450
|
-
]
|
|
2451
|
-
"superclass": {
|
|
2452
|
-
"name": "LitElement",
|
|
2453
|
-
"package": "lit"
|
|
2454
|
-
},
|
|
2455
|
-
"status": "internal",
|
|
2456
|
-
"category": null,
|
|
2457
|
-
"tagName": "nord-command-menu-action",
|
|
2458
|
-
"customElement": true
|
|
3060
|
+
]
|
|
2459
3061
|
}
|
|
2460
3062
|
],
|
|
2461
3063
|
"exports": [
|
|
2462
3064
|
{
|
|
2463
3065
|
"kind": "js",
|
|
2464
|
-
"name": "
|
|
2465
|
-
"declaration": {
|
|
2466
|
-
"name": "CommandMenuAction",
|
|
2467
|
-
"module": "src/command-menu/CommandMenuAction.ts"
|
|
2468
|
-
}
|
|
2469
|
-
},
|
|
2470
|
-
{
|
|
2471
|
-
"kind": "custom-element-definition",
|
|
2472
|
-
"name": "nord-command-menu-action",
|
|
3066
|
+
"name": "cleanValue",
|
|
2473
3067
|
"declaration": {
|
|
2474
|
-
"name": "
|
|
2475
|
-
"module": "src/
|
|
3068
|
+
"name": "cleanValue",
|
|
3069
|
+
"module": "src/common/input.ts"
|
|
2476
3070
|
}
|
|
2477
3071
|
}
|
|
2478
3072
|
]
|
|
2479
3073
|
},
|
|
2480
3074
|
{
|
|
2481
3075
|
"kind": "javascript-module",
|
|
2482
|
-
"path": "src/
|
|
2483
|
-
"declarations": [],
|
|
2484
|
-
"exports": []
|
|
2485
|
-
},
|
|
2486
|
-
{
|
|
2487
|
-
"kind": "javascript-module",
|
|
2488
|
-
"path": "src/command-menu/KeyboardController.ts",
|
|
3076
|
+
"path": "src/common/number.ts",
|
|
2489
3077
|
"declarations": [
|
|
2490
3078
|
{
|
|
2491
|
-
"kind": "
|
|
2492
|
-
"
|
|
2493
|
-
"
|
|
2494
|
-
"members": [
|
|
3079
|
+
"kind": "function",
|
|
3080
|
+
"name": "wrap",
|
|
3081
|
+
"parameters": [
|
|
2495
3082
|
{
|
|
2496
|
-
"
|
|
2497
|
-
"name": "host",
|
|
3083
|
+
"name": "val",
|
|
2498
3084
|
"type": {
|
|
2499
|
-
"text": "
|
|
2500
|
-
}
|
|
2501
|
-
"privacy": "private",
|
|
2502
|
-
"default": "host"
|
|
3085
|
+
"text": "number"
|
|
3086
|
+
}
|
|
2503
3087
|
},
|
|
2504
3088
|
{
|
|
2505
|
-
"
|
|
2506
|
-
"name": "globalShortcuts",
|
|
3089
|
+
"name": "min",
|
|
2507
3090
|
"type": {
|
|
2508
|
-
"text": "
|
|
2509
|
-
}
|
|
2510
|
-
"privacy": "private",
|
|
2511
|
-
"default": "new ShortcutController(host, { \"$mod+k\": preventDefault(actions.toggleOpen) })"
|
|
3091
|
+
"text": "number"
|
|
3092
|
+
}
|
|
2512
3093
|
},
|
|
2513
3094
|
{
|
|
2514
|
-
"
|
|
2515
|
-
"name": "navigationShortcuts",
|
|
3095
|
+
"name": "max",
|
|
2516
3096
|
"type": {
|
|
2517
|
-
"text": "
|
|
2518
|
-
}
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
3097
|
+
"text": "number"
|
|
3098
|
+
}
|
|
3099
|
+
}
|
|
3100
|
+
],
|
|
3101
|
+
"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"
|
|
3102
|
+
},
|
|
3103
|
+
{
|
|
3104
|
+
"kind": "function",
|
|
3105
|
+
"name": "range",
|
|
3106
|
+
"parameters": [
|
|
2522
3107
|
{
|
|
2523
|
-
"
|
|
2524
|
-
"name": "commandShortcuts",
|
|
3108
|
+
"name": "from",
|
|
2525
3109
|
"type": {
|
|
2526
|
-
"text": "
|
|
2527
|
-
}
|
|
2528
|
-
"privacy": "private",
|
|
2529
|
-
"default": "new ShortcutController(host)"
|
|
3110
|
+
"text": "number"
|
|
3111
|
+
}
|
|
2530
3112
|
},
|
|
2531
3113
|
{
|
|
2532
|
-
"
|
|
2533
|
-
"
|
|
3114
|
+
"name": "to",
|
|
3115
|
+
"type": {
|
|
3116
|
+
"text": "number"
|
|
3117
|
+
}
|
|
2534
3118
|
}
|
|
2535
3119
|
]
|
|
2536
3120
|
}
|
|
@@ -2538,45 +3122,52 @@
|
|
|
2538
3122
|
"exports": [
|
|
2539
3123
|
{
|
|
2540
3124
|
"kind": "js",
|
|
2541
|
-
"name": "
|
|
3125
|
+
"name": "wrap",
|
|
2542
3126
|
"declaration": {
|
|
2543
|
-
"name": "
|
|
2544
|
-
"module": "src/
|
|
3127
|
+
"name": "wrap",
|
|
3128
|
+
"module": "src/common/number.ts"
|
|
3129
|
+
}
|
|
3130
|
+
},
|
|
3131
|
+
{
|
|
3132
|
+
"kind": "js",
|
|
3133
|
+
"name": "range",
|
|
3134
|
+
"declaration": {
|
|
3135
|
+
"name": "range",
|
|
3136
|
+
"module": "src/common/number.ts"
|
|
2545
3137
|
}
|
|
2546
3138
|
}
|
|
2547
3139
|
]
|
|
2548
3140
|
},
|
|
2549
3141
|
{
|
|
2550
3142
|
"kind": "javascript-module",
|
|
2551
|
-
"path": "src/
|
|
3143
|
+
"path": "src/common/ref.ts",
|
|
2552
3144
|
"declarations": [
|
|
2553
3145
|
{
|
|
2554
|
-
"kind": "
|
|
2555
|
-
"
|
|
2556
|
-
"
|
|
2557
|
-
|
|
3146
|
+
"kind": "function",
|
|
3147
|
+
"name": "mergeRefs",
|
|
3148
|
+
"return": {
|
|
3149
|
+
"type": {
|
|
3150
|
+
"text": "RefCallback"
|
|
3151
|
+
}
|
|
3152
|
+
},
|
|
3153
|
+
"parameters": [
|
|
2558
3154
|
{
|
|
2559
|
-
"
|
|
2560
|
-
"name": "command",
|
|
3155
|
+
"name": "refs",
|
|
2561
3156
|
"type": {
|
|
2562
|
-
"text": "
|
|
2563
|
-
}
|
|
2564
|
-
"default": "command"
|
|
3157
|
+
"text": "Ref[]"
|
|
3158
|
+
}
|
|
2565
3159
|
}
|
|
2566
3160
|
],
|
|
2567
|
-
"
|
|
2568
|
-
"name": "NordEvent",
|
|
2569
|
-
"module": "/src/common/events.js"
|
|
2570
|
-
}
|
|
3161
|
+
"description": "Creates a ref callback which will assign the element to every given ref"
|
|
2571
3162
|
}
|
|
2572
3163
|
],
|
|
2573
3164
|
"exports": [
|
|
2574
3165
|
{
|
|
2575
3166
|
"kind": "js",
|
|
2576
|
-
"name": "
|
|
3167
|
+
"name": "mergeRefs",
|
|
2577
3168
|
"declaration": {
|
|
2578
|
-
"name": "
|
|
2579
|
-
"module": "src/
|
|
3169
|
+
"name": "mergeRefs",
|
|
3170
|
+
"module": "src/common/ref.ts"
|
|
2580
3171
|
}
|
|
2581
3172
|
}
|
|
2582
3173
|
]
|
|
@@ -4269,131 +4860,6 @@
|
|
|
4269
4860
|
}
|
|
4270
4861
|
]
|
|
4271
4862
|
},
|
|
4272
|
-
{
|
|
4273
|
-
"kind": "javascript-module",
|
|
4274
|
-
"path": "src/stack/Stack.ts",
|
|
4275
|
-
"declarations": [
|
|
4276
|
-
{
|
|
4277
|
-
"kind": "class",
|
|
4278
|
-
"description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
|
|
4279
|
-
"name": "Stack",
|
|
4280
|
-
"slots": [
|
|
4281
|
-
{
|
|
4282
|
-
"description": "The stack content.",
|
|
4283
|
-
"name": ""
|
|
4284
|
-
}
|
|
4285
|
-
],
|
|
4286
|
-
"members": [
|
|
4287
|
-
{
|
|
4288
|
-
"kind": "field",
|
|
4289
|
-
"name": "gap",
|
|
4290
|
-
"type": {
|
|
4291
|
-
"text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
4292
|
-
},
|
|
4293
|
-
"default": "\"m\"",
|
|
4294
|
-
"description": "The space injected between components.",
|
|
4295
|
-
"attribute": "gap",
|
|
4296
|
-
"reflects": true
|
|
4297
|
-
},
|
|
4298
|
-
{
|
|
4299
|
-
"kind": "field",
|
|
4300
|
-
"name": "direction",
|
|
4301
|
-
"type": {
|
|
4302
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
4303
|
-
},
|
|
4304
|
-
"default": "\"vertical\"",
|
|
4305
|
-
"description": "The direction of the stack.",
|
|
4306
|
-
"attribute": "direction",
|
|
4307
|
-
"reflects": true
|
|
4308
|
-
},
|
|
4309
|
-
{
|
|
4310
|
-
"kind": "field",
|
|
4311
|
-
"name": "alignItems",
|
|
4312
|
-
"type": {
|
|
4313
|
-
"text": "\"center\" | \"start\" | \"end\" | undefined"
|
|
4314
|
-
},
|
|
4315
|
-
"description": "How to align the child items inside the stack.",
|
|
4316
|
-
"attribute": "align-items",
|
|
4317
|
-
"reflects": true
|
|
4318
|
-
},
|
|
4319
|
-
{
|
|
4320
|
-
"kind": "field",
|
|
4321
|
-
"name": "_warningLogged",
|
|
4322
|
-
"type": {
|
|
4323
|
-
"text": "boolean"
|
|
4324
|
-
},
|
|
4325
|
-
"privacy": "private",
|
|
4326
|
-
"static": true,
|
|
4327
|
-
"default": "false",
|
|
4328
|
-
"inheritedFrom": {
|
|
4329
|
-
"name": "DraftComponentMixin",
|
|
4330
|
-
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
4331
|
-
}
|
|
4332
|
-
}
|
|
4333
|
-
],
|
|
4334
|
-
"attributes": [
|
|
4335
|
-
{
|
|
4336
|
-
"name": "gap",
|
|
4337
|
-
"type": {
|
|
4338
|
-
"text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
4339
|
-
},
|
|
4340
|
-
"default": "\"m\"",
|
|
4341
|
-
"description": "The space injected between components.",
|
|
4342
|
-
"fieldName": "gap"
|
|
4343
|
-
},
|
|
4344
|
-
{
|
|
4345
|
-
"name": "direction",
|
|
4346
|
-
"type": {
|
|
4347
|
-
"text": "\"vertical\" | \"horizontal\""
|
|
4348
|
-
},
|
|
4349
|
-
"default": "\"vertical\"",
|
|
4350
|
-
"description": "The direction of the stack.",
|
|
4351
|
-
"fieldName": "direction"
|
|
4352
|
-
},
|
|
4353
|
-
{
|
|
4354
|
-
"name": "align-items",
|
|
4355
|
-
"type": {
|
|
4356
|
-
"text": "\"center\" | \"start\" | \"end\" | undefined"
|
|
4357
|
-
},
|
|
4358
|
-
"description": "How to align the child items inside the stack.",
|
|
4359
|
-
"fieldName": "alignItems"
|
|
4360
|
-
}
|
|
4361
|
-
],
|
|
4362
|
-
"mixins": [
|
|
4363
|
-
{
|
|
4364
|
-
"name": "DraftComponentMixin",
|
|
4365
|
-
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
4366
|
-
}
|
|
4367
|
-
],
|
|
4368
|
-
"superclass": {
|
|
4369
|
-
"name": "LitElement",
|
|
4370
|
-
"package": "lit"
|
|
4371
|
-
},
|
|
4372
|
-
"status": "draft",
|
|
4373
|
-
"category": "structure",
|
|
4374
|
-
"tagName": "nord-stack",
|
|
4375
|
-
"customElement": true
|
|
4376
|
-
}
|
|
4377
|
-
],
|
|
4378
|
-
"exports": [
|
|
4379
|
-
{
|
|
4380
|
-
"kind": "js",
|
|
4381
|
-
"name": "default",
|
|
4382
|
-
"declaration": {
|
|
4383
|
-
"name": "Stack",
|
|
4384
|
-
"module": "src/stack/Stack.ts"
|
|
4385
|
-
}
|
|
4386
|
-
},
|
|
4387
|
-
{
|
|
4388
|
-
"kind": "custom-element-definition",
|
|
4389
|
-
"name": "nord-stack",
|
|
4390
|
-
"declaration": {
|
|
4391
|
-
"name": "Stack",
|
|
4392
|
-
"module": "src/stack/Stack.ts"
|
|
4393
|
-
}
|
|
4394
|
-
}
|
|
4395
|
-
]
|
|
4396
|
-
},
|
|
4397
4863
|
{
|
|
4398
4864
|
"kind": "javascript-module",
|
|
4399
4865
|
"path": "src/select/Select.ts",
|
|
@@ -5102,6 +5568,131 @@
|
|
|
5102
5568
|
}
|
|
5103
5569
|
]
|
|
5104
5570
|
},
|
|
5571
|
+
{
|
|
5572
|
+
"kind": "javascript-module",
|
|
5573
|
+
"path": "src/stack/Stack.ts",
|
|
5574
|
+
"declarations": [
|
|
5575
|
+
{
|
|
5576
|
+
"kind": "class",
|
|
5577
|
+
"description": "Stack component manages layout of immediate children along the\nvertical or horizontal axis with optional spacing between each child.",
|
|
5578
|
+
"name": "Stack",
|
|
5579
|
+
"slots": [
|
|
5580
|
+
{
|
|
5581
|
+
"description": "The stack content.",
|
|
5582
|
+
"name": ""
|
|
5583
|
+
}
|
|
5584
|
+
],
|
|
5585
|
+
"members": [
|
|
5586
|
+
{
|
|
5587
|
+
"kind": "field",
|
|
5588
|
+
"name": "gap",
|
|
5589
|
+
"type": {
|
|
5590
|
+
"text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
5591
|
+
},
|
|
5592
|
+
"default": "\"m\"",
|
|
5593
|
+
"description": "The space injected between components.",
|
|
5594
|
+
"attribute": "gap",
|
|
5595
|
+
"reflects": true
|
|
5596
|
+
},
|
|
5597
|
+
{
|
|
5598
|
+
"kind": "field",
|
|
5599
|
+
"name": "direction",
|
|
5600
|
+
"type": {
|
|
5601
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
5602
|
+
},
|
|
5603
|
+
"default": "\"vertical\"",
|
|
5604
|
+
"description": "The direction of the stack.",
|
|
5605
|
+
"attribute": "direction",
|
|
5606
|
+
"reflects": true
|
|
5607
|
+
},
|
|
5608
|
+
{
|
|
5609
|
+
"kind": "field",
|
|
5610
|
+
"name": "alignItems",
|
|
5611
|
+
"type": {
|
|
5612
|
+
"text": "\"center\" | \"start\" | \"end\" | undefined"
|
|
5613
|
+
},
|
|
5614
|
+
"description": "How to align the child items inside the stack.",
|
|
5615
|
+
"attribute": "align-items",
|
|
5616
|
+
"reflects": true
|
|
5617
|
+
},
|
|
5618
|
+
{
|
|
5619
|
+
"kind": "field",
|
|
5620
|
+
"name": "_warningLogged",
|
|
5621
|
+
"type": {
|
|
5622
|
+
"text": "boolean"
|
|
5623
|
+
},
|
|
5624
|
+
"privacy": "private",
|
|
5625
|
+
"static": true,
|
|
5626
|
+
"default": "false",
|
|
5627
|
+
"inheritedFrom": {
|
|
5628
|
+
"name": "DraftComponentMixin",
|
|
5629
|
+
"module": "src/common/mixins/DraftComponentMixin.ts"
|
|
5630
|
+
}
|
|
5631
|
+
}
|
|
5632
|
+
],
|
|
5633
|
+
"attributes": [
|
|
5634
|
+
{
|
|
5635
|
+
"name": "gap",
|
|
5636
|
+
"type": {
|
|
5637
|
+
"text": "\"none\" | \"s\" | \"m\" | \"l\" | \"xl\" | \"xxl\""
|
|
5638
|
+
},
|
|
5639
|
+
"default": "\"m\"",
|
|
5640
|
+
"description": "The space injected between components.",
|
|
5641
|
+
"fieldName": "gap"
|
|
5642
|
+
},
|
|
5643
|
+
{
|
|
5644
|
+
"name": "direction",
|
|
5645
|
+
"type": {
|
|
5646
|
+
"text": "\"vertical\" | \"horizontal\""
|
|
5647
|
+
},
|
|
5648
|
+
"default": "\"vertical\"",
|
|
5649
|
+
"description": "The direction of the stack.",
|
|
5650
|
+
"fieldName": "direction"
|
|
5651
|
+
},
|
|
5652
|
+
{
|
|
5653
|
+
"name": "align-items",
|
|
5654
|
+
"type": {
|
|
5655
|
+
"text": "\"center\" | \"start\" | \"end\" | undefined"
|
|
5656
|
+
},
|
|
5657
|
+
"description": "How to align the child items inside the stack.",
|
|
5658
|
+
"fieldName": "alignItems"
|
|
5659
|
+
}
|
|
5660
|
+
],
|
|
5661
|
+
"mixins": [
|
|
5662
|
+
{
|
|
5663
|
+
"name": "DraftComponentMixin",
|
|
5664
|
+
"module": "/src/common/mixins/DraftComponentMixin.js"
|
|
5665
|
+
}
|
|
5666
|
+
],
|
|
5667
|
+
"superclass": {
|
|
5668
|
+
"name": "LitElement",
|
|
5669
|
+
"package": "lit"
|
|
5670
|
+
},
|
|
5671
|
+
"status": "draft",
|
|
5672
|
+
"category": "structure",
|
|
5673
|
+
"tagName": "nord-stack",
|
|
5674
|
+
"customElement": true
|
|
5675
|
+
}
|
|
5676
|
+
],
|
|
5677
|
+
"exports": [
|
|
5678
|
+
{
|
|
5679
|
+
"kind": "js",
|
|
5680
|
+
"name": "default",
|
|
5681
|
+
"declaration": {
|
|
5682
|
+
"name": "Stack",
|
|
5683
|
+
"module": "src/stack/Stack.ts"
|
|
5684
|
+
}
|
|
5685
|
+
},
|
|
5686
|
+
{
|
|
5687
|
+
"kind": "custom-element-definition",
|
|
5688
|
+
"name": "nord-stack",
|
|
5689
|
+
"declaration": {
|
|
5690
|
+
"name": "Stack",
|
|
5691
|
+
"module": "src/stack/Stack.ts"
|
|
5692
|
+
}
|
|
5693
|
+
}
|
|
5694
|
+
]
|
|
5695
|
+
},
|
|
5105
5696
|
{
|
|
5106
5697
|
"kind": "javascript-module",
|
|
5107
5698
|
"path": "src/table/Table.ts",
|