@telperion/elements 5.2.0 → 5.4.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/index.d.cts CHANGED
@@ -4,8 +4,9 @@ export { DetailsSetElement } from './details-set/index.cjs';
4
4
  export { PopoverElement } from './popover/index.cjs';
5
5
  export { OptionElement, SelectChangeEvent, SelectElement, SelectedContentElement } from './select/index.cjs';
6
6
  export { ButtonElement, ButtonType, ButtonVariant } from './button/index.cjs';
7
- import './_chunks/signal-watcher-lit-element-B9xodkLt.cjs';
7
+ import './_chunks/signal-watcher-lit-element-B5xCaa26.cjs';
8
8
  import 'lit';
9
+ import './_chunks/shade-mixer-lit-element-sw8t_VC5.cjs';
9
10
  import '@lit-labs/signals';
10
11
  import 'history';
11
12
  import '@telperion/extra-ts-types/polyfills/url-pattern';
package/index.d.ts CHANGED
@@ -4,8 +4,9 @@ export { DetailsSetElement } from './details-set/index.js';
4
4
  export { PopoverElement } from './popover/index.js';
5
5
  export { OptionElement, SelectChangeEvent, SelectElement, SelectedContentElement } from './select/index.js';
6
6
  export { ButtonElement, ButtonType, ButtonVariant } from './button/index.js';
7
- import './_chunks/signal-watcher-lit-element-B9xodkLt.js';
7
+ import './_chunks/signal-watcher-lit-element-B-vV0yNG.js';
8
8
  import 'lit';
9
+ import './_chunks/shade-mixer-lit-element-sw8t_VC5.js';
9
10
  import '@lit-labs/signals';
10
11
  import 'history';
11
12
  import '@telperion/extra-ts-types/polyfills/url-pattern';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telperion/elements",
3
- "version": "5.2.0",
3
+ "version": "5.4.0",
4
4
  "description": "Framework-agnostic web components built with Lit: Material Symbols / Simple Icons / theSVG icons, declarative client-side router, drag-and-drop primitives, details accordion with FIFO open caps, a CSS-anchored popover, a form-associated selectbox with single/multi-select, and a form-associated button.",
5
5
  "keywords": [
6
6
  "web-components",
@@ -1,8 +1,9 @@
1
- import { S as SignalWatcherLitElement, E as EffectOptions } from '../_chunks/signal-watcher-lit-element-B9xodkLt.cjs';
1
+ import { S as SignalWatcherLitElement, E as EffectOptions } from '../_chunks/signal-watcher-lit-element-B5xCaa26.cjs';
2
2
  import { Signal as Signal$1 } from '@lit-labs/signals';
3
3
  import { History } from 'history';
4
4
  import { LitElement } from 'lit';
5
5
  import { URLPattern } from '@telperion/extra-ts-types/polyfills/url-pattern';
6
+ import '../_chunks/shade-mixer-lit-element-sw8t_VC5.cjs';
6
7
 
7
8
  /**
8
9
  * Supported history types for the router.
package/router/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
- import { S as SignalWatcherLitElement, E as EffectOptions } from '../_chunks/signal-watcher-lit-element-B9xodkLt.js';
1
+ import { S as SignalWatcherLitElement, E as EffectOptions } from '../_chunks/signal-watcher-lit-element-B-vV0yNG.js';
2
2
  import { Signal as Signal$1 } from '@lit-labs/signals';
3
3
  import { History } from 'history';
4
4
  import { LitElement } from 'lit';
5
5
  import { URLPattern } from '@telperion/extra-ts-types/polyfills/url-pattern';
6
+ import '../_chunks/shade-mixer-lit-element-sw8t_VC5.js';
6
7
 
7
8
  /**
8
9
  * Supported history types for the router.
@@ -1,5 +1,6 @@
1
1
  import { PropertyValues } from 'lit';
2
- import { S as SignalWatcherLitElement } from '../_chunks/signal-watcher-lit-element-B9xodkLt.cjs';
2
+ import { S as SignalWatcherLitElement, a as ShadeMixerSignalWatcherLitElement } from '../_chunks/signal-watcher-lit-element-B5xCaa26.cjs';
3
+ import '../_chunks/shade-mixer-lit-element-sw8t_VC5.cjs';
3
4
 
4
5
  declare const REGISTER_OPTION: unique symbol;
5
6
  declare const UNREGISTER_OPTION: unique symbol;
@@ -87,10 +88,43 @@ declare global {
87
88
  * @attr max - `1` (default) for single-select, any positive integer
88
89
  * for multi-select with FIFO eviction, or `infinite`
89
90
  * for unbounded selection.
91
+ * @attr min - Minimum number of options that must remain selected
92
+ * (`0` by default). When the current selection size is
93
+ * at or below `min`, further deselection attempts are
94
+ * ignored — the option stays selected.
90
95
  * @attr name - Form field name.
91
96
  * @attr disabled - Non-interactive; excluded from form submission.
92
97
  * @attr required - Empty selection triggers `valueMissing`.
93
98
  * @attr open - Reflects the popover's open state (read-only).
99
+ * @attr color - Palette token from the shared shade-mixer system
100
+ * (`primary`, `secondary`, `success`, … or any
101
+ * custom token defined via `--tp-element-color`).
102
+ * Drives the selected-option highlight color
103
+ * (`--tp-select-selection-color`) and its contrast
104
+ * text color. Inherited from
105
+ * `ShadeMixerLitElement`.
106
+ * @attr shade - `0`–`1000` (default `500`). Lightens (`<500`,
107
+ * mixes white) or darkens (`>500`, mixes black) the
108
+ * resolved `color` before it feeds the selection
109
+ * highlight. Inherited from `ShadeMixerLitElement`.
110
+ * @attr mixer - Read-only output (`none` / `black` / `white`)
111
+ * auto-derived from `shade`. Inherited from
112
+ * `ShadeMixerLitElement`.
113
+ *
114
+ * @method togglePopover - Open, close, or toggle the dropdown popover.
115
+ * Overrides the native
116
+ * {@link HTMLElement.togglePopover} and delegates
117
+ * to the inner `<tp-popover>` (the host element
118
+ * itself is not the popover). Pass `true` /
119
+ * `false` (or `{ force }`) to force a state, or
120
+ * omit to toggle. Returns the resulting open
121
+ * state.
122
+ * @method showPopover - Open the dropdown popover. Overrides the native
123
+ * {@link HTMLElement.showPopover} and delegates to
124
+ * the inner `<tp-popover>`.
125
+ * @method hidePopover - Close the dropdown popover. Overrides the native
126
+ * {@link HTMLElement.hidePopover} and delegates to
127
+ * the inner `<tp-popover>`.
94
128
  *
95
129
  * @slot button - Replaces the default trigger button.
96
130
  * @slot indicator - Replaces the default open/close caret (`▾`) shown
@@ -144,7 +178,7 @@ declare global {
144
178
  "tp-select": SelectElement;
145
179
  }
146
180
  }
147
- declare class SelectElement extends SignalWatcherLitElement {
181
+ declare class SelectElement extends ShadeMixerSignalWatcherLitElement {
148
182
  #private;
149
183
  static formAssociated: boolean;
150
184
  private static ALLOWED_OPTION_ELEMENTS;
@@ -174,6 +208,17 @@ declare class SelectElement extends SignalWatcherLitElement {
174
208
  * down to size from the end.
175
209
  */
176
210
  max: number;
211
+ /**
212
+ * Minimum number of options that must remain selected.
213
+ *
214
+ * Defaults to `0` (no lower bound). When the current selection size is at
215
+ * or below `min`, calls to {@link deselectOption} (and the click-driven
216
+ * toggle inside the popover) become no-ops, so the user can't drop below
217
+ * the floor by interacting with the control. Programmatic writes to
218
+ * `value` and `selectedOptions` are not policed — `min` is purely an
219
+ * interaction guard.
220
+ */
221
+ min: number;
177
222
  /** Form field name. Submitted with the owning `<form>`. */
178
223
  name: string | null;
179
224
  /** When true, the element is non-interactive and excluded from form submission. */
@@ -210,6 +255,66 @@ declare class SelectElement extends SignalWatcherLitElement {
210
255
  selectOption(option: OptionElement): void;
211
256
  deselectOption(option: OptionElement): void;
212
257
  toggleOption(option: OptionElement): void;
258
+ /**
259
+ * Open, close, or toggle the dropdown popover.
260
+ *
261
+ * Overrides the native {@link HTMLElement.togglePopover} so callers can
262
+ * drive the select from outside without reaching into the shadow DOM.
263
+ * `<tp-select>` itself is not the popover element — the actual popover
264
+ * lives inside its shadow root — so the call is delegated to the inner
265
+ * `<tp-popover>`.
266
+ *
267
+ * @param options Same shape as the native API: pass `true` to force open,
268
+ * `false` to force close, or a `{ force }` options bag. Omit to toggle
269
+ * between the two states.
270
+ * @returns `true` if the popover ends up open, `false` otherwise (matching
271
+ * the native return value). Returns `false` early if the inner popover
272
+ * isn't reachable yet (for example, before the first render).
273
+ *
274
+ * @example
275
+ * ```ts
276
+ * const select = document.querySelector('tp-select');
277
+ * select.togglePopover(); // toggle
278
+ * select.togglePopover(true); // force open
279
+ * select.togglePopover(false); // force close
280
+ * ```
281
+ */
282
+ togglePopover(): boolean;
283
+ /**
284
+ * Close the dropdown popover.
285
+ *
286
+ * Overrides the native {@link HTMLElement.hidePopover} so callers can
287
+ * close the select from outside without reaching into the shadow DOM.
288
+ * `<tp-select>` itself is not the popover element — the actual popover
289
+ * lives inside its shadow root — so the call is delegated to the inner
290
+ * `<tp-popover>`.
291
+ *
292
+ * No-op if the popover is already closed.
293
+ *
294
+ * @example
295
+ * ```ts
296
+ * document.querySelector('tp-select').hidePopover();
297
+ * ```
298
+ */
299
+ hidePopover(): void;
300
+ /**
301
+ * Open the dropdown popover.
302
+ *
303
+ * Overrides the native {@link HTMLElement.showPopover} so callers can
304
+ * open the select from outside without reaching into the shadow DOM.
305
+ * `<tp-select>` itself is not the popover element — the actual popover
306
+ * lives inside its shadow root — so the call is delegated to the inner
307
+ * `<tp-popover>`.
308
+ *
309
+ * @param options Same shape as the native API (e.g. `{ source }` to set
310
+ * the invoker for the popover invoker relationship).
311
+ *
312
+ * @example
313
+ * ```ts
314
+ * document.querySelector('tp-select').showPopover();
315
+ * ```
316
+ */
317
+ showPopover(): void;
213
318
  [REGISTER_OPTION](option: OptionElement): void;
214
319
  [UNREGISTER_OPTION](option: OptionElement): void;
215
320
  }
package/select/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { PropertyValues } from 'lit';
2
- import { S as SignalWatcherLitElement } from '../_chunks/signal-watcher-lit-element-B9xodkLt.js';
2
+ import { S as SignalWatcherLitElement, a as ShadeMixerSignalWatcherLitElement } from '../_chunks/signal-watcher-lit-element-B-vV0yNG.js';
3
+ import '../_chunks/shade-mixer-lit-element-sw8t_VC5.js';
3
4
 
4
5
  declare const REGISTER_OPTION: unique symbol;
5
6
  declare const UNREGISTER_OPTION: unique symbol;
@@ -87,10 +88,43 @@ declare global {
87
88
  * @attr max - `1` (default) for single-select, any positive integer
88
89
  * for multi-select with FIFO eviction, or `infinite`
89
90
  * for unbounded selection.
91
+ * @attr min - Minimum number of options that must remain selected
92
+ * (`0` by default). When the current selection size is
93
+ * at or below `min`, further deselection attempts are
94
+ * ignored — the option stays selected.
90
95
  * @attr name - Form field name.
91
96
  * @attr disabled - Non-interactive; excluded from form submission.
92
97
  * @attr required - Empty selection triggers `valueMissing`.
93
98
  * @attr open - Reflects the popover's open state (read-only).
99
+ * @attr color - Palette token from the shared shade-mixer system
100
+ * (`primary`, `secondary`, `success`, … or any
101
+ * custom token defined via `--tp-element-color`).
102
+ * Drives the selected-option highlight color
103
+ * (`--tp-select-selection-color`) and its contrast
104
+ * text color. Inherited from
105
+ * `ShadeMixerLitElement`.
106
+ * @attr shade - `0`–`1000` (default `500`). Lightens (`<500`,
107
+ * mixes white) or darkens (`>500`, mixes black) the
108
+ * resolved `color` before it feeds the selection
109
+ * highlight. Inherited from `ShadeMixerLitElement`.
110
+ * @attr mixer - Read-only output (`none` / `black` / `white`)
111
+ * auto-derived from `shade`. Inherited from
112
+ * `ShadeMixerLitElement`.
113
+ *
114
+ * @method togglePopover - Open, close, or toggle the dropdown popover.
115
+ * Overrides the native
116
+ * {@link HTMLElement.togglePopover} and delegates
117
+ * to the inner `<tp-popover>` (the host element
118
+ * itself is not the popover). Pass `true` /
119
+ * `false` (or `{ force }`) to force a state, or
120
+ * omit to toggle. Returns the resulting open
121
+ * state.
122
+ * @method showPopover - Open the dropdown popover. Overrides the native
123
+ * {@link HTMLElement.showPopover} and delegates to
124
+ * the inner `<tp-popover>`.
125
+ * @method hidePopover - Close the dropdown popover. Overrides the native
126
+ * {@link HTMLElement.hidePopover} and delegates to
127
+ * the inner `<tp-popover>`.
94
128
  *
95
129
  * @slot button - Replaces the default trigger button.
96
130
  * @slot indicator - Replaces the default open/close caret (`▾`) shown
@@ -144,7 +178,7 @@ declare global {
144
178
  "tp-select": SelectElement;
145
179
  }
146
180
  }
147
- declare class SelectElement extends SignalWatcherLitElement {
181
+ declare class SelectElement extends ShadeMixerSignalWatcherLitElement {
148
182
  #private;
149
183
  static formAssociated: boolean;
150
184
  private static ALLOWED_OPTION_ELEMENTS;
@@ -174,6 +208,17 @@ declare class SelectElement extends SignalWatcherLitElement {
174
208
  * down to size from the end.
175
209
  */
176
210
  max: number;
211
+ /**
212
+ * Minimum number of options that must remain selected.
213
+ *
214
+ * Defaults to `0` (no lower bound). When the current selection size is at
215
+ * or below `min`, calls to {@link deselectOption} (and the click-driven
216
+ * toggle inside the popover) become no-ops, so the user can't drop below
217
+ * the floor by interacting with the control. Programmatic writes to
218
+ * `value` and `selectedOptions` are not policed — `min` is purely an
219
+ * interaction guard.
220
+ */
221
+ min: number;
177
222
  /** Form field name. Submitted with the owning `<form>`. */
178
223
  name: string | null;
179
224
  /** When true, the element is non-interactive and excluded from form submission. */
@@ -210,6 +255,66 @@ declare class SelectElement extends SignalWatcherLitElement {
210
255
  selectOption(option: OptionElement): void;
211
256
  deselectOption(option: OptionElement): void;
212
257
  toggleOption(option: OptionElement): void;
258
+ /**
259
+ * Open, close, or toggle the dropdown popover.
260
+ *
261
+ * Overrides the native {@link HTMLElement.togglePopover} so callers can
262
+ * drive the select from outside without reaching into the shadow DOM.
263
+ * `<tp-select>` itself is not the popover element — the actual popover
264
+ * lives inside its shadow root — so the call is delegated to the inner
265
+ * `<tp-popover>`.
266
+ *
267
+ * @param options Same shape as the native API: pass `true` to force open,
268
+ * `false` to force close, or a `{ force }` options bag. Omit to toggle
269
+ * between the two states.
270
+ * @returns `true` if the popover ends up open, `false` otherwise (matching
271
+ * the native return value). Returns `false` early if the inner popover
272
+ * isn't reachable yet (for example, before the first render).
273
+ *
274
+ * @example
275
+ * ```ts
276
+ * const select = document.querySelector('tp-select');
277
+ * select.togglePopover(); // toggle
278
+ * select.togglePopover(true); // force open
279
+ * select.togglePopover(false); // force close
280
+ * ```
281
+ */
282
+ togglePopover(): boolean;
283
+ /**
284
+ * Close the dropdown popover.
285
+ *
286
+ * Overrides the native {@link HTMLElement.hidePopover} so callers can
287
+ * close the select from outside without reaching into the shadow DOM.
288
+ * `<tp-select>` itself is not the popover element — the actual popover
289
+ * lives inside its shadow root — so the call is delegated to the inner
290
+ * `<tp-popover>`.
291
+ *
292
+ * No-op if the popover is already closed.
293
+ *
294
+ * @example
295
+ * ```ts
296
+ * document.querySelector('tp-select').hidePopover();
297
+ * ```
298
+ */
299
+ hidePopover(): void;
300
+ /**
301
+ * Open the dropdown popover.
302
+ *
303
+ * Overrides the native {@link HTMLElement.showPopover} so callers can
304
+ * open the select from outside without reaching into the shadow DOM.
305
+ * `<tp-select>` itself is not the popover element — the actual popover
306
+ * lives inside its shadow root — so the call is delegated to the inner
307
+ * `<tp-popover>`.
308
+ *
309
+ * @param options Same shape as the native API (e.g. `{ source }` to set
310
+ * the invoker for the popover invoker relationship).
311
+ *
312
+ * @example
313
+ * ```ts
314
+ * document.querySelector('tp-select').showPopover();
315
+ * ```
316
+ */
317
+ showPopover(): void;
213
318
  [REGISTER_OPTION](option: OptionElement): void;
214
319
  [UNREGISTER_OPTION](option: OptionElement): void;
215
320
  }
@@ -1,70 +1,89 @@
1
1
  'use strict';
2
2
 
3
3
  var tslib = require('tslib');
4
- var popoverElement = require('../popover/popover-element.cjs');
5
4
  var context = require('@lit/context');
6
5
  var signals = require('@lit-labs/signals');
7
6
  var lit = require('lit');
8
7
  var decorators_js = require('lit/decorators.js');
9
8
  var sliceBefore = require('@telperion/js-utils/array/slice-before');
9
+ var defer = require('@telperion/js-utils/function/defer');
10
10
  var selectContext = require('./select-context.cjs');
11
11
  var selectedContent_element = require('./selected-content.element.cjs');
12
12
  var option_element = require('./option.element.cjs');
13
13
  var internalProps = require('./internal-props.cjs');
14
14
  var selectChangeEvent = require('./select-change-event.cjs');
15
- var defer = require('@telperion/js-utils/function/defer');
16
15
  var signalWatcherLitElement = require('../utils/signal-watcher-lit-element.cjs');
16
+ var shadeMixerLitElement = require('../utils/shade-mixer-lit-element.cjs');
17
+ var popoverElement = require('../popover/popover-element.cjs');
17
18
 
18
19
  var SelectElement_1;
19
- exports.SelectElement = class SelectElement extends signalWatcherLitElement.SignalWatcherLitElement {
20
+ exports.SelectElement = class SelectElement extends signalWatcherLitElement.ShadeMixerSignalWatcherLitElement {
20
21
  static { SelectElement_1 = this; }
21
22
  static { this.formAssociated = true; }
22
23
  static { this.ALLOWED_OPTION_ELEMENTS = [option_element.OptionElement]; }
23
- static { this.styles = lit.css `
24
- :host {
25
- position: relative;
26
- display: inline-flex;
27
- height: fit-content;
28
-
24
+ static { this.styles = (() => {
25
+ const variables = lit.css `
26
+ ${shadeMixerLitElement.ShadeMixerLitElement.shadedElementStyles}
29
27
  --tp-select-option-color: white;
30
- --tp-select-selection-color: #0078d4;
28
+ --tp-select-selection-color: var(--tp-calc-element-color);
31
29
  --tp-select-highlight-percent: 20%;
32
- --tp-select-selection-contrast-color: white;
33
- }
30
+ --tp-select-selection-contrast-color: var(--tp-calc-contrast-color);
31
+ `;
32
+ const shadowStyles = lit.css `
33
+ @layer base {
34
+ :host {
35
+ ${variables}
36
+ position: relative;
37
+ display: inline-flex;
38
+ height: fit-content;
39
+ }
34
40
 
35
- :host([disabled]) {
36
- pointer-events: none;
37
- opacity: 0.6;
38
- }
41
+ :host([disabled]) {
42
+ pointer-events: none;
43
+ opacity: 0.6;
44
+ }
39
45
 
40
- :host([open]) {
41
- [pseudo="indicator"] {
42
- transform: rotateX(180deg);
43
- }
44
- }
46
+ :host([open]) {
47
+ [pseudo="indicator"] {
48
+ transform: rotateX(180deg);
49
+ }
50
+ }
45
51
 
46
- [pseudo="button"] {
47
- background: white;
48
- cursor: pointer;
49
- display: inline-flex;
50
- align-items: center;
51
- padding: 0.25em 0.5em;
52
+ [pseudo="button"] {
53
+ background: white;
54
+ cursor: pointer;
55
+ display: inline-flex;
56
+ align-items: center;
57
+ padding: 0.25em 0.5em;
52
58
 
53
- tp-selected-content {
54
- margin-inline-end: 0.5em;
55
- }
56
- }
59
+ tp-selected-content {
60
+ margin-inline-end: 0.5em;
61
+ }
62
+ }
57
63
 
58
- [pseudo="indicator"] {
59
- margin-inline-start: auto;
60
- }
64
+ [pseudo="indicator"] {
65
+ margin-inline-start: auto;
66
+ }
61
67
 
62
- tp-popover {
63
- border: none;
64
- padding: 0;
65
- }
66
- `; }
68
+ tp-popover {
69
+ border: none;
70
+ padding: 0;
71
+ }
72
+ }`;
73
+ const documentStyles = lit.css `
74
+ @layer base {
75
+ tp-select {
76
+ ${variables}
77
+ }
78
+ }
79
+ `;
80
+ document.adoptedStyleSheets = [...document.adoptedStyleSheets, documentStyles.styleSheet];
81
+ return shadowStyles;
82
+ })(); }
67
83
  #options;
84
+ get #popover() {
85
+ return this.shadowRoot?.querySelector("tp-popover");
86
+ }
68
87
  #value;
69
88
  get value() {
70
89
  return this.#value.get();
@@ -125,6 +144,17 @@ exports.SelectElement = class SelectElement extends signalWatcherLitElement.Sign
125
144
  * down to size from the end.
126
145
  */
127
146
  this.max = 1;
147
+ /**
148
+ * Minimum number of options that must remain selected.
149
+ *
150
+ * Defaults to `0` (no lower bound). When the current selection size is at
151
+ * or below `min`, calls to {@link deselectOption} (and the click-driven
152
+ * toggle inside the popover) become no-ops, so the user can't drop below
153
+ * the floor by interacting with the control. Programmatic writes to
154
+ * `value` and `selectedOptions` are not policed — `min` is purely an
155
+ * interaction guard.
156
+ */
157
+ this.min = 0;
128
158
  /** Form field name. Submitted with the owning `<form>`. */
129
159
  this.name = null;
130
160
  /** When true, the element is non-interactive and excluded from form submission. */
@@ -304,10 +334,13 @@ exports.SelectElement = class SelectElement extends signalWatcherLitElement.Sign
304
334
  this.selectedOptions.set(trimmed);
305
335
  }
306
336
  deselectOption(option) {
307
- const optionRef = this.selectedOptions.get().find(ref => ref.deref() === option);
337
+ const current = this.selectedOptions.get();
338
+ const optionRef = current.find(ref => ref.deref() === option);
308
339
  if (!optionRef)
309
340
  return;
310
- this.selectedOptions.set(this.selectedOptions.get().filter(ref => ref !== optionRef));
341
+ if (current.length <= this.min)
342
+ return;
343
+ this.selectedOptions.set(current.filter(ref => ref !== optionRef));
311
344
  }
312
345
  toggleOption(option) {
313
346
  const ref = this.selectedOptions.get().find(ref => ref.deref() === option);
@@ -318,6 +351,72 @@ exports.SelectElement = class SelectElement extends signalWatcherLitElement.Sign
318
351
  this.selectOption(option);
319
352
  }
320
353
  }
354
+ /**
355
+ * Open, close, or toggle the dropdown popover.
356
+ *
357
+ * Overrides the native {@link HTMLElement.togglePopover} so callers can
358
+ * drive the select from outside without reaching into the shadow DOM.
359
+ * `<tp-select>` itself is not the popover element — the actual popover
360
+ * lives inside its shadow root — so the call is delegated to the inner
361
+ * `<tp-popover>`.
362
+ *
363
+ * @param options Same shape as the native API: pass `true` to force open,
364
+ * `false` to force close, or a `{ force }` options bag. Omit to toggle
365
+ * between the two states.
366
+ * @returns `true` if the popover ends up open, `false` otherwise (matching
367
+ * the native return value). Returns `false` early if the inner popover
368
+ * isn't reachable yet (for example, before the first render).
369
+ *
370
+ * @example
371
+ * ```ts
372
+ * const select = document.querySelector('tp-select');
373
+ * select.togglePopover(); // toggle
374
+ * select.togglePopover(true); // force open
375
+ * select.togglePopover(false); // force close
376
+ * ```
377
+ */
378
+ togglePopover() {
379
+ return this.#popover.togglePopover();
380
+ }
381
+ /**
382
+ * Close the dropdown popover.
383
+ *
384
+ * Overrides the native {@link HTMLElement.hidePopover} so callers can
385
+ * close the select from outside without reaching into the shadow DOM.
386
+ * `<tp-select>` itself is not the popover element — the actual popover
387
+ * lives inside its shadow root — so the call is delegated to the inner
388
+ * `<tp-popover>`.
389
+ *
390
+ * No-op if the popover is already closed.
391
+ *
392
+ * @example
393
+ * ```ts
394
+ * document.querySelector('tp-select').hidePopover();
395
+ * ```
396
+ */
397
+ hidePopover() {
398
+ this.#popover.hidePopover();
399
+ }
400
+ /**
401
+ * Open the dropdown popover.
402
+ *
403
+ * Overrides the native {@link HTMLElement.showPopover} so callers can
404
+ * open the select from outside without reaching into the shadow DOM.
405
+ * `<tp-select>` itself is not the popover element — the actual popover
406
+ * lives inside its shadow root — so the call is delegated to the inner
407
+ * `<tp-popover>`.
408
+ *
409
+ * @param options Same shape as the native API (e.g. `{ source }` to set
410
+ * the invoker for the popover invoker relationship).
411
+ *
412
+ * @example
413
+ * ```ts
414
+ * document.querySelector('tp-select').showPopover();
415
+ * ```
416
+ */
417
+ showPopover() {
418
+ this.#popover.showPopover();
419
+ }
321
420
  [internalProps.REGISTER_OPTION](option) {
322
421
  this.#options.add(option);
323
422
  }
@@ -391,6 +490,22 @@ tslib.__decorate([
391
490
  }),
392
491
  tslib.__metadata("design:type", Number)
393
492
  ], exports.SelectElement.prototype, "max", void 0);
493
+ tslib.__decorate([
494
+ decorators_js.property({
495
+ type: Number,
496
+ reflect: true,
497
+ converter: {
498
+ fromAttribute: (value) => {
499
+ if (value === null || value === undefined || value === "")
500
+ return 0;
501
+ const parsed = Number(String(value).trim());
502
+ return Number.isFinite(parsed) && parsed >= 0 ? Math.floor(parsed) : 0;
503
+ },
504
+ toAttribute: (value) => String(value),
505
+ },
506
+ }),
507
+ tslib.__metadata("design:type", Number)
508
+ ], exports.SelectElement.prototype, "min", void 0);
394
509
  tslib.__decorate([
395
510
  decorators_js.property({ type: String, reflect: true }),
396
511
  tslib.__metadata("design:type", Object)
@@ -1 +1 @@
1
- {"version":3,"file":"select.element.cjs","sources":["../../../../libs/elements/src/select/select.element.ts"],"sourcesContent":[null],"names":["SelectElement","SignalWatcherLitElement","OptionElement","css","defer","signal","computed","PopoverElement","SelectedContentElement","html","SelectChangeEvent","REGISTER_OPTION","UNREGISTER_OPTION","sliceBefore","__decorate","provide","selectContext","property","customElement"],"mappings":";;;;;;;;;;;;;;;;;;AAgHaA,qBAAa,GAAnB,MAAM,aAAc,SAAQC,+CAAuB,CAAA;;aACjD,IAAA,CAAA,cAAc,GAAG,IAAH,CAAQ;AAEd,IAAA,SAAA,IAAA,CAAA,uBAAuB,GAAG,CAACC,4BAAa,CAAC,CAAC;aAClD,IAAA,CAAA,MAAM,GAAGC,OAAG,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2ClB,EAAA,CA3CY,CA2CX;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;QACpBC,WA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AAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AACf,CAAA,EAAAjB,qBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAI3Bc,gBAAA,CAAA;IADCG,sBAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AAC1B,CAAA,EAAAjB,qBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAIjBc,gBAAA,CAAA;IADCG,sBAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AAC1B,CAAA,EAAAjB,qBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAGjBc,gBAAA,CAAA;IADCG,sBAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;AAC9B,CAAA,EAAAjB,qBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AA/IFA,qBAAa,GAAA,eAAA,GAAAc,gBAAA,CAAA;IADzBI,2BAAa,CAAC,WAAW,CAAC;;AACd,CAAA,EAAAlB,qBAAa,CAiZzB;;"}
1
+ {"version":3,"file":"select.element.cjs","sources":["../../../../libs/elements/src/select/select.element.ts"],"sourcesContent":[null],"names":["SelectElement","ShadeMixerSignalWatcherLitElement","OptionElement","css","ShadeMixerLitElement","defer","signal","computed","PopoverElement","SelectedContentElement","html","SelectChangeEvent","REGISTER_OPTION","UNREGISTER_OPTION","sliceBefore","__decorate","provide","selectContext","property","customElement"],"mappings":";;;;;;;;;;;;;;;;;;;AAkJaA,qBAAa,GAAnB,MAAM,aAAc,SAAQC,yDAAiC,CAAA;;aAC3D,IAAA,CAAA,cAAc,GAAG,IAAH,CAAQ;AAEd,IAAA,SAAA,IAAA,CAAA,uBAAuB,GAAG,CAACC,4BAAa,CAAC,CAAC;aAClD,IAAA,CAAA,MAAM,GAAG,CAAC,MA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