|
11 | 11 | For now, the OnyxUnstableDatePickerV2 component is marked as experimental/unstable which means that it is still under active development and the API might change in patch or minor releases. Keep an eye on the [changelog](https://onyx.schwarz/development/packages/changelogs/sit-onyx.html) when using it. |
12 | 12 |
|
13 | 13 | - 661b343: feat(OnyxTimePicker): implemented range mode |
14 | | -- 984ce9e: feat(OnyxDataGrid): Extended feature API with new 'enhanceCells' and 'enhanceRow' hooks |
15 | | - |
16 | | - These allow modifying render details per cell/row. |
17 | | - The provided function is called for each cell/row, after the matching typeRenderer was applied. |
18 | | - |
19 | 14 | - 5ffe689: feat(OnyxFormElementV2): implement `skeleton` property |
20 | 15 | - 79b76de: feat(OnyxFormElementV2): support `loading` property and fix height to align with other form elements |
| 16 | +- 3084837: feat(OnyxFormElementV2): improve popover handling and styles |
| 17 | + - block input typing when popover exists |
| 18 | + - manage open state + close on outside click |
| 19 | + - support `popoverOptions` property |
| 20 | + - apply focus styles when popover is open |
21 | 21 | - db6f050: feat(OnyxPageLayout): add smooth scroll behavior to main content / scroll area |
22 | 22 | - 984ce9e: feat(OnyxDataGrid): Added base row type 'select' |
| 23 | +- 984ce9e: feat(OnyxDataGrid): Extended feature API with new 'enhanceCells' and 'enhanceRow' hooks |
| 24 | + These allow modifying render details per cell/row. |
| 25 | + The provided function is called for each cell/row, after the matching typeRenderer was applied. |
23 | 26 | - 984ce9e: feat(OnyxDataGrid): Implemented basic `useEditing()` inline editing feature |
24 | 27 |
|
25 | 28 | For all base column `typeRenderers` editing is supported. |
|
33 | 36 | export const MY_CUSTOM_RENDERER = DataGridFeatures.createTypeRenderer({ |
34 | 37 | header: { component: HeaderCell }, |
35 | 38 | cell: { |
36 | | - component: ({ column, row, metadata, modelValue, ...rest }) => |
| 39 | + // The *rest* property includes `modelValue` and the `onUpdate:modelValue` event handler |
| 40 | + component: ({ column, row, metadata, ...rest }) => |
37 | 41 | metadata?.editable |
38 | 42 | ? h(EditingComponent, { |
39 | | - ...rest, |
40 | 43 | label: `${column} with id ${row.id}`, |
41 | | - modelValue, |
| 44 | + ...rest, |
42 | 45 | }) |
43 | | - : h(DisplayComponent, { modelValue, ...metadata?.typeOptions }), |
| 46 | + : h(DisplayComponent, { ...metadata?.typeOptions, ...rest }), |
44 | 47 | }, |
45 | 48 | }); |
46 | 49 | ``` |
|
51 | 54 | - Filtering and Sorting features are always using the original value, not the edited value. |
52 | 55 |
|
53 | 56 | - f61969f: feat(OnyxSlider): support new `mark` slot for custom mark label content |
54 | | -- 3084837: feat(OnyxFormElementV2): improve popover handling and styles |
55 | | - - block input typing when popover exists |
56 | | - - manage open state + close on outside click |
57 | | - - support `popoverOptions` property |
58 | | - - apply focus styles when popover is open |
59 | 57 |
|
60 | 58 | ### Patch Changes |
61 | 59 |
|
62 | 60 | - 7e193bd: fix(OnyxTab): fix incorrect underline color |
63 | | -- 0f03aa9: fix: prevent hydration mismatch errors in SSR |
| 61 | +- 0f03aa9: fix: Resolve hydration mismatch errors in SSR |
64 | 62 | - b62e57c: fix(OnyxBasicDialog): Fix 'nonDismissible' modal dialogs loosing their background after pressing escape twice |
65 | 63 | - 984ce9e: fix(OnyxDataGrid): Fix increased row height for columnType "boolean" caused by icon |
66 | 64 | - e76203e: refactor(OnyxUnstableFormElementV2): rename type `FormElementPopoverOptions` to `FormElementV2PopoverOptions` |
67 | | - - fix(OnyxUnstableFormElementV2): correctly determine inside elements for closing on outside click |
68 | | - - fix(OnyxBasicPopover): prevent toggle when disabled |
69 | | -- 4b31bbd: fix(OnyxPageLayout): correctly disable centering of nested `onyx-grid-layout` when a sidebar exsists |
| 65 | + - fix(OnyxUnstableFormElementV2): Correctly determine inside elements for closing on outside click |
| 66 | + - fix(OnyxBasicPopover): Prevent toggle when disabled |
| 67 | +- 4b31bbd: fix(OnyxPageLayout): Correctly disable centering of nested `onyx-grid-layout` when a sidebar exsists |
70 | 68 |
|
71 | 69 | ## 1.9.0 |
72 | 70 |
|
|
0 commit comments