@steroidsjs/core 3.0.0-beta.86 → 3.0.0-beta.88
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.
|
@@ -16,14 +16,13 @@ export interface IAutoCompleteConfig {
|
|
|
16
16
|
*/
|
|
17
17
|
delay?: number;
|
|
18
18
|
}
|
|
19
|
-
export type
|
|
19
|
+
export type DataProviderItems = string | ({
|
|
20
20
|
new (): Enum;
|
|
21
21
|
}) | (string | number | {
|
|
22
22
|
id: string | number | boolean;
|
|
23
23
|
label: string | any;
|
|
24
24
|
[key: string]: any;
|
|
25
|
-
});
|
|
26
|
-
export type DataProviderItems = DataProviderItem[];
|
|
25
|
+
})[];
|
|
27
26
|
export interface IDataProvider {
|
|
28
27
|
/**
|
|
29
28
|
* Уникальный (глобально) идентификатор, под которых будут храниться
|
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@ export interface IEventGroup {
|
|
|
28
28
|
export interface ICalendarSystemProps extends IUiComponent {
|
|
29
29
|
onCreateEvent?: () => void;
|
|
30
30
|
onChangeCalendarType?: (newType: string) => void;
|
|
31
|
-
createEventModalProps
|
|
31
|
+
createEventModalProps?: IModalProps;
|
|
32
32
|
eventBlock: {
|
|
33
33
|
title: string;
|
|
34
34
|
eventGroups: IEventGroup[];
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import Enum from '../../../base/Enum';
|
|
2
3
|
import { IFieldWrapperInputProps, IFieldWrapperOutputProps } from '../../../ui/form/Field/fieldWrapper';
|
|
3
|
-
import {
|
|
4
|
+
import { IDataProviderConfig } from '../../../hooks/useDataProvider';
|
|
4
5
|
import { IDataSelectConfig } from '../../../hooks/useDataSelect';
|
|
5
6
|
import { ICheckboxFieldViewProps } from '../CheckboxField/CheckboxField';
|
|
6
|
-
type
|
|
7
|
+
type CheckboxFieldListItems = string | ({
|
|
8
|
+
new (): Enum;
|
|
9
|
+
}) | (string | number | {
|
|
10
|
+
id: string | number | boolean;
|
|
11
|
+
label: string | any;
|
|
7
12
|
color?: string;
|
|
8
|
-
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
})[];
|
|
9
15
|
/**
|
|
10
16
|
* CheckboxListField
|
|
11
17
|
*
|
|
@@ -25,7 +31,7 @@ export interface ICheckboxListFieldProps extends IFieldWrapperInputProps, Omit<I
|
|
|
25
31
|
* Коллекция элементов
|
|
26
32
|
* @example [{id: 1, label: 'Krasnoyarsk', color: 'red'}, {id: 2, label: 'Moscow', color: 'purple'}]
|
|
27
33
|
*/
|
|
28
|
-
items:
|
|
34
|
+
items: CheckboxFieldListItems;
|
|
29
35
|
[key: string]: any;
|
|
30
36
|
}
|
|
31
37
|
export interface ICheckboxListFieldViewProps extends IFieldWrapperOutputProps {
|