@praxisui/visual-builder 10.0.0-rc.78 → 10.0.0-rc.79

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-12-01T16:20:00.164Z",
3
+ "generatedAt": "2026-12-01T17:40:16.713Z",
4
4
  "packageName": "@praxisui/visual-builder",
5
- "packageVersion": "10.0.0-rc.78",
5
+ "packageVersion": "10.0.0-rc.79",
6
6
  "sourceRegistry": "praxis-component-registry-ingestion",
7
7
  "sourceRegistryVersion": "1.0.0",
8
8
  "componentCount": 1,
@@ -23553,6 +23553,12 @@ const EN_US_PARAMETER_UNITS = {
23553
23553
  competencias: 'competencies',
23554
23554
  folhas: 'sheets',
23555
23555
  };
23556
+ const KNOWN_GOVERNANCE_BUSINESS_LABELS = {
23557
+ totalstargetcount: { pt: 'Total de registros selecionados', en: 'Selected target count' },
23558
+ cargonomeprevisto: { pt: 'Cargo previsto', en: 'Expected position' },
23559
+ saldovagasprevisto: { pt: 'Saldo de vagas previsto', en: 'Expected vacancy balance' },
23560
+ cargo: { pt: 'Cargo', en: 'Position' },
23561
+ };
23556
23562
  function localizeParameterUnit(unit, isEn) {
23557
23563
  const normalized = unit.trim().toLowerCase();
23558
23564
  const table = isEn ? EN_US_PARAMETER_UNITS : PT_BR_PARAMETER_UNITS;
@@ -24275,8 +24281,47 @@ class PraxisDecisionInspectorSurfaceComponent {
24275
24281
  ? (this.isTechnicalMode() ? category : humanizeEnumCode(category))
24276
24282
  : translated;
24277
24283
  }
24284
+ formatGovernanceItemLabel(gov) {
24285
+ if (this.isTechnicalMode()) {
24286
+ return gov.label;
24287
+ }
24288
+ const catalogLabels = this.catalog()?.fieldLabels;
24289
+ const rawLabel = cleanText(gov.label) ?? cleanText(gov.fieldName) ?? gov.nodeKey;
24290
+ const rawField = cleanText(gov.fieldName);
24291
+ const normalizedCandidates = [rawField, rawLabel]
24292
+ .filter((value) => Boolean(value))
24293
+ .map((value) => value.replace(/^\/+/, '').replace(/\//g, '.'));
24294
+ for (const candidate of normalizedCandidates) {
24295
+ const fromCatalog = resolveHumanFieldLabel(candidate, undefined, undefined, catalogLabels);
24296
+ if (fromCatalog) {
24297
+ return fromCatalog;
24298
+ }
24299
+ }
24300
+ const isEn = this.isEnglishLocale();
24301
+ for (const candidate of normalizedCandidates) {
24302
+ const normalizedKey = candidate.toLowerCase().replace(/[^a-z0-9]/g, '');
24303
+ const systemLabel = KNOWN_GOVERNANCE_BUSINESS_LABELS[normalizedKey];
24304
+ if (systemLabel) {
24305
+ return isEn ? systemLabel.en : systemLabel.pt;
24306
+ }
24307
+ }
24308
+ if (rawLabel.startsWith('/')) {
24309
+ return humanizeFieldPath(rawLabel.replace(/^\/+/, '').replace(/\//g, '.'));
24310
+ }
24311
+ if (/^[a-z]+[A-Z][A-Za-z0-9]*$/.test(rawLabel) ||
24312
+ /^[A-Z0-9_]{3,}$/.test(rawLabel) ||
24313
+ rawLabel.includes('_')) {
24314
+ return humanizeKeyText(rawLabel);
24315
+ }
24316
+ return rawLabel;
24317
+ }
24318
+ isEnglishLocale() {
24319
+ return String(this.i18n?.getLocale?.() || 'pt-BR')
24320
+ .toLowerCase()
24321
+ .startsWith('en');
24322
+ }
24278
24323
  formatAiVisibilityLabel(visibility) {
24279
- const clean = visibility.trim().toUpperCase();
24324
+ const clean = visibility.trim().toUpperCase().replace(/[\s-]+/g, '_');
24280
24325
  if (this.isTechnicalMode()) {
24281
24326
  return clean || visibility;
24282
24327
  }
@@ -25817,7 +25862,7 @@ class PraxisDecisionInspectorSurfaceComponent {
25817
25862
  <div class="praxis-decision-inspector__binding-top">
25818
25863
  <div class="praxis-decision-inspector__item-title-group">
25819
25864
  <strong class="praxis-decision-inspector__item-title">
25820
- {{ gov.label }}
25865
+ {{ formatGovernanceItemLabel(gov) }}
25821
25866
  </strong>
25822
25867
  @if (isTechnicalMode() && gov.fieldName && gov.fieldName !== gov.label) {
25823
25868
  <code class="praxis-decision-inspector__fact-chip">
@@ -27015,7 +27060,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
27015
27060
  <div class="praxis-decision-inspector__binding-top">
27016
27061
  <div class="praxis-decision-inspector__item-title-group">
27017
27062
  <strong class="praxis-decision-inspector__item-title">
27018
- {{ gov.label }}
27063
+ {{ formatGovernanceItemLabel(gov) }}
27019
27064
  </strong>
27020
27065
  @if (isTechnicalMode() && gov.fieldName && gov.fieldName !== gov.label) {
27021
27066
  <code class="praxis-decision-inspector__fact-chip">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/visual-builder",
3
- "version": "10.0.0-rc.78",
3
+ "version": "10.0.0-rc.79",
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.78",
12
- "@praxisui/core": "^10.0.0-rc.78",
11
+ "@praxisui/ai": "^10.0.0-rc.79",
12
+ "@praxisui/core": "^10.0.0-rc.79",
13
13
  "rxjs": "~7.8.0"
14
14
  },
15
15
  "dependencies": {
@@ -3249,6 +3249,8 @@ declare class PraxisDecisionInspectorSurfaceComponent implements OnInit {
3249
3249
  formatGovernanceTargetKind(kind: ResolvedDomainGovernanceItem['targetKind']): string;
3250
3250
  formatClassificationLabel(classification: string): string;
3251
3251
  formatDataCategoryLabel(category: string): string;
3252
+ formatGovernanceItemLabel(gov: ResolvedDomainGovernanceItem): string;
3253
+ private isEnglishLocale;
3252
3254
  formatAiVisibilityLabel(visibility: string): string;
3253
3255
  visibleComplianceTags(gov: ResolvedDomainGovernanceItem): readonly string[];
3254
3256
  visibleAiRestrictions(gov: ResolvedDomainGovernanceItem): readonly string[];