@praxisui/dynamic-fields 10.0.0-rc.8 → 10.0.0-rc.80
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 +35 -2
- package/ai/component-registry.json +93533 -1830
- package/docs/dynamic-fields-field-selection-guide.md +16 -0
- package/docs/dynamic-fields-inline-components-guide.md +56 -46
- package/docs/dynamic-fields-inline-filter-catalog.md +50 -32
- package/docs/dynamic-fields-inline-filter-inventory.md +2 -2
- package/docs/dynamic-fields-inline-filter-runtime-contract.md +71 -18
- package/docs/dynamic-fields-inline-filter-selection-guide.md +10 -8
- package/fesm2022/praxisui-dynamic-fields.mjs +26660 -7361
- package/package.json +4 -4
- package/src/lib/base/pdx-base-input-runtime-contract.json-api.md +12 -12
- package/src/lib/base/pdx-base-select-runtime-contract.json-api.md +12 -12
- package/src/lib/components/color-picker/pdx-color-picker.json-api.md +16 -15
- package/src/lib/components/field-shell/praxis-field-shell.json-api.md +3 -3
- package/src/lib/components/inline-color-label/pdx-inline-color-label.json-api.md +17 -8
- package/src/lib/components/inline-currency-range/pdx-inline-currency-range.json-api.md +98 -33
- package/src/lib/components/inline-date/pdx-inline-date.json-api.md +24 -0
- package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +96 -46
- package/src/lib/components/inline-distance-radius/pdx-inline-distance-radius.json-api.md +27 -4
- package/src/lib/components/inline-entity-lookup/pdx-inline-entity-lookup.json-api.md +108 -25
- package/src/lib/components/inline-number/pdx-inline-number.json-api.md +70 -48
- package/src/lib/components/inline-pipeline-status/pdx-inline-pipeline-status.json-api.md +18 -3
- package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +78 -19
- package/src/lib/components/inline-rating/pdx-inline-rating.json-api.md +18 -5
- package/src/lib/components/inline-relative-period/pdx-inline-relative-period.json-api.md +17 -3
- package/src/lib/components/inline-score-priority/pdx-inline-score-priority.json-api.md +62 -15
- package/src/lib/components/inline-sentiment/pdx-inline-sentiment.json-api.md +18 -3
- package/src/lib/components/inline-time-range/pdx-inline-time-range.json-api.md +77 -25
- package/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md +28 -15
- package/src/lib/components/material-selection-list/pdx-material-selection-list.json-api.md +44 -43
- package/src/lib/components/material-slider/pdx-material-slider.json-api.md +16 -8
- package/src/lib/components/number-input/pdx-number-input.json-api.md +14 -8
- package/types/praxisui-dynamic-fields.d.ts +1067 -38
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dynamic-fields",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.80",
|
|
4
4
|
"description": "Angular Material-based dynamic form fields for Praxis UI with lazy loading and metadata-driven rendering.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"@angular/platform-browser": "^21.0.0",
|
|
12
12
|
"@angular/router": "^21.0.0",
|
|
13
13
|
"rxjs": "^7.8.0",
|
|
14
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
15
|
-
"@praxisui/dialog": "^10.0.0-rc.
|
|
16
|
-
"@praxisui/cron-builder": "^10.0.0-rc.
|
|
14
|
+
"@praxisui/core": "^10.0.0-rc.80",
|
|
15
|
+
"@praxisui/dialog": "^10.0.0-rc.80",
|
|
16
|
+
"@praxisui/cron-builder": "^10.0.0-rc.80"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"libphonenumber-js": "^1.12.41",
|
|
@@ -20,8 +20,8 @@ owner: "praxis-ui"
|
|
|
20
20
|
source_of_truth:
|
|
21
21
|
- "projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts"
|
|
22
22
|
- "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
|
|
23
|
-
source_of_truth_last_verified: "2026-
|
|
24
|
-
last_updated: "2026-
|
|
23
|
+
source_of_truth_last_verified: "2026-11-24"
|
|
24
|
+
last_updated: "2026-11-24"
|
|
25
25
|
toc: true
|
|
26
26
|
sidebar: true
|
|
27
27
|
tags:
|
|
@@ -30,11 +30,11 @@ tags:
|
|
|
30
30
|
- "pdx-base-input-runtime-contract"
|
|
31
31
|
api_stability: "canonical"
|
|
32
32
|
schema_verified: true
|
|
33
|
-
runtime_verified:
|
|
33
|
+
runtime_verified: true
|
|
34
34
|
editor_coverage_verified: false
|
|
35
35
|
runtime_scope: "public"
|
|
36
36
|
legacy_paths_present: true
|
|
37
|
-
has_known_mismatches:
|
|
37
|
+
has_known_mismatches: false
|
|
38
38
|
related_components:
|
|
39
39
|
- "praxis-table"
|
|
40
40
|
- "pdx-text-input"
|
|
@@ -89,7 +89,7 @@ Este documento e a referencia canonica da API JSON de pdx-base-input-runtime-con
|
|
|
89
89
|
| `metadata.required` | `boolean` | not-specified | n/a | Active | Controle interno textual aplica `Validators.required` + `aria-required`; controle externo preserva validadores do host e materializa estado acessivel. Boolean/toggle usa presença no `DynamicFormService`; use `requiredTrue` quando `true` for obrigatório. |
|
|
90
90
|
| `metadata.disabled` | `boolean` | not-specified | n/a | Active | Atualiza estado disabled do controle. |
|
|
91
91
|
| `metadata.readonly` | `boolean` | not-specified | n/a | Active | Aplica atributo `readonly` nativo. |
|
|
92
|
-
| `metadata.readOnly` | `boolean` | not-specified | n/a |
|
|
92
|
+
| `metadata.readOnly` | `boolean` | not-specified | n/a | Active | Alias legado normalizado via `computeEffectiveState()` em `isReadonlyEffective()`, `applyNativeAttributes()` e `onClearClick()`. |
|
|
93
93
|
| `metadata.autocomplete` | `string` | not-specified | n/a | Active | Aplica atributo `autocomplete`. |
|
|
94
94
|
| `metadata.inputMode` | `string` | not-specified | n/a | Active | Aplica atributo `inputmode`. |
|
|
95
95
|
| `metadata.spellcheck` | `boolean` | not-specified | n/a | Active | Aplica atributo `spellcheck`. |
|
|
@@ -138,7 +138,7 @@ Este arquivo foi adaptado para o padrao canonico atual sem remover conteudo tecn
|
|
|
138
138
|
| `metadata.required` | `boolean` | not-specified | n/a | component-defined | Controle interno textual aplica `Validators.required` + `aria-required`; controle externo preserva validadores do host e materializa estado acessivel. Boolean/toggle usa presença no `DynamicFormService`; use `requiredTrue` quando `true` for obrigatório. |
|
|
139
139
|
| `metadata.disabled` | `boolean` | not-specified | n/a | component-defined | Atualiza estado disabled do controle. |
|
|
140
140
|
| `metadata.readonly` | `boolean` | not-specified | n/a | component-defined | Aplica atributo `readonly` nativo. |
|
|
141
|
-
| `metadata.readOnly` | `boolean` | not-specified | n/a | component-defined |
|
|
141
|
+
| `metadata.readOnly` | `boolean` | not-specified | n/a | component-defined | Alias legado normalizado via `computeEffectiveState()` em `isReadonlyEffective()`, `applyNativeAttributes()` e `onClearClick()`. |
|
|
142
142
|
| `metadata.autocomplete` | `string` | not-specified | n/a | component-defined | Aplica atributo `autocomplete`. |
|
|
143
143
|
|
|
144
144
|
### Input bindings
|
|
@@ -172,7 +172,7 @@ Este arquivo foi adaptado para o padrao canonico atual sem remover conteudo tecn
|
|
|
172
172
|
|
|
173
173
|
| Surface | Verified | Coverage status | Evidence | Notes |
|
|
174
174
|
| --- | --- | --- | --- | --- |
|
|
175
|
-
| Runtime |
|
|
175
|
+
| Runtime | true | Active | `projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts` + specs unitarias | Comportamento base de `readonly`/`readOnly`, `disabled`, clear e atributos nativos verificado em specs focadas. |
|
|
176
176
|
| Schema/Types | true | Partial | interfaces/modelos citados | Mapeamento formal de todos os campos ainda pode requerer refinamento. |
|
|
177
177
|
| Editor/Tooling | false | Partial | secoes de editor quando presentes | Cobertura de editor/tooling nem sempre confirmada por evidencia direta. |
|
|
178
178
|
|
|
@@ -328,7 +328,7 @@ Limites:
|
|
|
328
328
|
| `metadata.required` | `boolean` | Active | Controle interno textual aplica `Validators.required` + `aria-required`; controle externo preserva validadores do host e materializa estado acessivel. Boolean/toggle usa presença no `DynamicFormService`; use `requiredTrue` quando `true` for obrigatório. |
|
|
329
329
|
| `metadata.disabled` | `boolean` | Active | Atualiza estado disabled do controle. |
|
|
330
330
|
| `metadata.readonly` | `boolean` | Active | Aplica atributo `readonly` nativo. |
|
|
331
|
-
| `metadata.readOnly` | `boolean` |
|
|
331
|
+
| `metadata.readOnly` | `boolean` | Active | Alias legado normalizado via `computeEffectiveState()` em `isReadonlyEffective()`, `applyNativeAttributes()` e `onClearClick()`. |
|
|
332
332
|
| `metadata.autocomplete` | `string` | Active | Aplica atributo `autocomplete`. |
|
|
333
333
|
| `metadata.inputMode` | `string` | Active | Aplica atributo `inputmode`. |
|
|
334
334
|
| `metadata.spellcheck` | `boolean` | Active | Aplica atributo `spellcheck`. |
|
|
@@ -458,7 +458,7 @@ internos do Angular Material e podem mudar entre versoes.
|
|
|
458
458
|
| `metadata.required` | `boolean` | not-specified | n/a | Active | Controle interno textual aplica `Validators.required` + `aria-required`; controle externo preserva validadores do host e materializa estado acessivel. Boolean/toggle usa presença no `DynamicFormService`; use `requiredTrue` quando `true` for obrigatório. |
|
|
459
459
|
| `metadata.disabled` | `boolean` | not-specified | n/a | Active | Atualiza estado disabled do controle. |
|
|
460
460
|
| `metadata.readonly` | `boolean` | not-specified | n/a | Active | Aplica atributo `readonly` nativo. |
|
|
461
|
-
| `metadata.readOnly` | `boolean` | not-specified | n/a |
|
|
461
|
+
| `metadata.readOnly` | `boolean` | not-specified | n/a | Active | Alias legado normalizado via `computeEffectiveState()` em `isReadonlyEffective()`, `applyNativeAttributes()` e `onClearClick()`. |
|
|
462
462
|
| `metadata.autocomplete` | `string` | not-specified | n/a | Active | Aplica atributo `autocomplete`. |
|
|
463
463
|
| `metadata.inputMode` | `string` | not-specified | n/a | Active | Aplica atributo `inputmode`. |
|
|
464
464
|
| `metadata.spellcheck` | `boolean` | not-specified | n/a | Active | Aplica atributo `spellcheck`. |
|
|
@@ -526,7 +526,7 @@ internos do Angular Material e podem mudar entre versoes.
|
|
|
526
526
|
|
|
527
527
|
| Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
|
|
528
528
|
| --- | --- | --- | --- | --- | --- |
|
|
529
|
-
|
|
|
529
|
+
| Canonical contract parity | Nenhuma divergencia confirmada apos normalizacao de `metadata.readOnly` via `computeEffectiveState()` e guardas de interacao em `SimpleBaseInputComponent`. | Manter runtime, schema e contrato sincronizados. | Low | n/a | Monitor in periodic audit |
|
|
530
530
|
|
|
531
531
|
## Compatibility and migration notes
|
|
532
532
|
|
|
@@ -538,5 +538,5 @@ internos do Angular Material e podem mudar entre versoes.
|
|
|
538
538
|
|
|
539
539
|
| Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
|
|
540
540
|
| --- | --- | --- | --- | --- |
|
|
541
|
-
| local-file | projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | Evidencia de implementacao e contrato. | 2026-
|
|
542
|
-
| local-file | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Evidencia de implementacao e contrato. | 2026-
|
|
541
|
+
| local-file | projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | Evidencia de implementacao e contrato. | 2026-11-24 | verified-path |
|
|
542
|
+
| local-file | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Evidencia de implementacao e contrato. | 2026-11-24 | verified-path |
|
|
@@ -20,8 +20,8 @@ owner: "praxis-ui"
|
|
|
20
20
|
source_of_truth:
|
|
21
21
|
- "projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts"
|
|
22
22
|
- "projects/praxis-core/src/lib/models/component-metadata.interface.ts"
|
|
23
|
-
source_of_truth_last_verified: "2026-
|
|
24
|
-
last_updated: "2026-
|
|
23
|
+
source_of_truth_last_verified: "2026-11-24"
|
|
24
|
+
last_updated: "2026-11-24"
|
|
25
25
|
toc: true
|
|
26
26
|
sidebar: true
|
|
27
27
|
tags:
|
|
@@ -30,11 +30,11 @@ tags:
|
|
|
30
30
|
- "pdx-base-select-runtime-contract"
|
|
31
31
|
api_stability: "canonical"
|
|
32
32
|
schema_verified: true
|
|
33
|
-
runtime_verified:
|
|
33
|
+
runtime_verified: true
|
|
34
34
|
editor_coverage_verified: false
|
|
35
35
|
runtime_scope: "public"
|
|
36
36
|
legacy_paths_present: false
|
|
37
|
-
has_known_mismatches:
|
|
37
|
+
has_known_mismatches: false
|
|
38
38
|
related_components:
|
|
39
39
|
- "praxis-table"
|
|
40
40
|
- "pdx-material-select"
|
|
@@ -88,14 +88,14 @@ Este documento e a referencia canonica da API JSON de pdx-base-select-runtime-co
|
|
|
88
88
|
| `metadata.searchable` | `boolean` | not-specified | n/a | Active | Habilita estado de busca (componente filho decide UI). |
|
|
89
89
|
| `metadata.selectAll` | `boolean` | not-specified | n/a | Active | Ativa utilitario de selecionar todos em multi-select. |
|
|
90
90
|
| `metadata.maxSelections` | `number` | not-specified | n/a | Active | Limite maximo de selecoes no modo multiplo. |
|
|
91
|
-
| `metadata.resourcePath` | `string` | not-specified | n/a | Active | Habilita carregamento remoto via `GenericCrudService
|
|
91
|
+
| `metadata.resourcePath` | `string` | not-specified | n/a | Active | Habilita carregamento remoto via `GenericCrudService` (tambem unificado via `hasRemoteOptionSource()` com `metadata.optionSource.key`). |
|
|
92
92
|
| `metadata.filterCriteria` | `Record<string, any>` | not-specified | n/a | Active | Filtros base para consultas remotas. |
|
|
93
93
|
| `metadata.optionLabelKey` | `string` | not-specified | n/a | Active | Chave usada para extrair label de itens remotos. |
|
|
94
94
|
| `metadata.optionValueKey` | `string` | not-specified | n/a | Active | Chave usada para extrair value de itens remotos. |
|
|
95
95
|
| `metadata.emptyOptionText` | `string` | not-specified | n/a | Active | Texto para opcao nula em selects simples. |
|
|
96
96
|
| `metadata.displayWith` | `function` | not-specified | n/a | Active | Funcao de exibicao de valor selecionado (quando suportado pelo filho). |
|
|
97
97
|
| `metadata.compareWith` | `function` | not-specified | n/a | Active | Comparacao customizada para igualdade de opcoes. |
|
|
98
|
-
| `metadata.loadOn` | `'open' \| 'init' \| 'none'` | not-specified |
|
|
98
|
+
| `metadata.loadOn` | `'open' \| 'init' \| 'none'` | not-specified | `'open'` | Active | Efetivo via `hasRemoteOptionSource()` (`resourcePath` ou `optionSource.key`) nos controles de selecao/autocomplete, com fallback `'open'` e `rawPlaceholder()` preservado para subclasses inline. |
|
|
99
99
|
|
|
100
100
|
### Supported legacy paths
|
|
101
101
|
|
|
@@ -172,7 +172,7 @@ Este arquivo foi adaptado para o padrao canonico atual sem remover conteudo tecn
|
|
|
172
172
|
|
|
173
173
|
| Surface | Verified | Coverage status | Evidence | Notes |
|
|
174
174
|
| --- | --- | --- | --- | --- |
|
|
175
|
-
| Runtime |
|
|
175
|
+
| Runtime | true | Active | `projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts` + specs unitarias | Contrato base de selecao local/remota, `rawPlaceholder()` para selects inline, `optionSource` e `loadOn` verificado em specs focadas. |
|
|
176
176
|
| Schema/Types | true | Partial | interfaces/modelos citados | Mapeamento formal de todos os campos ainda pode requerer refinamento. |
|
|
177
177
|
| Editor/Tooling | false | Partial | secoes de editor quando presentes | Cobertura de editor/tooling nem sempre confirmada por evidencia direta. |
|
|
178
178
|
|
|
@@ -390,14 +390,14 @@ Limites:
|
|
|
390
390
|
| `metadata.searchable` | `boolean` | not-specified | n/a | Active | Habilita estado de busca (componente filho decide UI). |
|
|
391
391
|
| `metadata.selectAll` | `boolean` | not-specified | n/a | Active | Ativa utilitario de selecionar todos em multi-select. |
|
|
392
392
|
| `metadata.maxSelections` | `number` | not-specified | n/a | Active | Limite maximo de selecoes no modo multiplo. |
|
|
393
|
-
| `metadata.resourcePath` | `string` | not-specified | n/a | Active | Habilita carregamento remoto via `GenericCrudService
|
|
393
|
+
| `metadata.resourcePath` | `string` | not-specified | n/a | Active | Habilita carregamento remoto via `GenericCrudService` (tambem unificado via `hasRemoteOptionSource()` com `metadata.optionSource.key`). |
|
|
394
394
|
| `metadata.filterCriteria` | `Record<string, any>` | not-specified | n/a | Active | Filtros base para consultas remotas. |
|
|
395
395
|
| `metadata.optionLabelKey` | `string` | not-specified | n/a | Active | Chave usada para extrair label de itens remotos. |
|
|
396
396
|
| `metadata.optionValueKey` | `string` | not-specified | n/a | Active | Chave usada para extrair value de itens remotos. |
|
|
397
397
|
| `metadata.emptyOptionText` | `string` | not-specified | n/a | Active | Texto para opcao nula em selects simples. |
|
|
398
398
|
| `metadata.displayWith` | `function` | not-specified | n/a | Active | Funcao de exibicao de valor selecionado (quando suportado pelo filho). |
|
|
399
399
|
| `metadata.compareWith` | `function` | not-specified | n/a | Active | Comparacao customizada para igualdade de opcoes. |
|
|
400
|
-
| `metadata.loadOn` | `'open' \| 'init' \| 'none'` | not-specified |
|
|
400
|
+
| `metadata.loadOn` | `'open' \| 'init' \| 'none'` | not-specified | `'open'` | Active | Efetivo via `hasRemoteOptionSource()` (`resourcePath` ou `optionSource.key`) nos controles de selecao/autocomplete, com fallback `'open'` e `rawPlaceholder()` preservado para subclasses inline. |
|
|
401
401
|
|
|
402
402
|
## Events
|
|
403
403
|
|
|
@@ -458,7 +458,7 @@ Limites:
|
|
|
458
458
|
|
|
459
459
|
| Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
|
|
460
460
|
| --- | --- | --- | --- | --- | --- |
|
|
461
|
-
|
|
|
461
|
+
| Canonical contract parity | Nenhuma divergencia confirmada apos preservacao de `rawPlaceholder()` e unificacao de `hasRemoteOptionSource()` (`resourcePath` ou `optionSource.key`) em `SimpleBaseSelectComponent`, `MaterialSelectComponent` e `MaterialAutocompleteComponent` (inclusive `preloadSelected` via `getOptionSourceOptionsByIds`). | Manter runtime, schema e contrato sincronizados. | Low | n/a | Monitor in periodic audit |
|
|
462
462
|
|
|
463
463
|
## Compatibility and migration notes
|
|
464
464
|
|
|
@@ -470,5 +470,5 @@ Limites:
|
|
|
470
470
|
|
|
471
471
|
| Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
|
|
472
472
|
| --- | --- | --- | --- | --- |
|
|
473
|
-
| local-file | projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts | Evidencia de implementacao e contrato. | 2026-
|
|
474
|
-
| local-file | projects/praxis-core/src/lib/models/component-metadata.interface.ts | Evidencia de implementacao e contrato. | 2026-
|
|
473
|
+
| local-file | projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts | Evidencia de implementacao e contrato. | 2026-11-24 | verified-path |
|
|
474
|
+
| local-file | projects/praxis-core/src/lib/models/component-metadata.interface.ts | Evidencia de implementacao e contrato. | 2026-11-24 | verified-path |
|
|
@@ -22,8 +22,8 @@ source_of_truth:
|
|
|
22
22
|
- "projects/praxis-dynamic-fields/src/lib/components/color-picker/pdx-color-picker.component.ts"
|
|
23
23
|
- "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
|
|
24
24
|
- "projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts"
|
|
25
|
-
source_of_truth_last_verified: "2026-
|
|
26
|
-
last_updated: "2026-
|
|
25
|
+
source_of_truth_last_verified: "2026-11-24"
|
|
26
|
+
last_updated: "2026-11-24"
|
|
27
27
|
toc: true
|
|
28
28
|
sidebar: true
|
|
29
29
|
tags:
|
|
@@ -36,7 +36,7 @@ runtime_verified: true
|
|
|
36
36
|
editor_coverage_verified: true
|
|
37
37
|
runtime_scope: "public"
|
|
38
38
|
legacy_paths_present: true
|
|
39
|
-
has_known_mismatches:
|
|
39
|
+
has_known_mismatches: false
|
|
40
40
|
related_components:
|
|
41
41
|
- "praxis-table"
|
|
42
42
|
- "pdx-base-input-runtime-contract"
|
|
@@ -70,7 +70,7 @@ Paletas governadas usam `materializeGovernedPaletteEntries` do Core para associa
|
|
|
70
70
|
| Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
|
|
71
71
|
| Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/color-picker/pdx-color-picker.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/color-picker/pdx-color-picker.component.ts` |
|
|
72
72
|
| Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
|
|
73
|
-
| Editor/tooling coverage | `
|
|
73
|
+
| Editor/tooling coverage | `true` | Editor/tooling deve espelhar somente contrato publico suportado | Active | `projects/praxis-metadata-editor/src/lib/config/color-picker.config.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
|
|
74
74
|
| Legacy paths | `true` | Segregar legado de caminhos canonicos com janela de migracao | Partial | frontmatter.legacy_paths_present |
|
|
75
75
|
| Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |
|
|
76
76
|
|
|
@@ -101,7 +101,7 @@ Paletas governadas usam `materializeGovernedPaletteEntries` do Core para associa
|
|
|
101
101
|
| Runtime scope | `public` | Escopo publicado para consumidores |
|
|
102
102
|
| Runtime verified | `true` | Revisar sempre com evidencia de runtime |
|
|
103
103
|
| Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
|
|
104
|
-
| Editor coverage verified | `
|
|
104
|
+
| Editor coverage verified | `true` | Alinhado com editor de metadata (`colorPickerProperties`) |
|
|
105
105
|
| Legacy paths present | `true` | Segregar legado de contrato canonico |
|
|
106
106
|
| Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
|
|
107
107
|
|
|
@@ -122,11 +122,10 @@ Paletas governadas usam `materializeGovernedPaletteEntries` do Core para associa
|
|
|
122
122
|
|
|
123
123
|
### Supported legacy paths
|
|
124
124
|
|
|
125
|
-
| Legacy path | Canonical replacement
|
|
126
|
-
| ---------------------- |
|
|
127
|
-
| `metadata.showPreview` | `metadata.
|
|
128
|
-
| `metadata.showAlpha` | `
|
|
129
|
-
| `metadata.showPreview` | `metadata.preview` | not-yet-defined | accepted for backward compatibility | Alias inferido da evidencia preservada; validar em runtime. |
|
|
125
|
+
| Legacy path | Canonical replacement | Support window | Runtime behavior | Notes |
|
|
126
|
+
| ---------------------- | ----------------------------- | --------------- | ----------------------------------- | ----------------------------------------------------------- |
|
|
127
|
+
| `metadata.showPreview` | `metadata.preview` | not-yet-defined | accepted for backward compatibility | Mapeado em `setMetadata()` quando `preview` nao e informado. |
|
|
128
|
+
| `metadata.showAlpha` | `gradientSettings.showOpacity` | not-yet-defined | accepted for backward compatibility | Mapeado em `setMetadata()` para habilitar controle de opacidade. |
|
|
130
129
|
|
|
131
130
|
### Internal-only paths
|
|
132
131
|
|
|
@@ -213,7 +212,7 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
213
212
|
| -------------- | -------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
214
213
|
| Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/color-picker/pdx-color-picker.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/color-picker/pdx-color-picker.component.ts` | Core runtime flows verified via focused component specs on 2026-03-06; editor/tooling coverage remains independent. |
|
|
215
214
|
| Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
|
|
216
|
-
| Editor/Tooling | `
|
|
215
|
+
| Editor/Tooling | `true` | Active | `projects/praxis-metadata-editor/src/lib/config/color-picker.config.ts`, `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 e propriedades do editor visual alinhados ao contrato canonico de `pdx-color-picker`. |
|
|
217
216
|
|
|
218
217
|
### Runtime coverage boundaries
|
|
219
218
|
|
|
@@ -687,6 +686,8 @@ O cabeçalho contextual mostra o nome publicado da paleta, variante, versão e q
|
|
|
687
686
|
|
|
688
687
|
## Known limitations and mismatches (recomendado)
|
|
689
688
|
|
|
689
|
+
A paridade de contrato runtime (`setInputMetadata()` delegando para `setMetadata()`, emissao unica de `valueChange` em `onApply()`, e bloqueio de `onSuffixClear()`/`openPicker()` em estado `readonly`, `disabled` ou `presentationMode`) esta verificada e sem divergencias abertas. Os itens abaixo registram evolucoes planejadas de UX/roadmap.
|
|
690
|
+
|
|
690
691
|
### Edição de precisão e formatos
|
|
691
692
|
|
|
692
693
|
A visão `gradient` oferece HEX de 3/6 dígitos e canais RGB inteiros de 0 a 255 sincronizados com o seletor nativo. Valores inválidos bloqueiam `Aplicar`; cancelar ou fechar descarta o rascunho e restaura os canais. As setas operam os inputs e o slider sem serem capturadas pela navegação do menu.
|
|
@@ -708,7 +709,7 @@ Selecionar um token mantém a referência e sua opacidade publicada. Editar expl
|
|
|
708
709
|
|
|
709
710
|
| Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
|
|
710
711
|
| --------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------- | -------------------------- | ------------- |
|
|
711
|
-
| schema-metadata | projects/praxis-dynamic-fields/src/lib/components/color-picker/pdx-color-picker.metadata.ts | Primary source of truth for contract and behavior. | 2026-
|
|
712
|
-
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/color-picker/pdx-color-picker.component.ts | Primary source of truth for contract and behavior. | 2026-
|
|
713
|
-
| schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-
|
|
714
|
-
| runtime-code | projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | Primary source of truth for contract and behavior. | 2026-
|
|
712
|
+
| schema-metadata | projects/praxis-dynamic-fields/src/lib/components/color-picker/pdx-color-picker.metadata.ts | Primary source of truth for contract and behavior. | 2026-11-24 | verified-path |
|
|
713
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/color-picker/pdx-color-picker.component.ts | Primary source of truth for contract and behavior. | 2026-11-24 | verified-path |
|
|
714
|
+
| schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-11-24 | verified-path |
|
|
715
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | Primary source of truth for contract and behavior. | 2026-11-24 | verified-path |
|
|
@@ -326,8 +326,8 @@ Resumo de composicao deste componente:
|
|
|
326
326
|
### 4. Mapeamento de Comportamento
|
|
327
327
|
- Sempre cria o `insertionPoint` (`vc`) para o componente real do campo.
|
|
328
328
|
- Em modo apresentacao sem excecao de tipo, esconde conteudo editavel e mostra bloco textual.
|
|
329
|
-
- Em modo apresentacao, `field.valuePresentation` formata o valor e `field.presentation`/`field.presentationRules` ajustam presenter, tone, icon, label, badge, tooltip e appearance por semantica declarativa.
|
|
330
|
-
- `presentationRules` sao avaliadas com Json Logic contra o contexto do campo. Regras invalidas falham fechadas e nao alteram o `FormControl`.
|
|
329
|
+
- Em modo apresentacao, `field.valuePresentation` formata o valor e `field.presentation`/`field.presentationRules` ajustam presenter, tone, icon, label, `prefix`, `suffix`, badge, tooltip e appearance por semantica declarativa.
|
|
330
|
+
- `presentationRules` sao avaliadas com Json Logic contra o contexto do campo e campos irmaos (`row`, `formData` e controle raiz/pai) usando precedencia `first-match` (primeira regra satisfeita vence, alinhada a `PraxisTable`). Regras invalidas falham fechadas e nao alteram o `FormControl`.
|
|
331
331
|
- `readonlyMode` aplica overlay bloqueando interacao, mantendo controle habilitado.
|
|
332
332
|
- `canvasMode` injeta semantica de evento para editores visuais.
|
|
333
333
|
|
|
@@ -399,7 +399,7 @@ Correcao: garantir `canvasMode=true`.
|
|
|
399
399
|
Correcao: revisar `transformDisplayValue` e formato do valor no `control`.
|
|
400
400
|
|
|
401
401
|
6. Regra de apresentacao nao muda o visual.
|
|
402
|
-
Correcao: validar o Json Logic em `field.presentationRules[].when`; o contexto
|
|
402
|
+
Correcao: validar o Json Logic em `field.presentationRules[].when`; o contexto expoe `value`, `rawValue`, `fieldName`, `[field.name]` e campos irmaos de `row`, `formData` e controle raiz/pai (`matchPolicy: 'first'`).
|
|
403
403
|
|
|
404
404
|
### 8. Cross-links
|
|
405
405
|
- `projects/praxis-dynamic-fields/src/lib/utils/field-state.util.ts`
|
|
@@ -451,6 +451,10 @@ Uso: filtro corporativo de risco com multi-selecao visual e confirmacao explicit
|
|
|
451
451
|
| `metadata.inlineOverlay.actions.clear` | object | false | n/a | Active | Label, aria, icon, appearance and colorRole for Clear. |
|
|
452
452
|
| `metadata.prefixIcon` | string | false | n/a | Partial | See Detailed API reference. |
|
|
453
453
|
| `metadata.colorLabelIcon` | string | false | n/a | Partial | See Detailed API reference. |
|
|
454
|
+
| `metadata.inlinePanelTitle` | string | false | `placeholderText()` | Active | Custom heading title for `.pdx-inline-color-label-header`. |
|
|
455
|
+
| `metadata.inlinePanelSubtitle` | string | false | n/a | Active | Custom subtitle for `.pdx-inline-color-label-header`. |
|
|
456
|
+
| `metadata.inlinePanelIcon` | string | false | `chipLeadingIcon()` | Active | Material Symbols ligature rendered in the panel header badge. |
|
|
457
|
+
| `metadata.inlinePanelIconColor` | string | false | `prefixIconColor()` | Active | Theme token or CSS color applied to the panel header icon. |
|
|
454
458
|
| `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference. |
|
|
455
459
|
| `metadata.searchable` | boolean | false | n/a | Active local | Local option search only; remote search remains unsupported in this panel. |
|
|
456
460
|
| `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
@@ -470,14 +474,19 @@ Uso: filtro corporativo de risco com multi-selecao visual e confirmacao explicit
|
|
|
470
474
|
|
|
471
475
|
## Styling API (obrigatorio quando aplicavel)
|
|
472
476
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
|
476
|
-
|
|
|
477
|
-
| `
|
|
478
|
-
| `
|
|
479
|
-
| `
|
|
480
|
-
| `
|
|
477
|
+
Every surface inside `.pdx-inline-color-label-panel` exposes `--pdx-inline-color-label-*` CSS custom properties with Material Design 3 (`--md-sys-color-*`) fallbacks, and animations/transitions disable under `@media (prefers-reduced-motion: reduce)`.
|
|
478
|
+
|
|
479
|
+
| Token/Class | Scope | Default / Fallback | Notes |
|
|
480
|
+
| --- | --- | --- | --- |
|
|
481
|
+
| `--pdx-inline-color-label-min-w` / `--pdx-inline-color-label-max-w` | chip | `188px` / `420px` | Trigger pill min/max width controlled by `inlineAutoSize`. |
|
|
482
|
+
| `--pdx-inline-color-label-panel-min-w` / `--pdx-inline-color-label-panel-max-w` | panel | `320px` / `560px` | Floating panel width limits (`inlineAutoSize.panel*`). |
|
|
483
|
+
| `--pdx-inline-color-label-panel-bg` / `-fg` / `-border` / `-radius` / `-shadow` / `-padding` / `-gap` | panel | `--pdx-inline-overlay-*` -> `--md-sys-color-surface-container` | Popover surface, border, corner radius, shadow, and spacing. |
|
|
484
|
+
| `--pdx-inline-color-label-anim-duration` | panel | `160ms` | Panel entrance reveal timing (`pdxInlineColorLabelPanelIn`); disabled under reduced motion. |
|
|
485
|
+
| `--pdx-inline-color-label-header-gap` / `-icon-size` / `-icon-radius` / `-icon-bg` / `-icon-color` | header | `10px` / `36px` / `10px` / 14% primary tint / `--md-sys-color-primary` | Header badge geometry and `inlinePanelIcon` / `inlinePanelIconColor` override. |
|
|
486
|
+
| `--pdx-inline-color-label-grid-columns` | grid | `4` (or `colorLabelColumns` / `columns`) | Color swatch grid column count inside `.pdx-inline-color-label-grid`. |
|
|
487
|
+
| `--pdx-inline-color-label-card-radius` / `-border` / `-bg` / `-fg` / `-padding` / `-selected-border` / `-selected-bg` | cards | `12px` / `transparent` / `--md-sys-color-surface-container-high` / `--md-sys-color-primary-container` | Swatch selection card tokens inside `.pdx-inline-color-label-card`. |
|
|
488
|
+
| `--pdx-inline-color-label-action-primary-*` / `-neutral-*` / `-danger-*` | footer | theme primary / neutral / error | Explicit overlay footer action containers and labels. |
|
|
489
|
+
| `metadata.colorLabelOptions` / `-Multiple` / `-CloseOnSelect` / `-Columns` / `-ShowSelectedBadges` / `-ColorKey` | metadata | see Detailed API | Declarative JSON styling and layout controls. |
|
|
481
490
|
|
|
482
491
|
## Examples (obrigatorio)
|
|
483
492
|
|