jsf.js_next_gen 4.0.0-beta-11 → 4.0.0-beta-13
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/dist/window/faces-development.js +165 -49
- package/dist/window/faces-development.js.br +0 -0
- package/dist/window/faces-development.js.gz +0 -0
- package/dist/window/faces-development.js.map +1 -1
- package/dist/window/faces.js +1 -1
- package/dist/window/faces.js.br +0 -0
- package/dist/window/faces.js.gz +0 -0
- package/dist/window/faces.js.map +1 -1
- package/dist/window/jsf-development.js +165 -49
- package/dist/window/jsf-development.js.br +0 -0
- package/dist/window/jsf-development.js.gz +0 -0
- package/dist/window/jsf-development.js.map +1 -1
- package/dist/window/jsf.js +1 -1
- package/dist/window/jsf.js.br +0 -0
- package/dist/window/jsf.js.gz +0 -0
- package/dist/window/jsf.js.map +1 -1
- package/package.json +3 -3
- package/pom.xml +14 -0
- package/src/main/java/com/example/jsfs_js_ts/DecoratedFacesJS.java +80 -0
- package/src/main/java/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.java +54 -0
- package/src/main/typescript/impl/util/ExtDomQuery.ts +10 -6
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +0 -2
- package/target/api/{Jsf.js → jsf.js} +0 -0
- package/target/api/{Jsf.js.map → jsf.js.map} +0 -0
- package/target/impl/util/ExtDomQuery.js +10 -6
- package/target/impl/util/ExtDomQuery.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/StandardInits.js +0 -2
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
- package/src/main/java/com/example/jsfs_js_ts/JsfsJsTsApplication.java +0 -12
- package/target/api/_faces.js +0 -251
- package/target/api/_faces.js.map +0 -1
- package/target/classes/com/example/jsfs_js_ts/JsfsJsTsApplication.class +0 -0
- package/target/impl/util/ListenerQueue.js +0 -3
- package/target/impl/util/ListenerQueue.js.map +0 -1
- package/target/main/typescript/api/Jsf.js +0 -258
- package/target/main/typescript/api/Jsf.js.map +0 -1
- package/target/main/typescript/impl/AjaxImpl.js +0 -569
- package/target/main/typescript/impl/AjaxImpl.js.map +0 -1
- package/target/main/typescript/impl/PushImpl.js +0 -215
- package/target/main/typescript/impl/PushImpl.js.map +0 -1
- package/target/main/typescript/impl/core/Const.js +0 -135
- package/target/main/typescript/impl/core/Const.js.map +0 -1
- package/target/main/typescript/impl/core/ImplTypes.js +0 -43
- package/target/main/typescript/impl/core/ImplTypes.js.map +0 -1
- package/target/main/typescript/impl/i18n/Messages.js +0 -114
- package/target/main/typescript/impl/i18n/Messages.js.map +0 -1
- package/target/main/typescript/impl/util/Assertions.js +0 -90
- package/target/main/typescript/impl/util/Assertions.js.map +0 -1
- package/target/main/typescript/impl/util/AsyncQueue.js +0 -104
- package/target/main/typescript/impl/util/AsyncQueue.js.map +0 -1
- package/target/main/typescript/impl/util/AsyncRunnable.js +0 -18
- package/target/main/typescript/impl/util/AsyncRunnable.js.map +0 -1
- package/target/main/typescript/impl/util/ExtDomQuery.js +0 -129
- package/target/main/typescript/impl/util/ExtDomQuery.js.map +0 -1
- package/target/main/typescript/impl/util/Lang.js +0 -215
- package/target/main/typescript/impl/util/Lang.js.map +0 -1
- package/target/main/typescript/impl/util/ListenerQueue.js +0 -3
- package/target/main/typescript/impl/util/ListenerQueue.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/ErrorData.js +0 -89
- package/target/main/typescript/impl/xhrCore/ErrorData.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/EventData.js +0 -30
- package/target/main/typescript/impl/xhrCore/EventData.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/IResponseProcessor.js +0 -3
- package/target/main/typescript/impl/xhrCore/IResponseProcessor.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/RequestDataResolver.js +0 -143
- package/target/main/typescript/impl/xhrCore/RequestDataResolver.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js +0 -103
- package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/Response.js +0 -167
- package/target/main/typescript/impl/xhrCore/Response.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/ResponseProcessor.js +0 -368
- package/target/main/typescript/impl/xhrCore/ResponseProcessor.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/XhrFormData.js +0 -272
- package/target/main/typescript/impl/xhrCore/XhrFormData.js.map +0 -1
- package/target/main/typescript/impl/xhrCore/XhrRequest.js +0 -281
- package/target/main/typescript/impl/xhrCore/XhrRequest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/LangTest.js +0 -89
- package/target/test/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/MappingTest.js +0 -39
- package/target/test/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/MonadTest.js +0 -155
- package/target/test/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/StreamTest.js +0 -176
- package/target/test/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
- package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
- package/target/test/impl/ImplTest_23.spec_.js +0 -165
- package/target/test/impl/ImplTest_23.spec_.js.map +0 -1
- package/target/test/typescript/frameworkBase/LangTest.js +0 -112
- package/target/test/typescript/frameworkBase/LangTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
- package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js +0 -89
- package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js +0 -115
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js +0 -39
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js +0 -155
- package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js +0 -176
- package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
- package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js +0 -264
- package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
- package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js +0 -23
- package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
- package/target/test/typescript/impl/ImplTest.js +0 -98
- package/target/test/typescript/impl/ImplTest.js.map +0 -1
- package/target/test/typescript/impl/SeparatorCharsTest.js +0 -72
- package/target/test/typescript/impl/SeparatorCharsTest.js.map +0 -1
- package/target/test/typescript/queue/AsynchronousProbe.js +0 -99
- package/target/test/typescript/queue/AsynchronousProbe.js.map +0 -1
- package/target/test/typescript/queue/AsynchronousQueueTest.js +0 -130
- package/target/test/typescript/queue/AsynchronousQueueTest.js.map +0 -1
- package/target/test/typescript/xhrCore/EventTests.js +0 -155
- package/target/test/typescript/xhrCore/EventTests.js.map +0 -1
- package/target/test/typescript/xhrCore/FakeWebsocket.js +0 -25
- package/target/test/typescript/xhrCore/FakeWebsocket.js.map +0 -1
- package/target/test/typescript/xhrCore/FileUploadTest.js +0 -166
- package/target/test/typescript/xhrCore/FileUploadTest.js.map +0 -1
- package/target/test/typescript/xhrCore/RequestParamsTest.js +0 -151
- package/target/test/typescript/xhrCore/RequestParamsTest.js.map +0 -1
- package/target/test/typescript/xhrCore/RequestTest.js +0 -318
- package/target/test/typescript/xhrCore/RequestTest.js.map +0 -1
- package/target/test/typescript/xhrCore/ResponseTest.js +0 -257
- package/target/test/typescript/xhrCore/ResponseTest.js.map +0 -1
- package/target/test/typescript/xhrCore/ShadowDomTest.js +0 -122
- package/target/test/typescript/xhrCore/ShadowDomTest.js.map +0 -1
- package/target/test/typescript/xhrCore/WebsocketTest.js +0 -182
- package/target/test/typescript/xhrCore/WebsocketTest.js.map +0 -1
- package/target/test/typescript/xhrCore/XhrFormDataTest.js +0 -58
- package/target/test/typescript/xhrCore/XhrFormDataTest.js.map +0 -1
- package/target/test-classes/.gz +0 -0
- package/target/test-classes/com/example/jsfs_js_ts/JsfsJsTsApplicationTests.class +0 -0
- package/target/test-classes/fileuploadtest.html +0 -24
- package/target/test-classes/jsf-development.js +0 -6781
- package/target/test-classes/jsf-development.js.br +0 -0
- package/target/test-classes/jsf-development.js.gz +0 -0
- package/target/test-classes/jsf-development.js.map +0 -1
- package/target/test-classes/jsf.js +0 -3
- package/target/test-classes/jsf.js.br +0 -0
- package/target/test-classes/jsf.js.gz +0 -0
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AsynchronouseQueue = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Asynchronous queue which starts to work
|
|
6
|
-
* through the callbacks until the queue is empty
|
|
7
|
-
*
|
|
8
|
-
* Every callback must be of async runnable
|
|
9
|
-
* which is sort of an extended promise which has
|
|
10
|
-
* added a decicated cancel and start point
|
|
11
|
-
*
|
|
12
|
-
* This interface can be used as wrapper contract
|
|
13
|
-
* for normal promises if needed.
|
|
14
|
-
*/
|
|
15
|
-
var AsynchronouseQueue = /** @class */ (function () {
|
|
16
|
-
function AsynchronouseQueue() {
|
|
17
|
-
this.runnableQueue = [];
|
|
18
|
-
}
|
|
19
|
-
Object.defineProperty(AsynchronouseQueue.prototype, "isEmpty", {
|
|
20
|
-
get: function () {
|
|
21
|
-
return !this.runnableQueue.length;
|
|
22
|
-
},
|
|
23
|
-
enumerable: false,
|
|
24
|
-
configurable: true
|
|
25
|
-
});
|
|
26
|
-
/**
|
|
27
|
-
* enequeues an element and starts the
|
|
28
|
-
* asynchronous work loop if not already running
|
|
29
|
-
*
|
|
30
|
-
* @param element the element to be queued and processed
|
|
31
|
-
* @param delay possible delay after our usual process or drop if something newer is incoming algorithm
|
|
32
|
-
*/
|
|
33
|
-
AsynchronouseQueue.prototype.enqueue = function (element, delay) {
|
|
34
|
-
var _this = this;
|
|
35
|
-
if (delay === void 0) { delay = 0; }
|
|
36
|
-
if (this.delayTimeout) {
|
|
37
|
-
clearTimeout(this.delayTimeout);
|
|
38
|
-
this.delayTimeout = null;
|
|
39
|
-
}
|
|
40
|
-
if (delay) {
|
|
41
|
-
this.delayTimeout = setTimeout(function () {
|
|
42
|
-
_this.appendElement(element);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
this.appendElement(element);
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
AsynchronouseQueue.prototype.dequeue = function () {
|
|
50
|
-
return this.runnableQueue.shift();
|
|
51
|
-
};
|
|
52
|
-
AsynchronouseQueue.prototype.cleanup = function () {
|
|
53
|
-
this.currentlyRunning = null;
|
|
54
|
-
this.runnableQueue.length = 0;
|
|
55
|
-
};
|
|
56
|
-
AsynchronouseQueue.prototype.appendElement = function (element) {
|
|
57
|
-
//only if the first element is added we start with a trigger
|
|
58
|
-
//otherwise a process already is running and not finished yet at that
|
|
59
|
-
//time
|
|
60
|
-
this.runnableQueue.push(element);
|
|
61
|
-
if (!this.currentlyRunning) {
|
|
62
|
-
this.runEntry();
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
AsynchronouseQueue.prototype.runEntry = function () {
|
|
66
|
-
var _this = this;
|
|
67
|
-
if (this.isEmpty) {
|
|
68
|
-
this.currentlyRunning = null;
|
|
69
|
-
return;
|
|
70
|
-
}
|
|
71
|
-
this.currentlyRunning = this.dequeue();
|
|
72
|
-
this.currentlyRunning
|
|
73
|
-
.catch(function (e) {
|
|
74
|
-
//in case of an error we always clean up the remaining calls
|
|
75
|
-
//to allow a clean recovery of the application
|
|
76
|
-
_this.cleanup();
|
|
77
|
-
throw e;
|
|
78
|
-
})
|
|
79
|
-
.then(
|
|
80
|
-
//the idea is to trigger the next over an event to reduce
|
|
81
|
-
//the number of recursive calls (stacks might be limited
|
|
82
|
-
//compared to ram)
|
|
83
|
-
//naturally give we have a DOM, the DOM is the natural event dispatch system
|
|
84
|
-
//which we can use, to decouple the calls from a recursive stack call
|
|
85
|
-
//(the browser engine will take care of that)
|
|
86
|
-
function () { return _this.callForNextElementToProcess(); }).start();
|
|
87
|
-
};
|
|
88
|
-
AsynchronouseQueue.prototype.cancel = function () {
|
|
89
|
-
try {
|
|
90
|
-
if (this.currentlyRunning) {
|
|
91
|
-
this.currentlyRunning.cancel();
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
finally {
|
|
95
|
-
this.cleanup();
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
AsynchronouseQueue.prototype.callForNextElementToProcess = function () {
|
|
99
|
-
this.runEntry();
|
|
100
|
-
};
|
|
101
|
-
return AsynchronouseQueue;
|
|
102
|
-
}());
|
|
103
|
-
exports.AsynchronouseQueue = AsynchronouseQueue;
|
|
104
|
-
//# sourceMappingURL=AsyncQueue.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncQueue.js","sourceRoot":"","sources":["../../../../../src/main/typescript/impl/util/AsyncQueue.ts"],"names":[],"mappings":";;;AAEA;;;;;;;;;;GAUG;AACH;IAOI;QALQ,kBAAa,GAAG,EAAE,CAAC;IAM3B,CAAC;IAED,sBAAI,uCAAO;aAAX;YACI,OAAO,C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8C;YAC9C,KAAI,CAAC,OAAO,EAAE,CAAC;YACf,MAAM,CAAC,CAAC;QACZ,CAAC,CAAC;aACD,IAAI;QACD,yDAAyD;QACzD,wDAAwD;QACxD,kBAAkB;QAClB,4EAA4E;QAC5E,qEAAqE;QACrE,6CAA6C;QAC7C,cAAM,OAAA,KAAI,CAAC,2BAA2B,EAAE,EAAlC,CAAkC,CAC3C,CAAC,KAAK,EAAE,CAAC;IAClB,CAAC;IAED,mCAAM,GAAN;QACI,IAAI;YACA,IAAI,IAAI,CAAC,gBAAgB,EAAE;gBACvB,IAAI,CAAC,gBAAgB,CAAC,MAAM,EAAE,CAAC;aAClC;SACJ;gBAAS;YACN,IAAI,CAAC,OAAO,EAAE,CAAC;SAClB;IACL,CAAC;IAEO,wDAA2B,GAAnC;QACI,IAAI,CAAC,QAAQ,EAAE,CAAC;IACpB,CAAC;IACL,yBAAC;AAAD,CAAC,AA3FD,IA2FC;AA3FY,gDAAkB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
-
* this work for additional information regarding copyright ownership.
|
|
5
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
6
|
-
* (the "License"); you may not use this file except in compliance with
|
|
7
|
-
* the License. You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*/
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
//# sourceMappingURL=AsyncRunnable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AsyncRunnable.js","sourceRoot":"","sources":["../../../../../src/main/typescript/impl/util/AsyncRunnable.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG"}
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ExtDQ = exports.ExtDomquery = void 0;
|
|
19
|
-
var mona_dish_1 = require("mona-dish");
|
|
20
|
-
var Const_1 = require("../core/Const");
|
|
21
|
-
/**
|
|
22
|
-
* Extension which adds implementation specific
|
|
23
|
-
* meta data to our dom qury
|
|
24
|
-
*
|
|
25
|
-
* Usage
|
|
26
|
-
* el = new ExtDQ(oldReference)
|
|
27
|
-
* nonce = el.nonce
|
|
28
|
-
* windowId = el.getWindowId
|
|
29
|
-
*/
|
|
30
|
-
var ExtDomquery = /** @class */ (function (_super) {
|
|
31
|
-
__extends(ExtDomquery, _super);
|
|
32
|
-
function ExtDomquery() {
|
|
33
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
34
|
-
}
|
|
35
|
-
Object.defineProperty(ExtDomquery, "windowId", {
|
|
36
|
-
get: function () {
|
|
37
|
-
return new ExtDomquery(document.body).windowId;
|
|
38
|
-
},
|
|
39
|
-
enumerable: false,
|
|
40
|
-
configurable: true
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(ExtDomquery, "nonce", {
|
|
43
|
-
get: function () {
|
|
44
|
-
return new ExtDomquery(document.body).nonce;
|
|
45
|
-
},
|
|
46
|
-
enumerable: false,
|
|
47
|
-
configurable: true
|
|
48
|
-
});
|
|
49
|
-
Object.defineProperty(ExtDomquery.prototype, "windowId", {
|
|
50
|
-
get: function () {
|
|
51
|
-
var fetchWindowIdFromURL = function () {
|
|
52
|
-
var href = window.location.href;
|
|
53
|
-
var windowId = "windowId";
|
|
54
|
-
var regex = new RegExp("[\\?&]" + windowId + "=([^&#\\;]*)");
|
|
55
|
-
var results = regex.exec(href);
|
|
56
|
-
//initial trial over the url and a regexp
|
|
57
|
-
if (results != null)
|
|
58
|
-
return results[1];
|
|
59
|
-
return null;
|
|
60
|
-
};
|
|
61
|
-
//byId ($)
|
|
62
|
-
if (this.value.isPresent()) {
|
|
63
|
-
var result = this.querySelectorAll("form input[name='" + Const_1.P_WINDOW_ID + "']");
|
|
64
|
-
if (result.length > 0) {
|
|
65
|
-
throw Error("Multiple different windowIds found in document");
|
|
66
|
-
}
|
|
67
|
-
return (result.isPresent()) ? result.getAsElem(0).value.value : fetchWindowIdFromURL();
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
return fetchWindowIdFromURL();
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
enumerable: false,
|
|
74
|
-
configurable: true
|
|
75
|
-
});
|
|
76
|
-
Object.defineProperty(ExtDomquery.prototype, "nonce", {
|
|
77
|
-
/*
|
|
78
|
-
determines the jsfjs nonce and adds them to the namespace
|
|
79
|
-
* this is done once and only lazily
|
|
80
|
-
*/
|
|
81
|
-
get: function () {
|
|
82
|
-
//already processed
|
|
83
|
-
var myfacesConfig = new mona_dish_1.Config(window.myfaces);
|
|
84
|
-
var nonce = myfacesConfig.assign("config", "cspMeta", "nonce");
|
|
85
|
-
if (nonce.value) {
|
|
86
|
-
return nonce.value;
|
|
87
|
-
}
|
|
88
|
-
var curScript = new mona_dish_1.DQ(document.currentScript);
|
|
89
|
-
//since our baseline atm is ie11 we cannot use document.currentScript globally
|
|
90
|
-
if (curScript.attr("nonce").value != null) {
|
|
91
|
-
//fastpath for modern browsers
|
|
92
|
-
return curScript.attr("nonce").value;
|
|
93
|
-
}
|
|
94
|
-
var nonceScript = mona_dish_1.DQ
|
|
95
|
-
.querySelectorAll("script[src], link[src]")
|
|
96
|
-
.lazyStream
|
|
97
|
-
.filter(function (item) { return item.attr("nonce").value != null && item.attr("src") != null; })
|
|
98
|
-
.map((function (item) { return !item.attr("src").value.match(/jsf\.js\?ln=javax\.faces/gi); }))
|
|
99
|
-
.first();
|
|
100
|
-
if (nonceScript.isPresent()) {
|
|
101
|
-
nonce.value = mona_dish_1.DomQuery.byId(nonceScript.value, true).attr("nonce").value;
|
|
102
|
-
}
|
|
103
|
-
return nonce.value;
|
|
104
|
-
},
|
|
105
|
-
enumerable: false,
|
|
106
|
-
configurable: true
|
|
107
|
-
});
|
|
108
|
-
ExtDomquery.searchJsfJsFor = function (item) {
|
|
109
|
-
return new ExtDomquery(document).searchJsfJsFor(item);
|
|
110
|
-
};
|
|
111
|
-
ExtDomquery.prototype.searchJsfJsFor = function (rexp) {
|
|
112
|
-
//perfect application for lazy stream
|
|
113
|
-
return mona_dish_1.DQ.querySelectorAll("script").lazyStream
|
|
114
|
-
.filter(function (item) {
|
|
115
|
-
var _a;
|
|
116
|
-
return ((_a = item.attr("src").value) !== null && _a !== void 0 ? _a : Const_1.EMPTY_STR).search(/\/javax\.faces\.resource.*\/jsf\.js.*separator/) != -1;
|
|
117
|
-
}).map(function (item) {
|
|
118
|
-
var result = item.attr("src").value.match(rexp);
|
|
119
|
-
return decodeURIComponent(result[1]);
|
|
120
|
-
}).first();
|
|
121
|
-
};
|
|
122
|
-
ExtDomquery.prototype.globalEval = function (code, nonce) {
|
|
123
|
-
return _super.prototype.globalEval.call(this, code, nonce !== null && nonce !== void 0 ? nonce : this.nonce);
|
|
124
|
-
};
|
|
125
|
-
return ExtDomquery;
|
|
126
|
-
}(mona_dish_1.DQ));
|
|
127
|
-
exports.ExtDomquery = ExtDomquery;
|
|
128
|
-
exports.ExtDQ = mona_dish_1.DQ;
|
|
129
|
-
//# sourceMappingURL=ExtDomQuery.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ExtDomQuery.js","sourceRoot":"","sources":["../../../../../src/main/typescript/impl/util/ExtDomQuery.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAAuE;AACvE,uCAAqD;AAIrD;;;;;;;;GAQG;AACH;IAAiC,+BAAE;IAAnC;;IAqFA,CAAC;IAnFG,sBAAW,uBAAQ;aAAnB;YACI,OAAO,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC;QACnD,CAAC;;;OAAA;IAED,sBAAW,oBAAK;aAAhB;YACI,OAAO,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC;QAChD,CAAC;;;OAAA;IAED,sBAAI,iCAAQ;aAAZ;YAEI,IAAM,oBAAoB,GAAG;gBACzB,IAAI,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC;gBAChC,IAAI,QAAQ,GAAG,UAAU,CAAC;gBAC1B,IAAI,KAAK,GAAG,IAAI,MAAM,CAAC,QAAQ,GAAG,QAAQ,GAAG,cAAc,CAAC,CAAC;gBAC7D,IAAI,OAAO,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBAC/B,yCAAyC;gBACzC,IAAI,OAAO,IAAI,IAAI;oBAAE,OAAO,OAAO,CAAC,CAAC,CAAC,CAAC;gBACvC,OAAO,IA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CAAC;IAED,gCAAU,GAAV,UAAW,IAAY,EAAE,KAAe;QACpC,OAAO,iBAAM,UAAU,YAAC,IAAI,EAAE,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,IAAI,CAAC,KAAK,CAAC,CAAC;IACvD,CAAC;IACL,kBAAC;AAAD,CAAC,AArFD,CAAiC,cAAE,GAqFlC;AArFY,kCAAW;AAuFX,QAAA,KAAK,GAAG,cAAE,CAAC"}
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
-
* this work for additional information regarding copyright ownership.
|
|
5
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
6
|
-
* (the "License"); you may not use this file except in compliance with
|
|
7
|
-
* the License. You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
-
* See the License for the specific language governing permissions and
|
|
15
|
-
* limitations under the License.
|
|
16
|
-
*
|
|
17
|
-
* todo replace singleton with module definition
|
|
18
|
-
*
|
|
19
|
-
*/
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.ExtLang = void 0;
|
|
22
|
-
var mona_dish_1 = require("mona-dish");
|
|
23
|
-
var Messages_1 = require("../i18n/Messages");
|
|
24
|
-
var Const_1 = require("../core/Const");
|
|
25
|
-
var RequestDataResolver_1 = require("../xhrCore/RequestDataResolver");
|
|
26
|
-
var ExtLang;
|
|
27
|
-
(function (ExtLang) {
|
|
28
|
-
var installedLocale;
|
|
29
|
-
var nameSpace = "impl/util/Lang/";
|
|
30
|
-
function getLanguage() {
|
|
31
|
-
//TODO global config override
|
|
32
|
-
var _a, _b;
|
|
33
|
-
var language = (_b = (_a = navigator.languages) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : navigator === null || navigator === void 0 ? void 0 : navigator.language;
|
|
34
|
-
language = language.split("-")[0];
|
|
35
|
-
return language;
|
|
36
|
-
}
|
|
37
|
-
ExtLang.getLanguage = getLanguage;
|
|
38
|
-
//should be in lang, but for now here to avoid recursive imports, not sure if typescript still has a problem with those
|
|
39
|
-
/**
|
|
40
|
-
* helper function to savely resolve anything
|
|
41
|
-
* this is not an elvis operator, it resolves
|
|
42
|
-
* a value without exception in a tree and if
|
|
43
|
-
* it is not resolvable then an optional of
|
|
44
|
-
* a default value is restored or Optional.empty
|
|
45
|
-
* if none is given
|
|
46
|
-
*
|
|
47
|
-
* usage
|
|
48
|
-
* <code>
|
|
49
|
-
* let var: Optional<string> = saveResolve(() => a.b.c.d.e, "foobaz")
|
|
50
|
-
* </code>
|
|
51
|
-
*
|
|
52
|
-
* @param resolverProducer a lambda which can produce the value
|
|
53
|
-
* @param defaultValue an optional default value if the producer failes to produce anything
|
|
54
|
-
* @returns an Optional of the produced value
|
|
55
|
-
*/
|
|
56
|
-
function failSaveResolve(resolverProducer, defaultValue) {
|
|
57
|
-
if (defaultValue === void 0) { defaultValue = null; }
|
|
58
|
-
return mona_dish_1.Lang.saveResolve(resolverProducer, defaultValue);
|
|
59
|
-
}
|
|
60
|
-
ExtLang.failSaveResolve = failSaveResolve;
|
|
61
|
-
/**
|
|
62
|
-
* under some conditions it makes sense to swallow errors and return a default value in the error case
|
|
63
|
-
* classical example the optional resolution of values in a chain (thankfully now covered by Typescript itself)
|
|
64
|
-
* another example which we have in our system is that some operations fail only under test due to test framework
|
|
65
|
-
* limitations while they cannot fail in the real world.
|
|
66
|
-
*
|
|
67
|
-
* @param resolverProducer a producer function which produces a value in the non error case
|
|
68
|
-
* @param defaultValue the default value in case of a fail of the function
|
|
69
|
-
*/
|
|
70
|
-
function failSaveExecute(resolverProducer, defaultValue) {
|
|
71
|
-
if (defaultValue === void 0) { defaultValue = null; }
|
|
72
|
-
mona_dish_1.Lang.saveResolve(resolverProducer, defaultValue);
|
|
73
|
-
}
|
|
74
|
-
ExtLang.failSaveExecute = failSaveExecute;
|
|
75
|
-
/**
|
|
76
|
-
* returns a given localized message upon a given key
|
|
77
|
-
* basic java log like templating functionality is included
|
|
78
|
-
*
|
|
79
|
-
* @param {String} key the key for the message
|
|
80
|
-
* @param {String} defaultMessage optional default message if none was found
|
|
81
|
-
*
|
|
82
|
-
* Additionally you can pass additional arguments, which are used
|
|
83
|
-
* in the same way java log templates use the params
|
|
84
|
-
*
|
|
85
|
-
* @param templateParams the param list to be filled in
|
|
86
|
-
*/
|
|
87
|
-
function getMessage(key, defaultMessage) {
|
|
88
|
-
var _a, _b;
|
|
89
|
-
var templateParams = [];
|
|
90
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
91
|
-
templateParams[_i - 2] = arguments[_i];
|
|
92
|
-
}
|
|
93
|
-
installedLocale = installedLocale !== null && installedLocale !== void 0 ? installedLocale : new Messages_1.Messages();
|
|
94
|
-
var msg = (_b = (_a = installedLocale[key]) !== null && _a !== void 0 ? _a : defaultMessage) !== null && _b !== void 0 ? _b : key + " - undefined message";
|
|
95
|
-
mona_dish_1.Stream.of.apply(mona_dish_1.Stream, templateParams).each(function (param, cnt) {
|
|
96
|
-
msg = msg.replace(new RegExp(["\\{", cnt, "\\}"].join(Const_1.EMPTY_STR), "g"), param);
|
|
97
|
-
});
|
|
98
|
-
return msg;
|
|
99
|
-
}
|
|
100
|
-
ExtLang.getMessage = getMessage;
|
|
101
|
-
/**
|
|
102
|
-
* transforms a key value pair into a string
|
|
103
|
-
* @param key the key
|
|
104
|
-
* @param val the value
|
|
105
|
-
* @param delimiter the delimiter
|
|
106
|
-
*/
|
|
107
|
-
function keyValToStr(key, val, delimiter) {
|
|
108
|
-
if (delimiter === void 0) { delimiter = "\n"; }
|
|
109
|
-
return [key, val].join(delimiter);
|
|
110
|
-
}
|
|
111
|
-
ExtLang.keyValToStr = keyValToStr;
|
|
112
|
-
/**
|
|
113
|
-
* creates an exeption with additional internal parameters
|
|
114
|
-
* for extra information
|
|
115
|
-
*
|
|
116
|
-
* @param error
|
|
117
|
-
* @param {String} title the exception title
|
|
118
|
-
* @param {String} name the exception name
|
|
119
|
-
* @param {String} callerCls the caller class
|
|
120
|
-
* @param {String} callFunc the caller function
|
|
121
|
-
* @param {String} message the message for the exception
|
|
122
|
-
*/
|
|
123
|
-
function makeException(error, title, name, callerCls, callFunc, message) {
|
|
124
|
-
var _a;
|
|
125
|
-
return new Error((_a = message + (callerCls !== null && callerCls !== void 0 ? callerCls : nameSpace) + callFunc) !== null && _a !== void 0 ? _a : (Const_1.EMPTY_STR + arguments.caller.toString()));
|
|
126
|
-
}
|
|
127
|
-
ExtLang.makeException = makeException;
|
|
128
|
-
/**
|
|
129
|
-
* fetches a global config entry
|
|
130
|
-
* @param {String} configName the name of the configuration entry
|
|
131
|
-
* @param {Object} defaultValue
|
|
132
|
-
*
|
|
133
|
-
* @return either the config entry or if none is given the default value
|
|
134
|
-
*/
|
|
135
|
-
function getGlobalConfig(configName, defaultValue) {
|
|
136
|
-
var _a, _b, _c;
|
|
137
|
-
/**
|
|
138
|
-
* note we could use exists but this is an heavy operation, since the config name usually
|
|
139
|
-
* given this function here is called very often
|
|
140
|
-
* is a single entry without . in between we can do the lighter shortcut
|
|
141
|
-
*/
|
|
142
|
-
return (_c = (_b = (_a = window === null || window === void 0 ? void 0 : window.myfaces) === null || _a === void 0 ? void 0 : _a.config) === null || _b === void 0 ? void 0 : _b[configName]) !== null && _c !== void 0 ? _c : defaultValue;
|
|
143
|
-
}
|
|
144
|
-
ExtLang.getGlobalConfig = getGlobalConfig;
|
|
145
|
-
/**
|
|
146
|
-
* fetches the form in an fuzzy manner depending
|
|
147
|
-
* on an element or event target.
|
|
148
|
-
*
|
|
149
|
-
* The idea is that according to the jsf spec
|
|
150
|
-
* the enclosing form of the issuing element needs to be fetched.
|
|
151
|
-
*
|
|
152
|
-
* This is fine, but since then html5 came into the picture with the form attribute the element
|
|
153
|
-
* can be anywhere referencing its parent form.
|
|
154
|
-
*
|
|
155
|
-
* Also theoretically you can have the case of an issuing element enclosing a set of forms
|
|
156
|
-
* (not really often used, but theoretically it could be input button allows to embed html for instance)
|
|
157
|
-
*
|
|
158
|
-
* So the idea is not to limit the issuing form determination to the spec case
|
|
159
|
-
* but also cover the theoretical and html5 corner case.
|
|
160
|
-
*
|
|
161
|
-
* @param elem
|
|
162
|
-
* @param event
|
|
163
|
-
*/
|
|
164
|
-
function getForm(elem, event) {
|
|
165
|
-
var queryElem = new mona_dish_1.DQ(elem);
|
|
166
|
-
var eventTarget = new mona_dish_1.DQ((0, RequestDataResolver_1.getEventTarget)(event));
|
|
167
|
-
if (queryElem.isTag(Const_1.TAG_FORM)) {
|
|
168
|
-
return queryElem;
|
|
169
|
-
}
|
|
170
|
-
//html 5 for handling
|
|
171
|
-
if (queryElem.attr(Const_1.TAG_FORM).isPresent()) {
|
|
172
|
-
var formId = queryElem.attr(Const_1.TAG_FORM).value;
|
|
173
|
-
var foundForm = mona_dish_1.DQ.byId(formId, true);
|
|
174
|
-
if (foundForm.isPresent()) {
|
|
175
|
-
return foundForm;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
var form = queryElem.parents(Const_1.TAG_FORM)
|
|
179
|
-
.orElseLazy(function () { return queryElem.byTagName(Const_1.TAG_FORM, true); })
|
|
180
|
-
.orElseLazy(function () { return eventTarget.parents(Const_1.TAG_FORM); })
|
|
181
|
-
.orElseLazy(function () { return eventTarget.byTagName(Const_1.TAG_FORM); })
|
|
182
|
-
.first();
|
|
183
|
-
assertFormExists(form);
|
|
184
|
-
return form;
|
|
185
|
-
}
|
|
186
|
-
ExtLang.getForm = getForm;
|
|
187
|
-
/**
|
|
188
|
-
* gets the local or global options with local ones having higher priority
|
|
189
|
-
* if no local or global one was found then the default value is given back
|
|
190
|
-
*
|
|
191
|
-
* @param {String} configName the name of the configuration entry
|
|
192
|
-
* @param {String} localOptions the local options root for the configuration myfaces as default marker is added implicitely
|
|
193
|
-
*
|
|
194
|
-
* @param {Object} defaultValue
|
|
195
|
-
*
|
|
196
|
-
* @return either the config entry or if none is given the default value
|
|
197
|
-
*/
|
|
198
|
-
function getLocalOrGlobalConfig(localOptions, configName, defaultValue) {
|
|
199
|
-
var _a, _b, _c, _d, _e, _f, _g;
|
|
200
|
-
return (_g = (_d = (_c = (_b = (_a = localOptions.value) === null || _a === void 0 ? void 0 : _a.myfaces) === null || _b === void 0 ? void 0 : _b.config) === null || _c === void 0 ? void 0 : _c[configName]) !== null && _d !== void 0 ? _d : (_f = (_e = window === null || window === void 0 ? void 0 : window.myfaces) === null || _e === void 0 ? void 0 : _e.config) === null || _f === void 0 ? void 0 : _f[configName]) !== null && _g !== void 0 ? _g : defaultValue;
|
|
201
|
-
}
|
|
202
|
-
ExtLang.getLocalOrGlobalConfig = getLocalOrGlobalConfig;
|
|
203
|
-
/**
|
|
204
|
-
* assert that the form exists and throw an exception in the case it does not
|
|
205
|
-
* (TODO move this into the assertions)
|
|
206
|
-
*
|
|
207
|
-
* @param form the form to check for
|
|
208
|
-
*/
|
|
209
|
-
function assertFormExists(form) {
|
|
210
|
-
if (form.isAbsent()) {
|
|
211
|
-
throw makeException(new Error(), null, null, "Impl", "getForm", getMessage("ERR_FORM"));
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
})(ExtLang = exports.ExtLang || (exports.ExtLang = {}));
|
|
215
|
-
//# sourceMappingURL=Lang.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Lang.js","sourceRoot":"","sources":["../../../../../src/main/typescript/impl/util/Lang.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AAEH,uCAAmF;AACnF,6CAA0C;AAC1C,uCAAkD;AAClD,sEAA8D;AAE9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AM,CAAG,OAAO,0CAAE,MAAM,0CAAG,UAAU,CAAC,mCAC5C,YAAY,CAAC;IACrB,CAAC;IAJe,8BAAsB,yBAIrC,CAAA;IAED;;;;;OAKG;IACH,SAAS,gBAAgB,CAAC,IAAc;QACpC,IAAI,IAAI,CAAC,QAAQ,EAAE,EAAE;YACjB,MAAM,aAAa,CAAC,IAAI,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;SAC3F;IACL,CAAC;AAEL,CAAC,EAhMa,OAAO,GAAP,eAAO,KAAP,eAAO,QAgMpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListenerQueue.js","sourceRoot":"","sources":["../../../../../src/main/typescript/impl/util/ListenerQueue.ts"],"names":[],"mappings":""}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ErrorData = exports.ErrorType = void 0;
|
|
19
|
-
var Const_1 = require("../core/Const");
|
|
20
|
-
var EventData_1 = require("./EventData");
|
|
21
|
-
var Lang_1 = require("../util/Lang");
|
|
22
|
-
var getMessage = Lang_1.ExtLang.getMessage;
|
|
23
|
-
var ErrorType;
|
|
24
|
-
(function (ErrorType) {
|
|
25
|
-
ErrorType["SERVER_ERROR"] = "serverError";
|
|
26
|
-
ErrorType["HTTP_ERROR"] = "httpError";
|
|
27
|
-
ErrorType["CLIENT_ERROR"] = "clientErrror";
|
|
28
|
-
ErrorType["TIMEOUT"] = "timeout";
|
|
29
|
-
})(ErrorType = exports.ErrorType || (exports.ErrorType = {}));
|
|
30
|
-
/**
|
|
31
|
-
* the spec has a problem of having the error
|
|
32
|
-
* object somewhat underspecified, there is no clear
|
|
33
|
-
* description of the required contents.
|
|
34
|
-
* I want to streamline it with mojarra here
|
|
35
|
-
* hence we are going to move
|
|
36
|
-
* everything into the same attributes,
|
|
37
|
-
* I will add deprecated myfaces backwards compatibility attributes as well
|
|
38
|
-
*/
|
|
39
|
-
var ErrorData = /** @class */ (function (_super) {
|
|
40
|
-
__extends(ErrorData, _super);
|
|
41
|
-
function ErrorData(source, errorName, errorMessage, responseText, responseXML, responseCode, status, type) {
|
|
42
|
-
if (responseText === void 0) { responseText = null; }
|
|
43
|
-
if (responseXML === void 0) { responseXML = null; }
|
|
44
|
-
if (responseCode === void 0) { responseCode = "200"; }
|
|
45
|
-
if (status === void 0) { status = "UNKNOWN"; }
|
|
46
|
-
if (type === void 0) { type = ErrorType.CLIENT_ERROR; }
|
|
47
|
-
var _this = _super.call(this) || this;
|
|
48
|
-
_this.type = "error";
|
|
49
|
-
_this.source = source;
|
|
50
|
-
_this.type = "error";
|
|
51
|
-
_this.errorName = errorName;
|
|
52
|
-
_this.message = _this.errorMessage = errorMessage;
|
|
53
|
-
_this.responseCode = responseCode;
|
|
54
|
-
_this.responseText = responseText;
|
|
55
|
-
_this.status = status;
|
|
56
|
-
_this.typeDetails = type;
|
|
57
|
-
if (type == ErrorType.SERVER_ERROR) {
|
|
58
|
-
_this.serverErrorName = _this.errorName;
|
|
59
|
-
_this.serverErrorMessage = _this.errorMessage;
|
|
60
|
-
}
|
|
61
|
-
return _this;
|
|
62
|
-
}
|
|
63
|
-
ErrorData.fromClient = function (e) {
|
|
64
|
-
return new ErrorData("client", e.name, e.message, e.stack);
|
|
65
|
-
};
|
|
66
|
-
ErrorData.fromHttpConnection = function (source, name, message, responseText, responseCode) {
|
|
67
|
-
return new ErrorData(source, name, message, responseText, responseCode, null, "UNKNOWN", ErrorType.HTTP_ERROR);
|
|
68
|
-
};
|
|
69
|
-
ErrorData.fromGeneric = function (context, errorCode, errorType) {
|
|
70
|
-
if (errorType === void 0) { errorType = ErrorType.SERVER_ERROR; }
|
|
71
|
-
var getMsg = this.getMsg;
|
|
72
|
-
var source = getMsg(context, Const_1.SOURCE);
|
|
73
|
-
var errorName = getMsg(context, Const_1.ERROR_NAME);
|
|
74
|
-
var errorMessage = getMsg(context, Const_1.ERROR_MESSAGE);
|
|
75
|
-
var status = getMsg(context, Const_1.STATUS);
|
|
76
|
-
var responseText = getMsg(context, Const_1.RESPONSE_TEXT);
|
|
77
|
-
var responseXML = getMsg(context, Const_1.RESPONSE_XML);
|
|
78
|
-
return new ErrorData(source, errorName, errorMessage, responseText, responseXML, errorCode + Const_1.EMPTY_STR, status, errorType);
|
|
79
|
-
};
|
|
80
|
-
ErrorData.getMsg = function (context, param) {
|
|
81
|
-
return getMessage(context.getIf(param).orElse(Const_1.UNKNOWN).value);
|
|
82
|
-
};
|
|
83
|
-
ErrorData.fromServerError = function (context) {
|
|
84
|
-
return this.fromGeneric(context, -1);
|
|
85
|
-
};
|
|
86
|
-
return ErrorData;
|
|
87
|
-
}(EventData_1.EventData));
|
|
88
|
-
exports.ErrorData = ErrorData;
|
|
89
|
-
//# sourceMappingURL=ErrorData.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorData.js","sourceRoot":"","sources":["../../../../../src/main/typescript/impl/xhrCore/ErrorData.ts"],"names":[],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C,CAAC,KAAK,CAAC,CAAC;IAClE,CAAC;IAEM,yBAAe,GAAtB,UAAuB,OAAe;QAClC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;IAEL,gBAAC;AAAD,CAAC,AAhED,CAA+B,qBAAS,GAgEvC;AAhEY,8BAAS"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.EventData = void 0;
|
|
4
|
-
var mona_dish_1 = require("mona-dish");
|
|
5
|
-
var Const_1 = require("../core/Const");
|
|
6
|
-
var EventData = /** @class */ (function () {
|
|
7
|
-
function EventData() {
|
|
8
|
-
}
|
|
9
|
-
EventData.createFromRequest = function (request, context, /*event name*/ name) {
|
|
10
|
-
var _a;
|
|
11
|
-
var eventData = new EventData();
|
|
12
|
-
eventData.type = Const_1.EVENT;
|
|
13
|
-
eventData.status = name;
|
|
14
|
-
var sourceId = context.getIf(Const_1.SOURCE)
|
|
15
|
-
.orElse(context.getIf(Const_1.P_PARTIAL_SOURCE).value)
|
|
16
|
-
.orElse(context.getIf(Const_1.CTX_PARAM_PASS_THR, Const_1.P_PARTIAL_SOURCE).value).value;
|
|
17
|
-
if (sourceId) {
|
|
18
|
-
eventData.source = mona_dish_1.DQ.byId(sourceId, true).first().value.value;
|
|
19
|
-
}
|
|
20
|
-
if (name !== Const_1.BEGIN) {
|
|
21
|
-
eventData.responseCode = (_a = request === null || request === void 0 ? void 0 : request.status) === null || _a === void 0 ? void 0 : _a.toString();
|
|
22
|
-
eventData.responseText = request === null || request === void 0 ? void 0 : request.responseText;
|
|
23
|
-
eventData.responseXML = request === null || request === void 0 ? void 0 : request.responseXML;
|
|
24
|
-
}
|
|
25
|
-
return eventData;
|
|
26
|
-
};
|
|
27
|
-
return EventData;
|
|
28
|
-
}());
|
|
29
|
-
exports.EventData = EventData;
|
|
30
|
-
//# sourceMapp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|
-
{"version":3,"file":"IResponseProcessor.js","sourceRoot":"","sources":["../../../../../src/main/typescript/impl/xhrCore/IResponseProcessor.ts"],"names":[],"mappings":""}
|