@praxisui/dynamic-fields 9.0.0-beta.42 → 9.0.0-beta.43

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-07-07T12:05:35.013Z",
3
+ "generatedAt": "2026-07-07T19:18:40.145Z",
4
4
  "packageName": "@praxisui/dynamic-fields",
5
- "packageVersion": "9.0.0-beta.42",
5
+ "packageVersion": "9.0.0-beta.43",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 76,
@@ -13219,10 +13219,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
13219
13219
  }] } });
13220
13220
 
13221
13221
  class InlineEntityLookupComponent extends MaterialAsyncSelectComponent {
13222
+ detailServiceInjector = inject(Injector);
13222
13223
  dialog = inject(MatDialog);
13223
- globalActions = inject(GlobalActionService, { optional: true });
13224
- resourceDiscovery = inject(ResourceDiscoveryService, { optional: true });
13225
- surfaceOpenAdapter = inject(ResourceSurfaceOpenAdapterService, { optional: true });
13226
13224
  inlineMinWidthPx = 148;
13227
13225
  inlineMaxWidthPx = 420;
13228
13226
  fieldLabelText = 'Lookup';
@@ -13609,7 +13607,13 @@ class InlineEntityLookupComponent extends MaterialAsyncSelectComponent {
13609
13607
  const wantsSurface = String(detail?.kind || '').toLowerCase() === 'surface'
13610
13608
  || !!detail?.surfaceId
13611
13609
  || String(detail?.openDetailMode || '').toLowerCase() === 'surface';
13612
- if (!wantsSurface || !this.globalActions || !this.resourceDiscovery || !this.surfaceOpenAdapter) {
13610
+ if (!wantsSurface) {
13611
+ return false;
13612
+ }
13613
+ const globalActions = this.detailServiceInjector.get(GlobalActionService, null);
13614
+ const resourceDiscovery = this.detailServiceInjector.get(ResourceDiscoveryService, null);
13615
+ const surfaceOpenAdapter = this.detailServiceInjector.get(ResourceSurfaceOpenAdapterService, null);
13616
+ if (!globalActions || !resourceDiscovery || !surfaceOpenAdapter) {
13613
13617
  return false;
13614
13618
  }
13615
13619
  const resourcePath = this.lookupOptionSource()?.resourcePath || this.resourcePath();
@@ -13618,12 +13622,12 @@ class InlineEntityLookupComponent extends MaterialAsyncSelectComponent {
13618
13622
  return false;
13619
13623
  }
13620
13624
  try {
13621
- const catalog = await firstValueFrom(this.resourceDiscovery.fetchJson(this.itemSurfacesHref(resourcePath, resourceId)));
13625
+ const catalog = await firstValueFrom(resourceDiscovery.fetchJson(this.itemSurfacesHref(resourcePath, resourceId)));
13622
13626
  const surface = this.selectDetailSurface(catalog?.surfaces || [], detail?.surfaceId);
13623
13627
  if (!surface) {
13624
13628
  return false;
13625
13629
  }
13626
- const payload = this.surfaceOpenAdapter.toPayload(surface, {
13630
+ const payload = surfaceOpenAdapter.toPayload(surface, {
13627
13631
  resourcePath,
13628
13632
  resourceId,
13629
13633
  presentation: this.lookupDetailPresentation(detail?.presentation),
@@ -13631,7 +13635,7 @@ class InlineEntityLookupComponent extends MaterialAsyncSelectComponent {
13631
13635
  subtitle: item.description || surface.description || undefined,
13632
13636
  icon: 'badge',
13633
13637
  });
13634
- const result = await this.globalActions.execute('surface.open', payload, {
13638
+ const result = await globalActions.execute('surface.open', payload, {
13635
13639
  sourceId: this.componentId(),
13636
13640
  output: 'entityLookup.detail',
13637
13641
  payload: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/dynamic-fields",
3
- "version": "9.0.0-beta.42",
3
+ "version": "9.0.0-beta.43",
4
4
  "description": "Angular Material-based dynamic form fields for Praxis UI with lazy loading and metadata-driven rendering.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -11,8 +11,8 @@
11
11
  "@angular/platform-browser": "^21.0.0",
12
12
  "@angular/router": "^21.0.0",
13
13
  "rxjs": "^7.8.0",
14
- "@praxisui/core": "^9.0.0-beta.42",
15
- "@praxisui/cron-builder": "^9.0.0-beta.42"
14
+ "@praxisui/core": "^9.0.0-beta.43",
15
+ "@praxisui/cron-builder": "^9.0.0-beta.43"
16
16
  },
17
17
  "dependencies": {
18
18
  "libphonenumber-js": "^1.12.41",
@@ -2889,10 +2889,8 @@ type EntityLookupMetadata = MaterialEntityLookupMetadata & {
2889
2889
  density?: string;
2890
2890
  };
2891
2891
  declare class InlineEntityLookupComponent extends MaterialAsyncSelectComponent {
2892
+ private readonly detailServiceInjector;
2892
2893
  private readonly dialog;
2893
- private readonly globalActions;
2894
- private readonly resourceDiscovery;
2895
- private readonly surfaceOpenAdapter;
2896
2894
  inlineMinWidthPx: number;
2897
2895
  inlineMaxWidthPx: number;
2898
2896
  private fieldLabelText;