@openelement/ui 1.0.0-alpha.6 → 1.0.0-alpha.7
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/package.json +2 -2
- package/src/component-recipes.js +60 -60
- package/src/generated-manifest.json +1 -1
- package/src/index.d.ts +15 -43
- package/src/index.js +15 -50
- package/src/instance-state.d.ts +16 -2
- package/src/instance-state.js +30 -24
- package/src/manifest.d.ts +5 -9
- package/src/manifest.js +6 -11
- package/src/open-badge.d.ts +113 -159
- package/src/open-badge.js +200 -239
- package/src/open-button.d.ts +296 -898
- package/src/open-button.js +1150 -1322
- package/src/open-callout.d.ts +225 -366
- package/src/open-callout.js +488 -569
- package/src/open-card.d.ts +114 -144
- package/src/open-card.js +197 -251
- package/src/open-code-block.d.ts +165 -168
- package/src/open-code-block.js +315 -366
- package/src/open-dialog.d.ts +241 -424
- package/src/open-dialog.js +643 -823
- package/src/open-dropdown.d.ts +195 -252
- package/src/open-dropdown.js +368 -471
- package/src/open-input.d.ts +404 -1420
- package/src/open-input.js +1809 -2095
- package/src/open-props-tokens.d.ts +5 -5
- package/src/open-props-tokens.js +12 -7
- package/src/open-tabs.d.ts +163 -191
- package/src/open-tabs.js +306 -361
- package/src/open-theme-toggle.d.ts +171 -287
- package/src/open-theme-toggle.js +530 -754
- package/src/register.d.ts +4 -1
- package/src/register.js +27 -58
package/src/open-dropdown.d.ts
CHANGED
|
@@ -1,261 +1,203 @@
|
|
|
1
|
-
import { OpenElement,
|
|
1
|
+
import { OpenElement, ReadonlySignal, StyleSheetLike } from "@openelement/element";
|
|
2
|
+
//#region src/open-dropdown.d.ts
|
|
2
3
|
declare const __partProgram: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
version: number;
|
|
5
|
+
tag: string;
|
|
6
|
+
root: {
|
|
7
|
+
id: string;
|
|
8
|
+
kind: string;
|
|
9
|
+
nodes: string[];
|
|
9
10
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
readonly "path": readonly [number, number];
|
|
116
|
-
}, {
|
|
117
|
-
readonly "id": string;
|
|
118
|
-
readonly "kind": string;
|
|
119
|
-
readonly "tag": string;
|
|
120
|
-
readonly "path": readonly [number, number, number];
|
|
121
|
-
}, {
|
|
122
|
-
readonly "id": string;
|
|
123
|
-
readonly "kind": string;
|
|
124
|
-
readonly "tag": string;
|
|
125
|
-
readonly "path": readonly [number, number];
|
|
126
|
-
}, {
|
|
127
|
-
readonly "id": string;
|
|
128
|
-
readonly "kind": string;
|
|
129
|
-
readonly "part": number;
|
|
130
|
-
readonly "node": string;
|
|
131
|
-
readonly "path": readonly [number, number];
|
|
132
|
-
}, {
|
|
133
|
-
readonly "id": string;
|
|
134
|
-
readonly "kind": string;
|
|
135
|
-
readonly "tag": string;
|
|
136
|
-
readonly "path": readonly [number, number, number];
|
|
137
|
-
}];
|
|
138
|
-
readonly "metadata": {
|
|
139
|
-
readonly "tag": string;
|
|
140
|
-
readonly "className": string;
|
|
141
|
-
readonly "sourceFile": string;
|
|
142
|
-
readonly "properties": readonly [{
|
|
143
|
-
readonly "name": string;
|
|
144
|
-
readonly "attribute": null;
|
|
145
|
-
readonly "type": string;
|
|
146
|
-
readonly "converter": string;
|
|
147
|
-
readonly "reflect": boolean;
|
|
148
|
-
readonly "default": string;
|
|
149
|
-
}, {
|
|
150
|
-
readonly "name": string;
|
|
151
|
-
readonly "attribute": null;
|
|
152
|
-
readonly "type": string;
|
|
153
|
-
readonly "converter": string;
|
|
154
|
-
readonly "reflect": boolean;
|
|
155
|
-
readonly "default": null;
|
|
156
|
-
readonly "computed": boolean;
|
|
157
|
-
readonly "deps": readonly [string];
|
|
158
|
-
}];
|
|
159
|
-
readonly "observedAttributes": readonly [];
|
|
160
|
-
readonly "cem": {
|
|
161
|
-
readonly "tagName": string;
|
|
162
|
-
readonly "className": string;
|
|
163
|
-
readonly "declaration": {
|
|
164
|
-
readonly "name": string;
|
|
165
|
-
readonly "module": string;
|
|
11
|
+
template: {
|
|
12
|
+
k: string;
|
|
13
|
+
id: string;
|
|
14
|
+
tag: string;
|
|
15
|
+
attrs: never[];
|
|
16
|
+
children: {
|
|
17
|
+
k: string;
|
|
18
|
+
id: string;
|
|
19
|
+
tag: string;
|
|
20
|
+
attrs: string[][];
|
|
21
|
+
children: {
|
|
22
|
+
k: string;
|
|
23
|
+
id: string;
|
|
24
|
+
tag: string;
|
|
25
|
+
attrs: string[][];
|
|
26
|
+
children: never[];
|
|
27
|
+
}[];
|
|
28
|
+
}[];
|
|
29
|
+
}[];
|
|
30
|
+
parts: ({
|
|
31
|
+
k: string;
|
|
32
|
+
event: string;
|
|
33
|
+
handler: string;
|
|
34
|
+
action: {
|
|
35
|
+
kind: string;
|
|
36
|
+
name: string;
|
|
37
|
+
};
|
|
38
|
+
path: number[];
|
|
39
|
+
index: number;
|
|
40
|
+
location: {
|
|
41
|
+
id: string;
|
|
42
|
+
kind: string;
|
|
43
|
+
path: number[];
|
|
44
|
+
node: string;
|
|
45
|
+
};
|
|
46
|
+
signal?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
k: string;
|
|
49
|
+
signal: string;
|
|
50
|
+
path: number[];
|
|
51
|
+
index: number;
|
|
52
|
+
location: {
|
|
53
|
+
id: string;
|
|
54
|
+
kind: string;
|
|
55
|
+
path: number[];
|
|
56
|
+
node: string;
|
|
57
|
+
};
|
|
58
|
+
event?: undefined;
|
|
59
|
+
handler?: undefined;
|
|
60
|
+
action?: undefined;
|
|
61
|
+
})[];
|
|
62
|
+
regions: never[];
|
|
63
|
+
dependencies: {
|
|
64
|
+
signal: string;
|
|
65
|
+
owner: {
|
|
66
|
+
kind: string;
|
|
67
|
+
index: number;
|
|
68
|
+
};
|
|
69
|
+
location: string;
|
|
70
|
+
}[];
|
|
71
|
+
locations: ({
|
|
72
|
+
id: string;
|
|
73
|
+
kind: string;
|
|
74
|
+
tag: string;
|
|
75
|
+
path: number[];
|
|
76
|
+
part?: undefined;
|
|
77
|
+
node?: undefined;
|
|
78
|
+
} | {
|
|
79
|
+
id: string;
|
|
80
|
+
kind: string;
|
|
81
|
+
part: number;
|
|
82
|
+
node: string;
|
|
83
|
+
path: number[];
|
|
84
|
+
tag?: undefined;
|
|
85
|
+
})[];
|
|
86
|
+
metadata: {
|
|
87
|
+
tag: string;
|
|
88
|
+
className: string;
|
|
89
|
+
sourceFile: string;
|
|
90
|
+
properties: ({
|
|
91
|
+
name: string;
|
|
92
|
+
attribute: null;
|
|
93
|
+
type: string;
|
|
94
|
+
converter: string;
|
|
95
|
+
reflect: boolean;
|
|
96
|
+
default: string;
|
|
97
|
+
computed?: undefined;
|
|
98
|
+
deps?: undefined;
|
|
99
|
+
} | {
|
|
100
|
+
name: string;
|
|
101
|
+
attribute: null;
|
|
102
|
+
type: string;
|
|
103
|
+
converter: string;
|
|
104
|
+
reflect: boolean;
|
|
105
|
+
default: null;
|
|
106
|
+
computed: boolean;
|
|
107
|
+
deps: string[];
|
|
108
|
+
})[];
|
|
109
|
+
observedAttributes: never[];
|
|
110
|
+
cem: {
|
|
111
|
+
tagName: string;
|
|
112
|
+
className: string;
|
|
113
|
+
declaration: {
|
|
114
|
+
name: string;
|
|
115
|
+
module: string;
|
|
166
116
|
};
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
readonly "name": string;
|
|
176
|
-
readonly "fieldName": string;
|
|
177
|
-
readonly "type": string;
|
|
178
|
-
readonly "attribute": null;
|
|
179
|
-
readonly "reflect": boolean;
|
|
180
|
-
}];
|
|
117
|
+
attributes: never[];
|
|
118
|
+
members: {
|
|
119
|
+
name: string;
|
|
120
|
+
fieldName: string;
|
|
121
|
+
type: string;
|
|
122
|
+
attribute: null;
|
|
123
|
+
reflect: boolean;
|
|
124
|
+
}[];
|
|
181
125
|
};
|
|
182
126
|
};
|
|
183
127
|
};
|
|
184
|
-
declare const __compiledProperties:
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
128
|
+
declare const __compiledProperties: ({
|
|
129
|
+
name: string;
|
|
130
|
+
attribute: null;
|
|
131
|
+
type: string;
|
|
132
|
+
converter: string;
|
|
133
|
+
reflect: boolean;
|
|
134
|
+
default: string;
|
|
135
|
+
computed?: undefined;
|
|
136
|
+
deps?: undefined;
|
|
137
|
+
} | {
|
|
138
|
+
name: string;
|
|
139
|
+
attribute: null;
|
|
140
|
+
type: string;
|
|
141
|
+
converter: string;
|
|
142
|
+
reflect: boolean;
|
|
143
|
+
default: null;
|
|
144
|
+
computed: boolean;
|
|
145
|
+
deps: string[];
|
|
146
|
+
})[];
|
|
201
147
|
declare const __elementMetadata: {
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
148
|
+
tag: string;
|
|
149
|
+
className: string;
|
|
150
|
+
sourceFile: string;
|
|
151
|
+
properties: ({
|
|
152
|
+
name: string;
|
|
153
|
+
attribute: null;
|
|
154
|
+
type: string;
|
|
155
|
+
converter: string;
|
|
156
|
+
reflect: boolean;
|
|
157
|
+
default: string;
|
|
158
|
+
computed?: undefined;
|
|
159
|
+
deps?: undefined;
|
|
160
|
+
} | {
|
|
161
|
+
name: string;
|
|
162
|
+
attribute: null;
|
|
163
|
+
type: string;
|
|
164
|
+
converter: string;
|
|
165
|
+
reflect: boolean;
|
|
166
|
+
default: null;
|
|
167
|
+
computed: boolean;
|
|
168
|
+
deps: string[];
|
|
169
|
+
})[];
|
|
170
|
+
observedAttributes: never[];
|
|
171
|
+
cem: {
|
|
172
|
+
tagName: string;
|
|
173
|
+
className: string;
|
|
174
|
+
declaration: {
|
|
175
|
+
name: string;
|
|
176
|
+
module: string;
|
|
229
177
|
};
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
readonly "name": string;
|
|
239
|
-
readonly "fieldName": string;
|
|
240
|
-
readonly "type": string;
|
|
241
|
-
readonly "attribute": null;
|
|
242
|
-
readonly "reflect": boolean;
|
|
243
|
-
}];
|
|
178
|
+
attributes: never[];
|
|
179
|
+
members: {
|
|
180
|
+
name: string;
|
|
181
|
+
fieldName: string;
|
|
182
|
+
type: string;
|
|
183
|
+
attribute: null;
|
|
184
|
+
reflect: boolean;
|
|
185
|
+
}[];
|
|
244
186
|
};
|
|
245
187
|
};
|
|
246
188
|
declare const __observedAttributes: string[];
|
|
247
189
|
declare const __compiledProps: {
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
190
|
+
anchorName: {
|
|
191
|
+
type: StringConstructor;
|
|
192
|
+
default: string;
|
|
193
|
+
reflect: boolean;
|
|
194
|
+
attribute: boolean;
|
|
253
195
|
};
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
196
|
+
anchorStyle: {
|
|
197
|
+
type: ObjectConstructor;
|
|
198
|
+
default: undefined;
|
|
199
|
+
reflect: boolean;
|
|
200
|
+
attribute: boolean;
|
|
259
201
|
};
|
|
260
202
|
};
|
|
261
203
|
export declare class OpenDropdown extends OpenElement {
|
|
@@ -271,12 +213,13 @@ export declare class OpenDropdown extends OpenElement {
|
|
|
271
213
|
};
|
|
272
214
|
static styles: StyleSheetLike[];
|
|
273
215
|
anchorName: string;
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
private watchFocusReturn
|
|
277
|
-
private syncAnchorName
|
|
278
|
-
private onTriggerPointerDown
|
|
279
|
-
private toggle
|
|
216
|
+
onDsdHydrated(): void;
|
|
217
|
+
onCsrRendered(): void;
|
|
218
|
+
private watchFocusReturn;
|
|
219
|
+
private syncAnchorName;
|
|
220
|
+
private onTriggerPointerDown;
|
|
221
|
+
private toggle;
|
|
280
222
|
render(): never;
|
|
281
223
|
}
|
|
282
|
-
|
|
224
|
+
//#endregion
|
|
225
|
+
export { __elementMetadata, __partProgram };
|