@praxisui/dynamic-fields 10.0.0-rc.7 → 10.0.0-rc.71

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.
Files changed (33) hide show
  1. package/README.md +33 -2
  2. package/ai/component-registry.json +93533 -1830
  3. package/docs/dynamic-fields-field-selection-guide.md +14 -0
  4. package/docs/dynamic-fields-inline-components-guide.md +56 -46
  5. package/docs/dynamic-fields-inline-filter-catalog.md +50 -32
  6. package/docs/dynamic-fields-inline-filter-inventory.md +2 -2
  7. package/docs/dynamic-fields-inline-filter-runtime-contract.md +71 -18
  8. package/docs/dynamic-fields-inline-filter-selection-guide.md +10 -8
  9. package/fesm2022/praxisui-dynamic-fields.mjs +26602 -7359
  10. package/package.json +4 -4
  11. package/src/lib/base/pdx-base-input-runtime-contract.json-api.md +12 -12
  12. package/src/lib/base/pdx-base-select-runtime-contract.json-api.md +12 -12
  13. package/src/lib/components/color-picker/pdx-color-picker.json-api.md +16 -15
  14. package/src/lib/components/field-shell/praxis-field-shell.json-api.md +3 -3
  15. package/src/lib/components/inline-color-label/pdx-inline-color-label.json-api.md +17 -8
  16. package/src/lib/components/inline-currency-range/pdx-inline-currency-range.json-api.md +98 -33
  17. package/src/lib/components/inline-date/pdx-inline-date.json-api.md +24 -0
  18. package/src/lib/components/inline-date-range/pdx-inline-date-range.json-api.md +96 -46
  19. package/src/lib/components/inline-distance-radius/pdx-inline-distance-radius.json-api.md +27 -4
  20. package/src/lib/components/inline-entity-lookup/pdx-inline-entity-lookup.json-api.md +108 -25
  21. package/src/lib/components/inline-number/pdx-inline-number.json-api.md +70 -48
  22. package/src/lib/components/inline-pipeline-status/pdx-inline-pipeline-status.json-api.md +18 -3
  23. package/src/lib/components/inline-range-slider/pdx-inline-range-slider.json-api.md +78 -19
  24. package/src/lib/components/inline-rating/pdx-inline-rating.json-api.md +18 -5
  25. package/src/lib/components/inline-relative-period/pdx-inline-relative-period.json-api.md +17 -3
  26. package/src/lib/components/inline-score-priority/pdx-inline-score-priority.json-api.md +62 -15
  27. package/src/lib/components/inline-sentiment/pdx-inline-sentiment.json-api.md +18 -3
  28. package/src/lib/components/inline-time-range/pdx-inline-time-range.json-api.md +77 -25
  29. package/src/lib/components/material-range-slider/pdx-material-range-slider.json-api.md +28 -15
  30. package/src/lib/components/material-selection-list/pdx-material-selection-list.json-api.md +44 -43
  31. package/src/lib/components/material-slider/pdx-material-slider.json-api.md +16 -8
  32. package/src/lib/components/number-input/pdx-number-input.json-api.md +14 -8
  33. package/types/praxisui-dynamic-fields.d.ts +1067 -38
package/README.md CHANGED
@@ -168,14 +168,28 @@ 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. The dynamic-fields runtime owns this compact HTML renderer so forms, lists, and tables can share the same metadata without depending on chart components for virtualized or readonly cells. Use it for small comparison, stacked bar, bullet, and delta indicators; use `@praxisui/charts` when the host needs a richer chart widget outside the field presentation pipeline.
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
+ 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`; consumers must keep the raw value as the
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:
@@ -235,6 +260,12 @@ Main exports:
235
260
 
236
261
  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
262
 
263
+ ### CSS Custom Properties (Date Range Presets & Selection Summary)
264
+
265
+ - **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>`).
266
+ - **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`).
267
+ - **Shortcut Overlay Options (`.pdx-date-shortcut[data-tone='info'|'success'|'warning']`):** `--pdx-date-shortcut-border-inline-start` (default `3px solid <tone-color>`).
268
+
238
269
  <!-- praxis-npm-catalog-links:start -->
239
270
  ## Official documentation and examples
240
271