@praxisui/dialog 8.0.0-beta.60 → 8.0.0-beta.61

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.
@@ -9,7 +9,7 @@ import * as i3 from '@angular/cdk/a11y';
9
9
  import { A11yModule } from '@angular/cdk/a11y';
10
10
  import * as i4 from '@angular/material/icon';
11
11
  import { MatIconModule } from '@angular/material/icon';
12
- import { PraxisIconDirective, PraxisLayerScaleStyleService, GlobalConfigService, GLOBAL_DIALOG_SERVICE, ComponentMetadataRegistry, GLOBAL_SURFACE_SERVICE, SURFACE_DRAWER_BRIDGE, PraxisSurfaceHostComponent } from '@praxisui/core';
12
+ import { PraxisIconDirective, PraxisLayerScaleStyleService, GlobalConfigService, GLOBAL_DIALOG_SERVICE, ComponentMetadataRegistry, GLOBAL_SURFACE_SERVICE, SurfaceOpenMaterializerService, SURFACE_DRAWER_BRIDGE, PraxisSurfaceHostComponent } from '@praxisui/core';
13
13
  import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
14
14
  import * as i1$1 from '@angular/forms';
15
15
  import { FormsModule } from '@angular/forms';
@@ -1146,37 +1146,39 @@ function providePraxisSurfaceGlobalActions() {
1146
1146
  provide: GLOBAL_SURFACE_SERVICE,
1147
1147
  useFactory: () => {
1148
1148
  const dialog = inject(PraxisDialog);
1149
+ const materializer = inject(SurfaceOpenMaterializerService);
1149
1150
  const surfaceDrawer = inject(SURFACE_DRAWER_BRIDGE, {
1150
1151
  optional: true,
1151
1152
  });
1152
1153
  return {
1153
1154
  open: async (payload, context) => {
1154
- const hostInputs = buildHostInputs(payload, context);
1155
- if (payload.presentation === 'drawer') {
1155
+ const materializedPayload = await materializer.materialize(payload, context);
1156
+ const hostInputs = buildHostInputs(materializedPayload, context);
1157
+ if (materializedPayload.presentation === 'drawer') {
1156
1158
  if (!surfaceDrawer) {
1157
1159
  throw new Error('Drawer surface service not available');
1158
1160
  }
1159
1161
  const ref = surfaceDrawer.open({
1160
- id: `surface:${payload.widget.id}`,
1161
- title: payload.title || payload.widget.id,
1162
- titleIcon: payload.icon,
1163
- subtitle: payload.subtitle,
1164
- width: payload.size?.width,
1165
- minWidth: payload.size?.minWidth,
1166
- maxWidth: payload.size?.maxWidth,
1167
- height: payload.size?.height,
1168
- minHeight: payload.size?.minHeight,
1169
- maxHeight: payload.size?.maxHeight,
1162
+ id: `surface:${materializedPayload.widget.id}`,
1163
+ title: materializedPayload.title || materializedPayload.widget.id,
1164
+ titleIcon: materializedPayload.icon,
1165
+ subtitle: materializedPayload.subtitle,
1166
+ width: materializedPayload.size?.width,
1167
+ minWidth: materializedPayload.size?.minWidth,
1168
+ maxWidth: materializedPayload.size?.maxWidth,
1169
+ height: materializedPayload.size?.height,
1170
+ minHeight: materializedPayload.size?.minHeight,
1171
+ maxHeight: materializedPayload.size?.maxHeight,
1170
1172
  content: {
1171
1173
  component: PraxisSurfaceHostComponent,
1172
- inputs: buildHostInputs(payload, context, {
1174
+ inputs: buildHostInputs(materializedPayload, context, {
1173
1175
  includeSubtitle: false,
1174
1176
  }),
1175
1177
  },
1176
1178
  });
1177
1179
  return ref;
1178
1180
  }
1179
- const ref = dialog.open(PraxisSurfaceHostComponent, buildDialogConfig(payload));
1181
+ const ref = dialog.open(PraxisSurfaceHostComponent, buildDialogConfig(materializedPayload));
1180
1182
  applySurfaceHostInputs(ref, hostInputs);
1181
1183
  return ref;
1182
1184
  },
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@praxisui/dialog",
3
- "version": "8.0.0-beta.60",
3
+ "version": "8.0.0-beta.61",
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": "^8.0.0-beta.60",
10
+ "@praxisui/core": "^8.0.0-beta.61",
11
11
  "@angular/material": "^21.0.0",
12
12
  "@angular/platform-browser": "^21.0.0",
13
13
  "rxjs": "~7.8.0"