@taiga-ui/kit 4.52.0-canary.669a014 → 4.52.0-canary.692273c
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/components/accordion/accordion.component.d.ts +13 -0
- package/components/accordion/accordion.d.ts +4 -4
- package/components/accordion/accordion.directive.d.ts +11 -10
- package/components/accordion/index.d.ts +1 -3
- package/components/action-bar/action-bar.component.d.ts +5 -7
- package/components/action-bar/index.d.ts +0 -2
- package/components/fullscreen/fullscreen.component.d.ts +14 -0
- package/components/fullscreen/index.d.ts +1 -0
- package/components/index.d.ts +3 -0
- package/components/input-phone-international/input-phone-international.component.d.ts +23 -29
- package/components/input-range/input-range.component.d.ts +6 -9
- package/components/input-slider/input-slider.directive.d.ts +1 -3
- package/components/line-clamp/line-clamp-box.component.d.ts +3 -4
- package/components/range/range-change.directive.d.ts +1 -1
- package/components/range/range.component.d.ts +0 -5
- package/components/slider/helpers/key-steps.d.ts +1 -2
- package/components/slider/helpers/slider-key-steps.directive.d.ts +12 -21
- package/components/toast/index.d.ts +5 -0
- package/components/toast/toast.component.d.ts +17 -0
- package/components/toast/toast.d.ts +3 -0
- package/components/toast/toast.directive.d.ts +7 -0
- package/components/toast/toast.options.d.ts +8 -0
- package/components/toast/toast.service.d.ts +16 -0
- package/directives/button-select/button-select.directive.d.ts +1 -2
- package/directives/index.d.ts +0 -1
- package/fesm2022/taiga-ui-kit-components-accordion.mjs +69 -144
- package/fesm2022/taiga-ui-kit-components-accordion.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-action-bar.mjs +22 -38
- package/fesm2022/taiga-ui-kit-components-action-bar.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-avatar.mjs +1 -1
- package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-chip.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
- package/fesm2022/{taiga-ui-kit-directives-copy.mjs → taiga-ui-kit-components-copy.mjs} +1 -1
- package/fesm2022/{taiga-ui-kit-directives-copy.mjs.map → taiga-ui-kit-components-copy.mjs.map} +1 -1
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-drawer.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-drawer.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-files.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-fullscreen.mjs +63 -0
- package/fesm2022/taiga-ui-kit-components-fullscreen.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +102 -125
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-range.mjs +23 -19
- package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs +14 -24
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +6 -8
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-multi-select.mjs +5 -4
- package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +2 -9
- package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-preview.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-range.mjs +4 -13
- package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-select.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-slider.mjs +55 -53
- package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-toast.mjs +166 -0
- package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -0
- package/fesm2022/taiga-ui-kit-components-tree.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components.mjs +3 -0
- package/fesm2022/taiga-ui-kit-components.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-button-select.mjs +2 -9
- package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives.mjs +0 -1
- package/fesm2022/taiga-ui-kit-directives.mjs.map +1 -1
- package/package.json +37 -28
- package/styles/components/chip.less +1 -0
- package/styles/components/toast.less +44 -0
- package/components/accordion/accordion-item-content.directive.d.ts +0 -6
- package/components/accordion/accordion-item-eager-content.directive.d.ts +0 -5
- package/components/accordion/accordion-item.component.d.ts +0 -25
- package/components/action-bar/action-bar.d.ts +0 -3
- package/components/action-bar/action-bar.directive.d.ts +0 -6
- /package/{directives → components}/copy/copy.component.d.ts +0 -0
- /package/{directives → components}/copy/copy.d.ts +0 -0
- /package/{directives → components}/copy/copy.directive.d.ts +0 -0
- /package/{directives → components}/copy/copy.options.d.ts +0 -0
- /package/{directives → components}/copy/index.d.ts +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { TuiExpand } from '@taiga-ui/core/components/expand';
|
|
2
|
+
import { TuiAccordionDirective } from './accordion.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@taiga-ui/core/directives/group";
|
|
5
|
+
export declare class TuiAccordionComponent {
|
|
6
|
+
protected readonly expands: import("@angular/core").Signal<readonly TuiExpand[]>;
|
|
7
|
+
protected readonly directives: import("@angular/core").Signal<readonly TuiAccordionDirective[]>;
|
|
8
|
+
readonly closeOthers: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
readonly size: import("@angular/core").InputSignal<"m" | "s" | "l">;
|
|
10
|
+
toggle(directive: TuiAccordionDirective): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiAccordionComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiAccordionComponent, "tui-accordion", never, { "closeOthers": { "alias": "closeOthers"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, ["expands", "directives"], ["*"], true, [{ directive: typeof i1.TuiGroup; inputs: {}; outputs: {}; }]>;
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { TuiItem } from '@taiga-ui/cdk/directives/item';
|
|
2
|
+
import { TuiExpand } from '@taiga-ui/core/components/expand';
|
|
3
|
+
import { TuiAccordionComponent } from './accordion.component';
|
|
1
4
|
import { TuiAccordionDirective } from './accordion.directive';
|
|
2
|
-
|
|
3
|
-
import { TuiAccordionItemContent } from './accordion-item-content.directive';
|
|
4
|
-
import { TuiAccordionItemEagerContent } from './accordion-item-eager-content.directive';
|
|
5
|
-
export declare const TuiAccordion: readonly [typeof TuiAccordionItem, typeof TuiAccordionDirective, typeof TuiAccordionItemContent, typeof TuiAccordionItemEagerContent];
|
|
5
|
+
export declare const TuiAccordion: readonly [typeof TuiAccordionComponent, typeof TuiAccordionDirective, typeof TuiExpand, typeof TuiItem];
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { TuiAccordionItem } from './accordion-item.component';
|
|
1
|
+
import { type OnChanges } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@taiga-ui/core/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import * as i1 from "@taiga-ui/core/components/button";
|
|
4
|
+
import * as i2 from "@taiga-ui/kit/directives/chevron";
|
|
5
|
+
export declare class TuiAccordionDirective implements OnChanges {
|
|
6
|
+
private readonly accordion;
|
|
7
|
+
readonly open: import("@angular/core").ModelSignal<boolean | "">;
|
|
8
|
+
readonly size: import("@angular/core").InputSignal<"m" | "s" | "l">;
|
|
9
|
+
readonly chevron: import("@angular/core").ModelSignal<boolean | "">;
|
|
10
|
+
ngOnChanges(): void;
|
|
11
|
+
toggle(): void;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiAccordionDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiAccordionDirective, "
|
|
13
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiAccordionDirective, "button[tuiAccordion]", never, { "open": { "alias": "tuiAccordion"; "required": false; "isSignal": true; }; }, { "open": "tuiAccordionChange"; }, never, never, true, [{ directive: typeof i1.TuiButton; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiChevron; inputs: {}; outputs: {}; }]>;
|
|
13
14
|
}
|
|
@@ -1,5 +1,3 @@
|
|
|
1
1
|
export * from './accordion';
|
|
2
|
+
export * from './accordion.component';
|
|
2
3
|
export * from './accordion.directive';
|
|
3
|
-
export * from './accordion-item.component';
|
|
4
|
-
export * from './accordion-item-content.directive';
|
|
5
|
-
export * from './accordion-item-eager-content.directive';
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { type TuiButtonOptions } from '@taiga-ui/core/components/button';
|
|
2
1
|
import { type TuiSizeS } from '@taiga-ui/core/types';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
import * as i1 from "@taiga-ui/cdk/directives/animated";
|
|
5
|
-
export declare class
|
|
6
|
-
expanded: boolean
|
|
7
|
-
size: TuiSizeS
|
|
8
|
-
|
|
9
|
-
static
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiActionBarComponent, "tui-action-bar", never, { "expanded": { "alias": "expanded"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, ["tui-data-list,[tuiMenu]", "*", "a,button,[tuiAction]"], true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }]>;
|
|
4
|
+
export declare class TuiActionBar {
|
|
5
|
+
readonly expanded: import("@angular/core").InputSignal<boolean>;
|
|
6
|
+
readonly size: import("@angular/core").InputSignal<TuiSizeS>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiActionBar, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiActionBar, "tui-action-bar", never, { "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["tui-data-list,[tuiMenu]", "*", "a,button,[tuiAction]"], true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }]>;
|
|
11
9
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TuiFullscreen {
|
|
4
|
+
private readonly root?;
|
|
5
|
+
private readonly doc;
|
|
6
|
+
protected readonly open: import("@angular/core").WritableSignal<boolean>;
|
|
7
|
+
readonly opened: EventEmitter<boolean>;
|
|
8
|
+
options?: FullscreenOptions;
|
|
9
|
+
set fullscreen(open: boolean);
|
|
10
|
+
protected closedByEscape(event: Event): void;
|
|
11
|
+
private fullscreenState;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiFullscreen, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiFullscreen, "[tuiFullscreen]", never, { "options": { "alias": "tuiFullscreenOptions"; "required": false; }; "fullscreen": { "alias": "tuiFullscreen"; "required": false; }; }, { "opened": "tuiFullscreenChange"; }, never, ["*"], true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './fullscreen.component';
|
package/components/index.d.ts
CHANGED
|
@@ -16,12 +16,14 @@ export * from '@taiga-ui/kit/components/combo-box';
|
|
|
16
16
|
export * from '@taiga-ui/kit/components/comment';
|
|
17
17
|
export * from '@taiga-ui/kit/components/compass';
|
|
18
18
|
export * from '@taiga-ui/kit/components/confirm';
|
|
19
|
+
export * from '@taiga-ui/kit/components/copy';
|
|
19
20
|
export * from '@taiga-ui/kit/components/data-list-wrapper';
|
|
20
21
|
export * from '@taiga-ui/kit/components/drawer';
|
|
21
22
|
export * from '@taiga-ui/kit/components/elastic-container';
|
|
22
23
|
export * from '@taiga-ui/kit/components/files';
|
|
23
24
|
export * from '@taiga-ui/kit/components/filter';
|
|
24
25
|
export * from '@taiga-ui/kit/components/floating-container';
|
|
26
|
+
export * from '@taiga-ui/kit/components/fullscreen';
|
|
25
27
|
export * from '@taiga-ui/kit/components/input-chip';
|
|
26
28
|
export * from '@taiga-ui/kit/components/input-color';
|
|
27
29
|
export * from '@taiga-ui/kit/components/input-date';
|
|
@@ -68,4 +70,5 @@ export * from '@taiga-ui/kit/components/switch';
|
|
|
68
70
|
export * from '@taiga-ui/kit/components/tabs';
|
|
69
71
|
export * from '@taiga-ui/kit/components/textarea';
|
|
70
72
|
export * from '@taiga-ui/kit/components/tiles';
|
|
73
|
+
export * from '@taiga-ui/kit/components/toast';
|
|
71
74
|
export * from '@taiga-ui/kit/components/tree';
|
|
@@ -1,51 +1,45 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, type QueryList } from '@angular/core';
|
|
2
2
|
import { type MaskitoOptions } from '@maskito/core';
|
|
3
3
|
import { TuiControl } from '@taiga-ui/cdk/classes';
|
|
4
4
|
import { type TuiCountryIsoCode } from '@taiga-ui/i18n/types';
|
|
5
|
-
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
6
5
|
import { type MetadataJson } from 'libphonenumber-js/core';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@
|
|
9
|
-
import * as i2 from "@taiga-ui/core/
|
|
10
|
-
/** @deprecated use version from experimental package instead */
|
|
7
|
+
import * as i1 from "@maskito/angular";
|
|
8
|
+
import * as i2 from "@taiga-ui/core/components/textfield";
|
|
11
9
|
export declare class TuiInputPhoneInternational extends TuiControl<string> {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
protected readonly
|
|
16
|
-
protected readonly dropdown: import("@angular/core").WritableSignal<import("@taiga-ui/polymorpheus").PolymorpheusComponent<unknown> | import("@taiga-ui/polymorpheus").PolymorpheusPrimitive | import("@taiga-ui/polymorpheus").PolymorpheusHandler<any> | import("@taiga-ui/polymorpheus").PolymorpheusTemplate<"" | Partial<any>> | TemplateRef<Partial<any>>>;
|
|
10
|
+
protected readonly list: QueryList<ElementRef<HTMLButtonElement>>;
|
|
11
|
+
protected readonly el: HTMLInputElement;
|
|
12
|
+
protected readonly ios: boolean;
|
|
13
|
+
protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
|
|
17
14
|
protected readonly options: import("./input-phone-international.options").TuiInputPhoneInternationalOptions;
|
|
18
|
-
protected readonly size: import("@angular/core").WritableSignal<"m" | "l" | "s">;
|
|
19
|
-
protected readonly open: import("@angular/core").WritableSignal<boolean>;
|
|
20
|
-
protected readonly names: import("@angular/core").Signal<Record<TuiCountryIsoCode, string> | undefined>;
|
|
21
|
-
protected readonly metadata: import("@angular/core").Signal<MetadataJson | undefined>;
|
|
22
15
|
protected readonly countries: import("@angular/core").WritableSignal<readonly TuiCountryIsoCode[]>;
|
|
23
|
-
protected readonly
|
|
24
|
-
protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
|
|
16
|
+
protected readonly code: import("@angular/core").WritableSignal<TuiCountryIsoCode>;
|
|
25
17
|
protected readonly label: import("@angular/core").Signal<string | undefined>;
|
|
18
|
+
protected readonly metadata: import("@angular/core").Signal<MetadataJson | undefined>;
|
|
19
|
+
protected readonly names: import("@angular/core").Signal<Record<TuiCountryIsoCode, string> | undefined>;
|
|
20
|
+
protected readonly open: import("@angular/core").WritableSignal<boolean>;
|
|
26
21
|
protected readonly search: import("@angular/core").WritableSignal<string>;
|
|
27
|
-
protected readonly
|
|
22
|
+
protected readonly size: import("@angular/core").WritableSignal<"m" | "l" | "s">;
|
|
23
|
+
protected readonly mask: import("@angular/core").Signal<MaskitoOptions | null>;
|
|
24
|
+
protected readonly masked: import("@angular/core").WritableSignal<string>;
|
|
25
|
+
protected valueChangeEffect: import("@angular/core").EffectRef;
|
|
28
26
|
protected readonly filtered: import("@angular/core").Signal<{
|
|
29
27
|
iso: TuiCountryIsoCode;
|
|
30
28
|
name: string;
|
|
31
29
|
code: string;
|
|
32
30
|
}[]>;
|
|
33
|
-
protected readonly
|
|
34
|
-
protected readonly $: import("
|
|
35
|
-
protected textfieldValue: string;
|
|
31
|
+
protected readonly enabled: import("@angular/core").Signal<boolean>;
|
|
32
|
+
protected readonly $: import("rxjs").Subscription;
|
|
36
33
|
countrySearch: boolean;
|
|
37
34
|
readonly countryIsoCodeChange: import("rxjs").Observable<TuiCountryIsoCode>;
|
|
38
35
|
set countriesValue(value: readonly TuiCountryIsoCode[]);
|
|
39
36
|
set isoCode(code: TuiCountryIsoCode);
|
|
40
|
-
|
|
41
|
-
onPaste(event: Event): void;
|
|
42
|
-
onItemClick(
|
|
43
|
-
writeValue(unmaskedValue: string): void;
|
|
44
|
-
protected set template(template: PolymorpheusContent);
|
|
45
|
-
protected onFocus(): void;
|
|
46
|
-
protected onValueChange(maskedValue: string): void;
|
|
47
|
-
protected onKeyDown({ key }: KeyboardEvent): void;
|
|
37
|
+
writeValue(unmasked: string | null): void;
|
|
38
|
+
protected onPaste(event: Event): void;
|
|
39
|
+
protected onItemClick(code: TuiCountryIsoCode): void;
|
|
48
40
|
private computeMask;
|
|
41
|
+
private unmask;
|
|
42
|
+
private getCountryCode;
|
|
49
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputPhoneInternational, never>;
|
|
50
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiInputPhoneInternational, "
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiInputPhoneInternational, "input[tuiInputPhoneInternational]", never, { "countrySearch": { "alias": "countrySearch"; "required": false; }; "countriesValue": { "alias": "countries"; "required": false; }; "isoCode": { "alias": "countryIsoCode"; "required": false; }; }, { "countryIsoCodeChange": "countryIsoCodeChange"; }, never, never, true, [{ directive: typeof i1.MaskitoDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiWithTextfield; inputs: {}; outputs: {}; }]>;
|
|
51
45
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { type AfterViewInit } from '@angular/core';
|
|
2
1
|
import { TuiControl } from '@taiga-ui/cdk/classes';
|
|
3
2
|
import { type TuiContext } from '@taiga-ui/cdk/types';
|
|
4
3
|
import { type TuiKeySteps } from '@taiga-ui/kit/components/slider';
|
|
@@ -7,7 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
7
6
|
export declare class TuiInputRangeComponent extends TuiControl<readonly [
|
|
8
7
|
number,
|
|
9
8
|
number
|
|
10
|
-
]>
|
|
9
|
+
]> {
|
|
11
10
|
private readonly inputNumberRefs;
|
|
12
11
|
private readonly range?;
|
|
13
12
|
private readonly isMobile;
|
|
@@ -17,15 +16,13 @@ export declare class TuiInputRangeComponent extends TuiControl<readonly [
|
|
|
17
16
|
protected textfieldValueStart: number;
|
|
18
17
|
protected textfieldValueEnd: number;
|
|
19
18
|
protected lastActiveSide: 'end' | 'start';
|
|
19
|
+
protected readonly contentStart: import("@angular/core").Signal<PolymorpheusContent<TuiContext<number>>>;
|
|
20
|
+
protected readonly contentEnd: import("@angular/core").Signal<PolymorpheusContent<TuiContext<number>>>;
|
|
20
21
|
min: number;
|
|
21
22
|
max: number;
|
|
22
23
|
step: number;
|
|
23
24
|
segments: number;
|
|
24
25
|
keySteps: TuiKeySteps | null;
|
|
25
|
-
content: readonly [
|
|
26
|
-
PolymorpheusContent<TuiContext<number>>,
|
|
27
|
-
PolymorpheusContent<TuiContext<number>>
|
|
28
|
-
];
|
|
29
26
|
prefix: readonly [
|
|
30
27
|
string,
|
|
31
28
|
string
|
|
@@ -34,12 +31,12 @@ export declare class TuiInputRangeComponent extends TuiControl<readonly [
|
|
|
34
31
|
string,
|
|
35
32
|
string
|
|
36
33
|
];
|
|
34
|
+
content: import("@angular/core").InputSignal<readonly [PolymorpheusContent<TuiContext<number>>, PolymorpheusContent<TuiContext<number>>]>;
|
|
37
35
|
set quantumSetter(x: number);
|
|
38
36
|
writeValue(value: [
|
|
39
37
|
number,
|
|
40
38
|
number
|
|
41
39
|
]): void;
|
|
42
|
-
ngAfterViewInit(): void;
|
|
43
40
|
protected get hideStartContent(): boolean;
|
|
44
41
|
protected get hideEndContent(): boolean;
|
|
45
42
|
protected takeStep(event: Event | KeyboardEvent, coefficients: readonly [
|
|
@@ -55,7 +52,6 @@ export declare class TuiInputRangeComponent extends TuiControl<readonly [
|
|
|
55
52
|
number
|
|
56
53
|
]): void;
|
|
57
54
|
protected focusToTextfield(): void;
|
|
58
|
-
protected onActiveThumbChange(activeThumb: 'left' | 'right'): void;
|
|
59
55
|
protected setTextfieldValues([start, end]: readonly [
|
|
60
56
|
number,
|
|
61
57
|
number
|
|
@@ -65,8 +61,9 @@ export declare class TuiInputRangeComponent extends TuiControl<readonly [
|
|
|
65
61
|
private get activeTextfield();
|
|
66
62
|
private setValue;
|
|
67
63
|
private valueGuard;
|
|
64
|
+
private isPrimitive;
|
|
68
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputRangeComponent, never>;
|
|
69
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiInputRangeComponent, "tui-input-range", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "segments": { "alias": "segments"; "required": false; }; "keySteps": { "alias": "keySteps"; "required": false; }; "
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiInputRangeComponent, "tui-input-range", never, { "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "step": { "alias": "step"; "required": false; }; "segments": { "alias": "segments"; "required": false; }; "keySteps": { "alias": "keySteps"; "required": false; }; "prefix": { "alias": "prefix"; "required": false; }; "postfix": { "alias": "postfix"; "required": false; }; "content": { "alias": "content"; "required": false; "isSignal": true; }; "quantumSetter": { "alias": "quantum"; "required": false; }; }, {}, never, ["label"], true, never>;
|
|
70
67
|
static ngAcceptInputType_prefix: readonly [
|
|
71
68
|
string,
|
|
72
69
|
string
|
|
@@ -3,17 +3,15 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
import * as i1 from "@taiga-ui/kit/components/input-number";
|
|
4
4
|
export declare class TuiInputSliderDirective {
|
|
5
5
|
private readonly isMobile;
|
|
6
|
-
private readonly
|
|
6
|
+
private readonly el;
|
|
7
7
|
private readonly slider;
|
|
8
8
|
private readonly controlTransformer;
|
|
9
|
-
private readonly keyStepsTransformer;
|
|
10
9
|
protected readonly nothing: undefined;
|
|
11
10
|
protected readonly inputNumber: TuiInputNumberDirective;
|
|
12
11
|
protected readonly value: import("@angular/core").Signal<number>;
|
|
13
12
|
protected readonly textfieldToSliderSync: import("@angular/core").EffectRef;
|
|
14
13
|
protected readonly sliderInitEffect: import("@angular/core").EffectRef;
|
|
15
14
|
protected onStep(coefficient: number): void;
|
|
16
|
-
private onSliderInput;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputSliderDirective, never>;
|
|
18
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiInputSliderDirective, "input[tuiInputSlider]", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiInputNumberDirective; inputs: { "min": "min"; "max": "max"; "prefix": "prefix"; "postfix": "postfix"; "invalid": "invalid"; "readOnly": "readOnly"; }; outputs: {}; }, { directive: typeof i1.TuiWithQuantumValueTransformer; inputs: {}; outputs: {}; }]>;
|
|
19
17
|
}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TuiHintComponent } from '@taiga-ui/core/directives/hint';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
|
|
4
|
-
export declare class TuiLineClampBox extends TuiHintBaseComponent {
|
|
3
|
+
export declare class TuiLineClampBox extends TuiHintComponent {
|
|
5
4
|
protected get width(): number;
|
|
6
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiLineClampBox, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiLineClampBox, "tui-line-clamp-box", never, {}, {}, never, never, true,
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiLineClampBox, "tui-line-clamp-box", never, {}, {}, never, never, true, never>;
|
|
8
7
|
}
|
|
@@ -4,7 +4,7 @@ export declare class TuiRangeChange {
|
|
|
4
4
|
private readonly doc;
|
|
5
5
|
private readonly el;
|
|
6
6
|
private readonly range;
|
|
7
|
-
readonly activeThumbChange: EventEmitter<"
|
|
7
|
+
readonly activeThumbChange: EventEmitter<"end" | "start">;
|
|
8
8
|
constructor();
|
|
9
9
|
private getFractionFromEvents;
|
|
10
10
|
private detectActiveThumb;
|
|
@@ -21,11 +21,6 @@ export declare class TuiRange extends TuiControl<[number, number]> implements On
|
|
|
21
21
|
readonly slidersRefs: QueryList<ElementRef<HTMLInputElement>>;
|
|
22
22
|
readonly start: import("@angular/core").Signal<number>;
|
|
23
23
|
readonly end: import("@angular/core").Signal<number>;
|
|
24
|
-
/**
|
|
25
|
-
* TODO(v5): standardize logic between `TuiSlider` & `TuiInputSlider` & `Range` & `InputRange`
|
|
26
|
-
* For non-linear slider (with `[keySteps]` property) `step` means percentage
|
|
27
|
-
*/
|
|
28
|
-
legacyMode: boolean;
|
|
29
24
|
ngOnChanges(): void;
|
|
30
25
|
processValue(value: number, end: boolean): void;
|
|
31
26
|
takeStep(coefficients: readonly [number, number]): readonly [number, number];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type TuiValueTransformer } from '@taiga-ui/cdk/classes';
|
|
2
|
-
import { type TuiSliderComponent } from '../slider.component';
|
|
3
2
|
/**
|
|
4
3
|
* Used as a limit for eliminating JS issues with floating point math
|
|
5
4
|
*/
|
|
@@ -25,4 +24,4 @@ export declare const TUI_FLOATING_PRECISION = 7;
|
|
|
25
24
|
export type TuiKeySteps = [[0, number], ...Array<[number, number]>, [100, number]];
|
|
26
25
|
export declare function tuiPercentageToKeyStepValue(valuePercentage: number, keySteps: TuiKeySteps): number;
|
|
27
26
|
export declare function tuiKeyStepValueToPercentage(value: number, keySteps: TuiKeySteps): number;
|
|
28
|
-
export declare function tuiCreateKeyStepsTransformer(keySteps: TuiKeySteps
|
|
27
|
+
export declare function tuiCreateKeyStepsTransformer(keySteps: TuiKeySteps): TuiValueTransformer<number, number>;
|
|
@@ -5,34 +5,25 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare class TuiSliderKeyStepsBase {
|
|
6
6
|
private readonly injector;
|
|
7
7
|
private readonly control;
|
|
8
|
-
protected min
|
|
9
|
-
protected max
|
|
10
|
-
step: number
|
|
8
|
+
protected readonly min: import("@angular/core").WritableSignal<number | undefined>;
|
|
9
|
+
protected readonly max: import("@angular/core").WritableSignal<number | undefined>;
|
|
10
|
+
step: import("@angular/core").InputSignal<number>;
|
|
11
11
|
transformer: import("@angular/core").WritableSignal<TuiValueTransformer<number, number> | null>;
|
|
12
|
-
|
|
12
|
+
controlValue: import("@angular/core").Signal<number | undefined>;
|
|
13
|
+
readonly totalSteps: import("@angular/core").Signal<number>;
|
|
13
14
|
get slider(): TuiSliderComponent;
|
|
14
15
|
set keySteps(steps: TuiKeySteps | null);
|
|
15
|
-
/**
|
|
16
|
-
* TODO(v5): standardize logic between `TuiSlider` & `TuiInputSlider` & `Range` & `InputRange`
|
|
17
|
-
* For non-linear slider (with `[keySteps]` property) `step` means percentage
|
|
18
|
-
* Add these host-bindings to `TuiSliderKeyStepsBase`:
|
|
19
|
-
* ```
|
|
20
|
-
* host: {
|
|
21
|
-
* '[attr.min]': '0',
|
|
22
|
-
* '[attr.step]': '1',
|
|
23
|
-
* '[attr.max]': 'totalSteps',
|
|
24
|
-
* },
|
|
25
|
-
* ```
|
|
26
|
-
*/
|
|
27
|
-
get totalSteps(): number;
|
|
28
16
|
takeStep(coefficient: number): number;
|
|
17
|
+
toSliderValue(fraction: number): number;
|
|
18
|
+
setControlValue(controlValue: number): void;
|
|
19
|
+
getControlValue(): number;
|
|
29
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSliderKeyStepsBase, never>;
|
|
30
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSliderKeyStepsBase, "input[tuiSlider][keySteps]", never, { "step": { "alias": "step"; "required": false; }; "keySteps": { "alias": "keySteps"; "required": false; }; }, {}, never, never, true, never>;
|
|
31
|
-
static ngAcceptInputType_step: number | "any";
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSliderKeyStepsBase, "input[tuiSlider][keySteps]", never, { "step": { "alias": "step"; "required": false; "isSignal": true; }; "keySteps": { "alias": "keySteps"; "required": false; }; }, {}, never, never, true, never>;
|
|
32
22
|
}
|
|
33
23
|
export declare class TuiSliderKeySteps extends TuiControl<number> {
|
|
34
|
-
|
|
35
|
-
set keySteps(steps: TuiKeySteps);
|
|
24
|
+
protected readonly base: TuiSliderKeyStepsBase;
|
|
25
|
+
set keySteps(steps: TuiKeySteps | null);
|
|
26
|
+
protected setValue(sliderValue: number): void;
|
|
36
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSliderKeySteps, never>;
|
|
37
28
|
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSliderKeySteps, "input[tuiSlider][keySteps][ngModel],input[tuiSlider][keySteps][formControl],input[tuiSlider][keySteps][formControlName]", never, { "keySteps": { "alias": "keySteps"; "required": false; }; }, {}, never, never, true, never>;
|
|
38
29
|
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { type AfterViewInit } from '@angular/core';
|
|
2
|
+
import { type TuiPopover } from '@taiga-ui/cdk/services';
|
|
3
|
+
import { type TuiToastOptions } from './toast.options';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@taiga-ui/cdk/directives/animated";
|
|
6
|
+
export declare class TuiToastComponent<O, I> implements AfterViewInit {
|
|
7
|
+
private readonly close;
|
|
8
|
+
private readonly el;
|
|
9
|
+
protected readonly isMobile: boolean;
|
|
10
|
+
protected readonly context: TuiPopover<TuiToastOptions<I>, O>;
|
|
11
|
+
protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
|
|
12
|
+
protected readonly $: import("rxjs").Subscription;
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
protected onSwipe(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiToastComponent<any, any>, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiToastComponent<any, any>, "tui-toast", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }]>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@taiga-ui/core/directives/icons";
|
|
3
|
+
export declare class TuiToastDirective {
|
|
4
|
+
protected readonly nothing: undefined;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiToastDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiToastDirective, "[tuiToast]:not(ng-template)", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiWithIcons; inputs: {}; outputs: {}; }]>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface TuiToastOptions<I> {
|
|
2
|
+
autoClose: number;
|
|
3
|
+
closable: boolean;
|
|
4
|
+
appearance: string;
|
|
5
|
+
data?: I;
|
|
6
|
+
}
|
|
7
|
+
export declare const TUI_TOAST_DEFAULT_OPTIONS: TuiToastOptions<void>;
|
|
8
|
+
export declare const TUI_TOAST_OPTIONS: import("@angular/core").InjectionToken<TuiToastOptions<void>>, tuiToastOptionsProvider: (item: Partial<TuiToastOptions<void>> | (() => Partial<TuiToastOptions<void>>)) => import("@angular/core").FactoryProvider;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
|
|
2
|
+
import { TuiPopoverService } from '@taiga-ui/cdk/services';
|
|
3
|
+
import { type TuiToastOptions } from './toast.options';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const TUI_TOASTS_CONCURRENCY: import("@angular/core").InjectionToken<number>;
|
|
6
|
+
export declare class TuiToastService extends TuiPopoverService<TuiToastOptions<any>> {
|
|
7
|
+
private readonly concurrency;
|
|
8
|
+
private readonly alerts;
|
|
9
|
+
protected readonly sub: import("rxjs").Subscription;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiToastService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TuiToastService>;
|
|
12
|
+
}
|
|
13
|
+
export declare class TuiToastTemplate<T> extends TuiPopoverDirective<TuiToastOptions<T>> {
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiToastTemplate<any>, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiToastTemplate<any>, "ng-template[tuiToast]", never, { "options": { "alias": "tuiToastOptions"; "required": false; }; "open": { "alias": "tuiToast"; "required": false; }; }, { "openChange": "tuiToastChange"; }, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -3,11 +3,10 @@ import { type TuiDataListHost } from '@taiga-ui/core/components/data-list';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@taiga-ui/core/directives/dropdown";
|
|
5
5
|
import * as i2 from "@taiga-ui/cdk/directives/native-validator";
|
|
6
|
-
import * as i3 from "@taiga-ui/core/components/textfield";
|
|
7
6
|
export declare class TuiButtonSelect<T> extends TuiControl<T> implements TuiDataListHost<T> {
|
|
8
7
|
private readonly open;
|
|
9
8
|
readonly size = "s";
|
|
10
9
|
handleOption(option: T): void;
|
|
11
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiButtonSelect<any>, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiButtonSelect<any>, "button[tuiButtonSelect]", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiDropdownDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiNativeValidator; inputs: {}; outputs: {}; }, { directive: typeof i1.TuiWithDropdownOpen; inputs: {}; outputs: {}; }
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiButtonSelect<any>, "button[tuiButtonSelect]", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiDropdownDirective; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiNativeValidator; inputs: {}; outputs: {}; }, { directive: typeof i1.TuiWithDropdownOpen; inputs: {}; outputs: {}; }]>;
|
|
13
12
|
}
|
package/directives/index.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ export * from '@taiga-ui/kit/directives/button-group';
|
|
|
3
3
|
export * from '@taiga-ui/kit/directives/button-select';
|
|
4
4
|
export * from '@taiga-ui/kit/directives/chevron';
|
|
5
5
|
export * from '@taiga-ui/kit/directives/connected';
|
|
6
|
-
export * from '@taiga-ui/kit/directives/copy';
|
|
7
6
|
export * from '@taiga-ui/kit/directives/data-list-dropdown-manager';
|
|
8
7
|
export * from '@taiga-ui/kit/directives/fade';
|
|
9
8
|
export * from '@taiga-ui/kit/directives/fluid-typography';
|