@praxisui/dialog 9.0.7 → 9.0.8
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 +2 -0
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-dialog.mjs +5 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -154,6 +154,8 @@ Component-specific dialog variables remain available for deliberate local custom
|
|
|
154
154
|
|
|
155
155
|
`PraxisDialog` configures dialog roles, backdrop behavior, Escape handling, focus restoration and `aria-*` fields. Use `ariaRole: 'alertdialog'` for destructive or blocking confirmations, and always provide a visible title or accessible label.
|
|
156
156
|
|
|
157
|
+
Overlay sizing is applied to the CDK pane and to the dialog panel. `width` and `height` therefore remain centered when constrained by `minWidth`, `maxWidth`, `minHeight` or `maxHeight` on narrow viewports; hosts should not add local overlay-positioning CSS for this behavior.
|
|
158
|
+
|
|
157
159
|
Closable dialogs with role `dialog` also expose an accessible close button in the title bar. It follows the same `disableClose` policy as Escape and backdrop interactions. The runtime does not add this shortcut to `alertdialog`, whose explicit governed actions remain the required decision path. Hosts that override `PRAXIS_DIALOG_I18N` may provide `close`; older providers remain compatible and fall back to their localized `cancel` label.
|
|
158
160
|
|
|
159
161
|
## Official Links
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-08-
|
|
3
|
+
"generatedAt": "2026-08-20T18:11:26.392Z",
|
|
4
4
|
"packageName": "@praxisui/dialog",
|
|
5
|
-
"packageVersion": "9.0.
|
|
5
|
+
"packageVersion": "9.0.8",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -660,6 +660,7 @@ const PraxisDialogDirectives = [];
|
|
|
660
660
|
|
|
661
661
|
class DialogOverlayService {
|
|
662
662
|
overlay = inject(Overlay);
|
|
663
|
+
defaults = inject(PRAXIS_DIALOG_DEFAULTS);
|
|
663
664
|
createOverlay(cfg) {
|
|
664
665
|
const overlayConfig = this.buildOverlayConfig(cfg);
|
|
665
666
|
return this.overlay.create(overlayConfig);
|
|
@@ -709,6 +710,10 @@ class DialogOverlayService {
|
|
|
709
710
|
scrollStrategy,
|
|
710
711
|
width: coerceCssUnit(cfg?.width),
|
|
711
712
|
height: coerceCssUnit(cfg?.height),
|
|
713
|
+
minWidth: coerceCssUnit(cfg?.minWidth),
|
|
714
|
+
maxWidth: coerceCssUnit(cfg?.maxWidth ?? this.defaults.maxWidth),
|
|
715
|
+
minHeight: coerceCssUnit(cfg?.minHeight),
|
|
716
|
+
maxHeight: coerceCssUnit(cfg?.maxHeight ?? this.defaults.maxHeight),
|
|
712
717
|
});
|
|
713
718
|
if (cfg?.zIndex != null) {
|
|
714
719
|
overlayConfig.zIndex = cfg.zIndex;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dialog",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.8",
|
|
4
4
|
"description": "Dialog helpers and components for Praxis UI with Angular Material integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/cdk": "^21.0.0",
|
|
9
9
|
"@angular/forms": "^21.0.0",
|
|
10
|
-
"@praxisui/core": "^9.0.
|
|
10
|
+
"@praxisui/core": "^9.0.8",
|
|
11
11
|
"@angular/material": "^21.0.0",
|
|
12
12
|
"@angular/platform-browser": "^21.0.0",
|
|
13
13
|
"rxjs": "~7.8.0"
|