@praxisui/dynamic-fields 8.0.0-beta.2 → 8.0.0-beta.20

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 (93) hide show
  1. package/README.md +13 -0
  2. package/docs/dynamic-fields-field-catalog.md +217 -0
  3. package/docs/dynamic-fields-field-selection-guide.md +181 -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 +580 -0
  7. package/docs/dynamic-fields-inline-filter-catalog.md +497 -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 +367 -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-CrHhyUMO.mjs +1 -0
  18. package/fesm2022/praxisui-dynamic-fields.mjs +15146 -8952
  19. package/index.d.ts +691 -393
  20. package/package.json +4 -4
  21. package/src/lib/base/pdx-base-input-runtime-contract.json-api.md +497 -0
  22. package/src/lib/base/pdx-base-select-runtime-contract.json-api.md +474 -0
  23. package/src/lib/components/color-input/pdx-color-input.json-api.md +573 -0
  24. package/src/lib/components/color-picker/pdx-color-picker.json-api.md +686 -0
  25. package/src/lib/components/date-input/pdx-date-input.json-api.md +581 -0
  26. package/src/lib/components/datetime-local-input/pdx-datetime-local-input.json-api.md +560 -0
  27. package/src/lib/components/email-input/pdx-email-input.json-api.md +546 -0
  28. package/src/lib/components/field-shell/praxis-field-shell.json-api.md +522 -0
  29. package/src/lib/components/inline-async-select/pdx-inline-async-select.json-api.md +566 -0
  30. package/src/lib/components/inline-autocomplete/pdx-inline-autocomplete.json-api.md +554 -0
  31. package/src/lib/components/inline-color-label/pdx-inline-color-label.json-api.md +615 -0
  32. package/src/lib/components/inline-currency/pdx-inline-currency.json-api.md +542 -0
  33. package/src/lib/components/inline-currency-range/pdx-inline-currency-range.json-api.md +630 -0
  34. package/src/lib/components/inline-date/pdx-inline-date.json-api.md +529 -0
  35. package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +589 -0
  36. package/src/lib/components/inline-distance-radius/pdx-inline-distance-radius.json-api.md +649 -0
  37. package/src/lib/components/inline-entity-lookup/pdx-inline-entity-lookup.json-api.md +617 -0
  38. package/src/lib/components/inline-input/pdx-inline-input.json-api.md +538 -0
  39. package/src/lib/components/inline-multi-select/pdx-inline-multi-select.json-api.md +566 -0
  40. package/src/lib/components/inline-number/pdx-inline-number.json-api.md +533 -0
  41. package/src/lib/components/inline-pipeline-status/pdx-inline-pipeline-status.json-api.md +619 -0
  42. package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +605 -0
  43. package/src/lib/components/inline-rating/pdx-inline-rating.json-api.md +594 -0
  44. package/src/lib/components/inline-relative-period/pdx-inline-relative-period.json-api.md +623 -0
  45. package/src/lib/components/inline-score-priority/pdx-inline-score-priority.json-api.md +632 -0
  46. package/src/lib/components/inline-searchable-select/pdx-inline-searchable-select.json-api.md +564 -0
  47. package/src/lib/components/inline-select/pdx-inline-select.json-api.md +571 -0
  48. package/src/lib/components/inline-sentiment/pdx-inline-sentiment.json-api.md +661 -0
  49. package/src/lib/components/inline-time/pdx-inline-time.json-api.md +573 -0
  50. package/src/lib/components/inline-time-range/pdx-inline-time-range.json-api.md +635 -0
  51. package/src/lib/components/inline-toggle/pdx-inline-toggle.json-api.md +516 -0
  52. package/src/lib/components/inline-tree-select/pdx-inline-tree-select.json-api.md +637 -0
  53. package/src/lib/components/material-async-select/pdx-material-async-select.json-api.md +566 -0
  54. package/src/lib/components/material-autocomplete/pdx-material-autocomplete.json-api.md +561 -0
  55. package/src/lib/components/material-avatar/pdx-material-avatar.json-api.md +666 -0
  56. package/src/lib/components/material-button/pdx-material-button.json-api.md +572 -0
  57. package/src/lib/components/material-button-toggle/pdx-material-button-toggle.json-api.md +577 -0
  58. package/src/lib/components/material-checkbox-group/pdx-material-checkbox-group.json-api.md +611 -0
  59. package/src/lib/components/material-chips/pdx-material-chips.json-api.md +601 -0
  60. package/src/lib/components/material-colorpicker/pdx-material-colorpicker.json-api.md +545 -0
  61. package/src/lib/components/material-cpf-cnpj-input/pdx-material-cpf-cnpj-input.json-api.md +531 -0
  62. package/src/lib/components/material-currency/pdx-material-currency.json-api.md +569 -0
  63. package/src/lib/components/material-date-range/pdx-material-date-range.json-api.md +623 -0
  64. package/src/lib/components/material-datepicker/pdx-material-datepicker.json-api.md +537 -0
  65. package/src/lib/components/material-file-upload/pdx-material-file-upload.json-api.md +511 -0
  66. package/src/lib/components/material-multi-select/pdx-material-multi-select.json-api.md +596 -0
  67. package/src/lib/components/material-multi-select-tree/pdx-material-multi-select-tree.json-api.md +623 -0
  68. package/src/lib/components/material-price-range/pdx-material-price-range.json-api.md +616 -0
  69. package/src/lib/components/material-radio-group/pdx-material-radio-group.json-api.md +585 -0
  70. package/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md +664 -0
  71. package/src/lib/components/material-rating/pdx-material-rating.json-api.md +551 -0
  72. package/src/lib/components/material-searchable-select/pdx-material-searchable-select.json-api.md +602 -0
  73. package/src/lib/components/material-select/pdx-material-select.json-api.md +601 -0
  74. package/src/lib/components/material-selection-list/pdx-material-selection-list.json-api.md +607 -0
  75. package/src/lib/components/material-slide-toggle/pdx-material-slide-toggle.json-api.md +522 -0
  76. package/src/lib/components/material-slider/pdx-material-slider.json-api.md +602 -0
  77. package/src/lib/components/material-textarea/pdx-material-textarea.json-api.md +598 -0
  78. package/src/lib/components/material-timepicker/pdx-material-timepicker.json-api.md +554 -0
  79. package/src/lib/components/material-transfer-list/pdx-material-transfer-list.json-api.md +614 -0
  80. package/src/lib/components/material-tree-select/pdx-material-tree-select.json-api.md +649 -0
  81. package/src/lib/components/month-input/pdx-month-input.json-api.md +527 -0
  82. package/src/lib/components/number-input/pdx-number-input.json-api.md +594 -0
  83. package/src/lib/components/password-input/pdx-password-input.json-api.md +574 -0
  84. package/src/lib/components/pdx-material-time-range/pdx-material-time-range.json-api.md +592 -0
  85. package/src/lib/components/pdx-year-input/pdx-year-input.json-api.md +543 -0
  86. package/src/lib/components/phone-input/pdx-phone-input.json-api.md +583 -0
  87. package/src/lib/components/preload-status/pdx-preload-status.json-api.md +455 -0
  88. package/src/lib/components/search-input/pdx-search-input.json-api.md +536 -0
  89. package/src/lib/components/text-input/pdx-text-input.json-api.md +600 -0
  90. package/src/lib/components/time-input/pdx-time-input.json-api.md +546 -0
  91. package/src/lib/components/url-input/pdx-url-input.json-api.md +542 -0
  92. package/src/lib/components/week-input/pdx-week-input.json-api.md +533 -0
  93. package/fesm2022/praxisui-dynamic-fields-index-XvVS6lAQ.mjs +0 -1
@@ -0,0 +1,617 @@
1
+ ---
2
+ title: "pdx-inline-entity-lookup JSON API (Canonical)"
3
+ slug: "pdx-inline-entity-lookup-json-api"
4
+ doc_type: "api-reference"
5
+ component: "pdx-inline-entity-lookup"
6
+ document_kind: "json-api-canonical"
7
+ reference_mode: "canonical"
8
+ contract_format: "json"
9
+ contract_source: "runtime-and-code"
10
+ description: "Referencia canonica do contrato JSON do componente pdx-inline-entity-lookup."
11
+ category: "components"
12
+ sub_category: "dynamic-fields"
13
+ audience:
14
+ - "frontend"
15
+ - "architect"
16
+ - "platform-team"
17
+ level: "advanced"
18
+ status: "active"
19
+ owner: "praxis-ui"
20
+ source_of_truth:
21
+ - "projects/praxis-dynamic-fields/src/lib/components/inline-entity-lookup/inline-entity-lookup.component.ts"
22
+ - "projects/praxis-dynamic-fields/src/lib/components/material-async-select/material-async-select.component.ts"
23
+ - "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
24
+ source_of_truth_last_verified: "2026-04-16"
25
+ last_updated: "2026-04-16"
26
+ toc: true
27
+ sidebar: true
28
+ tags:
29
+ - "json-api"
30
+ - "canonical-contract"
31
+ - "pdx-inline-entity-lookup"
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-material-async-select"
42
+ - "pdx-base-select-runtime-contract"
43
+ ---
44
+
45
+ # pdx-inline-entity-lookup
46
+
47
+ Este documento e a referencia canonica da API JSON de pdx-inline-entity-lookup.
48
+
49
+ ## Summary
50
+
51
+ - Tipo documental: API reference canonica de contrato JSON.
52
+ - Source of truth: runtime e codigo declarados no frontmatter.
53
+ - Objetivo operacional: consulta rapida, auditavel e deterministica sob pressao.
54
+ - Resumo funcional: Contrato JSON metadata-driven com comportamento definido por runtime e schema associado.
55
+
56
+ ## Purpose and scope
57
+
58
+ - O componente consome payload JSON metadata-driven e expoe comportamento runtime configuravel por contrato.
59
+ - Esta referencia cobre contrato publico, classificacao de paths e semantica de cobertura (runtime/schema/editor).
60
+ - Fora de escopo: quickstart, tutorial narrativo e notas arquiteturais que nao alteram contrato publico.
61
+
62
+ ## Consulta rapida (obrigatorio)
63
+
64
+ | Regra/tema | Observado | Canonico desejado | Status | Evidencia |
65
+ | --- | --- | --- | --- | --- |
66
+ | Component id | `pdx-inline-entity-lookup` | Manter ID canonico estavel e versionado por contrato | Active | frontmatter.component |
67
+ | Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
68
+ | Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/inline-entity-lookup/inline-entity-lookup.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-async-select/material-async-select.component.ts` |
69
+ | Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
70
+ | Editor/tooling coverage | `false` | Editor/tooling deve espelhar somente contrato publico suportado | Partial | `projects/praxis-core/src/lib/utils/inline-filter-controls.util.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
71
+ | Path hygiene | `false` | Manter consistencia entre contrato canonico e caminhos documentados | 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/inline-entity-lookup/inline-entity-lookup.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
79
+ | projects/praxis-dynamic-fields/src/lib/components/material-async-select/material-async-select.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
80
+ | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | schema-types | Arquivo presente no repositorio e usado como evidencia de contrato. |
81
+
82
+ ## Support legend
83
+
84
+ - **Active**: suportado em runtime e liberado para uso externo.
85
+ - **Partial**: suporte parcial, com restricoes, lacunas ou validacao incompleta.
86
+ - **Declared-only**: declarado em tipos/schema sem evidencia operacional completa.
87
+ - **Schema-only**: presente em schema/tipos sem cobertura runtime confirmada.
88
+
89
+ ## Contract status snapshot
90
+
91
+ | Item | Value | Notes |
92
+ | --- | --- | --- |
93
+ | Reference mode | `canonical` | Deve permanecer canonico |
94
+ | Contract format | `json` | Contrato metadata-driven |
95
+ | Contract source | `runtime-and-code` | Alinhar com source_of_truth |
96
+ | Runtime scope | `public` | Escopo publicado para consumidores |
97
+ | Runtime verified | `true` | Revisar sempre com evidencia de runtime |
98
+ | Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
99
+ | Editor coverage verified | `false` | Revisar sempre com evidencia de editor/tooling |
100
+ | Current path hygiene | `false` | Segregar consistencia do contrato canonico |
101
+ | Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
102
+
103
+ ## Contract classification (obrigatorio)
104
+
105
+ ### Canonical paths (public contract)
106
+
107
+ | Path | Type | Required | Default | Status | Notes |
108
+ | --- | --- | --- | --- | --- | --- |
109
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference for runtime semantics. |
110
+ | `metadata.lookupIdKey` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
111
+ | `metadata.lookupLabelKey` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
112
+ | `metadata.lookupSubtitleKey` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
113
+ | `metadata.lookupSeparator` | unknown | false | n/a | Partial | See Detailed API reference for runtime semantics. |
114
+ | `metadata.searchPlaceholder` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
115
+ | `metadata.optionValueKey` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
116
+ | `metadata.optionLabelKey` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
117
+ | `metadata.optionSource` | object | false | n/a | Active | Fonte canonica de lookup remoto e semantica RESOURCE_ENTITY. |
118
+ | `metadata.optionSource.resourcePath` | string | false | n/a | Active | Habilita carga remota, busca, paginacao e reidratacao por IDs. |
119
+ | `metadata.optionSource.valuePropertyPath` | string | false | n/a | Active | Campo canonico de identidade da entidade no payload de lookup. |
120
+ | `metadata.optionSource.labelPropertyPath` | string | false | n/a | Active | Campo canonico de label humano da entidade. |
121
+ | `metadata.optionSource.codePropertyPath` | string | false | n/a | Active | Campo canonico de codigo curto exibido antes do label. |
122
+ | `metadata.optionSource.descriptionPropertyPaths` | string[] | false | n/a | Active | Campos concatenados na linha secundaria do lookup. |
123
+ | `metadata.optionSource.statusPropertyPath` | string | false | n/a | Active | Campo canonico de status exibido na linha secundaria. |
124
+
125
+ ### Path audit
126
+
127
+ Nenhum desvio de caminho foi identificado nesta revisao.
128
+
129
+ ### Internal-only paths
130
+
131
+ Nao ha paths internal-only confirmados no contrato publico desta revisao.
132
+
133
+ ### Experimental paths
134
+
135
+ Nao ha paths experimentais confirmados no contrato publico desta revisao.
136
+
137
+ ## Public contract surface (obrigatorio)
138
+
139
+ ### Top-level configuration blocks
140
+
141
+ | Block | Purpose | Required | Merge strategy | Notes |
142
+ | --- | --- | --- | --- | --- |
143
+ | `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-03-06). |
144
+ | `resourcePath` | Configuracao especifica de runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
145
+ | `readonlyMode` | Override de readonly no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
146
+ | `disabledMode` | Override de disabled no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
147
+ | `visible` | Override de visibilidade no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
148
+ | `presentationMode` | Renderizacao de apresentacao sem interacao | 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.lookupIdKey` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
155
+ | `metadata.lookupLabelKey` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
156
+ | `metadata.lookupSubtitleKey` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
157
+ | `metadata.lookupSeparator` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
158
+ | `metadata.searchPlaceholder` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
159
+ | `metadata.optionValueKey` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
160
+ | `metadata.optionLabelKey` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
161
+ | `metadata.optionSource` | object | false | n/a | `RESOURCE_ENTITY` recomendado para entidades de negocio | Fonte canonica para resourcePath, identidade, label, codigo, descricao, status e detalhe. |
162
+ | `metadata.resourcePath` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
163
+ | `metadata.inlineAutoSize.*` | object | false | n/a | component-defined | Partial; verify per source_of_truth. |
164
+ | `metadata.searchable` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
165
+
166
+ ### Input bindings (inbound data)
167
+
168
+ | Binding/Path | Type | Required | Source | Runtime normalization | Notes |
169
+ | --- | --- | --- | --- | --- | --- |
170
+ | `metadata` | object | true | host-json | component-defined | Primary inbound contract payload. |
171
+ | `readonlyMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
172
+ | `disabledMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
173
+ | `visible` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
174
+ | `presentationMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
175
+
176
+ ### Output events
177
+
178
+ | Event | Payload | Trigger | Stability | Notes |
179
+ | --- | --- | --- | --- | --- |
180
+ | `searchTermChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
181
+ | `selectionChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
182
+ | `openedChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
183
+ | `valueChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
184
+ | `focusChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
185
+ | `nativeBlur` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
186
+ | `nativeChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
187
+
188
+ ### External side channels
189
+
190
+ | Channel | Direction | Contract | Failure mode | Notes |
191
+ | --- | --- | --- | --- | --- |
192
+ | `host/services/storage` | bidirectional | component-defined | component-defined | Side channels variam por componente e host; verificar em source_of_truth. |
193
+
194
+ ### Host/runtime dependencies
195
+
196
+ | Dependency | Required | Environment | Purpose | Notes |
197
+ | --- | --- | --- | --- | --- |
198
+ | `inline-entity-lookup.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/inline-entity-lookup/inline-entity-lookup.component.ts`. |
199
+ | `material-async-select.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-async-select/material-async-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/inline-entity-lookup/inline-entity-lookup.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-async-select/material-async-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/utils/inline-filter-controls.util.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` | Alias/selector tooling linkage verified for inline filters; visual editor end-to-end coverage remains not-yet-verified. |
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: aliases `pdx-inline-*` resolvidos por `inline-filter-controls.util.ts` e consumidos 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 historicos (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 caminho historico e path canonico, priorizar path canonico e registrar janela de migracao do historico.
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-inline-entity-lookup` e um lookup corporativo inline para selecionar entidades por identificador + descricao.
284
+
285
+ Use quando precisar:
286
+ - localizar registros por codigo e descricao na mesma opcao;
287
+ - combinar busca local/remota em painel compacto;
288
+ - padronizar exibicao do trigger como `ID - Label`.
289
+
290
+ ### 2. API do Componente (Inputs/Outputs)
291
+ | Propriedade | Tipo | Padrao | Obrigatorio | Comportamento |
292
+ | --- | --- | --- | --- | --- |
293
+ | `metadata` | `MaterialSelectMetadata` | - | Sim | Contrato principal do lookup inline. |
294
+ | `readonlyMode/disabledMode/visible/presentationMode` | `boolean` | `false/false/true/false` | Nao | Estados de host do campo inline. |
295
+ | `selectionChange` | `T` | - | Output herdado | Valor selecionado da entidade. |
296
+ | `optionSelected` | `SelectOption` | - | Output herdado | Opcao selecionada no painel. |
297
+ | `optionsLoaded` | `SelectOption[]` | - | Output herdado | Lote carregado (local/remoto). |
298
+
299
+ ### 3. Matriz de Cobertura JSON (Completa)
300
+ #### 3.1 Campos especificos do componente
301
+ | Caminho JSON | Tipo | Status | Comportamento em runtime |
302
+ | --- | --- | --- | --- |
303
+ | `metadata.lookupIdKey` | `string` | Ativo | Chave primaria usada na parte "ID" do texto. |
304
+ | `metadata.lookupLabelKey` | `string` | Ativo | Chave do label principal da entidade. |
305
+ | `metadata.lookupSubtitleKey` | `string` | Ativo | Chave de subtitulo opcional da entidade. |
306
+ | `metadata.lookupSeparator` | `string` | Ativo | Separador entre ID e label no trigger/opcao. |
307
+ | `metadata.searchPlaceholder` | `string` | Ativo | Placeholder do campo de busca do painel; na ausencia de override, o runtime cai para o catalogo shared `inlineSelect.searchPlaceholder`. |
308
+ | `metadata.optionValueKey` / `metadata.optionLabelKey` | `string` | Ativo | Fallback para mapping de id/label. |
309
+ | `metadata.optionSource` | `object` | Ativo | Fonte canonica de plataforma para Entity Lookup remoto. Quando `resourcePath` existe dentro de `optionSource`, o runtime usa endpoints de option-source para busca/paginacao e reidratacao por IDs. |
310
+ | `metadata.optionSource.valuePropertyPath` | `string` | Ativo | Resolve identidade da entidade para comparacao/reidratacao quando o valor salvo e primitivo ou objeto. |
311
+ | `metadata.optionSource.labelPropertyPath` | `string` | Ativo | Resolve label principal quando o objeto local/remoto carrega o campo de dominio em vez de `label`. |
312
+ | `metadata.optionSource.codePropertyPath` | `string` | Ativo | Resolve codigo curto exibido como parte primaria do lookup. |
313
+ | `metadata.optionSource.descriptionPropertyPaths` | `string[]` | Ativo | Resolve descricao rica concatenando campos de dominio na linha secundaria. |
314
+ | `metadata.optionSource.statusPropertyPath` | `string` | Ativo | Resolve status exibido depois da descricao. |
315
+ | `metadata.optionSource.detail.hrefTemplate` / `metadata.optionSource.detail.routeTemplate` | `string` | Ativo | Gera links/rotas de detalhe quando o payload remoto nao trouxer `detailHref`/`detailRoute` em `extra`. |
316
+ | `metadata.resourcePath` | `string` | Ativo | Caminho operacional herdado. Para Entity Lookup de plataforma, preferir `metadata.optionSource.resourcePath`. |
317
+ | `metadata.inlineAutoSize.*` | `object` | Ativo | Largura responsiva da pill lookup. |
318
+ | `metadata.selectedLayout` | `"card" | "inline" | "compact" | "token"` | Ativo | Para `controlType: "entityLookup"`, `card` e o default renderizam valor selecionado como cartao rico. `token` preserva leitura compacta. |
319
+ | `metadata.resultLayout` | `"list" | "denseList" | "table" | "card"` | Ativo | Para `controlType: "entityLookup"`, `list` e o default renderizam linhas ricas; `denseList` preserva leitura compacta. |
320
+ | `metadata.showCode` | `boolean` | Ativo | Controla exibicao do codigo curto na linha e no cartao. Default: `true`. |
321
+ | `metadata.showDescription` | `boolean` | Ativo | Controla exibicao da descricao composta. Default: `true`. |
322
+ | `metadata.showStatus` | `boolean` | Ativo | Controla exibicao do badge de status. Default: `true`. |
323
+ | `metadata.showAvatar` | `boolean` | Ativo | Controla exibicao de avatar por iniciais. Default: `true`. |
324
+ | `metadata.showBadges` | `boolean` | Ativo | Controla exibicao de badges auxiliares vindos de `badges`, `tags`, `riskLevel`, `homologationStatus` ou `badgeKeys`. Default: `true`. |
325
+ | `metadata.showDisabledReason` | `boolean` | Ativo | Controla exibicao do motivo de bloqueio quando `selectable=false`. Default: `true`. |
326
+ | `metadata.showResultCount` | `boolean` | Ativo | Controla contador de resultados no painel de busca. Default: `true`. |
327
+ | `metadata.statusToneMap` | `Record<string, "success" | "warning" | "danger" | "neutral">` | Ativo | Permite mapear status de dominio para tom visual governado. |
328
+ | `metadata.badgeKeys` | `string[]` | Ativo | Chaves adicionais lidas do valor de entidade para compor badges auxiliares. |
329
+ | `metadata.maxVisibleBadges` | `number` | Ativo | Limita quantidade de badges auxiliares exibidos. Default: `3`. |
330
+ | `metadata.actions.showDetail` | `boolean` | Ativo | Controla acao de detalhe quando houver `detailHref` ou `detailRoute`. Default: `true`. |
331
+ | `metadata.actions.showChange` | `boolean` | Ativo | Controla acao de troca no cartao selecionado. Default: `true`. |
332
+ | `metadata.actions.showCopyCode` | `boolean` | Ativo | Controla acao de copiar codigo/id. Default: `true`. |
333
+ | `metadata.actions.showClear` | `boolean` | Ativo | Controla acao de limpar em conjunto com `clearButton`/clearable herdado. |
334
+ | `metadata.detailActionLabel` / `metadata.changeActionLabel` / `metadata.copyCodeActionLabel` / `metadata.clearActionLabel` | `string` | Ativo | Overrides textuais das acoes do cartao selecionado. |
335
+ | `metadata.searchable` | `boolean` | Ativo | Exibe/oculta barra de busca interna. |
336
+
337
+ #### 3.2 Campos herdados compartilhados (exaustivo)
338
+ - `projects/praxis-dynamic-fields/src/lib/components/material-async-select/pdx-material-async-select.json-api.md`
339
+ - `projects/praxis-dynamic-fields/src/lib/base/pdx-base-select-runtime-contract.json-api.md`
340
+
341
+ Resumo de composicao deste componente:
342
+ - `Ativo`: composicao lookup (id/label/subtitle), busca e reset rapido.
343
+ - `Extensao de runtime`: chaves `lookup*` para semantica corporativa.
344
+
345
+ ### 4. Mapeamento de Comportamento
346
+ - Para `controlType: "inlineEntityLookup"`, o trigger preserva valor compacto composto por `buildLookupPrimaryText(id,label)`.
347
+ - Para `controlType: "entityLookup"`, o trigger pode renderizar cartao de entidade com avatar, codigo, label, descricao, status, badges e acoes.
348
+ - Opcoes podem mostrar linha secundaria (`subtitle`) para desambiguacao; em `entityLookup`, a linha rica tambem mostra avatar, status visual, badges e motivo de bloqueio.
349
+ - Com `metadata.optionSource.resourcePath`, busca emite termo no pipeline remoto de option-source; sem endpoint, filtra local.
350
+ - `metadata.resourcePath` continua aceito como configuracao operacional herdada, mas nao substitui a semantica canonica de entidade publicada em `metadata.optionSource`.
351
+ - Opcao de reset limpa filtro sem fechar contexto de trabalho.
352
+ - `OptionDTO.extra.selectable === false` desabilita a opcao e permite exibir `disabledReason` sem remover a entidade da lista ou da reidratacao.
353
+
354
+ ### 5. Exemplo Minimo (JSON + Uso)
355
+ ```json
356
+ {
357
+ "componentId": "pdx-inline-entity-lookup",
358
+ "metadata": {
359
+ "name": "employee",
360
+ "label": "Funcionario",
361
+ "controlType": "select",
362
+ "lookupIdKey": "employeeId",
363
+ "lookupLabelKey": "fullName",
364
+ "selectOptions": [
365
+ { "employeeId": "E-100", "fullName": "Ana Lima", "value": "E-100" }
366
+ ]
367
+ }
368
+ }
369
+ ```
370
+ Uso: lookup simples em lista local.
371
+
372
+ ### 6. Exemplo Corporativo (JSON + Uso)
373
+ ```json
374
+ {
375
+ "componentId": "pdx-inline-entity-lookup",
376
+ "metadata": {
377
+ "name": "costCenterOwner",
378
+ "label": "Responsavel",
379
+ "controlType": "inlineEntityLookup",
380
+ "optionSource": {
381
+ "key": "employees",
382
+ "type": "RESOURCE_ENTITY",
383
+ "resourcePath": "people/employees",
384
+ "entityKey": "employee",
385
+ "valuePropertyPath": "id",
386
+ "labelPropertyPath": "nome",
387
+ "codePropertyPath": "matricula",
388
+ "descriptionPropertyPaths": ["departamento"],
389
+ "statusPropertyPath": "status",
390
+ "detail": {
391
+ "routeTemplate": "/employees/:id"
392
+ }
393
+ },
394
+ "lookupSeparator": " | ",
395
+ "searchable": true,
396
+ "searchPlaceholder": "Buscar por matricula ou nome",
397
+ "inlineAutoSize": { "minWidth": 156, "maxWidth": 420 },
398
+ "clearButton": { "enabled": true, "showOnlyWhenFilled": true }
399
+ }
400
+ }
401
+ ```
402
+ Uso: lookup de colaborador em filtro corporativo com alto volume.
403
+
404
+ ### 7. Troubleshooting e Armadilhas Comuns
405
+ 1. Trigger mostra texto incompleto.
406
+ Correcao: validar `lookupIdKey` e `lookupLabelKey` no payload.
407
+
408
+ 2. Subtitulo nao aparece nas opcoes.
409
+ Correcao: preencher `lookupSubtitleKey` e garantir dado no backend.
410
+
411
+ 3. Busca nao retorna remoto.
412
+ Correcao: conferir `resourcePath` e contrato de endpoint.
413
+
414
+ 4. Separador indesejado no texto.
415
+ Correcao: configurar `lookupSeparator`.
416
+
417
+ 5. Campo estoura largura da toolbar.
418
+ Correcao: ajustar `inlineAutoSize.minWidth/maxWidth`.
419
+
420
+ ### 8. Cross-links
421
+ - `projects/praxis-dynamic-fields/src/lib/components/material-async-select/pdx-material-async-select.json-api.md`
422
+ - `projects/praxis-dynamic-fields/src/lib/base/pdx-base-select-runtime-contract.json-api.md`
423
+
424
+ ### 9. Relatorio de Validacao Estrutural
425
+ - Visao geral: PASS
426
+ - API (inputs/outputs): PASS
427
+ - Cobertura JSON completa (especifico + herdado): PASS
428
+ - Mapeamento de comportamento: PASS
429
+ - Exemplo minimo: PASS
430
+ - Exemplo corporativo: PASS
431
+ - Troubleshooting: PASS
432
+
433
+ ## JSON path index (obrigatorio)
434
+
435
+ | Path | Type | Required | Default | Status | Notes |
436
+ | --- | --- | --- | --- | --- | --- |
437
+ | `metadata` | object | true | n/a | Partial | See Detailed API reference. |
438
+ | `metadata.lookupIdKey` | string | false | n/a | Partial | See Detailed API reference. |
439
+ | `metadata.lookupLabelKey` | string | false | n/a | Partial | See Detailed API reference. |
440
+ | `metadata.lookupSubtitleKey` | string | false | n/a | Partial | See Detailed API reference. |
441
+ | `metadata.lookupSeparator` | unknown | false | n/a | Partial | See Detailed API reference. |
442
+ | `metadata.searchPlaceholder` | string | false | n/a | Partial | See Detailed API reference. |
443
+ | `metadata.optionValueKey` | string | false | n/a | Partial | See Detailed API reference. |
444
+ | `metadata.optionLabelKey` | string | false | n/a | Partial | See Detailed API reference. |
445
+ | `metadata.resourcePath` | string | false | n/a | Partial | See Detailed API reference. |
446
+ | `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference. |
447
+ | `metadata.searchable` | boolean | false | n/a | Partial | See Detailed API reference. |
448
+ | `resourcePath` | string | false | n/a | Partial | See Detailed API reference. |
449
+ | `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
450
+ | `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
451
+ | `visible` | boolean | false | n/a | Partial | See Detailed API reference. |
452
+ | `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference. |
453
+
454
+ ## Events reference (obrigatorio)
455
+
456
+ | Event | Payload | Trigger | Stability | Notes |
457
+ | --- | --- | --- | --- | --- |
458
+ | `searchTermChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
459
+ | `selectionChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
460
+ | `openedChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
461
+ | `valueChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
462
+ | `focusChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
463
+ | `nativeBlur` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
464
+ | `nativeChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
465
+
466
+ ## Styling API (obrigatorio quando aplicavel)
467
+
468
+ | Token/Class | Scope | Purpose | Notes |
469
+ | --- | --- | --- | --- |
470
+ | `not-yet-verified` | component | Styling contract not yet verified | Use Detailed API reference for component-specific styling notes. |
471
+
472
+ ## Examples (obrigatorio)
473
+
474
+ | Example | Scenario | Validates | Notes |
475
+ | --- | --- | --- | --- |
476
+ | `Minimal valid` | baseline payload | required contract blocks | Extracted from preserved technical reference when available. |
477
+ | `Common setup` | common component usage | standard runtime behavior | Validate against host integration path. |
478
+ | `Advanced setup` | richer config with overrides | precedence and normalization | Requires runtime confirmation for edge cases. |
479
+ | `Enterprise scenario` | governance/legacy/migration context | auditability and compatibility boundaries | Include tenant-specific constraints when applicable. |
480
+
481
+ ### Minimal valid
482
+
483
+ ```json
484
+ {
485
+ "componentId": "pdx-inline-entity-lookup",
486
+ "metadata": {
487
+ "name": "employee",
488
+ "label": "Funcionario",
489
+ "controlType": "select",
490
+ "lookupIdKey": "employeeId",
491
+ "lookupLabelKey": "fullName",
492
+ "selectOptions": [
493
+ {
494
+ "employeeId": "E-100",
495
+ "fullName": "Ana Lima",
496
+ "value": "E-100"
497
+ }
498
+ ],
499
+ "searchable": false
500
+ }
501
+ }
502
+ ```
503
+
504
+ ### Common setup
505
+
506
+ ```json
507
+ {
508
+ "componentId": "pdx-inline-entity-lookup",
509
+ "metadata": {
510
+ "name": "costCenterOwner",
511
+ "label": "Responsavel",
512
+ "controlType": "select",
513
+ "resourcePath": "employees/options",
514
+ "lookupIdKey": "matricula",
515
+ "lookupLabelKey": "nome",
516
+ "lookupSubtitleKey": "departamento",
517
+ "lookupSeparator": " | ",
518
+ "optionValueKey": "id",
519
+ "optionLabelKey": "nome",
520
+ "searchable": true,
521
+ "searchPlaceholder": "pdx-inline-entity-lookup-common",
522
+ "inlineAutoSize": {
523
+ "minWidth": 156,
524
+ "maxWidth": 420
525
+ },
526
+ "clearButton": {
527
+ "enabled": true,
528
+ "showOnlyWhenFilled": true
529
+ }
530
+ }
531
+ }
532
+ ```
533
+
534
+ ### Advanced setup
535
+
536
+ ```json
537
+ {
538
+ "componentId": "pdx-inline-entity-lookup",
539
+ "metadata": {
540
+ "name": "costCenterOwner",
541
+ "label": "Responsavel",
542
+ "controlType": "select",
543
+ "resourcePath": "employees/options",
544
+ "lookupIdKey": "matricula",
545
+ "lookupLabelKey": "nome",
546
+ "lookupSubtitleKey": "departamento",
547
+ "lookupSeparator": " | ",
548
+ "optionValueKey": "id",
549
+ "optionLabelKey": "nome",
550
+ "searchable": true,
551
+ "searchPlaceholder": "Buscar por matricula ou nome",
552
+ "inlineAutoSize": {
553
+ "minWidth": 156,
554
+ "maxWidth": 420
555
+ },
556
+ "clearButton": {
557
+ "enabled": true,
558
+ "showOnlyWhenFilled": true
559
+ }
560
+ },
561
+ "readonlyMode": false,
562
+ "disabledMode": false
563
+ }
564
+ ```
565
+
566
+ ### Enterprise scenario
567
+
568
+ ```json
569
+ {
570
+ "componentId": "pdx-inline-entity-lookup",
571
+ "metadata": {
572
+ "name": "costCenterOwner",
573
+ "label": "Responsavel",
574
+ "controlType": "select",
575
+ "resourcePath": "employees/options",
576
+ "lookupIdKey": "matricula",
577
+ "lookupLabelKey": "nome",
578
+ "lookupSubtitleKey": "departamento",
579
+ "lookupSeparator": " | ",
580
+ "optionValueKey": "id",
581
+ "optionLabelKey": "nome",
582
+ "searchable": true,
583
+ "searchPlaceholder": "Buscar por matricula ou nome",
584
+ "inlineAutoSize": {
585
+ "minWidth": 156,
586
+ "maxWidth": 420
587
+ },
588
+ "clearButton": {
589
+ "enabled": true,
590
+ "showOnlyWhenFilled": true
591
+ }
592
+ },
593
+ "presentationMode": true,
594
+ "visible": true,
595
+ "resourcePath": "/api/pdx-inline-entity-lookup"
596
+ }
597
+ ```
598
+
599
+ ## Compatibility and migration notes (recomendado)
600
+
601
+ | Concern | Affected versions | Migration action | Deadline | Notes |
602
+ | --- | --- | --- | --- | --- |
603
+ | No legacy path detected in current revision | n/a | No migration action required for canonical paths | n/a | Re-evaluate if backward-compat aliases are introduced |
604
+
605
+ ## Known limitations and mismatches (recomendado)
606
+
607
+ | Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
608
+ | --- | --- | --- | --- | --- | --- |
609
+ | Canonical contract parity | Runtime e exemplos desta referencia foram realinhados em 2026-03-16 para refletir fallbacks shared de placeholder e busca via `inlineSelect.*` | Manter exemplos e host overrides coerentes com o catalogo shared e evitar reintroduzir copy local | Low | n/a | Monitor in periodic audit |
610
+
611
+ ## Source references (obrigatorio)
612
+
613
+ | Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
614
+ | --- | --- | --- | --- | --- |
615
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/components/inline-entity-lookup/inline-entity-lookup.component.ts | Primary source of truth for contract and behavior. | 2026-03-16 | verified-path |
616
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-async-select/material-async-select.component.ts | Primary source of truth for contract and behavior. | 2026-03-16 | verified-path |
617
+ | schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-03-16 | verified-path |