@punica/components-mcp 0.1.1 → 0.3.0

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.
@@ -324,152 +324,6 @@
324
324
  }
325
325
  ]
326
326
  },
327
- {
328
- "kind": "javascript-module",
329
- "path": "src/components/alert/alert.js",
330
- "declarations": [
331
- {
332
- "kind": "class",
333
- "description": "A message about the content beside it: a result, a warning, a tip.\n\nAn error or a warning is `role=alert` and interrupts a screen reader; any\nother colour is `role=status` and waits its turn.",
334
- "name": "PunicaAlert",
335
- "cssProperties": [
336
- {
337
- "description": "Corner radius.",
338
- "name": "--punica-alert-radius"
339
- },
340
- {
341
- "description": "Padding.",
342
- "name": "--punica-alert-padding"
343
- },
344
- {
345
- "description": "Space between icon, message and actions.",
346
- "name": "--punica-alert-gap"
347
- }
348
- ],
349
- "cssParts": [
350
- {
351
- "description": "The default icon.",
352
- "name": "icon"
353
- },
354
- {
355
- "description": "The wrapper around the message.",
356
- "name": "content"
357
- },
358
- {
359
- "description": "The wrapper around the actions.",
360
- "name": "actions"
361
- },
362
- {
363
- "description": "The close button.",
364
- "name": "close"
365
- }
366
- ],
367
- "slots": [
368
- {
369
- "description": "The message.",
370
- "name": ""
371
- },
372
- {
373
- "description": "An icon in place of the one the colour gives.",
374
- "name": "icon"
375
- },
376
- {
377
- "description": "Buttons that answer the message.",
378
- "name": "actions"
379
- }
380
- ],
381
- "members": [
382
- {
383
- "kind": "field",
384
- "name": "properties",
385
- "type": {
386
- "text": "object"
387
- },
388
- "static": true,
389
- "default": "{ color: {}, variant: {}, dismissible: { type: Boolean }, labelClose: { default: 'Close' } }"
390
- },
391
- {
392
- "kind": "field",
393
- "name": "styles",
394
- "static": true,
395
- "default": "styles"
396
- },
397
- {
398
- "kind": "field",
399
- "name": "template",
400
- "static": true,
401
- "default": "` <span class=\"icon\"><slot name=\"icon\"><span class=\"default info\">${icons.info}</span><span class=\"default success\">${icons.success}</span><span class=\"default warning\">${icons.warning}</span><span class=\"default error\">${icons.error}</span></slot></span> <div part=\"content\" class=\"content\"><slot></slot></div> <div part=\"actions\" class=\"actions\"><slot name=\"actions\"></slot></div> <button part=\"close\" class=\"close\" type=\"button\" hidden>${icons.close}</button> `"
402
- },
403
- {
404
- "kind": "field",
405
- "name": "#close",
406
- "privacy": "private"
407
- },
408
- {
409
- "kind": "method",
410
- "name": "update"
411
- },
412
- {
413
- "kind": "method",
414
- "name": "dismiss",
415
- "description": "Does what the close button does: fires `punica-dismiss` and, unless a\nlistener prevents it, hides the alert."
416
- }
417
- ],
418
- "events": [
419
- {
420
- "description": "The user pressed the close button. Cancelable: unless prevented, the alert hides itself with `hidden`.",
421
- "name": "punica-dismiss"
422
- }
423
- ],
424
- "attributes": [
425
- {
426
- "type": {
427
- "text": "'info' | 'success' | 'warning' | 'error' | 'primary' | 'secondary' | 'neutral'"
428
- },
429
- "description": "What the message is, `info` by default.",
430
- "name": "color"
431
- },
432
- {
433
- "type": {
434
- "text": "'tinted' | 'outlined' | 'filled'"
435
- },
436
- "description": "Visual weight, `tinted` by default.",
437
- "name": "variant"
438
- },
439
- {
440
- "type": {
441
- "text": "boolean"
442
- },
443
- "description": "Shows a close button.",
444
- "name": "dismissible"
445
- },
446
- {
447
- "type": {
448
- "text": "string"
449
- },
450
- "description": "Accessible name of the close button, `Close` by default.",
451
- "name": "label-close"
452
- }
453
- ],
454
- "superclass": {
455
- "name": "PunicaElement",
456
- "module": "/src/core/element.js"
457
- },
458
- "tagName": "punica-alert",
459
- "customElement": true
460
- }
461
- ],
462
- "exports": [
463
- {
464
- "kind": "js",
465
- "name": "PunicaAlert",
466
- "declaration": {
467
- "name": "PunicaAlert",
468
- "module": "src/components/alert/alert.js"
469
- }
470
- }
471
- ]
472
- },
473
327
  {
474
328
  "kind": "javascript-module",
475
329
  "path": "src/components/agenda/agenda.js",
@@ -1317,6 +1171,152 @@
1317
1171
  }
1318
1172
  ]
1319
1173
  },
1174
+ {
1175
+ "kind": "javascript-module",
1176
+ "path": "src/components/alert/alert.js",
1177
+ "declarations": [
1178
+ {
1179
+ "kind": "class",
1180
+ "description": "A message about the content beside it: a result, a warning, a tip.\n\nAn error or a warning is `role=alert` and interrupts a screen reader; any\nother colour is `role=status` and waits its turn.",
1181
+ "name": "PunicaAlert",
1182
+ "cssProperties": [
1183
+ {
1184
+ "description": "Corner radius.",
1185
+ "name": "--punica-alert-radius"
1186
+ },
1187
+ {
1188
+ "description": "Padding.",
1189
+ "name": "--punica-alert-padding"
1190
+ },
1191
+ {
1192
+ "description": "Space between icon, message and actions.",
1193
+ "name": "--punica-alert-gap"
1194
+ }
1195
+ ],
1196
+ "cssParts": [
1197
+ {
1198
+ "description": "The default icon.",
1199
+ "name": "icon"
1200
+ },
1201
+ {
1202
+ "description": "The wrapper around the message.",
1203
+ "name": "content"
1204
+ },
1205
+ {
1206
+ "description": "The wrapper around the actions.",
1207
+ "name": "actions"
1208
+ },
1209
+ {
1210
+ "description": "The close button.",
1211
+ "name": "close"
1212
+ }
1213
+ ],
1214
+ "slots": [
1215
+ {
1216
+ "description": "The message.",
1217
+ "name": ""
1218
+ },
1219
+ {
1220
+ "description": "An icon in place of the one the colour gives.",
1221
+ "name": "icon"
1222
+ },
1223
+ {
1224
+ "description": "Buttons that answer the message.",
1225
+ "name": "actions"
1226
+ }
1227
+ ],
1228
+ "members": [
1229
+ {
1230
+ "kind": "field",
1231
+ "name": "properties",
1232
+ "type": {
1233
+ "text": "object"
1234
+ },
1235
+ "static": true,
1236
+ "default": "{ color: {}, variant: {}, dismissible: { type: Boolean }, labelClose: { default: 'Close' } }"
1237
+ },
1238
+ {
1239
+ "kind": "field",
1240
+ "name": "styles",
1241
+ "static": true,
1242
+ "default": "styles"
1243
+ },
1244
+ {
1245
+ "kind": "field",
1246
+ "name": "template",
1247
+ "static": true,
1248
+ "default": "` <span class=\"icon\"><slot name=\"icon\"><span class=\"default info\">${icons.info}</span><span class=\"default success\">${icons.success}</span><span class=\"default warning\">${icons.warning}</span><span class=\"default error\">${icons.error}</span></slot></span> <div part=\"content\" class=\"content\"><slot></slot></div> <div part=\"actions\" class=\"actions\"><slot name=\"actions\"></slot></div> <button part=\"close\" class=\"close\" type=\"button\" hidden>${icons.close}</button> `"
1249
+ },
1250
+ {
1251
+ "kind": "field",
1252
+ "name": "#close",
1253
+ "privacy": "private"
1254
+ },
1255
+ {
1256
+ "kind": "method",
1257
+ "name": "update"
1258
+ },
1259
+ {
1260
+ "kind": "method",
1261
+ "name": "dismiss",
1262
+ "description": "Does what the close button does: fires `punica-dismiss` and, unless a\nlistener prevents it, hides the alert."
1263
+ }
1264
+ ],
1265
+ "events": [
1266
+ {
1267
+ "description": "The user pressed the close button. Cancelable: unless prevented, the alert hides itself with `hidden`.",
1268
+ "name": "punica-dismiss"
1269
+ }
1270
+ ],
1271
+ "attributes": [
1272
+ {
1273
+ "type": {
1274
+ "text": "'info' | 'success' | 'warning' | 'error' | 'primary' | 'secondary' | 'neutral'"
1275
+ },
1276
+ "description": "What the message is, `info` by default.",
1277
+ "name": "color"
1278
+ },
1279
+ {
1280
+ "type": {
1281
+ "text": "'tinted' | 'outlined' | 'filled'"
1282
+ },
1283
+ "description": "Visual weight, `tinted` by default.",
1284
+ "name": "variant"
1285
+ },
1286
+ {
1287
+ "type": {
1288
+ "text": "boolean"
1289
+ },
1290
+ "description": "Shows a close button.",
1291
+ "name": "dismissible"
1292
+ },
1293
+ {
1294
+ "type": {
1295
+ "text": "string"
1296
+ },
1297
+ "description": "Accessible name of the close button, `Close` by default.",
1298
+ "name": "label-close"
1299
+ }
1300
+ ],
1301
+ "superclass": {
1302
+ "name": "PunicaElement",
1303
+ "module": "/src/core/element.js"
1304
+ },
1305
+ "tagName": "punica-alert",
1306
+ "customElement": true
1307
+ }
1308
+ ],
1309
+ "exports": [
1310
+ {
1311
+ "kind": "js",
1312
+ "name": "PunicaAlert",
1313
+ "declaration": {
1314
+ "name": "PunicaAlert",
1315
+ "module": "src/components/alert/alert.js"
1316
+ }
1317
+ }
1318
+ ]
1319
+ },
1320
1320
  {
1321
1321
  "kind": "javascript-module",
1322
1322
  "path": "src/components/alertDialog/alertDialog.js",
@@ -2486,6 +2486,10 @@
2486
2486
  {
2487
2487
  "description": "Each row made from `options`.",
2488
2488
  "name": "option"
2489
+ },
2490
+ {
2491
+ "description": "With `show-value`, the label beside a row's value.",
2492
+ "name": "option-label"
2489
2493
  }
2490
2494
  ],
2491
2495
  "slots": [
@@ -2510,7 +2514,7 @@
2510
2514
  "text": "object"
2511
2515
  },
2512
2516
  "static": true,
2513
- "default": "{ value: { reflect: false }, placeholder: {}, label: {}, open: { type: Boolean }, freeText: { type: Boolean }, noFilter: { type: Boolean }, clearable: { type: Boolean }, readonly: { type: Boolean }, size: {}, fullWidth: { type: Boolean }, labelClear: { default: 'Clear' }, options: { type: Array, attribute: false } }"
2517
+ "default": "{ value: { reflect: false }, placeholder: {}, label: {}, open: { type: Boolean }, freeText: { type: Boolean }, noFilter: { type: Boolean }, clearable: { type: Boolean }, readonly: { type: Boolean }, size: {}, fullWidth: { type: Boolean }, labelClear: { default: 'Clear' }, showValue: { type: Boolean }, options: { type: Array, attribute: false } }"
2514
2518
  },
2515
2519
  {
2516
2520
  "kind": "field",
@@ -2593,6 +2597,16 @@
2593
2597
  "default": "null",
2594
2598
  "description": "The array those rows were made from."
2595
2599
  },
2600
+ {
2601
+ "kind": "field",
2602
+ "name": "#generatedShow",
2603
+ "privacy": "private",
2604
+ "type": {
2605
+ "text": "boolean"
2606
+ },
2607
+ "default": "false",
2608
+ "description": "The `showValue` those rows were made for."
2609
+ },
2596
2610
  {
2597
2611
  "kind": "field",
2598
2612
  "name": "#typed",
@@ -2651,6 +2665,37 @@
2651
2665
  ],
2652
2666
  "description": "Moves focus to the text input."
2653
2667
  },
2668
+ {
2669
+ "kind": "method",
2670
+ "name": "select",
2671
+ "description": "Selects all the text in the field, as punica-input and a native input do."
2672
+ },
2673
+ {
2674
+ "kind": "method",
2675
+ "name": "setSelectionRange",
2676
+ "parameters": [
2677
+ {
2678
+ "name": "start",
2679
+ "type": {
2680
+ "text": "number"
2681
+ }
2682
+ },
2683
+ {
2684
+ "name": "end",
2685
+ "type": {
2686
+ "text": "number"
2687
+ }
2688
+ },
2689
+ {
2690
+ "name": "direction",
2691
+ "optional": true,
2692
+ "type": {
2693
+ "text": "'forward' | 'backward' | 'none'"
2694
+ }
2695
+ }
2696
+ ],
2697
+ "description": "Selects a range of the text in the field, as punica-input and a native input do: a page that writes a value with a\npart to fill in (`$item.<field>`) selects that part for the person to type over."
2698
+ },
2654
2699
  {
2655
2700
  "kind": "method",
2656
2701
  "name": "connected"
@@ -2702,7 +2747,7 @@
2702
2747
  "name": "value"
2703
2748
  }
2704
2749
  ],
2705
- "description": "The text shown for a value: its option's label, else the value itself."
2750
+ "description": "The text shown for a value: its option's label, else the value itself (always the value with `show-value`)."
2706
2751
  },
2707
2752
  {
2708
2753
  "kind": "method",
@@ -2844,6 +2889,13 @@
2844
2889
  "description": "The list is shown as given; for options already filtered by a server.",
2845
2890
  "name": "no-filter"
2846
2891
  },
2892
+ {
2893
+ "type": {
2894
+ "text": "boolean"
2895
+ },
2896
+ "description": "The field shows a picked option's value instead of its label, as a native input with a `<datalist>` does: typing finds an option by its value or its label, and a row from `options` shows the value with the label beside it (an account's number and name).",
2897
+ "name": "show-value"
2898
+ },
2847
2899
  {
2848
2900
  "type": {
2849
2901
  "text": "boolean"
@@ -4984,7 +5036,7 @@
4984
5036
  "text": "object"
4985
5037
  },
4986
5038
  "static": true,
4987
- "default": "{ variant: {}, color: {}, size: {}, type: { default: 'button' }, loading: { type: Boolean }, pill: { type: Boolean }, fullWidth: { type: Boolean }, value: {}, label: {}, // ARIA a wrapper (a popover, a menu) writes on the host is passed to // the native button, which is what assistive technology reads. ariaExpanded: { attribute: 'aria-expanded', reflect: false }, ariaHasPopup: { attribute: 'aria-haspopup', reflect: false }, ariaControls: { attribute: 'aria-controls', reflect: false }, ariaPressed: { attribute: 'aria-pressed', reflect: false }, ariaDescription: { attribute: 'aria-description', reflect: false } }"
5039
+ "default": "{ variant: {}, color: {}, size: {}, type: { default: 'button' }, loading: { type: Boolean }, pill: { type: Boolean }, fullWidth: { type: Boolean }, value: {}, label: {}, // ARIA a wrapper (a popover, a menu) writes on the host is passed to // the native button, which is what assistive technology reads. ariaExpanded: { attribute: 'aria-expanded', reflect: false }, ariaHasPopup: { attribute: 'aria-haspopup', reflect: false }, ariaControls: { attribute: 'aria-controls', reflect: false }, ariaPressed: { attribute: 'aria-pressed', reflect: false }, ariaDescription: { attribute: 'aria-description', reflect: false }, // A name written on the host the usual way names the native button too; `label` wins when both are there. ariaLabel: { attribute: 'aria-label', reflect: false } }"
4988
5040
  },
4989
5041
  {
4990
5042
  "kind": "field",
@@ -5016,6 +5068,23 @@
5016
5068
  "kind": "method",
5017
5069
  "name": "update"
5018
5070
  },
5071
+ {
5072
+ "kind": "method",
5073
+ "name": "connected"
5074
+ },
5075
+ {
5076
+ "kind": "method",
5077
+ "name": "#onEnter",
5078
+ "privacy": "private",
5079
+ "parameters": [
5080
+ {
5081
+ "name": "event",
5082
+ "type": {
5083
+ "text": "KeyboardEvent"
5084
+ }
5085
+ }
5086
+ ]
5087
+ },
5019
5088
  {
5020
5089
  "kind": "method",
5021
5090
  "name": "focus",
@@ -5063,7 +5132,7 @@
5063
5132
  "type": {
5064
5133
  "text": "'button' | 'submit' | 'reset'"
5065
5134
  },
5066
- "description": "What a click does to the owning form, `button` by default.",
5135
+ "description": "What a click does to the owning form, `button` by default. The first submit button of a form is its default button: Enter in a native field of one line clicks it.",
5067
5136
  "name": "type"
5068
5137
  },
5069
5138
  {
@@ -5119,10 +5188,16 @@
5119
5188
  "type": {
5120
5189
  "text": "string"
5121
5190
  },
5122
- "description": "Accessible name, for a button with no text.",
5191
+ "description": "Accessible name, for a button with no text. An `aria-label` on the element names it too; `label` wins.",
5123
5192
  "name": "label"
5124
5193
  }
5125
5194
  ],
5195
+ "cssStates": [
5196
+ {
5197
+ "description": "The native button has focus the browser would show a ring for (the keyboard's). The element itself does not match `:focus-visible`; a page that draws the button with its own class puts its ring on the element with `punica-button.x:state(focus-visible)`.",
5198
+ "name": "focus-visible"
5199
+ }
5200
+ ],
5126
5201
  "mixins": [
5127
5202
  {
5128
5203
  "name": "FormControl",
@@ -6070,6 +6145,130 @@
6070
6145
  "text": "number | null"
6071
6146
  }
6072
6147
  }
6148
+ },
6149
+ {
6150
+ "kind": "function",
6151
+ "name": "parseIsoMonth",
6152
+ "parameters": [
6153
+ {
6154
+ "name": "text",
6155
+ "type": {
6156
+ "text": "string | null | undefined"
6157
+ }
6158
+ }
6159
+ ],
6160
+ "description": "Parses `yyyy-mm`.",
6161
+ "return": {
6162
+ "type": {
6163
+ "text": "CalendarMonth | null"
6164
+ }
6165
+ }
6166
+ },
6167
+ {
6168
+ "kind": "function",
6169
+ "name": "toIsoMonth",
6170
+ "parameters": [
6171
+ {
6172
+ "name": "month",
6173
+ "type": {
6174
+ "text": "CalendarMonth | null"
6175
+ }
6176
+ }
6177
+ ],
6178
+ "return": {
6179
+ "type": {
6180
+ "text": "string | null"
6181
+ }
6182
+ }
6183
+ },
6184
+ {
6185
+ "kind": "function",
6186
+ "name": "compareMonths",
6187
+ "parameters": [
6188
+ {
6189
+ "name": "a",
6190
+ "type": {
6191
+ "text": "CalendarMonth"
6192
+ }
6193
+ },
6194
+ {
6195
+ "name": "b",
6196
+ "type": {
6197
+ "text": "CalendarMonth"
6198
+ }
6199
+ }
6200
+ ],
6201
+ "return": {
6202
+ "type": {
6203
+ "text": "number"
6204
+ }
6205
+ }
6206
+ },
6207
+ {
6208
+ "kind": "function",
6209
+ "name": "shiftMonth",
6210
+ "parameters": [
6211
+ {
6212
+ "name": "month",
6213
+ "type": {
6214
+ "text": "CalendarMonth"
6215
+ }
6216
+ },
6217
+ {
6218
+ "name": "months",
6219
+ "type": {
6220
+ "text": "number"
6221
+ }
6222
+ }
6223
+ ],
6224
+ "return": {
6225
+ "type": {
6226
+ "text": "CalendarMonth"
6227
+ }
6228
+ }
6229
+ },
6230
+ {
6231
+ "kind": "function",
6232
+ "name": "formatFieldMonth",
6233
+ "parameters": [
6234
+ {
6235
+ "name": "language",
6236
+ "type": {
6237
+ "text": "string"
6238
+ }
6239
+ },
6240
+ {
6241
+ "name": "month",
6242
+ "type": {
6243
+ "text": "CalendarMonth | null"
6244
+ }
6245
+ }
6246
+ ],
6247
+ "description": "The text a month field shows: all-numeric, in the language's own order\n(`03/2026`, `03.2026`, `2026/03`)."
6248
+ },
6249
+ {
6250
+ "kind": "function",
6251
+ "name": "parseFieldMonth",
6252
+ "parameters": [
6253
+ {
6254
+ "name": "text",
6255
+ "type": {
6256
+ "text": "string"
6257
+ }
6258
+ },
6259
+ {
6260
+ "name": "language",
6261
+ "type": {
6262
+ "text": "string"
6263
+ }
6264
+ }
6265
+ ],
6266
+ "description": "Parses what a person typed: `yyyy-mm`, or a month and a year in the\nlanguage's own order with any separators. A number of three or four digits\nis the year wherever it stands; a two-digit year is this century.",
6267
+ "return": {
6268
+ "type": {
6269
+ "text": "CalendarMonth | null"
6270
+ }
6271
+ }
6073
6272
  }
6074
6273
  ],
6075
6274
  "exports": [
@@ -6232,6 +6431,54 @@
6232
6431
  "name": "parseFieldTime",
6233
6432
  "module": "src/components/calendar/dates.js"
6234
6433
  }
6434
+ },
6435
+ {
6436
+ "kind": "js",
6437
+ "name": "parseIsoMonth",
6438
+ "declaration": {
6439
+ "name": "parseIsoMonth",
6440
+ "module": "src/components/calendar/dates.js"
6441
+ }
6442
+ },
6443
+ {
6444
+ "kind": "js",
6445
+ "name": "toIsoMonth",
6446
+ "declaration": {
6447
+ "name": "toIsoMonth",
6448
+ "module": "src/components/calendar/dates.js"
6449
+ }
6450
+ },
6451
+ {
6452
+ "kind": "js",
6453
+ "name": "compareMonths",
6454
+ "declaration": {
6455
+ "name": "compareMonths",
6456
+ "module": "src/components/calendar/dates.js"
6457
+ }
6458
+ },
6459
+ {
6460
+ "kind": "js",
6461
+ "name": "shiftMonth",
6462
+ "declaration": {
6463
+ "name": "shiftMonth",
6464
+ "module": "src/components/calendar/dates.js"
6465
+ }
6466
+ },
6467
+ {
6468
+ "kind": "js",
6469
+ "name": "formatFieldMonth",
6470
+ "declaration": {
6471
+ "name": "formatFieldMonth",
6472
+ "module": "src/components/calendar/dates.js"
6473
+ }
6474
+ },
6475
+ {
6476
+ "kind": "js",
6477
+ "name": "parseFieldMonth",
6478
+ "declaration": {
6479
+ "name": "parseFieldMonth",
6480
+ "module": "src/components/calendar/dates.js"
6481
+ }
6235
6482
  }
6236
6483
  ]
6237
6484
  },
@@ -9226,7 +9473,7 @@
9226
9473
  "text": "object"
9227
9474
  },
9228
9475
  "static": true,
9229
- "default": "{ checked: { type: Boolean }, indeterminate: { type: Boolean }, value: { default: 'on' }, label: {}, color: {} }"
9476
+ "default": "{ // A name written on the element the usual way names the control too; `label` wins. ariaLabel: { attribute: 'aria-label', reflect: false }, checked: { type: Boolean }, indeterminate: { type: Boolean }, value: { default: 'on' }, label: {}, /** Read after the name by assistive technology; a punica-field around the control sets it. */ description: {}, color: {} }"
9230
9477
  },
9231
9478
  {
9232
9479
  "kind": "field",
@@ -9263,6 +9510,16 @@
9263
9510
  },
9264
9511
  "default": "{ checked: false, indeterminate: false }"
9265
9512
  },
9513
+ {
9514
+ "kind": "field",
9515
+ "name": "#touched",
9516
+ "privacy": "private",
9517
+ "type": {
9518
+ "text": "boolean"
9519
+ },
9520
+ "default": "false",
9521
+ "description": "Toggled by the user, or reported invalid."
9522
+ },
9266
9523
  {
9267
9524
  "kind": "method",
9268
9525
  "name": "update"
@@ -9344,7 +9601,7 @@
9344
9601
  "type": {
9345
9602
  "text": "string"
9346
9603
  },
9347
- "description": "Accessible name, for a checkbox with no text.",
9604
+ "description": "Accessible name, for a checkbox with no text. An `aria-label` on the element names it too; `label` wins.",
9348
9605
  "name": "label"
9349
9606
  },
9350
9607
  {
@@ -9361,6 +9618,13 @@
9361
9618
  "description": "Has to be ticked before the form submits.",
9362
9619
  "name": "required"
9363
9620
  },
9621
+ {
9622
+ "type": {
9623
+ "text": "string"
9624
+ },
9625
+ "description": "Read by assistive technology after the control's name; a `punica-field` around it sets it to its help and its error.",
9626
+ "name": "description"
9627
+ },
9364
9628
  {
9365
9629
  "type": {
9366
9630
  "text": "'primary' | 'secondary' | 'error' | 'warning' | 'info' | 'success' | 'neutral'"
@@ -9855,9 +10119,9 @@
9855
10119
  },
9856
10120
  {
9857
10121
  "type": {
9858
- "text": "'filled' | 'outlined'"
10122
+ "text": "'filled' | 'soft' | 'outlined'"
9859
10123
  },
9860
- "description": "Visual weight, `filled` by default.",
10124
+ "description": "Visual weight, `filled` by default; `soft` is a tint of the colour under its shade.",
9861
10125
  "name": "variant"
9862
10126
  },
9863
10127
  {
@@ -15646,6 +15910,24 @@
15646
15910
  "name": "#heading",
15647
15911
  "privacy": "private"
15648
15912
  },
15913
+ {
15914
+ "kind": "method",
15915
+ "name": "connected"
15916
+ },
15917
+ {
15918
+ "kind": "method",
15919
+ "name": "#fill",
15920
+ "privacy": "private",
15921
+ "parameters": [
15922
+ {
15923
+ "name": "name"
15924
+ },
15925
+ {
15926
+ "name": "slot"
15927
+ }
15928
+ ],
15929
+ "description": "Hides a part whose slot holds nothing but white space."
15930
+ },
15649
15931
  {
15650
15932
  "kind": "method",
15651
15933
  "name": "update"
@@ -15699,7 +15981,7 @@
15699
15981
  "declarations": [
15700
15982
  {
15701
15983
  "kind": "class",
15702
- "description": "A label, a help text and an error message around one form control.\n\nThe control goes in the default slot. A click on the label focuses it,\nand `label` becomes the control's accessible name unless the control\nalready has one. Once the control has been reported invalid (its\n`invalid` event fired: a submit, `reportValidity()` or `checkValidity()`)\nor the user left it while invalid, the field shows the control's\n`validationMessage` and keeps it up to date until the control is valid\nagain. `error` shows a message of your own at any time.",
15984
+ "description": "A label, a help text and an error message around one form control.\n\nThe control goes in the default slot. A click on the label focuses it,\nand `label` becomes the control's accessible name unless the control\nalready has one. Once the control has been reported invalid (its\n`invalid` event fired: a submit, `reportValidity()` or `checkValidity()`)\nor the user left it while invalid, the field shows the control's\n`validationMessage` and keeps it up to date until the control is valid\nagain. `error` shows a message of your own at any time. The help and the\nmessage shown are the control's description (its `description`, or\n`aria-description` on a native control), and an invalid control says so\n(`aria-invalid`) once touched.",
15703
15985
  "name": "PunicaField",
15704
15986
  "cssProperties": [
15705
15987
  {
@@ -15721,6 +16003,10 @@
15721
16003
  {
15722
16004
  "description": "Error text colour.",
15723
16005
  "name": "--punica-field-error-color"
16006
+ },
16007
+ {
16008
+ "description": "Line height of the label, the help and the error, 1.43 by default.",
16009
+ "name": "--punica-field-line-height"
15724
16010
  }
15725
16011
  ],
15726
16012
  "cssParts": [
@@ -15763,7 +16049,7 @@
15763
16049
  "text": "object"
15764
16050
  },
15765
16051
  "static": true,
15766
- "default": "{ label: {}, help: {}, error: {}, required: { type: Boolean } }"
16052
+ "default": "{ label: {}, help: {}, error: {}, required: { type: Boolean }, report: { default: 'browser' } }"
15767
16053
  },
15768
16054
  {
15769
16055
  "kind": "field",
@@ -15797,6 +16083,16 @@
15797
16083
  "default": "null",
15798
16084
  "description": "The control whose name this field wrote, so it can keep it current."
15799
16085
  },
16086
+ {
16087
+ "kind": "field",
16088
+ "name": "#described",
16089
+ "privacy": "private",
16090
+ "type": {
16091
+ "text": "null"
16092
+ },
16093
+ "default": "null",
16094
+ "description": "The control whose description this field wrote, so it can keep it current."
16095
+ },
15800
16096
  {
15801
16097
  "kind": "method",
15802
16098
  "name": "connected"
@@ -15833,6 +16129,20 @@
15833
16129
  "privacy": "private",
15834
16130
  "description": "Shows `error`, or the control's own message once it was touched."
15835
16131
  },
16132
+ {
16133
+ "kind": "method",
16134
+ "name": "#describe",
16135
+ "privacy": "private",
16136
+ "parameters": [
16137
+ {
16138
+ "name": "control"
16139
+ },
16140
+ {
16141
+ "name": "message"
16142
+ }
16143
+ ],
16144
+ "description": "Gives the control the field's help and error as its description, read\nafter its name, unless it has one of its own."
16145
+ },
15836
16146
  {
15837
16147
  "kind": "method",
15838
16148
  "name": "#later",
@@ -15868,6 +16178,13 @@
15868
16178
  },
15869
16179
  "description": "Shows the required mark; also shown when the control is `required`.",
15870
16180
  "name": "required"
16181
+ },
16182
+ {
16183
+ "type": {
16184
+ "text": "'browser' | 'inline'"
16185
+ },
16186
+ "description": "How a submit reports the control invalid: `browser` (default) leaves the browser's own bubble beside the field's message; `inline` shows the field's message alone and focuses the first invalid control of the submit, as the browser would.",
16187
+ "name": "report"
15871
16188
  }
15872
16189
  ],
15873
16190
  "cssStates": [
@@ -17808,7 +18125,7 @@
17808
18125
  "text": "object"
17809
18126
  },
17810
18127
  "static": true,
17811
- "default": "{ type: { default: 'text' }, value: { reflect: false, default: '' }, label: {}, placeholder: {}, readonly: { type: Boolean }, pattern: {}, minlength: { type: Number }, maxlength: { type: Number }, min: {}, max: {}, step: {}, autocomplete: {}, inputmode: {}, clearable: { type: Boolean }, labelClear: { default: 'Clear' }, size: {}, fullWidth: { type: Boolean } }"
18128
+ "default": "{ // A name written on the element the usual way names the control too; `label` wins. ariaLabel: { attribute: 'aria-label', reflect: false }, type: { default: 'text' }, value: { reflect: false, default: '' }, label: {}, /** Read after the name by assistive technology; a punica-field around the control sets it. */ description: {}, placeholder: {}, readonly: { type: Boolean }, pattern: {}, minlength: { type: Number }, maxlength: { type: Number }, min: {}, max: {}, step: {}, autocomplete: {}, inputmode: {}, clearable: { type: Boolean }, labelClear: { default: 'Clear' }, size: {}, fullWidth: { type: Boolean } }"
17812
18129
  },
17813
18130
  {
17814
18131
  "kind": "field",
@@ -17960,7 +18277,7 @@
17960
18277
  "type": {
17961
18278
  "text": "string"
17962
18279
  },
17963
- "description": "Accessible name, when no `<label>` points at the field.",
18280
+ "description": "Accessible name, when no `<label>` points at the field. An `aria-label` on the element names it too; `label` wins.",
17964
18281
  "name": "label"
17965
18282
  },
17966
18283
  {
@@ -17991,6 +18308,13 @@
17991
18308
  "description": "A value is needed before the form submits.",
17992
18309
  "name": "required"
17993
18310
  },
18311
+ {
18312
+ "type": {
18313
+ "text": "string"
18314
+ },
18315
+ "description": "Read by assistive technology after the control's name; a `punica-field` around it sets it to its help and its error.",
18316
+ "name": "description"
18317
+ },
17994
18318
  {
17995
18319
  "type": {
17996
18320
  "text": "string"
@@ -19199,6 +19523,12 @@
19199
19523
  "name": "label"
19200
19524
  }
19201
19525
  ],
19526
+ "cssStates": [
19527
+ {
19528
+ "description": "The native anchor has focus the browser would show a ring for (the keyboard's). The element itself does not match `:focus-visible`; a page that draws the link with its own class (a card, a row) puts its ring on the element with `punica-link.x:state(focus-visible)`.",
19529
+ "name": "focus-visible"
19530
+ }
19531
+ ],
19202
19532
  "superclass": {
19203
19533
  "name": "PunicaElement",
19204
19534
  "module": "/src/core/element.js"
@@ -22780,6 +23110,606 @@
22780
23110
  }
22781
23111
  ]
22782
23112
  },
23113
+ {
23114
+ "kind": "javascript-module",
23115
+ "path": "src/components/monthPicker/monthPicker.js",
23116
+ "declarations": [
23117
+ {
23118
+ "kind": "class",
23119
+ "description": "A month field: a text input that takes a typed month and year in the\nlanguage's own order, and a button that opens the twelve months of a year.\nWhat `<input type=\"month\">` is, in every browser.\n\nThe value is an ISO `yyyy-mm` month; no time zone is involved.",
23120
+ "name": "PunicaMonthPicker",
23121
+ "cssProperties": [
23122
+ {
23123
+ "description": "Corner radius of the field.",
23124
+ "name": "--punica-month-picker-radius"
23125
+ },
23126
+ {
23127
+ "description": "Minimum block size of the field.",
23128
+ "name": "--punica-month-picker-height"
23129
+ },
23130
+ {
23131
+ "description": "Inline padding of the field.",
23132
+ "name": "--punica-month-picker-padding"
23133
+ },
23134
+ {
23135
+ "description": "Border colour at rest.",
23136
+ "name": "--punica-month-picker-border-color"
23137
+ },
23138
+ {
23139
+ "description": "Field background.",
23140
+ "name": "--punica-month-picker-background"
23141
+ },
23142
+ {
23143
+ "description": "Smallest inline size.",
23144
+ "name": "--punica-month-picker-min-width"
23145
+ },
23146
+ {
23147
+ "description": "Padding around the months.",
23148
+ "name": "--punica-month-picker-panel-padding"
23149
+ },
23150
+ {
23151
+ "description": "Inline size of a month cell.",
23152
+ "name": "--punica-month-picker-month-width"
23153
+ },
23154
+ {
23155
+ "description": "Colour of the selected month and of the current month's ring.",
23156
+ "name": "--punica-month-picker-accent"
23157
+ }
23158
+ ],
23159
+ "cssParts": [
23160
+ {
23161
+ "description": "The bordered box.",
23162
+ "name": "field"
23163
+ },
23164
+ {
23165
+ "description": "The text input.",
23166
+ "name": "input"
23167
+ },
23168
+ {
23169
+ "description": "The months button.",
23170
+ "name": "toggle"
23171
+ },
23172
+ {
23173
+ "description": "The floating panel.",
23174
+ "name": "panel"
23175
+ },
23176
+ {
23177
+ "description": "The row holding the year and its buttons.",
23178
+ "name": "header"
23179
+ },
23180
+ {
23181
+ "description": "The year on show.",
23182
+ "name": "title"
23183
+ },
23184
+ {
23185
+ "description": "Each year button.",
23186
+ "name": "nav"
23187
+ },
23188
+ {
23189
+ "description": "The table of months.",
23190
+ "name": "grid"
23191
+ },
23192
+ {
23193
+ "description": "A month cell. Also carries `current`, `selected` and `disabled` where they apply.",
23194
+ "name": "month"
23195
+ }
23196
+ ],
23197
+ "slots": [
23198
+ {
23199
+ "description": "Content before the input, an icon.",
23200
+ "name": "start"
23201
+ }
23202
+ ],
23203
+ "members": [
23204
+ {
23205
+ "kind": "field",
23206
+ "name": "properties",
23207
+ "type": {
23208
+ "text": "object"
23209
+ },
23210
+ "static": true,
23211
+ "default": "{ value: { reflect: false }, min: {}, max: {}, locale: {}, placeholder: {}, label: {}, open: { type: Boolean }, readonly: { type: Boolean }, size: {}, fullWidth: { type: Boolean }, labelToggle: { default: 'Choose month' }, labelPreviousYear: { default: 'Previous year' }, labelNextYear: { default: 'Next year' }, disabledMonths: { type: Object, attribute: false } }"
23212
+ },
23213
+ {
23214
+ "kind": "field",
23215
+ "name": "styles",
23216
+ "type": {
23217
+ "text": "array"
23218
+ },
23219
+ "static": true,
23220
+ "default": "[overlayCss, fieldStyles, styles]"
23221
+ },
23222
+ {
23223
+ "kind": "field",
23224
+ "name": "shadowOptions",
23225
+ "type": {
23226
+ "text": "object"
23227
+ },
23228
+ "static": true,
23229
+ "default": "{ delegatesFocus: true }"
23230
+ },
23231
+ {
23232
+ "kind": "field",
23233
+ "name": "template",
23234
+ "static": true,
23235
+ "default": "` <div part=\"field\" class=\"field\"> <slot name=\"start\"></slot> <input part=\"input\" class=\"control\" type=\"text\" inputmode=\"numeric\" autocomplete=\"off\" spellcheck=\"false\"> <button part=\"toggle\" class=\"icon-button\" type=\"button\" aria-haspopup=\"dialog\" aria-controls=\"panel\" aria-expanded=\"false\">${icons.calendar}</button> </div> <div part=\"panel\" id=\"panel\" class=\"panel\" role=\"dialog\" popover=\"manual\"> <div part=\"header\" class=\"header\"> <button part=\"nav\" class=\"nav\" type=\"button\" data-years=\"-1\">${icons.chevronStart}</button> <div part=\"title\" class=\"title\" id=\"title\" aria-live=\"polite\"></div> <button part=\"nav\" class=\"nav\" type=\"button\" data-years=\"1\">${icons.chevronEnd}</button> </div> <table part=\"grid\" role=\"grid\" aria-labelledby=\"title\"><tbody></tbody></table> </div> `"
23236
+ },
23237
+ {
23238
+ "kind": "field",
23239
+ "name": "#field",
23240
+ "privacy": "private"
23241
+ },
23242
+ {
23243
+ "kind": "field",
23244
+ "name": "#input",
23245
+ "privacy": "private"
23246
+ },
23247
+ {
23248
+ "kind": "field",
23249
+ "name": "#toggle",
23250
+ "privacy": "private"
23251
+ },
23252
+ {
23253
+ "kind": "field",
23254
+ "name": "#panel",
23255
+ "privacy": "private"
23256
+ },
23257
+ {
23258
+ "kind": "field",
23259
+ "name": "#title",
23260
+ "privacy": "private"
23261
+ },
23262
+ {
23263
+ "kind": "field",
23264
+ "name": "#body",
23265
+ "privacy": "private"
23266
+ },
23267
+ {
23268
+ "kind": "field",
23269
+ "name": "#navs",
23270
+ "privacy": "private",
23271
+ "type": {
23272
+ "text": "HTMLButtonElement[]"
23273
+ },
23274
+ "default": "[...this.shadowRoot.querySelectorAll('.nav')]"
23275
+ },
23276
+ {
23277
+ "kind": "field",
23278
+ "name": "#cells",
23279
+ "privacy": "private",
23280
+ "type": {
23281
+ "text": "HTMLTableCellElement[]"
23282
+ },
23283
+ "default": "[]"
23284
+ },
23285
+ {
23286
+ "kind": "field",
23287
+ "name": "#surface",
23288
+ "privacy": "private",
23289
+ "default": "new FieldSurface(this, this.#panel)"
23290
+ },
23291
+ {
23292
+ "kind": "field",
23293
+ "name": "#cursor",
23294
+ "privacy": "private",
23295
+ "type": {
23296
+ "text": "CalendarMonth | null"
23297
+ },
23298
+ "default": "null",
23299
+ "description": "The month the keyboard is on; its year is the one on show."
23300
+ },
23301
+ {
23302
+ "kind": "field",
23303
+ "name": "#textKey",
23304
+ "privacy": "private",
23305
+ "type": {
23306
+ "text": "string | null"
23307
+ },
23308
+ "default": "null",
23309
+ "description": "What the input's text was last written from."
23310
+ },
23311
+ {
23312
+ "kind": "field",
23313
+ "name": "#bad",
23314
+ "privacy": "private",
23315
+ "type": {
23316
+ "text": "boolean"
23317
+ },
23318
+ "default": "false",
23319
+ "description": "The typed text is not a month."
23320
+ },
23321
+ {
23322
+ "kind": "field",
23323
+ "name": "#touched",
23324
+ "privacy": "private",
23325
+ "type": {
23326
+ "text": "boolean"
23327
+ },
23328
+ "default": "false"
23329
+ },
23330
+ {
23331
+ "kind": "field",
23332
+ "name": "#tabbing",
23333
+ "privacy": "private",
23334
+ "type": {
23335
+ "text": "boolean"
23336
+ },
23337
+ "default": "false"
23338
+ },
23339
+ {
23340
+ "kind": "field",
23341
+ "name": "#reason",
23342
+ "privacy": "private",
23343
+ "type": {
23344
+ "text": "string"
23345
+ },
23346
+ "default": "'api'"
23347
+ },
23348
+ {
23349
+ "kind": "method",
23350
+ "name": "show",
23351
+ "description": "Opens the months."
23352
+ },
23353
+ {
23354
+ "kind": "method",
23355
+ "name": "hide",
23356
+ "description": "Closes the months."
23357
+ },
23358
+ {
23359
+ "kind": "method",
23360
+ "name": "focus",
23361
+ "parameters": [
23362
+ {
23363
+ "name": "options"
23364
+ }
23365
+ ],
23366
+ "description": "Moves focus to the text input."
23367
+ },
23368
+ {
23369
+ "kind": "method",
23370
+ "name": "connected"
23371
+ },
23372
+ {
23373
+ "kind": "method",
23374
+ "name": "disconnected"
23375
+ },
23376
+ {
23377
+ "kind": "method",
23378
+ "name": "formReset"
23379
+ },
23380
+ {
23381
+ "kind": "method",
23382
+ "name": "formRestore",
23383
+ "parameters": [
23384
+ {
23385
+ "name": "state"
23386
+ }
23387
+ ]
23388
+ },
23389
+ {
23390
+ "kind": "method",
23391
+ "name": "update"
23392
+ },
23393
+ {
23394
+ "kind": "method",
23395
+ "name": "#drawMonths",
23396
+ "privacy": "private",
23397
+ "parameters": [
23398
+ {
23399
+ "name": "language",
23400
+ "type": {
23401
+ "text": "string"
23402
+ }
23403
+ }
23404
+ ]
23405
+ },
23406
+ {
23407
+ "kind": "method",
23408
+ "name": "#focusCursor",
23409
+ "privacy": "private"
23410
+ },
23411
+ {
23412
+ "kind": "method",
23413
+ "name": "#clamp",
23414
+ "privacy": "private",
23415
+ "parameters": [
23416
+ {
23417
+ "name": "month",
23418
+ "type": {
23419
+ "text": "CalendarMonth"
23420
+ }
23421
+ }
23422
+ ]
23423
+ },
23424
+ {
23425
+ "kind": "method",
23426
+ "name": "#unavailable",
23427
+ "privacy": "private",
23428
+ "parameters": [
23429
+ {
23430
+ "name": "month",
23431
+ "type": {
23432
+ "text": "CalendarMonth"
23433
+ }
23434
+ }
23435
+ ]
23436
+ },
23437
+ {
23438
+ "kind": "method",
23439
+ "name": "#monthFrom",
23440
+ "privacy": "private",
23441
+ "parameters": [
23442
+ {
23443
+ "name": "event",
23444
+ "type": {
23445
+ "text": "Event"
23446
+ }
23447
+ }
23448
+ ]
23449
+ },
23450
+ {
23451
+ "kind": "method",
23452
+ "name": "#moveTo",
23453
+ "privacy": "private",
23454
+ "parameters": [
23455
+ {
23456
+ "name": "month",
23457
+ "type": {
23458
+ "text": "CalendarMonth"
23459
+ }
23460
+ },
23461
+ {
23462
+ "name": "focus",
23463
+ "default": "true",
23464
+ "description": "put focus on it (keyboard), or leave it where it is (year buttons)",
23465
+ "type": {
23466
+ "text": "boolean"
23467
+ }
23468
+ }
23469
+ ]
23470
+ },
23471
+ {
23472
+ "kind": "method",
23473
+ "name": "#pick",
23474
+ "privacy": "private",
23475
+ "parameters": [
23476
+ {
23477
+ "name": "month",
23478
+ "type": {
23479
+ "text": "CalendarMonth"
23480
+ }
23481
+ }
23482
+ ]
23483
+ },
23484
+ {
23485
+ "kind": "method",
23486
+ "name": "#onGridKeydown",
23487
+ "privacy": "private",
23488
+ "parameters": [
23489
+ {
23490
+ "name": "event",
23491
+ "type": {
23492
+ "text": "KeyboardEvent"
23493
+ }
23494
+ }
23495
+ ]
23496
+ },
23497
+ {
23498
+ "kind": "method",
23499
+ "name": "#close",
23500
+ "privacy": "private",
23501
+ "parameters": [
23502
+ {
23503
+ "name": "reason",
23504
+ "type": {
23505
+ "text": "string"
23506
+ }
23507
+ }
23508
+ ]
23509
+ },
23510
+ {
23511
+ "kind": "method",
23512
+ "name": "#commit",
23513
+ "privacy": "private",
23514
+ "parameters": [
23515
+ {
23516
+ "name": "iso",
23517
+ "type": {
23518
+ "text": "string | null"
23519
+ }
23520
+ }
23521
+ ]
23522
+ },
23523
+ {
23524
+ "kind": "method",
23525
+ "name": "#commitText",
23526
+ "privacy": "private",
23527
+ "description": "Takes what was typed."
23528
+ },
23529
+ {
23530
+ "type": {
23531
+ "text": "string | null"
23532
+ },
23533
+ "description": "The current month, `yyyy-mm`, or null.",
23534
+ "name": "value",
23535
+ "kind": "field"
23536
+ },
23537
+ {
23538
+ "type": {
23539
+ "text": "((month: string) => boolean) | null"
23540
+ },
23541
+ "description": "Answers true for a `yyyy-mm` month the panel must not offer.",
23542
+ "name": "disabledMonths",
23543
+ "kind": "field"
23544
+ }
23545
+ ],
23546
+ "events": [
23547
+ {
23548
+ "description": "The user typed or picked a month. `detail.value` is the `yyyy-mm` month or null.",
23549
+ "name": "punica-change"
23550
+ },
23551
+ {
23552
+ "description": "The months opened.",
23553
+ "name": "punica-open"
23554
+ },
23555
+ {
23556
+ "description": "The months closed. `detail.reason` is `select`, `escape`, `outside`, `blur` or `api`.",
23557
+ "name": "punica-close"
23558
+ }
23559
+ ],
23560
+ "attributes": [
23561
+ {
23562
+ "type": {
23563
+ "text": "string"
23564
+ },
23565
+ "description": "Default value, `yyyy-mm`.",
23566
+ "name": "value"
23567
+ },
23568
+ {
23569
+ "type": {
23570
+ "text": "string"
23571
+ },
23572
+ "description": "Earliest month allowed, `yyyy-mm`.",
23573
+ "name": "min"
23574
+ },
23575
+ {
23576
+ "type": {
23577
+ "text": "string"
23578
+ },
23579
+ "description": "Latest month allowed, `yyyy-mm`.",
23580
+ "name": "max"
23581
+ },
23582
+ {
23583
+ "type": {
23584
+ "text": "string"
23585
+ },
23586
+ "description": "BCP 47 tag for the display format and the month names; the nearest `lang`, else the browser's, by default.",
23587
+ "name": "locale"
23588
+ },
23589
+ {
23590
+ "type": {
23591
+ "text": "string"
23592
+ },
23593
+ "description": "Text shown while the field is empty.",
23594
+ "name": "placeholder"
23595
+ },
23596
+ {
23597
+ "type": {
23598
+ "text": "string"
23599
+ },
23600
+ "description": "Accessible name.",
23601
+ "name": "label"
23602
+ },
23603
+ {
23604
+ "type": {
23605
+ "text": "boolean"
23606
+ },
23607
+ "description": "The months are showing.",
23608
+ "name": "open"
23609
+ },
23610
+ {
23611
+ "type": {
23612
+ "text": "string"
23613
+ },
23614
+ "description": "Name the value is submitted under.",
23615
+ "name": "name"
23616
+ },
23617
+ {
23618
+ "type": {
23619
+ "text": "boolean"
23620
+ },
23621
+ "description": "Takes no input and submits nothing.",
23622
+ "name": "disabled"
23623
+ },
23624
+ {
23625
+ "type": {
23626
+ "text": "boolean"
23627
+ },
23628
+ "description": "Shows its value and takes no input.",
23629
+ "name": "readonly"
23630
+ },
23631
+ {
23632
+ "type": {
23633
+ "text": "boolean"
23634
+ },
23635
+ "description": "A month is needed before the form submits.",
23636
+ "name": "required"
23637
+ },
23638
+ {
23639
+ "type": {
23640
+ "text": "'small' | 'medium' | 'large'"
23641
+ },
23642
+ "description": "Control height, `medium` by default.",
23643
+ "name": "size"
23644
+ },
23645
+ {
23646
+ "type": {
23647
+ "text": "boolean"
23648
+ },
23649
+ "description": "Fills its container's inline size.",
23650
+ "name": "full-width"
23651
+ },
23652
+ {
23653
+ "type": {
23654
+ "text": "string"
23655
+ },
23656
+ "description": "Name of the months button and of the panel, `Choose month` by default.",
23657
+ "name": "label-toggle"
23658
+ },
23659
+ {
23660
+ "type": {
23661
+ "text": "string"
23662
+ },
23663
+ "description": "Name of the previous-year button, `Previous year` by default.",
23664
+ "name": "label-previous-year"
23665
+ },
23666
+ {
23667
+ "type": {
23668
+ "text": "string"
23669
+ },
23670
+ "description": "Name of the next-year button, `Next year` by default.",
23671
+ "name": "label-next-year"
23672
+ }
23673
+ ],
23674
+ "cssStates": [
23675
+ {
23676
+ "description": "The months are showing.",
23677
+ "name": "open"
23678
+ },
23679
+ {
23680
+ "description": "Disabled by itself or by a fieldset.",
23681
+ "name": "disabled"
23682
+ },
23683
+ {
23684
+ "description": "Invalid after the user touched it.",
23685
+ "name": "user-invalid"
23686
+ }
23687
+ ],
23688
+ "mixins": [
23689
+ {
23690
+ "name": "FormControl",
23691
+ "module": "/src/core/form.js"
23692
+ }
23693
+ ],
23694
+ "superclass": {
23695
+ "name": "PunicaElement",
23696
+ "module": "/src/core/element.js"
23697
+ },
23698
+ "tagName": "punica-month-picker",
23699
+ "customElement": true
23700
+ }
23701
+ ],
23702
+ "exports": [
23703
+ {
23704
+ "kind": "js",
23705
+ "name": "PunicaMonthPicker",
23706
+ "declaration": {
23707
+ "name": "PunicaMonthPicker",
23708
+ "module": "src/components/monthPicker/monthPicker.js"
23709
+ }
23710
+ }
23711
+ ]
23712
+ },
22783
23713
  {
22784
23714
  "kind": "javascript-module",
22785
23715
  "path": "src/components/numberInput/numberInput.js",
@@ -26079,6 +27009,10 @@
26079
27009
  "description": "Font size of the heading.",
26080
27010
  "name": "--punica-section-heading-size"
26081
27011
  },
27012
+ {
27013
+ "description": "Space between the heading and the description.",
27014
+ "name": "--punica-section-heading-gap"
27015
+ },
26082
27016
  {
26083
27017
  "description": "Colour of the divider.",
26084
27018
  "name": "--punica-section-divider-color"
@@ -26344,6 +27278,10 @@
26344
27278
  "description": "Background of the indicator.",
26345
27279
  "name": "--punica-segmented-control-indicator-color"
26346
27280
  },
27281
+ {
27282
+ "description": "`wrap` lets the segments go onto more lines when the bar is narrower than they are; `nowrap` by default.",
27283
+ "name": "--punica-segmented-control-wrap"
27284
+ },
26347
27285
  {
26348
27286
  "description": "Space between the radios.",
26349
27287
  "name": "--punica-radio-group-gap",
@@ -26906,7 +27844,7 @@
26906
27844
  }
26907
27845
  }
26908
27846
  ],
26909
- "description": "The accessible name of a field: its `label`, else the text of the\n`<label>` elements pointing at it.",
27847
+ "description": "The accessible name of a field: its `label`, else its own `aria-label`, else\nthe text of the `<label>` elements pointing at it.",
26910
27848
  "return": {
26911
27849
  "type": {
26912
27850
  "text": "string | null"
@@ -27402,7 +28340,7 @@
27402
28340
  "text": "object"
27403
28341
  },
27404
28342
  "static": true,
27405
- "default": "{ defaultValue: { attribute: 'value', reflect: false }, value: { type: Object, attribute: false }, multiple: { type: Boolean }, placeholder: {}, clearable: { type: Boolean }, label: {}, open: { type: Boolean }, size: {}, fullWidth: { type: Boolean }, labelClear: { default: 'Clear' } }"
28343
+ "default": "{ // A name written on the element the usual way names the control too; `label` wins. ariaLabel: { attribute: 'aria-label', reflect: false }, defaultValue: { attribute: 'value', reflect: false }, value: { type: Object, attribute: false }, multiple: { type: Boolean }, placeholder: {}, clearable: { type: Boolean }, label: {}, /** Read after the name by assistive technology; a punica-field around the control sets it. */ description: {}, open: { type: Boolean }, size: {}, fullWidth: { type: Boolean }, labelClear: { default: 'Clear' } }"
27406
28344
  },
27407
28345
  {
27408
28346
  "kind": "field",
@@ -27426,7 +28364,7 @@
27426
28364
  "kind": "field",
27427
28365
  "name": "template",
27428
28366
  "static": true,
27429
- "default": "` <div part=\"field\" class=\"field\"> <slot name=\"start\"></slot> <button part=\"trigger\" class=\"control\" type=\"button\" role=\"combobox\" aria-haspopup=\"listbox\" aria-controls=\"listbox\" aria-expanded=\"false\"> <span part=\"value\" class=\"value\"></span> <span part=\"caret\" class=\"caret\">${icons.chevronDown}</span> </button> <button part=\"clear\" class=\"icon-button clear\" type=\"button\" hidden>${icons.close}</button> </div> <div part=\"listbox\" id=\"listbox\" class=\"panel listbox\" role=\"listbox\" popover=\"manual\"><slot></slot></div> `"
28367
+ "default": "` <div part=\"field\" class=\"field\"> <slot name=\"start\"></slot> <button part=\"trigger\" class=\"control\" type=\"button\" role=\"combobox\" aria-haspopup=\"listbox\" aria-controls=\"listbox\" aria-expanded=\"false\"> <span class=\"value-box\"><span part=\"value\" class=\"value\"></span><span class=\"sizer\" aria-hidden=\"true\"></span></span> <span part=\"caret\" class=\"caret\">${icons.chevronDown}</span> </button> <button part=\"clear\" class=\"icon-button clear\" type=\"button\" hidden>${icons.close}</button> </div> <div part=\"listbox\" id=\"listbox\" class=\"panel listbox\" role=\"listbox\" popover=\"manual\"><slot></slot></div> `"
27430
28368
  },
27431
28369
  {
27432
28370
  "kind": "field",
@@ -27443,6 +28381,21 @@
27443
28381
  "name": "#valueEl",
27444
28382
  "privacy": "private"
27445
28383
  },
28384
+ {
28385
+ "kind": "field",
28386
+ "name": "#sizer",
28387
+ "privacy": "private"
28388
+ },
28389
+ {
28390
+ "kind": "field",
28391
+ "name": "#sized",
28392
+ "privacy": "private",
28393
+ "type": {
28394
+ "text": "string"
28395
+ },
28396
+ "default": "''",
28397
+ "description": "The texts the sizer holds, serialised."
28398
+ },
27446
28399
  {
27447
28400
  "kind": "field",
27448
28401
  "name": "#clear",
@@ -27737,7 +28690,7 @@
27737
28690
  "type": {
27738
28691
  "text": "string"
27739
28692
  },
27740
- "description": "Text shown while nothing is picked.",
28693
+ "description": "Text shown while nothing is picked. Without one, a single select with no default takes its first enabled option, as a native select does.",
27741
28694
  "name": "placeholder"
27742
28695
  },
27743
28696
  {
@@ -27751,7 +28704,7 @@
27751
28704
  "type": {
27752
28705
  "text": "string"
27753
28706
  },
27754
- "description": "Accessible name.",
28707
+ "description": "Accessible name. An `aria-label` on the element names it too; `label` wins.",
27755
28708
  "name": "label"
27756
28709
  },
27757
28710
  {
@@ -27782,6 +28735,13 @@
27782
28735
  "description": "A value is needed before the form submits.",
27783
28736
  "name": "required"
27784
28737
  },
28738
+ {
28739
+ "type": {
28740
+ "text": "string"
28741
+ },
28742
+ "description": "Read by assistive technology after the control's name; a `punica-field` around it sets it to its help and its error.",
28743
+ "name": "description"
28744
+ },
27785
28745
  {
27786
28746
  "type": {
27787
28747
  "text": "'small' | 'medium' | 'large'"
@@ -27890,6 +28850,10 @@
27890
28850
  "description": "The wrapper around the `media` slot.",
27891
28851
  "name": "media"
27892
28852
  },
28853
+ {
28854
+ "description": "The column of the title, the description and the default slot, beside or under the media.",
28855
+ "name": "body"
28856
+ },
27893
28857
  {
27894
28858
  "description": "The wrapper around the `title` slot.",
27895
28859
  "name": "title"
@@ -27941,7 +28905,7 @@
27941
28905
  "kind": "field",
27942
28906
  "name": "template",
27943
28907
  "static": true,
27944
- "default": "` <div part=\"base\" class=\"base\"> <div part=\"media\" class=\"media\" hidden><slot name=\"media\"></slot></div> <div class=\"body\"> <div part=\"title\" class=\"title\"><slot name=\"title\"></slot></div> <div part=\"description\" class=\"description\"><slot name=\"description\"></slot></div> <slot></slot> </div> <span part=\"indicator\" class=\"indicator\" aria-hidden=\"true\">${icons.check}</span> </div> `"
28908
+ "default": "` <div part=\"base\" class=\"base\"> <div part=\"media\" class=\"media\" hidden><slot name=\"media\"></slot></div> <div part=\"body\" class=\"body\"> <div part=\"title\" class=\"title\"><slot name=\"title\"></slot></div> <div part=\"description\" class=\"description\"><slot name=\"description\"></slot></div> <slot></slot> </div> <span part=\"indicator\" class=\"indicator\" aria-hidden=\"true\">${icons.check}</span> </div> `"
27945
28909
  },
27946
28910
  {
27947
28911
  "kind": "field",
@@ -32833,7 +33797,7 @@
32833
33797
  "text": "object"
32834
33798
  },
32835
33799
  "static": true,
32836
- "default": "{ value: { reflect: false, default: '' }, label: {}, placeholder: {}, rows: { type: Number, default: 3 }, resize: { default: 'none' }, readonly: { type: Boolean }, minlength: { type: Number }, maxlength: { type: Number }, autocomplete: {}, inputmode: {}, fullWidth: { type: Boolean } }"
33800
+ "default": "{ // A name written on the element the usual way names the control too; `label` wins. ariaLabel: { attribute: 'aria-label', reflect: false }, value: { reflect: false, default: '' }, label: {}, /** Read after the name by assistive technology; a punica-field around the control sets it. */ description: {}, placeholder: {}, rows: { type: Number, default: 3 }, resize: { default: 'none' }, readonly: { type: Boolean }, minlength: { type: Number }, maxlength: { type: Number }, autocomplete: {}, inputmode: {}, fullWidth: { type: Boolean } }"
32837
33801
  },
32838
33802
  {
32839
33803
  "kind": "field",
@@ -32991,7 +33955,7 @@
32991
33955
  "type": {
32992
33956
  "text": "string"
32993
33957
  },
32994
- "description": "Accessible name, when no `<label>` points at the field.",
33958
+ "description": "Accessible name, when no `<label>` points at the field. An `aria-label` on the element names it too; `label` wins.",
32995
33959
  "name": "label"
32996
33960
  },
32997
33961
  {
@@ -33036,6 +34000,13 @@
33036
34000
  "description": "A value is needed before the form submits.",
33037
34001
  "name": "required"
33038
34002
  },
34003
+ {
34004
+ "type": {
34005
+ "text": "string"
34006
+ },
34007
+ "description": "Read by assistive technology after the control's name; a `punica-field` around it sets it to its help and its error.",
34008
+ "name": "description"
34009
+ },
33039
34010
  {
33040
34011
  "type": {
33041
34012
  "text": "number"
@@ -34600,7 +35571,7 @@
34600
35571
  "declarations": [
34601
35572
  {
34602
35573
  "kind": "class",
34603
- "description": "The region toasts appear in, at a corner or edge of the viewport.\n\nIt is a `popover=\"manual\"` element, so it sits in the top layer above the\npage, and a polite live region, so a toast added to it is announced. Its\nchildren are `punica-toast` elements; `toast()` adds one to the page's\ntoaster.",
35574
+ "description": "The region toasts appear in, at a corner or edge of the viewport.\n\nIt is a `popover=\"manual\"` element, so it sits in the top layer above the\npage, and a polite live region, so a toast added to it is announced. While\na modal dialog, drawer or sheet is open, the toaster moves into the topmost\none and back when it closes: everything outside a modal is inert and under\nit, so a toast there could not be read above it nor clicked. Its\nchildren are `punica-toast` elements; `toast()` adds one to the page's\ntoaster.",
34604
35575
  "name": "PunicaToaster",
34605
35576
  "cssProperties": [
34606
35577
  {
@@ -34659,6 +35630,16 @@
34659
35630
  "name": "#slot",
34660
35631
  "privacy": "private"
34661
35632
  },
35633
+ {
35634
+ "kind": "field",
35635
+ "name": "#home",
35636
+ "privacy": "private",
35637
+ "type": {
35638
+ "text": "{ parent: Node, next: Node | null } | null"
35639
+ },
35640
+ "default": "null",
35641
+ "description": "Where the toaster stood before it followed a modal surface."
35642
+ },
34662
35643
  {
34663
35644
  "kind": "method",
34664
35645
  "name": "add",
@@ -34690,6 +35671,16 @@
34690
35671
  "kind": "method",
34691
35672
  "name": "connected"
34692
35673
  },
35674
+ {
35675
+ "kind": "method",
35676
+ "name": "disconnected"
35677
+ },
35678
+ {
35679
+ "kind": "method",
35680
+ "name": "#follow",
35681
+ "privacy": "private",
35682
+ "description": "Into the topmost modal surface while one is open; home again when none is."
35683
+ },
34693
35684
  {
34694
35685
  "kind": "method",
34695
35686
  "name": "update"