@praxisui/dynamic-fields 10.0.0-rc.32 → 10.0.0-rc.34
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/ai/component-registry.json +20863 -1135
- package/docs/dynamic-fields-inline-filter-runtime-contract.md +37 -5
- package/fesm2022/praxisui-dynamic-fields.mjs +3381 -640
- package/package.json +4 -4
- package/src/lib/components/inline-currency-range/pdx-inline-currency-range.json-api.md +3 -2
- package/src/lib/components/inline-date/pdx-inline-date.json-api.md +1 -0
- package/src/lib/components/inline-number/pdx-inline-number.json-api.md +70 -48
- package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +2 -0
- package/src/lib/components/number-input/pdx-number-input.json-api.md +14 -8
- package/types/praxisui-dynamic-fields.d.ts +141 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/dynamic-fields",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.34",
|
|
4
4
|
"description": "Angular Material-based dynamic form fields for Praxis UI with lazy loading and metadata-driven rendering.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
"@angular/platform-browser": "^21.0.0",
|
|
12
12
|
"@angular/router": "^21.0.0",
|
|
13
13
|
"rxjs": "^7.8.0",
|
|
14
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
15
|
-
"@praxisui/dialog": "^10.0.0-rc.
|
|
16
|
-
"@praxisui/cron-builder": "^10.0.0-rc.
|
|
14
|
+
"@praxisui/core": "^10.0.0-rc.34",
|
|
15
|
+
"@praxisui/dialog": "^10.0.0-rc.34",
|
|
16
|
+
"@praxisui/cron-builder": "^10.0.0-rc.34"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"libphonenumber-js": "^1.12.41",
|
|
@@ -326,11 +326,12 @@ Resumo de composicao deste componente:
|
|
|
326
326
|
- `Parcial`: parte de mensagens via `validators` e contrato amplo herdado.
|
|
327
327
|
|
|
328
328
|
### 4. Mapeamento de Comportamento
|
|
329
|
-
- Valor interno e sincronizado em `rangeGroup` com `minPrice/maxPrice
|
|
329
|
+
- Valor interno e sincronizado em `rangeGroup` com `minPrice/maxPrice`, aceitando tanto `{ minPrice, maxPrice }` / `{ start, end }` quanto tuplas `[minPrice, maxPrice]` na hidratação inicial ou de filtros salvos.
|
|
330
|
+
- No gatilho compacto (pill), o ícone padrão de fallback (`attach_money`) é exibido apenas em estado vazio; quando há seleção ativa já formatada com o símbolo monetário (ex.: `R$ 6.500 - R$ 15.000`), o ícone padrão é omitido para evitar redundância visual (`$ R$`), a menos que `metadata.prefixIcon` ou `metadata.icon` tenha sido configurado explicitamente.
|
|
330
331
|
- Selecao respeita clamp por min/max e snap por `step`; ticks adaptativos e `marks` sao orientacao visual independente. Indicadores discretos colidentes sao combinados e indicadores de borda sao reposicionados sem alterar o valor ou a acessibilidade dos thumbs.
|
|
331
332
|
- Distribuicao calcula visual adaptativo (altura, gap, opacidade, agregacao de bins).
|
|
332
333
|
- `clearButton` limpa ambos os extremos com quick-clear no trigger.
|
|
333
|
-
- `inlineOverlay.actions.*` materializa ações do painel com tokens de tema e precedência sobre defaults i18n (`inlineCurrencyRange.actions.*`); `applyMode="auto"` comita durante a interação e oculta Cancelar.
|
|
334
|
+
- `inlineOverlay.actions.*` materializa ações do painel com tokens de tema (`--pdx-inline-chip-bg-active` / `--md-sys-color-primary`) e precedência sobre defaults i18n (`inlineCurrencyRange.actions.*`); `applyMode="auto"` comita durante a interação e oculta Cancelar.
|
|
334
335
|
|
|
335
336
|
### 5. Exemplo Minimo (JSON + Uso)
|
|
336
337
|
```json
|
|
@@ -221,6 +221,7 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
221
221
|
- Fora de cobertura confirmada: caminhos internos, experimentais ou aliases nao enumerados formalmente.
|
|
222
222
|
- Com `metadata.inlineOverlay.applyMode: "explicit"`, o componente projeta `mat-datepicker-actions`; `Aplicar` confirma a data selecionada e `Cancelar`, `Esc` ou fechamento externo descartam a seleção pendente conforme semântica nativa do Angular Material.
|
|
223
223
|
- Labels, aria-labels, `appearance` e `colorRole` do rodapé devem vir de `metadata.inlineOverlay.actions.apply` e `metadata.inlineOverlay.actions.cancel`, materializando tokens do tema em vez de CSS ad hoc do host.
|
|
224
|
+
- O painel de calendário (`panelClass="pdx-datepicker-panel pdx-inline-date-panel"`) respeita a camada de popup (`--praxis-layer-popup`, default `1400`), dimensiona o container e `<mat-calendar>` de forma coesa via `--pdx-inline-date-overlay-w` (default `344px`, limitado a `calc(100vw - 24px)`) sem interferência cruzada com `pdx-inline-date-range`, e reposiciona o `OverlayRef` ao injetar a barra de atalhos rápidos em modo `auto`.
|
|
224
225
|
|
|
225
226
|
### Editor and tooling notes
|
|
226
227
|
|
|
@@ -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 |
|
|
110
|
-
| `metadata.min` | number | false |
|
|
111
|
-
| `metadata.max` | number | false |
|
|
112
|
-
| `metadata.step` | number | false |
|
|
113
|
-
| `metadata.inputMode` | string | false |
|
|
114
|
-
| `metadata.numberFormat.percentage` |
|
|
115
|
-
| `metadata.
|
|
116
|
-
| `metadata.
|
|
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-
|
|
137
|
-
| `readonlyMode` | Override de readonly no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-
|
|
138
|
-
| `disabledMode` | Override de disabled no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-
|
|
139
|
-
| `visible` | Override de visibilidade no host/runtime | false | override | runtime linkage verified for core flows (component specs, 2026-
|
|
140
|
-
| `presentationMode` | Renderizacao de apresentacao sem interacao | false | override | runtime linkage verified for core flows (component specs, 2026-
|
|
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 |
|
|
147
|
-
| `metadata.max` | number | false |
|
|
148
|
-
| `metadata.step` | number | false |
|
|
149
|
-
| `metadata.inputMode` | string | false |
|
|
150
|
-
| `metadata.numberFormat.percentage` |
|
|
151
|
-
| `metadata.
|
|
152
|
-
| `metadata.
|
|
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
|
|
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
|
|
304
|
-
-
|
|
305
|
-
|
|
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
|
-
"
|
|
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
|
|
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
|
|
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 |
|
|
377
|
-
| `metadata.min` | number | false |
|
|
378
|
-
| `metadata.max` | number | false |
|
|
379
|
-
| `metadata.step` | number | false |
|
|
380
|
-
| `metadata.inputMode` | string | false |
|
|
381
|
-
| `metadata.numberFormat.percentage` |
|
|
382
|
-
| `metadata.
|
|
383
|
-
| `metadata.
|
|
384
|
-
| `
|
|
385
|
-
| `
|
|
386
|
-
| `
|
|
387
|
-
| `
|
|
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
|
-
|
|
|
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
|
|
|
@@ -284,6 +284,8 @@ Use quando precisar:
|
|
|
284
284
|
| Caminho JSON | Tipo | Status | Comportamento em runtime |
|
|
285
285
|
| --- | --- | --- | --- |
|
|
286
286
|
| `metadata.mode` | `'single'\|'range'` | Ativo | Define slider unico ou com dois thumbs. |
|
|
287
|
+
| `metadata.selectionGrid` | `boolean \| 'year' \| 'month'` | Ativo | Renderiza grade interativa clicavel (paginada para anos ou 12 celulas `Jan..Dez` para meses) com selecao single em 1 clique ou range em 2 cliques. |
|
|
288
|
+
| `metadata.showSlider` | `boolean` | Ativo | Controla exibicao da trilha do slider continuo no overlay (`false` por padrao quando `selectionGrid` esta ativo, salvo override explicito). |
|
|
287
289
|
| `metadata.min/max/step` | `number` | Ativo | Limites e granularidade da selecao. |
|
|
288
290
|
| `metadata.minDistance/maxDistance` | `number` | Ativo | Validacao de distancia entre extremos no range. |
|
|
289
291
|
| `metadata.discrete` | `boolean` | Ativo | Modo discreto no slider material. |
|
|
@@ -305,9 +305,13 @@ Fontes: `projects/praxis-dynamic-fields/src/lib/components/number-input/number-i
|
|
|
305
305
|
| `metadata.label` | `string` | - | Sim | Rotulo exibido no `mat-label`. | `projects/praxis-core/src/lib/models/component-metadata.interface.ts` |
|
|
306
306
|
| `metadata.controlType` | `"numericTextBox"` | - | Sim | Tipo canonico para resolver o componente numerico. | `projects/praxis-core/src/lib/models/material-field-metadata.interface.ts`, `projects/praxis-core/src/lib/metadata/field-control-type.constants.ts` |
|
|
307
307
|
| `metadata.inputType` | `"number"` | - | Sim | Tipo HTML do input (fixo para contrato numerico). | `projects/praxis-core/src/lib/models/material-field-metadata.interface.ts` |
|
|
308
|
-
| `metadata.min` | `number` | none | Nao | Aplica `[min]` no input e `Validators.min
|
|
309
|
-
| `metadata.max` | `number` | none | Nao | Aplica `[max]` no input e `Validators.max
|
|
310
|
-
| `metadata.step` | `number` | default do browser | Nao | Aplica granularidade de incremento no input nativo. | `projects/praxis-dynamic-fields/src/lib/components/number-input/number-input.component.ts` |
|
|
308
|
+
| `metadata.min` | `number` | none (`0` em modo percentual) | Nao | Aplica `[min]` no input e `Validators.min` (aceita aliases `minimum` e `numericMin`). | `projects/praxis-dynamic-fields/src/lib/components/number-input/number-input.component.ts` |
|
|
309
|
+
| `metadata.max` | `number` | none (`100` em modo percentual) | Nao | Aplica `[max]` no input e `Validators.max` (aceita aliases `maximum` e `numericMax`). | `projects/praxis-dynamic-fields/src/lib/components/number-input/number-input.component.ts` |
|
|
310
|
+
| `metadata.step` | `number` | default do browser (`1` em modo percentual) | Nao | Aplica granularidade de incremento no input nativo e no Percent Studio (aceita alias `numericStep`). | `projects/praxis-dynamic-fields/src/lib/components/number-input/number-input.component.ts` |
|
|
311
|
+
| `metadata.numericFormat` | `'integer' \| 'decimal' \| 'currency' \| 'scientific' \| 'percent'` | none | Nao | Quando `'percent'` (ou `'percentage'`), ativa a experiencia Percent Studio (micro-ring interativo, sufixo `%`, barra deslizante, quartis/presets e steppers). | `projects/praxis-dynamic-fields/src/lib/components/number-input/number-input.component.ts`, `projects/praxis-dynamic-fields/src/lib/utils/inline-percentage-presentation.util.ts` |
|
|
312
|
+
| `metadata.numberFormat.percentage` | `boolean` | `false` | Nao | Alternativa canonica em `MaterialNumericMetadata.numberFormat` (`percentage: true` ou `style: 'percent'`) para ativar o modo percentual. | `projects/praxis-core/src/lib/models/material-field-metadata.interface.ts` |
|
|
313
|
+
| `metadata.showPercentStudio` | `boolean` | `true` (quando percentual) | Nao | Exibe ou oculta a barra Percent Studio abaixo do campo mantendo o micro-ring e sufixo `%` quando `false`. | `projects/praxis-dynamic-fields/src/lib/components/number-input/number-input.component.ts` |
|
|
314
|
+
| `metadata.percentPresets` | `Array<number \| { label?: string; value: number }>` | quartis (`[0, 25, 50, 75, 100]`) | Nao | Lista de atalhos rapidos na barra Percent Studio (aceita tambem `quickPresets`). | `projects/praxis-dynamic-fields/src/lib/components/number-input/number-input.component.ts` |
|
|
311
315
|
| `metadata.clearButton` | `object` | none | Nao | Botao de limpar com regras `enabled`/`showOnlyWhenFilled`. | `projects/praxis-dynamic-fields/src/lib/components/number-input/number-input.component.ts`, `projects/praxis-core/src/lib/models/material-field-metadata.interface.ts` |
|
|
312
316
|
| `readonlyMode` | `boolean` | `false` | Nao | Override de somente leitura via `computeEffectiveState`. | `projects/praxis-dynamic-fields/src/lib/components/number-input/number-input.component.ts`, `projects/praxis-dynamic-fields/src/lib/utils/field-state.util.ts` |
|
|
313
317
|
| `disabledMode` | `boolean` | `false` | Nao | Override de desabilitado para host/UI. | `projects/praxis-dynamic-fields/src/lib/components/number-input/number-input.component.ts` |
|
|
@@ -320,12 +324,11 @@ Fontes: `projects/praxis-dynamic-fields/src/lib/components/number-input/number-i
|
|
|
320
324
|
- Ordenacao: nao se aplica.
|
|
321
325
|
- Selecao: valor numerico unico.
|
|
322
326
|
- Eventos: `validationChange` + fluxo CVA/form para valor.
|
|
323
|
-
- Renderizacao: `mat-form-field` com input numerico, hint/erro, icones opcionais e
|
|
327
|
+
- Renderizacao: `mat-form-field` com input numerico, hint/erro, icones opcionais, clear button e, quando `numericFormat: "percent"` ou `numberFormat.percentage: true`, o **Percent Studio** (micro-ring proporcional no prefixo, badge `%` no sufixo, barra deslizante `role="slider"`, pills de presets e steppers `-5% / -1% / +1% / +5%`).
|
|
324
328
|
|
|
325
329
|
Resumo de cobertura (lente corporativa):
|
|
326
|
-
- `Ativo`: `min
|
|
327
|
-
- `Parcial`: o componente garante validacao de numero decimal basica (
|
|
328
|
-
- `Schema-only no runtime atual`: blocos de `numberFormat` em `MaterialNumericMetadata` nao sao renderizados diretamente por este componente.
|
|
330
|
+
- `Ativo`: `min` (`minimum`/`numericMin`), `max` (`maximum`/`numericMax`), `step` (`numericStep`), `numericFormat: 'percent'`, `numberFormat.percentage`, `showPercentStudio`, `percentPresets` (`quickPresets`), `clearButton`, estados de host e `validationChange`.
|
|
331
|
+
- `Parcial`: o componente garante validacao de numero decimal basica (`^-?\d*(\.\d+)?$`); cenarios regionais (virgula decimal) exigem estrategia adicional de parsing/formatacao.
|
|
329
332
|
|
|
330
333
|
### 4. Exemplo Minimo (JSON + Uso)
|
|
331
334
|
```json
|
|
@@ -350,6 +353,9 @@ Uso: host resolve o componente e renderiza campo numerico basico.
|
|
|
350
353
|
"label": "Desconto (%)",
|
|
351
354
|
"controlType": "numericTextBox",
|
|
352
355
|
"inputType": "number",
|
|
356
|
+
"numericFormat": "percent",
|
|
357
|
+
"showPercentStudio": true,
|
|
358
|
+
"percentPresets": [0, 5, 10, 15, 30],
|
|
353
359
|
"required": true,
|
|
354
360
|
"min": 0,
|
|
355
361
|
"max": 30,
|
|
@@ -372,7 +378,7 @@ Uso: host resolve o componente e renderiza campo numerico basico.
|
|
|
372
378
|
"presentationMode": false
|
|
373
379
|
}
|
|
374
380
|
```
|
|
375
|
-
Uso: campo numerico com validacao de faixa, hint e clear button contextual.
|
|
381
|
+
Uso: campo numerico percentual com Percent Studio interativo, validacao de faixa, presets customizados, hint e clear button contextual.
|
|
376
382
|
|
|
377
383
|
### 6. Problemas Comuns e Armadilhas
|
|
378
384
|
1. `controlType` incorreto no JSON.
|
|
@@ -1128,6 +1128,14 @@ interface SelectOption<T = any> {
|
|
|
1128
1128
|
disabled?: boolean;
|
|
1129
1129
|
/** Optional supporting text rendered by components that expose rich option content */
|
|
1130
1130
|
description?: string;
|
|
1131
|
+
/** Optional icon rendered alongside the option */
|
|
1132
|
+
icon?: string;
|
|
1133
|
+
/** Optional technical code or endpoint path rendered in monospace */
|
|
1134
|
+
code?: string;
|
|
1135
|
+
/** Optional badge or group tag rendered next to the label */
|
|
1136
|
+
badge?: string;
|
|
1137
|
+
/** Optional keywords indexed for client-side search */
|
|
1138
|
+
searchTerms?: string[];
|
|
1131
1139
|
}
|
|
1132
1140
|
/**
|
|
1133
1141
|
* Metadata configuration for simple select components.
|
|
@@ -2448,27 +2456,68 @@ declare class MaterialTextareaComponent extends SimpleBaseInputComponent impleme
|
|
|
2448
2456
|
* Specialized input component for HTML number inputs.
|
|
2449
2457
|
*
|
|
2450
2458
|
* Renders a `<mat-form-field>` containing an `<input type="number">` element
|
|
2451
|
-
* with basic validation and hint support
|
|
2452
|
-
*
|
|
2453
|
-
*
|
|
2459
|
+
* with basic validation and hint support, plus an integrated **Percent Studio**
|
|
2460
|
+
* experience (micro-ring gauge, `%` unit badge, interactive liquid rail, quartile
|
|
2461
|
+
* preset pills, and `-5% / -1% / +1% / +5%` steppers) when percentage presentation
|
|
2462
|
+
* is detected in field metadata (`numericFormat: 'percent'`, `format: 'percent'`, etc.).
|
|
2454
2463
|
*/
|
|
2455
2464
|
declare class NumberInputComponent extends SimpleBaseInputComponent {
|
|
2465
|
+
private static readonly PERCENT_MIN_DEFAULT;
|
|
2466
|
+
private static readonly PERCENT_MAX_DEFAULT;
|
|
2467
|
+
private static readonly PERCENT_STEP_DEFAULT;
|
|
2456
2468
|
/** Emits whenever validation state changes. */
|
|
2457
2469
|
readonly validationChange: _angular_core.OutputEmitterRef<ValidationErrors | null>;
|
|
2458
2470
|
private readonly numberPatternValidator;
|
|
2459
2471
|
private minValidator;
|
|
2460
2472
|
private maxValidator;
|
|
2473
|
+
private activePointerCleanup;
|
|
2461
2474
|
readonlyMode: boolean;
|
|
2462
2475
|
disabledMode: boolean;
|
|
2463
2476
|
visible: boolean;
|
|
2464
2477
|
presentationMode: boolean;
|
|
2465
2478
|
isReadonlyEffective(): boolean;
|
|
2466
2479
|
ngOnInit(): void;
|
|
2480
|
+
onComponentDestroy(): void;
|
|
2467
2481
|
validateField(): Promise<ValidationErrors | null>;
|
|
2468
2482
|
protected getSpecificCssClasses(): string[];
|
|
2469
2483
|
errorStateMatcher(): _angular_material_core.ErrorStateMatcher;
|
|
2470
2484
|
/** Applies component metadata with strong typing. */
|
|
2471
2485
|
setInputMetadata(metadata: MaterialNumericMetadata): void;
|
|
2486
|
+
protected setMetadata(metadata: ComponentMetadata): void;
|
|
2487
|
+
protected onActiveControlChanged(previousControl: FormControl, _currentControl: FormControl): void;
|
|
2488
|
+
usesPercentFormatting(meta?: MaterialNumericMetadata | null): boolean;
|
|
2489
|
+
showPercentStudioBar(): boolean;
|
|
2490
|
+
hasNumericSelection(): boolean;
|
|
2491
|
+
currentNumericValue(): number | null;
|
|
2492
|
+
effectiveMinValue(meta?: MaterialNumericMetadata | null): number | null;
|
|
2493
|
+
effectiveMaxValue(meta?: MaterialNumericMetadata | null): number | null;
|
|
2494
|
+
effectiveStepValue(meta?: MaterialNumericMetadata | null): number | null;
|
|
2495
|
+
percentFillWidth(): number;
|
|
2496
|
+
percentAngle(): number;
|
|
2497
|
+
percentPresetItems(): Array<{
|
|
2498
|
+
id: string;
|
|
2499
|
+
label: string;
|
|
2500
|
+
value: number;
|
|
2501
|
+
}>;
|
|
2502
|
+
percentPresets(): number[];
|
|
2503
|
+
isPercentPresetActive(preset: number): boolean;
|
|
2504
|
+
applyPercentPreset(preset: number, event?: Event): void;
|
|
2505
|
+
stepPercentBy(delta: number, event?: Event): void;
|
|
2506
|
+
onPercentSliderKeydown(event: KeyboardEvent): void;
|
|
2507
|
+
onPercentRingPointerDown(event: PointerEvent): void;
|
|
2508
|
+
onPercentRailPointerDown(event: PointerEvent, railElement: HTMLElement): void;
|
|
2509
|
+
percentRingAriaLabel(): string;
|
|
2510
|
+
percentRingTooltip(): string;
|
|
2511
|
+
percentStudioAriaLabel(): string;
|
|
2512
|
+
percentSliderAriaLabel(): string;
|
|
2513
|
+
percentStepDecreaseTitle(step: number): string;
|
|
2514
|
+
percentStepIncreaseTitle(step: number): string;
|
|
2515
|
+
private decimalPlacesFromStep;
|
|
2516
|
+
private commitInteractiveNumber;
|
|
2517
|
+
private clearActivePointerListeners;
|
|
2518
|
+
private percentRatio;
|
|
2519
|
+
private resolveFiniteNumber;
|
|
2520
|
+
private resolvePositiveFiniteNumber;
|
|
2472
2521
|
private applyNumericValidators;
|
|
2473
2522
|
showClear(): boolean;
|
|
2474
2523
|
onClearClick(): void;
|
|
@@ -2801,6 +2850,7 @@ declare class MaterialSelectComponent extends SimpleBaseSelectComponent {
|
|
|
2801
2850
|
selectEmptyOption(): void;
|
|
2802
2851
|
onOptionKeydown(event: KeyboardEvent): void;
|
|
2803
2852
|
hasSelectionValue(): boolean;
|
|
2853
|
+
selectedOption(): SelectOption<unknown> | undefined;
|
|
2804
2854
|
materialDisplayText(): string;
|
|
2805
2855
|
materialFullDisplayText(): string;
|
|
2806
2856
|
materialTriggerTooltip(): string | null;
|
|
@@ -2832,6 +2882,10 @@ declare class InlineSelectComponent extends SimpleBaseSelectComponent {
|
|
|
2832
2882
|
private metadataRecord;
|
|
2833
2883
|
private asRecord;
|
|
2834
2884
|
private mapRawOption;
|
|
2885
|
+
optionIcon(option: SelectOption<unknown> | null | undefined): string;
|
|
2886
|
+
optionColor(option: SelectOption<unknown> | null | undefined): string | undefined;
|
|
2887
|
+
selectedOptionIcon(): string;
|
|
2888
|
+
selectedOptionColor(): string | undefined;
|
|
2835
2889
|
setSelectMetadata(metadata: SimpleSelectMetadata<unknown>): void;
|
|
2836
2890
|
protected setMetadata(metadata: MaterialSelectMetadata): void;
|
|
2837
2891
|
onComponentInit(): void;
|
|
@@ -2977,7 +3031,9 @@ declare class InlineSearchableSelectComponent extends MaterialSearchableSelectCo
|
|
|
2977
3031
|
protected getSpecificCssClasses(): string[];
|
|
2978
3032
|
hasSelection(): boolean;
|
|
2979
3033
|
selectedCount(): number;
|
|
3034
|
+
private maxVisibleSelectedChips;
|
|
2980
3035
|
additionalSelectedCount(): number;
|
|
3036
|
+
hiddenSelectedLabelsTitle(): string;
|
|
2981
3037
|
displayText(): string;
|
|
2982
3038
|
showQuickClear(): boolean;
|
|
2983
3039
|
onTriggerIconMouseDown(event: MouseEvent): void;
|
|
@@ -3226,7 +3282,9 @@ declare class InlineAsyncSelectComponent extends MaterialAsyncSelectComponent {
|
|
|
3226
3282
|
usesSearchCombobox(): boolean;
|
|
3227
3283
|
hasSelection(): boolean;
|
|
3228
3284
|
selectedCount(): number;
|
|
3285
|
+
private maxVisibleSelectedChips;
|
|
3229
3286
|
additionalSelectedCount(): number;
|
|
3287
|
+
hiddenSelectedLabelsTitle(): string;
|
|
3230
3288
|
displayText(): string;
|
|
3231
3289
|
showQuickClear(): boolean;
|
|
3232
3290
|
onTriggerIconMouseDown(event: MouseEvent): void;
|
|
@@ -3764,6 +3822,8 @@ declare class InlineMultiSelectComponent extends SimpleBaseSelectComponent {
|
|
|
3764
3822
|
private committingPanelValue;
|
|
3765
3823
|
selectAllLabel(): string;
|
|
3766
3824
|
setSelectMetadata(metadata: SimpleSelectMetadata<unknown>): void;
|
|
3825
|
+
optionIcon(option: SelectOption<unknown> | null | undefined): string;
|
|
3826
|
+
optionColor(option: SelectOption<unknown> | null | undefined): string | undefined;
|
|
3767
3827
|
protected setMetadata(metadata: MaterialSelectMetadata): void;
|
|
3768
3828
|
onComponentInit(): void;
|
|
3769
3829
|
ngAfterViewInit(): void;
|
|
@@ -4014,11 +4074,15 @@ declare class InlineNumberComponent extends SimpleBaseInputComponent {
|
|
|
4014
4074
|
presentationMode: boolean;
|
|
4015
4075
|
inlineWidthPx: number;
|
|
4016
4076
|
inlineMaxWidthPx: number;
|
|
4077
|
+
percentPanelOpen: boolean;
|
|
4078
|
+
readonly percentOverlayPositions: ConnectedPosition[];
|
|
4017
4079
|
private resizeRafId;
|
|
4080
|
+
private activePointerCleanup;
|
|
4018
4081
|
private fieldLabelText;
|
|
4019
4082
|
private minValidator?;
|
|
4020
4083
|
private maxValidator?;
|
|
4021
4084
|
private readonly numberPatternValidator;
|
|
4085
|
+
private suppressNextRingClick;
|
|
4022
4086
|
private currentMetadata;
|
|
4023
4087
|
private metadataRecord;
|
|
4024
4088
|
private asRecord;
|
|
@@ -4027,17 +4091,42 @@ declare class InlineNumberComponent extends SimpleBaseInputComponent {
|
|
|
4027
4091
|
onComponentInit(): void;
|
|
4028
4092
|
ngAfterViewInit(): void;
|
|
4029
4093
|
onComponentDestroy(): void;
|
|
4094
|
+
private clearActivePointerListeners;
|
|
4030
4095
|
onViewportResize(): void;
|
|
4031
4096
|
protected getSpecificCssClasses(): string[];
|
|
4032
4097
|
leadingIconName(): string;
|
|
4033
4098
|
selectedFieldLabelText(): string;
|
|
4099
|
+
hasSelection(): boolean;
|
|
4034
4100
|
showPercentGraphicMode(): boolean;
|
|
4101
|
+
showPercentCompactMode(): boolean;
|
|
4035
4102
|
showPercentSuffix(): boolean;
|
|
4036
4103
|
percentDisplayText(): string;
|
|
4037
4104
|
percentRangeText(): string;
|
|
4038
4105
|
percentInputCh(): string | null;
|
|
4039
4106
|
percentAngle(): number;
|
|
4040
4107
|
percentFillWidth(): number;
|
|
4108
|
+
hostThemeAccentColor: string | null;
|
|
4109
|
+
hostThemeGradientStart: string | null;
|
|
4110
|
+
hostThemeGradientMid: string | null;
|
|
4111
|
+
hostThemeGradientEnd: string | null;
|
|
4112
|
+
hostThemeRailGradient: string | null;
|
|
4113
|
+
percentToneColor(): string;
|
|
4114
|
+
private refreshHostThemeTokens;
|
|
4115
|
+
percentToneLabel(): string;
|
|
4116
|
+
percentScaleLabels(): number[];
|
|
4117
|
+
percentPresets(): number[];
|
|
4118
|
+
isPercentPresetActive(preset: number): boolean;
|
|
4119
|
+
selectPercentPreset(preset: number, event?: Event): void;
|
|
4120
|
+
nudgePercent(delta: number, event?: Event): void;
|
|
4121
|
+
onPercentArrowStep(event: Event, direction: number): void;
|
|
4122
|
+
onPercentPageStep(event: Event, direction: number): void;
|
|
4123
|
+
onPercentBoundaryStep(event: Event, boundary: 'min' | 'max'): void;
|
|
4124
|
+
togglePercentPanel(event?: MouseEvent): void;
|
|
4125
|
+
closePercentPanel(): void;
|
|
4126
|
+
onPercentPanelOutsideClick(event: MouseEvent): void;
|
|
4127
|
+
onMiniRingPointerDown(event: PointerEvent): void;
|
|
4128
|
+
onPercentRailPointerDown(event: PointerEvent, railContainer?: HTMLElement): void;
|
|
4129
|
+
private applyInteractivePercentValue;
|
|
4041
4130
|
effectiveMinValue(): number | null;
|
|
4042
4131
|
effectiveMaxValue(): number | null;
|
|
4043
4132
|
effectiveStepValue(): number | null;
|
|
@@ -4064,7 +4153,7 @@ declare class InlineNumberComponent extends SimpleBaseInputComponent {
|
|
|
4064
4153
|
private resolveEffectiveMax;
|
|
4065
4154
|
private resolveEffectiveStep;
|
|
4066
4155
|
private defaultFieldLabel;
|
|
4067
|
-
|
|
4156
|
+
currentNumericValue(): number | null;
|
|
4068
4157
|
private percentRatio;
|
|
4069
4158
|
private formatCompactNumber;
|
|
4070
4159
|
private decimalPlacesFromStep;
|
|
@@ -4442,6 +4531,8 @@ declare class InlineRangeSliderComponent extends SimpleBaseInputComponent {
|
|
|
4442
4531
|
private sliderPointerDirection;
|
|
4443
4532
|
private lastTriggerElement;
|
|
4444
4533
|
private panelBaselineValue;
|
|
4534
|
+
private gridPageIndex;
|
|
4535
|
+
private pendingGridAnchor;
|
|
4445
4536
|
readonly singleDraftControl: FormControl<number | null>;
|
|
4446
4537
|
setInputMetadata(metadata: MaterialRangeSliderMetadata): void;
|
|
4447
4538
|
protected setMetadata(metadata: MaterialRangeSliderMetadata): void;
|
|
@@ -4455,6 +4546,18 @@ declare class InlineRangeSliderComponent extends SimpleBaseInputComponent {
|
|
|
4455
4546
|
minValue(): number;
|
|
4456
4547
|
maxValue(): number;
|
|
4457
4548
|
stepValue(): number;
|
|
4549
|
+
hostThemeAccentColor: string | null;
|
|
4550
|
+
hostThemeGradientStart: string | null;
|
|
4551
|
+
hostThemeGradientMid: string | null;
|
|
4552
|
+
hostThemeGradientEnd: string | null;
|
|
4553
|
+
hostThemeRailGradient: string | null;
|
|
4554
|
+
percentToneColor(): string | null;
|
|
4555
|
+
percentStartFill(usePanel?: boolean): number;
|
|
4556
|
+
percentEndFill(usePanel?: boolean): number;
|
|
4557
|
+
percentStartAngle(usePanel?: boolean): number;
|
|
4558
|
+
percentEndAngle(usePanel?: boolean): number;
|
|
4559
|
+
percentPanelSpanText(): string;
|
|
4560
|
+
private refreshHostThemeTokens;
|
|
4458
4561
|
showTickMarks(): boolean;
|
|
4459
4562
|
valueLabelEnabled(): boolean;
|
|
4460
4563
|
isRangeMode(): boolean;
|
|
@@ -4463,6 +4566,31 @@ declare class InlineRangeSliderComponent extends SimpleBaseInputComponent {
|
|
|
4463
4566
|
hasPanelSelection(): boolean;
|
|
4464
4567
|
showQuickClear(): boolean;
|
|
4465
4568
|
showInlineInputs(): boolean;
|
|
4569
|
+
selectionGridKind(): 'year' | 'month' | 'custom' | null;
|
|
4570
|
+
usesSelectionGrid(): boolean;
|
|
4571
|
+
showRangeSliderTrack(): boolean;
|
|
4572
|
+
private allGridCells;
|
|
4573
|
+
hasSelectionGridPagination(): boolean;
|
|
4574
|
+
selectionGridCells(): Array<{
|
|
4575
|
+
value: number;
|
|
4576
|
+
label: string;
|
|
4577
|
+
}>;
|
|
4578
|
+
canPrevGridPage(): boolean;
|
|
4579
|
+
canNextGridPage(): boolean;
|
|
4580
|
+
prevGridPage(event: MouseEvent): void;
|
|
4581
|
+
nextGridPage(event: MouseEvent): void;
|
|
4582
|
+
gridPageRangeLabel(): string;
|
|
4583
|
+
gridPrevPageAriaLabel(): string;
|
|
4584
|
+
gridNextPageAriaLabel(): string;
|
|
4585
|
+
isGridCellEndpoint(value: number): boolean;
|
|
4586
|
+
isGridCellInRange(value: number): boolean;
|
|
4587
|
+
isGridCellPendingAnchor(value: number): boolean;
|
|
4588
|
+
gridCellAriaLabel(cell: {
|
|
4589
|
+
value: number;
|
|
4590
|
+
label: string;
|
|
4591
|
+
}): string;
|
|
4592
|
+
onGridCellClick(value: number, event: MouseEvent): void;
|
|
4593
|
+
private syncGridPageToSelection;
|
|
4466
4594
|
showDistributionBars(): boolean;
|
|
4467
4595
|
distributionBars(): InlineRangeDistributionBar[];
|
|
4468
4596
|
distributionHeightPx(): number | null;
|
|
@@ -4574,7 +4702,7 @@ declare class InlineRangeSliderComponent extends SimpleBaseInputComponent {
|
|
|
4574
4702
|
private formatValue;
|
|
4575
4703
|
private numberFormatter;
|
|
4576
4704
|
private usesCurrencyFormatting;
|
|
4577
|
-
|
|
4705
|
+
usesPercentFormatting(): boolean;
|
|
4578
4706
|
private resetFormatterCache;
|
|
4579
4707
|
private normalizeDecimalPlaces;
|
|
4580
4708
|
private resetQuickPresetsCache;
|
|
@@ -4806,12 +4934,18 @@ interface InlineDateQuickPreset {
|
|
|
4806
4934
|
interface InlineDateRangeSelectionSummary {
|
|
4807
4935
|
ariaLabel: string;
|
|
4808
4936
|
description?: string;
|
|
4937
|
+
durationBadge?: string;
|
|
4809
4938
|
endLabel: string;
|
|
4939
|
+
endPending?: boolean;
|
|
4810
4940
|
endValue: string;
|
|
4941
|
+
icon: string;
|
|
4942
|
+
isPending: boolean;
|
|
4811
4943
|
rangeDescription: string;
|
|
4812
4944
|
startLabel: string;
|
|
4945
|
+
startPending?: boolean;
|
|
4813
4946
|
startValue: string;
|
|
4814
4947
|
title: string;
|
|
4948
|
+
tone?: 'neutral' | 'info' | 'success' | 'warning';
|
|
4815
4949
|
}
|
|
4816
4950
|
type InlineDateRangeGranularity = 'day' | 'month' | 'year';
|
|
4817
4951
|
interface InlineDateRangePeriodMonthCell {
|
|
@@ -4922,6 +5056,8 @@ declare class InlineDateRangeComponent extends MaterialDateRangeComponent {
|
|
|
4922
5056
|
shouldRenderSelectionSummary(): boolean;
|
|
4923
5057
|
overlayDraftHasCompleteRange(): boolean;
|
|
4924
5058
|
overlaySelectionSummary(): InlineDateRangeSelectionSummary;
|
|
5059
|
+
private resolveSelectionSummaryIcon;
|
|
5060
|
+
private resolveSelectionDurationBadge;
|
|
4925
5061
|
private resolveSemanticSelectionTitle;
|
|
4926
5062
|
inlineQuickPresetsApplyMode(): InlineDateQuickPresetApplyMode;
|
|
4927
5063
|
private inlineOverlayAction;
|