@cscfi/csc-ui 4.0.0-alpha.27 → 4.0.0-alpha.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/csc-ui.js +9552 -8615
- package/dist/custom-elements.json +692 -6
- package/dist/docs/c-date-picker/usage.md +49 -0
- package/dist/docs/c-time-picker/usage.md +143 -0
- package/dist/styles/css/tailwind-theme.css +1 -0
- package/dist/styles/css/tokens.css +8 -0
- package/dist/vscode.css-custom-data.json +50 -0
- package/dist/vscode.html-custom-data.json +98 -2
- package/dist/web-types.json +330 -4
- package/dist-types/components/c-date-picker/CDatePicker.vue.d.ts +26 -5
- package/dist-types/components/c-date-picker/dates.d.ts +31 -2
- package/dist-types/components/c-time-picker/CTimePicker.vue.d.ts +199 -0
- package/dist-types/components/c-time-picker/times.d.ts +82 -0
- package/dist-types/index.d.ts +2 -1
- package/dist-types/shared/TypedField.vue.d.ts +40 -0
- package/dist-types/shared/inputMask.d.ts +9 -0
- package/dist-types/shared/useTypedField.d.ts +103 -0
- package/dist-types/tag-name-map.d.ts +106 -4
- package/package.json +1 -1
|
@@ -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
|
|
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 * 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 /** 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 /** 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
|
|
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"
|
|
@@ -501,6 +508,41 @@
|
|
|
501
508
|
"name": "CTextFieldType",
|
|
502
509
|
"owner": "c-text-field"
|
|
503
510
|
},
|
|
511
|
+
{
|
|
512
|
+
"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 * 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}",
|
|
513
|
+
"description": "",
|
|
514
|
+
"kind": "interface",
|
|
515
|
+
"name": "CTimePickerProps",
|
|
516
|
+
"owner": "c-time-picker"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"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}",
|
|
520
|
+
"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.",
|
|
521
|
+
"kind": "interface",
|
|
522
|
+
"name": "CTimePickerRange",
|
|
523
|
+
"owner": "c-time-picker"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"declaration": "export type CTimePickerText = { end: string; start: string } | string;",
|
|
527
|
+
"description": "The text committed from the field, as typed: a string, or both ends'\ntexts under `range`.",
|
|
528
|
+
"kind": "type-alias",
|
|
529
|
+
"name": "CTimePickerText",
|
|
530
|
+
"owner": "c-time-picker"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"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 /** 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 /** 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}",
|
|
534
|
+
"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.",
|
|
535
|
+
"kind": "interface",
|
|
536
|
+
"name": "CTimePickerTexts",
|
|
537
|
+
"owner": "c-time-picker"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
"declaration": "export type CTimePickerValue = CTimePickerRange | null | string;",
|
|
541
|
+
"description": "Value of `c-time-picker`: an ISO `HH:mm` string, a\n under `range`, or `null` when empty.",
|
|
542
|
+
"kind": "type-alias",
|
|
543
|
+
"name": "CTimePickerValue",
|
|
544
|
+
"owner": "c-time-picker"
|
|
545
|
+
},
|
|
504
546
|
{
|
|
505
547
|
"declaration": "export interface CToastProps {\n /**\n * Messages\n *\n * @seeded from csc-ui — verify\n */\n message?: CToastMessage | null;\n}",
|
|
506
548
|
"description": "",
|
|
@@ -3882,6 +3924,18 @@
|
|
|
3882
3924
|
"defaultable": true
|
|
3883
3925
|
}
|
|
3884
3926
|
},
|
|
3927
|
+
{
|
|
3928
|
+
"fieldName": "type",
|
|
3929
|
+
"name": "type",
|
|
3930
|
+
"description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
|
|
3931
|
+
"type": {
|
|
3932
|
+
"text": "'date' | 'month'"
|
|
3933
|
+
},
|
|
3934
|
+
"default": "'date'",
|
|
3935
|
+
"csc": {
|
|
3936
|
+
"typeAlias": "CDatePickerType"
|
|
3937
|
+
}
|
|
3938
|
+
},
|
|
3885
3939
|
{
|
|
3886
3940
|
"fieldName": "valid",
|
|
3887
3941
|
"name": "valid",
|
|
@@ -3894,7 +3948,7 @@
|
|
|
3894
3948
|
{
|
|
3895
3949
|
"fieldName": "value",
|
|
3896
3950
|
"name": "value",
|
|
3897
|
-
"description": "The date as an ISO `YYYY-MM-DD` string, or `{ start, end }` under
|
|
3951
|
+
"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
3952
|
"type": {
|
|
3899
3953
|
"text": "CDatePickerValue"
|
|
3900
3954
|
},
|
|
@@ -3989,6 +4043,14 @@
|
|
|
3989
4043
|
{
|
|
3990
4044
|
"name": "option",
|
|
3991
4045
|
"description": "One month or year in the list"
|
|
4046
|
+
},
|
|
4047
|
+
{
|
|
4048
|
+
"name": "step-label",
|
|
4049
|
+
"description": "The label above the current list under `type=\"month\"`: month or year, and under `range` start or end"
|
|
4050
|
+
},
|
|
4051
|
+
{
|
|
4052
|
+
"name": "step-summary",
|
|
4053
|
+
"description": "A finished step under `type=\"month\"`, its label and pick; pressing it returns to that step"
|
|
3992
4054
|
}
|
|
3993
4055
|
],
|
|
3994
4056
|
"cssProperties": [],
|
|
@@ -4306,6 +4368,19 @@
|
|
|
4306
4368
|
"defaultable": true
|
|
4307
4369
|
}
|
|
4308
4370
|
},
|
|
4371
|
+
{
|
|
4372
|
+
"kind": "field",
|
|
4373
|
+
"name": "type",
|
|
4374
|
+
"privacy": "public",
|
|
4375
|
+
"description": "What the field picks: a calendar date, or a year and a month\n(`'YYYY-MM'`)",
|
|
4376
|
+
"type": {
|
|
4377
|
+
"text": "'date' | 'month'"
|
|
4378
|
+
},
|
|
4379
|
+
"default": "'date'",
|
|
4380
|
+
"csc": {
|
|
4381
|
+
"typeAlias": "CDatePickerType"
|
|
4382
|
+
}
|
|
4383
|
+
},
|
|
4309
4384
|
{
|
|
4310
4385
|
"kind": "field",
|
|
4311
4386
|
"name": "valid",
|
|
@@ -4320,7 +4395,7 @@
|
|
|
4320
4395
|
"kind": "field",
|
|
4321
4396
|
"name": "value",
|
|
4322
4397
|
"privacy": "public",
|
|
4323
|
-
"description": "The date as an ISO `YYYY-MM-DD` string, or `{ start, end }` under
|
|
4398
|
+
"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
4399
|
"type": {
|
|
4325
4400
|
"text": "CDatePickerValue"
|
|
4326
4401
|
},
|
|
@@ -13767,6 +13842,617 @@
|
|
|
13767
13842
|
"kind": "javascript-module",
|
|
13768
13843
|
"path": "src/components/c-text-field/CTextField.vue"
|
|
13769
13844
|
},
|
|
13845
|
+
{
|
|
13846
|
+
"declarations": [
|
|
13847
|
+
{
|
|
13848
|
+
"customElement": true,
|
|
13849
|
+
"kind": "class",
|
|
13850
|
+
"name": "CTimePicker",
|
|
13851
|
+
"tagName": "c-time-picker",
|
|
13852
|
+
"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`.",
|
|
13853
|
+
"csc": {
|
|
13854
|
+
"usage": "docs/c-time-picker/usage.md"
|
|
13855
|
+
},
|
|
13856
|
+
"attributes": [
|
|
13857
|
+
{
|
|
13858
|
+
"fieldName": "clearable",
|
|
13859
|
+
"name": "clearable",
|
|
13860
|
+
"description": "Make the value clearable",
|
|
13861
|
+
"type": {
|
|
13862
|
+
"text": "boolean"
|
|
13863
|
+
},
|
|
13864
|
+
"default": "false"
|
|
13865
|
+
},
|
|
13866
|
+
{
|
|
13867
|
+
"fieldName": "disabled",
|
|
13868
|
+
"name": "disabled",
|
|
13869
|
+
"description": "Disable the field",
|
|
13870
|
+
"type": {
|
|
13871
|
+
"text": "boolean"
|
|
13872
|
+
},
|
|
13873
|
+
"default": "false"
|
|
13874
|
+
},
|
|
13875
|
+
{
|
|
13876
|
+
"fieldName": "errorMessage",
|
|
13877
|
+
"name": "error-message",
|
|
13878
|
+
"description": "Error message shown in place of the hint while the field is invalid",
|
|
13879
|
+
"type": {
|
|
13880
|
+
"text": "string"
|
|
13881
|
+
},
|
|
13882
|
+
"default": "''",
|
|
13883
|
+
"csc": {
|
|
13884
|
+
"freeform": true
|
|
13885
|
+
}
|
|
13886
|
+
},
|
|
13887
|
+
{
|
|
13888
|
+
"fieldName": "format",
|
|
13889
|
+
"name": "format",
|
|
13890
|
+
"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`",
|
|
13891
|
+
"type": {
|
|
13892
|
+
"text": "string"
|
|
13893
|
+
},
|
|
13894
|
+
"default": "'HH.mm'",
|
|
13895
|
+
"csc": {
|
|
13896
|
+
"freeform": true,
|
|
13897
|
+
"defaultable": true
|
|
13898
|
+
}
|
|
13899
|
+
},
|
|
13900
|
+
{
|
|
13901
|
+
"fieldName": "hideDetails",
|
|
13902
|
+
"name": "hide-details",
|
|
13903
|
+
"description": "Hide the hint and error messages",
|
|
13904
|
+
"type": {
|
|
13905
|
+
"text": "boolean"
|
|
13906
|
+
},
|
|
13907
|
+
"default": "false",
|
|
13908
|
+
"csc": {
|
|
13909
|
+
"defaultable": true
|
|
13910
|
+
}
|
|
13911
|
+
},
|
|
13912
|
+
{
|
|
13913
|
+
"fieldName": "hint",
|
|
13914
|
+
"name": "hint",
|
|
13915
|
+
"description": "Hint text for the field",
|
|
13916
|
+
"type": {
|
|
13917
|
+
"text": "string"
|
|
13918
|
+
},
|
|
13919
|
+
"default": "''",
|
|
13920
|
+
"csc": {
|
|
13921
|
+
"freeform": true
|
|
13922
|
+
}
|
|
13923
|
+
},
|
|
13924
|
+
{
|
|
13925
|
+
"fieldName": "hostId",
|
|
13926
|
+
"name": "host-id",
|
|
13927
|
+
"description": "Id of the element",
|
|
13928
|
+
"type": {
|
|
13929
|
+
"text": "string"
|
|
13930
|
+
},
|
|
13931
|
+
"default": "''",
|
|
13932
|
+
"csc": {
|
|
13933
|
+
"freeform": true
|
|
13934
|
+
}
|
|
13935
|
+
},
|
|
13936
|
+
{
|
|
13937
|
+
"fieldName": "label",
|
|
13938
|
+
"name": "label",
|
|
13939
|
+
"description": "Element label",
|
|
13940
|
+
"type": {
|
|
13941
|
+
"text": "string"
|
|
13942
|
+
},
|
|
13943
|
+
"default": "''",
|
|
13944
|
+
"csc": {
|
|
13945
|
+
"freeform": true
|
|
13946
|
+
}
|
|
13947
|
+
},
|
|
13948
|
+
{
|
|
13949
|
+
"fieldName": "labelOnTop",
|
|
13950
|
+
"name": "label-on-top",
|
|
13951
|
+
"description": "Label on top of the field",
|
|
13952
|
+
"type": {
|
|
13953
|
+
"text": "boolean"
|
|
13954
|
+
},
|
|
13955
|
+
"default": "false",
|
|
13956
|
+
"csc": {
|
|
13957
|
+
"defaultable": true
|
|
13958
|
+
}
|
|
13959
|
+
},
|
|
13960
|
+
{
|
|
13961
|
+
"fieldName": "max",
|
|
13962
|
+
"name": "max",
|
|
13963
|
+
"description": "The latest time that can be picked or typed, as an ISO `HH:mm` time",
|
|
13964
|
+
"type": {
|
|
13965
|
+
"text": "string"
|
|
13966
|
+
},
|
|
13967
|
+
"default": "''",
|
|
13968
|
+
"csc": {
|
|
13969
|
+
"freeform": true
|
|
13970
|
+
}
|
|
13971
|
+
},
|
|
13972
|
+
{
|
|
13973
|
+
"fieldName": "min",
|
|
13974
|
+
"name": "min",
|
|
13975
|
+
"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",
|
|
13976
|
+
"type": {
|
|
13977
|
+
"text": "string"
|
|
13978
|
+
},
|
|
13979
|
+
"default": "''",
|
|
13980
|
+
"csc": {
|
|
13981
|
+
"freeform": true
|
|
13982
|
+
}
|
|
13983
|
+
},
|
|
13984
|
+
{
|
|
13985
|
+
"fieldName": "minuteStep",
|
|
13986
|
+
"name": "minute-step",
|
|
13987
|
+
"description": "Minutes between the minute column's rows; typed times need not fall on\nthe step",
|
|
13988
|
+
"type": {
|
|
13989
|
+
"text": "number"
|
|
13990
|
+
},
|
|
13991
|
+
"default": "1"
|
|
13992
|
+
},
|
|
13993
|
+
{
|
|
13994
|
+
"fieldName": "name",
|
|
13995
|
+
"name": "name",
|
|
13996
|
+
"description": "Input field name",
|
|
13997
|
+
"type": {
|
|
13998
|
+
"text": "string"
|
|
13999
|
+
},
|
|
14000
|
+
"default": "''",
|
|
14001
|
+
"csc": {
|
|
14002
|
+
"freeform": true
|
|
14003
|
+
}
|
|
14004
|
+
},
|
|
14005
|
+
{
|
|
14006
|
+
"fieldName": "placeholder",
|
|
14007
|
+
"name": "placeholder",
|
|
14008
|
+
"description": "Placeholder of the input; the `format` pattern when empty",
|
|
14009
|
+
"type": {
|
|
14010
|
+
"text": "string"
|
|
14011
|
+
},
|
|
14012
|
+
"default": "''",
|
|
14013
|
+
"csc": {
|
|
14014
|
+
"freeform": true
|
|
14015
|
+
}
|
|
14016
|
+
},
|
|
14017
|
+
{
|
|
14018
|
+
"fieldName": "range",
|
|
14019
|
+
"name": "range",
|
|
14020
|
+
"description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
|
|
14021
|
+
"type": {
|
|
14022
|
+
"text": "boolean"
|
|
14023
|
+
},
|
|
14024
|
+
"default": "false"
|
|
14025
|
+
},
|
|
14026
|
+
{
|
|
14027
|
+
"fieldName": "required",
|
|
14028
|
+
"name": "required",
|
|
14029
|
+
"description": "Set the field as required",
|
|
14030
|
+
"type": {
|
|
14031
|
+
"text": "boolean"
|
|
14032
|
+
},
|
|
14033
|
+
"default": "false"
|
|
14034
|
+
},
|
|
14035
|
+
{
|
|
14036
|
+
"fieldName": "shadow",
|
|
14037
|
+
"name": "shadow",
|
|
14038
|
+
"description": "Shadow variant",
|
|
14039
|
+
"type": {
|
|
14040
|
+
"text": "boolean"
|
|
14041
|
+
},
|
|
14042
|
+
"default": "false",
|
|
14043
|
+
"csc": {
|
|
14044
|
+
"defaultable": true
|
|
14045
|
+
}
|
|
14046
|
+
},
|
|
14047
|
+
{
|
|
14048
|
+
"fieldName": "size",
|
|
14049
|
+
"name": "size",
|
|
14050
|
+
"description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
|
|
14051
|
+
"type": {
|
|
14052
|
+
"text": "'default' | 'small'"
|
|
14053
|
+
},
|
|
14054
|
+
"default": "'default'",
|
|
14055
|
+
"csc": {
|
|
14056
|
+
"typeAlias": "CFieldSize",
|
|
14057
|
+
"defaultable": true
|
|
14058
|
+
}
|
|
14059
|
+
},
|
|
14060
|
+
{
|
|
14061
|
+
"fieldName": "valid",
|
|
14062
|
+
"name": "valid",
|
|
14063
|
+
"description": "Set the validity of the field",
|
|
14064
|
+
"type": {
|
|
14065
|
+
"text": "boolean"
|
|
14066
|
+
},
|
|
14067
|
+
"default": "true"
|
|
14068
|
+
},
|
|
14069
|
+
{
|
|
14070
|
+
"fieldName": "value",
|
|
14071
|
+
"name": "value",
|
|
14072
|
+
"description": "The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\nunder `range`; `null` when empty",
|
|
14073
|
+
"type": {
|
|
14074
|
+
"text": "CTimePickerValue"
|
|
14075
|
+
},
|
|
14076
|
+
"default": "null"
|
|
14077
|
+
}
|
|
14078
|
+
],
|
|
14079
|
+
"cssParts": [
|
|
14080
|
+
{
|
|
14081
|
+
"name": "input",
|
|
14082
|
+
"description": "The text input; under `range` both the start and the end input"
|
|
14083
|
+
},
|
|
14084
|
+
{
|
|
14085
|
+
"name": "separator",
|
|
14086
|
+
"description": "The dash between the start and end inputs under `range`"
|
|
14087
|
+
},
|
|
14088
|
+
{
|
|
14089
|
+
"name": "panel",
|
|
14090
|
+
"description": "The top-layer popover container anchored below the field"
|
|
14091
|
+
},
|
|
14092
|
+
{
|
|
14093
|
+
"name": "card",
|
|
14094
|
+
"description": "The dialog surface inside the panel holding the columns"
|
|
14095
|
+
},
|
|
14096
|
+
{
|
|
14097
|
+
"name": "heading-row",
|
|
14098
|
+
"description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
|
|
14099
|
+
},
|
|
14100
|
+
{
|
|
14101
|
+
"name": "heading",
|
|
14102
|
+
"description": "The field label naming the fullscreen panel"
|
|
14103
|
+
},
|
|
14104
|
+
{
|
|
14105
|
+
"name": "close",
|
|
14106
|
+
"description": "The close button of the fullscreen panel"
|
|
14107
|
+
},
|
|
14108
|
+
{
|
|
14109
|
+
"name": "end-switch",
|
|
14110
|
+
"description": "The Start | End switch above the columns under `range`"
|
|
14111
|
+
},
|
|
14112
|
+
{
|
|
14113
|
+
"name": "end-tab",
|
|
14114
|
+
"description": "One end's button in the end switch"
|
|
14115
|
+
},
|
|
14116
|
+
{
|
|
14117
|
+
"name": "columns",
|
|
14118
|
+
"description": "The row of time columns"
|
|
14119
|
+
},
|
|
14120
|
+
{
|
|
14121
|
+
"name": "column",
|
|
14122
|
+
"description": "One time column: hours, minutes or AM/PM"
|
|
14123
|
+
},
|
|
14124
|
+
{
|
|
14125
|
+
"name": "option",
|
|
14126
|
+
"description": "One row of a time column"
|
|
14127
|
+
}
|
|
14128
|
+
],
|
|
14129
|
+
"cssProperties": [],
|
|
14130
|
+
"cssStates": [
|
|
14131
|
+
{
|
|
14132
|
+
"name": "bad-input",
|
|
14133
|
+
"description": "Present while committed text names no time that can be picked"
|
|
14134
|
+
}
|
|
14135
|
+
],
|
|
14136
|
+
"events": [
|
|
14137
|
+
{
|
|
14138
|
+
"name": "change",
|
|
14139
|
+
"type": {
|
|
14140
|
+
"text": "CustomEvent<CTimePickerValue>"
|
|
14141
|
+
},
|
|
14142
|
+
"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`."
|
|
14143
|
+
},
|
|
14144
|
+
{
|
|
14145
|
+
"name": "change:text",
|
|
14146
|
+
"type": {
|
|
14147
|
+
"text": "CustomEvent<CTimePickerText>"
|
|
14148
|
+
},
|
|
14149
|
+
"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."
|
|
14150
|
+
},
|
|
14151
|
+
{
|
|
14152
|
+
"name": "input",
|
|
14153
|
+
"type": {
|
|
14154
|
+
"text": "CustomEvent<void>"
|
|
14155
|
+
},
|
|
14156
|
+
"description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
|
|
14157
|
+
},
|
|
14158
|
+
{
|
|
14159
|
+
"name": "update:value",
|
|
14160
|
+
"type": {
|
|
14161
|
+
"text": "CustomEvent<CTimePickerValue>"
|
|
14162
|
+
},
|
|
14163
|
+
"description": "Fired alongside `change` with the same detail — the `v-model` contract."
|
|
14164
|
+
}
|
|
14165
|
+
],
|
|
14166
|
+
"members": [
|
|
14167
|
+
{
|
|
14168
|
+
"kind": "field",
|
|
14169
|
+
"name": "clearable",
|
|
14170
|
+
"privacy": "public",
|
|
14171
|
+
"description": "Make the value clearable",
|
|
14172
|
+
"type": {
|
|
14173
|
+
"text": "boolean"
|
|
14174
|
+
},
|
|
14175
|
+
"default": "false"
|
|
14176
|
+
},
|
|
14177
|
+
{
|
|
14178
|
+
"kind": "field",
|
|
14179
|
+
"name": "disabled",
|
|
14180
|
+
"privacy": "public",
|
|
14181
|
+
"description": "Disable the field",
|
|
14182
|
+
"type": {
|
|
14183
|
+
"text": "boolean"
|
|
14184
|
+
},
|
|
14185
|
+
"default": "false"
|
|
14186
|
+
},
|
|
14187
|
+
{
|
|
14188
|
+
"kind": "field",
|
|
14189
|
+
"name": "errorMessage",
|
|
14190
|
+
"privacy": "public",
|
|
14191
|
+
"description": "Error message shown in place of the hint while the field is invalid",
|
|
14192
|
+
"type": {
|
|
14193
|
+
"text": "string"
|
|
14194
|
+
},
|
|
14195
|
+
"default": "''",
|
|
14196
|
+
"csc": {
|
|
14197
|
+
"freeform": true
|
|
14198
|
+
}
|
|
14199
|
+
},
|
|
14200
|
+
{
|
|
14201
|
+
"kind": "field",
|
|
14202
|
+
"name": "format",
|
|
14203
|
+
"privacy": "public",
|
|
14204
|
+
"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`",
|
|
14205
|
+
"type": {
|
|
14206
|
+
"text": "string"
|
|
14207
|
+
},
|
|
14208
|
+
"default": "'HH.mm'",
|
|
14209
|
+
"csc": {
|
|
14210
|
+
"freeform": true,
|
|
14211
|
+
"defaultable": true
|
|
14212
|
+
}
|
|
14213
|
+
},
|
|
14214
|
+
{
|
|
14215
|
+
"kind": "field",
|
|
14216
|
+
"name": "hideDetails",
|
|
14217
|
+
"privacy": "public",
|
|
14218
|
+
"description": "Hide the hint and error messages",
|
|
14219
|
+
"type": {
|
|
14220
|
+
"text": "boolean"
|
|
14221
|
+
},
|
|
14222
|
+
"default": "false",
|
|
14223
|
+
"csc": {
|
|
14224
|
+
"defaultable": true
|
|
14225
|
+
}
|
|
14226
|
+
},
|
|
14227
|
+
{
|
|
14228
|
+
"kind": "field",
|
|
14229
|
+
"name": "hint",
|
|
14230
|
+
"privacy": "public",
|
|
14231
|
+
"description": "Hint text for the field",
|
|
14232
|
+
"type": {
|
|
14233
|
+
"text": "string"
|
|
14234
|
+
},
|
|
14235
|
+
"default": "''",
|
|
14236
|
+
"csc": {
|
|
14237
|
+
"freeform": true
|
|
14238
|
+
}
|
|
14239
|
+
},
|
|
14240
|
+
{
|
|
14241
|
+
"kind": "field",
|
|
14242
|
+
"name": "hostId",
|
|
14243
|
+
"privacy": "public",
|
|
14244
|
+
"description": "Id of the element",
|
|
14245
|
+
"type": {
|
|
14246
|
+
"text": "string"
|
|
14247
|
+
},
|
|
14248
|
+
"default": "''",
|
|
14249
|
+
"csc": {
|
|
14250
|
+
"freeform": true
|
|
14251
|
+
}
|
|
14252
|
+
},
|
|
14253
|
+
{
|
|
14254
|
+
"kind": "field",
|
|
14255
|
+
"name": "label",
|
|
14256
|
+
"privacy": "public",
|
|
14257
|
+
"description": "Element label",
|
|
14258
|
+
"type": {
|
|
14259
|
+
"text": "string"
|
|
14260
|
+
},
|
|
14261
|
+
"default": "''",
|
|
14262
|
+
"csc": {
|
|
14263
|
+
"freeform": true
|
|
14264
|
+
}
|
|
14265
|
+
},
|
|
14266
|
+
{
|
|
14267
|
+
"kind": "field",
|
|
14268
|
+
"name": "labelOnTop",
|
|
14269
|
+
"privacy": "public",
|
|
14270
|
+
"description": "Label on top of the field",
|
|
14271
|
+
"type": {
|
|
14272
|
+
"text": "boolean"
|
|
14273
|
+
},
|
|
14274
|
+
"default": "false",
|
|
14275
|
+
"csc": {
|
|
14276
|
+
"defaultable": true
|
|
14277
|
+
}
|
|
14278
|
+
},
|
|
14279
|
+
{
|
|
14280
|
+
"kind": "field",
|
|
14281
|
+
"name": "max",
|
|
14282
|
+
"privacy": "public",
|
|
14283
|
+
"description": "The latest time that can be picked or typed, as an ISO `HH:mm` time",
|
|
14284
|
+
"type": {
|
|
14285
|
+
"text": "string"
|
|
14286
|
+
},
|
|
14287
|
+
"default": "''",
|
|
14288
|
+
"csc": {
|
|
14289
|
+
"freeform": true
|
|
14290
|
+
}
|
|
14291
|
+
},
|
|
14292
|
+
{
|
|
14293
|
+
"kind": "field",
|
|
14294
|
+
"name": "min",
|
|
14295
|
+
"privacy": "public",
|
|
14296
|
+
"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",
|
|
14297
|
+
"type": {
|
|
14298
|
+
"text": "string"
|
|
14299
|
+
},
|
|
14300
|
+
"default": "''",
|
|
14301
|
+
"csc": {
|
|
14302
|
+
"freeform": true
|
|
14303
|
+
}
|
|
14304
|
+
},
|
|
14305
|
+
{
|
|
14306
|
+
"kind": "field",
|
|
14307
|
+
"name": "minuteStep",
|
|
14308
|
+
"privacy": "public",
|
|
14309
|
+
"description": "Minutes between the minute column's rows; typed times need not fall on\nthe step",
|
|
14310
|
+
"type": {
|
|
14311
|
+
"text": "number"
|
|
14312
|
+
},
|
|
14313
|
+
"default": "1"
|
|
14314
|
+
},
|
|
14315
|
+
{
|
|
14316
|
+
"kind": "field",
|
|
14317
|
+
"name": "name",
|
|
14318
|
+
"privacy": "public",
|
|
14319
|
+
"description": "Input field name",
|
|
14320
|
+
"type": {
|
|
14321
|
+
"text": "string"
|
|
14322
|
+
},
|
|
14323
|
+
"default": "''",
|
|
14324
|
+
"csc": {
|
|
14325
|
+
"freeform": true
|
|
14326
|
+
}
|
|
14327
|
+
},
|
|
14328
|
+
{
|
|
14329
|
+
"kind": "field",
|
|
14330
|
+
"name": "placeholder",
|
|
14331
|
+
"privacy": "public",
|
|
14332
|
+
"description": "Placeholder of the input; the `format` pattern when empty",
|
|
14333
|
+
"type": {
|
|
14334
|
+
"text": "string"
|
|
14335
|
+
},
|
|
14336
|
+
"default": "''",
|
|
14337
|
+
"csc": {
|
|
14338
|
+
"freeform": true
|
|
14339
|
+
}
|
|
14340
|
+
},
|
|
14341
|
+
{
|
|
14342
|
+
"kind": "field",
|
|
14343
|
+
"name": "range",
|
|
14344
|
+
"privacy": "public",
|
|
14345
|
+
"description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
|
|
14346
|
+
"type": {
|
|
14347
|
+
"text": "boolean"
|
|
14348
|
+
},
|
|
14349
|
+
"default": "false"
|
|
14350
|
+
},
|
|
14351
|
+
{
|
|
14352
|
+
"kind": "field",
|
|
14353
|
+
"name": "required",
|
|
14354
|
+
"privacy": "public",
|
|
14355
|
+
"description": "Set the field as required",
|
|
14356
|
+
"type": {
|
|
14357
|
+
"text": "boolean"
|
|
14358
|
+
},
|
|
14359
|
+
"default": "false"
|
|
14360
|
+
},
|
|
14361
|
+
{
|
|
14362
|
+
"kind": "field",
|
|
14363
|
+
"name": "shadow",
|
|
14364
|
+
"privacy": "public",
|
|
14365
|
+
"description": "Shadow variant",
|
|
14366
|
+
"type": {
|
|
14367
|
+
"text": "boolean"
|
|
14368
|
+
},
|
|
14369
|
+
"default": "false",
|
|
14370
|
+
"csc": {
|
|
14371
|
+
"defaultable": true
|
|
14372
|
+
}
|
|
14373
|
+
},
|
|
14374
|
+
{
|
|
14375
|
+
"kind": "field",
|
|
14376
|
+
"name": "size",
|
|
14377
|
+
"privacy": "public",
|
|
14378
|
+
"description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
|
|
14379
|
+
"type": {
|
|
14380
|
+
"text": "'default' | 'small'"
|
|
14381
|
+
},
|
|
14382
|
+
"default": "'default'",
|
|
14383
|
+
"csc": {
|
|
14384
|
+
"typeAlias": "CFieldSize",
|
|
14385
|
+
"defaultable": true
|
|
14386
|
+
}
|
|
14387
|
+
},
|
|
14388
|
+
{
|
|
14389
|
+
"kind": "field",
|
|
14390
|
+
"name": "texts",
|
|
14391
|
+
"privacy": "public",
|
|
14392
|
+
"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",
|
|
14393
|
+
"type": {
|
|
14394
|
+
"text": "CTimePickerTexts"
|
|
14395
|
+
},
|
|
14396
|
+
"default": "{}",
|
|
14397
|
+
"csc": {
|
|
14398
|
+
"defaultable": true
|
|
14399
|
+
}
|
|
14400
|
+
},
|
|
14401
|
+
{
|
|
14402
|
+
"kind": "field",
|
|
14403
|
+
"name": "valid",
|
|
14404
|
+
"privacy": "public",
|
|
14405
|
+
"description": "Set the validity of the field",
|
|
14406
|
+
"type": {
|
|
14407
|
+
"text": "boolean"
|
|
14408
|
+
},
|
|
14409
|
+
"default": "true"
|
|
14410
|
+
},
|
|
14411
|
+
{
|
|
14412
|
+
"kind": "field",
|
|
14413
|
+
"name": "value",
|
|
14414
|
+
"privacy": "public",
|
|
14415
|
+
"description": "The time as an ISO `HH:mm` string on a 24-hour clock, or `{ start, end }`\nunder `range`; `null` when empty",
|
|
14416
|
+
"type": {
|
|
14417
|
+
"text": "CTimePickerValue"
|
|
14418
|
+
},
|
|
14419
|
+
"default": "null"
|
|
14420
|
+
},
|
|
14421
|
+
{
|
|
14422
|
+
"kind": "field",
|
|
14423
|
+
"name": "badInput",
|
|
14424
|
+
"privacy": "public",
|
|
14425
|
+
"readonly": true,
|
|
14426
|
+
"type": {
|
|
14427
|
+
"text": "boolean"
|
|
14428
|
+
},
|
|
14429
|
+
"description": "Whether the committed text names no time that can be picked — the value is then `null` (CONTEXT.md \"Bad input\")."
|
|
14430
|
+
}
|
|
14431
|
+
],
|
|
14432
|
+
"slots": []
|
|
14433
|
+
}
|
|
14434
|
+
],
|
|
14435
|
+
"exports": [
|
|
14436
|
+
{
|
|
14437
|
+
"declaration": {
|
|
14438
|
+
"module": "src/components/c-time-picker/CTimePicker.vue",
|
|
14439
|
+
"name": "CTimePicker"
|
|
14440
|
+
},
|
|
14441
|
+
"kind": "js",
|
|
14442
|
+
"name": "CTimePicker"
|
|
14443
|
+
},
|
|
14444
|
+
{
|
|
14445
|
+
"declaration": {
|
|
14446
|
+
"module": "src/components/c-time-picker/CTimePicker.vue",
|
|
14447
|
+
"name": "CTimePicker"
|
|
14448
|
+
},
|
|
14449
|
+
"kind": "custom-element-definition",
|
|
14450
|
+
"name": "c-time-picker"
|
|
14451
|
+
}
|
|
14452
|
+
],
|
|
14453
|
+
"kind": "javascript-module",
|
|
14454
|
+
"path": "src/components/c-time-picker/CTimePicker.vue"
|
|
14455
|
+
},
|
|
13770
14456
|
{
|
|
13771
14457
|
"declarations": [
|
|
13772
14458
|
{
|