dhtmlx-scheduler 7.0.0 → 7.0.1
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.
- package/README.md +3 -3
- package/bower.json +1 -1
- package/codebase/dhtmlxscheduler.css +1 -1
- package/codebase/dhtmlxscheduler.es.js +11 -8
- package/codebase/dhtmlxscheduler.es.js.map +1 -1
- package/codebase/dhtmlxscheduler.js +5 -5
- package/codebase/dhtmlxscheduler.js.map +1 -1
- package/codebase/sources/dhtmlxscheduler.css +20 -4
- package/codebase/sources/dhtmlxscheduler.es.js +19 -4
- package/codebase/sources/dhtmlxscheduler.es.js.map +1 -1
- package/codebase/sources/dhtmlxscheduler.js +19 -4
- package/codebase/sources/dhtmlxscheduler.js.map +1 -1
- package/codebase/sources/less/package.json +1 -1
- package/codebase/sources/less/src/columns_view.less +1 -0
- package/codebase/sources/less/src/icons.less +4 -0
- package/codebase/sources/less/src/quick_info.less +1 -1
- package/codebase/sources/less/src/timeline.less +16 -4
- package/package.json +1 -1
- package/whatsnew.md +8 -0
|
@@ -992,6 +992,7 @@
|
|
|
992
992
|
pos = { x: ev.clientX + (b.scrollLeft || d.scrollLeft || 0) - b.clientLeft, y: ev.clientY + (b.scrollTop || d.scrollTop || 0) - b.clientTop };
|
|
993
993
|
if (this.config.rtl && this._colsS) {
|
|
994
994
|
pos.x = this.$container.querySelector(".dhx_cal_data").offsetWidth - pos.x;
|
|
995
|
+
pos.x += this.$domHelpers.getAbsoluteLeft(this._obj);
|
|
995
996
|
if (this._mode !== "month") {
|
|
996
997
|
pos.x -= this.xy.scale_width;
|
|
997
998
|
}
|
|
@@ -1424,6 +1425,8 @@
|
|
|
1424
1425
|
this._drag_id = null;
|
|
1425
1426
|
this._drag_mode = null;
|
|
1426
1427
|
this._drag_pos = null;
|
|
1428
|
+
this._drag_event = null;
|
|
1429
|
+
this._drag_from_start = null;
|
|
1427
1430
|
};
|
|
1428
1431
|
scheduler2._trigger_dyn_loading = function() {
|
|
1429
1432
|
if (this._load_mode && this._load()) {
|
|
@@ -3310,7 +3313,7 @@
|
|
|
3310
3313
|
} };
|
|
3311
3314
|
}
|
|
3312
3315
|
function extend$d(scheduler2) {
|
|
3313
|
-
scheduler2.config = { default_date: "%j %M %Y", month_date: "%F %Y", load_date: "%Y-%m-%d", week_date: "%l", day_date: "%D %j", hour_date: "%H:%i", month_day: "%d", date_format: "%Y-%m-%d %H:%i", api_date: "%d-%m-%Y %H:%i", parse_exact_format: false, preserve_length: true, time_step: 5, displayed_event_color: "#ff4a4a", displayed_event_text_color: "#ffef80", wide_form: 0, day_column_padding: 8, use_select_menu_space: true, fix_tab_position: true, start_on_monday: true, first_hour: 0, last_hour: 24, readonly: false, drag_resize: true, drag_move: true, drag_create: true, drag_event_body: true, dblclick_create: true, details_on_dblclick: true, edit_on_create: true, details_on_create: true, header: null, hour_size_px: 44, resize_month_events: false, resize_month_timed: false, responsive_lightbox: false, separate_short_events: true, rtl: false, cascade_event_display: false, cascade_event_count: 4, cascade_event_margin: 30, multi_day: true, multi_day_height_limit:
|
|
3316
|
+
scheduler2.config = { default_date: "%j %M %Y", month_date: "%F %Y", load_date: "%Y-%m-%d", week_date: "%l", day_date: "%D %j", hour_date: "%H:%i", month_day: "%d", date_format: "%Y-%m-%d %H:%i", api_date: "%d-%m-%Y %H:%i", parse_exact_format: false, preserve_length: true, time_step: 5, displayed_event_color: "#ff4a4a", displayed_event_text_color: "#ffef80", wide_form: 0, day_column_padding: 8, use_select_menu_space: true, fix_tab_position: true, start_on_monday: true, first_hour: 0, last_hour: 24, readonly: false, drag_resize: true, drag_move: true, drag_create: true, drag_event_body: true, dblclick_create: true, details_on_dblclick: true, edit_on_create: true, details_on_create: true, header: null, hour_size_px: 44, resize_month_events: false, resize_month_timed: false, responsive_lightbox: false, separate_short_events: true, rtl: false, cascade_event_display: false, cascade_event_count: 4, cascade_event_margin: 30, multi_day: true, multi_day_height_limit: 200, drag_lightbox: true, preserve_scroll: true, select: true, server_utc: false, touch: true, touch_tip: true, touch_drag: 500, touch_swipe_dates: false, quick_info_detached: true, positive_closing: false, drag_highlight: true, limit_drag_out: false, icons_edit: ["icon_save", "icon_cancel"], icons_select: ["icon_details", "icon_edit", "icon_delete"], buttons_left: ["dhx_save_btn", "dhx_cancel_btn"], buttons_right: ["dhx_delete_btn"], lightbox: { sections: [{ name: "description", map_to: "text", type: "textarea", focus: true }, { name: "time", height: 72, type: "time", map_to: "auto" }] }, highlight_displayed_event: true, left_border: false, ajax_error: "alert", delay_render: 0, timeline_swap_resize: true, wai_aria_attributes: true, wai_aria_application_role: true, csp: "auto", event_attribute: "data-event-id", show_errors: true };
|
|
3314
3317
|
scheduler2.config.buttons_left.$initial = scheduler2.config.buttons_left.join();
|
|
3315
3318
|
scheduler2.config.buttons_right.$initial = scheduler2.config.buttons_right.join();
|
|
3316
3319
|
scheduler2._helpers = { parseDate: function parseDate(date) {
|
|
@@ -7665,7 +7668,7 @@
|
|
|
7665
7668
|
}
|
|
7666
7669
|
}
|
|
7667
7670
|
function factoryMethod(extensionManager) {
|
|
7668
|
-
const scheduler2 = { version: "7.0.
|
|
7671
|
+
const scheduler2 = { version: "7.0.1" };
|
|
7669
7672
|
extend$n(scheduler2);
|
|
7670
7673
|
extend$i(scheduler2);
|
|
7671
7674
|
extend$j(scheduler2);
|
|
@@ -9311,7 +9314,11 @@
|
|
|
9311
9314
|
area = scheduler2.$container.querySelector(".dhx_cal_data");
|
|
9312
9315
|
}
|
|
9313
9316
|
var width = Math.max(1, end_pos - start_pos - 1);
|
|
9314
|
-
|
|
9317
|
+
let direction = "left";
|
|
9318
|
+
if (scheduler2.config.rtl) {
|
|
9319
|
+
direction = "right";
|
|
9320
|
+
}
|
|
9321
|
+
block.style.cssText = `height:${height}px; ${direction}:${start_pos}px; width:${width}px; top:${top}px;`;
|
|
9315
9322
|
if (area) {
|
|
9316
9323
|
area.appendChild(block);
|
|
9317
9324
|
blocks.push(block);
|
|
@@ -14149,6 +14156,13 @@
|
|
|
14149
14156
|
var height = qi.offsetHeight;
|
|
14150
14157
|
if (scheduler2.config.quick_info_detached) {
|
|
14151
14158
|
var left = pos.left - pos.dx * (width - pos.width);
|
|
14159
|
+
if (scheduler2.getView() && scheduler2.getView()._x_scroll) {
|
|
14160
|
+
if (scheduler2.config.rtl) {
|
|
14161
|
+
left += scheduler2.getView()._x_scroll;
|
|
14162
|
+
} else {
|
|
14163
|
+
left -= scheduler2.getView()._x_scroll;
|
|
14164
|
+
}
|
|
14165
|
+
}
|
|
14152
14166
|
var right = left + width;
|
|
14153
14167
|
if (right > window.innerWidth) {
|
|
14154
14168
|
left = window.innerWidth - width;
|
|
@@ -14157,7 +14171,8 @@
|
|
|
14157
14171
|
qi.style.left = left + "px";
|
|
14158
14172
|
qi.style.top = pos.top - (pos.dy ? height : -pos.height) + "px";
|
|
14159
14173
|
} else {
|
|
14160
|
-
|
|
14174
|
+
const dataPos = scheduler2.$container.querySelector(".dhx_cal_data").offsetTop;
|
|
14175
|
+
qi.style.top = dataPos + 20 + "px";
|
|
14161
14176
|
if (pos.dx == 1) {
|
|
14162
14177
|
qi.style.right = "auto";
|
|
14163
14178
|
qi.style.left = -width + "px";
|