@praxisui/dynamic-fields 8.0.0-beta.9 → 8.0.0-beta.90
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/README.md +19 -0
- package/docs/dynamic-fields-field-catalog.md +217 -0
- package/docs/dynamic-fields-field-selection-guide.md +204 -0
- package/docs/dynamic-fields-host-custom-field-guide.md +252 -0
- package/docs/dynamic-fields-host-custom-field-troubleshooting.md +160 -0
- package/docs/dynamic-fields-inline-components-guide.md +582 -0
- package/docs/dynamic-fields-inline-filter-catalog.md +518 -0
- package/docs/dynamic-fields-inline-filter-custom-component-guide.md +241 -0
- package/docs/dynamic-fields-inline-filter-inventory.md +250 -0
- package/docs/dynamic-fields-inline-filter-runtime-contract.md +394 -0
- package/docs/dynamic-fields-inline-filter-selection-guide.md +419 -0
- package/docs/dynamic-fields-inline-filter-troubleshooting.md +201 -0
- package/docs/dynamic-fields-inventory.md +207 -0
- package/docs/dynamic-fields-playground-catalog-plan.md +243 -0
- package/docs/generic-crud-service.md +152 -0
- package/fesm2022/praxisui-dynamic-fields-index-BYVmv78m.mjs +1 -0
- package/fesm2022/praxisui-dynamic-fields-index-CWPZdn1Y.mjs +6 -0
- package/fesm2022/praxisui-dynamic-fields-index-CrHhyUMO.mjs +1 -0
- package/fesm2022/praxisui-dynamic-fields-index-DhGo5In4.mjs +6 -0
- package/fesm2022/praxisui-dynamic-fields.mjs +14500 -5745
- package/package.json +14 -13
- package/src/lib/base/pdx-base-input-runtime-contract.json-api.md +526 -0
- package/src/lib/base/pdx-base-select-runtime-contract.json-api.md +474 -0
- package/src/lib/components/color-input/pdx-color-input.json-api.md +573 -0
- package/src/lib/components/color-picker/pdx-color-picker.json-api.md +686 -0
- package/src/lib/components/date-input/pdx-date-input.json-api.md +581 -0
- package/src/lib/components/datetime-local-input/pdx-datetime-local-input.json-api.md +560 -0
- package/src/lib/components/email-input/pdx-email-input.json-api.md +546 -0
- package/src/lib/components/field-shell/praxis-field-shell.json-api.md +523 -0
- package/src/lib/components/inline-async-select/pdx-inline-async-select.json-api.md +566 -0
- package/src/lib/components/inline-autocomplete/pdx-inline-autocomplete.json-api.md +554 -0
- package/src/lib/components/inline-color-label/pdx-inline-color-label.json-api.md +615 -0
- package/src/lib/components/inline-currency/pdx-inline-currency.json-api.md +542 -0
- package/src/lib/components/inline-currency-range/pdx-inline-currency-range.json-api.md +630 -0
- package/src/lib/components/inline-date/pdx-inline-date.json-api.md +529 -0
- package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +592 -0
- package/src/lib/components/inline-distance-radius/pdx-inline-distance-radius.json-api.md +649 -0
- package/src/lib/components/inline-entity-lookup/pdx-inline-entity-lookup.json-api.md +656 -0
- package/src/lib/components/inline-input/pdx-inline-input.json-api.md +538 -0
- package/src/lib/components/inline-multi-select/pdx-inline-multi-select.json-api.md +566 -0
- package/src/lib/components/inline-number/pdx-inline-number.json-api.md +533 -0
- package/src/lib/components/inline-pipeline-status/pdx-inline-pipeline-status.json-api.md +619 -0
- package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +605 -0
- package/src/lib/components/inline-rating/pdx-inline-rating.json-api.md +594 -0
- package/src/lib/components/inline-relative-period/pdx-inline-relative-period.json-api.md +623 -0
- package/src/lib/components/inline-score-priority/pdx-inline-score-priority.json-api.md +632 -0
- package/src/lib/components/inline-searchable-select/pdx-inline-searchable-select.json-api.md +564 -0
- package/src/lib/components/inline-select/pdx-inline-select.json-api.md +571 -0
- package/src/lib/components/inline-sentiment/pdx-inline-sentiment.json-api.md +661 -0
- package/src/lib/components/inline-time/pdx-inline-time.json-api.md +573 -0
- package/src/lib/components/inline-time-range/pdx-inline-time-range.json-api.md +635 -0
- package/src/lib/components/inline-toggle/pdx-inline-toggle.json-api.md +516 -0
- package/src/lib/components/inline-tree-select/pdx-inline-tree-select.json-api.md +637 -0
- package/src/lib/components/material-async-select/pdx-material-async-select.json-api.md +566 -0
- package/src/lib/components/material-autocomplete/pdx-material-autocomplete.json-api.md +561 -0
- package/src/lib/components/material-avatar/pdx-material-avatar.json-api.md +670 -0
- package/src/lib/components/material-button/pdx-material-button.json-api.md +572 -0
- package/src/lib/components/material-button-toggle/pdx-material-button-toggle.json-api.md +577 -0
- package/src/lib/components/material-checkbox-group/pdx-material-checkbox-group.json-api.md +611 -0
- package/src/lib/components/material-chips/pdx-material-chips.json-api.md +601 -0
- package/src/lib/components/material-colorpicker/pdx-material-colorpicker.json-api.md +545 -0
- package/src/lib/components/material-cpf-cnpj-input/pdx-material-cpf-cnpj-input.json-api.md +531 -0
- package/src/lib/components/material-currency/pdx-material-currency.json-api.md +569 -0
- package/src/lib/components/material-date-range/pdx-material-date-range.json-api.md +636 -0
- package/src/lib/components/material-datepicker/pdx-material-datepicker.json-api.md +556 -0
- package/src/lib/components/material-file-upload/pdx-material-file-upload.json-api.md +511 -0
- package/src/lib/components/material-multi-select/pdx-material-multi-select.json-api.md +596 -0
- package/src/lib/components/material-multi-select-tree/pdx-material-multi-select-tree.json-api.md +623 -0
- package/src/lib/components/material-price-range/pdx-material-price-range.json-api.md +619 -0
- package/src/lib/components/material-radio-group/pdx-material-radio-group.json-api.md +585 -0
- package/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md +664 -0
- package/src/lib/components/material-rating/pdx-material-rating.json-api.md +551 -0
- package/src/lib/components/material-searchable-select/pdx-material-searchable-select.json-api.md +602 -0
- package/src/lib/components/material-select/pdx-material-select.json-api.md +601 -0
- package/src/lib/components/material-selection-list/pdx-material-selection-list.json-api.md +607 -0
- package/src/lib/components/material-slide-toggle/pdx-material-slide-toggle.json-api.md +522 -0
- package/src/lib/components/material-slider/pdx-material-slider.json-api.md +602 -0
- package/src/lib/components/material-textarea/pdx-material-textarea.json-api.md +598 -0
- package/src/lib/components/material-timepicker/pdx-material-timepicker.json-api.md +554 -0
- package/src/lib/components/material-transfer-list/pdx-material-transfer-list.json-api.md +614 -0
- package/src/lib/components/material-tree-select/pdx-material-tree-select.json-api.md +649 -0
- package/src/lib/components/month-input/pdx-month-input.json-api.md +527 -0
- package/src/lib/components/number-input/pdx-number-input.json-api.md +594 -0
- package/src/lib/components/password-input/pdx-password-input.json-api.md +574 -0
- package/src/lib/components/pdx-material-time-range/pdx-material-time-range.json-api.md +592 -0
- package/src/lib/components/pdx-year-input/pdx-year-input.json-api.md +543 -0
- package/src/lib/components/phone-input/pdx-phone-input.json-api.md +583 -0
- package/src/lib/components/preload-status/pdx-preload-status.json-api.md +455 -0
- package/src/lib/components/search-input/pdx-search-input.json-api.md +536 -0
- package/src/lib/components/text-input/pdx-text-input.json-api.md +600 -0
- package/src/lib/components/time-input/pdx-time-input.json-api.md +546 -0
- package/src/lib/components/url-input/pdx-url-input.json-api.md +542 -0
- package/src/lib/components/week-input/pdx-week-input.json-api.md +533 -0
- package/{index.d.ts → types/praxisui-dynamic-fields.d.ts} +848 -445
- package/fesm2022/praxisui-dynamic-fields-index-C9IUU4lo.mjs +0 -1
- package/fesm2022/praxisui-dynamic-fields-index-GJtthzkD.mjs +0 -1
- package/fesm2022/praxisui-dynamic-fields-index-XvVS6lAQ.mjs +0 -1
- package/fesm2022/praxisui-dynamic-fields-index-iIeaA6ko.mjs +0 -1
|
@@ -0,0 +1,619 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "pdx-material-price-range JSON API (Canonical)"
|
|
3
|
+
slug: "pdx-material-price-range-json-api"
|
|
4
|
+
doc_type: "api-reference"
|
|
5
|
+
component: "pdx-material-price-range"
|
|
6
|
+
document_kind: "json-api-canonical"
|
|
7
|
+
reference_mode: "canonical"
|
|
8
|
+
contract_format: "json"
|
|
9
|
+
contract_source: "runtime-and-code"
|
|
10
|
+
description: "Referencia canonica do contrato JSON do componente pdx-material-price-range."
|
|
11
|
+
category: "components"
|
|
12
|
+
sub_category: "dynamic-fields"
|
|
13
|
+
audience:
|
|
14
|
+
- "frontend"
|
|
15
|
+
- "architect"
|
|
16
|
+
- "platform-team"
|
|
17
|
+
level: "advanced"
|
|
18
|
+
status: "active"
|
|
19
|
+
owner: "praxis-ui"
|
|
20
|
+
source_of_truth:
|
|
21
|
+
- "projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.metadata.ts"
|
|
22
|
+
- "projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.component.ts"
|
|
23
|
+
- "projects/praxis-dynamic-fields/src/lib/components/material-currency/material-currency.component.ts"
|
|
24
|
+
- "projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts"
|
|
25
|
+
- "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
|
|
26
|
+
source_of_truth_last_verified: "2026-03-06"
|
|
27
|
+
last_updated: "2026-03-06"
|
|
28
|
+
toc: true
|
|
29
|
+
sidebar: true
|
|
30
|
+
tags:
|
|
31
|
+
- "json-api"
|
|
32
|
+
- "canonical-contract"
|
|
33
|
+
- "pdx-material-price-range"
|
|
34
|
+
api_stability: "canonical"
|
|
35
|
+
schema_verified: true
|
|
36
|
+
runtime_verified: true
|
|
37
|
+
editor_coverage_verified: false
|
|
38
|
+
runtime_scope: "public"
|
|
39
|
+
legacy_paths_present: false
|
|
40
|
+
has_known_mismatches: false
|
|
41
|
+
related_components:
|
|
42
|
+
- "praxis-table"
|
|
43
|
+
- "pdx-base-input-runtime-contract"
|
|
44
|
+
- "pdx-material-currency"
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
# pdx-material-price-range
|
|
48
|
+
|
|
49
|
+
Este documento e a referencia canonica da API JSON de pdx-material-price-range.
|
|
50
|
+
|
|
51
|
+
## Summary
|
|
52
|
+
|
|
53
|
+
- Tipo documental: API reference canonica de contrato JSON.
|
|
54
|
+
- Source of truth: runtime e codigo declarados no frontmatter.
|
|
55
|
+
- Objetivo operacional: consulta rapida, auditavel e deterministica sob pressao.
|
|
56
|
+
- Resumo funcional: Contrato JSON metadata-driven com comportamento definido por runtime e schema associado.
|
|
57
|
+
|
|
58
|
+
## Purpose and scope
|
|
59
|
+
|
|
60
|
+
- O componente consome payload JSON metadata-driven e expoe comportamento runtime configuravel por contrato.
|
|
61
|
+
- Esta referencia cobre contrato publico, classificacao de paths e semantica de cobertura (runtime/schema/editor).
|
|
62
|
+
- Fora de escopo: quickstart, tutorial narrativo e notas arquiteturais que nao alteram contrato publico.
|
|
63
|
+
|
|
64
|
+
## Consulta rapida (obrigatorio)
|
|
65
|
+
|
|
66
|
+
| Regra/tema | Observado | Canonico desejado | Status | Evidencia |
|
|
67
|
+
| --- | --- | --- | --- | --- |
|
|
68
|
+
| Component id | `pdx-material-price-range` | Manter ID canonico estavel e versionado por contrato | Active | frontmatter.component |
|
|
69
|
+
| Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
|
|
70
|
+
| Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.component.ts` |
|
|
71
|
+
| Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
|
|
72
|
+
| Editor/tooling coverage | `false` | Editor/tooling deve espelhar somente contrato publico suportado | Partial | `projects/praxis-core/src/lib/metadata/field-selector-control-type.constants.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
|
|
73
|
+
| Legacy paths | `false` | Segregar legado de caminhos canonicos com janela de migracao | Active | frontmatter.legacy_paths_present |
|
|
74
|
+
| Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |
|
|
75
|
+
|
|
76
|
+
## Source of truth
|
|
77
|
+
|
|
78
|
+
| Source | Kind | Notes |
|
|
79
|
+
| --- | --- | --- |
|
|
80
|
+
| projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.metadata.ts | schema-metadata | Arquivo presente no repositorio e usado como evidencia de contrato. |
|
|
81
|
+
| projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
|
|
82
|
+
| projects/praxis-dynamic-fields/src/lib/components/material-currency/material-currency.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
|
|
83
|
+
| projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
|
|
84
|
+
| projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | schema-types | Arquivo presente no repositorio e usado como evidencia de contrato. |
|
|
85
|
+
|
|
86
|
+
## Support legend
|
|
87
|
+
|
|
88
|
+
- **Active**: suportado em runtime e liberado para uso externo.
|
|
89
|
+
- **Partial**: suporte parcial, com restricoes, lacunas ou validacao incompleta.
|
|
90
|
+
- **Declared-only**: declarado em tipos/schema sem evidencia operacional completa.
|
|
91
|
+
- **Schema-only**: presente em schema/tipos sem cobertura runtime confirmada.
|
|
92
|
+
- **Deprecated**: legado suportado por janela de migracao definida.
|
|
93
|
+
|
|
94
|
+
## Contract status snapshot
|
|
95
|
+
|
|
96
|
+
| Item | Value | Notes |
|
|
97
|
+
| --- | --- | --- |
|
|
98
|
+
| Reference mode | `canonical` | Deve permanecer canonico |
|
|
99
|
+
| Contract format | `json` | Contrato metadata-driven |
|
|
100
|
+
| Contract source | `runtime-and-code` | Alinhar com source_of_truth |
|
|
101
|
+
| Runtime scope | `public` | Escopo publicado para consumidores |
|
|
102
|
+
| Runtime verified | `true` | Revisar sempre com evidencia de runtime |
|
|
103
|
+
| Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
|
|
104
|
+
| Editor coverage verified | `false` | Revisar sempre com evidencia de editor/tooling |
|
|
105
|
+
| Legacy paths present | `false` | Segregar legado de contrato canonico |
|
|
106
|
+
| Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
|
|
107
|
+
|
|
108
|
+
## Contract classification (obrigatorio)
|
|
109
|
+
|
|
110
|
+
### Canonical paths (public contract)
|
|
111
|
+
|
|
112
|
+
| Path | Type | Required | Default | Status | Notes |
|
|
113
|
+
| --- | --- | --- | --- | --- | --- |
|
|
114
|
+
| `metadata` | object | true | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
115
|
+
| `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
116
|
+
| `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
117
|
+
| `visible` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
118
|
+
| `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
119
|
+
| `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
120
|
+
| `metadata.currency` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
121
|
+
| `metadata.currencyPosition` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
122
|
+
|
|
123
|
+
### Supported legacy paths
|
|
124
|
+
|
|
125
|
+
Nenhum path legado suportado foi identificado nesta revisao.
|
|
126
|
+
|
|
127
|
+
### Internal-only paths
|
|
128
|
+
|
|
129
|
+
Nao ha paths internal-only confirmados no contrato publico desta revisao.
|
|
130
|
+
|
|
131
|
+
### Experimental paths
|
|
132
|
+
|
|
133
|
+
Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
134
|
+
|
|
135
|
+
## Public contract surface (obrigatorio)
|
|
136
|
+
|
|
137
|
+
### Top-level configuration blocks
|
|
138
|
+
|
|
139
|
+
| Block | Purpose | Required | Merge strategy | Notes |
|
|
140
|
+
| --- | --- | --- | --- | --- |
|
|
141
|
+
| `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
142
|
+
| `readonlyMode` | Override de readonly no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
143
|
+
| `disabledMode` | Override de disabled no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
144
|
+
| `visible` | Override de visibilidade no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
145
|
+
| `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
146
|
+
|
|
147
|
+
### Nested configuration blocks
|
|
148
|
+
|
|
149
|
+
| Path | Type | Required | Default | Constraints | Notes |
|
|
150
|
+
| --- | --- | --- | --- | --- | --- |
|
|
151
|
+
| `metadata.controlType` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
152
|
+
| `metadata.currency` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
153
|
+
| `metadata.currencyPosition` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
154
|
+
| `metadata.decimalPlaces` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
155
|
+
| `metadata.locale` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
156
|
+
| `metadata.thousandsSeparator` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
157
|
+
| `metadata.decimalSeparator` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
158
|
+
| `metadata.allowNegative` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
159
|
+
| `metadata.startPlaceholder` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
160
|
+
| `metadata.endPlaceholder` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
161
|
+
|
|
162
|
+
### Input bindings (inbound data)
|
|
163
|
+
|
|
164
|
+
| Binding/Path | Type | Required | Source | Runtime normalization | Notes |
|
|
165
|
+
| --- | --- | --- | --- | --- | --- |
|
|
166
|
+
| `metadata` | object | true | host-json | component-defined | Primary inbound contract payload. |
|
|
167
|
+
| `readonlyMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
|
|
168
|
+
| `disabledMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
|
|
169
|
+
| `visible` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
|
|
170
|
+
| `presentationMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
|
|
171
|
+
|
|
172
|
+
### Output events
|
|
173
|
+
|
|
174
|
+
| Event | Payload | Trigger | Stability | Notes |
|
|
175
|
+
| --- | --- | --- | --- | --- |
|
|
176
|
+
| `validationChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
|
|
177
|
+
| `valueChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
|
|
178
|
+
| `focusChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
|
|
179
|
+
| `nativeBlur` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
|
|
180
|
+
| `nativeChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
|
|
181
|
+
|
|
182
|
+
### External side channels
|
|
183
|
+
|
|
184
|
+
| Channel | Direction | Contract | Failure mode | Notes |
|
|
185
|
+
| --- | --- | --- | --- | --- |
|
|
186
|
+
| `host/services/storage` | bidirectional | component-defined | component-defined | Side channels variam por componente e host; verificar em source_of_truth. |
|
|
187
|
+
|
|
188
|
+
### Host/runtime dependencies
|
|
189
|
+
|
|
190
|
+
| Dependency | Required | Environment | Purpose | Notes |
|
|
191
|
+
| --- | --- | --- | --- | --- |
|
|
192
|
+
| `material-price-range.metadata.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.metadata.ts`. |
|
|
193
|
+
| `material-price-range.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.component.ts`. |
|
|
194
|
+
| `material-currency.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-currency/material-currency.component.ts`. |
|
|
195
|
+
| `simple-base-input.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts`. |
|
|
196
|
+
| `material-field-metadata.interface.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-core/src/lib/models/material-field-metadata.interface.ts`. |
|
|
197
|
+
|
|
198
|
+
## Coverage by surface (obrigatorio)
|
|
199
|
+
|
|
200
|
+
### Coverage matrix (runtime, schema/type, editor/tooling)
|
|
201
|
+
|
|
202
|
+
| Surface | Verified | Coverage status | Evidence | Notes |
|
|
203
|
+
| --- | --- | --- | --- | --- |
|
|
204
|
+
| Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.component.ts` | Core runtime flows verified via focused component specs on 2026-03-06; editor/tooling coverage remains independent. |
|
|
205
|
+
| Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
|
|
206
|
+
| Editor/Tooling | `false` | Partial | `projects/praxis-core/src/lib/metadata/field-selector-control-type.constants.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` | Selector/control-type tooling linkage verified via default selector map and registry seeding; visual editor end-to-end coverage remains not-yet-verified. |
|
|
207
|
+
|
|
208
|
+
### Runtime coverage boundaries
|
|
209
|
+
|
|
210
|
+
- Ambientes suportados: browser/dev/prod; SSR/hydration appears to be component-dependent unless explicitly verified.
|
|
211
|
+
- Pre-condicoes: payload JSON valido, bindings de host consistentes e dependencias descritas no source_of_truth.
|
|
212
|
+
- Fora de cobertura confirmada: caminhos internos, experimentais ou aliases nao enumerados formalmente.
|
|
213
|
+
|
|
214
|
+
### Editor and tooling notes
|
|
215
|
+
|
|
216
|
+
- Evidencia de tooling: selector `pdx-*` mapeado em `DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP` e semeado no `ComponentRegistryService`; editor visual E2E permanece not-yet-verified.
|
|
217
|
+
- O que esta exposto no editor visual depende da cobertura real do workspace e nao deve ser inferido como suporte runtime total.
|
|
218
|
+
- Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
|
|
219
|
+
- Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.
|
|
220
|
+
|
|
221
|
+
## Resolution and precedence model (obrigatorio)
|
|
222
|
+
|
|
223
|
+
### Merge order
|
|
224
|
+
|
|
225
|
+
1. defaults do componente
|
|
226
|
+
2. contrato JSON recebido
|
|
227
|
+
3. overrides de host/runtime
|
|
228
|
+
4. normalizacoes internas
|
|
229
|
+
|
|
230
|
+
### Fallback order
|
|
231
|
+
|
|
232
|
+
contrato explicito -> aliases legados (quando suportados) -> defaults internos -> comportamento seguro
|
|
233
|
+
|
|
234
|
+
### Override points
|
|
235
|
+
|
|
236
|
+
- inputs publicos do componente
|
|
237
|
+
- configuracao JSON de runtime
|
|
238
|
+
- integracoes de host (servicos/tokens/adapters)
|
|
239
|
+
|
|
240
|
+
### Runtime normalization
|
|
241
|
+
|
|
242
|
+
Alias e defaults devem convergir para paths canonicos; onde nao houver evidencia, manter not-yet-verified de forma explicita.
|
|
243
|
+
|
|
244
|
+
### Precedence rules
|
|
245
|
+
|
|
246
|
+
Em conflito entre alias legado e path canonico, priorizar path canonico e registrar janela de migracao do legado.
|
|
247
|
+
|
|
248
|
+
## Validation and error semantics (obrigatorio)
|
|
249
|
+
|
|
250
|
+
### Validation model
|
|
251
|
+
|
|
252
|
+
| Path/Rule | Validation phase | Behavior on fail | Error code / warning | Notes |
|
|
253
|
+
| --- | --- | --- | --- | --- |
|
|
254
|
+
| canonical-paths | parse/runtime | component-defined (warn/reject/default) | not-yet-standardized | Semantica detalhada preservada na referencia tecnica por componente. |
|
|
255
|
+
|
|
256
|
+
### Invalid and unknown field handling
|
|
257
|
+
|
|
258
|
+
- Campos desconhecidos: comportamento component-defined (ignore, warn ou reject).
|
|
259
|
+
- Tipos invalidos: pode haver fallback, warning ou falha, conforme runtime especifico.
|
|
260
|
+
- Valores fora de dominio: registrar observed vs desired em Known limitations and mismatches.
|
|
261
|
+
|
|
262
|
+
### Fail-open / fail-closed behavior
|
|
263
|
+
|
|
264
|
+
| Condition | Mode | Runtime behavior | Consumer impact |
|
|
265
|
+
| --- | --- | --- | --- |
|
|
266
|
+
| invalid-or-unknown-field | component-defined | not-yet-verified | Pode gerar warning, fallback silencioso ou rejeicao; validar por componente. |
|
|
267
|
+
|
|
268
|
+
### Runtime warnings vs hard failures
|
|
269
|
+
|
|
270
|
+
| Condition | Severity | Observability | Consumer action |
|
|
271
|
+
| --- | --- | --- | --- |
|
|
272
|
+
| partial-or-declared-only-coverage | warning | logs/eventos do componente | Confirmar ligacao runtime antes de uso critico. |
|
|
273
|
+
| mismatch-confirmed | error-or-warning | componente/host observability | Planejar migracao e corrigir contrato/runtime. |
|
|
274
|
+
|
|
275
|
+
## Detailed API reference
|
|
276
|
+
### Preserved technical reference (normalized from previous revision)
|
|
277
|
+
|
|
278
|
+
### 1. Visao Geral e Quando Usar
|
|
279
|
+
`pdx-material-price-range` compoe dois `pdx-material-currency` para modelar faixa monetaria (`minPrice`/`maxPrice`).
|
|
280
|
+
O label do grupo identifica a faixa completa, enquanto `startLabel` e
|
|
281
|
+
`endLabel` identificam as entradas internas. `hint` e renderizado como helper
|
|
282
|
+
text abaixo do grupo, com a mesma hierarquia visual dos hints de `mat-form-field`.
|
|
283
|
+
|
|
284
|
+
Use quando precisar:
|
|
285
|
+
- capturar intervalo financeiro com mascara de moeda;
|
|
286
|
+
- validar ordem, offset e limites min/max;
|
|
287
|
+
- renderizar subinputs em linha ou coluna.
|
|
288
|
+
|
|
289
|
+
### 2. API do Componente (Inputs/Outputs)
|
|
290
|
+
| Propriedade | Tipo | Padrao | Obrigatorio | Comportamento |
|
|
291
|
+
| --- | --- | --- | --- | --- |
|
|
292
|
+
| `metadata` | `MaterialPriceRangeMetadata` | - | Sim | Contrato principal da faixa de preco. |
|
|
293
|
+
| `readonlyMode` | `boolean` | `false` | Nao | Sobrescreve leitura no host. |
|
|
294
|
+
| `disabledMode` | `boolean` | `false` | Nao | Sobrescreve disabled no host. |
|
|
295
|
+
| `visible` | `boolean` | `true` | Nao | Controla exibicao no host. |
|
|
296
|
+
| `presentationMode` | `boolean` | `false` | Nao | Modo apresentacao sem edicao. |
|
|
297
|
+
| `valueChange` | `{ minPrice:number\|null, maxPrice:number\|null }` | - | Output base input | Mudanca da faixa de valores. |
|
|
298
|
+
| `validationChange` | `ValidationErrors \| null` | - | Output especifico | Estado de validacao da faixa. |
|
|
299
|
+
|
|
300
|
+
### 3. Matriz de Cobertura JSON (Completa)
|
|
301
|
+
#### 3.1 Campos especificos do componente
|
|
302
|
+
| Caminho JSON | Tipo | Status | Comportamento em runtime |
|
|
303
|
+
| --- | --- | --- | --- |
|
|
304
|
+
| `metadata.controlType` | `'priceRange'` | Ativo | Define renderer da faixa monetaria. |
|
|
305
|
+
| `metadata.currency` | `string` | Ativo | Moeda usada nos dois subinputs (obrigatorio). |
|
|
306
|
+
| `metadata.currencyPosition` | `'before' \| 'after'` | Ativo | Posicao do simbolo monetario. |
|
|
307
|
+
| `metadata.decimalPlaces` | `number` | Ativo | Casas decimais dos subinputs. |
|
|
308
|
+
| `metadata.locale` | `string` | Ativo | Locale de formatacao dos subinputs. |
|
|
309
|
+
| `metadata.thousandsSeparator` | `string` | Ativo | Separador de milhar. |
|
|
310
|
+
| `metadata.decimalSeparator` | `string` | Ativo | Separador decimal. |
|
|
311
|
+
| `metadata.allowNegative` | `boolean` | Ativo | Permite/nega valores negativos. |
|
|
312
|
+
| `metadata.startPlaceholder` | `string` | Ativo | Placeholder do subinput inicial. |
|
|
313
|
+
| `metadata.endPlaceholder` | `string` | Ativo | Placeholder do subinput final. |
|
|
314
|
+
| `metadata.startLabel` | `string` | Ativo | Label do subinput inicial. |
|
|
315
|
+
| `metadata.endLabel` | `string` | Ativo | Label do subinput final. |
|
|
316
|
+
| `metadata.hideSubLabels` | `boolean` | Ativo | Oculta labels dos subinputs. |
|
|
317
|
+
| `metadata.layout` | `'row' \| 'column'` | Ativo | Direcao dos subinputs. |
|
|
318
|
+
| `metadata.gap` | `number \| string` | Ativo | Espacamento entre subinputs. |
|
|
319
|
+
| `metadata.clearButtonPlacement` | `'group' \| 'subinputs'` | Ativo | Posiciona clear no grupo ou em cada subinput. |
|
|
320
|
+
| `metadata.clearButton` | `boolean \| object` | Ativo | Configura botao limpar da faixa/subinputs. |
|
|
321
|
+
| `metadata.min` | `number` | Ativo | Limite minimo global da faixa. |
|
|
322
|
+
| `metadata.max` | `number` | Ativo | Limite maximo global da faixa. |
|
|
323
|
+
| `metadata.startMin` | `number` | Ativo | Limite minimo do valor inicial. |
|
|
324
|
+
| `metadata.startMax` | `number` | Ativo | Limite maximo do valor inicial. |
|
|
325
|
+
| `metadata.endMin` | `number` | Ativo | Limite minimo do valor final. |
|
|
326
|
+
| `metadata.endMax` | `number` | Ativo | Limite maximo do valor final. |
|
|
327
|
+
| `metadata.endMinOffset` | `number` | Ativo | Exige `end >= start + offset`. |
|
|
328
|
+
| `metadata.startMaxOffset` | `number` | Ativo | Exige `start <= end - offset`. |
|
|
329
|
+
| `metadata.startMinMessage/startMaxMessage/endMinMessage/endMaxMessage` | `string` | Ativo | Mensagens custom de validacao segmentada. |
|
|
330
|
+
| `metadata.endMinOffsetMessage/startMaxOffsetMessage` | `string` | Ativo | Mensagens custom para regras de offset. |
|
|
331
|
+
| `metadata.step` | `number` | Declared-only | Declarado no contrato, sem binding dedicado no componente atual. |
|
|
332
|
+
| `metadata.inlineDistribution` | `object \| array \| string` | Declared-only | Contrato amplo, sem uso neste renderer. |
|
|
333
|
+
| `metadata.distribution` | `object \| array \| string` | Declared-only | Contrato amplo, sem uso neste renderer. |
|
|
334
|
+
|
|
335
|
+
#### 3.2 Campos herdados compartilhados (exaustivo)
|
|
336
|
+
Contrato compartilhado de input base:
|
|
337
|
+
- [pdx-base-input-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md)
|
|
338
|
+
|
|
339
|
+
Resumo de composicao deste componente:
|
|
340
|
+
- `Ativo`: configuracao monetaria completa + validacoes de faixa/offset.
|
|
341
|
+
- `Declared-only`: `step` e blocos de distribuicao nao usados no template atual.
|
|
342
|
+
|
|
343
|
+
### 4. Mapeamento de Comportamento
|
|
344
|
+
- Valor de saida: objeto `PriceRangeValue` com `minPrice` e `maxPrice`.
|
|
345
|
+
- Validacoes:
|
|
346
|
+
- ordem (`minPrice <= maxPrice`),
|
|
347
|
+
- min/max globais,
|
|
348
|
+
- limites por lado (start/end),
|
|
349
|
+
- regras de offset entre inicio/fim.
|
|
350
|
+
- Sincronizacao: `rangeGroup` interno e `control()` externo ficam espelhados.
|
|
351
|
+
- Renderizacao: dois `pdx-material-currency` com layout configuravel.
|
|
352
|
+
|
|
353
|
+
### 5. Exemplo Minimo (JSON + Uso)
|
|
354
|
+
```json
|
|
355
|
+
{
|
|
356
|
+
"componentId": "pdx-material-price-range",
|
|
357
|
+
"metadata": {
|
|
358
|
+
"name": "budget",
|
|
359
|
+
"label": "Faixa de Orcamento",
|
|
360
|
+
"controlType": "priceRange",
|
|
361
|
+
"currency": "BRL",
|
|
362
|
+
"decimalPlaces": 2
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
```
|
|
366
|
+
Uso: captura faixa monetaria simples em BRL.
|
|
367
|
+
|
|
368
|
+
### 6. Exemplo Corporativo (JSON + Uso)
|
|
369
|
+
```json
|
|
370
|
+
{
|
|
371
|
+
"componentId": "pdx-material-price-range",
|
|
372
|
+
"metadata": {
|
|
373
|
+
"name": "approvedBudget",
|
|
374
|
+
"label": "Faixa Aprovada",
|
|
375
|
+
"controlType": "priceRange",
|
|
376
|
+
"currency": "BRL",
|
|
377
|
+
"currencyPosition": "before",
|
|
378
|
+
"decimalPlaces": 2,
|
|
379
|
+
"locale": "pt-BR",
|
|
380
|
+
"layout": "row",
|
|
381
|
+
"gap": 12,
|
|
382
|
+
"startLabel": "Minimo",
|
|
383
|
+
"endLabel": "Maximo",
|
|
384
|
+
"startPlaceholder": "0,00",
|
|
385
|
+
"endPlaceholder": "0,00",
|
|
386
|
+
"min": 0,
|
|
387
|
+
"max": 1000000,
|
|
388
|
+
"endMinOffset": 1000,
|
|
389
|
+
"endMinOffsetMessage": "O valor final deve superar o inicial em pelo menos R$ 1.000,00",
|
|
390
|
+
"clearButton": {
|
|
391
|
+
"enabled": true,
|
|
392
|
+
"showOnlyWhenFilled": true
|
|
393
|
+
},
|
|
394
|
+
"clearButtonPlacement": "group",
|
|
395
|
+
"hint": "Informe a faixa financeira aprovada para o contrato."
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
```
|
|
399
|
+
Uso: valida intervalo financeiro corporativo com regras de distancia minima.
|
|
400
|
+
|
|
401
|
+
### 7. Troubleshooting e Armadilhas Comuns
|
|
402
|
+
1. Valor inicial maior que final gera erro.
|
|
403
|
+
Correcao: comportamento esperado da regra de ordem da faixa.
|
|
404
|
+
|
|
405
|
+
2. Mensagem de offset nao aparece.
|
|
406
|
+
Correcao: configurar `endMinOffset`/`startMaxOffset` junto das mensagens custom.
|
|
407
|
+
|
|
408
|
+
3. `clearButton` nao aparece.
|
|
409
|
+
Correcao: revisar estado readonly/disabled/presentation e `showOnlyWhenFilled`.
|
|
410
|
+
|
|
411
|
+
4. Formato monetario inconsistente.
|
|
412
|
+
Correcao: alinhar `locale`, separadores e `decimalPlaces`.
|
|
413
|
+
|
|
414
|
+
5. Campos de distribuicao nao renderizam histograma.
|
|
415
|
+
Correcao: `inlineDistribution/distribution` nao sao aplicados neste componente.
|
|
416
|
+
|
|
417
|
+
### 8. Cross-links
|
|
418
|
+
- `projects/praxis-dynamic-fields/src/lib/components/material-currency/pdx-material-currency.json-api.md`
|
|
419
|
+
- `projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md`
|
|
420
|
+
|
|
421
|
+
### 9. Relatorio de Validacao Estrutural
|
|
422
|
+
- Visao geral: PASS
|
|
423
|
+
- API (inputs/outputs): PASS
|
|
424
|
+
- Cobertura JSON completa (especifico + herdado): PASS
|
|
425
|
+
- Mapeamento de comportamento: PASS
|
|
426
|
+
- Exemplo minimo: PASS
|
|
427
|
+
- Exemplo corporativo: PASS
|
|
428
|
+
- Troubleshooting: PASS
|
|
429
|
+
|
|
430
|
+
## JSON path index (obrigatorio)
|
|
431
|
+
|
|
432
|
+
| Path | Type | Required | Default | Status | Notes |
|
|
433
|
+
| --- | --- | --- | --- | --- | --- |
|
|
434
|
+
| `metadata` | object | true | n/a | Partial | See Detailed API reference. |
|
|
435
|
+
| `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
436
|
+
| `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
437
|
+
| `visible` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
438
|
+
| `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
439
|
+
| `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference. |
|
|
440
|
+
| `metadata.currency` | string | false | n/a | Partial | See Detailed API reference. |
|
|
441
|
+
| `metadata.currencyPosition` | string | false | n/a | Partial | See Detailed API reference. |
|
|
442
|
+
| `metadata.decimalPlaces` | number | false | n/a | Partial | See Detailed API reference. |
|
|
443
|
+
| `metadata.locale` | string | false | n/a | Partial | See Detailed API reference. |
|
|
444
|
+
| `metadata.thousandsSeparator` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
445
|
+
| `metadata.decimalSeparator` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
446
|
+
| `metadata.allowNegative` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
447
|
+
| `metadata.startPlaceholder` | string | false | n/a | Partial | See Detailed API reference. |
|
|
448
|
+
| `metadata.endPlaceholder` | string | false | n/a | Partial | See Detailed API reference. |
|
|
449
|
+
| `metadata.startLabel` | string | false | n/a | Partial | See Detailed API reference. |
|
|
450
|
+
| `metadata.endLabel` | string | false | n/a | Partial | See Detailed API reference. |
|
|
451
|
+
| `metadata.hideSubLabels` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
452
|
+
| `metadata.layout` | string | false | n/a | Partial | See Detailed API reference. |
|
|
453
|
+
| `metadata.gap` | number | false | n/a | Partial | See Detailed API reference. |
|
|
454
|
+
|
|
455
|
+
## Events reference (obrigatorio)
|
|
456
|
+
|
|
457
|
+
| Event | Payload | Trigger | Stability | Notes |
|
|
458
|
+
| --- | --- | --- | --- | --- |
|
|
459
|
+
| `validationChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
|
|
460
|
+
| `valueChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
|
|
461
|
+
| `focusChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
|
|
462
|
+
| `nativeBlur` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
|
|
463
|
+
| `nativeChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
|
|
464
|
+
|
|
465
|
+
## Styling API (obrigatorio quando aplicavel)
|
|
466
|
+
|
|
467
|
+
| Token/Class | Scope | Purpose | Notes |
|
|
468
|
+
| --- | --- | --- | --- |
|
|
469
|
+
| `not-yet-verified` | component | Styling contract not yet verified | Use Detailed API reference for component-specific styling notes. |
|
|
470
|
+
|
|
471
|
+
## Examples (obrigatorio)
|
|
472
|
+
|
|
473
|
+
| Example | Scenario | Validates | Notes |
|
|
474
|
+
| --- | --- | --- | --- |
|
|
475
|
+
| `Minimal valid` | baseline payload | required contract blocks | Extracted from preserved technical reference when available. |
|
|
476
|
+
| `Common setup` | common component usage | standard runtime behavior | Validate against host integration path. |
|
|
477
|
+
| `Advanced setup` | richer config with overrides | precedence and normalization | Requires runtime confirmation for edge cases. |
|
|
478
|
+
| `Enterprise scenario` | governance/legacy/migration context | auditability and compatibility boundaries | Include tenant-specific constraints when applicable. |
|
|
479
|
+
|
|
480
|
+
### Minimal valid
|
|
481
|
+
|
|
482
|
+
```json
|
|
483
|
+
{
|
|
484
|
+
"componentId": "pdx-material-price-range",
|
|
485
|
+
"metadata": {
|
|
486
|
+
"name": "budget",
|
|
487
|
+
"label": "Faixa de Orcamento",
|
|
488
|
+
"controlType": "priceRange",
|
|
489
|
+
"currency": "BRL",
|
|
490
|
+
"decimalPlaces": 2
|
|
491
|
+
},
|
|
492
|
+
"readonlyMode": false
|
|
493
|
+
}
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
### Common setup
|
|
497
|
+
|
|
498
|
+
```json
|
|
499
|
+
{
|
|
500
|
+
"componentId": "pdx-material-price-range",
|
|
501
|
+
"metadata": {
|
|
502
|
+
"name": "approvedBudget",
|
|
503
|
+
"label": "Faixa Aprovada",
|
|
504
|
+
"controlType": "priceRange",
|
|
505
|
+
"currency": "BRL",
|
|
506
|
+
"currencyPosition": "before",
|
|
507
|
+
"decimalPlaces": 2,
|
|
508
|
+
"locale": "pt-BR",
|
|
509
|
+
"layout": "row",
|
|
510
|
+
"gap": 12,
|
|
511
|
+
"startLabel": "pdx-material-price-range-common",
|
|
512
|
+
"endLabel": "Maximo",
|
|
513
|
+
"startPlaceholder": "0,00",
|
|
514
|
+
"endPlaceholder": "0,00",
|
|
515
|
+
"min": 0,
|
|
516
|
+
"max": 1000000,
|
|
517
|
+
"endMinOffset": 1000,
|
|
518
|
+
"endMinOffsetMessage": "O valor final deve superar o inicial em pelo menos R$ 1.000,00",
|
|
519
|
+
"clearButton": {
|
|
520
|
+
"enabled": true,
|
|
521
|
+
"showOnlyWhenFilled": true
|
|
522
|
+
},
|
|
523
|
+
"clearButtonPlacement": "group",
|
|
524
|
+
"hint": "Informe a faixa financeira aprovada para o contrato."
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
```
|
|
528
|
+
|
|
529
|
+
### Advanced setup
|
|
530
|
+
|
|
531
|
+
```json
|
|
532
|
+
{
|
|
533
|
+
"componentId": "pdx-material-price-range",
|
|
534
|
+
"metadata": {
|
|
535
|
+
"name": "approvedBudget",
|
|
536
|
+
"label": "Faixa Aprovada",
|
|
537
|
+
"controlType": "priceRange",
|
|
538
|
+
"currency": "BRL",
|
|
539
|
+
"currencyPosition": "before",
|
|
540
|
+
"decimalPlaces": 5,
|
|
541
|
+
"locale": "pt-BR",
|
|
542
|
+
"layout": "row",
|
|
543
|
+
"gap": 12,
|
|
544
|
+
"startLabel": "Minimo",
|
|
545
|
+
"endLabel": "Maximo",
|
|
546
|
+
"startPlaceholder": "0,00",
|
|
547
|
+
"endPlaceholder": "0,00",
|
|
548
|
+
"min": 0,
|
|
549
|
+
"max": 1000000,
|
|
550
|
+
"endMinOffset": 1000,
|
|
551
|
+
"endMinOffsetMessage": "O valor final deve superar o inicial em pelo menos R$ 1.000,00",
|
|
552
|
+
"clearButton": {
|
|
553
|
+
"enabled": true,
|
|
554
|
+
"showOnlyWhenFilled": true
|
|
555
|
+
},
|
|
556
|
+
"clearButtonPlacement": "group",
|
|
557
|
+
"hint": "Informe a faixa financeira aprovada para o contrato."
|
|
558
|
+
},
|
|
559
|
+
"readonlyMode": false,
|
|
560
|
+
"disabledMode": false
|
|
561
|
+
}
|
|
562
|
+
```
|
|
563
|
+
|
|
564
|
+
### Enterprise scenario
|
|
565
|
+
|
|
566
|
+
```json
|
|
567
|
+
{
|
|
568
|
+
"componentId": "pdx-material-price-range",
|
|
569
|
+
"metadata": {
|
|
570
|
+
"name": "approvedBudget",
|
|
571
|
+
"label": "Faixa Aprovada",
|
|
572
|
+
"controlType": "priceRange",
|
|
573
|
+
"currency": "BRL",
|
|
574
|
+
"currencyPosition": "before",
|
|
575
|
+
"decimalPlaces": 2,
|
|
576
|
+
"locale": "pt-BR",
|
|
577
|
+
"layout": "row",
|
|
578
|
+
"gap": 12,
|
|
579
|
+
"startLabel": "Minimo",
|
|
580
|
+
"endLabel": "Maximo",
|
|
581
|
+
"startPlaceholder": "0,00",
|
|
582
|
+
"endPlaceholder": "0,00",
|
|
583
|
+
"min": 0,
|
|
584
|
+
"max": 1000000,
|
|
585
|
+
"endMinOffset": 1000,
|
|
586
|
+
"endMinOffsetMessage": "O valor final deve superar o inicial em pelo menos R$ 1.000,00",
|
|
587
|
+
"clearButton": {
|
|
588
|
+
"enabled": true,
|
|
589
|
+
"showOnlyWhenFilled": true
|
|
590
|
+
},
|
|
591
|
+
"clearButtonPlacement": "group",
|
|
592
|
+
"hint": "Informe a faixa financeira aprovada para o contrato."
|
|
593
|
+
},
|
|
594
|
+
"presentationMode": true,
|
|
595
|
+
"visible": true
|
|
596
|
+
}
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
## Compatibility and migration notes (recomendado)
|
|
600
|
+
|
|
601
|
+
| Concern | Affected versions | Migration action | Deadline | Notes |
|
|
602
|
+
| --- | --- | --- | --- | --- |
|
|
603
|
+
| No legacy path detected in current revision | n/a | No migration action required for canonical paths | n/a | Re-evaluate if backward-compat aliases are introduced |
|
|
604
|
+
|
|
605
|
+
## Known limitations and mismatches (recomendado)
|
|
606
|
+
|
|
607
|
+
| Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
|
|
608
|
+
| --- | --- | --- | --- | --- | --- |
|
|
609
|
+
| Canonical contract parity | No confirmed mismatch in this revision; runtime linkage verified for core flows (2026-03-06), with editor/tooling coverage pending | Keep runtime/schema/editor alignment evidence updated | Low | n/a | Monitor in periodic audit |
|
|
610
|
+
|
|
611
|
+
## Source references (obrigatorio)
|
|
612
|
+
|
|
613
|
+
| Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
|
|
614
|
+
| --- | --- | --- | --- | --- |
|
|
615
|
+
| schema-metadata | projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.metadata.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
|
|
616
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
|
|
617
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-currency/material-currency.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
|
|
618
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
|
|
619
|
+
| schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
|