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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@cscfi/csc-ui",
4
- "version": "4.0.0-alpha.26",
4
+ "version": "4.0.0-alpha.27",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1443,6 +1443,302 @@
1443
1443
  ]
1444
1444
  }
1445
1445
  },
1446
+ {
1447
+ "name": "c-date-picker",
1448
+ "description": "A date field that takes a typed date, or opens a calendar panel for picking one, or a start and end date under `range`.\n---\n\n\n### **Events:**\n - **change** - Fired when the value changes — a day or range is picked, typed text is\ncommitted, or the field is cleared — carrying the new value: an ISO\ndate, `{ start, end }` under `range`, or `null`.\n- **change:month** - Fired with the displayed month as `YYYY-MM` whenever it changes, and\nwhen the panel opens — the signal to load that month's `disabled-dates`.\n- **change:text** - Fired on every commit of typed text (Enter or leaving the input) with the\ntext as typed — `{ start, end }` under `range`. Read `badInput` to tell\nwhether it named a date that can be picked.\n- **input** - Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail.\n- **update:value** - Fired alongside `change` with the same detail — the `v-model` contract.\n\n### **CSS Parts:**\n - **input** - The text input; under `range` both the start and the end input\n- **separator** - The dash between the start and end inputs under `range`\n- **panel** - The top-layer popover container anchored below the field\n- **card** - The dialog surface inside the panel holding the header and the calendar body\n- **heading-row** - The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button\n- **heading** - The field label naming the fullscreen panel\n- **close** - The close button of the fullscreen panel\n- **header** - The row of month and year controls above the calendar body\n- **previous-month** - The arrow to the previous month\n- **next-month** - The arrow to the next month\n- **month-button** - The button showing the displayed month that opens the month list\n- **previous-year** - The arrow to the same month a year earlier\n- **next-year** - The arrow to the same month a year later\n- **year-button** - The button showing the displayed year that opens the year list\n- **grid** - The day grid of the displayed month\n- **weekday** - A weekday column head in the grid\n- **week-number** - An ISO week number beside a grid row (`show-week-numbers`)\n- **cell** - One day's cell in the grid\n- **day** - The circle showing a day's number inside its cell\n- **range-band** - The strip joining a range's days behind their circles\n- **list** - The month or year list swapped in for the grid\n- **option** - One month or year in the list",
1449
+ "doc-url": "",
1450
+ "attributes": [
1451
+ {
1452
+ "name": "clearable",
1453
+ "description": "Make the value clearable",
1454
+ "value": { "type": "boolean", "default": "false" }
1455
+ },
1456
+ {
1457
+ "name": "disabled",
1458
+ "description": "Disable the field",
1459
+ "value": { "type": "boolean", "default": "false" }
1460
+ },
1461
+ {
1462
+ "name": "error-message",
1463
+ "description": "Error message shown in place of the hint while the field is invalid",
1464
+ "value": { "type": "string", "default": "''" }
1465
+ },
1466
+ {
1467
+ "name": "first-day-of-week",
1468
+ "description": "First day of the week in the calendar, numbered like `Date.getDay()`:\n0 = Sunday, 1 = Monday … 6 = Saturday",
1469
+ "value": { "type": "0 | 1 | 2 | 3 | 4 | 5 | 6", "default": "1" }
1470
+ },
1471
+ {
1472
+ "name": "format",
1473
+ "description": "How dates are shown and read from typing: a pattern of the tokens `d`,\n`dd`, `M`, `MM` and `yyyy` with any separators, e.g. `yyyy-MM-dd`",
1474
+ "value": { "type": "string", "default": "'dd.MM.yyyy'" }
1475
+ },
1476
+ {
1477
+ "name": "hide-details",
1478
+ "description": "Hide the hint and error messages",
1479
+ "value": { "type": "boolean", "default": "false" }
1480
+ },
1481
+ {
1482
+ "name": "hint",
1483
+ "description": "Hint text for the field",
1484
+ "value": { "type": "string", "default": "''" }
1485
+ },
1486
+ {
1487
+ "name": "host-id",
1488
+ "description": "Id of the element",
1489
+ "value": { "type": "string", "default": "''" }
1490
+ },
1491
+ {
1492
+ "name": "label",
1493
+ "description": "Element label",
1494
+ "value": { "type": "string", "default": "''" }
1495
+ },
1496
+ {
1497
+ "name": "label-on-top",
1498
+ "description": "Label on top of the field",
1499
+ "value": { "type": "boolean", "default": "false" }
1500
+ },
1501
+ {
1502
+ "name": "max",
1503
+ "description": "The latest date that can be picked or typed, as an ISO date; also bounds\nthe calendar's navigation",
1504
+ "value": { "type": "string", "default": "''" }
1505
+ },
1506
+ {
1507
+ "name": "min",
1508
+ "description": "The earliest date that can be picked or typed, as an ISO date; also\nbounds the calendar's navigation",
1509
+ "value": { "type": "string", "default": "''" }
1510
+ },
1511
+ {
1512
+ "name": "name",
1513
+ "description": "Input field name",
1514
+ "value": { "type": "string", "default": "''" }
1515
+ },
1516
+ {
1517
+ "name": "placeholder",
1518
+ "description": "Placeholder of the input; the `format` pattern when empty",
1519
+ "value": { "type": "string", "default": "''" }
1520
+ },
1521
+ {
1522
+ "name": "range",
1523
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
1524
+ "value": { "type": "boolean", "default": "false" }
1525
+ },
1526
+ {
1527
+ "name": "required",
1528
+ "description": "Set the field as required",
1529
+ "value": { "type": "boolean", "default": "false" }
1530
+ },
1531
+ {
1532
+ "name": "shadow",
1533
+ "description": "Shadow variant",
1534
+ "value": { "type": "boolean", "default": "false" }
1535
+ },
1536
+ {
1537
+ "name": "show-week-numbers",
1538
+ "description": "Show ISO 8601 week numbers beside the calendar rows (meaningful with a\nMonday week start)",
1539
+ "value": { "type": "boolean", "default": "false" }
1540
+ },
1541
+ {
1542
+ "name": "size",
1543
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
1544
+ "value": { "type": "'default' | 'small'", "default": "'default'" }
1545
+ },
1546
+ {
1547
+ "name": "valid",
1548
+ "description": "Set the validity of the field",
1549
+ "value": { "type": "boolean", "default": "true" }
1550
+ },
1551
+ {
1552
+ "name": "value",
1553
+ "description": "The date as an ISO `YYYY-MM-DD` string, or `{ start, end }` under\n`range`; `null` when empty",
1554
+ "value": { "type": "CDatePickerValue", "default": "null" }
1555
+ }
1556
+ ],
1557
+ "slots": [],
1558
+ "events": [
1559
+ {
1560
+ "name": "change",
1561
+ "type": "CustomEvent<CDatePickerValue>",
1562
+ "description": "Fired when the value changes — a day or range is picked, typed text is\ncommitted, or the field is cleared — carrying the new value: an ISO\ndate, `{ start, end }` under `range`, or `null`."
1563
+ },
1564
+ {
1565
+ "name": "change:month",
1566
+ "type": "CustomEvent<string>",
1567
+ "description": "Fired with the displayed month as `YYYY-MM` whenever it changes, and\nwhen the panel opens — the signal to load that month's `disabled-dates`."
1568
+ },
1569
+ {
1570
+ "name": "change:text",
1571
+ "type": "CustomEvent<CDatePickerText>",
1572
+ "description": "Fired on every commit of typed text (Enter or leaving the input) with the\ntext as typed — `{ start, end }` under `range`. Read `badInput` to tell\nwhether it named a date that can be picked."
1573
+ },
1574
+ {
1575
+ "name": "input",
1576
+ "type": "CustomEvent<void>",
1577
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
1578
+ },
1579
+ {
1580
+ "name": "update:value",
1581
+ "type": "CustomEvent<CDatePickerValue>",
1582
+ "description": "Fired alongside `change` with the same detail — the `v-model` contract."
1583
+ }
1584
+ ],
1585
+ "js": {
1586
+ "properties": [
1587
+ {
1588
+ "name": "clearable",
1589
+ "description": "Make the value clearable",
1590
+ "type": "boolean"
1591
+ },
1592
+ {
1593
+ "name": "disabled",
1594
+ "description": "Disable the field",
1595
+ "type": "boolean"
1596
+ },
1597
+ {
1598
+ "name": "disabledDates",
1599
+ "description": "Dates that cannot be picked: ISO dates and inclusive `{ start, end }`\nspans. Arrays have no attribute form — bind as a DOM property",
1600
+ "type": "CDatePickerDisabledDate[]"
1601
+ },
1602
+ {
1603
+ "name": "errorMessage",
1604
+ "description": "Error message shown in place of the hint while the field is invalid",
1605
+ "type": "string"
1606
+ },
1607
+ {
1608
+ "name": "firstDayOfWeek",
1609
+ "description": "First day of the week in the calendar, numbered like `Date.getDay()`:\n0 = Sunday, 1 = Monday … 6 = Saturday",
1610
+ "type": "0 | 1 | 2 | 3 | 4 | 5 | 6"
1611
+ },
1612
+ {
1613
+ "name": "format",
1614
+ "description": "How dates are shown and read from typing: a pattern of the tokens `d`,\n`dd`, `M`, `MM` and `yyyy` with any separators, e.g. `yyyy-MM-dd`",
1615
+ "type": "string"
1616
+ },
1617
+ {
1618
+ "name": "hideDetails",
1619
+ "description": "Hide the hint and error messages",
1620
+ "type": "boolean"
1621
+ },
1622
+ {
1623
+ "name": "hint",
1624
+ "description": "Hint text for the field",
1625
+ "type": "string"
1626
+ },
1627
+ {
1628
+ "name": "hostId",
1629
+ "description": "Id of the element",
1630
+ "type": "string"
1631
+ },
1632
+ {
1633
+ "name": "isDateDisabled",
1634
+ "description": "Predicate for dates that cannot be picked (weekends, say); receives an\nISO date. Functions have no attribute form — bind as a DOM property",
1635
+ "type": "(iso: string) => boolean"
1636
+ },
1637
+ {
1638
+ "name": "label",
1639
+ "description": "Element label",
1640
+ "type": "string"
1641
+ },
1642
+ {
1643
+ "name": "labelOnTop",
1644
+ "description": "Label on top of the field",
1645
+ "type": "boolean"
1646
+ },
1647
+ {
1648
+ "name": "max",
1649
+ "description": "The latest date that can be picked or typed, as an ISO date; also bounds\nthe calendar's navigation",
1650
+ "type": "string"
1651
+ },
1652
+ {
1653
+ "name": "min",
1654
+ "description": "The earliest date that can be picked or typed, as an ISO date; also\nbounds the calendar's navigation",
1655
+ "type": "string"
1656
+ },
1657
+ {
1658
+ "name": "name",
1659
+ "description": "Input field name",
1660
+ "type": "string"
1661
+ },
1662
+ {
1663
+ "name": "placeholder",
1664
+ "description": "Placeholder of the input; the `format` pattern when empty",
1665
+ "type": "string"
1666
+ },
1667
+ {
1668
+ "name": "range",
1669
+ "description": "Pick a range: the value becomes `{ start, end }` and the field holds two\ninputs",
1670
+ "type": "boolean"
1671
+ },
1672
+ {
1673
+ "name": "required",
1674
+ "description": "Set the field as required",
1675
+ "type": "boolean"
1676
+ },
1677
+ {
1678
+ "name": "shadow",
1679
+ "description": "Shadow variant",
1680
+ "type": "boolean"
1681
+ },
1682
+ {
1683
+ "name": "showWeekNumbers",
1684
+ "description": "Show ISO 8601 week numbers beside the calendar rows (meaningful with a\nMonday week start)",
1685
+ "type": "boolean"
1686
+ },
1687
+ {
1688
+ "name": "size",
1689
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
1690
+ "type": "'default' | 'small'"
1691
+ },
1692
+ {
1693
+ "name": "texts",
1694
+ "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
+ "type": "CDatePickerTexts"
1696
+ },
1697
+ {
1698
+ "name": "valid",
1699
+ "description": "Set the validity of the field",
1700
+ "type": "boolean"
1701
+ },
1702
+ {
1703
+ "name": "value",
1704
+ "description": "The date as an ISO `YYYY-MM-DD` string, or `{ start, end }` under\n`range`; `null` when empty",
1705
+ "type": "CDatePickerValue"
1706
+ },
1707
+ {
1708
+ "name": "badInput",
1709
+ "description": "Whether the committed text names no date that can be picked — the value is then `null` (CONTEXT.md \"Bad input\").",
1710
+ "type": "boolean"
1711
+ }
1712
+ ],
1713
+ "events": [
1714
+ {
1715
+ "name": "change",
1716
+ "type": "CustomEvent<CDatePickerValue>",
1717
+ "description": "Fired when the value changes — a day or range is picked, typed text is\ncommitted, or the field is cleared — carrying the new value: an ISO\ndate, `{ start, end }` under `range`, or `null`."
1718
+ },
1719
+ {
1720
+ "name": "change:month",
1721
+ "type": "CustomEvent<string>",
1722
+ "description": "Fired with the displayed month as `YYYY-MM` whenever it changes, and\nwhen the panel opens — the signal to load that month's `disabled-dates`."
1723
+ },
1724
+ {
1725
+ "name": "change:text",
1726
+ "type": "CustomEvent<CDatePickerText>",
1727
+ "description": "Fired on every commit of typed text (Enter or leaving the input) with the\ntext as typed — `{ start, end }` under `range`. Read `badInput` to tell\nwhether it named a date that can be picked."
1728
+ },
1729
+ {
1730
+ "name": "input",
1731
+ "type": "CustomEvent<void>",
1732
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
1733
+ },
1734
+ {
1735
+ "name": "update:value",
1736
+ "type": "CustomEvent<CDatePickerValue>",
1737
+ "description": "Fired alongside `change` with the same detail — the `v-model` contract."
1738
+ }
1739
+ ]
1740
+ }
1741
+ },
1446
1742
  {
1447
1743
  "name": "c-divider",
1448
1744
  "description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The separator line element itself",
@@ -2693,139 +2989,409 @@
2693
2989
  "value": { "type": "string", "default": "''" }
2694
2990
  },
2695
2991
  {
2696
- "name": "valid",
2697
- "description": "Parent validíty",
2698
- "value": { "type": "boolean", "default": "true" }
2699
- }
2700
- ],
2701
- "slots": [],
2702
- "events": [],
2703
- "js": {
2704
- "properties": [
2705
- {
2706
- "name": "errorMessage",
2707
- "description": "Error message shown in place of the hint while the parent is invalid",
2708
- "type": "string"
2709
- },
2710
- {
2711
- "name": "hint",
2712
- "description": "Hint text for the input",
2713
- "type": "string"
2714
- },
2715
- {
2716
- "name": "inputId",
2717
- "description": "Id of the related input element",
2718
- "type": "string"
2719
- },
2720
- {
2721
- "name": "valid",
2722
- "description": "Parent validíty",
2723
- "type": "boolean"
2724
- }
2725
- ],
2726
- "events": []
2727
- }
2728
- },
2729
- {
2730
- "name": "c-modal",
2731
- "description": "Modals interrupt the page for a task that must be completed (or explicitly cancelled) before continuing — confirmations, short forms, destructive-action warnings. The slotted content is typically a `c-card`.\n---\n\n\n### **Events:**\n - **changeValue** - Fired when the modal dismisses itself — a backdrop click or the Escape\nkey on a `dismissable` modal, or a platform-initiated close (e.g. a\nslotted `<form method=\"dialog\">`). The detail is the new open state,\nalways `false`. Also dispatched as `change-value` — bind that name in Vue templates.\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 `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Slots:**\n - **default** - The modal contents (typically a c-card)\n\n### **CSS Parts:**\n - **backdrop** - The dimming overlay under the dialog; visible only while this modal is the active (topmost) one\n- **root** - The native dialog element forming the modal box",
2732
- "doc-url": "",
2733
- "attributes": [
2734
- {
2735
- "name": "disable-backdrop-blur",
2736
- "description": "Disable backdrop blur effect",
2992
+ "name": "valid",
2993
+ "description": "Parent validíty",
2994
+ "value": { "type": "boolean", "default": "true" }
2995
+ }
2996
+ ],
2997
+ "slots": [],
2998
+ "events": [],
2999
+ "js": {
3000
+ "properties": [
3001
+ {
3002
+ "name": "errorMessage",
3003
+ "description": "Error message shown in place of the hint while the parent is invalid",
3004
+ "type": "string"
3005
+ },
3006
+ {
3007
+ "name": "hint",
3008
+ "description": "Hint text for the input",
3009
+ "type": "string"
3010
+ },
3011
+ {
3012
+ "name": "inputId",
3013
+ "description": "Id of the related input element",
3014
+ "type": "string"
3015
+ },
3016
+ {
3017
+ "name": "valid",
3018
+ "description": "Parent validíty",
3019
+ "type": "boolean"
3020
+ }
3021
+ ],
3022
+ "events": []
3023
+ }
3024
+ },
3025
+ {
3026
+ "name": "c-modal",
3027
+ "description": "Modals interrupt the page for a task that must be completed (or explicitly cancelled) before continuing — confirmations, short forms, destructive-action warnings. The slotted content is typically a `c-card`.\n---\n\n\n### **Events:**\n - **changeValue** - Fired when the modal dismisses itself — a backdrop click or the Escape\nkey on a `dismissable` modal, or a platform-initiated close (e.g. a\nslotted `<form method=\"dialog\">`). The detail is the new open state,\nalways `false`. Also dispatched as `change-value` — bind that name in Vue templates.\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 `changeValue` with the same detail — the `v-model`\ncontract.\n\n### **Slots:**\n - **default** - The modal contents (typically a c-card)\n\n### **CSS Parts:**\n - **backdrop** - The dimming overlay under the dialog; visible only while this modal is the active (topmost) one\n- **root** - The native dialog element forming the modal box",
3028
+ "doc-url": "",
3029
+ "attributes": [
3030
+ {
3031
+ "name": "disable-backdrop-blur",
3032
+ "description": "Disable backdrop blur effect",
3033
+ "value": { "type": "boolean", "default": "false" }
3034
+ },
3035
+ {
3036
+ "name": "dismissable",
3037
+ "description": "Dismissed when touching/clicking outside the content or pressing Escape.\nA non-dismissable modal responds to either gesture with a nudge animation\ninstead of closing.",
3038
+ "value": { "type": "boolean", "default": "false" }
3039
+ },
3040
+ {
3041
+ "name": "value",
3042
+ "description": "Is the modal visible",
3043
+ "value": { "type": "boolean", "default": "false" }
3044
+ },
3045
+ {
3046
+ "name": "width",
3047
+ "description": "Width of the dialog. Numeric value is considered as pixel value (400 -> 400px)",
3048
+ "value": { "type": "number | string", "default": "600" }
3049
+ }
3050
+ ],
3051
+ "slots": [
3052
+ {
3053
+ "name": "default",
3054
+ "description": "The modal contents (typically a c-card)"
3055
+ }
3056
+ ],
3057
+ "events": [
3058
+ {
3059
+ "name": "changeValue",
3060
+ "type": "CustomEvent<boolean>",
3061
+ "description": "Fired when the modal dismisses itself — a backdrop click or the Escape\nkey on a `dismissable` modal, or a platform-initiated close (e.g. a\nslotted `<form method=\"dialog\">`). The detail is the new open state,\nalways `false`. Also dispatched as `change-value` — bind that name in Vue templates."
3062
+ },
3063
+ {
3064
+ "name": "input",
3065
+ "type": "CustomEvent<void>",
3066
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
3067
+ },
3068
+ {
3069
+ "name": "update:value",
3070
+ "type": "CustomEvent<boolean>",
3071
+ "description": "Fired alongside `changeValue` with the same detail — the `v-model`\ncontract."
3072
+ }
3073
+ ],
3074
+ "js": {
3075
+ "properties": [
3076
+ {
3077
+ "name": "disableBackdropBlur",
3078
+ "description": "Disable backdrop blur effect",
3079
+ "type": "boolean"
3080
+ },
3081
+ {
3082
+ "name": "dismissable",
3083
+ "description": "Dismissed when touching/clicking outside the content or pressing Escape.\nA non-dismissable modal responds to either gesture with a nudge animation\ninstead of closing.",
3084
+ "type": "boolean"
3085
+ },
3086
+ {
3087
+ "name": "value",
3088
+ "description": "Is the modal visible",
3089
+ "type": "boolean"
3090
+ },
3091
+ {
3092
+ "name": "width",
3093
+ "description": "Width of the dialog. Numeric value is considered as pixel value (400 -> 400px)",
3094
+ "type": "number | string"
3095
+ }
3096
+ ],
3097
+ "events": [
3098
+ {
3099
+ "name": "changeValue",
3100
+ "type": "CustomEvent<boolean>",
3101
+ "description": "Fired when the modal dismisses itself — a backdrop click or the Escape\nkey on a `dismissable` modal, or a platform-initiated close (e.g. a\nslotted `<form method=\"dialog\">`). The detail is the new open state,\nalways `false`. Also dispatched as `change-value` — bind that name in Vue templates."
3102
+ },
3103
+ {
3104
+ "name": "input",
3105
+ "type": "CustomEvent<void>",
3106
+ "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
3107
+ },
3108
+ {
3109
+ "name": "update:value",
3110
+ "type": "CustomEvent<boolean>",
3111
+ "description": "Fired alongside `changeValue` with the same detail — the `v-model`\ncontract."
3112
+ }
3113
+ ]
3114
+ }
3115
+ },
3116
+ {
3117
+ "name": "c-navigation-button",
3118
+ "description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The inner c-icon-button carrying the menu icon",
3119
+ "doc-url": "",
3120
+ "attributes": [],
3121
+ "slots": [],
3122
+ "events": [],
3123
+ "js": { "properties": [], "events": [] }
3124
+ },
3125
+ {
3126
+ "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",
3128
+ "doc-url": "",
3129
+ "attributes": [
3130
+ {
3131
+ "name": "decimals",
3132
+ "description": "The most fraction digits the field takes; `0` makes it an integer field",
3133
+ "value": { "type": "number", "default": "0" }
3134
+ },
3135
+ {
3136
+ "name": "decimal-separator",
3137
+ "description": "The decimal separator. Empty follows the page's `lang` (`,` for `fi`, `.` for `en`)",
3138
+ "value": { "type": "string", "default": "''" }
3139
+ },
3140
+ {
3141
+ "name": "disabled",
3142
+ "description": "Disable the field",
3143
+ "value": { "type": "boolean", "default": "false" }
3144
+ },
3145
+ {
3146
+ "name": "error-message",
3147
+ "description": "Error message shown in place of the hint while the field is invalid",
3148
+ "value": { "type": "string", "default": "''" }
3149
+ },
3150
+ {
3151
+ "name": "fixed-decimals",
3152
+ "description": "Pad the fraction to exactly `decimals` digits when the field is left (`12,5` → `12,50`)",
3153
+ "value": { "type": "boolean", "default": "false" }
3154
+ },
3155
+ {
3156
+ "name": "group-separator",
3157
+ "description": "The thousands separator. Empty follows the page's `lang` (a space for `fi`, `,` for `en`)",
3158
+ "value": { "type": "string", "default": "''" }
3159
+ },
3160
+ {
3161
+ "name": "hide-details",
3162
+ "description": "Hide the hint and error messages",
3163
+ "value": { "type": "boolean", "default": "false" }
3164
+ },
3165
+ {
3166
+ "name": "hint",
3167
+ "description": "Hint text for the field",
3168
+ "value": { "type": "string", "default": "''" }
3169
+ },
3170
+ {
3171
+ "name": "host-id",
3172
+ "description": "Id of the input",
3173
+ "value": { "type": "string", "default": "''" }
3174
+ },
3175
+ {
3176
+ "name": "label",
3177
+ "description": "Label of the field",
3178
+ "value": { "type": "string", "default": "''" }
3179
+ },
3180
+ {
3181
+ "name": "label-on-top",
3182
+ "description": "Label on top of the field",
3183
+ "value": { "type": "boolean", "default": "false" }
3184
+ },
3185
+ {
3186
+ "name": "max",
3187
+ "description": "The largest number in range; a larger one is kept and reported as out of range",
3188
+ "value": { "type": "null | number", "default": "null" }
3189
+ },
3190
+ {
3191
+ "name": "min",
3192
+ "description": "The smallest number in range; a smaller one is kept and reported as out of range. At `0` or above, the minus key is ignored",
3193
+ "value": { "type": "null | number", "default": "null" }
3194
+ },
3195
+ {
3196
+ "name": "name",
3197
+ "description": "Name of the input",
3198
+ "value": { "type": "string", "default": "''" }
3199
+ },
3200
+ {
3201
+ "name": "placeholder",
3202
+ "description": "Placeholder of the input",
3203
+ "value": { "type": "string", "default": "''" }
3204
+ },
3205
+ {
3206
+ "name": "readonly",
3207
+ "description": "Mark as readonly",
2737
3208
  "value": { "type": "boolean", "default": "false" }
2738
3209
  },
2739
3210
  {
2740
- "name": "dismissable",
2741
- "description": "Dismissed when touching/clicking outside the content or pressing Escape.\nA non-dismissable modal responds to either gesture with a nudge animation\ninstead of closing.",
3211
+ "name": "required",
3212
+ "description": "Set the field as required",
2742
3213
  "value": { "type": "boolean", "default": "false" }
2743
3214
  },
2744
3215
  {
2745
- "name": "value",
2746
- "description": "Is the modal visible",
3216
+ "name": "shadow",
3217
+ "description": "Shadow variant of the field",
2747
3218
  "value": { "type": "boolean", "default": "false" }
2748
3219
  },
2749
3220
  {
2750
- "name": "width",
2751
- "description": "Width of the dialog. Numeric value is considered as pixel value (400 -> 400px)",
2752
- "value": { "type": "number | string", "default": "600" }
3221
+ "name": "size",
3222
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
3223
+ "value": { "type": "'default' | 'small'", "default": "'default'" }
3224
+ },
3225
+ {
3226
+ "name": "valid",
3227
+ "description": "Set the validity of the field",
3228
+ "value": { "type": "boolean", "default": "true" }
3229
+ },
3230
+ {
3231
+ "name": "value",
3232
+ "description": "The number, or `null` when the field is empty. A string is read as the number it spells, and `''` as empty — what an attribute, or a plain `v-model` holding `null`, writes; the field always emits a number or `null`",
3233
+ "value": { "type": "null | number | string", "default": "null" }
2753
3234
  }
2754
3235
  ],
2755
3236
  "slots": [
2756
3237
  {
2757
- "name": "default",
2758
- "description": "The modal contents (typically a c-card)"
3238
+ "name": "pre",
3239
+ "description": "Content before the number, such as a currency sign"
3240
+ },
3241
+ {
3242
+ "name": "post",
3243
+ "description": "Content after the number, such as a unit"
2759
3244
  }
2760
3245
  ],
2761
3246
  "events": [
2762
3247
  {
2763
- "name": "changeValue",
2764
- "type": "CustomEvent<boolean>",
2765
- "description": "Fired when the modal dismisses itself — a backdrop click or the Escape\nkey on a `dismissable` modal, or a platform-initiated close (e.g. a\nslotted `<form method=\"dialog\">`). The detail is the new open state,\nalways `false`. Also dispatched as `change-value` — bind that name in Vue templates."
3248
+ "name": "change",
3249
+ "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."
2766
3251
  },
2767
3252
  {
2768
3253
  "name": "input",
2769
3254
  "type": "CustomEvent<void>",
2770
- "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
3255
+ "description": "Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works. No detail."
2771
3256
  },
2772
3257
  {
2773
3258
  "name": "update:value",
2774
- "type": "CustomEvent<boolean>",
2775
- "description": "Fired alongside `changeValue` with the same detail — the `v-model`\ncontract."
3259
+ "type": "CustomEvent<null | number>",
3260
+ "description": "v-model contract event, fired with `change`."
2776
3261
  }
2777
3262
  ],
2778
3263
  "js": {
2779
3264
  "properties": [
2780
3265
  {
2781
- "name": "disableBackdropBlur",
2782
- "description": "Disable backdrop blur effect",
3266
+ "name": "decimals",
3267
+ "description": "The most fraction digits the field takes; `0` makes it an integer field",
3268
+ "type": "number"
3269
+ },
3270
+ {
3271
+ "name": "decimalSeparator",
3272
+ "description": "The decimal separator. Empty follows the page's `lang` (`,` for `fi`, `.` for `en`)",
3273
+ "type": "string"
3274
+ },
3275
+ {
3276
+ "name": "disabled",
3277
+ "description": "Disable the field",
2783
3278
  "type": "boolean"
2784
3279
  },
2785
3280
  {
2786
- "name": "dismissable",
2787
- "description": "Dismissed when touching/clicking outside the content or pressing Escape.\nA non-dismissable modal responds to either gesture with a nudge animation\ninstead of closing.",
3281
+ "name": "errorMessage",
3282
+ "description": "Error message shown in place of the hint while the field is invalid",
3283
+ "type": "string"
3284
+ },
3285
+ {
3286
+ "name": "fixedDecimals",
3287
+ "description": "Pad the fraction to exactly `decimals` digits when the field is left (`12,5` → `12,50`)",
2788
3288
  "type": "boolean"
2789
3289
  },
2790
3290
  {
2791
- "name": "value",
2792
- "description": "Is the modal visible",
3291
+ "name": "groupSeparator",
3292
+ "description": "The thousands separator. Empty follows the page's `lang` (a space for `fi`, `,` for `en`)",
3293
+ "type": "string"
3294
+ },
3295
+ {
3296
+ "name": "hideDetails",
3297
+ "description": "Hide the hint and error messages",
2793
3298
  "type": "boolean"
2794
3299
  },
2795
3300
  {
2796
- "name": "width",
2797
- "description": "Width of the dialog. Numeric value is considered as pixel value (400 -> 400px)",
2798
- "type": "number | string"
3301
+ "name": "hint",
3302
+ "description": "Hint text for the field",
3303
+ "type": "string"
3304
+ },
3305
+ {
3306
+ "name": "hostId",
3307
+ "description": "Id of the input",
3308
+ "type": "string"
3309
+ },
3310
+ {
3311
+ "name": "label",
3312
+ "description": "Label of the field",
3313
+ "type": "string"
3314
+ },
3315
+ {
3316
+ "name": "labelOnTop",
3317
+ "description": "Label on top of the field",
3318
+ "type": "boolean"
3319
+ },
3320
+ {
3321
+ "name": "max",
3322
+ "description": "The largest number in range; a larger one is kept and reported as out of range",
3323
+ "type": "null | number"
3324
+ },
3325
+ {
3326
+ "name": "min",
3327
+ "description": "The smallest number in range; a smaller one is kept and reported as out of range. At `0` or above, the minus key is ignored",
3328
+ "type": "null | number"
3329
+ },
3330
+ {
3331
+ "name": "name",
3332
+ "description": "Name of the input",
3333
+ "type": "string"
3334
+ },
3335
+ {
3336
+ "name": "placeholder",
3337
+ "description": "Placeholder of the input",
3338
+ "type": "string"
3339
+ },
3340
+ {
3341
+ "name": "readonly",
3342
+ "description": "Mark as readonly",
3343
+ "type": "boolean"
3344
+ },
3345
+ {
3346
+ "name": "required",
3347
+ "description": "Set the field as required",
3348
+ "type": "boolean"
3349
+ },
3350
+ {
3351
+ "name": "shadow",
3352
+ "description": "Shadow variant of the field",
3353
+ "type": "boolean"
3354
+ },
3355
+ {
3356
+ "name": "size",
3357
+ "description": "Field height: the 52px default (the shared control height) or the 36px `small` box",
3358
+ "type": "'default' | 'small'"
3359
+ },
3360
+ {
3361
+ "name": "valid",
3362
+ "description": "Set the validity of the field",
3363
+ "type": "boolean"
3364
+ },
3365
+ {
3366
+ "name": "value",
3367
+ "description": "The number, or `null` when the field is empty. A string is read as the number it spells, and `''` as empty — what an attribute, or a plain `v-model` holding `null`, writes; the field always emits a number or `null`",
3368
+ "type": "null | number | string"
3369
+ },
3370
+ {
3371
+ "name": "outOfRange",
3372
+ "description": "Whether the number is below `min` or above `max` (CONTEXT.md \"Out of range\")",
3373
+ "type": "boolean"
2799
3374
  }
2800
3375
  ],
2801
3376
  "events": [
2802
3377
  {
2803
- "name": "changeValue",
2804
- "type": "CustomEvent<boolean>",
2805
- "description": "Fired when the modal dismisses itself — a backdrop click or the Escape\nkey on a `dismissable` modal, or a platform-initiated close (e.g. a\nslotted `<form method=\"dialog\">`). The detail is the new open state,\nalways `false`. Also dispatched as `change-value` — bind that name in Vue templates."
3378
+ "name": "change",
3379
+ "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."
2806
3381
  },
2807
3382
  {
2808
3383
  "name": "input",
2809
3384
  "type": "CustomEvent<void>",
2810
- "description": "Native bubbling input event dispatched alongside every value change so a\nplain `v-model` stays in sync. Carries no detail."
3385
+ "description": "Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works. No detail."
2811
3386
  },
2812
3387
  {
2813
3388
  "name": "update:value",
2814
- "type": "CustomEvent<boolean>",
2815
- "description": "Fired alongside `changeValue` with the same detail — the `v-model`\ncontract."
3389
+ "type": "CustomEvent<null | number>",
3390
+ "description": "v-model contract event, fired with `change`."
2816
3391
  }
2817
3392
  ]
2818
3393
  }
2819
3394
  },
2820
- {
2821
- "name": "c-navigation-button",
2822
- "description": "\n---\n\n\n### **CSS Parts:**\n - **root** - The inner c-icon-button carrying the menu icon",
2823
- "doc-url": "",
2824
- "attributes": [],
2825
- "slots": [],
2826
- "events": [],
2827
- "js": { "properties": [], "events": [] }
2828
- },
2829
3395
  {
2830
3396
  "name": "c-option",
2831
3397
  "description": "\n---\n\n\n### **Slots:**\n - **default** - The option's content, rendered in the list row; wrap the label text in c-option-value when the option carries more than its label",
@@ -5074,7 +5640,7 @@
5074
5640
  },
5075
5641
  {
5076
5642
  "name": "c-text-field",
5077
- "description": "\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\ninner input/textarea fires its native change (which does not cross the\nshadow boundary). No detail; read the current text from the host's\n`value` property.\n- **changeValue** - Fired on every keystroke (and on native change), carrying the current\ntext — trimmed when `trim-whitespace` is set. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on every keystroke (and on native change),\ncarrying the current text — trimmed when `trim-whitespace` is set.\n\n### **Slots:**\n - **pre** - Content added before the input\n- **post** - Content added after the input",
5643
+ "description": "A text field for a single line of text, or several lines under `rows`, with a label, a hint and an error message.\n---\n\n\n### **Events:**\n - **change** - Standard bubbling DOM change event, re-dispatched from the host when the\ninner input/textarea fires its native change (which does not cross the\nshadow boundary). No detail; read the current text from the host's\n`value` property.\n- **changeValue** - Fired on every keystroke (and on native change), carrying the current\ntext — trimmed when `trim-whitespace` is set. Also dispatched as `change-value` — bind that name in Vue templates.\n- **input** - Native bubbling input event fired alongside every value change so a\nplain Vue `v-model` works without the `v-control` directive. No detail.\n- **update:value** - v-model contract event fired on every keystroke (and on native change),\ncarrying the current text — trimmed when `trim-whitespace` is set.\n\n### **Slots:**\n - **pre** - Content added before the input\n- **post** - Content added after the input\n\n### **CSS Parts:**\n - **mask-guide** - The faint rest of the input mask, shown behind the typed text",
5078
5644
  "doc-url": "",
5079
5645
  "attributes": [
5080
5646
  {
@@ -5129,6 +5695,11 @@
5129
5695
  "description": "Label on top of the input",
5130
5696
  "value": { "type": "boolean", "default": "false" }
5131
5697
  },
5698
+ {
5699
+ "name": "mask",
5700
+ "description": "Input mask the typed text follows: `#` a digit, `A` a letter, `*` a letter or a digit, `\\` escapes the next character, `[…]` wraps a trailing optional section, anything else is a literal. Applies to a single-line `text`, `tel` or `search` field",
5701
+ "value": { "type": "string", "default": "''" }
5702
+ },
5132
5703
  {
5133
5704
  "name": "max",
5134
5705
  "description": "Maximum value on a numeric input",
@@ -5281,6 +5852,11 @@
5281
5852
  "description": "Label on top of the input",
5282
5853
  "type": "boolean"
5283
5854
  },
5855
+ {
5856
+ "name": "mask",
5857
+ "description": "Input mask the typed text follows: `#` a digit, `A` a letter, `*` a letter or a digit, `\\` escapes the next character, `[…]` wraps a trailing optional section, anything else is a literal. Applies to a single-line `text`, `tel` or `search` field",
5858
+ "type": "string"
5859
+ },
5284
5860
  {
5285
5861
  "name": "max",
5286
5862
  "description": "Maximum value on a numeric input",
@@ -5350,6 +5926,16 @@
5350
5926
  "name": "value",
5351
5927
  "description": "Value of the input",
5352
5928
  "type": "string"
5929
+ },
5930
+ {
5931
+ "name": "maskComplete",
5932
+ "description": "Whether a masked field has every mask token filled (always `true` without a mask)",
5933
+ "type": "boolean"
5934
+ },
5935
+ {
5936
+ "name": "unmaskedValue",
5937
+ "description": "The text without the mask's literals: only the characters filling its tokens (the text as is without a mask)",
5938
+ "type": "string"
5353
5939
  }
5354
5940
  ],
5355
5941
  "events": [
@@ -6089,6 +6675,91 @@
6089
6675
  "name": "part(pagination)",
6090
6676
  "description": "The pagination bar below the table"
6091
6677
  },
6678
+ {
6679
+ "name": "part(input)",
6680
+ "description": "The text input; under `range` both the start and the end input"
6681
+ },
6682
+ {
6683
+ "name": "part(separator)",
6684
+ "description": "The dash between the start and end inputs under `range`"
6685
+ },
6686
+ {
6687
+ "name": "part(panel)",
6688
+ "description": "The top-layer popover container anchored below the field"
6689
+ },
6690
+ {
6691
+ "name": "part(card)",
6692
+ "description": "The dialog surface inside the panel holding the header and the calendar body"
6693
+ },
6694
+ {
6695
+ "name": "part(heading-row)",
6696
+ "description": "The top row of the fullscreen panel (narrow viewports): the field label as heading and the close button"
6697
+ },
6698
+ {
6699
+ "name": "part(heading)",
6700
+ "description": "The field label naming the fullscreen panel"
6701
+ },
6702
+ {
6703
+ "name": "part(close)",
6704
+ "description": "The close button of the fullscreen panel"
6705
+ },
6706
+ {
6707
+ "name": "part(header)",
6708
+ "description": "The row of month and year controls above the calendar body"
6709
+ },
6710
+ {
6711
+ "name": "part(previous-month)",
6712
+ "description": "The arrow to the previous month"
6713
+ },
6714
+ {
6715
+ "name": "part(next-month)",
6716
+ "description": "The arrow to the next month"
6717
+ },
6718
+ {
6719
+ "name": "part(month-button)",
6720
+ "description": "The button showing the displayed month that opens the month list"
6721
+ },
6722
+ {
6723
+ "name": "part(previous-year)",
6724
+ "description": "The arrow to the same month a year earlier"
6725
+ },
6726
+ {
6727
+ "name": "part(next-year)",
6728
+ "description": "The arrow to the same month a year later"
6729
+ },
6730
+ {
6731
+ "name": "part(year-button)",
6732
+ "description": "The button showing the displayed year that opens the year list"
6733
+ },
6734
+ {
6735
+ "name": "part(grid)",
6736
+ "description": "The day grid of the displayed month"
6737
+ },
6738
+ {
6739
+ "name": "part(weekday)",
6740
+ "description": "A weekday column head in the grid"
6741
+ },
6742
+ {
6743
+ "name": "part(week-number)",
6744
+ "description": "An ISO week number beside a grid row (`show-week-numbers`)"
6745
+ },
6746
+ { "name": "part(cell)", "description": "One day's cell in the grid" },
6747
+ {
6748
+ "name": "part(day)",
6749
+ "description": "The circle showing a day's number inside its cell"
6750
+ },
6751
+ {
6752
+ "name": "part(range-band)",
6753
+ "description": "The strip joining a range's days behind their circles"
6754
+ },
6755
+ {
6756
+ "name": "part(list)",
6757
+ "description": "The month or year list swapped in for the grid"
6758
+ },
6759
+ {
6760
+ "name": "part(option)",
6761
+ "description": "One month or year in the list"
6762
+ },
6092
6763
  {
6093
6764
  "name": "part(root)",
6094
6765
  "description": "The separator line element itself"
@@ -6288,6 +6959,7 @@
6288
6959
  "name": "part(root)",
6289
6960
  "description": "The inner c-icon-button carrying the menu icon"
6290
6961
  },
6962
+ { "name": "part(input)", "description": "The text input" },
6291
6963
  {
6292
6964
  "name": "part(root)",
6293
6965
  "description": "The wrapper laying out the label, the digit inputs and the message"
@@ -6597,6 +7269,10 @@
6597
7269
  "name": "part(items)",
6598
7270
  "description": "The wrapping row that lays out the slotted tags"
6599
7271
  },
7272
+ {
7273
+ "name": "part(mask-guide)",
7274
+ "description": "The faint rest of the input mask, shown behind the typed text"
7275
+ },
6600
7276
  {
6601
7277
  "name": "part(root)",
6602
7278
  "description": "The toast's outer box: the inverted-surface pill carrying the shadow"