Skip to content

Commit

Permalink
[update] version 6.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKlimenkov committed Jul 31, 2023
1 parent 71ee620 commit 5122ced
Show file tree
Hide file tree
Showing 23 changed files with 266 additions and 103 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# dhtmlxScheduler #

[![dhtmlx.com](https://img.shields.io/badge/made%20by-DHTMLX-blue)](https://dhtmlx.com/)
[![npm: v.6.0.4](https://img.shields.io/badge/npm-v.6.0.4-blue.svg)](https://www.npmjs.com/package/dhtmlx-scheduler)
[![npm: v.6.0.5](https://img.shields.io/badge/npm-v.6.0.5-blue.svg)](https://www.npmjs.com/package/dhtmlx-scheduler)
[![License: GPL v2](https://img.shields.io/badge/license-GPL%20v2-blue.svg)](https://www.gnu.org/licenses/old-licenses/gpl-2.0.html)

[DHTMLX Scheduler](https://dhtmlx.com/docs/products/dhtmlxScheduler) is a JavaScript library that allows you to add a Google-like scheduler to your web app or website.
Expand Down Expand Up @@ -87,7 +87,7 @@ scheduler.parse([

## License ##

dhtmlxScheduler v.6.0.4 Standard
dhtmlxScheduler v.6.0.5 Standard

To use dhtmlxScheduler in non-GPL projects (and get Pro version of the product), please obtain Individual, Commercial, Enterprise or Ultimate license on our site https://dhtmlx.com/docs/products/dhtmlxScheduler/#licensing or contact us at [email protected]

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "scheduler",
"version": "6.0.4",
"version": "6.0.5",
"homepage": "https://dhtmlx.com/docs/products/dhtmlxScheduler/",
"description": "JavaScript event calendar. Allows to manage events and appointments in different views",
"main": [
Expand Down
2 changes: 1 addition & 1 deletion codebase/dhtmlxscheduler.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

232 changes: 184 additions & 48 deletions codebase/dhtmlxscheduler.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,90 @@ type SchedulerCallback = (...args: any[]) => any;
type SchedulerFilterCallback = { (id: string | number, event: any): boolean }


type SchedulerEventName = "onAfterEventDisplay"|"onAfterFolderToggle"|"onAfterLightbox"|"onAfterQuickInfo"|"onAfterSchedulerResize"|"onBeforeCollapse"|"onBeforeDrag"|"onBeforeEventChanged"|"onBeforeEventCreated"|"onBeforeEventDelete"|"onBeforeEventDisplay"|"onBeforeEventDragIn"|"onBeforeEventDragOut"|"onBeforeEventPasted"|"onBeforeExpand"|"onBeforeExternalDragIn"|"onBeforeFolderToggle"|"onBeforeLightbox"|"onBeforeParse"|"onBeforeTodayDisplayed"|"onBeforeTooltip"|"onBeforeViewChange"|"onCellClick"|"onCellDblClick"|"onClearAll"|"onClick"|"onCollapse"|"onConfirmedBeforeEventDelete"|"onContextMenu"|"onDataRender"|"onDblClick"|"onDestroy"|"onDragEnd"|"onEmptyClick"|"onError"|"onEventAdded"|"onEventCancel"|"onEventChanged"|"onEventCollision"|"onEventCopied"|"onEventCreated"|"onEventCut"|"onEventDeleted"|"onEventDrag"|"onEventDragIn"|"onEventDragOut"|"onEventDropOut"|"onEventIdChange"|"onEventLoading"|"onEventPasted"|"onEventSave"|"onEventSelected"|"onEventUnselected"|"onExpand"|"onExternalDragIn"|"onLightbox"|"onLightboxButton"|"onLimitViolation"|"onLoadEnd"|"onLoadError"|"onLoadStart"|"onLocationError"|"onMouseDown"|"onMouseMove"|"onOptionsLoad"|"onOptionsLoadFinal"|"onOptionsLoadStart"|"onParse"|"onQuickInfo"|"onSaveError"|"onScaleAdd"|"onScaleDblClick"|"onSchedulerReady"|"onSchedulerResize"|"onTemplatesReady"|"onTimelineCreated"|"onViewChange"|"onViewMoreClick"|"onXLE"|"onXLS"|"onXScaleClick"|"onXScaleDblClick"|"onYScaleClick"|"onYScaleDblClick";
type SchedulerEventName = "onAfterEventDisplay" |
"onAfterFolderToggle" |
"onAfterLightbox" |
"onAfterQuickInfo" |
"onAfterSchedulerResize" |
"onBeforeCollapse" |
"onBeforeDrag" |
"onBeforeEventChanged" |
"onBeforeEventCreated" |
"onBeforeEventDelete" |
"onBeforeEventDisplay" |
"onBeforeEventDragIn" |
"onBeforeEventDragOut" |
"onBeforeEventPasted" |
"onBeforeExpand" |
"onBeforeExternalDragIn" |
"onBeforeFolderToggle" |
"onBeforeLightbox" |
"onBeforeParse" |
"onBeforeTodayDisplayed" |
"onBeforeTooltip" |
"onBeforeViewChange" |
"onCellClick" |
"onCellDblClick" |
"onClearAll" |
"onClick" |
"onCollapse" |
"onConfirmedBeforeEventDelete" |
"onContextMenu" |
"onDataRender" |
"onDblClick" |
"onDestroy" |
"onDragEnd" |
"onEmptyClick" |
"onError" |
"onEventAdded" |
"onEventCancel" |
"onEventChanged" |
"onEventCollision" |
"onEventCopied" |
"onEventCreated" |
"onEventCut" |
"onEventDeleted" |
"onEventDrag" |
"onEventDragIn" |
"onEventDragOut" |
"onEventDropOut" |
"onEventIdChange" |
"onEventLoading" |
"onEventPasted" |
"onEventSave" |
"onEventSelected" |
"onEventUnselected" |
"onExpand" |
"onExternalDragIn" |
"onLightbox" |
"onLightboxButton" |
"onLimitViolation" |
"onLoadEnd" |
"onLoadError" |
"onLoadStart" |
"onLocationError" |
"onMouseDown" |
"onMouseMove" |
"onOptionsLoad" |
"onOptionsLoadFinal" |
"onOptionsLoadStart" |
"onParse" |
"onQuickInfo" |
"onSaveError" |
"onScaleAdd" |
"onScaleDblClick" |
"onSchedulerReady" |
"onSchedulerResize" |
"onTemplatesReady" |
"onTimelineCreated" |
"onViewChange" |
"onViewMoreClick" |
"onXLE" |
"onXLS" |
"onXScaleClick" |
"onXScaleDblClick" |
"onYScaleClick" |
"onYScaleDblClick";


export interface SchedulerTemplates {
Expand Down Expand Up @@ -358,6 +441,13 @@ export interface SchedulerTemplates {
*/
grid_date(start: Date, end: Date): string;

/**
* specifies the text in the columns
* @param field_name the column's id
* @param event the event object
*/
grid_field(field_name: string, event: any): string;

/**
* specifies the format of dates in columns with id='date'
* @param start the date when an event is scheduled to begin
Expand All @@ -373,11 +463,12 @@ export interface SchedulerTemplates {
grid_single_date(date: Date): string;

/**
* specifies the text in the columns
* @param field_name the column's id
* @param event the event object
* specifies the CSS class that will be applied to a cell of the view
* @param evs an array of objects of events contained in a cell (defined only in the 'cell' mode)
* @param date the date of a column
* @param section the section object
*/
grid_field(field_name: string, event: any): string;
timeline_cell_class(evs: any[], date: Date, section: any): string;

/**
* specifies the number of scheduled events in a cell of the view
Expand All @@ -388,32 +479,24 @@ export interface SchedulerTemplates {
timeline_cell_value(evs: any[], date: Date, section: any): string;

/**
* specifies the CSS class that will be applied to a cell of the view
* @param evs an array of objects of events contained in a cell (defined only in the 'cell' mode)
* @param date the date of a column
* @param section the section object
* specifies the date in the header of the view
* @param date1 the date when an event is scheduled to begin
* @param date2 the date when an event is scheduled to be completed
*/
timeline_cell_class(evs: any[], date: Date, section: any): string;
timeline_date(date1: Date, date2: Date): string;

/**
* specifies the name of a CSS class that will be applied to items of the X-Axis
* @param date the date which needs formatting
* specifies the CSS class that will be applied to a row of the Timeline view
* @param section the section object
* @param timeline the timeline object
*/
timeline_scalex_class(date: Date): string;
timeline_row_class(section: any, timeline: any): string;

/**
* specifies the name of a CSS class that will be applied to items of the second X-Axis
* specifies items of the X-Axis
* @param date the date which needs formatting
*/
timeline_second_scalex_class(date: Date): string;

/**
* specifies the name of a CSS class that will be applied to items of the Y-Axis
* @param key the section's id
* @param label the section's label
* @param section the section object that contains the 'key' and 'label' properties
*/
timeline_scaley_class(key: string, label: string, section: any): string;
timeline_scale_date(date: Date): string;

/**
* specifies items of the Y-Axis
Expand All @@ -424,31 +507,38 @@ export interface SchedulerTemplates {
timeline_scale_label(key: string, label: string, section: any): string;

/**
* specifies the tooltip over a day cell containing some scheduled event(s)
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
* specifies the name of a CSS class that will be applied to items of the X-Axis
* @param date the date which needs formatting
*/
timeline_tooltip(start: Date, end: Date, event: any): string;
timeline_scalex_class(date: Date): string;

/**
* specifies the date in the header of the view
* @param date1 the date when an event is scheduled to begin
* @param date2 the date when an event is scheduled to be completed
* specifies the name of a CSS class that will be applied to items of the Y-Axis
* @param key the section's id
* @param label the section's label
* @param section the section object that contains the 'key' and 'label' properties
*/
timeline_date(date1: Date, date2: Date): string;
timeline_scaley_class(key: string, label: string, section: any): string;

/**
* specifies items of the X-Axis
* specifies items of the second X-Axis
* @param date the date which needs formatting
*/
timeline_scale_date(date: Date): string;
timeline_second_scale_date(date: Date): string;

/**
* specifies items of the second X-Axis
* specifies the name of a CSS class that will be applied to items of the second X-Axis
* @param date the date which needs formatting
*/
timeline_second_scale_date(date: Date): string;
timeline_second_scalex_class(date: Date): string;

/**
* specifies the tooltip over a day cell containing some scheduled event(s)
* @param start the date when an event is scheduled to begin
* @param end the date when an event is scheduled to be completed
* @param event the event object
*/
timeline_tooltip(start: Date, end: Date, event: any): string;

/**
* specifies the date in the header of the view
Expand Down Expand Up @@ -477,13 +567,6 @@ export interface SchedulerTemplates {
*/
xml_format(date: Date): string;

/**
* specifies the CSS class that will be applied to a row of the Timeline view
* @param section the section object
* @param timeline the timeline object
*/
timeline_row_class(section: any, timeline: any): string;

[customTemplate: string]: any;
}

Expand Down Expand Up @@ -995,7 +1078,7 @@ export interface SchedulerConfigOptions {
scroll_hour: number;

/**
* specifies the delimiter that will be used to separate several sections/units in the related data property of the event
* specifies the delimeter that will be used to separate several sections/units in the related data property of the event
*/
section_delimiter: string;

Expand Down Expand Up @@ -1224,6 +1307,50 @@ export interface SchedulerLocale {
labels: SchedulerLocaleLabels;
}

export interface SchedulerFormBlock {

/**
* Renders the form block based on the provided configuration.
* @function
* @name SchedulerFormBlock#render
* @param {any} config - The configuration object for the custom lightbox control.
* @returns {string} Returns the HTML string representing the rendered the custom control.
*/
render: (config: any) => string;

/**
* Sets the value of the custom lightbox control.
* @function
* @name SchedulerFormBlock#set_value
* @param {HTMLElement} node - HTML object related to HTML defined above.
* @param {*} value - value defined by map_to property.
* @param {Event} ev - The event object.
* @param {any} config - Section configuration object.
* @returns {void}
*/
set_value: (node: HTMLElement, value: any, ev: Event, config: any) => void;

/**
* Gets the value of the custom control.
* @function
* @name SchedulerFormBlock#get_value
* @param {HTMLElement} node - HTML object related to HTML defined above.
* @param {Event} ev - The event object.
* @param {any} config - Section configuration object.
* @returns {*} Returns the value of the custom lightbox control.
*/
get_value: (node: HTMLElement, ev: Event, config: any) => any;

/**
* Focuses on the custom lightbox control.
* @function
* @name SchedulerFormBlock#focus
* @param {HTMLElement} node - HTML object related to HTML defined above.
* @returns {void}
*/
focus: (node: HTMLElement) => void;
}

export interface SchedulerSizes {

/**
Expand Down Expand Up @@ -1440,9 +1567,9 @@ export interface SchedulerStatic {
* attaches the handler to an inner event of dhtmlxScheduler
* @param name the event's name, case-insensitive
* @param handler the handler function
* @param settings optional, an <a href="#propertiesofsettingsobject">object with settings</a> for the event handler
* @param settings optional, optional, an <a href="#propertiesofsettingsobject">object with settings</a> for the event handler
*/
attachEvent(name: SchedulerEventName, handler: SchedulerCallback, settings: any): string;
attachEvent(name: SchedulerEventName, handler: SchedulerCallback, settings?: any): string;

/**
* makes the scheduler reflect all data changes in the Backbone model and vice versa
Expand Down Expand Up @@ -1933,7 +2060,7 @@ export interface SchedulerStatic {
/**
* serializes all events loaded into the scheduler
*/
serialize(): any[];
serialize(): void;

/**
* defines a named collection that can be loaded into Units, Timeline views, or the Lightbox
Expand Down Expand Up @@ -2120,7 +2247,16 @@ export interface SchedulerStatic {
* @param view optional, (optional) the view name
*/
updateView(date?: Date, view?: string): void;
}

// /**
// * A key-value mapping of string keys to Scheduler form blocks.
// * The keys represent the names of the custom lightbox controls.
// * The values are objects that implement the SchedulerFormBlock interface.
// */
form_blocks: { [key: string]: SchedulerFormBlock };

[customMethod: string]: any;
}

export declare var scheduler: SchedulerStatic;

Expand Down
4 changes: 2 additions & 2 deletions codebase/dhtmlxscheduler.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion codebase/dhtmlxscheduler.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion codebase/dhtmlxscheduler_contrast_black.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion codebase/dhtmlxscheduler_contrast_white.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion codebase/dhtmlxscheduler_flat.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5122ced

Please sign in to comment.