@openelement/ui 1.0.0-alpha.15 → 1.0.0-alpha.16

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,410 +1,51 @@
1
- import { OpenElement, ReadonlySignal, StyleSheetLike } from "@openelement/element";
2
1
  //#region src/open-button.d.ts
3
- declare const __partProgram: {
4
- version: number;
5
- tag: string;
6
- root: {
7
- id: string;
8
- kind: string;
9
- nodes: string[];
10
- };
11
- template: {
12
- k: string;
13
- id: string;
14
- tag: string;
15
- attrs: string[][];
16
- children: {
17
- k: string;
18
- id: string;
19
- index: number;
20
- }[];
21
- }[];
22
- parts: ({
23
- k: string;
24
- event: string;
25
- handler: string;
26
- action: {
27
- kind: string;
28
- name: string;
29
- };
30
- path: number[];
31
- index: number;
32
- location: {
33
- id: string;
34
- kind: string;
35
- path: number[];
36
- node: string;
37
- };
38
- signal?: undefined;
39
- name?: undefined;
40
- test?: undefined;
41
- on?: undefined;
42
- off?: undefined;
43
- } | {
44
- k: string;
45
- signal: string;
46
- name: string;
47
- path: number[];
48
- index: number;
49
- location: {
50
- id: string;
51
- kind: string;
52
- path: number[];
53
- node: string;
2
+ /**
3
+ * Platform facts for the generated element: shadow root with delegated focus,
4
+ * form association (the class lane's `formAssociated: true`, so `form.elements`
5
+ * membership and the effective-disabled custom state are unchanged), the
6
+ * authored stylesheet, and the six declared property rows — all reflected, the
7
+ * class lane's exact attribute surface.
8
+ */
9
+ export declare const openElement: {
10
+ root: "shadow";
11
+ delegatesFocus: true;
12
+ formAssociated: true;
13
+ styles: string[];
14
+ properties: {
15
+ variant: {
16
+ default: string;
17
+ reflect: true;
54
18
  };
55
- event?: undefined;
56
- handler?: undefined;
57
- action?: undefined;
58
- test?: undefined;
59
- on?: undefined;
60
- off?: undefined;
61
- } | {
62
- k: string;
63
- signal: string;
64
- test: {
65
- signal: string;
66
- op: string;
67
- value: boolean;
19
+ size: {
20
+ default: string;
21
+ reflect: true;
68
22
  };
69
- on: {
70
- k: string;
71
- id: string;
72
- tag: string;
73
- attrs: string[][];
74
- children: {
75
- k: string;
76
- id: string;
77
- tag: string;
78
- attrs: never[];
79
- children: never[];
80
- }[];
81
- }[];
82
- off: {
83
- k: string;
84
- id: string;
85
- tag: string;
86
- attrs: string[][];
87
- children: {
88
- k: string;
89
- id: string;
90
- tag: string;
91
- attrs: never[];
92
- children: never[];
93
- }[];
94
- }[];
95
- index: number;
96
- location: {
97
- id: string;
98
- kind: string;
99
- path: number[];
100
- node?: undefined;
23
+ disabled: {
24
+ default: false;
25
+ reflect: true;
101
26
  };
102
- event?: undefined;
103
- handler?: undefined;
104
- action?: undefined;
105
- path?: undefined;
106
- name?: undefined;
107
- })[];
108
- blocks: {
109
- id: string;
110
- index: number;
111
- kind: string;
112
- anchor: string;
113
- end: string;
114
- source: string;
115
- }[];
116
- dependencies: {
117
- signal: string;
118
- owner: {
119
- kind: string;
120
- index: number;
27
+ href: {
28
+ default: string;
29
+ reflect: true;
121
30
  };
122
- location: string;
123
- }[];
124
- locations: ({
125
- id: string;
126
- kind: string;
127
- tag: string;
128
- path: number[];
129
- part?: undefined;
130
- node?: undefined;
131
- } | {
132
- id: string;
133
- kind: string;
134
- part: number;
135
- node: string;
136
- path: number[];
137
- tag?: undefined;
138
- } | {
139
- id: string;
140
- kind: string;
141
- part: number;
142
- path: number[];
143
- tag?: undefined;
144
- node?: undefined;
145
- })[];
146
- metadata: {
147
- tag: string;
148
- className: string;
149
- sourceFile: string;
150
- properties: ({
151
- name: string;
152
- attribute: string;
153
- type: string;
154
- converter: string;
155
- reflect: boolean;
31
+ target: {
156
32
  default: string;
157
- computed?: undefined;
158
- deps?: undefined;
159
- } | {
160
- name: string;
161
- attribute: string;
162
- type: string;
163
- converter: string;
164
- reflect: boolean;
165
- default: boolean;
166
- computed?: undefined;
167
- deps?: undefined;
168
- } | {
169
- name: string;
170
- attribute: null;
171
- type: string;
172
- converter: string;
173
- reflect: boolean;
174
- default: null;
175
- computed: boolean;
176
- deps: string[];
177
- })[];
178
- observedAttributes: string[];
179
- cem: {
180
- tagName: string;
181
- className: string;
182
- declaration: {
183
- name: string;
184
- module: string;
185
- };
186
- attributes: {
187
- name: string;
188
- fieldName: string;
189
- type: string;
190
- reflect: boolean;
191
- }[];
192
- members: ({
193
- name: string;
194
- fieldName: string;
195
- type: string;
196
- attribute: string;
197
- reflect: boolean;
198
- } | {
199
- name: string;
200
- fieldName: string;
201
- type: string;
202
- attribute: null;
203
- reflect: boolean;
204
- })[];
33
+ reflect: true;
205
34
  };
206
- };
207
- };
208
- declare const __compiledProperties: ({
209
- name: string;
210
- attribute: string;
211
- type: string;
212
- converter: string;
213
- reflect: boolean;
214
- default: string;
215
- computed?: undefined;
216
- deps?: undefined;
217
- } | {
218
- name: string;
219
- attribute: string;
220
- type: string;
221
- converter: string;
222
- reflect: boolean;
223
- default: boolean;
224
- computed?: undefined;
225
- deps?: undefined;
226
- } | {
227
- name: string;
228
- attribute: null;
229
- type: string;
230
- converter: string;
231
- reflect: boolean;
232
- default: null;
233
- computed: boolean;
234
- deps: string[];
235
- })[];
236
- declare const __elementMetadata: {
237
- tag: string;
238
- className: string;
239
- sourceFile: string;
240
- properties: ({
241
- name: string;
242
- attribute: string;
243
- type: string;
244
- converter: string;
245
- reflect: boolean;
246
- default: string;
247
- computed?: undefined;
248
- deps?: undefined;
249
- } | {
250
- name: string;
251
- attribute: string;
252
- type: string;
253
- converter: string;
254
- reflect: boolean;
255
- default: boolean;
256
- computed?: undefined;
257
- deps?: undefined;
258
- } | {
259
- name: string;
260
- attribute: null;
261
- type: string;
262
- converter: string;
263
- reflect: boolean;
264
- default: null;
265
- computed: boolean;
266
- deps: string[];
267
- })[];
268
- observedAttributes: string[];
269
- cem: {
270
- tagName: string;
271
- className: string;
272
- declaration: {
273
- name: string;
274
- module: string;
35
+ type: {
36
+ default: string;
37
+ reflect: true;
275
38
  };
276
- attributes: {
277
- name: string;
278
- fieldName: string;
279
- type: string;
280
- reflect: boolean;
281
- }[];
282
- members: ({
283
- name: string;
284
- fieldName: string;
285
- type: string;
286
- attribute: string;
287
- reflect: boolean;
288
- } | {
289
- name: string;
290
- fieldName: string;
291
- type: string;
292
- attribute: null;
293
- reflect: boolean;
294
- })[];
295
39
  };
296
40
  };
297
- declare const __observedAttributes: string[];
298
- declare const __compiledProps: {
299
- variant: {
300
- type: StringConstructor;
301
- default: string;
302
- reflect: boolean;
303
- attribute: string;
304
- };
305
- size: {
306
- type: StringConstructor;
307
- default: string;
308
- reflect: boolean;
309
- attribute: string;
310
- };
311
- disabled: {
312
- type: BooleanConstructor;
313
- default: boolean;
314
- reflect: boolean;
315
- attribute: string;
316
- };
317
- href: {
318
- type: StringConstructor;
319
- default: string;
320
- reflect: boolean;
321
- attribute: string;
322
- };
323
- target: {
324
- type: StringConstructor;
325
- default: string;
326
- reflect: boolean;
327
- attribute: string;
328
- };
329
- type: {
330
- type: StringConstructor;
331
- default: string;
332
- reflect: boolean;
333
- attribute: string;
334
- };
335
- buttonMode: {
336
- type: ObjectConstructor;
337
- default: undefined;
338
- reflect: boolean;
339
- attribute: boolean;
340
- };
341
- linkHref: {
342
- type: ObjectConstructor;
343
- default: undefined;
344
- reflect: boolean;
345
- attribute: boolean;
346
- };
347
- linkTarget: {
348
- type: ObjectConstructor;
349
- default: undefined;
350
- reflect: boolean;
351
- attribute: boolean;
352
- };
353
- linkRel: {
354
- type: ObjectConstructor;
355
- default: undefined;
356
- reflect: boolean;
357
- attribute: boolean;
358
- };
359
- linkAriaDisabled: {
360
- type: ObjectConstructor;
361
- default: undefined;
362
- reflect: boolean;
363
- attribute: boolean;
364
- };
365
- };
366
- export declare class OpenButton extends OpenElement {
367
- static __partProgram: typeof __partProgram;
368
- static __compiledProperties: typeof __compiledProperties;
369
- static __elementMetadata: typeof __elementMetadata;
370
- static props: typeof __compiledProps;
371
- static observedAttributes: typeof __observedAttributes;
372
- static delegatesFocus: boolean;
373
- static formAssociated: boolean;
374
- static __oeUtilityClasses: boolean;
375
- static __oeClassCandidates: readonly string[];
376
- static __computedFields: {
377
- buttonMode: (__s: {
378
- href: ReadonlySignal<string>;
379
- }) => ReadonlySignal<boolean>;
380
- linkHref: (__s: {
381
- disabled: ReadonlySignal<boolean>;
382
- href: ReadonlySignal<string>;
383
- }) => ReadonlySignal<string | null>;
384
- linkTarget: (__s: {
385
- target: ReadonlySignal<string>;
386
- }) => ReadonlySignal<string | null>;
387
- linkRel: (__s: {
388
- target: ReadonlySignal<string>;
389
- }) => ReadonlySignal<string | null>;
390
- linkAriaDisabled: (__s: {
391
- disabled: ReadonlySignal<boolean>;
392
- }) => ReadonlySignal<string | null>;
393
- };
394
- static styles: StyleSheetLike[];
41
+ /** Button or link control with variant/size surfaces and form participation. */
42
+ declare function OpenButton(props: {
395
43
  variant: string;
396
44
  size: string;
397
45
  disabled: boolean;
398
46
  href: string;
399
47
  target: string;
400
48
  type: string;
401
- onDsdHydrated(): void;
402
- onCsrRendered(): void;
403
- attributeChangedCallback(name: string, old: string | null, val: string | null): void;
404
- private syncInternals;
405
- private handleClick;
406
- private submitForm;
407
- render(): never;
408
- }
49
+ }): any;
409
50
  //#endregion
410
- export { __elementMetadata, __partProgram };
51
+ export { OpenButton as default };