jsf.js_next_gen 4.0.1-beta.6 → 4.0.1-beta.8
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/docs/assets/style.css +4 -5
- package/dist/window/faces-development.js +43 -54
- 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 +43 -54
- 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 +10 -10
- package/src/main/typescript/impl/AjaxImpl.ts +5 -5
- package/src/main/typescript/impl/util/ExtDomQuery.ts +17 -22
- package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +2 -2
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +86 -0
- package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +53 -0
- package/src/main/typescript/test/frameworkBase/_ext/shared/fixtures/css/bootstrap-icons.css +15 -0
- package/src/main/typescript/test/frameworkBase/_ext/shared/fixtures/css/tobago.css +15 -0
- package/src/main/typescript/test/frameworkBase/_ext/shared/fixtures/js/tobago.js +15 -0
- package/src/main/typescript/test/xhrCore/ErrorChainTest.spec.ts +23 -0
- package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +1 -1
- package/src/main/typescript/test/xhrCore/ResponseTest23.spec.ts +19 -0
- package/target/AssocArray.js +281 -0
- package/target/AssocArray.js.map +1 -0
- package/target/Config.js +235 -0
- package/target/Config.js.map +1 -0
- package/target/CryptoExtensions.js +112 -0
- package/target/CryptoExtensions.js.map +1 -0
- package/target/DomQuery.js +1963 -0
- package/target/DomQuery.js.map +1 -0
- package/target/Es2019Array.js +117 -0
- package/target/Es2019Array.js.map +1 -0
- package/target/Global.js +38 -0
- package/target/Global.js.map +1 -0
- package/target/IDomQuery.js +3 -0
- package/target/IDomQuery.js.map +1 -0
- package/target/Lang.js +183 -0
- package/target/Lang.js.map +1 -0
- package/target/Messaging.js +645 -0
- package/target/Messaging.js.map +1 -0
- package/target/Monad.js +330 -0
- package/target/Monad.js.map +1 -0
- package/target/Promise.js +296 -0
- package/target/Promise.js.map +1 -0
- package/target/PromiseShim.js +30 -0
- package/target/PromiseShim.js.map +1 -0
- package/target/SourcesCollectors.js +444 -0
- package/target/SourcesCollectors.js.map +1 -0
- package/target/Stream.js +562 -0
- package/target/Stream.js.map +1 -0
- package/target/TagBuilder.js +178 -0
- package/target/TagBuilder.js.map +1 -0
- package/target/XmlQuery.js +84 -0
- package/target/XmlQuery.js.map +1 -0
- package/target/impl/AjaxImpl.js +4 -4
- package/target/impl/AjaxImpl.js.map +1 -1
- package/target/impl/util/ExtDomQuery.js +13 -19
- package/target/impl/util/ExtDomQuery.js.map +1 -1
- package/target/impl/xhrCore/RequestDataResolver.js +1 -1
- package/target/impl/xhrCore/RequestDataResolver.js.map +1 -1
- package/target/index.js +80 -0
- package/target/index.js.map +1 -0
- package/target/index_core.js +76 -0
- package/target/index_core.js.map +1 -0
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +1 -1
- package/target/test/frameworkBase/_ext/shared/StandardInits.js +85 -0
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js +53 -1
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
- package/target/test/xhrCore/ErrorChainTest.spec.js +21 -0
- package/target/test/xhrCore/ErrorChainTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest23.spec.js +14 -0
- package/target/test/xhrCore/ResponseTest23.spec.js.map +1 -1
- package/target/types/main/typescript/AssocArray.d.ts +86 -0
- package/target/types/main/typescript/Config.d.ts +94 -0
- package/target/types/main/typescript/CryptoExtensions.d.ts +87 -0
- package/target/types/main/typescript/DomQuery.d.ts +587 -0
- package/target/types/main/typescript/Es2019Array.d.ts +30 -0
- package/target/types/main/typescript/Global.d.ts +23 -0
- package/target/types/main/typescript/IDomQuery.d.ts +480 -0
- package/target/types/main/typescript/Lang.d.ts +97 -0
- package/target/types/main/typescript/Messaging.d.ts +285 -0
- package/target/types/main/typescript/Monad.d.ts +161 -0
- package/target/types/main/typescript/Promise.d.ts +58 -0
- package/target/types/main/typescript/PromiseShim.d.ts +22 -0
- package/target/types/main/typescript/SourcesCollectors.d.ts +280 -0
- package/target/types/main/typescript/Stream.d.ts +284 -0
- package/target/types/main/typescript/TagBuilder.d.ts +50 -0
- package/target/types/main/typescript/XmlQuery.d.ts +31 -0
- package/target/types/main/typescript/api/_api.d.ts +182 -0
- package/target/types/main/typescript/api/faces.d.ts +17 -0
- package/target/types/main/typescript/api/jsf.d.ts +17 -0
- package/target/types/main/typescript/impl/AjaxImpl.d.ts +164 -0
- package/target/types/main/typescript/impl/PushImpl.d.ts +38 -0
- package/target/types/main/typescript/impl/core/Const.d.ts +138 -0
- package/target/types/main/typescript/impl/core/ImplTypes.d.ts +16 -0
- package/target/types/main/typescript/impl/i18n/Messages.d.ts +102 -0
- package/target/types/main/typescript/impl/util/Assertions.d.ts +46 -0
- package/target/types/main/typescript/impl/util/AsyncRunnable.d.ts +112 -0
- package/target/types/main/typescript/impl/util/ExtDomQuery.d.ts +100 -0
- package/target/types/main/typescript/impl/util/FileUtils.d.ts +25 -0
- package/target/types/main/typescript/impl/util/HiddenInputBuilder.d.ts +37 -0
- package/target/types/main/typescript/impl/util/IListener.d.ts +18 -0
- package/target/types/main/typescript/impl/util/Lang.d.ts +138 -0
- package/target/types/main/typescript/impl/util/XhrQueueController.d.ts +51 -0
- package/target/types/main/typescript/impl/xhrCore/ErrorData.d.ts +37 -0
- package/target/types/main/typescript/impl/xhrCore/EventData.d.ts +25 -0
- package/target/types/main/typescript/impl/xhrCore/IResponseProcessor.d.ts +136 -0
- package/target/types/main/typescript/impl/xhrCore/RequestDataResolver.d.ts +84 -0
- package/target/types/main/typescript/impl/xhrCore/ResonseDataResolver.d.ts +60 -0
- package/target/types/main/typescript/impl/xhrCore/Response.d.ts +29 -0
- package/target/types/main/typescript/impl/xhrCore/ResponseProcessor.d.ts +208 -0
- package/target/types/main/typescript/impl/xhrCore/XhrFormData.d.ts +83 -0
- package/target/types/main/typescript/impl/xhrCore/XhrRequest.d.ts +102 -0
- package/target/types/main/typescript/index.d.ts +34 -0
- package/target/types/main/typescript/index_core.d.ts +29 -0
- package/target/types/main/typescript/myfaces/OamSubmit.d.ts +53 -0
- package/target/types/main/typescript/test/frameworkBase/LangTest.spec.d.ts +1 -0
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.d.ts +1 -0
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.d.ts +16 -0
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.d.ts +39 -0
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.d.ts +16 -0
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.d.ts +16 -0
- 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 +1 -0
- package/target/types/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.d.ts +1 -0
- package/target/types/main/typescript/test/frameworkBase/_ext/shared/StandardInits.d.ts +63 -0
- package/target/types/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.d.ts +23 -0
- package/target/types/main/typescript/test/impl/ImplTest.spec.d.ts +16 -0
- package/target/types/main/typescript/test/impl/ImplTest_23.spec.d.ts +16 -0
- package/target/types/main/typescript/test/impl/SeparatorCharsTest.spec.d.ts +16 -0
- package/target/types/main/typescript/test/myfaces/OamSubmit.spec.d.ts +16 -0
- package/target/types/main/typescript/test/myfaces/OnLoad.spec.d.ts +16 -0
- package/target/types/main/typescript/test/queue/AsynchronousProbe.d.ts +38 -0
- package/target/types/main/typescript/test/queue/AsynchronousQueueTest.spec.d.ts +16 -0
- package/target/types/main/typescript/test/xhrCore/ClientWindow.spec.d.ts +1 -0
- package/target/types/main/typescript/test/xhrCore/ErrorChainTest.spec.d.ts +16 -0
- package/target/types/main/typescript/test/xhrCore/EventTests.spec.d.ts +16 -0
- package/target/types/main/typescript/test/xhrCore/FakeWebsocket.d.ts +24 -0
- package/target/types/main/typescript/test/xhrCore/FileUploadTest.spec.d.ts +1 -0
- package/target/types/main/typescript/test/xhrCore/NamespacesRequestTest.spec.d.ts +16 -0
- package/target/types/main/typescript/test/xhrCore/OamSubmitTest.spec.d.ts +16 -0
- package/target/types/main/typescript/test/xhrCore/RequestParamsTest.spec.d.ts +1 -0
- package/target/types/main/typescript/test/xhrCore/RequestTest.spec.d.ts +16 -0
- package/target/types/main/typescript/test/xhrCore/RequestTest_23.spec.d.ts +16 -0
- package/target/types/main/typescript/test/xhrCore/ResponseTest.spec.d.ts +16 -0
- package/target/types/main/typescript/test/xhrCore/ResponseTest23.spec.d.ts +16 -0
- package/target/types/main/typescript/test/xhrCore/ShadowDomTest.spec.d.ts +16 -0
- package/target/types/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.d.ts +1 -0
- package/target/types/main/typescript/test/xhrCore/WebsocketTest.d.ts +1 -0
- package/target/types/main/typescript/test/xhrCore/XhrFormDataTest.spec.d.ts +16 -0
- package/target/types/test/typescript/AssocArrayTest.spec.d.ts +1 -0
- package/target/types/test/typescript/DomQueryTest.spec.d.ts +1 -0
- package/target/types/test/typescript/ExtendedArrayTest.spec.d.ts +1 -0
- package/target/types/test/typescript/LangTest.spec.d.ts +1 -0
- package/target/types/test/typescript/MappingProbes.d.ts +24 -0
- package/target/types/test/typescript/MappingTest.spec.d.ts +1 -0
- package/target/types/test/typescript/MessagingTest.spec.d.ts +1 -0
- package/target/types/test/typescript/MonadTest.spec.d.ts +16 -0
- package/target/types/test/typescript/PromiseTest.spec.d.ts +1 -0
- package/target/types/test/typescript/StreamTest.spec.d.ts +1 -0
- package/target/types/test/typescript/XmlQueryTest.spec.d.ts +1 -0
- package/target/types/test/typescript/markups/tobago-with-header.d.ts +1 -0
- package/target/types/test/typescript/markups/tobago-without-header.d.ts +1 -0
- package/webpack.config.js +1 -1
- package/webpack.config.js.map +1 -1
- package/.nyc_output/09ca9ebc-2305-4357-8db9-48ddfc7dfde2.json +0 -1
- package/.nyc_output/7c496a14-166e-4aa5-85b9-47b22b055ad8.json +0 -1
- package/.nyc_output/processinfo/09ca9ebc-2305-4357-8db9-48ddfc7dfde2.json +0 -1
- package/.nyc_output/processinfo/7c496a14-166e-4aa5-85b9-47b22b055ad8.json +0 -1
- package/.nyc_output/processinfo/index.json +0 -1
- package/src/test.html +0 -75
- package/src/tmp/test.html +0 -16
- package/tmp.xml +0 -36
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { IValueHolder, Optional } from "./Monad";
|
|
2
|
+
export declare const CONFIG_VALUE = "__END_POINT__";
|
|
3
|
+
export declare const CONFIG_ANY = "__ANY_POINT__";
|
|
4
|
+
export type ConfigDef = {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Config, basically an optional wrapper for a json structure
|
|
9
|
+
* (not Side - effect free, since we can alter the internal config state
|
|
10
|
+
* without generating a new config), not sure if we should make it side - effect free
|
|
11
|
+
* since this would swallow a lot of performance and ram
|
|
12
|
+
*/
|
|
13
|
+
export declare class Config extends Optional<any> {
|
|
14
|
+
private configDef?;
|
|
15
|
+
constructor(root: any, configDef?: ConfigDef);
|
|
16
|
+
/**
|
|
17
|
+
* shallow copy getter, copies only the first level, references the deeper nodes
|
|
18
|
+
* in a shared manner
|
|
19
|
+
*/
|
|
20
|
+
get shallowCopy(): Config;
|
|
21
|
+
protected shallowCopy$(): Config;
|
|
22
|
+
/**
|
|
23
|
+
* deep copy, copies all config nodes
|
|
24
|
+
*/
|
|
25
|
+
get deepCopy(): Config;
|
|
26
|
+
protected deepCopy$(): Config;
|
|
27
|
+
/**
|
|
28
|
+
* creates a config from an initial value or null
|
|
29
|
+
* @param value
|
|
30
|
+
*/
|
|
31
|
+
static fromNullable<T>(value?: T | null): Config;
|
|
32
|
+
/**
|
|
33
|
+
* simple merge for the root configs
|
|
34
|
+
*/
|
|
35
|
+
shallowMerge(other: Config, overwrite?: boolean, withAppend?: boolean): void;
|
|
36
|
+
/**
|
|
37
|
+
* assigns a single value as array, or appends it
|
|
38
|
+
* to an existing value mapping a single value to array
|
|
39
|
+
*
|
|
40
|
+
*
|
|
41
|
+
* usage myConfig.append("foobaz").value = "newValue"
|
|
42
|
+
* myConfig.append("foobaz").value = "newValue2"
|
|
43
|
+
*
|
|
44
|
+
* resulting in myConfig.foobaz == ["newValue, newValue2"]
|
|
45
|
+
*
|
|
46
|
+
* @param {string[]} accessPath
|
|
47
|
+
*/
|
|
48
|
+
append(...accessPath: string[]): IValueHolder<any>;
|
|
49
|
+
/**
|
|
50
|
+
* appends to an existing entry (or extends into an array and appends)
|
|
51
|
+
* if the condition is met
|
|
52
|
+
* @param {boolean} condition
|
|
53
|
+
* @param {string[]} accessPath
|
|
54
|
+
*/
|
|
55
|
+
appendIf(condition: boolean, ...accessPath: string[]): IValueHolder<any>;
|
|
56
|
+
/**
|
|
57
|
+
* assigns a new value on the given access path
|
|
58
|
+
* @param accessPath
|
|
59
|
+
*/
|
|
60
|
+
assign(...accessPath: any[]): IValueHolder<any>;
|
|
61
|
+
/**
|
|
62
|
+
* assign a value if the condition is set to true, otherwise skip it
|
|
63
|
+
*
|
|
64
|
+
* @param condition the condition, the access accessPath into the config
|
|
65
|
+
* @param accessPath
|
|
66
|
+
*/
|
|
67
|
+
assignIf(condition: boolean, ...accessPath: Array<any>): IValueHolder<any>;
|
|
68
|
+
/**
|
|
69
|
+
* get if the access path is present (get is reserved as getter with a default, on the current path)
|
|
70
|
+
* TODO will be renamed to something more meaningful and deprecated, the name is ambiguous
|
|
71
|
+
* @param accessPath the access path
|
|
72
|
+
*/
|
|
73
|
+
getIf(...accessPath: Array<string>): Config;
|
|
74
|
+
/**
|
|
75
|
+
* gets the current node and if none is present returns a config with a default value
|
|
76
|
+
* @param defaultVal
|
|
77
|
+
*/
|
|
78
|
+
get(defaultVal: any): Config;
|
|
79
|
+
delete(key: string): Config;
|
|
80
|
+
/**
|
|
81
|
+
* converts the entire config into a json object
|
|
82
|
+
*/
|
|
83
|
+
toJson(): any;
|
|
84
|
+
protected getClass(): any;
|
|
85
|
+
private setVal;
|
|
86
|
+
/**
|
|
87
|
+
* asserts the access path for a semi typed access
|
|
88
|
+
* @param accessPath
|
|
89
|
+
* @private
|
|
90
|
+
*/
|
|
91
|
+
private assertAccessPath;
|
|
92
|
+
private isNoArray;
|
|
93
|
+
private isArray;
|
|
94
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3
|
+
* or more contributor license agreements. See the NOTICE file
|
|
4
|
+
* distributed with this work for additional information
|
|
5
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
6
|
+
* to you under the Apache License, Version 2.0 (the
|
|
7
|
+
* "License"); you may not use this file except in compliance
|
|
8
|
+
* with the License. You may obtain a copy of the License at
|
|
9
|
+
*
|
|
10
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
11
|
+
*
|
|
12
|
+
* Unless required by applicable law or agreed to in writing,
|
|
13
|
+
* software distributed under the License is distributed on an
|
|
14
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
15
|
+
* KIND, either express or implied. See the License for the
|
|
16
|
+
* specific language governing permissions and limitations
|
|
17
|
+
* under the License.
|
|
18
|
+
*/
|
|
19
|
+
import { Crypto, Hash } from "./Messaging";
|
|
20
|
+
/**
|
|
21
|
+
* basic json stringify encryption impl
|
|
22
|
+
* this does not really full encryption except for a standard json stringyfywith an encapsulation json
|
|
23
|
+
*
|
|
24
|
+
* the return value resembles:
|
|
25
|
+
* <pre>
|
|
26
|
+
* {
|
|
27
|
+
* encryptedData: <data as string>
|
|
28
|
+
* }
|
|
29
|
+
* </pre>
|
|
30
|
+
*/
|
|
31
|
+
export declare class JSONCrypto implements Crypto {
|
|
32
|
+
decode(data: any): any;
|
|
33
|
+
encode(data: any): {
|
|
34
|
+
encryptedData: string;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* a class with timeout functionality which blocks decodes after a certain period of time
|
|
39
|
+
* if the message is not decoded by then
|
|
40
|
+
* We use hash as identifier generation after encryption to make sure
|
|
41
|
+
* a trace was possible
|
|
42
|
+
*
|
|
43
|
+
* The idea behind this is to have a generic wrapper which allows messages with dynamic encryption
|
|
44
|
+
* where keys/salts only exist for a certain period of time before expiring!
|
|
45
|
+
* That way someone who implements such a scheme does not have to take care about the bookeeping mechanisms!
|
|
46
|
+
* Or you can use crypto mechanisms which do not have expiring keys and still expire them automatically
|
|
47
|
+
*
|
|
48
|
+
* I will leave it up to the system integrator to provide a rotating crypto class, because this is highly
|
|
49
|
+
* implementation dependent. But it helps to have a wrapper!
|
|
50
|
+
*/
|
|
51
|
+
export declare class ExpiringCrypto implements Crypto {
|
|
52
|
+
private timeout;
|
|
53
|
+
private parentCrypto;
|
|
54
|
+
private hashSum;
|
|
55
|
+
private static MAX_GC_CYCLES;
|
|
56
|
+
private gcCycleCnt;
|
|
57
|
+
private storedMessages;
|
|
58
|
+
private lastCall;
|
|
59
|
+
/**
|
|
60
|
+
* @param timeout timeout in miliseconds until a message is expired
|
|
61
|
+
* @param parentCrypto the embedded decorated crypto algorithm
|
|
62
|
+
* @param hashSum hashshum implementation to generate a hash
|
|
63
|
+
*/
|
|
64
|
+
constructor(timeout: number, parentCrypto: Crypto, hashSum: Hash);
|
|
65
|
+
/**
|
|
66
|
+
* decode implementation with a timeout hook install
|
|
67
|
+
* @param data
|
|
68
|
+
*/
|
|
69
|
+
decode(data: any): any;
|
|
70
|
+
/**
|
|
71
|
+
* trigger function to determine whether the gc needs to cycle again, this is either time or call based
|
|
72
|
+
* the gc itself collects only on expiration dates
|
|
73
|
+
* The idea is to run this operation only occasionally because it is costly
|
|
74
|
+
* We also could have used timeouts etc.. but those would need shutdown/destroy cleanups
|
|
75
|
+
*
|
|
76
|
+
* @param currTime
|
|
77
|
+
* @private
|
|
78
|
+
*/
|
|
79
|
+
private gcLimitReached;
|
|
80
|
+
/**
|
|
81
|
+
* encode with a timeout hook installed
|
|
82
|
+
* calls the encode of the delegated object
|
|
83
|
+
*
|
|
84
|
+
* @param data
|
|
85
|
+
*/
|
|
86
|
+
encode(data: any): any;
|
|
87
|
+
}
|