@steroidsjs/core 3.0.31 → 3.0.33
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 +36 -2
- package/en.json +2 -0
- package/package.json +1 -1
- package/ui/content/CalendarSystem/CalendarSystem.d.ts +7 -2
- package/ui/content/CalendarSystem/CalendarSystem.js +2 -1
- package/ui/form/CheckboxListField/CheckboxListField.d.ts +4 -0
- package/ui/form/CheckboxListField/CheckboxListField.js +1 -1
- package/ui/form/CheckboxTreeField/CheckboxTreeField.d.ts +1 -0
- package/ui/form/CheckboxTreeField/CheckboxTreeField.js +4 -3
- package/ui/form/DropDownField/DropDownField.js +2 -2
package/docs-autogen-result.json
CHANGED
|
@@ -7586,6 +7586,15 @@
|
|
|
7586
7586
|
"example": null,
|
|
7587
7587
|
"defaultValue": null
|
|
7588
7588
|
},
|
|
7589
|
+
{
|
|
7590
|
+
"name": "asideCalendarCheckboxListProps",
|
|
7591
|
+
"decorators": [],
|
|
7592
|
+
"description": "Дополнительные свойства для списка календарей бокового календаря",
|
|
7593
|
+
"required": false,
|
|
7594
|
+
"type": "ICheckboxListFieldProps",
|
|
7595
|
+
"example": null,
|
|
7596
|
+
"defaultValue": null
|
|
7597
|
+
},
|
|
7589
7598
|
{
|
|
7590
7599
|
"name": "asideCalendarProps",
|
|
7591
7600
|
"decorators": [],
|
|
@@ -7643,7 +7652,7 @@
|
|
|
7643
7652
|
{
|
|
7644
7653
|
"name": "eventGroupModalProps",
|
|
7645
7654
|
"decorators": [],
|
|
7646
|
-
"description": "Свойства для
|
|
7655
|
+
"description": "Свойства для модального окна группы событий",
|
|
7647
7656
|
"required": false,
|
|
7648
7657
|
"type": "IModalProps",
|
|
7649
7658
|
"example": null,
|
|
@@ -7725,7 +7734,7 @@
|
|
|
7725
7734
|
"defaultProps": null,
|
|
7726
7735
|
"extends": [
|
|
7727
7736
|
"Pick<ICalendarSystemProps",
|
|
7728
|
-
"'className' | 'style' | 'additionalViewProps' | 'users' | 'asideCalendarProps'>"
|
|
7737
|
+
"'className' | 'style' | 'additionalViewProps' | 'users' | 'asideCalendarProps' | 'asideCalendarCheckboxListProps'>"
|
|
7729
7738
|
],
|
|
7730
7739
|
"properties": [
|
|
7731
7740
|
{
|
|
@@ -7736,6 +7745,14 @@
|
|
|
7736
7745
|
"type": "Record",
|
|
7737
7746
|
"example": null
|
|
7738
7747
|
},
|
|
7748
|
+
{
|
|
7749
|
+
"name": "asideCalendarCheckboxListProps",
|
|
7750
|
+
"decorators": [],
|
|
7751
|
+
"description": "Дополнительные свойства для списка календарей бокового календаря",
|
|
7752
|
+
"required": false,
|
|
7753
|
+
"type": "ICheckboxListFieldProps",
|
|
7754
|
+
"example": null
|
|
7755
|
+
},
|
|
7739
7756
|
{
|
|
7740
7757
|
"name": "asideCalendarProps",
|
|
7741
7758
|
"decorators": [],
|
|
@@ -15455,6 +15472,15 @@
|
|
|
15455
15472
|
"example": null,
|
|
15456
15473
|
"defaultValue": null
|
|
15457
15474
|
},
|
|
15475
|
+
{
|
|
15476
|
+
"name": "itemViewProps",
|
|
15477
|
+
"decorators": [],
|
|
15478
|
+
"description": "Пропсы для отображения элемента",
|
|
15479
|
+
"required": false,
|
|
15480
|
+
"type": "any",
|
|
15481
|
+
"example": null,
|
|
15482
|
+
"defaultValue": null
|
|
15483
|
+
},
|
|
15458
15484
|
{
|
|
15459
15485
|
"name": "items",
|
|
15460
15486
|
"decorators": [],
|
|
@@ -16264,6 +16290,14 @@
|
|
|
16264
16290
|
"type": "IInputParams",
|
|
16265
16291
|
"example": null
|
|
16266
16292
|
},
|
|
16293
|
+
{
|
|
16294
|
+
"name": "itemProps",
|
|
16295
|
+
"decorators": [],
|
|
16296
|
+
"description": "",
|
|
16297
|
+
"required": true,
|
|
16298
|
+
"type": "any",
|
|
16299
|
+
"example": null
|
|
16300
|
+
},
|
|
16267
16301
|
{
|
|
16268
16302
|
"name": "itemView",
|
|
16269
16303
|
"decorators": [],
|
package/en.json
CHANGED
|
@@ -988,6 +988,7 @@
|
|
|
988
988
|
"Количество элементов на странице, используется для корректного отображения пагинации": "",
|
|
989
989
|
"Параметры роутинга": "",
|
|
990
990
|
"Сохранение в localStorage уровней вложенности.": "",
|
|
991
|
+
"Дополнительные свойства для списка календарей бокового календаря": "",
|
|
991
992
|
"Дополнительные свойства для бокового календаря": "",
|
|
992
993
|
"Свойства для сетки дня": "",
|
|
993
994
|
"Свойства для сетки месяца": "",
|
|
@@ -997,6 +998,7 @@
|
|
|
997
998
|
"Дополнительные данные которые попадут в дата аттрибут data-icon": "",
|
|
998
999
|
"Компоненты для подключения wysiwyg редактора": "",
|
|
999
1000
|
"Текст при отсутствии элементов": "",
|
|
1001
|
+
"Пропсы для отображения элемента": "",
|
|
1000
1002
|
"Отображать чекбоксы только на узлах, не имеющих вложенных элементов": "",
|
|
1001
1003
|
"View компонент для элемента дерева": "",
|
|
1002
1004
|
"Разделитель для даты и времени, не влияет на отображение": "",
|
package/package.json
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ICheckboxListFieldProps } from '../../../ui/form/CheckboxListField/CheckboxListField';
|
|
2
3
|
import { ICalendarProps } from '../../../ui/content/Calendar/Calendar';
|
|
3
4
|
import { IModalProps } from '../../../ui/modal/Modal/Modal';
|
|
4
5
|
import CalendarEnum from './enums/CalendarType';
|
|
@@ -104,7 +105,7 @@ export interface ICalendarSystemProps extends IUiComponent {
|
|
|
104
105
|
*/
|
|
105
106
|
calendarModalProps?: IModalProps;
|
|
106
107
|
/**
|
|
107
|
-
* Свойства для
|
|
108
|
+
* Свойства для модального окна группы событий
|
|
108
109
|
*/
|
|
109
110
|
eventGroupModalProps?: IModalProps;
|
|
110
111
|
/**
|
|
@@ -141,13 +142,17 @@ export interface ICalendarSystemProps extends IUiComponent {
|
|
|
141
142
|
* Дополнительные свойства для бокового календаря
|
|
142
143
|
*/
|
|
143
144
|
asideCalendarProps?: ICalendarProps;
|
|
145
|
+
/**
|
|
146
|
+
* Дополнительные свойства для списка календарей бокового календаря
|
|
147
|
+
*/
|
|
148
|
+
asideCalendarCheckboxListProps?: ICheckboxListFieldProps;
|
|
144
149
|
/**
|
|
145
150
|
* Дочерние элементы
|
|
146
151
|
*/
|
|
147
152
|
children?: React.ReactNode;
|
|
148
153
|
[key: string]: any;
|
|
149
154
|
}
|
|
150
|
-
export interface ICalendarSystemViewProps extends Pick<ICalendarSystemProps, 'className' | 'style' | 'additionalViewProps' | 'users' | 'asideCalendarProps'> {
|
|
155
|
+
export interface ICalendarSystemViewProps extends Pick<ICalendarSystemProps, 'className' | 'style' | 'additionalViewProps' | 'users' | 'asideCalendarProps' | 'asideCalendarCheckboxListProps'> {
|
|
151
156
|
onCalendarChangedMonth: (newDate: Date) => void;
|
|
152
157
|
eventGroups: IEventGroup[];
|
|
153
158
|
eventGroupsTitle: string;
|
|
@@ -37,6 +37,7 @@ function CalendarSystem(props) {
|
|
|
37
37
|
users: calendarSystem.users,
|
|
38
38
|
eventGroupsTitle: props.eventBlock.title,
|
|
39
39
|
asideCalendarProps: props.asideCalendarProps,
|
|
40
|
+
asideCalendarCheckboxListProps: props.asideCalendarCheckboxListProps,
|
|
40
41
|
children: props.children,
|
|
41
42
|
dateToDisplay: calendarSystem.dateToDisplay,
|
|
42
43
|
eventGroups: calendarSystem.innerEventGroups,
|
|
@@ -52,7 +53,7 @@ function CalendarSystem(props) {
|
|
|
52
53
|
monthGridProps: __assign({ monthGridWeekDays: calendarSystem.monthGridWeekDays, monthGridCalendarDays: calendarSystem.monthGridCalendarDays }, monthGridViews),
|
|
53
54
|
weekGridProps: __assign({ weekGridTwentyFourHoursArray: calendarSystem.weekGridTwentyFourHoursArray, weekGridCurrentWeekDays: calendarSystem.weekGridCurrentWeekDays }, weekGridViews),
|
|
54
55
|
dayGridProps: __assign({ dayGridTwentyFourHoursArray: calendarSystem.dayGridTwentyFourHoursArray, dayGridCurrentDay: calendarSystem.dayGridCurrentDay }, dayGridViews)
|
|
55
|
-
}); }, [props.className, props.style, props.additionalViewProps, props.eventBlock.title, props.asideCalendarProps, props.children, calendarSystem, monthGridViews, weekGridViews, dayGridViews]);
|
|
56
|
+
}); }, [props.className, props.style, props.additionalViewProps, props.eventBlock.title, props.asideCalendarProps, props.asideCalendarCheckboxListProps, props.children, calendarSystem, monthGridViews, weekGridViews, dayGridViews]);
|
|
56
57
|
return components.ui.renderView(props.view || 'content.CalendarSystemView', viewProps);
|
|
57
58
|
}
|
|
58
59
|
exports["default"] = CalendarSystem;
|
|
@@ -48,6 +48,10 @@ export interface ICheckboxListFieldProps extends IFieldWrapperInputProps, Omit<I
|
|
|
48
48
|
* Кастомная вьюшка для элемента
|
|
49
49
|
*/
|
|
50
50
|
itemView?: CustomView;
|
|
51
|
+
/**
|
|
52
|
+
* Пропсы для отображения элемента
|
|
53
|
+
*/
|
|
54
|
+
itemViewProps?: CustomViewProps;
|
|
51
55
|
/**
|
|
52
56
|
* Свойства для компонента отображения
|
|
53
57
|
* @example
|
|
@@ -85,7 +85,7 @@ function CheckboxListField(props) {
|
|
|
85
85
|
}
|
|
86
86
|
}, [onReset, prevInputValue, props.input.value, selectedIds.length]);
|
|
87
87
|
var CheckboxFieldView = props.itemView || components.ui.getView('form.CheckboxFieldView');
|
|
88
|
-
var renderCheckbox = (0, react_1.useCallback)(function (checkboxProps) { return (react_1["default"].createElement(CheckboxFieldView, __assign({}, checkboxProps))); }, [CheckboxFieldView]);
|
|
88
|
+
var renderCheckbox = (0, react_1.useCallback)(function (checkboxProps) { return (react_1["default"].createElement(CheckboxFieldView, __assign({}, checkboxProps, props.itemViewProps))); }, [CheckboxFieldView, props.itemViewProps]);
|
|
89
89
|
var viewProps = (0, react_1.useMemo)(function () { return ({
|
|
90
90
|
items: items,
|
|
91
91
|
inputProps: inputProps,
|
|
@@ -71,6 +71,7 @@ export interface ICheckboxTreeFieldViewProps extends IFieldWrapperOutputProps, P
|
|
|
71
71
|
size?: Size;
|
|
72
72
|
hasOnlyLeafCheckboxes?: boolean;
|
|
73
73
|
itemView: CustomView;
|
|
74
|
+
itemProps: CustomViewProps;
|
|
74
75
|
}
|
|
75
76
|
export declare const getNestedItemsIds: (item: any, groupAttribute: any, hasOnlyLeafCheckboxes?: boolean) => any[];
|
|
76
77
|
declare const _default: import("../../../ui/form/Field/fieldWrapper").FieldWrapperComponent<ICheckboxTreeFieldProps>;
|
|
@@ -131,9 +131,10 @@ function CheckboxTreeField(props) {
|
|
|
131
131
|
levelPadding: props.levelPadding,
|
|
132
132
|
hasOnlyLeafCheckboxes: props.hasOnlyLeafCheckboxes,
|
|
133
133
|
hasIconExpandOnly: props.hasIconExpandOnly,
|
|
134
|
-
itemView: TreeItemView
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
itemView: TreeItemView,
|
|
135
|
+
itemProps: props.itemProps
|
|
136
|
+
}); }, [treeItems, onItemSelect, selectedIds, renderCheckbox, props.size, props.levelPadding,
|
|
137
|
+
props.hasOnlyLeafCheckboxes, props.hasIconExpandOnly, props.itemProps, TreeItemView]);
|
|
137
138
|
return components.ui.renderView(props.view || 'form.CheckboxTreeFieldView', viewProps);
|
|
138
139
|
}
|
|
139
140
|
CheckboxTreeField.defaultProps = {
|
|
@@ -238,8 +238,8 @@ function DropDownField(props) {
|
|
|
238
238
|
showEllipses: props.showEllipses,
|
|
239
239
|
errors: props.errors,
|
|
240
240
|
disabled: props.disabled
|
|
241
|
-
}); }, [isAutoComplete, items, hoveredId, selectedIds, searchInputProps, isOpened, isLoading, onOpen,
|
|
242
|
-
|
|
241
|
+
}); }, [isAutoComplete, items, hoveredId, selectedIds, searchInputProps, isOpened, isLoading, onOpen, selectedItems,
|
|
242
|
+
onReset, onClose, renderItem, onItemRemove, hasGroup, props.multiple, props.isSearchAutoFocus,
|
|
243
243
|
props.className, props.style, props.size, props.color, props.outline, props.placeholder, props.showReset, props.showEllipses,
|
|
244
244
|
props.errors, props.disabled, normalizedItemToSelectAll]);
|
|
245
245
|
return components.ui.renderView(props.view || 'form.DropDownFieldView', viewProps);
|