Skip to content

Commit

Permalink
[update] version 7.0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexKlimenkov committed May 30, 2024
1 parent 11b9e1a commit 140d7de
Show file tree
Hide file tree
Showing 16 changed files with 55 additions and 34 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.7.0.4](https://img.shields.io/badge/npm-v.7.0.4-blue.svg)](https://www.npmjs.com/package/dhtmlx-scheduler)
[![npm: v.7.0.5](https://img.shields.io/badge/npm-v.7.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.7.0.4 Standard
dhtmlxScheduler v.7.0.5 Standard

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

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": "7.0.4",
"version": "7.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

Large diffs are not rendered by default.

33 changes: 17 additions & 16 deletions codebase/dhtmlxscheduler.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -1825,23 +1825,24 @@ class at {
_renderDayGrid(h) {
const { date: a, currentRange: r, eventDates: d, minWeeks: i } = this.getState();
let _ = r[0], o = r[1];
const t = d.reduce((p, y) => (p[this.scheduler.date.day_start(new Date(y)).valueOf()] = !0, p), {}), n = document.createElement("div");
const t = d.reduce((y, w) => (y[this.scheduler.date.day_start(new Date(w)).valueOf()] = !0, y), {}), n = document.createElement("div");
this._renderDayGridHeader(n), h.appendChild(n);
const s = this.scheduler, c = s.date.week_start(s.date.month_start(new Date(a))), u = s.date.month_start(new Date(a)), v = s.date.add(s.date.month_start(new Date(a)), 1, "month");
let m = s.date.add(s.date.month_start(new Date(a)), 1, "month");
const l = s.date.date_part(s._currentDate());
m.getDay() !== 0 && (m = s.date.add(s.date.week_start(m), 1, "week"));
let l = this._weeksBetween(c, m);
i && l < i && (m = s.date.add(m, i - l, "week"));
let f = c;
const g = document.createElement("div");
for (g.classList.add("dhx_cal_datepicker_days"), this._domEvents.attach(g, "click", (p) => {
const y = p.target.closest("[data-cell-date]"), w = new Date(y.getAttribute("data-cell-date"));
this.callEvent("onDateClick", [w, p]);
}); f.valueOf() < m.valueOf(); ) {
const p = document.createElement("div");
p.setAttribute("data-cell-date", s.templates.format_date(f)), p.setAttribute("data-day", f.getDay()), p.innerHTML = f.getDate(), f.valueOf() < u.valueOf() ? p.classList.add("dhx_before") : f.valueOf() >= v.valueOf() && p.classList.add("dhx_after"), f.getDay() !== 0 && f.getDay() !== 6 || p.classList.add("dhx_cal_datepicker_weekend"), _ && o && f.valueOf() >= _.valueOf() && f.valueOf() < o.valueOf() && p.classList.add("dhx_cal_datepicker_current"), t[f.valueOf()] && p.classList.add("dhx_cal_datepicker_event"), p.classList.add("dhx_cal_datepicker_date"), g.appendChild(p), f = s.date.add(f, 1, "day");
}
h.appendChild(g);
let f = this._weeksBetween(c, m);
i && f < i && (m = s.date.add(m, i - f, "week"));
let g = c;
const p = document.createElement("div");
for (p.classList.add("dhx_cal_datepicker_days"), this._domEvents.attach(p, "click", (y) => {
const w = y.target.closest("[data-cell-date]"), b = new Date(w.getAttribute("data-cell-date"));
this.callEvent("onDateClick", [b, y]);
}); g.valueOf() < m.valueOf(); ) {
const y = document.createElement("div");
y.setAttribute("data-cell-date", s.templates.format_date(g)), y.setAttribute("data-day", g.getDay()), y.innerHTML = g.getDate(), g.valueOf() < u.valueOf() ? y.classList.add("dhx_before") : g.valueOf() >= v.valueOf() && y.classList.add("dhx_after"), g.getDay() !== 0 && g.getDay() !== 6 || y.classList.add("dhx_cal_datepicker_weekend"), g.valueOf() == l.valueOf() && y.classList.add("dhx_now"), _ && o && g.valueOf() >= _.valueOf() && g.valueOf() < o.valueOf() && y.classList.add("dhx_cal_datepicker_current"), t[g.valueOf()] && y.classList.add("dhx_cal_datepicker_event"), y.classList.add("dhx_cal_datepicker_date"), p.appendChild(y), g = s.date.add(g, 1, "day");
}
h.appendChild(p);
}
_renderMonthGrid(h) {
const { date: a } = this.getState(), r = document.createElement("div");
Expand Down Expand Up @@ -1886,7 +1887,7 @@ class at {
}
}
function nt(e) {
const h = { version: "7.0.4" };
const h = { version: "7.0.5" };
(function(t) {
var n = { agenda: "https://docs.dhtmlx.com/scheduler/agenda_view.html", grid: "https://docs.dhtmlx.com/scheduler/grid_view.html", map: "https://docs.dhtmlx.com/scheduler/map_view.html", unit: "https://docs.dhtmlx.com/scheduler/units_view.html", timeline: "https://docs.dhtmlx.com/scheduler/timeline_view.html", week_agenda: "https://docs.dhtmlx.com/scheduler/weekagenda_view.html", year: "https://docs.dhtmlx.com/scheduler/year_view.html", anythingElse: "https://docs.dhtmlx.com/scheduler/views.html" }, s = { agenda: "ext/dhtmlxscheduler_agenda_view.js", grid: "ext/dhtmlxscheduler_grid_view.js", map: "ext/dhtmlxscheduler_map_view.js", unit: "ext/dhtmlxscheduler_units.js", timeline: "ext/dhtmlxscheduler_timeline.js, ext/dhtmlxscheduler_treetimeline.js, ext/dhtmlxscheduler_daytimeline.js", week_agenda: "ext/dhtmlxscheduler_week_agenda.js", year: "ext/dhtmlxscheduler_year_view.js", limit: "ext/dhtmlxscheduler_limit.js" };
t._commonErrorMessages = { unknownView: function(c) {
Expand Down Expand Up @@ -3209,7 +3210,7 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
s = s || m;
var l = this._calc_event_y(n, t.xy.min_event_height), f = l.top, g = l.height, p = n._count || 1, y = n._sorder || 0;
c = c || m.clientWidth, this.config.day_column_padding && (c -= this.config.day_column_padding);
var w = Math.floor((c - v) / p), b = y * w + (y > 0 ? 2 : 1);
var w = Math.floor((c - v) / p), b = y * w + 1;
if (n._inner || (w *= p - y), this.config.cascade_event_display) {
var k = this.config.cascade_event_count, E = this.config.cascade_event_margin;
b = y % k * E;
Expand Down Expand Up @@ -3249,7 +3250,7 @@ https://docs.dhtmlx.com/scheduler/minicalendar.html`);
b.drag_id == n.id && (w += " dhx_cal_event_drag"), b.select_id == n.id && (w += " dhx_cal_event_selected");
var k = t.templates.event_class(n.start_date, n.end_date, n);
k && (w = w + " " + k), this.config.cascade_event_display && (w += " dhx_cal_event_cascade");
var E = u, D = '<div event_id="' + y + '" ' + this.config.event_attribute + '="' + y + '" class="' + w + '" style="position:absolute; top:' + c + "px; " + (this.config.rtl ? "right:" : "left:") + s + "px; width:" + E + "px; height:" + v + "px;" + (m || "") + '"></div>';
var E = u - 1, D = '<div event_id="' + y + '" ' + this.config.event_attribute + '="' + y + '" class="' + w + '" style="position:absolute; top:' + c + "px; " + (this.config.rtl ? "right:" : "left:") + s + "px; width:" + E + "px; height:" + v + "px;" + (m || "") + '"></div>';
p.innerHTML = D;
var x = p.cloneNode(!0).firstChild;
if (!g && t.renderEvent(x, n, u, v, l, f))
Expand Down
2 changes: 1 addition & 1 deletion codebase/dhtmlxscheduler.es.js.map

Large diffs are not rendered by default.

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.

3 changes: 3 additions & 0 deletions codebase/sources/dhtmlxscheduler.css
Original file line number Diff line number Diff line change
Expand Up @@ -3271,6 +3271,9 @@ div.dhx_timeline_label_column_header .dhx_timeline_label_content_wrapper {
color: var(--dhx-scheduler-datepicker-cell-color);
background: var(--dhx-scheduler-datepicker-cell-background);
}
.dhx_cal_datepicker_date.dhx_now {
--dhx-scheduler-datepicker-cell-background: var(--dhx-scheduler-timescale-today-background);
}
.dhx_cal_datepicker_weekend {
--dhx-scheduler-datepicker-cell-color: var(--dhx-scheduler-datepicker-weekend-color);
--dhx-scheduler-datepicker-cell-background: var(--dhx-scheduler-datepicker-weekend-background);
Expand Down
10 changes: 7 additions & 3 deletions codebase/sources/dhtmlxscheduler.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -4034,7 +4034,7 @@ function extend$c(scheduler2) {
parentWidth -= this.config.day_column_padding;
}
var width = Math.floor((parentWidth - menu_offset) / ev_count);
var left = ev_sorder * width + (ev_sorder > 0 ? 2 : 1);
var left = ev_sorder * width + 1;
if (!ev._inner)
width = width * (ev_count - ev_sorder);
if (this.config.cascade_event_display) {
Expand Down Expand Up @@ -4149,7 +4149,7 @@ function extend$c(scheduler2) {
if (this.config.cascade_event_display) {
cs2 += " dhx_cal_event_cascade";
}
var boxWidth = w;
var boxWidth = w - 1;
var html = '<div event_id="' + id2 + '" ' + this.config.event_attribute + '="' + id2 + '" class="' + cs2 + '" style="position:absolute; top:' + y + "px; " + (this.config.rtl ? "right:" : "left:") + x + "px; width:" + boxWidth + "px; height:" + h + "px;" + (style || "") + '"></div>';
d.innerHTML = html;
var container = d.cloneNode(true).firstChild;
Expand Down Expand Up @@ -7496,6 +7496,7 @@ class DatePicker {
const monthStart = scheduler2.date.month_start(new Date(date));
const monthEnd = scheduler2.date.add(scheduler2.date.month_start(new Date(date)), 1, "month");
let lastDate = scheduler2.date.add(scheduler2.date.month_start(new Date(date)), 1, "month");
const currentCalDate = scheduler2.date.date_part(scheduler2._currentDate());
if (lastDate.getDay() !== 0) {
lastDate = scheduler2.date.add(scheduler2.date.week_start(lastDate), 1, "week");
}
Expand Down Expand Up @@ -7524,6 +7525,9 @@ class DatePicker {
if (currDate.getDay() === 0 || currDate.getDay() === 6) {
dayElement.classList.add("dhx_cal_datepicker_weekend");
}
if (currDate.valueOf() == currentCalDate.valueOf()) {
dayElement.classList.add("dhx_now");
}
if (minSchedulerDate && maxSchedulerDate) {
if (currDate.valueOf() >= minSchedulerDate.valueOf() && currDate.valueOf() < maxSchedulerDate.valueOf()) {
dayElement.classList.add("dhx_cal_datepicker_current");
Expand Down Expand Up @@ -7616,7 +7620,7 @@ class DatePicker {
}
}
function factoryMethod(extensionManager) {
const scheduler2 = { version: "7.0.4" };
const scheduler2 = { version: "7.0.5" };
extend$n(scheduler2);
extend$i(scheduler2);
extend$j(scheduler2);
Expand Down
2 changes: 1 addition & 1 deletion codebase/sources/dhtmlxscheduler.es.js.map

Large diffs are not rendered by default.

10 changes: 7 additions & 3 deletions codebase/sources/dhtmlxscheduler.js
Original file line number Diff line number Diff line change
Expand Up @@ -4038,7 +4038,7 @@
parentWidth -= this.config.day_column_padding;
}
var width = Math.floor((parentWidth - menu_offset) / ev_count);
var left = ev_sorder * width + (ev_sorder > 0 ? 2 : 1);
var left = ev_sorder * width + 1;
if (!ev._inner)
width = width * (ev_count - ev_sorder);
if (this.config.cascade_event_display) {
Expand Down Expand Up @@ -4153,7 +4153,7 @@
if (this.config.cascade_event_display) {
cs2 += " dhx_cal_event_cascade";
}
var boxWidth = w;
var boxWidth = w - 1;
var html = '<div event_id="' + id2 + '" ' + this.config.event_attribute + '="' + id2 + '" class="' + cs2 + '" style="position:absolute; top:' + y + "px; " + (this.config.rtl ? "right:" : "left:") + x + "px; width:" + boxWidth + "px; height:" + h + "px;" + (style || "") + '"></div>';
d.innerHTML = html;
var container = d.cloneNode(true).firstChild;
Expand Down Expand Up @@ -7500,6 +7500,7 @@
const monthStart = scheduler2.date.month_start(new Date(date));
const monthEnd = scheduler2.date.add(scheduler2.date.month_start(new Date(date)), 1, "month");
let lastDate = scheduler2.date.add(scheduler2.date.month_start(new Date(date)), 1, "month");
const currentCalDate = scheduler2.date.date_part(scheduler2._currentDate());
if (lastDate.getDay() !== 0) {
lastDate = scheduler2.date.add(scheduler2.date.week_start(lastDate), 1, "week");
}
Expand Down Expand Up @@ -7528,6 +7529,9 @@
if (currDate.getDay() === 0 || currDate.getDay() === 6) {
dayElement.classList.add("dhx_cal_datepicker_weekend");
}
if (currDate.valueOf() == currentCalDate.valueOf()) {
dayElement.classList.add("dhx_now");
}
if (minSchedulerDate && maxSchedulerDate) {
if (currDate.valueOf() >= minSchedulerDate.valueOf() && currDate.valueOf() < maxSchedulerDate.valueOf()) {
dayElement.classList.add("dhx_cal_datepicker_current");
Expand Down Expand Up @@ -7620,7 +7624,7 @@
}
}
function factoryMethod(extensionManager) {
const scheduler2 = { version: "7.0.4" };
const scheduler2 = { version: "7.0.5" };
extend$n(scheduler2);
extend$i(scheduler2);
extend$j(scheduler2);
Expand Down
2 changes: 1 addition & 1 deletion codebase/sources/dhtmlxscheduler.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion codebase/sources/less/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dhtmlx-scheduler-skins",
"version": "7.0.4",
"version": "7.0.5",
"description": "Less sources and a build tool for DHTMLXScheduler skins",
"scripts": {
"build": "node scripts.js --file=theme",
Expand Down
3 changes: 3 additions & 0 deletions codebase/sources/less/src/datepicker.less
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,9 @@
height: var(--dhx-scheduler-datepicker-cell-size);
color: var(--dhx-scheduler-datepicker-cell-color);
background: var(--dhx-scheduler-datepicker-cell-background);
&.dhx_now {
--dhx-scheduler-datepicker-cell-background: var(--dhx-scheduler-timescale-today-background);
}
}

.dhx_cal_datepicker_weekend {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dhtmlx-scheduler",
"version": "7.0.4",
"version": "7.0.5",
"description": "JavaScript event calendar. Allows to manage events and appointments in different views",
"main": "codebase/dhtmlxscheduler.es.js",
"types": "codebase/dhtmlxscheduler.es.d.ts",
Expand Down
6 changes: 6 additions & 0 deletions whatsnew.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
### 7.0.5

Fix the incorrect height of the Timeline sections when the event_dy:"full" setting is used
Fix the missing "today" marker in the Year view
Correct the positioning of events in the Day/Week views

### 7.0.4

Add the placeholder setting for the textarea control
Expand Down

0 comments on commit 140d7de

Please sign in to comment.