---
title: "pdx-inline-date-range JSON API (Canonical)"
slug: "pdx-inline-date-range-json-api"
doc_type: "api-reference"
component: "pdx-inline-date-range"
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-inline-date-range."
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/inline-date-range/inline-date-range.component.ts"
  - "projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.component.ts"
  - "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
source_of_truth_last_verified: "2026-06-13"
last_updated: "2026-06-13"
toc: true
sidebar: true
tags:
  - "json-api"
  - "canonical-contract"
  - "pdx-inline-date-range"
api_stability: "canonical"
schema_verified: true
runtime_verified: true
editor_coverage_verified: false
runtime_scope: "public"
legacy_paths_present: false
has_known_mismatches: false
related_components:
  - "praxis-table"
  - "pdx-material-date-range"
  - "pdx-base-input-runtime-contract"
---

# pdx-inline-date-range

Este documento e a referencia canonica da API JSON de pdx-inline-date-range.

## 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-inline-date-range` | 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/inline-date-range/inline-date-range.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.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-core/src/lib/utils/inline-filter-controls.util.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
| Path hygiene | `false` | Manter consistencia entre contrato canonico e caminhos documentados | Active | 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/inline-date-range/inline-date-range.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
| projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.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.

## 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 |
| Current path hygiene | `false` | Segregar consistencia do 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. |
| `metadata.startPlaceholder` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
| `metadata.endPlaceholder` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
| `metadata.startAriaLabel` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
| `metadata.endAriaLabel` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
| `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference for runtime semantics. |
| `metadata.inlineChipDisplay` | `"value" \| "label-value"` | false | `"value"` | Partial | Controls whether the compact filled chip renders only the date range value or the field label followed by the value. |
| `metadata.clearButton` | object | false | n/a | Partial | See Detailed API reference for runtime semantics. |
| `metadata.inlineQuickPresets*` | unknown | false | n/a | Partial | See Detailed API reference for runtime semantics. |

### Path audit

Nenhum desvio de caminho foi identificado nesta revisao.

### 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). |
| `inlineAutoSize` | Configuracao especifica de runtime | false | override | 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.startPlaceholder` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
| `metadata.endPlaceholder` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
| `metadata.startAriaLabel` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
| `metadata.endAriaLabel` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
| `metadata.inlineAutoSize.*` | object | false | n/a | component-defined | Partial; verify per source_of_truth. |
| `metadata.clearButton` | object | false | n/a | component-defined | Partial; verify per source_of_truth. |
| `metadata.inlineQuickPresets*` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
| `metadata.inlinePanelTitle` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
| `inlineAutoSize.*` | object | false | n/a | component-defined | Partial; verify per source_of_truth. |

### 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 |
| --- | --- | --- | --- | --- |
| `validationChange` | 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 |
| --- | --- | --- | --- | --- |
| `inlineDate-range.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/inline-date-range/inline-date-range.component.ts`. |
| `material-date-range.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.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/inline-date-range/inline-date-range.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.component.ts` | Core runtime flows verified via focused component specs on 2026-06-13; 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-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. |

### 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 de tooling: aliases `pdx-inline-*` resolvidos por `inline-filter-controls.util.ts` e consumidos no `ComponentRegistryService`; editor visual E2E permanece not-yet-verified.
- 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 historicos (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 caminho historico e path canonico, priorizar path canonico e registrar janela de migracao do historico.

## 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)

### 1. Visao Geral e Quando Usar
`pdx-inline-date-range` e a versao inline do date-range, com pill responsiva e acoes/presets no overlay.

Use quando precisar:
- filtrar por intervalo de datas em barras compactas;
- aplicar presets rapidos diretamente no calendario;
- manter UX corporativa com labels e ARIA customizaveis.

### 2. API do Componente (Inputs/Outputs)
| Propriedade | Tipo | Padrao | Obrigatorio | Comportamento |
| --- | --- | --- | --- | --- |
| `metadata` | `MaterialDateRangeMetadata` | - | Sim | Contrato principal do date-range inline. |
| `readonlyMode/disabledMode/visible/presentationMode` | `boolean` | `false/false/true/false` | Nao | Estados de host. |
| `valueChange` | `{ startDate; endDate; ... }` | - | Output base input | Mudanca da faixa selecionada. |
| `validationChange` | `ValidationErrors \| null` | - | Herdado do base range | Estado de validacao do intervalo. |

### 3. Matriz de Cobertura JSON (Completa)
#### 3.1 Campos especificos do componente
| Caminho JSON | Tipo | Status | Comportamento em runtime |
| --- | --- | --- | --- |
| `metadata.startPlaceholder` | `string` | Ativo | Placeholder do campo inicial. |
| `metadata.endPlaceholder` | `string` | Ativo | Placeholder do campo final. |
| `metadata.startAriaLabel` | `string` | Ativo | ARIA do input inicial. |
| `metadata.endAriaLabel` | `string` | Ativo | ARIA do input final. |
| `metadata.inlineAutoSize.*` | `object` | Ativo | Autoajuste de largura da pill. |
| `metadata.inlineChipDisplay` | `"value" \| "label-value"` | Ativo | Exibicao compacta do chip preenchido: somente valor ou label + valor. |
| `metadata.clearButton` | `boolean \| object` | Ativo | Botao de limpeza rapida no trigger. |
| `metadata.inlineQuickPresets*` | `object/array` | Ativo | Presets/acoes especificos do date-range. `inlineQuickPresetsApplyMode` permanece como compatibilidade quando `inlineOverlay.applyMode` nao e declarado. |
| `metadata.inlineOverlay.applyMode` | `"auto" \| "explicit"` | Ativo | Contrato compartilhado de commit do overlay: automatico ou rascunho ate Aplicar. |
| `metadata.inlineOverlay.actions.apply.*` | `object` | Ativo | Label, aria, appearance e colorRole canonicos do botao Aplicar. |
| `metadata.inlineOverlay.actions.cancel.*` | `object` | Ativo | Label, aria, appearance e colorRole canonicos do botao Cancelar. |
| `metadata.inlinePanelTitle` | `string` | Ativo | Titulo do painel de calendario inline. |

Campos de range (min/max/startView/touchUi/shortcuts/timezone etc.) seguem o contrato base do `pdx-material-date-range`.

#### 3.2 Campos herdados compartilhados (exaustivo)
- [pdx-material-date-range.json-api.md](projects/praxis-dynamic-fields/src/lib/components/material-date-range/pdx-material-date-range.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)

Resumo de composicao deste componente:
- `Ativo`: date-range base + UX inline (pill, presets no overlay, quick-clear).
- `Extensao de runtime`: bloco `inlineAutoSize.*` e labels/aria de overlay.

### 4. Mapeamento de Comportamento
- Trigger em pill mostra estado vazio, parcial ou completo do intervalo.
- Clicar em qualquer area acionavel da pill, incluindo os inputs internos de inicio/fim, abre o calendario; apenas o botao de limpeza rapida fica isolado para limpar sem abrir o overlay.
- Overlay de calendario inclui presets e botoes de aplicar/cancelar.
- Entrada manual em ambos os campos sincroniza com o valor consolidado do range.
- Em `inlineOverlay.applyMode: "auto"`, selecao manual no calendario aplica pendencias imediatamente para manter o valor do chip inline sincronizado.
- Em `inlineOverlay.applyMode: "explicit"`, o chip inline mostra o intervalo em rascunho enquanto o overlay esta aberto; o commit de negocio continua ocorrendo apenas em `Aplicar`, enquanto `Cancelar`, `Esc` ou fechamento externo restauram o valor confirmado.
- O rodape `Aplicar`/`Cancelar` e materializado pelo contrato `inlineOverlay` mesmo quando nao ha `inlineQuickPresets`, para que confirmacao explicita nao dependa de atalhos rapidos.
- `inlineQuickPresetsApplyMode: "auto" | "confirm"` continua suportado como fallback legado especifico do `inlineDateRange`.
- Labels, aria, `appearance` e `colorRole` dos botoes do rodape devem ser authorados em `inlineOverlay.actions.apply` e `inlineOverlay.actions.cancel`; os campos `inlineQuickPresets*Label` sao fallback legado.

### 5. Exemplo Minimo (JSON + Uso)
```json
{
  "componentId": "pdx-inline-date-range",
  "metadata": {
    "name": "period",
    "label": "Periodo",
    "controlType": "dateRange"
  }
}
```
Uso: filtro inline de intervalo de datas.

### 6. Exemplo Corporativo (JSON + Uso)
```json
{
  "componentId": "pdx-inline-date-range",
  "metadata": {
    "name": "billingPeriod",
    "label": "Periodo de Faturamento",
    "controlType": "dateRange",
    "startPlaceholder": "Inicio",
    "endPlaceholder": "Fim",
    "startAriaLabel": "Data inicial do periodo",
    "endAriaLabel": "Data final do periodo",
    "inlinePanelTitle": "Selecionar periodo",
    "inlineAutoSize": { "minWidth": 180, "maxWidth": 420 },
    "inlineQuickPresets": [
      { "id": "today", "label": "Hoje", "start": "today", "end": "today" },
      { "id": "last7", "label": "Ultimos 7 dias", "start": "-7d", "end": "today" }
    ],
    "inlineOverlay": {
      "applyMode": "explicit",
      "actions": {
        "apply": { "label": "Aplicar", "appearance": "filled", "colorRole": "primary" },
        "cancel": { "label": "Cancelar", "appearance": "text", "colorRole": "neutral" }
      }
    },
    "clearButton": { "enabled": true, "showOnlyWhenFilled": true }
  }
}
```
Uso: faixa de datas corporativa com presets rapidos no calendario.

### 7. Troubleshooting e Armadilhas Comuns
1. Presets nao aparecem no overlay.
Correcao: validar `inlineQuickPresets` e `shortcuts`; se os botoes "Cancelar/Aplicar" aparecem mas os presets ficam vazios, inspecionar se `.mat-datepicker-actions` caiu no layout `flex` por projection do Angular Material. A versao atual sincroniza a classe de runtime `pdx-inline-date-range-overlay-actions-container` no container real de acoes para forcar layout em grid, cobrindo os dois shapes (`.pdx-inline-date-range-overlay-actions` e `panel + .mat-datepicker-actions`).

2. Trigger mostra texto parcial inesperado.
Correcao: revisar preenchimento de `startDate/endDate` e parse de input manual.

3. Selecao manual nao reflete no chip em modo `auto`.
Correcao: garantir que o componente esteja usando a sincronizacao de pendencias do Datepicker (`_applyPendingSelection`) ao clicar em celulas do calendario no overlay.

4. Botao limpar indisponivel.
Correcao: verificar `clearButton` e estado readonly/disabled.

5. Calendario nao abre ao clicar no texto da pill preenchida.
Correcao: garantir que o clique nos inputs internos de inicio/fim encaminha para `openPicker`; esses inputs ocupam a maior parte da area visual do chip em cenarios densos de toolbar.

6. Largura do chip estoura em mobile.
Correcao: ajustar limites no bloco `inlineAutoSize`.

7. ARIA de inicio/fim nao refletida.
Correcao: preencher `startAriaLabel/endAriaLabel` explicitamente.

8. Layout muda entre apps com densidade diferente.
Correcao: usar `metadata.materialDesign.density` (`dense` ou `default`) e validar no overlay se `gap/padding` foram aplicados no bloco `.mat-datepicker-actions` com classe de densidade `pdx-inline-date-range-overlay-actions-container--*`.

### 8. Cross-links
- `projects/praxis-dynamic-fields/src/lib/components/material-date-range/pdx-material-date-range.json-api.md`
- `projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md`

### 9. Relatorio de Validacao Estrutural
- Visao geral: PASS
- API (inputs/outputs): PASS
- Cobertura JSON completa (especifico + herdado): PASS
- Mapeamento de comportamento: PASS
- Exemplo minimo: PASS
- Exemplo corporativo: PASS
- Troubleshooting: PASS

## JSON path index (obrigatorio)

| Path | Type | Required | Default | Status | Notes |
| --- | --- | --- | --- | --- | --- |
| `metadata` | object | true | n/a | Partial | See Detailed API reference. |
| `metadata.startPlaceholder` | string | false | n/a | Partial | See Detailed API reference. |
| `metadata.endPlaceholder` | string | false | n/a | Partial | See Detailed API reference. |
| `metadata.startAriaLabel` | string | false | n/a | Partial | See Detailed API reference. |
| `metadata.endAriaLabel` | string | false | n/a | Partial | See Detailed API reference. |
| `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference. |
| `metadata.inlineChipDisplay` | `"value" \| "label-value"` | false | `"value"` | Partial | See Detailed API reference. |
| `metadata.clearButton` | object | false | n/a | Partial | See Detailed API reference. |
| `metadata.inlineQuickPresets*` | unknown | false | n/a | Partial | See Detailed API reference. |
| `metadata.inlinePanelTitle` | string | false | n/a | Partial | See Detailed API reference. |
| `inlineAutoSize.*` | object | false | 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 |
| --- | --- | --- | --- | --- |
| `validationChange` | 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-inline-date-range",
  "metadata": {
    "name": "period",
    "label": "Periodo",
    "controlType": "dateRange"
  },
  "readonlyMode": false
}
```

### Common setup

```json
{
  "componentId": "pdx-inline-date-range",
  "metadata": {
    "name": "billingPeriod",
    "label": "Periodo de Faturamento",
    "controlType": "dateRange",
    "startPlaceholder": "Inicio",
    "endPlaceholder": "Fim",
    "startAriaLabel": "pdx-inline-date-range-common",
    "endAriaLabel": "Data final do periodo",
    "inlinePanelTitle": "Selecionar periodo",
    "inlineAutoSize": {
      "minWidth": 180,
      "maxWidth": 420
    },
    "inlineQuickPresets": [
      {
        "id": "today",
        "label": "Hoje",
        "start": "today",
        "end": "today"
      },
      {
        "id": "last7",
        "label": "Ultimos 7 dias",
        "start": "-7d",
        "end": "today"
      }
    ],
    "clearButton": {
      "enabled": true,
      "showOnlyWhenFilled": true
    }
  }
}
```

### Advanced setup

```json
{
  "componentId": "pdx-inline-date-range",
  "metadata": {
    "name": "billingPeriod",
    "label": "Periodo de Faturamento",
    "controlType": "dateRange",
    "startPlaceholder": "Inicio",
    "endPlaceholder": "Fim",
    "startAriaLabel": "Data inicial do periodo",
    "endAriaLabel": "Data final do periodo",
    "inlinePanelTitle": "Selecionar periodo",
    "inlineAutoSize": {
      "minWidth": 180,
      "maxWidth": 420
    },
    "inlineQuickPresets": [
      {
        "id": "today",
        "label": "Hoje",
        "start": "today",
        "end": "today"
      },
      {
        "id": "last7",
        "label": "Ultimos 7 dias",
        "start": "-7d",
        "end": "today"
      }
    ],
    "clearButton": {
      "enabled": true,
      "showOnlyWhenFilled": true
    }
  },
  "readonlyMode": false,
  "disabledMode": false
}
```

### Enterprise scenario

```json
{
  "componentId": "pdx-inline-date-range",
  "metadata": {
    "name": "billingPeriod",
    "label": "Periodo de Faturamento",
    "controlType": "dateRange",
    "startPlaceholder": "Inicio",
    "endPlaceholder": "Fim",
    "startAriaLabel": "Data inicial do periodo",
    "endAriaLabel": "Data final do periodo",
    "inlinePanelTitle": "Selecionar periodo",
    "inlineAutoSize": {
      "minWidth": 180,
      "maxWidth": 420
    },
    "inlineQuickPresets": [
      {
        "id": "today",
        "label": "Hoje",
        "start": "today",
        "end": "today"
      },
      {
        "id": "last7",
        "label": "Ultimos 7 dias",
        "start": "-7d",
        "end": "today"
      }
    ],
    "clearButton": {
      "enabled": true,
      "showOnlyWhenFilled": true
    }
  },
  "presentationMode": true,
  "visible": true
}
```

## Compatibility and migration notes (recomendado)

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

## 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 |
| --- | --- | --- | --- | --- |
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/inline-date-range/inline-date-range.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.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 |
