@steroidsjs/core 3.0.0-beta.21 → 3.0.0-beta.22
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/package.json
CHANGED
package/reducers/list.d.ts
CHANGED
|
@@ -10,3 +10,4 @@ export declare const getListItems: (state: any, listId: any) => any;
|
|
|
10
10
|
export declare const getSelectedIds: (state: any, listId: any) => any;
|
|
11
11
|
export declare const isSelected: (state: any, listId: any, itemId: any) => any;
|
|
12
12
|
export declare const isSelectedAll: (state: any, listId: any) => any;
|
|
13
|
+
export declare const getCheckedIds: (state: any, listId: any) => any;
|
package/reducers/list.js
CHANGED
|
@@ -24,7 +24,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
var _a;
|
|
26
26
|
exports.__esModule = true;
|
|
27
|
-
exports.isSelectedAll = exports.isSelected = exports.getSelectedIds = exports.getListItems = exports.getIds = exports.getList = exports.isListInitialized = void 0;
|
|
27
|
+
exports.getCheckedIds = exports.isSelectedAll = exports.isSelected = exports.getSelectedIds = exports.getListItems = exports.getIds = exports.getList = exports.isListInitialized = void 0;
|
|
28
28
|
var get_1 = __importDefault(require("lodash-es/get"));
|
|
29
29
|
var isMatch_1 = __importDefault(require("lodash-es/isMatch"));
|
|
30
30
|
var every_1 = __importDefault(require("lodash-es/every"));
|
|
@@ -152,3 +152,6 @@ var isSelectedAll = function (state, listId) {
|
|
|
152
152
|
&& (0, every_1["default"])((0, exports.getIds)(state, listId).map(function (id) { return selectedIds.includes(id); })));
|
|
153
153
|
};
|
|
154
154
|
exports.isSelectedAll = isSelectedAll;
|
|
155
|
+
// deprecated
|
|
156
|
+
var getCheckedIds = function (state, listId) { return (0, get_1["default"])(state, ['list', 'selectedIds', listId]) || []; };
|
|
157
|
+
exports.getCheckedIds = getCheckedIds;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IAccordionCommonViewProps } from 'src/ui/content/Accordion/Accordion';
|
|
3
|
-
import { IDataProviderConfig } from '../../../hooks/useDataProvider';
|
|
3
|
+
import { DataProviderItems, IDataProviderConfig } from '../../../hooks/useDataProvider';
|
|
4
4
|
import { IDataSelectConfig } from '../../../hooks/useDataSelect';
|
|
5
5
|
import { IFieldWrapperInputProps } from '../../form/Field/fieldWrapper';
|
|
6
6
|
export declare const GROUP_CONTENT_TYPE = "group";
|
|
@@ -86,7 +86,7 @@ export interface IDropDownFieldProps extends IFieldWrapperInputProps, Omit<IData
|
|
|
86
86
|
* Элементы вложенные внутрь DropDownField
|
|
87
87
|
* @example [{id: 1, label: 'Ivan Ivanov', type: 'icon', typeSrc: 'user'}]
|
|
88
88
|
*/
|
|
89
|
-
items?: IDropDownFieldItem[];
|
|
89
|
+
items?: IDropDownFieldItem[] | DataProviderItems;
|
|
90
90
|
/**
|
|
91
91
|
* Нужно ли использовать троеточие при переполнении DropDownField
|
|
92
92
|
* @example {'true'}
|