@praxisui/dynamic-fields 10.0.0-rc.40 → 10.0.0-rc.42
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 +7 -0
- package/ai/component-registry.json +2 -2
- package/docs/dynamic-fields-inline-components-guide.md +9 -9
- package/docs/dynamic-fields-inline-filter-selection-guide.md +5 -2
- package/fesm2022/praxisui-dynamic-fields.mjs +489 -65
- package/package.json +4 -4
- package/types/praxisui-dynamic-fields.d.ts +18 -2
package/README.md
CHANGED
|
@@ -177,6 +177,13 @@ public `OptionDisplayResolverService`. It resolves object labels, local options
|
|
|
177
177
|
remote option sources from `FieldMetadata`; consumers must keep the raw value as the
|
|
178
178
|
executable payload and treat the resolved text only as presentation evidence.
|
|
179
179
|
|
|
180
|
+
### Relationship Quick View (Presentation and Edit Modes)
|
|
181
|
+
|
|
182
|
+
Fields backed by `field.quickView`, `x-ui.resourceReference` or `x-ui.optionSource.detail` materialize the canonical `@praxisui/core` Resource Quick View with mode-aware ergonomics:
|
|
183
|
+
|
|
184
|
+
- **View / Presentation mode (`FieldShellComponent`)**: attaches `[praxisQuickView]` directly to `.praxis-presentation__value` with `hover-and-click` trigger semantics when a foreign-key scalar or selection object is present.
|
|
185
|
+
- **Edit / Create mode (`MaterialAsyncSelectComponent` & `InlineEntityLookupComponent`)**: renders an explicit suffix action button (`triggerMode: 'explicit-button'`, `data-testid="async-select-quick-view-action"` / `data-testid="entity-lookup-quick-view-action"`) enabled only when a valid target ID is selected (`actions.showQuickView !== false`). Hovering the input never opens a competing popover over the dropdown or lookup dialog. In `EntityLookupDialogComponent`, each result row also exposes an explicit Quick View preview action (`data-testid="entity-lookup-dialog-quick-view-action"`). Changing or clearing the selection automatically dismisses any open Quick View overlay.
|
|
186
|
+
|
|
180
187
|
## Inline Filters
|
|
181
188
|
|
|
182
189
|
The package also exports inline field components for compact filter and toolbar experiences, including inline text, select, async select, entity lookup, numeric, currency, date, date range, time, rating, and specialized business filters.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-
|
|
3
|
+
"generatedAt": "2026-11-01T13:59:56.156Z",
|
|
4
4
|
"packageName": "@praxisui/dynamic-fields",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.42",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 76,
|
|
@@ -44,7 +44,7 @@ keywords:
|
|
|
44
44
|
- "inline*"
|
|
45
45
|
- "alwaysVisibleFields"
|
|
46
46
|
- "clearButton"
|
|
47
|
-
last_updated: "2026-
|
|
47
|
+
last_updated: "2026-10-27"
|
|
48
48
|
---
|
|
49
49
|
|
|
50
50
|
# Dynamic Fields Inline Components Guide
|
|
@@ -165,9 +165,9 @@ Exemplo mínimo (quick clear explícito para os 3 inline especiais):
|
|
|
165
165
|
a declaracao semantica canonica.
|
|
166
166
|
- `inlineToggle`: toggle booleano compacto em pill, com `clear` para voltar a estado neutro (`null`); quando o host limitar sua largura, o label usa ellipsis real e preserva a leitura integral no tooltip.
|
|
167
167
|
- `inlineRange`: chip compacto + popover com slider, suportando `rangeSlider` em modo `single` e `range`, inputs numéricos opcionais (`showInputs`), labels/marks declarativos, value labels, histograma/distribuição e presets rápidos (`quickPresets` / `quickPresetsAuto`).
|
|
168
|
-
- `inlinePeriodRange`: faixa
|
|
169
|
-
- `inlineYearRange`:
|
|
170
|
-
- `inlineMonthRange`:
|
|
168
|
+
- `inlinePeriodRange`: faixa compacta de períodos identificados por strings, cobrindo `month`, `quarter`, `year` e `fiscal-year`, com valor `[periodoInicial, periodoFinal]` e presets específicos por período.
|
|
169
|
+
- `inlineYearRange`: faixa numérica de anos, com grade paginada e valor `{ start: 2024, end: 2026 }`; aceita também `[2024, 2026]` na hidratação.
|
|
170
|
+
- `inlineMonthRange`: faixa numérica de meses (`1..12`), com grade de meses e valor `{ start: 1, end: 6 }`; aceita também `[1, 6]` na hidratação. Os dois controles possuem wrappers próprios no registry e não são convertidos para `inlinePeriodRange`.
|
|
171
171
|
- `inlineDate`: datepicker compacto em pill, com largura automática por conteúdo, placeholder inline, seleção rápida direta por `Ano` ou `Mês/Ano` via `defaultGranularity` (`'day' | 'month' | 'year'`) e confirmação explícita opcional via `inlineOverlay`.
|
|
172
172
|
- `inlineDateRange`: intervalo de datas compacto em pill, com largura adaptativa por conteúdo, seletor integrado de granularidade no overlay (`Dia | Mês/Ano | Ano` com seleção rápida em 2 cliques, atalhos de 1 clique para trimestres/semestres/ano na visão `Mês/Ano` e horizontes plurianuais na visão `Ano`, título semântico inteligente no resumo de confirmação e `defaultGranularity` opcional) e bloqueio de emissão parcial durante a seleção em duas etapas (propaga ao `FormControl` apenas quando ambos os limites estão preenchidos ou limpos). Em barras corporativas densas, toda a área acionável do chip deve abrir o calendário, inclusive o texto de início/fim; o `clearButton` é a única ação isolada para limpar sem abrir o overlay.
|
|
173
173
|
- `inlineTime`: timepicker compacto em pill, com largura adaptativa por conteúdo e modos `list|columns|auto`.
|
|
@@ -192,8 +192,8 @@ Compatibilidade de mapeamento no `praxis-filter`:
|
|
|
192
192
|
- `numericTextBox` -> `inlineNumber`.
|
|
193
193
|
- `currency` -> `inlineCurrency`.
|
|
194
194
|
- `priceRange` -> `inlineCurrencyRange`.
|
|
195
|
-
- `year + mode=range` -> `
|
|
196
|
-
- `month + mode=range` -> `
|
|
195
|
+
- `year + mode=range` -> `inlineYearRange` por padrão quando a variante inline de range estiver ativa, preservando o valor numérico.
|
|
196
|
+
- `month + mode=range` -> `inlineMonthRange` por padrão quando a variante inline de range estiver ativa, preservando o valor numérico. Um `controlType` explícito `inlineYearRange` ou `inlineMonthRange` mantém sua identidade.
|
|
197
197
|
- `multiSelect` -> `inlineMultiSelect`.
|
|
198
198
|
- `date/dateInput/datepicker` -> `inlineDate` por padrão (desative via `useInlineDateVariant=false`).
|
|
199
199
|
- `dateRange/daterange` -> `inlineDateRange` por padrão (desative via `useInlineDateRangeVariant=false`).
|
|
@@ -273,9 +273,9 @@ Esta seção formaliza o contrato único de metadata para todos os inline do `pr
|
|
|
273
273
|
| `inlineCurrencyRange` | `price-range.config.ts` | — | slider + inputs + resumo monetário | `registrado por default no runtime inline` |
|
|
274
274
|
| `inlineToggle` | `toggle.config.ts` | — | estado neutro com clear opcional | `registrado por default no runtime inline` |
|
|
275
275
|
| `inlineRange` | `range-slider.config.ts` | — | single/range com presets | `registrado por default no runtime inline` |
|
|
276
|
-
| `inlinePeriodRange` | `range-slider.config.ts` | `
|
|
277
|
-
| `inlineYearRange` | `range-slider.config.ts` | `
|
|
278
|
-
| `inlineMonthRange` | `range-slider.config.ts` | `
|
|
276
|
+
| `inlinePeriodRange` | `range-slider.config.ts` | `eixo de períodos identificados por strings` | granularidades `month`, `quarter`, `year`, `fiscal-year`; valor `[string, string]` | `registrado por default; use quando o contrato consumir períodos` |
|
|
277
|
+
| `inlineYearRange` | `range-slider.config.ts` | `wrapper de faixa numérica de anos` | `mode: 'range'`, `selectionGrid: 'year'`, slider oculto por padrão | `registrado por default; preserva limites numéricos de anos` |
|
|
278
|
+
| `inlineMonthRange` | `range-slider.config.ts` | `wrapper de faixa numérica de meses` | `mode: 'range'`, `selectionGrid: 'month'`, limites `1..12`, slider oculto por padrão | `registrado por default; preserva limites numéricos de meses` |
|
|
279
279
|
| `inlineDate` | `date.config.ts` | — | datepicker inline (`day`/`month`/`year`) + `inlineChipDisplay` + `inlineOverlay` | `registrado por default no runtime inline` |
|
|
280
280
|
| `inlineDateRange` | `date-range.config.ts` | — | range (`day`/`month`/`year`) + presets + `inlineChipDisplay` + `inlineOverlay.applyMode` | `registrado por default no runtime inline` |
|
|
281
281
|
| `inlineTime` | `time-picker.config.ts` | — | modo `auto/list/columns`; toggle e selected icon metadata-driven | `registrado por default no runtime inline` |
|
|
@@ -37,7 +37,7 @@ keywords:
|
|
|
37
37
|
- "single value vs range"
|
|
38
38
|
- "local vs remoto"
|
|
39
39
|
- "compact toolbar"
|
|
40
|
-
last_updated: "2026-
|
|
40
|
+
last_updated: "2026-10-27"
|
|
41
41
|
---
|
|
42
42
|
|
|
43
43
|
# Dynamic Fields Inline Filter Selection Guide
|
|
@@ -355,7 +355,9 @@ Motivo:
|
|
|
355
355
|
|
|
356
356
|
Use isto:
|
|
357
357
|
|
|
358
|
-
- `inlineDateRange` (com `defaultGranularity: "day" | "month" | "year"` e `shortcuts` corporativos)
|
|
358
|
+
- `inlineDateRange` (com `defaultGranularity: "day" | "month" | "year"` e `shortcuts` corporativos) quando o contrato consumir datas (`startDate`/`endDate`).
|
|
359
|
+
- `inlineYearRange` ou `inlineMonthRange` quando o contrato consumir limites numéricos de anos ou meses (`{ start, end }`; meses de `1..12`).
|
|
360
|
+
- `inlinePeriodRange` quando o contrato consumir identificadores de períodos em uma tupla `[string, string]`.
|
|
359
361
|
|
|
360
362
|
Evite isto:
|
|
361
363
|
|
|
@@ -365,6 +367,7 @@ Evite isto:
|
|
|
365
367
|
Motivo:
|
|
366
368
|
|
|
367
369
|
- filtros analiticos precisam deixar claro o recorte final enviado ao backend; se a plataforma nao fecha essa traducao canonicamente, o preset relativo cria opacidade
|
|
370
|
+
- os controles numéricos de ano/mês possuem wrappers próprios no registry; `praxis-filter` preserva seus `controlType` explícitos e promove `year`/`month` com `mode: "range"` para essas variantes quando o range inline está ativo. Essa promoção não converte números em datas nem em strings de períodos. A forma final do DTO HTTP continua pertencendo ao contrato de filtro do backend.
|
|
368
371
|
|
|
369
372
|
#### Hierarquia organizacional
|
|
370
373
|
|