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

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,649 @@
1
+ ---
2
+ title: "pdx-material-tree-select JSON API (Canonical)"
3
+ slug: "pdx-material-tree-select-json-api"
4
+ doc_type: "api-reference"
5
+ component: "pdx-material-tree-select"
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-tree-select."
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-tree-select/material-tree-select.metadata.ts"
22
+ - "projects/praxis-dynamic-fields/src/lib/components/material-tree-select/material-tree-select.component.ts"
23
+ - "projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts"
24
+ - "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
25
+ source_of_truth_last_verified: "2026-03-06"
26
+ last_updated: "2026-03-06"
27
+ toc: true
28
+ sidebar: true
29
+ tags:
30
+ - "json-api"
31
+ - "canonical-contract"
32
+ - "pdx-material-tree-select"
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: true
39
+ has_known_mismatches: false
40
+ related_components:
41
+ - "praxis-table"
42
+ - "pdx-base-select-runtime-contract"
43
+ - "pdx-base-input-runtime-contract"
44
+ - "pdx-material-multi-select-tree"
45
+ ---
46
+
47
+ # pdx-material-tree-select
48
+
49
+ Este documento e a referencia canonica da API JSON de pdx-material-tree-select.
50
+
51
+ ## Summary
52
+
53
+ - Tipo documental: API reference canonica de contrato JSON.
54
+ - Source of truth: runtime e codigo declarados no frontmatter.
55
+ - Objetivo operacional: consulta rapida, auditavel e deterministica sob pressao.
56
+ - Resumo funcional: Contrato JSON metadata-driven com comportamento definido por runtime e schema associado.
57
+
58
+ ## Purpose and scope
59
+
60
+ - O componente consome payload JSON metadata-driven e expoe comportamento runtime configuravel por contrato.
61
+ - Esta referencia cobre contrato publico, classificacao de paths e semantica de cobertura (runtime/schema/editor).
62
+ - Fora de escopo: quickstart, tutorial narrativo e notas arquiteturais que nao alteram contrato publico.
63
+
64
+ ## Consulta rapida (obrigatorio)
65
+
66
+ | Regra/tema | Observado | Canonico desejado | Status | Evidencia |
67
+ | --- | --- | --- | --- | --- |
68
+ | Component id | `pdx-material-tree-select` | Manter ID canonico estavel e versionado por contrato | Active | frontmatter.component |
69
+ | Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
70
+ | Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/material-tree-select/material-tree-select.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-tree-select/material-tree-select.component.ts` |
71
+ | Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
72
+ | Editor/tooling coverage | `false` | Editor/tooling deve espelhar somente contrato publico suportado | Partial | `projects/praxis-core/src/lib/metadata/field-selector-control-type.constants.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
73
+ | Legacy paths | `true` | Segregar legado de caminhos canonicos com janela de migracao | Partial | frontmatter.legacy_paths_present |
74
+ | Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |
75
+
76
+ ## Source of truth
77
+
78
+ | Source | Kind | Notes |
79
+ | --- | --- | --- |
80
+ | projects/praxis-dynamic-fields/src/lib/components/material-tree-select/material-tree-select.metadata.ts | schema-metadata | Arquivo presente no repositorio e usado como evidencia de contrato. |
81
+ | projects/praxis-dynamic-fields/src/lib/components/material-tree-select/material-tree-select.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
82
+ | projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
83
+ | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | schema-types | Arquivo presente no repositorio e usado como evidencia de contrato. |
84
+
85
+ ## Support legend
86
+
87
+ - **Active**: suportado em runtime e liberado para uso externo.
88
+ - **Partial**: suporte parcial, com restricoes, lacunas ou validacao incompleta.
89
+ - **Declared-only**: declarado em tipos/schema sem evidencia operacional completa.
90
+ - **Schema-only**: presente em schema/tipos sem cobertura runtime confirmada.
91
+ - **Deprecated**: legado suportado por janela de migracao definida.
92
+
93
+ ## Contract status snapshot
94
+
95
+ | Item | Value | Notes |
96
+ | --- | --- | --- |
97
+ | Reference mode | `canonical` | Deve permanecer canonico |
98
+ | Contract format | `json` | Contrato metadata-driven |
99
+ | Contract source | `runtime-and-code` | Alinhar com source_of_truth |
100
+ | Runtime scope | `public` | Escopo publicado para consumidores |
101
+ | Runtime verified | `true` | Revisar sempre com evidencia de runtime |
102
+ | Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
103
+ | Editor coverage verified | `false` | Revisar sempre com evidencia de editor/tooling |
104
+ | Legacy paths present | `true` | Segregar legado de contrato canonico |
105
+ | Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
106
+
107
+ ## Contract classification (obrigatorio)
108
+
109
+ ### Canonical paths (public contract)
110
+
111
+ | Path | Type | Required | Default | Status | Notes |
112
+ | --- | --- | --- | --- | --- | --- |
113
+ | `metadata` | object | true | 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
+ | `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
116
+ | `visible` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
117
+ | `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
118
+ | `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
119
+ | `metadata.nodes` | array | false | n/a | Partial | See Detailed API reference for runtime semantics. |
120
+ | `metadata.options` | array | false | n/a | Partial | See Detailed API reference for runtime semantics. |
121
+
122
+ ### Supported legacy paths
123
+
124
+ | Legacy path | Canonical replacement | Support window | Runtime behavior | Notes |
125
+ | --- | --- | --- | --- | --- |
126
+ | `metadata.options` | `metadata.nodes` | not-yet-defined | accepted for backward compatibility | Alias inferido da evidencia preservada; validar em runtime. |
127
+
128
+ ### Internal-only paths
129
+
130
+ Nao ha paths internal-only confirmados no contrato publico desta revisao.
131
+
132
+ ### Experimental paths
133
+
134
+ Nao ha paths experimentais confirmados no contrato publico desta revisao.
135
+
136
+ ## Public contract surface (obrigatorio)
137
+
138
+ ### Top-level configuration blocks
139
+
140
+ | Block | Purpose | Required | Merge strategy | Notes |
141
+ | --- | --- | --- | --- | --- |
142
+ | `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-03-06). |
143
+ | `readonlyMode` | Override de readonly no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
144
+ | `disabledMode` | Override de disabled no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
145
+ | `visible` | Override de visibilidade no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
146
+ | `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
147
+ | `node` | Configuracao especifica de runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
148
+ | `value` | Configuracao especifica de runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
149
+
150
+ ### Nested configuration blocks
151
+
152
+ | Path | Type | Required | Default | Constraints | Notes |
153
+ | --- | --- | --- | --- | --- | --- |
154
+ | `metadata.controlType` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
155
+ | `metadata.nodes` | array | false | n/a | component-defined | Partial; verify per source_of_truth. |
156
+ | `metadata.options` | array | false | n/a | component-defined | Partial; verify per source_of_truth. |
157
+ | `metadata.leafOnly` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
158
+ | `metadata.autoExpandOnSearch` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
159
+ | `metadata.returnPath` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
160
+ | `metadata.returnObject` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
161
+ | `metadata.searchable` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
162
+ | `metadata.multiple` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
163
+ | `metadata.resourcePath` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
164
+
165
+ ### Input bindings (inbound data)
166
+
167
+ | Binding/Path | Type | Required | Source | Runtime normalization | Notes |
168
+ | --- | --- | --- | --- | --- | --- |
169
+ | `metadata` | object | true | host-json | component-defined | Primary inbound contract payload. |
170
+ | `readonlyMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
171
+ | `disabledMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
172
+ | `visible` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
173
+ | `presentationMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
174
+
175
+ ### Output events
176
+
177
+ | Event | Payload | Trigger | Stability | Notes |
178
+ | --- | --- | --- | --- | --- |
179
+ | `searchTermChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
180
+ | `selectionChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
181
+ | `openedChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
182
+ | `valueChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
183
+ | `focusChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
184
+ | `nativeBlur` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
185
+ | `nativeChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
186
+
187
+ ### External side channels
188
+
189
+ | Channel | Direction | Contract | Failure mode | Notes |
190
+ | --- | --- | --- | --- | --- |
191
+ | `host/services/storage` | bidirectional | component-defined | component-defined | Side channels variam por componente e host; verificar em source_of_truth. |
192
+
193
+ ### Host/runtime dependencies
194
+
195
+ | Dependency | Required | Environment | Purpose | Notes |
196
+ | --- | --- | --- | --- | --- |
197
+ | `material-tree-select.metadata.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-tree-select/material-tree-select.metadata.ts`. |
198
+ | `material-tree-select.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-tree-select/material-tree-select.component.ts`. |
199
+ | `simple-base-select.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts`. |
200
+ | `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`. |
201
+
202
+ ## Coverage by surface (obrigatorio)
203
+
204
+ ### Coverage matrix (runtime, schema/type, editor/tooling)
205
+
206
+ | Surface | Verified | Coverage status | Evidence | Notes |
207
+ | --- | --- | --- | --- | --- |
208
+ | Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/material-tree-select/material-tree-select.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-tree-select/material-tree-select.component.ts` | Core runtime flows verified via focused component specs on 2026-03-06; editor/tooling coverage remains independent. |
209
+ | Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
210
+ | 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. |
211
+
212
+ ### Runtime coverage boundaries
213
+
214
+ - Ambientes suportados: browser/dev/prod; SSR/hydration appears to be component-dependent unless explicitly verified.
215
+ - Pre-condicoes: payload JSON valido, bindings de host consistentes e dependencias descritas no source_of_truth.
216
+ - Fora de cobertura confirmada: caminhos internos, experimentais ou aliases nao enumerados formalmente.
217
+
218
+ ### Editor and tooling notes
219
+
220
+ - Evidencia de tooling: selector `pdx-*` mapeado em `DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP` e semeado no `ComponentRegistryService`; editor visual E2E permanece not-yet-verified.
221
+ - O que esta exposto no editor visual depende da cobertura real do workspace e nao deve ser inferido como suporte runtime total.
222
+ - Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
223
+ - Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.
224
+
225
+ ## Resolution and precedence model (obrigatorio)
226
+
227
+ ### Merge order
228
+
229
+ 1. defaults do componente
230
+ 2. contrato JSON recebido
231
+ 3. overrides de host/runtime
232
+ 4. normalizacoes internas
233
+
234
+ ### Fallback order
235
+
236
+ contrato explicito -> aliases legados (quando suportados) -> defaults internos -> comportamento seguro
237
+
238
+ ### Override points
239
+
240
+ - inputs publicos do componente
241
+ - configuracao JSON de runtime
242
+ - integracoes de host (servicos/tokens/adapters)
243
+
244
+ ### Runtime normalization
245
+
246
+ Alias e defaults devem convergir para paths canonicos; onde nao houver evidencia, manter not-yet-verified de forma explicita.
247
+
248
+ ### Precedence rules
249
+
250
+ Em conflito entre alias legado e path canonico, priorizar path canonico e registrar janela de migracao do legado.
251
+
252
+ ## Validation and error semantics (obrigatorio)
253
+
254
+ ### Validation model
255
+
256
+ | Path/Rule | Validation phase | Behavior on fail | Error code / warning | Notes |
257
+ | --- | --- | --- | --- | --- |
258
+ | canonical-paths | parse/runtime | component-defined (warn/reject/default) | not-yet-standardized | Semantica detalhada preservada na referencia tecnica por componente. |
259
+
260
+ ### Invalid and unknown field handling
261
+
262
+ - Campos desconhecidos: comportamento component-defined (ignore, warn ou reject).
263
+ - Tipos invalidos: pode haver fallback, warning ou falha, conforme runtime especifico.
264
+ - Valores fora de dominio: registrar observed vs desired em Known limitations and mismatches.
265
+
266
+ ### Fail-open / fail-closed behavior
267
+
268
+ | Condition | Mode | Runtime behavior | Consumer impact |
269
+ | --- | --- | --- | --- |
270
+ | invalid-or-unknown-field | component-defined | not-yet-verified | Pode gerar warning, fallback silencioso ou rejeicao; validar por componente. |
271
+
272
+ ### Runtime warnings vs hard failures
273
+
274
+ | Condition | Severity | Observability | Consumer action |
275
+ | --- | --- | --- | --- |
276
+ | partial-or-declared-only-coverage | warning | logs/eventos do componente | Confirmar ligacao runtime antes de uso critico. |
277
+ | mismatch-confirmed | error-or-warning | componente/host observability | Planejar migracao e corrigir contrato/runtime. |
278
+
279
+ ## Detailed API reference
280
+ ### Preserved technical reference (normalized from previous revision)
281
+
282
+ ### 1. Visao Geral e Quando Usar
283
+ `pdx-material-tree-select` e um seletor hierarquico (arvore) com selecao unica, busca local e navegacao por teclado.
284
+
285
+ Use quando precisar:
286
+ - escolher um item em estrutura pai-filho;
287
+ - devolver valor simples, caminho completo ou objeto do no;
288
+ - controlar selecao apenas em folhas (`leafOnly`).
289
+
290
+ ### 2. API do Componente (Inputs/Outputs)
291
+ | Propriedade | Tipo | Padrao | Obrigatorio | Comportamento |
292
+ | --- | --- | --- | --- | --- |
293
+ | `metadata` | `MaterialTreeSelectMetadata` | - | Sim | Contrato principal da arvore. |
294
+ | `readonlyMode` | `boolean` | `false` | Nao | Sobrescreve leitura no host. |
295
+ | `disabledMode` | `boolean` | `false` | Nao | Sobrescreve disabled no host. |
296
+ | `visible` | `boolean` | `true` | Nao | Controla exibicao no host. |
297
+ | `presentationMode` | `boolean` | `false` | Nao | Modo apresentacao sem edicao. |
298
+ | `selectionChange` | `any` | - | Output herdado | Valor selecionado (simples/caminho/objeto). |
299
+ | `valueChange` | `any` | - | Output base input | Mudanca de valor no control principal. |
300
+
301
+ ### 3. Matriz de Cobertura JSON (Completa)
302
+ #### 3.1 Campos especificos do componente
303
+ | Caminho JSON | Tipo | Status | Comportamento em runtime |
304
+ | --- | --- | --- | --- |
305
+ | `metadata.controlType` | `'treeSelect'` | Ativo | Seleciona renderer de arvore com selecao unica. |
306
+ | `metadata.nodes` | `MaterialTreeNode[]` | Ativo | Fonte principal da estrutura hierarquica. |
307
+ | `metadata.options` | `Array<any>` | Extensao de runtime | Alias legado para `nodes`. |
308
+ | `metadata.leafOnly` | `boolean` | Ativo | Quando `true`, nos com filhos ficam nao selecionaveis. |
309
+ | `metadata.autoExpandOnSearch` | `boolean` | Ativo | Expande nos durante busca quando habilitado. |
310
+ | `metadata.returnPath` | `boolean` | Ativo | Retorna array de valores do caminho ate o no. |
311
+ | `metadata.returnObject` | `boolean` | Ativo | Retorna objeto completo do no selecionado. |
312
+ | `metadata.searchable` | `boolean` | Parcial | Contrato existe, mas componente forca busca ativa no setup. |
313
+ | `metadata.multiple` | `boolean` | Parcial | Campo herdado, porem componente forca selecao unica. |
314
+ | `metadata.resourcePath` | `string` | Parcial | Base carrega opcoes, mas arvore nao reconstrui automaticamente dos dados remotos. |
315
+ | `metadata.filterCriteria` | `Record<string, any>` | Parcial | Segue mesma limitacao da carga remota acima. |
316
+ | `metadata.optionLabelKey` | `string` | Parcial | Aplicado na carga base, sem binding direto na reconstrucao da arvore. |
317
+ | `metadata.optionValueKey` | `string` | Parcial | Aplicado na carga base, sem binding direto na reconstrucao da arvore. |
318
+ | `metadata.selectAll` | `boolean` | Declared-only | Sem comportamento de selecionar todos neste componente. |
319
+ | `metadata.maxSelections` | `number` | Declared-only | Nao aplicavel em selecao unica. |
320
+
321
+ #### 3.2 Campos herdados compartilhados (exaustivo)
322
+ Contrato completo compartilhado para selects:
323
+ - [pdx-base-select-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-select-runtime-contract.json-api.md)
324
+
325
+ Contrato compartilhado de input base:
326
+ - [pdx-base-input-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md)
327
+
328
+ Resumo de composicao deste componente:
329
+ - `Ativo`: `nodes`, `leafOnly`, `autoExpandOnSearch`, `returnPath`, `returnObject`.
330
+ - `Parcial`: campos remotos do base select sem reconstrucao automatica da arvore.
331
+ - `Extensao de runtime`: alias `options`.
332
+
333
+ ### 4. Mapeamento de Comportamento
334
+ - Selecao: sempre unica (`multiple=false`).
335
+ - Valor retornado:
336
+ - default: `node.value`.
337
+ - `returnPath=true`: array de `value` do caminho.
338
+ - `returnObject=true`: objeto completo do no.
339
+ - Busca: filtra localmente a arvore e pode expandir tudo quando ha termo.
340
+ - Teclado: Enter/Espaco seleciona, setas navegam/expandem/recolhem.
341
+
342
+ ### 5. Exemplo Minimo (JSON + Uso)
343
+ ```json
344
+ {
345
+ "componentId": "pdx-material-tree-select",
346
+ "metadata": {
347
+ "name": "category",
348
+ "label": "Categoria",
349
+ "controlType": "treeSelect",
350
+ "nodes": [
351
+ {
352
+ "label": "Financeiro",
353
+ "value": "FIN",
354
+ "children": [
355
+ { "label": "Contas a Pagar", "value": "FIN-AP" }
356
+ ]
357
+ }
358
+ ]
359
+ }
360
+ }
361
+ ```
362
+ Uso: seleciona um no de arvore com retorno simples (`value`).
363
+
364
+ ### 6. Exemplo Corporativo (JSON + Uso)
365
+ ```json
366
+ {
367
+ "componentId": "pdx-material-tree-select",
368
+ "metadata": {
369
+ "name": "costCenterNode",
370
+ "label": "Centro de Custo",
371
+ "controlType": "treeSelect",
372
+ "leafOnly": true,
373
+ "autoExpandOnSearch": true,
374
+ "returnPath": true,
375
+ "nodes": [
376
+ {
377
+ "label": "Corporativo",
378
+ "value": "CORP",
379
+ "children": [
380
+ {
381
+ "label": "Diretoria",
382
+ "value": "CORP-DIR",
383
+ "children": [
384
+ { "label": "Operacoes", "value": "CORP-DIR-OPS" }
385
+ ]
386
+ }
387
+ ]
388
+ }
389
+ ],
390
+ "clearButton": {
391
+ "enabled": true,
392
+ "showOnlyWhenFilled": true
393
+ },
394
+ "hint": "Selecione um no folha do plano corporativo."
395
+ }
396
+ }
397
+ ```
398
+ Uso: devolve caminho hierarquico para persistir trilha organizacional.
399
+
400
+ ### 7. Troubleshooting e Armadilhas Comuns
401
+ 1. No pai nao seleciona.
402
+ Correcao: com `leafOnly=true`, apenas folhas sao validas.
403
+
404
+ 2. Esperar multipla selecao.
405
+ Correcao: este componente e de selecao unica; use `pdx-material-multi-select-tree`.
406
+
407
+ 3. Busca nao filtra como esperado.
408
+ Correcao: busca e por `label` local e case-insensitive.
409
+
410
+ 4. Backend remoto retorna itens, mas arvore nao atualiza.
411
+ Correcao: hoje a reconstrucao automatica de nos remotos e parcial; preferir enviar `nodes` prontos.
412
+
413
+ 5. Retorno vem em formato diferente.
414
+ Correcao: alinhar `returnPath` e `returnObject` conforme contrato desejado.
415
+
416
+ ### 8. Cross-links
417
+ - `projects/praxis-dynamic-fields/src/lib/components/material-multi-select-tree/pdx-material-multi-select-tree.json-api.md`
418
+ - `projects/praxis-dynamic-fields/src/lib/base/pdx-base-select-runtime-contract.json-api.md`
419
+ - `projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md`
420
+
421
+ ### 9. Relatorio de Validacao Estrutural
422
+ - Visao geral: PASS
423
+ - API (inputs/outputs): PASS
424
+ - Cobertura JSON completa (especifico + herdado): PASS
425
+ - Mapeamento de comportamento: PASS
426
+ - Exemplo minimo: PASS
427
+ - Exemplo corporativo: PASS
428
+ - Troubleshooting: PASS
429
+
430
+ ## JSON path index (obrigatorio)
431
+
432
+ | Path | Type | Required | Default | Status | Notes |
433
+ | --- | --- | --- | --- | --- | --- |
434
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference. |
435
+ | `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
436
+ | `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
437
+ | `visible` | boolean | false | n/a | Partial | See Detailed API reference. |
438
+ | `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference. |
439
+ | `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference. |
440
+ | `metadata.nodes` | array | false | n/a | Partial | See Detailed API reference. |
441
+ | `metadata.options` | array | false | n/a | Partial | See Detailed API reference. |
442
+ | `metadata.leafOnly` | boolean | false | n/a | Partial | See Detailed API reference. |
443
+ | `metadata.autoExpandOnSearch` | unknown | false | n/a | Partial | See Detailed API reference. |
444
+ | `metadata.returnPath` | string | false | n/a | Partial | See Detailed API reference. |
445
+ | `metadata.returnObject` | boolean | false | n/a | Partial | See Detailed API reference. |
446
+ | `metadata.searchable` | boolean | false | n/a | Partial | See Detailed API reference. |
447
+ | `metadata.multiple` | boolean | false | n/a | Partial | See Detailed API reference. |
448
+ | `metadata.resourcePath` | string | false | n/a | Partial | See Detailed API reference. |
449
+ | `metadata.filterCriteria` | unknown | false | n/a | Partial | See Detailed API reference. |
450
+ | `metadata.optionLabelKey` | string | false | n/a | Partial | See Detailed API reference. |
451
+ | `metadata.optionValueKey` | string | false | n/a | Partial | See Detailed API reference. |
452
+ | `metadata.selectAll` | boolean | false | n/a | Partial | See Detailed API reference. |
453
+ | `metadata.maxSelections` | number | false | n/a | Partial | See Detailed API reference. |
454
+
455
+ ## Events reference (obrigatorio)
456
+
457
+ | Event | Payload | Trigger | Stability | Notes |
458
+ | --- | --- | --- | --- | --- |
459
+ | `searchTermChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
460
+ | `selectionChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
461
+ | `openedChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
462
+ | `valueChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
463
+ | `focusChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
464
+ | `nativeBlur` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
465
+ | `nativeChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
466
+
467
+ ## Styling API (obrigatorio quando aplicavel)
468
+
469
+ | Token/Class | Scope | Purpose | Notes |
470
+ | --- | --- | --- | --- |
471
+ | `not-yet-verified` | component | Styling contract not yet verified | Use Detailed API reference for component-specific styling notes. |
472
+
473
+ ## Examples (obrigatorio)
474
+
475
+ | Example | Scenario | Validates | Notes |
476
+ | --- | --- | --- | --- |
477
+ | `Minimal valid` | baseline payload | required contract blocks | Extracted from preserved technical reference when available. |
478
+ | `Common setup` | common component usage | standard runtime behavior | Validate against host integration path. |
479
+ | `Advanced setup` | richer config with overrides | precedence and normalization | Requires runtime confirmation for edge cases. |
480
+ | `Enterprise scenario` | governance/legacy/migration context | auditability and compatibility boundaries | Include tenant-specific constraints when applicable. |
481
+
482
+ ### Minimal valid
483
+
484
+ ```json
485
+ {
486
+ "componentId": "pdx-material-tree-select",
487
+ "metadata": {
488
+ "name": "category",
489
+ "label": "Categoria",
490
+ "controlType": "treeSelect",
491
+ "nodes": [
492
+ {
493
+ "label": "Financeiro",
494
+ "value": "FIN",
495
+ "children": [
496
+ {
497
+ "label": "Contas a Pagar",
498
+ "value": "FIN-AP"
499
+ }
500
+ ]
501
+ }
502
+ ]
503
+ },
504
+ "readonlyMode": false
505
+ }
506
+ ```
507
+
508
+ ### Common setup
509
+
510
+ ```json
511
+ {
512
+ "componentId": "pdx-material-tree-select",
513
+ "metadata": {
514
+ "name": "costCenterNode",
515
+ "label": "Centro de Custo",
516
+ "controlType": "pdx-material-tree-select-common",
517
+ "leafOnly": true,
518
+ "autoExpandOnSearch": true,
519
+ "returnPath": true,
520
+ "nodes": [
521
+ {
522
+ "label": "Corporativo",
523
+ "value": "CORP",
524
+ "children": [
525
+ {
526
+ "label": "Diretoria",
527
+ "value": "CORP-DIR",
528
+ "children": [
529
+ {
530
+ "label": "Operacoes",
531
+ "value": "CORP-DIR-OPS"
532
+ }
533
+ ]
534
+ }
535
+ ]
536
+ }
537
+ ],
538
+ "clearButton": {
539
+ "enabled": true,
540
+ "showOnlyWhenFilled": true
541
+ },
542
+ "hint": "Selecione um no folha do plano corporativo."
543
+ }
544
+ }
545
+ ```
546
+
547
+ ### Advanced setup
548
+
549
+ ```json
550
+ {
551
+ "componentId": "pdx-material-tree-select",
552
+ "metadata": {
553
+ "name": "costCenterNode",
554
+ "label": "Centro de Custo",
555
+ "controlType": "treeSelect",
556
+ "leafOnly": true,
557
+ "autoExpandOnSearch": true,
558
+ "returnPath": true,
559
+ "nodes": [
560
+ {
561
+ "label": "Corporativo",
562
+ "value": "CORP",
563
+ "children": [
564
+ {
565
+ "label": "Diretoria",
566
+ "value": "CORP-DIR",
567
+ "children": [
568
+ {
569
+ "label": "Operacoes",
570
+ "value": "CORP-DIR-OPS"
571
+ }
572
+ ]
573
+ }
574
+ ]
575
+ }
576
+ ],
577
+ "clearButton": {
578
+ "enabled": true,
579
+ "showOnlyWhenFilled": true
580
+ },
581
+ "hint": "Selecione um no folha do plano corporativo.",
582
+ "maxSelections": 5
583
+ },
584
+ "readonlyMode": false,
585
+ "disabledMode": false
586
+ }
587
+ ```
588
+
589
+ ### Enterprise scenario
590
+
591
+ ```json
592
+ {
593
+ "componentId": "pdx-material-tree-select",
594
+ "metadata": {
595
+ "name": "costCenterNode",
596
+ "label": "Centro de Custo",
597
+ "controlType": "treeSelect",
598
+ "leafOnly": true,
599
+ "autoExpandOnSearch": true,
600
+ "returnPath": true,
601
+ "nodes": [
602
+ {
603
+ "label": "Corporativo",
604
+ "value": "CORP",
605
+ "children": [
606
+ {
607
+ "label": "Diretoria",
608
+ "value": "CORP-DIR",
609
+ "children": [
610
+ {
611
+ "label": "Operacoes",
612
+ "value": "CORP-DIR-OPS"
613
+ }
614
+ ]
615
+ }
616
+ ]
617
+ }
618
+ ],
619
+ "clearButton": {
620
+ "enabled": true,
621
+ "showOnlyWhenFilled": true
622
+ },
623
+ "hint": "Selecione um no folha do plano corporativo."
624
+ },
625
+ "presentationMode": true,
626
+ "visible": true
627
+ }
628
+ ```
629
+
630
+ ## Compatibility and migration notes (recomendado)
631
+
632
+ | Concern | Affected versions | Migration action | Deadline | Notes |
633
+ | --- | --- | --- | --- | --- |
634
+ | Legacy 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 |
635
+
636
+ ## Known limitations and mismatches (recomendado)
637
+
638
+ | Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
639
+ | --- | --- | --- | --- | --- | --- |
640
+ | 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 |
641
+
642
+ ## Source references (obrigatorio)
643
+
644
+ | Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
645
+ | --- | --- | --- | --- | --- |
646
+ | schema-metadata | projects/praxis-dynamic-fields/src/lib/components/material-tree-select/material-tree-select.metadata.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
647
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-tree-select/material-tree-select.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
648
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
649
+ | 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 |