---
title: "pdx-material-select JSON API (Canonical)"
slug: "pdx-material-select-json-api"
doc_type: "api-reference"
component: "pdx-material-select"
document_kind: "json-api-canonical"
reference_mode: "canonical"
contract_format: "json"
contract_source: "runtime-and-code"
description: "Referencia canonica do contrato JSON do componente pdx-material-select."
category: "components"
sub_category: "dynamic-fields"
audience:
  - "frontend"
  - "architect"
  - "platform-team"
level: "advanced"
status: "active"
owner: "praxis-ui"
source_of_truth:
  - "projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.metadata.ts"
  - "projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.component.ts"
  - "projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts"
  - "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
source_of_truth_last_verified: "2026-03-06"
last_updated: "2026-03-06"
toc: true
sidebar: true
tags:
  - "json-api"
  - "canonical-contract"
  - "pdx-material-select"
api_stability: "canonical"
schema_verified: true
runtime_verified: true
editor_coverage_verified: false
runtime_scope: "public"
legacy_paths_present: true
has_known_mismatches: false
related_components:
  - "praxis-table"
  - "pdx-base-select-runtime-contract"
  - "pdx-base-input-runtime-contract"
  - "pdx-material-multi-select"
  - "pdx-material-searchable-select"
  - "pdx-material-async-select"
---

# pdx-material-select

Este documento e a referencia canonica da API JSON de pdx-material-select.

## Summary

- Tipo documental: API reference canonica de contrato JSON.
- Source of truth: runtime e codigo declarados no frontmatter.
- Objetivo operacional: consulta rapida, auditavel e deterministica sob pressao.
- Resumo funcional: Contrato JSON metadata-driven com comportamento definido por runtime e schema associado.

## Purpose and scope

- O componente consome payload JSON metadata-driven e expoe comportamento runtime configuravel por contrato.
- Esta referencia cobre contrato publico, classificacao de paths e semantica de cobertura (runtime/schema/editor).
- Fora de escopo: quickstart, tutorial narrativo e notas arquiteturais que nao alteram contrato publico.

## Consulta rapida (obrigatorio)

| Regra/tema | Observado | Canonico desejado | Status | Evidencia |
| --- | --- | --- | --- | --- |
| Component id | `pdx-material-select` | Manter ID canonico estavel e versionado por contrato | Active | frontmatter.component |
| Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
| Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.component.ts` |
| Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
| Editor/tooling coverage | `false` | Editor/tooling deve espelhar somente contrato publico suportado | Partial | `projects/praxis-dynamic-fields/src/lib/editorial/metadata-contract.spec.ts`, `projects/praxis-dynamic-fields/src/lib/editorial/metadata-i18n-contract.spec.ts` |
| Legacy paths | `true` | Segregar legado de caminhos canonicos com janela de migracao | Partial | frontmatter.legacy_paths_present |
| Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |

## Source of truth

| Source | Kind | Notes |
| --- | --- | --- |
| projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.metadata.ts | schema-metadata | Arquivo presente no repositorio e usado como evidencia de contrato. |
| projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
| projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
| projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | schema-types | Arquivo presente no repositorio e usado como evidencia de contrato. |

## Support legend

- **Active**: suportado em runtime e liberado para uso externo.
- **Partial**: suporte parcial, com restricoes, lacunas ou validacao incompleta.
- **Declared-only**: declarado em tipos/schema sem evidencia operacional completa.
- **Schema-only**: presente em schema/tipos sem cobertura runtime confirmada.
- **Deprecated**: legado suportado por janela de migracao definida.

## Contract status snapshot

| Item | Value | Notes |
| --- | --- | --- |
| Reference mode | `canonical` | Deve permanecer canonico |
| Contract format | `json` | Contrato metadata-driven |
| Contract source | `runtime-and-code` | Alinhar com source_of_truth |
| Runtime scope | `public` | Escopo publicado para consumidores |
| Runtime verified | `true` | Revisar sempre com evidencia de runtime |
| Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
| Editor coverage verified | `false` | Revisar sempre com evidencia de editor/tooling |
| Legacy paths present | `true` | Segregar legado de contrato canonico |
| Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |

## Contract classification (obrigatorio)

### Canonical paths (public contract)

| Path | Type | Required | Default | Status | Notes |
| --- | --- | --- | --- | --- | --- |
| `metadata` | object | true | n/a | Partial | See Detailed API reference for runtime semantics. |
| `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
| `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
| `visible` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
| `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |

### Supported legacy paths

| Legacy path | Canonical replacement | Support window | Runtime behavior | Notes |
| --- | --- | --- | --- | --- |
| `metadata.options` | `metadata.selectOptions` | not-yet-defined | accepted for backward compatibility | Alias inferido da evidencia preservada; validar em runtime. |

### Internal-only paths

Nao ha paths internal-only confirmados no contrato publico desta revisao.

### Experimental paths

Nao ha paths experimentais confirmados no contrato publico desta revisao.

## Public contract surface (obrigatorio)

### Top-level configuration blocks

| Block | Purpose | Required | Merge strategy | Notes |
| --- | --- | --- | --- | --- |
| `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-03-06). |
| `readonlyMode` | Override de readonly no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
| `disabledMode` | Override de disabled no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
| `visible` | Override de visibilidade no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
| `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |

### Nested configuration blocks

| Path | Type | Required | Default | Constraints | Notes |
| --- | --- | --- | --- | --- | --- |
| `metadata` | object | true | n/a | component-defined | Detailed API reference preserves component-specific fields. |

### Input bindings (inbound data)

| Binding/Path | Type | Required | Source | Runtime normalization | Notes |
| --- | --- | --- | --- | --- | --- |
| `metadata` | object | true | host-json | component-defined | Primary inbound contract payload. |
| `readonlyMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
| `disabledMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
| `visible` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
| `presentationMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |

### Output events

| Event | Payload | Trigger | Stability | Notes |
| --- | --- | --- | --- | --- |
| `searchTermChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
| `selectionChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
| `openedChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
| `valueChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
| `focusChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
| `nativeBlur` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
| `nativeChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |

### External side channels

| Channel | Direction | Contract | Failure mode | Notes |
| --- | --- | --- | --- | --- |
| `host/services/storage` | bidirectional | component-defined | component-defined | Side channels variam por componente e host; verificar em source_of_truth. |

### Host/runtime dependencies

| Dependency | Required | Environment | Purpose | Notes |
| --- | --- | --- | --- | --- |
| `material-select.metadata.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.metadata.ts`. |
| `material-select.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.component.ts`. |
| `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`. |
| `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`. |

## Coverage by surface (obrigatorio)

### Coverage matrix (runtime, schema/type, editor/tooling)

| Surface | Verified | Coverage status | Evidence | Notes |
| --- | --- | --- | --- | --- |
| Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.component.ts` | Core runtime flows verified via focused component specs on 2026-03-06; editor/tooling coverage remains independent. |
| Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
| Editor/Tooling | `false` | Partial | `projects/praxis-dynamic-fields/src/lib/editorial/metadata-contract.spec.ts`, `projects/praxis-dynamic-fields/src/lib/editorial/metadata-i18n-contract.spec.ts` | Wave 1 registry, derived metadata exports and localized editorial resolution are guarded by aggregate editorial specs; end-to-end editor integration not yet verified. |

### Runtime coverage boundaries

- Ambientes suportados: browser/dev/prod; SSR/hydration appears to be component-dependent unless explicitly verified.
- Pre-condicoes: payload JSON valido, bindings de host consistentes e dependencias descritas no source_of_truth.
- Fora de cobertura confirmada: caminhos internos, experimentais ou aliases nao enumerados formalmente.

### Editor and tooling notes

- Evidencia parcial: `metadata-contract.spec.ts` e `metadata-i18n-contract.spec.ts` validam a trilha agregada de descriptor editorial, metadata derivado e resolucao localizada no registry.
- O que esta exposto no editor visual depende da cobertura real do workspace e nao deve ser inferido como suporte runtime total.
- Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
- Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.

## Resolution and precedence model (obrigatorio)

### Merge order

1. defaults do componente
2. contrato JSON recebido
3. overrides de host/runtime
4. normalizacoes internas

### Fallback order

contrato explicito -> aliases legados (quando suportados) -> defaults internos -> comportamento seguro

### Override points

- inputs publicos do componente
- configuracao JSON de runtime
- integracoes de host (servicos/tokens/adapters)

### Runtime normalization

Alias e defaults devem convergir para paths canonicos; onde nao houver evidencia, manter not-yet-verified de forma explicita.

### Precedence rules

Em conflito entre alias legado e path canonico, priorizar path canonico e registrar janela de migracao do legado.

## Validation and error semantics (obrigatorio)

### Validation model

| Path/Rule | Validation phase | Behavior on fail | Error code / warning | Notes |
| --- | --- | --- | --- | --- |
| canonical-paths | parse/runtime | component-defined (warn/reject/default) | not-yet-standardized | Semantica detalhada preservada na referencia tecnica por componente. |

### Invalid and unknown field handling

- Campos desconhecidos: comportamento component-defined (ignore, warn ou reject).
- Tipos invalidos: pode haver fallback, warning ou falha, conforme runtime especifico.
- Valores fora de dominio: registrar observed vs desired em Known limitations and mismatches.

### Fail-open / fail-closed behavior

| Condition | Mode | Runtime behavior | Consumer impact |
| --- | --- | --- | --- |
| invalid-or-unknown-field | component-defined | not-yet-verified | Pode gerar warning, fallback silencioso ou rejeicao; validar por componente. |

### Runtime warnings vs hard failures

| Condition | Severity | Observability | Consumer action |
| --- | --- | --- | --- |
| partial-or-declared-only-coverage | warning | logs/eventos do componente | Confirmar ligacao runtime antes de uso critico. |
| mismatch-confirmed | error-or-warning | componente/host observability | Planejar migracao e corrigir contrato/runtime. |

## Detailed API reference
### Preserved technical reference (normalized from previous revision)

<!--
component: pdx-material-select
document: json-api
source-of-truth:
  - projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.metadata.ts
  - projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.component.ts
  - projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts
  - projects/praxis-core/src/lib/models/material-field-metadata.interface.ts
quality-reference: projects/praxis-table/src/lib/praxis-table.json-api.md
updated_at: 2026-02-27
-->


`pdx-material-select` e um select config-first para selecao unica: voce descreve opcoes, carga remota e regras de exibicao em JSON, e o runtime aplica o comportamento padrao de formulario corporativo. Nao e um wrapper visual de `mat-select`; e um componente de runtime metadata-driven com contrato versionavel.

### Prova em 20 segundos

```json
{
  "componentId": "pdx-material-select",
  "metadata": {
    "name": "department",
    "label": "Departamento",
    "controlType": "select",
    "selectOptions": [
      { "value": "fin", "text": "Financeiro" },
      { "value": "it", "text": "Tecnologia" }
    ]
  }
}
```

- O runtime renderiza selecao unica com opcoes declaradas no JSON.
- Trocar `selectOptions` ou `resourcePath` reconfigura a UI sem alterar template.
- O mesmo contrato funciona com Reactive Forms/CVA no host.

### Table of contents

- [Start here](#start-here)
  - [Promessa e limites](#promessa-e-limites)
  - [Controle de comportamento](#controle-de-comportamento)
  - [Status model](#status-model)
  - [Checklist corporativo](#checklist-corporativo)
- [Contrato tecnico completo](#contrato-tecnico-completo)
  - [API do componente](#api-do-componente)
  - [Matriz completa de cobertura JSON](#matriz-completa-de-cobertura-json)
  - [Saidas runtime compartilhadas](#saidas-runtime-compartilhadas)
  - [Troubleshooting](#troubleshooting)
  - [Cross-links](#cross-links)
- [Referencias oficiais Angular](#referencias-oficiais-angular)

### Start here

#### Promessa e limites

**O que isso habilita:** select unico declarativo com fonte local/remota, opcao vazia, clear button e estados de host (`readonly`, `disabled`, `presentation`).

**Quando usar:** campos de dominio com escolha unica onde o payload deve ser governado por metadata.

**Exemplo minimo:** `metadata.selectOptions` para fonte estatica ou `metadata.resourcePath` para fonte remota.

Garantias:

- `metadata.selectOptions` e `metadata.resourcePath` sao consumidos no runtime.
- valor e ciclo de mudanca integram com CVA/Reactive Forms.
- opcao vazia e suporte a filtro remoto seguem o contrato base de select.

Limites:

- componente opera em selecao unica (nao e multi-select).
- `searchable=true` nao renderiza caixa de busca embutida neste template.
- `clearButton` e suportado via runtime base, mas nao tipado explicitamente em `MaterialSelectMetadata`.

#### Controle de comportamento

**O que isso habilita:** padrao unico de carregamento local/remoto e exibicao de opcoes no `mat-select`.

**Quando usar:** quando a regra de negocio exige previsibilidade de UX e compatibilidade entre squads.

**Exemplo minimo:** `metadata.emptyOptionText` para item nulo em fluxos de filtro.

Precedencia de comportamento:

1. `metadata.selectOptions` e usado como fonte principal de opcoes locais.
2. `metadata.options` entra apenas como alias legado quando `selectOptions` nao existe.
3. `metadata.multiple` e forcado para `false` no runtime deste componente.

#### Status model

- `Status: Active` - chave consumida diretamente no runtime do componente/base.
- `Status: Partial` - chave existe no contrato, mas nao tem efeito pleno neste componente.
- `Status: Declared-only` - chave declarada para compatibilidade, sem efeito direto aqui.
- `Status: Runtime-extension` - chave suportada no runtime base fora da tipagem especifica local.

#### Checklist corporativo

- padronize `optionLabelKey` e `optionValueKey` por dominio de API.
- use `emptyOptionText` quando houver estado "sem selecao" funcional.
- prefira `resourcePath` para listas dinamicas com governanca de backend.
- trate validacao de negocio (ex.: obrigatoriedade contextual) no formulario host.

### Contrato tecnico completo

#### API do componente

| Propriedade | Tipo | Padrao | Obrigatorio | Comportamento |
| --- | --- | --- | --- | --- |
| `metadata` | `MaterialSelectMetadata` | - | Sim | Contrato principal do select. |
| `readonlyMode` | `boolean` | `false` | Nao | Sobrescreve modo leitura no host. |
| `disabledMode` | `boolean` | `false` | Nao | Sobrescreve estado disabled no host. |
| `visible` | `boolean` | `true` | Nao | Controla exibicao do host. |
| `presentationMode` | `boolean` | `false` | Nao | Modo apresentacao sem interacao. |
| `selectionChange` | `T \| T[]` | - | Output herdado | Emitido pelo runtime base em mudanca de valor. |
| `optionSelected` | `SelectOption` | - | Output herdado | Emitido em selecao individual. |
| `optionsLoaded` | `SelectOption[]` | - | Output herdado | Emitido apos carga remota. |
| `openedChange` | `boolean` | - | Output herdado | Emitido ao abrir/fechar painel. |
| `searchTermChange` | `string` | - | Output herdado | Emitido por fluxos de busca no base. |

#### Matriz completa de cobertura JSON

| Caminho JSON | Tipo | Status | Comportamento em runtime |
| --- | --- | --- | --- |
| `metadata.name` | `string` | Active | Identificador do campo no formulario/modelo. |
| `metadata.label` | `string` | Active | Rotulo exibido no campo. |
| `metadata.controlType` | `'select' \| 'multiSelect'` | Active | Contrato de select aceito; runtime opera em modo single neste componente. |
| `metadata.selectOptions` | `Array<{ value; text; label?; disabled? }>` | Active | Fonte principal de opcoes locais. |
| `metadata.options` | `Array<any>` | Runtime-extension | Alias legado quando `selectOptions` nao e informado. |
| `metadata.emptyOptionText` | `string` | Active | Exibe opcao vazia com valor `null`. |
| `metadata.searchable` | `boolean` | Partial | Campo existe no contrato base, mas nao renderiza input de busca aqui. |
| `metadata.multiple` | `boolean` | Partial | Campo declarado, porem runtime deste componente permanece single (`false`). |
| `metadata.selectAll` | `boolean` | Partial | Sem efeito funcional em modo single. |
| `metadata.maxSelections` | `number` | Partial | Sem efeito funcional em modo single. |
| `metadata.resourcePath` | `string` | Active | Habilita carga remota de opcoes. |
| `metadata.filterCriteria` | `Record<string, any>` | Active | Filtros base para consulta remota. |
| `metadata.optionLabelKey` | `string` | Active | Chave para extrair label em resposta remota. |
| `metadata.optionValueKey` | `string` | Active | Chave para extrair value em resposta remota. |
| `metadata.loadOn` | `'open' \| 'init' \| 'none'` | Partial | Estrategia de carga definida no contrato base; depende do fluxo usado pelo filho. |
| `metadata.dependencyLoadOnChange` | `'respectLoadOn' \| 'immediate' \| 'manual'` | Active | Regras de recarga quando dependencias mudam. |
| `metadata.clearButton` | `boolean \| object` | Runtime-extension | Suportado por `showClear()` no runtime base. |

Contrato compartilhado completo:

- [pdx-base-select-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-select-runtime-contract.json-api.md)
- [pdx-base-input-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md)

#### Saidas runtime compartilhadas

`pdx-material-select` nao declara `@Output` proprio no metadata local; o runtime reutiliza os eventos herdados do `SimpleBaseSelectComponent` quando aplicavel.

#### Troubleshooting

1. Multi-selecao nao funciona neste componente.
Correcao: use `pdx-material-multi-select` ou `pdx-material-async-select` com `multiple=true`.

2. `searchable=true` nao exibe campo de busca.
Correcao: use `pdx-material-searchable-select` para busca embutida.

3. Opcoes nao carregam no remoto.
Correcao: valide `resourcePath`, `filterCriteria` e mapeamento `optionLabelKey/optionValueKey`.

4. O campo aceita valor invalido apos mudanca de dependencia.
Correcao: configure cascata (`dependencyFields`, `resetOnDependentChange`) no contrato base.

5. Clear button nao aparece.
Correcao: verifique `clearButton` e estados `readonlyMode`, `disabledMode` e `presentationMode`.

#### Cross-links

- `projects/praxis-dynamic-fields/src/lib/components/material-multi-select/pdx-material-multi-select.json-api.md`
- `projects/praxis-dynamic-fields/src/lib/components/material-searchable-select/pdx-material-searchable-select.json-api.md`
- `projects/praxis-dynamic-fields/src/lib/components/material-async-select/pdx-material-async-select.json-api.md`

### Referencias oficiais Angular

- Acessibilidade em Angular: https://angular.dev/best-practices/a11y
- Criacao e manutencao de libraries: https://angular.dev/tools/libraries/creating-libraries

## JSON path index (obrigatorio)

| Path | Type | Required | Default | Status | Notes |
| --- | --- | --- | --- | --- | --- |
| `metadata` | object | true | n/a | Partial | See Detailed API reference. |
| `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
| `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
| `visible` | boolean | false | n/a | Partial | See Detailed API reference. |
| `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference. |

## Events reference (obrigatorio)

| Event | Payload | Trigger | Stability | Notes |
| --- | --- | --- | --- | --- |
| `searchTermChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
| `selectionChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
| `openedChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
| `valueChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
| `focusChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
| `nativeBlur` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
| `nativeChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |

## Styling API (obrigatorio quando aplicavel)

| Token/Class | Scope | Purpose | Notes |
| --- | --- | --- | --- |
| `not-yet-verified` | component | Styling contract not yet verified | Use Detailed API reference for component-specific styling notes. |

## Examples (obrigatorio)

| Example | Scenario | Validates | Notes |
| --- | --- | --- | --- |
| `Minimal valid` | baseline payload | required contract blocks | Extracted from preserved technical reference when available. |
| `Common setup` | common component usage | standard runtime behavior | Validate against host integration path. |
| `Advanced setup` | richer config with overrides | precedence and normalization | Requires runtime confirmation for edge cases. |
| `Enterprise scenario` | governance/legacy/migration context | auditability and compatibility boundaries | Include tenant-specific constraints when applicable. |

### Minimal valid

```json
{
  "componentId": "pdx-material-select",
  "metadata": {
    "name": "department",
    "label": "Departamento",
    "controlType": "select",
    "selectOptions": [
      {
        "value": "fin",
        "text": "Financeiro"
      },
      {
        "value": "it",
        "text": "Tecnologia"
      }
    ]
  },
  "readonlyMode": false
}
```

### Common setup

```json
{
  "componentId": "pdx-material-select",
  "metadata": {
    "name": "department",
    "label": "Departamento",
    "controlType": "select",
    "selectOptions": [
      {
        "value": "fin",
        "text": "Financeiro"
      },
      {
        "value": "it",
        "text": "Tecnologia"
      }
    ]
  },
  "readonlyMode": true
}
```

### Advanced setup

```json
{
  "componentId": "pdx-material-select",
  "metadata": {
    "name": "department",
    "label": "Departamento",
    "controlType": "select",
    "selectOptions": [
      {
        "value": "fin",
        "text": "Financeiro"
      },
      {
        "value": "it",
        "text": "Tecnologia"
      }
    ]
  },
  "readonlyMode": false,
  "disabledMode": false
}
```

### Enterprise scenario

```json
{
  "componentId": "pdx-material-select",
  "metadata": {
    "name": "department",
    "label": "Departamento",
    "controlType": "select",
    "selectOptions": [
      {
        "value": "fin",
        "text": "Financeiro"
      },
      {
        "value": "it",
        "text": "Tecnologia"
      }
    ]
  },
  "presentationMode": true,
  "visible": true
}
```

## Compatibility and migration notes (recomendado)

| Concern | Affected versions | Migration action | Deadline | Notes |
| --- | --- | --- | --- | --- |
| 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 |

## Known limitations and mismatches (recomendado)

| Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
| --- | --- | --- | --- | --- | --- |
| 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 |

## Source references (obrigatorio)

| Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
| --- | --- | --- | --- | --- |
| schema-metadata | projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.metadata.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-select/material-select.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
| 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 |
| 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 |
