@voidable/ui 0.9.0 → 0.11.0

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.
Files changed (114) hide show
  1. package/dist/base-entry.d.ts +1 -0
  2. package/dist/base.d.ts +8 -1
  3. package/dist/base.js +5 -1
  4. package/dist/chunks/base-BGrS4eIl.js +307 -0
  5. package/dist/chunks/data-BpiiNapL.js +95 -0
  6. package/dist/chunks/{keyboard-MQpfTX5I.js → keyboard-CEhMSkws.js} +19 -3
  7. package/dist/chunks/{modal-hivQ4YoU.js → modal-DWGkNdNG.js} +3 -3
  8. package/dist/chunks/{overlay-BywGMcDW.js → overlay-CH7L4N-h.js} +2 -2
  9. package/dist/chunks/{parts-CMQQop0D.js → parts-DI_3VpSy.js} +21 -17
  10. package/dist/chunks/{base-CMruMbxC.js → projection-oPe6ipjL.js} +105 -389
  11. package/dist/components/accordion.js +2 -2
  12. package/dist/components/action-input.d.ts +2 -2
  13. package/dist/components/action-input.js +56 -54
  14. package/dist/components/alert.d.ts +11 -0
  15. package/dist/components/alert.js +11 -4
  16. package/dist/components/avatar.js +13 -11
  17. package/dist/components/badge.d.ts +8 -2
  18. package/dist/components/badge.js +1 -4
  19. package/dist/components/banner.d.ts +9 -0
  20. package/dist/components/banner.js +11 -4
  21. package/dist/components/bar-chart.d.ts +21 -7
  22. package/dist/components/bar-chart.js +67 -43
  23. package/dist/components/breadcrumbs.js +2 -2
  24. package/dist/components/button.js +1 -1
  25. package/dist/components/calendar.d.ts +40 -2
  26. package/dist/components/calendar.js +170 -79
  27. package/dist/components/card.js +1 -1
  28. package/dist/components/carousel.js +20 -19
  29. package/dist/components/charts/data.d.ts +72 -0
  30. package/dist/components/checkbox-group.js +13 -12
  31. package/dist/components/checkbox.js +17 -16
  32. package/dist/components/collapsible.js +2 -2
  33. package/dist/components/color-picker.js +26 -24
  34. package/dist/components/combobox.js +17 -16
  35. package/dist/components/compose-input.js +13 -11
  36. package/dist/components/dialog.js +1 -1
  37. package/dist/components/divider.js +11 -9
  38. package/dist/components/donut-chart.d.ts +22 -6
  39. package/dist/components/donut-chart.js +96 -68
  40. package/dist/components/drawer.d.ts +2 -2
  41. package/dist/components/drawer.js +1 -1
  42. package/dist/components/dropdown-menu.js +4 -4
  43. package/dist/components/editable.js +13 -12
  44. package/dist/components/error-fallback.js +2 -2
  45. package/dist/components/field.js +10 -9
  46. package/dist/components/file-upload.d.ts +20 -5
  47. package/dist/components/file-upload.js +52 -20
  48. package/dist/components/gauge.d.ts +32 -8
  49. package/dist/components/gauge.js +209 -135
  50. package/dist/components/hamburger.d.ts +12 -1
  51. package/dist/components/hamburger.js +33 -20
  52. package/dist/components/hover-card.js +3 -3
  53. package/dist/components/indicator.js +14 -12
  54. package/dist/components/input.js +41 -39
  55. package/dist/components/line-chart.d.ts +22 -7
  56. package/dist/components/line-chart.js +80 -56
  57. package/dist/components/list.js +1 -1
  58. package/dist/components/menu.js +3 -3
  59. package/dist/components/multiselect.js +30 -29
  60. package/dist/components/nav-bar.d.ts +9 -0
  61. package/dist/components/nav-bar.js +16 -3
  62. package/dist/components/nav-menu.js +20 -19
  63. package/dist/components/number-input.js +17 -15
  64. package/dist/components/pagination.js +22 -20
  65. package/dist/components/panel.js +2 -2
  66. package/dist/components/pin-input.js +32 -30
  67. package/dist/components/popover.js +3 -3
  68. package/dist/components/progress.js +14 -12
  69. package/dist/components/radio-group.js +13 -11
  70. package/dist/components/radio.d.ts +25 -0
  71. package/dist/components/radio.js +78 -29
  72. package/dist/components/scroll-area.js +8 -7
  73. package/dist/components/segmented-control.js +21 -21
  74. package/dist/components/select.js +49 -47
  75. package/dist/components/sidebar.d.ts +2 -2
  76. package/dist/components/sidebar.js +2 -2
  77. package/dist/components/skeleton.js +1 -1
  78. package/dist/components/slider.js +16 -14
  79. package/dist/components/spinner.js +11 -9
  80. package/dist/components/stat.d.ts +13 -1
  81. package/dist/components/stat.js +29 -19
  82. package/dist/components/status-dot.js +1 -1
  83. package/dist/components/stepper.js +15 -13
  84. package/dist/components/switch.js +14 -12
  85. package/dist/components/table.d.ts +4 -0
  86. package/dist/components/table.js +42 -29
  87. package/dist/components/tabs.js +29 -29
  88. package/dist/components/tag.js +9 -8
  89. package/dist/components/tags-input.js +24 -22
  90. package/dist/components/textarea.js +34 -32
  91. package/dist/components/toast.d.ts +19 -2
  92. package/dist/components/toast.js +43 -10
  93. package/dist/components/toggle-group.js +16 -15
  94. package/dist/components/toggle.js +1 -1
  95. package/dist/components/tooltip.js +3 -3
  96. package/dist/components.json +15 -13
  97. package/dist/custom-elements.json +320 -88
  98. package/dist/dev/types.d.ts +3 -1
  99. package/dist/dev.js +85 -16
  100. package/dist/index.js +1 -1
  101. package/dist/keyboard.d.ts +10 -0
  102. package/dist/llms.txt +1 -1
  103. package/dist/parts.d.ts +5 -0
  104. package/dist/projection-api.d.ts +23 -0
  105. package/dist/projection.d.ts +8 -2
  106. package/dist/reference.md +84 -59
  107. package/dist/types/elements.d.ts +13 -13
  108. package/dist/types/react.d.ts +2 -2
  109. package/dist/types/solid.d.ts +2 -2
  110. package/dist/types/svelte.d.ts +2 -2
  111. package/dist/types/vue.d.ts +2 -2
  112. package/dist/vscode.html-custom-data.json +108 -28
  113. package/dist/web-types.json +189 -60
  114. package/package.json +1 -1
@@ -1,26 +1,30 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
1
+ import { t as e } from "../chunks/base-BGrS4eIl.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
- import { n, t as r } from "../chunks/scale-_ccSuoYg.js";
4
- import { html as i, nothing as a, svg as o } from "lit";
5
- import { property as s, state as c } from "lit/decorators.js";
3
+ import { r as n } from "../chunks/projection-oPe6ipjL.js";
4
+ import { n as r, t as i } from "../chunks/scale-_ccSuoYg.js";
5
+ import { a, c as o, n as s, o as c, t as l } from "../chunks/data-BpiiNapL.js";
6
+ import { html as u, nothing as d, svg as f } from "lit";
7
+ import { property as p, state as m } from "lit/decorators.js";
8
+ import { guard as h } from "lit/directives/guard.js";
6
9
  //#region src/components/bar-chart.ts
7
- function l(e) {
10
+ n();
11
+ function g(e) {
8
12
  return 1 - (1 - e) ** 3;
9
13
  }
10
- function u(e) {
14
+ function _(e) {
11
15
  return e === 0 ? "0" : Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e4 ? 0 : 1)}k` : Number.isInteger(e) ? String(e) : e.toFixed(1);
12
16
  }
13
- function d(e) {
17
+ function v(e) {
14
18
  return Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(e >= 1e4 ? 0 : 1)}k` : Math.round(e).toString();
15
19
  }
16
- function f(e) {
20
+ function y(e) {
17
21
  if (e <= 0) return 1;
18
22
  let t = 10 ** Math.floor(Math.log10(e)), n = e / t;
19
23
  return (n <= 1 ? 1 : n <= 2 ? 2 : n <= 5 ? 5 : 10) * t;
20
24
  }
21
- var p = class extends e {
25
+ var b = class extends e {
22
26
  constructor(...e) {
23
- super(...e), this.height = 220, this.showValue = !1, this.variant = "filled", this.ariaLabel = "", this.stagger = null, this._data = { series: [] }, this._phase = "pre", this._display = /* @__PURE__ */ new Map(), this._targets = /* @__PURE__ */ new Map(), this._animFrom = /* @__PURE__ */ new Map(), this._animStart = 0, this._animDuration = 0, this._staggerMs = 0, this._rafHandle = 0, this._tick = (e) => {
27
+ super(...e), this.height = 220, this.showValue = !1, this.variant = "filled", this.ariaLabel = "", this.showTable = !1, this.stagger = null, this._data = { series: [] }, this._source = { text: null }, this._entered = !1, this._phase = "pre", this._display = /* @__PURE__ */ new Map(), this._targets = /* @__PURE__ */ new Map(), this._animFrom = /* @__PURE__ */ new Map(), this._animStart = 0, this._animDuration = 0, this._staggerMs = 0, this._rafHandle = 0, this._tick = (e) => {
24
28
  let t = e - this._animStart, n = !1;
25
29
  for (let [e, r] of this._targets) {
26
30
  let [, i] = e.split("-"), a = Number(i) * this._staggerMs, o = a + this._animDuration, s = this._animFrom.get(e) ?? 0;
@@ -28,7 +32,7 @@ var p = class extends e {
28
32
  else if (t >= o) this._display.set(e, r);
29
33
  else {
30
34
  let i = (t - a) / this._animDuration;
31
- this._display.set(e, s + (r - s) * l(i)), n = !0;
35
+ this._display.set(e, s + (r - s) * g(i)), n = !0;
32
36
  }
33
37
  }
34
38
  this.requestUpdate(), n ? this._rafHandle = requestAnimationFrame(this._tick) : this._phase = "idle";
@@ -38,8 +42,16 @@ var p = class extends e {
38
42
  return this._data;
39
43
  }
40
44
  set data(e) {
41
- let t = new Map(this._display);
42
- this._data = e, this._refreshTargets(), this.requestUpdate(), this.updateComplete.then(() => this._startAnimation(t));
45
+ let t = c(e, this._source, {
46
+ attr: "data",
47
+ shape: "{\"series\":[{\"name\":\"Sales\",\"values\":[3,5]}],\"labels\":[\"Mon\",\"Tue\"]}",
48
+ empty: () => ({ series: [] }),
49
+ normalize: a,
50
+ warn: (e, t) => this.reportDev("invalid-data", e, t)
51
+ });
52
+ if (!t) return;
53
+ let n = new Map(this._display);
54
+ this._data = t.value, this._refreshTargets(), this.requestUpdate(), this._entered && this.updateComplete.then(() => this._startAnimation(n));
43
55
  }
44
56
  _key(e, t) {
45
57
  return `${e}-${t}`;
@@ -50,8 +62,8 @@ var p = class extends e {
50
62
  });
51
63
  }
52
64
  connectedCallback() {
53
- super.connectedCallback(), this.setHostAttribute("role", "img"), this._refreshTargets(), requestAnimationFrame(() => {
54
- this._startAnimation(/* @__PURE__ */ new Map());
65
+ super.connectedCallback(), this.setHostAttribute("role", "figure"), this._refreshTargets(), requestAnimationFrame(() => {
66
+ this._entered = !0, this._startAnimation(/* @__PURE__ */ new Map());
55
67
  });
56
68
  }
57
69
  disconnectedCallback() {
@@ -68,42 +80,41 @@ var p = class extends e {
68
80
  }
69
81
  render() {
70
82
  let { series: e, labels: t = [] } = this._data;
71
- if (e.length === 0) return i`<svg viewBox="0 0 600 ${this.height}" role="img" aria-label=${this.ariaLabel || "Bar chart"}></svg>`;
72
- let s = this.height - 16 - 32, c = Math.max(...e.map((e) => e.values.length)), l = e.flatMap((e) => e.values).filter(Number.isFinite), p = Math.max(...l, 0), m = Math.min(...l, 0), h = m < 0 ? -f(-m * 1.1) : 0, g = new n([h, p > 0 || h === 0 ? f(p * 1.1) || 1 : 0], [16 + s, 16]), _ = g.scale(0), v = new r(c, [40, 584], .2), y = g.ticks(5);
73
- return i`
83
+ if (e.length === 0) return u`<svg viewBox="0 0 600 ${this.height}" aria-hidden="true"></svg>`;
84
+ let n = this.height - 16 - 32, a = Math.max(...e.map((e) => e.values.length)), o = e.flatMap((e) => e.values).filter(Number.isFinite), s = Math.max(...o, 0), c = Math.min(...o, 0), l = c < 0 ? -y(-c * 1.1) : 0, p = new r([l, s > 0 || l === 0 ? y(s * 1.1) || 1 : 0], [16 + n, 16]), m = p.scale(0), h = new i(a, [40, 584], .2), g = p.ticks(5);
85
+ return u`
74
86
  <svg
75
87
  viewBox="0 0 600 ${this.height}"
76
88
  preserveAspectRatio="none"
77
- role="img"
78
- aria-label=${this.ariaLabel || "Bar chart"}
89
+ aria-hidden="true"
79
90
  data-phase=${this._phase}
80
91
  >
81
92
  <g class="void-bar-chart-grid">
82
- ${y.map((e) => {
83
- let t = g.scale(e);
84
- return o`<line x1=${40} x2=${584} y1=${t} y2=${t}></line>`;
93
+ ${g.map((e) => {
94
+ let t = p.scale(e);
95
+ return f`<line x1=${40} x2=${584} y1=${t} y2=${t}></line>`;
85
96
  })}
86
97
  </g>
87
98
 
88
- ${h < 0 ? o`<line class="void-bar-chart-baseline" x1=${40} x2=${584} y1=${_} y2=${_}></line>` : a}
99
+ ${l < 0 ? f`<line class="void-bar-chart-baseline" x1=${40} x2=${584} y1=${m} y2=${m}></line>` : d}
89
100
 
90
101
  <g class="void-bar-chart-y-axis">
91
- ${y.map((e) => o`<text x=${32} y=${g.scale(e)} dy="0.32em" text-anchor="end">${u(e)}</text>`)}
102
+ ${g.map((e) => f`<text x=${32} y=${p.scale(e)} dy="0.32em" text-anchor="end">${_(e)}</text>`)}
92
103
  </g>
93
104
 
94
105
  ${e.map((t, n) => {
95
- let r = t.color ?? `var(--void-chart-series-${n % 6 + 1})`, i = v.bandwidth / e.length;
96
- return o`
106
+ let r = t.color ?? `var(--void-chart-series-${n % 6 + 1})`, i = h.bandwidth / e.length;
107
+ return f`
97
108
  <g class="void-bar-chart-series" style="--series-color: ${r}">
98
109
  ${t.values.map((e, r) => {
99
- let s = this._display.get(this._key(n, r)) ?? 0, c = v.scale(r) + i * n, l = g.scale(s), u = Math.min(l, _), d = Math.abs(_ - l), f = t.colors?.[r];
100
- return o`<rect
110
+ let a = this._display.get(this._key(n, r)) ?? 0, o = h.scale(r) + i * n, s = p.scale(a), c = Math.min(s, m), l = Math.abs(m - s), u = t.colors?.[r];
111
+ return f`<rect
101
112
  class="void-bar-chart-bar"
102
- x=${c}
103
- y=${u}
113
+ x=${o}
114
+ y=${c}
104
115
  width=${i - 2}
105
- height=${d}
106
- style=${f ? `--series-color: ${f}` : a}
116
+ height=${l}
117
+ style=${u ? `--series-color: ${u}` : d}
107
118
  ></rect>`;
108
119
  })}
109
120
  </g>
@@ -111,31 +122,44 @@ var p = class extends e {
111
122
  })}
112
123
 
113
124
  ${this.showValue ? e.map((t, n) => {
114
- let r = v.bandwidth / e.length;
115
- return o`
125
+ let r = h.bandwidth / e.length;
126
+ return f`
116
127
  <g class="void-bar-chart-values">
117
128
  ${t.values.map((e, t) => {
118
- let i = this._display.get(this._key(n, t)) ?? 0, a = v.scale(t) + r * n + (r - 2) / 2, s = g.scale(i);
119
- return o`<text x=${a} y=${i < 0 ? s + 14 : s - 6} text-anchor="middle">${d(i)}</text>`;
129
+ let i = this._display.get(this._key(n, t)) ?? 0, a = h.scale(t) + r * n + (r - 2) / 2, o = p.scale(i);
130
+ return f`<text x=${a} y=${i < 0 ? o + 14 : o - 6} text-anchor="middle">${v(i)}</text>`;
120
131
  })}
121
132
  </g>
122
133
  `;
123
- }) : a}
134
+ }) : d}
124
135
 
125
136
  <g class="void-bar-chart-x-axis">
126
- ${t.slice(0, c).map((e, t) => o`<text x=${v.scale(t) + v.bandwidth / 2} y=${16 + s + 18} text-anchor="middle">${e}</text>`)}
137
+ ${t.slice(0, a).map((e, t) => f`<text x=${h.scale(t) + h.bandwidth / 2} y=${16 + n + 18} text-anchor="middle">${e}</text>`)}
127
138
  </g>
128
139
  </svg>
140
+ ${this._table()}
129
141
  `;
130
142
  }
143
+ _table() {
144
+ let e = this._data, t = this.ariaLabel || "Bar chart";
145
+ return h([
146
+ e,
147
+ t,
148
+ l(this)
149
+ ], () => s("void-bar-chart-table", o(this, t, e.series, e.labels ?? [])));
150
+ }
131
151
  };
132
- t([s({
152
+ t([p({
133
153
  type: Number,
134
154
  reflect: !0
135
- })], p.prototype, "height", void 0), t([s({
155
+ })], b.prototype, "height", void 0), t([p({
136
156
  type: Boolean,
137
157
  attribute: "show-value",
138
158
  reflect: !0
139
- })], p.prototype, "showValue", void 0), t([s({ reflect: !0 })], p.prototype, "variant", void 0), t([s({ attribute: "aria-label" })], p.prototype, "ariaLabel", void 0), t([s({ type: Number })], p.prototype, "stagger", void 0), t([c()], p.prototype, "_phase", void 0), customElements.get("void-bar-chart") || customElements.define("void-bar-chart", p);
159
+ })], b.prototype, "showValue", void 0), t([p({ reflect: !0 })], b.prototype, "variant", void 0), t([p({ attribute: "aria-label" })], b.prototype, "ariaLabel", void 0), t([p({
160
+ type: Boolean,
161
+ attribute: "show-table",
162
+ reflect: !0
163
+ })], b.prototype, "showTable", void 0), t([p({ type: Number })], b.prototype, "stagger", void 0), t([p({ attribute: "data" })], b.prototype, "data", null), t([m()], b.prototype, "_phase", void 0), customElements.get("void-bar-chart") || customElements.define("void-bar-chart", b);
140
164
  //#endregion
141
- export { p as VoidBarChart };
165
+ export { b as VoidBarChart };
@@ -1,6 +1,6 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
1
+ import { t as e } from "../chunks/base-BGrS4eIl.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
- import { n } from "../chunks/parts-CMQQop0D.js";
3
+ import { n } from "../chunks/parts-DI_3VpSy.js";
4
4
  import { property as r } from "lit/decorators.js";
5
5
  //#region src/components/breadcrumbs.ts
6
6
  var i = "void-breadcrumbs-list", a = "void-breadcrumbs-item", o = class extends e {
@@ -1,4 +1,4 @@
1
- import { t as e } from "../chunks/base-CMruMbxC.js";
1
+ import { t as e } from "../chunks/base-BGrS4eIl.js";
2
2
  import { t } from "../chunks/decorate-CaYbmmmm.js";
3
3
  import { t as n } from "../chunks/keyboard-activation-CV0m4hkn.js";
4
4
  import { i as r, r as i } from "../chunks/form-control-C0vH6gii.js";
@@ -1,4 +1,5 @@
1
1
  import { VoidElement } from '../base.js';
2
+ import { FormValidityResult } from '../form-control.js';
2
3
  import { OverlayController } from '../overlay.js';
3
4
  declare const VoidCalendar_base: (new (...args: any[]) => import('../form-control.js').VoidInternalsFormControl) & typeof VoidElement;
4
5
  /** Date selection for booking flows, scheduling UIs, and form fields with locale-aware formatting and min/max constraints. */
@@ -72,6 +73,12 @@ declare const VoidDatePicker_base: (new (...args: any[]) => import('../form-cont
72
73
  * field open it with focus on the selected (or current) day. Choosing a day, Escape, or a press outside closes
73
74
  * it and focus returns to the input.
74
75
  *
76
+ * The field also takes a typed date, in `format` or as ISO `YYYY-MM-DD`: it is read when the field loses focus
77
+ * and on Enter, the calendar follows, and `void-change` fires once with the ISO value. A date that is not a date,
78
+ * or is before `min` or after `max`, is refused: the text stays for correction, `error` explains it, the field
79
+ * is `aria-invalid` and described by the message, and the form is not submitted (`badInput`, `rangeUnderflow` or
80
+ * `rangeOverflow`). An empty field clears the value.
81
+ *
75
82
  * @fires {CustomEvent<{ reason: 'trigger' | 'focus' | 'keyboard' | 'api' }>} void-open - The calendar popup
76
83
  * opened: `trigger` from the calendar button, `focus` from a click on the field, `keyboard` from a key.
77
84
  * @fires {CustomEvent<{ reason: 'trigger' | 'select' | 'escape' | 'outside' | 'blur' | 'parent' | 'api' }>} void-close -
@@ -105,12 +112,31 @@ export declare class VoidDatePicker extends VoidDatePicker_base {
105
112
  /** Hint shown in the field while no date is chosen. Defaults to `Select date`. */
106
113
  placeholder: string;
107
114
  /**
108
- * How the chosen date is written in the field, using `YYYY`, `MM` and `DD`. Defaults to `MM/DD/YYYY`.
109
- * Display only; the value stays `YYYY-MM-DD`.
115
+ * How the date is written in the field, using `YYYY`, `MM` and `DD`. Defaults to `MM/DD/YYYY`. A date
116
+ * typed into the field is read the same way (and as ISO `YYYY-MM-DD` always); the value stays `YYYY-MM-DD`.
110
117
  */
111
118
  format: string;
112
119
  /** Status colour of the field: `default`, `error`, `warning`, `caution`, `success`, `info`, `notice` or `highlight`. */
113
120
  color: 'default' | 'error' | 'warning' | 'caution' | 'success' | 'info' | 'notice' | 'highlight';
121
+ /**
122
+ * Mark the field invalid: it gets the error styling and `aria-invalid`. Set it for a server-side message;
123
+ * the field also sets it itself, with the reason, when a typed date is not taken, and clears what it set
124
+ * once a valid date is typed or picked. A message you set is left alone.
125
+ */
126
+ error: string;
127
+ /** Text typed and not committed yet; null while the field shows `value`. Survives re-renders and morphs until committed. */
128
+ private _draft;
129
+ /** Why the committed text was refused, as the browser's validity reports it; null when it was taken. */
130
+ private _rejected;
131
+ /** The message this field wrote into `error`, so one the author wrote is told apart from it. */
132
+ private _ownError;
133
+ private readonly _errorId;
134
+ /** The typed text is the field's own to keep: a server patch of `value` discards it, any other morph does not. */
135
+ static clientState: {
136
+ _draft: string;
137
+ };
138
+ /** While focus is inside, a morph does not apply the server's value over the date the user is typing. */
139
+ static editState: string[];
114
140
  /** The calendar popup, controlled by the input (APG date picker combobox). */
115
141
  private readonly _dropdownId;
116
142
  protected readonly _overlay: OverlayController;
@@ -119,6 +145,18 @@ export declare class VoidDatePicker extends VoidDatePicker_base {
119
145
  render(): import('lit').TemplateResult<1>;
120
146
  private _toggle;
121
147
  private _onInputClick;
148
+ /** What the field shows for the committed value. */
149
+ private get _display();
150
+ private _onInput;
151
+ /** Takes the typed text: a date in `format` or ISO sets the value, anything else is refused and kept for correction. */
152
+ private _commit;
153
+ /** The text was taken (or discarded): no refusal, and the error the field wrote itself goes. */
154
+ private _accept;
155
+ /** A date typed in: keeps the calendar in step through `value`, fires `void-change` once, and closes the calendar. */
156
+ private _setTyped;
157
+ protected formValidity(): FormValidityResult | null;
158
+ protected formRestore(state: unknown): void;
159
+ protected willUpdate(changed: Map<string, unknown>): void;
122
160
  private _onCalendarChange;
123
161
  private _onInputKeydown;
124
162
  }