@syncfusion/ej2-schedule 23.2.4 → 24.1.41

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.
Files changed (119) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/ej2-schedule.min.js +2 -2
  3. package/dist/ej2-schedule.umd.min.js +2 -2
  4. package/dist/ej2-schedule.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-schedule.es2015.js +278 -35
  6. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  7. package/dist/es6/ej2-schedule.es5.js +341 -65
  8. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  9. package/dist/global/ej2-schedule.min.js +2 -2
  10. package/dist/global/ej2-schedule.min.js.map +1 -1
  11. package/dist/global/index.d.ts +1 -1
  12. package/package.json +16 -16
  13. package/src/recurrence-editor/recurrence-editor.js +4 -2
  14. package/src/schedule/actions/drag.js +4 -4
  15. package/src/schedule/base/schedule-model.d.ts +15 -1
  16. package/src/schedule/base/schedule.d.ts +14 -1
  17. package/src/schedule/base/schedule.js +5 -0
  18. package/src/schedule/base/type.d.ts +12 -0
  19. package/src/schedule/event-renderer/agenda-base.js +1 -1
  20. package/src/schedule/event-renderer/event-base.d.ts +1 -0
  21. package/src/schedule/event-renderer/event-base.js +25 -1
  22. package/src/schedule/event-renderer/month.js +9 -1
  23. package/src/schedule/event-renderer/timeline-view.js +8 -2
  24. package/src/schedule/event-renderer/year.js +17 -3
  25. package/src/schedule/models/models.d.ts +1 -0
  26. package/src/schedule/models/toolbar-model.d.ts +196 -0
  27. package/src/schedule/models/toolbar.d.ts +176 -0
  28. package/src/schedule/models/toolbar.js +85 -0
  29. package/src/schedule/models/views-model.d.ts +9 -0
  30. package/src/schedule/models/views.d.ts +8 -0
  31. package/src/schedule/models/views.js +3 -0
  32. package/src/schedule/popups/event-window.js +5 -11
  33. package/src/schedule/popups/quick-popups.js +2 -2
  34. package/src/schedule/renderer/header-renderer.d.ts +2 -0
  35. package/src/schedule/renderer/header-renderer.js +142 -4
  36. package/src/schedule/renderer/renderer.js +1 -1
  37. package/src/schedule/renderer/vertical-view.js +3 -3
  38. package/src/schedule/renderer/year.js +3 -0
  39. package/styles/bootstrap-dark.css +26 -22
  40. package/styles/bootstrap.css +26 -22
  41. package/styles/bootstrap4.css +25 -21
  42. package/styles/bootstrap5-dark.css +30 -26
  43. package/styles/bootstrap5.css +30 -26
  44. package/styles/fabric-dark.css +28 -24
  45. package/styles/fabric.css +28 -24
  46. package/styles/fluent-dark.css +28 -24
  47. package/styles/fluent.css +28 -24
  48. package/styles/highcontrast-light.css +26 -22
  49. package/styles/highcontrast.css +26 -22
  50. package/styles/material-dark.css +26 -22
  51. package/styles/material.css +26 -22
  52. package/styles/material3-dark.css +29 -25
  53. package/styles/material3.css +29 -25
  54. package/styles/recurrence-editor/_bootstrap-dark-definition.scss +3 -1
  55. package/styles/recurrence-editor/_bootstrap-definition.scss +3 -1
  56. package/styles/recurrence-editor/_bootstrap4-definition.scss +3 -1
  57. package/styles/recurrence-editor/_bootstrap5-definition.scss +5 -3
  58. package/styles/recurrence-editor/_fabric-dark-definition.scss +4 -2
  59. package/styles/recurrence-editor/_fabric-definition.scss +4 -2
  60. package/styles/recurrence-editor/_fluent-definition.scss +4 -2
  61. package/styles/recurrence-editor/_fusionnew-definition.scss +4 -2
  62. package/styles/recurrence-editor/_highcontrast-definition.scss +3 -1
  63. package/styles/recurrence-editor/_highcontrast-light-definition.scss +3 -1
  64. package/styles/recurrence-editor/_layout.scss +3 -10
  65. package/styles/recurrence-editor/_material-dark-definition.scss +3 -1
  66. package/styles/recurrence-editor/_material-definition.scss +3 -1
  67. package/styles/recurrence-editor/_material3-definition.scss +4 -2
  68. package/styles/recurrence-editor/_tailwind-definition.scss +5 -3
  69. package/styles/recurrence-editor/bootstrap-dark.css +5 -10
  70. package/styles/recurrence-editor/bootstrap.css +5 -10
  71. package/styles/recurrence-editor/bootstrap4.css +4 -9
  72. package/styles/recurrence-editor/bootstrap5-dark.css +9 -14
  73. package/styles/recurrence-editor/bootstrap5.css +9 -14
  74. package/styles/recurrence-editor/fabric-dark.css +7 -12
  75. package/styles/recurrence-editor/fabric.css +7 -12
  76. package/styles/recurrence-editor/fluent-dark.css +7 -12
  77. package/styles/recurrence-editor/fluent.css +7 -12
  78. package/styles/recurrence-editor/highcontrast-light.css +5 -10
  79. package/styles/recurrence-editor/highcontrast.css +5 -10
  80. package/styles/recurrence-editor/material-dark.css +5 -10
  81. package/styles/recurrence-editor/material.css +5 -10
  82. package/styles/recurrence-editor/material3-dark.css +7 -12
  83. package/styles/recurrence-editor/material3.css +7 -12
  84. package/styles/recurrence-editor/tailwind-dark.css +9 -14
  85. package/styles/recurrence-editor/tailwind.css +9 -14
  86. package/styles/schedule/_bootstrap-dark-definition.scss +6 -2
  87. package/styles/schedule/_bootstrap-definition.scss +6 -2
  88. package/styles/schedule/_bootstrap4-definition.scss +6 -2
  89. package/styles/schedule/_bootstrap5-definition.scss +6 -2
  90. package/styles/schedule/_fabric-dark-definition.scss +6 -2
  91. package/styles/schedule/_fabric-definition.scss +6 -2
  92. package/styles/schedule/_fluent-definition.scss +6 -2
  93. package/styles/schedule/_fusionnew-definition.scss +6 -2
  94. package/styles/schedule/_highcontrast-definition.scss +6 -2
  95. package/styles/schedule/_highcontrast-light-definition.scss +6 -2
  96. package/styles/schedule/_layout.scss +23 -10
  97. package/styles/schedule/_material-dark-definition.scss +6 -2
  98. package/styles/schedule/_material-definition.scss +6 -2
  99. package/styles/schedule/_material3-definition.scss +6 -2
  100. package/styles/schedule/_tailwind-definition.scss +6 -2
  101. package/styles/schedule/bootstrap-dark.css +21 -12
  102. package/styles/schedule/bootstrap.css +21 -12
  103. package/styles/schedule/bootstrap4.css +21 -12
  104. package/styles/schedule/bootstrap5-dark.css +21 -12
  105. package/styles/schedule/bootstrap5.css +21 -12
  106. package/styles/schedule/fabric-dark.css +21 -12
  107. package/styles/schedule/fabric.css +21 -12
  108. package/styles/schedule/fluent-dark.css +21 -12
  109. package/styles/schedule/fluent.css +21 -12
  110. package/styles/schedule/highcontrast-light.css +21 -12
  111. package/styles/schedule/highcontrast.css +21 -12
  112. package/styles/schedule/material-dark.css +21 -12
  113. package/styles/schedule/material.css +21 -12
  114. package/styles/schedule/material3-dark.css +22 -13
  115. package/styles/schedule/material3.css +22 -13
  116. package/styles/schedule/tailwind-dark.css +22 -13
  117. package/styles/schedule/tailwind.css +22 -13
  118. package/styles/tailwind-dark.css +31 -27
  119. package/styles/tailwind.css +31 -27
@@ -0,0 +1,196 @@
1
+ import { Property, ChildProperty, Event, EmitType } from '@syncfusion/ej2-base';import { ClickEventArgs, DisplayMode, ItemAlign, ItemType, OverflowOption } from '@syncfusion/ej2-navigations';import { ToolbarName } from '../base/type';
2
+
3
+ /**
4
+ * Interface for a class ToolbarItem
5
+ */
6
+ export interface ToolbarItemModel {
7
+
8
+ /**
9
+ * Specifies the unique ID to be used with button or input element of Toolbar items.
10
+ *
11
+ * @default ""
12
+ */
13
+ id?: string;
14
+
15
+ /**
16
+ * Specifies the text to be displayed on the Toolbar button.
17
+ *
18
+ * @default ""
19
+ */
20
+ text?: string;
21
+
22
+ /**
23
+ * Specifies the width of the Toolbar button commands.
24
+ *
25
+ * @default 'auto'
26
+ */
27
+ width?: number | string;
28
+
29
+ /**
30
+ * Defines single/multiple classes (separated by space) to be used for customization of commands.
31
+ *
32
+ * @default ""
33
+ */
34
+ cssClass?: string;
35
+
36
+ /**
37
+ * Defines the priority of items to display it in popup always.
38
+ * It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.
39
+ *
40
+ * @default false
41
+ */
42
+ showAlwaysInPopup?: boolean;
43
+
44
+ /**
45
+ * Specifies whether an item should be disabled or not.
46
+ *
47
+ * @default false
48
+ */
49
+ disabled?: boolean;
50
+
51
+ /**
52
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
53
+ * The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.
54
+ *
55
+ * @default ""
56
+ */
57
+ prefixIcon?: string;
58
+
59
+ /**
60
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
61
+ * The icon will be positioned after the text content if text is available.
62
+ *
63
+ * @default ""
64
+ */
65
+ suffixIcon?: string;
66
+
67
+ /**
68
+ * Specifies whether an item should be hidden or not.
69
+ *
70
+ * @default true
71
+ */
72
+ visible?: boolean;
73
+
74
+ /**
75
+ * Specifies the Toolbar command display area when an element's content is too large to fit available space.
76
+ * This is applicable only to `popup` mode. The possible values for this property as follows
77
+ * * `Show`: Always shows the item as the primary priority on the *Toolbar*.
78
+ * * `Hide`: Always shows the item as the secondary priority on the *popup*.
79
+ * * `None`: No priority for display, and as per normal order moves to popup when content exceeds.
80
+ *
81
+ * @default 'None'
82
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.OverflowOption.None
83
+ * @isEnumeration true
84
+ * @aspType Syncfusion.EJ2.Navigations.OverflowOption
85
+ */
86
+ overflow?: OverflowOption;
87
+
88
+ /**
89
+ * Specifies the HTML element/element ID as a string that can be added as a Toolbar command.
90
+ * ```
91
+ * E.g - items: [{ template: '<input placeholder="Search"/>' },{ template: '#checkbox1' }]
92
+ * ```
93
+ *
94
+ * @default ""
95
+ * @angularType string | object
96
+ * @reactType string | function | JSX.Element
97
+ * @vueType string | function
98
+ * @aspType string
99
+ */
100
+ template?: string | Object | Function;
101
+
102
+ /**
103
+ * Specifies the types of command to be rendered in the Toolbar.
104
+ * Supported types are:
105
+ * * `Button`: Creates the Button control with its given properties like text, prefixIcon, etc.
106
+ * * `Separator`: Adds a horizontal line that separates the Toolbar commands.
107
+ * * `Input`: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList,
108
+ * AutoComplete, etc.
109
+ *
110
+ * @default 'Button'
111
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.ItemType.Button
112
+ * @isEnumeration true
113
+ * @aspType Syncfusion.EJ2.Navigations.ItemType
114
+ */
115
+ type?: ItemType;
116
+
117
+ /**
118
+ * Specifies where the button text will be displayed on *popup mode* of the Toolbar.
119
+ * The possible values for this property as follows
120
+ * * `Toolbar`: Text will be displayed on *Toolbar* only.
121
+ * * `Overflow`: Text will be displayed only when content overflows to *popup*.
122
+ * * `Both`: Text will be displayed on *popup* and *Toolbar*.
123
+ *
124
+ * @default 'Both'
125
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.DisplayMode.Both
126
+ * @isEnumeration true
127
+ * @aspType Syncfusion.EJ2.Navigations.DisplayMode
128
+ */
129
+ showTextOn?: DisplayMode;
130
+
131
+ /**
132
+ * Defines htmlAttributes used to add custom attributes to Toolbar command.
133
+ * Supports HTML attributes such as style, class, etc.
134
+ *
135
+ * @default null
136
+ */
137
+ htmlAttributes?: { [key: string]: string };
138
+
139
+ /**
140
+ * Specifies the text to be displayed on hovering the Toolbar button.
141
+ *
142
+ * @default ""
143
+ */
144
+ tooltipText?: string;
145
+
146
+ /**
147
+ * Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the `align` property.
148
+ * The possible values for this property as follows
149
+ * * `Left`: To align commands to the left side of the Toolbar.
150
+ * * `Center`: To align commands at the center of the Toolbar.
151
+ * * `Right`: To align commands to the right side of the Toolbar.
152
+ *
153
+ * @default 'Left'
154
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.ItemAlign.Left
155
+ * @isEnumeration true
156
+ * @aspType Syncfusion.EJ2.Navigations.ItemAlign
157
+ */
158
+ align?: ItemAlign;
159
+
160
+ /**
161
+ * Specifies the tab order of the Toolbar items. When positive values assigned, it allows to switch focus to the next/previous toolbar items with Tab/ShiftTab keys.
162
+ * By default, user can able to switch between items only via arrow keys.
163
+ * If the value is set to 0 for all tool bar items, then tab switches based on element order.
164
+ *
165
+ * @default -1
166
+ */
167
+ tabIndex?: number;
168
+
169
+ /**
170
+ * Specifies the unique name for each toolbar item rendered in Schedule. This name is used to map the toolbar items in the Schedule component.
171
+ *
172
+ * To access the default toolbar items, provide the name below,
173
+ *
174
+ * * `Custom`: Schedule component render the custom toolbar item.
175
+ * * `Previous`: Schedule component navigates to the previous date from the current date.
176
+ * * `Next`: Schedule component navigates to the next date from the current date.
177
+ * * `Today`: Schedule component navigates to the current date from any date.
178
+ * * `Views`: Schedule component render the defined view options in the toolbar. If view option is not defined, then it will render default view options in the Schedule.
179
+ * * `DateRangeText`: Schedule component displays the current date text range.
180
+ * * `NewEvent`: Schedule component render the icon to add a new event.
181
+ *
182
+ * @default 'Custom'
183
+ * @aspDefaultValue Custom
184
+ * @isEnumeration true
185
+ * @aspType ToolbarName
186
+ */
187
+ name?: ToolbarName;
188
+
189
+ /**
190
+ * Event triggers when `click` the toolbar item.
191
+ *
192
+ * @event click
193
+ */
194
+ click?: EmitType<ClickEventArgs>;
195
+
196
+ }
@@ -0,0 +1,176 @@
1
+ import { ChildProperty, EmitType } from '@syncfusion/ej2-base';
2
+ import { ClickEventArgs, DisplayMode, ItemAlign, ItemType, OverflowOption } from '@syncfusion/ej2-navigations';
3
+ import { ToolbarName } from '../base/type';
4
+ export declare class ToolbarItem extends ChildProperty<ToolbarItem> {
5
+ /**
6
+ * Specifies the unique ID to be used with button or input element of Toolbar items.
7
+ *
8
+ * @default ""
9
+ */
10
+ id: string;
11
+ /**
12
+ * Specifies the text to be displayed on the Toolbar button.
13
+ *
14
+ * @default ""
15
+ */
16
+ text: string;
17
+ /**
18
+ * Specifies the width of the Toolbar button commands.
19
+ *
20
+ * @default 'auto'
21
+ */
22
+ width: number | string;
23
+ /**
24
+ * Defines single/multiple classes (separated by space) to be used for customization of commands.
25
+ *
26
+ * @default ""
27
+ */
28
+ cssClass: string;
29
+ /**
30
+ * Defines the priority of items to display it in popup always.
31
+ * It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.
32
+ *
33
+ * @default false
34
+ */
35
+ showAlwaysInPopup: boolean;
36
+ /**
37
+ * Specifies whether an item should be disabled or not.
38
+ *
39
+ * @default false
40
+ */
41
+ disabled: boolean;
42
+ /**
43
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
44
+ * The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.
45
+ *
46
+ * @default ""
47
+ */
48
+ prefixIcon: string;
49
+ /**
50
+ * Defines single/multiple classes separated by space used to specify an icon for the button.
51
+ * The icon will be positioned after the text content if text is available.
52
+ *
53
+ * @default ""
54
+ */
55
+ suffixIcon: string;
56
+ /**
57
+ * Specifies whether an item should be hidden or not.
58
+ *
59
+ * @default true
60
+ */
61
+ visible: boolean;
62
+ /**
63
+ * Specifies the Toolbar command display area when an element's content is too large to fit available space.
64
+ * This is applicable only to `popup` mode. The possible values for this property as follows
65
+ * * `Show`: Always shows the item as the primary priority on the *Toolbar*.
66
+ * * `Hide`: Always shows the item as the secondary priority on the *popup*.
67
+ * * `None`: No priority for display, and as per normal order moves to popup when content exceeds.
68
+ *
69
+ * @default 'None'
70
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.OverflowOption.None
71
+ * @isEnumeration true
72
+ * @aspType Syncfusion.EJ2.Navigations.OverflowOption
73
+ */
74
+ overflow: OverflowOption;
75
+ /**
76
+ * Specifies the HTML element/element ID as a string that can be added as a Toolbar command.
77
+ * ```
78
+ * E.g - items: [{ template: '<input placeholder="Search"/>' },{ template: '#checkbox1' }]
79
+ * ```
80
+ *
81
+ * @default ""
82
+ * @angularType string | object
83
+ * @reactType string | function | JSX.Element
84
+ * @vueType string | function
85
+ * @aspType string
86
+ */
87
+ template: string | Object | Function;
88
+ /**
89
+ * Specifies the types of command to be rendered in the Toolbar.
90
+ * Supported types are:
91
+ * * `Button`: Creates the Button control with its given properties like text, prefixIcon, etc.
92
+ * * `Separator`: Adds a horizontal line that separates the Toolbar commands.
93
+ * * `Input`: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList,
94
+ * AutoComplete, etc.
95
+ *
96
+ * @default 'Button'
97
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.ItemType.Button
98
+ * @isEnumeration true
99
+ * @aspType Syncfusion.EJ2.Navigations.ItemType
100
+ */
101
+ type: ItemType;
102
+ /**
103
+ * Specifies where the button text will be displayed on *popup mode* of the Toolbar.
104
+ * The possible values for this property as follows
105
+ * * `Toolbar`: Text will be displayed on *Toolbar* only.
106
+ * * `Overflow`: Text will be displayed only when content overflows to *popup*.
107
+ * * `Both`: Text will be displayed on *popup* and *Toolbar*.
108
+ *
109
+ * @default 'Both'
110
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.DisplayMode.Both
111
+ * @isEnumeration true
112
+ * @aspType Syncfusion.EJ2.Navigations.DisplayMode
113
+ */
114
+ showTextOn: DisplayMode;
115
+ /**
116
+ * Defines htmlAttributes used to add custom attributes to Toolbar command.
117
+ * Supports HTML attributes such as style, class, etc.
118
+ *
119
+ * @default null
120
+ */
121
+ htmlAttributes: {
122
+ [key: string]: string;
123
+ };
124
+ /**
125
+ * Specifies the text to be displayed on hovering the Toolbar button.
126
+ *
127
+ * @default ""
128
+ */
129
+ tooltipText: string;
130
+ /**
131
+ * Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the `align` property.
132
+ * The possible values for this property as follows
133
+ * * `Left`: To align commands to the left side of the Toolbar.
134
+ * * `Center`: To align commands at the center of the Toolbar.
135
+ * * `Right`: To align commands to the right side of the Toolbar.
136
+ *
137
+ * @default 'Left'
138
+ * @aspDefaultValue Syncfusion.EJ2.Navigations.ItemAlign.Left
139
+ * @isEnumeration true
140
+ * @aspType Syncfusion.EJ2.Navigations.ItemAlign
141
+ */
142
+ align: ItemAlign;
143
+ /**
144
+ * Specifies the tab order of the Toolbar items. When positive values assigned, it allows to switch focus to the next/previous toolbar items with Tab/ShiftTab keys.
145
+ * By default, user can able to switch between items only via arrow keys.
146
+ * If the value is set to 0 for all tool bar items, then tab switches based on element order.
147
+ *
148
+ * @default -1
149
+ */
150
+ tabIndex: number;
151
+ /**
152
+ * Specifies the unique name for each toolbar item rendered in Schedule. This name is used to map the toolbar items in the Schedule component.
153
+ *
154
+ * To access the default toolbar items, provide the name below,
155
+ *
156
+ * * `Custom`: Schedule component render the custom toolbar item.
157
+ * * `Previous`: Schedule component navigates to the previous date from the current date.
158
+ * * `Next`: Schedule component navigates to the next date from the current date.
159
+ * * `Today`: Schedule component navigates to the current date from any date.
160
+ * * `Views`: Schedule component render the defined view options in the toolbar. If view option is not defined, then it will render default view options in the Schedule.
161
+ * * `DateRangeText`: Schedule component displays the current date text range.
162
+ * * `NewEvent`: Schedule component render the icon to add a new event.
163
+ *
164
+ * @default 'Custom'
165
+ * @aspDefaultValue Custom
166
+ * @isEnumeration true
167
+ * @aspType ToolbarName
168
+ */
169
+ name: ToolbarName;
170
+ /**
171
+ * Event triggers when `click` the toolbar item.
172
+ *
173
+ * @event click
174
+ */
175
+ click: EmitType<ClickEventArgs>;
176
+ }
@@ -0,0 +1,85 @@
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
+ import { Property, ChildProperty, Event } from '@syncfusion/ej2-base';
21
+ var ToolbarItem = /** @class */ (function (_super) {
22
+ __extends(ToolbarItem, _super);
23
+ function ToolbarItem() {
24
+ return _super !== null && _super.apply(this, arguments) || this;
25
+ }
26
+ __decorate([
27
+ Property('')
28
+ ], ToolbarItem.prototype, "id", void 0);
29
+ __decorate([
30
+ Property('')
31
+ ], ToolbarItem.prototype, "text", void 0);
32
+ __decorate([
33
+ Property('auto')
34
+ ], ToolbarItem.prototype, "width", void 0);
35
+ __decorate([
36
+ Property('')
37
+ ], ToolbarItem.prototype, "cssClass", void 0);
38
+ __decorate([
39
+ Property(false)
40
+ ], ToolbarItem.prototype, "showAlwaysInPopup", void 0);
41
+ __decorate([
42
+ Property(false)
43
+ ], ToolbarItem.prototype, "disabled", void 0);
44
+ __decorate([
45
+ Property('')
46
+ ], ToolbarItem.prototype, "prefixIcon", void 0);
47
+ __decorate([
48
+ Property('')
49
+ ], ToolbarItem.prototype, "suffixIcon", void 0);
50
+ __decorate([
51
+ Property(true)
52
+ ], ToolbarItem.prototype, "visible", void 0);
53
+ __decorate([
54
+ Property('None')
55
+ ], ToolbarItem.prototype, "overflow", void 0);
56
+ __decorate([
57
+ Property('')
58
+ ], ToolbarItem.prototype, "template", void 0);
59
+ __decorate([
60
+ Property('Button')
61
+ ], ToolbarItem.prototype, "type", void 0);
62
+ __decorate([
63
+ Property('Both')
64
+ ], ToolbarItem.prototype, "showTextOn", void 0);
65
+ __decorate([
66
+ Property(null)
67
+ ], ToolbarItem.prototype, "htmlAttributes", void 0);
68
+ __decorate([
69
+ Property('')
70
+ ], ToolbarItem.prototype, "tooltipText", void 0);
71
+ __decorate([
72
+ Property('Left')
73
+ ], ToolbarItem.prototype, "align", void 0);
74
+ __decorate([
75
+ Property(-1)
76
+ ], ToolbarItem.prototype, "tabIndex", void 0);
77
+ __decorate([
78
+ Property('Custom')
79
+ ], ToolbarItem.prototype, "name", void 0);
80
+ __decorate([
81
+ Event()
82
+ ], ToolbarItem.prototype, "click", void 0);
83
+ return ToolbarItem;
84
+ }(ChildProperty));
85
+ export { ToolbarItem };
@@ -74,6 +74,15 @@ export interface ViewsModel {
74
74
  */
75
75
  allowVirtualScrolling?: boolean;
76
76
 
77
+ /**
78
+ * Specifies the maximum number of events to be displayed in a single row.
79
+ * This property is applicable when the 'rowAutoHeight' property is disabled.
80
+ * This property is only applicable for the month view, timeline views, and timeline year view.
81
+ *
82
+ * @default null
83
+ */
84
+ maxEventsPerRow?: number;
85
+
77
86
  /**
78
87
  * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the
79
88
  * month date cells.
@@ -67,6 +67,14 @@ export declare class Views extends ChildProperty<Views> {
67
67
  * @default false
68
68
  */
69
69
  allowVirtualScrolling: boolean;
70
+ /**
71
+ * Specifies the maximum number of events to be displayed in a single row.
72
+ * This property is applicable when the 'rowAutoHeight' property is disabled.
73
+ * This property is only applicable for the month view, timeline views, and timeline year view.
74
+ *
75
+ * @default null
76
+ */
77
+ maxEventsPerRow: number;
70
78
  /**
71
79
  * It accepts either the string or HTMLElement as template design content and parse it appropriately before displaying it onto the
72
80
  * month date cells.
@@ -50,6 +50,9 @@ var Views = /** @class */ (function (_super) {
50
50
  __decorate([
51
51
  Property(false)
52
52
  ], Views.prototype, "allowVirtualScrolling", void 0);
53
+ __decorate([
54
+ Property(null)
55
+ ], Views.prototype, "maxEventsPerRow", void 0);
53
56
  __decorate([
54
57
  Property()
55
58
  ], Views.prototype, "cellHeaderTemplate", void 0);
@@ -383,15 +383,11 @@ var EventWindow = /** @class */ (function () {
383
383
  var titleLocationDiv = this.createDivElement(cls.EVENT_WINDOW_TITLE_LOCATION_DIV_CLASS);
384
384
  parentDiv.appendChild(titleLocationDiv);
385
385
  titleLocationDiv.appendChild(this.renderTextBox(cls.SUBJECT_CLASS));
386
- titleLocationDiv.querySelector('.' + cls.SUBJECT_CLASS).setAttribute('title', this.parent.editorTitles.subject);
387
386
  titleLocationDiv.appendChild(this.renderTextBox(cls.LOCATION_CLASS));
388
- titleLocationDiv.querySelector('.' + cls.LOCATION_CLASS).setAttribute('title', this.parent.editorTitles.location);
389
387
  var startEndDateTimeDiv = this.createDivElement(cls.EVENT_WINDOW_START_END_DIV_CLASS);
390
388
  parentDiv.appendChild(startEndDateTimeDiv);
391
389
  startEndDateTimeDiv.appendChild(this.renderDateTimePicker(cls.EVENT_WINDOW_START_CLASS, this.onTimeChange.bind(this)));
392
- startEndDateTimeDiv.querySelector('.' + cls.EVENT_WINDOW_START_CLASS).setAttribute('title', this.parent.editorTitles.startTime);
393
390
  startEndDateTimeDiv.appendChild(this.renderDateTimePicker(cls.EVENT_WINDOW_END_CLASS));
394
- startEndDateTimeDiv.querySelector('.' + cls.EVENT_WINDOW_END_CLASS).setAttribute('title', this.parent.editorTitles.endTime);
395
391
  var allDayTimezoneDiv = this.createDivElement(cls.EVENT_WINDOW_ALLDAY_TZ_DIV_CLASS);
396
392
  parentDiv.appendChild(allDayTimezoneDiv);
397
393
  allDayTimezoneDiv.appendChild(this.renderCheckBox(cls.EVENT_WINDOW_ALL_DAY_CLASS));
@@ -429,7 +425,6 @@ var EventWindow = /** @class */ (function () {
429
425
  }
430
426
  var description = this.createDivElement(cls.DESCRIPTION_CLASS + '-row');
431
427
  description.appendChild(this.renderTextBox(cls.DESCRIPTION_CLASS));
432
- description.querySelector('.' + cls.DESCRIPTION_CLASS).setAttribute('title', this.parent.editorTitles.description);
433
428
  parentDiv.appendChild(description);
434
429
  var submit = createElement('button', { attrs: { type: 'hidden', title: 'submit', style: 'display:none' } });
435
430
  parentDiv.appendChild(submit);
@@ -448,9 +443,7 @@ var EventWindow = /** @class */ (function () {
448
443
  EventWindow.prototype.createInputElement = function (className, fieldName, type) {
449
444
  return createElement(type || 'input', {
450
445
  className: className, attrs: {
451
- type: 'text', name: fieldName, value: '', id: fieldName,
452
- title: ((this.l10n.getConstant(fieldName.charAt(0).toLowerCase() + fieldName.slice(1))) === '') ?
453
- fieldName : this.l10n.getConstant(fieldName.charAt(0).toLowerCase() + fieldName.slice(1))
446
+ type: 'text', name: fieldName, value: '', id: fieldName
454
447
  }
455
448
  });
456
449
  };
@@ -472,6 +465,7 @@ var EventWindow = /** @class */ (function () {
472
465
  enableRtl: this.parent.enableRtl,
473
466
  locale: this.parent.locale,
474
467
  floatLabelType: 'Always',
468
+ strictMode: true,
475
469
  timeFormat: this.parent.activeViewOptions.timeFormat,
476
470
  format: (isNullOrUndefined(this.parent.dateFormat) ?
477
471
  this.getFormat('dateFormats') : this.parent.dateFormat) + ' ' + this.parent.activeViewOptions.timeFormat,
@@ -540,7 +534,7 @@ var EventWindow = /** @class */ (function () {
540
534
  text: resourceData.textField,
541
535
  value: resourceData.idField
542
536
  },
543
- htmlAttributes: { 'title': labelValue, 'name': fieldName },
537
+ htmlAttributes: { 'name': fieldName },
544
538
  floatLabelType: 'Always',
545
539
  placeholder: labelValue,
546
540
  popupHeight: '230px',
@@ -559,7 +553,7 @@ var EventWindow = /** @class */ (function () {
559
553
  text: resourceData.textField,
560
554
  value: resourceData.idField
561
555
  },
562
- htmlAttributes: { 'title': labelValue, 'name': fieldName },
556
+ htmlAttributes: { 'name': fieldName },
563
557
  floatLabelType: 'Always',
564
558
  placeholder: labelValue,
565
559
  popupHeight: '230px',
@@ -979,7 +973,7 @@ var EventWindow = /** @class */ (function () {
979
973
  this.eventData = this.eventCrudData ? this.eventData : eventData;
980
974
  var eventObj = extend({}, eventData, null, true);
981
975
  var formElements = this.getFormElements(cls.EVENT_WINDOW_DIALOG_CLASS);
982
- if (this.parent.isReact && formElements.length < 1) {
976
+ if (this.parent.isReact && formElements.length < 1 && !this.cellClickAction) {
983
977
  this.eventCrudData = eventObj;
984
978
  return;
985
979
  }
@@ -52,9 +52,9 @@ var QuickPopups = /** @class */ (function () {
52
52
  };
53
53
  QuickPopups.prototype.renderMorePopup = function () {
54
54
  var moreEventPopup = "<div class=\"" + cls.MORE_EVENT_POPUP_CLASS + "\"><div class=\"" + cls.MORE_EVENT_HEADER_CLASS + "\">" +
55
- ("<div class=\"" + cls.MORE_EVENT_CLOSE_CLASS + "\" title=\"" + this.l10n.getConstant('close') + "\" tabindex=\"0\"></div>") +
55
+ ("<div class=\"" + cls.MORE_EVENT_CLOSE_CLASS + "\" title=\"" + this.l10n.getConstant('close') + "\" tabindex=\"0\" role=\"button\"></div>") +
56
56
  ("<div class=\"" + cls.MORE_EVENT_DATE_HEADER_CLASS + "\"><div class=\"" + cls.MORE_EVENT_HEADER_DAY_CLASS + "\"></div>") +
57
- ("<div class=\"" + cls.MORE_EVENT_HEADER_DATE_CLASS + " " + cls.NAVIGATE_CLASS + "\" tabindex=\"0\"></div></div></div></div>");
57
+ ("<div class=\"" + cls.MORE_EVENT_HEADER_DATE_CLASS + " " + cls.NAVIGATE_CLASS + "\" tabindex=\"0\" role=\"link\"></div></div></div></div>");
58
58
  var moreEventWrapper = createElement('div', {
59
59
  className: cls.MORE_POPUP_WRAPPER_CLASS + ' e-popup-close',
60
60
  innerHTML: moreEventPopup
@@ -29,6 +29,8 @@ export declare class HeaderRenderer {
29
29
  refresh(): void;
30
30
  updateAddIcon(): void;
31
31
  private getDateRangeText;
32
+ private getItemModel;
33
+ private getToolbarItems;
32
34
  private getItems;
33
35
  private getItemObject;
34
36
  private renderHeaderPopup;