@steroidsjs/core 3.0.19 → 3.0.20
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
|
@@ -7604,6 +7604,15 @@
|
|
|
7604
7604
|
"example": null,
|
|
7605
7605
|
"defaultValue": null
|
|
7606
7606
|
},
|
|
7607
|
+
{
|
|
7608
|
+
"name": "children",
|
|
7609
|
+
"decorators": [],
|
|
7610
|
+
"description": "Дочерние элементы",
|
|
7611
|
+
"required": false,
|
|
7612
|
+
"type": "ReactNode",
|
|
7613
|
+
"example": null,
|
|
7614
|
+
"defaultValue": null
|
|
7615
|
+
},
|
|
7607
7616
|
{
|
|
7608
7617
|
"name": "className",
|
|
7609
7618
|
"decorators": [],
|
|
@@ -7743,6 +7752,14 @@
|
|
|
7743
7752
|
"type": "default",
|
|
7744
7753
|
"example": null
|
|
7745
7754
|
},
|
|
7755
|
+
{
|
|
7756
|
+
"name": "children",
|
|
7757
|
+
"decorators": [],
|
|
7758
|
+
"description": "",
|
|
7759
|
+
"required": true,
|
|
7760
|
+
"type": "ReactNode",
|
|
7761
|
+
"example": null
|
|
7762
|
+
},
|
|
7746
7763
|
{
|
|
7747
7764
|
"name": "className",
|
|
7748
7765
|
"decorators": [],
|
package/package.json
CHANGED
|
@@ -141,6 +141,10 @@ export interface ICalendarSystemProps extends IUiComponent {
|
|
|
141
141
|
* Дополнительные свойства для бокового календаря
|
|
142
142
|
*/
|
|
143
143
|
asideCalendarProps?: ICalendarProps;
|
|
144
|
+
/**
|
|
145
|
+
* Дочерние элементы
|
|
146
|
+
*/
|
|
147
|
+
children?: React.ReactNode;
|
|
144
148
|
[key: string]: any;
|
|
145
149
|
}
|
|
146
150
|
export interface ICalendarSystemViewProps extends Pick<ICalendarSystemProps, 'className' | 'style' | 'additionalViewProps' | 'users' | 'asideCalendarProps'> {
|
|
@@ -153,6 +157,7 @@ export interface ICalendarSystemViewProps extends Pick<ICalendarSystemProps, 'cl
|
|
|
153
157
|
handleCalendarTypeChange: (newType: string) => void;
|
|
154
158
|
onClickControl: (event: React.MouseEvent<HTMLElement>) => void;
|
|
155
159
|
calendarType: CalendarEnum;
|
|
160
|
+
children: React.ReactNode;
|
|
156
161
|
getEventsFromDate: (dateFromDay: Date, currentCalendarType: CalendarEnum) => IEvent[];
|
|
157
162
|
openEditModal: (event: IEvent) => void;
|
|
158
163
|
openCreateModal: (eventInitialDay?: IDay) => void;
|
|
@@ -37,6 +37,7 @@ function CalendarSystem(props) {
|
|
|
37
37
|
users: calendarSystem.users,
|
|
38
38
|
eventGroupsTitle: props.eventBlock.title,
|
|
39
39
|
asideCalendarProps: props.asideCalendarProps,
|
|
40
|
+
children: props.children,
|
|
40
41
|
dateToDisplay: calendarSystem.dateToDisplay,
|
|
41
42
|
eventGroups: calendarSystem.innerEventGroups,
|
|
42
43
|
calendarType: calendarSystem.calendarType,
|
|
@@ -51,7 +52,7 @@ function CalendarSystem(props) {
|
|
|
51
52
|
monthGridProps: __assign({ monthGridWeekDays: calendarSystem.monthGridWeekDays, monthGridCalendarDays: calendarSystem.monthGridCalendarDays }, monthGridViews),
|
|
52
53
|
weekGridProps: __assign({ weekGridTwentyFourHoursArray: calendarSystem.weekGridTwentyFourHoursArray, weekGridCurrentWeekDays: calendarSystem.weekGridCurrentWeekDays }, weekGridViews),
|
|
53
54
|
dayGridProps: __assign({ dayGridTwentyFourHoursArray: calendarSystem.dayGridTwentyFourHoursArray, dayGridCurrentDay: calendarSystem.dayGridCurrentDay }, dayGridViews)
|
|
54
|
-
}); }, [props.className, props.style, props.additionalViewProps, props.eventBlock.title, props.asideCalendarProps, calendarSystem, monthGridViews, weekGridViews, dayGridViews]);
|
|
55
|
+
}); }, [props.className, props.style, props.additionalViewProps, props.eventBlock.title, props.asideCalendarProps, props.children, calendarSystem, monthGridViews, weekGridViews, dayGridViews]);
|
|
55
56
|
return components.ui.renderView(props.view || 'content.CalendarSystemView', viewProps);
|
|
56
57
|
}
|
|
57
58
|
exports["default"] = CalendarSystem;
|