@praxisui/dialog 8.0.0-beta.2 → 8.0.0-beta.4
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/fesm2022/praxisui-dialog.mjs +16 -5
- package/package.json +2 -2
|
@@ -1093,6 +1093,21 @@ function buildHostInputs(payload, context, options) {
|
|
|
1093
1093
|
},
|
|
1094
1094
|
};
|
|
1095
1095
|
}
|
|
1096
|
+
function applySurfaceHostInputs(ref, hostInputs) {
|
|
1097
|
+
const apply = () => {
|
|
1098
|
+
if (!ref.componentInstance)
|
|
1099
|
+
return false;
|
|
1100
|
+
Object.assign(ref.componentInstance, hostInputs);
|
|
1101
|
+
try {
|
|
1102
|
+
ref.componentRef?.changeDetectorRef?.detectChanges();
|
|
1103
|
+
}
|
|
1104
|
+
catch { }
|
|
1105
|
+
return true;
|
|
1106
|
+
};
|
|
1107
|
+
if (apply())
|
|
1108
|
+
return;
|
|
1109
|
+
queueMicrotask(apply);
|
|
1110
|
+
}
|
|
1096
1111
|
function providePraxisSurfaceGlobalActions() {
|
|
1097
1112
|
return {
|
|
1098
1113
|
provide: GLOBAL_SURFACE_SERVICE,
|
|
@@ -1129,11 +1144,7 @@ function providePraxisSurfaceGlobalActions() {
|
|
|
1129
1144
|
return firstValueFrom(ref.closed$);
|
|
1130
1145
|
}
|
|
1131
1146
|
const ref = dialog.open(PraxisSurfaceHostComponent, buildDialogConfig(payload));
|
|
1132
|
-
|
|
1133
|
-
try {
|
|
1134
|
-
ref.componentRef?.changeDetectorRef?.detectChanges();
|
|
1135
|
-
}
|
|
1136
|
-
catch { }
|
|
1147
|
+
applySurfaceHostInputs(ref, hostInputs);
|
|
1137
1148
|
return firstValueFrom(ref.afterClosed());
|
|
1138
1149
|
},
|
|
1139
1150
|
};
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dialog",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.4",
|
|
4
4
|
"description": "Dialog helpers and components for Praxis UI with Angular Material integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
8
8
|
"@angular/cdk": "^20.0.0",
|
|
9
9
|
"@angular/forms": "^20.0.0",
|
|
10
|
-
"@praxisui/core": "^8.0.0-beta.
|
|
10
|
+
"@praxisui/core": "^8.0.0-beta.4"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
13
|
"tslib": "^2.3.0"
|