@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,551 @@
1
+ ---
2
+ title: "pdx-material-rating JSON API (Canonical)"
3
+ slug: "pdx-material-rating-json-api"
4
+ doc_type: "api-reference"
5
+ component: "pdx-material-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-material-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/material-rating/material-rating.metadata.ts"
22
+ - "projects/praxis-dynamic-fields/src/lib/components/material-rating/material-rating.component.ts"
23
+ - "projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts"
24
+ - "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
25
+ source_of_truth_last_verified: "2026-04-27"
26
+ last_updated: "2026-04-27"
27
+ toc: true
28
+ sidebar: true
29
+ tags:
30
+ - "json-api"
31
+ - "canonical-contract"
32
+ - "pdx-material-rating"
33
+ api_stability: "canonical"
34
+ schema_verified: true
35
+ runtime_verified: true
36
+ editor_coverage_verified: false
37
+ runtime_scope: "public"
38
+ legacy_paths_present: false
39
+ has_known_mismatches: false
40
+ related_components:
41
+ - "praxis-table"
42
+ - "pdx-base-input-runtime-contract"
43
+ - "pdx-material-range-slider"
44
+ ---
45
+
46
+ # pdx-material-rating
47
+
48
+ Este documento e a referencia canonica da API JSON de pdx-material-rating.
49
+
50
+ ## Summary
51
+
52
+ - Tipo documental: API reference canonica de contrato JSON.
53
+ - Source of truth: runtime e codigo declarados no frontmatter.
54
+ - Objetivo operacional: consulta rapida, auditavel e deterministica sob pressao.
55
+ - Resumo funcional: Contrato JSON metadata-driven com comportamento definido por runtime e schema associado.
56
+
57
+ ## Purpose and scope
58
+
59
+ - O componente consome payload JSON metadata-driven e expoe comportamento runtime configuravel por contrato.
60
+ - Esta referencia cobre contrato publico, classificacao de paths e semantica de cobertura (runtime/schema/editor).
61
+ - Fora de escopo: quickstart, tutorial narrativo e notas arquiteturais que nao alteram contrato publico.
62
+
63
+ ## Consulta rapida (obrigatorio)
64
+
65
+ | Regra/tema | Observado | Canonico desejado | Status | Evidencia |
66
+ | --- | --- | --- | --- | --- |
67
+ | Component id | `pdx-material-rating` | Manter ID canonico estavel e versionado por contrato | Active | frontmatter.component |
68
+ | Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
69
+ | Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/material-rating/material-rating.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-rating/material-rating.component.ts`; focused component specs for keyboard value changes, single valueChange emission, governed disabled state and slider accessibility state, 2026-04-27 |
70
+ | Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
71
+ | 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` |
72
+ | Legacy paths | `false` | Segregar legado de caminhos canonicos com janela de migracao | Active | frontmatter.legacy_paths_present |
73
+ | Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |
74
+
75
+ ## Source of truth
76
+
77
+ | Source | Kind | Notes |
78
+ | --- | --- | --- |
79
+ | projects/praxis-dynamic-fields/src/lib/components/material-rating/material-rating.metadata.ts | schema-metadata | Arquivo presente no repositorio e usado como evidencia de contrato. |
80
+ | projects/praxis-dynamic-fields/src/lib/components/material-rating/material-rating.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
81
+ | projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
82
+ | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | schema-types | Arquivo presente no repositorio e usado como evidencia de contrato. |
83
+
84
+ ## Support legend
85
+
86
+ - **Active**: suportado em runtime e liberado para uso externo.
87
+ - **Partial**: suporte parcial, com restricoes, lacunas ou validacao incompleta.
88
+ - **Declared-only**: declarado em tipos/schema sem evidencia operacional completa.
89
+ - **Schema-only**: presente em schema/tipos sem cobertura runtime confirmada.
90
+ - **Deprecated**: legado suportado por janela de migracao definida.
91
+
92
+ ## Contract status snapshot
93
+
94
+ | Item | Value | Notes |
95
+ | --- | --- | --- |
96
+ | Reference mode | `canonical` | Deve permanecer canonico |
97
+ | Contract format | `json` | Contrato metadata-driven |
98
+ | Contract source | `runtime-and-code` | Alinhar com source_of_truth |
99
+ | Runtime scope | `public` | Escopo publicado para consumidores |
100
+ | Runtime verified | `true` | Revisar sempre com evidencia de runtime |
101
+ | Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
102
+ | Editor coverage verified | `false` | Revisar sempre com evidencia de editor/tooling |
103
+ | Legacy paths present | `false` | Segregar legado de contrato canonico |
104
+ | Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
105
+
106
+ ## Contract classification (obrigatorio)
107
+
108
+ ### Canonical paths (public contract)
109
+
110
+ | Path | Type | Required | Default | Status | Notes |
111
+ | --- | --- | --- | --- | --- | --- |
112
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference for runtime semantics. |
113
+ | `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
114
+ | `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
115
+ | `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
116
+ | `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
117
+ | `metadata.max` | number | false | n/a | Partial | See Detailed API reference for runtime semantics. |
118
+ | `metadata.itemsCount` | number | false | n/a | Partial | Alias runtime para `metadata.max` quando presente. |
119
+ | `metadata.allowHalf` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
120
+ | `metadata.precision` | number \| string | false | `1` / `item` | Partial | `0.5` or `half` enables half-step interaction; other values resolve to whole-item precision. |
121
+
122
+ ### Supported legacy paths
123
+
124
+ Nenhum path legado suportado foi identificado nesta revisao.
125
+
126
+ ### Internal-only paths
127
+
128
+ Nao ha paths internal-only confirmados no contrato publico desta revisao.
129
+
130
+ ### Experimental paths
131
+
132
+ Nao ha paths experimentais confirmados no contrato publico desta revisao.
133
+
134
+ ## Public contract surface (obrigatorio)
135
+
136
+ ### Top-level configuration blocks
137
+
138
+ | Block | Purpose | Required | Merge strategy | Notes |
139
+ | --- | --- | --- | --- | --- |
140
+ | `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-03-06). |
141
+ | `disabledMode` | Override de disabled no host/runtime | false | override | disables interaction, marks the host disabled and removes it from tab order (component specs, 2026-04-27). |
142
+ | `readonlyMode` | Override de readonly no host/runtime | false | override | readonly blocks pointer/keyboard interaction and exposes `aria-readonly` (component specs, 2026-04-27). |
143
+ | `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | presentation follows readonly semantics and exposes `aria-readonly` (component specs, 2026-04-27). |
144
+
145
+ ### Nested configuration blocks
146
+
147
+ | Path | Type | Required | Default | Constraints | Notes |
148
+ | --- | --- | --- | --- | --- | --- |
149
+ | `metadata.controlType` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
150
+ | `metadata.max` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
151
+ | `metadata.itemsCount` | number | false | n/a | component-defined | Runtime alias accepted before falling back to `metadata.max`. |
152
+ | `metadata.allowHalf` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
153
+ | `metadata.precision` | number \| string | false | `1` / `item` | component-defined | `0.5` or `half` enables half-step interaction. |
154
+ | `metadata.icon` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
155
+ | `metadata.emptyIcon` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
156
+ | `metadata.size` | `small` \| `medium` \| `large` | false | `medium` | component-defined | Size token for the visual rating glyphs. |
157
+ | `metadata.readonly` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
158
+ | `metadata.color` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
159
+
160
+ ### Input bindings (inbound data)
161
+
162
+ | Binding/Path | Type | Required | Source | Runtime normalization | Notes |
163
+ | --- | --- | --- | --- | --- | --- |
164
+ | `metadata` | object | true | host-json | component-defined | Primary inbound contract payload. |
165
+ | `disabledMode` | boolean | false | host-runtime | verified | Host-level disabled override; blocks interaction and tab focus. |
166
+ | `readonlyMode` | boolean | false | host-runtime | verified | Host-level readonly override; blocks interaction. |
167
+ | `presentationMode` | boolean | false | host-runtime | verified | Host-level presentation override; non-interactive. |
168
+
169
+ ### Output events
170
+
171
+ | Event | Payload | Trigger | Stability | Notes |
172
+ | --- | --- | --- | --- | --- |
173
+ | `valueChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
174
+ | `focusChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
175
+ | `nativeBlur` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
176
+ | `nativeChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
177
+
178
+ ### External side channels
179
+
180
+ | Channel | Direction | Contract | Failure mode | Notes |
181
+ | --- | --- | --- | --- | --- |
182
+ | `host/services/storage` | bidirectional | component-defined | component-defined | Side channels variam por componente e host; verificar em source_of_truth. |
183
+
184
+ ### Host/runtime dependencies
185
+
186
+ | Dependency | Required | Environment | Purpose | Notes |
187
+ | --- | --- | --- | --- | --- |
188
+ | `material-rating.metadata.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-rating/material-rating.metadata.ts`. |
189
+ | `material-rating.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-rating/material-rating.component.ts`. |
190
+ | `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`. |
191
+ | `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`. |
192
+
193
+ ## Coverage by surface (obrigatorio)
194
+
195
+ ### Coverage matrix (runtime, schema/type, editor/tooling)
196
+
197
+ | Surface | Verified | Coverage status | Evidence | Notes |
198
+ | --- | --- | --- | --- | --- |
199
+ | Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/material-rating/material-rating.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-rating/material-rating.component.ts` | Keyboard interaction, precision parsing, single `valueChange` emission, slider ARIA state, governed disabled state and disabled tab-order behavior verified via focused component specs on 2026-04-27; editor/tooling coverage remains independent. |
200
+ | Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
201
+ | 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. |
202
+
203
+ ### Runtime coverage boundaries
204
+
205
+ - Ambientes suportados: browser/dev/prod; SSR/hydration appears to be component-dependent unless explicitly verified.
206
+ - Pre-condicoes: payload JSON valido, bindings de host consistentes e dependencias descritas no source_of_truth.
207
+ - Fora de cobertura confirmada: caminhos internos, experimentais ou aliases nao enumerados formalmente.
208
+
209
+ ### Editor and tooling notes
210
+
211
+ - Evidencia de tooling: selector `pdx-*` mapeado em `DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP` e semeado no `ComponentRegistryService`; editor visual E2E permanece not-yet-verified.
212
+ - O que esta exposto no editor visual depende da cobertura real do workspace e nao deve ser inferido como suporte runtime total.
213
+ - Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
214
+ - Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.
215
+
216
+ ## Resolution and precedence model (obrigatorio)
217
+
218
+ ### Merge order
219
+
220
+ 1. defaults do componente
221
+ 2. contrato JSON recebido
222
+ 3. overrides de host/runtime
223
+ 4. normalizacoes internas
224
+
225
+ ### Fallback order
226
+
227
+ contrato explicito -> aliases legados (quando suportados) -> defaults internos -> comportamento seguro
228
+
229
+ ### Override points
230
+
231
+ - inputs publicos do componente
232
+ - configuracao JSON de runtime
233
+ - integracoes de host (servicos/tokens/adapters)
234
+
235
+ ### Runtime normalization
236
+
237
+ Alias e defaults devem convergir para paths canonicos; onde nao houver evidencia, manter not-yet-verified de forma explicita.
238
+
239
+ ### Precedence rules
240
+
241
+ Em conflito entre alias legado e path canonico, priorizar path canonico e registrar janela de migracao do legado.
242
+
243
+ ## Validation and error semantics (obrigatorio)
244
+
245
+ ### Validation model
246
+
247
+ | Path/Rule | Validation phase | Behavior on fail | Error code / warning | Notes |
248
+ | --- | --- | --- | --- | --- |
249
+ | canonical-paths | parse/runtime | component-defined (warn/reject/default) | not-yet-standardized | Semantica detalhada preservada na referencia tecnica por componente. |
250
+
251
+ ### Invalid and unknown field handling
252
+
253
+ - Campos desconhecidos: comportamento component-defined (ignore, warn ou reject).
254
+ - Tipos invalidos: pode haver fallback, warning ou falha, conforme runtime especifico.
255
+ - Valores fora de dominio: registrar observed vs desired em Known limitations and mismatches.
256
+
257
+ ### Fail-open / fail-closed behavior
258
+
259
+ | Condition | Mode | Runtime behavior | Consumer impact |
260
+ | --- | --- | --- | --- |
261
+ | invalid-or-unknown-field | component-defined | not-yet-verified | Pode gerar warning, fallback silencioso ou rejeicao; validar por componente. |
262
+
263
+ ### Runtime warnings vs hard failures
264
+
265
+ | Condition | Severity | Observability | Consumer action |
266
+ | --- | --- | --- | --- |
267
+ | partial-or-declared-only-coverage | warning | logs/eventos do componente | Confirmar ligacao runtime antes de uso critico. |
268
+ | mismatch-confirmed | error-or-warning | componente/host observability | Planejar migracao e corrigir contrato/runtime. |
269
+
270
+ ## Detailed API reference
271
+ ### Preserved technical reference (normalized from previous revision)
272
+
273
+ ### 1. Visao Geral e Quando Usar
274
+ `pdx-material-rating` implementa avaliacao por icones (estrela por padrao), com suporte a meia unidade e acessibilidade por teclado.
275
+
276
+ Use quando precisar:
277
+ - capturar nota visual (1..N itens);
278
+ - modo continuo ou modo item unico;
279
+ - variacao de precisao inteira ou meia unidade.
280
+
281
+ ### 2. API do Componente (Inputs/Outputs)
282
+ | Propriedade | Tipo | Padrao | Obrigatorio | Comportamento |
283
+ | --- | --- | --- | --- | --- |
284
+ | `metadata` | `MaterialRatingMetadata` | - | Sim | Contrato principal de rating. |
285
+ | `itemsCount` | `number` | `5` | Nao | Total de icones renderizados. |
286
+ | `selection` | `'continuous' \| 'single'` | `continuous` | Nao | Estrategia de preenchimento visual. |
287
+ | `precision` | `'item' \| 'half'` | `item` | Nao | Precisao da interacao. |
288
+ | `allowHalf` | `boolean` | `false` | Nao | Alias para configurar `precision='half'`. |
289
+ | `disabledMode` | `boolean` | `false` | Nao | Sobrescreve disabled no host governado. |
290
+ | `readonlyMode` | `boolean` | `false` | Nao | Sobrescreve leitura no host. |
291
+ | `presentationMode` | `boolean` | `false` | Nao | Modo apresentacao sem interacao. |
292
+ | `valueChange` | `number` | - | Output base input | Nota final selecionada. |
293
+
294
+ ### 3. Matriz de Cobertura JSON (Completa)
295
+ #### 3.1 Campos especificos do componente
296
+ | Caminho JSON | Tipo | Status | Comportamento em runtime |
297
+ | --- | --- | --- | --- |
298
+ | `metadata.controlType` | `'rating'` | Ativo | Define renderer de avaliacao por icones. |
299
+ | `metadata.max` | `number` | Ativo | Mapeado para `itemsCount`. |
300
+ | `metadata.itemsCount` | `number` | Extensao de runtime | Alias aceito para total de icones; tem precedencia sobre `metadata.max`. |
301
+ | `metadata.allowHalf` | `boolean` | Ativo | Ativa precisao de meia unidade. |
302
+ | `metadata.precision` | `number \| 'item' \| 'half'` | Ativo | `0.5` ou `half` ativa modo half; outros valores usam item inteiro. |
303
+ | `metadata.icon` | `string` | Ativo | Icone preenchido principal. |
304
+ | `metadata.emptyIcon` | `string` | Ativo | Icone outline/base. |
305
+ | `metadata.size` | `'small' \| 'medium' \| 'large'` | Ativo | Classe visual de tamanho. |
306
+ | `metadata.readonly` | `boolean` | Ativo | Mapeado para `readonlyMode`. |
307
+ | `metadata.disabled` | `boolean` | Ativo | Participa do estado efetivo disabled. |
308
+ | `metadata.color` | `ThemePalette` | Parcial | Mapeamento heuristico para `ratingColor` quando cor explicita nao vem. |
309
+ | `metadata.selection` | `'continuous' \| 'single'` | Extensao de runtime | Campo aceito em runtime, fora da interface tipada oficial. |
310
+ | `metadata.ratingColor` | `string` | Extensao de runtime | Cor de preenchimento via CSS var. |
311
+ | `metadata.outlineColor` | `string` | Extensao de runtime | Cor de contorno via CSS var. |
312
+ | `metadata.svgIcon` | `string` | Extensao de runtime | Icone SVG preenchido. |
313
+ | `metadata.svgIconOutline` | `string` | Extensao de runtime | Icone SVG de contorno. |
314
+ | `metadata.tabIndex` | `number` | Extensao de runtime | Gerencia foco do host com role slider. |
315
+ | `metadata.ariaLabel` | `string` | Extensao de runtime | Rotulo acessivel customizado. |
316
+
317
+ #### 3.2 Campos herdados compartilhados (exaustivo)
318
+ Contrato compartilhado de input base:
319
+ - [pdx-base-input-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md)
320
+
321
+ Resumo de composicao deste componente:
322
+ - `Ativo`: max/allowHalf/precision/icones/tamanho/readonly.
323
+ - `Parcial`: `color` com mapeamento heuristico.
324
+ - `Extensao de runtime`: selection, cores CSS e icones SVG.
325
+
326
+ ### 4. Mapeamento de Comportamento
327
+ - Mouse/pointer: calcula valor pelo indice do item clicado (com suporte half).
328
+ - Teclado: setas, Home/End, Enter/Espaco para controle acessivel.
329
+ - Valor: normalizado para grade de precisao (`1` ou `0.5`).
330
+ - Acessibilidade: o host expõe `role=slider`, `aria-valuemin`, `aria-valuemax`, `aria-valuenow`, `aria-valuetext`, `aria-required`, `aria-invalid`, `aria-disabled` e `aria-readonly`; os itens visuais internos ficam fora da arvore acessivel para evitar controles aninhados.
331
+ - Render: camada outline + camada fill com width 0/50/100%.
332
+
333
+ ### 5. Exemplo Minimo (JSON + Uso)
334
+ ```json
335
+ {
336
+ "componentId": "pdx-material-rating",
337
+ "metadata": {
338
+ "name": "customerRate",
339
+ "label": "Avaliacao",
340
+ "controlType": "rating",
341
+ "max": 5
342
+ }
343
+ }
344
+ ```
345
+ Uso: rating de 0 a 5 por estrelas.
346
+
347
+ ### 6. Exemplo Corporativo (JSON + Uso)
348
+ ```json
349
+ {
350
+ "componentId": "pdx-material-rating",
351
+ "metadata": {
352
+ "name": "slaScore",
353
+ "label": "Nota de SLA",
354
+ "controlType": "rating",
355
+ "max": 10,
356
+ "allowHalf": true,
357
+ "selection": "continuous",
358
+ "size": "large",
359
+ "ratingColor": "#1976d2",
360
+ "outlineColor": "#90a4ae",
361
+ "ariaLabel": "Nota de cumprimento de SLA",
362
+ "hint": "Use incrementos de 0.5 para avaliacao detalhada."
363
+ }
364
+ }
365
+ ```
366
+ Uso: avaliacao corporativa com meia unidade e tema visual customizado.
367
+
368
+ ### 7. Troubleshooting e Armadilhas Comuns
369
+ 1. Meio ponto nao funciona.
370
+ Correcao: habilitar `allowHalf=true` ou `precision=0.5`.
371
+
372
+ 2. Cor nao aplica como esperado.
373
+ Correcao: preferir `ratingColor/outlineColor`; `color` e mapeamento heuristico.
374
+
375
+ 3. Esperar campos `selection/ratingColor` tipados na interface oficial.
376
+ Correcao: sao extensoes de runtime do componente.
377
+
378
+ 4. Componente continua interativo em tela de leitura.
379
+ Correcao: combinar `readonly` em metadata com estado disabled do formulario quando necessario.
380
+
381
+ 5. Nota enviada com valor fora da grade.
382
+ Correcao: runtime normaliza valor para passos de `1` ou `0.5`.
383
+
384
+ ### 8. Cross-links
385
+ - `projects/praxis-dynamic-fields/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md`
386
+ - `projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md`
387
+
388
+ ### 9. Relatorio de Validacao Estrutural
389
+ - Visao geral: PASS
390
+ - API (inputs/outputs): PASS
391
+ - Cobertura JSON completa (especifico + herdado): PASS
392
+ - Mapeamento de comportamento: PASS
393
+ - Exemplo minimo: PASS
394
+ - Exemplo corporativo: PASS
395
+ - Troubleshooting: PASS
396
+
397
+ ## JSON path index (obrigatorio)
398
+
399
+ | Path | Type | Required | Default | Status | Notes |
400
+ | --- | --- | --- | --- | --- | --- |
401
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference. |
402
+ | `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
403
+ | `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
404
+ | `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference. |
405
+ | `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference. |
406
+ | `metadata.max` | number | false | n/a | Partial | See Detailed API reference. |
407
+ | `metadata.itemsCount` | number | false | n/a | Partial | Alias runtime para `metadata.max`. |
408
+ | `metadata.allowHalf` | boolean | false | n/a | Partial | See Detailed API reference. |
409
+ | `metadata.precision` | number \| string | false | `1` / `item` | Partial | `0.5` or `half` enables half-step interaction. |
410
+ | `metadata.icon` | string | false | n/a | Partial | See Detailed API reference. |
411
+ | `metadata.emptyIcon` | string | false | n/a | Partial | See Detailed API reference. |
412
+ | `metadata.size` | `small` \| `medium` \| `large` | false | `medium` | Partial | See Detailed API reference. |
413
+ | `metadata.readonly` | boolean | false | n/a | Partial | See Detailed API reference. |
414
+ | `metadata.color` | string | false | n/a | Partial | See Detailed API reference. |
415
+ | `metadata.selection` | unknown | false | n/a | Partial | See Detailed API reference. |
416
+ | `metadata.ratingColor` | string | false | n/a | Partial | See Detailed API reference. |
417
+ | `metadata.outlineColor` | string | false | n/a | Partial | See Detailed API reference. |
418
+ | `metadata.svgIcon` | string | false | n/a | Partial | See Detailed API reference. |
419
+ | `metadata.svgIconOutline` | unknown | false | n/a | Partial | See Detailed API reference. |
420
+ | `metadata.tabIndex` | number | false | n/a | Partial | See Detailed API reference. |
421
+ | `metadata.ariaLabel` | string | false | n/a | Partial | See Detailed API reference. |
422
+
423
+ ## Events reference (obrigatorio)
424
+
425
+ | Event | Payload | Trigger | Stability | Notes |
426
+ | --- | --- | --- | --- | --- |
427
+ | `valueChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
428
+ | `focusChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
429
+ | `nativeBlur` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
430
+ | `nativeChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
431
+
432
+ ## Styling API (obrigatorio quando aplicavel)
433
+
434
+ | Token/Class | Scope | Purpose | Notes |
435
+ | --- | --- | --- | --- |
436
+ | `metadata.icon` | component | Styling-related JSON path | Validate against runtime implementation. |
437
+ | `metadata.emptyIcon` | component | Styling-related JSON path | Validate against runtime implementation. |
438
+ | `metadata.color` | component | Styling-related JSON path | Validate against runtime implementation. |
439
+ | `metadata.ratingColor` | component | Styling-related JSON path | Validate against runtime implementation. |
440
+ | `metadata.outlineColor` | component | Styling-related JSON path | Validate against runtime implementation. |
441
+ | `metadata.svgIcon` | component | Styling-related JSON path | Validate against runtime implementation. |
442
+
443
+ ## Examples (obrigatorio)
444
+
445
+ | Example | Scenario | Validates | Notes |
446
+ | --- | --- | --- | --- |
447
+ | `Minimal valid` | baseline payload | required contract blocks | Extracted from preserved technical reference when available. |
448
+ | `Common setup` | common component usage | standard runtime behavior | Validate against host integration path. |
449
+ | `Advanced setup` | richer config with overrides | precedence and normalization | Requires runtime confirmation for edge cases. |
450
+ | `Enterprise scenario` | governance/legacy/migration context | auditability and compatibility boundaries | Include tenant-specific constraints when applicable. |
451
+
452
+ ### Minimal valid
453
+
454
+ ```json
455
+ {
456
+ "componentId": "pdx-material-rating",
457
+ "metadata": {
458
+ "name": "customerRate",
459
+ "label": "Avaliacao",
460
+ "controlType": "rating",
461
+ "max": 5
462
+ },
463
+ "readonlyMode": false
464
+ }
465
+ ```
466
+
467
+ ### Common setup
468
+
469
+ ```json
470
+ {
471
+ "componentId": "pdx-material-rating",
472
+ "metadata": {
473
+ "name": "slaScore",
474
+ "label": "Nota de SLA",
475
+ "controlType": "rating",
476
+ "max": 10,
477
+ "allowHalf": true,
478
+ "selection": "continuous",
479
+ "size": "large",
480
+ "ratingColor": "#1976d2",
481
+ "outlineColor": "#90a4ae",
482
+ "ariaLabel": "pdx-material-rating-common",
483
+ "hint": "Use incrementos de 0.5 para avaliacao detalhada."
484
+ }
485
+ }
486
+ ```
487
+
488
+ ### Advanced setup
489
+
490
+ ```json
491
+ {
492
+ "componentId": "pdx-material-rating",
493
+ "metadata": {
494
+ "name": "slaScore",
495
+ "label": "Nota de SLA",
496
+ "controlType": "rating",
497
+ "max": 5,
498
+ "allowHalf": true,
499
+ "selection": "continuous",
500
+ "size": "large",
501
+ "ratingColor": "#1976d2",
502
+ "outlineColor": "#90a4ae",
503
+ "ariaLabel": "Nota de cumprimento de SLA",
504
+ "hint": "Use incrementos de 0.5 para avaliacao detalhada."
505
+ },
506
+ "readonlyMode": false
507
+ }
508
+ ```
509
+
510
+ ### Enterprise scenario
511
+
512
+ ```json
513
+ {
514
+ "componentId": "pdx-material-rating",
515
+ "metadata": {
516
+ "name": "slaScore",
517
+ "label": "Nota de SLA",
518
+ "controlType": "rating",
519
+ "max": 10,
520
+ "allowHalf": true,
521
+ "selection": "continuous",
522
+ "size": "large",
523
+ "ratingColor": "#1976d2",
524
+ "outlineColor": "#90a4ae",
525
+ "ariaLabel": "Nota de cumprimento de SLA",
526
+ "hint": "Use incrementos de 0.5 para avaliacao detalhada."
527
+ },
528
+ "presentationMode": true
529
+ }
530
+ ```
531
+
532
+ ## Compatibility and migration notes (recomendado)
533
+
534
+ | Concern | Affected versions | Migration action | Deadline | Notes |
535
+ | --- | --- | --- | --- | --- |
536
+ | 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 |
537
+
538
+ ## Known limitations and mismatches (recomendado)
539
+
540
+ | Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
541
+ | --- | --- | --- | --- | --- | --- |
542
+ | 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 |
543
+
544
+ ## Source references (obrigatorio)
545
+
546
+ | Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
547
+ | --- | --- | --- | --- | --- |
548
+ | schema-metadata | projects/praxis-dynamic-fields/src/lib/components/material-rating/material-rating.metadata.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
549
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-rating/material-rating.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
550
+ | 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 |
551
+ | 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 |