@praxisui/settings-panel 9.0.4-rc.36 → 9.0.4-rc.38
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-08-
|
|
3
|
+
"generatedAt": "2026-08-10T00:53:13.101Z",
|
|
4
4
|
"packageName": "@praxisui/settings-panel",
|
|
5
|
-
"packageVersion": "9.0.4-rc.
|
|
5
|
+
"packageVersion": "9.0.4-rc.38",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -1891,7 +1891,7 @@ class SurfaceDrawerComponent {
|
|
|
1891
1891
|
return frame.componentRef;
|
|
1892
1892
|
}
|
|
1893
1893
|
pushFrame(definition, injector, inputs) {
|
|
1894
|
-
this.captureActiveFrameState();
|
|
1894
|
+
this.captureActiveFrameState(definition.returnFocusTo);
|
|
1895
1895
|
this.detachActiveView();
|
|
1896
1896
|
const frame = this.createFrame(definition, injector, inputs);
|
|
1897
1897
|
this.frames.push(frame);
|
|
@@ -1964,11 +1964,15 @@ class SurfaceDrawerComponent {
|
|
|
1964
1964
|
canLeave: definition.canLeave ?? null,
|
|
1965
1965
|
};
|
|
1966
1966
|
}
|
|
1967
|
-
captureActiveFrameState() {
|
|
1967
|
+
captureActiveFrameState(returnFocusTo) {
|
|
1968
1968
|
const active = this.frames[this.frames.length - 1];
|
|
1969
1969
|
if (!active)
|
|
1970
1970
|
return;
|
|
1971
1971
|
active.scrollTop = this.body?.nativeElement.scrollTop ?? 0;
|
|
1972
|
+
if (returnFocusTo?.isConnected) {
|
|
1973
|
+
active.restoreFocusTo = returnFocusTo;
|
|
1974
|
+
return;
|
|
1975
|
+
}
|
|
1972
1976
|
const focused = typeof document !== 'undefined'
|
|
1973
1977
|
? document.activeElement
|
|
1974
1978
|
: null;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/settings-panel",
|
|
3
|
-
"version": "9.0.4-rc.
|
|
3
|
+
"version": "9.0.4-rc.38",
|
|
4
4
|
"description": "Settings panel for Praxis UI libraries: open editors for configuration at runtime and persist settings.",
|
|
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/material": "^21.0.0",
|
|
10
|
-
"@praxisui/ai": "^9.0.4-rc.
|
|
11
|
-
"@praxisui/core": "^9.0.4-rc.
|
|
12
|
-
"@praxisui/dynamic-fields": "^9.0.4-rc.
|
|
10
|
+
"@praxisui/ai": "^9.0.4-rc.38",
|
|
11
|
+
"@praxisui/core": "^9.0.4-rc.38",
|
|
12
|
+
"@praxisui/dynamic-fields": "^9.0.4-rc.38",
|
|
13
13
|
"rxjs": "~7.8.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|