@praxisui/visual-builder 10.0.0-rc.75 → 10.0.0-rc.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-
|
|
3
|
+
"generatedAt": "2026-12-01T12:30:17.893Z",
|
|
4
4
|
"packageName": "@praxisui/visual-builder",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.77",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -28,7 +28,7 @@ import * as i9 from '@angular/material/tooltip';
|
|
|
28
28
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
29
29
|
import { BehaviorSubject, Subject, from, takeUntil as takeUntil$1, interval, Observable, of, throwError, combineLatest } from 'rxjs';
|
|
30
30
|
import * as i1$2 from '@praxisui/core';
|
|
31
|
-
import { RULE_PROPERTY_SCHEMA, PraxisIconButtonComponent, providePraxisI18n, PraxisI18nService, ComponentMetadataRegistry, PraxisIconDirective, translateDecisionInspector, CANONICAL_DECISION_STAGES, SURFACE_DRAWER_CONTENT_DATA, PraxisDecisionInspectorService, normalizeRuleDocumentation, CANONICAL_DECISION_INSPECTOR_LENSES, isSafeLegalBasisUrl, resolveHumanFieldLabel, normalizeRuleLegalBasisList, normalizeStringMap, buildRulesStudioDeepLink, areParameterValuesEqual, isDecisionInspectorLensId, DECISION_INSPECTOR_I18N_CONFIG, PRAXIS_I18N_CONFIG, PRAXIS_DECISION_INSPECTOR_SURFACE, PRAXIS_DECISION_INSPECTOR_CONFIG } from '@praxisui/core';
|
|
31
|
+
import { RULE_PROPERTY_SCHEMA, PraxisIconButtonComponent, providePraxisI18n, PraxisI18nService, ComponentMetadataRegistry, PraxisIconDirective, translateDecisionInspector, CANONICAL_DECISION_STAGES, SURFACE_DRAWER_CONTENT_DATA, PraxisDecisionInspectorService, normalizeRuleDocumentation, CANONICAL_DECISION_INSPECTOR_LENSES, formatResourceAvailabilityReasonForDisplay, isSafeLegalBasisUrl, resolveHumanFieldLabel, normalizeRuleLegalBasisList, normalizeStringMap, buildRulesStudioDeepLink, areParameterValuesEqual, isDecisionInspectorLensId, DECISION_INSPECTOR_I18N_CONFIG, PRAXIS_I18N_CONFIG, PRAXIS_DECISION_INSPECTOR_SURFACE, PRAXIS_DECISION_INSPECTOR_CONFIG } from '@praxisui/core';
|
|
32
32
|
import * as i3 from '@praxisui/ai';
|
|
33
33
|
import { AiRuleWizardDialogComponent } from '@praxisui/ai';
|
|
34
34
|
import { map, takeUntil, debounceTime, distinctUntilChanged, switchMap, catchError, startWith } from 'rxjs/operators';
|
|
@@ -24102,11 +24102,22 @@ class PraxisDecisionInspectorSurfaceComponent {
|
|
|
24102
24102
|
(violation.code && binding.reasonCode && violation.code === binding.reasonCode));
|
|
24103
24103
|
}
|
|
24104
24104
|
hasActionExecutionBadges(action) {
|
|
24105
|
-
return Boolean(
|
|
24106
|
-
action.execution?.preconditions?.
|
|
24105
|
+
return Boolean((this.isTechnicalMode() &&
|
|
24106
|
+
(action.execution?.preconditions?.resourceVersion === 'REQUIRED' ||
|
|
24107
|
+
action.execution?.preconditions?.idempotencyKey === 'REQUIRED')) ||
|
|
24107
24108
|
action.execution?.interaction?.confirmationRequired ||
|
|
24108
24109
|
action.execution?.bulk?.mode);
|
|
24109
24110
|
}
|
|
24111
|
+
formatAvailabilityReason(reason) {
|
|
24112
|
+
const trimmed = reason?.trim();
|
|
24113
|
+
if (!trimmed) {
|
|
24114
|
+
return null;
|
|
24115
|
+
}
|
|
24116
|
+
if (this.isTechnicalMode()) {
|
|
24117
|
+
return trimmed;
|
|
24118
|
+
}
|
|
24119
|
+
return formatResourceAvailabilityReasonForDisplay(this.i18n, trimmed);
|
|
24120
|
+
}
|
|
24110
24121
|
isSensitiveClassification(classification) {
|
|
24111
24122
|
return SENSITIVE_CLASSIFICATIONS.has(classification.trim().toUpperCase());
|
|
24112
24123
|
}
|
|
@@ -25524,8 +25535,8 @@ class PraxisDecisionInspectorSurfaceComponent {
|
|
|
25524
25535
|
</span>
|
|
25525
25536
|
<span class="praxis-decision-inspector__op-label">{{ op.label }}</span>
|
|
25526
25537
|
</div>
|
|
25527
|
-
@if (op.reason) {
|
|
25528
|
-
<span class="praxis-decision-inspector__op-reason">{{
|
|
25538
|
+
@if (formatAvailabilityReason(op.reason); as opReason) {
|
|
25539
|
+
<span class="praxis-decision-inspector__op-reason">{{ opReason }}</span>
|
|
25529
25540
|
}
|
|
25530
25541
|
</div>
|
|
25531
25542
|
}
|
|
@@ -25540,6 +25551,9 @@ class PraxisDecisionInspectorSurfaceComponent {
|
|
|
25540
25551
|
>
|
|
25541
25552
|
<span class="praxis-decision-inspector__eyebrow">
|
|
25542
25553
|
{{ tx('capabilities.actionsHeading') }}
|
|
25554
|
+
@if (isTechnicalMode()) {
|
|
25555
|
+
<code class="praxis-decision-inspector__inline-code">@WorkflowAction</code>
|
|
25556
|
+
}
|
|
25543
25557
|
</span>
|
|
25544
25558
|
|
|
25545
25559
|
@if (workflowActions().length === 0) {
|
|
@@ -25595,21 +25609,21 @@ class PraxisDecisionInspectorSurfaceComponent {
|
|
|
25595
25609
|
</p>
|
|
25596
25610
|
}
|
|
25597
25611
|
|
|
25598
|
-
@if (action.availability.reason) {
|
|
25612
|
+
@if (formatAvailabilityReason(action.availability.reason); as actionReason) {
|
|
25599
25613
|
<p class="praxis-decision-inspector__reason-callout">
|
|
25600
25614
|
<strong>{{ tx('capabilities.blockedReasonLabel') }}:</strong>
|
|
25601
|
-
{{
|
|
25615
|
+
{{ actionReason }}
|
|
25602
25616
|
</p>
|
|
25603
25617
|
}
|
|
25604
25618
|
|
|
25605
25619
|
@if (hasActionExecutionBadges(action)) {
|
|
25606
25620
|
<div class="praxis-decision-inspector__fact-chips">
|
|
25607
|
-
@if (action.execution?.preconditions?.resourceVersion === 'REQUIRED') {
|
|
25621
|
+
@if (isTechnicalMode() && action.execution?.preconditions?.resourceVersion === 'REQUIRED') {
|
|
25608
25622
|
<span class="praxis-decision-inspector__chip is-mono">
|
|
25609
25623
|
{{ tx('capabilities.preconditionIfMatch') }}
|
|
25610
25624
|
</span>
|
|
25611
25625
|
}
|
|
25612
|
-
@if (action.execution?.preconditions?.idempotencyKey === 'REQUIRED') {
|
|
25626
|
+
@if (isTechnicalMode() && action.execution?.preconditions?.idempotencyKey === 'REQUIRED') {
|
|
25613
25627
|
<span class="praxis-decision-inspector__chip is-mono">
|
|
25614
25628
|
{{ tx('capabilities.preconditionIdempotency') }}
|
|
25615
25629
|
</span>
|
|
@@ -25643,6 +25657,9 @@ class PraxisDecisionInspectorSurfaceComponent {
|
|
|
25643
25657
|
>
|
|
25644
25658
|
<span class="praxis-decision-inspector__eyebrow">
|
|
25645
25659
|
{{ tx('capabilities.surfacesHeading') }}
|
|
25660
|
+
@if (isTechnicalMode()) {
|
|
25661
|
+
<code class="praxis-decision-inspector__inline-code">@UiSurface</code>
|
|
25662
|
+
}
|
|
25646
25663
|
</span>
|
|
25647
25664
|
|
|
25648
25665
|
@if (semanticSurfaces().length === 0) {
|
|
@@ -25691,10 +25708,10 @@ class PraxisDecisionInspectorSurfaceComponent {
|
|
|
25691
25708
|
</p>
|
|
25692
25709
|
}
|
|
25693
25710
|
|
|
25694
|
-
@if (surface.availability.reason) {
|
|
25711
|
+
@if (formatAvailabilityReason(surface.availability.reason); as surfaceReason) {
|
|
25695
25712
|
<p class="praxis-decision-inspector__reason-callout">
|
|
25696
25713
|
<strong>{{ tx('capabilities.blockedReasonLabel') }}:</strong>
|
|
25697
|
-
{{
|
|
25714
|
+
{{ surfaceReason }}
|
|
25698
25715
|
</p>
|
|
25699
25716
|
}
|
|
25700
25717
|
|
|
@@ -25871,9 +25888,9 @@ class PraxisDecisionInspectorSurfaceComponent {
|
|
|
25871
25888
|
}
|
|
25872
25889
|
</div>
|
|
25873
25890
|
|
|
25874
|
-
@if (gov.fieldAccess.reason) {
|
|
25891
|
+
@if (formatAvailabilityReason(gov.fieldAccess.reason); as fieldReason) {
|
|
25875
25892
|
<p class="praxis-decision-inspector__reason-callout">
|
|
25876
|
-
{{
|
|
25893
|
+
{{ fieldReason }}
|
|
25877
25894
|
</p>
|
|
25878
25895
|
}
|
|
25879
25896
|
}
|
|
@@ -26716,8 +26733,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
26716
26733
|
</span>
|
|
26717
26734
|
<span class="praxis-decision-inspector__op-label">{{ op.label }}</span>
|
|
26718
26735
|
</div>
|
|
26719
|
-
@if (op.reason) {
|
|
26720
|
-
<span class="praxis-decision-inspector__op-reason">{{
|
|
26736
|
+
@if (formatAvailabilityReason(op.reason); as opReason) {
|
|
26737
|
+
<span class="praxis-decision-inspector__op-reason">{{ opReason }}</span>
|
|
26721
26738
|
}
|
|
26722
26739
|
</div>
|
|
26723
26740
|
}
|
|
@@ -26732,6 +26749,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
26732
26749
|
>
|
|
26733
26750
|
<span class="praxis-decision-inspector__eyebrow">
|
|
26734
26751
|
{{ tx('capabilities.actionsHeading') }}
|
|
26752
|
+
@if (isTechnicalMode()) {
|
|
26753
|
+
<code class="praxis-decision-inspector__inline-code">@WorkflowAction</code>
|
|
26754
|
+
}
|
|
26735
26755
|
</span>
|
|
26736
26756
|
|
|
26737
26757
|
@if (workflowActions().length === 0) {
|
|
@@ -26787,21 +26807,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
26787
26807
|
</p>
|
|
26788
26808
|
}
|
|
26789
26809
|
|
|
26790
|
-
@if (action.availability.reason) {
|
|
26810
|
+
@if (formatAvailabilityReason(action.availability.reason); as actionReason) {
|
|
26791
26811
|
<p class="praxis-decision-inspector__reason-callout">
|
|
26792
26812
|
<strong>{{ tx('capabilities.blockedReasonLabel') }}:</strong>
|
|
26793
|
-
{{
|
|
26813
|
+
{{ actionReason }}
|
|
26794
26814
|
</p>
|
|
26795
26815
|
}
|
|
26796
26816
|
|
|
26797
26817
|
@if (hasActionExecutionBadges(action)) {
|
|
26798
26818
|
<div class="praxis-decision-inspector__fact-chips">
|
|
26799
|
-
@if (action.execution?.preconditions?.resourceVersion === 'REQUIRED') {
|
|
26819
|
+
@if (isTechnicalMode() && action.execution?.preconditions?.resourceVersion === 'REQUIRED') {
|
|
26800
26820
|
<span class="praxis-decision-inspector__chip is-mono">
|
|
26801
26821
|
{{ tx('capabilities.preconditionIfMatch') }}
|
|
26802
26822
|
</span>
|
|
26803
26823
|
}
|
|
26804
|
-
@if (action.execution?.preconditions?.idempotencyKey === 'REQUIRED') {
|
|
26824
|
+
@if (isTechnicalMode() && action.execution?.preconditions?.idempotencyKey === 'REQUIRED') {
|
|
26805
26825
|
<span class="praxis-decision-inspector__chip is-mono">
|
|
26806
26826
|
{{ tx('capabilities.preconditionIdempotency') }}
|
|
26807
26827
|
</span>
|
|
@@ -26835,6 +26855,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
26835
26855
|
>
|
|
26836
26856
|
<span class="praxis-decision-inspector__eyebrow">
|
|
26837
26857
|
{{ tx('capabilities.surfacesHeading') }}
|
|
26858
|
+
@if (isTechnicalMode()) {
|
|
26859
|
+
<code class="praxis-decision-inspector__inline-code">@UiSurface</code>
|
|
26860
|
+
}
|
|
26838
26861
|
</span>
|
|
26839
26862
|
|
|
26840
26863
|
@if (semanticSurfaces().length === 0) {
|
|
@@ -26883,10 +26906,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
26883
26906
|
</p>
|
|
26884
26907
|
}
|
|
26885
26908
|
|
|
26886
|
-
@if (surface.availability.reason) {
|
|
26909
|
+
@if (formatAvailabilityReason(surface.availability.reason); as surfaceReason) {
|
|
26887
26910
|
<p class="praxis-decision-inspector__reason-callout">
|
|
26888
26911
|
<strong>{{ tx('capabilities.blockedReasonLabel') }}:</strong>
|
|
26889
|
-
{{
|
|
26912
|
+
{{ surfaceReason }}
|
|
26890
26913
|
</p>
|
|
26891
26914
|
}
|
|
26892
26915
|
|
|
@@ -27063,9 +27086,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
27063
27086
|
}
|
|
27064
27087
|
</div>
|
|
27065
27088
|
|
|
27066
|
-
@if (gov.fieldAccess.reason) {
|
|
27089
|
+
@if (formatAvailabilityReason(gov.fieldAccess.reason); as fieldReason) {
|
|
27067
27090
|
<p class="praxis-decision-inspector__reason-callout">
|
|
27068
|
-
{{
|
|
27091
|
+
{{ fieldReason }}
|
|
27069
27092
|
</p>
|
|
27070
27093
|
}
|
|
27071
27094
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/visual-builder",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.77",
|
|
4
4
|
"description": "Visual rule and expression builder for Praxis UI with JSON Logic authoring, validation and context variables.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"@angular/cdk": "^21.0.0",
|
|
9
9
|
"@angular/material": "^21.0.0",
|
|
10
10
|
"@angular/forms": "^21.0.0",
|
|
11
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
12
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
11
|
+
"@praxisui/ai": "^10.0.0-rc.77",
|
|
12
|
+
"@praxisui/core": "^10.0.0-rc.77",
|
|
13
13
|
"rxjs": "~7.8.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
@@ -3230,6 +3230,7 @@ declare class PraxisDecisionInspectorSurfaceComponent implements OnInit {
|
|
|
3230
3230
|
onRuleSetTabKeydown(event: KeyboardEvent, currentIndex: number): void;
|
|
3231
3231
|
isBindingViolated(binding: DomainCatalogRuleBindingItem): boolean;
|
|
3232
3232
|
hasActionExecutionBadges(action: ResourceActionCatalogItem): boolean;
|
|
3233
|
+
formatAvailabilityReason(reason: string | null | undefined): string | null;
|
|
3233
3234
|
isSensitiveClassification(classification: string): boolean;
|
|
3234
3235
|
isSafeLegalUrl(url: string | null | undefined): boolean;
|
|
3235
3236
|
formatLegalBasisMeta(basis: RuleLegalBasisDescriptor): string;
|