@linzjs/step-ag-grid 31.2.0 → 31.2.2
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/dist/step-ag-grid.cjs +4 -4
- package/dist/step-ag-grid.cjs.map +1 -1
- package/dist/step-ag-grid.esm.js +4 -4
- package/dist/step-ag-grid.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/Grid.tsx +2 -2
- package/src/components/gridForm/GridFormPopoverMenu.tsx +2 -4
- package/src/stories/grid/gridFormStatic/GridFormPopoverMenu.stories.tsx +12 -3
package/dist/step-ag-grid.cjs
CHANGED
|
@@ -61936,11 +61936,11 @@ maxInitialWidth,
|
|
|
61936
61936
|
multiDragCountRef.current = 0;
|
|
61937
61937
|
}, onRowDragEnd: onRowDragEnd, onRowDragMove: onRowDragMove, onSelectionChanged: synchroniseExternalStateToGridSelection, onSortChanged: onSortChanged, pinnedBottomRowData: params.pinnedBottomRowData, pinnedTopRowData: params.pinnedTopRowData, postSortRows: params.onRowDragEnd || !defaultPostSort ? undefined : postSortRows, preventDefaultOnContextMenu: true, quickFilterParser: quickFilterParser, rowClassRules: params.rowClassRules, rowDragText: params.rowDragText ??
|
|
61938
61938
|
(rowSelection === 'multiple'
|
|
61939
|
-
? () => {
|
|
61939
|
+
? (dragItem) => {
|
|
61940
61940
|
const count = multiDragCountRef.current;
|
|
61941
61941
|
if (count > 1)
|
|
61942
61942
|
return `Moving ${count} rows`;
|
|
61943
|
-
return ''
|
|
61943
|
+
return `${dragItem.rowNode?.data?.id ?? ''}`;
|
|
61944
61944
|
}
|
|
61945
61945
|
: undefined), rowHeight: rowHeight, rowSelection: selectable
|
|
61946
61946
|
? {
|
|
@@ -63746,7 +63746,7 @@ const GridFormPopoverMenu = (props) => {
|
|
|
63746
63746
|
invalid: () => subComponentSelected && !subComponentIsValid.current,
|
|
63747
63747
|
save,
|
|
63748
63748
|
});
|
|
63749
|
-
return popoverWrapper(jsxRuntime.jsx(ComponentLoadingWrapper, { loading: !options, className: 'GridFormPopupMenu', children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: lodashEs.isEmpty(options) ? (jsxRuntime.jsx(MenuItem, { className: 'GridPopoverMenu-noOptions', disabled: true, children: "No actions" }, `GridPopoverMenu-empty`)) : (options?.map((item, index) => item.label === '__isMenuSeparator__' ? (jsxRuntime.jsx(MenuDivider, {}, `$$divider_${index}`)) : (!item.hidden && (jsxRuntime.jsxs(React13.Fragment, { children: [item.subMenu ? (jsxRuntime.jsx(SubMenu, { disabled: !!item.disabled, label: item.label, title: item.disabled && typeof item.disabled !== 'boolean' ? item.disabled : '', children: jsxRuntime.jsx(item.subMenu, {}) }
|
|
63749
|
+
return popoverWrapper(jsxRuntime.jsx(ComponentLoadingWrapper, { loading: !options, className: 'GridFormPopupMenu', children: jsxRuntime.jsx(jsxRuntime.Fragment, { children: lodashEs.isEmpty(options) ? (jsxRuntime.jsx(MenuItem, { className: 'GridPopoverMenu-noOptions', disabled: true, children: "No actions" }, `GridPopoverMenu-empty`)) : (options?.map((item, index) => item.label === '__isMenuSeparator__' ? (jsxRuntime.jsx(MenuDivider, {}, `$$divider_${index}`)) : (!item.hidden && (jsxRuntime.jsxs(React13.Fragment, { children: [item.subMenu ? (jsxRuntime.jsx(SubMenu, { disabled: !!item.disabled, label: item.label, title: item.disabled && typeof item.disabled !== 'boolean' ? item.disabled : '', children: jsxRuntime.jsx(item.subMenu, {}) })) : (jsxRuntime.jsx(MenuItem, { onClick: (e) => void onMenuItemClick(e, item), disabled: !!item.disabled, title: item.disabled && typeof item.disabled !== 'boolean' ? item.disabled : '', children: item.label })), item.subComponent && subComponentSelected === item && (jsxRuntime.jsx(FocusableItem, { className: 'LuiDeprecatedForms', children: () => (jsxRuntime.jsx(GridSubComponentContext.Provider, { value: {
|
|
63750
63750
|
context: {},
|
|
63751
63751
|
data,
|
|
63752
63752
|
value: subSelectedValue,
|
|
@@ -63757,7 +63757,7 @@ const GridFormPopoverMenu = (props) => {
|
|
|
63757
63757
|
subComponentIsValid.current = valid;
|
|
63758
63758
|
},
|
|
63759
63759
|
triggerSave,
|
|
63760
|
-
}, children: jsxRuntime.jsx("div", { className: 'subComponent', children: item.subComponent && jsxRuntime.jsx(item.subComponent, {}) }) })) }
|
|
63760
|
+
}, children: jsxRuntime.jsx("div", { className: 'subComponent', children: item.subComponent && jsxRuntime.jsx(item.subComponent, {}) }) })) }))] }, `fragment__${index}`))))) }) }));
|
|
63761
63761
|
};
|
|
63762
63762
|
|
|
63763
63763
|
const TextAreaInput = (props) => {
|