@cscfi/csc-ui 4.0.0-alpha.27 → 4.0.0-alpha.29

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.27",
4
+ "version": "4.0.0-alpha.29",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1445,7 +1445,7 @@
1445
1445
  },
1446
1446
  {
1447
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",
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\n- **actions** - The row under the calendar body holding the Today button (`show-today`) and, in the fullscreen panel, the Done button\n- **today** - The Today button: picks today, or the current month under `type=\"month\"`\n- **done** - The Done button of the fullscreen panel (narrow viewports): commits what the panel holds and closes",
1449
1449
  "doc-url": "",
1450
1450
  "attributes": [
1451
1451
  {
@@ -1533,6 +1533,11 @@
1533
1533
  "description": "Shadow variant",
1534
1534
  "value": { "type": "boolean", "default": "false" }
1535
1535
  },
1536
+ {
1537
+ "name": "show-today",
1538
+ "description": "Show a Today button under the calendar that picks today (\"This month\"\nunder `type=\"month\"`)",
1539
+ "value": { "type": "boolean", "default": "false" }
1540
+ },
1536
1541
  {
1537
1542
  "name": "show-week-numbers",
1538
1543
  "description": "Show ISO 8601 week numbers beside the calendar rows (meaningful with a\nMonday week start)",
@@ -1543,6 +1548,11 @@
1543
1548
  "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
1544
1549
  "value": { "type": "'default' | 'small'", "default": "'default'" }
1545
1550
  },
1551
+ {
1552
+ "name": "type",
1553
+ "description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
1554
+ "value": { "type": "'date' | 'month'", "default": "'date'" }
1555
+ },
1546
1556
  {
1547
1557
  "name": "valid",
1548
1558
  "description": "Set the validity of the field",
@@ -1550,7 +1560,7 @@
1550
1560
  },
1551
1561
  {
1552
1562
  "name": "value",
1553
- "description": "The date as an ISO `YYYY-MM-DD` string, or `{ start, end }` under\n`range`; `null` when empty",
1563
+ "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",
1554
1564
  "value": { "type": "CDatePickerValue", "default": "null" }
1555
1565
  }
1556
1566
  ],
@@ -1679,6 +1689,11 @@
1679
1689
  "description": "Shadow variant",
1680
1690
  "type": "boolean"
1681
1691
  },
1692
+ {
1693
+ "name": "showToday",
1694
+ "description": "Show a Today button under the calendar that picks today (\"This month\"\nunder `type=\"month\"`)",
1695
+ "type": "boolean"
1696
+ },
1682
1697
  {
1683
1698
  "name": "showWeekNumbers",
1684
1699
  "description": "Show ISO 8601 week numbers beside the calendar rows (meaningful with a\nMonday week start)",
@@ -1694,6 +1709,11 @@
1694
1709
  "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",
1695
1710
  "type": "CDatePickerTexts"
1696
1711
  },
1712
+ {
1713
+ "name": "type",
1714
+ "description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
1715
+ "type": "'date' | 'month'"
1716
+ },
1697
1717
  {
1698
1718
  "name": "valid",
1699
1719
  "description": "Set the validity of the field",
@@ -1701,7 +1721,7 @@
1701
1721
  },
1702
1722
  {
1703
1723
  "name": "value",
1704
- "description": "The date as an ISO `YYYY-MM-DD` string, or `{ start, end }` under\n`range`; `null` when empty",
1724
+ "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",
1705
1725
  "type": "CDatePickerValue"
1706
1726
  },
1707
1727
  {
@@ -3124,7 +3144,7 @@
3124
3144
  },
3125
3145
  {
3126
3146
  "name": "c-number-field",
3127
- "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",
3147
+ "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 or a step changes the number, carrying it — `null`\nonce the field 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; the step buttons follow it\n\n### **CSS Parts:**\n - **input** - The text input\n- **step-up** - The button that steps the number up\n- **step-down** - The button that steps the number down",
3128
3148
  "doc-url": "",
3129
3149
  "attributes": [
3130
3150
  {
@@ -3222,6 +3242,11 @@
3222
3242
  "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
3223
3243
  "value": { "type": "'default' | 'small'", "default": "'default'" }
3224
3244
  },
3245
+ {
3246
+ "name": "step",
3247
+ "description": "The spacing of the grid the step buttons and arrow keys move along, counted from `min` (or `0`)",
3248
+ "value": { "type": "number", "default": "1" }
3249
+ },
3225
3250
  {
3226
3251
  "name": "valid",
3227
3252
  "description": "Set the validity of the field",
@@ -3240,14 +3265,14 @@
3240
3265
  },
3241
3266
  {
3242
3267
  "name": "post",
3243
- "description": "Content after the number, such as a unit"
3268
+ "description": "Content after the number, such as a unit; the step buttons follow it"
3244
3269
  }
3245
3270
  ],
3246
3271
  "events": [
3247
3272
  {
3248
3273
  "name": "change",
3249
3274
  "type": "CustomEvent<null | number>",
3250
- "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."
3275
+ "description": "Fired whenever typing or a step changes the number, carrying it — `null`\nonce the field holds no digit. Not fired when only the text changes (a group\nseparator, a trailing decimal separator) or when `value` is set."
3251
3276
  },
3252
3277
  {
3253
3278
  "name": "input",
@@ -3357,6 +3382,16 @@
3357
3382
  "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
3358
3383
  "type": "'default' | 'small'"
3359
3384
  },
3385
+ {
3386
+ "name": "step",
3387
+ "description": "The spacing of the grid the step buttons and arrow keys move along, counted from `min` (or `0`)",
3388
+ "type": "number"
3389
+ },
3390
+ {
3391
+ "name": "texts",
3392
+ "description": "UI text overrides (i18n), merged over the English defaults. Objects have no attribute form — bind as a DOM property",
3393
+ "type": "CNumberFieldTexts"
3394
+ },
3360
3395
  {
3361
3396
  "name": "valid",
3362
3397
  "description": "Set the validity of the field",
@@ -3377,7 +3412,7 @@
3377
3412
  {
3378
3413
  "name": "change",
3379
3414
  "type": "CustomEvent<null | number>",
3380
- "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."
3415
+ "description": "Fired whenever typing or a step changes the number, carrying it — `null`\nonce the field holds no digit. Not fired when only the text changes (a group\nseparator, a trailing decimal separator) or when `value` is set."
3381
3416
  },
3382
3417
  {
3383
3418
  "name": "input",
@@ -5962,6 +5997,282 @@
5962
5997
  ]
5963
5998
  }
5964
5999
  },
6000
+ {
6001
+ "name": "c-time-picker",
6002
+ "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\n- **actions** - The row under the columns holding the Now button (`show-now`) and, in the fullscreen panel, the Done button\n- **now** - The Now button: commits the current time\n- **done** - The Done button of the fullscreen panel (narrow viewports): commits what the panel holds and closes",
6003
+ "doc-url": "",
6004
+ "attributes": [
6005
+ {
6006
+ "name": "clearable",
6007
+ "description": "Make the value clearable",
6008
+ "value": { "type": "boolean", "default": "false" }
6009
+ },
6010
+ {
6011
+ "name": "disabled",
6012
+ "description": "Disable the field",
6013
+ "value": { "type": "boolean", "default": "false" }
6014
+ },
6015
+ {
6016
+ "name": "error-message",
6017
+ "description": "Error message shown in place of the hint while the field is invalid",
6018
+ "value": { "type": "string", "default": "''" }
6019
+ },
6020
+ {
6021
+ "name": "format",
6022
+ "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`",
6023
+ "value": { "type": "string", "default": "'HH.mm'" }
6024
+ },
6025
+ {
6026
+ "name": "hide-details",
6027
+ "description": "Hide the hint and error messages",
6028
+ "value": { "type": "boolean", "default": "false" }
6029
+ },
6030
+ {
6031
+ "name": "hint",
6032
+ "description": "Hint text for the field",
6033
+ "value": { "type": "string", "default": "''" }
6034
+ },
6035
+ {
6036
+ "name": "host-id",
6037
+ "description": "Id of the element",
6038
+ "value": { "type": "string", "default": "''" }
6039
+ },
6040
+ {
6041
+ "name": "label",
6042
+ "description": "Element label",
6043
+ "value": { "type": "string", "default": "''" }
6044
+ },
6045
+ {
6046
+ "name": "label-on-top",
6047
+ "description": "Label on top of the field",
6048
+ "value": { "type": "boolean", "default": "false" }
6049
+ },
6050
+ {
6051
+ "name": "max",
6052
+ "description": "The latest time that can be picked or typed, as an ISO `HH:mm` time",
6053
+ "value": { "type": "string", "default": "''" }
6054
+ },
6055
+ {
6056
+ "name": "min",
6057
+ "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",
6058
+ "value": { "type": "string", "default": "''" }
6059
+ },
6060
+ {
6061
+ "name": "minute-step",
6062
+ "description": "Minutes between the minute column's rows; typed times need not fall on\nthe step",
6063
+ "value": { "type": "number", "default": "1" }
6064
+ },
6065
+ {
6066
+ "name": "name",
6067
+ "description": "Input field name",
6068
+ "value": { "type": "string", "default": "''" }
6069
+ },
6070
+ {
6071
+ "name": "placeholder",
6072
+ "description": "Placeholder of the input; the `format` pattern when empty",
6073
+ "value": { "type": "string", "default": "''" }
6074
+ },
6075
+ {
6076
+ "name": "range",
6077
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
6078
+ "value": { "type": "boolean", "default": "false" }
6079
+ },
6080
+ {
6081
+ "name": "required",
6082
+ "description": "Set the field as required",
6083
+ "value": { "type": "boolean", "default": "false" }
6084
+ },
6085
+ {
6086
+ "name": "shadow",
6087
+ "description": "Shadow variant",
6088
+ "value": { "type": "boolean", "default": "false" }
6089
+ },
6090
+ {
6091
+ "name": "show-now",
6092
+ "description": "Show a Now button under the columns that commits the current time",
6093
+ "value": { "type": "boolean", "default": "false" }
6094
+ },
6095
+ {
6096
+ "name": "size",
6097
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
6098
+ "value": { "type": "'default' | 'small'", "default": "'default'" }
6099
+ },
6100
+ {
6101
+ "name": "valid",
6102
+ "description": "Set the validity of the field",
6103
+ "value": { "type": "boolean", "default": "true" }
6104
+ },
6105
+ {
6106
+ "name": "value",
6107
+ "description": "The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\nunder `range`; `null` when empty",
6108
+ "value": { "type": "CTimePickerValue", "default": "null" }
6109
+ }
6110
+ ],
6111
+ "slots": [],
6112
+ "events": [
6113
+ {
6114
+ "name": "change",
6115
+ "type": "CustomEvent<CTimePickerValue>",
6116
+ "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`."
6117
+ },
6118
+ {
6119
+ "name": "change:text",
6120
+ "type": "CustomEvent<CTimePickerText>",
6121
+ "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."
6122
+ },
6123
+ {
6124
+ "name": "input",
6125
+ "type": "CustomEvent<void>",
6126
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
6127
+ },
6128
+ {
6129
+ "name": "update:value",
6130
+ "type": "CustomEvent<CTimePickerValue>",
6131
+ "description": "Fired alongside `change` with the same detail — the `v-model` contract."
6132
+ }
6133
+ ],
6134
+ "js": {
6135
+ "properties": [
6136
+ {
6137
+ "name": "clearable",
6138
+ "description": "Make the value clearable",
6139
+ "type": "boolean"
6140
+ },
6141
+ {
6142
+ "name": "disabled",
6143
+ "description": "Disable the field",
6144
+ "type": "boolean"
6145
+ },
6146
+ {
6147
+ "name": "errorMessage",
6148
+ "description": "Error message shown in place of the hint while the field is invalid",
6149
+ "type": "string"
6150
+ },
6151
+ {
6152
+ "name": "format",
6153
+ "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`",
6154
+ "type": "string"
6155
+ },
6156
+ {
6157
+ "name": "hideDetails",
6158
+ "description": "Hide the hint and error messages",
6159
+ "type": "boolean"
6160
+ },
6161
+ {
6162
+ "name": "hint",
6163
+ "description": "Hint text for the field",
6164
+ "type": "string"
6165
+ },
6166
+ {
6167
+ "name": "hostId",
6168
+ "description": "Id of the element",
6169
+ "type": "string"
6170
+ },
6171
+ {
6172
+ "name": "label",
6173
+ "description": "Element label",
6174
+ "type": "string"
6175
+ },
6176
+ {
6177
+ "name": "labelOnTop",
6178
+ "description": "Label on top of the field",
6179
+ "type": "boolean"
6180
+ },
6181
+ {
6182
+ "name": "max",
6183
+ "description": "The latest time that can be picked or typed, as an ISO `HH:mm` time",
6184
+ "type": "string"
6185
+ },
6186
+ {
6187
+ "name": "min",
6188
+ "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",
6189
+ "type": "string"
6190
+ },
6191
+ {
6192
+ "name": "minuteStep",
6193
+ "description": "Minutes between the minute column's rows; typed times need not fall on\nthe step",
6194
+ "type": "number"
6195
+ },
6196
+ {
6197
+ "name": "name",
6198
+ "description": "Input field name",
6199
+ "type": "string"
6200
+ },
6201
+ {
6202
+ "name": "placeholder",
6203
+ "description": "Placeholder of the input; the `format` pattern when empty",
6204
+ "type": "string"
6205
+ },
6206
+ {
6207
+ "name": "range",
6208
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
6209
+ "type": "boolean"
6210
+ },
6211
+ {
6212
+ "name": "required",
6213
+ "description": "Set the field as required",
6214
+ "type": "boolean"
6215
+ },
6216
+ {
6217
+ "name": "shadow",
6218
+ "description": "Shadow variant",
6219
+ "type": "boolean"
6220
+ },
6221
+ {
6222
+ "name": "showNow",
6223
+ "description": "Show a Now button under the columns that commits the current time",
6224
+ "type": "boolean"
6225
+ },
6226
+ {
6227
+ "name": "size",
6228
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
6229
+ "type": "'default' | 'small'"
6230
+ },
6231
+ {
6232
+ "name": "texts",
6233
+ "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",
6234
+ "type": "CTimePickerTexts"
6235
+ },
6236
+ {
6237
+ "name": "valid",
6238
+ "description": "Set the validity of the field",
6239
+ "type": "boolean"
6240
+ },
6241
+ {
6242
+ "name": "value",
6243
+ "description": "The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\nunder `range`; `null` when empty",
6244
+ "type": "CTimePickerValue"
6245
+ },
6246
+ {
6247
+ "name": "badInput",
6248
+ "description": "Whether the committed text names no time that can be picked — the value is then `null` (CONTEXT.md \"Bad input\").",
6249
+ "type": "boolean"
6250
+ }
6251
+ ],
6252
+ "events": [
6253
+ {
6254
+ "name": "change",
6255
+ "type": "CustomEvent<CTimePickerValue>",
6256
+ "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`."
6257
+ },
6258
+ {
6259
+ "name": "change:text",
6260
+ "type": "CustomEvent<CTimePickerText>",
6261
+ "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."
6262
+ },
6263
+ {
6264
+ "name": "input",
6265
+ "type": "CustomEvent<void>",
6266
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
6267
+ },
6268
+ {
6269
+ "name": "update:value",
6270
+ "type": "CustomEvent<CTimePickerValue>",
6271
+ "description": "Fired alongside `change` with the same detail — the `v-model` contract."
6272
+ }
6273
+ ]
6274
+ }
6275
+ },
5965
6276
  {
5966
6277
  "name": "c-toast",
5967
6278
  "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",
@@ -6760,6 +7071,26 @@
6760
7071
  "name": "part(option)",
6761
7072
  "description": "One month or year in the list"
6762
7073
  },
7074
+ {
7075
+ "name": "part(step-label)",
7076
+ "description": "The label above the current list under `type=\"month\"`: month or year, and under `range` start or end"
7077
+ },
7078
+ {
7079
+ "name": "part(step-summary)",
7080
+ "description": "A finished step under `type=\"month\"`, its label and pick; pressing it returns to that step"
7081
+ },
7082
+ {
7083
+ "name": "part(actions)",
7084
+ "description": "The row under the calendar body holding the Today button (`show-today`) and, in the fullscreen panel, the Done button"
7085
+ },
7086
+ {
7087
+ "name": "part(today)",
7088
+ "description": "The Today button: picks today, or the current month under `type=\"month\"`"
7089
+ },
7090
+ {
7091
+ "name": "part(done)",
7092
+ "description": "The Done button of the fullscreen panel (narrow viewports): commits what the panel holds and closes"
7093
+ },
6763
7094
  {
6764
7095
  "name": "part(root)",
6765
7096
  "description": "The separator line element itself"
@@ -6960,6 +7291,14 @@
6960
7291
  "description": "The inner c-icon-button carrying the menu icon"
6961
7292
  },
6962
7293
  { "name": "part(input)", "description": "The text input" },
7294
+ {
7295
+ "name": "part(step-up)",
7296
+ "description": "The button that steps the number up"
7297
+ },
7298
+ {
7299
+ "name": "part(step-down)",
7300
+ "description": "The button that steps the number down"
7301
+ },
6963
7302
  {
6964
7303
  "name": "part(root)",
6965
7304
  "description": "The wrapper laying out the label, the digit inputs and the message"
@@ -7273,6 +7612,60 @@
7273
7612
  "name": "part(mask-guide)",
7274
7613
  "description": "The faint rest of the input mask, shown behind the typed text"
7275
7614
  },
7615
+ {
7616
+ "name": "part(input)",
7617
+ "description": "The text input; under `range` both the start and the end input"
7618
+ },
7619
+ {
7620
+ "name": "part(separator)",
7621
+ "description": "The dash between the start and end inputs under `range`"
7622
+ },
7623
+ {
7624
+ "name": "part(panel)",
7625
+ "description": "The top-layer popover container anchored below the field"
7626
+ },
7627
+ {
7628
+ "name": "part(card)",
7629
+ "description": "The dialog surface inside the panel holding the columns"
7630
+ },
7631
+ {
7632
+ "name": "part(heading-row)",
7633
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
7634
+ },
7635
+ {
7636
+ "name": "part(heading)",
7637
+ "description": "The field label naming the fullscreen panel"
7638
+ },
7639
+ {
7640
+ "name": "part(close)",
7641
+ "description": "The close button of the fullscreen panel"
7642
+ },
7643
+ {
7644
+ "name": "part(end-switch)",
7645
+ "description": "The Start | End switch above the columns under `range`"
7646
+ },
7647
+ {
7648
+ "name": "part(end-tab)",
7649
+ "description": "One end's button in the end switch"
7650
+ },
7651
+ { "name": "part(columns)", "description": "The row of time columns" },
7652
+ {
7653
+ "name": "part(column)",
7654
+ "description": "One time column: hours, minutes or AM/PM"
7655
+ },
7656
+ { "name": "part(option)", "description": "One row of a time column" },
7657
+ {
7658
+ "name": "part(actions)",
7659
+ "description": "The row under the columns holding the Now button (`show-now`) and, in the fullscreen panel, the Done button"
7660
+ },
7661
+ {
7662
+ "name": "part(now)",
7663
+ "description": "The Now button: commits the current time"
7664
+ },
7665
+ {
7666
+ "name": "part(done)",
7667
+ "description": "The Done button of the fullscreen panel (narrow viewports): commits what the panel holds and closes"
7668
+ },
7276
7669
  {
7277
7670
  "name": "part(root)",
7278
7671
  "description": "The toast's outer box: the inverted-surface pill carrying the shadow"
@@ -115,6 +115,13 @@ export interface CDatePickerProps {
115
115
  * @defaultable false
116
116
  */
117
117
  shadow?: boolean;
118
+ /**
119
+ * Show a Today button under the calendar that picks today ("This month"
120
+ * under `type="month"`)
121
+ *
122
+ * @defaultable false
123
+ */
124
+ showToday?: boolean;
118
125
  /**
119
126
  * Show ISO 8601 week numbers beside the calendar rows (meaningful with a
120
127
  * Monday week start)
@@ -136,17 +143,22 @@ export interface CDatePickerProps {
136
143
  * @defaultable {}
137
144
  */
138
145
  texts?: CDatePickerTexts;
146
+ /**
147
+ * What the field picks: a calendar date, or a year and a month
148
+ * (`'YYYY-MM'`)
149
+ */
150
+ type?: CDatePickerType;
139
151
  /**
140
152
  * Set the validity of the field
141
153
  */
142
154
  valid?: boolean;
143
155
  /**
144
- * The date as an ISO `YYYY-MM-DD` string, or `{ start, end }` under
145
- * `range`; `null` when empty
156
+ * The date as an ISO `YYYY-MM-DD` string (an ISO `YYYY-MM` month under
157
+ * `type="month"`), or `{ start, end }` under `range`; `null` when empty
146
158
  */
147
159
  value?: CDatePickerValue;
148
160
  }
149
- /** A date range: ISO `YYYY-MM-DD` ends, either of which may be `null` while only one is typed. */
161
+ /** A date range: ISO `YYYY-MM-DD` ends (`YYYY-MM` under `type="month"`), either of which may be `null` while only one is typed. */
150
162
  export interface CDatePickerRange {
151
163
  /** The last day of the range, inclusive. */
152
164
  end: null | string;
@@ -175,8 +187,16 @@ export interface CDatePickerTexts {
175
187
  closePanel?: string;
176
188
  /** A day's accessible name in the grid; receives the ISO date. */
177
189
  date?: (iso: string) => string;
190
+ /** Label of the Done button in the fullscreen panel (narrow viewports). */
191
+ done?: string;
178
192
  /** Accessible name of the end input under `range`. */
179
193
  end?: string;
194
+ /** Label of the end's month step under `type="month"` and `range`; also the end input's name there. */
195
+ endMonth?: string;
196
+ /** Label of the end's year step under `type="month"` and `range`. */
197
+ endYear?: string;
198
+ /** Label of the month step under `type="month"`. */
199
+ month?: string;
180
200
  /** Twelve month names, January first. */
181
201
  months?: string[];
182
202
  /** Twelve short month names, January first — shown on the month button. */
@@ -199,6 +219,14 @@ export interface CDatePickerTexts {
199
219
  selectYear?: string;
200
220
  /** Accessible name of the start input under `range`. */
201
221
  start?: string;
222
+ /** Label of the start's month step under `type="month"` and `range`; also the start input's name there. */
223
+ startMonth?: string;
224
+ /** Label of the start's year step under `type="month"` and `range`. */
225
+ startYear?: string;
226
+ /** Label of the Today button under `type="month"`. */
227
+ thisMonth?: string;
228
+ /** Label of the Today button (`show-today`). */
229
+ today?: string;
202
230
  /** Appended to the accessible name of a day that cannot be picked. */
203
231
  unavailable?: string;
204
232
  /** Seven weekday names, Sunday first. */
@@ -207,10 +235,15 @@ export interface CDatePickerTexts {
207
235
  weekdaysShort?: string[];
208
236
  /** Accessible name of the week-number column. */
209
237
  weekNumber?: string;
238
+ /** Label of the year step under `type="month"`. */
239
+ year?: string;
210
240
  }
241
+ /** What `c-date-picker` picks: a calendar date, or a year and a month (ADR-0063). */
242
+ export type CDatePickerType = 'date' | 'month';
211
243
  /**
212
- * Value of `c-date-picker`: an ISO `YYYY-MM-DD` string, a
213
- * {@link CDatePickerRange} under `range`, or `null` when empty.
244
+ * Value of `c-date-picker`: an ISO `YYYY-MM-DD` string (`YYYY-MM` under
245
+ * `type="month"`), a {@link CDatePickerRange} under `range`, or `null` when
246
+ * empty.
214
247
  */
215
248
  export type CDatePickerValue = CDatePickerRange | null | string;
216
249
  /** A day of the week numbered like `Date.getDay()`: 0 = Sunday … 6 = Saturday. */
@@ -222,6 +255,7 @@ declare const __VLS_export: import("vue").DefineComponent<CDatePickerProps, {
222
255
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<CDatePickerProps> & Readonly<{}>, {
223
256
  label: string;
224
257
  value: CDatePickerValue;
258
+ type: CDatePickerType;
225
259
  name: string;
226
260
  required: boolean;
227
261
  disabled: boolean;
@@ -243,5 +277,6 @@ declare const __VLS_export: import("vue").DefineComponent<CDatePickerProps, {
243
277
  max: string;
244
278
  min: string;
245
279
  range: boolean;
280
+ showToday: boolean;
246
281
  showWeekNumbers: boolean;
247
282
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;