@cscfi/csc-ui 4.0.0-alpha.26 → 4.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/csc-ui.js +9514 -7086
- package/dist/custom-elements.json +6934 -4840
- package/dist/docs/c-date-picker/usage.md +190 -0
- package/dist/docs/c-number-field/usage.md +82 -0
- package/dist/docs/c-text-field/usage.md +106 -0
- package/dist/docs/c-time-picker/usage.md +143 -0
- package/dist/styles/css/tailwind-theme.css +1 -0
- package/dist/styles/css/tokens.css +10 -0
- package/dist/vscode.css-custom-data.json +140 -0
- package/dist/vscode.html-custom-data.json +302 -1
- package/dist/web-types.json +1132 -130
- package/dist-types/components/c-date-picker/CDatePicker.vue.d.ts +268 -0
- package/dist-types/components/c-date-picker/dates.d.ts +119 -0
- package/dist-types/components/c-number-field/CNumberField.vue.d.ts +153 -0
- package/dist-types/components/c-number-field/numbers.d.ts +42 -0
- package/dist-types/components/c-slider/CSlider.vue.d.ts +2 -2
- package/dist-types/components/c-text-field/CTextField.vue.d.ts +12 -2
- package/dist-types/components/c-time-picker/CTimePicker.vue.d.ts +199 -0
- package/dist-types/components/c-time-picker/times.d.ts +82 -0
- package/dist-types/index.d.ts +3 -0
- package/dist-types/shared/TypedField.vue.d.ts +40 -0
- package/dist-types/shared/inputMask.d.ts +106 -0
- package/dist-types/shared/useAnchoredPanel.d.ts +5 -2
- package/dist-types/shared/useTypedField.d.ts +103 -0
- package/dist-types/tag-name-map.d.ts +300 -2
- package/package.json +1 -1
|
@@ -233,6 +233,99 @@
|
|
|
233
233
|
"name": "::part(pagination)",
|
|
234
234
|
"description": "The pagination bar below the table"
|
|
235
235
|
},
|
|
236
|
+
{
|
|
237
|
+
"name": "::part(input)",
|
|
238
|
+
"description": "The text input; under `range` both the start and the end input"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
"name": "::part(separator)",
|
|
242
|
+
"description": "The dash between the start and end inputs under `range`"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"name": "::part(panel)",
|
|
246
|
+
"description": "The top-layer popover container anchored below the field"
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "::part(card)",
|
|
250
|
+
"description": "The dialog surface inside the panel holding the header and the calendar body"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"name": "::part(heading-row)",
|
|
254
|
+
"description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"name": "::part(heading)",
|
|
258
|
+
"description": "The field label naming the fullscreen panel"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"name": "::part(close)",
|
|
262
|
+
"description": "The close button of the fullscreen panel"
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"name": "::part(header)",
|
|
266
|
+
"description": "The row of month and year controls above the calendar body"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"name": "::part(previous-month)",
|
|
270
|
+
"description": "The arrow to the previous month"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"name": "::part(next-month)",
|
|
274
|
+
"description": "The arrow to the next month"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"name": "::part(month-button)",
|
|
278
|
+
"description": "The button showing the displayed month that opens the month list"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"name": "::part(previous-year)",
|
|
282
|
+
"description": "The arrow to the same month a year earlier"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"name": "::part(next-year)",
|
|
286
|
+
"description": "The arrow to the same month a year later"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"name": "::part(year-button)",
|
|
290
|
+
"description": "The button showing the displayed year that opens the year list"
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
"name": "::part(grid)",
|
|
294
|
+
"description": "The day grid of the displayed month"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"name": "::part(weekday)",
|
|
298
|
+
"description": "A weekday column head in the grid"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"name": "::part(week-number)",
|
|
302
|
+
"description": "An ISO week number beside a grid row (`show-week-numbers`)"
|
|
303
|
+
},
|
|
304
|
+
{ "name": "::part(cell)", "description": "One day's cell in the grid" },
|
|
305
|
+
{
|
|
306
|
+
"name": "::part(day)",
|
|
307
|
+
"description": "The circle showing a day's number inside its cell"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"name": "::part(range-band)",
|
|
311
|
+
"description": "The strip joining a range's days behind their circles"
|
|
312
|
+
},
|
|
313
|
+
{
|
|
314
|
+
"name": "::part(list)",
|
|
315
|
+
"description": "The month or year list swapped in for the grid"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
"name": "::part(option)",
|
|
319
|
+
"description": "One month or year in the list"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
"name": "::part(step-label)",
|
|
323
|
+
"description": "The label above the current list under `type=\"month\"`: month or year, and under `range` start or end"
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"name": "::part(step-summary)",
|
|
327
|
+
"description": "A finished step under `type=\"month\"`, its label and pick; pressing it returns to that step"
|
|
328
|
+
},
|
|
236
329
|
{
|
|
237
330
|
"name": "::part(root)",
|
|
238
331
|
"description": "The separator line element itself"
|
|
@@ -432,6 +525,7 @@
|
|
|
432
525
|
"name": "::part(root)",
|
|
433
526
|
"description": "The inner c-icon-button carrying the menu icon"
|
|
434
527
|
},
|
|
528
|
+
{ "name": "::part(input)", "description": "The text input" },
|
|
435
529
|
{
|
|
436
530
|
"name": "::part(root)",
|
|
437
531
|
"description": "The wrapper laying out the label, the digit inputs and the message"
|
|
@@ -738,6 +832,52 @@
|
|
|
738
832
|
"name": "::part(items)",
|
|
739
833
|
"description": "The wrapping row that lays out the slotted tags"
|
|
740
834
|
},
|
|
835
|
+
{
|
|
836
|
+
"name": "::part(mask-guide)",
|
|
837
|
+
"description": "The faint rest of the input mask, shown behind the typed text"
|
|
838
|
+
},
|
|
839
|
+
{
|
|
840
|
+
"name": "::part(input)",
|
|
841
|
+
"description": "The text input; under `range` both the start and the end input"
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
"name": "::part(separator)",
|
|
845
|
+
"description": "The dash between the start and end inputs under `range`"
|
|
846
|
+
},
|
|
847
|
+
{
|
|
848
|
+
"name": "::part(panel)",
|
|
849
|
+
"description": "The top-layer popover container anchored below the field"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"name": "::part(card)",
|
|
853
|
+
"description": "The dialog surface inside the panel holding the columns"
|
|
854
|
+
},
|
|
855
|
+
{
|
|
856
|
+
"name": "::part(heading-row)",
|
|
857
|
+
"description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
"name": "::part(heading)",
|
|
861
|
+
"description": "The field label naming the fullscreen panel"
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
"name": "::part(close)",
|
|
865
|
+
"description": "The close button of the fullscreen panel"
|
|
866
|
+
},
|
|
867
|
+
{
|
|
868
|
+
"name": "::part(end-switch)",
|
|
869
|
+
"description": "The Start | End switch above the columns under `range`"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"name": "::part(end-tab)",
|
|
873
|
+
"description": "One end's button in the end switch"
|
|
874
|
+
},
|
|
875
|
+
{ "name": "::part(columns)", "description": "The row of time columns" },
|
|
876
|
+
{
|
|
877
|
+
"name": "::part(column)",
|
|
878
|
+
"description": "One time column: hours, minutes or AM/PM"
|
|
879
|
+
},
|
|
880
|
+
{ "name": "::part(option)", "description": "One row of a time column" },
|
|
741
881
|
{
|
|
742
882
|
"name": "::part(root)",
|
|
743
883
|
"description": "The toast's outer box: the inverted-surface pill carrying the shadow"
|
|
@@ -503,6 +503,115 @@
|
|
|
503
503
|
],
|
|
504
504
|
"references": []
|
|
505
505
|
},
|
|
506
|
+
{
|
|
507
|
+
"name": "c-date-picker",
|
|
508
|
+
"description": "A date field that takes a typed date, or opens a calendar panel for picking one, or a start and end date under `range`.\n---\n\n\n### **Events:**\n - **change** - Fired when the value changes — a day or range is picked, typed text is\ncommitted, or the field is cleared — carrying the new value: an ISO\ndate, `{ start, end }` under `range`, or `null`.\n- **change:month** - Fired with the displayed month as `YYYY-MM` whenever it changes, and\nwhen the panel opens — the signal to load that month's `disabled-dates`.\n- **change:text** - Fired on every commit of typed text (Enter or leaving the input) with the\ntext as typed — `{ start, end }` under `range`. Read `badInput` to tell\nwhether it named a date that can be picked.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `change` with the same detail — the `v-model` contract.\n\n### **CSS Parts:**\n - **input** - The text input; under `range` both the start and the end input\n- **separator** - The dash between the start and end inputs under `range`\n- **panel** - The top-layer popover container anchored below the field\n- **card** - The dialog surface inside the panel holding the header and the calendar body\n- **heading-row** - The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button\n- **heading** - The field label naming the fullscreen panel\n- **close** - The close button of the fullscreen panel\n- **header** - The row of month and year controls above the calendar body\n- **previous-month** - The arrow to the previous month\n- **next-month** - The arrow to the next month\n- **month-button** - The button showing the displayed month that opens the month list\n- **previous-year** - The arrow to the same month a year earlier\n- **next-year** - The arrow to the same month a year later\n- **year-button** - The button showing the displayed year that opens the year list\n- **grid** - The day grid of the displayed month\n- **weekday** - A weekday column head in the grid\n- **week-number** - An ISO week number beside a grid row (`show-week-numbers`)\n- **cell** - One day's cell in the grid\n- **day** - The circle showing a day's number inside its cell\n- **range-band** - The strip joining a range's days behind their circles\n- **list** - The month or year list swapped in for the grid\n- **option** - One month or year in the list\n- **step-label** - The label above the current list under `type=\"month\"`: month or year, and under `range` start or end\n- **step-summary** - A finished step under `type=\"month\"`, its label and pick; pressing it returns to that step",
|
|
509
|
+
"attributes": [
|
|
510
|
+
{
|
|
511
|
+
"name": "clearable",
|
|
512
|
+
"description": "Make the value clearable",
|
|
513
|
+
"values": []
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"name": "disabled",
|
|
517
|
+
"description": "Disable the field",
|
|
518
|
+
"values": []
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "error-message",
|
|
522
|
+
"description": "Error message shown in place of the hint while the field is invalid",
|
|
523
|
+
"values": []
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"name": "first-day-of-week",
|
|
527
|
+
"description": "First day of the week in the calendar, numbered like `Date.getDay()`:\n0 = Sunday, 1 = Monday … 6 = Saturday",
|
|
528
|
+
"values": [
|
|
529
|
+
{ "name": "0" },
|
|
530
|
+
{ "name": "1" },
|
|
531
|
+
{ "name": "2" },
|
|
532
|
+
{ "name": "3" },
|
|
533
|
+
{ "name": "4" },
|
|
534
|
+
{ "name": "5" },
|
|
535
|
+
{ "name": "6" }
|
|
536
|
+
]
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
"name": "format",
|
|
540
|
+
"description": "How dates are shown and read from typing: a pattern of the tokens `d`,\n`dd`, `M`, `MM` and `yyyy` with any separators, e.g. `yyyy-MM-dd`",
|
|
541
|
+
"values": []
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"name": "hide-details",
|
|
545
|
+
"description": "Hide the hint and error messages",
|
|
546
|
+
"values": []
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "hint",
|
|
550
|
+
"description": "Hint text for the field",
|
|
551
|
+
"values": []
|
|
552
|
+
},
|
|
553
|
+
{ "name": "host-id", "description": "Id of the element", "values": [] },
|
|
554
|
+
{ "name": "label", "description": "Element label", "values": [] },
|
|
555
|
+
{
|
|
556
|
+
"name": "label-on-top",
|
|
557
|
+
"description": "Label on top of the field",
|
|
558
|
+
"values": []
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"name": "max",
|
|
562
|
+
"description": "The latest date that can be picked or typed, as an ISO date; also bounds\nthe calendar's navigation",
|
|
563
|
+
"values": []
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"name": "min",
|
|
567
|
+
"description": "The earliest date that can be picked or typed, as an ISO date; also\nbounds the calendar's navigation",
|
|
568
|
+
"values": []
|
|
569
|
+
},
|
|
570
|
+
{ "name": "name", "description": "Input field name", "values": [] },
|
|
571
|
+
{
|
|
572
|
+
"name": "placeholder",
|
|
573
|
+
"description": "Placeholder of the input; the `format` pattern when empty",
|
|
574
|
+
"values": []
|
|
575
|
+
},
|
|
576
|
+
{
|
|
577
|
+
"name": "range",
|
|
578
|
+
"description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
|
|
579
|
+
"values": []
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
"name": "required",
|
|
583
|
+
"description": "Set the field as required",
|
|
584
|
+
"values": []
|
|
585
|
+
},
|
|
586
|
+
{ "name": "shadow", "description": "Shadow variant", "values": [] },
|
|
587
|
+
{
|
|
588
|
+
"name": "show-week-numbers",
|
|
589
|
+
"description": "Show ISO 8601 week numbers beside the calendar rows (meaningful with a\nMonday week start)",
|
|
590
|
+
"values": []
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "size",
|
|
594
|
+
"description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
|
|
595
|
+
"values": [{ "name": "default" }, { "name": "small" }]
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "type",
|
|
599
|
+
"description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
|
|
600
|
+
"values": [{ "name": "date" }, { "name": "month" }]
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"name": "valid",
|
|
604
|
+
"description": "Set the validity of the field",
|
|
605
|
+
"values": []
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "value",
|
|
609
|
+
"description": "The date as an ISO `YYYY-MM-DD` string (an ISO `YYYY-MM` month under\n`type=\"month\"`), or `{ start, end }` under `range`; `null` when empty",
|
|
610
|
+
"values": [{ "name": "CDatePickerValue" }]
|
|
611
|
+
}
|
|
612
|
+
],
|
|
613
|
+
"references": []
|
|
614
|
+
},
|
|
506
615
|
{
|
|
507
616
|
"name": "c-divider",
|
|
508
617
|
"description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The separator line element itself",
|
|
@@ -1086,6 +1195,102 @@
|
|
|
1086
1195
|
"attributes": [],
|
|
1087
1196
|
"references": []
|
|
1088
1197
|
},
|
|
1198
|
+
{
|
|
1199
|
+
"name": "c-number-field",
|
|
1200
|
+
"description": "A field for a number — an integer, or one with decimals — shown with thousands separators as it is typed.\n---\n\n\n### **Events:**\n - **change** - Fired whenever typing changes the number, carrying it — `null` once the\nfield holds no digit. Not fired when only the text changes (a group\nseparator, a trailing decimal separator) or when `value` is set.\n- **input** - Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works. No detail.\n- **update:value** - v-model contract event, fired with `change`.\n\n### **Slots:**\n - **pre** - Content before the number, such as a currency sign\n- **post** - Content after the number, such as a unit\n\n### **CSS Parts:**\n - **input** - The text input",
|
|
1201
|
+
"attributes": [
|
|
1202
|
+
{
|
|
1203
|
+
"name": "decimals",
|
|
1204
|
+
"description": "The most fraction digits the field takes; `0` makes it an integer field",
|
|
1205
|
+
"values": []
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"name": "decimal-separator",
|
|
1209
|
+
"description": "The decimal separator. Empty follows the page's `lang` (`,` for `fi`, `.` for `en`)",
|
|
1210
|
+
"values": []
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
"name": "disabled",
|
|
1214
|
+
"description": "Disable the field",
|
|
1215
|
+
"values": []
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"name": "error-message",
|
|
1219
|
+
"description": "Error message shown in place of the hint while the field is invalid",
|
|
1220
|
+
"values": []
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"name": "fixed-decimals",
|
|
1224
|
+
"description": "Pad the fraction to exactly `decimals` digits when the field is left (`12,5` → `12,50`)",
|
|
1225
|
+
"values": []
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"name": "group-separator",
|
|
1229
|
+
"description": "The thousands separator. Empty follows the page's `lang` (a space for `fi`, `,` for `en`)",
|
|
1230
|
+
"values": []
|
|
1231
|
+
},
|
|
1232
|
+
{
|
|
1233
|
+
"name": "hide-details",
|
|
1234
|
+
"description": "Hide the hint and error messages",
|
|
1235
|
+
"values": []
|
|
1236
|
+
},
|
|
1237
|
+
{
|
|
1238
|
+
"name": "hint",
|
|
1239
|
+
"description": "Hint text for the field",
|
|
1240
|
+
"values": []
|
|
1241
|
+
},
|
|
1242
|
+
{ "name": "host-id", "description": "Id of the input", "values": [] },
|
|
1243
|
+
{ "name": "label", "description": "Label of the field", "values": [] },
|
|
1244
|
+
{
|
|
1245
|
+
"name": "label-on-top",
|
|
1246
|
+
"description": "Label on top of the field",
|
|
1247
|
+
"values": []
|
|
1248
|
+
},
|
|
1249
|
+
{
|
|
1250
|
+
"name": "max",
|
|
1251
|
+
"description": "The largest number in range; a larger one is kept and reported as out of range",
|
|
1252
|
+
"values": []
|
|
1253
|
+
},
|
|
1254
|
+
{
|
|
1255
|
+
"name": "min",
|
|
1256
|
+
"description": "The smallest number in range; a smaller one is kept and reported as out of range. At `0` or above, the minus key is ignored",
|
|
1257
|
+
"values": []
|
|
1258
|
+
},
|
|
1259
|
+
{ "name": "name", "description": "Name of the input", "values": [] },
|
|
1260
|
+
{
|
|
1261
|
+
"name": "placeholder",
|
|
1262
|
+
"description": "Placeholder of the input",
|
|
1263
|
+
"values": []
|
|
1264
|
+
},
|
|
1265
|
+
{ "name": "readonly", "description": "Mark as readonly", "values": [] },
|
|
1266
|
+
{
|
|
1267
|
+
"name": "required",
|
|
1268
|
+
"description": "Set the field as required",
|
|
1269
|
+
"values": []
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"name": "shadow",
|
|
1273
|
+
"description": "Shadow variant of the field",
|
|
1274
|
+
"values": []
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"name": "size",
|
|
1278
|
+
"description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
|
|
1279
|
+
"values": [{ "name": "default" }, { "name": "small" }]
|
|
1280
|
+
},
|
|
1281
|
+
{
|
|
1282
|
+
"name": "valid",
|
|
1283
|
+
"description": "Set the validity of the field",
|
|
1284
|
+
"values": []
|
|
1285
|
+
},
|
|
1286
|
+
{
|
|
1287
|
+
"name": "value",
|
|
1288
|
+
"description": "The number, or `null` when the field is empty. A string is read as the number it spells, and `''` as empty — what an attribute, or a plain `v-model` holding `null`, writes; the field always emits a number or `null`",
|
|
1289
|
+
"values": []
|
|
1290
|
+
}
|
|
1291
|
+
],
|
|
1292
|
+
"references": []
|
|
1293
|
+
},
|
|
1089
1294
|
{
|
|
1090
1295
|
"name": "c-option",
|
|
1091
1296
|
"description": "\n---\n\n\n### **Slots:**\n - **default** - The option's content, rendered in the list row; wrap the label text in c-option-value when the option carries more than its label",
|
|
@@ -1836,7 +2041,7 @@
|
|
|
1836
2041
|
},
|
|
1837
2042
|
{
|
|
1838
2043
|
"name": "c-text-field",
|
|
1839
|
-
"description": "
|
|
2044
|
+
"description": "A text field for a single line of text, or several lines under `rows`, with a label, a hint and an error message.\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\ninner input/textarea fires its native change (which does not cross the\nshadow boundary). No detail; read the current text from the host's\n`value` property.\n- **changeValue** - Fired on every keystroke (and on native change), carrying the current\ntext — trimmed when `trim-whitespace` is set. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on every keystroke (and on native change),\ncarrying the current text — trimmed when `trim-whitespace` is set.\n\n### **Slots:**\n - **pre** - Content added before the input\n- **post** - Content added after the input\n\n### **CSS Parts:**\n - **mask-guide** - The faint rest of the input mask, shown behind the typed text",
|
|
1840
2045
|
"attributes": [
|
|
1841
2046
|
{
|
|
1842
2047
|
"name": "autocomplete",
|
|
@@ -1887,6 +2092,11 @@
|
|
|
1887
2092
|
"description": "Label on top of the input",
|
|
1888
2093
|
"values": []
|
|
1889
2094
|
},
|
|
2095
|
+
{
|
|
2096
|
+
"name": "mask",
|
|
2097
|
+
"description": "Input mask the typed text follows: `#` a digit, `A` a letter, `*` a letter or a digit, `\\` escapes the next character, `[…]` wraps a trailing optional section, anything else is a literal. Applies to a single-line `text`, `tel` or `search` field",
|
|
2098
|
+
"values": []
|
|
2099
|
+
},
|
|
1890
2100
|
{
|
|
1891
2101
|
"name": "max",
|
|
1892
2102
|
"description": "Maximum value on a numeric input",
|
|
@@ -1953,6 +2163,97 @@
|
|
|
1953
2163
|
],
|
|
1954
2164
|
"references": []
|
|
1955
2165
|
},
|
|
2166
|
+
{
|
|
2167
|
+
"name": "c-time-picker",
|
|
2168
|
+
"description": "A time field that takes a typed time, or opens hour and minute columns for picking one, or a start and end time under `range`.\n---\n\n\n### **Events:**\n - **change** - Fired when the value changes — a row is picked or moved to in a column,\ntyped text is committed, or the field is cleared — carrying the new\nvalue: an ISO `HH:mm` time, `{ start, end }` under `range`, or `null`.\n- **change:text** - Fired on every commit of typed text (Enter or leaving the input) with the\ntext as typed — `{ start, end }` under `range`. Read `badInput` to tell\nwhether it named a time that can be picked.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `change` with the same detail — the `v-model` contract.\n\n### **CSS Parts:**\n - **input** - The text input; under `range` both the start and the end input\n- **separator** - The dash between the start and end inputs under `range`\n- **panel** - The top-layer popover container anchored below the field\n- **card** - The dialog surface inside the panel holding the columns\n- **heading-row** - The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button\n- **heading** - The field label naming the fullscreen panel\n- **close** - The close button of the fullscreen panel\n- **end-switch** - The Start | End switch above the columns under `range`\n- **end-tab** - One end's button in the end switch\n- **columns** - The row of time columns\n- **column** - One time column: hours, minutes or AM/PM\n- **option** - One row of a time column",
|
|
2169
|
+
"attributes": [
|
|
2170
|
+
{
|
|
2171
|
+
"name": "clearable",
|
|
2172
|
+
"description": "Make the value clearable",
|
|
2173
|
+
"values": []
|
|
2174
|
+
},
|
|
2175
|
+
{
|
|
2176
|
+
"name": "disabled",
|
|
2177
|
+
"description": "Disable the field",
|
|
2178
|
+
"values": []
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
"name": "error-message",
|
|
2182
|
+
"description": "Error message shown in place of the hint while the field is invalid",
|
|
2183
|
+
"values": []
|
|
2184
|
+
},
|
|
2185
|
+
{
|
|
2186
|
+
"name": "format",
|
|
2187
|
+
"description": "How times are shown and read from typing: a pattern of the tokens `H`,\n`HH` (24-hour), `h`, `hh` (12-hour, with the period `a`) and `mm` with\nany separators, e.g. `HH:mm` or `h:mm a`",
|
|
2188
|
+
"values": []
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"name": "hide-details",
|
|
2192
|
+
"description": "Hide the hint and error messages",
|
|
2193
|
+
"values": []
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
"name": "hint",
|
|
2197
|
+
"description": "Hint text for the field",
|
|
2198
|
+
"values": []
|
|
2199
|
+
},
|
|
2200
|
+
{ "name": "host-id", "description": "Id of the element", "values": [] },
|
|
2201
|
+
{ "name": "label", "description": "Element label", "values": [] },
|
|
2202
|
+
{
|
|
2203
|
+
"name": "label-on-top",
|
|
2204
|
+
"description": "Label on top of the field",
|
|
2205
|
+
"values": []
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
"name": "max",
|
|
2209
|
+
"description": "The latest time that can be picked or typed, as an ISO `HH:mm` time",
|
|
2210
|
+
"values": []
|
|
2211
|
+
},
|
|
2212
|
+
{
|
|
2213
|
+
"name": "min",
|
|
2214
|
+
"description": "The earliest time that can be picked or typed, as an ISO `HH:mm` time;\na `min` after `max` is invalid and both are ignored",
|
|
2215
|
+
"values": []
|
|
2216
|
+
},
|
|
2217
|
+
{
|
|
2218
|
+
"name": "minute-step",
|
|
2219
|
+
"description": "Minutes between the minute column's rows; typed times need not fall on\nthe step",
|
|
2220
|
+
"values": []
|
|
2221
|
+
},
|
|
2222
|
+
{ "name": "name", "description": "Input field name", "values": [] },
|
|
2223
|
+
{
|
|
2224
|
+
"name": "placeholder",
|
|
2225
|
+
"description": "Placeholder of the input; the `format` pattern when empty",
|
|
2226
|
+
"values": []
|
|
2227
|
+
},
|
|
2228
|
+
{
|
|
2229
|
+
"name": "range",
|
|
2230
|
+
"description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
|
|
2231
|
+
"values": []
|
|
2232
|
+
},
|
|
2233
|
+
{
|
|
2234
|
+
"name": "required",
|
|
2235
|
+
"description": "Set the field as required",
|
|
2236
|
+
"values": []
|
|
2237
|
+
},
|
|
2238
|
+
{ "name": "shadow", "description": "Shadow variant", "values": [] },
|
|
2239
|
+
{
|
|
2240
|
+
"name": "size",
|
|
2241
|
+
"description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
|
|
2242
|
+
"values": [{ "name": "default" }, { "name": "small" }]
|
|
2243
|
+
},
|
|
2244
|
+
{
|
|
2245
|
+
"name": "valid",
|
|
2246
|
+
"description": "Set the validity of the field",
|
|
2247
|
+
"values": []
|
|
2248
|
+
},
|
|
2249
|
+
{
|
|
2250
|
+
"name": "value",
|
|
2251
|
+
"description": "The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\nunder `range`; `null` when empty",
|
|
2252
|
+
"values": [{ "name": "CTimePickerValue" }]
|
|
2253
|
+
}
|
|
2254
|
+
],
|
|
2255
|
+
"references": []
|
|
2256
|
+
},
|
|
1956
2257
|
{
|
|
1957
2258
|
"name": "c-toast",
|
|
1958
2259
|
"description": "A single toast notification, rendered and managed by c-toasts\n---\n\n\n### **Events:**\n - **close** - Fired once the toast's leave transition has finished (after a manual\ndismiss or the auto-close timer), carrying the dismissed toast's message\nobject.\n\n### **Slots:**\n - **default** - Custom toast content, shown when the message is flagged `custom`\n\n### **CSS Parts:**\n - **root** - The toast's outer box: the inverted-surface pill carrying the shadow\n- **custom** - Wrapper shown for custom messages in place of the standard item layout\n- **content** - The message body holding the title and text, or the slotted custom content\n- **item** - Row layout of a standard toast: status badge, message body and dismiss button\n- **badge** - The circular tinted badge holding the status icon\n- **dismiss** - The dismiss button (icon-only, or labelled when the message sets `closeText`)\n- **progress** - The track of the auto-close progress bar",
|