@steroidsjs/core 3.0.31 → 3.0.32

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.
@@ -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": [],
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@steroidsjs/core",
3
- "version": "3.0.31",
3
+ "version": "3.0.32",
4
4
  "description": "",
5
5
  "author": "Vladimir Kozhin <hello@kozhindev.com>",
6
6
  "repository": {
@@ -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,
@@ -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
- selectedItems, onReset, onClose, renderItem, onItemRemove, hasGroup, props.multiple, props.isSearchAutoFocus,
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);