@telperion/elements 5.4.1 → 5.4.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.
@@ -0,0 +1,4409 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/button/button.element.ts",
8
+ "declarations": [
9
+ {
10
+ "kind": "class",
11
+ "description": "`<tp-button>` &mdash; framework-agnostic, form-associated button.\r\n\r\nBehaves like the native `<button>` element:\r\n\r\n- Participates in the tab order (`tabindex=\"0\"` on connect; `-1` while disabled).\r\n- Activates on `Space` / `Enter`.\r\n- With `type=\"submit\"` calls `form.requestSubmit()`; with `type=\"reset\"` calls `form.reset()`.\r\n- When `disabled`, blocks click and keyboard activation and updates `aria-disabled`.\r\n- Announces `role=\"button\"` to assistive technology via `ElementInternals`.\r\n\r\nColor is supplied through ShadeMixerLitElement: pick a palette token via `color`,\r\nthen lighten or darken it through `shade` (`0`&ndash;`1000`, `500` is the base color).\r\nThe element renders into the **light DOM** so global CSS, Tailwind utilities, and consumer\r\ntokens apply directly.\n\n#### Examples\n\n```html\n<tp-button>Click me</tp-button>\n<tp-button variant=\"outline\" color=\"success\">Save</tp-button>\n<tp-button variant=\"text\" color=\"danger\" disabled>Delete</tp-button>\n\n<form>\n <input name=\"email\" type=\"email\" />\n <tp-button type=\"submit\" color=\"primary\">Subscribe</tp-button>\n</form>\n```",
12
+ "name": "ButtonElement",
13
+ "cssProperties": [
14
+ {
15
+ "description": "Resolved background/text color (defaults to the calculated palette color).",
16
+ "name": "--tp-button-color"
17
+ },
18
+ {
19
+ "description": "Resolved contrast color used for `solid` text.",
20
+ "name": "--tp-button-contrast-color"
21
+ },
22
+ {
23
+ "description": "Color blended into `--tp-button-color` to compute the hover/active color. Defaults to `transparent` for `outline` / `ghost` (subtle tint) and `var(--tp-color-black)` for `solid` / `text` (slight darken).",
24
+ "name": "--tp-button-active-mixer-color"
25
+ },
26
+ {
27
+ "description": "Amount of `--tp-button-color` retained when blending against the mixer color. Defaults to `10%` for `outline` / `ghost` and `80%` for `solid` / `text`. Lower values produce a stronger hover effect.",
28
+ "name": "--tp-button-active-mixer-percentage"
29
+ },
30
+ {
31
+ "description": "Final hover/active color, computed as `color-mix(in xyz, var(--tp-button-color) var(--tp-button-active-mixer-percentage), var(--tp-button-active-mixer-color) calc(100% - var(--tp-button-active-mixer-percentage)))`. Override directly to fully customize the hover color.",
32
+ "name": "--tp-button-active-color"
33
+ }
34
+ ],
35
+ "members": [
36
+ {
37
+ "kind": "field",
38
+ "name": "formAssociated",
39
+ "type": {
40
+ "text": "boolean"
41
+ },
42
+ "static": true,
43
+ "default": "true",
44
+ "description": "Marks the element as form-associated so `attachInternals().form` is populated."
45
+ },
46
+ {
47
+ "kind": "field",
48
+ "name": "variant",
49
+ "type": {
50
+ "text": "ButtonVariant"
51
+ },
52
+ "default": "\"solid\"",
53
+ "attribute": "variant",
54
+ "reflects": true
55
+ },
56
+ {
57
+ "kind": "field",
58
+ "name": "type",
59
+ "type": {
60
+ "text": "ButtonType"
61
+ },
62
+ "default": "\"button\"",
63
+ "description": "Native button semantics. Determines what happens to the associated form when\r\nthe button is activated. `submit` calls `form.requestSubmit()`, `reset` calls\r\n`form.reset()`, and `button` (the default) does nothing implicit.",
64
+ "attribute": "type",
65
+ "reflects": true
66
+ },
67
+ {
68
+ "kind": "field",
69
+ "name": "disabled",
70
+ "type": {
71
+ "text": "boolean"
72
+ },
73
+ "default": "false",
74
+ "description": "When `true`, the button is removed from the tab order, click and keyboard\r\nactivation are blocked, and `aria-disabled` is set on the element internals.",
75
+ "attribute": "disabled",
76
+ "reflects": true
77
+ },
78
+ {
79
+ "kind": "field",
80
+ "name": "#internals",
81
+ "privacy": "private",
82
+ "type": {
83
+ "text": "ElementInternals"
84
+ },
85
+ "readonly": true
86
+ },
87
+ {
88
+ "kind": "field",
89
+ "name": "form",
90
+ "type": {
91
+ "text": "HTMLFormElement | null"
92
+ },
93
+ "description": "The form this button is associated with, if any. Mirrors `HTMLButtonElement.form`.",
94
+ "readonly": true
95
+ },
96
+ {
97
+ "kind": "field",
98
+ "name": "#handleClick",
99
+ "privacy": "private"
100
+ },
101
+ {
102
+ "kind": "field",
103
+ "name": "#handleKeydown",
104
+ "privacy": "private"
105
+ },
106
+ {
107
+ "kind": "field",
108
+ "name": "role",
109
+ "type": {
110
+ "text": "string"
111
+ },
112
+ "default": "\"button\""
113
+ },
114
+ {
115
+ "kind": "field",
116
+ "name": "rootStyles",
117
+ "static": true,
118
+ "inheritedFrom": {
119
+ "name": "ShadeMixerLitElement",
120
+ "module": "src/utils/shade-mixer-lit-element.ts"
121
+ }
122
+ },
123
+ {
124
+ "kind": "field",
125
+ "name": "shadedElementStyles",
126
+ "static": true,
127
+ "default": "css` --tp-element-color: var(--tp-color-primary); --tp-shade-attr: attr(shade type(<number>)); --tp-shade-mixer-type: attr(mixer type(*)); --tp-shade-mixer-color: if( style(--tp-shade-mixer-type: black): var(--tp-color-black); else: var(--tp-color-white) ); --tp-shade-mixer-percent: if( style(--tp-shade-mixer-type: black): calc(100% - ((var(--tp-shade-attr) - 500) / 500 * 100%)); else: calc(100% - ((500 - var(--tp-shade-attr)) / 500 * 100%)) ); --tp-calc-element-color: color-mix(in xyz, var(--tp-element-color) var(--tp-shade-mixer-percent), var(--tp-shade-mixer-color) calc(100% - var(--tp-shade-mixer-percent))); --tp-calc-contrast-color: contrast-color(var(--tp-calc-element-color)); --tp-contrast-color: if( style(--tp-calc-contrast-color: white): var(--tp-color-white); else: var(--tp-color-black); ); &[color=\"contrast\"] { --tp-element-color: var(--tp-color-contrast); } &[color=\"primary\"] { --tp-element-color: var(--tp-color-primary); } &[color=\"secondary\"] { --tp-element-color: var(--tp-color-secondary); } &[color=\"tertiary\"] { --tp-element-color: var(--tp-color-tertiary); } &[color=\"quaternary\"] { --tp-element-color: var(--tp-color-quaternary); } &[color=\"success\"] { --tp-element-color: var(--tp-color-success); } &[color=\"danger\"] { --tp-element-color: var(--tp-color-danger); } &[color=\"warning\"] { --tp-element-color: var(--tp-color-warning); } &[color=\"neutral\"] { --tp-element-color: var(--tp-color-neutral); } `",
128
+ "inheritedFrom": {
129
+ "name": "ShadeMixerLitElement",
130
+ "module": "src/utils/shade-mixer-lit-element.ts"
131
+ }
132
+ },
133
+ {
134
+ "kind": "field",
135
+ "name": "color",
136
+ "type": {
137
+ "text": "PredefinedColors | string"
138
+ },
139
+ "default": "\"contrast\"",
140
+ "attribute": "color",
141
+ "reflects": true,
142
+ "inheritedFrom": {
143
+ "name": "ShadeMixerLitElement",
144
+ "module": "src/utils/shade-mixer-lit-element.ts"
145
+ }
146
+ },
147
+ {
148
+ "kind": "field",
149
+ "name": "shade",
150
+ "type": {
151
+ "text": "number"
152
+ },
153
+ "default": "500",
154
+ "attribute": "shade",
155
+ "reflects": true,
156
+ "inheritedFrom": {
157
+ "name": "ShadeMixerLitElement",
158
+ "module": "src/utils/shade-mixer-lit-element.ts"
159
+ }
160
+ },
161
+ {
162
+ "kind": "field",
163
+ "name": "mixer",
164
+ "type": {
165
+ "text": "ShadeMixerType"
166
+ },
167
+ "default": "\"none\"",
168
+ "attribute": "mixer",
169
+ "reflects": true,
170
+ "inheritedFrom": {
171
+ "name": "ShadeMixerLitElement",
172
+ "module": "src/utils/shade-mixer-lit-element.ts"
173
+ }
174
+ }
175
+ ],
176
+ "attributes": [
177
+ {
178
+ "type": {
179
+ "text": "ButtonVariant"
180
+ },
181
+ "description": "Visual treatment.",
182
+ "name": "variant",
183
+ "default": "\"solid\"",
184
+ "fieldName": "variant"
185
+ },
186
+ {
187
+ "type": {
188
+ "text": "ButtonType"
189
+ },
190
+ "description": "Native button semantics. Determines what happens to the associated form when\r\nthe button is activated. `submit` calls `form.requestSubmit()`, `reset` calls\r\n`form.reset()`, and `button` (the default) does nothing implicit.",
191
+ "name": "type",
192
+ "default": "\"button\"",
193
+ "fieldName": "type"
194
+ },
195
+ {
196
+ "type": {
197
+ "text": "boolean"
198
+ },
199
+ "description": "When `true`, the button is removed from the tab order, click and keyboard\r\nactivation are blocked, and `aria-disabled` is set on the element internals.",
200
+ "name": "disabled",
201
+ "default": "false",
202
+ "fieldName": "disabled"
203
+ },
204
+ {
205
+ "name": "color",
206
+ "type": {
207
+ "text": "PredefinedColors | string"
208
+ },
209
+ "default": "\"contrast\"",
210
+ "fieldName": "color",
211
+ "description": "Palette token (`primary`, `secondary`, `success`, &hellip;) inherited from {@link ShadeMixerLitElement}.",
212
+ "inheritedFrom": {
213
+ "name": "ShadeMixerLitElement",
214
+ "module": "src/utils/shade-mixer-lit-element.ts"
215
+ }
216
+ },
217
+ {
218
+ "name": "shade",
219
+ "type": {
220
+ "text": "number"
221
+ },
222
+ "default": "500",
223
+ "fieldName": "shade",
224
+ "description": "Shade between `0` (lightest) and `1000` (darkest); `500` is the base color.",
225
+ "inheritedFrom": {
226
+ "name": "ShadeMixerLitElement",
227
+ "module": "src/utils/shade-mixer-lit-element.ts"
228
+ }
229
+ },
230
+ {
231
+ "name": "mixer",
232
+ "type": {
233
+ "text": "ShadeMixerType"
234
+ },
235
+ "default": "\"none\"",
236
+ "fieldName": "mixer",
237
+ "description": "Auto-derived from `shade` (read-only output).",
238
+ "inheritedFrom": {
239
+ "name": "ShadeMixerLitElement",
240
+ "module": "src/utils/shade-mixer-lit-element.ts"
241
+ }
242
+ }
243
+ ],
244
+ "superclass": {
245
+ "name": "ShadeMixerLitElement",
246
+ "module": "/src/utils/shade-mixer-lit-element"
247
+ },
248
+ "tagName": "tp-button",
249
+ "customElement": true
250
+ }
251
+ ],
252
+ "exports": [
253
+ {
254
+ "kind": "js",
255
+ "name": "ButtonElement",
256
+ "declaration": {
257
+ "name": "ButtonElement",
258
+ "module": "src/button/button.element.ts"
259
+ }
260
+ },
261
+ {
262
+ "kind": "custom-element-definition",
263
+ "name": "tp-button",
264
+ "declaration": {
265
+ "name": "ButtonElement",
266
+ "module": "src/button/button.element.ts"
267
+ }
268
+ }
269
+ ]
270
+ },
271
+ {
272
+ "kind": "javascript-module",
273
+ "path": "src/details-set/details-set-element.ts",
274
+ "declarations": [
275
+ {
276
+ "kind": "class",
277
+ "description": "A framework-agnostic grouping element for native `<details>` elements.\n\nTracks the open/closed state of its **direct-child** `<details>` elements\nand enforces a configurable cap via the `max-open-items` attribute. When\nthe cap is exceeded, the **earliest-opened** child is closed (FIFO).\n\nRenders into the **light DOM** so consumers retain full control over the\nstyling of the slotted `<details>` / `<summary>` elements.\n\nModern CSS defaults (smooth open/close via `interpolate-size: allow-keywords`\n+ `::details-content` `block-size` transition) are injected once at the\ndocument level. Override timing via the\n`--tp-details-set-transition-duration` and\n`--tp-details-set-transition-easing` custom properties. In engines that\ndo not yet support `interpolate-size` / `::details-content`, the\nanimation is simply a no-op &mdash; the JS cap logic still works.\n\nDispatches a bubbling `tp-details-set-change` `CustomEvent` whose\n`detail` is `{ opened: HTMLDetailsElement[]; closed: HTMLDetailsElement[] }`\nwhenever the cap forces one or more children to close. Listen to the\nnative `toggle` event on the children for ordinary open/close changes.\n\n#### Examples\n\n**Unlimited (the default)**\n\n```html\n<tp-details-set>\n <details><summary>One</summary>...</details>\n <details><summary>Two</summary>...</details>\n</tp-details-set>\n```\n\n**Accordion**\n\n```html\n<tp-details-set max-open-items=\"1\">\n <details><summary>One</summary>...</details>\n <details><summary>Two</summary>...</details>\n</tp-details-set>\n```\n\n**Two-at-a-time (FIFO)**\n\n```html\n<tp-details-set max-open-items=\"2\">\n <details open><summary>A</summary>...</details>\n <details><summary>B</summary>...</details>\n <details><summary>C</summary>...</details>\n</tp-details-set>\n```\n\n**Summary markers**\n\nDirect-child `<template summary-marker index=\"…\">` elements are cloned\ninto every direct-child `<details>`'s `<summary>` at the position given\nby `index`. Non-negative counts from the start (clamped to\n`[0, length]`); negative counts from the end where `-1` is the end\n(append), `-2` is before the last child, etc. Missing/invalid index\ndefaults to `0`. Multiple marker templates apply in document order;\neach later marker sees the summary's current state (including markers\nalready inserted by earlier templates) when computing its index.\n```html\n<tp-details-set>\n <template summary-marker index=\"0\"><span class=\"chev\">▸</span></template>\n <template summary-marker index=\"-1\"><span class=\"badge\">★</span></template>\n\n <details><summary>One</summary>...</details>\n <details><summary>Two</summary>...</details>\n</tp-details-set>\n```\nUse ordinary CSS for state-aware styling, e.g.\n`tp-details-set > details[open] > summary > .chev { rotate: 90deg; }`.",
278
+ "name": "DetailsSetElement",
279
+ "members": [
280
+ {
281
+ "kind": "field",
282
+ "name": "GLOBAL_STYLE",
283
+ "type": {
284
+ "text": "HTMLStyleElement"
285
+ },
286
+ "privacy": "private",
287
+ "static": true
288
+ },
289
+ {
290
+ "kind": "field",
291
+ "name": "maxOpenItems",
292
+ "type": {
293
+ "text": "number"
294
+ },
295
+ "default": "0",
296
+ "description": "Maximum number of direct-child `<details>` allowed open at the same time.\r\n`0` (the default) means unlimited.",
297
+ "attribute": "max-open-items",
298
+ "reflects": true
299
+ },
300
+ {
301
+ "kind": "field",
302
+ "name": "toggleOn",
303
+ "type": {
304
+ "text": "\"summary\" | \"marker\""
305
+ },
306
+ "default": "\"summary\"",
307
+ "description": "Default trigger for toggling direct-child `<details>` elements:\r\n\r\n- `\"summary\"` (default): clicking anywhere on the `<summary>` toggles\r\n the details (native behavior).\r\n- `\"marker\"`: only clicks on (or inside) an element carrying the\r\n `tp-summary-marker` attribute toggle the details. If the summary has\r\n no marker, this falls back to summary toggle for that details so the\r\n details never becomes un-toggleable.\r\n\r\nPer-`<details>` `toggle-on` attribute overrides this set-level default.\r\nKeyboard activation (Enter/Space on a focused summary) is **never**\r\nsuppressed, regardless of mode.",
308
+ "attribute": "toggle-on",
309
+ "reflects": true
310
+ },
311
+ {
312
+ "kind": "field",
313
+ "name": "#openOrder",
314
+ "privacy": "private",
315
+ "type": {
316
+ "text": "HTMLDetailsElement[]"
317
+ },
318
+ "default": "[]",
319
+ "description": "FIFO queue of currently-open direct-child `<details>` elements."
320
+ },
321
+ {
322
+ "kind": "field",
323
+ "name": "#childObservers",
324
+ "privacy": "private",
325
+ "default": "new Map<HTMLDetailsElement, MutationObserver>()",
326
+ "description": "Per-child observers watching the `open` attribute."
327
+ },
328
+ {
329
+ "kind": "field",
330
+ "name": "#childListObserver",
331
+ "privacy": "private",
332
+ "type": {
333
+ "text": "MutationObserver | undefined"
334
+ },
335
+ "description": "Observer watching `childList` changes on the host."
336
+ },
337
+ {
338
+ "kind": "field",
339
+ "name": "#markerObservers",
340
+ "privacy": "private",
341
+ "default": "new Map<HTMLTemplateElement, MutationObserver>()",
342
+ "description": "Per-marker-template observers (content + `index` attribute changes)."
343
+ },
344
+ {
345
+ "kind": "field",
346
+ "name": "#insertedMarkers",
347
+ "privacy": "private",
348
+ "default": "new WeakMap< HTMLElement, Map<HTMLTemplateElement, Node[]> >()",
349
+ "description": "Tracks raw cloned marker nodes inserted into each summary, keyed by the\r\nsource template, so re-syncs can remove and re-insert without leaving\r\nstale DOM behind."
350
+ },
351
+ {
352
+ "kind": "method",
353
+ "name": "#syncDirectChildren",
354
+ "privacy": "private",
355
+ "return": {
356
+ "type": {
357
+ "text": "void"
358
+ }
359
+ },
360
+ "description": "Reconcile observers and the FIFO queue with the current direct children.\r\nCalled on connect and whenever the host's child list mutates."
361
+ },
362
+ {
363
+ "kind": "method",
364
+ "name": "#syncMarkerTemplates",
365
+ "privacy": "private",
366
+ "return": {
367
+ "type": {
368
+ "text": "void"
369
+ }
370
+ },
371
+ "description": "Reconcile per-template observers with the current marker templates."
372
+ },
373
+ {
374
+ "kind": "field",
375
+ "name": "#handleMarkerTemplateMutation",
376
+ "privacy": "private"
377
+ },
378
+ {
379
+ "kind": "method",
380
+ "name": "#syncAllMarkers",
381
+ "privacy": "private",
382
+ "return": {
383
+ "type": {
384
+ "text": "void"
385
+ }
386
+ },
387
+ "description": "Apply marker templates to every direct-child `<details>`'s `<summary>`."
388
+ },
389
+ {
390
+ "kind": "method",
391
+ "name": "#applyMarkersTo",
392
+ "privacy": "private",
393
+ "return": {
394
+ "type": {
395
+ "text": "void"
396
+ }
397
+ },
398
+ "parameters": [
399
+ {
400
+ "name": "summary",
401
+ "type": {
402
+ "text": "HTMLElement"
403
+ }
404
+ },
405
+ {
406
+ "name": "templates",
407
+ "type": {
408
+ "text": "HTMLTemplateElement[]"
409
+ }
410
+ }
411
+ ]
412
+ },
413
+ {
414
+ "kind": "method",
415
+ "name": "#markerTemplates",
416
+ "privacy": "private",
417
+ "return": {
418
+ "type": {
419
+ "text": "HTMLTemplateElement[]"
420
+ }
421
+ },
422
+ "description": "Direct-child `<template>` elements with the `summary-marker` attribute."
423
+ },
424
+ {
425
+ "kind": "method",
426
+ "name": "#directDetails",
427
+ "privacy": "private",
428
+ "return": {
429
+ "type": {
430
+ "text": "HTMLDetailsElement[]"
431
+ }
432
+ }
433
+ },
434
+ {
435
+ "kind": "field",
436
+ "name": "#handleChildListMutation",
437
+ "privacy": "private"
438
+ },
439
+ {
440
+ "kind": "field",
441
+ "name": "#handleToggle",
442
+ "privacy": "private"
443
+ },
444
+ {
445
+ "kind": "field",
446
+ "name": "#handleChildOpenMutation",
447
+ "privacy": "private"
448
+ },
449
+ {
450
+ "kind": "field",
451
+ "name": "#handleSummaryClick",
452
+ "privacy": "private",
453
+ "description": "Capture-phase click handler that suppresses the native toggle when a\r\n`<summary>` is clicked outside its marker(s) and the effective\r\n`toggle-on` mode is `\"marker\"`.\r\n\r\nResolution per `<details>`:\r\n- per-`<details>` `toggle-on` attribute (if `\"summary\"` or `\"marker\"`),\r\n else\r\n- the host's `toggle-on` property/attribute, else\r\n- `\"summary\"`.\r\n\r\nCarve-outs:\r\n- Keyboard activation (Enter/Space) produces a synthetic click with\r\n `event.detail === 0`; we never suppress those.\r\n- If the summary contains no `[tp-summary-marker]` element, fall back to\r\n summary-click toggle so the details cannot become un-toggleable."
454
+ },
455
+ {
456
+ "kind": "method",
457
+ "name": "#resolveToggleOn",
458
+ "privacy": "private",
459
+ "return": {
460
+ "type": {
461
+ "text": "\"summary\" | \"marker\""
462
+ }
463
+ },
464
+ "parameters": [
465
+ {
466
+ "name": "details",
467
+ "type": {
468
+ "text": "HTMLDetailsElement"
469
+ }
470
+ }
471
+ ]
472
+ },
473
+ {
474
+ "kind": "method",
475
+ "name": "#applyOpenState",
476
+ "privacy": "private",
477
+ "return": {
478
+ "type": {
479
+ "text": "void"
480
+ }
481
+ },
482
+ "parameters": [
483
+ {
484
+ "name": "child",
485
+ "type": {
486
+ "text": "HTMLDetailsElement"
487
+ }
488
+ }
489
+ ]
490
+ },
491
+ {
492
+ "kind": "method",
493
+ "name": "#enforceLimit",
494
+ "privacy": "private",
495
+ "return": {
496
+ "type": {
497
+ "text": "void"
498
+ }
499
+ }
500
+ }
501
+ ],
502
+ "events": [
503
+ {
504
+ "name": "tp-details-set-change",
505
+ "type": {
506
+ "text": "CustomEvent"
507
+ },
508
+ "description": "When the set of open children changes."
509
+ }
510
+ ],
511
+ "attributes": [
512
+ {
513
+ "name": "max-open-items",
514
+ "type": {
515
+ "text": "number"
516
+ },
517
+ "default": "0",
518
+ "description": "Maximum number of direct-child `<details>` allowed open at the same time.\r\n`0` (the default) means unlimited.",
519
+ "fieldName": "maxOpenItems"
520
+ },
521
+ {
522
+ "name": "toggle-on",
523
+ "type": {
524
+ "text": "\"summary\" | \"marker\""
525
+ },
526
+ "default": "\"summary\"",
527
+ "description": "Default trigger for toggling direct-child `<details>` elements:\r\n\r\n- `\"summary\"` (default): clicking anywhere on the `<summary>` toggles\r\n the details (native behavior).\r\n- `\"marker\"`: only clicks on (or inside) an element carrying the\r\n `tp-summary-marker` attribute toggle the details. If the summary has\r\n no marker, this falls back to summary toggle for that details so the\r\n details never becomes un-toggleable.\r\n\r\nPer-`<details>` `toggle-on` attribute overrides this set-level default.\r\nKeyboard activation (Enter/Space on a focused summary) is **never**\r\nsuppressed, regardless of mode.",
528
+ "fieldName": "toggleOn"
529
+ }
530
+ ],
531
+ "superclass": {
532
+ "name": "LitElement",
533
+ "package": "lit"
534
+ },
535
+ "tagName": "tp-details-set",
536
+ "customElement": true
537
+ }
538
+ ],
539
+ "exports": [
540
+ {
541
+ "kind": "js",
542
+ "name": "DetailsSetElement",
543
+ "declaration": {
544
+ "name": "DetailsSetElement",
545
+ "module": "src/details-set/details-set-element.ts"
546
+ }
547
+ },
548
+ {
549
+ "kind": "custom-element-definition",
550
+ "name": "tp-details-set",
551
+ "declaration": {
552
+ "name": "DetailsSetElement",
553
+ "module": "src/details-set/details-set-element.ts"
554
+ }
555
+ }
556
+ ]
557
+ },
558
+ {
559
+ "kind": "javascript-module",
560
+ "path": "src/drag-drop/drag-element.ts",
561
+ "declarations": [
562
+ {
563
+ "kind": "class",
564
+ "description": "A draggable element that can be used to initiate drag-and-drop operations.\nIt can contain child elements and supports drag handles.\nThe `replaceclone` attribute indicates whether the element should be replaced with a clone during\nthe drag operation.\nThe `draggingstrategy` attribute defines the drag behavior, such as 'move' or 'copyMove'.",
565
+ "name": "DragElement",
566
+ "members": [
567
+ {
568
+ "kind": "field",
569
+ "name": "TRANSPARENT_IMAGE",
570
+ "type": {
571
+ "text": "HTMLImageElement"
572
+ },
573
+ "privacy": "private",
574
+ "static": true,
575
+ "description": "A transparent image used as a drag image to prevent flickering during drag operations.\r\nThis image is used when the drag image is not set explicitly.\r\nIt is a 1x1 pixel transparent PNG."
576
+ },
577
+ {
578
+ "kind": "field",
579
+ "name": "GLOBAL_STYLE",
580
+ "type": {
581
+ "text": "HTMLStyleElement"
582
+ },
583
+ "privacy": "private",
584
+ "static": true,
585
+ "description": "A global style element used to define custom properties for drag-and-drop."
586
+ },
587
+ {
588
+ "kind": "field",
589
+ "name": "DRAG_DATA_OBSERVER",
590
+ "privacy": "private",
591
+ "static": true,
592
+ "default": "new MutationObserver(records => { for (const { attributeName, target } of records) { if (!attributeName?.startsWith('data-drag-')) continue; const element = <DragElement>target; element.dragData[attributeName.replace('data-drag-', '')] = element.getAttribute(attributeName)!; } })",
593
+ "description": "An observer for monitoring changes to drag-related attributes."
594
+ },
595
+ {
596
+ "kind": "field",
597
+ "name": "dragData",
598
+ "type": {
599
+ "text": "Record<string, string>"
600
+ },
601
+ "readonly": true,
602
+ "default": "{}",
603
+ "description": "A record of drag-related data attributes."
604
+ },
605
+ {
606
+ "kind": "field",
607
+ "name": "preDragData",
608
+ "type": {
609
+ "text": "object"
610
+ },
611
+ "readonly": true,
612
+ "default": "{ boundingRect: null! as DOMRect, dragStartEvent: null! as DragEvent, styles: { pointerEvents: '' } }",
613
+ "description": "Pre-drag data used to store the initial state of the element before dragging starts."
614
+ },
615
+ {
616
+ "kind": "field",
617
+ "name": "#acceptedDropzone",
618
+ "privacy": "private",
619
+ "type": {
620
+ "text": "WeakRef<DropZoneElement> | null"
621
+ },
622
+ "default": "null",
623
+ "description": "A weak reference to the currently accepted drop zone.\r\nThis is used to track which drop zone the element is currently accepted in."
624
+ },
625
+ {
626
+ "kind": "field",
627
+ "name": "#clone",
628
+ "privacy": "private",
629
+ "type": {
630
+ "text": "WeakRef<HTMLElement>"
631
+ },
632
+ "default": "null!",
633
+ "description": "A weak reference to the clone of the element created during dragging.\r\nThis is used to manage the clone's lifecycle and properties."
634
+ },
635
+ {
636
+ "kind": "field",
637
+ "name": "#handles",
638
+ "privacy": "private",
639
+ "default": "new Set<DragHandleElement>()",
640
+ "description": "A set of drag handles associated with the element."
641
+ },
642
+ {
643
+ "kind": "field",
644
+ "name": "clone",
645
+ "description": "Returns the clone of the element if it exists.\r\nThis is used to access the clone during drag operations.",
646
+ "readonly": true
647
+ },
648
+ {
649
+ "kind": "field",
650
+ "name": "name",
651
+ "type": {
652
+ "text": "string"
653
+ },
654
+ "description": "The name of the element, used for identification in drag-and-drop operations.\r\nThis helps the dropzones to accept or reject the drag based on the name.",
655
+ "attribute": "name"
656
+ },
657
+ {
658
+ "kind": "field",
659
+ "name": "draggingStrategy",
660
+ "type": {
661
+ "text": "'move' | 'copyMove'"
662
+ },
663
+ "default": "'move'",
664
+ "description": "The dragging strategy to use for the element.\r\nThis determines how the element is dragged (e.g., move or copy).",
665
+ "attribute": "draggingStrategy",
666
+ "reflects": true
667
+ },
668
+ {
669
+ "kind": "field",
670
+ "name": "dragGroup",
671
+ "type": {
672
+ "text": "string"
673
+ },
674
+ "description": "The group name for the drag element.\r\nThis is used to group elements together for drag-and-drop operations.\r\nElements with the same group name can interact with each other during drag-and-drop.\r\n\r\n!!! Not implemented yet !!!",
675
+ "attribute": "dragGroup"
676
+ },
677
+ {
678
+ "kind": "field",
679
+ "name": "replaceClone",
680
+ "type": {
681
+ "text": "boolean"
682
+ },
683
+ "description": "Indicates whether the element should replace its clone during drag operations.\r\nIf true , the original element is replaced with a clone during dragging.",
684
+ "attribute": "replaceClone"
685
+ },
686
+ {
687
+ "kind": "field",
688
+ "name": "dragging",
689
+ "type": {
690
+ "text": "boolean"
691
+ },
692
+ "default": "false",
693
+ "description": "Indicates whether the element is currently being dragged.",
694
+ "attribute": "dragging",
695
+ "reflects": true
696
+ },
697
+ {
698
+ "kind": "field",
699
+ "name": "dragend",
700
+ "type": {
701
+ "text": "boolean"
702
+ },
703
+ "default": "false",
704
+ "description": "Indicates whether the drag operation has ended.\r\nThis is used to manage the state of the element after dragging.",
705
+ "attribute": "dragend",
706
+ "reflects": true
707
+ },
708
+ {
709
+ "kind": "field",
710
+ "name": "draggedOver",
711
+ "type": {
712
+ "text": "string | null"
713
+ },
714
+ "default": "null",
715
+ "description": "The ID of the drop zone the element is currently over.",
716
+ "attribute": "draggedOver",
717
+ "reflects": true
718
+ },
719
+ {
720
+ "kind": "field",
721
+ "name": "dropAccepted",
722
+ "type": {
723
+ "text": "boolean"
724
+ },
725
+ "default": "false",
726
+ "description": "Indicates whether the element has been accepted by a drop zone.\r\nThis is used to manage the state of the element during drag-and-drop operations.",
727
+ "attribute": "dropAccepted",
728
+ "reflects": true
729
+ },
730
+ {
731
+ "kind": "field",
732
+ "name": "disabled",
733
+ "type": {
734
+ "text": "boolean"
735
+ },
736
+ "description": "Indicates whether the drag element is disabled.\r\nWhen disabled, the element cannot be dragged.",
737
+ "attribute": "disabled",
738
+ "reflects": true
739
+ },
740
+ {
741
+ "kind": "method",
742
+ "name": "[ACCEPT_DROP_PROP]",
743
+ "parameters": [
744
+ {
745
+ "name": "dropzone",
746
+ "type": {
747
+ "text": "WeakRef<DropZoneElement>"
748
+ },
749
+ "description": "The drop zone element being accepted."
750
+ },
751
+ {
752
+ "name": "rect",
753
+ "optional": true,
754
+ "type": {
755
+ "text": "DOMRect"
756
+ },
757
+ "description": "The bounding rectangle of the drop area."
758
+ }
759
+ ],
760
+ "description": "Accepts a drop zone and an optional rectangle for the drop area.",
761
+ "return": {
762
+ "type": {
763
+ "text": ""
764
+ }
765
+ }
766
+ },
767
+ {
768
+ "kind": "method",
769
+ "name": "[REGISTER_HANDLE_PROP]",
770
+ "parameters": [
771
+ {
772
+ "name": "handle",
773
+ "type": {
774
+ "text": "DragHandleElement"
775
+ },
776
+ "description": "The drag handle element to register."
777
+ }
778
+ ],
779
+ "description": "Registers a drag handle element."
780
+ },
781
+ {
782
+ "kind": "method",
783
+ "name": "[UNREGISTER_HANDLE_PROP]",
784
+ "parameters": [
785
+ {
786
+ "name": "handle",
787
+ "type": {
788
+ "text": "DragHandleElement"
789
+ },
790
+ "description": "The drag handle element to unregister."
791
+ }
792
+ ],
793
+ "description": "Unregisters a drag handle element."
794
+ },
795
+ {
796
+ "kind": "method",
797
+ "name": "#setUpDragDataAttrs",
798
+ "privacy": "private",
799
+ "description": "Sets up the drag data attributes observer to monitor changes to drag-related attributes.\r\nThis allows the element to transfer custom data during drag-and-drop operations."
800
+ },
801
+ {
802
+ "kind": "field",
803
+ "name": "#handleDragStart",
804
+ "privacy": "private",
805
+ "description": "Handles the drag start event.",
806
+ "parameters": [
807
+ {
808
+ "description": "The drag event.",
809
+ "name": "event"
810
+ }
811
+ ]
812
+ },
813
+ {
814
+ "kind": "field",
815
+ "name": "#handleDragEnd",
816
+ "privacy": "private",
817
+ "description": "Handles the drag end event.",
818
+ "parameters": [
819
+ {
820
+ "description": "The drag event.",
821
+ "name": "event"
822
+ }
823
+ ]
824
+ },
825
+ {
826
+ "kind": "field",
827
+ "name": "#handleDrag",
828
+ "privacy": "private",
829
+ "description": "Handles the drag event.\r\nThis updates the position of the element during dragging.",
830
+ "parameters": [
831
+ {
832
+ "description": "The drag event.",
833
+ "name": "event"
834
+ }
835
+ ]
836
+ },
837
+ {
838
+ "kind": "field",
839
+ "name": "#handleDropZoneEnter",
840
+ "privacy": "private",
841
+ "description": "Handles the drop zone enter event.\r\nThis updates the draggedOver property to indicate which drop zone the element is currently over.",
842
+ "parameters": [
843
+ {
844
+ "description": "The ThaDragEvent for the drop zone enter.",
845
+ "name": "event"
846
+ }
847
+ ]
848
+ },
849
+ {
850
+ "kind": "field",
851
+ "name": "#handleDropZoneLeave",
852
+ "privacy": "private",
853
+ "description": "Handles the drop zone leave event.\r\nThis clears the draggedOver property when the element leaves a drop zone.",
854
+ "parameters": [
855
+ {
856
+ "description": "The ThaDragEvent for the drop zone leave.",
857
+ "name": "event"
858
+ }
859
+ ]
860
+ },
861
+ {
862
+ "kind": "method",
863
+ "name": "#createClone",
864
+ "privacy": "private",
865
+ "description": "Creates a clone of the element for dragging.\r\nThis clone is used to visually represent the element during drag operations.",
866
+ "return": {
867
+ "type": {
868
+ "text": ""
869
+ }
870
+ }
871
+ },
872
+ {
873
+ "kind": "method",
874
+ "name": "#preparePreDragData",
875
+ "privacy": "private",
876
+ "parameters": [
877
+ {
878
+ "name": "event",
879
+ "type": {
880
+ "text": "DragEvent"
881
+ },
882
+ "description": "The drag event."
883
+ }
884
+ ],
885
+ "description": "Prepares the pre-drag data, including the bounding rectangle and styles.\r\nThis data is used to restore the element's state after dragging."
886
+ },
887
+ {
888
+ "kind": "method",
889
+ "name": "#prepareDraggingStyles",
890
+ "privacy": "private",
891
+ "description": "Prepares the styles for dragging, including the position and size of the element.\r\nThis is used to update the element's position during drag operations."
892
+ },
893
+ {
894
+ "kind": "method",
895
+ "name": "#preventDragOver",
896
+ "privacy": "private",
897
+ "parameters": [
898
+ {
899
+ "name": "event",
900
+ "type": {
901
+ "text": "DragEvent"
902
+ },
903
+ "description": "The drag event."
904
+ }
905
+ ],
906
+ "description": "Prevents the default dragover behavior to allow custom drag-and-drop handling."
907
+ },
908
+ {
909
+ "kind": "method",
910
+ "name": "#shouldHandleEvent",
911
+ "privacy": "private",
912
+ "return": {
913
+ "type": {
914
+ "text": ""
915
+ }
916
+ },
917
+ "parameters": [
918
+ {
919
+ "name": "event",
920
+ "type": {
921
+ "text": "DragEvent"
922
+ },
923
+ "description": "The drag event."
924
+ }
925
+ ],
926
+ "description": "Checks if the element should handle the drag event based on the target.\r\nIf there are no handles, it returns true to allow the event.\r\nIf there are handles, it checks if the event target is one of the handles."
927
+ }
928
+ ],
929
+ "attributes": [
930
+ {
931
+ "name": "name",
932
+ "type": {
933
+ "text": "string"
934
+ },
935
+ "description": "The name of the element, used for identification in drag-and-drop operations.\r\nThis helps the dropzones to accept or reject the drag based on the name.",
936
+ "fieldName": "name"
937
+ },
938
+ {
939
+ "name": "draggingStrategy",
940
+ "type": {
941
+ "text": "'move' | 'copyMove'"
942
+ },
943
+ "default": "'move'",
944
+ "description": "The dragging strategy to use for the element.\r\nThis determines how the element is dragged (e.g., move or copy).",
945
+ "fieldName": "draggingStrategy"
946
+ },
947
+ {
948
+ "name": "dragGroup",
949
+ "type": {
950
+ "text": "string"
951
+ },
952
+ "description": "The group name for the drag element.\r\nThis is used to group elements together for drag-and-drop operations.\r\nElements with the same group name can interact with each other during drag-and-drop.\r\n\r\n!!! Not implemented yet !!!",
953
+ "fieldName": "dragGroup"
954
+ },
955
+ {
956
+ "name": "replaceClone",
957
+ "type": {
958
+ "text": "boolean"
959
+ },
960
+ "description": "Indicates whether the element should replace its clone during drag operations.\r\nIf true , the original element is replaced with a clone during dragging.",
961
+ "fieldName": "replaceClone"
962
+ },
963
+ {
964
+ "name": "dragging",
965
+ "type": {
966
+ "text": "boolean"
967
+ },
968
+ "default": "false",
969
+ "description": "Indicates whether the element is currently being dragged.",
970
+ "fieldName": "dragging"
971
+ },
972
+ {
973
+ "name": "dragend",
974
+ "type": {
975
+ "text": "boolean"
976
+ },
977
+ "default": "false",
978
+ "description": "Indicates whether the drag operation has ended.\r\nThis is used to manage the state of the element after dragging.",
979
+ "fieldName": "dragend"
980
+ },
981
+ {
982
+ "name": "draggedOver",
983
+ "type": {
984
+ "text": "string | null"
985
+ },
986
+ "default": "null",
987
+ "description": "The ID of the drop zone the element is currently over.",
988
+ "fieldName": "draggedOver"
989
+ },
990
+ {
991
+ "name": "dropAccepted",
992
+ "type": {
993
+ "text": "boolean"
994
+ },
995
+ "default": "false",
996
+ "description": "Indicates whether the element has been accepted by a drop zone.\r\nThis is used to manage the state of the element during drag-and-drop operations.",
997
+ "fieldName": "dropAccepted"
998
+ },
999
+ {
1000
+ "name": "disabled",
1001
+ "type": {
1002
+ "text": "boolean"
1003
+ },
1004
+ "description": "Indicates whether the drag element is disabled.\r\nWhen disabled, the element cannot be dragged.",
1005
+ "fieldName": "disabled"
1006
+ }
1007
+ ],
1008
+ "superclass": {
1009
+ "name": "LitElement",
1010
+ "package": "lit"
1011
+ },
1012
+ "tagName": "tha-drag",
1013
+ "customElement": true
1014
+ }
1015
+ ],
1016
+ "exports": [
1017
+ {
1018
+ "kind": "js",
1019
+ "name": "DragElement",
1020
+ "declaration": {
1021
+ "name": "DragElement",
1022
+ "module": "src/drag-drop/drag-element.ts"
1023
+ }
1024
+ },
1025
+ {
1026
+ "kind": "custom-element-definition",
1027
+ "name": "tha-drag",
1028
+ "declaration": {
1029
+ "name": "DragElement",
1030
+ "module": "src/drag-drop/drag-element.ts"
1031
+ }
1032
+ }
1033
+ ]
1034
+ },
1035
+ {
1036
+ "kind": "javascript-module",
1037
+ "path": "src/drag-drop/drag-handle-element.ts",
1038
+ "declarations": [
1039
+ {
1040
+ "kind": "class",
1041
+ "description": "",
1042
+ "name": "DragHandleElement",
1043
+ "members": [
1044
+ {
1045
+ "kind": "field",
1046
+ "name": "#parent",
1047
+ "privacy": "private",
1048
+ "type": {
1049
+ "text": "DragElement | null"
1050
+ },
1051
+ "readonly": true
1052
+ }
1053
+ ],
1054
+ "superclass": {
1055
+ "name": "LitElement",
1056
+ "package": "lit"
1057
+ },
1058
+ "tagName": "tha-drag-handle",
1059
+ "customElement": true
1060
+ }
1061
+ ],
1062
+ "exports": [
1063
+ {
1064
+ "kind": "js",
1065
+ "name": "DragHandleElement",
1066
+ "declaration": {
1067
+ "name": "DragHandleElement",
1068
+ "module": "src/drag-drop/drag-handle-element.ts"
1069
+ }
1070
+ },
1071
+ {
1072
+ "kind": "custom-element-definition",
1073
+ "name": "tha-drag-handle",
1074
+ "declaration": {
1075
+ "name": "DragHandleElement",
1076
+ "module": "src/drag-drop/drag-handle-element.ts"
1077
+ }
1078
+ }
1079
+ ]
1080
+ },
1081
+ {
1082
+ "kind": "javascript-module",
1083
+ "path": "src/drag-drop/dropzone-element.ts",
1084
+ "declarations": [
1085
+ {
1086
+ "kind": "class",
1087
+ "description": "",
1088
+ "name": "DropZoneElement",
1089
+ "members": [
1090
+ {
1091
+ "kind": "field",
1092
+ "name": "#enterCount",
1093
+ "privacy": "private",
1094
+ "type": {
1095
+ "text": "number"
1096
+ },
1097
+ "default": "0"
1098
+ },
1099
+ {
1100
+ "kind": "field",
1101
+ "name": "accept",
1102
+ "type": {
1103
+ "text": "string[]"
1104
+ },
1105
+ "default": "[]",
1106
+ "attribute": "accept"
1107
+ },
1108
+ {
1109
+ "kind": "field",
1110
+ "name": "name",
1111
+ "type": {
1112
+ "text": "string"
1113
+ },
1114
+ "default": "''",
1115
+ "attribute": "name"
1116
+ },
1117
+ {
1118
+ "kind": "field",
1119
+ "name": "itemDragged",
1120
+ "type": {
1121
+ "text": "string | null"
1122
+ },
1123
+ "default": "null",
1124
+ "attribute": "itemDragged",
1125
+ "reflects": true
1126
+ },
1127
+ {
1128
+ "kind": "field",
1129
+ "name": "acceptableDrag",
1130
+ "type": {
1131
+ "text": "boolean"
1132
+ },
1133
+ "default": "false",
1134
+ "attribute": "acceptableDrag",
1135
+ "reflects": true
1136
+ },
1137
+ {
1138
+ "kind": "field",
1139
+ "name": "#handleGlobalDragStart",
1140
+ "privacy": "private"
1141
+ },
1142
+ {
1143
+ "kind": "field",
1144
+ "name": "#handleGlobalDragEnd",
1145
+ "privacy": "private"
1146
+ },
1147
+ {
1148
+ "kind": "field",
1149
+ "name": "#handleDragEnter",
1150
+ "privacy": "private"
1151
+ },
1152
+ {
1153
+ "kind": "field",
1154
+ "name": "#handleDragLeave",
1155
+ "privacy": "private"
1156
+ },
1157
+ {
1158
+ "kind": "field",
1159
+ "name": "#handleDragOver",
1160
+ "privacy": "private"
1161
+ },
1162
+ {
1163
+ "kind": "field",
1164
+ "name": "#handleDrop",
1165
+ "privacy": "private"
1166
+ },
1167
+ {
1168
+ "kind": "method",
1169
+ "name": "#isAcceptableDrag",
1170
+ "privacy": "private",
1171
+ "return": {
1172
+ "type": {
1173
+ "text": "boolean"
1174
+ }
1175
+ }
1176
+ },
1177
+ {
1178
+ "kind": "method",
1179
+ "name": "#dispatchEventWithCounter",
1180
+ "privacy": "private",
1181
+ "parameters": [
1182
+ {
1183
+ "name": "eventName",
1184
+ "type": {
1185
+ "text": "DropElementEventTypes"
1186
+ }
1187
+ },
1188
+ {
1189
+ "name": "counterEventName",
1190
+ "type": {
1191
+ "text": "DragElementEventTypes"
1192
+ }
1193
+ },
1194
+ {
1195
+ "name": "event",
1196
+ "type": {
1197
+ "text": "DragEvent"
1198
+ }
1199
+ }
1200
+ ]
1201
+ }
1202
+ ],
1203
+ "events": [
1204
+ {
1205
+ "name": "eventName",
1206
+ "type": {
1207
+ "text": "ThaDragEvent"
1208
+ }
1209
+ }
1210
+ ],
1211
+ "attributes": [
1212
+ {
1213
+ "name": "accept",
1214
+ "type": {
1215
+ "text": "string[]"
1216
+ },
1217
+ "default": "[]",
1218
+ "fieldName": "accept"
1219
+ },
1220
+ {
1221
+ "name": "name",
1222
+ "type": {
1223
+ "text": "string"
1224
+ },
1225
+ "default": "''",
1226
+ "fieldName": "name"
1227
+ },
1228
+ {
1229
+ "name": "itemDragged",
1230
+ "type": {
1231
+ "text": "string | null"
1232
+ },
1233
+ "default": "null",
1234
+ "fieldName": "itemDragged"
1235
+ },
1236
+ {
1237
+ "name": "acceptableDrag",
1238
+ "type": {
1239
+ "text": "boolean"
1240
+ },
1241
+ "default": "false",
1242
+ "fieldName": "acceptableDrag"
1243
+ }
1244
+ ],
1245
+ "superclass": {
1246
+ "name": "LitElement",
1247
+ "package": "lit"
1248
+ },
1249
+ "tagName": "tha-dropzone",
1250
+ "customElement": true
1251
+ }
1252
+ ],
1253
+ "exports": [
1254
+ {
1255
+ "kind": "js",
1256
+ "name": "DropZoneElement",
1257
+ "declaration": {
1258
+ "name": "DropZoneElement",
1259
+ "module": "src/drag-drop/dropzone-element.ts"
1260
+ }
1261
+ },
1262
+ {
1263
+ "kind": "custom-element-definition",
1264
+ "name": "tha-dropzone",
1265
+ "declaration": {
1266
+ "name": "DropZoneElement",
1267
+ "module": "src/drag-drop/dropzone-element.ts"
1268
+ }
1269
+ }
1270
+ ]
1271
+ },
1272
+ {
1273
+ "kind": "javascript-module",
1274
+ "path": "src/drag-drop/private-props.ts",
1275
+ "declarations": [
1276
+ {
1277
+ "kind": "variable",
1278
+ "name": "ACCEPT_DROP_PROP"
1279
+ },
1280
+ {
1281
+ "kind": "variable",
1282
+ "name": "REGISTER_HANDLE_PROP"
1283
+ },
1284
+ {
1285
+ "kind": "variable",
1286
+ "name": "UNREGISTER_HANDLE_PROP"
1287
+ }
1288
+ ],
1289
+ "exports": [
1290
+ {
1291
+ "kind": "js",
1292
+ "name": "ACCEPT_DROP_PROP",
1293
+ "declaration": {
1294
+ "name": "ACCEPT_DROP_PROP",
1295
+ "module": "src/drag-drop/private-props.ts"
1296
+ }
1297
+ },
1298
+ {
1299
+ "kind": "js",
1300
+ "name": "REGISTER_HANDLE_PROP",
1301
+ "declaration": {
1302
+ "name": "REGISTER_HANDLE_PROP",
1303
+ "module": "src/drag-drop/private-props.ts"
1304
+ }
1305
+ },
1306
+ {
1307
+ "kind": "js",
1308
+ "name": "UNREGISTER_HANDLE_PROP",
1309
+ "declaration": {
1310
+ "name": "UNREGISTER_HANDLE_PROP",
1311
+ "module": "src/drag-drop/private-props.ts"
1312
+ }
1313
+ }
1314
+ ]
1315
+ },
1316
+ {
1317
+ "kind": "javascript-module",
1318
+ "path": "src/drag-drop/tha-drag-event.ts",
1319
+ "declarations": [
1320
+ {
1321
+ "kind": "class",
1322
+ "description": "",
1323
+ "name": "ThaDragEvent",
1324
+ "members": [
1325
+ {
1326
+ "kind": "field",
1327
+ "name": "#DragElementEvents",
1328
+ "privacy": "private",
1329
+ "type": {
1330
+ "text": "DragElementEventTypes[]"
1331
+ },
1332
+ "static": true,
1333
+ "default": "['thadrag', 'thadragstart', 'thadragend', 'thadropzoneenter', 'thadropzoneleave', 'thadropzoneover', 'thadropped']"
1334
+ },
1335
+ {
1336
+ "kind": "field",
1337
+ "name": "#DropElementEvents",
1338
+ "privacy": "private",
1339
+ "type": {
1340
+ "text": "DropElementEventTypes[]"
1341
+ },
1342
+ "static": true,
1343
+ "default": "['thadrop', 'thadropend', 'thadragenter', 'thadragleave', 'thadragover']"
1344
+ },
1345
+ {
1346
+ "kind": "field",
1347
+ "name": "dragTarget",
1348
+ "type": {
1349
+ "text": "WeakRef<DragElement>"
1350
+ },
1351
+ "readonly": true,
1352
+ "default": "dragTarget"
1353
+ },
1354
+ {
1355
+ "kind": "field",
1356
+ "name": "dropzoneTarget",
1357
+ "type": {
1358
+ "text": "WeakRef<DropZoneElement> | undefined"
1359
+ },
1360
+ "readonly": true,
1361
+ "default": "dropzoneTarget"
1362
+ },
1363
+ {
1364
+ "kind": "field",
1365
+ "name": "#target",
1366
+ "privacy": "private",
1367
+ "readonly": true
1368
+ },
1369
+ {
1370
+ "kind": "field",
1371
+ "name": "name",
1372
+ "type": {
1373
+ "text": "string | undefined"
1374
+ },
1375
+ "readonly": true
1376
+ },
1377
+ {
1378
+ "kind": "field",
1379
+ "name": "dragData",
1380
+ "readonly": true
1381
+ },
1382
+ {
1383
+ "kind": "method",
1384
+ "name": "acceptDrop",
1385
+ "parameters": [
1386
+ {
1387
+ "name": "rect",
1388
+ "optional": true,
1389
+ "type": {
1390
+ "text": "DOMRect"
1391
+ }
1392
+ }
1393
+ ]
1394
+ }
1395
+ ],
1396
+ "superclass": {
1397
+ "name": "DragEvent",
1398
+ "module": "src/drag-drop/tha-drag-event.ts"
1399
+ }
1400
+ }
1401
+ ],
1402
+ "exports": [
1403
+ {
1404
+ "kind": "js",
1405
+ "name": "ThaDragEvent",
1406
+ "declaration": {
1407
+ "name": "ThaDragEvent",
1408
+ "module": "src/drag-drop/tha-drag-event.ts"
1409
+ }
1410
+ }
1411
+ ]
1412
+ },
1413
+ {
1414
+ "kind": "javascript-module",
1415
+ "path": "src/icon/icon-element.ts",
1416
+ "declarations": [
1417
+ {
1418
+ "kind": "class",
1419
+ "description": "A framework-agnostic icon element. Supports two families:\n\n- `material` (default) &mdash; Material Symbols glyphs via font ligatures.\n Pick icons from https://fonts.google.com/icons.\n- `simple-icons` &mdash; brand icons from https://simpleicons.org via\n `<tp-icon family=\"simple-icons\" slug=\"facebook\">`.\n- `thesvg` &mdash; multi-color brand icons from https://thesvg.org via\n `<tp-icon family=\"thesvg\" slug=\"google\" variant=\"mono\">`.\n\nRenders into the **light DOM** so the host's utility classes are styled by\nthe consumer's Tailwind v4 build.\n\n#### Examples\n\n```html\n<tp-icon>home</tp-icon>\n<tp-icon family=\"material\" variant=\"round\" filled>favorite</tp-icon>\n<tp-icon family=\"simple-icons\" slug=\"facebook\" style=\"color:#1877F2\"></tp-icon>\n```",
1420
+ "name": "IconElement",
1421
+ "members": [
1422
+ {
1423
+ "kind": "field",
1424
+ "name": "GLOBAL_STYLE",
1425
+ "type": {
1426
+ "text": "HTMLStyleElement"
1427
+ },
1428
+ "privacy": "private",
1429
+ "static": true
1430
+ },
1431
+ {
1432
+ "kind": "field",
1433
+ "name": "family",
1434
+ "type": {
1435
+ "text": "\"material\" | \"simple-icons\" | \"thesvg\""
1436
+ },
1437
+ "default": "\"material\"",
1438
+ "description": "Icon family.",
1439
+ "attribute": "family",
1440
+ "reflects": true
1441
+ },
1442
+ {
1443
+ "kind": "field",
1444
+ "name": "variant",
1445
+ "type": {
1446
+ "text": "string"
1447
+ },
1448
+ "default": "\"outlined\"",
1449
+ "description": "Icon variant. Per-family interpretation:\r\n- `material`: `\"outlined\" | \"round\" | \"sharp\"` (default `\"outlined\"`).\r\n- `thesvg`: any theSVG variant slug, e.g. `\"default\"`, `\"mono\"`,\r\n `\"wordmark\"`. Defaults to `\"default\"` when no `variant` attribute is set.",
1450
+ "attribute": "variant",
1451
+ "reflects": true
1452
+ },
1453
+ {
1454
+ "kind": "field",
1455
+ "name": "filled",
1456
+ "type": {
1457
+ "text": "boolean"
1458
+ },
1459
+ "default": "false",
1460
+ "description": "Whether the glyph should be filled (FILL axis = 1).",
1461
+ "attribute": "filled",
1462
+ "reflects": true
1463
+ },
1464
+ {
1465
+ "kind": "field",
1466
+ "name": "grade",
1467
+ "type": {
1468
+ "text": "number"
1469
+ },
1470
+ "default": "0",
1471
+ "description": "Material Symbols GRAD axis (-25..200).",
1472
+ "attribute": "grade",
1473
+ "reflects": true
1474
+ },
1475
+ {
1476
+ "kind": "field",
1477
+ "name": "weight",
1478
+ "type": {
1479
+ "text": "number"
1480
+ },
1481
+ "default": "400",
1482
+ "description": "Material Symbols wght axis (100..700).",
1483
+ "attribute": "weight",
1484
+ "reflects": true
1485
+ },
1486
+ {
1487
+ "kind": "field",
1488
+ "name": "opticalSize",
1489
+ "type": {
1490
+ "text": "number"
1491
+ },
1492
+ "default": "24",
1493
+ "description": "Material Symbols opsz axis (20..48). Reflects as `optical-size` attribute.",
1494
+ "attribute": "optical-size",
1495
+ "reflects": true
1496
+ },
1497
+ {
1498
+ "kind": "field",
1499
+ "name": "slug",
1500
+ "type": {
1501
+ "text": "string | undefined"
1502
+ },
1503
+ "description": "Slug for `simple-icons` and `thesvg` families.",
1504
+ "attribute": "slug",
1505
+ "reflects": true
1506
+ },
1507
+ {
1508
+ "kind": "field",
1509
+ "name": "loading",
1510
+ "type": {
1511
+ "text": "boolean"
1512
+ },
1513
+ "default": "false",
1514
+ "description": "Reflected while a remote icon (Simple Icons / theSVG) is being fetched.",
1515
+ "attribute": "loading",
1516
+ "reflects": true
1517
+ },
1518
+ {
1519
+ "kind": "field",
1520
+ "name": "errored",
1521
+ "type": {
1522
+ "text": "boolean"
1523
+ },
1524
+ "default": "false",
1525
+ "description": "Reflected when the most recent remote-icon fetch failed.",
1526
+ "attribute": "errored",
1527
+ "reflects": true
1528
+ },
1529
+ {
1530
+ "kind": "field",
1531
+ "name": "#requestToken",
1532
+ "privacy": "private",
1533
+ "type": {
1534
+ "text": "symbol | null"
1535
+ },
1536
+ "default": "null"
1537
+ },
1538
+ {
1539
+ "kind": "field",
1540
+ "name": "#injected",
1541
+ "privacy": "private",
1542
+ "type": {
1543
+ "text": "SVGSVGElement | null"
1544
+ },
1545
+ "default": "null"
1546
+ },
1547
+ {
1548
+ "kind": "method",
1549
+ "name": "#theSvgVariant",
1550
+ "privacy": "private",
1551
+ "return": {
1552
+ "type": {
1553
+ "text": "string"
1554
+ }
1555
+ }
1556
+ },
1557
+ {
1558
+ "kind": "method",
1559
+ "name": "#renderSimpleIcon",
1560
+ "privacy": "private",
1561
+ "return": {
1562
+ "type": {
1563
+ "text": "Promise<void>"
1564
+ }
1565
+ },
1566
+ "parameters": [
1567
+ {
1568
+ "name": "slug",
1569
+ "type": {
1570
+ "text": "string"
1571
+ }
1572
+ }
1573
+ ]
1574
+ },
1575
+ {
1576
+ "kind": "method",
1577
+ "name": "#renderTheSvg",
1578
+ "privacy": "private",
1579
+ "return": {
1580
+ "type": {
1581
+ "text": "Promise<void>"
1582
+ }
1583
+ },
1584
+ "parameters": [
1585
+ {
1586
+ "name": "slug",
1587
+ "type": {
1588
+ "text": "string"
1589
+ }
1590
+ },
1591
+ {
1592
+ "name": "variant",
1593
+ "type": {
1594
+ "text": "string"
1595
+ }
1596
+ }
1597
+ ]
1598
+ },
1599
+ {
1600
+ "kind": "method",
1601
+ "name": "#clearRemoteIcon",
1602
+ "privacy": "private",
1603
+ "return": {
1604
+ "type": {
1605
+ "text": "void"
1606
+ }
1607
+ }
1608
+ },
1609
+ {
1610
+ "kind": "method",
1611
+ "name": "#removeInjected",
1612
+ "privacy": "private",
1613
+ "return": {
1614
+ "type": {
1615
+ "text": "void"
1616
+ }
1617
+ }
1618
+ }
1619
+ ],
1620
+ "events": [
1621
+ {
1622
+ "name": "tp-icon-load",
1623
+ "type": {
1624
+ "text": "CustomEvent"
1625
+ }
1626
+ },
1627
+ {
1628
+ "name": "tp-icon-error",
1629
+ "type": {
1630
+ "text": "CustomEvent"
1631
+ }
1632
+ }
1633
+ ],
1634
+ "attributes": [
1635
+ {
1636
+ "name": "family",
1637
+ "type": {
1638
+ "text": "\"material\" | \"simple-icons\" | \"thesvg\""
1639
+ },
1640
+ "default": "\"material\"",
1641
+ "description": "Icon family.",
1642
+ "fieldName": "family"
1643
+ },
1644
+ {
1645
+ "name": "variant",
1646
+ "type": {
1647
+ "text": "string"
1648
+ },
1649
+ "default": "\"outlined\"",
1650
+ "description": "Icon variant. Per-family interpretation:\r\n- `material`: `\"outlined\" | \"round\" | \"sharp\"` (default `\"outlined\"`).\r\n- `thesvg`: any theSVG variant slug, e.g. `\"default\"`, `\"mono\"`,\r\n `\"wordmark\"`. Defaults to `\"default\"` when no `variant` attribute is set.",
1651
+ "fieldName": "variant"
1652
+ },
1653
+ {
1654
+ "name": "filled",
1655
+ "type": {
1656
+ "text": "boolean"
1657
+ },
1658
+ "default": "false",
1659
+ "description": "Whether the glyph should be filled (FILL axis = 1).",
1660
+ "fieldName": "filled"
1661
+ },
1662
+ {
1663
+ "name": "grade",
1664
+ "type": {
1665
+ "text": "number"
1666
+ },
1667
+ "default": "0",
1668
+ "description": "Material Symbols GRAD axis (-25..200).",
1669
+ "fieldName": "grade"
1670
+ },
1671
+ {
1672
+ "name": "weight",
1673
+ "type": {
1674
+ "text": "number"
1675
+ },
1676
+ "default": "400",
1677
+ "description": "Material Symbols wght axis (100..700).",
1678
+ "fieldName": "weight"
1679
+ },
1680
+ {
1681
+ "name": "optical-size",
1682
+ "type": {
1683
+ "text": "number"
1684
+ },
1685
+ "default": "24",
1686
+ "description": "Material Symbols opsz axis (20..48). Reflects as `optical-size` attribute.",
1687
+ "fieldName": "opticalSize"
1688
+ },
1689
+ {
1690
+ "name": "slug",
1691
+ "type": {
1692
+ "text": "string | undefined"
1693
+ },
1694
+ "description": "Slug for `simple-icons` and `thesvg` families.",
1695
+ "fieldName": "slug"
1696
+ },
1697
+ {
1698
+ "name": "loading",
1699
+ "type": {
1700
+ "text": "boolean"
1701
+ },
1702
+ "default": "false",
1703
+ "description": "Reflected while a remote icon (Simple Icons / theSVG) is being fetched.",
1704
+ "fieldName": "loading"
1705
+ },
1706
+ {
1707
+ "name": "errored",
1708
+ "type": {
1709
+ "text": "boolean"
1710
+ },
1711
+ "default": "false",
1712
+ "description": "Reflected when the most recent remote-icon fetch failed.",
1713
+ "fieldName": "errored"
1714
+ }
1715
+ ],
1716
+ "superclass": {
1717
+ "name": "LitElement",
1718
+ "package": "lit"
1719
+ },
1720
+ "tagName": "tp-icon",
1721
+ "customElement": true
1722
+ }
1723
+ ],
1724
+ "exports": [
1725
+ {
1726
+ "kind": "js",
1727
+ "name": "IconElement",
1728
+ "declaration": {
1729
+ "name": "IconElement",
1730
+ "module": "src/icon/icon-element.ts"
1731
+ }
1732
+ },
1733
+ {
1734
+ "kind": "custom-element-definition",
1735
+ "name": "tp-icon",
1736
+ "declaration": {
1737
+ "name": "IconElement",
1738
+ "module": "src/icon/icon-element.ts"
1739
+ }
1740
+ }
1741
+ ]
1742
+ },
1743
+ {
1744
+ "kind": "javascript-module",
1745
+ "path": "src/icon/simple-icons-sprite.ts",
1746
+ "declarations": [
1747
+ {
1748
+ "kind": "function",
1749
+ "name": "getSimpleIconSymbolId",
1750
+ "return": {
1751
+ "type": {
1752
+ "text": "string"
1753
+ }
1754
+ },
1755
+ "parameters": [
1756
+ {
1757
+ "name": "slug",
1758
+ "type": {
1759
+ "text": "string"
1760
+ }
1761
+ }
1762
+ ],
1763
+ "description": "The DOM id used for the `<symbol>` corresponding to a Simple Icons slug.\r\nExposed so `<tp-icon>` and tests can build matching `<use href>` references."
1764
+ },
1765
+ {
1766
+ "kind": "function",
1767
+ "name": "setSimpleIconsBaseUrl",
1768
+ "return": {
1769
+ "type": {
1770
+ "text": "void"
1771
+ }
1772
+ },
1773
+ "parameters": [
1774
+ {
1775
+ "name": "url",
1776
+ "type": {
1777
+ "text": "string"
1778
+ }
1779
+ }
1780
+ ],
1781
+ "description": "Override the CDN base URL used by the loader. Useful for self-hosting,\r\noffline development, or pointing at a regional mirror. Trailing slashes\r\nare stripped."
1782
+ },
1783
+ {
1784
+ "kind": "function",
1785
+ "name": "clearSimpleIconsCache",
1786
+ "return": {
1787
+ "type": {
1788
+ "text": "void"
1789
+ }
1790
+ },
1791
+ "description": "Drop every cached symbol and remove the sprite from the DOM. Intended for\r\ntest isolation; production code rarely needs to call this."
1792
+ },
1793
+ {
1794
+ "kind": "function",
1795
+ "name": "loadSimpleIcon",
1796
+ "return": {
1797
+ "type": {
1798
+ "text": "Promise<SimpleIconMeta>"
1799
+ }
1800
+ },
1801
+ "parameters": [
1802
+ {
1803
+ "name": "slug",
1804
+ "type": {
1805
+ "text": "string"
1806
+ }
1807
+ }
1808
+ ],
1809
+ "description": "Ensure a `<symbol id=\"tp-si-${slug}\">` exists in the global sprite. Returns\r\na promise that resolves once the symbol is in the DOM (or immediately if\r\nit was already loaded). Safe to call repeatedly with the same slug.\r\n\r\nThrows synchronously for slugs that don't match the Simple Icons slug\r\ngrammar (`/^[a-z0-9.-]+$/`)."
1810
+ }
1811
+ ],
1812
+ "exports": [
1813
+ {
1814
+ "kind": "js",
1815
+ "name": "getSimpleIconSymbolId",
1816
+ "declaration": {
1817
+ "name": "getSimpleIconSymbolId",
1818
+ "module": "src/icon/simple-icons-sprite.ts"
1819
+ }
1820
+ },
1821
+ {
1822
+ "kind": "js",
1823
+ "name": "setSimpleIconsBaseUrl",
1824
+ "declaration": {
1825
+ "name": "setSimpleIconsBaseUrl",
1826
+ "module": "src/icon/simple-icons-sprite.ts"
1827
+ }
1828
+ },
1829
+ {
1830
+ "kind": "js",
1831
+ "name": "clearSimpleIconsCache",
1832
+ "declaration": {
1833
+ "name": "clearSimpleIconsCache",
1834
+ "module": "src/icon/simple-icons-sprite.ts"
1835
+ }
1836
+ },
1837
+ {
1838
+ "kind": "js",
1839
+ "name": "loadSimpleIcon",
1840
+ "declaration": {
1841
+ "name": "loadSimpleIcon",
1842
+ "module": "src/icon/simple-icons-sprite.ts"
1843
+ }
1844
+ }
1845
+ ]
1846
+ },
1847
+ {
1848
+ "kind": "javascript-module",
1849
+ "path": "src/icon/thesvg-sprite.ts",
1850
+ "declarations": [
1851
+ {
1852
+ "kind": "function",
1853
+ "name": "getTheSvgSymbolId",
1854
+ "return": {
1855
+ "type": {
1856
+ "text": "string"
1857
+ }
1858
+ },
1859
+ "parameters": [
1860
+ {
1861
+ "name": "slug",
1862
+ "type": {
1863
+ "text": "string"
1864
+ }
1865
+ },
1866
+ {
1867
+ "name": "variant",
1868
+ "default": "\"default\"",
1869
+ "type": {
1870
+ "text": "string"
1871
+ }
1872
+ }
1873
+ ],
1874
+ "description": "The DOM id used for the `<symbol>` corresponding to a given theSVG\r\n`(slug, variant)` pair. Exposed so `<tp-icon>` and tests can build matching\r\n`<use href>` references."
1875
+ },
1876
+ {
1877
+ "kind": "function",
1878
+ "name": "setTheSvgBaseUrl",
1879
+ "return": {
1880
+ "type": {
1881
+ "text": "void"
1882
+ }
1883
+ },
1884
+ "parameters": [
1885
+ {
1886
+ "name": "url",
1887
+ "type": {
1888
+ "text": "string"
1889
+ }
1890
+ }
1891
+ ],
1892
+ "description": "Override the CDN base URL used by the loader. Useful for self-hosting,\r\noffline development, or pointing at the canonical site\r\n(`https://thesvg.org/icons`). Trailing slashes are stripped."
1893
+ },
1894
+ {
1895
+ "kind": "function",
1896
+ "name": "clearTheSvgCache",
1897
+ "return": {
1898
+ "type": {
1899
+ "text": "void"
1900
+ }
1901
+ },
1902
+ "description": "Drop every cached symbol and remove the sprite from the DOM. Intended for\r\ntest isolation; production code rarely needs to call this."
1903
+ },
1904
+ {
1905
+ "kind": "function",
1906
+ "name": "listLoadedTheSvgVariants",
1907
+ "return": {
1908
+ "type": {
1909
+ "text": "string[]"
1910
+ }
1911
+ },
1912
+ "parameters": [
1913
+ {
1914
+ "name": "slug",
1915
+ "type": {
1916
+ "text": "string"
1917
+ }
1918
+ }
1919
+ ],
1920
+ "description": "Inspect which variants of `slug` are currently materialised in the sprite.\r\nReads from the DOM only &mdash; does not hit the network and does not list\r\nvariants that exist on the CDN but haven't been requested yet."
1921
+ },
1922
+ {
1923
+ "kind": "function",
1924
+ "name": "loadTheSvgIcon",
1925
+ "return": {
1926
+ "type": {
1927
+ "text": "Promise<TheSvgMeta>"
1928
+ }
1929
+ },
1930
+ "parameters": [
1931
+ {
1932
+ "name": "slug",
1933
+ "type": {
1934
+ "text": "string"
1935
+ }
1936
+ },
1937
+ {
1938
+ "name": "variant",
1939
+ "default": "\"default\"",
1940
+ "type": {
1941
+ "text": "string"
1942
+ }
1943
+ }
1944
+ ],
1945
+ "description": "Ensure a `<symbol id=\"tp-thesvg-${slug}-${variant}\">` exists in the global\r\nsprite. Returns a promise that resolves once the symbol is in the DOM (or\r\nimmediately if it was already loaded). Safe to call repeatedly with the\r\nsame `(slug, variant)` pair.\r\n\r\nThrows synchronously when either argument fails its whitelist\r\n(`slug`: `/^[a-z0-9.-]+$/`, `variant`: `/^[a-z0-9-]+$/`)."
1946
+ }
1947
+ ],
1948
+ "exports": [
1949
+ {
1950
+ "kind": "js",
1951
+ "name": "getTheSvgSymbolId",
1952
+ "declaration": {
1953
+ "name": "getTheSvgSymbolId",
1954
+ "module": "src/icon/thesvg-sprite.ts"
1955
+ }
1956
+ },
1957
+ {
1958
+ "kind": "js",
1959
+ "name": "setTheSvgBaseUrl",
1960
+ "declaration": {
1961
+ "name": "setTheSvgBaseUrl",
1962
+ "module": "src/icon/thesvg-sprite.ts"
1963
+ }
1964
+ },
1965
+ {
1966
+ "kind": "js",
1967
+ "name": "clearTheSvgCache",
1968
+ "declaration": {
1969
+ "name": "clearTheSvgCache",
1970
+ "module": "src/icon/thesvg-sprite.ts"
1971
+ }
1972
+ },
1973
+ {
1974
+ "kind": "js",
1975
+ "name": "listLoadedTheSvgVariants",
1976
+ "declaration": {
1977
+ "name": "listLoadedTheSvgVariants",
1978
+ "module": "src/icon/thesvg-sprite.ts"
1979
+ }
1980
+ },
1981
+ {
1982
+ "kind": "js",
1983
+ "name": "loadTheSvgIcon",
1984
+ "declaration": {
1985
+ "name": "loadTheSvgIcon",
1986
+ "module": "src/icon/thesvg-sprite.ts"
1987
+ }
1988
+ }
1989
+ ]
1990
+ },
1991
+ {
1992
+ "kind": "javascript-module",
1993
+ "path": "src/popover/popover-element.ts",
1994
+ "declarations": [
1995
+ {
1996
+ "kind": "class",
1997
+ "description": "A framework-agnostic popover element built on top of the native\nPopover API and CSS Anchor Positioning.\n\nThe element automatically receives the native `popover` attribute\n(`auto` by default; configurable via the `mode` attribute), resolves\nits anchor target from the `target` querySelector string (falling\nback to its `parentElement` if the attribute is missing or fails to\nresolve), and is positioned **entirely in CSS** via `anchor()` and\na `translate` of percentage values driven by the parsed `position`\nattribute.\n\nNo JavaScript is involved in placement &mdash; the four data-attrs\n`data-pi`, `data-ti`, `data-pb`, `data-tb` map onto pre-baked CSS\nrules in a singleton stylesheet.\n\n#### Examples\n\n**Basic usage with a parent anchor**\n\n```html\n<button>Anchor</button>\n<div>\n <tp-popover position=\"center to center / bottom to top\">\n I appear above my parent.\n </tp-popover>\n</div>\n```\n\n**Querying the anchor target**\n\n```html\n<button id=\"trigger\">Click me</button>\n<tp-popover target=\"#trigger\" trigger=\"click\"\n position=\"start to start / top to bottom\">\n Popover content.\n</tp-popover>\n```\n\n**Fallback positions**\n\nThe popover automatically flips off-axis when there is no room for\nits primary placement, via the default\n`position-try-fallbacks: flip-block, flip-inline, flip-block flip-inline`.\nOverride on a per-popover basis with plain CSS:\n```css\ntp-popover.no-flip { position-try-fallbacks: none; }\n```",
1998
+ "name": "PopoverElement",
1999
+ "members": [
2000
+ {
2001
+ "kind": "field",
2002
+ "name": "mode",
2003
+ "type": {
2004
+ "text": "\"auto\" | \"manual\""
2005
+ },
2006
+ "default": "\"auto\"",
2007
+ "description": "Mirrored to the native `popover` attribute.",
2008
+ "attribute": "mode",
2009
+ "reflects": true
2010
+ },
2011
+ {
2012
+ "kind": "field",
2013
+ "name": "target",
2014
+ "type": {
2015
+ "text": "string | null"
2016
+ },
2017
+ "default": "null",
2018
+ "description": "CSS query selector resolved against `document`.",
2019
+ "attribute": "target",
2020
+ "reflects": true
2021
+ },
2022
+ {
2023
+ "kind": "field",
2024
+ "name": "position",
2025
+ "type": {
2026
+ "text": "string | null"
2027
+ },
2028
+ "default": "null",
2029
+ "description": "Placement spec — see class docs.",
2030
+ "attribute": "position",
2031
+ "reflects": true
2032
+ },
2033
+ {
2034
+ "kind": "field",
2035
+ "name": "trigger",
2036
+ "type": {
2037
+ "text": "\"manual\" | \"click\" | \"hover\""
2038
+ },
2039
+ "default": "\"click\"",
2040
+ "description": "How the resolved target opens the popover.",
2041
+ "attribute": "trigger",
2042
+ "reflects": true
2043
+ },
2044
+ {
2045
+ "kind": "field",
2046
+ "name": "#anchorId",
2047
+ "privacy": "private",
2048
+ "readonly": true,
2049
+ "description": "Per-instance anchor id (without the leading `--`)."
2050
+ },
2051
+ {
2052
+ "kind": "field",
2053
+ "name": "#anchorEl",
2054
+ "privacy": "private",
2055
+ "type": {
2056
+ "text": "HTMLElement | null"
2057
+ },
2058
+ "default": "null",
2059
+ "description": "Currently resolved anchor element (if any)."
2060
+ },
2061
+ {
2062
+ "kind": "field",
2063
+ "name": "anchorElement",
2064
+ "type": {
2065
+ "text": "HTMLElement | null"
2066
+ },
2067
+ "description": "The currently-resolved anchor element.",
2068
+ "readonly": true
2069
+ },
2070
+ {
2071
+ "kind": "field",
2072
+ "name": "anchorName",
2073
+ "type": {
2074
+ "text": "string"
2075
+ },
2076
+ "description": "Custom-property name (with leading `--`) bound on the anchor.",
2077
+ "readonly": true
2078
+ },
2079
+ {
2080
+ "kind": "field",
2081
+ "name": "#anchorNameSet",
2082
+ "privacy": "private",
2083
+ "type": {
2084
+ "text": "boolean"
2085
+ },
2086
+ "default": "false",
2087
+ "description": "Whether we set `anchor-name` on the current anchor (so we clean up)."
2088
+ },
2089
+ {
2090
+ "kind": "field",
2091
+ "name": "#triggerCleanups",
2092
+ "privacy": "private",
2093
+ "type": {
2094
+ "text": "Array<() => void>"
2095
+ },
2096
+ "default": "[]",
2097
+ "description": "Bound trigger listener cleanups for the current anchor."
2098
+ },
2099
+ {
2100
+ "kind": "method",
2101
+ "name": "#syncMode",
2102
+ "privacy": "private",
2103
+ "return": {
2104
+ "type": {
2105
+ "text": "void"
2106
+ }
2107
+ }
2108
+ },
2109
+ {
2110
+ "kind": "method",
2111
+ "name": "#resolveTarget",
2112
+ "privacy": "private",
2113
+ "return": {
2114
+ "type": {
2115
+ "text": "HTMLElement | null"
2116
+ }
2117
+ }
2118
+ },
2119
+ {
2120
+ "kind": "method",
2121
+ "name": "#syncAnchor",
2122
+ "privacy": "private",
2123
+ "return": {
2124
+ "type": {
2125
+ "text": "void"
2126
+ }
2127
+ }
2128
+ },
2129
+ {
2130
+ "kind": "method",
2131
+ "name": "#applyAnchorTo",
2132
+ "privacy": "private",
2133
+ "return": {
2134
+ "type": {
2135
+ "text": "void"
2136
+ }
2137
+ },
2138
+ "parameters": [
2139
+ {
2140
+ "name": "el",
2141
+ "type": {
2142
+ "text": "HTMLElement"
2143
+ }
2144
+ }
2145
+ ]
2146
+ },
2147
+ {
2148
+ "kind": "method",
2149
+ "name": "#releaseAnchor",
2150
+ "privacy": "private",
2151
+ "return": {
2152
+ "type": {
2153
+ "text": "void"
2154
+ }
2155
+ }
2156
+ },
2157
+ {
2158
+ "kind": "method",
2159
+ "name": "#syncPosition",
2160
+ "privacy": "private",
2161
+ "return": {
2162
+ "type": {
2163
+ "text": "void"
2164
+ }
2165
+ }
2166
+ },
2167
+ {
2168
+ "kind": "method",
2169
+ "name": "#clearTrigger",
2170
+ "privacy": "private",
2171
+ "return": {
2172
+ "type": {
2173
+ "text": "void"
2174
+ }
2175
+ }
2176
+ },
2177
+ {
2178
+ "kind": "method",
2179
+ "name": "#syncTrigger",
2180
+ "privacy": "private",
2181
+ "return": {
2182
+ "type": {
2183
+ "text": "void"
2184
+ }
2185
+ }
2186
+ }
2187
+ ],
2188
+ "attributes": [
2189
+ {
2190
+ "name": "mode",
2191
+ "type": {
2192
+ "text": "\"auto\" | \"manual\""
2193
+ },
2194
+ "default": "\"auto\"",
2195
+ "description": "Mirrored to the native `popover` attribute.",
2196
+ "fieldName": "mode"
2197
+ },
2198
+ {
2199
+ "name": "target",
2200
+ "type": {
2201
+ "text": "string | null"
2202
+ },
2203
+ "default": "null",
2204
+ "description": "CSS query selector resolved against `document`.",
2205
+ "fieldName": "target"
2206
+ },
2207
+ {
2208
+ "name": "position",
2209
+ "type": {
2210
+ "text": "string | null"
2211
+ },
2212
+ "default": "null",
2213
+ "description": "Placement spec — see class docs.",
2214
+ "fieldName": "position"
2215
+ },
2216
+ {
2217
+ "name": "trigger",
2218
+ "type": {
2219
+ "text": "\"manual\" | \"click\" | \"hover\""
2220
+ },
2221
+ "default": "\"click\"",
2222
+ "description": "How the resolved target opens the popover.",
2223
+ "fieldName": "trigger"
2224
+ }
2225
+ ],
2226
+ "superclass": {
2227
+ "name": "LitElement",
2228
+ "package": "lit"
2229
+ },
2230
+ "tagName": "tp-popover",
2231
+ "customElement": true
2232
+ }
2233
+ ],
2234
+ "exports": [
2235
+ {
2236
+ "kind": "js",
2237
+ "name": "PopoverElement",
2238
+ "declaration": {
2239
+ "name": "PopoverElement",
2240
+ "module": "src/popover/popover-element.ts"
2241
+ }
2242
+ },
2243
+ {
2244
+ "kind": "custom-element-definition",
2245
+ "name": "tp-popover",
2246
+ "declaration": {
2247
+ "name": "PopoverElement",
2248
+ "module": "src/popover/popover-element.ts"
2249
+ }
2250
+ }
2251
+ ]
2252
+ },
2253
+ {
2254
+ "kind": "javascript-module",
2255
+ "path": "src/popover/position.ts",
2256
+ "declarations": [
2257
+ {
2258
+ "kind": "variable",
2259
+ "name": "DEFAULT_POSITION",
2260
+ "type": {
2261
+ "text": "ParsedPosition"
2262
+ },
2263
+ "default": "{ popInline: \"center\", targetInline: \"center\", popBlock: \"bottom\", targetBlock: \"top\", }"
2264
+ },
2265
+ {
2266
+ "kind": "function",
2267
+ "name": "parsePosition",
2268
+ "return": {
2269
+ "type": {
2270
+ "text": "ParsedPosition | null"
2271
+ }
2272
+ },
2273
+ "parameters": [
2274
+ {
2275
+ "name": "raw",
2276
+ "type": {
2277
+ "text": "string | null | undefined"
2278
+ }
2279
+ }
2280
+ ],
2281
+ "description": "Parse a `position` attribute value. Supported forms:\r\n\r\n- Full: `\"<pop-inline> to <target-inline> / <pop-block> to <target-block>\"`\r\n- Two-keyword: `\"<inline> / <block>\"` (each half may also be the full\r\n `\"a to b\"` form). E.g. `\"center / top\"` → `\"center to center / bottom to top\"`.\r\n- Single axis: one half only (no `/`) — either `\"<a> to <b>\"` or a single\r\n keyword. The other axis defaults to its centered/middle form. E.g.\r\n `\"top to bottom\"` → `\"center to center / top to bottom\"`,\r\n `\"start to center\"` → `\"start to center / middle to middle\"`,\r\n `\"start\"` → `\"end to start / middle to middle\"`.\r\n\r\nReturns `null` for invalid input so callers can warn and fall back."
2282
+ }
2283
+ ],
2284
+ "exports": [
2285
+ {
2286
+ "kind": "js",
2287
+ "name": "DEFAULT_POSITION",
2288
+ "declaration": {
2289
+ "name": "DEFAULT_POSITION",
2290
+ "module": "src/popover/position.ts"
2291
+ }
2292
+ },
2293
+ {
2294
+ "kind": "js",
2295
+ "name": "parsePosition",
2296
+ "declaration": {
2297
+ "name": "parsePosition",
2298
+ "module": "src/popover/position.ts"
2299
+ }
2300
+ }
2301
+ ]
2302
+ },
2303
+ {
2304
+ "kind": "javascript-module",
2305
+ "path": "src/router/history-managed.ts",
2306
+ "declarations": [
2307
+ {
2308
+ "kind": "variable",
2309
+ "name": "HISTORY",
2310
+ "description": "Symbol for accessing the resolved history instance."
2311
+ },
2312
+ {
2313
+ "kind": "mixin",
2314
+ "description": "Mixin that adds hierarchical history management to Lit elements.\n\nProvides reactive history resolution: own → parent → global",
2315
+ "name": "HistoryManaged",
2316
+ "members": [
2317
+ {
2318
+ "kind": "field",
2319
+ "name": "history",
2320
+ "type": {
2321
+ "text": "HistoryType | undefined"
2322
+ },
2323
+ "default": "undefined",
2324
+ "description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
2325
+ "attribute": "history"
2326
+ },
2327
+ {
2328
+ "kind": "field",
2329
+ "name": "#ownHistoryType",
2330
+ "privacy": "private",
2331
+ "description": "Signal for own history type"
2332
+ },
2333
+ {
2334
+ "kind": "field",
2335
+ "name": "#parentHistoryType",
2336
+ "privacy": "private",
2337
+ "description": "Computed signal for parent history type"
2338
+ },
2339
+ {
2340
+ "kind": "field",
2341
+ "name": "[HISTORY_TYPE]",
2342
+ "description": "Resolved history type: own → parent → global"
2343
+ },
2344
+ {
2345
+ "kind": "field",
2346
+ "name": "[HISTORY]",
2347
+ "description": "Resolved history instance: own → parent → global"
2348
+ }
2349
+ ],
2350
+ "attributes": [
2351
+ {
2352
+ "name": "history",
2353
+ "type": {
2354
+ "text": "HistoryType | undefined"
2355
+ },
2356
+ "default": "undefined",
2357
+ "description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
2358
+ "fieldName": "history",
2359
+ "attribute": "history"
2360
+ }
2361
+ ],
2362
+ "parameters": [
2363
+ {
2364
+ "name": "superClass",
2365
+ "type": {
2366
+ "text": "T"
2367
+ },
2368
+ "description": "The class to extend"
2369
+ }
2370
+ ]
2371
+ }
2372
+ ],
2373
+ "exports": [
2374
+ {
2375
+ "kind": "js",
2376
+ "name": "HISTORY",
2377
+ "declaration": {
2378
+ "name": "HISTORY",
2379
+ "module": "src/router/history-managed.ts"
2380
+ }
2381
+ },
2382
+ {
2383
+ "kind": "js",
2384
+ "name": "HistoryManaged",
2385
+ "declaration": {
2386
+ "name": "HistoryManaged",
2387
+ "module": "src/router/history-managed.ts"
2388
+ }
2389
+ }
2390
+ ]
2391
+ },
2392
+ {
2393
+ "kind": "javascript-module",
2394
+ "path": "src/router/history.ts",
2395
+ "declarations": [
2396
+ {
2397
+ "kind": "variable",
2398
+ "name": "DEFAULT_HISTORY_TYPE",
2399
+ "type": {
2400
+ "text": "HistoryType"
2401
+ },
2402
+ "default": "\"browser\"",
2403
+ "description": "Default history type used when no explicit type is specified.\nUses browser history (HTML5 History API)."
2404
+ },
2405
+ {
2406
+ "kind": "variable",
2407
+ "name": "GLOBAL_HISTORY_TYPE",
2408
+ "description": "Reactive signal containing the currently active global history type.\nChanging this signal will cause all routers using the global history to switch types."
2409
+ },
2410
+ {
2411
+ "kind": "variable",
2412
+ "name": "GLOBAL_HISTORY",
2413
+ "description": "Computed signal that returns the History instance for the current global history type.\nAutomatically updates when GLOBAL_HISTORY_TYPE changes."
2414
+ },
2415
+ {
2416
+ "kind": "function",
2417
+ "name": "getHistoryByType",
2418
+ "return": {
2419
+ "type": {
2420
+ "text": ""
2421
+ }
2422
+ },
2423
+ "parameters": [
2424
+ {
2425
+ "name": "type",
2426
+ "type": {
2427
+ "text": "HistoryType"
2428
+ },
2429
+ "description": "The type of history to retrieve (\"browser\", \"hash\", \"memory\", or \"memory:name\")"
2430
+ }
2431
+ ],
2432
+ "description": "Retrieves or creates a History instance for the specified type.\n\nHistory instances are cached in HISTORY_MAP as singletons, so multiple\ncalls with the same type will return the same instance. This ensures\nthat navigation state is shared across all routers using the same history type."
2433
+ }
2434
+ ],
2435
+ "exports": [
2436
+ {
2437
+ "kind": "js",
2438
+ "name": "DEFAULT_HISTORY_TYPE",
2439
+ "declaration": {
2440
+ "name": "DEFAULT_HISTORY_TYPE",
2441
+ "module": "src/router/history.ts"
2442
+ }
2443
+ },
2444
+ {
2445
+ "kind": "js",
2446
+ "name": "GLOBAL_HISTORY_TYPE",
2447
+ "declaration": {
2448
+ "name": "GLOBAL_HISTORY_TYPE",
2449
+ "module": "src/router/history.ts"
2450
+ }
2451
+ },
2452
+ {
2453
+ "kind": "js",
2454
+ "name": "GLOBAL_HISTORY",
2455
+ "declaration": {
2456
+ "name": "GLOBAL_HISTORY",
2457
+ "module": "src/router/history.ts"
2458
+ }
2459
+ },
2460
+ {
2461
+ "kind": "js",
2462
+ "name": "getHistoryByType",
2463
+ "declaration": {
2464
+ "name": "getHistoryByType",
2465
+ "module": "src/router/history.ts"
2466
+ }
2467
+ }
2468
+ ]
2469
+ },
2470
+ {
2471
+ "kind": "javascript-module",
2472
+ "path": "src/router/tha-route.ts",
2473
+ "declarations": [
2474
+ {
2475
+ "kind": "class",
2476
+ "description": "A custom element that defines a route in the router.\n\nEach route contains a template element with the content to render when\nthe route matches the current URL. The router watches for changes to\nthe template content and automatically updates the outlet.\n\nThe `path` attribute uses URLPattern syntax and supports:\n- Static paths: `/about`, `/users`\n- Dynamic segments: `/users/:id`, `/posts/:category/:slug`\n- Wildcards: `/blog/*`, `/docs/**`\n\n#### Examples\n\n```html\n<tha-router>\n <tha-route path=\"/\">\n <template><h1>Home Page</h1></template>\n </tha-route>\n <tha-route path=\"/users/:id\">\n <template><h1>User Profile</h1></template>\n </tha-route>\n <tha-router-outlet></tha-router-outlet>\n</tha-router>\n```",
2477
+ "name": "ThaRoute",
2478
+ "members": [
2479
+ {
2480
+ "kind": "field",
2481
+ "name": "path",
2482
+ "type": {
2483
+ "text": "string | null"
2484
+ },
2485
+ "default": "null",
2486
+ "description": "The URL pattern to match for this route.\nUses URLPattern syntax with support for dynamic segments and wildcards.",
2487
+ "attribute": "path"
2488
+ },
2489
+ {
2490
+ "kind": "field",
2491
+ "name": "#templateObserver",
2492
+ "privacy": "private",
2493
+ "default": "new MutationObserver(() => { this[FRAGMENT].set(this.#getTemplateFragment()); })",
2494
+ "description": "Observes changes to child elements to detect template updates"
2495
+ },
2496
+ {
2497
+ "kind": "method",
2498
+ "name": "#getTemplateFragment",
2499
+ "privacy": "private",
2500
+ "return": {
2501
+ "type": {
2502
+ "text": ""
2503
+ }
2504
+ },
2505
+ "description": "Extracts the DocumentFragment from the template element.\nReturns a weak reference to prevent memory leaks."
2506
+ }
2507
+ ],
2508
+ "attributes": [
2509
+ {
2510
+ "name": "path",
2511
+ "type": {
2512
+ "text": "string | null"
2513
+ },
2514
+ "default": "null",
2515
+ "description": "The URL pattern to match for this route.\nUses URLPattern syntax with support for dynamic segments and wildcards.",
2516
+ "fieldName": "path",
2517
+ "attribute": "path"
2518
+ }
2519
+ ],
2520
+ "superclass": {
2521
+ "name": "LitElement",
2522
+ "package": "lit"
2523
+ },
2524
+ "tagName": "tha-route",
2525
+ "customElement": true
2526
+ }
2527
+ ],
2528
+ "exports": [
2529
+ {
2530
+ "kind": "js",
2531
+ "name": "ThaRoute",
2532
+ "declaration": {
2533
+ "name": "ThaRoute",
2534
+ "module": "src/router/tha-route.ts"
2535
+ }
2536
+ },
2537
+ {
2538
+ "kind": "custom-element-definition",
2539
+ "name": "tha-route",
2540
+ "declaration": {
2541
+ "name": "ThaRoute",
2542
+ "module": "src/router/tha-route.ts"
2543
+ }
2544
+ }
2545
+ ]
2546
+ },
2547
+ {
2548
+ "kind": "javascript-module",
2549
+ "path": "src/router/tha-router-config.ts",
2550
+ "declarations": [
2551
+ {
2552
+ "kind": "class",
2553
+ "description": "A custom element for configuring router history settings.\n\nThis element serves dual purposes depending on its placement in the DOM:\n\n## Global Configuration (placed in `<head>`)\n\nWhen placed in the `<head>` element, it sets the **global default history**\nfor all routers in the application that don't specify their own history or\ninherit from a parent.\n\n```html\n<head>\n <!-- All routers will use hash routing by default -->\n <tha-router-config history=\"hash\"></tha-router-config>\n</head>\n<body>\n <tha-router>\n <!-- Uses hash history (global default) -->\n <tha-route path=\"/home\">...</tha-route>\n </tha-router>\n</body>\n```\n\n## Local Configuration (placed in `<body>`)\n\nWhen placed in the `<body>` element, it provides history configuration\nfor its **descendant routers only**. This allows different sections of\nyour application to use different history strategies.\n\n```html\n<body>\n <!-- Section 1: Hash routing -->\n <tha-router-config history=\"hash\">\n <tha-router>\n <!-- Uses hash history from parent config -->\n <tha-route path=\"/dashboard\">...</tha-route>\n </tha-router>\n </tha-router-config>\n\n <!-- Section 2: Memory routing (isolated) -->\n <tha-router-config history=\"memory\">\n <tha-router>\n <!-- Uses memory history from parent config -->\n <tha-route path=\"/preview\">...</tha-route>\n </tha-router>\n </tha-router-config>\n</body>\n```\n\n## Usage Patterns\n\n### Set Global Default\n\nPlace in `<head>` to configure all routers:\n\n```html\n<!DOCTYPE html>\n<html>\n <head>\n <tha-router-config history=\"browser\"></tha-router-config>\n </head>\n <body>\n <!-- All routers use browser history -->\n </body>\n</html>\n```\n\n### Override for Specific Section\n\nUse local config to override global default:\n\n```html\n<head>\n <!-- Global: browser history -->\n <tha-router-config history=\"browser\"></tha-router-config>\n</head>\n<body>\n <!-- Main app uses browser history -->\n <tha-router>...</tha-router>\n\n <!-- Admin section uses hash history -->\n <tha-router-config history=\"hash\">\n <tha-router>...</tha-router>\n </tha-router-config>\n</body>\n```\n\n### Isolate Components with Memory History\n\nUse named memory history for component isolation:\n\n```html\n<body>\n <!-- Each component has independent navigation -->\n <tha-router-config history=\"memory:component1\">\n <my-widget>\n <tha-router>...</tha-router>\n </my-widget>\n </tha-router-config>\n\n <tha-router-config history=\"memory:component2\">\n <my-widget>\n <tha-router>...</tha-router>\n </my-widget>\n </tha-router-config>\n</body>\n```\n\n### Testing with Memory History\n\nUse memory history to avoid affecting browser URL during tests:\n\n```typescript\nimport { fixture, html } from '@open-wc/testing';\n\nit('should navigate', async () => {\n const el = await fixture(html`\n <tha-router-config history=\"memory:test\">\n <tha-router>\n <tha-route path=\"/test\">Test Page</tha-route>\n </tha-router>\n </tha-router-config>\n `);\n\n // Test navigation without affecting browser URL\n});\n```\n\n## History Resolution\n\nRouter components resolve their history in this order:\n\n1. **Own `history` attribute** (highest priority)\n2. **Parent `tha-router-config`** (local configuration)\n3. **Global `tha-router-config`** (in `<head>`)\n4. **Default** (`\"browser\"`)\n\n## Best Practices\n\n✅ **DO**: Place one `tha-router-config` in `<head>` for global settings\n\n```html\n<head>\n <tha-router-config history=\"browser\"></tha-router-config>\n</head>\n```\n\n✅ **DO**: Use local configs for sections with different routing needs\n\n```html\n<tha-router-config history=\"memory\">\n <component-preview>...</component-preview>\n</tha-router-config>\n```\n\n✅ **DO**: Use named memory history for isolated components\n\n```html\n<tha-router-config history=\"memory:sidebar\">\n <sidebar-nav>...</sidebar-nav>\n</tha-router-config>\n```\n\n❌ **DON'T**: Place multiple configs in `<head>` (last one wins)\n\n```html\n<head>\n <tha-router-config history=\"browser\"></tha-router-config>\n <tha-router-config history=\"hash\"></tha-router-config> <!-- Overrides above -->\n</head>\n```\n\n❌ **DON'T**: Nest configs unnecessarily (inner configs take precedence)\n\n```html\n<tha-router-config history=\"browser\">\n <tha-router-config history=\"hash\">\n <!-- Uses hash, not browser -->\n </tha-router-config>\n</tha-router-config>\n```",
2554
+ "name": "ThaRouterConfig",
2555
+ "members": [
2556
+ {
2557
+ "kind": "field",
2558
+ "name": "#globalHistoryUnsubscribe",
2559
+ "privacy": "private",
2560
+ "default": "noop",
2561
+ "description": "Cleanup function for the global history effect.\nOnly used when the element is placed in `<head>`."
2562
+ },
2563
+ {
2564
+ "kind": "field",
2565
+ "name": "history",
2566
+ "type": {
2567
+ "text": "HistoryType | undefined"
2568
+ },
2569
+ "default": "undefined",
2570
+ "description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
2571
+ "attribute": "history",
2572
+ "inheritedFrom": {
2573
+ "name": "HistoryManaged",
2574
+ "module": "src/router/history-managed.ts"
2575
+ }
2576
+ },
2577
+ {
2578
+ "kind": "field",
2579
+ "name": "#ownHistoryType",
2580
+ "privacy": "private",
2581
+ "description": "Signal for own history type",
2582
+ "inheritedFrom": {
2583
+ "name": "HistoryManaged",
2584
+ "module": "src/router/history-managed.ts"
2585
+ }
2586
+ },
2587
+ {
2588
+ "kind": "field",
2589
+ "name": "#parentHistoryType",
2590
+ "privacy": "private",
2591
+ "description": "Computed signal for parent history type",
2592
+ "inheritedFrom": {
2593
+ "name": "HistoryManaged",
2594
+ "module": "src/router/history-managed.ts"
2595
+ }
2596
+ },
2597
+ {
2598
+ "kind": "field",
2599
+ "name": "[HISTORY_TYPE]",
2600
+ "description": "Resolved history type: own → parent → global",
2601
+ "inheritedFrom": {
2602
+ "name": "HistoryManaged",
2603
+ "module": "src/router/history-managed.ts"
2604
+ }
2605
+ },
2606
+ {
2607
+ "kind": "field",
2608
+ "name": "[HISTORY]",
2609
+ "description": "Resolved history instance: own → parent → global",
2610
+ "inheritedFrom": {
2611
+ "name": "HistoryManaged",
2612
+ "module": "src/router/history-managed.ts"
2613
+ }
2614
+ }
2615
+ ],
2616
+ "mixins": [
2617
+ {
2618
+ "name": "HistoryManaged",
2619
+ "module": "/src/router/history-managed"
2620
+ }
2621
+ ],
2622
+ "superclass": {
2623
+ "name": "SignalWatcherLitElement",
2624
+ "module": "/src/utils/signal-watcher-lit-element"
2625
+ },
2626
+ "tagName": "tha-router-config",
2627
+ "customElement": true,
2628
+ "attributes": [
2629
+ {
2630
+ "name": "history",
2631
+ "type": {
2632
+ "text": "HistoryType | undefined"
2633
+ },
2634
+ "default": "undefined",
2635
+ "description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
2636
+ "fieldName": "history",
2637
+ "attribute": "history",
2638
+ "inheritedFrom": {
2639
+ "name": "HistoryManaged",
2640
+ "module": "src/router/history-managed.ts"
2641
+ }
2642
+ }
2643
+ ]
2644
+ }
2645
+ ],
2646
+ "exports": [
2647
+ {
2648
+ "kind": "js",
2649
+ "name": "ThaRouterConfig",
2650
+ "declaration": {
2651
+ "name": "ThaRouterConfig",
2652
+ "module": "src/router/tha-router-config.ts"
2653
+ }
2654
+ },
2655
+ {
2656
+ "kind": "custom-element-definition",
2657
+ "name": "tha-router-config",
2658
+ "declaration": {
2659
+ "name": "ThaRouterConfig",
2660
+ "module": "src/router/tha-router-config.ts"
2661
+ }
2662
+ }
2663
+ ]
2664
+ },
2665
+ {
2666
+ "kind": "javascript-module",
2667
+ "path": "src/router/tha-router-link.ts",
2668
+ "declarations": [
2669
+ {
2670
+ "kind": "class",
2671
+ "description": "A custom element that provides navigation links for client-side routing.\n\nThe link handles click events to navigate using the History API, preventing\nfull page reloads. It supports absolute paths, relative paths, and special\nsymbols ('back', 'forward') for browser history navigation.\n\nThe `active` attribute automatically reflects whether the link's path\nmatches the current route, useful for styling active navigation items.\n\n#### Examples\n\n```html\n<!-- Absolute path -->\n<tha-router-link to=\"/about\">About</tha-router-link>\n\n<!-- Relative path -->\n<tha-router-link to=\"./details\">Details</tha-router-link>\n<tha-router-link to=\"../users\">Back to Users</tha-router-link>\n\n<!-- History navigation -->\n<tha-router-link to=\"back\">← Back</tha-router-link>\n<tha-router-link to=\"forward\">Forward →</tha-router-link>\n```",
2672
+ "name": "ThaRouterLink",
2673
+ "members": [
2674
+ {
2675
+ "kind": "field",
2676
+ "name": "to",
2677
+ "type": {
2678
+ "text": "LinkType | null"
2679
+ },
2680
+ "default": "null",
2681
+ "description": "The navigation target. Can be:\n- Absolute path: `/users`, `/about`\n- Relative path: `./details`, `../users`\n- History symbol: `back`, `forward`",
2682
+ "attribute": "to"
2683
+ },
2684
+ {
2685
+ "kind": "field",
2686
+ "name": "active",
2687
+ "type": {
2688
+ "text": "boolean"
2689
+ },
2690
+ "default": "false",
2691
+ "description": "Reflects whether this link matches the current route.\nAutomatically updated when the route changes.",
2692
+ "readonly": true,
2693
+ "attribute": "active",
2694
+ "reflects": true
2695
+ },
2696
+ {
2697
+ "kind": "field",
2698
+ "name": "#activeStateEffectCleaner",
2699
+ "privacy": "private",
2700
+ "default": "noop",
2701
+ "description": "Cleanup function for the active state effect"
2702
+ },
2703
+ {
2704
+ "kind": "field",
2705
+ "name": "#historyListenerRemover",
2706
+ "privacy": "private",
2707
+ "default": "noop",
2708
+ "description": "Cleanup function to remove history listener"
2709
+ },
2710
+ {
2711
+ "kind": "field",
2712
+ "name": "#to",
2713
+ "privacy": "private",
2714
+ "description": "Signal containing the current 'to' value"
2715
+ },
2716
+ {
2717
+ "kind": "field",
2718
+ "name": "#urlPattern",
2719
+ "privacy": "private",
2720
+ "description": "Computed URLPattern for matching against the current route"
2721
+ },
2722
+ {
2723
+ "kind": "field",
2724
+ "name": "#handleClick",
2725
+ "privacy": "private",
2726
+ "description": "Handles click events to perform navigation.\n\n- For 'back'/'forward', calls the corresponding history method\n- For relative paths, resolves them against the current location\n- For absolute paths, navigates directly\n\nPrevents default link behavior to avoid full page reloads.",
2727
+ "parameters": [
2728
+ {
2729
+ "description": "The click event",
2730
+ "name": "event"
2731
+ }
2732
+ ]
2733
+ },
2734
+ {
2735
+ "kind": "field",
2736
+ "name": "history",
2737
+ "type": {
2738
+ "text": "HistoryType | undefined"
2739
+ },
2740
+ "default": "undefined",
2741
+ "description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
2742
+ "attribute": "history",
2743
+ "inheritedFrom": {
2744
+ "name": "HistoryManaged",
2745
+ "module": "src/router/history-managed.ts"
2746
+ }
2747
+ },
2748
+ {
2749
+ "kind": "field",
2750
+ "name": "#ownHistoryType",
2751
+ "privacy": "private",
2752
+ "description": "Signal for own history type",
2753
+ "inheritedFrom": {
2754
+ "name": "HistoryManaged",
2755
+ "module": "src/router/history-managed.ts"
2756
+ }
2757
+ },
2758
+ {
2759
+ "kind": "field",
2760
+ "name": "#parentHistoryType",
2761
+ "privacy": "private",
2762
+ "description": "Computed signal for parent history type",
2763
+ "inheritedFrom": {
2764
+ "name": "HistoryManaged",
2765
+ "module": "src/router/history-managed.ts"
2766
+ }
2767
+ },
2768
+ {
2769
+ "kind": "field",
2770
+ "name": "[HISTORY_TYPE]",
2771
+ "description": "Resolved history type: own → parent → global",
2772
+ "inheritedFrom": {
2773
+ "name": "HistoryManaged",
2774
+ "module": "src/router/history-managed.ts"
2775
+ }
2776
+ },
2777
+ {
2778
+ "kind": "field",
2779
+ "name": "[HISTORY]",
2780
+ "description": "Resolved history instance: own → parent → global",
2781
+ "inheritedFrom": {
2782
+ "name": "HistoryManaged",
2783
+ "module": "src/router/history-managed.ts"
2784
+ }
2785
+ }
2786
+ ],
2787
+ "attributes": [
2788
+ {
2789
+ "name": "to",
2790
+ "type": {
2791
+ "text": "LinkType | null"
2792
+ },
2793
+ "default": "null",
2794
+ "description": "The navigation target. Can be:\n- Absolute path: `/users`, `/about`\n- Relative path: `./details`, `../users`\n- History symbol: `back`, `forward`",
2795
+ "fieldName": "to",
2796
+ "attribute": "to"
2797
+ },
2798
+ {
2799
+ "name": "active",
2800
+ "type": {
2801
+ "text": "boolean"
2802
+ },
2803
+ "default": "false",
2804
+ "description": "Reflects whether this link matches the current route.\nAutomatically updated when the route changes.",
2805
+ "readonly": true,
2806
+ "fieldName": "active",
2807
+ "attribute": "active"
2808
+ },
2809
+ {
2810
+ "name": "history",
2811
+ "type": {
2812
+ "text": "HistoryType | undefined"
2813
+ },
2814
+ "default": "undefined",
2815
+ "description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
2816
+ "fieldName": "history",
2817
+ "attribute": "history",
2818
+ "inheritedFrom": {
2819
+ "name": "HistoryManaged",
2820
+ "module": "src/router/history-managed.ts"
2821
+ }
2822
+ }
2823
+ ],
2824
+ "mixins": [
2825
+ {
2826
+ "name": "HistoryManaged",
2827
+ "module": "/src/router/history-managed"
2828
+ }
2829
+ ],
2830
+ "superclass": {
2831
+ "name": "SignalWatcherLitElement",
2832
+ "module": "/src/utils/signal-watcher-lit-element"
2833
+ },
2834
+ "tagName": "tha-router-link",
2835
+ "customElement": true
2836
+ }
2837
+ ],
2838
+ "exports": [
2839
+ {
2840
+ "kind": "js",
2841
+ "name": "ThaRouterLink",
2842
+ "declaration": {
2843
+ "name": "ThaRouterLink",
2844
+ "module": "src/router/tha-router-link.ts"
2845
+ }
2846
+ },
2847
+ {
2848
+ "kind": "custom-element-definition",
2849
+ "name": "tha-router-link",
2850
+ "declaration": {
2851
+ "name": "ThaRouterLink",
2852
+ "module": "src/router/tha-router-link.ts"
2853
+ }
2854
+ }
2855
+ ]
2856
+ },
2857
+ {
2858
+ "kind": "javascript-module",
2859
+ "path": "src/router/tha-router-outlet.ts",
2860
+ "declarations": [
2861
+ {
2862
+ "kind": "variable",
2863
+ "name": "PARAMS"
2864
+ },
2865
+ {
2866
+ "kind": "class",
2867
+ "description": "A custom element that serves as a rendering target for router content.\n\nThe outlet automatically binds to its parent tha-router or to a specific router\nidentified by the `for` attribute. When the router's active route changes,\nthe outlet clones and renders the route's template content.\n\n#### Examples\n\n```html\n<tha-router>\n <tha-route path=\"/\"><template><h1>Home</h1></template></tha-route>\n <tha-router-outlet></tha-router-outlet>\n</tha-router>\n```\n\n```html\n<!-- Bind to a specific router by ID -->\n<tha-router id=\"main-router\">\n <tha-route path=\"/\"><template><h1>Home</h1></template></tha-route>\n</tha-router>\n<tha-router-outlet for=\"main-router\"></tha-router-outlet>\n```",
2868
+ "name": "ThaRouterOutlet",
2869
+ "members": [
2870
+ {
2871
+ "kind": "field",
2872
+ "name": "#boundRouter",
2873
+ "privacy": "private",
2874
+ "description": "Weak reference to the bound router instance"
2875
+ },
2876
+ {
2877
+ "kind": "field",
2878
+ "name": "#routeToRender",
2879
+ "privacy": "private",
2880
+ "description": "Signal containing weak reference to the route to render"
2881
+ },
2882
+ {
2883
+ "kind": "field",
2884
+ "name": "#fragmentToRender",
2885
+ "privacy": "private",
2886
+ "description": "Computed signal that extracts the fragment from the route to render"
2887
+ },
2888
+ {
2889
+ "kind": "field",
2890
+ "name": "#ownParams",
2891
+ "privacy": "private"
2892
+ },
2893
+ {
2894
+ "kind": "field",
2895
+ "name": "[PARAMS]"
2896
+ },
2897
+ {
2898
+ "kind": "field",
2899
+ "name": "params",
2900
+ "type": {
2901
+ "text": "Record<string, string | undefined>"
2902
+ },
2903
+ "default": "{}"
2904
+ },
2905
+ {
2906
+ "kind": "field",
2907
+ "name": "#fragmentUpdateCleaner",
2908
+ "privacy": "private",
2909
+ "default": "noop",
2910
+ "description": "Cleanup function for the fragment update effect"
2911
+ },
2912
+ {
2913
+ "kind": "field",
2914
+ "name": "#attrUpdateCleaner",
2915
+ "privacy": "private",
2916
+ "default": "noop",
2917
+ "description": "Cleanup function for the attribute update effect"
2918
+ },
2919
+ {
2920
+ "kind": "field",
2921
+ "name": "#paramsUpdateCleaner",
2922
+ "privacy": "private",
2923
+ "default": "noop"
2924
+ },
2925
+ {
2926
+ "kind": "field",
2927
+ "name": "for",
2928
+ "type": {
2929
+ "text": "string | null"
2930
+ },
2931
+ "default": "null",
2932
+ "description": "The ID of a specific tha-router element to bind to.\nIf not set, binds to the nearest parent tha-router.",
2933
+ "attribute": "for"
2934
+ },
2935
+ {
2936
+ "kind": "field",
2937
+ "name": "routePath",
2938
+ "type": {
2939
+ "text": "string | null"
2940
+ },
2941
+ "default": "null",
2942
+ "description": "Reflects the path attribute of the currently active route.\nAutomatically updated when the active route changes.",
2943
+ "readonly": true,
2944
+ "attribute": "routePath",
2945
+ "reflects": true
2946
+ },
2947
+ {
2948
+ "kind": "field",
2949
+ "name": "routeID",
2950
+ "type": {
2951
+ "text": "string | undefined"
2952
+ },
2953
+ "default": "undefined",
2954
+ "description": "Reflects the ID of the currently active route.\nAutomatically updated when the active route changes.",
2955
+ "readonly": true,
2956
+ "attribute": "routeID",
2957
+ "reflects": true
2958
+ },
2959
+ {
2960
+ "kind": "method",
2961
+ "name": "bindToRouter",
2962
+ "return": {
2963
+ "type": {
2964
+ "text": ""
2965
+ }
2966
+ },
2967
+ "description": "Binds this outlet to a tha-router element.\n\nIf no router is provided, automatically searches for one:\n- If `for` attribute is set, finds router by ID in the same root\n- Otherwise, finds the nearest parent tha-router\n\nUnbinds from the previous router if already bound to a different one.",
2968
+ "parameters": [
2969
+ {
2970
+ "description": "Optional router to bind to",
2971
+ "name": "router"
2972
+ }
2973
+ ]
2974
+ },
2975
+ {
2976
+ "kind": "method",
2977
+ "name": "bindToRouter",
2978
+ "return": {
2979
+ "type": {
2980
+ "text": "ThaRouter | null"
2981
+ }
2982
+ },
2983
+ "parameters": [
2984
+ {
2985
+ "name": "router",
2986
+ "optional": true,
2987
+ "type": {
2988
+ "text": "ThaRouter"
2989
+ }
2990
+ }
2991
+ ]
2992
+ }
2993
+ ],
2994
+ "attributes": [
2995
+ {
2996
+ "name": "for",
2997
+ "type": {
2998
+ "text": "string | null"
2999
+ },
3000
+ "default": "null",
3001
+ "description": "The ID of a specific tha-router element to bind to.\nIf not set, binds to the nearest parent tha-router.",
3002
+ "fieldName": "for",
3003
+ "attribute": "for"
3004
+ },
3005
+ {
3006
+ "name": "routepath",
3007
+ "type": {
3008
+ "text": "string | null"
3009
+ },
3010
+ "default": "null",
3011
+ "description": "Reflects the path attribute of the currently active route.\nAutomatically updated when the active route changes.",
3012
+ "readonly": true,
3013
+ "fieldName": "routePath"
3014
+ },
3015
+ {
3016
+ "name": "routeid",
3017
+ "type": {
3018
+ "text": "string | undefined"
3019
+ },
3020
+ "default": "undefined",
3021
+ "description": "Reflects the ID of the currently active route.\nAutomatically updated when the active route changes.",
3022
+ "readonly": true,
3023
+ "fieldName": "routeID"
3024
+ },
3025
+ {
3026
+ "name": "routePath",
3027
+ "type": {
3028
+ "text": "string | null"
3029
+ },
3030
+ "default": "null",
3031
+ "description": "Reflects the path attribute of the currently active route.\nAutomatically updated when the active route changes.",
3032
+ "readonly": true,
3033
+ "attribute": "routepath",
3034
+ "fieldName": "routePath"
3035
+ },
3036
+ {
3037
+ "name": "routeID",
3038
+ "type": {
3039
+ "text": "string | undefined"
3040
+ },
3041
+ "default": "undefined",
3042
+ "description": "Reflects the ID of the currently active route.\nAutomatically updated when the active route changes.",
3043
+ "readonly": true,
3044
+ "attribute": "routeid",
3045
+ "fieldName": "routeID"
3046
+ }
3047
+ ],
3048
+ "superclass": {
3049
+ "name": "SignalWatcherLitElement",
3050
+ "module": "/src/utils/signal-watcher-lit-element"
3051
+ },
3052
+ "tagName": "tha-router-outlet",
3053
+ "customElement": true
3054
+ }
3055
+ ],
3056
+ "exports": [
3057
+ {
3058
+ "kind": "js",
3059
+ "name": "PARAMS",
3060
+ "declaration": {
3061
+ "name": "PARAMS",
3062
+ "module": "src/router/tha-router-outlet.ts"
3063
+ }
3064
+ },
3065
+ {
3066
+ "kind": "js",
3067
+ "name": "ThaRouterOutlet",
3068
+ "declaration": {
3069
+ "name": "ThaRouterOutlet",
3070
+ "module": "src/router/tha-router-outlet.ts"
3071
+ }
3072
+ },
3073
+ {
3074
+ "kind": "custom-element-definition",
3075
+ "name": "tha-router-outlet",
3076
+ "declaration": {
3077
+ "name": "ThaRouterOutlet",
3078
+ "module": "src/router/tha-router-outlet.ts"
3079
+ }
3080
+ }
3081
+ ]
3082
+ },
3083
+ {
3084
+ "kind": "javascript-module",
3085
+ "path": "src/router/tha-router-param.ts",
3086
+ "declarations": [
3087
+ {
3088
+ "kind": "class",
3089
+ "description": "Custom element for displaying dynamic route parameter values.\n\nThis component provides a declarative way to access and display URL\nparameters extracted from dynamic route segments without writing JavaScript.\nIt must be used inside a `<tha-router-outlet>` element.\n\n## Features\n\n- **Declarative**: Access params directly in HTML\n- **Reactive**: Automatically updates when route changes\n- **Hierarchical**: Inherits params from parent outlets\n- **Type-safe**: Integrated with TypeScript definitions\n\n## Usage\n\n### Basic Parameter Display\n\n```html\n<tha-router>\n <tha-route path=\"/users/:id\">\n <template>\n <h1>User Profile</h1>\n <p>User ID: <tha-router-param name=\"id\"></tha-router-param></p>\n </template>\n </tha-route>\n <tha-router-outlet></tha-router-outlet>\n</tha-router>\n```\n\nWhen navigating to `/users/123`, the component renders: `User ID: 123`\n\n### Multiple Parameters\n\n```html\n<tha-route path=\"/blog/:year/:month/:slug\">\n <template>\n <article>\n <header>\n <time>\n <tha-router-param name=\"year\"></tha-router-param>-\n <tha-router-param name=\"month\"></tha-router-param>\n </time>\n <h1><tha-router-param name=\"slug\"></tha-router-param></h1>\n </header>\n </article>\n </template>\n</tha-route>\n```\n\nFor `/blog/2024/12/hello-world`, renders:\n```html\n<time>2024-12</time>\n<h1>hello-world</h1>\n```\n\n### Nested Routes with Parameter Inheritance\n\n```html\n<tha-router>\n <tha-route path=\"/projects/:projectId\">\n <template>\n <h1>Project <tha-router-param name=\"projectId\"></tha-router-param></h1>\n\n <!-- Nested outlet inherits projectId parameter -->\n <tha-router-outlet>\n <tha-route path=\"/tasks/:taskId\">\n <template>\n <!-- Both params are available -->\n <h2>Task Details</h2>\n <p>Project: <tha-router-param name=\"projectId\"></tha-router-param></p>\n <p>Task: <tha-router-param name=\"taskId\"></tha-router-param></p>\n </template>\n </tha-route>\n </tha-router-outlet>\n </template>\n </tha-route>\n <tha-router-outlet></tha-router-outlet>\n</tha-router>\n```\n\n### With Styling\n\n```html\n<style>\n tha-router-param {\n font-weight: bold;\n color: var(--primary-color);\n }\n\n tha-router-param[name=\"id\"] {\n font-family: monospace;\n }\n</style>\n\n<tha-route path=\"/users/:id\">\n <template>\n <span>User: <tha-router-param name=\"id\"></tha-router-param></span>\n </template>\n</tha-route>\n```\n\n## How It Works\n\n1. On connection, finds the nearest parent `<tha-router-outlet>`\n2. Accesses the outlet's PARAMS signal containing all route parameters\n3. Computes and displays the value for the specified parameter name\n4. Automatically re-renders when the route (and thus params) change\n\n## Error Handling\n\nThrows an error if not placed within a `<tha-router-outlet>`:\n\n```javascript\n// ✗ Wrong - not inside outlet\n<tha-router-param name=\"id\"></tha-router-param>\n\n// ✓ Correct - inside outlet\n<tha-router-outlet>\n <tha-router-param name=\"id\"></tha-router-param>\n</tha-router-outlet>\n```\n\n## Alternative: Using Attributes\n\nThe parent `<tha-router-outlet>` also exposes parameters as `param-*` attributes,\nwhich can be used as an alternative approach:\n\n```html\n<tha-router-outlet id=\"outlet\">\n <script>\n const outlet = document.getElementById('outlet');\n // Params available as: outlet.getAttribute('param-id')\n </script>\n</tha-router-outlet>\n```\n\nHowever, `<tha-router-param>` is preferred for declarative templates.\n\n#### Examples\n\n**Basic usage**\n\n```html\n<tha-router>\n <tha-route path=\"/product/:sku\">\n <template>\n <h1>Product: <tha-router-param name=\"sku\"></tha-router-param></h1>\n </template>\n </tha-route>\n <tha-router-outlet></tha-router-outlet>\n</tha-router>\n```\n\n**Multiple params with formatting**\n\n```html\n<tha-route path=\"/user/:username/post/:postId\">\n <template>\n <article>\n <p>@<tha-router-param name=\"username\"></tha-router-param></p>\n <p>Post #<tha-router-param name=\"postId\"></tha-router-param></p>\n </article>\n </template>\n</tha-route>\n```",
3090
+ "name": "ThaRouterParam",
3091
+ "members": [
3092
+ {
3093
+ "kind": "field",
3094
+ "name": "#outlet",
3095
+ "privacy": "private",
3096
+ "description": "Signal holding reference to the parent outlet.\nSet during connectedCallback."
3097
+ },
3098
+ {
3099
+ "kind": "field",
3100
+ "name": "#name",
3101
+ "privacy": "private",
3102
+ "description": "Signal tracking the parameter name to display.\nUpdated when the 'name' attribute changes."
3103
+ },
3104
+ {
3105
+ "kind": "field",
3106
+ "name": "#value",
3107
+ "privacy": "private",
3108
+ "description": "Computed signal that extracts the parameter value.\nReactively updates when the outlet's params or name changes."
3109
+ },
3110
+ {
3111
+ "kind": "field",
3112
+ "name": "name",
3113
+ "type": {
3114
+ "text": "string"
3115
+ },
3116
+ "default": "''",
3117
+ "description": "The name of the route parameter to display.\n\nMust match a parameter name defined in the route's path pattern.\nFor example, for path `/users/:id`, use `name=\"id\"`.",
3118
+ "attribute": "name"
3119
+ }
3120
+ ],
3121
+ "attributes": [
3122
+ {
3123
+ "name": "name",
3124
+ "type": {
3125
+ "text": "string"
3126
+ },
3127
+ "default": "''",
3128
+ "description": "The name of the route parameter to display.\n\nMust match a parameter name defined in the route's path pattern.\nFor example, for path `/users/:id`, use `name=\"id\"`.",
3129
+ "fieldName": "name",
3130
+ "attribute": "name"
3131
+ }
3132
+ ],
3133
+ "superclass": {
3134
+ "name": "SignalWatcherLitElement",
3135
+ "module": "/src/utils/signal-watcher-lit-element"
3136
+ },
3137
+ "tagName": "tha-router-param",
3138
+ "customElement": true
3139
+ }
3140
+ ],
3141
+ "exports": [
3142
+ {
3143
+ "kind": "js",
3144
+ "name": "ThaRouterParam",
3145
+ "declaration": {
3146
+ "name": "ThaRouterParam",
3147
+ "module": "src/router/tha-router-param.ts"
3148
+ }
3149
+ },
3150
+ {
3151
+ "kind": "custom-element-definition",
3152
+ "name": "tha-router-param",
3153
+ "declaration": {
3154
+ "name": "ThaRouterParam",
3155
+ "module": "src/router/tha-router-param.ts"
3156
+ }
3157
+ }
3158
+ ]
3159
+ },
3160
+ {
3161
+ "kind": "javascript-module",
3162
+ "path": "src/router/tha-router.ts",
3163
+ "declarations": [
3164
+ {
3165
+ "kind": "class",
3166
+ "description": "A custom element that manages client-side routing for single-page applications.\n\nThe router watches for navigation events and matches the current URL against\nregistered routes (tha-route elements), rendering the matching route's content\nin a tha-router-outlet element.\n\n#### Examples\n\n```html\n<tha-router history=\"browser\">\n <tha-route path=\"/\">\n <template><h1>Home</h1></template>\n </tha-route>\n <tha-route path=\"/about\">\n <template><h1>About</h1></template>\n </tha-route>\n <tha-router-outlet></tha-router-outlet>\n</tha-router>\n```",
3167
+ "name": "ThaRouter",
3168
+ "members": [
3169
+ {
3170
+ "kind": "field",
3171
+ "name": "#routeChildObserver",
3172
+ "privacy": "private",
3173
+ "default": "new MutationObserver((mutations) => { const childListMutations = mutations.filter(mutation => mutation.type === 'childList'); if (!childListMutations.length) return; this.#routeEls.set( Array.from(this.children).filter(child => child instanceof ThaRoute).map(routeEl => new WeakRef(routeEl)) ); })",
3174
+ "description": "Observes changes to child elements to detect when routes are added or removed.\nUpdates the #routeEls signal whenever tha-route children change."
3175
+ },
3176
+ {
3177
+ "kind": "field",
3178
+ "name": "#routeChildrenEffectCleaner",
3179
+ "privacy": "private",
3180
+ "default": "noop",
3181
+ "description": "Cleanup function for the route children rendering effect"
3182
+ },
3183
+ {
3184
+ "kind": "field",
3185
+ "name": "#historyTypeEffectCleaner",
3186
+ "privacy": "private",
3187
+ "default": "noop",
3188
+ "description": "Cleanup function for the history type change effect"
3189
+ },
3190
+ {
3191
+ "kind": "field",
3192
+ "name": "#historyListenerRemover",
3193
+ "privacy": "private",
3194
+ "default": "noop",
3195
+ "description": "Cleanup function to remove history listener"
3196
+ },
3197
+ {
3198
+ "kind": "field",
3199
+ "name": "#routeEls",
3200
+ "privacy": "private",
3201
+ "description": "Signal containing weak references to all tha-route children"
3202
+ },
3203
+ {
3204
+ "kind": "field",
3205
+ "name": "#activeRoute",
3206
+ "privacy": "private",
3207
+ "description": "Signal containing weak reference to the currently active route"
3208
+ },
3209
+ {
3210
+ "kind": "field",
3211
+ "name": "#outlet",
3212
+ "privacy": "private",
3213
+ "description": "Signal containing weak reference to the assigned outlet element"
3214
+ },
3215
+ {
3216
+ "kind": "field",
3217
+ "name": "#handleRouteChange",
3218
+ "privacy": "private",
3219
+ "description": "Handles navigation events by matching the new URL against registered routes.\nUpdates the active route signal when a match is found.",
3220
+ "parameters": [
3221
+ {
3222
+ "description": "The history update containing the new location",
3223
+ "name": "update"
3224
+ }
3225
+ ]
3226
+ },
3227
+ {
3228
+ "kind": "field",
3229
+ "name": "history",
3230
+ "type": {
3231
+ "text": "HistoryType | undefined"
3232
+ },
3233
+ "default": "undefined",
3234
+ "description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
3235
+ "attribute": "history",
3236
+ "inheritedFrom": {
3237
+ "name": "HistoryManaged",
3238
+ "module": "src/router/history-managed.ts"
3239
+ }
3240
+ },
3241
+ {
3242
+ "kind": "field",
3243
+ "name": "#ownHistoryType",
3244
+ "privacy": "private",
3245
+ "description": "Signal for own history type",
3246
+ "inheritedFrom": {
3247
+ "name": "HistoryManaged",
3248
+ "module": "src/router/history-managed.ts"
3249
+ }
3250
+ },
3251
+ {
3252
+ "kind": "field",
3253
+ "name": "#parentHistoryType",
3254
+ "privacy": "private",
3255
+ "description": "Computed signal for parent history type",
3256
+ "inheritedFrom": {
3257
+ "name": "HistoryManaged",
3258
+ "module": "src/router/history-managed.ts"
3259
+ }
3260
+ },
3261
+ {
3262
+ "kind": "field",
3263
+ "name": "[HISTORY_TYPE]",
3264
+ "description": "Resolved history type: own → parent → global",
3265
+ "inheritedFrom": {
3266
+ "name": "HistoryManaged",
3267
+ "module": "src/router/history-managed.ts"
3268
+ }
3269
+ },
3270
+ {
3271
+ "kind": "field",
3272
+ "name": "[HISTORY]",
3273
+ "description": "Resolved history instance: own → parent → global",
3274
+ "inheritedFrom": {
3275
+ "name": "HistoryManaged",
3276
+ "module": "src/router/history-managed.ts"
3277
+ }
3278
+ }
3279
+ ],
3280
+ "mixins": [
3281
+ {
3282
+ "name": "HistoryManaged",
3283
+ "module": "/src/router/history-managed"
3284
+ }
3285
+ ],
3286
+ "superclass": {
3287
+ "name": "SignalWatcherLitElement",
3288
+ "module": "/src/utils/signal-watcher-lit-element"
3289
+ },
3290
+ "tagName": "tha-router",
3291
+ "customElement": true,
3292
+ "attributes": [
3293
+ {
3294
+ "name": "history",
3295
+ "type": {
3296
+ "text": "HistoryType | undefined"
3297
+ },
3298
+ "default": "undefined",
3299
+ "description": "History strategy: \"browser\" | \"hash\" | \"memory\" | \"memory:name\"\nIf undefined, inherits from parent or uses global default.",
3300
+ "fieldName": "history",
3301
+ "attribute": "history",
3302
+ "inheritedFrom": {
3303
+ "name": "HistoryManaged",
3304
+ "module": "src/router/history-managed.ts"
3305
+ }
3306
+ }
3307
+ ]
3308
+ }
3309
+ ],
3310
+ "exports": [
3311
+ {
3312
+ "kind": "js",
3313
+ "name": "ThaRouter",
3314
+ "declaration": {
3315
+ "name": "ThaRouter",
3316
+ "module": "src/router/tha-router.ts"
3317
+ }
3318
+ },
3319
+ {
3320
+ "kind": "custom-element-definition",
3321
+ "name": "tha-router",
3322
+ "declaration": {
3323
+ "name": "ThaRouter",
3324
+ "module": "src/router/tha-router.ts"
3325
+ }
3326
+ }
3327
+ ]
3328
+ },
3329
+ {
3330
+ "kind": "javascript-module",
3331
+ "path": "src/select/internal-props.ts",
3332
+ "declarations": [
3333
+ {
3334
+ "kind": "variable",
3335
+ "name": "REGISTER_OPTION"
3336
+ },
3337
+ {
3338
+ "kind": "variable",
3339
+ "name": "UNREGISTER_OPTION"
3340
+ },
3341
+ {
3342
+ "kind": "variable",
3343
+ "name": "SHOULD_REGISTER_TO_SELECT"
3344
+ }
3345
+ ],
3346
+ "exports": [
3347
+ {
3348
+ "kind": "js",
3349
+ "name": "REGISTER_OPTION",
3350
+ "declaration": {
3351
+ "name": "REGISTER_OPTION",
3352
+ "module": "src/select/internal-props.ts"
3353
+ }
3354
+ },
3355
+ {
3356
+ "kind": "js",
3357
+ "name": "UNREGISTER_OPTION",
3358
+ "declaration": {
3359
+ "name": "UNREGISTER_OPTION",
3360
+ "module": "src/select/internal-props.ts"
3361
+ }
3362
+ },
3363
+ {
3364
+ "kind": "js",
3365
+ "name": "SHOULD_REGISTER_TO_SELECT",
3366
+ "declaration": {
3367
+ "name": "SHOULD_REGISTER_TO_SELECT",
3368
+ "module": "src/select/internal-props.ts"
3369
+ }
3370
+ }
3371
+ ]
3372
+ },
3373
+ {
3374
+ "kind": "javascript-module",
3375
+ "path": "src/select/option.element.ts",
3376
+ "declarations": [
3377
+ {
3378
+ "kind": "class",
3379
+ "description": "A single selectable item inside a `<tp-select>`.\n\nDiscovers its host `<tp-select>` via `@lit/context`, registers itself\non connect, and reflects its own selected state through the\n`selected` attribute (read-only — set selection by clicking, by\nmutating `tp-select.value`, or by calling\n`selectOption()`/`deselectOption()`/`toggleOption()` on the host).\n\n#### Examples\n\n```html\n<tp-select>\n <tp-option value=\"apple\">Apple</tp-option>\n <tp-option value=\"banana\">Banana</tp-option>\n</tp-select>\n```",
3380
+ "name": "OptionElement",
3381
+ "members": [
3382
+ {
3383
+ "kind": "field",
3384
+ "name": "select",
3385
+ "type": {
3386
+ "text": "SelectElement | undefined"
3387
+ },
3388
+ "privacy": "private"
3389
+ },
3390
+ {
3391
+ "kind": "field",
3392
+ "name": "[SHOULD_REGISTER_TO_SELECT]",
3393
+ "type": {
3394
+ "text": "boolean"
3395
+ },
3396
+ "default": "true"
3397
+ },
3398
+ {
3399
+ "kind": "field",
3400
+ "name": "value",
3401
+ "type": {
3402
+ "text": "string"
3403
+ },
3404
+ "default": "\"\"",
3405
+ "attribute": "value",
3406
+ "reflects": true
3407
+ }
3408
+ ],
3409
+ "attributes": [
3410
+ {
3411
+ "name": "value",
3412
+ "type": {
3413
+ "text": "string"
3414
+ },
3415
+ "default": "\"\"",
3416
+ "fieldName": "value",
3417
+ "description": "The submitted value when this option is selected."
3418
+ },
3419
+ {
3420
+ "name": "selected",
3421
+ "description": "Reflects current selection state (do not set manually)."
3422
+ }
3423
+ ],
3424
+ "superclass": {
3425
+ "name": "SignalWatcherLitElement",
3426
+ "module": "/src/utils/signal-watcher-lit-element"
3427
+ },
3428
+ "tagName": "tp-option",
3429
+ "customElement": true,
3430
+ "slots": [
3431
+ {
3432
+ "name": "",
3433
+ "description": "Visible label for the option."
3434
+ }
3435
+ ]
3436
+ }
3437
+ ],
3438
+ "exports": [
3439
+ {
3440
+ "kind": "js",
3441
+ "name": "OptionElement",
3442
+ "declaration": {
3443
+ "name": "OptionElement",
3444
+ "module": "src/select/option.element.ts"
3445
+ }
3446
+ },
3447
+ {
3448
+ "kind": "custom-element-definition",
3449
+ "name": "tp-option",
3450
+ "declaration": {
3451
+ "name": "OptionElement",
3452
+ "module": "src/select/option.element.ts"
3453
+ }
3454
+ }
3455
+ ]
3456
+ },
3457
+ {
3458
+ "kind": "javascript-module",
3459
+ "path": "src/select/select-change-event.ts",
3460
+ "declarations": [
3461
+ {
3462
+ "kind": "class",
3463
+ "description": "Dispatched by `<tp-select>` whenever its selected option set changes.\r\n\r\nMirrors the native `<select>` `change` event semantics:\r\n- type is `'change'`\r\n- `bubbles: true`, `composed: false`, `cancelable: false` by default\r\n- not fired on initial mount, nor when the selection is set to the\r\n same value it already had",
3464
+ "name": "SelectChangeEvent",
3465
+ "members": [
3466
+ {
3467
+ "kind": "field",
3468
+ "name": "value",
3469
+ "type": {
3470
+ "text": "string"
3471
+ },
3472
+ "readonly": true,
3473
+ "description": "Joined value string of the new selection (same as `tp-select.value`)."
3474
+ },
3475
+ {
3476
+ "kind": "field",
3477
+ "name": "selectedOptions",
3478
+ "type": {
3479
+ "text": "readonly OptionElement[]"
3480
+ },
3481
+ "readonly": true,
3482
+ "description": "Snapshot of the currently selected `<tp-option>` elements."
3483
+ }
3484
+ ],
3485
+ "superclass": {
3486
+ "name": "Event",
3487
+ "module": "src/select/select-change-event.ts"
3488
+ }
3489
+ }
3490
+ ],
3491
+ "exports": [
3492
+ {
3493
+ "kind": "js",
3494
+ "name": "SelectChangeEvent",
3495
+ "declaration": {
3496
+ "name": "SelectChangeEvent",
3497
+ "module": "src/select/select-change-event.ts"
3498
+ }
3499
+ }
3500
+ ]
3501
+ },
3502
+ {
3503
+ "kind": "javascript-module",
3504
+ "path": "src/select/select-context.ts",
3505
+ "declarations": [
3506
+ {
3507
+ "kind": "variable",
3508
+ "name": "selectContext",
3509
+ "description": "Context key carrying the host `<tp-select>` element down through the\r\ncomposed tree. Using `@lit/context` means consumers can be nested inside\r\nany number of shadow DOM boundaries and still find their `<tp-select>`\r\nvia the bubbling, composed `context-request` event."
3510
+ }
3511
+ ],
3512
+ "exports": [
3513
+ {
3514
+ "kind": "js",
3515
+ "name": "selectContext",
3516
+ "declaration": {
3517
+ "name": "selectContext",
3518
+ "module": "src/select/select-context.ts"
3519
+ }
3520
+ }
3521
+ ]
3522
+ },
3523
+ {
3524
+ "kind": "javascript-module",
3525
+ "path": "src/select/select.element.ts",
3526
+ "declarations": [
3527
+ {
3528
+ "kind": "class",
3529
+ "description": "A form-associated, framework-agnostic selectbox.\n\nComposes `<tp-popover>` for placement and `<tp-option>` for items.\nSingle-select by default; switches to multi-select via `max`.\n\n#### Examples\n\n**Single-select**\n\n```html\n<tp-select name=\"fruit\" required>\n <tp-option value=\"apple\">Apple</tp-option>\n <tp-option value=\"banana\">Banana</tp-option>\n</tp-select>\n```\n\n**Multi-select with eviction limit**\n\n```html\n<tp-select name=\"tags\" max=\"3\">…</tp-select>\n<tp-select name=\"tags\" max=\"infinite\">…</tp-select>\n```\n\n**Custom trigger button**\n\n```html\n<tp-select>\n <button slot=\"button\">Open</button>\n <tp-option value=\"a\">A</tp-option>\n</tp-select>\n```",
3530
+ "name": "SelectElement",
3531
+ "members": [
3532
+ {
3533
+ "kind": "field",
3534
+ "name": "formAssociated",
3535
+ "type": {
3536
+ "text": "boolean"
3537
+ },
3538
+ "static": true,
3539
+ "default": "true"
3540
+ },
3541
+ {
3542
+ "kind": "field",
3543
+ "name": "ALLOWED_OPTION_ELEMENTS",
3544
+ "type": {
3545
+ "text": "array"
3546
+ },
3547
+ "privacy": "private",
3548
+ "static": true,
3549
+ "default": "[OptionElement]"
3550
+ },
3551
+ {
3552
+ "kind": "field",
3553
+ "name": "#options",
3554
+ "privacy": "private",
3555
+ "default": "new Set<OptionElement>()"
3556
+ },
3557
+ {
3558
+ "kind": "field",
3559
+ "name": "#popover",
3560
+ "privacy": "private",
3561
+ "type": {
3562
+ "text": "PopoverElement"
3563
+ },
3564
+ "readonly": true
3565
+ },
3566
+ {
3567
+ "kind": "field",
3568
+ "name": "self",
3569
+ "type": {
3570
+ "text": "SelectElement"
3571
+ },
3572
+ "readonly": true,
3573
+ "default": "this",
3574
+ "description": "Provides this `<tp-select>` instance to descendants via `@lit/context`,\r\nso consumers (e.g. `<tp-selected-content>`) can find it across any\r\nnumber of shadow DOM boundaries — not just light-DOM ancestors."
3575
+ },
3576
+ {
3577
+ "kind": "field",
3578
+ "name": "selectedOptions",
3579
+ "readonly": true
3580
+ },
3581
+ {
3582
+ "kind": "field",
3583
+ "name": "#lastSetValue",
3584
+ "privacy": "private",
3585
+ "type": {
3586
+ "text": "string | null"
3587
+ },
3588
+ "default": "null"
3589
+ },
3590
+ {
3591
+ "kind": "field",
3592
+ "name": "#assignValueDebouncer",
3593
+ "privacy": "private"
3594
+ },
3595
+ {
3596
+ "kind": "field",
3597
+ "name": "#value",
3598
+ "privacy": "private",
3599
+ "readonly": true
3600
+ },
3601
+ {
3602
+ "kind": "field",
3603
+ "name": "value",
3604
+ "type": {
3605
+ "text": "string"
3606
+ },
3607
+ "attribute": "value",
3608
+ "reflects": true
3609
+ },
3610
+ {
3611
+ "kind": "field",
3612
+ "name": "#placeholder",
3613
+ "privacy": "private",
3614
+ "readonly": true
3615
+ },
3616
+ {
3617
+ "kind": "field",
3618
+ "name": "placeholder",
3619
+ "type": {
3620
+ "text": "string"
3621
+ },
3622
+ "attribute": "placeholder",
3623
+ "reflects": true
3624
+ },
3625
+ {
3626
+ "kind": "field",
3627
+ "name": "max",
3628
+ "type": {
3629
+ "text": "number"
3630
+ },
3631
+ "default": "1",
3632
+ "description": "Maximum number of options that can be selected at once.\r\n\r\nDefaults to `1` (single-select). Any positive integer enables\r\nmulti-select up to that many entries. Use the literal string\r\n`\"infinite\"` in HTML to allow an unbounded\r\nselection — the converter normalises it to `Number.POSITIVE_INFINITY`.\r\n\r\nWhen the limit is reached and a new option is selected, the oldest\r\nentry in `selectedOptions` is dropped (FIFO) so the new selection can\r\nfit. Setting `max` to a smaller number trims the current selection\r\ndown to size from the end.",
3633
+ "attribute": "max",
3634
+ "reflects": true
3635
+ },
3636
+ {
3637
+ "kind": "field",
3638
+ "name": "min",
3639
+ "type": {
3640
+ "text": "number"
3641
+ },
3642
+ "default": "0",
3643
+ "description": "Minimum number of options that must remain selected.\r\n\r\nDefaults to `0` (no lower bound). When the current selection size is at\r\nor below `min`, calls to deselectOption (and the click-driven\r\ntoggle inside the popover) become no-ops, so the user can't drop below\r\nthe floor by interacting with the control. Programmatic writes to\r\n`value` and `selectedOptions` are not policed — `min` is purely an\r\ninteraction guard.",
3644
+ "attribute": "min",
3645
+ "reflects": true
3646
+ },
3647
+ {
3648
+ "kind": "field",
3649
+ "name": "name",
3650
+ "type": {
3651
+ "text": "string | null"
3652
+ },
3653
+ "default": "null",
3654
+ "description": "Form field name. Submitted with the owning `<form>`.",
3655
+ "attribute": "name",
3656
+ "reflects": true
3657
+ },
3658
+ {
3659
+ "kind": "field",
3660
+ "name": "disabled",
3661
+ "type": {
3662
+ "text": "boolean"
3663
+ },
3664
+ "default": "false",
3665
+ "description": "When true, the element is non-interactive and excluded from form submission.",
3666
+ "attribute": "disabled",
3667
+ "reflects": true
3668
+ },
3669
+ {
3670
+ "kind": "field",
3671
+ "name": "required",
3672
+ "type": {
3673
+ "text": "boolean"
3674
+ },
3675
+ "default": "false",
3676
+ "description": "When true, an empty selection makes the element invalid (`valueMissing`).",
3677
+ "attribute": "required",
3678
+ "reflects": true
3679
+ },
3680
+ {
3681
+ "kind": "field",
3682
+ "name": "open",
3683
+ "type": {
3684
+ "text": "boolean"
3685
+ },
3686
+ "default": "false",
3687
+ "attribute": "open",
3688
+ "reflects": true
3689
+ },
3690
+ {
3691
+ "kind": "field",
3692
+ "name": "#internals",
3693
+ "privacy": "private",
3694
+ "type": {
3695
+ "text": "ElementInternals"
3696
+ },
3697
+ "readonly": true
3698
+ },
3699
+ {
3700
+ "kind": "field",
3701
+ "name": "#initialValue",
3702
+ "privacy": "private",
3703
+ "type": {
3704
+ "text": "string"
3705
+ },
3706
+ "default": "\"\"",
3707
+ "description": "Initial `value` captured at construction so `formResetCallback` can restore it."
3708
+ },
3709
+ {
3710
+ "kind": "field",
3711
+ "name": "#lastEmittedValue",
3712
+ "privacy": "private",
3713
+ "type": {
3714
+ "text": "string | null"
3715
+ },
3716
+ "default": "null",
3717
+ "description": "Last `value` for which a `change` event was emitted (or considered for\r\nemission). `null` means \"no sync has happened yet\" — used to suppress\r\nthe very first `willUpdate` so we don't emit a phantom change on mount."
3718
+ },
3719
+ {
3720
+ "kind": "field",
3721
+ "name": "internals",
3722
+ "type": {
3723
+ "text": "ElementInternals"
3724
+ },
3725
+ "description": "Live `ElementInternals` (validity, form, labels, etc.).",
3726
+ "readonly": true
3727
+ },
3728
+ {
3729
+ "kind": "field",
3730
+ "name": "form",
3731
+ "type": {
3732
+ "text": "HTMLFormElement | null"
3733
+ },
3734
+ "description": "Owning `<form>` element, or `null` when not associated.",
3735
+ "readonly": true
3736
+ },
3737
+ {
3738
+ "kind": "field",
3739
+ "name": "validity",
3740
+ "type": {
3741
+ "text": "ValidityState"
3742
+ },
3743
+ "description": "Native validity state of this control.",
3744
+ "readonly": true
3745
+ },
3746
+ {
3747
+ "kind": "field",
3748
+ "name": "validationMessage",
3749
+ "type": {
3750
+ "text": "string"
3751
+ },
3752
+ "readonly": true
3753
+ },
3754
+ {
3755
+ "kind": "field",
3756
+ "name": "willValidate",
3757
+ "type": {
3758
+ "text": "boolean"
3759
+ },
3760
+ "readonly": true
3761
+ },
3762
+ {
3763
+ "kind": "method",
3764
+ "name": "checkValidity",
3765
+ "return": {
3766
+ "type": {
3767
+ "text": "boolean"
3768
+ }
3769
+ }
3770
+ },
3771
+ {
3772
+ "kind": "method",
3773
+ "name": "reportValidity",
3774
+ "return": {
3775
+ "type": {
3776
+ "text": "boolean"
3777
+ }
3778
+ }
3779
+ },
3780
+ {
3781
+ "kind": "method",
3782
+ "name": "formResetCallback",
3783
+ "return": {
3784
+ "type": {
3785
+ "text": "void"
3786
+ }
3787
+ }
3788
+ },
3789
+ {
3790
+ "kind": "method",
3791
+ "name": "formDisabledCallback",
3792
+ "return": {
3793
+ "type": {
3794
+ "text": "void"
3795
+ }
3796
+ },
3797
+ "parameters": [
3798
+ {
3799
+ "name": "disabled",
3800
+ "type": {
3801
+ "text": "boolean"
3802
+ }
3803
+ }
3804
+ ]
3805
+ },
3806
+ {
3807
+ "kind": "method",
3808
+ "name": "formStateRestoreCallback",
3809
+ "return": {
3810
+ "type": {
3811
+ "text": "void"
3812
+ }
3813
+ },
3814
+ "parameters": [
3815
+ {
3816
+ "name": "state",
3817
+ "type": {
3818
+ "text": "File | string | FormData | null"
3819
+ }
3820
+ }
3821
+ ]
3822
+ },
3823
+ {
3824
+ "kind": "method",
3825
+ "name": "#syncForm",
3826
+ "privacy": "private",
3827
+ "return": {
3828
+ "type": {
3829
+ "text": "void"
3830
+ }
3831
+ },
3832
+ "description": "Push the current selection into `ElementInternals`. Single-select forms\r\nreport a string; multi-select forms report a `FormData` with one entry\r\nper selected value (so the form serialises the same way as a native\r\n`<select multiple>`). Also updates validity for `required`."
3833
+ },
3834
+ {
3835
+ "kind": "method",
3836
+ "name": "#dispatchChange",
3837
+ "privacy": "private",
3838
+ "return": {
3839
+ "type": {
3840
+ "text": "void"
3841
+ }
3842
+ },
3843
+ "description": "Dispatch a `SelectChangeEvent` when the joined value has actually\r\nchanged. Suppresses the very first sync so consumers don't see a\r\nphantom `change` on mount (matches native `<select>` behavior)."
3844
+ },
3845
+ {
3846
+ "kind": "method",
3847
+ "name": "selectOption",
3848
+ "return": {
3849
+ "type": {
3850
+ "text": "void"
3851
+ }
3852
+ },
3853
+ "parameters": [
3854
+ {
3855
+ "name": "option",
3856
+ "type": {
3857
+ "text": "OptionElement"
3858
+ }
3859
+ }
3860
+ ]
3861
+ },
3862
+ {
3863
+ "kind": "method",
3864
+ "name": "deselectOption",
3865
+ "return": {
3866
+ "type": {
3867
+ "text": "void"
3868
+ }
3869
+ },
3870
+ "parameters": [
3871
+ {
3872
+ "name": "option",
3873
+ "type": {
3874
+ "text": "OptionElement"
3875
+ }
3876
+ }
3877
+ ]
3878
+ },
3879
+ {
3880
+ "kind": "method",
3881
+ "name": "toggleOption",
3882
+ "return": {
3883
+ "type": {
3884
+ "text": "void"
3885
+ }
3886
+ },
3887
+ "parameters": [
3888
+ {
3889
+ "name": "option",
3890
+ "type": {
3891
+ "text": "OptionElement"
3892
+ }
3893
+ }
3894
+ ]
3895
+ },
3896
+ {
3897
+ "kind": "method",
3898
+ "name": "togglePopover",
3899
+ "return": {
3900
+ "type": {
3901
+ "text": ""
3902
+ }
3903
+ },
3904
+ "description": "Open, close, or toggle the dropdown popover.\r\n\r\nOverrides the native HTMLElement.togglePopover so callers can\r\ndrive the select from outside without reaching into the shadow DOM.\r\n`<tp-select>` itself is not the popover element — the actual popover\r\nlives inside its shadow root — so the call is delegated to the inner\r\n`<tp-popover>`.",
3905
+ "parameters": [
3906
+ {
3907
+ "description": "Same shape as the native API: pass `true` to force open,\r\n`false` to force close, or a `{ force }` options bag. Omit to toggle\r\nbetween the two states.",
3908
+ "name": "options"
3909
+ }
3910
+ ]
3911
+ },
3912
+ {
3913
+ "kind": "method",
3914
+ "name": "hidePopover",
3915
+ "return": {
3916
+ "type": {
3917
+ "text": "void"
3918
+ }
3919
+ },
3920
+ "description": "Close the dropdown popover.\r\n\r\nOverrides the native HTMLElement.hidePopover so callers can\r\nclose the select from outside without reaching into the shadow DOM.\r\n`<tp-select>` itself is not the popover element — the actual popover\r\nlives inside its shadow root — so the call is delegated to the inner\r\n`<tp-popover>`.\r\n\r\nNo-op if the popover is already closed."
3921
+ },
3922
+ {
3923
+ "kind": "method",
3924
+ "name": "showPopover",
3925
+ "return": {
3926
+ "type": {
3927
+ "text": "void"
3928
+ }
3929
+ },
3930
+ "description": "Open the dropdown popover.\r\n\r\nOverrides the native HTMLElement.showPopover so callers can\r\nopen the select from outside without reaching into the shadow DOM.\r\n`<tp-select>` itself is not the popover element — the actual popover\r\nlives inside its shadow root — so the call is delegated to the inner\r\n`<tp-popover>`.",
3931
+ "parameters": [
3932
+ {
3933
+ "description": "Same shape as the native API (e.g. `{ source }` to set\r\nthe invoker for the popover invoker relationship).",
3934
+ "name": "options"
3935
+ }
3936
+ ]
3937
+ },
3938
+ {
3939
+ "kind": "method",
3940
+ "name": "[REGISTER_OPTION]",
3941
+ "return": {
3942
+ "type": {
3943
+ "text": "void"
3944
+ }
3945
+ },
3946
+ "parameters": [
3947
+ {
3948
+ "name": "option",
3949
+ "type": {
3950
+ "text": "OptionElement"
3951
+ }
3952
+ }
3953
+ ]
3954
+ },
3955
+ {
3956
+ "kind": "method",
3957
+ "name": "[UNREGISTER_OPTION]",
3958
+ "return": {
3959
+ "type": {
3960
+ "text": "void"
3961
+ }
3962
+ },
3963
+ "parameters": [
3964
+ {
3965
+ "name": "option",
3966
+ "type": {
3967
+ "text": "OptionElement"
3968
+ }
3969
+ }
3970
+ ]
3971
+ },
3972
+ {
3973
+ "kind": "method",
3974
+ "name": "#handlePopoverClick",
3975
+ "privacy": "private",
3976
+ "return": {
3977
+ "type": {
3978
+ "text": "void"
3979
+ }
3980
+ },
3981
+ "parameters": [
3982
+ {
3983
+ "name": "e",
3984
+ "type": {
3985
+ "text": "MouseEvent"
3986
+ }
3987
+ }
3988
+ ]
3989
+ },
3990
+ {
3991
+ "kind": "method",
3992
+ "name": "#handlePopoverToggle",
3993
+ "privacy": "private",
3994
+ "return": {
3995
+ "type": {
3996
+ "text": "void"
3997
+ }
3998
+ },
3999
+ "parameters": [
4000
+ {
4001
+ "name": "e",
4002
+ "type": {
4003
+ "text": "ToggleEvent"
4004
+ }
4005
+ }
4006
+ ]
4007
+ },
4008
+ {
4009
+ "kind": "method",
4010
+ "name": "#signalSetter",
4011
+ "privacy": "private",
4012
+ "return": {
4013
+ "type": {
4014
+ "text": "void"
4015
+ }
4016
+ },
4017
+ "parameters": [
4018
+ {
4019
+ "name": "signal",
4020
+ "type": {
4021
+ "text": "Signal.State<T>"
4022
+ }
4023
+ },
4024
+ {
4025
+ "name": "propName",
4026
+ "type": {
4027
+ "text": "string"
4028
+ }
4029
+ },
4030
+ {
4031
+ "name": "newValue",
4032
+ "type": {
4033
+ "text": "T"
4034
+ }
4035
+ }
4036
+ ]
4037
+ },
4038
+ {
4039
+ "kind": "method",
4040
+ "name": "#assignValue",
4041
+ "privacy": "private"
4042
+ }
4043
+ ],
4044
+ "events": [
4045
+ {
4046
+ "name": "change",
4047
+ "description": "{@link SelectChangeEvent} dispatched when the selected option set changes. Bubbles, not composed (mirrors the native `<select>` `change` event). Not fired on initial mount or when the selection is re-set to the same value."
4048
+ }
4049
+ ],
4050
+ "attributes": [
4051
+ {
4052
+ "name": "value",
4053
+ "type": {
4054
+ "text": "string"
4055
+ },
4056
+ "fieldName": "value",
4057
+ "description": "Comma-joined list of selected `<tp-option>` values (read-only; derived from `selectedOptions`)."
4058
+ },
4059
+ {
4060
+ "name": "placeholder",
4061
+ "type": {
4062
+ "text": "string"
4063
+ },
4064
+ "fieldName": "placeholder",
4065
+ "description": "Text shown by `<tp-selected-content>` when no option is selected."
4066
+ },
4067
+ {
4068
+ "name": "max",
4069
+ "type": {
4070
+ "text": "number"
4071
+ },
4072
+ "default": "1",
4073
+ "description": "Maximum number of options that can be selected at once.\r\n\r\nDefaults to `1` (single-select). Any positive integer enables\r\nmulti-select up to that many entries. Use the literal string\r\n`\"infinite\"` in HTML to allow an unbounded\r\nselection — the converter normalises it to `Number.POSITIVE_INFINITY`.\r\n\r\nWhen the limit is reached and a new option is selected, the oldest\r\nentry in `selectedOptions` is dropped (FIFO) so the new selection can\r\nfit. Setting `max` to a smaller number trims the current selection\r\ndown to size from the end.",
4074
+ "fieldName": "max"
4075
+ },
4076
+ {
4077
+ "name": "min",
4078
+ "type": {
4079
+ "text": "number"
4080
+ },
4081
+ "default": "0",
4082
+ "description": "Minimum number of options that must remain selected.\r\n\r\nDefaults to `0` (no lower bound). When the current selection size is at\r\nor below `min`, calls to deselectOption (and the click-driven\r\ntoggle inside the popover) become no-ops, so the user can't drop below\r\nthe floor by interacting with the control. Programmatic writes to\r\n`value` and `selectedOptions` are not policed — `min` is purely an\r\ninteraction guard.",
4083
+ "fieldName": "min"
4084
+ },
4085
+ {
4086
+ "name": "name",
4087
+ "type": {
4088
+ "text": "string | null"
4089
+ },
4090
+ "default": "null",
4091
+ "description": "Form field name. Submitted with the owning `<form>`.",
4092
+ "fieldName": "name"
4093
+ },
4094
+ {
4095
+ "name": "disabled",
4096
+ "type": {
4097
+ "text": "boolean"
4098
+ },
4099
+ "default": "false",
4100
+ "description": "When true, the element is non-interactive and excluded from form submission.",
4101
+ "fieldName": "disabled"
4102
+ },
4103
+ {
4104
+ "name": "required",
4105
+ "type": {
4106
+ "text": "boolean"
4107
+ },
4108
+ "default": "false",
4109
+ "description": "When true, an empty selection makes the element invalid (`valueMissing`).",
4110
+ "fieldName": "required"
4111
+ },
4112
+ {
4113
+ "name": "open",
4114
+ "type": {
4115
+ "text": "boolean"
4116
+ },
4117
+ "default": "false",
4118
+ "fieldName": "open",
4119
+ "description": "Reflects the popover's open state (read-only)."
4120
+ },
4121
+ {
4122
+ "name": "color",
4123
+ "description": "Palette token from the shared shade-mixer system (`primary`, `secondary`, `success`, … or any custom token defined via `--tp-element-color`). Drives the selected-option highlight color (`--tp-select-selection-color`) and its contrast text color. Inherited from `ShadeMixerLitElement`."
4124
+ },
4125
+ {
4126
+ "name": "shade",
4127
+ "description": "`0`–`1000` (default `500`). Lightens (`<500`, mixes white) or darkens (`>500`, mixes black) the resolved `color` before it feeds the selection highlight. Inherited from `ShadeMixerLitElement`."
4128
+ },
4129
+ {
4130
+ "name": "mixer",
4131
+ "description": "Read-only output (`none` / `black` / `white`) auto-derived from `shade`. Inherited from `ShadeMixerLitElement`."
4132
+ }
4133
+ ],
4134
+ "superclass": {
4135
+ "name": "ShadeMixerSignalWatcherLitElement",
4136
+ "module": "/src/utils/signal-watcher-lit-element"
4137
+ },
4138
+ "tagName": "tp-select",
4139
+ "customElement": true,
4140
+ "slots": [
4141
+ {
4142
+ "name": "button",
4143
+ "description": "Replaces the default trigger button."
4144
+ },
4145
+ {
4146
+ "name": "indicator",
4147
+ "description": "Replaces the default open/close caret (`▾`) shown inside the trigger button. Rendered next to `<tp-selected-content>`; rotates 180° while the select is `open` (via the `[pseudo=\"indicator\"]` styling)."
4148
+ },
4149
+ {
4150
+ "name": "popover",
4151
+ "description": "Replaces the default rendering of the host's children inside the panel. Use this when you want to keep the `<tp-option>`s registered in the select context — so selection, validation and form submission still work — but display something else in the popover (a message, a search field, a custom layout, …) instead of the default option list."
4152
+ },
4153
+ {
4154
+ "name": "placeholder",
4155
+ "description": "Replaces the default placeholder span inside `<tp-selected-content>` when no option is selected. Forwarded by the light-DOM `<slot name=\"placeholder\">` that `<tp-selected-content>` renders, so any direct child of `<tp-select>` carrying `slot=\"placeholder\"` is projected as the empty-state label (icon + text, custom markup, etc.)."
4156
+ },
4157
+ {
4158
+ "name": "",
4159
+ "description": "Default slot inside the popover (where `<tp-option>`s go)."
4160
+ }
4161
+ ],
4162
+ "cssParts": [
4163
+ {
4164
+ "name": "button",
4165
+ "description": "The trigger wrapper."
4166
+ },
4167
+ {
4168
+ "name": "indicator",
4169
+ "description": "The default open/close caret (`▾`). Rotated 180° while the select is `open`. Suppressed when the `indicator` slot is filled."
4170
+ },
4171
+ {
4172
+ "name": "popover",
4173
+ "description": "The `<tp-popover>` panel."
4174
+ },
4175
+ {
4176
+ "name": "selected-content",
4177
+ "description": "The default `<tp-selected-content>`."
4178
+ },
4179
+ {
4180
+ "name": "placeholder",
4181
+ "description": "The `<span>` rendered by the default `<tp-selected-content>` when no option is selected (renders the `placeholder` attribute). Exposed because `<tp-selected-content>` is light-DOM and lives inside this element's shadow root by default."
4182
+ },
4183
+ {
4184
+ "name": "selected-content-option",
4185
+ "description": "Each cloned `<tp-option>` mirrored by the default `<tp-selected-content>`. Exposed for the same reason as `placeholder`. Set on the clones themselves — use `tp-select::part(selected-content-option)` to style them."
4186
+ }
4187
+ ]
4188
+ }
4189
+ ],
4190
+ "exports": [
4191
+ {
4192
+ "kind": "js",
4193
+ "name": "SelectElement",
4194
+ "declaration": {
4195
+ "name": "SelectElement",
4196
+ "module": "src/select/select.element.ts"
4197
+ }
4198
+ },
4199
+ {
4200
+ "kind": "custom-element-definition",
4201
+ "name": "tp-select",
4202
+ "declaration": {
4203
+ "name": "SelectElement",
4204
+ "module": "src/select/select.element.ts"
4205
+ }
4206
+ }
4207
+ ]
4208
+ },
4209
+ {
4210
+ "kind": "javascript-module",
4211
+ "path": "src/select/selected-content.element.ts",
4212
+ "declarations": [
4213
+ {
4214
+ "kind": "class",
4215
+ "description": "Mirrors the currently-selected `<tp-option>`(s) of an ancestor\n`<tp-select>`, falling back to the host's `placeholder` text when\nthe selection is empty.\n\nDiscovers its host via `@lit/context`, so it can live anywhere in\nthe descendant composed tree — including across nested shadow DOM\nboundaries. Selected options are deeply cloned and projected into\nthis element's light DOM; clones are inert (they don't register\nback to the select) and carry `part=\"selected-content-option\"`.\n\nUsed as the default content of the `<tp-select>` trigger button,\nbut can be placed anywhere a label-style mirror is useful.\n\n#### Examples\n\n```html\n<tp-select>\n <button slot=\"button\">\n <tp-selected-content></tp-selected-content>\n </button>\n <tp-option value=\"apple\">Apple</tp-option>\n</tp-select>\n```\n\nRenders into its own light DOM, so it has no slots and exposes no CSS\nShadow Parts of its own. The `part` attributes it stamps onto the rendered\nplaceholder span and cloned `<tp-option>`s only become real Shadow Parts\nwhen this element happens to sit inside another shadow root — which is\nwhat happens by default inside `<tp-select>`, so those parts (`placeholder`,\n`selected-content-option`) are documented on `<tp-select>`.\n\nThe empty-state markup is wrapped in `<slot name=\"placeholder\">…</slot>`.\nBecause this element renders into light DOM, that `<slot>` ends up sitting\ninside its host shadow root — so when used as the default content of a\n`<tp-select>`, any `slot=\"placeholder\"` child of the `<tp-select>` is\nprojected as the empty-state label.",
4216
+ "name": "SelectedContentElement",
4217
+ "members": [
4218
+ {
4219
+ "kind": "field",
4220
+ "name": "#cloneCache",
4221
+ "privacy": "private",
4222
+ "default": "new WeakMap<OptionElement, DomClone<OptionElement>>()"
4223
+ },
4224
+ {
4225
+ "kind": "field",
4226
+ "name": "select",
4227
+ "type": {
4228
+ "text": "SelectElement | undefined"
4229
+ },
4230
+ "privacy": "private"
4231
+ },
4232
+ {
4233
+ "kind": "method",
4234
+ "name": "#getOptionClones",
4235
+ "privacy": "private",
4236
+ "return": {
4237
+ "type": {
4238
+ "text": "OptionElement[]"
4239
+ }
4240
+ },
4241
+ "parameters": [
4242
+ {
4243
+ "name": "options",
4244
+ "type": {
4245
+ "text": "OptionElement[]"
4246
+ }
4247
+ }
4248
+ ]
4249
+ }
4250
+ ],
4251
+ "superclass": {
4252
+ "name": "SignalWatcherLitElement",
4253
+ "module": "/src/utils/signal-watcher-lit-element"
4254
+ },
4255
+ "tagName": "tp-selected-content",
4256
+ "customElement": true
4257
+ }
4258
+ ],
4259
+ "exports": [
4260
+ {
4261
+ "kind": "js",
4262
+ "name": "SelectedContentElement",
4263
+ "declaration": {
4264
+ "name": "SelectedContentElement",
4265
+ "module": "src/select/selected-content.element.ts"
4266
+ }
4267
+ },
4268
+ {
4269
+ "kind": "custom-element-definition",
4270
+ "name": "tp-selected-content",
4271
+ "declaration": {
4272
+ "name": "SelectedContentElement",
4273
+ "module": "src/select/selected-content.element.ts"
4274
+ }
4275
+ }
4276
+ ]
4277
+ },
4278
+ {
4279
+ "kind": "javascript-module",
4280
+ "path": "src/utils/shade-mixer-lit-element.ts",
4281
+ "declarations": [
4282
+ {
4283
+ "kind": "class",
4284
+ "description": "Base class that powers Telperion's shared color/design system.\r\n\r\nElements that extend `ShadeMixerLitElement` participate in a fully themable\r\npalette driven entirely by CSS custom properties. The class:\r\n\r\n1. Auto-injects a default palette onto `:root` &mdash; `--tp-color-white`,\r\n `--tp-color-black`, `--tp-color-contrast`, `--tp-color-primary`,\r\n `--tp-color-secondary`, `--tp-color-tertiary`, `--tp-color-quaternary`,\r\n `--tp-color-success`, `--tp-color-danger`, `--tp-color-warning`, and\r\n `--tp-color-neutral`. Override any of them at `:root` or any ancestor to\r\n re-theme every shade-mixer-aware element underneath.\r\n2. Exposes `shadedElementStyles` &mdash; a `css` block that resolves the\r\n selected `color` to `--tp-element-color`, applies the `shade`/`mixer`\r\n math, and exposes the result as `--tp-calc-element-color` and\r\n `--tp-calc-contrast-color` for consumers (variants, hover, focus, …).\r\n Subclasses include it once in their own host rule.\r\n3. Provides three reflected attributes that drive the math:\r\n - `color` &mdash; palette token name (predefined or custom).\r\n - `shade` (`0`&ndash;`1000`, default `500`) &mdash; lighten/darken the\r\n resolved color (`<500` mixes white, `>500` mixes black).\r\n - `mixer` (`none` / `black` / `white`) &mdash; read-only output, auto-set\r\n whenever `shade` changes.\r\n\r\n**Adding custom color tokens.** If the predefined names are not enough,\r\ndeclare a new selector that supplies `--tp-element-color`:\r\n\r\n```css\r\ntp-button[color=\"brand\"] {\r\n --tp-element-color: hsl(265 75% 45%);\r\n}\r\n```\r\n\r\nThe shade math, hover/focus styles, and contrast color all derive from this\r\none variable, so the new token \"just works\" with `shade`, `variant`, etc.",
4285
+ "name": "ShadeMixerLitElement",
4286
+ "members": [
4287
+ {
4288
+ "kind": "field",
4289
+ "name": "rootStyles",
4290
+ "static": true
4291
+ },
4292
+ {
4293
+ "kind": "field",
4294
+ "name": "shadedElementStyles",
4295
+ "static": true,
4296
+ "default": "css` --tp-element-color: var(--tp-color-primary); --tp-shade-attr: attr(shade type(<number>)); --tp-shade-mixer-type: attr(mixer type(*)); --tp-shade-mixer-color: if( style(--tp-shade-mixer-type: black): var(--tp-color-black); else: var(--tp-color-white) ); --tp-shade-mixer-percent: if( style(--tp-shade-mixer-type: black): calc(100% - ((var(--tp-shade-attr) - 500) / 500 * 100%)); else: calc(100% - ((500 - var(--tp-shade-attr)) / 500 * 100%)) ); --tp-calc-element-color: color-mix(in xyz, var(--tp-element-color) var(--tp-shade-mixer-percent), var(--tp-shade-mixer-color) calc(100% - var(--tp-shade-mixer-percent))); --tp-calc-contrast-color: contrast-color(var(--tp-calc-element-color)); --tp-contrast-color: if( style(--tp-calc-contrast-color: white): var(--tp-color-white); else: var(--tp-color-black); ); &[color=\"contrast\"] { --tp-element-color: var(--tp-color-contrast); } &[color=\"primary\"] { --tp-element-color: var(--tp-color-primary); } &[color=\"secondary\"] { --tp-element-color: var(--tp-color-secondary); } &[color=\"tertiary\"] { --tp-element-color: var(--tp-color-tertiary); } &[color=\"quaternary\"] { --tp-element-color: var(--tp-color-quaternary); } &[color=\"success\"] { --tp-element-color: var(--tp-color-success); } &[color=\"danger\"] { --tp-element-color: var(--tp-color-danger); } &[color=\"warning\"] { --tp-element-color: var(--tp-color-warning); } &[color=\"neutral\"] { --tp-element-color: var(--tp-color-neutral); } `"
4297
+ },
4298
+ {
4299
+ "kind": "field",
4300
+ "name": "color",
4301
+ "type": {
4302
+ "text": "PredefinedColors | string"
4303
+ },
4304
+ "default": "\"contrast\"",
4305
+ "attribute": "color",
4306
+ "reflects": true
4307
+ },
4308
+ {
4309
+ "kind": "field",
4310
+ "name": "shade",
4311
+ "type": {
4312
+ "text": "number"
4313
+ },
4314
+ "default": "500",
4315
+ "attribute": "shade",
4316
+ "reflects": true
4317
+ },
4318
+ {
4319
+ "kind": "field",
4320
+ "name": "mixer",
4321
+ "type": {
4322
+ "text": "ShadeMixerType"
4323
+ },
4324
+ "default": "\"none\"",
4325
+ "attribute": "mixer",
4326
+ "reflects": true
4327
+ }
4328
+ ],
4329
+ "attributes": [
4330
+ {
4331
+ "name": "color",
4332
+ "type": {
4333
+ "text": "PredefinedColors | string"
4334
+ },
4335
+ "default": "\"contrast\"",
4336
+ "fieldName": "color"
4337
+ },
4338
+ {
4339
+ "name": "shade",
4340
+ "type": {
4341
+ "text": "number"
4342
+ },
4343
+ "default": "500",
4344
+ "fieldName": "shade"
4345
+ },
4346
+ {
4347
+ "name": "mixer",
4348
+ "type": {
4349
+ "text": "ShadeMixerType"
4350
+ },
4351
+ "default": "\"none\"",
4352
+ "fieldName": "mixer"
4353
+ }
4354
+ ],
4355
+ "superclass": {
4356
+ "name": "LitElement",
4357
+ "package": "lit"
4358
+ },
4359
+ "customElement": true
4360
+ }
4361
+ ],
4362
+ "exports": [
4363
+ {
4364
+ "kind": "js",
4365
+ "name": "ShadeMixerLitElement",
4366
+ "declaration": {
4367
+ "name": "ShadeMixerLitElement",
4368
+ "module": "src/utils/shade-mixer-lit-element.ts"
4369
+ }
4370
+ }
4371
+ ]
4372
+ },
4373
+ {
4374
+ "kind": "javascript-module",
4375
+ "path": "src/utils/signal-watcher-lit-element.ts",
4376
+ "declarations": [
4377
+ {
4378
+ "kind": "variable",
4379
+ "name": "SignalWatcherLitElement",
4380
+ "default": "SignalWatcher(LitElement)",
4381
+ "description": "A LitElement base class extended with SignalWatcher capabilities.\n\nThis class allows LitElement components to reactively watch for changes"
4382
+ },
4383
+ {
4384
+ "kind": "variable",
4385
+ "name": "ShadeMixerSignalWatcherLitElement",
4386
+ "default": "SignalWatcher(ShadeMixerLitElement)"
4387
+ }
4388
+ ],
4389
+ "exports": [
4390
+ {
4391
+ "kind": "js",
4392
+ "name": "SignalWatcherLitElement",
4393
+ "declaration": {
4394
+ "name": "SignalWatcherLitElement",
4395
+ "module": "src/utils/signal-watcher-lit-element.ts"
4396
+ }
4397
+ },
4398
+ {
4399
+ "kind": "js",
4400
+ "name": "ShadeMixerSignalWatcherLitElement",
4401
+ "declaration": {
4402
+ "name": "ShadeMixerSignalWatcherLitElement",
4403
+ "module": "src/utils/signal-watcher-lit-element.ts"
4404
+ }
4405
+ }
4406
+ ]
4407
+ }
4408
+ ]
4409
+ }