@praxisui/crud 10.0.0-rc.59 → 10.0.0-rc.60

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-11-23T10:34:57.283Z",
3
+ "generatedAt": "2026-11-23T14:32:32.238Z",
4
4
  "packageName": "@praxisui/crud",
5
- "packageVersion": "10.0.0-rc.59",
5
+ "packageVersion": "10.0.0-rc.60",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 3,
@@ -4,7 +4,7 @@ import { NgComponentOutlet } from '@angular/common';
4
4
  import { Router, ActivatedRoute } from '@angular/router';
5
5
  import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
6
6
  import { EnterpriseRuntimeContextService, PraxisI18nService, providePraxisI18nConfig } from '@praxisui/core';
7
- import { d as CrudRouteFormHandoffService, e as DynamicFormDialogHostComponent, $ as translateCrudRuntimeText, J as crudRouteContextKey, i as PRAXIS_CRUD_RUNTIME_I18N_CONFIG } from './praxisui-crud-praxisui-crud-IqduvSc0.mjs';
7
+ import { d as CrudRouteFormHandoffService, e as DynamicFormDialogHostComponent, $ as translateCrudRuntimeText, J as crudRouteContextKey, i as PRAXIS_CRUD_RUNTIME_I18N_CONFIG } from './praxisui-crud-praxisui-crud-BzH-kq3N.mjs';
8
8
  import { MAT_DIALOG_DATA } from '@angular/material/dialog';
9
9
 
10
10
  /** Created only by createCrudFormRoute; owns the transferred form instance. */
@@ -24334,7 +24334,7 @@ class PraxisCrudComponent {
24334
24334
  resolvedStored = null;
24335
24335
  }
24336
24336
  }
24337
- if (!resolvedStored || this.isInspectOnly()) {
24337
+ if (this.hydratedAuthoringKeyId !== keyId || !resolvedStored || this.isInspectOnly()) {
24338
24338
  return;
24339
24339
  }
24340
24340
  let payloadToApply = resolvedStored;
@@ -24347,6 +24347,18 @@ class PraxisCrudComponent {
24347
24347
  const collapsed = raw.replace(/\/{2,}/g, '/').replace(/^\/+|\/+$/g, '').toLowerCase();
24348
24348
  return collapsed.startsWith('api/') ? collapsed.slice(4) : collapsed;
24349
24349
  };
24350
+ const isCompatibleSchemaPath = (rawSchemaPath, hostNorm) => {
24351
+ const schemaNorm = normalizePath(rawSchemaPath);
24352
+ if (!schemaNorm || !hostNorm || schemaNorm === hostNorm) {
24353
+ return true;
24354
+ }
24355
+ const schemaSegments = schemaNorm.split('/');
24356
+ const hostSegments = hostNorm.split('/');
24357
+ if (schemaSegments.length !== hostSegments.length) {
24358
+ return false;
24359
+ }
24360
+ return schemaSegments.every((seg, idx) => (/^\{[^}]+\}$/.test(seg) ? hostSegments[idx].length > 0 : seg === hostSegments[idx]));
24361
+ };
24350
24362
  const rawCurrentPath = (typeof this.resolvedMetadata?.resource?.path === 'string'
24351
24363
  ? this.resolvedMetadata.resource.path.trim()
24352
24364
  : '') ||
@@ -24360,19 +24372,20 @@ class PraxisCrudComponent {
24360
24372
  typeof storedMeta['resource'] === 'string'
24361
24373
  ? storedMeta['resource']
24362
24374
  : storedResourceObj?.['path'],
24363
- storedResourceObj?.['schemaPath'],
24364
24375
  storedMeta['table']?.['resourcePath'],
24365
24376
  storedMeta['table']?.['dataSource']?.['resourcePath'],
24366
24377
  storedMeta['form']?.['resourcePath'],
24367
24378
  ]
24368
24379
  .map(normalizePath)
24369
24380
  .filter((p) => p.length > 0);
24370
- if (currentPath.length > 0 && storedPaths.some((p) => p !== currentPath)) {
24381
+ if (currentPath.length > 0 &&
24382
+ (storedPaths.some((p) => p !== currentPath) ||
24383
+ !isCompatibleSchemaPath(storedResourceObj?.['schemaPath'], currentPath))) {
24371
24384
  return;
24372
24385
  }
24373
24386
  if (rawCurrentPath && storedDoc?.metadata && typeof storedDoc.metadata === 'object') {
24374
24387
  storedMeta['resource'] = {
24375
- idField: 'id',
24388
+ idField: this.resolvedMetadata?.resource?.idField || 'id',
24376
24389
  ...(storedResourceObj ?? {}),
24377
24390
  path: rawCurrentPath,
24378
24391
  };
@@ -25227,7 +25240,7 @@ function createCrudFormRoute(target) {
25227
25240
  return {
25228
25241
  path: target.path,
25229
25242
  data: { crudFormTarget: { formId: target.formId, resourcePath: target.resourcePath } },
25230
- loadComponent: () => import('./praxisui-crud-crud-route-form.component-BMTvctkx.mjs').then(m => m.CrudRouteFormComponent),
25243
+ loadComponent: () => import('./praxisui-crud-crud-route-form.component-C13OzhOs.mjs').then(m => m.CrudRouteFormComponent),
25231
25244
  canDeactivate: [(component) => component.canLeave()],
25232
25245
  };
25233
25246
  }
@@ -30064,6 +30077,18 @@ class PraxisResourcePage {
30064
30077
  const collapsed = raw.replace(/\/{2,}/g, '/').replace(/^\/+|\/+$/g, '').toLowerCase();
30065
30078
  return collapsed.startsWith('api/') ? collapsed.slice(4) : collapsed;
30066
30079
  }
30080
+ isCompatibleSchemaPath(rawSchemaPath, hostNormalizedPath) {
30081
+ const schemaNorm = this.normalizeComparableResourcePath(rawSchemaPath);
30082
+ if (!schemaNorm || !hostNormalizedPath || schemaNorm === hostNormalizedPath) {
30083
+ return true;
30084
+ }
30085
+ const schemaSegments = schemaNorm.split('/');
30086
+ const hostSegments = hostNormalizedPath.split('/');
30087
+ if (schemaSegments.length !== hostSegments.length) {
30088
+ return false;
30089
+ }
30090
+ return schemaSegments.every((seg, idx) => /^\{[^}]+\}$/.test(seg) ? hostSegments[idx].length > 0 : seg === hostSegments[idx]);
30091
+ }
30067
30092
  resolveHostResource() {
30068
30093
  return (this.resource ||
30069
30094
  this.resourcePath ||
@@ -30077,8 +30102,9 @@ class PraxisResourcePage {
30077
30102
  }
30078
30103
  const candidateResource = candidate;
30079
30104
  const pathsToCheck = [
30080
- typeof candidateResource.resource === 'object' ? candidateResource.resource?.path : undefined,
30081
- typeof candidateResource.resource === 'object' ? candidateResource.resource?.schemaPath : undefined,
30105
+ typeof candidateResource.resource === 'string'
30106
+ ? candidateResource.resource
30107
+ : candidateResource.resource?.path,
30082
30108
  candidateResource.table?.resourcePath,
30083
30109
  candidateResource.table?.dataSource?.resourcePath,
30084
30110
  candidateResource.form?.resourcePath,
@@ -30091,6 +30117,12 @@ class PraxisResourcePage {
30091
30117
  return false;
30092
30118
  }
30093
30119
  }
30120
+ const schemaPath = typeof candidateResource.resource === 'object'
30121
+ ? candidateResource.resource?.schemaPath
30122
+ : undefined;
30123
+ if (typeof schemaPath === 'string' && !this.isCompatibleSchemaPath(schemaPath, hostPath)) {
30124
+ return false;
30125
+ }
30094
30126
  return true;
30095
30127
  }
30096
30128
  effectiveResource = computed(() => {
@@ -30537,7 +30569,7 @@ class PraxisResourcePage {
30537
30569
  };
30538
30570
  if (typeof nextResource.schemaPath === 'string' &&
30539
30571
  hostPath &&
30540
- this.normalizeComparableResourcePath(nextResource.schemaPath) !== hostPath) {
30572
+ !this.isCompatibleSchemaPath(nextResource.schemaPath, hostPath)) {
30541
30573
  delete nextResource.schemaPath;
30542
30574
  }
30543
30575
  base.resource = nextResource;
@@ -30701,16 +30733,29 @@ class PraxisResourcePage {
30701
30733
  }
30702
30734
  if (this.route.data) {
30703
30735
  this.routeSub.add(this.route.data.subscribe((d) => {
30736
+ let shouldResetAuthored = false;
30704
30737
  if ('resource' in d || 'resourcePath' in d) {
30705
30738
  const nextRouteResource = d['resource'] || d['resourcePath'] || null;
30706
30739
  if (nextRouteResource !== this.routeResourceSignal()) {
30707
- this.authoredMetadataSignal.set(null);
30708
- this.hydratedCrudSeedSignal.set(false);
30709
- this.hydratedAuthoringSeedKey = null;
30740
+ shouldResetAuthored = true;
30710
30741
  this.routeResourceSignal.set(nextRouteResource);
30711
30742
  }
30712
30743
  }
30744
+ if ('crudId' in d && (d['crudId'] ?? null) !== this.routeCrudIdSignal()) {
30745
+ shouldResetAuthored = true;
30746
+ }
30747
+ if ('metadata' in d && (d['metadata'] ?? null) !== this.routeMetadataSignal()) {
30748
+ shouldResetAuthored = true;
30749
+ }
30750
+ if (shouldResetAuthored) {
30751
+ this.authoredMetadataSignal.set(null);
30752
+ this.hydratedCrudSeedSignal.set(false);
30753
+ this.hydratedAuthoringSeedKey = null;
30754
+ }
30713
30755
  this.extractRouteData(d);
30756
+ if (shouldResetAuthored && this.initialized) {
30757
+ this.tryHydrateStoredCrudSeed();
30758
+ }
30714
30759
  }));
30715
30760
  }
30716
30761
  }
@@ -1,3 +1,3 @@
1
- export { C as CRUD_AI_CAPABILITIES, a as CrudLauncherService, b as CrudMetadataEditorComponent, c as CrudPageHeaderComponent, D as DialogService, e as DynamicFormDialogHostComponent, P as PRAXIS_CHOICE_FIELD_TYPES, f as PRAXIS_CONTROL_TYPE_CHOICES, g as PRAXIS_CRUD_AUTHORING_MANIFEST, h as PRAXIS_CRUD_COMPONENT_METADATA, j as PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_CONFIG, k as PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_NAMESPACE, l as PRAXIS_CUSTOM_FIELD_AI_PROMPT_EXAMPLES, m as PRAXIS_CUSTOM_FIELD_PRESETS, n as PRAXIS_CUSTOM_FIELD_WIDTH_CHOICES, o as PRAXIS_DOSSIER_PAGE_COMPONENT_METADATA, p as PRAXIS_FIELD_TYPE_CHOICES, q as PRAXIS_FILTER_OPERATIONS_BY_FIELD_TYPE, r as PRAXIS_FILTER_OPERATION_CHOICES, s as PRAXIS_MULTI_CHOICE_CONTROL_TYPES, t as PRAXIS_REGEX_VALIDATION_PRESETS, u as PRAXIS_SUGGESTED_FIELD_ICONS, v as PraxisBulkEditDialogComponent, w as PraxisBulkOperationDialogComponent, x as PraxisCrudBulkProposalBridgeService, y as PraxisCrudComponent, z as PraxisCrudWidgetConfigEditor, A as PraxisCustomFieldStudioDialogComponent, B as PraxisDossierPageComponent, E as PraxisKpiBandComponent, F as PraxisResourcePage, G as assertCrudMetadata, H as createCrudAuthoringDocument, I as createCrudFormRoute, K as findCrudAction, L as formatKpiValue, M as getCompatibleFilterOperations, N as isControlCompatibleWithFieldType, O as isResourceDiscoveredCrudAction, Q as normalizeCrudAuthoringDocument, R as normalizeStudioControlType, S as openCrudMetadataEditor, T as parseLegacyOrCrudDocument, U as providePraxisCrudBulkProposalBridge, V as providePraxisCrudMetadata, W as providePraxisDossierPageMetadata, X as serializeCrudAuthoringDocument, Y as slugifyCustomFieldKey, Z as slugifyOptionValue, _ as toDynamicFieldControlType, a0 as translateStudioText, a1 as validateCrudAuthoringDocument, a2 as validateStudioDefaultValue } from './praxisui-crud-praxisui-crud-IqduvSc0.mjs';
1
+ export { C as CRUD_AI_CAPABILITIES, a as CrudLauncherService, b as CrudMetadataEditorComponent, c as CrudPageHeaderComponent, D as DialogService, e as DynamicFormDialogHostComponent, P as PRAXIS_CHOICE_FIELD_TYPES, f as PRAXIS_CONTROL_TYPE_CHOICES, g as PRAXIS_CRUD_AUTHORING_MANIFEST, h as PRAXIS_CRUD_COMPONENT_METADATA, j as PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_CONFIG, k as PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_NAMESPACE, l as PRAXIS_CUSTOM_FIELD_AI_PROMPT_EXAMPLES, m as PRAXIS_CUSTOM_FIELD_PRESETS, n as PRAXIS_CUSTOM_FIELD_WIDTH_CHOICES, o as PRAXIS_DOSSIER_PAGE_COMPONENT_METADATA, p as PRAXIS_FIELD_TYPE_CHOICES, q as PRAXIS_FILTER_OPERATIONS_BY_FIELD_TYPE, r as PRAXIS_FILTER_OPERATION_CHOICES, s as PRAXIS_MULTI_CHOICE_CONTROL_TYPES, t as PRAXIS_REGEX_VALIDATION_PRESETS, u as PRAXIS_SUGGESTED_FIELD_ICONS, v as PraxisBulkEditDialogComponent, w as PraxisBulkOperationDialogComponent, x as PraxisCrudBulkProposalBridgeService, y as PraxisCrudComponent, z as PraxisCrudWidgetConfigEditor, A as PraxisCustomFieldStudioDialogComponent, B as PraxisDossierPageComponent, E as PraxisKpiBandComponent, F as PraxisResourcePage, G as assertCrudMetadata, H as createCrudAuthoringDocument, I as createCrudFormRoute, K as findCrudAction, L as formatKpiValue, M as getCompatibleFilterOperations, N as isControlCompatibleWithFieldType, O as isResourceDiscoveredCrudAction, Q as normalizeCrudAuthoringDocument, R as normalizeStudioControlType, S as openCrudMetadataEditor, T as parseLegacyOrCrudDocument, U as providePraxisCrudBulkProposalBridge, V as providePraxisCrudMetadata, W as providePraxisDossierPageMetadata, X as serializeCrudAuthoringDocument, Y as slugifyCustomFieldKey, Z as slugifyOptionValue, _ as toDynamicFieldControlType, a0 as translateStudioText, a1 as validateCrudAuthoringDocument, a2 as validateStudioDefaultValue } from './praxisui-crud-praxisui-crud-BzH-kq3N.mjs';
2
2
  export { MAT_DIALOG_DATA as DIALOG_DATA } from '@angular/material/dialog';
3
3
  export { createDynamicRecord, extractRecordId, isDynamicDataRecord, resolveDataField } from '@praxisui/core';
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@praxisui/crud",
3
- "version": "10.0.0-rc.59",
3
+ "version": "10.0.0-rc.60",
4
4
  "description": "CRUD building blocks for Praxis UI: integrates dynamic forms and tables with unified configuration and services.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
7
7
  "@angular/core": "^21.0.0",
8
8
  "@angular/platform-browser": "^21.0.0",
9
- "@praxisui/dynamic-form": "^10.0.0-rc.59",
10
- "@praxisui/table": "^10.0.0-rc.59",
11
- "@praxisui/core": "^10.0.0-rc.59",
12
- "@praxisui/dynamic-fields": "^10.0.0-rc.59",
13
- "@praxisui/settings-panel": "^10.0.0-rc.59",
9
+ "@praxisui/dynamic-form": "^10.0.0-rc.60",
10
+ "@praxisui/table": "^10.0.0-rc.60",
11
+ "@praxisui/core": "^10.0.0-rc.60",
12
+ "@praxisui/dynamic-fields": "^10.0.0-rc.60",
13
+ "@praxisui/settings-panel": "^10.0.0-rc.60",
14
14
  "@angular/cdk": "^21.0.0",
15
15
  "@angular/forms": "^21.0.0",
16
16
  "@angular/material": "^21.0.0",
17
17
  "@angular/router": "^21.0.0",
18
- "@praxisui/ai": "^10.0.0-rc.59",
18
+ "@praxisui/ai": "^10.0.0-rc.60",
19
19
  "rxjs": "~7.8.0"
20
20
  },
21
21
  "dependencies": {
@@ -2098,6 +2098,7 @@ declare class PraxisResourcePage implements OnInit, OnChanges, OnDestroy {
2098
2098
  readonly hasLocalData: _angular_core.Signal<boolean>;
2099
2099
  readonly hasCrudSeed: _angular_core.Signal<boolean>;
2100
2100
  private normalizeComparableResourcePath;
2101
+ private isCompatibleSchemaPath;
2101
2102
  private resolveHostResource;
2102
2103
  private isAuthoredMetadataCompatibleWithHostResource;
2103
2104
  readonly effectiveResource: _angular_core.Signal<string | null>;