@steroidsjs/core 3.0.28 → 3.0.30

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.
@@ -20706,7 +20706,16 @@
20706
20706
  "required": false,
20707
20707
  "type": "void",
20708
20708
  "example": null,
20709
- "parameters": []
20709
+ "parameters": [
20710
+ {
20711
+ "name": "rowsCount",
20712
+ "decorators": [],
20713
+ "description": "",
20714
+ "required": false,
20715
+ "type": "number",
20716
+ "example": null
20717
+ }
20718
+ ]
20710
20719
  },
20711
20720
  {
20712
20721
  "name": "onRemove",
package/hooks/useList.js CHANGED
@@ -266,7 +266,9 @@ function useList(config) {
266
266
  }, [dispatch, config.items, config.listId]);
267
267
  // Destroy
268
268
  (0, react_use_1.useUnmount)(function () {
269
- var autoDestroy = typeof config.autoDestroy === 'boolean' ? config.autoDestroy : exports.defaultConfig.autoDestroy;
269
+ var autoDestroy = typeof config.autoDestroy === 'boolean'
270
+ ? config.autoDestroy
271
+ : exports.defaultConfig.autoDestroy;
270
272
  if (autoDestroy) {
271
273
  dispatch([
272
274
  (0, list_2.listDestroy)(config.listId),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "3.0.28",
3
+ "version": "3.0.30",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
package/reducers/list.js CHANGED
@@ -95,7 +95,8 @@ var reducerMap = (_a = {},
95
95
  },
96
96
  _a[list_1.LIST_DESTROY] = function (state, action) {
97
97
  delete state.lists[action.listId];
98
- return __assign(__assign({}, state), { lists: __assign({}, state.lists) });
98
+ delete state.selectedIds[action.listId];
99
+ return __assign(__assign({}, state), { lists: __assign({}, state.lists), selectedIds: __assign({}, state.selectedIds) });
99
100
  },
100
101
  _a[list_1.LIST_TOGGLE_ITEM] = function (state, action) {
101
102
  var _a;
@@ -136,7 +136,7 @@ export interface IFieldListItemViewProps extends IFieldWrapperOutputProps {
136
136
  required?: boolean;
137
137
  rowIndex: number;
138
138
  showRemove: boolean;
139
- onAdd?: () => void;
139
+ onAdd?: (rowsCount?: number) => void;
140
140
  }
141
141
  declare const _default: import("../../form/Field/fieldWrapper").FieldWrapperComponent<IFieldListProps>;
142
142
  export default _default;
@@ -126,6 +126,7 @@ export interface IGridColumn {
126
126
  percentageAttribute: string;
127
127
  }[];
128
128
  };
129
+ [key: string]: any;
129
130
  }
130
131
  /**
131
132
  * Grid