@steroidsjs/core 2.2.95 → 2.2.97

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/hooks/useFetch.js CHANGED
@@ -102,7 +102,7 @@ function useFetch(rawConfig) {
102
102
  var _a = react_1.useState(exports.normalizeConfig(rawConfig)), config = _a[0], setConfig = _a[1];
103
103
  // Update config in state on raw config updated
104
104
  react_use_1.useUpdateEffect(function () {
105
- setConfig(rawConfig);
105
+ setConfig(exports.normalizeConfig(rawConfig));
106
106
  }, [rawConfig]);
107
107
  // Get preloaded data
108
108
  var configId = exports.getConfigId(config);
@@ -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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "2.2.95",
3
+ "version": "2.2.97",
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,