@praxisui/dynamic-fields 10.0.0-rc.8 → 10.0.0-rc.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.
Files changed (33) hide show
  1. package/README.md +35 -2
  2. package/ai/component-registry.json +93533 -1830
  3. package/docs/dynamic-fields-field-selection-guide.md +16 -0
  4. package/docs/dynamic-fields-inline-components-guide.md +56 -46
  5. package/docs/dynamic-fields-inline-filter-catalog.md +50 -32
  6. package/docs/dynamic-fields-inline-filter-inventory.md +2 -2
  7. package/docs/dynamic-fields-inline-filter-runtime-contract.md +71 -18
  8. package/docs/dynamic-fields-inline-filter-selection-guide.md +10 -8
  9. package/fesm2022/praxisui-dynamic-fields.mjs +26660 -7361
  10. package/package.json +4 -4
  11. package/src/lib/base/pdx-base-input-runtime-contract.json-api.md +12 -12
  12. package/src/lib/base/pdx-base-select-runtime-contract.json-api.md +12 -12
  13. package/src/lib/components/color-picker/pdx-color-picker.json-api.md +16 -15
  14. package/src/lib/components/field-shell/praxis-field-shell.json-api.md +3 -3
  15. package/src/lib/components/inline-color-label/pdx-inline-color-label.json-api.md +17 -8
  16. package/src/lib/components/inline-currency-range/pdx-inline-currency-range.json-api.md +98 -33
  17. package/src/lib/components/inline-date/pdx-inline-date.json-api.md +24 -0
  18. package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +96 -46
  19. package/src/lib/components/inline-distance-radius/pdx-inline-distance-radius.json-api.md +27 -4
  20. package/src/lib/components/inline-entity-lookup/pdx-inline-entity-lookup.json-api.md +108 -25
  21. package/src/lib/components/inline-number/pdx-inline-number.json-api.md +70 -48
  22. package/src/lib/components/inline-pipeline-status/pdx-inline-pipeline-status.json-api.md +18 -3
  23. package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +78 -19
  24. package/src/lib/components/inline-rating/pdx-inline-rating.json-api.md +18 -5
  25. package/src/lib/components/inline-relative-period/pdx-inline-relative-period.json-api.md +17 -3
  26. package/src/lib/components/inline-score-priority/pdx-inline-score-priority.json-api.md +62 -15
  27. package/src/lib/components/inline-sentiment/pdx-inline-sentiment.json-api.md +18 -3
  28. package/src/lib/components/inline-time-range/pdx-inline-time-range.json-api.md +77 -25
  29. package/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md +28 -15
  30. package/src/lib/components/material-selection-list/pdx-material-selection-list.json-api.md +44 -43
  31. package/src/lib/components/material-slider/pdx-material-slider.json-api.md +16 -8
  32. package/src/lib/components/number-input/pdx-number-input.json-api.md +14 -8
  33. package/types/praxisui-dynamic-fields.d.ts +1067 -38
@@ -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-09-04"
25
- last_updated: "2026-09-04"
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 tokens `--pdx-inline-field-*`, `--pdx-inline-panel-*` e `--pdx-inline-distance-*`. Não sobrescreva z-index localmente; camadas pertencem à escala compartilhada do core.
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
 
@@ -21,8 +21,8 @@ source_of_truth:
21
21
  - "projects/praxis-dynamic-fields/src/lib/components/inline-entity-lookup/inline-entity-lookup.component.ts"
22
22
  - "projects/praxis-dynamic-fields/src/lib/components/material-async-select/material-async-select.component.ts"
23
23
  - "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
24
- source_of_truth_last_verified: "2026-08-03"
25
- last_updated: "2026-08-03"
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:
@@ -32,7 +32,7 @@ tags:
32
32
  api_stability: "canonical"
33
33
  schema_verified: true
34
34
  runtime_verified: true
35
- editor_coverage_verified: false
35
+ editor_coverage_verified: true
36
36
  runtime_scope: "public"
37
37
  legacy_paths_present: false
38
38
  has_known_mismatches: false
@@ -67,7 +67,7 @@ Este documento e a referencia canonica da API JSON de pdx-inline-entity-lookup.
67
67
  | Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
68
68
  | Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/inline-entity-lookup/inline-entity-lookup.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-async-select/material-async-select.component.ts` |
69
69
  | Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
70
- | Editor/tooling coverage | `false` | Editor/tooling deve espelhar somente contrato publico suportado | Partial | `projects/praxis-core/src/lib/utils/inline-filter-controls.util.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
70
+ | Editor/tooling coverage | `true` | Editor/tooling deve espelhar somente contrato publico suportado | Active | `projects/praxis-metadata-editor/src/lib/config/entity-lookup.config.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
71
71
  | Path hygiene | `false` | Manter consistencia entre contrato canonico e caminhos documentados | Active | frontmatter.legacy_paths_present |
72
72
  | Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |
73
73
 
@@ -96,7 +96,7 @@ Este documento e a referencia canonica da API JSON de pdx-inline-entity-lookup.
96
96
  | Runtime scope | `public` | Escopo publicado para consumidores |
97
97
  | Runtime verified | `true` | Revisar sempre com evidencia de runtime |
98
98
  | Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
99
- | Editor coverage verified | `false` | Revisar sempre com evidencia de editor/tooling |
99
+ | Editor coverage verified | `true` | Revisar sempre com evidencia de editor/tooling |
100
100
  | Current path hygiene | `false` | Segregar consistencia do contrato canonico |
101
101
  | Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
102
102
 
@@ -128,10 +128,19 @@ Este documento e a referencia canonica da API JSON de pdx-inline-entity-lookup.
128
128
  | `metadata.optionSource.display.secondaryPropertyPaths` | string[] | false | n/a | Active | Campos de subtitulo usados para diferenciar entidades parecidas. |
129
129
  | `metadata.optionSource.display.fields` | object[] | false | n/a | Active | Campos ricos semanticos exibidos na lista e no valor selecionado. Cada item aceita `key`, `propertyPath`, `label`, `icon`, `presentation`, `tone` e `format`. |
130
130
  | `metadata.optionSource.display.badgePropertyPaths` | string[] | false | n/a | Active | Campos publicados como badges/chips quando o backend tambem os materializa no payload de option. |
131
- | `metadata.optionSource.display.statusLabelMap` | Record<string, string> | false | n/a | Active | Traduz somente o rótulo visual do status; o código canônico continua governando seleção, filtros e tons. |
132
- | `metadata.searchable` | boolean | false | `true` para fontes nao categoricas | Active | Materializa a acao acessivel de busca como irma externa do `MatSelect` e abre o dialogo governado sem inserir controles interativos no listbox. |
133
- | `metadata.dialog` | object | false | configuracao derivada do campo | Active | Customiza titulo, tamanho, preview, colunas e acoes da busca governada. |
134
- | `metadata.dialog.enabled` | boolean | false | herda `metadata.searchable` | Active | `false` desativa explicitamente a superficie de busca; `true` a habilita mesmo quando `searchable=false`. |
131
+ | `metadata.optionSource.display.statusLabelMap` | Record<string, string> | false | n/a | Active | Traduz somente o rotulo visual do status; o codigo canonico continua governando selecao, filtros e tons. |
132
+ | `metadata.optionSource.capabilities.recent` | boolean | false | `false` | Active | Habilita secao `Recentes` no overlay em estado ocioso (`initialOptions`/recentes) usando `.pdx-lookup-section-label`. |
133
+ | `metadata.optionSource.capabilities.favorites` | boolean | false | `false` | Active | Habilita secao `Favoritos` no overlay em estado ocioso antes dos resultados paginados. |
134
+ | `metadata.optionSource.filtering` | object | false | n/a | Active | Filtros estruturados, ordenacao, chips de filtro rapido, placeholder e estrategias de busca governadas. |
135
+ | `metadata.optionSource.filtering.searchStrategies` | object[] | false | n/a | Active | Estrategias governadas pelo servidor (`key`, `kind`, `minSearchChars`, `inputFormat`). |
136
+ | `metadata.optionSource.filtering.defaultSearchStrategy` | string | false | n/a | Active | Chave fallback quando o cliente omite `searchStrategy` em fontes com 2+ estrategias declaradas. |
137
+ | `metadata.optionSource.filtering.quickFilterFields` | string[] | false | n/a | Active | Campos de `availableFilters` promovidos a chips de filtro rapido de 1 clique no header inline e no modal. |
138
+ | `metadata.optionSource.filtering.availableFilters` | object[] | false | n/a | Active | Filtros estruturados (`text`, `enum` com `options`, `number`, `date`, `reference` com `optionSource`, `dependsOn` e `dependencyFilterMap`). |
139
+ | `metadata.optionSource.dialog` | object | false | configuracao derivada do backend | Active | Configuracao padrao do modal (`enabled`, `title`, `size`, `previewPanel`, `resultColumns` e labels) sobreponivel por `metadata.dialog`. |
140
+ | `metadata.searchable` | boolean | false | `true` para fontes nao categoricas | Active | Habilita busca interna no painel `PdxCollectionOverlayComponent` via `PdxCollectionSearchComponent` (com foco automatico, contador `X de Y` e rodape `"Carregar mais"` / CTA para dialogo) alem da acao externa irma de busca avancada. |
141
+ | `metadata.dialog` | object | false | herda `metadata.optionSource.dialog` | Active | Customiza titulo, tamanho (`sm` \| `md` \| `lg` \| `xl` \| `full`), preview, colunas tabulares (`resultColumns`) e acoes da busca avancada, com precedencia sobre `optionSource.dialog`. |
142
+ | `metadata.dialog.enabled` | boolean | false | herda `metadata.searchable` | Active | `false` desativa explicitamente o dialogo avancado; `true` o habilita mesmo quando `searchable=false`. |
143
+ | `metadata.dialog.resultColumns` | object[] | false | derivadas do display | Active | Colunas tabulares do modal (`field`, `label`, `kind`, `width`). |
135
144
 
136
145
  The governed search dialog owns a visible close action, focuses the search
137
146
  input when it opens, restores focus on close, constrains itself to the viewport,
@@ -181,8 +190,10 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
181
190
  | `metadata.optionSource.display` | object | false | n/a | contrato semantico de UX, nao CSS | Governanca de preset, uso, densidade, campos ricos, secundarios e badges do resultado. |
182
191
  | `metadata.resourcePath` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
183
192
  | `metadata.inlineAutoSize.*` | object | false | n/a | component-defined | Partial; verify per source_of_truth. |
184
- | `metadata.searchable` | boolean | false | `true` para fontes nao categoricas | boolean | Active; abre a busca governada por uma acao externa irma do `mat-select`, nunca projetada no trigger ou no painel de opcoes. |
185
- | `metadata.dialog` | object | false | derivado do campo | `LookupDialogMetadata` | Active; configura a busca avancada sem redefinir identidade ou option source. |
193
+ | `metadata.searchable` | boolean | false | `true` para fontes nao categoricas | boolean | Active; habilita busca inline via `PdxCollectionSearchComponent` no header do `PdxCollectionOverlayComponent` e a acao irma externa de dialogo avancado (sem `<input>` ou `<button>` dentro de `<mat-select>`). |
194
+ | `metadata.optionSource.filtering` | object | false | n/a | `LookupFilteringMetadata` | Active; publica `availableFilters` (incluindo `options` para `enum` e `optionSource`/`dependsOn`/`dependencyFilterMap` para `reference`), `quickFilterFields`, `sortOptions`, `searchStrategies` e `defaultSearchStrategy`. |
195
+ | `metadata.optionSource.dialog` | object | false | n/a | `LookupDialogMetadata` | Active; projeta titulo, tamanho (`sm`/`md`/`lg`/`xl`/`full`), `previewPanel` e `resultColumns` do backend antes de `metadata.dialog`. |
196
+ | `metadata.dialog` | object | false | herda `metadata.optionSource.dialog` | `LookupDialogMetadata` | Active; configura e sobrescreve a busca avancada (`enabled`, `title`, `size`, `previewPanel`, `resultColumns`, labels) sem redefinir identidade ou option source. |
186
197
  | `metadata.dialog.enabled` | boolean | false | herda `metadata.searchable` | boolean | Active; opt-out explicito quando `false`. |
187
198
 
188
199
  ### Input bindings (inbound data)
@@ -229,7 +240,7 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
229
240
  | --- | --- | --- | --- | --- |
230
241
  | Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/inline-entity-lookup/inline-entity-lookup.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-async-select/material-async-select.component.ts` | Core runtime flows verified via focused component specs on 2026-03-06; editor/tooling coverage remains independent. |
231
242
  | Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
232
- | Editor/Tooling | `false` | Partial | `projects/praxis-core/src/lib/utils/inline-filter-controls.util.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` | Alias/selector tooling linkage verified for inline filters; visual editor end-to-end coverage remains not-yet-verified. |
243
+ | Editor/Tooling | `true` | Active | `projects/praxis-metadata-editor/src/lib/config/entity-lookup.config.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` | Cobertura visual completa em `entityLookupProperties` (`optionSource.display.*`, `optionSource.filtering.*`, `optionSource.dialog.*`, `dialog.*`, `actions.*`) e descoberta inline via `ComponentRegistryService`. |
233
244
 
234
245
  ### Runtime coverage boundaries
235
246
 
@@ -239,7 +250,7 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
239
250
 
240
251
  ### Editor and tooling notes
241
252
 
242
- - Evidencia de tooling: aliases `pdx-inline-*` resolvidos por `inline-filter-controls.util.ts` e consumidos no `ComponentRegistryService`; editor visual E2E permanece not-yet-verified.
253
+ - Evidencia de tooling: aliases `pdx-inline-*` resolvidos por `inline-filter-controls.util.ts`, consumidos no `ComponentRegistryService` e mapeados no `@praxisui/metadata-editor` em `entity-lookup.config.ts` (incluindo `optionSource.filtering.searchStrategies`, `defaultSearchStrategy` e `optionSource.dialog.*`).
243
254
  - O que esta exposto no editor visual depende da cobertura real do workspace e nao deve ser inferido como suporte runtime total.
244
255
  - Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
245
256
  - Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.
@@ -362,11 +373,16 @@ Use quando precisar:
362
373
  | `metadata.badgeKeys` | `string[]` | Ativo | Chaves adicionais lidas do valor de entidade para compor badges auxiliares. |
363
374
  | `metadata.maxVisibleBadges` | `number` | Ativo | Limita quantidade de badges auxiliares exibidos. Default: `3`. |
364
375
  | `metadata.actions.showDetail` | `boolean` | Ativo | Controla acao de detalhe quando houver surface canonica, `detailRoute` navegavel ou `detailHref` nao-API. `detailHref` de API nao abre nova aba para evitar link morto em hosts corporativos. Default: `true`. |
365
- | `metadata.actions.showChange` | `boolean` | Ativo | Override explicito da acao de troca no valor selecionado. Sem configuracao, o default e `true` no campo completo e `false` no controle inline, que usa o proprio trigger do combobox como affordance de troca. |
376
+ | `metadata.actions.showChange` | `boolean` | Ativo | Override explicito da acao de troca (`swap_horiz`) no valor selecionado. Sem configuracao, o default e `true` quando `selectedLayout: "card"` e `false` nos layouts compactos/inline, que usam o proprio trigger e a acao de busca avancada (`manage_search`) como affordances primarias de troca. |
366
377
  | `metadata.actions.showCopyCode` | `boolean` | Ativo | Controla acao de copiar codigo/id. Default: `true`. |
367
378
  | `metadata.actions.showClear` | `boolean` | Ativo | Controla acao de limpar em conjunto com `clearButton`/clearable herdado. |
368
379
  | `metadata.detailActionLabel` / `metadata.changeActionLabel` / `metadata.copyCodeActionLabel` / `metadata.clearActionLabel` | `string` | Ativo | Overrides textuais das acoes do cartao selecionado. |
369
- | `metadata.searchable` | `boolean` | Ativo | Exibe/oculta barra de busca interna. |
380
+ | `metadata.searchable` | `boolean` | Ativo | Habilita `PdxCollectionSearchComponent` no header do `PdxCollectionOverlayComponent` e o gatilho de busca avancada em dialog. |
381
+ | `metadata.optionSource.filtering.availableFilters` | `LookupFilterDefinitionMetadata[]` | Ativo | Filtros estruturados do modal: `text`, `enum` (prioriza `options[]` publicadas pelo backend com fallback `statusLabelMap`), `number`, `date` e `reference` (materializa `<pdx-material-searchable-select>` com `optionSource`, cascata `dependsOn`/`dependencyFilterMap` e `POST .../by-ids` contextual). |
382
+ | `metadata.optionSource.filtering.quickFilterFields` | `string[]` | Ativo | Promove filtros de `availableFilters` a chips de filtro rapido de 1 clique no overlay inline e no modal. |
383
+ | `metadata.optionSource.filtering.searchStrategies` / `defaultSearchStrategy` | `LookupSearchStrategyMetadata[]` / `string` | Ativo | Estrategias governadas no backend; `defaultSearchStrategy` define a chave usada quando a UI envia apenas `search`. |
384
+ | `metadata.optionSource.capabilities.recent` / `favorites` | `boolean` | Ativo | Exibe grupos `Favoritos` e `Recentes` (`.pdx-lookup-section-label`) em estado ocioso quando ha itens em `initialOptions`/favoritos. |
385
+ | `metadata.optionSource.dialog` / `metadata.dialog` | `LookupDialogMetadata` | Ativo | Configura `enabled`, `title`, `size` (`sm`/`md`/`lg`/`xl`/`full`), `previewPanel`, `resultColumns` e labels do modal; `metadata.dialog` sobrepoe `metadata.optionSource.dialog`. |
370
386
 
371
387
  #### 3.2 Campos herdados compartilhados (exaustivo)
372
388
  - `projects/praxis-dynamic-fields/src/lib/components/material-async-select/pdx-material-async-select.json-api.md`
@@ -378,17 +394,17 @@ Resumo de composicao deste componente:
378
394
 
379
395
  ### 4. Mapeamento de Comportamento
380
396
  - Para `controlType: "inlineEntityLookup"`, o trigger preserva valor compacto composto por `buildLookupPrimaryText(id,label)`.
381
- - Para `controlType: "entityLookup"`, o host publica `data-field-type="entityLookup"`, ocupa `width: 100%` e deve respeitar a coluna do `praxis-dynamic-form`; o trigger pode renderizar campo compacto ou cartao de revisao com avatar, codigo, label, descricao, status, badges e acoes.
397
+ - Para `controlType: "entityLookup"`, o host publica `data-field-type="entityLookup"`, ocupa `width: 100%` e deve respeitar a coluna do `praxis-dynamic-form`; o trigger renderiza valor compacto por padrao (inclusive quando `density: "compact"` ou `selectedLayout: "token"`) ou cartao de revisao quando `selectedLayout: "card"`, mantendo avatar, codigo, label, descricao, status e badges puramente apresentacionais dentro do botao trigger do `PdxCollectionOverlayComponent` (nunca colocando `<input>` ou `<button>` dentro de `<mat-select>`).
382
398
  - `metadata.optionSource.display` e a fonte preferencial de UX para a entidade; campos top-level como `selectedLayout`, `density`, `showAvatar` e `showStatus` funcionam como override local de host.
383
399
  - Opcoes podem mostrar linha secundaria (`subtitle`) para desambiguacao; em `entityLookup`, a linha rica tambem mostra avatar, campos ricos com icones/chips/datas, status visual, badges e motivo de bloqueio.
384
- - Com `metadata.optionSource.resourcePath`, busca emite termo no pipeline remoto de option-source; sem endpoint, filtra local.
385
- - Com fonte remota e `loadOn: "open"`, o seletor rapido permanece abrivel antes da primeira pagina para disparar a carga inicial. A opcao sentinela que viabiliza essa abertura e interna, invisivel e nao integra o contrato visual ou o valor do campo.
400
+ - Com `metadata.optionSource.resourcePath`, busca emite termo no pipeline remoto de option-source; sem endpoint, `applyLocalLookupQueryState()` aplica filtros estruturados (`availableFilters`), ordenacao (`sortOptions`), chips rapidos (`quickFilterFields`) e busca multi-token localmente em `staticOptions`. Em fontes hibridas com `initialOptions` recentes e endpoint remoto, exibe `Recentes`/`Favoritos` antes da digitacao e delega busca/filtragem/paginacao para o backend sem depender de listeners manuais no host.
401
+ - Com fonte remota e `loadOn: "open"`, o painel `PdxCollectionOverlayComponent` permanece abrivel antes da primeira pagina para disparar a carga inicial via evento `opened`.
386
402
  - Ao confirmar uma opcao no seletor rapido, a selecao simples fecha o painel e devolve o foco ao campo; a selecao multipla preserva o painel aberto para continuidade da tarefa. Mouse e teclado seguem a mesma regra.
387
403
  - Em uso standalone de shell/topbar autenticado, o componente aceita `FormControl` externo com `initialMetadata` estático e `options` locais. Um valor inicial já selecionado no controle deve materializar o texto da opção local sem bloquear a montagem da rota nem realimentar change detection quando a metadata recebida for semanticamente equivalente.
388
404
  - `metadata.resourcePath` continua aceito como configuracao operacional herdada, mas nao substitui a semantica canonica de entidade publicada em `metadata.optionSource`.
389
- - As acoes de painel ficam em um rodape materializado como irmao do `listbox` no overlay: `Limpar selecao` e uma acao secundaria alinhada ao inicio; `Carregar mais` e uma acao de largura total, com alvo minimo de 44 px, estado ocupado e foco visivel. `Tab` transfere o foco da busca para a primeira acao habilitada. Nenhuma delas participa da navegacao semantica de opcoes.
390
- - No dialog, `ArrowDown` e `Tab` transferem o foco da busca para o resultado ativo; sem resultados, `Tab` avanca para a primeira acao habilitada. `Shift+Tab` preserva a ordem reversa, `Escape` fecha o overlay e o foco retorna ao trigger de origem.
391
- - No controle inline selecionado, detalhe, troca, copia, remocao e limpeza formam um unico segmento visual adjacente ao trigger. O segmento so existe quando pelo menos uma acao esta materializada; campos obrigatorios, somente leitura ou limitados por permissao nao expõem grupo vazio.
405
+ - No header do `PdxCollectionOverlayComponent`, `PdxCollectionSearchComponent` concentra a busca rapida (foco automatico ao abrir), acompanhada pelo contador `X de Y` e chips de `quickFilterFields`; no rodape (`pdxCollectionOverlayFooter`), ficam `"Limpar selecao"`, `"Carregar mais"` (alvo minimo 44 px) e o CTA para abrir o dialogo avancado mantendo o termo digitado. Nenhuma acao auxiliar usa `<mat-option>` ou `<mat-select>` interativo.
406
+ - No dialog, filtros `type: "enum"` priorizam `definition.options` do backend (com fallback `statusLabelMap`), filtros `type: "reference"` renderizam `<pdx-material-searchable-select>` com `optionSource`, cascata `dependsOn`/`dependencyFilterMap` e `POST .../by-ids` contextual para hidratacao; `ArrowDown` e `Tab` transferem o foco da busca para o resultado ativo, `Shift+Tab` preserva a ordem reversa, `Escape` fecha o overlay e o foco retorna ao trigger de origem.
407
+ - Quando ha selecao ativa, detalhe (`open_in_new`), quick view (`visibility`), troca (`swap_horiz`), copia (`content_copy`), remocao e limpeza formam um unico grupo acessivel (`role="group"`) via `matSuffix` (`.pdx-lookup-suffix-actions`) na faixa `.mat-mdc-form-field-icon-suffix` ao lado da busca avancada (`manage_search`) ou adjacente ao trigger dentro da pill (`.pdx-inline-pill`) — nunca dentro de `<mat-select>`. No modo completo de formulario (`.pdx-entity-lookup-rich`), as acoes secundarias usam chrome compacto (`28px` em desktop, elevado para `44px` em `@media (max-width: 768px)`); quando ha `>= 2` acoes secundarias e o container tem largura `<= 400px` (`@container pdx-entity-lookup (max-width: 400px)`), essas acoes comutam para um menu de overflow (`[data-testid="entity-lookup-overflow-actions-trigger"]`) preservando `manage_search` sempre visivel, enquanto uma unica acao secundaria permanece direta inline. O grupo so existe quando pelo menos uma acao esta materializada; campos obrigatorios, somente leitura ou limitados por permissao nao expõem grupo vazio.
392
408
  - A reidratacao por IDs preserva o valor selecionado, mas nao conta como carga da pagina zero. No primeiro `open`, o runtime consulta a pagina zero antes de habilitar `Carregar mais`; o contador remoto e a lista visivel permanecem coerentes.
393
409
  - Durante busca digitada, a lista visivel mostra apenas resultados retornados pela pagina remota filtrada. O selecionado reidratado por ID nao e injetado como falso resultado, embora continue preservado para display fechado e reabertura sem termo.
394
410
  - `OptionDTO.extra.selectable === false` desabilita a opcao e permite exibir `disabledReason` sem remover a entidade da lista ou da reidratacao.
@@ -429,6 +445,64 @@ Uso: lookup simples em lista local.
429
445
  "codePropertyPath": "matricula",
430
446
  "descriptionPropertyPaths": ["departamento"],
431
447
  "statusPropertyPath": "status",
448
+ "filtering": {
449
+ "defaultSearchStrategy": "text",
450
+ "quickFilterFields": ["status", "departmentId"],
451
+ "searchStrategies": [
452
+ { "key": "text", "kind": "descriptive-text", "minSearchChars": 2 }
453
+ ],
454
+ "availableFilters": [
455
+ {
456
+ "field": "companyId",
457
+ "label": "Empresa",
458
+ "type": "reference",
459
+ "operators": ["equals"],
460
+ "defaultOperator": "equals",
461
+ "optionSource": {
462
+ "key": "company",
463
+ "type": "RESOURCE_ENTITY",
464
+ "resourcePath": "people/companies",
465
+ "valuePropertyPath": "id",
466
+ "labelPropertyPath": "name"
467
+ }
468
+ },
469
+ {
470
+ "field": "departmentId",
471
+ "label": "Departamento",
472
+ "type": "reference",
473
+ "operators": ["equals"],
474
+ "defaultOperator": "equals",
475
+ "dependsOn": ["companyId"],
476
+ "dependencyFilterMap": { "companyId": "companyId" },
477
+ "optionSource": {
478
+ "key": "department",
479
+ "type": "RESOURCE_ENTITY",
480
+ "resourcePath": "people/departments",
481
+ "valuePropertyPath": "id",
482
+ "labelPropertyPath": "name",
483
+ "dependsOn": ["companyId"],
484
+ "dependencyFilterMap": { "companyId": "companyId" }
485
+ }
486
+ }
487
+ ]
488
+ },
489
+ "dialog": {
490
+ "enabled": true,
491
+ "title": "Diretorio de colaboradores",
492
+ "size": "lg",
493
+ "previewPanel": true,
494
+ "resultColumns": [
495
+ { "field": "matricula", "label": "Matricula", "kind": "code", "width": "120px" },
496
+ { "field": "nome", "label": "Colaborador", "kind": "label" },
497
+ { "field": "status", "label": "Situacao", "kind": "status", "width": "120px" }
498
+ ]
499
+ },
500
+ "capabilities": {
501
+ "filter": true,
502
+ "byIds": true,
503
+ "detail": true,
504
+ "recent": true
505
+ },
432
506
  "detail": {
433
507
  "kind": "surface",
434
508
  "surfaceId": "detail",
@@ -510,7 +584,16 @@ Correcao: ajustar `inlineAutoSize.minWidth/maxWidth`.
510
584
  | `metadata.optionLabelKey` | string | false | n/a | Partial | See Detailed API reference. |
511
585
  | `metadata.resourcePath` | string | false | n/a | Partial | See Detailed API reference. |
512
586
  | `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference. |
513
- | `metadata.searchable` | boolean | false | n/a | Partial | See Detailed API reference. |
587
+ | `metadata.searchable` | boolean | false | n/a | Active | See Detailed API reference. |
588
+ | `metadata.optionSource.capabilities.recent` | boolean | false | `false` | Active | See Detailed API reference. |
589
+ | `metadata.optionSource.capabilities.favorites` | boolean | false | `false` | Active | See Detailed API reference. |
590
+ | `metadata.optionSource.filtering.availableFilters` | object[] | false | n/a | Active | See Detailed API reference. |
591
+ | `metadata.optionSource.filtering.quickFilterFields` | string[] | false | n/a | Active | See Detailed API reference. |
592
+ | `metadata.optionSource.filtering.searchStrategies` | object[] | false | n/a | Active | See Detailed API reference. |
593
+ | `metadata.optionSource.filtering.defaultSearchStrategy` | string | false | n/a | Active | See Detailed API reference. |
594
+ | `metadata.optionSource.dialog` | object | false | n/a | Active | See Detailed API reference. |
595
+ | `metadata.dialog` | object | false | n/a | Active | See Detailed API reference. |
596
+ | `metadata.dialog.resultColumns` | object[] | false | n/a | Active | See Detailed API reference. |
514
597
  | `resourcePath` | string | false | n/a | Partial | See Detailed API reference. |
515
598
  | `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
516
599
  | `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
@@ -693,6 +776,6 @@ Correcao: ajustar `inlineAutoSize.minWidth/maxWidth`.
693
776
 
694
777
  | Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
695
778
  | --- | --- | --- | --- | --- |
696
- | runtime-code | projects/praxis-dynamic-fields/src/lib/components/inline-entity-lookup/inline-entity-lookup.component.ts | Primary source of truth for contract and behavior. | 2026-03-16 | verified-path |
697
- | runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-async-select/material-async-select.component.ts | Primary source of truth for contract and behavior. | 2026-03-16 | verified-path |
698
- | schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-03-16 | verified-path |
779
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/components/inline-entity-lookup/inline-entity-lookup.component.ts | Primary source of truth for contract and behavior. | 2026-11-21 | verified-path |
780
+ | runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-async-select/material-async-select.component.ts | Primary source of truth for contract and behavior. | 2026-11-21 | verified-path |
781
+ | schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-11-21 | verified-path |
@@ -106,14 +106,16 @@ Este documento e a referencia canonica da API JSON de pdx-inline-number.
106
106
 
107
107
  | Path | Type | Required | Default | Status | Notes |
108
108
  | --- | --- | --- | --- | --- | --- |
109
- | `metadata` | object | true | n/a | Partial | See Detailed API reference for runtime semantics. |
110
- | `metadata.min` | number | false | n/a | Partial | See Detailed API reference for runtime semantics. |
111
- | `metadata.max` | number | false | n/a | Partial | See Detailed API reference for runtime semantics. |
112
- | `metadata.step` | number | false | n/a | Partial | See Detailed API reference for runtime semantics. |
113
- | `metadata.inputMode` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
114
- | `metadata.numberFormat.percentage` | unknown | false | n/a | Partial | See Detailed API reference for runtime semantics. |
115
- | `metadata.clearButton` | object | false | n/a | Partial | See Detailed API reference for runtime semantics. |
116
- | `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference for runtime semantics. |
109
+ | `metadata` | object | true | n/a | Active | See Detailed API reference for runtime semantics. |
110
+ | `metadata.min` | number | false | `0` (percent) | Active | Also resolves `metadata.minimum` and `metadata.numericMin`. |
111
+ | `metadata.max` | number | false | `100` (percent) | Active | Also resolves `metadata.maximum` and `metadata.numericMax`. |
112
+ | `metadata.step` | number | false | `0.01` (percent) | Active | Also resolves `metadata.numericStep`. |
113
+ | `metadata.inputMode` | string | false | `decimal` | Active | See Detailed API reference for runtime semantics. |
114
+ | `metadata.numberFormat.percentage` | boolean | false | `false` | Active | Enables interactive percentage mode (`numericFormat: "percent"`, `format: "percent"`, or `valuePresentation.type: "percentage"`). |
115
+ | `metadata.inlineVisualStyle` | `'compact' \| 'graphic'` | false | `'compact'` | Active | Controls compact pill with Percent Studio popover vs expanded graphic rail. |
116
+ | `metadata.percentPresets` | `number[]` | false | `[0, 25, 50, 75, 100]` | Active | Custom quick-preset percentage milestones for the Percent Studio popover and graphic rail. |
117
+ | `metadata.clearButton` | object | false | n/a | Active | See Detailed API reference for runtime semantics. |
118
+ | `metadata.inlineAutoSize.*` | object | false | n/a | Active | See Detailed API reference for runtime semantics. |
117
119
 
118
120
  ### Path audit
119
121
 
@@ -133,23 +135,25 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
133
135
 
134
136
  | Block | Purpose | Required | Merge strategy | Notes |
135
137
  | --- | --- | --- | --- | --- |
136
- | `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-03-06). |
137
- | `readonlyMode` | Override de readonly no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
138
- | `disabledMode` | Override de disabled no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
139
- | `visible` | Override de visibilidade no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
140
- | `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | runtime linkage verified for core flows (component specs, 2026-03-06). |
138
+ | `metadata` | Payload declarativo principal do componente | true | deep-merge | runtime linkage verified for core flows (component specs, 2026-10-18). |
139
+ | `readonlyMode` | Override de readonly no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-10-18). |
140
+ | `disabledMode` | Override de disabled no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-10-18). |
141
+ | `visible` | Override de visibilidade no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-10-18). |
142
+ | `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | runtime linkage verified for core flows (component specs, 2026-10-18). |
141
143
 
142
144
  ### Nested configuration blocks
143
145
 
144
146
  | Path | Type | Required | Default | Constraints | Notes |
145
147
  | --- | --- | --- | --- | --- | --- |
146
- | `metadata.min` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
147
- | `metadata.max` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
148
- | `metadata.step` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
149
- | `metadata.inputMode` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
150
- | `metadata.numberFormat.percentage` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
151
- | `metadata.clearButton` | object | false | n/a | component-defined | Partial; verify per source_of_truth. |
152
- | `metadata.inlineAutoSize.*` | object | false | n/a | component-defined | Partial; verify per source_of_truth. |
148
+ | `metadata.min` | number | false | `0` (percent) | component-defined | Active; supports `minimum` / `numericMin` fallbacks. |
149
+ | `metadata.max` | number | false | `100` (percent) | component-defined | Active; supports `maximum` / `numericMax` fallbacks. |
150
+ | `metadata.step` | number | false | `0.01` (percent) | component-defined | Active; supports `numericStep` fallback. |
151
+ | `metadata.inputMode` | string | false | `decimal` | component-defined | Active. |
152
+ | `metadata.numberFormat.percentage` | boolean | false | `false` | component-defined | Active; enables interactive Micro-Ring Gauge and Percent Studio popover. |
153
+ | `metadata.inlineVisualStyle` | `'compact' \| 'graphic'` | false | `'compact'` | `'compact' \| 'graphic'` | Active. |
154
+ | `metadata.percentPresets` | `number[]` | false | quartiles | within `[min, max]` | Active; falls back to `quickPresets` or dynamic quartiles. |
155
+ | `metadata.clearButton` | object | false | n/a | component-defined | Active. |
156
+ | `metadata.inlineAutoSize.*` | object | false | n/a | component-defined | Active. |
153
157
 
154
158
  ### Input bindings (inbound data)
155
159
 
@@ -283,11 +287,13 @@ Use quando precisar:
283
287
  #### 3.1 Campos especificos do componente
284
288
  | Caminho JSON | Tipo | Status | Comportamento em runtime |
285
289
  | --- | --- | --- | --- |
286
- | `metadata.min` | `number` | Ativo | Limite minimo efetivo do campo. |
287
- | `metadata.max` | `number` | Ativo | Limite maximo efetivo do campo. |
288
- | `metadata.step` | `number` | Ativo | Incremento do input numerico. |
290
+ | `metadata.min` | `number` | Ativo | Limite minimo efetivo do campo (aceita tambem `minimum` e `numericMin`). |
291
+ | `metadata.max` | `number` | Ativo | Limite maximo efetivo do campo (aceita tambem `maximum` e `numericMax`). |
292
+ | `metadata.step` | `number` | Ativo | Incremento do input numerico e da trilha/setas (aceita tambem `numericStep`). |
289
293
  | `metadata.inputMode` | `string` | Ativo | Define `inputmode` (ex.: decimal/numeric). |
290
- | `metadata.numberFormat.percentage` | `boolean` | Ativo | Ativa modo percentual com sufixo `%`. |
294
+ | `metadata.numberFormat.percentage` | `boolean` | Ativo | Ativa modo percentual com Micro-Ring Gauge interativo, preenchimento liquido proporcional, gatilho `%` e popover Percent Studio. |
295
+ | `metadata.inlineVisualStyle` | `'compact' \| 'graphic'` | Ativo | `'compact'` (padrao) exibe pilula densa com popover interativo sob demanda; `'graphic'` exibe gauge e trilha deslizante expandidos fora de toolbars compactas. |
296
+ | `metadata.percentPresets` | `number[]` | Ativo | Presets rapidos em 1 clique no Percent Studio e modo grafico (default: quartis calculados sob `[min, max]`, ex.: `[0, 25, 50, 75, 100]`). |
291
297
  | `metadata.clearButton` | `boolean \| object` | Ativo | Quick-clear no sufixo. |
292
298
  | `metadata.inlineAutoSize.*` | `object` | Ativo | Ajuste de largura minima/maxima por viewport. |
293
299
 
@@ -296,13 +302,17 @@ Use quando precisar:
296
302
  - [pdx-base-input-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md)
297
303
 
298
304
  Resumo de composicao deste componente:
299
- - `Ativo`: limites numericos, modo percentual, autosize e clear.
300
- - `Extensao de runtime`: tuning inline de largura.
305
+ - `Ativo`: limites numericos, modo percentual interativo (Micro-Ring Gauge + Percent Studio popover + scrubbing), autosize e clear.
306
+ - `Extensao de runtime`: tuning inline de largura e calculo dinamico de quartis/presets.
301
307
 
302
308
  ### 4. Mapeamento de Comportamento
303
- - Modo percentual ajusta semantica visual e valores default de faixa/passo.
304
- - `metadata.inlineVisualStyle = "graphic"` materializa leitura percentual enriquecida, mas o componente suprime gauge/rail decorativos quando esta dentro de `praxis-filter` compacto para manter a barra densa e escaneavel.
305
- - Campo recalcula largura com base no conteudo/placeholder e limites configurados.
309
+ - Modo percentual (`numberFormat.percentage = true`, `numericFormat = "percent"`, `format = "percent"` ou `valuePresentation.type = "percentage"`) ativa:
310
+ 1. **Micro-Ring Donut Gauge (`20px`)** a esquerda do chip com suporte a **drag-to-scrub horizontal** e clique para abrir o **Percent Studio**.
311
+ 2. **Liquid Progress Pill**: preenchimento sutil proporcional (`--pdx-inline-percent-fill`) dentro da pilula compacta.
312
+ 3. **Gatilho `%` interativo** a direita que abre o **Percent Studio Popover** (`cdkConnectedOverlay` com `cdkTrapFocus`), oferecendo Hero Donut Gauge (`48px`), slider graduado arrastavel com escala dinamica (`percentScaleLabels`), presets de quartil em 1 clique (`percentPresets`) e steppers tateis (`-5%`, `-1%`, `+1%`, `+5%`).
313
+ 4. **Preservacao de passos fracionarios**: se `step` for configurado explicitamente (ex.: `0.5` ou `0.25` para taxas financeiras/descontos), o slider, as setas do teclado e os steppers preservam a precisao fracionaria.
314
+ - `metadata.inlineVisualStyle = "graphic"` materializa o gauge e a trilha interativa diretamente no corpo do campo quando fora de `praxis-filter` compacto.
315
+ - Campo recalcula largura com base no conteudo/placeholder, rotulo inline e limites configurados.
306
316
  - Validadores `min/max` sao aplicados no control conforme metadata.
307
317
 
308
318
  ### 5. Exemplo Minimo (JSON + Uso)
@@ -333,25 +343,26 @@ Uso: filtro numerico simples.
333
343
  "min": 0,
334
344
  "max": 100,
335
345
  "step": 0.5,
336
- "inlineAutoSize": { "minWidth": 120, "maxWidth": 240 },
346
+ "percentPresets": [0, 10, 25, 50, 75, 100],
347
+ "inlineAutoSize": { "minWidth": 132, "maxWidth": 336 },
337
348
  "clearButton": { "enabled": true, "showOnlyWhenFilled": true }
338
349
  }
339
350
  }
340
351
  ```
341
- Uso: filtro percentual em pill para politica comercial.
352
+ Uso: filtro percentual corporativo com selecao visual via Percent Studio e precisao de meio ponto percentual (`0.5%`).
342
353
 
343
354
  ### 7. Troubleshooting e Armadilhas Comuns
344
- 1. Sufixo `%` nao aparece.
345
- Correcao: ativar `numberFormat.percentage=true`.
355
+ 1. Sufixo `%` e Percent Studio nao aparecem.
356
+ Correcao: ativar `numberFormat.percentage=true`, `numericFormat="percent"` ou `valuePresentation.type="percentage"`.
346
357
 
347
358
  2. Valor fora da faixa aceita.
348
- Correcao: conferir `min/max` e validacao backend correspondente.
359
+ Correcao: conferir `min/max` (ou `numericMin/numericMax`) e validacao backend correspondente.
349
360
 
350
361
  3. Campo muito curto para leitura.
351
362
  Correcao: ajustar limites de `inlineAutoSize`.
352
363
 
353
364
  4. Step inesperado em percentual.
354
- Correcao: definir `step` explicitamente.
365
+ Correcao: definir `step` explicitamente (ex.: `0.5` para taxas fracionarias ou `1` para inteiros).
355
366
 
356
367
  5. Clear indisponivel.
357
368
  Correcao: revisar `clearButton` e estados readonly/disabled.
@@ -373,18 +384,20 @@ Correcao: revisar `clearButton` e estados readonly/disabled.
373
384
 
374
385
  | Path | Type | Required | Default | Status | Notes |
375
386
  | --- | --- | --- | --- | --- | --- |
376
- | `metadata` | object | true | n/a | Partial | See Detailed API reference. |
377
- | `metadata.min` | number | false | n/a | Partial | See Detailed API reference. |
378
- | `metadata.max` | number | false | n/a | Partial | See Detailed API reference. |
379
- | `metadata.step` | number | false | n/a | Partial | See Detailed API reference. |
380
- | `metadata.inputMode` | string | false | n/a | Partial | See Detailed API reference. |
381
- | `metadata.numberFormat.percentage` | unknown | false | n/a | Partial | See Detailed API reference. |
382
- | `metadata.clearButton` | object | false | n/a | Partial | See Detailed API reference. |
383
- | `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference. |
384
- | `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
385
- | `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
386
- | `visible` | boolean | false | n/a | Partial | See Detailed API reference. |
387
- | `presentationMode` | boolean | false | n/a | Partial | See Detailed API reference. |
387
+ | `metadata` | object | true | n/a | Active | See Detailed API reference. |
388
+ | `metadata.min` | number | false | `0` (percent) | Active | See Detailed API reference. |
389
+ | `metadata.max` | number | false | `100` (percent) | Active | See Detailed API reference. |
390
+ | `metadata.step` | number | false | `0.01` (percent) | Active | See Detailed API reference. |
391
+ | `metadata.inputMode` | string | false | `decimal` | Active | See Detailed API reference. |
392
+ | `metadata.numberFormat.percentage` | boolean | false | `false` | Active | See Detailed API reference. |
393
+ | `metadata.inlineVisualStyle` | `'compact' \| 'graphic'` | false | `'compact'` | Active | See Detailed API reference. |
394
+ | `metadata.percentPresets` | `number[]` | false | quartiles | Active | See Detailed API reference. |
395
+ | `metadata.clearButton` | object | false | n/a | Active | See Detailed API reference. |
396
+ | `metadata.inlineAutoSize.*` | object | false | n/a | Active | See Detailed API reference. |
397
+ | `readonlyMode` | boolean | false | `false` | Active | See Detailed API reference. |
398
+ | `disabledMode` | boolean | false | `false` | Active | See Detailed API reference. |
399
+ | `visible` | boolean | false | `true` | Active | See Detailed API reference. |
400
+ | `presentationMode` | boolean | false | `false` | Active | See Detailed API reference. |
388
401
 
389
402
  ## Events reference (obrigatorio)
390
403
 
@@ -399,7 +412,16 @@ Correcao: revisar `clearButton` e estados readonly/disabled.
399
412
 
400
413
  | Token/Class | Scope | Purpose | Notes |
401
414
  | --- | --- | --- | --- |
402
- | `not-yet-verified` | component | Styling contract not yet verified | Use Detailed API reference for component-specific styling notes. |
415
+ | `--pdx-inline-percent-accent` | host/body | Cor de destaque principal do tema para o anel, trilha e controles percentuais | Herda fallback automatico de `--pdx-inline-chip-border-active-color` / `--pdx-inline-prefix-icon-color` / `--md-sys-color-primary`. |
416
+ | `--pdx-inline-percent-gradient-start` | host/body | Cor inicial dos gradientes do Donut Gauge e trilha | Personalizavel pelo tema do host. |
417
+ | `--pdx-inline-percent-gradient-mid` | host/body | Cor intermediaria dos gradientes do Donut Gauge e trilha | Personalizavel pelo tema do host. |
418
+ | `--pdx-inline-percent-gradient-end` | host/body | Cor final dos gradientes do Donut Gauge e trilha | Personalizavel pelo tema do host. |
419
+ | `--pdx-inline-percent-rail-gradient` | host/body | Gradiente completo de preenchimento da barra deslizante | Personalizavel pelo tema do host. |
420
+ | `--pdx-inline-percent-fill` | host/chip | Percentual de preenchimento horizontal (0% a 100%) da pilula compacta | Calculado automaticamente pelo componente conforme `[min, max]`. |
421
+ | `--pdx-inline-percent-angle` | host/popover | Angulo em graus (`0deg` a `360deg`) do `conic-gradient` nos Donut Gauges | Calculado automaticamente pelo componente. |
422
+ | `--pdx-inline-percent-tone` | host/popover | Cor semantica ativa da progressao percentual | Evolui dinamicamente conforme a faixa percentual e o tema ativo. |
423
+ | `.pdx-inline-percent-mini-ring` | component | Micro-Ring Donut Gauge interativo (`20px`) no chip compacto | Suporta clique e horizontal drag-to-scrub. |
424
+ | `.pdx-inline-percent-popover` | overlay | Painel flutuante Percent Studio (`cdkConnectedOverlay`) | Respeita `--pdx-inline-overlay-bg`, `--pdx-inline-overlay-border`, `--pdx-inline-overlay-radius` e `--pdx-inline-overlay-shadow`. |
403
425
 
404
426
  ## Examples (obrigatorio)
405
427
 
@@ -32,7 +32,7 @@ tags:
32
32
  api_stability: "canonical"
33
33
  schema_verified: true
34
34
  runtime_verified: true
35
- editor_coverage_verified: false
35
+ editor_coverage_verified: true
36
36
  runtime_scope: "public"
37
37
  legacy_paths_present: false
38
38
  has_known_mismatches: false
@@ -429,6 +429,10 @@ Correcao: ajustar `inlineAutoSize.panelMinWidth/panelMaxWidth`.
429
429
  | `metadata.inlineOverlay.actions.apply` | object | false | n/a | Active | Label, aria, icon, appearance and colorRole for Apply. |
430
430
  | `metadata.inlineOverlay.actions.cancel` | object | false | n/a | Active | Label, aria, icon, appearance and colorRole for Cancel. |
431
431
  | `metadata.inlineOverlay.actions.clear` | object | false | n/a | Active | Label, aria, icon, appearance and colorRole for Clear. |
432
+ | `metadata.inlinePanelTitle` | string | false | `placeholderText()` | Active | Custom heading title for `.pdx-inline-pipeline-header`. |
433
+ | `metadata.inlinePanelSubtitle` | string | false | n/a | Active | Custom subtitle for `.pdx-inline-pipeline-header`. |
434
+ | `metadata.inlinePanelIcon` | string | false | `chipLeadingIcon()` | Active | Material Symbols ligature rendered in the panel header badge. |
435
+ | `metadata.inlinePanelIconColor` | string | false | `prefixIconColor()` | Active | Theme token or CSS color applied to the panel header icon. |
432
436
  | `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference. |
433
437
  | `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
434
438
  | `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
@@ -449,9 +453,20 @@ Correcao: ajustar `inlineAutoSize.panelMinWidth/panelMaxWidth`.
449
453
 
450
454
  ## Styling API (obrigatorio quando aplicavel)
451
455
 
452
- | Token/Class | Scope | Purpose | Notes |
456
+ Every surface inside `.pdx-inline-pipeline-panel` exposes `--pdx-inline-pipeline-*` CSS custom properties with Material Design 3 (`--md-sys-color-*`) fallbacks, and panel entrance animations automatically disable under `@media (prefers-reduced-motion: reduce)`.
457
+
458
+ | Token/Class | Scope | Default / Fallback | Notes |
453
459
  | --- | --- | --- | --- |
454
- | `not-yet-verified` | component | Styling contract not yet verified | Use Detailed API reference for component-specific styling notes. |
460
+ | `--pdx-inline-pipeline-min-w` / `--pdx-inline-pipeline-max-w` | chip | `188px` / `420px` | Trigger pill min/max inline width bounds bound via `inlineAutoSize`. |
461
+ | `--pdx-inline-pipeline-panel-min-w` / `--pdx-inline-pipeline-panel-max-w` | panel | `340px` / `620px` | Popover width limits (`inlineAutoSize.panel*`). |
462
+ | `--pdx-inline-pipeline-panel-bg` / `-fg` / `-border` / `-radius` / `-shadow` / `-padding` / `-gap` | panel | `--pdx-inline-overlay-*` -> `--md-sys-color-surface-container` | Popover container surface, foreground, border, corner radius, shadow, and spacing. |
463
+ | `--pdx-inline-pipeline-anim-duration` | panel | `160ms` | Panel entrance reveal duration (`pdxInlinePipelinePanelIn`); disabled under reduced motion. |
464
+ | `--pdx-inline-pipeline-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` color override. |
465
+ | `--pdx-inline-pipeline-title-size` / `-weight` / `--pdx-inline-pipeline-subtitle-color` / `-size` | header | `1rem` / `600` / `--md-sys-color-on-surface-variant` / `0.82rem` | Header title and subtitle typography. |
466
+ | `--pdx-inline-pipeline-bar-height` / `-radius` / `-border` / `-bg` / `-gradient-low` / `-mid` / `-high` | pipeline bar | `22px` / `999px` / `--md-sys-color-outline-variant` / `--md-sys-color-surface-container-high` | Segmented summary bar sizing and 3-stop gradient color stops. |
467
+ | `--pdx-inline-pipeline-card-border` / `-radius` / `-bg` / `-fg` / `-padding` / `-selected-border` / `-selected-bg` | cards | `--md-sys-color-surface-container-high` / `--md-sys-color-primary-container` | Stage option cards in `.pdx-inline-pipeline-grid`. |
468
+ | `--pdx-inline-pipeline-pill-border` / `-bg` / `-fg` | pills | `--md-sys-color-outline-variant` / `--md-sys-color-surface-container-high` | Selected-stage summary pills (`pipelineShowSelectionPills`). |
469
+ | `--pdx-inline-pipeline-action-primary-*` / `-neutral-*` / `-danger-*` | footer | theme primary / neutral / error | Footer action container and label tokens (`-container`, `-label`, `-tonal-container`, `-tonal-label`). |
455
470
 
456
471
  ## Examples (obrigatorio)
457
472