@praxisui/dynamic-fields 8.0.0-beta.8 → 8.0.0-beta.81
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.
- package/README.md +19 -0
- package/docs/dynamic-fields-field-catalog.md +217 -0
- package/docs/dynamic-fields-field-selection-guide.md +204 -0
- package/docs/dynamic-fields-host-custom-field-guide.md +252 -0
- package/docs/dynamic-fields-host-custom-field-troubleshooting.md +160 -0
- package/docs/dynamic-fields-inline-components-guide.md +582 -0
- package/docs/dynamic-fields-inline-filter-catalog.md +502 -0
- package/docs/dynamic-fields-inline-filter-custom-component-guide.md +241 -0
- package/docs/dynamic-fields-inline-filter-inventory.md +247 -0
- package/docs/dynamic-fields-inline-filter-runtime-contract.md +391 -0
- package/docs/dynamic-fields-inline-filter-selection-guide.md +419 -0
- package/docs/dynamic-fields-inline-filter-troubleshooting.md +201 -0
- package/docs/dynamic-fields-inventory.md +206 -0
- package/docs/dynamic-fields-playground-catalog-plan.md +243 -0
- package/docs/generic-crud-service.md +152 -0
- package/fesm2022/praxisui-dynamic-fields-index-CBogy3si.mjs +1 -0
- package/fesm2022/praxisui-dynamic-fields-index-CWPZdn1Y.mjs +6 -0
- package/fesm2022/praxisui-dynamic-fields-index-CrHhyUMO.mjs +1 -0
- package/fesm2022/praxisui-dynamic-fields-index-DhGo5In4.mjs +6 -0
- package/fesm2022/praxisui-dynamic-fields.mjs +19551 -10669
- package/package.json +14 -13
- package/src/lib/base/pdx-base-input-runtime-contract.json-api.md +526 -0
- package/src/lib/base/pdx-base-select-runtime-contract.json-api.md +474 -0
- package/src/lib/components/color-input/pdx-color-input.json-api.md +573 -0
- package/src/lib/components/color-picker/pdx-color-picker.json-api.md +686 -0
- package/src/lib/components/date-input/pdx-date-input.json-api.md +581 -0
- package/src/lib/components/datetime-local-input/pdx-datetime-local-input.json-api.md +560 -0
- package/src/lib/components/email-input/pdx-email-input.json-api.md +546 -0
- package/src/lib/components/field-shell/praxis-field-shell.json-api.md +523 -0
- package/src/lib/components/inline-async-select/pdx-inline-async-select.json-api.md +566 -0
- package/src/lib/components/inline-autocomplete/pdx-inline-autocomplete.json-api.md +554 -0
- package/src/lib/components/inline-color-label/pdx-inline-color-label.json-api.md +615 -0
- package/src/lib/components/inline-currency/pdx-inline-currency.json-api.md +542 -0
- package/src/lib/components/inline-currency-range/pdx-inline-currency-range.json-api.md +630 -0
- package/src/lib/components/inline-date/pdx-inline-date.json-api.md +529 -0
- package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +592 -0
- package/src/lib/components/inline-distance-radius/pdx-inline-distance-radius.json-api.md +649 -0
- package/src/lib/components/inline-entity-lookup/pdx-inline-entity-lookup.json-api.md +656 -0
- package/src/lib/components/inline-input/pdx-inline-input.json-api.md +538 -0
- package/src/lib/components/inline-multi-select/pdx-inline-multi-select.json-api.md +566 -0
- package/src/lib/components/inline-number/pdx-inline-number.json-api.md +533 -0
- package/src/lib/components/inline-pipeline-status/pdx-inline-pipeline-status.json-api.md +619 -0
- package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +605 -0
- package/src/lib/components/inline-rating/pdx-inline-rating.json-api.md +594 -0
- package/src/lib/components/inline-relative-period/pdx-inline-relative-period.json-api.md +623 -0
- package/src/lib/components/inline-score-priority/pdx-inline-score-priority.json-api.md +632 -0
- package/src/lib/components/inline-searchable-select/pdx-inline-searchable-select.json-api.md +564 -0
- package/src/lib/components/inline-select/pdx-inline-select.json-api.md +571 -0
- package/src/lib/components/inline-sentiment/pdx-inline-sentiment.json-api.md +661 -0
- package/src/lib/components/inline-time/pdx-inline-time.json-api.md +573 -0
- package/src/lib/components/inline-time-range/pdx-inline-time-range.json-api.md +635 -0
- package/src/lib/components/inline-toggle/pdx-inline-toggle.json-api.md +516 -0
- package/src/lib/components/inline-tree-select/pdx-inline-tree-select.json-api.md +637 -0
- package/src/lib/components/material-async-select/pdx-material-async-select.json-api.md +566 -0
- package/src/lib/components/material-autocomplete/pdx-material-autocomplete.json-api.md +561 -0
- package/src/lib/components/material-avatar/pdx-material-avatar.json-api.md +670 -0
- package/src/lib/components/material-button/pdx-material-button.json-api.md +572 -0
- package/src/lib/components/material-button-toggle/pdx-material-button-toggle.json-api.md +577 -0
- package/src/lib/components/material-checkbox-group/pdx-material-checkbox-group.json-api.md +611 -0
- package/src/lib/components/material-chips/pdx-material-chips.json-api.md +601 -0
- package/src/lib/components/material-colorpicker/pdx-material-colorpicker.json-api.md +545 -0
- package/src/lib/components/material-cpf-cnpj-input/pdx-material-cpf-cnpj-input.json-api.md +531 -0
- package/src/lib/components/material-currency/pdx-material-currency.json-api.md +569 -0
- package/src/lib/components/material-date-range/pdx-material-date-range.json-api.md +636 -0
- package/src/lib/components/material-datepicker/pdx-material-datepicker.json-api.md +551 -0
- package/src/lib/components/material-file-upload/pdx-material-file-upload.json-api.md +511 -0
- package/src/lib/components/material-multi-select/pdx-material-multi-select.json-api.md +596 -0
- package/src/lib/components/material-multi-select-tree/pdx-material-multi-select-tree.json-api.md +623 -0
- package/src/lib/components/material-price-range/pdx-material-price-range.json-api.md +619 -0
- package/src/lib/components/material-radio-group/pdx-material-radio-group.json-api.md +585 -0
- package/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md +664 -0
- package/src/lib/components/material-rating/pdx-material-rating.json-api.md +551 -0
- package/src/lib/components/material-searchable-select/pdx-material-searchable-select.json-api.md +602 -0
- package/src/lib/components/material-select/pdx-material-select.json-api.md +601 -0
- package/src/lib/components/material-selection-list/pdx-material-selection-list.json-api.md +607 -0
- package/src/lib/components/material-slide-toggle/pdx-material-slide-toggle.json-api.md +522 -0
- package/src/lib/components/material-slider/pdx-material-slider.json-api.md +602 -0
- package/src/lib/components/material-textarea/pdx-material-textarea.json-api.md +598 -0
- package/src/lib/components/material-timepicker/pdx-material-timepicker.json-api.md +554 -0
- package/src/lib/components/material-transfer-list/pdx-material-transfer-list.json-api.md +614 -0
- package/src/lib/components/material-tree-select/pdx-material-tree-select.json-api.md +649 -0
- package/src/lib/components/month-input/pdx-month-input.json-api.md +527 -0
- package/src/lib/components/number-input/pdx-number-input.json-api.md +594 -0
- package/src/lib/components/password-input/pdx-password-input.json-api.md +574 -0
- package/src/lib/components/pdx-material-time-range/pdx-material-time-range.json-api.md +592 -0
- package/src/lib/components/pdx-year-input/pdx-year-input.json-api.md +543 -0
- package/src/lib/components/phone-input/pdx-phone-input.json-api.md +583 -0
- package/src/lib/components/preload-status/pdx-preload-status.json-api.md +455 -0
- package/src/lib/components/search-input/pdx-search-input.json-api.md +536 -0
- package/src/lib/components/text-input/pdx-text-input.json-api.md +600 -0
- package/src/lib/components/time-input/pdx-time-input.json-api.md +546 -0
- package/src/lib/components/url-input/pdx-url-input.json-api.md +542 -0
- package/src/lib/components/week-input/pdx-week-input.json-api.md +533 -0
- package/{index.d.ts → types/praxisui-dynamic-fields.d.ts} +874 -440
- package/fesm2022/praxisui-dynamic-fields-index-C9IUU4lo.mjs +0 -1
- package/fesm2022/praxisui-dynamic-fields-index-GJtthzkD.mjs +0 -1
- package/fesm2022/praxisui-dynamic-fields-index-XvVS6lAQ.mjs +0 -1
|
@@ -0,0 +1,636 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: "pdx-material-date-range JSON API (Canonical)"
|
|
3
|
+
slug: "pdx-material-date-range-json-api"
|
|
4
|
+
doc_type: "api-reference"
|
|
5
|
+
component: "pdx-material-date-range"
|
|
6
|
+
document_kind: "json-api-canonical"
|
|
7
|
+
reference_mode: "canonical"
|
|
8
|
+
contract_format: "json"
|
|
9
|
+
contract_source: "runtime-and-code"
|
|
10
|
+
description: "Referencia canonica do contrato JSON do componente pdx-material-date-range."
|
|
11
|
+
category: "components"
|
|
12
|
+
sub_category: "dynamic-fields"
|
|
13
|
+
audience:
|
|
14
|
+
- "frontend"
|
|
15
|
+
- "architect"
|
|
16
|
+
- "platform-team"
|
|
17
|
+
level: "advanced"
|
|
18
|
+
status: "active"
|
|
19
|
+
owner: "praxis-ui"
|
|
20
|
+
source_of_truth:
|
|
21
|
+
- "projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.metadata.ts"
|
|
22
|
+
- "projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.component.ts"
|
|
23
|
+
- "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
|
|
24
|
+
- "projects/praxis-core/src/lib/models/component-metadata.interface.ts"
|
|
25
|
+
- "projects/praxis-core/src/lib/utils/date-range-presets.util.ts"
|
|
26
|
+
- "projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts"
|
|
27
|
+
- "projects/praxis-dynamic-fields/src/lib/utils/praxis-native-date-adapter.ts"
|
|
28
|
+
source_of_truth_last_verified: "2026-05-06"
|
|
29
|
+
last_updated: "2026-05-06"
|
|
30
|
+
toc: true
|
|
31
|
+
sidebar: true
|
|
32
|
+
tags:
|
|
33
|
+
- "json-api"
|
|
34
|
+
- "canonical-contract"
|
|
35
|
+
- "pdx-material-date-range"
|
|
36
|
+
api_stability: "canonical"
|
|
37
|
+
schema_verified: true
|
|
38
|
+
runtime_verified: true
|
|
39
|
+
editor_coverage_verified: false
|
|
40
|
+
runtime_scope: "public"
|
|
41
|
+
legacy_paths_present: false
|
|
42
|
+
has_known_mismatches: false
|
|
43
|
+
related_components:
|
|
44
|
+
- "praxis-table"
|
|
45
|
+
- "pdx-base-input-runtime-contract"
|
|
46
|
+
- "pdx-material-datepicker"
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
# pdx-material-date-range
|
|
50
|
+
|
|
51
|
+
Este documento e a referencia canonica da API JSON de pdx-material-date-range.
|
|
52
|
+
|
|
53
|
+
## Summary
|
|
54
|
+
|
|
55
|
+
- Tipo documental: API reference canonica de contrato JSON.
|
|
56
|
+
- Source of truth: runtime e codigo declarados no frontmatter.
|
|
57
|
+
- Objetivo operacional: consulta rapida, auditavel e deterministica sob pressao.
|
|
58
|
+
- Resumo funcional: Contrato JSON metadata-driven com comportamento definido por runtime e schema associado.
|
|
59
|
+
|
|
60
|
+
## Purpose and scope
|
|
61
|
+
|
|
62
|
+
- O componente consome payload JSON metadata-driven e expoe comportamento runtime configuravel por contrato.
|
|
63
|
+
- Esta referencia cobre contrato publico, classificacao de paths e semantica de cobertura (runtime/schema/editor).
|
|
64
|
+
- Fora de escopo: quickstart, tutorial narrativo e notas arquiteturais que nao alteram contrato publico.
|
|
65
|
+
|
|
66
|
+
## Consulta rapida (obrigatorio)
|
|
67
|
+
|
|
68
|
+
| Regra/tema | Observado | Canonico desejado | Status | Evidencia |
|
|
69
|
+
| --- | --- | --- | --- | --- |
|
|
70
|
+
| Component id | `pdx-material-date-range` | Manter ID canonico estavel e versionado por contrato | Active | frontmatter.component |
|
|
71
|
+
| Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
|
|
72
|
+
| Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.component.ts` |
|
|
73
|
+
| Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
|
|
74
|
+
| Editor/tooling coverage | `false` | Editor/tooling deve espelhar somente contrato publico suportado | Partial | `projects/praxis-core/src/lib/metadata/field-selector-control-type.constants.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
|
|
75
|
+
| Legacy paths | `false` | Segregar legado de caminhos canonicos com janela de migracao | Active | frontmatter.legacy_paths_present |
|
|
76
|
+
| Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |
|
|
77
|
+
|
|
78
|
+
## Source of truth
|
|
79
|
+
|
|
80
|
+
| Source | Kind | Notes |
|
|
81
|
+
| --- | --- | --- |
|
|
82
|
+
| projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.metadata.ts | schema-metadata | Arquivo presente no repositorio e usado como evidencia de contrato. |
|
|
83
|
+
| 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. |
|
|
84
|
+
| projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | schema-types | Arquivo presente no repositorio e usado como evidencia de contrato. |
|
|
85
|
+
| projects/praxis-core/src/lib/models/component-metadata.interface.ts | schema-types | Arquivo presente no repositorio e usado como evidencia de contrato. |
|
|
86
|
+
| projects/praxis-core/src/lib/utils/date-range-presets.util.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
|
|
87
|
+
| projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | runtime-code | Arquivo presente no repositorio e usado como evidencia de contrato. |
|
|
88
|
+
| projects/praxis-dynamic-fields/src/lib/utils/praxis-native-date-adapter.ts | runtime-code | Adapter canonico de parsing manual de datas usado pelos controles Material de data. |
|
|
89
|
+
|
|
90
|
+
## Support legend
|
|
91
|
+
|
|
92
|
+
- **Active**: suportado em runtime e liberado para uso externo.
|
|
93
|
+
- **Partial**: suporte parcial, com restricoes, lacunas ou validacao incompleta.
|
|
94
|
+
- **Declared-only**: declarado em tipos/schema sem evidencia operacional completa.
|
|
95
|
+
- **Schema-only**: presente em schema/tipos sem cobertura runtime confirmada.
|
|
96
|
+
- **Deprecated**: legado suportado por janela de migracao definida.
|
|
97
|
+
|
|
98
|
+
## Contract status snapshot
|
|
99
|
+
|
|
100
|
+
| Item | Value | Notes |
|
|
101
|
+
| --- | --- | --- |
|
|
102
|
+
| Reference mode | `canonical` | Deve permanecer canonico |
|
|
103
|
+
| Contract format | `json` | Contrato metadata-driven |
|
|
104
|
+
| Contract source | `runtime-and-code` | Alinhar com source_of_truth |
|
|
105
|
+
| Runtime scope | `public` | Escopo publicado para consumidores |
|
|
106
|
+
| Runtime verified | `true` | Revisar sempre com evidencia de runtime |
|
|
107
|
+
| Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
|
|
108
|
+
| Editor coverage verified | `false` | Revisar sempre com evidencia de editor/tooling |
|
|
109
|
+
| Legacy paths present | `false` | Segregar legado de contrato canonico |
|
|
110
|
+
| Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
|
|
111
|
+
|
|
112
|
+
## Contract classification (obrigatorio)
|
|
113
|
+
|
|
114
|
+
### Canonical paths (public contract)
|
|
115
|
+
|
|
116
|
+
| Path | Type | Required | Default | Status | Notes |
|
|
117
|
+
| --- | --- | --- | --- | --- | --- |
|
|
118
|
+
| `metadata` | object | true | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
119
|
+
| `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
120
|
+
| `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
121
|
+
| `visible` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
122
|
+
| `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
123
|
+
| `label` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
124
|
+
| `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
125
|
+
| `metadata.minDate` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
126
|
+
|
|
127
|
+
### Supported legacy paths
|
|
128
|
+
|
|
129
|
+
Nenhum path legado suportado foi identificado nesta revisao.
|
|
130
|
+
|
|
131
|
+
### Internal-only paths
|
|
132
|
+
|
|
133
|
+
Nao ha paths internal-only confirmados no contrato publico desta revisao.
|
|
134
|
+
|
|
135
|
+
### Experimental paths
|
|
136
|
+
|
|
137
|
+
Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
138
|
+
|
|
139
|
+
## Public contract surface (obrigatorio)
|
|
140
|
+
|
|
141
|
+
### Top-level configuration blocks
|
|
142
|
+
|
|
143
|
+
| Block | Purpose | Required | Merge strategy | Notes |
|
|
144
|
+
| --- | --- | --- | --- | --- |
|
|
145
|
+
| `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
146
|
+
| `readonlyMode` | Override de readonly no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
147
|
+
| `disabledMode` | Override de disabled no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
148
|
+
| `visible` | Override de visibilidade no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
149
|
+
| `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
150
|
+
| `label` | Configuracao especifica de runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
151
|
+
| `Partial<Record<` | Configuracao especifica de runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
|
|
152
|
+
|
|
153
|
+
### Nested configuration blocks
|
|
154
|
+
|
|
155
|
+
| Path | Type | Required | Default | Constraints | Notes |
|
|
156
|
+
| --- | --- | --- | --- | --- | --- |
|
|
157
|
+
| `metadata.controlType` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
158
|
+
| `metadata.minDate` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
159
|
+
| `metadata.maxDate` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
160
|
+
| `metadata.startAt` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
161
|
+
| `metadata.startView` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
162
|
+
| `metadata.touchUi` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
163
|
+
| `metadata.dateFilter` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
164
|
+
| `metadata.startPlaceholder` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
165
|
+
| `metadata.endPlaceholder` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
166
|
+
| `metadata.startAriaLabel` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
167
|
+
|
|
168
|
+
### Manual date parsing
|
|
169
|
+
|
|
170
|
+
- Digitacao manual usa `PraxisNativeDateAdapter` e respeita o `LOCALE_ID` do host.
|
|
171
|
+
- Em locales nao ingleses, como `pt-BR`, datas numericas sao interpretadas como `dd/MM/yyyy`.
|
|
172
|
+
- Em locales ingleses, datas numericas sao interpretadas como `MM/dd/yyyy`.
|
|
173
|
+
- Strings ISO date-only (`YYYY-MM-DD`) sao tratadas como data local, sem deslocamento por timezone.
|
|
174
|
+
- Valores enviados ao backend por ranges devem preservar a semantica date-only quando o campo representa uma data civil.
|
|
175
|
+
|
|
176
|
+
### Input bindings (inbound data)
|
|
177
|
+
|
|
178
|
+
| Binding/Path | Type | Required | Source | Runtime normalization | Notes |
|
|
179
|
+
| --- | --- | --- | --- | --- | --- |
|
|
180
|
+
| `metadata` | object | true | host-json | component-defined | Primary inbound contract payload. |
|
|
181
|
+
| `readonlyMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
|
|
182
|
+
| `disabledMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
|
|
183
|
+
| `visible` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
|
|
184
|
+
| `presentationMode` | boolean | false | host-runtime | not-yet-verified | Host-level behavioral override. |
|
|
185
|
+
|
|
186
|
+
### Output events
|
|
187
|
+
|
|
188
|
+
| Event | Payload | Trigger | Stability | Notes |
|
|
189
|
+
| --- | --- | --- | --- | --- |
|
|
190
|
+
| `validationChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
|
|
191
|
+
| `valueChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
|
|
192
|
+
| `focusChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
|
|
193
|
+
| `nativeBlur` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
|
|
194
|
+
| `nativeChange` | unknown | runtime-event | Experimental | Validate payload shape against source_of_truth. |
|
|
195
|
+
|
|
196
|
+
### External side channels
|
|
197
|
+
|
|
198
|
+
| Channel | Direction | Contract | Failure mode | Notes |
|
|
199
|
+
| --- | --- | --- | --- | --- |
|
|
200
|
+
| `host/services/storage` | bidirectional | component-defined | component-defined | Side channels variam por componente e host; verificar em source_of_truth. |
|
|
201
|
+
|
|
202
|
+
### Host/runtime dependencies
|
|
203
|
+
|
|
204
|
+
| Dependency | Required | Environment | Purpose | Notes |
|
|
205
|
+
| --- | --- | --- | --- | --- |
|
|
206
|
+
| `material-date-range.metadata.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.metadata.ts`. |
|
|
207
|
+
| `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`. |
|
|
208
|
+
| `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`. |
|
|
209
|
+
| `component-metadata.interface.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-core/src/lib/models/component-metadata.interface.ts`. |
|
|
210
|
+
| `date-range-presets.util.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-core/src/lib/utils/date-range-presets.util.ts`. |
|
|
211
|
+
| `simple-base-input.component.ts` | true | browser/dev/prod/ssr | contract resolution | Refer to `projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts`. |
|
|
212
|
+
| `praxis-native-date-adapter.ts` | true | browser/dev/prod/ssr | locale-aware date parsing | Refer to `projects/praxis-dynamic-fields/src/lib/utils/praxis-native-date-adapter.ts`. |
|
|
213
|
+
|
|
214
|
+
## Coverage by surface (obrigatorio)
|
|
215
|
+
|
|
216
|
+
### Coverage matrix (runtime, schema/type, editor/tooling)
|
|
217
|
+
|
|
218
|
+
| Surface | Verified | Coverage status | Evidence | Notes |
|
|
219
|
+
| --- | --- | --- | --- | --- |
|
|
220
|
+
| Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.metadata.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-03-06; editor/tooling coverage remains independent. |
|
|
221
|
+
| Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
|
|
222
|
+
| Editor/Tooling | `false` | Partial | `projects/praxis-core/src/lib/metadata/field-selector-control-type.constants.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` | Selector/control-type tooling linkage verified via default selector map and registry seeding; visual editor end-to-end coverage remains not-yet-verified. |
|
|
223
|
+
|
|
224
|
+
### Runtime coverage boundaries
|
|
225
|
+
|
|
226
|
+
- Ambientes suportados: browser/dev/prod; SSR/hydration appears to be component-dependent unless explicitly verified.
|
|
227
|
+
- Pre-condicoes: payload JSON valido, bindings de host consistentes e dependencias descritas no source_of_truth.
|
|
228
|
+
- Fora de cobertura confirmada: caminhos internos, experimentais ou aliases nao enumerados formalmente.
|
|
229
|
+
|
|
230
|
+
### Editor and tooling notes
|
|
231
|
+
|
|
232
|
+
- Evidencia de tooling: selector `pdx-*` mapeado em `DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP` e semeado no `ComponentRegistryService`; editor visual E2E permanece not-yet-verified.
|
|
233
|
+
- O que esta exposto no editor visual depende da cobertura real do workspace e nao deve ser inferido como suporte runtime total.
|
|
234
|
+
- Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
|
|
235
|
+
- Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.
|
|
236
|
+
|
|
237
|
+
## Resolution and precedence model (obrigatorio)
|
|
238
|
+
|
|
239
|
+
### Merge order
|
|
240
|
+
|
|
241
|
+
1. defaults do componente
|
|
242
|
+
2. contrato JSON recebido
|
|
243
|
+
3. overrides de host/runtime
|
|
244
|
+
4. normalizacoes internas
|
|
245
|
+
|
|
246
|
+
### Fallback order
|
|
247
|
+
|
|
248
|
+
contrato explicito -> aliases legados (quando suportados) -> defaults internos -> comportamento seguro
|
|
249
|
+
|
|
250
|
+
### Override points
|
|
251
|
+
|
|
252
|
+
- inputs publicos do componente
|
|
253
|
+
- configuracao JSON de runtime
|
|
254
|
+
- integracoes de host (servicos/tokens/adapters)
|
|
255
|
+
|
|
256
|
+
### Runtime normalization
|
|
257
|
+
|
|
258
|
+
Alias e defaults devem convergir para paths canonicos; onde nao houver evidencia, manter not-yet-verified de forma explicita.
|
|
259
|
+
|
|
260
|
+
### Precedence rules
|
|
261
|
+
|
|
262
|
+
Em conflito entre alias legado e path canonico, priorizar path canonico e registrar janela de migracao do legado.
|
|
263
|
+
|
|
264
|
+
## Validation and error semantics (obrigatorio)
|
|
265
|
+
|
|
266
|
+
### Validation model
|
|
267
|
+
|
|
268
|
+
| Path/Rule | Validation phase | Behavior on fail | Error code / warning | Notes |
|
|
269
|
+
| --- | --- | --- | --- | --- |
|
|
270
|
+
| canonical-paths | parse/runtime | component-defined (warn/reject/default) | not-yet-standardized | Semantica detalhada preservada na referencia tecnica por componente. |
|
|
271
|
+
|
|
272
|
+
### Invalid and unknown field handling
|
|
273
|
+
|
|
274
|
+
- Campos desconhecidos: comportamento component-defined (ignore, warn ou reject).
|
|
275
|
+
- Tipos invalidos: pode haver fallback, warning ou falha, conforme runtime especifico.
|
|
276
|
+
- Valores fora de dominio: registrar observed vs desired em Known limitations and mismatches.
|
|
277
|
+
|
|
278
|
+
### Fail-open / fail-closed behavior
|
|
279
|
+
|
|
280
|
+
| Condition | Mode | Runtime behavior | Consumer impact |
|
|
281
|
+
| --- | --- | --- | --- |
|
|
282
|
+
| invalid-or-unknown-field | component-defined | not-yet-verified | Pode gerar warning, fallback silencioso ou rejeicao; validar por componente. |
|
|
283
|
+
|
|
284
|
+
### Runtime warnings vs hard failures
|
|
285
|
+
|
|
286
|
+
| Condition | Severity | Observability | Consumer action |
|
|
287
|
+
| --- | --- | --- | --- |
|
|
288
|
+
| partial-or-declared-only-coverage | warning | logs/eventos do componente | Confirmar ligacao runtime antes de uso critico. |
|
|
289
|
+
| mismatch-confirmed | error-or-warning | componente/host observability | Planejar migracao e corrigir contrato/runtime. |
|
|
290
|
+
|
|
291
|
+
## Detailed API reference
|
|
292
|
+
### Preserved technical reference (normalized from previous revision)
|
|
293
|
+
|
|
294
|
+
### 1. Visao Geral e Quando Usar
|
|
295
|
+
`pdx-material-date-range` e o componente orientado por JSON para intervalo de datas em `@praxisui/dynamic-fields`, baseado em `MatDateRangeInput/MatDateRangePicker`.
|
|
296
|
+
|
|
297
|
+
Use quando precisar:
|
|
298
|
+
- capturar `data inicial` e `data final` no mesmo campo logico;
|
|
299
|
+
- validar ordem do intervalo (`start <= end`);
|
|
300
|
+
- oferecer atalhos corporativos (today/thisMonth/lastMonth etc.).
|
|
301
|
+
|
|
302
|
+
### 2. API do Componente (Inputs/Outputs)
|
|
303
|
+
| Propriedade | Tipo | Padrao | Obrigatorio | Comportamento |
|
|
304
|
+
| --- | --- | --- | --- | --- |
|
|
305
|
+
| `metadata` | `MaterialDateRangeMetadata` | - | Sim | Contrato principal do intervalo de datas. |
|
|
306
|
+
| `readonlyMode` | `boolean` | `false` | Nao | Sobrescreve leitura no host. |
|
|
307
|
+
| `disabledMode` | `boolean` | `false` | Nao | Sobrescreve estado disabled no host. |
|
|
308
|
+
| `visible` | `boolean` | `true` | Nao | Controla exibicao no host. |
|
|
309
|
+
| `presentationMode` | `boolean` | `false` | Nao | Modo apresentacao (sem edicao). |
|
|
310
|
+
| `validationChange` | `ValidationErrors \| null` | - | Output | Emite estado de validacao apos `validateField()`. |
|
|
311
|
+
|
|
312
|
+
Observacao:
|
|
313
|
+
- valor do campo segue `DateRangeValue` com `startDate` e `endDate` (e opcionalmente `preset`, `label`, `timezone`).
|
|
314
|
+
- Durante a selecao pelo `mat-date-range-picker`, o componente nao propaga um range parcial enquanto o overlay esta aberto; `valueChange` e write-back externo sao emitidos quando inicio e fim estao preenchidos ou quando o picker fecha.
|
|
315
|
+
|
|
316
|
+
### 3. Matriz de Cobertura JSON (Completa)
|
|
317
|
+
#### 3.1 Campos especificos do componente
|
|
318
|
+
| Caminho JSON | Tipo | Status | Comportamento em runtime |
|
|
319
|
+
| --- | --- | --- | --- |
|
|
320
|
+
| `metadata.controlType` | `'dateRange'` | Ativo | Identifica contrato do componente no host. |
|
|
321
|
+
| `metadata.minDate` | `Date \| string` | Ativo | Limite minimo do intervalo no date-range-input. |
|
|
322
|
+
| `metadata.maxDate` | `Date \| string` | Ativo | Limite maximo do intervalo no date-range-input. |
|
|
323
|
+
| `metadata.startAt` | `Date \| string` | Ativo | Data inicial de abertura do calendario. |
|
|
324
|
+
| `metadata.startView` | `'month' \| 'year' \| 'multi-year'` | Ativo | Visao inicial do date-range-picker. |
|
|
325
|
+
| `metadata.touchUi` | `boolean` | Ativo | Modo touch do date-range-picker. |
|
|
326
|
+
| `metadata.dateFilter` | `(date) => boolean` | Ativo | Filtro de datas permitidas. |
|
|
327
|
+
| `metadata.startPlaceholder` | `string` | Ativo | Placeholder do input de inicio. |
|
|
328
|
+
| `metadata.endPlaceholder` | `string` | Ativo | Placeholder do input de fim. |
|
|
329
|
+
| `metadata.startAriaLabel` | `string` | Ativo | ARIA label do input de inicio. |
|
|
330
|
+
| `metadata.endAriaLabel` | `string` | Ativo | ARIA label do input de fim. |
|
|
331
|
+
| `metadata.showShortcuts` | `boolean` | Ativo | Exibe overlay de atalhos ao abrir picker. |
|
|
332
|
+
| `metadata.shortcuts` | `Array<string \| DateRangePreset>` | Ativo | Define atalhos builtin e customizados. |
|
|
333
|
+
| `metadata.shortcutsPosition` | `'auto' \| 'below' \| 'left' \| 'right'` | Ativo | Posicao preferencial do overlay de atalhos. O default `auto` prioriza posicionamento abaixo do campo, com fallback lateral e protecao contra recorte no viewport. |
|
|
334
|
+
| `metadata.applyOnShortcutClick` | `boolean` | Ativo | Aplica e fecha automaticamente ao clicar no atalho. |
|
|
335
|
+
| `metadata.i18nShortcuts` | `Partial<Record<...>>` | Ativo | Sobrescreve labels de atalhos builtin. |
|
|
336
|
+
| `metadata.timezone` | `string` | Ativo | Contexto de timezone para calculo de presets builtin. |
|
|
337
|
+
| `metadata.startOfWeek` | `0..6` | Ativo | Inicio da semana para presets (`thisWeek`, `lastWeek`). |
|
|
338
|
+
| `metadata.nowProvider` | `() => Date` | Ativo | Fonte de data atual para presets deterministas. |
|
|
339
|
+
| `metadata.inlineQuickPresets` | `boolean \| object` | Declared-only | Declarado no contrato; sem uso no template atual deste componente. |
|
|
340
|
+
| `metadata.inlineQuickPresetsAriaLabel` | `string` | Declared-only | Declarado no contrato; sem uso no template atual. |
|
|
341
|
+
| `metadata.inlineQuickPresetsCancelLabel` | `string` | Declared-only | Declarado no contrato; sem uso no template atual. |
|
|
342
|
+
| `metadata.inlineQuickPresetsCancelAriaLabel` | `string` | Declared-only | Declarado no contrato; sem uso no template atual. |
|
|
343
|
+
| `metadata.inlineQuickPresetsApplyLabel` | `string` | Declared-only | Declarado no contrato; sem uso no template atual. |
|
|
344
|
+
| `metadata.inlineQuickPresetsApplyAriaLabel` | `string` | Declared-only | Declarado no contrato; sem uso no template atual. |
|
|
345
|
+
| `metadata.inlineQuickPresetsApplyMode` | `'auto' \| 'confirm'` | Declared-only | Declarado no contrato; sem uso no template atual. |
|
|
346
|
+
| `metadata.interval` | `number \| string` | Extensao de runtime | Campo aceito/consumido em outros componentes de range temporal; nao possui binding direto aqui. |
|
|
347
|
+
|
|
348
|
+
Notas de runtime:
|
|
349
|
+
- `rangeGroup` aplica validator contextual para ordem do intervalo (`rangeOrder`).
|
|
350
|
+
- quando atalho e selecionado, o valor final pode incluir `preset` e `label`.
|
|
351
|
+
|
|
352
|
+
#### 3.2 Campos herdados compartilhados (exaustivo)
|
|
353
|
+
Contrato completo dos campos herdados consumidos por `SimpleBaseInput`:
|
|
354
|
+
- [pdx-base-input-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md)
|
|
355
|
+
|
|
356
|
+
Resumo de composicao deste componente:
|
|
357
|
+
- `Ativo`: intervalo de datas + presets/shortcuts + validacao de ordem.
|
|
358
|
+
- `Declared-only`: bloco `inlineQuickPresets*` ainda nao renderizado no componente.
|
|
359
|
+
|
|
360
|
+
### 4. Mapeamento de Comportamento
|
|
361
|
+
- Paginacao: nao se aplica.
|
|
362
|
+
- Ordenacao: nao se aplica.
|
|
363
|
+
- Selecao: objeto `DateRangeValue` (`startDate`, `endDate`, opcional `preset`).
|
|
364
|
+
- Eventos: `validationChange` + outputs herdados (`valueChange`, `focusChange`, `nativeBlur`, `nativeChange`). `valueChange` evita range parcial durante a selecao aberta para preservar o fluxo de escolha de inicio e fim.
|
|
365
|
+
- Renderizacao: `mat-date-range-input` + `mat-date-range-picker` + overlay opcional de atalhos.
|
|
366
|
+
|
|
367
|
+
### 5. Exemplo Minimo (JSON + Uso)
|
|
368
|
+
```json
|
|
369
|
+
{
|
|
370
|
+
"componentId": "pdx-material-date-range",
|
|
371
|
+
"metadata": {
|
|
372
|
+
"name": "period",
|
|
373
|
+
"label": "Periodo",
|
|
374
|
+
"controlType": "dateRange"
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
```
|
|
378
|
+
Uso: renderiza entrada de data inicial/final com calendario de intervalo.
|
|
379
|
+
|
|
380
|
+
### 6. Exemplo Corporativo (JSON + Uso)
|
|
381
|
+
```json
|
|
382
|
+
{
|
|
383
|
+
"componentId": "pdx-material-date-range",
|
|
384
|
+
"metadata": {
|
|
385
|
+
"name": "reportWindow",
|
|
386
|
+
"label": "Janela do relatorio",
|
|
387
|
+
"controlType": "dateRange",
|
|
388
|
+
"required": true,
|
|
389
|
+
"minDate": "2020-01-01",
|
|
390
|
+
"maxDate": "2030-12-31",
|
|
391
|
+
"startPlaceholder": "Inicio",
|
|
392
|
+
"endPlaceholder": "Fim",
|
|
393
|
+
"showShortcuts": true,
|
|
394
|
+
"shortcuts": ["today", "thisWeek", "thisMonth", "lastMonth"],
|
|
395
|
+
"shortcutsPosition": "left",
|
|
396
|
+
"applyOnShortcutClick": true,
|
|
397
|
+
"i18nShortcuts": {
|
|
398
|
+
"today": "Hoje",
|
|
399
|
+
"thisWeek": "Semana atual",
|
|
400
|
+
"thisMonth": "Mes atual"
|
|
401
|
+
},
|
|
402
|
+
"timezone": "America/Sao_Paulo",
|
|
403
|
+
"startOfWeek": 1,
|
|
404
|
+
"hint": "Escolha um intervalo valido para o fechamento."
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
```
|
|
408
|
+
Uso: ativa atalhos corporativos e normalizacao temporal para relatórios padronizados.
|
|
409
|
+
|
|
410
|
+
### 7. Troubleshooting e Armadilhas Comuns
|
|
411
|
+
1. Enviar `shortcuts` com id builtin invalido.
|
|
412
|
+
Correcao: usar ids suportados (ex.: `today`, `thisWeek`, `thisMonth`, `lastMonth`, `thisYear`).
|
|
413
|
+
|
|
414
|
+
2. Esperar que `inlineQuickPresets*` apareca no date-range padrao.
|
|
415
|
+
Correcao: esse bloco ainda nao e renderizado por este componente no runtime atual.
|
|
416
|
+
|
|
417
|
+
3. `startDate` maior que `endDate`.
|
|
418
|
+
Correcao: o validator contextual marca `rangeOrder`; ajustar fluxo de entrada.
|
|
419
|
+
|
|
420
|
+
4. Passar `dateFilter` como string.
|
|
421
|
+
Correcao: o componente espera funcao real `(date) => boolean` no metadata runtime.
|
|
422
|
+
|
|
423
|
+
5. Atalho selecionado sem fechar picker.
|
|
424
|
+
Correcao: verificar `applyOnShortcutClick`; com `false`, o fluxo exige acao manual de fechamento/aplicacao.
|
|
425
|
+
|
|
426
|
+
### 8. Cross-links
|
|
427
|
+
- `projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md`
|
|
428
|
+
- `projects/praxis-dynamic-fields/src/lib/components/material-datepicker/pdx-material-datepicker.json-api.md`
|
|
429
|
+
- `projects/praxis-core/src/lib/utils/date-range-presets.util.ts`
|
|
430
|
+
|
|
431
|
+
### 9. Relatorio de Validacao Estrutural
|
|
432
|
+
- Visao geral: PASS
|
|
433
|
+
- API (inputs/outputs): PASS
|
|
434
|
+
- Cobertura JSON completa (especifico + herdado): PASS
|
|
435
|
+
- Mapeamento de comportamento: PASS
|
|
436
|
+
- Exemplo minimo: PASS
|
|
437
|
+
- Exemplo corporativo: PASS
|
|
438
|
+
- Troubleshooting: PASS
|
|
439
|
+
|
|
440
|
+
## JSON path index (obrigatorio)
|
|
441
|
+
|
|
442
|
+
| Path | Type | Required | Default | Status | Notes |
|
|
443
|
+
| --- | --- | --- | --- | --- | --- |
|
|
444
|
+
| `metadata` | object | true | n/a | Partial | See Detailed API reference. |
|
|
445
|
+
| `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
446
|
+
| `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
447
|
+
| `visible` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
448
|
+
| `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
449
|
+
| `label` | string | false | n/a | Partial | See Detailed API reference. |
|
|
450
|
+
| `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference. |
|
|
451
|
+
| `metadata.minDate` | string | false | n/a | Partial | See Detailed API reference. |
|
|
452
|
+
| `metadata.maxDate` | string | false | n/a | Partial | See Detailed API reference. |
|
|
453
|
+
| `metadata.startAt` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
454
|
+
| `metadata.startView` | string | false | n/a | Partial | See Detailed API reference. |
|
|
455
|
+
| `metadata.touchUi` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
456
|
+
| `metadata.dateFilter` | string | false | n/a | Partial | See Detailed API reference. |
|
|
457
|
+
| `metadata.startPlaceholder` | string | false | n/a | Partial | See Detailed API reference. |
|
|
458
|
+
| `metadata.endPlaceholder` | string | false | n/a | Partial | See Detailed API reference. |
|
|
459
|
+
| `metadata.startAriaLabel` | string | false | n/a | Partial | See Detailed API reference. |
|
|
460
|
+
| `metadata.endAriaLabel` | string | false | n/a | Partial | See Detailed API reference. |
|
|
461
|
+
| `metadata.showShortcuts` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
462
|
+
| `metadata.shortcuts` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
463
|
+
| `metadata.shortcutsPosition` | string | false | n/a | Partial | See Detailed API reference. |
|
|
464
|
+
|
|
465
|
+
## Events reference (obrigatorio)
|
|
466
|
+
|
|
467
|
+
| Event | Payload | Trigger | Stability | Notes |
|
|
468
|
+
| --- | --- | --- | --- | --- |
|
|
469
|
+
| `validationChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
|
|
470
|
+
| `valueChange` | unknown | runtime-event | Experimental | Durante seleção pelo picker, o valor é publicado apenas após o fechamento do calendário; digitação manual fora do picker continua propagando pelas regras normais do CVA. |
|
|
471
|
+
| `focusChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
|
|
472
|
+
| `nativeBlur` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
|
|
473
|
+
| `nativeChange` | unknown | runtime-event | Experimental | Check component/runtime implementation. |
|
|
474
|
+
|
|
475
|
+
## Styling API (obrigatorio quando aplicavel)
|
|
476
|
+
|
|
477
|
+
| Token/Class | Scope | Purpose | Notes |
|
|
478
|
+
| --- | --- | --- | --- |
|
|
479
|
+
| `not-yet-verified` | component | Styling contract not yet verified | Use Detailed API reference for component-specific styling notes. |
|
|
480
|
+
|
|
481
|
+
## Examples (obrigatorio)
|
|
482
|
+
|
|
483
|
+
| Example | Scenario | Validates | Notes |
|
|
484
|
+
| --- | --- | --- | --- |
|
|
485
|
+
| `Minimal valid` | baseline payload | required contract blocks | Extracted from preserved technical reference when available. |
|
|
486
|
+
| `Common setup` | common component usage | standard runtime behavior | Validate against host integration path. |
|
|
487
|
+
| `Advanced setup` | richer config with overrides | precedence and normalization | Requires runtime confirmation for edge cases. |
|
|
488
|
+
| `Enterprise scenario` | governance/legacy/migration context | auditability and compatibility boundaries | Include tenant-specific constraints when applicable. |
|
|
489
|
+
|
|
490
|
+
### Minimal valid
|
|
491
|
+
|
|
492
|
+
```json
|
|
493
|
+
{
|
|
494
|
+
"componentId": "pdx-material-date-range",
|
|
495
|
+
"metadata": {
|
|
496
|
+
"name": "period",
|
|
497
|
+
"label": "Periodo",
|
|
498
|
+
"controlType": "dateRange"
|
|
499
|
+
},
|
|
500
|
+
"readonlyMode": false
|
|
501
|
+
}
|
|
502
|
+
```
|
|
503
|
+
|
|
504
|
+
### Common setup
|
|
505
|
+
|
|
506
|
+
```json
|
|
507
|
+
{
|
|
508
|
+
"componentId": "pdx-material-date-range",
|
|
509
|
+
"metadata": {
|
|
510
|
+
"name": "reportWindow",
|
|
511
|
+
"label": "Janela do relatorio",
|
|
512
|
+
"controlType": "dateRange",
|
|
513
|
+
"required": true,
|
|
514
|
+
"minDate": "2020-01-01",
|
|
515
|
+
"maxDate": "2030-12-31",
|
|
516
|
+
"startPlaceholder": "Inicio",
|
|
517
|
+
"endPlaceholder": "Fim",
|
|
518
|
+
"showShortcuts": true,
|
|
519
|
+
"shortcuts": [
|
|
520
|
+
"today",
|
|
521
|
+
"thisWeek",
|
|
522
|
+
"thisMonth",
|
|
523
|
+
"lastMonth"
|
|
524
|
+
],
|
|
525
|
+
"shortcutsPosition": "left",
|
|
526
|
+
"applyOnShortcutClick": true,
|
|
527
|
+
"i18nShortcuts": {
|
|
528
|
+
"today": "Hoje",
|
|
529
|
+
"thisWeek": "Semana atual",
|
|
530
|
+
"thisMonth": "Mes atual"
|
|
531
|
+
},
|
|
532
|
+
"timezone": "America/Sao_Paulo",
|
|
533
|
+
"startOfWeek": 1,
|
|
534
|
+
"hint": "Escolha um intervalo valido para o fechamento."
|
|
535
|
+
},
|
|
536
|
+
"label": "pdx-material-date-range-common"
|
|
537
|
+
}
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
### Advanced setup
|
|
541
|
+
|
|
542
|
+
```json
|
|
543
|
+
{
|
|
544
|
+
"componentId": "pdx-material-date-range",
|
|
545
|
+
"metadata": {
|
|
546
|
+
"name": "reportWindow",
|
|
547
|
+
"label": "Janela do relatorio",
|
|
548
|
+
"controlType": "dateRange",
|
|
549
|
+
"required": true,
|
|
550
|
+
"minDate": "2020-01-01",
|
|
551
|
+
"maxDate": "2030-12-31",
|
|
552
|
+
"startPlaceholder": "Inicio",
|
|
553
|
+
"endPlaceholder": "Fim",
|
|
554
|
+
"showShortcuts": true,
|
|
555
|
+
"shortcuts": [
|
|
556
|
+
"today",
|
|
557
|
+
"thisWeek",
|
|
558
|
+
"thisMonth",
|
|
559
|
+
"lastMonth"
|
|
560
|
+
],
|
|
561
|
+
"shortcutsPosition": "left",
|
|
562
|
+
"applyOnShortcutClick": true,
|
|
563
|
+
"i18nShortcuts": {
|
|
564
|
+
"today": "Hoje",
|
|
565
|
+
"thisWeek": "Semana atual",
|
|
566
|
+
"thisMonth": "Mes atual"
|
|
567
|
+
},
|
|
568
|
+
"timezone": "America/Sao_Paulo",
|
|
569
|
+
"startOfWeek": 1,
|
|
570
|
+
"hint": "Escolha um intervalo valido para o fechamento."
|
|
571
|
+
},
|
|
572
|
+
"readonlyMode": false,
|
|
573
|
+
"disabledMode": false
|
|
574
|
+
}
|
|
575
|
+
```
|
|
576
|
+
|
|
577
|
+
### Enterprise scenario
|
|
578
|
+
|
|
579
|
+
```json
|
|
580
|
+
{
|
|
581
|
+
"componentId": "pdx-material-date-range",
|
|
582
|
+
"metadata": {
|
|
583
|
+
"name": "reportWindow",
|
|
584
|
+
"label": "Janela do relatorio",
|
|
585
|
+
"controlType": "dateRange",
|
|
586
|
+
"required": true,
|
|
587
|
+
"minDate": "2020-01-01",
|
|
588
|
+
"maxDate": "2030-12-31",
|
|
589
|
+
"startPlaceholder": "Inicio",
|
|
590
|
+
"endPlaceholder": "Fim",
|
|
591
|
+
"showShortcuts": true,
|
|
592
|
+
"shortcuts": [
|
|
593
|
+
"today",
|
|
594
|
+
"thisWeek",
|
|
595
|
+
"thisMonth",
|
|
596
|
+
"lastMonth"
|
|
597
|
+
],
|
|
598
|
+
"shortcutsPosition": "left",
|
|
599
|
+
"applyOnShortcutClick": true,
|
|
600
|
+
"i18nShortcuts": {
|
|
601
|
+
"today": "Hoje",
|
|
602
|
+
"thisWeek": "Semana atual",
|
|
603
|
+
"thisMonth": "Mes atual"
|
|
604
|
+
},
|
|
605
|
+
"timezone": "America/Sao_Paulo",
|
|
606
|
+
"startOfWeek": 1,
|
|
607
|
+
"hint": "Escolha um intervalo valido para o fechamento."
|
|
608
|
+
},
|
|
609
|
+
"presentationMode": true,
|
|
610
|
+
"visible": true
|
|
611
|
+
}
|
|
612
|
+
```
|
|
613
|
+
|
|
614
|
+
## Compatibility and migration notes (recomendado)
|
|
615
|
+
|
|
616
|
+
| Concern | Affected versions | Migration action | Deadline | Notes |
|
|
617
|
+
| --- | --- | --- | --- | --- |
|
|
618
|
+
| 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 |
|
|
619
|
+
|
|
620
|
+
## Known limitations and mismatches (recomendado)
|
|
621
|
+
|
|
622
|
+
| Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
|
|
623
|
+
| --- | --- | --- | --- | --- | --- |
|
|
624
|
+
| 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 |
|
|
625
|
+
|
|
626
|
+
## Source references (obrigatorio)
|
|
627
|
+
|
|
628
|
+
| Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
|
|
629
|
+
| --- | --- | --- | --- | --- |
|
|
630
|
+
| schema-metadata | projects/praxis-dynamic-fields/src/lib/components/material-date-range/material-date-range.metadata.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
|
|
631
|
+
| 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 |
|
|
632
|
+
| 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 |
|
|
633
|
+
| schema-types | projects/praxis-core/src/lib/models/component-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
|
|
634
|
+
| runtime-code | projects/praxis-core/src/lib/utils/date-range-presets.util.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
|
|
635
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | Primary source of truth for contract and behavior. | 2026-03-06 | verified-path |
|
|
636
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/utils/praxis-native-date-adapter.ts | Source of truth for locale-aware manual date parsing. | 2026-05-06 | verified-path |
|