@taiga-ui/legacy 4.52.0-canary.aaf153c → 4.52.0-canary.b61d3d0
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/input/input.module.d.ts +4 -4
- package/components/input-date-range/input-date-range.component.d.ts +1 -2
- package/components/input-date-range/input-date-range.module.d.ts +6 -6
- package/components/input-date-time/input-date-time.component.d.ts +1 -2
- package/components/input-date-time/input-date-time.module.d.ts +6 -6
- package/components/input-month-range/input-month-range.module.d.ts +3 -3
- package/components/input-number/input-number.component.d.ts +1 -2
- package/components/input-number/input-number.module.d.ts +5 -5
- package/components/input-range/input-range.module.d.ts +4 -4
- package/components/input-tag/input-tag.module.d.ts +8 -8
- package/components/multi-select/multi-select.module.d.ts +9 -9
- package/components/primitive-textfield/primitive-textfield.module.d.ts +5 -5
- package/components/select/select.module.d.ts +8 -8
- package/components/select-option/select-option.module.d.ts +3 -3
- package/components/tag/tag.module.d.ts +4 -4
- package/components/textarea/textarea.module.d.ts +7 -7
- package/fesm2022/taiga-ui-legacy-components-dialog.mjs +0 -1
- package/fesm2022/taiga-ui-legacy-components-dialog.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs +28 -34
- package/fesm2022/taiga-ui-legacy-components-input-date-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs +26 -32
- package/fesm2022/taiga-ui-legacy-components-input-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs +9 -9
- package/fesm2022/taiga-ui-legacy-components-input-month-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs +23 -30
- package/fesm2022/taiga-ui-legacy-components-input-number.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs +11 -11
- package/fesm2022/taiga-ui-legacy-components-input-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs +22 -22
- package/fesm2022/taiga-ui-legacy-components-input-tag.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-input.mjs +6 -5
- package/fesm2022/taiga-ui-legacy-components-input.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs +25 -25
- package/fesm2022/taiga-ui-legacy-components-multi-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs +0 -1
- package/fesm2022/taiga-ui-legacy-components-pdf-viewer.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs +16 -16
- package/fesm2022/taiga-ui-legacy-components-primitive-textfield.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs +6 -6
- package/fesm2022/taiga-ui-legacy-components-select-option.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-select.mjs +23 -23
- package/fesm2022/taiga-ui-legacy-components-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-tag.mjs +10 -10
- package/fesm2022/taiga-ui-legacy-components-tag.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs +23 -23
- package/fesm2022/taiga-ui-legacy-components-textarea.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs +0 -1
- package/fesm2022/taiga-ui-legacy-directives-legacy-dropdown-open-monitor.mjs.map +1 -1
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs +0 -1
- package/fesm2022/taiga-ui-legacy-directives-unfinished-validator.mjs.map +1 -1
- package/package.json +9 -9
- package/utils/icons-path-factory.d.ts +1 -1
|
@@ -2,15 +2,15 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./input.component";
|
|
3
3
|
import * as i2 from "./input.directive";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
|
-
import * as i4 from "@taiga-ui/legacy/
|
|
6
|
-
import * as i5 from "@taiga-ui/
|
|
7
|
-
import * as i6 from "@taiga-ui/
|
|
5
|
+
import * as i4 from "@taiga-ui/legacy/directives";
|
|
6
|
+
import * as i5 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
7
|
+
import * as i6 from "@taiga-ui/core/directives/dropdown";
|
|
8
8
|
/**
|
|
9
9
|
* TODO(v5): delete it
|
|
10
10
|
* @deprecated use new version of {@link https://taiga-ui.dev/components/textfield TuiTextfield} (from @taiga-ui/core) instead
|
|
11
11
|
*/
|
|
12
12
|
export declare class TuiInputModule {
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputModule, [typeof i1.TuiInputComponent, typeof i2.TuiInputDirective], [typeof i3.CommonModule, typeof i4.
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputModule, [typeof i1.TuiInputComponent, typeof i2.TuiInputDirective], [typeof i3.CommonModule, typeof i4.TuiLegacyDropdownOpenMonitorDirective, typeof i5.TuiPrimitiveTextfieldModule, typeof i6.TuiDropdownOptionsDirective, typeof i6.TuiDropdownDriverDirective, typeof i6.TuiDropdownDirective, typeof i6.TuiDropdownComponent, typeof i6.TuiDropdownOpen, typeof i6.TuiDropdownOpenLegacy, typeof i6.TuiDropdownManual, typeof i6.TuiDropdownHover, typeof i6.TuiDropdownContent, typeof i6.TuiDropdownContext, typeof i6.TuiDropdownPosition, typeof i6.TuiDropdownPositionSided, typeof i6.TuiDropdownSelection], [typeof i1.TuiInputComponent, typeof i2.TuiInputDirective, typeof i5.TuiTextfieldComponent, typeof i6.TuiDropdownOptionsDirective, typeof i6.TuiDropdownDriverDirective, typeof i6.TuiDropdownDirective, typeof i6.TuiDropdownComponent, typeof i6.TuiDropdownOpen, typeof i6.TuiDropdownOpenLegacy, typeof i6.TuiDropdownManual, typeof i6.TuiDropdownHover, typeof i6.TuiDropdownContent, typeof i6.TuiDropdownContext, typeof i6.TuiDropdownPosition, typeof i6.TuiDropdownPositionSided, typeof i6.TuiDropdownSelection]>;
|
|
15
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiInputModule>;
|
|
16
16
|
}
|
|
@@ -23,8 +23,7 @@ export declare class TuiInputDateRangeComponent extends AbstractTuiNullableContr
|
|
|
23
23
|
protected readonly dateTexts$: import("rxjs").Observable<Record<TuiDateMode, string>>;
|
|
24
24
|
protected readonly valueTransformer: import("@taiga-ui/cdk/classes").TuiValueTransformer<TuiDayRange | null, unknown> | null;
|
|
25
25
|
protected readonly dateFiller$: import("rxjs").Observable<string>;
|
|
26
|
-
protected dateFormat: import("@taiga-ui/core/tokens").TuiDateFormatSettings
|
|
27
|
-
protected readonly dateFormat$: import("rxjs").Subscription;
|
|
26
|
+
protected dateFormat: import("@angular/core").Signal<import("@taiga-ui/core/tokens").TuiDateFormatSettings>;
|
|
28
27
|
protected selectedActivePeriod: TuiDayRangePeriod | null;
|
|
29
28
|
disabledItemHandler: TuiBooleanHandler<TuiDay>;
|
|
30
29
|
markerHandler: TuiMarkerHandler | null;
|
|
@@ -4,11 +4,11 @@ import * as i2 from "./input-date-range.directive";
|
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "@maskito/angular";
|
|
6
6
|
import * as i5 from "@taiga-ui/polymorpheus";
|
|
7
|
-
import * as i6 from "@taiga-ui/
|
|
8
|
-
import * as i7 from "@taiga-ui/
|
|
9
|
-
import * as i8 from "@taiga-ui/
|
|
10
|
-
import * as i9 from "@taiga-ui/
|
|
11
|
-
import * as i10 from "@taiga-ui/
|
|
7
|
+
import * as i6 from "@taiga-ui/core/directives/appearance";
|
|
8
|
+
import * as i7 from "@taiga-ui/kit/components/calendar-range";
|
|
9
|
+
import * as i8 from "@taiga-ui/core/components/icon";
|
|
10
|
+
import * as i9 from "@taiga-ui/legacy/directives";
|
|
11
|
+
import * as i10 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
12
12
|
import * as i11 from "@taiga-ui/core/directives/dropdown";
|
|
13
13
|
/**
|
|
14
14
|
* TODO(v5): delete it
|
|
@@ -16,6 +16,6 @@ import * as i11 from "@taiga-ui/core/directives/dropdown";
|
|
|
16
16
|
*/
|
|
17
17
|
export declare class TuiInputDateRangeModule {
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputDateRangeModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputDateRangeModule, [typeof i1.TuiInputDateRangeComponent, typeof i2.TuiInputDateRangeDirective], [typeof i3.CommonModule, typeof i4.MaskitoDirective, typeof i5.PolymorpheusOutlet, typeof i5.PolymorpheusTemplate, typeof i6.
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputDateRangeModule, [typeof i1.TuiInputDateRangeComponent, typeof i2.TuiInputDateRangeDirective], [typeof i3.CommonModule, typeof i4.MaskitoDirective, typeof i5.PolymorpheusOutlet, typeof i5.PolymorpheusTemplate, typeof i6.TuiAppearance, typeof i7.TuiCalendarRange, typeof i8.TuiIcon, typeof i9.TuiLegacyDropdownOpenMonitorDirective, typeof i10.TuiPrimitiveTextfieldModule, typeof i9.TuiTextfieldControllerModule, typeof i9.TuiValueAccessorModule, typeof i11.TuiDropdownOptionsDirective, typeof i11.TuiDropdownDriverDirective, typeof i11.TuiDropdownDirective, typeof i11.TuiDropdownComponent, typeof i11.TuiDropdownOpen, typeof i11.TuiDropdownOpenLegacy, typeof i11.TuiDropdownManual, typeof i11.TuiDropdownHover, typeof i11.TuiDropdownContent, typeof i11.TuiDropdownContext, typeof i11.TuiDropdownPosition, typeof i11.TuiDropdownPositionSided, typeof i11.TuiDropdownSelection], [typeof i1.TuiInputDateRangeComponent, typeof i2.TuiInputDateRangeDirective, typeof i10.TuiTextfieldComponent, typeof i11.TuiDropdownOptionsDirective, typeof i11.TuiDropdownDriverDirective, typeof i11.TuiDropdownDirective, typeof i11.TuiDropdownComponent, typeof i11.TuiDropdownOpen, typeof i11.TuiDropdownOpenLegacy, typeof i11.TuiDropdownManual, typeof i11.TuiDropdownHover, typeof i11.TuiDropdownContent, typeof i11.TuiDropdownContext, typeof i11.TuiDropdownPosition, typeof i11.TuiDropdownPositionSided, typeof i11.TuiDropdownSelection]>;
|
|
20
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiInputDateRangeModule>;
|
|
21
21
|
}
|
|
@@ -42,9 +42,8 @@ export declare class TuiInputDateTimeComponent extends AbstractTuiControl<[TuiDa
|
|
|
42
42
|
]> | null;
|
|
43
43
|
protected readonly type: TuiContext<TuiActiveZone>;
|
|
44
44
|
protected readonly filler$: Observable<string>;
|
|
45
|
-
protected dateFormat: import("@taiga-ui/core/tokens").TuiDateFormatSettings
|
|
45
|
+
protected dateFormat: import("@angular/core").Signal<import("@taiga-ui/core/tokens").TuiDateFormatSettings>;
|
|
46
46
|
protected readonly isMobile: boolean;
|
|
47
|
-
protected readonly dateFormat$: import("rxjs").Subscription;
|
|
48
47
|
min: TuiDay | [TuiDay | null, TuiTime | null] | null;
|
|
49
48
|
max: TuiDay | [TuiDay | null, TuiTime | null] | null;
|
|
50
49
|
disabledItemHandler: TuiBooleanHandler<TuiDay>;
|
|
@@ -5,12 +5,12 @@ import * as i3 from "./native-date-time/native-date-time.directive";
|
|
|
5
5
|
import * as i4 from "@angular/common";
|
|
6
6
|
import * as i5 from "@maskito/angular";
|
|
7
7
|
import * as i6 from "@taiga-ui/polymorpheus";
|
|
8
|
-
import * as i7 from "@taiga-ui/core/
|
|
9
|
-
import * as i8 from "@taiga-ui/core/components/
|
|
10
|
-
import * as i9 from "@taiga-ui/
|
|
8
|
+
import * as i7 from "@taiga-ui/core/directives/appearance";
|
|
9
|
+
import * as i8 from "@taiga-ui/core/components/calendar";
|
|
10
|
+
import * as i9 from "@taiga-ui/core/components/icon";
|
|
11
11
|
import * as i10 from "@taiga-ui/legacy/directives";
|
|
12
|
-
import * as i11 from "@taiga-ui/core/components/
|
|
13
|
-
import * as i12 from "@taiga-ui/
|
|
12
|
+
import * as i11 from "@taiga-ui/core/components/link";
|
|
13
|
+
import * as i12 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
14
14
|
import * as i13 from "@taiga-ui/core/directives/dropdown";
|
|
15
15
|
/**
|
|
16
16
|
* TODO(v5): delete it
|
|
@@ -18,6 +18,6 @@ import * as i13 from "@taiga-ui/core/directives/dropdown";
|
|
|
18
18
|
*/
|
|
19
19
|
export declare class TuiInputDateTimeModule {
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputDateTimeModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputDateTimeModule, [typeof i1.TuiInputDateTimeComponent, typeof i2.TuiInputDateTimeDirective, typeof i3.TuiNativeDateTimeDirective], [typeof i4.CommonModule, typeof i5.MaskitoDirective, typeof i6.PolymorpheusOutlet, typeof i6.PolymorpheusTemplate, typeof i7.
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputDateTimeModule, [typeof i1.TuiInputDateTimeComponent, typeof i2.TuiInputDateTimeDirective, typeof i3.TuiNativeDateTimeDirective], [typeof i4.CommonModule, typeof i5.MaskitoDirective, typeof i6.PolymorpheusOutlet, typeof i6.PolymorpheusTemplate, typeof i7.TuiAppearance, typeof i8.TuiCalendar, typeof i9.TuiIcon, typeof i10.TuiLegacyDropdownOpenMonitorDirective, typeof i11.TuiLink, typeof i12.TuiPrimitiveTextfieldModule, typeof i10.TuiTextfieldControllerModule, typeof i10.TuiValueAccessorModule, typeof i13.TuiDropdownOptionsDirective, typeof i13.TuiDropdownDriverDirective, typeof i13.TuiDropdownDirective, typeof i13.TuiDropdownComponent, typeof i13.TuiDropdownOpen, typeof i13.TuiDropdownOpenLegacy, typeof i13.TuiDropdownManual, typeof i13.TuiDropdownHover, typeof i13.TuiDropdownContent, typeof i13.TuiDropdownContext, typeof i13.TuiDropdownPosition, typeof i13.TuiDropdownPositionSided, typeof i13.TuiDropdownSelection], [typeof i1.TuiInputDateTimeComponent, typeof i2.TuiInputDateTimeDirective, typeof i12.TuiTextfieldComponent, typeof i13.TuiDropdownOptionsDirective, typeof i13.TuiDropdownDriverDirective, typeof i13.TuiDropdownDirective, typeof i13.TuiDropdownComponent, typeof i13.TuiDropdownOpen, typeof i13.TuiDropdownOpenLegacy, typeof i13.TuiDropdownManual, typeof i13.TuiDropdownHover, typeof i13.TuiDropdownContent, typeof i13.TuiDropdownContext, typeof i13.TuiDropdownPosition, typeof i13.TuiDropdownPositionSided, typeof i13.TuiDropdownSelection]>;
|
|
22
22
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiInputDateTimeModule>;
|
|
23
23
|
}
|
|
@@ -3,9 +3,9 @@ import * as i1 from "./input-month-range.component";
|
|
|
3
3
|
import * as i2 from "./input-month-range.directive";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "@taiga-ui/kit/components/calendar-month";
|
|
6
|
-
import * as i5 from "@taiga-ui/legacy/
|
|
6
|
+
import * as i5 from "@taiga-ui/legacy/directives";
|
|
7
7
|
import * as i6 from "@taiga-ui/cdk/pipes/mapper";
|
|
8
|
-
import * as i7 from "@taiga-ui/legacy/
|
|
8
|
+
import * as i7 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
9
9
|
import * as i8 from "@taiga-ui/core/directives/dropdown";
|
|
10
10
|
/**
|
|
11
11
|
* TODO(v5): delete it
|
|
@@ -13,6 +13,6 @@ import * as i8 from "@taiga-ui/core/directives/dropdown";
|
|
|
13
13
|
*/
|
|
14
14
|
export declare class TuiInputMonthRangeModule {
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputMonthRangeModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputMonthRangeModule, [typeof i1.TuiInputMonthRangeComponent, typeof i2.TuiInputMonthRangeDirective], [typeof i3.CommonModule, typeof i4.TuiCalendarMonth, typeof i5.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputMonthRangeModule, [typeof i1.TuiInputMonthRangeComponent, typeof i2.TuiInputMonthRangeDirective], [typeof i3.CommonModule, typeof i4.TuiCalendarMonth, typeof i5.TuiLegacyDropdownOpenMonitorDirective, typeof i6.TuiMapperPipe, typeof i7.TuiPrimitiveTextfieldModule, typeof i5.TuiTextfieldControllerModule, typeof i8.TuiDropdownOptionsDirective, typeof i8.TuiDropdownDriverDirective, typeof i8.TuiDropdownDirective, typeof i8.TuiDropdownComponent, typeof i8.TuiDropdownOpen, typeof i8.TuiDropdownOpenLegacy, typeof i8.TuiDropdownManual, typeof i8.TuiDropdownHover, typeof i8.TuiDropdownContent, typeof i8.TuiDropdownContext, typeof i8.TuiDropdownPosition, typeof i8.TuiDropdownPositionSided, typeof i8.TuiDropdownSelection], [typeof i1.TuiInputMonthRangeComponent, typeof i2.TuiInputMonthRangeDirective, typeof i7.TuiTextfieldComponent, typeof i8.TuiDropdownOptionsDirective, typeof i8.TuiDropdownDriverDirective, typeof i8.TuiDropdownDirective, typeof i8.TuiDropdownComponent, typeof i8.TuiDropdownOpen, typeof i8.TuiDropdownOpenLegacy, typeof i8.TuiDropdownManual, typeof i8.TuiDropdownHover, typeof i8.TuiDropdownContent, typeof i8.TuiDropdownContext, typeof i8.TuiDropdownPosition, typeof i8.TuiDropdownPositionSided, typeof i8.TuiDropdownSelection]>;
|
|
17
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiInputMonthRangeModule>;
|
|
18
18
|
}
|
|
@@ -23,9 +23,8 @@ export declare class TuiInputNumberComponent extends AbstractTuiNullableControl<
|
|
|
23
23
|
private unfinishedValue;
|
|
24
24
|
protected readonly polymorpheusValueContent: QueryList<unknown>;
|
|
25
25
|
protected readonly valueTransformer: TuiValueTransformer<number | null, unknown> | null;
|
|
26
|
-
protected numberFormat: import("@taiga-ui/core/tokens").TuiNumberFormatSettings
|
|
26
|
+
protected numberFormat: import("@angular/core").Signal<import("@taiga-ui/core/tokens").TuiNumberFormatSettings>;
|
|
27
27
|
protected readonly controller: import("@taiga-ui/legacy/directives").TuiTextfieldController;
|
|
28
|
-
protected readonly numberFormat$: import("rxjs").Subscription;
|
|
29
28
|
min: number | null;
|
|
30
29
|
max: number | null;
|
|
31
30
|
step: number;
|
|
@@ -3,16 +3,16 @@ import * as i1 from "./input-number.component";
|
|
|
3
3
|
import * as i2 from "./input-number.directive";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "@maskito/angular";
|
|
6
|
-
import * as i5 from "@taiga-ui/
|
|
7
|
-
import * as i6 from "@taiga-ui/
|
|
8
|
-
import * as i7 from "@taiga-ui/
|
|
9
|
-
import * as i8 from "@taiga-ui/
|
|
6
|
+
import * as i5 from "@taiga-ui/polymorpheus";
|
|
7
|
+
import * as i6 from "@taiga-ui/core/components/button";
|
|
8
|
+
import * as i7 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
9
|
+
import * as i8 from "@taiga-ui/legacy/directives";
|
|
10
10
|
/**
|
|
11
11
|
* @deprecated use new version of {@link https://taiga-ui.dev/components/input-number TuiInputNumber} (from @taiga-ui/kit) instead
|
|
12
12
|
* TODO(v5): delete it
|
|
13
13
|
*/
|
|
14
14
|
export declare class TuiInputNumberModule {
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputNumberModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputNumberModule, [typeof i1.TuiInputNumberComponent, typeof i2.TuiInputNumberDirective], [typeof i3.CommonModule, typeof i4.MaskitoDirective, typeof i5.
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputNumberModule, [typeof i1.TuiInputNumberComponent, typeof i2.TuiInputNumberDirective], [typeof i3.CommonModule, typeof i4.MaskitoDirective, typeof i5.PolymorpheusOutlet, typeof i5.PolymorpheusTemplate, typeof i6.TuiButton, typeof i7.TuiPrimitiveTextfieldModule, typeof i8.TuiTextfieldControllerModule, typeof i8.TuiValueAccessorModule], [typeof i1.TuiInputNumberComponent, typeof i2.TuiInputNumberDirective, typeof i7.TuiTextfieldComponent]>;
|
|
17
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiInputNumberModule>;
|
|
18
18
|
}
|
|
@@ -5,15 +5,15 @@ import * as i3 from "@angular/forms";
|
|
|
5
5
|
import * as i4 from "@taiga-ui/polymorpheus";
|
|
6
6
|
import * as i5 from "@taiga-ui/cdk/directives/active-zone";
|
|
7
7
|
import * as i6 from "@taiga-ui/legacy/components/input-number";
|
|
8
|
-
import * as i7 from "@taiga-ui/
|
|
9
|
-
import * as i8 from "@taiga-ui/
|
|
10
|
-
import * as i9 from "@taiga-ui/
|
|
8
|
+
import * as i7 from "@taiga-ui/core/directives/number-format";
|
|
9
|
+
import * as i8 from "@taiga-ui/kit/components/range";
|
|
10
|
+
import * as i9 from "@taiga-ui/legacy/directives";
|
|
11
11
|
/**
|
|
12
12
|
* TODO(v5): delete it
|
|
13
13
|
* @deprecated use new version of {@link https://taiga-ui.dev/components/input-range TuiInputRange} (from @taiga-ui/kit) instead
|
|
14
14
|
*/
|
|
15
15
|
export declare class TuiInputRangeModule {
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputRangeModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputRangeModule, [typeof i1.TuiInputRangeComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.PolymorpheusOutlet, typeof i4.PolymorpheusTemplate, typeof i5.TuiActiveZone, typeof i6.TuiInputNumberModule, typeof i7.
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputRangeModule, [typeof i1.TuiInputRangeComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.PolymorpheusOutlet, typeof i4.PolymorpheusTemplate, typeof i5.TuiActiveZone, typeof i6.TuiInputNumberModule, typeof i7.TuiNumberFormat, typeof i8.TuiRange, typeof i9.TuiTextfieldControllerModule, typeof i9.TuiWrapperModule], [typeof i1.TuiInputRangeComponent]>;
|
|
18
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiInputRangeModule>;
|
|
19
19
|
}
|
|
@@ -3,13 +3,13 @@ import * as i1 from "./input-tag.component";
|
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
5
|
import * as i4 from "@taiga-ui/polymorpheus";
|
|
6
|
-
import * as i5 from "@taiga-ui/
|
|
7
|
-
import * as i6 from "@taiga-ui/
|
|
8
|
-
import * as i7 from "@taiga-ui/
|
|
9
|
-
import * as i8 from "@taiga-ui/legacy/
|
|
10
|
-
import * as i9 from "@taiga-ui/
|
|
11
|
-
import * as i10 from "@taiga-ui/
|
|
12
|
-
import * as i11 from "@taiga-ui/
|
|
6
|
+
import * as i5 from "@taiga-ui/core/directives/appearance";
|
|
7
|
+
import * as i6 from "@taiga-ui/cdk/directives/hovered";
|
|
8
|
+
import * as i7 from "@taiga-ui/core/components/icon";
|
|
9
|
+
import * as i8 from "@taiga-ui/legacy/directives";
|
|
10
|
+
import * as i9 from "@taiga-ui/core/components/scrollbar";
|
|
11
|
+
import * as i10 from "@taiga-ui/legacy/components/tag";
|
|
12
|
+
import * as i11 from "@taiga-ui/legacy/components/tooltip";
|
|
13
13
|
import * as i12 from "@taiga-ui/core/directives/dropdown";
|
|
14
14
|
/**
|
|
15
15
|
* TODO(v5): delete it
|
|
@@ -17,6 +17,6 @@ import * as i12 from "@taiga-ui/core/directives/dropdown";
|
|
|
17
17
|
*/
|
|
18
18
|
export declare class TuiInputTagModule {
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiInputTagModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputTagModule, [typeof i1.TuiInputTagComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.PolymorpheusOutlet, typeof i4.PolymorpheusTemplate, typeof i5.
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiInputTagModule, [typeof i1.TuiInputTagComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.PolymorpheusOutlet, typeof i4.PolymorpheusTemplate, typeof i5.TuiAppearance, typeof i6.TuiHovered, typeof i7.TuiIcon, typeof i8.TuiLegacyDropdownOpenMonitorDirective, typeof i9.TuiScrollbar, typeof i10.TuiTagModule, typeof i11.TuiTooltipModule, typeof i8.TuiWrapperModule, typeof i12.TuiDropdownOptionsDirective, typeof i12.TuiDropdownDriverDirective, typeof i12.TuiDropdownDirective, typeof i12.TuiDropdownComponent, typeof i12.TuiDropdownOpen, typeof i12.TuiDropdownOpenLegacy, typeof i12.TuiDropdownManual, typeof i12.TuiDropdownHover, typeof i12.TuiDropdownContent, typeof i12.TuiDropdownContext, typeof i12.TuiDropdownPosition, typeof i12.TuiDropdownPositionSided, typeof i12.TuiDropdownSelection], [typeof i1.TuiInputTagComponent, typeof i12.TuiDropdownOptionsDirective, typeof i12.TuiDropdownDriverDirective, typeof i12.TuiDropdownDirective, typeof i12.TuiDropdownComponent, typeof i12.TuiDropdownOpen, typeof i12.TuiDropdownOpenLegacy, typeof i12.TuiDropdownManual, typeof i12.TuiDropdownHover, typeof i12.TuiDropdownContent, typeof i12.TuiDropdownContext, typeof i12.TuiDropdownPosition, typeof i12.TuiDropdownPositionSided, typeof i12.TuiDropdownSelection]>;
|
|
21
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiInputTagModule>;
|
|
22
22
|
}
|
|
@@ -9,22 +9,22 @@ import * as i7 from "./multi-select.directive";
|
|
|
9
9
|
import * as i8 from "@angular/common";
|
|
10
10
|
import * as i9 from "@angular/forms";
|
|
11
11
|
import * as i10 from "@taiga-ui/polymorpheus";
|
|
12
|
-
import * as i11 from "@taiga-ui/legacy/
|
|
13
|
-
import * as i12 from "@taiga-ui/legacy/components/
|
|
14
|
-
import * as i13 from "@taiga-ui/legacy/
|
|
15
|
-
import * as i14 from "@taiga-ui/
|
|
12
|
+
import * as i11 from "@taiga-ui/legacy/components/arrow";
|
|
13
|
+
import * as i12 from "@taiga-ui/legacy/components/input-tag";
|
|
14
|
+
import * as i13 from "@taiga-ui/legacy/directives";
|
|
15
|
+
import * as i14 from "@taiga-ui/core/components/link";
|
|
16
16
|
import * as i15 from "@taiga-ui/cdk/pipes/mapper";
|
|
17
|
-
import * as i16 from "@taiga-ui/
|
|
17
|
+
import * as i16 from "@taiga-ui/legacy/components/multi-select-option";
|
|
18
18
|
import * as i17 from "@taiga-ui/kit/pipes/stringify-content";
|
|
19
|
-
import * as i18 from "@taiga-ui/core/
|
|
20
|
-
import * as i19 from "@taiga-ui/
|
|
21
|
-
import * as i20 from "@taiga-ui/
|
|
19
|
+
import * as i18 from "@taiga-ui/core/components/data-list";
|
|
20
|
+
import * as i19 from "@taiga-ui/kit/components/data-list-wrapper";
|
|
21
|
+
import * as i20 from "@taiga-ui/core/directives/dropdown";
|
|
22
22
|
/**
|
|
23
23
|
* TODO(v5): delete it
|
|
24
24
|
* @deprecated use new version of {@link https://taiga-ui.dev/components/input-chip TuiInputChip} (from @taiga-ui/kit) instead
|
|
25
25
|
*/
|
|
26
26
|
export declare class TuiMultiSelectModule {
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiMultiSelectModule, never>;
|
|
28
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiMultiSelectModule, [typeof i1.TuiMultiSelectComponent, typeof i2.TuiMultiSelectGroupComponent, typeof i3.TuiMultiSelectGroupDirective, typeof i4.TuiHideSelectedPipe, typeof i5.TuiNativeMultiSelectComponent, typeof i6.TuiNativeMultiSelectGroupComponent, typeof i7.TuiMultiSelectDirective], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.PolymorpheusOutlet, typeof i10.PolymorpheusTemplate, typeof i11.
|
|
28
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiMultiSelectModule, [typeof i1.TuiMultiSelectComponent, typeof i2.TuiMultiSelectGroupComponent, typeof i3.TuiMultiSelectGroupDirective, typeof i4.TuiHideSelectedPipe, typeof i5.TuiNativeMultiSelectComponent, typeof i6.TuiNativeMultiSelectGroupComponent, typeof i7.TuiMultiSelectDirective], [typeof i8.CommonModule, typeof i9.FormsModule, typeof i10.PolymorpheusOutlet, typeof i10.PolymorpheusTemplate, typeof i11.TuiArrowComponent, typeof i12.TuiInputTagModule, typeof i13.TuiLegacyDropdownOpenMonitorDirective, typeof i14.TuiLink, typeof i15.TuiMapperPipe, typeof i16.TuiMultiSelectOptionModule, typeof i17.TuiStringifyContentPipe, typeof i13.TuiTextfieldControllerModule, typeof i13.TuiWrapperModule, typeof i18.TuiDataListComponent, typeof i18.TuiDataListDirective, typeof i18.TuiOption, typeof i18.TuiOptionNew, typeof i18.TuiOptionWithValue, typeof i18.TuiOptGroup, typeof i19.TuiDataListWrapperComponent, typeof i19.TuiDataListGroupWrapperComponent, typeof i18.TuiDataListDirective, typeof i20.TuiDropdownOptionsDirective, typeof i20.TuiDropdownDriverDirective, typeof i20.TuiDropdownDirective, typeof i20.TuiDropdownComponent, typeof i20.TuiDropdownOpen, typeof i20.TuiDropdownOpenLegacy, typeof i20.TuiDropdownManual, typeof i20.TuiDropdownHover, typeof i20.TuiDropdownContent, typeof i20.TuiDropdownContext, typeof i20.TuiDropdownPosition, typeof i20.TuiDropdownPositionSided, typeof i20.TuiDropdownSelection], [typeof i1.TuiMultiSelectComponent, typeof i2.TuiMultiSelectGroupComponent, typeof i3.TuiMultiSelectGroupDirective, typeof i4.TuiHideSelectedPipe, typeof i7.TuiMultiSelectDirective, typeof i5.TuiNativeMultiSelectComponent, typeof i6.TuiNativeMultiSelectGroupComponent, typeof i20.TuiDropdownOptionsDirective, typeof i20.TuiDropdownDriverDirective, typeof i20.TuiDropdownDirective, typeof i20.TuiDropdownComponent, typeof i20.TuiDropdownOpen, typeof i20.TuiDropdownOpenLegacy, typeof i20.TuiDropdownManual, typeof i20.TuiDropdownHover, typeof i20.TuiDropdownContent, typeof i20.TuiDropdownContext, typeof i20.TuiDropdownPosition, typeof i20.TuiDropdownPositionSided, typeof i20.TuiDropdownSelection, typeof i18.TuiDataListComponent, typeof i18.TuiDataListDirective, typeof i18.TuiOption, typeof i18.TuiOptionNew, typeof i18.TuiOptionWithValue, typeof i18.TuiOptGroup, typeof i19.TuiDataListWrapperComponent, typeof i19.TuiDataListGroupWrapperComponent, typeof i18.TuiDataListDirective]>;
|
|
29
29
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiMultiSelectModule>;
|
|
30
30
|
}
|
|
@@ -6,16 +6,16 @@ import * as i4 from "./value-decoration/value-decoration.component";
|
|
|
6
6
|
import * as i5 from "@angular/common";
|
|
7
7
|
import * as i6 from "@angular/forms";
|
|
8
8
|
import * as i7 from "@taiga-ui/polymorpheus";
|
|
9
|
-
import * as i8 from "@taiga-ui/
|
|
10
|
-
import * as i9 from "@taiga-ui/
|
|
11
|
-
import * as i10 from "@taiga-ui/
|
|
12
|
-
import * as i11 from "@taiga-ui/
|
|
9
|
+
import * as i8 from "@taiga-ui/core/directives/appearance";
|
|
10
|
+
import * as i9 from "@taiga-ui/core/components/icon";
|
|
11
|
+
import * as i10 from "@taiga-ui/legacy/components/tooltip";
|
|
12
|
+
import * as i11 from "@taiga-ui/legacy/directives/wrapper";
|
|
13
13
|
/**
|
|
14
14
|
* @deprecated: use {@link TuiTextfield}
|
|
15
15
|
* https://taiga-ui.dev/components/textfield
|
|
16
16
|
*/
|
|
17
17
|
export declare class TuiPrimitiveTextfieldModule {
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPrimitiveTextfieldModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiPrimitiveTextfieldModule, [typeof i1.TuiPrimitiveTextfieldComponent, typeof i2.TuiPrimitiveTextfieldDirective, typeof i3.TuiTextfieldComponent, typeof i4.TuiValueDecorationComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.PolymorpheusOutlet, typeof i7.PolymorpheusTemplate, typeof i8.
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiPrimitiveTextfieldModule, [typeof i1.TuiPrimitiveTextfieldComponent, typeof i2.TuiPrimitiveTextfieldDirective, typeof i3.TuiTextfieldComponent, typeof i4.TuiValueDecorationComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.PolymorpheusOutlet, typeof i7.PolymorpheusTemplate, typeof i8.TuiAppearance, typeof i9.TuiIcon, typeof i10.TuiTooltipModule, typeof i11.TuiWrapperModule], [typeof i1.TuiPrimitiveTextfieldComponent, typeof i2.TuiPrimitiveTextfieldDirective, typeof i3.TuiTextfieldComponent]>;
|
|
20
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiPrimitiveTextfieldModule>;
|
|
21
21
|
}
|
|
@@ -5,20 +5,20 @@ import * as i3 from "./native-select/native-select.component";
|
|
|
5
5
|
import * as i4 from "./native-select/native-select-group.component";
|
|
6
6
|
import * as i5 from "@angular/common";
|
|
7
7
|
import * as i6 from "@taiga-ui/polymorpheus";
|
|
8
|
-
import * as i7 from "@taiga-ui/legacy/components/
|
|
9
|
-
import * as i8 from "@taiga-ui/legacy/
|
|
10
|
-
import * as i9 from "@taiga-ui/legacy/components/
|
|
11
|
-
import * as i10 from "@taiga-ui/legacy/
|
|
8
|
+
import * as i7 from "@taiga-ui/legacy/components/arrow";
|
|
9
|
+
import * as i8 from "@taiga-ui/legacy/directives";
|
|
10
|
+
import * as i9 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
11
|
+
import * as i10 from "@taiga-ui/legacy/components/select-option";
|
|
12
12
|
import * as i11 from "@taiga-ui/kit/pipes/stringify-content";
|
|
13
|
-
import * as i12 from "@taiga-ui/core/
|
|
14
|
-
import * as i13 from "@taiga-ui/
|
|
15
|
-
import * as i14 from "@taiga-ui/
|
|
13
|
+
import * as i12 from "@taiga-ui/core/components/data-list";
|
|
14
|
+
import * as i13 from "@taiga-ui/kit/components/data-list-wrapper";
|
|
15
|
+
import * as i14 from "@taiga-ui/core/directives/dropdown";
|
|
16
16
|
/**
|
|
17
17
|
* TODO(v5): delete it
|
|
18
18
|
* @deprecated use new version of {@link https://taiga-ui.dev/components/select TuiSelect} (from @taiga-ui/kit) instead
|
|
19
19
|
*/
|
|
20
20
|
export declare class TuiSelectModule {
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSelectModule, never>;
|
|
22
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiSelectModule, [typeof i1.TuiSelectComponent, typeof i2.TuiSelectDirective, typeof i3.TuiNativeSelectComponent, typeof i4.TuiNativeSelectGroupComponent], [typeof i5.CommonModule, typeof i6.PolymorpheusOutlet, typeof i6.PolymorpheusTemplate, typeof i7.
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiSelectModule, [typeof i1.TuiSelectComponent, typeof i2.TuiSelectDirective, typeof i3.TuiNativeSelectComponent, typeof i4.TuiNativeSelectGroupComponent], [typeof i5.CommonModule, typeof i6.PolymorpheusOutlet, typeof i6.PolymorpheusTemplate, typeof i7.TuiArrowComponent, typeof i8.TuiLegacyDropdownOpenMonitorDirective, typeof i9.TuiPrimitiveTextfieldModule, typeof i10.TuiSelectOptionModule, typeof i11.TuiStringifyContentPipe, typeof i8.TuiTextfieldControllerModule, typeof i8.TuiWrapperModule, typeof i12.TuiDataListComponent, typeof i12.TuiDataListDirective, typeof i12.TuiOption, typeof i12.TuiOptionNew, typeof i12.TuiOptionWithValue, typeof i12.TuiOptGroup, typeof i13.TuiDataListWrapperComponent, typeof i13.TuiDataListGroupWrapperComponent, typeof i12.TuiDataListDirective, typeof i14.TuiDropdownOptionsDirective, typeof i14.TuiDropdownDriverDirective, typeof i14.TuiDropdownDirective, typeof i14.TuiDropdownComponent, typeof i14.TuiDropdownOpen, typeof i14.TuiDropdownOpenLegacy, typeof i14.TuiDropdownManual, typeof i14.TuiDropdownHover, typeof i14.TuiDropdownContent, typeof i14.TuiDropdownContext, typeof i14.TuiDropdownPosition, typeof i14.TuiDropdownPositionSided, typeof i14.TuiDropdownSelection], [typeof i1.TuiSelectComponent, typeof i2.TuiSelectDirective, typeof i9.TuiTextfieldComponent, typeof i3.TuiNativeSelectComponent, typeof i4.TuiNativeSelectGroupComponent, typeof i14.TuiDropdownOptionsDirective, typeof i14.TuiDropdownDriverDirective, typeof i14.TuiDropdownDirective, typeof i14.TuiDropdownComponent, typeof i14.TuiDropdownOpen, typeof i14.TuiDropdownOpenLegacy, typeof i14.TuiDropdownManual, typeof i14.TuiDropdownHover, typeof i14.TuiDropdownContent, typeof i14.TuiDropdownContext, typeof i14.TuiDropdownPosition, typeof i14.TuiDropdownPositionSided, typeof i14.TuiDropdownSelection, typeof i12.TuiDataListComponent, typeof i12.TuiDataListDirective, typeof i12.TuiOption, typeof i12.TuiOptionNew, typeof i12.TuiOptionWithValue, typeof i12.TuiOptGroup, typeof i13.TuiDataListWrapperComponent, typeof i13.TuiDataListGroupWrapperComponent, typeof i12.TuiDataListDirective]>;
|
|
23
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiSelectModule>;
|
|
24
24
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
import * as i1 from "./select-option.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
|
-
import * as i3 from "@taiga-ui/core/components/
|
|
5
|
-
import * as i4 from "@taiga-ui/core/components/
|
|
4
|
+
import * as i3 from "@taiga-ui/core/components/icon";
|
|
5
|
+
import * as i4 from "@taiga-ui/core/components/scrollbar";
|
|
6
6
|
export declare class TuiSelectOptionModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSelectOptionModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiSelectOptionModule, [typeof i1.TuiSelectOptionComponent], [typeof i2.CommonModule, typeof i3.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiSelectOptionModule, [typeof i1.TuiSelectOptionComponent], [typeof i2.CommonModule, typeof i3.TuiIcon, typeof i4.TuiScrollIntoView], [typeof i1.TuiSelectOptionComponent]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiSelectOptionModule>;
|
|
10
10
|
}
|
|
@@ -2,15 +2,15 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./tag.component";
|
|
3
3
|
import * as i2 from "@angular/common";
|
|
4
4
|
import * as i3 from "@angular/forms";
|
|
5
|
-
import * as i4 from "@taiga-ui/
|
|
6
|
-
import * as i5 from "@taiga-ui/core/components/
|
|
7
|
-
import * as i6 from "@taiga-ui/
|
|
5
|
+
import * as i4 from "@taiga-ui/polymorpheus";
|
|
6
|
+
import * as i5 from "@taiga-ui/core/components/icon";
|
|
7
|
+
import * as i6 from "@taiga-ui/core/components/loader";
|
|
8
8
|
/**
|
|
9
9
|
* @deprecated: drop in v5.0 use {@link TuiChip}
|
|
10
10
|
* https://taiga-ui.dev/components/chip
|
|
11
11
|
*/
|
|
12
12
|
export declare class TuiTagModule {
|
|
13
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiTagModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiTagModule, [typeof i1.TuiTagComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiTagModule, [typeof i1.TuiTagComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.PolymorpheusOutlet, typeof i4.PolymorpheusTemplate, typeof i5.TuiIcon, typeof i6.TuiLoader], [typeof i1.TuiTagComponent]>;
|
|
15
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiTagModule>;
|
|
16
16
|
}
|
|
@@ -3,19 +3,19 @@ import * as i1 from "./textarea.component";
|
|
|
3
3
|
import * as i2 from "./textarea.directive";
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "@angular/forms";
|
|
6
|
-
import * as i5 from "@taiga-ui/
|
|
7
|
-
import * as i6 from "@taiga-ui/
|
|
8
|
-
import * as i7 from "@taiga-ui/
|
|
6
|
+
import * as i5 from "@taiga-ui/polymorpheus";
|
|
7
|
+
import * as i6 from "@taiga-ui/core/directives/appearance";
|
|
8
|
+
import * as i7 from "@taiga-ui/core/components/icon";
|
|
9
9
|
import * as i8 from "@taiga-ui/legacy/components/primitive-textfield";
|
|
10
|
-
import * as i9 from "@taiga-ui/
|
|
11
|
-
import * as i10 from "@taiga-ui/
|
|
12
|
-
import * as i11 from "@taiga-ui/
|
|
10
|
+
import * as i9 from "@taiga-ui/core/components/scrollbar";
|
|
11
|
+
import * as i10 from "@taiga-ui/legacy/components/tooltip";
|
|
12
|
+
import * as i11 from "@taiga-ui/legacy/directives";
|
|
13
13
|
/**
|
|
14
14
|
* TODO(v5): delete it
|
|
15
15
|
* @deprecated use new version of {@link https://taiga-ui.dev/components/textarea Textarea} (from @taiga-ui/kit) instead
|
|
16
16
|
*/
|
|
17
17
|
export declare class TuiTextareaModule {
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiTextareaModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiTextareaModule, [typeof i1.TuiTextareaComponent, typeof i2.TuiTextareaDirective], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TuiTextareaModule, [typeof i1.TuiTextareaComponent, typeof i2.TuiTextareaDirective], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.PolymorpheusOutlet, typeof i5.PolymorpheusTemplate, typeof i6.TuiAppearance, typeof i7.TuiIcon, typeof i8.TuiPrimitiveTextfieldModule, typeof i9.TuiScrollbar, typeof i10.TuiTooltipModule, typeof i11.TuiWrapperModule], [typeof i1.TuiTextareaComponent, typeof i2.TuiTextareaDirective, typeof i8.TuiTextfieldComponent, typeof i5.PolymorpheusOutlet, typeof i5.PolymorpheusTemplate]>;
|
|
20
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<TuiTextareaModule>;
|
|
21
21
|
}
|
|
@@ -101,7 +101,6 @@ class TuiDialog extends TuiPopoverDirective {
|
|
|
101
101
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: TuiDialog, decorators: [{
|
|
102
102
|
type: Directive,
|
|
103
103
|
args: [{
|
|
104
|
-
standalone: true,
|
|
105
104
|
selector: 'ng-template[tuiDialog]',
|
|
106
105
|
inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],
|
|
107
106
|
outputs: ['openChange: tuiDialogChange'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-legacy-components-dialog.mjs","sources":["../../../projects/legacy/components/dialog/dialog.component.ts","../../../projects/legacy/components/dialog/dialog.template.html","../../../projects/legacy/components/dialog/dialog.tokens.ts","../../../projects/legacy/components/dialog/dialog.service.ts","../../../projects/legacy/components/dialog/dialog.directive.ts","../../../projects/legacy/components/dialog/dialog.factory.ts","../../../projects/legacy/components/dialog/taiga-ui-legacy-components-dialog.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {TUI_TRUE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TuiAutoFocus} from '@taiga-ui/cdk/directives/auto-focus';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TUI_DIALOGS_CLOSE, TuiDialogCloseService} from '@taiga-ui/core/components/dialog';\nimport {TuiBreakpointService} from '@taiga-ui/core/services';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {\n injectContext,\n type PolymorpheusContent,\n PolymorpheusOutlet,\n} from '@taiga-ui/polymorpheus';\nimport {\n exhaustMap,\n filter,\n isObservable,\n map,\n merge,\n type Observable,\n of,\n Subject,\n switchMap,\n take,\n} from 'rxjs';\n\nimport {type TuiDialogOptions, type TuiDialogSize} from './dialog.interfaces';\n\nconst REQUIRED_ERROR = new Error('Required dialog was dismissed');\n\nfunction toObservable<T>(valueOrStream: Observable<T> | T): Observable<T> {\n return isObservable(valueOrStream) ? valueOrStream : of(valueOrStream);\n}\n\n@Component({\n selector: 'tui-dialog-legacy',\n imports: [PolymorpheusOutlet, TuiAutoFocus, TuiButton],\n templateUrl: './dialog.template.html',\n styleUrl: './dialog.style.less',\n // So we don't force OnPush on dialog content\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n providers: [TuiDialogCloseService],\n hostDirectives: [TuiAnimated],\n host: {\n '[attr.data-appearance]': 'context.appearance',\n '[attr.data-size]': 'size',\n '[class._centered]': 'header',\n '[style.--tui-from]': 'from()',\n },\n})\nexport class TuiDialogComponent<O, I> {\n protected readonly close$ = new Subject<void>();\n protected readonly context = injectContext<TuiPopover<TuiDialogOptions<I>, O>>();\n protected readonly closeWord = inject(TUI_CLOSE_WORD);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly from = computed(() =>\n this.size === 'fullscreen' || this.size === 'page' || this.isMobile()\n ? 'translateY(100vh)'\n : 'translateY(2.5rem)',\n );\n\n protected readonly isMobile = toSignal(\n inject(TuiBreakpointService).pipe(map((breakpoint) => breakpoint === 'mobile')),\n );\n\n constructor() {\n merge(\n this.close$.pipe(switchMap(() => toObservable(this.context.closable))),\n inject(TuiDialogCloseService).pipe(\n exhaustMap(() => toObservable(this.context.dismissible).pipe(take(1))),\n ),\n inject(TUI_DIALOGS_CLOSE).pipe(map(TUI_TRUE_HANDLER)),\n )\n .pipe(filter(Boolean), takeUntilDestroyed())\n .subscribe(() => {\n this.close();\n });\n }\n\n protected get size(): TuiDialogSize {\n return this.context.size;\n }\n\n protected get header(): PolymorpheusContent<TuiPopover<TuiDialogOptions<I>, O>> {\n return this.context.header;\n }\n\n private close(): void {\n if (this.context.required) {\n this.context.$implicit.error(REQUIRED_ERROR);\n } else {\n this.context.$implicit.complete();\n }\n }\n}\n","@if (header) {\n <header class=\"t-header\">\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n </header>\n}\n<div class=\"t-content\">\n <h2\n class=\"t-heading\"\n [class.t-heading_closable]=\"context.closable && !header\"\n [id]=\"context.id\"\n [textContent]=\"context.label\"\n ></h2>\n <section>\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <div [innerHTML]=\"text\"></div>\n @if (context.closable || context.dismissible) {\n <div class=\"t-buttons\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data?.button || 'OK' }}\n </button>\n </div>\n }\n </ng-container>\n </section>\n</div>\n<div class=\"t-filler\"></div>\n\n<!-- Close button is insensitive to `context.closable === Observable<false>` by design -->\n@if (context.closable) {\n <button\n automation-id=\"tui-dialog__close\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [appearance]=\"isMobile() ? 'icon' : 'neutral'\"\n [iconStart]=\"icons.close\"\n [size]=\"isMobile() ? 'xs' : 's'\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n >\n {{ closeWord() }}\n </button>\n}\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {type TuiDialogOptions} from './dialog.interfaces';\n\nexport const TUI_DIALOG_DEFAULT_OPTIONS: TuiDialogOptions<void> = {\n appearance: '',\n size: 'm',\n required: false,\n closable: true,\n dismissible: true,\n label: '',\n header: '',\n data: undefined,\n};\n\n/**\n * Default parameters for dialog component\n */\nexport const TUI_DIALOG_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_DIALOG_OPTIONS' : '',\n {\n factory: () => TUI_DIALOG_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiDialogOptionsProvider(\n options: Partial<TuiDialogOptions<unknown>>,\n): Provider {\n return tuiProvideOptions(TUI_DIALOG_OPTIONS, options, TUI_DIALOG_DEFAULT_OPTIONS);\n}\n","import {inject, Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_DIALOGS} from '@taiga-ui/core/components/dialog';\n\nimport {TuiDialogComponent} from './dialog.component';\nimport {type TuiDialogOptions} from './dialog.interfaces';\nimport {TUI_DIALOG_OPTIONS} from './dialog.tokens';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)),\n})\nexport class TuiDialogService extends TuiPopoverService<TuiDialogOptions<any>> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiDialogOptions} from './dialog.interfaces';\nimport {TuiDialogService} from './dialog.service';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[tuiDialog]',\n inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],\n outputs: ['openChange: tuiDialogChange'],\n providers: [tuiAsPopover(TuiDialogService)],\n})\nexport class TuiDialog<T> extends TuiPopoverDirective<TuiDialogOptions<T>> {}\n","import {assertInInjectionContext, inject, INJECTOR, type Injector} from '@angular/core';\nimport {PolymorpheusComponent} from '@taiga-ui/polymorpheus';\nimport {type Observable} from 'rxjs';\n\nimport {type TuiDialogContext, type TuiDialogOptions} from './dialog.interfaces';\nimport {TuiDialogService} from './dialog.service';\n\ntype SingleUnionOrNever<T, U = T> = [T] extends [never]\n ? never\n : T extends U\n ? [U] extends [T]\n ? T\n : never\n : never;\n\ntype ReplaceAny<T> = 0 extends T & 1 ? void : T;\n\ntype ContextKeys<T> = {\n [K in keyof T]: ReplaceAny<T[K]> extends TuiDialogContext<any, any> | null\n ? K\n : never;\n}[keyof T];\n\ntype AssertNotMultipleContexts<T, K extends keyof T> = [K] extends [never]\n ? new (...args: any[]) => T\n : [SingleUnionOrNever<K>] extends [never]\n ? 'Component has multiple context. Cannot determine the type...'\n : new (...args: any[]) => T;\n\ntype ExtractDialogData<T, K extends keyof T = ContextKeys<T>> = [K] extends [never]\n ? void\n : [SingleUnionOrNever<K>] extends [never]\n ? never\n : T[K] extends TuiDialogContext<any, infer D> | null\n ? D\n : void;\n\ntype ExtractDialogResult<T, K extends keyof T = ContextKeys<T>> = [K] extends [never]\n ? void\n : [SingleUnionOrNever<K>] extends [never]\n ? never\n : T[K] extends TuiDialogContext<infer R, any> | null\n ? R\n : void;\n\ntype Options<T> = Omit<TuiDialogOptions<T>, 'data'> & {injector: Injector};\n\nexport function tuiDialog<\n T,\n K extends ContextKeys<T>,\n D extends ExtractDialogData<T, K>,\n R extends ExtractDialogResult<T, K>,\n>(\n component: AssertNotMultipleContexts<T, K>,\n {injector, ...options}: Partial<Options<D>> = {},\n): (data: D) => Observable<R> {\n if (!injector) {\n assertInInjectionContext(tuiDialog);\n injector = inject(INJECTOR);\n }\n\n const dialogService = injector.get(TuiDialogService);\n\n return (data) =>\n dialogService.open(\n new PolymorpheusComponent(component as new () => T, injector),\n {\n ...options,\n data,\n },\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA8BA,MAAM,cAAc,GAAG,IAAI,KAAK,CAAC,+BAA+B,CAAC;AAEjE,SAAS,YAAY,CAAI,aAAgC,EAAA;AACrD,IAAA,OAAO,YAAY,CAAC,aAAa,CAAC,GAAG,aAAa,GAAG,EAAE,CAAC,aAAa,CAAC;AAC1E;MAmBa,kBAAkB,CAAA;AAe3B,IAAA,WAAA,GAAA;AAdmB,QAAA,IAAA,CAAA,MAAM,GAAG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AAA,GAAyB,EAAE,EAAA;IAEhD,IAAI,CAAC,QAAQ,EAAE;QACX,wBAAwB,CAAC,SAAS,CAAC;AACnC,QAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;;IAG/B,MAAM,aAAa,GAAG,QAAQ,CAAC,GAAG,CAAC,gBAAgB,CAAC;AAEpD,IAAA,OAAO,CAAC,IAAI,KACR,aAAa,CAAC,IAAI,CACd,IAAI,qBAAqB,CAAC,SAAwB,EAAE,QAAQ,CAAC,EAC7D;AACI,QAAA,GAAG,OAAO;QACV,IAAI;AACP,KAAA,CACJ;AACT;;ACvEA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-legacy-components-dialog.mjs","sources":["../../../projects/legacy/components/dialog/dialog.component.ts","../../../projects/legacy/components/dialog/dialog.template.html","../../../projects/legacy/components/dialog/dialog.tokens.ts","../../../projects/legacy/components/dialog/dialog.service.ts","../../../projects/legacy/components/dialog/dialog.directive.ts","../../../projects/legacy/components/dialog/dialog.factory.ts","../../../projects/legacy/components/dialog/taiga-ui-legacy-components-dialog.ts"],"sourcesContent":["import {ChangeDetectionStrategy, Component, computed, inject} from '@angular/core';\nimport {takeUntilDestroyed, toSignal} from '@angular/core/rxjs-interop';\nimport {TUI_TRUE_HANDLER} from '@taiga-ui/cdk/constants';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {TuiAutoFocus} from '@taiga-ui/cdk/directives/auto-focus';\nimport {type TuiPopover} from '@taiga-ui/cdk/services';\nimport {TuiButton} from '@taiga-ui/core/components/button';\nimport {TUI_DIALOGS_CLOSE, TuiDialogCloseService} from '@taiga-ui/core/components/dialog';\nimport {TuiBreakpointService} from '@taiga-ui/core/services';\nimport {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {\n injectContext,\n type PolymorpheusContent,\n PolymorpheusOutlet,\n} from '@taiga-ui/polymorpheus';\nimport {\n exhaustMap,\n filter,\n isObservable,\n map,\n merge,\n type Observable,\n of,\n Subject,\n switchMap,\n take,\n} from 'rxjs';\n\nimport {type TuiDialogOptions, type TuiDialogSize} from './dialog.interfaces';\n\nconst REQUIRED_ERROR = new Error('Required dialog was dismissed');\n\nfunction toObservable<T>(valueOrStream: Observable<T> | T): Observable<T> {\n return isObservable(valueOrStream) ? valueOrStream : of(valueOrStream);\n}\n\n@Component({\n selector: 'tui-dialog-legacy',\n imports: [PolymorpheusOutlet, TuiAutoFocus, TuiButton],\n templateUrl: './dialog.template.html',\n styleUrl: './dialog.style.less',\n // So we don't force OnPush on dialog content\n // eslint-disable-next-line @angular-eslint/prefer-on-push-component-change-detection\n changeDetection: ChangeDetectionStrategy.Default,\n providers: [TuiDialogCloseService],\n hostDirectives: [TuiAnimated],\n host: {\n '[attr.data-appearance]': 'context.appearance',\n '[attr.data-size]': 'size',\n '[class._centered]': 'header',\n '[style.--tui-from]': 'from()',\n },\n})\nexport class TuiDialogComponent<O, I> {\n protected readonly close$ = new Subject<void>();\n protected readonly context = injectContext<TuiPopover<TuiDialogOptions<I>, O>>();\n protected readonly closeWord = inject(TUI_CLOSE_WORD);\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly from = computed(() =>\n this.size === 'fullscreen' || this.size === 'page' || this.isMobile()\n ? 'translateY(100vh)'\n : 'translateY(2.5rem)',\n );\n\n protected readonly isMobile = toSignal(\n inject(TuiBreakpointService).pipe(map((breakpoint) => breakpoint === 'mobile')),\n );\n\n constructor() {\n merge(\n this.close$.pipe(switchMap(() => toObservable(this.context.closable))),\n inject(TuiDialogCloseService).pipe(\n exhaustMap(() => toObservable(this.context.dismissible).pipe(take(1))),\n ),\n inject(TUI_DIALOGS_CLOSE).pipe(map(TUI_TRUE_HANDLER)),\n )\n .pipe(filter(Boolean), takeUntilDestroyed())\n .subscribe(() => {\n this.close();\n });\n }\n\n protected get size(): TuiDialogSize {\n return this.context.size;\n }\n\n protected get header(): PolymorpheusContent<TuiPopover<TuiDialogOptions<I>, O>> {\n return this.context.header;\n }\n\n private close(): void {\n if (this.context.required) {\n this.context.$implicit.error(REQUIRED_ERROR);\n } else {\n this.context.$implicit.complete();\n }\n }\n}\n","@if (header) {\n <header class=\"t-header\">\n <ng-container *polymorpheusOutlet=\"header as text; context: context\">\n {{ text }}\n </ng-container>\n </header>\n}\n<div class=\"t-content\">\n <h2\n class=\"t-heading\"\n [class.t-heading_closable]=\"context.closable && !header\"\n [id]=\"context.id\"\n [textContent]=\"context.label\"\n ></h2>\n <section>\n <ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <div [innerHTML]=\"text\"></div>\n @if (context.closable || context.dismissible) {\n <div class=\"t-buttons\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data?.button || 'OK' }}\n </button>\n </div>\n }\n </ng-container>\n </section>\n</div>\n<div class=\"t-filler\"></div>\n\n<!-- Close button is insensitive to `context.closable === Observable<false>` by design -->\n@if (context.closable) {\n <button\n automation-id=\"tui-dialog__close\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [appearance]=\"isMobile() ? 'icon' : 'neutral'\"\n [iconStart]=\"icons.close\"\n [size]=\"isMobile() ? 'xs' : 's'\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n >\n {{ closeWord() }}\n </button>\n}\n","import {InjectionToken, type Provider} from '@angular/core';\nimport {tuiProvideOptions} from '@taiga-ui/cdk/utils/miscellaneous';\n\nimport {type TuiDialogOptions} from './dialog.interfaces';\n\nexport const TUI_DIALOG_DEFAULT_OPTIONS: TuiDialogOptions<void> = {\n appearance: '',\n size: 'm',\n required: false,\n closable: true,\n dismissible: true,\n label: '',\n header: '',\n data: undefined,\n};\n\n/**\n * Default parameters for dialog component\n */\nexport const TUI_DIALOG_OPTIONS = new InjectionToken(\n ngDevMode ? 'TUI_DIALOG_OPTIONS' : '',\n {\n factory: () => TUI_DIALOG_DEFAULT_OPTIONS,\n },\n);\n\nexport function tuiDialogOptionsProvider(\n options: Partial<TuiDialogOptions<unknown>>,\n): Provider {\n return tuiProvideOptions(TUI_DIALOG_OPTIONS, options, TUI_DIALOG_DEFAULT_OPTIONS);\n}\n","import {inject, Injectable} from '@angular/core';\nimport {TuiPopoverService} from '@taiga-ui/cdk/services';\nimport {TUI_DIALOGS} from '@taiga-ui/core/components/dialog';\n\nimport {TuiDialogComponent} from './dialog.component';\nimport {type TuiDialogOptions} from './dialog.interfaces';\nimport {TUI_DIALOG_OPTIONS} from './dialog.tokens';\n\n@Injectable({\n providedIn: 'root',\n useFactory: () =>\n new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)),\n})\nexport class TuiDialogService extends TuiPopoverService<TuiDialogOptions<any>> {}\n","import {Directive} from '@angular/core';\nimport {TuiPopoverDirective} from '@taiga-ui/cdk/directives/popover';\nimport {tuiAsPopover} from '@taiga-ui/cdk/services';\n\nimport {type TuiDialogOptions} from './dialog.interfaces';\nimport {TuiDialogService} from './dialog.service';\n\n@Directive({\n selector: 'ng-template[tuiDialog]',\n inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],\n outputs: ['openChange: tuiDialogChange'],\n providers: [tuiAsPopover(TuiDialogService)],\n})\nexport class TuiDialog<T> extends TuiPopoverDirective<TuiDialogOptions<T>> {}\n","import {assertInInjectionContext, inject, INJECTOR, type Injector} from '@angular/core';\nimport {PolymorpheusComponent} from '@taiga-ui/polymorpheus';\nimport {type Observable} from 'rxjs';\n\nimport {type TuiDialogContext, type TuiDialogOptions} from './dialog.interfaces';\nimport {TuiDialogService} from './dialog.service';\n\ntype SingleUnionOrNever<T, U = T> = [T] extends [never]\n ? never\n : T extends U\n ? [U] extends [T]\n ? T\n : never\n : never;\n\ntype ReplaceAny<T> = 0 extends T & 1 ? void : T;\n\ntype ContextKeys<T> = {\n [K in keyof T]: ReplaceAny<T[K]> extends TuiDialogContext<any, any> | null\n ? K\n : never;\n}[keyof T];\n\ntype AssertNotMultipleContexts<T, K extends keyof T> = [K] extends [never]\n ? new (...args: any[]) => T\n : [SingleUnionOrNever<K>] extends [never]\n ? 'Component has multiple context. Cannot determine the type...'\n : new (...args: any[]) => T;\n\ntype ExtractDialogData<T, K extends keyof T = ContextKeys<T>> = [K] extends [never]\n ? void\n : [SingleUnionOrNever<K>] extends [never]\n ? never\n : T[K] extends TuiDialogContext<any, infer D> | null\n ? D\n : void;\n\ntype ExtractDialogResult<T, K extends keyof T = ContextKeys<T>> = [K] extends [never]\n ? void\n : [SingleUnionOrNever<K>] extends [never]\n ? never\n : T[K] extends TuiDialogContext<infer R, any> | null\n ? R\n : void;\n\ntype Options<T> = Omit<TuiDialogOptions<T>, 'data'> & {injector: Injector};\n\nexport function tuiDialog<\n T,\n K extends ContextKeys<T>,\n D extends ExtractDialogData<T, K>,\n R extends ExtractDialogResult<T, K>,\n>(\n component: AssertNotMultipleContexts<T, K>,\n {injector, ...options}: Partial<Options<D>> = {},\n): (data: D) => Observable<R> {\n if (!injector) {\n assertInInjectionContext(tuiDialog);\n injector = inject(INJECTOR);\n }\n\n const dialogService = injector.get(TuiDialogService);\n\n return (data) =>\n dialogService.open(\n new PolymorpheusComponent(component as new () => T, injector),\n {\n ...options,\n data,\n },\n );\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA8BA,MAAM,cAAc,GAAG,IAAI,KAAK,CAAC,+BAA+B,CAAC;AAEjE,SAAS,YAAY,CAAI,aAAgC,EAAA;AACrD,IAAA,OAAO,YAAY,CAAC,aAAa,CAAC,GAAG,aAAa,GAAG,EAAE,CAAC,aAAa,CAAC;AAC1E;MAmBa,kBAAkB,CAAA;AAe3B,IAAA,WAAA,GAAA;AAdmB,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,OAAO,EAAQ;QAC5B,IAAO,CAAA,OAAA,GAAG,aAAa,EAAsC;A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