@praxisui/dynamic-fields 8.0.0-beta.9 → 8.0.0-beta.91

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 (98) 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 +518 -0
  8. package/docs/dynamic-fields-inline-filter-custom-component-guide.md +241 -0
  9. package/docs/dynamic-fields-inline-filter-inventory.md +250 -0
  10. package/docs/dynamic-fields-inline-filter-runtime-contract.md +394 -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 +207 -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-BYVmv78m.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 +14500 -5745
  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 +556 -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} +848 -445
  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
  98. package/fesm2022/praxisui-dynamic-fields-index-iIeaA6ko.mjs +0 -1
@@ -0,0 +1,511 @@
1
+ ---
2
+ title: "pdx-material-file-upload JSON API (Canonical)"
3
+ slug: "pdx-material-file-upload-json-api"
4
+ doc_type: "api-reference"
5
+ component: "pdx-material-file-upload"
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-file-upload."
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-file-upload/material-file-upload.metadata.ts"
22
+ - "projects/praxis-dynamic-fields/src/lib/components/material-file-upload/material-file-upload.component.ts"
23
+ - "projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.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-material-file-upload"
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: false
38
+ has_known_mismatches: false
39
+ related_components:
40
+ - "praxis-table"
41
+ - "pdx-base-input-runtime-contract"
42
+ - "pdx-material-button"
43
+ ---
44
+
45
+ # pdx-material-file-upload
46
+
47
+ Este documento e a referencia canonica da API JSON de pdx-material-file-upload.
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-material-file-upload` | 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/material-file-upload/material-file-upload.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-file-upload/material-file-upload.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/metadata/field-selector-control-type.constants.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
71
+ | Legacy paths | `false` | Segregar legado de caminhos canonicos com janela de migracao | Active | 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/material-file-upload/material-file-upload.metadata.ts | schema-metadata | Arquivo presente no repositorio e usado como evidencia de contrato. |
79
+ | projects/praxis-dynamic-fields/src/lib/components/material-file-upload/material-file-upload.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
80
+ | projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | runtime-code | 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
+ - **Deprecated**: legado suportado por janela de migracao definida.
89
+
90
+ ## Contract status snapshot
91
+
92
+ | Item | Value | Notes |
93
+ | --- | --- | --- |
94
+ | Reference mode | `canonical` | Deve permanecer canonico |
95
+ | Contract format | `json` | Contrato metadata-driven |
96
+ | Contract source | `runtime-and-code` | Alinhar com source_of_truth |
97
+ | Runtime scope | `public` | Escopo publicado para consumidores |
98
+ | Runtime verified | `true` | Revisar sempre com evidencia de runtime |
99
+ | Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
100
+ | Editor coverage verified | `false` | Revisar sempre com evidencia de editor/tooling |
101
+ | Legacy paths present | `false` | Segregar legado de contrato canonico |
102
+ | Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
103
+
104
+ ## Contract classification (obrigatorio)
105
+
106
+ ### Canonical paths (public contract)
107
+
108
+ | Path | Type | Required | Default | Status | Notes |
109
+ | --- | --- | --- | --- | --- | --- |
110
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference for runtime semantics. |
111
+ | `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
112
+ | `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
113
+ | `visible` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
114
+ | `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
115
+ | `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
116
+ | `metadata.label` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
117
+ | `metadata.hint` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
118
+
119
+ ### Supported legacy paths
120
+
121
+ Nenhum path legado suportado foi identificado nesta revisao.
122
+
123
+ ### Internal-only paths
124
+
125
+ Nao ha paths internal-only confirmados no contrato publico desta revisao.
126
+
127
+ ### Experimental paths
128
+
129
+ Nao ha paths experimentais confirmados no contrato publico desta revisao.
130
+
131
+ ## Public contract surface (obrigatorio)
132
+
133
+ ### Top-level configuration blocks
134
+
135
+ | Block | Purpose | Required | Merge strategy | Notes |
136
+ | --- | --- | --- | --- | --- |
137
+ | `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-03-06). |
138
+ | `readonlyMode` | Override de readonly no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
139
+ | `disabledMode` | Override de disabled no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
140
+ | `visible` | Override de visibilidade no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
141
+ | `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
142
+
143
+ ### Nested configuration blocks
144
+
145
+ | Path | Type | Required | Default | Constraints | Notes |
146
+ | --- | --- | --- | --- | --- | --- |
147
+ | `metadata.controlType` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
148
+ | `metadata.label` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
149
+ | `metadata.hint` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
150
+ | `metadata.placeholder` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
151
+ | `metadata.validators.*` | object | false | n/a | component-defined | Partial; verify per source_of_truth. |
152
+ | `metadata.accept` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
153
+ | `metadata.multiple` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
154
+ | `metadata.maxFileSize` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
155
+ | `metadata.allowedTypes` | string[] | false | n/a | component-defined | Partial; verify per source_of_truth. |
156
+
157
+ ### Input bindings (inbound data)
158
+
159
+ | Binding/Path | Type | Required | Source | Runtime normalization | Notes |
160
+ | --- | --- | --- | --- | --- | --- |
161
+ | `metadata` | object | true | host-json | component-defined | Primary inbound contract payload. |
162
+ | `readonlyMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
163
+ | `disabledMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
164
+ | `visible` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
165
+ | `presentationMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
166
+
167
+ ### Output events
168
+
169
+ | Event | Payload | Trigger | Stability | Notes |
170
+ | --- | --- | --- | --- | --- |
171
+ | `valueChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
172
+ | `focusChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
173
+ | `nativeBlur` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
174
+ | `nativeChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
175
+
176
+ ### External side channels
177
+
178
+ | Channel | Direction | Contract | Failure mode | Notes |
179
+ | --- | --- | --- | --- | --- |
180
+ | `host/services/storage` | bidirectional | component-defined | component-defined | Side channels variam por componente e host; verificar em source_of_truth. |
181
+
182
+ ### Host/runtime dependencies
183
+
184
+ | Dependency | Required | Environment | Purpose | Notes |
185
+ | --- | --- | --- | --- | --- |
186
+ | `material-file-upload.metadata.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-file-upload/material-file-upload.metadata.ts`. |
187
+ | `material-file-upload.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-file-upload/material-file-upload.component.ts`. |
188
+ | `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`. |
189
+
190
+ ## Coverage by surface (obrigatorio)
191
+
192
+ ### Coverage matrix (runtime, schema/type, editor/tooling)
193
+
194
+ | Surface | Verified | Coverage status | Evidence | Notes |
195
+ | --- | --- | --- | --- | --- |
196
+ | Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/material-file-upload/material-file-upload.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-file-upload/material-file-upload.component.ts` | Core runtime flows verified via focused component specs on 2026-03-06; editor/tooling coverage remains independent. |
197
+ | Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Contract paths were re-validated against metadata/runtime declarations. |
198
+ | 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. |
199
+
200
+ ### Runtime coverage boundaries
201
+
202
+ - Ambientes suportados: browser/dev/prod; SSR/hydration appears to be component-dependent unless explicitly verified.
203
+ - Pre-condicoes: payload JSON valido, bindings de host consistentes e dependencias descritas no source_of_truth.
204
+ - Fora de cobertura confirmada: caminhos internos, experimentais ou aliases nao enumerados formalmente.
205
+
206
+ ### Editor and tooling notes
207
+
208
+ - Evidencia de tooling: selector `pdx-*` mapeado em `DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP` e semeado no `ComponentRegistryService`; editor visual E2E permanece not-yet-verified.
209
+ - O que esta exposto no editor visual depende da cobertura real do workspace e nao deve ser inferido como suporte runtime total.
210
+ - Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
211
+ - Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.
212
+
213
+ ## Resolution and precedence model (obrigatorio)
214
+
215
+ ### Merge order
216
+
217
+ 1. defaults do componente
218
+ 2. contrato JSON recebido
219
+ 3. overrides de host/runtime
220
+ 4. normalizacoes internas
221
+
222
+ ### Fallback order
223
+
224
+ contrato explicito -> aliases legados (quando suportados) -> defaults internos -> comportamento seguro
225
+
226
+ ### Override points
227
+
228
+ - inputs publicos do componente
229
+ - configuracao JSON de runtime
230
+ - integracoes de host (servicos/tokens/adapters)
231
+
232
+ ### Runtime normalization
233
+
234
+ Alias e defaults devem convergir para paths canonicos; onde nao houver evidencia, manter not-yet-verified de forma explicita.
235
+
236
+ ### Precedence rules
237
+
238
+ Em conflito entre alias legado e path canonico, priorizar path canonico e registrar janela de migracao do legado.
239
+
240
+ ## Validation and error semantics (obrigatorio)
241
+
242
+ ### Validation model
243
+
244
+ | Path/Rule | Validation phase | Behavior on fail | Error code / warning | Notes |
245
+ | --- | --- | --- | --- | --- |
246
+ | canonical-paths | parse/runtime | component-defined (warn/reject/default) | not-yet-standardized | Semantica detalhada preservada na referencia tecnica por componente. |
247
+
248
+ ### Invalid and unknown field handling
249
+
250
+ - Campos desconhecidos: comportamento component-defined (ignore, warn ou reject).
251
+ - Tipos invalidos: pode haver fallback, warning ou falha, conforme runtime especifico.
252
+ - Valores fora de dominio: registrar observed vs desired em Known limitations and mismatches.
253
+
254
+ ### Fail-open / fail-closed behavior
255
+
256
+ | Condition | Mode | Runtime behavior | Consumer impact |
257
+ | --- | --- | --- | --- |
258
+ | invalid-or-unknown-field | component-defined | not-yet-verified | Pode gerar warning, fallback silencioso ou rejeicao; validar por componente. |
259
+
260
+ ### Runtime warnings vs hard failures
261
+
262
+ | Condition | Severity | Observability | Consumer action |
263
+ | --- | --- | --- | --- |
264
+ | partial-or-declared-only-coverage | warning | logs/eventos do componente | Confirmar ligacao runtime antes de uso critico. |
265
+ | mismatch-confirmed | error-or-warning | componente/host observability | Planejar migracao e corrigir contrato/runtime. |
266
+
267
+ ## Detailed API reference
268
+ ### Preserved technical reference (normalized from previous revision)
269
+
270
+ ### 1. Visao Geral e Quando Usar
271
+ `pdx-material-file-upload` e um upload basico (placeholder funcional) com `<input type="file">` simples e integracao CVA.
272
+
273
+ Use quando precisar:
274
+ - prototipar upload rapido no form;
275
+ - capturar um unico arquivo selecionado;
276
+ - evoluir depois para fluxo corporativo completo (preview/chunk/validacoes avancadas).
277
+
278
+ ### 2. API do Componente (Inputs/Outputs)
279
+ | Propriedade | Tipo | Padrao | Obrigatorio | Comportamento |
280
+ | --- | --- | --- | --- | --- |
281
+ | `metadata` | `ComponentMetadata` | - | Sim | Contrato generico do campo de upload. |
282
+ | `readonlyMode` | `boolean` | `false` | Nao | Sobrescreve leitura no host. |
283
+ | `disabledMode` | `boolean` | `false` | Nao | Sobrescreve disabled no host. |
284
+ | `visible` | `boolean` | `true` | Nao | Controla exibicao no host. |
285
+ | `presentationMode` | `boolean` | `false` | Nao | Modo apresentacao sem edicao. |
286
+ | `valueChange` | `File \| null` | - | Output base input | Arquivo selecionado no input. |
287
+
288
+ ### 3. Matriz de Cobertura JSON (Completa)
289
+ #### 3.1 Campos especificos do componente
290
+ | Caminho JSON | Tipo | Status | Comportamento em runtime |
291
+ | --- | --- | --- | --- |
292
+ | `metadata.controlType` | `'upload'` | Ativo | Identifica renderer de file upload basico. |
293
+ | `metadata.label` | `string` | Ativo | Label acima do input file. |
294
+ | `metadata.hint` | `string` | Ativo | Mensagem de apoio quando sem erro. |
295
+ | `metadata.placeholder` | `string` | Parcial | `setFileUploadMetadata` remove placeholder do estado efetivo. |
296
+ | `metadata.validators.*` | `object` | Parcial | Validacoes basicas do `SimpleBaseInput` podem atuar no control, sem parser de arquivo dedicado. |
297
+ | `metadata.accept` | `string` | Declared-only | Nao aplicado ao atributo `accept` no input atual. |
298
+ | `metadata.multiple` | `boolean` | Declared-only | Input atual usa apenas o primeiro arquivo selecionado. |
299
+ | `metadata.maxFileSize` | `number` | Declared-only | Nao ha validacao de tamanho especifica no componente. |
300
+ | `metadata.allowedTypes` | `string[]` | Declared-only | Nao ha filtro dedicado por tipo no componente atual. |
301
+
302
+ #### 3.2 Campos herdados compartilhados (exaustivo)
303
+ Contrato compartilhado de input base:
304
+ - [pdx-base-input-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md)
305
+
306
+ Resumo de composicao deste componente:
307
+ - `Ativo`: fluxo basico de selecao de um arquivo e bind no control.
308
+ - `Parcial`: placeholder e validacoes genericas do base.
309
+ - `Declared-only`: capacidade avancada de upload ainda nao implementada.
310
+
311
+ ### 4. Mapeamento de Comportamento
312
+ - Selecao: ao `change`, pega `files[0]` e grava no control.
313
+ - Valor: tipo `File | null`.
314
+ - Renderizacao: label + input file + erro/hint.
315
+ - Estado corporativo: componente se declara "placeholder" no proprio codigo.
316
+
317
+ ### 5. Exemplo Minimo (JSON + Uso)
318
+ ```json
319
+ {
320
+ "componentId": "pdx-material-file-upload",
321
+ "metadata": {
322
+ "name": "attachment",
323
+ "label": "Anexo",
324
+ "controlType": "upload"
325
+ }
326
+ }
327
+ ```
328
+ Uso: captura um arquivo unico para envio posterior.
329
+
330
+ ### 6. Exemplo Corporativo (JSON + Uso)
331
+ ```json
332
+ {
333
+ "componentId": "pdx-material-file-upload",
334
+ "metadata": {
335
+ "name": "contractFile",
336
+ "label": "Arquivo do Contrato",
337
+ "controlType": "upload",
338
+ "required": true,
339
+ "validators": {
340
+ "requiredMessage": "Arquivo obrigatorio para submissao."
341
+ },
342
+ "hint": "Formato preferencial PDF. Fluxo avancado de validacao sera aplicado no backend."
343
+ }
344
+ }
345
+ ```
346
+ Uso: etapa inicial de upload, deixando validacoes profundas para API backend.
347
+
348
+ ### 7. Troubleshooting e Armadilhas Comuns
349
+ 1. Esperar upload multiplo.
350
+ Correcao: componente atual captura somente o primeiro arquivo.
351
+
352
+ 2. Esperar filtro automatico por tipo/tamanho.
353
+ Correcao: nao ha `accept`/validacao dedicada implementada nesta versao.
354
+
355
+ 3. Placeholder nao aparece.
356
+ Correcao: `setFileUploadMetadata` remove placeholder explicitamente.
357
+
358
+ 4. Arquivo nao persiste no payload final.
359
+ Correcao: verificar serializacao de `File` no host e estrategia de envio multipart.
360
+
361
+ 5. Necessidade de preview/progresso/chunk.
362
+ Correcao: esse renderer e baseline; implementar camada avancada para cenarios enterprise.
363
+
364
+ ### 8. Cross-links
365
+ - `projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md`
366
+ - `projects/praxis-dynamic-fields/src/lib/components/material-button/pdx-material-button.json-api.md`
367
+
368
+ ### 9. Relatorio de Validacao Estrutural
369
+ - Visao geral: PASS
370
+ - API (inputs/outputs): PASS
371
+ - Cobertura JSON completa (especifico + herdado): PASS
372
+ - Mapeamento de comportamento: PASS
373
+ - Exemplo minimo: PASS
374
+ - Exemplo corporativo: PASS
375
+ - Troubleshooting: PASS
376
+
377
+ ## JSON path index (obrigatorio)
378
+
379
+ | Path | Type | Required | Default | Status | Notes |
380
+ | --- | --- | --- | --- | --- | --- |
381
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference. |
382
+ | `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
383
+ | `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
384
+ | `visible` | boolean | false | n/a | Partial | See Detailed API reference. |
385
+ | `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference. |
386
+ | `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference. |
387
+ | `metadata.label` | string | false | n/a | Partial | See Detailed API reference. |
388
+ | `metadata.hint` | string | false | n/a | Partial | See Detailed API reference. |
389
+ | `metadata.placeholder` | string | false | n/a | Partial | See Detailed API reference. |
390
+ | `metadata.validators.*` | object | false | n/a | Partial | See Detailed API reference. |
391
+ | `metadata.accept` | string | false | n/a | Partial | See Detailed API reference. |
392
+ | `metadata.multiple` | boolean | false | n/a | Partial | See Detailed API reference. |
393
+ | `metadata.maxFileSize` | number | false | n/a | Partial | See Detailed API reference. |
394
+ | `metadata.allowedTypes` | string[] | false | n/a | Partial | See Detailed API reference. |
395
+
396
+ ## Events reference (obrigatorio)
397
+
398
+ | Event | Payload | Trigger | Stability | Notes |
399
+ | --- | --- | --- | --- | --- |
400
+ | `valueChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
401
+ | `focusChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
402
+ | `nativeBlur` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
403
+ | `nativeChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
404
+
405
+ ## Styling API (obrigatorio quando aplicavel)
406
+
407
+ | Token/Class | Scope | Purpose | Notes |
408
+ | --- | --- | --- | --- |
409
+ | `not-yet-verified` | component | Styling contract not yet verified | Use Detailed API reference for component-specific styling notes. |
410
+
411
+ ## Examples (obrigatorio)
412
+
413
+ | Example | Scenario | Validates | Notes |
414
+ | --- | --- | --- | --- |
415
+ | `Minimal valid` | baseline payload | required contract blocks | Extracted from preserved technical reference when available. |
416
+ | `Common setup` | common component usage | standard runtime behavior | Validate against host integration path. |
417
+ | `Advanced setup` | richer config with overrides | precedence and normalization | Requires runtime confirmation for edge cases. |
418
+ | `Enterprise scenario` | governance/legacy/migration context | auditability and compatibility boundaries | Include tenant-specific constraints when applicable. |
419
+
420
+ ### Minimal valid
421
+
422
+ ```json
423
+ {
424
+ "componentId": "pdx-material-file-upload",
425
+ "metadata": {
426
+ "name": "attachment",
427
+ "label": "Anexo",
428
+ "controlType": "upload"
429
+ },
430
+ "readonlyMode": false
431
+ }
432
+ ```
433
+
434
+ ### Common setup
435
+
436
+ ```json
437
+ {
438
+ "componentId": "pdx-material-file-upload",
439
+ "metadata": {
440
+ "name": "contractFile",
441
+ "label": "pdx-material-file-upload-common",
442
+ "controlType": "upload",
443
+ "required": true,
444
+ "validators": {
445
+ "requiredMessage": "Arquivo obrigatorio para submissao."
446
+ },
447
+ "hint": "Formato preferencial PDF. Fluxo avancado de validacao sera aplicado no backend."
448
+ }
449
+ }
450
+ ```
451
+
452
+ ### Advanced setup
453
+
454
+ ```json
455
+ {
456
+ "componentId": "pdx-material-file-upload",
457
+ "metadata": {
458
+ "name": "contractFile",
459
+ "label": "Arquivo do Contrato",
460
+ "controlType": "upload",
461
+ "required": true,
462
+ "validators": {
463
+ "requiredMessage": "Arquivo obrigatorio para submissao."
464
+ },
465
+ "hint": "Formato preferencial PDF. Fluxo avancado de validacao sera aplicado no backend.",
466
+ "maxFileSize": 5
467
+ },
468
+ "readonlyMode": false,
469
+ "disabledMode": false
470
+ }
471
+ ```
472
+
473
+ ### Enterprise scenario
474
+
475
+ ```json
476
+ {
477
+ "componentId": "pdx-material-file-upload",
478
+ "metadata": {
479
+ "name": "contractFile",
480
+ "label": "Arquivo do Contrato",
481
+ "controlType": "upload",
482
+ "required": true,
483
+ "validators": {
484
+ "requiredMessage": "Arquivo obrigatorio para submissao."
485
+ },
486
+ "hint": "Formato preferencial PDF. Fluxo avancado de validacao sera aplicado no backend."
487
+ },
488
+ "presentationMode": true,
489
+ "visible": true
490
+ }
491
+ ```
492
+
493
+ ## Compatibility and migration notes (recomendado)
494
+
495
+ | Concern | Affected versions | Migration action | Deadline | Notes |
496
+ | --- | --- | --- | --- | --- |
497
+ | 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 |
498
+
499
+ ## Known limitations and mismatches (recomendado)
500
+
501
+ | Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
502
+ | --- | --- | --- | --- | --- | --- |
503
+ | 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 |
504
+
505
+ ## Source references (obrigatorio)
506
+
507
+ | Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
508
+ | --- | --- | --- | --- | --- |
509
+ | schema-metadata | projects/praxis-dynamic-fields/src/lib/components/material-file-upload/material-file-upload.metadata.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
510
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-file-upload/material-file-upload.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
511
+ | 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 |