marko 5.25.5 → 5.25.7

Sign up to get free protection for your applications and to get access to all the features.
package/tags-html.d.ts CHANGED
@@ -124,6 +124,10 @@ declare global {
124
124
  wbr: Tag<_.Marko·Inputᐸʺwbrʺᐳ>;
125
125
  }
126
126
 
127
+ namespace CSS {
128
+ export interface Properties extends csstype.PropertiesHyphen {}
129
+ }
130
+
127
131
  namespace HTML {
128
132
  interface A extends HTMLAttributes<HTMLAnchorElement> {
129
133
  /**
@@ -942,964 +946,105 @@ declare global {
942
946
  * rendered. This is useful for accessibility purposes.
943
947
  * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-alt
944
948
  */
945
- alt?: AttrString;
946
-
947
- /**
948
- * A CORS setting attribute that determines if the image should be fetched with CORS or not.
949
- * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-crossorigin
950
- */
951
- crossorigin?: AttrCrossOrigin;
952
-
953
- /**
954
- * Specifies the decoding mode for the image, which can be "sync", "async", or "auto".
955
- * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-decoding
956
- */
957
- decoding?: AttrMissing | "sync" | "async" | "auto";
958
-
959
- /**
960
- * Sets the fetch priority of the image, which can be "auto", "high", or "low".
961
- * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-fetchpriority
962
- */
963
- fetchpriority?: AttrMissing | "auto" | "high" | "low";
964
-
965
- /**
966
- * The height of the image, either as a string (CSS length value) or a number (pixels).
967
- * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-dim-height
968
- */
969
- height?: AttrStringOrNumber;
970
-
971
- /**
972
- * Indicates that the image is part of a server-side image map.
973
- * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-ismap
974
- */
975
- ismap?: AttrBoolean;
976
-
977
- /**
978
- * Specifies the loading behavior of the image, which can be "eager" or "lazy".
979
- * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-loading
980
- */
981
- loading?: AttrMissing | "eager" | "lazy";
982
-
983
- /**
984
- * Sets the referrer policy for the image request.
985
- * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-referrerpolicy
986
- */
987
- referrerpolicy?: AttrReferrerPolicy;
988
-
989
- /**
990
- * A string containing size descriptors for responsive images.
991
- * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-sizes
992
- */
993
- sizes?: AttrString;
994
-
995
- /**
996
- * The URL of the image to display.
997
- * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-src
998
- */
999
- src?: AttrString;
1000
-
1001
- /**
1002
- * A string containing URL and size descriptor pairs for responsive images.
1003
- * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-srcset
1004
- */
1005
- srcset?: AttrString;
1006
-
1007
- /**
1008
- * The URL of a client-side image map to associate with the image.
1009
- * @see https://html.spec.whatwg.org/multipage/image-maps.html#attr-hyperlink-usemap
1010
- */
1011
- usemap?: AttrString;
1012
-
1013
- /**
1014
- * The width of the image, either as a string (CSS length value) or a number (pixels
1015
- * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-dim-width
1016
- */
1017
- width?: AttrStringOrNumber;
1018
-
1019
- /** @deprecated */
1020
- align?: AttrMissing | "left" | "center" | "right" | "justify" | "char";
1021
- /** @deprecated */
1022
- border?: AttrStringOrNumber;
1023
- /** @deprecated */
1024
- hspace?: AttrStringOrNumber;
1025
- /** @deprecated */
1026
- longdesc?: AttrString;
1027
- /** @deprecated */
1028
- name?: AttrString;
1029
- /** @deprecated */
1030
- vspace?: AttrStringOrNumber;
1031
- }
1032
- interface Input extends HTMLAttributes<HTMLInputElement> {
1033
- /**
1034
- * Indicates whether the input should be disabled or not. When disabled,
1035
- * the input will not be interactable or submitted with the form.
1036
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-disabled
1037
- */
1038
- disabled?: AttrBoolean;
1039
-
1040
- /**
1041
- * The ID of the form element that this input is associated with.
1042
- * This allows the input to be associated with a form even if it is
1043
- * not a direct descendant of the form element.
1044
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form
1045
- */
1046
- form?: AttrString;
1047
-
1048
- /**
1049
- * The name attribute of the input element, which is used as a key
1050
- * when submitting the form data. Also the named used in the form.elements.
1051
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name
1052
- * @see HTMLFormElement.elements
1053
- */
1054
- name?: AttrString;
1055
- }
1056
-
1057
- interface InputButton extends Input {
1058
- /**
1059
- * The input type, set to "button" for this interface.
1060
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1061
- */
1062
- type: "button";
1063
-
1064
- /**
1065
- * Specifies the target element for the popover.
1066
- * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
1067
- */
1068
- popovertarget?: AttrString;
1069
-
1070
- /**
1071
- * Specifies the action to perform on the popover target.
1072
- * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
1073
- */
1074
- popovertargetaction?: AttrMissing | "toggle" | "show" | "hide";
1075
-
1076
- /**
1077
- * The value attribute for the button input, which can be used as a label or identifier.
1078
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1079
- */
1080
- value?: AttrStringOrNumber;
1081
- }
1082
-
1083
- interface InputCheckbox extends Input {
1084
- /**
1085
- * The input type, set to "checkbox" for this interface.
1086
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1087
- */
1088
- type: "checkbox";
1089
-
1090
- /**
1091
- * Indicates whether the checkbox should be checked or not.
1092
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-checked
1093
- */
1094
- checked?: AttrBoolean;
1095
-
1096
- /**
1097
- * Indicates whether the checkbox is required to be checked for the form to be submitted.
1098
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1099
- */
1100
- required?: AttrBoolean;
1101
-
1102
- /**
1103
- * The value attribute for the checkbox input, which can be used as a label or identifier.
1104
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1105
- */
1106
- value?: AttrStringOrNumber;
1107
- }
1108
-
1109
- interface InputColor extends Input {
1110
- /**
1111
- * The input type, set to "color" for this interface.
1112
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1113
- */
1114
- type: "color";
1115
-
1116
- /**
1117
- * Specifies whether the input field should have autocomplete enabled or disabled.
1118
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1119
- */
1120
- autocomplete?: AttrOnOff;
1121
-
1122
- /**
1123
- * The ID of a <datalist> element that provides a list of suggested values for the input.
1124
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1125
- */
1126
- list?: AttrString;
1127
-
1128
- /**
1129
- * The value attribute for the color input, representing a color value.
1130
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1131
- */
1132
- value?: AttrString;
1133
- }
1134
-
1135
- interface InputDate extends Input {
1136
- /**
1137
- * The input type, set to "date" for this interface.
1138
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1139
- */
1140
- type: "date";
1141
-
1142
- /**
1143
- * Specifies whether the input field should have autocomplete enabled or disabled.
1144
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1145
- */
1146
- autocomplete?: AttrOnOff;
1147
-
1148
- /**
1149
- * The ID of a <datalist> element that provides a list of suggested values for the input.
1150
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1151
- */
1152
- list?: AttrString;
1153
-
1154
- /**
1155
- * The maximum allowed value for the input.
1156
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-max
1157
- */
1158
- max?: AttrString;
1159
-
1160
- /**
1161
- * The minimum allowed value for the input.
1162
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-min
1163
- */
1164
- min?: AttrString;
1165
-
1166
- /**
1167
- * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
1168
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
1169
- */
1170
- readonly?: AttrBoolean;
1171
-
1172
- /**
1173
- * Indicates whether the input is required to have a value for the form to be submitted.
1174
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1175
- */
1176
- required?: AttrBoolean;
1177
-
1178
- /**
1179
- * Specifies the allowed number intervals for the input value.
1180
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-step
1181
- */
1182
- step?: AttrString;
1183
-
1184
- /**
1185
- * The value attribute for the date input, representing a date value.
1186
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1187
- */
1188
- value?: AttrString;
1189
- }
1190
-
1191
- interface InputDateTimeLocal extends Input {
1192
- /**
1193
- * The input type, set to "datetime-local" for this interface.
1194
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1195
- */
1196
- type: "datetime-local";
1197
-
1198
- /**
1199
- * Specifies whether the input field should have autocomplete enabled or disabled.
1200
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1201
- */
1202
- autocomplete?: AttrOnOff;
1203
-
1204
- /**
1205
- * The ID of a <datalist> element that provides a list of suggested values for the input.
1206
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1207
- */
1208
- list?: AttrString;
1209
-
1210
- /**
1211
- * The maximum allowed value for the input.
1212
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-max
1213
- */
1214
- max?: AttrString;
1215
-
1216
- /**
1217
- * The minimum allowed value for the input.
1218
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-min
1219
- */
1220
- min?: AttrString;
1221
-
1222
- /**
1223
- * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
1224
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
1225
- */
1226
- readonly?: AttrBoolean;
1227
-
1228
- /**
1229
- * Indicates whether the input is required to have a value for the form to be submitted.
1230
- * @see https://html.spec.whatwg
1231
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1232
- */
1233
- required?: AttrBoolean;
1234
-
1235
- /**
1236
- * Specifies the allowed number intervals for the input value.
1237
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-step
1238
- */
1239
- step?: AttrString;
1240
-
1241
- /**
1242
- * The value attribute for the datetime-local input, representing a date and time value.
1243
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1244
- */
1245
- value?: AttrString;
1246
- }
1247
- interface InputEmail extends Input {
1248
- /**
1249
- * The input type, set to "email" for this interface.
1250
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1251
- */
1252
- type: "email";
1253
-
1254
- /**
1255
- * Specifies whether the input field should have autocomplete enabled or disabled.
1256
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1257
- */
1258
- autocomplete?: AttrOnOff;
1259
-
1260
- /**
1261
- * The ID of a <datalist> element that provides a list of suggested values for the input.
1262
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1263
- */
1264
- list?: AttrString;
1265
-
1266
- /**
1267
- * The maximum allowed length for the input value.
1268
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-maxlength
1269
- */
1270
- maxlength?: AttrStringOrNumber;
1271
-
1272
- /**
1273
- * The minimum allowed length for the input value.
1274
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-minlength
1275
- */
1276
- minlength?: AttrStringOrNumber;
1277
-
1278
- /**
1279
- * Indicates whether the input should allow multiple email addresses or not.
1280
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-multiple
1281
- */
1282
- multiple?: AttrBoolean;
1283
-
1284
- /**
1285
- * A regular expression that the input value must match for the form to be submitted.
1286
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-pattern
1287
- */
1288
- pattern?: AttrString;
1289
-
1290
- /**
1291
- * A short hint to display in the input field before the user enters a value.
1292
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-placeholder
1293
- */
1294
- placeholder?: AttrString;
1295
-
1296
- /**
1297
- * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
1298
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
1299
- */
1300
- readonly?: AttrBoolean;
1301
-
1302
- /**
1303
- * Indicates whether the input is required to have a value for the form to be submitted.
1304
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1305
- */
1306
- required?: AttrBoolean;
1307
-
1308
- /**
1309
- * The visible width of the input field in average character widths.
1310
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-size
1311
- */
1312
- size?: AttrStringOrNumber;
1313
-
1314
- /**
1315
- * The value attribute for the email input, representing an email address value.
1316
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1317
- */
1318
- value?: AttrString;
1319
- }
1320
- interface InputFile extends Input {
1321
- /**
1322
- * The input type, set to "file" for this interface.
1323
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1324
- */
1325
- type: "file";
1326
-
1327
- /**
1328
- * A comma-separated list of file types that the input should accept.
1329
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-accept
1330
- */
1331
- accept?: AttrString;
1332
-
1333
- /**
1334
- * Indicates whether the input should use a specific capture method.
1335
- * "user" indicates the front camera, "environment" indicates the rear camera.
1336
- * @see https://w3c.github.io/html-media-capture/#dfn-capture
1337
- */
1338
- capture?: AttrBoolean | "user" | "environment";
1339
-
1340
- /**
1341
- * Indicates whether the input should allow the selection of multiple files or not.
1342
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-multiple
1343
- */
1344
- multiple?: AttrBoolean;
1345
-
1346
- /**
1347
- * Indicates whether the input is required to have a value for the form to be submitted.
1348
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1349
- */
1350
- required?: AttrBoolean;
1351
- }
1352
- interface InputHidden extends Input {
1353
- /**
1354
- * The input type, set to "hidden" for this interface.
1355
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1356
- */
1357
- type: "hidden";
1358
-
1359
- /**
1360
- * The value attribute for the hidden input, representing a hidden value.
1361
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1362
- */
1363
- value?: AttrStringOrNumber;
1364
- }
1365
- interface InputImage extends Input {
1366
- /**
1367
- * The input type, set to "image" for this interface.
1368
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1369
- */
1370
- type: "image";
1371
-
1372
- /**
1373
- * The alternate text for the image, displayed if the image cannot be loaded.
1374
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-alt
1375
- */
1376
- alt?: AttrString;
1377
-
1378
- /**
1379
- * The URL of the image file.
1380
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-src
1381
- */
1382
- src?: AttrString;
1383
-
1384
- /**
1385
- * The height of the image in pixels.
1386
- * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
1387
- */
1388
- height?: AttrStringOrNumber;
1389
-
1390
- /**
1391
- * The width of the image in pixels.
1392
- * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width
1393
- */
1394
- width?: AttrStringOrNumber;
1395
-
1396
- /**
1397
- * The URL of the form processing endpoint when the input image is used for form submission.
1398
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formaction
1399
- */
1400
- formaction?: Form["action"];
1401
-
1402
- /**
1403
- * The encoding type for the form data when the input image is used for form submission.
1404
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formenctype
1405
- */
1406
- formenctype?: Form["enctype"];
1407
-
1408
- /**
1409
- * The HTTP method to use when the input image is used for form submission.
1410
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formmethod
1411
- */
1412
- formmethod?: Form["method"];
1413
-
1414
- /**
1415
- * Indicates whether form validation should be skipped when the input image is used for form submission.
1416
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formnovalidate
1417
- */
1418
- formnovalidate?: Form["novalidate"];
1419
-
1420
- /**
1421
- * The browsing context for displaying the response after form submission when the input image is used.
1422
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formtarget
1423
- */
1424
- formtarget?: Form["target"];
1425
-
1426
- /**
1427
- * Specifies the target element for the popover.
1428
- * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
1429
- */
1430
- popovertarget?: AttrString;
1431
-
1432
- /**
1433
- * Specifies the action to perform on the popover target.
1434
- * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
1435
- */
1436
- popovertargetaction?: AttrMissing | "toggle" | "show" | "hide";
1437
-
1438
- /**
1439
- * The value attribute for the image input, representing a value to submit with the form.
1440
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1441
- */
1442
- value?: AttrStringOrNumber;
1443
- }
1444
-
1445
- interface InputMonth extends Input {
1446
- /**
1447
- * The input type, set to "month" for this interface.
1448
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1449
- */
1450
- type: "month";
1451
-
1452
- /**
1453
- * Specifies whether the input field should have autocomplete enabled or disabled.
1454
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1455
- */
1456
- autocomplete?: AttrOnOff;
1457
-
1458
- /**
1459
- * The ID of a <datalist> element that provides a list of suggested values for the input.
1460
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1461
- */
1462
- list?: AttrString;
1463
-
1464
- /**
1465
- * The maximum allowed value for the input.
1466
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-max
1467
- */
1468
- max?: AttrString;
1469
-
1470
- /**
1471
- * The minimum allowed value for the input.
1472
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-min
1473
- */
1474
- min?: AttrString;
1475
-
1476
- /**
1477
- * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
1478
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
1479
- */
1480
- readonly?: AttrBoolean;
1481
-
1482
- /**
1483
- * Indicates whether the input is required to have a value for the form to be submitted.
1484
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1485
- */
1486
- required?: AttrBoolean;
1487
-
1488
- /**
1489
- * Specifies the allowed number intervals for the input value.
1490
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-step
1491
- */
1492
- step?: AttrString;
1493
-
1494
- /**
1495
- * The value attribute for the month input, representing a month value.
1496
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1497
- */
1498
- value?: AttrString;
1499
- }
1500
- interface InputNumber extends Input {
1501
- /**
1502
- * The input type, set to "number" for this interface.
1503
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1504
- */
1505
- type: "number";
1506
-
1507
- /**
1508
- * Specifies whether the input field should have autocomplete enabled or disabled.
1509
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1510
- */
1511
- autocomplete?: AttrOnOff;
1512
-
1513
- /**
1514
- * The ID of a <datalist> element that provides a list of suggested values for the input.
1515
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1516
- */
1517
- list?: AttrString;
1518
-
1519
- /**
1520
- * The maximum allowed value for the input.
1521
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-max
1522
- */
1523
- max?: AttrStringOrNumber;
1524
-
1525
- /**
1526
- * The minimum allowed value for the input.
1527
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-min
1528
- */
1529
- min?: AttrStringOrNumber;
1530
-
1531
- /**
1532
- * A short hint to display in the input field before the user enters a value.
1533
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-placeholder
1534
- */
1535
- placeholder?: AttrString;
1536
-
1537
- /**
1538
- * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
1539
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
1540
- */
1541
- readonly?: AttrBoolean;
1542
- /**
1543
- * Indicates whether the input is required to have a value for the form to be submitted.
1544
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1545
- */
1546
- required?: AttrBoolean;
1547
-
1548
- /**
1549
- * Specifies the allowed number intervals for the input value.
1550
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-step
1551
- */
1552
- step?: AttrStringOrNumber;
1553
-
1554
- /**
1555
- * The value attribute for the month input, representing a month value.
1556
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1557
- */
1558
- value?: AttrStringOrNumber;
1559
- }
1560
- interface InputRadio extends Input {
1561
- /**
1562
- * The input type, set to "radio" for this interface.
1563
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1564
- */
1565
- type: "radio";
1566
-
1567
- /**
1568
- * Indicates whether the radio should be checked or not.
1569
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-checked
1570
- */
1571
- checked?: AttrBoolean;
1572
-
1573
- /**
1574
- * Indicates whether the radio is required to be checked for the form to be submitted.
1575
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1576
- */
1577
- required?: AttrBoolean;
1578
-
1579
- /**
1580
- * The value attribute for the radio input, which can be used as a label or identifier.
1581
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1582
- */
1583
- value?: AttrStringOrNumber;
1584
- }
1585
- interface InputRange extends Input {
1586
- /**
1587
- * The input type, set to "range" for this interface.
1588
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1589
- */
1590
- type: "range";
1591
-
1592
- /**
1593
- * Specifies whether the input field should have autocomplete enabled or disabled.
1594
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1595
- */
1596
- autocomplete?: AttrOnOff;
1597
- /**
1598
- * The ID of a <datalist> element that provides a list of suggested values for the input.
1599
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1600
- */
1601
- list?: AttrString;
1602
-
1603
- /**
1604
- * The maximum allowed value for the input.
1605
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-max
1606
- */
1607
- max?: AttrStringOrNumber;
1608
-
1609
- /**
1610
- * The minimum allowed value for the input.
1611
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-min
1612
- */
1613
- min?: AttrStringOrNumber;
1614
-
1615
- /**
1616
- * Specifies the allowed number intervals for the input value.
1617
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-step
1618
- */
1619
- step?: AttrStringOrNumber;
1620
-
1621
- /**
1622
- * The value attribute for the month input, representing a month value.
1623
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1624
- */
1625
- value?: AttrStringOrNumber;
1626
- }
1627
- interface InputReset extends Input {
1628
- /**
1629
- * The input type, set to "reset" for this interface.
1630
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1631
- */
1632
- type: "reset";
1633
-
1634
- /**
1635
- * Specifies the target element for the popover.
1636
- * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
1637
- */
1638
- popovertarget?: AttrString;
1639
-
1640
- /**
1641
- * Specifies the action to perform on the popover target.
1642
- * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
1643
- */
1644
- popovertargetaction?: AttrMissing | "toggle" | "show" | "hide";
1645
- }
1646
- interface InputSubmit extends Input {
1647
- /**
1648
- * The input type, set to "submit" for this interface.
1649
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1650
- */
1651
- type: "submit";
1652
-
1653
- /**
1654
- * The URL of the form processing endpoint when the input image is used for form submission.
1655
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formaction
1656
- */
1657
- formaction?: Form["action"];
1658
-
1659
- /**
1660
- * The encoding type for the form data when the input image is used for form submission.
1661
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formenctype
1662
- */
1663
- formenctype?: Form["enctype"];
1664
-
1665
- /**
1666
- * The HTTP method to use when the input image is used for form submission.
1667
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formmethod
1668
- */
1669
- formmethod?: Form["method"];
1670
-
1671
- /**
1672
- * Indicates whether form validation should be skipped when the input image is used for form submission.
1673
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formnovalidate
1674
- */
1675
- formnovalidate?: Form["novalidate"];
1676
-
1677
- /**
1678
- * The browsing context for displaying the response after form submission when the input image is used.
1679
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formtarget
1680
- */
1681
- formtarget?: Form["target"];
1682
-
1683
- /**
1684
- * Specifies the target element for the popover.
1685
- * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
1686
- */
1687
- popovertarget?: AttrString;
1688
-
1689
- /**
1690
- * Specifies the action to perform on the popover target.
1691
- * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
1692
- */
1693
- popovertargetaction?: AttrMissing | "toggle" | "show" | "hide";
1694
-
1695
- /**
1696
- * The value attribute for the month input, representing a month value.
1697
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1698
- */
1699
- value?: AttrString;
1700
- }
1701
- interface InputTel extends Input {
1702
- /**
1703
- * The input type, set to "tel" for this interface.
1704
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1705
- */
1706
- type: "tel";
1707
-
1708
- /**
1709
- * Specifies whether the input field should have autocomplete enabled or disabled.
1710
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1711
- */
1712
- autocomplete?: AttrOnOff;
1713
-
1714
- /**
1715
- * The ID of a <datalist> element that provides a list of suggested values for the input.
1716
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1717
- */
1718
- list?: AttrString;
1719
-
1720
- /**
1721
- * The maximum number of characters allowed in the input.
1722
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-maxlength
1723
- */
1724
- maxlength?: AttrStringOrNumber;
1725
-
1726
- /**
1727
- * The minimum number of characters required in the input.
1728
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-minlength
1729
- */
1730
- minlength?: AttrStringOrNumber;
1731
-
1732
- /**
1733
- * A regular expression pattern to be matched by the input value.
1734
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-pattern
1735
- */
1736
- pattern?: AttrString;
1737
-
1738
- /**
1739
- * A short hint to display in the input field before the user enters a value.
1740
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-placeholder
1741
- */
1742
- placeholder?: AttrString;
1743
-
1744
- /**
1745
- * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
1746
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
1747
- */
1748
- readonly?: AttrBoolean;
1749
-
1750
- /**
1751
- * Indicates whether the input is required to have a value for the form to be submitted.
1752
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1753
- */
1754
- required?: AttrBoolean;
1755
-
1756
- /**
1757
- * The number of characters wide the input field should be displayed.
1758
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-size
1759
- */
1760
- size?: AttrStringOrNumber;
1761
-
1762
- /**
1763
- * The value attribute for the tel input, representing a telephone number value.
1764
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1765
- */
1766
- value?: AttrString;
1767
- }
1768
-
1769
- interface InputURL extends Input {
1770
- /**
1771
- * The input type, set to "url" for this interface.
1772
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1773
- */
1774
- type: "url";
1775
-
1776
- /**
1777
- * Specifies whether the input field should have autocomplete enabled or disabled.
1778
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1779
- */
1780
- autocomplete?: AttrOnOff;
1781
-
1782
- /**
1783
- * The ID of a <datalist> element that provides a list of suggested values for the input.
1784
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1785
- */
1786
- list?: AttrString;
1787
-
1788
- /**
1789
- * The maximum number of characters allowed in the input.
1790
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-maxlength
1791
- */
1792
- maxlength?: AttrStringOrNumber;
1793
-
1794
- /**
1795
- * The minimum number of characters required in the input.
1796
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-minlength
1797
- */
1798
- minlength?: AttrStringOrNumber;
1799
-
1800
- /**
1801
- * A regular expression pattern to be matched by the input value.
1802
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-pattern
1803
- */
1804
- pattern?: AttrString;
1805
-
1806
- /**
1807
- * A short hint to display in the input field before the user enters a value.
1808
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-placeholder
1809
- */
1810
- placeholder?: AttrString;
949
+ alt?: AttrString;
1811
950
 
1812
951
  /**
1813
- * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
1814
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
952
+ * A CORS setting attribute that determines if the image should be fetched with CORS or not.
953
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-crossorigin
1815
954
  */
1816
- readonly?: AttrBoolean;
955
+ crossorigin?: AttrCrossOrigin;
1817
956
 
1818
957
  /**
1819
- * Indicates whether the input is required to have a value for the form to be submitted.
1820
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
958
+ * Specifies the decoding mode for the image, which can be "sync", "async", or "auto".
959
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-decoding
1821
960
  */
1822
- required?: AttrBoolean;
961
+ decoding?: AttrMissing | "sync" | "async" | "auto";
1823
962
 
1824
963
  /**
1825
- * The number of characters wide the input field should be displayed.
1826
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-size
964
+ * Sets the fetch priority of the image, which can be "auto", "high", or "low".
965
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-fetchpriority
1827
966
  */
1828
- size?: AttrStringOrNumber;
967
+ fetchpriority?: AttrMissing | "auto" | "high" | "low";
1829
968
 
1830
969
  /**
1831
- * The value attribute for the tel input, representing a telephone number value.
1832
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1833
- */
1834
- value?: AttrString;
1835
- }
1836
- interface InputPassword extends Input {
1837
- /**
1838
- * The input type, set to "password" for this interface.
1839
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
970
+ * The height of the image, either as a string (CSS length value) or a number (pixels).
971
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-dim-height
1840
972
  */
1841
- type: "password";
973
+ height?: AttrStringOrNumber;
1842
974
 
1843
975
  /**
1844
- * Specifies whether the input field should have autocomplete enabled or disabled.
1845
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
976
+ * Indicates that the image is part of a server-side image map.
977
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-ismap
1846
978
  */
1847
- autocomplete?: AttrOnOff;
979
+ ismap?: AttrBoolean;
1848
980
 
1849
981
  /**
1850
- * The maximum number of characters allowed in the input.
1851
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-maxlength
982
+ * Specifies the loading behavior of the image, which can be "eager" or "lazy".
983
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-loading
1852
984
  */
1853
- maxlength?: AttrStringOrNumber;
985
+ loading?: AttrMissing | "eager" | "lazy";
1854
986
 
1855
987
  /**
1856
- * The minimum number of characters required in the input.
1857
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-minlength
988
+ * Sets the referrer policy for the image request.
989
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-referrerpolicy
1858
990
  */
1859
- minlength?: AttrStringOrNumber;
991
+ referrerpolicy?: AttrReferrerPolicy;
1860
992
 
1861
993
  /**
1862
- * A regular expression pattern to be matched by the input value.
1863
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-pattern
994
+ * A string containing size descriptors for responsive images.
995
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-sizes
1864
996
  */
1865
- pattern?: AttrString;
997
+ sizes?: AttrString;
1866
998
 
1867
999
  /**
1868
- * A short hint to display in the input field before the user enters a value.
1869
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-placeholder
1000
+ * The URL of the image to display.
1001
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-src
1870
1002
  */
1871
- placeholder?: AttrString;
1003
+ src?: AttrString;
1872
1004
 
1873
1005
  /**
1874
- * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
1875
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
1006
+ * A string containing URL and size descriptor pairs for responsive images.
1007
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-img-srcset
1876
1008
  */
1877
- readonly?: AttrBoolean;
1009
+ srcset?: AttrString;
1878
1010
 
1879
1011
  /**
1880
- * Indicates whether the input is required to have a value for the form to be submitted.
1881
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1012
+ * The URL of a client-side image map to associate with the image.
1013
+ * @see https://html.spec.whatwg.org/multipage/image-maps.html#attr-hyperlink-usemap
1882
1014
  */
1883
- required?: AttrBoolean;
1015
+ usemap?: AttrString;
1884
1016
 
1885
1017
  /**
1886
- * The number of characters wide the input field should be displayed.
1887
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-size
1018
+ * The width of the image, either as a string (CSS length value) or a number (pixels
1019
+ * @see https://html.spec.whatwg.org/multipage/embedded-content.html#attr-dim-width
1888
1020
  */
1889
- size?: AttrStringOrNumber;
1021
+ width?: AttrStringOrNumber;
1890
1022
 
1023
+ /** @deprecated */
1024
+ align?: AttrMissing | "left" | "center" | "right" | "justify" | "char";
1025
+ /** @deprecated */
1026
+ border?: AttrStringOrNumber;
1027
+ /** @deprecated */
1028
+ hspace?: AttrStringOrNumber;
1029
+ /** @deprecated */
1030
+ longdesc?: AttrString;
1031
+ /** @deprecated */
1032
+ name?: AttrString;
1033
+ /** @deprecated */
1034
+ vspace?: AttrStringOrNumber;
1035
+ }
1036
+ interface Input extends HTMLAttributes<HTMLInputElement> {
1891
1037
  /**
1892
- * The value attribute for the tel input, representing a telephone number value.
1893
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1038
+ * A comma-separated list of file types that a file input should accept.
1039
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-accept
1894
1040
  */
1895
- value?: AttrString;
1896
- }
1897
- interface InputText extends Input {
1041
+ accept?: AttrString;
1042
+
1898
1043
  /**
1899
- * The input type for this interface.
1900
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1044
+ * The alternate text for an image input, displayed if the image cannot be loaded.
1045
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-alt
1901
1046
  */
1902
- type?: "text" | "search" | "email"; // TODO: split interfaces
1047
+ alt?: AttrString;
1903
1048
 
1904
1049
  /**
1905
1050
  * Specifies whether the input field should have autocomplete enabled or disabled.
@@ -1908,77 +1053,74 @@ declare global {
1908
1053
  autocomplete?: AttrOnOff;
1909
1054
 
1910
1055
  /**
1911
- * Enables the submission of the directionality of the element.
1912
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-dirname
1056
+ * Indicates whether a file input should use a specific capture method.
1057
+ * "user" indicates the front camera, "environment" indicates the rear camera.
1058
+ * @see https://w3c.github.io/html-media-capture/#dfn-capture
1913
1059
  */
1914
- dirname?: AttrString;
1060
+ capture?: AttrBoolean | "user" | "environment";
1915
1061
 
1916
1062
  /**
1917
- * The ID of a <datalist> element that provides a list of suggested values for the input.
1918
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1063
+ * Indicates whether a checkbox should be checked or not.
1064
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-checked
1919
1065
  */
1920
- list?: AttrString;
1066
+ checked?: AttrBoolean;
1921
1067
 
1922
1068
  /**
1923
- * The maximum number of characters allowed in the input.
1924
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-maxlength
1069
+ * Enables the submission of the directionality of a text input.
1070
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-dirname
1925
1071
  */
1926
- maxlength?: AttrStringOrNumber;
1072
+ dirname?: AttrString;
1927
1073
 
1928
1074
  /**
1929
- * The minimum number of characters required in the input.
1930
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-minlength
1075
+ * Indicates whether the input should be disabled or not. When disabled,
1076
+ * the input will not be interactable or submitted with the form.
1077
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-disabled
1931
1078
  */
1932
- minlength?: AttrStringOrNumber;
1079
+ disabled?: AttrBoolean;
1933
1080
 
1934
1081
  /**
1935
- * A regular expression pattern to be matched by the input value.
1936
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-pattern
1082
+ * The ID of the form element that this input is associated with.
1083
+ * This allows the input to be associated with a form even if it is
1084
+ * not a direct descendant of the form element.
1085
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fae-form
1937
1086
  */
1938
- pattern?: AttrString;
1087
+ form?: AttrString;
1939
1088
 
1940
1089
  /**
1941
- * A short hint to display in the input field before the user enters a value.
1942
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-placeholder
1090
+ * The URL of the form processing endpoint when the input image is used for form submission.
1091
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formaction
1943
1092
  */
1944
- placeholder?: AttrString;
1093
+ formaction?: Form["action"];
1945
1094
 
1946
1095
  /**
1947
- * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
1948
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
1096
+ * The encoding type for the form data when the input image is used for form submission.
1097
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formenctype
1949
1098
  */
1950
- readonly?: AttrBoolean;
1099
+ formenctype?: Form["enctype"];
1951
1100
 
1952
1101
  /**
1953
- * Indicates whether the input is required to have a value for the form to be submitted.
1954
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1102
+ * The HTTP method to use when the input image is used for form submission.
1103
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formmethod
1955
1104
  */
1956
- required?: AttrBoolean;
1105
+ formmethod?: Form["method"];
1957
1106
 
1958
1107
  /**
1959
- * The number of characters wide the input field should be displayed.
1960
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-size
1108
+ * Indicates whether form validation should be skipped when the input image is used for form submission.
1109
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formnovalidate
1961
1110
  */
1962
- size?: AttrStringOrNumber;
1111
+ formnovalidate?: Form["novalidate"];
1963
1112
 
1964
1113
  /**
1965
- * The value attribute for input.
1966
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1967
- */
1968
- value?: AttrStringOrNumber;
1969
- }
1970
- interface InputTime extends Input {
1971
- /**
1972
- * The input type, set to "time" for this interface.
1973
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1114
+ * The browsing context for displaying the response after form submission when the input image is used.
1115
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fs-formtarget
1974
1116
  */
1975
- type: "time";
1117
+ formtarget?: Form["target"];
1976
1118
 
1977
1119
  /**
1978
- * Specifies whether the input field should have autocomplete enabled or disabled.
1979
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1120
+ * The height of of an image input in pixels.
1121
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-height
1980
1122
  */
1981
- autocomplete?: AttrOnOff;
1123
+ height?: AttrStringOrNumber;
1982
1124
 
1983
1125
  /**
1984
1126
  * The ID of a <datalist> element that provides a list of suggested values for the input.
@@ -1993,66 +1135,59 @@ declare global {
1993
1135
  max?: AttrString;
1994
1136
 
1995
1137
  /**
1996
- * The minimum allowed value for the input.
1997
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-min
1998
- */
1999
- min?: AttrString;
2000
-
2001
- /**
2002
- * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
2003
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-readonly
1138
+ * The maximum number of characters allowed in the input.
1139
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-maxlength
2004
1140
  */
2005
- readonly?: AttrBoolean;
1141
+ maxlength?: AttrStringOrNumber;
2006
1142
 
2007
1143
  /**
2008
- * Indicates whether the input is required to have a value for the form to be submitted.
2009
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-required
1144
+ * The minimum allowed value for the input.
1145
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-min
2010
1146
  */
2011
- required?: AttrBoolean;
1147
+ min?: AttrString;
2012
1148
 
2013
1149
  /**
2014
- * Specifies the allowed number intervals for the input value.
2015
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-step
1150
+ * The minimum number of characters required in the input.
1151
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-minlength
2016
1152
  */
2017
- step?: AttrString;
1153
+ minlength?: AttrStringOrNumber;
2018
1154
 
2019
1155
  /**
2020
- * The value attribute for the time input, representing a time value.
2021
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
1156
+ * Indicates whether the input should allow more than one value.
1157
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-multiple
2022
1158
  */
2023
- value?: AttrString;
2024
- }
1159
+ multiple?: AttrBoolean;
2025
1160
 
2026
- interface InputWeek extends Input {
2027
1161
  /**
2028
- * The input type, set to "week" for this interface.
2029
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1162
+ * Used as a key when submitting the forms data. Also the name used in the form.elements api.
1163
+ * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-name
1164
+ * @see HTMLFormElement.elements
2030
1165
  */
2031
- type: "week";
1166
+ name?: AttrString;
2032
1167
 
2033
1168
  /**
2034
- * Specifies whether the input field should have autocomplete enabled or disabled.
2035
- * @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
1169
+ * A regular expression pattern to be validated against the input value.
1170
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-pattern
2036
1171
  */
2037
- autocomplete?: AttrOnOff;
1172
+ pattern?: AttrString;
2038
1173
 
2039
1174
  /**
2040
- * The ID of a <datalist> element that provides a list of suggested values for the input.
2041
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-list
1175
+ * A short hint to display in the input field before the user enters a value.
1176
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-placeholder
2042
1177
  */
2043
- list?: AttrString;
1178
+ placeholder?: AttrString;
2044
1179
 
2045
1180
  /**
2046
- * The maximum allowed value for the input.
2047
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-max
1181
+ * Specifies the target element for the popover.
1182
+ * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
2048
1183
  */
2049
- max?: AttrString;
1184
+ popovertarget?: AttrString;
2050
1185
 
2051
1186
  /**
2052
- * The minimum allowed value for the input.
2053
- * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-min
1187
+ * Specifies the action to perform on the popover target.
1188
+ * @see https://developer.chrome.com/docs/web-platform/popover-api/popovertargetaction-toggle-attribute
2054
1189
  */
2055
- min?: AttrString;
1190
+ popovertargetaction?: AttrMissing | "toggle" | "show" | "hide";
2056
1191
 
2057
1192
  /**
2058
1193
  * Indicates whether the input should be read-only or not. Read-only inputs cannot be edited.
@@ -2066,6 +1201,18 @@ declare global {
2066
1201
  */
2067
1202
  required?: AttrBoolean;
2068
1203
 
1204
+ /**
1205
+ * The number of characters wide a text input field should be displayed.
1206
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-size
1207
+ */
1208
+ size?: AttrStringOrNumber;
1209
+
1210
+ /**
1211
+ * The URL of the image file.
1212
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-src
1213
+ */
1214
+ src?: AttrString;
1215
+
2069
1216
  /**
2070
1217
  * Specifies the allowed number intervals for the input value.
2071
1218
  * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-step
@@ -2073,11 +1220,47 @@ declare global {
2073
1220
  step?: AttrString;
2074
1221
 
2075
1222
  /**
2076
- * The value attribute for the time input, representing a time value.
1223
+ * Controls the data type (and associated control) of the element.
1224
+ * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-type
1225
+ */
1226
+ type:
1227
+ | AttrMissing
1228
+ | "button"
1229
+ | "checkbox"
1230
+ | "color"
1231
+ | "date"
1232
+ | "datetime-local"
1233
+ | "email"
1234
+ | "file"
1235
+ | "hidden"
1236
+ | "image"
1237
+ | "month"
1238
+ | "number"
1239
+ | "password"
1240
+ | "radio"
1241
+ | "range"
1242
+ | "reset"
1243
+ | "search"
1244
+ | "submit"
1245
+ | "tel"
1246
+ | "text"
1247
+ | "time"
1248
+ | "url"
1249
+ | "week";
1250
+
1251
+ /**
1252
+ * Specifies the string value you want to pass back to the server.
2077
1253
  * @see https://html.spec.whatwg.org/multipage/input.html#attr-input-value
2078
1254
  */
2079
- value?: AttrString;
1255
+ value?: AttrStringOrNumber;
1256
+
1257
+ /**
1258
+ * The width of an image input in pixels.
1259
+ * @see https://html.spec.whatwg.org/multipage/embedded-content-other.html#attr-dim-width
1260
+ */
1261
+ width?: AttrStringOrNumber;
2080
1262
  }
1263
+
2081
1264
  interface Ins extends HTMLAttributes<HTMLModElement> {
2082
1265
  /**
2083
1266
  * A URI for a resource that explains the reason for the insertion.
@@ -3109,7 +2292,29 @@ declare global {
3109
2292
  interface WBr extends HTMLAttributes<HTMLElement> {}
3110
2293
  }
3111
2294
 
3112
- interface HTMLAttributes<T extends Element> extends AriaAttributes {
2295
+ interface Directives {
2296
+ /**
2297
+ * Used to uniquely identify a tag within a template in order
2298
+ * to get an element reference to it later.
2299
+ *
2300
+ * @see Marko.Component.getEl
2301
+ * @see Marko.Component.getComponent
2302
+ */
2303
+ key?: AttrString;
2304
+
2305
+ /**
2306
+ * Tells Marko to avoid updating the element or it's contents (excluding custom tags which may rerender independently).
2307
+ */
2308
+ "no-update"?: AttrBoolean;
2309
+
2310
+ /**
2311
+ * Tells Marko to avoid updating an elements contents (excluding custom tags which may rerender independently).
2312
+ */
2313
+ "no-update-if"?: AttrBoolean;
2314
+ }
2315
+
2316
+ interface HTMLAttributes<T extends Element = Element>
2317
+ extends AriaAttributes {
3113
2318
  /**
3114
2319
  * Specifies a keyboard shortcut to activate or focus on an element.
3115
2320
  * @see https://html.spec.whatwg.org/multipage/interaction.html#the-accesskey-attribute
@@ -4429,29 +3634,7 @@ declare global {
4429
3634
  type Marko·Inputᐸʺiʺᐳ = { [K in keyof HTML.I]: HTML.I[K] };
4430
3635
  type Marko·Inputᐸʺiframeʺᐳ = { [K in keyof HTML.IFrame]: HTML.IFrame[K] };
4431
3636
  type Marko·Inputᐸʺimgʺᐳ = { [K in keyof HTML.Img]: HTML.Img[K] };
4432
- type Marko·Inputᐸʺinputʺᐳ = {} & (
4433
- | HTML.InputHidden
4434
- | HTML.InputText
4435
- | HTML.InputTel
4436
- | HTML.InputURL
4437
- | HTML.InputEmail
4438
- | HTML.InputPassword
4439
- | HTML.InputDate
4440
- | HTML.InputMonth
4441
- | HTML.InputWeek
4442
- | HTML.InputTime
4443
- | HTML.InputDateTimeLocal
4444
- | HTML.InputNumber
4445
- | HTML.InputRange
4446
- | HTML.InputColor
4447
- | HTML.InputCheckbox
4448
- | HTML.InputRadio
4449
- | HTML.InputFile
4450
- | HTML.InputSubmit
4451
- | HTML.InputImage
4452
- | HTML.InputReset
4453
- | HTML.InputButton
4454
- );
3637
+ type Marko·Inputᐸʺinputʺᐳ = { [K in keyof HTML.Input]: HTML.Input[K] };
4455
3638
  type Marko·Inputᐸʺinsʺᐳ = { [K in keyof HTML.Ins]: HTML.Ins[K] };
4456
3639
  type Marko·Inputᐸʺkbdʺᐳ = { [K in keyof HTML.Kbd]: HTML.Kbd[K] };
4457
3640
  type Marko·Inputᐸʺlabelʺᐳ = { [K in keyof HTML.Label]: HTML.Label[K] };
@@ -4536,7 +3719,7 @@ type AttrClass =
4536
3719
  | string
4537
3720
  | AttrClass[]
4538
3721
  | Record<string, AttrMissing | boolean>;
4539
- type AttrStyle = AttrMissing | csstype.PropertiesHyphen | AttrStyle[];
3722
+ type AttrStyle = AttrMissing | string | Marko.CSS.Properties | AttrStyle[];
4540
3723
  type AttrCrossOrigin = AttrBoolean | "anonymous" | "use-credentials";
4541
3724
  type AttrEventHandler<Event, Target> =
4542
3725
  | AttrMissing