@telperion/elements 3.0.1 → 4.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.
Files changed (74) hide show
  1. package/.build-manifest.json +12 -1
  2. package/README.md +45 -0
  3. package/_chunks/signal-watcher-lit-element-B9xodkLt.d.cts +29 -0
  4. package/_chunks/signal-watcher-lit-element-B9xodkLt.d.ts +29 -0
  5. package/drag-drop/drag-handle-element.cjs +1 -1
  6. package/drag-drop/drag-handle-element.js +1 -1
  7. package/fesm/elements.mjs +548 -31
  8. package/fesm/elements.mjs.map +1 -1
  9. package/iife/elements.js +187 -21
  10. package/iife/elements.js.map +1 -1
  11. package/iife/popover/index.js +44 -6
  12. package/iife/popover/index.js.map +1 -1
  13. package/iife/router/index.js.map +1 -1
  14. package/iife/select/index.js +273 -0
  15. package/iife/select/index.js.map +1 -0
  16. package/index.cjs +15 -0
  17. package/index.cjs.map +1 -1
  18. package/index.d.cts +2 -0
  19. package/index.d.ts +2 -0
  20. package/index.js +3 -0
  21. package/index.js.map +1 -1
  22. package/package.json +32 -5
  23. package/popover/index.d.cts +2 -2
  24. package/popover/index.d.ts +2 -2
  25. package/popover/popover-element.cjs +29 -19
  26. package/popover/popover-element.cjs.map +1 -1
  27. package/popover/popover-element.js +30 -20
  28. package/popover/popover-element.js.map +1 -1
  29. package/router/index.d.cts +2 -26
  30. package/router/index.d.ts +2 -26
  31. package/router/tha-router-config.cjs +2 -2
  32. package/router/tha-router-config.cjs.map +1 -1
  33. package/router/tha-router-config.js +2 -2
  34. package/router/tha-router-config.js.map +1 -1
  35. package/router/tha-router-link.cjs +1 -1
  36. package/router/tha-router-link.js +1 -1
  37. package/router/tha-router-outlet.cjs +1 -1
  38. package/router/tha-router-outlet.js +1 -1
  39. package/router/tha-router-param.cjs +1 -1
  40. package/router/tha-router-param.js +1 -1
  41. package/router/tha-router.cjs +1 -1
  42. package/router/tha-router.js +1 -1
  43. package/select/index.cjs +21 -0
  44. package/select/index.cjs.map +1 -0
  45. package/select/index.d.cts +219 -0
  46. package/select/index.d.ts +219 -0
  47. package/select/index.js +4 -0
  48. package/select/index.js.map +1 -0
  49. package/select/internal-props.cjs +10 -0
  50. package/select/internal-props.cjs.map +1 -0
  51. package/select/internal-props.js +6 -0
  52. package/select/internal-props.js.map +1 -0
  53. package/select/option.element.cjs +88 -0
  54. package/select/option.element.cjs.map +1 -0
  55. package/select/option.element.js +88 -0
  56. package/select/option.element.js.map +1 -0
  57. package/select/select-context.cjs +14 -0
  58. package/select/select-context.cjs.map +1 -0
  59. package/select/select-context.js +12 -0
  60. package/select/select-context.js.map +1 -0
  61. package/select/select.element.cjs +376 -0
  62. package/select/select.element.cjs.map +1 -0
  63. package/select/select.element.js +376 -0
  64. package/select/select.element.js.map +1 -0
  65. package/select/selected-content.element.cjs +65 -0
  66. package/select/selected-content.element.cjs.map +1 -0
  67. package/select/selected-content.element.js +65 -0
  68. package/select/selected-content.element.js.map +1 -0
  69. package/utils/signal-watcher-lit-element.cjs.map +1 -0
  70. package/utils/signal-watcher-lit-element.js.map +1 -0
  71. package/router/signal-watcher-lit-element.cjs.map +0 -1
  72. package/router/signal-watcher-lit-element.js.map +0 -1
  73. /package/{router → utils}/signal-watcher-lit-element.cjs +0 -0
  74. /package/{router → utils}/signal-watcher-lit-element.js +0 -0
@@ -0,0 +1,376 @@
1
+ import { __decorate, __metadata } from 'tslib';
2
+ import { PopoverElement } from '../popover/popover-element.js';
3
+ import { provide } from '@lit/context';
4
+ import { signal, computed } from '@lit-labs/signals';
5
+ import { css, html } from 'lit';
6
+ import { property, customElement } from 'lit/decorators.js';
7
+ import { sliceBefore } from '@telperion/js-utils/array/slice-before';
8
+ import { selectContext } from './select-context.js';
9
+ import { SelectedContentElement } from './selected-content.element.js';
10
+ import { OptionElement } from './option.element.js';
11
+ import { REGISTER_OPTION, UNREGISTER_OPTION } from './internal-props.js';
12
+ import { defer } from '@telperion/js-utils/function/defer';
13
+ import { SignalWatcherLitElement } from '../utils/signal-watcher-lit-element.js';
14
+
15
+ var SelectElement_1;
16
+ let SelectElement = class SelectElement extends SignalWatcherLitElement {
17
+ static { SelectElement_1 = this; }
18
+ static { this.formAssociated = true; }
19
+ static { this.ALLOWED_OPTION_ELEMENTS = [OptionElement]; }
20
+ static { this.styles = css `
21
+ :host {
22
+ position: relative;
23
+ display: inline-flex;
24
+ height: fit-content;
25
+
26
+ --tp-select-option-color: white;
27
+ --tp-select-selection-color: #0078d4;
28
+ --tp-select-highlight-percent: 20%;
29
+ --tp-select-selection-contrast-color: white;
30
+ }
31
+
32
+ :host([disabled]) {
33
+ pointer-events: none;
34
+ opacity: 0.6;
35
+ }
36
+
37
+ :host([open]) {
38
+ [pseudo="indicator"] {
39
+ transform: rotateX(180deg);
40
+ }
41
+ }
42
+
43
+ [pseudo="button"] {
44
+ background: white;
45
+ cursor: pointer;
46
+ display: inline-flex;
47
+ align-items: center;
48
+ }
49
+
50
+ [pseudo="indicator"] {
51
+ margin-inline-start: auto;
52
+ }
53
+
54
+ tp-popover {
55
+ border: none;
56
+ padding: 0;
57
+ }
58
+ `; }
59
+ #options;
60
+ #value;
61
+ get value() {
62
+ return this.#value.get();
63
+ }
64
+ set value(next) {
65
+ defer(() => {
66
+ const values = next.split(",").map((s) => s.trim());
67
+ const options = Array.from(this.#options);
68
+ this.selectedOptions.set(values
69
+ .map((value) => options.find((option) => option.value === value))
70
+ .filter(Boolean)
71
+ .map((option) => new WeakRef(option)));
72
+ });
73
+ }
74
+ #placeholder;
75
+ get placeholder() {
76
+ return this.#placeholder.get();
77
+ }
78
+ set placeholder(next) {
79
+ this.#signalSetter(this.#placeholder, "placeholder", next);
80
+ }
81
+ #internals;
82
+ /** Initial `value` captured at construction so `formResetCallback` can restore it. */
83
+ #initialValue;
84
+ constructor() {
85
+ super();
86
+ this.#options = new Set();
87
+ /**
88
+ * Provides this `<tp-select>` instance to descendants via `@lit/context`,
89
+ * so consumers (e.g. `<tp-selected-content>`) can find it across any
90
+ * number of shadow DOM boundaries — not just light-DOM ancestors.
91
+ */
92
+ this.self = this;
93
+ this.selectedOptions = signal([]);
94
+ this.#value = computed(() => this.selectedOptions
95
+ .get()
96
+ .map((ref) => ref.deref()?.value ?? "")
97
+ .filter(Boolean)
98
+ .join(","));
99
+ this.#placeholder = signal("Select an option");
100
+ /**
101
+ * Maximum number of options that can be selected at once.
102
+ *
103
+ * Defaults to `1` (single-select). Any positive integer enables
104
+ * multi-select up to that many entries. Use the literal string
105
+ * `"infinite"` in HTML to allow an unbounded
106
+ * selection — the converter normalises it to `Number.POSITIVE_INFINITY`.
107
+ *
108
+ * When the limit is reached and a new option is selected, the oldest
109
+ * entry in `selectedOptions` is dropped (FIFO) so the new selection can
110
+ * fit. Setting `max` to a smaller number trims the current selection
111
+ * down to size from the end.
112
+ */
113
+ this.max = 1;
114
+ /** Form field name. Submitted with the owning `<form>`. */
115
+ this.name = null;
116
+ /** When true, the element is non-interactive and excluded from form submission. */
117
+ this.disabled = false;
118
+ /** When true, an empty selection makes the element invalid (`valueMissing`). */
119
+ this.required = false;
120
+ this.open = false;
121
+ /** Initial `value` captured at construction so `formResetCallback` can restore it. */
122
+ this.#initialValue = "";
123
+ this.#internals = this.attachInternals();
124
+ }
125
+ /** Live `ElementInternals` (validity, form, labels, etc.). */
126
+ get internals() {
127
+ return this.#internals;
128
+ }
129
+ /** Owning `<form>` element, or `null` when not associated. */
130
+ get form() {
131
+ return this.#internals.form;
132
+ }
133
+ /** Native validity state of this control. */
134
+ get validity() {
135
+ return this.#internals.validity;
136
+ }
137
+ get validationMessage() {
138
+ return this.#internals.validationMessage;
139
+ }
140
+ get willValidate() {
141
+ return this.#internals.willValidate;
142
+ }
143
+ checkValidity() {
144
+ return this.#internals.checkValidity();
145
+ }
146
+ reportValidity() {
147
+ return this.#internals.reportValidity();
148
+ }
149
+ createRenderRoot() {
150
+ const root = super.createRenderRoot();
151
+ root.adoptedStyleSheets = [
152
+ ...root.adoptedStyleSheets,
153
+ PopoverElement.styles.styleSheet,
154
+ SelectedContentElement.styles.styleSheet,
155
+ OptionElement.styles.styleSheet,
156
+ ];
157
+ return root;
158
+ }
159
+ connectedCallback() {
160
+ super.connectedCallback();
161
+ this.#initialValue = this.value;
162
+ }
163
+ disconnectedCallback() {
164
+ super.disconnectedCallback();
165
+ }
166
+ render() {
167
+ return html `
168
+ <div pseudo="button" part="button">
169
+ <slot name="button">
170
+ <tp-selected-content part="selected-content"></tp-selected-content>
171
+ <slot name="indicator">
172
+ <span part="indicator" pseudo="indicator">▾</span>
173
+ </slot>
174
+ </slot>
175
+ </div>
176
+ <tp-popover
177
+ position="start to start / bottom"
178
+ target="[pseudo=button]"
179
+ @click=${this.#handlePopoverClick}
180
+ @toggle=${this.#handlePopoverToggle}
181
+ part="popover">
182
+ <slot name="popover">
183
+ <slot></slot>
184
+ </slot>
185
+ </tp-popover>
186
+ `;
187
+ }
188
+ updated(changed) {
189
+ super.updated(changed);
190
+ if (changed.has("max") && Number.isFinite(this.max)) {
191
+ const current = this.selectedOptions.get();
192
+ if (current.length > this.max) {
193
+ this.selectedOptions.set(current.slice(current.length - this.max));
194
+ }
195
+ }
196
+ }
197
+ /**
198
+ * Keep `ElementInternals` in sync with the current value and validity.
199
+ * Reading `this.value` here transitively reads `selectedOptions`, so the
200
+ * `SignalWatcher` base auto-tracks it and re-runs `willUpdate` whenever
201
+ * the selection changes — no `updateEffect` (and no microtask race) needed.
202
+ */
203
+ willUpdate(_changed) {
204
+ this.#syncForm();
205
+ }
206
+ // -- Form-associated callbacks ------------------------------------------
207
+ formResetCallback() {
208
+ this.value = this.#initialValue;
209
+ }
210
+ formDisabledCallback(disabled) {
211
+ this.disabled = disabled;
212
+ }
213
+ formStateRestoreCallback(state) {
214
+ if (state == null) {
215
+ this.value = "";
216
+ return;
217
+ }
218
+ if (typeof state === "string") {
219
+ this.value = state;
220
+ return;
221
+ }
222
+ if (state instanceof FormData) {
223
+ const values = [];
224
+ state.forEach((v) => {
225
+ if (typeof v === "string")
226
+ values.push(v);
227
+ });
228
+ this.value = values.join(",");
229
+ }
230
+ }
231
+ /**
232
+ * Push the current selection into `ElementInternals`. Single-select forms
233
+ * report a string; multi-select forms report a `FormData` with one entry
234
+ * per selected value (so the form serialises the same way as a native
235
+ * `<select multiple>`). Also updates validity for `required`.
236
+ */
237
+ #syncForm() {
238
+ const values = this.value === "" ? [] : this.value.split(",");
239
+ if (this.max === 1) {
240
+ this.#internals.setFormValue(values[0] ?? "");
241
+ }
242
+ else {
243
+ const fd = new FormData();
244
+ const fieldName = this.name ?? "";
245
+ for (const v of values)
246
+ fd.append(fieldName, v);
247
+ this.#internals.setFormValue(fd);
248
+ }
249
+ if (this.required && values.length === 0) {
250
+ this.#internals.setValidity({ valueMissing: true }, "Please select an option.");
251
+ }
252
+ else {
253
+ this.#internals.setValidity({});
254
+ }
255
+ }
256
+ selectOption(option) {
257
+ const current = this.selectedOptions.get();
258
+ if (current.find(ref => ref.deref() === option))
259
+ return;
260
+ const next = [...current, new WeakRef(option)];
261
+ const trimmed = next.length > this.max
262
+ ? next.slice(next.length - this.max)
263
+ : next;
264
+ this.selectedOptions.set(trimmed);
265
+ }
266
+ deselectOption(option) {
267
+ const optionRef = this.selectedOptions.get().find(ref => ref.deref() === option);
268
+ if (!optionRef)
269
+ return;
270
+ this.selectedOptions.set(this.selectedOptions.get().filter(ref => ref !== optionRef));
271
+ }
272
+ toggleOption(option) {
273
+ const ref = this.selectedOptions.get().find(ref => ref.deref() === option);
274
+ if (ref) {
275
+ this.deselectOption(option);
276
+ }
277
+ else {
278
+ this.selectOption(option);
279
+ }
280
+ }
281
+ [REGISTER_OPTION](option) {
282
+ this.#options.add(option);
283
+ }
284
+ [UNREGISTER_OPTION](option) {
285
+ this.#options.delete(option);
286
+ const selectedOptions = this.selectedOptions.get();
287
+ const optionRef = selectedOptions.find(ref => ref.deref() === option);
288
+ if (!optionRef)
289
+ return;
290
+ this.selectedOptions.set(selectedOptions.filter(ref => ref !== optionRef));
291
+ }
292
+ #handlePopoverClick(e) {
293
+ if (this.disabled)
294
+ return;
295
+ const option = sliceBefore(e.composedPath(), this)
296
+ .find(el => SelectElement_1.ALLOWED_OPTION_ELEMENTS.some(allowed => el instanceof allowed));
297
+ if (!option)
298
+ return;
299
+ this.toggleOption(option);
300
+ const count = this.selectedOptions.get().length;
301
+ // Close the popover when a new selection just filled the quota.
302
+ if (count >= this.max) {
303
+ const popover = this.shadowRoot?.querySelector("tp-popover");
304
+ popover?.hidePopover();
305
+ }
306
+ }
307
+ #handlePopoverToggle(e) {
308
+ this.open = e.newState === "open";
309
+ }
310
+ #signalSetter(signal, propName, newValue) {
311
+ const previous = signal.get();
312
+ if (previous === newValue)
313
+ return;
314
+ signal.set(newValue);
315
+ this.requestUpdate(propName, previous);
316
+ }
317
+ };
318
+ __decorate([
319
+ provide({ context: selectContext }),
320
+ __metadata("design:type", SelectElement)
321
+ ], SelectElement.prototype, "self", void 0);
322
+ __decorate([
323
+ property({ type: String, reflect: true, noAccessor: true }),
324
+ __metadata("design:type", String),
325
+ __metadata("design:paramtypes", [String])
326
+ ], SelectElement.prototype, "value", null);
327
+ __decorate([
328
+ property({ type: String, reflect: true, noAccessor: true }),
329
+ __metadata("design:type", String),
330
+ __metadata("design:paramtypes", [String])
331
+ ], SelectElement.prototype, "placeholder", null);
332
+ __decorate([
333
+ property({
334
+ reflect: true,
335
+ converter: {
336
+ fromAttribute: (value) => {
337
+ if (value === null || value === undefined || value === "")
338
+ return 1;
339
+ const trimmed = String(value).trim().toLowerCase();
340
+ if (trimmed === "infinite")
341
+ return Number.POSITIVE_INFINITY;
342
+ const parsed = Number(trimmed);
343
+ return Number.isFinite(parsed) && parsed >= 1 ? Math.floor(parsed) : 1;
344
+ },
345
+ toAttribute: (value) => {
346
+ if (!Number.isFinite(value))
347
+ return "infinite";
348
+ return String(value);
349
+ },
350
+ },
351
+ }),
352
+ __metadata("design:type", Number)
353
+ ], SelectElement.prototype, "max", void 0);
354
+ __decorate([
355
+ property({ type: String, reflect: true }),
356
+ __metadata("design:type", Object)
357
+ ], SelectElement.prototype, "name", void 0);
358
+ __decorate([
359
+ property({ type: Boolean, reflect: true }),
360
+ __metadata("design:type", Object)
361
+ ], SelectElement.prototype, "disabled", void 0);
362
+ __decorate([
363
+ property({ type: Boolean, reflect: true }),
364
+ __metadata("design:type", Object)
365
+ ], SelectElement.prototype, "required", void 0);
366
+ __decorate([
367
+ property({ type: Boolean, reflect: true }),
368
+ __metadata("design:type", Object)
369
+ ], SelectElement.prototype, "open", void 0);
370
+ SelectElement = SelectElement_1 = __decorate([
371
+ customElement("tp-select"),
372
+ __metadata("design:paramtypes", [])
373
+ ], SelectElement);
374
+
375
+ export { SelectElement };
376
+ //# sourceMappingURL=select.element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"select.element.js","sources":["../../../../libs/elements/src/select/select.element.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;AA4EO,IAAM,aAAa,GAAnB,MAAM,aAAc,SAAQ,uBAAuB,CAAA;;aACjD,IAAA,CAAA,cAAc,GAAG,IAAH,CAAQ;AAEd,IAAA,SAAA,IAAA,CAAA,uBAAuB,GAAG,CAAC,aAAa,CAAC,CAAC;aAClD,IAAA,CAAA,MAAM,GAAG,GAAG,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsClB,EAAA,CAtCY,CAsCX;AAEF,IAAA,QAAQ;AAaC,IAAA,MAAM;AAOf,IAAA,IACI,KAAK,GAAA;AACP,QAAA,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE;IAC1B;IACA,IAAI,KAAK,CAAC,IAAY,EAAA;QACpB,KAAK,CAAC,MAAK;YACT,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,CAAC;YACnD,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,I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AAA,WAAW,EAAE,CAAC,KAAa,KAAY;AACrC,gBAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC;AAAE,oBAAA,OAAO,UAAU;AAC9C,gBAAA,OAAO,MAAM,CAAC,KAAK,CAAC;YACtB,CAAC;AACF,SAAA;KACF,CAAC;;AACc,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,KAAA,EAAA,MAAA,CAAA;AAIhB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AACf,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAI3B,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AAC1B,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAIjB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AAC1B,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAGjB,UAAA,CAAA;IADC,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AAC9B,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AA1IF,aAAa,GAAA,eAAA,GAAA,UAAA,CAAA;IADzB,aAAa,CAAC,WAAW,CAAC;;AACd,CAAA,EAAA,aAAa,CA8WzB;;;;"}
@@ -0,0 +1,65 @@
1
+ 'use strict';
2
+
3
+ var tslib = require('tslib');
4
+ var context = require('@lit/context');
5
+ var lit = require('lit');
6
+ var decorators_js = require('lit/decorators.js');
7
+ var domUtils = require('@telperion/dom-utils');
8
+ var signalWatcherLitElement = require('../utils/signal-watcher-lit-element.cjs');
9
+ var selectContext = require('./select-context.cjs');
10
+ var internalProps = require('./internal-props.cjs');
11
+
12
+ exports.SelectedContentElement = class SelectedContentElement extends signalWatcherLitElement.SignalWatcherLitElement {
13
+ static { this.styles = (() => {
14
+ const style = lit.css `
15
+ tp-selected-content {
16
+ display: inline-block;
17
+
18
+ tp-option {
19
+ display: inline-block;
20
+
21
+ &:not(:last-of-type)::after {
22
+ content: ",";
23
+ white-space: pre;
24
+ margin-right: 0.25em;
25
+ }
26
+ }
27
+ }
28
+ `;
29
+ document.adoptedStyleSheets = [...document.adoptedStyleSheets, style.styleSheet];
30
+ return style;
31
+ })(); }
32
+ #cloneCache = new WeakMap();
33
+ createRenderRoot() {
34
+ return this;
35
+ }
36
+ render() {
37
+ const placeholder = this.select?.placeholder ?? "";
38
+ const selectedOptions = this.select?.selectedOptions.get().map(ref => ref.deref()).filter(Boolean) ?? [];
39
+ const clones = this.#getOptionClones(selectedOptions);
40
+ return !selectedOptions.length
41
+ ? lit.html `<span part="placeholder">${placeholder}</span>`
42
+ : clones.map(clone => lit.html `${clone}`);
43
+ }
44
+ #getOptionClones(options) {
45
+ return options.map(option => {
46
+ let mirror = this.#cloneCache.get(option);
47
+ if (!mirror) {
48
+ mirror = new domUtils.DomClone(option);
49
+ this.#cloneCache.set(option, mirror);
50
+ mirror.clone.setAttribute("part", "selected-content-option");
51
+ mirror.clone[internalProps.SHOULD_REGISTER_TO_SELECT] = false;
52
+ }
53
+ return mirror.clone;
54
+ });
55
+ }
56
+ };
57
+ tslib.__decorate([
58
+ context.consume({ context: selectContext.selectContext, subscribe: true }),
59
+ decorators_js.state(),
60
+ tslib.__metadata("design:type", Function)
61
+ ], exports.SelectedContentElement.prototype, "select", void 0);
62
+ exports.SelectedContentElement = tslib.__decorate([
63
+ decorators_js.customElement("tp-selected-content")
64
+ ], exports.SelectedContentElement);
65
+ //# sourceMappingURL=selected-content.element.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selected-content.element.cjs","sources":["../../../../libs/elements/src/select/selected-content.element.ts"],"sourcesContent":[null],"names":["SelectedContentElement","SignalWatcherLitElement","css","html","DomClone","SHOULD_REGISTER_TO_SELECT","__decorate","consume","selectContext","state","customElement"],"mappings":";;;;;;;;;;;AA2CaA,8BAAsB,GAA5B,MAAM,sBAAuB,SAAQC,+CAAuB,CAAA;aAC1D,IAAA,CAAA,MAAM,GAAG,CAAC,MAAK;QACpB,MAAM,KAAK,GAAGC,OAAG,CAAA,CAAA;;;;;;;;;;;;;;KAchB;AAED,QAAA,QAAQ,CAAC,kBAAkB,GAAG,CAAC,GAAG,QAAQ,CAAC,kBAAkB,EAAE,KAAK,CAAC,UAAW,CAAC;AAEjF,QAAA,OAAO,KAAK;IACd,CAAC,GApBY,CAoBR;AAEL,IAAA,WAAW,GAAG,IAAI,OAAO,EAA0C;IAMhD,gBAAgB,GAAA;AACjC,QAAA,OAAO,IAAI;IACb;IAEmB,MAAM,GAAA;QACvB,MAAM,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,WAAW,IAAI,EAAE;AAClD,QAAA,MAAM,eAAe,GAAG,IAAI,CAAC,MAAM,EAAE,eAAe,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,GAAG,CAAC,KAAK,EAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE;QACzG,MAAM,MAAM,GAAG,IAAI,CAAC,gBAAgB,CAAC,eAAe,CAAC;QAErD,OAAO,CAAC,eAAe,CAAC;AACtB,cAAEC,QAAI,CAAA,CAAA,yBAAA,EAA4B,WAAW,CAAA,OAAA;AAC7C,cAAE,MAAM,CAAC,GAAG,CAAC,KAAK,IAAIA,QAAI,CAAA,CAAA,EAAG,KAAK,CAAA,CAAE,CAAC;IACzC;AAEA,IAAA,gBAAgB,CAAC,OAAwB,EAAA;AACvC,QAAA,OAAO,OAAO,CAAC,GAAG,CAAC,MAAM,IAAG;YAC1B,IAAI,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC;YAEzC,IAAI,CAAC,MAAM,EAAE;AACX,gBAAA,MAAM,GAAG,IAAIC,iBAAQ,CAAC,MAAM,CAAC;gBAC7B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;gBACpC,MAAM,CAAC,KAAK,CAAC,YAAY,CAAC,MAAM,EAAE,yBAAyB,CAAC;AAC5D,gBAAA,MAAM,CAAC,KAAK,CAACC,uCAAyB,CAAC,GAAG,KAAK;YACjD;YAEA,OAAO,MAAM,CAAC,KAAK;AACrB,QAAA,CAAC,CAAC;IACJ;;AA7BQC,gBAAA,CAAA;IAFPC,eAAO,CAAC,EAAE,OAAO,EAAEC,2BAAa,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AACpD,IAAAC,mBAAK,EAAE;;AACuB,CAAA,EAAAT,8BAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AA3BpBA,8BAAsB,GAAAM,gBAAA,CAAA;IADlCI,2BAAa,CAAC,qBAAqB;AACvB,CAAA,EAAAV,8BAAsB,CAyDlC;;"}
@@ -0,0 +1,65 @@
1
+ import { __decorate, __metadata } from 'tslib';
2
+ import { consume } from '@lit/context';
3
+ import { css, html } from 'lit';
4
+ import { state, customElement } from 'lit/decorators.js';
5
+ import { DomClone } from '@telperion/dom-utils';
6
+ import { SignalWatcherLitElement } from '../utils/signal-watcher-lit-element.js';
7
+ import { selectContext } from './select-context.js';
8
+ import { SHOULD_REGISTER_TO_SELECT } from './internal-props.js';
9
+
10
+ let SelectedContentElement = class SelectedContentElement extends SignalWatcherLitElement {
11
+ static { this.styles = (() => {
12
+ const style = css `
13
+ tp-selected-content {
14
+ display: inline-block;
15
+
16
+ tp-option {
17
+ display: inline-block;
18
+
19
+ &:not(:last-of-type)::after {
20
+ content: ",";
21
+ white-space: pre;
22
+ margin-right: 0.25em;
23
+ }
24
+ }
25
+ }
26
+ `;
27
+ document.adoptedStyleSheets = [...document.adoptedStyleSheets, style.styleSheet];
28
+ return style;
29
+ })(); }
30
+ #cloneCache = new WeakMap();
31
+ createRenderRoot() {
32
+ return this;
33
+ }
34
+ render() {
35
+ const placeholder = this.select?.placeholder ?? "";
36
+ const selectedOptions = this.select?.selectedOptions.get().map(ref => ref.deref()).filter(Boolean) ?? [];
37
+ const clones = this.#getOptionClones(selectedOptions);
38
+ return !selectedOptions.length
39
+ ? html `<span part="placeholder">${placeholder}</span>`
40
+ : clones.map(clone => html `${clone}`);
41
+ }
42
+ #getOptionClones(options) {
43
+ return options.map(option => {
44
+ let mirror = this.#cloneCache.get(option);
45
+ if (!mirror) {
46
+ mirror = new DomClone(option);
47
+ this.#cloneCache.set(option, mirror);
48
+ mirror.clone.setAttribute("part", "selected-content-option");
49
+ mirror.clone[SHOULD_REGISTER_TO_SELECT] = false;
50
+ }
51
+ return mirror.clone;
52
+ });
53
+ }
54
+ };
55
+ __decorate([
56
+ consume({ context: selectContext, subscribe: true }),
57
+ state(),
58
+ __metadata("design:type", Function)
59
+ ], SelectedContentElement.prototype, "select", void 0);
60
+ SelectedContentElement = __decorate([
61
+ customElement("tp-selected-content")
62
+ ], SelectedContentElement);
63
+
64
+ export { SelectedContentElement };
65
+ //# sourceMappingURL=selected-content.element.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"selected-content.element.js","sources":["../../../../libs/elements/src/select/selected-content.element.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;AA2CO,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,uBAAuB,CAAA;aAC1D,IAAA,CAAA,MAAM,GAAG,CAAC,MAAK;QACpB,MAAM,KAAK,GAAG,GAAG,CAAA,CAAA;;;;;;;;;;;;;;KAchB;AAED,QAAA,QAAQ,CAAC,kBAAkB,GAAG,CAAC,GAAG,QAAQ,CAAC,kBAAkB,EAAE,KAAK,CAAC,UAAW,CAAC;AAEjF,QAAA,OAAO,KAAK;IACd,CAAC,GApBY,CAoBR;AA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,CAAC;AACpD,IAAA,KAAK,EAAE;;AACuB,CAAA,EAAA,sBAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AA3BpB,sBAAsB,GAAA,UAAA,CAAA;IADlC,aAAa,CAAC,qBAAqB;AACvB,CAAA,EAAA,sBAAsB,CAyDlC;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signal-watcher-lit-element.cjs","sources":["../../../../libs/elements/src/utils/signal-watcher-lit-element.ts"],"sourcesContent":[null],"names":["SignalWatcher","LitElement"],"mappings":";;;;;AAkBA;;;;AAIG;MACU,uBAAuB,GAAGA,qBAAa,CAACC,cAAU;;;;"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"signal-watcher-lit-element.js","sources":["../../../../libs/elements/src/utils/signal-watcher-lit-element.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAkBA;;;;AAIG;MACU,uBAAuB,GAAG,aAAa,CAAC,UAAU;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"signal-watcher-lit-element.cjs","sources":["../../../../libs/elements/src/router/signal-watcher-lit-element.ts"],"sourcesContent":[null],"names":["SignalWatcher","LitElement"],"mappings":";;;;;AAkBA;;;;AAIG;MACU,uBAAuB,GAAGA,qBAAa,CAACC,cAAU;;;;"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"signal-watcher-lit-element.js","sources":["../../../../libs/elements/src/router/signal-watcher-lit-element.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAkBA;;;;AAIG;MACU,uBAAuB,GAAG,aAAa,CAAC,UAAU;;;;"}
File without changes