@telperion/elements 1.2.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.build-manifest.json +12 -1
- package/README.md +37 -0
- package/details-set/details-set-element.cjs +393 -0
- package/details-set/details-set-element.cjs.map +1 -0
- package/details-set/details-set-element.js +393 -0
- package/details-set/details-set-element.js.map +1 -0
- package/details-set/index.cjs +11 -0
- package/details-set/index.cjs.map +1 -0
- package/details-set/index.d.cts +117 -0
- package/details-set/index.d.ts +117 -0
- package/details-set/index.js +2 -0
- package/details-set/index.js.map +1 -0
- package/fesm/elements.mjs +388 -1
- package/fesm/elements.mjs.map +1 -1
- package/iife/details-set/index.js +35 -0
- package/iife/details-set/index.js.map +1 -0
- package/iife/elements.js +20 -20
- package/iife/elements.js.map +1 -1
- package/index.cjs +5 -0
- package/index.cjs.map +1 -1
- package/index.d.cts +1 -0
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +23 -1
package/.build-manifest.json
CHANGED
|
@@ -55,7 +55,18 @@
|
|
|
55
55
|
"dts": "icon/index.d.ts",
|
|
56
56
|
"dcts": "icon/index.d.cts"
|
|
57
57
|
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"name": "details-set/index",
|
|
61
|
+
"sourcePath": "src/details-set/index.ts",
|
|
62
|
+
"outputs": {
|
|
63
|
+
"esm": "details-set/index.js",
|
|
64
|
+
"cjs": "details-set/index.cjs",
|
|
65
|
+
"iife": "iife/details-set/index.js",
|
|
66
|
+
"dts": "details-set/index.d.ts",
|
|
67
|
+
"dcts": "details-set/index.d.cts"
|
|
68
|
+
}
|
|
58
69
|
}
|
|
59
70
|
],
|
|
60
|
-
"generatedAt": "2026-04-
|
|
71
|
+
"generatedAt": "2026-04-30T11:13:39.230Z"
|
|
61
72
|
}
|
package/README.md
CHANGED
|
@@ -56,6 +56,9 @@ Use the **explicit `/iife/...` path** so the CDN serves the standalone bundle (s
|
|
|
56
56
|
|
|
57
57
|
<!-- Or just the drag-and-drop module (TelperionElements.DragDrop) -->
|
|
58
58
|
<script src="https://unpkg.com/@telperion/elements/iife/drag-drop/index.js"></script>
|
|
59
|
+
|
|
60
|
+
<!-- Or just the details-set module (TelperionElements.DetailsSet) -->
|
|
61
|
+
<script src="https://unpkg.com/@telperion/elements/iife/details-set/index.js"></script>
|
|
59
62
|
```
|
|
60
63
|
|
|
61
64
|
Each per-module bundle is fully self-contained: side-effect imports register the custom elements as soon as the script is evaluated. jsDelivr (`https://cdn.jsdelivr.net/npm/@telperion/elements/iife/...`) and other npm CDNs work the same way.
|
|
@@ -123,6 +126,40 @@ A complete client-side routing solution for single-page applications, built with
|
|
|
123
126
|
|
|
124
127
|
---
|
|
125
128
|
|
|
129
|
+
### Details Set
|
|
130
|
+
|
|
131
|
+
A grouping element for native `<details>` that caps how many can be open at
|
|
132
|
+
once, supports cloned summary markers, and offers marker-only toggling.
|
|
133
|
+
|
|
134
|
+
**Includes:**
|
|
135
|
+
- `<tp-details-set>` — manages direct-child `<details>` elements
|
|
136
|
+
|
|
137
|
+
**Features:**
|
|
138
|
+
- `max-open-items` attribute — FIFO eviction when the cap is exceeded (`0` = unlimited)
|
|
139
|
+
- Declarative summary markers via `<template summary-marker index="…">` direct children — cloned into every direct-child `<summary>` at the requested splice index; multiple templates and dynamic add/remove supported
|
|
140
|
+
- Cloned marker elements are auto-tagged with `tp-summary-marker` so the native disclosure triangle is hidden and CSS can style markers state-aware (`details[open] > summary > [tp-summary-marker]`)
|
|
141
|
+
- `toggle-on="summary" | "marker"` (set-level + per-`<details>` override) — restrict toggling to clicks on the marker (keyboard activation always works; falls back to summary-toggle when no marker is present)
|
|
142
|
+
- `tp-details-set-change` event with `{ opened, closed }` arrays
|
|
143
|
+
- Light-DOM rendering; modern CSS (`::details-content`, `interpolate-size`) opt-in for animated open/close
|
|
144
|
+
|
|
145
|
+
#### JS/TS
|
|
146
|
+
```ts
|
|
147
|
+
import "@telperion/elements/details-set";
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
#### HTML
|
|
151
|
+
```html
|
|
152
|
+
<tp-details-set max-open-items="1" toggle-on="marker">
|
|
153
|
+
<template summary-marker index="0"><span class="chev">▸</span></template>
|
|
154
|
+
<details><summary>One</summary>...</details>
|
|
155
|
+
<details><summary>Two</summary>...</details>
|
|
156
|
+
</tp-details-set>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
[Details Set Documentation →](./src/details-set/README.md)
|
|
160
|
+
|
|
161
|
+
---
|
|
162
|
+
|
|
126
163
|
This library is actively being developed. More components will be added over time.
|
|
127
164
|
|
|
128
165
|
## 🤝 Contributing
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var tslib = require('tslib');
|
|
4
|
+
var lit = require('lit');
|
|
5
|
+
var decorators_js = require('lit/decorators.js');
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Splice-style index resolution for `<template summary-marker index="…">`.
|
|
9
|
+
* - Missing / non-finite ⇒ `0` (prepend).
|
|
10
|
+
* - `>= 0` ⇒ clamped to `[0, length]`.
|
|
11
|
+
* - `< 0` ⇒ `length + raw`, clamped to `[0, length]` (so `-1` inserts
|
|
12
|
+
* before the last child).
|
|
13
|
+
*/
|
|
14
|
+
function resolveMarkerIndex(raw, length) {
|
|
15
|
+
if (raw === null || raw === "")
|
|
16
|
+
return 0;
|
|
17
|
+
const n = Number(raw);
|
|
18
|
+
if (!Number.isFinite(n))
|
|
19
|
+
return 0;
|
|
20
|
+
const i = Math.trunc(n);
|
|
21
|
+
if (i >= 0)
|
|
22
|
+
return Math.min(i, length);
|
|
23
|
+
return Math.max(0, length + i);
|
|
24
|
+
}
|
|
25
|
+
exports.DetailsSetElement = class DetailsSetElement extends lit.LitElement {
|
|
26
|
+
constructor() {
|
|
27
|
+
super(...arguments);
|
|
28
|
+
/**
|
|
29
|
+
* Maximum number of direct-child `<details>` allowed open at the same time.
|
|
30
|
+
* `0` (the default) means unlimited.
|
|
31
|
+
*/
|
|
32
|
+
this.maxOpenItems = 0;
|
|
33
|
+
/**
|
|
34
|
+
* Default trigger for toggling direct-child `<details>` elements:
|
|
35
|
+
*
|
|
36
|
+
* - `"summary"` (default): clicking anywhere on the `<summary>` toggles
|
|
37
|
+
* the details (native behavior).
|
|
38
|
+
* - `"marker"`: only clicks on (or inside) an element carrying the
|
|
39
|
+
* `tp-summary-marker` attribute toggle the details. If the summary has
|
|
40
|
+
* no marker, this falls back to summary toggle for that details so the
|
|
41
|
+
* details never becomes un-toggleable.
|
|
42
|
+
*
|
|
43
|
+
* Per-`<details>` `toggle-on` attribute overrides this set-level default.
|
|
44
|
+
* Keyboard activation (Enter/Space on a focused summary) is **never**
|
|
45
|
+
* suppressed, regardless of mode.
|
|
46
|
+
*/
|
|
47
|
+
this.toggleOn = "summary";
|
|
48
|
+
/** FIFO queue of currently-open direct-child `<details>` elements. */
|
|
49
|
+
this.#openOrder = [];
|
|
50
|
+
/** Per-child observers watching the `open` attribute. */
|
|
51
|
+
this.#childObservers = new Map();
|
|
52
|
+
/** Per-marker-template observers (content + `index` attribute changes). */
|
|
53
|
+
this.#markerObservers = new Map();
|
|
54
|
+
/**
|
|
55
|
+
* Tracks raw cloned marker nodes inserted into each summary, keyed by the
|
|
56
|
+
* source template, so re-syncs can remove and re-insert without leaving
|
|
57
|
+
* stale DOM behind.
|
|
58
|
+
*/
|
|
59
|
+
this.#insertedMarkers = new WeakMap();
|
|
60
|
+
this.#handleMarkerTemplateMutation = () => {
|
|
61
|
+
this.#syncAllMarkers();
|
|
62
|
+
};
|
|
63
|
+
this.#handleChildListMutation = () => {
|
|
64
|
+
this.#syncDirectChildren();
|
|
65
|
+
};
|
|
66
|
+
this.#handleToggle = (event) => {
|
|
67
|
+
const target = event.target;
|
|
68
|
+
if (!(target instanceof HTMLDetailsElement))
|
|
69
|
+
return;
|
|
70
|
+
if (target.parentElement !== this)
|
|
71
|
+
return;
|
|
72
|
+
this.#applyOpenState(target);
|
|
73
|
+
};
|
|
74
|
+
this.#handleChildOpenMutation = (child) => {
|
|
75
|
+
// Reconcile in case the `toggle` event was missed (e.g. in jsdom or when
|
|
76
|
+
// the `open` attribute is mutated programmatically without a toggle).
|
|
77
|
+
this.#applyOpenState(child);
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* Capture-phase click handler that suppresses the native toggle when a
|
|
81
|
+
* `<summary>` is clicked outside its marker(s) and the effective
|
|
82
|
+
* `toggle-on` mode is `"marker"`.
|
|
83
|
+
*
|
|
84
|
+
* Resolution per `<details>`:
|
|
85
|
+
* - per-`<details>` `toggle-on` attribute (if `"summary"` or `"marker"`),
|
|
86
|
+
* else
|
|
87
|
+
* - the host's `toggle-on` property/attribute, else
|
|
88
|
+
* - `"summary"`.
|
|
89
|
+
*
|
|
90
|
+
* Carve-outs:
|
|
91
|
+
* - Keyboard activation (Enter/Space) produces a synthetic click with
|
|
92
|
+
* `event.detail === 0`; we never suppress those.
|
|
93
|
+
* - If the summary contains no `[tp-summary-marker]` element, fall back to
|
|
94
|
+
* summary-click toggle so the details cannot become un-toggleable.
|
|
95
|
+
*/
|
|
96
|
+
this.#handleSummaryClick = (event) => {
|
|
97
|
+
if (event.defaultPrevented)
|
|
98
|
+
return;
|
|
99
|
+
const target = event.target;
|
|
100
|
+
if (!(target instanceof Element))
|
|
101
|
+
return;
|
|
102
|
+
const summary = target.closest("summary");
|
|
103
|
+
if (!summary)
|
|
104
|
+
return;
|
|
105
|
+
const details = summary.parentElement;
|
|
106
|
+
if (!(details instanceof HTMLDetailsElement))
|
|
107
|
+
return;
|
|
108
|
+
if (details.parentElement !== this)
|
|
109
|
+
return;
|
|
110
|
+
// Only intercept clicks targeting the details' own first summary.
|
|
111
|
+
if (summary !== details.querySelector(":scope > summary"))
|
|
112
|
+
return;
|
|
113
|
+
const mode = this.#resolveToggleOn(details);
|
|
114
|
+
if (mode !== "marker")
|
|
115
|
+
return;
|
|
116
|
+
// Keyboard-originated synthetic click: never suppress.
|
|
117
|
+
if (event.detail === 0)
|
|
118
|
+
return;
|
|
119
|
+
// Fallback: if there is no marker in the summary, allow the native toggle
|
|
120
|
+
// so the details never becomes un-toggleable.
|
|
121
|
+
if (!summary.querySelector("[tp-summary-marker]"))
|
|
122
|
+
return;
|
|
123
|
+
if (target.closest("[tp-summary-marker]"))
|
|
124
|
+
return;
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
static {
|
|
129
|
+
const style = (this.GLOBAL_STYLE = document.createElement("style"));
|
|
130
|
+
style.textContent = `
|
|
131
|
+
tp-details-set {
|
|
132
|
+
display: block;
|
|
133
|
+
interpolate-size: allow-keywords;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
tp-details-set > details::details-content {
|
|
137
|
+
block-size: 0;
|
|
138
|
+
overflow: clip;
|
|
139
|
+
transition:
|
|
140
|
+
block-size var(--tp-details-set-transition-duration, 0.3s)
|
|
141
|
+
var(--tp-details-set-transition-easing, ease),
|
|
142
|
+
content-visibility var(--tp-details-set-transition-duration, 0.3s)
|
|
143
|
+
var(--tp-details-set-transition-easing, ease)
|
|
144
|
+
allow-discrete;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
tp-details-set > details[open]::details-content {
|
|
148
|
+
block-size: auto;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
/* Hide the native disclosure marker when the consumer has supplied at
|
|
152
|
+
least one custom marker via <template summary-marker>. */
|
|
153
|
+
tp-details-set > details > summary:has(> [tp-summary-marker]) {
|
|
154
|
+
list-style: none;
|
|
155
|
+
}
|
|
156
|
+
tp-details-set > details > summary:has(> [tp-summary-marker])::-webkit-details-marker {
|
|
157
|
+
display: none;
|
|
158
|
+
}
|
|
159
|
+
tp-details-set > details > summary:has(> [tp-summary-marker])::marker {
|
|
160
|
+
content: "";
|
|
161
|
+
}
|
|
162
|
+
`;
|
|
163
|
+
document.head.appendChild(style);
|
|
164
|
+
}
|
|
165
|
+
/** FIFO queue of currently-open direct-child `<details>` elements. */
|
|
166
|
+
#openOrder;
|
|
167
|
+
/** Per-child observers watching the `open` attribute. */
|
|
168
|
+
#childObservers;
|
|
169
|
+
/** Observer watching `childList` changes on the host. */
|
|
170
|
+
#childListObserver;
|
|
171
|
+
/** Per-marker-template observers (content + `index` attribute changes). */
|
|
172
|
+
#markerObservers;
|
|
173
|
+
/**
|
|
174
|
+
* Tracks raw cloned marker nodes inserted into each summary, keyed by the
|
|
175
|
+
* source template, so re-syncs can remove and re-insert without leaving
|
|
176
|
+
* stale DOM behind.
|
|
177
|
+
*/
|
|
178
|
+
#insertedMarkers;
|
|
179
|
+
createRenderRoot() {
|
|
180
|
+
return this;
|
|
181
|
+
}
|
|
182
|
+
connectedCallback() {
|
|
183
|
+
super.connectedCallback();
|
|
184
|
+
// Capture-phase `toggle` listener: `toggle` does not bubble, but capture
|
|
185
|
+
// phase still reaches ancestors.
|
|
186
|
+
this.addEventListener("toggle", this.#handleToggle, { capture: true });
|
|
187
|
+
// Capture-phase click listener implements `toggle-on="marker"` by calling
|
|
188
|
+
// `preventDefault()` for non-marker clicks on summaries.
|
|
189
|
+
this.addEventListener("click", this.#handleSummaryClick, { capture: true });
|
|
190
|
+
this.#childListObserver = new MutationObserver(this.#handleChildListMutation);
|
|
191
|
+
this.#childListObserver.observe(this, { childList: true });
|
|
192
|
+
this.#syncDirectChildren();
|
|
193
|
+
}
|
|
194
|
+
disconnectedCallback() {
|
|
195
|
+
super.disconnectedCallback();
|
|
196
|
+
this.removeEventListener("toggle", this.#handleToggle, { capture: true });
|
|
197
|
+
this.removeEventListener("click", this.#handleSummaryClick, { capture: true });
|
|
198
|
+
this.#childListObserver?.disconnect();
|
|
199
|
+
this.#childListObserver = undefined;
|
|
200
|
+
for (const observer of this.#childObservers.values()) {
|
|
201
|
+
observer.disconnect();
|
|
202
|
+
}
|
|
203
|
+
this.#childObservers.clear();
|
|
204
|
+
for (const observer of this.#markerObservers.values()) {
|
|
205
|
+
observer.disconnect();
|
|
206
|
+
}
|
|
207
|
+
this.#markerObservers.clear();
|
|
208
|
+
this.#openOrder = [];
|
|
209
|
+
}
|
|
210
|
+
updated(changed) {
|
|
211
|
+
if (changed.has("maxOpenItems")) {
|
|
212
|
+
this.#enforceLimit();
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
render() {
|
|
216
|
+
return lit.html ``;
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Reconcile observers and the FIFO queue with the current direct children.
|
|
220
|
+
* Called on connect and whenever the host's child list mutates.
|
|
221
|
+
*/
|
|
222
|
+
#syncDirectChildren() {
|
|
223
|
+
const current = new Set(this.#directDetails());
|
|
224
|
+
// Drop observers + queue entries for removed children.
|
|
225
|
+
for (const [child, observer] of this.#childObservers) {
|
|
226
|
+
if (!current.has(child)) {
|
|
227
|
+
observer.disconnect();
|
|
228
|
+
this.#childObservers.delete(child);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
this.#openOrder = this.#openOrder.filter((child) => current.has(child));
|
|
232
|
+
// Attach observers for new children, seed the queue with already-open ones.
|
|
233
|
+
for (const child of current) {
|
|
234
|
+
if (!this.#childObservers.has(child)) {
|
|
235
|
+
const observer = new MutationObserver(() => this.#handleChildOpenMutation(child));
|
|
236
|
+
observer.observe(child, { attributes: true, attributeFilter: ["open"] });
|
|
237
|
+
this.#childObservers.set(child, observer);
|
|
238
|
+
if (child.open && !this.#openOrder.includes(child)) {
|
|
239
|
+
this.#openOrder.push(child);
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
this.#enforceLimit();
|
|
244
|
+
this.#syncMarkerTemplates();
|
|
245
|
+
this.#syncAllMarkers();
|
|
246
|
+
}
|
|
247
|
+
/** Reconcile per-template observers with the current marker templates. */
|
|
248
|
+
#syncMarkerTemplates() {
|
|
249
|
+
const current = new Set(this.#markerTemplates());
|
|
250
|
+
for (const [template, observer] of this.#markerObservers) {
|
|
251
|
+
if (!current.has(template)) {
|
|
252
|
+
observer.disconnect();
|
|
253
|
+
this.#markerObservers.delete(template);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
for (const template of current) {
|
|
257
|
+
if (!this.#markerObservers.has(template)) {
|
|
258
|
+
const observer = new MutationObserver(this.#handleMarkerTemplateMutation);
|
|
259
|
+
// Watch both the template's own `index` attribute and its content
|
|
260
|
+
// (including nested edits inside `template.content`).
|
|
261
|
+
observer.observe(template, {
|
|
262
|
+
attributes: true,
|
|
263
|
+
attributeFilter: ["index", "summary-marker"],
|
|
264
|
+
});
|
|
265
|
+
observer.observe(template.content, { childList: true, subtree: true, characterData: true, attributes: true });
|
|
266
|
+
this.#markerObservers.set(template, observer);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
#handleMarkerTemplateMutation;
|
|
271
|
+
/** Apply marker templates to every direct-child `<details>`'s `<summary>`. */
|
|
272
|
+
#syncAllMarkers() {
|
|
273
|
+
const templates = this.#markerTemplates();
|
|
274
|
+
for (const details of this.#directDetails()) {
|
|
275
|
+
const summary = details.querySelector(":scope > summary");
|
|
276
|
+
if (summary instanceof HTMLElement) {
|
|
277
|
+
this.#applyMarkersTo(summary, templates);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
#applyMarkersTo(summary, templates) {
|
|
282
|
+
let perTemplate = this.#insertedMarkers.get(summary);
|
|
283
|
+
if (!perTemplate) {
|
|
284
|
+
perTemplate = new Map();
|
|
285
|
+
this.#insertedMarkers.set(summary, perTemplate);
|
|
286
|
+
}
|
|
287
|
+
// Remove all previously-inserted marker nodes for this summary first, so
|
|
288
|
+
// re-application is order-stable and never duplicates.
|
|
289
|
+
for (const nodes of perTemplate.values()) {
|
|
290
|
+
for (const node of nodes) {
|
|
291
|
+
if (node.parentNode === summary)
|
|
292
|
+
summary.removeChild(node);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
perTemplate.clear();
|
|
296
|
+
for (const template of templates) {
|
|
297
|
+
const fragment = template.content.cloneNode(true);
|
|
298
|
+
// Capture nodes BEFORE insertion — the fragment empties on append.
|
|
299
|
+
const inserted = Array.from(fragment.childNodes);
|
|
300
|
+
if (inserted.length === 0)
|
|
301
|
+
continue;
|
|
302
|
+
// Tag every cloned element so consumers can target markers via CSS
|
|
303
|
+
// (e.g. `[tp-summary-marker]`) and so the host stylesheet can hide the
|
|
304
|
+
// native `::marker` on summaries that have a custom marker.
|
|
305
|
+
for (const node of inserted) {
|
|
306
|
+
if (node instanceof Element)
|
|
307
|
+
node.setAttribute("tp-summary-marker", "");
|
|
308
|
+
}
|
|
309
|
+
const idx = resolveMarkerIndex(template.getAttribute("index"), summary.childNodes.length);
|
|
310
|
+
const ref = summary.childNodes[idx] ?? null;
|
|
311
|
+
summary.insertBefore(fragment, ref);
|
|
312
|
+
perTemplate.set(template, inserted);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
/** Direct-child `<template>` elements with the `summary-marker` attribute. */
|
|
316
|
+
#markerTemplates() {
|
|
317
|
+
return Array.from(this.children).filter((c) => c instanceof HTMLTemplateElement && c.hasAttribute("summary-marker"));
|
|
318
|
+
}
|
|
319
|
+
#directDetails() {
|
|
320
|
+
return Array.from(this.children).filter((c) => c instanceof HTMLDetailsElement);
|
|
321
|
+
}
|
|
322
|
+
#handleChildListMutation;
|
|
323
|
+
#handleToggle;
|
|
324
|
+
#handleChildOpenMutation;
|
|
325
|
+
/**
|
|
326
|
+
* Capture-phase click handler that suppresses the native toggle when a
|
|
327
|
+
* `<summary>` is clicked outside its marker(s) and the effective
|
|
328
|
+
* `toggle-on` mode is `"marker"`.
|
|
329
|
+
*
|
|
330
|
+
* Resolution per `<details>`:
|
|
331
|
+
* - per-`<details>` `toggle-on` attribute (if `"summary"` or `"marker"`),
|
|
332
|
+
* else
|
|
333
|
+
* - the host's `toggle-on` property/attribute, else
|
|
334
|
+
* - `"summary"`.
|
|
335
|
+
*
|
|
336
|
+
* Carve-outs:
|
|
337
|
+
* - Keyboard activation (Enter/Space) produces a synthetic click with
|
|
338
|
+
* `event.detail === 0`; we never suppress those.
|
|
339
|
+
* - If the summary contains no `[tp-summary-marker]` element, fall back to
|
|
340
|
+
* summary-click toggle so the details cannot become un-toggleable.
|
|
341
|
+
*/
|
|
342
|
+
#handleSummaryClick;
|
|
343
|
+
#resolveToggleOn(details) {
|
|
344
|
+
const own = details.getAttribute("toggle-on");
|
|
345
|
+
if (own === "marker" || own === "summary")
|
|
346
|
+
return own;
|
|
347
|
+
return this.toggleOn === "marker" ? "marker" : "summary";
|
|
348
|
+
}
|
|
349
|
+
#applyOpenState(child) {
|
|
350
|
+
const inQueue = this.#openOrder.includes(child);
|
|
351
|
+
if (child.open && !inQueue) {
|
|
352
|
+
this.#openOrder.push(child);
|
|
353
|
+
this.#enforceLimit();
|
|
354
|
+
}
|
|
355
|
+
else if (!child.open && inQueue) {
|
|
356
|
+
this.#openOrder = this.#openOrder.filter((entry) => entry !== child);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
#enforceLimit() {
|
|
360
|
+
const limit = this.maxOpenItems;
|
|
361
|
+
if (!Number.isFinite(limit) || limit <= 0)
|
|
362
|
+
return;
|
|
363
|
+
const closed = [];
|
|
364
|
+
while (this.#openOrder.length > limit) {
|
|
365
|
+
const oldest = this.#openOrder.shift();
|
|
366
|
+
if (!oldest)
|
|
367
|
+
break;
|
|
368
|
+
if (oldest.open) {
|
|
369
|
+
oldest.open = false;
|
|
370
|
+
closed.push(oldest);
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
if (closed.length > 0) {
|
|
374
|
+
this.dispatchEvent(new CustomEvent("tp-details-set-change", {
|
|
375
|
+
bubbles: true,
|
|
376
|
+
composed: true,
|
|
377
|
+
detail: { opened: [], closed },
|
|
378
|
+
}));
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
};
|
|
382
|
+
tslib.__decorate([
|
|
383
|
+
decorators_js.property({ type: Number, reflect: true, attribute: "max-open-items" }),
|
|
384
|
+
tslib.__metadata("design:type", Object)
|
|
385
|
+
], exports.DetailsSetElement.prototype, "maxOpenItems", void 0);
|
|
386
|
+
tslib.__decorate([
|
|
387
|
+
decorators_js.property({ reflect: true, attribute: "toggle-on" }),
|
|
388
|
+
tslib.__metadata("design:type", String)
|
|
389
|
+
], exports.DetailsSetElement.prototype, "toggleOn", void 0);
|
|
390
|
+
exports.DetailsSetElement = tslib.__decorate([
|
|
391
|
+
decorators_js.customElement("tp-details-set")
|
|
392
|
+
], exports.DetailsSetElement);
|
|
393
|
+
//# sourceMappingURL=details-set-element.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"details-set-element.cjs","sources":["../../../../libs/elements/src/details-set/details-set-element.ts"],"sourcesContent":[null],"names":["DetailsSetElement","LitElement","html","__decorate","property","customElement"],"mappings":";;;;;;AAIA;;;;;;AAMG;AACH,SAAS,kBAAkB,CAAC,GAAkB,EAAE,MAAc,EAAA;AAC5D,IAAA,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,EAAE;AAAE,QAAA,OAAO,CAAC;AACxC,IAAA,MAAM,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC;AACrB,IAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;AAAE,QAAA,OAAO,CAAC;IACjC,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IACvB,IAAI,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,CAAC;IACtC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;AAChC;AAyFaA,yBAAiB,GAAvB,MAAM,iBAAkB,SAAQC,cAAU,CAAA;AAA1C,IAAA,WAAA,GAAA;;AA0CL;;;AAGG;QAEH,IAAA,CAA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