@praxisui/dynamic-fields 10.0.0-rc.6 → 10.0.0-rc.60
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 +26 -1
- package/ai/component-registry.json +93533 -1830
- package/docs/dynamic-fields-field-selection-guide.md +14 -0
- package/docs/dynamic-fields-inline-components-guide.md +56 -46
- package/docs/dynamic-fields-inline-filter-catalog.md +50 -32
- package/docs/dynamic-fields-inline-filter-inventory.md +2 -2
- package/docs/dynamic-fields-inline-filter-runtime-contract.md +71 -18
- package/docs/dynamic-fields-inline-filter-selection-guide.md +10 -8
- package/fesm2022/praxisui-dynamic-fields.mjs +24140 -6010
- 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 +95 -27
- package/src/lib/components/inline-date/pdx-inline-date.json-api.md +24 -0
- package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +96 -46
- package/src/lib/components/inline-distance-radius/pdx-inline-distance-radius.json-api.md +27 -4
- package/src/lib/components/inline-entity-lookup/pdx-inline-entity-lookup.json-api.md +108 -25
- package/src/lib/components/inline-number/pdx-inline-number.json-api.md +70 -48
- package/src/lib/components/inline-pipeline-status/pdx-inline-pipeline-status.json-api.md +18 -3
- package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +78 -19
- package/src/lib/components/inline-rating/pdx-inline-rating.json-api.md +18 -5
- package/src/lib/components/inline-relative-period/pdx-inline-relative-period.json-api.md +17 -3
- package/src/lib/components/inline-score-priority/pdx-inline-score-priority.json-api.md +62 -15
- package/src/lib/components/inline-sentiment/pdx-inline-sentiment.json-api.md +18 -3
- package/src/lib/components/inline-time-range/pdx-inline-time-range.json-api.md +77 -25
- package/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md +28 -15
- package/src/lib/components/material-slider/pdx-material-slider.json-api.md +16 -8
- package/src/lib/components/number-input/pdx-number-input.json-api.md +14 -8
- package/types/praxisui-dynamic-fields.d.ts +1014 -37
|
@@ -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
|
|
@@ -115,6 +115,9 @@ Este documento e a referencia canonica da API JSON de pdx-inline-date-range.
|
|
|
115
115
|
| `metadata.endAriaLabel` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
116
116
|
| `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
117
117
|
| `metadata.inlineChipDisplay` | `"value" \| "label-value"` | false | `"value"` | Partial | Controls whether the compact filled chip renders only the date range value or the field label followed by the value. |
|
|
118
|
+
| `metadata.defaultGranularity` | `"day" \| "month" \| "year"` | false | `"day"` | Active | Granularidade inicial da barra `Dia \| Mês/Ano \| Ano` no topo do overlay. |
|
|
119
|
+
| `metadata.granularity` | `"day" \| "month" \| "year"` | false | `"day"` | Active | Alias declarativo de `defaultGranularity`. |
|
|
120
|
+
| `metadata.locale` | string | false | `"pt-BR"` | Active | Locale usado para formatar datas e rotulos de meses na grade `Mês/Ano`. |
|
|
118
121
|
| `metadata.clearButton` | object | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
119
122
|
| `metadata.inlineQuickPresets*` | unknown | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
120
123
|
|
|
@@ -152,6 +155,9 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
152
155
|
| `metadata.startAriaLabel` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
153
156
|
| `metadata.endAriaLabel` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
154
157
|
| `metadata.inlineAutoSize.*` | object | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
158
|
+
| `metadata.defaultGranularity` | `"day" \| "month" \| "year"` | false | `"day"` | enum | Active; verified in inline-date-range specs. |
|
|
159
|
+
| `metadata.granularity` | `"day" \| "month" \| "year"` | false | `"day"` | enum | Active alias of `defaultGranularity`. |
|
|
160
|
+
| `metadata.locale` | string | false | `"pt-BR"` | BCP-47 locale | Active; verified in inline-date-range specs. |
|
|
155
161
|
| `metadata.clearButton` | object | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
156
162
|
| `metadata.inlineQuickPresets*` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
157
163
|
| `metadata.inlinePanelTitle` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
@@ -297,6 +303,9 @@ Use quando precisar:
|
|
|
297
303
|
| `metadata.endAriaLabel` | `string` | Ativo | ARIA do input final. |
|
|
298
304
|
| `metadata.inlineAutoSize.*` | `object` | Ativo | Autoajuste de largura da pill. |
|
|
299
305
|
| `metadata.inlineChipDisplay` | `"value" \| "label-value"` | Ativo | Exibicao compacta do chip preenchido: somente valor ou label + valor. |
|
|
306
|
+
| `metadata.defaultGranularity` | `"day" \| "month" \| "year"` | Ativo | Granularidade inicial da barra `Dia \| Mês/Ano \| Ano` no topo do overlay. |
|
|
307
|
+
| `metadata.granularity` | `"day" \| "month" \| "year"` | Ativo | Alias de `defaultGranularity`. |
|
|
308
|
+
| `metadata.locale` | `string` | Ativo | Locale para formatar datas e meses da grade `Mês/Ano`. |
|
|
300
309
|
| `metadata.clearButton` | `boolean \| object` | Ativo | Botao de limpeza rapida no trigger. |
|
|
301
310
|
| `metadata.inlineQuickPresets` | `boolean \| { enabled?: boolean; maxVisible?: number; position?: "auto" \| "footer" \| "start" \| "end" }` | Ativo | Controla atalhos inline. `position` usa posicoes logicas, com fallback para `footer` em viewport estreito/touch. |
|
|
302
311
|
| `metadata.shortcuts` | `Array<string \| DateRangePreset \| StaticDateRangePreset>` | Ativo | Mesmo catalogo do `pdx-material-date-range`: built-ins, presets TypeScript e periodos corporativos estaticos serializaveis publicados pelo backend/dominio. |
|
|
@@ -318,9 +327,15 @@ Resumo de composicao deste componente:
|
|
|
318
327
|
### 4. Mapeamento de Comportamento
|
|
319
328
|
- Trigger em pill mostra estado vazio, parcial ou completo do intervalo.
|
|
320
329
|
- Clicar em qualquer area acionavel da pill, incluindo os inputs internos de inicio/fim, abre o calendario; apenas o botao de limpeza rapida fica isolado para limpar sem abrir o overlay.
|
|
321
|
-
- Overlay de calendario inclui presets e botoes de aplicar/cancelar.
|
|
330
|
+
- Overlay de calendario inclui no topo a barra segmentada de granularidade (`Dia | Mês/Ano | Ano`), presets e botoes de aplicar/cancelar.
|
|
331
|
+
- Em `Ano`, o usuario seleciona um intervalo de anos em 2 cliques (ex.: `2019` -> `2022`) ou com 1 clique nos atalhos de horizonte plurianual (`Ano atual`, `Ano ant.`, `Últ. 3 anos`, `Últ. 5 anos`, `Últ. 10 anos`), expandido automaticamente para `{ startDate: 01/01/YYYY, endDate: 31/12/YYYY }` (respeitando `minDate`/`maxDate`).
|
|
332
|
+
- Em `Mês/Ano`, o usuario seleciona um intervalo de competencias em 2 cliques (ex.: `Mar/2019` -> `Nov/2022`) ou com 1 clique nos atalhos corporativos do ano em foco (`Q1`..`Q4`, `1º Sem`, `2º Sem`, `Ano`), expandido para o primeiro dia do mes inicial e o ultimo dia real do mes final (incluindo anos bissextos).
|
|
333
|
+
- Em ambos os modos (`Ano` e `Mês/Ano`), o 1º clique na grade define apenas a ancora visual temporaria sem emitir valor parcial; se o overlay fechar ou o usuario alternar de aba antes do 2º clique, o rascunho incompleto sofre rollback para o estado confirmado anterior.
|
|
334
|
+
- Quando o filtro contem um intervalo parcial de dias (ex.: `15/05/2026 - 20/05/2026`), as celulas de `Mês/Ano` e `Ano` exibem indicador de contencao parcial (`.is-partial-period`, borda tracejada) em vez de destacar o mes/ano inteiro como selecionado.
|
|
335
|
+
- Ao reabrir o overlay na mesma sessao apos selecionar um intervalo por `Ano` ou `Mês/Ano`, o componente preserva a granularidade escolhida.
|
|
322
336
|
- `inlineQuickPresets.position: "footer"` renderiza atalhos acima das acoes; `"start"` e `"end"` materializam uma rail logica ao lado do calendario quando ha espaco; `"auto"` escolhe rail em desktop e cai para rodape quando necessario.
|
|
323
|
-
- Em modo explicito/confirmacao,
|
|
337
|
+
- Em modo explicito/confirmacao, o card de resumo antes de `Aplicar` exibe o label do preset ativo ou, quando o intervalo representa um periodo corporativo fechado, um titulo semantico automatico (`Exercício YYYY`, `Período anual: Y1 – Y2`, `Nº trimestre de YYYY (QN)`, `Nº semestre de YYYY`, `Competência: Mês/YYYY` ou `Competência: M1/Y1 – M2/Y2`). Esse resumo e apenas confirmacao visual/acessivel do rascunho; nao altera o payload canonico.
|
|
338
|
+
- Quando fechado (pill na toolbar) com `defaultGranularity: "month" | "year"`, apos selecao por periodo, ou com `inlineChipDisplay: "label-value"`, o componente exibe notacao semantica compacta para intervalos exatos (`YYYY`, `Y1 – Y2`, `QN/YYYY`, `1º Sem/YYYY`, `2º Sem/YYYY`, `Mês/YYYY` ou `M1/Y1 – M2/Y2`), preservando o intervalo completo de datas (`DD/MM/YYYY - DD/MM/YYYY`) no tooltip e no `aria-label`.
|
|
324
339
|
- Entrada manual em ambos os campos sincroniza com o valor consolidado do range.
|
|
325
340
|
- Em `inlineOverlay.applyMode: "auto"`, selecao manual no calendario aplica pendencias imediatamente para manter o valor do chip inline sincronizado.
|
|
326
341
|
- Em `inlineOverlay.applyMode: "explicit"`, o chip inline mostra o intervalo em rascunho enquanto o overlay esta aberto; o commit de negocio continua ocorrendo apenas em `Aplicar`, enquanto `Cancelar`, `Esc` ou fechamento externo restauram o valor confirmado.
|
|
@@ -437,9 +452,16 @@ Correcao: usar `metadata.materialDesign.density` (`dense` ou `default`) e valida
|
|
|
437
452
|
| `metadata.endAriaLabel` | string | false | n/a | Partial | See Detailed API reference. |
|
|
438
453
|
| `metadata.inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference. |
|
|
439
454
|
| `metadata.inlineChipDisplay` | `"value" \| "label-value"` | false | `"value"` | Partial | See Detailed API reference. |
|
|
455
|
+
| `metadata.defaultGranularity` | `"day" \| "month" \| "year"` | false | `"day"` | Active | See Detailed API reference. |
|
|
456
|
+
| `metadata.granularity` | `"day" \| "month" \| "year"` | false | `"day"` | Active | See Detailed API reference. |
|
|
457
|
+
| `metadata.locale` | string | false | `"pt-BR"` | Active | See Detailed API reference. |
|
|
440
458
|
| `metadata.clearButton` | object | false | n/a | Partial | See Detailed API reference. |
|
|
441
459
|
| `metadata.inlineQuickPresets*` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
442
|
-
| `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`). |
|
|
443
465
|
| `inlineAutoSize.*` | object | false | n/a | Partial | See Detailed API reference. |
|
|
444
466
|
| `readonlyMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
445
467
|
| `disabledMode` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
@@ -458,9 +480,18 @@ Correcao: usar `metadata.materialDesign.density` (`dense` ou `default`) e valida
|
|
|
458
480
|
|
|
459
481
|
## Styling API (obrigatorio quando aplicavel)
|
|
460
482
|
|
|
461
|
-
|
|
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 |
|
|
462
486
|
| --- | --- | --- | --- |
|
|
463
|
-
|
|
|
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). |
|
|
464
495
|
|
|
465
496
|
## Examples (obrigatorio)
|
|
466
497
|
|
|
@@ -496,27 +527,24 @@ Correcao: usar `metadata.materialDesign.density` (`dense` ou `default`) e valida
|
|
|
496
527
|
"controlType": "dateRange",
|
|
497
528
|
"startPlaceholder": "Inicio",
|
|
498
529
|
"endPlaceholder": "Fim",
|
|
499
|
-
"startAriaLabel": "
|
|
530
|
+
"startAriaLabel": "Data inicial do periodo",
|
|
500
531
|
"endAriaLabel": "Data final do periodo",
|
|
501
532
|
"inlinePanelTitle": "Selecionar periodo",
|
|
502
533
|
"inlineAutoSize": {
|
|
503
534
|
"minWidth": 180,
|
|
504
535
|
"maxWidth": 420
|
|
505
536
|
},
|
|
506
|
-
"
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
"end": "today"
|
|
512
|
-
},
|
|
513
|
-
{
|
|
514
|
-
"id": "last7",
|
|
515
|
-
"label": "Ultimos 7 dias",
|
|
516
|
-
"start": "-7d",
|
|
517
|
-
"end": "today"
|
|
518
|
-
}
|
|
537
|
+
"shortcuts": [
|
|
538
|
+
"today",
|
|
539
|
+
"last7Days",
|
|
540
|
+
"thisMonth",
|
|
541
|
+
"lastMonth"
|
|
519
542
|
],
|
|
543
|
+
"inlineQuickPresets": {
|
|
544
|
+
"enabled": true,
|
|
545
|
+
"maxVisible": 4,
|
|
546
|
+
"position": "auto"
|
|
547
|
+
},
|
|
520
548
|
"clearButton": {
|
|
521
549
|
"enabled": true,
|
|
522
550
|
"showOnlyWhenFilled": true
|
|
@@ -534,29 +562,35 @@ Correcao: usar `metadata.materialDesign.density` (`dense` ou `default`) e valida
|
|
|
534
562
|
"name": "billingPeriod",
|
|
535
563
|
"label": "Periodo de Faturamento",
|
|
536
564
|
"controlType": "dateRange",
|
|
565
|
+
"defaultGranularity": "month",
|
|
566
|
+
"inlineChipDisplay": "label-value",
|
|
537
567
|
"startPlaceholder": "Inicio",
|
|
538
568
|
"endPlaceholder": "Fim",
|
|
539
569
|
"startAriaLabel": "Data inicial do periodo",
|
|
540
570
|
"endAriaLabel": "Data final do periodo",
|
|
541
|
-
"inlinePanelTitle": "Selecionar
|
|
571
|
+
"inlinePanelTitle": "Selecionar competencia",
|
|
542
572
|
"inlineAutoSize": {
|
|
543
573
|
"minWidth": 180,
|
|
544
574
|
"maxWidth": 420
|
|
545
575
|
},
|
|
546
|
-
"
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
"end": "today"
|
|
552
|
-
},
|
|
553
|
-
{
|
|
554
|
-
"id": "last7",
|
|
555
|
-
"label": "Ultimos 7 dias",
|
|
556
|
-
"start": "-7d",
|
|
557
|
-
"end": "today"
|
|
558
|
-
}
|
|
576
|
+
"shortcuts": [
|
|
577
|
+
"thisMonth",
|
|
578
|
+
"lastMonth",
|
|
579
|
+
"thisQuarter",
|
|
580
|
+
"thisYear"
|
|
559
581
|
],
|
|
582
|
+
"inlineQuickPresets": {
|
|
583
|
+
"enabled": true,
|
|
584
|
+
"maxVisible": 4,
|
|
585
|
+
"position": "start"
|
|
586
|
+
},
|
|
587
|
+
"inlineOverlay": {
|
|
588
|
+
"applyMode": "explicit",
|
|
589
|
+
"actions": {
|
|
590
|
+
"apply": { "label": "Aplicar", "appearance": "filled", "colorRole": "primary" },
|
|
591
|
+
"cancel": { "label": "Cancelar", "appearance": "text", "colorRole": "neutral" }
|
|
592
|
+
}
|
|
593
|
+
},
|
|
560
594
|
"clearButton": {
|
|
561
595
|
"enabled": true,
|
|
562
596
|
"showOnlyWhenFilled": true
|
|
@@ -576,29 +610,45 @@ Correcao: usar `metadata.materialDesign.density` (`dense` ou `default`) e valida
|
|
|
576
610
|
"name": "billingPeriod",
|
|
577
611
|
"label": "Periodo de Faturamento",
|
|
578
612
|
"controlType": "dateRange",
|
|
613
|
+
"defaultGranularity": "month",
|
|
614
|
+
"inlineChipDisplay": "label-value",
|
|
615
|
+
"minDate": "2024-01-01",
|
|
616
|
+
"maxDate": "2026-12-31",
|
|
579
617
|
"startPlaceholder": "Inicio",
|
|
580
618
|
"endPlaceholder": "Fim",
|
|
581
619
|
"startAriaLabel": "Data inicial do periodo",
|
|
582
620
|
"endAriaLabel": "Data final do periodo",
|
|
583
|
-
"inlinePanelTitle": "Selecionar periodo",
|
|
621
|
+
"inlinePanelTitle": "Selecionar periodo fiscal",
|
|
584
622
|
"inlineAutoSize": {
|
|
585
623
|
"minWidth": 180,
|
|
586
624
|
"maxWidth": 420
|
|
587
625
|
},
|
|
588
|
-
"
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
"label": "Hoje",
|
|
592
|
-
"start": "today",
|
|
593
|
-
"end": "today"
|
|
594
|
-
},
|
|
626
|
+
"shortcuts": [
|
|
627
|
+
"today",
|
|
628
|
+
"thisMonth",
|
|
595
629
|
{
|
|
596
|
-
"id": "
|
|
597
|
-
"label": "
|
|
598
|
-
"
|
|
599
|
-
"
|
|
630
|
+
"id": "competencia-fiscal-marco",
|
|
631
|
+
"label": "Competencia fiscal de marco",
|
|
632
|
+
"description": "Periodo resolvido pelo dominio fiscal para a competencia de marco.",
|
|
633
|
+
"startDate": "2026-03-01",
|
|
634
|
+
"endDate": "2026-03-31",
|
|
635
|
+
"timeZone": "America/Sao_Paulo",
|
|
636
|
+
"icon": "account_balance",
|
|
637
|
+
"tone": "success"
|
|
600
638
|
}
|
|
601
639
|
],
|
|
640
|
+
"inlineQuickPresets": {
|
|
641
|
+
"enabled": true,
|
|
642
|
+
"maxVisible": 4,
|
|
643
|
+
"position": "start"
|
|
644
|
+
},
|
|
645
|
+
"inlineOverlay": {
|
|
646
|
+
"applyMode": "explicit",
|
|
647
|
+
"actions": {
|
|
648
|
+
"apply": { "label": "Aplicar", "appearance": "filled", "colorRole": "primary" },
|
|
649
|
+
"cancel": { "label": "Cancelar", "appearance": "text", "colorRole": "neutral" }
|
|
650
|
+
}
|
|
651
|
+
},
|
|
602
652
|
"clearButton": {
|
|
603
653
|
"enabled": true,
|
|
604
654
|
"showOnlyWhenFilled": true
|
|
@@ -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
|
|
|
@@ -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-
|
|
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:
|
|
@@ -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
|
|
@@ -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 | `
|
|
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 | `
|
|
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
|
|
132
|
-
| `metadata.
|
|
133
|
-
| `metadata.
|
|
134
|
-
| `metadata.
|
|
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;
|
|
185
|
-
| `metadata.
|
|
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 | `
|
|
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
|
|
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`
|
|
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 |
|
|
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
|
|
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,
|
|
385
|
-
- Com fonte remota e `loadOn: "open"`, o
|
|
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
|
-
-
|
|
390
|
-
- No dialog, `ArrowDown` e `Tab` transferem o foco da busca para o resultado ativo
|
|
391
|
-
-
|
|
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>`. 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 |
|
|
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-
|
|
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-
|
|
698
|
-
| schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-
|
|
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 |
|