@steroidsjs/core 3.0.10 → 3.0.12
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/docs-autogen-result.json
CHANGED
|
@@ -3163,7 +3163,7 @@
|
|
|
3163
3163
|
"decorators": [],
|
|
3164
3164
|
"description": "Коллекция элементов",
|
|
3165
3165
|
"required": false,
|
|
3166
|
-
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record}[]",
|
|
3166
|
+
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record | number}[]",
|
|
3167
3167
|
"example": "[\n {\n id: 1,\n label: 'Krasnoyarsk'\n },\n {\n id: 2,\n label: 'Moscow'\n }\n]"
|
|
3168
3168
|
},
|
|
3169
3169
|
{
|
|
@@ -13258,7 +13258,7 @@
|
|
|
13258
13258
|
"decorators": [],
|
|
13259
13259
|
"description": "Коллекция элементов",
|
|
13260
13260
|
"required": false,
|
|
13261
|
-
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record}[]",
|
|
13261
|
+
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record | number}[]",
|
|
13262
13262
|
"example": "[\n {\n id: 1,\n label: 'Krasnoyarsk'\n },\n {\n id: 2,\n label: 'Moscow'\n }\n]",
|
|
13263
13263
|
"defaultValue": null
|
|
13264
13264
|
},
|
|
@@ -24742,7 +24742,7 @@
|
|
|
24742
24742
|
"decorators": [],
|
|
24743
24743
|
"description": "Коллекция элементов",
|
|
24744
24744
|
"required": false,
|
|
24745
|
-
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record}[]",
|
|
24745
|
+
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record | number}[]",
|
|
24746
24746
|
"example": "[\n {\n id: 1,\n label: 'Krasnoyarsk'\n },\n {\n id: 2,\n label: 'Moscow'\n }\n]",
|
|
24747
24747
|
"defaultValue": null
|
|
24748
24748
|
},
|
|
@@ -26519,7 +26519,7 @@
|
|
|
26519
26519
|
"decorators": [],
|
|
26520
26520
|
"description": "Коллекция элементов",
|
|
26521
26521
|
"required": false,
|
|
26522
|
-
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record}[]",
|
|
26522
|
+
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record | number}[]",
|
|
26523
26523
|
"example": "[\n {\n id: 1,\n label: 'Krasnoyarsk'\n },\n {\n id: 2,\n label: 'Moscow'\n }\n]",
|
|
26524
26524
|
"defaultValue": null
|
|
26525
26525
|
},
|
|
@@ -28716,7 +28716,7 @@
|
|
|
28716
28716
|
"decorators": [],
|
|
28717
28717
|
"description": "Коллекция элементов",
|
|
28718
28718
|
"required": false,
|
|
28719
|
-
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record}[]",
|
|
28719
|
+
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record | number}[]",
|
|
28720
28720
|
"example": "[\n {\n id: 1,\n label: 'Krasnoyarsk'\n },\n {\n id: 2,\n label: 'Moscow'\n }\n]",
|
|
28721
28721
|
"defaultValue": null
|
|
28722
28722
|
},
|
|
@@ -31063,7 +31063,7 @@
|
|
|
31063
31063
|
"decorators": [],
|
|
31064
31064
|
"description": "Перечисление элементов.\n1) Может быть строкой вида: `app.geo.enums.Cities`\n2) Массивом: ['{'id: 1, label: \"London\"'}']",
|
|
31065
31065
|
"required": false,
|
|
31066
|
-
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record}[]",
|
|
31066
|
+
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record | number}[]",
|
|
31067
31067
|
"example": null,
|
|
31068
31068
|
"defaultValue": null
|
|
31069
31069
|
},
|
|
@@ -37390,7 +37390,7 @@
|
|
|
37390
37390
|
"decorators": [],
|
|
37391
37391
|
"description": "Элементы для группы кнопок",
|
|
37392
37392
|
"required": true,
|
|
37393
|
-
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record}[]",
|
|
37393
|
+
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record | number}[]",
|
|
37394
37394
|
"example": "[\n 'button1',\n 'button2',\n 'button3'\n]",
|
|
37395
37395
|
"defaultValue": null
|
|
37396
37396
|
},
|
|
@@ -39836,7 +39836,7 @@
|
|
|
39836
39836
|
"decorators": [],
|
|
39837
39837
|
"description": "",
|
|
39838
39838
|
"required": true,
|
|
39839
|
-
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record}[]",
|
|
39839
|
+
"type": "string | {} | string | number | {id: string | number | boolean, label: string | Record | number}[]",
|
|
39840
39840
|
"example": null
|
|
39841
39841
|
},
|
|
39842
39842
|
"ColorName": {
|
|
@@ -20,7 +20,7 @@ export type DataProviderItems = string | ({
|
|
|
20
20
|
new (): Enum;
|
|
21
21
|
}) | (string | number | {
|
|
22
22
|
id: string | number | boolean;
|
|
23
|
-
label: string | Record<string, any
|
|
23
|
+
label: string | Record<string, any> | number;
|
|
24
24
|
[key: string]: any;
|
|
25
25
|
})[];
|
|
26
26
|
export interface IDataProvider {
|
package/hooks/useTree.js
CHANGED
|
@@ -124,7 +124,10 @@ function useTree(config) {
|
|
|
124
124
|
var selectedItem = findChildById(items, selectedItemId, primaryKey);
|
|
125
125
|
setSelectedUniqueId(selectedItem ? selectedItem.uniqueId : null);
|
|
126
126
|
}, [items]);
|
|
127
|
-
var localTree =
|
|
127
|
+
var localTree = (0, react_1.useMemo)(function () {
|
|
128
|
+
var rawLocalTree = clientStorage.get(CLIENT_STORAGE_KEY);
|
|
129
|
+
return rawLocalTree ? JSON.parse(rawLocalTree) : {};
|
|
130
|
+
}, [clientStorage]);
|
|
128
131
|
var saveInClientStorage = function () {
|
|
129
132
|
if (config.saveInClientStorage) {
|
|
130
133
|
localTree[config.clientStorageId] = expandedItems;
|