@praxisui/dynamic-fields 8.0.0-beta.7 → 8.0.0-beta.71

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.
Files changed (97) hide show
  1. package/README.md +19 -0
  2. package/docs/dynamic-fields-field-catalog.md +217 -0
  3. package/docs/dynamic-fields-field-selection-guide.md +204 -0
  4. package/docs/dynamic-fields-host-custom-field-guide.md +252 -0
  5. package/docs/dynamic-fields-host-custom-field-troubleshooting.md +160 -0
  6. package/docs/dynamic-fields-inline-components-guide.md +582 -0
  7. package/docs/dynamic-fields-inline-filter-catalog.md +502 -0
  8. package/docs/dynamic-fields-inline-filter-custom-component-guide.md +241 -0
  9. package/docs/dynamic-fields-inline-filter-inventory.md +247 -0
  10. package/docs/dynamic-fields-inline-filter-runtime-contract.md +391 -0
  11. package/docs/dynamic-fields-inline-filter-selection-guide.md +419 -0
  12. package/docs/dynamic-fields-inline-filter-troubleshooting.md +201 -0
  13. package/docs/dynamic-fields-inventory.md +206 -0
  14. package/docs/dynamic-fields-playground-catalog-plan.md +243 -0
  15. package/docs/generic-crud-service.md +152 -0
  16. package/fesm2022/praxisui-dynamic-fields-index-CBogy3si.mjs +1 -0
  17. package/fesm2022/praxisui-dynamic-fields-index-CWPZdn1Y.mjs +6 -0
  18. package/fesm2022/praxisui-dynamic-fields-index-CrHhyUMO.mjs +1 -0
  19. package/fesm2022/praxisui-dynamic-fields-index-DhGo5In4.mjs +6 -0
  20. package/fesm2022/praxisui-dynamic-fields.mjs +19551 -10669
  21. package/package.json +14 -13
  22. package/src/lib/base/pdx-base-input-runtime-contract.json-api.md +526 -0
  23. package/src/lib/base/pdx-base-select-runtime-contract.json-api.md +474 -0
  24. package/src/lib/components/color-input/pdx-color-input.json-api.md +573 -0
  25. package/src/lib/components/color-picker/pdx-color-picker.json-api.md +686 -0
  26. package/src/lib/components/date-input/pdx-date-input.json-api.md +581 -0
  27. package/src/lib/components/datetime-local-input/pdx-datetime-local-input.json-api.md +560 -0
  28. package/src/lib/components/email-input/pdx-email-input.json-api.md +546 -0
  29. package/src/lib/components/field-shell/praxis-field-shell.json-api.md +523 -0
  30. package/src/lib/components/inline-async-select/pdx-inline-async-select.json-api.md +566 -0
  31. package/src/lib/components/inline-autocomplete/pdx-inline-autocomplete.json-api.md +554 -0
  32. package/src/lib/components/inline-color-label/pdx-inline-color-label.json-api.md +615 -0
  33. package/src/lib/components/inline-currency/pdx-inline-currency.json-api.md +542 -0
  34. package/src/lib/components/inline-currency-range/pdx-inline-currency-range.json-api.md +630 -0
  35. package/src/lib/components/inline-date/pdx-inline-date.json-api.md +529 -0
  36. package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +592 -0
  37. package/src/lib/components/inline-distance-radius/pdx-inline-distance-radius.json-api.md +649 -0
  38. package/src/lib/components/inline-entity-lookup/pdx-inline-entity-lookup.json-api.md +656 -0
  39. package/src/lib/components/inline-input/pdx-inline-input.json-api.md +538 -0
  40. package/src/lib/components/inline-multi-select/pdx-inline-multi-select.json-api.md +566 -0
  41. package/src/lib/components/inline-number/pdx-inline-number.json-api.md +533 -0
  42. package/src/lib/components/inline-pipeline-status/pdx-inline-pipeline-status.json-api.md +619 -0
  43. package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +605 -0
  44. package/src/lib/components/inline-rating/pdx-inline-rating.json-api.md +594 -0
  45. package/src/lib/components/inline-relative-period/pdx-inline-relative-period.json-api.md +623 -0
  46. package/src/lib/components/inline-score-priority/pdx-inline-score-priority.json-api.md +632 -0
  47. package/src/lib/components/inline-searchable-select/pdx-inline-searchable-select.json-api.md +564 -0
  48. package/src/lib/components/inline-select/pdx-inline-select.json-api.md +571 -0
  49. package/src/lib/components/inline-sentiment/pdx-inline-sentiment.json-api.md +661 -0
  50. package/src/lib/components/inline-time/pdx-inline-time.json-api.md +573 -0
  51. package/src/lib/components/inline-time-range/pdx-inline-time-range.json-api.md +635 -0
  52. package/src/lib/components/inline-toggle/pdx-inline-toggle.json-api.md +516 -0
  53. package/src/lib/components/inline-tree-select/pdx-inline-tree-select.json-api.md +637 -0
  54. package/src/lib/components/material-async-select/pdx-material-async-select.json-api.md +566 -0
  55. package/src/lib/components/material-autocomplete/pdx-material-autocomplete.json-api.md +561 -0
  56. package/src/lib/components/material-avatar/pdx-material-avatar.json-api.md +670 -0
  57. package/src/lib/components/material-button/pdx-material-button.json-api.md +572 -0
  58. package/src/lib/components/material-button-toggle/pdx-material-button-toggle.json-api.md +577 -0
  59. package/src/lib/components/material-checkbox-group/pdx-material-checkbox-group.json-api.md +611 -0
  60. package/src/lib/components/material-chips/pdx-material-chips.json-api.md +601 -0
  61. package/src/lib/components/material-colorpicker/pdx-material-colorpicker.json-api.md +545 -0
  62. package/src/lib/components/material-cpf-cnpj-input/pdx-material-cpf-cnpj-input.json-api.md +531 -0
  63. package/src/lib/components/material-currency/pdx-material-currency.json-api.md +569 -0
  64. package/src/lib/components/material-date-range/pdx-material-date-range.json-api.md +636 -0
  65. package/src/lib/components/material-datepicker/pdx-material-datepicker.json-api.md +551 -0
  66. package/src/lib/components/material-file-upload/pdx-material-file-upload.json-api.md +511 -0
  67. package/src/lib/components/material-multi-select/pdx-material-multi-select.json-api.md +596 -0
  68. package/src/lib/components/material-multi-select-tree/pdx-material-multi-select-tree.json-api.md +623 -0
  69. package/src/lib/components/material-price-range/pdx-material-price-range.json-api.md +619 -0
  70. package/src/lib/components/material-radio-group/pdx-material-radio-group.json-api.md +585 -0
  71. package/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md +664 -0
  72. package/src/lib/components/material-rating/pdx-material-rating.json-api.md +551 -0
  73. package/src/lib/components/material-searchable-select/pdx-material-searchable-select.json-api.md +602 -0
  74. package/src/lib/components/material-select/pdx-material-select.json-api.md +601 -0
  75. package/src/lib/components/material-selection-list/pdx-material-selection-list.json-api.md +607 -0
  76. package/src/lib/components/material-slide-toggle/pdx-material-slide-toggle.json-api.md +522 -0
  77. package/src/lib/components/material-slider/pdx-material-slider.json-api.md +602 -0
  78. package/src/lib/components/material-textarea/pdx-material-textarea.json-api.md +598 -0
  79. package/src/lib/components/material-timepicker/pdx-material-timepicker.json-api.md +554 -0
  80. package/src/lib/components/material-transfer-list/pdx-material-transfer-list.json-api.md +614 -0
  81. package/src/lib/components/material-tree-select/pdx-material-tree-select.json-api.md +649 -0
  82. package/src/lib/components/month-input/pdx-month-input.json-api.md +527 -0
  83. package/src/lib/components/number-input/pdx-number-input.json-api.md +594 -0
  84. package/src/lib/components/password-input/pdx-password-input.json-api.md +574 -0
  85. package/src/lib/components/pdx-material-time-range/pdx-material-time-range.json-api.md +592 -0
  86. package/src/lib/components/pdx-year-input/pdx-year-input.json-api.md +543 -0
  87. package/src/lib/components/phone-input/pdx-phone-input.json-api.md +583 -0
  88. package/src/lib/components/preload-status/pdx-preload-status.json-api.md +455 -0
  89. package/src/lib/components/search-input/pdx-search-input.json-api.md +536 -0
  90. package/src/lib/components/text-input/pdx-text-input.json-api.md +600 -0
  91. package/src/lib/components/time-input/pdx-time-input.json-api.md +546 -0
  92. package/src/lib/components/url-input/pdx-url-input.json-api.md +542 -0
  93. package/src/lib/components/week-input/pdx-week-input.json-api.md +533 -0
  94. package/{index.d.ts → types/praxisui-dynamic-fields.d.ts} +874 -440
  95. package/fesm2022/praxisui-dynamic-fields-index-C9IUU4lo.mjs +0 -1
  96. package/fesm2022/praxisui-dynamic-fields-index-GJtthzkD.mjs +0 -1
  97. package/fesm2022/praxisui-dynamic-fields-index-XvVS6lAQ.mjs +0 -1
@@ -0,0 +1,594 @@
1
+ ---
2
+ title: "pdx-inline-rating JSON API (Canonical)"
3
+ slug: "pdx-inline-rating-json-api"
4
+ doc_type: "api-reference"
5
+ component: "pdx-inline-rating"
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-inline-rating."
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/inline-rating/inline-rating.component.ts"
22
+ - "projects/praxis-dynamic-fields/src/lib/components/inline-range-slider/inline-range-slider.component.ts"
23
+ - "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
24
+ source_of_truth_last_verified: "2026-03-06"
25
+ last_updated: "2026-03-06"
26
+ toc: true
27
+ sidebar: true
28
+ tags:
29
+ - "json-api"
30
+ - "canonical-contract"
31
+ - "pdx-inline-rating"
32
+ api_stability: "canonical"
33
+ schema_verified: true
34
+ runtime_verified: true
35
+ editor_coverage_verified: false
36
+ runtime_scope: "public"
37
+ legacy_paths_present: true
38
+ has_known_mismatches: false
39
+ related_components:
40
+ - "praxis-table"
41
+ - "pdx-inline-range-slider"
42
+ - "pdx-material-range-slider"
43
+ ---
44
+
45
+ # pdx-inline-rating
46
+
47
+ Este documento e a referencia canonica da API JSON de pdx-inline-rating.
48
+
49
+ ## Summary
50
+
51
+ - Tipo documental: API reference canonica de contrato JSON.
52
+ - Source of truth: runtime e codigo declarados no frontmatter.
53
+ - Objetivo operacional: consulta rapida, auditavel e deterministica sob pressao.
54
+ - Resumo funcional: Contrato JSON metadata-driven com comportamento definido por runtime e schema associado.
55
+
56
+ ## Purpose and scope
57
+
58
+ - O componente consome payload JSON metadata-driven e expoe comportamento runtime configuravel por contrato.
59
+ - Esta referencia cobre contrato publico, classificacao de paths e semantica de cobertura (runtime/schema/editor).
60
+ - Fora de escopo: quickstart, tutorial narrativo e notas arquiteturais que nao alteram contrato publico.
61
+
62
+ ## Consulta rapida (obrigatorio)
63
+
64
+ | Regra/tema | Observado | Canonico desejado | Status | Evidencia |
65
+ | --- | --- | --- | --- | --- |
66
+ | Component id | `pdx-inline-rating` | Manter ID canonico estavel e versionado por contrato | Active | frontmatter.component |
67
+ | Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
68
+ | Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/inline-rating/inline-rating.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/inline-range-slider/inline-range-slider.component.ts` |
69
+ | Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
70
+ | Editor/tooling coverage | `false` | Editor/tooling deve espelhar somente contrato publico suportado | Partial | `projects/praxis-core/src/lib/utils/inline-filter-controls.util.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
71
+ | Path hygiene | `true` | Manter consistencia entre contrato canonico e caminhos documentados | Partial | frontmatter.legacy_paths_present |
72
+ | Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |
73
+
74
+ ## Source of truth
75
+
76
+ | Source | Kind | Notes |
77
+ | --- | --- | --- |
78
+ | projects/praxis-dynamic-fields/src/lib/components/inline-rating/inline-rating.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
79
+ | projects/praxis-dynamic-fields/src/lib/components/inline-range-slider/inline-range-slider.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
80
+ | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | schema-types | Arquivo presente no repositorio e usado como evidencia de contrato. |
81
+
82
+ ## Support legend
83
+
84
+ - **Active**: suportado em runtime e liberado para uso externo.
85
+ - **Partial**: suporte parcial, com restricoes, lacunas ou validacao incompleta.
86
+ - **Declared-only**: declarado em tipos/schema sem evidencia operacional completa.
87
+ - **Schema-only**: presente em schema/tipos sem cobertura runtime confirmada.
88
+
89
+ ## Contract status snapshot
90
+
91
+ | Item | Value | Notes |
92
+ | --- | --- | --- |
93
+ | Reference mode | `canonical` | Deve permanecer canonico |
94
+ | Contract format | `json` | Contrato metadata-driven |
95
+ | Contract source | `runtime-and-code` | Alinhar com source_of_truth |
96
+ | Runtime scope | `public` | Escopo publicado para consumidores |
97
+ | Runtime verified | `true` | Revisar sempre com evidencia de runtime |
98
+ | Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
99
+ | Editor coverage verified | `false` | Revisar sempre com evidencia de editor/tooling |
100
+ | Current path hygiene | `true` | Segregar consistencia do contrato canonico |
101
+ | Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
102
+
103
+ ## Contract classification (obrigatorio)
104
+
105
+ ### Canonical paths (public contract)
106
+
107
+ | Path | Type | Required | Default | Status | Notes |
108
+ | --- | --- | --- | --- | --- | --- |
109
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference for runtime semantics. |
110
+ | `0.5` | unknown | false | n/a | Partial | See Detailed API reference for runtime semantics. |
111
+ | `metadata.ratingIcon` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
112
+ | `metadata.prefixIcon` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
113
+ | `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference for runtime semantics. |
114
+ | `metadata.quickPresets` | array | false | 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
+
118
+ ### Path audit
119
+
120
+ | Historical path | Canonical replacement | Support window | Runtime behavior | Notes |
121
+ | --- | --- | --- | --- | --- |
122
+ | `metadata.ratingIcon` | `metadata.prefixIcon` | not-yet-defined | accepted for backward compatibility | Alias inferido da evidencia preservada; validar em runtime. |
123
+ | `metadata.ratingMin` | `metadata.min` | not-yet-defined | accepted for backward compatibility | Alias inferido da evidencia preservada; validar em runtime. |
124
+ | `metadata.ratingMax` | `metadata.max` | not-yet-defined | accepted for backward compatibility | Alias inferido da evidencia preservada; validar em runtime. |
125
+ | `metadata.itemsCount` | `metadata.max` | not-yet-defined | accepted for backward compatibility | Alias inferido da evidencia preservada; validar em runtime. |
126
+ | `metadata.ratingStep` | `metadata.step` | not-yet-defined | accepted for backward compatibility | Alias inferido da evidencia preservada; validar em runtime. |
127
+ | `metadata.icon` | `metadata.prefixIcon` | not-yet-defined | accepted for backward compatibility | Alias inferido da evidencia preservada; validar em runtime. |
128
+ | `metadata.prefixIcon` | `metadata.ratingIcon` | not-yet-defined | accepted for backward compatibility | Alias inferido da evidencia preservada; validar em runtime. |
129
+ | `metadata.ratingColors` | `metadata.ratingToneColors` | not-yet-defined | accepted for backward compatibility | Alias inferido da evidencia preservada; validar em runtime. |
130
+
131
+ ### Internal-only paths
132
+
133
+ Nao ha paths internal-only confirmados no contrato publico desta revisao.
134
+
135
+ ### Experimental paths
136
+
137
+ Nao ha paths experimentais confirmados no contrato publico desta revisao.
138
+
139
+ ## Public contract surface (obrigatorio)
140
+
141
+ ### Top-level configuration blocks
142
+
143
+ | Block | Purpose | Required | Merge strategy | Notes |
144
+ | --- | --- | --- | --- | --- |
145
+ | `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-03-06). |
146
+ | `0` | Configuracao especifica de runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
147
+ | `readonlyMode` | Override de readonly no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
148
+ | `disabledMode` | Override de disabled no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
149
+ | `visible` | Override de visibilidade no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
150
+ | `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
151
+
152
+ ### Nested configuration blocks
153
+
154
+ | Path | Type | Required | Default | Constraints | Notes |
155
+ | --- | --- | --- | --- | --- | --- |
156
+ | `0.5` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
157
+ | `metadata.ratingIcon` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
158
+ | `metadata.prefixIcon` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
159
+ | `metadata.inlineAutoSize.*` | object | false | n/a | component-defined | Partial; verify per source_of_truth. |
160
+ | `metadata.quickPresets` | array | 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
+ | `valueChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
177
+ | `focusChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
178
+ | `nativeBlur` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
179
+ | `nativeChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
180
+
181
+ ### External side channels
182
+
183
+ | Channel | Direction | Contract | Failure mode | Notes |
184
+ | --- | --- | --- | --- | --- |
185
+ | `host/services/storage` | bidirectional | component-defined | component-defined | Side channels variam por componente e host; verificar em source_of_truth. |
186
+
187
+ ### Host/runtime dependencies
188
+
189
+ | Dependency | Required | Environment | Purpose | Notes |
190
+ | --- | --- | --- | --- | --- |
191
+ | `inline-rating.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/inline-rating/inline-rating.component.ts`. |
192
+ | `inline-range-slider.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/inline-range-slider/inline-range-slider.component.ts`. |
193
+ | `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`. |
194
+
195
+ ## Coverage by surface (obrigatorio)
196
+
197
+ ### Coverage matrix (runtime, schema/type, editor/tooling)
198
+
199
+ | Surface | Verified | Coverage status | Evidence | Notes |
200
+ | --- | --- | --- | --- | --- |
201
+ | Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/inline-rating/inline-rating.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/inline-range-slider/inline-range-slider.component.ts` | Core runtime flows verified via focused component specs on 2026-03-06; editor/tooling coverage remains independent. |
202
+ | Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
203
+ | Editor/Tooling | `false` | Partial | `projects/praxis-core/src/lib/utils/inline-filter-controls.util.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` | Alias/selector tooling linkage verified for inline filters; visual editor end-to-end coverage remains not-yet-verified. |
204
+
205
+ ### Runtime coverage boundaries
206
+
207
+ - Ambientes suportados: browser/dev/prod; SSR/hydration appears to be component-dependent unless explicitly verified.
208
+ - Pre-condicoes: payload JSON valido, bindings de host consistentes e dependencias descritas no source_of_truth.
209
+ - Fora de cobertura confirmada: caminhos internos, experimentais ou aliases nao enumerados formalmente.
210
+
211
+ ### Editor and tooling notes
212
+
213
+ - Evidencia de tooling: aliases `pdx-inline-*` resolvidos por `inline-filter-controls.util.ts` e consumidos no `ComponentRegistryService`; editor visual E2E permanece not-yet-verified.
214
+ - O que esta exposto no editor visual depende da cobertura real do workspace e nao deve ser inferido como suporte runtime total.
215
+ - Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
216
+ - Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.
217
+
218
+ ## Resolution and precedence model (obrigatorio)
219
+
220
+ ### Merge order
221
+
222
+ 1. defaults do componente
223
+ 2. contrato JSON recebido
224
+ 3. overrides de host/runtime
225
+ 4. normalizacoes internas
226
+
227
+ ### Fallback order
228
+
229
+ contrato explicito -> aliases historicos (quando suportados) -> defaults internos -> comportamento seguro
230
+
231
+ ### Override points
232
+
233
+ - inputs publicos do componente
234
+ - configuracao JSON de runtime
235
+ - integracoes de host (servicos/tokens/adapters)
236
+
237
+ ### Runtime normalization
238
+
239
+ Alias e defaults devem convergir para paths canonicos; onde nao houver evidencia, manter not-yet-verified de forma explicita.
240
+
241
+ ### Precedence rules
242
+
243
+ Em conflito entre caminho historico e path canonico, priorizar path canonico e registrar janela de migracao do historico.
244
+
245
+ ## Validation and error semantics (obrigatorio)
246
+
247
+ ### Validation model
248
+
249
+ | Path/Rule | Validation phase | Behavior on fail | Error code / warning | Notes |
250
+ | --- | --- | --- | --- | --- |
251
+ | canonical-paths | parse/runtime | component-defined (warn/reject/default) | not-yet-standardized | Semantica detalhada preservada na referencia tecnica por componente. |
252
+
253
+ ### Invalid and unknown field handling
254
+
255
+ - Campos desconhecidos: comportamento component-defined (ignore, warn ou reject).
256
+ - Tipos invalidos: pode haver fallback, warning ou falha, conforme runtime especifico.
257
+ - Valores fora de dominio: registrar observed vs desired em Known limitations and mismatches.
258
+
259
+ ### Fail-open / fail-closed behavior
260
+
261
+ | Condition | Mode | Runtime behavior | Consumer impact |
262
+ | --- | --- | --- | --- |
263
+ | invalid-or-unknown-field | component-defined | not-yet-verified | Pode gerar warning, fallback silencioso ou rejeicao; validar por componente. |
264
+
265
+ ### Runtime warnings vs hard failures
266
+
267
+ | Condition | Severity | Observability | Consumer action |
268
+ | --- | --- | --- | --- |
269
+ | partial-or-declared-only-coverage | warning | logs/eventos do componente | Confirmar ligacao runtime antes de uso critico. |
270
+ | mismatch-confirmed | error-or-warning | componente/host observability | Planejar migracao e corrigir contrato/runtime. |
271
+
272
+ ## Detailed API reference
273
+ ### Preserved technical reference (normalized from previous revision)
274
+
275
+ ### 1. Visao Geral e Quando Usar
276
+ `pdx-inline-rating` e o filtro de rating inline com estrelas, slider de faixa e tema de tons (low/mid/high).
277
+
278
+ Use quando precisar:
279
+ - filtrar notas em escala (ex.: satisfacao, qualidade, risco);
280
+ - operar em modo range com destaque visual por estrelas;
281
+ - aplicar meia estrela e cores corporativas configuraveis.
282
+
283
+ ### 2. API do Componente (Inputs/Outputs)
284
+ | Propriedade | Tipo | Padrao | Obrigatorio | Comportamento |
285
+ | --- | --- | --- | --- | --- |
286
+ | `metadata` | `MaterialRangeSliderMetadata` | - | Sim | Contrato principal do rating inline. |
287
+ | `readonlyMode/disabledMode/visible/presentationMode` | `boolean` | `false/false/true/false` | Nao | Estados de host do campo inline. |
288
+ | `valueChange` | `{start:number,end:number}` | - | Output herdado | Intervalo de rating selecionado. |
289
+
290
+ ### 3. Matriz de Cobertura JSON (Completa)
291
+ #### 3.1 Campos especificos do componente
292
+ | Caminho JSON | Tipo | Status | Comportamento em runtime |
293
+ | --- | --- | --- | --- |
294
+ | `metadata.min/max` e aliases `ratingMin/ratingMax/itemsCount` | `number` | Ativo | Limites da escala de rating. |
295
+ | `metadata.step/ratingStep` | `number` | Ativo | Passo da escala. |
296
+ | `metadata.allowHalf/ratingAllowHalf` | `boolean` | Ativo | Forca passo de meia estrela quando `true`. |
297
+ | `metadata.ratingPrecision/precision` | `number\|string` | Ativo | Ajuste adicional de precisao (`0.5`/`half`). |
298
+ | `metadata.ratingIcon` / `metadata.prefixIcon` | `string` | Ativo | Icone do trigger/cabecalho. |
299
+ | `metadata.ratingToneColors/ratingColors/starColors` | `object\|array` | Ativo | Paleta para tons low/mid/high das estrelas. |
300
+ | `metadata.ratingToneLowColor/mid/highColor` | `string` | Ativo | Override direto de cor por tom. |
301
+ | `metadata.ratingGradientLowColor/midColor/highColor` | `string` | Ativo | Gradiente semantico aplicado na escala visual das estrelas. |
302
+ | `metadata.ratingBadgeColor/ratingIndicatorColor` | `string` | Ativo | Cor de badges e indicador de escala. |
303
+ | `metadata.inlineAutoSize.*` | `object` | Ativo | Largura do trigger e painel de rating. |
304
+ | `metadata.quickPresets` | `array` | Ativo | Presets herdados do range inline para faixa de rating. |
305
+
306
+ #### 3.2 Campos herdados compartilhados (exaustivo)
307
+ - `projects/praxis-dynamic-fields/src/lib/components/inlineRange/pdx-inline-range-slider.json-api.md`
308
+ - `projects/praxis-dynamic-fields/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md`
309
+
310
+ Resumo de composicao deste componente:
311
+ - `Ativo`: escala de estrelas com range e tema por tons.
312
+ - `Extensao de runtime`: aliases `rating*` para semantica de dominio.
313
+
314
+ ### 4. Mapeamento de Comportamento
315
+ - Sempre trabalha sobre valor de faixa (`start/end`) para representacao visual.
316
+ - Estrelas mudam tom conforme banda (`low/mid/high`) e selecao atual.
317
+ - Resolucao de passo prioriza `allowHalf`/`ratingAllowHalf`.
318
+ - Presets e slider usam clamp por `min/max` com snap por `step`.
319
+
320
+ ### 5. Exemplo Minimo (JSON + Uso)
321
+ ```json
322
+ {
323
+ "componentId": "pdx-inline-rating",
324
+ "metadata": {
325
+ "name": "rating",
326
+ "label": "Rating",
327
+ "controlType": "rangeSlider",
328
+ "ratingMin": 1,
329
+ "ratingMax": 5,
330
+ "ratingStep": 1
331
+ }
332
+ }
333
+ ```
334
+ Uso: filtro de rating inteiro (1 a 5).
335
+
336
+ ### 6. Exemplo Corporativo (JSON + Uso)
337
+ ```json
338
+ {
339
+ "componentId": "pdx-inline-rating",
340
+ "metadata": {
341
+ "name": "npsBand",
342
+ "label": "NPS",
343
+ "controlType": "rangeSlider",
344
+ "mode": "range",
345
+ "ratingMin": 0,
346
+ "ratingMax": 10,
347
+ "ratingAllowHalf": true,
348
+ "ratingToneLowColor": "#dc2626",
349
+ "ratingToneMidColor": "#f59e0b",
350
+ "ratingToneHighColor": "#16a34a",
351
+ "ratingBadgeColor": "#f59e0b",
352
+ "inlineAutoSize": { "minWidth": 176, "maxWidth": 320, "panelMinWidth": 280, "panelMaxWidth": 400 },
353
+ "quickPresets": [
354
+ { "id": "detractors", "label": "Detratores", "start": 0, "end": 6 },
355
+ { "id": "promoters", "label": "Promotores", "start": 9, "end": 10 }
356
+ ]
357
+ }
358
+ }
359
+ ```
360
+ Uso: filtro corporativo de percepcao com bandas de NPS.
361
+
362
+ ### 7. Troubleshooting e Armadilhas Comuns
363
+ 1. Nao aplica meia estrela.
364
+ Correcao: habilitar `allowHalf`/`ratingAllowHalf` ou `ratingPrecision=0.5`.
365
+
366
+ 2. Escala fora do esperado.
367
+ Correcao: revisar `ratingMin/ratingMax` (ou `min/max`).
368
+
369
+ 3. Cores de tom nao mudam.
370
+ Correcao: validar `ratingTone*` e fallback de paleta.
371
+
372
+ 4. Presets nao refletem no slider.
373
+ Correcao: conferir intervalos de preset dentro de `min/max`.
374
+
375
+ 5. Trigger sem icone custom.
376
+ Correcao: preencher `ratingIcon` ou `prefixIcon`.
377
+
378
+ ### 8. Cross-links
379
+ - `projects/praxis-dynamic-fields/src/lib/components/inlineRange/pdx-inline-range-slider.json-api.md`
380
+ - `projects/praxis-dynamic-fields/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md`
381
+
382
+ ### 9. Relatorio de Validacao Estrutural
383
+ - Visao geral: PASS
384
+ - API (inputs/outputs): PASS
385
+ - Cobertura JSON completa (especifico + herdado): PASS
386
+ - Mapeamento de comportamento: PASS
387
+ - Exemplo minimo: PASS
388
+ - Exemplo corporativo: PASS
389
+ - Troubleshooting: PASS
390
+
391
+ ## JSON path index (obrigatorio)
392
+
393
+ | Path | Type | Required | Default | Status | Notes |
394
+ | --- | --- | --- | --- | --- | --- |
395
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference. |
396
+ | `0.5` | unknown | false | n/a | Partial | See Detailed API reference. |
397
+ | `metadata.ratingIcon` | string | false | n/a | Partial | See Detailed API reference. |
398
+ | `metadata.prefixIcon` | string | false | n/a | Partial | See Detailed API reference. |
399
+ | `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference. |
400
+ | `metadata.quickPresets` | array | false | n/a | Partial | See Detailed API reference. |
401
+ | `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
402
+ | `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
403
+ | `visible` | boolean | false | n/a | Partial | See Detailed API reference. |
404
+ | `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference. |
405
+
406
+ ## Events reference (obrigatorio)
407
+
408
+ | Event | Payload | Trigger | Stability | Notes |
409
+ | --- | --- | --- | --- | --- |
410
+ | `valueChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
411
+ | `focusChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
412
+ | `nativeBlur` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
413
+ | `nativeChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
414
+
415
+ ## Styling API (obrigatorio quando aplicavel)
416
+
417
+ | Token/Class | Scope | Purpose | Notes |
418
+ | --- | --- | --- | --- |
419
+ | `metadata.ratingIcon` | component | Styling-related JSON path | Validate against runtime implementation. |
420
+ | `metadata.prefixIcon` | component | Styling-related JSON path | Validate against runtime implementation. |
421
+
422
+ ## Examples (obrigatorio)
423
+
424
+ | Example | Scenario | Validates | Notes |
425
+ | --- | --- | --- | --- |
426
+ | `Minimal valid` | baseline payload | required contract blocks | Extracted from preserved technical reference when available. |
427
+ | `Common setup` | common component usage | standard runtime behavior | Validate against host integration path. |
428
+ | `Advanced setup` | richer config with overrides | precedence and normalization | Requires runtime confirmation for edge cases. |
429
+ | `Enterprise scenario` | governance/legacy/migration context | auditability and compatibility boundaries | Include tenant-specific constraints when applicable. |
430
+
431
+ ### Minimal valid
432
+
433
+ ```json
434
+ {
435
+ "componentId": "pdx-inline-rating",
436
+ "metadata": {
437
+ "name": "rating",
438
+ "label": "Rating",
439
+ "controlType": "rangeSlider",
440
+ "ratingMin": 1,
441
+ "ratingMax": 5,
442
+ "ratingStep": 1
443
+ },
444
+ "readonlyMode": false
445
+ }
446
+ ```
447
+
448
+ ### Common setup
449
+
450
+ ```json
451
+ {
452
+ "componentId": "pdx-inline-rating",
453
+ "metadata": {
454
+ "name": "npsBand",
455
+ "label": "NPS",
456
+ "controlType": "rangeSlider",
457
+ "mode": "range",
458
+ "ratingMin": 0,
459
+ "ratingMax": 10,
460
+ "ratingAllowHalf": true,
461
+ "ratingToneLowColor": "#dc2626",
462
+ "ratingToneMidColor": "#f59e0b",
463
+ "ratingToneHighColor": "#16a34a",
464
+ "ratingBadgeColor": "#f59e0b",
465
+ "inlineAutoSize": {
466
+ "minWidth": 176,
467
+ "maxWidth": 320,
468
+ "panelMinWidth": 280,
469
+ "panelMaxWidth": 400
470
+ },
471
+ "quickPresets": [
472
+ {
473
+ "id": "detractors",
474
+ "label": "Detratores",
475
+ "start": 0,
476
+ "end": 6
477
+ },
478
+ {
479
+ "id": "promoters",
480
+ "label": "Promotores",
481
+ "start": 9,
482
+ "end": 10
483
+ }
484
+ ],
485
+ "ratingIcon": "pdx-inline-rating-common"
486
+ }
487
+ }
488
+ ```
489
+
490
+ ### Advanced setup
491
+
492
+ ```json
493
+ {
494
+ "componentId": "pdx-inline-rating",
495
+ "metadata": {
496
+ "name": "npsBand",
497
+ "label": "NPS",
498
+ "controlType": "rangeSlider",
499
+ "mode": "range",
500
+ "ratingMin": 0,
501
+ "ratingMax": 10,
502
+ "ratingAllowHalf": true,
503
+ "ratingToneLowColor": "#dc2626",
504
+ "ratingToneMidColor": "#f59e0b",
505
+ "ratingToneHighColor": "#16a34a",
506
+ "ratingBadgeColor": "#f59e0b",
507
+ "inlineAutoSize": {
508
+ "minWidth": 176,
509
+ "maxWidth": 320,
510
+ "panelMinWidth": 280,
511
+ "panelMaxWidth": 400
512
+ },
513
+ "quickPresets": [
514
+ {
515
+ "id": "detractors",
516
+ "label": "Detratores",
517
+ "start": 0,
518
+ "end": 6
519
+ },
520
+ {
521
+ "id": "promoters",
522
+ "label": "Promotores",
523
+ "start": 9,
524
+ "end": 10
525
+ }
526
+ ]
527
+ },
528
+ "readonlyMode": false,
529
+ "disabledMode": false
530
+ }
531
+ ```
532
+
533
+ ### Enterprise scenario
534
+
535
+ ```json
536
+ {
537
+ "componentId": "pdx-inline-rating",
538
+ "metadata": {
539
+ "name": "npsBand",
540
+ "label": "NPS",
541
+ "controlType": "rangeSlider",
542
+ "mode": "range",
543
+ "ratingMin": 0,
544
+ "ratingMax": 10,
545
+ "ratingAllowHalf": true,
546
+ "ratingToneLowColor": "#dc2626",
547
+ "ratingToneMidColor": "#f59e0b",
548
+ "ratingToneHighColor": "#16a34a",
549
+ "ratingBadgeColor": "#f59e0b",
550
+ "inlineAutoSize": {
551
+ "minWidth": 176,
552
+ "maxWidth": 320,
553
+ "panelMinWidth": 280,
554
+ "panelMaxWidth": 400
555
+ },
556
+ "quickPresets": [
557
+ {
558
+ "id": "detractors",
559
+ "label": "Detratores",
560
+ "start": 0,
561
+ "end": 6
562
+ },
563
+ {
564
+ "id": "promoters",
565
+ "label": "Promotores",
566
+ "start": 9,
567
+ "end": 10
568
+ }
569
+ ]
570
+ },
571
+ "presentationMode": true,
572
+ "visible": true
573
+ }
574
+ ```
575
+
576
+ ## Compatibility and migration notes (recomendado)
577
+
578
+ | Concern | Affected versions | Migration action | Deadline | Notes |
579
+ | --- | --- | --- | --- | --- |
580
+ | Historical aliases coexist with canonical paths | Active consumers using legacy JSON keys | Keep canonical paths for new usage and map aliases in migration backlog | not-yet-defined | Track via component-level migration issue |
581
+
582
+ ## Known limitations and mismatches (recomendado)
583
+
584
+ | Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
585
+ | --- | --- | --- | --- | --- | --- |
586
+ | 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 |
587
+
588
+ ## Source references (obrigatorio)
589
+
590
+ | Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
591
+ | --- | --- | --- | --- | --- |
592
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/components/inline-rating/inline-rating.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
593
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/components/inline-range-slider/inline-range-slider.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
594
+ | 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 |