@telperion/elements 1.2.1 → 2.0.1

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,394 @@
1
+ import { __decorate, __metadata } from 'tslib';
2
+ import { LitElement, html } from 'lit';
3
+ import { property, customElement } from 'lit/decorators.js';
4
+
5
+ /**
6
+ * Index resolution for `<template summary-marker index="…">`.
7
+ * - Missing / non-finite ⇒ `0` (prepend).
8
+ * - `>= 0` ⇒ clamped to `[0, length]`.
9
+ * - `< 0` ⇒ counts from the end where `-1` is the end (append),
10
+ * `-2` is before the last child, etc. Computed as `length + raw + 1`,
11
+ * clamped to `[0, length]` (so over-negative values prepend).
12
+ */
13
+ function resolveMarkerIndex(raw, length) {
14
+ if (raw === null || raw === "")
15
+ return 0;
16
+ const n = Number(raw);
17
+ if (!Number.isFinite(n))
18
+ return 0;
19
+ const i = Math.trunc(n);
20
+ if (i >= 0)
21
+ return Math.min(i, length);
22
+ return Math.max(0, length + i + 1);
23
+ }
24
+ let DetailsSetElement = class DetailsSetElement extends LitElement {
25
+ constructor() {
26
+ super(...arguments);
27
+ /**
28
+ * Maximum number of direct-child `<details>` allowed open at the same time.
29
+ * `0` (the default) means unlimited.
30
+ */
31
+ this.maxOpenItems = 0;
32
+ /**
33
+ * Default trigger for toggling direct-child `<details>` elements:
34
+ *
35
+ * - `"summary"` (default): clicking anywhere on the `<summary>` toggles
36
+ * the details (native behavior).
37
+ * - `"marker"`: only clicks on (or inside) an element carrying the
38
+ * `tp-summary-marker` attribute toggle the details. If the summary has
39
+ * no marker, this falls back to summary toggle for that details so the
40
+ * details never becomes un-toggleable.
41
+ *
42
+ * Per-`<details>` `toggle-on` attribute overrides this set-level default.
43
+ * Keyboard activation (Enter/Space on a focused summary) is **never**
44
+ * suppressed, regardless of mode.
45
+ */
46
+ this.toggleOn = "summary";
47
+ /** FIFO queue of currently-open direct-child `<details>` elements. */
48
+ this.#openOrder = [];
49
+ /** Per-child observers watching the `open` attribute. */
50
+ this.#childObservers = new Map();
51
+ /** Per-marker-template observers (content + `index` attribute changes). */
52
+ this.#markerObservers = new Map();
53
+ /**
54
+ * Tracks raw cloned marker nodes inserted into each summary, keyed by the
55
+ * source template, so re-syncs can remove and re-insert without leaving
56
+ * stale DOM behind.
57
+ */
58
+ this.#insertedMarkers = new WeakMap();
59
+ this.#handleMarkerTemplateMutation = () => {
60
+ this.#syncAllMarkers();
61
+ };
62
+ this.#handleChildListMutation = () => {
63
+ this.#syncDirectChildren();
64
+ };
65
+ this.#handleToggle = (event) => {
66
+ const target = event.target;
67
+ if (!(target instanceof HTMLDetailsElement))
68
+ return;
69
+ if (target.parentElement !== this)
70
+ return;
71
+ this.#applyOpenState(target);
72
+ };
73
+ this.#handleChildOpenMutation = (child) => {
74
+ // Reconcile in case the `toggle` event was missed (e.g. in jsdom or when
75
+ // the `open` attribute is mutated programmatically without a toggle).
76
+ this.#applyOpenState(child);
77
+ };
78
+ /**
79
+ * Capture-phase click handler that suppresses the native toggle when a
80
+ * `<summary>` is clicked outside its marker(s) and the effective
81
+ * `toggle-on` mode is `"marker"`.
82
+ *
83
+ * Resolution per `<details>`:
84
+ * - per-`<details>` `toggle-on` attribute (if `"summary"` or `"marker"`),
85
+ * else
86
+ * - the host's `toggle-on` property/attribute, else
87
+ * - `"summary"`.
88
+ *
89
+ * Carve-outs:
90
+ * - Keyboard activation (Enter/Space) produces a synthetic click with
91
+ * `event.detail === 0`; we never suppress those.
92
+ * - If the summary contains no `[tp-summary-marker]` element, fall back to
93
+ * summary-click toggle so the details cannot become un-toggleable.
94
+ */
95
+ this.#handleSummaryClick = (event) => {
96
+ if (event.defaultPrevented)
97
+ return;
98
+ const target = event.target;
99
+ if (!(target instanceof Element))
100
+ return;
101
+ const summary = target.closest("summary");
102
+ if (!summary)
103
+ return;
104
+ const details = summary.parentElement;
105
+ if (!(details instanceof HTMLDetailsElement))
106
+ return;
107
+ if (details.parentElement !== this)
108
+ return;
109
+ // Only intercept clicks targeting the details' own first summary.
110
+ if (summary !== details.querySelector(":scope > summary"))
111
+ return;
112
+ const mode = this.#resolveToggleOn(details);
113
+ if (mode !== "marker")
114
+ return;
115
+ // Keyboard-originated synthetic click: never suppress.
116
+ if (event.detail === 0)
117
+ return;
118
+ // Fallback: if there is no marker in the summary, allow the native toggle
119
+ // so the details never becomes un-toggleable.
120
+ if (!summary.querySelector("[tp-summary-marker]"))
121
+ return;
122
+ if (target.closest("[tp-summary-marker]"))
123
+ return;
124
+ event.preventDefault();
125
+ };
126
+ }
127
+ static {
128
+ const style = (this.GLOBAL_STYLE = document.createElement("style"));
129
+ style.textContent = `
130
+ tp-details-set {
131
+ display: block;
132
+ interpolate-size: allow-keywords;
133
+ }
134
+
135
+ tp-details-set > details::details-content {
136
+ block-size: 0;
137
+ overflow: clip;
138
+ transition:
139
+ block-size var(--tp-details-set-transition-duration, 0.3s)
140
+ var(--tp-details-set-transition-easing, ease),
141
+ content-visibility var(--tp-details-set-transition-duration, 0.3s)
142
+ var(--tp-details-set-transition-easing, ease)
143
+ allow-discrete;
144
+ }
145
+
146
+ tp-details-set > details[open]::details-content {
147
+ block-size: auto;
148
+ }
149
+
150
+ /* Hide the native disclosure marker when the consumer has supplied at
151
+ least one custom marker via <template summary-marker>. */
152
+ tp-details-set > details > summary:has(> [tp-summary-marker]) {
153
+ list-style: none;
154
+ }
155
+ tp-details-set > details > summary:has(> [tp-summary-marker])::-webkit-details-marker {
156
+ display: none;
157
+ }
158
+ tp-details-set > details > summary:has(> [tp-summary-marker])::marker {
159
+ content: "";
160
+ }
161
+ `;
162
+ document.head.appendChild(style);
163
+ }
164
+ /** FIFO queue of currently-open direct-child `<details>` elements. */
165
+ #openOrder;
166
+ /** Per-child observers watching the `open` attribute. */
167
+ #childObservers;
168
+ /** Observer watching `childList` changes on the host. */
169
+ #childListObserver;
170
+ /** Per-marker-template observers (content + `index` attribute changes). */
171
+ #markerObservers;
172
+ /**
173
+ * Tracks raw cloned marker nodes inserted into each summary, keyed by the
174
+ * source template, so re-syncs can remove and re-insert without leaving
175
+ * stale DOM behind.
176
+ */
177
+ #insertedMarkers;
178
+ createRenderRoot() {
179
+ return this;
180
+ }
181
+ connectedCallback() {
182
+ super.connectedCallback();
183
+ // Capture-phase `toggle` listener: `toggle` does not bubble, but capture
184
+ // phase still reaches ancestors.
185
+ this.addEventListener("toggle", this.#handleToggle, { capture: true });
186
+ // Capture-phase click listener implements `toggle-on="marker"` by calling
187
+ // `preventDefault()` for non-marker clicks on summaries.
188
+ this.addEventListener("click", this.#handleSummaryClick, { capture: true });
189
+ this.#childListObserver = new MutationObserver(this.#handleChildListMutation);
190
+ this.#childListObserver.observe(this, { childList: true });
191
+ this.#syncDirectChildren();
192
+ }
193
+ disconnectedCallback() {
194
+ super.disconnectedCallback();
195
+ this.removeEventListener("toggle", this.#handleToggle, { capture: true });
196
+ this.removeEventListener("click", this.#handleSummaryClick, { capture: true });
197
+ this.#childListObserver?.disconnect();
198
+ this.#childListObserver = undefined;
199
+ for (const observer of this.#childObservers.values()) {
200
+ observer.disconnect();
201
+ }
202
+ this.#childObservers.clear();
203
+ for (const observer of this.#markerObservers.values()) {
204
+ observer.disconnect();
205
+ }
206
+ this.#markerObservers.clear();
207
+ this.#openOrder = [];
208
+ }
209
+ updated(changed) {
210
+ if (changed.has("maxOpenItems")) {
211
+ this.#enforceLimit();
212
+ }
213
+ }
214
+ render() {
215
+ return html ``;
216
+ }
217
+ /**
218
+ * Reconcile observers and the FIFO queue with the current direct children.
219
+ * Called on connect and whenever the host's child list mutates.
220
+ */
221
+ #syncDirectChildren() {
222
+ const current = new Set(this.#directDetails());
223
+ // Drop observers + queue entries for removed children.
224
+ for (const [child, observer] of this.#childObservers) {
225
+ if (!current.has(child)) {
226
+ observer.disconnect();
227
+ this.#childObservers.delete(child);
228
+ }
229
+ }
230
+ this.#openOrder = this.#openOrder.filter((child) => current.has(child));
231
+ // Attach observers for new children, seed the queue with already-open ones.
232
+ for (const child of current) {
233
+ if (!this.#childObservers.has(child)) {
234
+ const observer = new MutationObserver(() => this.#handleChildOpenMutation(child));
235
+ observer.observe(child, { attributes: true, attributeFilter: ["open"] });
236
+ this.#childObservers.set(child, observer);
237
+ if (child.open && !this.#openOrder.includes(child)) {
238
+ this.#openOrder.push(child);
239
+ }
240
+ }
241
+ }
242
+ this.#enforceLimit();
243
+ this.#syncMarkerTemplates();
244
+ this.#syncAllMarkers();
245
+ }
246
+ /** Reconcile per-template observers with the current marker templates. */
247
+ #syncMarkerTemplates() {
248
+ const current = new Set(this.#markerTemplates());
249
+ for (const [template, observer] of this.#markerObservers) {
250
+ if (!current.has(template)) {
251
+ observer.disconnect();
252
+ this.#markerObservers.delete(template);
253
+ }
254
+ }
255
+ for (const template of current) {
256
+ if (!this.#markerObservers.has(template)) {
257
+ const observer = new MutationObserver(this.#handleMarkerTemplateMutation);
258
+ // Watch both the template's own `index` attribute and its content
259
+ // (including nested edits inside `template.content`).
260
+ observer.observe(template, {
261
+ attributes: true,
262
+ attributeFilter: ["index", "summary-marker"],
263
+ });
264
+ observer.observe(template.content, { childList: true, subtree: true, characterData: true, attributes: true });
265
+ this.#markerObservers.set(template, observer);
266
+ }
267
+ }
268
+ }
269
+ #handleMarkerTemplateMutation;
270
+ /** Apply marker templates to every direct-child `<details>`'s `<summary>`. */
271
+ #syncAllMarkers() {
272
+ const templates = this.#markerTemplates();
273
+ for (const details of this.#directDetails()) {
274
+ const summary = details.querySelector(":scope > summary");
275
+ if (summary instanceof HTMLElement) {
276
+ this.#applyMarkersTo(summary, templates);
277
+ }
278
+ }
279
+ }
280
+ #applyMarkersTo(summary, templates) {
281
+ let perTemplate = this.#insertedMarkers.get(summary);
282
+ if (!perTemplate) {
283
+ perTemplate = new Map();
284
+ this.#insertedMarkers.set(summary, perTemplate);
285
+ }
286
+ // Remove all previously-inserted marker nodes for this summary first, so
287
+ // re-application is order-stable and never duplicates.
288
+ for (const nodes of perTemplate.values()) {
289
+ for (const node of nodes) {
290
+ if (node.parentNode === summary)
291
+ summary.removeChild(node);
292
+ }
293
+ }
294
+ perTemplate.clear();
295
+ for (const template of templates) {
296
+ const fragment = template.content.cloneNode(true);
297
+ // Capture nodes BEFORE insertion — the fragment empties on append.
298
+ const inserted = Array.from(fragment.childNodes);
299
+ if (inserted.length === 0)
300
+ continue;
301
+ // Tag every cloned element so consumers can target markers via CSS
302
+ // (e.g. `[tp-summary-marker]`) and so the host stylesheet can hide the
303
+ // native `::marker` on summaries that have a custom marker.
304
+ for (const node of inserted) {
305
+ if (node instanceof Element)
306
+ node.setAttribute("tp-summary-marker", "");
307
+ }
308
+ const idx = resolveMarkerIndex(template.getAttribute("index"), summary.childNodes.length);
309
+ const ref = summary.childNodes[idx] ?? null;
310
+ summary.insertBefore(fragment, ref);
311
+ perTemplate.set(template, inserted);
312
+ }
313
+ }
314
+ /** Direct-child `<template>` elements with the `summary-marker` attribute. */
315
+ #markerTemplates() {
316
+ return Array.from(this.children).filter((c) => c instanceof HTMLTemplateElement && c.hasAttribute("summary-marker"));
317
+ }
318
+ #directDetails() {
319
+ return Array.from(this.children).filter((c) => c instanceof HTMLDetailsElement);
320
+ }
321
+ #handleChildListMutation;
322
+ #handleToggle;
323
+ #handleChildOpenMutation;
324
+ /**
325
+ * Capture-phase click handler that suppresses the native toggle when a
326
+ * `<summary>` is clicked outside its marker(s) and the effective
327
+ * `toggle-on` mode is `"marker"`.
328
+ *
329
+ * Resolution per `<details>`:
330
+ * - per-`<details>` `toggle-on` attribute (if `"summary"` or `"marker"`),
331
+ * else
332
+ * - the host's `toggle-on` property/attribute, else
333
+ * - `"summary"`.
334
+ *
335
+ * Carve-outs:
336
+ * - Keyboard activation (Enter/Space) produces a synthetic click with
337
+ * `event.detail === 0`; we never suppress those.
338
+ * - If the summary contains no `[tp-summary-marker]` element, fall back to
339
+ * summary-click toggle so the details cannot become un-toggleable.
340
+ */
341
+ #handleSummaryClick;
342
+ #resolveToggleOn(details) {
343
+ const own = details.getAttribute("toggle-on");
344
+ if (own === "marker" || own === "summary")
345
+ return own;
346
+ return this.toggleOn === "marker" ? "marker" : "summary";
347
+ }
348
+ #applyOpenState(child) {
349
+ const inQueue = this.#openOrder.includes(child);
350
+ if (child.open && !inQueue) {
351
+ this.#openOrder.push(child);
352
+ this.#enforceLimit();
353
+ }
354
+ else if (!child.open && inQueue) {
355
+ this.#openOrder = this.#openOrder.filter((entry) => entry !== child);
356
+ }
357
+ }
358
+ #enforceLimit() {
359
+ const limit = this.maxOpenItems;
360
+ if (!Number.isFinite(limit) || limit <= 0)
361
+ return;
362
+ const closed = [];
363
+ while (this.#openOrder.length > limit) {
364
+ const oldest = this.#openOrder.shift();
365
+ if (!oldest)
366
+ break;
367
+ if (oldest.open) {
368
+ oldest.open = false;
369
+ closed.push(oldest);
370
+ }
371
+ }
372
+ if (closed.length > 0) {
373
+ this.dispatchEvent(new CustomEvent("tp-details-set-change", {
374
+ bubbles: true,
375
+ composed: true,
376
+ detail: { opened: [], closed },
377
+ }));
378
+ }
379
+ }
380
+ };
381
+ __decorate([
382
+ property({ type: Number, reflect: true, attribute: "max-open-items" }),
383
+ __metadata("design:type", Object)
384
+ ], DetailsSetElement.prototype, "maxOpenItems", void 0);
385
+ __decorate([
386
+ property({ reflect: true, attribute: "toggle-on" }),
387
+ __metadata("design:type", String)
388
+ ], DetailsSetElement.prototype, "toggleOn", void 0);
389
+ DetailsSetElement = __decorate([
390
+ customElement("tp-details-set")
391
+ ], DetailsSetElement);
392
+
393
+ export { DetailsSetElement };
394
+ //# sourceMappingURL=details-set-element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"details-set-element.js","sources":["../../../../libs/elements/src/details-set/details-set-element.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;AAIA;;;;;;;AAOG;AACH,SAAS,kBAAkB,CAAC,GAAkB,EAAE,MAAc,EAAA;AAC5D,IAAA,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,EAAE;AAAE,QAAA,OAAO,CAAC;AACxC,I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,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE;AAC/B,aAAA,CAAC,CACH;QACH;IACF;;AA3UA,UAAA,CAAA;AADC,IAAA,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,CAAC;;AACtD,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAiBjB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;;AACT,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAhEhC,iBAAiB,GAAA,UAAA,CAAA;IAD7B,aAAa,CAAC,gBAAgB;AAClB,CAAA,EAAA,iBAAiB,CA2X7B;;;;"}
@@ -0,0 +1,11 @@
1
+ 'use strict';
2
+
3
+ var detailsSetElement = require('./details-set-element.cjs');
4
+
5
+
6
+
7
+ Object.defineProperty(exports, "DetailsSetElement", {
8
+ enumerable: true,
9
+ get: function () { return detailsSetElement.DetailsSetElement; }
10
+ });
11
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -0,0 +1,117 @@
1
+ import { LitElement, TemplateResult } from 'lit';
2
+
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ /**
6
+ * A framework-agnostic grouping element for native `<details>` elements.
7
+ *
8
+ * Tracks the open/closed state of its **direct-child** `<details>` elements
9
+ * and enforces a configurable cap via the `max-open-items` attribute. When
10
+ * the cap is exceeded, the **earliest-opened** child is closed (FIFO).
11
+ *
12
+ * Renders into the **light DOM** so consumers retain full control over the
13
+ * styling of the slotted `<details>` / `<summary>` elements.
14
+ *
15
+ * Modern CSS defaults (smooth open/close via `interpolate-size: allow-keywords`
16
+ * + `::details-content` `block-size` transition) are injected once at the
17
+ * document level. Override timing via the
18
+ * `--tp-details-set-transition-duration` and
19
+ * `--tp-details-set-transition-easing` custom properties. In engines that
20
+ * do not yet support `interpolate-size` / `::details-content`, the
21
+ * animation is simply a no-op &mdash; the JS cap logic still works.
22
+ *
23
+ * Dispatches a bubbling `tp-details-set-change` `CustomEvent` whose
24
+ * `detail` is `{ opened: HTMLDetailsElement[]; closed: HTMLDetailsElement[] }`
25
+ * whenever the cap forces one or more children to close. Listen to the
26
+ * native `toggle` event on the children for ordinary open/close changes.
27
+ *
28
+ * @example Unlimited (the default)
29
+ * ```html
30
+ * <tp-details-set>
31
+ * <details><summary>One</summary>...</details>
32
+ * <details><summary>Two</summary>...</details>
33
+ * </tp-details-set>
34
+ * ```
35
+ *
36
+ * @example Accordion
37
+ * ```html
38
+ * <tp-details-set max-open-items="1">
39
+ * <details><summary>One</summary>...</details>
40
+ * <details><summary>Two</summary>...</details>
41
+ * </tp-details-set>
42
+ * ```
43
+ *
44
+ * @example Two-at-a-time (FIFO)
45
+ * ```html
46
+ * <tp-details-set max-open-items="2">
47
+ * <details open><summary>A</summary>...</details>
48
+ * <details><summary>B</summary>...</details>
49
+ * <details><summary>C</summary>...</details>
50
+ * </tp-details-set>
51
+ * ```
52
+ *
53
+ * @example Summary markers
54
+ * Direct-child `<template summary-marker index="…">` elements are cloned
55
+ * into every direct-child `<details>`'s `<summary>` at the position given
56
+ * by `index`. Non-negative counts from the start (clamped to
57
+ * `[0, length]`); negative counts from the end where `-1` is the end
58
+ * (append), `-2` is before the last child, etc. Missing/invalid index
59
+ * defaults to `0`. Multiple marker templates apply in document order;
60
+ * each later marker sees the summary's current state (including markers
61
+ * already inserted by earlier templates) when computing its index.
62
+ * ```html
63
+ * <tp-details-set>
64
+ * <template summary-marker index="0"><span class="chev">▸</span></template>
65
+ * <template summary-marker index="-1"><span class="badge">★</span></template>
66
+ *
67
+ * <details><summary>One</summary>...</details>
68
+ * <details><summary>Two</summary>...</details>
69
+ * </tp-details-set>
70
+ * ```
71
+ * Use ordinary CSS for state-aware styling, e.g.
72
+ * `tp-details-set > details[open] > summary > .chev { rotate: 90deg; }`.
73
+ *
74
+ * @attr max-open-items - Maximum number of direct-child `<details>` allowed
75
+ * to be open simultaneously. `0` (or missing) means unlimited.
76
+ * @fires tp-details-set-change - When the set of open children changes.
77
+ */
78
+ "tp-details-set": DetailsSetElement;
79
+ }
80
+ interface GlobalEventHandlersEventMap {
81
+ "tp-details-set-change": CustomEvent<{
82
+ opened: HTMLDetailsElement[];
83
+ closed: HTMLDetailsElement[];
84
+ }>;
85
+ }
86
+ }
87
+ declare class DetailsSetElement extends LitElement {
88
+ #private;
89
+ private static GLOBAL_STYLE;
90
+ /**
91
+ * Maximum number of direct-child `<details>` allowed open at the same time.
92
+ * `0` (the default) means unlimited.
93
+ */
94
+ maxOpenItems: number;
95
+ /**
96
+ * Default trigger for toggling direct-child `<details>` elements:
97
+ *
98
+ * - `"summary"` (default): clicking anywhere on the `<summary>` toggles
99
+ * the details (native behavior).
100
+ * - `"marker"`: only clicks on (or inside) an element carrying the
101
+ * `tp-summary-marker` attribute toggle the details. If the summary has
102
+ * no marker, this falls back to summary toggle for that details so the
103
+ * details never becomes un-toggleable.
104
+ *
105
+ * Per-`<details>` `toggle-on` attribute overrides this set-level default.
106
+ * Keyboard activation (Enter/Space on a focused summary) is **never**
107
+ * suppressed, regardless of mode.
108
+ */
109
+ toggleOn: "summary" | "marker";
110
+ protected createRenderRoot(): HTMLElement;
111
+ connectedCallback(): void;
112
+ disconnectedCallback(): void;
113
+ protected updated(changed: Map<string, unknown>): void;
114
+ protected render(): TemplateResult;
115
+ }
116
+
117
+ export { DetailsSetElement };
@@ -0,0 +1,117 @@
1
+ import { LitElement, TemplateResult } from 'lit';
2
+
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ /**
6
+ * A framework-agnostic grouping element for native `<details>` elements.
7
+ *
8
+ * Tracks the open/closed state of its **direct-child** `<details>` elements
9
+ * and enforces a configurable cap via the `max-open-items` attribute. When
10
+ * the cap is exceeded, the **earliest-opened** child is closed (FIFO).
11
+ *
12
+ * Renders into the **light DOM** so consumers retain full control over the
13
+ * styling of the slotted `<details>` / `<summary>` elements.
14
+ *
15
+ * Modern CSS defaults (smooth open/close via `interpolate-size: allow-keywords`
16
+ * + `::details-content` `block-size` transition) are injected once at the
17
+ * document level. Override timing via the
18
+ * `--tp-details-set-transition-duration` and
19
+ * `--tp-details-set-transition-easing` custom properties. In engines that
20
+ * do not yet support `interpolate-size` / `::details-content`, the
21
+ * animation is simply a no-op &mdash; the JS cap logic still works.
22
+ *
23
+ * Dispatches a bubbling `tp-details-set-change` `CustomEvent` whose
24
+ * `detail` is `{ opened: HTMLDetailsElement[]; closed: HTMLDetailsElement[] }`
25
+ * whenever the cap forces one or more children to close. Listen to the
26
+ * native `toggle` event on the children for ordinary open/close changes.
27
+ *
28
+ * @example Unlimited (the default)
29
+ * ```html
30
+ * <tp-details-set>
31
+ * <details><summary>One</summary>...</details>
32
+ * <details><summary>Two</summary>...</details>
33
+ * </tp-details-set>
34
+ * ```
35
+ *
36
+ * @example Accordion
37
+ * ```html
38
+ * <tp-details-set max-open-items="1">
39
+ * <details><summary>One</summary>...</details>
40
+ * <details><summary>Two</summary>...</details>
41
+ * </tp-details-set>
42
+ * ```
43
+ *
44
+ * @example Two-at-a-time (FIFO)
45
+ * ```html
46
+ * <tp-details-set max-open-items="2">
47
+ * <details open><summary>A</summary>...</details>
48
+ * <details><summary>B</summary>...</details>
49
+ * <details><summary>C</summary>...</details>
50
+ * </tp-details-set>
51
+ * ```
52
+ *
53
+ * @example Summary markers
54
+ * Direct-child `<template summary-marker index="…">` elements are cloned
55
+ * into every direct-child `<details>`'s `<summary>` at the position given
56
+ * by `index`. Non-negative counts from the start (clamped to
57
+ * `[0, length]`); negative counts from the end where `-1` is the end
58
+ * (append), `-2` is before the last child, etc. Missing/invalid index
59
+ * defaults to `0`. Multiple marker templates apply in document order;
60
+ * each later marker sees the summary's current state (including markers
61
+ * already inserted by earlier templates) when computing its index.
62
+ * ```html
63
+ * <tp-details-set>
64
+ * <template summary-marker index="0"><span class="chev">▸</span></template>
65
+ * <template summary-marker index="-1"><span class="badge">★</span></template>
66
+ *
67
+ * <details><summary>One</summary>...</details>
68
+ * <details><summary>Two</summary>...</details>
69
+ * </tp-details-set>
70
+ * ```
71
+ * Use ordinary CSS for state-aware styling, e.g.
72
+ * `tp-details-set > details[open] > summary > .chev { rotate: 90deg; }`.
73
+ *
74
+ * @attr max-open-items - Maximum number of direct-child `<details>` allowed
75
+ * to be open simultaneously. `0` (or missing) means unlimited.
76
+ * @fires tp-details-set-change - When the set of open children changes.
77
+ */
78
+ "tp-details-set": DetailsSetElement;
79
+ }
80
+ interface GlobalEventHandlersEventMap {
81
+ "tp-details-set-change": CustomEvent<{
82
+ opened: HTMLDetailsElement[];
83
+ closed: HTMLDetailsElement[];
84
+ }>;
85
+ }
86
+ }
87
+ declare class DetailsSetElement extends LitElement {
88
+ #private;
89
+ private static GLOBAL_STYLE;
90
+ /**
91
+ * Maximum number of direct-child `<details>` allowed open at the same time.
92
+ * `0` (the default) means unlimited.
93
+ */
94
+ maxOpenItems: number;
95
+ /**
96
+ * Default trigger for toggling direct-child `<details>` elements:
97
+ *
98
+ * - `"summary"` (default): clicking anywhere on the `<summary>` toggles
99
+ * the details (native behavior).
100
+ * - `"marker"`: only clicks on (or inside) an element carrying the
101
+ * `tp-summary-marker` attribute toggle the details. If the summary has
102
+ * no marker, this falls back to summary toggle for that details so the
103
+ * details never becomes un-toggleable.
104
+ *
105
+ * Per-`<details>` `toggle-on` attribute overrides this set-level default.
106
+ * Keyboard activation (Enter/Space on a focused summary) is **never**
107
+ * suppressed, regardless of mode.
108
+ */
109
+ toggleOn: "summary" | "marker";
110
+ protected createRenderRoot(): HTMLElement;
111
+ connectedCallback(): void;
112
+ disconnectedCallback(): void;
113
+ protected updated(changed: Map<string, unknown>): void;
114
+ protected render(): TemplateResult;
115
+ }
116
+
117
+ export { DetailsSetElement };
@@ -0,0 +1,2 @@
1
+ export { DetailsSetElement } from './details-set-element.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}