jsf.js_next_gen 4.0.1-beta.5 → 4.0.1-beta.7
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 +111 -91
- 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 +111 -91
- 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/util/XhrQueueController.ts +3 -17
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +94 -51
- package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +126 -0
- package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +60 -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/myfaces/{OnLoadSpec.ts → OnLoad.spec.ts} +2 -2
- package/src/main/typescript/test/xhrCore/ErrorChainTest.spec.ts +136 -0
- package/src/main/typescript/test/xhrCore/NamespacesRequestTest.spec.ts +9 -12
- package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +1 -1
- package/src/main/typescript/test/xhrCore/ResponseTest23.spec.ts +18 -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/util/XhrQueueController.js +3 -18
- package/target/impl/util/XhrQueueController.js.map +1 -1
- package/target/impl/xhrCore/XhrRequest.js +89 -45
- package/target/impl/xhrCore/XhrRequest.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 +124 -0
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js +57 -1
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
- package/target/test/myfaces/OnLoad.spec.js +57 -0
- package/target/test/myfaces/OnLoad.spec.js.map +1 -0
- package/target/test/myfaces/OnLoadSpec.js +2 -2
- package/target/test/myfaces/OnLoadSpec.js.map +1 -1
- package/target/test/xhrCore/ErrorChainTest.spec.js +156 -0
- package/target/test/xhrCore/ErrorChainTest.spec.js.map +1 -0
- package/target/test/xhrCore/NamespacesRequestTest.spec.js +8 -5
- package/target/test/xhrCore/NamespacesRequestTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest23.spec.js +13 -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
package/target/index.js
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports._Es2019Array = exports.Es2019Array = exports.CONFIG_VALUE = exports.CONFIG_ANY = exports.Config = exports.shallowMerge = exports.simpleShallowMerge = exports.assignIf = exports.assign = exports.ExpiringCrypto = exports.JSONCrypto = exports.NoCrypto = exports.BroadcastChannelBroker = exports.Broker = exports.Message = exports.TagBuilder = exports.QueryFormDataCollector = exports.FormDataCollector = exports.AssocArrayCollector = exports.ConfigCollector = exports.ArrayCollector = exports.QueryFormStringCollector = exports.SequenceDataSource = exports.MultiStreamDatasource = exports.FilteredStreamDatasource = exports.MappedStreamDataSource = exports.ArrayStreamDataSource = exports.FlatMapStreamDataSource = exports.LazyStream = exports.Stream = exports.XQ = exports.XMLQuery = exports.PromiseStatus = exports.CancellablePromise = exports.ValueEmbedder = exports.Optional = exports.Monad = exports.Lang = exports.DQ$ = exports.DQ = exports.DomQueryCollector = exports.ElementAttribute = exports.DomQuery = void 0;
|
|
4
|
+
/*!
|
|
5
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
6
|
+
* or more contributor license agreements. See the NOTICE file
|
|
7
|
+
* distributed with this work for additional information
|
|
8
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
9
|
+
* to you under the Apache License, Version 2.0 (the
|
|
10
|
+
* "License"); you may not use this file except in compliance
|
|
11
|
+
* with the License. You may obtain a copy of the License at
|
|
12
|
+
*
|
|
13
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
14
|
+
*
|
|
15
|
+
* Unless required by applicable law or agreed to in writing,
|
|
16
|
+
* software distributed under the License is distributed on an
|
|
17
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
18
|
+
* KIND, either express or implied. See the License for the
|
|
19
|
+
* specific language governing permissions and limitations
|
|
20
|
+
* under the License.
|
|
21
|
+
*/
|
|
22
|
+
var DomQuery_1 = require("./DomQuery");
|
|
23
|
+
Object.defineProperty(exports, "DomQuery", { enumerable: true, get: function () { return DomQuery_1.DomQuery; } });
|
|
24
|
+
Object.defineProperty(exports, "ElementAttribute", { enumerable: true, get: function () { return DomQuery_1.ElementAttribute; } });
|
|
25
|
+
Object.defineProperty(exports, "DomQueryCollector", { enumerable: true, get: function () { return DomQuery_1.DomQueryCollector; } });
|
|
26
|
+
Object.defineProperty(exports, "DQ", { enumerable: true, get: function () { return DomQuery_1.DQ; } });
|
|
27
|
+
Object.defineProperty(exports, "DQ$", { enumerable: true, get: function () { return DomQuery_1.DQ$; } });
|
|
28
|
+
var Lang_1 = require("./Lang");
|
|
29
|
+
Object.defineProperty(exports, "Lang", { enumerable: true, get: function () { return Lang_1.Lang; } });
|
|
30
|
+
var Monad_1 = require("./Monad");
|
|
31
|
+
Object.defineProperty(exports, "Monad", { enumerable: true, get: function () { return Monad_1.Monad; } });
|
|
32
|
+
Object.defineProperty(exports, "Optional", { enumerable: true, get: function () { return Monad_1.Optional; } });
|
|
33
|
+
Object.defineProperty(exports, "ValueEmbedder", { enumerable: true, get: function () { return Monad_1.ValueEmbedder; } });
|
|
34
|
+
var Promise_1 = require("./Promise");
|
|
35
|
+
Object.defineProperty(exports, "CancellablePromise", { enumerable: true, get: function () { return Promise_1.CancellablePromise; } });
|
|
36
|
+
Object.defineProperty(exports, "PromiseStatus", { enumerable: true, get: function () { return Promise_1.PromiseStatus; } });
|
|
37
|
+
var XmlQuery_1 = require("./XmlQuery");
|
|
38
|
+
Object.defineProperty(exports, "XMLQuery", { enumerable: true, get: function () { return XmlQuery_1.XMLQuery; } });
|
|
39
|
+
Object.defineProperty(exports, "XQ", { enumerable: true, get: function () { return XmlQuery_1.XQ; } });
|
|
40
|
+
var Stream_1 = require("./Stream");
|
|
41
|
+
Object.defineProperty(exports, "Stream", { enumerable: true, get: function () { return Stream_1.Stream; } });
|
|
42
|
+
Object.defineProperty(exports, "LazyStream", { enumerable: true, get: function () { return Stream_1.LazyStream; } });
|
|
43
|
+
Object.defineProperty(exports, "FlatMapStreamDataSource", { enumerable: true, get: function () { return Stream_1.FlatMapStreamDataSource; } });
|
|
44
|
+
var SourcesCollectors_1 = require("./SourcesCollectors");
|
|
45
|
+
Object.defineProperty(exports, "ArrayStreamDataSource", { enumerable: true, get: function () { return SourcesCollectors_1.ArrayStreamDataSource; } });
|
|
46
|
+
Object.defineProperty(exports, "MappedStreamDataSource", { enumerable: true, get: function () { return SourcesCollectors_1.MappedStreamDataSource; } });
|
|
47
|
+
Object.defineProperty(exports, "FilteredStreamDatasource", { enumerable: true, get: function () { return SourcesCollectors_1.FilteredStreamDatasource; } });
|
|
48
|
+
Object.defineProperty(exports, "MultiStreamDatasource", { enumerable: true, get: function () { return SourcesCollectors_1.MultiStreamDatasource; } });
|
|
49
|
+
Object.defineProperty(exports, "SequenceDataSource", { enumerable: true, get: function () { return SourcesCollectors_1.SequenceDataSource; } });
|
|
50
|
+
Object.defineProperty(exports, "QueryFormStringCollector", { enumerable: true, get: function () { return SourcesCollectors_1.QueryFormStringCollector; } });
|
|
51
|
+
Object.defineProperty(exports, "ArrayCollector", { enumerable: true, get: function () { return SourcesCollectors_1.ArrayCollector; } });
|
|
52
|
+
Object.defineProperty(exports, "ConfigCollector", { enumerable: true, get: function () { return SourcesCollectors_1.ConfigCollector; } });
|
|
53
|
+
Object.defineProperty(exports, "AssocArrayCollector", { enumerable: true, get: function () { return SourcesCollectors_1.AssocArrayCollector; } });
|
|
54
|
+
Object.defineProperty(exports, "FormDataCollector", { enumerable: true, get: function () { return SourcesCollectors_1.FormDataCollector; } });
|
|
55
|
+
Object.defineProperty(exports, "QueryFormDataCollector", { enumerable: true, get: function () { return SourcesCollectors_1.QueryFormDataCollector; } });
|
|
56
|
+
var TagBuilder_1 = require("./TagBuilder");
|
|
57
|
+
Object.defineProperty(exports, "TagBuilder", { enumerable: true, get: function () { return TagBuilder_1.TagBuilder; } });
|
|
58
|
+
var Messaging_1 = require("./Messaging");
|
|
59
|
+
Object.defineProperty(exports, "Message", { enumerable: true, get: function () { return Messaging_1.Message; } });
|
|
60
|
+
Object.defineProperty(exports, "Broker", { enumerable: true, get: function () { return Messaging_1.Broker; } });
|
|
61
|
+
Object.defineProperty(exports, "BroadcastChannelBroker", { enumerable: true, get: function () { return Messaging_1.BroadcastChannelBroker; } });
|
|
62
|
+
Object.defineProperty(exports, "NoCrypto", { enumerable: true, get: function () { return Messaging_1.NoCrypto; } });
|
|
63
|
+
var CryptoExtensions_1 = require("./CryptoExtensions");
|
|
64
|
+
Object.defineProperty(exports, "JSONCrypto", { enumerable: true, get: function () { return CryptoExtensions_1.JSONCrypto; } });
|
|
65
|
+
Object.defineProperty(exports, "ExpiringCrypto", { enumerable: true, get: function () { return CryptoExtensions_1.ExpiringCrypto; } });
|
|
66
|
+
var AssocArray_1 = require("./AssocArray");
|
|
67
|
+
Object.defineProperty(exports, "assign", { enumerable: true, get: function () { return AssocArray_1.assign; } });
|
|
68
|
+
Object.defineProperty(exports, "assignIf", { enumerable: true, get: function () { return AssocArray_1.assignIf; } });
|
|
69
|
+
Object.defineProperty(exports, "simpleShallowMerge", { enumerable: true, get: function () { return AssocArray_1.simpleShallowMerge; } });
|
|
70
|
+
Object.defineProperty(exports, "shallowMerge", { enumerable: true, get: function () { return AssocArray_1.shallowMerge; } });
|
|
71
|
+
var Config_1 = require("./Config");
|
|
72
|
+
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return Config_1.Config; } });
|
|
73
|
+
var Config_2 = require("./Config");
|
|
74
|
+
Object.defineProperty(exports, "CONFIG_ANY", { enumerable: true, get: function () { return Config_2.CONFIG_ANY; } });
|
|
75
|
+
var Config_3 = require("./Config");
|
|
76
|
+
Object.defineProperty(exports, "CONFIG_VALUE", { enumerable: true, get: function () { return Config_3.CONFIG_VALUE; } });
|
|
77
|
+
var Es2019Array_1 = require("./Es2019Array");
|
|
78
|
+
Object.defineProperty(exports, "Es2019Array", { enumerable: true, get: function () { return Es2019Array_1.Es2019Array; } });
|
|
79
|
+
Object.defineProperty(exports, "_Es2019Array", { enumerable: true, get: function () { return Es2019Array_1._Es2019Array; } });
|
|
80
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/main/typescript/index.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D,mCAAgC;AAAxB,gGAAA,MAAM,OAAA;AAEd,mCAAoC;AAA5B,oGAAA,UAAU,OAAA;AAClB,mCAAsC;AAA9B,sGAAA,YAAY,OAAA;AACpB,6CAAwD;AAAhD,0GAAA,WAAW,OAAA;AAAE,2GAAA,YAAY,OAAA"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports._Es2019Array = exports.Es2019Array = exports.Assoc = exports.CONFIG_VALUE = exports.CONFIG_ANY = exports.Config = exports.shallowMerge = exports.simpleShallowMerge = exports.append = exports.assignIf = exports.assign = exports.XQ = exports.XMLQuery = exports.ValueEmbedder = exports.Optional = exports.Monad = exports.Lang = exports.DQ$ = exports.DQ = exports.DomQueryCollector = exports.ElementAttribute = exports.DomQuery = void 0;
|
|
27
|
+
/*!
|
|
28
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
29
|
+
* or more contributor license agreements. See the NOTICE file
|
|
30
|
+
* distributed with this work for additional information
|
|
31
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
32
|
+
* to you under the Apache License, Version 2.0 (the
|
|
33
|
+
* "License"); you may not use this file except in compliance
|
|
34
|
+
* with the License. You may obtain a copy of the License at
|
|
35
|
+
*
|
|
36
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
37
|
+
*
|
|
38
|
+
* Unless required by applicable law or agreed to in writing,
|
|
39
|
+
* software distributed under the License is distributed on an
|
|
40
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
41
|
+
* KIND, either express or implied. See the License for the
|
|
42
|
+
* specific language governing permissions and limitations
|
|
43
|
+
* under the License.
|
|
44
|
+
*/
|
|
45
|
+
var DomQuery_1 = require("./DomQuery");
|
|
46
|
+
Object.defineProperty(exports, "DomQuery", { enumerable: true, get: function () { return DomQuery_1.DomQuery; } });
|
|
47
|
+
Object.defineProperty(exports, "ElementAttribute", { enumerable: true, get: function () { return DomQuery_1.ElementAttribute; } });
|
|
48
|
+
Object.defineProperty(exports, "DomQueryCollector", { enumerable: true, get: function () { return DomQuery_1.DomQueryCollector; } });
|
|
49
|
+
Object.defineProperty(exports, "DQ", { enumerable: true, get: function () { return DomQuery_1.DQ; } });
|
|
50
|
+
Object.defineProperty(exports, "DQ$", { enumerable: true, get: function () { return DomQuery_1.DQ$; } });
|
|
51
|
+
var Lang_1 = require("./Lang");
|
|
52
|
+
Object.defineProperty(exports, "Lang", { enumerable: true, get: function () { return Lang_1.Lang; } });
|
|
53
|
+
var Monad_1 = require("./Monad");
|
|
54
|
+
Object.defineProperty(exports, "Monad", { enumerable: true, get: function () { return Monad_1.Monad; } });
|
|
55
|
+
Object.defineProperty(exports, "Optional", { enumerable: true, get: function () { return Monad_1.Optional; } });
|
|
56
|
+
Object.defineProperty(exports, "ValueEmbedder", { enumerable: true, get: function () { return Monad_1.ValueEmbedder; } });
|
|
57
|
+
var XmlQuery_1 = require("./XmlQuery");
|
|
58
|
+
Object.defineProperty(exports, "XMLQuery", { enumerable: true, get: function () { return XmlQuery_1.XMLQuery; } });
|
|
59
|
+
Object.defineProperty(exports, "XQ", { enumerable: true, get: function () { return XmlQuery_1.XQ; } });
|
|
60
|
+
var AssocArray_1 = require("./AssocArray");
|
|
61
|
+
Object.defineProperty(exports, "assign", { enumerable: true, get: function () { return AssocArray_1.assign; } });
|
|
62
|
+
Object.defineProperty(exports, "assignIf", { enumerable: true, get: function () { return AssocArray_1.assignIf; } });
|
|
63
|
+
Object.defineProperty(exports, "append", { enumerable: true, get: function () { return AssocArray_1.append; } });
|
|
64
|
+
Object.defineProperty(exports, "simpleShallowMerge", { enumerable: true, get: function () { return AssocArray_1.simpleShallowMerge; } });
|
|
65
|
+
Object.defineProperty(exports, "shallowMerge", { enumerable: true, get: function () { return AssocArray_1.shallowMerge; } });
|
|
66
|
+
var Config_1 = require("./Config");
|
|
67
|
+
Object.defineProperty(exports, "Config", { enumerable: true, get: function () { return Config_1.Config; } });
|
|
68
|
+
var Config_2 = require("./Config");
|
|
69
|
+
Object.defineProperty(exports, "CONFIG_ANY", { enumerable: true, get: function () { return Config_2.CONFIG_ANY; } });
|
|
70
|
+
var Config_3 = require("./Config");
|
|
71
|
+
Object.defineProperty(exports, "CONFIG_VALUE", { enumerable: true, get: function () { return Config_3.CONFIG_VALUE; } });
|
|
72
|
+
exports.Assoc = __importStar(require("./AssocArray"));
|
|
73
|
+
var Es2019Array_1 = require("./Es2019Array");
|
|
74
|
+
Object.defineProperty(exports, "Es2019Array", { enumerable: true, get: function () { return Es2019Array_1.Es2019Array; } });
|
|
75
|
+
Object.defineProperty(exports, "_Es2019Array", { enumerable: true, get: function () { return Es2019Array_1._Es2019Array; } });
|
|
76
|
+
//# sourceMappingURL=index_core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index_core.js","sourceRoot":"","sources":["../src/main/typescript/index_core.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;;;GAiBG;AACH,uCAAkF;AAA1E,oGAAA,QAAQ,OAAA;AAAE,4GAAA,gBAAgB,OAAA;AAAE,6GAAA,iBAAiB,OAAA;AAAE,8FAAA,EAAE,OAAA;AAAE,+FAAA,GAAG,OAAA;AAC9D,+BAA4B;AAApB,4FAAA,IAAI,OAAA;AACZ,iCAAkG;AAA1F,8FAAA,KAAK,OAAA;AAA6C,iGAAA,QAAQ,OAAA;AAAE,sGAAA,aAAa,OAAA;AACjF,uCAAwC;AAAhC,oGAAA,QAAQ,OAAA;AAAE,8FAAA,EAAE,OAAA;AACpB,2CAAuF;AAA/E,oGAAA,MAAM,OAAA;AAAE,sGAAA,QAAQ,OAAA;AAAE,oGAAA,MAAM,OAAA;AAAE,gHAAA,kBAAkB,OAAA;AAAE,0GAAA,YAAY,OAAA;AAClE,mCAAgC;AAAxB,gGAAA,MAAM,OAAA;AAEd,mCAAoC;AAA5B,oGAAA,UAAU,OAAA;AAClB,mCAAsC;AAA9B,sGAAA,YAAY,OAAA;AACpB,sDAAsC;AACtC,6CAAwD;AAAhD,0GAAA,WAAW,OAAA;AAAE,2GAAA,YAAY,OAAA"}
|
|
@@ -452,7 +452,7 @@ let dom = null;
|
|
|
452
452
|
(0, chai_1.expect)(content.byId("second").innerHTML).to.eq("hello world");
|
|
453
453
|
(0, chai_1.expect)(content.byId("third").innerHTML).to.eq("hello world");
|
|
454
454
|
(0, chai_1.expect)(content.byId("fourth").innerHTML).to.eq("hello world");
|
|
455
|
-
(0, chai_1.expect)(umd_1.DomQuery.byTagName("
|
|
455
|
+
(0, chai_1.expect)(umd_1.DomQuery.byTagName("body")
|
|
456
456
|
.querySelectorAll("link[rel='stylesheet'][href='./fixtures/blank.css']").length).to.eq(1);
|
|
457
457
|
done();
|
|
458
458
|
});
|
|
@@ -161,6 +161,91 @@ var StandardInits;
|
|
|
161
161
|
</form>
|
|
162
162
|
</tobago-page>
|
|
163
163
|
</body>
|
|
164
|
+
</html>`;
|
|
165
|
+
StandardInits.HTML_TOBAGO_SHEET_WITH_STYLE = `<!DOCTYPE html>
|
|
166
|
+
<html lang='de'>
|
|
167
|
+
<head>
|
|
168
|
+
<meta charset='UTF-8'>
|
|
169
|
+
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
|
|
170
|
+
<title>Test
|
|
171
|
+
</title>
|
|
172
|
+
<link rel='stylesheet' href='./fixtures/css/tobago.css' type='text/css'>
|
|
173
|
+
<link rel='stylesheet' href='./fixtures/css/bootstrap-icons.css' type='text/css'>
|
|
174
|
+
<script src='./fixtures/jakarta.faces.resource/faces.js.jsf' type='text/javascript'></script>
|
|
175
|
+
<script src='./fixtures/js/tobago.js' type='module'></script>
|
|
176
|
+
</head>
|
|
177
|
+
<body>
|
|
178
|
+
<tobago-page locale='de' class='container-fluid' id='page' focus-on-error='true' wait-overlay-delay-full='1000'
|
|
179
|
+
wait-overlay-delay-ajax='1000'>
|
|
180
|
+
<form action='/content/080-sheet/30-event/Sheet_Event.xhtml' id='page::form' method='post'
|
|
181
|
+
accept-charset='UTF-8' data-tobago-context-path=''>
|
|
182
|
+
<input type='hidden' name='javax.faces.source' id='javax.faces.source' disabled='disabled'>
|
|
183
|
+
<tobago-focus id='page::lastFocusId'>
|
|
184
|
+
<input type='hidden' name='page::lastFocusId' id='page::lastFocusId::field'>
|
|
185
|
+
</tobago-focus>
|
|
186
|
+
<input type='hidden' name='org.apache.myfaces.tobago.webapp.Secret' id='org.apache.myfaces.tobago.webapp.Secret'
|
|
187
|
+
value='secretValue'>
|
|
188
|
+
<div class='tobago-page-menuStore'>
|
|
189
|
+
</div>
|
|
190
|
+
<span id='page::jsf-state-container'><input type='hidden' name='javax.faces.ViewState'
|
|
191
|
+
id='j_id__v_0:javax.faces.ViewState:1'
|
|
192
|
+
value='viewStateValue' autocomplete='off'><input
|
|
193
|
+
type='hidden' name='javax.faces.RenderKitId' value='tobago'><input type='hidden'
|
|
194
|
+
id='j_id__v_0:javax.faces.ClientWindow:1'
|
|
195
|
+
name='javax.faces.ClientWindow'
|
|
196
|
+
value='clientWindowValue'></span>
|
|
197
|
+
<button type='button' id='page:ajaxButton' name='page:ajaxButton'
|
|
198
|
+
class='tobago-button btn btn-secondary tobago-auto-spacing'>
|
|
199
|
+
<tobago-behavior event='click' client-id='page:ajaxButton' execute='page:ajaxButton'
|
|
200
|
+
render='page:s1'></tobago-behavior>
|
|
201
|
+
<span>Ajax</span></button>
|
|
202
|
+
<tobago-sheet id='page:s1' data-tobago-selection-mode='multi' data-tobago-first='0' rows='0' row-count='2'>
|
|
203
|
+
<style nonce='nonceValue' id='page:s1:j_id_4'>#page\\:s1 {
|
|
204
|
+
max-height: 500px;
|
|
205
|
+
}
|
|
206
|
+
</style>
|
|
207
|
+
<input id='page:s1::scrollPosition' name='page:s1::scrollPosition' type='hidden' value='[0,0]'>
|
|
208
|
+
<input id='page:s1::selected' name='page:s1::selected' type='hidden' value='[]'>
|
|
209
|
+
<div class='tobago-body'>
|
|
210
|
+
<table cellspacing='0' cellpadding='0' summary='' class='table'>
|
|
211
|
+
<thead>
|
|
212
|
+
<tr>
|
|
213
|
+
<th>
|
|
214
|
+
<span><tobago-out id='page:s1:_col0'><span class='form-control-plaintext'>Name</span></tobago-out></span>
|
|
215
|
+
</th>
|
|
216
|
+
</tr>
|
|
217
|
+
</thead>
|
|
218
|
+
<tbody>
|
|
219
|
+
<tr row-index='0'>
|
|
220
|
+
<td>
|
|
221
|
+
<tobago-out id='page:s1:0:t_name'><span class='form-control-plaintext'>Earth</span></tobago-out>
|
|
222
|
+
</td>
|
|
223
|
+
<td>
|
|
224
|
+
<div>
|
|
225
|
+
</div>
|
|
226
|
+
</td>
|
|
227
|
+
</tr>
|
|
228
|
+
<tr row-index='1'>
|
|
229
|
+
<td>
|
|
230
|
+
<tobago-out id='page:s1:1:t_name'><span class='form-control-plaintext'>Moon</span></tobago-out>
|
|
231
|
+
</td>
|
|
232
|
+
<td>
|
|
233
|
+
<div>
|
|
234
|
+
</div>
|
|
235
|
+
</td>
|
|
236
|
+
</tr>
|
|
237
|
+
</tbody>
|
|
238
|
+
</table>
|
|
239
|
+
</div>
|
|
240
|
+
</tobago-sheet>
|
|
241
|
+
</form>
|
|
242
|
+
<noscript>
|
|
243
|
+
<div class='tobago-page-noscript'>Diese Seite benötigt JavaScript, allerdings ist JavaScript in Ihrem Browser
|
|
244
|
+
derzeit deaktiviert. Um JavaScript zu aktivieren, lesen Sie ggf. die Anleitung Ihres Browsers.
|
|
245
|
+
</div>
|
|
246
|
+
</noscript>
|
|
247
|
+
</tobago-page>
|
|
248
|
+
</body>
|
|
164
249
|
</html>`;
|
|
165
250
|
/**
|
|
166
251
|
* a page simulating basically a simple faces form
|
|
@@ -242,6 +327,41 @@ var StandardInits;
|
|
|
242
327
|
|
|
243
328
|
`;
|
|
244
329
|
}
|
|
330
|
+
StandardInits.ERROR_CHAIN_PAGE = `
|
|
331
|
+
<!DOCTYPE html>
|
|
332
|
+
<html lang="en">
|
|
333
|
+
<head>
|
|
334
|
+
<meta charset="UTF-8">
|
|
335
|
+
<title>Title</title>
|
|
336
|
+
</head>
|
|
337
|
+
<body>
|
|
338
|
+
<h2>Error Chain Testcase</h2>
|
|
339
|
+
<script type="text/javascript">
|
|
340
|
+
/**
|
|
341
|
+
* code identical to mojarra test, both stem from me
|
|
342
|
+
* so mojarras side EPL here ASL2!
|
|
343
|
+
*
|
|
344
|
+
* @param event
|
|
345
|
+
*/
|
|
346
|
+
function triggerRequestChain(event) {
|
|
347
|
+
for(let cnt = 0; cnt < 5; cnt++) {
|
|
348
|
+
faces.ajax.request(event.target, "click", {
|
|
349
|
+
render:"form1",
|
|
350
|
+
onerror: function() {
|
|
351
|
+
document.getElementById("errorCalled").innerHTML = "1";
|
|
352
|
+
}
|
|
353
|
+
})
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
</script>
|
|
357
|
+
<div id="errorCalled"></div>
|
|
358
|
+
<form id="form1">
|
|
359
|
+
<div id="form1:out1">0</div>
|
|
360
|
+
<input type="button" id="form1:button1" onclick="triggerRequestChain(event)">
|
|
361
|
+
</form>
|
|
362
|
+
</body>
|
|
363
|
+
</html>
|
|
364
|
+
`;
|
|
245
365
|
/**
|
|
246
366
|
* This is a standardized small page mockup
|
|
247
367
|
* testing the various aspects of the protocol
|
|
@@ -416,6 +536,10 @@ var StandardInits;
|
|
|
416
536
|
return init((IS_40) ? StandardInits.PROTOCOL_PAGE : StandardInits.PROTOCOL_PAGE.replace(/jakarta/gi, "javax"), withJsf, IS_40);
|
|
417
537
|
}
|
|
418
538
|
StandardInits.protocolPage = protocolPage;
|
|
539
|
+
function errorChainPage(withJsf = true, IS_40 = true) {
|
|
540
|
+
return init((IS_40) ? StandardInits.ERROR_CHAIN_PAGE : StandardInits.ERROR_CHAIN_PAGE.replace(/jakarta/gi, "javax"), withJsf, IS_40);
|
|
541
|
+
}
|
|
542
|
+
StandardInits.errorChainPage = errorChainPage;
|
|
419
543
|
function prefixEmbeddedPage(withJsf = true, IS_40 = true) {
|
|
420
544
|
return init((IS_40) ? HTML_FORM_PREFIXED_EMBEDDED : HTML_FORM_PREFIXED_EMBEDDED.replace(/jakarta/gi, "javax"), withJsf, IS_40);
|
|
421
545
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StandardInits.js","sourceRoot":"","sources":["../../../../../src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,yCAAmC;AAQnC;;;;;;;;;;;;GAYG;AACH,IAAc,aAAa,
|
|
1
|
+
{"version":3,"file":"StandardInits.js","sourceRoot":"","sources":["../../../../../src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGH,yCAAmC;AAQnC;;;;;;;;;;;;GAYG;AACH,IAAc,aAAa,CA+mB1B;AA/mBD,WAAc,aAAa;IAEV,0BAAY,GAAG;;;;;;;;;;;;QAYxB,CAAC;IAGQ,yBAAW,GAAG;;;;;;;;;;;;;;;;QAgBvB,CAAC;IAEL;;OAEG;IACH,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;QActB,CAAC;IAIL;;OAEG;IACH,MAAM,kBAAkB,GAAG;;;;;;;;;;;;;;QAcvB,CAAC;IAGL;;OAEG;IACH,MAAM,qBAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA4B1B,CAAC;IAEQ,0CAA4B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAoFxC,CAAC;IAEL;;OAEG;IACU,uCAAyB,GAAG;;;;;;;;;QASrC,CAAC;IAEL,MAAM,2BAA2B,GAAG;;;;;;;MAOlC,cAAA,yBAAyB;;QAEvB,CAAC;IAGL,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;QAazB,CAAC;IAIL;;OAEG;IACH,MAAM,sBAAsB,GAAG;;;;;;;;;;;;;;QAc3B,CAAC;IAIQ,qBAAO,GAAG,uOAAuO,CAAC;IAE/P;;;;OAIG;IACH,SAAS,2BAA2B,CAAC,aAAqB,EAAE,KAAK,GAAC,IAAI;QAClE,OAAO;;;;;;8BAMe,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,mBAAmB,KAAK,CAAC,CAAC,CAAC,OAAO,CAAA,CAAC,CAAC,KAAK,sCAAsC,aAAa;;;;;;;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b,MAAM,kDAAO,cAAc,IAAE,IAAI,CAAC,CAAC,KAAK,EAAE,EAAE;;oBACxC,KAAK,GAAG,MAAA,CAAC,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,mCAAI,KAAK,CAAC,0CAAG,QAAQ,CAAC,CAAC;gBAClD,CAAC,CAAC,CAAC;aACN;YACD,sDAAsD;YACtD,0CAA0C;YAC1C,OAAO,KAAK,CAAC;QAEjB,CAAC;KAAA;AACL,CAAC,EA/mBa,aAAa,GAAb,qBAAa,KAAb,qBAAa,QA+mB1B"}
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.XmlResponses = void 0;
|
|
4
4
|
class XmlResponses {
|
|
5
5
|
}
|
|
6
|
-
exports.XmlResponses = XmlResponses;
|
|
7
6
|
XmlResponses.EVAL_1 = `
|
|
8
7
|
<partial-response>
|
|
9
8
|
<changes>
|
|
@@ -28,6 +27,58 @@ XmlResponses.UPDATE_INSERT_1 = `
|
|
|
28
27
|
</changes>
|
|
29
28
|
</partial-response>
|
|
30
29
|
`;
|
|
30
|
+
XmlResponses.UPDATE_TOBAGO_SHEET_WITH_STYLE = `<?xml version="1.0" encoding="UTF-8"?>
|
|
31
|
+
<partial-response id='j_id__v_0'>
|
|
32
|
+
<changes>
|
|
33
|
+
<update id='page:s1'><![CDATA[
|
|
34
|
+
<tobago-sheet id='page:s1' data-tobago-selection-mode='multi' data-tobago-first='0' rows='0' row-count='2'>
|
|
35
|
+
<style nonce='nonceValue' id='page:s1:j_id_4'>#page\\:s1 {
|
|
36
|
+
max-height: 500px;
|
|
37
|
+
}
|
|
38
|
+
</style>
|
|
39
|
+
<input id='page:s1::scrollPosition' name='page:s1::scrollPosition' type='hidden' value='[0,0]'/>
|
|
40
|
+
<input id='page:s1::selected' name='page:s1::selected' type='hidden' value='[]'/>
|
|
41
|
+
<div class='tobago-body'>
|
|
42
|
+
<table cellspacing='0' cellpadding='0' summary='' class='table'>
|
|
43
|
+
<thead>
|
|
44
|
+
<tr>
|
|
45
|
+
<th>
|
|
46
|
+
<span><tobago-out id='page:s1:_col0'><span
|
|
47
|
+
class='form-control-plaintext'>Name</span></tobago-out></span>
|
|
48
|
+
</th>
|
|
49
|
+
</tr>
|
|
50
|
+
</thead>
|
|
51
|
+
<tbody>
|
|
52
|
+
<tr row-index='0'>
|
|
53
|
+
<td>
|
|
54
|
+
<tobago-out id='page:s1:0:t_name'><span class='form-control-plaintext'>Earth</span></tobago-out>
|
|
55
|
+
</td>
|
|
56
|
+
<td>
|
|
57
|
+
<div>
|
|
58
|
+
</div>
|
|
59
|
+
</td>
|
|
60
|
+
</tr>
|
|
61
|
+
<tr row-index='1'>
|
|
62
|
+
<td>
|
|
63
|
+
<tobago-out id='page:s1:1:t_name'><span class='form-control-plaintext'>Moon</span></tobago-out>
|
|
64
|
+
</td>
|
|
65
|
+
<td>
|
|
66
|
+
<div>
|
|
67
|
+
</div>
|
|
68
|
+
</td>
|
|
69
|
+
</tr>
|
|
70
|
+
</tbody>
|
|
71
|
+
</table>
|
|
72
|
+
</div>
|
|
73
|
+
</tobago-sheet>
|
|
74
|
+
]]>
|
|
75
|
+
</update>
|
|
76
|
+
<update id='j_id__v_0:javax.faces.ViewState:1'><![CDATA[viewStateValue]]>
|
|
77
|
+
</update>
|
|
78
|
+
<update id='j_id__v_0:javax.faces.ClientWindow:1'><![CDATA[clientWindowValue]]>
|
|
79
|
+
</update>
|
|
80
|
+
</changes>
|
|
81
|
+
</partial-response>`;
|
|
31
82
|
XmlResponses.SHADOW_DOM_UPDATE = `
|
|
32
83
|
<partial-response>
|
|
33
84
|
<changes><update id="shadowContent"><![CDATA[<div id="shadowContent">after update</div>]]></update></changes>
|
|
@@ -237,4 +288,9 @@ XmlResponses.NONCE_REPLY = `
|
|
|
237
288
|
</update></changes></partial-response>
|
|
238
289
|
`;
|
|
239
290
|
XmlResponses.ILLEGAL_RESP = `>>>> xxxx >YYYY-!->>>`;
|
|
291
|
+
XmlResponses.ERROR_CHAIN_RESPOND_OK = (cnt) => {
|
|
292
|
+
return `<partial-response><changes><update id='form1:out1'><![CDATA[<div id="form1:out1">${cnt}</div>]]>
|
|
293
|
+
</update></changes></partial-response>`;
|
|
294
|
+
};
|
|
295
|
+
exports.XmlResponses = XmlResponses;
|
|
240
296
|
//# sourceMappingURL=XmlResponses.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XmlResponses.js","sourceRoot":"","sources":["../../../../../src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;;
|
|
1
|
+
{"version":3,"file":"XmlResponses.js","sourceRoot":"","sources":["../../../../../src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts"],"names":[],"mappings":";;;AAAA,MAAa,YAAY;;AAEd,mBAAM,GAAG;;;;;;;;KAQf,CAAC;AAEK,4BAAe,GAAG;;;;;;;;;;;;;;KAcxB,CAAC;AAEK,2CAA8B,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAmDxB,CAAC;AAEV,8BAAiB,GAAC;;;;KAIxB,CAAC;AAEK,4BAAe,GAAG;;;;;;;;;;;;;;KAcxB,CAAC;AAEK,qBAAQ,GAAG;;;;;;KAMjB,CAAC;AAEK,wBAAW,GAAG;;;;;;KAMpB,CAAC;AAEK,6BAAgB,GAAG;;;;;;;;;;KAUzB,CAAC;AAEK,oBAAO,GAAG;;;;;;KAMhB,CAAC;AACK,oBAAO,GAAG;;;;;;;KAOhB,CAAC;AAEK,6BAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;CAyB7B,CAAC;AAES,6BAAgB,GAAG;;;;;;;;;;;;;;CAc7B,CAAC;AAES,kCAAqB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiClC,CAAC;AAES,qCAAwB,GAAG;;;;;;;;CAQrC,CAAC;AACS,uCAA0B,GAAG;;;;;;;;;CASvC,CAAA;AAEU,+CAAkC,GAAG;;;;;;;;;;;;CAY/C,CAAA;AAEU,yBAAY,GAAG;;;;;;;;;;;;;;CAczB,CAAA;AAEU,0BAAa,GAAG;;;;;;;;;;;;;;;;;;;;CAoB1B,CAAA;AAGU,wBAAW,GAAG;;;;KAIpB,CAAC;AAEK,yBAAY,GAAG,uBAAuB,CAAC;AAGtC,mCAAsB,GAAG,CAAC,GAAW,EAAU,EAAE;IACrD,OAAO,oFAAoF,GAAG;2CAC3D,CAAC;AACxC,CAAC,CAAA;AAtTQ,oCAAY"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4
|
+
* this work for additional information regarding copyright ownership.
|
|
5
|
+
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
6
|
+
* (the "License"); you may not use this file except in compliance with
|
|
7
|
+
* the License. You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*/
|
|
17
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
const mocha_1 = require("mocha");
|
|
28
|
+
const chai_1 = require("chai");
|
|
29
|
+
const StandardInits_1 = require("../frameworkBase/_ext/shared/StandardInits");
|
|
30
|
+
var defaultMyFaces = StandardInits_1.StandardInits.defaultMyFaces;
|
|
31
|
+
/**
|
|
32
|
+
* Adds test s for the newly introduced onload handling
|
|
33
|
+
*/
|
|
34
|
+
(0, mocha_1.describe)('Tests on the xhr core when it starts to call the request', function () {
|
|
35
|
+
beforeEach(() => __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
return;
|
|
37
|
+
}));
|
|
38
|
+
(0, mocha_1.it)("must be present", function () {
|
|
39
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
40
|
+
yield defaultMyFaces();
|
|
41
|
+
(0, chai_1.expect)(myfaces === null || myfaces === void 0 ? void 0 : myfaces.onDomReady).to.exist;
|
|
42
|
+
return true;
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
(0, mocha_1.it)("must be called on onDocumentReady", function (done) {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
let called = false;
|
|
48
|
+
const onDomCalled = () => {
|
|
49
|
+
(0, chai_1.expect)(true).to.true;
|
|
50
|
+
done();
|
|
51
|
+
};
|
|
52
|
+
myfaces === null || myfaces === void 0 ? void 0 : myfaces.onDomReady(onDomCalled);
|
|
53
|
+
yield defaultMyFaces();
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
});
|
|
57
|
+
//# sourceMappingURL=OnLoad.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OnLoad.spec.js","sourceRoot":"","sources":["../../../src/main/typescript/test/myfaces/OnLoad.spec.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;AAEH,iCAAmC;AAEnC,+BAA4B;AAC5B,8EAAyE;AACzE,IAAO,cAAc,GAAG,6BAAa,CAAC,cAAc,CAAC;AAMrD;;GAEG;AACH,IAAA,gBAAQ,EAAC,0DAA0D,EAAE;IAEjE,UAAU,CAAC,GAAS,EAAE;QAClB,OAAM;IACV,CAAC,CAAA,CAAC,CAAC;IAEH,IAAA,UAAE,EAAC,iBAAiB,EAAE;;YAClB,MAAM,cAAc,EAAE,CAAC;YACvB,IAAA,aAAM,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;YACrC,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA,CAAC,CAAC;IAEH,IAAA,UAAE,EAAC,mCAAmC,EAAE,UAAe,IAAI;;YACvD,IAAI,MAAM,GAAY,KAAK,CAAC;YAC5B,MAAM,WAAW,GAAG,GAAG,EAAE;gBACrB,IAAA,aAAM,EAAC,IAAI,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC;gBACrB,IAAI,EAAE,CAAC;YACX,CAAC,CAAA;YACD,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC,WAAW,CAAC,CAAC;YACjC,MAAM,cAAc,EAAE,CAAC;QAC3B,CAAC;KAAA,CAAC,CAAC;AAEP,CAAC,CAAC,CAAC"}
|
|
@@ -35,11 +35,11 @@ var defaultMyFaces = StandardInits_1.StandardInits.defaultMyFaces;
|
|
|
35
35
|
beforeEach(() => __awaiter(this, void 0, void 0, function* () {
|
|
36
36
|
return;
|
|
37
37
|
}));
|
|
38
|
-
(0, mocha_1.it)("must be present", function (
|
|
38
|
+
(0, mocha_1.it)("must be present", function () {
|
|
39
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
40
40
|
yield defaultMyFaces();
|
|
41
41
|
(0, chai_1.expect)(myfaces === null || myfaces === void 0 ? void 0 : myfaces.onDomReady).to.exist;
|
|
42
|
-
|
|
42
|
+
return true;
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
(0, mocha_1.it)("must be called on onDocumentReady", function (done) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnLoadSpec.js","sourceRoot":"","sources":["../../../src/main/typescript/test/myfaces/OnLoadSpec.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;AAEH,iCAAmC;AAEnC,+BAA4B;AAC5B,8EAAyE;AACzE,IAAO,cAAc,GAAG,6BAAa,CAAC,cAAc,CAAC;AAMrD;;GAEG;AACH,IAAA,gBAAQ,EAAC,0DAA0D,EAAE;IAEjE,UAAU,CAAC,GAAS,EAAE;QAClB,OAAM;IACV,CAAC,CAAA,CAAC,CAAC;IAEH,IAAA,UAAE,EAAC,iBAAiB,EAAE
|
|
1
|
+
{"version":3,"file":"OnLoadSpec.js","sourceRoot":"","sources":["../../../src/main/typescript/test/myfaces/OnLoadSpec.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;;;;;;;;;AAEH,iCAAmC;AAEnC,+BAA4B;AAC5B,8EAAyE;AACzE,IAAO,cAAc,GAAG,6BAAa,CAAC,cAAc,CAAC;AAMrD;;GAEG;AACH,IAAA,gBAAQ,EAAC,0DAA0D,EAAE;IAEjE,UAAU,CAAC,GAAS,EAAE;QAClB,OAAM;IACV,CAAC,CAAA,CAAC,CAAC;IAEH,IAAA,UAAE,EAAC,iBAAiB,EAAE;;YAClB,MAAM,cAAc,EAAE,CAAC;YACvB,IAAA,aAAM,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,UAAU,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC;YACrC,OAAO,IAAI,CAAC;QAChB,CAAC;KAAA,CAAC,CAAC;IAEH,IAAA,UAAE,EAAC,mCAAmC,EAAE,UAAe,IAAI;;YACvD,IAAI,MAAM,GAAY,KAAK,CAAC;YAC5B,MAAM,WAAW,GA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