@praxisui/dynamic-fields 10.0.0-rc.58 → 10.0.0-rc.59
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 +11 -0
- package/ai/component-registry.json +35270 -415
- package/docs/dynamic-fields-inline-components-guide.md +37 -31
- package/docs/dynamic-fields-inline-filter-catalog.md +34 -26
- package/docs/dynamic-fields-inline-filter-runtime-contract.md +12 -1
- package/fesm2022/praxisui-dynamic-fields.mjs +15033 -4250
- package/package.json +4 -4
- 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 +92 -25
- package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +17 -4
- 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 +107 -24
- 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 +76 -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/types/praxisui-dynamic-fields.d.ts +578 -18
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.59",
|
|
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.59",
|
|
15
|
+
"@praxisui/dialog": "^10.0.0-rc.59",
|
|
16
|
+
"@praxisui/cron-builder": "^10.0.0-rc.59"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"libphonenumber-js": "^1.12.41",
|
|
@@ -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
|
|
|
@@ -22,8 +22,8 @@ source_of_truth:
|
|
|
22
22
|
- "projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.component.ts"
|
|
23
23
|
- "projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts"
|
|
24
24
|
- "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
|
|
25
|
-
source_of_truth_last_verified: "2026-
|
|
26
|
-
last_updated: "2026-
|
|
25
|
+
source_of_truth_last_verified: "2026-11-19"
|
|
26
|
+
last_updated: "2026-11-19"
|
|
27
27
|
toc: true
|
|
28
28
|
sidebar: true
|
|
29
29
|
tags:
|
|
@@ -33,7 +33,7 @@ tags:
|
|
|
33
33
|
api_stability: "canonical"
|
|
34
34
|
schema_verified: true
|
|
35
35
|
runtime_verified: true
|
|
36
|
-
editor_coverage_verified:
|
|
36
|
+
editor_coverage_verified: true
|
|
37
37
|
runtime_scope: "public"
|
|
38
38
|
legacy_paths_present: true
|
|
39
39
|
has_known_mismatches: false
|
|
@@ -68,7 +68,7 @@ Este documento e a referencia canonica da API JSON de pdx-inline-currency-range.
|
|
|
68
68
|
| Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
|
|
69
69
|
| Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/inline-currency-range/inline-currency-range.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.component.ts` |
|
|
70
70
|
| Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
|
|
71
|
-
| Editor/tooling coverage | `
|
|
71
|
+
| Editor/tooling coverage | `true` | Editor/tooling deve espelhar somente contrato publico suportado | Active | `projects/praxis-core/src/lib/utils/inline-filter-controls.util.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts`, `projects/praxis-dynamic-fields/src/lib/ai/praxis-dynamic-fields-authoring-profiles.ts` |
|
|
72
72
|
| Path hygiene | `true` | Manter consistencia entre contrato canonico e caminhos documentados | Partial | frontmatter.legacy_paths_present |
|
|
73
73
|
| Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |
|
|
74
74
|
|
|
@@ -98,7 +98,7 @@ Este documento e a referencia canonica da API JSON de pdx-inline-currency-range.
|
|
|
98
98
|
| Runtime scope | `public` | Escopo publicado para consumidores |
|
|
99
99
|
| Runtime verified | `true` | Revisar sempre com evidencia de runtime |
|
|
100
100
|
| Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
|
|
101
|
-
| Editor coverage verified | `
|
|
101
|
+
| Editor coverage verified | `true` | Revisar sempre com evidencia de editor/tooling |
|
|
102
102
|
| Current path hygiene | `true` | Segregar consistencia do contrato canonico |
|
|
103
103
|
| Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
|
|
104
104
|
|
|
@@ -207,7 +207,7 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
207
207
|
| --- | --- | --- | --- | --- |
|
|
208
208
|
| Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/inline-currency-range/inline-currency-range.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.component.ts` | Core runtime flows verified via focused component specs on 2026-03-06; editor/tooling coverage remains independent. |
|
|
209
209
|
| Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
|
|
210
|
-
| Editor/Tooling | `
|
|
210
|
+
| Editor/Tooling | `true` | Active | `projects/praxis-core/src/lib/utils/inline-filter-controls.util.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts`, `projects/praxis-dynamic-fields/src/lib/ai/praxis-dynamic-fields-authoring-profiles.ts` | Cobertura de runtime, AI profile (`currency`) e schema/types sincronizada com contrato R2. |
|
|
211
211
|
|
|
212
212
|
### Runtime coverage boundaries
|
|
213
213
|
|
|
@@ -217,7 +217,7 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
217
217
|
|
|
218
218
|
### Editor and tooling notes
|
|
219
219
|
|
|
220
|
-
- Evidencia de tooling: aliases `pdx-inline-*` resolvidos por `inline-filter-controls.util.ts` e
|
|
220
|
+
- Evidencia de tooling: aliases `pdx-inline-*` resolvidos por `inline-filter-controls.util.ts`, `ComponentRegistryService` e perfil `currency` de `praxis-dynamic-fields-authoring-profiles.ts`.
|
|
221
221
|
- O que esta exposto no editor visual depende da cobertura real do workspace e nao deve ser inferido como suporte runtime total.
|
|
222
222
|
- Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
|
|
223
223
|
- Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.
|
|
@@ -292,22 +292,30 @@ Use quando precisar:
|
|
|
292
292
|
| --- | --- | --- | --- | --- |
|
|
293
293
|
| `metadata` | `MaterialPriceRangeMetadata` | - | Sim | Contrato principal da faixa monetaria inline. |
|
|
294
294
|
| `readonlyMode/disabledMode/visible/presentationMode` | `boolean` | `false/false/true/false` | Nao | Estados de host do campo inline. |
|
|
295
|
-
| `valueChange` | `{minPrice:number\|null,maxPrice:number\|null}` | - | Output base input |
|
|
295
|
+
| `valueChange` | `{ minPrice: number \| null, maxPrice: number \| null } \| null` | - | Output base input | Contrato CVA estrito sem propriedades auxiliares (`mode`/`currency`), compatível com `between` (`{a,b}`), `gte` (`{a,null}`), `lte` (`{null,b}`) e `eq` (`{v,v}`). |
|
|
296
296
|
|
|
297
297
|
### 3. Matriz de Cobertura JSON (Completa)
|
|
298
298
|
#### 3.1 Campos especificos do componente
|
|
299
299
|
| Caminho JSON | Tipo | Status | Comportamento em runtime |
|
|
300
300
|
| --- | --- | --- | --- |
|
|
301
|
-
| `metadata.min` / `metadata.max` | `number` | Ativo | Limites globais da faixa. |
|
|
302
|
-
| `metadata.
|
|
301
|
+
| `metadata.min` / `metadata.max` | `number` | Ativo | Limites globais da faixa (quando omitido `max`, o slider expande dinamicamente sem clamp destrutivo). |
|
|
302
|
+
| `metadata.startMin` / `metadata.startMax` / `metadata.endMin` / `metadata.endMax` | `number` | Ativo | Limites específicos por extremidade (`minPrice` / `maxPrice`) validados em rascunho e `FormControl`. |
|
|
303
|
+
| `metadata.step` / `metadata.sliderStep` / `metadata.shiftStep` | `number` | Ativo | `step` governa precisão de inputs/CVA (`0.01`, etc.); `sliderStep` adapta densidade do `<mat-slider>`; `shiftStep` governa `Shift+Arrow` e `PageUp`/`PageDown`. |
|
|
303
304
|
| `metadata.showTicks` | `boolean \| "auto"` | Ativo | Exibe uma guia de passos com densidade limitada; `"auto"` reduz a quantidade conforme a largura do painel sem alterar `step`. |
|
|
304
305
|
| `metadata.marks` | `array \| string` | Ativo | Pontos de referencia monetarios explicitos; ate tres labels visiveis no popover inline. Nao altera o snap definido por `step`. |
|
|
305
306
|
| `metadata.semanticBands` | `array \| string` | Ativo | Faixas semanticas compactas renderizadas junto ao trilho. |
|
|
306
307
|
| `metadata.discrete` | `boolean` | Ativo | Exibe o valor monetario formatado junto ao thumb durante o ajuste; valores proximos usam um indicador de faixa combinado e valores nas extremidades permanecem contidos no painel. |
|
|
307
|
-
| `metadata.currency` / `metadata.locale` / `metadata.decimalPlaces` | `string
|
|
308
|
-
| `metadata.
|
|
309
|
-
| `metadata.
|
|
310
|
-
| `metadata.
|
|
308
|
+
| `metadata.currency` / `metadata.currencyCode` / `metadata.locale` / `metadata.decimalPlaces` / `metadata.precision` | `string \| number` | Ativo | Formata valores, inputs localizados e badge de moeda (`BRL · R$`, `USD · $`), respeitando `currencyPosition` e `showCurrencySymbol`. |
|
|
309
|
+
| `metadata.thousandsSeparator` / `metadata.thousandSeparator` / `metadata.decimalSeparator` | `string` | Ativo | Overrides de separadores numéricos para formatação e parse de inputs digitados. |
|
|
310
|
+
| `metadata.allowNegative` | `boolean` | Ativo | Permite valores negativos quando habilitado (ou quando `min < 0` explícito sem override `allowNegative: false`). |
|
|
311
|
+
| `metadata.showInlineInputs` / `metadata.showInputs` | `boolean` | Ativo | Exibe inputs monetários editáveis e localizados fora do slider (default `true`), suprimindo o bloco duplicado `.pdx-inline-currency-range-current`. |
|
|
312
|
+
| `metadata.operatorModes` / `metadata.defaultOperatorMode` | `array \| boolean \| string` | Ativo | Controla o alternador WAI-ARIA `radiogroup` (`between`, `gte`, `lte`, `eq`); oculto se `requireTwoBounds: true`, `false` ou <= 1 modo. |
|
|
313
|
+
| `metadata.requireTwoBounds` | `boolean` | Ativo | Exige ambos os limites com `minPrice < maxPrice` (`BETWEEN_EXCLUSIVE`) e trava o modo em `between`. |
|
|
314
|
+
| `metadata.minDistance` / `metadata.maxDistance` | `number` | Ativo | Valida distância mínima e máxima entre os limites em `panelDraftErrors` e `buildRangeValidator`. |
|
|
315
|
+
| `metadata.quickPresets` / `metadata.inlineQuickPresets` / `metadata.quickPresetsAuto` / `metadata.quickPresetsLabels` | `array \| object \| boolean \| string` | Ativo | Renderiza botões de faixas rápidas no popover com filtragem automática quando `requireTwoBounds: true`. |
|
|
316
|
+
| `metadata.inputMinLabel` / `metadata.inputMaxLabel` / `metadata.inputExactLabel` | `string` | Ativo | Rótulos customizados para os inputs editáveis do popover. |
|
|
317
|
+
| `metadata.inlinePanelTitle` | `string` | Ativo | Titulo semantico do popover de selecao (sem forced uppercase). |
|
|
318
|
+
| `metadata.inlineDistribution` | `object \| array \| string` | Ativo | Fonte prioritaria para barras de distribuicao; aceita `buckets` (`DistributionStatsResponse`) com `{ from, to, count }` e marca `.is-in-range`/`.is-out-of-range`. |
|
|
311
319
|
| `metadata.distribution` / `metadata.rangeDistribution` | `object \| array \| string` | Ativo | Alias para distribuicao inline. |
|
|
312
320
|
| `metadata.histogram` / `metadata.rangeHistogram` | `object \| array \| string` | Ativo | Alias de histograma aceito em runtime. |
|
|
313
321
|
| `metadata.inlineAutoSize.*` | `object` | Ativo | Largura da pill e painel no modo inline. |
|
|
@@ -315,7 +323,7 @@ Use quando precisar:
|
|
|
315
323
|
| `metadata.inlineOverlay.actions.apply` | `object` | Ativo | Configura label, aria, ícone, aparência e papel de cor da ação Aplicar/Concluir; tem precedência sobre o default i18n `inlineCurrencyRange.actions.apply`. |
|
|
316
324
|
| `metadata.inlineOverlay.actions.cancel` | `object` | Ativo | Configura label, aria, ícone, aparência, visibilidade e papel de cor da ação Cancelar; tem precedência sobre o default i18n `inlineCurrencyRange.actions.cancel`. |
|
|
317
325
|
| `metadata.inlineOverlay.actions.clear` | `object` | Ativo | Configura label, aria, ícone, aparência, visibilidade e papel de cor da ação Limpar no painel; tem precedência sobre o default i18n `inlineCurrencyRange.actions.clear`. |
|
|
318
|
-
| `metadata.validators.*` | `object` |
|
|
326
|
+
| `metadata.validators.*` | `object` | Ativo | Suporta `requiredMessage`, `rangeMessage`, `minMessage`, `maxMessage`, `distanceMessage`, `twoBoundsRequiredMessage` e `invalidMessage` com alerta inline `role="alert"`. |
|
|
319
327
|
|
|
320
328
|
#### 3.2 Campos herdados compartilhados (exaustivo)
|
|
321
329
|
- `projects/praxis-dynamic-fields/src/lib/components/material-price-range/pdx-material-price-range.json-api.md`
|
|
@@ -441,8 +449,11 @@ Correcao: ajustar `inlineAutoSize.panelMinWidth/panelMaxWidth`.
|
|
|
441
449
|
| `metadata.locale` | string | false | n/a | Partial | See Detailed API reference. |
|
|
442
450
|
| `metadata.decimalPlaces` | number | false | n/a | Partial | See Detailed API reference. |
|
|
443
451
|
| `metadata.allowNegative` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
444
|
-
| `metadata.inlinePanelTitle` | string | false |
|
|
445
|
-
| `metadata.
|
|
452
|
+
| `metadata.inlinePanelTitle` | string | false | `metadata.label` | Active | Título customizado exibido no cabeçalho do popover (mantendo texto limpo para leitores e specs). |
|
|
453
|
+
| `metadata.inlinePanelIcon` | string | false | `n/a` | Active | Ligadura Material Icons renderizada em badge dedicada no cabeçalho do popover (ex.: `payments`). |
|
|
454
|
+
| `metadata.inlinePanelIconColor` | string | false | `var(--md-sys-color-primary)` | Active | Override CSS de cor para o ícone e halo do badge do cabeçalho. |
|
|
455
|
+
| `metadata.showAnchors` | boolean \| `"auto"` | false | `"auto"` | Active | Exibe âncoras clicáveis click-to-snap abaixo do slider e pontos correspondentes na trilha (`false` retorna à escala passiva). |
|
|
456
|
+
| `metadata.showTicks` | boolean \| "auto" | false | n/a | Active | See Detailed API reference. |
|
|
446
457
|
| `metadata.marks` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
447
458
|
| `metadata.semanticBands` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
448
459
|
| `metadata.inlineDistribution` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
@@ -455,7 +466,24 @@ Correcao: ajustar `inlineAutoSize.panelMinWidth/panelMaxWidth`.
|
|
|
455
466
|
| `metadata.inlineOverlay.actions.clear` | object | false | n/a | Active | Theme-aware Clear action metadata. |
|
|
456
467
|
| `metadata.rangeHistogram` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
457
468
|
| `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference. |
|
|
458
|
-
| `metadata.
|
|
469
|
+
| `metadata.showInlineInputs` | boolean | false | true | Active | Exibe inputs monetários editáveis no popover. |
|
|
470
|
+
| `metadata.operatorModes` | array \| boolean \| string | false | `["between","gte","lte","eq"]` | Active | Modos permitidos no alternador WAI-ARIA. |
|
|
471
|
+
| `metadata.defaultOperatorMode` | string | false | `"between"` | Active | Operador inicial quando não há valor prévio. |
|
|
472
|
+
| `metadata.requireTwoBounds` | boolean | false | false | Active | Exige dois limites (`minPrice < maxPrice`). |
|
|
473
|
+
| `metadata.sliderStep` | number | false | n/a | Active | Passo ergonômico do slider separado de `step`. |
|
|
474
|
+
| `metadata.shiftStep` | number | false | `step * 10` | Active | Passo para `Shift+Arrow` e `PageUp`/`PageDown`. |
|
|
475
|
+
| `metadata.minDistance` | number | false | n/a | Active | Distância mínima entre `minPrice` e `maxPrice`. |
|
|
476
|
+
| `metadata.maxDistance` | number | false | n/a | Active | Distância máxima entre `minPrice` e `maxPrice`. |
|
|
477
|
+
| `metadata.quickPresets` | array \| boolean \| string | false | n/a | Active | Faixas rápidas declarativas do popover. |
|
|
478
|
+
| `metadata.quickPresetsAuto` | boolean | false | false | Active | Gera faixas rápidas neutras a partir de `min`/`max`. |
|
|
479
|
+
| `metadata.quickPresetsLabels` | object \| string | false | n/a | Active | Sobrescreve os rótulos `upto`, `from`, `range` e `full` dos atalhos automáticos. |
|
|
480
|
+
| `metadata.inputMinLabel` | string | false | `"Mínimo"` | Active | Rótulo customizado do input inferior dentro do popover. |
|
|
481
|
+
| `metadata.inputMaxLabel` | string | false | `"Máximo"` | Active | Rótulo customizado do input superior dentro do popover. |
|
|
482
|
+
| `metadata.inputExactLabel` | string | false | `"Valor"` | Active | Rótulo customizado do input de valor exato no modo `eq`. |
|
|
483
|
+
| `metadata.showCurrencySymbol` | boolean | false | true | Active | Controla exibição do símbolo no badge/inputs. |
|
|
484
|
+
| `metadata.thousandsSeparator` | string | false | n/a | Active | Override do separador de milhares. |
|
|
485
|
+
| `metadata.decimalSeparator` | string | false | n/a | Active | Override do separador decimal. |
|
|
486
|
+
| `metadata.validators.*` | object | false | n/a | Active | Mensagens customizadas de validação inline e no `FormControl`. |
|
|
459
487
|
| `validators` | object | false | n/a | Partial | See Detailed API reference. |
|
|
460
488
|
| `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
461
489
|
| `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
@@ -472,9 +500,48 @@ Correcao: ajustar `inlineAutoSize.panelMinWidth/panelMaxWidth`.
|
|
|
472
500
|
|
|
473
501
|
## Styling API (obrigatorio quando aplicavel)
|
|
474
502
|
|
|
475
|
-
|
|
503
|
+
Every visual surface inside `.pdx-inline-currency-range-panel` exposes `--pdx-inline-currency-range-*` CSS custom properties with Material Design 3 (`--md-sys-color-*`) fallbacks, allowing host applications to override colors, gradients, borders, typography, spacing, and corner radii without `::ng-deep`.
|
|
504
|
+
|
|
505
|
+
| Token/Class | Scope | Default / Fallback | Notes |
|
|
476
506
|
| --- | --- | --- | --- |
|
|
477
|
-
|
|
|
507
|
+
| `--pdx-inline-currency-range-track-inset` | panel | `10px` | Single horizontal inset aligning distribution bars, semantic bands, track dots, and bottom anchors. |
|
|
508
|
+
| `--pdx-inline-currency-range-panel-bg` | panel | `--pdx-inline-overlay-bg` -> `--md-sys-color-surface-container-highest` | Accepts solid colors or CSS gradients (`linear-gradient(...)`). |
|
|
509
|
+
| `--pdx-inline-currency-range-panel-fg` | panel | `--pdx-inline-overlay-fg` -> `--md-sys-color-on-surface` | Default text color inside the overlay panel. |
|
|
510
|
+
| `--pdx-inline-currency-range-panel-border` | panel | `1px solid --pdx-inline-overlay-border` | Full CSS `border` shorthand for the popover surface. |
|
|
511
|
+
| `--pdx-inline-currency-range-panel-radius` | panel | `--pdx-inline-overlay-radius, 14px` | Corner radius of the popover surface. |
|
|
512
|
+
| `--pdx-inline-currency-range-panel-shadow` | panel | `--pdx-inline-overlay-shadow` -> `--md-sys-elevation-level3` | Elevation shadow for the floating popover. |
|
|
513
|
+
| `--pdx-inline-currency-range-panel-padding` | panel | `14px 16px` | Inner padding of the panel container. |
|
|
514
|
+
| `--pdx-inline-currency-range-panel-gap` | panel | `11px` | Vertical grid gap between header, operators, slider, inputs, presets, and footer. |
|
|
515
|
+
| `--pdx-inline-currency-range-panel-anim-duration` | panel | `160ms` | Panel reveal duration; automatically disabled under `prefers-reduced-motion: reduce`. |
|
|
516
|
+
| `--pdx-inline-currency-range-title-font` / `-size` / `-weight` / `-color` | header | `inherit` / `0.94rem` / `650` / `--md-sys-color-on-surface` | Typography and color of `.pdx-inline-currency-range-panel-title`. |
|
|
517
|
+
| `--pdx-inline-currency-range-title-icon-bg` / `-color` / `-size` / `-radius` | header | tinted primary surface / `--md-sys-color-primary` / `17px` / `8px` | Icon badge styling for `.pdx-inline-currency-range-panel-icon-badge` (`inlinePanelIcon`). |
|
|
518
|
+
| `--pdx-inline-currency-range-badge-bg` / `-fg` / `-border` / `-radius` | header | `--md-sys-color-surface-container-low` / `--md-sys-color-on-surface-variant` / `--md-sys-color-outline-variant` / `999px` | Currency pill badge (`.pdx-inline-currency-range-currency-badge`). |
|
|
519
|
+
| `--pdx-inline-currency-range-operator-bg` / `-border` / `-radius` | operators | `--md-sys-color-surface-container-low` / `--md-sys-color-outline-variant` / `10px` | Operator mode bar container. |
|
|
520
|
+
| `--pdx-inline-currency-range-operator-fg` / `-hover-bg` / `-active-bg` / `-active-fg` / `-active-border` / `-btn-radius` | operators | `--md-sys-color-on-surface-variant` / `--md-sys-color-surface-container-high` / `--md-sys-color-primary-container` / `--md-sys-color-on-primary-container` / `34% primary` / `7px` | Individual operator radio buttons (`between`, `gte`, `lte`, `eq`). |
|
|
521
|
+
| `--pdx-inline-currency-range-dist-height` / `-gap` / `-radius` / `-opacity` | histogram | `44px` / `3px` / `4px` / `1` | Layout metrics for `.pdx-inline-currency-range-distribution`. |
|
|
522
|
+
| `--pdx-inline-currency-range-dist-bar-bg` / `-inactive-opacity` | histogram | vertical primary gradient / `0.28` | Bar fill (supports gradients) and dimmed opacity for out-of-range clickable bars. |
|
|
523
|
+
| `--pdx-inline-currency-range-slider-active-track-color` / `-inactive-track-color` / `-handle-color` / `-indicator-bg` / `-indicator-fg` | slider | `--md-sys-color-primary` / `68% outline-variant` / `--md-sys-color-primary` / `--md-sys-color-inverse-surface` / `--md-sys-color-inverse-on-surface` | Bridged to Material slider `--mat-slider-*` and `--mdc-slider-*` tokens plus discrete indicators. |
|
|
524
|
+
| `--pdx-inline-currency-range-anchor-dot-color` / `-dot-active-color` | anchors | `66% on-surface-variant` / `--md-sys-color-primary` | Track indicator dots positioned inside `.pdx-inline-currency-range-tick-guide`. |
|
|
525
|
+
| `--pdx-inline-currency-range-anchor-fg` / `-hover-fg` / `-hover-bg` / `-active-fg` / `-active-bg` / `-active-border` / `-font` / `-size` / `-radius` | anchors | `--md-sys-color-on-surface-variant` / `--md-sys-color-primary` / `10% primary` / `--md-sys-color-on-primary-container` / `--md-sys-color-primary-container` / `34% primary` / `inherit` / `0.72rem` / `6px` | Interactive snap buttons (`.pdx-inline-currency-range-anchor`) below the slider track. |
|
|
526
|
+
| `--pdx-inline-currency-range-input-bg` / `-border` / `-focus-border` / `-radius` / `-label-color` / `-affix-color` / `-fg` / `-font` / `-size` | inputs | `--md-sys-color-surface-container-low` / `--md-sys-color-outline-variant` / `--md-sys-color-primary` / `10px` / `--md-sys-color-on-surface-variant` / `--md-sys-color-on-surface-variant` / `--md-sys-color-on-surface` / `inherit` / `0.92rem` | Baseline-aligned input cards (`.pdx-inline-currency-range-input-card`). |
|
|
527
|
+
| `--pdx-inline-currency-range-preset-bg` / `-fg` / `-border` / `-radius` / `-hover-bg` / `-hover-border` / `-active-bg` / `-active-fg` / `-active-border` | presets | `--md-sys-color-surface-container-low` / `--md-sys-color-on-surface` / `--md-sys-color-outline-variant` / `999px` / `--md-sys-color-surface-container-high` / `--md-sys-color-outline` / `--md-sys-color-primary-container` / `--md-sys-color-on-primary-container` / `--md-sys-color-primary` | Quick-preset pills (`.pdx-inline-currency-range-preset`). |
|
|
528
|
+
| `--pdx-inline-currency-range-actions-divider` | footer | `color-mix(outline-variant 68%, transparent)` | Top divider above `.pdx-inline-currency-range-actions`. |
|
|
529
|
+
| `--pdx-inline-currency-range-action-radius` / `-outlined-bg` / `-outlined-fg` / `-outlined-border` / `-text-fg` | footer | `999px` / container-high / `--md-sys-color-on-surface` / `--md-sys-color-outline-variant` / `--md-sys-color-on-surface-variant` | Radius and secondary/outlined/text button styling in `.pdx-inline-currency-range-actions`. |
|
|
530
|
+
| `--pdx-inline-currency-range-action-primary-container` / `-primary-label` / `-primary-shadow` | footer | `--pdx-inline-chip-bg-active` -> `--md-sys-color-primary` / `--md-sys-color-on-primary` / soft primary glow | Filled primary CTA styling; supports CSS gradients (`linear-gradient(...)`) without hover color-mix errors. |
|
|
531
|
+
|
|
532
|
+
Example host customization using CSS tokens:
|
|
533
|
+
|
|
534
|
+
```css
|
|
535
|
+
:root,
|
|
536
|
+
pdx-inline-currency-range {
|
|
537
|
+
--pdx-inline-currency-range-panel-radius: 18px;
|
|
538
|
+
--pdx-inline-currency-range-title-icon-bg: linear-gradient(135deg, #0f766e, #0284c7);
|
|
539
|
+
--pdx-inline-currency-range-title-icon-color: #ffffff;
|
|
540
|
+
--pdx-inline-currency-range-dist-bar-bg: linear-gradient(180deg, #0284c7, #38bdf8);
|
|
541
|
+
--pdx-inline-currency-range-action-primary-container: linear-gradient(135deg, #0f766e, #0284c7);
|
|
542
|
+
--pdx-inline-currency-range-action-primary-label: #ffffff;
|
|
543
|
+
}
|
|
544
|
+
```
|
|
478
545
|
|
|
479
546
|
## Examples (obrigatorio)
|
|
480
547
|
|
|
@@ -673,13 +740,13 @@ Correcao: ajustar `inlineAutoSize.panelMinWidth/panelMaxWidth`.
|
|
|
673
740
|
|
|
674
741
|
| Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
|
|
675
742
|
| --- | --- | --- | --- | --- | --- |
|
|
676
|
-
| Canonical contract parity |
|
|
743
|
+
| Canonical contract parity | Revisão 2026-11-19 alinhada ao contrato R2: CVA estrito `{ minPrice, maxPrice } \| null`, alternador WAI-ARIA de operadores, inputs localizados, histograma reativo por `buckets` e faixas rápidas | Manter evidências de runtime/schema/editor sincronizadas | Low | n/a | Monitor in periodic audit |
|
|
677
744
|
|
|
678
745
|
## Source references (obrigatorio)
|
|
679
746
|
|
|
680
747
|
| Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
|
|
681
748
|
| --- | --- | --- | --- | --- |
|
|
682
|
-
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/inline-currency-range/inline-currency-range.component.ts | Primary source of truth for contract and behavior. | 2026-
|
|
683
|
-
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.component.ts | Primary source of truth for contract and behavior. | 2026-
|
|
684
|
-
| runtime-code | projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | Primary source of truth for contract and behavior. | 2026-
|
|
685
|
-
| schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-
|
|
749
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/inline-currency-range/inline-currency-range.component.ts | Primary source of truth for contract and behavior. | 2026-11-19 | verified-path |
|
|
750
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-price-range/material-price-range.component.ts | Primary source of truth for contract and behavior. | 2026-11-19 | verified-path |
|
|
751
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/base/simple-base-input.component.ts | Primary source of truth for contract and behavior. | 2026-11-19 | verified-path |
|
|
752
|
+
| schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-11-19 | verified-path |
|
|
@@ -32,7 +32,7 @@ tags:
|
|
|
32
32
|
api_stability: "canonical"
|
|
33
33
|
schema_verified: true
|
|
34
34
|
runtime_verified: true
|
|
35
|
-
editor_coverage_verified:
|
|
35
|
+
editor_coverage_verified: true
|
|
36
36
|
runtime_scope: "public"
|
|
37
37
|
legacy_paths_present: false
|
|
38
38
|
has_known_mismatches: false
|
|
@@ -457,7 +457,11 @@ Correcao: usar `metadata.materialDesign.density` (`dense` ou `default`) e valida
|
|
|
457
457
|
| `metadata.locale` | string | false | `"pt-BR"` | Active | See Detailed API reference. |
|
|
458
458
|
| `metadata.clearButton` | object | false | n/a | Partial | See Detailed API reference. |
|
|
459
459
|
| `metadata.inlineQuickPresets*` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
460
|
-
| `metadata.inlinePanelTitle` | string | false | n/a |
|
|
460
|
+
| `metadata.inlinePanelTitle` | string | false | n/a | Active | Renders optional overlay header when title/subtitle/icon metadata is provided. |
|
|
461
|
+
| `metadata.inlinePanelSubtitle` | string | false | n/a | Active | Optional subtitle displayed inside `.pdx-inline-date-range-panel-header`. |
|
|
462
|
+
| `metadata.inlinePanelIcon` | string | false | n/a | Active | Material Symbols ligature rendered in the optional overlay header badge. |
|
|
463
|
+
| `metadata.inlinePanelIconColor` | string | false | `prefixIconColor()` | Active | Theme token or CSS color applied to the optional overlay header icon. |
|
|
464
|
+
| `metadata.inlineOverlay.actions.clear` | object | false | `visible: false` | Active | Optional footer Clear action rendered beside Cancel and Apply when explicitly enabled (`visible: true`). |
|
|
461
465
|
| `inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference. |
|
|
462
466
|
| `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
463
467
|
| `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
@@ -476,9 +480,18 @@ Correcao: usar `metadata.materialDesign.density` (`dense` ou `default`) e valida
|
|
|
476
480
|
|
|
477
481
|
## Styling API (obrigatorio quando aplicavel)
|
|
478
482
|
|
|
479
|
-
|
|
483
|
+
Overlay surfaces inside `mat-datepicker-content` expose `--pdx-inline-date-range-*` CSS custom properties with Material Design 3 (`--md-sys-color-*`) fallbacks, and transitions are disabled under `@media (prefers-reduced-motion: reduce)`.
|
|
484
|
+
|
|
485
|
+
| Token/Class | Scope | Default / Fallback | Notes |
|
|
480
486
|
| --- | --- | --- | --- |
|
|
481
|
-
|
|
|
487
|
+
| `--pdx-inline-date-range-shell-width` | chip | auto / `inlineWidthPx` | Adaptive compact width bound from `inlineAutoSize`. |
|
|
488
|
+
| `--pdx-inline-date-range-header-gap` / `-icon-size` / `-icon-radius` / `-icon-bg` / `-icon-color` | optional header | `10px` / `32px` / `9px` / 14% primary tint / `--md-sys-color-primary` | Styling for `.pdx-inline-date-range-panel-header` when `inlinePanel*` is configured. |
|
|
489
|
+
| `--pdx-inline-date-range-header-title-size` / `-weight` / `-color` / `-subtitle-size` / `-subtitle-color` | optional header | `0.96rem` / `600` / `--md-sys-color-on-surface` | Typography tokens for the optional overlay title and subtitle. |
|
|
490
|
+
| `--pdx-inline-date-range-granularity-border` / `-bg` / `-btn-fg` / `-btn-active-bg` / `-btn-active-fg` | granularity bar | `--md-sys-color-outline-variant` / `--md-sys-color-primary-container` | Segmented switcher (`Dia | Mês/Ano | Ano`) inside `.pdx-inline-date-range-granularity-bar`. |
|
|
491
|
+
| `--pdx-inline-date-range-summary-border` / `-accent` / `-radius` / `-gradient` / `-bg` / `-shadow` / `-icon-bg` | selection summary | primary-tinted container / `12px` | Executive selection summary card with `[data-tone]` accents (`info`, `success`, `warning`). |
|
|
492
|
+
| `--pdx-inline-date-range-preset-active-border` / `-bg` | quick presets | `--md-sys-color-primary` / `--pdx-inline-chip-active-bg` | Active preset chip/rail styling inside `.pdx-inline-date-range-overlay-presets`. |
|
|
493
|
+
| `--pdx-inline-date-range-cell-selected-fg` / `-shadow` | period grid | `--md-sys-color-on-primary` | Selected month/year range cell styling in `.pdx-inline-date-range-period-cell`. |
|
|
494
|
+
| `--pdx-overlay-buttons-gap` / `--pdx-overlay-actions-button-pad` | footer | `8px` / `14px` | Layout spacing for `.pdx-inline-date-range-overlay-buttons` (Cancel, Apply, and optional Clear). |
|
|
482
495
|
|
|
483
496
|
## Examples (obrigatorio)
|
|
484
497
|
|
|
@@ -21,8 +21,8 @@ source_of_truth:
|
|
|
21
21
|
- "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
|
|
22
22
|
- "projects/praxis-dynamic-fields/src/lib/components/inline-distance-radius/inline-distance-radius.component.ts"
|
|
23
23
|
- "projects/praxis-metadata-editor/src/lib/config/inline-distance-radius.config.ts"
|
|
24
|
-
source_of_truth_last_verified: "2026-
|
|
25
|
-
last_updated: "2026-
|
|
24
|
+
source_of_truth_last_verified: "2026-11-21"
|
|
25
|
+
last_updated: "2026-11-21"
|
|
26
26
|
toc: true
|
|
27
27
|
sidebar: true
|
|
28
28
|
tags:
|
|
@@ -236,7 +236,7 @@ O componente usa as propriedades comuns de `MaterialRangeSliderMetadata` e `inli
|
|
|
236
236
|
|
|
237
237
|
## JSON path index (obrigatorio)
|
|
238
238
|
|
|
239
|
-
`mode`, `min`, `max`, `step`, `distanceStart`, `distanceEnd`, `distanceUnit`, `distanceBaseUnit`, `distanceUnits`, `distanceAllowUnitToggle`, `distanceUnitLabels`, `distanceDisplayDecimals`, `distanceDecimalsKm`, `distanceDecimalsMi`, `distancePresets`, `distanceSubtitle`, `distanceRadialRings`, `distanceAccentColor`, `distanceRingColor`, `distanceTrackColor`, `distanceGlowColor`, `distanceGradientLowColor`, `distanceGradientMidColor`, `distanceGradientHighColor`, `distanceRangeBandOpacity`, `marks`, `showTicks`, `discrete`, `inlineOverlay`, `inlineAutoSize`.
|
|
239
|
+
`mode`, `min`, `max`, `step`, `sliderStep`, `shiftStep`, `showAnchors`, `inlinePanelTitle`, `inlinePanelIcon`, `inlinePanelIconColor`, `showInlineInputs`, `inputMinLabel`, `inputMaxLabel`, `distanceStart`, `distanceEnd`, `distanceUnit`, `distanceBaseUnit`, `distanceUnits`, `distanceAllowUnitToggle`, `distanceUnitLabels`, `distanceDisplayDecimals`, `distanceDecimalsKm`, `distanceDecimalsMi`, `distancePresets`, `distanceSubtitle`, `distanceRadialRings`, `distanceAccentColor`, `distanceRingColor`, `distanceTrackColor`, `distanceGlowColor`, `distanceGradientLowColor`, `distanceGradientMidColor`, `distanceGradientHighColor`, `distanceRangeBandOpacity`, `marks`, `showTicks`, `discrete`, `inlineOverlay`, `inlineAutoSize`.
|
|
240
240
|
|
|
241
241
|
## Events reference (obrigatorio)
|
|
242
242
|
|
|
@@ -249,7 +249,30 @@ O componente usa as propriedades comuns de `MaterialRangeSliderMetadata` e `inli
|
|
|
249
249
|
|
|
250
250
|
## Styling API (obrigatorio quando aplicavel)
|
|
251
251
|
|
|
252
|
-
Use
|
|
252
|
+
Use `--pdx-inline-distance-*` CSS custom properties (with `--pdx-inline-field-*`, `--pdx-inline-panel-*` and MD3 `--md-sys-color-*` fallbacks) inside global theme stylesheets without `::ng-deep`. Respects `prefers-reduced-motion: reduce`. Do not override z-index locally.
|
|
253
|
+
|
|
254
|
+
| Token | Scope | Default / Fallback | Notes |
|
|
255
|
+
| --- | --- | --- | --- |
|
|
256
|
+
| `--pdx-inline-distance-min-w` / `-max-w` / `-panel-min-w` / `-panel-max-w` | trigger & panel | `inlineAutoSize` | Responsive trigger and popover container width bounds. |
|
|
257
|
+
| `--pdx-inline-distance-panel-bg` / `-fg` / `-border` / `-radius` / `-shadow` / `-padding` / `-gap` / `-anim-duration` | panel | `--pdx-inline-overlay-*` -> `--md-sys-color-surface-container-*` / `160ms` | Popover surface (supports gradients), border, elevation shadow, and reveal timing. |
|
|
258
|
+
| `--pdx-inline-distance-title-font` / `-size` / `-weight` / `-color` / `-subtitle-color` / `-value-color` | header & summary | `inherit` / `0.94rem` / `650` | Title, subtitle, and current radius summary typography/colors. |
|
|
259
|
+
| `--pdx-inline-distance-header-icon-bg` / `-fg` / `-color` | header | primary-tinted halo / `--md-sys-color-primary` | Icon badge surface and foreground for `inlinePanelIcon` (defaults to `place`; e.g., `near_me`). Legacy aliases `--pdx-inline-distance-title-icon-bg` and `--pdx-inline-distance-title-icon-color` are also accepted. |
|
|
260
|
+
| `--pdx-inline-distance-accent` / `-ring` / `-track` / `-glow` / `-gradient-low` / `-gradient-mid` / `-gradient-high` | radial radar | `--md-sys-color-primary` / semantic stops | Concentric ring visualization, track tint, halo glow, and low/mid/high distance stops. |
|
|
261
|
+
| `--pdx-inline-distance-slider-active-track` / `-handle-color` / `-indicator-bg` / `-indicator-fg` | slider | `--pdx-inline-distance-accent` / inverse-surface | Material `<mat-slider>` active track, handle, and discrete value badge. |
|
|
262
|
+
| `--pdx-inline-distance-anchor-dot-color` / `-dot-active-color` / `-anchor-fg` / `-hover-fg` / `-hover-bg` / `-active-fg` / `-active-bg` / `-active-border` / `-font` / `-size` / `-radius` | anchors | on-surface-variant / primary-container | Clickable unit-aware snap buttons (`km`/`mi`) and track dots under `showAnchors`. |
|
|
263
|
+
| `--pdx-inline-distance-input-bg` / `-border` / `-focus-border` / `-radius` / `-label-color` / `-fg` / `-font` / `-size` | inputs | surface-container-low / primary / `10px` | Optional numeric input cards rendered when `showInlineInputs: true`. |
|
|
264
|
+
| `--pdx-inline-distance-preset-bg` / `-fg` / `-border` / `-radius` / `-active-bg` / `-active-fg` / `-active-border` | presets | surface-container-low / primary-container / `999px` | Distance preset chips with `[attr.aria-pressed]` state. |
|
|
265
|
+
| `--pdx-inline-distance-action-primary-container` / `-primary-label` | footer | `--md-sys-color-primary` / `--md-sys-color-on-primary` | Primary footer apply action button styling. |
|
|
266
|
+
|
|
267
|
+
```css
|
|
268
|
+
:root {
|
|
269
|
+
--pdx-inline-distance-panel-radius: 16px;
|
|
270
|
+
--pdx-inline-distance-header-icon-bg: rgb(2 132 199 / 0.14);
|
|
271
|
+
--pdx-inline-distance-header-icon-fg: #0284c7;
|
|
272
|
+
--pdx-inline-distance-accent: #0284c7;
|
|
273
|
+
--pdx-inline-distance-action-primary-container: #0284c7;
|
|
274
|
+
}
|
|
275
|
+
```
|
|
253
276
|
|
|
254
277
|
## Examples (obrigatorio)
|
|
255
278
|
|