@neural-ui/core 1.3.0 → 1.3.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.
- package/README.md +3 -3
- package/fesm2022/neural-ui-core-autocomplete.mjs +82 -8
- package/fesm2022/neural-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/neural-ui-core-multiselect.mjs +97 -20
- package/fesm2022/neural-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/neural-ui-core-select.mjs +91 -19
- package/fesm2022/neural-ui-core-select.mjs.map +1 -1
- package/fesm2022/neural-ui-core-table.mjs +18 -6
- package/fesm2022/neural-ui-core-table.mjs.map +1 -1
- package/fesm2022/neural-ui-core-tabs.mjs +100 -8
- package/fesm2022/neural-ui-core-tabs.mjs.map +1 -1
- package/package.json +1 -1
- package/types/neural-ui-core-autocomplete.d.ts +7 -1
- package/types/neural-ui-core-multiselect.d.ts +16 -7
- package/types/neural-ui-core-select.d.ts +18 -9
- package/types/neural-ui-core-table.d.ts +28 -25
- package/types/neural-ui-core-tabs.d.ts +16 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken, AfterViewInit, OnDestroy } from '@angular/core';
|
|
2
|
+
import { InjectionToken, AfterViewInit, OnDestroy, Signal } from '@angular/core';
|
|
3
3
|
|
|
4
4
|
declare const NEU_TABS_CONTEXT: InjectionToken<NeuTabsComponent>;
|
|
5
5
|
interface NeuTab {
|
|
@@ -28,6 +28,14 @@ declare class NeuTabsComponent implements AfterViewInit, OnDestroy {
|
|
|
28
28
|
private readonly urlState;
|
|
29
29
|
private readonly elRef;
|
|
30
30
|
private resizeObserver?;
|
|
31
|
+
private readonly _urlParamSignals;
|
|
32
|
+
private _dragPointerId;
|
|
33
|
+
private _dragStartX;
|
|
34
|
+
private _dragStartScrollLeft;
|
|
35
|
+
private _suppressNextClick;
|
|
36
|
+
readonly isDraggingNav: _angular_core.WritableSignal<boolean>;
|
|
37
|
+
private _getUrlParamSignal;
|
|
38
|
+
private _readUrlParam;
|
|
31
39
|
constructor();
|
|
32
40
|
/** Definición de pestañas / Tab definitions */
|
|
33
41
|
tabs: _angular_core.InputSignal<NeuTab[]>;
|
|
@@ -40,15 +48,19 @@ declare class NeuTabsComponent implements AfterViewInit, OnDestroy {
|
|
|
40
48
|
/** Emite al cambiar de pestaña / Emits when the tab changes */
|
|
41
49
|
tabChange: _angular_core.OutputEmitterRef<string>;
|
|
42
50
|
/** ID de la pestaña activa (de la URL o la primera disponible) / Active tab ID (from the URL or the first available) */
|
|
43
|
-
readonly activeTabId:
|
|
51
|
+
readonly activeTabId: Signal<string>;
|
|
44
52
|
/** Posición del indicador calculada mediante medición DOM / Indicator position calculated via DOM measurement */
|
|
45
53
|
private readonly _indicatorLeft;
|
|
46
54
|
private readonly _indicatorWidth;
|
|
47
|
-
readonly indicatorStyle:
|
|
55
|
+
readonly indicatorStyle: Signal<string>;
|
|
48
56
|
ngAfterViewInit(): void;
|
|
49
57
|
ngOnDestroy(): void;
|
|
50
58
|
private _updateIndicator;
|
|
59
|
+
handleTabClick(event: Event, tab: NeuTab): void;
|
|
51
60
|
selectTab(tab: NeuTab): void;
|
|
61
|
+
startNavDrag(event: PointerEvent): void;
|
|
62
|
+
moveNavDrag(event: PointerEvent): void;
|
|
63
|
+
endNavDrag(event: PointerEvent): void;
|
|
52
64
|
/** Mueve el foco entre tabs con flechas (roving tabindex — WAI-ARIA Tabs Pattern) / Moves focus between tabs with arrows (roving tabindex — WAI-ARIA Tabs Pattern) */
|
|
53
65
|
focusTab(event: Event, dir: 1 | -1 | 'first' | 'last'): void;
|
|
54
66
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NeuTabsComponent, never>;
|
|
@@ -67,7 +79,7 @@ declare class NeuTabPanelComponent {
|
|
|
67
79
|
private readonly tabs;
|
|
68
80
|
/** ID que debe coincidir con NeuTab.id del padre / ID that must match the parent NeuTab.id */
|
|
69
81
|
tabId: _angular_core.InputSignal<string>;
|
|
70
|
-
readonly isActive:
|
|
82
|
+
readonly isActive: Signal<boolean>;
|
|
71
83
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NeuTabPanelComponent, never>;
|
|
72
84
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NeuTabPanelComponent, "neu-tab-panel", never, { "tabId": { "alias": "tabId"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
73
85
|
}
|