Skip to content

Commit e52d2d9

Browse files
committed
react version 7.7.0
1 parent 8785c07 commit e52d2d9

File tree

238 files changed

+13182
-2037
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

238 files changed

+13182
-2037
lines changed

calendar/calendar.d.ts

+20-6
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ export interface CalendarProps extends CalendarProperties {
1212
onDisplayModeChange?: ((event?: Event) => void) | undefined;
1313
onNavigationChanging?: ((event?: Event) => void) | undefined;
1414
onNavigationChange?: ((event?: Event) => void) | undefined;
15+
onOpen?: ((event?: Event) => void) | undefined;
16+
onClose?: ((event?: Event) => void) | undefined;
1517
}
1618
/**
1719
Calendar allows user to easily select one or more dates. This control supports multi-calendar view, special dates, holidays, weekends, decade views.
@@ -107,10 +109,10 @@ export declare class Calendar extends React.Component<React.HTMLProps<Element> &
107109
get hideTooltipArrow(): boolean;
108110
set hideTooltipArrow(value: boolean);
109111
/** Sets the dates that will be displayed as important.
110-
* Property type: string[]
112+
* Property type: string[] | Date[]
111113
*/
112-
get importantDates(): string[];
113-
set importantDates(value: string[]);
114+
get importantDates(): string[] | Date[];
115+
set importantDates(value: string[] | Date[]);
114116
/** Sets a template for the important dates. Accepts the id of an HTMLTemplate element inside the DOM of or a reference to it.
115117
* Property type: any
116118
*/
@@ -182,10 +184,10 @@ export declare class Calendar extends React.Component<React.HTMLProps<Element> &
182184
get scrollButtonsPosition(): LayoutPosition;
183185
set scrollButtonsPosition(value: LayoutPosition);
184186
/** Sets the dates that will be selected. Selected dates are styled differently than the rest. The dates can be Date objects or strings in a valid date format.
185-
* Property type: string[]
187+
* Property type: string[] | Date[]
186188
*/
187-
get selectedDates(): string[];
188-
set selectedDates(value: string[]);
189+
get selectedDates(): string[] | Date[];
190+
set selectedDates(value: string[] | Date[]);
189191
/** Determines the date selection mode.
190192
* Property type: CalendarSelectionMode
191193
*/
@@ -298,6 +300,18 @@ export declare class Calendar extends React.Component<React.HTMLProps<Element> &
298300
* type - The view type - 'month', 'decade' or 'year'.
299301
*/
300302
onNavigationChange?: ((event?: Event) => void) | undefined;
303+
/** This event is triggered when the tooltip for the important date is opened.
304+
* @param event. The custom event. Custom event was created with: event.detail( target, value)
305+
* target - The event target - tooltip.
306+
* value - The important date of the hovered cell.
307+
*/
308+
onOpen?: ((event?: Event) => void) | undefined;
309+
/** This event is triggered when the tooltip for the important date is closed.
310+
* @param event. The custom event. Custom event was created with: event.detail( target, value)
311+
* target - The event target - tooltip.
312+
* value - The important date of the hovered cell.
313+
*/
314+
onClose?: ((event?: Event) => void) | undefined;
301315
/** This event occurs, when the React component is created.
302316
* @param event. The custom event. */
303317
onCreate?: ((event?: Event) => void) | undefined;

calendar/calendar.esm.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ class Calendar extends React.Component {
232232
}
233233
}
234234
/** Sets the dates that will be displayed as important.
235-
* Property type: string[]
235+
* Property type: string[] | Date[]
236236
*/
237237
get importantDates() {
238238
return this.nativeElement ? this.nativeElement.importantDates : undefined;
@@ -397,7 +397,7 @@ class Calendar extends React.Component {
397397
}
398398
}
399399
/** Sets the dates that will be selected. Selected dates are styled differently than the rest. The dates can be Date objects or strings in a valid date format.
400-
* Property type: string[]
400+
* Property type: string[] | Date[]
401401
*/
402402
get selectedDates() {
403403
return this.nativeElement ? this.nativeElement.selectedDates : undefined;
@@ -600,7 +600,7 @@ class Calendar extends React.Component {
600600
}
601601
// Gets the events of the React component.
602602
get events() {
603-
return ["onChange", "onDisplayModeChanging", "onDisplayModeChange", "onNavigationChanging", "onNavigationChange", "onCreate", "onReady"];
603+
return ["onChange", "onDisplayModeChanging", "onDisplayModeChange", "onNavigationChanging", "onNavigationChange", "onOpen", "onClose", "onCreate", "onReady"];
604604
}
605605
/** Clears the selection. Removes all seleceted dates.
606606
*/

calendar/calendar.umd.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ require('../source/modules/smart.calendar');
238238
}
239239
}
240240
/** Sets the dates that will be displayed as important.
241-
* Property type: string[]
241+
* Property type: string[] | Date[]
242242
*/
243243
get importantDates() {
244244
return this.nativeElement ? this.nativeElement.importantDates : undefined;
@@ -403,7 +403,7 @@ require('../source/modules/smart.calendar');
403403
}
404404
}
405405
/** Sets the dates that will be selected. Selected dates are styled differently than the rest. The dates can be Date objects or strings in a valid date format.
406-
* Property type: string[]
406+
* Property type: string[] | Date[]
407407
*/
408408
get selectedDates() {
409409
return this.nativeElement ? this.nativeElement.selectedDates : undefined;
@@ -606,7 +606,7 @@ require('../source/modules/smart.calendar');
606606
}
607607
// Gets the events of the React component.
608608
get events() {
609-
return ["onChange", "onDisplayModeChanging", "onDisplayModeChange", "onNavigationChanging", "onNavigationChange", "onCreate", "onReady"];
609+
return ["onChange", "onDisplayModeChanging", "onDisplayModeChange", "onNavigationChanging", "onNavigationChange", "onOpen", "onClose", "onCreate", "onReady"];
610610
}
611611
/** Clears the selection. Removes all seleceted dates.
612612
*/

chart/ganttchart.d.ts

+75-8
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ export declare const Smart: any;
77
export interface GanttChartProps extends GanttChartProperties {
88
className?: string;
99
style?: React.CSSProperties;
10+
onBeginUpdate?: ((event?: Event) => void) | undefined;
11+
onEndUpdate?: ((event?: Event) => void) | undefined;
1012
onChange?: ((event?: Event) => void) | undefined;
13+
onItemClick?: ((event?: Event) => void) | undefined;
14+
onItemInsert?: ((event?: Event) => void) | undefined;
15+
onItemRemove?: ((event?: Event) => void) | undefined;
16+
onItemUpdate?: ((event?: Event) => void) | undefined;
1117
onProgressChangeStart?: ((event?: Event) => void) | undefined;
1218
onProgressChangeEnd?: ((event?: Event) => void) | undefined;
1319
onDragStart?: ((event?: Event) => void) | undefined;
@@ -118,6 +124,11 @@ export declare class GanttChart extends React.Component<React.HTMLProps<Element>
118124
*/
119125
get headerTemplate(): any;
120126
set headerTemplate(value: any);
127+
/** By default the Timeline has a two level header - timeline details and timeline header. This property hides the header details container( the top container ).
128+
* Property type: boolean
129+
*/
130+
get hideTimelineHeaderDetails(): boolean;
131+
set hideTimelineHeaderDetails(value: boolean);
121132
/** Hides the Resource panel regardless of the resources availability By default the Resource panel is visible if resources are added to the GanttChart. This property allows to hide the Resource panel permanently.
122133
* Property type: boolean
123134
*/
@@ -178,6 +189,11 @@ export declare class GanttChart extends React.Component<React.HTMLProps<Element>
178189
*/
179190
get popupWindowCustomizationFunction(): any;
180191
set popupWindowCustomizationFunction(value: any);
192+
/** A format function for the Timeline task progress label. The expected result from the function is a string. The label is hidden by default can be shown with the showProgressLabel property.
193+
* Property type: any
194+
*/
195+
get progressLabelFormatFunction(): any;
196+
set progressLabelFormatFunction(value: any);
181197
/** A getter that returns a flat structure as an array of all resources inside the element.
182198
* Property type: GanttChartResource[]
183199
*/
@@ -233,6 +249,11 @@ export declare class GanttChart extends React.Component<React.HTMLProps<Element>
233249
*/
234250
get selectedIndexes(): number[];
235251
set selectedIndexes(value: number[]);
252+
/** Shows the progress label inside the progress bars of the Timeline tasks.
253+
* Property type: boolean
254+
*/
255+
get showProgressLabel(): boolean;
256+
set showProgressLabel(value: boolean);
236257
/** If set the dateStart/dateEnd of the tasks will be coerced to the nearest timeline cell date ( according to the view ). Affects the dragging operation as well.
237258
* Property type: boolean
238259
*/
@@ -283,7 +304,7 @@ export declare class GanttChart extends React.Component<React.HTMLProps<Element>
283304
*/
284305
get treeSize(): any;
285306
set treeSize(value: any);
286-
/** A format function for the Header of the Timeline.
307+
/** A format function for the Header of the Timeline. The function provides the following arguments: date - a Date object that represets the date for the current cell.type - a string that represents the type of date that the cell is showing, e.g. 'month', 'week', 'day', etc.isHeaderDetails - a boolean that indicates whether the current cell is part of the Header Details Container or not.value - a string that represents the default value for the cell provided by the element.
287308
* Property type: any
288309
*/
289310
get timelineHeaderFormatFunction(): any;
@@ -319,12 +340,43 @@ export declare class GanttChart extends React.Component<React.HTMLProps<Element>
319340
get unfocusable(): boolean;
320341
set unfocusable(value: boolean);
321342
get properties(): string[];
343+
/** This event is triggered when a batch update was started after executing the beginUpdate method.
344+
* @param event. The custom event. */
345+
onBeginUpdate?: ((event?: Event) => void) | undefined;
346+
/** This event is triggered when a batch update was ended from after executing the endUpdate method.
347+
* @param event. The custom event. */
348+
onEndUpdate?: ((event?: Event) => void) | undefined;
322349
/** This event is triggered when a Task is selected/unselected.
323350
* @param event. The custom event. Custom event was created with: event.detail( value, oldValue)
324351
* value - The index of the new selected task.
325352
* oldValue - The index of the previously selected task.
326353
*/
327354
onChange?: ((event?: Event) => void) | undefined;
355+
/** This event is triggered when a task, resource or connection is clicked inside the Timeline or the Tree columns.
356+
* @param event. The custom event. Custom event was created with: event.detail( item, type, originalEvent)
357+
* item - The item that was clicked. It cam be a task, resource or connection.
358+
* type - The type of item. Possible values are: 'task', 'resource', 'connection'.
359+
* originalEvent - The original DOM event.
360+
*/
361+
onItemClick?: ((event?: Event) => void) | undefined;
362+
/** This event is triggered when a Task/Resource/Connection is inserted.
363+
* @param event. The custom event. Custom event was created with: event.detail( type, item)
364+
* type - The type of item that has been modified.
365+
* item - An object that represents the actual item with it's attributes.
366+
*/
367+
onItemInsert?: ((event?: Event) => void) | undefined;
368+
/** This event is triggered when a Task/Resource/Connection is removed.
369+
* @param event. The custom event. Custom event was created with: event.detail( type, item)
370+
* type - The type of item that has been modified.
371+
* item - An object that represents the actual item with it's attributes.
372+
*/
373+
onItemRemove?: ((event?: Event) => void) | undefined;
374+
/** This event is triggered when a Task/Resource/Connection is updated.
375+
* @param event. The custom event. Custom event was created with: event.detail( type, item)
376+
* type - The type of item that has been modified.
377+
* item - An object that represents the actual item with it's attributes.
378+
*/
379+
onItemUpdate?: ((event?: Event) => void) | undefined;
328380
/** This event is triggered when the progress of a task bar starts to change as a result of user interaction. This event allows to cancel the operation by calling event.preventDefault() in the event handler function.
329381
* @param event. The custom event. Custom event was created with: event.detail( index, progress)
330382
* index - The index of the task which progress is going to be changed.
@@ -486,21 +538,36 @@ export declare class GanttChart extends React.Component<React.HTMLProps<Element>
486538
* @returns {any[]}
487539
*/
488540
getState(): Promise<any>;
541+
/** Returns the Tree path of a task/resource.
542+
* @param {GanttChartTask | GanttChartResource | number} item. A GattChartTask/GanttChartResource item object or index.
543+
* @returns {string}
544+
*/
545+
getItemPath(item: GanttChartTask | GanttChartResource | number): Promise<any>;
489546
/** Returns the index of a task.
490-
* @param {HTMLElement} task. A GattChartTask object.
547+
* @param {GanttChartTask} task. A GattChartTask object.
491548
* @returns {number}
492549
*/
493-
getTaskIndex(task: HTMLElement): Promise<any>;
550+
getTaskIndex(task: GanttChartTask): Promise<any>;
494551
/** Returns the tree path of a task.
495-
* @param {GanttChartTask} task. Returns the Tree path of the task as a string.
552+
* @param {GanttChartTask} task. A GanttChartTask object.
496553
* @returns {string}
497554
*/
498555
getTaskPath(task: GanttChartTask): Promise<any>;
556+
/** Returns teh Project of a task if any.
557+
* @param {GanttChartTask} task. A GantChartTask object.
558+
* @returns {GanttChartTask | undefined}
559+
*/
560+
getTaskProject(task: GanttChartTask): Promise<any>;
499561
/** Returns the index of a resource.
500562
* @param {any} resource. A GanttChartResource object.
501563
* @returns {number}
502564
*/
503565
getResourceIndex(resource: any): Promise<any>;
566+
/** Returns the tasks that are assigned to the resource.
567+
* @param {any} resource. A GanttChartResource object.
568+
* @returns {any}
569+
*/
570+
getResourceTasks(resource: any): Promise<any>;
504571
/** Unselects all currently selected items inside the GanttChart including Tasks and Resources. It also clears the assignment highlgihters.
505572
*/
506573
clearSelection(): void;
@@ -521,14 +588,14 @@ export declare class GanttChart extends React.Component<React.HTMLProps<Element>
521588
*/
522589
insertTask(index: string | number, taskObject: any): void;
523590
/** Updates a task inside the timeline.
524-
* @param {string | number} index. A number that represents the index of a task or a string that matches the hierarchical position of the item, e.g. '0' ( following jqxTree syntax).
591+
* @param {any} index. A number that represents the index of a task or a string that matches the hierarchical position of the item, e.g. '0' ( following jqxTree syntax).
525592
* @param {any} taskObject. An object describing a Gantt Chart task. The properties of this object will be applied to the desired task.
526593
*/
527-
updateTask(index: string | number, taskObject: any): void;
594+
updateTask(index: any, taskObject: any): void;
528595
/** Removes a task from the timeline.
529-
* @param {string | number} index. A number that represents the index of a task or a string that matches the hierarchical position of the item, e.g. '0' ( following jqxTree syntax).
596+
* @param {any} index. A number that represents the index of a task or a string that matches the hierarchical position of the item, e.g. '0' ( following jqxTree syntax).
530597
*/
531-
removeTask(index: string | number): void;
598+
removeTask(index: any): void;
532599
/** Inserts a new resource.
533600
* @param {string | number} resourceId. A string that represents the id of a resource or it's hierarchical position, e.g. '0' ( following jqxTree syntax), or a number that represents the index of a resource.
534601
* @param {any} resourceObject?. An object describing a Gantt Chart resource.

daterangeinput/daterangeinput.d.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,11 @@ export declare class DateRangeInput extends React.Component<React.HTMLProps<Elem
137137
*/
138138
get unfocusable(): boolean;
139139
set unfocusable(value: boolean);
140-
/** Sets or gets the value of the element.
141-
* Property type: string
140+
/** Sets or gets the value of the element. The type of the value depends on the valueType property.
141+
* Property type: any
142142
*/
143-
get value(): string;
144-
set value(value: string);
143+
get value(): any;
144+
set value(value: any);
145145
/** Determines the value type returned from the `value` property.
146146
* Property type: DateRangeInputValueType
147147
*/

daterangeinput/daterangeinput.esm.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@ class DateRangeInput extends React.Component {
283283
this.nativeElement.unfocusable = value;
284284
}
285285
}
286-
/** Sets or gets the value of the element.
287-
* Property type: string
286+
/** Sets or gets the value of the element. The type of the value depends on the valueType property.
287+
* Property type: any
288288
*/
289289
get value() {
290290
return this.nativeElement ? this.nativeElement.value : undefined;

daterangeinput/daterangeinput.umd.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -289,8 +289,8 @@ require('../source/modules/smart.daterangeinput');
289289
this.nativeElement.unfocusable = value;
290290
}
291291
}
292-
/** Sets or gets the value of the element.
293-
* Property type: string
292+
/** Sets or gets the value of the element. The type of the value depends on the valueType property.
293+
* Property type: any
294294
*/
295295
get value() {
296296
return this.nativeElement ? this.nativeElement.value : undefined;

datetimepicker/datetimepicker.d.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,10 @@ export declare class DateTimePicker extends React.Component<React.HTMLProps<Elem
152152
get hint(): string;
153153
set hint(value: string);
154154
/** Sets dates, displayed as important in the calendar pop-up.
155-
* Property type: string[]
155+
* Property type: string[] | Date[]
156156
*/
157-
get importantDates(): string[];
158-
set importantDates(value: string[]);
157+
get importantDates(): string[] | Date[];
158+
set importantDates(value: string[] | Date[]);
159159
/** Sets a template for the important dates of the calendar pop-up. Accepts the id of or a reference to an HTMLTemplateElement.
160160
* Property type: string | HTMLTemplateElement
161161
*/

datetimepicker/datetimepicker.esm.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ class DateTimePicker extends React.Component {
306306
}
307307
}
308308
/** Sets dates, displayed as important in the calendar pop-up.
309-
* Property type: string[]
309+
* Property type: string[] | Date[]
310310
*/
311311
get importantDates() {
312312
return this.nativeElement ? this.nativeElement.importantDates : undefined;

datetimepicker/datetimepicker.umd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ require('../source/modules/smart.datetimepicker');
312312
}
313313
}
314314
/** Sets dates, displayed as important in the calendar pop-up.
315-
* Property type: string[]
315+
* Property type: string[] | Date[]
316316
*/
317317
get importantDates() {
318318
return this.nativeElement ? this.nativeElement.importantDates : undefined;

0 commit comments

Comments
 (0)