@praxisui/dynamic-fields 10.0.0-rc.8 → 10.0.0-rc.80
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 +35 -2
- package/ai/component-registry.json +93533 -1830
- package/docs/dynamic-fields-field-selection-guide.md +16 -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 +26660 -7361
- package/package.json +4 -4
- package/src/lib/base/pdx-base-input-runtime-contract.json-api.md +12 -12
- package/src/lib/base/pdx-base-select-runtime-contract.json-api.md +12 -12
- package/src/lib/components/color-picker/pdx-color-picker.json-api.md +16 -15
- package/src/lib/components/field-shell/praxis-field-shell.json-api.md +3 -3
- 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 +98 -33
- 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-selection-list/pdx-material-selection-list.json-api.md +44 -43
- 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 +1067 -38
|
@@ -21,8 +21,8 @@ source_of_truth:
|
|
|
21
21
|
- "projects/praxis-dynamic-fields/src/lib/components/inline-time-range/inline-time-range.component.ts"
|
|
22
22
|
- "projects/praxis-dynamic-fields/src/lib/components/pdx-material-time-range/pdx-material-time-range.component.ts"
|
|
23
23
|
- "projects/praxis-core/src/lib/models/material-time-range-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: true
|
|
38
38
|
has_known_mismatches: false
|
|
@@ -67,7 +67,7 @@ Este documento e a referencia canonica da API JSON de pdx-inline-time-range.
|
|
|
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-time-range/inline-time-range.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/pdx-material-time-range/pdx-material-time-range.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-core/src/lib/utils/inline-filter-controls.util.ts`, `projects/praxis-metadata-editor/src/lib/config/time-range.config.ts`, `inline-editor-coverage.spec.ts` |
|
|
71
71
|
| Path hygiene | `true` | Manter consistencia entre contrato canonico e caminhos documentados | Partial | 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-time-range.
|
|
|
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 | `true` | Segregar consistencia do contrato canonico |
|
|
101
101
|
| Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
|
|
102
102
|
|
|
@@ -109,11 +109,20 @@ Este documento e a referencia canonica da API JSON de pdx-inline-time-range.
|
|
|
109
109
|
| `metadata` | object | true | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
110
110
|
| `metadata.stepMinute` | unknown | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
111
111
|
| `metadata.interval` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
112
|
-
| `metadata.inlinePanelTitle` | string | false | n/a |
|
|
113
|
-
| `metadata.
|
|
114
|
-
| `metadata.
|
|
115
|
-
| `metadata.
|
|
116
|
-
| `metadata.
|
|
112
|
+
| `metadata.inlinePanelTitle` | string | false | n/a | Active | Custom panel header title (`Horario` default). |
|
|
113
|
+
| `metadata.inlinePanelIcon` | string | false | `"schedule"` | Active | Lowercase snake_case Material icon ligature for panel header badge. |
|
|
114
|
+
| `metadata.inlinePanelIconColor` | string | false | n/a | Active | Theme palette or CSS color for panel header icon badge. |
|
|
115
|
+
| `metadata.showAnchors` | `boolean \| "auto"` | false | `"auto"` | Active | Click-to-snap time anchors (`00:00`..`23:59`) below the slider track. |
|
|
116
|
+
| `metadata.showInlineInputs` | boolean | false | true | Active | Renders synchronized HH:mm inputs inside the popover. |
|
|
117
|
+
| `metadata.inputMinLabel` | string | false | n/a | Active | Custom label for start time inline input. |
|
|
118
|
+
| `metadata.inputMaxLabel` | string | false | n/a | Active | Custom label for end time inline input. |
|
|
119
|
+
| `metadata.sliderStep` | number | false | `stepMinute` | Active | Minute increment applied when dragging slider thumbs. |
|
|
120
|
+
| `metadata.shiftStep` | number | false | `60` | Active | Minute jump applied on `Shift+Arrow` / `PageUp` / `PageDown`. |
|
|
121
|
+
| `metadata.inlineTimeQuickPresets` | array | false | n/a | Active | Quick time-window preset buttons (array or JSON string). |
|
|
122
|
+
| `metadata.inlineTimeTrackShifts` | unknown | false | n/a | Active | Work-shift gradient segments painted along the slider track. |
|
|
123
|
+
| `metadata.inlineTrackShifts` | unknown | false | n/a | Partial | Alias for `inlineTimeTrackShifts`. |
|
|
124
|
+
| `metadata.validators.rangeMessage` | string | false | n/a | Active | Custom validation message for invalid time ranges. |
|
|
125
|
+
| `metadata.inlineAutoSize.*` | object | false | n/a | Active | Responsive trigger and popover width bounds. |
|
|
117
126
|
|
|
118
127
|
### Path audit
|
|
119
128
|
|
|
@@ -145,16 +154,24 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
145
154
|
|
|
146
155
|
| Path | Type | Required | Default | Constraints | Notes |
|
|
147
156
|
| --- | --- | --- | --- | --- | --- |
|
|
148
|
-
| `metadata.stepMinute` | unknown | false | n/a | component-defined |
|
|
157
|
+
| `metadata.stepMinute` | unknown | false | n/a | component-defined | Active; verify per source_of_truth. |
|
|
149
158
|
| `metadata.interval` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
150
|
-
| `metadata.inlinePanelTitle` | string | false | n/a | component-defined |
|
|
151
|
-
| `metadata.
|
|
152
|
-
| `metadata.
|
|
153
|
-
| `metadata.
|
|
154
|
-
| `metadata.
|
|
155
|
-
| `metadata.
|
|
156
|
-
| `metadata.
|
|
157
|
-
| `metadata.
|
|
159
|
+
| `metadata.inlinePanelTitle` | string | false | n/a | component-defined | Active; panel header title. |
|
|
160
|
+
| `metadata.inlinePanelIcon` | string | false | `"schedule"` | component-defined | Active; panel header icon ligature (`snake_case`). |
|
|
161
|
+
| `metadata.inlinePanelIconColor` | string | false | n/a | component-defined | Active; header icon badge color. |
|
|
162
|
+
| `metadata.showAnchors` | `boolean \| "auto"` | false | `"auto"` | component-defined | Active; click-to-snap anchors. |
|
|
163
|
+
| `metadata.showInlineInputs` | boolean | false | true | component-defined | Active; inline time inputs in popover. |
|
|
164
|
+
| `metadata.inputMinLabel` | string | false | n/a | component-defined | Active; start time label. |
|
|
165
|
+
| `metadata.inputMaxLabel` | string | false | n/a | component-defined | Active; end time label. |
|
|
166
|
+
| `metadata.sliderStep` | number | false | `stepMinute` | `> 0` | Active; slider thumb minute step. |
|
|
167
|
+
| `metadata.shiftStep` | number | false | `60` | `> 0` | Active; keyboard large-step jump in minutes. |
|
|
168
|
+
| `metadata.inlineTimeQuickPresets` | array | false | n/a | component-defined | Active; quick shift presets. |
|
|
169
|
+
| `metadata.inlineTimeTrackShifts` | unknown | false | n/a | component-defined | Active; track gradient segments. |
|
|
170
|
+
| `metadata.inlineTrackShifts` | unknown | false | n/a | component-defined | Partial; alias of `inlineTimeTrackShifts`. |
|
|
171
|
+
| `metadata.validators.rangeMessage` | string | false | n/a | component-defined | Active; invalid range error message. |
|
|
172
|
+
| `metadata.validators.minDistanceMessage` | string | false | n/a | component-defined | Active; min duration error message. |
|
|
173
|
+
| `metadata.validators.maxDistanceMessage` | string | false | n/a | component-defined | Active; max duration error message. |
|
|
174
|
+
| `metadata.inlineAutoSize.*` | object | false | n/a | component-defined | Active; responsive panel/trigger width bounds. |
|
|
158
175
|
|
|
159
176
|
### Input bindings (inbound data)
|
|
160
177
|
|
|
@@ -195,9 +212,9 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
195
212
|
|
|
196
213
|
| Surface | Verified | Coverage status | Evidence | Notes |
|
|
197
214
|
| --- | --- | --- | --- | --- |
|
|
198
|
-
| Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/inline-time-range/inline-time-range.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/pdx-material-time-range/pdx-material-time-range.component.ts` | Core runtime flows verified via
|
|
215
|
+
| Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/inline-time-range/inline-time-range.component.ts`, `projects/praxis-dynamic-fields/src/lib/components/pdx-material-time-range/pdx-material-time-range.component.ts` | Core runtime flows and Wave 1 enhancements verified via component specs and Playwright visual/E2E gates. |
|
|
199
216
|
| Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
|
|
200
|
-
| Editor/Tooling | `
|
|
217
|
+
| Editor/Tooling | `true` | Active | `projects/praxis-core/src/lib/utils/inline-filter-controls.util.ts`, `projects/praxis-metadata-editor/src/lib/config/time-range.config.ts`, `inline-editor-coverage.spec.ts`, `filter-inline-metadata-editor.playwright.spec.ts` | Editor configuration, round-trip persistence, and metadata coverage verified. |
|
|
201
218
|
|
|
202
219
|
### Runtime coverage boundaries
|
|
203
220
|
|
|
@@ -291,8 +308,12 @@ Use quando precisar:
|
|
|
291
308
|
| `metadata.minTime/maxTime` | `string` | Ativo | Limites preferenciais do intervalo. |
|
|
292
309
|
| `metadata.min/max/minimum/maximum` | `string` | Ativo | Aliases aceitos para limites de horario. |
|
|
293
310
|
| `metadata.stepMinute` | `number` | Ativo | Passo em minutos no slider e normalizacao. |
|
|
311
|
+
| `metadata.sliderStep` / `metadata.shiftStep` | `number` | Ativo | Passo em minutos durante o arraste (`sliderStep`) e salto por teclado em `Shift+Setas`, `PageUp` ou `PageDown` (`shiftStep`, padrao `60`). |
|
|
312
|
+
| `metadata.showAnchors` | `boolean \| 'auto'` | Ativo | Exibe ancoras clicaveis *click-to-snap* de horario (`00:00`, `06:00`, `12:00`, `18:00`, `23:59` em desktop; `3` em paineis estreitos `<= 368px`). |
|
|
313
|
+
| `metadata.discrete` | `boolean` | Ativo | Ativa marcacoes discretas e indicador flutuante de horario no slider. |
|
|
294
314
|
| `metadata.interval` | `number\|string` | Ativo | Alias de passo (minutos) para faixa. |
|
|
295
|
-
| `metadata.inlinePanelTitle` | `string` | Ativo | Titulo
|
|
315
|
+
| `metadata.inlinePanelTitle` / `inlinePanelIcon` / `inlinePanelIconColor` | `string` | Ativo | Titulo customizavel, icone Material Icons (`snake_case` minusculo, padrao `schedule`) e cor do badge no cabecalho do popover. |
|
|
316
|
+
| `metadata.showInlineInputs` / `inputMinLabel` / `inputMaxLabel` | `boolean \| string` | Ativo | Exibe/oculta campos de inicio e fim em 2 colunas no popover (fallback em `startLabel`/`endLabel`). |
|
|
296
317
|
| `metadata.inlineTimeQuickPresets` / `quickPresets` | `array` | Ativo | Presets rapidos de inicio/fim. |
|
|
297
318
|
| `metadata.inlineTimeTrackShifts` | `array` | Ativo | Segmentos de trilha por turno/faixa. |
|
|
298
319
|
| `metadata.inlineTrackShifts` / `trackShifts` | `array` | Ativo | Aliases para segmentos de trilha. |
|
|
@@ -410,7 +431,13 @@ Correcao: revisar `minTime/maxTime` (ou aliases) no payload final.
|
|
|
410
431
|
| `metadata` | object | true | n/a | Partial | See Detailed API reference. |
|
|
411
432
|
| `metadata.stepMinute` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
412
433
|
| `metadata.interval` | string | false | n/a | Partial | See Detailed API reference. |
|
|
413
|
-
| `metadata.inlinePanelTitle` | string | false | n/a |
|
|
434
|
+
| `metadata.inlinePanelTitle` | string | false | n/a | Active | Custom panel title shown in popover header. |
|
|
435
|
+
| `metadata.inlinePanelIcon` | string | false | `'schedule'` | Active | Lowercase `snake_case` Material icon ligature in header badge. |
|
|
436
|
+
| `metadata.inlinePanelIconColor` | string | false | `--md-sys-color-primary` | Active | Theme token or CSS color override for header badge icon and halo. |
|
|
437
|
+
| `metadata.showAnchors` | `boolean \| 'auto'` | false | `'auto'` | Active | Clickable click-to-snap time anchors (`00:00`, `06:00`, `12:00`, `18:00`, `23:59`). |
|
|
438
|
+
| `metadata.sliderStep` / `shiftStep` | number | false | `stepMinute` / `60` | Active | Minute drag increment and `Shift+Arrow`/`PageUp`/`PageDown` keyboard jump. |
|
|
439
|
+
| `metadata.discrete` / `showInlineInputs` | boolean | false | `true` / `true` | Active | Controls slider discrete indicator and 2-column inline time inputs. |
|
|
440
|
+
| `metadata.inputMinLabel` / `inputMaxLabel` | string | false | `startLabel` / `endLabel` | Active | Overrides for the inline start and end field card labels. |
|
|
414
441
|
| `metadata.inlineTimeQuickPresets` | array | false | n/a | Partial | See Detailed API reference. |
|
|
415
442
|
| `metadata.inlineTimeTrackShifts` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
416
443
|
| `metadata.inlineTrackShifts` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
@@ -434,9 +461,34 @@ Correcao: revisar `minTime/maxTime` (ou aliases) no payload final.
|
|
|
434
461
|
|
|
435
462
|
## Styling API (obrigatorio quando aplicavel)
|
|
436
463
|
|
|
437
|
-
|
|
464
|
+
Every visual surface inside `.pdx-inline-time-range-panel` exposes `--pdx-inline-time-range-*` CSS custom properties with Material Design 3 (`--md-sys-color-*`) fallbacks, enabling hosts to customize surfaces, shift gradients, anchor buttons, 2-column time input cards, quick-preset chips, and footer actions without `::ng-deep`. Respects `prefers-reduced-motion: reduce`.
|
|
465
|
+
|
|
466
|
+
| Token | Scope | Default / Fallback | Notes |
|
|
438
467
|
| --- | --- | --- | --- |
|
|
439
|
-
| `
|
|
468
|
+
| `--pdx-inline-time-range-min-w` / `-max-w` / `-panel-min-w` / `-panel-max-w` / `-track-inset` | trigger & panel | `inlineAutoSize` / `10px` | Trigger bounds, overlay min/max width, and slider/anchor alignment inset. |
|
|
469
|
+
| `--pdx-inline-time-range-panel-bg` / `-fg` / `-border` / `-radius` / `-shadow` / `-padding` / `-gap` / `-anim-duration` | panel | `--pdx-inline-overlay-*` -> `--md-sys-color-surface-container-*` / `160ms` | Popover surface styling (supports gradients) and reveal duration. |
|
|
470
|
+
| `--pdx-inline-time-range-title-font` / `-size` / `-weight` / `-color` / `-badge-bg` / `-badge-fg` | header | `inherit` / `0.94rem` / `650` | Header typography and active window summary badge (`HH:mm – HH:mm`). |
|
|
471
|
+
| `--pdx-inline-time-range-header-icon-bg` / `-fg` / `-color` | header | primary-tinted halo / `--md-sys-color-primary` | Icon badge surface and foreground for `inlinePanelIcon`. |
|
|
472
|
+
| `--pdx-inline-time-range-track-gradient` / `-shift-madrugada` / `-shift-manha` / `-shift-comercial` / `-shift-tarde` / `-shift-noturno` | shifts & track | shift colors | Background gradient and per-shift color tokens along the 24h track. |
|
|
473
|
+
| `--pdx-inline-time-range-slider-active-track` / `-handle-color` / `-indicator-bg` / `-indicator-fg` | slider | `--md-sys-color-primary` / inverse-surface | Material `<mat-slider>` active track, handle, and discrete tooltip indicator. |
|
|
474
|
+
| `--pdx-inline-time-range-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 | Track dots and clickable time anchor snap buttons (`00:00`, `06:00`, `12:00`, `18:00`, `23:59`). |
|
|
475
|
+
| `--pdx-inline-time-range-input-bg` / `-border` / `-focus-border` / `-radius` / `-label-color` / `-fg` / `-font` / `-size` | inputs | surface-container-low / primary / `10px` | 2-column `.pdx-inline-time-range-input-card` fields for start/end times. |
|
|
476
|
+
| `--pdx-inline-time-range-preset-bg` / `-fg` / `-border` / `-radius` / `-active-bg` / `-active-fg` / `-active-border` | presets | surface-container-low / primary-container / `999px` | Quick-preset pills with `[attr.aria-pressed]` selected state. |
|
|
477
|
+
| `--pdx-inline-time-range-action-radius` / `-footer-apply-bg` / `-footer-apply-fg` / `-footer-neutral-fg` / `-action-primary-*` / `-action-neutral-*` / `-action-danger-*` | footer | `999px` / primary / neutral / danger | Footer action button tokens (including `-tonal-container` and `-tonal-label`). |
|
|
478
|
+
|
|
479
|
+
Example host customization without `::ng-deep`:
|
|
480
|
+
|
|
481
|
+
```css
|
|
482
|
+
:root {
|
|
483
|
+
--pdx-inline-time-range-panel-radius: 16px;
|
|
484
|
+
--pdx-inline-time-range-header-icon-bg: rgb(15 118 110 / 0.14);
|
|
485
|
+
--pdx-inline-time-range-header-icon-fg: #0f766e;
|
|
486
|
+
--pdx-inline-time-range-slider-active-track: #0f766e;
|
|
487
|
+
--pdx-inline-time-range-slider-handle-color: #0f766e;
|
|
488
|
+
--pdx-inline-time-range-action-primary-container: #0f766e;
|
|
489
|
+
--pdx-inline-time-range-action-primary-label: #ffffff;
|
|
490
|
+
}
|
|
491
|
+
```
|
|
440
492
|
|
|
441
493
|
## Examples (obrigatorio)
|
|
442
494
|
|
|
@@ -153,9 +153,11 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
153
153
|
| `metadata.min` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
154
154
|
| `metadata.max` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
155
155
|
| `metadata.step` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
156
|
+
| `metadata.shiftStep` | number | false | n/a | component-defined | Active; Shift + Arrow step override. |
|
|
156
157
|
| `metadata.showTicks` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
157
158
|
| `metadata.discrete` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
158
159
|
| `metadata.displayWith` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
160
|
+
| `metadata.thumbLabel` | boolean | false | n/a | component-defined | Active; fallback when `valueLabelDisplay` is omitted. |
|
|
159
161
|
| `metadata.valueLabelDisplay` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
160
162
|
| `metadata.valueLabelFormat` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
161
163
|
| `metadata.marks` | boolean \| array \| string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
@@ -163,8 +165,13 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
163
165
|
| `metadata.distribution` | array \| object \| string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
164
166
|
| `metadata.track` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
165
167
|
| `metadata.size` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
168
|
+
| `metadata.scale` | string | false | n/a | component-defined | Active; declarative value scaling. |
|
|
166
169
|
| `metadata.showInputs` | boolean | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
167
170
|
| `metadata.minDistance` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
171
|
+
| `metadata.maxDistance` | number | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
172
|
+
| `metadata.vertical` | boolean | false | n/a | component-defined | Active; vertical container styling. |
|
|
173
|
+
| `metadata.readonly` | boolean | false | n/a | component-defined | Active; blocks slider and input interaction. |
|
|
174
|
+
| `metadata.invert` | boolean | false | n/a | component-defined | Active; inverts pointer/mark/Shift+Arrow direction. |
|
|
168
175
|
|
|
169
176
|
### Input bindings (inbound data)
|
|
170
177
|
|
|
@@ -321,27 +328,26 @@ Use quando precisar:
|
|
|
321
328
|
| `metadata.discrete` | `boolean` | Ativo | Usa modo discreto do slider Material. |
|
|
322
329
|
| `metadata.displayWith` | `(value:number)=>string` | Ativo | Formata exibicao de valor do slider. |
|
|
323
330
|
| `metadata.thumbLabel` | `boolean` | Ativo | Habilita o value label quando `valueLabelDisplay` nao foi informado. |
|
|
324
|
-
| `metadata.valueLabelDisplay` | `'off' \| 'auto' \| 'on'` | Ativo | Controla a exibicao declarativa do value label; `off` tem precedencia.
|
|
325
|
-
| `metadata.valueLabelFormat` | `string` | Ativo | Formata labels com presets declarativos como `percent`, `compact` e `storage`.
|
|
331
|
+
| `metadata.valueLabelDisplay` | `'off' \| 'auto' \| 'on'` | Ativo | Controla a exibicao declarativa do value label e do resumo de valor no cabecalho; `'on'` mantem o indicador de valor sempre visivel e `'off'` tem precedencia. |
|
|
332
|
+
| `metadata.valueLabelFormat` | `string` | Ativo | Formata labels com presets declarativos como `percent`, `currency`, `compact` e `storage`. |
|
|
326
333
|
| `metadata.marks` | `boolean \| array \| string` | Ativo | Habilita tick marks e, quando array/JSON, renderiza labels posicionados no trilho. |
|
|
327
334
|
| `metadata.semanticBands` | `array \| string` | Ativo | Renderiza faixas semanticas no trilho para risco, prioridade ou dominios numericos. |
|
|
328
|
-
| `metadata.distribution`
|
|
329
|
-
| `metadata.track` | `'normal' \| 'inverted' \| 'none'` |
|
|
335
|
+
| `metadata.distribution` / `metadata.inlineDistribution` | `array \| object \| string` | Ativo | Renderiza histograma compacto acima do slider; quando configurado como objeto, `colorMode` (`selection`/`gradient`/`theme`) colore os bins cobertos pelo range atual com tokens do tema ou cores declaradas. |
|
|
336
|
+
| `metadata.track` | `'normal' \| 'inverted' \| 'none'` | Ativo | Aplica classes/estilo para variacao visual do track e inverte o destaque dos bins de `distribution` quando `'inverted'`. |
|
|
330
337
|
| `metadata.size` | `'small' \| 'medium' \| 'large'` | Ativo | Ajusta densidade visual do slider. |
|
|
331
338
|
| `metadata.scale` | `string` | Ativo | Aplica escala declarativa ao texto exibido (`percent`, `log`, `pow2`). |
|
|
339
|
+
| `metadata.shiftStep` | `number` | Ativo | Incremento acelerado acionado por teclado com `Shift + Setas` nos modos `single` e `range`. |
|
|
332
340
|
| `metadata.showInputs` | `boolean` | Ativo | Exibe campos numericos auxiliares abaixo. |
|
|
333
|
-
| `metadata.minDistance` | `number` | Ativo | Valida distancia minima em modo range.
|
|
334
|
-
| `metadata.maxDistance` | `number` | Ativo | Valida distancia maxima em modo range.
|
|
341
|
+
| `metadata.minDistance` | `number` | Ativo | Valida e aplica clamping de distancia minima em modo range. |
|
|
342
|
+
| `metadata.maxDistance` | `number` | Ativo | Valida e aplica clamping de distancia maxima em modo range. |
|
|
335
343
|
| `metadata.validators.minMessage` | `string` | Ativo | Mensagem custom para erro `min`. |
|
|
336
344
|
| `metadata.validators.maxMessage` | `string` | Ativo | Mensagem custom para erro `max`. |
|
|
337
345
|
| `metadata.validators.rangeMessage` | `string` | Ativo | Mensagem custom para ordem invalida (`start > end`). |
|
|
338
346
|
| `metadata.validators.distanceMessage` | `string` | Ativo | Mensagem custom para min/max distance. |
|
|
339
347
|
| `metadata.vertical` | `boolean` | Ativo | Classe CSS para variacao vertical no container. |
|
|
340
|
-
| `metadata.readonly` | `boolean` |
|
|
341
|
-
| `metadata.invert` | `boolean` |
|
|
342
|
-
| `metadata.
|
|
343
|
-
| `metadata.distribution` | `object \| array \| string` | Declared-only | Sem uso neste renderer. |
|
|
344
|
-
| `metadata.quickPresets` | `array \| string` | Declared-only | Sem uso neste renderer. |
|
|
348
|
+
| `metadata.readonly` | `boolean` | Ativo | Bloqueia interacao de ponteiro/teclado e inputs numericos, expondo `aria-readonly="true"`. |
|
|
349
|
+
| `metadata.invert` | `boolean` | Parcial | Inverte mapeamento de coordenadas na superficie de ponteiro, teclado `Shift + Setas`, `marks` e `semanticBands`. |
|
|
350
|
+
| `metadata.quickPresets` | `array \| string` | Declared-only | Sem uso neste renderer (usado em `pdx-inline-range-slider`). |
|
|
345
351
|
| `metadata.quickPresetsAuto` | `boolean` | Declared-only | Sem uso neste renderer. |
|
|
346
352
|
| `metadata.quickPresetsLabels` | `object \| string` | Declared-only | Sem uso neste renderer. |
|
|
347
353
|
| `metadata.inlineTexts` | `object \| string` | Declared-only | Sem uso neste renderer. |
|
|
@@ -366,11 +372,13 @@ Resumo de composicao deste componente:
|
|
|
366
372
|
### 4. Mapeamento de Comportamento
|
|
367
373
|
|
|
368
374
|
- `mode=single`: valor unico no `control()`.
|
|
369
|
-
- `mode=range`: valor `{start, end}` sincronizado com `rangeGroup` interno.
|
|
370
|
-
-
|
|
375
|
+
- `mode=range`: valor `{start, end}` sincronizado com `rangeGroup` interno (ou `null` quando ambos os limites forem limpos).
|
|
376
|
+
- Cabecalho (`.pdx-slider-header`): exibe `<label>` e badge `.pdx-slider-value-summary` (`tabular-nums`) com o valor/intervalo formatado (incluindo intervalos semiabertos `≥ X` ou `≤ Y` via `showInputs`), salvo quando `valueLabelDisplay: "off"`.
|
|
377
|
+
- Validacoes de grupo (range) propagadas ao `FormControl` host:
|
|
371
378
|
- ordem (`start <= end`),
|
|
372
|
-
- distancia minima,
|
|
373
|
-
- distancia maxima
|
|
379
|
+
- distancia minima (`minDistance`),
|
|
380
|
+
- distancia maxima (`maxDistance`),
|
|
381
|
+
- limites individuais (`min` / `max`).
|
|
374
382
|
- Inputs auxiliares: refletem o mesmo estado do slider quando `showInputs=true`.
|
|
375
383
|
|
|
376
384
|
### 5. Exemplo Minimo (JSON + Uso)
|
|
@@ -488,9 +496,11 @@ Uso: controle de intervalo financeiro com validacoes de distancia.
|
|
|
488
496
|
| `metadata.min` | number | false | n/a | Partial | See Detailed API reference. |
|
|
489
497
|
| `metadata.max` | number | false | n/a | Partial | See Detailed API reference. |
|
|
490
498
|
| `metadata.step` | number | false | n/a | Partial | See Detailed API reference. |
|
|
499
|
+
| `metadata.shiftStep` | number | false | n/a | Active | See Detailed API reference. |
|
|
491
500
|
| `metadata.showTicks` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
492
501
|
| `metadata.discrete` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
493
502
|
| `metadata.displayWith` | unknown | false | n/a | Partial | See Detailed API reference. |
|
|
503
|
+
| `metadata.thumbLabel` | boolean | false | n/a | Active | See Detailed API reference. |
|
|
494
504
|
| `metadata.valueLabelDisplay` | string | false | n/a | Partial | See Detailed API reference. |
|
|
495
505
|
| `metadata.valueLabelFormat` | string | false | n/a | Partial | See Detailed API reference. |
|
|
496
506
|
| `metadata.marks` | boolean \| array \| string | false | n/a | Partial | See Detailed API reference. |
|
|
@@ -502,6 +512,9 @@ Uso: controle de intervalo financeiro com validacoes de distancia.
|
|
|
502
512
|
| `metadata.showInputs` | boolean | false | n/a | Partial | See Detailed API reference. |
|
|
503
513
|
| `metadata.minDistance` | number | false | n/a | Partial | See Detailed API reference. |
|
|
504
514
|
| `metadata.maxDistance` | number | false | n/a | Partial | See Detailed API reference. |
|
|
515
|
+
| `metadata.vertical` | boolean | false | n/a | Active | See Detailed API reference. |
|
|
516
|
+
| `metadata.readonly` | boolean | false | n/a | Active | See Detailed API reference. |
|
|
517
|
+
| `metadata.invert` | boolean | false | n/a | Active | See Detailed API reference. |
|
|
505
518
|
| `metadata.validators.minMessage` | string | false | n/a | Partial | See Detailed API reference. |
|
|
506
519
|
| `metadata.validators.maxMessage` | string | false | n/a | Partial | See Detailed API reference. |
|
|
507
520
|
| `metadata.validators.rangeMessage` | string | false | n/a | Partial | See Detailed API reference. |
|
|
@@ -22,8 +22,8 @@ source_of_truth:
|
|
|
22
22
|
- "projects/praxis-dynamic-fields/src/lib/components/material-selection-list/material-selection-list.component.ts"
|
|
23
23
|
- "projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts"
|
|
24
24
|
- "projects/praxis-core/src/lib/models/material-field-metadata.interface.ts"
|
|
25
|
-
source_of_truth_last_verified: "2026-
|
|
26
|
-
last_updated: "2026-
|
|
25
|
+
source_of_truth_last_verified: "2026-11-24"
|
|
26
|
+
last_updated: "2026-11-24"
|
|
27
27
|
toc: true
|
|
28
28
|
sidebar: true
|
|
29
29
|
tags:
|
|
@@ -33,10 +33,10 @@ tags:
|
|
|
33
33
|
api_stability: "canonical"
|
|
34
34
|
schema_verified: true
|
|
35
35
|
runtime_verified: true
|
|
36
|
-
editor_coverage_verified:
|
|
36
|
+
editor_coverage_verified: true
|
|
37
37
|
runtime_scope: "public"
|
|
38
38
|
legacy_paths_present: true
|
|
39
|
-
has_known_mismatches:
|
|
39
|
+
has_known_mismatches: false
|
|
40
40
|
related_components:
|
|
41
41
|
- "praxis-table"
|
|
42
42
|
- "pdx-base-select-runtime-contract"
|
|
@@ -70,9 +70,9 @@ Este documento e a referencia canonica da API JSON de pdx-material-selection-lis
|
|
|
70
70
|
| Primary contract source | `runtime-and-code` | Runtime, schema e docs devem permanecer rastreaveis | Partial | frontmatter.contract_source + source_of_truth |
|
|
71
71
|
| Runtime coverage | `true` | Comportamentos runtime criticos devem ficar explicitamente verificados | Active | `projects/praxis-dynamic-fields/src/lib/components/material-selection-list/material-selection-list.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-selection-list/material-selection-list.component.ts` |
|
|
72
72
|
| Schema/type coverage | `true` | Tipos e schema devem refletir paths publicos do contrato | Active | source_of_truth + Detailed API reference |
|
|
73
|
-
| Editor/tooling coverage | `
|
|
73
|
+
| Editor/tooling coverage | `true` | Editor/tooling deve espelhar somente contrato publico suportado | Active | `projects/praxis-metadata-editor/src/lib/config/selection-list.config.ts`, `projects/praxis-metadata-editor/src/lib/components/field-metadata-editor/field-metadata-editor.component.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` |
|
|
74
74
|
| Legacy paths | `true` | Segregar legado de caminhos canonicos com janela de migracao | Partial | frontmatter.legacy_paths_present |
|
|
75
|
-
| Known mismatches | `
|
|
75
|
+
| Known mismatches | `false` | Registrar observed vs desired de forma auditavel | Active | frontmatter.has_known_mismatches |
|
|
76
76
|
|
|
77
77
|
## Source of truth
|
|
78
78
|
|
|
@@ -101,7 +101,7 @@ Este documento e a referencia canonica da API JSON de pdx-material-selection-lis
|
|
|
101
101
|
| Runtime scope | `public` | Escopo publicado para consumidores |
|
|
102
102
|
| Runtime verified | `true` | Revisar sempre com evidencia de runtime |
|
|
103
103
|
| Schema verified | `true` | Revisar sempre com evidencia de tipos/schema |
|
|
104
|
-
| Editor coverage verified | `
|
|
104
|
+
| Editor coverage verified | `true` | Alinhado com `selectionListProperties` em `@praxisui/metadata-editor` |
|
|
105
105
|
| Legacy paths present | `true` | Segregar legado de contrato canonico |
|
|
106
106
|
| Has known mismatches | `false` | Divergencias devem aparecer em secao dedicada |
|
|
107
107
|
|
|
@@ -117,8 +117,8 @@ Este documento e a referencia canonica da API JSON de pdx-material-selection-lis
|
|
|
117
117
|
| `visible` | boolean | false | `true` | Active | Controla `display` do host e `aria-hidden` quando invisivel. |
|
|
118
118
|
| `presentationMode` | boolean | false | `false` | Active | Renderiza o valor sem permitir mutacao por clique ou handlers publicos governados. |
|
|
119
119
|
| `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference for runtime semantics. |
|
|
120
|
-
| `metadata.
|
|
121
|
-
| `metadata.
|
|
120
|
+
| `metadata.options` | array | false | n/a | Active | Fonte canonica de opcoes estaticas (prioritaria sobre `listOptions`). |
|
|
121
|
+
| `metadata.listOptions` | array | false | n/a | Deprecated | Alias legado honrado quando `metadata.options` nao e informado. |
|
|
122
122
|
| `metadata.required` | boolean | false | `false` | Active | Propaga `aria-required` na lista de selecao. |
|
|
123
123
|
| `metadata.readonly` | boolean | false | `false` | Active | Estado readonly declarativo do payload; bloqueia interacao como `readonlyMode`. |
|
|
124
124
|
|
|
@@ -126,7 +126,7 @@ Este documento e a referencia canonica da API JSON de pdx-material-selection-lis
|
|
|
126
126
|
|
|
127
127
|
| Legacy path | Canonical replacement | Support window | Runtime behavior | Notes |
|
|
128
128
|
| --- | --- | --- | --- | --- |
|
|
129
|
-
| `metadata.
|
|
129
|
+
| `metadata.listOptions` | `metadata.options` | not-yet-defined | accepted when `metadata.options` is omitted | `metadata.options` tem precedencia no runtime e no editor; `FieldMetadataEditorComponent` hidrata de `listOptions` e emite `listOptions: null` ao salvar `options`. |
|
|
130
130
|
|
|
131
131
|
### Internal-only paths
|
|
132
132
|
|
|
@@ -161,7 +161,8 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
161
161
|
| `metadata.filterCriteria` | unknown | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
162
162
|
| `metadata.optionLabelKey` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
163
163
|
| `metadata.optionValueKey` | string | false | n/a | component-defined | Partial; verify per source_of_truth. |
|
|
164
|
-
| `metadata.searchable` | boolean | false |
|
|
164
|
+
| `metadata.searchable` | boolean | false | `false` | component-defined | Renderiza input `.pdx-selection-list-search` e filtra opcoes visiveis preservando selecoes ocultas no `FormControl`. |
|
|
165
|
+
| `metadata.selectAll` | boolean | false | `false` | component-defined | Exibe acao `.pdx-selection-list-select-all` quando `multiple=true`, operando sobre os itens visiveis e respeitando `maxSelections`. |
|
|
165
166
|
|
|
166
167
|
### Input bindings (inbound data)
|
|
167
168
|
|
|
@@ -191,7 +192,8 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
191
192
|
- `metadata.required` propaga `aria-required` para a lista, e erro de validacao propaga `aria-invalid`.
|
|
192
193
|
- Estados governados (`disabledMode`, `readonlyMode`, `presentationMode`, `metadata.readonly` e `FormControl.disabled`) bloqueiam mutacoes por clique, teclado e handlers publicos.
|
|
193
194
|
- `disabledMode`/`FormControl.disabled` expoem `aria-disabled`; readonly/presentation expoem `aria-readonly`.
|
|
194
|
-
- `searchable`
|
|
195
|
+
- `searchable` filtra as opcoes visiveis via `filteredOptions()` enquanto `onSelectionChange()` aplica deltas no `FormControl` preservando valores ja selecionados que estejam ocultos pelo termo de busca.
|
|
196
|
+
- `selectAll` (quando `multiple=true`) alterna as opcoes visiveis respeitando `maxSelections`, preservando selecoes ocultas durante a busca e desabilitando o botao quando `filteredOptions()` fica vazio.
|
|
195
197
|
|
|
196
198
|
### External side channels
|
|
197
199
|
|
|
@@ -214,9 +216,9 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
214
216
|
|
|
215
217
|
| Surface | Verified | Coverage status | Evidence | Notes |
|
|
216
218
|
| --- | --- | --- | --- | --- |
|
|
217
|
-
| Runtime | `true` |
|
|
219
|
+
| Runtime | `true` | Active | `projects/praxis-dynamic-fields/src/lib/components/material-selection-list/material-selection-list.metadata.ts`, `projects/praxis-dynamic-fields/src/lib/components/material-selection-list/material-selection-list.component.ts` | Fluxos principais, toolbar `searchable` com `filteredOptions()`, acao `selectAll` em modo multiplo e guardas de estado `readonly`/`disabled`/`presentation` verificados em specs focadas. |
|
|
218
220
|
| Schema/Types | `true` | Active | source_of_truth + Detailed API reference | Reconcile schema/types with canonical paths during follow-up when needed. |
|
|
219
|
-
| Editor/Tooling | `
|
|
221
|
+
| Editor/Tooling | `true` | Active | `projects/praxis-metadata-editor/src/lib/config/selection-list.config.ts`, `projects/praxis-metadata-editor/src/lib/components/field-metadata-editor/field-metadata-editor.component.ts`, `projects/praxis-dynamic-fields/src/lib/services/component-registry/component-registry.service.ts` | `FieldControlType.SELECTION_LIST` mapeado para `selectionListProperties` dedicado em `@praxisui/metadata-editor`, alinhado ao contrato suportado em runtime. |
|
|
220
222
|
|
|
221
223
|
### Runtime coverage boundaries
|
|
222
224
|
|
|
@@ -226,9 +228,8 @@ Nao ha paths experimentais confirmados no contrato publico desta revisao.
|
|
|
226
228
|
|
|
227
229
|
### Editor and tooling notes
|
|
228
230
|
|
|
229
|
-
- Evidencia de tooling: selector `pdx-*` mapeado em `DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP
|
|
230
|
-
- O
|
|
231
|
-
- Pendencia registrada: completar `selectionList` para honrar o contrato declarado em `metadata.searchable` e `metadata.selectAll`, ou reduzir o contrato canônico antes de promover o tipo para outros contratos de plataforma.
|
|
231
|
+
- Evidencia de tooling: selector `pdx-*` mapeado em `DEFAULT_FIELD_SELECTOR_CONTROL_TYPE_MAP`, semeado no `ComponentRegistryService` e editavel via `selectionListProperties` em `FieldMetadataEditorComponent`.
|
|
232
|
+
- O editor visual expoe apenas as propriedades honradas pelo componente em runtime (`searchable`, `selectAll`, `maxSelections`, `multiple`, `loadOn`, fonte remota e acoes clear).
|
|
232
233
|
- Campos disponiveis apenas via JSON/manual devem continuar no contrato, com rotulo explicito de cobertura parcial.
|
|
233
234
|
- Quando houver divergencia entre editor e runtime, manter mismatch rastreavel em secao dedicada.
|
|
234
235
|
|
|
@@ -314,8 +315,8 @@ Use quando precisar:
|
|
|
314
315
|
| Caminho JSON | Tipo | Status | Comportamento em runtime |
|
|
315
316
|
| --- | --- | --- | --- |
|
|
316
317
|
| `metadata.controlType` | `'selectionList'` | Ativo | Identifica o renderer de lista Material. |
|
|
317
|
-
| `metadata.
|
|
318
|
-
| `metadata.
|
|
318
|
+
| `metadata.options` | `Array<{ value; label?; text?; disabled? }>` | Ativo | Fonte canonica principal de opcoes da lista (prioritaria sobre `listOptions`). |
|
|
319
|
+
| `metadata.listOptions` | `Array<{ value; text; label?; disabled? }>` | Depreciado | Alias legado honrado quando `metadata.options` e omitido. |
|
|
319
320
|
| `metadata.multiple` | `boolean` | Ativo | Controla lista single ou multipla. |
|
|
320
321
|
| `metadata.maxSelections` | `number` | Ativo | Enforcado em `onSelectionChange` no modo multiplo. |
|
|
321
322
|
| `metadata.required` | `boolean` | Ativo | Propaga `aria-required` na lista de selecao. |
|
|
@@ -324,8 +325,8 @@ Use quando precisar:
|
|
|
324
325
|
| `metadata.filterCriteria` | `Record<string, any>` | Ativo | Filtros base para endpoint remoto. |
|
|
325
326
|
| `metadata.optionLabelKey` | `string` | Ativo | Chave de label para payload remoto. |
|
|
326
327
|
| `metadata.optionValueKey` | `string` | Ativo | Chave de value para payload remoto. |
|
|
327
|
-
| `metadata.searchable` | `boolean` |
|
|
328
|
-
| `metadata.selectAll` | `boolean` |
|
|
328
|
+
| `metadata.searchable` | `boolean` | Ativo | Renderiza campo de busca no topo da lista e filtra opcoes via `filteredOptions()`. |
|
|
329
|
+
| `metadata.selectAll` | `boolean` | Ativo | Exibe botao de selecionar/limpar todos quando `multiple=true`, respeitando `maxSelections` e estado bloqueado. |
|
|
329
330
|
| `metadata.leftLabel` | `string` | Declared-only | Declarado no contrato, sem uso em runtime desta lista. |
|
|
330
331
|
| `metadata.rightLabel` | `string` | Declared-only | Declarado no contrato, sem uso em runtime desta lista. |
|
|
331
332
|
| `metadata.leftPlaceholder` | `string` | Declared-only | Sem uso neste componente. |
|
|
@@ -340,9 +341,9 @@ Contrato compartilhado de input base:
|
|
|
340
341
|
- [pdx-base-input-runtime-contract.json-api.md](projects/praxis-dynamic-fields/src/lib/base/pdx-base-input-runtime-contract.json-api.md)
|
|
341
342
|
|
|
342
343
|
Resumo de composicao deste componente:
|
|
343
|
-
- `Ativo`:
|
|
344
|
-
- `Declared-only`: campos de transfer-list reutilizados no contrato de metadata.
|
|
345
|
-
- `
|
|
344
|
+
- `Ativo`: `options`, `searchable`, `selectAll`, `multiple`, `maxSelections`, fonte remota (`resourcePath` / `optionSource`) e clear button.
|
|
345
|
+
- `Declared-only`: campos de transfer-list reutilizados no contrato de metadata (`leftLabel`, `rightLabel`, `leftPlaceholder`, `rightPlaceholder`, `minSelections`).
|
|
346
|
+
- `Depreciado`: alias legado `listOptions` (honrado quando `options` nao vem; convertido em `options` ao editar via `@praxisui/metadata-editor`).
|
|
346
347
|
|
|
347
348
|
### 4. Mapeamento de Comportamento
|
|
348
349
|
- Selecao: single/multiple conforme `metadata.multiple`.
|
|
@@ -393,11 +394,11 @@ Uso: selecao unica em formato de lista.
|
|
|
393
394
|
Uso: lista multipla remota com limite de selecao e limpeza rapida.
|
|
394
395
|
|
|
395
396
|
### 7. Troubleshooting e Armadilhas Comuns
|
|
396
|
-
1.
|
|
397
|
-
Correcao: `searchable` e
|
|
397
|
+
1. Opcoes desaparecem ou nao preservam selecao ao digitar na busca.
|
|
398
|
+
Correcao: ative `searchable: true`; `filteredOptions()` filtra os itens visiveis e `onSelectionChange()` aplica alteracoes por delta para preservar selecoes ocultas pelo termo digitado.
|
|
398
399
|
|
|
399
|
-
2.
|
|
400
|
-
Correcao: `selectAll`
|
|
400
|
+
2. Botao "Selecionar todos" fica desabilitado durante uma busca.
|
|
401
|
+
Correcao: `selectAll: true` requer `multiple: true` e ao menos uma opcao visivel em `filteredOptions()`. O botao alterna apenas os itens visiveis respeitando `maxSelections`.
|
|
401
402
|
|
|
402
403
|
3. Limite de selecao nao respeitado.
|
|
403
404
|
Correcao: conferir se `multiple=true` e `maxSelections` inteiro > 0.
|
|
@@ -432,16 +433,16 @@ Correcao: validar `resourcePath`, shape do payload e chaves `optionLabelKey/opti
|
|
|
432
433
|
| `visible` | boolean | false | `true` | Active | See Detailed API reference. |
|
|
433
434
|
| `presentationMode` | boolean | false | `false` | Active | See Detailed API reference. |
|
|
434
435
|
| `metadata.controlType` | string | false | n/a | Partial | See Detailed API reference. |
|
|
435
|
-
| `metadata.
|
|
436
|
-
| `metadata.
|
|
437
|
-
| `metadata.multiple` | boolean | false | n/a |
|
|
438
|
-
| `metadata.maxSelections` | number | false | n/a |
|
|
439
|
-
| `metadata.resourcePath` | string | false | n/a |
|
|
440
|
-
| `metadata.filterCriteria` | unknown | false | n/a |
|
|
441
|
-
| `metadata.optionLabelKey` | string | false | n/a |
|
|
442
|
-
| `metadata.optionValueKey` | string | false | n/a |
|
|
443
|
-
| `metadata.searchable` | boolean | false | n/a |
|
|
444
|
-
| `metadata.selectAll` | boolean | false | n/a |
|
|
436
|
+
| `metadata.options` | array | false | n/a | Active | Canonical static options source (`selectionListProperties`). |
|
|
437
|
+
| `metadata.listOptions` | array | false | n/a | Deprecated | Legacy alias honored when `metadata.options` is omitted. |
|
|
438
|
+
| `metadata.multiple` | boolean | false | n/a | Active | See Detailed API reference. |
|
|
439
|
+
| `metadata.maxSelections` | number | false | n/a | Active | See Detailed API reference. |
|
|
440
|
+
| `metadata.resourcePath` | string | false | n/a | Active | See Detailed API reference. |
|
|
441
|
+
| `metadata.filterCriteria` | unknown | false | n/a | Active | See Detailed API reference. |
|
|
442
|
+
| `metadata.optionLabelKey` | string | false | n/a | Active | See Detailed API reference. |
|
|
443
|
+
| `metadata.optionValueKey` | string | false | n/a | Active | See Detailed API reference. |
|
|
444
|
+
| `metadata.searchable` | boolean | false | n/a | Active | Renders search input and filters options via `filteredOptions()`. |
|
|
445
|
+
| `metadata.selectAll` | boolean | false | n/a | Active | Renders select-all toggle when `multiple` is enabled. |
|
|
445
446
|
| `metadata.leftLabel` | string | false | n/a | Partial | See Detailed API reference. |
|
|
446
447
|
| `metadata.rightLabel` | string | false | n/a | Partial | See Detailed API reference. |
|
|
447
448
|
| `metadata.leftPlaceholder` | string | false | n/a | Partial | See Detailed API reference. |
|
|
@@ -595,13 +596,13 @@ Correcao: validar `resourcePath`, shape do payload e chaves `optionLabelKey/opti
|
|
|
595
596
|
|
|
596
597
|
| Path/Behavior | Observed behavior (runtime) | Desired behavior | Impact | Tracking issue | Target fix |
|
|
597
598
|
| --- | --- | --- | --- | --- | --- |
|
|
598
|
-
| Canonical contract parity |
|
|
599
|
+
| Canonical contract parity | Runtime (`searchable`, `selectAll`, `maxSelections`, readonly/disabled guards) e editor (`selectionListProperties`) alinhados e verificados sem divergencias abertas | Manter runtime, schema e editor sincronizados | Low | n/a | Monitor in periodic audit |
|
|
599
600
|
|
|
600
601
|
## Source references (obrigatorio)
|
|
601
602
|
|
|
602
603
|
| Source type | Path/URL | Why it is source of truth | Last verified (YYYY-MM-DD) | Notes |
|
|
603
604
|
| --- | --- | --- | --- | --- |
|
|
604
|
-
| schema-metadata | projects/praxis-dynamic-fields/src/lib/components/material-selection-list/material-selection-list.metadata.ts | Primary source of truth for contract and behavior. | 2026-
|
|
605
|
-
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-selection-list/material-selection-list.component.ts | Primary source of truth for contract and behavior. | 2026-
|
|
606
|
-
| runtime-code | projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts | Primary source of truth for contract and behavior. | 2026-
|
|
607
|
-
| schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-
|
|
605
|
+
| schema-metadata | projects/praxis-dynamic-fields/src/lib/components/material-selection-list/material-selection-list.metadata.ts | Primary source of truth for contract and behavior. | 2026-11-24 | verified-path |
|
|
606
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/components/material-selection-list/material-selection-list.component.ts | Primary source of truth for contract and behavior. | 2026-11-24 | verified-path |
|
|
607
|
+
| runtime-code | projects/praxis-dynamic-fields/src/lib/base/simple-base-select.component.ts | Primary source of truth for contract and behavior. | 2026-11-24 | verified-path |
|
|
608
|
+
| schema-types | projects/praxis-core/src/lib/models/material-field-metadata.interface.ts | Primary source of truth for contract and behavior. | 2026-11-24 | verified-path |
|