codexly-ui 0.0.28 → 0.0.29
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/fesm2022/codexly-ui.mjs +3 -2
- package/fesm2022/codexly-ui.mjs.map +1 -1
- package/index.d.ts +20 -20
- package/package.json +1 -1
package/fesm2022/codexly-ui.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { isPlatformBrowser, CurrencyPipe, NgTemplateOutlet, DecimalPipe, NgStyle
|
|
|
4
4
|
import * as i1 from '@angular/forms';
|
|
5
5
|
import { NG_VALUE_ACCESSOR, FormsModule, NgControl, FormControl, ReactiveFormsModule, FormGroup, Validators } from '@angular/forms';
|
|
6
6
|
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
|
-
import { startWith, debounceTime, distinctUntilChanged, switchMap, of, catchError } from 'rxjs';
|
|
7
|
+
import { startWith, map, debounceTime, distinctUntilChanged, switchMap, of, catchError } from 'rxjs';
|
|
8
8
|
import * as i1$1 from '@angular/cdk/overlay';
|
|
9
9
|
import { ScrollStrategyOptions, OverlayModule, Overlay, OverlayConfig } from '@angular/cdk/overlay';
|
|
10
10
|
import { Chart, LineController, BarController, PieController, DoughnutController, RadarController, PolarAreaController, CategoryScale, LinearScale, RadialLinearScale, BarElement, LineElement, PointElement, ArcElement, Filler, Tooltip, Legend } from 'chart.js';
|
|
@@ -4042,7 +4042,7 @@ class ClxSelectComponent {
|
|
|
4042
4042
|
_overlayWidthPx = signal(0, ...(ngDevMode ? [{ debugName: "_overlayWidthPx" }] : []));
|
|
4043
4043
|
// ── Search control (drives clx-input inside the panel) ─────────────────────
|
|
4044
4044
|
_searchControl = new FormControl('');
|
|
4045
|
-
_searchQuery
|
|
4045
|
+
_searchQuery;
|
|
4046
4046
|
// ── Async state ─────────────────────────────────────────────────────────────
|
|
4047
4047
|
_asyncOptions = signal([], ...(ngDevMode ? [{ debugName: "_asyncOptions" }] : []));
|
|
4048
4048
|
_asyncLoading = signal(false, ...(ngDevMode ? [{ debugName: "_asyncLoading" }] : []));
|
|
@@ -4056,6 +4056,7 @@ class ClxSelectComponent {
|
|
|
4056
4056
|
_sso = inject(ScrollStrategyOptions);
|
|
4057
4057
|
_scrollStrategy = this._sso.reposition();
|
|
4058
4058
|
constructor() {
|
|
4059
|
+
this._searchQuery = toSignal(this._searchControl.valueChanges.pipe(startWith(''), map(v => v ?? '')), { initialValue: '' });
|
|
4059
4060
|
if (this._ngControl)
|
|
4060
4061
|
this._ngControl.valueAccessor = this;
|
|
4061
4062
|
// Async autocomplete: debounce + switchMap sobre el search control
|