@praxisui/core 10.0.0-rc.56 → 10.0.0-rc.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-core-schema.mjs +190 -47
- package/fesm2022/praxisui-core.mjs +1790 -299
- package/package.json +1 -1
- package/types/praxisui-core-schema.d.ts +4 -0
- package/types/praxisui-core.d.ts +193 -12
|
@@ -398,6 +398,22 @@ class EnterpriseRuntimeContextService {
|
|
|
398
398
|
invalidate() {
|
|
399
399
|
this.invalidateContext();
|
|
400
400
|
}
|
|
401
|
+
/** Synchronizes a host-confirmed runtime context snapshot without issuing a duplicate GET. */
|
|
402
|
+
adoptConfirmedContext(context) {
|
|
403
|
+
this.contextRevision += 1;
|
|
404
|
+
this.loadPromise = null;
|
|
405
|
+
if (!context) {
|
|
406
|
+
if (this.contextSubject.value !== null) {
|
|
407
|
+
this.contextSubject.next(null);
|
|
408
|
+
}
|
|
409
|
+
return null;
|
|
410
|
+
}
|
|
411
|
+
const normalized = this.normalizeContext(context);
|
|
412
|
+
if (JSON.stringify(this.contextSubject.value) !== JSON.stringify(normalized)) {
|
|
413
|
+
this.contextSubject.next(normalized);
|
|
414
|
+
}
|
|
415
|
+
return normalized;
|
|
416
|
+
}
|
|
401
417
|
/** Independent host tenant discovery; it never selects the runtime context. */
|
|
402
418
|
tenants() {
|
|
403
419
|
return this.getRuntimeSurface('tenants');
|
|
@@ -1472,10 +1488,18 @@ function resolveDefaultHeaders() {
|
|
|
1472
1488
|
* HTTP-based storage that talks to praxis-config-starter user-config API.
|
|
1473
1489
|
*/
|
|
1474
1490
|
class ApiConfigStorage {
|
|
1475
|
-
static
|
|
1491
|
+
static MAX_NEGATIVE_CACHE_ENTRIES = 1000;
|
|
1492
|
+
static SEMANTIC_CONTEXT_HEADERS = [
|
|
1493
|
+
'x-tenant-realm',
|
|
1494
|
+
'x-tenant-id',
|
|
1495
|
+
'x-organization-id',
|
|
1496
|
+
'x-user-id',
|
|
1497
|
+
'x-env',
|
|
1498
|
+
];
|
|
1476
1499
|
http = inject(HttpClient);
|
|
1477
1500
|
logger = inject(LoggerService, { optional: true });
|
|
1478
1501
|
destroyRef = inject(DestroyRef, { optional: true });
|
|
1502
|
+
loadAvailabilityProbes = new Map();
|
|
1479
1503
|
activeProbeReleases = new Set();
|
|
1480
1504
|
opts = inject(API_CONFIG_STORAGE_OPTIONS, { optional: true });
|
|
1481
1505
|
baseUrl = (this.opts?.baseUrl || '/api/praxis/config/ui').replace(/\/$/, '');
|
|
@@ -1501,13 +1525,17 @@ class ApiConfigStorage {
|
|
|
1501
1525
|
inFlightLoads = new Map();
|
|
1502
1526
|
constructor() {
|
|
1503
1527
|
this.destroyRef?.onDestroy(() => {
|
|
1504
|
-
|
|
1505
|
-
release();
|
|
1506
|
-
}
|
|
1507
|
-
this.activeProbeReleases.clear();
|
|
1528
|
+
this.releaseActiveProbes();
|
|
1508
1529
|
this.saveErrorSubject.complete();
|
|
1509
1530
|
});
|
|
1510
1531
|
}
|
|
1532
|
+
releaseActiveProbes() {
|
|
1533
|
+
for (const release of Array.from(this.activeProbeReleases)) {
|
|
1534
|
+
release();
|
|
1535
|
+
}
|
|
1536
|
+
this.activeProbeReleases.clear();
|
|
1537
|
+
this.loadAvailabilityProbes.clear();
|
|
1538
|
+
}
|
|
1511
1539
|
setWriteScope(scope) {
|
|
1512
1540
|
if (scope && this.opts?.canWriteScope && !this.opts.canWriteScope(scope)) {
|
|
1513
1541
|
this._writeScopeOverride.set('user');
|
|
@@ -1529,8 +1557,15 @@ class ApiConfigStorage {
|
|
|
1529
1557
|
this.scopedCache.clear();
|
|
1530
1558
|
this.negativeCache.clear();
|
|
1531
1559
|
this.inFlightLoads.clear();
|
|
1560
|
+
this.releaseActiveProbes();
|
|
1532
1561
|
this.clearSaveError();
|
|
1533
1562
|
}
|
|
1563
|
+
/**
|
|
1564
|
+
* Public alias for clearing all session-scoped config caches on auth/tenant transitions.
|
|
1565
|
+
*/
|
|
1566
|
+
resetSessionCaches() {
|
|
1567
|
+
this.invalidateCache();
|
|
1568
|
+
}
|
|
1534
1569
|
shouldLogLoadError(key, err) {
|
|
1535
1570
|
if (err?.status === 404)
|
|
1536
1571
|
return false;
|
|
@@ -1549,8 +1584,8 @@ class ApiConfigStorage {
|
|
|
1549
1584
|
loadConfig(key, options) {
|
|
1550
1585
|
return defer(() => {
|
|
1551
1586
|
const headers = this.buildHeaders();
|
|
1552
|
-
const
|
|
1553
|
-
const cacheKey = this.buildNegativeCacheKey(key,
|
|
1587
|
+
const scopeMode = options?.scope ?? this.scope ?? 'auto-cascade';
|
|
1588
|
+
const cacheKey = this.buildNegativeCacheKey(key, scopeMode, headers);
|
|
1554
1589
|
if (this.negativeCache.has(cacheKey)) {
|
|
1555
1590
|
return of(null);
|
|
1556
1591
|
}
|
|
@@ -1558,7 +1593,7 @@ class ApiConfigStorage {
|
|
|
1558
1593
|
if (existingInFlight) {
|
|
1559
1594
|
return existingInFlight;
|
|
1560
1595
|
}
|
|
1561
|
-
const existingProbe =
|
|
1596
|
+
const existingProbe = this.loadAvailabilityProbes.get(this.baseUrl);
|
|
1562
1597
|
const request$ = existingProbe
|
|
1563
1598
|
? from(existingProbe).pipe(switchMap((available) => {
|
|
1564
1599
|
if (!available || this.negativeCache.has(cacheKey)) {
|
|
@@ -1577,39 +1612,45 @@ class ApiConfigStorage {
|
|
|
1577
1612
|
});
|
|
1578
1613
|
}
|
|
1579
1614
|
loadConfigDocument(key, options) {
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
.get(this.baseUrl, { observe: 'response', headers, params })
|
|
1592
|
-
.pipe(map((resp) => {
|
|
1593
|
-
this.negativeCache.delete(cacheKey);
|
|
1594
|
-
return this.cacheResponseDocument(key, resp.body, resp.headers.get('ETag'), options?.scope);
|
|
1595
|
-
}), catchError((err) => {
|
|
1596
|
-
if (err.status === 304 && cached?.document) {
|
|
1597
|
-
return of(cached.document);
|
|
1598
|
-
}
|
|
1599
|
-
if (err.status === 404) {
|
|
1600
|
-
this.negativeCache.add(cacheKey);
|
|
1615
|
+
return defer(() => {
|
|
1616
|
+
const baseHeaders = this.buildHeaders();
|
|
1617
|
+
const effectiveExplicitScope = options?.scope ?? this.scope;
|
|
1618
|
+
const cached = this.getCachedEntry(key, effectiveExplicitScope, baseHeaders);
|
|
1619
|
+
const etag = cached?.readEtag ?? cached?.writeEtag;
|
|
1620
|
+
const { type, id } = this.resolveKey(key);
|
|
1621
|
+
const params = this.buildParams(type, id, options?.scope);
|
|
1622
|
+
const headers = this.buildHeaders(etag ? { 'If-None-Match': this.formatEtag(etag) } : {});
|
|
1623
|
+
const scopeMode = options?.scope ?? this.scope ?? 'auto-cascade';
|
|
1624
|
+
const cacheKey = this.buildNegativeCacheKey(key, scopeMode, baseHeaders);
|
|
1625
|
+
if (this.negativeCache.has(cacheKey)) {
|
|
1601
1626
|
return of(null);
|
|
1602
1627
|
}
|
|
1603
|
-
|
|
1604
|
-
this.
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1628
|
+
return this.http
|
|
1629
|
+
.get(this.baseUrl, { observe: 'response', headers, params })
|
|
1630
|
+
.pipe(map((resp) => {
|
|
1631
|
+
this.negativeCache.delete(cacheKey);
|
|
1632
|
+
return this.cacheResponseDocument(key, resp.body, resp.headers.get('ETag'), effectiveExplicitScope, baseHeaders);
|
|
1633
|
+
}), catchError((err) => {
|
|
1634
|
+
if (err.status === 304 && cached?.document) {
|
|
1635
|
+
return of(cached.document);
|
|
1636
|
+
}
|
|
1637
|
+
if (err.status === 404) {
|
|
1638
|
+
this.recordNegativeCacheHit(cacheKey);
|
|
1639
|
+
return of(null);
|
|
1640
|
+
}
|
|
1641
|
+
if (this.shouldLogLoadError(key, err)) {
|
|
1642
|
+
this.logger?.warn('[ApiConfigStorage] document load error', { data: { error: err } });
|
|
1643
|
+
}
|
|
1644
|
+
return this.shouldPropagateLoadError(key, err)
|
|
1645
|
+
? throwError(() => err)
|
|
1646
|
+
: of(null);
|
|
1647
|
+
}));
|
|
1648
|
+
});
|
|
1610
1649
|
}
|
|
1611
1650
|
executeLoadConfigRequest(key, establishAvailability, explicitScope, negativeCacheKey) {
|
|
1612
|
-
const
|
|
1651
|
+
const baseHeaders = this.buildHeaders();
|
|
1652
|
+
const effectiveExplicitScope = explicitScope ?? this.scope;
|
|
1653
|
+
const cached = this.getCachedEntry(key, effectiveExplicitScope, baseHeaders);
|
|
1613
1654
|
const etag = cached?.readEtag ?? cached?.writeEtag;
|
|
1614
1655
|
const { type, id } = this.resolveKey(key);
|
|
1615
1656
|
const url = `${this.baseUrl}`;
|
|
@@ -1621,14 +1662,14 @@ class ApiConfigStorage {
|
|
|
1621
1662
|
const probe = new Promise((resolve) => {
|
|
1622
1663
|
resolveProbe = resolve;
|
|
1623
1664
|
});
|
|
1624
|
-
|
|
1665
|
+
this.loadAvailabilityProbes.set(this.baseUrl, probe);
|
|
1625
1666
|
let released = false;
|
|
1626
1667
|
const release = () => {
|
|
1627
1668
|
if (released)
|
|
1628
1669
|
return;
|
|
1629
1670
|
released = true;
|
|
1630
|
-
if (
|
|
1631
|
-
|
|
1671
|
+
if (this.loadAvailabilityProbes.get(this.baseUrl) === probe) {
|
|
1672
|
+
this.loadAvailabilityProbes.delete(this.baseUrl);
|
|
1632
1673
|
}
|
|
1633
1674
|
this.activeProbeReleases.delete(release);
|
|
1634
1675
|
resolveProbe(true);
|
|
@@ -1645,14 +1686,14 @@ class ApiConfigStorage {
|
|
|
1645
1686
|
const writeEtag = this.resolveWriteEtag(responseEtag, body?.etag);
|
|
1646
1687
|
if (readEtag || writeEtag) {
|
|
1647
1688
|
const document = this.toConfigDocument(body, responseEtag);
|
|
1648
|
-
const resolvedScope = this.resolveResponseScope(body?.scope) ??
|
|
1689
|
+
const resolvedScope = this.resolveResponseScope(body?.scope) ?? effectiveExplicitScope;
|
|
1649
1690
|
this.storeCachedEntry(key, {
|
|
1650
1691
|
readEtag,
|
|
1651
1692
|
writeEtag,
|
|
1652
1693
|
payload: body?.payload,
|
|
1653
1694
|
scope: resolvedScope,
|
|
1654
1695
|
document,
|
|
1655
|
-
}, resolvedScope);
|
|
1696
|
+
}, resolvedScope, baseHeaders, effectiveExplicitScope);
|
|
1656
1697
|
}
|
|
1657
1698
|
releaseProbe?.();
|
|
1658
1699
|
return body?.payload ?? null;
|
|
@@ -1662,7 +1703,7 @@ class ApiConfigStorage {
|
|
|
1662
1703
|
return of(cached.payload);
|
|
1663
1704
|
}
|
|
1664
1705
|
if (err.status === 404) {
|
|
1665
|
-
this.
|
|
1706
|
+
this.recordNegativeCacheHit(negativeCacheKey);
|
|
1666
1707
|
releaseProbe?.();
|
|
1667
1708
|
return of(null);
|
|
1668
1709
|
}
|
|
@@ -1687,14 +1728,14 @@ class ApiConfigStorage {
|
|
|
1687
1728
|
const writeEtag = this.resolveWriteEtag(responseEtag, body?.etag);
|
|
1688
1729
|
if (readEtag || writeEtag) {
|
|
1689
1730
|
const document = this.toConfigDocument(body, responseEtag);
|
|
1690
|
-
const resolvedScope = this.resolveResponseScope(body?.scope) ??
|
|
1731
|
+
const resolvedScope = this.resolveResponseScope(body?.scope) ?? effectiveExplicitScope;
|
|
1691
1732
|
this.storeCachedEntry(key, {
|
|
1692
1733
|
readEtag,
|
|
1693
1734
|
writeEtag,
|
|
1694
1735
|
payload: body?.payload,
|
|
1695
1736
|
scope: resolvedScope,
|
|
1696
1737
|
document,
|
|
1697
|
-
}, resolvedScope);
|
|
1738
|
+
}, resolvedScope, baseHeaders, effectiveExplicitScope);
|
|
1698
1739
|
}
|
|
1699
1740
|
return body?.payload ?? null;
|
|
1700
1741
|
}), catchError((err) => {
|
|
@@ -1703,7 +1744,7 @@ class ApiConfigStorage {
|
|
|
1703
1744
|
return of(cached.payload);
|
|
1704
1745
|
}
|
|
1705
1746
|
if (err.status === 404) {
|
|
1706
|
-
this.
|
|
1747
|
+
this.recordNegativeCacheHit(negativeCacheKey);
|
|
1707
1748
|
return of(null);
|
|
1708
1749
|
}
|
|
1709
1750
|
if (this.shouldLogLoadError(key, err)) {
|
|
@@ -1724,7 +1765,7 @@ class ApiConfigStorage {
|
|
|
1724
1765
|
const params = this.buildParams(type, id, explicitScope);
|
|
1725
1766
|
const baseHeaders = this.buildHeaders();
|
|
1726
1767
|
const requestScope = explicitScope ?? this.resolveRequestScope(baseHeaders);
|
|
1727
|
-
const scopedCached = this.getCachedEntry(key, requestScope);
|
|
1768
|
+
const scopedCached = this.getCachedEntry(key, requestScope, baseHeaders);
|
|
1728
1769
|
const compatibleWriteEtag = this.resolveCompatibleWriteEtag(scopedCached, requestScope);
|
|
1729
1770
|
const formattedWriteEtag = this.formatEtag(compatibleWriteEtag);
|
|
1730
1771
|
const headers = formattedWriteEtag
|
|
@@ -1734,18 +1775,25 @@ class ApiConfigStorage {
|
|
|
1734
1775
|
.put(url, { payload: config }, { observe: 'response', headers, params })
|
|
1735
1776
|
.pipe(map((resp) => {
|
|
1736
1777
|
this.clearSaveError();
|
|
1737
|
-
this.invalidateKeyCaches(key);
|
|
1778
|
+
this.invalidateKeyCaches(key, undefined, baseHeaders);
|
|
1738
1779
|
const body = resp.body;
|
|
1739
1780
|
const responseEtag = resp.headers.get('ETag');
|
|
1740
1781
|
const payload = body?.payload ?? config;
|
|
1741
1782
|
const effectiveScope = this.resolveResponseScope(body?.scope) ?? requestScope;
|
|
1742
|
-
|
|
1783
|
+
const savedEntry = {
|
|
1743
1784
|
readEtag: this.resolveReadEtag(responseEtag, body?.etag),
|
|
1744
1785
|
writeEtag: this.resolveWriteEtag(responseEtag, body?.etag),
|
|
1745
1786
|
payload,
|
|
1746
1787
|
scope: effectiveScope,
|
|
1747
1788
|
document: this.toConfigDocument({ ...body, scope: body?.scope ?? effectiveScope, payload }, responseEtag),
|
|
1748
|
-
}
|
|
1789
|
+
};
|
|
1790
|
+
this.storeCachedEntry(key, savedEntry, effectiveScope, baseHeaders, requestScope);
|
|
1791
|
+
const autoKey = this.buildPositiveCacheKey(key, baseHeaders);
|
|
1792
|
+
const autoEntry = this.cache.get(autoKey);
|
|
1793
|
+
if (effectiveScope === 'user'
|
|
1794
|
+
|| (autoEntry && (!autoEntry.scope || autoEntry.scope === effectiveScope))) {
|
|
1795
|
+
this.cache.set(autoKey, savedEntry);
|
|
1796
|
+
}
|
|
1749
1797
|
}), catchError((err) => {
|
|
1750
1798
|
this.recordSaveError(key, requestScope, 'save', err);
|
|
1751
1799
|
if (this.shouldLogSaveError(key, err)) {
|
|
@@ -1802,7 +1850,7 @@ class ApiConfigStorage {
|
|
|
1802
1850
|
const params = this.buildParams(type, id, explicitScope);
|
|
1803
1851
|
const baseHeaders = this.buildHeaders();
|
|
1804
1852
|
const requestScope = explicitScope ?? this.resolveRequestScope(baseHeaders);
|
|
1805
|
-
const scopedCached = this.getCachedEntry(key, requestScope);
|
|
1853
|
+
const scopedCached = this.getCachedEntry(key, requestScope, baseHeaders);
|
|
1806
1854
|
const compatibleWriteEtag = this.resolveCompatibleWriteEtag(scopedCached, requestScope);
|
|
1807
1855
|
const formattedWriteEtag = this.formatEtag(compatibleWriteEtag);
|
|
1808
1856
|
const headers = formattedWriteEtag
|
|
@@ -1812,8 +1860,8 @@ class ApiConfigStorage {
|
|
|
1812
1860
|
.delete(url, { observe: 'response', headers, params })
|
|
1813
1861
|
.pipe(map(() => {
|
|
1814
1862
|
this.clearSaveError();
|
|
1815
|
-
this.evictCachedScope(key, requestScope);
|
|
1816
|
-
this.invalidateKeyCaches(key);
|
|
1863
|
+
this.evictCachedScope(key, requestScope, baseHeaders);
|
|
1864
|
+
this.invalidateKeyCaches(key, undefined, baseHeaders);
|
|
1817
1865
|
}), catchError((err) => {
|
|
1818
1866
|
this.recordSaveError(key, requestScope, 'clear', err);
|
|
1819
1867
|
if (this.shouldLogClearError(key, err)) {
|
|
@@ -1838,7 +1886,7 @@ class ApiConfigStorage {
|
|
|
1838
1886
|
const url = `${this.baseUrl}`;
|
|
1839
1887
|
const params = this.buildParams(type, id, 'user');
|
|
1840
1888
|
const baseHeaders = this.buildHeaders();
|
|
1841
|
-
const userCached = this.getCachedEntry(key, 'user');
|
|
1889
|
+
const userCached = this.getCachedEntry(key, 'user', baseHeaders);
|
|
1842
1890
|
const compatibleWriteEtag = this.resolveCompatibleWriteEtag(userCached, 'user');
|
|
1843
1891
|
const formattedWriteEtag = this.formatEtag(compatibleWriteEtag);
|
|
1844
1892
|
const headers = formattedWriteEtag
|
|
@@ -1854,8 +1902,8 @@ class ApiConfigStorage {
|
|
|
1854
1902
|
return throwError(() => err);
|
|
1855
1903
|
}), switchMap(() => {
|
|
1856
1904
|
this.clearSaveError();
|
|
1857
|
-
this.evictCachedScope(key, 'user');
|
|
1858
|
-
this.invalidateKeyCaches(key, 'user');
|
|
1905
|
+
this.evictCachedScope(key, 'user', baseHeaders);
|
|
1906
|
+
this.invalidateKeyCaches(key, 'user', baseHeaders);
|
|
1859
1907
|
return this.loadConfig(key, { scope: 'tenant' });
|
|
1860
1908
|
}));
|
|
1861
1909
|
}
|
|
@@ -1877,7 +1925,7 @@ class ApiConfigStorage {
|
|
|
1877
1925
|
}
|
|
1878
1926
|
return new HttpHeaders(merged);
|
|
1879
1927
|
}
|
|
1880
|
-
cacheResponseDocument(key, body, responseEtag, explicitScope) {
|
|
1928
|
+
cacheResponseDocument(key, body, responseEtag, explicitScope, headers) {
|
|
1881
1929
|
const document = this.toConfigDocument(body, responseEtag);
|
|
1882
1930
|
const resolvedScope = this.resolveResponseScope(document.scope) ?? explicitScope;
|
|
1883
1931
|
this.storeCachedEntry(key, {
|
|
@@ -1886,16 +1934,34 @@ class ApiConfigStorage {
|
|
|
1886
1934
|
payload: document.payload,
|
|
1887
1935
|
scope: resolvedScope,
|
|
1888
1936
|
document,
|
|
1889
|
-
}, resolvedScope);
|
|
1937
|
+
}, resolvedScope, headers, explicitScope);
|
|
1890
1938
|
return document;
|
|
1891
1939
|
}
|
|
1892
|
-
|
|
1940
|
+
buildContextHeaderSignature(headers) {
|
|
1941
|
+
return ApiConfigStorage.SEMANTIC_CONTEXT_HEADERS
|
|
1942
|
+
.map((name) => {
|
|
1943
|
+
const values = headers.getAll(name);
|
|
1944
|
+
return values && values.length > 0 ? `${name}=${values.join(',')}` : null;
|
|
1945
|
+
})
|
|
1946
|
+
.filter((entry) => entry !== null)
|
|
1947
|
+
.join('|');
|
|
1948
|
+
}
|
|
1949
|
+
buildPositiveCacheKey(key, headers, explicitScope) {
|
|
1950
|
+
const signature = this.buildContextHeaderSignature(headers);
|
|
1951
|
+
const partitionedKey = signature ? `${signature}\u0000${key}` : key;
|
|
1952
|
+
return explicitScope ? `${partitionedKey}::explicit:${explicitScope}` : partitionedKey;
|
|
1953
|
+
}
|
|
1954
|
+
getCachedEntry(key, explicitScope, headers = this.buildHeaders()) {
|
|
1955
|
+
const partitionedKey = this.buildPositiveCacheKey(key, headers);
|
|
1893
1956
|
if (explicitScope) {
|
|
1894
|
-
const
|
|
1957
|
+
const explicitCached = this.cache.get(this.buildPositiveCacheKey(key, headers, explicitScope));
|
|
1958
|
+
if (explicitCached)
|
|
1959
|
+
return explicitCached;
|
|
1960
|
+
const byScope = this.scopedCache.get(partitionedKey)?.[explicitScope];
|
|
1895
1961
|
if (byScope)
|
|
1896
1962
|
return byScope;
|
|
1897
1963
|
}
|
|
1898
|
-
const fallback = this.cache.get(
|
|
1964
|
+
const fallback = this.cache.get(partitionedKey);
|
|
1899
1965
|
if (!explicitScope)
|
|
1900
1966
|
return fallback;
|
|
1901
1967
|
if (fallback && (!fallback.scope || fallback.scope === explicitScope)) {
|
|
@@ -1903,49 +1969,82 @@ class ApiConfigStorage {
|
|
|
1903
1969
|
}
|
|
1904
1970
|
return undefined;
|
|
1905
1971
|
}
|
|
1906
|
-
storeCachedEntry(key, entry, resolvedScope) {
|
|
1907
|
-
this.
|
|
1972
|
+
storeCachedEntry(key, entry, resolvedScope, headers = this.buildHeaders(), explicitScope) {
|
|
1973
|
+
const partitionedKey = this.buildPositiveCacheKey(key, headers);
|
|
1974
|
+
const positiveKey = this.buildPositiveCacheKey(key, headers, explicitScope);
|
|
1975
|
+
this.cache.set(positiveKey, entry);
|
|
1908
1976
|
if (resolvedScope) {
|
|
1909
|
-
const existing = this.scopedCache.get(
|
|
1910
|
-
this.scopedCache.set(
|
|
1977
|
+
const existing = this.scopedCache.get(partitionedKey) ?? {};
|
|
1978
|
+
this.scopedCache.set(partitionedKey, {
|
|
1911
1979
|
...existing,
|
|
1912
1980
|
[resolvedScope]: entry,
|
|
1913
1981
|
});
|
|
1914
1982
|
}
|
|
1915
1983
|
}
|
|
1916
|
-
evictCachedScope(key, scope) {
|
|
1917
|
-
const
|
|
1984
|
+
evictCachedScope(key, scope, headers = this.buildHeaders()) {
|
|
1985
|
+
const partitionedKey = this.buildPositiveCacheKey(key, headers);
|
|
1986
|
+
this.cache.delete(this.buildPositiveCacheKey(key, headers, scope));
|
|
1987
|
+
const scoped = this.scopedCache.get(partitionedKey);
|
|
1918
1988
|
if (scoped) {
|
|
1919
1989
|
delete scoped[scope];
|
|
1920
1990
|
if (!scoped.user && !scoped.tenant) {
|
|
1921
|
-
this.scopedCache.delete(
|
|
1991
|
+
this.scopedCache.delete(partitionedKey);
|
|
1922
1992
|
}
|
|
1923
1993
|
}
|
|
1924
|
-
const active = this.cache.get(
|
|
1994
|
+
const active = this.cache.get(partitionedKey);
|
|
1925
1995
|
if (active && (!active.scope || active.scope === scope)) {
|
|
1926
|
-
this.cache.delete(
|
|
1996
|
+
this.cache.delete(partitionedKey);
|
|
1927
1997
|
}
|
|
1928
1998
|
}
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1999
|
+
recordNegativeCacheHit(cacheKey) {
|
|
2000
|
+
if (this.negativeCache.has(cacheKey)) {
|
|
2001
|
+
this.negativeCache.delete(cacheKey);
|
|
2002
|
+
}
|
|
2003
|
+
this.negativeCache.add(cacheKey);
|
|
2004
|
+
while (this.negativeCache.size > ApiConfigStorage.MAX_NEGATIVE_CACHE_ENTRIES) {
|
|
2005
|
+
const oldest = this.negativeCache.values().next().value;
|
|
2006
|
+
if (oldest === undefined)
|
|
2007
|
+
break;
|
|
2008
|
+
this.negativeCache.delete(oldest);
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
buildNegativeCacheKey(key, scopeMode, headers) {
|
|
2012
|
+
const { type, id } = this.resolveKey(key);
|
|
2013
|
+
const contextHeaderSignature = this.buildContextHeaderSignature(headers);
|
|
2014
|
+
return `${scopeMode}\u0000${contextHeaderSignature}\u0000${type}\u0000${id}`;
|
|
1938
2015
|
}
|
|
1939
|
-
invalidateKeyCaches(key, scope) {
|
|
1940
|
-
const { id } = this.resolveKey(key);
|
|
1941
|
-
const suffix = `\u0000${id}`;
|
|
2016
|
+
invalidateKeyCaches(key, scope, headers) {
|
|
2017
|
+
const { type, id } = this.resolveKey(key);
|
|
2018
|
+
const suffix = `\u0000${type}\u0000${id}`;
|
|
2019
|
+
const expectedContextSignature = headers
|
|
2020
|
+
? this.buildContextHeaderSignature(headers)
|
|
2021
|
+
: undefined;
|
|
2022
|
+
const matchesTarget = (cacheKey) => {
|
|
2023
|
+
if (!cacheKey.endsWith(suffix))
|
|
2024
|
+
return false;
|
|
2025
|
+
const scopeSep = cacheKey.indexOf('\u0000');
|
|
2026
|
+
if (scopeSep === -1)
|
|
2027
|
+
return false;
|
|
2028
|
+
const cachedScope = cacheKey.slice(0, scopeSep);
|
|
2029
|
+
if (scope && cachedScope !== scope && cachedScope !== 'auto-cascade') {
|
|
2030
|
+
return false;
|
|
2031
|
+
}
|
|
2032
|
+
if (expectedContextSignature !== undefined) {
|
|
2033
|
+
const prefixWithoutId = cacheKey.slice(0, cacheKey.length - suffix.length);
|
|
2034
|
+
const contextSignature = prefixWithoutId.slice(scopeSep + 1);
|
|
2035
|
+
if (contextSignature !== expectedContextSignature) {
|
|
2036
|
+
return false;
|
|
2037
|
+
}
|
|
2038
|
+
}
|
|
2039
|
+
return true;
|
|
2040
|
+
};
|
|
1942
2041
|
for (const cacheKey of Array.from(this.negativeCache)) {
|
|
1943
|
-
if (
|
|
2042
|
+
if (matchesTarget(cacheKey)) {
|
|
1944
2043
|
this.negativeCache.delete(cacheKey);
|
|
1945
2044
|
}
|
|
1946
2045
|
}
|
|
1947
2046
|
for (const cacheKey of Array.from(this.inFlightLoads.keys())) {
|
|
1948
|
-
if (
|
|
2047
|
+
if (matchesTarget(cacheKey)) {
|
|
1949
2048
|
this.inFlightLoads.delete(cacheKey);
|
|
1950
2049
|
}
|
|
1951
2050
|
}
|
|
@@ -2085,6 +2184,8 @@ class ApiConfigStorage {
|
|
|
2085
2184
|
['timeline-lanes:', 'praxis-timeline-lanes'],
|
|
2086
2185
|
['praxis-relationship-graph-config-', 'praxis-relationship-graph'],
|
|
2087
2186
|
['relationship-graph:', 'praxis-relationship-graph'],
|
|
2187
|
+
['praxis-progression-ladder-config-', 'praxis-progression-ladder'],
|
|
2188
|
+
['progression-ladder:', 'praxis-progression-ladder'],
|
|
2088
2189
|
['conn:form:', 'praxis-dynamic-form'],
|
|
2089
2190
|
['conn:table:', 'praxis-table'],
|
|
2090
2191
|
['grid-page:', 'praxis-dynamic-page'],
|
|
@@ -5014,6 +5115,12 @@ function mapFieldDefinitionToMetadata(field) {
|
|
|
5014
5115
|
}
|
|
5015
5116
|
if (field.presentation) {
|
|
5016
5117
|
metadata.presentation = { ...field.presentation };
|
|
5118
|
+
if (field.presentation.labelTrue && field.trueLabel === undefined) {
|
|
5119
|
+
metadata.trueLabel = field.presentation.labelTrue;
|
|
5120
|
+
}
|
|
5121
|
+
if (field.presentation.labelFalse && field.falseLabel === undefined) {
|
|
5122
|
+
metadata.falseLabel = field.presentation.labelFalse;
|
|
5123
|
+
}
|
|
5017
5124
|
}
|
|
5018
5125
|
if (field.array) {
|
|
5019
5126
|
const arrayConfig = { ...field.array };
|
|
@@ -7611,8 +7718,8 @@ const CANONICAL_DECISION_STAGES = [
|
|
|
7611
7718
|
icon: 'shield_lock',
|
|
7612
7719
|
titleKey: 'stage.PROTECTED_GUARD.title',
|
|
7613
7720
|
subtitleKey: 'stage.PROTECTED_GUARD.subtitle',
|
|
7614
|
-
defaultTitlePtBr: '
|
|
7615
|
-
defaultSubtitlePtBr: '
|
|
7721
|
+
defaultTitlePtBr: 'Pré-requisitos obrigatórios',
|
|
7722
|
+
defaultSubtitlePtBr: 'Condições de segurança e escopo verificadas antes de qualquer regra',
|
|
7616
7723
|
},
|
|
7617
7724
|
{
|
|
7618
7725
|
id: 'DOMAIN_DECISION',
|
|
@@ -7621,8 +7728,8 @@ const CANONICAL_DECISION_STAGES = [
|
|
|
7621
7728
|
icon: 'gavel',
|
|
7622
7729
|
titleKey: 'stage.DOMAIN_DECISION.title',
|
|
7623
7730
|
subtitleKey: 'stage.DOMAIN_DECISION.subtitle',
|
|
7624
|
-
defaultTitlePtBr: '
|
|
7625
|
-
defaultSubtitlePtBr: 'Regras centrais
|
|
7731
|
+
defaultTitlePtBr: 'Regras de negócio',
|
|
7732
|
+
defaultSubtitlePtBr: 'Regras centrais que definem elegibilidade e limites da operação',
|
|
7626
7733
|
},
|
|
7627
7734
|
{
|
|
7628
7735
|
id: 'POST_DECISION',
|
|
@@ -7631,8 +7738,8 @@ const CANONICAL_DECISION_STAGES = [
|
|
|
7631
7738
|
icon: 'fact_check',
|
|
7632
7739
|
titleKey: 'stage.POST_DECISION.title',
|
|
7633
7740
|
subtitleKey: 'stage.POST_DECISION.subtitle',
|
|
7634
|
-
defaultTitlePtBr: '
|
|
7635
|
-
defaultSubtitlePtBr: 'Consistência
|
|
7741
|
+
defaultTitlePtBr: 'Validações cruzadas',
|
|
7742
|
+
defaultSubtitlePtBr: 'Consistência entre campos, saldos e regras complementares',
|
|
7636
7743
|
},
|
|
7637
7744
|
{
|
|
7638
7745
|
id: 'TRANSFORMATION_INTENT',
|
|
@@ -7641,8 +7748,8 @@ const CANONICAL_DECISION_STAGES = [
|
|
|
7641
7748
|
icon: 'auto_fix_high',
|
|
7642
7749
|
titleKey: 'stage.TRANSFORMATION_INTENT.title',
|
|
7643
7750
|
subtitleKey: 'stage.TRANSFORMATION_INTENT.subtitle',
|
|
7644
|
-
defaultTitlePtBr: '
|
|
7645
|
-
defaultSubtitlePtBr: '
|
|
7751
|
+
defaultTitlePtBr: 'Ajustes automáticos',
|
|
7752
|
+
defaultSubtitlePtBr: 'Preenchimentos e cálculos automáticos propostos pela regra',
|
|
7646
7753
|
},
|
|
7647
7754
|
{
|
|
7648
7755
|
id: 'EFFECT_INTENT',
|
|
@@ -7651,8 +7758,8 @@ const CANONICAL_DECISION_STAGES = [
|
|
|
7651
7758
|
icon: 'bolt',
|
|
7652
7759
|
titleKey: 'stage.EFFECT_INTENT.title',
|
|
7653
7760
|
subtitleKey: 'stage.EFFECT_INTENT.subtitle',
|
|
7654
|
-
defaultTitlePtBr: '
|
|
7655
|
-
defaultSubtitlePtBr: '
|
|
7761
|
+
defaultTitlePtBr: 'Consequências e registros',
|
|
7762
|
+
defaultSubtitlePtBr: 'Notificações, auditoria e registros gerados após a decisão',
|
|
7656
7763
|
},
|
|
7657
7764
|
];
|
|
7658
7765
|
const CANONICAL_DECISION_STAGE_SET = new Set(CANONICAL_DECISION_STAGES.map((stage) => stage.id));
|
|
@@ -7823,6 +7930,248 @@ function asStringArray(value) {
|
|
|
7823
7930
|
.map((entry) => asTrimmedText(entry))
|
|
7824
7931
|
.filter((entry) => Boolean(entry))));
|
|
7825
7932
|
}
|
|
7933
|
+
/**
|
|
7934
|
+
* Validates an external legal-basis reference URL fail-closed: only absolute
|
|
7935
|
+
* `http:` or `https:` URLs without embedded credentials are accepted.
|
|
7936
|
+
*/
|
|
7937
|
+
function isSafeLegalBasisUrl(url) {
|
|
7938
|
+
const clean = asTrimmedText(url);
|
|
7939
|
+
if (!clean || clean.startsWith('//')) {
|
|
7940
|
+
return false;
|
|
7941
|
+
}
|
|
7942
|
+
try {
|
|
7943
|
+
const parsed = new URL(clean);
|
|
7944
|
+
if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') {
|
|
7945
|
+
return false;
|
|
7946
|
+
}
|
|
7947
|
+
return !parsed.username && !parsed.password;
|
|
7948
|
+
}
|
|
7949
|
+
catch {
|
|
7950
|
+
return false;
|
|
7951
|
+
}
|
|
7952
|
+
}
|
|
7953
|
+
function normalizeRuleLegalBasisList(raw) {
|
|
7954
|
+
if (raw === null || raw === undefined) {
|
|
7955
|
+
return [];
|
|
7956
|
+
}
|
|
7957
|
+
const items = Array.isArray(raw) ? raw : [raw];
|
|
7958
|
+
const normalized = [];
|
|
7959
|
+
const seen = new Set();
|
|
7960
|
+
for (const entry of items) {
|
|
7961
|
+
if (typeof entry === 'string') {
|
|
7962
|
+
const code = asTrimmedText(entry);
|
|
7963
|
+
if (code && !seen.has(code)) {
|
|
7964
|
+
seen.add(code);
|
|
7965
|
+
normalized.push({ code });
|
|
7966
|
+
}
|
|
7967
|
+
continue;
|
|
7968
|
+
}
|
|
7969
|
+
const record = asPlainRecord(entry);
|
|
7970
|
+
if (!record) {
|
|
7971
|
+
continue;
|
|
7972
|
+
}
|
|
7973
|
+
const title = asTrimmedText(record['title']);
|
|
7974
|
+
const article = asTrimmedText(record['article']);
|
|
7975
|
+
const jurisdiction = asTrimmedText(record['jurisdiction']);
|
|
7976
|
+
const summary = asTrimmedText(record['summary']);
|
|
7977
|
+
const rawUrl = asTrimmedText(record['url']);
|
|
7978
|
+
const url = rawUrl && isSafeLegalBasisUrl(rawUrl) ? rawUrl : null;
|
|
7979
|
+
const code = asTrimmedText(record['code']) ?? title ?? article;
|
|
7980
|
+
if (!code) {
|
|
7981
|
+
continue;
|
|
7982
|
+
}
|
|
7983
|
+
const dedupeKey = `${code}::${article ?? ''}::${jurisdiction ?? ''}`;
|
|
7984
|
+
if (seen.has(dedupeKey)) {
|
|
7985
|
+
continue;
|
|
7986
|
+
}
|
|
7987
|
+
seen.add(dedupeKey);
|
|
7988
|
+
normalized.push({
|
|
7989
|
+
code,
|
|
7990
|
+
...(title ? { title } : {}),
|
|
7991
|
+
...(article ? { article } : {}),
|
|
7992
|
+
...(jurisdiction ? { jurisdiction } : {}),
|
|
7993
|
+
...(summary ? { summary } : {}),
|
|
7994
|
+
...(url ? { url } : {}),
|
|
7995
|
+
});
|
|
7996
|
+
}
|
|
7997
|
+
return normalized;
|
|
7998
|
+
}
|
|
7999
|
+
function normalizeRuleDocumentation(raw) {
|
|
8000
|
+
const outer = asPlainRecord(raw);
|
|
8001
|
+
if (!outer) {
|
|
8002
|
+
return undefined;
|
|
8003
|
+
}
|
|
8004
|
+
const nested = asPlainRecord(outer['documentation']);
|
|
8005
|
+
const title = asTrimmedText(outer['title']) ?? asTrimmedText(nested?.['title']);
|
|
8006
|
+
const summary = asTrimmedText(outer['summary']) ?? asTrimmedText(nested?.['summary']);
|
|
8007
|
+
const whenApplies = asTrimmedText(outer['whenApplies']) ?? asTrimmedText(nested?.['whenApplies']);
|
|
8008
|
+
const rationale = asTrimmedText(outer['rationale']) ?? asTrimmedText(nested?.['rationale']);
|
|
8009
|
+
const customizationGuidance = asTrimmedText(outer['customizationGuidance']) ??
|
|
8010
|
+
asTrimmedText(nested?.['customizationGuidance']);
|
|
8011
|
+
const directLegal = normalizeRuleLegalBasisList(outer['legalBasis']);
|
|
8012
|
+
const legalBasis = directLegal.length > 0
|
|
8013
|
+
? directLegal
|
|
8014
|
+
: normalizeRuleLegalBasisList(nested?.['legalBasis']);
|
|
8015
|
+
if (!title &&
|
|
8016
|
+
!summary &&
|
|
8017
|
+
!whenApplies &&
|
|
8018
|
+
!rationale &&
|
|
8019
|
+
!customizationGuidance &&
|
|
8020
|
+
legalBasis.length === 0) {
|
|
8021
|
+
return undefined;
|
|
8022
|
+
}
|
|
8023
|
+
return {
|
|
8024
|
+
...(title ? { title } : {}),
|
|
8025
|
+
...(summary ? { summary } : {}),
|
|
8026
|
+
...(whenApplies ? { whenApplies } : {}),
|
|
8027
|
+
...(rationale ? { rationale } : {}),
|
|
8028
|
+
...(legalBasis.length > 0 ? { legalBasis } : {}),
|
|
8029
|
+
...(customizationGuidance ? { customizationGuidance } : {}),
|
|
8030
|
+
};
|
|
8031
|
+
}
|
|
8032
|
+
function normalizeStringMap(raw) {
|
|
8033
|
+
const record = asPlainRecord(raw);
|
|
8034
|
+
if (!record) {
|
|
8035
|
+
return {};
|
|
8036
|
+
}
|
|
8037
|
+
const result = {};
|
|
8038
|
+
for (const [key, value] of Object.entries(record)) {
|
|
8039
|
+
const cleanKey = asTrimmedText(key);
|
|
8040
|
+
const cleanVal = asTrimmedText(value);
|
|
8041
|
+
if (cleanKey && cleanVal) {
|
|
8042
|
+
result[cleanKey] = cleanVal;
|
|
8043
|
+
}
|
|
8044
|
+
}
|
|
8045
|
+
return result;
|
|
8046
|
+
}
|
|
8047
|
+
function stripKnownFieldPrefix(fieldOrPath) {
|
|
8048
|
+
const dotIdx = fieldOrPath.indexOf('.');
|
|
8049
|
+
if (dotIdx <= 0 || dotIdx >= fieldOrPath.length - 1) {
|
|
8050
|
+
return fieldOrPath;
|
|
8051
|
+
}
|
|
8052
|
+
const prefix = fieldOrPath.slice(0, dotIdx).toLowerCase();
|
|
8053
|
+
if (prefix === 'draft' ||
|
|
8054
|
+
prefix === 'current' ||
|
|
8055
|
+
prefix === 'facts' ||
|
|
8056
|
+
prefix === 'context' ||
|
|
8057
|
+
prefix === 'neighborhood') {
|
|
8058
|
+
return fieldOrPath.slice(dotIdx + 1);
|
|
8059
|
+
}
|
|
8060
|
+
return fieldOrPath;
|
|
8061
|
+
}
|
|
8062
|
+
function isRawFieldKeyFallback(label, key) {
|
|
8063
|
+
if (!label) {
|
|
8064
|
+
return true;
|
|
8065
|
+
}
|
|
8066
|
+
return label === key || label === stripKnownFieldPrefix(key);
|
|
8067
|
+
}
|
|
8068
|
+
function resolveHumanFieldLabel(fieldOrPath, targetFieldLabels, factPathLabels, catalogFieldLabels) {
|
|
8069
|
+
const clean = asTrimmedText(fieldOrPath);
|
|
8070
|
+
if (!clean) {
|
|
8071
|
+
return undefined;
|
|
8072
|
+
}
|
|
8073
|
+
const direct = asTrimmedText(targetFieldLabels?.[clean]) ??
|
|
8074
|
+
asTrimmedText(factPathLabels?.[clean]) ??
|
|
8075
|
+
asTrimmedText(catalogFieldLabels?.[clean]);
|
|
8076
|
+
if (direct) {
|
|
8077
|
+
return direct;
|
|
8078
|
+
}
|
|
8079
|
+
const stripped = stripKnownFieldPrefix(clean);
|
|
8080
|
+
if (stripped !== clean) {
|
|
8081
|
+
return (asTrimmedText(targetFieldLabels?.[stripped]) ??
|
|
8082
|
+
asTrimmedText(factPathLabels?.[stripped]) ??
|
|
8083
|
+
asTrimmedText(catalogFieldLabels?.[stripped]));
|
|
8084
|
+
}
|
|
8085
|
+
return undefined;
|
|
8086
|
+
}
|
|
8087
|
+
function enrichRuleSetsWithFieldSchemas(ruleSets, fields) {
|
|
8088
|
+
if (!ruleSets.length || !fields.length) {
|
|
8089
|
+
return ruleSets;
|
|
8090
|
+
}
|
|
8091
|
+
const schemaLabelByName = new Map();
|
|
8092
|
+
for (const field of fields) {
|
|
8093
|
+
const name = asTrimmedText(field?.name);
|
|
8094
|
+
const label = asTrimmedText(field?.label);
|
|
8095
|
+
if (name && label && !schemaLabelByName.has(name)) {
|
|
8096
|
+
schemaLabelByName.set(name, label);
|
|
8097
|
+
}
|
|
8098
|
+
}
|
|
8099
|
+
if (schemaLabelByName.size === 0) {
|
|
8100
|
+
return ruleSets;
|
|
8101
|
+
}
|
|
8102
|
+
const lookupSchemaLabel = (fieldOrPath) => {
|
|
8103
|
+
if (!fieldOrPath) {
|
|
8104
|
+
return undefined;
|
|
8105
|
+
}
|
|
8106
|
+
return (schemaLabelByName.get(fieldOrPath) ??
|
|
8107
|
+
schemaLabelByName.get(stripKnownFieldPrefix(fieldOrPath)));
|
|
8108
|
+
};
|
|
8109
|
+
return ruleSets.map((ruleSet) => {
|
|
8110
|
+
const nextTargetFieldLabels = {
|
|
8111
|
+
...(ruleSet.targetFieldLabels ?? {}),
|
|
8112
|
+
};
|
|
8113
|
+
for (const targetField of ruleSet.targetFields) {
|
|
8114
|
+
const existing = asTrimmedText(nextTargetFieldLabels[targetField]);
|
|
8115
|
+
const schemaLabel = lookupSchemaLabel(targetField);
|
|
8116
|
+
if (schemaLabel && isRawFieldKeyFallback(existing, targetField)) {
|
|
8117
|
+
nextTargetFieldLabels[targetField] = schemaLabel;
|
|
8118
|
+
}
|
|
8119
|
+
}
|
|
8120
|
+
const nextFactPathLabels = {
|
|
8121
|
+
...(ruleSet.referencedFactPathLabels ?? {}),
|
|
8122
|
+
};
|
|
8123
|
+
for (const paths of Object.values(ruleSet.factPathsByRoot)) {
|
|
8124
|
+
for (const path of paths) {
|
|
8125
|
+
const existing = asTrimmedText(nextFactPathLabels[path]);
|
|
8126
|
+
const schemaLabel = lookupSchemaLabel(path);
|
|
8127
|
+
if (schemaLabel && isRawFieldKeyFallback(existing, path)) {
|
|
8128
|
+
nextFactPathLabels[path] = schemaLabel;
|
|
8129
|
+
}
|
|
8130
|
+
}
|
|
8131
|
+
}
|
|
8132
|
+
const nextBindings = ruleSet.bindings.map((binding) => {
|
|
8133
|
+
const bindingTarget = asTrimmedText(binding.targetField);
|
|
8134
|
+
let nextTargetLabel = asTrimmedText(binding.targetFieldLabel) ?? undefined;
|
|
8135
|
+
if (bindingTarget) {
|
|
8136
|
+
const fromSetOrSchema = asTrimmedText(nextTargetFieldLabels[bindingTarget]) ??
|
|
8137
|
+
lookupSchemaLabel(bindingTarget);
|
|
8138
|
+
if (fromSetOrSchema && isRawFieldKeyFallback(nextTargetLabel, bindingTarget)) {
|
|
8139
|
+
nextTargetLabel = fromSetOrSchema;
|
|
8140
|
+
if (isRawFieldKeyFallback(nextTargetFieldLabels[bindingTarget], bindingTarget)) {
|
|
8141
|
+
nextTargetFieldLabels[bindingTarget] = fromSetOrSchema;
|
|
8142
|
+
}
|
|
8143
|
+
}
|
|
8144
|
+
}
|
|
8145
|
+
const bindingFactLabels = {
|
|
8146
|
+
...normalizeStringMap(binding.referencedFactPathLabels),
|
|
8147
|
+
};
|
|
8148
|
+
for (const path of binding.referencedFactPaths ?? []) {
|
|
8149
|
+
const existing = asTrimmedText(bindingFactLabels[path]);
|
|
8150
|
+
const fallbackLabel = asTrimmedText(nextFactPathLabels[path]) ?? lookupSchemaLabel(path);
|
|
8151
|
+
if (fallbackLabel && isRawFieldKeyFallback(existing, path)) {
|
|
8152
|
+
bindingFactLabels[path] = fallbackLabel;
|
|
8153
|
+
}
|
|
8154
|
+
}
|
|
8155
|
+
return {
|
|
8156
|
+
...binding,
|
|
8157
|
+
...(nextTargetLabel ? { targetFieldLabel: nextTargetLabel } : {}),
|
|
8158
|
+
...(Object.keys(bindingFactLabels).length > 0
|
|
8159
|
+
? { referencedFactPathLabels: bindingFactLabels }
|
|
8160
|
+
: {}),
|
|
8161
|
+
};
|
|
8162
|
+
});
|
|
8163
|
+
return {
|
|
8164
|
+
...ruleSet,
|
|
8165
|
+
bindings: nextBindings,
|
|
8166
|
+
...(Object.keys(nextTargetFieldLabels).length > 0
|
|
8167
|
+
? { targetFieldLabels: nextTargetFieldLabels }
|
|
8168
|
+
: {}),
|
|
8169
|
+
...(Object.keys(nextFactPathLabels).length > 0
|
|
8170
|
+
? { referencedFactPathLabels: nextFactPathLabels }
|
|
8171
|
+
: {}),
|
|
8172
|
+
};
|
|
8173
|
+
});
|
|
8174
|
+
}
|
|
7826
8175
|
function inferFieldNameFromNodeKey(nodeKey) {
|
|
7827
8176
|
const marker = '.field.';
|
|
7828
8177
|
const idx = nodeKey.indexOf(marker);
|
|
@@ -7923,9 +8272,11 @@ function extractDomainCatalogRuleCatalog(catalog, requestedResourceKey) {
|
|
|
7923
8272
|
governance: [],
|
|
7924
8273
|
};
|
|
7925
8274
|
}
|
|
7926
|
-
const
|
|
8275
|
+
const rawRuleSets = [];
|
|
7927
8276
|
const facts = [];
|
|
7928
8277
|
const nodesByKey = new Map();
|
|
8278
|
+
const catalogFieldLabels = {};
|
|
8279
|
+
const catalogFactLabels = {};
|
|
7929
8280
|
for (const node of catalog.nodes) {
|
|
7930
8281
|
const metadata = asPlainRecord(node.metadata);
|
|
7931
8282
|
const nodeResourceKey = asTrimmedText(metadata?.['resourceKey']);
|
|
@@ -7961,47 +8312,154 @@ function extractDomainCatalogRuleCatalog(catalog, requestedResourceKey) {
|
|
|
7961
8312
|
}
|
|
7962
8313
|
}
|
|
7963
8314
|
}
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
8315
|
+
rawRuleSets.push({
|
|
8316
|
+
node,
|
|
8317
|
+
ruleMeta,
|
|
8318
|
+
nodeResourceKey,
|
|
7967
8319
|
ruleSetKey,
|
|
7968
|
-
operationKey: asTrimmedText(ruleMeta.operationKey),
|
|
7969
|
-
label: asTrimmedText(node.label) || ruleSetKey,
|
|
7970
|
-
description: node.description ?? null,
|
|
7971
|
-
domainKey: asTrimmedText(ruleMeta.domainKey),
|
|
7972
|
-
boundedContextKey: asTrimmedText(ruleMeta.boundedContextKey),
|
|
7973
|
-
version: typeof ruleMeta.version === 'number' ? ruleMeta.version : undefined,
|
|
7974
|
-
failPolicy: asTrimmedText(ruleMeta.failPolicy),
|
|
7975
|
-
availableRoots: Array.isArray(ruleMeta.availableRoots)
|
|
7976
|
-
? ruleMeta.availableRoots.filter((r) => typeof r === 'string')
|
|
7977
|
-
: [],
|
|
7978
|
-
conceptRoots: Array.isArray(ruleMeta.conceptRoots)
|
|
7979
|
-
? ruleMeta.conceptRoots.filter((r) => typeof r === 'string')
|
|
7980
|
-
: [],
|
|
7981
8320
|
factPathsByRoot,
|
|
7982
|
-
slots: Array.isArray(ruleMeta.slots) ? ruleMeta.slots : [],
|
|
7983
|
-
bindings: Array.isArray(ruleMeta.rules) ? ruleMeta.rules : [],
|
|
7984
|
-
reasonCodes: Array.isArray(ruleMeta.reasonCodes)
|
|
7985
|
-
? ruleMeta.reasonCodes.filter((c) => typeof c === 'string')
|
|
7986
|
-
: [],
|
|
7987
|
-
targetFields: Array.isArray(ruleMeta.targetFields)
|
|
7988
|
-
? ruleMeta.targetFields.filter((f) => typeof f === 'string')
|
|
7989
|
-
: [],
|
|
7990
8321
|
});
|
|
7991
8322
|
continue;
|
|
7992
8323
|
}
|
|
8324
|
+
if (node.nodeType === 'field') {
|
|
8325
|
+
const fieldName = asTrimmedText(metadata?.['fieldName']) ?? inferFieldNameFromNodeKey(node.nodeKey);
|
|
8326
|
+
const fieldLabel = asTrimmedText(node.label);
|
|
8327
|
+
if (fieldName && fieldLabel && !catalogFieldLabels[fieldName]) {
|
|
8328
|
+
catalogFieldLabels[fieldName] = fieldLabel;
|
|
8329
|
+
}
|
|
8330
|
+
continue;
|
|
8331
|
+
}
|
|
7993
8332
|
if (node.nodeType === 'fact') {
|
|
7994
8333
|
const factMeta = metadata;
|
|
8334
|
+
const factPath = asTrimmedText(metadata?.['factPath']);
|
|
8335
|
+
const factLabel = asTrimmedText(node.label) || node.nodeKey;
|
|
8336
|
+
if (factPath && factLabel && !catalogFactLabels[factPath]) {
|
|
8337
|
+
catalogFactLabels[factPath] = factLabel;
|
|
8338
|
+
}
|
|
7995
8339
|
facts.push({
|
|
7996
8340
|
key: node.nodeKey,
|
|
7997
|
-
label:
|
|
8341
|
+
label: factLabel,
|
|
7998
8342
|
description: node.description ?? null,
|
|
7999
|
-
factPath
|
|
8343
|
+
factPath,
|
|
8000
8344
|
dataType: asTrimmedText(factMeta?.dataType),
|
|
8001
8345
|
unit: asTrimmedText(factMeta?.unit),
|
|
8002
8346
|
});
|
|
8003
8347
|
}
|
|
8004
8348
|
}
|
|
8349
|
+
const ruleSets = rawRuleSets.map(({ node, ruleMeta, nodeResourceKey, ruleSetKey, factPathsByRoot }) => {
|
|
8350
|
+
const targetFields = Array.isArray(ruleMeta.targetFields)
|
|
8351
|
+
? ruleMeta.targetFields.filter((f) => typeof f === 'string')
|
|
8352
|
+
: [];
|
|
8353
|
+
const explicitTargetLabels = normalizeStringMap(ruleMeta.targetFieldLabels);
|
|
8354
|
+
const targetFieldLabels = {};
|
|
8355
|
+
for (const field of targetFields) {
|
|
8356
|
+
const resolved = resolveHumanFieldLabel(field, explicitTargetLabels, undefined, catalogFieldLabels);
|
|
8357
|
+
if (resolved) {
|
|
8358
|
+
targetFieldLabels[field] = resolved;
|
|
8359
|
+
}
|
|
8360
|
+
}
|
|
8361
|
+
for (const [k, v] of Object.entries(explicitTargetLabels)) {
|
|
8362
|
+
targetFieldLabels[k] = v;
|
|
8363
|
+
}
|
|
8364
|
+
const explicitFactLabels = normalizeStringMap(ruleMeta.referencedFactPathLabels);
|
|
8365
|
+
const referencedFactPathLabels = {
|
|
8366
|
+
...explicitFactLabels,
|
|
8367
|
+
};
|
|
8368
|
+
const allFactPaths = new Set([
|
|
8369
|
+
...(Array.isArray(ruleMeta.referencedFactPaths)
|
|
8370
|
+
? ruleMeta.referencedFactPaths.filter((p) => typeof p === 'string')
|
|
8371
|
+
: []),
|
|
8372
|
+
...Object.values(factPathsByRoot).flat(),
|
|
8373
|
+
]);
|
|
8374
|
+
for (const factPath of allFactPaths) {
|
|
8375
|
+
if (!referencedFactPathLabels[factPath]) {
|
|
8376
|
+
const resolved = resolveHumanFieldLabel(factPath, targetFieldLabels, catalogFactLabels, catalogFieldLabels);
|
|
8377
|
+
if (resolved) {
|
|
8378
|
+
referencedFactPathLabels[factPath] = resolved;
|
|
8379
|
+
}
|
|
8380
|
+
}
|
|
8381
|
+
}
|
|
8382
|
+
const slots = Array.isArray(ruleMeta.slots)
|
|
8383
|
+
? ruleMeta.slots.map((slot) => {
|
|
8384
|
+
const doc = normalizeRuleDocumentation(slot);
|
|
8385
|
+
const legal = normalizeRuleLegalBasisList(slot.legalBasis ?? doc?.legalBasis);
|
|
8386
|
+
return {
|
|
8387
|
+
...slot,
|
|
8388
|
+
...(doc ? { documentation: doc } : {}),
|
|
8389
|
+
...(legal.length > 0 ? { legalBasis: legal } : {}),
|
|
8390
|
+
};
|
|
8391
|
+
})
|
|
8392
|
+
: [];
|
|
8393
|
+
const bindings = Array.isArray(ruleMeta.rules)
|
|
8394
|
+
? ruleMeta.rules.map((binding) => {
|
|
8395
|
+
const doc = normalizeRuleDocumentation(binding);
|
|
8396
|
+
const legal = normalizeRuleLegalBasisList(binding.legalBasis ?? doc?.legalBasis);
|
|
8397
|
+
const explicitBindingTargetLabel = asTrimmedText(binding.targetFieldLabel);
|
|
8398
|
+
const resolvedTargetLabel = explicitBindingTargetLabel ??
|
|
8399
|
+
resolveHumanFieldLabel(binding.targetField, targetFieldLabels, referencedFactPathLabels, catalogFieldLabels);
|
|
8400
|
+
if (binding.targetField && resolvedTargetLabel && !targetFieldLabels[binding.targetField]) {
|
|
8401
|
+
targetFieldLabels[binding.targetField] = resolvedTargetLabel;
|
|
8402
|
+
}
|
|
8403
|
+
const bindingFactLabels = {
|
|
8404
|
+
...normalizeStringMap(binding.referencedFactPathLabels),
|
|
8405
|
+
};
|
|
8406
|
+
for (const path of binding.referencedFactPaths ?? []) {
|
|
8407
|
+
if (!bindingFactLabels[path]) {
|
|
8408
|
+
const resolved = resolveHumanFieldLabel(path, targetFieldLabels, referencedFactPathLabels, catalogFieldLabels);
|
|
8409
|
+
if (resolved) {
|
|
8410
|
+
bindingFactLabels[path] = resolved;
|
|
8411
|
+
}
|
|
8412
|
+
}
|
|
8413
|
+
}
|
|
8414
|
+
return {
|
|
8415
|
+
...binding,
|
|
8416
|
+
...(doc ? { documentation: doc } : {}),
|
|
8417
|
+
...(legal.length > 0 ? { legalBasis: legal } : {}),
|
|
8418
|
+
...(resolvedTargetLabel ? { targetFieldLabel: resolvedTargetLabel } : {}),
|
|
8419
|
+
...(Object.keys(bindingFactLabels).length > 0
|
|
8420
|
+
? { referencedFactPathLabels: bindingFactLabels }
|
|
8421
|
+
: {}),
|
|
8422
|
+
};
|
|
8423
|
+
})
|
|
8424
|
+
: [];
|
|
8425
|
+
const ruleSetDoc = normalizeRuleDocumentation(ruleMeta.documentation ?? {
|
|
8426
|
+
summary: asTrimmedText(ruleMeta['summary']),
|
|
8427
|
+
whenApplies: asTrimmedText(ruleMeta['whenApplies']),
|
|
8428
|
+
rationale: asTrimmedText(ruleMeta['rationale']),
|
|
8429
|
+
legalBasis: ruleMeta['legalBasis'],
|
|
8430
|
+
customizationGuidance: asTrimmedText(ruleMeta['customizationGuidance']),
|
|
8431
|
+
});
|
|
8432
|
+
return {
|
|
8433
|
+
nodeKey: node.nodeKey,
|
|
8434
|
+
resourceKey: nodeResourceKey || resolvedResourceKey,
|
|
8435
|
+
ruleSetKey,
|
|
8436
|
+
operationKey: asTrimmedText(ruleMeta.operationKey),
|
|
8437
|
+
label: asTrimmedText(node.label) || ruleSetKey,
|
|
8438
|
+
description: node.description ?? null,
|
|
8439
|
+
domainKey: asTrimmedText(ruleMeta.domainKey),
|
|
8440
|
+
boundedContextKey: asTrimmedText(ruleMeta.boundedContextKey),
|
|
8441
|
+
version: typeof ruleMeta.version === 'number' ? ruleMeta.version : undefined,
|
|
8442
|
+
failPolicy: asTrimmedText(ruleMeta.failPolicy),
|
|
8443
|
+
availableRoots: Array.isArray(ruleMeta.availableRoots)
|
|
8444
|
+
? ruleMeta.availableRoots.filter((r) => typeof r === 'string')
|
|
8445
|
+
: [],
|
|
8446
|
+
conceptRoots: Array.isArray(ruleMeta.conceptRoots)
|
|
8447
|
+
? ruleMeta.conceptRoots.filter((r) => typeof r === 'string')
|
|
8448
|
+
: [],
|
|
8449
|
+
factPathsByRoot,
|
|
8450
|
+
slots,
|
|
8451
|
+
bindings,
|
|
8452
|
+
reasonCodes: Array.isArray(ruleMeta.reasonCodes)
|
|
8453
|
+
? ruleMeta.reasonCodes.filter((c) => typeof c === 'string')
|
|
8454
|
+
: [],
|
|
8455
|
+
targetFields,
|
|
8456
|
+
...(ruleSetDoc ? { documentation: ruleSetDoc } : {}),
|
|
8457
|
+
...(Object.keys(targetFieldLabels).length > 0 ? { targetFieldLabels } : {}),
|
|
8458
|
+
...(Object.keys(referencedFactPathLabels).length > 0
|
|
8459
|
+
? { referencedFactPathLabels }
|
|
8460
|
+
: {}),
|
|
8461
|
+
};
|
|
8462
|
+
});
|
|
8005
8463
|
const effectiveResourceKey = resolvedResourceKey || ruleSets[0]?.resourceKey || '';
|
|
8006
8464
|
const governance = [];
|
|
8007
8465
|
const governedNodeKeys = new Set();
|
|
@@ -8108,6 +8566,7 @@ function extractDomainCatalogRuleCatalog(catalog, requestedResourceKey) {
|
|
|
8108
8566
|
ruleSets,
|
|
8109
8567
|
facts,
|
|
8110
8568
|
governance,
|
|
8569
|
+
...(Object.keys(catalogFieldLabels).length > 0 ? { fieldLabels: catalogFieldLabels } : {}),
|
|
8111
8570
|
};
|
|
8112
8571
|
}
|
|
8113
8572
|
/**
|
|
@@ -8169,9 +8628,14 @@ const DECISION_INSPECTOR_I18N_NAMESPACE = 'decisionInspector';
|
|
|
8169
8628
|
const PT_BR_CATALOG = {
|
|
8170
8629
|
'drawer.title': 'Inspeção de Decisão e Governança',
|
|
8171
8630
|
'drawer.titleWithResource': 'Decisão e Governança · {{resource}}',
|
|
8172
|
-
'drawer.subtitle': 'Regras
|
|
8631
|
+
'drawer.subtitle': 'Regras de negócio explicadas em linguagem simples, ações disponíveis e proteção de dados',
|
|
8173
8632
|
'trigger.resourceButton': 'Regras de Negócio',
|
|
8174
8633
|
'trigger.inspectViolation': 'Inspecionar regra aplicada',
|
|
8634
|
+
'viewMode.ariaLabel': 'Alternar entre Visão de Negócio e Modo Técnico',
|
|
8635
|
+
'viewMode.business': 'Visão de Negócio',
|
|
8636
|
+
'viewMode.technical': 'Modo Técnico',
|
|
8637
|
+
'viewMode.toggleToTechnical': 'Mostrar identificadores e metadados técnicos',
|
|
8638
|
+
'viewMode.toggleToBusiness': 'Voltar para a Visão de Negócio simplificada',
|
|
8175
8639
|
'lens.ariaLabel': 'Lentes de inspeção semântica do recurso',
|
|
8176
8640
|
'lens.business': 'Regras de Negócio',
|
|
8177
8641
|
'lens.capabilities': 'Ciclo de Vida e Ações',
|
|
@@ -8182,33 +8646,78 @@ const PT_BR_CATALOG = {
|
|
|
8182
8646
|
'state.errorTitle': 'Não foi possível carregar o plano de decisão',
|
|
8183
8647
|
'state.errorDescription': 'Verifique a disponibilidade do catálogo semântico (/schemas/domain) ou tente novamente.',
|
|
8184
8648
|
'state.retry': 'Tentar novamente',
|
|
8185
|
-
'violation.bannerTitle': '
|
|
8649
|
+
'violation.bannerTitle': 'Regra acionada durante a operação',
|
|
8186
8650
|
'violation.reasonCode': 'Código',
|
|
8187
|
-
'violation.stage': '
|
|
8188
|
-
'violation.source': '
|
|
8189
|
-
'violation.slot': '
|
|
8651
|
+
'violation.stage': 'Etapa',
|
|
8652
|
+
'violation.source': 'Origem',
|
|
8653
|
+
'violation.slot': 'Ponto de decisão',
|
|
8190
8654
|
'violation.lineage': 'Linhagem normativa',
|
|
8191
8655
|
'violation.targetField': 'Campo afetado',
|
|
8192
|
-
'operations.label': '
|
|
8656
|
+
'operations.label': 'Quando estas regras atuam',
|
|
8193
8657
|
'operations.defaultOperation': 'Padrão',
|
|
8658
|
+
'operations.op.CREATE': 'Ao cadastrar',
|
|
8659
|
+
'operations.op.UPDATE': 'Ao alterar',
|
|
8660
|
+
'operations.op.DELETE': 'Ao excluir',
|
|
8661
|
+
'operations.op.APPROVE': 'Ao aprovar',
|
|
8662
|
+
'operations.op.CANCEL': 'Ao cancelar',
|
|
8663
|
+
'operations.op.DEFAULT': 'Operação padrão',
|
|
8664
|
+
'failPolicy.FAIL_CLOSED': 'Bloqueio preventivo ativo',
|
|
8665
|
+
'failPolicy.FAIL_OPEN': 'Prossegue com alerta',
|
|
8666
|
+
'failPolicy.FAIL_FAST': 'Interrupção imediata',
|
|
8194
8667
|
'stages.ariaLabel': 'Cinco estágios canônicos de decisão',
|
|
8195
8668
|
'stages.emptyStage': 'Sem slots neste estágio',
|
|
8669
|
+
'stages.emptyStagesCollapsed': 'Etapas sem regras ativas neste fluxo:',
|
|
8670
|
+
'stages.emptyStageCollapsedItem': '{{order}} · {{title}} (sem regras)',
|
|
8196
8671
|
'stages.bindingsCount': '{{count}} regras vinculadas',
|
|
8197
8672
|
'stages.singleBinding': '1 regra vinculada',
|
|
8673
|
+
'stages.rulesCount': '{{count}} regras ativas',
|
|
8674
|
+
'stages.singleRule': '1 regra ativa',
|
|
8675
|
+
'stages.noRulesInStage': 'Sem regras cadastradas',
|
|
8198
8676
|
'stages.violatedBadge': 'Acionado',
|
|
8199
|
-
'slotDetail.heading': '
|
|
8200
|
-
'slotDetail.overridePolicy': '
|
|
8677
|
+
'slotDetail.heading': 'Explicação da Regra Selecionada',
|
|
8678
|
+
'slotDetail.overridePolicy': 'Autonomia do Órgão',
|
|
8201
8679
|
'slotDetail.aggregation': 'Agregação',
|
|
8202
8680
|
'slotDetail.cardinality': 'Cardinalidade',
|
|
8203
8681
|
'slotDetail.templateKey': 'Template Parametrizável',
|
|
8204
|
-
'slotDetail.noBindings': 'Este
|
|
8682
|
+
'slotDetail.noBindings': 'Este ponto de decisão está preparado para receber regras do órgão, mas ainda não possui regras ativas.',
|
|
8683
|
+
'ruleDetail.whatItChecks': 'O que verifica',
|
|
8684
|
+
'ruleDetail.whenApplies': 'Quando se aplica',
|
|
8685
|
+
'ruleDetail.whyItExists': 'Por que existe',
|
|
8686
|
+
'ruleDetail.legalBasis': 'Amparo legal',
|
|
8687
|
+
'ruleDetail.involvedFields': 'Campos envolvidos',
|
|
8688
|
+
'ruleDetail.operatorMessage': 'Mensagem ao operador',
|
|
8689
|
+
'ruleDetail.studioAction': 'Ação contextual para o Studio',
|
|
8690
|
+
'ruleDetail.curationFallbackBadge': 'Explicação estrutural automática',
|
|
8691
|
+
'ruleDetail.openLegalRef': 'Consultar norma',
|
|
8692
|
+
'ruleDetail.noLegalBasis': 'Nenhum amparo legal específico registrado para esta regra.',
|
|
8693
|
+
'ruleDetail.noInvolvedFields': 'Nenhum campo específico vinculado a esta regra.',
|
|
8694
|
+
'ruleDetail.noOperatorMessage': 'Nenhuma mensagem específica configurada; utiliza a orientação padrão da operação.',
|
|
8695
|
+
'ruleDetail.fallbackSummaryWithMessage': 'Verifica os critérios desta etapa e, em caso de impedimento, orienta: "{{message}}".',
|
|
8696
|
+
'ruleDetail.fallbackSummaryGeneric': 'Avalia os critérios configurados para o ponto de decisão "{{slot}}".',
|
|
8697
|
+
'ruleDetail.fallbackWhenApplies': 'Avaliada automaticamente {{operation}} na etapa "{{stage}}".',
|
|
8698
|
+
'ruleDetail.fallbackWhenAppliesGeneric': 'Avaliada automaticamente na etapa "{{stage}}".',
|
|
8699
|
+
'ruleDetail.fallbackRationale': 'Assegura conformidade normativa e consistência operacional antes de concluir o registro.',
|
|
8700
|
+
'ruleDetail.openRuleInStudio': 'Abrir este ponto de decisão no Studio',
|
|
8205
8701
|
'binding.reasonCode': 'Motivo',
|
|
8206
8702
|
'binding.targetField': 'Campo Alvo',
|
|
8207
8703
|
'binding.lineage': 'Linhagem',
|
|
8208
8704
|
'binding.factPaths': 'Fatos avaliados',
|
|
8209
|
-
'roots.heading': '
|
|
8210
|
-
'roots.empty': 'Nenhum caminho de fato referenciado explicitamente.',
|
|
8211
|
-
'facts.heading': 'Indicadores Calculados do Recurso
|
|
8705
|
+
'roots.heading': 'Indicadores e Dados Considerados',
|
|
8706
|
+
'roots.empty': 'Nenhum indicador ou caminho de fato referenciado explicitamente.',
|
|
8707
|
+
'facts.heading': 'Indicadores Calculados do Recurso',
|
|
8708
|
+
'technical.detailsHeading': 'Metadados técnicos de auditoria',
|
|
8709
|
+
'technical.operationKey': 'Operação',
|
|
8710
|
+
'technical.ruleSetKey': 'RuleSet',
|
|
8711
|
+
'technical.slotKey': 'Slot',
|
|
8712
|
+
'technical.bindingKey': 'Binding',
|
|
8713
|
+
'technical.stageCode': 'Estágio',
|
|
8714
|
+
'technical.failPolicy': 'Política de falha',
|
|
8715
|
+
'technical.aggregationPolicy': 'Agregação',
|
|
8716
|
+
'technical.falseDecision': 'Decisão quando falso',
|
|
8717
|
+
'technical.reasonCode': 'Código de motivo',
|
|
8718
|
+
'technical.factPaths': 'Caminhos de fatos',
|
|
8719
|
+
'technical.rootsHeading': 'Raízes ontológicas',
|
|
8720
|
+
'technical.origin': 'Origem',
|
|
8212
8721
|
'capabilities.scopeCollection': 'Escopo de Coleção',
|
|
8213
8722
|
'capabilities.scopeItem': 'Registro #{{id}}',
|
|
8214
8723
|
'capabilities.operationsHeading': 'Capacidades Canônicas do Recurso',
|
|
@@ -8289,18 +8798,25 @@ const PT_BR_CATALOG = {
|
|
|
8289
8798
|
'governance.category.HEALTH': 'Saúde / Prontuário',
|
|
8290
8799
|
'governance.category.HEALTH_MEDICAL': 'Saúde / Ocupacional',
|
|
8291
8800
|
'governance.category.OPERATIONAL': 'Operacional',
|
|
8292
|
-
'studio.handoffHint': 'Parametrização por
|
|
8801
|
+
'studio.handoffHint': 'Parametrização por órgão, simulação e aprovação em 4 olhos ocorrem na estação dedicada.',
|
|
8293
8802
|
'studio.openAction': 'Governar no Praxis Rules Studio',
|
|
8294
|
-
'
|
|
8295
|
-
'
|
|
8296
|
-
'
|
|
8297
|
-
'
|
|
8298
|
-
'
|
|
8299
|
-
'
|
|
8300
|
-
'
|
|
8301
|
-
'stage.
|
|
8302
|
-
'stage.
|
|
8303
|
-
'stage.
|
|
8803
|
+
'studio.policyGuidance.FORBIDDEN': 'Regra fixa de segurança e integridade. Não permite alterações ou parametrizações pelo órgão.',
|
|
8804
|
+
'studio.policyGuidance.LOCKED': 'Regra protegida pelo produto. Somente consulta; alterações exigem atualização de versão.',
|
|
8805
|
+
'studio.policyGuidance.RESTRICT_ONLY': 'O órgão pode tornar esta regra mais restritiva no Studio, mantendo a proteção mínima obrigatória.',
|
|
8806
|
+
'studio.policyGuidance.PARAMETERIZABLE': 'Os limites e parâmetros desta regra podem ser ajustados pelo órgão no Studio sem alterar o código.',
|
|
8807
|
+
'studio.policyGuidance.EXTENSIBLE': 'Permite adicionar novas regras complementares neste ponto de decisão pelo Studio.',
|
|
8808
|
+
'studio.policyGuidance.REPLACEABLE': 'Regra padrão substituível: o órgão pode personalizar ou substituir a lógica aplicada no Studio.',
|
|
8809
|
+
'studio.policyGuidance.DEFAULT': 'Consulte as permissões de parametrização e extensão deste ponto de decisão no Studio.',
|
|
8810
|
+
'stage.PROTECTED_GUARD.title': 'Pré-requisitos obrigatórios',
|
|
8811
|
+
'stage.PROTECTED_GUARD.subtitle': 'Condições de segurança e escopo verificadas antes de qualquer regra',
|
|
8812
|
+
'stage.DOMAIN_DECISION.title': 'Regras de negócio',
|
|
8813
|
+
'stage.DOMAIN_DECISION.subtitle': 'Regras centrais que definem elegibilidade e limites da operação',
|
|
8814
|
+
'stage.POST_DECISION.title': 'Validações cruzadas',
|
|
8815
|
+
'stage.POST_DECISION.subtitle': 'Consistência entre campos, saldos e regras complementares',
|
|
8816
|
+
'stage.TRANSFORMATION_INTENT.title': 'Ajustes automáticos',
|
|
8817
|
+
'stage.TRANSFORMATION_INTENT.subtitle': 'Preenchimentos e cálculos automáticos propostos pela regra',
|
|
8818
|
+
'stage.EFFECT_INTENT.title': 'Consequências e registros',
|
|
8819
|
+
'stage.EFFECT_INTENT.subtitle': 'Notificações, auditoria e registros gerados após a decisão',
|
|
8304
8820
|
'policy.FORBIDDEN': 'Bloqueado (Produto)',
|
|
8305
8821
|
'policy.RESTRICT_ONLY': 'Restritivo (Só Restringe)',
|
|
8306
8822
|
'policy.LOCKED': 'Bloqueado (Produto)',
|
|
@@ -8320,9 +8836,14 @@ const PT_BR_CATALOG = {
|
|
|
8320
8836
|
const EN_US_CATALOG = {
|
|
8321
8837
|
'drawer.title': 'Decision & Governance Inspection',
|
|
8322
8838
|
'drawer.titleWithResource': 'Decision & Governance · {{resource}}',
|
|
8323
|
-
'drawer.subtitle': '
|
|
8839
|
+
'drawer.subtitle': 'Business rules in plain language, available actions, and data protection',
|
|
8324
8840
|
'trigger.resourceButton': 'Business Rules',
|
|
8325
8841
|
'trigger.inspectViolation': 'Inspect applied rule',
|
|
8842
|
+
'viewMode.ariaLabel': 'Switch between Business View and Technical Mode',
|
|
8843
|
+
'viewMode.business': 'Business View',
|
|
8844
|
+
'viewMode.technical': 'Technical Mode',
|
|
8845
|
+
'viewMode.toggleToTechnical': 'Show technical identifiers and metadata',
|
|
8846
|
+
'viewMode.toggleToBusiness': 'Back to simplified Business View',
|
|
8326
8847
|
'lens.ariaLabel': 'Semantic resource inspection lenses',
|
|
8327
8848
|
'lens.business': 'Business Rules',
|
|
8328
8849
|
'lens.capabilities': 'Lifecycle & Actions',
|
|
@@ -8333,33 +8854,78 @@ const EN_US_CATALOG = {
|
|
|
8333
8854
|
'state.errorTitle': 'Could not load the decision plan',
|
|
8334
8855
|
'state.errorDescription': 'Verify the availability of the semantic domain catalog (/schemas/domain) and try again.',
|
|
8335
8856
|
'state.retry': 'Try again',
|
|
8336
|
-
'violation.bannerTitle': '
|
|
8857
|
+
'violation.bannerTitle': 'Rule triggered during the operation',
|
|
8337
8858
|
'violation.reasonCode': 'Code',
|
|
8338
8859
|
'violation.stage': 'Stage',
|
|
8339
|
-
'violation.source': '
|
|
8340
|
-
'violation.slot': '
|
|
8860
|
+
'violation.source': 'Origin',
|
|
8861
|
+
'violation.slot': 'Decision point',
|
|
8341
8862
|
'violation.lineage': 'Normative lineage',
|
|
8342
8863
|
'violation.targetField': 'Affected field',
|
|
8343
|
-
'operations.label': '
|
|
8864
|
+
'operations.label': 'When these rules apply',
|
|
8344
8865
|
'operations.defaultOperation': 'Default',
|
|
8866
|
+
'operations.op.CREATE': 'On create',
|
|
8867
|
+
'operations.op.UPDATE': 'On update',
|
|
8868
|
+
'operations.op.DELETE': 'On delete',
|
|
8869
|
+
'operations.op.APPROVE': 'On approve',
|
|
8870
|
+
'operations.op.CANCEL': 'On cancel',
|
|
8871
|
+
'operations.op.DEFAULT': 'Default operation',
|
|
8872
|
+
'failPolicy.FAIL_CLOSED': 'Preventive lock active',
|
|
8873
|
+
'failPolicy.FAIL_OPEN': 'Proceed with warning',
|
|
8874
|
+
'failPolicy.FAIL_FAST': 'Immediate halt',
|
|
8345
8875
|
'stages.ariaLabel': 'Five canonical decision stages',
|
|
8346
8876
|
'stages.emptyStage': 'No slots in this stage',
|
|
8877
|
+
'stages.emptyStagesCollapsed': 'Stages without active rules in this flow:',
|
|
8878
|
+
'stages.emptyStageCollapsedItem': '{{order}} · {{title}} (no rules)',
|
|
8347
8879
|
'stages.bindingsCount': '{{count}} bound rules',
|
|
8348
8880
|
'stages.singleBinding': '1 bound rule',
|
|
8881
|
+
'stages.rulesCount': '{{count}} active rules',
|
|
8882
|
+
'stages.singleRule': '1 active rule',
|
|
8883
|
+
'stages.noRulesInStage': 'No rules configured',
|
|
8349
8884
|
'stages.violatedBadge': 'Triggered',
|
|
8350
|
-
'slotDetail.heading': '
|
|
8351
|
-
'slotDetail.overridePolicy': '
|
|
8885
|
+
'slotDetail.heading': 'Selected Rule Explanation',
|
|
8886
|
+
'slotDetail.overridePolicy': 'Tenant Autonomy',
|
|
8352
8887
|
'slotDetail.aggregation': 'Aggregation',
|
|
8353
8888
|
'slotDetail.cardinality': 'Cardinality',
|
|
8354
8889
|
'slotDetail.templateKey': 'Parameter Template',
|
|
8355
|
-
'slotDetail.noBindings': 'This
|
|
8890
|
+
'slotDetail.noBindings': 'This decision point is open for governed rules, with no active rules configured yet.',
|
|
8891
|
+
'ruleDetail.whatItChecks': 'What it checks',
|
|
8892
|
+
'ruleDetail.whenApplies': 'When it applies',
|
|
8893
|
+
'ruleDetail.whyItExists': 'Why it exists',
|
|
8894
|
+
'ruleDetail.legalBasis': 'Legal basis',
|
|
8895
|
+
'ruleDetail.involvedFields': 'Involved fields',
|
|
8896
|
+
'ruleDetail.operatorMessage': 'Operator message',
|
|
8897
|
+
'ruleDetail.studioAction': 'Contextual Studio action',
|
|
8898
|
+
'ruleDetail.curationFallbackBadge': 'Automatic structural explanation',
|
|
8899
|
+
'ruleDetail.openLegalRef': 'View reference',
|
|
8900
|
+
'ruleDetail.noLegalBasis': 'No specific legal basis recorded for this rule.',
|
|
8901
|
+
'ruleDetail.noInvolvedFields': 'No specific fields linked to this rule.',
|
|
8902
|
+
'ruleDetail.noOperatorMessage': 'No specific message configured; uses the default operation guidance.',
|
|
8903
|
+
'ruleDetail.fallbackSummaryWithMessage': 'Checks the criteria for this stage and, when blocked, informs: "{{message}}".',
|
|
8904
|
+
'ruleDetail.fallbackSummaryGeneric': 'Evaluates the criteria configured for decision point "{{slot}}".',
|
|
8905
|
+
'ruleDetail.fallbackWhenApplies': 'Evaluated automatically {{operation}} during stage "{{stage}}".',
|
|
8906
|
+
'ruleDetail.fallbackWhenAppliesGeneric': 'Evaluated automatically during stage "{{stage}}".',
|
|
8907
|
+
'ruleDetail.fallbackRationale': 'Ensures regulatory compliance and operational consistency before completing the record.',
|
|
8908
|
+
'ruleDetail.openRuleInStudio': 'Open this decision point in Studio',
|
|
8356
8909
|
'binding.reasonCode': 'Reason',
|
|
8357
8910
|
'binding.targetField': 'Target Field',
|
|
8358
8911
|
'binding.lineage': 'Lineage',
|
|
8359
8912
|
'binding.factPaths': 'Evaluated facts',
|
|
8360
|
-
'roots.heading': '
|
|
8913
|
+
'roots.heading': 'Indicators and Considered Data',
|
|
8361
8914
|
'roots.empty': 'No fact paths explicitly referenced.',
|
|
8362
|
-
'facts.heading': 'Computed Resource
|
|
8915
|
+
'facts.heading': 'Computed Resource Indicators',
|
|
8916
|
+
'technical.detailsHeading': 'Technical audit metadata',
|
|
8917
|
+
'technical.operationKey': 'Operation',
|
|
8918
|
+
'technical.ruleSetKey': 'RuleSet',
|
|
8919
|
+
'technical.slotKey': 'Slot',
|
|
8920
|
+
'technical.bindingKey': 'Binding',
|
|
8921
|
+
'technical.stageCode': 'Stage',
|
|
8922
|
+
'technical.failPolicy': 'Fail policy',
|
|
8923
|
+
'technical.aggregationPolicy': 'Aggregation',
|
|
8924
|
+
'technical.falseDecision': 'False decision',
|
|
8925
|
+
'technical.reasonCode': 'Reason code',
|
|
8926
|
+
'technical.factPaths': 'Fact paths',
|
|
8927
|
+
'technical.rootsHeading': 'Ontological roots',
|
|
8928
|
+
'technical.origin': 'Origin',
|
|
8363
8929
|
'capabilities.scopeCollection': 'Collection Scope',
|
|
8364
8930
|
'capabilities.scopeItem': 'Record #{{id}}',
|
|
8365
8931
|
'capabilities.operationsHeading': 'Canonical Resource Capabilities',
|
|
@@ -8442,16 +9008,23 @@ const EN_US_CATALOG = {
|
|
|
8442
9008
|
'governance.category.OPERATIONAL': 'Operational',
|
|
8443
9009
|
'studio.handoffHint': 'Tenant parameterization, simulation, and four-eyes approval run in the dedicated workstation.',
|
|
8444
9010
|
'studio.openAction': 'Govern in Praxis Rules Studio',
|
|
8445
|
-
'
|
|
8446
|
-
'
|
|
8447
|
-
'
|
|
8448
|
-
'
|
|
8449
|
-
'
|
|
8450
|
-
'
|
|
8451
|
-
'
|
|
8452
|
-
'stage.
|
|
8453
|
-
'stage.
|
|
8454
|
-
'stage.
|
|
9011
|
+
'studio.policyGuidance.FORBIDDEN': 'Fixed security and integrity rule. Does not allow tenant changes or parameterization.',
|
|
9012
|
+
'studio.policyGuidance.LOCKED': 'Product-locked rule. Read-only; changes require a product release.',
|
|
9013
|
+
'studio.policyGuidance.RESTRICT_ONLY': 'Tenants may tighten this rule in Studio while preserving the mandatory baseline safeguard.',
|
|
9014
|
+
'studio.policyGuidance.PARAMETERIZABLE': 'Rule limits and parameters can be tuned by the tenant in Studio without code changes.',
|
|
9015
|
+
'studio.policyGuidance.EXTENSIBLE': 'Allows adding complementary rules at this decision point in Studio.',
|
|
9016
|
+
'studio.policyGuidance.REPLACEABLE': 'Replaceable default rule: the tenant can customize or replace this logic in Studio.',
|
|
9017
|
+
'studio.policyGuidance.DEFAULT': 'Review parameterization and extension permissions for this decision point in Studio.',
|
|
9018
|
+
'stage.PROTECTED_GUARD.title': 'Mandatory prerequisites',
|
|
9019
|
+
'stage.PROTECTED_GUARD.subtitle': 'Security and scope conditions checked before any rule',
|
|
9020
|
+
'stage.DOMAIN_DECISION.title': 'Business rules',
|
|
9021
|
+
'stage.DOMAIN_DECISION.subtitle': 'Core rules defining operation eligibility and limits',
|
|
9022
|
+
'stage.POST_DECISION.title': 'Cross-checks',
|
|
9023
|
+
'stage.POST_DECISION.subtitle': 'Consistency across fields, balances, and complementary rules',
|
|
9024
|
+
'stage.TRANSFORMATION_INTENT.title': 'Automatic adjustments',
|
|
9025
|
+
'stage.TRANSFORMATION_INTENT.subtitle': 'Automatic values and calculations proposed by rules',
|
|
9026
|
+
'stage.EFFECT_INTENT.title': 'Consequences & records',
|
|
9027
|
+
'stage.EFFECT_INTENT.subtitle': 'Notifications, audit entries, and records generated after decision',
|
|
8455
9028
|
'policy.FORBIDDEN': 'Forbidden (Product)',
|
|
8456
9029
|
'policy.RESTRICT_ONLY': 'Restrict Only',
|
|
8457
9030
|
'policy.LOCKED': 'Locked (Product)',
|
|
@@ -9284,12 +9857,38 @@ function getPraxisStackedBarPaintStyle(segment, fallbackTone = 'neutral') {
|
|
|
9284
9857
|
color: paint,
|
|
9285
9858
|
};
|
|
9286
9859
|
}
|
|
9860
|
+
function isVisualizationEntrySuppressed(entry) {
|
|
9861
|
+
if (!entry || typeof entry !== 'object') {
|
|
9862
|
+
return false;
|
|
9863
|
+
}
|
|
9864
|
+
const obj = entry;
|
|
9865
|
+
return (obj.suppressed === true
|
|
9866
|
+
|| obj.privacySuppressed === true
|
|
9867
|
+
|| (obj.value === null && obj.state === 'suppressed'));
|
|
9868
|
+
}
|
|
9869
|
+
function countSuppressedEntries(entries) {
|
|
9870
|
+
if (!Array.isArray(entries)) {
|
|
9871
|
+
return 0;
|
|
9872
|
+
}
|
|
9873
|
+
let count = 0;
|
|
9874
|
+
for (const entry of entries) {
|
|
9875
|
+
if (isVisualizationEntrySuppressed(entry)) {
|
|
9876
|
+
count += 1;
|
|
9877
|
+
}
|
|
9878
|
+
}
|
|
9879
|
+
return count;
|
|
9880
|
+
}
|
|
9881
|
+
function resolvePreservedSuppressedCount(value) {
|
|
9882
|
+
return typeof value === 'number' && Number.isFinite(value) && value > 0
|
|
9883
|
+
? Math.trunc(value)
|
|
9884
|
+
: 0;
|
|
9885
|
+
}
|
|
9287
9886
|
function resolvePraxisStackedBarSegments(visualization) {
|
|
9288
9887
|
if (!visualization || visualization.kind !== 'stackedBar') {
|
|
9289
9888
|
return [];
|
|
9290
9889
|
}
|
|
9291
9890
|
if (Array.isArray(visualization.segments) && visualization.segments.length > 0) {
|
|
9292
|
-
return visualization.segments.filter((seg) => !seg
|
|
9891
|
+
return visualization.segments.filter((seg) => !isVisualizationEntrySuppressed(seg));
|
|
9293
9892
|
}
|
|
9294
9893
|
if (Array.isArray(visualization.items) && visualization.items.length > 0) {
|
|
9295
9894
|
const mapped = [];
|
|
@@ -9301,7 +9900,7 @@ function resolvePraxisStackedBarSegments(visualization) {
|
|
|
9301
9900
|
if (!item) {
|
|
9302
9901
|
return [];
|
|
9303
9902
|
}
|
|
9304
|
-
if (
|
|
9903
|
+
if (isVisualizationEntrySuppressed(item)) {
|
|
9305
9904
|
continue;
|
|
9306
9905
|
}
|
|
9307
9906
|
if (typeof item.value !== 'number' || !Number.isFinite(item.value) || item.value < 0) {
|
|
@@ -9409,11 +10008,7 @@ function normalizeStackedBarDistribution(value, surface) {
|
|
|
9409
10008
|
}
|
|
9410
10009
|
const parsedSegments = [];
|
|
9411
10010
|
const parsedItems = [];
|
|
9412
|
-
const preservedSuppressedCount =
|
|
9413
|
-
&& Number.isFinite(value.suppressedCount)
|
|
9414
|
-
&& value.suppressedCount > 0
|
|
9415
|
-
? Math.trunc(value.suppressedCount)
|
|
9416
|
-
: 0;
|
|
10011
|
+
const preservedSuppressedCount = resolvePreservedSuppressedCount(value.suppressedCount);
|
|
9417
10012
|
let suppressedCount = 0;
|
|
9418
10013
|
for (let i = 0; i < rawEntries.length; i++) {
|
|
9419
10014
|
if (!Object.prototype.hasOwnProperty.call(rawEntries, i)) {
|
|
@@ -9442,8 +10037,7 @@ function normalizeStackedBarDistribution(value, surface) {
|
|
|
9442
10037
|
};
|
|
9443
10038
|
}
|
|
9444
10039
|
const entryObj = rawEntry;
|
|
9445
|
-
if (entryObj
|
|
9446
|
-
|| (entryObj.value === null && entryObj.state === 'suppressed')) {
|
|
10040
|
+
if (isVisualizationEntrySuppressed(entryObj)) {
|
|
9447
10041
|
suppressedCount += 1;
|
|
9448
10042
|
continue;
|
|
9449
10043
|
}
|
|
@@ -9554,22 +10148,23 @@ function normalizePraxisPresentationVisualization(value) {
|
|
|
9554
10148
|
const normalizedTargetLabel = normalizeText$3(value.targetLabel);
|
|
9555
10149
|
const thresholdsObj = normalizeThresholds(value.thresholds);
|
|
9556
10150
|
const isTableCell = surface === 'table-cell';
|
|
10151
|
+
const normalizedPointsObj = normalizePoints(value.points);
|
|
9557
10152
|
let resolvedTone = tone;
|
|
9558
10153
|
let resolvedAriaLabel = ariaLabel;
|
|
9559
10154
|
if (!resolvedTone && thresholdsObj?.thresholds?.length) {
|
|
9560
10155
|
let evalVal = value.value;
|
|
9561
|
-
if (evalVal === undefined &&
|
|
9562
|
-
|
|
9563
|
-
if (typeof last === 'number' && Number.isFinite(last)) {
|
|
9564
|
-
evalVal = last;
|
|
9565
|
-
}
|
|
9566
|
-
else if (last && typeof last === 'object' && Number.isFinite(last.value)) {
|
|
9567
|
-
evalVal = last.value;
|
|
9568
|
-
}
|
|
10156
|
+
if (evalVal === undefined && normalizedPointsObj?.points?.length) {
|
|
10157
|
+
evalVal = normalizedPointsObj.points[normalizedPointsObj.points.length - 1].value;
|
|
9569
10158
|
}
|
|
9570
10159
|
else if (Array.isArray(evalVal) && evalVal.length > 0) {
|
|
9571
|
-
const
|
|
9572
|
-
|
|
10160
|
+
const visibleVals = evalVal.filter((entry) => !isVisualizationEntrySuppressed(entry));
|
|
10161
|
+
if (visibleVals.length > 0) {
|
|
10162
|
+
const last = visibleVals[visibleVals.length - 1];
|
|
10163
|
+
evalVal = typeof last === 'object' && last !== null && 'value' in last ? last.value : last;
|
|
10164
|
+
}
|
|
10165
|
+
else {
|
|
10166
|
+
evalVal = undefined;
|
|
10167
|
+
}
|
|
9573
10168
|
}
|
|
9574
10169
|
if (evalVal !== undefined && evalVal !== null) {
|
|
9575
10170
|
const resolution = resolvePraxisMicroVisualizationTone(evalVal, thresholdsObj.thresholds);
|
|
@@ -9583,6 +10178,7 @@ function normalizePraxisPresentationVisualization(value) {
|
|
|
9583
10178
|
}
|
|
9584
10179
|
if (kind === 'stackedBar') {
|
|
9585
10180
|
const stacked = normalizeStackedBarDistribution(value, surface);
|
|
10181
|
+
const stackedSuppressedCount = Math.max(stacked.suppressedCount ?? 0, countSuppressedEntries(value.points));
|
|
9586
10182
|
return {
|
|
9587
10183
|
kind,
|
|
9588
10184
|
fallbackText,
|
|
@@ -9611,14 +10207,14 @@ function normalizePraxisPresentationVisualization(value) {
|
|
|
9611
10207
|
...(normalizeExpression(value.targetLabelExpr, 'targetLabelExpr') ?? {}),
|
|
9612
10208
|
...(normalizeNumber(value.baseline, 'baseline') ?? {}),
|
|
9613
10209
|
...(normalizeExpression(value.baselineExpr, 'baselineExpr') ?? {}),
|
|
9614
|
-
...(
|
|
10210
|
+
...(normalizedPointsObj ?? {}),
|
|
9615
10211
|
...(normalizeExpression(value.pointsExpr, 'pointsExpr') ?? {}),
|
|
9616
10212
|
...(stacked.segments ? { segments: stacked.segments } : {}),
|
|
9617
10213
|
...(normalizeExpression(value.segmentsExpr, 'segmentsExpr') ?? {}),
|
|
9618
10214
|
...(normalizeThresholds(value.thresholds) ?? {}),
|
|
9619
10215
|
...(normalizeExpression(value.thresholdsExpr, 'thresholdsExpr') ?? {}),
|
|
9620
10216
|
...(stacked.items ? { items: stacked.items } : {}),
|
|
9621
|
-
...(
|
|
10217
|
+
...(stackedSuppressedCount > 0 ? { suppressedCount: stackedSuppressedCount } : {}),
|
|
9622
10218
|
...(normalizeExpression(value.itemsExpr, 'itemsExpr') ?? {}),
|
|
9623
10219
|
...(normalizeExpression(value.toneExpr, 'toneExpr') ?? {}),
|
|
9624
10220
|
...(value.stepLabelWidth !== undefined && (typeof value.stepLabelWidth === 'number' || typeof value.stepLabelWidth === 'string')
|
|
@@ -9633,6 +10229,9 @@ function normalizePraxisPresentationVisualization(value) {
|
|
|
9633
10229
|
}
|
|
9634
10230
|
const normalizedTitle = isTableCell ? undefined : normalizeText$3(value.title);
|
|
9635
10231
|
const normalizedLegend = typeof value.legend === 'boolean' ? (isTableCell ? false : value.legend) : undefined;
|
|
10232
|
+
const suppressedCount = Math.max(resolvePreservedSuppressedCount(value.suppressedCount), countSuppressedEntries(value.points)
|
|
10233
|
+
+ countSuppressedEntries(value.items)
|
|
10234
|
+
+ countSuppressedEntries(value.segments));
|
|
9636
10235
|
return {
|
|
9637
10236
|
kind,
|
|
9638
10237
|
fallbackText,
|
|
@@ -9661,13 +10260,14 @@ function normalizePraxisPresentationVisualization(value) {
|
|
|
9661
10260
|
...(normalizeExpression(value.targetLabelExpr, 'targetLabelExpr') ?? {}),
|
|
9662
10261
|
...(normalizeNumber(value.baseline, 'baseline') ?? {}),
|
|
9663
10262
|
...(normalizeExpression(value.baselineExpr, 'baselineExpr') ?? {}),
|
|
9664
|
-
...(
|
|
10263
|
+
...(normalizedPointsObj ?? {}),
|
|
9665
10264
|
...(normalizeExpression(value.pointsExpr, 'pointsExpr') ?? {}),
|
|
9666
10265
|
...(normalizeSegments(value.segments) ?? {}),
|
|
9667
10266
|
...(normalizeExpression(value.segmentsExpr, 'segmentsExpr') ?? {}),
|
|
9668
10267
|
...(normalizeThresholds(value.thresholds) ?? {}),
|
|
9669
10268
|
...(normalizeExpression(value.thresholdsExpr, 'thresholdsExpr') ?? {}),
|
|
9670
10269
|
...(normalizeItems(value.items) ?? {}),
|
|
10270
|
+
...(suppressedCount > 0 ? { suppressedCount } : {}),
|
|
9671
10271
|
...(normalizeExpression(value.itemsExpr, 'itemsExpr') ?? {}),
|
|
9672
10272
|
...(normalizeExpression(value.toneExpr, 'toneExpr') ?? {}),
|
|
9673
10273
|
...(value.stepLabelWidth !== undefined && (typeof value.stepLabelWidth === 'number' || typeof value.stepLabelWidth === 'string')
|
|
@@ -10113,7 +10713,7 @@ function normalizeNumericEntries(value) {
|
|
|
10113
10713
|
const num = toFiniteNumber(item);
|
|
10114
10714
|
return num !== undefined ? { value: num } : null;
|
|
10115
10715
|
}
|
|
10116
|
-
if (!item || typeof item !== 'object') {
|
|
10716
|
+
if (!item || typeof item !== 'object' || isVisualizationEntrySuppressed(item)) {
|
|
10117
10717
|
return null;
|
|
10118
10718
|
}
|
|
10119
10719
|
const num = toFiniteNumber(item.value);
|
|
@@ -10133,7 +10733,7 @@ function normalizeNumericEntries(value) {
|
|
|
10133
10733
|
.filter((item) => !!item);
|
|
10134
10734
|
}
|
|
10135
10735
|
function normalizeVisualizationItem(item) {
|
|
10136
|
-
if (!item || typeof item !== 'object') {
|
|
10736
|
+
if (!item || typeof item !== 'object' || isVisualizationEntrySuppressed(item)) {
|
|
10137
10737
|
return null;
|
|
10138
10738
|
}
|
|
10139
10739
|
const id = normalizeText$3(item.id);
|
|
@@ -10202,7 +10802,7 @@ function renderRadialVisualizationHtml(visualization, options) {
|
|
|
10202
10802
|
? Math.max(0, Math.min(100, (targetVal / total) * 100))
|
|
10203
10803
|
: null;
|
|
10204
10804
|
const targetArcHtml = targetPct !== null
|
|
10205
|
-
? `<circle class="pfx-micro-radial-svg__target-arc" cx="18" cy="18" r="13.
|
|
10805
|
+
? `<circle class="pfx-micro-radial-svg__target-arc" cx="18" cy="18" r="13.8" pathLength="100" stroke-dasharray="${targetPct.toFixed(1)}, 100" transform="rotate(-90 18 18)" />`
|
|
10206
10806
|
: '';
|
|
10207
10807
|
const digitTierAttr = radialNumStr.length >= 4
|
|
10208
10808
|
? ' data-digits="4"'
|
|
@@ -10234,10 +10834,10 @@ function renderRadialVisualizationHtml(visualization, options) {
|
|
|
10234
10834
|
</linearGradient>
|
|
10235
10835
|
</defs>
|
|
10236
10836
|
<circle class="pfx-micro-radial-svg__bezel" cx="18" cy="18" r="17" />
|
|
10237
|
-
<circle class="pfx-micro-radial-svg__track" cx="18" cy="18" r="13.
|
|
10837
|
+
<circle class="pfx-micro-radial-svg__track" cx="18" cy="18" r="13.8" pathLength="100" />
|
|
10238
10838
|
${targetArcHtml}
|
|
10239
|
-
<circle class="pfx-micro-radial-svg__bar" cx="18" cy="18" r="13.
|
|
10240
|
-
<circle class="pfx-micro-radial-svg__medallion" cx="18" cy="18" r="9
|
|
10839
|
+
<circle class="pfx-micro-radial-svg__bar" cx="18" cy="18" r="13.8" pathLength="100"${isZero ? ' data-zero="true"' : ''} stroke="url(#${escapeHtml$1(gradId)})" stroke-dasharray="${dashArray}" transform="rotate(-90 18 18)" />
|
|
10840
|
+
<circle class="pfx-micro-radial-svg__medallion" cx="18" cy="18" r="10.9" />
|
|
10241
10841
|
${svgText}
|
|
10242
10842
|
</svg>
|
|
10243
10843
|
${externalText}
|
|
@@ -10402,15 +11002,8 @@ function renderLineVisualizationHtml(visualization, options) {
|
|
|
10402
11002
|
${leftHtml}
|
|
10403
11003
|
<span class="pfx-micro-viz pfx-micro-viz__line" data-tone="${escapeHtml$1(tone)}" role="img" aria-label="${escapeHtml$1(visualization.ariaLabel ?? visualization.fallbackText)}">
|
|
10404
11004
|
<svg class="pfx-micro-line__svg" viewBox="0 0 100 30">
|
|
10405
|
-
<defs>
|
|
10406
|
-
<linearGradient id="${escapeHtml$1(glowGradId)}" x1="0%" y1="0%" x2="0%" y2="100%">
|
|
10407
|
-
<stop offset="0%" stop-color="currentColor" stop-opacity="0.16" />
|
|
10408
|
-
<stop offset="100%" stop-color="currentColor" stop-opacity="0" />
|
|
10409
|
-
</linearGradient>
|
|
10410
|
-
</defs>
|
|
10411
11005
|
${refLineHtml}
|
|
10412
|
-
<path class="pfx-micro-
|
|
10413
|
-
<path class="pfx-micro-line__path" d="${pathD}" fill="none" stroke="currentColor" stroke-width="2.1" stroke-linecap="round" stroke-linejoin="round" />
|
|
11006
|
+
<path class="pfx-micro-line__path" d="${pathD}" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" />
|
|
10414
11007
|
${endpointHaloHtml}
|
|
10415
11008
|
${circlesHtml}
|
|
10416
11009
|
</svg>
|
|
@@ -10620,7 +11213,15 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
|
|
|
10620
11213
|
const rawItems = Array.isArray(visualization.items) && visualization.items.length > 0
|
|
10621
11214
|
? visualization.items
|
|
10622
11215
|
: Array.isArray(visualization.points)
|
|
10623
|
-
? visualization.points.map((pt) => typeof pt === 'number'
|
|
11216
|
+
? visualization.points.map((pt) => typeof pt === 'number'
|
|
11217
|
+
? { value: pt }
|
|
11218
|
+
: {
|
|
11219
|
+
label: pt.label,
|
|
11220
|
+
value: pt.value,
|
|
11221
|
+
tone: pt.tone,
|
|
11222
|
+
...(pt.suppressed !== undefined ? { suppressed: pt.suppressed } : {}),
|
|
11223
|
+
...(pt.privacySuppressed !== undefined ? { privacySuppressed: pt.privacySuppressed } : {}),
|
|
11224
|
+
})
|
|
10624
11225
|
: [];
|
|
10625
11226
|
if (!rawItems.length) {
|
|
10626
11227
|
return [];
|
|
@@ -10631,11 +11232,17 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
|
|
|
10631
11232
|
const steps = [];
|
|
10632
11233
|
let running = 0;
|
|
10633
11234
|
let hasFiniteNumeric = false;
|
|
11235
|
+
let hadSuppressedItems = resolvePreservedSuppressedCount(visualization.suppressedCount) > 0;
|
|
11236
|
+
let visibleIncrementCount = 0;
|
|
10634
11237
|
for (let i = 0; i < rawItems.length; i++) {
|
|
10635
11238
|
const raw = rawItems[i];
|
|
10636
11239
|
if (!raw || typeof raw !== 'object') {
|
|
10637
11240
|
continue;
|
|
10638
11241
|
}
|
|
11242
|
+
if (isVisualizationEntrySuppressed(raw)) {
|
|
11243
|
+
hadSuppressedItems = true;
|
|
11244
|
+
continue;
|
|
11245
|
+
}
|
|
10639
11246
|
const rawNumeric = toFiniteNumber(raw.value);
|
|
10640
11247
|
if (rawNumeric !== undefined) {
|
|
10641
11248
|
hasFiniteNumeric = true;
|
|
@@ -10646,6 +11253,9 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
|
|
|
10646
11253
|
if (rawNumeric === undefined && role !== 'subtotal' && role !== 'total') {
|
|
10647
11254
|
continue;
|
|
10648
11255
|
}
|
|
11256
|
+
if (role !== 'subtotal' && role !== 'total') {
|
|
11257
|
+
visibleIncrementCount += 1;
|
|
11258
|
+
}
|
|
10649
11259
|
let start = running;
|
|
10650
11260
|
let end = running;
|
|
10651
11261
|
let delta = 0;
|
|
@@ -10658,7 +11268,7 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
|
|
|
10658
11268
|
resolvedValue = end;
|
|
10659
11269
|
}
|
|
10660
11270
|
else if (role === 'subtotal' || role === 'total') {
|
|
10661
|
-
const targetEnd = rawNumeric ?? running;
|
|
11271
|
+
const targetEnd = hadSuppressedItems ? running : (rawNumeric ?? running);
|
|
10662
11272
|
start = 0;
|
|
10663
11273
|
end = targetEnd;
|
|
10664
11274
|
delta = targetEnd;
|
|
@@ -10708,7 +11318,7 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
|
|
|
10708
11318
|
readout,
|
|
10709
11319
|
});
|
|
10710
11320
|
}
|
|
10711
|
-
if (!hasFiniteNumeric) {
|
|
11321
|
+
if (!hasFiniteNumeric || (hadSuppressedItems && visibleIncrementCount === 0)) {
|
|
10712
11322
|
return [];
|
|
10713
11323
|
}
|
|
10714
11324
|
return steps;
|
|
@@ -10746,7 +11356,11 @@ function renderWaterfallVisualizationHtml(visualization, options) {
|
|
|
10746
11356
|
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} />`);
|
|
10747
11357
|
if (i < steps.length - 1) {
|
|
10748
11358
|
const nextX = xPad + (i + 1) * slotW + barOffset;
|
|
10749
|
-
const connY =
|
|
11359
|
+
const connY = step.end > step.start
|
|
11360
|
+
? clampedY
|
|
11361
|
+
: step.end < step.start
|
|
11362
|
+
? clampedY + rectH
|
|
11363
|
+
: Math.min(height - yPad, Math.max(clampedY, Math.min(clampedY + rectH, yEnd)));
|
|
10750
11364
|
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)}" />`);
|
|
10751
11365
|
}
|
|
10752
11366
|
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>`);
|
|
@@ -10774,7 +11388,7 @@ function renderWaterfallVisualizationHtml(visualization, options) {
|
|
|
10774
11388
|
<span class="pfx-micro-viz-container">
|
|
10775
11389
|
${startSummaryHtml}
|
|
10776
11390
|
<span class="pfx-micro-viz pfx-micro-viz__waterfall" data-tone="${escapeHtml$1(fallbackTone)}" role="img" aria-label="${escapeHtml$1(aria)}">
|
|
10777
|
-
<svg class="pfx-micro-waterfall__svg" viewBox="0 0 ${width} ${height}">
|
|
11391
|
+
<svg class="pfx-micro-waterfall__svg" viewBox="0 0 ${width} ${height}" preserveAspectRatio="none">
|
|
10778
11392
|
${baselineHtml}
|
|
10779
11393
|
${connectorsHtml.join('')}
|
|
10780
11394
|
${barsHtml.join('')}
|
|
@@ -12264,7 +12878,32 @@ class SchemaNormalizationKernel {
|
|
|
12264
12878
|
const rawMode = String(record['mode'] ?? 'flat').trim().toLowerCase();
|
|
12265
12879
|
const mode = rawMode === 'tabs' || rawMode === 'accordion' || rawMode === 'stepper' || rawMode === 'flat'
|
|
12266
12880
|
? rawMode
|
|
12267
|
-
: '
|
|
12881
|
+
: rawMode === 'vertical'
|
|
12882
|
+
? 'flat'
|
|
12883
|
+
: 'flat';
|
|
12884
|
+
const defaultTabId = typeof record['defaultTabId'] === 'string' && record['defaultTabId'].trim()
|
|
12885
|
+
? record['defaultTabId'].trim()
|
|
12886
|
+
: undefined;
|
|
12887
|
+
const rawTabsAppearance = typeof record['tabsAppearance'] === 'string'
|
|
12888
|
+
? record['tabsAppearance'].trim().toLowerCase()
|
|
12889
|
+
: '';
|
|
12890
|
+
const tabsAppearance = rawTabsAppearance === 'pills' ||
|
|
12891
|
+
rawTabsAppearance === 'underline' ||
|
|
12892
|
+
rawTabsAppearance === 'buttons'
|
|
12893
|
+
? rawTabsAppearance
|
|
12894
|
+
: undefined;
|
|
12895
|
+
const accordionMulti = this.parseOptionalBoolean(record['accordionMulti']);
|
|
12896
|
+
const hideSectionHeaderInTabs = this.parseOptionalBoolean(record['hideSectionHeaderInTabs']);
|
|
12897
|
+
const hideSectionHeaderInStepper = this.parseOptionalBoolean(record['hideSectionHeaderInStepper']);
|
|
12898
|
+
const rawStepperInReadMode = typeof record['stepperInReadMode'] === 'string'
|
|
12899
|
+
? record['stepperInReadMode'].trim().toLowerCase()
|
|
12900
|
+
: '';
|
|
12901
|
+
const stepperInReadMode = rawStepperInReadMode === 'presentation' ||
|
|
12902
|
+
rawStepperInReadMode === 'all' ||
|
|
12903
|
+
rawStepperInReadMode === 'none'
|
|
12904
|
+
? rawStepperInReadMode
|
|
12905
|
+
: undefined;
|
|
12906
|
+
const stepperReviewStep = this.parseOptionalBoolean(record['stepperReviewStep']);
|
|
12268
12907
|
const rawSections = Array.isArray(record['sections']) ? record['sections'] : [];
|
|
12269
12908
|
const sections = [];
|
|
12270
12909
|
for (let idx = 0; idx < rawSections.length; idx++) {
|
|
@@ -12280,6 +12919,7 @@ class SchemaNormalizationKernel {
|
|
|
12280
12919
|
const subtitle = typeof item['subtitle'] === 'string' && item['subtitle'].trim() ? item['subtitle'].trim() : undefined;
|
|
12281
12920
|
const icon = typeof item['icon'] === 'string' && item['icon'].trim() ? item['icon'].trim() : undefined;
|
|
12282
12921
|
const groups = this.parseNonBlankStringArray(item['groups']);
|
|
12922
|
+
const optional = this.parseOptionalBoolean(item['optional']);
|
|
12283
12923
|
sections.push({
|
|
12284
12924
|
id,
|
|
12285
12925
|
title,
|
|
@@ -12287,12 +12927,61 @@ class SchemaNormalizationKernel {
|
|
|
12287
12927
|
...(icon ? { icon } : {}),
|
|
12288
12928
|
order: Number.isFinite(orderNum) ? orderNum : idx,
|
|
12289
12929
|
...(groups.length ? { groups } : {}),
|
|
12930
|
+
...(optional !== undefined ? { optional } : {}),
|
|
12290
12931
|
});
|
|
12291
12932
|
}
|
|
12292
12933
|
sections.sort((a, b) => a.order - b.order);
|
|
12934
|
+
const rawSteps = Array.isArray(record['steps']) ? record['steps'] : [];
|
|
12935
|
+
const steps = [];
|
|
12936
|
+
for (const entry of rawSteps) {
|
|
12937
|
+
if (!entry || typeof entry !== 'object' || Array.isArray(entry))
|
|
12938
|
+
continue;
|
|
12939
|
+
const item = entry;
|
|
12940
|
+
const id = String(item['id'] ?? '').trim();
|
|
12941
|
+
const label = String(item['label'] ?? '').trim() || id;
|
|
12942
|
+
const sectionIds = this.parseNonBlankStringArray(item['sectionIds']);
|
|
12943
|
+
if (!id || !sectionIds.length)
|
|
12944
|
+
continue;
|
|
12945
|
+
const description = typeof item['description'] === 'string' && item['description'].trim()
|
|
12946
|
+
? item['description'].trim()
|
|
12947
|
+
: undefined;
|
|
12948
|
+
const icon = typeof item['icon'] === 'string' && item['icon'].trim()
|
|
12949
|
+
? item['icon'].trim()
|
|
12950
|
+
: undefined;
|
|
12951
|
+
const optional = this.parseOptionalBoolean(item['optional']);
|
|
12952
|
+
const disabled = this.parseOptionalBoolean(item['disabled']);
|
|
12953
|
+
const tooltip = typeof item['tooltip'] === 'string' && item['tooltip'].trim()
|
|
12954
|
+
? item['tooltip'].trim()
|
|
12955
|
+
: undefined;
|
|
12956
|
+
const rawBadge = item['badge'];
|
|
12957
|
+
const badge = typeof rawBadge === 'string'
|
|
12958
|
+
? (rawBadge.trim() ? rawBadge.trim() : undefined)
|
|
12959
|
+
: typeof rawBadge === 'number' && Number.isFinite(rawBadge)
|
|
12960
|
+
? rawBadge
|
|
12961
|
+
: undefined;
|
|
12962
|
+
steps.push({
|
|
12963
|
+
id,
|
|
12964
|
+
label,
|
|
12965
|
+
...(description ? { description } : {}),
|
|
12966
|
+
...(icon ? { icon } : {}),
|
|
12967
|
+
sectionIds,
|
|
12968
|
+
...(optional !== undefined ? { optional } : {}),
|
|
12969
|
+
...(badge !== undefined ? { badge } : {}),
|
|
12970
|
+
...(disabled !== undefined ? { disabled } : {}),
|
|
12971
|
+
...(tooltip ? { tooltip } : {}),
|
|
12972
|
+
});
|
|
12973
|
+
}
|
|
12293
12974
|
return {
|
|
12294
12975
|
mode,
|
|
12976
|
+
...(defaultTabId ? { defaultTabId } : {}),
|
|
12977
|
+
...(tabsAppearance ? { tabsAppearance } : {}),
|
|
12978
|
+
...(accordionMulti !== undefined ? { accordionMulti } : {}),
|
|
12979
|
+
...(hideSectionHeaderInTabs !== undefined ? { hideSectionHeaderInTabs } : {}),
|
|
12980
|
+
...(hideSectionHeaderInStepper !== undefined ? { hideSectionHeaderInStepper } : {}),
|
|
12981
|
+
...(stepperInReadMode ? { stepperInReadMode } : {}),
|
|
12982
|
+
...(stepperReviewStep !== undefined ? { stepperReviewStep } : {}),
|
|
12295
12983
|
...(sections.length ? { sections } : {}),
|
|
12984
|
+
...(steps.length ? { steps } : {}),
|
|
12296
12985
|
};
|
|
12297
12986
|
}
|
|
12298
12987
|
parseContextBinding(raw) {
|
|
@@ -13343,6 +14032,24 @@ class ResourceDiscoveryService {
|
|
|
13343
14032
|
const resolvedHref = this.resolveHref(href, options);
|
|
13344
14033
|
return this.shareContextualRead(this.capabilitySnapshotInFlight, resolvedHref, () => this.fetchJson(resolvedHref, options));
|
|
13345
14034
|
}
|
|
14035
|
+
/**
|
|
14036
|
+
* Resolves a capability snapshot from an operational `resourcePath` (e.g. `'/workforce/assignments'`
|
|
14037
|
+
* or `'workforce/assignments'`), preserving the configured `apiBaseUrl` path prefix without duplicating
|
|
14038
|
+
* it when the path already includes it (e.g. `'/api/workforce/assignments'`).
|
|
14039
|
+
*/
|
|
14040
|
+
getCapabilitiesForResource(resourcePath, resourceId, options) {
|
|
14041
|
+
const cleanBase = String(resourcePath || '').split(/[?#]/u)[0]?.trim().replace(/\/+$/, '') || '';
|
|
14042
|
+
if (!cleanBase) {
|
|
14043
|
+
return throwError(() => new Error('ResourceDiscoveryService cannot resolve capabilities for an empty resourcePath.'));
|
|
14044
|
+
}
|
|
14045
|
+
const hasId = resourceId !== undefined && resourceId !== null && String(resourceId).trim() !== '';
|
|
14046
|
+
const baseWithoutCapabilities = cleanBase.replace(/\/capabilities$/i, '');
|
|
14047
|
+
const targetPath = hasId
|
|
14048
|
+
? `${baseWithoutCapabilities}/${encodeURIComponent(String(resourceId).trim())}/capabilities`
|
|
14049
|
+
: `${baseWithoutCapabilities}/capabilities`;
|
|
14050
|
+
const resolvedHref = this.resolveResourceHref(targetPath, options);
|
|
14051
|
+
return this.shareContextualRead(this.capabilitySnapshotInFlight, resolvedHref, () => this.fetchJson(resolvedHref, options));
|
|
14052
|
+
}
|
|
13346
14053
|
shareContextualRead(inFlight, requestKey, load) {
|
|
13347
14054
|
const generation = this.contextGeneration;
|
|
13348
14055
|
const pending = inFlight.get(requestKey);
|
|
@@ -14289,6 +14996,36 @@ class ResourceDiscoveryService {
|
|
|
14289
14996
|
}
|
|
14290
14997
|
return new URL(normalizedHref, this.ensureTrailingSlash(apiBaseUrl)).toString();
|
|
14291
14998
|
}
|
|
14999
|
+
/**
|
|
15000
|
+
* Resolves a resource-relative operational path (e.g. `'/workforce/assignments/capabilities'` or
|
|
15001
|
+
* `'workforce/assignments/capabilities'`) against `apiBaseUrl` without dropping path prefixes like
|
|
15002
|
+
* `'/api'` and without duplicating them when already present.
|
|
15003
|
+
*/
|
|
15004
|
+
resolveResourceHref(resourcePath, options) {
|
|
15005
|
+
const normalizedPath = String(resourcePath || '').trim();
|
|
15006
|
+
if (!normalizedPath) {
|
|
15007
|
+
throw new Error('ResourceDiscoveryService cannot resolve an empty resourcePath.');
|
|
15008
|
+
}
|
|
15009
|
+
if (this.isAbsoluteHttpUrl(normalizedPath)) {
|
|
15010
|
+
return this.resolveTrustedAbsoluteHref(normalizedPath, options);
|
|
15011
|
+
}
|
|
15012
|
+
const apiBaseUrl = this.resolveApiBaseHref(options);
|
|
15013
|
+
if (!apiBaseUrl) {
|
|
15014
|
+
return this.resolveHref(normalizedPath, options);
|
|
15015
|
+
}
|
|
15016
|
+
let basePath = '';
|
|
15017
|
+
try {
|
|
15018
|
+
basePath = this.normalizePathPrefix(new URL(apiBaseUrl).pathname);
|
|
15019
|
+
}
|
|
15020
|
+
catch {
|
|
15021
|
+
basePath = this.normalizePathPrefix(this.resolveApiBaseUrl(options));
|
|
15022
|
+
}
|
|
15023
|
+
const slashPrefixed = normalizedPath.startsWith('/') ? normalizedPath : `/${normalizedPath}`;
|
|
15024
|
+
if (basePath && (slashPrefixed === basePath || slashPrefixed.startsWith(`${basePath}/`))) {
|
|
15025
|
+
return this.resolveHref(slashPrefixed, options);
|
|
15026
|
+
}
|
|
15027
|
+
return this.resolveHref(normalizedPath.replace(/^\/+/, ''), options);
|
|
15028
|
+
}
|
|
14292
15029
|
requireLinkHref(source, rel, options) {
|
|
14293
15030
|
const href = this.resolveLinkHref(source, rel, options);
|
|
14294
15031
|
if (!href) {
|
|
@@ -14884,7 +15621,9 @@ class PraxisDecisionInspectorService {
|
|
|
14884
15621
|
resourcePathByKeyCache = new Map();
|
|
14885
15622
|
inFlightResourceKeyByPath = new Map();
|
|
14886
15623
|
catalogCache = new Map();
|
|
15624
|
+
enrichedCatalogCache = new Map();
|
|
14887
15625
|
inFlightCatalogByKey = new Map();
|
|
15626
|
+
schemaFieldsCache = new Map();
|
|
14888
15627
|
capabilitiesCache = new Map();
|
|
14889
15628
|
inFlightCapabilitiesByKey = new Map();
|
|
14890
15629
|
lastContextSignature = '';
|
|
@@ -14907,7 +15646,9 @@ class PraxisDecisionInspectorService {
|
|
|
14907
15646
|
this.resourcePathByKeyCache.clear();
|
|
14908
15647
|
this.inFlightResourceKeyByPath.clear();
|
|
14909
15648
|
this.catalogCache.clear();
|
|
15649
|
+
this.enrichedCatalogCache.clear();
|
|
14910
15650
|
this.inFlightCatalogByKey.clear();
|
|
15651
|
+
this.schemaFieldsCache.clear();
|
|
14911
15652
|
this.capabilitiesCache.clear();
|
|
14912
15653
|
this.inFlightCapabilitiesByKey.clear();
|
|
14913
15654
|
}
|
|
@@ -14984,6 +15725,18 @@ class PraxisDecisionInspectorService {
|
|
|
14984
15725
|
return null;
|
|
14985
15726
|
}
|
|
14986
15727
|
const cacheKey = `${this.syncContextSignature()}::${options.endpointKey ?? 'default'}::${resolvedResourceKey}`;
|
|
15728
|
+
const authorities = this.runtimeContext?.effectiveContext?.authorities ?? null;
|
|
15729
|
+
const authoritiesSig = Array.isArray(authorities) ? [...authorities].sort().join(',') : '';
|
|
15730
|
+
const enrichedCacheKey = `${cacheKey}::${authoritiesSig}`;
|
|
15731
|
+
if (!options.forceRefresh && options.includeFieldSchemas) {
|
|
15732
|
+
const cachedEnriched = this.enrichedCatalogCache.get(enrichedCacheKey);
|
|
15733
|
+
if (cachedEnriched && cachedEnriched.expiresAt > Date.now()) {
|
|
15734
|
+
return cachedEnriched.value;
|
|
15735
|
+
}
|
|
15736
|
+
}
|
|
15737
|
+
const schemaFieldsPromise = options.includeFieldSchemas
|
|
15738
|
+
? this.tryLoadResourceSchemaFields(options.resourcePath ?? resolvedResourceKey, options, resolvedResourceKey, Boolean(options.forceRefresh))
|
|
15739
|
+
: Promise.resolve([]);
|
|
14987
15740
|
let baseCatalog = null;
|
|
14988
15741
|
if (!options.forceRefresh) {
|
|
14989
15742
|
const cached = this.catalogCache.get(cacheKey);
|
|
@@ -15014,14 +15767,35 @@ class PraxisDecisionInspectorService {
|
|
|
15014
15767
|
baseCatalog = await fetchPromise;
|
|
15015
15768
|
}
|
|
15016
15769
|
}
|
|
15017
|
-
const authorities = this.runtimeContext?.effectiveContext?.authorities ?? null;
|
|
15018
15770
|
if (options.includeFieldSchemas) {
|
|
15019
|
-
const schemaFields = await
|
|
15771
|
+
const schemaFields = await schemaFieldsPromise;
|
|
15020
15772
|
if (schemaFields.length > 0) {
|
|
15021
|
-
|
|
15773
|
+
const mergedFieldLabels = {};
|
|
15774
|
+
for (const field of schemaFields) {
|
|
15775
|
+
const name = this.cleanText(field?.name);
|
|
15776
|
+
const label = this.cleanText(field?.label);
|
|
15777
|
+
if (name && label && !mergedFieldLabels[name]) {
|
|
15778
|
+
mergedFieldLabels[name] = label;
|
|
15779
|
+
}
|
|
15780
|
+
}
|
|
15781
|
+
if (baseCatalog.fieldLabels) {
|
|
15782
|
+
for (const [key, val] of Object.entries(baseCatalog.fieldLabels)) {
|
|
15783
|
+
const cleanVal = this.cleanText(val);
|
|
15784
|
+
if (cleanVal && (cleanVal !== key || !mergedFieldLabels[key])) {
|
|
15785
|
+
mergedFieldLabels[key] = cleanVal;
|
|
15786
|
+
}
|
|
15787
|
+
}
|
|
15788
|
+
}
|
|
15789
|
+
const enriched = {
|
|
15022
15790
|
...baseCatalog,
|
|
15791
|
+
ruleSets: enrichRuleSetsWithFieldSchemas(baseCatalog.ruleSets, schemaFields),
|
|
15023
15792
|
governance: enrichGovernanceItemsWithFieldSchemas(baseCatalog.governance ?? [], schemaFields, baseCatalog.resourceKey, authorities),
|
|
15793
|
+
...(Object.keys(mergedFieldLabels).length > 0
|
|
15794
|
+
? { fieldLabels: mergedFieldLabels }
|
|
15795
|
+
: {}),
|
|
15024
15796
|
};
|
|
15797
|
+
this.storeBoundedCache(this.enrichedCatalogCache, enrichedCacheKey, enriched);
|
|
15798
|
+
return enriched;
|
|
15025
15799
|
}
|
|
15026
15800
|
}
|
|
15027
15801
|
if (baseCatalog.governance?.length) {
|
|
@@ -15269,10 +16043,16 @@ class PraxisDecisionInspectorService {
|
|
|
15269
16043
|
const targetHref = resourceId !== null && resourceId !== undefined
|
|
15270
16044
|
? `${normalizedPath}/${encodeURIComponent(String(resourceId))}/capabilities`
|
|
15271
16045
|
: `${normalizedPath}/capabilities`;
|
|
15272
|
-
const
|
|
15273
|
-
|
|
15274
|
-
|
|
15275
|
-
|
|
16046
|
+
const capabilities$ = typeof discovery.getCapabilitiesForResource === 'function'
|
|
16047
|
+
? discovery.getCapabilitiesForResource(normalizedPath, resourceId, {
|
|
16048
|
+
endpointKey: options.endpointKey,
|
|
16049
|
+
apiUrlEntry: options.apiUrlEntry,
|
|
16050
|
+
})
|
|
16051
|
+
: discovery.getCapabilitiesByUrl(targetHref, {
|
|
16052
|
+
endpointKey: options.endpointKey,
|
|
16053
|
+
apiUrlEntry: options.apiUrlEntry,
|
|
16054
|
+
});
|
|
16055
|
+
const requestPromise = firstValueFrom(capabilities$)
|
|
15276
16056
|
.then((snapshot) => {
|
|
15277
16057
|
if (snapshot) {
|
|
15278
16058
|
this.storeBoundedCache(this.capabilitiesCache, cacheKey, snapshot);
|
|
@@ -15292,19 +16072,59 @@ class PraxisDecisionInspectorService {
|
|
|
15292
16072
|
this.inFlightCapabilitiesByKey.set(cacheKey, requestPromise);
|
|
15293
16073
|
return requestPromise;
|
|
15294
16074
|
}
|
|
15295
|
-
async tryLoadResourceSchemaFields(resourcePathOrKey, options) {
|
|
16075
|
+
async tryLoadResourceSchemaFields(resourcePathOrKey, options, resolvedResourceKey, forceRefresh = false) {
|
|
15296
16076
|
const discovery = this.getDiscovery();
|
|
15297
16077
|
if (!discovery ||
|
|
15298
16078
|
!discovery.canResolveSchemas(options) ||
|
|
15299
16079
|
typeof discovery.getResourceSchemaFields !== 'function') {
|
|
15300
16080
|
return [];
|
|
15301
16081
|
}
|
|
16082
|
+
const endpointPrefix = `${this.syncContextSignature()}::${options.endpointKey ?? 'default'}`;
|
|
16083
|
+
const cacheKey = `${endpointPrefix}::${resolvedResourceKey || resourcePathOrKey}`;
|
|
16084
|
+
if (!forceRefresh) {
|
|
16085
|
+
const cached = this.schemaFieldsCache.get(cacheKey);
|
|
16086
|
+
if (cached && cached.expiresAt > Date.now()) {
|
|
16087
|
+
return cached.value;
|
|
16088
|
+
}
|
|
16089
|
+
}
|
|
16090
|
+
const rawTarget = this.cleanText(resourcePathOrKey) ?? '';
|
|
16091
|
+
let candidatePath = rawTarget.includes('/')
|
|
16092
|
+
? this.normalizeCapabilityBasePath(rawTarget)
|
|
16093
|
+
: (this.resourcePathByKeyCache.get(cacheKey) ?? '');
|
|
16094
|
+
if (candidatePath && !candidatePath.startsWith('/')) {
|
|
16095
|
+
candidatePath = `/${candidatePath}`;
|
|
16096
|
+
}
|
|
16097
|
+
if (candidatePath.startsWith('/') && typeof discovery.getSchemaFieldsByUrl === 'function') {
|
|
16098
|
+
const candidateFilterPaths = candidatePath.startsWith('/api/')
|
|
16099
|
+
? [candidatePath]
|
|
16100
|
+
: [candidatePath, `/api${candidatePath}`];
|
|
16101
|
+
for (const filterBasePath of candidateFilterPaths) {
|
|
16102
|
+
try {
|
|
16103
|
+
const directUrl = `/schemas/filtered?path=${encodeURIComponent(`${filterBasePath}/filter`)}&operation=post&schemaType=response`;
|
|
16104
|
+
const directFields = await firstValueFrom(discovery.getSchemaFieldsByUrl(directUrl, {
|
|
16105
|
+
endpointKey: options.endpointKey,
|
|
16106
|
+
apiUrlEntry: options.apiUrlEntry,
|
|
16107
|
+
}));
|
|
16108
|
+
if (Array.isArray(directFields) && directFields.length > 0) {
|
|
16109
|
+
this.storeBoundedCache(this.schemaFieldsCache, cacheKey, directFields);
|
|
16110
|
+
return directFields;
|
|
16111
|
+
}
|
|
16112
|
+
}
|
|
16113
|
+
catch {
|
|
16114
|
+
// Try next normalized candidate path before falling back to catalog
|
|
16115
|
+
}
|
|
16116
|
+
}
|
|
16117
|
+
}
|
|
15302
16118
|
try {
|
|
15303
16119
|
const fields = await firstValueFrom(discovery.getResourceSchemaFields(resourcePathOrKey, {
|
|
15304
16120
|
endpointKey: options.endpointKey,
|
|
15305
16121
|
apiUrlEntry: options.apiUrlEntry,
|
|
15306
16122
|
}));
|
|
15307
|
-
|
|
16123
|
+
if (Array.isArray(fields) && fields.length > 0) {
|
|
16124
|
+
this.storeBoundedCache(this.schemaFieldsCache, cacheKey, fields);
|
|
16125
|
+
return fields;
|
|
16126
|
+
}
|
|
16127
|
+
return [];
|
|
15308
16128
|
}
|
|
15309
16129
|
catch {
|
|
15310
16130
|
return [];
|
|
@@ -21862,6 +22682,28 @@ class LocalStorageCacheAdapter {
|
|
|
21862
22682
|
this.persist();
|
|
21863
22683
|
this.broadcast(schemaId, undefined);
|
|
21864
22684
|
}
|
|
22685
|
+
async clear() {
|
|
22686
|
+
const removedIds = Array.from(this.mem.keys());
|
|
22687
|
+
this.mem.clear();
|
|
22688
|
+
if (typeof localStorage !== 'undefined') {
|
|
22689
|
+
try {
|
|
22690
|
+
const keysToRemove = [];
|
|
22691
|
+
for (let i = 0; i < localStorage.length; i += 1) {
|
|
22692
|
+
const key = localStorage.key(i);
|
|
22693
|
+
if (key === this.storageKey || (key && key.startsWith(`${this.storageKey}:`))) {
|
|
22694
|
+
keysToRemove.push(key);
|
|
22695
|
+
}
|
|
22696
|
+
}
|
|
22697
|
+
for (const key of keysToRemove) {
|
|
22698
|
+
localStorage.removeItem(key);
|
|
22699
|
+
}
|
|
22700
|
+
}
|
|
22701
|
+
catch { }
|
|
22702
|
+
}
|
|
22703
|
+
for (const schemaId of removedIds) {
|
|
22704
|
+
this.broadcast(schemaId, undefined);
|
|
22705
|
+
}
|
|
22706
|
+
}
|
|
21865
22707
|
subscribe(cb) {
|
|
21866
22708
|
this.subscribers.add(cb);
|
|
21867
22709
|
return () => this.subscribers.delete(cb);
|
|
@@ -21885,6 +22727,9 @@ class MemoryCacheAdapter {
|
|
|
21885
22727
|
async remove(schemaId) {
|
|
21886
22728
|
this.mem.delete(schemaId);
|
|
21887
22729
|
}
|
|
22730
|
+
async clear() {
|
|
22731
|
+
this.mem.clear();
|
|
22732
|
+
}
|
|
21888
22733
|
}
|
|
21889
22734
|
|
|
21890
22735
|
/**
|
|
@@ -22706,10 +23551,11 @@ class GenericCrudService {
|
|
|
22706
23551
|
}
|
|
22707
23552
|
return this.schemaRuntimeEpoch;
|
|
22708
23553
|
}
|
|
22709
|
-
/** Clears cached filter schemas, derived resource metadata, and bumps the runtime epoch. */
|
|
23554
|
+
/** Clears cached filter schemas, schema cache entries, derived resource metadata, and bumps the runtime epoch. */
|
|
22710
23555
|
clearRuntimeCaches() {
|
|
22711
23556
|
this.schemaRuntimeContext = '';
|
|
22712
23557
|
this.schemaRuntimeEpoch += 1;
|
|
23558
|
+
void this._schemaCache?.clear?.();
|
|
22713
23559
|
this._filterSchemaCache.clear();
|
|
22714
23560
|
this._filterSchemaLoaded = false;
|
|
22715
23561
|
this._rangeFilterFieldHints.clear();
|
|
@@ -25395,20 +26241,24 @@ function resolveSchemaBooleanFormatFromFieldDefinition(def) {
|
|
|
25395
26241
|
return explicit;
|
|
25396
26242
|
const trueLabel = firstNonEmptyString(def.trueLabel) ??
|
|
25397
26243
|
firstNonEmptyString(def.labelTrue) ??
|
|
26244
|
+
firstNonEmptyString(def.presentation?.labelTrue) ??
|
|
25398
26245
|
firstNonEmptyString(def.extraProperties?.trueLabel) ??
|
|
25399
26246
|
firstNonEmptyString(def.extraProperties?.labelTrue);
|
|
25400
26247
|
const falseLabel = firstNonEmptyString(def.falseLabel) ??
|
|
25401
26248
|
firstNonEmptyString(def.labelFalse) ??
|
|
26249
|
+
firstNonEmptyString(def.presentation?.labelFalse) ??
|
|
25402
26250
|
firstNonEmptyString(def.extraProperties?.falseLabel) ??
|
|
25403
26251
|
firstNonEmptyString(def.extraProperties?.labelFalse);
|
|
25404
|
-
if (trueLabel
|
|
25405
|
-
const
|
|
25406
|
-
const
|
|
26252
|
+
if (trueLabel || falseLabel) {
|
|
26253
|
+
const effectiveTrue = trueLabel || 'Sim';
|
|
26254
|
+
const effectiveFalse = falseLabel || 'Não';
|
|
26255
|
+
const tNorm = normalizePresentationToken(effectiveTrue);
|
|
26256
|
+
const fNorm = normalizePresentationToken(effectiveFalse);
|
|
25407
26257
|
if (tNorm === 'ativo' && fNorm === 'inativo')
|
|
25408
26258
|
return 'active-inactive';
|
|
25409
26259
|
if (tNorm === 'sim' && (fNorm === 'nao' || fNorm === 'não'))
|
|
25410
26260
|
return 'yes-no';
|
|
25411
|
-
return `custom|${
|
|
26261
|
+
return `custom|${effectiveTrue}|${effectiveFalse}`;
|
|
25412
26262
|
}
|
|
25413
26263
|
const name = normalizePresentationToken(def.name);
|
|
25414
26264
|
if (name === 'ativo' || name === 'active' || name.endsWith('ativo')) {
|
|
@@ -25646,7 +26496,29 @@ function resolveRendererFromFieldPresentation(def) {
|
|
|
25646
26496
|
},
|
|
25647
26497
|
};
|
|
25648
26498
|
}
|
|
25649
|
-
if (presenter === '
|
|
26499
|
+
if (presenter === 'progress') {
|
|
26500
|
+
const valueExpr = `= row.${def.name.replace(/\./g, '?.')}`;
|
|
26501
|
+
return {
|
|
26502
|
+
type: 'progress',
|
|
26503
|
+
progress: {
|
|
26504
|
+
valueExpr,
|
|
26505
|
+
showLabel: true,
|
|
26506
|
+
...(color ? { color } : {}),
|
|
26507
|
+
},
|
|
26508
|
+
};
|
|
26509
|
+
}
|
|
26510
|
+
if (presenter === 'rating') {
|
|
26511
|
+
const valueExpr = `= row.${def.name.replace(/\./g, '?.')}`;
|
|
26512
|
+
return {
|
|
26513
|
+
type: 'rating',
|
|
26514
|
+
rating: {
|
|
26515
|
+
valueExpr,
|
|
26516
|
+
max: 5,
|
|
26517
|
+
...(color ? { color } : {}),
|
|
26518
|
+
},
|
|
26519
|
+
};
|
|
26520
|
+
}
|
|
26521
|
+
if (presenter === 'iconvalue' || presenter === 'text' || !presenter) {
|
|
25650
26522
|
const rendererIcon = icon || firstNonEmptyString(def.icon);
|
|
25651
26523
|
const affixes = resolveSemanticPresentationAffixes(presentation);
|
|
25652
26524
|
const hasAffixes = !!(affixes.prefix || affixes.suffix);
|
|
@@ -25658,6 +26530,7 @@ function resolveRendererFromFieldPresentation(def) {
|
|
|
25658
26530
|
icon: {
|
|
25659
26531
|
...(!hasAffixes && rendererIcon ? { name: rendererIcon } : {}),
|
|
25660
26532
|
textField: def.name,
|
|
26533
|
+
...(color ? { color } : {}),
|
|
25661
26534
|
...(tooltipText ? { ariaLabel: tooltipText } : {}),
|
|
25662
26535
|
...affixes,
|
|
25663
26536
|
},
|
|
@@ -27509,28 +28382,156 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
27509
28382
|
args: [PRAXIS_LOADING_RENDERER]
|
|
27510
28383
|
}] }] });
|
|
27511
28384
|
|
|
28385
|
+
const PHASE_PRIORITY = {
|
|
28386
|
+
action: 4,
|
|
28387
|
+
schema: 3,
|
|
28388
|
+
data: 2,
|
|
28389
|
+
mount: 1,
|
|
28390
|
+
};
|
|
28391
|
+
const CONTEXT_PRIORITY = {
|
|
28392
|
+
high: 3,
|
|
28393
|
+
normal: 2,
|
|
28394
|
+
low: 1,
|
|
28395
|
+
};
|
|
27512
28396
|
class DefaultLoadingRenderer {
|
|
27513
28397
|
rootId = 'praxis-loading-root';
|
|
27514
28398
|
styleId = 'praxis-loading-style';
|
|
28399
|
+
showDelayMs = 150;
|
|
28400
|
+
activeEntries = new Map();
|
|
28401
|
+
sequenceCounter = 0;
|
|
28402
|
+
showTimer = null;
|
|
28403
|
+
visible = false;
|
|
27515
28404
|
show(ctx) {
|
|
28405
|
+
this.upsertEntry(ctx, true);
|
|
28406
|
+
}
|
|
28407
|
+
update(ctx) {
|
|
28408
|
+
this.upsertEntry(ctx, false);
|
|
28409
|
+
}
|
|
28410
|
+
hide(ctx) {
|
|
28411
|
+
const key = this.keyOf(ctx);
|
|
28412
|
+
const existing = this.activeEntries.get(key);
|
|
28413
|
+
if (!existing)
|
|
28414
|
+
return;
|
|
28415
|
+
const nextCount = existing.count - 1;
|
|
28416
|
+
if (nextCount > 0) {
|
|
28417
|
+
this.activeEntries.set(key, { ...existing, count: nextCount });
|
|
28418
|
+
return;
|
|
28419
|
+
}
|
|
28420
|
+
this.activeEntries.delete(key);
|
|
28421
|
+
if (this.activeEntries.size === 0) {
|
|
28422
|
+
this.clearShowTimer();
|
|
28423
|
+
this.visible = false;
|
|
28424
|
+
this.clearRenderedEntry();
|
|
28425
|
+
return;
|
|
28426
|
+
}
|
|
28427
|
+
if (this.visible) {
|
|
28428
|
+
this.renderWinner();
|
|
28429
|
+
}
|
|
28430
|
+
}
|
|
28431
|
+
upsertEntry(ctx, incrementCount) {
|
|
28432
|
+
const key = this.keyOf(ctx);
|
|
28433
|
+
const existing = this.activeEntries.get(key);
|
|
28434
|
+
const count = existing
|
|
28435
|
+
? incrementCount
|
|
28436
|
+
? existing.count + 1
|
|
28437
|
+
: existing.count
|
|
28438
|
+
: 1;
|
|
28439
|
+
this.activeEntries.set(key, { ctx, sequence: ++this.sequenceCounter, count });
|
|
28440
|
+
if (this.visible) {
|
|
28441
|
+
this.renderWinner();
|
|
28442
|
+
return;
|
|
28443
|
+
}
|
|
28444
|
+
// Blocking actions must engage the backdrop immediately to prevent duplicate clicks.
|
|
28445
|
+
if (ctx.blocking || this.showDelayMs <= 0) {
|
|
28446
|
+
this.clearShowTimer();
|
|
28447
|
+
this.visible = true;
|
|
28448
|
+
this.renderWinner();
|
|
28449
|
+
return;
|
|
28450
|
+
}
|
|
28451
|
+
if (this.showTimer !== null) {
|
|
28452
|
+
return;
|
|
28453
|
+
}
|
|
28454
|
+
this.showTimer = setTimeout(() => {
|
|
28455
|
+
this.showTimer = null;
|
|
28456
|
+
if (this.activeEntries.size === 0)
|
|
28457
|
+
return;
|
|
28458
|
+
this.visible = true;
|
|
28459
|
+
this.renderWinner();
|
|
28460
|
+
}, this.showDelayMs);
|
|
28461
|
+
}
|
|
28462
|
+
ngOnDestroy() {
|
|
28463
|
+
this.clearShowTimer();
|
|
28464
|
+
this.activeEntries.clear();
|
|
28465
|
+
this.visible = false;
|
|
28466
|
+
this.clearRenderedEntry();
|
|
28467
|
+
}
|
|
28468
|
+
clearShowTimer() {
|
|
28469
|
+
if (this.showTimer !== null) {
|
|
28470
|
+
clearTimeout(this.showTimer);
|
|
28471
|
+
this.showTimer = null;
|
|
28472
|
+
}
|
|
28473
|
+
}
|
|
28474
|
+
clearRenderedEntry() {
|
|
28475
|
+
const doc = this.getDocument();
|
|
28476
|
+
if (!doc)
|
|
28477
|
+
return;
|
|
28478
|
+
const root = doc.getElementById(this.rootId);
|
|
28479
|
+
if (!root)
|
|
28480
|
+
return;
|
|
28481
|
+
root.replaceChildren();
|
|
28482
|
+
}
|
|
28483
|
+
selectWinningEntry() {
|
|
28484
|
+
let winnerKey = null;
|
|
28485
|
+
let winner = null;
|
|
28486
|
+
for (const [key, candidate] of this.activeEntries.entries()) {
|
|
28487
|
+
if (!winner || this.comparePriority(candidate, winner) > 0) {
|
|
28488
|
+
winnerKey = key;
|
|
28489
|
+
winner = candidate;
|
|
28490
|
+
}
|
|
28491
|
+
}
|
|
28492
|
+
return winnerKey && winner ? { key: winnerKey, ctx: winner.ctx } : null;
|
|
28493
|
+
}
|
|
28494
|
+
comparePriority(a, b) {
|
|
28495
|
+
const blockingDiff = (a.ctx.blocking ? 1 : 0) - (b.ctx.blocking ? 1 : 0);
|
|
28496
|
+
if (blockingDiff !== 0)
|
|
28497
|
+
return blockingDiff;
|
|
28498
|
+
const phaseDiff = (PHASE_PRIORITY[a.ctx.phase] ?? 0) - (PHASE_PRIORITY[b.ctx.phase] ?? 0);
|
|
28499
|
+
if (phaseDiff !== 0)
|
|
28500
|
+
return phaseDiff;
|
|
28501
|
+
const priorityDiff = CONTEXT_PRIORITY[a.ctx.priority ?? 'normal'] -
|
|
28502
|
+
CONTEXT_PRIORITY[b.ctx.priority ?? 'normal'];
|
|
28503
|
+
if (priorityDiff !== 0)
|
|
28504
|
+
return priorityDiff;
|
|
28505
|
+
return a.sequence - b.sequence;
|
|
28506
|
+
}
|
|
28507
|
+
renderWinner() {
|
|
28508
|
+
const winner = this.selectWinningEntry();
|
|
28509
|
+
if (!winner) {
|
|
28510
|
+
this.clearRenderedEntry();
|
|
28511
|
+
return;
|
|
28512
|
+
}
|
|
27516
28513
|
const doc = this.getDocument();
|
|
27517
28514
|
if (!doc)
|
|
27518
28515
|
return;
|
|
27519
28516
|
this.ensureStyles(doc);
|
|
27520
28517
|
const root = this.ensureRoot(doc);
|
|
27521
|
-
|
|
27522
|
-
let entry = root.querySelector(`[data-key="${key}"]`);
|
|
27523
|
-
const label = ctx.label || this.defaultLabel(ctx);
|
|
27524
|
-
const blockingAttr = ctx.blocking ? 'true' : 'false';
|
|
28518
|
+
let entry = root.querySelector('.pfx-loading-entry');
|
|
27525
28519
|
if (!entry) {
|
|
27526
28520
|
entry = doc.createElement('div');
|
|
27527
28521
|
entry.className = 'pfx-loading-entry';
|
|
27528
|
-
entry.setAttribute('data-key', key);
|
|
27529
28522
|
root.appendChild(entry);
|
|
27530
28523
|
}
|
|
28524
|
+
// Ensure a single active entry and a single aria-live region at all times.
|
|
28525
|
+
const extras = root.querySelectorAll('.pfx-loading-entry');
|
|
28526
|
+
for (let i = 1; i < extras.length; i++) {
|
|
28527
|
+
extras[i].remove();
|
|
28528
|
+
}
|
|
28529
|
+
entry.setAttribute('data-key', winner.key);
|
|
28530
|
+
const label = winner.ctx.label || this.defaultLabel(winner.ctx);
|
|
28531
|
+
const blockingAttr = winner.ctx.blocking ? 'true' : 'false';
|
|
27531
28532
|
if (entry.getAttribute('data-blocking') !== blockingAttr) {
|
|
27532
28533
|
entry.setAttribute('data-blocking', blockingAttr);
|
|
27533
|
-
entry.innerHTML = ctx.blocking
|
|
28534
|
+
entry.innerHTML = winner.ctx.blocking
|
|
27534
28535
|
? `
|
|
27535
28536
|
<div class="pfx-loading-backdrop"></div>
|
|
27536
28537
|
<div class="pfx-loading-card" role="status" aria-live="polite">
|
|
@@ -27539,31 +28540,20 @@ class DefaultLoadingRenderer {
|
|
|
27539
28540
|
</div>
|
|
27540
28541
|
`
|
|
27541
28542
|
: `
|
|
27542
|
-
<div class="pfx-loading-topbar"
|
|
27543
|
-
<div class="pfx-loading-inline-text"
|
|
28543
|
+
<div class="pfx-loading-topbar" aria-hidden="true"></div>
|
|
28544
|
+
<div class="pfx-loading-inline-text" role="status" aria-live="polite">
|
|
28545
|
+
<span class="pfx-loading-inline-dot" aria-hidden="true"></span>
|
|
28546
|
+
<span class="pfx-loading-label-shimmer"></span>
|
|
28547
|
+
</div>
|
|
27544
28548
|
`;
|
|
27545
28549
|
}
|
|
27546
|
-
const textEl = (ctx.blocking
|
|
28550
|
+
const textEl = (winner.ctx.blocking
|
|
27547
28551
|
? entry.querySelector('.pfx-loading-text')
|
|
27548
|
-
: entry.querySelector('.pfx-loading-label-shimmer') ??
|
|
28552
|
+
: entry.querySelector('.pfx-loading-label-shimmer') ??
|
|
28553
|
+
entry.querySelector('.pfx-loading-inline-text'));
|
|
27549
28554
|
if (textEl)
|
|
27550
28555
|
textEl.textContent = label;
|
|
27551
28556
|
}
|
|
27552
|
-
update(ctx) {
|
|
27553
|
-
this.show(ctx);
|
|
27554
|
-
}
|
|
27555
|
-
hide(ctx) {
|
|
27556
|
-
const doc = this.getDocument();
|
|
27557
|
-
if (!doc)
|
|
27558
|
-
return;
|
|
27559
|
-
const root = doc.getElementById(this.rootId);
|
|
27560
|
-
if (!root)
|
|
27561
|
-
return;
|
|
27562
|
-
const key = this.keyOf(ctx);
|
|
27563
|
-
const entry = root.querySelector(`[data-key="${key}"]`);
|
|
27564
|
-
if (entry)
|
|
27565
|
-
entry.remove();
|
|
27566
|
-
}
|
|
27567
28557
|
keyOf(ctx) {
|
|
27568
28558
|
const { componentType, componentId, routeKey } = ctx.scope;
|
|
27569
28559
|
return `${routeKey ?? 'no-route'}::${componentType}::${componentId}::${ctx.phase}`;
|
|
@@ -27571,7 +28561,7 @@ class DefaultLoadingRenderer {
|
|
|
27571
28561
|
defaultLabel(ctx) {
|
|
27572
28562
|
switch (ctx.phase) {
|
|
27573
28563
|
case 'schema':
|
|
27574
|
-
return 'Carregando
|
|
28564
|
+
return 'Carregando configuração...';
|
|
27575
28565
|
case 'mount':
|
|
27576
28566
|
return 'Montando interface...';
|
|
27577
28567
|
case 'data':
|
|
@@ -27609,6 +28599,9 @@ class DefaultLoadingRenderer {
|
|
|
27609
28599
|
inset: 0;
|
|
27610
28600
|
}
|
|
27611
28601
|
.pfx-loading-entry[data-blocking="true"] {
|
|
28602
|
+
display: flex;
|
|
28603
|
+
align-items: center;
|
|
28604
|
+
justify-content: center;
|
|
27612
28605
|
pointer-events: auto;
|
|
27613
28606
|
cursor: wait;
|
|
27614
28607
|
}
|
|
@@ -27623,21 +28616,34 @@ class DefaultLoadingRenderer {
|
|
|
27623
28616
|
backdrop-filter: blur(2px);
|
|
27624
28617
|
}
|
|
27625
28618
|
.pfx-loading-card {
|
|
27626
|
-
position:
|
|
27627
|
-
|
|
27628
|
-
display: flex;
|
|
28619
|
+
position: relative;
|
|
28620
|
+
z-index: 1;
|
|
28621
|
+
display: inline-flex;
|
|
27629
28622
|
align-items: center;
|
|
27630
28623
|
justify-content: center;
|
|
27631
28624
|
gap: 12px;
|
|
27632
|
-
|
|
27633
|
-
|
|
28625
|
+
max-width: min(360px, calc(100vw - 32px));
|
|
28626
|
+
padding: var(--pdx-loading-card-padding, 14px 22px);
|
|
28627
|
+
border-radius: var(--pdx-loading-card-radius, 12px);
|
|
28628
|
+
border: var(
|
|
28629
|
+
--pdx-loading-card-border,
|
|
28630
|
+
1px solid var(--md-sys-color-outline-variant, var(--border, rgba(255, 255, 255, 0.14)))
|
|
28631
|
+
);
|
|
28632
|
+
background: var(
|
|
28633
|
+
--pdx-loading-card-bg,
|
|
28634
|
+
var(--md-sys-color-surface-container-high, var(--card, rgba(24, 28, 36, 0.92)))
|
|
28635
|
+
);
|
|
28636
|
+
box-shadow: var(--pdx-loading-card-shadow, 0 12px 32px rgba(0, 0, 0, 0.24));
|
|
28637
|
+
color: var(--pdx-loading-text, var(--md-sys-color-on-surface, #eaeaf1));
|
|
28638
|
+
text-shadow: var(--pdx-loading-text-shadow, none);
|
|
27634
28639
|
}
|
|
27635
28640
|
.pfx-loading-spinner {
|
|
27636
|
-
width:
|
|
27637
|
-
height:
|
|
28641
|
+
width: 24px;
|
|
28642
|
+
height: 24px;
|
|
28643
|
+
flex-shrink: 0;
|
|
27638
28644
|
border-radius: 50%;
|
|
27639
28645
|
border: 3px solid var(--pdx-loading-spinner-track, rgba(255,255,255,0.2));
|
|
27640
|
-
border-top-color: var(--pdx-loading-spinner-accent, #8b5cf6);
|
|
28646
|
+
border-top-color: var(--pdx-loading-spinner-accent, var(--md-sys-color-primary, #8b5cf6));
|
|
27641
28647
|
animation: pfxSpin 0.9s linear infinite;
|
|
27642
28648
|
}
|
|
27643
28649
|
.pfx-loading-text {
|
|
@@ -27645,7 +28651,6 @@ class DefaultLoadingRenderer {
|
|
|
27645
28651
|
font-weight: 500;
|
|
27646
28652
|
opacity: .95;
|
|
27647
28653
|
text-shadow: none;
|
|
27648
|
-
filter: var(--pdx-loading-text-drop-shadow, drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65)));
|
|
27649
28654
|
}
|
|
27650
28655
|
.pfx-loading-topbar {
|
|
27651
28656
|
position: absolute;
|
|
@@ -27655,7 +28660,7 @@ class DefaultLoadingRenderer {
|
|
|
27655
28660
|
height: var(--pdx-loading-topbar-height, 3px);
|
|
27656
28661
|
background: var(
|
|
27657
28662
|
--pdx-loading-topbar-gradient,
|
|
27658
|
-
linear-gradient(90deg, transparent, var(--pdx-loading-spinner-accent, #8b5cf6), transparent)
|
|
28663
|
+
linear-gradient(90deg, transparent, var(--pdx-loading-spinner-accent, var(--md-sys-color-primary, #8b5cf6)), transparent)
|
|
27659
28664
|
);
|
|
27660
28665
|
border-radius: var(--pdx-loading-topbar-radius, 999px);
|
|
27661
28666
|
box-shadow: var(--pdx-loading-topbar-shadow, none);
|
|
@@ -27663,29 +28668,46 @@ class DefaultLoadingRenderer {
|
|
|
27663
28668
|
}
|
|
27664
28669
|
.pfx-loading-inline-text {
|
|
27665
28670
|
position: absolute;
|
|
27666
|
-
top: var(--pdx-loading-inline-top,
|
|
27667
|
-
|
|
28671
|
+
top: var(--pdx-loading-inline-top, auto);
|
|
28672
|
+
bottom: var(--pdx-loading-inline-bottom, 16px);
|
|
28673
|
+
right: var(--pdx-loading-inline-right, 20px);
|
|
27668
28674
|
left: auto;
|
|
27669
28675
|
display: var(--pdx-loading-inline-display, inline-flex);
|
|
27670
28676
|
align-items: center;
|
|
27671
|
-
|
|
28677
|
+
gap: 8px;
|
|
28678
|
+
min-height: var(--pdx-loading-inline-min-height, 30px);
|
|
27672
28679
|
max-width: min(
|
|
27673
28680
|
var(--pdx-loading-inline-max-width, 320px),
|
|
27674
|
-
calc(100vw - var(--pdx-loading-inline-right,
|
|
28681
|
+
calc(100vw - var(--pdx-loading-inline-right, 20px) - var(--pdx-loading-inline-left, 20px))
|
|
27675
28682
|
);
|
|
27676
|
-
padding: var(--pdx-loading-inline-padding,
|
|
28683
|
+
padding: var(--pdx-loading-inline-padding, 4px 12px);
|
|
27677
28684
|
border-radius: var(--pdx-loading-inline-radius, 999px);
|
|
27678
|
-
border: var(
|
|
27679
|
-
|
|
27680
|
-
|
|
28685
|
+
border: var(
|
|
28686
|
+
--pdx-loading-inline-border,
|
|
28687
|
+
1px solid var(--md-sys-color-outline-variant, var(--border, rgba(15, 23, 42, 0.12)))
|
|
28688
|
+
);
|
|
28689
|
+
background: var(
|
|
28690
|
+
--pdx-loading-inline-bg,
|
|
28691
|
+
var(--md-sys-color-surface-container-high, var(--card, rgba(255, 255, 255, 0.94)))
|
|
28692
|
+
);
|
|
28693
|
+
box-shadow: var(--pdx-loading-inline-shadow, 0 4px 14px rgba(15, 23, 42, 0.12));
|
|
28694
|
+
backdrop-filter: blur(8px);
|
|
27681
28695
|
font-size: 12px;
|
|
27682
28696
|
font-weight: 500;
|
|
27683
|
-
color: var(--pdx-loading-topbar-text, #
|
|
28697
|
+
color: var(--pdx-loading-topbar-text, var(--md-sys-color-on-surface-variant, #475569));
|
|
27684
28698
|
line-height: 1.2;
|
|
27685
28699
|
white-space: nowrap;
|
|
27686
28700
|
overflow: hidden;
|
|
27687
28701
|
text-overflow: ellipsis;
|
|
27688
28702
|
}
|
|
28703
|
+
.pfx-loading-inline-dot {
|
|
28704
|
+
width: 7px;
|
|
28705
|
+
height: 7px;
|
|
28706
|
+
flex-shrink: 0;
|
|
28707
|
+
border-radius: 50%;
|
|
28708
|
+
background: var(--pdx-loading-spinner-accent, var(--md-sys-color-primary, #8b5cf6));
|
|
28709
|
+
animation: pfxPulse 1.2s ease-in-out infinite;
|
|
28710
|
+
}
|
|
27689
28711
|
.pfx-loading-label-shimmer {
|
|
27690
28712
|
display: block;
|
|
27691
28713
|
max-width: 100%;
|
|
@@ -27738,13 +28760,19 @@ class DefaultLoadingRenderer {
|
|
|
27738
28760
|
}
|
|
27739
28761
|
}
|
|
27740
28762
|
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
|
|
28763
|
+
.pfx-loading-spinner,
|
|
28764
|
+
.pfx-loading-topbar,
|
|
28765
|
+
.pfx-loading-inline-dot,
|
|
27741
28766
|
.pfx-loading-text,
|
|
27742
28767
|
.pfx-loading-label-shimmer {
|
|
27743
28768
|
animation: none !important;
|
|
28769
|
+
will-change: auto;
|
|
28770
|
+
}
|
|
28771
|
+
.pfx-loading-text,
|
|
28772
|
+
.pfx-loading-label-shimmer {
|
|
27744
28773
|
background-image: none !important;
|
|
27745
28774
|
-webkit-text-fill-color: currentColor !important;
|
|
27746
28775
|
color: inherit !important;
|
|
27747
|
-
will-change: auto;
|
|
27748
28776
|
}
|
|
27749
28777
|
}
|
|
27750
28778
|
@media (forced-colors: active) {
|
|
@@ -27755,6 +28783,10 @@ class DefaultLoadingRenderer {
|
|
|
27755
28783
|
}
|
|
27756
28784
|
}
|
|
27757
28785
|
@keyframes pfxSpin { to { transform: rotate(360deg); } }
|
|
28786
|
+
@keyframes pfxPulse {
|
|
28787
|
+
0%, 100% { opacity: 0.45; transform: scale(0.9); }
|
|
28788
|
+
50% { opacity: 1; transform: scale(1); }
|
|
28789
|
+
}
|
|
27758
28790
|
@keyframes pfxBar {
|
|
27759
28791
|
0% { transform: translateX(-60%); opacity: 0.4; }
|
|
27760
28792
|
50% { transform: translateX(0%); opacity: 1; }
|
|
@@ -27848,6 +28880,16 @@ function buildPraxisLayerScaleCss(scale = PRAXIS_LAYER_SCALE_DEFAULTS) {
|
|
|
27848
28880
|
z-index: var(${PRAXIS_LAYER_SCALE_VARS.cdkOverlayWrapper}, ${scale.cdkOverlayWrapper}) !important;
|
|
27849
28881
|
}
|
|
27850
28882
|
|
|
28883
|
+
.cdk-overlay-backdrop.pdx-quick-view-backdrop {
|
|
28884
|
+
z-index: calc(var(${PRAXIS_LAYER_SCALE_VARS.popup}, ${scale.popup}) - 1) !important;
|
|
28885
|
+
}
|
|
28886
|
+
|
|
28887
|
+
.cdk-overlay-pane.pdx-quick-view-overlay-pane,
|
|
28888
|
+
.cdk-overlay-connected-position-bounding-box:has(> .pdx-quick-view-overlay-pane),
|
|
28889
|
+
.cdk-global-overlay-wrapper:has(> .pdx-quick-view-overlay-pane) {
|
|
28890
|
+
z-index: var(${PRAXIS_LAYER_SCALE_VARS.popup}, ${scale.popup}) !important;
|
|
28891
|
+
}
|
|
28892
|
+
|
|
27851
28893
|
.cdk-overlay-connected-position-bounding-box {
|
|
27852
28894
|
z-index: var(${PRAXIS_LAYER_SCALE_VARS.cdkOverlayWrapper}, ${scale.cdkOverlayWrapper}) !important;
|
|
27853
28895
|
}
|
|
@@ -36675,6 +37717,8 @@ const SERVER_OWNED_FIELD_SEMANTIC_KEYS = [
|
|
|
36675
37717
|
'readOnly',
|
|
36676
37718
|
// normalizeFieldConstraints publishes this spelling to runtime consumers.
|
|
36677
37719
|
'readonly',
|
|
37720
|
+
'conditionalReadOnly',
|
|
37721
|
+
'conditionalDisplay',
|
|
36678
37722
|
'editable',
|
|
36679
37723
|
'fieldAccess',
|
|
36680
37724
|
'label',
|
|
@@ -36809,6 +37853,7 @@ function applyLocalCustomizations$1(base, local) {
|
|
|
36809
37853
|
optionValueKey: base.optionValueKey,
|
|
36810
37854
|
colSpan: base.colSpan ?? local.colSpan,
|
|
36811
37855
|
conditionalReadOnly: base.conditionalReadOnly,
|
|
37856
|
+
conditionalDisplay: base.conditionalDisplay,
|
|
36812
37857
|
draftCleared: base.draftCleared,
|
|
36813
37858
|
contextBinding: base.contextBinding,
|
|
36814
37859
|
resourceState: base.resourceState,
|
|
@@ -36903,12 +37948,247 @@ function reconcileFormConfig(layout, serverDefs) {
|
|
|
36903
37948
|
: { ...localField, formHidden: true, disabled: true, submitPolicy: 'omit' });
|
|
36904
37949
|
}
|
|
36905
37950
|
}
|
|
36906
|
-
|
|
37951
|
+
const reconciledLayout = placeNewlyDiscoveredCustomFields(materializedLayout, merged, localByName);
|
|
37952
|
+
// Preserve layout (sections/rows/columns) order unless new custom fields need auto-placement
|
|
36907
37953
|
return {
|
|
36908
|
-
...
|
|
37954
|
+
...reconciledLayout,
|
|
36909
37955
|
fieldMetadata: merged,
|
|
36910
37956
|
};
|
|
36911
37957
|
}
|
|
37958
|
+
function widthToGridUnits(width) {
|
|
37959
|
+
if (typeof width === 'number' && Number.isFinite(width)) {
|
|
37960
|
+
if (width <= 25)
|
|
37961
|
+
return 3;
|
|
37962
|
+
if (width <= 34)
|
|
37963
|
+
return 4;
|
|
37964
|
+
if (width <= 50)
|
|
37965
|
+
return 6;
|
|
37966
|
+
if (width <= 67)
|
|
37967
|
+
return 8;
|
|
37968
|
+
return 12;
|
|
37969
|
+
}
|
|
37970
|
+
if (typeof width !== 'string')
|
|
37971
|
+
return 12;
|
|
37972
|
+
switch (width.trim()) {
|
|
37973
|
+
case '25%':
|
|
37974
|
+
return 3;
|
|
37975
|
+
case '33%':
|
|
37976
|
+
case '33.3%':
|
|
37977
|
+
case '33.33%':
|
|
37978
|
+
return 4;
|
|
37979
|
+
case '50%':
|
|
37980
|
+
return 6;
|
|
37981
|
+
case '66%':
|
|
37982
|
+
case '66.6%':
|
|
37983
|
+
case '66.67%':
|
|
37984
|
+
return 8;
|
|
37985
|
+
default:
|
|
37986
|
+
return 12;
|
|
37987
|
+
}
|
|
37988
|
+
}
|
|
37989
|
+
function packCustomFieldsIntoRows(fields, rowIds, columnIds, itemIds) {
|
|
37990
|
+
const rows = [];
|
|
37991
|
+
let currentColumns = [];
|
|
37992
|
+
let currentUnits = 0;
|
|
37993
|
+
const flushRow = () => {
|
|
37994
|
+
if (currentColumns.length === 0)
|
|
37995
|
+
return;
|
|
37996
|
+
const firstSlug = slugifyCustomLayoutId(currentColumns[0].fields[0] || 'custom');
|
|
37997
|
+
rows.push({
|
|
37998
|
+
id: allocateUniqueLayoutId(rowIds, `row-${firstSlug}`),
|
|
37999
|
+
columns: currentColumns,
|
|
38000
|
+
});
|
|
38001
|
+
currentColumns = [];
|
|
38002
|
+
currentUnits = 0;
|
|
38003
|
+
};
|
|
38004
|
+
fields.forEach((field, index) => {
|
|
38005
|
+
const units = widthToGridUnits(field.width);
|
|
38006
|
+
if (currentColumns.length > 0 && currentUnits + units > 12) {
|
|
38007
|
+
flushRow();
|
|
38008
|
+
}
|
|
38009
|
+
const baseItem = createFieldLayoutItem(field.name, index);
|
|
38010
|
+
const itemId = allocateUniqueLayoutId(itemIds, baseItem.id);
|
|
38011
|
+
const uniqueItem = { ...baseItem, id: itemId };
|
|
38012
|
+
const fieldSlug = slugifyCustomLayoutId(field.name);
|
|
38013
|
+
const colId = allocateUniqueLayoutId(columnIds, `col-${fieldSlug}`);
|
|
38014
|
+
const column = {
|
|
38015
|
+
id: colId,
|
|
38016
|
+
items: [uniqueItem],
|
|
38017
|
+
fields: [field.name],
|
|
38018
|
+
...(units < 12 ? { span: { xs: 12, md: units } } : {}),
|
|
38019
|
+
};
|
|
38020
|
+
currentColumns.push(column);
|
|
38021
|
+
currentUnits += units;
|
|
38022
|
+
if (currentUnits >= 12) {
|
|
38023
|
+
flushRow();
|
|
38024
|
+
}
|
|
38025
|
+
});
|
|
38026
|
+
flushRow();
|
|
38027
|
+
return rows;
|
|
38028
|
+
}
|
|
38029
|
+
function placeNewlyDiscoveredCustomFields(layout, mergedFields, localByName) {
|
|
38030
|
+
if (!Array.isArray(layout.sections) || layout.sections.length === 0) {
|
|
38031
|
+
return layout;
|
|
38032
|
+
}
|
|
38033
|
+
const placedNames = new Set();
|
|
38034
|
+
const sectionIds = new Set();
|
|
38035
|
+
const rowIds = new Set();
|
|
38036
|
+
const columnIds = new Set();
|
|
38037
|
+
const itemIds = new Set();
|
|
38038
|
+
for (const section of layout.sections) {
|
|
38039
|
+
if (section.id)
|
|
38040
|
+
sectionIds.add(section.id);
|
|
38041
|
+
for (const row of section.rows ?? []) {
|
|
38042
|
+
if (row.id)
|
|
38043
|
+
rowIds.add(row.id);
|
|
38044
|
+
for (const column of row.columns ?? []) {
|
|
38045
|
+
if (column.id)
|
|
38046
|
+
columnIds.add(column.id);
|
|
38047
|
+
for (const item of column.items ?? []) {
|
|
38048
|
+
if (item.id)
|
|
38049
|
+
itemIds.add(item.id);
|
|
38050
|
+
}
|
|
38051
|
+
for (const name of getFormColumnFieldNames(column)) {
|
|
38052
|
+
placedNames.add(name);
|
|
38053
|
+
}
|
|
38054
|
+
}
|
|
38055
|
+
}
|
|
38056
|
+
}
|
|
38057
|
+
// Preserve incomplete stub layouts and empty section shells without inventing structure
|
|
38058
|
+
if (placedNames.size === 0) {
|
|
38059
|
+
return layout;
|
|
38060
|
+
}
|
|
38061
|
+
const unplacedCustomFields = mergedFields
|
|
38062
|
+
.map((field, index) => ({ field, index }))
|
|
38063
|
+
.filter(({ field }) => field.customField === true &&
|
|
38064
|
+
field.formHidden !== true &&
|
|
38065
|
+
!localByName.has(field.name) &&
|
|
38066
|
+
!placedNames.has(field.name))
|
|
38067
|
+
.sort((a, b) => {
|
|
38068
|
+
const orderA = a.field.order ?? Number.MAX_SAFE_INTEGER;
|
|
38069
|
+
const orderB = b.field.order ?? Number.MAX_SAFE_INTEGER;
|
|
38070
|
+
return orderA !== orderB ? orderA - orderB : a.index - b.index;
|
|
38071
|
+
})
|
|
38072
|
+
.map(({ field }) => field);
|
|
38073
|
+
if (unplacedCustomFields.length === 0) {
|
|
38074
|
+
return layout;
|
|
38075
|
+
}
|
|
38076
|
+
const grouped = new Map();
|
|
38077
|
+
for (const field of unplacedCustomFields) {
|
|
38078
|
+
const label = field.group?.trim() || 'Campos Customizados';
|
|
38079
|
+
const key = label.toLowerCase();
|
|
38080
|
+
const bucket = grouped.get(key);
|
|
38081
|
+
if (bucket) {
|
|
38082
|
+
bucket.fields.push(field);
|
|
38083
|
+
}
|
|
38084
|
+
else {
|
|
38085
|
+
grouped.set(key, { label, fields: [field] });
|
|
38086
|
+
}
|
|
38087
|
+
}
|
|
38088
|
+
const nextSections = [...layout.sections];
|
|
38089
|
+
const hasExplicitTabs = Array.isArray(layout.layout?.tabs) && layout.layout.tabs.length > 0;
|
|
38090
|
+
const nextTabs = hasExplicitTabs
|
|
38091
|
+
? layout.layout.tabs.map((tab) => ({
|
|
38092
|
+
...tab,
|
|
38093
|
+
sectionIds: [...(tab.sectionIds ?? [])],
|
|
38094
|
+
}))
|
|
38095
|
+
: undefined;
|
|
38096
|
+
const tabIds = new Set((nextTabs ?? []).map((tab) => tab.id).filter((id) => Boolean(id)));
|
|
38097
|
+
const hasExplicitSteps = Array.isArray(layout.layout?.steps) && layout.layout.steps.length > 0;
|
|
38098
|
+
const nextSteps = hasExplicitSteps
|
|
38099
|
+
? layout.layout.steps.map((step) => ({
|
|
38100
|
+
...step,
|
|
38101
|
+
sectionIds: [...(step.sectionIds ?? [])],
|
|
38102
|
+
}))
|
|
38103
|
+
: undefined;
|
|
38104
|
+
const stepIds = new Set((nextSteps ?? []).map((step) => step.id).filter((id) => Boolean(id)));
|
|
38105
|
+
for (const { label, fields } of grouped.values()) {
|
|
38106
|
+
const labelLower = label.toLowerCase();
|
|
38107
|
+
const labelSlug = slugifyCustomLayoutId(label);
|
|
38108
|
+
const newRows = packCustomFieldsIntoRows(fields, rowIds, columnIds, itemIds);
|
|
38109
|
+
let matchIndex = nextSections.findIndex((section) => {
|
|
38110
|
+
const titleLower = section.title?.trim().toLowerCase();
|
|
38111
|
+
const idLower = section.id?.trim().toLowerCase();
|
|
38112
|
+
return titleLower === labelLower || idLower === labelLower || idLower === labelSlug;
|
|
38113
|
+
});
|
|
38114
|
+
if (matchIndex < 0 && nextTabs) {
|
|
38115
|
+
const matchedTab = nextTabs.find((tab) => tab.label?.trim().toLowerCase() === labelLower && (tab.sectionIds?.length ?? 0) > 0);
|
|
38116
|
+
if (matchedTab) {
|
|
38117
|
+
const lastSectionId = matchedTab.sectionIds[matchedTab.sectionIds.length - 1];
|
|
38118
|
+
matchIndex = nextSections.findIndex((section) => section.id === lastSectionId);
|
|
38119
|
+
}
|
|
38120
|
+
}
|
|
38121
|
+
if (matchIndex < 0 && nextSteps) {
|
|
38122
|
+
const matchedStep = nextSteps.find((step) => step.label?.trim().toLowerCase() === labelLower && (step.sectionIds?.length ?? 0) > 0);
|
|
38123
|
+
if (matchedStep) {
|
|
38124
|
+
const lastSectionId = matchedStep.sectionIds[matchedStep.sectionIds.length - 1];
|
|
38125
|
+
matchIndex = nextSections.findIndex((section) => section.id === lastSectionId);
|
|
38126
|
+
}
|
|
38127
|
+
}
|
|
38128
|
+
let targetSectionId;
|
|
38129
|
+
if (matchIndex >= 0) {
|
|
38130
|
+
const existing = nextSections[matchIndex];
|
|
38131
|
+
targetSectionId = existing.id;
|
|
38132
|
+
nextSections[matchIndex] = {
|
|
38133
|
+
...existing,
|
|
38134
|
+
rows: [...(existing.rows ?? []), ...newRows],
|
|
38135
|
+
};
|
|
38136
|
+
}
|
|
38137
|
+
else {
|
|
38138
|
+
targetSectionId = allocateUniqueLayoutId(sectionIds, `custom-section-${labelSlug}`);
|
|
38139
|
+
nextSections.push({
|
|
38140
|
+
id: targetSectionId,
|
|
38141
|
+
title: label,
|
|
38142
|
+
rows: newRows,
|
|
38143
|
+
});
|
|
38144
|
+
}
|
|
38145
|
+
if (nextTabs && !nextTabs.some((tab) => tab.sectionIds.includes(targetSectionId))) {
|
|
38146
|
+
nextTabs.push({
|
|
38147
|
+
id: allocateUniqueLayoutId(tabIds, `custom-tab-${labelSlug}`),
|
|
38148
|
+
label,
|
|
38149
|
+
sectionIds: [targetSectionId],
|
|
38150
|
+
});
|
|
38151
|
+
}
|
|
38152
|
+
if (nextSteps && !nextSteps.some((step) => step.sectionIds.includes(targetSectionId))) {
|
|
38153
|
+
nextSteps.push({
|
|
38154
|
+
id: allocateUniqueLayoutId(stepIds, `custom-step-${labelSlug}`),
|
|
38155
|
+
label,
|
|
38156
|
+
sectionIds: [targetSectionId],
|
|
38157
|
+
});
|
|
38158
|
+
}
|
|
38159
|
+
}
|
|
38160
|
+
return {
|
|
38161
|
+
...layout,
|
|
38162
|
+
sections: nextSections,
|
|
38163
|
+
...(nextTabs || nextSteps
|
|
38164
|
+
? {
|
|
38165
|
+
layout: {
|
|
38166
|
+
...layout.layout,
|
|
38167
|
+
...(nextTabs ? { tabs: nextTabs } : {}),
|
|
38168
|
+
...(nextSteps ? { steps: nextSteps } : {}),
|
|
38169
|
+
},
|
|
38170
|
+
}
|
|
38171
|
+
: {}),
|
|
38172
|
+
};
|
|
38173
|
+
}
|
|
38174
|
+
function slugifyCustomLayoutId(value) {
|
|
38175
|
+
const normalized = value
|
|
38176
|
+
.trim()
|
|
38177
|
+
.toLowerCase()
|
|
38178
|
+
.normalize('NFD')
|
|
38179
|
+
.replace(/[\u0300-\u036f]/g, '')
|
|
38180
|
+
.replace(/[^a-z0-9]+/g, '-')
|
|
38181
|
+
.replace(/^-+|-+$/g, '');
|
|
38182
|
+
return normalized || 'custom';
|
|
38183
|
+
}
|
|
38184
|
+
function allocateUniqueLayoutId(used, base) {
|
|
38185
|
+
let candidate = base;
|
|
38186
|
+
for (let suffix = 2; used.has(candidate); suffix += 1) {
|
|
38187
|
+
candidate = `${base}-${suffix}`;
|
|
38188
|
+
}
|
|
38189
|
+
used.add(candidate);
|
|
38190
|
+
return candidate;
|
|
38191
|
+
}
|
|
36912
38192
|
|
|
36913
38193
|
function withFormConfigSections(config) {
|
|
36914
38194
|
return {
|
|
@@ -41298,6 +42578,7 @@ function markerColorForEvent$1(eventType) {
|
|
|
41298
42578
|
return 'neutral';
|
|
41299
42579
|
}
|
|
41300
42580
|
|
|
42581
|
+
const DOMAIN_RULE_DOCUMENTATION_KEY = 'documentation';
|
|
41301
42582
|
/** Narrows an unknown HTTP error body without relying on human-readable message parsing. */
|
|
41302
42583
|
function isDomainRuleSnapshotProblemResponse(value) {
|
|
41303
42584
|
if (!isRecord$3(value) || typeof value['code'] !== 'string' || typeof value['message'] !== 'string') {
|
|
@@ -41316,6 +42597,99 @@ function isDomainRuleSnapshotBlocker(value) {
|
|
|
41316
42597
|
function isRecord$3(value) {
|
|
41317
42598
|
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
41318
42599
|
}
|
|
42600
|
+
function cleanDocText(value) {
|
|
42601
|
+
if (typeof value !== 'string') {
|
|
42602
|
+
return undefined;
|
|
42603
|
+
}
|
|
42604
|
+
const trimmed = value.trim();
|
|
42605
|
+
return trimmed || undefined;
|
|
42606
|
+
}
|
|
42607
|
+
/**
|
|
42608
|
+
* Extracts normalized non-executable didactic documentation from either a
|
|
42609
|
+
* `DomainRuleDefinition.definition` payload (under `DOMAIN_RULE_DOCUMENTATION_KEY`)
|
|
42610
|
+
* or a direct `RuleDocumentationDescriptor` object.
|
|
42611
|
+
*/
|
|
42612
|
+
function extractDomainRuleDocumentation(definitionOrRecord) {
|
|
42613
|
+
if (!isRecord$3(definitionOrRecord)) {
|
|
42614
|
+
return null;
|
|
42615
|
+
}
|
|
42616
|
+
const candidate = isRecord$3(definitionOrRecord[DOMAIN_RULE_DOCUMENTATION_KEY])
|
|
42617
|
+
? definitionOrRecord[DOMAIN_RULE_DOCUMENTATION_KEY]
|
|
42618
|
+
: definitionOrRecord;
|
|
42619
|
+
if (!isRecord$3(candidate)) {
|
|
42620
|
+
return null;
|
|
42621
|
+
}
|
|
42622
|
+
const title = cleanDocText(candidate['title']);
|
|
42623
|
+
const summary = cleanDocText(candidate['summary']);
|
|
42624
|
+
const whenApplies = cleanDocText(candidate['whenApplies']);
|
|
42625
|
+
const rationale = cleanDocText(candidate['rationale']);
|
|
42626
|
+
const customizationGuidance = cleanDocText(candidate['customizationGuidance']);
|
|
42627
|
+
const rawLegal = candidate['legalBasis'];
|
|
42628
|
+
const legalList = [];
|
|
42629
|
+
if (Array.isArray(rawLegal)) {
|
|
42630
|
+
for (const entry of rawLegal) {
|
|
42631
|
+
if (typeof entry === 'string') {
|
|
42632
|
+
const code = cleanDocText(entry);
|
|
42633
|
+
if (code) {
|
|
42634
|
+
legalList.push({ code });
|
|
42635
|
+
}
|
|
42636
|
+
}
|
|
42637
|
+
else if (isRecord$3(entry)) {
|
|
42638
|
+
const code = cleanDocText(entry['code']) ?? cleanDocText(entry['title']);
|
|
42639
|
+
if (code) {
|
|
42640
|
+
legalList.push({
|
|
42641
|
+
code,
|
|
42642
|
+
...(cleanDocText(entry['title']) ? { title: cleanDocText(entry['title']) } : {}),
|
|
42643
|
+
...(cleanDocText(entry['article']) ? { article: cleanDocText(entry['article']) } : {}),
|
|
42644
|
+
...(cleanDocText(entry['jurisdiction'])
|
|
42645
|
+
? { jurisdiction: cleanDocText(entry['jurisdiction']) }
|
|
42646
|
+
: {}),
|
|
42647
|
+
...(cleanDocText(entry['summary']) ? { summary: cleanDocText(entry['summary']) } : {}),
|
|
42648
|
+
...(cleanDocText(entry['url']) ? { url: cleanDocText(entry['url']) } : {}),
|
|
42649
|
+
});
|
|
42650
|
+
}
|
|
42651
|
+
}
|
|
42652
|
+
}
|
|
42653
|
+
}
|
|
42654
|
+
else if (typeof rawLegal === 'string') {
|
|
42655
|
+
const code = cleanDocText(rawLegal);
|
|
42656
|
+
if (code) {
|
|
42657
|
+
legalList.push({ code });
|
|
42658
|
+
}
|
|
42659
|
+
}
|
|
42660
|
+
if (!title &&
|
|
42661
|
+
!summary &&
|
|
42662
|
+
!whenApplies &&
|
|
42663
|
+
!rationale &&
|
|
42664
|
+
!customizationGuidance &&
|
|
42665
|
+
legalList.length === 0) {
|
|
42666
|
+
return null;
|
|
42667
|
+
}
|
|
42668
|
+
return {
|
|
42669
|
+
...(title ? { title } : {}),
|
|
42670
|
+
...(summary ? { summary } : {}),
|
|
42671
|
+
...(whenApplies ? { whenApplies } : {}),
|
|
42672
|
+
...(rationale ? { rationale } : {}),
|
|
42673
|
+
...(legalList.length > 0 ? { legalBasis: legalList } : {}),
|
|
42674
|
+
...(customizationGuidance ? { customizationGuidance } : {}),
|
|
42675
|
+
};
|
|
42676
|
+
}
|
|
42677
|
+
/**
|
|
42678
|
+
* Merges didactic documentation under `DOMAIN_RULE_DOCUMENTATION_KEY` into a
|
|
42679
|
+
* `DomainRuleDefinition.definition` payload without mutating the source object.
|
|
42680
|
+
*/
|
|
42681
|
+
function mergeDomainRuleDocumentation(definition, documentation) {
|
|
42682
|
+
const base = isRecord$3(definition) ? { ...definition } : {};
|
|
42683
|
+
const normalized = extractDomainRuleDocumentation(documentation);
|
|
42684
|
+
if (!normalized) {
|
|
42685
|
+
delete base[DOMAIN_RULE_DOCUMENTATION_KEY];
|
|
42686
|
+
return base;
|
|
42687
|
+
}
|
|
42688
|
+
return {
|
|
42689
|
+
...base,
|
|
42690
|
+
[DOMAIN_RULE_DOCUMENTATION_KEY]: normalized,
|
|
42691
|
+
};
|
|
42692
|
+
}
|
|
41319
42693
|
|
|
41320
42694
|
const DEFAULT_TITLE = 'Governed decision timeline';
|
|
41321
42695
|
const DEFAULT_EMPTY_TEXT = 'No safe timeline events published for this decision.';
|
|
@@ -41695,6 +43069,129 @@ function normalizeSchemaFormLayoutMode(mode) {
|
|
|
41695
43069
|
return undefined;
|
|
41696
43070
|
}
|
|
41697
43071
|
}
|
|
43072
|
+
function normalizeSchemaTabsAppearance(appearance) {
|
|
43073
|
+
if (typeof appearance !== 'string')
|
|
43074
|
+
return undefined;
|
|
43075
|
+
switch (appearance.trim().toLowerCase()) {
|
|
43076
|
+
case 'pills':
|
|
43077
|
+
return 'pills';
|
|
43078
|
+
case 'underline':
|
|
43079
|
+
return 'underline';
|
|
43080
|
+
case 'buttons':
|
|
43081
|
+
return 'buttons';
|
|
43082
|
+
default:
|
|
43083
|
+
return undefined;
|
|
43084
|
+
}
|
|
43085
|
+
}
|
|
43086
|
+
function normalizeSchemaStepperReadMode(mode) {
|
|
43087
|
+
if (typeof mode !== 'string')
|
|
43088
|
+
return undefined;
|
|
43089
|
+
switch (mode.trim().toLowerCase()) {
|
|
43090
|
+
case 'presentation':
|
|
43091
|
+
return 'presentation';
|
|
43092
|
+
case 'all':
|
|
43093
|
+
return 'all';
|
|
43094
|
+
case 'none':
|
|
43095
|
+
return 'none';
|
|
43096
|
+
default:
|
|
43097
|
+
return undefined;
|
|
43098
|
+
}
|
|
43099
|
+
}
|
|
43100
|
+
function buildMaterializedFormLayoutOptions(schemaLayout, sections) {
|
|
43101
|
+
if (!schemaLayout)
|
|
43102
|
+
return undefined;
|
|
43103
|
+
const normalizedMode = normalizeSchemaFormLayoutMode(schemaLayout.mode);
|
|
43104
|
+
const defaultTabId = typeof schemaLayout.defaultTabId === 'string' && schemaLayout.defaultTabId.trim()
|
|
43105
|
+
? schemaLayout.defaultTabId.trim()
|
|
43106
|
+
: undefined;
|
|
43107
|
+
const tabsAppearance = normalizeSchemaTabsAppearance(schemaLayout.tabsAppearance);
|
|
43108
|
+
const accordionMulti = typeof schemaLayout.accordionMulti === 'boolean'
|
|
43109
|
+
? schemaLayout.accordionMulti
|
|
43110
|
+
: undefined;
|
|
43111
|
+
const hideSectionHeaderInTabs = typeof schemaLayout.hideSectionHeaderInTabs === 'boolean'
|
|
43112
|
+
? schemaLayout.hideSectionHeaderInTabs
|
|
43113
|
+
: undefined;
|
|
43114
|
+
const hideSectionHeaderInStepper = typeof schemaLayout.hideSectionHeaderInStepper === 'boolean'
|
|
43115
|
+
? schemaLayout.hideSectionHeaderInStepper
|
|
43116
|
+
: undefined;
|
|
43117
|
+
const stepperInReadMode = normalizeSchemaStepperReadMode(schemaLayout.stepperInReadMode);
|
|
43118
|
+
const stepperReviewStep = typeof schemaLayout.stepperReviewStep === 'boolean'
|
|
43119
|
+
? schemaLayout.stepperReviewStep
|
|
43120
|
+
: undefined;
|
|
43121
|
+
const draftPersistence = typeof schemaLayout.draftPersistence === 'boolean'
|
|
43122
|
+
? schemaLayout.draftPersistence
|
|
43123
|
+
: undefined;
|
|
43124
|
+
const steps = Array.isArray(schemaLayout.steps) && schemaLayout.steps.length > 0
|
|
43125
|
+
? schemaLayout.steps
|
|
43126
|
+
.map((step) => {
|
|
43127
|
+
const id = typeof step?.id === 'string' ? step.id.trim() : '';
|
|
43128
|
+
const sectionIds = Array.isArray(step?.sectionIds)
|
|
43129
|
+
? step.sectionIds.map((s) => String(s ?? '').trim()).filter(Boolean)
|
|
43130
|
+
: [];
|
|
43131
|
+
if (!id || !sectionIds.length) {
|
|
43132
|
+
return null;
|
|
43133
|
+
}
|
|
43134
|
+
const description = typeof step.description === 'string' && step.description.trim()
|
|
43135
|
+
? step.description.trim()
|
|
43136
|
+
: undefined;
|
|
43137
|
+
const icon = typeof step.icon === 'string' && step.icon.trim()
|
|
43138
|
+
? step.icon.trim()
|
|
43139
|
+
: undefined;
|
|
43140
|
+
const tooltip = typeof step.tooltip === 'string' && step.tooltip.trim()
|
|
43141
|
+
? step.tooltip.trim()
|
|
43142
|
+
: undefined;
|
|
43143
|
+
return {
|
|
43144
|
+
id,
|
|
43145
|
+
label: (typeof step.label === 'string' ? step.label.trim() : '') || id,
|
|
43146
|
+
...(description ? { description } : {}),
|
|
43147
|
+
...(icon ? { icon } : {}),
|
|
43148
|
+
sectionIds,
|
|
43149
|
+
...(step.optional === true ? { optional: true } : {}),
|
|
43150
|
+
...(step.badge !== undefined && step.badge !== null && step.badge !== ''
|
|
43151
|
+
? { badge: step.badge }
|
|
43152
|
+
: {}),
|
|
43153
|
+
...(step.disabled === true ? { disabled: true } : {}),
|
|
43154
|
+
...(tooltip ? { tooltip } : {}),
|
|
43155
|
+
};
|
|
43156
|
+
})
|
|
43157
|
+
.filter((item) => item !== null)
|
|
43158
|
+
: undefined;
|
|
43159
|
+
const normalizedSteps = steps && steps.length > 0 ? steps : undefined;
|
|
43160
|
+
if (!normalizedMode &&
|
|
43161
|
+
!defaultTabId &&
|
|
43162
|
+
!tabsAppearance &&
|
|
43163
|
+
accordionMulti === undefined &&
|
|
43164
|
+
hideSectionHeaderInTabs === undefined &&
|
|
43165
|
+
hideSectionHeaderInStepper === undefined &&
|
|
43166
|
+
stepperInReadMode === undefined &&
|
|
43167
|
+
stepperReviewStep === undefined &&
|
|
43168
|
+
draftPersistence === undefined &&
|
|
43169
|
+
!normalizedSteps) {
|
|
43170
|
+
return undefined;
|
|
43171
|
+
}
|
|
43172
|
+
return {
|
|
43173
|
+
...(normalizedMode ? { mode: normalizedMode } : {}),
|
|
43174
|
+
...(defaultTabId ? { defaultTabId } : {}),
|
|
43175
|
+
...(tabsAppearance ? { tabsAppearance } : {}),
|
|
43176
|
+
...(accordionMulti !== undefined ? { accordionMulti } : {}),
|
|
43177
|
+
...(hideSectionHeaderInTabs !== undefined ? { hideSectionHeaderInTabs } : {}),
|
|
43178
|
+
...(hideSectionHeaderInStepper !== undefined ? { hideSectionHeaderInStepper } : {}),
|
|
43179
|
+
...(stepperInReadMode ? { stepperInReadMode } : {}),
|
|
43180
|
+
...(stepperReviewStep !== undefined ? { stepperReviewStep } : {}),
|
|
43181
|
+
...(draftPersistence !== undefined ? { draftPersistence } : {}),
|
|
43182
|
+
...(normalizedSteps ? { steps: normalizedSteps } : {}),
|
|
43183
|
+
...(normalizedMode === 'tabs'
|
|
43184
|
+
? {
|
|
43185
|
+
tabs: sections.map((s) => ({
|
|
43186
|
+
id: s.id,
|
|
43187
|
+
label: s.title || s.id,
|
|
43188
|
+
...(s.icon ? { icon: s.icon } : {}),
|
|
43189
|
+
sectionIds: [s.id],
|
|
43190
|
+
})),
|
|
43191
|
+
}
|
|
43192
|
+
: {}),
|
|
43193
|
+
};
|
|
43194
|
+
}
|
|
41698
43195
|
function buildSectionsFromSchemaFormLayout(layoutFields, schemaLayout, policy, options) {
|
|
41699
43196
|
const orderedSections = [...(schemaLayout.sections ?? [])].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
|
41700
43197
|
const claimedFieldNames = new Set();
|
|
@@ -41718,11 +43215,13 @@ function buildSectionsFromSchemaFormLayout(layoutFields, schemaLayout, policy, o
|
|
|
41718
43215
|
for (const f of matchingFields) {
|
|
41719
43216
|
claimedFieldNames.add(f.name);
|
|
41720
43217
|
}
|
|
41721
|
-
const
|
|
43218
|
+
const explicitSectionId = schemaSec.id?.trim() || undefined;
|
|
43219
|
+
const baseSection = createSection(schemaSec.title || schemaSec.id || `section-${idx + 1}`, matchingFields, idx, policy, options, explicitSectionId);
|
|
41722
43220
|
built.push({
|
|
41723
43221
|
...baseSection,
|
|
41724
43222
|
id: schemaSec.id?.trim() || baseSection.id,
|
|
41725
43223
|
title: schemaSec.title?.trim() || baseSection.title,
|
|
43224
|
+
...(schemaSec.optional === true ? { optional: true } : {}),
|
|
41726
43225
|
...(schemaSec.subtitle?.trim() ? { description: schemaSec.subtitle.trim() } : {}),
|
|
41727
43226
|
...(schemaSec.icon?.trim()
|
|
41728
43227
|
? {
|
|
@@ -41756,22 +43255,7 @@ function materializeFormLayoutFromMetadata(fields, options = {}) {
|
|
|
41756
43255
|
const sections = schemaFormLayout?.sections?.length
|
|
41757
43256
|
? buildSectionsFromSchemaFormLayout(layoutFields, schemaFormLayout, policy, options)
|
|
41758
43257
|
: groupFields(layoutFields).map(([groupKey, grouped], sectionIndex) => createSection(groupKey, grouped, sectionIndex, policy, options));
|
|
41759
|
-
const
|
|
41760
|
-
const layout = normalizedMode
|
|
41761
|
-
? {
|
|
41762
|
-
mode: normalizedMode,
|
|
41763
|
-
...(normalizedMode === 'tabs'
|
|
41764
|
-
? {
|
|
41765
|
-
tabs: sections.map((s) => ({
|
|
41766
|
-
id: s.id,
|
|
41767
|
-
label: s.title || s.id,
|
|
41768
|
-
...(s.icon ? { icon: s.icon } : {}),
|
|
41769
|
-
sectionIds: [s.id],
|
|
41770
|
-
})),
|
|
41771
|
-
}
|
|
41772
|
-
: {}),
|
|
41773
|
-
}
|
|
41774
|
-
: undefined;
|
|
43258
|
+
const layout = buildMaterializedFormLayoutOptions(schemaFormLayout, sections);
|
|
41775
43259
|
return ensureIds({
|
|
41776
43260
|
sections,
|
|
41777
43261
|
...(layout ? { layout } : {}),
|
|
@@ -42000,12 +43484,12 @@ function groupFields(fields) {
|
|
|
42000
43484
|
}
|
|
42001
43485
|
return Array.from(groups.entries()).sort(([, left], [, right]) => compareGroupFields(left, right));
|
|
42002
43486
|
}
|
|
42003
|
-
function createSection(groupKey, groupFields, sectionIndex, policy, options) {
|
|
43487
|
+
function createSection(groupKey, groupFields, sectionIndex, policy, options, explicitSectionId) {
|
|
42004
43488
|
const title = groupKey === 'default'
|
|
42005
43489
|
? options.defaultSectionTitle
|
|
42006
43490
|
?? (policy.preset === 'groupedCommand' ? '' : 'Informacoes')
|
|
42007
43491
|
: groupKey;
|
|
42008
|
-
const sectionId = stableSectionId(groupKey);
|
|
43492
|
+
const sectionId = explicitSectionId?.trim() || stableSectionId(groupKey);
|
|
42009
43493
|
const presentationRole = resolvePresentationRole(groupKey, groupFields, options.presentationRoleMap);
|
|
42010
43494
|
return {
|
|
42011
43495
|
id: sectionId,
|
|
@@ -44145,7 +45629,7 @@ class PraxisIconButtonComponent {
|
|
|
44145
45629
|
<mat-icon [class]="defaultAuxiliaryClasses" [fontSet]="resolvedFontClass()" [praxisIcon]="resolvedIcon()"></mat-icon>
|
|
44146
45630
|
}
|
|
44147
45631
|
</span>
|
|
44148
|
-
`, 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 });
|
|
45632
|
+
`, 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 });
|
|
44149
45633
|
}
|
|
44150
45634
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisIconButtonComponent, decorators: [{
|
|
44151
45635
|
type: Component,
|
|
@@ -44171,7 +45655,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
44171
45655
|
'[class.praxis-icon-button--filled]': 'appearance() === "filled"',
|
|
44172
45656
|
'[class.praxis-icon-button--pressed]': 'pressed() === true',
|
|
44173
45657
|
'[class.praxis-icon-button--busy]': 'busy()',
|
|
44174
|
-
}, 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"] }]
|
|
45658
|
+
}, 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"] }]
|
|
44175
45659
|
}], 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 }] }] } });
|
|
44176
45660
|
|
|
44177
45661
|
/** Finite choices from the existing ComponentDocMeta type grammar, not user intent. */
|
|
@@ -52149,7 +53633,7 @@ class WindowIsolation {
|
|
|
52149
53633
|
this.container = container;
|
|
52150
53634
|
this.scrollStrategy = scrollStrategy;
|
|
52151
53635
|
this.onEmpty = onEmpty;
|
|
52152
|
-
this.observer = new MutationObserver(() => this.refresh());
|
|
53636
|
+
this.observer = typeof MutationObserver !== 'undefined' ? new MutationObserver(() => this.refresh()) : null;
|
|
52153
53637
|
}
|
|
52154
53638
|
add(wrapper) {
|
|
52155
53639
|
if (!this.windows.length)
|
|
@@ -52213,18 +53697,18 @@ class WindowIsolation {
|
|
|
52213
53697
|
}
|
|
52214
53698
|
if (!this.windows.length) {
|
|
52215
53699
|
this.closed = true;
|
|
52216
|
-
this.observer
|
|
53700
|
+
this.observer?.disconnect();
|
|
52217
53701
|
this.observedAncestors = [];
|
|
52218
53702
|
this.scrollStrategy.disable();
|
|
52219
53703
|
this.onEmpty();
|
|
52220
53704
|
}
|
|
52221
53705
|
else if (ancestors.length !== this.observedAncestors.length
|
|
52222
53706
|
|| ancestors.some((ancestor, index) => ancestor !== this.observedAncestors[index])) {
|
|
52223
|
-
this.observer
|
|
53707
|
+
this.observer?.disconnect();
|
|
52224
53708
|
// Observe structural siblings only, never mutations in every cell/form
|
|
52225
53709
|
// under body. Attribute writes cannot feed back into this observer.
|
|
52226
53710
|
for (const ancestor of ancestors)
|
|
52227
|
-
this.observer
|
|
53711
|
+
this.observer?.observe(ancestor, { childList: true });
|
|
52228
53712
|
this.observedAncestors = ancestors;
|
|
52229
53713
|
}
|
|
52230
53714
|
}
|
|
@@ -53574,7 +55058,7 @@ class PraxisResourceIdentityComponent {
|
|
|
53574
55058
|
</div>
|
|
53575
55059
|
}
|
|
53576
55060
|
</div>
|
|
53577
|
-
`, 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 });
|
|
55061
|
+
`, 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 });
|
|
53578
55062
|
}
|
|
53579
55063
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisResourceIdentityComponent, decorators: [{
|
|
53580
55064
|
type: Component,
|
|
@@ -53617,7 +55101,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
53617
55101
|
</div>
|
|
53618
55102
|
}
|
|
53619
55103
|
</div>
|
|
53620
|
-
`, 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"] }]
|
|
55104
|
+
`, 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"] }]
|
|
53621
55105
|
}], propDecorators: { identity: [{
|
|
53622
55106
|
type: Input
|
|
53623
55107
|
}], emptyTitle: [{
|
|
@@ -58701,6 +60185,8 @@ class SettingsSectionTabsComponent {
|
|
|
58701
60185
|
destroyRef = inject(DestroyRef);
|
|
58702
60186
|
constructor() {
|
|
58703
60187
|
afterNextRender(() => {
|
|
60188
|
+
if (typeof ResizeObserver === 'undefined')
|
|
60189
|
+
return;
|
|
58704
60190
|
const observer = new ResizeObserver(entries => this.columns.set(entries[0].contentRect.width >= 280 ? 2 : 1));
|
|
58705
60191
|
observer.observe(this.element.nativeElement);
|
|
58706
60192
|
this.destroyRef.onDestroy(() => observer.disconnect());
|
|
@@ -65468,6 +66954,10 @@ class DynamicWidgetPageComponent {
|
|
|
65468
66954
|
focusSizeEditor(overlay) {
|
|
65469
66955
|
overlay.overlayElement.querySelector('input')?.focus({ preventScroll: true });
|
|
65470
66956
|
this.sizeEditorResizeObserver?.disconnect();
|
|
66957
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
66958
|
+
this.sizeEditorResizeObserver = undefined;
|
|
66959
|
+
return;
|
|
66960
|
+
}
|
|
65471
66961
|
this.sizeEditorResizeObserver = new ResizeObserver(() => {
|
|
65472
66962
|
if (overlay.hasAttached())
|
|
65473
66963
|
overlay.updatePosition();
|
|
@@ -66234,7 +67724,7 @@ class DynamicWidgetPageComponent {
|
|
|
66234
67724
|
}
|
|
66235
67725
|
observeSouthPreview(key) {
|
|
66236
67726
|
const host = this.pageCanvasHost?.nativeElement;
|
|
66237
|
-
if (!host)
|
|
67727
|
+
if (!host || typeof ResizeObserver === 'undefined')
|
|
66238
67728
|
return;
|
|
66239
67729
|
this.sizeEditorSouthObserver = new ResizeObserver(() => {
|
|
66240
67730
|
if (!this.sizeEditorSouthSignature || !this.sizeEditorOrigin())
|
|
@@ -74703,6 +76193,7 @@ class PraxisAppShellComponent {
|
|
|
74703
76193
|
}, ...(ngDevMode ? [{ debugName: "shellText" }] : /* istanbul ignore next */ []));
|
|
74704
76194
|
cdr = inject(ChangeDetectorRef);
|
|
74705
76195
|
loadingOrchestrator = inject(LoadingOrchestrator, { optional: true });
|
|
76196
|
+
loadingRenderer = inject(PRAXIS_LOADING_RENDERER, { optional: true });
|
|
74706
76197
|
orchestratorLoading = this.loadingOrchestrator
|
|
74707
76198
|
? toSignal(this.loadingOrchestrator.watch().pipe(map((list) => list.length > 0)), {
|
|
74708
76199
|
initialValue: false,
|
|
@@ -74920,7 +76411,7 @@ class PraxisAppShellComponent {
|
|
|
74920
76411
|
});
|
|
74921
76412
|
}
|
|
74922
76413
|
effectiveLoading = computed(() => {
|
|
74923
|
-
return this._isAnyLoading() || this.orchestratorLoading();
|
|
76414
|
+
return this._isAnyLoading() || (!this.loadingRenderer && this.orchestratorLoading());
|
|
74924
76415
|
}, ...(ngDevMode ? [{ debugName: "effectiveLoading" }] : /* istanbul ignore next */ []));
|
|
74925
76416
|
handleEscape() {
|
|
74926
76417
|
if (this.moreOpen())
|
|
@@ -77545,4 +79036,4 @@ function materializeGovernedPagePreview(value, pageId, adapters, baseContext = {
|
|
|
77545
79036
|
* Generated bundle index. Do not edit.
|
|
77546
79037
|
*/
|
|
77547
79038
|
|
|
77548
|
-
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 };
|
|
79039
|
+
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 };
|