devexpress-aspnetcore-spreadsheet 24.1.14 → 24.1.16
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress AspNetCore Spreadsheet (dx-localization-builder.js)
|
|
3
|
-
* Version: 24.1.
|
|
4
|
-
* Copyright (c) 2012 -
|
|
3
|
+
* Version: 24.1.16
|
|
4
|
+
* Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED
|
|
5
5
|
* License: https://www.devexpress.com/Support/EULAs
|
|
6
6
|
*/
|
|
7
7
|
const jsHeader =
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* DevExpress AspNetCore Spreadsheet (dx-aspnetcore-spreadsheet.js)
|
|
3
|
-
* Version: 24.1.
|
|
4
|
-
* Copyright (c) 2012 -
|
|
3
|
+
* Version: 24.1.16
|
|
4
|
+
* Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED
|
|
5
5
|
* License: https://www.devexpress.com/Support/EULAs
|
|
6
6
|
*/
|
|
7
7
|
/*# namespace DevExpress.Web.Scripts #*/
|
|
@@ -804,7 +804,7 @@ Cookie.GetCookie = function(name) {
|
|
|
804
804
|
}
|
|
805
805
|
return null;
|
|
806
806
|
};
|
|
807
|
-
Cookie.SetCookie = function(name, value, expirationDate){
|
|
807
|
+
Cookie.SetCookie = function(name, value, expirationDate, sameSite){
|
|
808
808
|
if(!ASPx.IsExists(value)) {
|
|
809
809
|
Cookie.DelCookie(name);
|
|
810
810
|
return;
|
|
@@ -814,10 +814,25 @@ Cookie.SetCookie = function(name, value, expirationDate){
|
|
|
814
814
|
expirationDate = new Date();
|
|
815
815
|
expirationDate.setFullYear(expirationDate.getFullYear() + 1);
|
|
816
816
|
}
|
|
817
|
-
setCookieInternal(name, value, expirationDate);
|
|
817
|
+
setCookieInternal(name, value, expirationDate, sameSite);
|
|
818
818
|
};
|
|
819
|
-
function setCookieInternal(name, value, date){
|
|
820
|
-
document.cookie = escape(name) + "=" + escape(value.toString()) + "; expires=" + date.toGMTString() + "; path=/";
|
|
819
|
+
function setCookieInternal(name, value, date, sameSite) {
|
|
820
|
+
document.cookie = escape(name) + "=" + escape(value.toString()) + "; expires=" + date.toGMTString() + "; path=/" + resolveCookieSameSite(sameSite);
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
function resolveCookieSameSite(sameSite) { // https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Cookies#controlling_third-party_cookies_with_samesite
|
|
824
|
+
var cookieSameSitePossibleValues = ["none", "lax", "strict"];
|
|
825
|
+
var index = -1;
|
|
826
|
+
if(sameSite)
|
|
827
|
+
index = cookieSameSitePossibleValues.indexOf(sameSite.toString().toLowerCase());
|
|
828
|
+
if(index < 0)
|
|
829
|
+
index = 1; // Lax by default
|
|
830
|
+
sameSite = cookieSameSitePossibleValues[index];
|
|
831
|
+
|
|
832
|
+
var result = "; SameSite=" + sameSite;
|
|
833
|
+
if(sameSite === "none") // if SameSite=None is set then the Secure attribute must also be set
|
|
834
|
+
result += "; Secure";
|
|
835
|
+
return result;
|
|
821
836
|
}
|
|
822
837
|
ASPx.Cookie = Cookie;
|
|
823
838
|
|
|
@@ -4829,6 +4844,21 @@ ASPx.CreateHtmlElementFromString = function(str) {
|
|
|
4829
4844
|
var dummy = ASPx.CreateHtmlElement();
|
|
4830
4845
|
setInnerHtmlInternal(dummy, str);
|
|
4831
4846
|
return dummy.firstChild;
|
|
4847
|
+
};
|
|
4848
|
+
ASPx.CreateHtmlElementFromStringWithBlockedScriptExecution = function (str) {
|
|
4849
|
+
var dummyIframe = ASPx.CreateHtmlElement("iframe");
|
|
4850
|
+
dummyIframe.setAttribute('sandbox', 'allow-same-origin');
|
|
4851
|
+
document.body.appendChild(dummyIframe);
|
|
4852
|
+
var doc = dummyIframe.contentDocument || dummyIframe.contentWindow.document;
|
|
4853
|
+
doc.open();
|
|
4854
|
+
doc.write('<!doctype html><html><head><meta charset="utf-8"></head><body></body></html>');
|
|
4855
|
+
doc.close();
|
|
4856
|
+
var dummy = doc.createElement("div");
|
|
4857
|
+
setInnerHtmlInternal(dummy, str);
|
|
4858
|
+
var result = dummy.firstChild;
|
|
4859
|
+
if(dummyIframe.remove)
|
|
4860
|
+
dummyIframe.remove();
|
|
4861
|
+
return result;
|
|
4832
4862
|
};
|
|
4833
4863
|
ASPx.CreateHtmlElement = function(tagName, styles) {
|
|
4834
4864
|
var element = document.createElement(tagName || "DIV");
|
|
@@ -6283,6 +6313,7 @@ ASPxClientUtils.GetChildByTagName = ASPx.GetChildByTagName;
|
|
|
6283
6313
|
|
|
6284
6314
|
/*# public static void SetCookie(string name, string value) { return; } #*/
|
|
6285
6315
|
/*# public static void SetCookie(string name, string value, DateTime expirationDate) { return; } #*/
|
|
6316
|
+
/*# public static void SetCookie(string name, string value, DateTime expirationDate, string sameSite) { return; } #*/
|
|
6286
6317
|
ASPxClientUtils.SetCookie = Cookie.SetCookie;
|
|
6287
6318
|
/*# public static string GetCookie(string name) { return ""; } #*/
|
|
6288
6319
|
ASPxClientUtils.GetCookie = Cookie.GetCookie;
|
|
@@ -21964,6 +21995,17 @@ var ASPxClientSpreadsheetDocumentChangedEventArgs = ASPx.CreateClass(ASPxClientE
|
|
|
21964
21995
|
}
|
|
21965
21996
|
});
|
|
21966
21997
|
|
|
21998
|
+
/*# public delegate void ASPxClientSpreadsheetBeforeSendEventHandler(object source, ASPxClientSpreadsheetBeforeSendEventArgs e); #*/
|
|
21999
|
+
/*# public class ASPxClientSpreadsheetBeforeSendEventArgs : ASPxClientEventArgs #*/
|
|
22000
|
+
var ASPxClientSpreadsheetBeforeSendEventArgs = ASPx.CreateClass(ASPxClientEventArgs, {
|
|
22001
|
+
/*# public ASPxClientSpreadsheetBeforeSendEventArgs(XMLHttpRequest request) : base() {} #*/
|
|
22002
|
+
constructor: function(request) {
|
|
22003
|
+
this.constructor.prototype.constructor.call(this);
|
|
22004
|
+
/*# public string request { get { return null; } } #*/
|
|
22005
|
+
this.request = request;
|
|
22006
|
+
}
|
|
22007
|
+
});
|
|
22008
|
+
|
|
21967
22009
|
/*# public delegate void ASPxClientSpreadsheetSynchronizationEventHandler(object source, ASPxClientSpreadsheetSynchronizationEventArgs e); #*/
|
|
21968
22010
|
/*# public class ASPxClientSpreadsheetSynchronizationEventArgs : ASPxClientEventArgs #*/
|
|
21969
22011
|
var ASPxClientSpreadsheetSynchronizationEventArgs = ASPx.CreateClass(ASPxClientEventArgs, {
|
|
@@ -22168,6 +22210,9 @@ var ASPxClientSpreadsheet = ASPx.CreateClass(ASPxClientControl, {
|
|
|
22168
22210
|
/*# public event ASPxClientSpreadsheetDocumentChangedEventHandler DocumentChanged { add{} remove{} } #*/
|
|
22169
22211
|
this.DocumentChanged = new ASPxClientEvent();
|
|
22170
22212
|
|
|
22213
|
+
/*# public event ASPxClientSpreadsheetBeforeSendEventHandler BeforeSend { add{} remove{} } #*/
|
|
22214
|
+
this.BeforeSend = new ASPxClientEvent();
|
|
22215
|
+
|
|
22171
22216
|
/*# public event ASPxClientSpreadsheetSynchronizationEventHandler BeginSynchronization { add{} remove{} } #*/
|
|
22172
22217
|
this.BeginSynchronization = new ASPxClientEvent();
|
|
22173
22218
|
|
|
@@ -23582,6 +23627,7 @@ var ASPxClientSpreadsheet = ASPx.CreateClass(ASPxClientControl, {
|
|
|
23582
23627
|
}.aspxBind(this);
|
|
23583
23628
|
xmlHttp.onerror = function () {
|
|
23584
23629
|
};
|
|
23630
|
+
this.RaiseBeforeSend(xmlHttp);
|
|
23585
23631
|
xmlHttp.send(postdata);
|
|
23586
23632
|
},
|
|
23587
23633
|
stopCurrentRequestProcessing: function() {
|
|
@@ -25191,6 +25237,12 @@ var ASPxClientSpreadsheet = ASPx.CreateClass(ASPxClientControl, {
|
|
|
25191
25237
|
this.DocumentChanged.FireEvent(this, args);
|
|
25192
25238
|
}
|
|
25193
25239
|
},
|
|
25240
|
+
RaiseBeforeSend: function (request) {
|
|
25241
|
+
if (!this.BeforeSend.IsEmpty()) {
|
|
25242
|
+
var args = new ASPxClientSpreadsheetBeforeSendEventArgs(request);
|
|
25243
|
+
this.BeforeSend.FireEvent(this, args);
|
|
25244
|
+
}
|
|
25245
|
+
},
|
|
25194
25246
|
RaiseBeginSynchronization: function() {
|
|
25195
25247
|
if(!this.BeginSynchronization.IsEmpty()){
|
|
25196
25248
|
var args = new ASPxClientSpreadsheetSynchronizationEventArgs();
|
|
@@ -57151,6 +57203,11 @@ Object.defineProperty(ASPxClientSpreadsheet, 'Functions', {
|
|
|
57151
57203
|
*/
|
|
57152
57204
|
this.documentChanged = new DocumentChangedEvent(this.DocumentChanged);
|
|
57153
57205
|
/**
|
|
57206
|
+
* @name DevExpress.AspNetCore.Spreadsheet#Spreadsheet#beforeSend
|
|
57207
|
+
* @type BeforeSendEvent
|
|
57208
|
+
*/
|
|
57209
|
+
this.beforeSend = new BeforeSendEvent(this.BeforeSend);
|
|
57210
|
+
/**
|
|
57154
57211
|
* @name DevExpress.AspNetCore.Spreadsheet#Spreadsheet#beginSynchronization
|
|
57155
57212
|
* @type BeginSynchronizationEvent
|
|
57156
57213
|
*/
|
|
@@ -57258,6 +57315,14 @@ Object.defineProperty(ASPxClientSpreadsheet, 'Functions', {
|
|
|
57258
57315
|
});
|
|
57259
57316
|
|
|
57260
57317
|
|
|
57318
|
+
/**
|
|
57319
|
+
* @class DevExpress.AspNetCore.Spreadsheet#BeforeSendEvent
|
|
57320
|
+
* @extends SpreadsheetEvent<BeforeSendEventArgs>
|
|
57321
|
+
*/
|
|
57322
|
+
var BeforeSendEvent = ASPx.CreateClass(SpreadsheetEvent, {
|
|
57323
|
+
});
|
|
57324
|
+
|
|
57325
|
+
|
|
57261
57326
|
/**
|
|
57262
57327
|
* @class DevExpress.AspNetCore.Spreadsheet#BeginSynchronizationEvent
|
|
57263
57328
|
* @extends SpreadsheetEvent<EventArgs>
|
|
@@ -57316,7 +57381,7 @@ Object.defineProperty(ASPxClientSpreadsheet, 'Functions', {
|
|
|
57316
57381
|
/** @class DevExpress.AspNetCore.Spreadsheet#EventArgs */
|
|
57317
57382
|
|
|
57318
57383
|
|
|
57319
|
-
/**
|
|
57384
|
+
/**
|
|
57320
57385
|
* @class DevExpress.AspNetCore.Spreadsheet#HyperlinkClickEventArgs
|
|
57321
57386
|
* @extends EventArgs
|
|
57322
57387
|
*/
|
|
@@ -57338,7 +57403,7 @@ Object.defineProperty(ASPxClientSpreadsheet, 'Functions', {
|
|
|
57338
57403
|
*/
|
|
57339
57404
|
|
|
57340
57405
|
|
|
57341
|
-
/**
|
|
57406
|
+
/**
|
|
57342
57407
|
* @class DevExpress.AspNetCore.Spreadsheet#SelectionChangedEventArgs
|
|
57343
57408
|
* @extends EventArgs
|
|
57344
57409
|
*/
|
|
@@ -57348,7 +57413,7 @@ Object.defineProperty(ASPxClientSpreadsheet, 'Functions', {
|
|
|
57348
57413
|
*/
|
|
57349
57414
|
|
|
57350
57415
|
|
|
57351
|
-
/**
|
|
57416
|
+
/**
|
|
57352
57417
|
* @class DevExpress.AspNetCore.Spreadsheet#CancelEventArgs
|
|
57353
57418
|
* @extends EventArgs
|
|
57354
57419
|
*/
|
|
@@ -57358,7 +57423,7 @@ Object.defineProperty(ASPxClientSpreadsheet, 'Functions', {
|
|
|
57358
57423
|
*/
|
|
57359
57424
|
|
|
57360
57425
|
|
|
57361
|
-
/**
|
|
57426
|
+
/**
|
|
57362
57427
|
* @class DevExpress.AspNetCore.Spreadsheet#CellBeginEditEventArgs
|
|
57363
57428
|
* @extends CancelEventArgs
|
|
57364
57429
|
*/
|
|
@@ -57384,7 +57449,7 @@ Object.defineProperty(ASPxClientSpreadsheet, 'Functions', {
|
|
|
57384
57449
|
*/
|
|
57385
57450
|
|
|
57386
57451
|
|
|
57387
|
-
/**
|
|
57452
|
+
/**
|
|
57388
57453
|
* @class DevExpress.AspNetCore.Spreadsheet#CellEndEditEventArgs
|
|
57389
57454
|
* @extends CancelEventArgs
|
|
57390
57455
|
*/
|
|
@@ -57414,7 +57479,7 @@ Object.defineProperty(ASPxClientSpreadsheet, 'Functions', {
|
|
|
57414
57479
|
*/
|
|
57415
57480
|
|
|
57416
57481
|
|
|
57417
|
-
/**
|
|
57482
|
+
/**
|
|
57418
57483
|
* @class DevExpress.AspNetCore.Spreadsheet#CellCancelEditEventArgs
|
|
57419
57484
|
* @extends CancelEventArgs
|
|
57420
57485
|
*/
|
|
@@ -57440,6 +57505,16 @@ Object.defineProperty(ASPxClientSpreadsheet, 'Functions', {
|
|
|
57440
57505
|
*/
|
|
57441
57506
|
|
|
57442
57507
|
|
|
57508
|
+
/**
|
|
57509
|
+
* @class DevExpress.AspNetCore.Spreadsheet#BeforeSendEventArgs
|
|
57510
|
+
* @extends EventArgs
|
|
57511
|
+
*/
|
|
57512
|
+
/**
|
|
57513
|
+
* @name DevExpress.AspNetCore.Spreadsheet#BeforeSendEventArgs#request
|
|
57514
|
+
* @type XMLHttpRequest
|
|
57515
|
+
*/
|
|
57516
|
+
|
|
57517
|
+
|
|
57443
57518
|
/**
|
|
57444
57519
|
* @class DevExpress.AspNetCore.Spreadsheet#PopupMenuShowingEventArgs
|
|
57445
57520
|
* @extends CancelEventArgs
|
|
@@ -62341,8 +62416,8 @@ var DevExpress;!function(){"use strict";var t={279:function(t,e){Object.definePr
|
|
|
62341
62416
|
(function() {
|
|
62342
62417
|
window.DevExpress = window.DevExpress || {};
|
|
62343
62418
|
if(!!window.DevExpress.config) {
|
|
62344
|
-
window.DevExpress.config(JSON.parse(atob("
|
|
62419
|
+
window.DevExpress.config(JSON.parse(atob("eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaVFqQTBTSEF5VlU0eE0xQkxUbkJoYlU5MFRtRlpZU0lLZlE9PS5iSGY2RXVwd3FwbXRjWStuZjVVQWtDcm5JQ1VlRm1NM3laVVJad0FLOGkzZ0F2SGJWeWlnNWgyZXBHTFluRnpxZitGYVE0UVdveklKUVp2TlJYVUdRaWVRMXdXek9aK3JHR2N6aUgrQUh4d0ZOTGNlRDZzTGd2eXE2NmZlUExMUzk1K3pHZz09In0=")));
|
|
62345
62420
|
} else {
|
|
62346
|
-
window.DevExpress.config = JSON.parse(atob("
|
|
62421
|
+
window.DevExpress.config = JSON.parse(atob("eyJsaWNlbnNlS2V5IjoiZXdvZ0lDSm1iM0p0WVhRaU9pQXhMQW9nSUNKcGJuUmxjbTVoYkZWellXZGxTV1FpT2lBaVFqQTBTSEF5VlU0eE0xQkxUbkJoYlU5MFRtRlpZU0lLZlE9PS5iSGY2RXVwd3FwbXRjWStuZjVVQWtDcm5JQ1VlRm1NM3laVVJad0FLOGkzZ0F2SGJWeWlnNWgyZXBHTFluRnpxZitGYVE0UVdveklKUVp2TlJYVUdRaWVRMXdXek9aK3JHR2N6aUgrQUh4d0ZOTGNlRDZzTGd2eXE2NmZlUExMUzk1K3pHZz09In0="));
|
|
62347
62422
|
}
|
|
62348
62423
|
})();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "devexpress-aspnetcore-spreadsheet",
|
|
3
|
-
"version": "24.1.
|
|
3
|
+
"version": "24.1.16",
|
|
4
4
|
"homepage": "https://www.devexpress.com/",
|
|
5
5
|
"bugs": "https://www.devexpress.com/support/",
|
|
6
6
|
"author": "Developer Express Inc.",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"localization": "node bin/localization-builder.js localization-source localization"
|
|
12
12
|
},
|
|
13
13
|
"peerDependencies": {
|
|
14
|
-
"devextreme": "24.1.
|
|
14
|
+
"devextreme": "24.1.16"
|
|
15
15
|
},
|
|
16
16
|
"keywords": [
|
|
17
17
|
"spreadsheet",
|