@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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@cscfi/csc-ui",
4
- "version": "4.0.0-alpha.26",
4
+ "version": "4.0.0-alpha.28",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1443,6 +1443,312 @@
1443
1443
  ]
1444
1444
  }
1445
1445
  },
1446
+ {
1447
+ "name": "c-date-picker",
1448
+ "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",
1449
+ "doc-url": "",
1450
+ "attributes": [
1451
+ {
1452
+ "name": "clearable",
1453
+ "description": "Make the value clearable",
1454
+ "value": { "type": "boolean", "default": "false" }
1455
+ },
1456
+ {
1457
+ "name": "disabled",
1458
+ "description": "Disable the field",
1459
+ "value": { "type": "boolean", "default": "false" }
1460
+ },
1461
+ {
1462
+ "name": "error-message",
1463
+ "description": "Error message shown in place of the hint while the field is invalid",
1464
+ "value": { "type": "string", "default": "''" }
1465
+ },
1466
+ {
1467
+ "name": "first-day-of-week",
1468
+ "description": "First day of the week in the calendar, numbered like `Date.getDay()`:\n0 = Sunday, 1 = Monday … 6 = Saturday",
1469
+ "value": { "type": "0 | 1 | 2 | 3 | 4 | 5 | 6", "default": "1" }
1470
+ },
1471
+ {
1472
+ "name": "format",
1473
+ "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`",
1474
+ "value": { "type": "string", "default": "'dd.MM.yyyy'" }
1475
+ },
1476
+ {
1477
+ "name": "hide-details",
1478
+ "description": "Hide the hint and error messages",
1479
+ "value": { "type": "boolean", "default": "false" }
1480
+ },
1481
+ {
1482
+ "name": "hint",
1483
+ "description": "Hint text for the field",
1484
+ "value": { "type": "string", "default": "''" }
1485
+ },
1486
+ {
1487
+ "name": "host-id",
1488
+ "description": "Id of the element",
1489
+ "value": { "type": "string", "default": "''" }
1490
+ },
1491
+ {
1492
+ "name": "label",
1493
+ "description": "Element label",
1494
+ "value": { "type": "string", "default": "''" }
1495
+ },
1496
+ {
1497
+ "name": "label-on-top",
1498
+ "description": "Label on top of the field",
1499
+ "value": { "type": "boolean", "default": "false" }
1500
+ },
1501
+ {
1502
+ "name": "max",
1503
+ "description": "The latest date that can be picked or typed, as an ISO date; also bounds\nthe calendar's navigation",
1504
+ "value": { "type": "string", "default": "''" }
1505
+ },
1506
+ {
1507
+ "name": "min",
1508
+ "description": "The earliest date that can be picked or typed, as an ISO date; also\nbounds the calendar's navigation",
1509
+ "value": { "type": "string", "default": "''" }
1510
+ },
1511
+ {
1512
+ "name": "name",
1513
+ "description": "Input field name",
1514
+ "value": { "type": "string", "default": "''" }
1515
+ },
1516
+ {
1517
+ "name": "placeholder",
1518
+ "description": "Placeholder of the input; the `format` pattern when empty",
1519
+ "value": { "type": "string", "default": "''" }
1520
+ },
1521
+ {
1522
+ "name": "range",
1523
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
1524
+ "value": { "type": "boolean", "default": "false" }
1525
+ },
1526
+ {
1527
+ "name": "required",
1528
+ "description": "Set the field as required",
1529
+ "value": { "type": "boolean", "default": "false" }
1530
+ },
1531
+ {
1532
+ "name": "shadow",
1533
+ "description": "Shadow variant",
1534
+ "value": { "type": "boolean", "default": "false" }
1535
+ },
1536
+ {
1537
+ "name": "show-week-numbers",
1538
+ "description": "Show ISO 8601 week numbers beside the calendar rows (meaningful with a\nMonday week start)",
1539
+ "value": { "type": "boolean", "default": "false" }
1540
+ },
1541
+ {
1542
+ "name": "size",
1543
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
1544
+ "value": { "type": "'default' | 'small'", "default": "'default'" }
1545
+ },
1546
+ {
1547
+ "name": "type",
1548
+ "description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
1549
+ "value": { "type": "'date' | 'month'", "default": "'date'" }
1550
+ },
1551
+ {
1552
+ "name": "valid",
1553
+ "description": "Set the validity of the field",
1554
+ "value": { "type": "boolean", "default": "true" }
1555
+ },
1556
+ {
1557
+ "name": "value",
1558
+ "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",
1559
+ "value": { "type": "CDatePickerValue", "default": "null" }
1560
+ }
1561
+ ],
1562
+ "slots": [],
1563
+ "events": [
1564
+ {
1565
+ "name": "change",
1566
+ "type": "CustomEvent<CDatePickerValue>",
1567
+ "description": "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`."
1568
+ },
1569
+ {
1570
+ "name": "change:month",
1571
+ "type": "CustomEvent<string>",
1572
+ "description": "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`."
1573
+ },
1574
+ {
1575
+ "name": "change:text",
1576
+ "type": "CustomEvent<CDatePickerText>",
1577
+ "description": "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."
1578
+ },
1579
+ {
1580
+ "name": "input",
1581
+ "type": "CustomEvent<void>",
1582
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
1583
+ },
1584
+ {
1585
+ "name": "update:value",
1586
+ "type": "CustomEvent<CDatePickerValue>",
1587
+ "description": "Fired alongside `change` with the same detail — the `v-model` contract."
1588
+ }
1589
+ ],
1590
+ "js": {
1591
+ "properties": [
1592
+ {
1593
+ "name": "clearable",
1594
+ "description": "Make the value clearable",
1595
+ "type": "boolean"
1596
+ },
1597
+ {
1598
+ "name": "disabled",
1599
+ "description": "Disable the field",
1600
+ "type": "boolean"
1601
+ },
1602
+ {
1603
+ "name": "disabledDates",
1604
+ "description": "Dates that cannot be picked: ISO dates and inclusive `{ start, end }`\nspans. Arrays have no attribute form — bind as a DOM property",
1605
+ "type": "CDatePickerDisabledDate[]"
1606
+ },
1607
+ {
1608
+ "name": "errorMessage",
1609
+ "description": "Error message shown in place of the hint while the field is invalid",
1610
+ "type": "string"
1611
+ },
1612
+ {
1613
+ "name": "firstDayOfWeek",
1614
+ "description": "First day of the week in the calendar, numbered like `Date.getDay()`:\n0 = Sunday, 1 = Monday … 6 = Saturday",
1615
+ "type": "0 | 1 | 2 | 3 | 4 | 5 | 6"
1616
+ },
1617
+ {
1618
+ "name": "format",
1619
+ "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`",
1620
+ "type": "string"
1621
+ },
1622
+ {
1623
+ "name": "hideDetails",
1624
+ "description": "Hide the hint and error messages",
1625
+ "type": "boolean"
1626
+ },
1627
+ {
1628
+ "name": "hint",
1629
+ "description": "Hint text for the field",
1630
+ "type": "string"
1631
+ },
1632
+ {
1633
+ "name": "hostId",
1634
+ "description": "Id of the element",
1635
+ "type": "string"
1636
+ },
1637
+ {
1638
+ "name": "isDateDisabled",
1639
+ "description": "Predicate for dates that cannot be picked (weekends, say); receives an\nISO date. Functions have no attribute form — bind as a DOM property",
1640
+ "type": "(iso: string) => boolean"
1641
+ },
1642
+ {
1643
+ "name": "label",
1644
+ "description": "Element label",
1645
+ "type": "string"
1646
+ },
1647
+ {
1648
+ "name": "labelOnTop",
1649
+ "description": "Label on top of the field",
1650
+ "type": "boolean"
1651
+ },
1652
+ {
1653
+ "name": "max",
1654
+ "description": "The latest date that can be picked or typed, as an ISO date; also bounds\nthe calendar's navigation",
1655
+ "type": "string"
1656
+ },
1657
+ {
1658
+ "name": "min",
1659
+ "description": "The earliest date that can be picked or typed, as an ISO date; also\nbounds the calendar's navigation",
1660
+ "type": "string"
1661
+ },
1662
+ {
1663
+ "name": "name",
1664
+ "description": "Input field name",
1665
+ "type": "string"
1666
+ },
1667
+ {
1668
+ "name": "placeholder",
1669
+ "description": "Placeholder of the input; the `format` pattern when empty",
1670
+ "type": "string"
1671
+ },
1672
+ {
1673
+ "name": "range",
1674
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
1675
+ "type": "boolean"
1676
+ },
1677
+ {
1678
+ "name": "required",
1679
+ "description": "Set the field as required",
1680
+ "type": "boolean"
1681
+ },
1682
+ {
1683
+ "name": "shadow",
1684
+ "description": "Shadow variant",
1685
+ "type": "boolean"
1686
+ },
1687
+ {
1688
+ "name": "showWeekNumbers",
1689
+ "description": "Show ISO 8601 week numbers beside the calendar rows (meaningful with a\nMonday week start)",
1690
+ "type": "boolean"
1691
+ },
1692
+ {
1693
+ "name": "size",
1694
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
1695
+ "type": "'default' | 'small'"
1696
+ },
1697
+ {
1698
+ "name": "texts",
1699
+ "description": "UI text overrides (i18n), merged over the names `Intl` gives for the\npage's `lang` and the English defaults. Objects have no attribute form —\nbind as a DOM property",
1700
+ "type": "CDatePickerTexts"
1701
+ },
1702
+ {
1703
+ "name": "type",
1704
+ "description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
1705
+ "type": "'date' | 'month'"
1706
+ },
1707
+ {
1708
+ "name": "valid",
1709
+ "description": "Set the validity of the field",
1710
+ "type": "boolean"
1711
+ },
1712
+ {
1713
+ "name": "value",
1714
+ "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",
1715
+ "type": "CDatePickerValue"
1716
+ },
1717
+ {
1718
+ "name": "badInput",
1719
+ "description": "Whether the committed text names no date that can be picked — the value is then `null` (CONTEXT.md \"Bad input\").",
1720
+ "type": "boolean"
1721
+ }
1722
+ ],
1723
+ "events": [
1724
+ {
1725
+ "name": "change",
1726
+ "type": "CustomEvent<CDatePickerValue>",
1727
+ "description": "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`."
1728
+ },
1729
+ {
1730
+ "name": "change:month",
1731
+ "type": "CustomEvent<string>",
1732
+ "description": "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`."
1733
+ },
1734
+ {
1735
+ "name": "change:text",
1736
+ "type": "CustomEvent<CDatePickerText>",
1737
+ "description": "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."
1738
+ },
1739
+ {
1740
+ "name": "input",
1741
+ "type": "CustomEvent<void>",
1742
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
1743
+ },
1744
+ {
1745
+ "name": "update:value",
1746
+ "type": "CustomEvent<CDatePickerValue>",
1747
+ "description": "Fired alongside `change` with the same detail — the `v-model` contract."
1748
+ }
1749
+ ]
1750
+ }
1751
+ },
1446
1752
  {
1447
1753
  "name": "c-divider",
1448
1754
  "description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The separator line element itself",
@@ -2827,24 +3133,294 @@
2827
3133
  "js": { "properties": [], "events": [] }
2828
3134
  },
2829
3135
  {
2830
- "name": "c-option",
2831
- "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",
3136
+ "name": "c-number-field",
3137
+ "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",
2832
3138
  "doc-url": "",
2833
3139
  "attributes": [
2834
3140
  {
2835
- "name": "disabled",
2836
- "description": "Set option as disabled",
2837
- "value": { "type": "boolean", "default": "false" }
3141
+ "name": "decimals",
3142
+ "description": "The most fraction digits the field takes; `0` makes it an integer field",
3143
+ "value": { "type": "number", "default": "0" }
2838
3144
  },
2839
3145
  {
2840
- "name": "name",
2841
- "description": "Option name (display label fallback)",
2842
- "value": { "type": "string" }
3146
+ "name": "decimal-separator",
3147
+ "description": "The decimal separator. Empty follows the page's `lang` (`,` for `fi`, `.` for `en`)",
3148
+ "value": { "type": "string", "default": "''" }
2843
3149
  },
2844
3150
  {
2845
- "name": "selected",
2846
- "description": "Set option as selected",
2847
- "value": { "type": "boolean", "default": "false" }
3151
+ "name": "disabled",
3152
+ "description": "Disable the field",
3153
+ "value": { "type": "boolean", "default": "false" }
3154
+ },
3155
+ {
3156
+ "name": "error-message",
3157
+ "description": "Error message shown in place of the hint while the field is invalid",
3158
+ "value": { "type": "string", "default": "''" }
3159
+ },
3160
+ {
3161
+ "name": "fixed-decimals",
3162
+ "description": "Pad the fraction to exactly `decimals` digits when the field is left (`12,5` → `12,50`)",
3163
+ "value": { "type": "boolean", "default": "false" }
3164
+ },
3165
+ {
3166
+ "name": "group-separator",
3167
+ "description": "The thousands separator. Empty follows the page's `lang` (a space for `fi`, `,` for `en`)",
3168
+ "value": { "type": "string", "default": "''" }
3169
+ },
3170
+ {
3171
+ "name": "hide-details",
3172
+ "description": "Hide the hint and error messages",
3173
+ "value": { "type": "boolean", "default": "false" }
3174
+ },
3175
+ {
3176
+ "name": "hint",
3177
+ "description": "Hint text for the field",
3178
+ "value": { "type": "string", "default": "''" }
3179
+ },
3180
+ {
3181
+ "name": "host-id",
3182
+ "description": "Id of the input",
3183
+ "value": { "type": "string", "default": "''" }
3184
+ },
3185
+ {
3186
+ "name": "label",
3187
+ "description": "Label of the field",
3188
+ "value": { "type": "string", "default": "''" }
3189
+ },
3190
+ {
3191
+ "name": "label-on-top",
3192
+ "description": "Label on top of the field",
3193
+ "value": { "type": "boolean", "default": "false" }
3194
+ },
3195
+ {
3196
+ "name": "max",
3197
+ "description": "The largest number in range; a larger one is kept and reported as out of range",
3198
+ "value": { "type": "null | number", "default": "null" }
3199
+ },
3200
+ {
3201
+ "name": "min",
3202
+ "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",
3203
+ "value": { "type": "null | number", "default": "null" }
3204
+ },
3205
+ {
3206
+ "name": "name",
3207
+ "description": "Name of the input",
3208
+ "value": { "type": "string", "default": "''" }
3209
+ },
3210
+ {
3211
+ "name": "placeholder",
3212
+ "description": "Placeholder of the input",
3213
+ "value": { "type": "string", "default": "''" }
3214
+ },
3215
+ {
3216
+ "name": "readonly",
3217
+ "description": "Mark as readonly",
3218
+ "value": { "type": "boolean", "default": "false" }
3219
+ },
3220
+ {
3221
+ "name": "required",
3222
+ "description": "Set the field as required",
3223
+ "value": { "type": "boolean", "default": "false" }
3224
+ },
3225
+ {
3226
+ "name": "shadow",
3227
+ "description": "Shadow variant of the field",
3228
+ "value": { "type": "boolean", "default": "false" }
3229
+ },
3230
+ {
3231
+ "name": "size",
3232
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
3233
+ "value": { "type": "'default' | 'small'", "default": "'default'" }
3234
+ },
3235
+ {
3236
+ "name": "valid",
3237
+ "description": "Set the validity of the field",
3238
+ "value": { "type": "boolean", "default": "true" }
3239
+ },
3240
+ {
3241
+ "name": "value",
3242
+ "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`",
3243
+ "value": { "type": "null | number | string", "default": "null" }
3244
+ }
3245
+ ],
3246
+ "slots": [
3247
+ {
3248
+ "name": "pre",
3249
+ "description": "Content before the number, such as a currency sign"
3250
+ },
3251
+ {
3252
+ "name": "post",
3253
+ "description": "Content after the number, such as a unit"
3254
+ }
3255
+ ],
3256
+ "events": [
3257
+ {
3258
+ "name": "change",
3259
+ "type": "CustomEvent<null | number>",
3260
+ "description": "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."
3261
+ },
3262
+ {
3263
+ "name": "input",
3264
+ "type": "CustomEvent<void>",
3265
+ "description": "Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works. No detail."
3266
+ },
3267
+ {
3268
+ "name": "update:value",
3269
+ "type": "CustomEvent<null | number>",
3270
+ "description": "v-model contract event, fired with `change`."
3271
+ }
3272
+ ],
3273
+ "js": {
3274
+ "properties": [
3275
+ {
3276
+ "name": "decimals",
3277
+ "description": "The most fraction digits the field takes; `0` makes it an integer field",
3278
+ "type": "number"
3279
+ },
3280
+ {
3281
+ "name": "decimalSeparator",
3282
+ "description": "The decimal separator. Empty follows the page's `lang` (`,` for `fi`, `.` for `en`)",
3283
+ "type": "string"
3284
+ },
3285
+ {
3286
+ "name": "disabled",
3287
+ "description": "Disable the field",
3288
+ "type": "boolean"
3289
+ },
3290
+ {
3291
+ "name": "errorMessage",
3292
+ "description": "Error message shown in place of the hint while the field is invalid",
3293
+ "type": "string"
3294
+ },
3295
+ {
3296
+ "name": "fixedDecimals",
3297
+ "description": "Pad the fraction to exactly `decimals` digits when the field is left (`12,5` → `12,50`)",
3298
+ "type": "boolean"
3299
+ },
3300
+ {
3301
+ "name": "groupSeparator",
3302
+ "description": "The thousands separator. Empty follows the page's `lang` (a space for `fi`, `,` for `en`)",
3303
+ "type": "string"
3304
+ },
3305
+ {
3306
+ "name": "hideDetails",
3307
+ "description": "Hide the hint and error messages",
3308
+ "type": "boolean"
3309
+ },
3310
+ {
3311
+ "name": "hint",
3312
+ "description": "Hint text for the field",
3313
+ "type": "string"
3314
+ },
3315
+ {
3316
+ "name": "hostId",
3317
+ "description": "Id of the input",
3318
+ "type": "string"
3319
+ },
3320
+ {
3321
+ "name": "label",
3322
+ "description": "Label of the field",
3323
+ "type": "string"
3324
+ },
3325
+ {
3326
+ "name": "labelOnTop",
3327
+ "description": "Label on top of the field",
3328
+ "type": "boolean"
3329
+ },
3330
+ {
3331
+ "name": "max",
3332
+ "description": "The largest number in range; a larger one is kept and reported as out of range",
3333
+ "type": "null | number"
3334
+ },
3335
+ {
3336
+ "name": "min",
3337
+ "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",
3338
+ "type": "null | number"
3339
+ },
3340
+ {
3341
+ "name": "name",
3342
+ "description": "Name of the input",
3343
+ "type": "string"
3344
+ },
3345
+ {
3346
+ "name": "placeholder",
3347
+ "description": "Placeholder of the input",
3348
+ "type": "string"
3349
+ },
3350
+ {
3351
+ "name": "readonly",
3352
+ "description": "Mark as readonly",
3353
+ "type": "boolean"
3354
+ },
3355
+ {
3356
+ "name": "required",
3357
+ "description": "Set the field as required",
3358
+ "type": "boolean"
3359
+ },
3360
+ {
3361
+ "name": "shadow",
3362
+ "description": "Shadow variant of the field",
3363
+ "type": "boolean"
3364
+ },
3365
+ {
3366
+ "name": "size",
3367
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
3368
+ "type": "'default' | 'small'"
3369
+ },
3370
+ {
3371
+ "name": "valid",
3372
+ "description": "Set the validity of the field",
3373
+ "type": "boolean"
3374
+ },
3375
+ {
3376
+ "name": "value",
3377
+ "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`",
3378
+ "type": "null | number | string"
3379
+ },
3380
+ {
3381
+ "name": "outOfRange",
3382
+ "description": "Whether the number is below `min` or above `max` (CONTEXT.md \"Out of range\")",
3383
+ "type": "boolean"
3384
+ }
3385
+ ],
3386
+ "events": [
3387
+ {
3388
+ "name": "change",
3389
+ "type": "CustomEvent<null | number>",
3390
+ "description": "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."
3391
+ },
3392
+ {
3393
+ "name": "input",
3394
+ "type": "CustomEvent<void>",
3395
+ "description": "Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works. No detail."
3396
+ },
3397
+ {
3398
+ "name": "update:value",
3399
+ "type": "CustomEvent<null | number>",
3400
+ "description": "v-model contract event, fired with `change`."
3401
+ }
3402
+ ]
3403
+ }
3404
+ },
3405
+ {
3406
+ "name": "c-option",
3407
+ "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",
3408
+ "doc-url": "",
3409
+ "attributes": [
3410
+ {
3411
+ "name": "disabled",
3412
+ "description": "Set option as disabled",
3413
+ "value": { "type": "boolean", "default": "false" }
3414
+ },
3415
+ {
3416
+ "name": "name",
3417
+ "description": "Option name (display label fallback)",
3418
+ "value": { "type": "string" }
3419
+ },
3420
+ {
3421
+ "name": "selected",
3422
+ "description": "Set option as selected",
3423
+ "value": { "type": "boolean", "default": "false" }
2848
3424
  },
2849
3425
  {
2850
3426
  "name": "value",
@@ -5074,7 +5650,7 @@
5074
5650
  },
5075
5651
  {
5076
5652
  "name": "c-text-field",
5077
- "description": "\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",
5653
+ "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",
5078
5654
  "doc-url": "",
5079
5655
  "attributes": [
5080
5656
  {
@@ -5088,22 +5664,339 @@
5088
5664
  "value": { "type": "boolean" }
5089
5665
  },
5090
5666
  {
5091
- "name": "automatic-capitalize",
5092
- "description": "HTML input autocapitalize",
5093
- "value": {
5094
- "type": "'characters' | 'none' | 'off' | 'on' | 'sentences' | 'words'"
5095
- }
5667
+ "name": "automatic-capitalize",
5668
+ "description": "HTML input autocapitalize",
5669
+ "value": {
5670
+ "type": "'characters' | 'none' | 'off' | 'on' | 'sentences' | 'words'"
5671
+ }
5672
+ },
5673
+ {
5674
+ "name": "disabled",
5675
+ "description": "Disable the input",
5676
+ "value": { "type": "boolean", "default": "false" }
5677
+ },
5678
+ {
5679
+ "name": "error-message",
5680
+ "description": "Error message shown in place of the hint while the input is invalid",
5681
+ "value": { "type": "string", "default": "''" }
5682
+ },
5683
+ {
5684
+ "name": "hide-details",
5685
+ "description": "Hide the hint and error messages",
5686
+ "value": { "type": "boolean", "default": "false" }
5687
+ },
5688
+ {
5689
+ "name": "hint",
5690
+ "description": "Hint text for the input",
5691
+ "value": { "type": "string", "default": "''" }
5692
+ },
5693
+ {
5694
+ "name": "host-id",
5695
+ "description": "Id of the input",
5696
+ "value": { "type": "string", "default": "''" }
5697
+ },
5698
+ {
5699
+ "name": "label",
5700
+ "description": "Label of the input",
5701
+ "value": { "type": "string", "default": "''" }
5702
+ },
5703
+ {
5704
+ "name": "label-on-top",
5705
+ "description": "Label on top of the input",
5706
+ "value": { "type": "boolean", "default": "false" }
5707
+ },
5708
+ {
5709
+ "name": "mask",
5710
+ "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",
5711
+ "value": { "type": "string", "default": "''" }
5712
+ },
5713
+ {
5714
+ "name": "max",
5715
+ "description": "Maximum value on a numeric input",
5716
+ "value": { "type": "null | number", "default": "null" }
5717
+ },
5718
+ {
5719
+ "name": "min",
5720
+ "description": "Minimum value on a numeric input",
5721
+ "value": { "type": "null | number", "default": "null" }
5722
+ },
5723
+ {
5724
+ "name": "name",
5725
+ "description": "Name of the input",
5726
+ "value": { "type": "string", "default": "''" }
5727
+ },
5728
+ {
5729
+ "name": "placeholder",
5730
+ "description": "Placeholder of the input",
5731
+ "value": { "type": "string", "default": "''" }
5732
+ },
5733
+ {
5734
+ "name": "readonly",
5735
+ "description": "Mark as readonly",
5736
+ "value": { "type": "boolean", "default": "false" }
5737
+ },
5738
+ {
5739
+ "name": "required",
5740
+ "description": "Set the input as required",
5741
+ "value": { "type": "boolean", "default": "false" }
5742
+ },
5743
+ {
5744
+ "name": "rows",
5745
+ "description": "Rows on the input",
5746
+ "value": { "type": "number", "default": "1" }
5747
+ },
5748
+ {
5749
+ "name": "shadow",
5750
+ "description": "Shadow variant of the input",
5751
+ "value": { "type": "boolean", "default": "false" }
5752
+ },
5753
+ {
5754
+ "name": "size",
5755
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box (single-line fields)",
5756
+ "value": { "type": "'default' | 'small'", "default": "'default'" }
5757
+ },
5758
+ {
5759
+ "name": "step",
5760
+ "description": "Step size on a numeric input",
5761
+ "value": { "type": "null | number", "default": "null" }
5762
+ },
5763
+ {
5764
+ "name": "trim-whitespace",
5765
+ "description": "Trim whitespace from the return value",
5766
+ "value": { "type": "boolean", "default": "false" }
5767
+ },
5768
+ {
5769
+ "name": "type",
5770
+ "description": "Type of the input",
5771
+ "value": {
5772
+ "type": "'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url'",
5773
+ "default": "'text'"
5774
+ }
5775
+ },
5776
+ {
5777
+ "name": "valid",
5778
+ "description": "Set the validity of the input",
5779
+ "value": { "type": "boolean", "default": "true" }
5780
+ },
5781
+ {
5782
+ "name": "value",
5783
+ "description": "Value of the input",
5784
+ "value": { "type": "string", "default": "''" }
5785
+ }
5786
+ ],
5787
+ "slots": [
5788
+ { "name": "pre", "description": "Content added before the input" },
5789
+ { "name": "post", "description": "Content added after the input" }
5790
+ ],
5791
+ "events": [
5792
+ {
5793
+ "name": "change",
5794
+ "type": "CustomEvent<void>",
5795
+ "description": "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."
5796
+ },
5797
+ {
5798
+ "name": "changeValue",
5799
+ "type": "CustomEvent<string>",
5800
+ "description": "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."
5801
+ },
5802
+ {
5803
+ "name": "input",
5804
+ "type": "CustomEvent<void>",
5805
+ "description": "Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works without the `v-control` directive. No detail."
5806
+ },
5807
+ {
5808
+ "name": "update:value",
5809
+ "type": "CustomEvent<string>",
5810
+ "description": "v-model contract event fired on every keystroke (and on native change),\ncarrying the current text — trimmed when `trim-whitespace` is set."
5811
+ }
5812
+ ],
5813
+ "js": {
5814
+ "properties": [
5815
+ {
5816
+ "name": "autocomplete",
5817
+ "description": "HTML input autocomplete",
5818
+ "type": "string"
5819
+ },
5820
+ {
5821
+ "name": "autocorrect",
5822
+ "description": "Enable native input autocorrection (Safari). Maps to the input's\n`autocorrect=\"on\"`/`\"off\"` attribute; left unset (browser default per\ninput type) when not specified. Mirrors the platform\n`HTMLElement.autocorrect` boolean.",
5823
+ "type": "boolean"
5824
+ },
5825
+ {
5826
+ "name": "automaticCapitalize",
5827
+ "description": "HTML input autocapitalize",
5828
+ "type": "'characters' | 'none' | 'off' | 'on' | 'sentences' | 'words'"
5829
+ },
5830
+ {
5831
+ "name": "disabled",
5832
+ "description": "Disable the input",
5833
+ "type": "boolean"
5834
+ },
5835
+ {
5836
+ "name": "errorMessage",
5837
+ "description": "Error message shown in place of the hint while the input is invalid",
5838
+ "type": "string"
5839
+ },
5840
+ {
5841
+ "name": "hideDetails",
5842
+ "description": "Hide the hint and error messages",
5843
+ "type": "boolean"
5844
+ },
5845
+ {
5846
+ "name": "hint",
5847
+ "description": "Hint text for the input",
5848
+ "type": "string"
5849
+ },
5850
+ {
5851
+ "name": "hostId",
5852
+ "description": "Id of the input",
5853
+ "type": "string"
5854
+ },
5855
+ {
5856
+ "name": "label",
5857
+ "description": "Label of the input",
5858
+ "type": "string"
5859
+ },
5860
+ {
5861
+ "name": "labelOnTop",
5862
+ "description": "Label on top of the input",
5863
+ "type": "boolean"
5864
+ },
5865
+ {
5866
+ "name": "mask",
5867
+ "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",
5868
+ "type": "string"
5869
+ },
5870
+ {
5871
+ "name": "max",
5872
+ "description": "Maximum value on a numeric input",
5873
+ "type": "null | number"
5874
+ },
5875
+ {
5876
+ "name": "min",
5877
+ "description": "Minimum value on a numeric input",
5878
+ "type": "null | number"
5879
+ },
5880
+ {
5881
+ "name": "name",
5882
+ "description": "Name of the input",
5883
+ "type": "string"
5884
+ },
5885
+ {
5886
+ "name": "placeholder",
5887
+ "description": "Placeholder of the input",
5888
+ "type": "string"
5889
+ },
5890
+ {
5891
+ "name": "readonly",
5892
+ "description": "Mark as readonly",
5893
+ "type": "boolean"
5894
+ },
5895
+ {
5896
+ "name": "required",
5897
+ "description": "Set the input as required",
5898
+ "type": "boolean"
5899
+ },
5900
+ {
5901
+ "name": "rows",
5902
+ "description": "Rows on the input",
5903
+ "type": "number"
5904
+ },
5905
+ {
5906
+ "name": "shadow",
5907
+ "description": "Shadow variant of the input",
5908
+ "type": "boolean"
5909
+ },
5910
+ {
5911
+ "name": "size",
5912
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box (single-line fields)",
5913
+ "type": "'default' | 'small'"
5914
+ },
5915
+ {
5916
+ "name": "step",
5917
+ "description": "Step size on a numeric input",
5918
+ "type": "null | number"
5919
+ },
5920
+ {
5921
+ "name": "trimWhitespace",
5922
+ "description": "Trim whitespace from the return value",
5923
+ "type": "boolean"
5924
+ },
5925
+ {
5926
+ "name": "type",
5927
+ "description": "Type of the input",
5928
+ "type": "'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url'"
5929
+ },
5930
+ {
5931
+ "name": "valid",
5932
+ "description": "Set the validity of the input",
5933
+ "type": "boolean"
5934
+ },
5935
+ {
5936
+ "name": "value",
5937
+ "description": "Value of the input",
5938
+ "type": "string"
5939
+ },
5940
+ {
5941
+ "name": "maskComplete",
5942
+ "description": "Whether a masked field has every mask token filled (always `true` without a mask)",
5943
+ "type": "boolean"
5944
+ },
5945
+ {
5946
+ "name": "unmaskedValue",
5947
+ "description": "The text without the mask's literals: only the characters filling its tokens (the text as is without a mask)",
5948
+ "type": "string"
5949
+ }
5950
+ ],
5951
+ "events": [
5952
+ {
5953
+ "name": "change",
5954
+ "type": "CustomEvent<void>",
5955
+ "description": "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."
5956
+ },
5957
+ {
5958
+ "name": "changeValue",
5959
+ "type": "CustomEvent<string>",
5960
+ "description": "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."
5961
+ },
5962
+ {
5963
+ "name": "input",
5964
+ "type": "CustomEvent<void>",
5965
+ "description": "Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works without the `v-control` directive. No detail."
5966
+ },
5967
+ {
5968
+ "name": "update:value",
5969
+ "type": "CustomEvent<string>",
5970
+ "description": "v-model contract event fired on every keystroke (and on native change),\ncarrying the current text — trimmed when `trim-whitespace` is set."
5971
+ }
5972
+ ]
5973
+ }
5974
+ },
5975
+ {
5976
+ "name": "c-time-picker",
5977
+ "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",
5978
+ "doc-url": "",
5979
+ "attributes": [
5980
+ {
5981
+ "name": "clearable",
5982
+ "description": "Make the value clearable",
5983
+ "value": { "type": "boolean", "default": "false" }
5096
5984
  },
5097
5985
  {
5098
5986
  "name": "disabled",
5099
- "description": "Disable the input",
5987
+ "description": "Disable the field",
5100
5988
  "value": { "type": "boolean", "default": "false" }
5101
5989
  },
5102
5990
  {
5103
5991
  "name": "error-message",
5104
- "description": "Error message shown in place of the hint while the input is invalid",
5992
+ "description": "Error message shown in place of the hint while the field is invalid",
5105
5993
  "value": { "type": "string", "default": "''" }
5106
5994
  },
5995
+ {
5996
+ "name": "format",
5997
+ "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`",
5998
+ "value": { "type": "string", "default": "'HH.mm'" }
5999
+ },
5107
6000
  {
5108
6001
  "name": "hide-details",
5109
6002
  "description": "Hide the hint and error messages",
@@ -5111,149 +6004,123 @@
5111
6004
  },
5112
6005
  {
5113
6006
  "name": "hint",
5114
- "description": "Hint text for the input",
6007
+ "description": "Hint text for the field",
5115
6008
  "value": { "type": "string", "default": "''" }
5116
6009
  },
5117
6010
  {
5118
6011
  "name": "host-id",
5119
- "description": "Id of the input",
6012
+ "description": "Id of the element",
5120
6013
  "value": { "type": "string", "default": "''" }
5121
6014
  },
5122
6015
  {
5123
6016
  "name": "label",
5124
- "description": "Label of the input",
6017
+ "description": "Element label",
5125
6018
  "value": { "type": "string", "default": "''" }
5126
6019
  },
5127
6020
  {
5128
6021
  "name": "label-on-top",
5129
- "description": "Label on top of the input",
6022
+ "description": "Label on top of the field",
5130
6023
  "value": { "type": "boolean", "default": "false" }
5131
6024
  },
5132
6025
  {
5133
6026
  "name": "max",
5134
- "description": "Maximum value on a numeric input",
5135
- "value": { "type": "null | number", "default": "null" }
6027
+ "description": "The latest time that can be picked or typed, as an ISO `HH:mm` time",
6028
+ "value": { "type": "string", "default": "''" }
5136
6029
  },
5137
6030
  {
5138
6031
  "name": "min",
5139
- "description": "Minimum value on a numeric input",
5140
- "value": { "type": "null | number", "default": "null" }
6032
+ "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",
6033
+ "value": { "type": "string", "default": "''" }
6034
+ },
6035
+ {
6036
+ "name": "minute-step",
6037
+ "description": "Minutes between the minute column's rows; typed times need not fall on\nthe step",
6038
+ "value": { "type": "number", "default": "1" }
5141
6039
  },
5142
6040
  {
5143
6041
  "name": "name",
5144
- "description": "Name of the input",
6042
+ "description": "Input field name",
5145
6043
  "value": { "type": "string", "default": "''" }
5146
6044
  },
5147
6045
  {
5148
6046
  "name": "placeholder",
5149
- "description": "Placeholder of the input",
6047
+ "description": "Placeholder of the input; the `format` pattern when empty",
5150
6048
  "value": { "type": "string", "default": "''" }
5151
6049
  },
5152
6050
  {
5153
- "name": "readonly",
5154
- "description": "Mark as readonly",
6051
+ "name": "range",
6052
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
5155
6053
  "value": { "type": "boolean", "default": "false" }
5156
6054
  },
5157
6055
  {
5158
6056
  "name": "required",
5159
- "description": "Set the input as required",
6057
+ "description": "Set the field as required",
5160
6058
  "value": { "type": "boolean", "default": "false" }
5161
6059
  },
5162
- {
5163
- "name": "rows",
5164
- "description": "Rows on the input",
5165
- "value": { "type": "number", "default": "1" }
5166
- },
5167
6060
  {
5168
6061
  "name": "shadow",
5169
- "description": "Shadow variant of the input",
6062
+ "description": "Shadow variant",
5170
6063
  "value": { "type": "boolean", "default": "false" }
5171
6064
  },
5172
6065
  {
5173
6066
  "name": "size",
5174
- "description": "Field height: the 52px default (the shared control height) or the 36px `small` box (single-line fields)",
6067
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
5175
6068
  "value": { "type": "'default' | 'small'", "default": "'default'" }
5176
6069
  },
5177
- {
5178
- "name": "step",
5179
- "description": "Step size on a numeric input",
5180
- "value": { "type": "null | number", "default": "null" }
5181
- },
5182
- {
5183
- "name": "trim-whitespace",
5184
- "description": "Trim whitespace from the return value",
5185
- "value": { "type": "boolean", "default": "false" }
5186
- },
5187
- {
5188
- "name": "type",
5189
- "description": "Type of the input",
5190
- "value": {
5191
- "type": "'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url'",
5192
- "default": "'text'"
5193
- }
5194
- },
5195
6070
  {
5196
6071
  "name": "valid",
5197
- "description": "Set the validity of the input",
6072
+ "description": "Set the validity of the field",
5198
6073
  "value": { "type": "boolean", "default": "true" }
5199
6074
  },
5200
6075
  {
5201
6076
  "name": "value",
5202
- "description": "Value of the input",
5203
- "value": { "type": "string", "default": "''" }
6077
+ "description": "The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\nunder `range`; `null` when empty",
6078
+ "value": { "type": "CTimePickerValue", "default": "null" }
5204
6079
  }
5205
6080
  ],
5206
- "slots": [
5207
- { "name": "pre", "description": "Content added before the input" },
5208
- { "name": "post", "description": "Content added after the input" }
5209
- ],
6081
+ "slots": [],
5210
6082
  "events": [
5211
6083
  {
5212
6084
  "name": "change",
5213
- "type": "CustomEvent<void>",
5214
- "description": "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."
6085
+ "type": "CustomEvent<CTimePickerValue>",
6086
+ "description": "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`."
5215
6087
  },
5216
6088
  {
5217
- "name": "changeValue",
5218
- "type": "CustomEvent<string>",
5219
- "description": "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."
6089
+ "name": "change:text",
6090
+ "type": "CustomEvent<CTimePickerText>",
6091
+ "description": "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."
5220
6092
  },
5221
6093
  {
5222
6094
  "name": "input",
5223
6095
  "type": "CustomEvent<void>",
5224
- "description": "Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works without the `v-control` directive. No detail."
6096
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
5225
6097
  },
5226
6098
  {
5227
6099
  "name": "update:value",
5228
- "type": "CustomEvent<string>",
5229
- "description": "v-model contract event fired on every keystroke (and on native change),\ncarrying the current text — trimmed when `trim-whitespace` is set."
6100
+ "type": "CustomEvent<CTimePickerValue>",
6101
+ "description": "Fired alongside `change` with the same detail — the `v-model` contract."
5230
6102
  }
5231
6103
  ],
5232
6104
  "js": {
5233
6105
  "properties": [
5234
6106
  {
5235
- "name": "autocomplete",
5236
- "description": "HTML input autocomplete",
5237
- "type": "string"
5238
- },
5239
- {
5240
- "name": "autocorrect",
5241
- "description": "Enable native input autocorrection (Safari). Maps to the input's\n`autocorrect=\"on\"`/`\"off\"` attribute; left unset (browser default per\ninput type) when not specified. Mirrors the platform\n`HTMLElement.autocorrect` boolean.",
6107
+ "name": "clearable",
6108
+ "description": "Make the value clearable",
5242
6109
  "type": "boolean"
5243
6110
  },
5244
- {
5245
- "name": "automaticCapitalize",
5246
- "description": "HTML input autocapitalize",
5247
- "type": "'characters' | 'none' | 'off' | 'on' | 'sentences' | 'words'"
5248
- },
5249
6111
  {
5250
6112
  "name": "disabled",
5251
- "description": "Disable the input",
6113
+ "description": "Disable the field",
5252
6114
  "type": "boolean"
5253
6115
  },
5254
6116
  {
5255
6117
  "name": "errorMessage",
5256
- "description": "Error message shown in place of the hint while the input is invalid",
6118
+ "description": "Error message shown in place of the hint while the field is invalid",
6119
+ "type": "string"
6120
+ },
6121
+ {
6122
+ "name": "format",
6123
+ "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`",
5257
6124
  "type": "string"
5258
6125
  },
5259
6126
  {
@@ -5263,115 +6130,110 @@
5263
6130
  },
5264
6131
  {
5265
6132
  "name": "hint",
5266
- "description": "Hint text for the input",
6133
+ "description": "Hint text for the field",
5267
6134
  "type": "string"
5268
6135
  },
5269
6136
  {
5270
6137
  "name": "hostId",
5271
- "description": "Id of the input",
6138
+ "description": "Id of the element",
5272
6139
  "type": "string"
5273
6140
  },
5274
6141
  {
5275
6142
  "name": "label",
5276
- "description": "Label of the input",
6143
+ "description": "Element label",
5277
6144
  "type": "string"
5278
6145
  },
5279
6146
  {
5280
6147
  "name": "labelOnTop",
5281
- "description": "Label on top of the input",
6148
+ "description": "Label on top of the field",
5282
6149
  "type": "boolean"
5283
6150
  },
5284
6151
  {
5285
6152
  "name": "max",
5286
- "description": "Maximum value on a numeric input",
5287
- "type": "null | number"
6153
+ "description": "The latest time that can be picked or typed, as an ISO `HH:mm` time",
6154
+ "type": "string"
5288
6155
  },
5289
6156
  {
5290
6157
  "name": "min",
5291
- "description": "Minimum value on a numeric input",
5292
- "type": "null | number"
6158
+ "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",
6159
+ "type": "string"
6160
+ },
6161
+ {
6162
+ "name": "minuteStep",
6163
+ "description": "Minutes between the minute column's rows; typed times need not fall on\nthe step",
6164
+ "type": "number"
5293
6165
  },
5294
6166
  {
5295
6167
  "name": "name",
5296
- "description": "Name of the input",
6168
+ "description": "Input field name",
5297
6169
  "type": "string"
5298
6170
  },
5299
6171
  {
5300
6172
  "name": "placeholder",
5301
- "description": "Placeholder of the input",
6173
+ "description": "Placeholder of the input; the `format` pattern when empty",
5302
6174
  "type": "string"
5303
6175
  },
5304
6176
  {
5305
- "name": "readonly",
5306
- "description": "Mark as readonly",
6177
+ "name": "range",
6178
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
5307
6179
  "type": "boolean"
5308
6180
  },
5309
6181
  {
5310
6182
  "name": "required",
5311
- "description": "Set the input as required",
6183
+ "description": "Set the field as required",
5312
6184
  "type": "boolean"
5313
6185
  },
5314
- {
5315
- "name": "rows",
5316
- "description": "Rows on the input",
5317
- "type": "number"
5318
- },
5319
6186
  {
5320
6187
  "name": "shadow",
5321
- "description": "Shadow variant of the input",
6188
+ "description": "Shadow variant",
5322
6189
  "type": "boolean"
5323
6190
  },
5324
6191
  {
5325
6192
  "name": "size",
5326
- "description": "Field height: the 52px default (the shared control height) or the 36px `small` box (single-line fields)",
6193
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
5327
6194
  "type": "'default' | 'small'"
5328
6195
  },
5329
6196
  {
5330
- "name": "step",
5331
- "description": "Step size on a numeric input",
5332
- "type": "null | number"
6197
+ "name": "texts",
6198
+ "description": "UI text overrides (i18n), merged over the AM/PM texts `Intl` gives for\nthe page's `lang` and the English defaults. Objects have no attribute\nform — bind as a DOM property",
6199
+ "type": "CTimePickerTexts"
5333
6200
  },
5334
6201
  {
5335
- "name": "trimWhitespace",
5336
- "description": "Trim whitespace from the return value",
6202
+ "name": "valid",
6203
+ "description": "Set the validity of the field",
5337
6204
  "type": "boolean"
5338
6205
  },
5339
6206
  {
5340
- "name": "type",
5341
- "description": "Type of the input",
5342
- "type": "'date' | 'email' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'url'"
6207
+ "name": "value",
6208
+ "description": "The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\nunder `range`; `null` when empty",
6209
+ "type": "CTimePickerValue"
5343
6210
  },
5344
6211
  {
5345
- "name": "valid",
5346
- "description": "Set the validity of the input",
6212
+ "name": "badInput",
6213
+ "description": "Whether the committed text names no time that can be picked — the value is then `null` (CONTEXT.md \"Bad input\").",
5347
6214
  "type": "boolean"
5348
- },
5349
- {
5350
- "name": "value",
5351
- "description": "Value of the input",
5352
- "type": "string"
5353
6215
  }
5354
6216
  ],
5355
6217
  "events": [
5356
6218
  {
5357
6219
  "name": "change",
5358
- "type": "CustomEvent<void>",
5359
- "description": "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."
6220
+ "type": "CustomEvent<CTimePickerValue>",
6221
+ "description": "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`."
5360
6222
  },
5361
6223
  {
5362
- "name": "changeValue",
5363
- "type": "CustomEvent<string>",
5364
- "description": "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."
6224
+ "name": "change:text",
6225
+ "type": "CustomEvent<CTimePickerText>",
6226
+ "description": "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."
5365
6227
  },
5366
6228
  {
5367
6229
  "name": "input",
5368
6230
  "type": "CustomEvent<void>",
5369
- "description": "Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works without the `v-control` directive. No detail."
6231
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
5370
6232
  },
5371
6233
  {
5372
6234
  "name": "update:value",
5373
- "type": "CustomEvent<string>",
5374
- "description": "v-model contract event fired on every keystroke (and on native change),\ncarrying the current text — trimmed when `trim-whitespace` is set."
6235
+ "type": "CustomEvent<CTimePickerValue>",
6236
+ "description": "Fired alongside `change` with the same detail — the `v-model` contract."
5375
6237
  }
5376
6238
  ]
5377
6239
  }
@@ -6089,6 +6951,99 @@
6089
6951
  "name": "part(pagination)",
6090
6952
  "description": "The pagination bar below the table"
6091
6953
  },
6954
+ {
6955
+ "name": "part(input)",
6956
+ "description": "The text input; under `range` both the start and the end input"
6957
+ },
6958
+ {
6959
+ "name": "part(separator)",
6960
+ "description": "The dash between the start and end inputs under `range`"
6961
+ },
6962
+ {
6963
+ "name": "part(panel)",
6964
+ "description": "The top-layer popover container anchored below the field"
6965
+ },
6966
+ {
6967
+ "name": "part(card)",
6968
+ "description": "The dialog surface inside the panel holding the header and the calendar body"
6969
+ },
6970
+ {
6971
+ "name": "part(heading-row)",
6972
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
6973
+ },
6974
+ {
6975
+ "name": "part(heading)",
6976
+ "description": "The field label naming the fullscreen panel"
6977
+ },
6978
+ {
6979
+ "name": "part(close)",
6980
+ "description": "The close button of the fullscreen panel"
6981
+ },
6982
+ {
6983
+ "name": "part(header)",
6984
+ "description": "The row of month and year controls above the calendar body"
6985
+ },
6986
+ {
6987
+ "name": "part(previous-month)",
6988
+ "description": "The arrow to the previous month"
6989
+ },
6990
+ {
6991
+ "name": "part(next-month)",
6992
+ "description": "The arrow to the next month"
6993
+ },
6994
+ {
6995
+ "name": "part(month-button)",
6996
+ "description": "The button showing the displayed month that opens the month list"
6997
+ },
6998
+ {
6999
+ "name": "part(previous-year)",
7000
+ "description": "The arrow to the same month a year earlier"
7001
+ },
7002
+ {
7003
+ "name": "part(next-year)",
7004
+ "description": "The arrow to the same month a year later"
7005
+ },
7006
+ {
7007
+ "name": "part(year-button)",
7008
+ "description": "The button showing the displayed year that opens the year list"
7009
+ },
7010
+ {
7011
+ "name": "part(grid)",
7012
+ "description": "The day grid of the displayed month"
7013
+ },
7014
+ {
7015
+ "name": "part(weekday)",
7016
+ "description": "A weekday column head in the grid"
7017
+ },
7018
+ {
7019
+ "name": "part(week-number)",
7020
+ "description": "An ISO week number beside a grid row (`show-week-numbers`)"
7021
+ },
7022
+ { "name": "part(cell)", "description": "One day's cell in the grid" },
7023
+ {
7024
+ "name": "part(day)",
7025
+ "description": "The circle showing a day's number inside its cell"
7026
+ },
7027
+ {
7028
+ "name": "part(range-band)",
7029
+ "description": "The strip joining a range's days behind their circles"
7030
+ },
7031
+ {
7032
+ "name": "part(list)",
7033
+ "description": "The month or year list swapped in for the grid"
7034
+ },
7035
+ {
7036
+ "name": "part(option)",
7037
+ "description": "One month or year in the list"
7038
+ },
7039
+ {
7040
+ "name": "part(step-label)",
7041
+ "description": "The label above the current list under `type=\"month\"`: month or year, and under `range` start or end"
7042
+ },
7043
+ {
7044
+ "name": "part(step-summary)",
7045
+ "description": "A finished step under `type=\"month\"`, its label and pick; pressing it returns to that step"
7046
+ },
6092
7047
  {
6093
7048
  "name": "part(root)",
6094
7049
  "description": "The separator line element itself"
@@ -6288,6 +7243,7 @@
6288
7243
  "name": "part(root)",
6289
7244
  "description": "The inner c-icon-button carrying the menu icon"
6290
7245
  },
7246
+ { "name": "part(input)", "description": "The text input" },
6291
7247
  {
6292
7248
  "name": "part(root)",
6293
7249
  "description": "The wrapper laying out the label, the digit inputs and the message"
@@ -6597,6 +7553,52 @@
6597
7553
  "name": "part(items)",
6598
7554
  "description": "The wrapping row that lays out the slotted tags"
6599
7555
  },
7556
+ {
7557
+ "name": "part(mask-guide)",
7558
+ "description": "The faint rest of the input mask, shown behind the typed text"
7559
+ },
7560
+ {
7561
+ "name": "part(input)",
7562
+ "description": "The text input; under `range` both the start and the end input"
7563
+ },
7564
+ {
7565
+ "name": "part(separator)",
7566
+ "description": "The dash between the start and end inputs under `range`"
7567
+ },
7568
+ {
7569
+ "name": "part(panel)",
7570
+ "description": "The top-layer popover container anchored below the field"
7571
+ },
7572
+ {
7573
+ "name": "part(card)",
7574
+ "description": "The dialog surface inside the panel holding the columns"
7575
+ },
7576
+ {
7577
+ "name": "part(heading-row)",
7578
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
7579
+ },
7580
+ {
7581
+ "name": "part(heading)",
7582
+ "description": "The field label naming the fullscreen panel"
7583
+ },
7584
+ {
7585
+ "name": "part(close)",
7586
+ "description": "The close button of the fullscreen panel"
7587
+ },
7588
+ {
7589
+ "name": "part(end-switch)",
7590
+ "description": "The Start | End switch above the columns under `range`"
7591
+ },
7592
+ {
7593
+ "name": "part(end-tab)",
7594
+ "description": "One end's button in the end switch"
7595
+ },
7596
+ { "name": "part(columns)", "description": "The row of time columns" },
7597
+ {
7598
+ "name": "part(column)",
7599
+ "description": "One time column: hours, minutes or AM/PM"
7600
+ },
7601
+ { "name": "part(option)", "description": "One row of a time column" },
6600
7602
  {
6601
7603
  "name": "part(root)",
6602
7604
  "description": "The toast's outer box: the inverted-surface pill carrying the shadow"