@agent-ui-kit/components 0.0.3
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-styles.css +8 -0
- package/dist/component-styles.css +147 -0
- package/dist/controls/_base/index.d.ts +3 -0
- package/dist/controls/_base/index.js +9 -0
- package/dist/controls/_base/indicator-element.d.ts +132 -0
- package/dist/controls/_base/indicator-element.js +158 -0
- package/dist/controls/_base/listbox-element.d.ts +70 -0
- package/dist/controls/_base/listbox-element.js +74 -0
- package/dist/controls/_base/range-element.d.ts +120 -0
- package/dist/controls/_base/range-element.js +158 -0
- package/dist/controls/_surface/container-box.css +301 -0
- package/dist/controls/_surface/container.css +156 -0
- package/dist/controls/_token-surface/token-surface.d.ts +35 -0
- package/dist/controls/_token-surface/token-surface.js +97 -0
- package/dist/controls/attachment/attachment-meta.d.ts +8 -0
- package/dist/controls/attachment/attachment-meta.js +84 -0
- package/dist/controls/attachment/attachment.css +91 -0
- package/dist/controls/attachment/attachment.d.ts +40 -0
- package/dist/controls/attachment/attachment.js +70 -0
- package/dist/controls/avatar/avatar-initials.d.ts +4 -0
- package/dist/controls/avatar/avatar-initials.js +30 -0
- package/dist/controls/avatar/avatar.css +87 -0
- package/dist/controls/avatar/avatar.d.ts +40 -0
- package/dist/controls/avatar/avatar.js +77 -0
- package/dist/controls/badge/badge.css +175 -0
- package/dist/controls/badge/badge.d.ts +36 -0
- package/dist/controls/badge/badge.js +71 -0
- package/dist/controls/bar-chart/bar-chart.css +110 -0
- package/dist/controls/bar-chart/bar-chart.d.ts +26 -0
- package/dist/controls/bar-chart/bar-chart.js +80 -0
- package/dist/controls/bar-chart/bar-math.d.ts +31 -0
- package/dist/controls/bar-chart/bar-math.js +106 -0
- package/dist/controls/button/button.css +263 -0
- package/dist/controls/button/button.d.ts +61 -0
- package/dist/controls/button/button.js +115 -0
- package/dist/controls/calendar/calendar.css +495 -0
- package/dist/controls/calendar/calendar.d.ts +161 -0
- package/dist/controls/calendar/calendar.js +1004 -0
- package/dist/controls/card/card-content.d.ts +24 -0
- package/dist/controls/card/card-content.js +133 -0
- package/dist/controls/card/card-footer.d.ts +3 -0
- package/dist/controls/card/card-footer.js +16 -0
- package/dist/controls/card/card-header.d.ts +3 -0
- package/dist/controls/card/card-header.js +18 -0
- package/dist/controls/card/card.css +445 -0
- package/dist/controls/card/card.d.ts +51 -0
- package/dist/controls/card/card.js +61 -0
- package/dist/controls/checkbox/checkbox.css +204 -0
- package/dist/controls/checkbox/checkbox.d.ts +114 -0
- package/dist/controls/checkbox/checkbox.js +130 -0
- package/dist/controls/code/code.css +72 -0
- package/dist/controls/code/code.d.ts +23 -0
- package/dist/controls/code/code.js +40 -0
- package/dist/controls/color-picker/color-picker.css +209 -0
- package/dist/controls/color-picker/color-picker.d.ts +84 -0
- package/dist/controls/color-picker/color-picker.js +545 -0
- package/dist/controls/color-picker/color.d.ts +40 -0
- package/dist/controls/color-picker/color.js +159 -0
- package/dist/controls/column/column.css +151 -0
- package/dist/controls/column/column.d.ts +107 -0
- package/dist/controls/column/column.js +57 -0
- package/dist/controls/combo-box/combo-box.css +397 -0
- package/dist/controls/combo-box/combo-box.d.ts +133 -0
- package/dist/controls/combo-box/combo-box.js +680 -0
- package/dist/controls/command-modal/command-modal.css +226 -0
- package/dist/controls/command-modal/command-modal.d.ts +42 -0
- package/dist/controls/command-modal/command-modal.js +315 -0
- package/dist/controls/disclosure/disclosure.css +162 -0
- package/dist/controls/disclosure/disclosure.d.ts +37 -0
- package/dist/controls/disclosure/disclosure.js +207 -0
- package/dist/controls/field/field.css +140 -0
- package/dist/controls/field/field.d.ts +27 -0
- package/dist/controls/field/field.js +228 -0
- package/dist/controls/form-provider/form-provider.css +40 -0
- package/dist/controls/form-provider/form-provider.d.ts +42 -0
- package/dist/controls/form-provider/form-provider.js +105 -0
- package/dist/controls/grid/grid.css +72 -0
- package/dist/controls/grid/grid.d.ts +60 -0
- package/dist/controls/grid/grid.js +56 -0
- package/dist/controls/icon/icon.css +37 -0
- package/dist/controls/icon/icon.d.ts +25 -0
- package/dist/controls/icon/icon.js +55 -0
- package/dist/controls/index.d.ts +57 -0
- package/dist/controls/index.js +136 -0
- package/dist/controls/ladder/ladder.css +89 -0
- package/dist/controls/ladder/ladder.d.ts +27 -0
- package/dist/controls/ladder/ladder.js +78 -0
- package/dist/controls/list/list.css +118 -0
- package/dist/controls/list/list.d.ts +84 -0
- package/dist/controls/list/list.js +48 -0
- package/dist/controls/menu/menu.css +195 -0
- package/dist/controls/menu/menu.d.ts +44 -0
- package/dist/controls/menu/menu.js +248 -0
- package/dist/controls/modal/modal.css +99 -0
- package/dist/controls/modal/modal.d.ts +61 -0
- package/dist/controls/modal/modal.js +155 -0
- package/dist/controls/popover/popover.css +83 -0
- package/dist/controls/popover/popover.d.ts +44 -0
- package/dist/controls/popover/popover.js +164 -0
- package/dist/controls/progress/progress.css +106 -0
- package/dist/controls/progress/progress.d.ts +28 -0
- package/dist/controls/progress/progress.js +80 -0
- package/dist/controls/radio/radio-group.css +84 -0
- package/dist/controls/radio/radio-group.d.ts +152 -0
- package/dist/controls/radio/radio-group.js +350 -0
- package/dist/controls/radio/radio.css +219 -0
- package/dist/controls/radio/radio.d.ts +19 -0
- package/dist/controls/radio/radio.js +75 -0
- package/dist/controls/ramp/ramp.css +75 -0
- package/dist/controls/ramp/ramp.d.ts +29 -0
- package/dist/controls/ramp/ramp.js +72 -0
- package/dist/controls/row/row.css +152 -0
- package/dist/controls/row/row.d.ts +95 -0
- package/dist/controls/row/row.js +45 -0
- package/dist/controls/segment/segment.css +66 -0
- package/dist/controls/segment/segment.d.ts +3 -0
- package/dist/controls/segment/segment.js +26 -0
- package/dist/controls/segmented-control/segmented-control.css +189 -0
- package/dist/controls/segmented-control/segmented-control.d.ts +20 -0
- package/dist/controls/segmented-control/segmented-control.js +64 -0
- package/dist/controls/select/select.css +467 -0
- package/dist/controls/select/select.d.ts +147 -0
- package/dist/controls/select/select.js +538 -0
- package/dist/controls/slider/slider.css +231 -0
- package/dist/controls/slider/slider.d.ts +111 -0
- package/dist/controls/slider/slider.js +60 -0
- package/dist/controls/slider-multi/slider-multi.css +197 -0
- package/dist/controls/slider-multi/slider-multi.d.ts +149 -0
- package/dist/controls/slider-multi/slider-multi.js +380 -0
- package/dist/controls/sparkline/sparkline-math.d.ts +23 -0
- package/dist/controls/sparkline/sparkline-math.js +79 -0
- package/dist/controls/sparkline/sparkline.css +61 -0
- package/dist/controls/sparkline/sparkline.d.ts +27 -0
- package/dist/controls/sparkline/sparkline.js +74 -0
- package/dist/controls/split/constrain.d.ts +44 -0
- package/dist/controls/split/constrain.js +126 -0
- package/dist/controls/split/split-pane.css +63 -0
- package/dist/controls/split/split-pane.d.ts +49 -0
- package/dist/controls/split/split-pane.js +42 -0
- package/dist/controls/split/split.css +127 -0
- package/dist/controls/split/split.d.ts +42 -0
- package/dist/controls/split/split.js +364 -0
- package/dist/controls/stat/stat-model.d.ts +22 -0
- package/dist/controls/stat/stat-model.js +69 -0
- package/dist/controls/stat/stat.css +101 -0
- package/dist/controls/stat/stat.d.ts +30 -0
- package/dist/controls/stat/stat.js +73 -0
- package/dist/controls/status-stream/status-stream.css +151 -0
- package/dist/controls/status-stream/status-stream.d.ts +108 -0
- package/dist/controls/status-stream/status-stream.js +417 -0
- package/dist/controls/swatch/swatch.css +66 -0
- package/dist/controls/swatch/swatch.d.ts +28 -0
- package/dist/controls/swatch/swatch.js +74 -0
- package/dist/controls/swiper/swiper-item.css +17 -0
- package/dist/controls/swiper/swiper-item.d.ts +31 -0
- package/dist/controls/swiper/swiper-item.js +47 -0
- package/dist/controls/swiper/swiper-label.css +10 -0
- package/dist/controls/swiper/swiper-label.d.ts +4 -0
- package/dist/controls/swiper/swiper-label.js +20 -0
- package/dist/controls/swiper/swiper-paddles.css +26 -0
- package/dist/controls/swiper/swiper-paddles.d.ts +10 -0
- package/dist/controls/swiper/swiper-paddles.js +62 -0
- package/dist/controls/swiper/swiper-pagination.css +60 -0
- package/dist/controls/swiper/swiper-pagination.d.ts +31 -0
- package/dist/controls/swiper/swiper-pagination.js +78 -0
- package/dist/controls/swiper/swiper.css +153 -0
- package/dist/controls/swiper/swiper.d.ts +158 -0
- package/dist/controls/swiper/swiper.js +659 -0
- package/dist/controls/switch/switch.css +194 -0
- package/dist/controls/switch/switch.d.ts +5 -0
- package/dist/controls/switch/switch.js +18 -0
- package/dist/controls/table/table-model.d.ts +43 -0
- package/dist/controls/table/table-model.js +124 -0
- package/dist/controls/table/table.css +90 -0
- package/dist/controls/table/table.d.ts +29 -0
- package/dist/controls/table/table.js +178 -0
- package/dist/controls/tabs/tab-panel.d.ts +10 -0
- package/dist/controls/tabs/tab-panel.js +89 -0
- package/dist/controls/tabs/tab.d.ts +26 -0
- package/dist/controls/tabs/tab.js +67 -0
- package/dist/controls/tabs/tabs.css +181 -0
- package/dist/controls/tabs/tabs.d.ts +61 -0
- package/dist/controls/tabs/tabs.js +176 -0
- package/dist/controls/text/href.d.ts +26 -0
- package/dist/controls/text/href.js +48 -0
- package/dist/controls/text/text.css +328 -0
- package/dist/controls/text/text.d.ts +85 -0
- package/dist/controls/text/text.js +273 -0
- package/dist/controls/text-field/text-field.css +498 -0
- package/dist/controls/text-field/text-field.d.ts +226 -0
- package/dist/controls/text-field/text-field.js +905 -0
- package/dist/controls/textarea/textarea.css +251 -0
- package/dist/controls/textarea/textarea.d.ts +136 -0
- package/dist/controls/textarea/textarea.js +312 -0
- package/dist/controls/theme-provider/theme-provider.css +48 -0
- package/dist/controls/theme-provider/theme-provider.d.ts +59 -0
- package/dist/controls/theme-provider/theme-provider.js +40 -0
- package/dist/controls/timeline/timeline.css +33 -0
- package/dist/controls/timeline/timeline.d.ts +39 -0
- package/dist/controls/timeline/timeline.js +52 -0
- package/dist/controls/timeline-item/timeline-item.css +495 -0
- package/dist/controls/timeline-item/timeline-item.d.ts +79 -0
- package/dist/controls/timeline-item/timeline-item.js +360 -0
- package/dist/controls/toast/toast-region.css +56 -0
- package/dist/controls/toast/toast-region.d.ts +20 -0
- package/dist/controls/toast/toast-region.js +113 -0
- package/dist/controls/toast/toast.css +96 -0
- package/dist/controls/toast/toast.d.ts +28 -0
- package/dist/controls/toast/toast.js +191 -0
- package/dist/controls/toolbar/toolbar.css +125 -0
- package/dist/controls/toolbar/toolbar.d.ts +108 -0
- package/dist/controls/toolbar/toolbar.js +68 -0
- package/dist/controls/tooltip/tooltip.css +80 -0
- package/dist/controls/tooltip/tooltip.d.ts +57 -0
- package/dist/controls/tooltip/tooltip.js +205 -0
- package/dist/descriptor/component-descriptor.d.ts +112 -0
- package/dist/descriptor/component-descriptor.js +492 -0
- package/dist/descriptor/index.d.ts +1 -0
- package/dist/descriptor/index.js +5 -0
- package/dist/dom/container.d.ts +45 -0
- package/dist/dom/container.js +60 -0
- package/dist/dom/element.d.ts +98 -0
- package/dist/dom/element.js +221 -0
- package/dist/dom/form.d.ts +240 -0
- package/dist/dom/form.js +399 -0
- package/dist/dom/index.d.ts +10 -0
- package/dist/dom/index.js +31 -0
- package/dist/dom/props.d.ts +56 -0
- package/dist/dom/props.js +231 -0
- package/dist/dom/repeat.d.ts +10 -0
- package/dist/dom/repeat.js +202 -0
- package/dist/dom/template.d.ts +161 -0
- package/dist/dom/template.js +634 -0
- package/dist/dom/watch.d.ts +11 -0
- package/dist/dom/watch.js +82 -0
- package/dist/foundation-styles.css +9 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -0
- package/dist/reactive/graph.d.ts +65 -0
- package/dist/reactive/graph.js +310 -0
- package/dist/reactive/index.d.ts +3 -0
- package/dist/reactive/index.js +4 -0
- package/dist/reactive/scheduler.d.ts +13 -0
- package/dist/reactive/scheduler.js +49 -0
- package/dist/traits/area-drag.d.ts +12 -0
- package/dist/traits/area-drag.js +70 -0
- package/dist/traits/form-registry.d.ts +36 -0
- package/dist/traits/form-registry.js +108 -0
- package/dist/traits/index.d.ts +24 -0
- package/dist/traits/index.js +19 -0
- package/dist/traits/overlay.d.ts +50 -0
- package/dist/traits/overlay.js +277 -0
- package/dist/traits/pane-resize.d.ts +26 -0
- package/dist/traits/pane-resize.js +103 -0
- package/dist/traits/press-activation.d.ts +11 -0
- package/dist/traits/press-activation.js +55 -0
- package/dist/traits/roving-focus.d.ts +52 -0
- package/dist/traits/roving-focus.js +214 -0
- package/dist/traits/scroll-fade.d.ts +28 -0
- package/dist/traits/scroll-fade.js +120 -0
- package/dist/traits/selection-commit.d.ts +30 -0
- package/dist/traits/selection-commit.js +146 -0
- package/dist/traits/tabbable.d.ts +12 -0
- package/dist/traits/tabbable.js +59 -0
- package/dist/traits/track-user-invalid.d.ts +36 -0
- package/dist/traits/track-user-invalid.js +52 -0
- package/dist/traits/value-codec.d.ts +120 -0
- package/dist/traits/value-codec.js +497 -0
- package/dist/traits/value-drag.d.ts +18 -0
- package/dist/traits/value-drag.js +84 -0
- package/package.json +263 -0
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
import { type ReactiveProps } from '../../dom/index.js';
|
|
2
|
+
import { UIFormElement, type FormValue, type ValidityResult, type FieldLabelling } from '../../dom/form.js';
|
|
3
|
+
declare const props: {
|
|
4
|
+
value: import("../../index.js").PropConfig<string>;
|
|
5
|
+
label: {
|
|
6
|
+
reflect: true;
|
|
7
|
+
type: import("../../index.js").PropType<string>;
|
|
8
|
+
default: string;
|
|
9
|
+
attribute?: string | false;
|
|
10
|
+
};
|
|
11
|
+
placeholder: import("../../index.js").PropConfig<string>;
|
|
12
|
+
size: {
|
|
13
|
+
reflect: true;
|
|
14
|
+
type: import("../../index.js").PropType<"sm" | "md" | "lg">;
|
|
15
|
+
default: "sm" | "md" | "lg";
|
|
16
|
+
attribute?: string | false;
|
|
17
|
+
};
|
|
18
|
+
type: {
|
|
19
|
+
reflect: true;
|
|
20
|
+
type: import("../../index.js").PropType<"number" | "text" | "url" | "date" | "email" | "tel" | "password" | "search" | "currency" | "unit" | "percent" | "time" | "color">;
|
|
21
|
+
default: "number" | "text" | "url" | "date" | "email" | "tel" | "password" | "search" | "currency" | "unit" | "percent" | "time" | "color";
|
|
22
|
+
attribute?: string | false;
|
|
23
|
+
};
|
|
24
|
+
readonly: {
|
|
25
|
+
reflect: true;
|
|
26
|
+
type: import("../../index.js").PropType<boolean>;
|
|
27
|
+
default: boolean;
|
|
28
|
+
attribute?: string | false;
|
|
29
|
+
};
|
|
30
|
+
currency: {
|
|
31
|
+
reflect: true;
|
|
32
|
+
type: import("../../index.js").PropType<string>;
|
|
33
|
+
default: string;
|
|
34
|
+
attribute?: string | false;
|
|
35
|
+
};
|
|
36
|
+
unit: {
|
|
37
|
+
reflect: true;
|
|
38
|
+
type: import("../../index.js").PropType<string>;
|
|
39
|
+
default: string;
|
|
40
|
+
attribute?: string | false;
|
|
41
|
+
};
|
|
42
|
+
step: {
|
|
43
|
+
reflect: true;
|
|
44
|
+
type: import("../../index.js").PropType<number | null>;
|
|
45
|
+
default: number | null;
|
|
46
|
+
attribute?: string | false;
|
|
47
|
+
};
|
|
48
|
+
min: {
|
|
49
|
+
reflect: true;
|
|
50
|
+
type: import("../../index.js").PropType<string>;
|
|
51
|
+
default: string;
|
|
52
|
+
attribute?: string | false;
|
|
53
|
+
};
|
|
54
|
+
max: {
|
|
55
|
+
reflect: true;
|
|
56
|
+
type: import("../../index.js").PropType<string>;
|
|
57
|
+
default: string;
|
|
58
|
+
attribute?: string | false;
|
|
59
|
+
};
|
|
60
|
+
format: {
|
|
61
|
+
reflect: true;
|
|
62
|
+
type: import("../../index.js").PropType<"hex" | "oklch">;
|
|
63
|
+
default: "hex" | "oklch";
|
|
64
|
+
attribute?: string | false;
|
|
65
|
+
};
|
|
66
|
+
name: {
|
|
67
|
+
reflect: true;
|
|
68
|
+
type: import("../../index.js").PropType<string>;
|
|
69
|
+
default: string;
|
|
70
|
+
attribute?: string | false;
|
|
71
|
+
};
|
|
72
|
+
disabled: {
|
|
73
|
+
reflect: true;
|
|
74
|
+
type: import("../../index.js").PropType<boolean>;
|
|
75
|
+
default: boolean;
|
|
76
|
+
attribute?: string | false;
|
|
77
|
+
};
|
|
78
|
+
required: {
|
|
79
|
+
reflect: true;
|
|
80
|
+
type: import("../../index.js").PropType<boolean>;
|
|
81
|
+
default: boolean;
|
|
82
|
+
attribute?: string | false;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
export interface UITextFieldElement extends ReactiveProps<typeof props> {
|
|
86
|
+
}
|
|
87
|
+
export declare class UITextFieldElement extends UIFormElement {
|
|
88
|
+
#private;
|
|
89
|
+
static props: {
|
|
90
|
+
value: import("../../index.js").PropConfig<string>;
|
|
91
|
+
label: {
|
|
92
|
+
reflect: true;
|
|
93
|
+
type: import("../../index.js").PropType<string>;
|
|
94
|
+
default: string;
|
|
95
|
+
attribute?: string | false;
|
|
96
|
+
};
|
|
97
|
+
placeholder: import("../../index.js").PropConfig<string>;
|
|
98
|
+
size: {
|
|
99
|
+
reflect: true;
|
|
100
|
+
type: import("../../index.js").PropType<"sm" | "md" | "lg">;
|
|
101
|
+
default: "sm" | "md" | "lg";
|
|
102
|
+
attribute?: string | false;
|
|
103
|
+
};
|
|
104
|
+
type: {
|
|
105
|
+
reflect: true;
|
|
106
|
+
type: import("../../index.js").PropType<"number" | "text" | "url" | "date" | "email" | "tel" | "password" | "search" | "currency" | "unit" | "percent" | "time" | "color">;
|
|
107
|
+
default: "number" | "text" | "url" | "date" | "email" | "tel" | "password" | "search" | "currency" | "unit" | "percent" | "time" | "color";
|
|
108
|
+
attribute?: string | false;
|
|
109
|
+
};
|
|
110
|
+
readonly: {
|
|
111
|
+
reflect: true;
|
|
112
|
+
type: import("../../index.js").PropType<boolean>;
|
|
113
|
+
default: boolean;
|
|
114
|
+
attribute?: string | false;
|
|
115
|
+
};
|
|
116
|
+
currency: {
|
|
117
|
+
reflect: true;
|
|
118
|
+
type: import("../../index.js").PropType<string>;
|
|
119
|
+
default: string;
|
|
120
|
+
attribute?: string | false;
|
|
121
|
+
};
|
|
122
|
+
unit: {
|
|
123
|
+
reflect: true;
|
|
124
|
+
type: import("../../index.js").PropType<string>;
|
|
125
|
+
default: string;
|
|
126
|
+
attribute?: string | false;
|
|
127
|
+
};
|
|
128
|
+
step: {
|
|
129
|
+
reflect: true;
|
|
130
|
+
type: import("../../index.js").PropType<number | null>;
|
|
131
|
+
default: number | null;
|
|
132
|
+
attribute?: string | false;
|
|
133
|
+
};
|
|
134
|
+
min: {
|
|
135
|
+
reflect: true;
|
|
136
|
+
type: import("../../index.js").PropType<string>;
|
|
137
|
+
default: string;
|
|
138
|
+
attribute?: string | false;
|
|
139
|
+
};
|
|
140
|
+
max: {
|
|
141
|
+
reflect: true;
|
|
142
|
+
type: import("../../index.js").PropType<string>;
|
|
143
|
+
default: string;
|
|
144
|
+
attribute?: string | false;
|
|
145
|
+
};
|
|
146
|
+
format: {
|
|
147
|
+
reflect: true;
|
|
148
|
+
type: import("../../index.js").PropType<"hex" | "oklch">;
|
|
149
|
+
default: "hex" | "oklch";
|
|
150
|
+
attribute?: string | false;
|
|
151
|
+
};
|
|
152
|
+
name: {
|
|
153
|
+
reflect: true;
|
|
154
|
+
type: import("../../index.js").PropType<string>;
|
|
155
|
+
default: string;
|
|
156
|
+
attribute?: string | false;
|
|
157
|
+
};
|
|
158
|
+
disabled: {
|
|
159
|
+
reflect: true;
|
|
160
|
+
type: import("../../index.js").PropType<boolean>;
|
|
161
|
+
default: boolean;
|
|
162
|
+
attribute?: string | false;
|
|
163
|
+
};
|
|
164
|
+
required: {
|
|
165
|
+
reflect: true;
|
|
166
|
+
type: import("../../index.js").PropType<boolean>;
|
|
167
|
+
default: boolean;
|
|
168
|
+
attribute?: string | false;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
171
|
+
protected connected(): void;
|
|
172
|
+
protected disconnected(): void;
|
|
173
|
+
/** Forward host focus to the editor PART (label-association + native `.focus()` parity). */
|
|
174
|
+
focus(options?: FocusOptions): void;
|
|
175
|
+
/**
|
|
176
|
+
* The value contributed to the owning form (FACE — the base publishes it via internals.setFormValue).
|
|
177
|
+
* When a value codec is active (number/currency/unit/percent types), the CANONICAL parsed value is the
|
|
178
|
+
* form value, not `this.value` which holds the formatted display string after blur. For all other types,
|
|
179
|
+
* `this.value` IS the form value (the editor textContent is the submission value).
|
|
180
|
+
*/
|
|
181
|
+
protected formValue(): FormValue;
|
|
182
|
+
/**
|
|
183
|
+
* The validity verdict: `required && value === ''` → `valueMissing`; codec parse error → `customError`
|
|
184
|
+
* (numeric) or `typeMismatch` (date/time — ADR-0048); range check (min/max) → `rangeUnderflow`/
|
|
185
|
+
* `rangeOverflow` (numeric types only); email/url format error → `typeMismatch`; valid otherwise.
|
|
186
|
+
* A disabled field is barred from constraint validation (native parity).
|
|
187
|
+
* `stepMismatch` is NOT enforced — too strict for free numeric entry (ADR-0047).
|
|
188
|
+
*/
|
|
189
|
+
protected formValidity(): ValidityResult;
|
|
190
|
+
/**
|
|
191
|
+
* Form reset → value ← the initial `value` attribute (native-parity defaultValue) + clear the touched state.
|
|
192
|
+
* A reset must not leave a required-empty field showing `:state(user-invalid)` until the user re-interacts, so
|
|
193
|
+
* the timing controller is reset to its first-paint suppression (the danger treatment re-arms on the next
|
|
194
|
+
* blur/change). The optional chain is defensive — `formReset` only fires while connected (the controller is live).
|
|
195
|
+
*/
|
|
196
|
+
protected formReset(): void;
|
|
197
|
+
/** Restore the value after navigation/autofill (FACE state restore). */
|
|
198
|
+
protected formStateRestore(state: File | string | FormData | null): void;
|
|
199
|
+
/**
|
|
200
|
+
* The part-role override (ADR-0051 cl.2/LLD-C2 §wire) — the editor's `role=textbox` rides a light-DOM
|
|
201
|
+
* PART, not `internals.role`, so the base's guarded internals-reflection default (dom/form.ts) never
|
|
202
|
+
* fires for this control; id-reference the editor directly instead.
|
|
203
|
+
*
|
|
204
|
+
* `aria-labelledby` is this method's OWN, exclusive concern in both directions (no other effect ever
|
|
205
|
+
* touches it): set from `refs.label` when present, removed when `null`.
|
|
206
|
+
*
|
|
207
|
+
* `aria-describedby` is only WRITTEN here on association (`refs !== null`) — on dissociation it is
|
|
208
|
+
* deliberately left untouched, NOT unconditionally cleared. Why: the user-invalid/message effect above
|
|
209
|
+
* is the exclusive, correct owner of `aria-describedby` whenever `this.fieldLabelling === null` (it
|
|
210
|
+
* fully recomputes the bare-mode value — set to the message id when invalid, removed otherwise) — and
|
|
211
|
+
* BOTH effects re-run in the SAME flush wave on a `setFieldLabelling` write. Two effects racing to write
|
|
212
|
+
* one attribute makes the OUTCOME depend on which one the kernel happens to run last (subscriber-order,
|
|
213
|
+
* an incidental scheduling detail, not a documented invariant) — clearing it here too would sometimes
|
|
214
|
+
* win that race and erase what the message effect just (correctly) set. Touching only what is
|
|
215
|
+
* EXCLUSIVELY this method's own — never the other effect's — makes the result order-independent.
|
|
216
|
+
*
|
|
217
|
+
* Guards a not-yet-created editor (the LLD-C2 override contract) — cannot happen in practice
|
|
218
|
+
* (`#ensureParts()` runs synchronously at the top of `connected()`, before the base's forwarding effect
|
|
219
|
+
* installs), but the guard costs nothing and documents the contract.
|
|
220
|
+
*/
|
|
221
|
+
protected applyFieldLabelling(refs: FieldLabelling | null): void;
|
|
222
|
+
/** Feeds `FormConnectDetail.userInvalid` (ADR-0050) — the existing `trackUserInvalid` tracker IS the one
|
|
223
|
+
* timing source; this override just exposes its gate. */
|
|
224
|
+
protected formUserInvalid(): boolean;
|
|
225
|
+
}
|
|
226
|
+
export {};
|