@praxisui/core 10.0.0-rc.55 → 10.0.0-rc.57

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.
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
2
2
  import { Component, InjectionToken, APP_INITIALIZER, inject, Injectable, Inject, DestroyRef, signal, computed, Optional, SkipSelf, assertInInjectionContext, Injector, ErrorHandler, makeEnvironmentProviders, ENVIRONMENT_INITIALIZER, isSignal, Input, Directive, input, booleanAttribute, ChangeDetectionStrategy, EventEmitter, Output, SecurityContext, ViewContainerRef, effect, untracked, SimpleChange, ElementRef, ChangeDetectorRef, afterEveryRender, contentChild, viewChild, HostBinding, output, afterNextRender, ViewChild, ViewEncapsulation, createEnvironmentInjector, EnvironmentInjector, reflectComponentType, HostListener, ViewChildren, forwardRef, TemplateRef, Renderer2 } from '@angular/core';
3
3
  import * as i1 from '@angular/common/http';
4
4
  import { HttpHeaders, HttpClient, HttpParams, HttpResponse, HttpContextToken, HttpErrorResponse, HTTP_INTERCEPTORS, withInterceptors } from '@angular/common/http';
5
- import { BehaviorSubject, firstValueFrom, of, defer, throwError, from, EMPTY, tap, finalize as finalize$1, shareReplay, map as map$1, catchError as catchError$1, switchMap as switchMap$1, Subject, takeUntil, forkJoin, Observable, timer, isObservable, combineLatest, merge, Subscription, defaultIfEmpty, timeout as timeout$1 } from 'rxjs';
6
- import { switchMap, map, take, catchError, finalize, concatMap, tap as tap$1, shareReplay as shareReplay$1, takeUntil as takeUntil$1, toArray, exhaustMap, filter, timeout } from 'rxjs/operators';
5
+ import { BehaviorSubject, firstValueFrom, of, defer, throwError, from, EMPTY, tap, finalize as finalize$1, shareReplay as shareReplay$1, map as map$1, catchError as catchError$1, switchMap as switchMap$1, Subject, takeUntil, forkJoin, Observable, timer, isObservable, combineLatest, merge, Subscription, defaultIfEmpty, timeout as timeout$1 } from 'rxjs';
6
+ import { switchMap, map, take, finalize, shareReplay, catchError, concatMap, tap as tap$1, takeUntil as takeUntil$1, toArray, exhaustMap, filter, timeout } from 'rxjs/operators';
7
7
  import { takeUntilDestroyed, toSignal } from '@angular/core/rxjs-interop';
8
8
  import * as i1$2 from '@angular/forms';
9
9
  import { Validators, FormGroup, FormControl, FormArray, FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
@@ -1472,10 +1472,18 @@ function resolveDefaultHeaders() {
1472
1472
  * HTTP-based storage that talks to praxis-config-starter user-config API.
1473
1473
  */
1474
1474
  class ApiConfigStorage {
1475
- static loadAvailabilityProbes = new Map();
1475
+ static MAX_NEGATIVE_CACHE_ENTRIES = 1000;
1476
+ static SEMANTIC_CONTEXT_HEADERS = [
1477
+ 'x-tenant-realm',
1478
+ 'x-tenant-id',
1479
+ 'x-organization-id',
1480
+ 'x-user-id',
1481
+ 'x-env',
1482
+ ];
1476
1483
  http = inject(HttpClient);
1477
1484
  logger = inject(LoggerService, { optional: true });
1478
1485
  destroyRef = inject(DestroyRef, { optional: true });
1486
+ loadAvailabilityProbes = new Map();
1479
1487
  activeProbeReleases = new Set();
1480
1488
  opts = inject(API_CONFIG_STORAGE_OPTIONS, { optional: true });
1481
1489
  baseUrl = (this.opts?.baseUrl || '/api/praxis/config/ui').replace(/\/$/, '');
@@ -1497,15 +1505,21 @@ class ApiConfigStorage {
1497
1505
  // cannot satisfy If-Match for governed writes.
1498
1506
  cache = new Map();
1499
1507
  scopedCache = new Map();
1508
+ negativeCache = new Set();
1509
+ inFlightLoads = new Map();
1500
1510
  constructor() {
1501
1511
  this.destroyRef?.onDestroy(() => {
1502
- for (const release of Array.from(this.activeProbeReleases)) {
1503
- release();
1504
- }
1505
- this.activeProbeReleases.clear();
1512
+ this.releaseActiveProbes();
1506
1513
  this.saveErrorSubject.complete();
1507
1514
  });
1508
1515
  }
1516
+ releaseActiveProbes() {
1517
+ for (const release of Array.from(this.activeProbeReleases)) {
1518
+ release();
1519
+ }
1520
+ this.activeProbeReleases.clear();
1521
+ this.loadAvailabilityProbes.clear();
1522
+ }
1509
1523
  setWriteScope(scope) {
1510
1524
  if (scope && this.opts?.canWriteScope && !this.opts.canWriteScope(scope)) {
1511
1525
  this._writeScopeOverride.set('user');
@@ -1525,8 +1539,17 @@ class ApiConfigStorage {
1525
1539
  invalidateCache() {
1526
1540
  this.cache.clear();
1527
1541
  this.scopedCache.clear();
1542
+ this.negativeCache.clear();
1543
+ this.inFlightLoads.clear();
1544
+ this.releaseActiveProbes();
1528
1545
  this.clearSaveError();
1529
1546
  }
1547
+ /**
1548
+ * Public alias for clearing all session-scoped config caches on auth/tenant transitions.
1549
+ */
1550
+ resetSessionCaches() {
1551
+ this.invalidateCache();
1552
+ }
1530
1553
  shouldLogLoadError(key, err) {
1531
1554
  if (err?.status === 404)
1532
1555
  return false;
@@ -1544,38 +1567,74 @@ class ApiConfigStorage {
1544
1567
  }
1545
1568
  loadConfig(key, options) {
1546
1569
  return defer(() => {
1547
- const existingProbe = ApiConfigStorage.loadAvailabilityProbes.get(this.baseUrl);
1548
- if (existingProbe) {
1549
- return from(existingProbe).pipe(switchMap((available) => available ? this.executeLoadConfigRequest(key, false, options?.scope) : of(null)));
1570
+ const headers = this.buildHeaders();
1571
+ const scopeMode = options?.scope ?? this.scope ?? 'auto-cascade';
1572
+ const cacheKey = this.buildNegativeCacheKey(key, scopeMode, headers);
1573
+ if (this.negativeCache.has(cacheKey)) {
1574
+ return of(null);
1550
1575
  }
1551
- return this.executeLoadConfigRequest(key, true, options?.scope);
1576
+ const existingInFlight = this.inFlightLoads.get(cacheKey);
1577
+ if (existingInFlight) {
1578
+ return existingInFlight;
1579
+ }
1580
+ const existingProbe = this.loadAvailabilityProbes.get(this.baseUrl);
1581
+ const request$ = existingProbe
1582
+ ? from(existingProbe).pipe(switchMap((available) => {
1583
+ if (!available || this.negativeCache.has(cacheKey)) {
1584
+ return of(null);
1585
+ }
1586
+ return this.executeLoadConfigRequest(key, false, options?.scope, cacheKey);
1587
+ }))
1588
+ : this.executeLoadConfigRequest(key, true, options?.scope, cacheKey);
1589
+ const shared$ = request$.pipe(finalize(() => {
1590
+ if (this.inFlightLoads.get(cacheKey) === shared$) {
1591
+ this.inFlightLoads.delete(cacheKey);
1592
+ }
1593
+ }), shareReplay({ bufferSize: 1, refCount: true }));
1594
+ this.inFlightLoads.set(cacheKey, shared$);
1595
+ return shared$;
1552
1596
  });
1553
1597
  }
1554
1598
  loadConfigDocument(key, options) {
1555
- const cached = this.getCachedEntry(key, options?.scope);
1556
- const etag = cached?.readEtag ?? cached?.writeEtag;
1557
- const { type, id } = this.resolveKey(key);
1558
- const params = this.buildParams(type, id, options?.scope);
1559
- const headers = this.buildHeaders(etag ? { 'If-None-Match': this.formatEtag(etag) } : {});
1560
- return this.http
1561
- .get(this.baseUrl, { observe: 'response', headers, params })
1562
- .pipe(map((resp) => this.cacheResponseDocument(key, resp.body, resp.headers.get('ETag'), options?.scope)), catchError((err) => {
1563
- if (err.status === 304 && cached?.document) {
1564
- return of(cached.document);
1565
- }
1566
- if (err.status === 404) {
1599
+ return defer(() => {
1600
+ const baseHeaders = this.buildHeaders();
1601
+ const effectiveExplicitScope = options?.scope ?? this.scope;
1602
+ const cached = this.getCachedEntry(key, effectiveExplicitScope, baseHeaders);
1603
+ const etag = cached?.readEtag ?? cached?.writeEtag;
1604
+ const { type, id } = this.resolveKey(key);
1605
+ const params = this.buildParams(type, id, options?.scope);
1606
+ const headers = this.buildHeaders(etag ? { 'If-None-Match': this.formatEtag(etag) } : {});
1607
+ const scopeMode = options?.scope ?? this.scope ?? 'auto-cascade';
1608
+ const cacheKey = this.buildNegativeCacheKey(key, scopeMode, baseHeaders);
1609
+ if (this.negativeCache.has(cacheKey)) {
1567
1610
  return of(null);
1568
1611
  }
1569
- if (this.shouldLogLoadError(key, err)) {
1570
- this.logger?.warn('[ApiConfigStorage] document load error', { data: { error: err } });
1571
- }
1572
- return this.shouldPropagateLoadError(key, err)
1573
- ? throwError(() => err)
1574
- : of(null);
1575
- }));
1612
+ return this.http
1613
+ .get(this.baseUrl, { observe: 'response', headers, params })
1614
+ .pipe(map((resp) => {
1615
+ this.negativeCache.delete(cacheKey);
1616
+ return this.cacheResponseDocument(key, resp.body, resp.headers.get('ETag'), effectiveExplicitScope, baseHeaders);
1617
+ }), catchError((err) => {
1618
+ if (err.status === 304 && cached?.document) {
1619
+ return of(cached.document);
1620
+ }
1621
+ if (err.status === 404) {
1622
+ this.recordNegativeCacheHit(cacheKey);
1623
+ return of(null);
1624
+ }
1625
+ if (this.shouldLogLoadError(key, err)) {
1626
+ this.logger?.warn('[ApiConfigStorage] document load error', { data: { error: err } });
1627
+ }
1628
+ return this.shouldPropagateLoadError(key, err)
1629
+ ? throwError(() => err)
1630
+ : of(null);
1631
+ }));
1632
+ });
1576
1633
  }
1577
- executeLoadConfigRequest(key, establishAvailability, explicitScope) {
1578
- const cached = this.getCachedEntry(key, explicitScope);
1634
+ executeLoadConfigRequest(key, establishAvailability, explicitScope, negativeCacheKey) {
1635
+ const baseHeaders = this.buildHeaders();
1636
+ const effectiveExplicitScope = explicitScope ?? this.scope;
1637
+ const cached = this.getCachedEntry(key, effectiveExplicitScope, baseHeaders);
1579
1638
  const etag = cached?.readEtag ?? cached?.writeEtag;
1580
1639
  const { type, id } = this.resolveKey(key);
1581
1640
  const url = `${this.baseUrl}`;
@@ -1587,14 +1646,14 @@ class ApiConfigStorage {
1587
1646
  const probe = new Promise((resolve) => {
1588
1647
  resolveProbe = resolve;
1589
1648
  });
1590
- ApiConfigStorage.loadAvailabilityProbes.set(this.baseUrl, probe);
1649
+ this.loadAvailabilityProbes.set(this.baseUrl, probe);
1591
1650
  let released = false;
1592
1651
  const release = () => {
1593
1652
  if (released)
1594
1653
  return;
1595
1654
  released = true;
1596
- if (ApiConfigStorage.loadAvailabilityProbes.get(this.baseUrl) === probe) {
1597
- ApiConfigStorage.loadAvailabilityProbes.delete(this.baseUrl);
1655
+ if (this.loadAvailabilityProbes.get(this.baseUrl) === probe) {
1656
+ this.loadAvailabilityProbes.delete(this.baseUrl);
1598
1657
  }
1599
1658
  this.activeProbeReleases.delete(release);
1600
1659
  resolveProbe(true);
@@ -1604,20 +1663,21 @@ class ApiConfigStorage {
1604
1663
  return this.http
1605
1664
  .get(url, { observe: 'response', headers, params })
1606
1665
  .pipe(map((resp) => {
1666
+ this.negativeCache.delete(negativeCacheKey);
1607
1667
  const body = resp.body;
1608
1668
  const responseEtag = resp.headers.get('ETag');
1609
1669
  const readEtag = this.resolveReadEtag(responseEtag, body?.etag);
1610
1670
  const writeEtag = this.resolveWriteEtag(responseEtag, body?.etag);
1611
1671
  if (readEtag || writeEtag) {
1612
1672
  const document = this.toConfigDocument(body, responseEtag);
1613
- const resolvedScope = this.resolveResponseScope(body?.scope) ?? explicitScope;
1673
+ const resolvedScope = this.resolveResponseScope(body?.scope) ?? effectiveExplicitScope;
1614
1674
  this.storeCachedEntry(key, {
1615
1675
  readEtag,
1616
1676
  writeEtag,
1617
1677
  payload: body?.payload,
1618
1678
  scope: resolvedScope,
1619
1679
  document,
1620
- }, resolvedScope);
1680
+ }, resolvedScope, baseHeaders, effectiveExplicitScope);
1621
1681
  }
1622
1682
  releaseProbe?.();
1623
1683
  return body?.payload ?? null;
@@ -1627,6 +1687,7 @@ class ApiConfigStorage {
1627
1687
  return of(cached.payload);
1628
1688
  }
1629
1689
  if (err.status === 404) {
1690
+ this.recordNegativeCacheHit(negativeCacheKey);
1630
1691
  releaseProbe?.();
1631
1692
  return of(null);
1632
1693
  }
@@ -1644,20 +1705,21 @@ class ApiConfigStorage {
1644
1705
  return this.http
1645
1706
  .get(url, { observe: 'response', headers, params })
1646
1707
  .pipe(map((resp) => {
1708
+ this.negativeCache.delete(negativeCacheKey);
1647
1709
  const body = resp.body;
1648
1710
  const responseEtag = resp.headers.get('ETag');
1649
1711
  const readEtag = this.resolveReadEtag(responseEtag, body?.etag);
1650
1712
  const writeEtag = this.resolveWriteEtag(responseEtag, body?.etag);
1651
1713
  if (readEtag || writeEtag) {
1652
1714
  const document = this.toConfigDocument(body, responseEtag);
1653
- const resolvedScope = this.resolveResponseScope(body?.scope) ?? explicitScope;
1715
+ const resolvedScope = this.resolveResponseScope(body?.scope) ?? effectiveExplicitScope;
1654
1716
  this.storeCachedEntry(key, {
1655
1717
  readEtag,
1656
1718
  writeEtag,
1657
1719
  payload: body?.payload,
1658
1720
  scope: resolvedScope,
1659
1721
  document,
1660
- }, resolvedScope);
1722
+ }, resolvedScope, baseHeaders, effectiveExplicitScope);
1661
1723
  }
1662
1724
  return body?.payload ?? null;
1663
1725
  }), catchError((err) => {
@@ -1666,6 +1728,7 @@ class ApiConfigStorage {
1666
1728
  return of(cached.payload);
1667
1729
  }
1668
1730
  if (err.status === 404) {
1731
+ this.recordNegativeCacheHit(negativeCacheKey);
1669
1732
  return of(null);
1670
1733
  }
1671
1734
  if (this.shouldLogLoadError(key, err)) {
@@ -1686,7 +1749,7 @@ class ApiConfigStorage {
1686
1749
  const params = this.buildParams(type, id, explicitScope);
1687
1750
  const baseHeaders = this.buildHeaders();
1688
1751
  const requestScope = explicitScope ?? this.resolveRequestScope(baseHeaders);
1689
- const scopedCached = this.getCachedEntry(key, requestScope);
1752
+ const scopedCached = this.getCachedEntry(key, requestScope, baseHeaders);
1690
1753
  const compatibleWriteEtag = this.resolveCompatibleWriteEtag(scopedCached, requestScope);
1691
1754
  const formattedWriteEtag = this.formatEtag(compatibleWriteEtag);
1692
1755
  const headers = formattedWriteEtag
@@ -1696,17 +1759,25 @@ class ApiConfigStorage {
1696
1759
  .put(url, { payload: config }, { observe: 'response', headers, params })
1697
1760
  .pipe(map((resp) => {
1698
1761
  this.clearSaveError();
1762
+ this.invalidateKeyCaches(key, undefined, baseHeaders);
1699
1763
  const body = resp.body;
1700
1764
  const responseEtag = resp.headers.get('ETag');
1701
1765
  const payload = body?.payload ?? config;
1702
1766
  const effectiveScope = this.resolveResponseScope(body?.scope) ?? requestScope;
1703
- this.storeCachedEntry(key, {
1767
+ const savedEntry = {
1704
1768
  readEtag: this.resolveReadEtag(responseEtag, body?.etag),
1705
1769
  writeEtag: this.resolveWriteEtag(responseEtag, body?.etag),
1706
1770
  payload,
1707
1771
  scope: effectiveScope,
1708
1772
  document: this.toConfigDocument({ ...body, scope: body?.scope ?? effectiveScope, payload }, responseEtag),
1709
- }, effectiveScope);
1773
+ };
1774
+ this.storeCachedEntry(key, savedEntry, effectiveScope, baseHeaders, requestScope);
1775
+ const autoKey = this.buildPositiveCacheKey(key, baseHeaders);
1776
+ const autoEntry = this.cache.get(autoKey);
1777
+ if (effectiveScope === 'user'
1778
+ || (autoEntry && (!autoEntry.scope || autoEntry.scope === effectiveScope))) {
1779
+ this.cache.set(autoKey, savedEntry);
1780
+ }
1710
1781
  }), catchError((err) => {
1711
1782
  this.recordSaveError(key, requestScope, 'save', err);
1712
1783
  if (this.shouldLogSaveError(key, err)) {
@@ -1763,7 +1834,7 @@ class ApiConfigStorage {
1763
1834
  const params = this.buildParams(type, id, explicitScope);
1764
1835
  const baseHeaders = this.buildHeaders();
1765
1836
  const requestScope = explicitScope ?? this.resolveRequestScope(baseHeaders);
1766
- const scopedCached = this.getCachedEntry(key, requestScope);
1837
+ const scopedCached = this.getCachedEntry(key, requestScope, baseHeaders);
1767
1838
  const compatibleWriteEtag = this.resolveCompatibleWriteEtag(scopedCached, requestScope);
1768
1839
  const formattedWriteEtag = this.formatEtag(compatibleWriteEtag);
1769
1840
  const headers = formattedWriteEtag
@@ -1773,7 +1844,8 @@ class ApiConfigStorage {
1773
1844
  .delete(url, { observe: 'response', headers, params })
1774
1845
  .pipe(map(() => {
1775
1846
  this.clearSaveError();
1776
- this.evictCachedScope(key, requestScope);
1847
+ this.evictCachedScope(key, requestScope, baseHeaders);
1848
+ this.invalidateKeyCaches(key, undefined, baseHeaders);
1777
1849
  }), catchError((err) => {
1778
1850
  this.recordSaveError(key, requestScope, 'clear', err);
1779
1851
  if (this.shouldLogClearError(key, err)) {
@@ -1798,7 +1870,7 @@ class ApiConfigStorage {
1798
1870
  const url = `${this.baseUrl}`;
1799
1871
  const params = this.buildParams(type, id, 'user');
1800
1872
  const baseHeaders = this.buildHeaders();
1801
- const userCached = this.getCachedEntry(key, 'user');
1873
+ const userCached = this.getCachedEntry(key, 'user', baseHeaders);
1802
1874
  const compatibleWriteEtag = this.resolveCompatibleWriteEtag(userCached, 'user');
1803
1875
  const formattedWriteEtag = this.formatEtag(compatibleWriteEtag);
1804
1876
  const headers = formattedWriteEtag
@@ -1814,7 +1886,8 @@ class ApiConfigStorage {
1814
1886
  return throwError(() => err);
1815
1887
  }), switchMap(() => {
1816
1888
  this.clearSaveError();
1817
- this.evictCachedScope(key, 'user');
1889
+ this.evictCachedScope(key, 'user', baseHeaders);
1890
+ this.invalidateKeyCaches(key, 'user', baseHeaders);
1818
1891
  return this.loadConfig(key, { scope: 'tenant' });
1819
1892
  }));
1820
1893
  }
@@ -1836,7 +1909,7 @@ class ApiConfigStorage {
1836
1909
  }
1837
1910
  return new HttpHeaders(merged);
1838
1911
  }
1839
- cacheResponseDocument(key, body, responseEtag, explicitScope) {
1912
+ cacheResponseDocument(key, body, responseEtag, explicitScope, headers) {
1840
1913
  const document = this.toConfigDocument(body, responseEtag);
1841
1914
  const resolvedScope = this.resolveResponseScope(document.scope) ?? explicitScope;
1842
1915
  this.storeCachedEntry(key, {
@@ -1845,16 +1918,34 @@ class ApiConfigStorage {
1845
1918
  payload: document.payload,
1846
1919
  scope: resolvedScope,
1847
1920
  document,
1848
- }, resolvedScope);
1921
+ }, resolvedScope, headers, explicitScope);
1849
1922
  return document;
1850
1923
  }
1851
- getCachedEntry(key, explicitScope) {
1924
+ buildContextHeaderSignature(headers) {
1925
+ return ApiConfigStorage.SEMANTIC_CONTEXT_HEADERS
1926
+ .map((name) => {
1927
+ const values = headers.getAll(name);
1928
+ return values && values.length > 0 ? `${name}=${values.join(',')}` : null;
1929
+ })
1930
+ .filter((entry) => entry !== null)
1931
+ .join('|');
1932
+ }
1933
+ buildPositiveCacheKey(key, headers, explicitScope) {
1934
+ const signature = this.buildContextHeaderSignature(headers);
1935
+ const partitionedKey = signature ? `${signature}\u0000${key}` : key;
1936
+ return explicitScope ? `${partitionedKey}::explicit:${explicitScope}` : partitionedKey;
1937
+ }
1938
+ getCachedEntry(key, explicitScope, headers = this.buildHeaders()) {
1939
+ const partitionedKey = this.buildPositiveCacheKey(key, headers);
1852
1940
  if (explicitScope) {
1853
- const byScope = this.scopedCache.get(key)?.[explicitScope];
1941
+ const explicitCached = this.cache.get(this.buildPositiveCacheKey(key, headers, explicitScope));
1942
+ if (explicitCached)
1943
+ return explicitCached;
1944
+ const byScope = this.scopedCache.get(partitionedKey)?.[explicitScope];
1854
1945
  if (byScope)
1855
1946
  return byScope;
1856
1947
  }
1857
- const fallback = this.cache.get(key);
1948
+ const fallback = this.cache.get(partitionedKey);
1858
1949
  if (!explicitScope)
1859
1950
  return fallback;
1860
1951
  if (fallback && (!fallback.scope || fallback.scope === explicitScope)) {
@@ -1862,27 +1953,84 @@ class ApiConfigStorage {
1862
1953
  }
1863
1954
  return undefined;
1864
1955
  }
1865
- storeCachedEntry(key, entry, resolvedScope) {
1866
- this.cache.set(key, entry);
1956
+ storeCachedEntry(key, entry, resolvedScope, headers = this.buildHeaders(), explicitScope) {
1957
+ const partitionedKey = this.buildPositiveCacheKey(key, headers);
1958
+ const positiveKey = this.buildPositiveCacheKey(key, headers, explicitScope);
1959
+ this.cache.set(positiveKey, entry);
1867
1960
  if (resolvedScope) {
1868
- const existing = this.scopedCache.get(key) ?? {};
1869
- this.scopedCache.set(key, {
1961
+ const existing = this.scopedCache.get(partitionedKey) ?? {};
1962
+ this.scopedCache.set(partitionedKey, {
1870
1963
  ...existing,
1871
1964
  [resolvedScope]: entry,
1872
1965
  });
1873
1966
  }
1874
1967
  }
1875
- evictCachedScope(key, scope) {
1876
- const scoped = this.scopedCache.get(key);
1968
+ evictCachedScope(key, scope, headers = this.buildHeaders()) {
1969
+ const partitionedKey = this.buildPositiveCacheKey(key, headers);
1970
+ this.cache.delete(this.buildPositiveCacheKey(key, headers, scope));
1971
+ const scoped = this.scopedCache.get(partitionedKey);
1877
1972
  if (scoped) {
1878
1973
  delete scoped[scope];
1879
1974
  if (!scoped.user && !scoped.tenant) {
1880
- this.scopedCache.delete(key);
1975
+ this.scopedCache.delete(partitionedKey);
1881
1976
  }
1882
1977
  }
1883
- const active = this.cache.get(key);
1978
+ const active = this.cache.get(partitionedKey);
1884
1979
  if (active && (!active.scope || active.scope === scope)) {
1885
- this.cache.delete(key);
1980
+ this.cache.delete(partitionedKey);
1981
+ }
1982
+ }
1983
+ recordNegativeCacheHit(cacheKey) {
1984
+ if (this.negativeCache.has(cacheKey)) {
1985
+ this.negativeCache.delete(cacheKey);
1986
+ }
1987
+ this.negativeCache.add(cacheKey);
1988
+ while (this.negativeCache.size > ApiConfigStorage.MAX_NEGATIVE_CACHE_ENTRIES) {
1989
+ const oldest = this.negativeCache.values().next().value;
1990
+ if (oldest === undefined)
1991
+ break;
1992
+ this.negativeCache.delete(oldest);
1993
+ }
1994
+ }
1995
+ buildNegativeCacheKey(key, scopeMode, headers) {
1996
+ const { type, id } = this.resolveKey(key);
1997
+ const contextHeaderSignature = this.buildContextHeaderSignature(headers);
1998
+ return `${scopeMode}\u0000${contextHeaderSignature}\u0000${type}\u0000${id}`;
1999
+ }
2000
+ invalidateKeyCaches(key, scope, headers) {
2001
+ const { type, id } = this.resolveKey(key);
2002
+ const suffix = `\u0000${type}\u0000${id}`;
2003
+ const expectedContextSignature = headers
2004
+ ? this.buildContextHeaderSignature(headers)
2005
+ : undefined;
2006
+ const matchesTarget = (cacheKey) => {
2007
+ if (!cacheKey.endsWith(suffix))
2008
+ return false;
2009
+ const scopeSep = cacheKey.indexOf('\u0000');
2010
+ if (scopeSep === -1)
2011
+ return false;
2012
+ const cachedScope = cacheKey.slice(0, scopeSep);
2013
+ if (scope && cachedScope !== scope && cachedScope !== 'auto-cascade') {
2014
+ return false;
2015
+ }
2016
+ if (expectedContextSignature !== undefined) {
2017
+ const prefixWithoutId = cacheKey.slice(0, cacheKey.length - suffix.length);
2018
+ const contextSignature = prefixWithoutId.slice(scopeSep + 1);
2019
+ if (contextSignature !== expectedContextSignature) {
2020
+ return false;
2021
+ }
2022
+ }
2023
+ return true;
2024
+ };
2025
+ for (const cacheKey of Array.from(this.negativeCache)) {
2026
+ if (matchesTarget(cacheKey)) {
2027
+ this.negativeCache.delete(cacheKey);
2028
+ }
2029
+ }
2030
+ for (const cacheKey of Array.from(this.inFlightLoads.keys())) {
2031
+ if (matchesTarget(cacheKey)) {
2032
+ this.inFlightLoads.delete(cacheKey);
2033
+ }
1886
2034
  }
1887
2035
  }
1888
2036
  resolveDynamicWriteScopeOverride() {
@@ -2020,6 +2168,8 @@ class ApiConfigStorage {
2020
2168
  ['timeline-lanes:', 'praxis-timeline-lanes'],
2021
2169
  ['praxis-relationship-graph-config-', 'praxis-relationship-graph'],
2022
2170
  ['relationship-graph:', 'praxis-relationship-graph'],
2171
+ ['praxis-progression-ladder-config-', 'praxis-progression-ladder'],
2172
+ ['progression-ladder:', 'praxis-progression-ladder'],
2023
2173
  ['conn:form:', 'praxis-dynamic-form'],
2024
2174
  ['conn:table:', 'praxis-table'],
2025
2175
  ['grid-page:', 'praxis-dynamic-page'],
@@ -4364,7 +4514,7 @@ function resolveResourceQuickViewTarget(binding, sourceRecord) {
4364
4514
  /**
4365
4515
  * Verifica se a âncora efêmera de runtime permanece conectada e visível na viewport.
4366
4516
  */
4367
- function isResourceQuickViewAnchorValid(anchor) {
4517
+ function isResourceQuickViewAnchorValid(anchor, trigger) {
4368
4518
  if (!anchor || typeof anchor !== 'object') {
4369
4519
  return false;
4370
4520
  }
@@ -4389,10 +4539,11 @@ function isResourceQuickViewAnchorValid(anchor) {
4389
4539
  if (rect.width === 0 && rect.height === 0) {
4390
4540
  return false;
4391
4541
  }
4392
- return (rect.bottom >= 0 &&
4393
- rect.right >= 0 &&
4394
- rect.top <= viewportHeight &&
4395
- rect.left <= viewportWidth);
4542
+ const edgeTolerance = trigger === 'focus-shortcut' || trigger === 'explicit-button' ? 96 : 0;
4543
+ return (rect.bottom >= -edgeTolerance &&
4544
+ rect.right >= -edgeTolerance &&
4545
+ rect.top <= viewportHeight + edgeTolerance &&
4546
+ rect.left <= viewportWidth + edgeTolerance);
4396
4547
  }
4397
4548
  if (anchor.kind === 'virtual-rect') {
4398
4549
  if (!anchor.anchorKey || !anchor.anchorKey.trim()) {
@@ -7545,8 +7696,8 @@ const CANONICAL_DECISION_STAGES = [
7545
7696
  icon: 'shield_lock',
7546
7697
  titleKey: 'stage.PROTECTED_GUARD.title',
7547
7698
  subtitleKey: 'stage.PROTECTED_GUARD.subtitle',
7548
- defaultTitlePtBr: 'Guarda Protegida',
7549
- defaultSubtitlePtBr: 'Invariantes estruturais e isolamento de escopo',
7699
+ defaultTitlePtBr: 'Pré-requisitos obrigatórios',
7700
+ defaultSubtitlePtBr: 'Condições de segurança e escopo verificadas antes de qualquer regra',
7550
7701
  },
7551
7702
  {
7552
7703
  id: 'DOMAIN_DECISION',
@@ -7555,8 +7706,8 @@ const CANONICAL_DECISION_STAGES = [
7555
7706
  icon: 'gavel',
7556
7707
  titleKey: 'stage.DOMAIN_DECISION.title',
7557
7708
  subtitleKey: 'stage.DOMAIN_DECISION.subtitle',
7558
- defaultTitlePtBr: 'Decisão de Domínio',
7559
- defaultSubtitlePtBr: 'Regras centrais e elegibilidade de negócio',
7709
+ defaultTitlePtBr: 'Regras de negócio',
7710
+ defaultSubtitlePtBr: 'Regras centrais que definem elegibilidade e limites da operação',
7560
7711
  },
7561
7712
  {
7562
7713
  id: 'POST_DECISION',
@@ -7565,8 +7716,8 @@ const CANONICAL_DECISION_STAGES = [
7565
7716
  icon: 'fact_check',
7566
7717
  titleKey: 'stage.POST_DECISION.title',
7567
7718
  subtitleKey: 'stage.POST_DECISION.subtitle',
7568
- defaultTitlePtBr: 'Pós-Decisão',
7569
- defaultSubtitlePtBr: 'Consistência cruzada e fechamento decisório',
7719
+ defaultTitlePtBr: 'Validações cruzadas',
7720
+ defaultSubtitlePtBr: 'Consistência entre campos, saldos e regras complementares',
7570
7721
  },
7571
7722
  {
7572
7723
  id: 'TRANSFORMATION_INTENT',
@@ -7575,8 +7726,8 @@ const CANONICAL_DECISION_STAGES = [
7575
7726
  icon: 'auto_fix_high',
7576
7727
  titleKey: 'stage.TRANSFORMATION_INTENT.title',
7577
7728
  subtitleKey: 'stage.TRANSFORMATION_INTENT.subtitle',
7578
- defaultTitlePtBr: 'Intenção de Transformação',
7579
- defaultSubtitlePtBr: 'Propostas determinísticas de enriquecimento',
7729
+ defaultTitlePtBr: 'Ajustes automáticos',
7730
+ defaultSubtitlePtBr: 'Preenchimentos e cálculos automáticos propostos pela regra',
7580
7731
  },
7581
7732
  {
7582
7733
  id: 'EFFECT_INTENT',
@@ -7585,8 +7736,8 @@ const CANONICAL_DECISION_STAGES = [
7585
7736
  icon: 'bolt',
7586
7737
  titleKey: 'stage.EFFECT_INTENT.title',
7587
7738
  subtitleKey: 'stage.EFFECT_INTENT.subtitle',
7588
- defaultTitlePtBr: 'Intenção de Efeito',
7589
- defaultSubtitlePtBr: 'Efeitos colaterais auditáveis pós-decisão',
7739
+ defaultTitlePtBr: 'Consequências e registros',
7740
+ defaultSubtitlePtBr: 'Notificações, auditoria e registros gerados após a decisão',
7590
7741
  },
7591
7742
  ];
7592
7743
  const CANONICAL_DECISION_STAGE_SET = new Set(CANONICAL_DECISION_STAGES.map((stage) => stage.id));
@@ -7757,6 +7908,248 @@ function asStringArray(value) {
7757
7908
  .map((entry) => asTrimmedText(entry))
7758
7909
  .filter((entry) => Boolean(entry))));
7759
7910
  }
7911
+ /**
7912
+ * Validates an external legal-basis reference URL fail-closed: only absolute
7913
+ * `http:` or `https:` URLs without embedded credentials are accepted.
7914
+ */
7915
+ function isSafeLegalBasisUrl(url) {
7916
+ const clean = asTrimmedText(url);
7917
+ if (!clean || clean.startsWith('//')) {
7918
+ return false;
7919
+ }
7920
+ try {
7921
+ const parsed = new URL(clean);
7922
+ if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') {
7923
+ return false;
7924
+ }
7925
+ return !parsed.username && !parsed.password;
7926
+ }
7927
+ catch {
7928
+ return false;
7929
+ }
7930
+ }
7931
+ function normalizeRuleLegalBasisList(raw) {
7932
+ if (raw === null || raw === undefined) {
7933
+ return [];
7934
+ }
7935
+ const items = Array.isArray(raw) ? raw : [raw];
7936
+ const normalized = [];
7937
+ const seen = new Set();
7938
+ for (const entry of items) {
7939
+ if (typeof entry === 'string') {
7940
+ const code = asTrimmedText(entry);
7941
+ if (code && !seen.has(code)) {
7942
+ seen.add(code);
7943
+ normalized.push({ code });
7944
+ }
7945
+ continue;
7946
+ }
7947
+ const record = asPlainRecord(entry);
7948
+ if (!record) {
7949
+ continue;
7950
+ }
7951
+ const title = asTrimmedText(record['title']);
7952
+ const article = asTrimmedText(record['article']);
7953
+ const jurisdiction = asTrimmedText(record['jurisdiction']);
7954
+ const summary = asTrimmedText(record['summary']);
7955
+ const rawUrl = asTrimmedText(record['url']);
7956
+ const url = rawUrl && isSafeLegalBasisUrl(rawUrl) ? rawUrl : null;
7957
+ const code = asTrimmedText(record['code']) ?? title ?? article;
7958
+ if (!code) {
7959
+ continue;
7960
+ }
7961
+ const dedupeKey = `${code}::${article ?? ''}::${jurisdiction ?? ''}`;
7962
+ if (seen.has(dedupeKey)) {
7963
+ continue;
7964
+ }
7965
+ seen.add(dedupeKey);
7966
+ normalized.push({
7967
+ code,
7968
+ ...(title ? { title } : {}),
7969
+ ...(article ? { article } : {}),
7970
+ ...(jurisdiction ? { jurisdiction } : {}),
7971
+ ...(summary ? { summary } : {}),
7972
+ ...(url ? { url } : {}),
7973
+ });
7974
+ }
7975
+ return normalized;
7976
+ }
7977
+ function normalizeRuleDocumentation(raw) {
7978
+ const outer = asPlainRecord(raw);
7979
+ if (!outer) {
7980
+ return undefined;
7981
+ }
7982
+ const nested = asPlainRecord(outer['documentation']);
7983
+ const title = asTrimmedText(outer['title']) ?? asTrimmedText(nested?.['title']);
7984
+ const summary = asTrimmedText(outer['summary']) ?? asTrimmedText(nested?.['summary']);
7985
+ const whenApplies = asTrimmedText(outer['whenApplies']) ?? asTrimmedText(nested?.['whenApplies']);
7986
+ const rationale = asTrimmedText(outer['rationale']) ?? asTrimmedText(nested?.['rationale']);
7987
+ const customizationGuidance = asTrimmedText(outer['customizationGuidance']) ??
7988
+ asTrimmedText(nested?.['customizationGuidance']);
7989
+ const directLegal = normalizeRuleLegalBasisList(outer['legalBasis']);
7990
+ const legalBasis = directLegal.length > 0
7991
+ ? directLegal
7992
+ : normalizeRuleLegalBasisList(nested?.['legalBasis']);
7993
+ if (!title &&
7994
+ !summary &&
7995
+ !whenApplies &&
7996
+ !rationale &&
7997
+ !customizationGuidance &&
7998
+ legalBasis.length === 0) {
7999
+ return undefined;
8000
+ }
8001
+ return {
8002
+ ...(title ? { title } : {}),
8003
+ ...(summary ? { summary } : {}),
8004
+ ...(whenApplies ? { whenApplies } : {}),
8005
+ ...(rationale ? { rationale } : {}),
8006
+ ...(legalBasis.length > 0 ? { legalBasis } : {}),
8007
+ ...(customizationGuidance ? { customizationGuidance } : {}),
8008
+ };
8009
+ }
8010
+ function normalizeStringMap(raw) {
8011
+ const record = asPlainRecord(raw);
8012
+ if (!record) {
8013
+ return {};
8014
+ }
8015
+ const result = {};
8016
+ for (const [key, value] of Object.entries(record)) {
8017
+ const cleanKey = asTrimmedText(key);
8018
+ const cleanVal = asTrimmedText(value);
8019
+ if (cleanKey && cleanVal) {
8020
+ result[cleanKey] = cleanVal;
8021
+ }
8022
+ }
8023
+ return result;
8024
+ }
8025
+ function stripKnownFieldPrefix(fieldOrPath) {
8026
+ const dotIdx = fieldOrPath.indexOf('.');
8027
+ if (dotIdx <= 0 || dotIdx >= fieldOrPath.length - 1) {
8028
+ return fieldOrPath;
8029
+ }
8030
+ const prefix = fieldOrPath.slice(0, dotIdx).toLowerCase();
8031
+ if (prefix === 'draft' ||
8032
+ prefix === 'current' ||
8033
+ prefix === 'facts' ||
8034
+ prefix === 'context' ||
8035
+ prefix === 'neighborhood') {
8036
+ return fieldOrPath.slice(dotIdx + 1);
8037
+ }
8038
+ return fieldOrPath;
8039
+ }
8040
+ function isRawFieldKeyFallback(label, key) {
8041
+ if (!label) {
8042
+ return true;
8043
+ }
8044
+ return label === key || label === stripKnownFieldPrefix(key);
8045
+ }
8046
+ function resolveHumanFieldLabel(fieldOrPath, targetFieldLabels, factPathLabels, catalogFieldLabels) {
8047
+ const clean = asTrimmedText(fieldOrPath);
8048
+ if (!clean) {
8049
+ return undefined;
8050
+ }
8051
+ const direct = asTrimmedText(targetFieldLabels?.[clean]) ??
8052
+ asTrimmedText(factPathLabels?.[clean]) ??
8053
+ asTrimmedText(catalogFieldLabels?.[clean]);
8054
+ if (direct) {
8055
+ return direct;
8056
+ }
8057
+ const stripped = stripKnownFieldPrefix(clean);
8058
+ if (stripped !== clean) {
8059
+ return (asTrimmedText(targetFieldLabels?.[stripped]) ??
8060
+ asTrimmedText(factPathLabels?.[stripped]) ??
8061
+ asTrimmedText(catalogFieldLabels?.[stripped]));
8062
+ }
8063
+ return undefined;
8064
+ }
8065
+ function enrichRuleSetsWithFieldSchemas(ruleSets, fields) {
8066
+ if (!ruleSets.length || !fields.length) {
8067
+ return ruleSets;
8068
+ }
8069
+ const schemaLabelByName = new Map();
8070
+ for (const field of fields) {
8071
+ const name = asTrimmedText(field?.name);
8072
+ const label = asTrimmedText(field?.label);
8073
+ if (name && label && !schemaLabelByName.has(name)) {
8074
+ schemaLabelByName.set(name, label);
8075
+ }
8076
+ }
8077
+ if (schemaLabelByName.size === 0) {
8078
+ return ruleSets;
8079
+ }
8080
+ const lookupSchemaLabel = (fieldOrPath) => {
8081
+ if (!fieldOrPath) {
8082
+ return undefined;
8083
+ }
8084
+ return (schemaLabelByName.get(fieldOrPath) ??
8085
+ schemaLabelByName.get(stripKnownFieldPrefix(fieldOrPath)));
8086
+ };
8087
+ return ruleSets.map((ruleSet) => {
8088
+ const nextTargetFieldLabels = {
8089
+ ...(ruleSet.targetFieldLabels ?? {}),
8090
+ };
8091
+ for (const targetField of ruleSet.targetFields) {
8092
+ const existing = asTrimmedText(nextTargetFieldLabels[targetField]);
8093
+ const schemaLabel = lookupSchemaLabel(targetField);
8094
+ if (schemaLabel && isRawFieldKeyFallback(existing, targetField)) {
8095
+ nextTargetFieldLabels[targetField] = schemaLabel;
8096
+ }
8097
+ }
8098
+ const nextFactPathLabels = {
8099
+ ...(ruleSet.referencedFactPathLabels ?? {}),
8100
+ };
8101
+ for (const paths of Object.values(ruleSet.factPathsByRoot)) {
8102
+ for (const path of paths) {
8103
+ const existing = asTrimmedText(nextFactPathLabels[path]);
8104
+ const schemaLabel = lookupSchemaLabel(path);
8105
+ if (schemaLabel && isRawFieldKeyFallback(existing, path)) {
8106
+ nextFactPathLabels[path] = schemaLabel;
8107
+ }
8108
+ }
8109
+ }
8110
+ const nextBindings = ruleSet.bindings.map((binding) => {
8111
+ const bindingTarget = asTrimmedText(binding.targetField);
8112
+ let nextTargetLabel = asTrimmedText(binding.targetFieldLabel) ?? undefined;
8113
+ if (bindingTarget) {
8114
+ const fromSetOrSchema = asTrimmedText(nextTargetFieldLabels[bindingTarget]) ??
8115
+ lookupSchemaLabel(bindingTarget);
8116
+ if (fromSetOrSchema && isRawFieldKeyFallback(nextTargetLabel, bindingTarget)) {
8117
+ nextTargetLabel = fromSetOrSchema;
8118
+ if (isRawFieldKeyFallback(nextTargetFieldLabels[bindingTarget], bindingTarget)) {
8119
+ nextTargetFieldLabels[bindingTarget] = fromSetOrSchema;
8120
+ }
8121
+ }
8122
+ }
8123
+ const bindingFactLabels = {
8124
+ ...normalizeStringMap(binding.referencedFactPathLabels),
8125
+ };
8126
+ for (const path of binding.referencedFactPaths ?? []) {
8127
+ const existing = asTrimmedText(bindingFactLabels[path]);
8128
+ const fallbackLabel = asTrimmedText(nextFactPathLabels[path]) ?? lookupSchemaLabel(path);
8129
+ if (fallbackLabel && isRawFieldKeyFallback(existing, path)) {
8130
+ bindingFactLabels[path] = fallbackLabel;
8131
+ }
8132
+ }
8133
+ return {
8134
+ ...binding,
8135
+ ...(nextTargetLabel ? { targetFieldLabel: nextTargetLabel } : {}),
8136
+ ...(Object.keys(bindingFactLabels).length > 0
8137
+ ? { referencedFactPathLabels: bindingFactLabels }
8138
+ : {}),
8139
+ };
8140
+ });
8141
+ return {
8142
+ ...ruleSet,
8143
+ bindings: nextBindings,
8144
+ ...(Object.keys(nextTargetFieldLabels).length > 0
8145
+ ? { targetFieldLabels: nextTargetFieldLabels }
8146
+ : {}),
8147
+ ...(Object.keys(nextFactPathLabels).length > 0
8148
+ ? { referencedFactPathLabels: nextFactPathLabels }
8149
+ : {}),
8150
+ };
8151
+ });
8152
+ }
7760
8153
  function inferFieldNameFromNodeKey(nodeKey) {
7761
8154
  const marker = '.field.';
7762
8155
  const idx = nodeKey.indexOf(marker);
@@ -7857,9 +8250,11 @@ function extractDomainCatalogRuleCatalog(catalog, requestedResourceKey) {
7857
8250
  governance: [],
7858
8251
  };
7859
8252
  }
7860
- const ruleSets = [];
8253
+ const rawRuleSets = [];
7861
8254
  const facts = [];
7862
8255
  const nodesByKey = new Map();
8256
+ const catalogFieldLabels = {};
8257
+ const catalogFactLabels = {};
7863
8258
  for (const node of catalog.nodes) {
7864
8259
  const metadata = asPlainRecord(node.metadata);
7865
8260
  const nodeResourceKey = asTrimmedText(metadata?.['resourceKey']);
@@ -7895,47 +8290,154 @@ function extractDomainCatalogRuleCatalog(catalog, requestedResourceKey) {
7895
8290
  }
7896
8291
  }
7897
8292
  }
7898
- ruleSets.push({
7899
- nodeKey: node.nodeKey,
7900
- resourceKey: nodeResourceKey || resolvedResourceKey,
8293
+ rawRuleSets.push({
8294
+ node,
8295
+ ruleMeta,
8296
+ nodeResourceKey,
7901
8297
  ruleSetKey,
7902
- operationKey: asTrimmedText(ruleMeta.operationKey),
7903
- label: asTrimmedText(node.label) || ruleSetKey,
7904
- description: node.description ?? null,
7905
- domainKey: asTrimmedText(ruleMeta.domainKey),
7906
- boundedContextKey: asTrimmedText(ruleMeta.boundedContextKey),
7907
- version: typeof ruleMeta.version === 'number' ? ruleMeta.version : undefined,
7908
- failPolicy: asTrimmedText(ruleMeta.failPolicy),
7909
- availableRoots: Array.isArray(ruleMeta.availableRoots)
7910
- ? ruleMeta.availableRoots.filter((r) => typeof r === 'string')
7911
- : [],
7912
- conceptRoots: Array.isArray(ruleMeta.conceptRoots)
7913
- ? ruleMeta.conceptRoots.filter((r) => typeof r === 'string')
7914
- : [],
7915
8298
  factPathsByRoot,
7916
- slots: Array.isArray(ruleMeta.slots) ? ruleMeta.slots : [],
7917
- bindings: Array.isArray(ruleMeta.rules) ? ruleMeta.rules : [],
7918
- reasonCodes: Array.isArray(ruleMeta.reasonCodes)
7919
- ? ruleMeta.reasonCodes.filter((c) => typeof c === 'string')
7920
- : [],
7921
- targetFields: Array.isArray(ruleMeta.targetFields)
7922
- ? ruleMeta.targetFields.filter((f) => typeof f === 'string')
7923
- : [],
7924
8299
  });
7925
8300
  continue;
7926
8301
  }
8302
+ if (node.nodeType === 'field') {
8303
+ const fieldName = asTrimmedText(metadata?.['fieldName']) ?? inferFieldNameFromNodeKey(node.nodeKey);
8304
+ const fieldLabel = asTrimmedText(node.label);
8305
+ if (fieldName && fieldLabel && !catalogFieldLabels[fieldName]) {
8306
+ catalogFieldLabels[fieldName] = fieldLabel;
8307
+ }
8308
+ continue;
8309
+ }
7927
8310
  if (node.nodeType === 'fact') {
7928
8311
  const factMeta = metadata;
8312
+ const factPath = asTrimmedText(metadata?.['factPath']);
8313
+ const factLabel = asTrimmedText(node.label) || node.nodeKey;
8314
+ if (factPath && factLabel && !catalogFactLabels[factPath]) {
8315
+ catalogFactLabels[factPath] = factLabel;
8316
+ }
7929
8317
  facts.push({
7930
8318
  key: node.nodeKey,
7931
- label: asTrimmedText(node.label) || node.nodeKey,
8319
+ label: factLabel,
7932
8320
  description: node.description ?? null,
7933
- factPath: asTrimmedText(metadata?.['factPath']),
8321
+ factPath,
7934
8322
  dataType: asTrimmedText(factMeta?.dataType),
7935
8323
  unit: asTrimmedText(factMeta?.unit),
7936
8324
  });
7937
8325
  }
7938
8326
  }
8327
+ const ruleSets = rawRuleSets.map(({ node, ruleMeta, nodeResourceKey, ruleSetKey, factPathsByRoot }) => {
8328
+ const targetFields = Array.isArray(ruleMeta.targetFields)
8329
+ ? ruleMeta.targetFields.filter((f) => typeof f === 'string')
8330
+ : [];
8331
+ const explicitTargetLabels = normalizeStringMap(ruleMeta.targetFieldLabels);
8332
+ const targetFieldLabels = {};
8333
+ for (const field of targetFields) {
8334
+ const resolved = resolveHumanFieldLabel(field, explicitTargetLabels, undefined, catalogFieldLabels);
8335
+ if (resolved) {
8336
+ targetFieldLabels[field] = resolved;
8337
+ }
8338
+ }
8339
+ for (const [k, v] of Object.entries(explicitTargetLabels)) {
8340
+ targetFieldLabels[k] = v;
8341
+ }
8342
+ const explicitFactLabels = normalizeStringMap(ruleMeta.referencedFactPathLabels);
8343
+ const referencedFactPathLabels = {
8344
+ ...explicitFactLabels,
8345
+ };
8346
+ const allFactPaths = new Set([
8347
+ ...(Array.isArray(ruleMeta.referencedFactPaths)
8348
+ ? ruleMeta.referencedFactPaths.filter((p) => typeof p === 'string')
8349
+ : []),
8350
+ ...Object.values(factPathsByRoot).flat(),
8351
+ ]);
8352
+ for (const factPath of allFactPaths) {
8353
+ if (!referencedFactPathLabels[factPath]) {
8354
+ const resolved = resolveHumanFieldLabel(factPath, targetFieldLabels, catalogFactLabels, catalogFieldLabels);
8355
+ if (resolved) {
8356
+ referencedFactPathLabels[factPath] = resolved;
8357
+ }
8358
+ }
8359
+ }
8360
+ const slots = Array.isArray(ruleMeta.slots)
8361
+ ? ruleMeta.slots.map((slot) => {
8362
+ const doc = normalizeRuleDocumentation(slot);
8363
+ const legal = normalizeRuleLegalBasisList(slot.legalBasis ?? doc?.legalBasis);
8364
+ return {
8365
+ ...slot,
8366
+ ...(doc ? { documentation: doc } : {}),
8367
+ ...(legal.length > 0 ? { legalBasis: legal } : {}),
8368
+ };
8369
+ })
8370
+ : [];
8371
+ const bindings = Array.isArray(ruleMeta.rules)
8372
+ ? ruleMeta.rules.map((binding) => {
8373
+ const doc = normalizeRuleDocumentation(binding);
8374
+ const legal = normalizeRuleLegalBasisList(binding.legalBasis ?? doc?.legalBasis);
8375
+ const explicitBindingTargetLabel = asTrimmedText(binding.targetFieldLabel);
8376
+ const resolvedTargetLabel = explicitBindingTargetLabel ??
8377
+ resolveHumanFieldLabel(binding.targetField, targetFieldLabels, referencedFactPathLabels, catalogFieldLabels);
8378
+ if (binding.targetField && resolvedTargetLabel && !targetFieldLabels[binding.targetField]) {
8379
+ targetFieldLabels[binding.targetField] = resolvedTargetLabel;
8380
+ }
8381
+ const bindingFactLabels = {
8382
+ ...normalizeStringMap(binding.referencedFactPathLabels),
8383
+ };
8384
+ for (const path of binding.referencedFactPaths ?? []) {
8385
+ if (!bindingFactLabels[path]) {
8386
+ const resolved = resolveHumanFieldLabel(path, targetFieldLabels, referencedFactPathLabels, catalogFieldLabels);
8387
+ if (resolved) {
8388
+ bindingFactLabels[path] = resolved;
8389
+ }
8390
+ }
8391
+ }
8392
+ return {
8393
+ ...binding,
8394
+ ...(doc ? { documentation: doc } : {}),
8395
+ ...(legal.length > 0 ? { legalBasis: legal } : {}),
8396
+ ...(resolvedTargetLabel ? { targetFieldLabel: resolvedTargetLabel } : {}),
8397
+ ...(Object.keys(bindingFactLabels).length > 0
8398
+ ? { referencedFactPathLabels: bindingFactLabels }
8399
+ : {}),
8400
+ };
8401
+ })
8402
+ : [];
8403
+ const ruleSetDoc = normalizeRuleDocumentation(ruleMeta.documentation ?? {
8404
+ summary: asTrimmedText(ruleMeta['summary']),
8405
+ whenApplies: asTrimmedText(ruleMeta['whenApplies']),
8406
+ rationale: asTrimmedText(ruleMeta['rationale']),
8407
+ legalBasis: ruleMeta['legalBasis'],
8408
+ customizationGuidance: asTrimmedText(ruleMeta['customizationGuidance']),
8409
+ });
8410
+ return {
8411
+ nodeKey: node.nodeKey,
8412
+ resourceKey: nodeResourceKey || resolvedResourceKey,
8413
+ ruleSetKey,
8414
+ operationKey: asTrimmedText(ruleMeta.operationKey),
8415
+ label: asTrimmedText(node.label) || ruleSetKey,
8416
+ description: node.description ?? null,
8417
+ domainKey: asTrimmedText(ruleMeta.domainKey),
8418
+ boundedContextKey: asTrimmedText(ruleMeta.boundedContextKey),
8419
+ version: typeof ruleMeta.version === 'number' ? ruleMeta.version : undefined,
8420
+ failPolicy: asTrimmedText(ruleMeta.failPolicy),
8421
+ availableRoots: Array.isArray(ruleMeta.availableRoots)
8422
+ ? ruleMeta.availableRoots.filter((r) => typeof r === 'string')
8423
+ : [],
8424
+ conceptRoots: Array.isArray(ruleMeta.conceptRoots)
8425
+ ? ruleMeta.conceptRoots.filter((r) => typeof r === 'string')
8426
+ : [],
8427
+ factPathsByRoot,
8428
+ slots,
8429
+ bindings,
8430
+ reasonCodes: Array.isArray(ruleMeta.reasonCodes)
8431
+ ? ruleMeta.reasonCodes.filter((c) => typeof c === 'string')
8432
+ : [],
8433
+ targetFields,
8434
+ ...(ruleSetDoc ? { documentation: ruleSetDoc } : {}),
8435
+ ...(Object.keys(targetFieldLabels).length > 0 ? { targetFieldLabels } : {}),
8436
+ ...(Object.keys(referencedFactPathLabels).length > 0
8437
+ ? { referencedFactPathLabels }
8438
+ : {}),
8439
+ };
8440
+ });
7939
8441
  const effectiveResourceKey = resolvedResourceKey || ruleSets[0]?.resourceKey || '';
7940
8442
  const governance = [];
7941
8443
  const governedNodeKeys = new Set();
@@ -8042,6 +8544,7 @@ function extractDomainCatalogRuleCatalog(catalog, requestedResourceKey) {
8042
8544
  ruleSets,
8043
8545
  facts,
8044
8546
  governance,
8547
+ ...(Object.keys(catalogFieldLabels).length > 0 ? { fieldLabels: catalogFieldLabels } : {}),
8045
8548
  };
8046
8549
  }
8047
8550
  /**
@@ -8103,9 +8606,14 @@ const DECISION_INSPECTOR_I18N_NAMESPACE = 'decisionInspector';
8103
8606
  const PT_BR_CATALOG = {
8104
8607
  'drawer.title': 'Inspeção de Decisão e Governança',
8105
8608
  'drawer.titleWithResource': 'Decisão e Governança · {{resource}}',
8106
- 'drawer.subtitle': 'Regras determinísticas em 5 estágios, ciclo de vida operacional e governança de dados',
8609
+ 'drawer.subtitle': 'Regras de negócio explicadas em linguagem simples, ações disponíveis e proteção de dados',
8107
8610
  'trigger.resourceButton': 'Regras de Negócio',
8108
8611
  'trigger.inspectViolation': 'Inspecionar regra aplicada',
8612
+ 'viewMode.ariaLabel': 'Alternar entre Visão de Negócio e Modo Técnico',
8613
+ 'viewMode.business': 'Visão de Negócio',
8614
+ 'viewMode.technical': 'Modo Técnico',
8615
+ 'viewMode.toggleToTechnical': 'Mostrar identificadores e metadados técnicos',
8616
+ 'viewMode.toggleToBusiness': 'Voltar para a Visão de Negócio simplificada',
8109
8617
  'lens.ariaLabel': 'Lentes de inspeção semântica do recurso',
8110
8618
  'lens.business': 'Regras de Negócio',
8111
8619
  'lens.capabilities': 'Ciclo de Vida e Ações',
@@ -8116,33 +8624,78 @@ const PT_BR_CATALOG = {
8116
8624
  'state.errorTitle': 'Não foi possível carregar o plano de decisão',
8117
8625
  'state.errorDescription': 'Verifique a disponibilidade do catálogo semântico (/schemas/domain) ou tente novamente.',
8118
8626
  'state.retry': 'Tentar novamente',
8119
- 'violation.bannerTitle': 'Decisão determinística aplicada à operação',
8627
+ 'violation.bannerTitle': 'Regra acionada durante a operação',
8120
8628
  'violation.reasonCode': 'Código',
8121
- 'violation.stage': 'Estágio',
8122
- 'violation.source': 'Autoridade',
8123
- 'violation.slot': 'Slot',
8629
+ 'violation.stage': 'Etapa',
8630
+ 'violation.source': 'Origem',
8631
+ 'violation.slot': 'Ponto de decisão',
8124
8632
  'violation.lineage': 'Linhagem normativa',
8125
8633
  'violation.targetField': 'Campo afetado',
8126
- 'operations.label': 'Operações governadas',
8634
+ 'operations.label': 'Quando estas regras atuam',
8127
8635
  'operations.defaultOperation': 'Padrão',
8636
+ 'operations.op.CREATE': 'Ao cadastrar',
8637
+ 'operations.op.UPDATE': 'Ao alterar',
8638
+ 'operations.op.DELETE': 'Ao excluir',
8639
+ 'operations.op.APPROVE': 'Ao aprovar',
8640
+ 'operations.op.CANCEL': 'Ao cancelar',
8641
+ 'operations.op.DEFAULT': 'Operação padrão',
8642
+ 'failPolicy.FAIL_CLOSED': 'Bloqueio preventivo ativo',
8643
+ 'failPolicy.FAIL_OPEN': 'Prossegue com alerta',
8644
+ 'failPolicy.FAIL_FAST': 'Interrupção imediata',
8128
8645
  'stages.ariaLabel': 'Cinco estágios canônicos de decisão',
8129
8646
  'stages.emptyStage': 'Sem slots neste estágio',
8647
+ 'stages.emptyStagesCollapsed': 'Etapas sem regras ativas neste fluxo:',
8648
+ 'stages.emptyStageCollapsedItem': '{{order}} · {{title}} (sem regras)',
8130
8649
  'stages.bindingsCount': '{{count}} regras vinculadas',
8131
8650
  'stages.singleBinding': '1 regra vinculada',
8651
+ 'stages.rulesCount': '{{count}} regras ativas',
8652
+ 'stages.singleRule': '1 regra ativa',
8653
+ 'stages.noRulesInStage': 'Sem regras cadastradas',
8132
8654
  'stages.violatedBadge': 'Acionado',
8133
- 'slotDetail.heading': 'Detalhe do Slot e Regras Ativas',
8134
- 'slotDetail.overridePolicy': 'Política de Extensão',
8655
+ 'slotDetail.heading': 'Explicação da Regra Selecionada',
8656
+ 'slotDetail.overridePolicy': 'Autonomia do Órgão',
8135
8657
  'slotDetail.aggregation': 'Agregação',
8136
8658
  'slotDetail.cardinality': 'Cardinalidade',
8137
8659
  'slotDetail.templateKey': 'Template Parametrizável',
8138
- 'slotDetail.noBindings': 'Este slot está declarado para extensão governada sem bindings fixos.',
8660
+ 'slotDetail.noBindings': 'Este ponto de decisão está preparado para receber regras do órgão, mas ainda não possui regras ativas.',
8661
+ 'ruleDetail.whatItChecks': 'O que verifica',
8662
+ 'ruleDetail.whenApplies': 'Quando se aplica',
8663
+ 'ruleDetail.whyItExists': 'Por que existe',
8664
+ 'ruleDetail.legalBasis': 'Amparo legal',
8665
+ 'ruleDetail.involvedFields': 'Campos envolvidos',
8666
+ 'ruleDetail.operatorMessage': 'Mensagem ao operador',
8667
+ 'ruleDetail.studioAction': 'Ação contextual para o Studio',
8668
+ 'ruleDetail.curationFallbackBadge': 'Explicação estrutural automática',
8669
+ 'ruleDetail.openLegalRef': 'Consultar norma',
8670
+ 'ruleDetail.noLegalBasis': 'Nenhum amparo legal específico registrado para esta regra.',
8671
+ 'ruleDetail.noInvolvedFields': 'Nenhum campo específico vinculado a esta regra.',
8672
+ 'ruleDetail.noOperatorMessage': 'Nenhuma mensagem específica configurada; utiliza a orientação padrão da operação.',
8673
+ 'ruleDetail.fallbackSummaryWithMessage': 'Verifica os critérios desta etapa e, em caso de impedimento, orienta: "{{message}}".',
8674
+ 'ruleDetail.fallbackSummaryGeneric': 'Avalia os critérios configurados para o ponto de decisão "{{slot}}".',
8675
+ 'ruleDetail.fallbackWhenApplies': 'Avaliada automaticamente {{operation}} na etapa "{{stage}}".',
8676
+ 'ruleDetail.fallbackWhenAppliesGeneric': 'Avaliada automaticamente na etapa "{{stage}}".',
8677
+ 'ruleDetail.fallbackRationale': 'Assegura conformidade normativa e consistência operacional antes de concluir o registro.',
8678
+ 'ruleDetail.openRuleInStudio': 'Abrir este ponto de decisão no Studio',
8139
8679
  'binding.reasonCode': 'Motivo',
8140
8680
  'binding.targetField': 'Campo Alvo',
8141
8681
  'binding.lineage': 'Linhagem',
8142
8682
  'binding.factPaths': 'Fatos avaliados',
8143
- 'roots.heading': 'Raízes Ontológicas e Fatos Determinísticos',
8144
- 'roots.empty': 'Nenhum caminho de fato referenciado explicitamente.',
8145
- 'facts.heading': 'Indicadores Calculados do Recurso (@ResourceFact)',
8683
+ 'roots.heading': 'Indicadores e Dados Considerados',
8684
+ 'roots.empty': 'Nenhum indicador ou caminho de fato referenciado explicitamente.',
8685
+ 'facts.heading': 'Indicadores Calculados do Recurso',
8686
+ 'technical.detailsHeading': 'Metadados técnicos de auditoria',
8687
+ 'technical.operationKey': 'Operação',
8688
+ 'technical.ruleSetKey': 'RuleSet',
8689
+ 'technical.slotKey': 'Slot',
8690
+ 'technical.bindingKey': 'Binding',
8691
+ 'technical.stageCode': 'Estágio',
8692
+ 'technical.failPolicy': 'Política de falha',
8693
+ 'technical.aggregationPolicy': 'Agregação',
8694
+ 'technical.falseDecision': 'Decisão quando falso',
8695
+ 'technical.reasonCode': 'Código de motivo',
8696
+ 'technical.factPaths': 'Caminhos de fatos',
8697
+ 'technical.rootsHeading': 'Raízes ontológicas',
8698
+ 'technical.origin': 'Origem',
8146
8699
  'capabilities.scopeCollection': 'Escopo de Coleção',
8147
8700
  'capabilities.scopeItem': 'Registro #{{id}}',
8148
8701
  'capabilities.operationsHeading': 'Capacidades Canônicas do Recurso',
@@ -8223,18 +8776,25 @@ const PT_BR_CATALOG = {
8223
8776
  'governance.category.HEALTH': 'Saúde / Prontuário',
8224
8777
  'governance.category.HEALTH_MEDICAL': 'Saúde / Ocupacional',
8225
8778
  'governance.category.OPERATIONAL': 'Operacional',
8226
- 'studio.handoffHint': 'Parametrização por tenant, simulação e aprovação em 4 olhos ocorrem na estação dedicada.',
8779
+ 'studio.handoffHint': 'Parametrização por órgão, simulação e aprovação em 4 olhos ocorrem na estação dedicada.',
8227
8780
  'studio.openAction': 'Governar no Praxis Rules Studio',
8228
- 'stage.PROTECTED_GUARD.title': 'Guarda Protegida',
8229
- 'stage.PROTECTED_GUARD.subtitle': 'Invariantes estruturais e isolamento de escopo',
8230
- 'stage.DOMAIN_DECISION.title': 'Decisão de Domínio',
8231
- 'stage.DOMAIN_DECISION.subtitle': 'Regras centrais e elegibilidade de negócio',
8232
- 'stage.POST_DECISION.title': 'Pós-Decisão',
8233
- 'stage.POST_DECISION.subtitle': 'Consistência cruzada e fechamento decisório',
8234
- 'stage.TRANSFORMATION_INTENT.title': 'Intenção de Transformação',
8235
- 'stage.TRANSFORMATION_INTENT.subtitle': 'Propostas determinísticas de enriquecimento',
8236
- 'stage.EFFECT_INTENT.title': 'Intenção de Efeito',
8237
- 'stage.EFFECT_INTENT.subtitle': 'Efeitos colaterais auditáveis pós-decisão',
8781
+ 'studio.policyGuidance.FORBIDDEN': 'Regra fixa de segurança e integridade. Não permite alterações ou parametrizações pelo órgão.',
8782
+ 'studio.policyGuidance.LOCKED': 'Regra protegida pelo produto. Somente consulta; alterações exigem atualização de versão.',
8783
+ 'studio.policyGuidance.RESTRICT_ONLY': 'O órgão pode tornar esta regra mais restritiva no Studio, mantendo a proteção mínima obrigatória.',
8784
+ 'studio.policyGuidance.PARAMETERIZABLE': 'Os limites e parâmetros desta regra podem ser ajustados pelo órgão no Studio sem alterar o código.',
8785
+ 'studio.policyGuidance.EXTENSIBLE': 'Permite adicionar novas regras complementares neste ponto de decisão pelo Studio.',
8786
+ 'studio.policyGuidance.REPLACEABLE': 'Regra padrão substituível: o órgão pode personalizar ou substituir a lógica aplicada no Studio.',
8787
+ 'studio.policyGuidance.DEFAULT': 'Consulte as permissões de parametrização e extensão deste ponto de decisão no Studio.',
8788
+ 'stage.PROTECTED_GUARD.title': 'Pré-requisitos obrigatórios',
8789
+ 'stage.PROTECTED_GUARD.subtitle': 'Condições de segurança e escopo verificadas antes de qualquer regra',
8790
+ 'stage.DOMAIN_DECISION.title': 'Regras de negócio',
8791
+ 'stage.DOMAIN_DECISION.subtitle': 'Regras centrais que definem elegibilidade e limites da operação',
8792
+ 'stage.POST_DECISION.title': 'Validações cruzadas',
8793
+ 'stage.POST_DECISION.subtitle': 'Consistência entre campos, saldos e regras complementares',
8794
+ 'stage.TRANSFORMATION_INTENT.title': 'Ajustes automáticos',
8795
+ 'stage.TRANSFORMATION_INTENT.subtitle': 'Preenchimentos e cálculos automáticos propostos pela regra',
8796
+ 'stage.EFFECT_INTENT.title': 'Consequências e registros',
8797
+ 'stage.EFFECT_INTENT.subtitle': 'Notificações, auditoria e registros gerados após a decisão',
8238
8798
  'policy.FORBIDDEN': 'Bloqueado (Produto)',
8239
8799
  'policy.RESTRICT_ONLY': 'Restritivo (Só Restringe)',
8240
8800
  'policy.LOCKED': 'Bloqueado (Produto)',
@@ -8254,9 +8814,14 @@ const PT_BR_CATALOG = {
8254
8814
  const EN_US_CATALOG = {
8255
8815
  'drawer.title': 'Decision & Governance Inspection',
8256
8816
  'drawer.titleWithResource': 'Decision & Governance · {{resource}}',
8257
- 'drawer.subtitle': 'Five-stage deterministic rules, operational lifecycle capabilities, and data governance',
8817
+ 'drawer.subtitle': 'Business rules in plain language, available actions, and data protection',
8258
8818
  'trigger.resourceButton': 'Business Rules',
8259
8819
  'trigger.inspectViolation': 'Inspect applied rule',
8820
+ 'viewMode.ariaLabel': 'Switch between Business View and Technical Mode',
8821
+ 'viewMode.business': 'Business View',
8822
+ 'viewMode.technical': 'Technical Mode',
8823
+ 'viewMode.toggleToTechnical': 'Show technical identifiers and metadata',
8824
+ 'viewMode.toggleToBusiness': 'Back to simplified Business View',
8260
8825
  'lens.ariaLabel': 'Semantic resource inspection lenses',
8261
8826
  'lens.business': 'Business Rules',
8262
8827
  'lens.capabilities': 'Lifecycle & Actions',
@@ -8267,33 +8832,78 @@ const EN_US_CATALOG = {
8267
8832
  'state.errorTitle': 'Could not load the decision plan',
8268
8833
  'state.errorDescription': 'Verify the availability of the semantic domain catalog (/schemas/domain) and try again.',
8269
8834
  'state.retry': 'Try again',
8270
- 'violation.bannerTitle': 'Deterministic decision applied to the operation',
8835
+ 'violation.bannerTitle': 'Rule triggered during the operation',
8271
8836
  'violation.reasonCode': 'Code',
8272
8837
  'violation.stage': 'Stage',
8273
- 'violation.source': 'Authority',
8274
- 'violation.slot': 'Slot',
8838
+ 'violation.source': 'Origin',
8839
+ 'violation.slot': 'Decision point',
8275
8840
  'violation.lineage': 'Normative lineage',
8276
8841
  'violation.targetField': 'Affected field',
8277
- 'operations.label': 'Governed operations',
8842
+ 'operations.label': 'When these rules apply',
8278
8843
  'operations.defaultOperation': 'Default',
8844
+ 'operations.op.CREATE': 'On create',
8845
+ 'operations.op.UPDATE': 'On update',
8846
+ 'operations.op.DELETE': 'On delete',
8847
+ 'operations.op.APPROVE': 'On approve',
8848
+ 'operations.op.CANCEL': 'On cancel',
8849
+ 'operations.op.DEFAULT': 'Default operation',
8850
+ 'failPolicy.FAIL_CLOSED': 'Preventive lock active',
8851
+ 'failPolicy.FAIL_OPEN': 'Proceed with warning',
8852
+ 'failPolicy.FAIL_FAST': 'Immediate halt',
8279
8853
  'stages.ariaLabel': 'Five canonical decision stages',
8280
8854
  'stages.emptyStage': 'No slots in this stage',
8855
+ 'stages.emptyStagesCollapsed': 'Stages without active rules in this flow:',
8856
+ 'stages.emptyStageCollapsedItem': '{{order}} · {{title}} (no rules)',
8281
8857
  'stages.bindingsCount': '{{count}} bound rules',
8282
8858
  'stages.singleBinding': '1 bound rule',
8859
+ 'stages.rulesCount': '{{count}} active rules',
8860
+ 'stages.singleRule': '1 active rule',
8861
+ 'stages.noRulesInStage': 'No rules configured',
8283
8862
  'stages.violatedBadge': 'Triggered',
8284
- 'slotDetail.heading': 'Slot Detail & Active Rules',
8285
- 'slotDetail.overridePolicy': 'Override Policy',
8863
+ 'slotDetail.heading': 'Selected Rule Explanation',
8864
+ 'slotDetail.overridePolicy': 'Tenant Autonomy',
8286
8865
  'slotDetail.aggregation': 'Aggregation',
8287
8866
  'slotDetail.cardinality': 'Cardinality',
8288
8867
  'slotDetail.templateKey': 'Parameter Template',
8289
- 'slotDetail.noBindings': 'This slot is declared for governed extension with no fixed bindings.',
8868
+ 'slotDetail.noBindings': 'This decision point is open for governed rules, with no active rules configured yet.',
8869
+ 'ruleDetail.whatItChecks': 'What it checks',
8870
+ 'ruleDetail.whenApplies': 'When it applies',
8871
+ 'ruleDetail.whyItExists': 'Why it exists',
8872
+ 'ruleDetail.legalBasis': 'Legal basis',
8873
+ 'ruleDetail.involvedFields': 'Involved fields',
8874
+ 'ruleDetail.operatorMessage': 'Operator message',
8875
+ 'ruleDetail.studioAction': 'Contextual Studio action',
8876
+ 'ruleDetail.curationFallbackBadge': 'Automatic structural explanation',
8877
+ 'ruleDetail.openLegalRef': 'View reference',
8878
+ 'ruleDetail.noLegalBasis': 'No specific legal basis recorded for this rule.',
8879
+ 'ruleDetail.noInvolvedFields': 'No specific fields linked to this rule.',
8880
+ 'ruleDetail.noOperatorMessage': 'No specific message configured; uses the default operation guidance.',
8881
+ 'ruleDetail.fallbackSummaryWithMessage': 'Checks the criteria for this stage and, when blocked, informs: "{{message}}".',
8882
+ 'ruleDetail.fallbackSummaryGeneric': 'Evaluates the criteria configured for decision point "{{slot}}".',
8883
+ 'ruleDetail.fallbackWhenApplies': 'Evaluated automatically {{operation}} during stage "{{stage}}".',
8884
+ 'ruleDetail.fallbackWhenAppliesGeneric': 'Evaluated automatically during stage "{{stage}}".',
8885
+ 'ruleDetail.fallbackRationale': 'Ensures regulatory compliance and operational consistency before completing the record.',
8886
+ 'ruleDetail.openRuleInStudio': 'Open this decision point in Studio',
8290
8887
  'binding.reasonCode': 'Reason',
8291
8888
  'binding.targetField': 'Target Field',
8292
8889
  'binding.lineage': 'Lineage',
8293
8890
  'binding.factPaths': 'Evaluated facts',
8294
- 'roots.heading': 'Ontological Roots & Deterministic Facts',
8891
+ 'roots.heading': 'Indicators and Considered Data',
8295
8892
  'roots.empty': 'No fact paths explicitly referenced.',
8296
- 'facts.heading': 'Computed Resource Facts (@ResourceFact)',
8893
+ 'facts.heading': 'Computed Resource Indicators',
8894
+ 'technical.detailsHeading': 'Technical audit metadata',
8895
+ 'technical.operationKey': 'Operation',
8896
+ 'technical.ruleSetKey': 'RuleSet',
8897
+ 'technical.slotKey': 'Slot',
8898
+ 'technical.bindingKey': 'Binding',
8899
+ 'technical.stageCode': 'Stage',
8900
+ 'technical.failPolicy': 'Fail policy',
8901
+ 'technical.aggregationPolicy': 'Aggregation',
8902
+ 'technical.falseDecision': 'False decision',
8903
+ 'technical.reasonCode': 'Reason code',
8904
+ 'technical.factPaths': 'Fact paths',
8905
+ 'technical.rootsHeading': 'Ontological roots',
8906
+ 'technical.origin': 'Origin',
8297
8907
  'capabilities.scopeCollection': 'Collection Scope',
8298
8908
  'capabilities.scopeItem': 'Record #{{id}}',
8299
8909
  'capabilities.operationsHeading': 'Canonical Resource Capabilities',
@@ -8376,16 +8986,23 @@ const EN_US_CATALOG = {
8376
8986
  'governance.category.OPERATIONAL': 'Operational',
8377
8987
  'studio.handoffHint': 'Tenant parameterization, simulation, and four-eyes approval run in the dedicated workstation.',
8378
8988
  'studio.openAction': 'Govern in Praxis Rules Studio',
8379
- 'stage.PROTECTED_GUARD.title': 'Protected Guard',
8380
- 'stage.PROTECTED_GUARD.subtitle': 'Structural invariants and scope isolation',
8381
- 'stage.DOMAIN_DECISION.title': 'Domain Decision',
8382
- 'stage.DOMAIN_DECISION.subtitle': 'Core business rules and eligibility',
8383
- 'stage.POST_DECISION.title': 'Post-Decision',
8384
- 'stage.POST_DECISION.subtitle': 'Cross-consistency and decision closure',
8385
- 'stage.TRANSFORMATION_INTENT.title': 'Transformation Intent',
8386
- 'stage.TRANSFORMATION_INTENT.subtitle': 'Deterministic enrichment proposals',
8387
- 'stage.EFFECT_INTENT.title': 'Effect Intent',
8388
- 'stage.EFFECT_INTENT.subtitle': 'Auditable post-decision side effects',
8989
+ 'studio.policyGuidance.FORBIDDEN': 'Fixed security and integrity rule. Does not allow tenant changes or parameterization.',
8990
+ 'studio.policyGuidance.LOCKED': 'Product-locked rule. Read-only; changes require a product release.',
8991
+ 'studio.policyGuidance.RESTRICT_ONLY': 'Tenants may tighten this rule in Studio while preserving the mandatory baseline safeguard.',
8992
+ 'studio.policyGuidance.PARAMETERIZABLE': 'Rule limits and parameters can be tuned by the tenant in Studio without code changes.',
8993
+ 'studio.policyGuidance.EXTENSIBLE': 'Allows adding complementary rules at this decision point in Studio.',
8994
+ 'studio.policyGuidance.REPLACEABLE': 'Replaceable default rule: the tenant can customize or replace this logic in Studio.',
8995
+ 'studio.policyGuidance.DEFAULT': 'Review parameterization and extension permissions for this decision point in Studio.',
8996
+ 'stage.PROTECTED_GUARD.title': 'Mandatory prerequisites',
8997
+ 'stage.PROTECTED_GUARD.subtitle': 'Security and scope conditions checked before any rule',
8998
+ 'stage.DOMAIN_DECISION.title': 'Business rules',
8999
+ 'stage.DOMAIN_DECISION.subtitle': 'Core rules defining operation eligibility and limits',
9000
+ 'stage.POST_DECISION.title': 'Cross-checks',
9001
+ 'stage.POST_DECISION.subtitle': 'Consistency across fields, balances, and complementary rules',
9002
+ 'stage.TRANSFORMATION_INTENT.title': 'Automatic adjustments',
9003
+ 'stage.TRANSFORMATION_INTENT.subtitle': 'Automatic values and calculations proposed by rules',
9004
+ 'stage.EFFECT_INTENT.title': 'Consequences & records',
9005
+ 'stage.EFFECT_INTENT.subtitle': 'Notifications, audit entries, and records generated after decision',
8389
9006
  'policy.FORBIDDEN': 'Forbidden (Product)',
8390
9007
  'policy.RESTRICT_ONLY': 'Restrict Only',
8391
9008
  'policy.LOCKED': 'Locked (Product)',
@@ -9218,12 +9835,38 @@ function getPraxisStackedBarPaintStyle(segment, fallbackTone = 'neutral') {
9218
9835
  color: paint,
9219
9836
  };
9220
9837
  }
9838
+ function isVisualizationEntrySuppressed(entry) {
9839
+ if (!entry || typeof entry !== 'object') {
9840
+ return false;
9841
+ }
9842
+ const obj = entry;
9843
+ return (obj.suppressed === true
9844
+ || obj.privacySuppressed === true
9845
+ || (obj.value === null && obj.state === 'suppressed'));
9846
+ }
9847
+ function countSuppressedEntries(entries) {
9848
+ if (!Array.isArray(entries)) {
9849
+ return 0;
9850
+ }
9851
+ let count = 0;
9852
+ for (const entry of entries) {
9853
+ if (isVisualizationEntrySuppressed(entry)) {
9854
+ count += 1;
9855
+ }
9856
+ }
9857
+ return count;
9858
+ }
9859
+ function resolvePreservedSuppressedCount(value) {
9860
+ return typeof value === 'number' && Number.isFinite(value) && value > 0
9861
+ ? Math.trunc(value)
9862
+ : 0;
9863
+ }
9221
9864
  function resolvePraxisStackedBarSegments(visualization) {
9222
9865
  if (!visualization || visualization.kind !== 'stackedBar') {
9223
9866
  return [];
9224
9867
  }
9225
9868
  if (Array.isArray(visualization.segments) && visualization.segments.length > 0) {
9226
- return visualization.segments.filter((seg) => !seg?.suppressed);
9869
+ return visualization.segments.filter((seg) => !isVisualizationEntrySuppressed(seg));
9227
9870
  }
9228
9871
  if (Array.isArray(visualization.items) && visualization.items.length > 0) {
9229
9872
  const mapped = [];
@@ -9235,7 +9878,7 @@ function resolvePraxisStackedBarSegments(visualization) {
9235
9878
  if (!item) {
9236
9879
  return [];
9237
9880
  }
9238
- if (item.suppressed === true || (item.value === null && item.state === 'suppressed')) {
9881
+ if (isVisualizationEntrySuppressed(item)) {
9239
9882
  continue;
9240
9883
  }
9241
9884
  if (typeof item.value !== 'number' || !Number.isFinite(item.value) || item.value < 0) {
@@ -9343,11 +9986,7 @@ function normalizeStackedBarDistribution(value, surface) {
9343
9986
  }
9344
9987
  const parsedSegments = [];
9345
9988
  const parsedItems = [];
9346
- const preservedSuppressedCount = typeof value.suppressedCount === 'number'
9347
- && Number.isFinite(value.suppressedCount)
9348
- && value.suppressedCount > 0
9349
- ? Math.trunc(value.suppressedCount)
9350
- : 0;
9989
+ const preservedSuppressedCount = resolvePreservedSuppressedCount(value.suppressedCount);
9351
9990
  let suppressedCount = 0;
9352
9991
  for (let i = 0; i < rawEntries.length; i++) {
9353
9992
  if (!Object.prototype.hasOwnProperty.call(rawEntries, i)) {
@@ -9376,8 +10015,7 @@ function normalizeStackedBarDistribution(value, surface) {
9376
10015
  };
9377
10016
  }
9378
10017
  const entryObj = rawEntry;
9379
- if (entryObj.suppressed === true
9380
- || (entryObj.value === null && entryObj.state === 'suppressed')) {
10018
+ if (isVisualizationEntrySuppressed(entryObj)) {
9381
10019
  suppressedCount += 1;
9382
10020
  continue;
9383
10021
  }
@@ -9488,22 +10126,23 @@ function normalizePraxisPresentationVisualization(value) {
9488
10126
  const normalizedTargetLabel = normalizeText$3(value.targetLabel);
9489
10127
  const thresholdsObj = normalizeThresholds(value.thresholds);
9490
10128
  const isTableCell = surface === 'table-cell';
10129
+ const normalizedPointsObj = normalizePoints(value.points);
9491
10130
  let resolvedTone = tone;
9492
10131
  let resolvedAriaLabel = ariaLabel;
9493
10132
  if (!resolvedTone && thresholdsObj?.thresholds?.length) {
9494
10133
  let evalVal = value.value;
9495
- if (evalVal === undefined && Array.isArray(value.points) && value.points.length > 0) {
9496
- const last = value.points[value.points.length - 1];
9497
- if (typeof last === 'number' && Number.isFinite(last)) {
9498
- evalVal = last;
9499
- }
9500
- else if (last && typeof last === 'object' && Number.isFinite(last.value)) {
9501
- evalVal = last.value;
9502
- }
10134
+ if (evalVal === undefined && normalizedPointsObj?.points?.length) {
10135
+ evalVal = normalizedPointsObj.points[normalizedPointsObj.points.length - 1].value;
9503
10136
  }
9504
10137
  else if (Array.isArray(evalVal) && evalVal.length > 0) {
9505
- const last = evalVal[evalVal.length - 1];
9506
- evalVal = typeof last === 'object' && last !== null && 'value' in last ? last.value : last;
10138
+ const visibleVals = evalVal.filter((entry) => !isVisualizationEntrySuppressed(entry));
10139
+ if (visibleVals.length > 0) {
10140
+ const last = visibleVals[visibleVals.length - 1];
10141
+ evalVal = typeof last === 'object' && last !== null && 'value' in last ? last.value : last;
10142
+ }
10143
+ else {
10144
+ evalVal = undefined;
10145
+ }
9507
10146
  }
9508
10147
  if (evalVal !== undefined && evalVal !== null) {
9509
10148
  const resolution = resolvePraxisMicroVisualizationTone(evalVal, thresholdsObj.thresholds);
@@ -9517,6 +10156,7 @@ function normalizePraxisPresentationVisualization(value) {
9517
10156
  }
9518
10157
  if (kind === 'stackedBar') {
9519
10158
  const stacked = normalizeStackedBarDistribution(value, surface);
10159
+ const stackedSuppressedCount = Math.max(stacked.suppressedCount ?? 0, countSuppressedEntries(value.points));
9520
10160
  return {
9521
10161
  kind,
9522
10162
  fallbackText,
@@ -9545,14 +10185,14 @@ function normalizePraxisPresentationVisualization(value) {
9545
10185
  ...(normalizeExpression(value.targetLabelExpr, 'targetLabelExpr') ?? {}),
9546
10186
  ...(normalizeNumber(value.baseline, 'baseline') ?? {}),
9547
10187
  ...(normalizeExpression(value.baselineExpr, 'baselineExpr') ?? {}),
9548
- ...(normalizePoints(value.points) ?? {}),
10188
+ ...(normalizedPointsObj ?? {}),
9549
10189
  ...(normalizeExpression(value.pointsExpr, 'pointsExpr') ?? {}),
9550
10190
  ...(stacked.segments ? { segments: stacked.segments } : {}),
9551
10191
  ...(normalizeExpression(value.segmentsExpr, 'segmentsExpr') ?? {}),
9552
10192
  ...(normalizeThresholds(value.thresholds) ?? {}),
9553
10193
  ...(normalizeExpression(value.thresholdsExpr, 'thresholdsExpr') ?? {}),
9554
10194
  ...(stacked.items ? { items: stacked.items } : {}),
9555
- ...(stacked.suppressedCount ? { suppressedCount: stacked.suppressedCount } : {}),
10195
+ ...(stackedSuppressedCount > 0 ? { suppressedCount: stackedSuppressedCount } : {}),
9556
10196
  ...(normalizeExpression(value.itemsExpr, 'itemsExpr') ?? {}),
9557
10197
  ...(normalizeExpression(value.toneExpr, 'toneExpr') ?? {}),
9558
10198
  ...(value.stepLabelWidth !== undefined && (typeof value.stepLabelWidth === 'number' || typeof value.stepLabelWidth === 'string')
@@ -9567,6 +10207,9 @@ function normalizePraxisPresentationVisualization(value) {
9567
10207
  }
9568
10208
  const normalizedTitle = isTableCell ? undefined : normalizeText$3(value.title);
9569
10209
  const normalizedLegend = typeof value.legend === 'boolean' ? (isTableCell ? false : value.legend) : undefined;
10210
+ const suppressedCount = Math.max(resolvePreservedSuppressedCount(value.suppressedCount), countSuppressedEntries(value.points)
10211
+ + countSuppressedEntries(value.items)
10212
+ + countSuppressedEntries(value.segments));
9570
10213
  return {
9571
10214
  kind,
9572
10215
  fallbackText,
@@ -9595,13 +10238,14 @@ function normalizePraxisPresentationVisualization(value) {
9595
10238
  ...(normalizeExpression(value.targetLabelExpr, 'targetLabelExpr') ?? {}),
9596
10239
  ...(normalizeNumber(value.baseline, 'baseline') ?? {}),
9597
10240
  ...(normalizeExpression(value.baselineExpr, 'baselineExpr') ?? {}),
9598
- ...(normalizePoints(value.points) ?? {}),
10241
+ ...(normalizedPointsObj ?? {}),
9599
10242
  ...(normalizeExpression(value.pointsExpr, 'pointsExpr') ?? {}),
9600
10243
  ...(normalizeSegments(value.segments) ?? {}),
9601
10244
  ...(normalizeExpression(value.segmentsExpr, 'segmentsExpr') ?? {}),
9602
10245
  ...(normalizeThresholds(value.thresholds) ?? {}),
9603
10246
  ...(normalizeExpression(value.thresholdsExpr, 'thresholdsExpr') ?? {}),
9604
10247
  ...(normalizeItems(value.items) ?? {}),
10248
+ ...(suppressedCount > 0 ? { suppressedCount } : {}),
9605
10249
  ...(normalizeExpression(value.itemsExpr, 'itemsExpr') ?? {}),
9606
10250
  ...(normalizeExpression(value.toneExpr, 'toneExpr') ?? {}),
9607
10251
  ...(value.stepLabelWidth !== undefined && (typeof value.stepLabelWidth === 'number' || typeof value.stepLabelWidth === 'string')
@@ -10047,7 +10691,7 @@ function normalizeNumericEntries(value) {
10047
10691
  const num = toFiniteNumber(item);
10048
10692
  return num !== undefined ? { value: num } : null;
10049
10693
  }
10050
- if (!item || typeof item !== 'object') {
10694
+ if (!item || typeof item !== 'object' || isVisualizationEntrySuppressed(item)) {
10051
10695
  return null;
10052
10696
  }
10053
10697
  const num = toFiniteNumber(item.value);
@@ -10067,7 +10711,7 @@ function normalizeNumericEntries(value) {
10067
10711
  .filter((item) => !!item);
10068
10712
  }
10069
10713
  function normalizeVisualizationItem(item) {
10070
- if (!item || typeof item !== 'object') {
10714
+ if (!item || typeof item !== 'object' || isVisualizationEntrySuppressed(item)) {
10071
10715
  return null;
10072
10716
  }
10073
10717
  const id = normalizeText$3(item.id);
@@ -10554,7 +11198,15 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
10554
11198
  const rawItems = Array.isArray(visualization.items) && visualization.items.length > 0
10555
11199
  ? visualization.items
10556
11200
  : Array.isArray(visualization.points)
10557
- ? visualization.points.map((pt) => typeof pt === 'number' ? { value: pt } : { label: pt.label, value: pt.value, tone: pt.tone })
11201
+ ? visualization.points.map((pt) => typeof pt === 'number'
11202
+ ? { value: pt }
11203
+ : {
11204
+ label: pt.label,
11205
+ value: pt.value,
11206
+ tone: pt.tone,
11207
+ ...(pt.suppressed !== undefined ? { suppressed: pt.suppressed } : {}),
11208
+ ...(pt.privacySuppressed !== undefined ? { privacySuppressed: pt.privacySuppressed } : {}),
11209
+ })
10558
11210
  : [];
10559
11211
  if (!rawItems.length) {
10560
11212
  return [];
@@ -10565,11 +11217,17 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
10565
11217
  const steps = [];
10566
11218
  let running = 0;
10567
11219
  let hasFiniteNumeric = false;
11220
+ let hadSuppressedItems = resolvePreservedSuppressedCount(visualization.suppressedCount) > 0;
11221
+ let visibleIncrementCount = 0;
10568
11222
  for (let i = 0; i < rawItems.length; i++) {
10569
11223
  const raw = rawItems[i];
10570
11224
  if (!raw || typeof raw !== 'object') {
10571
11225
  continue;
10572
11226
  }
11227
+ if (isVisualizationEntrySuppressed(raw)) {
11228
+ hadSuppressedItems = true;
11229
+ continue;
11230
+ }
10573
11231
  const rawNumeric = toFiniteNumber(raw.value);
10574
11232
  if (rawNumeric !== undefined) {
10575
11233
  hasFiniteNumeric = true;
@@ -10580,6 +11238,9 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
10580
11238
  if (rawNumeric === undefined && role !== 'subtotal' && role !== 'total') {
10581
11239
  continue;
10582
11240
  }
11241
+ if (role !== 'subtotal' && role !== 'total') {
11242
+ visibleIncrementCount += 1;
11243
+ }
10583
11244
  let start = running;
10584
11245
  let end = running;
10585
11246
  let delta = 0;
@@ -10592,7 +11253,7 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
10592
11253
  resolvedValue = end;
10593
11254
  }
10594
11255
  else if (role === 'subtotal' || role === 'total') {
10595
- const targetEnd = rawNumeric ?? running;
11256
+ const targetEnd = hadSuppressedItems ? running : (rawNumeric ?? running);
10596
11257
  start = 0;
10597
11258
  end = targetEnd;
10598
11259
  delta = targetEnd;
@@ -10642,7 +11303,7 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
10642
11303
  readout,
10643
11304
  });
10644
11305
  }
10645
- if (!hasFiniteNumeric) {
11306
+ if (!hasFiniteNumeric || (hadSuppressedItems && visibleIncrementCount === 0)) {
10646
11307
  return [];
10647
11308
  }
10648
11309
  return steps;
@@ -10680,7 +11341,11 @@ function renderWaterfallVisualizationHtml(visualization, options) {
10680
11341
  barsHtml.push(`<rect class="pfx-micro-waterfall__bar" x="${x.toFixed(1)}" y="${clampedY.toFixed(1)}" width="${barW.toFixed(1)}" height="${rectH.toFixed(1)}" rx="1.5" fill="currentColor" data-role="${escapeHtml$1(step.role)}" data-tone="${escapeHtml$1(step.tone)}"${styleAttr} />`);
10681
11342
  if (i < steps.length - 1) {
10682
11343
  const nextX = xPad + (i + 1) * slotW + barOffset;
10683
- const connY = yEnd;
11344
+ const connY = step.end > step.start
11345
+ ? clampedY
11346
+ : step.end < step.start
11347
+ ? clampedY + rectH
11348
+ : Math.min(height - yPad, Math.max(clampedY, Math.min(clampedY + rectH, yEnd)));
10684
11349
  connectorsHtml.push(`<line class="pfx-micro-waterfall__connector" x1="${(x + barW).toFixed(1)}" y1="${connY.toFixed(1)}" x2="${nextX.toFixed(1)}" y2="${connY.toFixed(1)}" />`);
10685
11350
  }
10686
11351
  scrubSlicesHtml.push(`<span class="pfx-micro-waterfall__scrub-slice" data-tone="${escapeHtml$1(step.tone)}" data-role="${escapeHtml$1(step.role)}" data-micro-readout="${escapeHtml$1(step.readout)}" title="${escapeHtml$1(step.readout)}"></span>`);
@@ -12198,7 +12863,32 @@ class SchemaNormalizationKernel {
12198
12863
  const rawMode = String(record['mode'] ?? 'flat').trim().toLowerCase();
12199
12864
  const mode = rawMode === 'tabs' || rawMode === 'accordion' || rawMode === 'stepper' || rawMode === 'flat'
12200
12865
  ? rawMode
12201
- : 'flat';
12866
+ : rawMode === 'vertical'
12867
+ ? 'flat'
12868
+ : 'flat';
12869
+ const defaultTabId = typeof record['defaultTabId'] === 'string' && record['defaultTabId'].trim()
12870
+ ? record['defaultTabId'].trim()
12871
+ : undefined;
12872
+ const rawTabsAppearance = typeof record['tabsAppearance'] === 'string'
12873
+ ? record['tabsAppearance'].trim().toLowerCase()
12874
+ : '';
12875
+ const tabsAppearance = rawTabsAppearance === 'pills' ||
12876
+ rawTabsAppearance === 'underline' ||
12877
+ rawTabsAppearance === 'buttons'
12878
+ ? rawTabsAppearance
12879
+ : undefined;
12880
+ const accordionMulti = this.parseOptionalBoolean(record['accordionMulti']);
12881
+ const hideSectionHeaderInTabs = this.parseOptionalBoolean(record['hideSectionHeaderInTabs']);
12882
+ const hideSectionHeaderInStepper = this.parseOptionalBoolean(record['hideSectionHeaderInStepper']);
12883
+ const rawStepperInReadMode = typeof record['stepperInReadMode'] === 'string'
12884
+ ? record['stepperInReadMode'].trim().toLowerCase()
12885
+ : '';
12886
+ const stepperInReadMode = rawStepperInReadMode === 'presentation' ||
12887
+ rawStepperInReadMode === 'all' ||
12888
+ rawStepperInReadMode === 'none'
12889
+ ? rawStepperInReadMode
12890
+ : undefined;
12891
+ const stepperReviewStep = this.parseOptionalBoolean(record['stepperReviewStep']);
12202
12892
  const rawSections = Array.isArray(record['sections']) ? record['sections'] : [];
12203
12893
  const sections = [];
12204
12894
  for (let idx = 0; idx < rawSections.length; idx++) {
@@ -12214,6 +12904,7 @@ class SchemaNormalizationKernel {
12214
12904
  const subtitle = typeof item['subtitle'] === 'string' && item['subtitle'].trim() ? item['subtitle'].trim() : undefined;
12215
12905
  const icon = typeof item['icon'] === 'string' && item['icon'].trim() ? item['icon'].trim() : undefined;
12216
12906
  const groups = this.parseNonBlankStringArray(item['groups']);
12907
+ const optional = this.parseOptionalBoolean(item['optional']);
12217
12908
  sections.push({
12218
12909
  id,
12219
12910
  title,
@@ -12221,12 +12912,61 @@ class SchemaNormalizationKernel {
12221
12912
  ...(icon ? { icon } : {}),
12222
12913
  order: Number.isFinite(orderNum) ? orderNum : idx,
12223
12914
  ...(groups.length ? { groups } : {}),
12915
+ ...(optional !== undefined ? { optional } : {}),
12224
12916
  });
12225
12917
  }
12226
12918
  sections.sort((a, b) => a.order - b.order);
12919
+ const rawSteps = Array.isArray(record['steps']) ? record['steps'] : [];
12920
+ const steps = [];
12921
+ for (const entry of rawSteps) {
12922
+ if (!entry || typeof entry !== 'object' || Array.isArray(entry))
12923
+ continue;
12924
+ const item = entry;
12925
+ const id = String(item['id'] ?? '').trim();
12926
+ const label = String(item['label'] ?? '').trim() || id;
12927
+ const sectionIds = this.parseNonBlankStringArray(item['sectionIds']);
12928
+ if (!id || !sectionIds.length)
12929
+ continue;
12930
+ const description = typeof item['description'] === 'string' && item['description'].trim()
12931
+ ? item['description'].trim()
12932
+ : undefined;
12933
+ const icon = typeof item['icon'] === 'string' && item['icon'].trim()
12934
+ ? item['icon'].trim()
12935
+ : undefined;
12936
+ const optional = this.parseOptionalBoolean(item['optional']);
12937
+ const disabled = this.parseOptionalBoolean(item['disabled']);
12938
+ const tooltip = typeof item['tooltip'] === 'string' && item['tooltip'].trim()
12939
+ ? item['tooltip'].trim()
12940
+ : undefined;
12941
+ const rawBadge = item['badge'];
12942
+ const badge = typeof rawBadge === 'string'
12943
+ ? (rawBadge.trim() ? rawBadge.trim() : undefined)
12944
+ : typeof rawBadge === 'number' && Number.isFinite(rawBadge)
12945
+ ? rawBadge
12946
+ : undefined;
12947
+ steps.push({
12948
+ id,
12949
+ label,
12950
+ ...(description ? { description } : {}),
12951
+ ...(icon ? { icon } : {}),
12952
+ sectionIds,
12953
+ ...(optional !== undefined ? { optional } : {}),
12954
+ ...(badge !== undefined ? { badge } : {}),
12955
+ ...(disabled !== undefined ? { disabled } : {}),
12956
+ ...(tooltip ? { tooltip } : {}),
12957
+ });
12958
+ }
12227
12959
  return {
12228
12960
  mode,
12961
+ ...(defaultTabId ? { defaultTabId } : {}),
12962
+ ...(tabsAppearance ? { tabsAppearance } : {}),
12963
+ ...(accordionMulti !== undefined ? { accordionMulti } : {}),
12964
+ ...(hideSectionHeaderInTabs !== undefined ? { hideSectionHeaderInTabs } : {}),
12965
+ ...(hideSectionHeaderInStepper !== undefined ? { hideSectionHeaderInStepper } : {}),
12966
+ ...(stepperInReadMode ? { stepperInReadMode } : {}),
12967
+ ...(stepperReviewStep !== undefined ? { stepperReviewStep } : {}),
12229
12968
  ...(sections.length ? { sections } : {}),
12969
+ ...(steps.length ? { steps } : {}),
12230
12970
  };
12231
12971
  }
12232
12972
  parseContextBinding(raw) {
@@ -13277,6 +14017,24 @@ class ResourceDiscoveryService {
13277
14017
  const resolvedHref = this.resolveHref(href, options);
13278
14018
  return this.shareContextualRead(this.capabilitySnapshotInFlight, resolvedHref, () => this.fetchJson(resolvedHref, options));
13279
14019
  }
14020
+ /**
14021
+ * Resolves a capability snapshot from an operational `resourcePath` (e.g. `'/workforce/assignments'`
14022
+ * or `'workforce/assignments'`), preserving the configured `apiBaseUrl` path prefix without duplicating
14023
+ * it when the path already includes it (e.g. `'/api/workforce/assignments'`).
14024
+ */
14025
+ getCapabilitiesForResource(resourcePath, resourceId, options) {
14026
+ const cleanBase = String(resourcePath || '').split(/[?#]/u)[0]?.trim().replace(/\/+$/, '') || '';
14027
+ if (!cleanBase) {
14028
+ return throwError(() => new Error('ResourceDiscoveryService cannot resolve capabilities for an empty resourcePath.'));
14029
+ }
14030
+ const hasId = resourceId !== undefined && resourceId !== null && String(resourceId).trim() !== '';
14031
+ const baseWithoutCapabilities = cleanBase.replace(/\/capabilities$/i, '');
14032
+ const targetPath = hasId
14033
+ ? `${baseWithoutCapabilities}/${encodeURIComponent(String(resourceId).trim())}/capabilities`
14034
+ : `${baseWithoutCapabilities}/capabilities`;
14035
+ const resolvedHref = this.resolveResourceHref(targetPath, options);
14036
+ return this.shareContextualRead(this.capabilitySnapshotInFlight, resolvedHref, () => this.fetchJson(resolvedHref, options));
14037
+ }
13280
14038
  shareContextualRead(inFlight, requestKey, load) {
13281
14039
  const generation = this.contextGeneration;
13282
14040
  const pending = inFlight.get(requestKey);
@@ -13291,7 +14049,7 @@ class ResourceDiscoveryService {
13291
14049
  if (inFlight.get(requestKey) === request)
13292
14050
  inFlight.delete(requestKey);
13293
14051
  };
13294
- const shared = defer(load).pipe(tap({ next: release, error: release, complete: release }), finalize$1(release), shareReplay({ bufferSize: 1, refCount: true }));
14052
+ const shared = defer(load).pipe(tap({ next: release, error: release, complete: release }), finalize$1(release), shareReplay$1({ bufferSize: 1, refCount: true }));
13295
14053
  const request = defer(() => {
13296
14054
  assertCurrentContext();
13297
14055
  return inFlight.get(requestKey) === request
@@ -14223,6 +14981,36 @@ class ResourceDiscoveryService {
14223
14981
  }
14224
14982
  return new URL(normalizedHref, this.ensureTrailingSlash(apiBaseUrl)).toString();
14225
14983
  }
14984
+ /**
14985
+ * Resolves a resource-relative operational path (e.g. `'/workforce/assignments/capabilities'` or
14986
+ * `'workforce/assignments/capabilities'`) against `apiBaseUrl` without dropping path prefixes like
14987
+ * `'/api'` and without duplicating them when already present.
14988
+ */
14989
+ resolveResourceHref(resourcePath, options) {
14990
+ const normalizedPath = String(resourcePath || '').trim();
14991
+ if (!normalizedPath) {
14992
+ throw new Error('ResourceDiscoveryService cannot resolve an empty resourcePath.');
14993
+ }
14994
+ if (this.isAbsoluteHttpUrl(normalizedPath)) {
14995
+ return this.resolveTrustedAbsoluteHref(normalizedPath, options);
14996
+ }
14997
+ const apiBaseUrl = this.resolveApiBaseHref(options);
14998
+ if (!apiBaseUrl) {
14999
+ return this.resolveHref(normalizedPath, options);
15000
+ }
15001
+ let basePath = '';
15002
+ try {
15003
+ basePath = this.normalizePathPrefix(new URL(apiBaseUrl).pathname);
15004
+ }
15005
+ catch {
15006
+ basePath = this.normalizePathPrefix(this.resolveApiBaseUrl(options));
15007
+ }
15008
+ const slashPrefixed = normalizedPath.startsWith('/') ? normalizedPath : `/${normalizedPath}`;
15009
+ if (basePath && (slashPrefixed === basePath || slashPrefixed.startsWith(`${basePath}/`))) {
15010
+ return this.resolveHref(slashPrefixed, options);
15011
+ }
15012
+ return this.resolveHref(normalizedPath.replace(/^\/+/, ''), options);
15013
+ }
14226
15014
  requireLinkHref(source, rel, options) {
14227
15015
  const href = this.resolveLinkHref(source, rel, options);
14228
15016
  if (!href) {
@@ -14952,9 +15740,29 @@ class PraxisDecisionInspectorService {
14952
15740
  if (options.includeFieldSchemas) {
14953
15741
  const schemaFields = await this.tryLoadResourceSchemaFields(options.resourcePath ?? resolvedResourceKey, options);
14954
15742
  if (schemaFields.length > 0) {
15743
+ const mergedFieldLabels = {};
15744
+ for (const field of schemaFields) {
15745
+ const name = this.cleanText(field?.name);
15746
+ const label = this.cleanText(field?.label);
15747
+ if (name && label && !mergedFieldLabels[name]) {
15748
+ mergedFieldLabels[name] = label;
15749
+ }
15750
+ }
15751
+ if (baseCatalog.fieldLabels) {
15752
+ for (const [key, val] of Object.entries(baseCatalog.fieldLabels)) {
15753
+ const cleanVal = this.cleanText(val);
15754
+ if (cleanVal && (cleanVal !== key || !mergedFieldLabels[key])) {
15755
+ mergedFieldLabels[key] = cleanVal;
15756
+ }
15757
+ }
15758
+ }
14955
15759
  return {
14956
15760
  ...baseCatalog,
15761
+ ruleSets: enrichRuleSetsWithFieldSchemas(baseCatalog.ruleSets, schemaFields),
14957
15762
  governance: enrichGovernanceItemsWithFieldSchemas(baseCatalog.governance ?? [], schemaFields, baseCatalog.resourceKey, authorities),
15763
+ ...(Object.keys(mergedFieldLabels).length > 0
15764
+ ? { fieldLabels: mergedFieldLabels }
15765
+ : {}),
14958
15766
  };
14959
15767
  }
14960
15768
  }
@@ -15203,10 +16011,16 @@ class PraxisDecisionInspectorService {
15203
16011
  const targetHref = resourceId !== null && resourceId !== undefined
15204
16012
  ? `${normalizedPath}/${encodeURIComponent(String(resourceId))}/capabilities`
15205
16013
  : `${normalizedPath}/capabilities`;
15206
- const requestPromise = firstValueFrom(discovery.getCapabilitiesByUrl(targetHref, {
15207
- endpointKey: options.endpointKey,
15208
- apiUrlEntry: options.apiUrlEntry,
15209
- }))
16014
+ const capabilities$ = typeof discovery.getCapabilitiesForResource === 'function'
16015
+ ? discovery.getCapabilitiesForResource(normalizedPath, resourceId, {
16016
+ endpointKey: options.endpointKey,
16017
+ apiUrlEntry: options.apiUrlEntry,
16018
+ })
16019
+ : discovery.getCapabilitiesByUrl(targetHref, {
16020
+ endpointKey: options.endpointKey,
16021
+ apiUrlEntry: options.apiUrlEntry,
16022
+ });
16023
+ const requestPromise = firstValueFrom(capabilities$)
15210
16024
  .then((snapshot) => {
15211
16025
  if (snapshot) {
15212
16026
  this.storeBoundedCache(this.capabilitiesCache, cacheKey, snapshot);
@@ -18914,7 +19728,7 @@ class ResourceRecordOpenService {
18914
19728
  if (this.collectionCatalogInFlight.get(cacheKey) === request$) {
18915
19729
  this.collectionCatalogInFlight.delete(cacheKey);
18916
19730
  }
18917
- }), shareReplay({ bufferSize: 1, refCount: true }));
19731
+ }), shareReplay$1({ bufferSize: 1, refCount: true }));
18918
19732
  this.collectionCatalogInFlight.set(cacheKey, request$);
18919
19733
  return request$;
18920
19734
  }
@@ -18950,7 +19764,7 @@ class ResourceRecordOpenService {
18950
19764
  if (this.surfaceSchemaInFlight.get(cacheKey) === request$) {
18951
19765
  this.surfaceSchemaInFlight.delete(cacheKey);
18952
19766
  }
18953
- }), shareReplay({ bufferSize: 1, refCount: true }));
19767
+ }), shareReplay$1({ bufferSize: 1, refCount: true }));
18954
19768
  this.surfaceSchemaInFlight.set(cacheKey, request$);
18955
19769
  return request$;
18956
19770
  }
@@ -20418,7 +21232,7 @@ class ResourceQuickViewService {
20418
21232
  resourceKey: request.binding?.recordOpen?.target?.resourceKey ?? 'unknown',
20419
21233
  surfaceId: request.binding?.recordOpen?.target?.surfaceId ?? 'unknown',
20420
21234
  });
20421
- if (!isResourceQuickViewAnchorValid(request.anchor)) {
21235
+ if (!isResourceQuickViewAnchorValid(request.anchor, request.trigger)) {
20422
21236
  const invalidAnchorResolution = this.buildFailureResolution(request.binding, '', 'INVALID_ANCHOR', this.translate('quickView.invalidAnchor', 'A referência visual do item não está mais disponível na tela.'));
20423
21237
  this.stateSubject.next('error');
20424
21238
  this.resolutionSubject.next(invalidAnchorResolution);
@@ -20466,9 +21280,9 @@ class ResourceQuickViewService {
20466
21280
  const projection = await this.fetchDeduplicatedProjection(canonicalBinding, extractedId, request);
20467
21281
  if (generation !== this.activeGeneration ||
20468
21282
  epochAtStart !== this.contextEpoch ||
20469
- !isResourceQuickViewAnchorValid(request.anchor)) {
21283
+ !isResourceQuickViewAnchorValid(request.anchor, request.trigger)) {
20470
21284
  if (generation === this.activeGeneration &&
20471
- !isResourceQuickViewAnchorValid(request.anchor)) {
21285
+ !isResourceQuickViewAnchorValid(request.anchor, request.trigger)) {
20472
21286
  this.dismiss('anchor-invalid');
20473
21287
  }
20474
21288
  return null;
@@ -21796,6 +22610,28 @@ class LocalStorageCacheAdapter {
21796
22610
  this.persist();
21797
22611
  this.broadcast(schemaId, undefined);
21798
22612
  }
22613
+ async clear() {
22614
+ const removedIds = Array.from(this.mem.keys());
22615
+ this.mem.clear();
22616
+ if (typeof localStorage !== 'undefined') {
22617
+ try {
22618
+ const keysToRemove = [];
22619
+ for (let i = 0; i < localStorage.length; i += 1) {
22620
+ const key = localStorage.key(i);
22621
+ if (key === this.storageKey || (key && key.startsWith(`${this.storageKey}:`))) {
22622
+ keysToRemove.push(key);
22623
+ }
22624
+ }
22625
+ for (const key of keysToRemove) {
22626
+ localStorage.removeItem(key);
22627
+ }
22628
+ }
22629
+ catch { }
22630
+ }
22631
+ for (const schemaId of removedIds) {
22632
+ this.broadcast(schemaId, undefined);
22633
+ }
22634
+ }
21799
22635
  subscribe(cb) {
21800
22636
  this.subscribers.add(cb);
21801
22637
  return () => this.subscribers.delete(cb);
@@ -21819,6 +22655,9 @@ class MemoryCacheAdapter {
21819
22655
  async remove(schemaId) {
21820
22656
  this.mem.delete(schemaId);
21821
22657
  }
22658
+ async clear() {
22659
+ this.mem.clear();
22660
+ }
21822
22661
  }
21823
22662
 
21824
22663
  /**
@@ -22577,7 +23416,7 @@ class GenericCrudService {
22577
23416
  }));
22578
23417
  }
22579
23418
  return this.handleError(err);
22580
- }))), shareReplay$1({ bufferSize: 1, refCount: true }));
23419
+ }))), shareReplay({ bufferSize: 1, refCount: true }));
22581
23420
  }
22582
23421
  captureSchemaHeaders(entry, tenant, locale) {
22583
23422
  if (this.enterpriseRuntimeContext?.snapshot && !this.enterpriseRuntimeContext.effectiveContext) {
@@ -22640,10 +23479,11 @@ class GenericCrudService {
22640
23479
  }
22641
23480
  return this.schemaRuntimeEpoch;
22642
23481
  }
22643
- /** Clears cached filter schemas, derived resource metadata, and bumps the runtime epoch. */
23482
+ /** Clears cached filter schemas, schema cache entries, derived resource metadata, and bumps the runtime epoch. */
22644
23483
  clearRuntimeCaches() {
22645
23484
  this.schemaRuntimeContext = '';
22646
23485
  this.schemaRuntimeEpoch += 1;
23486
+ void this._schemaCache?.clear?.();
22647
23487
  this._filterSchemaCache.clear();
22648
23488
  this._filterSchemaLoaded = false;
22649
23489
  this._rangeFilterFieldHints.clear();
@@ -23122,7 +23962,7 @@ class GenericCrudService {
23122
23962
  }));
23123
23963
  }
23124
23964
  return this.handleError(err);
23125
- }))), shareReplay$1({ bufferSize: 1, refCount: true }));
23965
+ }))), shareReplay({ bufferSize: 1, refCount: true }));
23126
23966
  }
23127
23967
  /**
23128
23968
  * Retorna todos os registros do recurso.
@@ -23801,7 +24641,7 @@ class GenericCrudService {
23801
24641
  }, error: releaseRequest, complete: releaseRequest }),
23802
24642
  // Share only work in flight. A later initialization must revalidate the
23803
24643
  // representation instead of replaying an indefinitely completed schema.
23804
- finalize(releaseRequest), shareReplay$1({ bufferSize: 1, refCount: true }));
24644
+ finalize(releaseRequest), shareReplay({ bufferSize: 1, refCount: true }));
23805
24645
  if (cacheEnabled) {
23806
24646
  this._filterSchemaCache.set(cacheKey, request$);
23807
24647
  }
@@ -27443,28 +28283,156 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
27443
28283
  args: [PRAXIS_LOADING_RENDERER]
27444
28284
  }] }] });
27445
28285
 
28286
+ const PHASE_PRIORITY = {
28287
+ action: 4,
28288
+ schema: 3,
28289
+ data: 2,
28290
+ mount: 1,
28291
+ };
28292
+ const CONTEXT_PRIORITY = {
28293
+ high: 3,
28294
+ normal: 2,
28295
+ low: 1,
28296
+ };
27446
28297
  class DefaultLoadingRenderer {
27447
28298
  rootId = 'praxis-loading-root';
27448
28299
  styleId = 'praxis-loading-style';
28300
+ showDelayMs = 150;
28301
+ activeEntries = new Map();
28302
+ sequenceCounter = 0;
28303
+ showTimer = null;
28304
+ visible = false;
27449
28305
  show(ctx) {
28306
+ this.upsertEntry(ctx, true);
28307
+ }
28308
+ update(ctx) {
28309
+ this.upsertEntry(ctx, false);
28310
+ }
28311
+ hide(ctx) {
28312
+ const key = this.keyOf(ctx);
28313
+ const existing = this.activeEntries.get(key);
28314
+ if (!existing)
28315
+ return;
28316
+ const nextCount = existing.count - 1;
28317
+ if (nextCount > 0) {
28318
+ this.activeEntries.set(key, { ...existing, count: nextCount });
28319
+ return;
28320
+ }
28321
+ this.activeEntries.delete(key);
28322
+ if (this.activeEntries.size === 0) {
28323
+ this.clearShowTimer();
28324
+ this.visible = false;
28325
+ this.clearRenderedEntry();
28326
+ return;
28327
+ }
28328
+ if (this.visible) {
28329
+ this.renderWinner();
28330
+ }
28331
+ }
28332
+ upsertEntry(ctx, incrementCount) {
28333
+ const key = this.keyOf(ctx);
28334
+ const existing = this.activeEntries.get(key);
28335
+ const count = existing
28336
+ ? incrementCount
28337
+ ? existing.count + 1
28338
+ : existing.count
28339
+ : 1;
28340
+ this.activeEntries.set(key, { ctx, sequence: ++this.sequenceCounter, count });
28341
+ if (this.visible) {
28342
+ this.renderWinner();
28343
+ return;
28344
+ }
28345
+ // Blocking actions must engage the backdrop immediately to prevent duplicate clicks.
28346
+ if (ctx.blocking || this.showDelayMs <= 0) {
28347
+ this.clearShowTimer();
28348
+ this.visible = true;
28349
+ this.renderWinner();
28350
+ return;
28351
+ }
28352
+ if (this.showTimer !== null) {
28353
+ return;
28354
+ }
28355
+ this.showTimer = setTimeout(() => {
28356
+ this.showTimer = null;
28357
+ if (this.activeEntries.size === 0)
28358
+ return;
28359
+ this.visible = true;
28360
+ this.renderWinner();
28361
+ }, this.showDelayMs);
28362
+ }
28363
+ ngOnDestroy() {
28364
+ this.clearShowTimer();
28365
+ this.activeEntries.clear();
28366
+ this.visible = false;
28367
+ this.clearRenderedEntry();
28368
+ }
28369
+ clearShowTimer() {
28370
+ if (this.showTimer !== null) {
28371
+ clearTimeout(this.showTimer);
28372
+ this.showTimer = null;
28373
+ }
28374
+ }
28375
+ clearRenderedEntry() {
28376
+ const doc = this.getDocument();
28377
+ if (!doc)
28378
+ return;
28379
+ const root = doc.getElementById(this.rootId);
28380
+ if (!root)
28381
+ return;
28382
+ root.replaceChildren();
28383
+ }
28384
+ selectWinningEntry() {
28385
+ let winnerKey = null;
28386
+ let winner = null;
28387
+ for (const [key, candidate] of this.activeEntries.entries()) {
28388
+ if (!winner || this.comparePriority(candidate, winner) > 0) {
28389
+ winnerKey = key;
28390
+ winner = candidate;
28391
+ }
28392
+ }
28393
+ return winnerKey && winner ? { key: winnerKey, ctx: winner.ctx } : null;
28394
+ }
28395
+ comparePriority(a, b) {
28396
+ const blockingDiff = (a.ctx.blocking ? 1 : 0) - (b.ctx.blocking ? 1 : 0);
28397
+ if (blockingDiff !== 0)
28398
+ return blockingDiff;
28399
+ const phaseDiff = (PHASE_PRIORITY[a.ctx.phase] ?? 0) - (PHASE_PRIORITY[b.ctx.phase] ?? 0);
28400
+ if (phaseDiff !== 0)
28401
+ return phaseDiff;
28402
+ const priorityDiff = CONTEXT_PRIORITY[a.ctx.priority ?? 'normal'] -
28403
+ CONTEXT_PRIORITY[b.ctx.priority ?? 'normal'];
28404
+ if (priorityDiff !== 0)
28405
+ return priorityDiff;
28406
+ return a.sequence - b.sequence;
28407
+ }
28408
+ renderWinner() {
28409
+ const winner = this.selectWinningEntry();
28410
+ if (!winner) {
28411
+ this.clearRenderedEntry();
28412
+ return;
28413
+ }
27450
28414
  const doc = this.getDocument();
27451
28415
  if (!doc)
27452
28416
  return;
27453
28417
  this.ensureStyles(doc);
27454
28418
  const root = this.ensureRoot(doc);
27455
- const key = this.keyOf(ctx);
27456
- let entry = root.querySelector(`[data-key="${key}"]`);
27457
- const label = ctx.label || this.defaultLabel(ctx);
27458
- const blockingAttr = ctx.blocking ? 'true' : 'false';
28419
+ let entry = root.querySelector('.pfx-loading-entry');
27459
28420
  if (!entry) {
27460
28421
  entry = doc.createElement('div');
27461
28422
  entry.className = 'pfx-loading-entry';
27462
- entry.setAttribute('data-key', key);
27463
28423
  root.appendChild(entry);
27464
28424
  }
28425
+ // Ensure a single active entry and a single aria-live region at all times.
28426
+ const extras = root.querySelectorAll('.pfx-loading-entry');
28427
+ for (let i = 1; i < extras.length; i++) {
28428
+ extras[i].remove();
28429
+ }
28430
+ entry.setAttribute('data-key', winner.key);
28431
+ const label = winner.ctx.label || this.defaultLabel(winner.ctx);
28432
+ const blockingAttr = winner.ctx.blocking ? 'true' : 'false';
27465
28433
  if (entry.getAttribute('data-blocking') !== blockingAttr) {
27466
28434
  entry.setAttribute('data-blocking', blockingAttr);
27467
- entry.innerHTML = ctx.blocking
28435
+ entry.innerHTML = winner.ctx.blocking
27468
28436
  ? `
27469
28437
  <div class="pfx-loading-backdrop"></div>
27470
28438
  <div class="pfx-loading-card" role="status" aria-live="polite">
@@ -27473,31 +28441,20 @@ class DefaultLoadingRenderer {
27473
28441
  </div>
27474
28442
  `
27475
28443
  : `
27476
- <div class="pfx-loading-topbar" role="status" aria-live="polite"></div>
27477
- <div class="pfx-loading-inline-text"><span class="pfx-loading-label-shimmer"></span></div>
28444
+ <div class="pfx-loading-topbar" aria-hidden="true"></div>
28445
+ <div class="pfx-loading-inline-text" role="status" aria-live="polite">
28446
+ <span class="pfx-loading-inline-dot" aria-hidden="true"></span>
28447
+ <span class="pfx-loading-label-shimmer"></span>
28448
+ </div>
27478
28449
  `;
27479
28450
  }
27480
- const textEl = (ctx.blocking
28451
+ const textEl = (winner.ctx.blocking
27481
28452
  ? entry.querySelector('.pfx-loading-text')
27482
- : entry.querySelector('.pfx-loading-label-shimmer') ?? entry.querySelector('.pfx-loading-inline-text'));
28453
+ : entry.querySelector('.pfx-loading-label-shimmer') ??
28454
+ entry.querySelector('.pfx-loading-inline-text'));
27483
28455
  if (textEl)
27484
28456
  textEl.textContent = label;
27485
28457
  }
27486
- update(ctx) {
27487
- this.show(ctx);
27488
- }
27489
- hide(ctx) {
27490
- const doc = this.getDocument();
27491
- if (!doc)
27492
- return;
27493
- const root = doc.getElementById(this.rootId);
27494
- if (!root)
27495
- return;
27496
- const key = this.keyOf(ctx);
27497
- const entry = root.querySelector(`[data-key="${key}"]`);
27498
- if (entry)
27499
- entry.remove();
27500
- }
27501
28458
  keyOf(ctx) {
27502
28459
  const { componentType, componentId, routeKey } = ctx.scope;
27503
28460
  return `${routeKey ?? 'no-route'}::${componentType}::${componentId}::${ctx.phase}`;
@@ -27505,7 +28462,7 @@ class DefaultLoadingRenderer {
27505
28462
  defaultLabel(ctx) {
27506
28463
  switch (ctx.phase) {
27507
28464
  case 'schema':
27508
- return 'Carregando configuracao...';
28465
+ return 'Carregando configuração...';
27509
28466
  case 'mount':
27510
28467
  return 'Montando interface...';
27511
28468
  case 'data':
@@ -27543,6 +28500,9 @@ class DefaultLoadingRenderer {
27543
28500
  inset: 0;
27544
28501
  }
27545
28502
  .pfx-loading-entry[data-blocking="true"] {
28503
+ display: flex;
28504
+ align-items: center;
28505
+ justify-content: center;
27546
28506
  pointer-events: auto;
27547
28507
  cursor: wait;
27548
28508
  }
@@ -27557,21 +28517,34 @@ class DefaultLoadingRenderer {
27557
28517
  backdrop-filter: blur(2px);
27558
28518
  }
27559
28519
  .pfx-loading-card {
27560
- position: absolute;
27561
- inset: 0;
27562
- display: flex;
28520
+ position: relative;
28521
+ z-index: 1;
28522
+ display: inline-flex;
27563
28523
  align-items: center;
27564
28524
  justify-content: center;
27565
28525
  gap: 12px;
27566
- color: var(--pdx-loading-text, #eaeaf1);
27567
- text-shadow: var(--pdx-loading-text-shadow, 0 1px 2px rgba(0,0,0,.6));
28526
+ max-width: min(360px, calc(100vw - 32px));
28527
+ padding: var(--pdx-loading-card-padding, 14px 22px);
28528
+ border-radius: var(--pdx-loading-card-radius, 12px);
28529
+ border: var(
28530
+ --pdx-loading-card-border,
28531
+ 1px solid var(--md-sys-color-outline-variant, var(--border, rgba(255, 255, 255, 0.14)))
28532
+ );
28533
+ background: var(
28534
+ --pdx-loading-card-bg,
28535
+ var(--md-sys-color-surface-container-high, var(--card, rgba(24, 28, 36, 0.92)))
28536
+ );
28537
+ box-shadow: var(--pdx-loading-card-shadow, 0 12px 32px rgba(0, 0, 0, 0.24));
28538
+ color: var(--pdx-loading-text, var(--md-sys-color-on-surface, #eaeaf1));
28539
+ text-shadow: var(--pdx-loading-text-shadow, none);
27568
28540
  }
27569
28541
  .pfx-loading-spinner {
27570
- width: 32px;
27571
- height: 32px;
28542
+ width: 24px;
28543
+ height: 24px;
28544
+ flex-shrink: 0;
27572
28545
  border-radius: 50%;
27573
28546
  border: 3px solid var(--pdx-loading-spinner-track, rgba(255,255,255,0.2));
27574
- border-top-color: var(--pdx-loading-spinner-accent, #8b5cf6);
28547
+ border-top-color: var(--pdx-loading-spinner-accent, var(--md-sys-color-primary, #8b5cf6));
27575
28548
  animation: pfxSpin 0.9s linear infinite;
27576
28549
  }
27577
28550
  .pfx-loading-text {
@@ -27579,7 +28552,6 @@ class DefaultLoadingRenderer {
27579
28552
  font-weight: 500;
27580
28553
  opacity: .95;
27581
28554
  text-shadow: none;
27582
- filter: var(--pdx-loading-text-drop-shadow, drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65)));
27583
28555
  }
27584
28556
  .pfx-loading-topbar {
27585
28557
  position: absolute;
@@ -27589,7 +28561,7 @@ class DefaultLoadingRenderer {
27589
28561
  height: var(--pdx-loading-topbar-height, 3px);
27590
28562
  background: var(
27591
28563
  --pdx-loading-topbar-gradient,
27592
- linear-gradient(90deg, transparent, var(--pdx-loading-spinner-accent, #8b5cf6), transparent)
28564
+ linear-gradient(90deg, transparent, var(--pdx-loading-spinner-accent, var(--md-sys-color-primary, #8b5cf6)), transparent)
27593
28565
  );
27594
28566
  border-radius: var(--pdx-loading-topbar-radius, 999px);
27595
28567
  box-shadow: var(--pdx-loading-topbar-shadow, none);
@@ -27597,29 +28569,46 @@ class DefaultLoadingRenderer {
27597
28569
  }
27598
28570
  .pfx-loading-inline-text {
27599
28571
  position: absolute;
27600
- top: var(--pdx-loading-inline-top, 8px);
27601
- right: var(--pdx-loading-inline-right, 12px);
28572
+ top: var(--pdx-loading-inline-top, auto);
28573
+ bottom: var(--pdx-loading-inline-bottom, 16px);
28574
+ right: var(--pdx-loading-inline-right, 20px);
27602
28575
  left: auto;
27603
28576
  display: var(--pdx-loading-inline-display, inline-flex);
27604
28577
  align-items: center;
27605
- min-height: var(--pdx-loading-inline-min-height, 28px);
28578
+ gap: 8px;
28579
+ min-height: var(--pdx-loading-inline-min-height, 30px);
27606
28580
  max-width: min(
27607
28581
  var(--pdx-loading-inline-max-width, 320px),
27608
- calc(100vw - var(--pdx-loading-inline-right, 12px) - var(--pdx-loading-inline-left, 12px))
28582
+ calc(100vw - var(--pdx-loading-inline-right, 20px) - var(--pdx-loading-inline-left, 20px))
27609
28583
  );
27610
- padding: var(--pdx-loading-inline-padding, 0);
28584
+ padding: var(--pdx-loading-inline-padding, 4px 12px);
27611
28585
  border-radius: var(--pdx-loading-inline-radius, 999px);
27612
- border: var(--pdx-loading-inline-border, 0 solid transparent);
27613
- background: var(--pdx-loading-inline-bg, transparent);
27614
- box-shadow: var(--pdx-loading-inline-shadow, none);
28586
+ border: var(
28587
+ --pdx-loading-inline-border,
28588
+ 1px solid var(--md-sys-color-outline-variant, var(--border, rgba(15, 23, 42, 0.12)))
28589
+ );
28590
+ background: var(
28591
+ --pdx-loading-inline-bg,
28592
+ var(--md-sys-color-surface-container-high, var(--card, rgba(255, 255, 255, 0.94)))
28593
+ );
28594
+ box-shadow: var(--pdx-loading-inline-shadow, 0 4px 14px rgba(15, 23, 42, 0.12));
28595
+ backdrop-filter: blur(8px);
27615
28596
  font-size: 12px;
27616
28597
  font-weight: 500;
27617
- color: var(--pdx-loading-topbar-text, #5f6368);
28598
+ color: var(--pdx-loading-topbar-text, var(--md-sys-color-on-surface-variant, #475569));
27618
28599
  line-height: 1.2;
27619
28600
  white-space: nowrap;
27620
28601
  overflow: hidden;
27621
28602
  text-overflow: ellipsis;
27622
28603
  }
28604
+ .pfx-loading-inline-dot {
28605
+ width: 7px;
28606
+ height: 7px;
28607
+ flex-shrink: 0;
28608
+ border-radius: 50%;
28609
+ background: var(--pdx-loading-spinner-accent, var(--md-sys-color-primary, #8b5cf6));
28610
+ animation: pfxPulse 1.2s ease-in-out infinite;
28611
+ }
27623
28612
  .pfx-loading-label-shimmer {
27624
28613
  display: block;
27625
28614
  max-width: 100%;
@@ -27672,13 +28661,19 @@ class DefaultLoadingRenderer {
27672
28661
  }
27673
28662
  }
27674
28663
  @media (prefers-reduced-motion: reduce), (forced-colors: active), print {
28664
+ .pfx-loading-spinner,
28665
+ .pfx-loading-topbar,
28666
+ .pfx-loading-inline-dot,
27675
28667
  .pfx-loading-text,
27676
28668
  .pfx-loading-label-shimmer {
27677
28669
  animation: none !important;
28670
+ will-change: auto;
28671
+ }
28672
+ .pfx-loading-text,
28673
+ .pfx-loading-label-shimmer {
27678
28674
  background-image: none !important;
27679
28675
  -webkit-text-fill-color: currentColor !important;
27680
28676
  color: inherit !important;
27681
- will-change: auto;
27682
28677
  }
27683
28678
  }
27684
28679
  @media (forced-colors: active) {
@@ -27689,6 +28684,10 @@ class DefaultLoadingRenderer {
27689
28684
  }
27690
28685
  }
27691
28686
  @keyframes pfxSpin { to { transform: rotate(360deg); } }
28687
+ @keyframes pfxPulse {
28688
+ 0%, 100% { opacity: 0.45; transform: scale(0.9); }
28689
+ 50% { opacity: 1; transform: scale(1); }
28690
+ }
27692
28691
  @keyframes pfxBar {
27693
28692
  0% { transform: translateX(-60%); opacity: 0.4; }
27694
28693
  50% { transform: translateX(0%); opacity: 1; }
@@ -27782,6 +28781,16 @@ function buildPraxisLayerScaleCss(scale = PRAXIS_LAYER_SCALE_DEFAULTS) {
27782
28781
  z-index: var(${PRAXIS_LAYER_SCALE_VARS.cdkOverlayWrapper}, ${scale.cdkOverlayWrapper}) !important;
27783
28782
  }
27784
28783
 
28784
+ .cdk-overlay-backdrop.pdx-quick-view-backdrop {
28785
+ z-index: calc(var(${PRAXIS_LAYER_SCALE_VARS.popup}, ${scale.popup}) - 1) !important;
28786
+ }
28787
+
28788
+ .cdk-overlay-pane.pdx-quick-view-overlay-pane,
28789
+ .cdk-overlay-connected-position-bounding-box:has(> .pdx-quick-view-overlay-pane),
28790
+ .cdk-global-overlay-wrapper:has(> .pdx-quick-view-overlay-pane) {
28791
+ z-index: var(${PRAXIS_LAYER_SCALE_VARS.popup}, ${scale.popup}) !important;
28792
+ }
28793
+
27785
28794
  .cdk-overlay-connected-position-bounding-box {
27786
28795
  z-index: var(${PRAXIS_LAYER_SCALE_VARS.cdkOverlayWrapper}, ${scale.cdkOverlayWrapper}) !important;
27787
28796
  }
@@ -31783,7 +32792,18 @@ class AnalyticsPresentationResolver {
31783
32792
  const hintedKind = String(hints?.preferredChartType ?? hints?.chartKind ?? '')
31784
32793
  .trim()
31785
32794
  .toLowerCase();
31786
- if (hintedKind === 'boxplot' || hintedKind === 'calendar' || hintedKind === 'waterfall') {
32795
+ if (hintedKind === 'boxplot' ||
32796
+ hintedKind === 'calendar' ||
32797
+ hintedKind === 'waterfall' ||
32798
+ hintedKind === 'sankey' ||
32799
+ hintedKind === 'sunburst' ||
32800
+ hintedKind === 'treemap' ||
32801
+ hintedKind === 'radar' ||
32802
+ hintedKind === 'heatmap' ||
32803
+ hintedKind === 'scatter') {
32804
+ return true;
32805
+ }
32806
+ if (projection.intent === 'correlation') {
31787
32807
  return true;
31788
32808
  }
31789
32809
  if (projection.intent === 'distribution' && this.hasQuartileMetricBundle(projection)) {
@@ -36826,12 +37846,247 @@ function reconcileFormConfig(layout, serverDefs) {
36826
37846
  : { ...localField, formHidden: true, disabled: true, submitPolicy: 'omit' });
36827
37847
  }
36828
37848
  }
36829
- // Preserve layout (sections/rows/columns) order, only affect fieldMetadata
37849
+ const reconciledLayout = placeNewlyDiscoveredCustomFields(materializedLayout, merged, localByName);
37850
+ // Preserve layout (sections/rows/columns) order unless new custom fields need auto-placement
36830
37851
  return {
36831
- ...materializedLayout,
37852
+ ...reconciledLayout,
36832
37853
  fieldMetadata: merged,
36833
37854
  };
36834
37855
  }
37856
+ function widthToGridUnits(width) {
37857
+ if (typeof width === 'number' && Number.isFinite(width)) {
37858
+ if (width <= 25)
37859
+ return 3;
37860
+ if (width <= 34)
37861
+ return 4;
37862
+ if (width <= 50)
37863
+ return 6;
37864
+ if (width <= 67)
37865
+ return 8;
37866
+ return 12;
37867
+ }
37868
+ if (typeof width !== 'string')
37869
+ return 12;
37870
+ switch (width.trim()) {
37871
+ case '25%':
37872
+ return 3;
37873
+ case '33%':
37874
+ case '33.3%':
37875
+ case '33.33%':
37876
+ return 4;
37877
+ case '50%':
37878
+ return 6;
37879
+ case '66%':
37880
+ case '66.6%':
37881
+ case '66.67%':
37882
+ return 8;
37883
+ default:
37884
+ return 12;
37885
+ }
37886
+ }
37887
+ function packCustomFieldsIntoRows(fields, rowIds, columnIds, itemIds) {
37888
+ const rows = [];
37889
+ let currentColumns = [];
37890
+ let currentUnits = 0;
37891
+ const flushRow = () => {
37892
+ if (currentColumns.length === 0)
37893
+ return;
37894
+ const firstSlug = slugifyCustomLayoutId(currentColumns[0].fields[0] || 'custom');
37895
+ rows.push({
37896
+ id: allocateUniqueLayoutId(rowIds, `row-${firstSlug}`),
37897
+ columns: currentColumns,
37898
+ });
37899
+ currentColumns = [];
37900
+ currentUnits = 0;
37901
+ };
37902
+ fields.forEach((field, index) => {
37903
+ const units = widthToGridUnits(field.width);
37904
+ if (currentColumns.length > 0 && currentUnits + units > 12) {
37905
+ flushRow();
37906
+ }
37907
+ const baseItem = createFieldLayoutItem(field.name, index);
37908
+ const itemId = allocateUniqueLayoutId(itemIds, baseItem.id);
37909
+ const uniqueItem = { ...baseItem, id: itemId };
37910
+ const fieldSlug = slugifyCustomLayoutId(field.name);
37911
+ const colId = allocateUniqueLayoutId(columnIds, `col-${fieldSlug}`);
37912
+ const column = {
37913
+ id: colId,
37914
+ items: [uniqueItem],
37915
+ fields: [field.name],
37916
+ ...(units < 12 ? { span: { xs: 12, md: units } } : {}),
37917
+ };
37918
+ currentColumns.push(column);
37919
+ currentUnits += units;
37920
+ if (currentUnits >= 12) {
37921
+ flushRow();
37922
+ }
37923
+ });
37924
+ flushRow();
37925
+ return rows;
37926
+ }
37927
+ function placeNewlyDiscoveredCustomFields(layout, mergedFields, localByName) {
37928
+ if (!Array.isArray(layout.sections) || layout.sections.length === 0) {
37929
+ return layout;
37930
+ }
37931
+ const placedNames = new Set();
37932
+ const sectionIds = new Set();
37933
+ const rowIds = new Set();
37934
+ const columnIds = new Set();
37935
+ const itemIds = new Set();
37936
+ for (const section of layout.sections) {
37937
+ if (section.id)
37938
+ sectionIds.add(section.id);
37939
+ for (const row of section.rows ?? []) {
37940
+ if (row.id)
37941
+ rowIds.add(row.id);
37942
+ for (const column of row.columns ?? []) {
37943
+ if (column.id)
37944
+ columnIds.add(column.id);
37945
+ for (const item of column.items ?? []) {
37946
+ if (item.id)
37947
+ itemIds.add(item.id);
37948
+ }
37949
+ for (const name of getFormColumnFieldNames(column)) {
37950
+ placedNames.add(name);
37951
+ }
37952
+ }
37953
+ }
37954
+ }
37955
+ // Preserve incomplete stub layouts and empty section shells without inventing structure
37956
+ if (placedNames.size === 0) {
37957
+ return layout;
37958
+ }
37959
+ const unplacedCustomFields = mergedFields
37960
+ .map((field, index) => ({ field, index }))
37961
+ .filter(({ field }) => field.customField === true &&
37962
+ field.formHidden !== true &&
37963
+ !localByName.has(field.name) &&
37964
+ !placedNames.has(field.name))
37965
+ .sort((a, b) => {
37966
+ const orderA = a.field.order ?? Number.MAX_SAFE_INTEGER;
37967
+ const orderB = b.field.order ?? Number.MAX_SAFE_INTEGER;
37968
+ return orderA !== orderB ? orderA - orderB : a.index - b.index;
37969
+ })
37970
+ .map(({ field }) => field);
37971
+ if (unplacedCustomFields.length === 0) {
37972
+ return layout;
37973
+ }
37974
+ const grouped = new Map();
37975
+ for (const field of unplacedCustomFields) {
37976
+ const label = field.group?.trim() || 'Campos Customizados';
37977
+ const key = label.toLowerCase();
37978
+ const bucket = grouped.get(key);
37979
+ if (bucket) {
37980
+ bucket.fields.push(field);
37981
+ }
37982
+ else {
37983
+ grouped.set(key, { label, fields: [field] });
37984
+ }
37985
+ }
37986
+ const nextSections = [...layout.sections];
37987
+ const hasExplicitTabs = Array.isArray(layout.layout?.tabs) && layout.layout.tabs.length > 0;
37988
+ const nextTabs = hasExplicitTabs
37989
+ ? layout.layout.tabs.map((tab) => ({
37990
+ ...tab,
37991
+ sectionIds: [...(tab.sectionIds ?? [])],
37992
+ }))
37993
+ : undefined;
37994
+ const tabIds = new Set((nextTabs ?? []).map((tab) => tab.id).filter((id) => Boolean(id)));
37995
+ const hasExplicitSteps = Array.isArray(layout.layout?.steps) && layout.layout.steps.length > 0;
37996
+ const nextSteps = hasExplicitSteps
37997
+ ? layout.layout.steps.map((step) => ({
37998
+ ...step,
37999
+ sectionIds: [...(step.sectionIds ?? [])],
38000
+ }))
38001
+ : undefined;
38002
+ const stepIds = new Set((nextSteps ?? []).map((step) => step.id).filter((id) => Boolean(id)));
38003
+ for (const { label, fields } of grouped.values()) {
38004
+ const labelLower = label.toLowerCase();
38005
+ const labelSlug = slugifyCustomLayoutId(label);
38006
+ const newRows = packCustomFieldsIntoRows(fields, rowIds, columnIds, itemIds);
38007
+ let matchIndex = nextSections.findIndex((section) => {
38008
+ const titleLower = section.title?.trim().toLowerCase();
38009
+ const idLower = section.id?.trim().toLowerCase();
38010
+ return titleLower === labelLower || idLower === labelLower || idLower === labelSlug;
38011
+ });
38012
+ if (matchIndex < 0 && nextTabs) {
38013
+ const matchedTab = nextTabs.find((tab) => tab.label?.trim().toLowerCase() === labelLower && (tab.sectionIds?.length ?? 0) > 0);
38014
+ if (matchedTab) {
38015
+ const lastSectionId = matchedTab.sectionIds[matchedTab.sectionIds.length - 1];
38016
+ matchIndex = nextSections.findIndex((section) => section.id === lastSectionId);
38017
+ }
38018
+ }
38019
+ if (matchIndex < 0 && nextSteps) {
38020
+ const matchedStep = nextSteps.find((step) => step.label?.trim().toLowerCase() === labelLower && (step.sectionIds?.length ?? 0) > 0);
38021
+ if (matchedStep) {
38022
+ const lastSectionId = matchedStep.sectionIds[matchedStep.sectionIds.length - 1];
38023
+ matchIndex = nextSections.findIndex((section) => section.id === lastSectionId);
38024
+ }
38025
+ }
38026
+ let targetSectionId;
38027
+ if (matchIndex >= 0) {
38028
+ const existing = nextSections[matchIndex];
38029
+ targetSectionId = existing.id;
38030
+ nextSections[matchIndex] = {
38031
+ ...existing,
38032
+ rows: [...(existing.rows ?? []), ...newRows],
38033
+ };
38034
+ }
38035
+ else {
38036
+ targetSectionId = allocateUniqueLayoutId(sectionIds, `custom-section-${labelSlug}`);
38037
+ nextSections.push({
38038
+ id: targetSectionId,
38039
+ title: label,
38040
+ rows: newRows,
38041
+ });
38042
+ }
38043
+ if (nextTabs && !nextTabs.some((tab) => tab.sectionIds.includes(targetSectionId))) {
38044
+ nextTabs.push({
38045
+ id: allocateUniqueLayoutId(tabIds, `custom-tab-${labelSlug}`),
38046
+ label,
38047
+ sectionIds: [targetSectionId],
38048
+ });
38049
+ }
38050
+ if (nextSteps && !nextSteps.some((step) => step.sectionIds.includes(targetSectionId))) {
38051
+ nextSteps.push({
38052
+ id: allocateUniqueLayoutId(stepIds, `custom-step-${labelSlug}`),
38053
+ label,
38054
+ sectionIds: [targetSectionId],
38055
+ });
38056
+ }
38057
+ }
38058
+ return {
38059
+ ...layout,
38060
+ sections: nextSections,
38061
+ ...(nextTabs || nextSteps
38062
+ ? {
38063
+ layout: {
38064
+ ...layout.layout,
38065
+ ...(nextTabs ? { tabs: nextTabs } : {}),
38066
+ ...(nextSteps ? { steps: nextSteps } : {}),
38067
+ },
38068
+ }
38069
+ : {}),
38070
+ };
38071
+ }
38072
+ function slugifyCustomLayoutId(value) {
38073
+ const normalized = value
38074
+ .trim()
38075
+ .toLowerCase()
38076
+ .normalize('NFD')
38077
+ .replace(/[\u0300-\u036f]/g, '')
38078
+ .replace(/[^a-z0-9]+/g, '-')
38079
+ .replace(/^-+|-+$/g, '');
38080
+ return normalized || 'custom';
38081
+ }
38082
+ function allocateUniqueLayoutId(used, base) {
38083
+ let candidate = base;
38084
+ for (let suffix = 2; used.has(candidate); suffix += 1) {
38085
+ candidate = `${base}-${suffix}`;
38086
+ }
38087
+ used.add(candidate);
38088
+ return candidate;
38089
+ }
36835
38090
 
36836
38091
  function withFormConfigSections(config) {
36837
38092
  return {
@@ -41221,6 +42476,7 @@ function markerColorForEvent$1(eventType) {
41221
42476
  return 'neutral';
41222
42477
  }
41223
42478
 
42479
+ const DOMAIN_RULE_DOCUMENTATION_KEY = 'documentation';
41224
42480
  /** Narrows an unknown HTTP error body without relying on human-readable message parsing. */
41225
42481
  function isDomainRuleSnapshotProblemResponse(value) {
41226
42482
  if (!isRecord$3(value) || typeof value['code'] !== 'string' || typeof value['message'] !== 'string') {
@@ -41239,6 +42495,99 @@ function isDomainRuleSnapshotBlocker(value) {
41239
42495
  function isRecord$3(value) {
41240
42496
  return typeof value === 'object' && value !== null && !Array.isArray(value);
41241
42497
  }
42498
+ function cleanDocText(value) {
42499
+ if (typeof value !== 'string') {
42500
+ return undefined;
42501
+ }
42502
+ const trimmed = value.trim();
42503
+ return trimmed || undefined;
42504
+ }
42505
+ /**
42506
+ * Extracts normalized non-executable didactic documentation from either a
42507
+ * `DomainRuleDefinition.definition` payload (under `DOMAIN_RULE_DOCUMENTATION_KEY`)
42508
+ * or a direct `RuleDocumentationDescriptor` object.
42509
+ */
42510
+ function extractDomainRuleDocumentation(definitionOrRecord) {
42511
+ if (!isRecord$3(definitionOrRecord)) {
42512
+ return null;
42513
+ }
42514
+ const candidate = isRecord$3(definitionOrRecord[DOMAIN_RULE_DOCUMENTATION_KEY])
42515
+ ? definitionOrRecord[DOMAIN_RULE_DOCUMENTATION_KEY]
42516
+ : definitionOrRecord;
42517
+ if (!isRecord$3(candidate)) {
42518
+ return null;
42519
+ }
42520
+ const title = cleanDocText(candidate['title']);
42521
+ const summary = cleanDocText(candidate['summary']);
42522
+ const whenApplies = cleanDocText(candidate['whenApplies']);
42523
+ const rationale = cleanDocText(candidate['rationale']);
42524
+ const customizationGuidance = cleanDocText(candidate['customizationGuidance']);
42525
+ const rawLegal = candidate['legalBasis'];
42526
+ const legalList = [];
42527
+ if (Array.isArray(rawLegal)) {
42528
+ for (const entry of rawLegal) {
42529
+ if (typeof entry === 'string') {
42530
+ const code = cleanDocText(entry);
42531
+ if (code) {
42532
+ legalList.push({ code });
42533
+ }
42534
+ }
42535
+ else if (isRecord$3(entry)) {
42536
+ const code = cleanDocText(entry['code']) ?? cleanDocText(entry['title']);
42537
+ if (code) {
42538
+ legalList.push({
42539
+ code,
42540
+ ...(cleanDocText(entry['title']) ? { title: cleanDocText(entry['title']) } : {}),
42541
+ ...(cleanDocText(entry['article']) ? { article: cleanDocText(entry['article']) } : {}),
42542
+ ...(cleanDocText(entry['jurisdiction'])
42543
+ ? { jurisdiction: cleanDocText(entry['jurisdiction']) }
42544
+ : {}),
42545
+ ...(cleanDocText(entry['summary']) ? { summary: cleanDocText(entry['summary']) } : {}),
42546
+ ...(cleanDocText(entry['url']) ? { url: cleanDocText(entry['url']) } : {}),
42547
+ });
42548
+ }
42549
+ }
42550
+ }
42551
+ }
42552
+ else if (typeof rawLegal === 'string') {
42553
+ const code = cleanDocText(rawLegal);
42554
+ if (code) {
42555
+ legalList.push({ code });
42556
+ }
42557
+ }
42558
+ if (!title &&
42559
+ !summary &&
42560
+ !whenApplies &&
42561
+ !rationale &&
42562
+ !customizationGuidance &&
42563
+ legalList.length === 0) {
42564
+ return null;
42565
+ }
42566
+ return {
42567
+ ...(title ? { title } : {}),
42568
+ ...(summary ? { summary } : {}),
42569
+ ...(whenApplies ? { whenApplies } : {}),
42570
+ ...(rationale ? { rationale } : {}),
42571
+ ...(legalList.length > 0 ? { legalBasis: legalList } : {}),
42572
+ ...(customizationGuidance ? { customizationGuidance } : {}),
42573
+ };
42574
+ }
42575
+ /**
42576
+ * Merges didactic documentation under `DOMAIN_RULE_DOCUMENTATION_KEY` into a
42577
+ * `DomainRuleDefinition.definition` payload without mutating the source object.
42578
+ */
42579
+ function mergeDomainRuleDocumentation(definition, documentation) {
42580
+ const base = isRecord$3(definition) ? { ...definition } : {};
42581
+ const normalized = extractDomainRuleDocumentation(documentation);
42582
+ if (!normalized) {
42583
+ delete base[DOMAIN_RULE_DOCUMENTATION_KEY];
42584
+ return base;
42585
+ }
42586
+ return {
42587
+ ...base,
42588
+ [DOMAIN_RULE_DOCUMENTATION_KEY]: normalized,
42589
+ };
42590
+ }
41242
42591
 
41243
42592
  const DEFAULT_TITLE = 'Governed decision timeline';
41244
42593
  const DEFAULT_EMPTY_TEXT = 'No safe timeline events published for this decision.';
@@ -41618,6 +42967,129 @@ function normalizeSchemaFormLayoutMode(mode) {
41618
42967
  return undefined;
41619
42968
  }
41620
42969
  }
42970
+ function normalizeSchemaTabsAppearance(appearance) {
42971
+ if (typeof appearance !== 'string')
42972
+ return undefined;
42973
+ switch (appearance.trim().toLowerCase()) {
42974
+ case 'pills':
42975
+ return 'pills';
42976
+ case 'underline':
42977
+ return 'underline';
42978
+ case 'buttons':
42979
+ return 'buttons';
42980
+ default:
42981
+ return undefined;
42982
+ }
42983
+ }
42984
+ function normalizeSchemaStepperReadMode(mode) {
42985
+ if (typeof mode !== 'string')
42986
+ return undefined;
42987
+ switch (mode.trim().toLowerCase()) {
42988
+ case 'presentation':
42989
+ return 'presentation';
42990
+ case 'all':
42991
+ return 'all';
42992
+ case 'none':
42993
+ return 'none';
42994
+ default:
42995
+ return undefined;
42996
+ }
42997
+ }
42998
+ function buildMaterializedFormLayoutOptions(schemaLayout, sections) {
42999
+ if (!schemaLayout)
43000
+ return undefined;
43001
+ const normalizedMode = normalizeSchemaFormLayoutMode(schemaLayout.mode);
43002
+ const defaultTabId = typeof schemaLayout.defaultTabId === 'string' && schemaLayout.defaultTabId.trim()
43003
+ ? schemaLayout.defaultTabId.trim()
43004
+ : undefined;
43005
+ const tabsAppearance = normalizeSchemaTabsAppearance(schemaLayout.tabsAppearance);
43006
+ const accordionMulti = typeof schemaLayout.accordionMulti === 'boolean'
43007
+ ? schemaLayout.accordionMulti
43008
+ : undefined;
43009
+ const hideSectionHeaderInTabs = typeof schemaLayout.hideSectionHeaderInTabs === 'boolean'
43010
+ ? schemaLayout.hideSectionHeaderInTabs
43011
+ : undefined;
43012
+ const hideSectionHeaderInStepper = typeof schemaLayout.hideSectionHeaderInStepper === 'boolean'
43013
+ ? schemaLayout.hideSectionHeaderInStepper
43014
+ : undefined;
43015
+ const stepperInReadMode = normalizeSchemaStepperReadMode(schemaLayout.stepperInReadMode);
43016
+ const stepperReviewStep = typeof schemaLayout.stepperReviewStep === 'boolean'
43017
+ ? schemaLayout.stepperReviewStep
43018
+ : undefined;
43019
+ const draftPersistence = typeof schemaLayout.draftPersistence === 'boolean'
43020
+ ? schemaLayout.draftPersistence
43021
+ : undefined;
43022
+ const steps = Array.isArray(schemaLayout.steps) && schemaLayout.steps.length > 0
43023
+ ? schemaLayout.steps
43024
+ .map((step) => {
43025
+ const id = typeof step?.id === 'string' ? step.id.trim() : '';
43026
+ const sectionIds = Array.isArray(step?.sectionIds)
43027
+ ? step.sectionIds.map((s) => String(s ?? '').trim()).filter(Boolean)
43028
+ : [];
43029
+ if (!id || !sectionIds.length) {
43030
+ return null;
43031
+ }
43032
+ const description = typeof step.description === 'string' && step.description.trim()
43033
+ ? step.description.trim()
43034
+ : undefined;
43035
+ const icon = typeof step.icon === 'string' && step.icon.trim()
43036
+ ? step.icon.trim()
43037
+ : undefined;
43038
+ const tooltip = typeof step.tooltip === 'string' && step.tooltip.trim()
43039
+ ? step.tooltip.trim()
43040
+ : undefined;
43041
+ return {
43042
+ id,
43043
+ label: (typeof step.label === 'string' ? step.label.trim() : '') || id,
43044
+ ...(description ? { description } : {}),
43045
+ ...(icon ? { icon } : {}),
43046
+ sectionIds,
43047
+ ...(step.optional === true ? { optional: true } : {}),
43048
+ ...(step.badge !== undefined && step.badge !== null && step.badge !== ''
43049
+ ? { badge: step.badge }
43050
+ : {}),
43051
+ ...(step.disabled === true ? { disabled: true } : {}),
43052
+ ...(tooltip ? { tooltip } : {}),
43053
+ };
43054
+ })
43055
+ .filter((item) => item !== null)
43056
+ : undefined;
43057
+ const normalizedSteps = steps && steps.length > 0 ? steps : undefined;
43058
+ if (!normalizedMode &&
43059
+ !defaultTabId &&
43060
+ !tabsAppearance &&
43061
+ accordionMulti === undefined &&
43062
+ hideSectionHeaderInTabs === undefined &&
43063
+ hideSectionHeaderInStepper === undefined &&
43064
+ stepperInReadMode === undefined &&
43065
+ stepperReviewStep === undefined &&
43066
+ draftPersistence === undefined &&
43067
+ !normalizedSteps) {
43068
+ return undefined;
43069
+ }
43070
+ return {
43071
+ ...(normalizedMode ? { mode: normalizedMode } : {}),
43072
+ ...(defaultTabId ? { defaultTabId } : {}),
43073
+ ...(tabsAppearance ? { tabsAppearance } : {}),
43074
+ ...(accordionMulti !== undefined ? { accordionMulti } : {}),
43075
+ ...(hideSectionHeaderInTabs !== undefined ? { hideSectionHeaderInTabs } : {}),
43076
+ ...(hideSectionHeaderInStepper !== undefined ? { hideSectionHeaderInStepper } : {}),
43077
+ ...(stepperInReadMode ? { stepperInReadMode } : {}),
43078
+ ...(stepperReviewStep !== undefined ? { stepperReviewStep } : {}),
43079
+ ...(draftPersistence !== undefined ? { draftPersistence } : {}),
43080
+ ...(normalizedSteps ? { steps: normalizedSteps } : {}),
43081
+ ...(normalizedMode === 'tabs'
43082
+ ? {
43083
+ tabs: sections.map((s) => ({
43084
+ id: s.id,
43085
+ label: s.title || s.id,
43086
+ ...(s.icon ? { icon: s.icon } : {}),
43087
+ sectionIds: [s.id],
43088
+ })),
43089
+ }
43090
+ : {}),
43091
+ };
43092
+ }
41621
43093
  function buildSectionsFromSchemaFormLayout(layoutFields, schemaLayout, policy, options) {
41622
43094
  const orderedSections = [...(schemaLayout.sections ?? [])].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
41623
43095
  const claimedFieldNames = new Set();
@@ -41641,11 +43113,13 @@ function buildSectionsFromSchemaFormLayout(layoutFields, schemaLayout, policy, o
41641
43113
  for (const f of matchingFields) {
41642
43114
  claimedFieldNames.add(f.name);
41643
43115
  }
41644
- const baseSection = createSection(schemaSec.title || schemaSec.id || `section-${idx + 1}`, matchingFields, idx, policy, options);
43116
+ const explicitSectionId = schemaSec.id?.trim() || undefined;
43117
+ const baseSection = createSection(schemaSec.title || schemaSec.id || `section-${idx + 1}`, matchingFields, idx, policy, options, explicitSectionId);
41645
43118
  built.push({
41646
43119
  ...baseSection,
41647
43120
  id: schemaSec.id?.trim() || baseSection.id,
41648
43121
  title: schemaSec.title?.trim() || baseSection.title,
43122
+ ...(schemaSec.optional === true ? { optional: true } : {}),
41649
43123
  ...(schemaSec.subtitle?.trim() ? { description: schemaSec.subtitle.trim() } : {}),
41650
43124
  ...(schemaSec.icon?.trim()
41651
43125
  ? {
@@ -41679,22 +43153,7 @@ function materializeFormLayoutFromMetadata(fields, options = {}) {
41679
43153
  const sections = schemaFormLayout?.sections?.length
41680
43154
  ? buildSectionsFromSchemaFormLayout(layoutFields, schemaFormLayout, policy, options)
41681
43155
  : groupFields(layoutFields).map(([groupKey, grouped], sectionIndex) => createSection(groupKey, grouped, sectionIndex, policy, options));
41682
- const normalizedMode = normalizeSchemaFormLayoutMode(schemaFormLayout?.mode);
41683
- const layout = normalizedMode
41684
- ? {
41685
- mode: normalizedMode,
41686
- ...(normalizedMode === 'tabs'
41687
- ? {
41688
- tabs: sections.map((s) => ({
41689
- id: s.id,
41690
- label: s.title || s.id,
41691
- ...(s.icon ? { icon: s.icon } : {}),
41692
- sectionIds: [s.id],
41693
- })),
41694
- }
41695
- : {}),
41696
- }
41697
- : undefined;
43156
+ const layout = buildMaterializedFormLayoutOptions(schemaFormLayout, sections);
41698
43157
  return ensureIds({
41699
43158
  sections,
41700
43159
  ...(layout ? { layout } : {}),
@@ -41923,12 +43382,12 @@ function groupFields(fields) {
41923
43382
  }
41924
43383
  return Array.from(groups.entries()).sort(([, left], [, right]) => compareGroupFields(left, right));
41925
43384
  }
41926
- function createSection(groupKey, groupFields, sectionIndex, policy, options) {
43385
+ function createSection(groupKey, groupFields, sectionIndex, policy, options, explicitSectionId) {
41927
43386
  const title = groupKey === 'default'
41928
43387
  ? options.defaultSectionTitle
41929
43388
  ?? (policy.preset === 'groupedCommand' ? '' : 'Informacoes')
41930
43389
  : groupKey;
41931
- const sectionId = stableSectionId(groupKey);
43390
+ const sectionId = explicitSectionId?.trim() || stableSectionId(groupKey);
41932
43391
  const presentationRole = resolvePresentationRole(groupKey, groupFields, options.presentationRoleMap);
41933
43392
  return {
41934
43393
  id: sectionId,
@@ -44068,7 +45527,7 @@ class PraxisIconButtonComponent {
44068
45527
  <mat-icon [class]="defaultAuxiliaryClasses" [fontSet]="resolvedFontClass()" [praxisIcon]="resolvedIcon()"></mat-icon>
44069
45528
  }
44070
45529
  </span>
44071
- `, isInline: true, styles: [":host{--praxis-icon-button-target-size: 44px;--praxis-icon-button-surface-size: 40px;--praxis-icon-button-icon-size: 22px;--praxis-icon-button-filled-background: var(--md-sys-color-primary);--praxis-icon-button-filled-foreground: var(--md-sys-color-on-primary);appearance:none;box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 auto;width:var(--praxis-icon-button-target-size);min-width:var(--praxis-icon-button-target-size);height:var(--praxis-icon-button-target-size);margin:0;padding:0;border:0;border-radius:999px;color:var(--md-sys-color-on-surface-variant);background:transparent;cursor:pointer;line-height:1;-webkit-tap-highlight-color:transparent}:host(.praxis-icon-button--compact){--praxis-icon-button-surface-size: 36px;--praxis-icon-button-icon-size: 20px}:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 36px;--praxis-icon-button-surface-size: 32px;--praxis-icon-button-icon-size: 18px}.praxis-icon-button__surface{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-surface-size);height:var(--praxis-icon-button-surface-size);border-radius:999px;color:inherit;background:transparent;transition:background-color .14s ease,color .14s ease,transform .1s ease}mat-icon{display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);margin:0;font-size:var(--praxis-icon-button-icon-size);line-height:var(--praxis-icon-button-icon-size)}.praxis-icon-button__spinner{box-sizing:border-box;display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:999px;animation:praxis-icon-button-spin .72s linear infinite}.praxis-icon-button__projected{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);min-width:0;overflow:hidden;line-height:var(--praxis-icon-button-icon-size)}@keyframes praxis-icon-button-spin{to{transform:rotate(360deg)}}:host(:hover:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 10%,transparent)}:host(:active:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 16%,transparent);transform:scale(.96)}:host(.praxis-icon-button--pressed:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 14%,transparent)}:host(:focus-visible){outline:2px solid var(--md-sys-color-primary);outline-offset:2px}:host(.praxis-icon-button--filled){color:var(--praxis-icon-button-filled-foreground)}:host(.praxis-icon-button--filled) .praxis-icon-button__surface{background:var(--praxis-icon-button-filled-background);box-shadow:0 4px 12px color-mix(in srgb,var(--praxis-icon-button-filled-background) 24%,transparent)}:host(.praxis-icon-button--filled:hover:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,var(--praxis-icon-button-filled-background) 88%,var(--praxis-icon-button-filled-foreground))}:host(:disabled){cursor:default;opacity:.38}@media(forced-colors:active){.praxis-icon-button__surface{border:1px solid ButtonText}:host(:focus-visible){outline-color:Highlight}}@media(prefers-reduced-motion:reduce){.praxis-icon-button__surface{transition:none}.praxis-icon-button__spinner{animation:none}}@media(pointer:coarse){:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 44px}}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
45530
+ `, isInline: true, styles: [":host{--praxis-icon-button-target-size: 44px;--praxis-icon-button-surface-size: 40px;--praxis-icon-button-icon-size: 22px;--praxis-icon-button-filled-background: var(--md-sys-color-primary, var(--mat-sys-primary));--praxis-icon-button-filled-foreground: var(--md-sys-color-on-primary, var(--mat-sys-on-primary));appearance:none;box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 auto;width:var(--praxis-icon-button-target-size);min-width:var(--praxis-icon-button-target-size);height:var(--praxis-icon-button-target-size);margin:0;padding:0;border:0;border-radius:var(--praxis-icon-button-focus-radius, var(--praxis-icon-button-radius, 999px));color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));background:transparent;cursor:pointer;line-height:1;-webkit-tap-highlight-color:transparent}:host(.praxis-icon-button--compact){--praxis-icon-button-surface-size: 36px;--praxis-icon-button-icon-size: 20px}:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 36px;--praxis-icon-button-surface-size: 32px;--praxis-icon-button-icon-size: 18px}.praxis-icon-button__surface{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-surface-size);height:var(--praxis-icon-button-surface-size);border:var(--praxis-icon-button-border, 0);border-radius:var(--praxis-icon-button-radius, 999px);color:inherit;background:var(--praxis-icon-button-bg, transparent);transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .1s ease}mat-icon{display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);margin:0;font-size:var(--praxis-icon-button-icon-size);line-height:var(--praxis-icon-button-icon-size)}.praxis-icon-button__spinner{box-sizing:border-box;display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:999px;animation:praxis-icon-button-spin .72s linear infinite}.praxis-icon-button__projected{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);min-width:0;overflow:hidden;line-height:var(--praxis-icon-button-icon-size)}@keyframes praxis-icon-button-spin{to{transform:rotate(360deg)}}:host(:hover:not(:disabled)) .praxis-icon-button__surface{background:var( --praxis-icon-button-hover-bg, color-mix(in srgb, currentColor 10%, transparent) );border-color:var(--praxis-icon-button-hover-border-color, transparent)}:host(:active:not(:disabled)) .praxis-icon-button__surface{background:var( --praxis-icon-button-active-bg, color-mix(in srgb, currentColor 16%, transparent) );transform:scale(.96)}:host(.praxis-icon-button--pressed:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 14%,transparent)}:host(:focus-visible){outline:2px solid var(--md-sys-color-primary, var(--mat-sys-primary));outline-offset:2px}:host(.praxis-icon-button--filled){color:var(--praxis-icon-button-filled-foreground)}:host(.praxis-icon-button--filled) .praxis-icon-button__surface{background:var(--praxis-icon-button-filled-background);box-shadow:0 4px 12px color-mix(in srgb,var(--praxis-icon-button-filled-background) 24%,transparent)}:host(.praxis-icon-button--filled:hover:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,var(--praxis-icon-button-filled-background) 88%,var(--praxis-icon-button-filled-foreground))}:host(:disabled){cursor:default;opacity:.38}@media(forced-colors:active){.praxis-icon-button__surface{border:1px solid ButtonText}:host(:focus-visible){outline-color:Highlight}}@media(prefers-reduced-motion:reduce){.praxis-icon-button__surface{transition:none}.praxis-icon-button__spinner{animation:none}}@media(pointer:coarse){:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 44px}}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
44072
45531
  }
44073
45532
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisIconButtonComponent, decorators: [{
44074
45533
  type: Component,
@@ -44094,7 +45553,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
44094
45553
  '[class.praxis-icon-button--filled]': 'appearance() === "filled"',
44095
45554
  '[class.praxis-icon-button--pressed]': 'pressed() === true',
44096
45555
  '[class.praxis-icon-button--busy]': 'busy()',
44097
- }, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--praxis-icon-button-target-size: 44px;--praxis-icon-button-surface-size: 40px;--praxis-icon-button-icon-size: 22px;--praxis-icon-button-filled-background: var(--md-sys-color-primary);--praxis-icon-button-filled-foreground: var(--md-sys-color-on-primary);appearance:none;box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 auto;width:var(--praxis-icon-button-target-size);min-width:var(--praxis-icon-button-target-size);height:var(--praxis-icon-button-target-size);margin:0;padding:0;border:0;border-radius:999px;color:var(--md-sys-color-on-surface-variant);background:transparent;cursor:pointer;line-height:1;-webkit-tap-highlight-color:transparent}:host(.praxis-icon-button--compact){--praxis-icon-button-surface-size: 36px;--praxis-icon-button-icon-size: 20px}:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 36px;--praxis-icon-button-surface-size: 32px;--praxis-icon-button-icon-size: 18px}.praxis-icon-button__surface{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-surface-size);height:var(--praxis-icon-button-surface-size);border-radius:999px;color:inherit;background:transparent;transition:background-color .14s ease,color .14s ease,transform .1s ease}mat-icon{display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);margin:0;font-size:var(--praxis-icon-button-icon-size);line-height:var(--praxis-icon-button-icon-size)}.praxis-icon-button__spinner{box-sizing:border-box;display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:999px;animation:praxis-icon-button-spin .72s linear infinite}.praxis-icon-button__projected{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);min-width:0;overflow:hidden;line-height:var(--praxis-icon-button-icon-size)}@keyframes praxis-icon-button-spin{to{transform:rotate(360deg)}}:host(:hover:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 10%,transparent)}:host(:active:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 16%,transparent);transform:scale(.96)}:host(.praxis-icon-button--pressed:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 14%,transparent)}:host(:focus-visible){outline:2px solid var(--md-sys-color-primary);outline-offset:2px}:host(.praxis-icon-button--filled){color:var(--praxis-icon-button-filled-foreground)}:host(.praxis-icon-button--filled) .praxis-icon-button__surface{background:var(--praxis-icon-button-filled-background);box-shadow:0 4px 12px color-mix(in srgb,var(--praxis-icon-button-filled-background) 24%,transparent)}:host(.praxis-icon-button--filled:hover:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,var(--praxis-icon-button-filled-background) 88%,var(--praxis-icon-button-filled-foreground))}:host(:disabled){cursor:default;opacity:.38}@media(forced-colors:active){.praxis-icon-button__surface{border:1px solid ButtonText}:host(:focus-visible){outline-color:Highlight}}@media(prefers-reduced-motion:reduce){.praxis-icon-button__surface{transition:none}.praxis-icon-button__spinner{animation:none}}@media(pointer:coarse){:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 44px}}\n"] }]
45556
+ }, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--praxis-icon-button-target-size: 44px;--praxis-icon-button-surface-size: 40px;--praxis-icon-button-icon-size: 22px;--praxis-icon-button-filled-background: var(--md-sys-color-primary, var(--mat-sys-primary));--praxis-icon-button-filled-foreground: var(--md-sys-color-on-primary, var(--mat-sys-on-primary));appearance:none;box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 auto;width:var(--praxis-icon-button-target-size);min-width:var(--praxis-icon-button-target-size);height:var(--praxis-icon-button-target-size);margin:0;padding:0;border:0;border-radius:var(--praxis-icon-button-focus-radius, var(--praxis-icon-button-radius, 999px));color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));background:transparent;cursor:pointer;line-height:1;-webkit-tap-highlight-color:transparent}:host(.praxis-icon-button--compact){--praxis-icon-button-surface-size: 36px;--praxis-icon-button-icon-size: 20px}:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 36px;--praxis-icon-button-surface-size: 32px;--praxis-icon-button-icon-size: 18px}.praxis-icon-button__surface{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-surface-size);height:var(--praxis-icon-button-surface-size);border:var(--praxis-icon-button-border, 0);border-radius:var(--praxis-icon-button-radius, 999px);color:inherit;background:var(--praxis-icon-button-bg, transparent);transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .1s ease}mat-icon{display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);margin:0;font-size:var(--praxis-icon-button-icon-size);line-height:var(--praxis-icon-button-icon-size)}.praxis-icon-button__spinner{box-sizing:border-box;display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:999px;animation:praxis-icon-button-spin .72s linear infinite}.praxis-icon-button__projected{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);min-width:0;overflow:hidden;line-height:var(--praxis-icon-button-icon-size)}@keyframes praxis-icon-button-spin{to{transform:rotate(360deg)}}:host(:hover:not(:disabled)) .praxis-icon-button__surface{background:var( --praxis-icon-button-hover-bg, color-mix(in srgb, currentColor 10%, transparent) );border-color:var(--praxis-icon-button-hover-border-color, transparent)}:host(:active:not(:disabled)) .praxis-icon-button__surface{background:var( --praxis-icon-button-active-bg, color-mix(in srgb, currentColor 16%, transparent) );transform:scale(.96)}:host(.praxis-icon-button--pressed:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 14%,transparent)}:host(:focus-visible){outline:2px solid var(--md-sys-color-primary, var(--mat-sys-primary));outline-offset:2px}:host(.praxis-icon-button--filled){color:var(--praxis-icon-button-filled-foreground)}:host(.praxis-icon-button--filled) .praxis-icon-button__surface{background:var(--praxis-icon-button-filled-background);box-shadow:0 4px 12px color-mix(in srgb,var(--praxis-icon-button-filled-background) 24%,transparent)}:host(.praxis-icon-button--filled:hover:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,var(--praxis-icon-button-filled-background) 88%,var(--praxis-icon-button-filled-foreground))}:host(:disabled){cursor:default;opacity:.38}@media(forced-colors:active){.praxis-icon-button__surface{border:1px solid ButtonText}:host(:focus-visible){outline-color:Highlight}}@media(prefers-reduced-motion:reduce){.praxis-icon-button__surface{transition:none}.praxis-icon-button__spinner{animation:none}}@media(pointer:coarse){:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 44px}}\n"] }]
44098
45557
  }], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "praxisIconButton", required: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], presentation: [{ type: i0.Input, args: [{ isSignal: true, alias: "presentation", required: false }] }], pressed: [{ type: i0.Input, args: [{ isSignal: true, alias: "pressed", required: false }] }], busy: [{ type: i0.Input, args: [{ isSignal: true, alias: "busy", required: false }] }] } });
44099
45558
 
44100
45559
  /** Finite choices from the existing ComponentDocMeta type grammar, not user intent. */
@@ -52072,7 +53531,7 @@ class WindowIsolation {
52072
53531
  this.container = container;
52073
53532
  this.scrollStrategy = scrollStrategy;
52074
53533
  this.onEmpty = onEmpty;
52075
- this.observer = new MutationObserver(() => this.refresh());
53534
+ this.observer = typeof MutationObserver !== 'undefined' ? new MutationObserver(() => this.refresh()) : null;
52076
53535
  }
52077
53536
  add(wrapper) {
52078
53537
  if (!this.windows.length)
@@ -52136,18 +53595,18 @@ class WindowIsolation {
52136
53595
  }
52137
53596
  if (!this.windows.length) {
52138
53597
  this.closed = true;
52139
- this.observer.disconnect();
53598
+ this.observer?.disconnect();
52140
53599
  this.observedAncestors = [];
52141
53600
  this.scrollStrategy.disable();
52142
53601
  this.onEmpty();
52143
53602
  }
52144
53603
  else if (ancestors.length !== this.observedAncestors.length
52145
53604
  || ancestors.some((ancestor, index) => ancestor !== this.observedAncestors[index])) {
52146
- this.observer.disconnect();
53605
+ this.observer?.disconnect();
52147
53606
  // Observe structural siblings only, never mutations in every cell/form
52148
53607
  // under body. Attribute writes cannot feed back into this observer.
52149
53608
  for (const ancestor of ancestors)
52150
- this.observer.observe(ancestor, { childList: true });
53609
+ this.observer?.observe(ancestor, { childList: true });
52151
53610
  this.observedAncestors = ancestors;
52152
53611
  }
52153
53612
  }
@@ -53497,7 +54956,7 @@ class PraxisResourceIdentityComponent {
53497
54956
  </div>
53498
54957
  }
53499
54958
  </div>
53500
- `, isInline: true, styles: [":host{display:block;min-width:0}.identity{display:grid;gap:var(--pdx-resource-identity-gap, .375rem);min-width:0}.identity__primary{display:flex;align-items:center;gap:var(--pdx-resource-identity-primary-gap, .625rem);min-width:0;flex-wrap:wrap}.identity__key{display:inline-flex;align-items:center;min-height:1.75rem;padding:.125rem .625rem;border-radius:var(--pdx-resource-identity-key-radius, .5rem);background:var(--pdx-resource-identity-key-bg, var(--md-sys-color-primary));color:var(--pdx-resource-identity-key-fg, var(--md-sys-color-on-primary));font:var(--pdx-resource-identity-key-font, 600 .8125rem/1.25rem var(--md-sys-typescale-label-large-font-family, inherit));letter-spacing:.02em;white-space:nowrap}.identity__key-label{font-weight:500;opacity:.84;margin-inline-end:.25rem}.identity__title{flex:1 1 12rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:var(--pdx-resource-identity-title-wrap, normal);overflow-wrap:anywhere;color:var(--pdx-resource-identity-title-color, var(--md-sys-color-on-surface));font:var(--pdx-resource-identity-title-font, 600 1.125rem/1.35 var(--md-sys-typescale-title-medium-font-family, inherit))}.identity__metadata{display:flex;align-items:center;gap:.375rem .5rem;flex-wrap:wrap;color:var(--md-sys-color-on-surface-variant)}.identity__meta{display:inline-flex;align-items:center;gap:.25rem;min-width:0;font-size:.8125rem;line-height:1.25rem}.identity__meta+.identity__meta:not(.identity__meta--chip):before{content:\"\\b7\";margin-inline-end:.25rem;color:var(--md-sys-color-outline)}.identity__meta--chip{padding:.0625rem .5rem;border-radius:999px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface-variant)}.identity__meta-label{color:var(--md-sys-color-on-surface-variant);font-weight:500}.identity--compact{gap:.25rem}.identity--compact .identity__key{min-height:1.5rem;padding-inline:.5rem}.identity--compact .identity__title{font-size:1rem}@media(max-width:600px){.identity__primary{align-items:flex-start;gap:.375rem .5rem}.identity__title{flex:1 1 12rem;white-space:normal;overflow:visible}.identity__metadata{gap:.25rem .375rem}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
54959
+ `, isInline: true, styles: [":host{display:block;min-width:0}.identity{display:grid;gap:var(--pdx-resource-identity-gap, .375rem);min-width:0}.identity__primary{display:flex;align-items:center;gap:var(--pdx-resource-identity-primary-gap, .625rem);min-width:0;flex-wrap:wrap}.identity__key{display:inline-flex;align-items:center;min-height:1.75rem;padding:.125rem .625rem;border-radius:var(--pdx-resource-identity-key-radius, .5rem);background:var(--pdx-resource-identity-key-bg, var(--md-sys-color-primary, var(--mat-sys-primary)));color:var(--pdx-resource-identity-key-fg, var(--md-sys-color-on-primary, var(--mat-sys-on-primary)));font:var(--pdx-resource-identity-key-font, 600 .8125rem/1.25rem var(--md-sys-typescale-label-large-font-family, inherit));letter-spacing:.02em;white-space:nowrap}.identity__key-label{font-weight:500;opacity:.84;margin-inline-end:.25rem}.identity__title{flex:1 1 12rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:var(--pdx-resource-identity-title-wrap, normal);overflow-wrap:anywhere;color:var(--pdx-resource-identity-title-color, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)));font:var(--pdx-resource-identity-title-font, 600 1.125rem/1.35 var(--md-sys-typescale-title-medium-font-family, inherit))}.identity__metadata{display:flex;align-items:center;gap:.375rem .5rem;flex-wrap:wrap;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}.identity__meta{display:inline-flex;align-items:center;gap:.25rem;min-width:0;font-size:.8125rem;line-height:1.25rem}.identity__meta+.identity__meta:not(.identity__meta--chip):before{content:\"\\b7\";margin-inline-end:.25rem;color:var(--md-sys-color-outline, var(--mat-sys-outline))}.identity__meta--chip{padding:.0625rem .5rem;border-radius:999px;background:var(--md-sys-color-surface-container-high, var(--mat-sys-surface-container-high));color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}.identity__meta-label{color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));font-weight:500}.identity--compact{gap:.25rem}.identity--compact .identity__key{min-height:1.5rem;padding-inline:.5rem}.identity--compact .identity__title{font-size:1rem}@media(max-width:600px){.identity__primary{align-items:flex-start;gap:.375rem .5rem}.identity__title{flex:1 1 12rem;white-space:normal;overflow:visible}.identity__metadata{gap:.25rem .375rem}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
53501
54960
  }
53502
54961
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisResourceIdentityComponent, decorators: [{
53503
54962
  type: Component,
@@ -53540,7 +54999,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
53540
54999
  </div>
53541
55000
  }
53542
55001
  </div>
53543
- `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;min-width:0}.identity{display:grid;gap:var(--pdx-resource-identity-gap, .375rem);min-width:0}.identity__primary{display:flex;align-items:center;gap:var(--pdx-resource-identity-primary-gap, .625rem);min-width:0;flex-wrap:wrap}.identity__key{display:inline-flex;align-items:center;min-height:1.75rem;padding:.125rem .625rem;border-radius:var(--pdx-resource-identity-key-radius, .5rem);background:var(--pdx-resource-identity-key-bg, var(--md-sys-color-primary));color:var(--pdx-resource-identity-key-fg, var(--md-sys-color-on-primary));font:var(--pdx-resource-identity-key-font, 600 .8125rem/1.25rem var(--md-sys-typescale-label-large-font-family, inherit));letter-spacing:.02em;white-space:nowrap}.identity__key-label{font-weight:500;opacity:.84;margin-inline-end:.25rem}.identity__title{flex:1 1 12rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:var(--pdx-resource-identity-title-wrap, normal);overflow-wrap:anywhere;color:var(--pdx-resource-identity-title-color, var(--md-sys-color-on-surface));font:var(--pdx-resource-identity-title-font, 600 1.125rem/1.35 var(--md-sys-typescale-title-medium-font-family, inherit))}.identity__metadata{display:flex;align-items:center;gap:.375rem .5rem;flex-wrap:wrap;color:var(--md-sys-color-on-surface-variant)}.identity__meta{display:inline-flex;align-items:center;gap:.25rem;min-width:0;font-size:.8125rem;line-height:1.25rem}.identity__meta+.identity__meta:not(.identity__meta--chip):before{content:\"\\b7\";margin-inline-end:.25rem;color:var(--md-sys-color-outline)}.identity__meta--chip{padding:.0625rem .5rem;border-radius:999px;background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface-variant)}.identity__meta-label{color:var(--md-sys-color-on-surface-variant);font-weight:500}.identity--compact{gap:.25rem}.identity--compact .identity__key{min-height:1.5rem;padding-inline:.5rem}.identity--compact .identity__title{font-size:1rem}@media(max-width:600px){.identity__primary{align-items:flex-start;gap:.375rem .5rem}.identity__title{flex:1 1 12rem;white-space:normal;overflow:visible}.identity__metadata{gap:.25rem .375rem}}\n"] }]
55002
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;min-width:0}.identity{display:grid;gap:var(--pdx-resource-identity-gap, .375rem);min-width:0}.identity__primary{display:flex;align-items:center;gap:var(--pdx-resource-identity-primary-gap, .625rem);min-width:0;flex-wrap:wrap}.identity__key{display:inline-flex;align-items:center;min-height:1.75rem;padding:.125rem .625rem;border-radius:var(--pdx-resource-identity-key-radius, .5rem);background:var(--pdx-resource-identity-key-bg, var(--md-sys-color-primary, var(--mat-sys-primary)));color:var(--pdx-resource-identity-key-fg, var(--md-sys-color-on-primary, var(--mat-sys-on-primary)));font:var(--pdx-resource-identity-key-font, 600 .8125rem/1.25rem var(--md-sys-typescale-label-large-font-family, inherit));letter-spacing:.02em;white-space:nowrap}.identity__key-label{font-weight:500;opacity:.84;margin-inline-end:.25rem}.identity__title{flex:1 1 12rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:var(--pdx-resource-identity-title-wrap, normal);overflow-wrap:anywhere;color:var(--pdx-resource-identity-title-color, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)));font:var(--pdx-resource-identity-title-font, 600 1.125rem/1.35 var(--md-sys-typescale-title-medium-font-family, inherit))}.identity__metadata{display:flex;align-items:center;gap:.375rem .5rem;flex-wrap:wrap;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}.identity__meta{display:inline-flex;align-items:center;gap:.25rem;min-width:0;font-size:.8125rem;line-height:1.25rem}.identity__meta+.identity__meta:not(.identity__meta--chip):before{content:\"\\b7\";margin-inline-end:.25rem;color:var(--md-sys-color-outline, var(--mat-sys-outline))}.identity__meta--chip{padding:.0625rem .5rem;border-radius:999px;background:var(--md-sys-color-surface-container-high, var(--mat-sys-surface-container-high));color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}.identity__meta-label{color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));font-weight:500}.identity--compact{gap:.25rem}.identity--compact .identity__key{min-height:1.5rem;padding-inline:.5rem}.identity--compact .identity__title{font-size:1rem}@media(max-width:600px){.identity__primary{align-items:flex-start;gap:.375rem .5rem}.identity__title{flex:1 1 12rem;white-space:normal;overflow:visible}.identity__metadata{gap:.25rem .375rem}}\n"] }]
53544
55003
  }], propDecorators: { identity: [{
53545
55004
  type: Input
53546
55005
  }], emptyTitle: [{
@@ -58624,6 +60083,8 @@ class SettingsSectionTabsComponent {
58624
60083
  destroyRef = inject(DestroyRef);
58625
60084
  constructor() {
58626
60085
  afterNextRender(() => {
60086
+ if (typeof ResizeObserver === 'undefined')
60087
+ return;
58627
60088
  const observer = new ResizeObserver(entries => this.columns.set(entries[0].contentRect.width >= 280 ? 2 : 1));
58628
60089
  observer.observe(this.element.nativeElement);
58629
60090
  this.destroyRef.onDestroy(() => observer.disconnect());
@@ -65391,6 +66852,10 @@ class DynamicWidgetPageComponent {
65391
66852
  focusSizeEditor(overlay) {
65392
66853
  overlay.overlayElement.querySelector('input')?.focus({ preventScroll: true });
65393
66854
  this.sizeEditorResizeObserver?.disconnect();
66855
+ if (typeof ResizeObserver === 'undefined') {
66856
+ this.sizeEditorResizeObserver = undefined;
66857
+ return;
66858
+ }
65394
66859
  this.sizeEditorResizeObserver = new ResizeObserver(() => {
65395
66860
  if (overlay.hasAttached())
65396
66861
  overlay.updatePosition();
@@ -66157,7 +67622,7 @@ class DynamicWidgetPageComponent {
66157
67622
  }
66158
67623
  observeSouthPreview(key) {
66159
67624
  const host = this.pageCanvasHost?.nativeElement;
66160
- if (!host)
67625
+ if (!host || typeof ResizeObserver === 'undefined')
66161
67626
  return;
66162
67627
  this.sizeEditorSouthObserver = new ResizeObserver(() => {
66163
67628
  if (!this.sizeEditorSouthSignature || !this.sizeEditorOrigin())
@@ -74626,6 +76091,7 @@ class PraxisAppShellComponent {
74626
76091
  }, ...(ngDevMode ? [{ debugName: "shellText" }] : /* istanbul ignore next */ []));
74627
76092
  cdr = inject(ChangeDetectorRef);
74628
76093
  loadingOrchestrator = inject(LoadingOrchestrator, { optional: true });
76094
+ loadingRenderer = inject(PRAXIS_LOADING_RENDERER, { optional: true });
74629
76095
  orchestratorLoading = this.loadingOrchestrator
74630
76096
  ? toSignal(this.loadingOrchestrator.watch().pipe(map((list) => list.length > 0)), {
74631
76097
  initialValue: false,
@@ -74843,7 +76309,7 @@ class PraxisAppShellComponent {
74843
76309
  });
74844
76310
  }
74845
76311
  effectiveLoading = computed(() => {
74846
- return this._isAnyLoading() || this.orchestratorLoading();
76312
+ return this._isAnyLoading() || (!this.loadingRenderer && this.orchestratorLoading());
74847
76313
  }, ...(ngDevMode ? [{ debugName: "effectiveLoading" }] : /* istanbul ignore next */ []));
74848
76314
  handleEscape() {
74849
76315
  if (this.moreOpen())
@@ -77468,4 +78934,4 @@ function materializeGovernedPagePreview(value, pageId, adapters, baseContext = {
77468
78934
  * Generated bundle index. Do not edit.
77469
78935
  */
77470
78936
 
77471
- export { API_CONFIG_STORAGE_OPTIONS, API_URL, ASYNC_CONFIG_STORAGE, AllowedFileTypes, AnalyticsPresentationResolver, AnalyticsSchemaContractService, AnalyticsStatsRequestBuilderService, ApiConfigStorage, ApiEndpoint, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, BUILTIN_SHELL_PRESETS, BUILTIN_WIDGET_SHELL_PRESETS, BulkOperationClientService, BulkSyncSession, BulkSyncStateService, CANONICAL_DECISION_INSPECTOR_LENSES, CANONICAL_DECISION_STAGES, COMPONENT_METADATA_REGISTRY_I18N_CONFIG, COMPONENT_METADATA_REGISTRY_I18N_NAMESPACE, CONFIG_STORAGE, CONNECTION_STORAGE, ComponentAuthoringManifestProjectionError, ComponentKeyService, ComponentMetadataRegistry, ComponentRuntimeProfileService, CompositionRuntimeFacade, CompositionValidatorService, ConsoleLoggerSink, CrudOperationResolutionService, DECISION_INSPECTOR_I18N_CONFIG, DECISION_INSPECTOR_I18N_NAMESPACE, DEFAULT_DYNAMIC_FORM_SCHEMA_CACHE_MAX_ENTRIES, DEFAULT_DYNAMIC_FORM_SCHEMA_CACHE_TTL_MS, DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP, DEFAULT_JSON_LOGIC_OPERATORS, DEFAULT_SCHEMA_REQUEST_TIMEOUT_MS, DEFAULT_TABLE_CONFIG, DOMAIN_CATALOG_COMPONENT_CONTEXT_PACK, DOMAIN_CATALOG_CONTEXT_HINT_SCHEMA_VERSION, DYNAMIC_PAGE_AI_CAPABILITIES, DYNAMIC_PAGE_COMPONENT_CONTEXT_PACK, DYNAMIC_PAGE_CONFIG_EDITOR, DYNAMIC_PAGE_SHELL_EDITOR, DefaultLoadingRenderer, DeferredAsyncConfigStorage, DomainCatalogService, DomainKnowledgeService, DomainRuleService, DynamicFormService, DynamicWidgetLoaderDirective, DynamicWidgetPageComponent, EDITORIAL_ALLOWED_CONTENT_FORMATS, EDITORIAL_COMPLIANCE_PRESETS, EDITORIAL_EXTERNAL_LINK_REL, EDITORIAL_FORM_TEMPLATE_CATALOG, EDITORIAL_HTML_ENABLED, EDITORIAL_MARKDOWN_IMAGES_ENABLED, EDITORIAL_SOLUTION_CATALOG, EDITORIAL_SOLUTION_PRESETS, EDITORIAL_THEME_PRESETS, EDITORIAL_WIDGET_CONVENTION_INPUTS, EDITORIAL_WIDGET_TAG, EFFECTIVE_UI_LAYOUT_COMPOSITION_SCHEMA_VERSION, EMPLOYEE_ONBOARDING_EDITORIAL_SOLUTION, EMPLOYEE_ONBOARDING_EDITORIAL_TEMPLATE, EMPLOYEE_ONBOARDING_GUIDED_EDITORIAL_SOLUTION, EMPLOYEE_ONBOARDING_GUIDED_EDITORIAL_TEMPLATE, EVENT_REGISTRATION_EDITORIAL_SOLUTION, EVENT_REGISTRATION_EDITORIAL_TEMPLATE, EffectiveUiLayoutContractError, EffectiveUiLayoutHttpError, EffectiveUiLayoutService, EmptyStateCardComponent, EnterpriseRuntimeContextObsoleteError, EnterpriseRuntimeContextService, ErrorMessageService, FIELD_METADATA_CAPABILITIES, FIELD_SELECTOR_REGISTRY_BASE, FIELD_SELECTOR_REGISTRY_DISABLE_DEFAULTS, FIELD_SELECTOR_REGISTRY_OVERRIDES, FORM_HOOKS, FORM_HOOKS_PRESETS, FORM_HOOKS_WHITELIST, FORM_HOOK_RESOLVERS, FieldControlType, FieldDataType, FieldSelectorRegistry, FormHooksRegistry, GLOBAL_ACTION_CATALOG, GLOBAL_ACTION_HANDLERS, GLOBAL_ACTION_UI_SCHEMAS, GLOBAL_ANALYTICS_SERVICE, GLOBAL_API_CLIENT, GLOBAL_CONFIG, GLOBAL_DIALOG_SERVICE, GLOBAL_ROUTE_GUARD_RESOLVER, GLOBAL_SURFACE_SERVICE, GLOBAL_TOAST_SERVICE, GOVERNED_COLOR_PALETTE_OPTIONS, GOVERNED_PAGE_ADMITTED_WIDGET_IDS, GOVERNED_PAGE_DEFAULT_ALLOWED_ICONS, GenericCrudService, GlobalActionService, GlobalConfigService, GovernedColorPaletteService, INLINE_FILTER_ALIAS_TOKENS, INLINE_FILTER_CONTROL_TYPES, INLINE_FILTER_CONTROL_TYPE_SET, INLINE_FILTER_CONTROL_TYPE_VALUES, INLINE_FILTER_TOKEN_TO_BASE_CONTROL_TYPE, INLINE_FILTER_TOKEN_TO_CONTROL_TYPE, IconPickerService, IconPosition, IconSize, LOGGER_LEVEL_BY_ENV, LOGGER_LEVEL_PRIORITY, LoadingOrchestrator, LocalConnectionStorage, LocalStorageAsyncAdapter, LocalStorageCacheAdapter, LocalStorageConfigService, LoggerService, LoggerThrottleTracker, LoggerWarnOnceTracker, MemoryCacheAdapter, NestedPortCatalogService, NestedWidgetConfigAccessor, NumericFormat, OVERLAY_DECIDER_DEBUG, OVERLAY_DECISION_MATRIX, ObservabilityDashboardService, OverlayDeciderService, PRAXIS_ACTION_CONTROL_DEFAULTS, PRAXIS_ACTION_CONTROL_VARS, PRAXIS_BULK_PROPOSAL_BRIDGE, PRAXIS_COLLECTION_EXPORT_HTTP_OPTIONS, PRAXIS_COLLECTION_EXPORT_PROVIDER, PRAXIS_COLLECTION_SEARCH_DEFAULTS, PRAXIS_COLLECTION_SEARCH_VARS, PRAXIS_CONTEXT_DIMENSIONS, PRAXIS_CORPORATE_SENSITIVE_KEYS, PRAXIS_DECISION_INSPECTOR_CONFIG, PRAXIS_DECISION_INSPECTOR_SURFACE, PRAXIS_DEFAULT_EXPORT_SECURITY_POLICY, PRAXIS_DEFAULT_OBSERVABILITY_ALERT_RULES, PRAXIS_DYNAMIC_PAGE_COMPONENT_METADATA, PRAXIS_EFFECTIVE_UI_LAYOUT_OPTIONS, PRAXIS_ENTERPRISE_RUNTIME_CONTEXT_OPTIONS, PRAXIS_ENTERPRISE_RUNTIME_CONTEXT_READY, PRAXIS_EXPORT_FORMULA_PREFIXES, PRAXIS_EXPORT_SECURITY_POLICY, PRAXIS_FOOTER_LINKS_METADATA, PRAXIS_GLOBAL_ACTION_CATALOG, PRAXIS_GLOBAL_CONFIG_BOOTSTRAP_OPTIONS, PRAXIS_GLOBAL_CONFIG_BOOTSTRAP_READY, PRAXIS_GLOBAL_CONFIG_TENANT_RESOLVER, PRAXIS_HERO_BANNER_METADATA, PRAXIS_I18N_CONFIG, PRAXIS_I18N_TRANSLATOR, PRAXIS_JSON_LOGIC_OPERATORS, PRAXIS_LAYER_SCALE_DEFAULTS, PRAXIS_LAYER_SCALE_VARS, PRAXIS_LEGAL_NOTICE_METADATA, PRAXIS_LOADING_CTX, PRAXIS_LOADING_RENDERER, PRAXIS_LOGGER_CONFIG, PRAXIS_LOGGER_SINKS, PRAXIS_OBSERVABILITY_DASHBOARD_OPTIONS, PRAXIS_OPERATIONAL_ASSISTANT_LAUNCHER, PRAXIS_QUERY_FILTER_EXPRESSION_SCHEMA_VERSION, PRAXIS_QUICK_VIEW_BODY_RENDERER, PRAXIS_QUICK_VIEW_PRESENTER, PRAXIS_RELATED_RESOURCE_OUTLET_AUTHORING_MANIFEST, PRAXIS_RELATED_RESOURCE_OUTLET_COMPONENT_METADATA, PRAXIS_RELATED_RESOURCE_OUTLET_PORTS, PRAXIS_RICH_TEXT_BLOCK_METADATA, PRAXIS_RUNTIME_FORM_VALUE_PROPOSAL_SCHEMA_VERSION, PRAXIS_RUNTIME_FORM_VALUE_RECEIPT_SCHEMA_VERSION, PRAXIS_SESSION_TRANSPORT_OPTIONS, PRAXIS_TABLE_DETAIL_INLINE_NODE_RESOLVERS, PRAXIS_TABLE_DETAIL_INLINE_RENDERERS, PRAXIS_TABLE_DETAIL_RESOURCE_RESOLVER, PRAXIS_TELEMETRY_TRANSPORT, PRAXIS_TENANT_REALM, PRAXIS_TENANT_REALM_HEADER, PRAXIS_THEME_OPTIONS, PRAXIS_THEME_SURFACE_DEFAULTS, PRAXIS_THEME_SURFACE_VARS, PRAXIS_USER_CONTEXT_SUMMARY_METADATA, PRAXIS_WORKSPACE_THEME_IDS, PRIVACY_CONSENT_EDITORIAL_SOLUTION, PRIVACY_CONSENT_EDITORIAL_TEMPLATE, PraxisAppShellComponent, PraxisBulkClientService, PraxisCacheInvalidatorService, PraxisCollectionExportService, PraxisContextFilterProjectorService, PraxisCore, PraxisCustomizationModeService, PraxisDecisionInspectorService, PraxisFooterLinksComponent, PraxisGlobalErrorHandler, PraxisHeroBannerComponent, PraxisHttpCollectionExportProvider, PraxisI18nService, PraxisIconButtonComponent, PraxisIconDirective, PraxisIconPickerComponent, PraxisJsonLogicError, PraxisJsonLogicService, PraxisKeepAliveTabDirective, PraxisLayerScaleStyleService, PraxisLegalNoticeComponent, PraxisLoadingInterceptor, PraxisMicroTooltipOverlayService, PraxisOperationalAssistantLaunchService, PraxisQuickViewTriggerDirective, PraxisRelatedResourceOutletComponent, PraxisRelatedResourceOutletConfigEditorComponent, PraxisResourceIdentityComponent, PraxisRichTextBlockComponent, PraxisRuntimeComponentObservationRegistryService, PraxisRuntimeFormValueSessionJournal, PraxisSessionTransportService, PraxisSurfaceHostComponent, PraxisThemeService, PraxisUserContextSummaryComponent, PraxisWidgetEventBus, PraxisWorkspaceQueryContextService, QUICK_VIEW_EMPLOYEE_BINDING_FIXTURE, QUICK_VIEW_EMPLOYEE_RECORD_FIXTURE, QUICK_VIEW_EMPLOYEE_SCHEMA_FIXTURE, QUICK_VIEW_EMPLOYEE_SURFACES_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_BINDING_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_RECORD_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_SCHEMA_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_SURFACES_FIXTURE, RESOURCE_DISCOVERY_I18N_CONFIG, RESOURCE_DISCOVERY_I18N_NAMESPACE, RULE_PROPERTY_SCHEMA, RelatedResourceSurfaceResolverService, RemoteConfigStorage, ResourceActionOpenAdapterService, ResourceDiscoveryService, ResourceQuickConnectComponent, ResourceQuickViewService, ResourceRecordOpenError, ResourceRecordOpenService, ResourceSurfaceOpenAdapterService, SCHEMA_METADATA_CLIENT_OPTIONS, SCHEMA_VIEWER_CONTEXT, SETTINGS_EDITOR_SECTIONS_HOSTED, SETTINGS_PANEL_BRIDGE, SETTINGS_PANEL_DATA, STEPPER_CONFIG_EDITOR, SURFACE_DRAWER_BRIDGE, SURFACE_DRAWER_CONTENT_DATA, SURFACE_DRAWER_REF, SURFACE_NAVIGATION_I18N_CONFIG, SURFACE_NAVIGATION_I18N_NAMESPACE, SURFACE_OPEN_I18N_CONFIG, SURFACE_OPEN_I18N_NAMESPACE, SURFACE_OPEN_PRESETS, SafeExpressionEvaluator, SchemaMetadataClient, SchemaNormalizerService, SchemaViewerComponent, SettingsSectionTabsComponent, SurfaceBindingRuntimeService, SurfaceNavigationError, SurfaceOpenActionEditorComponent, SurfaceOpenMaterializerService, SurfaceOutletRegistryService, TABLE_CONFIG_EDITOR, TableConfigService, TelemetryLoggerSink, TelemetryService, UiLayoutLifecycleContractError, UiLayoutLifecycleHttpError, UiLayoutLifecycleService, ValidationPattern, WidgetPageCompositionFactory, WidgetPageDataSourceRuntimeService, WidgetPageStateRuntimeService, WidgetShellComponent, applyDeclarativeValuePipe, applyLocalCustomizations$2 as applyLocalCustomizations, applyLocalCustomizations$1 as applyLocalFormCustomizations, applyRuntimeFormValueProposal, areRuntimeValuesEqual, assertPraxisCollectionExportArtifact, assertPraxisRuntimeComponentObservationSerializable, attachAnalyticsSuppressionMetadata, buildAngularValidators, buildApiUrl, buildBaseColumnFromDef, buildBaseFormField, buildFormConfigFromEditorialTemplate, buildGovernedPageTarget, buildHeaders, buildPageKey, buildPraxisActionControlCss, buildPraxisCollectionSearchCss, buildPraxisEffectDistinctKey, buildPraxisLayerScaleCss, buildPraxisTenantRealmHeaders, buildPraxisThemeSurfaceCss, buildPublishedPageIdentity, buildRulesStudioDeepLink, buildSchemaId, buildSchemaIdStorageKeySegment, buildValidatorsFromValidatorOptions, calibrateFieldMetadataFromSemantics, canOrganizeFormLayoutBySemantics, cancelIfCpfInvalidHook, canonicalJsonSha256, canonicalJsonStringify, clampRange, classifyEntityLookupResult, cloneBoundedUiLayoutJsonDocument, clonePraxisRuntimeComponentObservation, cloneRuntimeValue, cloneTableConfig, cloneUiLayoutJsonDocument, cnpjAlphaValidator, collapseWhitespace, composeHeadersWithVersion, computePraxisStackedBarSegmentWidthPct, conditionalAsyncValidator, containsEphemeralQuickViewRuntimeValue, convertFormLayoutToConfig, copyPageAuthoringDocument, createCorporateLoggerConfig, createCorporateObservabilityOptions, createCpfCnpjValidator, createDefaultFormConfig, createDefaultTableConfig, createDynamicRecord, createEmptyFormConfig, createEmptyNavigationGroupsAuthoringDocument, createEmptyRichContentDocument, createFieldLayoutItem, createPersistedPage, customAsyncValidatorFn, customValidatorFn, debounceAsyncValidator, decodeNavigationGroupsAuthoringDocument, decodePageAuthoringDocument, deepMerge, derivePageChildRuntimeId, domainKnowledgeTimelineToRichContentDocument, domainRuleTimelineToRichContentDocument, encodeNavigationGroupsAuthoringDocument, encodePageAuthoringDocument, enrichGovernanceItemsWithFieldSchemas, ensureIds, ensureNoConflictsHookFactory, ensurePageIds, escapePraxisExportCell, evaluateFieldAccess, evaluateGovernanceItemsFieldAccess, extractAnalyticsSuppressionMetadata, extractDomainCatalogRuleCatalog, extractNormalizedError, extractRecordId, extractRuleViolationDiagnostics, fetchWithETag, fileTypeValidator, fillUndefined, findBuiltinWidgetShellPreset, formIdentityIssues, formatPraxisStackedBarPercentage, formatPraxisWaterfallSignedValue, generateBulkIdempotencyKey, generateId, getDefaultFormHints, getEditorialCompliancePresetById, getEditorialFormTemplateById, getEditorialFormTemplateCatalog, getEditorialSolutionById, getEditorialSolutionCatalog, getEditorialSolutionPresetById, getEditorialThemePresetById, getEssentialConfig, getFieldMetadataCapabilities, getFormColumnFieldNames, getFormLayoutFieldNames, getGlobalActionCatalog, getGlobalActionPayloadActualType, getGlobalActionPayloadTypeIssue, getGlobalActionProviderEvidence, getGlobalActionUiSchema, getMissingGlobalActionPayloadKeys, getPraxisMicroToneGradientStops, getPraxisStackedBarPaintStyle, getPraxisTableCellVisualizationConstraint, getPraxisTableCellVisualizationGuidance, getReferencedFieldMetadata, getRequiredGlobalActionPayloadKeys, getTextTransformer, getWidgetShellActionIdError, hasMeaningfulGlobalActionPayloadValue, hasPraxisCollectionExportArtifact, hasSemanticFieldCalibrationDiff, humanizeCatalogFieldName, inferDomainSemanticHexColor, inferDomainSemanticIcon, inferDomainSemanticTone, inferSemanticFieldControlType, inferSemanticFieldGroup, inferSemanticFieldWidth, instanceKeyFor, interpolatePraxisTranslation, isAllowedEditorialContentFormat, isAllowedEditorialHref, isBulkExecutionTerminal, isCanonicalDecisionStage, isCssTextTransform, isDecisionInspectorLensId, isDomainRuleSnapshotProblemResponse, isDynamicDataRecord, isEditorialComponentMeta, isEmptyRuntimeFormFieldValue, isEntityLookupMultiplePayloadMode, isEntityLookupPayloadMode, isEntityLookupPayloadModeCompatible, isEntityLookupResultSelectable, isEntityLookupSinglePayloadMode, isFormLayoutItem, isGlobalActionProviderOperational, isGlobalActionRef, isGovernedPageUuid, isInlineFilterControlType, isLookupDialogSize, isLookupFilterFieldType, isLookupFilterOperator, isMaskedOrRedactedRuntimeValue, isPraxisI18nMessageDescriptor, isPraxisPresentationVisualizationTableSafe, isPraxisRuntimeGlobalActionEffect, isPraxisWorkspaceThemeId, isProgrammaticDateRangePreset, isRangeValidForFilter, isRequiredGlobalActionParamPayloadMissing, isRequiredGlobalActionPayloadMissing, isResourceQuickViewAnchorValid, isStaticDateRangePreset, isSurfaceNavigationError, isTableConfigV2, isUnresolvedTemplateToken, isValidFormConfig, isValidTableConfig, legacyCnpjValidator, legacyCpfValidator, logOnErrorHook, mapCatalogFieldsToMetadata, mapFieldDefinitionToMetadata, mapFieldDefinitionsToMetadata, markGlobalActionProviderOperational, matchFieldValidator, materializeFormLayoutFromMetadata, materializeGovernedPagePreview, materializeGovernedPaletteColors, materializeGovernedPaletteEntries, materializeResourceIdentity, maxFileSizeValidator, mergeFieldMetadata, mergePraxisI18nConfigs, mergeTableConfigs, migrateFormLayoutRule, migrateLegacyCompositionLink, migrateLegacyCompositionLinks, minWordsValidator, nestedPortPathIdentity, normalizeCardMediaAspectRatio, normalizeColumnRendererQuickView, normalizeControlTypeKey, normalizeControlTypeToken, normalizeEditorialLink, normalizeEnd, normalizeFieldAccessMetadata, normalizeFieldConstraints, normalizeFieldPresentation, normalizeFormConfig, normalizeFormLayoutItems, normalizeFormMetadata, normalizeGlobalActionRef$1 as normalizeGlobalActionRef, normalizeLayoutPolicy, normalizeLookupFilterRequest, normalizePath, normalizePraxisDataQueryContext, normalizePraxisEffectPolicy, normalizePraxisHexColor, normalizePraxisIconLigature, normalizePraxisPresentationVisualization, normalizePraxisQueryFilterExpression, normalizePraxisQueryFilterNode, normalizeQuickFilterCriteria, normalizeQuickFilterExpression, normalizeQuickFilterTone, normalizeReactiveDeterminations, normalizeResourceAvailabilityReasonCode, normalizeResourceIdentityContract, normalizeResourceQuickFilterItem, normalizeResourceQuickFilterList, normalizeResourceQuickViewBinding, normalizeResourceRecordOpenReference, normalizeResourceScopeId, normalizeScalarArrayValue, normalizeStart, normalizeSurfaceOperationContext, normalizeUnknownError, normalizeWidgetEventPath, notifySuccessHook, organizeFormLayoutBySemantics, parseJsonResponseOrEmpty, praxisLoadingInterceptorFn, praxisSessionCredentialsInterceptor, prefillFromContextHook, prepareCanvasArrangement, previewRuntimeFormValueProposal, projectComponentAuthoringManifest, projectGroupedCommandPartialRows, provideDefaultFormHooks, provideFieldSelectorRegistryBase, provideFieldSelectorRegistryOverride, provideFieldSelectorRegistryRuntime, provideFormHookPresets, provideFormHooks, provideGlobalActionCatalog, provideGlobalActionHandler, provideGlobalConfig, provideGlobalConfigReady, provideGlobalConfigSeed, provideGlobalConfigTenant, provideHookResolvers, provideHookWhitelist, provideOverlayDecisionMatrix, providePraxisAnalyticsGlobalActions, providePraxisCollectionExportProvider, providePraxisDynamicPageMetadata, providePraxisEnterpriseRuntimeContext, providePraxisFooterLinksMetadata, providePraxisGlobalActionCatalog, providePraxisGlobalActions, providePraxisGlobalConfigBootstrap, providePraxisHeroBannerMetadata, providePraxisHttpCollectionExportProvider, providePraxisHttpLoading, providePraxisI18n, providePraxisI18nConfig, providePraxisI18nTranslator, providePraxisIconDefaults, providePraxisJsonLogicOperator, providePraxisJsonLogicOperatorOverride, providePraxisLegalNoticeMetadata, providePraxisLoadingDefaults, providePraxisLogging, providePraxisRelatedResourceOutletMetadata, providePraxisRichTextBlockMetadata, providePraxisSessionTransport, providePraxisTelemetry, providePraxisTenantRealm, providePraxisTheme, providePraxisToastGlobalActions, providePraxisUserContextSummaryMetadata, provideRemoteGlobalConfig, readAnalyticsSuppressionMetadata, readPraxisExportValue, readStrongResourceEtag, reconcileFieldQuickViewBinding, reconcileFilterConfig, reconcileFormConfig, reconcileTableConfig, registerPraxisRuntimeComponentObservation, removeDiacritics, renderPraxisPresentationVisualizationHtml, reportTelemetryHookFactory, requiredCheckedValidator, requiredPresenceValidator, resolveBuiltinPresets, resolveBuiltinWidgetShellAppearance, resolveColumnTypeFromFieldDefinition, resolveControlTypeAlias, resolveDataField, resolveDateRangeShortcutPreset, resolveDateRangeShortcutPresets, resolveDefaultValuePresentationFormat, resolveEntityLookupPayloadMode, resolveFieldPresentation, resolveFieldQuickViewBinding, resolveGroupedCommandPartialRowSpans, resolveHidden, resolveInlineFilterControlType, resolveInlineFilterControlTypeToBaseControlType, resolveLoggerConfig, resolveObservabilityOptions, resolveOffset, resolveOrder, resolvePraxisCollectionExportItems, resolvePraxisExportFields, resolvePraxisExportScope, resolvePraxisFilterCriteria, resolvePraxisI18nDocument, resolvePraxisMicroVisualizationTone, resolvePraxisMicroWaterfallSteps, resolvePraxisStackedBarAriaLabel, resolvePraxisStackedBarSegments, resolvePraxisStackedBarTotal, resolvePraxisTenantRealmFromLocation, resolveQuickViewAnchorKey, resolveResourceAvailabilityReasonKey, resolveResourceIdentityContract, resolveResourceQuickViewTarget, resolveSpan, resolveTextMaskFormat, resolveTextMaskFormatFromFieldDefinition, resolveValuePresentation, resolveValuePresentationLocale, resolveWidgetPageLayoutPreset, samePageSourceReference, scopeKeyByTenantRealm, serializeEntityLookupValueForPayload, serializeOptionSourceFilterRequest, serializePraxisCollectionToCsv, serializePraxisCollectionToExcel, serializePraxisCollectionToJson, slugify, staticDateRangePresetToPreset, stripDraftClearedValues, stripMasksHook, supportsConfigDocuments, supportsImplicitValuePresentation, syncWithServerMetadata, synthesizeScopeBarQuickFilterItems, textSha256, toCamel, toCapitalize, toKebab, toPascal, toSentenceCase, toSnake, toTitleCase, translateDecisionInspector, translateResourceAvailabilityReason, translateResourceDiscoveryText, translateSurfaceNavigationRejected, translateSurfaceOpenFailed, translateUnavailableWorkflowMessage, trim, uiLayoutJsonIdentity, undoRuntimeFormValueApply, uniqueAsyncValidator, upsertNavigationGroupEntry, upsertPageNavigationBinding, urlValidator, validateCanvasArrangement, validateGlobalActionRef, validateGlobalActionRefs, validatePageAuthoringDocument, validatePageSourceReference, validateResourceQuickViewBinding, validateRuntimeFormValueTargetIdentity, validateRuntimeNavigationMenuNodes, withFormConfigSections, withMessage, withPraxisHttpLoading };
78937
+ export { API_CONFIG_STORAGE_OPTIONS, API_URL, ASYNC_CONFIG_STORAGE, AllowedFileTypes, AnalyticsPresentationResolver, AnalyticsSchemaContractService, AnalyticsStatsRequestBuilderService, ApiConfigStorage, ApiEndpoint, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, BUILTIN_SHELL_PRESETS, BUILTIN_WIDGET_SHELL_PRESETS, BulkOperationClientService, BulkSyncSession, BulkSyncStateService, CANONICAL_DECISION_INSPECTOR_LENSES, CANONICAL_DECISION_STAGES, COMPONENT_METADATA_REGISTRY_I18N_CONFIG, COMPONENT_METADATA_REGISTRY_I18N_NAMESPACE, CONFIG_STORAGE, CONNECTION_STORAGE, ComponentAuthoringManifestProjectionError, ComponentKeyService, ComponentMetadataRegistry, ComponentRuntimeProfileService, CompositionRuntimeFacade, CompositionValidatorService, ConsoleLoggerSink, CrudOperationResolutionService, DECISION_INSPECTOR_I18N_CONFIG, DECISION_INSPECTOR_I18N_NAMESPACE, DEFAULT_DYNAMIC_FORM_SCHEMA_CACHE_MAX_ENTRIES, DEFAULT_DYNAMIC_FORM_SCHEMA_CACHE_TTL_MS, DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP, DEFAULT_JSON_LOGIC_OPERATORS, DEFAULT_SCHEMA_REQUEST_TIMEOUT_MS, DEFAULT_TABLE_CONFIG, DOMAIN_CATALOG_COMPONENT_CONTEXT_PACK, DOMAIN_CATALOG_CONTEXT_HINT_SCHEMA_VERSION, DOMAIN_RULE_DOCUMENTATION_KEY, DYNAMIC_PAGE_AI_CAPABILITIES, DYNAMIC_PAGE_COMPONENT_CONTEXT_PACK, DYNAMIC_PAGE_CONFIG_EDITOR, DYNAMIC_PAGE_SHELL_EDITOR, DefaultLoadingRenderer, DeferredAsyncConfigStorage, DomainCatalogService, DomainKnowledgeService, DomainRuleService, DynamicFormService, DynamicWidgetLoaderDirective, DynamicWidgetPageComponent, EDITORIAL_ALLOWED_CONTENT_FORMATS, EDITORIAL_COMPLIANCE_PRESETS, EDITORIAL_EXTERNAL_LINK_REL, EDITORIAL_FORM_TEMPLATE_CATALOG, EDITORIAL_HTML_ENABLED, EDITORIAL_MARKDOWN_IMAGES_ENABLED, EDITORIAL_SOLUTION_CATALOG, EDITORIAL_SOLUTION_PRESETS, EDITORIAL_THEME_PRESETS, EDITORIAL_WIDGET_CONVENTION_INPUTS, EDITORIAL_WIDGET_TAG, EFFECTIVE_UI_LAYOUT_COMPOSITION_SCHEMA_VERSION, EMPLOYEE_ONBOARDING_EDITORIAL_SOLUTION, EMPLOYEE_ONBOARDING_EDITORIAL_TEMPLATE, EMPLOYEE_ONBOARDING_GUIDED_EDITORIAL_SOLUTION, EMPLOYEE_ONBOARDING_GUIDED_EDITORIAL_TEMPLATE, EVENT_REGISTRATION_EDITORIAL_SOLUTION, EVENT_REGISTRATION_EDITORIAL_TEMPLATE, EffectiveUiLayoutContractError, EffectiveUiLayoutHttpError, EffectiveUiLayoutService, EmptyStateCardComponent, EnterpriseRuntimeContextObsoleteError, EnterpriseRuntimeContextService, ErrorMessageService, FIELD_METADATA_CAPABILITIES, FIELD_SELECTOR_REGISTRY_BASE, FIELD_SELECTOR_REGISTRY_DISABLE_DEFAULTS, FIELD_SELECTOR_REGISTRY_OVERRIDES, FORM_HOOKS, FORM_HOOKS_PRESETS, FORM_HOOKS_WHITELIST, FORM_HOOK_RESOLVERS, FieldControlType, FieldDataType, FieldSelectorRegistry, FormHooksRegistry, GLOBAL_ACTION_CATALOG, GLOBAL_ACTION_HANDLERS, GLOBAL_ACTION_UI_SCHEMAS, GLOBAL_ANALYTICS_SERVICE, GLOBAL_API_CLIENT, GLOBAL_CONFIG, GLOBAL_DIALOG_SERVICE, GLOBAL_ROUTE_GUARD_RESOLVER, GLOBAL_SURFACE_SERVICE, GLOBAL_TOAST_SERVICE, GOVERNED_COLOR_PALETTE_OPTIONS, GOVERNED_PAGE_ADMITTED_WIDGET_IDS, GOVERNED_PAGE_DEFAULT_ALLOWED_ICONS, GenericCrudService, GlobalActionService, GlobalConfigService, GovernedColorPaletteService, INLINE_FILTER_ALIAS_TOKENS, INLINE_FILTER_CONTROL_TYPES, INLINE_FILTER_CONTROL_TYPE_SET, INLINE_FILTER_CONTROL_TYPE_VALUES, INLINE_FILTER_TOKEN_TO_BASE_CONTROL_TYPE, INLINE_FILTER_TOKEN_TO_CONTROL_TYPE, IconPickerService, IconPosition, IconSize, LOGGER_LEVEL_BY_ENV, LOGGER_LEVEL_PRIORITY, LoadingOrchestrator, LocalConnectionStorage, LocalStorageAsyncAdapter, LocalStorageCacheAdapter, LocalStorageConfigService, LoggerService, LoggerThrottleTracker, LoggerWarnOnceTracker, MemoryCacheAdapter, NestedPortCatalogService, NestedWidgetConfigAccessor, NumericFormat, OVERLAY_DECIDER_DEBUG, OVERLAY_DECISION_MATRIX, ObservabilityDashboardService, OverlayDeciderService, PRAXIS_ACTION_CONTROL_DEFAULTS, PRAXIS_ACTION_CONTROL_VARS, PRAXIS_BULK_PROPOSAL_BRIDGE, PRAXIS_COLLECTION_EXPORT_HTTP_OPTIONS, PRAXIS_COLLECTION_EXPORT_PROVIDER, PRAXIS_COLLECTION_SEARCH_DEFAULTS, PRAXIS_COLLECTION_SEARCH_VARS, PRAXIS_CONTEXT_DIMENSIONS, PRAXIS_CORPORATE_SENSITIVE_KEYS, PRAXIS_DECISION_INSPECTOR_CONFIG, PRAXIS_DECISION_INSPECTOR_SURFACE, PRAXIS_DEFAULT_EXPORT_SECURITY_POLICY, PRAXIS_DEFAULT_OBSERVABILITY_ALERT_RULES, PRAXIS_DYNAMIC_PAGE_COMPONENT_METADATA, PRAXIS_EFFECTIVE_UI_LAYOUT_OPTIONS, PRAXIS_ENTERPRISE_RUNTIME_CONTEXT_OPTIONS, PRAXIS_ENTERPRISE_RUNTIME_CONTEXT_READY, PRAXIS_EXPORT_FORMULA_PREFIXES, PRAXIS_EXPORT_SECURITY_POLICY, PRAXIS_FOOTER_LINKS_METADATA, PRAXIS_GLOBAL_ACTION_CATALOG, PRAXIS_GLOBAL_CONFIG_BOOTSTRAP_OPTIONS, PRAXIS_GLOBAL_CONFIG_BOOTSTRAP_READY, PRAXIS_GLOBAL_CONFIG_TENANT_RESOLVER, PRAXIS_HERO_BANNER_METADATA, PRAXIS_I18N_CONFIG, PRAXIS_I18N_TRANSLATOR, PRAXIS_JSON_LOGIC_OPERATORS, PRAXIS_LAYER_SCALE_DEFAULTS, PRAXIS_LAYER_SCALE_VARS, PRAXIS_LEGAL_NOTICE_METADATA, PRAXIS_LOADING_CTX, PRAXIS_LOADING_RENDERER, PRAXIS_LOGGER_CONFIG, PRAXIS_LOGGER_SINKS, PRAXIS_OBSERVABILITY_DASHBOARD_OPTIONS, PRAXIS_OPERATIONAL_ASSISTANT_LAUNCHER, PRAXIS_QUERY_FILTER_EXPRESSION_SCHEMA_VERSION, PRAXIS_QUICK_VIEW_BODY_RENDERER, PRAXIS_QUICK_VIEW_PRESENTER, PRAXIS_RELATED_RESOURCE_OUTLET_AUTHORING_MANIFEST, PRAXIS_RELATED_RESOURCE_OUTLET_COMPONENT_METADATA, PRAXIS_RELATED_RESOURCE_OUTLET_PORTS, PRAXIS_RICH_TEXT_BLOCK_METADATA, PRAXIS_RUNTIME_FORM_VALUE_PROPOSAL_SCHEMA_VERSION, PRAXIS_RUNTIME_FORM_VALUE_RECEIPT_SCHEMA_VERSION, PRAXIS_SESSION_TRANSPORT_OPTIONS, PRAXIS_TABLE_DETAIL_INLINE_NODE_RESOLVERS, PRAXIS_TABLE_DETAIL_INLINE_RENDERERS, PRAXIS_TABLE_DETAIL_RESOURCE_RESOLVER, PRAXIS_TELEMETRY_TRANSPORT, PRAXIS_TENANT_REALM, PRAXIS_TENANT_REALM_HEADER, PRAXIS_THEME_OPTIONS, PRAXIS_THEME_SURFACE_DEFAULTS, PRAXIS_THEME_SURFACE_VARS, PRAXIS_USER_CONTEXT_SUMMARY_METADATA, PRAXIS_WORKSPACE_THEME_IDS, PRIVACY_CONSENT_EDITORIAL_SOLUTION, PRIVACY_CONSENT_EDITORIAL_TEMPLATE, PraxisAppShellComponent, PraxisBulkClientService, PraxisCacheInvalidatorService, PraxisCollectionExportService, PraxisContextFilterProjectorService, PraxisCore, PraxisCustomizationModeService, PraxisDecisionInspectorService, PraxisFooterLinksComponent, PraxisGlobalErrorHandler, PraxisHeroBannerComponent, PraxisHttpCollectionExportProvider, PraxisI18nService, PraxisIconButtonComponent, PraxisIconDirective, PraxisIconPickerComponent, PraxisJsonLogicError, PraxisJsonLogicService, PraxisKeepAliveTabDirective, PraxisLayerScaleStyleService, PraxisLegalNoticeComponent, PraxisLoadingInterceptor, PraxisMicroTooltipOverlayService, PraxisOperationalAssistantLaunchService, PraxisQuickViewTriggerDirective, PraxisRelatedResourceOutletComponent, PraxisRelatedResourceOutletConfigEditorComponent, PraxisResourceIdentityComponent, PraxisRichTextBlockComponent, PraxisRuntimeComponentObservationRegistryService, PraxisRuntimeFormValueSessionJournal, PraxisSessionTransportService, PraxisSurfaceHostComponent, PraxisThemeService, PraxisUserContextSummaryComponent, PraxisWidgetEventBus, PraxisWorkspaceQueryContextService, QUICK_VIEW_EMPLOYEE_BINDING_FIXTURE, QUICK_VIEW_EMPLOYEE_RECORD_FIXTURE, QUICK_VIEW_EMPLOYEE_SCHEMA_FIXTURE, QUICK_VIEW_EMPLOYEE_SURFACES_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_BINDING_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_RECORD_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_SCHEMA_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_SURFACES_FIXTURE, RESOURCE_DISCOVERY_I18N_CONFIG, RESOURCE_DISCOVERY_I18N_NAMESPACE, RULE_PROPERTY_SCHEMA, RelatedResourceSurfaceResolverService, RemoteConfigStorage, ResourceActionOpenAdapterService, ResourceDiscoveryService, ResourceQuickConnectComponent, ResourceQuickViewService, ResourceRecordOpenError, ResourceRecordOpenService, ResourceSurfaceOpenAdapterService, SCHEMA_METADATA_CLIENT_OPTIONS, SCHEMA_VIEWER_CONTEXT, SETTINGS_EDITOR_SECTIONS_HOSTED, SETTINGS_PANEL_BRIDGE, SETTINGS_PANEL_DATA, STEPPER_CONFIG_EDITOR, SURFACE_DRAWER_BRIDGE, SURFACE_DRAWER_CONTENT_DATA, SURFACE_DRAWER_REF, SURFACE_NAVIGATION_I18N_CONFIG, SURFACE_NAVIGATION_I18N_NAMESPACE, SURFACE_OPEN_I18N_CONFIG, SURFACE_OPEN_I18N_NAMESPACE, SURFACE_OPEN_PRESETS, SafeExpressionEvaluator, SchemaMetadataClient, SchemaNormalizerService, SchemaViewerComponent, SettingsSectionTabsComponent, SurfaceBindingRuntimeService, SurfaceNavigationError, SurfaceOpenActionEditorComponent, SurfaceOpenMaterializerService, SurfaceOutletRegistryService, TABLE_CONFIG_EDITOR, TableConfigService, TelemetryLoggerSink, TelemetryService, UiLayoutLifecycleContractError, UiLayoutLifecycleHttpError, UiLayoutLifecycleService, ValidationPattern, WidgetPageCompositionFactory, WidgetPageDataSourceRuntimeService, WidgetPageStateRuntimeService, WidgetShellComponent, applyDeclarativeValuePipe, applyLocalCustomizations$2 as applyLocalCustomizations, applyLocalCustomizations$1 as applyLocalFormCustomizations, applyRuntimeFormValueProposal, areRuntimeValuesEqual, assertPraxisCollectionExportArtifact, assertPraxisRuntimeComponentObservationSerializable, attachAnalyticsSuppressionMetadata, buildAngularValidators, buildApiUrl, buildBaseColumnFromDef, buildBaseFormField, buildFormConfigFromEditorialTemplate, buildGovernedPageTarget, buildHeaders, buildPageKey, buildPraxisActionControlCss, buildPraxisCollectionSearchCss, buildPraxisEffectDistinctKey, buildPraxisLayerScaleCss, buildPraxisTenantRealmHeaders, buildPraxisThemeSurfaceCss, buildPublishedPageIdentity, buildRulesStudioDeepLink, buildSchemaId, buildSchemaIdStorageKeySegment, buildValidatorsFromValidatorOptions, calibrateFieldMetadataFromSemantics, canOrganizeFormLayoutBySemantics, cancelIfCpfInvalidHook, canonicalJsonSha256, canonicalJsonStringify, clampRange, classifyEntityLookupResult, cloneBoundedUiLayoutJsonDocument, clonePraxisRuntimeComponentObservation, cloneRuntimeValue, cloneTableConfig, cloneUiLayoutJsonDocument, cnpjAlphaValidator, collapseWhitespace, composeHeadersWithVersion, computePraxisStackedBarSegmentWidthPct, conditionalAsyncValidator, containsEphemeralQuickViewRuntimeValue, convertFormLayoutToConfig, copyPageAuthoringDocument, createCorporateLoggerConfig, createCorporateObservabilityOptions, createCpfCnpjValidator, createDefaultFormConfig, createDefaultTableConfig, createDynamicRecord, createEmptyFormConfig, createEmptyNavigationGroupsAuthoringDocument, createEmptyRichContentDocument, createFieldLayoutItem, createPersistedPage, customAsyncValidatorFn, customValidatorFn, debounceAsyncValidator, decodeNavigationGroupsAuthoringDocument, decodePageAuthoringDocument, deepMerge, derivePageChildRuntimeId, domainKnowledgeTimelineToRichContentDocument, domainRuleTimelineToRichContentDocument, encodeNavigationGroupsAuthoringDocument, encodePageAuthoringDocument, enrichGovernanceItemsWithFieldSchemas, enrichRuleSetsWithFieldSchemas, ensureIds, ensureNoConflictsHookFactory, ensurePageIds, escapePraxisExportCell, evaluateFieldAccess, evaluateGovernanceItemsFieldAccess, extractAnalyticsSuppressionMetadata, extractDomainCatalogRuleCatalog, extractDomainRuleDocumentation, extractNormalizedError, extractRecordId, extractRuleViolationDiagnostics, fetchWithETag, fileTypeValidator, fillUndefined, findBuiltinWidgetShellPreset, formIdentityIssues, formatPraxisStackedBarPercentage, formatPraxisWaterfallSignedValue, generateBulkIdempotencyKey, generateId, getDefaultFormHints, getEditorialCompliancePresetById, getEditorialFormTemplateById, getEditorialFormTemplateCatalog, getEditorialSolutionById, getEditorialSolutionCatalog, getEditorialSolutionPresetById, getEditorialThemePresetById, getEssentialConfig, getFieldMetadataCapabilities, getFormColumnFieldNames, getFormLayoutFieldNames, getGlobalActionCatalog, getGlobalActionPayloadActualType, getGlobalActionPayloadTypeIssue, getGlobalActionProviderEvidence, getGlobalActionUiSchema, getMissingGlobalActionPayloadKeys, getPraxisMicroToneGradientStops, getPraxisStackedBarPaintStyle, getPraxisTableCellVisualizationConstraint, getPraxisTableCellVisualizationGuidance, getReferencedFieldMetadata, getRequiredGlobalActionPayloadKeys, getTextTransformer, getWidgetShellActionIdError, hasMeaningfulGlobalActionPayloadValue, hasPraxisCollectionExportArtifact, hasSemanticFieldCalibrationDiff, humanizeCatalogFieldName, inferDomainSemanticHexColor, inferDomainSemanticIcon, inferDomainSemanticTone, inferSemanticFieldControlType, inferSemanticFieldGroup, inferSemanticFieldWidth, instanceKeyFor, interpolatePraxisTranslation, isAllowedEditorialContentFormat, isAllowedEditorialHref, isBulkExecutionTerminal, isCanonicalDecisionStage, isCssTextTransform, isDecisionInspectorLensId, isDomainRuleSnapshotProblemResponse, isDynamicDataRecord, isEditorialComponentMeta, isEmptyRuntimeFormFieldValue, isEntityLookupMultiplePayloadMode, isEntityLookupPayloadMode, isEntityLookupPayloadModeCompatible, isEntityLookupResultSelectable, isEntityLookupSinglePayloadMode, isFormLayoutItem, isGlobalActionProviderOperational, isGlobalActionRef, isGovernedPageUuid, isInlineFilterControlType, isLookupDialogSize, isLookupFilterFieldType, isLookupFilterOperator, isMaskedOrRedactedRuntimeValue, isPraxisI18nMessageDescriptor, isPraxisPresentationVisualizationTableSafe, isPraxisRuntimeGlobalActionEffect, isPraxisWorkspaceThemeId, isProgrammaticDateRangePreset, isRangeValidForFilter, isRequiredGlobalActionParamPayloadMissing, isRequiredGlobalActionPayloadMissing, isResourceQuickViewAnchorValid, isSafeLegalBasisUrl, isStaticDateRangePreset, isSurfaceNavigationError, isTableConfigV2, isUnresolvedTemplateToken, isValidFormConfig, isValidTableConfig, legacyCnpjValidator, legacyCpfValidator, logOnErrorHook, mapCatalogFieldsToMetadata, mapFieldDefinitionToMetadata, mapFieldDefinitionsToMetadata, markGlobalActionProviderOperational, matchFieldValidator, materializeFormLayoutFromMetadata, materializeGovernedPagePreview, materializeGovernedPaletteColors, materializeGovernedPaletteEntries, materializeResourceIdentity, maxFileSizeValidator, mergeDomainRuleDocumentation, mergeFieldMetadata, mergePraxisI18nConfigs, mergeTableConfigs, migrateFormLayoutRule, migrateLegacyCompositionLink, migrateLegacyCompositionLinks, minWordsValidator, nestedPortPathIdentity, normalizeCardMediaAspectRatio, normalizeColumnRendererQuickView, normalizeControlTypeKey, normalizeControlTypeToken, normalizeEditorialLink, normalizeEnd, normalizeFieldAccessMetadata, normalizeFieldConstraints, normalizeFieldPresentation, normalizeFormConfig, normalizeFormLayoutItems, normalizeFormMetadata, normalizeGlobalActionRef$1 as normalizeGlobalActionRef, normalizeLayoutPolicy, normalizeLookupFilterRequest, normalizePath, normalizePraxisDataQueryContext, normalizePraxisEffectPolicy, normalizePraxisHexColor, normalizePraxisIconLigature, normalizePraxisPresentationVisualization, normalizePraxisQueryFilterExpression, normalizePraxisQueryFilterNode, normalizeQuickFilterCriteria, normalizeQuickFilterExpression, normalizeQuickFilterTone, normalizeReactiveDeterminations, normalizeResourceAvailabilityReasonCode, normalizeResourceIdentityContract, normalizeResourceQuickFilterItem, normalizeResourceQuickFilterList, normalizeResourceQuickViewBinding, normalizeResourceRecordOpenReference, normalizeResourceScopeId, normalizeRuleDocumentation, normalizeRuleLegalBasisList, normalizeScalarArrayValue, normalizeStart, normalizeStringMap, normalizeSurfaceOperationContext, normalizeUnknownError, normalizeWidgetEventPath, notifySuccessHook, organizeFormLayoutBySemantics, parseJsonResponseOrEmpty, praxisLoadingInterceptorFn, praxisSessionCredentialsInterceptor, prefillFromContextHook, prepareCanvasArrangement, previewRuntimeFormValueProposal, projectComponentAuthoringManifest, projectGroupedCommandPartialRows, provideDefaultFormHooks, provideFieldSelectorRegistryBase, provideFieldSelectorRegistryOverride, provideFieldSelectorRegistryRuntime, provideFormHookPresets, provideFormHooks, provideGlobalActionCatalog, provideGlobalActionHandler, provideGlobalConfig, provideGlobalConfigReady, provideGlobalConfigSeed, provideGlobalConfigTenant, provideHookResolvers, provideHookWhitelist, provideOverlayDecisionMatrix, providePraxisAnalyticsGlobalActions, providePraxisCollectionExportProvider, providePraxisDynamicPageMetadata, providePraxisEnterpriseRuntimeContext, providePraxisFooterLinksMetadata, providePraxisGlobalActionCatalog, providePraxisGlobalActions, providePraxisGlobalConfigBootstrap, providePraxisHeroBannerMetadata, providePraxisHttpCollectionExportProvider, providePraxisHttpLoading, providePraxisI18n, providePraxisI18nConfig, providePraxisI18nTranslator, providePraxisIconDefaults, providePraxisJsonLogicOperator, providePraxisJsonLogicOperatorOverride, providePraxisLegalNoticeMetadata, providePraxisLoadingDefaults, providePraxisLogging, providePraxisRelatedResourceOutletMetadata, providePraxisRichTextBlockMetadata, providePraxisSessionTransport, providePraxisTelemetry, providePraxisTenantRealm, providePraxisTheme, providePraxisToastGlobalActions, providePraxisUserContextSummaryMetadata, provideRemoteGlobalConfig, readAnalyticsSuppressionMetadata, readPraxisExportValue, readStrongResourceEtag, reconcileFieldQuickViewBinding, reconcileFilterConfig, reconcileFormConfig, reconcileTableConfig, registerPraxisRuntimeComponentObservation, removeDiacritics, renderPraxisPresentationVisualizationHtml, reportTelemetryHookFactory, requiredCheckedValidator, requiredPresenceValidator, resolveBuiltinPresets, resolveBuiltinWidgetShellAppearance, resolveColumnTypeFromFieldDefinition, resolveControlTypeAlias, resolveDataField, resolveDateRangeShortcutPreset, resolveDateRangeShortcutPresets, resolveDefaultValuePresentationFormat, resolveEntityLookupPayloadMode, resolveFieldPresentation, resolveFieldQuickViewBinding, resolveGroupedCommandPartialRowSpans, resolveHidden, resolveHumanFieldLabel, resolveInlineFilterControlType, resolveInlineFilterControlTypeToBaseControlType, resolveLoggerConfig, resolveObservabilityOptions, resolveOffset, resolveOrder, resolvePraxisCollectionExportItems, resolvePraxisExportFields, resolvePraxisExportScope, resolvePraxisFilterCriteria, resolvePraxisI18nDocument, resolvePraxisMicroVisualizationTone, resolvePraxisMicroWaterfallSteps, resolvePraxisStackedBarAriaLabel, resolvePraxisStackedBarSegments, resolvePraxisStackedBarTotal, resolvePraxisTenantRealmFromLocation, resolveQuickViewAnchorKey, resolveResourceAvailabilityReasonKey, resolveResourceIdentityContract, resolveResourceQuickViewTarget, resolveSpan, resolveTextMaskFormat, resolveTextMaskFormatFromFieldDefinition, resolveValuePresentation, resolveValuePresentationLocale, resolveWidgetPageLayoutPreset, samePageSourceReference, scopeKeyByTenantRealm, serializeEntityLookupValueForPayload, serializeOptionSourceFilterRequest, serializePraxisCollectionToCsv, serializePraxisCollectionToExcel, serializePraxisCollectionToJson, slugify, staticDateRangePresetToPreset, stripDraftClearedValues, stripMasksHook, supportsConfigDocuments, supportsImplicitValuePresentation, syncWithServerMetadata, synthesizeScopeBarQuickFilterItems, textSha256, toCamel, toCapitalize, toKebab, toPascal, toSentenceCase, toSnake, toTitleCase, translateDecisionInspector, translateResourceAvailabilityReason, translateResourceDiscoveryText, translateSurfaceNavigationRejected, translateSurfaceOpenFailed, translateUnavailableWorkflowMessage, trim, uiLayoutJsonIdentity, undoRuntimeFormValueApply, uniqueAsyncValidator, upsertNavigationGroupEntry, upsertPageNavigationBinding, urlValidator, validateCanvasArrangement, validateGlobalActionRef, validateGlobalActionRefs, validatePageAuthoringDocument, validatePageSourceReference, validateResourceQuickViewBinding, validateRuntimeFormValueTargetIdentity, validateRuntimeNavigationMenuNodes, withFormConfigSections, withMessage, withPraxisHttpLoading };