@praxisui/core 10.0.0-rc.56 → 10.0.0-rc.57
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/component-registry.json +2 -2
- package/fesm2022/praxisui-core-schema.mjs +152 -29
- package/fesm2022/praxisui-core.mjs +1665 -276
- package/package.json +1 -1
- package/types/praxisui-core-schema.d.ts +4 -0
- package/types/praxisui-core.d.ts +189 -12
|
@@ -1472,10 +1472,18 @@ function resolveDefaultHeaders() {
|
|
|
1472
1472
|
* HTTP-based storage that talks to praxis-config-starter user-config API.
|
|
1473
1473
|
*/
|
|
1474
1474
|
class ApiConfigStorage {
|
|
1475
|
-
static
|
|
1475
|
+
static MAX_NEGATIVE_CACHE_ENTRIES = 1000;
|
|
1476
|
+
static SEMANTIC_CONTEXT_HEADERS = [
|
|
1477
|
+
'x-tenant-realm',
|
|
1478
|
+
'x-tenant-id',
|
|
1479
|
+
'x-organization-id',
|
|
1480
|
+
'x-user-id',
|
|
1481
|
+
'x-env',
|
|
1482
|
+
];
|
|
1476
1483
|
http = inject(HttpClient);
|
|
1477
1484
|
logger = inject(LoggerService, { optional: true });
|
|
1478
1485
|
destroyRef = inject(DestroyRef, { optional: true });
|
|
1486
|
+
loadAvailabilityProbes = new Map();
|
|
1479
1487
|
activeProbeReleases = new Set();
|
|
1480
1488
|
opts = inject(API_CONFIG_STORAGE_OPTIONS, { optional: true });
|
|
1481
1489
|
baseUrl = (this.opts?.baseUrl || '/api/praxis/config/ui').replace(/\/$/, '');
|
|
@@ -1501,13 +1509,17 @@ class ApiConfigStorage {
|
|
|
1501
1509
|
inFlightLoads = new Map();
|
|
1502
1510
|
constructor() {
|
|
1503
1511
|
this.destroyRef?.onDestroy(() => {
|
|
1504
|
-
|
|
1505
|
-
release();
|
|
1506
|
-
}
|
|
1507
|
-
this.activeProbeReleases.clear();
|
|
1512
|
+
this.releaseActiveProbes();
|
|
1508
1513
|
this.saveErrorSubject.complete();
|
|
1509
1514
|
});
|
|
1510
1515
|
}
|
|
1516
|
+
releaseActiveProbes() {
|
|
1517
|
+
for (const release of Array.from(this.activeProbeReleases)) {
|
|
1518
|
+
release();
|
|
1519
|
+
}
|
|
1520
|
+
this.activeProbeReleases.clear();
|
|
1521
|
+
this.loadAvailabilityProbes.clear();
|
|
1522
|
+
}
|
|
1511
1523
|
setWriteScope(scope) {
|
|
1512
1524
|
if (scope && this.opts?.canWriteScope && !this.opts.canWriteScope(scope)) {
|
|
1513
1525
|
this._writeScopeOverride.set('user');
|
|
@@ -1529,8 +1541,15 @@ class ApiConfigStorage {
|
|
|
1529
1541
|
this.scopedCache.clear();
|
|
1530
1542
|
this.negativeCache.clear();
|
|
1531
1543
|
this.inFlightLoads.clear();
|
|
1544
|
+
this.releaseActiveProbes();
|
|
1532
1545
|
this.clearSaveError();
|
|
1533
1546
|
}
|
|
1547
|
+
/**
|
|
1548
|
+
* Public alias for clearing all session-scoped config caches on auth/tenant transitions.
|
|
1549
|
+
*/
|
|
1550
|
+
resetSessionCaches() {
|
|
1551
|
+
this.invalidateCache();
|
|
1552
|
+
}
|
|
1534
1553
|
shouldLogLoadError(key, err) {
|
|
1535
1554
|
if (err?.status === 404)
|
|
1536
1555
|
return false;
|
|
@@ -1549,8 +1568,8 @@ class ApiConfigStorage {
|
|
|
1549
1568
|
loadConfig(key, options) {
|
|
1550
1569
|
return defer(() => {
|
|
1551
1570
|
const headers = this.buildHeaders();
|
|
1552
|
-
const
|
|
1553
|
-
const cacheKey = this.buildNegativeCacheKey(key,
|
|
1571
|
+
const scopeMode = options?.scope ?? this.scope ?? 'auto-cascade';
|
|
1572
|
+
const cacheKey = this.buildNegativeCacheKey(key, scopeMode, headers);
|
|
1554
1573
|
if (this.negativeCache.has(cacheKey)) {
|
|
1555
1574
|
return of(null);
|
|
1556
1575
|
}
|
|
@@ -1558,7 +1577,7 @@ class ApiConfigStorage {
|
|
|
1558
1577
|
if (existingInFlight) {
|
|
1559
1578
|
return existingInFlight;
|
|
1560
1579
|
}
|
|
1561
|
-
const existingProbe =
|
|
1580
|
+
const existingProbe = this.loadAvailabilityProbes.get(this.baseUrl);
|
|
1562
1581
|
const request$ = existingProbe
|
|
1563
1582
|
? from(existingProbe).pipe(switchMap((available) => {
|
|
1564
1583
|
if (!available || this.negativeCache.has(cacheKey)) {
|
|
@@ -1577,39 +1596,45 @@ class ApiConfigStorage {
|
|
|
1577
1596
|
});
|
|
1578
1597
|
}
|
|
1579
1598
|
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);
|
|
1599
|
+
return defer(() => {
|
|
1600
|
+
const baseHeaders = this.buildHeaders();
|
|
1601
|
+
const effectiveExplicitScope = options?.scope ?? this.scope;
|
|
1602
|
+
const cached = this.getCachedEntry(key, effectiveExplicitScope, baseHeaders);
|
|
1603
|
+
const etag = cached?.readEtag ?? cached?.writeEtag;
|
|
1604
|
+
const { type, id } = this.resolveKey(key);
|
|
1605
|
+
const params = this.buildParams(type, id, options?.scope);
|
|
1606
|
+
const headers = this.buildHeaders(etag ? { 'If-None-Match': this.formatEtag(etag) } : {});
|
|
1607
|
+
const scopeMode = options?.scope ?? this.scope ?? 'auto-cascade';
|
|
1608
|
+
const cacheKey = this.buildNegativeCacheKey(key, scopeMode, baseHeaders);
|
|
1609
|
+
if (this.negativeCache.has(cacheKey)) {
|
|
1601
1610
|
return of(null);
|
|
1602
1611
|
}
|
|
1603
|
-
|
|
1604
|
-
this.
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1612
|
+
return this.http
|
|
1613
|
+
.get(this.baseUrl, { observe: 'response', headers, params })
|
|
1614
|
+
.pipe(map((resp) => {
|
|
1615
|
+
this.negativeCache.delete(cacheKey);
|
|
1616
|
+
return this.cacheResponseDocument(key, resp.body, resp.headers.get('ETag'), effectiveExplicitScope, baseHeaders);
|
|
1617
|
+
}), catchError((err) => {
|
|
1618
|
+
if (err.status === 304 && cached?.document) {
|
|
1619
|
+
return of(cached.document);
|
|
1620
|
+
}
|
|
1621
|
+
if (err.status === 404) {
|
|
1622
|
+
this.recordNegativeCacheHit(cacheKey);
|
|
1623
|
+
return of(null);
|
|
1624
|
+
}
|
|
1625
|
+
if (this.shouldLogLoadError(key, err)) {
|
|
1626
|
+
this.logger?.warn('[ApiConfigStorage] document load error', { data: { error: err } });
|
|
1627
|
+
}
|
|
1628
|
+
return this.shouldPropagateLoadError(key, err)
|
|
1629
|
+
? throwError(() => err)
|
|
1630
|
+
: of(null);
|
|
1631
|
+
}));
|
|
1632
|
+
});
|
|
1610
1633
|
}
|
|
1611
1634
|
executeLoadConfigRequest(key, establishAvailability, explicitScope, negativeCacheKey) {
|
|
1612
|
-
const
|
|
1635
|
+
const baseHeaders = this.buildHeaders();
|
|
1636
|
+
const effectiveExplicitScope = explicitScope ?? this.scope;
|
|
1637
|
+
const cached = this.getCachedEntry(key, effectiveExplicitScope, baseHeaders);
|
|
1613
1638
|
const etag = cached?.readEtag ?? cached?.writeEtag;
|
|
1614
1639
|
const { type, id } = this.resolveKey(key);
|
|
1615
1640
|
const url = `${this.baseUrl}`;
|
|
@@ -1621,14 +1646,14 @@ class ApiConfigStorage {
|
|
|
1621
1646
|
const probe = new Promise((resolve) => {
|
|
1622
1647
|
resolveProbe = resolve;
|
|
1623
1648
|
});
|
|
1624
|
-
|
|
1649
|
+
this.loadAvailabilityProbes.set(this.baseUrl, probe);
|
|
1625
1650
|
let released = false;
|
|
1626
1651
|
const release = () => {
|
|
1627
1652
|
if (released)
|
|
1628
1653
|
return;
|
|
1629
1654
|
released = true;
|
|
1630
|
-
if (
|
|
1631
|
-
|
|
1655
|
+
if (this.loadAvailabilityProbes.get(this.baseUrl) === probe) {
|
|
1656
|
+
this.loadAvailabilityProbes.delete(this.baseUrl);
|
|
1632
1657
|
}
|
|
1633
1658
|
this.activeProbeReleases.delete(release);
|
|
1634
1659
|
resolveProbe(true);
|
|
@@ -1645,14 +1670,14 @@ class ApiConfigStorage {
|
|
|
1645
1670
|
const writeEtag = this.resolveWriteEtag(responseEtag, body?.etag);
|
|
1646
1671
|
if (readEtag || writeEtag) {
|
|
1647
1672
|
const document = this.toConfigDocument(body, responseEtag);
|
|
1648
|
-
const resolvedScope = this.resolveResponseScope(body?.scope) ??
|
|
1673
|
+
const resolvedScope = this.resolveResponseScope(body?.scope) ?? effectiveExplicitScope;
|
|
1649
1674
|
this.storeCachedEntry(key, {
|
|
1650
1675
|
readEtag,
|
|
1651
1676
|
writeEtag,
|
|
1652
1677
|
payload: body?.payload,
|
|
1653
1678
|
scope: resolvedScope,
|
|
1654
1679
|
document,
|
|
1655
|
-
}, resolvedScope);
|
|
1680
|
+
}, resolvedScope, baseHeaders, effectiveExplicitScope);
|
|
1656
1681
|
}
|
|
1657
1682
|
releaseProbe?.();
|
|
1658
1683
|
return body?.payload ?? null;
|
|
@@ -1662,7 +1687,7 @@ class ApiConfigStorage {
|
|
|
1662
1687
|
return of(cached.payload);
|
|
1663
1688
|
}
|
|
1664
1689
|
if (err.status === 404) {
|
|
1665
|
-
this.
|
|
1690
|
+
this.recordNegativeCacheHit(negativeCacheKey);
|
|
1666
1691
|
releaseProbe?.();
|
|
1667
1692
|
return of(null);
|
|
1668
1693
|
}
|
|
@@ -1687,14 +1712,14 @@ class ApiConfigStorage {
|
|
|
1687
1712
|
const writeEtag = this.resolveWriteEtag(responseEtag, body?.etag);
|
|
1688
1713
|
if (readEtag || writeEtag) {
|
|
1689
1714
|
const document = this.toConfigDocument(body, responseEtag);
|
|
1690
|
-
const resolvedScope = this.resolveResponseScope(body?.scope) ??
|
|
1715
|
+
const resolvedScope = this.resolveResponseScope(body?.scope) ?? effectiveExplicitScope;
|
|
1691
1716
|
this.storeCachedEntry(key, {
|
|
1692
1717
|
readEtag,
|
|
1693
1718
|
writeEtag,
|
|
1694
1719
|
payload: body?.payload,
|
|
1695
1720
|
scope: resolvedScope,
|
|
1696
1721
|
document,
|
|
1697
|
-
}, resolvedScope);
|
|
1722
|
+
}, resolvedScope, baseHeaders, effectiveExplicitScope);
|
|
1698
1723
|
}
|
|
1699
1724
|
return body?.payload ?? null;
|
|
1700
1725
|
}), catchError((err) => {
|
|
@@ -1703,7 +1728,7 @@ class ApiConfigStorage {
|
|
|
1703
1728
|
return of(cached.payload);
|
|
1704
1729
|
}
|
|
1705
1730
|
if (err.status === 404) {
|
|
1706
|
-
this.
|
|
1731
|
+
this.recordNegativeCacheHit(negativeCacheKey);
|
|
1707
1732
|
return of(null);
|
|
1708
1733
|
}
|
|
1709
1734
|
if (this.shouldLogLoadError(key, err)) {
|
|
@@ -1724,7 +1749,7 @@ class ApiConfigStorage {
|
|
|
1724
1749
|
const params = this.buildParams(type, id, explicitScope);
|
|
1725
1750
|
const baseHeaders = this.buildHeaders();
|
|
1726
1751
|
const requestScope = explicitScope ?? this.resolveRequestScope(baseHeaders);
|
|
1727
|
-
const scopedCached = this.getCachedEntry(key, requestScope);
|
|
1752
|
+
const scopedCached = this.getCachedEntry(key, requestScope, baseHeaders);
|
|
1728
1753
|
const compatibleWriteEtag = this.resolveCompatibleWriteEtag(scopedCached, requestScope);
|
|
1729
1754
|
const formattedWriteEtag = this.formatEtag(compatibleWriteEtag);
|
|
1730
1755
|
const headers = formattedWriteEtag
|
|
@@ -1734,18 +1759,25 @@ class ApiConfigStorage {
|
|
|
1734
1759
|
.put(url, { payload: config }, { observe: 'response', headers, params })
|
|
1735
1760
|
.pipe(map((resp) => {
|
|
1736
1761
|
this.clearSaveError();
|
|
1737
|
-
this.invalidateKeyCaches(key);
|
|
1762
|
+
this.invalidateKeyCaches(key, undefined, baseHeaders);
|
|
1738
1763
|
const body = resp.body;
|
|
1739
1764
|
const responseEtag = resp.headers.get('ETag');
|
|
1740
1765
|
const payload = body?.payload ?? config;
|
|
1741
1766
|
const effectiveScope = this.resolveResponseScope(body?.scope) ?? requestScope;
|
|
1742
|
-
|
|
1767
|
+
const savedEntry = {
|
|
1743
1768
|
readEtag: this.resolveReadEtag(responseEtag, body?.etag),
|
|
1744
1769
|
writeEtag: this.resolveWriteEtag(responseEtag, body?.etag),
|
|
1745
1770
|
payload,
|
|
1746
1771
|
scope: effectiveScope,
|
|
1747
1772
|
document: this.toConfigDocument({ ...body, scope: body?.scope ?? effectiveScope, payload }, responseEtag),
|
|
1748
|
-
}
|
|
1773
|
+
};
|
|
1774
|
+
this.storeCachedEntry(key, savedEntry, effectiveScope, baseHeaders, requestScope);
|
|
1775
|
+
const autoKey = this.buildPositiveCacheKey(key, baseHeaders);
|
|
1776
|
+
const autoEntry = this.cache.get(autoKey);
|
|
1777
|
+
if (effectiveScope === 'user'
|
|
1778
|
+
|| (autoEntry && (!autoEntry.scope || autoEntry.scope === effectiveScope))) {
|
|
1779
|
+
this.cache.set(autoKey, savedEntry);
|
|
1780
|
+
}
|
|
1749
1781
|
}), catchError((err) => {
|
|
1750
1782
|
this.recordSaveError(key, requestScope, 'save', err);
|
|
1751
1783
|
if (this.shouldLogSaveError(key, err)) {
|
|
@@ -1802,7 +1834,7 @@ class ApiConfigStorage {
|
|
|
1802
1834
|
const params = this.buildParams(type, id, explicitScope);
|
|
1803
1835
|
const baseHeaders = this.buildHeaders();
|
|
1804
1836
|
const requestScope = explicitScope ?? this.resolveRequestScope(baseHeaders);
|
|
1805
|
-
const scopedCached = this.getCachedEntry(key, requestScope);
|
|
1837
|
+
const scopedCached = this.getCachedEntry(key, requestScope, baseHeaders);
|
|
1806
1838
|
const compatibleWriteEtag = this.resolveCompatibleWriteEtag(scopedCached, requestScope);
|
|
1807
1839
|
const formattedWriteEtag = this.formatEtag(compatibleWriteEtag);
|
|
1808
1840
|
const headers = formattedWriteEtag
|
|
@@ -1812,8 +1844,8 @@ class ApiConfigStorage {
|
|
|
1812
1844
|
.delete(url, { observe: 'response', headers, params })
|
|
1813
1845
|
.pipe(map(() => {
|
|
1814
1846
|
this.clearSaveError();
|
|
1815
|
-
this.evictCachedScope(key, requestScope);
|
|
1816
|
-
this.invalidateKeyCaches(key);
|
|
1847
|
+
this.evictCachedScope(key, requestScope, baseHeaders);
|
|
1848
|
+
this.invalidateKeyCaches(key, undefined, baseHeaders);
|
|
1817
1849
|
}), catchError((err) => {
|
|
1818
1850
|
this.recordSaveError(key, requestScope, 'clear', err);
|
|
1819
1851
|
if (this.shouldLogClearError(key, err)) {
|
|
@@ -1838,7 +1870,7 @@ class ApiConfigStorage {
|
|
|
1838
1870
|
const url = `${this.baseUrl}`;
|
|
1839
1871
|
const params = this.buildParams(type, id, 'user');
|
|
1840
1872
|
const baseHeaders = this.buildHeaders();
|
|
1841
|
-
const userCached = this.getCachedEntry(key, 'user');
|
|
1873
|
+
const userCached = this.getCachedEntry(key, 'user', baseHeaders);
|
|
1842
1874
|
const compatibleWriteEtag = this.resolveCompatibleWriteEtag(userCached, 'user');
|
|
1843
1875
|
const formattedWriteEtag = this.formatEtag(compatibleWriteEtag);
|
|
1844
1876
|
const headers = formattedWriteEtag
|
|
@@ -1854,8 +1886,8 @@ class ApiConfigStorage {
|
|
|
1854
1886
|
return throwError(() => err);
|
|
1855
1887
|
}), switchMap(() => {
|
|
1856
1888
|
this.clearSaveError();
|
|
1857
|
-
this.evictCachedScope(key, 'user');
|
|
1858
|
-
this.invalidateKeyCaches(key, 'user');
|
|
1889
|
+
this.evictCachedScope(key, 'user', baseHeaders);
|
|
1890
|
+
this.invalidateKeyCaches(key, 'user', baseHeaders);
|
|
1859
1891
|
return this.loadConfig(key, { scope: 'tenant' });
|
|
1860
1892
|
}));
|
|
1861
1893
|
}
|
|
@@ -1877,7 +1909,7 @@ class ApiConfigStorage {
|
|
|
1877
1909
|
}
|
|
1878
1910
|
return new HttpHeaders(merged);
|
|
1879
1911
|
}
|
|
1880
|
-
cacheResponseDocument(key, body, responseEtag, explicitScope) {
|
|
1912
|
+
cacheResponseDocument(key, body, responseEtag, explicitScope, headers) {
|
|
1881
1913
|
const document = this.toConfigDocument(body, responseEtag);
|
|
1882
1914
|
const resolvedScope = this.resolveResponseScope(document.scope) ?? explicitScope;
|
|
1883
1915
|
this.storeCachedEntry(key, {
|
|
@@ -1886,16 +1918,34 @@ class ApiConfigStorage {
|
|
|
1886
1918
|
payload: document.payload,
|
|
1887
1919
|
scope: resolvedScope,
|
|
1888
1920
|
document,
|
|
1889
|
-
}, resolvedScope);
|
|
1921
|
+
}, resolvedScope, headers, explicitScope);
|
|
1890
1922
|
return document;
|
|
1891
1923
|
}
|
|
1892
|
-
|
|
1924
|
+
buildContextHeaderSignature(headers) {
|
|
1925
|
+
return ApiConfigStorage.SEMANTIC_CONTEXT_HEADERS
|
|
1926
|
+
.map((name) => {
|
|
1927
|
+
const values = headers.getAll(name);
|
|
1928
|
+
return values && values.length > 0 ? `${name}=${values.join(',')}` : null;
|
|
1929
|
+
})
|
|
1930
|
+
.filter((entry) => entry !== null)
|
|
1931
|
+
.join('|');
|
|
1932
|
+
}
|
|
1933
|
+
buildPositiveCacheKey(key, headers, explicitScope) {
|
|
1934
|
+
const signature = this.buildContextHeaderSignature(headers);
|
|
1935
|
+
const partitionedKey = signature ? `${signature}\u0000${key}` : key;
|
|
1936
|
+
return explicitScope ? `${partitionedKey}::explicit:${explicitScope}` : partitionedKey;
|
|
1937
|
+
}
|
|
1938
|
+
getCachedEntry(key, explicitScope, headers = this.buildHeaders()) {
|
|
1939
|
+
const partitionedKey = this.buildPositiveCacheKey(key, headers);
|
|
1893
1940
|
if (explicitScope) {
|
|
1894
|
-
const
|
|
1941
|
+
const explicitCached = this.cache.get(this.buildPositiveCacheKey(key, headers, explicitScope));
|
|
1942
|
+
if (explicitCached)
|
|
1943
|
+
return explicitCached;
|
|
1944
|
+
const byScope = this.scopedCache.get(partitionedKey)?.[explicitScope];
|
|
1895
1945
|
if (byScope)
|
|
1896
1946
|
return byScope;
|
|
1897
1947
|
}
|
|
1898
|
-
const fallback = this.cache.get(
|
|
1948
|
+
const fallback = this.cache.get(partitionedKey);
|
|
1899
1949
|
if (!explicitScope)
|
|
1900
1950
|
return fallback;
|
|
1901
1951
|
if (fallback && (!fallback.scope || fallback.scope === explicitScope)) {
|
|
@@ -1903,49 +1953,82 @@ class ApiConfigStorage {
|
|
|
1903
1953
|
}
|
|
1904
1954
|
return undefined;
|
|
1905
1955
|
}
|
|
1906
|
-
storeCachedEntry(key, entry, resolvedScope) {
|
|
1907
|
-
this.
|
|
1956
|
+
storeCachedEntry(key, entry, resolvedScope, headers = this.buildHeaders(), explicitScope) {
|
|
1957
|
+
const partitionedKey = this.buildPositiveCacheKey(key, headers);
|
|
1958
|
+
const positiveKey = this.buildPositiveCacheKey(key, headers, explicitScope);
|
|
1959
|
+
this.cache.set(positiveKey, entry);
|
|
1908
1960
|
if (resolvedScope) {
|
|
1909
|
-
const existing = this.scopedCache.get(
|
|
1910
|
-
this.scopedCache.set(
|
|
1961
|
+
const existing = this.scopedCache.get(partitionedKey) ?? {};
|
|
1962
|
+
this.scopedCache.set(partitionedKey, {
|
|
1911
1963
|
...existing,
|
|
1912
1964
|
[resolvedScope]: entry,
|
|
1913
1965
|
});
|
|
1914
1966
|
}
|
|
1915
1967
|
}
|
|
1916
|
-
evictCachedScope(key, scope) {
|
|
1917
|
-
const
|
|
1968
|
+
evictCachedScope(key, scope, headers = this.buildHeaders()) {
|
|
1969
|
+
const partitionedKey = this.buildPositiveCacheKey(key, headers);
|
|
1970
|
+
this.cache.delete(this.buildPositiveCacheKey(key, headers, scope));
|
|
1971
|
+
const scoped = this.scopedCache.get(partitionedKey);
|
|
1918
1972
|
if (scoped) {
|
|
1919
1973
|
delete scoped[scope];
|
|
1920
1974
|
if (!scoped.user && !scoped.tenant) {
|
|
1921
|
-
this.scopedCache.delete(
|
|
1975
|
+
this.scopedCache.delete(partitionedKey);
|
|
1922
1976
|
}
|
|
1923
1977
|
}
|
|
1924
|
-
const active = this.cache.get(
|
|
1978
|
+
const active = this.cache.get(partitionedKey);
|
|
1925
1979
|
if (active && (!active.scope || active.scope === scope)) {
|
|
1926
|
-
this.cache.delete(
|
|
1980
|
+
this.cache.delete(partitionedKey);
|
|
1927
1981
|
}
|
|
1928
1982
|
}
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1983
|
+
recordNegativeCacheHit(cacheKey) {
|
|
1984
|
+
if (this.negativeCache.has(cacheKey)) {
|
|
1985
|
+
this.negativeCache.delete(cacheKey);
|
|
1986
|
+
}
|
|
1987
|
+
this.negativeCache.add(cacheKey);
|
|
1988
|
+
while (this.negativeCache.size > ApiConfigStorage.MAX_NEGATIVE_CACHE_ENTRIES) {
|
|
1989
|
+
const oldest = this.negativeCache.values().next().value;
|
|
1990
|
+
if (oldest === undefined)
|
|
1991
|
+
break;
|
|
1992
|
+
this.negativeCache.delete(oldest);
|
|
1993
|
+
}
|
|
1994
|
+
}
|
|
1995
|
+
buildNegativeCacheKey(key, scopeMode, headers) {
|
|
1996
|
+
const { type, id } = this.resolveKey(key);
|
|
1997
|
+
const contextHeaderSignature = this.buildContextHeaderSignature(headers);
|
|
1998
|
+
return `${scopeMode}\u0000${contextHeaderSignature}\u0000${type}\u0000${id}`;
|
|
1938
1999
|
}
|
|
1939
|
-
invalidateKeyCaches(key, scope) {
|
|
1940
|
-
const { id } = this.resolveKey(key);
|
|
1941
|
-
const suffix = `\u0000${id}`;
|
|
2000
|
+
invalidateKeyCaches(key, scope, headers) {
|
|
2001
|
+
const { type, id } = this.resolveKey(key);
|
|
2002
|
+
const suffix = `\u0000${type}\u0000${id}`;
|
|
2003
|
+
const expectedContextSignature = headers
|
|
2004
|
+
? this.buildContextHeaderSignature(headers)
|
|
2005
|
+
: undefined;
|
|
2006
|
+
const matchesTarget = (cacheKey) => {
|
|
2007
|
+
if (!cacheKey.endsWith(suffix))
|
|
2008
|
+
return false;
|
|
2009
|
+
const scopeSep = cacheKey.indexOf('\u0000');
|
|
2010
|
+
if (scopeSep === -1)
|
|
2011
|
+
return false;
|
|
2012
|
+
const cachedScope = cacheKey.slice(0, scopeSep);
|
|
2013
|
+
if (scope && cachedScope !== scope && cachedScope !== 'auto-cascade') {
|
|
2014
|
+
return false;
|
|
2015
|
+
}
|
|
2016
|
+
if (expectedContextSignature !== undefined) {
|
|
2017
|
+
const prefixWithoutId = cacheKey.slice(0, cacheKey.length - suffix.length);
|
|
2018
|
+
const contextSignature = prefixWithoutId.slice(scopeSep + 1);
|
|
2019
|
+
if (contextSignature !== expectedContextSignature) {
|
|
2020
|
+
return false;
|
|
2021
|
+
}
|
|
2022
|
+
}
|
|
2023
|
+
return true;
|
|
2024
|
+
};
|
|
1942
2025
|
for (const cacheKey of Array.from(this.negativeCache)) {
|
|
1943
|
-
if (
|
|
2026
|
+
if (matchesTarget(cacheKey)) {
|
|
1944
2027
|
this.negativeCache.delete(cacheKey);
|
|
1945
2028
|
}
|
|
1946
2029
|
}
|
|
1947
2030
|
for (const cacheKey of Array.from(this.inFlightLoads.keys())) {
|
|
1948
|
-
if (
|
|
2031
|
+
if (matchesTarget(cacheKey)) {
|
|
1949
2032
|
this.inFlightLoads.delete(cacheKey);
|
|
1950
2033
|
}
|
|
1951
2034
|
}
|
|
@@ -2085,6 +2168,8 @@ class ApiConfigStorage {
|
|
|
2085
2168
|
['timeline-lanes:', 'praxis-timeline-lanes'],
|
|
2086
2169
|
['praxis-relationship-graph-config-', 'praxis-relationship-graph'],
|
|
2087
2170
|
['relationship-graph:', 'praxis-relationship-graph'],
|
|
2171
|
+
['praxis-progression-ladder-config-', 'praxis-progression-ladder'],
|
|
2172
|
+
['progression-ladder:', 'praxis-progression-ladder'],
|
|
2088
2173
|
['conn:form:', 'praxis-dynamic-form'],
|
|
2089
2174
|
['conn:table:', 'praxis-table'],
|
|
2090
2175
|
['grid-page:', 'praxis-dynamic-page'],
|
|
@@ -7611,8 +7696,8 @@ const CANONICAL_DECISION_STAGES = [
|
|
|
7611
7696
|
icon: 'shield_lock',
|
|
7612
7697
|
titleKey: 'stage.PROTECTED_GUARD.title',
|
|
7613
7698
|
subtitleKey: 'stage.PROTECTED_GUARD.subtitle',
|
|
7614
|
-
defaultTitlePtBr: '
|
|
7615
|
-
defaultSubtitlePtBr: '
|
|
7699
|
+
defaultTitlePtBr: 'Pré-requisitos obrigatórios',
|
|
7700
|
+
defaultSubtitlePtBr: 'Condições de segurança e escopo verificadas antes de qualquer regra',
|
|
7616
7701
|
},
|
|
7617
7702
|
{
|
|
7618
7703
|
id: 'DOMAIN_DECISION',
|
|
@@ -7621,8 +7706,8 @@ const CANONICAL_DECISION_STAGES = [
|
|
|
7621
7706
|
icon: 'gavel',
|
|
7622
7707
|
titleKey: 'stage.DOMAIN_DECISION.title',
|
|
7623
7708
|
subtitleKey: 'stage.DOMAIN_DECISION.subtitle',
|
|
7624
|
-
defaultTitlePtBr: '
|
|
7625
|
-
defaultSubtitlePtBr: 'Regras centrais
|
|
7709
|
+
defaultTitlePtBr: 'Regras de negócio',
|
|
7710
|
+
defaultSubtitlePtBr: 'Regras centrais que definem elegibilidade e limites da operação',
|
|
7626
7711
|
},
|
|
7627
7712
|
{
|
|
7628
7713
|
id: 'POST_DECISION',
|
|
@@ -7631,8 +7716,8 @@ const CANONICAL_DECISION_STAGES = [
|
|
|
7631
7716
|
icon: 'fact_check',
|
|
7632
7717
|
titleKey: 'stage.POST_DECISION.title',
|
|
7633
7718
|
subtitleKey: 'stage.POST_DECISION.subtitle',
|
|
7634
|
-
defaultTitlePtBr: '
|
|
7635
|
-
defaultSubtitlePtBr: 'Consistência
|
|
7719
|
+
defaultTitlePtBr: 'Validações cruzadas',
|
|
7720
|
+
defaultSubtitlePtBr: 'Consistência entre campos, saldos e regras complementares',
|
|
7636
7721
|
},
|
|
7637
7722
|
{
|
|
7638
7723
|
id: 'TRANSFORMATION_INTENT',
|
|
@@ -7641,8 +7726,8 @@ const CANONICAL_DECISION_STAGES = [
|
|
|
7641
7726
|
icon: 'auto_fix_high',
|
|
7642
7727
|
titleKey: 'stage.TRANSFORMATION_INTENT.title',
|
|
7643
7728
|
subtitleKey: 'stage.TRANSFORMATION_INTENT.subtitle',
|
|
7644
|
-
defaultTitlePtBr: '
|
|
7645
|
-
defaultSubtitlePtBr: '
|
|
7729
|
+
defaultTitlePtBr: 'Ajustes automáticos',
|
|
7730
|
+
defaultSubtitlePtBr: 'Preenchimentos e cálculos automáticos propostos pela regra',
|
|
7646
7731
|
},
|
|
7647
7732
|
{
|
|
7648
7733
|
id: 'EFFECT_INTENT',
|
|
@@ -7651,8 +7736,8 @@ const CANONICAL_DECISION_STAGES = [
|
|
|
7651
7736
|
icon: 'bolt',
|
|
7652
7737
|
titleKey: 'stage.EFFECT_INTENT.title',
|
|
7653
7738
|
subtitleKey: 'stage.EFFECT_INTENT.subtitle',
|
|
7654
|
-
defaultTitlePtBr: '
|
|
7655
|
-
defaultSubtitlePtBr: '
|
|
7739
|
+
defaultTitlePtBr: 'Consequências e registros',
|
|
7740
|
+
defaultSubtitlePtBr: 'Notificações, auditoria e registros gerados após a decisão',
|
|
7656
7741
|
},
|
|
7657
7742
|
];
|
|
7658
7743
|
const CANONICAL_DECISION_STAGE_SET = new Set(CANONICAL_DECISION_STAGES.map((stage) => stage.id));
|
|
@@ -7823,6 +7908,248 @@ function asStringArray(value) {
|
|
|
7823
7908
|
.map((entry) => asTrimmedText(entry))
|
|
7824
7909
|
.filter((entry) => Boolean(entry))));
|
|
7825
7910
|
}
|
|
7911
|
+
/**
|
|
7912
|
+
* Validates an external legal-basis reference URL fail-closed: only absolute
|
|
7913
|
+
* `http:` or `https:` URLs without embedded credentials are accepted.
|
|
7914
|
+
*/
|
|
7915
|
+
function isSafeLegalBasisUrl(url) {
|
|
7916
|
+
const clean = asTrimmedText(url);
|
|
7917
|
+
if (!clean || clean.startsWith('//')) {
|
|
7918
|
+
return false;
|
|
7919
|
+
}
|
|
7920
|
+
try {
|
|
7921
|
+
const parsed = new URL(clean);
|
|
7922
|
+
if (parsed.protocol !== 'http:' && parsed.protocol !== 'https:') {
|
|
7923
|
+
return false;
|
|
7924
|
+
}
|
|
7925
|
+
return !parsed.username && !parsed.password;
|
|
7926
|
+
}
|
|
7927
|
+
catch {
|
|
7928
|
+
return false;
|
|
7929
|
+
}
|
|
7930
|
+
}
|
|
7931
|
+
function normalizeRuleLegalBasisList(raw) {
|
|
7932
|
+
if (raw === null || raw === undefined) {
|
|
7933
|
+
return [];
|
|
7934
|
+
}
|
|
7935
|
+
const items = Array.isArray(raw) ? raw : [raw];
|
|
7936
|
+
const normalized = [];
|
|
7937
|
+
const seen = new Set();
|
|
7938
|
+
for (const entry of items) {
|
|
7939
|
+
if (typeof entry === 'string') {
|
|
7940
|
+
const code = asTrimmedText(entry);
|
|
7941
|
+
if (code && !seen.has(code)) {
|
|
7942
|
+
seen.add(code);
|
|
7943
|
+
normalized.push({ code });
|
|
7944
|
+
}
|
|
7945
|
+
continue;
|
|
7946
|
+
}
|
|
7947
|
+
const record = asPlainRecord(entry);
|
|
7948
|
+
if (!record) {
|
|
7949
|
+
continue;
|
|
7950
|
+
}
|
|
7951
|
+
const title = asTrimmedText(record['title']);
|
|
7952
|
+
const article = asTrimmedText(record['article']);
|
|
7953
|
+
const jurisdiction = asTrimmedText(record['jurisdiction']);
|
|
7954
|
+
const summary = asTrimmedText(record['summary']);
|
|
7955
|
+
const rawUrl = asTrimmedText(record['url']);
|
|
7956
|
+
const url = rawUrl && isSafeLegalBasisUrl(rawUrl) ? rawUrl : null;
|
|
7957
|
+
const code = asTrimmedText(record['code']) ?? title ?? article;
|
|
7958
|
+
if (!code) {
|
|
7959
|
+
continue;
|
|
7960
|
+
}
|
|
7961
|
+
const dedupeKey = `${code}::${article ?? ''}::${jurisdiction ?? ''}`;
|
|
7962
|
+
if (seen.has(dedupeKey)) {
|
|
7963
|
+
continue;
|
|
7964
|
+
}
|
|
7965
|
+
seen.add(dedupeKey);
|
|
7966
|
+
normalized.push({
|
|
7967
|
+
code,
|
|
7968
|
+
...(title ? { title } : {}),
|
|
7969
|
+
...(article ? { article } : {}),
|
|
7970
|
+
...(jurisdiction ? { jurisdiction } : {}),
|
|
7971
|
+
...(summary ? { summary } : {}),
|
|
7972
|
+
...(url ? { url } : {}),
|
|
7973
|
+
});
|
|
7974
|
+
}
|
|
7975
|
+
return normalized;
|
|
7976
|
+
}
|
|
7977
|
+
function normalizeRuleDocumentation(raw) {
|
|
7978
|
+
const outer = asPlainRecord(raw);
|
|
7979
|
+
if (!outer) {
|
|
7980
|
+
return undefined;
|
|
7981
|
+
}
|
|
7982
|
+
const nested = asPlainRecord(outer['documentation']);
|
|
7983
|
+
const title = asTrimmedText(outer['title']) ?? asTrimmedText(nested?.['title']);
|
|
7984
|
+
const summary = asTrimmedText(outer['summary']) ?? asTrimmedText(nested?.['summary']);
|
|
7985
|
+
const whenApplies = asTrimmedText(outer['whenApplies']) ?? asTrimmedText(nested?.['whenApplies']);
|
|
7986
|
+
const rationale = asTrimmedText(outer['rationale']) ?? asTrimmedText(nested?.['rationale']);
|
|
7987
|
+
const customizationGuidance = asTrimmedText(outer['customizationGuidance']) ??
|
|
7988
|
+
asTrimmedText(nested?.['customizationGuidance']);
|
|
7989
|
+
const directLegal = normalizeRuleLegalBasisList(outer['legalBasis']);
|
|
7990
|
+
const legalBasis = directLegal.length > 0
|
|
7991
|
+
? directLegal
|
|
7992
|
+
: normalizeRuleLegalBasisList(nested?.['legalBasis']);
|
|
7993
|
+
if (!title &&
|
|
7994
|
+
!summary &&
|
|
7995
|
+
!whenApplies &&
|
|
7996
|
+
!rationale &&
|
|
7997
|
+
!customizationGuidance &&
|
|
7998
|
+
legalBasis.length === 0) {
|
|
7999
|
+
return undefined;
|
|
8000
|
+
}
|
|
8001
|
+
return {
|
|
8002
|
+
...(title ? { title } : {}),
|
|
8003
|
+
...(summary ? { summary } : {}),
|
|
8004
|
+
...(whenApplies ? { whenApplies } : {}),
|
|
8005
|
+
...(rationale ? { rationale } : {}),
|
|
8006
|
+
...(legalBasis.length > 0 ? { legalBasis } : {}),
|
|
8007
|
+
...(customizationGuidance ? { customizationGuidance } : {}),
|
|
8008
|
+
};
|
|
8009
|
+
}
|
|
8010
|
+
function normalizeStringMap(raw) {
|
|
8011
|
+
const record = asPlainRecord(raw);
|
|
8012
|
+
if (!record) {
|
|
8013
|
+
return {};
|
|
8014
|
+
}
|
|
8015
|
+
const result = {};
|
|
8016
|
+
for (const [key, value] of Object.entries(record)) {
|
|
8017
|
+
const cleanKey = asTrimmedText(key);
|
|
8018
|
+
const cleanVal = asTrimmedText(value);
|
|
8019
|
+
if (cleanKey && cleanVal) {
|
|
8020
|
+
result[cleanKey] = cleanVal;
|
|
8021
|
+
}
|
|
8022
|
+
}
|
|
8023
|
+
return result;
|
|
8024
|
+
}
|
|
8025
|
+
function stripKnownFieldPrefix(fieldOrPath) {
|
|
8026
|
+
const dotIdx = fieldOrPath.indexOf('.');
|
|
8027
|
+
if (dotIdx <= 0 || dotIdx >= fieldOrPath.length - 1) {
|
|
8028
|
+
return fieldOrPath;
|
|
8029
|
+
}
|
|
8030
|
+
const prefix = fieldOrPath.slice(0, dotIdx).toLowerCase();
|
|
8031
|
+
if (prefix === 'draft' ||
|
|
8032
|
+
prefix === 'current' ||
|
|
8033
|
+
prefix === 'facts' ||
|
|
8034
|
+
prefix === 'context' ||
|
|
8035
|
+
prefix === 'neighborhood') {
|
|
8036
|
+
return fieldOrPath.slice(dotIdx + 1);
|
|
8037
|
+
}
|
|
8038
|
+
return fieldOrPath;
|
|
8039
|
+
}
|
|
8040
|
+
function isRawFieldKeyFallback(label, key) {
|
|
8041
|
+
if (!label) {
|
|
8042
|
+
return true;
|
|
8043
|
+
}
|
|
8044
|
+
return label === key || label === stripKnownFieldPrefix(key);
|
|
8045
|
+
}
|
|
8046
|
+
function resolveHumanFieldLabel(fieldOrPath, targetFieldLabels, factPathLabels, catalogFieldLabels) {
|
|
8047
|
+
const clean = asTrimmedText(fieldOrPath);
|
|
8048
|
+
if (!clean) {
|
|
8049
|
+
return undefined;
|
|
8050
|
+
}
|
|
8051
|
+
const direct = asTrimmedText(targetFieldLabels?.[clean]) ??
|
|
8052
|
+
asTrimmedText(factPathLabels?.[clean]) ??
|
|
8053
|
+
asTrimmedText(catalogFieldLabels?.[clean]);
|
|
8054
|
+
if (direct) {
|
|
8055
|
+
return direct;
|
|
8056
|
+
}
|
|
8057
|
+
const stripped = stripKnownFieldPrefix(clean);
|
|
8058
|
+
if (stripped !== clean) {
|
|
8059
|
+
return (asTrimmedText(targetFieldLabels?.[stripped]) ??
|
|
8060
|
+
asTrimmedText(factPathLabels?.[stripped]) ??
|
|
8061
|
+
asTrimmedText(catalogFieldLabels?.[stripped]));
|
|
8062
|
+
}
|
|
8063
|
+
return undefined;
|
|
8064
|
+
}
|
|
8065
|
+
function enrichRuleSetsWithFieldSchemas(ruleSets, fields) {
|
|
8066
|
+
if (!ruleSets.length || !fields.length) {
|
|
8067
|
+
return ruleSets;
|
|
8068
|
+
}
|
|
8069
|
+
const schemaLabelByName = new Map();
|
|
8070
|
+
for (const field of fields) {
|
|
8071
|
+
const name = asTrimmedText(field?.name);
|
|
8072
|
+
const label = asTrimmedText(field?.label);
|
|
8073
|
+
if (name && label && !schemaLabelByName.has(name)) {
|
|
8074
|
+
schemaLabelByName.set(name, label);
|
|
8075
|
+
}
|
|
8076
|
+
}
|
|
8077
|
+
if (schemaLabelByName.size === 0) {
|
|
8078
|
+
return ruleSets;
|
|
8079
|
+
}
|
|
8080
|
+
const lookupSchemaLabel = (fieldOrPath) => {
|
|
8081
|
+
if (!fieldOrPath) {
|
|
8082
|
+
return undefined;
|
|
8083
|
+
}
|
|
8084
|
+
return (schemaLabelByName.get(fieldOrPath) ??
|
|
8085
|
+
schemaLabelByName.get(stripKnownFieldPrefix(fieldOrPath)));
|
|
8086
|
+
};
|
|
8087
|
+
return ruleSets.map((ruleSet) => {
|
|
8088
|
+
const nextTargetFieldLabels = {
|
|
8089
|
+
...(ruleSet.targetFieldLabels ?? {}),
|
|
8090
|
+
};
|
|
8091
|
+
for (const targetField of ruleSet.targetFields) {
|
|
8092
|
+
const existing = asTrimmedText(nextTargetFieldLabels[targetField]);
|
|
8093
|
+
const schemaLabel = lookupSchemaLabel(targetField);
|
|
8094
|
+
if (schemaLabel && isRawFieldKeyFallback(existing, targetField)) {
|
|
8095
|
+
nextTargetFieldLabels[targetField] = schemaLabel;
|
|
8096
|
+
}
|
|
8097
|
+
}
|
|
8098
|
+
const nextFactPathLabels = {
|
|
8099
|
+
...(ruleSet.referencedFactPathLabels ?? {}),
|
|
8100
|
+
};
|
|
8101
|
+
for (const paths of Object.values(ruleSet.factPathsByRoot)) {
|
|
8102
|
+
for (const path of paths) {
|
|
8103
|
+
const existing = asTrimmedText(nextFactPathLabels[path]);
|
|
8104
|
+
const schemaLabel = lookupSchemaLabel(path);
|
|
8105
|
+
if (schemaLabel && isRawFieldKeyFallback(existing, path)) {
|
|
8106
|
+
nextFactPathLabels[path] = schemaLabel;
|
|
8107
|
+
}
|
|
8108
|
+
}
|
|
8109
|
+
}
|
|
8110
|
+
const nextBindings = ruleSet.bindings.map((binding) => {
|
|
8111
|
+
const bindingTarget = asTrimmedText(binding.targetField);
|
|
8112
|
+
let nextTargetLabel = asTrimmedText(binding.targetFieldLabel) ?? undefined;
|
|
8113
|
+
if (bindingTarget) {
|
|
8114
|
+
const fromSetOrSchema = asTrimmedText(nextTargetFieldLabels[bindingTarget]) ??
|
|
8115
|
+
lookupSchemaLabel(bindingTarget);
|
|
8116
|
+
if (fromSetOrSchema && isRawFieldKeyFallback(nextTargetLabel, bindingTarget)) {
|
|
8117
|
+
nextTargetLabel = fromSetOrSchema;
|
|
8118
|
+
if (isRawFieldKeyFallback(nextTargetFieldLabels[bindingTarget], bindingTarget)) {
|
|
8119
|
+
nextTargetFieldLabels[bindingTarget] = fromSetOrSchema;
|
|
8120
|
+
}
|
|
8121
|
+
}
|
|
8122
|
+
}
|
|
8123
|
+
const bindingFactLabels = {
|
|
8124
|
+
...normalizeStringMap(binding.referencedFactPathLabels),
|
|
8125
|
+
};
|
|
8126
|
+
for (const path of binding.referencedFactPaths ?? []) {
|
|
8127
|
+
const existing = asTrimmedText(bindingFactLabels[path]);
|
|
8128
|
+
const fallbackLabel = asTrimmedText(nextFactPathLabels[path]) ?? lookupSchemaLabel(path);
|
|
8129
|
+
if (fallbackLabel && isRawFieldKeyFallback(existing, path)) {
|
|
8130
|
+
bindingFactLabels[path] = fallbackLabel;
|
|
8131
|
+
}
|
|
8132
|
+
}
|
|
8133
|
+
return {
|
|
8134
|
+
...binding,
|
|
8135
|
+
...(nextTargetLabel ? { targetFieldLabel: nextTargetLabel } : {}),
|
|
8136
|
+
...(Object.keys(bindingFactLabels).length > 0
|
|
8137
|
+
? { referencedFactPathLabels: bindingFactLabels }
|
|
8138
|
+
: {}),
|
|
8139
|
+
};
|
|
8140
|
+
});
|
|
8141
|
+
return {
|
|
8142
|
+
...ruleSet,
|
|
8143
|
+
bindings: nextBindings,
|
|
8144
|
+
...(Object.keys(nextTargetFieldLabels).length > 0
|
|
8145
|
+
? { targetFieldLabels: nextTargetFieldLabels }
|
|
8146
|
+
: {}),
|
|
8147
|
+
...(Object.keys(nextFactPathLabels).length > 0
|
|
8148
|
+
? { referencedFactPathLabels: nextFactPathLabels }
|
|
8149
|
+
: {}),
|
|
8150
|
+
};
|
|
8151
|
+
});
|
|
8152
|
+
}
|
|
7826
8153
|
function inferFieldNameFromNodeKey(nodeKey) {
|
|
7827
8154
|
const marker = '.field.';
|
|
7828
8155
|
const idx = nodeKey.indexOf(marker);
|
|
@@ -7923,9 +8250,11 @@ function extractDomainCatalogRuleCatalog(catalog, requestedResourceKey) {
|
|
|
7923
8250
|
governance: [],
|
|
7924
8251
|
};
|
|
7925
8252
|
}
|
|
7926
|
-
const
|
|
8253
|
+
const rawRuleSets = [];
|
|
7927
8254
|
const facts = [];
|
|
7928
8255
|
const nodesByKey = new Map();
|
|
8256
|
+
const catalogFieldLabels = {};
|
|
8257
|
+
const catalogFactLabels = {};
|
|
7929
8258
|
for (const node of catalog.nodes) {
|
|
7930
8259
|
const metadata = asPlainRecord(node.metadata);
|
|
7931
8260
|
const nodeResourceKey = asTrimmedText(metadata?.['resourceKey']);
|
|
@@ -7961,47 +8290,154 @@ function extractDomainCatalogRuleCatalog(catalog, requestedResourceKey) {
|
|
|
7961
8290
|
}
|
|
7962
8291
|
}
|
|
7963
8292
|
}
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
8293
|
+
rawRuleSets.push({
|
|
8294
|
+
node,
|
|
8295
|
+
ruleMeta,
|
|
8296
|
+
nodeResourceKey,
|
|
7967
8297
|
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
8298
|
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
8299
|
});
|
|
7991
8300
|
continue;
|
|
7992
8301
|
}
|
|
8302
|
+
if (node.nodeType === 'field') {
|
|
8303
|
+
const fieldName = asTrimmedText(metadata?.['fieldName']) ?? inferFieldNameFromNodeKey(node.nodeKey);
|
|
8304
|
+
const fieldLabel = asTrimmedText(node.label);
|
|
8305
|
+
if (fieldName && fieldLabel && !catalogFieldLabels[fieldName]) {
|
|
8306
|
+
catalogFieldLabels[fieldName] = fieldLabel;
|
|
8307
|
+
}
|
|
8308
|
+
continue;
|
|
8309
|
+
}
|
|
7993
8310
|
if (node.nodeType === 'fact') {
|
|
7994
8311
|
const factMeta = metadata;
|
|
8312
|
+
const factPath = asTrimmedText(metadata?.['factPath']);
|
|
8313
|
+
const factLabel = asTrimmedText(node.label) || node.nodeKey;
|
|
8314
|
+
if (factPath && factLabel && !catalogFactLabels[factPath]) {
|
|
8315
|
+
catalogFactLabels[factPath] = factLabel;
|
|
8316
|
+
}
|
|
7995
8317
|
facts.push({
|
|
7996
8318
|
key: node.nodeKey,
|
|
7997
|
-
label:
|
|
8319
|
+
label: factLabel,
|
|
7998
8320
|
description: node.description ?? null,
|
|
7999
|
-
factPath
|
|
8321
|
+
factPath,
|
|
8000
8322
|
dataType: asTrimmedText(factMeta?.dataType),
|
|
8001
8323
|
unit: asTrimmedText(factMeta?.unit),
|
|
8002
8324
|
});
|
|
8003
8325
|
}
|
|
8004
8326
|
}
|
|
8327
|
+
const ruleSets = rawRuleSets.map(({ node, ruleMeta, nodeResourceKey, ruleSetKey, factPathsByRoot }) => {
|
|
8328
|
+
const targetFields = Array.isArray(ruleMeta.targetFields)
|
|
8329
|
+
? ruleMeta.targetFields.filter((f) => typeof f === 'string')
|
|
8330
|
+
: [];
|
|
8331
|
+
const explicitTargetLabels = normalizeStringMap(ruleMeta.targetFieldLabels);
|
|
8332
|
+
const targetFieldLabels = {};
|
|
8333
|
+
for (const field of targetFields) {
|
|
8334
|
+
const resolved = resolveHumanFieldLabel(field, explicitTargetLabels, undefined, catalogFieldLabels);
|
|
8335
|
+
if (resolved) {
|
|
8336
|
+
targetFieldLabels[field] = resolved;
|
|
8337
|
+
}
|
|
8338
|
+
}
|
|
8339
|
+
for (const [k, v] of Object.entries(explicitTargetLabels)) {
|
|
8340
|
+
targetFieldLabels[k] = v;
|
|
8341
|
+
}
|
|
8342
|
+
const explicitFactLabels = normalizeStringMap(ruleMeta.referencedFactPathLabels);
|
|
8343
|
+
const referencedFactPathLabels = {
|
|
8344
|
+
...explicitFactLabels,
|
|
8345
|
+
};
|
|
8346
|
+
const allFactPaths = new Set([
|
|
8347
|
+
...(Array.isArray(ruleMeta.referencedFactPaths)
|
|
8348
|
+
? ruleMeta.referencedFactPaths.filter((p) => typeof p === 'string')
|
|
8349
|
+
: []),
|
|
8350
|
+
...Object.values(factPathsByRoot).flat(),
|
|
8351
|
+
]);
|
|
8352
|
+
for (const factPath of allFactPaths) {
|
|
8353
|
+
if (!referencedFactPathLabels[factPath]) {
|
|
8354
|
+
const resolved = resolveHumanFieldLabel(factPath, targetFieldLabels, catalogFactLabels, catalogFieldLabels);
|
|
8355
|
+
if (resolved) {
|
|
8356
|
+
referencedFactPathLabels[factPath] = resolved;
|
|
8357
|
+
}
|
|
8358
|
+
}
|
|
8359
|
+
}
|
|
8360
|
+
const slots = Array.isArray(ruleMeta.slots)
|
|
8361
|
+
? ruleMeta.slots.map((slot) => {
|
|
8362
|
+
const doc = normalizeRuleDocumentation(slot);
|
|
8363
|
+
const legal = normalizeRuleLegalBasisList(slot.legalBasis ?? doc?.legalBasis);
|
|
8364
|
+
return {
|
|
8365
|
+
...slot,
|
|
8366
|
+
...(doc ? { documentation: doc } : {}),
|
|
8367
|
+
...(legal.length > 0 ? { legalBasis: legal } : {}),
|
|
8368
|
+
};
|
|
8369
|
+
})
|
|
8370
|
+
: [];
|
|
8371
|
+
const bindings = Array.isArray(ruleMeta.rules)
|
|
8372
|
+
? ruleMeta.rules.map((binding) => {
|
|
8373
|
+
const doc = normalizeRuleDocumentation(binding);
|
|
8374
|
+
const legal = normalizeRuleLegalBasisList(binding.legalBasis ?? doc?.legalBasis);
|
|
8375
|
+
const explicitBindingTargetLabel = asTrimmedText(binding.targetFieldLabel);
|
|
8376
|
+
const resolvedTargetLabel = explicitBindingTargetLabel ??
|
|
8377
|
+
resolveHumanFieldLabel(binding.targetField, targetFieldLabels, referencedFactPathLabels, catalogFieldLabels);
|
|
8378
|
+
if (binding.targetField && resolvedTargetLabel && !targetFieldLabels[binding.targetField]) {
|
|
8379
|
+
targetFieldLabels[binding.targetField] = resolvedTargetLabel;
|
|
8380
|
+
}
|
|
8381
|
+
const bindingFactLabels = {
|
|
8382
|
+
...normalizeStringMap(binding.referencedFactPathLabels),
|
|
8383
|
+
};
|
|
8384
|
+
for (const path of binding.referencedFactPaths ?? []) {
|
|
8385
|
+
if (!bindingFactLabels[path]) {
|
|
8386
|
+
const resolved = resolveHumanFieldLabel(path, targetFieldLabels, referencedFactPathLabels, catalogFieldLabels);
|
|
8387
|
+
if (resolved) {
|
|
8388
|
+
bindingFactLabels[path] = resolved;
|
|
8389
|
+
}
|
|
8390
|
+
}
|
|
8391
|
+
}
|
|
8392
|
+
return {
|
|
8393
|
+
...binding,
|
|
8394
|
+
...(doc ? { documentation: doc } : {}),
|
|
8395
|
+
...(legal.length > 0 ? { legalBasis: legal } : {}),
|
|
8396
|
+
...(resolvedTargetLabel ? { targetFieldLabel: resolvedTargetLabel } : {}),
|
|
8397
|
+
...(Object.keys(bindingFactLabels).length > 0
|
|
8398
|
+
? { referencedFactPathLabels: bindingFactLabels }
|
|
8399
|
+
: {}),
|
|
8400
|
+
};
|
|
8401
|
+
})
|
|
8402
|
+
: [];
|
|
8403
|
+
const ruleSetDoc = normalizeRuleDocumentation(ruleMeta.documentation ?? {
|
|
8404
|
+
summary: asTrimmedText(ruleMeta['summary']),
|
|
8405
|
+
whenApplies: asTrimmedText(ruleMeta['whenApplies']),
|
|
8406
|
+
rationale: asTrimmedText(ruleMeta['rationale']),
|
|
8407
|
+
legalBasis: ruleMeta['legalBasis'],
|
|
8408
|
+
customizationGuidance: asTrimmedText(ruleMeta['customizationGuidance']),
|
|
8409
|
+
});
|
|
8410
|
+
return {
|
|
8411
|
+
nodeKey: node.nodeKey,
|
|
8412
|
+
resourceKey: nodeResourceKey || resolvedResourceKey,
|
|
8413
|
+
ruleSetKey,
|
|
8414
|
+
operationKey: asTrimmedText(ruleMeta.operationKey),
|
|
8415
|
+
label: asTrimmedText(node.label) || ruleSetKey,
|
|
8416
|
+
description: node.description ?? null,
|
|
8417
|
+
domainKey: asTrimmedText(ruleMeta.domainKey),
|
|
8418
|
+
boundedContextKey: asTrimmedText(ruleMeta.boundedContextKey),
|
|
8419
|
+
version: typeof ruleMeta.version === 'number' ? ruleMeta.version : undefined,
|
|
8420
|
+
failPolicy: asTrimmedText(ruleMeta.failPolicy),
|
|
8421
|
+
availableRoots: Array.isArray(ruleMeta.availableRoots)
|
|
8422
|
+
? ruleMeta.availableRoots.filter((r) => typeof r === 'string')
|
|
8423
|
+
: [],
|
|
8424
|
+
conceptRoots: Array.isArray(ruleMeta.conceptRoots)
|
|
8425
|
+
? ruleMeta.conceptRoots.filter((r) => typeof r === 'string')
|
|
8426
|
+
: [],
|
|
8427
|
+
factPathsByRoot,
|
|
8428
|
+
slots,
|
|
8429
|
+
bindings,
|
|
8430
|
+
reasonCodes: Array.isArray(ruleMeta.reasonCodes)
|
|
8431
|
+
? ruleMeta.reasonCodes.filter((c) => typeof c === 'string')
|
|
8432
|
+
: [],
|
|
8433
|
+
targetFields,
|
|
8434
|
+
...(ruleSetDoc ? { documentation: ruleSetDoc } : {}),
|
|
8435
|
+
...(Object.keys(targetFieldLabels).length > 0 ? { targetFieldLabels } : {}),
|
|
8436
|
+
...(Object.keys(referencedFactPathLabels).length > 0
|
|
8437
|
+
? { referencedFactPathLabels }
|
|
8438
|
+
: {}),
|
|
8439
|
+
};
|
|
8440
|
+
});
|
|
8005
8441
|
const effectiveResourceKey = resolvedResourceKey || ruleSets[0]?.resourceKey || '';
|
|
8006
8442
|
const governance = [];
|
|
8007
8443
|
const governedNodeKeys = new Set();
|
|
@@ -8108,6 +8544,7 @@ function extractDomainCatalogRuleCatalog(catalog, requestedResourceKey) {
|
|
|
8108
8544
|
ruleSets,
|
|
8109
8545
|
facts,
|
|
8110
8546
|
governance,
|
|
8547
|
+
...(Object.keys(catalogFieldLabels).length > 0 ? { fieldLabels: catalogFieldLabels } : {}),
|
|
8111
8548
|
};
|
|
8112
8549
|
}
|
|
8113
8550
|
/**
|
|
@@ -8169,9 +8606,14 @@ const DECISION_INSPECTOR_I18N_NAMESPACE = 'decisionInspector';
|
|
|
8169
8606
|
const PT_BR_CATALOG = {
|
|
8170
8607
|
'drawer.title': 'Inspeção de Decisão e Governança',
|
|
8171
8608
|
'drawer.titleWithResource': 'Decisão e Governança · {{resource}}',
|
|
8172
|
-
'drawer.subtitle': 'Regras
|
|
8609
|
+
'drawer.subtitle': 'Regras de negócio explicadas em linguagem simples, ações disponíveis e proteção de dados',
|
|
8173
8610
|
'trigger.resourceButton': 'Regras de Negócio',
|
|
8174
8611
|
'trigger.inspectViolation': 'Inspecionar regra aplicada',
|
|
8612
|
+
'viewMode.ariaLabel': 'Alternar entre Visão de Negócio e Modo Técnico',
|
|
8613
|
+
'viewMode.business': 'Visão de Negócio',
|
|
8614
|
+
'viewMode.technical': 'Modo Técnico',
|
|
8615
|
+
'viewMode.toggleToTechnical': 'Mostrar identificadores e metadados técnicos',
|
|
8616
|
+
'viewMode.toggleToBusiness': 'Voltar para a Visão de Negócio simplificada',
|
|
8175
8617
|
'lens.ariaLabel': 'Lentes de inspeção semântica do recurso',
|
|
8176
8618
|
'lens.business': 'Regras de Negócio',
|
|
8177
8619
|
'lens.capabilities': 'Ciclo de Vida e Ações',
|
|
@@ -8182,33 +8624,78 @@ const PT_BR_CATALOG = {
|
|
|
8182
8624
|
'state.errorTitle': 'Não foi possível carregar o plano de decisão',
|
|
8183
8625
|
'state.errorDescription': 'Verifique a disponibilidade do catálogo semântico (/schemas/domain) ou tente novamente.',
|
|
8184
8626
|
'state.retry': 'Tentar novamente',
|
|
8185
|
-
'violation.bannerTitle': '
|
|
8627
|
+
'violation.bannerTitle': 'Regra acionada durante a operação',
|
|
8186
8628
|
'violation.reasonCode': 'Código',
|
|
8187
|
-
'violation.stage': '
|
|
8188
|
-
'violation.source': '
|
|
8189
|
-
'violation.slot': '
|
|
8629
|
+
'violation.stage': 'Etapa',
|
|
8630
|
+
'violation.source': 'Origem',
|
|
8631
|
+
'violation.slot': 'Ponto de decisão',
|
|
8190
8632
|
'violation.lineage': 'Linhagem normativa',
|
|
8191
8633
|
'violation.targetField': 'Campo afetado',
|
|
8192
|
-
'operations.label': '
|
|
8634
|
+
'operations.label': 'Quando estas regras atuam',
|
|
8193
8635
|
'operations.defaultOperation': 'Padrão',
|
|
8636
|
+
'operations.op.CREATE': 'Ao cadastrar',
|
|
8637
|
+
'operations.op.UPDATE': 'Ao alterar',
|
|
8638
|
+
'operations.op.DELETE': 'Ao excluir',
|
|
8639
|
+
'operations.op.APPROVE': 'Ao aprovar',
|
|
8640
|
+
'operations.op.CANCEL': 'Ao cancelar',
|
|
8641
|
+
'operations.op.DEFAULT': 'Operação padrão',
|
|
8642
|
+
'failPolicy.FAIL_CLOSED': 'Bloqueio preventivo ativo',
|
|
8643
|
+
'failPolicy.FAIL_OPEN': 'Prossegue com alerta',
|
|
8644
|
+
'failPolicy.FAIL_FAST': 'Interrupção imediata',
|
|
8194
8645
|
'stages.ariaLabel': 'Cinco estágios canônicos de decisão',
|
|
8195
8646
|
'stages.emptyStage': 'Sem slots neste estágio',
|
|
8647
|
+
'stages.emptyStagesCollapsed': 'Etapas sem regras ativas neste fluxo:',
|
|
8648
|
+
'stages.emptyStageCollapsedItem': '{{order}} · {{title}} (sem regras)',
|
|
8196
8649
|
'stages.bindingsCount': '{{count}} regras vinculadas',
|
|
8197
8650
|
'stages.singleBinding': '1 regra vinculada',
|
|
8651
|
+
'stages.rulesCount': '{{count}} regras ativas',
|
|
8652
|
+
'stages.singleRule': '1 regra ativa',
|
|
8653
|
+
'stages.noRulesInStage': 'Sem regras cadastradas',
|
|
8198
8654
|
'stages.violatedBadge': 'Acionado',
|
|
8199
|
-
'slotDetail.heading': '
|
|
8200
|
-
'slotDetail.overridePolicy': '
|
|
8655
|
+
'slotDetail.heading': 'Explicação da Regra Selecionada',
|
|
8656
|
+
'slotDetail.overridePolicy': 'Autonomia do Órgão',
|
|
8201
8657
|
'slotDetail.aggregation': 'Agregação',
|
|
8202
8658
|
'slotDetail.cardinality': 'Cardinalidade',
|
|
8203
8659
|
'slotDetail.templateKey': 'Template Parametrizável',
|
|
8204
|
-
'slotDetail.noBindings': 'Este
|
|
8660
|
+
'slotDetail.noBindings': 'Este ponto de decisão está preparado para receber regras do órgão, mas ainda não possui regras ativas.',
|
|
8661
|
+
'ruleDetail.whatItChecks': 'O que verifica',
|
|
8662
|
+
'ruleDetail.whenApplies': 'Quando se aplica',
|
|
8663
|
+
'ruleDetail.whyItExists': 'Por que existe',
|
|
8664
|
+
'ruleDetail.legalBasis': 'Amparo legal',
|
|
8665
|
+
'ruleDetail.involvedFields': 'Campos envolvidos',
|
|
8666
|
+
'ruleDetail.operatorMessage': 'Mensagem ao operador',
|
|
8667
|
+
'ruleDetail.studioAction': 'Ação contextual para o Studio',
|
|
8668
|
+
'ruleDetail.curationFallbackBadge': 'Explicação estrutural automática',
|
|
8669
|
+
'ruleDetail.openLegalRef': 'Consultar norma',
|
|
8670
|
+
'ruleDetail.noLegalBasis': 'Nenhum amparo legal específico registrado para esta regra.',
|
|
8671
|
+
'ruleDetail.noInvolvedFields': 'Nenhum campo específico vinculado a esta regra.',
|
|
8672
|
+
'ruleDetail.noOperatorMessage': 'Nenhuma mensagem específica configurada; utiliza a orientação padrão da operação.',
|
|
8673
|
+
'ruleDetail.fallbackSummaryWithMessage': 'Verifica os critérios desta etapa e, em caso de impedimento, orienta: "{{message}}".',
|
|
8674
|
+
'ruleDetail.fallbackSummaryGeneric': 'Avalia os critérios configurados para o ponto de decisão "{{slot}}".',
|
|
8675
|
+
'ruleDetail.fallbackWhenApplies': 'Avaliada automaticamente {{operation}} na etapa "{{stage}}".',
|
|
8676
|
+
'ruleDetail.fallbackWhenAppliesGeneric': 'Avaliada automaticamente na etapa "{{stage}}".',
|
|
8677
|
+
'ruleDetail.fallbackRationale': 'Assegura conformidade normativa e consistência operacional antes de concluir o registro.',
|
|
8678
|
+
'ruleDetail.openRuleInStudio': 'Abrir este ponto de decisão no Studio',
|
|
8205
8679
|
'binding.reasonCode': 'Motivo',
|
|
8206
8680
|
'binding.targetField': 'Campo Alvo',
|
|
8207
8681
|
'binding.lineage': 'Linhagem',
|
|
8208
8682
|
'binding.factPaths': 'Fatos avaliados',
|
|
8209
|
-
'roots.heading': '
|
|
8210
|
-
'roots.empty': 'Nenhum caminho de fato referenciado explicitamente.',
|
|
8211
|
-
'facts.heading': 'Indicadores Calculados do Recurso
|
|
8683
|
+
'roots.heading': 'Indicadores e Dados Considerados',
|
|
8684
|
+
'roots.empty': 'Nenhum indicador ou caminho de fato referenciado explicitamente.',
|
|
8685
|
+
'facts.heading': 'Indicadores Calculados do Recurso',
|
|
8686
|
+
'technical.detailsHeading': 'Metadados técnicos de auditoria',
|
|
8687
|
+
'technical.operationKey': 'Operação',
|
|
8688
|
+
'technical.ruleSetKey': 'RuleSet',
|
|
8689
|
+
'technical.slotKey': 'Slot',
|
|
8690
|
+
'technical.bindingKey': 'Binding',
|
|
8691
|
+
'technical.stageCode': 'Estágio',
|
|
8692
|
+
'technical.failPolicy': 'Política de falha',
|
|
8693
|
+
'technical.aggregationPolicy': 'Agregação',
|
|
8694
|
+
'technical.falseDecision': 'Decisão quando falso',
|
|
8695
|
+
'technical.reasonCode': 'Código de motivo',
|
|
8696
|
+
'technical.factPaths': 'Caminhos de fatos',
|
|
8697
|
+
'technical.rootsHeading': 'Raízes ontológicas',
|
|
8698
|
+
'technical.origin': 'Origem',
|
|
8212
8699
|
'capabilities.scopeCollection': 'Escopo de Coleção',
|
|
8213
8700
|
'capabilities.scopeItem': 'Registro #{{id}}',
|
|
8214
8701
|
'capabilities.operationsHeading': 'Capacidades Canônicas do Recurso',
|
|
@@ -8289,18 +8776,25 @@ const PT_BR_CATALOG = {
|
|
|
8289
8776
|
'governance.category.HEALTH': 'Saúde / Prontuário',
|
|
8290
8777
|
'governance.category.HEALTH_MEDICAL': 'Saúde / Ocupacional',
|
|
8291
8778
|
'governance.category.OPERATIONAL': 'Operacional',
|
|
8292
|
-
'studio.handoffHint': 'Parametrização por
|
|
8779
|
+
'studio.handoffHint': 'Parametrização por órgão, simulação e aprovação em 4 olhos ocorrem na estação dedicada.',
|
|
8293
8780
|
'studio.openAction': 'Governar no Praxis Rules Studio',
|
|
8294
|
-
'
|
|
8295
|
-
'
|
|
8296
|
-
'
|
|
8297
|
-
'
|
|
8298
|
-
'
|
|
8299
|
-
'
|
|
8300
|
-
'
|
|
8301
|
-
'stage.
|
|
8302
|
-
'stage.
|
|
8303
|
-
'stage.
|
|
8781
|
+
'studio.policyGuidance.FORBIDDEN': 'Regra fixa de segurança e integridade. Não permite alterações ou parametrizações pelo órgão.',
|
|
8782
|
+
'studio.policyGuidance.LOCKED': 'Regra protegida pelo produto. Somente consulta; alterações exigem atualização de versão.',
|
|
8783
|
+
'studio.policyGuidance.RESTRICT_ONLY': 'O órgão pode tornar esta regra mais restritiva no Studio, mantendo a proteção mínima obrigatória.',
|
|
8784
|
+
'studio.policyGuidance.PARAMETERIZABLE': 'Os limites e parâmetros desta regra podem ser ajustados pelo órgão no Studio sem alterar o código.',
|
|
8785
|
+
'studio.policyGuidance.EXTENSIBLE': 'Permite adicionar novas regras complementares neste ponto de decisão pelo Studio.',
|
|
8786
|
+
'studio.policyGuidance.REPLACEABLE': 'Regra padrão substituível: o órgão pode personalizar ou substituir a lógica aplicada no Studio.',
|
|
8787
|
+
'studio.policyGuidance.DEFAULT': 'Consulte as permissões de parametrização e extensão deste ponto de decisão no Studio.',
|
|
8788
|
+
'stage.PROTECTED_GUARD.title': 'Pré-requisitos obrigatórios',
|
|
8789
|
+
'stage.PROTECTED_GUARD.subtitle': 'Condições de segurança e escopo verificadas antes de qualquer regra',
|
|
8790
|
+
'stage.DOMAIN_DECISION.title': 'Regras de negócio',
|
|
8791
|
+
'stage.DOMAIN_DECISION.subtitle': 'Regras centrais que definem elegibilidade e limites da operação',
|
|
8792
|
+
'stage.POST_DECISION.title': 'Validações cruzadas',
|
|
8793
|
+
'stage.POST_DECISION.subtitle': 'Consistência entre campos, saldos e regras complementares',
|
|
8794
|
+
'stage.TRANSFORMATION_INTENT.title': 'Ajustes automáticos',
|
|
8795
|
+
'stage.TRANSFORMATION_INTENT.subtitle': 'Preenchimentos e cálculos automáticos propostos pela regra',
|
|
8796
|
+
'stage.EFFECT_INTENT.title': 'Consequências e registros',
|
|
8797
|
+
'stage.EFFECT_INTENT.subtitle': 'Notificações, auditoria e registros gerados após a decisão',
|
|
8304
8798
|
'policy.FORBIDDEN': 'Bloqueado (Produto)',
|
|
8305
8799
|
'policy.RESTRICT_ONLY': 'Restritivo (Só Restringe)',
|
|
8306
8800
|
'policy.LOCKED': 'Bloqueado (Produto)',
|
|
@@ -8320,9 +8814,14 @@ const PT_BR_CATALOG = {
|
|
|
8320
8814
|
const EN_US_CATALOG = {
|
|
8321
8815
|
'drawer.title': 'Decision & Governance Inspection',
|
|
8322
8816
|
'drawer.titleWithResource': 'Decision & Governance · {{resource}}',
|
|
8323
|
-
'drawer.subtitle': '
|
|
8817
|
+
'drawer.subtitle': 'Business rules in plain language, available actions, and data protection',
|
|
8324
8818
|
'trigger.resourceButton': 'Business Rules',
|
|
8325
8819
|
'trigger.inspectViolation': 'Inspect applied rule',
|
|
8820
|
+
'viewMode.ariaLabel': 'Switch between Business View and Technical Mode',
|
|
8821
|
+
'viewMode.business': 'Business View',
|
|
8822
|
+
'viewMode.technical': 'Technical Mode',
|
|
8823
|
+
'viewMode.toggleToTechnical': 'Show technical identifiers and metadata',
|
|
8824
|
+
'viewMode.toggleToBusiness': 'Back to simplified Business View',
|
|
8326
8825
|
'lens.ariaLabel': 'Semantic resource inspection lenses',
|
|
8327
8826
|
'lens.business': 'Business Rules',
|
|
8328
8827
|
'lens.capabilities': 'Lifecycle & Actions',
|
|
@@ -8333,33 +8832,78 @@ const EN_US_CATALOG = {
|
|
|
8333
8832
|
'state.errorTitle': 'Could not load the decision plan',
|
|
8334
8833
|
'state.errorDescription': 'Verify the availability of the semantic domain catalog (/schemas/domain) and try again.',
|
|
8335
8834
|
'state.retry': 'Try again',
|
|
8336
|
-
'violation.bannerTitle': '
|
|
8835
|
+
'violation.bannerTitle': 'Rule triggered during the operation',
|
|
8337
8836
|
'violation.reasonCode': 'Code',
|
|
8338
8837
|
'violation.stage': 'Stage',
|
|
8339
|
-
'violation.source': '
|
|
8340
|
-
'violation.slot': '
|
|
8838
|
+
'violation.source': 'Origin',
|
|
8839
|
+
'violation.slot': 'Decision point',
|
|
8341
8840
|
'violation.lineage': 'Normative lineage',
|
|
8342
8841
|
'violation.targetField': 'Affected field',
|
|
8343
|
-
'operations.label': '
|
|
8842
|
+
'operations.label': 'When these rules apply',
|
|
8344
8843
|
'operations.defaultOperation': 'Default',
|
|
8844
|
+
'operations.op.CREATE': 'On create',
|
|
8845
|
+
'operations.op.UPDATE': 'On update',
|
|
8846
|
+
'operations.op.DELETE': 'On delete',
|
|
8847
|
+
'operations.op.APPROVE': 'On approve',
|
|
8848
|
+
'operations.op.CANCEL': 'On cancel',
|
|
8849
|
+
'operations.op.DEFAULT': 'Default operation',
|
|
8850
|
+
'failPolicy.FAIL_CLOSED': 'Preventive lock active',
|
|
8851
|
+
'failPolicy.FAIL_OPEN': 'Proceed with warning',
|
|
8852
|
+
'failPolicy.FAIL_FAST': 'Immediate halt',
|
|
8345
8853
|
'stages.ariaLabel': 'Five canonical decision stages',
|
|
8346
8854
|
'stages.emptyStage': 'No slots in this stage',
|
|
8855
|
+
'stages.emptyStagesCollapsed': 'Stages without active rules in this flow:',
|
|
8856
|
+
'stages.emptyStageCollapsedItem': '{{order}} · {{title}} (no rules)',
|
|
8347
8857
|
'stages.bindingsCount': '{{count}} bound rules',
|
|
8348
8858
|
'stages.singleBinding': '1 bound rule',
|
|
8859
|
+
'stages.rulesCount': '{{count}} active rules',
|
|
8860
|
+
'stages.singleRule': '1 active rule',
|
|
8861
|
+
'stages.noRulesInStage': 'No rules configured',
|
|
8349
8862
|
'stages.violatedBadge': 'Triggered',
|
|
8350
|
-
'slotDetail.heading': '
|
|
8351
|
-
'slotDetail.overridePolicy': '
|
|
8863
|
+
'slotDetail.heading': 'Selected Rule Explanation',
|
|
8864
|
+
'slotDetail.overridePolicy': 'Tenant Autonomy',
|
|
8352
8865
|
'slotDetail.aggregation': 'Aggregation',
|
|
8353
8866
|
'slotDetail.cardinality': 'Cardinality',
|
|
8354
8867
|
'slotDetail.templateKey': 'Parameter Template',
|
|
8355
|
-
'slotDetail.noBindings': 'This
|
|
8868
|
+
'slotDetail.noBindings': 'This decision point is open for governed rules, with no active rules configured yet.',
|
|
8869
|
+
'ruleDetail.whatItChecks': 'What it checks',
|
|
8870
|
+
'ruleDetail.whenApplies': 'When it applies',
|
|
8871
|
+
'ruleDetail.whyItExists': 'Why it exists',
|
|
8872
|
+
'ruleDetail.legalBasis': 'Legal basis',
|
|
8873
|
+
'ruleDetail.involvedFields': 'Involved fields',
|
|
8874
|
+
'ruleDetail.operatorMessage': 'Operator message',
|
|
8875
|
+
'ruleDetail.studioAction': 'Contextual Studio action',
|
|
8876
|
+
'ruleDetail.curationFallbackBadge': 'Automatic structural explanation',
|
|
8877
|
+
'ruleDetail.openLegalRef': 'View reference',
|
|
8878
|
+
'ruleDetail.noLegalBasis': 'No specific legal basis recorded for this rule.',
|
|
8879
|
+
'ruleDetail.noInvolvedFields': 'No specific fields linked to this rule.',
|
|
8880
|
+
'ruleDetail.noOperatorMessage': 'No specific message configured; uses the default operation guidance.',
|
|
8881
|
+
'ruleDetail.fallbackSummaryWithMessage': 'Checks the criteria for this stage and, when blocked, informs: "{{message}}".',
|
|
8882
|
+
'ruleDetail.fallbackSummaryGeneric': 'Evaluates the criteria configured for decision point "{{slot}}".',
|
|
8883
|
+
'ruleDetail.fallbackWhenApplies': 'Evaluated automatically {{operation}} during stage "{{stage}}".',
|
|
8884
|
+
'ruleDetail.fallbackWhenAppliesGeneric': 'Evaluated automatically during stage "{{stage}}".',
|
|
8885
|
+
'ruleDetail.fallbackRationale': 'Ensures regulatory compliance and operational consistency before completing the record.',
|
|
8886
|
+
'ruleDetail.openRuleInStudio': 'Open this decision point in Studio',
|
|
8356
8887
|
'binding.reasonCode': 'Reason',
|
|
8357
8888
|
'binding.targetField': 'Target Field',
|
|
8358
8889
|
'binding.lineage': 'Lineage',
|
|
8359
8890
|
'binding.factPaths': 'Evaluated facts',
|
|
8360
|
-
'roots.heading': '
|
|
8891
|
+
'roots.heading': 'Indicators and Considered Data',
|
|
8361
8892
|
'roots.empty': 'No fact paths explicitly referenced.',
|
|
8362
|
-
'facts.heading': 'Computed Resource
|
|
8893
|
+
'facts.heading': 'Computed Resource Indicators',
|
|
8894
|
+
'technical.detailsHeading': 'Technical audit metadata',
|
|
8895
|
+
'technical.operationKey': 'Operation',
|
|
8896
|
+
'technical.ruleSetKey': 'RuleSet',
|
|
8897
|
+
'technical.slotKey': 'Slot',
|
|
8898
|
+
'technical.bindingKey': 'Binding',
|
|
8899
|
+
'technical.stageCode': 'Stage',
|
|
8900
|
+
'technical.failPolicy': 'Fail policy',
|
|
8901
|
+
'technical.aggregationPolicy': 'Aggregation',
|
|
8902
|
+
'technical.falseDecision': 'False decision',
|
|
8903
|
+
'technical.reasonCode': 'Reason code',
|
|
8904
|
+
'technical.factPaths': 'Fact paths',
|
|
8905
|
+
'technical.rootsHeading': 'Ontological roots',
|
|
8906
|
+
'technical.origin': 'Origin',
|
|
8363
8907
|
'capabilities.scopeCollection': 'Collection Scope',
|
|
8364
8908
|
'capabilities.scopeItem': 'Record #{{id}}',
|
|
8365
8909
|
'capabilities.operationsHeading': 'Canonical Resource Capabilities',
|
|
@@ -8442,16 +8986,23 @@ const EN_US_CATALOG = {
|
|
|
8442
8986
|
'governance.category.OPERATIONAL': 'Operational',
|
|
8443
8987
|
'studio.handoffHint': 'Tenant parameterization, simulation, and four-eyes approval run in the dedicated workstation.',
|
|
8444
8988
|
'studio.openAction': 'Govern in Praxis Rules Studio',
|
|
8445
|
-
'
|
|
8446
|
-
'
|
|
8447
|
-
'
|
|
8448
|
-
'
|
|
8449
|
-
'
|
|
8450
|
-
'
|
|
8451
|
-
'
|
|
8452
|
-
'stage.
|
|
8453
|
-
'stage.
|
|
8454
|
-
'stage.
|
|
8989
|
+
'studio.policyGuidance.FORBIDDEN': 'Fixed security and integrity rule. Does not allow tenant changes or parameterization.',
|
|
8990
|
+
'studio.policyGuidance.LOCKED': 'Product-locked rule. Read-only; changes require a product release.',
|
|
8991
|
+
'studio.policyGuidance.RESTRICT_ONLY': 'Tenants may tighten this rule in Studio while preserving the mandatory baseline safeguard.',
|
|
8992
|
+
'studio.policyGuidance.PARAMETERIZABLE': 'Rule limits and parameters can be tuned by the tenant in Studio without code changes.',
|
|
8993
|
+
'studio.policyGuidance.EXTENSIBLE': 'Allows adding complementary rules at this decision point in Studio.',
|
|
8994
|
+
'studio.policyGuidance.REPLACEABLE': 'Replaceable default rule: the tenant can customize or replace this logic in Studio.',
|
|
8995
|
+
'studio.policyGuidance.DEFAULT': 'Review parameterization and extension permissions for this decision point in Studio.',
|
|
8996
|
+
'stage.PROTECTED_GUARD.title': 'Mandatory prerequisites',
|
|
8997
|
+
'stage.PROTECTED_GUARD.subtitle': 'Security and scope conditions checked before any rule',
|
|
8998
|
+
'stage.DOMAIN_DECISION.title': 'Business rules',
|
|
8999
|
+
'stage.DOMAIN_DECISION.subtitle': 'Core rules defining operation eligibility and limits',
|
|
9000
|
+
'stage.POST_DECISION.title': 'Cross-checks',
|
|
9001
|
+
'stage.POST_DECISION.subtitle': 'Consistency across fields, balances, and complementary rules',
|
|
9002
|
+
'stage.TRANSFORMATION_INTENT.title': 'Automatic adjustments',
|
|
9003
|
+
'stage.TRANSFORMATION_INTENT.subtitle': 'Automatic values and calculations proposed by rules',
|
|
9004
|
+
'stage.EFFECT_INTENT.title': 'Consequences & records',
|
|
9005
|
+
'stage.EFFECT_INTENT.subtitle': 'Notifications, audit entries, and records generated after decision',
|
|
8455
9006
|
'policy.FORBIDDEN': 'Forbidden (Product)',
|
|
8456
9007
|
'policy.RESTRICT_ONLY': 'Restrict Only',
|
|
8457
9008
|
'policy.LOCKED': 'Locked (Product)',
|
|
@@ -9284,12 +9835,38 @@ function getPraxisStackedBarPaintStyle(segment, fallbackTone = 'neutral') {
|
|
|
9284
9835
|
color: paint,
|
|
9285
9836
|
};
|
|
9286
9837
|
}
|
|
9838
|
+
function isVisualizationEntrySuppressed(entry) {
|
|
9839
|
+
if (!entry || typeof entry !== 'object') {
|
|
9840
|
+
return false;
|
|
9841
|
+
}
|
|
9842
|
+
const obj = entry;
|
|
9843
|
+
return (obj.suppressed === true
|
|
9844
|
+
|| obj.privacySuppressed === true
|
|
9845
|
+
|| (obj.value === null && obj.state === 'suppressed'));
|
|
9846
|
+
}
|
|
9847
|
+
function countSuppressedEntries(entries) {
|
|
9848
|
+
if (!Array.isArray(entries)) {
|
|
9849
|
+
return 0;
|
|
9850
|
+
}
|
|
9851
|
+
let count = 0;
|
|
9852
|
+
for (const entry of entries) {
|
|
9853
|
+
if (isVisualizationEntrySuppressed(entry)) {
|
|
9854
|
+
count += 1;
|
|
9855
|
+
}
|
|
9856
|
+
}
|
|
9857
|
+
return count;
|
|
9858
|
+
}
|
|
9859
|
+
function resolvePreservedSuppressedCount(value) {
|
|
9860
|
+
return typeof value === 'number' && Number.isFinite(value) && value > 0
|
|
9861
|
+
? Math.trunc(value)
|
|
9862
|
+
: 0;
|
|
9863
|
+
}
|
|
9287
9864
|
function resolvePraxisStackedBarSegments(visualization) {
|
|
9288
9865
|
if (!visualization || visualization.kind !== 'stackedBar') {
|
|
9289
9866
|
return [];
|
|
9290
9867
|
}
|
|
9291
9868
|
if (Array.isArray(visualization.segments) && visualization.segments.length > 0) {
|
|
9292
|
-
return visualization.segments.filter((seg) => !seg
|
|
9869
|
+
return visualization.segments.filter((seg) => !isVisualizationEntrySuppressed(seg));
|
|
9293
9870
|
}
|
|
9294
9871
|
if (Array.isArray(visualization.items) && visualization.items.length > 0) {
|
|
9295
9872
|
const mapped = [];
|
|
@@ -9301,7 +9878,7 @@ function resolvePraxisStackedBarSegments(visualization) {
|
|
|
9301
9878
|
if (!item) {
|
|
9302
9879
|
return [];
|
|
9303
9880
|
}
|
|
9304
|
-
if (
|
|
9881
|
+
if (isVisualizationEntrySuppressed(item)) {
|
|
9305
9882
|
continue;
|
|
9306
9883
|
}
|
|
9307
9884
|
if (typeof item.value !== 'number' || !Number.isFinite(item.value) || item.value < 0) {
|
|
@@ -9409,11 +9986,7 @@ function normalizeStackedBarDistribution(value, surface) {
|
|
|
9409
9986
|
}
|
|
9410
9987
|
const parsedSegments = [];
|
|
9411
9988
|
const parsedItems = [];
|
|
9412
|
-
const preservedSuppressedCount =
|
|
9413
|
-
&& Number.isFinite(value.suppressedCount)
|
|
9414
|
-
&& value.suppressedCount > 0
|
|
9415
|
-
? Math.trunc(value.suppressedCount)
|
|
9416
|
-
: 0;
|
|
9989
|
+
const preservedSuppressedCount = resolvePreservedSuppressedCount(value.suppressedCount);
|
|
9417
9990
|
let suppressedCount = 0;
|
|
9418
9991
|
for (let i = 0; i < rawEntries.length; i++) {
|
|
9419
9992
|
if (!Object.prototype.hasOwnProperty.call(rawEntries, i)) {
|
|
@@ -9442,8 +10015,7 @@ function normalizeStackedBarDistribution(value, surface) {
|
|
|
9442
10015
|
};
|
|
9443
10016
|
}
|
|
9444
10017
|
const entryObj = rawEntry;
|
|
9445
|
-
if (entryObj
|
|
9446
|
-
|| (entryObj.value === null && entryObj.state === 'suppressed')) {
|
|
10018
|
+
if (isVisualizationEntrySuppressed(entryObj)) {
|
|
9447
10019
|
suppressedCount += 1;
|
|
9448
10020
|
continue;
|
|
9449
10021
|
}
|
|
@@ -9554,22 +10126,23 @@ function normalizePraxisPresentationVisualization(value) {
|
|
|
9554
10126
|
const normalizedTargetLabel = normalizeText$3(value.targetLabel);
|
|
9555
10127
|
const thresholdsObj = normalizeThresholds(value.thresholds);
|
|
9556
10128
|
const isTableCell = surface === 'table-cell';
|
|
10129
|
+
const normalizedPointsObj = normalizePoints(value.points);
|
|
9557
10130
|
let resolvedTone = tone;
|
|
9558
10131
|
let resolvedAriaLabel = ariaLabel;
|
|
9559
10132
|
if (!resolvedTone && thresholdsObj?.thresholds?.length) {
|
|
9560
10133
|
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
|
-
}
|
|
10134
|
+
if (evalVal === undefined && normalizedPointsObj?.points?.length) {
|
|
10135
|
+
evalVal = normalizedPointsObj.points[normalizedPointsObj.points.length - 1].value;
|
|
9569
10136
|
}
|
|
9570
10137
|
else if (Array.isArray(evalVal) && evalVal.length > 0) {
|
|
9571
|
-
const
|
|
9572
|
-
|
|
10138
|
+
const visibleVals = evalVal.filter((entry) => !isVisualizationEntrySuppressed(entry));
|
|
10139
|
+
if (visibleVals.length > 0) {
|
|
10140
|
+
const last = visibleVals[visibleVals.length - 1];
|
|
10141
|
+
evalVal = typeof last === 'object' && last !== null && 'value' in last ? last.value : last;
|
|
10142
|
+
}
|
|
10143
|
+
else {
|
|
10144
|
+
evalVal = undefined;
|
|
10145
|
+
}
|
|
9573
10146
|
}
|
|
9574
10147
|
if (evalVal !== undefined && evalVal !== null) {
|
|
9575
10148
|
const resolution = resolvePraxisMicroVisualizationTone(evalVal, thresholdsObj.thresholds);
|
|
@@ -9583,6 +10156,7 @@ function normalizePraxisPresentationVisualization(value) {
|
|
|
9583
10156
|
}
|
|
9584
10157
|
if (kind === 'stackedBar') {
|
|
9585
10158
|
const stacked = normalizeStackedBarDistribution(value, surface);
|
|
10159
|
+
const stackedSuppressedCount = Math.max(stacked.suppressedCount ?? 0, countSuppressedEntries(value.points));
|
|
9586
10160
|
return {
|
|
9587
10161
|
kind,
|
|
9588
10162
|
fallbackText,
|
|
@@ -9611,14 +10185,14 @@ function normalizePraxisPresentationVisualization(value) {
|
|
|
9611
10185
|
...(normalizeExpression(value.targetLabelExpr, 'targetLabelExpr') ?? {}),
|
|
9612
10186
|
...(normalizeNumber(value.baseline, 'baseline') ?? {}),
|
|
9613
10187
|
...(normalizeExpression(value.baselineExpr, 'baselineExpr') ?? {}),
|
|
9614
|
-
...(
|
|
10188
|
+
...(normalizedPointsObj ?? {}),
|
|
9615
10189
|
...(normalizeExpression(value.pointsExpr, 'pointsExpr') ?? {}),
|
|
9616
10190
|
...(stacked.segments ? { segments: stacked.segments } : {}),
|
|
9617
10191
|
...(normalizeExpression(value.segmentsExpr, 'segmentsExpr') ?? {}),
|
|
9618
10192
|
...(normalizeThresholds(value.thresholds) ?? {}),
|
|
9619
10193
|
...(normalizeExpression(value.thresholdsExpr, 'thresholdsExpr') ?? {}),
|
|
9620
10194
|
...(stacked.items ? { items: stacked.items } : {}),
|
|
9621
|
-
...(
|
|
10195
|
+
...(stackedSuppressedCount > 0 ? { suppressedCount: stackedSuppressedCount } : {}),
|
|
9622
10196
|
...(normalizeExpression(value.itemsExpr, 'itemsExpr') ?? {}),
|
|
9623
10197
|
...(normalizeExpression(value.toneExpr, 'toneExpr') ?? {}),
|
|
9624
10198
|
...(value.stepLabelWidth !== undefined && (typeof value.stepLabelWidth === 'number' || typeof value.stepLabelWidth === 'string')
|
|
@@ -9633,6 +10207,9 @@ function normalizePraxisPresentationVisualization(value) {
|
|
|
9633
10207
|
}
|
|
9634
10208
|
const normalizedTitle = isTableCell ? undefined : normalizeText$3(value.title);
|
|
9635
10209
|
const normalizedLegend = typeof value.legend === 'boolean' ? (isTableCell ? false : value.legend) : undefined;
|
|
10210
|
+
const suppressedCount = Math.max(resolvePreservedSuppressedCount(value.suppressedCount), countSuppressedEntries(value.points)
|
|
10211
|
+
+ countSuppressedEntries(value.items)
|
|
10212
|
+
+ countSuppressedEntries(value.segments));
|
|
9636
10213
|
return {
|
|
9637
10214
|
kind,
|
|
9638
10215
|
fallbackText,
|
|
@@ -9661,13 +10238,14 @@ function normalizePraxisPresentationVisualization(value) {
|
|
|
9661
10238
|
...(normalizeExpression(value.targetLabelExpr, 'targetLabelExpr') ?? {}),
|
|
9662
10239
|
...(normalizeNumber(value.baseline, 'baseline') ?? {}),
|
|
9663
10240
|
...(normalizeExpression(value.baselineExpr, 'baselineExpr') ?? {}),
|
|
9664
|
-
...(
|
|
10241
|
+
...(normalizedPointsObj ?? {}),
|
|
9665
10242
|
...(normalizeExpression(value.pointsExpr, 'pointsExpr') ?? {}),
|
|
9666
10243
|
...(normalizeSegments(value.segments) ?? {}),
|
|
9667
10244
|
...(normalizeExpression(value.segmentsExpr, 'segmentsExpr') ?? {}),
|
|
9668
10245
|
...(normalizeThresholds(value.thresholds) ?? {}),
|
|
9669
10246
|
...(normalizeExpression(value.thresholdsExpr, 'thresholdsExpr') ?? {}),
|
|
9670
10247
|
...(normalizeItems(value.items) ?? {}),
|
|
10248
|
+
...(suppressedCount > 0 ? { suppressedCount } : {}),
|
|
9671
10249
|
...(normalizeExpression(value.itemsExpr, 'itemsExpr') ?? {}),
|
|
9672
10250
|
...(normalizeExpression(value.toneExpr, 'toneExpr') ?? {}),
|
|
9673
10251
|
...(value.stepLabelWidth !== undefined && (typeof value.stepLabelWidth === 'number' || typeof value.stepLabelWidth === 'string')
|
|
@@ -10113,7 +10691,7 @@ function normalizeNumericEntries(value) {
|
|
|
10113
10691
|
const num = toFiniteNumber(item);
|
|
10114
10692
|
return num !== undefined ? { value: num } : null;
|
|
10115
10693
|
}
|
|
10116
|
-
if (!item || typeof item !== 'object') {
|
|
10694
|
+
if (!item || typeof item !== 'object' || isVisualizationEntrySuppressed(item)) {
|
|
10117
10695
|
return null;
|
|
10118
10696
|
}
|
|
10119
10697
|
const num = toFiniteNumber(item.value);
|
|
@@ -10133,7 +10711,7 @@ function normalizeNumericEntries(value) {
|
|
|
10133
10711
|
.filter((item) => !!item);
|
|
10134
10712
|
}
|
|
10135
10713
|
function normalizeVisualizationItem(item) {
|
|
10136
|
-
if (!item || typeof item !== 'object') {
|
|
10714
|
+
if (!item || typeof item !== 'object' || isVisualizationEntrySuppressed(item)) {
|
|
10137
10715
|
return null;
|
|
10138
10716
|
}
|
|
10139
10717
|
const id = normalizeText$3(item.id);
|
|
@@ -10620,7 +11198,15 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
|
|
|
10620
11198
|
const rawItems = Array.isArray(visualization.items) && visualization.items.length > 0
|
|
10621
11199
|
? visualization.items
|
|
10622
11200
|
: Array.isArray(visualization.points)
|
|
10623
|
-
? visualization.points.map((pt) => typeof pt === 'number'
|
|
11201
|
+
? visualization.points.map((pt) => typeof pt === 'number'
|
|
11202
|
+
? { value: pt }
|
|
11203
|
+
: {
|
|
11204
|
+
label: pt.label,
|
|
11205
|
+
value: pt.value,
|
|
11206
|
+
tone: pt.tone,
|
|
11207
|
+
...(pt.suppressed !== undefined ? { suppressed: pt.suppressed } : {}),
|
|
11208
|
+
...(pt.privacySuppressed !== undefined ? { privacySuppressed: pt.privacySuppressed } : {}),
|
|
11209
|
+
})
|
|
10624
11210
|
: [];
|
|
10625
11211
|
if (!rawItems.length) {
|
|
10626
11212
|
return [];
|
|
@@ -10631,11 +11217,17 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
|
|
|
10631
11217
|
const steps = [];
|
|
10632
11218
|
let running = 0;
|
|
10633
11219
|
let hasFiniteNumeric = false;
|
|
11220
|
+
let hadSuppressedItems = resolvePreservedSuppressedCount(visualization.suppressedCount) > 0;
|
|
11221
|
+
let visibleIncrementCount = 0;
|
|
10634
11222
|
for (let i = 0; i < rawItems.length; i++) {
|
|
10635
11223
|
const raw = rawItems[i];
|
|
10636
11224
|
if (!raw || typeof raw !== 'object') {
|
|
10637
11225
|
continue;
|
|
10638
11226
|
}
|
|
11227
|
+
if (isVisualizationEntrySuppressed(raw)) {
|
|
11228
|
+
hadSuppressedItems = true;
|
|
11229
|
+
continue;
|
|
11230
|
+
}
|
|
10639
11231
|
const rawNumeric = toFiniteNumber(raw.value);
|
|
10640
11232
|
if (rawNumeric !== undefined) {
|
|
10641
11233
|
hasFiniteNumeric = true;
|
|
@@ -10646,6 +11238,9 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
|
|
|
10646
11238
|
if (rawNumeric === undefined && role !== 'subtotal' && role !== 'total') {
|
|
10647
11239
|
continue;
|
|
10648
11240
|
}
|
|
11241
|
+
if (role !== 'subtotal' && role !== 'total') {
|
|
11242
|
+
visibleIncrementCount += 1;
|
|
11243
|
+
}
|
|
10649
11244
|
let start = running;
|
|
10650
11245
|
let end = running;
|
|
10651
11246
|
let delta = 0;
|
|
@@ -10658,7 +11253,7 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
|
|
|
10658
11253
|
resolvedValue = end;
|
|
10659
11254
|
}
|
|
10660
11255
|
else if (role === 'subtotal' || role === 'total') {
|
|
10661
|
-
const targetEnd = rawNumeric ?? running;
|
|
11256
|
+
const targetEnd = hadSuppressedItems ? running : (rawNumeric ?? running);
|
|
10662
11257
|
start = 0;
|
|
10663
11258
|
end = targetEnd;
|
|
10664
11259
|
delta = targetEnd;
|
|
@@ -10708,7 +11303,7 @@ function resolvePraxisMicroWaterfallSteps(visualization, options = {}) {
|
|
|
10708
11303
|
readout,
|
|
10709
11304
|
});
|
|
10710
11305
|
}
|
|
10711
|
-
if (!hasFiniteNumeric) {
|
|
11306
|
+
if (!hasFiniteNumeric || (hadSuppressedItems && visibleIncrementCount === 0)) {
|
|
10712
11307
|
return [];
|
|
10713
11308
|
}
|
|
10714
11309
|
return steps;
|
|
@@ -10746,7 +11341,11 @@ function renderWaterfallVisualizationHtml(visualization, options) {
|
|
|
10746
11341
|
barsHtml.push(`<rect class="pfx-micro-waterfall__bar" x="${x.toFixed(1)}" y="${clampedY.toFixed(1)}" width="${barW.toFixed(1)}" height="${rectH.toFixed(1)}" rx="1.5" fill="currentColor" data-role="${escapeHtml$1(step.role)}" data-tone="${escapeHtml$1(step.tone)}"${styleAttr} />`);
|
|
10747
11342
|
if (i < steps.length - 1) {
|
|
10748
11343
|
const nextX = xPad + (i + 1) * slotW + barOffset;
|
|
10749
|
-
const connY =
|
|
11344
|
+
const connY = step.end > step.start
|
|
11345
|
+
? clampedY
|
|
11346
|
+
: step.end < step.start
|
|
11347
|
+
? clampedY + rectH
|
|
11348
|
+
: Math.min(height - yPad, Math.max(clampedY, Math.min(clampedY + rectH, yEnd)));
|
|
10750
11349
|
connectorsHtml.push(`<line class="pfx-micro-waterfall__connector" x1="${(x + barW).toFixed(1)}" y1="${connY.toFixed(1)}" x2="${nextX.toFixed(1)}" y2="${connY.toFixed(1)}" />`);
|
|
10751
11350
|
}
|
|
10752
11351
|
scrubSlicesHtml.push(`<span class="pfx-micro-waterfall__scrub-slice" data-tone="${escapeHtml$1(step.tone)}" data-role="${escapeHtml$1(step.role)}" data-micro-readout="${escapeHtml$1(step.readout)}" title="${escapeHtml$1(step.readout)}"></span>`);
|
|
@@ -12264,7 +12863,32 @@ class SchemaNormalizationKernel {
|
|
|
12264
12863
|
const rawMode = String(record['mode'] ?? 'flat').trim().toLowerCase();
|
|
12265
12864
|
const mode = rawMode === 'tabs' || rawMode === 'accordion' || rawMode === 'stepper' || rawMode === 'flat'
|
|
12266
12865
|
? rawMode
|
|
12267
|
-
: '
|
|
12866
|
+
: rawMode === 'vertical'
|
|
12867
|
+
? 'flat'
|
|
12868
|
+
: 'flat';
|
|
12869
|
+
const defaultTabId = typeof record['defaultTabId'] === 'string' && record['defaultTabId'].trim()
|
|
12870
|
+
? record['defaultTabId'].trim()
|
|
12871
|
+
: undefined;
|
|
12872
|
+
const rawTabsAppearance = typeof record['tabsAppearance'] === 'string'
|
|
12873
|
+
? record['tabsAppearance'].trim().toLowerCase()
|
|
12874
|
+
: '';
|
|
12875
|
+
const tabsAppearance = rawTabsAppearance === 'pills' ||
|
|
12876
|
+
rawTabsAppearance === 'underline' ||
|
|
12877
|
+
rawTabsAppearance === 'buttons'
|
|
12878
|
+
? rawTabsAppearance
|
|
12879
|
+
: undefined;
|
|
12880
|
+
const accordionMulti = this.parseOptionalBoolean(record['accordionMulti']);
|
|
12881
|
+
const hideSectionHeaderInTabs = this.parseOptionalBoolean(record['hideSectionHeaderInTabs']);
|
|
12882
|
+
const hideSectionHeaderInStepper = this.parseOptionalBoolean(record['hideSectionHeaderInStepper']);
|
|
12883
|
+
const rawStepperInReadMode = typeof record['stepperInReadMode'] === 'string'
|
|
12884
|
+
? record['stepperInReadMode'].trim().toLowerCase()
|
|
12885
|
+
: '';
|
|
12886
|
+
const stepperInReadMode = rawStepperInReadMode === 'presentation' ||
|
|
12887
|
+
rawStepperInReadMode === 'all' ||
|
|
12888
|
+
rawStepperInReadMode === 'none'
|
|
12889
|
+
? rawStepperInReadMode
|
|
12890
|
+
: undefined;
|
|
12891
|
+
const stepperReviewStep = this.parseOptionalBoolean(record['stepperReviewStep']);
|
|
12268
12892
|
const rawSections = Array.isArray(record['sections']) ? record['sections'] : [];
|
|
12269
12893
|
const sections = [];
|
|
12270
12894
|
for (let idx = 0; idx < rawSections.length; idx++) {
|
|
@@ -12280,6 +12904,7 @@ class SchemaNormalizationKernel {
|
|
|
12280
12904
|
const subtitle = typeof item['subtitle'] === 'string' && item['subtitle'].trim() ? item['subtitle'].trim() : undefined;
|
|
12281
12905
|
const icon = typeof item['icon'] === 'string' && item['icon'].trim() ? item['icon'].trim() : undefined;
|
|
12282
12906
|
const groups = this.parseNonBlankStringArray(item['groups']);
|
|
12907
|
+
const optional = this.parseOptionalBoolean(item['optional']);
|
|
12283
12908
|
sections.push({
|
|
12284
12909
|
id,
|
|
12285
12910
|
title,
|
|
@@ -12287,12 +12912,61 @@ class SchemaNormalizationKernel {
|
|
|
12287
12912
|
...(icon ? { icon } : {}),
|
|
12288
12913
|
order: Number.isFinite(orderNum) ? orderNum : idx,
|
|
12289
12914
|
...(groups.length ? { groups } : {}),
|
|
12915
|
+
...(optional !== undefined ? { optional } : {}),
|
|
12290
12916
|
});
|
|
12291
12917
|
}
|
|
12292
12918
|
sections.sort((a, b) => a.order - b.order);
|
|
12919
|
+
const rawSteps = Array.isArray(record['steps']) ? record['steps'] : [];
|
|
12920
|
+
const steps = [];
|
|
12921
|
+
for (const entry of rawSteps) {
|
|
12922
|
+
if (!entry || typeof entry !== 'object' || Array.isArray(entry))
|
|
12923
|
+
continue;
|
|
12924
|
+
const item = entry;
|
|
12925
|
+
const id = String(item['id'] ?? '').trim();
|
|
12926
|
+
const label = String(item['label'] ?? '').trim() || id;
|
|
12927
|
+
const sectionIds = this.parseNonBlankStringArray(item['sectionIds']);
|
|
12928
|
+
if (!id || !sectionIds.length)
|
|
12929
|
+
continue;
|
|
12930
|
+
const description = typeof item['description'] === 'string' && item['description'].trim()
|
|
12931
|
+
? item['description'].trim()
|
|
12932
|
+
: undefined;
|
|
12933
|
+
const icon = typeof item['icon'] === 'string' && item['icon'].trim()
|
|
12934
|
+
? item['icon'].trim()
|
|
12935
|
+
: undefined;
|
|
12936
|
+
const optional = this.parseOptionalBoolean(item['optional']);
|
|
12937
|
+
const disabled = this.parseOptionalBoolean(item['disabled']);
|
|
12938
|
+
const tooltip = typeof item['tooltip'] === 'string' && item['tooltip'].trim()
|
|
12939
|
+
? item['tooltip'].trim()
|
|
12940
|
+
: undefined;
|
|
12941
|
+
const rawBadge = item['badge'];
|
|
12942
|
+
const badge = typeof rawBadge === 'string'
|
|
12943
|
+
? (rawBadge.trim() ? rawBadge.trim() : undefined)
|
|
12944
|
+
: typeof rawBadge === 'number' && Number.isFinite(rawBadge)
|
|
12945
|
+
? rawBadge
|
|
12946
|
+
: undefined;
|
|
12947
|
+
steps.push({
|
|
12948
|
+
id,
|
|
12949
|
+
label,
|
|
12950
|
+
...(description ? { description } : {}),
|
|
12951
|
+
...(icon ? { icon } : {}),
|
|
12952
|
+
sectionIds,
|
|
12953
|
+
...(optional !== undefined ? { optional } : {}),
|
|
12954
|
+
...(badge !== undefined ? { badge } : {}),
|
|
12955
|
+
...(disabled !== undefined ? { disabled } : {}),
|
|
12956
|
+
...(tooltip ? { tooltip } : {}),
|
|
12957
|
+
});
|
|
12958
|
+
}
|
|
12293
12959
|
return {
|
|
12294
12960
|
mode,
|
|
12961
|
+
...(defaultTabId ? { defaultTabId } : {}),
|
|
12962
|
+
...(tabsAppearance ? { tabsAppearance } : {}),
|
|
12963
|
+
...(accordionMulti !== undefined ? { accordionMulti } : {}),
|
|
12964
|
+
...(hideSectionHeaderInTabs !== undefined ? { hideSectionHeaderInTabs } : {}),
|
|
12965
|
+
...(hideSectionHeaderInStepper !== undefined ? { hideSectionHeaderInStepper } : {}),
|
|
12966
|
+
...(stepperInReadMode ? { stepperInReadMode } : {}),
|
|
12967
|
+
...(stepperReviewStep !== undefined ? { stepperReviewStep } : {}),
|
|
12295
12968
|
...(sections.length ? { sections } : {}),
|
|
12969
|
+
...(steps.length ? { steps } : {}),
|
|
12296
12970
|
};
|
|
12297
12971
|
}
|
|
12298
12972
|
parseContextBinding(raw) {
|
|
@@ -13343,6 +14017,24 @@ class ResourceDiscoveryService {
|
|
|
13343
14017
|
const resolvedHref = this.resolveHref(href, options);
|
|
13344
14018
|
return this.shareContextualRead(this.capabilitySnapshotInFlight, resolvedHref, () => this.fetchJson(resolvedHref, options));
|
|
13345
14019
|
}
|
|
14020
|
+
/**
|
|
14021
|
+
* Resolves a capability snapshot from an operational `resourcePath` (e.g. `'/workforce/assignments'`
|
|
14022
|
+
* or `'workforce/assignments'`), preserving the configured `apiBaseUrl` path prefix without duplicating
|
|
14023
|
+
* it when the path already includes it (e.g. `'/api/workforce/assignments'`).
|
|
14024
|
+
*/
|
|
14025
|
+
getCapabilitiesForResource(resourcePath, resourceId, options) {
|
|
14026
|
+
const cleanBase = String(resourcePath || '').split(/[?#]/u)[0]?.trim().replace(/\/+$/, '') || '';
|
|
14027
|
+
if (!cleanBase) {
|
|
14028
|
+
return throwError(() => new Error('ResourceDiscoveryService cannot resolve capabilities for an empty resourcePath.'));
|
|
14029
|
+
}
|
|
14030
|
+
const hasId = resourceId !== undefined && resourceId !== null && String(resourceId).trim() !== '';
|
|
14031
|
+
const baseWithoutCapabilities = cleanBase.replace(/\/capabilities$/i, '');
|
|
14032
|
+
const targetPath = hasId
|
|
14033
|
+
? `${baseWithoutCapabilities}/${encodeURIComponent(String(resourceId).trim())}/capabilities`
|
|
14034
|
+
: `${baseWithoutCapabilities}/capabilities`;
|
|
14035
|
+
const resolvedHref = this.resolveResourceHref(targetPath, options);
|
|
14036
|
+
return this.shareContextualRead(this.capabilitySnapshotInFlight, resolvedHref, () => this.fetchJson(resolvedHref, options));
|
|
14037
|
+
}
|
|
13346
14038
|
shareContextualRead(inFlight, requestKey, load) {
|
|
13347
14039
|
const generation = this.contextGeneration;
|
|
13348
14040
|
const pending = inFlight.get(requestKey);
|
|
@@ -14289,6 +14981,36 @@ class ResourceDiscoveryService {
|
|
|
14289
14981
|
}
|
|
14290
14982
|
return new URL(normalizedHref, this.ensureTrailingSlash(apiBaseUrl)).toString();
|
|
14291
14983
|
}
|
|
14984
|
+
/**
|
|
14985
|
+
* Resolves a resource-relative operational path (e.g. `'/workforce/assignments/capabilities'` or
|
|
14986
|
+
* `'workforce/assignments/capabilities'`) against `apiBaseUrl` without dropping path prefixes like
|
|
14987
|
+
* `'/api'` and without duplicating them when already present.
|
|
14988
|
+
*/
|
|
14989
|
+
resolveResourceHref(resourcePath, options) {
|
|
14990
|
+
const normalizedPath = String(resourcePath || '').trim();
|
|
14991
|
+
if (!normalizedPath) {
|
|
14992
|
+
throw new Error('ResourceDiscoveryService cannot resolve an empty resourcePath.');
|
|
14993
|
+
}
|
|
14994
|
+
if (this.isAbsoluteHttpUrl(normalizedPath)) {
|
|
14995
|
+
return this.resolveTrustedAbsoluteHref(normalizedPath, options);
|
|
14996
|
+
}
|
|
14997
|
+
const apiBaseUrl = this.resolveApiBaseHref(options);
|
|
14998
|
+
if (!apiBaseUrl) {
|
|
14999
|
+
return this.resolveHref(normalizedPath, options);
|
|
15000
|
+
}
|
|
15001
|
+
let basePath = '';
|
|
15002
|
+
try {
|
|
15003
|
+
basePath = this.normalizePathPrefix(new URL(apiBaseUrl).pathname);
|
|
15004
|
+
}
|
|
15005
|
+
catch {
|
|
15006
|
+
basePath = this.normalizePathPrefix(this.resolveApiBaseUrl(options));
|
|
15007
|
+
}
|
|
15008
|
+
const slashPrefixed = normalizedPath.startsWith('/') ? normalizedPath : `/${normalizedPath}`;
|
|
15009
|
+
if (basePath && (slashPrefixed === basePath || slashPrefixed.startsWith(`${basePath}/`))) {
|
|
15010
|
+
return this.resolveHref(slashPrefixed, options);
|
|
15011
|
+
}
|
|
15012
|
+
return this.resolveHref(normalizedPath.replace(/^\/+/, ''), options);
|
|
15013
|
+
}
|
|
14292
15014
|
requireLinkHref(source, rel, options) {
|
|
14293
15015
|
const href = this.resolveLinkHref(source, rel, options);
|
|
14294
15016
|
if (!href) {
|
|
@@ -15018,9 +15740,29 @@ class PraxisDecisionInspectorService {
|
|
|
15018
15740
|
if (options.includeFieldSchemas) {
|
|
15019
15741
|
const schemaFields = await this.tryLoadResourceSchemaFields(options.resourcePath ?? resolvedResourceKey, options);
|
|
15020
15742
|
if (schemaFields.length > 0) {
|
|
15743
|
+
const mergedFieldLabels = {};
|
|
15744
|
+
for (const field of schemaFields) {
|
|
15745
|
+
const name = this.cleanText(field?.name);
|
|
15746
|
+
const label = this.cleanText(field?.label);
|
|
15747
|
+
if (name && label && !mergedFieldLabels[name]) {
|
|
15748
|
+
mergedFieldLabels[name] = label;
|
|
15749
|
+
}
|
|
15750
|
+
}
|
|
15751
|
+
if (baseCatalog.fieldLabels) {
|
|
15752
|
+
for (const [key, val] of Object.entries(baseCatalog.fieldLabels)) {
|
|
15753
|
+
const cleanVal = this.cleanText(val);
|
|
15754
|
+
if (cleanVal && (cleanVal !== key || !mergedFieldLabels[key])) {
|
|
15755
|
+
mergedFieldLabels[key] = cleanVal;
|
|
15756
|
+
}
|
|
15757
|
+
}
|
|
15758
|
+
}
|
|
15021
15759
|
return {
|
|
15022
15760
|
...baseCatalog,
|
|
15761
|
+
ruleSets: enrichRuleSetsWithFieldSchemas(baseCatalog.ruleSets, schemaFields),
|
|
15023
15762
|
governance: enrichGovernanceItemsWithFieldSchemas(baseCatalog.governance ?? [], schemaFields, baseCatalog.resourceKey, authorities),
|
|
15763
|
+
...(Object.keys(mergedFieldLabels).length > 0
|
|
15764
|
+
? { fieldLabels: mergedFieldLabels }
|
|
15765
|
+
: {}),
|
|
15024
15766
|
};
|
|
15025
15767
|
}
|
|
15026
15768
|
}
|
|
@@ -15269,10 +16011,16 @@ class PraxisDecisionInspectorService {
|
|
|
15269
16011
|
const targetHref = resourceId !== null && resourceId !== undefined
|
|
15270
16012
|
? `${normalizedPath}/${encodeURIComponent(String(resourceId))}/capabilities`
|
|
15271
16013
|
: `${normalizedPath}/capabilities`;
|
|
15272
|
-
const
|
|
15273
|
-
|
|
15274
|
-
|
|
15275
|
-
|
|
16014
|
+
const capabilities$ = typeof discovery.getCapabilitiesForResource === 'function'
|
|
16015
|
+
? discovery.getCapabilitiesForResource(normalizedPath, resourceId, {
|
|
16016
|
+
endpointKey: options.endpointKey,
|
|
16017
|
+
apiUrlEntry: options.apiUrlEntry,
|
|
16018
|
+
})
|
|
16019
|
+
: discovery.getCapabilitiesByUrl(targetHref, {
|
|
16020
|
+
endpointKey: options.endpointKey,
|
|
16021
|
+
apiUrlEntry: options.apiUrlEntry,
|
|
16022
|
+
});
|
|
16023
|
+
const requestPromise = firstValueFrom(capabilities$)
|
|
15276
16024
|
.then((snapshot) => {
|
|
15277
16025
|
if (snapshot) {
|
|
15278
16026
|
this.storeBoundedCache(this.capabilitiesCache, cacheKey, snapshot);
|
|
@@ -21862,6 +22610,28 @@ class LocalStorageCacheAdapter {
|
|
|
21862
22610
|
this.persist();
|
|
21863
22611
|
this.broadcast(schemaId, undefined);
|
|
21864
22612
|
}
|
|
22613
|
+
async clear() {
|
|
22614
|
+
const removedIds = Array.from(this.mem.keys());
|
|
22615
|
+
this.mem.clear();
|
|
22616
|
+
if (typeof localStorage !== 'undefined') {
|
|
22617
|
+
try {
|
|
22618
|
+
const keysToRemove = [];
|
|
22619
|
+
for (let i = 0; i < localStorage.length; i += 1) {
|
|
22620
|
+
const key = localStorage.key(i);
|
|
22621
|
+
if (key === this.storageKey || (key && key.startsWith(`${this.storageKey}:`))) {
|
|
22622
|
+
keysToRemove.push(key);
|
|
22623
|
+
}
|
|
22624
|
+
}
|
|
22625
|
+
for (const key of keysToRemove) {
|
|
22626
|
+
localStorage.removeItem(key);
|
|
22627
|
+
}
|
|
22628
|
+
}
|
|
22629
|
+
catch { }
|
|
22630
|
+
}
|
|
22631
|
+
for (const schemaId of removedIds) {
|
|
22632
|
+
this.broadcast(schemaId, undefined);
|
|
22633
|
+
}
|
|
22634
|
+
}
|
|
21865
22635
|
subscribe(cb) {
|
|
21866
22636
|
this.subscribers.add(cb);
|
|
21867
22637
|
return () => this.subscribers.delete(cb);
|
|
@@ -21885,6 +22655,9 @@ class MemoryCacheAdapter {
|
|
|
21885
22655
|
async remove(schemaId) {
|
|
21886
22656
|
this.mem.delete(schemaId);
|
|
21887
22657
|
}
|
|
22658
|
+
async clear() {
|
|
22659
|
+
this.mem.clear();
|
|
22660
|
+
}
|
|
21888
22661
|
}
|
|
21889
22662
|
|
|
21890
22663
|
/**
|
|
@@ -22706,10 +23479,11 @@ class GenericCrudService {
|
|
|
22706
23479
|
}
|
|
22707
23480
|
return this.schemaRuntimeEpoch;
|
|
22708
23481
|
}
|
|
22709
|
-
/** Clears cached filter schemas, derived resource metadata, and bumps the runtime epoch. */
|
|
23482
|
+
/** Clears cached filter schemas, schema cache entries, derived resource metadata, and bumps the runtime epoch. */
|
|
22710
23483
|
clearRuntimeCaches() {
|
|
22711
23484
|
this.schemaRuntimeContext = '';
|
|
22712
23485
|
this.schemaRuntimeEpoch += 1;
|
|
23486
|
+
void this._schemaCache?.clear?.();
|
|
22713
23487
|
this._filterSchemaCache.clear();
|
|
22714
23488
|
this._filterSchemaLoaded = false;
|
|
22715
23489
|
this._rangeFilterFieldHints.clear();
|
|
@@ -27509,28 +28283,156 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
27509
28283
|
args: [PRAXIS_LOADING_RENDERER]
|
|
27510
28284
|
}] }] });
|
|
27511
28285
|
|
|
28286
|
+
const PHASE_PRIORITY = {
|
|
28287
|
+
action: 4,
|
|
28288
|
+
schema: 3,
|
|
28289
|
+
data: 2,
|
|
28290
|
+
mount: 1,
|
|
28291
|
+
};
|
|
28292
|
+
const CONTEXT_PRIORITY = {
|
|
28293
|
+
high: 3,
|
|
28294
|
+
normal: 2,
|
|
28295
|
+
low: 1,
|
|
28296
|
+
};
|
|
27512
28297
|
class DefaultLoadingRenderer {
|
|
27513
28298
|
rootId = 'praxis-loading-root';
|
|
27514
28299
|
styleId = 'praxis-loading-style';
|
|
28300
|
+
showDelayMs = 150;
|
|
28301
|
+
activeEntries = new Map();
|
|
28302
|
+
sequenceCounter = 0;
|
|
28303
|
+
showTimer = null;
|
|
28304
|
+
visible = false;
|
|
27515
28305
|
show(ctx) {
|
|
28306
|
+
this.upsertEntry(ctx, true);
|
|
28307
|
+
}
|
|
28308
|
+
update(ctx) {
|
|
28309
|
+
this.upsertEntry(ctx, false);
|
|
28310
|
+
}
|
|
28311
|
+
hide(ctx) {
|
|
28312
|
+
const key = this.keyOf(ctx);
|
|
28313
|
+
const existing = this.activeEntries.get(key);
|
|
28314
|
+
if (!existing)
|
|
28315
|
+
return;
|
|
28316
|
+
const nextCount = existing.count - 1;
|
|
28317
|
+
if (nextCount > 0) {
|
|
28318
|
+
this.activeEntries.set(key, { ...existing, count: nextCount });
|
|
28319
|
+
return;
|
|
28320
|
+
}
|
|
28321
|
+
this.activeEntries.delete(key);
|
|
28322
|
+
if (this.activeEntries.size === 0) {
|
|
28323
|
+
this.clearShowTimer();
|
|
28324
|
+
this.visible = false;
|
|
28325
|
+
this.clearRenderedEntry();
|
|
28326
|
+
return;
|
|
28327
|
+
}
|
|
28328
|
+
if (this.visible) {
|
|
28329
|
+
this.renderWinner();
|
|
28330
|
+
}
|
|
28331
|
+
}
|
|
28332
|
+
upsertEntry(ctx, incrementCount) {
|
|
28333
|
+
const key = this.keyOf(ctx);
|
|
28334
|
+
const existing = this.activeEntries.get(key);
|
|
28335
|
+
const count = existing
|
|
28336
|
+
? incrementCount
|
|
28337
|
+
? existing.count + 1
|
|
28338
|
+
: existing.count
|
|
28339
|
+
: 1;
|
|
28340
|
+
this.activeEntries.set(key, { ctx, sequence: ++this.sequenceCounter, count });
|
|
28341
|
+
if (this.visible) {
|
|
28342
|
+
this.renderWinner();
|
|
28343
|
+
return;
|
|
28344
|
+
}
|
|
28345
|
+
// Blocking actions must engage the backdrop immediately to prevent duplicate clicks.
|
|
28346
|
+
if (ctx.blocking || this.showDelayMs <= 0) {
|
|
28347
|
+
this.clearShowTimer();
|
|
28348
|
+
this.visible = true;
|
|
28349
|
+
this.renderWinner();
|
|
28350
|
+
return;
|
|
28351
|
+
}
|
|
28352
|
+
if (this.showTimer !== null) {
|
|
28353
|
+
return;
|
|
28354
|
+
}
|
|
28355
|
+
this.showTimer = setTimeout(() => {
|
|
28356
|
+
this.showTimer = null;
|
|
28357
|
+
if (this.activeEntries.size === 0)
|
|
28358
|
+
return;
|
|
28359
|
+
this.visible = true;
|
|
28360
|
+
this.renderWinner();
|
|
28361
|
+
}, this.showDelayMs);
|
|
28362
|
+
}
|
|
28363
|
+
ngOnDestroy() {
|
|
28364
|
+
this.clearShowTimer();
|
|
28365
|
+
this.activeEntries.clear();
|
|
28366
|
+
this.visible = false;
|
|
28367
|
+
this.clearRenderedEntry();
|
|
28368
|
+
}
|
|
28369
|
+
clearShowTimer() {
|
|
28370
|
+
if (this.showTimer !== null) {
|
|
28371
|
+
clearTimeout(this.showTimer);
|
|
28372
|
+
this.showTimer = null;
|
|
28373
|
+
}
|
|
28374
|
+
}
|
|
28375
|
+
clearRenderedEntry() {
|
|
28376
|
+
const doc = this.getDocument();
|
|
28377
|
+
if (!doc)
|
|
28378
|
+
return;
|
|
28379
|
+
const root = doc.getElementById(this.rootId);
|
|
28380
|
+
if (!root)
|
|
28381
|
+
return;
|
|
28382
|
+
root.replaceChildren();
|
|
28383
|
+
}
|
|
28384
|
+
selectWinningEntry() {
|
|
28385
|
+
let winnerKey = null;
|
|
28386
|
+
let winner = null;
|
|
28387
|
+
for (const [key, candidate] of this.activeEntries.entries()) {
|
|
28388
|
+
if (!winner || this.comparePriority(candidate, winner) > 0) {
|
|
28389
|
+
winnerKey = key;
|
|
28390
|
+
winner = candidate;
|
|
28391
|
+
}
|
|
28392
|
+
}
|
|
28393
|
+
return winnerKey && winner ? { key: winnerKey, ctx: winner.ctx } : null;
|
|
28394
|
+
}
|
|
28395
|
+
comparePriority(a, b) {
|
|
28396
|
+
const blockingDiff = (a.ctx.blocking ? 1 : 0) - (b.ctx.blocking ? 1 : 0);
|
|
28397
|
+
if (blockingDiff !== 0)
|
|
28398
|
+
return blockingDiff;
|
|
28399
|
+
const phaseDiff = (PHASE_PRIORITY[a.ctx.phase] ?? 0) - (PHASE_PRIORITY[b.ctx.phase] ?? 0);
|
|
28400
|
+
if (phaseDiff !== 0)
|
|
28401
|
+
return phaseDiff;
|
|
28402
|
+
const priorityDiff = CONTEXT_PRIORITY[a.ctx.priority ?? 'normal'] -
|
|
28403
|
+
CONTEXT_PRIORITY[b.ctx.priority ?? 'normal'];
|
|
28404
|
+
if (priorityDiff !== 0)
|
|
28405
|
+
return priorityDiff;
|
|
28406
|
+
return a.sequence - b.sequence;
|
|
28407
|
+
}
|
|
28408
|
+
renderWinner() {
|
|
28409
|
+
const winner = this.selectWinningEntry();
|
|
28410
|
+
if (!winner) {
|
|
28411
|
+
this.clearRenderedEntry();
|
|
28412
|
+
return;
|
|
28413
|
+
}
|
|
27516
28414
|
const doc = this.getDocument();
|
|
27517
28415
|
if (!doc)
|
|
27518
28416
|
return;
|
|
27519
28417
|
this.ensureStyles(doc);
|
|
27520
28418
|
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';
|
|
28419
|
+
let entry = root.querySelector('.pfx-loading-entry');
|
|
27525
28420
|
if (!entry) {
|
|
27526
28421
|
entry = doc.createElement('div');
|
|
27527
28422
|
entry.className = 'pfx-loading-entry';
|
|
27528
|
-
entry.setAttribute('data-key', key);
|
|
27529
28423
|
root.appendChild(entry);
|
|
27530
28424
|
}
|
|
28425
|
+
// Ensure a single active entry and a single aria-live region at all times.
|
|
28426
|
+
const extras = root.querySelectorAll('.pfx-loading-entry');
|
|
28427
|
+
for (let i = 1; i < extras.length; i++) {
|
|
28428
|
+
extras[i].remove();
|
|
28429
|
+
}
|
|
28430
|
+
entry.setAttribute('data-key', winner.key);
|
|
28431
|
+
const label = winner.ctx.label || this.defaultLabel(winner.ctx);
|
|
28432
|
+
const blockingAttr = winner.ctx.blocking ? 'true' : 'false';
|
|
27531
28433
|
if (entry.getAttribute('data-blocking') !== blockingAttr) {
|
|
27532
28434
|
entry.setAttribute('data-blocking', blockingAttr);
|
|
27533
|
-
entry.innerHTML = ctx.blocking
|
|
28435
|
+
entry.innerHTML = winner.ctx.blocking
|
|
27534
28436
|
? `
|
|
27535
28437
|
<div class="pfx-loading-backdrop"></div>
|
|
27536
28438
|
<div class="pfx-loading-card" role="status" aria-live="polite">
|
|
@@ -27539,31 +28441,20 @@ class DefaultLoadingRenderer {
|
|
|
27539
28441
|
</div>
|
|
27540
28442
|
`
|
|
27541
28443
|
: `
|
|
27542
|
-
<div class="pfx-loading-topbar"
|
|
27543
|
-
<div class="pfx-loading-inline-text"
|
|
28444
|
+
<div class="pfx-loading-topbar" aria-hidden="true"></div>
|
|
28445
|
+
<div class="pfx-loading-inline-text" role="status" aria-live="polite">
|
|
28446
|
+
<span class="pfx-loading-inline-dot" aria-hidden="true"></span>
|
|
28447
|
+
<span class="pfx-loading-label-shimmer"></span>
|
|
28448
|
+
</div>
|
|
27544
28449
|
`;
|
|
27545
28450
|
}
|
|
27546
|
-
const textEl = (ctx.blocking
|
|
28451
|
+
const textEl = (winner.ctx.blocking
|
|
27547
28452
|
? entry.querySelector('.pfx-loading-text')
|
|
27548
|
-
: entry.querySelector('.pfx-loading-label-shimmer') ??
|
|
28453
|
+
: entry.querySelector('.pfx-loading-label-shimmer') ??
|
|
28454
|
+
entry.querySelector('.pfx-loading-inline-text'));
|
|
27549
28455
|
if (textEl)
|
|
27550
28456
|
textEl.textContent = label;
|
|
27551
28457
|
}
|
|
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
28458
|
keyOf(ctx) {
|
|
27568
28459
|
const { componentType, componentId, routeKey } = ctx.scope;
|
|
27569
28460
|
return `${routeKey ?? 'no-route'}::${componentType}::${componentId}::${ctx.phase}`;
|
|
@@ -27571,7 +28462,7 @@ class DefaultLoadingRenderer {
|
|
|
27571
28462
|
defaultLabel(ctx) {
|
|
27572
28463
|
switch (ctx.phase) {
|
|
27573
28464
|
case 'schema':
|
|
27574
|
-
return 'Carregando
|
|
28465
|
+
return 'Carregando configuração...';
|
|
27575
28466
|
case 'mount':
|
|
27576
28467
|
return 'Montando interface...';
|
|
27577
28468
|
case 'data':
|
|
@@ -27609,6 +28500,9 @@ class DefaultLoadingRenderer {
|
|
|
27609
28500
|
inset: 0;
|
|
27610
28501
|
}
|
|
27611
28502
|
.pfx-loading-entry[data-blocking="true"] {
|
|
28503
|
+
display: flex;
|
|
28504
|
+
align-items: center;
|
|
28505
|
+
justify-content: center;
|
|
27612
28506
|
pointer-events: auto;
|
|
27613
28507
|
cursor: wait;
|
|
27614
28508
|
}
|
|
@@ -27623,21 +28517,34 @@ class DefaultLoadingRenderer {
|
|
|
27623
28517
|
backdrop-filter: blur(2px);
|
|
27624
28518
|
}
|
|
27625
28519
|
.pfx-loading-card {
|
|
27626
|
-
position:
|
|
27627
|
-
|
|
27628
|
-
display: flex;
|
|
28520
|
+
position: relative;
|
|
28521
|
+
z-index: 1;
|
|
28522
|
+
display: inline-flex;
|
|
27629
28523
|
align-items: center;
|
|
27630
28524
|
justify-content: center;
|
|
27631
28525
|
gap: 12px;
|
|
27632
|
-
|
|
27633
|
-
|
|
28526
|
+
max-width: min(360px, calc(100vw - 32px));
|
|
28527
|
+
padding: var(--pdx-loading-card-padding, 14px 22px);
|
|
28528
|
+
border-radius: var(--pdx-loading-card-radius, 12px);
|
|
28529
|
+
border: var(
|
|
28530
|
+
--pdx-loading-card-border,
|
|
28531
|
+
1px solid var(--md-sys-color-outline-variant, var(--border, rgba(255, 255, 255, 0.14)))
|
|
28532
|
+
);
|
|
28533
|
+
background: var(
|
|
28534
|
+
--pdx-loading-card-bg,
|
|
28535
|
+
var(--md-sys-color-surface-container-high, var(--card, rgba(24, 28, 36, 0.92)))
|
|
28536
|
+
);
|
|
28537
|
+
box-shadow: var(--pdx-loading-card-shadow, 0 12px 32px rgba(0, 0, 0, 0.24));
|
|
28538
|
+
color: var(--pdx-loading-text, var(--md-sys-color-on-surface, #eaeaf1));
|
|
28539
|
+
text-shadow: var(--pdx-loading-text-shadow, none);
|
|
27634
28540
|
}
|
|
27635
28541
|
.pfx-loading-spinner {
|
|
27636
|
-
width:
|
|
27637
|
-
height:
|
|
28542
|
+
width: 24px;
|
|
28543
|
+
height: 24px;
|
|
28544
|
+
flex-shrink: 0;
|
|
27638
28545
|
border-radius: 50%;
|
|
27639
28546
|
border: 3px solid var(--pdx-loading-spinner-track, rgba(255,255,255,0.2));
|
|
27640
|
-
border-top-color: var(--pdx-loading-spinner-accent, #8b5cf6);
|
|
28547
|
+
border-top-color: var(--pdx-loading-spinner-accent, var(--md-sys-color-primary, #8b5cf6));
|
|
27641
28548
|
animation: pfxSpin 0.9s linear infinite;
|
|
27642
28549
|
}
|
|
27643
28550
|
.pfx-loading-text {
|
|
@@ -27645,7 +28552,6 @@ class DefaultLoadingRenderer {
|
|
|
27645
28552
|
font-weight: 500;
|
|
27646
28553
|
opacity: .95;
|
|
27647
28554
|
text-shadow: none;
|
|
27648
|
-
filter: var(--pdx-loading-text-drop-shadow, drop-shadow(0 1px 2px rgba(0, 0, 0, 0.65)));
|
|
27649
28555
|
}
|
|
27650
28556
|
.pfx-loading-topbar {
|
|
27651
28557
|
position: absolute;
|
|
@@ -27655,7 +28561,7 @@ class DefaultLoadingRenderer {
|
|
|
27655
28561
|
height: var(--pdx-loading-topbar-height, 3px);
|
|
27656
28562
|
background: var(
|
|
27657
28563
|
--pdx-loading-topbar-gradient,
|
|
27658
|
-
linear-gradient(90deg, transparent, var(--pdx-loading-spinner-accent, #8b5cf6), transparent)
|
|
28564
|
+
linear-gradient(90deg, transparent, var(--pdx-loading-spinner-accent, var(--md-sys-color-primary, #8b5cf6)), transparent)
|
|
27659
28565
|
);
|
|
27660
28566
|
border-radius: var(--pdx-loading-topbar-radius, 999px);
|
|
27661
28567
|
box-shadow: var(--pdx-loading-topbar-shadow, none);
|
|
@@ -27663,29 +28569,46 @@ class DefaultLoadingRenderer {
|
|
|
27663
28569
|
}
|
|
27664
28570
|
.pfx-loading-inline-text {
|
|
27665
28571
|
position: absolute;
|
|
27666
|
-
top: var(--pdx-loading-inline-top,
|
|
27667
|
-
|
|
28572
|
+
top: var(--pdx-loading-inline-top, auto);
|
|
28573
|
+
bottom: var(--pdx-loading-inline-bottom, 16px);
|
|
28574
|
+
right: var(--pdx-loading-inline-right, 20px);
|
|
27668
28575
|
left: auto;
|
|
27669
28576
|
display: var(--pdx-loading-inline-display, inline-flex);
|
|
27670
28577
|
align-items: center;
|
|
27671
|
-
|
|
28578
|
+
gap: 8px;
|
|
28579
|
+
min-height: var(--pdx-loading-inline-min-height, 30px);
|
|
27672
28580
|
max-width: min(
|
|
27673
28581
|
var(--pdx-loading-inline-max-width, 320px),
|
|
27674
|
-
calc(100vw - var(--pdx-loading-inline-right,
|
|
28582
|
+
calc(100vw - var(--pdx-loading-inline-right, 20px) - var(--pdx-loading-inline-left, 20px))
|
|
27675
28583
|
);
|
|
27676
|
-
padding: var(--pdx-loading-inline-padding,
|
|
28584
|
+
padding: var(--pdx-loading-inline-padding, 4px 12px);
|
|
27677
28585
|
border-radius: var(--pdx-loading-inline-radius, 999px);
|
|
27678
|
-
border: var(
|
|
27679
|
-
|
|
27680
|
-
|
|
28586
|
+
border: var(
|
|
28587
|
+
--pdx-loading-inline-border,
|
|
28588
|
+
1px solid var(--md-sys-color-outline-variant, var(--border, rgba(15, 23, 42, 0.12)))
|
|
28589
|
+
);
|
|
28590
|
+
background: var(
|
|
28591
|
+
--pdx-loading-inline-bg,
|
|
28592
|
+
var(--md-sys-color-surface-container-high, var(--card, rgba(255, 255, 255, 0.94)))
|
|
28593
|
+
);
|
|
28594
|
+
box-shadow: var(--pdx-loading-inline-shadow, 0 4px 14px rgba(15, 23, 42, 0.12));
|
|
28595
|
+
backdrop-filter: blur(8px);
|
|
27681
28596
|
font-size: 12px;
|
|
27682
28597
|
font-weight: 500;
|
|
27683
|
-
color: var(--pdx-loading-topbar-text, #
|
|
28598
|
+
color: var(--pdx-loading-topbar-text, var(--md-sys-color-on-surface-variant, #475569));
|
|
27684
28599
|
line-height: 1.2;
|
|
27685
28600
|
white-space: nowrap;
|
|
27686
28601
|
overflow: hidden;
|
|
27687
28602
|
text-overflow: ellipsis;
|
|
27688
28603
|
}
|
|
28604
|
+
.pfx-loading-inline-dot {
|
|
28605
|
+
width: 7px;
|
|
28606
|
+
height: 7px;
|
|
28607
|
+
flex-shrink: 0;
|
|
28608
|
+
border-radius: 50%;
|
|
28609
|
+
background: var(--pdx-loading-spinner-accent, var(--md-sys-color-primary, #8b5cf6));
|
|
28610
|
+
animation: pfxPulse 1.2s ease-in-out infinite;
|
|
28611
|
+
}
|
|
27689
28612
|
.pfx-loading-label-shimmer {
|
|
27690
28613
|
display: block;
|
|
27691
28614
|
max-width: 100%;
|
|
@@ -27738,13 +28661,19 @@ class DefaultLoadingRenderer {
|
|
|
27738
28661
|
}
|
|
27739
28662
|
}
|
|
27740
28663
|
@media (prefers-reduced-motion: reduce), (forced-colors: active), print {
|
|
28664
|
+
.pfx-loading-spinner,
|
|
28665
|
+
.pfx-loading-topbar,
|
|
28666
|
+
.pfx-loading-inline-dot,
|
|
27741
28667
|
.pfx-loading-text,
|
|
27742
28668
|
.pfx-loading-label-shimmer {
|
|
27743
28669
|
animation: none !important;
|
|
28670
|
+
will-change: auto;
|
|
28671
|
+
}
|
|
28672
|
+
.pfx-loading-text,
|
|
28673
|
+
.pfx-loading-label-shimmer {
|
|
27744
28674
|
background-image: none !important;
|
|
27745
28675
|
-webkit-text-fill-color: currentColor !important;
|
|
27746
28676
|
color: inherit !important;
|
|
27747
|
-
will-change: auto;
|
|
27748
28677
|
}
|
|
27749
28678
|
}
|
|
27750
28679
|
@media (forced-colors: active) {
|
|
@@ -27755,6 +28684,10 @@ class DefaultLoadingRenderer {
|
|
|
27755
28684
|
}
|
|
27756
28685
|
}
|
|
27757
28686
|
@keyframes pfxSpin { to { transform: rotate(360deg); } }
|
|
28687
|
+
@keyframes pfxPulse {
|
|
28688
|
+
0%, 100% { opacity: 0.45; transform: scale(0.9); }
|
|
28689
|
+
50% { opacity: 1; transform: scale(1); }
|
|
28690
|
+
}
|
|
27758
28691
|
@keyframes pfxBar {
|
|
27759
28692
|
0% { transform: translateX(-60%); opacity: 0.4; }
|
|
27760
28693
|
50% { transform: translateX(0%); opacity: 1; }
|
|
@@ -27848,6 +28781,16 @@ function buildPraxisLayerScaleCss(scale = PRAXIS_LAYER_SCALE_DEFAULTS) {
|
|
|
27848
28781
|
z-index: var(${PRAXIS_LAYER_SCALE_VARS.cdkOverlayWrapper}, ${scale.cdkOverlayWrapper}) !important;
|
|
27849
28782
|
}
|
|
27850
28783
|
|
|
28784
|
+
.cdk-overlay-backdrop.pdx-quick-view-backdrop {
|
|
28785
|
+
z-index: calc(var(${PRAXIS_LAYER_SCALE_VARS.popup}, ${scale.popup}) - 1) !important;
|
|
28786
|
+
}
|
|
28787
|
+
|
|
28788
|
+
.cdk-overlay-pane.pdx-quick-view-overlay-pane,
|
|
28789
|
+
.cdk-overlay-connected-position-bounding-box:has(> .pdx-quick-view-overlay-pane),
|
|
28790
|
+
.cdk-global-overlay-wrapper:has(> .pdx-quick-view-overlay-pane) {
|
|
28791
|
+
z-index: var(${PRAXIS_LAYER_SCALE_VARS.popup}, ${scale.popup}) !important;
|
|
28792
|
+
}
|
|
28793
|
+
|
|
27851
28794
|
.cdk-overlay-connected-position-bounding-box {
|
|
27852
28795
|
z-index: var(${PRAXIS_LAYER_SCALE_VARS.cdkOverlayWrapper}, ${scale.cdkOverlayWrapper}) !important;
|
|
27853
28796
|
}
|
|
@@ -36903,12 +37846,247 @@ function reconcileFormConfig(layout, serverDefs) {
|
|
|
36903
37846
|
: { ...localField, formHidden: true, disabled: true, submitPolicy: 'omit' });
|
|
36904
37847
|
}
|
|
36905
37848
|
}
|
|
36906
|
-
|
|
37849
|
+
const reconciledLayout = placeNewlyDiscoveredCustomFields(materializedLayout, merged, localByName);
|
|
37850
|
+
// Preserve layout (sections/rows/columns) order unless new custom fields need auto-placement
|
|
36907
37851
|
return {
|
|
36908
|
-
...
|
|
37852
|
+
...reconciledLayout,
|
|
36909
37853
|
fieldMetadata: merged,
|
|
36910
37854
|
};
|
|
36911
37855
|
}
|
|
37856
|
+
function widthToGridUnits(width) {
|
|
37857
|
+
if (typeof width === 'number' && Number.isFinite(width)) {
|
|
37858
|
+
if (width <= 25)
|
|
37859
|
+
return 3;
|
|
37860
|
+
if (width <= 34)
|
|
37861
|
+
return 4;
|
|
37862
|
+
if (width <= 50)
|
|
37863
|
+
return 6;
|
|
37864
|
+
if (width <= 67)
|
|
37865
|
+
return 8;
|
|
37866
|
+
return 12;
|
|
37867
|
+
}
|
|
37868
|
+
if (typeof width !== 'string')
|
|
37869
|
+
return 12;
|
|
37870
|
+
switch (width.trim()) {
|
|
37871
|
+
case '25%':
|
|
37872
|
+
return 3;
|
|
37873
|
+
case '33%':
|
|
37874
|
+
case '33.3%':
|
|
37875
|
+
case '33.33%':
|
|
37876
|
+
return 4;
|
|
37877
|
+
case '50%':
|
|
37878
|
+
return 6;
|
|
37879
|
+
case '66%':
|
|
37880
|
+
case '66.6%':
|
|
37881
|
+
case '66.67%':
|
|
37882
|
+
return 8;
|
|
37883
|
+
default:
|
|
37884
|
+
return 12;
|
|
37885
|
+
}
|
|
37886
|
+
}
|
|
37887
|
+
function packCustomFieldsIntoRows(fields, rowIds, columnIds, itemIds) {
|
|
37888
|
+
const rows = [];
|
|
37889
|
+
let currentColumns = [];
|
|
37890
|
+
let currentUnits = 0;
|
|
37891
|
+
const flushRow = () => {
|
|
37892
|
+
if (currentColumns.length === 0)
|
|
37893
|
+
return;
|
|
37894
|
+
const firstSlug = slugifyCustomLayoutId(currentColumns[0].fields[0] || 'custom');
|
|
37895
|
+
rows.push({
|
|
37896
|
+
id: allocateUniqueLayoutId(rowIds, `row-${firstSlug}`),
|
|
37897
|
+
columns: currentColumns,
|
|
37898
|
+
});
|
|
37899
|
+
currentColumns = [];
|
|
37900
|
+
currentUnits = 0;
|
|
37901
|
+
};
|
|
37902
|
+
fields.forEach((field, index) => {
|
|
37903
|
+
const units = widthToGridUnits(field.width);
|
|
37904
|
+
if (currentColumns.length > 0 && currentUnits + units > 12) {
|
|
37905
|
+
flushRow();
|
|
37906
|
+
}
|
|
37907
|
+
const baseItem = createFieldLayoutItem(field.name, index);
|
|
37908
|
+
const itemId = allocateUniqueLayoutId(itemIds, baseItem.id);
|
|
37909
|
+
const uniqueItem = { ...baseItem, id: itemId };
|
|
37910
|
+
const fieldSlug = slugifyCustomLayoutId(field.name);
|
|
37911
|
+
const colId = allocateUniqueLayoutId(columnIds, `col-${fieldSlug}`);
|
|
37912
|
+
const column = {
|
|
37913
|
+
id: colId,
|
|
37914
|
+
items: [uniqueItem],
|
|
37915
|
+
fields: [field.name],
|
|
37916
|
+
...(units < 12 ? { span: { xs: 12, md: units } } : {}),
|
|
37917
|
+
};
|
|
37918
|
+
currentColumns.push(column);
|
|
37919
|
+
currentUnits += units;
|
|
37920
|
+
if (currentUnits >= 12) {
|
|
37921
|
+
flushRow();
|
|
37922
|
+
}
|
|
37923
|
+
});
|
|
37924
|
+
flushRow();
|
|
37925
|
+
return rows;
|
|
37926
|
+
}
|
|
37927
|
+
function placeNewlyDiscoveredCustomFields(layout, mergedFields, localByName) {
|
|
37928
|
+
if (!Array.isArray(layout.sections) || layout.sections.length === 0) {
|
|
37929
|
+
return layout;
|
|
37930
|
+
}
|
|
37931
|
+
const placedNames = new Set();
|
|
37932
|
+
const sectionIds = new Set();
|
|
37933
|
+
const rowIds = new Set();
|
|
37934
|
+
const columnIds = new Set();
|
|
37935
|
+
const itemIds = new Set();
|
|
37936
|
+
for (const section of layout.sections) {
|
|
37937
|
+
if (section.id)
|
|
37938
|
+
sectionIds.add(section.id);
|
|
37939
|
+
for (const row of section.rows ?? []) {
|
|
37940
|
+
if (row.id)
|
|
37941
|
+
rowIds.add(row.id);
|
|
37942
|
+
for (const column of row.columns ?? []) {
|
|
37943
|
+
if (column.id)
|
|
37944
|
+
columnIds.add(column.id);
|
|
37945
|
+
for (const item of column.items ?? []) {
|
|
37946
|
+
if (item.id)
|
|
37947
|
+
itemIds.add(item.id);
|
|
37948
|
+
}
|
|
37949
|
+
for (const name of getFormColumnFieldNames(column)) {
|
|
37950
|
+
placedNames.add(name);
|
|
37951
|
+
}
|
|
37952
|
+
}
|
|
37953
|
+
}
|
|
37954
|
+
}
|
|
37955
|
+
// Preserve incomplete stub layouts and empty section shells without inventing structure
|
|
37956
|
+
if (placedNames.size === 0) {
|
|
37957
|
+
return layout;
|
|
37958
|
+
}
|
|
37959
|
+
const unplacedCustomFields = mergedFields
|
|
37960
|
+
.map((field, index) => ({ field, index }))
|
|
37961
|
+
.filter(({ field }) => field.customField === true &&
|
|
37962
|
+
field.formHidden !== true &&
|
|
37963
|
+
!localByName.has(field.name) &&
|
|
37964
|
+
!placedNames.has(field.name))
|
|
37965
|
+
.sort((a, b) => {
|
|
37966
|
+
const orderA = a.field.order ?? Number.MAX_SAFE_INTEGER;
|
|
37967
|
+
const orderB = b.field.order ?? Number.MAX_SAFE_INTEGER;
|
|
37968
|
+
return orderA !== orderB ? orderA - orderB : a.index - b.index;
|
|
37969
|
+
})
|
|
37970
|
+
.map(({ field }) => field);
|
|
37971
|
+
if (unplacedCustomFields.length === 0) {
|
|
37972
|
+
return layout;
|
|
37973
|
+
}
|
|
37974
|
+
const grouped = new Map();
|
|
37975
|
+
for (const field of unplacedCustomFields) {
|
|
37976
|
+
const label = field.group?.trim() || 'Campos Customizados';
|
|
37977
|
+
const key = label.toLowerCase();
|
|
37978
|
+
const bucket = grouped.get(key);
|
|
37979
|
+
if (bucket) {
|
|
37980
|
+
bucket.fields.push(field);
|
|
37981
|
+
}
|
|
37982
|
+
else {
|
|
37983
|
+
grouped.set(key, { label, fields: [field] });
|
|
37984
|
+
}
|
|
37985
|
+
}
|
|
37986
|
+
const nextSections = [...layout.sections];
|
|
37987
|
+
const hasExplicitTabs = Array.isArray(layout.layout?.tabs) && layout.layout.tabs.length > 0;
|
|
37988
|
+
const nextTabs = hasExplicitTabs
|
|
37989
|
+
? layout.layout.tabs.map((tab) => ({
|
|
37990
|
+
...tab,
|
|
37991
|
+
sectionIds: [...(tab.sectionIds ?? [])],
|
|
37992
|
+
}))
|
|
37993
|
+
: undefined;
|
|
37994
|
+
const tabIds = new Set((nextTabs ?? []).map((tab) => tab.id).filter((id) => Boolean(id)));
|
|
37995
|
+
const hasExplicitSteps = Array.isArray(layout.layout?.steps) && layout.layout.steps.length > 0;
|
|
37996
|
+
const nextSteps = hasExplicitSteps
|
|
37997
|
+
? layout.layout.steps.map((step) => ({
|
|
37998
|
+
...step,
|
|
37999
|
+
sectionIds: [...(step.sectionIds ?? [])],
|
|
38000
|
+
}))
|
|
38001
|
+
: undefined;
|
|
38002
|
+
const stepIds = new Set((nextSteps ?? []).map((step) => step.id).filter((id) => Boolean(id)));
|
|
38003
|
+
for (const { label, fields } of grouped.values()) {
|
|
38004
|
+
const labelLower = label.toLowerCase();
|
|
38005
|
+
const labelSlug = slugifyCustomLayoutId(label);
|
|
38006
|
+
const newRows = packCustomFieldsIntoRows(fields, rowIds, columnIds, itemIds);
|
|
38007
|
+
let matchIndex = nextSections.findIndex((section) => {
|
|
38008
|
+
const titleLower = section.title?.trim().toLowerCase();
|
|
38009
|
+
const idLower = section.id?.trim().toLowerCase();
|
|
38010
|
+
return titleLower === labelLower || idLower === labelLower || idLower === labelSlug;
|
|
38011
|
+
});
|
|
38012
|
+
if (matchIndex < 0 && nextTabs) {
|
|
38013
|
+
const matchedTab = nextTabs.find((tab) => tab.label?.trim().toLowerCase() === labelLower && (tab.sectionIds?.length ?? 0) > 0);
|
|
38014
|
+
if (matchedTab) {
|
|
38015
|
+
const lastSectionId = matchedTab.sectionIds[matchedTab.sectionIds.length - 1];
|
|
38016
|
+
matchIndex = nextSections.findIndex((section) => section.id === lastSectionId);
|
|
38017
|
+
}
|
|
38018
|
+
}
|
|
38019
|
+
if (matchIndex < 0 && nextSteps) {
|
|
38020
|
+
const matchedStep = nextSteps.find((step) => step.label?.trim().toLowerCase() === labelLower && (step.sectionIds?.length ?? 0) > 0);
|
|
38021
|
+
if (matchedStep) {
|
|
38022
|
+
const lastSectionId = matchedStep.sectionIds[matchedStep.sectionIds.length - 1];
|
|
38023
|
+
matchIndex = nextSections.findIndex((section) => section.id === lastSectionId);
|
|
38024
|
+
}
|
|
38025
|
+
}
|
|
38026
|
+
let targetSectionId;
|
|
38027
|
+
if (matchIndex >= 0) {
|
|
38028
|
+
const existing = nextSections[matchIndex];
|
|
38029
|
+
targetSectionId = existing.id;
|
|
38030
|
+
nextSections[matchIndex] = {
|
|
38031
|
+
...existing,
|
|
38032
|
+
rows: [...(existing.rows ?? []), ...newRows],
|
|
38033
|
+
};
|
|
38034
|
+
}
|
|
38035
|
+
else {
|
|
38036
|
+
targetSectionId = allocateUniqueLayoutId(sectionIds, `custom-section-${labelSlug}`);
|
|
38037
|
+
nextSections.push({
|
|
38038
|
+
id: targetSectionId,
|
|
38039
|
+
title: label,
|
|
38040
|
+
rows: newRows,
|
|
38041
|
+
});
|
|
38042
|
+
}
|
|
38043
|
+
if (nextTabs && !nextTabs.some((tab) => tab.sectionIds.includes(targetSectionId))) {
|
|
38044
|
+
nextTabs.push({
|
|
38045
|
+
id: allocateUniqueLayoutId(tabIds, `custom-tab-${labelSlug}`),
|
|
38046
|
+
label,
|
|
38047
|
+
sectionIds: [targetSectionId],
|
|
38048
|
+
});
|
|
38049
|
+
}
|
|
38050
|
+
if (nextSteps && !nextSteps.some((step) => step.sectionIds.includes(targetSectionId))) {
|
|
38051
|
+
nextSteps.push({
|
|
38052
|
+
id: allocateUniqueLayoutId(stepIds, `custom-step-${labelSlug}`),
|
|
38053
|
+
label,
|
|
38054
|
+
sectionIds: [targetSectionId],
|
|
38055
|
+
});
|
|
38056
|
+
}
|
|
38057
|
+
}
|
|
38058
|
+
return {
|
|
38059
|
+
...layout,
|
|
38060
|
+
sections: nextSections,
|
|
38061
|
+
...(nextTabs || nextSteps
|
|
38062
|
+
? {
|
|
38063
|
+
layout: {
|
|
38064
|
+
...layout.layout,
|
|
38065
|
+
...(nextTabs ? { tabs: nextTabs } : {}),
|
|
38066
|
+
...(nextSteps ? { steps: nextSteps } : {}),
|
|
38067
|
+
},
|
|
38068
|
+
}
|
|
38069
|
+
: {}),
|
|
38070
|
+
};
|
|
38071
|
+
}
|
|
38072
|
+
function slugifyCustomLayoutId(value) {
|
|
38073
|
+
const normalized = value
|
|
38074
|
+
.trim()
|
|
38075
|
+
.toLowerCase()
|
|
38076
|
+
.normalize('NFD')
|
|
38077
|
+
.replace(/[\u0300-\u036f]/g, '')
|
|
38078
|
+
.replace(/[^a-z0-9]+/g, '-')
|
|
38079
|
+
.replace(/^-+|-+$/g, '');
|
|
38080
|
+
return normalized || 'custom';
|
|
38081
|
+
}
|
|
38082
|
+
function allocateUniqueLayoutId(used, base) {
|
|
38083
|
+
let candidate = base;
|
|
38084
|
+
for (let suffix = 2; used.has(candidate); suffix += 1) {
|
|
38085
|
+
candidate = `${base}-${suffix}`;
|
|
38086
|
+
}
|
|
38087
|
+
used.add(candidate);
|
|
38088
|
+
return candidate;
|
|
38089
|
+
}
|
|
36912
38090
|
|
|
36913
38091
|
function withFormConfigSections(config) {
|
|
36914
38092
|
return {
|
|
@@ -41298,6 +42476,7 @@ function markerColorForEvent$1(eventType) {
|
|
|
41298
42476
|
return 'neutral';
|
|
41299
42477
|
}
|
|
41300
42478
|
|
|
42479
|
+
const DOMAIN_RULE_DOCUMENTATION_KEY = 'documentation';
|
|
41301
42480
|
/** Narrows an unknown HTTP error body without relying on human-readable message parsing. */
|
|
41302
42481
|
function isDomainRuleSnapshotProblemResponse(value) {
|
|
41303
42482
|
if (!isRecord$3(value) || typeof value['code'] !== 'string' || typeof value['message'] !== 'string') {
|
|
@@ -41316,6 +42495,99 @@ function isDomainRuleSnapshotBlocker(value) {
|
|
|
41316
42495
|
function isRecord$3(value) {
|
|
41317
42496
|
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
41318
42497
|
}
|
|
42498
|
+
function cleanDocText(value) {
|
|
42499
|
+
if (typeof value !== 'string') {
|
|
42500
|
+
return undefined;
|
|
42501
|
+
}
|
|
42502
|
+
const trimmed = value.trim();
|
|
42503
|
+
return trimmed || undefined;
|
|
42504
|
+
}
|
|
42505
|
+
/**
|
|
42506
|
+
* Extracts normalized non-executable didactic documentation from either a
|
|
42507
|
+
* `DomainRuleDefinition.definition` payload (under `DOMAIN_RULE_DOCUMENTATION_KEY`)
|
|
42508
|
+
* or a direct `RuleDocumentationDescriptor` object.
|
|
42509
|
+
*/
|
|
42510
|
+
function extractDomainRuleDocumentation(definitionOrRecord) {
|
|
42511
|
+
if (!isRecord$3(definitionOrRecord)) {
|
|
42512
|
+
return null;
|
|
42513
|
+
}
|
|
42514
|
+
const candidate = isRecord$3(definitionOrRecord[DOMAIN_RULE_DOCUMENTATION_KEY])
|
|
42515
|
+
? definitionOrRecord[DOMAIN_RULE_DOCUMENTATION_KEY]
|
|
42516
|
+
: definitionOrRecord;
|
|
42517
|
+
if (!isRecord$3(candidate)) {
|
|
42518
|
+
return null;
|
|
42519
|
+
}
|
|
42520
|
+
const title = cleanDocText(candidate['title']);
|
|
42521
|
+
const summary = cleanDocText(candidate['summary']);
|
|
42522
|
+
const whenApplies = cleanDocText(candidate['whenApplies']);
|
|
42523
|
+
const rationale = cleanDocText(candidate['rationale']);
|
|
42524
|
+
const customizationGuidance = cleanDocText(candidate['customizationGuidance']);
|
|
42525
|
+
const rawLegal = candidate['legalBasis'];
|
|
42526
|
+
const legalList = [];
|
|
42527
|
+
if (Array.isArray(rawLegal)) {
|
|
42528
|
+
for (const entry of rawLegal) {
|
|
42529
|
+
if (typeof entry === 'string') {
|
|
42530
|
+
const code = cleanDocText(entry);
|
|
42531
|
+
if (code) {
|
|
42532
|
+
legalList.push({ code });
|
|
42533
|
+
}
|
|
42534
|
+
}
|
|
42535
|
+
else if (isRecord$3(entry)) {
|
|
42536
|
+
const code = cleanDocText(entry['code']) ?? cleanDocText(entry['title']);
|
|
42537
|
+
if (code) {
|
|
42538
|
+
legalList.push({
|
|
42539
|
+
code,
|
|
42540
|
+
...(cleanDocText(entry['title']) ? { title: cleanDocText(entry['title']) } : {}),
|
|
42541
|
+
...(cleanDocText(entry['article']) ? { article: cleanDocText(entry['article']) } : {}),
|
|
42542
|
+
...(cleanDocText(entry['jurisdiction'])
|
|
42543
|
+
? { jurisdiction: cleanDocText(entry['jurisdiction']) }
|
|
42544
|
+
: {}),
|
|
42545
|
+
...(cleanDocText(entry['summary']) ? { summary: cleanDocText(entry['summary']) } : {}),
|
|
42546
|
+
...(cleanDocText(entry['url']) ? { url: cleanDocText(entry['url']) } : {}),
|
|
42547
|
+
});
|
|
42548
|
+
}
|
|
42549
|
+
}
|
|
42550
|
+
}
|
|
42551
|
+
}
|
|
42552
|
+
else if (typeof rawLegal === 'string') {
|
|
42553
|
+
const code = cleanDocText(rawLegal);
|
|
42554
|
+
if (code) {
|
|
42555
|
+
legalList.push({ code });
|
|
42556
|
+
}
|
|
42557
|
+
}
|
|
42558
|
+
if (!title &&
|
|
42559
|
+
!summary &&
|
|
42560
|
+
!whenApplies &&
|
|
42561
|
+
!rationale &&
|
|
42562
|
+
!customizationGuidance &&
|
|
42563
|
+
legalList.length === 0) {
|
|
42564
|
+
return null;
|
|
42565
|
+
}
|
|
42566
|
+
return {
|
|
42567
|
+
...(title ? { title } : {}),
|
|
42568
|
+
...(summary ? { summary } : {}),
|
|
42569
|
+
...(whenApplies ? { whenApplies } : {}),
|
|
42570
|
+
...(rationale ? { rationale } : {}),
|
|
42571
|
+
...(legalList.length > 0 ? { legalBasis: legalList } : {}),
|
|
42572
|
+
...(customizationGuidance ? { customizationGuidance } : {}),
|
|
42573
|
+
};
|
|
42574
|
+
}
|
|
42575
|
+
/**
|
|
42576
|
+
* Merges didactic documentation under `DOMAIN_RULE_DOCUMENTATION_KEY` into a
|
|
42577
|
+
* `DomainRuleDefinition.definition` payload without mutating the source object.
|
|
42578
|
+
*/
|
|
42579
|
+
function mergeDomainRuleDocumentation(definition, documentation) {
|
|
42580
|
+
const base = isRecord$3(definition) ? { ...definition } : {};
|
|
42581
|
+
const normalized = extractDomainRuleDocumentation(documentation);
|
|
42582
|
+
if (!normalized) {
|
|
42583
|
+
delete base[DOMAIN_RULE_DOCUMENTATION_KEY];
|
|
42584
|
+
return base;
|
|
42585
|
+
}
|
|
42586
|
+
return {
|
|
42587
|
+
...base,
|
|
42588
|
+
[DOMAIN_RULE_DOCUMENTATION_KEY]: normalized,
|
|
42589
|
+
};
|
|
42590
|
+
}
|
|
41319
42591
|
|
|
41320
42592
|
const DEFAULT_TITLE = 'Governed decision timeline';
|
|
41321
42593
|
const DEFAULT_EMPTY_TEXT = 'No safe timeline events published for this decision.';
|
|
@@ -41695,6 +42967,129 @@ function normalizeSchemaFormLayoutMode(mode) {
|
|
|
41695
42967
|
return undefined;
|
|
41696
42968
|
}
|
|
41697
42969
|
}
|
|
42970
|
+
function normalizeSchemaTabsAppearance(appearance) {
|
|
42971
|
+
if (typeof appearance !== 'string')
|
|
42972
|
+
return undefined;
|
|
42973
|
+
switch (appearance.trim().toLowerCase()) {
|
|
42974
|
+
case 'pills':
|
|
42975
|
+
return 'pills';
|
|
42976
|
+
case 'underline':
|
|
42977
|
+
return 'underline';
|
|
42978
|
+
case 'buttons':
|
|
42979
|
+
return 'buttons';
|
|
42980
|
+
default:
|
|
42981
|
+
return undefined;
|
|
42982
|
+
}
|
|
42983
|
+
}
|
|
42984
|
+
function normalizeSchemaStepperReadMode(mode) {
|
|
42985
|
+
if (typeof mode !== 'string')
|
|
42986
|
+
return undefined;
|
|
42987
|
+
switch (mode.trim().toLowerCase()) {
|
|
42988
|
+
case 'presentation':
|
|
42989
|
+
return 'presentation';
|
|
42990
|
+
case 'all':
|
|
42991
|
+
return 'all';
|
|
42992
|
+
case 'none':
|
|
42993
|
+
return 'none';
|
|
42994
|
+
default:
|
|
42995
|
+
return undefined;
|
|
42996
|
+
}
|
|
42997
|
+
}
|
|
42998
|
+
function buildMaterializedFormLayoutOptions(schemaLayout, sections) {
|
|
42999
|
+
if (!schemaLayout)
|
|
43000
|
+
return undefined;
|
|
43001
|
+
const normalizedMode = normalizeSchemaFormLayoutMode(schemaLayout.mode);
|
|
43002
|
+
const defaultTabId = typeof schemaLayout.defaultTabId === 'string' && schemaLayout.defaultTabId.trim()
|
|
43003
|
+
? schemaLayout.defaultTabId.trim()
|
|
43004
|
+
: undefined;
|
|
43005
|
+
const tabsAppearance = normalizeSchemaTabsAppearance(schemaLayout.tabsAppearance);
|
|
43006
|
+
const accordionMulti = typeof schemaLayout.accordionMulti === 'boolean'
|
|
43007
|
+
? schemaLayout.accordionMulti
|
|
43008
|
+
: undefined;
|
|
43009
|
+
const hideSectionHeaderInTabs = typeof schemaLayout.hideSectionHeaderInTabs === 'boolean'
|
|
43010
|
+
? schemaLayout.hideSectionHeaderInTabs
|
|
43011
|
+
: undefined;
|
|
43012
|
+
const hideSectionHeaderInStepper = typeof schemaLayout.hideSectionHeaderInStepper === 'boolean'
|
|
43013
|
+
? schemaLayout.hideSectionHeaderInStepper
|
|
43014
|
+
: undefined;
|
|
43015
|
+
const stepperInReadMode = normalizeSchemaStepperReadMode(schemaLayout.stepperInReadMode);
|
|
43016
|
+
const stepperReviewStep = typeof schemaLayout.stepperReviewStep === 'boolean'
|
|
43017
|
+
? schemaLayout.stepperReviewStep
|
|
43018
|
+
: undefined;
|
|
43019
|
+
const draftPersistence = typeof schemaLayout.draftPersistence === 'boolean'
|
|
43020
|
+
? schemaLayout.draftPersistence
|
|
43021
|
+
: undefined;
|
|
43022
|
+
const steps = Array.isArray(schemaLayout.steps) && schemaLayout.steps.length > 0
|
|
43023
|
+
? schemaLayout.steps
|
|
43024
|
+
.map((step) => {
|
|
43025
|
+
const id = typeof step?.id === 'string' ? step.id.trim() : '';
|
|
43026
|
+
const sectionIds = Array.isArray(step?.sectionIds)
|
|
43027
|
+
? step.sectionIds.map((s) => String(s ?? '').trim()).filter(Boolean)
|
|
43028
|
+
: [];
|
|
43029
|
+
if (!id || !sectionIds.length) {
|
|
43030
|
+
return null;
|
|
43031
|
+
}
|
|
43032
|
+
const description = typeof step.description === 'string' && step.description.trim()
|
|
43033
|
+
? step.description.trim()
|
|
43034
|
+
: undefined;
|
|
43035
|
+
const icon = typeof step.icon === 'string' && step.icon.trim()
|
|
43036
|
+
? step.icon.trim()
|
|
43037
|
+
: undefined;
|
|
43038
|
+
const tooltip = typeof step.tooltip === 'string' && step.tooltip.trim()
|
|
43039
|
+
? step.tooltip.trim()
|
|
43040
|
+
: undefined;
|
|
43041
|
+
return {
|
|
43042
|
+
id,
|
|
43043
|
+
label: (typeof step.label === 'string' ? step.label.trim() : '') || id,
|
|
43044
|
+
...(description ? { description } : {}),
|
|
43045
|
+
...(icon ? { icon } : {}),
|
|
43046
|
+
sectionIds,
|
|
43047
|
+
...(step.optional === true ? { optional: true } : {}),
|
|
43048
|
+
...(step.badge !== undefined && step.badge !== null && step.badge !== ''
|
|
43049
|
+
? { badge: step.badge }
|
|
43050
|
+
: {}),
|
|
43051
|
+
...(step.disabled === true ? { disabled: true } : {}),
|
|
43052
|
+
...(tooltip ? { tooltip } : {}),
|
|
43053
|
+
};
|
|
43054
|
+
})
|
|
43055
|
+
.filter((item) => item !== null)
|
|
43056
|
+
: undefined;
|
|
43057
|
+
const normalizedSteps = steps && steps.length > 0 ? steps : undefined;
|
|
43058
|
+
if (!normalizedMode &&
|
|
43059
|
+
!defaultTabId &&
|
|
43060
|
+
!tabsAppearance &&
|
|
43061
|
+
accordionMulti === undefined &&
|
|
43062
|
+
hideSectionHeaderInTabs === undefined &&
|
|
43063
|
+
hideSectionHeaderInStepper === undefined &&
|
|
43064
|
+
stepperInReadMode === undefined &&
|
|
43065
|
+
stepperReviewStep === undefined &&
|
|
43066
|
+
draftPersistence === undefined &&
|
|
43067
|
+
!normalizedSteps) {
|
|
43068
|
+
return undefined;
|
|
43069
|
+
}
|
|
43070
|
+
return {
|
|
43071
|
+
...(normalizedMode ? { mode: normalizedMode } : {}),
|
|
43072
|
+
...(defaultTabId ? { defaultTabId } : {}),
|
|
43073
|
+
...(tabsAppearance ? { tabsAppearance } : {}),
|
|
43074
|
+
...(accordionMulti !== undefined ? { accordionMulti } : {}),
|
|
43075
|
+
...(hideSectionHeaderInTabs !== undefined ? { hideSectionHeaderInTabs } : {}),
|
|
43076
|
+
...(hideSectionHeaderInStepper !== undefined ? { hideSectionHeaderInStepper } : {}),
|
|
43077
|
+
...(stepperInReadMode ? { stepperInReadMode } : {}),
|
|
43078
|
+
...(stepperReviewStep !== undefined ? { stepperReviewStep } : {}),
|
|
43079
|
+
...(draftPersistence !== undefined ? { draftPersistence } : {}),
|
|
43080
|
+
...(normalizedSteps ? { steps: normalizedSteps } : {}),
|
|
43081
|
+
...(normalizedMode === 'tabs'
|
|
43082
|
+
? {
|
|
43083
|
+
tabs: sections.map((s) => ({
|
|
43084
|
+
id: s.id,
|
|
43085
|
+
label: s.title || s.id,
|
|
43086
|
+
...(s.icon ? { icon: s.icon } : {}),
|
|
43087
|
+
sectionIds: [s.id],
|
|
43088
|
+
})),
|
|
43089
|
+
}
|
|
43090
|
+
: {}),
|
|
43091
|
+
};
|
|
43092
|
+
}
|
|
41698
43093
|
function buildSectionsFromSchemaFormLayout(layoutFields, schemaLayout, policy, options) {
|
|
41699
43094
|
const orderedSections = [...(schemaLayout.sections ?? [])].sort((a, b) => (a.order ?? 0) - (b.order ?? 0));
|
|
41700
43095
|
const claimedFieldNames = new Set();
|
|
@@ -41718,11 +43113,13 @@ function buildSectionsFromSchemaFormLayout(layoutFields, schemaLayout, policy, o
|
|
|
41718
43113
|
for (const f of matchingFields) {
|
|
41719
43114
|
claimedFieldNames.add(f.name);
|
|
41720
43115
|
}
|
|
41721
|
-
const
|
|
43116
|
+
const explicitSectionId = schemaSec.id?.trim() || undefined;
|
|
43117
|
+
const baseSection = createSection(schemaSec.title || schemaSec.id || `section-${idx + 1}`, matchingFields, idx, policy, options, explicitSectionId);
|
|
41722
43118
|
built.push({
|
|
41723
43119
|
...baseSection,
|
|
41724
43120
|
id: schemaSec.id?.trim() || baseSection.id,
|
|
41725
43121
|
title: schemaSec.title?.trim() || baseSection.title,
|
|
43122
|
+
...(schemaSec.optional === true ? { optional: true } : {}),
|
|
41726
43123
|
...(schemaSec.subtitle?.trim() ? { description: schemaSec.subtitle.trim() } : {}),
|
|
41727
43124
|
...(schemaSec.icon?.trim()
|
|
41728
43125
|
? {
|
|
@@ -41756,22 +43153,7 @@ function materializeFormLayoutFromMetadata(fields, options = {}) {
|
|
|
41756
43153
|
const sections = schemaFormLayout?.sections?.length
|
|
41757
43154
|
? buildSectionsFromSchemaFormLayout(layoutFields, schemaFormLayout, policy, options)
|
|
41758
43155
|
: 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;
|
|
43156
|
+
const layout = buildMaterializedFormLayoutOptions(schemaFormLayout, sections);
|
|
41775
43157
|
return ensureIds({
|
|
41776
43158
|
sections,
|
|
41777
43159
|
...(layout ? { layout } : {}),
|
|
@@ -42000,12 +43382,12 @@ function groupFields(fields) {
|
|
|
42000
43382
|
}
|
|
42001
43383
|
return Array.from(groups.entries()).sort(([, left], [, right]) => compareGroupFields(left, right));
|
|
42002
43384
|
}
|
|
42003
|
-
function createSection(groupKey, groupFields, sectionIndex, policy, options) {
|
|
43385
|
+
function createSection(groupKey, groupFields, sectionIndex, policy, options, explicitSectionId) {
|
|
42004
43386
|
const title = groupKey === 'default'
|
|
42005
43387
|
? options.defaultSectionTitle
|
|
42006
43388
|
?? (policy.preset === 'groupedCommand' ? '' : 'Informacoes')
|
|
42007
43389
|
: groupKey;
|
|
42008
|
-
const sectionId = stableSectionId(groupKey);
|
|
43390
|
+
const sectionId = explicitSectionId?.trim() || stableSectionId(groupKey);
|
|
42009
43391
|
const presentationRole = resolvePresentationRole(groupKey, groupFields, options.presentationRoleMap);
|
|
42010
43392
|
return {
|
|
42011
43393
|
id: sectionId,
|
|
@@ -44145,7 +45527,7 @@ class PraxisIconButtonComponent {
|
|
|
44145
45527
|
<mat-icon [class]="defaultAuxiliaryClasses" [fontSet]="resolvedFontClass()" [praxisIcon]="resolvedIcon()"></mat-icon>
|
|
44146
45528
|
}
|
|
44147
45529
|
</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 });
|
|
45530
|
+
`, isInline: true, styles: [":host{--praxis-icon-button-target-size: 44px;--praxis-icon-button-surface-size: 40px;--praxis-icon-button-icon-size: 22px;--praxis-icon-button-filled-background: var(--md-sys-color-primary, var(--mat-sys-primary));--praxis-icon-button-filled-foreground: var(--md-sys-color-on-primary, var(--mat-sys-on-primary));appearance:none;box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 auto;width:var(--praxis-icon-button-target-size);min-width:var(--praxis-icon-button-target-size);height:var(--praxis-icon-button-target-size);margin:0;padding:0;border:0;border-radius:var(--praxis-icon-button-focus-radius, var(--praxis-icon-button-radius, 999px));color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));background:transparent;cursor:pointer;line-height:1;-webkit-tap-highlight-color:transparent}:host(.praxis-icon-button--compact){--praxis-icon-button-surface-size: 36px;--praxis-icon-button-icon-size: 20px}:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 36px;--praxis-icon-button-surface-size: 32px;--praxis-icon-button-icon-size: 18px}.praxis-icon-button__surface{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-surface-size);height:var(--praxis-icon-button-surface-size);border:var(--praxis-icon-button-border, 0);border-radius:var(--praxis-icon-button-radius, 999px);color:inherit;background:var(--praxis-icon-button-bg, transparent);transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .1s ease}mat-icon{display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);margin:0;font-size:var(--praxis-icon-button-icon-size);line-height:var(--praxis-icon-button-icon-size)}.praxis-icon-button__spinner{box-sizing:border-box;display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:999px;animation:praxis-icon-button-spin .72s linear infinite}.praxis-icon-button__projected{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);min-width:0;overflow:hidden;line-height:var(--praxis-icon-button-icon-size)}@keyframes praxis-icon-button-spin{to{transform:rotate(360deg)}}:host(:hover:not(:disabled)) .praxis-icon-button__surface{background:var( --praxis-icon-button-hover-bg, color-mix(in srgb, currentColor 10%, transparent) );border-color:var(--praxis-icon-button-hover-border-color, transparent)}:host(:active:not(:disabled)) .praxis-icon-button__surface{background:var( --praxis-icon-button-active-bg, color-mix(in srgb, currentColor 16%, transparent) );transform:scale(.96)}:host(.praxis-icon-button--pressed:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 14%,transparent)}:host(:focus-visible){outline:2px solid var(--md-sys-color-primary, var(--mat-sys-primary));outline-offset:2px}:host(.praxis-icon-button--filled){color:var(--praxis-icon-button-filled-foreground)}:host(.praxis-icon-button--filled) .praxis-icon-button__surface{background:var(--praxis-icon-button-filled-background);box-shadow:0 4px 12px color-mix(in srgb,var(--praxis-icon-button-filled-background) 24%,transparent)}:host(.praxis-icon-button--filled:hover:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,var(--praxis-icon-button-filled-background) 88%,var(--praxis-icon-button-filled-foreground))}:host(:disabled){cursor:default;opacity:.38}@media(forced-colors:active){.praxis-icon-button__surface{border:1px solid ButtonText}:host(:focus-visible){outline-color:Highlight}}@media(prefers-reduced-motion:reduce){.praxis-icon-button__surface{transition:none}.praxis-icon-button__spinner{animation:none}}@media(pointer:coarse){:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 44px}}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
44149
45531
|
}
|
|
44150
45532
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisIconButtonComponent, decorators: [{
|
|
44151
45533
|
type: Component,
|
|
@@ -44171,7 +45553,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
44171
45553
|
'[class.praxis-icon-button--filled]': 'appearance() === "filled"',
|
|
44172
45554
|
'[class.praxis-icon-button--pressed]': 'pressed() === true',
|
|
44173
45555
|
'[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"] }]
|
|
45556
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{--praxis-icon-button-target-size: 44px;--praxis-icon-button-surface-size: 40px;--praxis-icon-button-icon-size: 22px;--praxis-icon-button-filled-background: var(--md-sys-color-primary, var(--mat-sys-primary));--praxis-icon-button-filled-foreground: var(--md-sys-color-on-primary, var(--mat-sys-on-primary));appearance:none;box-sizing:border-box;display:inline-grid;place-items:center;flex:0 0 auto;width:var(--praxis-icon-button-target-size);min-width:var(--praxis-icon-button-target-size);height:var(--praxis-icon-button-target-size);margin:0;padding:0;border:0;border-radius:var(--praxis-icon-button-focus-radius, var(--praxis-icon-button-radius, 999px));color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));background:transparent;cursor:pointer;line-height:1;-webkit-tap-highlight-color:transparent}:host(.praxis-icon-button--compact){--praxis-icon-button-surface-size: 36px;--praxis-icon-button-icon-size: 20px}:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 36px;--praxis-icon-button-surface-size: 32px;--praxis-icon-button-icon-size: 18px}.praxis-icon-button__surface{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-surface-size);height:var(--praxis-icon-button-surface-size);border:var(--praxis-icon-button-border, 0);border-radius:var(--praxis-icon-button-radius, 999px);color:inherit;background:var(--praxis-icon-button-bg, transparent);transition:background-color .14s ease,border-color .14s ease,color .14s ease,box-shadow .14s ease,transform .1s ease}mat-icon{display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);margin:0;font-size:var(--praxis-icon-button-icon-size);line-height:var(--praxis-icon-button-icon-size)}.praxis-icon-button__spinner{box-sizing:border-box;display:block;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:999px;animation:praxis-icon-button-spin .72s linear infinite}.praxis-icon-button__projected{box-sizing:border-box;display:inline-grid;place-items:center;width:var(--praxis-icon-button-icon-size);height:var(--praxis-icon-button-icon-size);min-width:0;overflow:hidden;line-height:var(--praxis-icon-button-icon-size)}@keyframes praxis-icon-button-spin{to{transform:rotate(360deg)}}:host(:hover:not(:disabled)) .praxis-icon-button__surface{background:var( --praxis-icon-button-hover-bg, color-mix(in srgb, currentColor 10%, transparent) );border-color:var(--praxis-icon-button-hover-border-color, transparent)}:host(:active:not(:disabled)) .praxis-icon-button__surface{background:var( --praxis-icon-button-active-bg, color-mix(in srgb, currentColor 16%, transparent) );transform:scale(.96)}:host(.praxis-icon-button--pressed:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,currentColor 14%,transparent)}:host(:focus-visible){outline:2px solid var(--md-sys-color-primary, var(--mat-sys-primary));outline-offset:2px}:host(.praxis-icon-button--filled){color:var(--praxis-icon-button-filled-foreground)}:host(.praxis-icon-button--filled) .praxis-icon-button__surface{background:var(--praxis-icon-button-filled-background);box-shadow:0 4px 12px color-mix(in srgb,var(--praxis-icon-button-filled-background) 24%,transparent)}:host(.praxis-icon-button--filled:hover:not(:disabled)) .praxis-icon-button__surface{background:color-mix(in srgb,var(--praxis-icon-button-filled-background) 88%,var(--praxis-icon-button-filled-foreground))}:host(:disabled){cursor:default;opacity:.38}@media(forced-colors:active){.praxis-icon-button__surface{border:1px solid ButtonText}:host(:focus-visible){outline-color:Highlight}}@media(prefers-reduced-motion:reduce){.praxis-icon-button__surface{transition:none}.praxis-icon-button__spinner{animation:none}}@media(pointer:coarse){:host(.praxis-icon-button--dense){--praxis-icon-button-target-size: 44px}}\n"] }]
|
|
44175
45557
|
}], propDecorators: { icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "praxisIconButton", required: true }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], presentation: [{ type: i0.Input, args: [{ isSignal: true, alias: "presentation", required: false }] }], pressed: [{ type: i0.Input, args: [{ isSignal: true, alias: "pressed", required: false }] }], busy: [{ type: i0.Input, args: [{ isSignal: true, alias: "busy", required: false }] }] } });
|
|
44176
45558
|
|
|
44177
45559
|
/** Finite choices from the existing ComponentDocMeta type grammar, not user intent. */
|
|
@@ -52149,7 +53531,7 @@ class WindowIsolation {
|
|
|
52149
53531
|
this.container = container;
|
|
52150
53532
|
this.scrollStrategy = scrollStrategy;
|
|
52151
53533
|
this.onEmpty = onEmpty;
|
|
52152
|
-
this.observer = new MutationObserver(() => this.refresh());
|
|
53534
|
+
this.observer = typeof MutationObserver !== 'undefined' ? new MutationObserver(() => this.refresh()) : null;
|
|
52153
53535
|
}
|
|
52154
53536
|
add(wrapper) {
|
|
52155
53537
|
if (!this.windows.length)
|
|
@@ -52213,18 +53595,18 @@ class WindowIsolation {
|
|
|
52213
53595
|
}
|
|
52214
53596
|
if (!this.windows.length) {
|
|
52215
53597
|
this.closed = true;
|
|
52216
|
-
this.observer
|
|
53598
|
+
this.observer?.disconnect();
|
|
52217
53599
|
this.observedAncestors = [];
|
|
52218
53600
|
this.scrollStrategy.disable();
|
|
52219
53601
|
this.onEmpty();
|
|
52220
53602
|
}
|
|
52221
53603
|
else if (ancestors.length !== this.observedAncestors.length
|
|
52222
53604
|
|| ancestors.some((ancestor, index) => ancestor !== this.observedAncestors[index])) {
|
|
52223
|
-
this.observer
|
|
53605
|
+
this.observer?.disconnect();
|
|
52224
53606
|
// Observe structural siblings only, never mutations in every cell/form
|
|
52225
53607
|
// under body. Attribute writes cannot feed back into this observer.
|
|
52226
53608
|
for (const ancestor of ancestors)
|
|
52227
|
-
this.observer
|
|
53609
|
+
this.observer?.observe(ancestor, { childList: true });
|
|
52228
53610
|
this.observedAncestors = ancestors;
|
|
52229
53611
|
}
|
|
52230
53612
|
}
|
|
@@ -53574,7 +54956,7 @@ class PraxisResourceIdentityComponent {
|
|
|
53574
54956
|
</div>
|
|
53575
54957
|
}
|
|
53576
54958
|
</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 });
|
|
54959
|
+
`, isInline: true, styles: [":host{display:block;min-width:0}.identity{display:grid;gap:var(--pdx-resource-identity-gap, .375rem);min-width:0}.identity__primary{display:flex;align-items:center;gap:var(--pdx-resource-identity-primary-gap, .625rem);min-width:0;flex-wrap:wrap}.identity__key{display:inline-flex;align-items:center;min-height:1.75rem;padding:.125rem .625rem;border-radius:var(--pdx-resource-identity-key-radius, .5rem);background:var(--pdx-resource-identity-key-bg, var(--md-sys-color-primary, var(--mat-sys-primary)));color:var(--pdx-resource-identity-key-fg, var(--md-sys-color-on-primary, var(--mat-sys-on-primary)));font:var(--pdx-resource-identity-key-font, 600 .8125rem/1.25rem var(--md-sys-typescale-label-large-font-family, inherit));letter-spacing:.02em;white-space:nowrap}.identity__key-label{font-weight:500;opacity:.84;margin-inline-end:.25rem}.identity__title{flex:1 1 12rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:var(--pdx-resource-identity-title-wrap, normal);overflow-wrap:anywhere;color:var(--pdx-resource-identity-title-color, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)));font:var(--pdx-resource-identity-title-font, 600 1.125rem/1.35 var(--md-sys-typescale-title-medium-font-family, inherit))}.identity__metadata{display:flex;align-items:center;gap:.375rem .5rem;flex-wrap:wrap;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}.identity__meta{display:inline-flex;align-items:center;gap:.25rem;min-width:0;font-size:.8125rem;line-height:1.25rem}.identity__meta+.identity__meta:not(.identity__meta--chip):before{content:\"\\b7\";margin-inline-end:.25rem;color:var(--md-sys-color-outline, var(--mat-sys-outline))}.identity__meta--chip{padding:.0625rem .5rem;border-radius:999px;background:var(--md-sys-color-surface-container-high, var(--mat-sys-surface-container-high));color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}.identity__meta-label{color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));font-weight:500}.identity--compact{gap:.25rem}.identity--compact .identity__key{min-height:1.5rem;padding-inline:.5rem}.identity--compact .identity__title{font-size:1rem}@media(max-width:600px){.identity__primary{align-items:flex-start;gap:.375rem .5rem}.identity__title{flex:1 1 12rem;white-space:normal;overflow:visible}.identity__metadata{gap:.25rem .375rem}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
53578
54960
|
}
|
|
53579
54961
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisResourceIdentityComponent, decorators: [{
|
|
53580
54962
|
type: Component,
|
|
@@ -53617,7 +54999,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
53617
54999
|
</div>
|
|
53618
55000
|
}
|
|
53619
55001
|
</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"] }]
|
|
55002
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block;min-width:0}.identity{display:grid;gap:var(--pdx-resource-identity-gap, .375rem);min-width:0}.identity__primary{display:flex;align-items:center;gap:var(--pdx-resource-identity-primary-gap, .625rem);min-width:0;flex-wrap:wrap}.identity__key{display:inline-flex;align-items:center;min-height:1.75rem;padding:.125rem .625rem;border-radius:var(--pdx-resource-identity-key-radius, .5rem);background:var(--pdx-resource-identity-key-bg, var(--md-sys-color-primary, var(--mat-sys-primary)));color:var(--pdx-resource-identity-key-fg, var(--md-sys-color-on-primary, var(--mat-sys-on-primary)));font:var(--pdx-resource-identity-key-font, 600 .8125rem/1.25rem var(--md-sys-typescale-label-large-font-family, inherit));letter-spacing:.02em;white-space:nowrap}.identity__key-label{font-weight:500;opacity:.84;margin-inline-end:.25rem}.identity__title{flex:1 1 12rem;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:var(--pdx-resource-identity-title-wrap, normal);overflow-wrap:anywhere;color:var(--pdx-resource-identity-title-color, var(--md-sys-color-on-surface, var(--mat-sys-on-surface)));font:var(--pdx-resource-identity-title-font, 600 1.125rem/1.35 var(--md-sys-typescale-title-medium-font-family, inherit))}.identity__metadata{display:flex;align-items:center;gap:.375rem .5rem;flex-wrap:wrap;color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}.identity__meta{display:inline-flex;align-items:center;gap:.25rem;min-width:0;font-size:.8125rem;line-height:1.25rem}.identity__meta+.identity__meta:not(.identity__meta--chip):before{content:\"\\b7\";margin-inline-end:.25rem;color:var(--md-sys-color-outline, var(--mat-sys-outline))}.identity__meta--chip{padding:.0625rem .5rem;border-radius:999px;background:var(--md-sys-color-surface-container-high, var(--mat-sys-surface-container-high));color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant))}.identity__meta-label{color:var(--md-sys-color-on-surface-variant, var(--mat-sys-on-surface-variant));font-weight:500}.identity--compact{gap:.25rem}.identity--compact .identity__key{min-height:1.5rem;padding-inline:.5rem}.identity--compact .identity__title{font-size:1rem}@media(max-width:600px){.identity__primary{align-items:flex-start;gap:.375rem .5rem}.identity__title{flex:1 1 12rem;white-space:normal;overflow:visible}.identity__metadata{gap:.25rem .375rem}}\n"] }]
|
|
53621
55003
|
}], propDecorators: { identity: [{
|
|
53622
55004
|
type: Input
|
|
53623
55005
|
}], emptyTitle: [{
|
|
@@ -58701,6 +60083,8 @@ class SettingsSectionTabsComponent {
|
|
|
58701
60083
|
destroyRef = inject(DestroyRef);
|
|
58702
60084
|
constructor() {
|
|
58703
60085
|
afterNextRender(() => {
|
|
60086
|
+
if (typeof ResizeObserver === 'undefined')
|
|
60087
|
+
return;
|
|
58704
60088
|
const observer = new ResizeObserver(entries => this.columns.set(entries[0].contentRect.width >= 280 ? 2 : 1));
|
|
58705
60089
|
observer.observe(this.element.nativeElement);
|
|
58706
60090
|
this.destroyRef.onDestroy(() => observer.disconnect());
|
|
@@ -65468,6 +66852,10 @@ class DynamicWidgetPageComponent {
|
|
|
65468
66852
|
focusSizeEditor(overlay) {
|
|
65469
66853
|
overlay.overlayElement.querySelector('input')?.focus({ preventScroll: true });
|
|
65470
66854
|
this.sizeEditorResizeObserver?.disconnect();
|
|
66855
|
+
if (typeof ResizeObserver === 'undefined') {
|
|
66856
|
+
this.sizeEditorResizeObserver = undefined;
|
|
66857
|
+
return;
|
|
66858
|
+
}
|
|
65471
66859
|
this.sizeEditorResizeObserver = new ResizeObserver(() => {
|
|
65472
66860
|
if (overlay.hasAttached())
|
|
65473
66861
|
overlay.updatePosition();
|
|
@@ -66234,7 +67622,7 @@ class DynamicWidgetPageComponent {
|
|
|
66234
67622
|
}
|
|
66235
67623
|
observeSouthPreview(key) {
|
|
66236
67624
|
const host = this.pageCanvasHost?.nativeElement;
|
|
66237
|
-
if (!host)
|
|
67625
|
+
if (!host || typeof ResizeObserver === 'undefined')
|
|
66238
67626
|
return;
|
|
66239
67627
|
this.sizeEditorSouthObserver = new ResizeObserver(() => {
|
|
66240
67628
|
if (!this.sizeEditorSouthSignature || !this.sizeEditorOrigin())
|
|
@@ -74703,6 +76091,7 @@ class PraxisAppShellComponent {
|
|
|
74703
76091
|
}, ...(ngDevMode ? [{ debugName: "shellText" }] : /* istanbul ignore next */ []));
|
|
74704
76092
|
cdr = inject(ChangeDetectorRef);
|
|
74705
76093
|
loadingOrchestrator = inject(LoadingOrchestrator, { optional: true });
|
|
76094
|
+
loadingRenderer = inject(PRAXIS_LOADING_RENDERER, { optional: true });
|
|
74706
76095
|
orchestratorLoading = this.loadingOrchestrator
|
|
74707
76096
|
? toSignal(this.loadingOrchestrator.watch().pipe(map((list) => list.length > 0)), {
|
|
74708
76097
|
initialValue: false,
|
|
@@ -74920,7 +76309,7 @@ class PraxisAppShellComponent {
|
|
|
74920
76309
|
});
|
|
74921
76310
|
}
|
|
74922
76311
|
effectiveLoading = computed(() => {
|
|
74923
|
-
return this._isAnyLoading() || this.orchestratorLoading();
|
|
76312
|
+
return this._isAnyLoading() || (!this.loadingRenderer && this.orchestratorLoading());
|
|
74924
76313
|
}, ...(ngDevMode ? [{ debugName: "effectiveLoading" }] : /* istanbul ignore next */ []));
|
|
74925
76314
|
handleEscape() {
|
|
74926
76315
|
if (this.moreOpen())
|
|
@@ -77545,4 +78934,4 @@ function materializeGovernedPagePreview(value, pageId, adapters, baseContext = {
|
|
|
77545
78934
|
* Generated bundle index. Do not edit.
|
|
77546
78935
|
*/
|
|
77547
78936
|
|
|
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 };
|
|
78937
|
+
export { API_CONFIG_STORAGE_OPTIONS, API_URL, ASYNC_CONFIG_STORAGE, AllowedFileTypes, AnalyticsPresentationResolver, AnalyticsSchemaContractService, AnalyticsStatsRequestBuilderService, ApiConfigStorage, ApiEndpoint, BUILTIN_PAGE_LAYOUT_PRESETS, BUILTIN_PAGE_THEME_PRESETS, BUILTIN_SHELL_PRESETS, BUILTIN_WIDGET_SHELL_PRESETS, BulkOperationClientService, BulkSyncSession, BulkSyncStateService, CANONICAL_DECISION_INSPECTOR_LENSES, CANONICAL_DECISION_STAGES, COMPONENT_METADATA_REGISTRY_I18N_CONFIG, COMPONENT_METADATA_REGISTRY_I18N_NAMESPACE, CONFIG_STORAGE, CONNECTION_STORAGE, ComponentAuthoringManifestProjectionError, ComponentKeyService, ComponentMetadataRegistry, ComponentRuntimeProfileService, CompositionRuntimeFacade, CompositionValidatorService, ConsoleLoggerSink, CrudOperationResolutionService, DECISION_INSPECTOR_I18N_CONFIG, DECISION_INSPECTOR_I18N_NAMESPACE, DEFAULT_DYNAMIC_FORM_SCHEMA_CACHE_MAX_ENTRIES, DEFAULT_DYNAMIC_FORM_SCHEMA_CACHE_TTL_MS, DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP, DEFAULT_JSON_LOGIC_OPERATORS, DEFAULT_SCHEMA_REQUEST_TIMEOUT_MS, DEFAULT_TABLE_CONFIG, DOMAIN_CATALOG_COMPONENT_CONTEXT_PACK, DOMAIN_CATALOG_CONTEXT_HINT_SCHEMA_VERSION, DOMAIN_RULE_DOCUMENTATION_KEY, DYNAMIC_PAGE_AI_CAPABILITIES, DYNAMIC_PAGE_COMPONENT_CONTEXT_PACK, DYNAMIC_PAGE_CONFIG_EDITOR, DYNAMIC_PAGE_SHELL_EDITOR, DefaultLoadingRenderer, DeferredAsyncConfigStorage, DomainCatalogService, DomainKnowledgeService, DomainRuleService, DynamicFormService, DynamicWidgetLoaderDirective, DynamicWidgetPageComponent, EDITORIAL_ALLOWED_CONTENT_FORMATS, EDITORIAL_COMPLIANCE_PRESETS, EDITORIAL_EXTERNAL_LINK_REL, EDITORIAL_FORM_TEMPLATE_CATALOG, EDITORIAL_HTML_ENABLED, EDITORIAL_MARKDOWN_IMAGES_ENABLED, EDITORIAL_SOLUTION_CATALOG, EDITORIAL_SOLUTION_PRESETS, EDITORIAL_THEME_PRESETS, EDITORIAL_WIDGET_CONVENTION_INPUTS, EDITORIAL_WIDGET_TAG, EFFECTIVE_UI_LAYOUT_COMPOSITION_SCHEMA_VERSION, EMPLOYEE_ONBOARDING_EDITORIAL_SOLUTION, EMPLOYEE_ONBOARDING_EDITORIAL_TEMPLATE, EMPLOYEE_ONBOARDING_GUIDED_EDITORIAL_SOLUTION, EMPLOYEE_ONBOARDING_GUIDED_EDITORIAL_TEMPLATE, EVENT_REGISTRATION_EDITORIAL_SOLUTION, EVENT_REGISTRATION_EDITORIAL_TEMPLATE, EffectiveUiLayoutContractError, EffectiveUiLayoutHttpError, EffectiveUiLayoutService, EmptyStateCardComponent, EnterpriseRuntimeContextObsoleteError, EnterpriseRuntimeContextService, ErrorMessageService, FIELD_METADATA_CAPABILITIES, FIELD_SELECTOR_REGISTRY_BASE, FIELD_SELECTOR_REGISTRY_DISABLE_DEFAULTS, FIELD_SELECTOR_REGISTRY_OVERRIDES, FORM_HOOKS, FORM_HOOKS_PRESETS, FORM_HOOKS_WHITELIST, FORM_HOOK_RESOLVERS, FieldControlType, FieldDataType, FieldSelectorRegistry, FormHooksRegistry, GLOBAL_ACTION_CATALOG, GLOBAL_ACTION_HANDLERS, GLOBAL_ACTION_UI_SCHEMAS, GLOBAL_ANALYTICS_SERVICE, GLOBAL_API_CLIENT, GLOBAL_CONFIG, GLOBAL_DIALOG_SERVICE, GLOBAL_ROUTE_GUARD_RESOLVER, GLOBAL_SURFACE_SERVICE, GLOBAL_TOAST_SERVICE, GOVERNED_COLOR_PALETTE_OPTIONS, GOVERNED_PAGE_ADMITTED_WIDGET_IDS, GOVERNED_PAGE_DEFAULT_ALLOWED_ICONS, GenericCrudService, GlobalActionService, GlobalConfigService, GovernedColorPaletteService, INLINE_FILTER_ALIAS_TOKENS, INLINE_FILTER_CONTROL_TYPES, INLINE_FILTER_CONTROL_TYPE_SET, INLINE_FILTER_CONTROL_TYPE_VALUES, INLINE_FILTER_TOKEN_TO_BASE_CONTROL_TYPE, INLINE_FILTER_TOKEN_TO_CONTROL_TYPE, IconPickerService, IconPosition, IconSize, LOGGER_LEVEL_BY_ENV, LOGGER_LEVEL_PRIORITY, LoadingOrchestrator, LocalConnectionStorage, LocalStorageAsyncAdapter, LocalStorageCacheAdapter, LocalStorageConfigService, LoggerService, LoggerThrottleTracker, LoggerWarnOnceTracker, MemoryCacheAdapter, NestedPortCatalogService, NestedWidgetConfigAccessor, NumericFormat, OVERLAY_DECIDER_DEBUG, OVERLAY_DECISION_MATRIX, ObservabilityDashboardService, OverlayDeciderService, PRAXIS_ACTION_CONTROL_DEFAULTS, PRAXIS_ACTION_CONTROL_VARS, PRAXIS_BULK_PROPOSAL_BRIDGE, PRAXIS_COLLECTION_EXPORT_HTTP_OPTIONS, PRAXIS_COLLECTION_EXPORT_PROVIDER, PRAXIS_COLLECTION_SEARCH_DEFAULTS, PRAXIS_COLLECTION_SEARCH_VARS, PRAXIS_CONTEXT_DIMENSIONS, PRAXIS_CORPORATE_SENSITIVE_KEYS, PRAXIS_DECISION_INSPECTOR_CONFIG, PRAXIS_DECISION_INSPECTOR_SURFACE, PRAXIS_DEFAULT_EXPORT_SECURITY_POLICY, PRAXIS_DEFAULT_OBSERVABILITY_ALERT_RULES, PRAXIS_DYNAMIC_PAGE_COMPONENT_METADATA, PRAXIS_EFFECTIVE_UI_LAYOUT_OPTIONS, PRAXIS_ENTERPRISE_RUNTIME_CONTEXT_OPTIONS, PRAXIS_ENTERPRISE_RUNTIME_CONTEXT_READY, PRAXIS_EXPORT_FORMULA_PREFIXES, PRAXIS_EXPORT_SECURITY_POLICY, PRAXIS_FOOTER_LINKS_METADATA, PRAXIS_GLOBAL_ACTION_CATALOG, PRAXIS_GLOBAL_CONFIG_BOOTSTRAP_OPTIONS, PRAXIS_GLOBAL_CONFIG_BOOTSTRAP_READY, PRAXIS_GLOBAL_CONFIG_TENANT_RESOLVER, PRAXIS_HERO_BANNER_METADATA, PRAXIS_I18N_CONFIG, PRAXIS_I18N_TRANSLATOR, PRAXIS_JSON_LOGIC_OPERATORS, PRAXIS_LAYER_SCALE_DEFAULTS, PRAXIS_LAYER_SCALE_VARS, PRAXIS_LEGAL_NOTICE_METADATA, PRAXIS_LOADING_CTX, PRAXIS_LOADING_RENDERER, PRAXIS_LOGGER_CONFIG, PRAXIS_LOGGER_SINKS, PRAXIS_OBSERVABILITY_DASHBOARD_OPTIONS, PRAXIS_OPERATIONAL_ASSISTANT_LAUNCHER, PRAXIS_QUERY_FILTER_EXPRESSION_SCHEMA_VERSION, PRAXIS_QUICK_VIEW_BODY_RENDERER, PRAXIS_QUICK_VIEW_PRESENTER, PRAXIS_RELATED_RESOURCE_OUTLET_AUTHORING_MANIFEST, PRAXIS_RELATED_RESOURCE_OUTLET_COMPONENT_METADATA, PRAXIS_RELATED_RESOURCE_OUTLET_PORTS, PRAXIS_RICH_TEXT_BLOCK_METADATA, PRAXIS_RUNTIME_FORM_VALUE_PROPOSAL_SCHEMA_VERSION, PRAXIS_RUNTIME_FORM_VALUE_RECEIPT_SCHEMA_VERSION, PRAXIS_SESSION_TRANSPORT_OPTIONS, PRAXIS_TABLE_DETAIL_INLINE_NODE_RESOLVERS, PRAXIS_TABLE_DETAIL_INLINE_RENDERERS, PRAXIS_TABLE_DETAIL_RESOURCE_RESOLVER, PRAXIS_TELEMETRY_TRANSPORT, PRAXIS_TENANT_REALM, PRAXIS_TENANT_REALM_HEADER, PRAXIS_THEME_OPTIONS, PRAXIS_THEME_SURFACE_DEFAULTS, PRAXIS_THEME_SURFACE_VARS, PRAXIS_USER_CONTEXT_SUMMARY_METADATA, PRAXIS_WORKSPACE_THEME_IDS, PRIVACY_CONSENT_EDITORIAL_SOLUTION, PRIVACY_CONSENT_EDITORIAL_TEMPLATE, PraxisAppShellComponent, PraxisBulkClientService, PraxisCacheInvalidatorService, PraxisCollectionExportService, PraxisContextFilterProjectorService, PraxisCore, PraxisCustomizationModeService, PraxisDecisionInspectorService, PraxisFooterLinksComponent, PraxisGlobalErrorHandler, PraxisHeroBannerComponent, PraxisHttpCollectionExportProvider, PraxisI18nService, PraxisIconButtonComponent, PraxisIconDirective, PraxisIconPickerComponent, PraxisJsonLogicError, PraxisJsonLogicService, PraxisKeepAliveTabDirective, PraxisLayerScaleStyleService, PraxisLegalNoticeComponent, PraxisLoadingInterceptor, PraxisMicroTooltipOverlayService, PraxisOperationalAssistantLaunchService, PraxisQuickViewTriggerDirective, PraxisRelatedResourceOutletComponent, PraxisRelatedResourceOutletConfigEditorComponent, PraxisResourceIdentityComponent, PraxisRichTextBlockComponent, PraxisRuntimeComponentObservationRegistryService, PraxisRuntimeFormValueSessionJournal, PraxisSessionTransportService, PraxisSurfaceHostComponent, PraxisThemeService, PraxisUserContextSummaryComponent, PraxisWidgetEventBus, PraxisWorkspaceQueryContextService, QUICK_VIEW_EMPLOYEE_BINDING_FIXTURE, QUICK_VIEW_EMPLOYEE_RECORD_FIXTURE, QUICK_VIEW_EMPLOYEE_SCHEMA_FIXTURE, QUICK_VIEW_EMPLOYEE_SURFACES_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_BINDING_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_RECORD_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_SCHEMA_FIXTURE, QUICK_VIEW_SERVICE_COMPONENT_SURFACES_FIXTURE, RESOURCE_DISCOVERY_I18N_CONFIG, RESOURCE_DISCOVERY_I18N_NAMESPACE, RULE_PROPERTY_SCHEMA, RelatedResourceSurfaceResolverService, RemoteConfigStorage, ResourceActionOpenAdapterService, ResourceDiscoveryService, ResourceQuickConnectComponent, ResourceQuickViewService, ResourceRecordOpenError, ResourceRecordOpenService, ResourceSurfaceOpenAdapterService, SCHEMA_METADATA_CLIENT_OPTIONS, SCHEMA_VIEWER_CONTEXT, SETTINGS_EDITOR_SECTIONS_HOSTED, SETTINGS_PANEL_BRIDGE, SETTINGS_PANEL_DATA, STEPPER_CONFIG_EDITOR, SURFACE_DRAWER_BRIDGE, SURFACE_DRAWER_CONTENT_DATA, SURFACE_DRAWER_REF, SURFACE_NAVIGATION_I18N_CONFIG, SURFACE_NAVIGATION_I18N_NAMESPACE, SURFACE_OPEN_I18N_CONFIG, SURFACE_OPEN_I18N_NAMESPACE, SURFACE_OPEN_PRESETS, SafeExpressionEvaluator, SchemaMetadataClient, SchemaNormalizerService, SchemaViewerComponent, SettingsSectionTabsComponent, SurfaceBindingRuntimeService, SurfaceNavigationError, SurfaceOpenActionEditorComponent, SurfaceOpenMaterializerService, SurfaceOutletRegistryService, TABLE_CONFIG_EDITOR, TableConfigService, TelemetryLoggerSink, TelemetryService, UiLayoutLifecycleContractError, UiLayoutLifecycleHttpError, UiLayoutLifecycleService, ValidationPattern, WidgetPageCompositionFactory, WidgetPageDataSourceRuntimeService, WidgetPageStateRuntimeService, WidgetShellComponent, applyDeclarativeValuePipe, applyLocalCustomizations$2 as applyLocalCustomizations, applyLocalCustomizations$1 as applyLocalFormCustomizations, applyRuntimeFormValueProposal, areRuntimeValuesEqual, assertPraxisCollectionExportArtifact, assertPraxisRuntimeComponentObservationSerializable, attachAnalyticsSuppressionMetadata, buildAngularValidators, buildApiUrl, buildBaseColumnFromDef, buildBaseFormField, buildFormConfigFromEditorialTemplate, buildGovernedPageTarget, buildHeaders, buildPageKey, buildPraxisActionControlCss, buildPraxisCollectionSearchCss, buildPraxisEffectDistinctKey, buildPraxisLayerScaleCss, buildPraxisTenantRealmHeaders, buildPraxisThemeSurfaceCss, buildPublishedPageIdentity, buildRulesStudioDeepLink, buildSchemaId, buildSchemaIdStorageKeySegment, buildValidatorsFromValidatorOptions, calibrateFieldMetadataFromSemantics, canOrganizeFormLayoutBySemantics, cancelIfCpfInvalidHook, canonicalJsonSha256, canonicalJsonStringify, clampRange, classifyEntityLookupResult, cloneBoundedUiLayoutJsonDocument, clonePraxisRuntimeComponentObservation, cloneRuntimeValue, cloneTableConfig, cloneUiLayoutJsonDocument, cnpjAlphaValidator, collapseWhitespace, composeHeadersWithVersion, computePraxisStackedBarSegmentWidthPct, conditionalAsyncValidator, containsEphemeralQuickViewRuntimeValue, convertFormLayoutToConfig, copyPageAuthoringDocument, createCorporateLoggerConfig, createCorporateObservabilityOptions, createCpfCnpjValidator, createDefaultFormConfig, createDefaultTableConfig, createDynamicRecord, createEmptyFormConfig, createEmptyNavigationGroupsAuthoringDocument, createEmptyRichContentDocument, createFieldLayoutItem, createPersistedPage, customAsyncValidatorFn, customValidatorFn, debounceAsyncValidator, decodeNavigationGroupsAuthoringDocument, decodePageAuthoringDocument, deepMerge, derivePageChildRuntimeId, domainKnowledgeTimelineToRichContentDocument, domainRuleTimelineToRichContentDocument, encodeNavigationGroupsAuthoringDocument, encodePageAuthoringDocument, enrichGovernanceItemsWithFieldSchemas, enrichRuleSetsWithFieldSchemas, ensureIds, ensureNoConflictsHookFactory, ensurePageIds, escapePraxisExportCell, evaluateFieldAccess, evaluateGovernanceItemsFieldAccess, extractAnalyticsSuppressionMetadata, extractDomainCatalogRuleCatalog, extractDomainRuleDocumentation, extractNormalizedError, extractRecordId, extractRuleViolationDiagnostics, fetchWithETag, fileTypeValidator, fillUndefined, findBuiltinWidgetShellPreset, formIdentityIssues, formatPraxisStackedBarPercentage, formatPraxisWaterfallSignedValue, generateBulkIdempotencyKey, generateId, getDefaultFormHints, getEditorialCompliancePresetById, getEditorialFormTemplateById, getEditorialFormTemplateCatalog, getEditorialSolutionById, getEditorialSolutionCatalog, getEditorialSolutionPresetById, getEditorialThemePresetById, getEssentialConfig, getFieldMetadataCapabilities, getFormColumnFieldNames, getFormLayoutFieldNames, getGlobalActionCatalog, getGlobalActionPayloadActualType, getGlobalActionPayloadTypeIssue, getGlobalActionProviderEvidence, getGlobalActionUiSchema, getMissingGlobalActionPayloadKeys, getPraxisMicroToneGradientStops, getPraxisStackedBarPaintStyle, getPraxisTableCellVisualizationConstraint, getPraxisTableCellVisualizationGuidance, getReferencedFieldMetadata, getRequiredGlobalActionPayloadKeys, getTextTransformer, getWidgetShellActionIdError, hasMeaningfulGlobalActionPayloadValue, hasPraxisCollectionExportArtifact, hasSemanticFieldCalibrationDiff, humanizeCatalogFieldName, inferDomainSemanticHexColor, inferDomainSemanticIcon, inferDomainSemanticTone, inferSemanticFieldControlType, inferSemanticFieldGroup, inferSemanticFieldWidth, instanceKeyFor, interpolatePraxisTranslation, isAllowedEditorialContentFormat, isAllowedEditorialHref, isBulkExecutionTerminal, isCanonicalDecisionStage, isCssTextTransform, isDecisionInspectorLensId, isDomainRuleSnapshotProblemResponse, isDynamicDataRecord, isEditorialComponentMeta, isEmptyRuntimeFormFieldValue, isEntityLookupMultiplePayloadMode, isEntityLookupPayloadMode, isEntityLookupPayloadModeCompatible, isEntityLookupResultSelectable, isEntityLookupSinglePayloadMode, isFormLayoutItem, isGlobalActionProviderOperational, isGlobalActionRef, isGovernedPageUuid, isInlineFilterControlType, isLookupDialogSize, isLookupFilterFieldType, isLookupFilterOperator, isMaskedOrRedactedRuntimeValue, isPraxisI18nMessageDescriptor, isPraxisPresentationVisualizationTableSafe, isPraxisRuntimeGlobalActionEffect, isPraxisWorkspaceThemeId, isProgrammaticDateRangePreset, isRangeValidForFilter, isRequiredGlobalActionParamPayloadMissing, isRequiredGlobalActionPayloadMissing, isResourceQuickViewAnchorValid, isSafeLegalBasisUrl, isStaticDateRangePreset, isSurfaceNavigationError, isTableConfigV2, isUnresolvedTemplateToken, isValidFormConfig, isValidTableConfig, legacyCnpjValidator, legacyCpfValidator, logOnErrorHook, mapCatalogFieldsToMetadata, mapFieldDefinitionToMetadata, mapFieldDefinitionsToMetadata, markGlobalActionProviderOperational, matchFieldValidator, materializeFormLayoutFromMetadata, materializeGovernedPagePreview, materializeGovernedPaletteColors, materializeGovernedPaletteEntries, materializeResourceIdentity, maxFileSizeValidator, mergeDomainRuleDocumentation, mergeFieldMetadata, mergePraxisI18nConfigs, mergeTableConfigs, migrateFormLayoutRule, migrateLegacyCompositionLink, migrateLegacyCompositionLinks, minWordsValidator, nestedPortPathIdentity, normalizeCardMediaAspectRatio, normalizeColumnRendererQuickView, normalizeControlTypeKey, normalizeControlTypeToken, normalizeEditorialLink, normalizeEnd, normalizeFieldAccessMetadata, normalizeFieldConstraints, normalizeFieldPresentation, normalizeFormConfig, normalizeFormLayoutItems, normalizeFormMetadata, normalizeGlobalActionRef$1 as normalizeGlobalActionRef, normalizeLayoutPolicy, normalizeLookupFilterRequest, normalizePath, normalizePraxisDataQueryContext, normalizePraxisEffectPolicy, normalizePraxisHexColor, normalizePraxisIconLigature, normalizePraxisPresentationVisualization, normalizePraxisQueryFilterExpression, normalizePraxisQueryFilterNode, normalizeQuickFilterCriteria, normalizeQuickFilterExpression, normalizeQuickFilterTone, normalizeReactiveDeterminations, normalizeResourceAvailabilityReasonCode, normalizeResourceIdentityContract, normalizeResourceQuickFilterItem, normalizeResourceQuickFilterList, normalizeResourceQuickViewBinding, normalizeResourceRecordOpenReference, normalizeResourceScopeId, normalizeRuleDocumentation, normalizeRuleLegalBasisList, normalizeScalarArrayValue, normalizeStart, normalizeStringMap, normalizeSurfaceOperationContext, normalizeUnknownError, normalizeWidgetEventPath, notifySuccessHook, organizeFormLayoutBySemantics, parseJsonResponseOrEmpty, praxisLoadingInterceptorFn, praxisSessionCredentialsInterceptor, prefillFromContextHook, prepareCanvasArrangement, previewRuntimeFormValueProposal, projectComponentAuthoringManifest, projectGroupedCommandPartialRows, provideDefaultFormHooks, provideFieldSelectorRegistryBase, provideFieldSelectorRegistryOverride, provideFieldSelectorRegistryRuntime, provideFormHookPresets, provideFormHooks, provideGlobalActionCatalog, provideGlobalActionHandler, provideGlobalConfig, provideGlobalConfigReady, provideGlobalConfigSeed, provideGlobalConfigTenant, provideHookResolvers, provideHookWhitelist, provideOverlayDecisionMatrix, providePraxisAnalyticsGlobalActions, providePraxisCollectionExportProvider, providePraxisDynamicPageMetadata, providePraxisEnterpriseRuntimeContext, providePraxisFooterLinksMetadata, providePraxisGlobalActionCatalog, providePraxisGlobalActions, providePraxisGlobalConfigBootstrap, providePraxisHeroBannerMetadata, providePraxisHttpCollectionExportProvider, providePraxisHttpLoading, providePraxisI18n, providePraxisI18nConfig, providePraxisI18nTranslator, providePraxisIconDefaults, providePraxisJsonLogicOperator, providePraxisJsonLogicOperatorOverride, providePraxisLegalNoticeMetadata, providePraxisLoadingDefaults, providePraxisLogging, providePraxisRelatedResourceOutletMetadata, providePraxisRichTextBlockMetadata, providePraxisSessionTransport, providePraxisTelemetry, providePraxisTenantRealm, providePraxisTheme, providePraxisToastGlobalActions, providePraxisUserContextSummaryMetadata, provideRemoteGlobalConfig, readAnalyticsSuppressionMetadata, readPraxisExportValue, readStrongResourceEtag, reconcileFieldQuickViewBinding, reconcileFilterConfig, reconcileFormConfig, reconcileTableConfig, registerPraxisRuntimeComponentObservation, removeDiacritics, renderPraxisPresentationVisualizationHtml, reportTelemetryHookFactory, requiredCheckedValidator, requiredPresenceValidator, resolveBuiltinPresets, resolveBuiltinWidgetShellAppearance, resolveColumnTypeFromFieldDefinition, resolveControlTypeAlias, resolveDataField, resolveDateRangeShortcutPreset, resolveDateRangeShortcutPresets, resolveDefaultValuePresentationFormat, resolveEntityLookupPayloadMode, resolveFieldPresentation, resolveFieldQuickViewBinding, resolveGroupedCommandPartialRowSpans, resolveHidden, resolveHumanFieldLabel, resolveInlineFilterControlType, resolveInlineFilterControlTypeToBaseControlType, resolveLoggerConfig, resolveObservabilityOptions, resolveOffset, resolveOrder, resolvePraxisCollectionExportItems, resolvePraxisExportFields, resolvePraxisExportScope, resolvePraxisFilterCriteria, resolvePraxisI18nDocument, resolvePraxisMicroVisualizationTone, resolvePraxisMicroWaterfallSteps, resolvePraxisStackedBarAriaLabel, resolvePraxisStackedBarSegments, resolvePraxisStackedBarTotal, resolvePraxisTenantRealmFromLocation, resolveQuickViewAnchorKey, resolveResourceAvailabilityReasonKey, resolveResourceIdentityContract, resolveResourceQuickViewTarget, resolveSpan, resolveTextMaskFormat, resolveTextMaskFormatFromFieldDefinition, resolveValuePresentation, resolveValuePresentationLocale, resolveWidgetPageLayoutPreset, samePageSourceReference, scopeKeyByTenantRealm, serializeEntityLookupValueForPayload, serializeOptionSourceFilterRequest, serializePraxisCollectionToCsv, serializePraxisCollectionToExcel, serializePraxisCollectionToJson, slugify, staticDateRangePresetToPreset, stripDraftClearedValues, stripMasksHook, supportsConfigDocuments, supportsImplicitValuePresentation, syncWithServerMetadata, synthesizeScopeBarQuickFilterItems, textSha256, toCamel, toCapitalize, toKebab, toPascal, toSentenceCase, toSnake, toTitleCase, translateDecisionInspector, translateResourceAvailabilityReason, translateResourceDiscoveryText, translateSurfaceNavigationRejected, translateSurfaceOpenFailed, translateUnavailableWorkflowMessage, trim, uiLayoutJsonIdentity, undoRuntimeFormValueApply, uniqueAsyncValidator, upsertNavigationGroupEntry, upsertPageNavigationBinding, urlValidator, validateCanvasArrangement, validateGlobalActionRef, validateGlobalActionRefs, validatePageAuthoringDocument, validatePageSourceReference, validateResourceQuickViewBinding, validateRuntimeFormValueTargetIdentity, validateRuntimeNavigationMenuNodes, withFormConfigSections, withMessage, withPraxisHttpLoading };
|