@taiga-ui/core 5.25.0-canary.6f46c3c → 5.26.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/classes/accessors.d.ts +3 -0
- package/components/scrollbar/scrollbar.component.d.ts +1 -1
- package/fesm2022/taiga-ui-core-classes.mjs +1 -0
- package/fesm2022/taiga-ui-core-classes.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-button.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-button.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-cell.mjs +3 -3
- package/fesm2022/taiga-ui-core-components-cell.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-checkbox.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-checkbox.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-data-list.mjs +4 -4
- package/fesm2022/taiga-ui-core-components-data-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-icon.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-icon.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-label.mjs +3 -3
- package/fesm2022/taiga-ui-core-components-label.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-link.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-link.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-notification.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-notification.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-radio.mjs +2 -2
- package/fesm2022/taiga-ui-core-components-radio.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-root.mjs +1 -1
- package/fesm2022/taiga-ui-core-components-root.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs +3 -3
- package/fesm2022/taiga-ui-core-components-scrollbar.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-textfield.mjs +4 -4
- package/fesm2022/taiga-ui-core-components-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-components-title.mjs +3 -3
- package/fesm2022/taiga-ui-core-components-title.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-appearance.mjs +3 -3
- package/fesm2022/taiga-ui-core-directives-appearance.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-group.mjs +3 -3
- package/fesm2022/taiga-ui-core-directives-group.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-directives-icons.mjs +3 -3
- package/fesm2022/taiga-ui-core-directives-icons.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-alert.mjs +3 -3
- package/fesm2022/taiga-ui-core-portals-alert.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-dialog.mjs +2 -2
- package/fesm2022/taiga-ui-core-portals-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-dropdown.mjs +229 -154
- package/fesm2022/taiga-ui-core-portals-dropdown.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-hint.mjs +7 -21
- package/fesm2022/taiga-ui-core-portals-hint.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-portals-modal.mjs +3 -3
- package/fesm2022/taiga-ui-core-portals-modal.mjs.map +1 -1
- package/fesm2022/taiga-ui-core-utils-dom.mjs +21 -1
- package/fesm2022/taiga-ui-core-utils-dom.mjs.map +1 -1
- package/package.json +34 -34
- package/portals/dropdown/dropdown-anchored.directive.d.ts +3 -0
- package/portals/dropdown/dropdown-context.directive.d.ts +3 -4
- package/portals/dropdown/dropdown-position-sided.directive.d.ts +2 -0
- package/portals/dropdown/dropdown-position.directive.d.ts +2 -0
- package/portals/dropdown/dropdown-selection.directive.d.ts +1 -1
- package/portals/dropdown/dropdown.component.d.ts +8 -5
- package/portals/dropdown/dropdown.providers.d.ts +2 -3
- package/portals/hint/hint-pointer.directive.d.ts +1 -3
- package/utils/dom/anchor-delegate.d.ts +1 -0
- package/utils/dom/index.d.ts +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.26.0",
|
|
4
4
|
"description": "Core library for creating Angular components and applications using Taiga UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@ng-web-apis/intersection-observer": "^5.3.0",
|
|
42
42
|
"@ng-web-apis/mutation-observer": "^5.3.0",
|
|
43
43
|
"@ng-web-apis/platform": "^5.3.0",
|
|
44
|
-
"@taiga-ui/cdk": "5.
|
|
44
|
+
"@taiga-ui/cdk": "5.26.0",
|
|
45
45
|
"@taiga-ui/event-plugins": "^5.0.0",
|
|
46
|
-
"@taiga-ui/i18n": "5.
|
|
46
|
+
"@taiga-ui/i18n": "5.26.0",
|
|
47
47
|
"@taiga-ui/polymorpheus": "^5.0.1",
|
|
48
|
-
"@taiga-ui/styles": "5.
|
|
48
|
+
"@taiga-ui/styles": "5.26.0",
|
|
49
49
|
"rxjs": ">=7.0.0"
|
|
50
50
|
},
|
|
51
51
|
"schematics": "./schematics/collection.json",
|
|
@@ -67,14 +67,14 @@
|
|
|
67
67
|
"types": "./directives/index.d.ts",
|
|
68
68
|
"default": "./fesm2022/taiga-ui-core-directives.mjs"
|
|
69
69
|
},
|
|
70
|
-
"./components": {
|
|
71
|
-
"types": "./components/index.d.ts",
|
|
72
|
-
"default": "./fesm2022/taiga-ui-core-components.mjs"
|
|
73
|
-
},
|
|
74
70
|
"./pipes": {
|
|
75
71
|
"types": "./pipes/index.d.ts",
|
|
76
72
|
"default": "./fesm2022/taiga-ui-core-pipes.mjs"
|
|
77
73
|
},
|
|
74
|
+
"./components": {
|
|
75
|
+
"types": "./components/index.d.ts",
|
|
76
|
+
"default": "./fesm2022/taiga-ui-core-components.mjs"
|
|
77
|
+
},
|
|
78
78
|
"./portals": {
|
|
79
79
|
"types": "./portals/index.d.ts",
|
|
80
80
|
"default": "./fesm2022/taiga-ui-core-portals.mjs"
|
|
@@ -107,10 +107,6 @@
|
|
|
107
107
|
"types": "./directives/date-format/index.d.ts",
|
|
108
108
|
"default": "./fesm2022/taiga-ui-core-directives-date-format.mjs"
|
|
109
109
|
},
|
|
110
|
-
"./directives/group": {
|
|
111
|
-
"types": "./directives/group/index.d.ts",
|
|
112
|
-
"default": "./fesm2022/taiga-ui-core-directives-group.mjs"
|
|
113
|
-
},
|
|
114
110
|
"./directives/icons": {
|
|
115
111
|
"types": "./directives/icons/index.d.ts",
|
|
116
112
|
"default": "./fesm2022/taiga-ui-core-directives-icons.mjs"
|
|
@@ -119,10 +115,22 @@
|
|
|
119
115
|
"types": "./directives/items-handlers/index.d.ts",
|
|
120
116
|
"default": "./fesm2022/taiga-ui-core-directives-items-handlers.mjs"
|
|
121
117
|
},
|
|
118
|
+
"./directives/group": {
|
|
119
|
+
"types": "./directives/group/index.d.ts",
|
|
120
|
+
"default": "./fesm2022/taiga-ui-core-directives-group.mjs"
|
|
121
|
+
},
|
|
122
122
|
"./directives/number-format": {
|
|
123
123
|
"types": "./directives/number-format/index.d.ts",
|
|
124
124
|
"default": "./fesm2022/taiga-ui-core-directives-number-format.mjs"
|
|
125
125
|
},
|
|
126
|
+
"./pipes/filter-by-input": {
|
|
127
|
+
"types": "./pipes/filter-by-input/index.d.ts",
|
|
128
|
+
"default": "./fesm2022/taiga-ui-core-pipes-filter-by-input.mjs"
|
|
129
|
+
},
|
|
130
|
+
"./pipes/format-number": {
|
|
131
|
+
"types": "./pipes/format-number/index.d.ts",
|
|
132
|
+
"default": "./fesm2022/taiga-ui-core-pipes-format-number.mjs"
|
|
133
|
+
},
|
|
126
134
|
"./components/button": {
|
|
127
135
|
"types": "./components/button/index.d.ts",
|
|
128
136
|
"default": "./fesm2022/taiga-ui-core-components-button.mjs"
|
|
@@ -179,14 +187,14 @@
|
|
|
179
187
|
"types": "./components/notification/index.d.ts",
|
|
180
188
|
"default": "./fesm2022/taiga-ui-core-components-notification.mjs"
|
|
181
189
|
},
|
|
182
|
-
"./components/radio": {
|
|
183
|
-
"types": "./components/radio/index.d.ts",
|
|
184
|
-
"default": "./fesm2022/taiga-ui-core-components-radio.mjs"
|
|
185
|
-
},
|
|
186
190
|
"./components/root": {
|
|
187
191
|
"types": "./components/root/index.d.ts",
|
|
188
192
|
"default": "./fesm2022/taiga-ui-core-components-root.mjs"
|
|
189
193
|
},
|
|
194
|
+
"./components/radio": {
|
|
195
|
+
"types": "./components/radio/index.d.ts",
|
|
196
|
+
"default": "./fesm2022/taiga-ui-core-components-radio.mjs"
|
|
197
|
+
},
|
|
190
198
|
"./components/scrollbar": {
|
|
191
199
|
"types": "./components/scrollbar/index.d.ts",
|
|
192
200
|
"default": "./fesm2022/taiga-ui-core-components-scrollbar.mjs"
|
|
@@ -207,14 +215,6 @@
|
|
|
207
215
|
"types": "./components/title/index.d.ts",
|
|
208
216
|
"default": "./fesm2022/taiga-ui-core-components-title.mjs"
|
|
209
217
|
},
|
|
210
|
-
"./pipes/filter-by-input": {
|
|
211
|
-
"types": "./pipes/filter-by-input/index.d.ts",
|
|
212
|
-
"default": "./fesm2022/taiga-ui-core-pipes-filter-by-input.mjs"
|
|
213
|
-
},
|
|
214
|
-
"./pipes/format-number": {
|
|
215
|
-
"types": "./pipes/format-number/index.d.ts",
|
|
216
|
-
"default": "./fesm2022/taiga-ui-core-pipes-format-number.mjs"
|
|
217
|
-
},
|
|
218
218
|
"./portals/alert": {
|
|
219
219
|
"types": "./portals/alert/index.d.ts",
|
|
220
220
|
"default": "./fesm2022/taiga-ui-core-portals-alert.mjs"
|
|
@@ -227,25 +227,21 @@
|
|
|
227
227
|
"types": "./portals/dialog/index.d.ts",
|
|
228
228
|
"default": "./fesm2022/taiga-ui-core-portals-dialog.mjs"
|
|
229
229
|
},
|
|
230
|
-
"./portals/hint": {
|
|
231
|
-
"types": "./portals/hint/index.d.ts",
|
|
232
|
-
"default": "./fesm2022/taiga-ui-core-portals-hint.mjs"
|
|
233
|
-
},
|
|
234
230
|
"./portals/dropdown": {
|
|
235
231
|
"types": "./portals/dropdown/index.d.ts",
|
|
236
232
|
"default": "./fesm2022/taiga-ui-core-portals-dropdown.mjs"
|
|
237
233
|
},
|
|
238
|
-
"./portals/
|
|
239
|
-
"types": "./portals/
|
|
240
|
-
"default": "./fesm2022/taiga-ui-core-portals-
|
|
234
|
+
"./portals/hint": {
|
|
235
|
+
"types": "./portals/hint/index.d.ts",
|
|
236
|
+
"default": "./fesm2022/taiga-ui-core-portals-hint.mjs"
|
|
241
237
|
},
|
|
242
238
|
"./portals/modal": {
|
|
243
239
|
"types": "./portals/modal/index.d.ts",
|
|
244
240
|
"default": "./fesm2022/taiga-ui-core-portals-modal.mjs"
|
|
245
241
|
},
|
|
246
|
-
"./
|
|
247
|
-
"types": "./
|
|
248
|
-
"default": "./fesm2022/taiga-ui-core-
|
|
242
|
+
"./portals/popup": {
|
|
243
|
+
"types": "./portals/popup/index.d.ts",
|
|
244
|
+
"default": "./fesm2022/taiga-ui-core-portals-popup.mjs"
|
|
249
245
|
},
|
|
250
246
|
"./utils/format": {
|
|
251
247
|
"types": "./utils/format/index.d.ts",
|
|
@@ -254,6 +250,10 @@
|
|
|
254
250
|
"./utils/miscellaneous": {
|
|
255
251
|
"types": "./utils/miscellaneous/index.d.ts",
|
|
256
252
|
"default": "./fesm2022/taiga-ui-core-utils-miscellaneous.mjs"
|
|
253
|
+
},
|
|
254
|
+
"./utils/dom": {
|
|
255
|
+
"types": "./utils/dom/index.d.ts",
|
|
256
|
+
"default": "./fesm2022/taiga-ui-core-utils-dom.mjs"
|
|
257
257
|
}
|
|
258
258
|
},
|
|
259
259
|
"sideEffects": false,
|
|
@@ -8,8 +8,11 @@ export declare class TuiDropdownAnchored implements AfterViewInit {
|
|
|
8
8
|
private readonly vvs;
|
|
9
9
|
private readonly options;
|
|
10
10
|
private readonly position;
|
|
11
|
+
private readonly accessor;
|
|
11
12
|
private readonly styles$;
|
|
13
|
+
protected readonly anchored: boolean;
|
|
12
14
|
ngAfterViewInit(): void;
|
|
15
|
+
protected retrigger(): void;
|
|
13
16
|
private getStyles;
|
|
14
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownAnchored, never>;
|
|
15
18
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDropdownAnchored, never, never, {}, {}, never, never, true, never>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type ElementRef, type OnDestroy } from '@angular/core';
|
|
2
2
|
import { TuiActiveZone } from '@taiga-ui/cdk/directives/active-zone';
|
|
3
3
|
import { TuiRectAccessor } from '@taiga-ui/core/classes';
|
|
4
4
|
import { TuiDropdownDriver } from './dropdown.driver';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class TuiDropdownContext extends TuiRectAccessor implements ElementRef<HTMLElement>,
|
|
6
|
+
export declare class TuiDropdownContext extends TuiRectAccessor implements ElementRef<HTMLElement>, OnDestroy {
|
|
7
7
|
private readonly isTouch;
|
|
8
8
|
private currentRect;
|
|
9
9
|
protected readonly userSelect: import("@angular/core").Signal<"none" | null>;
|
|
@@ -13,8 +13,7 @@ export declare class TuiDropdownContext extends TuiRectAccessor implements Eleme
|
|
|
13
13
|
protected readonly el: HTMLElement;
|
|
14
14
|
protected readonly sub: import("rxjs").Subscription;
|
|
15
15
|
readonly type = "dropdown";
|
|
16
|
-
readonly nativeElement:
|
|
17
|
-
ngAfterViewInit(): void;
|
|
16
|
+
readonly nativeElement: HTMLElement;
|
|
18
17
|
ngOnDestroy(): void;
|
|
19
18
|
getClientRect(): DOMRect;
|
|
20
19
|
protected onContextMenu(x: number, y: number): void;
|
|
@@ -2,6 +2,7 @@ import { TuiPositionAccessor } from '@taiga-ui/core/classes';
|
|
|
2
2
|
import { type TuiPoint } from '@taiga-ui/core/types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TuiDropdownPositionSided extends TuiPositionAccessor {
|
|
5
|
+
private readonly anchor;
|
|
5
6
|
private readonly options;
|
|
6
7
|
private readonly viewport;
|
|
7
8
|
private readonly vertical;
|
|
@@ -9,6 +10,7 @@ export declare class TuiDropdownPositionSided extends TuiPositionAccessor {
|
|
|
9
10
|
readonly tuiDropdownSided: import("@angular/core").InputSignal<string | boolean>;
|
|
10
11
|
readonly tuiDropdownSidedOffset: import("@angular/core").InputSignal<number>;
|
|
11
12
|
readonly type = "dropdown";
|
|
13
|
+
position(element: HTMLElement): void;
|
|
12
14
|
getPosition(rect: DOMRect): TuiPoint;
|
|
13
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownPositionSided, never>;
|
|
14
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDropdownPositionSided, "[tuiDropdownSided]", never, { "tuiDropdownSided": { "alias": "tuiDropdownSided"; "required": false; "isSignal": true; }; "tuiDropdownSidedOffset": { "alias": "tuiDropdownSidedOffset"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -7,11 +7,13 @@ export declare class TuiDropdownPosition extends TuiPositionAccessor {
|
|
|
7
7
|
private readonly el;
|
|
8
8
|
private readonly options;
|
|
9
9
|
private readonly viewport;
|
|
10
|
+
private readonly anchor;
|
|
10
11
|
private previous?;
|
|
11
12
|
readonly direction: Subject<TuiVerticalDirection>;
|
|
12
13
|
readonly type = "dropdown";
|
|
13
14
|
readonly accessor: TuiRectAccessor;
|
|
14
15
|
readonly tuiDropdownDirectionChange: import("@angular/core").OutputRef<TuiVerticalDirection>;
|
|
16
|
+
position(element: HTMLElement): void;
|
|
15
17
|
getPosition({ width, height }: DOMRect): TuiPoint;
|
|
16
18
|
getAlign(align: TuiDropdownAlign): 'center' | 'left' | 'right';
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownPosition, never>;
|
|
@@ -13,7 +13,7 @@ export declare class TuiDropdownSelection extends TuiDriver implements ElementRe
|
|
|
13
13
|
protected readonly stream$: import("rxjs").Observable<boolean>;
|
|
14
14
|
protected range: Range;
|
|
15
15
|
readonly type = "dropdown";
|
|
16
|
-
readonly nativeElement:
|
|
16
|
+
readonly nativeElement: HTMLElement;
|
|
17
17
|
readonly tuiDropdownSelection: import("@angular/core").InputSignal<string | TuiBooleanHandler<Range>>;
|
|
18
18
|
readonly tuiDropdownSelectionPosition: import("@angular/core").InputSignal<"selection" | "tag" | "word">;
|
|
19
19
|
constructor();
|
|
@@ -1,21 +1,24 @@
|
|
|
1
|
+
import { InjectionToken, type OnDestroy, type Type } from '@angular/core';
|
|
1
2
|
import { TuiScrollbar } from '@taiga-ui/core/components/scrollbar';
|
|
2
3
|
import { TuiDropdownDirective } from './dropdown.directive';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
import * as i1 from "@taiga-ui/cdk/directives/active-zone";
|
|
5
6
|
import * as i2 from "@taiga-ui/cdk/directives/animated";
|
|
6
7
|
import * as i3 from "./dropdown-anchored.directive";
|
|
8
|
+
export declare const TUI_DROPDOWN_COMPONENT: InjectionToken<Type<any>>;
|
|
7
9
|
/**
|
|
8
10
|
* TODO: Remove extends TuiScrollbar in v6 when TuiScrollable is dropped
|
|
9
11
|
*/
|
|
10
|
-
export declare class TuiDropdownComponent extends TuiScrollbar {
|
|
12
|
+
export declare class TuiDropdownComponent extends TuiScrollbar implements OnDestroy {
|
|
13
|
+
private readonly anchor;
|
|
14
|
+
private readonly position;
|
|
15
|
+
private readonly darkMode;
|
|
11
16
|
protected readonly options: import("./dropdown-options.directive").TuiDropdownOptions;
|
|
12
17
|
protected readonly directive: TuiDropdownDirective;
|
|
13
|
-
protected readonly context: Record<any, any> | null;
|
|
14
|
-
protected readonly darkMode: import("@angular/core").WritableSignal<boolean> & {
|
|
15
|
-
reset(): void;
|
|
16
|
-
};
|
|
17
18
|
protected readonly theme: import("@angular/core").Signal<string | null | undefined>;
|
|
19
|
+
ngOnDestroy(): void;
|
|
18
20
|
protected readonly close: () => void;
|
|
21
|
+
protected onResize({ target, contentRect }: ResizeObserverEntry): void;
|
|
19
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDropdownComponent, never>;
|
|
20
23
|
static ɵcmp: i0.ɵɵComponentDeclaration<TuiDropdownComponent, "tui-dropdown", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiActiveZone; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i3.TuiDropdownAnchored; inputs: {}; outputs: {}; }]>;
|
|
21
24
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { type ElementRef, InjectionToken
|
|
1
|
+
import { type ElementRef, InjectionToken } from '@angular/core';
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* @deprecated: remove in v6
|
|
4
4
|
*/
|
|
5
|
-
export declare const TUI_DROPDOWN_COMPONENT: InjectionToken<Type<any>>;
|
|
6
5
|
export declare const TUI_DROPDOWN_CONTEXT: InjectionToken<Record<any, any>>;
|
|
7
6
|
export declare const TUI_DROPDOWN_HOST: InjectionToken<ElementRef<Element>>;
|
|
8
7
|
export declare const TUI_DROPDOWN_ANCHOR: InjectionToken<ElementRef<HTMLElement>>;
|
|
@@ -3,10 +3,8 @@ import { type TuiRectAccessor } from '@taiga-ui/core/classes';
|
|
|
3
3
|
import { TuiHintHover } from './hint-hover.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class TuiHintPointer extends TuiHintHover implements TuiRectAccessor, ElementRef<HTMLElement>, OnDestroy {
|
|
6
|
-
private readonly doc;
|
|
7
6
|
private currentRect;
|
|
8
|
-
readonly nativeElement:
|
|
9
|
-
constructor();
|
|
7
|
+
readonly nativeElement: HTMLElement;
|
|
10
8
|
ngOnDestroy(): void;
|
|
11
9
|
getClientRect(): DOMRect;
|
|
12
10
|
protected onMove({ clientX, clientY }: MouseEvent): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function tuiAnchorDelegate(styles?: Partial<CSSStyleDeclaration>): HTMLElement;
|
package/utils/dom/index.d.ts
CHANGED