@taiga-ui/experimental 4.49.0-canary.c8a6f7d → 4.50.0-canary.41052a9
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/dialog/dialog.component.d.ts +14 -0
- package/components/dialog/dialog.directive.d.ts +7 -0
- package/components/dialog/dialog.options.d.ts +27 -0
- package/components/dialog/dialog.service.d.ts +7 -0
- package/components/dialog/index.d.ts +4 -0
- package/components/index.d.ts +1 -0
- package/esm2022/components/dialog/dialog.component.mjs +48 -0
- package/esm2022/components/dialog/dialog.directive.mjs +21 -0
- package/esm2022/components/dialog/dialog.options.mjs +12 -0
- package/esm2022/components/dialog/dialog.service.mjs +19 -0
- package/esm2022/components/dialog/index.mjs +5 -0
- package/esm2022/components/dialog/taiga-ui-experimental-components-dialog.mjs +5 -0
- package/esm2022/components/index.mjs +2 -1
- package/fesm2022/taiga-ui-experimental-components-dialog.mjs +95 -0
- package/fesm2022/taiga-ui-experimental-components-dialog.mjs.map +1 -0
- package/fesm2022/taiga-ui-experimental-components.mjs +1 -0
- package/fesm2022/taiga-ui-experimental-components.mjs.map +1 -1
- package/package.json +11 -5
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type TuiPopover } from '@taiga-ui/cdk/services';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { type TuiDialogOptions } from './dialog.options';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@taiga-ui/cdk/directives/animated";
|
|
6
|
+
export declare class TuiDialogComponent<O, I> {
|
|
7
|
+
protected readonly close$: Subject<void>;
|
|
8
|
+
protected readonly close: import("@angular/core").Signal<string | undefined>;
|
|
9
|
+
protected readonly icons: import("@taiga-ui/core/tokens").TuiCommonIcons;
|
|
10
|
+
protected readonly context: TuiPopover<TuiDialogOptions<I>, O>;
|
|
11
|
+
protected readonly sub: import("rxjs").Subscription;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDialogComponent<any, any>, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TuiDialogComponent<any, any>, "tui-dialog", never, {}, {}, never, never, true, [{ directive: typeof i1.TuiAnimated; inputs: {}; outputs: {}; }]>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
|
|
2
|
+
import { type TuiDialogOptions } from './dialog.options';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TuiDialog<T> extends TuiPopoverDirective<TuiDialogOptions<T>> {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDialog<any>, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TuiDialog<any>, "ng-template[tuiDialog]", never, { "options": { "alias": "tuiDialogOptions"; "required": false; }; "open": { "alias": "tuiDialog"; "required": false; }; }, { "openChange": "tuiDialogChange"; }, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type TuiPopoverContext } from '@taiga-ui/cdk/services';
|
|
2
|
+
import { type TuiSizeL, type TuiSizeS } from '@taiga-ui/core/types';
|
|
3
|
+
import { type Observable } from 'rxjs';
|
|
4
|
+
/**
|
|
5
|
+
* Options for a dialog
|
|
6
|
+
*
|
|
7
|
+
* appearance - data-appearance attribute of the dialog ('taiga' by default)
|
|
8
|
+
* closable - show close button (true by default)
|
|
9
|
+
* data - arbitrary data for dialog
|
|
10
|
+
* dismissible - close dialog by Esc button or click on overlay (true by default)
|
|
11
|
+
* label - string title for the dialog ('' by default)
|
|
12
|
+
* required - dismissing or closing dialog by X button throws (false by default)
|
|
13
|
+
* size - size of the dialog ('m' by default)
|
|
14
|
+
*/
|
|
15
|
+
export interface TuiDialogOptions<I> {
|
|
16
|
+
readonly appearance: string;
|
|
17
|
+
readonly closable: Observable<boolean> | boolean;
|
|
18
|
+
readonly data: I extends void ? undefined : I;
|
|
19
|
+
readonly dismissible: Observable<boolean> | boolean;
|
|
20
|
+
readonly label: string;
|
|
21
|
+
readonly required: boolean;
|
|
22
|
+
readonly size: TuiSizeL | TuiSizeS;
|
|
23
|
+
}
|
|
24
|
+
export interface TuiDialogContext<O = void, I = undefined> extends TuiPopoverContext<O>, TuiDialogOptions<I> {
|
|
25
|
+
}
|
|
26
|
+
export declare const TUI_DIALOG_DEFAULT_OPTIONS: TuiDialogOptions<void>;
|
|
27
|
+
export declare const TUI_DIALOG_OPTIONS: import("@angular/core").InjectionToken<TuiDialogOptions<void>>, tuiDialogOptionsProvider: (item: Partial<TuiDialogOptions<void>> | import("@angular/core").ProviderToken<Partial<TuiDialogOptions<void>>>) => import("@angular/core").FactoryProvider;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { TuiPopoverService } from '@taiga-ui/cdk/services';
|
|
2
|
+
import { type TuiDialogOptions } from './dialog.options';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TuiDialogService extends TuiPopoverService<TuiDialogOptions<any>> {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TuiDialogService, never>;
|
|
6
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TuiDialogService>;
|
|
7
|
+
}
|
package/components/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from '@taiga-ui/experimental/components/accordion';
|
|
2
|
+
export * from '@taiga-ui/experimental/components/dialog';
|
|
2
3
|
export * from '@taiga-ui/experimental/components/expand';
|
|
3
4
|
export * from '@taiga-ui/experimental/components/hint';
|
|
4
5
|
export * from '@taiga-ui/experimental/components/input-phone-international';
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { NgIf } from '@angular/common';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, inject } from '@angular/core';
|
|
3
|
+
import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
|
|
4
|
+
import { TUI_TRUE_HANDLER } from '@taiga-ui/cdk/constants';
|
|
5
|
+
import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
|
|
6
|
+
import { TuiAutoFocus } from '@taiga-ui/cdk/directives/auto-focus';
|
|
7
|
+
import { TuiButton } from '@taiga-ui/core/components/button';
|
|
8
|
+
import { TUI_DIALOGS_CLOSE, TuiDialogCloseService } from '@taiga-ui/core/components/dialog';
|
|
9
|
+
import { TUI_CLOSE_WORD, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
|
|
10
|
+
import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
|
|
11
|
+
import { exhaustMap, filter, isObservable, map, merge, of, Subject, switchMap, take, } from 'rxjs';
|
|
12
|
+
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@taiga-ui/cdk/directives/animated";
|
|
14
|
+
const REQUIRED_ERROR = new Error('Required dialog was dismissed');
|
|
15
|
+
function toObservable(valueOrStream) {
|
|
16
|
+
return isObservable(valueOrStream) ? valueOrStream : of(valueOrStream);
|
|
17
|
+
}
|
|
18
|
+
class TuiDialogComponent {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.close$ = new Subject();
|
|
21
|
+
this.close = toSignal(inject(TUI_CLOSE_WORD));
|
|
22
|
+
this.icons = inject(TUI_COMMON_ICONS);
|
|
23
|
+
this.context = injectContext();
|
|
24
|
+
this.sub = merge(this.close$.pipe(switchMap(() => toObservable(this.context.closable))), inject(TuiDialogCloseService).pipe(exhaustMap(() => toObservable(this.context.dismissible).pipe(take(1)))), inject(TUI_DIALOGS_CLOSE).pipe(map(TUI_TRUE_HANDLER)))
|
|
25
|
+
.pipe(filter(Boolean), takeUntilDestroyed())
|
|
26
|
+
.subscribe(() => {
|
|
27
|
+
if (this.context.required) {
|
|
28
|
+
this.context.$implicit.error(REQUIRED_ERROR);
|
|
29
|
+
}
|
|
30
|
+
else {
|
|
31
|
+
this.context.$implicit.complete();
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
36
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiDialogComponent, isStandalone: true, selector: "tui-dialog", host: { attributes: { "new": "" }, properties: { "attr.data-appearance": "context.appearance", "attr.data-size": "context.size", "class._closable": "context.closable" } }, providers: [TuiDialogCloseService], hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: "<header\n *ngIf=\"context.label\"\n [id]=\"context.id\"\n [innerHTML]=\"context.label\"\n></header>\n\n<button\n *ngIf=\"context.closable\"\n appearance=\"neutral\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ close() }}\n</button>\n\n<ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <p [innerHTML]=\"text\"></p>\n <footer *ngIf=\"context.closable || context.dismissible\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data || 'OK' }}\n </button>\n </footer>\n</ng-container>\n", styles: [":host{position:relative;box-sizing:border-box;font:var(--tui-font-text-m);background:var(--tui-background-elevation-1);box-shadow:var(--tui-shadow-popup)}:host[data-appearance~=taiga]{max-inline-size:calc(100vw - 5rem);margin:2.5rem;padding:1.75rem;border-radius:1.5rem;--tui-from: translateY(2.5rem)}:host[data-appearance~=taiga].tui-enter,:host[data-appearance~=taiga].tui-leave{animation-name:tuiFade,tuiSlide}:host[data-appearance~=taiga][data-size=s]{inline-size:25rem;padding:1.5rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>header,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>header{font:var(--tui-font-heading-5);margin-block-end:1.25rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>p,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>p,:host[data-appearance~=taiga][data-size=s] ::ng-deep>tui-confirm>p{margin:-.75rem 0 1.25rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>footer,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>footer,:host[data-appearance~=taiga][data-size=s] ::ng-deep>tui-confirm>footer{margin-block-start:1.25rem}:host[data-appearance~=taiga][data-size=m]{inline-size:37.5rem}:host[data-appearance~=taiga][data-size=l]{inline-size:50rem}:host[data-appearance~=taiga] ::ng-deep>header,:host[data-appearance~=taiga] ::ng-deep>ng-component>header{margin-block-end:1.5rem;overflow-wrap:break-word;font:var(--tui-font-heading-4)}:host[data-appearance~=taiga] ::ng-deep>header:empty,:host[data-appearance~=taiga] ::ng-deep>ng-component>header:empty{display:none}:host[data-appearance~=taiga] ::ng-deep>p,:host[data-appearance~=taiga] ::ng-deep>ng-component>p,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>p{margin:-1rem 0 1.5rem}:host[data-appearance~=taiga] ::ng-deep>p:last-child,:host[data-appearance~=taiga] ::ng-deep>ng-component>p:last-child,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>p:last-child{margin-block-end:0}:host[data-appearance~=taiga] ::ng-deep>footer,:host[data-appearance~=taiga] ::ng-deep>ng-component>footer,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>footer{display:flex;justify-content:flex-end;flex-wrap:wrap-reverse;gap:.75rem;margin-block-start:2rem}:host._closable ::ng-deep>header,:host._closable ::ng-deep>ng-component>header{padding-inline-end:2rem}:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>footer>button,:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>ng-component>footer>button,:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>tui-confirm>footer>button{flex:1;overflow:visible}.t-close{position:absolute;top:1rem;inset-inline-end:1rem}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiAutoFocus, selector: "[tuiAutoFocus]", inputs: ["tuiAutoFocus"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
37
|
+
}
|
|
38
|
+
export { TuiDialogComponent };
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogComponent, decorators: [{
|
|
40
|
+
type: Component,
|
|
41
|
+
args: [{ standalone: true, selector: 'tui-dialog', imports: [NgIf, PolymorpheusOutlet, TuiAutoFocus, TuiButton], changeDetection: ChangeDetectionStrategy.Default, providers: [TuiDialogCloseService], hostDirectives: [TuiAnimated], host: {
|
|
42
|
+
new: '',
|
|
43
|
+
'[attr.data-appearance]': 'context.appearance',
|
|
44
|
+
'[attr.data-size]': 'context.size',
|
|
45
|
+
'[class._closable]': 'context.closable',
|
|
46
|
+
}, template: "<header\n *ngIf=\"context.label\"\n [id]=\"context.id\"\n [innerHTML]=\"context.label\"\n></header>\n\n<button\n *ngIf=\"context.closable\"\n appearance=\"neutral\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ close() }}\n</button>\n\n<ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <p [innerHTML]=\"text\"></p>\n <footer *ngIf=\"context.closable || context.dismissible\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data || 'OK' }}\n </button>\n </footer>\n</ng-container>\n", styles: [":host{position:relative;box-sizing:border-box;font:var(--tui-font-text-m);background:var(--tui-background-elevation-1);box-shadow:var(--tui-shadow-popup)}:host[data-appearance~=taiga]{max-inline-size:calc(100vw - 5rem);margin:2.5rem;padding:1.75rem;border-radius:1.5rem;--tui-from: translateY(2.5rem)}:host[data-appearance~=taiga].tui-enter,:host[data-appearance~=taiga].tui-leave{animation-name:tuiFade,tuiSlide}:host[data-appearance~=taiga][data-size=s]{inline-size:25rem;padding:1.5rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>header,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>header{font:var(--tui-font-heading-5);margin-block-end:1.25rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>p,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>p,:host[data-appearance~=taiga][data-size=s] ::ng-deep>tui-confirm>p{margin:-.75rem 0 1.25rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>footer,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>footer,:host[data-appearance~=taiga][data-size=s] ::ng-deep>tui-confirm>footer{margin-block-start:1.25rem}:host[data-appearance~=taiga][data-size=m]{inline-size:37.5rem}:host[data-appearance~=taiga][data-size=l]{inline-size:50rem}:host[data-appearance~=taiga] ::ng-deep>header,:host[data-appearance~=taiga] ::ng-deep>ng-component>header{margin-block-end:1.5rem;overflow-wrap:break-word;font:var(--tui-font-heading-4)}:host[data-appearance~=taiga] ::ng-deep>header:empty,:host[data-appearance~=taiga] ::ng-deep>ng-component>header:empty{display:none}:host[data-appearance~=taiga] ::ng-deep>p,:host[data-appearance~=taiga] ::ng-deep>ng-component>p,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>p{margin:-1rem 0 1.5rem}:host[data-appearance~=taiga] ::ng-deep>p:last-child,:host[data-appearance~=taiga] ::ng-deep>ng-component>p:last-child,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>p:last-child{margin-block-end:0}:host[data-appearance~=taiga] ::ng-deep>footer,:host[data-appearance~=taiga] ::ng-deep>ng-component>footer,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>footer{display:flex;justify-content:flex-end;flex-wrap:wrap-reverse;gap:.75rem;margin-block-start:2rem}:host._closable ::ng-deep>header,:host._closable ::ng-deep>ng-component>header{padding-inline-end:2rem}:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>footer>button,:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>ng-component>footer>button,:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>tui-confirm>footer>button{flex:1;overflow:visible}.t-close{position:absolute;top:1rem;inset-inline-end:1rem}\n"] }]
|
|
47
|
+
}] });
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4cGVyaW1lbnRhbC9jb21wb25lbnRzL2RpYWxvZy9kaWFsb2cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXhwZXJpbWVudGFsL2NvbXBvbmVudHMvZGlhbG9nL2RpYWxvZy50ZW1wbGF0ZS5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxJQUFJLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUNyQyxPQUFPLEVBQUMsdUJBQXVCLEVBQUUsU0FBUyxFQUFFLE1BQU0sRUFBQyxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUMsa0JBQWtCLEVBQUUsUUFBUSxFQUFDLE1BQU0sNEJBQTRCLENBQUM7QUFDeEUsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0seUJBQXlCLENBQUM7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29udGV4dC5jbG9zYWJsZVwiXG4gICAgYXBwZWFyYW5jZT1cIm5ldXRyYWxcIlxuICAgIHNpemU9XCJzXCJcbiAgICB0dWlJY29uQnV0dG9uXG4gICAgdHlwZT1cImJ1dHRvblwiXG4gICAgY2xhc3M9XCJ0LWNsb3NlXCJcbiAgICBbaWNvblN0YXJ0XT1cImljb25zLmNsb3NlXCJcbiAgICBbc3R5bGUuYm9yZGVyLXJhZGl1cy4lXT1cIjEwMFwiXG4gICAgKGNsaWNrKT1cImNsb3NlJC5uZXh0KClcIlxuICAgIChtb3VzZWRvd24ucHJldmVudC56b25lbGVzcyk9XCIoMClcIlxuPlxuICAgIHt7IGNsb3NlKCkgfX1cbjwvYnV0dG9uPlxuXG48bmctY29udGFpbmVyICpwb2x5bW9ycGhldXNPdXRsZXQ9XCJjb250ZXh0LmNvbnRlbnQgYXMgdGV4dDsgY29udGV4dDogY29udGV4dFwiPlxuICAgIDxwIFtpbm5lckhUTUxdPVwidGV4dFwiPjwvcD5cbiAgICA8Zm9vdGVyICpuZ0lmPVwiY29udGV4dC5jbG9zYWJsZSB8fCBjb250ZXh0LmRpc21pc3NpYmxlXCI+XG4gICAgICAgIDxidXR0b25cbiAgICAgICAgICAgIHNpemU9XCJtXCJcbiAgICAgICAgICAgIHR1aUF1dG9Gb2N1c1xuICAgICAgICAgICAgdHVpQnV0dG9uXG4gICAgICAgICAgICB0eXBlPVwiYnV0dG9uXCJcbiAgICAgICAgICAgIChjbGljayk9XCJjb250ZXh0LiRpbXBsaWNpdC5jb21wbGV0ZSgpXCJcbiAgICAgICAgPlxuICAgICAgICAgICAge3sgY29udGV4dC5kYXRhIHx8ICdPSycgfX1cbiAgICAgICAgPC9idXR0b24+XG4gICAgPC9mb290ZXI+XG48L25nLWNvbnRhaW5lcj5cbiJdfQ==
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Directive } from '@angular/core';
|
|
2
|
+
import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
|
|
3
|
+
import { tuiAsPopover } from '@taiga-ui/cdk/services';
|
|
4
|
+
import { TuiDialogService } from './dialog.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
class TuiDialog extends TuiPopoverDirective {
|
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialog, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
8
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDialog, isStandalone: true, selector: "ng-template[tuiDialog]", inputs: { options: ["tuiDialogOptions", "options"], open: ["tuiDialog", "open"] }, outputs: { openChange: "tuiDialogChange" }, providers: [tuiAsPopover(TuiDialogService)], usesInheritance: true, ngImport: i0 }); }
|
|
9
|
+
}
|
|
10
|
+
export { TuiDialog };
|
|
11
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialog, decorators: [{
|
|
12
|
+
type: Directive,
|
|
13
|
+
args: [{
|
|
14
|
+
standalone: true,
|
|
15
|
+
selector: 'ng-template[tuiDialog]',
|
|
16
|
+
inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],
|
|
17
|
+
outputs: ['openChange: tuiDialogChange'],
|
|
18
|
+
providers: [tuiAsPopover(TuiDialogService)],
|
|
19
|
+
}]
|
|
20
|
+
}] });
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2V4cGVyaW1lbnRhbC9jb21wb25lbnRzL2RpYWxvZy9kaWFsb2cuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyxTQUFTL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YW5kYWxvbmU6IHRydWUsXG4gICAgc2VsZWN0b3I6ICduZy10ZW1wbGF0ZVt0dWlEaWFsb2ddJyxcbiAgICBpbnB1dHM6IFsnb3B0aW9uczogdHVpRGlhbG9nT3B0aW9ucycsICdvcGVuOiB0dWlEaWFsb2cnXSxcbiAgICBvdXRwdXRzOiBbJ29wZW5DaGFuZ2U6IHR1aURpYWxvZ0NoYW5nZSddLFxuICAgIHByb3ZpZGVyczogW3R1aUFzUG9wb3ZlcihUdWlEaWFsb2dTZXJ2aWNlKV0sXG59KVxuZXhwb3J0IGNsYXNzIFR1aURpYWxvZzxUPiBleHRlbmRzIFR1aVBvcG92ZXJEaXJlY3RpdmU8VHVpRGlhbG9nT3B0aW9uczxUPj4ge31cbiJdfQ==
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
|
|
2
|
+
export const TUI_DIALOG_DEFAULT_OPTIONS = {
|
|
3
|
+
appearance: 'taiga',
|
|
4
|
+
size: 'm',
|
|
5
|
+
required: false,
|
|
6
|
+
closable: true,
|
|
7
|
+
dismissible: true,
|
|
8
|
+
label: '',
|
|
9
|
+
data: undefined,
|
|
10
|
+
};
|
|
11
|
+
export const [TUI_DIALOG_OPTIONS, tuiDialogOptionsProvider] = tuiCreateOptions(TUI_DIALOG_DEFAULT_OPTIONS);
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGlhbG9nLm9wdGlvbnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9leHBlcmltZW50YWwvY29tcG9uZW50cy9kaWFsb2cvZGlhbG9nLm9wdGlvbnMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQ0EsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sd0JBQXdCLENBQUM7QUE2QnhELE1BQU0sQ0FBQ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AgZGlzbWlzc2libGU6IHRydWUsXG4gICAgbGFiZWw6ICcnLFxuICAgIGRhdGE6IHVuZGVmaW5lZCxcbn07XG5cbmV4cG9ydCBjb25zdCBbVFVJX0RJQUxPR19PUFRJT05TLCB0dWlEaWFsb2dPcHRpb25zUHJvdmlkZXJdID0gdHVpQ3JlYXRlT3B0aW9ucyhcbiAgICBUVUlfRElBTE9HX0RFRkFVTFRfT1BUSU9OUyxcbik7XG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { inject, Injectable } from '@angular/core';
|
|
2
|
+
import { TuiPopoverService } from '@taiga-ui/cdk/services';
|
|
3
|
+
import { TUI_DIALOGS } from '@taiga-ui/core/components/dialog';
|
|
4
|
+
import { TuiDialogComponent } from './dialog.component';
|
|
5
|
+
import { TUI_DIALOG_OPTIONS } from './dialog.options';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
class TuiDialogService extends TuiPopoverService {
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
9
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogService, providedIn: 'root', useFactory: () => new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)) }); }
|
|
10
|
+
}
|
|
11
|
+
export { TuiDialogService };
|
|
12
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogService, decorators: [{
|
|
13
|
+
type: Injectable,
|
|
14
|
+
args: [{
|
|
15
|
+
providedIn: 'root',
|
|
16
|
+
useFactory: () => new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)),
|
|
17
|
+
}]
|
|
18
|
+
}] });
|
|
19
|
+
//# source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O1xuaW1wb3J0IHtUdWlQb3BvdmVyU2VydmljZX0gZnJvbSAnQHRhaWdhLXVpL2Nkay9zZXJ2aWNlcyc7XG5pbXBvcnQge1RVSV9ESUFMT0dTfSBmcm9tICdAdGFpZ2EtdWkvY29yZS9jb21wb25lbnRzL2RpYWxvZyc7XG5cbmltcG9ydCB7VHVpRGlhbG9nQ29tcG9uZW50fSBmcm9tICcuL2RpYWxvZy5jb21wb25lbnQnO1xuaW1wb3J0IHtUVUlfRElBTE9HX09QVElPTlMsIHR5cGUgVHVpRGlhbG9nT3B0aW9uc30gZnJvbSAnLi9kaWFsb2cub3B0aW9ucyc7XG5cbkBJbmplY3RhYmxlKHtcbiAgICBwcm92aWRlZEluOiAncm9vdCcsXG4gICAgdXNlRmFjdG9yeTogKCkgPT5cbiAgICAgICAgbmV3IFR1aURpYWxvZ1NlcnZpY2UoVFVJX0RJQUxPR1MsIFR1aURpYWxvZ0NvbXBvbmVudCwgaW5qZWN0KFRVSV9ESUFMT0dfT1BUSU9OUykpLFxufSlcbmV4cG9ydCBjbGFzcyBUdWlEaWFsb2dTZXJ2aWNlIGV4dGVuZHMgVHVpUG9wb3ZlclNlcnZpY2U8VHVpRGlhbG9nT3B0aW9uczxhbnk+PiB7fVxuIl19
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './dialog.component';
|
|
2
|
+
export * from './dialog.directive';
|
|
3
|
+
export * from './dialog.options';
|
|
4
|
+
export * from './dialog.service';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9leHBlcmltZW50YWwvY29tcG9uZW50cy9kaWFsb2cvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQkFBb0IsQ0FBQztBQUNuQyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxrQkFBa0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZGlhbG9nLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2RpYWxvZy5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9kaWFsb2cub3B0aW9ucyc7XG5leHBvcnQgKiBmcm9tICcuL2RpYWxvZy5zZXJ2aWNlJztcbiJdfQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './index';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFpZ2EtdWktZXhwZXJpbWVudGFsLWNvbXBvbmVudHMtZGlhbG9nLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXhwZXJpbWVudGFsL2NvbXBvbmVudHMvZGlhbG9nL3RhaWdhLXVpLWV4cGVyaW1lbnRhbC1jb21wb25lbnRzLWRpYWxvZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsU0FBUyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL2luZGV4JztcbiJdfQ==
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from '@taiga-ui/experimental/components/accordion';
|
|
2
|
+
export * from '@taiga-ui/experimental/components/dialog';
|
|
2
3
|
export * from '@taiga-ui/experimental/components/expand';
|
|
3
4
|
export * from '@taiga-ui/experimental/components/hint';
|
|
4
5
|
export * from '@taiga-ui/experimental/components/input-phone-international';
|
|
5
6
|
export * from '@taiga-ui/experimental/components/search-results';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
7
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9leHBlcmltZW50YWwvY29tcG9uZW50cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLDZDQUE2QyxDQUFDO0FBQzVELGNBQWMsMENBQTBDLENBQUM7QUFDekQsY0FBYywwQ0FBMEMsQ0FBQztBQUN6RCxjQUFjLHdDQUF3QyxDQUFDO0FBQ3ZELGNBQWMsNkRBQTZELENBQUM7QUFDNUUsY0FBYyxrREFBa0QsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9leHBlcmltZW50YWwvY29tcG9uZW50cy9hY2NvcmRpb24nO1xuZXhwb3J0ICogZnJvbSAnQHRhaWdhLXVpL2V4cGVyaW1lbnRhbC9jb21wb25lbnRzL2RpYWxvZyc7XG5leHBvcnQgKiBmcm9tICdAdGFpZ2EtdWkvZXhwZXJpbWVudGFsL2NvbXBvbmVudHMvZXhwYW5kJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9leHBlcmltZW50YWwvY29tcG9uZW50cy9oaW50JztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9leHBlcmltZW50YWwvY29tcG9uZW50cy9pbnB1dC1waG9uZS1pbnRlcm5hdGlvbmFsJztcbmV4cG9ydCAqIGZyb20gJ0B0YWlnYS11aS9leHBlcmltZW50YWwvY29tcG9uZW50cy9zZWFyY2gtcmVzdWx0cyc7XG4iXX0=
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { NgIf } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, Component, ChangeDetectionStrategy, Injectable, Directive } from '@angular/core';
|
|
4
|
+
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
5
|
+
import { TUI_TRUE_HANDLER } from '@taiga-ui/cdk/constants';
|
|
6
|
+
import * as i1 from '@taiga-ui/cdk/directives/animated';
|
|
7
|
+
import { TuiAnimated } from '@taiga-ui/cdk/directives/animated';
|
|
8
|
+
import { TuiAutoFocus } from '@taiga-ui/cdk/directives/auto-focus';
|
|
9
|
+
import { TuiButton } from '@taiga-ui/core/components/button';
|
|
10
|
+
import { TuiDialogCloseService, TUI_DIALOGS_CLOSE, TUI_DIALOGS } from '@taiga-ui/core/components/dialog';
|
|
11
|
+
import { TUI_CLOSE_WORD, TUI_COMMON_ICONS } from '@taiga-ui/core/tokens';
|
|
12
|
+
import { injectContext, PolymorpheusOutlet } from '@taiga-ui/polymorpheus';
|
|
13
|
+
import { isObservable, of, Subject, merge, switchMap, exhaustMap, take, map, filter } from 'rxjs';
|
|
14
|
+
import { TuiPopoverDirective } from '@taiga-ui/cdk/directives/popover';
|
|
15
|
+
import { TuiPopoverService, tuiAsPopover } from '@taiga-ui/cdk/services';
|
|
16
|
+
import { tuiCreateOptions } from '@taiga-ui/cdk/utils/di';
|
|
17
|
+
|
|
18
|
+
const REQUIRED_ERROR = new Error('Required dialog was dismissed');
|
|
19
|
+
function toObservable(valueOrStream) {
|
|
20
|
+
return isObservable(valueOrStream) ? valueOrStream : of(valueOrStream);
|
|
21
|
+
}
|
|
22
|
+
class TuiDialogComponent {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.close$ = new Subject();
|
|
25
|
+
this.close = toSignal(inject(TUI_CLOSE_WORD));
|
|
26
|
+
this.icons = inject(TUI_COMMON_ICONS);
|
|
27
|
+
this.context = injectContext();
|
|
28
|
+
this.sub = merge(this.close$.pipe(switchMap(() => toObservable(this.context.closable))), inject(TuiDialogCloseService).pipe(exhaustMap(() => toObservable(this.context.dismissible).pipe(take(1)))), inject(TUI_DIALOGS_CLOSE).pipe(map(TUI_TRUE_HANDLER)))
|
|
29
|
+
.pipe(filter(Boolean), takeUntilDestroyed())
|
|
30
|
+
.subscribe(() => {
|
|
31
|
+
if (this.context.required) {
|
|
32
|
+
this.context.$implicit.error(REQUIRED_ERROR);
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
this.context.$implicit.complete();
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
40
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: TuiDialogComponent, isStandalone: true, selector: "tui-dialog", host: { attributes: { "new": "" }, properties: { "attr.data-appearance": "context.appearance", "attr.data-size": "context.size", "class._closable": "context.closable" } }, providers: [TuiDialogCloseService], hostDirectives: [{ directive: i1.TuiAnimated }], ngImport: i0, template: "<header\n *ngIf=\"context.label\"\n [id]=\"context.id\"\n [innerHTML]=\"context.label\"\n></header>\n\n<button\n *ngIf=\"context.closable\"\n appearance=\"neutral\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ close() }}\n</button>\n\n<ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <p [innerHTML]=\"text\"></p>\n <footer *ngIf=\"context.closable || context.dismissible\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data || 'OK' }}\n </button>\n </footer>\n</ng-container>\n", styles: [":host{position:relative;box-sizing:border-box;font:var(--tui-font-text-m);background:var(--tui-background-elevation-1);box-shadow:var(--tui-shadow-popup)}:host[data-appearance~=taiga]{max-inline-size:calc(100vw - 5rem);margin:2.5rem;padding:1.75rem;border-radius:1.5rem;--tui-from: translateY(2.5rem)}:host[data-appearance~=taiga].tui-enter,:host[data-appearance~=taiga].tui-leave{animation-name:tuiFade,tuiSlide}:host[data-appearance~=taiga][data-size=s]{inline-size:25rem;padding:1.5rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>header,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>header{font:var(--tui-font-heading-5);margin-block-end:1.25rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>p,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>p,:host[data-appearance~=taiga][data-size=s] ::ng-deep>tui-confirm>p{margin:-.75rem 0 1.25rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>footer,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>footer,:host[data-appearance~=taiga][data-size=s] ::ng-deep>tui-confirm>footer{margin-block-start:1.25rem}:host[data-appearance~=taiga][data-size=m]{inline-size:37.5rem}:host[data-appearance~=taiga][data-size=l]{inline-size:50rem}:host[data-appearance~=taiga] ::ng-deep>header,:host[data-appearance~=taiga] ::ng-deep>ng-component>header{margin-block-end:1.5rem;overflow-wrap:break-word;font:var(--tui-font-heading-4)}:host[data-appearance~=taiga] ::ng-deep>header:empty,:host[data-appearance~=taiga] ::ng-deep>ng-component>header:empty{display:none}:host[data-appearance~=taiga] ::ng-deep>p,:host[data-appearance~=taiga] ::ng-deep>ng-component>p,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>p{margin:-1rem 0 1.5rem}:host[data-appearance~=taiga] ::ng-deep>p:last-child,:host[data-appearance~=taiga] ::ng-deep>ng-component>p:last-child,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>p:last-child{margin-block-end:0}:host[data-appearance~=taiga] ::ng-deep>footer,:host[data-appearance~=taiga] ::ng-deep>ng-component>footer,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>footer{display:flex;justify-content:flex-end;flex-wrap:wrap-reverse;gap:.75rem;margin-block-start:2rem}:host._closable ::ng-deep>header,:host._closable ::ng-deep>ng-component>header{padding-inline-end:2rem}:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>footer>button,:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>ng-component>footer>button,:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>tui-confirm>footer>button{flex:1;overflow:visible}.t-close{position:absolute;top:1rem;inset-inline-end:1rem}\n"], dependencies: [{ kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: PolymorpheusOutlet, selector: "[polymorpheusOutlet]", inputs: ["polymorpheusOutlet", "polymorpheusOutletContext"] }, { kind: "directive", type: TuiAutoFocus, selector: "[tuiAutoFocus]", inputs: ["tuiAutoFocus"] }, { kind: "directive", type: TuiButton, selector: "a[tuiButton],button[tuiButton],a[tuiIconButton],button[tuiIconButton]", inputs: ["size"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogComponent, decorators: [{
|
|
43
|
+
type: Component,
|
|
44
|
+
args: [{ standalone: true, selector: 'tui-dialog', imports: [NgIf, PolymorpheusOutlet, TuiAutoFocus, TuiButton], changeDetection: ChangeDetectionStrategy.Default, providers: [TuiDialogCloseService], hostDirectives: [TuiAnimated], host: {
|
|
45
|
+
new: '',
|
|
46
|
+
'[attr.data-appearance]': 'context.appearance',
|
|
47
|
+
'[attr.data-size]': 'context.size',
|
|
48
|
+
'[class._closable]': 'context.closable',
|
|
49
|
+
}, template: "<header\n *ngIf=\"context.label\"\n [id]=\"context.id\"\n [innerHTML]=\"context.label\"\n></header>\n\n<button\n *ngIf=\"context.closable\"\n appearance=\"neutral\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ close() }}\n</button>\n\n<ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <p [innerHTML]=\"text\"></p>\n <footer *ngIf=\"context.closable || context.dismissible\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data || 'OK' }}\n </button>\n </footer>\n</ng-container>\n", styles: [":host{position:relative;box-sizing:border-box;font:var(--tui-font-text-m);background:var(--tui-background-elevation-1);box-shadow:var(--tui-shadow-popup)}:host[data-appearance~=taiga]{max-inline-size:calc(100vw - 5rem);margin:2.5rem;padding:1.75rem;border-radius:1.5rem;--tui-from: translateY(2.5rem)}:host[data-appearance~=taiga].tui-enter,:host[data-appearance~=taiga].tui-leave{animation-name:tuiFade,tuiSlide}:host[data-appearance~=taiga][data-size=s]{inline-size:25rem;padding:1.5rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>header,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>header{font:var(--tui-font-heading-5);margin-block-end:1.25rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>p,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>p,:host[data-appearance~=taiga][data-size=s] ::ng-deep>tui-confirm>p{margin:-.75rem 0 1.25rem}:host[data-appearance~=taiga][data-size=s] ::ng-deep>footer,:host[data-appearance~=taiga][data-size=s] ::ng-deep>ng-component>footer,:host[data-appearance~=taiga][data-size=s] ::ng-deep>tui-confirm>footer{margin-block-start:1.25rem}:host[data-appearance~=taiga][data-size=m]{inline-size:37.5rem}:host[data-appearance~=taiga][data-size=l]{inline-size:50rem}:host[data-appearance~=taiga] ::ng-deep>header,:host[data-appearance~=taiga] ::ng-deep>ng-component>header{margin-block-end:1.5rem;overflow-wrap:break-word;font:var(--tui-font-heading-4)}:host[data-appearance~=taiga] ::ng-deep>header:empty,:host[data-appearance~=taiga] ::ng-deep>ng-component>header:empty{display:none}:host[data-appearance~=taiga] ::ng-deep>p,:host[data-appearance~=taiga] ::ng-deep>ng-component>p,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>p{margin:-1rem 0 1.5rem}:host[data-appearance~=taiga] ::ng-deep>p:last-child,:host[data-appearance~=taiga] ::ng-deep>ng-component>p:last-child,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>p:last-child{margin-block-end:0}:host[data-appearance~=taiga] ::ng-deep>footer,:host[data-appearance~=taiga] ::ng-deep>ng-component>footer,:host[data-appearance~=taiga] ::ng-deep>tui-confirm>footer{display:flex;justify-content:flex-end;flex-wrap:wrap-reverse;gap:.75rem;margin-block-start:2rem}:host._closable ::ng-deep>header,:host._closable ::ng-deep>ng-component>header{padding-inline-end:2rem}:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>footer>button,:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>ng-component>footer>button,:host-context(tui-root._mobile)[data-appearance~=taiga] ::ng-deep>tui-confirm>footer>button{flex:1;overflow:visible}.t-close{position:absolute;top:1rem;inset-inline-end:1rem}\n"] }]
|
|
50
|
+
}] });
|
|
51
|
+
|
|
52
|
+
const TUI_DIALOG_DEFAULT_OPTIONS = {
|
|
53
|
+
appearance: 'taiga',
|
|
54
|
+
size: 'm',
|
|
55
|
+
required: false,
|
|
56
|
+
closable: true,
|
|
57
|
+
dismissible: true,
|
|
58
|
+
label: '',
|
|
59
|
+
data: undefined,
|
|
60
|
+
};
|
|
61
|
+
const [TUI_DIALOG_OPTIONS, tuiDialogOptionsProvider] = tuiCreateOptions(TUI_DIALOG_DEFAULT_OPTIONS);
|
|
62
|
+
|
|
63
|
+
class TuiDialogService extends TuiPopoverService {
|
|
64
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
65
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogService, providedIn: 'root', useFactory: () => new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)) }); }
|
|
66
|
+
}
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialogService, decorators: [{
|
|
68
|
+
type: Injectable,
|
|
69
|
+
args: [{
|
|
70
|
+
providedIn: 'root',
|
|
71
|
+
useFactory: () => new TuiDialogService(TUI_DIALOGS, TuiDialogComponent, inject(TUI_DIALOG_OPTIONS)),
|
|
72
|
+
}]
|
|
73
|
+
}] });
|
|
74
|
+
|
|
75
|
+
class TuiDialog extends TuiPopoverDirective {
|
|
76
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialog, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
77
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.12", type: TuiDialog, isStandalone: true, selector: "ng-template[tuiDialog]", inputs: { options: ["tuiDialogOptions", "options"], open: ["tuiDialog", "open"] }, outputs: { openChange: "tuiDialogChange" }, providers: [tuiAsPopover(TuiDialogService)], usesInheritance: true, ngImport: i0 }); }
|
|
78
|
+
}
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TuiDialog, decorators: [{
|
|
80
|
+
type: Directive,
|
|
81
|
+
args: [{
|
|
82
|
+
standalone: true,
|
|
83
|
+
selector: 'ng-template[tuiDialog]',
|
|
84
|
+
inputs: ['options: tuiDialogOptions', 'open: tuiDialog'],
|
|
85
|
+
outputs: ['openChange: tuiDialogChange'],
|
|
86
|
+
providers: [tuiAsPopover(TuiDialogService)],
|
|
87
|
+
}]
|
|
88
|
+
}] });
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Generated bundle index. Do not edit.
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
export { TUI_DIALOG_DEFAULT_OPTIONS, TUI_DIALOG_OPTIONS, TuiDialog, TuiDialogComponent, TuiDialogService, tuiDialogOptionsProvider };
|
|
95
|
+
//# sourceMappingURL=taiga-ui-experimental-components-dialog.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-components-dialog.mjs","sources":["../../../projects/experimental/components/dialog/dialog.component.ts","../../../projects/experimental/components/dialog/dialog.template.html","../../../projects/experimental/components/dialog/dialog.options.ts","../../../projects/experimental/components/dialog/dialog.service.ts","../../../projects/experimental/components/dialog/dialog.directive.ts","../../../projects/experimental/components/dialog/taiga-ui-experimental-components-dialog.ts"],"sourcesContent":["import {NgIf} from '@angular/common';\nimport {ChangeDetectionStrategy, Component, 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 {TUI_CLOSE_WORD, TUI_COMMON_ICONS} from '@taiga-ui/core/tokens';\nimport {injectContext, PolymorpheusOutlet} 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} from './dialog.options';\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 standalone: true,\n selector: 'tui-dialog',\n imports: [NgIf, PolymorpheusOutlet, TuiAutoFocus, TuiButton],\n templateUrl: './dialog.template.html',\n styleUrls: ['./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 new: '',\n '[attr.data-appearance]': 'context.appearance',\n '[attr.data-size]': 'context.size',\n '[class._closable]': 'context.closable',\n },\n})\nexport class TuiDialogComponent<O, I> {\n protected readonly close$ = new Subject<void>();\n protected readonly close = toSignal(inject(TUI_CLOSE_WORD));\n protected readonly icons = inject(TUI_COMMON_ICONS);\n protected readonly context = injectContext<TuiPopover<TuiDialogOptions<I>, O>>();\n\n protected readonly sub = 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 if (this.context.required) {\n this.context.$implicit.error(REQUIRED_ERROR);\n } else {\n this.context.$implicit.complete();\n }\n });\n}\n","<header\n *ngIf=\"context.label\"\n [id]=\"context.id\"\n [innerHTML]=\"context.label\"\n></header>\n\n<button\n *ngIf=\"context.closable\"\n appearance=\"neutral\"\n size=\"s\"\n tuiIconButton\n type=\"button\"\n class=\"t-close\"\n [iconStart]=\"icons.close\"\n [style.border-radius.%]=\"100\"\n (click)=\"close$.next()\"\n (mousedown.prevent.zoneless)=\"(0)\"\n>\n {{ close() }}\n</button>\n\n<ng-container *polymorpheusOutlet=\"context.content as text; context: context\">\n <p [innerHTML]=\"text\"></p>\n <footer *ngIf=\"context.closable || context.dismissible\">\n <button\n size=\"m\"\n tuiAutoFocus\n tuiButton\n type=\"button\"\n (click)=\"context.$implicit.complete()\"\n >\n {{ context.data || 'OK' }}\n </button>\n </footer>\n</ng-container>\n","import {type TuiPopoverContext} from '@taiga-ui/cdk/services';\nimport {tuiCreateOptions} from '@taiga-ui/cdk/utils/di';\nimport {type TuiSizeL, type TuiSizeS} from '@taiga-ui/core/types';\nimport {type Observable} from 'rxjs';\n\n/**\n * Options for a dialog\n *\n * appearance - data-appearance attribute of the dialog ('taiga' by default)\n * closable - show close button (true by default)\n * data - arbitrary data for dialog\n * dismissible - close dialog by Esc button or click on overlay (true by default)\n * label - string title for the dialog ('' by default)\n * required - dismissing or closing dialog by X button throws (false by default)\n * size - size of the dialog ('m' by default)\n */\nexport interface TuiDialogOptions<I> {\n readonly appearance: string;\n readonly closable: Observable<boolean> | boolean;\n readonly data: I extends void ? undefined : I;\n readonly dismissible: Observable<boolean> | boolean;\n readonly label: string;\n readonly required: boolean;\n readonly size: TuiSizeL | TuiSizeS;\n}\n\nexport interface TuiDialogContext<O = void, I = undefined>\n extends TuiPopoverContext<O>,\n TuiDialogOptions<I> {}\n\nexport const TUI_DIALOG_DEFAULT_OPTIONS: TuiDialogOptions<void> = {\n appearance: 'taiga',\n size: 'm',\n required: false,\n closable: true,\n dismissible: true,\n label: '',\n data: undefined,\n};\n\nexport const [TUI_DIALOG_OPTIONS, tuiDialogOptionsProvider] = tuiCreateOptions(\n 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 {TUI_DIALOG_OPTIONS, type TuiDialogOptions} from './dialog.options';\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.options';\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA0BA,MAAM,cAAc,GAAG,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;AAElE,SAAS,YAAY,CAAI,aAAgC,EAAA;AACrD,IAAA,OAAO,YAAY,CAAC,aAAa,CAAC,GAAG,aAAa,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC;AAC3E,CAAC;AAED,MAkBa,kBAAkB,CAAA;AAlB/B,IAAA,WAAA,GAAA;AAmBuB,QAAA,IAAA,CAAA,MAAM,GAAG,IAAI,OAAO,EAAQ,CAAC;QAC7B,IAAK,CAAA,KAAA,GAAG,QAAQ,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;AACzC,QAAA,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,gBAAgB,CAAC,CAAC;QACjC,IAAO,CAAA,OAAA,GAAG,aAAa,EAAsC,CAAC;AAE9D,QAAA,IAAA,CAAA,GAAG,GAAG,KAAK,CAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EACtE,MAAM,CAAC,qBAAqB,CAAC,CAAC,IAAI,CAC9B,UAAU,CAAC,MAAM,YAAY,CAAC,IAAI,CAAC,OAAO,CA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A,EAAA,CAAA;kBAPrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,MAAM,EAAE,CAAC,2BAA2B,EAAE,iBAAiB,CAAC;oBACxD,OAAO,EAAE,CAAC,6BAA6B,CAAC;AACxC,oBAAA,SAAS,EAAE,CAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;AAC9C,iBAAA,CAAA;;;ACbD;;AAEG;;;;"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from '@taiga-ui/experimental/components/accordion';
|
|
2
|
+
export * from '@taiga-ui/experimental/components/dialog';
|
|
2
3
|
export * from '@taiga-ui/experimental/components/expand';
|
|
3
4
|
export * from '@taiga-ui/experimental/components/hint';
|
|
4
5
|
export * from '@taiga-ui/experimental/components/input-phone-international';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"taiga-ui-experimental-components.mjs","sources":["../../../projects/experimental/components/taiga-ui-experimental-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"taiga-ui-experimental-components.mjs","sources":["../../../projects/experimental/components/taiga-ui-experimental-components.ts"],"sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;;AAEG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/experimental",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.50.0-canary.41052a9",
|
|
4
4
|
"description": "A package with Taiga UI experimental components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"angular",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"peerDependencies": {
|
|
14
14
|
"@angular/common": ">=16.0.0",
|
|
15
15
|
"@angular/core": ">=16.0.0",
|
|
16
|
-
"@taiga-ui/addon-commerce": "^4.
|
|
17
|
-
"@taiga-ui/cdk": "^4.
|
|
18
|
-
"@taiga-ui/core": "^4.
|
|
19
|
-
"@taiga-ui/kit": "^4.
|
|
16
|
+
"@taiga-ui/addon-commerce": "^4.50.0",
|
|
17
|
+
"@taiga-ui/cdk": "^4.50.0",
|
|
18
|
+
"@taiga-ui/core": "^4.50.0",
|
|
19
|
+
"@taiga-ui/kit": "^4.50.0",
|
|
20
20
|
"@taiga-ui/polymorpheus": "^4.9.0",
|
|
21
21
|
"rxjs": ">=7.0.0"
|
|
22
22
|
},
|
|
@@ -44,6 +44,12 @@
|
|
|
44
44
|
"esm": "./esm2022/components/accordion/taiga-ui-experimental-components-accordion.mjs",
|
|
45
45
|
"default": "./fesm2022/taiga-ui-experimental-components-accordion.mjs"
|
|
46
46
|
},
|
|
47
|
+
"./components/dialog": {
|
|
48
|
+
"types": "./components/dialog/index.d.ts",
|
|
49
|
+
"esm2022": "./esm2022/components/dialog/taiga-ui-experimental-components-dialog.mjs",
|
|
50
|
+
"esm": "./esm2022/components/dialog/taiga-ui-experimental-components-dialog.mjs",
|
|
51
|
+
"default": "./fesm2022/taiga-ui-experimental-components-dialog.mjs"
|
|
52
|
+
},
|
|
47
53
|
"./components/expand": {
|
|
48
54
|
"types": "./components/expand/index.d.ts",
|
|
49
55
|
"esm2022": "./esm2022/components/expand/taiga-ui-experimental-components-expand.mjs",
|