jsf.js_next_gen 1.0.0-beta-1 → 1.0.0-beta-2
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/.github/workflows/codeql-analysis.yml +83 -0
- package/.github/workflows/nodejs.yml +1 -1
- package/dist/window/jsf-development.js +51 -39
- 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 +23 -24
- package/remap.js +44 -0
- package/remap.js.map +1 -0
- package/remap.ts +1 -1
- package/src/main/typescript/impl/util/AsyncQueue.ts +1 -1
- package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +1 -1
- package/src/test/typescript/frameworkBase/LangTest.ts +2 -10
- package/src/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.ts +12 -11
- package/src/test/typescript/frameworkBase/_ext/monadish/LangTest.ts +1 -1
- package/src/test/typescript/frameworkBase/_ext/monadish/MappingProbes.ts +13 -19
- package/src/test/typescript/frameworkBase/_ext/monadish/StreamTest.ts +5 -9
- package/target/api/Jsf.js +258 -0
- package/target/api/Jsf.js.map +1 -0
- package/target/impl/AjaxImpl.js +569 -0
- package/target/impl/AjaxImpl.js.map +1 -0
- package/target/impl/PushImpl.js +215 -0
- package/target/impl/PushImpl.js.map +1 -0
- package/target/impl/core/Const.js +135 -0
- package/target/impl/core/Const.js.map +1 -0
- package/target/impl/core/ImplTypes.js +43 -0
- package/target/impl/core/ImplTypes.js.map +1 -0
- package/target/impl/i18n/Messages.js +114 -0
- package/target/impl/i18n/Messages.js.map +1 -0
- package/target/impl/util/Assertions.js +90 -0
- package/target/impl/util/Assertions.js.map +1 -0
- package/target/impl/util/AsyncQueue.js +104 -0
- package/target/impl/util/AsyncQueue.js.map +1 -0
- package/target/impl/util/AsyncRunnable.js +18 -0
- package/target/impl/util/AsyncRunnable.js.map +1 -0
- package/target/impl/util/ExtDomQuery.js +129 -0
- package/target/impl/util/ExtDomQuery.js.map +1 -0
- package/target/impl/util/Lang.js +215 -0
- package/target/impl/util/Lang.js.map +1 -0
- package/target/impl/util/ListenerQueue.js +3 -0
- package/target/impl/util/ListenerQueue.js.map +1 -0
- package/target/impl/xhrCore/ErrorData.js +89 -0
- package/target/impl/xhrCore/ErrorData.js.map +1 -0
- package/target/impl/xhrCore/EventData.js +30 -0
- package/target/impl/xhrCore/EventData.js.map +1 -0
- package/target/impl/xhrCore/IResponseProcessor.js +3 -0
- package/target/impl/xhrCore/IResponseProcessor.js.map +1 -0
- package/target/impl/xhrCore/RequestDataResolver.js +143 -0
- package/target/impl/xhrCore/RequestDataResolver.js.map +1 -0
- package/target/impl/xhrCore/ResonseDataResolver.js +103 -0
- package/target/impl/xhrCore/ResonseDataResolver.js.map +1 -0
- package/target/impl/xhrCore/Response.js +167 -0
- package/target/impl/xhrCore/Response.js.map +1 -0
- package/target/impl/xhrCore/ResponseProcessor.js +368 -0
- package/target/impl/xhrCore/ResponseProcessor.js.map +1 -0
- package/target/impl/xhrCore/XhrFormData.js +272 -0
- package/target/impl/xhrCore/XhrFormData.js.map +1 -0
- package/target/impl/xhrCore/XhrRequest.js +281 -0
- package/target/impl/xhrCore/XhrRequest.js.map +1 -0
- package/target/main/typescript/api/Jsf.js +258 -0
- package/target/main/typescript/api/Jsf.js.map +1 -0
- package/target/main/typescript/impl/AjaxImpl.js +569 -0
- package/target/main/typescript/impl/AjaxImpl.js.map +1 -0
- package/target/main/typescript/impl/PushImpl.js +215 -0
- package/target/main/typescript/impl/PushImpl.js.map +1 -0
- package/target/main/typescript/impl/core/Const.js +135 -0
- package/target/main/typescript/impl/core/Const.js.map +1 -0
- package/target/main/typescript/impl/core/ImplTypes.js +43 -0
- package/target/main/typescript/impl/core/ImplTypes.js.map +1 -0
- package/target/main/typescript/impl/i18n/Messages.js +114 -0
- package/target/main/typescript/impl/i18n/Messages.js.map +1 -0
- package/target/main/typescript/impl/util/Assertions.js +90 -0
- package/target/main/typescript/impl/util/Assertions.js.map +1 -0
- package/target/main/typescript/impl/util/AsyncQueue.js +104 -0
- package/target/main/typescript/impl/util/AsyncQueue.js.map +1 -0
- package/target/main/typescript/impl/util/AsyncRunnable.js +18 -0
- package/target/main/typescript/impl/util/AsyncRunnable.js.map +1 -0
- package/target/main/typescript/impl/util/ExtDomQuery.js +129 -0
- package/target/main/typescript/impl/util/ExtDomQuery.js.map +1 -0
- package/target/main/typescript/impl/util/Lang.js +215 -0
- package/target/main/typescript/impl/util/Lang.js.map +1 -0
- package/target/main/typescript/impl/util/ListenerQueue.js +3 -0
- package/target/main/typescript/impl/util/ListenerQueue.js.map +1 -0
- package/target/main/typescript/impl/xhrCore/ErrorData.js +89 -0
- package/target/main/typescript/impl/xhrCore/ErrorData.js.map +1 -0
- package/target/main/typescript/impl/xhrCore/EventData.js +30 -0
- package/target/main/typescript/impl/xhrCore/EventData.js.map +1 -0
- package/target/main/typescript/impl/xhrCore/IResponseProcessor.js +3 -0
- package/target/main/typescript/impl/xhrCore/IResponseProcessor.js.map +1 -0
- package/target/main/typescript/impl/xhrCore/RequestDataResolver.js +143 -0
- package/target/main/typescript/impl/xhrCore/RequestDataResolver.js.map +1 -0
- package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js +103 -0
- package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js.map +1 -0
- package/target/main/typescript/impl/xhrCore/Response.js +167 -0
- package/target/main/typescript/impl/xhrCore/Response.js.map +1 -0
- package/target/main/typescript/impl/xhrCore/ResponseProcessor.js +368 -0
- package/target/main/typescript/impl/xhrCore/ResponseProcessor.js.map +1 -0
- package/target/main/typescript/impl/xhrCore/XhrFormData.js +272 -0
- package/target/main/typescript/impl/xhrCore/XhrFormData.js.map +1 -0
- package/target/main/typescript/impl/xhrCore/XhrRequest.js +281 -0
- package/target/main/typescript/impl/xhrCore/XhrRequest.js.map +1 -0
- package/target/test/typescript/frameworkBase/LangTest.js +112 -0
- package/target/test/typescript/frameworkBase/LangTest.js.map +1 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js +293 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js.map +1 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js +89 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js.map +1 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js +115 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js.map +1 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js +39 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js.map +1 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js +155 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js.map +1 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js +176 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js.map +1 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js +1 -0
- package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js.map +1 -0
- package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js +264 -0
- package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js.map +1 -0
- package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js +23 -0
- package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js.map +1 -0
- package/target/test/typescript/impl/ImplTest.js +98 -0
- package/target/test/typescript/impl/ImplTest.js.map +1 -0
- package/target/test/typescript/impl/SeparatorCharsTest.js +72 -0
- package/target/test/typescript/impl/SeparatorCharsTest.js.map +1 -0
- package/target/test/typescript/queue/AsynchronousProbe.js +99 -0
- package/target/test/typescript/queue/AsynchronousProbe.js.map +1 -0
- package/target/test/typescript/queue/AsynchronousQueueTest.js +130 -0
- package/target/test/typescript/queue/AsynchronousQueueTest.js.map +1 -0
- package/target/test/typescript/xhrCore/EventTests.js +155 -0
- package/target/test/typescript/xhrCore/EventTests.js.map +1 -0
- package/target/test/typescript/xhrCore/FakeWebsocket.js +25 -0
- package/target/test/typescript/xhrCore/FakeWebsocket.js.map +1 -0
- package/target/test/typescript/xhrCore/FileUploadTest.js +166 -0
- package/target/test/typescript/xhrCore/FileUploadTest.js.map +1 -0
- package/target/test/typescript/xhrCore/RequestParamsTest.js +151 -0
- package/target/test/typescript/xhrCore/RequestParamsTest.js.map +1 -0
- package/target/test/typescript/xhrCore/RequestTest.js +318 -0
- package/target/test/typescript/xhrCore/RequestTest.js.map +1 -0
- package/target/test/typescript/xhrCore/ResponseTest.js +257 -0
- package/target/test/typescript/xhrCore/ResponseTest.js.map +1 -0
- package/target/test/typescript/xhrCore/ShadowDomTest.js +122 -0
- package/target/test/typescript/xhrCore/ShadowDomTest.js.map +1 -0
- package/target/test/typescript/xhrCore/WebsocketTest.js +182 -0
- package/target/test/typescript/xhrCore/WebsocketTest.js.map +1 -0
- package/target/test/typescript/xhrCore/XhrFormDataTest.js +58 -0
- package/target/test/typescript/xhrCore/XhrFormDataTest.js.map +1 -0
- package/webpack.config.js +71 -0
- package/webpack.config.js.map +1 -0
- package/webpack.config.ts +4 -6
- package/dist/window/jsf-development.js.LICENSE.txt +0 -135
- package/dist/window/jsf-development.js.br +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
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
|
+
var mocha_1 = require("mocha");
|
|
19
|
+
var mona_dish_1 = require("mona-dish");
|
|
20
|
+
var sinon = require("sinon");
|
|
21
|
+
var XhrFormData_1 = require("../../../main/typescript/impl/xhrCore/XhrFormData");
|
|
22
|
+
var chai_1 = require("chai");
|
|
23
|
+
var jsdom = require("jsdom");
|
|
24
|
+
var JSDOM = jsdom.JSDOM;
|
|
25
|
+
(0, mocha_1.describe)('XhrFormData tests', function () {
|
|
26
|
+
beforeEach(function () {
|
|
27
|
+
var _this = this;
|
|
28
|
+
var dom = new JSDOM("\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"UTF-8\">\n <title>Title</title>\n </head>\n <body>\n <div id=\"id_1\"></div>\n <div id=\"id_2\" booga=\"blarg\"></div>\n <div id=\"id_3\"></div>\n <div id=\"id_4\"></div>\n </body>\n </html>\n \n ", {
|
|
29
|
+
contentType: "text/html",
|
|
30
|
+
runScripts: "dangerously"
|
|
31
|
+
});
|
|
32
|
+
var window = dom.window;
|
|
33
|
+
global.window = window;
|
|
34
|
+
global.body = window.document.body;
|
|
35
|
+
global.document = window.document;
|
|
36
|
+
global.navigator = {
|
|
37
|
+
language: "en-En"
|
|
38
|
+
};
|
|
39
|
+
this.xhr = sinon.useFakeXMLHttpRequest();
|
|
40
|
+
this.requests = [];
|
|
41
|
+
this.xhr.onCreate = function (xhr) {
|
|
42
|
+
_this.requests.push(xhr);
|
|
43
|
+
};
|
|
44
|
+
global.XMLHttpRequest = this.xhr;
|
|
45
|
+
window.XMLHttpRequest = this.xhr;
|
|
46
|
+
});
|
|
47
|
+
this.afterEach(function () {
|
|
48
|
+
global.XMLHttpRequest = window.XMLHttpRequest = this.xhr.restore();
|
|
49
|
+
});
|
|
50
|
+
(0, mocha_1.it)("must have multiple values for a name", function () {
|
|
51
|
+
window.document.body.innerHTML = "<form id=\"page::form\">\n <tobago-select-many-checkbox id=\"page:animals\">\n <label for=\"page:animals\">Checkbox Group</label>\n <label><input type=\"checkbox\" name=\"page:animals\" id=\"page:animals::0\" value=\"Cat\" checked=\"checked\">Cat</label>\n <label><input type=\"checkbox\" name=\"page:animals\" id=\"page:animals::1\" value=\"Dog\">Dog</label>\n <label><input type=\"checkbox\" name=\"page:animals\" id=\"page:animals::2\" value=\"Fox\" checked=\"checked\">Fox</label>\n <label><input type=\"checkbox\" name=\"page:animals\" id=\"page:animals::3\" value=\"Rabbit\">Rabbit</label>\n </tobago-select-many-checkbox>\n <div id=\"page:animalsOutput\">\n <label for=\"page:animalsOutput\">Selected Animals</label>\n <span>Cat, Fox</span>\n </div>\n </form>";
|
|
52
|
+
var xhrFormData = new XhrFormData_1.XhrFormData(mona_dish_1.DQ.byId("page::form"));
|
|
53
|
+
var formData = xhrFormData.toString();
|
|
54
|
+
(0, chai_1.expect)(formData).to.contain("animals=Cat");
|
|
55
|
+
(0, chai_1.expect)(formData).to.contain("animals=Fox");
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=XhrFormDataTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XhrFormDataTest.js","sourceRoot":"","sources":["../../../../src/test/typescript/xhrCore/XhrFormDataTest.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;AAEH,+BAAmC;AACnC,uCAA6B;AAC7B,6BAA+B;AAC/B,iFAA8E;AAC9E,6BAA4B;AAE5B,IAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AACxB,IAAA,KAAK,GAAI,KAAK,MAAT,CAAU;AAEtB,IAAA,gBAAQ,EAAC,mBAAmB,EAAE;IAE5B,UAAU,CAAC;QAAA,iBAsCV;Q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CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAC3C,IAAA,aAAM,EAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
var path = require("path");
|
|
4
|
+
var CompressionPlugin = require('compression-webpack-plugin');
|
|
5
|
+
/**
|
|
6
|
+
* we need to define the export in a function
|
|
7
|
+
* because the mode parameter is passed down via the argv
|
|
8
|
+
*
|
|
9
|
+
* @param env the environment
|
|
10
|
+
* @param argv the arguments list
|
|
11
|
+
*/
|
|
12
|
+
function build(env, argv) {
|
|
13
|
+
var _a;
|
|
14
|
+
var libraryTarget = (_a = env.TARGET_TYPE) !== null && _a !== void 0 ? _a : "window";
|
|
15
|
+
var config = {
|
|
16
|
+
context: __dirname,
|
|
17
|
+
entry: "./src/main/typescript/api/Jsf.ts",
|
|
18
|
+
devtool: "source-map",
|
|
19
|
+
output: {
|
|
20
|
+
path: path.resolve(__dirname, './dist/' + libraryTarget),
|
|
21
|
+
libraryTarget: libraryTarget,
|
|
22
|
+
filename: (argv.mode == "production") ? "jsf.js" : "jsf-development.js"
|
|
23
|
+
},
|
|
24
|
+
resolve: {
|
|
25
|
+
extensions: [".tsx", ".ts", ".json"],
|
|
26
|
+
alias: {
|
|
27
|
+
/*we load the reduced core, because there are some parts we simply do not need*/
|
|
28
|
+
"mona-dish": path.resolve(__dirname, "node_modules/mona-dish/dist/js/commonjs/index_core.js")
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
externals: {
|
|
32
|
+
"rxjs": "RxJS"
|
|
33
|
+
},
|
|
34
|
+
module: {
|
|
35
|
+
rules: [
|
|
36
|
+
// all files with a '.ts' or '.tsx' extension will be handled by 'ts-loader'
|
|
37
|
+
{
|
|
38
|
+
test: /\.tsx?$/, use: [{
|
|
39
|
+
loader: "ts-loader"
|
|
40
|
+
}], exclude: /node_modules/
|
|
41
|
+
}, {
|
|
42
|
+
test: /jsf\.js$/,
|
|
43
|
+
loader: 'string-replace-loader',
|
|
44
|
+
options: {
|
|
45
|
+
search: 'jsf.js.map',
|
|
46
|
+
replace: 'jsf.js.map\n//# sourceMappingURL=jsf.js.map.jsf?ln=scripts'
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
plugins: [
|
|
52
|
+
new CompressionPlugin({
|
|
53
|
+
filename: 'jsf.js.gz[query]',
|
|
54
|
+
algorithm: 'gzip',
|
|
55
|
+
test: /\.js$|\.css$|\.html$|\.eot?.+$|\.ttf?.+$|\.woff?.+$|\.svg?.+$/,
|
|
56
|
+
threshold: 10240,
|
|
57
|
+
minRatio: 0.3
|
|
58
|
+
}),
|
|
59
|
+
new CompressionPlugin({
|
|
60
|
+
filename: 'jsf.js.br[query]',
|
|
61
|
+
algorithm: 'brotliCompress',
|
|
62
|
+
test: /\.(js|css|html|svg)$/,
|
|
63
|
+
threshold: 10240,
|
|
64
|
+
minRatio: 0.8
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
};
|
|
68
|
+
return config;
|
|
69
|
+
}
|
|
70
|
+
exports["default"] = build;
|
|
71
|
+
//# sourceMappingURL=webpack.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webpack.config.js","sourceRoot":"","sources":["webpack.config.ts"],"names":[],"mappings":";;AACA,2BAA4B;AAE5B,IAAI,iBAAiB,GAAG,OAAO,CAAC,4BAA4B,CAAC,CAAC;AAI9D;;;;;;GAMG;AACH,SAAS,KAAK,CAAC,GAA2B,EAAE,IAA4B;;IAEpE,IAAI,aAAa,GAAG,MAAA,GAAG,CAAC,WAAW,mCAAI,QAAQ,CAAC;IAEhD,IAAM,MAAM,GAA0B;QAClC,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,kCAA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OAAO,MAAM,CAAC;AAClB,CAAC;AAED,qBAAe,KAAK,CAAC"}
|
package/webpack.config.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import * as webpack from 'webpack';
|
|
2
2
|
import * as path from 'path'
|
|
3
|
-
import { IgnorePlugin } from 'webpack';
|
|
4
3
|
|
|
5
|
-
//let TerserPlugin = require('terser-webpack-plugin');
|
|
6
|
-
let BrotliPlugin = require('brotli-webpack-plugin');
|
|
7
4
|
let CompressionPlugin = require('compression-webpack-plugin');
|
|
8
5
|
|
|
9
6
|
|
|
@@ -15,7 +12,7 @@ let CompressionPlugin = require('compression-webpack-plugin');
|
|
|
15
12
|
* @param env the environment
|
|
16
13
|
* @param argv the arguments list
|
|
17
14
|
*/
|
|
18
|
-
function build(env, argv) {
|
|
15
|
+
function build(env: {[key:string]: string}, argv: {[key:string]: string}) {
|
|
19
16
|
|
|
20
17
|
let libraryTarget = env.TARGET_TYPE ?? "window";
|
|
21
18
|
|
|
@@ -73,8 +70,9 @@ function build(env, argv) {
|
|
|
73
70
|
minRatio: 0.3
|
|
74
71
|
|
|
75
72
|
}),
|
|
76
|
-
new
|
|
77
|
-
|
|
73
|
+
new CompressionPlugin({
|
|
74
|
+
filename: 'jsf.js.br[query]',
|
|
75
|
+
algorithm: 'brotliCompress',
|
|
78
76
|
test: /\.(js|css|html|svg)$/,
|
|
79
77
|
threshold: 10240,
|
|
80
78
|
minRatio: 0.8
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
/*! ../AjaxImpl */
|
|
2
|
-
|
|
3
|
-
/*! ../api/Jsf */
|
|
4
|
-
|
|
5
|
-
/*! ../core/Const */
|
|
6
|
-
|
|
7
|
-
/*! ../core/ImplTypes */
|
|
8
|
-
|
|
9
|
-
/*! ../i18n/Messages */
|
|
10
|
-
|
|
11
|
-
/*! ../impl/AjaxImpl */
|
|
12
|
-
|
|
13
|
-
/*! ../impl/PushImpl */
|
|
14
|
-
|
|
15
|
-
/*! ../util/Assertions */
|
|
16
|
-
|
|
17
|
-
/*! ../util/ExtDomQuery */
|
|
18
|
-
|
|
19
|
-
/*! ../util/Lang */
|
|
20
|
-
|
|
21
|
-
/*! ../xhrCore/RequestDataResolver */
|
|
22
|
-
|
|
23
|
-
/*! ./Const */
|
|
24
|
-
|
|
25
|
-
/*! ./ErrorData */
|
|
26
|
-
|
|
27
|
-
/*! ./EventData */
|
|
28
|
-
|
|
29
|
-
/*! ./Lang */
|
|
30
|
-
|
|
31
|
-
/*! ./RequestDataResolver */
|
|
32
|
-
|
|
33
|
-
/*! ./ResonseDataResolver */
|
|
34
|
-
|
|
35
|
-
/*! ./ResponseProcessor */
|
|
36
|
-
|
|
37
|
-
/*! ./XhrFormData */
|
|
38
|
-
|
|
39
|
-
/*! ./core/Const */
|
|
40
|
-
|
|
41
|
-
/*! ./util/Assertions */
|
|
42
|
-
|
|
43
|
-
/*! ./util/AsyncQueue */
|
|
44
|
-
|
|
45
|
-
/*! ./util/ExtDomQuery */
|
|
46
|
-
|
|
47
|
-
/*! ./util/Lang */
|
|
48
|
-
|
|
49
|
-
/*! ./xhrCore/ErrorData */
|
|
50
|
-
|
|
51
|
-
/*! ./xhrCore/RequestDataResolver */
|
|
52
|
-
|
|
53
|
-
/*! ./xhrCore/Response */
|
|
54
|
-
|
|
55
|
-
/*! ./xhrCore/XhrFormData */
|
|
56
|
-
|
|
57
|
-
/*! ./xhrCore/XhrRequest */
|
|
58
|
-
|
|
59
|
-
/*! mona-dish */
|
|
60
|
-
|
|
61
|
-
/*!****************************************!*\
|
|
62
|
-
!*** ./src/main/typescript/api/Jsf.ts ***!
|
|
63
|
-
\****************************************/
|
|
64
|
-
|
|
65
|
-
/*!**********************************************!*\
|
|
66
|
-
!*** ./src/main/typescript/impl/AjaxImpl.ts ***!
|
|
67
|
-
\**********************************************/
|
|
68
|
-
|
|
69
|
-
/*!**********************************************!*\
|
|
70
|
-
!*** ./src/main/typescript/impl/PushImpl.ts ***!
|
|
71
|
-
\**********************************************/
|
|
72
|
-
|
|
73
|
-
/*!***********************************************!*\
|
|
74
|
-
!*** ./src/main/typescript/impl/util/Lang.ts ***!
|
|
75
|
-
\***********************************************/
|
|
76
|
-
|
|
77
|
-
/*!************************************************!*\
|
|
78
|
-
!*** ./src/main/typescript/impl/core/Const.ts ***!
|
|
79
|
-
\************************************************/
|
|
80
|
-
|
|
81
|
-
/*!***************************************************!*\
|
|
82
|
-
!*** ./src/main/typescript/impl/i18n/Messages.ts ***!
|
|
83
|
-
\***************************************************/
|
|
84
|
-
|
|
85
|
-
/*!****************************************************!*\
|
|
86
|
-
!*** ./src/main/typescript/impl/core/ImplTypes.ts ***!
|
|
87
|
-
\****************************************************/
|
|
88
|
-
|
|
89
|
-
/*!*****************************************************!*\
|
|
90
|
-
!*** ./src/main/typescript/impl/util/Assertions.ts ***!
|
|
91
|
-
\*****************************************************/
|
|
92
|
-
|
|
93
|
-
/*!*****************************************************!*\
|
|
94
|
-
!*** ./src/main/typescript/impl/util/AsyncQueue.ts ***!
|
|
95
|
-
\*****************************************************/
|
|
96
|
-
|
|
97
|
-
/*!******************************************************!*\
|
|
98
|
-
!*** ./src/main/typescript/impl/util/ExtDomQuery.ts ***!
|
|
99
|
-
\******************************************************/
|
|
100
|
-
|
|
101
|
-
/*!******************************************************!*\
|
|
102
|
-
!*** ./src/main/typescript/impl/xhrCore/Response.ts ***!
|
|
103
|
-
\******************************************************/
|
|
104
|
-
|
|
105
|
-
/*!*******************************************************!*\
|
|
106
|
-
!*** ./src/main/typescript/impl/xhrCore/ErrorData.ts ***!
|
|
107
|
-
\*******************************************************/
|
|
108
|
-
|
|
109
|
-
/*!*******************************************************!*\
|
|
110
|
-
!*** ./src/main/typescript/impl/xhrCore/EventData.ts ***!
|
|
111
|
-
\*******************************************************/
|
|
112
|
-
|
|
113
|
-
/*!********************************************************!*\
|
|
114
|
-
!*** ./src/main/typescript/impl/xhrCore/XhrRequest.ts ***!
|
|
115
|
-
\********************************************************/
|
|
116
|
-
|
|
117
|
-
/*!*********************************************************!*\
|
|
118
|
-
!*** ./src/main/typescript/impl/xhrCore/XhrFormData.ts ***!
|
|
119
|
-
\*********************************************************/
|
|
120
|
-
|
|
121
|
-
/*!***************************************************************!*\
|
|
122
|
-
!*** ./node_modules/mona-dish/dist/js/commonjs/index_core.js ***!
|
|
123
|
-
\***************************************************************/
|
|
124
|
-
|
|
125
|
-
/*!***************************************************************!*\
|
|
126
|
-
!*** ./src/main/typescript/impl/xhrCore/ResponseProcessor.ts ***!
|
|
127
|
-
\***************************************************************/
|
|
128
|
-
|
|
129
|
-
/*!*****************************************************************!*\
|
|
130
|
-
!*** ./src/main/typescript/impl/xhrCore/RequestDataResolver.ts ***!
|
|
131
|
-
\*****************************************************************/
|
|
132
|
-
|
|
133
|
-
/*!*****************************************************************!*\
|
|
134
|
-
!*** ./src/main/typescript/impl/xhrCore/ResonseDataResolver.ts ***!
|
|
135
|
-
\*****************************************************************/
|
|
Binary file
|