@neural-ui/core 1.5.7 → 1.5.9
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/neural-ui-core-autocomplete.mjs +193 -90
- package/fesm2022/neural-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/neural-ui-core-color-picker.mjs +66 -8
- package/fesm2022/neural-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/neural-ui-core-date-input.mjs +139 -19
- package/fesm2022/neural-ui-core-date-input.mjs.map +1 -1
- package/fesm2022/neural-ui-core-multiselect.mjs +86 -32
- package/fesm2022/neural-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/neural-ui-core-notification-center.mjs +63 -7
- package/fesm2022/neural-ui-core-notification-center.mjs.map +1 -1
- package/fesm2022/neural-ui-core-select.mjs +87 -39
- package/fesm2022/neural-ui-core-select.mjs.map +1 -1
- package/fesm2022/neural-ui-core-split-button.mjs +67 -8
- package/fesm2022/neural-ui-core-split-button.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/_cdk-overlay.scss +69 -0
- package/styles/index.scss +1 -0
- package/types/neural-ui-core-autocomplete.d.ts +11 -0
- package/types/neural-ui-core-color-picker.d.ts +6 -0
- package/types/neural-ui-core-date-input.d.ts +7 -1
- package/types/neural-ui-core-multiselect.d.ts +8 -3
- package/types/neural-ui-core-notification-center.d.ts +6 -0
- package/types/neural-ui-core-select.d.ts +8 -2
- package/types/neural-ui-core-split-button.d.ts +6 -0
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
2
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
5
|
|
|
@@ -29,6 +31,10 @@ declare class NeuColorPickerComponent implements ControlValueAccessor {
|
|
|
29
31
|
private _onChange;
|
|
30
32
|
private _onTouched;
|
|
31
33
|
private readonly _el;
|
|
34
|
+
private readonly _overlay;
|
|
35
|
+
readonly _viewportMargin = 16;
|
|
36
|
+
readonly overlayPositions: ConnectedPosition[];
|
|
37
|
+
readonly overlayScrollStrategy: _angular_cdk_overlay.RepositionScrollStrategy;
|
|
32
38
|
_outsideClick(e: MouseEvent): void;
|
|
33
39
|
readonly _hexValue: _angular_core.Signal<string>;
|
|
34
40
|
readonly _textValue: _angular_core.Signal<string>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
2
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { OnDestroy } from '@angular/core';
|
|
3
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
@@ -42,8 +44,8 @@ interface RangeCell {
|
|
|
42
44
|
*/
|
|
43
45
|
declare class NeuDateInputComponent implements ControlValueAccessor, OnDestroy {
|
|
44
46
|
#private;
|
|
45
|
-
private readonly el;
|
|
46
47
|
private readonly doc;
|
|
48
|
+
private readonly overlay;
|
|
47
49
|
private _langObserver?;
|
|
48
50
|
/** Tipo del campo / Field type */
|
|
49
51
|
type: _angular_core.InputSignal<"date" | "time" | "datetime-local" | "range">;
|
|
@@ -83,6 +85,10 @@ declare class NeuDateInputComponent implements ControlValueAccessor, OnDestroy {
|
|
|
83
85
|
readonly rangeChange: _angular_core.OutputEmitterRef<NeuDateRange>;
|
|
84
86
|
protected readonly _id: string;
|
|
85
87
|
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
88
|
+
readonly _viewportMargin = 16;
|
|
89
|
+
readonly singleOverlayPositions: ConnectedPosition[];
|
|
90
|
+
readonly rangeOverlayPositions: ConnectedPosition[];
|
|
91
|
+
readonly overlayScrollStrategy: _angular_cdk_overlay.RepositionScrollStrategy;
|
|
86
92
|
readonly _isRange: _angular_core.Signal<boolean>;
|
|
87
93
|
private readonly _cvaDisabled;
|
|
88
94
|
readonly isDisabledFinal: _angular_core.Signal<boolean>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
2
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { TemplateRef, Signal } from '@angular/core';
|
|
3
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
@@ -37,9 +39,10 @@ declare class NeuMultiselectItemDirective {
|
|
|
37
39
|
*/
|
|
38
40
|
declare class NeuMultiselectComponent implements ControlValueAccessor {
|
|
39
41
|
private readonly elementRef;
|
|
42
|
+
private readonly _document;
|
|
43
|
+
private readonly _overlay;
|
|
40
44
|
private readonly _urlState;
|
|
41
|
-
|
|
42
|
-
private readonly _viewportMargin;
|
|
45
|
+
readonly _viewportMargin = 16;
|
|
43
46
|
private readonly _panelMaxHeight;
|
|
44
47
|
private readonly _urlParamSignals;
|
|
45
48
|
private readonly _viewport;
|
|
@@ -98,6 +101,8 @@ declare class NeuMultiselectComponent implements ControlValueAccessor {
|
|
|
98
101
|
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
99
102
|
readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
100
103
|
readonly _chipMode: _angular_core.WritableSignal<"chips" | "count">;
|
|
104
|
+
readonly overlayPositions: ConnectedPosition[];
|
|
105
|
+
readonly overlayScrollStrategy: _angular_cdk_overlay.RepositionScrollStrategy;
|
|
101
106
|
readonly panelPosition: _angular_core.WritableSignal<{
|
|
102
107
|
position: string | null;
|
|
103
108
|
top: string | null;
|
|
@@ -135,7 +140,7 @@ declare class NeuMultiselectComponent implements ControlValueAccessor {
|
|
|
135
140
|
protected removeValue(value: string, event: MouseEvent): void;
|
|
136
141
|
protected clearAll(event: MouseEvent): void;
|
|
137
142
|
protected toggleChipMode(event: MouseEvent): void;
|
|
138
|
-
|
|
143
|
+
onDocumentClick(event: MouseEvent): void;
|
|
139
144
|
onWindowResize(): void;
|
|
140
145
|
onWindowScroll(): void;
|
|
141
146
|
private syncPanelPosition;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
2
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
1
3
|
import * as i0 from '@angular/core';
|
|
2
4
|
|
|
3
5
|
type NeuNotificationType = 'info' | 'success' | 'warning' | 'error';
|
|
@@ -48,8 +50,12 @@ declare class NeuNotificationService {
|
|
|
48
50
|
*/
|
|
49
51
|
declare class NeuNotificationCenterComponent {
|
|
50
52
|
readonly _svc: NeuNotificationService;
|
|
53
|
+
private readonly overlay;
|
|
51
54
|
readonly _isOpen: i0.WritableSignal<boolean>;
|
|
52
55
|
readonly _panelId: string;
|
|
56
|
+
readonly _viewportMargin = 16;
|
|
57
|
+
readonly overlayPositions: ConnectedPosition[];
|
|
58
|
+
readonly overlayScrollStrategy: _angular_cdk_overlay.RepositionScrollStrategy;
|
|
53
59
|
_toggle(): void;
|
|
54
60
|
_relativeTime(date: Date): string;
|
|
55
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<NeuNotificationCenterComponent, never>;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
2
|
+
import { ConnectedPosition, ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
|
|
1
3
|
import * as _angular_core from '@angular/core';
|
|
2
4
|
import { TemplateRef, Signal } from '@angular/core';
|
|
3
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
@@ -72,9 +74,10 @@ declare class NeuSelectSelectedDirective {
|
|
|
72
74
|
*/
|
|
73
75
|
declare class NeuSelectComponent implements ControlValueAccessor {
|
|
74
76
|
private readonly elementRef;
|
|
77
|
+
private readonly _document;
|
|
78
|
+
private readonly _overlay;
|
|
75
79
|
private readonly _urlState;
|
|
76
|
-
|
|
77
|
-
private readonly _viewportMargin;
|
|
80
|
+
readonly _viewportMargin = 16;
|
|
78
81
|
private readonly _panelMaxHeight;
|
|
79
82
|
private readonly _urlParamSignals;
|
|
80
83
|
private readonly _viewport;
|
|
@@ -132,6 +135,8 @@ declare class NeuSelectComponent implements ControlValueAccessor {
|
|
|
132
135
|
protected readonly _value: _angular_core.WritableSignal<string | null>;
|
|
133
136
|
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
134
137
|
readonly searchQuery: _angular_core.WritableSignal<string>;
|
|
138
|
+
readonly overlayPositions: ConnectedPosition[];
|
|
139
|
+
readonly overlayScrollStrategy: _angular_cdk_overlay.RepositionScrollStrategy;
|
|
135
140
|
readonly panelPosition: _angular_core.WritableSignal<{
|
|
136
141
|
position: string | null;
|
|
137
142
|
top: string | null;
|
|
@@ -172,6 +177,7 @@ declare class NeuSelectComponent implements ControlValueAccessor {
|
|
|
172
177
|
onWindowResize(): void;
|
|
173
178
|
onWindowScroll(): void;
|
|
174
179
|
private syncPanelPosition;
|
|
180
|
+
onOverlayPositionChange(event: ConnectedOverlayPositionChange): void;
|
|
175
181
|
private focusFirstOption;
|
|
176
182
|
private focusOption;
|
|
177
183
|
private resetPanelPosition;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _angular_cdk_overlay from '@angular/cdk/overlay';
|
|
3
|
+
import { ConnectedPosition } from '@angular/cdk/overlay';
|
|
2
4
|
import { NeuButtonVariant, NeuButtonSize } from '@neural-ui/core/button';
|
|
3
5
|
|
|
4
6
|
interface NeuSplitButtonAction {
|
|
@@ -28,6 +30,10 @@ interface NeuSplitButtonAction {
|
|
|
28
30
|
*/
|
|
29
31
|
declare class NeuSplitButtonComponent {
|
|
30
32
|
private readonly el;
|
|
33
|
+
private readonly overlay;
|
|
34
|
+
readonly _viewportMargin = 16;
|
|
35
|
+
readonly overlayPositions: ConnectedPosition[];
|
|
36
|
+
readonly overlayScrollStrategy: _angular_cdk_overlay.RepositionScrollStrategy;
|
|
31
37
|
/** Texto del botón principal / Primary button text */
|
|
32
38
|
label: _angular_core.InputSignal<string>;
|
|
33
39
|
/** Variante visual / Visual variant */
|