@syncfusion/ej2-schedule 31.1.17 → 31.1.21

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 (168) hide show
  1. package/dist/ej2-schedule.min.js +2 -2
  2. package/dist/ej2-schedule.umd.min.js +2 -2
  3. package/dist/ej2-schedule.umd.min.js.map +1 -1
  4. package/dist/es6/ej2-schedule.es2015.js +7 -3
  5. package/dist/es6/ej2-schedule.es2015.js.map +1 -1
  6. package/dist/es6/ej2-schedule.es5.js +6 -2
  7. package/dist/es6/ej2-schedule.es5.js.map +1 -1
  8. package/dist/global/ej2-schedule.min.js +2 -2
  9. package/dist/global/ej2-schedule.min.js.map +1 -1
  10. package/dist/global/index.d.ts +1 -1
  11. package/package.json +18 -53
  12. package/src/schedule/actions/virtual-scroll.js +5 -1
  13. package/src/schedule/event-renderer/event-base.js +1 -1
  14. package/styles/bootstrap4-lite.css +8 -0
  15. package/styles/bootstrap4.css +8 -0
  16. package/styles/recurrence-editor/bootstrap4.css +8 -0
  17. package/styles/schedule/bootstrap4.css +8 -0
  18. package/dist/ts/common/calendar-util.d.ts +0 -92
  19. package/dist/ts/common/calendar-util.ts +0 -261
  20. package/dist/ts/common/index.d.ts +0 -4
  21. package/dist/ts/common/index.ts +0 -4
  22. package/dist/ts/components.d.ts +0 -5
  23. package/dist/ts/components.ts +0 -5
  24. package/dist/ts/index.d.ts +0 -6
  25. package/dist/ts/index.ts +0 -7
  26. package/dist/ts/recurrence-editor/date-generator.d.ts +0 -76
  27. package/dist/ts/recurrence-editor/date-generator.ts +0 -1699
  28. package/dist/ts/recurrence-editor/index.d.ts +0 -6
  29. package/dist/ts/recurrence-editor/index.ts +0 -6
  30. package/dist/ts/recurrence-editor/recurrence-editor-model.d.ts +0 -112
  31. package/dist/ts/recurrence-editor/recurrence-editor.d.ts +0 -245
  32. package/dist/ts/recurrence-editor/recurrence-editor.ts +0 -1257
  33. package/dist/ts/schedule/actions/action-base.d.ts +0 -44
  34. package/dist/ts/schedule/actions/action-base.ts +0 -493
  35. package/dist/ts/schedule/actions/crud.d.ts +0 -41
  36. package/dist/ts/schedule/actions/crud.ts +0 -784
  37. package/dist/ts/schedule/actions/data.d.ts +0 -63
  38. package/dist/ts/schedule/actions/data.ts +0 -128
  39. package/dist/ts/schedule/actions/drag.d.ts +0 -75
  40. package/dist/ts/schedule/actions/drag.ts +0 -1401
  41. package/dist/ts/schedule/actions/keyboard.d.ts +0 -100
  42. package/dist/ts/schedule/actions/keyboard.ts +0 -1435
  43. package/dist/ts/schedule/actions/resize.d.ts +0 -27
  44. package/dist/ts/schedule/actions/resize.ts +0 -602
  45. package/dist/ts/schedule/actions/scroll.d.ts +0 -69
  46. package/dist/ts/schedule/actions/scroll.ts +0 -105
  47. package/dist/ts/schedule/actions/touch.d.ts +0 -32
  48. package/dist/ts/schedule/actions/touch.ts +0 -314
  49. package/dist/ts/schedule/actions/virtual-scroll.d.ts +0 -55
  50. package/dist/ts/schedule/actions/virtual-scroll.ts +0 -596
  51. package/dist/ts/schedule/actions/work-cells.d.ts +0 -14
  52. package/dist/ts/schedule/actions/work-cells.ts +0 -151
  53. package/dist/ts/schedule/base/constant.d.ts +0 -102
  54. package/dist/ts/schedule/base/constant.ts +0 -103
  55. package/dist/ts/schedule/base/css-constant.d.ts +0 -475
  56. package/dist/ts/schedule/base/css-constant.ts +0 -475
  57. package/dist/ts/schedule/base/interface.d.ts +0 -673
  58. package/dist/ts/schedule/base/interface.ts +0 -738
  59. package/dist/ts/schedule/base/resource.d.ts +0 -59
  60. package/dist/ts/schedule/base/resource.ts +0 -1091
  61. package/dist/ts/schedule/base/schedule-model.d.ts +0 -930
  62. package/dist/ts/schedule/base/schedule.d.ts +0 -1967
  63. package/dist/ts/schedule/base/schedule.ts +0 -4221
  64. package/dist/ts/schedule/base/type.d.ts +0 -134
  65. package/dist/ts/schedule/base/type.ts +0 -142
  66. package/dist/ts/schedule/base/util.d.ts +0 -266
  67. package/dist/ts/schedule/base/util.ts +0 -492
  68. package/dist/ts/schedule/event-renderer/agenda-base.d.ts +0 -15
  69. package/dist/ts/schedule/event-renderer/agenda-base.ts +0 -423
  70. package/dist/ts/schedule/event-renderer/event-base.d.ts +0 -101
  71. package/dist/ts/schedule/event-renderer/event-base.ts +0 -1501
  72. package/dist/ts/schedule/event-renderer/inline-edit.d.ts +0 -23
  73. package/dist/ts/schedule/event-renderer/inline-edit.ts +0 -287
  74. package/dist/ts/schedule/event-renderer/month.d.ts +0 -60
  75. package/dist/ts/schedule/event-renderer/month.ts +0 -760
  76. package/dist/ts/schedule/event-renderer/timeline-view.d.ts +0 -51
  77. package/dist/ts/schedule/event-renderer/timeline-view.ts +0 -606
  78. package/dist/ts/schedule/event-renderer/vertical-view.d.ts +0 -57
  79. package/dist/ts/schedule/event-renderer/vertical-view.ts +0 -898
  80. package/dist/ts/schedule/event-renderer/year.d.ts +0 -27
  81. package/dist/ts/schedule/event-renderer/year.ts +0 -623
  82. package/dist/ts/schedule/exports/calendar-export.d.ts +0 -16
  83. package/dist/ts/schedule/exports/calendar-export.ts +0 -160
  84. package/dist/ts/schedule/exports/calendar-import.d.ts +0 -18
  85. package/dist/ts/schedule/exports/calendar-import.ts +0 -277
  86. package/dist/ts/schedule/exports/excel-export.d.ts +0 -14
  87. package/dist/ts/schedule/exports/excel-export.ts +0 -89
  88. package/dist/ts/schedule/exports/index.d.ts +0 -7
  89. package/dist/ts/schedule/exports/index.ts +0 -7
  90. package/dist/ts/schedule/exports/print.d.ts +0 -20
  91. package/dist/ts/schedule/exports/print.ts +0 -233
  92. package/dist/ts/schedule/index.d.ts +0 -26
  93. package/dist/ts/schedule/index.ts +0 -26
  94. package/dist/ts/schedule/models/event-settings-model.d.ts +0 -165
  95. package/dist/ts/schedule/models/event-settings.d.ts +0 -149
  96. package/dist/ts/schedule/models/event-settings.ts +0 -187
  97. package/dist/ts/schedule/models/field-options-model.d.ts +0 -37
  98. package/dist/ts/schedule/models/field-options.d.ts +0 -31
  99. package/dist/ts/schedule/models/field-options.ts +0 -41
  100. package/dist/ts/schedule/models/fields-model.d.ts +0 -129
  101. package/dist/ts/schedule/models/fields.d.ts +0 -117
  102. package/dist/ts/schedule/models/fields.ts +0 -149
  103. package/dist/ts/schedule/models/group-model.d.ts +0 -69
  104. package/dist/ts/schedule/models/group.d.ts +0 -60
  105. package/dist/ts/schedule/models/group.ts +0 -75
  106. package/dist/ts/schedule/models/header-rows-model.d.ts +0 -33
  107. package/dist/ts/schedule/models/header-rows.d.ts +0 -30
  108. package/dist/ts/schedule/models/header-rows.ts +0 -35
  109. package/dist/ts/schedule/models/models.d.ts +0 -14
  110. package/dist/ts/schedule/models/models.ts +0 -15
  111. package/dist/ts/schedule/models/quick-info-templates-model.d.ts +0 -52
  112. package/dist/ts/schedule/models/quick-info-templates.d.ts +0 -47
  113. package/dist/ts/schedule/models/quick-info-templates.ts +0 -56
  114. package/dist/ts/schedule/models/resources-model.d.ts +0 -122
  115. package/dist/ts/schedule/models/resources.d.ts +0 -106
  116. package/dist/ts/schedule/models/resources.ts +0 -138
  117. package/dist/ts/schedule/models/time-scale-model.d.ts +0 -57
  118. package/dist/ts/schedule/models/time-scale.d.ts +0 -50
  119. package/dist/ts/schedule/models/time-scale.ts +0 -61
  120. package/dist/ts/schedule/models/toolbar-model.d.ts +0 -196
  121. package/dist/ts/schedule/models/toolbar.d.ts +0 -176
  122. package/dist/ts/schedule/models/toolbar.ts +0 -196
  123. package/dist/ts/schedule/models/views-model.d.ts +0 -370
  124. package/dist/ts/schedule/models/views.d.ts +0 -335
  125. package/dist/ts/schedule/models/views.ts +0 -408
  126. package/dist/ts/schedule/models/work-hours-model.d.ts +0 -29
  127. package/dist/ts/schedule/models/work-hours.d.ts +0 -24
  128. package/dist/ts/schedule/models/work-hours.ts +0 -31
  129. package/dist/ts/schedule/popups/event-tooltip.d.ts +0 -16
  130. package/dist/ts/schedule/popups/event-tooltip.ts +0 -203
  131. package/dist/ts/schedule/popups/event-window.d.ts +0 -118
  132. package/dist/ts/schedule/popups/event-window.ts +0 -2055
  133. package/dist/ts/schedule/popups/form-validator.d.ts +0 -16
  134. package/dist/ts/schedule/popups/form-validator.ts +0 -110
  135. package/dist/ts/schedule/popups/quick-popups.d.ts +0 -78
  136. package/dist/ts/schedule/popups/quick-popups.ts +0 -1470
  137. package/dist/ts/schedule/renderer/agenda.d.ts +0 -45
  138. package/dist/ts/schedule/renderer/agenda.ts +0 -497
  139. package/dist/ts/schedule/renderer/day.d.ts +0 -20
  140. package/dist/ts/schedule/renderer/day.ts +0 -28
  141. package/dist/ts/schedule/renderer/header-renderer.d.ts +0 -48
  142. package/dist/ts/schedule/renderer/header-renderer.ts +0 -736
  143. package/dist/ts/schedule/renderer/month-agenda.d.ts +0 -29
  144. package/dist/ts/schedule/renderer/month-agenda.ts +0 -184
  145. package/dist/ts/schedule/renderer/month.d.ts +0 -61
  146. package/dist/ts/schedule/renderer/month.ts +0 -766
  147. package/dist/ts/schedule/renderer/renderer.d.ts +0 -13
  148. package/dist/ts/schedule/renderer/renderer.ts +0 -165
  149. package/dist/ts/schedule/renderer/timeline-header-row.d.ts +0 -15
  150. package/dist/ts/schedule/renderer/timeline-header-row.ts +0 -132
  151. package/dist/ts/schedule/renderer/timeline-month.d.ts +0 -29
  152. package/dist/ts/schedule/renderer/timeline-month.ts +0 -184
  153. package/dist/ts/schedule/renderer/timeline-view.d.ts +0 -31
  154. package/dist/ts/schedule/renderer/timeline-view.ts +0 -308
  155. package/dist/ts/schedule/renderer/timeline-year.d.ts +0 -22
  156. package/dist/ts/schedule/renderer/timeline-year.ts +0 -450
  157. package/dist/ts/schedule/renderer/vertical-view.d.ts +0 -63
  158. package/dist/ts/schedule/renderer/vertical-view.ts +0 -911
  159. package/dist/ts/schedule/renderer/view-base.d.ts +0 -83
  160. package/dist/ts/schedule/renderer/view-base.ts +0 -709
  161. package/dist/ts/schedule/renderer/week.d.ts +0 -22
  162. package/dist/ts/schedule/renderer/week.ts +0 -35
  163. package/dist/ts/schedule/renderer/work-week.d.ts +0 -22
  164. package/dist/ts/schedule/renderer/work-week.ts +0 -36
  165. package/dist/ts/schedule/renderer/year.d.ts +0 -46
  166. package/dist/ts/schedule/renderer/year.ts +0 -470
  167. package/dist/ts/schedule/timezone/timezone.d.ts +0 -16
  168. package/dist/ts/schedule/timezone/timezone.ts +0 -313
@@ -1,196 +0,0 @@
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
- }
@@ -1,176 +0,0 @@
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
- }
@@ -1,196 +0,0 @@
1
- import { Property, ChildProperty, Event, EmitType } from '@syncfusion/ej2-base';
2
- import { ClickEventArgs, DisplayMode, ItemAlign, ItemType, OverflowOption } from '@syncfusion/ej2-navigations';
3
- import { ToolbarName } from '../base/type';
4
-
5
- export class ToolbarItem extends ChildProperty<ToolbarItem> {
6
- /**
7
- * Specifies the unique ID to be used with button or input element of Toolbar items.
8
- *
9
- * @default ""
10
- */
11
- @Property('')
12
- public id: string;
13
- /**
14
- * Specifies the text to be displayed on the Toolbar button.
15
- *
16
- * @default ""
17
- */
18
- @Property('')
19
- public text: string;
20
- /**
21
- * Specifies the width of the Toolbar button commands.
22
- *
23
- * @default 'auto'
24
- */
25
- @Property('auto')
26
- public width: number | string;
27
- /**
28
- * Defines single/multiple classes (separated by space) to be used for customization of commands.
29
- *
30
- * @default ""
31
- */
32
- @Property('')
33
- public cssClass: string;
34
- /**
35
- * Defines the priority of items to display it in popup always.
36
- * It allows to maintain toolbar item on popup always but it does not work for toolbar priority items.
37
- *
38
- * @default false
39
- */
40
- @Property(false)
41
- public showAlwaysInPopup: boolean;
42
- /**
43
- * Specifies whether an item should be disabled or not.
44
- *
45
- * @default false
46
- */
47
- @Property(false)
48
- public disabled: boolean;
49
- /**
50
- * Defines single/multiple classes separated by space used to specify an icon for the button.
51
- * The icon will be positioned before the text content if text is available, otherwise the icon alone will be rendered.
52
- *
53
- * @default ""
54
- */
55
- @Property('')
56
- public prefixIcon: string;
57
- /**
58
- * Defines single/multiple classes separated by space used to specify an icon for the button.
59
- * The icon will be positioned after the text content if text is available.
60
- *
61
- * @default ""
62
- */
63
- @Property('')
64
- public suffixIcon: string;
65
- /**
66
- * Specifies whether an item should be hidden or not.
67
- *
68
- * @default true
69
- */
70
- @Property(true)
71
- public visible: boolean;
72
- /**
73
- * Specifies the Toolbar command display area when an element's content is too large to fit available space.
74
- * This is applicable only to `popup` mode. The possible values for this property as follows
75
- * * `Show`: Always shows the item as the primary priority on the *Toolbar*.
76
- * * `Hide`: Always shows the item as the secondary priority on the *popup*.
77
- * * `None`: No priority for display, and as per normal order moves to popup when content exceeds.
78
- *
79
- * @default 'None'
80
- * @aspDefaultValue Syncfusion.EJ2.Navigations.OverflowOption.None
81
- * @isEnumeration true
82
- * @aspType Syncfusion.EJ2.Navigations.OverflowOption
83
- */
84
- @Property('None')
85
- public overflow: OverflowOption;
86
- /**
87
- * Specifies the HTML element/element ID as a string that can be added as a Toolbar command.
88
- * ```
89
- * E.g - items: [{ template: '<input placeholder="Search"/>' },{ template: '#checkbox1' }]
90
- * ```
91
- *
92
- * @default ""
93
- * @angularType string | object
94
- * @reactType string | function | JSX.Element
95
- * @vueType string | function
96
- * @aspType string
97
- */
98
- @Property('')
99
- public template: string | Object | Function;
100
- /**
101
- * Specifies the types of command to be rendered in the Toolbar.
102
- * Supported types are:
103
- * * `Button`: Creates the Button control with its given properties like text, prefixIcon, etc.
104
- * * `Separator`: Adds a horizontal line that separates the Toolbar commands.
105
- * * `Input`: Creates an input element that is applicable to template rendering with Syncfusion controls like DropDownList,
106
- * AutoComplete, etc.
107
- *
108
- * @default 'Button'
109
- * @aspDefaultValue Syncfusion.EJ2.Navigations.ItemType.Button
110
- * @isEnumeration true
111
- * @aspType Syncfusion.EJ2.Navigations.ItemType
112
- */
113
- @Property('Button')
114
- public type: ItemType;
115
- /**
116
- * Specifies where the button text will be displayed on *popup mode* of the Toolbar.
117
- * The possible values for this property as follows
118
- * * `Toolbar`: Text will be displayed on *Toolbar* only.
119
- * * `Overflow`: Text will be displayed only when content overflows to *popup*.
120
- * * `Both`: Text will be displayed on *popup* and *Toolbar*.
121
- *
122
- * @default 'Both'
123
- * @aspDefaultValue Syncfusion.EJ2.Navigations.DisplayMode.Both
124
- * @isEnumeration true
125
- * @aspType Syncfusion.EJ2.Navigations.DisplayMode
126
- */
127
- @Property('Both')
128
- public showTextOn: DisplayMode;
129
- /**
130
- * Defines htmlAttributes used to add custom attributes to Toolbar command.
131
- * Supports HTML attributes such as style, class, etc.
132
- *
133
- * @default null
134
- */
135
- @Property(null)
136
- public htmlAttributes: { [key: string]: string };
137
- /**
138
- * Specifies the text to be displayed on hovering the Toolbar button.
139
- *
140
- * @default ""
141
- */
142
- @Property('')
143
- public tooltipText: string;
144
- /**
145
- * Specifies the location for aligning Toolbar items on the Toolbar. Each command will be aligned according to the `align` property.
146
- * The possible values for this property as follows
147
- * * `Left`: To align commands to the left side of the Toolbar.
148
- * * `Center`: To align commands at the center of the Toolbar.
149
- * * `Right`: To align commands to the right side of the Toolbar.
150
- *
151
- * @default 'Left'
152
- * @aspDefaultValue Syncfusion.EJ2.Navigations.ItemAlign.Left
153
- * @isEnumeration true
154
- * @aspType Syncfusion.EJ2.Navigations.ItemAlign
155
- */
156
- @Property('Left')
157
- public align: ItemAlign;
158
- /**
159
- * 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.
160
- * By default, user can able to switch between items only via arrow keys.
161
- * If the value is set to 0 for all tool bar items, then tab switches based on element order.
162
- *
163
- * @default -1
164
- */
165
- @Property(-1)
166
- public tabIndex: number;
167
- /**
168
- * Specifies the unique name for each toolbar item rendered in Schedule. This name is used to map the toolbar items in the Schedule component.
169
- *
170
- * To access the default toolbar items, provide the name below,
171
- *
172
- * * `Custom`: Schedule component render the custom toolbar item.
173
- * * `Previous`: Schedule component navigates to the previous date from the current date.
174
- * * `Next`: Schedule component navigates to the next date from the current date.
175
- * * `Today`: Schedule component navigates to the current date from any date.
176
- * * `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.
177
- * * `DateRangeText`: Schedule component displays the current date text range.
178
- * * `NewEvent`: Schedule component render the icon to add a new event.
179
- *
180
- * @default 'Custom'
181
- * @aspDefaultValue Custom
182
- * @isEnumeration true
183
- * @aspType ToolbarName
184
- */
185
- @Property('Custom')
186
- public name: ToolbarName;
187
-
188
- /**
189
- * Event triggers when `click` the toolbar item.
190
- *
191
- * @event click
192
- */
193
- @Event()
194
- public click: EmitType<ClickEventArgs>;
195
-
196
- }