jsf.js_next_gen 4.0.0-beta-23 → 4.0.1-alpha.0
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/.nyc_output/09ca9ebc-2305-4357-8db9-48ddfc7dfde2.json +1 -0
- package/.nyc_output/7c496a14-166e-4aa5-85b9-47b22b055ad8.json +1 -0
- package/.nyc_output/processinfo/09ca9ebc-2305-4357-8db9-48ddfc7dfde2.json +1 -0
- package/.nyc_output/processinfo/7c496a14-166e-4aa5-85b9-47b22b055ad8.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/README.md +13 -21
- package/dist/docs/assets/main.js +56 -52
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/assets/style.css +23 -0
- package/dist/docs/functions/faces.ajax.addOnError.html +2 -0
- package/dist/docs/functions/faces.ajax.addOnEvent.html +2 -0
- package/dist/docs/functions/faces.push.close.html +4 -2
- package/dist/docs/functions/faces.push.init.html +19 -7
- package/dist/docs/functions/faces.push.open.html +4 -2
- package/dist/docs/functions/myfaces.ab.html +9 -4
- package/dist/docs/functions/myfaces.onDomReady.html +72 -0
- package/dist/docs/index.html +16 -18
- package/dist/docs/modules/myfaces.html +3 -1
- package/dist/docs/variables/myfaces.oam.html +2 -1
- package/dist/window/faces-development.js +2846 -2085
- 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.LICENSE.txt +17 -2
- 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 +2856 -2084
- 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.LICENSE.txt +17 -2
- 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 +19 -18
- package/plans for 4.0.1.txt +8 -0
- package/src/main/test.xml +23 -0
- package/src/main/typescript/@types/definitions/index.d.ts +19 -2
- package/src/main/typescript/api/_api.ts +68 -25
- package/src/main/typescript/api/jsf.ts +18 -0
- package/src/main/typescript/impl/AjaxImpl.ts +204 -100
- package/src/main/typescript/impl/PushImpl.ts +63 -38
- package/src/main/typescript/impl/core/Const.ts +56 -40
- package/src/main/typescript/impl/util/Assertions.ts +16 -8
- package/src/main/typescript/impl/util/AsyncRunnable.ts +85 -10
- package/src/main/typescript/impl/util/ExtDomQuery.ts +65 -54
- package/src/main/typescript/impl/util/FileUtils.ts +108 -0
- package/src/main/typescript/impl/util/HiddenInputBuilder.ts +93 -0
- package/src/main/typescript/impl/util/Lang.ts +91 -35
- package/src/main/typescript/impl/util/XhrQueueController.ts +112 -0
- package/src/main/typescript/impl/xhrCore/ErrorData.ts +15 -10
- package/src/main/typescript/impl/xhrCore/EventData.ts +3 -3
- package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +25 -11
- package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +78 -32
- package/src/main/typescript/impl/xhrCore/ResonseDataResolver.ts +10 -10
- package/src/main/typescript/impl/xhrCore/Response.ts +66 -49
- package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +211 -138
- package/src/main/typescript/impl/xhrCore/XhrFormData.ts +92 -166
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +111 -120
- package/src/main/typescript/myfaces/OamSubmit.ts +30 -14
- package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +163 -27
- package/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.ts +4 -4
- package/src/main/typescript/test/frameworkBase/_ext/monadish/fixtures/blank.css +0 -0
- package/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.ts +921 -0
- package/src/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.ts +108 -0
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +111 -3
- package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +40 -1
- package/src/main/typescript/test/frameworkBase/_ext/shared/fixtures/jakarta.faces.resource/faces.js.jsf +0 -0
- package/src/main/typescript/test/impl/ImplTest.spec.ts +3 -3
- package/src/main/typescript/test/impl/ImplTest_23.spec.ts +3 -7
- package/src/main/typescript/test/myfaces/OnLoadSpec.ts +52 -0
- package/src/main/typescript/test/queue/AsynchronousProbe.ts +5 -5
- package/src/main/typescript/test/queue/AsynchronousQueueTest.spec.ts +4 -3
- package/src/main/typescript/test/xhrCore/EventTests.spec.ts +28 -22
- package/src/main/typescript/test/xhrCore/FileUploadTest.spec.ts +5 -2
- package/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.ts +203 -0
- package/src/main/typescript/test/xhrCore/OamSubmitTest.spec.ts +177 -0
- package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +158 -17
- package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +320 -15
- package/src/main/typescript/test/xhrCore/RequestTest_23.spec.ts +45 -4
- package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +374 -35
- package/src/main/typescript/test/xhrCore/ResponseTest23.spec.ts +43 -9
- package/src/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.ts +109 -0
- package/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.ts +67 -49
- package/src/main/typescript/test.xml +6 -0
- package/src/main/typescript/tsconfig.json +1 -1
- package/src/test/resources/jsf-development.js +1 -1
- package/src/tmp/test.html +12 -88
- package/target/api/_api.js +63 -21
- package/target/api/_api.js.map +1 -1
- package/target/api/jsf.js +11 -0
- package/target/api/jsf.js.map +1 -1
- package/target/classes/com/example/jsfs_js_ts/DecoratedFacesJS.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.class +0 -0
- package/target/classes/com/example/jsfs_js_ts/FacesJSMappingDecorator.class +0 -0
- package/target/impl/AjaxImpl.js +177 -81
- package/target/impl/AjaxImpl.js.map +1 -1
- package/target/impl/PushImpl.js +66 -35
- package/target/impl/PushImpl.js.map +1 -1
- package/target/impl/core/Const.js +54 -39
- package/target/impl/core/Const.js.map +1 -1
- package/target/impl/core/Context.js +10 -0
- package/target/impl/core/Context.js.map +1 -0
- package/target/impl/util/Assertions.js +12 -7
- package/target/impl/util/Assertions.js.map +1 -1
- package/target/impl/util/AsyncQueue.js.map +1 -1
- package/target/impl/util/AsyncRunnable.js +60 -0
- package/target/impl/util/AsyncRunnable.js.map +1 -1
- package/target/impl/util/ExtDomQuery.js +66 -48
- package/target/impl/util/ExtDomQuery.js.map +1 -1
- package/target/impl/util/FileUtils.js +97 -0
- package/target/impl/util/FileUtils.js.map +1 -0
- package/target/impl/util/HiddenElementBuilder.js +7 -0
- package/target/impl/util/HiddenElementBuilder.js.map +1 -0
- package/target/impl/util/HiddenInputBuilder.js +83 -0
- package/target/impl/util/HiddenInputBuilder.js.map +1 -0
- package/target/{types/index.js → impl/util/IAsyncRunnable.js} +11 -2
- package/target/impl/util/IAsyncRunnable.js.map +1 -0
- package/target/impl/util/Lang.js +81 -31
- package/target/impl/util/Lang.js.map +1 -1
- package/target/impl/util/URLCodec.js +77 -0
- package/target/impl/util/URLCodec.js.map +1 -0
- package/target/impl/util/XhrQueueController.js +107 -0
- package/target/impl/util/XhrQueueController.js.map +1 -0
- package/target/impl/xhrCore/ErrorData.js +10 -8
- package/target/impl/xhrCore/ErrorData.js.map +1 -1
- package/target/impl/xhrCore/EventData.js +2 -2
- package/target/impl/xhrCore/EventData.js.map +1 -1
- package/target/impl/xhrCore/RequestContext.js +11 -0
- package/target/impl/xhrCore/RequestContext.js.map +1 -0
- package/target/impl/xhrCore/RequestDataResolver.js +70 -23
- package/target/impl/xhrCore/RequestDataResolver.js.map +1 -1
- package/target/impl/xhrCore/ResonseDataResolver.js +9 -9
- package/target/impl/xhrCore/ResonseDataResolver.js.map +1 -1
- package/target/impl/xhrCore/Response.js +44 -29
- package/target/impl/xhrCore/Response.js.map +1 -1
- package/target/impl/xhrCore/ResponseProcessor.js +187 -119
- package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
- package/target/impl/xhrCore/XhrFormData.js +82 -156
- package/target/impl/xhrCore/XhrFormData.js.map +1 -1
- package/target/impl/xhrCore/XhrQueHandler.js +11 -0
- package/target/impl/xhrCore/XhrQueHandler.js.map +1 -0
- package/target/impl/xhrCore/XhrQueueController.js +62 -0
- package/target/impl/xhrCore/XhrQueueController.js.map +1 -0
- package/target/impl/xhrCore/XhrRequest.js +94 -106
- package/target/impl/xhrCore/XhrRequest.js.map +1 -1
- package/target/myfaces/OamSubmit.js +25 -14
- package/target/myfaces/OamSubmit.js.map +1 -1
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +124 -23
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +1 -1
- package/target/test/frameworkBase/_ext/monadish/ExtendedArrayTest.spec.js +76 -0
- package/target/test/frameworkBase/_ext/monadish/ExtendedArrayTest.spec.js.map +1 -0
- package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +4 -4
- package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +1 -1
- package/target/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js +925 -0
- package/target/test/frameworkBase/_ext/monadish/markups/tobago-with-header.js.map +1 -0
- package/target/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js +112 -0
- package/target/test/frameworkBase/_ext/monadish/markups/tobago-without-header.js.map +1 -0
- package/target/test/frameworkBase/_ext/shared/StandardInits.js +103 -3
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js +37 -1
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
- package/target/test/impl/ImplTest.spec.js +2 -2
- package/target/test/impl/ImplTest.spec.js.map +1 -1
- package/target/test/impl/ImplTest_23.spec.js +2 -2
- package/target/test/impl/ImplTest_23.spec.js.map +1 -1
- package/target/test/myfaces/OnLoadSpec.js +57 -0
- package/target/test/myfaces/OnLoadSpec.js.map +1 -0
- package/target/test/queue/AsynchronousQueueTest.spec.js +3 -3
- package/target/test/queue/AsynchronousQueueTest.spec.js.map +1 -1
- package/target/test/xhrCore/EventTests.spec.js +26 -19
- package/target/test/xhrCore/EventTests.spec.js.map +1 -1
- package/target/test/xhrCore/FileUploadTest.spec.js +2 -1
- package/target/test/xhrCore/FileUploadTest.spec.js.map +1 -1
- package/target/test/xhrCore/NamespacesRequestTest.spec.js +204 -0
- package/target/test/xhrCore/NamespacesRequestTest.spec.js.map +1 -0
- package/target/test/xhrCore/OamSubmitTest.spec.js +180 -0
- package/target/test/xhrCore/OamSubmitTest.spec.js.map +1 -0
- package/target/test/xhrCore/RequestParamsTest.spec.js +142 -10
- package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestTest.spec.js +288 -11
- package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestTest_23.spec.js +40 -2
- package/target/test/xhrCore/RequestTest_23.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest.spec.js +315 -24
- package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest23.spec.js +38 -8
- package/target/test/xhrCore/ResponseTest23.spec.js.map +1 -1
- package/target/test/xhrCore/TobagoFileUploadTest.spec.js +128 -0
- package/target/test/xhrCore/TobagoFileUploadTest.spec.js.map +1 -0
- package/target/test/xhrCore/XhrFormDataTest.spec.js +57 -34
- package/target/test/xhrCore/XhrFormDataTest.spec.js.map +1 -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 +24 -0
- package/target/test-classes/jsf-development.js +3559 -0
- 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 +1 -0
- package/target/test-classes/jsf.js +3 -0
- package/target/test-classes/jsf.js.br +0 -0
- package/target/test-classes/jsf.js.gz +0 -0
- package/tmp.xml +36 -0
- package/.nyc_output/2303b649-59d9-485c-9228-73b0ec8787a7.json +0 -1
- package/.nyc_output/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +0 -1
- package/.nyc_output/processinfo/2303b649-59d9-485c-9228-73b0ec8787a7.json +0 -1
- package/.nyc_output/processinfo/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +0 -1
- package/src/main/typescript/impl/util/AsyncQueue.ts +0 -133
- package/src/main/typescript/test/frameworkBase/_ext/monadish/StreamTest.spec.ts +0 -231
- package/target/types/index.js.map +0 -1
package/target/impl/util/Lang.js
CHANGED
|
@@ -14,8 +14,6 @@
|
|
|
14
14
|
* See the License for the specific language governing permissions and
|
|
15
15
|
* limitations under the License.
|
|
16
16
|
*
|
|
17
|
-
* todo replace singleton with module definition
|
|
18
|
-
*
|
|
19
17
|
*/
|
|
20
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
19
|
exports.ExtLang = void 0;
|
|
@@ -37,11 +35,11 @@ var ExtLang;
|
|
|
37
35
|
ExtLang.getLanguage = getLanguage;
|
|
38
36
|
//should be in lang, but for now here to avoid recursive imports, not sure if typescript still has a problem with those
|
|
39
37
|
/**
|
|
40
|
-
* helper function to
|
|
38
|
+
* helper function to safely resolve anything
|
|
41
39
|
* this is not an elvis operator, it resolves
|
|
42
40
|
* a value without exception in a tree and if
|
|
43
41
|
* it is not resolvable then an optional of
|
|
44
|
-
* a default value is restored or Optional
|
|
42
|
+
* a default value is restored or Optional\.empty
|
|
45
43
|
* if none is given
|
|
46
44
|
*
|
|
47
45
|
* usage
|
|
@@ -50,7 +48,7 @@ var ExtLang;
|
|
|
50
48
|
* </code>
|
|
51
49
|
*
|
|
52
50
|
* @param resolverProducer a lambda which can produce the value
|
|
53
|
-
* @param defaultValue an optional default value if the producer
|
|
51
|
+
* @param defaultValue an optional default value if the producer fails to produce anything
|
|
54
52
|
* @returns an Optional of the produced value
|
|
55
53
|
*/
|
|
56
54
|
function failSaveResolve(resolverProducer, defaultValue = null) {
|
|
@@ -74,10 +72,10 @@ var ExtLang;
|
|
|
74
72
|
* returns a given localized message upon a given key
|
|
75
73
|
* basic java log like templating functionality is included
|
|
76
74
|
*
|
|
77
|
-
* @param
|
|
78
|
-
* @param
|
|
75
|
+
* @param key the key for the message
|
|
76
|
+
* @param defaultMessage optional default message if none was found
|
|
79
77
|
*
|
|
80
|
-
* Additionally you can pass additional arguments, which are used
|
|
78
|
+
* Additionally, you can pass additional arguments, which are used
|
|
81
79
|
* in the same way java log templates use the params
|
|
82
80
|
*
|
|
83
81
|
* @param templateParams the param list to be filled in
|
|
@@ -86,7 +84,7 @@ var ExtLang;
|
|
|
86
84
|
var _a, _b;
|
|
87
85
|
installedLocale = installedLocale !== null && installedLocale !== void 0 ? installedLocale : new Messages_1.Messages();
|
|
88
86
|
let msg = (_b = (_a = installedLocale[key]) !== null && _a !== void 0 ? _a : defaultMessage) !== null && _b !== void 0 ? _b : key;
|
|
89
|
-
|
|
87
|
+
templateParams.forEach((param, cnt) => {
|
|
90
88
|
msg = msg.replace(new RegExp(["\\{", cnt, "\\}"].join(Const_1.EMPTY_STR), "g"), param);
|
|
91
89
|
});
|
|
92
90
|
return msg;
|
|
@@ -103,15 +101,15 @@ var ExtLang;
|
|
|
103
101
|
}
|
|
104
102
|
ExtLang.keyValToStr = keyValToStr;
|
|
105
103
|
/**
|
|
106
|
-
* creates an
|
|
104
|
+
* creates an exception with additional internal parameters
|
|
107
105
|
* for extra information
|
|
108
106
|
*
|
|
109
107
|
* @param error
|
|
110
|
-
* @param
|
|
111
|
-
* @param
|
|
112
|
-
* @param
|
|
113
|
-
* @param
|
|
114
|
-
* @param
|
|
108
|
+
* @param title the exception title
|
|
109
|
+
* @param name the exception name
|
|
110
|
+
* @param callerCls the caller class
|
|
111
|
+
* @param callFunc the caller function
|
|
112
|
+
* @param message the message for the exception
|
|
115
113
|
*/
|
|
116
114
|
function makeException(error, title, name, callerCls, callFunc, message) {
|
|
117
115
|
var _a;
|
|
@@ -120,15 +118,15 @@ var ExtLang;
|
|
|
120
118
|
ExtLang.makeException = makeException;
|
|
121
119
|
/**
|
|
122
120
|
* fetches a global config entry
|
|
123
|
-
* @param
|
|
124
|
-
* @param
|
|
121
|
+
* @param configName the name of the configuration entry
|
|
122
|
+
* @param defaultValue
|
|
125
123
|
*
|
|
126
124
|
* @return either the config entry or if none is given the default value
|
|
127
125
|
*/
|
|
128
126
|
function getGlobalConfig(configName, defaultValue) {
|
|
129
127
|
var _a, _b, _c;
|
|
130
128
|
/**
|
|
131
|
-
* note we could use exists but this is
|
|
129
|
+
* note we could use exists but this is a heavy operation, since the config name usually
|
|
132
130
|
* given this function here is called very often
|
|
133
131
|
* is a single entry without . in between we can do the lighter shortcut
|
|
134
132
|
*/
|
|
@@ -136,7 +134,7 @@ var ExtLang;
|
|
|
136
134
|
}
|
|
137
135
|
ExtLang.getGlobalConfig = getGlobalConfig;
|
|
138
136
|
/**
|
|
139
|
-
* fetches the form in
|
|
137
|
+
* fetches the form in a fuzzy manner depending
|
|
140
138
|
* on an element or event target.
|
|
141
139
|
*
|
|
142
140
|
* The idea is that according to the jsf spec
|
|
@@ -145,7 +143,7 @@ var ExtLang;
|
|
|
145
143
|
* This is fine, but since then html5 came into the picture with the form attribute the element
|
|
146
144
|
* can be anywhere referencing its parent form.
|
|
147
145
|
*
|
|
148
|
-
* Also theoretically you can have the case of an issuing element enclosing a set of forms
|
|
146
|
+
* Also, theoretically you can have the case of an issuing element enclosing a set of forms
|
|
149
147
|
* (not really often used, but theoretically it could be input button allows to embed html for instance)
|
|
150
148
|
*
|
|
151
149
|
* So the idea is not to limit the issuing form determination to the spec case
|
|
@@ -156,22 +154,22 @@ var ExtLang;
|
|
|
156
154
|
*/
|
|
157
155
|
function getForm(elem, event) {
|
|
158
156
|
let queryElem = new mona_dish_1.DQ(elem);
|
|
159
|
-
let eventTarget = new mona_dish_1.DQ((0, RequestDataResolver_1.getEventTarget)(event));
|
|
160
|
-
if (queryElem.isTag(Const_1.
|
|
157
|
+
let eventTarget = (event) ? new mona_dish_1.DQ((0, RequestDataResolver_1.getEventTarget)(event)) : mona_dish_1.DomQuery.absent;
|
|
158
|
+
if (queryElem.isTag(Const_1.HTML_TAG_FORM)) {
|
|
161
159
|
return queryElem;
|
|
162
160
|
}
|
|
163
161
|
//html 5 for handling
|
|
164
|
-
if (queryElem.attr(Const_1.
|
|
165
|
-
let formId = queryElem.attr(Const_1.
|
|
162
|
+
if (queryElem.attr(Const_1.HTML_TAG_FORM).isPresent()) {
|
|
163
|
+
let formId = queryElem.attr(Const_1.HTML_TAG_FORM).value;
|
|
166
164
|
let foundForm = mona_dish_1.DQ.byId(formId, true);
|
|
167
165
|
if (foundForm.isPresent()) {
|
|
168
166
|
return foundForm;
|
|
169
167
|
}
|
|
170
168
|
}
|
|
171
|
-
let form = queryElem.
|
|
172
|
-
.orElseLazy(() => queryElem.byTagName(Const_1.
|
|
173
|
-
.orElseLazy(() => eventTarget.
|
|
174
|
-
.orElseLazy(() => eventTarget.byTagName(Const_1.
|
|
169
|
+
let form = queryElem.firstParent(Const_1.HTML_TAG_FORM)
|
|
170
|
+
.orElseLazy(() => queryElem.byTagName(Const_1.HTML_TAG_FORM, true))
|
|
171
|
+
.orElseLazy(() => eventTarget.firstParent(Const_1.HTML_TAG_FORM))
|
|
172
|
+
.orElseLazy(() => eventTarget.byTagName(Const_1.HTML_TAG_FORM))
|
|
175
173
|
.first();
|
|
176
174
|
assertFormExists(form);
|
|
177
175
|
return form;
|
|
@@ -181,10 +179,11 @@ var ExtLang;
|
|
|
181
179
|
* gets the local or global options with local ones having higher priority
|
|
182
180
|
* if no local or global one was found then the default value is given back
|
|
183
181
|
*
|
|
184
|
-
* @param
|
|
185
|
-
* @param
|
|
182
|
+
* @param configName the name of the configuration entry
|
|
183
|
+
* @param localOptions the local options root for the configuration myfaces as default marker is added
|
|
184
|
+
* implicitly
|
|
186
185
|
*
|
|
187
|
-
* @param
|
|
186
|
+
* @param defaultValue
|
|
188
187
|
*
|
|
189
188
|
* @return either the config entry or if none is given the default value
|
|
190
189
|
*/
|
|
@@ -193,6 +192,57 @@ var ExtLang;
|
|
|
193
192
|
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;
|
|
194
193
|
}
|
|
195
194
|
ExtLang.getLocalOrGlobalConfig = getLocalOrGlobalConfig;
|
|
195
|
+
/**
|
|
196
|
+
* expands an associative array into an array of key value tuples
|
|
197
|
+
* @param value
|
|
198
|
+
*/
|
|
199
|
+
function ofAssoc(value) {
|
|
200
|
+
return Object.keys(value)
|
|
201
|
+
.map(key => [key, value[key]]);
|
|
202
|
+
}
|
|
203
|
+
ExtLang.ofAssoc = ofAssoc;
|
|
204
|
+
function collectAssoc(target, item) {
|
|
205
|
+
target[item[0]] = item[1];
|
|
206
|
+
return target;
|
|
207
|
+
}
|
|
208
|
+
ExtLang.collectAssoc = collectAssoc;
|
|
209
|
+
/**
|
|
210
|
+
* The active timeout for the "debounce".
|
|
211
|
+
* Since we only use it in the XhrController
|
|
212
|
+
* we can use a local module variable here
|
|
213
|
+
*/
|
|
214
|
+
let activeTimeouts = {};
|
|
215
|
+
/**
|
|
216
|
+
* a simple debounce function
|
|
217
|
+
* which waits until a timeout is reached and
|
|
218
|
+
* if something comes in in between debounces
|
|
219
|
+
*
|
|
220
|
+
* @param runnable a runnable which should go under debounce control
|
|
221
|
+
* @param timeout a timeout for the debounce window
|
|
222
|
+
*/
|
|
223
|
+
function debounce(key, runnable, timeout) {
|
|
224
|
+
function clearActiveTimeout() {
|
|
225
|
+
clearTimeout(activeTimeouts[key]);
|
|
226
|
+
delete activeTimeouts[key];
|
|
227
|
+
}
|
|
228
|
+
if (!!(activeTimeouts === null || activeTimeouts === void 0 ? void 0 : activeTimeouts[key])) {
|
|
229
|
+
clearActiveTimeout();
|
|
230
|
+
}
|
|
231
|
+
if (timeout > 0) {
|
|
232
|
+
activeTimeouts[key] = setTimeout(() => {
|
|
233
|
+
try {
|
|
234
|
+
runnable();
|
|
235
|
+
}
|
|
236
|
+
finally {
|
|
237
|
+
clearActiveTimeout();
|
|
238
|
+
}
|
|
239
|
+
}, timeout);
|
|
240
|
+
}
|
|
241
|
+
else {
|
|
242
|
+
runnable();
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
ExtLang.debounce = debounce;
|
|
196
246
|
/**
|
|
197
247
|
* assert that the form exists and throw an exception in the case it does not
|
|
198
248
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lang.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/util/Lang.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"Lang.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/util/Lang.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;GAeG;;;AAEH,yCAA2E;AAC3E,+CAA0C;AAC1C,yCAAuD;AACvD,wEAA8D;AAG9D,IAAc,OAAO,CAwPpB;AAxPD,WAAc,OAAO;IAEjB,IAAI,eAAyB,CAAC;IAC9B,IAAI,SAAS,GAAG,iBAAiB,CAAC;IAElC,SAAgB,WAAW;QACvB,6BAA6B;;QAE7B,IAAI,QAAQ,GAAW,MAAA,MAAM,SAAU,CAAC,SAAS,0CAAG,CAAC,CAAC,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(exports, "__esModule", { value: true });
|
|
3
|
+
exports.mergeFiles = exports.decodeEncodedValues = exports.encodeFormData = exports.mergeKeyValueEntries = void 0;
|
|
4
|
+
const mona_dish_1 = require("mona-dish");
|
|
5
|
+
const ExtDomQuery_1 = require("./ExtDomQuery");
|
|
6
|
+
const Const_1 = require("../core/Const");
|
|
7
|
+
/*
|
|
8
|
+
* various routines for encoding and decoding url parameters
|
|
9
|
+
* into configs and vice versa
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* merges a list of key value entries into a target config
|
|
13
|
+
* @param target the target receiving the key value entries
|
|
14
|
+
* @param keyValueEntries a list of key value entries divided by =
|
|
15
|
+
* @param paramsMapper a key value remapper
|
|
16
|
+
*/
|
|
17
|
+
function mergeKeyValueEntries(target, keyValueEntries, paramsMapper = (key, value) => [key, value]) {
|
|
18
|
+
function splitToKeyVal(line) {
|
|
19
|
+
return line.split(/=(.*)/gi);
|
|
20
|
+
}
|
|
21
|
+
function fixKeyWithoutVal(keyVal) {
|
|
22
|
+
var _a, _b;
|
|
23
|
+
return keyVal.length < 3 ? [(_a = keyVal === null || keyVal === void 0 ? void 0 : keyVal[0]) !== null && _a !== void 0 ? _a : [], (_b = keyVal === null || keyVal === void 0 ? void 0 : keyVal[1]) !== null && _b !== void 0 ? _b : []] : keyVal;
|
|
24
|
+
}
|
|
25
|
+
let toMerge = new ExtDomQuery_1.ExtConfig({});
|
|
26
|
+
mona_dish_1.Stream.of(...keyValueEntries)
|
|
27
|
+
.map(line => splitToKeyVal(line))
|
|
28
|
+
//special case of having keys without values
|
|
29
|
+
.map(keyVal => fixKeyWithoutVal(keyVal))
|
|
30
|
+
.map(keyVal => paramsMapper(keyVal[0], keyVal[1]))
|
|
31
|
+
.each(keyVal => {
|
|
32
|
+
var _a, _b;
|
|
33
|
+
toMerge.append(keyVal[0]).value = (_b = (_a = keyVal === null || keyVal === void 0 ? void 0 : keyVal.splice(1)) === null || _a === void 0 ? void 0 : _a.join("")) !== null && _b !== void 0 ? _b : "";
|
|
34
|
+
});
|
|
35
|
+
target.shallowMerge(toMerge);
|
|
36
|
+
}
|
|
37
|
+
exports.mergeKeyValueEntries = mergeKeyValueEntries;
|
|
38
|
+
/**
|
|
39
|
+
* encodes a given form data into a url encoded string
|
|
40
|
+
* @param formData the form data config object
|
|
41
|
+
* @param paramsMapper the params mapper
|
|
42
|
+
* @param defaultStr a default string if nothing comes out of it
|
|
43
|
+
*/
|
|
44
|
+
function encodeFormData(formData, paramsMapper = (inStr, inVal) => [inStr, inVal], defaultStr = Const_1.EMPTY_STR) {
|
|
45
|
+
if (formData.isAbsent()) {
|
|
46
|
+
return defaultStr;
|
|
47
|
+
}
|
|
48
|
+
let assocValues = formData.value;
|
|
49
|
+
let entries = mona_dish_1.LazyStream.of(...Object.keys(assocValues))
|
|
50
|
+
.filter(key => assocValues.hasOwnProperty(key))
|
|
51
|
+
.flatMap(key => mona_dish_1.Stream.of(...assocValues[key]).map(val => paramsMapper(key, val)))
|
|
52
|
+
//we cannot encode file elements that is handled by multipart requests anyway
|
|
53
|
+
.filter(([, value]) => !(value instanceof ExtDomQuery_1.ExtDomQuery.global().File))
|
|
54
|
+
.map(keyVal => `${encodeURIComponent(keyVal[0])}=${encodeURIComponent(keyVal[1])}`)
|
|
55
|
+
.collect(new mona_dish_1.ArrayCollector());
|
|
56
|
+
return entries.join("&");
|
|
57
|
+
}
|
|
58
|
+
exports.encodeFormData = encodeFormData;
|
|
59
|
+
/**
|
|
60
|
+
* splits and decodes encoded values into strings containing of key=value
|
|
61
|
+
* @param encoded encoded string
|
|
62
|
+
*/
|
|
63
|
+
function decodeEncodedValues(encoded) {
|
|
64
|
+
return decodeURIComponent(encoded).split(/&/gi)
|
|
65
|
+
.filter(item => !!(item || '')
|
|
66
|
+
.replace(/\s+/g, ''));
|
|
67
|
+
}
|
|
68
|
+
exports.decodeEncodedValues = decodeEncodedValues;
|
|
69
|
+
function mergeFiles(target, dataSource) {
|
|
70
|
+
dataSource
|
|
71
|
+
.querySelectorAllDeep("input[type='file']")
|
|
72
|
+
.stream
|
|
73
|
+
.map(fileInput => [fileInput.name.value || fileInput.id.value, fileInput.filesFromElem(0)])
|
|
74
|
+
.each(([key, files]) => target.append(key).value = files);
|
|
75
|
+
}
|
|
76
|
+
exports.mergeFiles = mergeFiles;
|
|
77
|
+
//# sourceMappingURL=URLCodec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"URLCodec.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/util/URLCodec.ts"],"names":[],"mappings":";;;AAAA,yCAAyE;AACzE,+CAAqD;AACrD,yCAAwC;AAExC;;;GAGG;AAEH;;;;;GAKG;AACH,SAAgB,oBAAoB,CAAC,MAAc,EAAE,eAAyB,EAAE,YAAY,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC;IAEvH,SAAS,aAAa,CAAC,IAAY;QAC/B,OAAO,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IACjC,CAAC;IAED,SAAS,gBAAgB,CAAC,MAAgB;;QACtC,OAAO,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,mCAAI,EAAE,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAG,CAAC,CAAC,mCAAI,EAAE,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC;IAC/E,CAAC;IAED,IAAI,OAAO,GAAG,IAAI,uBAAS,CAAC,EAAE,CAAC,CAAC;IAChC,kBAAM,CAAC,EAAE,CAAC,GAAG,eAAe,CAAC;SACxB,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QACjC,4CAA4C;SAC3C,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC;SACv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AAC,MAAM,EAAE,CAAC,IAAI,CAAC,CAAC;SACpE,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;SAClF,OAAO,CAAC,IAAI,0BAAc,EAAE,CAAC,CAAC;IAEnC,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;AAC5B,CAAC;AAhBD,wCAgBC;AAED;;;GAGG;AACH,SAAgB,mBAAmB,CAAC,OAAe;IAC/C,OAAO,kBAAkB,CAAC,OAAO,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC;SAC1C,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,EAAE,CAAC;SACzB,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,CAAC;AAClC,CAAC;AAJD,kDAIC;AAGD,SAAgB,UAAU,CAAC,MAAiB,EAAE,UAAc;IACpD,UAAU;SACL,oBAAoB,CAAC,oBAAoB,CAAC;SAC1C,MAAM;SACN,GAAG,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,IAAI,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;SAC1F,IAAI,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,GAAG,KAAY,CAAC,CAAC;AAC7E,CAAC;AAND,gCAMC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.XhrQueueController = void 0;
|
|
4
|
+
const Lang_1 = require("./Lang");
|
|
5
|
+
var debounce = Lang_1.ExtLang.debounce;
|
|
6
|
+
/**
|
|
7
|
+
* A simple XHR queue controller
|
|
8
|
+
* following the async op -> next pattern
|
|
9
|
+
* Faces enforces for the XHR handling
|
|
10
|
+
*/
|
|
11
|
+
class XhrQueueController {
|
|
12
|
+
constructor() {
|
|
13
|
+
this.queue = [];
|
|
14
|
+
this.taskRunning = false;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* executes or enqueues an element
|
|
18
|
+
* @param runnable the runnable (request) to be enqueued
|
|
19
|
+
* @param timeOut timeout if > 0 which defers the execution
|
|
20
|
+
* until the debounce window for the timeout is closed.
|
|
21
|
+
*/
|
|
22
|
+
enqueue(runnable, timeOut = 0) {
|
|
23
|
+
debounce("xhrQueue", () => {
|
|
24
|
+
const requestHandler = this.enrichRunnable(runnable);
|
|
25
|
+
if (!this.taskRunning) {
|
|
26
|
+
this.signalTaskRunning();
|
|
27
|
+
requestHandler.start();
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
this.queue.push(requestHandler);
|
|
31
|
+
}
|
|
32
|
+
}, timeOut);
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* trigger the next element in the queue
|
|
36
|
+
* to be started!
|
|
37
|
+
*/
|
|
38
|
+
next() {
|
|
39
|
+
this.updateTaskRunning();
|
|
40
|
+
const next = this.queue.shift();
|
|
41
|
+
next === null || next === void 0 ? void 0 : next.start();
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* clears and resets the queue
|
|
45
|
+
*/
|
|
46
|
+
clear() {
|
|
47
|
+
this.queue.length = 0;
|
|
48
|
+
this.updateTaskRunning();
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* true if queue is empty
|
|
52
|
+
*/
|
|
53
|
+
get isEmpty() {
|
|
54
|
+
return !this.queue.length;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Enriches the incoming async asyncRunnable
|
|
58
|
+
* with the error and next handling
|
|
59
|
+
* (aka: asyncRunnable is done -> next
|
|
60
|
+
* error -> clear queue
|
|
61
|
+
* @param asyncRunnable the async runnable which needs enrichment
|
|
62
|
+
* @private
|
|
63
|
+
*/
|
|
64
|
+
enrichRunnable(asyncRunnable) {
|
|
65
|
+
/**
|
|
66
|
+
* we can use the Promise pattern asyncrunnable uses
|
|
67
|
+
* to trigger queue control callbacks of next element
|
|
68
|
+
* and clear the queue (theoretically this
|
|
69
|
+
* would work with any promise)
|
|
70
|
+
*/
|
|
71
|
+
try {
|
|
72
|
+
return asyncRunnable
|
|
73
|
+
.then(() => this.next())
|
|
74
|
+
.catch((e) => this.handleError(e));
|
|
75
|
+
}
|
|
76
|
+
catch (e) {
|
|
77
|
+
this.handleError(e);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* alerts the queue that a task is running
|
|
82
|
+
*
|
|
83
|
+
* @private
|
|
84
|
+
*/
|
|
85
|
+
signalTaskRunning() {
|
|
86
|
+
this.taskRunning = true;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* updates the task running status according to the current queue
|
|
90
|
+
* @private
|
|
91
|
+
*/
|
|
92
|
+
updateTaskRunning() {
|
|
93
|
+
this.taskRunning = !this.isEmpty;
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* standard error handling
|
|
97
|
+
* we clear the queue and then bomb out
|
|
98
|
+
* @param e
|
|
99
|
+
* @private
|
|
100
|
+
*/
|
|
101
|
+
handleError(e) {
|
|
102
|
+
this.clear();
|
|
103
|
+
throw e;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
exports.XhrQueueController = XhrQueueController;
|
|
107
|
+
//# sourceMappingURL=XhrQueueController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"XhrQueueController.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/util/XhrQueueController.ts"],"names":[],"mappings":";;;AACA,iCAA+B;AAC/B,IAAO,QAAQ,GAAG,cAAO,CAAC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AC,OAAO,CAAC,EAAE;YACR,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;SACvB;IACL,CAAC;IAGD;;;;OAIG;IACK,iBAAiB;QACrB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC5B,CAAC;IAED;;;OAGG;IACK,iBAAiB;QACrB,IAAI,CAAC,WAAW,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;IACrC,CAAC;IAED;;;;;OAKG;IACK,WAAW,CAAC,CAAC;QACjB,IAAI,CAAC,KAAK,EAAE,CAAC;QACb,MAAM,CAAC,CAAC;IACZ,CAAC;CACJ;AAtGD,gDAsGC"}
|
|
@@ -37,13 +37,15 @@ var ErrorType;
|
|
|
37
37
|
* I will add deprecated myfaces backwards compatibility attributes as well
|
|
38
38
|
*/
|
|
39
39
|
class ErrorData extends EventData_1.EventData {
|
|
40
|
-
constructor(source, errorName, errorMessage, responseText = null, responseXML = null, responseCode = "200", status = "
|
|
40
|
+
constructor(source, errorName, errorMessage, responseText = null, responseXML = null, responseCode = "200", status = "", type = ErrorType.CLIENT_ERROR) {
|
|
41
41
|
super();
|
|
42
42
|
this.type = "error";
|
|
43
|
-
this.source = source;
|
|
44
|
-
this.
|
|
43
|
+
this.source = document.getElementById(source);
|
|
44
|
+
this.sourceId = source;
|
|
45
|
+
this.type = Const_1.ERROR;
|
|
45
46
|
this.errorName = errorName;
|
|
46
|
-
|
|
47
|
+
//tck requires that the type is prefixed to the message itself (jsdoc also) in case of a server error
|
|
48
|
+
this.message = this.errorMessage = (type == Const_1.SERVER_ERROR) ? type + ": " + errorMessage : errorMessage;
|
|
47
49
|
this.responseCode = responseCode;
|
|
48
50
|
this.responseText = responseText;
|
|
49
51
|
this.status = status;
|
|
@@ -54,10 +56,10 @@ class ErrorData extends EventData_1.EventData {
|
|
|
54
56
|
}
|
|
55
57
|
}
|
|
56
58
|
static fromClient(e) {
|
|
57
|
-
var _a, _b, _c;
|
|
58
|
-
return new ErrorData(
|
|
59
|
+
var _a, _b, _c, _d;
|
|
60
|
+
return new ErrorData((_a = e === null || e === void 0 ? void 0 : e.source) !== null && _a !== void 0 ? _a : "client", (_b = e === null || e === void 0 ? void 0 : e.name) !== null && _b !== void 0 ? _b : Const_1.EMPTY_STR, (_c = e === null || e === void 0 ? void 0 : e.message) !== null && _c !== void 0 ? _c : Const_1.EMPTY_STR, (_d = e === null || e === void 0 ? void 0 : e.stack) !== null && _d !== void 0 ? _d : Const_1.EMPTY_STR);
|
|
59
61
|
}
|
|
60
|
-
static fromHttpConnection(source, name, message, responseText, responseCode, status =
|
|
62
|
+
static fromHttpConnection(source, name, message, responseText, responseCode, status = Const_1.EMPTY_STR) {
|
|
61
63
|
return new ErrorData(source, name, message, responseText, responseCode, `${responseCode}`, status, ErrorType.HTTP_ERROR);
|
|
62
64
|
}
|
|
63
65
|
static fromGeneric(context, errorCode, errorType = ErrorType.SERVER_ERROR) {
|
|
@@ -71,7 +73,7 @@ class ErrorData extends EventData_1.EventData {
|
|
|
71
73
|
return new ErrorData(source, errorName, errorMessage, responseText, responseXML, errorCode + Const_1.EMPTY_STR, status, errorType);
|
|
72
74
|
}
|
|
73
75
|
static getMsg(context, param) {
|
|
74
|
-
return getMessage(context.getIf(param).orElse(Const_1.
|
|
76
|
+
return getMessage(context.getIf(param).orElse(Const_1.EMPTY_STR).value);
|
|
75
77
|
}
|
|
76
78
|
static fromServerError(context) {
|
|
77
79
|
return this.fromGeneric(context, -1);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorData.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/xhrCore/ErrorData.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yCASuB;AAGvB,2CAAsC;AACtC,uCAAqC;AACrC,IAAO,UAAU,GAAG,cAAO,CAAC,UAAU,CAAC;AAGvC,IAAY,SAKX;AALD,WAAY,SAAS;IACjB,yCAA4B,CAAA;IAC5B,qCAAwB,CAAA;IACxB,0CAA6B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M,CAAC,OAAO,EAAE,qBAAa,CAAC,CAAC;QAClD,IAAI,MAAM,GAAG,MAAM,CAAC,OAAO,EAAE,cAAM,CAAC,CAAC;QACrC,IAAI,YAAY,GAAG,MAAM,CAAC,OAAO,EAAE,qBAAa,CAAC,CAAC;QAClD,IAAI,WAAW,GAAG,MAAM,CAAC,OAAO,EAAE,oBAAY,CAAC,CAAC;QAGhD,OAAO,IAAI,SAAS,CAAC,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,SAAS,GAAG,iBAAS,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;IAC/H,CAAC;IAEO,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK;QAChC,OAAO,UAAU,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,iBAAS,CAAC,CAAC,KAAK,CAAC,CAAC;IACpE,CAAC;IAED,MAAM,CAAC,eAAe,CAAC,OAAe;QAClC,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;IACzC,CAAC;CAEJ;AApED,8BAoEC"}
|
|
@@ -25,8 +25,8 @@ class EventData {
|
|
|
25
25
|
eventData.type = Const_1.EVENT;
|
|
26
26
|
eventData.status = name;
|
|
27
27
|
let sourceId = context.getIf(Const_1.SOURCE)
|
|
28
|
-
.orElseLazy(() => context.getIf(Const_1.
|
|
29
|
-
.orElseLazy(() => context.getIf(Const_1.
|
|
28
|
+
.orElseLazy(() => context.getIf(Const_1.P_AJAX_SOURCE).value)
|
|
29
|
+
.orElseLazy(() => context.getIf(Const_1.CTX_PARAM_REQ_PASS_THR, Const_1.P_AJAX_SOURCE).value)
|
|
30
30
|
.value;
|
|
31
31
|
if (sourceId) {
|
|
32
32
|
eventData.source = mona_dish_1.DQ.byId(sourceId, true).first().value.value;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventData.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/xhrCore/EventData.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yCAAqC;AACrC,
|
|
1
|
+
{"version":3,"file":"EventData.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/xhrCore/EventData.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;GAcG;AACH,yCAAqC;AACrC,yCAA0F;AAE1F,MAAa,SAAS;IAQlB,MAAM,CAAC,iBAAiB,CAAC,OAAuB,EAAE,OAAe,EAAE,cAAc,CAAC,IAAY;;QAE1F,IAAI,SAAS,GAAG,IAAI,SAAS,EAAE,CAAC;QAEhC,SAAS,CAAC,IAAI,GAAG,aAAK,CAAC;QACvB,SAAS,CAAC,MAAM,GAAG,IAAI,CAAC;QAExB,IAAI,QAAQ,GAAW,OAAO,CAAC,KAAK,CAAC,cAAM,CAAC;aACvC,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,qBAAa,CAAC,CAAC,KAAK,CAAC;aACpD,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,8BAAsB,EAAE,qBAAa,CAAC,CAAC,KAAK,CAAC;aAC5E,KAAK,CAAC;QACX,IAAI,QAAQ,EAAE;YACV,SAAS,CAAC,MAAM,GAAG,cAAE,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC;SAClE;QAED,IAAI,IAAI,KAAK,aAAK,EAAE;YAChB,SAAS,CAAC,YAAY,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,MAAM,0CAAE,QAAQ,EAAE,CAAC;YACrD,SAAS,CAAC,YAAY,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,CAAC;YAC/C,SAAS,CAAC,WAAW,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,CAAC;SAChD;QACD,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AA9BD,8BA8BC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RequestContext = void 0;
|
|
4
|
+
const mona_dish_1 = require("mona-dish");
|
|
5
|
+
class RequestContext {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.parameters = new mona_dish_1.Config({});
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.RequestContext = RequestContext;
|
|
11
|
+
//# sourceMappingURL=RequestContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RequestContext.js","sourceRoot":"","sources":["../../../src/main/typescript/impl/xhrCore/RequestContext.ts"],"names":[],"mappings":";;;AAAA,yCAAqC;AAErC,MAAa,cAAc;IAA3B;QAGI,eAAU,GAAW,IAAI,kBAAM,CAAC,EAAE,CAAC,CAAC;IAUxC,CAAC;CAAA;AAbD,wCAaC"}
|