@steroidsjs/core 2.2.94 → 2.2.96

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.
@@ -72,6 +72,11 @@ export interface IListConfig {
72
72
  * @example {text: 'Записи не найдены'}
73
73
  */
74
74
  empty?: boolean | string | IEmptyProps;
75
+ /**
76
+ * Состояние загрузки элементов списка
77
+ * @example false
78
+ */
79
+ isLoading?: boolean;
75
80
  /**
76
81
  * Форма для поиска элементов
77
82
  * @example {fields: ['title'], model: {attributes: ['title:string:Название']}}
package/hooks/useList.js CHANGED
@@ -237,7 +237,7 @@ function useList(config) {
237
237
  react_use_1.useUpdateEffect(function () {
238
238
  union_1["default"](Object.keys(prevQuery), Object.keys(config.query))
239
239
  .forEach(function (key) {
240
- if (isEqual_1["default"](prevQuery[key], config.query[key])) {
240
+ if (!isEqual_1["default"](prevQuery[key], config.query[key])) {
241
241
  dispatch(form_1.formChange(formId, key, config.query[key]));
242
242
  }
243
243
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.94",
3
+ "version": "2.2.96",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -110,7 +110,8 @@ function Grid(props) {
110
110
  .map(function (column) { return (isString_1["default"](column) ? { attribute: column } : column); })
111
111
  .filter(function (column) { return column.visible !== false; })
112
112
  .map(function (column) { return (__assign(__assign({}, column), { label: renderLabel(column) })); }); }, [props.columns, props.controls, props.itemsIndexing, renderLabel]);
113
- return components.ui.renderView(props.view || 'list.GridView', __assign(__assign({}, props), { paginationPosition: paginationPosition,
113
+ return components.ui.renderView(props.view || 'list.GridView', __assign(__assign({}, props), { list: list,
114
+ paginationPosition: paginationPosition,
114
115
  paginationSizePosition: paginationSizePosition,
115
116
  layoutNamesPosition: layoutNamesPosition,
116
117
  renderList: renderList,