@openelement/ui 1.0.0-alpha.1 → 1.0.0-alpha.10

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,395 +1,299 @@
1
- // <auto-generated by open:compiled-element; v0.44.0-alpha.1 - do not edit>
2
- import { computed, OpenElement } from '@openelement/element';
3
- import { deepActiveElement, nextInstanceId, overlayRecipe, recipe } from './component-recipes.js';
4
- import { readInstanceState, writeInstanceState } from './instance-state.js';
1
+ import { readInstanceState, writeInstanceState } from "./instance-state.js";
2
+ import { deepActiveElement, nextInstanceId, overlayRecipe, recipe } from "./component-recipes.js";
3
+ import { OpenElement, computed } from "@openelement/element";
4
+ //#region src/open-dropdown.tsx
5
5
  const __partProgram = {
6
- "version": 1,
7
- "tag": "open-dropdown",
8
- "root": {
9
- "id": "root",
10
- "kind": "shadow-open",
11
- "nodes": [
12
- "e0"
13
- ]
14
- },
15
- "template": [
16
- {
17
- "k": "el",
18
- "id": "e0",
19
- "tag": "div",
20
- "attrs": [],
21
- "children": [
22
- {
23
- "k": "el",
24
- "id": "e1",
25
- "tag": "span",
26
- "attrs": [
27
- [
28
- "class",
29
- "trigger"
30
- ],
31
- [
32
- "part",
33
- "trigger"
34
- ]
35
- ],
36
- "children": [
37
- {
38
- "k": "el",
39
- "id": "e2",
40
- "tag": "slot",
41
- "attrs": [
42
- [
43
- "name",
44
- "trigger"
45
- ]
46
- ],
47
- "children": []
48
- }
49
- ]
50
- },
51
- {
52
- "k": "el",
53
- "id": "e3",
54
- "tag": "div",
55
- "attrs": [
56
- [
57
- "class",
58
- "overlay content"
59
- ],
60
- [
61
- "part",
62
- "content"
63
- ],
64
- [
65
- "popover",
66
- "auto"
67
- ]
68
- ],
69
- "children": [
70
- {
71
- "k": "el",
72
- "id": "e4",
73
- "tag": "slot",
74
- "attrs": [],
75
- "children": []
76
- }
77
- ]
78
- }
79
- ]
80
- }
81
- ],
82
- "parts": [
83
- {
84
- "k": "event",
85
- "event": "pointerdown",
86
- "handler": "onTriggerPointerDown",
87
- "action": {
88
- "kind": "method",
89
- "name": "onTriggerPointerDown"
90
- },
91
- "path": [
92
- 0,
93
- 0
94
- ],
95
- "index": 0,
96
- "location": {
97
- "id": "p0",
98
- "kind": "sink",
99
- "path": [
100
- 0,
101
- 0
102
- ],
103
- "node": "e1"
104
- }
105
- },
106
- {
107
- "k": "event",
108
- "event": "click",
109
- "handler": "toggle",
110
- "action": {
111
- "kind": "method",
112
- "name": "toggle"
113
- },
114
- "path": [
115
- 0,
116
- 0
117
- ],
118
- "index": 1,
119
- "location": {
120
- "id": "p1",
121
- "kind": "sink",
122
- "path": [
123
- 0,
124
- 0
125
- ],
126
- "node": "e1"
127
- }
128
- },
129
- {
130
- "k": "style",
131
- "signal": "anchorStyle",
132
- "path": [
133
- 0,
134
- 1
135
- ],
136
- "index": 2,
137
- "location": {
138
- "id": "p2",
139
- "kind": "sink",
140
- "path": [
141
- 0,
142
- 1
143
- ],
144
- "node": "e3"
145
- }
146
- }
147
- ],
148
- "regions": [],
149
- "dependencies": [
150
- {
151
- "signal": "anchorStyle",
152
- "owner": {
153
- "kind": "part",
154
- "index": 2
155
- },
156
- "location": "p2"
157
- }
158
- ],
159
- "locations": [
160
- {
161
- "id": "e0",
162
- "kind": "element",
163
- "tag": "div",
164
- "path": [
165
- 0
166
- ]
167
- },
168
- {
169
- "id": "e1",
170
- "kind": "element",
171
- "tag": "span",
172
- "path": [
173
- 0,
174
- 0
175
- ]
176
- },
177
- {
178
- "id": "p0",
179
- "kind": "sink",
180
- "part": 0,
181
- "node": "e1",
182
- "path": [
183
- 0,
184
- 0
185
- ]
186
- },
187
- {
188
- "id": "p1",
189
- "kind": "sink",
190
- "part": 1,
191
- "node": "e1",
192
- "path": [
193
- 0,
194
- 0
195
- ]
196
- },
197
- {
198
- "id": "e2",
199
- "kind": "element",
200
- "tag": "slot",
201
- "path": [
202
- 0,
203
- 0,
204
- 0
205
- ]
206
- },
207
- {
208
- "id": "e3",
209
- "kind": "element",
210
- "tag": "div",
211
- "path": [
212
- 0,
213
- 1
214
- ]
215
- },
216
- {
217
- "id": "p2",
218
- "kind": "sink",
219
- "part": 2,
220
- "node": "e3",
221
- "path": [
222
- 0,
223
- 1
224
- ]
225
- },
226
- {
227
- "id": "e4",
228
- "kind": "element",
229
- "tag": "slot",
230
- "path": [
231
- 0,
232
- 1,
233
- 0
234
- ]
235
- }
236
- ],
237
- "metadata": {
238
- "tag": "open-dropdown",
239
- "className": "OpenDropdown",
240
- "sourceFile": "open-dropdown.tsx",
241
- "properties": [
242
- {
243
- "name": "anchorName",
244
- "attribute": null,
245
- "type": "string",
246
- "converter": "string",
247
- "reflect": false,
248
- "default": ""
249
- },
250
- {
251
- "name": "anchorStyle",
252
- "attribute": null,
253
- "type": "string",
254
- "converter": "string",
255
- "reflect": false,
256
- "default": null,
257
- "computed": true,
258
- "deps": [
259
- "anchorName"
260
- ]
261
- }
262
- ],
263
- "observedAttributes": [],
264
- "cem": {
265
- "tagName": "open-dropdown",
266
- "className": "OpenDropdown",
267
- "declaration": {
268
- "name": "OpenDropdown",
269
- "module": "open-dropdown.tsx"
270
- },
271
- "attributes": [],
272
- "members": [
273
- {
274
- "name": "anchorName",
275
- "fieldName": "anchorName",
276
- "type": "string",
277
- "attribute": null,
278
- "reflect": false
279
- },
280
- {
281
- "name": "anchorStyle",
282
- "fieldName": "anchorStyle",
283
- "type": "string",
284
- "attribute": null,
285
- "reflect": false
286
- }
287
- ]
288
- }
289
- }
6
+ "version": 1,
7
+ "tag": "open-dropdown",
8
+ "root": {
9
+ "id": "root",
10
+ "kind": "shadow-open",
11
+ "nodes": ["e0"]
12
+ },
13
+ "template": [{
14
+ "k": "el",
15
+ "id": "e0",
16
+ "tag": "div",
17
+ "attrs": [],
18
+ "children": [{
19
+ "k": "el",
20
+ "id": "e1",
21
+ "tag": "span",
22
+ "attrs": [["class", "trigger"], ["part", "trigger"]],
23
+ "children": [{
24
+ "k": "el",
25
+ "id": "e2",
26
+ "tag": "slot",
27
+ "attrs": [["name", "trigger"]],
28
+ "children": []
29
+ }]
30
+ }, {
31
+ "k": "el",
32
+ "id": "e3",
33
+ "tag": "div",
34
+ "attrs": [
35
+ ["class", "overlay content"],
36
+ ["part", "content"],
37
+ ["popover", "auto"]
38
+ ],
39
+ "children": [{
40
+ "k": "el",
41
+ "id": "e4",
42
+ "tag": "slot",
43
+ "attrs": [],
44
+ "children": []
45
+ }]
46
+ }]
47
+ }],
48
+ "parts": [
49
+ {
50
+ "k": "event",
51
+ "event": "pointerdown",
52
+ "handler": "onTriggerPointerDown",
53
+ "action": {
54
+ "kind": "method",
55
+ "name": "onTriggerPointerDown"
56
+ },
57
+ "path": [0, 0],
58
+ "index": 0,
59
+ "location": {
60
+ "id": "p0",
61
+ "kind": "sink",
62
+ "path": [0, 0],
63
+ "node": "e1"
64
+ }
65
+ },
66
+ {
67
+ "k": "event",
68
+ "event": "click",
69
+ "handler": "toggle",
70
+ "action": {
71
+ "kind": "method",
72
+ "name": "toggle"
73
+ },
74
+ "path": [0, 0],
75
+ "index": 1,
76
+ "location": {
77
+ "id": "p1",
78
+ "kind": "sink",
79
+ "path": [0, 0],
80
+ "node": "e1"
81
+ }
82
+ },
83
+ {
84
+ "k": "style",
85
+ "signal": "anchorStyle",
86
+ "path": [0, 1],
87
+ "index": 2,
88
+ "location": {
89
+ "id": "p2",
90
+ "kind": "sink",
91
+ "path": [0, 1],
92
+ "node": "e3"
93
+ }
94
+ }
95
+ ],
96
+ "regions": [],
97
+ "dependencies": [{
98
+ "signal": "anchorStyle",
99
+ "owner": {
100
+ "kind": "part",
101
+ "index": 2
102
+ },
103
+ "location": "p2"
104
+ }],
105
+ "locations": [
106
+ {
107
+ "id": "e0",
108
+ "kind": "element",
109
+ "tag": "div",
110
+ "path": [0]
111
+ },
112
+ {
113
+ "id": "e1",
114
+ "kind": "element",
115
+ "tag": "span",
116
+ "path": [0, 0]
117
+ },
118
+ {
119
+ "id": "p0",
120
+ "kind": "sink",
121
+ "part": 0,
122
+ "node": "e1",
123
+ "path": [0, 0]
124
+ },
125
+ {
126
+ "id": "p1",
127
+ "kind": "sink",
128
+ "part": 1,
129
+ "node": "e1",
130
+ "path": [0, 0]
131
+ },
132
+ {
133
+ "id": "e2",
134
+ "kind": "element",
135
+ "tag": "slot",
136
+ "path": [
137
+ 0,
138
+ 0,
139
+ 0
140
+ ]
141
+ },
142
+ {
143
+ "id": "e3",
144
+ "kind": "element",
145
+ "tag": "div",
146
+ "path": [0, 1]
147
+ },
148
+ {
149
+ "id": "p2",
150
+ "kind": "sink",
151
+ "part": 2,
152
+ "node": "e3",
153
+ "path": [0, 1]
154
+ },
155
+ {
156
+ "id": "e4",
157
+ "kind": "element",
158
+ "tag": "slot",
159
+ "path": [
160
+ 0,
161
+ 1,
162
+ 0
163
+ ]
164
+ }
165
+ ],
166
+ "metadata": {
167
+ "tag": "open-dropdown",
168
+ "className": "OpenDropdown",
169
+ "sourceFile": "open-dropdown.tsx",
170
+ "properties": [{
171
+ "name": "anchorName",
172
+ "attribute": null,
173
+ "type": "string",
174
+ "converter": "string",
175
+ "reflect": false,
176
+ "default": ""
177
+ }, {
178
+ "name": "anchorStyle",
179
+ "attribute": null,
180
+ "type": "string",
181
+ "converter": "string",
182
+ "reflect": false,
183
+ "default": null,
184
+ "computed": true,
185
+ "deps": ["anchorName"]
186
+ }],
187
+ "observedAttributes": [],
188
+ "cem": {
189
+ "tagName": "open-dropdown",
190
+ "className": "OpenDropdown",
191
+ "declaration": {
192
+ "name": "OpenDropdown",
193
+ "module": "open-dropdown.tsx"
194
+ },
195
+ "attributes": [],
196
+ "members": [{
197
+ "name": "anchorName",
198
+ "fieldName": "anchorName",
199
+ "type": "string",
200
+ "attribute": null,
201
+ "reflect": false
202
+ }, {
203
+ "name": "anchorStyle",
204
+ "fieldName": "anchorStyle",
205
+ "type": "string",
206
+ "attribute": null,
207
+ "reflect": false
208
+ }]
209
+ }
210
+ }
290
211
  };
291
- const __compiledProperties = [
292
- {
293
- "name": "anchorName",
294
- "attribute": null,
295
- "type": "string",
296
- "converter": "string",
297
- "reflect": false,
298
- "default": ""
299
- },
300
- {
301
- "name": "anchorStyle",
302
- "attribute": null,
303
- "type": "string",
304
- "converter": "string",
305
- "reflect": false,
306
- "default": null,
307
- "computed": true,
308
- "deps": [
309
- "anchorName"
310
- ]
311
- }
312
- ];
212
+ const __compiledProperties = [{
213
+ "name": "anchorName",
214
+ "attribute": null,
215
+ "type": "string",
216
+ "converter": "string",
217
+ "reflect": false,
218
+ "default": ""
219
+ }, {
220
+ "name": "anchorStyle",
221
+ "attribute": null,
222
+ "type": "string",
223
+ "converter": "string",
224
+ "reflect": false,
225
+ "default": null,
226
+ "computed": true,
227
+ "deps": ["anchorName"]
228
+ }];
313
229
  const __elementMetadata = {
314
- "tag": "open-dropdown",
315
- "className": "OpenDropdown",
316
- "sourceFile": "open-dropdown.tsx",
317
- "properties": [
318
- {
319
- "name": "anchorName",
320
- "attribute": null,
321
- "type": "string",
322
- "converter": "string",
323
- "reflect": false,
324
- "default": ""
325
- },
326
- {
327
- "name": "anchorStyle",
328
- "attribute": null,
329
- "type": "string",
330
- "converter": "string",
331
- "reflect": false,
332
- "default": null,
333
- "computed": true,
334
- "deps": [
335
- "anchorName"
336
- ]
337
- }
338
- ],
339
- "observedAttributes": [],
340
- "cem": {
341
- "tagName": "open-dropdown",
342
- "className": "OpenDropdown",
343
- "declaration": {
344
- "name": "OpenDropdown",
345
- "module": "open-dropdown.tsx"
346
- },
347
- "attributes": [],
348
- "members": [
349
- {
350
- "name": "anchorName",
351
- "fieldName": "anchorName",
352
- "type": "string",
353
- "attribute": null,
354
- "reflect": false
355
- },
356
- {
357
- "name": "anchorStyle",
358
- "fieldName": "anchorStyle",
359
- "type": "string",
360
- "attribute": null,
361
- "reflect": false
362
- }
363
- ]
364
- }
230
+ "tag": "open-dropdown",
231
+ "className": "OpenDropdown",
232
+ "sourceFile": "open-dropdown.tsx",
233
+ "properties": [{
234
+ "name": "anchorName",
235
+ "attribute": null,
236
+ "type": "string",
237
+ "converter": "string",
238
+ "reflect": false,
239
+ "default": ""
240
+ }, {
241
+ "name": "anchorStyle",
242
+ "attribute": null,
243
+ "type": "string",
244
+ "converter": "string",
245
+ "reflect": false,
246
+ "default": null,
247
+ "computed": true,
248
+ "deps": ["anchorName"]
249
+ }],
250
+ "observedAttributes": [],
251
+ "cem": {
252
+ "tagName": "open-dropdown",
253
+ "className": "OpenDropdown",
254
+ "declaration": {
255
+ "name": "OpenDropdown",
256
+ "module": "open-dropdown.tsx"
257
+ },
258
+ "attributes": [],
259
+ "members": [{
260
+ "name": "anchorName",
261
+ "fieldName": "anchorName",
262
+ "type": "string",
263
+ "attribute": null,
264
+ "reflect": false
265
+ }, {
266
+ "name": "anchorStyle",
267
+ "fieldName": "anchorStyle",
268
+ "type": "string",
269
+ "attribute": null,
270
+ "reflect": false
271
+ }]
272
+ }
365
273
  };
366
274
  const __observedAttributes = [];
367
275
  const __compiledProps = {
368
- anchorName: {
369
- type: String,
370
- default: '',
371
- reflect: false,
372
- attribute: false
373
- },
374
- anchorStyle: {
375
- type: Object,
376
- default: undefined,
377
- reflect: false,
378
- attribute: false
379
- }
276
+ anchorName: {
277
+ type: String,
278
+ default: "",
279
+ reflect: false,
280
+ attribute: false
281
+ },
282
+ anchorStyle: {
283
+ type: Object,
284
+ default: void 0,
285
+ reflect: false,
286
+ attribute: false
287
+ }
380
288
  };
381
- export class OpenDropdown extends OpenElement {
382
- static __partProgram = __partProgram;
383
- static __compiledProperties = __compiledProperties;
384
- static __elementMetadata = __elementMetadata;
385
- static props = __compiledProps;
386
- static observedAttributes = __observedAttributes;
387
- static __computedFields = {
388
- anchorStyle: (__s)=>computed(()=>__s.anchorName.value === '' ? '' : `position-anchor: ${__s.anchorName.value}`)
389
- };
390
- static styles = [
391
- overlayRecipe,
392
- recipe(`
289
+ var OpenDropdown = class extends OpenElement {
290
+ static __partProgram = __partProgram;
291
+ static __compiledProperties = __compiledProperties;
292
+ static __elementMetadata = __elementMetadata;
293
+ static props = __compiledProps;
294
+ static observedAttributes = __observedAttributes;
295
+ static __computedFields = { anchorStyle: (__s) => computed(() => __s.anchorName.value === "" ? "" : `position-anchor: ${__s.anchorName.value}`) };
296
+ static styles = [overlayRecipe, recipe(`
393
297
  :host {
394
298
  display: inline-block;
395
299
  }
@@ -409,93 +313,69 @@ export class OpenDropdown extends OpenElement {
409
313
  min-width: 12rem;
410
314
  /* The gap rides on margin-top: calc(anchor() + length) resolves without
411
315
  the added length in Firefox. */
412
- margin: var(--size-2) 0 0;
413
- padding: var(--size-2);
316
+ margin: calc(var(--spacing) * 2) 0 0;
317
+ padding: calc(var(--spacing) * 2);
414
318
  font-family: var(--font-sans);
415
319
  }
416
- `)
417
- ];
418
- anchorName = '';
419
- onDsdHydrated() {
420
- this.syncAnchorName();
421
- this.watchFocusReturn();
422
- }
423
- onCsrRendered() {
424
- this.syncAnchorName();
425
- this.watchFocusReturn();
426
- }
427
- watchFocusReturn() {
428
- if (readInstanceState(this, 'focusWired', ()=>false)) return;
429
- writeInstanceState(this, 'focusWired', true);
430
- const content = this.shadowRoot?.querySelector('.content');
431
- if (!content) return;
432
- content.addEventListener('focusin', ()=>{
433
- writeInstanceState(this, 'popoverHadFocus', true);
434
- });
435
- // 'beforetoggle' fires synchronously before the open flip — therefore
436
- // before showPopover()'s focusing steps (an autofocus descendant) and
437
- // before any same-task programmatic .focus() into the popover (the
438
- // menu-button composition pattern). Resetting the record here, instead of
439
- // in the queued 'toggle' task, closes the race where focus entering the
440
- // popover within the opening task had its focusin record wiped, silently
441
- // disabling focus return. The same synchronous point also captures the
442
- // return-focus target for every open path, including direct showPopover()
443
- // calls that never pass through toggle().
444
- content.addEventListener('beforetoggle', (event)=>{
445
- if (event.newState !== 'open') return;
446
- writeInstanceState(this, 'popoverHadFocus', false);
447
- writeInstanceState(this, 'previouslyFocused', deepActiveElement());
448
- });
449
- content.addEventListener('toggle', (event)=>{
450
- const toggle = event;
451
- if (toggle.newState !== 'closed') return;
452
- const hadFocus = readInstanceState(this, 'popoverHadFocus', ()=>false);
453
- const previous = readInstanceState(this, 'previouslyFocused', ()=>null);
454
- writeInstanceState(this, 'previouslyFocused', null);
455
- if (!hadFocus || !previous?.isConnected) return;
456
- // The platform settles focus around the toggle event, not before it:
457
- // the same-tree native restore lands by itself (active === previous),
458
- // while the cross-shadow defect leaves focus inside the closing
459
- // popover or drops it to <body> — both mean "restore it ourselves".
460
- // A deliberate move (outside click) is neither and is left alone.
461
- queueMicrotask(()=>{
462
- if (!previous.isConnected) return;
463
- const active = deepActiveElement();
464
- if (active === previous) return;
465
- const focusInside = active !== null && (this.contains(active) || content.contains(active));
466
- const dropped = !active || active === document.body || active === document.documentElement;
467
- if (!focusInside && !dropped) return;
468
- previous.focus();
469
- });
470
- });
471
- }
472
- syncAnchorName() {
473
- if (this.anchorName === '') {
474
- this.anchorName = `--open-dropdown-trigger-${nextInstanceId()}`;
475
- }
476
- this.style.setProperty('anchor-name', this.anchorName);
477
- }
478
- onTriggerPointerDown() {
479
- const content = this.shadowRoot?.querySelector('.content');
480
- writeInstanceState(this, 'openAtPointerDown', content?.matches(':popover-open') ?? false);
481
- }
482
- toggle() {
483
- // A mouse click on the trigger is preceded by a pointerdown that natively
484
- // light-dismisses an open popover; the click that follows must not re-open
485
- // it. Keyboard/programmatic clicks have no pointerdown and toggle normally.
486
- const wasOpen = readInstanceState(this, 'openAtPointerDown', ()=>false);
487
- writeInstanceState(this, 'openAtPointerDown', false);
488
- if (wasOpen) return;
489
- const content = this.shadowRoot?.querySelector('.content');
490
- if (!content) return;
491
- // watchFocusReturn's synchronous 'beforetoggle' listener is the single
492
- // owner of the return-focus capture (#1226); it runs inside
493
- // togglePopover() before the open flip, so nothing can move focus between
494
- // this call and the capture.
495
- content.togglePopover();
496
- }
497
- render() {
498
- throw new Error('[open:compiled-element] open-dropdown is compiled to a Part Program; the runtime JSX render path is not available in 0.44.');
499
- }
500
- }
501
- export { __partProgram, __elementMetadata };
320
+ `)];
321
+ anchorName = "";
322
+ onDsdHydrated() {
323
+ this.syncAnchorName();
324
+ this.watchFocusReturn();
325
+ }
326
+ onCsrRendered() {
327
+ this.syncAnchorName();
328
+ this.watchFocusReturn();
329
+ }
330
+ watchFocusReturn() {
331
+ if (readInstanceState(this, "focusWired", () => false)) return;
332
+ writeInstanceState(this, "focusWired", true);
333
+ const content = this.shadowRoot?.querySelector(".content");
334
+ if (!content) return;
335
+ content.addEventListener("focusin", () => {
336
+ writeInstanceState(this, "popoverHadFocus", true);
337
+ });
338
+ content.addEventListener("beforetoggle", (event) => {
339
+ if (event.newState !== "open") return;
340
+ writeInstanceState(this, "popoverHadFocus", false);
341
+ writeInstanceState(this, "previouslyFocused", deepActiveElement());
342
+ });
343
+ content.addEventListener("toggle", (event) => {
344
+ if (event.newState !== "closed") return;
345
+ const hadFocus = readInstanceState(this, "popoverHadFocus", () => false);
346
+ const previous = readInstanceState(this, "previouslyFocused", () => null);
347
+ writeInstanceState(this, "previouslyFocused", null);
348
+ if (!hadFocus || !previous?.isConnected) return;
349
+ queueMicrotask(() => {
350
+ if (!previous.isConnected) return;
351
+ const active = deepActiveElement();
352
+ if (active === previous) return;
353
+ const focusInside = active !== null && (this.contains(active) || content.contains(active));
354
+ const dropped = !active || active === document.body || active === document.documentElement;
355
+ if (!focusInside && !dropped) return;
356
+ previous.focus();
357
+ });
358
+ });
359
+ }
360
+ syncAnchorName() {
361
+ if (this.anchorName === "") this.anchorName = `--open-dropdown-trigger-${nextInstanceId()}`;
362
+ this.style.setProperty("anchor-name", this.anchorName);
363
+ }
364
+ onTriggerPointerDown() {
365
+ const content = this.shadowRoot?.querySelector(".content");
366
+ writeInstanceState(this, "openAtPointerDown", content?.matches(":popover-open") ?? false);
367
+ }
368
+ toggle() {
369
+ const wasOpen = readInstanceState(this, "openAtPointerDown", () => false);
370
+ writeInstanceState(this, "openAtPointerDown", false);
371
+ if (wasOpen) return;
372
+ const content = this.shadowRoot?.querySelector(".content");
373
+ if (!content) return;
374
+ content.togglePopover();
375
+ }
376
+ render() {
377
+ throw new Error("[open:compiled-element] open-dropdown is compiled to a Part Program; the runtime JSX render path is not available.");
378
+ }
379
+ };
380
+ //#endregion
381
+ export { OpenDropdown, __elementMetadata, __partProgram };