dhtmlx-scheduler 7.1.0 → 7.1.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 +2 -2
- package/bower.json +1 -1
- package/codebase/dhtmlxscheduler.d.ts +1 -1
- package/codebase/dhtmlxscheduler.es.d.ts +1 -1
- package/codebase/dhtmlxscheduler.es.js +62 -51
- package/codebase/dhtmlxscheduler.es.js.map +1 -1
- package/codebase/dhtmlxscheduler.js +13 -13
- package/codebase/dhtmlxscheduler.js.map +1 -1
- package/codebase/sources/dhtmlxscheduler.es.js +55 -19
- package/codebase/sources/dhtmlxscheduler.es.js.map +1 -1
- package/codebase/sources/dhtmlxscheduler.js +55 -19
- package/codebase/sources/dhtmlxscheduler.js.map +1 -1
- package/codebase/sources/less/package.json +1 -1
- package/package.json +1 -1
- package/whatsnew.md +10 -0
|
@@ -8053,27 +8053,56 @@ DataProcessor.prototype = { setTransactionMode: function(mode, total) {
|
|
|
8053
8053
|
code.call(this, rowId);
|
|
8054
8054
|
}
|
|
8055
8055
|
}
|
|
8056
|
-
},
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8056
|
+
}, _prepareItemForJson(item) {
|
|
8057
|
+
const processedItem = {};
|
|
8058
|
+
const scheduler2 = this.$scheduler;
|
|
8059
|
+
const copy2 = scheduler2.utils.copy(item);
|
|
8060
|
+
for (let i in copy2) {
|
|
8061
|
+
let prop = copy2[i];
|
|
8062
|
+
if (i.indexOf("_") === 0) {
|
|
8063
|
+
continue;
|
|
8064
|
+
} else if (prop) {
|
|
8065
|
+
if (prop.getUTCFullYear) {
|
|
8066
|
+
processedItem[i] = scheduler2._helpers.formatDate(prop);
|
|
8067
|
+
} else if (typeof prop == "object") {
|
|
8068
|
+
processedItem[i] = this._prepareItemForJson(prop);
|
|
8069
|
+
} else {
|
|
8070
|
+
processedItem[i] = prop;
|
|
8071
|
+
}
|
|
8072
|
+
} else if (prop !== void 0) {
|
|
8073
|
+
processedItem[i] = prop;
|
|
8074
|
+
}
|
|
8075
|
+
}
|
|
8076
|
+
processedItem[this.action_param] = scheduler2.getUserData(item.id, this.action_param);
|
|
8077
|
+
return processedItem;
|
|
8078
|
+
}, _prepareItemForForm(item) {
|
|
8079
|
+
const processedItem = {};
|
|
8080
|
+
const scheduler2 = this.$scheduler;
|
|
8081
|
+
const copy2 = scheduler2.utils.copy(item);
|
|
8060
8082
|
for (var i in copy2) {
|
|
8083
|
+
let prop = copy2[i];
|
|
8061
8084
|
if (i.indexOf("_") === 0) {
|
|
8062
8085
|
continue;
|
|
8063
|
-
} else if (
|
|
8064
|
-
if (
|
|
8065
|
-
processedItem[i] = scheduler2._helpers.formatDate(
|
|
8066
|
-
} else if (typeof
|
|
8067
|
-
processedItem[i] = this.
|
|
8068
|
-
} else if (copy2[i] === null) {
|
|
8069
|
-
processedItem[i] = "";
|
|
8086
|
+
} else if (prop) {
|
|
8087
|
+
if (prop.getUTCFullYear) {
|
|
8088
|
+
processedItem[i] = scheduler2._helpers.formatDate(prop);
|
|
8089
|
+
} else if (typeof prop == "object") {
|
|
8090
|
+
processedItem[i] = this._prepareItemForForm(prop);
|
|
8070
8091
|
} else {
|
|
8071
|
-
processedItem[i] =
|
|
8092
|
+
processedItem[i] = prop;
|
|
8072
8093
|
}
|
|
8094
|
+
} else {
|
|
8095
|
+
processedItem[i] = "";
|
|
8073
8096
|
}
|
|
8074
8097
|
}
|
|
8075
8098
|
processedItem[this.action_param] = scheduler2.getUserData(item.id, this.action_param);
|
|
8076
8099
|
return processedItem;
|
|
8100
|
+
}, _prepareDataItem: function(item) {
|
|
8101
|
+
if (this._serializeAsJson) {
|
|
8102
|
+
return this._prepareItemForJson(item);
|
|
8103
|
+
} else {
|
|
8104
|
+
return this._prepareItemForForm(item);
|
|
8105
|
+
}
|
|
8077
8106
|
}, _getRowData: function(id2) {
|
|
8078
8107
|
var dataItem = this.$scheduler.getEvent(id2);
|
|
8079
8108
|
if (!dataItem) {
|
|
@@ -8723,7 +8752,7 @@ class DatePicker {
|
|
|
8723
8752
|
}
|
|
8724
8753
|
}
|
|
8725
8754
|
function factoryMethod(extensionManager) {
|
|
8726
|
-
const scheduler2 = { version: "7.1.
|
|
8755
|
+
const scheduler2 = { version: "7.1.1" };
|
|
8727
8756
|
scheduler2.$stateProvider = StateService();
|
|
8728
8757
|
scheduler2.getState = scheduler2.$stateProvider.getState;
|
|
8729
8758
|
extend$n(scheduler2);
|
|
@@ -9485,7 +9514,7 @@ function container_autoresize(scheduler2) {
|
|
|
9485
9514
|
} else {
|
|
9486
9515
|
var evl = data.firstChild;
|
|
9487
9516
|
const rows = evl.querySelectorAll(".dhx_cal_month_row");
|
|
9488
|
-
if (rows) {
|
|
9517
|
+
if (rows && rows.length) {
|
|
9489
9518
|
for (var i = 0; i < rows.length; i++) {
|
|
9490
9519
|
h[i]++;
|
|
9491
9520
|
if (h[i] * hb > this._colsS.height - this.xy.month_head_height) {
|
|
@@ -9522,14 +9551,11 @@ function container_autoresize(scheduler2) {
|
|
|
9522
9551
|
var last = this._els["dhx_multi_day"][0];
|
|
9523
9552
|
last.style.height = dh;
|
|
9524
9553
|
last.style.visibility = h[0] == -1 ? "hidden" : "visible";
|
|
9554
|
+
last.style.display = h[0] == -1 ? "none" : "";
|
|
9525
9555
|
last = this._els["dhx_multi_day"][1];
|
|
9526
9556
|
last.style.height = dh;
|
|
9527
9557
|
last.style.visibility = h[0] == -1 ? "hidden" : "visible";
|
|
9528
|
-
|
|
9529
|
-
last.style.display = "none";
|
|
9530
|
-
} else {
|
|
9531
|
-
last.style.display = "";
|
|
9532
|
-
}
|
|
9558
|
+
last.style.display = h[0] == -1 ? "none" : "";
|
|
9533
9559
|
last.className = h[0] ? "dhx_multi_day_icon" : "dhx_multi_day_icon_small";
|
|
9534
9560
|
this._dy_shift = (h[0] + 1) * hb;
|
|
9535
9561
|
h[0] = 0;
|
|
@@ -19721,6 +19747,13 @@ class TooltipManager {
|
|
|
19721
19747
|
watchableTarget = targetNode;
|
|
19722
19748
|
config.onmouseenter(event2, targetNode);
|
|
19723
19749
|
};
|
|
19750
|
+
if (scheduler2._mobile && scheduler2.config.touch_tooltip) {
|
|
19751
|
+
if (targetNode) {
|
|
19752
|
+
doOnMouseEnter();
|
|
19753
|
+
} else {
|
|
19754
|
+
config.onmouseleave(event2, targetNode);
|
|
19755
|
+
}
|
|
19756
|
+
}
|
|
19724
19757
|
if (watchableTarget) {
|
|
19725
19758
|
if (targetNode && targetNode === watchableTarget) {
|
|
19726
19759
|
config.onmousemove(event2, targetNode);
|
|
@@ -19824,6 +19857,9 @@ function tooltip(scheduler2) {
|
|
|
19824
19857
|
tooltipManager.hideTooltip();
|
|
19825
19858
|
});
|
|
19826
19859
|
scheduler2.attachEvent("onBeforeDrag", function() {
|
|
19860
|
+
if (scheduler2._mobile && scheduler2.config.touch_tooltip) {
|
|
19861
|
+
return true;
|
|
19862
|
+
}
|
|
19827
19863
|
tooltipManager.hideTooltip();
|
|
19828
19864
|
return true;
|
|
19829
19865
|
});
|