@taiga-ui/kit 4.52.0-canary.c107f6a → 4.52.0-canary.c91900a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/components/badge/badge.options.d.ts +1 -3
- package/components/badge-notification/badge-notification.options.d.ts +1 -3
- package/components/block/block.options.d.ts +1 -3
- package/components/breadcrumbs/breadcrumbs.options.d.ts +1 -3
- package/components/chip/chip.options.d.ts +1 -3
- package/components/confirm/confirm.component.d.ts +3 -2
- package/components/copy/copy.component.d.ts +1 -1
- package/components/copy/copy.directive.d.ts +1 -2
- package/components/data-list-wrapper/data-list-group-wrapper.component.d.ts +2 -2
- package/components/data-list-wrapper/data-list-wrapper.component.d.ts +14 -22
- package/components/data-list-wrapper/{data-list-wrapper.module.d.ts → data-list-wrapper.d.ts} +1 -2
- package/components/data-list-wrapper/index.d.ts +1 -1
- package/components/files/file/file.options.d.ts +1 -1
- package/components/files/input-files/input-files.options.d.ts +1 -3
- package/components/input-chip/input-chip.component.d.ts +8 -7
- package/components/input-chip/input-chip.directive.d.ts +7 -12
- package/components/input-date/input-date.directive.d.ts +4 -6
- package/components/input-date-multi/input-date-multi.directive.d.ts +9 -13
- package/components/input-phone-international/input-phone-international.component.d.ts +4 -4
- package/components/input-phone-international/input-phone-international.options.d.ts +1 -3
- package/components/input-range/input-range.component.d.ts +1 -1
- package/components/input-slider/input-slider.directive.d.ts +1 -1
- package/components/input-time/input-time.directive.d.ts +1 -1
- package/components/input-year/input-year.directive.d.ts +1 -1
- package/components/line-clamp/line-clamp.options.d.ts +1 -3
- package/components/multi-select/multi-select-group/multi-select-group.component.d.ts +4 -6
- package/components/notification-middle/notification-middle.component.d.ts +2 -2
- package/components/notification-middle/notification-middle.directive.d.ts +4 -3
- package/components/notification-middle/notification-middle.service.d.ts +7 -3
- package/components/preview/dialog/preview-dialog.component.d.ts +2 -2
- package/components/preview/dialog/preview-dialog.directive.d.ts +3 -3
- package/components/preview/dialog/preview-dialog.service.d.ts +5 -2
- package/components/preview/preview.d.ts +2 -1
- package/components/progress/progress.options.d.ts +1 -3
- package/components/push/push-alert.component.d.ts +2 -2
- package/components/push/push.options.d.ts +4 -3
- package/components/push/push.service.d.ts +2 -2
- package/components/radio-list/radio-list.component.d.ts +5 -3
- package/components/rating/rating.component.d.ts +1 -1
- package/components/rating/rating.options.d.ts +1 -3
- package/components/segmented/segmented.component.d.ts +4 -6
- package/components/segmented/segmented.directive.d.ts +6 -7
- package/components/slider/slider.options.d.ts +1 -6
- package/components/stepper/step.component.d.ts +6 -8
- package/components/stepper/stepper.component.d.ts +6 -11
- package/components/tabs/tabs.options.d.ts +1 -6
- package/components/toast/toast.component.d.ts +4 -4
- package/components/toast/toast.options.d.ts +4 -3
- package/components/toast/toast.service.d.ts +2 -2
- package/components/tree/components/tree-item-content/tree-item-content.component.d.ts +7 -0
- package/components/tree/misc/tree.constants.d.ts +0 -3
- package/components/tree/misc/tree.tokens.d.ts +1 -6
- package/directives/button-select/button-select.directive.d.ts +2 -1
- package/directives/data-list-dropdown-manager/data-list-dropdown-manager.directive.d.ts +5 -5
- package/directives/fade/fade.directive.d.ts +1 -2
- package/directives/fluid-typography/fluid-typography.options.d.ts +1 -3
- package/fesm2022/taiga-ui-kit-components-avatar.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-avatar.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badge-notification.mjs +3 -8
- package/fesm2022/taiga-ui-kit-components-badge-notification.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-badge.mjs +4 -8
- package/fesm2022/taiga-ui-kit-components-badge.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-block.mjs +4 -8
- package/fesm2022/taiga-ui-kit-components-block.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs +5 -10
- package/fesm2022/taiga-ui-kit-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs +3 -11
- package/fesm2022/taiga-ui-kit-components-calendar-month.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-calendar-range.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-calendar-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs +1 -2
- package/fesm2022/taiga-ui-kit-components-checkbox.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-chip.mjs +6 -10
- package/fesm2022/taiga-ui-kit-components-chip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-combo-box.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-combo-box.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-compass.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-compass.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-confirm.mjs +4 -6
- package/fesm2022/taiga-ui-kit-components-confirm.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-copy.mjs +6 -9
- package/fesm2022/taiga-ui-kit-components-copy.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs +17 -80
- package/fesm2022/taiga-ui-kit-components-data-list-wrapper.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-files.mjs +9 -14
- package/fesm2022/taiga-ui-kit-components-files.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-floating-container.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-floating-container.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-chip.mjs +49 -65
- package/fesm2022/taiga-ui-kit-components-input-chip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs +25 -39
- package/fesm2022/taiga-ui-kit-components-input-date-multi.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-range.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-input-date-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date-time.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-input-date-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-date.mjs +12 -15
- package/fesm2022/taiga-ui-kit-components-input-date.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-month-range.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-input-month-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-month.mjs +3 -3
- package/fesm2022/taiga-ui-kit-components-input-month.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-number.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-input-number.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs +12 -19
- package/fesm2022/taiga-ui-kit-components-input-phone-international.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-pin.mjs +3 -4
- package/fesm2022/taiga-ui-kit-components-input-pin.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-range.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-input-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs +3 -4
- package/fesm2022/taiga-ui-kit-components-input-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-time.mjs +5 -6
- package/fesm2022/taiga-ui-kit-components-input-time.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-input-year.mjs +5 -5
- package/fesm2022/taiga-ui-kit-components-input-year.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs +6 -10
- package/fesm2022/taiga-ui-kit-components-line-clamp.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-multi-select.mjs +16 -26
- package/fesm2022/taiga-ui-kit-components-multi-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-notification-middle.mjs +30 -18
- package/fesm2022/taiga-ui-kit-components-notification-middle.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pager.mjs +4 -6
- package/fesm2022/taiga-ui-kit-components-pager.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pagination.mjs +2 -3
- package/fesm2022/taiga-ui-kit-components-pagination.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-pin.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-pin.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-preview.mjs +26 -16
- package/fesm2022/taiga-ui-kit-components-preview.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-progress.mjs +4 -8
- package/fesm2022/taiga-ui-kit-components-progress.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-push.mjs +8 -8
- package/fesm2022/taiga-ui-kit-components-push.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs +4 -4
- package/fesm2022/taiga-ui-kit-components-radio-list.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-radio.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-radio.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-range.mjs +2 -2
- package/fesm2022/taiga-ui-kit-components-range.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-rating.mjs +4 -9
- package/fesm2022/taiga-ui-kit-components-rating.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-segmented.mjs +27 -53
- package/fesm2022/taiga-ui-kit-components-segmented.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-select.mjs +6 -5
- package/fesm2022/taiga-ui-kit-components-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-slider.mjs +6 -13
- package/fesm2022/taiga-ui-kit-components-slider.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-stepper.mjs +41 -75
- package/fesm2022/taiga-ui-kit-components-stepper.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-switch.mjs +1 -2
- package/fesm2022/taiga-ui-kit-components-switch.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tabs.mjs +7 -12
- package/fesm2022/taiga-ui-kit-components-tabs.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-textarea.mjs +3 -4
- package/fesm2022/taiga-ui-kit-components-textarea.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-toast.mjs +15 -15
- package/fesm2022/taiga-ui-kit-components-toast.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-components-tree.mjs +34 -33
- package/fesm2022/taiga-ui-kit-components-tree.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-button-select.mjs +14 -5
- package/fesm2022/taiga-ui-kit-directives-button-select.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs +2 -1
- package/fesm2022/taiga-ui-kit-directives-chevron.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs +22 -49
- package/fesm2022/taiga-ui-kit-directives-data-list-dropdown-manager.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-fade.mjs +7 -6
- package/fesm2022/taiga-ui-kit-directives-fade.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs +3 -8
- package/fesm2022/taiga-ui-kit-directives-fluid-typography.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-password.mjs +5 -3
- package/fesm2022/taiga-ui-kit-directives-password.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs +2 -2
- package/fesm2022/taiga-ui-kit-directives-tooltip.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs +1 -1
- package/fesm2022/taiga-ui-kit-directives-unfinished-validator.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs +1 -1
- package/fesm2022/taiga-ui-kit-directives-unmask-handler.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs +1 -1
- package/fesm2022/taiga-ui-kit-pipes-hide-selected.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-pipes-stringify-content.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-tokens.mjs +2 -17
- package/fesm2022/taiga-ui-kit-tokens.mjs.map +1 -1
- package/fesm2022/taiga-ui-kit-utils.mjs +1 -1
- package/fesm2022/taiga-ui-kit-utils.mjs.map +1 -1
- package/package.json +6 -10
- package/pipes/stringify-content/stringify-content.pipe.d.ts +2 -3
- package/tokens/items-handlers.d.ts +1 -7
- package/tokens/preview-icons.d.ts +1 -3
- package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs +0 -63
- package/fesm2022/taiga-ui-kit-components-preview-dialog.mjs.map +0 -1
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
2
1
|
import { type TuiSizeXXL, type TuiSizeXXS } from '@taiga-ui/core/types';
|
|
3
2
|
export interface TuiProgressOptions {
|
|
4
3
|
readonly color: string | null;
|
|
5
4
|
readonly size: TuiSizeXXL | TuiSizeXXS;
|
|
6
5
|
}
|
|
7
6
|
export declare const TUI_PROGRESS_DEFAULT_OPTIONS: TuiProgressOptions;
|
|
8
|
-
export declare const TUI_PROGRESS_OPTIONS: InjectionToken<TuiProgressOptions
|
|
9
|
-
export declare function tuiProgressOptionsProvider(options: Partial<TuiProgressOptions>): Provider;
|
|
7
|
+
export declare const TUI_PROGRESS_OPTIONS: import("@angular/core").InjectionToken<TuiProgressOptions>, tuiProgressOptionsProvider: (item: Partial<TuiProgressOptions> | (() => Partial<TuiProgressOptions>)) => import("@angular/core").FactoryProvider;
|
|
@@ -2,10 +2,10 @@ import { type TuiPortalContext } from '@taiga-ui/cdk/portals';
|
|
|
2
2
|
import { type TuiPushOptions } from './push.options';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@taiga-ui/cdk/directives/animated";
|
|
5
|
-
import * as i2 from "@taiga-ui/core/directives/
|
|
5
|
+
import * as i2 from "@taiga-ui/core/directives/alert";
|
|
6
6
|
export declare class TuiPushAlert {
|
|
7
7
|
protected readonly context: TuiPortalContext<TuiPushOptions, string>;
|
|
8
8
|
protected get isDirective(): boolean;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiPushAlert, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiPushAlert, "tui-push-alert", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i2.
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiPushAlert, "tui-push-alert", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiAlertDirective; inputs: {}; outputs: {}; }]>;
|
|
11
11
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { type TuiPositionOptions } from '@taiga-ui/core/directives/alert';
|
|
2
3
|
export interface TuiPushOptions extends TuiPositionOptions {
|
|
3
4
|
readonly buttons: readonly string[];
|
|
4
5
|
readonly heading: string;
|
|
@@ -8,5 +9,5 @@ export interface TuiPushOptions extends TuiPositionOptions {
|
|
|
8
9
|
readonly timestamp: number | string;
|
|
9
10
|
readonly type: string;
|
|
10
11
|
}
|
|
11
|
-
export declare const
|
|
12
|
-
export declare const
|
|
12
|
+
export declare const TUI_PUSH_OPTIONS: InjectionToken<TuiPushOptions>, tuiPushOptionsProvider: (item: Partial<TuiPushOptions> | (() => Partial<TuiPushOptions>)) => import("@angular/core").FactoryProvider;
|
|
13
|
+
export declare const TUI_PUSH_CONCURRENCY: InjectionToken<number>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TuiAlertService } from '@taiga-ui/core/directives/alert';
|
|
2
2
|
import { type TuiPushOptions } from './push.options';
|
|
3
3
|
import { TuiPushAlert } from './push-alert.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class TuiPushService extends
|
|
5
|
+
export declare class TuiPushService extends TuiAlertService<TuiPushOptions, string> {
|
|
6
6
|
protected readonly options: TuiPushOptions;
|
|
7
7
|
protected readonly component: typeof TuiPushAlert;
|
|
8
8
|
constructor();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type ValidatorFn } from '@angular/forms';
|
|
2
2
|
import { TuiControl } from '@taiga-ui/cdk/classes';
|
|
3
|
-
import { type TuiBooleanHandler, type TuiIdentityMatcher } from '@taiga-ui/cdk/types';
|
|
4
|
-
import { type TuiSizeS
|
|
3
|
+
import { type TuiBooleanHandler, type TuiContext, type TuiIdentityMatcher } from '@taiga-ui/cdk/types';
|
|
4
|
+
import { type TuiSizeS } from '@taiga-ui/core/types';
|
|
5
5
|
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class TuiRadioList<T> extends TuiControl<T> {
|
|
@@ -12,7 +12,9 @@ export declare class TuiRadioList<T> extends TuiControl<T> {
|
|
|
12
12
|
size: TuiSizeS;
|
|
13
13
|
identityMatcher: TuiIdentityMatcher<T>;
|
|
14
14
|
disabledItemHandler: TuiBooleanHandler<T>;
|
|
15
|
-
itemContent: PolymorpheusContent<
|
|
15
|
+
itemContent: PolymorpheusContent<TuiContext<T> & {
|
|
16
|
+
active: boolean;
|
|
17
|
+
}>;
|
|
16
18
|
protected get name(): string;
|
|
17
19
|
protected onFocusOut(): void;
|
|
18
20
|
protected itemIsActive(item: T): boolean;
|
|
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
export declare class TuiRating extends TuiControl<number> {
|
|
4
4
|
private readonly options;
|
|
5
5
|
protected readonly active: import("@angular/core").WritableSignal<number>;
|
|
6
|
-
protected readonly array: import("@angular/core").Signal<
|
|
6
|
+
protected readonly array: import("@angular/core").Signal<unknown[]>;
|
|
7
7
|
readonly icon: import("@angular/core").InputSignal<import("@taiga-ui/polymorpheus").PolymorpheusContent<import("./rating.options").TuiRatingContext>>;
|
|
8
8
|
readonly max: import("@angular/core").InputSignal<number>;
|
|
9
9
|
protected onKeyDown(event: KeyboardEvent): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
2
1
|
import { type TuiContext } from '@taiga-ui/cdk/types';
|
|
3
2
|
import { type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
4
3
|
export interface TuiRatingContext extends TuiContext<number> {
|
|
@@ -10,5 +9,4 @@ export interface TuiRatingOptions {
|
|
|
10
9
|
readonly max: number;
|
|
11
10
|
}
|
|
12
11
|
export declare const TUI_RATING_DEFAULT_OPTIONS: TuiRatingOptions;
|
|
13
|
-
export declare const TUI_RATING_OPTIONS: InjectionToken<TuiRatingOptions
|
|
14
|
-
export declare function tuiRatingOptionsProvider(options: Partial<TuiRatingOptions>): Provider;
|
|
12
|
+
export declare const TUI_RATING_OPTIONS: import("@angular/core").InjectionToken<TuiRatingOptions>, tuiRatingOptionsProvider: (item: Partial<TuiRatingOptions> | (() => Partial<TuiRatingOptions>)) => import("@angular/core").FactoryProvider;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { type OnChanges } from '@angular/core';
|
|
2
2
|
import { type TuiSizeL, type TuiSizeS } from '@taiga-ui/core/types';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "./segmented.directive";
|
|
@@ -12,13 +12,11 @@ export declare const TUI_SEGMENTED_OPTIONS: import("@angular/core").InjectionTok
|
|
|
12
12
|
export declare class TuiSegmented implements OnChanges {
|
|
13
13
|
private readonly el;
|
|
14
14
|
protected readonly sub: import("rxjs").Subscription;
|
|
15
|
-
size:
|
|
16
|
-
activeItemIndex: number
|
|
17
|
-
readonly activeItemIndexChange: EventEmitter<number>;
|
|
15
|
+
readonly size: import("@angular/core").InputSignal<"s" | "m" | "l">;
|
|
16
|
+
readonly activeItemIndex: import("@angular/core").ModelSignal<number>;
|
|
18
17
|
ngOnChanges(): void;
|
|
19
18
|
update(activeItemIndex: number): void;
|
|
20
|
-
private get activeElement();
|
|
21
19
|
private refresh;
|
|
22
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSegmented, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiSegmented, "tui-segmented", never, { "size": { "alias": "size"; "required": false; }; "activeItemIndex": { "alias": "activeItemIndex"; "required": false; }; }, { "
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiSegmented, "tui-segmented", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "activeItemIndex": { "alias": "activeItemIndex"; "required": false; "isSignal": true; }; }, { "activeItemIndex": "activeItemIndexChange"; }, never, ["*"], true, [{ directive: typeof i1.TuiSegmentedDirective; inputs: {}; outputs: {}; }]>;
|
|
24
22
|
}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { type AfterContentChecked, type AfterContentInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TuiSegmentedDirective implements AfterContentChecked, AfterContentInit {
|
|
4
|
-
private readonly controls;
|
|
5
|
-
private readonly radios;
|
|
6
|
-
private readonly links;
|
|
7
|
-
private readonly elements;
|
|
8
4
|
private readonly component;
|
|
9
5
|
private readonly el;
|
|
6
|
+
private readonly links;
|
|
7
|
+
private readonly elements;
|
|
8
|
+
private readonly controls;
|
|
9
|
+
private readonly controls$;
|
|
10
|
+
private readonly radios;
|
|
10
11
|
ngAfterContentInit(): void;
|
|
11
12
|
ngAfterContentChecked(): void;
|
|
12
13
|
protected update(target: Element | null): void;
|
|
13
|
-
private get linkIndex();
|
|
14
|
-
private getIndex;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiSegmentedDirective, never>;
|
|
16
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSegmentedDirective, never, never, {}, {}, ["
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiSegmentedDirective, never, never, {}, {}, ["links", "elements", "controls", "radios"], never, true, never>;
|
|
17
16
|
}
|
|
@@ -1,12 +1,7 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
2
1
|
import { type TuiSizeS } from '@taiga-ui/core/types';
|
|
3
2
|
export interface TuiSliderOptions {
|
|
4
3
|
readonly size: TuiSizeS;
|
|
5
4
|
readonly trackColor: string;
|
|
6
5
|
}
|
|
7
6
|
export declare const TUI_SLIDER_DEFAULT_OPTIONS: TuiSliderOptions;
|
|
8
|
-
|
|
9
|
-
* Default parameters for Slider component
|
|
10
|
-
*/
|
|
11
|
-
export declare const TUI_SLIDER_OPTIONS: InjectionToken<TuiSliderOptions>;
|
|
12
|
-
export declare function tuiSliderOptionsProvider(options: Partial<TuiSliderOptions>): Provider;
|
|
7
|
+
export declare const TUI_SLIDER_OPTIONS: import("@angular/core").InjectionToken<TuiSliderOptions>, tuiSliderOptionsProvider: (item: Partial<TuiSliderOptions> | (() => Partial<TuiSliderOptions>)) => import("@angular/core").FactoryProvider;
|
|
@@ -1,17 +1,15 @@
|
|
|
1
|
+
import { TuiStepperComponent } from './stepper.component';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class TuiStep {
|
|
3
|
-
private readonly stepper;
|
|
4
4
|
private readonly el;
|
|
5
|
-
protected readonly $: import("rxjs").Subscription;
|
|
6
|
-
protected focusVisible: boolean;
|
|
7
5
|
protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
protected readonly stepper: TuiStepperComponent;
|
|
7
|
+
protected readonly $: import("rxjs").Subscription;
|
|
8
|
+
readonly stepState: import("@angular/core").InputSignal<"error" | "normal" | "pass">;
|
|
9
|
+
readonly icon: import("@angular/core").InputSignal<string>;
|
|
10
10
|
protected get isActive(): boolean;
|
|
11
|
-
protected get isVertical(): boolean;
|
|
12
|
-
protected get tabIndex(): number;
|
|
13
11
|
protected get index(): number;
|
|
14
12
|
protected activate(): void;
|
|
15
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiStep, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiStep, "button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]", never, { "stepState": { "alias": "stepState"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiStep, "button[tuiStep], a[tuiStep]:not([routerLink]), a[tuiStep][routerLink][routerLinkActive]", never, { "stepState": { "alias": "stepState"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
17
15
|
}
|
|
@@ -1,27 +1,22 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, type OnChanges } from '@angular/core';
|
|
2
2
|
import { type TuiOrientation } from '@taiga-ui/core/types';
|
|
3
|
-
import { type Observable } from 'rxjs';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class TuiStepperComponent implements OnChanges {
|
|
6
|
-
private readonly steps;
|
|
7
5
|
private readonly cdr;
|
|
8
6
|
private readonly el;
|
|
9
|
-
private readonly
|
|
10
|
-
|
|
11
|
-
private readonly destroyRef;
|
|
7
|
+
private readonly steps;
|
|
8
|
+
protected readonly changes$: import("rxjs").Observable<readonly ElementRef<any>[]>;
|
|
12
9
|
protected readonly $: import("rxjs").Subscription;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
readonly activeItemIndexChange: EventEmitter<number>;
|
|
10
|
+
readonly orientation: import("@angular/core").InputSignal<TuiOrientation>;
|
|
11
|
+
readonly activeItemIndex: import("@angular/core").ModelSignal<number>;
|
|
16
12
|
ngOnChanges(): void;
|
|
17
13
|
indexOf(step: HTMLElement): number;
|
|
18
14
|
isActive(index: number): boolean;
|
|
19
15
|
activate(index: number): void;
|
|
20
|
-
protected get changes$(): Observable<unknown>;
|
|
21
16
|
protected onHorizontal(event: Event, step: number): void;
|
|
22
17
|
protected onVertical(event: Event, step: number): void;
|
|
23
18
|
private moveFocus;
|
|
24
19
|
private scrollIntoView;
|
|
25
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiStepperComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiStepperComponent, "tui-stepper, nav[tuiStepper]", never, { "
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiStepperComponent, "tui-stepper, nav[tuiStepper]", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "activeItemIndex": { "alias": "activeItemIndex"; "required": false; "isSignal": true; }; }, { "activeItemIndex": "activeItemIndexChange"; }, ["steps"], ["*"], true, never>;
|
|
27
22
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
2
1
|
import { type TuiSizeL } from '@taiga-ui/core/types';
|
|
3
2
|
export interface TuiTabsOptions {
|
|
4
3
|
readonly exposeActive: boolean;
|
|
@@ -8,8 +7,4 @@ export interface TuiTabsOptions {
|
|
|
8
7
|
readonly size: TuiSizeL;
|
|
9
8
|
}
|
|
10
9
|
export declare const TUI_TABS_DEFAULT_OPTIONS: TuiTabsOptions;
|
|
11
|
-
|
|
12
|
-
* Default parameters for Tabs component
|
|
13
|
-
*/
|
|
14
|
-
export declare const TUI_TABS_OPTIONS: InjectionToken<TuiTabsOptions>;
|
|
15
|
-
export declare function tuiTabsOptionsProvider(options: Partial<TuiTabsOptions>): Provider;
|
|
10
|
+
export declare const TUI_TABS_OPTIONS: import("@angular/core").InjectionToken<TuiTabsOptions>, tuiTabsOptionsProvider: (item: Partial<TuiTabsOptions> | (() => Partial<TuiTabsOptions>)) => import("@angular/core").FactoryProvider;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { type AfterViewInit } from '@angular/core';
|
|
2
|
-
import { type
|
|
2
|
+
import { type TuiPortalContext } from '@taiga-ui/cdk/portals';
|
|
3
3
|
import { type TuiToastOptions } from './toast.options';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@taiga-ui/cdk/directives/animated";
|
|
6
|
-
import * as i2 from "@taiga-ui/core/directives/
|
|
6
|
+
import * as i2 from "@taiga-ui/core/directives/alert";
|
|
7
7
|
export declare class TuiToastComponent<O, I> implements AfterViewInit {
|
|
8
8
|
private readonly close;
|
|
9
9
|
private readonly el;
|
|
10
10
|
protected readonly isMobile: boolean;
|
|
11
|
-
protected readonly context:
|
|
11
|
+
protected readonly context: TuiPortalContext<TuiToastOptions<I>, O>;
|
|
12
12
|
protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
|
|
13
13
|
protected readonly $: import("rxjs").Subscription;
|
|
14
14
|
ngAfterViewInit(): void;
|
|
15
15
|
protected onSwipe(): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiToastComponent<any, any>, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TuiToastComponent<any, any>, "tui-toast", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i2.
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiToastComponent<any, any>, "tui-toast", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }, { directive: typeof i2.TuiAlertDirective; inputs: {}; outputs: {}; }]>;
|
|
18
18
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { type TuiPositionOptions } from '@taiga-ui/core/directives/alert';
|
|
2
3
|
export interface TuiToastOptions<I> extends TuiPositionOptions {
|
|
3
4
|
readonly autoClose: number;
|
|
4
5
|
readonly closable: boolean;
|
|
5
6
|
readonly appearance: string;
|
|
6
7
|
readonly data?: I;
|
|
7
8
|
}
|
|
8
|
-
export declare const TUI_TOAST_CONCURRENCY:
|
|
9
|
-
export declare const TUI_TOAST_OPTIONS:
|
|
9
|
+
export declare const TUI_TOAST_CONCURRENCY: InjectionToken<1 | 2>;
|
|
10
|
+
export declare const TUI_TOAST_OPTIONS: InjectionToken<TuiToastOptions<any>>, tuiToastOptionsProvider: (item: Partial<TuiToastOptions<any>> | (() => Partial<TuiToastOptions<any>>)) => import("@angular/core").FactoryProvider;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TuiAlertService } from '@taiga-ui/core/directives/alert';
|
|
2
2
|
import { TuiToastComponent } from './toast.component';
|
|
3
3
|
import { type TuiToastOptions } from './toast.options';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@taiga-ui/cdk/portals";
|
|
6
|
-
export declare class TuiToastService extends
|
|
6
|
+
export declare class TuiToastService extends TuiAlertService<TuiToastOptions<any>> {
|
|
7
7
|
protected readonly options: TuiToastOptions<any>;
|
|
8
8
|
protected readonly component: typeof TuiToastComponent;
|
|
9
9
|
constructor();
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { PolymorpheusComponent, type PolymorpheusContent } from '@taiga-ui/polymorpheus';
|
|
1
3
|
import { type TuiTreeItemContext } from '../../misc/tree.interfaces';
|
|
2
4
|
import * as i0 from "@angular/core";
|
|
3
5
|
export declare class TuiTreeItemContent {
|
|
@@ -10,3 +12,8 @@ export declare class TuiTreeItemContent {
|
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiTreeItemContent, never>;
|
|
11
13
|
static ɵcmp: i0.ɵɵComponentDeclaration<TuiTreeItemContent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
12
14
|
}
|
|
15
|
+
export declare const TUI_TREE_ITEM_CONTENT: PolymorpheusComponent<TuiTreeItemContent>;
|
|
16
|
+
/**
|
|
17
|
+
* Content for a tree item
|
|
18
|
+
*/
|
|
19
|
+
export declare const TUI_TREE_CONTENT: InjectionToken<PolymorpheusContent<TuiTreeItemContext>>;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import { PolymorpheusComponent } from '@taiga-ui/polymorpheus';
|
|
2
|
-
import { TuiTreeItemContent } from '../components/tree-item-content/tree-item-content.component';
|
|
3
1
|
import { type TuiTreeController } from './tree.interfaces';
|
|
4
|
-
export declare const TUI_TREE_ITEM_CONTENT: PolymorpheusComponent<TuiTreeItemContent>;
|
|
5
2
|
export declare const TUI_DEFAULT_TREE_CONTROLLER: TuiTreeController;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { type
|
|
3
|
-
import { type TuiTreeAccessor, type TuiTreeItemContext, type TuiTreeLoader } from './tree.interfaces';
|
|
2
|
+
import { type TuiTreeAccessor, type TuiTreeLoader } from './tree.interfaces';
|
|
4
3
|
/**
|
|
5
4
|
* Controller for tracking value - TuiTreeItemComponent pairs
|
|
6
5
|
*/
|
|
@@ -25,10 +24,6 @@ export declare const TUI_TREE_START: InjectionToken<unknown>;
|
|
|
25
24
|
* A service to load tree progressively
|
|
26
25
|
*/
|
|
27
26
|
export declare const TUI_TREE_LOADER: InjectionToken<TuiTreeLoader<unknown>>;
|
|
28
|
-
/**
|
|
29
|
-
* Content for a tree item
|
|
30
|
-
*/
|
|
31
|
-
export declare const TUI_TREE_CONTENT: InjectionToken<PolymorpheusContent<TuiTreeItemContext>>;
|
|
32
27
|
/**
|
|
33
28
|
* Nesting level of current TreeView node
|
|
34
29
|
*/
|
|
@@ -3,8 +3,9 @@ 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
|
-
export declare class TuiButtonSelect<T> extends TuiControl<T> implements TuiDataListHost<T> {
|
|
6
|
+
export declare class TuiButtonSelect<T> extends TuiControl<T | T[]> implements TuiDataListHost<T> {
|
|
7
7
|
private readonly open;
|
|
8
|
+
private readonly handlers;
|
|
8
9
|
readonly size = "s";
|
|
9
10
|
handleOption(option: T): void;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiButtonSelect<any>, never>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { type AfterViewInit } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class TuiDataListDropdownManager implements AfterViewInit {
|
|
4
|
+
private readonly destroyRef;
|
|
4
5
|
private readonly dropdowns;
|
|
5
6
|
private readonly els;
|
|
6
|
-
private readonly
|
|
7
|
+
private readonly elements$;
|
|
8
|
+
private readonly right$;
|
|
9
|
+
private readonly immediate$;
|
|
10
|
+
private readonly debounce$;
|
|
7
11
|
ngAfterViewInit(): void;
|
|
8
|
-
private get elements$();
|
|
9
|
-
private get right$();
|
|
10
|
-
private get immediate$();
|
|
11
|
-
private get debounce$();
|
|
12
12
|
private notInDropdown;
|
|
13
13
|
private tryToFocus;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDataListDropdownManager, never>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { type TuiOrientation } from '@taiga-ui/core/types';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@taiga-ui/cdk/directives/transitioned";
|
|
4
3
|
export declare class TuiFade {
|
|
5
4
|
protected readonly nothing: undefined;
|
|
6
5
|
lineHeight: string | null;
|
|
@@ -10,5 +9,5 @@ export declare class TuiFade {
|
|
|
10
9
|
constructor();
|
|
11
10
|
private isEnd;
|
|
12
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<TuiFade, never>;
|
|
13
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiFade, "[tuiFade]", never, { "lineHeight": { "alias": "tuiFadeHeight"; "required": false; }; "size": { "alias": "tuiFadeSize"; "required": false; }; "offset": { "alias": "tuiFadeOffset"; "required": false; }; "orientation": { "alias": "tuiFade"; "required": false; }; }, {}, never, never, true,
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiFade, "[tuiFade]", never, { "lineHeight": { "alias": "tuiFadeHeight"; "required": false; }; "size": { "alias": "tuiFadeSize"; "required": false; }; "offset": { "alias": "tuiFadeOffset"; "required": false; }; "orientation": { "alias": "tuiFade"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
13
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { InjectionToken, type Provider } from '@angular/core';
|
|
2
1
|
export interface TuiFluidTypographyOptions {
|
|
3
2
|
readonly min: number;
|
|
4
3
|
readonly max: number;
|
|
5
4
|
}
|
|
6
5
|
export declare const TUI_FLUID_TYPOGRAPHY_DEFAULT_OPTIONS: TuiFluidTypographyOptions;
|
|
7
|
-
export declare const TUI_FLUID_TYPOGRAPHY_OPTIONS: InjectionToken<TuiFluidTypographyOptions
|
|
8
|
-
export declare function tuiFluidTypographyOptionsProvider(options: Partial<TuiFluidTypographyOptions>): Provider;
|
|
6
|
+
export declare const TUI_FLUID_TYPOGRAPHY_OPTIONS: import("@angular/core").InjectionToken<TuiFluidTypographyOptions>, tuiFluidTypographyOptionsProvider: (item: Partial<TuiFluidTypographyOptions> | (() => Partial<TuiFluidTypographyOptions>)) => import("@angular/core").FactoryProvider;
|
|
@@ -17,11 +17,11 @@ const [TUI_AVATAR_OPTIONS, tuiAvatarOptionsProvider] = tuiCreateOptions({
|
|
|
17
17
|
|
|
18
18
|
let Styles$1 = class Styles {
|
|
19
19
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
20
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-avatar" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiAvatar]{--t-size: var(--tui-height-l);--t-radius: .75rem;--t-corner-offset: calc((var(--t-radius) * 1.4142 - var(--t-radius)) * 1 / 1.4142);position:relative;display:inline-flex;flex-shrink:0;inline-size:var(--t-size);block-size:var(--t-size);align-items:center;justify-content:center;white-space:nowrap;border-radius:var(--t-radius);border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-secondary);vertical-align:middle;box-sizing:border-box;padding:.25rem;font:var(--tui-font-text-l);font-weight:700;opacity:.999}[tuiAvatar]:before{inline-size:auto;block-size:auto}[tuiAvatar]:not(._initials):before{position:absolute;
|
|
20
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: Styles, isStandalone: true, selector: "ng-component", host: { classAttribute: "tui-avatar" }, ngImport: i0, template: '', isInline: true, styles: ["[tuiAvatar]{--t-size: var(--tui-height-l);--t-radius: .75rem;--t-corner-offset: calc((var(--t-radius) * 1.4142 - var(--t-radius)) * 1 / 1.4142);position:relative;display:inline-flex;flex-shrink:0;inline-size:var(--t-size);block-size:var(--t-size);align-items:center;justify-content:center;white-space:nowrap;border-radius:var(--t-radius);border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-secondary);vertical-align:middle;box-sizing:border-box;padding:.25rem;font:var(--tui-font-text-l);font-weight:700;opacity:.999}[tuiAvatar]:before{inline-size:auto;block-size:auto}[tuiAvatar]:not(._initials):before{position:absolute;inset:0;font-size:calc(var(--t-size) * .6)}[tuiAvatar][data-size=xs]{--t-size: var(--tui-height-xs);--t-radius: .5rem;font:var(--tui-font-text-ui-xs);font-size:.5625rem}[tuiAvatar][data-size=xs]._initials:before{font:var(--tui-font-text-ui-xs);font-weight:700}[tuiAvatar][data-size=s]{--t-size: var(--tui-height-s);--t-radius: .5rem;font:var(--tui-font-text-ui-xs);font-weight:700}[tuiAvatar][data-size=s]._initials:before{font:var(--tui-font-text-s);font-weight:700}[tuiAvatar][data-size=m]{--t-size: calc(var(--tui-height-m) - .25rem);--t-radius: .75rem;font:var(--tui-font-text-ui-m);font-weight:700}[tuiAvatar][data-size=m]._initials:before{font:var(--tui-font-text-m);font-weight:700}[tuiAvatar][data-size=xl]{--t-size: 5rem;--t-radius: .75rem;font:var(--tui-font-heading-4)}[tuiAvatar][data-size=xl]._initials:before{font:var(--tui-font-heading-3)}[tuiAvatar][data-size=xxl]{--t-size: 6rem;--t-radius: 1rem;font:var(--tui-font-heading-3)}[tuiAvatar][data-size=xxl]._initials:before{font:var(--tui-font-heading-3)}[tuiAvatar][data-size=xxxl]{--t-size: 8rem;--t-radius: 1.25rem;font:var(--tui-font-heading-3)}[tuiAvatar][data-size=xxxl]._initials:before{font:var(--tui-font-heading-2)}[tuiAvatar]:not([data-shape=square]){--t-radius: calc(var(--t-size) / 2)}[tuiAvatar]._initials:before{content:attr(data-icon-start);mask:none;background:none;font:var(--tui-font-heading-6)}[tuiAvatar]._badge{mask:radial-gradient(circle at calc(100% - var(--t-corner-offset)) calc(100% - var(--t-corner-offset)),black .23rem,transparent .25rem,transparent .375rem,black .39rem);mask-clip:no-clip}[tuiAvatar]._badge:after{content:\"\";position:absolute;top:calc(100% - var(--t-corner-offset));left:calc(100% - var(--t-corner-offset));display:block;inline-size:.55rem;block-size:.55rem;border-radius:100%;background:var(--t-badge);transform:translate3d(-50%,-50%,0)}[tuiAvatar]._fallback img,[tuiAvatar]._fallback video{display:none}[tuiAvatar] img,[tuiAvatar] video,[tuiAvatar] picture{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;object-fit:cover;box-sizing:border-box;border-radius:inherit}[tuiAvatar]:has(img,video):not(._fallback){background:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
21
21
|
};
|
|
22
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles$1, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
|
-
args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-avatar' }, styles: ["[tuiAvatar]{--t-size: var(--tui-height-l);--t-radius: .75rem;--t-corner-offset: calc((var(--t-radius) * 1.4142 - var(--t-radius)) * 1 / 1.4142);position:relative;display:inline-flex;flex-shrink:0;inline-size:var(--t-size);block-size:var(--t-size);align-items:center;justify-content:center;white-space:nowrap;border-radius:var(--t-radius);border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-secondary);vertical-align:middle;box-sizing:border-box;padding:.25rem;font:var(--tui-font-text-l);font-weight:700;opacity:.999}[tuiAvatar]:before{inline-size:auto;block-size:auto}[tuiAvatar]:not(._initials):before{position:absolute;
|
|
24
|
+
args: [{ template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'tui-avatar' }, styles: ["[tuiAvatar]{--t-size: var(--tui-height-l);--t-radius: .75rem;--t-corner-offset: calc((var(--t-radius) * 1.4142 - var(--t-radius)) * 1 / 1.4142);position:relative;display:inline-flex;flex-shrink:0;inline-size:var(--t-size);block-size:var(--t-size);align-items:center;justify-content:center;white-space:nowrap;border-radius:var(--t-radius);border:none;background:var(--tui-background-neutral-1);color:var(--tui-text-secondary);vertical-align:middle;box-sizing:border-box;padding:.25rem;font:var(--tui-font-text-l);font-weight:700;opacity:.999}[tuiAvatar]:before{inline-size:auto;block-size:auto}[tuiAvatar]:not(._initials):before{position:absolute;inset:0;font-size:calc(var(--t-size) * .6)}[tuiAvatar][data-size=xs]{--t-size: var(--tui-height-xs);--t-radius: .5rem;font:var(--tui-font-text-ui-xs);font-size:.5625rem}[tuiAvatar][data-size=xs]._initials:before{font:var(--tui-font-text-ui-xs);font-weight:700}[tuiAvatar][data-size=s]{--t-size: var(--tui-height-s);--t-radius: .5rem;font:var(--tui-font-text-ui-xs);font-weight:700}[tuiAvatar][data-size=s]._initials:before{font:var(--tui-font-text-s);font-weight:700}[tuiAvatar][data-size=m]{--t-size: calc(var(--tui-height-m) - .25rem);--t-radius: .75rem;font:var(--tui-font-text-ui-m);font-weight:700}[tuiAvatar][data-size=m]._initials:before{font:var(--tui-font-text-m);font-weight:700}[tuiAvatar][data-size=xl]{--t-size: 5rem;--t-radius: .75rem;font:var(--tui-font-heading-4)}[tuiAvatar][data-size=xl]._initials:before{font:var(--tui-font-heading-3)}[tuiAvatar][data-size=xxl]{--t-size: 6rem;--t-radius: 1rem;font:var(--tui-font-heading-3)}[tuiAvatar][data-size=xxl]._initials:before{font:var(--tui-font-heading-3)}[tuiAvatar][data-size=xxxl]{--t-size: 8rem;--t-radius: 1.25rem;font:var(--tui-font-heading-3)}[tuiAvatar][data-size=xxxl]._initials:before{font:var(--tui-font-heading-2)}[tuiAvatar]:not([data-shape=square]){--t-radius: calc(var(--t-size) / 2)}[tuiAvatar]._initials:before{content:attr(data-icon-start);mask:none;background:none;font:var(--tui-font-heading-6)}[tuiAvatar]._badge{mask:radial-gradient(circle at calc(100% - var(--t-corner-offset)) calc(100% - var(--t-corner-offset)),black .23rem,transparent .25rem,transparent .375rem,black .39rem);mask-clip:no-clip}[tuiAvatar]._badge:after{content:\"\";position:absolute;top:calc(100% - var(--t-corner-offset));left:calc(100% - var(--t-corner-offset));display:block;inline-size:.55rem;block-size:.55rem;border-radius:100%;background:var(--t-badge);transform:translate3d(-50%,-50%,0)}[tuiAvatar]._fallback img,[tuiAvatar]._fallback video{display:none}[tuiAvatar] img,[tuiAvatar] video,[tuiAvatar] picture{position:absolute;top:0;left:0;inline-size:100%;block-size:100%;object-fit:cover;box-sizing:border-box;border-radius:inherit}[tuiAvatar]:has(img,video):not(._fallback){background:none}\n"] }]
|
|
25
25
|
}] });
|
|
26
26
|
class TuiAvatar {
|
|
27
27
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-avatar.mjs","sources":["../../../projects/kit/components/avatar/avatar.options.ts","../../../projects/kit/components/avatar/avatar.directive.ts","../../../projects/kit/components/avatar/avatar-labeled.component.ts","../../../projects/kit/components/avatar/avatar-outline.directive.ts","../../../projects/kit/components/avatar/avatar-stack.component.ts","../../../projects/kit/components/avatar/taiga-ui-kit-components-avatar.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives/appearance';\nimport {type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core/types';\n\nexport interface TuiAvatarOptions extends TuiAppearanceOptions {\n readonly appearance: string;\n readonly round: boolean;\n readonly size: TuiSizeXS | TuiSizeXXL;\n}\n\nexport const [TUI_AVATAR_OPTIONS, tuiAvatarOptionsProvider] =\n tuiCreateOptions<TuiAvatarOptions>({\n appearance: '',\n round: true,\n size: 'm',\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiAppearanceOptionsProvider,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiIcons} from '@taiga-ui/core/directives/icons';\n\nimport {TUI_AVATAR_OPTIONS} from './avatar.options';\n\n@Component({\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/avatar.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-avatar'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiAvatar]',\n providers: [tuiAppearanceOptionsProvider(TUI_AVATAR_OPTIONS)],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiIcons,\n inputs: ['iconStart: tuiAvatar'],\n },\n ],\n host: {\n tuiAvatar: '',\n '[attr.data-size]': 'size()',\n '[attr.data-shape]': 'round() ? \"round\" : \"square\"',\n '[class._initials]': 'icons.iconStart()?.length < 3',\n '[class._fallback]': 'fallback()',\n '[class._badge]': 'badge()',\n '[style.--t-badge]': 'badge()',\n '(error.capture)': 'fallback.set(true)',\n '(load.capture)': 'fallback.set(false)',\n },\n})\nexport class TuiAvatar {\n private readonly options = inject(TUI_AVATAR_OPTIONS);\n\n protected readonly nothing = tuiWithStyles(Styles);\n protected readonly icons = inject(TuiIcons);\n protected readonly fallback = signal(false);\n\n public readonly size = input(this.options.size);\n public readonly round = input(this.options.round);\n public readonly badge = input('');\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiFade} from '@taiga-ui/kit/directives/fade';\n\n@Component({\n selector: 'tui-avatar-labeled',\n imports: [TuiFade],\n template: `\n <ng-content />\n @if (label.length) {\n @for (item of split(label); track item) {\n <span tuiFade>\n {{ item }}\n </span>\n }\n }\n `,\n styleUrl: './avatar-labeled.styles.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiAvatarLabeled {\n @Input()\n public label = '';\n\n @tuiPure\n protected split(label: string): readonly string[] {\n return label.split(' ');\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n template: '',\n styleUrl: './avatar-outline.styles.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-avatar-outline'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiAvatarOutline]',\n host: {\n '[style.--t-fill]': 'value()',\n '[class._outline]': 'value()',\n },\n})\nexport class TuiAvatarOutline {\n protected readonly nothing = tuiWithStyles(Styles);\n protected readonly value = computed((value = this.tuiAvatarOutline()) =>\n value === '' ? 'var(--tui-background-accent-1)' : value,\n );\n\n public readonly tuiAvatarOutline = input<string | null>('');\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\n\n@Component({\n selector: 'tui-avatar-stack',\n template: '<ng-content />',\n styleUrl: './avatar-stack.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-direction]': 'direction',\n },\n})\nexport class TuiAvatarStack {\n @Input()\n public direction: TuiHorizontalDirection = 'right';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["Styles"],"mappings":";;;;;;;;;;;MAUa,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,GACvD,gBAAgB,CAAmB;AAC/B,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,IAAI,EAAE,GAAG;AACZ,CAAA;;eCGL,MAOM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,gHANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,6wFAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMVA,QAAM,EAAA,UAAA,EAAA,CAAA;kBAPX,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA,EAAC,KAAK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AE;AACF,wBAAA,kBAAkB,EAAE,SAAS;AAC7B,wBAAA,kBAAkB,EAAE,SAAS;AAChC,qBAAA;AACJ,iBAAA;;;MCPY,cAAc,CAAA;AAV3B,IAAA,WAAA,GAAA;QAYW,IAAS,CAAA,SAAA,GAA2B,OAAO;AACrD;+GAHY,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,8KARb,gBAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,quJAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAQjB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAV1B,SAAS;+BACI,kBAAkB,EAAA,QAAA,EAClB,gBAAgB,EAAA,aAAA,EAEX,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,uBAAuB,EAAE,WAAW;AACvC,qBAAA,EAAA,MAAA,EAAA,CAAA,quJAAA,CAAA,EAAA;8BAIM,SAAS,EAAA,CAAA;sBADf;;;ACnBL;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-avatar.mjs","sources":["../../../projects/kit/components/avatar/avatar.options.ts","../../../projects/kit/components/avatar/avatar.directive.ts","../../../projects/kit/components/avatar/avatar-labeled.component.ts","../../../projects/kit/components/avatar/avatar-outline.directive.ts","../../../projects/kit/components/avatar/avatar-stack.component.ts","../../../projects/kit/components/avatar/taiga-ui-kit-components-avatar.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives/appearance';\nimport {type TuiSizeXS, type TuiSizeXXL} from '@taiga-ui/core/types';\n\nexport interface TuiAvatarOptions extends TuiAppearanceOptions {\n readonly appearance: string;\n readonly round: boolean;\n readonly size: TuiSizeXS | TuiSizeXXL;\n}\n\nexport const [TUI_AVATAR_OPTIONS, tuiAvatarOptionsProvider] =\n tuiCreateOptions<TuiAvatarOptions>({\n appearance: '',\n round: true,\n size: 'm',\n });\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n input,\n signal,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiAppearanceOptionsProvider,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiIcons} from '@taiga-ui/core/directives/icons';\n\nimport {TUI_AVATAR_OPTIONS} from './avatar.options';\n\n@Component({\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/avatar.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-avatar'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiAvatar]',\n providers: [tuiAppearanceOptionsProvider(TUI_AVATAR_OPTIONS)],\n hostDirectives: [\n TuiWithAppearance,\n {\n directive: TuiIcons,\n inputs: ['iconStart: tuiAvatar'],\n },\n ],\n host: {\n tuiAvatar: '',\n '[attr.data-size]': 'size()',\n '[attr.data-shape]': 'round() ? \"round\" : \"square\"',\n '[class._initials]': 'icons.iconStart()?.length < 3',\n '[class._fallback]': 'fallback()',\n '[class._badge]': 'badge()',\n '[style.--t-badge]': 'badge()',\n '(error.capture)': 'fallback.set(true)',\n '(load.capture)': 'fallback.set(false)',\n },\n})\nexport class TuiAvatar {\n private readonly options = inject(TUI_AVATAR_OPTIONS);\n\n protected readonly nothing = tuiWithStyles(Styles);\n protected readonly icons = inject(TuiIcons);\n protected readonly fallback = signal(false);\n\n public readonly size = input(this.options.size);\n public readonly round = input(this.options.round);\n public readonly badge = input('');\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiPure} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {TuiFade} from '@taiga-ui/kit/directives/fade';\n\n@Component({\n selector: 'tui-avatar-labeled',\n imports: [TuiFade],\n template: `\n <ng-content />\n @if (label.length) {\n @for (item of split(label); track item) {\n <span tuiFade>\n {{ item }}\n </span>\n }\n }\n `,\n styleUrl: './avatar-labeled.styles.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class TuiAvatarLabeled {\n @Input()\n public label = '';\n\n @tuiPure\n protected split(label: string): readonly string[] {\n return label.split(' ');\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\n\n@Component({\n template: '',\n styleUrl: './avatar-outline.styles.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-avatar-outline'},\n})\nclass Styles {}\n\n@Directive({\n selector: '[tuiAvatarOutline]',\n host: {\n '[style.--t-fill]': 'value()',\n '[class._outline]': 'value()',\n },\n})\nexport class TuiAvatarOutline {\n protected readonly nothing = tuiWithStyles(Styles);\n protected readonly value = computed((value = this.tuiAvatarOutline()) =>\n value === '' ? 'var(--tui-background-accent-1)' : value,\n );\n\n public readonly tuiAvatarOutline = input<string | null>('');\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {type TuiHorizontalDirection} from '@taiga-ui/core/types';\n\n@Component({\n selector: 'tui-avatar-stack',\n template: '<ng-content />',\n styleUrl: './avatar-stack.style.less',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.data-direction]': 'direction',\n },\n})\nexport class TuiAvatarStack {\n @Input()\n public direction: TuiHorizontalDirection = 'right';\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["Styles"],"mappings":";;;;;;;;;;;MAUa,CAAC,kBAAkB,EAAE,wBAAwB,CAAC,GACvD,gBAAgB,CAAmB;AAC/B,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,KAAK,EAAE,IAAI;AACX,IAAA,IAAI,EAAE,GAAG;AACZ,CAAA;;eCGL,MAOM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,gHANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,uvFAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMVA,QAAM,EAAA,UAAA,EAAA,CAAA;kBAPX,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA,EAAC,KAAK,EAAE,YAAY,EAAC,EAAA,MAAA,EAAA,CAAA,uvFAAA,CAAA,EAAA;;MA0BlB,SAAS,CAAA;AAtBtB,IAAA,WAAA,GAAA;AAuBqB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAElC,QAAA,IAAA,CAAA,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AAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,cAAc,8KARb,gBAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,quJAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAQjB,cAAc,EAAA,UAAA,EAAA,CAAA;kBAV1B,SAAS;+BACI,kBAAkB,EAAA,QAAA,EAClB,gBAAgB,EAAA,aAAA,EAEX,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACF,wBAAA,uBAAuB,EAAE,WAAW;AACvC,qBAAA,EAAA,MAAA,EAAA,CAAA,quJAAA,CAAA,EAAA;8BAIM,SAAS,EAAA,CAAA;sBADf;;;ACnBL;;AAEG;;;;"}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { inject, Input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import * as i1 from '@taiga-ui/cdk/directives/animated';
|
|
4
4
|
import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
|
|
5
|
-
import {
|
|
5
|
+
import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
|
|
6
6
|
|
|
7
7
|
const TUI_BADGE_NOTIFICATION_DEFAULT_OPTIONS = {
|
|
8
8
|
size: 'm',
|
|
9
9
|
};
|
|
10
|
-
const TUI_BADGE_NOTIFICATION_OPTIONS =
|
|
11
|
-
factory: () => TUI_BADGE_NOTIFICATION_DEFAULT_OPTIONS,
|
|
12
|
-
});
|
|
13
|
-
function tuiBadgeNotificationOptionsProvider(options) {
|
|
14
|
-
return tuiProvideOptions(TUI_BADGE_NOTIFICATION_OPTIONS, options, TUI_BADGE_NOTIFICATION_DEFAULT_OPTIONS);
|
|
15
|
-
}
|
|
10
|
+
const [TUI_BADGE_NOTIFICATION_OPTIONS, tuiBadgeNotificationOptionsProvider] = tuiCreateOptions(TUI_BADGE_NOTIFICATION_DEFAULT_OPTIONS);
|
|
16
11
|
|
|
17
12
|
class TuiBadgeNotification {
|
|
18
13
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-badge-notification.mjs","sources":["../../../projects/kit/components/badge-notification/badge-notification.options.ts","../../../projects/kit/components/badge-notification/badge-notification.component.ts","../../../projects/kit/components/badge-notification/taiga-ui-kit-components-badge-notification.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-badge-notification.mjs","sources":["../../../projects/kit/components/badge-notification/badge-notification.options.ts","../../../projects/kit/components/badge-notification/badge-notification.component.ts","../../../projects/kit/components/badge-notification/taiga-ui-kit-components-badge-notification.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core/types';\n\nexport interface TuiBadgeNotificationOptions {\n readonly size: TuiSizeL | TuiSizeXS;\n}\n\nexport const TUI_BADGE_NOTIFICATION_DEFAULT_OPTIONS: TuiBadgeNotificationOptions = {\n size: 'm',\n};\n\nexport const [TUI_BADGE_NOTIFICATION_OPTIONS, tuiBadgeNotificationOptionsProvider] =\n tuiCreateOptions(TUI_BADGE_NOTIFICATION_DEFAULT_OPTIONS);\n","import {ChangeDetectionStrategy, Component, inject, Input} from '@angular/core';\nimport {TuiAnimated} from '@taiga-ui/cdk/directives/animated';\nimport {type TuiSizeL, type TuiSizeXS} from '@taiga-ui/core/types';\n\nimport {TUI_BADGE_NOTIFICATION_OPTIONS} from './badge-notification.options';\n\n@Component({\n selector: 'tui-badge-notification',\n template: '<ng-content />',\n styleUrl: './badge-notification.style.less',\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [TuiAnimated],\n host: {\n '[attr.data-size]': 'size',\n },\n})\nexport class TuiBadgeNotification {\n @Input()\n public size: TuiSizeL | TuiSizeXS = inject(TUI_BADGE_NOTIFICATION_OPTIONS).size;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAOa,MAAA,sCAAsC,GAAgC;AAC/E,IAAA,IAAI,EAAE,GAAG;;AAGN,MAAM,CAAC,8BAA8B,EAAE,mCAAmC,CAAC,GAC9E,gBAAgB,CAAC,sCAAsC;;MCI9C,oBAAoB,CAAA;AAVjC,IAAA,WAAA,GAAA;AAYW,QAAA,IAAA,CAAA,IAAI,GAAyB,MAAM,CAAC,8BAA8B,CAAC,CAAC,IAAI;AAClF;+GAHY,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,oBAAoB,iNARnB,gBAAgB,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,8vBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;4FAQjB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAVhC,SAAS;+BACI,wBAAwB,EAAA,QAAA,EACxB,gBAAgB,EAAA,eAAA,EAET,uBAAuB,CAAC,MAAM,EAC/B,cAAA,EAAA,CAAC,WAAW,CAAC,EACvB,IAAA,EAAA;AACF,wBAAA,kBAAkB,EAAE,MAAM;AAC7B,qBAAA,EAAA,MAAA,EAAA,CAAA,8vBAAA,CAAA,EAAA;8BAIM,IAAI,EAAA,CAAA;sBADV;;;ACjBL;;AAEG;;;;"}
|
|
@@ -1,21 +1,17 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { ChangeDetectionStrategy, ViewEncapsulation, Component, input, inject, Directive } from '@angular/core';
|
|
3
|
+
import { tuiWithStyles } from '@taiga-ui/cdk/utils/miscellaneous';
|
|
4
4
|
import * as i1 from '@taiga-ui/core/directives/appearance';
|
|
5
5
|
import { tuiAppearanceOptionsProvider, TuiWithAppearance } from '@taiga-ui/core/directives/appearance';
|
|
6
6
|
import * as i2 from '@taiga-ui/core/directives/icons';
|
|
7
7
|
import { TuiWithIcons } from '@taiga-ui/core/directives/icons';
|
|
8
|
+
import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
|
|
8
9
|
|
|
9
10
|
const TUI_BADGE_DEFAULT_OPTIONS = {
|
|
10
11
|
appearance: '',
|
|
11
12
|
size: 'l',
|
|
12
13
|
};
|
|
13
|
-
const TUI_BADGE_OPTIONS =
|
|
14
|
-
factory: () => TUI_BADGE_DEFAULT_OPTIONS,
|
|
15
|
-
});
|
|
16
|
-
function tuiBadgeOptionsProvider(options) {
|
|
17
|
-
return tuiProvideOptions(TUI_BADGE_OPTIONS, options, TUI_BADGE_DEFAULT_OPTIONS);
|
|
18
|
-
}
|
|
14
|
+
const [TUI_BADGE_OPTIONS, tuiBadgeOptionsProvider] = tuiCreateOptions(TUI_BADGE_DEFAULT_OPTIONS);
|
|
19
15
|
|
|
20
16
|
class Styles {
|
|
21
17
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: Styles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-kit-components-badge.mjs","sources":["../../../projects/kit/components/badge/badge.options.ts","../../../projects/kit/components/badge/badge.directive.ts","../../../projects/kit/components/badge/taiga-ui-kit-components-badge.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"taiga-ui-kit-components-badge.mjs","sources":["../../../projects/kit/components/badge/badge.options.ts","../../../projects/kit/components/badge/badge.directive.ts","../../../projects/kit/components/badge/taiga-ui-kit-components-badge.ts"],"sourcesContent":["import {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiAppearanceOptions} from '@taiga-ui/core/directives/appearance';\nimport {type TuiSizeS, type TuiSizeXL} from '@taiga-ui/core/types';\n\nexport interface TuiBadgeOptions extends TuiAppearanceOptions {\n readonly size: TuiSizeS | TuiSizeXL;\n}\n\nexport const TUI_BADGE_DEFAULT_OPTIONS: TuiBadgeOptions = {\n appearance: '',\n size: 'l',\n};\n\nexport const [TUI_BADGE_OPTIONS, tuiBadgeOptionsProvider] = tuiCreateOptions(\n TUI_BADGE_DEFAULT_OPTIONS,\n);\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {tuiWithStyles} from '@taiga-ui/cdk/utils/miscellaneous';\nimport {\n tuiAppearanceOptionsProvider,\n TuiWithAppearance,\n} from '@taiga-ui/core/directives/appearance';\nimport {TuiWithIcons} from '@taiga-ui/core/directives/icons';\n\nimport {TUI_BADGE_OPTIONS} from './badge.options';\n\n@Component({\n template: '',\n styles: '@import \"@taiga-ui/kit/styles/components/badge.less\";',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {class: 'tui-badge'},\n})\nclass Styles {}\n\n@Directive({\n // tui-icon[tuiBadge] is required to avoid double matching of TuiIcons\n selector: 'tui-badge,[tuiBadge],tui-icon[tuiBadge]',\n providers: [tuiAppearanceOptionsProvider(TUI_BADGE_OPTIONS)],\n hostDirectives: [TuiWithAppearance, TuiWithIcons],\n host: {'[attr.data-size]': 'size()'},\n})\nexport class TuiBadge {\n protected readonly nothing = tuiWithStyles(Styles);\n\n public readonly size = input(inject(TUI_BADGE_OPTIONS).size);\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAQa,MAAA,yBAAyB,GAAoB;AACtD,IAAA,UAAU,EAAE,EAAE;AACd,IAAA,IAAI,EAAE,GAAG;;AAGN,MAAM,CAAC,iBAAiB,EAAE,uBAAuB,CAAC,GAAG,gBAAgB,CACxE,yBAAyB;;ACG7B,MAOM,MAAM,CAAA;+GAAN,MAAM,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,MAAM,+GANE,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,0qHAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;4FAMV,MAAM,EAAA,UAAA,EAAA,CAAA;kBAPX,SAAS;AACI,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAE,EAEG,aAAA,EAAA,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA,EAAC,KAAK,EAAE,WAAW,EAAC,EAAA,MAAA,EAAA,CAAA,0qHAAA,CAAA,EAAA;;MAWjB,QAAQ,CAAA;AAPrB,IAAA,WAAA,GAAA;AAQuB,QAAA,IAAA,CAAA,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC;QAElC,IAAI,CAAA,IAAA,GAAG,KAAK,CAAC,MAAM,CAAC,iBAAiB,CA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