jsf.js_next_gen 4.0.1-beta.9 → 4.0.2-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/dist/window/faces-development.js +12 -2
- 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 +12 -2
- 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 +1 -1
- package/src/main/typescript/impl/util/HiddenInputBuilder.ts +2 -2
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +11 -0
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +22 -0
- package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +2 -1
- package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +45 -0
- package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +3 -3
- package/target/impl/util/HiddenInputBuilder.js +2 -2
- package/target/impl/util/HiddenInputBuilder.js.map +1 -1
- package/target/impl/xhrCore/XhrRequest.js +10 -0
- package/target/impl/xhrCore/XhrRequest.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/StandardInits.js +20 -0
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
- package/target/test/xhrCore/RequestParamsTest.spec.js +2 -1
- package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestTest.spec.js +36 -0
- package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest.spec.js +3 -3
- package/target/AssocArray.js +0 -281
- package/target/AssocArray.js.map +0 -1
- package/target/Config.js +0 -235
- package/target/Config.js.map +0 -1
- package/target/CryptoExtensions.js +0 -112
- package/target/CryptoExtensions.js.map +0 -1
- package/target/DomQuery.js +0 -1963
- package/target/DomQuery.js.map +0 -1
- package/target/Es2019Array.js +0 -117
- package/target/Es2019Array.js.map +0 -1
- package/target/Global.js +0 -38
- package/target/Global.js.map +0 -1
- package/target/IDomQuery.js +0 -3
- package/target/IDomQuery.js.map +0 -1
- package/target/Lang.js +0 -183
- package/target/Lang.js.map +0 -1
- package/target/Messaging.js +0 -645
- package/target/Messaging.js.map +0 -1
- package/target/Monad.js +0 -330
- package/target/Monad.js.map +0 -1
- package/target/Promise.js +0 -296
- package/target/Promise.js.map +0 -1
- package/target/PromiseShim.js +0 -30
- package/target/PromiseShim.js.map +0 -1
- package/target/SourcesCollectors.js +0 -444
- package/target/SourcesCollectors.js.map +0 -1
- package/target/Stream.js +0 -562
- package/target/Stream.js.map +0 -1
- package/target/TagBuilder.js +0 -178
- package/target/TagBuilder.js.map +0 -1
- package/target/XmlQuery.js +0 -84
- package/target/XmlQuery.js.map +0 -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/core/Context.js +0 -10
- package/target/impl/core/Context.js.map +0 -1
- package/target/impl/util/AsyncQueue.js +0 -109
- package/target/impl/util/AsyncQueue.js.map +0 -1
- package/target/impl/util/HiddenElementBuilder.js +0 -7
- package/target/impl/util/HiddenElementBuilder.js.map +0 -1
- package/target/impl/util/IAsyncRunnable.js +0 -27
- package/target/impl/util/IAsyncRunnable.js.map +0 -1
- package/target/impl/util/URLCodec.js +0 -77
- package/target/impl/util/URLCodec.js.map +0 -1
- package/target/impl/xhrCore/RequestContext.js +0 -11
- package/target/impl/xhrCore/RequestContext.js.map +0 -1
- package/target/impl/xhrCore/XhrQueHandler.js +0 -11
- package/target/impl/xhrCore/XhrQueHandler.js.map +0 -1
- package/target/impl/xhrCore/XhrQueueController.js +0 -62
- package/target/impl/xhrCore/XhrQueueController.js.map +0 -1
- package/target/index.js +0 -80
- package/target/index.js.map +0 -1
- package/target/index_core.js +0 -76
- package/target/index_core.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/ExtendedArrayTest.spec.js +0 -76
- package/target/test/frameworkBase/_ext/monadish/ExtendedArrayTest.spec.js.map +0 -1
- package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js +0 -178
- package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js.map +0 -1
- package/target/test/myfaces/OnLoadSpec.js +0 -57
- package/target/test/myfaces/OnLoadSpec.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 -3559
- 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
- package/target/types/main/typescript/AssocArray.d.ts +0 -86
- package/target/types/main/typescript/Config.d.ts +0 -94
- package/target/types/main/typescript/CryptoExtensions.d.ts +0 -87
- package/target/types/main/typescript/DomQuery.d.ts +0 -587
- package/target/types/main/typescript/Es2019Array.d.ts +0 -30
- package/target/types/main/typescript/Global.d.ts +0 -23
- package/target/types/main/typescript/IDomQuery.d.ts +0 -480
- package/target/types/main/typescript/Lang.d.ts +0 -97
- package/target/types/main/typescript/Messaging.d.ts +0 -285
- package/target/types/main/typescript/Monad.d.ts +0 -161
- package/target/types/main/typescript/Promise.d.ts +0 -58
- package/target/types/main/typescript/PromiseShim.d.ts +0 -22
- package/target/types/main/typescript/SourcesCollectors.d.ts +0 -280
- package/target/types/main/typescript/Stream.d.ts +0 -284
- package/target/types/main/typescript/TagBuilder.d.ts +0 -50
- package/target/types/main/typescript/XmlQuery.d.ts +0 -31
- package/target/types/main/typescript/api/_api.d.ts +0 -182
- package/target/types/main/typescript/api/faces.d.ts +0 -17
- package/target/types/main/typescript/api/jsf.d.ts +0 -17
- package/target/types/main/typescript/impl/AjaxImpl.d.ts +0 -164
- package/target/types/main/typescript/impl/PushImpl.d.ts +0 -38
- package/target/types/main/typescript/impl/core/Const.d.ts +0 -138
- package/target/types/main/typescript/impl/core/ImplTypes.d.ts +0 -16
- package/target/types/main/typescript/impl/i18n/Messages.d.ts +0 -102
- package/target/types/main/typescript/impl/util/Assertions.d.ts +0 -46
- package/target/types/main/typescript/impl/util/AsyncRunnable.d.ts +0 -112
- package/target/types/main/typescript/impl/util/ExtDomQuery.d.ts +0 -100
- package/target/types/main/typescript/impl/util/FileUtils.d.ts +0 -25
- package/target/types/main/typescript/impl/util/HiddenInputBuilder.d.ts +0 -37
- package/target/types/main/typescript/impl/util/IListener.d.ts +0 -18
- package/target/types/main/typescript/impl/util/Lang.d.ts +0 -138
- package/target/types/main/typescript/impl/util/XhrQueueController.d.ts +0 -51
- package/target/types/main/typescript/impl/xhrCore/ErrorData.d.ts +0 -37
- package/target/types/main/typescript/impl/xhrCore/EventData.d.ts +0 -25
- package/target/types/main/typescript/impl/xhrCore/IResponseProcessor.d.ts +0 -136
- package/target/types/main/typescript/impl/xhrCore/RequestDataResolver.d.ts +0 -84
- package/target/types/main/typescript/impl/xhrCore/ResonseDataResolver.d.ts +0 -60
- package/target/types/main/typescript/impl/xhrCore/Response.d.ts +0 -29
- package/target/types/main/typescript/impl/xhrCore/ResponseProcessor.d.ts +0 -208
- package/target/types/main/typescript/impl/xhrCore/XhrFormData.d.ts +0 -83
- package/target/types/main/typescript/impl/xhrCore/XhrRequest.d.ts +0 -102
- package/target/types/main/typescript/index.d.ts +0 -34
- package/target/types/main/typescript/index_core.d.ts +0 -29
- package/target/types/main/typescript/myfaces/OamSubmit.d.ts +0 -53
- package/target/types/main/typescript/test/frameworkBase/LangTest.spec.d.ts +0 -1
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.d.ts +0 -1
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.d.ts +0 -39
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.d.ts +0 -0
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.d.ts +0 -1
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.d.ts +0 -1
- package/target/types/main/typescript/test/frameworkBase/_ext/shared/StandardInits.d.ts +0 -63
- package/target/types/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.d.ts +0 -23
- package/target/types/main/typescript/test/impl/ImplTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/impl/ImplTest_23.spec.d.ts +0 -16
- package/target/types/main/typescript/test/impl/SeparatorCharsTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/myfaces/OamSubmit.spec.d.ts +0 -16
- package/target/types/main/typescript/test/myfaces/OnLoad.spec.d.ts +0 -16
- package/target/types/main/typescript/test/queue/AsynchronousProbe.d.ts +0 -38
- package/target/types/main/typescript/test/queue/AsynchronousQueueTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/xhrCore/ClientWindow.spec.d.ts +0 -1
- package/target/types/main/typescript/test/xhrCore/ErrorChainTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/xhrCore/EventTests.spec.d.ts +0 -16
- package/target/types/main/typescript/test/xhrCore/FakeWebsocket.d.ts +0 -24
- package/target/types/main/typescript/test/xhrCore/FileUploadTest.spec.d.ts +0 -1
- package/target/types/main/typescript/test/xhrCore/NamespacesRequestTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/xhrCore/OamSubmitTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/xhrCore/RequestParamsTest.spec.d.ts +0 -1
- package/target/types/main/typescript/test/xhrCore/RequestTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/xhrCore/RequestTest_23.spec.d.ts +0 -16
- package/target/types/main/typescript/test/xhrCore/ResponseTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/xhrCore/ResponseTest23.spec.d.ts +0 -16
- package/target/types/main/typescript/test/xhrCore/ShadowDomTest.spec.d.ts +0 -16
- package/target/types/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.d.ts +0 -1
- package/target/types/main/typescript/test/xhrCore/WebsocketTest.d.ts +0 -1
- package/target/types/main/typescript/test/xhrCore/XhrFormDataTest.spec.d.ts +0 -16
- package/target/types/test/typescript/AssocArrayTest.spec.d.ts +0 -1
- package/target/types/test/typescript/DomQueryTest.spec.d.ts +0 -1
- package/target/types/test/typescript/ExtendedArrayTest.spec.d.ts +0 -1
- package/target/types/test/typescript/LangTest.spec.d.ts +0 -1
- package/target/types/test/typescript/MappingProbes.d.ts +0 -24
- package/target/types/test/typescript/MappingTest.spec.d.ts +0 -1
- package/target/types/test/typescript/MessagingTest.spec.d.ts +0 -1
- package/target/types/test/typescript/MonadTest.spec.d.ts +0 -16
- package/target/types/test/typescript/PromiseTest.spec.d.ts +0 -1
- package/target/types/test/typescript/StreamTest.spec.d.ts +0 -1
- package/target/types/test/typescript/XmlQueryTest.spec.d.ts +0 -1
- package/target/types/test/typescript/markups/tobago-with-header.d.ts +0 -1
- package/target/types/test/typescript/markups/tobago-without-header.d.ts +0 -1
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
2
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
3
|
-
* this work for additional information regarding copyright ownership.
|
|
4
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
5
|
-
* (the "License"); you may not use this file except in compliance with
|
|
6
|
-
* the License. You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export declare class Messages {
|
|
17
|
-
MSG_TEST: string;
|
|
18
|
-
/** @constant */
|
|
19
|
-
MSG_DEV_MODE: string;
|
|
20
|
-
/** @constant */
|
|
21
|
-
MSG_AFFECTED_CLASS: string;
|
|
22
|
-
/** @constant */
|
|
23
|
-
MSG_AFFECTED_METHOD: string;
|
|
24
|
-
/** @constant */
|
|
25
|
-
MSG_ERROR_NAME: string;
|
|
26
|
-
/** @constant */
|
|
27
|
-
MSG_ERROR_MESSAGE: string;
|
|
28
|
-
/** @constant */
|
|
29
|
-
MSG_SERVER_ERROR_NAME: string;
|
|
30
|
-
/** @constant */
|
|
31
|
-
MSG_ERROR_DESC: string;
|
|
32
|
-
/** @constant */
|
|
33
|
-
MSG_ERROR_NO: string;
|
|
34
|
-
/** @constant */
|
|
35
|
-
MSG_ERROR_LINENO: string;
|
|
36
|
-
/** @constant */
|
|
37
|
-
ERR_FORM: string;
|
|
38
|
-
/** @constant */
|
|
39
|
-
ERR_VIEWSTATE: string;
|
|
40
|
-
/** @constant */
|
|
41
|
-
ERR_TRANSPORT: string;
|
|
42
|
-
/** @constant */
|
|
43
|
-
ERR_EVT_PASS: string;
|
|
44
|
-
/** @constant */
|
|
45
|
-
ERR_CONSTRUCT: string;
|
|
46
|
-
/** @constant */
|
|
47
|
-
ERR_MALFORMEDXML: string;
|
|
48
|
-
/** @constant */
|
|
49
|
-
ERR_SOURCE_FUNC: string;
|
|
50
|
-
/** @constant */
|
|
51
|
-
ERR_EV_OR_UNKNOWN: string;
|
|
52
|
-
/** @constant */
|
|
53
|
-
ERR_SOURCE_NOSTR: string;
|
|
54
|
-
/** @constant */
|
|
55
|
-
ERR_SOURCE_DEF_NULL: string;
|
|
56
|
-
/** @constant */
|
|
57
|
-
ERR_MUST_STRING: string;
|
|
58
|
-
/** @constant */
|
|
59
|
-
ERR_REF_OR_ID: string;
|
|
60
|
-
/** @constant */
|
|
61
|
-
ERR_PARAM_GENERIC: string;
|
|
62
|
-
/** @constant */
|
|
63
|
-
ERR_PARAM_STR: string;
|
|
64
|
-
/** @constant */
|
|
65
|
-
ERR_PARAM_STR_RE: string;
|
|
66
|
-
/** @constant */
|
|
67
|
-
ERR_PARAM_MIXMAPS: string;
|
|
68
|
-
/** @constant */
|
|
69
|
-
ERR_MUST_BE_PROVIDED: string;
|
|
70
|
-
/** @constant */
|
|
71
|
-
ERR_MUST_BE_PROVIDED1: string;
|
|
72
|
-
/** @constant */
|
|
73
|
-
ERR_REPLACE_EL: string;
|
|
74
|
-
/** @constant */
|
|
75
|
-
ERR_EMPTY_RESPONSE: string;
|
|
76
|
-
/** @constant */
|
|
77
|
-
ERR_ITEM_ID_NOTFOUND: string;
|
|
78
|
-
/** @constant */
|
|
79
|
-
ERR_PPR_IDREQ: string;
|
|
80
|
-
/** @constant */
|
|
81
|
-
ERR_PPR_INSERTBEFID: string;
|
|
82
|
-
/** @constant */
|
|
83
|
-
ERR_PPR_INSERTBEFID_1: string;
|
|
84
|
-
/** @constant */
|
|
85
|
-
ERR_PPR_INSERTBEFID_2: string;
|
|
86
|
-
/** @constant */
|
|
87
|
-
ERR_PPR_DELID: string;
|
|
88
|
-
/** @constant */
|
|
89
|
-
ERR_PPR_UNKNOWNCID: string;
|
|
90
|
-
/** @constant */
|
|
91
|
-
ERR_NO_VIEWROOTATTR: string;
|
|
92
|
-
/** @constant */
|
|
93
|
-
ERR_NO_HEADATTR: string;
|
|
94
|
-
/** @constant */
|
|
95
|
-
ERR_RED_URL: string;
|
|
96
|
-
/** @constant */
|
|
97
|
-
ERR_REQ_FAILED_UNKNOWN: string;
|
|
98
|
-
/** @constant */
|
|
99
|
-
ERR_REQU_FAILED: string;
|
|
100
|
-
/** @constant */
|
|
101
|
-
UNKNOWN: string;
|
|
102
|
-
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
2
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
3
|
-
* this work for additional information regarding copyright ownership.
|
|
4
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
5
|
-
* (the "License"); you may not use this file except in compliance with
|
|
6
|
-
* the License. You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Config, XMLQuery } from "mona-dish";
|
|
17
|
-
import { DQ } from "mona-dish";
|
|
18
|
-
/**
|
|
19
|
-
* a set of internal code assertions
|
|
20
|
-
* which raise an error
|
|
21
|
-
*
|
|
22
|
-
*/
|
|
23
|
-
export declare module Assertions {
|
|
24
|
-
function assertRequestIntegrity(options: Config, elem: DQ): void | never;
|
|
25
|
-
function assertUrlExists(node: XMLQuery): void | never;
|
|
26
|
-
/**
|
|
27
|
-
* checks the xml for various issues which can occur
|
|
28
|
-
* and prevent a proper processing
|
|
29
|
-
*/
|
|
30
|
-
function assertValidXMLResponse(responseXML: XMLQuery): void | never;
|
|
31
|
-
/**
|
|
32
|
-
* internal helper which raises an error in the
|
|
33
|
-
* format we need for further processing
|
|
34
|
-
*
|
|
35
|
-
* @param error
|
|
36
|
-
* @param message the message
|
|
37
|
-
* @param caller
|
|
38
|
-
* @param title the title of the error (optional)
|
|
39
|
-
* @param name the name of the error (optional)
|
|
40
|
-
*/
|
|
41
|
-
function raiseError(error: any, message: string, caller?: string, title?: string, name?: string): Error;
|
|
42
|
-
function assert(value: any, msg?: string, caller?: string, title?: string): asserts value;
|
|
43
|
-
function assertType(value: any, theType: any, msg?: string, caller?: string, title?: string): asserts value;
|
|
44
|
-
function assertFunction(value: any, msg?: string, caller?: string, title?: string): asserts value is Function;
|
|
45
|
-
function assertDelay(value: any): void;
|
|
46
|
-
}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
2
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
3
|
-
* this work for additional information regarding copyright ownership.
|
|
4
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
5
|
-
* (the "License"); you may not use this file except in compliance with
|
|
6
|
-
* the License. You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Asynchronous queue member for our asynchronous queue
|
|
18
|
-
* Ever object in the asynchronous queue needs to implement this interface
|
|
19
|
-
*
|
|
20
|
-
* the usage should be similar as Promise. from the outside.
|
|
21
|
-
* but with a dedicated start point. The problem why we cannot use
|
|
22
|
-
* promises here, is mostly related to the needed cancel functionality
|
|
23
|
-
* and that the queue expects a runnable as entry.
|
|
24
|
-
*
|
|
25
|
-
* from the implementation side it is mostly registering callbacks
|
|
26
|
-
* and calling them at the appropriate time.
|
|
27
|
-
*/
|
|
28
|
-
export interface IAsyncRunnable<T> {
|
|
29
|
-
/**
|
|
30
|
-
* starts the runnable
|
|
31
|
-
*/
|
|
32
|
-
start(): any;
|
|
33
|
-
/**
|
|
34
|
-
* cancel the current ongoing op if possible
|
|
35
|
-
*/
|
|
36
|
-
cancel(): any;
|
|
37
|
-
/**
|
|
38
|
-
* callback for then functionality
|
|
39
|
-
* triggered when the async run is complete
|
|
40
|
-
*
|
|
41
|
-
* the async runnable must register the passed function
|
|
42
|
-
* and then triggers all the registered then functions
|
|
43
|
-
* when it is complete
|
|
44
|
-
*
|
|
45
|
-
* @param func the then functor
|
|
46
|
-
*/
|
|
47
|
-
then(func: (data: any) => any): IAsyncRunnable<T>;
|
|
48
|
-
/**
|
|
49
|
-
* callback for catch functionality
|
|
50
|
-
* triggered when the async run is complete
|
|
51
|
-
*
|
|
52
|
-
* the async runnable must register the passed function
|
|
53
|
-
* and then triggers all the registered catch handlers
|
|
54
|
-
* when an error has occurred
|
|
55
|
-
*
|
|
56
|
-
* @param func
|
|
57
|
-
*/
|
|
58
|
-
catch(func: (data: any) => any): IAsyncRunnable<T>;
|
|
59
|
-
/**
|
|
60
|
-
* finally called when all then and catches are performed
|
|
61
|
-
* same this is a register function
|
|
62
|
-
* and once the finally time for the promise has
|
|
63
|
-
* come the finally functions must be performed
|
|
64
|
-
*/
|
|
65
|
-
finally(func: () => void): IAsyncRunnable<T>;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* pretty much the same as cancellable Promise, but given
|
|
69
|
-
* we do not have that on browser level yet this is sort
|
|
70
|
-
* of a non - intrusive Shim!
|
|
71
|
-
*/
|
|
72
|
-
export declare abstract class AsyncRunnable<T> implements IAsyncRunnable<T> {
|
|
73
|
-
/**
|
|
74
|
-
* helper support so that we do not have to drag in Promise shims
|
|
75
|
-
*/
|
|
76
|
-
private catchFunctions;
|
|
77
|
-
private thenFunctions;
|
|
78
|
-
/**
|
|
79
|
-
* cancel the run of the runnable (which then depending on the implementation
|
|
80
|
-
* either triggers indirectly resolve or reject)
|
|
81
|
-
*/
|
|
82
|
-
abstract cancel(): void;
|
|
83
|
-
/**
|
|
84
|
-
* extended functionality start to trigger the runnable
|
|
85
|
-
*/
|
|
86
|
-
abstract start(): void;
|
|
87
|
-
/**
|
|
88
|
-
* resolve handler function which calls the then chain
|
|
89
|
-
* and after that finally
|
|
90
|
-
* @param data
|
|
91
|
-
*/
|
|
92
|
-
resolve(data: any): void;
|
|
93
|
-
/**
|
|
94
|
-
* reject handler function which triggers the catch chain
|
|
95
|
-
* @param data
|
|
96
|
-
*/
|
|
97
|
-
reject(data: any): void;
|
|
98
|
-
/**
|
|
99
|
-
* register a catch functor
|
|
100
|
-
* @param func the functor for the catch monad
|
|
101
|
-
*/
|
|
102
|
-
catch(func: (data: any) => any): IAsyncRunnable<T>;
|
|
103
|
-
/**
|
|
104
|
-
* registers a finally functor
|
|
105
|
-
* @param func the functor for the finally handling chanin
|
|
106
|
-
*/
|
|
107
|
-
finally(func: () => void): IAsyncRunnable<T>;
|
|
108
|
-
/**
|
|
109
|
-
* @param func then functor similar to promise
|
|
110
|
-
*/
|
|
111
|
-
then(func: (data: any) => any): IAsyncRunnable<T>;
|
|
112
|
-
}
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
2
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
3
|
-
* this work for additional information regarding copyright ownership.
|
|
4
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
5
|
-
* (the "License"); you may not use this file except in compliance with
|
|
6
|
-
* the License. You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Config, IValueHolder, Optional, DomQuery, DQ } from "mona-dish";
|
|
17
|
-
/**
|
|
18
|
-
* Extension which adds implementation specific
|
|
19
|
-
* meta-data to our dom query
|
|
20
|
-
*
|
|
21
|
-
* Usage
|
|
22
|
-
* el = new ExtDQ(oldReference)
|
|
23
|
-
* nonce = el.nonce
|
|
24
|
-
* windowId = el.getWindowId
|
|
25
|
-
*/
|
|
26
|
-
export declare class ExtDomQuery extends DQ {
|
|
27
|
-
static get windowId(): string;
|
|
28
|
-
static get nonce(): string;
|
|
29
|
-
get windowId(): string | null;
|
|
30
|
-
get nonce(): string | null;
|
|
31
|
-
static searchJsfJsFor(item: RegExp): Optional<String>;
|
|
32
|
-
/**
|
|
33
|
-
* searches the embedded faces.js for items like separator char etc.
|
|
34
|
-
* expects a match as variable under position 1 in the result match
|
|
35
|
-
* @param regExp
|
|
36
|
-
*/
|
|
37
|
-
searchJsfJsFor(regExp: RegExp): Optional<string>;
|
|
38
|
-
globalEval(code: string, nonce?: string): DQ;
|
|
39
|
-
globalEvalSticky(code: string, nonce?: string): DQ;
|
|
40
|
-
/**
|
|
41
|
-
* decorated run scripts which takes our jsf extensions into consideration
|
|
42
|
-
* (standard DomQuery will let you pass anything)
|
|
43
|
-
* @param sticky if set to true the internally generated element for the script is left in the dom
|
|
44
|
-
* @param whiteListed
|
|
45
|
-
*/
|
|
46
|
-
runScripts(sticky?: boolean, whiteListed?: (src: string) => boolean): DomQuery;
|
|
47
|
-
/**
|
|
48
|
-
* adds the elements in this ExtDomQuery to the head
|
|
49
|
-
*
|
|
50
|
-
* @param suppressDoubleIncludes checks for existing elements in the head before running the insert
|
|
51
|
-
*/
|
|
52
|
-
runHeadInserts(suppressDoubleIncludes?: boolean): void;
|
|
53
|
-
/**
|
|
54
|
-
* byId producer
|
|
55
|
-
*
|
|
56
|
-
* @param selector id
|
|
57
|
-
* @param deep whether the search should go into embedded shadow dom elements
|
|
58
|
-
* @return a DomQuery containing the found elements
|
|
59
|
-
*/
|
|
60
|
-
static byId(selector: string | DomQuery | Element, deep?: boolean): ExtDomQuery;
|
|
61
|
-
private extractNonce;
|
|
62
|
-
filter(func: (item: DomQuery) => boolean): ExtDomQuery;
|
|
63
|
-
}
|
|
64
|
-
export declare const ExtDQ: typeof ExtDomQuery;
|
|
65
|
-
/**
|
|
66
|
-
* in order to reduce the number of interception points for the fallbacks we add
|
|
67
|
-
* the namespace remapping straight to our config accessors
|
|
68
|
-
*/
|
|
69
|
-
export declare class ExtConfig extends Config {
|
|
70
|
-
$nspEnabled: boolean;
|
|
71
|
-
constructor(root: any);
|
|
72
|
-
assignIf(condition: boolean, ...accessPath: any[]): IValueHolder<any>;
|
|
73
|
-
assign(...accessPath: any[]): IValueHolder<any>;
|
|
74
|
-
append(...accessPath: any[]): IValueHolder<any>;
|
|
75
|
-
appendIf(condition: boolean, ...accessPath: any[]): IValueHolder<any>;
|
|
76
|
-
getIf(...accessPath: any[]): Config;
|
|
77
|
-
get(defaultVal: any): Config;
|
|
78
|
-
delete(key: string): Config;
|
|
79
|
-
/**
|
|
80
|
-
* creates a config from an initial value or null
|
|
81
|
-
* @param value
|
|
82
|
-
*/
|
|
83
|
-
static fromNullable<T>(value?: T | null): Config;
|
|
84
|
-
protected getClass(): any;
|
|
85
|
-
/**
|
|
86
|
-
* shallow copy getter, copies only the first level, references the deeper nodes
|
|
87
|
-
* in a shared manner
|
|
88
|
-
*/
|
|
89
|
-
protected shallowCopy$(): Config;
|
|
90
|
-
/**
|
|
91
|
-
* deep copy, copies all config nodes
|
|
92
|
-
*/
|
|
93
|
-
get deepCopy(): Config;
|
|
94
|
-
/**
|
|
95
|
-
* helper to remap the namespaces of an array of access paths
|
|
96
|
-
* @param accessPath the access paths to be remapped
|
|
97
|
-
* @private returns an array of access paths with version remapped namespaces
|
|
98
|
-
*/
|
|
99
|
-
private remap;
|
|
100
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Config, DomQuery, DQ } from "mona-dish";
|
|
2
|
-
/**
|
|
3
|
-
* encodes a given form data into a url encoded string
|
|
4
|
-
* @param formData the form data config object
|
|
5
|
-
* @param paramsMapper the params mapper
|
|
6
|
-
* @param defaultStr a default string if nothing comes out of it
|
|
7
|
-
*/
|
|
8
|
-
export declare function encodeFormData(formData: Config, paramsMapper?: (inStr: any, inVal: any) => any[], defaultStr?: string): string;
|
|
9
|
-
/**
|
|
10
|
-
* splits and decodes encoded values into strings containing of key=value
|
|
11
|
-
* @param encoded encoded string
|
|
12
|
-
*/
|
|
13
|
-
export declare function decodeEncodedValues(encoded: string): string[][];
|
|
14
|
-
/**
|
|
15
|
-
* gets all the input files and their corresponding file objects
|
|
16
|
-
* @param dataSource
|
|
17
|
-
*/
|
|
18
|
-
export declare function resolveFiles(dataSource: DQ): [string, File][];
|
|
19
|
-
export declare function fixEmptyParameters(keyVal: any[]): [string, any];
|
|
20
|
-
/**
|
|
21
|
-
* gets all the inputs under the form parentItem
|
|
22
|
-
* as array
|
|
23
|
-
* @param parentItem
|
|
24
|
-
*/
|
|
25
|
-
export declare function getFormInputsAsArr(parentItem: DomQuery): string[][] | [string, File][];
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
2
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
3
|
-
* this work for additional information regarding copyright ownership.
|
|
4
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
5
|
-
* (the "License"); you may not use this file except in compliance with
|
|
6
|
-
* the License. You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
import { DomQuery } from "mona-dish";
|
|
18
|
-
/**
|
|
19
|
-
* Builder for hidden inputs.
|
|
20
|
-
* ATM only ViewState and Client window
|
|
21
|
-
* are supported (per spec)
|
|
22
|
-
*
|
|
23
|
-
* Improves readability in the response processor!
|
|
24
|
-
*/
|
|
25
|
-
export declare class HiddenInputBuilder {
|
|
26
|
-
private selector;
|
|
27
|
-
private namingContainerId?;
|
|
28
|
-
private parent?;
|
|
29
|
-
private namedViewRoot;
|
|
30
|
-
private readonly name;
|
|
31
|
-
private readonly template;
|
|
32
|
-
constructor(selector: string);
|
|
33
|
-
withNamingContainerId(namingContainer: string): HiddenInputBuilder;
|
|
34
|
-
withParent(parent: DomQuery): HiddenInputBuilder;
|
|
35
|
-
withNamedViewRoot(namedViewRoot: boolean): HiddenInputBuilder;
|
|
36
|
-
build(): DomQuery;
|
|
37
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
2
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
3
|
-
* this work for additional information regarding copyright ownership.
|
|
4
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
5
|
-
* (the "License"); you may not use this file except in compliance with
|
|
6
|
-
* the License. You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
export interface IListener<T> {
|
|
17
|
-
(data: T): void;
|
|
18
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
2
|
-
* contributor license agreements. See the NOTICE file distributed with
|
|
3
|
-
* this work for additional information regarding copyright ownership.
|
|
4
|
-
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
5
|
-
* (the "License"); you may not use this file except in compliance with
|
|
6
|
-
* the License. You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*
|
|
16
|
-
*/
|
|
17
|
-
import { Config, Optional, DQ } from "mona-dish";
|
|
18
|
-
export declare module ExtLang {
|
|
19
|
-
function getLanguage(): string;
|
|
20
|
-
/**
|
|
21
|
-
* helper function to safely resolve anything
|
|
22
|
-
* this is not an elvis operator, it resolves
|
|
23
|
-
* a value without exception in a tree and if
|
|
24
|
-
* it is not resolvable then an optional of
|
|
25
|
-
* a default value is restored or Optional\.empty
|
|
26
|
-
* if none is given
|
|
27
|
-
*
|
|
28
|
-
* usage
|
|
29
|
-
* <code>
|
|
30
|
-
* let var: Optional<string> = saveResolve(() => a.b.c.d.e, "foobaz")
|
|
31
|
-
* </code>
|
|
32
|
-
*
|
|
33
|
-
* @param resolverProducer a lambda which can produce the value
|
|
34
|
-
* @param defaultValue an optional default value if the producer fails to produce anything
|
|
35
|
-
* @returns an Optional of the produced value
|
|
36
|
-
*/
|
|
37
|
-
function failSaveResolve<T>(resolverProducer: () => T, defaultValue?: T): Optional<T>;
|
|
38
|
-
/**
|
|
39
|
-
* under some conditions it makes sense to swallow errors and return a default value in the error case
|
|
40
|
-
* classical example the optional resolution of values in a chain (thankfully now covered by Typescript itself)
|
|
41
|
-
* another example which we have in our system is that some operations fail only under test due to test framework
|
|
42
|
-
* limitations while they cannot fail in the real world.
|
|
43
|
-
*
|
|
44
|
-
* @param resolverProducer a producer function which produces a value in the non error case
|
|
45
|
-
* @param defaultValue the default value in case of a fail of the function
|
|
46
|
-
*/
|
|
47
|
-
function failSaveExecute<T>(resolverProducer: () => any, defaultValue?: T): void;
|
|
48
|
-
/**
|
|
49
|
-
* returns a given localized message upon a given key
|
|
50
|
-
* basic java log like templating functionality is included
|
|
51
|
-
*
|
|
52
|
-
* @param key the key for the message
|
|
53
|
-
* @param defaultMessage optional default message if none was found
|
|
54
|
-
*
|
|
55
|
-
* Additionally, you can pass additional arguments, which are used
|
|
56
|
-
* in the same way java log templates use the params
|
|
57
|
-
*
|
|
58
|
-
* @param templateParams the param list to be filled in
|
|
59
|
-
*/
|
|
60
|
-
function getMessage(key: string, defaultMessage?: string, ...templateParams: Array<string>): string;
|
|
61
|
-
/**
|
|
62
|
-
* transforms a key value pair into a string
|
|
63
|
-
* @param key the key
|
|
64
|
-
* @param val the value
|
|
65
|
-
* @param delimiter the delimiter
|
|
66
|
-
*/
|
|
67
|
-
function keyValToStr(key: string, val: string, delimiter?: string): string;
|
|
68
|
-
/**
|
|
69
|
-
* creates an exception with additional internal parameters
|
|
70
|
-
* for extra information
|
|
71
|
-
*
|
|
72
|
-
* @param error
|
|
73
|
-
* @param title the exception title
|
|
74
|
-
* @param name the exception name
|
|
75
|
-
* @param callerCls the caller class
|
|
76
|
-
* @param callFunc the caller function
|
|
77
|
-
* @param message the message for the exception
|
|
78
|
-
*/
|
|
79
|
-
function makeException(error: Error, title: string, name: string, callerCls: string, callFunc: string, message: string): Error;
|
|
80
|
-
/**
|
|
81
|
-
* fetches a global config entry
|
|
82
|
-
* @param configName the name of the configuration entry
|
|
83
|
-
* @param defaultValue
|
|
84
|
-
*
|
|
85
|
-
* @return either the config entry or if none is given the default value
|
|
86
|
-
*/
|
|
87
|
-
function getGlobalConfig(configName: string, defaultValue: any): any;
|
|
88
|
-
/**
|
|
89
|
-
* fetches the form in a fuzzy manner depending
|
|
90
|
-
* on an element or event target.
|
|
91
|
-
*
|
|
92
|
-
* The idea is that according to the jsf spec
|
|
93
|
-
* the enclosing form of the issuing element needs to be fetched.
|
|
94
|
-
*
|
|
95
|
-
* This is fine, but since then html5 came into the picture with the form attribute the element
|
|
96
|
-
* can be anywhere referencing its parent form.
|
|
97
|
-
*
|
|
98
|
-
* Also, theoretically you can have the case of an issuing element enclosing a set of forms
|
|
99
|
-
* (not really often used, but theoretically it could be input button allows to embed html for instance)
|
|
100
|
-
*
|
|
101
|
-
* So the idea is not to limit the issuing form determination to the spec case
|
|
102
|
-
* but also cover the theoretical and html5 corner case.
|
|
103
|
-
*
|
|
104
|
-
* @param elem
|
|
105
|
-
* @param event
|
|
106
|
-
*/
|
|
107
|
-
function getForm(elem: Element, event?: Event): DQ | never;
|
|
108
|
-
/**
|
|
109
|
-
* gets the local or global options with local ones having higher priority
|
|
110
|
-
* if no local or global one was found then the default value is given back
|
|
111
|
-
*
|
|
112
|
-
* @param configName the name of the configuration entry
|
|
113
|
-
* @param localOptions the local options root for the configuration myfaces as default marker is added
|
|
114
|
-
* implicitly
|
|
115
|
-
*
|
|
116
|
-
* @param defaultValue
|
|
117
|
-
*
|
|
118
|
-
* @return either the config entry or if none is given the default value
|
|
119
|
-
*/
|
|
120
|
-
function getLocalOrGlobalConfig(localOptions: Config, configName: string, defaultValue: any): any;
|
|
121
|
-
/**
|
|
122
|
-
* expands an associative array into an array of key value tuples
|
|
123
|
-
* @param value
|
|
124
|
-
*/
|
|
125
|
-
function ofAssoc(value: {
|
|
126
|
-
[key: string]: any;
|
|
127
|
-
}): any;
|
|
128
|
-
function collectAssoc(target: any, item: any): any;
|
|
129
|
-
/**
|
|
130
|
-
* a simple debounce function
|
|
131
|
-
* which waits until a timeout is reached and
|
|
132
|
-
* if something comes in in between debounces
|
|
133
|
-
*
|
|
134
|
-
* @param runnable a runnable which should go under debounce control
|
|
135
|
-
* @param timeout a timeout for the debounce window
|
|
136
|
-
*/
|
|
137
|
-
function debounce(key: any, runnable: any, timeout: any): void;
|
|
138
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { IAsyncRunnable } from "./AsyncRunnable";
|
|
2
|
-
/**
|
|
3
|
-
* A simple XHR queue controller
|
|
4
|
-
* following the async op -> next pattern
|
|
5
|
-
* Faces enforces for the XHR handling
|
|
6
|
-
*/
|
|
7
|
-
export declare class XhrQueueController<T extends IAsyncRunnable<any>> {
|
|
8
|
-
queue: any[];
|
|
9
|
-
taskRunning: boolean;
|
|
10
|
-
constructor();
|
|
11
|
-
/**
|
|
12
|
-
* executes or enqueues an element
|
|
13
|
-
* @param runnable the runnable (request) to be enqueued
|
|
14
|
-
* @param timeOut timeout if > 0 which defers the execution
|
|
15
|
-
* until the debounce window for the timeout is closed.
|
|
16
|
-
*/
|
|
17
|
-
enqueue(runnable: T, timeOut?: number): void;
|
|
18
|
-
/**
|
|
19
|
-
* trigger the next element in the queue
|
|
20
|
-
* to be started!
|
|
21
|
-
*/
|
|
22
|
-
next(): void;
|
|
23
|
-
/**
|
|
24
|
-
* clears and resets the queue
|
|
25
|
-
*/
|
|
26
|
-
clear(): void;
|
|
27
|
-
/**
|
|
28
|
-
* true if queue is empty
|
|
29
|
-
*/
|
|
30
|
-
get isEmpty(): boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Enriches the incoming async asyncRunnable
|
|
33
|
-
* with the error and next handling
|
|
34
|
-
* (aka: asyncRunnable is done -> next
|
|
35
|
-
* error -> clear queue
|
|
36
|
-
* @param asyncRunnable the async runnable which needs enrichment
|
|
37
|
-
* @private
|
|
38
|
-
*/
|
|
39
|
-
private enrichRunnable;
|
|
40
|
-
/**
|
|
41
|
-
* alerts the queue that a task is running
|
|
42
|
-
*
|
|
43
|
-
* @private
|
|
44
|
-
*/
|
|
45
|
-
private signalTaskRunning;
|
|
46
|
-
/**
|
|
47
|
-
* updates the task running status according to the current queue
|
|
48
|
-
* @private
|
|
49
|
-
*/
|
|
50
|
-
private updateTaskRunning;
|
|
51
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Config } from "mona-dish";
|
|
2
|
-
import { EventData } from "./EventData";
|
|
3
|
-
export declare enum ErrorType {
|
|
4
|
-
SERVER_ERROR = "serverError",
|
|
5
|
-
HTTP_ERROR = "httpError",
|
|
6
|
-
CLIENT_ERROR = "clientErrror",
|
|
7
|
-
TIMEOUT = "timeout"
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* the spec has a problem of having the error
|
|
11
|
-
* object somewhat underspecified, there is no clear
|
|
12
|
-
* description of the required contents.
|
|
13
|
-
* I want to streamline it with mojarra here
|
|
14
|
-
* hence we are going to move
|
|
15
|
-
* everything into the same attributes,
|
|
16
|
-
* I will add deprecated myfaces backwards compatibility attributes as well
|
|
17
|
-
*/
|
|
18
|
-
export declare class ErrorData extends EventData implements IErrorData {
|
|
19
|
-
type: string;
|
|
20
|
-
source: HTMLElement;
|
|
21
|
-
sourceId: string;
|
|
22
|
-
errorName: string;
|
|
23
|
-
errorMessage: string;
|
|
24
|
-
responseText: string;
|
|
25
|
-
responseXML: any;
|
|
26
|
-
status: string;
|
|
27
|
-
typeDetails: ErrorType;
|
|
28
|
-
serverErrorName: string;
|
|
29
|
-
serverErrorMessage: string;
|
|
30
|
-
message: string;
|
|
31
|
-
constructor(source: string, errorName: string, errorMessage: string, responseText?: string, responseXML?: any, responseCode?: string, status?: string, type?: ErrorType);
|
|
32
|
-
static fromClient(e: Error): ErrorData;
|
|
33
|
-
static fromHttpConnection(source: any, name: string, message: string, responseText: any, responseCode: number, status?: string): ErrorData;
|
|
34
|
-
static fromGeneric(context: Config, errorCode: number, errorType?: ErrorType): ErrorData;
|
|
35
|
-
private static getMsg;
|
|
36
|
-
static fromServerError(context: Config): ErrorData;
|
|
37
|
-
}
|