Add reusable centered DOM modal resizing with preference adapter

This commit is contained in:
DCCONSTRUCTIONS
2026-11-13 17:52:26 +03:00
parent 661ca2afd2
commit 1ec17b3098
9 changed files with 147 additions and 4 deletions
+5 -2
View File
@@ -420,7 +420,9 @@
],
"domPackage": "@nodedc/ui-dom",
"domExports": [
"createModalController"
"createModalController",
"createModalSizeController",
"fitModalSize"
],
"domContract": [
"nodedc-overlay",
@@ -437,7 +439,8 @@
"modal-only body scroll lock",
"optional bounded dragging for modeless inspectors",
"move toggle: preserve mounted contents and current size; remove dimming, backdrop close, scroll lock and focus trap; header drag and eight invisible resize regions",
"Escape and Tab belong to the focused or topmost visible modal; parent windows do not dismiss behind nested settings."
"Escape and Tab belong to the focused or topmost visible modal; parent windows do not dismiss behind nested settings.",
"DOM modal resizing shares eight canonical edge handles, centered viewport bounds and keyboard Shift+arrow control; onSizeCommit runs only for completed user changes."
],
"rules": [
"headerActionsPlacement=before-close places context actions between the move toggle and close in both visual and keyboard order; the default preserves existing consumers.",