@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.
@@ -264,7 +264,7 @@
264
264
  "owner": "c-date-picker"
265
265
  },
266
266
  {
267
- "declaration": "export interface CDatePickerProps {\n /**\n * Make the value clearable\n */\n clearable?: boolean;\n /**\n * Disable the field\n */\n disabled?: boolean;\n /**\n * Dates that cannot be picked: ISO dates and inclusive `{ start, end }`\n * spans. Arrays have no attribute form — bind as a DOM property\n */\n disabledDates?: CDatePickerDisabledDate[];\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * First day of the week in the calendar, numbered like `Date.getDay()`:\n * 0 = Sunday, 1 = Monday … 6 = Saturday\n *\n * @defaultable 1\n */\n firstDayOfWeek?: CDatePickerWeekday;\n /**\n * 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`\n *\n * @defaultable 'dd.MM.yyyy'\n * @freeform\n */\n format?: string;\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n /**\n * Predicate for dates that cannot be picked (weekends, say); receives an\n * ISO date. Functions have no attribute form — bind as a DOM property\n */\n isDateDisabled?: (iso: string) => boolean;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n /**\n * The latest date that can be picked or typed, as an ISO date; also bounds\n * the calendar's navigation\n *\n * @freeform\n */\n max?: string;\n /**\n * The earliest date that can be picked or typed, as an ISO date; also\n * bounds the calendar's navigation\n *\n * @freeform\n */\n min?: string;\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n /**\n * Placeholder of the input; the `format` pattern when empty\n *\n * @freeform\n */\n placeholder?: string;\n /**\n * Pick a range: the value becomes `{ start, end }` and the field holds two\n * inputs\n */\n range?: boolean;\n /**\n * Set the field as required\n */\n required?: boolean;\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Show ISO 8601 week numbers beside the calendar rows (meaningful with a\n * Monday week start)\n *\n * @defaultable false\n */\n showWeekNumbers?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * UI text overrides (i18n), merged over the names `Intl` gives for the\n * page's `lang` and the English defaults. Objects have no attribute form —\n * bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CDatePickerTexts;\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n /**\n * The date as an ISO `YYYY-MM-DD` string, or `{ start, end }` under\n * `range`; `null` when empty\n */\n value?: CDatePickerValue;\n}",
267
+ "declaration": "export interface CDatePickerProps {\n /**\n * Make the value clearable\n */\n clearable?: boolean;\n /**\n * Disable the field\n */\n disabled?: boolean;\n /**\n * Dates that cannot be picked: ISO dates and inclusive `{ start, end }`\n * spans. Arrays have no attribute form — bind as a DOM property\n */\n disabledDates?: CDatePickerDisabledDate[];\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * First day of the week in the calendar, numbered like `Date.getDay()`:\n * 0 = Sunday, 1 = Monday … 6 = Saturday\n *\n * @defaultable 1\n */\n firstDayOfWeek?: CDatePickerWeekday;\n /**\n * 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`\n *\n * @defaultable 'dd.MM.yyyy'\n * @freeform\n */\n format?: string;\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n /**\n * Predicate for dates that cannot be picked (weekends, say); receives an\n * ISO date. Functions have no attribute form — bind as a DOM property\n */\n isDateDisabled?: (iso: string) => boolean;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n /**\n * The latest date that can be picked or typed, as an ISO date; also bounds\n * the calendar's navigation\n *\n * @freeform\n */\n max?: string;\n /**\n * The earliest date that can be picked or typed, as an ISO date; also\n * bounds the calendar's navigation\n *\n * @freeform\n */\n min?: string;\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n /**\n * Placeholder of the input; the `format` pattern when empty\n *\n * @freeform\n */\n placeholder?: string;\n /**\n * Pick a range: the value becomes `{ start, end }` and the field holds two\n * inputs\n */\n range?: boolean;\n /**\n * Set the field as required\n */\n required?: boolean;\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Show a Today button under the calendar that picks today (\"This month\"\n * under `type=\"month\"`)\n *\n * @defaultable false\n */\n showToday?: boolean;\n /**\n * Show ISO 8601 week numbers beside the calendar rows (meaningful with a\n * Monday week start)\n *\n * @defaultable false\n */\n showWeekNumbers?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * UI text overrides (i18n), merged over the names `Intl` gives for the\n * page's `lang` and the English defaults. Objects have no attribute form —\n * bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CDatePickerTexts;\n /**\n * What the field picks: a calendar date, or a year and a month\n * (`'YYYY-MM'`)\n */\n type?: CDatePickerType;\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n /**\n * 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\n */\n value?: CDatePickerValue;\n}",
268
268
  "description": "",
269
269
  "kind": "interface",
270
270
  "name": "CDatePickerProps",
@@ -272,7 +272,7 @@
272
272
  },
273
273
  {
274
274
  "declaration": "export interface CDatePickerRange {\n /** The last day of the range, inclusive. */\n end: null | string;\n /** The first day of the range. */\n start: null | string;\n}",
275
- "description": "A date range: ISO `YYYY-MM-DD` ends, either of which may be `null` while only one is typed.",
275
+ "description": "A date range: ISO `YYYY-MM-DD` ends (`YYYY-MM` under `type=\"month\"`), either of which may be `null` while only one is typed.",
276
276
  "kind": "interface",
277
277
  "name": "CDatePickerRange",
278
278
  "owner": "c-date-picker"
@@ -285,15 +285,22 @@
285
285
  "owner": "c-date-picker"
286
286
  },
287
287
  {
288
- "declaration": "export interface CDatePickerTexts {\n /** Accessible name of the dialog when the field has no label. */\n chooseDate?: string;\n /** Accessible label of the clear button. */\n clearSelection?: string;\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n /** A day's accessible name in the grid; receives the ISO date. */\n date?: (iso: string) => string;\n /** Accessible name of the end input under `range`. */\n end?: string;\n /** Twelve month names, January first. */\n months?: string[];\n /** Twelve short month names, January first — shown on the month button. */\n monthsShort?: string[];\n /** Accessible label of the next-month arrow. */\n nextMonth?: string;\n /** Accessible label of the next-year arrow. */\n nextYear?: string;\n /** Accessible label of the calendar button. */\n openCalendar?: string;\n /** Announcement once a range's first day is picked; receives that day's name. */\n pendingStart?: (date: string) => string;\n /** Accessible label of the previous-month arrow. */\n previousMonth?: string;\n /** Accessible label of the previous-year arrow. */\n previousYear?: string;\n /** Accessible label of the month button and the month list. */\n selectMonth?: string;\n /** Accessible label of the year button and the year list. */\n selectYear?: string;\n /** Accessible name of the start input under `range`. */\n start?: string;\n /** Appended to the accessible name of a day that cannot be picked. */\n unavailable?: string;\n /** Seven weekday names, Sunday first. */\n weekdays?: string[];\n /** Seven short weekday names, Sunday first — the grid's column heads. */\n weekdaysShort?: string[];\n /** Accessible name of the week-number column. */\n weekNumber?: string;\n}",
288
+ "declaration": "export interface CDatePickerTexts {\n /** Accessible name of the dialog when the field has no label. */\n chooseDate?: string;\n /** Accessible label of the clear button. */\n clearSelection?: string;\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n /** A day's accessible name in the grid; receives the ISO date. */\n date?: (iso: string) => string;\n /** Label of the Done button in the fullscreen panel (narrow viewports). */\n done?: string;\n /** Accessible name of the end input under `range`. */\n end?: string;\n /** Label of the end's month step under `type=\"month\"` and `range`; also the end input's name there. */\n endMonth?: string;\n /** Label of the end's year step under `type=\"month\"` and `range`. */\n endYear?: string;\n /** Label of the month step under `type=\"month\"`. */\n month?: string;\n /** Twelve month names, January first. */\n months?: string[];\n /** Twelve short month names, January first — shown on the month button. */\n monthsShort?: string[];\n /** Accessible label of the next-month arrow. */\n nextMonth?: string;\n /** Accessible label of the next-year arrow. */\n nextYear?: string;\n /** Accessible label of the calendar button. */\n openCalendar?: string;\n /** Announcement once a range's first day is picked; receives that day's name. */\n pendingStart?: (date: string) => string;\n /** Accessible label of the previous-month arrow. */\n previousMonth?: string;\n /** Accessible label of the previous-year arrow. */\n previousYear?: string;\n /** Accessible label of the month button and the month list. */\n selectMonth?: string;\n /** Accessible label of the year button and the year list. */\n selectYear?: string;\n /** Accessible name of the start input under `range`. */\n start?: string;\n /** Label of the start's month step under `type=\"month\"` and `range`; also the start input's name there. */\n startMonth?: string;\n /** Label of the start's year step under `type=\"month\"` and `range`. */\n startYear?: string;\n /** Label of the Today button under `type=\"month\"`. */\n thisMonth?: string;\n /** Label of the Today button (`show-today`). */\n today?: string;\n /** Appended to the accessible name of a day that cannot be picked. */\n unavailable?: string;\n /** Seven weekday names, Sunday first. */\n weekdays?: string[];\n /** Seven short weekday names, Sunday first — the grid's column heads. */\n weekdaysShort?: string[];\n /** Accessible name of the week-number column. */\n weekNumber?: string;\n /** Label of the year step under `type=\"month\"`. */\n year?: string;\n}",
289
289
  "description": "UI texts of `c-date-picker`, merged key by key over the names `Intl`\ngives for the page's `lang` and the English defaults. Weekday arrays are\nindexed like `Date.getDay()`: Sunday first.",
290
290
  "kind": "interface",
291
291
  "name": "CDatePickerTexts",
292
292
  "owner": "c-date-picker"
293
293
  },
294
+ {
295
+ "declaration": "export type CDatePickerType = 'date' | 'month';",
296
+ "description": "What `c-date-picker` picks: a calendar date, or a year and a month (ADR-0063).",
297
+ "kind": "type-alias",
298
+ "name": "CDatePickerType",
299
+ "owner": "c-date-picker"
300
+ },
294
301
  {
295
302
  "declaration": "export type CDatePickerValue = CDatePickerRange | null | string;",
296
- "description": "Value of `c-date-picker`: an ISO `YYYY-MM-DD` string, a\n under `range`, or `null` when empty.",
303
+ "description": "Value of `c-date-picker`: an ISO `YYYY-MM-DD` string (`YYYY-MM` under\n`type=\"month\"`), a under `range`, or `null` when\nempty.",
297
304
  "kind": "type-alias",
298
305
  "name": "CDatePickerValue",
299
306
  "owner": "c-date-picker"
@@ -355,12 +362,19 @@
355
362
  "owner": "c-login-card-actions"
356
363
  },
357
364
  {
358
- "declaration": "export interface CNumberFieldProps {\n /**\n * The most fraction digits the field takes; `0` makes it an integer field\n *\n * @defaultable 0\n */\n decimals?: number;\n /**\n * The decimal separator. Empty follows the page's `lang` (`,` for `fi`, `.` for `en`)\n *\n * @defaultable ''\n * @freeform one character\n */\n decimalSeparator?: string;\n /**\n * Disable the field\n */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * Pad the fraction to exactly `decimals` digits when the field is left (`12,5` → `12,50`)\n *\n * @defaultable false\n */\n fixedDecimals?: boolean;\n /**\n * The thousands separator. Empty follows the page's `lang` (a space for `fi`, `,` for `en`)\n *\n * @defaultable ''\n * @freeform one character\n */\n groupSeparator?: string;\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the input\n *\n * @freeform\n */\n hostId?: string;\n /**\n * Label of the field\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n /**\n * The largest number in range; a larger one is kept and reported as out of range\n */\n max?: null | number;\n /**\n * 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\n */\n min?: null | number;\n /**\n * Name of the input\n *\n * @freeform\n */\n name?: string;\n /**\n * Placeholder of the input\n *\n * @freeform\n */\n placeholder?: string;\n /**\n * Mark as readonly\n */\n readonly?: boolean;\n /**\n * Set the field as required\n */\n required?: boolean;\n /**\n * Shadow variant of the field\n *\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n /**\n * 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`\n */\n value?: null | number | string;\n}",
365
+ "declaration": "export interface CNumberFieldProps {\n /**\n * The most fraction digits the field takes; `0` makes it an integer field\n *\n * @defaultable 0\n */\n decimals?: number;\n /**\n * The decimal separator. Empty follows the page's `lang` (`,` for `fi`, `.` for `en`)\n *\n * @defaultable ''\n * @freeform one character\n */\n decimalSeparator?: string;\n /**\n * Disable the field\n */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * Pad the fraction to exactly `decimals` digits when the field is left (`12,5` → `12,50`)\n *\n * @defaultable false\n */\n fixedDecimals?: boolean;\n /**\n * The thousands separator. Empty follows the page's `lang` (a space for `fi`, `,` for `en`)\n *\n * @defaultable ''\n * @freeform one character\n */\n groupSeparator?: string;\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the input\n *\n * @freeform\n */\n hostId?: string;\n /**\n * Label of the field\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n /**\n * The largest number in range; a larger one is kept and reported as out of range\n */\n max?: null | number;\n /**\n * 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\n */\n min?: null | number;\n /**\n * Name of the input\n *\n * @freeform\n */\n name?: string;\n /**\n * Placeholder of the input\n *\n * @freeform\n */\n placeholder?: string;\n /**\n * Mark as readonly\n */\n readonly?: boolean;\n /**\n * Set the field as required\n */\n required?: boolean;\n /**\n * Shadow variant of the field\n *\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * The spacing of the grid the step buttons and arrow keys move along, counted from `min` (or `0`)\n *\n * @defaultable 1\n */\n step?: number;\n /**\n * UI text overrides (i18n), merged over the English defaults. Objects have no attribute form — bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CNumberFieldTexts;\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n /**\n * 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`\n */\n value?: null | number | string;\n}",
359
366
  "description": "",
360
367
  "kind": "interface",
361
368
  "name": "CNumberFieldProps",
362
369
  "owner": "c-number-field"
363
370
  },
371
+ {
372
+ "declaration": "export interface CNumberFieldTexts {\n /** Accessible label of the step-down button. */\n decrease?: string;\n /** Accessible label of the step-up button. */\n increase?: string;\n}",
373
+ "description": "UI texts of `c-number-field`, merged key by key over the English defaults.",
374
+ "kind": "interface",
375
+ "name": "CNumberFieldTexts",
376
+ "owner": "c-number-field"
377
+ },
364
378
  {
365
379
  "declaration": "export interface CPaginationOptions {\n currentPage?: number;\n endTo?: number;\n itemCount: number;\n itemsPerPage?: number;\n pageSizes?: number[];\n startFrom?: number;\n textOverrides?: Record<string, unknown>;\n totalVisible?: number;\n}",
366
380
  "description": "",
@@ -501,6 +515,41 @@
501
515
  "name": "CTextFieldType",
502
516
  "owner": "c-text-field"
503
517
  },
518
+ {
519
+ "declaration": "export interface CTimePickerProps {\n /**\n * Make the value clearable\n */\n clearable?: boolean;\n /**\n * Disable the field\n */\n disabled?: boolean;\n /**\n * Error message shown in place of the hint while the field is invalid\n *\n * @freeform\n */\n errorMessage?: string;\n /**\n * 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\n * any separators, e.g. `HH:mm` or `h:mm a`\n *\n * @defaultable 'HH.mm'\n * @freeform\n */\n format?: string;\n /**\n * Hide the hint and error messages\n *\n * @defaultable false\n */\n hideDetails?: boolean;\n /**\n * Hint text for the field\n *\n * @freeform\n */\n hint?: string;\n /**\n * Id of the element\n *\n * @freeform\n */\n hostId?: string;\n /**\n * Element label\n *\n * @freeform\n */\n label?: string;\n /**\n * Label on top of the field\n *\n * @defaultable false\n */\n labelOnTop?: boolean;\n /**\n * The latest time that can be picked or typed, as an ISO `HH:mm` time\n *\n * @freeform\n */\n max?: string;\n /**\n * The earliest time that can be picked or typed, as an ISO `HH:mm` time;\n * a `min` after `max` is invalid and both are ignored\n *\n * @freeform\n */\n min?: string;\n /**\n * Minutes between the minute column's rows; typed times need not fall on\n * the step\n */\n minuteStep?: number;\n /**\n * Input field name\n *\n * @freeform\n */\n name?: string;\n /**\n * Placeholder of the input; the `format` pattern when empty\n *\n * @freeform\n */\n placeholder?: string;\n /**\n * Pick a range: the value becomes `{ start, end }` and the field holds two\n * inputs\n */\n range?: boolean;\n /**\n * Set the field as required\n */\n required?: boolean;\n /**\n * Shadow variant\n *\n * @defaultable false\n */\n shadow?: boolean;\n /**\n * Show a Now button under the columns that commits the current time\n *\n * @defaultable false\n */\n showNow?: boolean;\n /**\n * Field height: the 52px default (the shared control height) or the 36px `small` box\n *\n * @defaultable 'default'\n */\n size?: CFieldSize;\n /**\n * UI text overrides (i18n), merged over the AM/PM texts `Intl` gives for\n * the page's `lang` and the English defaults. Objects have no attribute\n * form — bind as a DOM property\n *\n * @defaultable {}\n */\n texts?: CTimePickerTexts;\n /**\n * Set the validity of the field\n */\n valid?: boolean;\n /**\n * The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\n * under `range`; `null` when empty\n */\n value?: CTimePickerValue;\n}",
520
+ "description": "",
521
+ "kind": "interface",
522
+ "name": "CTimePickerProps",
523
+ "owner": "c-time-picker"
524
+ },
525
+ {
526
+ "declaration": "export interface CTimePickerRange {\n /** The end of the range; earlier than the start for an overnight range. */\n end: null | string;\n /** The start of the range. */\n start: null | string;\n}",
527
+ "description": "A time range: ISO `HH:mm` ends, either of which may be `null` while only one is typed; an end before the start spans midnight.",
528
+ "kind": "interface",
529
+ "name": "CTimePickerRange",
530
+ "owner": "c-time-picker"
531
+ },
532
+ {
533
+ "declaration": "export type CTimePickerText = { end: string; start: string } | string;",
534
+ "description": "The text committed from the field, as typed: a string, or both ends'\ntexts under `range`.",
535
+ "kind": "type-alias",
536
+ "name": "CTimePickerText",
537
+ "owner": "c-time-picker"
538
+ },
539
+ {
540
+ "declaration": "export interface CTimePickerTexts {\n /** The period before noon in a 12-hour `format`. */\n am?: string;\n /** Accessible name of the dialog when the field has no label. */\n chooseTime?: string;\n /** Accessible label of the clear button. */\n clearSelection?: string;\n /** Accessible label of the close button in the fullscreen panel (narrow viewports). */\n closePanel?: string;\n /** Label of the Done button in the fullscreen panel (narrow viewports). */\n done?: string;\n /** Name of the end input and the end tab under `range`. */\n end?: string;\n /** Accessible name of the hour column. */\n hours?: string;\n /** Accessible name of the minute column. */\n minutes?: string;\n /** Label of the Now button (`show-now`). */\n now?: string;\n /** Accessible label of the clock button. */\n openClock?: string;\n /** Accessible name of the AM/PM column. */\n period?: string;\n /** The period from noon in a 12-hour `format`. */\n pm?: string;\n /** Name of the start input and the start tab under `range`. */\n start?: string;\n}",
541
+ "description": "UI texts of `c-time-picker`, merged key by key over the AM/PM texts\n`Intl` gives for the page's `lang` and the English defaults.",
542
+ "kind": "interface",
543
+ "name": "CTimePickerTexts",
544
+ "owner": "c-time-picker"
545
+ },
546
+ {
547
+ "declaration": "export type CTimePickerValue = CTimePickerRange | null | string;",
548
+ "description": "Value of `c-time-picker`: an ISO `HH:mm` string, a\n under `range`, or `null` when empty.",
549
+ "kind": "type-alias",
550
+ "name": "CTimePickerValue",
551
+ "owner": "c-time-picker"
552
+ },
504
553
  {
505
554
  "declaration": "export interface CToastProps {\n /**\n * Messages\n *\n * @seeded from csc-ui — verify\n */\n message?: CToastMessage | null;\n}",
506
555
  "description": "",
@@ -3857,6 +3906,18 @@
3857
3906
  "defaultable": true
3858
3907
  }
3859
3908
  },
3909
+ {
3910
+ "fieldName": "showToday",
3911
+ "name": "show-today",
3912
+ "description": "Show a Today button under the calendar that picks today (\"This month\"\nunder `type=\"month\"`)",
3913
+ "type": {
3914
+ "text": "boolean"
3915
+ },
3916
+ "default": "false",
3917
+ "csc": {
3918
+ "defaultable": true
3919
+ }
3920
+ },
3860
3921
  {
3861
3922
  "fieldName": "showWeekNumbers",
3862
3923
  "name": "show-week-numbers",
@@ -3882,6 +3943,18 @@
3882
3943
  "defaultable": true
3883
3944
  }
3884
3945
  },
3946
+ {
3947
+ "fieldName": "type",
3948
+ "name": "type",
3949
+ "description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
3950
+ "type": {
3951
+ "text": "'date' | 'month'"
3952
+ },
3953
+ "default": "'date'",
3954
+ "csc": {
3955
+ "typeAlias": "CDatePickerType"
3956
+ }
3957
+ },
3885
3958
  {
3886
3959
  "fieldName": "valid",
3887
3960
  "name": "valid",
@@ -3894,7 +3967,7 @@
3894
3967
  {
3895
3968
  "fieldName": "value",
3896
3969
  "name": "value",
3897
- "description": "The date as an ISO `YYYY-MM-DD` string, or `{ start, end }` under\n`range`; `null` when empty",
3970
+ "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",
3898
3971
  "type": {
3899
3972
  "text": "CDatePickerValue"
3900
3973
  },
@@ -3989,6 +4062,26 @@
3989
4062
  {
3990
4063
  "name": "option",
3991
4064
  "description": "One month or year in the list"
4065
+ },
4066
+ {
4067
+ "name": "step-label",
4068
+ "description": "The label above the current list under `type=\"month\"`: month or year, and under `range` start or end"
4069
+ },
4070
+ {
4071
+ "name": "step-summary",
4072
+ "description": "A finished step under `type=\"month\"`, its label and pick; pressing it returns to that step"
4073
+ },
4074
+ {
4075
+ "name": "actions",
4076
+ "description": "The row under the calendar body holding the Today button (`show-today`) and, in the fullscreen panel, the Done button"
4077
+ },
4078
+ {
4079
+ "name": "today",
4080
+ "description": "The Today button: picks today, or the current month under `type=\"month\"`"
4081
+ },
4082
+ {
4083
+ "name": "done",
4084
+ "description": "The Done button of the fullscreen panel (narrow viewports): commits what the panel holds and closes"
3992
4085
  }
3993
4086
  ],
3994
4087
  "cssProperties": [],
@@ -4266,6 +4359,19 @@
4266
4359
  "defaultable": true
4267
4360
  }
4268
4361
  },
4362
+ {
4363
+ "kind": "field",
4364
+ "name": "showToday",
4365
+ "privacy": "public",
4366
+ "description": "Show a Today button under the calendar that picks today (\"This month\"\nunder `type=\"month\"`)",
4367
+ "type": {
4368
+ "text": "boolean"
4369
+ },
4370
+ "default": "false",
4371
+ "csc": {
4372
+ "defaultable": true
4373
+ }
4374
+ },
4269
4375
  {
4270
4376
  "kind": "field",
4271
4377
  "name": "showWeekNumbers",
@@ -4306,6 +4412,19 @@
4306
4412
  "defaultable": true
4307
4413
  }
4308
4414
  },
4415
+ {
4416
+ "kind": "field",
4417
+ "name": "type",
4418
+ "privacy": "public",
4419
+ "description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
4420
+ "type": {
4421
+ "text": "'date' | 'month'"
4422
+ },
4423
+ "default": "'date'",
4424
+ "csc": {
4425
+ "typeAlias": "CDatePickerType"
4426
+ }
4427
+ },
4309
4428
  {
4310
4429
  "kind": "field",
4311
4430
  "name": "valid",
@@ -4320,7 +4439,7 @@
4320
4439
  "kind": "field",
4321
4440
  "name": "value",
4322
4441
  "privacy": "public",
4323
- "description": "The date as an ISO `YYYY-MM-DD` string, or `{ start, end }` under\n`range`; `null` when empty",
4442
+ "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",
4324
4443
  "type": {
4325
4444
  "text": "CDatePickerValue"
4326
4445
  },
@@ -7883,6 +8002,18 @@
7883
8002
  "defaultable": true
7884
8003
  }
7885
8004
  },
8005
+ {
8006
+ "fieldName": "step",
8007
+ "name": "step",
8008
+ "description": "The spacing of the grid the step buttons and arrow keys move along, counted from `min` (or `0`)",
8009
+ "type": {
8010
+ "text": "number"
8011
+ },
8012
+ "default": "1",
8013
+ "csc": {
8014
+ "defaultable": true
8015
+ }
8016
+ },
7886
8017
  {
7887
8018
  "fieldName": "valid",
7888
8019
  "name": "valid",
@@ -7906,6 +8037,14 @@
7906
8037
  {
7907
8038
  "name": "input",
7908
8039
  "description": "The text input"
8040
+ },
8041
+ {
8042
+ "name": "step-up",
8043
+ "description": "The button that steps the number up"
8044
+ },
8045
+ {
8046
+ "name": "step-down",
8047
+ "description": "The button that steps the number down"
7909
8048
  }
7910
8049
  ],
7911
8050
  "cssProperties": [],
@@ -7921,7 +8060,7 @@
7921
8060
  "type": {
7922
8061
  "text": "CustomEvent<null | number>"
7923
8062
  },
7924
- "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."
8063
+ "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."
7925
8064
  },
7926
8065
  {
7927
8066
  "name": "input",
@@ -8174,6 +8313,32 @@
8174
8313
  "defaultable": true
8175
8314
  }
8176
8315
  },
8316
+ {
8317
+ "kind": "field",
8318
+ "name": "step",
8319
+ "privacy": "public",
8320
+ "description": "The spacing of the grid the step buttons and arrow keys move along, counted from `min` (or `0`)",
8321
+ "type": {
8322
+ "text": "number"
8323
+ },
8324
+ "default": "1",
8325
+ "csc": {
8326
+ "defaultable": true
8327
+ }
8328
+ },
8329
+ {
8330
+ "kind": "field",
8331
+ "name": "texts",
8332
+ "privacy": "public",
8333
+ "description": "UI text overrides (i18n), merged over the English defaults. Objects have no attribute form — bind as a DOM property",
8334
+ "type": {
8335
+ "text": "CNumberFieldTexts"
8336
+ },
8337
+ "default": "{}",
8338
+ "csc": {
8339
+ "defaultable": true
8340
+ }
8341
+ },
8177
8342
  {
8178
8343
  "kind": "field",
8179
8344
  "name": "valid",
@@ -8212,7 +8377,7 @@
8212
8377
  },
8213
8378
  {
8214
8379
  "name": "post",
8215
- "description": "Content after the number, such as a unit"
8380
+ "description": "Content after the number, such as a unit; the step buttons follow it"
8216
8381
  }
8217
8382
  ]
8218
8383
  }
@@ -13767,6 +13932,654 @@
13767
13932
  "kind": "javascript-module",
13768
13933
  "path": "src/components/c-text-field/CTextField.vue"
13769
13934
  },
13935
+ {
13936
+ "declarations": [
13937
+ {
13938
+ "customElement": true,
13939
+ "kind": "class",
13940
+ "name": "CTimePicker",
13941
+ "tagName": "c-time-picker",
13942
+ "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`.",
13943
+ "csc": {
13944
+ "usage": "docs/c-time-picker/usage.md"
13945
+ },
13946
+ "attributes": [
13947
+ {
13948
+ "fieldName": "clearable",
13949
+ "name": "clearable",
13950
+ "description": "Make the value clearable",
13951
+ "type": {
13952
+ "text": "boolean"
13953
+ },
13954
+ "default": "false"
13955
+ },
13956
+ {
13957
+ "fieldName": "disabled",
13958
+ "name": "disabled",
13959
+ "description": "Disable the field",
13960
+ "type": {
13961
+ "text": "boolean"
13962
+ },
13963
+ "default": "false"
13964
+ },
13965
+ {
13966
+ "fieldName": "errorMessage",
13967
+ "name": "error-message",
13968
+ "description": "Error message shown in place of the hint while the field is invalid",
13969
+ "type": {
13970
+ "text": "string"
13971
+ },
13972
+ "default": "''",
13973
+ "csc": {
13974
+ "freeform": true
13975
+ }
13976
+ },
13977
+ {
13978
+ "fieldName": "format",
13979
+ "name": "format",
13980
+ "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`",
13981
+ "type": {
13982
+ "text": "string"
13983
+ },
13984
+ "default": "'HH.mm'",
13985
+ "csc": {
13986
+ "freeform": true,
13987
+ "defaultable": true
13988
+ }
13989
+ },
13990
+ {
13991
+ "fieldName": "hideDetails",
13992
+ "name": "hide-details",
13993
+ "description": "Hide the hint and error messages",
13994
+ "type": {
13995
+ "text": "boolean"
13996
+ },
13997
+ "default": "false",
13998
+ "csc": {
13999
+ "defaultable": true
14000
+ }
14001
+ },
14002
+ {
14003
+ "fieldName": "hint",
14004
+ "name": "hint",
14005
+ "description": "Hint text for the field",
14006
+ "type": {
14007
+ "text": "string"
14008
+ },
14009
+ "default": "''",
14010
+ "csc": {
14011
+ "freeform": true
14012
+ }
14013
+ },
14014
+ {
14015
+ "fieldName": "hostId",
14016
+ "name": "host-id",
14017
+ "description": "Id of the element",
14018
+ "type": {
14019
+ "text": "string"
14020
+ },
14021
+ "default": "''",
14022
+ "csc": {
14023
+ "freeform": true
14024
+ }
14025
+ },
14026
+ {
14027
+ "fieldName": "label",
14028
+ "name": "label",
14029
+ "description": "Element label",
14030
+ "type": {
14031
+ "text": "string"
14032
+ },
14033
+ "default": "''",
14034
+ "csc": {
14035
+ "freeform": true
14036
+ }
14037
+ },
14038
+ {
14039
+ "fieldName": "labelOnTop",
14040
+ "name": "label-on-top",
14041
+ "description": "Label on top of the field",
14042
+ "type": {
14043
+ "text": "boolean"
14044
+ },
14045
+ "default": "false",
14046
+ "csc": {
14047
+ "defaultable": true
14048
+ }
14049
+ },
14050
+ {
14051
+ "fieldName": "max",
14052
+ "name": "max",
14053
+ "description": "The latest time that can be picked or typed, as an ISO `HH:mm` time",
14054
+ "type": {
14055
+ "text": "string"
14056
+ },
14057
+ "default": "''",
14058
+ "csc": {
14059
+ "freeform": true
14060
+ }
14061
+ },
14062
+ {
14063
+ "fieldName": "min",
14064
+ "name": "min",
14065
+ "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",
14066
+ "type": {
14067
+ "text": "string"
14068
+ },
14069
+ "default": "''",
14070
+ "csc": {
14071
+ "freeform": true
14072
+ }
14073
+ },
14074
+ {
14075
+ "fieldName": "minuteStep",
14076
+ "name": "minute-step",
14077
+ "description": "Minutes between the minute column's rows; typed times need not fall on\nthe step",
14078
+ "type": {
14079
+ "text": "number"
14080
+ },
14081
+ "default": "1"
14082
+ },
14083
+ {
14084
+ "fieldName": "name",
14085
+ "name": "name",
14086
+ "description": "Input field name",
14087
+ "type": {
14088
+ "text": "string"
14089
+ },
14090
+ "default": "''",
14091
+ "csc": {
14092
+ "freeform": true
14093
+ }
14094
+ },
14095
+ {
14096
+ "fieldName": "placeholder",
14097
+ "name": "placeholder",
14098
+ "description": "Placeholder of the input; the `format` pattern when empty",
14099
+ "type": {
14100
+ "text": "string"
14101
+ },
14102
+ "default": "''",
14103
+ "csc": {
14104
+ "freeform": true
14105
+ }
14106
+ },
14107
+ {
14108
+ "fieldName": "range",
14109
+ "name": "range",
14110
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
14111
+ "type": {
14112
+ "text": "boolean"
14113
+ },
14114
+ "default": "false"
14115
+ },
14116
+ {
14117
+ "fieldName": "required",
14118
+ "name": "required",
14119
+ "description": "Set the field as required",
14120
+ "type": {
14121
+ "text": "boolean"
14122
+ },
14123
+ "default": "false"
14124
+ },
14125
+ {
14126
+ "fieldName": "shadow",
14127
+ "name": "shadow",
14128
+ "description": "Shadow variant",
14129
+ "type": {
14130
+ "text": "boolean"
14131
+ },
14132
+ "default": "false",
14133
+ "csc": {
14134
+ "defaultable": true
14135
+ }
14136
+ },
14137
+ {
14138
+ "fieldName": "showNow",
14139
+ "name": "show-now",
14140
+ "description": "Show a Now button under the columns that commits the current time",
14141
+ "type": {
14142
+ "text": "boolean"
14143
+ },
14144
+ "default": "false",
14145
+ "csc": {
14146
+ "defaultable": true
14147
+ }
14148
+ },
14149
+ {
14150
+ "fieldName": "size",
14151
+ "name": "size",
14152
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
14153
+ "type": {
14154
+ "text": "'default' | 'small'"
14155
+ },
14156
+ "default": "'default'",
14157
+ "csc": {
14158
+ "typeAlias": "CFieldSize",
14159
+ "defaultable": true
14160
+ }
14161
+ },
14162
+ {
14163
+ "fieldName": "valid",
14164
+ "name": "valid",
14165
+ "description": "Set the validity of the field",
14166
+ "type": {
14167
+ "text": "boolean"
14168
+ },
14169
+ "default": "true"
14170
+ },
14171
+ {
14172
+ "fieldName": "value",
14173
+ "name": "value",
14174
+ "description": "The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\nunder `range`; `null` when empty",
14175
+ "type": {
14176
+ "text": "CTimePickerValue"
14177
+ },
14178
+ "default": "null"
14179
+ }
14180
+ ],
14181
+ "cssParts": [
14182
+ {
14183
+ "name": "input",
14184
+ "description": "The text input; under `range` both the start and the end input"
14185
+ },
14186
+ {
14187
+ "name": "separator",
14188
+ "description": "The dash between the start and end inputs under `range`"
14189
+ },
14190
+ {
14191
+ "name": "panel",
14192
+ "description": "The top-layer popover container anchored below the field"
14193
+ },
14194
+ {
14195
+ "name": "card",
14196
+ "description": "The dialog surface inside the panel holding the columns"
14197
+ },
14198
+ {
14199
+ "name": "heading-row",
14200
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
14201
+ },
14202
+ {
14203
+ "name": "heading",
14204
+ "description": "The field label naming the fullscreen panel"
14205
+ },
14206
+ {
14207
+ "name": "close",
14208
+ "description": "The close button of the fullscreen panel"
14209
+ },
14210
+ {
14211
+ "name": "end-switch",
14212
+ "description": "The Start | End switch above the columns under `range`"
14213
+ },
14214
+ {
14215
+ "name": "end-tab",
14216
+ "description": "One end's button in the end switch"
14217
+ },
14218
+ {
14219
+ "name": "columns",
14220
+ "description": "The row of time columns"
14221
+ },
14222
+ {
14223
+ "name": "column",
14224
+ "description": "One time column: hours, minutes or AM/PM"
14225
+ },
14226
+ {
14227
+ "name": "option",
14228
+ "description": "One row of a time column"
14229
+ },
14230
+ {
14231
+ "name": "actions",
14232
+ "description": "The row under the columns holding the Now button (`show-now`) and, in the fullscreen panel, the Done button"
14233
+ },
14234
+ {
14235
+ "name": "now",
14236
+ "description": "The Now button: commits the current time"
14237
+ },
14238
+ {
14239
+ "name": "done",
14240
+ "description": "The Done button of the fullscreen panel (narrow viewports): commits what the panel holds and closes"
14241
+ }
14242
+ ],
14243
+ "cssProperties": [],
14244
+ "cssStates": [
14245
+ {
14246
+ "name": "bad-input",
14247
+ "description": "Present while committed text names no time that can be picked"
14248
+ }
14249
+ ],
14250
+ "events": [
14251
+ {
14252
+ "name": "change",
14253
+ "type": {
14254
+ "text": "CustomEvent<CTimePickerValue>"
14255
+ },
14256
+ "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`."
14257
+ },
14258
+ {
14259
+ "name": "change:text",
14260
+ "type": {
14261
+ "text": "CustomEvent<CTimePickerText>"
14262
+ },
14263
+ "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."
14264
+ },
14265
+ {
14266
+ "name": "input",
14267
+ "type": {
14268
+ "text": "CustomEvent<void>"
14269
+ },
14270
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
14271
+ },
14272
+ {
14273
+ "name": "update:value",
14274
+ "type": {
14275
+ "text": "CustomEvent<CTimePickerValue>"
14276
+ },
14277
+ "description": "Fired alongside `change` with the same detail — the `v-model` contract."
14278
+ }
14279
+ ],
14280
+ "members": [
14281
+ {
14282
+ "kind": "field",
14283
+ "name": "clearable",
14284
+ "privacy": "public",
14285
+ "description": "Make the value clearable",
14286
+ "type": {
14287
+ "text": "boolean"
14288
+ },
14289
+ "default": "false"
14290
+ },
14291
+ {
14292
+ "kind": "field",
14293
+ "name": "disabled",
14294
+ "privacy": "public",
14295
+ "description": "Disable the field",
14296
+ "type": {
14297
+ "text": "boolean"
14298
+ },
14299
+ "default": "false"
14300
+ },
14301
+ {
14302
+ "kind": "field",
14303
+ "name": "errorMessage",
14304
+ "privacy": "public",
14305
+ "description": "Error message shown in place of the hint while the field is invalid",
14306
+ "type": {
14307
+ "text": "string"
14308
+ },
14309
+ "default": "''",
14310
+ "csc": {
14311
+ "freeform": true
14312
+ }
14313
+ },
14314
+ {
14315
+ "kind": "field",
14316
+ "name": "format",
14317
+ "privacy": "public",
14318
+ "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`",
14319
+ "type": {
14320
+ "text": "string"
14321
+ },
14322
+ "default": "'HH.mm'",
14323
+ "csc": {
14324
+ "freeform": true,
14325
+ "defaultable": true
14326
+ }
14327
+ },
14328
+ {
14329
+ "kind": "field",
14330
+ "name": "hideDetails",
14331
+ "privacy": "public",
14332
+ "description": "Hide the hint and error messages",
14333
+ "type": {
14334
+ "text": "boolean"
14335
+ },
14336
+ "default": "false",
14337
+ "csc": {
14338
+ "defaultable": true
14339
+ }
14340
+ },
14341
+ {
14342
+ "kind": "field",
14343
+ "name": "hint",
14344
+ "privacy": "public",
14345
+ "description": "Hint text for the field",
14346
+ "type": {
14347
+ "text": "string"
14348
+ },
14349
+ "default": "''",
14350
+ "csc": {
14351
+ "freeform": true
14352
+ }
14353
+ },
14354
+ {
14355
+ "kind": "field",
14356
+ "name": "hostId",
14357
+ "privacy": "public",
14358
+ "description": "Id of the element",
14359
+ "type": {
14360
+ "text": "string"
14361
+ },
14362
+ "default": "''",
14363
+ "csc": {
14364
+ "freeform": true
14365
+ }
14366
+ },
14367
+ {
14368
+ "kind": "field",
14369
+ "name": "label",
14370
+ "privacy": "public",
14371
+ "description": "Element label",
14372
+ "type": {
14373
+ "text": "string"
14374
+ },
14375
+ "default": "''",
14376
+ "csc": {
14377
+ "freeform": true
14378
+ }
14379
+ },
14380
+ {
14381
+ "kind": "field",
14382
+ "name": "labelOnTop",
14383
+ "privacy": "public",
14384
+ "description": "Label on top of the field",
14385
+ "type": {
14386
+ "text": "boolean"
14387
+ },
14388
+ "default": "false",
14389
+ "csc": {
14390
+ "defaultable": true
14391
+ }
14392
+ },
14393
+ {
14394
+ "kind": "field",
14395
+ "name": "max",
14396
+ "privacy": "public",
14397
+ "description": "The latest time that can be picked or typed, as an ISO `HH:mm` time",
14398
+ "type": {
14399
+ "text": "string"
14400
+ },
14401
+ "default": "''",
14402
+ "csc": {
14403
+ "freeform": true
14404
+ }
14405
+ },
14406
+ {
14407
+ "kind": "field",
14408
+ "name": "min",
14409
+ "privacy": "public",
14410
+ "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",
14411
+ "type": {
14412
+ "text": "string"
14413
+ },
14414
+ "default": "''",
14415
+ "csc": {
14416
+ "freeform": true
14417
+ }
14418
+ },
14419
+ {
14420
+ "kind": "field",
14421
+ "name": "minuteStep",
14422
+ "privacy": "public",
14423
+ "description": "Minutes between the minute column's rows; typed times need not fall on\nthe step",
14424
+ "type": {
14425
+ "text": "number"
14426
+ },
14427
+ "default": "1"
14428
+ },
14429
+ {
14430
+ "kind": "field",
14431
+ "name": "name",
14432
+ "privacy": "public",
14433
+ "description": "Input field name",
14434
+ "type": {
14435
+ "text": "string"
14436
+ },
14437
+ "default": "''",
14438
+ "csc": {
14439
+ "freeform": true
14440
+ }
14441
+ },
14442
+ {
14443
+ "kind": "field",
14444
+ "name": "placeholder",
14445
+ "privacy": "public",
14446
+ "description": "Placeholder of the input; the `format` pattern when empty",
14447
+ "type": {
14448
+ "text": "string"
14449
+ },
14450
+ "default": "''",
14451
+ "csc": {
14452
+ "freeform": true
14453
+ }
14454
+ },
14455
+ {
14456
+ "kind": "field",
14457
+ "name": "range",
14458
+ "privacy": "public",
14459
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
14460
+ "type": {
14461
+ "text": "boolean"
14462
+ },
14463
+ "default": "false"
14464
+ },
14465
+ {
14466
+ "kind": "field",
14467
+ "name": "required",
14468
+ "privacy": "public",
14469
+ "description": "Set the field as required",
14470
+ "type": {
14471
+ "text": "boolean"
14472
+ },
14473
+ "default": "false"
14474
+ },
14475
+ {
14476
+ "kind": "field",
14477
+ "name": "shadow",
14478
+ "privacy": "public",
14479
+ "description": "Shadow variant",
14480
+ "type": {
14481
+ "text": "boolean"
14482
+ },
14483
+ "default": "false",
14484
+ "csc": {
14485
+ "defaultable": true
14486
+ }
14487
+ },
14488
+ {
14489
+ "kind": "field",
14490
+ "name": "showNow",
14491
+ "privacy": "public",
14492
+ "description": "Show a Now button under the columns that commits the current time",
14493
+ "type": {
14494
+ "text": "boolean"
14495
+ },
14496
+ "default": "false",
14497
+ "csc": {
14498
+ "defaultable": true
14499
+ }
14500
+ },
14501
+ {
14502
+ "kind": "field",
14503
+ "name": "size",
14504
+ "privacy": "public",
14505
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
14506
+ "type": {
14507
+ "text": "'default' | 'small'"
14508
+ },
14509
+ "default": "'default'",
14510
+ "csc": {
14511
+ "typeAlias": "CFieldSize",
14512
+ "defaultable": true
14513
+ }
14514
+ },
14515
+ {
14516
+ "kind": "field",
14517
+ "name": "texts",
14518
+ "privacy": "public",
14519
+ "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",
14520
+ "type": {
14521
+ "text": "CTimePickerTexts"
14522
+ },
14523
+ "default": "{}",
14524
+ "csc": {
14525
+ "defaultable": true
14526
+ }
14527
+ },
14528
+ {
14529
+ "kind": "field",
14530
+ "name": "valid",
14531
+ "privacy": "public",
14532
+ "description": "Set the validity of the field",
14533
+ "type": {
14534
+ "text": "boolean"
14535
+ },
14536
+ "default": "true"
14537
+ },
14538
+ {
14539
+ "kind": "field",
14540
+ "name": "value",
14541
+ "privacy": "public",
14542
+ "description": "The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\nunder `range`; `null` when empty",
14543
+ "type": {
14544
+ "text": "CTimePickerValue"
14545
+ },
14546
+ "default": "null"
14547
+ },
14548
+ {
14549
+ "kind": "field",
14550
+ "name": "badInput",
14551
+ "privacy": "public",
14552
+ "readonly": true,
14553
+ "type": {
14554
+ "text": "boolean"
14555
+ },
14556
+ "description": "Whether the committed text names no time that can be picked — the value is then `null` (CONTEXT.md \"Bad input\")."
14557
+ }
14558
+ ],
14559
+ "slots": []
14560
+ }
14561
+ ],
14562
+ "exports": [
14563
+ {
14564
+ "declaration": {
14565
+ "module": "src/components/c-time-picker/CTimePicker.vue",
14566
+ "name": "CTimePicker"
14567
+ },
14568
+ "kind": "js",
14569
+ "name": "CTimePicker"
14570
+ },
14571
+ {
14572
+ "declaration": {
14573
+ "module": "src/components/c-time-picker/CTimePicker.vue",
14574
+ "name": "CTimePicker"
14575
+ },
14576
+ "kind": "custom-element-definition",
14577
+ "name": "c-time-picker"
14578
+ }
14579
+ ],
14580
+ "kind": "javascript-module",
14581
+ "path": "src/components/c-time-picker/CTimePicker.vue"
14582
+ },
13770
14583
  {
13771
14584
  "declarations": [
13772
14585
  {