@praxisui/dynamic-fields 10.0.0-rc.6 → 10.0.0-rc.60
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -1
- package/ai/component-registry.json +93533 -1830
- package/docs/dynamic-fields-field-selection-guide.md +14 -0
- package/docs/dynamic-fields-inline-components-guide.md +56 -46
- package/docs/dynamic-fields-inline-filter-catalog.md +50 -32
- package/docs/dynamic-fields-inline-filter-inventory.md +2 -2
- package/docs/dynamic-fields-inline-filter-runtime-contract.md +71 -18
- package/docs/dynamic-fields-inline-filter-selection-guide.md +10 -8
- package/fesm2022/praxisui-dynamic-fields.mjs +24140 -6010
- package/package.json +4 -4
- package/src/lib/components/inline-color-label/pdx-inline-color-label.json-api.md +17 -8
- package/src/lib/components/inline-currency-range/pdx-inline-currency-range.json-api.md +95 -27
- package/src/lib/components/inline-date/pdx-inline-date.json-api.md +24 -0
- package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +96 -46
- package/src/lib/components/inline-distance-radius/pdx-inline-distance-radius.json-api.md +27 -4
- package/src/lib/components/inline-entity-lookup/pdx-inline-entity-lookup.json-api.md +108 -25
- package/src/lib/components/inline-number/pdx-inline-number.json-api.md +70 -48
- package/src/lib/components/inline-pipeline-status/pdx-inline-pipeline-status.json-api.md +18 -3
- package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +78 -19
- package/src/lib/components/inline-rating/pdx-inline-rating.json-api.md +18 -5
- package/src/lib/components/inline-relative-period/pdx-inline-relative-period.json-api.md +17 -3
- package/src/lib/components/inline-score-priority/pdx-inline-score-priority.json-api.md +62 -15
- package/src/lib/components/inline-sentiment/pdx-inline-sentiment.json-api.md +18 -3
- package/src/lib/components/inline-time-range/pdx-inline-time-range.json-api.md +77 -25
- package/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md +28 -15
- package/src/lib/components/material-slider/pdx-material-slider.json-api.md +16 -8
- package/src/lib/components/number-input/pdx-number-input.json-api.md +14 -8
- package/types/praxisui-dynamic-fields.d.ts +1014 -37
package/README.md
CHANGED
|
@@ -172,10 +172,24 @@ For compact enterprise indicators, `field.presentation.presenter = 'microVisuali
|
|
|
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
|
+
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.
|
|
176
|
+
|
|
175
177
|
Hosts that need the same governed option label outside a field shell may use the
|
|
176
178
|
public `OptionDisplayResolverService`. It resolves object labels, local options and
|
|
177
|
-
remote option sources from `FieldMetadata
|
|
179
|
+
remote option sources from `FieldMetadata` (including `optionSource.labelPropertyPath`,
|
|
180
|
+
`optionSource.valuePropertyPath`, and `CODE · Label` formatting when
|
|
181
|
+
`optionSource.display.showCode === true`); consumers must keep the raw value as the
|
|
178
182
|
executable payload and treat the resolved text only as presentation evidence.
|
|
183
|
+
Inside forms, each `FieldShellComponent` isolates its own `GenericCrudService`
|
|
184
|
+
provider for option resolution and forwards `field.apiUrlEntry` without mutating the
|
|
185
|
+
parent form's resource configuration or ETag state.
|
|
186
|
+
|
|
187
|
+
### Relationship Quick View (Presentation and Edit Modes)
|
|
188
|
+
|
|
189
|
+
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:
|
|
190
|
+
|
|
191
|
+
- **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.
|
|
192
|
+
- **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
193
|
|
|
180
194
|
## Inline Filters
|
|
181
195
|
|
|
@@ -191,6 +205,17 @@ The overlay is attached only while open, prefers the space below the trigger, fa
|
|
|
191
205
|
|
|
192
206
|
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
207
|
|
|
208
|
+
### Entity Lookup Overlay and Dialog
|
|
209
|
+
|
|
210
|
+
`InlineEntityLookupComponent` (`pdx-inline-entity-lookup`) and `EntityLookupDialogComponent` build on this overlay contract for structured `RESOURCE_ENTITY` catalogs:
|
|
211
|
+
|
|
212
|
+
- **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`).
|
|
213
|
+
- **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.
|
|
214
|
+
- **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`).
|
|
215
|
+
- **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.
|
|
216
|
+
- **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.
|
|
217
|
+
- **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`).
|
|
218
|
+
|
|
194
219
|
## AI Authoring
|
|
195
220
|
|
|
196
221
|
`PRAXIS_DYNAMIC_FIELDS_AUTHORING_MANIFEST` governs the field-control family. It separates:
|