@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
package/README.md
CHANGED
|
@@ -168,14 +168,30 @@ Presentation formatting resolves locale in this order: `field.localization.local
|
|
|
168
168
|
|
|
169
169
|
Presentation mode can also consume `field.presentation` and `field.presentationRules` for semantic readonly display states such as status, chip, badge, icon+value, tone, icon, label, badge, tooltip, and appearance. `presentationRules` use canonical Json Logic and must only produce semantic display patches; they do not mutate the `FormControl`, submit payload, or execute arbitrary actions.
|
|
170
170
|
|
|
171
|
-
For compact enterprise indicators, `field.presentation.presenter = 'microVisualization'` renders the canonical `presentation.visualization` contract in pure presentation mode.
|
|
171
|
+
For compact enterprise indicators, `field.presentation.presenter = 'microVisualization'` renders `<praxis-micro-viz-host>` from `@praxisui/core` for the canonical `presentation.visualization` contract in pure presentation mode (with `DomSanitizer`-free structured bindings). Without `@praxisui/charts`, all supported micro-visualization kinds render using `@praxisui/core`'s native HTML/SVG primitives (`data-engine="primitive"`); when the host application registers `providePraxisCharts()` (or provides `PRAXIS_MICRO_CHART_ENGINE`), all 6 vector/SVG kinds (`line`, `area`, `column`, `waterfall`, `radial`, and `harveyBall`) automatically upgrade across all surfaces to Apache ECharts 6 `SVGRenderer` (`data-engine="echarts"`) without introducing any build-time dependency on `@praxisui/charts` or `echarts`, while structural HTML/CSS kinds (`stackedBar`, `comparison`, `bullet`, `delta`, `processFlow`) remain Core primitives. Use `@praxisui/charts` directly (`PraxisChartComponent`) when the host needs full chart widgets outside the field presentation pipeline.
|
|
172
172
|
|
|
173
173
|
Runtime support for these metadata paths is canonical. Visual editor coverage is a separate layer and should be verified before claiming authoring parity.
|
|
174
174
|
|
|
175
|
+
For currency fields, the read-only form shows the localized control value above the indicator. A bullet for that amount keeps the target marker and uses the field's currency format in its readout. When the chart has insufficient data or its declared target is missing, the field shows the amount alone. A zero amount keeps its currency formatting. Missing and masked amounts retain the field's normal empty or masked display.
|
|
176
|
+
|
|
177
|
+
Composite array collections (`controlType: 'array'` or `field.array`) remain mounted via `EditableCollectionComponent` when `presentationMode` is enabled, rendering each item card's nested `array.itemSchema.fields` as `.praxis-presentation` blocks while suppressing add/remove buttons and collection validation alert banners.
|
|
178
|
+
|
|
175
179
|
Hosts that need the same governed option label outside a field shell may use the
|
|
176
180
|
public `OptionDisplayResolverService`. It resolves object labels, local options and
|
|
177
|
-
remote option sources from `FieldMetadata
|
|
181
|
+
remote option sources from `FieldMetadata` (including `optionSource.labelPropertyPath`,
|
|
182
|
+
`optionSource.valuePropertyPath`, and `CODE · Label` formatting when
|
|
183
|
+
`optionSource.display.showCode === true`); consumers must keep the raw value as the
|
|
178
184
|
executable payload and treat the resolved text only as presentation evidence.
|
|
185
|
+
Inside forms, each `FieldShellComponent` isolates its own `GenericCrudService`
|
|
186
|
+
provider for option resolution and forwards `field.apiUrlEntry` without mutating the
|
|
187
|
+
parent form's resource configuration or ETag state.
|
|
188
|
+
|
|
189
|
+
### Relationship Quick View (Presentation and Edit Modes)
|
|
190
|
+
|
|
191
|
+
Fields backed by `field.quickView`, `x-ui.resourceReference` or `x-ui.optionSource.detail` materialize the canonical `@praxisui/core` Resource Quick View with mode-aware ergonomics:
|
|
192
|
+
|
|
193
|
+
- **View / Presentation mode (`FieldShellComponent`)**: attaches `[praxisQuickView]` directly to `.praxis-presentation__value` with `hover-and-click` trigger semantics when a foreign-key scalar or selection object is present.
|
|
194
|
+
- **Edit / Create mode (`MaterialAsyncSelectComponent` & `InlineEntityLookupComponent`)**: renders an explicit suffix action button (`triggerMode: 'explicit-button'`, `data-testid="async-select-quick-view-action"` / `data-testid="entity-lookup-quick-view-action"`) enabled only when a valid target ID is selected (`actions.showQuickView !== false`). Hovering the input never opens a competing popover over the dropdown or lookup dialog. In `EntityLookupDialogComponent`, each result row also exposes an explicit Quick View preview action (`data-testid="entity-lookup-dialog-quick-view-action"`). Changing or clearing the selection automatically dismisses any open Quick View overlay.
|
|
179
195
|
|
|
180
196
|
## Inline Filters
|
|
181
197
|
|
|
@@ -191,6 +207,17 @@ The overlay is attached only while open, prefers the space below the trigger, fa
|
|
|
191
207
|
|
|
192
208
|
Collection search styling is shared with `@praxisui/table` through the Core `--praxis-collection-search-*` contract. In particular, `--praxis-collection-search-radius` supports square (`0`), intermediate (for example `8px`) and pill (`999px`) themes without component-specific aliases. The popup surface resolves from `--pdx-inline-panel-surface`, then the governed Praxis/Material surface chain, with an opaque final fallback; this prevents host token gaps from making options transparent. Narrow hosts may govern the default `22rem` popup limit through `--praxis-collection-overlay-narrow-max-height`.
|
|
193
209
|
|
|
210
|
+
### Entity Lookup Overlay and Dialog
|
|
211
|
+
|
|
212
|
+
`InlineEntityLookupComponent` (`pdx-inline-entity-lookup`) and `EntityLookupDialogComponent` build on this overlay contract for structured `RESOURCE_ENTITY` catalogs:
|
|
213
|
+
|
|
214
|
+
- **Trigger ergonomics & icon affordance**: `prefixIcon` renders cleanly in Material prefix position, and empty-trigger placeholders stay distinct from the field label (falling back to the i18n key `entityLookup.trigger.selectPlaceholder`).
|
|
215
|
+
- **Host-locked `filterCriteria` preservation**: filters that match host-supplied `filterCriteria` are recognized as locked scope predicates (`isHostLockedLookupFilter`), omitted from removable overlay filter chips (`removableLookupFilterChips`), preserved by `clearLookupFilters` / `replaceLookupFilters`, and preserved across `EntityLookupDialogComponent` filter reset and apply flows.
|
|
216
|
+
- **Grouped, collapsible quick filters**: when multiple quick-filter dimensions exist, chips render under explicit group headings and excess inline overlay chips fold behind a localized `More filters` / `Less` toggle (`entityLookup.quickFilters.more` / `less`).
|
|
217
|
+
- **Overlay density & badge deduplication**: `inlineOverlayBadges` suppresses raw code badges or values already represented in the option header (`code`, `label`, `status`) or in rendered `inlineRichFields` slots.
|
|
218
|
+
- **Accessible custom-chrome native `<select>` controls**: sort, search-strategy, and enum filter `<select>` wrappers (`.pdx-panel-sort-select-wrap` and `.pdx-lookup-dialog-select-wrap`) keep semantic native keyboard/screen-reader `<select>` interaction while rendering M3-token visuals, `:focus-visible` focus rings, hover/disabled states, and `@media (forced-colors: active)` high-contrast styling.
|
|
219
|
+
- **Enriched dialog preview**: when `dialog.previewPanel` is enabled, the preview pane displays a structured `<dl>` summary grid, localized preview/selected badges, and a direct selection CTA (`entityLookup.dialog.selectPreviewAction`).
|
|
220
|
+
|
|
194
221
|
## AI Authoring
|
|
195
222
|
|
|
196
223
|
`PRAXIS_DYNAMIC_FIELDS_AUTHORING_MANIFEST` governs the field-control family. It separates:
|
|
@@ -235,6 +262,12 @@ Main exports:
|
|
|
235
262
|
|
|
236
263
|
O loader reaplica a troca de `presentationMode` e `canvasMode` mesmo quando recebe uma nova referência de fields com o mesmo conteúdo ou um novo FormGroup. A igualdade do snapshot dos campos não deve impedir a atualização dos shells. Os controles e seus valores continuam pertencendo ao FormGroup do host. Regressão focal: `dynamic-field-loader.presentation-mode.spec.ts`.
|
|
237
264
|
|
|
265
|
+
### CSS Custom Properties (Date Range Presets & Selection Summary)
|
|
266
|
+
|
|
267
|
+
- **Inline Date Range Quick Presets (`.pdx-inline-date-range-preset[data-tone='info'|'success'|'warning']`):** `--pdx-inline-date-range-preset-border-inline-start` (default `3px solid <tone-color>`).
|
|
268
|
+
- **Inline Date Range Selection Summary (`.pdx-inline-date-range-selection-summary`):** `--pdx-inline-date-range-summary-border-inline-start` (default `3px solid var(--pdx-inline-date-range-summary-accent, var(--md-sys-color-primary, #2f4eb2))`) and `--pdx-inline-date-range-summary-pending-border-inline-start-style` on `.is-pending` (default `solid`).
|
|
269
|
+
- **Shortcut Overlay Options (`.pdx-date-shortcut[data-tone='info'|'success'|'warning']`):** `--pdx-date-shortcut-border-inline-start` (default `3px solid <tone-color>`).
|
|
270
|
+
|
|
238
271
|
<!-- praxis-npm-catalog-links:start -->
|
|
239
272
|
## Official documentation and examples
|
|
240
273
|
|