@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.
- package/dist/base-entry.d.ts +1 -0
- package/dist/base.d.ts +8 -1
- package/dist/base.js +5 -1
- package/dist/chunks/base-BGrS4eIl.js +307 -0
- package/dist/chunks/data-BpiiNapL.js +95 -0
- package/dist/chunks/{keyboard-MQpfTX5I.js → keyboard-CEhMSkws.js} +19 -3
- package/dist/chunks/{modal-hivQ4YoU.js → modal-DWGkNdNG.js} +3 -3
- package/dist/chunks/{overlay-BywGMcDW.js → overlay-CH7L4N-h.js} +2 -2
- package/dist/chunks/{parts-CMQQop0D.js → parts-DI_3VpSy.js} +21 -17
- package/dist/chunks/{base-CMruMbxC.js → projection-oPe6ipjL.js} +105 -389
- package/dist/components/accordion.js +2 -2
- package/dist/components/action-input.d.ts +2 -2
- package/dist/components/action-input.js +56 -54
- package/dist/components/alert.d.ts +11 -0
- package/dist/components/alert.js +11 -4
- package/dist/components/avatar.js +13 -11
- package/dist/components/badge.d.ts +8 -2
- package/dist/components/badge.js +1 -4
- package/dist/components/banner.d.ts +9 -0
- package/dist/components/banner.js +11 -4
- package/dist/components/bar-chart.d.ts +21 -7
- package/dist/components/bar-chart.js +67 -43
- package/dist/components/breadcrumbs.js +2 -2
- package/dist/components/button.js +1 -1
- package/dist/components/calendar.d.ts +40 -2
- package/dist/components/calendar.js +170 -79
- package/dist/components/card.js +1 -1
- package/dist/components/carousel.js +20 -19
- package/dist/components/charts/data.d.ts +72 -0
- package/dist/components/checkbox-group.js +13 -12
- package/dist/components/checkbox.js +17 -16
- package/dist/components/collapsible.js +2 -2
- package/dist/components/color-picker.js +26 -24
- package/dist/components/combobox.js +17 -16
- package/dist/components/compose-input.js +13 -11
- package/dist/components/dialog.js +1 -1
- package/dist/components/divider.js +11 -9
- package/dist/components/donut-chart.d.ts +22 -6
- package/dist/components/donut-chart.js +96 -68
- package/dist/components/drawer.d.ts +2 -2
- package/dist/components/drawer.js +1 -1
- package/dist/components/dropdown-menu.js +4 -4
- package/dist/components/editable.js +13 -12
- package/dist/components/error-fallback.js +2 -2
- package/dist/components/field.js +10 -9
- package/dist/components/file-upload.d.ts +20 -5
- package/dist/components/file-upload.js +52 -20
- package/dist/components/gauge.d.ts +32 -8
- package/dist/components/gauge.js +209 -135
- package/dist/components/hamburger.d.ts +12 -1
- package/dist/components/hamburger.js +33 -20
- package/dist/components/hover-card.js +3 -3
- package/dist/components/indicator.js +14 -12
- package/dist/components/input.js +41 -39
- package/dist/components/line-chart.d.ts +22 -7
- package/dist/components/line-chart.js +80 -56
- package/dist/components/list.js +1 -1
- package/dist/components/menu.js +3 -3
- package/dist/components/multiselect.js +30 -29
- package/dist/components/nav-bar.d.ts +9 -0
- package/dist/components/nav-bar.js +16 -3
- package/dist/components/nav-menu.js +20 -19
- package/dist/components/number-input.js +17 -15
- package/dist/components/pagination.js +22 -20
- package/dist/components/panel.js +2 -2
- package/dist/components/pin-input.js +32 -30
- package/dist/components/popover.js +3 -3
- package/dist/components/progress.js +14 -12
- package/dist/components/radio-group.js +13 -11
- package/dist/components/radio.d.ts +25 -0
- package/dist/components/radio.js +78 -29
- package/dist/components/scroll-area.js +8 -7
- package/dist/components/segmented-control.js +21 -21
- package/dist/components/select.js +49 -47
- package/dist/components/sidebar.d.ts +2 -2
- package/dist/components/sidebar.js +2 -2
- package/dist/components/skeleton.js +1 -1
- package/dist/components/slider.js +16 -14
- package/dist/components/spinner.js +11 -9
- package/dist/components/stat.d.ts +13 -1
- package/dist/components/stat.js +29 -19
- package/dist/components/status-dot.js +1 -1
- package/dist/components/stepper.js +15 -13
- package/dist/components/switch.js +14 -12
- package/dist/components/table.d.ts +4 -0
- package/dist/components/table.js +42 -29
- package/dist/components/tabs.js +29 -29
- package/dist/components/tag.js +9 -8
- package/dist/components/tags-input.js +24 -22
- package/dist/components/textarea.js +34 -32
- package/dist/components/toast.d.ts +19 -2
- package/dist/components/toast.js +43 -10
- package/dist/components/toggle-group.js +16 -15
- package/dist/components/toggle.js +1 -1
- package/dist/components/tooltip.js +3 -3
- package/dist/components.json +15 -13
- package/dist/custom-elements.json +320 -88
- package/dist/dev/types.d.ts +3 -1
- package/dist/dev.js +85 -16
- package/dist/index.js +1 -1
- package/dist/keyboard.d.ts +10 -0
- package/dist/llms.txt +1 -1
- package/dist/parts.d.ts +5 -0
- package/dist/projection-api.d.ts +23 -0
- package/dist/projection.d.ts +8 -2
- package/dist/reference.md +84 -59
- package/dist/types/elements.d.ts +13 -13
- package/dist/types/react.d.ts +2 -2
- package/dist/types/solid.d.ts +2 -2
- package/dist/types/svelte.d.ts +2 -2
- package/dist/types/vue.d.ts +2 -2
- package/dist/vscode.html-custom-data.json +108 -28
- package/dist/web-types.json +189 -60
- package/package.json +1 -1
|
@@ -1,26 +1,30 @@
|
|
|
1
|
-
import { t as e } from "../chunks/base-
|
|
1
|
+
import { t as e } from "../chunks/base-BGrS4eIl.js";
|
|
2
2
|
import { t } from "../chunks/decorate-CaYbmmmm.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
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
|
-
|
|
10
|
+
n();
|
|
11
|
+
function g(e) {
|
|
8
12
|
return 1 - (1 - e) ** 3;
|
|
9
13
|
}
|
|
10
|
-
function
|
|
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
|
|
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
|
|
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
|
|
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) *
|
|
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 =
|
|
42
|
-
|
|
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", "
|
|
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
|
|
72
|
-
let
|
|
73
|
-
return
|
|
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
|
-
|
|
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
|
-
${
|
|
83
|
-
let t =
|
|
84
|
-
return
|
|
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
|
-
${
|
|
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
|
-
${
|
|
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 =
|
|
96
|
-
return
|
|
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
|
|
100
|
-
return
|
|
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=${
|
|
103
|
-
y=${
|
|
113
|
+
x=${o}
|
|
114
|
+
y=${c}
|
|
104
115
|
width=${i - 2}
|
|
105
|
-
height=${
|
|
106
|
-
style=${
|
|
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 =
|
|
115
|
-
return
|
|
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 =
|
|
119
|
-
return
|
|
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
|
-
}) :
|
|
134
|
+
}) : d}
|
|
124
135
|
|
|
125
136
|
<g class="void-bar-chart-x-axis">
|
|
126
|
-
${t.slice(0,
|
|
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([
|
|
152
|
+
t([p({
|
|
133
153
|
type: Number,
|
|
134
154
|
reflect: !0
|
|
135
|
-
})],
|
|
155
|
+
})], b.prototype, "height", void 0), t([p({
|
|
136
156
|
type: Boolean,
|
|
137
157
|
attribute: "show-value",
|
|
138
158
|
reflect: !0
|
|
139
|
-
})],
|
|
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 {
|
|
165
|
+
export { b as VoidBarChart };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../chunks/base-
|
|
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-
|
|
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-
|
|
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
|
|
109
|
-
*
|
|
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
|
}
|