@praxisui/dialog 1.0.0-beta.4 → 1.0.0-beta.41
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 +52 -0
- package/fesm2022/praxisui-dialog.mjs +173 -26
- package/fesm2022/praxisui-dialog.mjs.map +1 -1
- package/index.d.ts +25 -2
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
> Unified dialog for Praxis built on Angular CDK. Provides a service API (MatDialog-like) and a tag mode (`<praxis-dialog>`) with theming, CSS-only animations, accessibility and metadata integration.
|
|
4
4
|
|
|
5
|
+
## 🔰 Exemplos / Quickstart
|
|
6
|
+
|
|
7
|
+
Para ver esta biblioteca em funcionamento em uma aplicação completa, utilize o projeto de exemplo (Quickstart):
|
|
8
|
+
|
|
9
|
+
- Repositório: https://github.com/codexrodrigues/praxis-ui-quickstart
|
|
10
|
+
- O Quickstart demonstra a integração das bibliotecas `@praxisui/*` em um app Angular, incluindo instalação, configuração e uso em telas reais.
|
|
11
|
+
|
|
5
12
|
## Install
|
|
6
13
|
|
|
7
14
|
```bash
|
|
@@ -48,6 +55,32 @@ this.dialog.open(CustomerFormComponent, { width: 720, data: customer });
|
|
|
48
55
|
this.dialog.open(this.templateRef, { ariaRole: 'alertdialog' });
|
|
49
56
|
```
|
|
50
57
|
|
|
58
|
+
## Global Actions Integration
|
|
59
|
+
|
|
60
|
+
Para integrar com o sistema de ações globais do Praxis:
|
|
61
|
+
|
|
62
|
+
```ts
|
|
63
|
+
import { providePraxisDialogGlobalActions } from '@praxisui/dialog';
|
|
64
|
+
|
|
65
|
+
providers: [
|
|
66
|
+
providePraxisDialogGlobalActions(),
|
|
67
|
+
]
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Payload esperado para `dialog.open`
|
|
71
|
+
|
|
72
|
+
```ts
|
|
73
|
+
{
|
|
74
|
+
componentId: 'praxis-dynamic-page',
|
|
75
|
+
title: 'Configurar',
|
|
76
|
+
inputs: { editModeEnabled: true },
|
|
77
|
+
data: { pageId: 'clientes-novo' },
|
|
78
|
+
size: { width: '860px', height: '640px' }
|
|
79
|
+
}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
O `componentId` é resolvido via `ComponentMetadataRegistry` (preferencial) ou via registry interno do dialog.
|
|
83
|
+
|
|
51
84
|
### Tag (embedded)
|
|
52
85
|
|
|
53
86
|
```html
|
|
@@ -96,6 +129,25 @@ providers: [{
|
|
|
96
129
|
this.dialog.openByRegistry('CustomerForm', { width: 720 });
|
|
97
130
|
```
|
|
98
131
|
|
|
132
|
+
## Internal Example (Long Content)
|
|
133
|
+
|
|
134
|
+
For local validation of scroll behavior, you can register and open a built-in long content example:
|
|
135
|
+
|
|
136
|
+
```ts
|
|
137
|
+
import { providePraxisDialogExamples, PRAXIS_DIALOG_EXAMPLE_LONG_CONTENT } from '@praxisui/dialog';
|
|
138
|
+
|
|
139
|
+
providers: [providePraxisDialogExamples()]
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
```ts
|
|
143
|
+
this.dialog.openByRegistry(PRAXIS_DIALOG_EXAMPLE_LONG_CONTENT, {
|
|
144
|
+
title: 'Long content example',
|
|
145
|
+
actions: [
|
|
146
|
+
{ text: 'Close', role: 'primary', close: true },
|
|
147
|
+
],
|
|
148
|
+
});
|
|
149
|
+
```
|
|
150
|
+
|
|
99
151
|
## Accessibility
|
|
100
152
|
|
|
101
153
|
- `role="dialog|alertdialog"`, `aria-modal`, `aria-*` inputs
|
|
@@ -1,17 +1,23 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Directive, EventEmitter, inject, HostBinding, ContentChild, ViewChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, Injectable, ApplicationRef, Injector, TemplateRef } from '@angular/core';
|
|
3
|
-
import { Subject } from 'rxjs';
|
|
2
|
+
import { InjectionToken, Directive, EventEmitter, inject, HostBinding, ContentChild, ViewChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, Injectable, ApplicationRef, Injector, TemplateRef, ENVIRONMENT_INITIALIZER } from '@angular/core';
|
|
3
|
+
import { Subject, firstValueFrom } from 'rxjs';
|
|
4
4
|
import * as i1 from '@angular/common';
|
|
5
5
|
import { CommonModule } from '@angular/common';
|
|
6
6
|
import * as i2 from '@angular/cdk/portal';
|
|
7
7
|
import { PortalModule, CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
|
|
8
8
|
import * as i3 from '@angular/cdk/a11y';
|
|
9
9
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
10
|
+
import * as i4 from '@angular/material/icon';
|
|
11
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
12
|
+
import { PraxisIconDirective, GlobalConfigService, GLOBAL_DIALOG_SERVICE, ComponentMetadataRegistry } from '@praxisui/core';
|
|
10
13
|
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
11
14
|
import * as i2$1 from '@angular/forms';
|
|
12
15
|
import { FormsModule } from '@angular/forms';
|
|
13
16
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
14
|
-
import
|
|
17
|
+
import * as i3$1 from '@angular/material/form-field';
|
|
18
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
19
|
+
import * as i4$1 from '@angular/material/input';
|
|
20
|
+
import { MatInputModule } from '@angular/material/input';
|
|
15
21
|
|
|
16
22
|
const PRAXIS_DIALOG_DATA = new InjectionToken('PRAXIS_DIALOG_DATA');
|
|
17
23
|
const PRAXIS_DIALOG_I18N = new InjectionToken('PRAXIS_DIALOG_I18N', {
|
|
@@ -44,6 +50,7 @@ class PraxisDialogRef {
|
|
|
44
50
|
_backdropClick = new Subject();
|
|
45
51
|
_keydownEvents = new Subject();
|
|
46
52
|
componentInstance;
|
|
53
|
+
componentRef;
|
|
47
54
|
constructor(overlayRef) {
|
|
48
55
|
this.overlayRef = overlayRef;
|
|
49
56
|
}
|
|
@@ -395,6 +402,11 @@ class PraxisDialogComponent {
|
|
|
395
402
|
set('--pdx-dialog-content-padding', s.contentPadding);
|
|
396
403
|
set('--pdx-dialog-headline-padding', s.headlinePadding);
|
|
397
404
|
set('--pdx-dialog-with-actions-content-padding', s.withActionsContentPadding);
|
|
405
|
+
set('--pdx-dialog-border', s.containerBorderColor);
|
|
406
|
+
set('--pdx-dialog-backdrop', s.backdropColor);
|
|
407
|
+
set('--pdx-dialog-action-radius', s.actionButtonRadius);
|
|
408
|
+
set('--pdx-dialog-action-min-height', s.actionButtonMinHeight);
|
|
409
|
+
set('--pdx-dialog-action-padding', s.actionButtonPadding);
|
|
398
410
|
// Color
|
|
399
411
|
set('--pdx-dialog-container-color', s.containerColor);
|
|
400
412
|
set('--pdx-dialog-subhead-color', s.subheadColor);
|
|
@@ -476,11 +488,11 @@ class PraxisDialogComponent {
|
|
|
476
488
|
}
|
|
477
489
|
}
|
|
478
490
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: PraxisDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
479
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.4", type: PraxisDialogComponent, isStandalone: true, selector: "praxis-dialog", inputs: { title: "title", actions: "actions", actionsLayout: "actionsLayout", animation: "animation", open: "open", width: "width", height: "height", minWidth: "minWidth", maxWidth: "maxWidth", minHeight: "minHeight", maxHeight: "maxHeight", themeColor: "themeColor", disableClose: "disableClose", hasBackdrop: "hasBackdrop", overlayMode: "overlayMode", zIndex: "zIndex", panelClass: "panelClass", backdropClass: "backdropClass", position: "position", autoFocusedElement: "autoFocusedElement", autoFocus: "autoFocus", restoreFocus: "restoreFocus", id: "id", ariaRole: "ariaRole", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", ariaDescribedBy: "ariaDescribedBy", styles: "styles", titleIcon: "titleIcon" }, outputs: { action: "action", close: "close", opened: "opened", afterClosed: "afterClosed" }, host: { properties: { "class": "this.hostClass", "attr.tabindex": "this.tabindex" } }, queries: [{ propertyName: "titleTpl", first: true, predicate: PraxisDialogTitleDirective, descendants: true, read: PraxisDialogTitleDirective }, { propertyName: "actionsTpl", first: true, predicate: PraxisDialogActionsDirective, descendants: true, read: PraxisDialogActionsDirective }, { propertyName: "contentTpl", first: true, predicate: PraxisDialogContentDirective, descendants: true, read: PraxisDialogContentDirective }], viewQueries: [{ propertyName: "contentHost", first: true, predicate: CdkPortalOutlet, descendants: true }, { propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "@let _titleId = (id ?? 'praxis-dialog') + '-title';\n\n<ng-template #panelHeader>\n <div class=\"pdx-dialog__title\" @if (titleTpl?.templateRef || title || titleIcon)>\n @if (titleTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"titleTpl!.templateRef\"></ng-container>\n } @else {\n <div class=\"pdx-dialog__title-row\">\n <span *ngIf=\"titleIcon\" class=\"material-icons pdx-dialog__title-icon\" aria-hidden=\"true\">{{ titleIcon }}</span>\n <h2 class=\"pdx-dialog__title-text\" [attr.id]=\"_titleId\">{{ title }}</h2>\n </div>\n }\n </div>\n </ng-template>\n\n<ng-template #panelActions>\n <div class=\"pdx-dialog__actions\" [class.is-stretched]=\"actionsLayout==='stretched'\">\n @if (actionsTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"actionsTpl!.templateRef\"></ng-container>\n } @else {\n @for (a of actions; track a?.id ?? a) {\n <button\n type=\"button\"\n class=\"pdx-dialog__action-btn\"\n [attr.data-testid]=\"a.id || null\"\n [ngClass]=\"a.cssClass\"\n (click)=\"onActionClick(a)\"\n [attr.cdkFocusInitial]=\"a.role==='primary' && ariaRole==='alertdialog' ? '' : null\"\n >\n <span *ngIf=\"a.icon\" class=\"material-icons\">{{ a.icon }}</span>\n {{ a.text }}\n </button>\n }\n }\n </div>\n</ng-template>\n\n@if (overlayMode) {\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n} @else {\n <div class=\"pdx-dialog-overlay\" [class.has-backdrop]=\"hasBackdrop\" [hidden]=\"!isDisplayed\" (click)=\"onBackdrop($event)\" [ngClass]=\"backdropClass\" [style.z-index]=\"zIndex\">\n <div class=\"pdx-dialog-shell\" (click)=\"$event.stopPropagation()\">\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [style.top]=\"position?.top || null\"\n [style.bottom]=\"position?.bottom || null\"\n [style.left]=\"position?.left || null\"\n [style.right]=\"position?.right || null\"\n [class.pdx-has-position]=\"position\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n </div>\n </div>\n}\n", styles: [".pdx-dialog-host{--pdx-dialog-bg: var(--pdx-dialog-bg, #fff);--pdx-dialog-surface: var(--pdx-dialog-surface, #fff);--pdx-dialog-border: var(--pdx-dialog-border, rgba(0, 0, 0, .12));--pdx-dialog-title-fg: var(--pdx-dialog-title-fg, #111);--pdx-dialog-elevation: var(--pdx-dialog-elevation, 24)}.pdx-dialog-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1000;background:transparent}.pdx-dialog-overlay.has-backdrop{background:#00000059}.pdx-dialog-shell{display:contents}.pdx-dialog.pdx-has-position{position:absolute}.pdx-dialog{background:var(--pdx-dialog-container-color, var(--pdx-dialog-surface));color:#111;border:1px solid var(--pdx-dialog-border);border-radius:var(--pdx-dialog-shape, 8px);box-shadow:var(--pdx-dialog-elevation-shadow, 0 2px 8px rgba(0, 0, 0, .2));max-width:var(--pdx-dialog-max-width, 90vw);max-height:var(--pdx-dialog-max-height, 80vh);display:flex;flex-direction:column;min-width:var(--pdx-dialog-min-width, 280px);outline:0}.pdx-dialog__title{padding:var(--pdx-dialog-headline-padding, 12px 16px);border-bottom:1px solid var(--pdx-dialog-border);color:var(--pdx-dialog-subhead-color, var(--pdx-dialog-title-fg))}.pdx-dialog__title-row{display:flex;align-items:center;gap:8px}.pdx-dialog__title-icon{font-size:20px;line-height:1;opacity:.87}.pdx-dialog__title-text{margin:0;font-family:var(--pdx-dialog-subhead-font, inherit);line-height:var(--pdx-dialog-subhead-line-height, 1.4);font-size:var(--pdx-dialog-subhead-size, 16px);letter-spacing:var(--pdx-dialog-subhead-tracking, normal);font-weight:var(--pdx-dialog-subhead-weight, 600)}.pdx-dialog__content{padding:var(--pdx-dialog-content-padding, 16px);overflow:auto;color:var(--pdx-dialog-supporting-text-color, inherit);font-family:var(--pdx-dialog-supporting-text-font, inherit);line-height:var(--pdx-dialog-supporting-text-line-height, 1.4);font-size:var(--pdx-dialog-supporting-text-size, 14px);letter-spacing:var(--pdx-dialog-supporting-text-tracking, normal);font-weight:var(--pdx-dialog-supporting-text-weight, 400)}.pdx-dialog.has-actions .pdx-dialog__content{padding-bottom:var(--pdx-dialog-with-actions-content-padding, var(--pdx-dialog-content-padding, 16px))}.pdx-dialog__actions{display:flex;gap:8px;padding:var(--pdx-dialog-actions-padding, 12px 16px);border-top:1px solid var(--pdx-dialog-border);justify-content:flex-end}.pdx-dialog__actions.is-stretched{justify-content:stretch}.pdx-dialog__action-btn{appearance:none;border:1px solid var(--pdx-dialog-border);background:#f7f7f7;border-radius:4px;padding:6px 12px;cursor:pointer}.pdx-dialog--primary .pdx-dialog__title{background:#1976d2;color:#fff;border-bottom-color:#0003}.pdx-dialog--dark{background:#222;color:#f2f2f2}.pdx-dialog{transform-origin:center;transition-property:transform,opacity;transition-duration:var(--pdx-dialog-anim-duration, .3s);transition-timing-function:var(--pdx-dialog-anim-ease, cubic-bezier(.2, 0, 0, 1))}.pdx-dialog.pdx-anim-fade{opacity:1}.pdx-dialog.pdx-anim-zoom{transform:scale(1)}.pdx-dialog.pdx-anim-translate-up,.pdx-dialog.pdx-anim-translate-down{transform:translateY(0)}.pdx-dialog.pdx-anim-translate-left,.pdx-dialog.pdx-anim-translate-right{transform:translate(0)}.pdx-dialog.pdx-state-opening.pdx-anim-fade{opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-zoom{transform:scale(.96);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-up{transform:translateY(-16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-down{transform:translateY(16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-left{transform:translate(-16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-right{transform:translate(16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-fade{opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-zoom{transform:scale(.96);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-up{transform:translateY(-16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-down{transform:translateY(16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-left{transform:translate(-16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-right{transform:translate(16px);opacity:0}@media (prefers-reduced-motion: reduce){.pdx-dialog{transition:none!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i3.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
491
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.4", type: PraxisDialogComponent, isStandalone: true, selector: "praxis-dialog", inputs: { title: "title", actions: "actions", actionsLayout: "actionsLayout", animation: "animation", open: "open", width: "width", height: "height", minWidth: "minWidth", maxWidth: "maxWidth", minHeight: "minHeight", maxHeight: "maxHeight", themeColor: "themeColor", disableClose: "disableClose", hasBackdrop: "hasBackdrop", overlayMode: "overlayMode", zIndex: "zIndex", panelClass: "panelClass", backdropClass: "backdropClass", position: "position", autoFocusedElement: "autoFocusedElement", autoFocus: "autoFocus", restoreFocus: "restoreFocus", id: "id", ariaRole: "ariaRole", ariaLabel: "ariaLabel", ariaLabelledBy: "ariaLabelledBy", ariaDescribedBy: "ariaDescribedBy", styles: "styles", titleIcon: "titleIcon" }, outputs: { action: "action", close: "close", opened: "opened", afterClosed: "afterClosed" }, host: { properties: { "class": "this.hostClass", "attr.tabindex": "this.tabindex" } }, queries: [{ propertyName: "titleTpl", first: true, predicate: PraxisDialogTitleDirective, descendants: true, read: PraxisDialogTitleDirective }, { propertyName: "actionsTpl", first: true, predicate: PraxisDialogActionsDirective, descendants: true, read: PraxisDialogActionsDirective }, { propertyName: "contentTpl", first: true, predicate: PraxisDialogContentDirective, descendants: true, read: PraxisDialogContentDirective }], viewQueries: [{ propertyName: "contentHost", first: true, predicate: CdkPortalOutlet, descendants: true }, { propertyName: "panelEl", first: true, predicate: ["panel"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "@let _titleId = (id ?? 'praxis-dialog') + '-title';\n\n<ng-template #panelHeader>\n <div class=\"pdx-dialog__title\" @if (titleTpl?.templateRef || title || titleIcon)>\n @if (titleTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"titleTpl!.templateRef\"></ng-container>\n } @else {\n <div class=\"pdx-dialog__title-row\">\n <mat-icon *ngIf=\"titleIcon\" class=\"pdx-dialog__title-icon\" [praxisIcon]=\"titleIcon\" aria-hidden=\"true\"></mat-icon>\n <h2 class=\"pdx-dialog__title-text\" [attr.id]=\"_titleId\">{{ title }}</h2>\n </div>\n }\n </div>\n </ng-template>\n\n<ng-template #panelActions>\n <div class=\"pdx-dialog__actions\" [class.is-stretched]=\"actionsLayout==='stretched'\">\n @if (actionsTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"actionsTpl!.templateRef\"></ng-container>\n } @else {\n @for (a of actions; track a?.id ?? a) {\n <button\n type=\"button\"\n class=\"pdx-dialog__action-btn\"\n [attr.data-testid]=\"a.id || null\"\n [attr.data-role]=\"a.role || null\"\n [attr.data-theme]=\"a.themeColor || null\"\n [attr.data-fill]=\"a.fillMode || null\"\n [ngClass]=\"a.cssClass\"\n (click)=\"onActionClick(a)\"\n [attr.cdkFocusInitial]=\"a.role==='primary' && ariaRole==='alertdialog' ? '' : null\"\n >\n @if (a.icon) {\n <mat-icon [praxisIcon]=\"a.icon\"></mat-icon>\n } @else if (a.svgIcon) {\n <mat-icon [svgIcon]=\"a.svgIcon\"></mat-icon>\n }\n {{ a.text }}\n </button>\n }\n }\n </div>\n</ng-template>\n\n@if (overlayMode) {\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n} @else {\n <div class=\"pdx-dialog-overlay\" [class.has-backdrop]=\"hasBackdrop\" [hidden]=\"!isDisplayed\" (click)=\"onBackdrop($event)\" [ngClass]=\"backdropClass\" [style.z-index]=\"zIndex\">\n <div class=\"pdx-dialog-shell\" (click)=\"$event.stopPropagation()\">\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [style.top]=\"position?.top || null\"\n [style.bottom]=\"position?.bottom || null\"\n [style.left]=\"position?.left || null\"\n [style.right]=\"position?.right || null\"\n [class.pdx-has-position]=\"position\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n </div>\n </div>\n}\n", styles: ["@charset \"UTF-8\";.pdx-dialog-host{--pdx-dialog-bg: var(--md-sys-color-surface);--pdx-dialog-surface: var(--md-sys-color-surface-container-high);--pdx-dialog-border: var(--md-sys-color-outline-variant);--pdx-dialog-title-fg: var(--md-sys-color-on-surface);--pdx-dialog-elevation: var(--mat-elevation-level4)}.pdx-dialog-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1000;background:transparent}.pdx-dialog-overlay.has-backdrop{background:var(--pdx-dialog-backdrop, rgba(0, 0, 0, .6))}.pdx-dialog-shell{display:contents}.pdx-dialog.pdx-has-position{position:absolute}.pdx-dialog{background:var(--pdx-dialog-container-color, var(--pdx-dialog-surface));color:var(--md-sys-color-on-surface, #111);border:1px solid var(--pdx-dialog-border);border-radius:var(--pdx-dialog-shape, 16px);box-shadow:var(--pdx-dialog-elevation-shadow, var(--pdx-dialog-elevation));max-width:var(--pdx-dialog-max-width, 90vw);max-height:var(--pdx-dialog-max-height, 80vh);display:flex;flex-direction:column;min-width:var(--pdx-dialog-min-width, 280px);outline:0}.pdx-dialog__title{padding:var(--pdx-dialog-headline-padding, 12px 24px 10px);border-bottom:1px solid var(--pdx-dialog-border);color:var(--pdx-dialog-subhead-color, var(--pdx-dialog-title-fg));background:var(--pdx-dialog-title-bg, transparent);flex:0 0 auto}.pdx-dialog__title-row{display:flex;gap:10px}.pdx-dialog__title-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;font-size:20px;line-height:1;opacity:.87}.pdx-dialog__title-text{margin:0;font-family:var(--pdx-dialog-subhead-font, inherit);font-size:var(--pdx-dialog-subhead-size, 16px);letter-spacing:var(--pdx-dialog-subhead-tracking, normal);font-weight:var(--pdx-dialog-subhead-weight, 600);line-height:1.2}.pdx-dialog__content{padding:var(--pdx-dialog-content-padding, 16px);overflow:auto;flex:1 1 auto;min-height:0;color:var(--pdx-dialog-supporting-text-color, inherit);font-family:var(--pdx-dialog-supporting-text-font, inherit);line-height:var(--pdx-dialog-supporting-text-line-height, 1.4);font-size:var(--pdx-dialog-supporting-text-size, 14px);letter-spacing:var(--pdx-dialog-supporting-text-tracking, normal);font-weight:var(--pdx-dialog-supporting-text-weight, 400)}.pdx-dialog.has-actions .pdx-dialog__content{padding-bottom:var(--pdx-dialog-with-actions-content-padding, var(--pdx-dialog-content-padding, 16px))}.pdx-dialog__actions{display:flex;gap:8px;padding:var(--pdx-dialog-actions-padding, 12px 24px 16px);border-top:1px solid var(--pdx-dialog-border);justify-content:flex-end;align-items:center;background:var(--pdx-dialog-actions-bg, transparent);flex:0 0 auto}.pdx-dialog__actions.is-stretched{justify-content:stretch}.pdx-dialog__actions.is-stretched .pdx-dialog__action-btn{flex:1 1 0;justify-content:center}.pdx-dialog__action-btn{appearance:none;border:1px solid var(--pdx-dialog-border);background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface);border-radius:var(--pdx-dialog-action-radius, 8px);padding:var(--pdx-dialog-action-padding, 0 14px);min-height:var(--pdx-dialog-action-min-height, 36px);cursor:pointer;display:inline-flex;align-items:center;gap:8px;line-height:1;transition:background-color .18s ease,border-color .18s ease,color .18s ease}.pdx-dialog__action-btn:hover{background:var(--md-sys-color-surface-container)}.pdx-dialog__action-btn:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.pdx-dialog__action-btn:disabled{opacity:.6;cursor:not-allowed}.pdx-dialog__action-btn[data-role=primary]:not([data-fill]),.pdx-dialog__action-btn[data-fill=solid]{background:var(--md-sys-color-primary);border-color:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}.pdx-dialog__action-btn[data-role=primary]:not([data-fill]):hover,.pdx-dialog__action-btn[data-fill=solid]:hover{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);border-color:var(--md-sys-color-primary-container)}.pdx-dialog__action-btn[data-role=danger]:not([data-fill]),.pdx-dialog__action-btn[data-fill=solid][data-theme=warn],.pdx-dialog__action-btn[data-theme=warn][data-fill=solid]{background:var(--md-sys-color-error);border-color:var(--md-sys-color-error);color:var(--md-sys-color-on-error)}.pdx-dialog__action-btn[data-role=danger]:not([data-fill]):hover,.pdx-dialog__action-btn[data-fill=solid][data-theme=warn]:hover,.pdx-dialog__action-btn[data-theme=warn][data-fill=solid]:hover{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);border-color:var(--md-sys-color-error-container)}.pdx-dialog__action-btn[data-fill=solid][data-theme=accent],.pdx-dialog__action-btn[data-theme=accent][data-fill=solid]{background:var(--md-sys-color-secondary);border-color:var(--md-sys-color-secondary);color:var(--md-sys-color-on-secondary)}.pdx-dialog__action-btn[data-fill=solid][data-theme=accent]:hover,.pdx-dialog__action-btn[data-theme=accent][data-fill=solid]:hover{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:var(--md-sys-color-secondary-container)}.pdx-dialog__action-btn[data-fill=outline]{background:transparent;color:var(--md-sys-color-on-surface)}.pdx-dialog__action-btn[data-fill=outline][data-theme=primary],.pdx-dialog__action-btn[data-fill=flat][data-theme=primary]{color:var(--md-sys-color-primary);border-color:var(--md-sys-color-primary)}.pdx-dialog__action-btn[data-fill=outline][data-theme=accent],.pdx-dialog__action-btn[data-fill=flat][data-theme=accent]{color:var(--md-sys-color-secondary);border-color:var(--md-sys-color-secondary)}.pdx-dialog__action-btn[data-fill=outline][data-theme=warn],.pdx-dialog__action-btn[data-fill=flat][data-theme=warn]{color:var(--md-sys-color-error);border-color:var(--md-sys-color-error)}.pdx-dialog__action-btn[data-fill=flat]{background:transparent;border-color:transparent;color:var(--md-sys-color-primary)}.pdx-dialog__action-btn .mat-icon{font-size:20px;width:20px;height:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center}.pdx-dialog--primary .pdx-dialog__title{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);border-bottom-color:var(--md-sys-color-outline-variant)}.pdx-dialog--dark{background:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface)}.pdx-dialog{transform-origin:center;transition-property:transform,opacity;transition-duration:var(--pdx-dialog-anim-duration, .3s);transition-timing-function:var(--pdx-dialog-anim-ease, cubic-bezier(.2, 0, 0, 1))}.pdx-dialog.pdx-anim-fade{opacity:1}.pdx-dialog.pdx-anim-zoom{transform:scale(1)}.pdx-dialog.pdx-anim-translate-up,.pdx-dialog.pdx-anim-translate-down{transform:translateY(0)}.pdx-dialog.pdx-anim-translate-left,.pdx-dialog.pdx-anim-translate-right{transform:translate(0)}.pdx-dialog.pdx-state-opening.pdx-anim-fade{opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-zoom{transform:scale(.96);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-up{transform:translateY(-16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-down{transform:translateY(16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-left{transform:translate(-16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-right{transform:translate(16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-fade{opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-zoom{transform:scale(.96);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-up{transform:translateY(-16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-down{transform:translateY(16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-left{transform:translate(-16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-right{transform:translate(16px);opacity:0}@media(prefers-reduced-motion:reduce){.pdx-dialog{transition:none!important}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: PortalModule }, { kind: "directive", type: i2.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i3.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
480
492
|
}
|
|
481
493
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: PraxisDialogComponent, decorators: [{
|
|
482
494
|
type: Component,
|
|
483
|
-
args: [{ selector: 'praxis-dialog', standalone: true, imports: [CommonModule, PortalModule, A11yModule], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "@let _titleId = (id ?? 'praxis-dialog') + '-title';\n\n<ng-template #panelHeader>\n <div class=\"pdx-dialog__title\" @if (titleTpl?.templateRef || title || titleIcon)>\n @if (titleTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"titleTpl!.templateRef\"></ng-container>\n } @else {\n <div class=\"pdx-dialog__title-row\">\n <span *ngIf=\"titleIcon\" class=\"material-icons pdx-dialog__title-icon\" aria-hidden=\"true\">{{ titleIcon }}</span>\n <h2 class=\"pdx-dialog__title-text\" [attr.id]=\"_titleId\">{{ title }}</h2>\n </div>\n }\n </div>\n </ng-template>\n\n<ng-template #panelActions>\n <div class=\"pdx-dialog__actions\" [class.is-stretched]=\"actionsLayout==='stretched'\">\n @if (actionsTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"actionsTpl!.templateRef\"></ng-container>\n } @else {\n @for (a of actions; track a?.id ?? a) {\n <button\n type=\"button\"\n class=\"pdx-dialog__action-btn\"\n [attr.data-testid]=\"a.id || null\"\n [ngClass]=\"a.cssClass\"\n (click)=\"onActionClick(a)\"\n [attr.cdkFocusInitial]=\"a.role==='primary' && ariaRole==='alertdialog' ? '' : null\"\n >\n <span *ngIf=\"a.icon\" class=\"material-icons\">{{ a.icon }}</span>\n {{ a.text }}\n </button>\n }\n }\n </div>\n</ng-template>\n\n@if (overlayMode) {\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n} @else {\n <div class=\"pdx-dialog-overlay\" [class.has-backdrop]=\"hasBackdrop\" [hidden]=\"!isDisplayed\" (click)=\"onBackdrop($event)\" [ngClass]=\"backdropClass\" [style.z-index]=\"zIndex\">\n <div class=\"pdx-dialog-shell\" (click)=\"$event.stopPropagation()\">\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [style.top]=\"position?.top || null\"\n [style.bottom]=\"position?.bottom || null\"\n [style.left]=\"position?.left || null\"\n [style.right]=\"position?.right || null\"\n [class.pdx-has-position]=\"position\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n </div>\n </div>\n}\n", styles: [".pdx-dialog-host{--pdx-dialog-bg: var(--pdx-dialog-bg, #fff);--pdx-dialog-surface: var(--pdx-dialog-surface, #fff);--pdx-dialog-border: var(--pdx-dialog-border, rgba(0, 0, 0, .12));--pdx-dialog-title-fg: var(--pdx-dialog-title-fg, #111);--pdx-dialog-elevation: var(--pdx-dialog-elevation, 24)}.pdx-dialog-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1000;background:transparent}.pdx-dialog-overlay.has-backdrop{background:#00000059}.pdx-dialog-shell{display:contents}.pdx-dialog.pdx-has-position{position:absolute}.pdx-dialog{background:var(--pdx-dialog-container-color, var(--pdx-dialog-surface));color:#111;border:1px solid var(--pdx-dialog-border);border-radius:var(--pdx-dialog-shape, 8px);box-shadow:var(--pdx-dialog-elevation-shadow, 0 2px 8px rgba(0, 0, 0, .2));max-width:var(--pdx-dialog-max-width, 90vw);max-height:var(--pdx-dialog-max-height, 80vh);display:flex;flex-direction:column;min-width:var(--pdx-dialog-min-width, 280px);outline:0}.pdx-dialog__title{padding:var(--pdx-dialog-headline-padding, 12px 16px);border-bottom:1px solid var(--pdx-dialog-border);color:var(--pdx-dialog-subhead-color, var(--pdx-dialog-title-fg))}.pdx-dialog__title-row{display:flex;align-items:center;gap:8px}.pdx-dialog__title-icon{font-size:20px;line-height:1;opacity:.87}.pdx-dialog__title-text{margin:0;font-family:var(--pdx-dialog-subhead-font, inherit);line-height:var(--pdx-dialog-subhead-line-height, 1.4);font-size:var(--pdx-dialog-subhead-size, 16px);letter-spacing:var(--pdx-dialog-subhead-tracking, normal);font-weight:var(--pdx-dialog-subhead-weight, 600)}.pdx-dialog__content{padding:var(--pdx-dialog-content-padding, 16px);overflow:auto;color:var(--pdx-dialog-supporting-text-color, inherit);font-family:var(--pdx-dialog-supporting-text-font, inherit);line-height:var(--pdx-dialog-supporting-text-line-height, 1.4);font-size:var(--pdx-dialog-supporting-text-size, 14px);letter-spacing:var(--pdx-dialog-supporting-text-tracking, normal);font-weight:var(--pdx-dialog-supporting-text-weight, 400)}.pdx-dialog.has-actions .pdx-dialog__content{padding-bottom:var(--pdx-dialog-with-actions-content-padding, var(--pdx-dialog-content-padding, 16px))}.pdx-dialog__actions{display:flex;gap:8px;padding:var(--pdx-dialog-actions-padding, 12px 16px);border-top:1px solid var(--pdx-dialog-border);justify-content:flex-end}.pdx-dialog__actions.is-stretched{justify-content:stretch}.pdx-dialog__action-btn{appearance:none;border:1px solid var(--pdx-dialog-border);background:#f7f7f7;border-radius:4px;padding:6px 12px;cursor:pointer}.pdx-dialog--primary .pdx-dialog__title{background:#1976d2;color:#fff;border-bottom-color:#0003}.pdx-dialog--dark{background:#222;color:#f2f2f2}.pdx-dialog{transform-origin:center;transition-property:transform,opacity;transition-duration:var(--pdx-dialog-anim-duration, .3s);transition-timing-function:var(--pdx-dialog-anim-ease, cubic-bezier(.2, 0, 0, 1))}.pdx-dialog.pdx-anim-fade{opacity:1}.pdx-dialog.pdx-anim-zoom{transform:scale(1)}.pdx-dialog.pdx-anim-translate-up,.pdx-dialog.pdx-anim-translate-down{transform:translateY(0)}.pdx-dialog.pdx-anim-translate-left,.pdx-dialog.pdx-anim-translate-right{transform:translate(0)}.pdx-dialog.pdx-state-opening.pdx-anim-fade{opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-zoom{transform:scale(.96);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-up{transform:translateY(-16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-down{transform:translateY(16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-left{transform:translate(-16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-right{transform:translate(16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-fade{opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-zoom{transform:scale(.96);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-up{transform:translateY(-16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-down{transform:translateY(16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-left{transform:translate(-16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-right{transform:translate(16px);opacity:0}@media (prefers-reduced-motion: reduce){.pdx-dialog{transition:none!important}}\n"] }]
|
|
495
|
+
args: [{ selector: 'praxis-dialog', standalone: true, imports: [CommonModule, PortalModule, A11yModule, MatIconModule, PraxisIconDirective], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, template: "@let _titleId = (id ?? 'praxis-dialog') + '-title';\n\n<ng-template #panelHeader>\n <div class=\"pdx-dialog__title\" @if (titleTpl?.templateRef || title || titleIcon)>\n @if (titleTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"titleTpl!.templateRef\"></ng-container>\n } @else {\n <div class=\"pdx-dialog__title-row\">\n <mat-icon *ngIf=\"titleIcon\" class=\"pdx-dialog__title-icon\" [praxisIcon]=\"titleIcon\" aria-hidden=\"true\"></mat-icon>\n <h2 class=\"pdx-dialog__title-text\" [attr.id]=\"_titleId\">{{ title }}</h2>\n </div>\n }\n </div>\n </ng-template>\n\n<ng-template #panelActions>\n <div class=\"pdx-dialog__actions\" [class.is-stretched]=\"actionsLayout==='stretched'\">\n @if (actionsTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"actionsTpl!.templateRef\"></ng-container>\n } @else {\n @for (a of actions; track a?.id ?? a) {\n <button\n type=\"button\"\n class=\"pdx-dialog__action-btn\"\n [attr.data-testid]=\"a.id || null\"\n [attr.data-role]=\"a.role || null\"\n [attr.data-theme]=\"a.themeColor || null\"\n [attr.data-fill]=\"a.fillMode || null\"\n [ngClass]=\"a.cssClass\"\n (click)=\"onActionClick(a)\"\n [attr.cdkFocusInitial]=\"a.role==='primary' && ariaRole==='alertdialog' ? '' : null\"\n >\n @if (a.icon) {\n <mat-icon [praxisIcon]=\"a.icon\"></mat-icon>\n } @else if (a.svgIcon) {\n <mat-icon [svgIcon]=\"a.svgIcon\"></mat-icon>\n }\n {{ a.text }}\n </button>\n }\n }\n </div>\n</ng-template>\n\n@if (overlayMode) {\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n} @else {\n <div class=\"pdx-dialog-overlay\" [class.has-backdrop]=\"hasBackdrop\" [hidden]=\"!isDisplayed\" (click)=\"onBackdrop($event)\" [ngClass]=\"backdropClass\" [style.z-index]=\"zIndex\">\n <div class=\"pdx-dialog-shell\" (click)=\"$event.stopPropagation()\">\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [style.top]=\"position?.top || null\"\n [style.bottom]=\"position?.bottom || null\"\n [style.left]=\"position?.left || null\"\n [style.right]=\"position?.right || null\"\n [class.pdx-has-position]=\"position\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n </div>\n </div>\n}\n", styles: ["@charset \"UTF-8\";.pdx-dialog-host{--pdx-dialog-bg: var(--md-sys-color-surface);--pdx-dialog-surface: var(--md-sys-color-surface-container-high);--pdx-dialog-border: var(--md-sys-color-outline-variant);--pdx-dialog-title-fg: var(--md-sys-color-on-surface);--pdx-dialog-elevation: var(--mat-elevation-level4)}.pdx-dialog-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;z-index:1000;background:transparent}.pdx-dialog-overlay.has-backdrop{background:var(--pdx-dialog-backdrop, rgba(0, 0, 0, .6))}.pdx-dialog-shell{display:contents}.pdx-dialog.pdx-has-position{position:absolute}.pdx-dialog{background:var(--pdx-dialog-container-color, var(--pdx-dialog-surface));color:var(--md-sys-color-on-surface, #111);border:1px solid var(--pdx-dialog-border);border-radius:var(--pdx-dialog-shape, 16px);box-shadow:var(--pdx-dialog-elevation-shadow, var(--pdx-dialog-elevation));max-width:var(--pdx-dialog-max-width, 90vw);max-height:var(--pdx-dialog-max-height, 80vh);display:flex;flex-direction:column;min-width:var(--pdx-dialog-min-width, 280px);outline:0}.pdx-dialog__title{padding:var(--pdx-dialog-headline-padding, 12px 24px 10px);border-bottom:1px solid var(--pdx-dialog-border);color:var(--pdx-dialog-subhead-color, var(--pdx-dialog-title-fg));background:var(--pdx-dialog-title-bg, transparent);flex:0 0 auto}.pdx-dialog__title-row{display:flex;gap:10px}.pdx-dialog__title-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex:0 0 24px;font-size:20px;line-height:1;opacity:.87}.pdx-dialog__title-text{margin:0;font-family:var(--pdx-dialog-subhead-font, inherit);font-size:var(--pdx-dialog-subhead-size, 16px);letter-spacing:var(--pdx-dialog-subhead-tracking, normal);font-weight:var(--pdx-dialog-subhead-weight, 600);line-height:1.2}.pdx-dialog__content{padding:var(--pdx-dialog-content-padding, 16px);overflow:auto;flex:1 1 auto;min-height:0;color:var(--pdx-dialog-supporting-text-color, inherit);font-family:var(--pdx-dialog-supporting-text-font, inherit);line-height:var(--pdx-dialog-supporting-text-line-height, 1.4);font-size:var(--pdx-dialog-supporting-text-size, 14px);letter-spacing:var(--pdx-dialog-supporting-text-tracking, normal);font-weight:var(--pdx-dialog-supporting-text-weight, 400)}.pdx-dialog.has-actions .pdx-dialog__content{padding-bottom:var(--pdx-dialog-with-actions-content-padding, var(--pdx-dialog-content-padding, 16px))}.pdx-dialog__actions{display:flex;gap:8px;padding:var(--pdx-dialog-actions-padding, 12px 24px 16px);border-top:1px solid var(--pdx-dialog-border);justify-content:flex-end;align-items:center;background:var(--pdx-dialog-actions-bg, transparent);flex:0 0 auto}.pdx-dialog__actions.is-stretched{justify-content:stretch}.pdx-dialog__actions.is-stretched .pdx-dialog__action-btn{flex:1 1 0;justify-content:center}.pdx-dialog__action-btn{appearance:none;border:1px solid var(--pdx-dialog-border);background:var(--md-sys-color-surface-container-low);color:var(--md-sys-color-on-surface);border-radius:var(--pdx-dialog-action-radius, 8px);padding:var(--pdx-dialog-action-padding, 0 14px);min-height:var(--pdx-dialog-action-min-height, 36px);cursor:pointer;display:inline-flex;align-items:center;gap:8px;line-height:1;transition:background-color .18s ease,border-color .18s ease,color .18s ease}.pdx-dialog__action-btn:hover{background:var(--md-sys-color-surface-container)}.pdx-dialog__action-btn:focus-visible{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}.pdx-dialog__action-btn:disabled{opacity:.6;cursor:not-allowed}.pdx-dialog__action-btn[data-role=primary]:not([data-fill]),.pdx-dialog__action-btn[data-fill=solid]{background:var(--md-sys-color-primary);border-color:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}.pdx-dialog__action-btn[data-role=primary]:not([data-fill]):hover,.pdx-dialog__action-btn[data-fill=solid]:hover{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);border-color:var(--md-sys-color-primary-container)}.pdx-dialog__action-btn[data-role=danger]:not([data-fill]),.pdx-dialog__action-btn[data-fill=solid][data-theme=warn],.pdx-dialog__action-btn[data-theme=warn][data-fill=solid]{background:var(--md-sys-color-error);border-color:var(--md-sys-color-error);color:var(--md-sys-color-on-error)}.pdx-dialog__action-btn[data-role=danger]:not([data-fill]):hover,.pdx-dialog__action-btn[data-fill=solid][data-theme=warn]:hover,.pdx-dialog__action-btn[data-theme=warn][data-fill=solid]:hover{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);border-color:var(--md-sys-color-error-container)}.pdx-dialog__action-btn[data-fill=solid][data-theme=accent],.pdx-dialog__action-btn[data-theme=accent][data-fill=solid]{background:var(--md-sys-color-secondary);border-color:var(--md-sys-color-secondary);color:var(--md-sys-color-on-secondary)}.pdx-dialog__action-btn[data-fill=solid][data-theme=accent]:hover,.pdx-dialog__action-btn[data-theme=accent][data-fill=solid]:hover{background:var(--md-sys-color-secondary-container);color:var(--md-sys-color-on-secondary-container);border-color:var(--md-sys-color-secondary-container)}.pdx-dialog__action-btn[data-fill=outline]{background:transparent;color:var(--md-sys-color-on-surface)}.pdx-dialog__action-btn[data-fill=outline][data-theme=primary],.pdx-dialog__action-btn[data-fill=flat][data-theme=primary]{color:var(--md-sys-color-primary);border-color:var(--md-sys-color-primary)}.pdx-dialog__action-btn[data-fill=outline][data-theme=accent],.pdx-dialog__action-btn[data-fill=flat][data-theme=accent]{color:var(--md-sys-color-secondary);border-color:var(--md-sys-color-secondary)}.pdx-dialog__action-btn[data-fill=outline][data-theme=warn],.pdx-dialog__action-btn[data-fill=flat][data-theme=warn]{color:var(--md-sys-color-error);border-color:var(--md-sys-color-error)}.pdx-dialog__action-btn[data-fill=flat]{background:transparent;border-color:transparent;color:var(--md-sys-color-primary)}.pdx-dialog__action-btn .mat-icon{font-size:20px;width:20px;height:20px;line-height:1;display:inline-flex;align-items:center;justify-content:center}.pdx-dialog--primary .pdx-dialog__title{background:var(--md-sys-color-primary-container);color:var(--md-sys-color-on-primary-container);border-bottom-color:var(--md-sys-color-outline-variant)}.pdx-dialog--dark{background:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface)}.pdx-dialog{transform-origin:center;transition-property:transform,opacity;transition-duration:var(--pdx-dialog-anim-duration, .3s);transition-timing-function:var(--pdx-dialog-anim-ease, cubic-bezier(.2, 0, 0, 1))}.pdx-dialog.pdx-anim-fade{opacity:1}.pdx-dialog.pdx-anim-zoom{transform:scale(1)}.pdx-dialog.pdx-anim-translate-up,.pdx-dialog.pdx-anim-translate-down{transform:translateY(0)}.pdx-dialog.pdx-anim-translate-left,.pdx-dialog.pdx-anim-translate-right{transform:translate(0)}.pdx-dialog.pdx-state-opening.pdx-anim-fade{opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-zoom{transform:scale(.96);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-up{transform:translateY(-16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-down{transform:translateY(16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-left{transform:translate(-16px);opacity:0}.pdx-dialog.pdx-state-opening.pdx-anim-translate-right{transform:translate(16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-fade{opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-zoom{transform:scale(.96);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-up{transform:translateY(-16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-down{transform:translateY(16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-left{transform:translate(-16px);opacity:0}.pdx-dialog.pdx-state-closing.pdx-anim-translate-right{transform:translate(16px);opacity:0}@media(prefers-reduced-motion:reduce){.pdx-dialog{transition:none!important}}\n"] }]
|
|
484
496
|
}], propDecorators: { title: [{
|
|
485
497
|
type: Input
|
|
486
498
|
}], actions: [{
|
|
@@ -729,6 +741,7 @@ class PraxisDialog {
|
|
|
729
741
|
const portal = new ComponentPortal(content);
|
|
730
742
|
const innerRef = container.contentHost.attachComponentPortal(portal);
|
|
731
743
|
ref.componentInstance = innerRef.instance;
|
|
744
|
+
ref.componentRef = innerRef;
|
|
732
745
|
}
|
|
733
746
|
};
|
|
734
747
|
if (container.contentHost) {
|
|
@@ -862,33 +875,24 @@ class SimpleDialogContentComponent {
|
|
|
862
875
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.4", type: SimpleDialogContentComponent, isStandalone: true, selector: "praxis-simple-dialog-content", ngImport: i0, template: `
|
|
863
876
|
<div class="pdx-simple-dialog">
|
|
864
877
|
<p *ngIf="message" class="pdx-simple-dialog__message">{{ message }}</p>
|
|
865
|
-
<
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
[(ngModel)]="value"
|
|
870
|
-
/>
|
|
878
|
+
<mat-form-field *ngIf="mode === 'prompt'" appearance="outline" class="pdx-simple-dialog__field">
|
|
879
|
+
<mat-label>{{ placeholder || 'Digite um valor' }}</mat-label>
|
|
880
|
+
<input matInput [(ngModel)]="value" />
|
|
881
|
+
</mat-form-field>
|
|
871
882
|
</div>
|
|
872
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
|
|
883
|
+
`, isInline: true, styles: [".pdx-simple-dialog{display:grid;gap:12px}.pdx-simple-dialog__message{margin:0}.pdx-simple-dialog__field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i3$1.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i3$1.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i4$1.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }] });
|
|
873
884
|
}
|
|
874
885
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: SimpleDialogContentComponent, decorators: [{
|
|
875
886
|
type: Component,
|
|
876
|
-
args: [{
|
|
877
|
-
selector: 'praxis-simple-dialog-content',
|
|
878
|
-
standalone: true,
|
|
879
|
-
imports: [CommonModule, FormsModule],
|
|
880
|
-
template: `
|
|
887
|
+
args: [{ selector: 'praxis-simple-dialog-content', standalone: true, imports: [CommonModule, FormsModule, MatFormFieldModule, MatInputModule], template: `
|
|
881
888
|
<div class="pdx-simple-dialog">
|
|
882
889
|
<p *ngIf="message" class="pdx-simple-dialog__message">{{ message }}</p>
|
|
883
|
-
<
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
[(ngModel)]="value"
|
|
888
|
-
/>
|
|
890
|
+
<mat-form-field *ngIf="mode === 'prompt'" appearance="outline" class="pdx-simple-dialog__field">
|
|
891
|
+
<mat-label>{{ placeholder || 'Digite um valor' }}</mat-label>
|
|
892
|
+
<input matInput [(ngModel)]="value" />
|
|
893
|
+
</mat-form-field>
|
|
889
894
|
</div>
|
|
890
|
-
`,
|
|
891
|
-
}]
|
|
895
|
+
`, styles: [".pdx-simple-dialog{display:grid;gap:12px}.pdx-simple-dialog__message{margin:0}.pdx-simple-dialog__field{width:100%}\n"] }]
|
|
892
896
|
}], ctorParameters: () => [] });
|
|
893
897
|
class SimpleHtmlDialogContentComponent {
|
|
894
898
|
safeHtml;
|
|
@@ -973,9 +977,152 @@ function provideDialogGlobalPresetsFromGlobalConfig() {
|
|
|
973
977
|
};
|
|
974
978
|
}
|
|
975
979
|
|
|
980
|
+
function buildConfig(payload) {
|
|
981
|
+
if (!payload)
|
|
982
|
+
return {};
|
|
983
|
+
return {
|
|
984
|
+
title: payload.title,
|
|
985
|
+
message: payload.message,
|
|
986
|
+
data: payload.data,
|
|
987
|
+
width: payload.size?.width ?? payload.width,
|
|
988
|
+
height: payload.size?.height ?? payload.height,
|
|
989
|
+
minWidth: payload.minWidth,
|
|
990
|
+
maxWidth: payload.maxWidth,
|
|
991
|
+
minHeight: payload.minHeight,
|
|
992
|
+
maxHeight: payload.maxHeight,
|
|
993
|
+
themeColor: payload.themeColor ?? payload.variant,
|
|
994
|
+
disableClose: payload.disableClose,
|
|
995
|
+
hasBackdrop: payload.hasBackdrop,
|
|
996
|
+
panelClass: payload.panelClass,
|
|
997
|
+
backdropClass: payload.backdropClass,
|
|
998
|
+
position: payload.position,
|
|
999
|
+
};
|
|
1000
|
+
}
|
|
1001
|
+
function applyInputs(instance, inputs, ref) {
|
|
1002
|
+
if (!instance || !inputs)
|
|
1003
|
+
return;
|
|
1004
|
+
for (const [key, value] of Object.entries(inputs)) {
|
|
1005
|
+
try {
|
|
1006
|
+
instance[key] = value;
|
|
1007
|
+
}
|
|
1008
|
+
catch { }
|
|
1009
|
+
}
|
|
1010
|
+
try {
|
|
1011
|
+
if (ref?.componentRef?.changeDetectorRef?.detectChanges) {
|
|
1012
|
+
ref.componentRef.changeDetectorRef.detectChanges();
|
|
1013
|
+
}
|
|
1014
|
+
else if (instance.changeDetectorRef?.detectChanges) {
|
|
1015
|
+
instance.changeDetectorRef.detectChanges();
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
catch { }
|
|
1019
|
+
}
|
|
1020
|
+
function providePraxisDialogGlobalActions() {
|
|
1021
|
+
return {
|
|
1022
|
+
provide: GLOBAL_DIALOG_SERVICE,
|
|
1023
|
+
useFactory: () => {
|
|
1024
|
+
const dialog = inject(PraxisDialog);
|
|
1025
|
+
const registry = (() => { try {
|
|
1026
|
+
return inject(ComponentMetadataRegistry);
|
|
1027
|
+
}
|
|
1028
|
+
catch {
|
|
1029
|
+
return null;
|
|
1030
|
+
} })();
|
|
1031
|
+
return {
|
|
1032
|
+
alert: async (payload) => {
|
|
1033
|
+
const cfg = buildConfig(payload);
|
|
1034
|
+
const ref = dialog.alert(cfg);
|
|
1035
|
+
return firstValueFrom(ref.afterClosed());
|
|
1036
|
+
},
|
|
1037
|
+
confirm: async (payload) => {
|
|
1038
|
+
const cfg = buildConfig(payload);
|
|
1039
|
+
const ref = dialog.confirm(cfg);
|
|
1040
|
+
return firstValueFrom(ref.afterClosed());
|
|
1041
|
+
},
|
|
1042
|
+
prompt: async (payload) => {
|
|
1043
|
+
const cfg = buildConfig(payload);
|
|
1044
|
+
const ref = dialog.prompt(cfg);
|
|
1045
|
+
return firstValueFrom(ref.afterClosed());
|
|
1046
|
+
},
|
|
1047
|
+
open: async (payload) => {
|
|
1048
|
+
const cfg = buildConfig(payload);
|
|
1049
|
+
const componentId = payload?.componentId;
|
|
1050
|
+
if (!componentId)
|
|
1051
|
+
throw new Error('dialog.open requires componentId');
|
|
1052
|
+
let ref;
|
|
1053
|
+
const meta = registry?.get(componentId);
|
|
1054
|
+
if (meta?.component) {
|
|
1055
|
+
ref = dialog.open(meta.component, cfg);
|
|
1056
|
+
}
|
|
1057
|
+
else {
|
|
1058
|
+
ref = dialog.openByRegistry(componentId, cfg);
|
|
1059
|
+
}
|
|
1060
|
+
applyInputs(ref?.componentInstance, payload?.inputs, ref);
|
|
1061
|
+
return firstValueFrom(ref.afterClosed());
|
|
1062
|
+
},
|
|
1063
|
+
};
|
|
1064
|
+
},
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
class LongContentDialogExampleComponent {
|
|
1069
|
+
items = Array.from({ length: 40 }, (_, idx) => `Example line ${idx + 1}`);
|
|
1070
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: LongContentDialogExampleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1071
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.1.4", type: LongContentDialogExampleComponent, isStandalone: true, selector: "praxis-long-content-dialog-example", ngImport: i0, template: `
|
|
1072
|
+
<div class="pdx-long-content">
|
|
1073
|
+
<p>
|
|
1074
|
+
This is a long content example to validate scroll behavior inside PraxisDialog.
|
|
1075
|
+
</p>
|
|
1076
|
+
<p>
|
|
1077
|
+
The content is intentionally verbose so the body must scroll while the header
|
|
1078
|
+
and actions remain visible.
|
|
1079
|
+
</p>
|
|
1080
|
+
<ul>
|
|
1081
|
+
<li *ngFor="let item of items">{{ item }}</li>
|
|
1082
|
+
</ul>
|
|
1083
|
+
<p>
|
|
1084
|
+
End of the long content example.
|
|
1085
|
+
</p>
|
|
1086
|
+
</div>
|
|
1087
|
+
`, isInline: true, styles: [".pdx-long-content{display:grid;gap:12px;color:var(--md-sys-color-on-surface, #111)}.pdx-long-content p{margin:0}.pdx-long-content ul{margin:0;padding-left:20px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
1088
|
+
}
|
|
1089
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.4", ngImport: i0, type: LongContentDialogExampleComponent, decorators: [{
|
|
1090
|
+
type: Component,
|
|
1091
|
+
args: [{ selector: 'praxis-long-content-dialog-example', standalone: true, imports: [CommonModule], template: `
|
|
1092
|
+
<div class="pdx-long-content">
|
|
1093
|
+
<p>
|
|
1094
|
+
This is a long content example to validate scroll behavior inside PraxisDialog.
|
|
1095
|
+
</p>
|
|
1096
|
+
<p>
|
|
1097
|
+
The content is intentionally verbose so the body must scroll while the header
|
|
1098
|
+
and actions remain visible.
|
|
1099
|
+
</p>
|
|
1100
|
+
<ul>
|
|
1101
|
+
<li *ngFor="let item of items">{{ item }}</li>
|
|
1102
|
+
</ul>
|
|
1103
|
+
<p>
|
|
1104
|
+
End of the long content example.
|
|
1105
|
+
</p>
|
|
1106
|
+
</div>
|
|
1107
|
+
`, styles: [".pdx-long-content{display:grid;gap:12px;color:var(--md-sys-color-on-surface, #111)}.pdx-long-content p{margin:0}.pdx-long-content ul{margin:0;padding-left:20px}\n"] }]
|
|
1108
|
+
}] });
|
|
1109
|
+
|
|
1110
|
+
const PRAXIS_DIALOG_EXAMPLE_LONG_CONTENT = 'praxis.long-content-example';
|
|
1111
|
+
function providePraxisDialogExamples() {
|
|
1112
|
+
return {
|
|
1113
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
1114
|
+
multi: true,
|
|
1115
|
+
useFactory: (registry) => () => {
|
|
1116
|
+
registry[PRAXIS_DIALOG_EXAMPLE_LONG_CONTENT] =
|
|
1117
|
+
LongContentDialogExampleComponent;
|
|
1118
|
+
},
|
|
1119
|
+
deps: [PRAXIS_DIALOG_CONTENT_REGISTRY],
|
|
1120
|
+
};
|
|
1121
|
+
}
|
|
1122
|
+
|
|
976
1123
|
/**
|
|
977
1124
|
* Generated bundle index. Do not edit.
|
|
978
1125
|
*/
|
|
979
1126
|
|
|
980
|
-
export { PRAXIS_DIALOG_CONTENT_REGISTRY, PRAXIS_DIALOG_DATA, PRAXIS_DIALOG_DEFAULTS, PRAXIS_DIALOG_GLOBAL_PRESETS, PRAXIS_DIALOG_I18N, PRAXIS_DIALOG_TEMPLATE_REGISTRY, PraxisDialog, PraxisDialogActionsDirective, PraxisDialogComponent, PraxisDialogContentDirective, PraxisDialogDirectives, PraxisDialogRef, PraxisDialogTitleDirective, provideDialogGlobalPresetsFromGlobalConfig };
|
|
1127
|
+
export { LongContentDialogExampleComponent, PRAXIS_DIALOG_CONTENT_REGISTRY, PRAXIS_DIALOG_DATA, PRAXIS_DIALOG_DEFAULTS, PRAXIS_DIALOG_EXAMPLE_LONG_CONTENT, PRAXIS_DIALOG_GLOBAL_PRESETS, PRAXIS_DIALOG_I18N, PRAXIS_DIALOG_TEMPLATE_REGISTRY, PraxisDialog, PraxisDialogActionsDirective, PraxisDialogComponent, PraxisDialogContentDirective, PraxisDialogDirectives, PraxisDialogRef, PraxisDialogTitleDirective, provideDialogGlobalPresetsFromGlobalConfig, providePraxisDialogExamples, providePraxisDialogGlobalActions };
|
|
981
1128
|
//# sourceMappingURL=praxisui-dialog.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"praxisui-dialog.mjs","sources":["../../../projects/praxis-dialog/src/lib/dialog/dialog.tokens.ts","../../../projects/praxis-dialog/src/lib/dialog/dialog.ref.ts","../../../projects/praxis-dialog/src/lib/dialog/title.directive.ts","../../../projects/praxis-dialog/src/lib/dialog/actions.directive.ts","../../../projects/praxis-dialog/src/lib/dialog/content.directive.ts","../../../projects/praxis-dialog/src/lib/dialog/dialog.component.ts","../../../projects/praxis-dialog/src/lib/dialog/dialog.component.html","../../../projects/praxis-dialog/src/lib/dialog/overlay/dialog-overlay.service.ts","../../../projects/praxis-dialog/src/lib/dialog/dialog.service.ts","../../../projects/praxis-dialog/src/lib/providers/dialog-global-presets.provider.ts","../../../projects/praxis-dialog/src/praxisui-dialog.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const PRAXIS_DIALOG_DATA = new InjectionToken<unknown>('PRAXIS_DIALOG_DATA');\n\nexport const PRAXIS_DIALOG_I18N = new InjectionToken<\n Readonly<{\n ok: string;\n cancel: string;\n yes: string;\n no: string;\n }>\n>('PRAXIS_DIALOG_I18N', {\n providedIn: 'root',\n factory: () => ({ ok: 'OK', cancel: 'Cancelar', yes: 'Sim', no: 'Não' }),\n});\n\nexport const PRAXIS_DIALOG_DEFAULTS = new InjectionToken<\n Readonly<{\n maxWidth: string | number;\n maxHeight: string | number;\n }>\n>('PRAXIS_DIALOG_DEFAULTS', {\n providedIn: 'root',\n factory: () => ({ maxWidth: '90vw', maxHeight: '80vh' }),\n});\n\nexport type ComponentType<T> = new (...args: any[]) => T;\nexport const PRAXIS_DIALOG_CONTENT_REGISTRY = new InjectionToken<\n Record<string, ComponentType<any>>\n>('PRAXIS_DIALOG_CONTENT_REGISTRY', {\n providedIn: 'root',\n factory: () => ({}),\n});\n\n// Template registry: id -> TemplateRef\nimport { TemplateRef } from '@angular/core';\nexport const PRAXIS_DIALOG_TEMPLATE_REGISTRY = new InjectionToken<\n Record<string, TemplateRef<any>>\n>('PRAXIS_DIALOG_TEMPLATE_REGISTRY', {\n providedIn: 'root',\n factory: () => ({}),\n});\n\n// Global presets (by type and variants)\nimport { PraxisDialogConfig } from './dialog.types';\nexport interface PraxisDialogGlobalPresets {\n confirm?: PraxisDialogConfig;\n alert?: PraxisDialogConfig;\n prompt?: PraxisDialogConfig;\n variants?: Record<string, PraxisDialogConfig>; // e.g., delete, save, destructive\n}\n\nexport const PRAXIS_DIALOG_GLOBAL_PRESETS = new InjectionToken<PraxisDialogGlobalPresets>(\n 'PRAXIS_DIALOG_GLOBAL_PRESETS',\n {\n providedIn: 'root',\n factory: () => ({}),\n },\n);\n","import { OverlayRef } from '@angular/cdk/overlay';\nimport { Observable, Subject } from 'rxjs';\nimport { PraxisDialogPosition } from './dialog.types';\n\nexport class PraxisDialogRef<T = any, R = any> {\n id?: string;\n private readonly _afterOpened = new Subject<void>();\n private readonly _beforeClosed = new Subject<R | undefined>();\n private readonly _afterClosed = new Subject<R | undefined>();\n private readonly _backdropClick = new Subject<MouseEvent>();\n private readonly _keydownEvents = new Subject<KeyboardEvent>();\n\n componentInstance?: T;\n\n constructor(private overlayRef: OverlayRef) {}\n private beforeCloseHandler?: (result?: R) => Promise<void> | void;\n\n setBeforeClose(handler: (result?: R) => Promise<void> | void): void {\n this.beforeCloseHandler = handler;\n }\n\n emitOpened(): void {\n this._afterOpened.next();\n this._afterOpened.complete();\n }\n\n backdropClick(): Observable<MouseEvent> {\n return this._backdropClick.asObservable();\n }\n\n keydownEvents(): Observable<KeyboardEvent> {\n return this._keydownEvents.asObservable();\n }\n\n afterOpened(): Observable<void> {\n return this._afterOpened.asObservable();\n }\n\n beforeClosed(): Observable<R | undefined> {\n return this._beforeClosed.asObservable();\n }\n\n afterClosed(): Observable<R | undefined> {\n return this._afterClosed.asObservable();\n }\n\n notifyBackdropClick(ev: MouseEvent): void {\n this._backdropClick.next(ev);\n }\n\n notifyKeydown(ev: KeyboardEvent): void {\n this._keydownEvents.next(ev);\n }\n\n async close(result?: R): Promise<void> {\n this._beforeClosed.next(result);\n this._beforeClosed.complete();\n if (this.beforeCloseHandler) {\n try { await this.beforeCloseHandler(result); } catch {}\n }\n this.overlayRef.dispose();\n this._afterClosed.next(result);\n this._afterClosed.complete();\n this._backdropClick.complete();\n this._keydownEvents.complete();\n }\n\n updateSize(width?: string | number, height?: string | number): this {\n this.overlayRef.updateSize({\n width: coerceCssUnit(width),\n height: coerceCssUnit(height),\n });\n return this;\n }\n\n updatePosition(position?: PraxisDialogPosition): this {\n this.overlayRef.updatePositionStrategy(\n this.overlayRef.getConfig().positionStrategy!,\n );\n if (position) {\n const ps: any = this.overlayRef.getConfig().positionStrategy as any;\n if (ps?.top !== undefined && position.top != null) (ps as any).top(position.top);\n if (ps?.bottom !== undefined && position.bottom != null)\n (ps as any).bottom(position.bottom);\n if (ps?.left !== undefined && position.left != null)\n (ps as any).left(position.left);\n if (ps?.right !== undefined && position.right != null)\n (ps as any).right(position.right);\n this.overlayRef.updatePosition();\n }\n return this;\n }\n}\n\nfunction coerceCssUnit(v?: string | number): string | undefined {\n if (v == null) return undefined;\n return typeof v === 'number' ? `${v}px` : v;\n}\n","import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({ selector: 'ng-template[praxisDialogTitle]', standalone: true })\nexport class PraxisDialogTitleDirective {\n constructor(public templateRef: TemplateRef<any>) {}\n}\n\n","import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({ selector: 'ng-template[praxisDialogActions]', standalone: true })\nexport class PraxisDialogActionsDirective {\n constructor(public templateRef: TemplateRef<any>) {}\n}\n\n","import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({ selector: 'ng-template[praxisDialogContent]', standalone: true })\nexport class PraxisDialogContentDirective {\n constructor(public templateRef: TemplateRef<any>) {}\n}\n\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ElementRef,\n EventEmitter,\n HostBinding,\n Input,\n OnInit,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n Output,\n ViewChild,\n ViewEncapsulation,\n inject,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { PRAXIS_DIALOG_DATA } from './dialog.tokens';\nimport { ActionsLayout, DialogAction, DialogThemeColor, DialogAnimation } from './dialog.types';\nimport { PraxisDialogTitleDirective } from './title.directive';\nimport { PraxisDialogActionsDirective } from './actions.directive';\nimport { PraxisDialogContentDirective } from './content.directive';\n\n@Component({\n selector: 'praxis-dialog',\n standalone: true,\n imports: [CommonModule, PortalModule, A11yModule],\n templateUrl: './dialog.component.html',\n styleUrls: ['./dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class PraxisDialogComponent implements OnInit, OnChanges, OnDestroy {\n @Input() title?: string;\n @Input() actions: DialogAction[] = [];\n @Input() actionsLayout: ActionsLayout = 'stretched';\n @Input() animation: boolean | DialogAnimation = true;\n @Input() open = true;\n @Input() width?: string | number;\n @Input() height?: string | number;\n @Input() minWidth?: string | number;\n @Input() maxWidth?: string | number;\n @Input() minHeight?: string | number;\n @Input() maxHeight?: string | number;\n @Input() themeColor: DialogThemeColor = 'light';\n @Input() disableClose = false;\n @Input() hasBackdrop = true;\n @Input() overlayMode = false; // true when opened via service/CDK overlay\n @Input() zIndex?: number;\n @Input() panelClass?: string | string[] | Record<string, boolean>;\n @Input() backdropClass?: string | string[] | Record<string, boolean>;\n @Input() position?: { top?: string; bottom?: string; left?: string; right?: string };\n @Input() autoFocusedElement?: string;\n @Input() autoFocus?: boolean;\n @Input() restoreFocus = true;\n @Input() id?: string;\n @Input() ariaRole: 'dialog' | 'alertdialog' = 'dialog';\n @Input() ariaLabel?: string;\n @Input() ariaLabelledBy?: string;\n @Input() ariaDescribedBy?: string;\n @Input() styles?: import('./dialog.types').PraxisDialogStyleConfig;\n @Input() titleIcon?: string;\n\n @Output() action = new EventEmitter<DialogAction>();\n @Output() close = new EventEmitter<any>();\n @Output() opened = new EventEmitter<void>();\n @Output() afterClosed = new EventEmitter<void>();\n\n @ViewChild(CdkPortalOutlet, { static: false }) contentHost!: CdkPortalOutlet;\n @ViewChild('panel', { static: true }) panelEl!: ElementRef<HTMLElement>;\n @ContentChild(PraxisDialogTitleDirective, { read: PraxisDialogTitleDirective }) titleTpl?: PraxisDialogTitleDirective;\n @ContentChild(PraxisDialogActionsDirective, { read: PraxisDialogActionsDirective }) actionsTpl?: PraxisDialogActionsDirective;\n @ContentChild(PraxisDialogContentDirective, { read: PraxisDialogContentDirective }) contentTpl?: PraxisDialogContentDirective;\n\n @HostBinding('class') hostClass = 'pdx-dialog-host';\n @HostBinding('attr.tabindex') tabindex = '-1';\n\n readonly data = inject(PRAXIS_DIALOG_DATA, { optional: true }) as unknown;\n get titleId(): string { return (this.id ?? 'praxis-dialog') + '-title'; }\n\n isDisplayed = false; // controls DOM visibility for animation in tag mode\n\n ngOnInit(): void {\n if (this.open) {\n this.isDisplayed = true;\n this.applyAnimationVars();\n this.applyStyleVars();\n this.beginOpenAnimation().then(() => {\n if (!this.overlayMode) this.opened.emit();\n });\n this.scheduleInitialFocus();\n }\n if (this.ariaRole === 'alertdialog') {\n const hasLabel = !!(this.title || this.ariaLabel || this.ariaLabelledBy);\n try {\n const isDev = typeof (globalThis as any).ngDevMode !== 'undefined' ? !!(globalThis as any).ngDevMode : true;\n if (isDev && !hasLabel) {\n console.warn('[PraxisDialog] alertdialog requires a title or aria label.');\n }\n } catch {}\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['open'] && this.open) {\n this.isDisplayed = true;\n this.applyAnimationVars();\n this.applyStyleVars();\n this.beginOpenAnimation().then(() => {\n if (!this.overlayMode) this.opened.emit();\n });\n this.scheduleInitialFocus();\n }\n if (changes['open'] && !this.open && !this.overlayMode && this.isDisplayed) {\n // animate close then hide\n this.beginCloseAnimation().then(() => {\n this.isDisplayed = false;\n this.afterClosed.emit();\n if (this.restoreFocus && this._previouslyFocused && typeof this._previouslyFocused.focus === 'function') {\n try { this._previouslyFocused.focus(); } catch {}\n }\n });\n }\n if (changes['animation']) {\n this.applyAnimationVars();\n }\n if (changes['styles']) {\n this.applyStyleVars();\n }\n }\n\n onKeydown(ev: KeyboardEvent): void {\n if (ev.key === 'Escape' && !this.disableClose) {\n ev.stopPropagation();\n this.close.emit();\n }\n if ((ev.key === 'Enter' || ev.key === ' ') && !this.disableClose) {\n const target = ev.target as HTMLElement | null;\n const isInteractive = !!target && /^(BUTTON|A|INPUT|TEXTAREA|SELECT)$/.test(target.tagName);\n if (!isInteractive) {\n const primary = this.actions.find((a) => a.role === 'primary') || this.actions[0];\n if (primary) {\n ev.preventDefault();\n this.onActionClick(primary);\n }\n }\n }\n }\n\n onActionClick(a: DialogAction): void {\n this.action.emit(a);\n if (a.close) {\n this.close.emit(a.payload);\n }\n }\n\n onBackdrop(ev: MouseEvent): void {\n if (!this.hasBackdrop) return;\n if (this.disableClose) return;\n // Avoid closing when clicking inside the panel area\n this.close.emit();\n }\n\n focus(): void {\n try {\n this.panelEl?.nativeElement?.focus?.();\n } catch {}\n }\n\n private scheduleInitialFocus(): void {\n const panel = this.panelEl?.nativeElement;\n if (!panel) return;\n const prev = document.activeElement as HTMLElement | null;\n if (!this._previouslyFocused && this.restoreFocus) this._previouslyFocused = prev;\n queueMicrotask(() => {\n try {\n if (this.autoFocus && this.ariaRole === 'alertdialog') {\n // In alertdialog, focus the primary action if present\n const focused = this.focusPrimaryAction();\n if (focused) return;\n }\n if (this.autoFocusedElement) {\n const el = panel.querySelector(this.autoFocusedElement) as HTMLElement | null;\n el?.focus?.();\n return;\n }\n // focus first focusable\n const focusable = panel.querySelector(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n ) as HTMLElement | null;\n (focusable || panel).focus?.();\n } catch {}\n });\n }\n\n private _previouslyFocused?: HTMLElement | null;\n ngOnDestroy(): void {\n if (this.restoreFocus && this._previouslyFocused && typeof this._previouslyFocused.focus === 'function') {\n try { this._previouslyFocused.focus(); } catch {}\n }\n }\n\n get animationClasses(): string[] {\n const anim = this.animation;\n if (!anim) return [];\n const conf: DialogAnimation = typeof anim === 'boolean' ? { type: 'translate', duration: 300 } : anim;\n const type = conf.type || 'translate';\n const dir = conf.direction || 'up';\n const map: Record<string, string> = {\n translate: `pdx-anim-translate-${dir}`,\n slide: `pdx-anim-translate-${dir}`,\n fade: 'pdx-anim-fade',\n expand: 'pdx-anim-zoom',\n zoom: 'pdx-anim-zoom',\n };\n return [map[type] || ''];\n }\n\n get panelNgClass(): Record<string, boolean> | string[] {\n const anim = this.animationClasses || [];\n const extra = this.panelClass as any;\n if (extra && typeof extra === 'object' && !Array.isArray(extra)) {\n const obj: any = { ...extra };\n for (const c of anim) obj[c] = true;\n return obj;\n }\n if (typeof extra === 'string') return [...anim, extra];\n if (Array.isArray(extra)) return [...anim, ...extra];\n return anim;\n }\n\n applyAnimationVars(): void {\n if (!this.panelEl) return;\n const anim = this.animation;\n const conf: DialogAnimation = anim === true || anim == null ? { type: 'translate', duration: 300 } : (anim as DialogAnimation);\n const dur = (conf.duration ?? 300) as number;\n try {\n this.panelEl.nativeElement.style.setProperty('--pdx-dialog-anim-duration', `${dur}ms`);\n this.panelEl.nativeElement.style.setProperty('--pdx-dialog-anim-ease', conf.easing || 'cubic-bezier(0.2, 0, 0, 1)');\n } catch {}\n }\n\n applyStyleVars(): void {\n if (!this.panelEl) return;\n const s = this.styles || {};\n const set = (name: string, value: any) => {\n if (value == null) return;\n try { this.panelEl.nativeElement.style.setProperty(name, String(value)); } catch {}\n };\n // Base\n set('--pdx-dialog-actions-padding', s.actionsPadding);\n set('--pdx-dialog-elevation-shadow', s.containerElevationShadow);\n set('--pdx-dialog-max-width', s.containerMaxWidth);\n set('--pdx-dialog-min-width', s.containerMinWidth);\n set('--pdx-dialog-shape', s.containerShape);\n set('--pdx-dialog-small-max-width', s.containerSmallMaxWidth);\n set('--pdx-dialog-content-padding', s.contentPadding);\n set('--pdx-dialog-headline-padding', s.headlinePadding);\n set('--pdx-dialog-with-actions-content-padding', s.withActionsContentPadding);\n // Color\n set('--pdx-dialog-container-color', s.containerColor);\n set('--pdx-dialog-subhead-color', s.subheadColor);\n set('--pdx-dialog-supporting-text-color', s.supportingTextColor);\n // Typography - title\n set('--pdx-dialog-subhead-font', s.subheadFont);\n set('--pdx-dialog-subhead-line-height', s.subheadLineHeight);\n set('--pdx-dialog-subhead-size', s.subheadSize);\n set('--pdx-dialog-subhead-tracking', s.subheadTracking);\n set('--pdx-dialog-subhead-weight', s.subheadWeight);\n // Typography - content\n set('--pdx-dialog-supporting-text-font', s.supportingTextFont);\n set('--pdx-dialog-supporting-text-line-height', s.supportingTextLineHeight);\n set('--pdx-dialog-supporting-text-size', s.supportingTextSize);\n set('--pdx-dialog-supporting-text-tracking', s.supportingTextTracking);\n set('--pdx-dialog-supporting-text-weight', s.supportingTextWeight);\n // Alignment alias\n if (s.actionsAlignment) this.actionsLayout = s.actionsAlignment as any;\n }\n\n beginOpenAnimation(): Promise<void> {\n if (!this.animation) return Promise.resolve();\n const panel = this.panelEl?.nativeElement;\n if (!panel) return Promise.resolve();\n panel.classList.add('pdx-state-opening');\n return new Promise((resolve) => {\n requestAnimationFrame(() => {\n panel.classList.remove('pdx-state-opening');\n panel.classList.add('pdx-state-open');\n // resolve after transition duration\n const dur = parseFloat(getComputedStyle(panel).getPropertyValue('--pdx-dialog-anim-duration')) || 300;\n setTimeout(() => resolve(), dur);\n });\n });\n }\n\n beginCloseAnimation(): Promise<void> {\n if (!this.animation) return Promise.resolve();\n const panel = this.panelEl?.nativeElement;\n if (!panel) return Promise.resolve();\n panel.classList.add('pdx-state-closing');\n return new Promise((resolve) => {\n let done = false;\n const finish = () => { if (done) return; done = true; panel.removeEventListener('transitionend', onEnd); resolve(); };\n const onEnd = (ev: Event) => {\n if ((ev as TransitionEvent).propertyName === 'opacity' || (ev as TransitionEvent).propertyName === 'transform') finish();\n };\n panel.addEventListener('transitionend', onEnd);\n const durVar = getComputedStyle(panel).getPropertyValue('--pdx-dialog-anim-duration');\n const durMs = parseFloat(durVar) || 300;\n setTimeout(finish, durMs + 20);\n });\n }\n\n private focusPrimaryAction(): boolean {\n try {\n const panel = this.panelEl?.nativeElement;\n if (!panel) return false;\n const buttons = Array.from(panel.querySelectorAll<HTMLButtonElement>('.pdx-dialog__actions .pdx-dialog__action-btn'));\n if (buttons.length === 0) return false;\n // Prefer the first button corresponding to a primary role\n const primaryIndex = this.actions.findIndex((a) => a?.role === 'primary');\n if (primaryIndex >= 0 && buttons[primaryIndex]) {\n buttons[primaryIndex].focus();\n return true;\n }\n // Fallback to last button\n buttons[buttons.length - 1].focus();\n return true;\n } catch {\n return false;\n }\n }\n}\n\nexport const PraxisDialogDirectives = [] as const;\n","@let _titleId = (id ?? 'praxis-dialog') + '-title';\n\n<ng-template #panelHeader>\n <div class=\"pdx-dialog__title\" @if (titleTpl?.templateRef || title || titleIcon)>\n @if (titleTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"titleTpl!.templateRef\"></ng-container>\n } @else {\n <div class=\"pdx-dialog__title-row\">\n <span *ngIf=\"titleIcon\" class=\"material-icons pdx-dialog__title-icon\" aria-hidden=\"true\">{{ titleIcon }}</span>\n <h2 class=\"pdx-dialog__title-text\" [attr.id]=\"_titleId\">{{ title }}</h2>\n </div>\n }\n </div>\n </ng-template>\n\n<ng-template #panelActions>\n <div class=\"pdx-dialog__actions\" [class.is-stretched]=\"actionsLayout==='stretched'\">\n @if (actionsTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"actionsTpl!.templateRef\"></ng-container>\n } @else {\n @for (a of actions; track a?.id ?? a) {\n <button\n type=\"button\"\n class=\"pdx-dialog__action-btn\"\n [attr.data-testid]=\"a.id || null\"\n [ngClass]=\"a.cssClass\"\n (click)=\"onActionClick(a)\"\n [attr.cdkFocusInitial]=\"a.role==='primary' && ariaRole==='alertdialog' ? '' : null\"\n >\n <span *ngIf=\"a.icon\" class=\"material-icons\">{{ a.icon }}</span>\n {{ a.text }}\n </button>\n }\n }\n </div>\n</ng-template>\n\n@if (overlayMode) {\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n} @else {\n <div class=\"pdx-dialog-overlay\" [class.has-backdrop]=\"hasBackdrop\" [hidden]=\"!isDisplayed\" (click)=\"onBackdrop($event)\" [ngClass]=\"backdropClass\" [style.z-index]=\"zIndex\">\n <div class=\"pdx-dialog-shell\" (click)=\"$event.stopPropagation()\">\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [style.top]=\"position?.top || null\"\n [style.bottom]=\"position?.bottom || null\"\n [style.left]=\"position?.left || null\"\n [style.right]=\"position?.right || null\"\n [class.pdx-has-position]=\"position\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n </div>\n </div>\n}\n","import { Injectable, Injector, inject, ComponentRef } from '@angular/core';\nimport { Overlay, OverlayConfig, OverlayModule, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal, PortalModule } from '@angular/cdk/portal';\nimport { PraxisDialogConfig } from '../dialog.types';\nimport { PraxisDialogComponent } from '../dialog.component';\n\n@Injectable({ providedIn: 'root' })\nexport class DialogOverlayService {\n private readonly overlay = inject(Overlay);\n\n createOverlay(cfg: PraxisDialogConfig, injector: Injector): OverlayRef {\n const overlayConfig = this.buildOverlayConfig(cfg);\n return this.overlay.create(overlayConfig);\n }\n\n attachContainer(ref: OverlayRef, injector: Injector): ComponentRef<PraxisDialogComponent> {\n const portal = new ComponentPortal(PraxisDialogComponent, null, injector);\n const compRef = ref.attach(portal);\n return compRef;\n }\n\n private buildOverlayConfig(cfg: PraxisDialogConfig): OverlayConfig {\n const positionStrategy = this.overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically();\n\n if (cfg?.position) {\n if (cfg.position.top != null) positionStrategy.top(String(cfg.position.top));\n if (cfg.position.bottom != null)\n positionStrategy.bottom(String(cfg.position.bottom));\n if (cfg.position.left != null) positionStrategy.left(String(cfg.position.left));\n if (cfg.position.right != null)\n positionStrategy.right(String(cfg.position.right));\n }\n\n const scrollStrategy = (() => {\n switch (cfg?.scrollStrategy) {\n case 'noop':\n return this.overlay.scrollStrategies.noop();\n case 'reposition':\n return this.overlay.scrollStrategies.reposition();\n case 'block':\n default:\n return this.overlay.scrollStrategies.block();\n }\n })();\n\n const hasBackdrop = cfg?.hasBackdrop ?? true;\n const overlayConfig = new OverlayConfig({\n hasBackdrop,\n disposeOnNavigation: cfg?.closeOnNavigation ?? true,\n panelClass: cfg?.panelClass as any,\n backdropClass: cfg?.backdropClass as any,\n positionStrategy,\n scrollStrategy,\n width: coerceCssUnit(cfg?.width),\n height: coerceCssUnit(cfg?.height),\n });\n\n if (cfg?.zIndex != null) {\n (overlayConfig as any).zIndex = cfg.zIndex;\n }\n\n return overlayConfig;\n }\n}\n\nfunction coerceCssUnit(v?: string | number): string | undefined {\n if (v == null) return undefined;\n return typeof v === 'number' ? `${v}px` : v;\n}\n\nexport const DialogOverlayImports = [OverlayModule, PortalModule] as const;\n","import {\n ApplicationRef,\n ComponentRef,\n Injectable,\n Injector,\n TemplateRef,\n Type,\n ViewContainerRef,\n inject,\n Component,\n} from '@angular/core';\nimport { OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';\nimport { DialogOverlayService } from './overlay/dialog-overlay.service';\nimport { PraxisDialogComponent } from './dialog.component';\nimport { PRAXIS_DIALOG_CONTENT_REGISTRY, PRAXIS_DIALOG_DATA, PRAXIS_DIALOG_I18N, PRAXIS_DIALOG_TEMPLATE_REGISTRY, PRAXIS_DIALOG_GLOBAL_PRESETS, PRAXIS_DIALOG_DEFAULTS } from './dialog.tokens';\nimport { PraxisDialogConfig, PraxisConfirmConfig, PraxisAlertConfig, PraxisPromptConfig } from './dialog.types';\nimport { PraxisDialogRef } from './dialog.ref';\nimport { FormsModule } from '@angular/forms';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { CommonModule } from '@angular/common';\nimport { Subject } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class PraxisDialog {\n private readonly overlay = inject(DialogOverlayService);\n private readonly appRef = inject(ApplicationRef);\n private readonly registry = inject(PRAXIS_DIALOG_CONTENT_REGISTRY);\n private readonly i18n = inject(PRAXIS_DIALOG_I18N);\n private readonly templateRegistry = inject(PRAXIS_DIALOG_TEMPLATE_REGISTRY);\n private readonly sanitizer = inject(DomSanitizer);\n private readonly globalPresets = inject(PRAXIS_DIALOG_GLOBAL_PRESETS);\n private readonly defaults = inject(PRAXIS_DIALOG_DEFAULTS);\n readonly afterAllClosed = new Subject<void>();\n readonly afterOpened = new Subject<PraxisDialogRef<any>>();\n private _openDialogs: PraxisDialogRef<any>[] = [];\n get openDialogs(): PraxisDialogRef<any>[] { return this._openDialogs.slice(); }\n private _seq = 0;\n\n open<T, D = any, R = any>(\n content: Type<T> | TemplateRef<any>,\n config?: PraxisDialogConfig<D>,\n ): PraxisDialogRef<T, R> {\n const injector = Injector.create({\n providers: [{ provide: PRAXIS_DIALOG_DATA, useValue: config?.data }],\n });\n const overlayRef = this.overlay.createOverlay(config ?? {}, injector);\n const ref = new PraxisDialogRef<T, R>(overlayRef);\n // Auto-id fallback if not provided\n let assignedId = config?.id ?? `praxis-dialog-${++this._seq}`;\n while (this.getDialogById(assignedId)) {\n assignedId = `praxis-dialog-${++this._seq}`;\n }\n ref.id = assignedId;\n\n const compRef = this.overlay.attachContainer(overlayRef, injector);\n const container = compRef.instance;\n // Set inputs before detectChanges so the correct branch/materialization occurs\n container.overlayMode = true;\n container.title = config?.title;\n (container as any).titleIcon = (config as any)?.icon ?? (config as any)?.titleIcon;\n container.actions = config?.actions ?? [];\n container.actionsLayout = config?.actionsLayout ?? 'stretched';\n container.animation = config?.animation ?? { type: 'translate', duration: 300 };\n container.width = config?.width;\n container.height = config?.height;\n container.minWidth = config?.minWidth;\n container.maxWidth = config?.maxWidth ?? this.defaults.maxWidth;\n container.minHeight = config?.minHeight;\n container.maxHeight = config?.maxHeight ?? this.defaults.maxHeight;\n container.themeColor = config?.themeColor ?? 'light';\n container.styles = config?.styles;\n container.disableClose = !!config?.disableClose;\n container.hasBackdrop = config?.hasBackdrop ?? true;\n container.panelClass = config?.panelClass;\n container.backdropClass = config?.backdropClass;\n container.position = config?.position;\n container.autoFocusedElement = config?.autoFocusedElement;\n (container as any).autoFocus = (config as any)?.autoFocus ?? (container as any).autoFocus;\n container.restoreFocus = config?.restoreFocus ?? true;\n container.id = assignedId;\n container.ariaRole = config?.ariaRole ?? 'dialog';\n container.ariaLabel = config?.ariaLabel;\n container.ariaLabelledBy = config?.ariaLabelledBy;\n container.ariaDescribedBy = config?.ariaDescribedBy;\n try { compRef.changeDetectorRef.detectChanges(); } catch {}\n\n const subAction = container.action.subscribe((a) => {\n if (a.close && !config?.disableClose) {\n ref.close(a.payload);\n }\n });\n const subClose = container.close.subscribe((result) => {\n if (!config?.disableClose) {\n ref.close(result);\n }\n });\n\n const backdropSub = overlayRef.backdropClick().subscribe((ev) => {\n ref.notifyBackdropClick(ev as any);\n if (!config?.disableClose && (config?.closeOnBackdropClick ?? true)) {\n ref.close();\n }\n });\n const keydownSub = overlayRef.keydownEvents().subscribe((ev) => {\n ref.notifyKeydown(ev as any);\n });\n\n // Attach portal content now that the outlet exists\n const doAttach = () => {\n if (content instanceof TemplateRef) {\n const origin = (config?.viewContainerRef as ViewContainerRef) ?? (null as unknown as ViewContainerRef);\n const portal = new TemplatePortal(content, origin, { $implicit: config?.data });\n (container as any).contentHost.attachTemplatePortal(portal);\n } else {\n const portal = new ComponentPortal<T>(content);\n const innerRef = (container as any).contentHost.attachComponentPortal(portal);\n ref.componentInstance = innerRef.instance;\n }\n };\n if ((container as any).contentHost) {\n doAttach();\n } else {\n try { compRef.changeDetectorRef.detectChanges(); } catch {}\n queueMicrotask(() => {\n if ((container as any).contentHost) doAttach();\n });\n }\n\n // Animate open then emit afterOpened\n container.beginOpenAnimation().then(() => {\n ref.emitOpened();\n this.afterOpened.next(ref);\n });\n\n overlayRef.detachments().subscribe(() => {\n subAction.unsubscribe();\n subClose.unsubscribe();\n backdropSub.unsubscribe();\n keydownSub.unsubscribe();\n });\n\n // Close animation hook\n ref.setBeforeClose(async () => {\n await container.beginCloseAnimation();\n });\n\n // Track open dialogs and notify when all are closed\n this._openDialogs.push(ref);\n ref.afterClosed().subscribe(() => {\n this._openDialogs = this._openDialogs.filter((r) => r !== ref);\n if (this._openDialogs.length === 0) this.afterAllClosed.next();\n });\n\n return ref;\n }\n\n confirm(cfg: PraxisConfirmConfig, variant?: string) {\n const merged = this.mergePresets('confirm', variant, cfg);\n const actions = [\n { text: merged.cancelLabel ?? this.i18n.cancel, role: 'secondary', close: true, id: 'cancel', payload: false },\n { text: merged.confirmLabel ?? this.i18n.ok, role: 'primary', close: true, id: 'confirm', payload: true },\n ];\n const Comp = SimpleDialogContentComponent;\n return this.open(Comp, {\n ...merged,\n actions,\n data: { message: merged.message, mode: 'confirm' },\n ariaRole: merged.ariaRole ?? 'alertdialog',\n });\n }\n\n alert(cfg: PraxisAlertConfig) {\n const merged = this.mergePresets('alert', undefined, cfg);\n const actions = [\n { text: merged.okLabel ?? this.i18n.ok, role: 'primary', close: true, id: 'ok' },\n ];\n const Comp = SimpleDialogContentComponent;\n return this.open(Comp, { ...merged, actions, data: { message: merged.message, mode: 'alert' }, ariaRole: merged.ariaRole ?? 'alertdialog' });\n }\n\n prompt(cfg: PraxisPromptConfig) {\n const merged = this.mergePresets('prompt', undefined, cfg);\n const actions = [\n { text: merged.cancelLabel ?? this.i18n.cancel, role: 'secondary', close: true, id: 'cancel', payload: null },\n { text: merged.okLabel ?? this.i18n.ok, role: 'primary', close: false, id: 'ok' },\n ];\n const Comp = SimpleDialogContentComponent;\n const ref = this.open<any, any, string | null>(Comp, { ...merged, actions, data: { message: merged.message, mode: 'prompt', placeholder: merged.placeholder, defaultValue: merged.defaultValue }, ariaRole: merged.ariaRole ?? 'dialog' });\n ref.afterOpened().subscribe(() => {\n const inst: any = (ref as any).componentInstance as SimpleDialogContentComponent;\n inst.submit = () => ref.close(inst.value ?? '');\n });\n return ref;\n }\n\n openByRegistry(id: string, config?: PraxisDialogConfig): PraxisDialogRef<any, any> {\n const comp = this.registry[id];\n if (!comp) {\n throw new Error(`Dialog registry: component '${id}' not found`);\n }\n return this.open(comp as any, config);\n }\n\n openTemplateById(templateId: string, config?: PraxisDialogConfig): PraxisDialogRef<any, any> {\n const tpl = this.templateRegistry[templateId];\n if (!tpl) throw new Error(`Dialog template '${templateId}' not found`);\n return this.open(tpl, config);\n }\n\n openSafeHtml(html: string, config?: PraxisDialogConfig): PraxisDialogRef<any, any> {\n const safe: SafeHtml = this.sanitizer.bypassSecurityTrustHtml(html);\n const Comp = SimpleHtmlDialogContentComponent;\n return this.open(Comp, { ...config, data: { safeHtml: safe } });\n }\n\n private mergePresets(type: 'confirm' | 'alert' | 'prompt', variant: string | undefined, cfg: any): any {\n const base = this.globalPresets?.[type] ?? {};\n const variantCfg = variant ? (this.globalPresets?.variants?.[variant] ?? {}) : {};\n return mergeDialogConfig(mergeDialogConfig(base, variantCfg), cfg);\n }\n\n closeAll(): void {\n const list = this._openDialogs.slice();\n list.forEach((r) => r.close());\n }\n\n getDialogById(id: string): PraxisDialogRef<any> | undefined {\n return this._openDialogs.find((r) => r.id === id);\n }\n}\n\n\n@Component({\n selector: 'praxis-simple-dialog-content',\n standalone: true,\n imports: [CommonModule, FormsModule],\n template: `\n <div class=\"pdx-simple-dialog\">\n <p *ngIf=\"message\" class=\"pdx-simple-dialog__message\">{{ message }}</p>\n <input\n *ngIf=\"mode === 'prompt'\"\n class=\"pdx-simple-dialog__input\"\n [attr.placeholder]=\"placeholder || ''\"\n [(ngModel)]=\"value\"\n />\n </div>\n `,\n})\nclass SimpleDialogContentComponent {\n message?: string;\n mode: 'confirm' | 'alert' | 'prompt' = 'alert';\n placeholder?: string;\n value?: string | null;\n submit?: () => void;\n private readonly dialogData = inject(PRAXIS_DIALOG_DATA, { optional: true } as any);\n\n constructor() {\n const data: any = this.dialogData;\n try {\n this.message = data?.message;\n this.mode = (data?.mode as any) || 'alert';\n this.placeholder = data?.placeholder;\n this.value = data?.defaultValue ?? null;\n } catch {}\n }\n}\n\n@Component({\n selector: 'praxis-simple-html-dialog-content',\n standalone: true,\n imports: [],\n template: `<div class=\"pdx-simple-dialog\" [innerHTML]=\"safeHtml\"></div>`,\n})\nclass SimpleHtmlDialogContentComponent {\n safeHtml?: SafeHtml;\n}\n\nfunction mergeDialogConfig<A extends object, B extends object>(a: A, b: B): A & B {\n const out: any = { ...(a as any) };\n for (const [k, v] of Object.entries(b || {})) {\n if (v == null) continue;\n if (k === 'styles' && typeof v === 'object') {\n out.styles = { ...(out.styles || {}), ...(v as any) };\n } else if (k === 'actions' && Array.isArray(v)) {\n out.actions = v.slice();\n } else if (typeof v === 'object' && !Array.isArray(v)) {\n out[k] = { ...(out[k] || {}), ...(v as any) };\n } else {\n out[k] = v;\n }\n }\n return out as A & B;\n}\n","import { Provider } from '@angular/core';\nimport { GlobalConfigService } from '@praxisui/core';\nimport type { GlobalDialogConfig } from '@praxisui/core';\nimport { PRAXIS_DIALOG_GLOBAL_PRESETS, PraxisDialogGlobalPresets } from '../dialog/dialog.tokens';\n\n/**\n * Provides PRAXIS_DIALOG_GLOBAL_PRESETS by transforming GlobalConfig.dialog\n * into the structure expected by @praxisui/dialog.\n */\nexport function provideDialogGlobalPresetsFromGlobalConfig(): Provider {\n return {\n provide: PRAXIS_DIALOG_GLOBAL_PRESETS,\n deps: [GlobalConfigService],\n useFactory: (gc: GlobalConfigService): PraxisDialogGlobalPresets => {\n const d = (gc.get('dialog') as GlobalDialogConfig | undefined) || undefined;\n const coerce = (entry: any) => {\n if (!entry || typeof entry !== 'object') return entry;\n const out: any = { ...entry };\n // Best-effort JSON parse for text inputs saved via editor\n const parseIfString = (v: any) => {\n if (typeof v === 'string') {\n try { return JSON.parse(v); } catch { return v; }\n }\n return v;\n };\n if (typeof out.actions === 'string') out.actions = parseIfString(out.actions);\n if (typeof out.styles === 'string') out.styles = parseIfString(out.styles);\n if (typeof out.animation === 'string') out.animation = parseIfString(out.animation);\n return out;\n };\n const variants: Record<string, any> = {};\n for (const key of Object.keys(d?.variants || {})) {\n variants[key] = coerce((d as any).variants[key]);\n }\n return {\n confirm: coerce(d?.defaults?.confirm) as any,\n alert: coerce(d?.defaults?.alert) as any,\n prompt: coerce(d?.defaults?.prompt) as any,\n variants,\n };\n },\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["coerceCssUnit","i2"],"mappings":";;;;;;;;;;;;;;;MAEa,kBAAkB,GAAG,IAAI,cAAc,CAAU,oBAAoB;MAErE,kBAAkB,GAAG,IAAI,cAAc,CAOlD,oBAAoB,EAAE;AACtB,IAAA,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;AACzE,CAAA;MAEY,sBAAsB,GAAG,IAAI,cAAc,CAKtD,wBAAwB,EAAE;AAC1B,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;AACzD,CAAA;MAGY,8BAA8B,GAAG,IAAI,cAAc,CAE9D,gCAAgC,EAAE;AAClC,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,OAAO,EAAE,CAAC;AACpB,CAAA;MAIY,+BAA+B,GAAG,IAAI,cAAc,CAE/D,iCAAiC,EAAE;AACnC,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,OAAO,EAAE,CAAC;AACpB,CAAA;MAWY,4BAA4B,GAAG,IAAI,cAAc,CAC5D,8BAA8B,EAC9B;AACE,IAAA,UA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BAAA,OAAO,CAAC;;;AAEhD,oBAAA,OAAO,CAAC;AACV,iBAAC;AACD,gBAAA,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;oBAAE,GAAG,CAAC,OAAO,GAAG,aAAa,CAAC,GAAG,CAAC,OAAO,CAAC;AAC7E,gBAAA,IAAI,OAAO,GAAG,CAAC,MAAM,KAAK,QAAQ;oBAAE,GAAG,CAAC,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,MAAM,CAAC;AAC1E,gBAAA,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,QAAQ;oBAAE,GAAG,CAAC,SAAS,GAAG,aAAa,CAAC,GAAG,CAAC,SAAS,CAAC;AACnF,gBAAA,OAAO,GAAG;AACZ,aAAC;YACD,MAAM,QAAQ,GAAwB,EAAE;AACxC,YAAA,KAAK,MAAM,GAAG,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,QAAQ,IAAI,EAAE,CAAC,EAAE;AAChD,gBAAA,QAAQ,CAAC,GAAG,CAAC,GAAG,MAAM,CAAE,CAAS,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;;YAElD,OAAO;gBACL,OAAO,EAAE,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAQ;gBAC5C,KAAK,EAAE,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,CAAQ;gBACxC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAQ;gBAC1C,QAAQ;aACT;SACF;KACF;AACH;;AC1CA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"praxisui-dialog.mjs","sources":["../../../projects/praxis-dialog/src/lib/dialog/dialog.tokens.ts","../../../projects/praxis-dialog/src/lib/dialog/dialog.ref.ts","../../../projects/praxis-dialog/src/lib/dialog/title.directive.ts","../../../projects/praxis-dialog/src/lib/dialog/actions.directive.ts","../../../projects/praxis-dialog/src/lib/dialog/content.directive.ts","../../../projects/praxis-dialog/src/lib/dialog/dialog.component.ts","../../../projects/praxis-dialog/src/lib/dialog/dialog.component.html","../../../projects/praxis-dialog/src/lib/dialog/overlay/dialog-overlay.service.ts","../../../projects/praxis-dialog/src/lib/dialog/dialog.service.ts","../../../projects/praxis-dialog/src/lib/providers/dialog-global-presets.provider.ts","../../../projects/praxis-dialog/src/lib/providers/dialog-global-actions.provider.ts","../../../projects/praxis-dialog/src/lib/examples/long-content-dialog.component.ts","../../../projects/praxis-dialog/src/lib/examples/dialog-examples.provider.ts","../../../projects/praxis-dialog/src/praxisui-dialog.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const PRAXIS_DIALOG_DATA = new InjectionToken<unknown>('PRAXIS_DIALOG_DATA');\n\nexport const PRAXIS_DIALOG_I18N = new InjectionToken<\n Readonly<{\n ok: string;\n cancel: string;\n yes: string;\n no: string;\n }>\n>('PRAXIS_DIALOG_I18N', {\n providedIn: 'root',\n factory: () => ({ ok: 'OK', cancel: 'Cancelar', yes: 'Sim', no: 'Não' }),\n});\n\nexport const PRAXIS_DIALOG_DEFAULTS = new InjectionToken<\n Readonly<{\n maxWidth: string | number;\n maxHeight: string | number;\n }>\n>('PRAXIS_DIALOG_DEFAULTS', {\n providedIn: 'root',\n factory: () => ({ maxWidth: '90vw', maxHeight: '80vh' }),\n});\n\nexport type ComponentType<T> = new (...args: any[]) => T;\nexport const PRAXIS_DIALOG_CONTENT_REGISTRY = new InjectionToken<\n Record<string, ComponentType<any>>\n>('PRAXIS_DIALOG_CONTENT_REGISTRY', {\n providedIn: 'root',\n factory: () => ({}),\n});\n\n// Template registry: id -> TemplateRef\nimport { TemplateRef } from '@angular/core';\nexport const PRAXIS_DIALOG_TEMPLATE_REGISTRY = new InjectionToken<\n Record<string, TemplateRef<any>>\n>('PRAXIS_DIALOG_TEMPLATE_REGISTRY', {\n providedIn: 'root',\n factory: () => ({}),\n});\n\n// Global presets (by type and variants)\nimport { PraxisDialogConfig } from './dialog.types';\nexport interface PraxisDialogGlobalPresets {\n confirm?: PraxisDialogConfig;\n alert?: PraxisDialogConfig;\n prompt?: PraxisDialogConfig;\n variants?: Record<string, PraxisDialogConfig>; // e.g., delete, save, destructive\n}\n\nexport const PRAXIS_DIALOG_GLOBAL_PRESETS = new InjectionToken<PraxisDialogGlobalPresets>(\n 'PRAXIS_DIALOG_GLOBAL_PRESETS',\n {\n providedIn: 'root',\n factory: () => ({}),\n },\n);\n","import { OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentRef } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\nimport { PraxisDialogPosition } from './dialog.types';\n\nexport class PraxisDialogRef<T = any, R = any> {\n id?: string;\n private readonly _afterOpened = new Subject<void>();\n private readonly _beforeClosed = new Subject<R | undefined>();\n private readonly _afterClosed = new Subject<R | undefined>();\n private readonly _backdropClick = new Subject<MouseEvent>();\n private readonly _keydownEvents = new Subject<KeyboardEvent>();\n\n componentInstance?: T;\n componentRef?: ComponentRef<T>;\n\n constructor(private overlayRef: OverlayRef) {}\n private beforeCloseHandler?: (result?: R) => Promise<void> | void;\n\n setBeforeClose(handler: (result?: R) => Promise<void> | void): void {\n this.beforeCloseHandler = handler;\n }\n\n emitOpened(): void {\n this._afterOpened.next();\n this._afterOpened.complete();\n }\n\n backdropClick(): Observable<MouseEvent> {\n return this._backdropClick.asObservable();\n }\n\n keydownEvents(): Observable<KeyboardEvent> {\n return this._keydownEvents.asObservable();\n }\n\n afterOpened(): Observable<void> {\n return this._afterOpened.asObservable();\n }\n\n beforeClosed(): Observable<R | undefined> {\n return this._beforeClosed.asObservable();\n }\n\n afterClosed(): Observable<R | undefined> {\n return this._afterClosed.asObservable();\n }\n\n notifyBackdropClick(ev: MouseEvent): void {\n this._backdropClick.next(ev);\n }\n\n notifyKeydown(ev: KeyboardEvent): void {\n this._keydownEvents.next(ev);\n }\n\n async close(result?: R): Promise<void> {\n this._beforeClosed.next(result);\n this._beforeClosed.complete();\n if (this.beforeCloseHandler) {\n try { await this.beforeCloseHandler(result); } catch {}\n }\n this.overlayRef.dispose();\n this._afterClosed.next(result);\n this._afterClosed.complete();\n this._backdropClick.complete();\n this._keydownEvents.complete();\n }\n\n updateSize(width?: string | number, height?: string | number): this {\n this.overlayRef.updateSize({\n width: coerceCssUnit(width),\n height: coerceCssUnit(height),\n });\n return this;\n }\n\n updatePosition(position?: PraxisDialogPosition): this {\n this.overlayRef.updatePositionStrategy(\n this.overlayRef.getConfig().positionStrategy!,\n );\n if (position) {\n const ps: any = this.overlayRef.getConfig().positionStrategy as any;\n if (ps?.top !== undefined && position.top != null) (ps as any).top(position.top);\n if (ps?.bottom !== undefined && position.bottom != null)\n (ps as any).bottom(position.bottom);\n if (ps?.left !== undefined && position.left != null)\n (ps as any).left(position.left);\n if (ps?.right !== undefined && position.right != null)\n (ps as any).right(position.right);\n this.overlayRef.updatePosition();\n }\n return this;\n }\n}\n\nfunction coerceCssUnit(v?: string | number): string | undefined {\n if (v == null) return undefined;\n return typeof v === 'number' ? `${v}px` : v;\n}\n","import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({ selector: 'ng-template[praxisDialogTitle]', standalone: true })\nexport class PraxisDialogTitleDirective {\n constructor(public templateRef: TemplateRef<any>) {}\n}\n\n","import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({ selector: 'ng-template[praxisDialogActions]', standalone: true })\nexport class PraxisDialogActionsDirective {\n constructor(public templateRef: TemplateRef<any>) {}\n}\n\n","import { Directive, TemplateRef } from '@angular/core';\n\n@Directive({ selector: 'ng-template[praxisDialogContent]', standalone: true })\nexport class PraxisDialogContentDirective {\n constructor(public templateRef: TemplateRef<any>) {}\n}\n\n","import {\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ElementRef,\n EventEmitter,\n HostBinding,\n Input,\n OnInit,\n OnDestroy,\n OnChanges,\n SimpleChanges,\n Output,\n ViewChild,\n ViewEncapsulation,\n inject,\n} from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { CdkPortalOutlet, PortalModule } from '@angular/cdk/portal';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { PRAXIS_DIALOG_DATA } from './dialog.tokens';\nimport { ActionsLayout, DialogAction, DialogThemeColor, DialogAnimation } from './dialog.types';\nimport { PraxisDialogTitleDirective } from './title.directive';\nimport { PraxisDialogActionsDirective } from './actions.directive';\nimport { PraxisDialogContentDirective } from './content.directive';\nimport { MatIconModule } from '@angular/material/icon';\nimport { PraxisIconDirective } from '@praxisui/core';\n\n@Component({\n selector: 'praxis-dialog',\n standalone: true,\n imports: [CommonModule, PortalModule, A11yModule, MatIconModule, PraxisIconDirective],\n templateUrl: './dialog.component.html',\n styleUrls: ['./dialog.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class PraxisDialogComponent implements OnInit, OnChanges, OnDestroy {\n @Input() title?: string;\n @Input() actions: DialogAction[] = [];\n @Input() actionsLayout: ActionsLayout = 'stretched';\n @Input() animation: boolean | DialogAnimation = true;\n @Input() open = true;\n @Input() width?: string | number;\n @Input() height?: string | number;\n @Input() minWidth?: string | number;\n @Input() maxWidth?: string | number;\n @Input() minHeight?: string | number;\n @Input() maxHeight?: string | number;\n @Input() themeColor: DialogThemeColor = 'light';\n @Input() disableClose = false;\n @Input() hasBackdrop = true;\n @Input() overlayMode = false; // true when opened via service/CDK overlay\n @Input() zIndex?: number;\n @Input() panelClass?: string | string[] | Record<string, boolean>;\n @Input() backdropClass?: string | string[] | Record<string, boolean>;\n @Input() position?: { top?: string; bottom?: string; left?: string; right?: string };\n @Input() autoFocusedElement?: string;\n @Input() autoFocus?: boolean;\n @Input() restoreFocus = true;\n @Input() id?: string;\n @Input() ariaRole: 'dialog' | 'alertdialog' = 'dialog';\n @Input() ariaLabel?: string;\n @Input() ariaLabelledBy?: string;\n @Input() ariaDescribedBy?: string;\n @Input() styles?: import('./dialog.types').PraxisDialogStyleConfig;\n @Input() titleIcon?: string;\n\n @Output() action = new EventEmitter<DialogAction>();\n @Output() close = new EventEmitter<any>();\n @Output() opened = new EventEmitter<void>();\n @Output() afterClosed = new EventEmitter<void>();\n\n @ViewChild(CdkPortalOutlet, { static: false }) contentHost!: CdkPortalOutlet;\n @ViewChild('panel', { static: true }) panelEl!: ElementRef<HTMLElement>;\n @ContentChild(PraxisDialogTitleDirective, { read: PraxisDialogTitleDirective }) titleTpl?: PraxisDialogTitleDirective;\n @ContentChild(PraxisDialogActionsDirective, { read: PraxisDialogActionsDirective }) actionsTpl?: PraxisDialogActionsDirective;\n @ContentChild(PraxisDialogContentDirective, { read: PraxisDialogContentDirective }) contentTpl?: PraxisDialogContentDirective;\n\n @HostBinding('class') hostClass = 'pdx-dialog-host';\n @HostBinding('attr.tabindex') tabindex = '-1';\n\n readonly data = inject(PRAXIS_DIALOG_DATA, { optional: true }) as unknown;\n get titleId(): string { return (this.id ?? 'praxis-dialog') + '-title'; }\n\n isDisplayed = false; // controls DOM visibility for animation in tag mode\n\n ngOnInit(): void {\n if (this.open) {\n this.isDisplayed = true;\n this.applyAnimationVars();\n this.applyStyleVars();\n this.beginOpenAnimation().then(() => {\n if (!this.overlayMode) this.opened.emit();\n });\n this.scheduleInitialFocus();\n }\n if (this.ariaRole === 'alertdialog') {\n const hasLabel = !!(this.title || this.ariaLabel || this.ariaLabelledBy);\n try {\n const isDev = typeof (globalThis as any).ngDevMode !== 'undefined' ? !!(globalThis as any).ngDevMode : true;\n if (isDev && !hasLabel) {\n console.warn('[PraxisDialog] alertdialog requires a title or aria label.');\n }\n } catch {}\n }\n }\n\n ngOnChanges(changes: SimpleChanges): void {\n if (changes['open'] && this.open) {\n this.isDisplayed = true;\n this.applyAnimationVars();\n this.applyStyleVars();\n this.beginOpenAnimation().then(() => {\n if (!this.overlayMode) this.opened.emit();\n });\n this.scheduleInitialFocus();\n }\n if (changes['open'] && !this.open && !this.overlayMode && this.isDisplayed) {\n // animate close then hide\n this.beginCloseAnimation().then(() => {\n this.isDisplayed = false;\n this.afterClosed.emit();\n if (this.restoreFocus && this._previouslyFocused && typeof this._previouslyFocused.focus === 'function') {\n try { this._previouslyFocused.focus(); } catch {}\n }\n });\n }\n if (changes['animation']) {\n this.applyAnimationVars();\n }\n if (changes['styles']) {\n this.applyStyleVars();\n }\n }\n\n onKeydown(ev: KeyboardEvent): void {\n if (ev.key === 'Escape' && !this.disableClose) {\n ev.stopPropagation();\n this.close.emit();\n }\n if ((ev.key === 'Enter' || ev.key === ' ') && !this.disableClose) {\n const target = ev.target as HTMLElement | null;\n const isInteractive = !!target && /^(BUTTON|A|INPUT|TEXTAREA|SELECT)$/.test(target.tagName);\n if (!isInteractive) {\n const primary = this.actions.find((a) => a.role === 'primary') || this.actions[0];\n if (primary) {\n ev.preventDefault();\n this.onActionClick(primary);\n }\n }\n }\n }\n\n onActionClick(a: DialogAction): void {\n this.action.emit(a);\n if (a.close) {\n this.close.emit(a.payload);\n }\n }\n\n onBackdrop(ev: MouseEvent): void {\n if (!this.hasBackdrop) return;\n if (this.disableClose) return;\n // Avoid closing when clicking inside the panel area\n this.close.emit();\n }\n\n focus(): void {\n try {\n this.panelEl?.nativeElement?.focus?.();\n } catch {}\n }\n\n private scheduleInitialFocus(): void {\n const panel = this.panelEl?.nativeElement;\n if (!panel) return;\n const prev = document.activeElement as HTMLElement | null;\n if (!this._previouslyFocused && this.restoreFocus) this._previouslyFocused = prev;\n queueMicrotask(() => {\n try {\n if (this.autoFocus && this.ariaRole === 'alertdialog') {\n // In alertdialog, focus the primary action if present\n const focused = this.focusPrimaryAction();\n if (focused) return;\n }\n if (this.autoFocusedElement) {\n const el = panel.querySelector(this.autoFocusedElement) as HTMLElement | null;\n el?.focus?.();\n return;\n }\n // focus first focusable\n const focusable = panel.querySelector(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])',\n ) as HTMLElement | null;\n (focusable || panel).focus?.();\n } catch {}\n });\n }\n\n private _previouslyFocused?: HTMLElement | null;\n ngOnDestroy(): void {\n if (this.restoreFocus && this._previouslyFocused && typeof this._previouslyFocused.focus === 'function') {\n try { this._previouslyFocused.focus(); } catch {}\n }\n }\n\n get animationClasses(): string[] {\n const anim = this.animation;\n if (!anim) return [];\n const conf: DialogAnimation = typeof anim === 'boolean' ? { type: 'translate', duration: 300 } : anim;\n const type = conf.type || 'translate';\n const dir = conf.direction || 'up';\n const map: Record<string, string> = {\n translate: `pdx-anim-translate-${dir}`,\n slide: `pdx-anim-translate-${dir}`,\n fade: 'pdx-anim-fade',\n expand: 'pdx-anim-zoom',\n zoom: 'pdx-anim-zoom',\n };\n return [map[type] || ''];\n }\n\n get panelNgClass(): Record<string, boolean> | string[] {\n const anim = this.animationClasses || [];\n const extra = this.panelClass as any;\n if (extra && typeof extra === 'object' && !Array.isArray(extra)) {\n const obj: any = { ...extra };\n for (const c of anim) obj[c] = true;\n return obj;\n }\n if (typeof extra === 'string') return [...anim, extra];\n if (Array.isArray(extra)) return [...anim, ...extra];\n return anim;\n }\n\n applyAnimationVars(): void {\n if (!this.panelEl) return;\n const anim = this.animation;\n const conf: DialogAnimation = anim === true || anim == null ? { type: 'translate', duration: 300 } : (anim as DialogAnimation);\n const dur = (conf.duration ?? 300) as number;\n try {\n this.panelEl.nativeElement.style.setProperty('--pdx-dialog-anim-duration', `${dur}ms`);\n this.panelEl.nativeElement.style.setProperty('--pdx-dialog-anim-ease', conf.easing || 'cubic-bezier(0.2, 0, 0, 1)');\n } catch {}\n }\n\n applyStyleVars(): void {\n if (!this.panelEl) return;\n const s = this.styles || {};\n const set = (name: string, value: any) => {\n if (value == null) return;\n try { this.panelEl.nativeElement.style.setProperty(name, String(value)); } catch {}\n };\n // Base\n set('--pdx-dialog-actions-padding', s.actionsPadding);\n set('--pdx-dialog-elevation-shadow', s.containerElevationShadow);\n set('--pdx-dialog-max-width', s.containerMaxWidth);\n set('--pdx-dialog-min-width', s.containerMinWidth);\n set('--pdx-dialog-shape', s.containerShape);\n set('--pdx-dialog-small-max-width', s.containerSmallMaxWidth);\n set('--pdx-dialog-content-padding', s.contentPadding);\n set('--pdx-dialog-headline-padding', s.headlinePadding);\n set('--pdx-dialog-with-actions-content-padding', s.withActionsContentPadding);\n set('--pdx-dialog-border', s.containerBorderColor);\n set('--pdx-dialog-backdrop', s.backdropColor);\n set('--pdx-dialog-action-radius', s.actionButtonRadius);\n set('--pdx-dialog-action-min-height', s.actionButtonMinHeight);\n set('--pdx-dialog-action-padding', s.actionButtonPadding);\n // Color\n set('--pdx-dialog-container-color', s.containerColor);\n set('--pdx-dialog-subhead-color', s.subheadColor);\n set('--pdx-dialog-supporting-text-color', s.supportingTextColor);\n // Typography - title\n set('--pdx-dialog-subhead-font', s.subheadFont);\n set('--pdx-dialog-subhead-line-height', s.subheadLineHeight);\n set('--pdx-dialog-subhead-size', s.subheadSize);\n set('--pdx-dialog-subhead-tracking', s.subheadTracking);\n set('--pdx-dialog-subhead-weight', s.subheadWeight);\n // Typography - content\n set('--pdx-dialog-supporting-text-font', s.supportingTextFont);\n set('--pdx-dialog-supporting-text-line-height', s.supportingTextLineHeight);\n set('--pdx-dialog-supporting-text-size', s.supportingTextSize);\n set('--pdx-dialog-supporting-text-tracking', s.supportingTextTracking);\n set('--pdx-dialog-supporting-text-weight', s.supportingTextWeight);\n // Alignment alias\n if (s.actionsAlignment) this.actionsLayout = s.actionsAlignment as any;\n }\n\n beginOpenAnimation(): Promise<void> {\n if (!this.animation) return Promise.resolve();\n const panel = this.panelEl?.nativeElement;\n if (!panel) return Promise.resolve();\n panel.classList.add('pdx-state-opening');\n return new Promise((resolve) => {\n requestAnimationFrame(() => {\n panel.classList.remove('pdx-state-opening');\n panel.classList.add('pdx-state-open');\n // resolve after transition duration\n const dur = parseFloat(getComputedStyle(panel).getPropertyValue('--pdx-dialog-anim-duration')) || 300;\n setTimeout(() => resolve(), dur);\n });\n });\n }\n\n beginCloseAnimation(): Promise<void> {\n if (!this.animation) return Promise.resolve();\n const panel = this.panelEl?.nativeElement;\n if (!panel) return Promise.resolve();\n panel.classList.add('pdx-state-closing');\n return new Promise((resolve) => {\n let done = false;\n const finish = () => { if (done) return; done = true; panel.removeEventListener('transitionend', onEnd); resolve(); };\n const onEnd = (ev: Event) => {\n if ((ev as TransitionEvent).propertyName === 'opacity' || (ev as TransitionEvent).propertyName === 'transform') finish();\n };\n panel.addEventListener('transitionend', onEnd);\n const durVar = getComputedStyle(panel).getPropertyValue('--pdx-dialog-anim-duration');\n const durMs = parseFloat(durVar) || 300;\n setTimeout(finish, durMs + 20);\n });\n }\n\n private focusPrimaryAction(): boolean {\n try {\n const panel = this.panelEl?.nativeElement;\n if (!panel) return false;\n const buttons = Array.from(panel.querySelectorAll<HTMLButtonElement>('.pdx-dialog__actions .pdx-dialog__action-btn'));\n if (buttons.length === 0) return false;\n // Prefer the first button corresponding to a primary role\n const primaryIndex = this.actions.findIndex((a) => a?.role === 'primary');\n if (primaryIndex >= 0 && buttons[primaryIndex]) {\n buttons[primaryIndex].focus();\n return true;\n }\n // Fallback to last button\n buttons[buttons.length - 1].focus();\n return true;\n } catch {\n return false;\n }\n }\n}\n\nexport const PraxisDialogDirectives = [] as const;\n","@let _titleId = (id ?? 'praxis-dialog') + '-title';\n\n<ng-template #panelHeader>\n <div class=\"pdx-dialog__title\" @if (titleTpl?.templateRef || title || titleIcon)>\n @if (titleTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"titleTpl!.templateRef\"></ng-container>\n } @else {\n <div class=\"pdx-dialog__title-row\">\n <mat-icon *ngIf=\"titleIcon\" class=\"pdx-dialog__title-icon\" [praxisIcon]=\"titleIcon\" aria-hidden=\"true\"></mat-icon>\n <h2 class=\"pdx-dialog__title-text\" [attr.id]=\"_titleId\">{{ title }}</h2>\n </div>\n }\n </div>\n </ng-template>\n\n<ng-template #panelActions>\n <div class=\"pdx-dialog__actions\" [class.is-stretched]=\"actionsLayout==='stretched'\">\n @if (actionsTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"actionsTpl!.templateRef\"></ng-container>\n } @else {\n @for (a of actions; track a?.id ?? a) {\n <button\n type=\"button\"\n class=\"pdx-dialog__action-btn\"\n [attr.data-testid]=\"a.id || null\"\n [attr.data-role]=\"a.role || null\"\n [attr.data-theme]=\"a.themeColor || null\"\n [attr.data-fill]=\"a.fillMode || null\"\n [ngClass]=\"a.cssClass\"\n (click)=\"onActionClick(a)\"\n [attr.cdkFocusInitial]=\"a.role==='primary' && ariaRole==='alertdialog' ? '' : null\"\n >\n @if (a.icon) {\n <mat-icon [praxisIcon]=\"a.icon\"></mat-icon>\n } @else if (a.svgIcon) {\n <mat-icon [svgIcon]=\"a.svgIcon\"></mat-icon>\n }\n {{ a.text }}\n </button>\n }\n }\n </div>\n</ng-template>\n\n@if (overlayMode) {\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n} @else {\n <div class=\"pdx-dialog-overlay\" [class.has-backdrop]=\"hasBackdrop\" [hidden]=\"!isDisplayed\" (click)=\"onBackdrop($event)\" [ngClass]=\"backdropClass\" [style.z-index]=\"zIndex\">\n <div class=\"pdx-dialog-shell\" (click)=\"$event.stopPropagation()\">\n <div\n #panel\n class=\"pdx-dialog pdx-dialog--{{ themeColor }} pdx-dialog--layout-{{ actionsLayout }}\"\n [attr.role]=\"ariaRole\"\n [attr.id]=\"id || null\"\n [attr.aria-modal]=\"true\"\n [attr.aria-label]=\"ariaLabel || null\"\n [attr.aria-labelledby]=\"(ariaLabelledBy || (title ? _titleId : null))\"\n [attr.aria-describedby]=\"ariaDescribedBy || null\"\n (keydown)=\"onKeydown($event)\"\n cdkTrapFocus\n [ngClass]=\"panelNgClass\"\n [style.width]=\"width\"\n [style.height]=\"height\"\n [style.min-width]=\"minWidth\"\n [style.max-width]=\"maxWidth\"\n [style.min-height]=\"minHeight\"\n [style.max-height]=\"maxHeight\"\n [style.top]=\"position?.top || null\"\n [style.bottom]=\"position?.bottom || null\"\n [style.left]=\"position?.left || null\"\n [style.right]=\"position?.right || null\"\n [class.pdx-has-position]=\"position\"\n [class.has-actions]=\"(actions.length||0)>0 || !!actionsTpl?.templateRef\"\n >\n <ng-container [ngTemplateOutlet]=\"panelHeader\"></ng-container>\n <div class=\"pdx-dialog__content\">\n @if (contentTpl?.templateRef) {\n <ng-container [ngTemplateOutlet]=\"contentTpl!.templateRef\"></ng-container>\n } @else {\n <ng-template cdkPortalOutlet></ng-template>\n }\n </div>\n <ng-container [ngTemplateOutlet]=\"panelActions\"></ng-container>\n </div>\n </div>\n </div>\n}\n","import { Injectable, Injector, inject, ComponentRef } from '@angular/core';\nimport { Overlay, OverlayConfig, OverlayModule, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal, PortalModule } from '@angular/cdk/portal';\nimport { PraxisDialogConfig } from '../dialog.types';\nimport { PraxisDialogComponent } from '../dialog.component';\n\n@Injectable({ providedIn: 'root' })\nexport class DialogOverlayService {\n private readonly overlay = inject(Overlay);\n\n createOverlay(cfg: PraxisDialogConfig, injector: Injector): OverlayRef {\n const overlayConfig = this.buildOverlayConfig(cfg);\n return this.overlay.create(overlayConfig);\n }\n\n attachContainer(ref: OverlayRef, injector: Injector): ComponentRef<PraxisDialogComponent> {\n const portal = new ComponentPortal(PraxisDialogComponent, null, injector);\n const compRef = ref.attach(portal);\n return compRef;\n }\n\n private buildOverlayConfig(cfg: PraxisDialogConfig): OverlayConfig {\n const positionStrategy = this.overlay\n .position()\n .global()\n .centerHorizontally()\n .centerVertically();\n\n if (cfg?.position) {\n if (cfg.position.top != null) positionStrategy.top(String(cfg.position.top));\n if (cfg.position.bottom != null)\n positionStrategy.bottom(String(cfg.position.bottom));\n if (cfg.position.left != null) positionStrategy.left(String(cfg.position.left));\n if (cfg.position.right != null)\n positionStrategy.right(String(cfg.position.right));\n }\n\n const scrollStrategy = (() => {\n switch (cfg?.scrollStrategy) {\n case 'noop':\n return this.overlay.scrollStrategies.noop();\n case 'reposition':\n return this.overlay.scrollStrategies.reposition();\n case 'block':\n default:\n return this.overlay.scrollStrategies.block();\n }\n })();\n\n const hasBackdrop = cfg?.hasBackdrop ?? true;\n const overlayConfig = new OverlayConfig({\n hasBackdrop,\n disposeOnNavigation: cfg?.closeOnNavigation ?? true,\n panelClass: cfg?.panelClass as any,\n backdropClass: cfg?.backdropClass as any,\n positionStrategy,\n scrollStrategy,\n width: coerceCssUnit(cfg?.width),\n height: coerceCssUnit(cfg?.height),\n });\n\n if (cfg?.zIndex != null) {\n (overlayConfig as any).zIndex = cfg.zIndex;\n }\n\n return overlayConfig;\n }\n}\n\nfunction coerceCssUnit(v?: string | number): string | undefined {\n if (v == null) return undefined;\n return typeof v === 'number' ? `${v}px` : v;\n}\n\nexport const DialogOverlayImports = [OverlayModule, PortalModule] as const;\n","import {\n ApplicationRef,\n ComponentRef,\n Injectable,\n Injector,\n TemplateRef,\n Type,\n ViewContainerRef,\n inject,\n Component,\n} from '@angular/core';\nimport { OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal, TemplatePortal } from '@angular/cdk/portal';\nimport { DialogOverlayService } from './overlay/dialog-overlay.service';\nimport { PraxisDialogComponent } from './dialog.component';\nimport { PRAXIS_DIALOG_CONTENT_REGISTRY, PRAXIS_DIALOG_DATA, PRAXIS_DIALOG_I18N, PRAXIS_DIALOG_TEMPLATE_REGISTRY, PRAXIS_DIALOG_GLOBAL_PRESETS, PRAXIS_DIALOG_DEFAULTS } from './dialog.tokens';\nimport { PraxisDialogConfig, PraxisConfirmConfig, PraxisAlertConfig, PraxisPromptConfig } from './dialog.types';\nimport { PraxisDialogRef } from './dialog.ref';\nimport { FormsModule } from '@angular/forms';\nimport { DomSanitizer, SafeHtml } from '@angular/platform-browser';\nimport { CommonModule } from '@angular/common';\nimport { Subject } from 'rxjs';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\n\n@Injectable({ providedIn: 'root' })\nexport class PraxisDialog {\n private readonly overlay = inject(DialogOverlayService);\n private readonly appRef = inject(ApplicationRef);\n private readonly registry = inject(PRAXIS_DIALOG_CONTENT_REGISTRY);\n private readonly i18n = inject(PRAXIS_DIALOG_I18N);\n private readonly templateRegistry = inject(PRAXIS_DIALOG_TEMPLATE_REGISTRY);\n private readonly sanitizer = inject(DomSanitizer);\n private readonly globalPresets = inject(PRAXIS_DIALOG_GLOBAL_PRESETS);\n private readonly defaults = inject(PRAXIS_DIALOG_DEFAULTS);\n readonly afterAllClosed = new Subject<void>();\n readonly afterOpened = new Subject<PraxisDialogRef<any>>();\n private _openDialogs: PraxisDialogRef<any>[] = [];\n get openDialogs(): PraxisDialogRef<any>[] { return this._openDialogs.slice(); }\n private _seq = 0;\n\n open<T, D = any, R = any>(\n content: Type<T> | TemplateRef<any>,\n config?: PraxisDialogConfig<D>,\n ): PraxisDialogRef<T, R> {\n const injector = Injector.create({\n providers: [{ provide: PRAXIS_DIALOG_DATA, useValue: config?.data }],\n });\n const overlayRef = this.overlay.createOverlay(config ?? {}, injector);\n const ref = new PraxisDialogRef<T, R>(overlayRef);\n // Auto-id fallback if not provided\n let assignedId = config?.id ?? `praxis-dialog-${++this._seq}`;\n while (this.getDialogById(assignedId)) {\n assignedId = `praxis-dialog-${++this._seq}`;\n }\n ref.id = assignedId;\n\n const compRef = this.overlay.attachContainer(overlayRef, injector);\n const container = compRef.instance;\n // Set inputs before detectChanges so the correct branch/materialization occurs\n container.overlayMode = true;\n container.title = config?.title;\n (container as any).titleIcon = (config as any)?.icon ?? (config as any)?.titleIcon;\n container.actions = config?.actions ?? [];\n container.actionsLayout = config?.actionsLayout ?? 'stretched';\n container.animation = config?.animation ?? { type: 'translate', duration: 300 };\n container.width = config?.width;\n container.height = config?.height;\n container.minWidth = config?.minWidth;\n container.maxWidth = config?.maxWidth ?? this.defaults.maxWidth;\n container.minHeight = config?.minHeight;\n container.maxHeight = config?.maxHeight ?? this.defaults.maxHeight;\n container.themeColor = config?.themeColor ?? 'light';\n container.styles = config?.styles;\n container.disableClose = !!config?.disableClose;\n container.hasBackdrop = config?.hasBackdrop ?? true;\n container.panelClass = config?.panelClass;\n container.backdropClass = config?.backdropClass;\n container.position = config?.position;\n container.autoFocusedElement = config?.autoFocusedElement;\n (container as any).autoFocus = (config as any)?.autoFocus ?? (container as any).autoFocus;\n container.restoreFocus = config?.restoreFocus ?? true;\n container.id = assignedId;\n container.ariaRole = config?.ariaRole ?? 'dialog';\n container.ariaLabel = config?.ariaLabel;\n container.ariaLabelledBy = config?.ariaLabelledBy;\n container.ariaDescribedBy = config?.ariaDescribedBy;\n try { compRef.changeDetectorRef.detectChanges(); } catch {}\n\n const subAction = container.action.subscribe((a) => {\n if (a.close && !config?.disableClose) {\n ref.close(a.payload);\n }\n });\n const subClose = container.close.subscribe((result) => {\n if (!config?.disableClose) {\n ref.close(result);\n }\n });\n\n const backdropSub = overlayRef.backdropClick().subscribe((ev) => {\n ref.notifyBackdropClick(ev as any);\n if (!config?.disableClose && (config?.closeOnBackdropClick ?? true)) {\n ref.close();\n }\n });\n const keydownSub = overlayRef.keydownEvents().subscribe((ev) => {\n ref.notifyKeydown(ev as any);\n });\n\n // Attach portal content now that the outlet exists\n const doAttach = () => {\n if (content instanceof TemplateRef) {\n const origin = (config?.viewContainerRef as ViewContainerRef) ?? (null as unknown as ViewContainerRef);\n const portal = new TemplatePortal(content, origin, { $implicit: config?.data });\n (container as any).contentHost.attachTemplatePortal(portal);\n } else {\n const portal = new ComponentPortal<T>(content);\n const innerRef = (container as any).contentHost.attachComponentPortal(portal);\n ref.componentInstance = innerRef.instance;\n (ref as any).componentRef = innerRef;\n }\n };\n if ((container as any).contentHost) {\n doAttach();\n } else {\n try { compRef.changeDetectorRef.detectChanges(); } catch {}\n queueMicrotask(() => {\n if ((container as any).contentHost) doAttach();\n });\n }\n\n // Animate open then emit afterOpened\n container.beginOpenAnimation().then(() => {\n ref.emitOpened();\n this.afterOpened.next(ref);\n });\n\n overlayRef.detachments().subscribe(() => {\n subAction.unsubscribe();\n subClose.unsubscribe();\n backdropSub.unsubscribe();\n keydownSub.unsubscribe();\n });\n\n // Close animation hook\n ref.setBeforeClose(async () => {\n await container.beginCloseAnimation();\n });\n\n // Track open dialogs and notify when all are closed\n this._openDialogs.push(ref);\n ref.afterClosed().subscribe(() => {\n this._openDialogs = this._openDialogs.filter((r) => r !== ref);\n if (this._openDialogs.length === 0) this.afterAllClosed.next();\n });\n\n return ref;\n }\n\n confirm(cfg: PraxisConfirmConfig, variant?: string) {\n const merged = this.mergePresets('confirm', variant, cfg);\n const actions = [\n { text: merged.cancelLabel ?? this.i18n.cancel, role: 'secondary', close: true, id: 'cancel', payload: false },\n { text: merged.confirmLabel ?? this.i18n.ok, role: 'primary', close: true, id: 'confirm', payload: true },\n ];\n const Comp = SimpleDialogContentComponent;\n return this.open(Comp, {\n ...merged,\n actions,\n data: { message: merged.message, mode: 'confirm' },\n ariaRole: merged.ariaRole ?? 'alertdialog',\n });\n }\n\n alert(cfg: PraxisAlertConfig) {\n const merged = this.mergePresets('alert', undefined, cfg);\n const actions = [\n { text: merged.okLabel ?? this.i18n.ok, role: 'primary', close: true, id: 'ok' },\n ];\n const Comp = SimpleDialogContentComponent;\n return this.open(Comp, { ...merged, actions, data: { message: merged.message, mode: 'alert' }, ariaRole: merged.ariaRole ?? 'alertdialog' });\n }\n\n prompt(cfg: PraxisPromptConfig) {\n const merged = this.mergePresets('prompt', undefined, cfg);\n const actions = [\n { text: merged.cancelLabel ?? this.i18n.cancel, role: 'secondary', close: true, id: 'cancel', payload: null },\n { text: merged.okLabel ?? this.i18n.ok, role: 'primary', close: false, id: 'ok' },\n ];\n const Comp = SimpleDialogContentComponent;\n const ref = this.open<any, any, string | null>(Comp, { ...merged, actions, data: { message: merged.message, mode: 'prompt', placeholder: merged.placeholder, defaultValue: merged.defaultValue }, ariaRole: merged.ariaRole ?? 'dialog' });\n ref.afterOpened().subscribe(() => {\n const inst: any = (ref as any).componentInstance as SimpleDialogContentComponent;\n inst.submit = () => ref.close(inst.value ?? '');\n });\n return ref;\n }\n\n openByRegistry(id: string, config?: PraxisDialogConfig): PraxisDialogRef<any, any> {\n const comp = this.registry[id];\n if (!comp) {\n throw new Error(`Dialog registry: component '${id}' not found`);\n }\n return this.open(comp as any, config);\n }\n\n openTemplateById(templateId: string, config?: PraxisDialogConfig): PraxisDialogRef<any, any> {\n const tpl = this.templateRegistry[templateId];\n if (!tpl) throw new Error(`Dialog template '${templateId}' not found`);\n return this.open(tpl, config);\n }\n\n openSafeHtml(html: string, config?: PraxisDialogConfig): PraxisDialogRef<any, any> {\n const safe: SafeHtml = this.sanitizer.bypassSecurityTrustHtml(html);\n const Comp = SimpleHtmlDialogContentComponent;\n return this.open(Comp, { ...config, data: { safeHtml: safe } });\n }\n\n private mergePresets(type: 'confirm' | 'alert' | 'prompt', variant: string | undefined, cfg: any): any {\n const base = this.globalPresets?.[type] ?? {};\n const variantCfg = variant ? (this.globalPresets?.variants?.[variant] ?? {}) : {};\n return mergeDialogConfig(mergeDialogConfig(base, variantCfg), cfg);\n }\n\n closeAll(): void {\n const list = this._openDialogs.slice();\n list.forEach((r) => r.close());\n }\n\n getDialogById(id: string): PraxisDialogRef<any> | undefined {\n return this._openDialogs.find((r) => r.id === id);\n }\n}\n\n\n@Component({\n selector: 'praxis-simple-dialog-content',\n standalone: true,\n imports: [CommonModule, FormsModule, MatFormFieldModule, MatInputModule],\n template: `\n <div class=\"pdx-simple-dialog\">\n <p *ngIf=\"message\" class=\"pdx-simple-dialog__message\">{{ message }}</p>\n <mat-form-field *ngIf=\"mode === 'prompt'\" appearance=\"outline\" class=\"pdx-simple-dialog__field\">\n <mat-label>{{ placeholder || 'Digite um valor' }}</mat-label>\n <input matInput [(ngModel)]=\"value\" />\n </mat-form-field>\n </div>\n `,\n styles: [\n `\n .pdx-simple-dialog {\n display: grid;\n gap: 12px;\n }\n .pdx-simple-dialog__message {\n margin: 0;\n }\n .pdx-simple-dialog__field {\n width: 100%;\n }\n `,\n ],\n})\nclass SimpleDialogContentComponent {\n message?: string;\n mode: 'confirm' | 'alert' | 'prompt' = 'alert';\n placeholder?: string;\n value?: string | null;\n submit?: () => void;\n private readonly dialogData = inject(PRAXIS_DIALOG_DATA, { optional: true } as any);\n\n constructor() {\n const data: any = this.dialogData;\n try {\n this.message = data?.message;\n this.mode = (data?.mode as any) || 'alert';\n this.placeholder = data?.placeholder;\n this.value = data?.defaultValue ?? null;\n } catch {}\n }\n}\n\n@Component({\n selector: 'praxis-simple-html-dialog-content',\n standalone: true,\n imports: [],\n template: `<div class=\"pdx-simple-dialog\" [innerHTML]=\"safeHtml\"></div>`,\n})\nclass SimpleHtmlDialogContentComponent {\n safeHtml?: SafeHtml;\n}\n\nfunction mergeDialogConfig<A extends object, B extends object>(a: A, b: B): A & B {\n const out: any = { ...(a as any) };\n for (const [k, v] of Object.entries(b || {})) {\n if (v == null) continue;\n if (k === 'styles' && typeof v === 'object') {\n out.styles = { ...(out.styles || {}), ...(v as any) };\n } else if (k === 'actions' && Array.isArray(v)) {\n out.actions = v.slice();\n } else if (typeof v === 'object' && !Array.isArray(v)) {\n out[k] = { ...(out[k] || {}), ...(v as any) };\n } else {\n out[k] = v;\n }\n }\n return out as A & B;\n}\n","import { Provider } from '@angular/core';\nimport { GlobalConfigService } from '@praxisui/core';\nimport type { GlobalDialogConfig } from '@praxisui/core';\nimport { PRAXIS_DIALOG_GLOBAL_PRESETS, PraxisDialogGlobalPresets } from '../dialog/dialog.tokens';\n\n/**\n * Provides PRAXIS_DIALOG_GLOBAL_PRESETS by transforming GlobalConfig.dialog\n * into the structure expected by @praxisui/dialog.\n */\nexport function provideDialogGlobalPresetsFromGlobalConfig(): Provider {\n return {\n provide: PRAXIS_DIALOG_GLOBAL_PRESETS,\n deps: [GlobalConfigService],\n useFactory: (gc: GlobalConfigService): PraxisDialogGlobalPresets => {\n const d = (gc.get('dialog') as GlobalDialogConfig | undefined) || undefined;\n const coerce = (entry: any) => {\n if (!entry || typeof entry !== 'object') return entry;\n const out: any = { ...entry };\n // Best-effort JSON parse for text inputs saved via editor\n const parseIfString = (v: any) => {\n if (typeof v === 'string') {\n try { return JSON.parse(v); } catch { return v; }\n }\n return v;\n };\n if (typeof out.actions === 'string') out.actions = parseIfString(out.actions);\n if (typeof out.styles === 'string') out.styles = parseIfString(out.styles);\n if (typeof out.animation === 'string') out.animation = parseIfString(out.animation);\n return out;\n };\n const variants: Record<string, any> = {};\n for (const key of Object.keys(d?.variants || {})) {\n variants[key] = coerce((d as any).variants[key]);\n }\n return {\n confirm: coerce(d?.defaults?.confirm) as any,\n alert: coerce(d?.defaults?.alert) as any,\n prompt: coerce(d?.defaults?.prompt) as any,\n variants,\n };\n },\n };\n}\n","import { inject, Provider } from '@angular/core';\nimport { firstValueFrom } from 'rxjs';\nimport {\n ComponentMetadataRegistry,\n GLOBAL_DIALOG_SERVICE,\n GlobalDialogService,\n} from '@praxisui/core';\nimport { PraxisDialog } from '../dialog/dialog.service';\nimport type { PraxisDialogConfig } from '../dialog/dialog.types';\n\ntype DialogActionPayload = {\n title?: string;\n message?: string;\n variant?: string;\n componentId?: string;\n inputs?: Record<string, any>;\n size?: { width?: string; height?: string };\n data?: any;\n width?: string;\n height?: string;\n minWidth?: string;\n maxWidth?: string;\n minHeight?: string;\n maxHeight?: string;\n themeColor?: string;\n disableClose?: boolean;\n hasBackdrop?: boolean;\n panelClass?: string;\n backdropClass?: string;\n position?: any;\n};\n\nfunction buildConfig(payload?: DialogActionPayload): PraxisDialogConfig {\n if (!payload) return {};\n return {\n title: payload.title,\n message: payload.message,\n data: payload.data,\n width: payload.size?.width ?? payload.width,\n height: payload.size?.height ?? payload.height,\n minWidth: payload.minWidth,\n maxWidth: payload.maxWidth,\n minHeight: payload.minHeight,\n maxHeight: payload.maxHeight,\n themeColor: payload.themeColor ?? payload.variant,\n disableClose: payload.disableClose,\n hasBackdrop: payload.hasBackdrop,\n panelClass: payload.panelClass,\n backdropClass: payload.backdropClass,\n position: payload.position,\n } as PraxisDialogConfig;\n}\n\nfunction applyInputs(instance: any, inputs?: Record<string, any>, ref?: any): void {\n if (!instance || !inputs) return;\n for (const [key, value] of Object.entries(inputs)) {\n try { (instance as any)[key] = value; } catch {}\n }\n try {\n if (ref?.componentRef?.changeDetectorRef?.detectChanges) {\n ref.componentRef.changeDetectorRef.detectChanges();\n } else if ((instance as any).changeDetectorRef?.detectChanges) {\n (instance as any).changeDetectorRef.detectChanges();\n }\n } catch {}\n}\n\nexport function providePraxisDialogGlobalActions(): Provider {\n return {\n provide: GLOBAL_DIALOG_SERVICE,\n useFactory: (): GlobalDialogService => {\n const dialog = inject(PraxisDialog);\n const registry = (() => { try { return inject(ComponentMetadataRegistry); } catch { return null; } })();\n\n return {\n alert: async (payload) => {\n const cfg = buildConfig(payload);\n const ref = dialog.alert(cfg as any);\n return firstValueFrom(ref.afterClosed());\n },\n confirm: async (payload) => {\n const cfg = buildConfig(payload);\n const ref = dialog.confirm(cfg as any);\n return firstValueFrom(ref.afterClosed());\n },\n prompt: async (payload) => {\n const cfg = buildConfig(payload);\n const ref = dialog.prompt(cfg as any);\n return firstValueFrom(ref.afterClosed());\n },\n open: async (payload) => {\n const cfg = buildConfig(payload);\n const componentId = payload?.componentId;\n if (!componentId) throw new Error('dialog.open requires componentId');\n let ref: any;\n const meta = registry?.get(componentId);\n if (meta?.component) {\n ref = dialog.open(meta.component as any, cfg);\n } else {\n ref = dialog.openByRegistry(componentId, cfg);\n }\n applyInputs(ref?.componentInstance, payload?.inputs, ref);\n return firstValueFrom(ref.afterClosed());\n },\n };\n },\n };\n}\n","import { CommonModule } from '@angular/common';\nimport { Component } from '@angular/core';\n\n@Component({\n selector: 'praxis-long-content-dialog-example',\n standalone: true,\n imports: [CommonModule],\n template: `\n <div class=\"pdx-long-content\">\n <p>\n This is a long content example to validate scroll behavior inside PraxisDialog.\n </p>\n <p>\n The content is intentionally verbose so the body must scroll while the header\n and actions remain visible.\n </p>\n <ul>\n <li *ngFor=\"let item of items\">{{ item }}</li>\n </ul>\n <p>\n End of the long content example.\n </p>\n </div>\n `,\n styles: [\n `\n .pdx-long-content {\n display: grid;\n gap: 12px;\n color: var(--md-sys-color-on-surface, #111);\n }\n .pdx-long-content p {\n margin: 0;\n }\n .pdx-long-content ul {\n margin: 0;\n padding-left: 20px;\n }\n `,\n ],\n})\nexport class LongContentDialogExampleComponent {\n readonly items = Array.from({ length: 40 }, (_, idx) => `Example line ${idx + 1}`);\n}\n","import { ENVIRONMENT_INITIALIZER } from '@angular/core';\nimport { PRAXIS_DIALOG_CONTENT_REGISTRY } from '../dialog/dialog.tokens';\nimport { LongContentDialogExampleComponent } from './long-content-dialog.component';\n\nexport const PRAXIS_DIALOG_EXAMPLE_LONG_CONTENT = 'praxis.long-content-example';\n\nexport function providePraxisDialogExamples() {\n return {\n provide: ENVIRONMENT_INITIALIZER,\n multi: true,\n useFactory: (registry: Record<string, any>) => () => {\n registry[PRAXIS_DIALOG_EXAMPLE_LONG_CONTENT] =\n LongContentDialogExampleComponent;\n },\n deps: [PRAXIS_DIALOG_CONTENT_REGIS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AAA;kBAtC7C,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oCAAoC,cAClC,IAAI,EAAA,OAAA,EACP,CAAC,YAAY,CAAC,EAAA,QAAA,EACb;;;;;;;;;;;;;;;;AAgBT,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,oKAAA,CAAA,EAAA;;;ACnBI,MAAM,kCAAkC,GAAG;SAElC,2BAA2B,GAAA;IACzC,OAAO;AACL,QAAA,OAAO,EAAE,uBAAuB;AAChC,QAAA,KAAK,EAAE,IAAI;AACX,QAAA,UAAU,EAAE,CAAC,QAA6B,KAAK,MAAK;YAClD,QAAQ,CAAC,kCAAkC,CAAC;AAC1C,gBAAA,iCAAiC;SACpC;QACD,IAAI,EAAE,CAAC,8BAA8B,CAAC;KACvC;AACH;;AChBA;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, TemplateRef, OnInit, OnChanges, OnDestroy, EventEmitter, ElementRef, SimpleChanges, Type, Provider } from '@angular/core';
|
|
2
|
+
import { InjectionToken, TemplateRef, ComponentRef, OnInit, OnChanges, OnDestroy, EventEmitter, ElementRef, SimpleChanges, Type, Provider } from '@angular/core';
|
|
3
3
|
import { OverlayRef } from '@angular/cdk/overlay';
|
|
4
4
|
import { Observable, Subject } from 'rxjs';
|
|
5
5
|
import { CdkPortalOutlet } from '@angular/cdk/portal';
|
|
@@ -35,6 +35,7 @@ interface PraxisDialogPosition {
|
|
|
35
35
|
interface PraxisDialogConfig<D = any> {
|
|
36
36
|
data?: D;
|
|
37
37
|
title?: string;
|
|
38
|
+
titleIcon?: string;
|
|
38
39
|
actions?: DialogAction[];
|
|
39
40
|
actionsLayout?: ActionsLayout;
|
|
40
41
|
animation?: boolean | DialogAnimation;
|
|
@@ -73,10 +74,15 @@ interface PraxisDialogStyleConfig {
|
|
|
73
74
|
containerMaxWidth?: string;
|
|
74
75
|
containerMinWidth?: string;
|
|
75
76
|
containerShape?: string;
|
|
77
|
+
containerBorderColor?: string;
|
|
76
78
|
containerSmallMaxWidth?: string;
|
|
77
79
|
contentPadding?: string;
|
|
78
80
|
headlinePadding?: string;
|
|
79
81
|
withActionsContentPadding?: string;
|
|
82
|
+
backdropColor?: string;
|
|
83
|
+
actionButtonRadius?: string;
|
|
84
|
+
actionButtonMinHeight?: string;
|
|
85
|
+
actionButtonPadding?: string;
|
|
80
86
|
containerColor?: string;
|
|
81
87
|
subheadColor?: string;
|
|
82
88
|
supportingTextColor?: string;
|
|
@@ -154,6 +160,7 @@ declare class PraxisDialogRef<T = any, R = any> {
|
|
|
154
160
|
private readonly _backdropClick;
|
|
155
161
|
private readonly _keydownEvents;
|
|
156
162
|
componentInstance?: T;
|
|
163
|
+
componentRef?: ComponentRef<T>;
|
|
157
164
|
constructor(overlayRef: OverlayRef);
|
|
158
165
|
private beforeCloseHandler?;
|
|
159
166
|
setBeforeClose(handler: (result?: R) => Promise<void> | void): void;
|
|
@@ -306,5 +313,21 @@ declare class SimpleDialogContentComponent {
|
|
|
306
313
|
*/
|
|
307
314
|
declare function provideDialogGlobalPresetsFromGlobalConfig(): Provider;
|
|
308
315
|
|
|
309
|
-
|
|
316
|
+
declare function providePraxisDialogGlobalActions(): Provider;
|
|
317
|
+
|
|
318
|
+
declare class LongContentDialogExampleComponent {
|
|
319
|
+
readonly items: string[];
|
|
320
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LongContentDialogExampleComponent, never>;
|
|
321
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LongContentDialogExampleComponent, "praxis-long-content-dialog-example", never, {}, {}, never, never, true, never>;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
declare const PRAXIS_DIALOG_EXAMPLE_LONG_CONTENT = "praxis.long-content-example";
|
|
325
|
+
declare function providePraxisDialogExamples(): {
|
|
326
|
+
provide: i0.InjectionToken<readonly (() => void)[]>;
|
|
327
|
+
multi: boolean;
|
|
328
|
+
useFactory: (registry: Record<string, any>) => () => void;
|
|
329
|
+
deps: i0.InjectionToken<Record<string, ComponentType<any>>>[];
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
export { LongContentDialogExampleComponent, PRAXIS_DIALOG_CONTENT_REGISTRY, PRAXIS_DIALOG_DATA, PRAXIS_DIALOG_DEFAULTS, PRAXIS_DIALOG_EXAMPLE_LONG_CONTENT, PRAXIS_DIALOG_GLOBAL_PRESETS, PRAXIS_DIALOG_I18N, PRAXIS_DIALOG_TEMPLATE_REGISTRY, PraxisDialog, PraxisDialogActionsDirective, PraxisDialogComponent, PraxisDialogContentDirective, PraxisDialogDirectives, PraxisDialogRef, PraxisDialogTitleDirective, provideDialogGlobalPresetsFromGlobalConfig, providePraxisDialogExamples, providePraxisDialogGlobalActions };
|
|
310
333
|
export type { ActionsLayout, AnimationDirection, ComponentType, DialogAction, DialogAnimation, DialogAnimationType, DialogContentDescriptor, DialogThemeColor, PraxisAlertConfig, PraxisConfirmConfig, PraxisDialogConfig, PraxisDialogGlobalPresets, PraxisDialogPosition, PraxisDialogStyleConfig, PraxisPromptConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dialog",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.41",
|
|
4
4
|
"description": "Dialog helpers and components for Praxis UI with Angular Material integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
|
20
|
-
"url": "https://github.com/codexrodrigues/praxis"
|
|
20
|
+
"url": "https://github.com/codexrodrigues/praxis-ui-angular"
|
|
21
21
|
},
|
|
22
|
-
"homepage": "https://github.com/codexrodrigues/praxis#readme",
|
|
22
|
+
"homepage": "https://github.com/codexrodrigues/praxis-ui-angular#readme",
|
|
23
23
|
"bugs": {
|
|
24
|
-
"url": "https://github.com/codexrodrigues/praxis/issues"
|
|
24
|
+
"url": "https://github.com/codexrodrigues/praxis-ui-angular/issues"
|
|
25
25
|
},
|
|
26
26
|
"keywords": [
|
|
27
27
|
"angular",
|