jsf.js_next_gen 1.0.0-beta-20 → 4.0.0-beta-4
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/.mocharc.json +2 -1
- package/.nyc_output/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
- package/.nyc_output/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
- package/.nyc_output/processinfo/2303b649-59d9-485c-9228-73b0ec8787a7.json +1 -0
- package/.nyc_output/processinfo/756f2f03-c85b-4cdb-9b92-5799eb45ef1e.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -0
- package/.nycrc +2 -1
- package/README.md +12 -0
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/functions/{jsf.ajax.addOnError.html → faces.ajax.addOnError.html} +11 -11
- package/dist/docs/functions/{jsf.ajax.addOnEvent.html → faces.ajax.addOnEvent.html} +11 -11
- package/dist/docs/functions/{jsf.ajax.request.html → faces.ajax.request.html} +11 -11
- package/dist/docs/functions/{jsf.ajax.response.html → faces.ajax.response.html} +11 -11
- package/dist/docs/functions/{jsf.getClientWindow.html → faces.getClientWindow.html} +12 -12
- package/dist/docs/functions/{jsf.getProjectStage.html → faces.getProjectStage.html} +13 -13
- package/dist/docs/functions/{jsf.getViewState.html → faces.getViewState.html} +13 -13
- package/dist/docs/functions/{jsf.push.close.html → faces.push.close.html} +10 -10
- package/dist/docs/functions/{jsf.push.init.html → faces.push.init.html} +10 -10
- package/dist/docs/functions/{jsf.push.open.html → faces.push.open.html} +10 -10
- package/dist/docs/functions/{jsf.util.chain.html → faces.util.chain.html} +8 -8
- package/dist/docs/functions/myfaces.ab.html +6 -6
- package/dist/docs/index.html +13 -4
- package/dist/docs/modules/{jsf.ajax.html → faces.ajax.html} +14 -14
- package/dist/docs/modules/{jsf.html → faces.html} +22 -22
- package/dist/docs/modules/{jsf.push.html → faces.push.html} +12 -12
- package/dist/docs/modules/{jsf.util.html → faces.util.html} +8 -8
- package/dist/docs/modules/myfaces.html +4 -4
- package/dist/docs/modules.html +5 -5
- package/dist/docs/variables/{jsf.implversion.html → faces.implversion.html} +12 -12
- package/dist/docs/variables/{jsf.separatorchar.html → faces.separatorchar.html} +12 -12
- package/dist/docs/variables/{jsf.specversion.html → faces.specversion.html} +13 -13
- package/dist/docs/variables/myfaces.oam.html +4 -4
- package/dist/window/faces-development.js +7699 -0
- 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 -0
- package/dist/window/faces.js +3 -0
- package/dist/window/faces.js.LICENSE.txt +70 -0
- package/dist/window/faces.js.br +0 -0
- package/dist/window/faces.js.gz +0 -0
- package/dist/window/faces.js.map +1 -0
- package/dist/window/jsf-development.js +244 -150
- 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 +2 -1
- package/dist/window/jsf.js.LICENSE.txt +70 -0
- 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 +6 -6
- package/src/main/types/typedefs.d.ts +2 -0
- package/src/main/typescript/api/{Jsf.ts → faces.ts} +15 -11
- package/src/main/typescript/api/jsf.ts +30 -0
- package/src/main/typescript/impl/AjaxImpl.ts +18 -16
- package/src/main/typescript/impl/PushImpl.ts +4 -4
- package/src/main/typescript/impl/core/Const.ts +53 -15
- package/src/main/typescript/impl/core/ImplTypes.ts +1 -1
- package/src/main/typescript/impl/i18n/Messages.ts +2 -2
- package/src/main/typescript/impl/util/Assertions.ts +2 -2
- package/src/main/typescript/impl/util/AsyncQueue.ts +1 -1
- package/src/main/typescript/impl/util/AsyncRunnable.ts +1 -1
- package/src/main/typescript/impl/util/ExtDomQuery.ts +33 -22
- package/src/main/typescript/impl/util/IListener.ts +1 -1
- package/src/main/typescript/impl/util/Lang.ts +1 -1
- package/src/main/typescript/impl/xhrCore/ErrorData.ts +1 -1
- package/src/main/typescript/impl/xhrCore/EventData.ts +3 -2
- package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +1 -1
- package/src/main/typescript/impl/xhrCore/RequestDataResolver.ts +2 -2
- package/src/main/typescript/impl/xhrCore/ResonseDataResolver.ts +1 -1
- package/src/main/typescript/impl/xhrCore/Response.ts +3 -3
- package/src/main/typescript/impl/xhrCore/ResponseProcessor.ts +5 -3
- package/src/main/typescript/impl/xhrCore/XhrFormData.ts +3 -3
- package/src/main/typescript/impl/xhrCore/XhrRequest.ts +5 -6
- package/src/main/typescript/myfaces/OamSubmit.ts +1 -2
- package/src/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/monadish/StreamTest.spec.ts +1 -1
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +59 -28
- package/src/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.ts +4 -4
- package/src/main/typescript/test/impl/ImplTest.spec.ts +13 -13
- package/src/main/typescript/test/impl/ImplTest_23.spec.ts +134 -0
- package/src/main/typescript/test/impl/SeparatorCharsTest.spec.ts +7 -4
- package/src/main/typescript/test/myfaces/OamSubmit.spec.ts +1 -1
- package/src/main/typescript/test/queue/AsynchronousProbe.ts +1 -1
- package/src/main/typescript/test/queue/AsynchronousQueueTest.spec.ts +2 -2
- package/src/main/typescript/test/xhrCore/EventTests.spec.ts +8 -8
- package/src/main/typescript/test/xhrCore/FakeWebsocket.ts +1 -1
- package/src/main/typescript/test/xhrCore/FileUploadTest.spec.ts +6 -6
- package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +23 -23
- package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +12 -12
- package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +27 -27
- package/src/main/typescript/test/xhrCore/ShadowDomTest.spec.ts +4 -6
- package/src/main/typescript/test/xhrCore/WebsocketTest.ts +9 -9
- package/src/main/typescript/test/xhrCore/XhrFormDataTest.spec.ts +1 -1
- package/src/main/typescript/tsconfig-typedoc.json +1 -1
- package/src/test/resources/jsf-development.js +1 -1
- package/target/api/Jsf.js +17 -245
- package/target/api/Jsf.js.map +1 -1
- package/target/api/faces.js +265 -0
- package/target/api/faces.js.map +1 -0
- package/target/impl/AjaxImpl.js +15 -14
- package/target/impl/AjaxImpl.js.map +1 -1
- package/target/impl/PushImpl.js +4 -4
- package/target/impl/PushImpl.js.map +1 -1
- package/target/impl/core/Const.js +52 -15
- package/target/impl/core/Const.js.map +1 -1
- package/target/impl/core/ImplTypes.js +1 -1
- package/target/impl/i18n/Messages.js +2 -2
- package/target/impl/i18n/Messages.js.map +1 -1
- package/target/impl/util/Assertions.js +2 -2
- package/target/impl/util/Assertions.js.map +1 -1
- package/target/impl/util/AsyncRunnable.js +1 -1
- package/target/impl/util/ExtDomQuery.js +28 -17
- package/target/impl/util/ExtDomQuery.js.map +1 -1
- package/target/impl/util/Lang.js +1 -1
- package/target/impl/xhrCore/ErrorData.js +1 -1
- package/target/impl/xhrCore/EventData.js +3 -2
- package/target/impl/xhrCore/EventData.js.map +1 -1
- package/target/impl/xhrCore/RequestDataResolver.js +2 -2
- package/target/impl/xhrCore/ResonseDataResolver.js +1 -1
- package/target/impl/xhrCore/Response.js +3 -3
- package/target/impl/xhrCore/ResponseProcessor.js +11 -11
- package/target/impl/xhrCore/ResponseProcessor.js.map +1 -1
- package/target/impl/xhrCore/XhrFormData.js +3 -3
- package/target/impl/xhrCore/XhrRequest.js +5 -4
- package/target/impl/xhrCore/XhrRequest.js.map +1 -1
- package/target/myfaces/OamSubmit.js +1 -2
- package/target/myfaces/OamSubmit.js.map +1 -1
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +1 -1
- package/target/test/frameworkBase/_ext/monadish/LangTest.spec.js +1 -1
- package/target/test/frameworkBase/_ext/monadish/MappingProbes.js +1 -1
- package/target/test/frameworkBase/_ext/monadish/MappingTest.spec.js +1 -1
- package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +1 -1
- package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js +1 -1
- package/target/test/frameworkBase/_ext/shared/StandardInits.js +64 -26
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js +4 -4
- package/target/test/frameworkBase/_ext/shared/XmlResponses.js.map +1 -1
- package/target/test/impl/ImplTest.spec.js +54 -13
- package/target/test/impl/ImplTest.spec.js.map +1 -1
- package/target/test/impl/ImplTest_23.spec.js +165 -0
- package/target/test/impl/ImplTest_23.spec.js.map +1 -0
- package/target/test/impl/ImplTest_23.spec_.js +165 -0
- package/target/test/impl/ImplTest_23.spec_.js.map +1 -0
- package/target/test/impl/SeparatorCharsTest.spec.js +7 -3
- package/target/test/impl/SeparatorCharsTest.spec.js.map +1 -1
- package/target/test/myfaces/OamSubmit.spec.js +1 -1
- package/target/test/queue/AsynchronousProbe.js +1 -1
- package/target/test/queue/AsynchronousQueueTest.spec.js +2 -2
- package/target/test/queue/AsynchronousQueueTest.spec.js.map +1 -1
- package/target/test/xhrCore/EventTests.spec.js +7 -7
- package/target/test/xhrCore/EventTests.spec.js.map +1 -1
- package/target/test/xhrCore/FakeWebsocket.js +1 -1
- package/target/test/xhrCore/FileUploadTest.spec.js +5 -5
- package/target/test/xhrCore/FileUploadTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestParamsTest.spec.js +23 -23
- package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestTest.spec.js +11 -11
- package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest.spec.js +22 -22
- package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
- package/target/test/xhrCore/ShadowDomTest.spec.js +3 -4
- package/target/test/xhrCore/ShadowDomTest.spec.js.map +1 -1
- package/target/test/xhrCore/WebsocketTest.js +8 -8
- package/target/test/xhrCore/WebsocketTest.js.map +1 -1
- package/target/test/xhrCore/XhrFormDataTest.spec.js +1 -1
- package/webpack.config.ts +23 -4
- package/integrationdeploy.cmd +0 -4
- package/integrationsdeploy.sh +0 -5
- package/remap.js +0 -44
- package/remap.js.map +0 -1
- package/webpack.config.js +0 -68
- package/webpack.config.js.map +0 -1
|
@@ -9,7 +9,8 @@
|
|
|
9
9
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
/*!
|
|
13
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
13
14
|
* contributor license agreements. See the NOTICE file distributed with
|
|
14
15
|
* this work for additional information regarding copyright ownership.
|
|
15
16
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -837,28 +838,11 @@ var DomQuery = /** @class */ (function () {
|
|
|
837
838
|
* or are one
|
|
838
839
|
*/
|
|
839
840
|
DomQuery.prototype.isMultipartCandidate = function (deep) {
|
|
840
|
-
var _this = this;
|
|
841
841
|
if (deep === void 0) { deep = false; }
|
|
842
|
-
var
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
}
|
|
847
|
-
if (item.length == 1) {
|
|
848
|
-
if (item.tagName.get("booga").value.toLowerCase() == "input" &&
|
|
849
|
-
(((_a = item.attr("type")) === null || _a === void 0 ? void 0 : _a.value) || "").toLowerCase() == "file") {
|
|
850
|
-
return true;
|
|
851
|
-
}
|
|
852
|
-
if (deep) {
|
|
853
|
-
return _this.querySelectorAllDeep("input[type='file']").firstElem().isPresent();
|
|
854
|
-
}
|
|
855
|
-
else {
|
|
856
|
-
return _this.querySelectorAll("input[type='file']").firstElem().isPresent();
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
return item.isMultipartCandidate(deep);
|
|
860
|
-
};
|
|
861
|
-
var ret = this.stream.filter(function (item) { return isCandidate(item); }).first().isPresent();
|
|
842
|
+
var FILE_INPUT = "input[type='file']";
|
|
843
|
+
var ret = this.matchesSelector(FILE_INPUT) ||
|
|
844
|
+
((!deep) ? this.querySelectorAll(FILE_INPUT) :
|
|
845
|
+
this.querySelectorAllDeep(FILE_INPUT)).first().isPresent();
|
|
862
846
|
return ret;
|
|
863
847
|
};
|
|
864
848
|
/**
|
|
@@ -957,7 +941,6 @@ var DomQuery = /** @class */ (function () {
|
|
|
957
941
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
958
942
|
nodeSelector[_i] = arguments[_i];
|
|
959
943
|
}
|
|
960
|
-
debugger;
|
|
961
944
|
var selectorStage = this.childNodes;
|
|
962
945
|
for (var cnt = 0; cnt < nodeSelector.length; cnt++) {
|
|
963
946
|
selectorStage = selectorStage.filterSelector(nodeSelector[cnt]);
|
|
@@ -1576,8 +1559,6 @@ var DomQuery = /** @class */ (function () {
|
|
|
1576
1559
|
if (files === null || files === void 0 ? void 0 : files.length) {
|
|
1577
1560
|
//xhr level2
|
|
1578
1561
|
target.append(name).value = files[0];
|
|
1579
|
-
//TODO we have to know that the entry is a file element, so that we can reuse
|
|
1580
|
-
//this information
|
|
1581
1562
|
}
|
|
1582
1563
|
else {
|
|
1583
1564
|
target.append(name).value = element.inputValue.value;
|
|
@@ -1829,7 +1810,8 @@ exports.DQ = DomQuery;
|
|
|
1829
1810
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1830
1811
|
|
|
1831
1812
|
|
|
1832
|
-
|
|
1813
|
+
/*!
|
|
1814
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
1833
1815
|
* contributor license agreements. See the NOTICE file distributed with
|
|
1834
1816
|
* this work for additional information regarding copyright ownership.
|
|
1835
1817
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -2018,7 +2000,8 @@ var Lang;
|
|
|
2018
2000
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2019
2001
|
|
|
2020
2002
|
|
|
2021
|
-
|
|
2003
|
+
/*!
|
|
2004
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
2022
2005
|
* contributor license agreements. See the NOTICE file distributed with
|
|
2023
2006
|
* this work for additional information regarding copyright ownership.
|
|
2024
2007
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -2673,7 +2656,8 @@ exports.Config = Config;
|
|
|
2673
2656
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2674
2657
|
|
|
2675
2658
|
|
|
2676
|
-
|
|
2659
|
+
/*!
|
|
2660
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
2677
2661
|
* contributor license agreements. See the NOTICE file distributed with
|
|
2678
2662
|
* this work for additional information regarding copyright ownership.
|
|
2679
2663
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -3139,7 +3123,8 @@ exports.QueryFormStringCollector = QueryFormStringCollector;
|
|
|
3139
3123
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3140
3124
|
|
|
3141
3125
|
|
|
3142
|
-
|
|
3126
|
+
/*!
|
|
3127
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3143
3128
|
* contributor license agreements. See the NOTICE file distributed with
|
|
3144
3129
|
* this work for additional information regarding copyright ownership.
|
|
3145
3130
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -3620,7 +3605,8 @@ exports.LazyStream = LazyStream;
|
|
|
3620
3605
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3621
3606
|
|
|
3622
3607
|
|
|
3623
|
-
|
|
3608
|
+
/*!
|
|
3609
|
+
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3624
3610
|
* contributor license agreements. See the NOTICE file distributed with
|
|
3625
3611
|
* this work for additional information regarding copyright ownership.
|
|
3626
3612
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -3734,6 +3720,24 @@ exports.XQ = XMLQuery;
|
|
|
3734
3720
|
|
|
3735
3721
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3736
3722
|
exports.QueryFormDataCollector = exports.FormDataCollector = exports.AssocArrayCollector = exports.ArrayCollector = exports.QueryFormStringCollector = exports.SequenceDataSource = exports.FlatMapStreamDataSource = exports.FilteredStreamDatasource = exports.MappedStreamDataSource = exports.ArrayStreamDataSource = exports.LazyStream = exports.Stream = exports.XQ = exports.XMLQuery = exports.ValueEmbedder = exports.Optional = exports.Monad = exports.Config = exports.Lang = exports.DQ = exports.DomQueryCollector = exports.ElementAttribute = exports.DomQuery = void 0;
|
|
3723
|
+
/*!
|
|
3724
|
+
* Licensed to the Apache Software Foundation (ASF) under one
|
|
3725
|
+
* or more contributor license agreements. See the NOTICE file
|
|
3726
|
+
* distributed with this work for additional information
|
|
3727
|
+
* regarding copyright ownership. The ASF licenses this file
|
|
3728
|
+
* to you under the Apache License, Version 2.0 (the
|
|
3729
|
+
* "License"); you may not use this file except in compliance
|
|
3730
|
+
* with the License. You may obtain a copy of the License at
|
|
3731
|
+
*
|
|
3732
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
3733
|
+
*
|
|
3734
|
+
* Unless required by applicable law or agreed to in writing,
|
|
3735
|
+
* software distributed under the License is distributed on an
|
|
3736
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
3737
|
+
* KIND, either express or implied. See the License for the
|
|
3738
|
+
* specific language governing permissions and limitations
|
|
3739
|
+
* under the License.
|
|
3740
|
+
*/
|
|
3737
3741
|
var DomQuery_1 = __webpack_require__(/*! ./DomQuery */ "./node_modules/mona-dish/src/main/typescript/DomQuery.ts");
|
|
3738
3742
|
Object.defineProperty(exports, "DomQuery", ({ enumerable: true, get: function () { return DomQuery_1.DomQuery; } }));
|
|
3739
3743
|
Object.defineProperty(exports, "ElementAttribute", ({ enumerable: true, get: function () { return DomQuery_1.ElementAttribute; } }));
|
|
@@ -3767,14 +3771,14 @@ Object.defineProperty(exports, "QueryFormDataCollector", ({ enumerable: true, ge
|
|
|
3767
3771
|
|
|
3768
3772
|
/***/ }),
|
|
3769
3773
|
|
|
3770
|
-
/***/ "./src/main/typescript/api/
|
|
3771
|
-
|
|
3772
|
-
!*** ./src/main/typescript/api/
|
|
3773
|
-
|
|
3774
|
+
/***/ "./src/main/typescript/api/faces.ts":
|
|
3775
|
+
/*!******************************************!*\
|
|
3776
|
+
!*** ./src/main/typescript/api/faces.ts ***!
|
|
3777
|
+
\******************************************/
|
|
3774
3778
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3775
3779
|
|
|
3776
3780
|
|
|
3777
|
-
|
|
3781
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
3778
3782
|
* contributor license agreements. See the NOTICE file distributed with
|
|
3779
3783
|
* this work for additional information regarding copyright ownership.
|
|
3780
3784
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -3799,19 +3803,19 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
3799
3803
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
3800
3804
|
};
|
|
3801
3805
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3802
|
-
exports.myfaces = exports.
|
|
3806
|
+
exports.myfaces = exports.faces = void 0;
|
|
3803
3807
|
///<reference types='../../types/typedefs'/>
|
|
3804
3808
|
var AjaxImpl_1 = __webpack_require__(/*! ../impl/AjaxImpl */ "./src/main/typescript/impl/AjaxImpl.ts");
|
|
3805
3809
|
var PushImpl_1 = __webpack_require__(/*! ../impl/PushImpl */ "./src/main/typescript/impl/PushImpl.ts");
|
|
3806
3810
|
var OamSubmit_1 = __webpack_require__(/*! ../myfaces/OamSubmit */ "./src/main/typescript/myfaces/OamSubmit.ts");
|
|
3807
3811
|
//declare const Implementation: any;
|
|
3808
|
-
var
|
|
3809
|
-
(function (
|
|
3812
|
+
var faces;
|
|
3813
|
+
(function (faces) {
|
|
3810
3814
|
"use strict";
|
|
3811
3815
|
/*
|
|
3812
|
-
* Version of the implementation for the
|
|
3816
|
+
* Version of the implementation for the faces.js.
|
|
3813
3817
|
* <p />
|
|
3814
|
-
* as specified within the jsf specifications
|
|
3818
|
+
* as specified within the jsf specifications faces.html:
|
|
3815
3819
|
* <ul>
|
|
3816
3820
|
* <li>left two digits major release number</li>
|
|
3817
3821
|
* <li>middle two digits minor spec release number</li>
|
|
@@ -3819,7 +3823,7 @@ var jsf;
|
|
|
3819
3823
|
* </ul>
|
|
3820
3824
|
* @constant
|
|
3821
3825
|
*/
|
|
3822
|
-
|
|
3826
|
+
faces.specversion = 400000;
|
|
3823
3827
|
/**
|
|
3824
3828
|
* Implementation version as specified within the jsf specification.
|
|
3825
3829
|
* <p />
|
|
@@ -3828,12 +3832,12 @@ var jsf;
|
|
|
3828
3832
|
*
|
|
3829
3833
|
* @constant
|
|
3830
3834
|
*/
|
|
3831
|
-
|
|
3835
|
+
faces.implversion = 0;
|
|
3832
3836
|
/**
|
|
3833
3837
|
* SeparatorChar as defined by UINamingContainer.getNamingContainerSeparatorChar()
|
|
3834
3838
|
* @type {Char}
|
|
3835
3839
|
*/
|
|
3836
|
-
|
|
3840
|
+
faces.separatorchar = getSeparatorChar();
|
|
3837
3841
|
/**
|
|
3838
3842
|
* This method is responsible for the return of a given project stage as defined
|
|
3839
3843
|
* by the jsf specification.
|
|
@@ -3847,15 +3851,15 @@ var jsf;
|
|
|
3847
3851
|
* </li>
|
|
3848
3852
|
*
|
|
3849
3853
|
* @return {String} the current project state emitted by the server side method:
|
|
3850
|
-
* <i>
|
|
3854
|
+
* <i>jakarta.faces.application.Application.getProjectStage()</i>
|
|
3851
3855
|
*/
|
|
3852
3856
|
function getProjectStage() {
|
|
3853
3857
|
return AjaxImpl_1.Implementation.getProjectStage();
|
|
3854
3858
|
}
|
|
3855
|
-
|
|
3859
|
+
faces.getProjectStage = getProjectStage;
|
|
3856
3860
|
/**
|
|
3857
3861
|
* collect and encode data for a given form element (must be of type form)
|
|
3858
|
-
* find the
|
|
3862
|
+
* find the jakarta.faces.ViewState element and encode its value as well!
|
|
3859
3863
|
* return a concatenated string of the encoded values!
|
|
3860
3864
|
*
|
|
3861
3865
|
* @throws an exception in case of the given element not being of type form!
|
|
@@ -3864,7 +3868,7 @@ var jsf;
|
|
|
3864
3868
|
function getViewState(formElement) {
|
|
3865
3869
|
return AjaxImpl_1.Implementation.getViewState(formElement);
|
|
3866
3870
|
}
|
|
3867
|
-
|
|
3871
|
+
faces.getViewState = getViewState;
|
|
3868
3872
|
/**
|
|
3869
3873
|
* returns the window identifier for the given node / window
|
|
3870
3874
|
* @return the window identifier or null if none is found
|
|
@@ -3873,7 +3877,7 @@ var jsf;
|
|
|
3873
3877
|
function getClientWindow(rootNode) {
|
|
3874
3878
|
return AjaxImpl_1.Implementation.getClientWindow(rootNode);
|
|
3875
3879
|
}
|
|
3876
|
-
|
|
3880
|
+
faces.getClientWindow = getClientWindow;
|
|
3877
3881
|
//private helper functions
|
|
3878
3882
|
function getSeparatorChar() {
|
|
3879
3883
|
return AjaxImpl_1.Implementation.getSeparatorChar();
|
|
@@ -3943,7 +3947,7 @@ var jsf;
|
|
|
3943
3947
|
AjaxImpl_1.Implementation.addOnEvent(eventFunc);
|
|
3944
3948
|
}
|
|
3945
3949
|
ajax.addOnEvent = addOnEvent;
|
|
3946
|
-
})(ajax =
|
|
3950
|
+
})(ajax = faces.ajax || (faces.ajax = {}));
|
|
3947
3951
|
var util;
|
|
3948
3952
|
(function (util) {
|
|
3949
3953
|
/**
|
|
@@ -3965,7 +3969,7 @@ var jsf;
|
|
|
3965
3969
|
return AjaxImpl_1.Implementation.chain.apply(AjaxImpl_1.Implementation, __spreadArray([source, event], funcs, false));
|
|
3966
3970
|
}
|
|
3967
3971
|
util.chain = chain;
|
|
3968
|
-
})(util =
|
|
3972
|
+
})(util = faces.util || (faces.util = {}));
|
|
3969
3973
|
var push;
|
|
3970
3974
|
(function (push) {
|
|
3971
3975
|
/**
|
|
@@ -3996,8 +4000,8 @@ var jsf;
|
|
|
3996
4000
|
PushImpl_1.PushImpl.close(socketClientId);
|
|
3997
4001
|
}
|
|
3998
4002
|
push.close = close;
|
|
3999
|
-
})(push =
|
|
4000
|
-
})(
|
|
4003
|
+
})(push = faces.push || (faces.push = {}));
|
|
4004
|
+
})(faces = exports.faces || (exports.faces = {}));
|
|
4001
4005
|
//fullfill the window contract for the myfaces namespace
|
|
4002
4006
|
var myfaces;
|
|
4003
4007
|
(function (myfaces) {
|
|
@@ -4008,15 +4012,20 @@ var myfaces;
|
|
|
4008
4012
|
*
|
|
4009
4013
|
* @param source the event source
|
|
4010
4014
|
* @param event the event
|
|
4011
|
-
* @param eventName event name for java.
|
|
4012
|
-
* @param execute execute list as passed down in
|
|
4015
|
+
* @param eventName event name for java.jakarta.faces.behavior.evemnt
|
|
4016
|
+
* @param execute execute list as passed down in faces.ajax.request
|
|
4013
4017
|
* @param render
|
|
4014
4018
|
* @param options
|
|
4015
4019
|
*/
|
|
4016
4020
|
function ab(source, event, eventName, execute, render, options) {
|
|
4017
4021
|
if (options === void 0) { options = {}; }
|
|
4018
4022
|
if (eventName) {
|
|
4019
|
-
|
|
4023
|
+
if (!(window === null || window === void 0 ? void 0 : window.jsf)) {
|
|
4024
|
+
options["jakarta.faces.behavior.event"] = eventName;
|
|
4025
|
+
}
|
|
4026
|
+
else {
|
|
4027
|
+
options["javax.faces.behavior.event"] = eventName;
|
|
4028
|
+
}
|
|
4020
4029
|
}
|
|
4021
4030
|
if (execute) {
|
|
4022
4031
|
options["execute"] = execute;
|
|
@@ -4024,7 +4033,7 @@ var myfaces;
|
|
|
4024
4033
|
if (render) {
|
|
4025
4034
|
options["render"] = render;
|
|
4026
4035
|
}
|
|
4027
|
-
|
|
4036
|
+
faces.ajax.request(source, event, options);
|
|
4028
4037
|
}
|
|
4029
4038
|
myfaces.ab = ab;
|
|
4030
4039
|
/**
|
|
@@ -4043,7 +4052,7 @@ var myfaces;
|
|
|
4043
4052
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4044
4053
|
|
|
4045
4054
|
|
|
4046
|
-
|
|
4055
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4047
4056
|
* contributor license agreements. See the NOTICE file distributed with
|
|
4048
4057
|
* this work for additional information regarding copyright ownership.
|
|
4049
4058
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -4190,7 +4199,7 @@ var Implementation;
|
|
|
4190
4199
|
/**
|
|
4191
4200
|
* @return the project stage also emitted by the server:
|
|
4192
4201
|
* it cannot be cached and must be delivered over the server
|
|
4193
|
-
* The value for it comes from the requestInternal parameter of the
|
|
4202
|
+
* The value for it comes from the requestInternal parameter of the faces.js script called "stage".
|
|
4194
4203
|
*/
|
|
4195
4204
|
function getProjectStage() {
|
|
4196
4205
|
var _a, _b, _c;
|
|
@@ -4202,13 +4211,13 @@ var Implementation;
|
|
|
4202
4211
|
* @return the project stage or null
|
|
4203
4212
|
*/
|
|
4204
4213
|
function resolveProjectStateFromURL() {
|
|
4205
|
-
/* run through all script tags and try to find the one that includes
|
|
4214
|
+
/* run through all script tags and try to find the one that includes faces.js */
|
|
4206
4215
|
var foundStage = ExtDomQuery_1.ExtDomquery.searchJsfJsFor(/stage=([^&;]*)/).value;
|
|
4207
4216
|
return (foundStage in ProjectStages) ? foundStage : null;
|
|
4208
4217
|
}
|
|
4209
4218
|
Implementation.resolveProjectStateFromURL = resolveProjectStateFromURL;
|
|
4210
4219
|
/**
|
|
4211
|
-
* implementation of the
|
|
4220
|
+
* implementation of the faces.util.chain functionality
|
|
4212
4221
|
*
|
|
4213
4222
|
* @param source
|
|
4214
4223
|
* @param event
|
|
@@ -4282,16 +4291,16 @@ var Implementation;
|
|
|
4282
4291
|
*/
|
|
4283
4292
|
requestCtx.assign(Const_1.MYFACES).value = (_c = options.value) === null || _c === void 0 ? void 0 : _c.myfaces;
|
|
4284
4293
|
/**
|
|
4285
|
-
* binding contract the
|
|
4294
|
+
* binding contract the jakarta.faces.source must be set
|
|
4286
4295
|
*/
|
|
4287
4296
|
requestCtx.assign(Const_1.CTX_PARAM_PASS_THR, Const_1.P_PARTIAL_SOURCE).value = elementId;
|
|
4288
4297
|
/**
|
|
4289
|
-
*
|
|
4298
|
+
* jakarta.faces.partial.ajax must be set to true
|
|
4290
4299
|
*/
|
|
4291
4300
|
requestCtx.assign(Const_1.CTX_PARAM_PASS_THR, Const_1.P_AJAX).value = true;
|
|
4292
4301
|
/**
|
|
4293
4302
|
* if resetValues is set to true
|
|
4294
|
-
* then we have to set
|
|
4303
|
+
* then we have to set jakarta.faces.resetValues as well
|
|
4295
4304
|
* as pass through parameter
|
|
4296
4305
|
* the value has to be explicitly true, according to
|
|
4297
4306
|
* the specs jsdoc
|
|
@@ -4418,7 +4427,7 @@ var Implementation;
|
|
|
4418
4427
|
}
|
|
4419
4428
|
Implementation.sendError = sendError;
|
|
4420
4429
|
/**
|
|
4421
|
-
* @node optional element or id defining a rootnode where an element with the id "
|
|
4430
|
+
* @node optional element or id defining a rootnode where an element with the id "jakarta.faces.windowId" is hosted
|
|
4422
4431
|
* @return the client window id of the current window, if one is given if none is found, null is returned
|
|
4423
4432
|
*/
|
|
4424
4433
|
function getClientWindow(node) {
|
|
@@ -4472,7 +4481,7 @@ var Implementation;
|
|
|
4472
4481
|
Implementation.getClientWindow = getClientWindow;
|
|
4473
4482
|
/**
|
|
4474
4483
|
* collect and encode data for a given form element (must be of type form)
|
|
4475
|
-
* find the
|
|
4484
|
+
* find the jakarta.faces.ViewState element and encode its value as well!
|
|
4476
4485
|
* @return a concatenated string of the encoded values!
|
|
4477
4486
|
*
|
|
4478
4487
|
* @throws Error in case of the given element not being of type form!
|
|
@@ -4517,10 +4526,10 @@ var Implementation;
|
|
|
4517
4526
|
*
|
|
4518
4527
|
* This function does it for the render parameters
|
|
4519
4528
|
*
|
|
4520
|
-
* @param requestOptions the source options coming in as options object from
|
|
4529
|
+
* @param requestOptions the source options coming in as options object from faces.ajax.request (options parameter)
|
|
4521
4530
|
* @param targetContext the receiving target context
|
|
4522
4531
|
* @param issuingForm the issuing form
|
|
4523
|
-
* @param sourceElementId the executing element triggering the
|
|
4532
|
+
* @param sourceElementId the executing element triggering the faces.ajax.request (id of it)
|
|
4524
4533
|
*/
|
|
4525
4534
|
function assignRender(requestOptions, targetContext, issuingForm, sourceElementId) {
|
|
4526
4535
|
if (requestOptions.getIf(Const_1.RENDER).isPresent()) {
|
|
@@ -4534,10 +4543,10 @@ var Implementation;
|
|
|
4534
4543
|
*
|
|
4535
4544
|
* This function does it for the execute parameters
|
|
4536
4545
|
*
|
|
4537
|
-
* @param requestOptions the source options coming in as options object from
|
|
4546
|
+
* @param requestOptions the source options coming in as options object from faces.ajax.request (options parameter)
|
|
4538
4547
|
* @param targetContext the receiving target context
|
|
4539
4548
|
* @param issuingForm the issuing form
|
|
4540
|
-
* @param sourceElementId the executing element triggering the
|
|
4549
|
+
* @param sourceElementId the executing element triggering the faces.ajax.request (id of it)
|
|
4541
4550
|
*/
|
|
4542
4551
|
function assignExecute(requestOptions, targetContext, issuingForm, sourceElementId) {
|
|
4543
4552
|
if (requestOptions.getIf(Const_1.CTX_PARAM_EXECUTE).isPresent()) {
|
|
@@ -4559,7 +4568,8 @@ var Implementation;
|
|
|
4559
4568
|
* @param targetContext the target context receiving the value
|
|
4560
4569
|
*/
|
|
4561
4570
|
function assignClientWindowId(form, targetContext) {
|
|
4562
|
-
var
|
|
4571
|
+
var _a;
|
|
4572
|
+
var clientWindow = ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).getClientWindow(form.getAsElem(0).value);
|
|
4563
4573
|
if (clientWindow) {
|
|
4564
4574
|
targetContext.assign(Const_1.CTX_PARAM_PASS_THR, Const_1.P_CLIENT_WINDOW).value = clientWindow;
|
|
4565
4575
|
}
|
|
@@ -4673,7 +4683,7 @@ var Implementation;
|
|
|
4673
4683
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4674
4684
|
|
|
4675
4685
|
|
|
4676
|
-
|
|
4686
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4677
4687
|
* contributor license agreements. See the NOTICE file distributed with
|
|
4678
4688
|
* this work for additional information regarding copyright ownership.
|
|
4679
4689
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -4691,11 +4701,10 @@ var Implementation;
|
|
|
4691
4701
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4692
4702
|
exports.PushImpl = void 0;
|
|
4693
4703
|
/**
|
|
4694
|
-
* Typescript port of the
|
|
4704
|
+
* Typescript port of the faces.push part in the myfaces implementation
|
|
4695
4705
|
*/
|
|
4696
4706
|
//TODO still work in progress
|
|
4697
4707
|
//this is a 1:1 port for the time being
|
|
4698
|
-
var Jsf_1 = __webpack_require__(/*! ../api/Jsf */ "./src/main/typescript/api/Jsf.ts");
|
|
4699
4708
|
var Const_1 = __webpack_require__(/*! ./core/Const */ "./src/main/typescript/impl/core/Const.ts");
|
|
4700
4709
|
/**
|
|
4701
4710
|
* Implementation class for the push functionality
|
|
@@ -4729,6 +4738,7 @@ var PushImpl;
|
|
|
4729
4738
|
* @param {boolean} autoconnect Whether or not to immediately open the socket. Defaults to <code>false</code>.
|
|
4730
4739
|
*/
|
|
4731
4740
|
function init(socketClientId, uri, channel, onopen, onmessage, onclose, behaviorScripts, autoconnect) {
|
|
4741
|
+
var _a;
|
|
4732
4742
|
onclose = resolveFunction(onclose);
|
|
4733
4743
|
if (!window.WebSocket) { // IE6-9.
|
|
4734
4744
|
onclose(-1, channel);
|
|
@@ -4753,7 +4763,7 @@ var PushImpl;
|
|
|
4753
4763
|
}
|
|
4754
4764
|
}
|
|
4755
4765
|
if (autoconnect) {
|
|
4756
|
-
|
|
4766
|
+
((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).push.open(socketClientId);
|
|
4757
4767
|
}
|
|
4758
4768
|
}
|
|
4759
4769
|
PushImpl.init = init;
|
|
@@ -4912,7 +4922,7 @@ var PushImpl;
|
|
|
4912
4922
|
/***/ ((__unused_webpack_module, exports) => {
|
|
4913
4923
|
|
|
4914
4924
|
|
|
4915
|
-
|
|
4925
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4916
4926
|
* contributor license agreements. See the NOTICE file distributed with
|
|
4917
4927
|
* this work for additional information regarding copyright ownership.
|
|
4918
4928
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -4930,16 +4940,16 @@ var PushImpl;
|
|
|
4930
4940
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4931
4941
|
exports.CTX_PARAM_RST = exports.CTX_PARAM_TIMEOUT = exports.CTX_PARAM_DELAY = exports.CTX_PARAM_PASS_THR = exports.CTX_PARAM_TR_TYPE = exports.CTX_PARAM_SRC_CTL_ID = exports.CTX_PARAM_SRC_FRM_ID = exports.CTX_PARAM_MF_INTERNAL = exports.TIMEOUT_EVENT = exports.CLIENT_ERROR = exports.SERVER_ERROR = exports.MALFORMEDXML = exports.EMPTY_RESPONSE = exports.HTTPERROR = exports.RESPONSE_XML = exports.RESPONSE_TEXT = exports.ERROR_MESSAGE = exports.ERROR_NAME = exports.STATUS = exports.SOURCE = exports.SUCCESS = exports.COMPLETE = exports.BEGIN = exports.ON_EVENT = exports.ON_ERROR = exports.EVENT = exports.ERROR = exports.WINDOW_ID = exports.RENDER = exports.P_WINDOW_ID = exports.P_RESET_VALUES = exports.P_CLIENT_WINDOW = exports.P_EVT = exports.P_RENDER = exports.P_EXECUTE = exports.P_AJAX = exports.IDENT_FORM = exports.IDENT_THIS = exports.IDENT_NONE = exports.IDENT_ALL = exports.HTML_VIEWSTATE = exports.EMPTY_MAP = exports.EMPTY_STR = exports.EMPTY_FUNC = exports.P_VIEWBODY = exports.P_VIEWHEAD = exports.P_VIEWROOT = exports.P_VIEWSTATE = exports.PARTIAL_ID = exports.P_PARTIAL_SOURCE = void 0;
|
|
4932
4942
|
exports.RECONNECT_INTERVAL = exports.APPLIED_CLIENT_WINDOW = exports.APPLIED_VST = exports.REASON_EXPIRED = exports.MF_NONE = exports.SEL_SCRIPTS_STYLES = exports.MYFACES = exports.UPDATE_ELEMS = exports.UPDATE_FORMS = exports.CMD_REDIRECT = exports.CMD_EXTENSION = exports.CMD_ATTRIBUTES = exports.CMD_ERROR = exports.CMD_EVAL = exports.CMD_INSERT = exports.CMD_DELETE = exports.CMD_UPDATE = exports.CMD_CHANGES = exports.RESP_PARTIAL = exports.ATTR_ID = exports.ATTR_VALUE = exports.ATTR_NAME = exports.ATTR_URL = exports.ERR_NO_PARTIAL_RESPONSE = exports.PHASE_PROCESS_RESPONSE = exports.SEL_RESPONSE_XML = exports.SEL_CLIENT_WINDOW_ELEM = exports.SEL_VIEWSTATE_ELEM = exports.TAG_ATTR = exports.TAG_AFTER = exports.TAG_BEFORE = exports.TAG_BODY = exports.TAG_FORM = exports.TAG_HEAD = exports.STD_ACCEPT = exports.NO_TIMEOUT = exports.MULTIPART = exports.URL_ENCODED = exports.STATE_EVT_COMPLETE = exports.STATE_EVT_TIMEOUT = exports.STATE_EVT_BEGIN = exports.REQ_TYPE_POST = exports.REQ_TYPE_GET = exports.ENCODED_URL = exports.VAL_AJAX = exports.REQ_ACCEPT = exports.HEAD_FACES_REQ = exports.CONTENT_TYPE = exports.STAGE_DEVELOPMENT = exports.CTX_PARAM_EXECUTE = void 0;
|
|
4933
|
-
exports.UNKNOWN = exports.MAX_RECONNECT_ATTEMPTS = void 0;
|
|
4943
|
+
exports.remapNamespacesFor40 = exports.remapNamespacesFor23 = exports.UNKNOWN = exports.MAX_RECONNECT_ATTEMPTS = void 0;
|
|
4934
4944
|
/*
|
|
4935
4945
|
* [export const] constants
|
|
4936
4946
|
*/
|
|
4937
|
-
exports.P_PARTIAL_SOURCE = "
|
|
4947
|
+
exports.P_PARTIAL_SOURCE = "jakarta.faces.source";
|
|
4938
4948
|
exports.PARTIAL_ID = "partialId";
|
|
4939
|
-
exports.P_VIEWSTATE = "
|
|
4940
|
-
exports.P_VIEWROOT = "
|
|
4941
|
-
exports.P_VIEWHEAD = "
|
|
4942
|
-
exports.P_VIEWBODY = "
|
|
4949
|
+
exports.P_VIEWSTATE = "jakarta.faces.ViewState";
|
|
4950
|
+
exports.P_VIEWROOT = "jakarta.faces.ViewRoot";
|
|
4951
|
+
exports.P_VIEWHEAD = "jakarta.faces.ViewHead";
|
|
4952
|
+
exports.P_VIEWBODY = "jakarta.faces.ViewBody";
|
|
4943
4953
|
/*some useful definitions*/
|
|
4944
4954
|
exports.EMPTY_FUNC = Object.freeze(function () {
|
|
4945
4955
|
});
|
|
@@ -4951,13 +4961,13 @@ exports.IDENT_ALL = "@all";
|
|
|
4951
4961
|
exports.IDENT_NONE = "@none";
|
|
4952
4962
|
exports.IDENT_THIS = "@this";
|
|
4953
4963
|
exports.IDENT_FORM = "@form";
|
|
4954
|
-
exports.P_AJAX = "
|
|
4955
|
-
exports.P_EXECUTE = "
|
|
4956
|
-
exports.P_RENDER = "
|
|
4957
|
-
exports.P_EVT = "
|
|
4958
|
-
exports.P_CLIENT_WINDOW = "
|
|
4959
|
-
exports.P_RESET_VALUES = "
|
|
4960
|
-
exports.P_WINDOW_ID = "
|
|
4964
|
+
exports.P_AJAX = "jakarta.faces.partial.ajax";
|
|
4965
|
+
exports.P_EXECUTE = "jakarta.faces.partial.execute";
|
|
4966
|
+
exports.P_RENDER = "jakarta.faces.partial.render";
|
|
4967
|
+
exports.P_EVT = "jakarta.faces.partial.event";
|
|
4968
|
+
exports.P_CLIENT_WINDOW = "jakarta.faces.ClientWindow";
|
|
4969
|
+
exports.P_RESET_VALUES = "jakarta.faces.partial.resetValues";
|
|
4970
|
+
exports.P_WINDOW_ID = "jakarta.faces.windowId";
|
|
4961
4971
|
exports.RENDER = "render";
|
|
4962
4972
|
exports.WINDOW_ID = "windowId";
|
|
4963
4973
|
/* message types */
|
|
@@ -4996,7 +5006,7 @@ exports.CONTENT_TYPE = "Content-Type";
|
|
|
4996
5006
|
exports.HEAD_FACES_REQ = "Faces-Request";
|
|
4997
5007
|
exports.REQ_ACCEPT = "Accept";
|
|
4998
5008
|
exports.VAL_AJAX = "partial/ajax";
|
|
4999
|
-
exports.ENCODED_URL = "
|
|
5009
|
+
exports.ENCODED_URL = "jakarta.faces.encodedURL";
|
|
5000
5010
|
exports.REQ_TYPE_GET = "GET";
|
|
5001
5011
|
exports.REQ_TYPE_POST = "POST";
|
|
5002
5012
|
exports.STATE_EVT_BEGIN = "begin"; //TODO remove this
|
|
@@ -5045,6 +5055,43 @@ exports.APPLIED_CLIENT_WINDOW = "appliedClientWindow";
|
|
|
5045
5055
|
exports.RECONNECT_INTERVAL = 500;
|
|
5046
5056
|
exports.MAX_RECONNECT_ATTEMPTS = 25;
|
|
5047
5057
|
exports.UNKNOWN = "UNKNOWN";
|
|
5058
|
+
/**
|
|
5059
|
+
* helper to remap the namespaces variables for 2.3
|
|
5060
|
+
* from 2.3 to 4.0 every javax namespace has been changed
|
|
5061
|
+
* to faces
|
|
5062
|
+
*/
|
|
5063
|
+
function remapNamespacesFor23() {
|
|
5064
|
+
exports.P_PARTIAL_SOURCE = "javax.faces.source";
|
|
5065
|
+
exports.P_VIEWSTATE = "javax.faces.ViewState";
|
|
5066
|
+
exports.P_VIEWROOT = "javax.faces.ViewRoot";
|
|
5067
|
+
exports.P_VIEWHEAD = "javax.faces.ViewHead";
|
|
5068
|
+
exports.P_VIEWBODY = "javax.faces.ViewBody";
|
|
5069
|
+
exports.P_AJAX = "javax.faces.partial.ajax";
|
|
5070
|
+
exports.P_EXECUTE = "javax.faces.partial.execute";
|
|
5071
|
+
exports.P_RENDER = "javax.faces.partial.render";
|
|
5072
|
+
exports.P_EVT = "javax.faces.partial.event";
|
|
5073
|
+
exports.P_CLIENT_WINDOW = "javax.faces.ClientWindow";
|
|
5074
|
+
exports.P_RESET_VALUES = "javax.faces.partial.resetValues";
|
|
5075
|
+
exports.P_WINDOW_ID = "javax.faces.windowId";
|
|
5076
|
+
exports.ENCODED_URL = "javax.faces.encodedURL";
|
|
5077
|
+
}
|
|
5078
|
+
exports.remapNamespacesFor23 = remapNamespacesFor23;
|
|
5079
|
+
function remapNamespacesFor40() {
|
|
5080
|
+
exports.P_PARTIAL_SOURCE = "jakarta.faces.source";
|
|
5081
|
+
exports.P_VIEWSTATE = "jakarta.faces.ViewState";
|
|
5082
|
+
exports.P_VIEWROOT = "jakarta.faces.ViewRoot";
|
|
5083
|
+
exports.P_VIEWHEAD = "jakarta.faces.ViewHead";
|
|
5084
|
+
exports.P_VIEWBODY = "jakarta.faces.ViewBody";
|
|
5085
|
+
exports.P_AJAX = "jakarta.faces.partial.ajax";
|
|
5086
|
+
exports.P_EXECUTE = "jakarta.faces.partial.execute";
|
|
5087
|
+
exports.P_RENDER = "jakarta.faces.partial.render";
|
|
5088
|
+
exports.P_EVT = "jakarta.faces.partial.event";
|
|
5089
|
+
exports.P_CLIENT_WINDOW = "jakarta.faces.ClientWindow";
|
|
5090
|
+
exports.P_RESET_VALUES = "jakarta.faces.partial.resetValues";
|
|
5091
|
+
exports.P_WINDOW_ID = "jakarta.faces.windowId";
|
|
5092
|
+
exports.ENCODED_URL = "jakarta.faces.encodedURL";
|
|
5093
|
+
}
|
|
5094
|
+
exports.remapNamespacesFor40 = remapNamespacesFor40;
|
|
5048
5095
|
|
|
5049
5096
|
|
|
5050
5097
|
/***/ }),
|
|
@@ -5058,7 +5105,7 @@ exports.UNKNOWN = "UNKNOWN";
|
|
|
5058
5105
|
|
|
5059
5106
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5060
5107
|
exports.StateHolder = void 0;
|
|
5061
|
-
|
|
5108
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5062
5109
|
* contributor license agreements. See the NOTICE file distributed with
|
|
5063
5110
|
* this work for additional information regarding copyright ownership.
|
|
5064
5111
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -5108,7 +5155,7 @@ exports.StateHolder = StateHolder;
|
|
|
5108
5155
|
/***/ ((__unused_webpack_module, exports) => {
|
|
5109
5156
|
|
|
5110
5157
|
|
|
5111
|
-
|
|
5158
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5112
5159
|
* contributor license agreements. See the NOTICE file distributed with
|
|
5113
5160
|
* this work for additional information regarding copyright ownership.
|
|
5114
5161
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -5152,7 +5199,7 @@ var Messages = /** @class */ (function () {
|
|
|
5152
5199
|
/** @constant */
|
|
5153
5200
|
this.ERR_FORM = "Sourceform could not be determined, either because element is not attached to a form or we have multiple forms with named elements of the same identifier or name, stopping the ajax processing";
|
|
5154
5201
|
/** @constant */
|
|
5155
|
-
this.ERR_VIEWSTATE = "
|
|
5202
|
+
this.ERR_VIEWSTATE = "faces.viewState= param value not of type form!";
|
|
5156
5203
|
/** @constant */
|
|
5157
5204
|
this.ERR_TRANSPORT = "Transport type {0} does not exist";
|
|
5158
5205
|
/** @constant */
|
|
@@ -5233,7 +5280,7 @@ exports.Messages = Messages;
|
|
|
5233
5280
|
|
|
5234
5281
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5235
5282
|
exports.Assertions = void 0;
|
|
5236
|
-
|
|
5283
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5237
5284
|
* contributor license agreements. See the NOTICE file distributed with
|
|
5238
5285
|
* this work for additional information regarding copyright ownership.
|
|
5239
5286
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -5267,7 +5314,7 @@ var Assertions;
|
|
|
5267
5314
|
assertFunction(options.getIf(Const_1.ON_EVENT).value);
|
|
5268
5315
|
//improve the error messages if an empty elem is passed
|
|
5269
5316
|
//Assertions.assertElementExists(elem);
|
|
5270
|
-
assert(elem.isPresent(), getMessage("ERR_MUST_BE_PROVIDED1", "{0}: source must be provided or exist", "source element id"), "
|
|
5317
|
+
assert(elem.isPresent(), getMessage("ERR_MUST_BE_PROVIDED1", "{0}: source must be provided or exist", "source element id"), "faces.ajax.request", "ArgNotSet");
|
|
5271
5318
|
}
|
|
5272
5319
|
Assertions.assertRequestIntegrity = assertRequestIntegrity;
|
|
5273
5320
|
function assertUrlExists(node) {
|
|
@@ -5488,7 +5535,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
5488
5535
|
})();
|
|
5489
5536
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5490
5537
|
exports.ExtDQ = exports.ExtDomquery = void 0;
|
|
5491
|
-
|
|
5538
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5492
5539
|
* contributor license agreements. See the NOTICE file distributed with
|
|
5493
5540
|
* this work for additional information regarding copyright ownership.
|
|
5494
5541
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -5506,28 +5553,39 @@ exports.ExtDQ = exports.ExtDomquery = void 0;
|
|
|
5506
5553
|
var mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish/src/main/typescript/index_core.ts");
|
|
5507
5554
|
var Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/impl/core/Const.ts");
|
|
5508
5555
|
/**
|
|
5509
|
-
* detects whether a source is a
|
|
5556
|
+
* detects whether a source is a faces.js request
|
|
5510
5557
|
*
|
|
5511
|
-
* @param source the source string for the
|
|
5512
|
-
* @return true if a
|
|
5558
|
+
* @param source the source string for the faces.js request
|
|
5559
|
+
* @return true if a faces.js loading pattern is detected
|
|
5513
5560
|
* @constructor
|
|
5514
5561
|
*/
|
|
5515
|
-
var
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
|
|
5519
|
-
(source === null || source === void 0 ? void 0 : source.search(/\/jsf
|
|
5562
|
+
var IS_FACES_SOURCE = function (source) {
|
|
5563
|
+
//spec version smaller 4 we have to deal with the jsf namespace
|
|
5564
|
+
if (window.jsf) {
|
|
5565
|
+
// fallback into 2.3 api level
|
|
5566
|
+
return source && !!((source === null || source === void 0 ? void 0 : source.search(/\/javax\.faces\.resource.*\/jsf\.js.*/)) != -1 ||
|
|
5567
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/jsf-development\.js.*/)) != -1 ||
|
|
5568
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/jsf-uncompressed\.js.*/)) != -1 ||
|
|
5569
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/jsf[^.]*\.js.*ln=javax.faces.*/gi)) != -1);
|
|
5570
|
+
}
|
|
5571
|
+
return source && !!((source === null || source === void 0 ? void 0 : source.search(/\/jakarta\.faces\.resource.*\/faces\.js.*/)) != -1 ||
|
|
5572
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/faces-development\.js.*/)) != -1 ||
|
|
5573
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/faces-uncompressed\.js.*/)) != -1 ||
|
|
5574
|
+
(source === null || source === void 0 ? void 0 : source.search(/\/faces[^.]*\.js.*ln=jakarta.faces.*/gi)) != -1);
|
|
5520
5575
|
};
|
|
5521
5576
|
/**
|
|
5522
5577
|
* namespace myfaces.testscripts can be used as extension point for internal
|
|
5523
|
-
* tests, those will be handled similarly to
|
|
5578
|
+
* tests, those will be handled similarly to faces.js regarding
|
|
5524
5579
|
* reload blocking on ajax requests
|
|
5525
5580
|
*
|
|
5526
5581
|
* @param source the source to check
|
|
5527
5582
|
* @constructor
|
|
5528
5583
|
*/
|
|
5529
5584
|
var IS_INTERNAL_SOURCE = function (source) {
|
|
5530
|
-
|
|
5585
|
+
if (window === null || window === void 0 ? void 0 : window.jsf) {
|
|
5586
|
+
return source.search(/\/jsf[^.]*\.js.*ln=myfaces.testscripts.*/gi) != -1;
|
|
5587
|
+
}
|
|
5588
|
+
return source.search(/\/faces[^.]*\.js.*ln=myfaces.testscripts.*/gi) != -1;
|
|
5531
5589
|
};
|
|
5532
5590
|
var ATTR_SRC = 'src';
|
|
5533
5591
|
/**
|
|
@@ -5573,7 +5631,7 @@ var ExtDomquery = /** @class */ (function (_super) {
|
|
|
5573
5631
|
//byId ($)
|
|
5574
5632
|
if (this.value.isPresent()) {
|
|
5575
5633
|
var result = this.querySelectorAll("form input[name='" + Const_1.P_WINDOW_ID + "']");
|
|
5576
|
-
if (result.length >
|
|
5634
|
+
if (result.length > 1) {
|
|
5577
5635
|
throw Error("Multiple different windowIds found in document");
|
|
5578
5636
|
}
|
|
5579
5637
|
return (result.isPresent()) ? result.getAsElem(0).value.value : fetchWindowIdFromURL();
|
|
@@ -5587,7 +5645,7 @@ var ExtDomquery = /** @class */ (function (_super) {
|
|
|
5587
5645
|
});
|
|
5588
5646
|
Object.defineProperty(ExtDomquery.prototype, "nonce", {
|
|
5589
5647
|
/*
|
|
5590
|
-
* determines the
|
|
5648
|
+
* determines the faces.js nonce and adds them to the namespace
|
|
5591
5649
|
* this is done once and only lazily
|
|
5592
5650
|
*/
|
|
5593
5651
|
get: function () {
|
|
@@ -5609,7 +5667,7 @@ var ExtDomquery = /** @class */ (function (_super) {
|
|
|
5609
5667
|
.querySelectorAll("script[src], link[src]")
|
|
5610
5668
|
.lazyStream
|
|
5611
5669
|
.filter(function (item) { return item.attr("nonce").value != null && item.attr(ATTR_SRC) != null; })
|
|
5612
|
-
.map(function (item) { return
|
|
5670
|
+
.map(function (item) { return IS_FACES_SOURCE(item.attr(ATTR_SRC).value); })
|
|
5613
5671
|
.first();
|
|
5614
5672
|
if (nonceScript.isPresent()) {
|
|
5615
5673
|
nonce.value = mona_dish_1.DomQuery.byId(nonceScript.value, true).attr("nonce").value;
|
|
@@ -5623,14 +5681,14 @@ var ExtDomquery = /** @class */ (function (_super) {
|
|
|
5623
5681
|
return new ExtDomquery(document).searchJsfJsFor(item);
|
|
5624
5682
|
};
|
|
5625
5683
|
/**
|
|
5626
|
-
* searches the embedded
|
|
5684
|
+
* searches the embedded faces.js for items like separator char etc..
|
|
5627
5685
|
* expects a match as variable under position 1 in the result match
|
|
5628
5686
|
* @param rexp
|
|
5629
5687
|
*/
|
|
5630
5688
|
ExtDomquery.prototype.searchJsfJsFor = function (rexp) {
|
|
5631
5689
|
//perfect application for lazy stream
|
|
5632
5690
|
return mona_dish_1.DQ.querySelectorAll("script[src], link[src]").lazyStream
|
|
5633
|
-
.filter(function (item) { return
|
|
5691
|
+
.filter(function (item) { return IS_FACES_SOURCE(item.attr(ATTR_SRC).value); })
|
|
5634
5692
|
.map(function (item) { return item.attr(ATTR_SRC).value.match(rexp); })
|
|
5635
5693
|
.filter(function (item) { return item != null && item.length > 1; })
|
|
5636
5694
|
.map(function (result) {
|
|
@@ -5648,7 +5706,7 @@ var ExtDomquery = /** @class */ (function (_super) {
|
|
|
5648
5706
|
ExtDomquery.prototype.runScripts = function (whilteListed) {
|
|
5649
5707
|
var whitelistFunc = function (src) {
|
|
5650
5708
|
var _a;
|
|
5651
|
-
return ((_a = whilteListed === null || whilteListed === void 0 ? void 0 : whilteListed(src)) !== null && _a !== void 0 ? _a : true) && !
|
|
5709
|
+
return ((_a = whilteListed === null || whilteListed === void 0 ? void 0 : whilteListed(src)) !== null && _a !== void 0 ? _a : true) && !IS_FACES_SOURCE(src) && !IS_INTERNAL_SOURCE(src);
|
|
5652
5710
|
};
|
|
5653
5711
|
return _super.prototype.runScripts.call(this, whitelistFunc);
|
|
5654
5712
|
};
|
|
@@ -5679,7 +5737,7 @@ exports.ExtDQ = mona_dish_1.DQ;
|
|
|
5679
5737
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5680
5738
|
|
|
5681
5739
|
|
|
5682
|
-
|
|
5740
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5683
5741
|
* contributor license agreements. See the NOTICE file distributed with
|
|
5684
5742
|
* this work for additional information regarding copyright ownership.
|
|
5685
5743
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -5920,7 +5978,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
5920
5978
|
})();
|
|
5921
5979
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5922
5980
|
exports.ErrorData = exports.ErrorType = void 0;
|
|
5923
|
-
|
|
5981
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5924
5982
|
* contributor license agreements. See the NOTICE file distributed with
|
|
5925
5983
|
* this work for additional information regarding copyright ownership.
|
|
5926
5984
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -6020,7 +6078,7 @@ exports.ErrorData = ErrorData;
|
|
|
6020
6078
|
|
|
6021
6079
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6022
6080
|
exports.EventData = void 0;
|
|
6023
|
-
|
|
6081
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
6024
6082
|
* contributor license agreements. See the NOTICE file distributed with
|
|
6025
6083
|
* this work for additional information regarding copyright ownership.
|
|
6026
6084
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -6047,7 +6105,8 @@ var EventData = /** @class */ (function () {
|
|
|
6047
6105
|
eventData.status = name;
|
|
6048
6106
|
var sourceId = context.getIf(Const_1.SOURCE)
|
|
6049
6107
|
.orElseLazy(function () { return context.getIf(Const_1.P_PARTIAL_SOURCE).value; })
|
|
6050
|
-
.orElseLazy(function () { return context.getIf(Const_1.CTX_PARAM_PASS_THR, Const_1.P_PARTIAL_SOURCE).value; })
|
|
6108
|
+
.orElseLazy(function () { return context.getIf(Const_1.CTX_PARAM_PASS_THR, Const_1.P_PARTIAL_SOURCE).value; })
|
|
6109
|
+
.value;
|
|
6051
6110
|
if (sourceId) {
|
|
6052
6111
|
eventData.source = mona_dish_1.DQ.byId(sourceId, true).first().value.value;
|
|
6053
6112
|
}
|
|
@@ -6072,7 +6131,7 @@ exports.EventData = EventData;
|
|
|
6072
6131
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6073
6132
|
|
|
6074
6133
|
|
|
6075
|
-
|
|
6134
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
6076
6135
|
* contributor license agreements. See the NOTICE file distributed with
|
|
6077
6136
|
* this work for additional information regarding copyright ownership.
|
|
6078
6137
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -6198,7 +6257,7 @@ exports.getEventTarget = getEventTarget;
|
|
|
6198
6257
|
/**
|
|
6199
6258
|
* resolves a bunch of default values
|
|
6200
6259
|
* which can be further processed from the given
|
|
6201
|
-
* call parameters of
|
|
6260
|
+
* call parameters of faces.ajax.request
|
|
6202
6261
|
*
|
|
6203
6262
|
* @param event
|
|
6204
6263
|
* @param opts
|
|
@@ -6224,7 +6283,7 @@ exports.resolveDefaults = resolveDefaults;
|
|
|
6224
6283
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6225
6284
|
|
|
6226
6285
|
|
|
6227
|
-
|
|
6286
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
6228
6287
|
* contributor license agreements. See the NOTICE file distributed with
|
|
6229
6288
|
* this work for additional information regarding copyright ownership.
|
|
6230
6289
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -6336,7 +6395,7 @@ function resolveSourceElementId(context, internalContext) {
|
|
|
6336
6395
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6337
6396
|
|
|
6338
6397
|
|
|
6339
|
-
|
|
6398
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
6340
6399
|
* contributor license agreements. See the NOTICE file distributed with
|
|
6341
6400
|
* this work for additional information regarding copyright ownership.
|
|
6342
6401
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -6360,8 +6419,8 @@ var ResonseDataResolver_1 = __webpack_require__(/*! ./ResonseDataResolver */ "./
|
|
|
6360
6419
|
var Response;
|
|
6361
6420
|
(function (Response) {
|
|
6362
6421
|
/**
|
|
6363
|
-
* Standardized
|
|
6364
|
-
* this one is called straight from
|
|
6422
|
+
* Standardized faces.js response
|
|
6423
|
+
* this one is called straight from faces.js.response
|
|
6365
6424
|
*
|
|
6366
6425
|
* The processing follows the spec by going for the responseXML
|
|
6367
6426
|
* and processing its tags
|
|
@@ -6512,7 +6571,7 @@ var Response;
|
|
|
6512
6571
|
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6513
6572
|
|
|
6514
6573
|
|
|
6515
|
-
|
|
6574
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
6516
6575
|
* contributor license agreements. See the NOTICE file distributed with
|
|
6517
6576
|
* this work for additional information regarding copyright ownership.
|
|
6518
6577
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -6884,11 +6943,11 @@ var ResponseProcessor = /** @class */ (function () {
|
|
|
6884
6943
|
* @returns true of it ii
|
|
6885
6944
|
*/
|
|
6886
6945
|
ResponseProcessor.isViewStateNode = function (node) {
|
|
6887
|
-
var _a, _b, _c, _d, _e, _f;
|
|
6888
|
-
var separatorChar = window.jsf.separatorchar;
|
|
6889
|
-
return "undefined" != typeof ((
|
|
6890
|
-
((
|
|
6891
|
-
((
|
|
6946
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6947
|
+
var separatorChar = ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).separatorchar;
|
|
6948
|
+
return "undefined" != typeof ((_b = node === null || node === void 0 ? void 0 : node.id) === null || _b === void 0 ? void 0 : _b.value) && (((_c = node === null || node === void 0 ? void 0 : node.id) === null || _c === void 0 ? void 0 : _c.value) == Const_1.P_VIEWSTATE ||
|
|
6949
|
+
((_e = (_d = node === null || node === void 0 ? void 0 : node.id) === null || _d === void 0 ? void 0 : _d.value) === null || _e === void 0 ? void 0 : _e.indexOf([separatorChar, Const_1.P_VIEWSTATE].join(Const_1.EMPTY_STR))) != -1 ||
|
|
6950
|
+
((_g = (_f = node === null || node === void 0 ? void 0 : node.id) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.indexOf([Const_1.P_VIEWSTATE, separatorChar].join(Const_1.EMPTY_STR))) != -1);
|
|
6892
6951
|
};
|
|
6893
6952
|
/**
|
|
6894
6953
|
* incoming client window node also needs special processing
|
|
@@ -6897,11 +6956,11 @@ var ResponseProcessor = /** @class */ (function () {
|
|
|
6897
6956
|
* @returns true of it ii
|
|
6898
6957
|
*/
|
|
6899
6958
|
ResponseProcessor.isClientWindowNode = function (node) {
|
|
6900
|
-
var _a, _b, _c, _d, _e, _f;
|
|
6901
|
-
var separatorChar = window.jsf.separatorchar;
|
|
6902
|
-
return "undefined" != typeof ((
|
|
6903
|
-
((
|
|
6904
|
-
((
|
|
6959
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
6960
|
+
var separatorChar = ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).separatorchar;
|
|
6961
|
+
return "undefined" != typeof ((_b = node === null || node === void 0 ? void 0 : node.id) === null || _b === void 0 ? void 0 : _b.value) && (((_c = node === null || node === void 0 ? void 0 : node.id) === null || _c === void 0 ? void 0 : _c.value) == Const_1.P_CLIENT_WINDOW ||
|
|
6962
|
+
((_e = (_d = node === null || node === void 0 ? void 0 : node.id) === null || _d === void 0 ? void 0 : _d.value) === null || _e === void 0 ? void 0 : _e.indexOf([separatorChar, Const_1.P_CLIENT_WINDOW].join(Const_1.EMPTY_STR))) != -1 ||
|
|
6963
|
+
((_g = (_f = node === null || node === void 0 ? void 0 : node.id) === null || _f === void 0 ? void 0 : _f.value) === null || _g === void 0 ? void 0 : _g.indexOf([Const_1.P_CLIENT_WINDOW, separatorChar].join(Const_1.EMPTY_STR))) != -1);
|
|
6905
6964
|
};
|
|
6906
6965
|
ResponseProcessor.prototype.triggerOnError = function (errorData) {
|
|
6907
6966
|
this.externalContext.getIf(Const_1.ON_ERROR).orElse(this.internalContext.getIf(Const_1.ON_ERROR).value).orElse(Const_1.EMPTY_FUNC).value(errorData);
|
|
@@ -6946,7 +7005,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
6946
7005
|
};
|
|
6947
7006
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6948
7007
|
exports.XhrFormData = void 0;
|
|
6949
|
-
|
|
7008
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
6950
7009
|
* contributor license agreements. See the NOTICE file distributed with
|
|
6951
7010
|
* this work for additional information regarding copyright ownership.
|
|
6952
7011
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -6970,7 +7029,7 @@ var isString = mona_dish_1.Lang.isString;
|
|
|
6970
7029
|
*
|
|
6971
7030
|
* We cannot use standard html5 forms everywhere
|
|
6972
7031
|
* due to api constraints on the HTML Form object in IE11
|
|
6973
|
-
* and due to the url encoding constraint given by the
|
|
7032
|
+
* and due to the url encoding constraint given by the faces.js spec
|
|
6974
7033
|
*
|
|
6975
7034
|
* probably only one needed and one overlay!
|
|
6976
7035
|
* the entire file input storing probably is redundant now
|
|
@@ -7142,7 +7201,7 @@ var XhrFormData = /** @class */ (function (_super) {
|
|
|
7142
7201
|
/*
|
|
7143
7202
|
* Spec. 13.3.1
|
|
7144
7203
|
* Collect and encode input elements.
|
|
7145
|
-
* Additionally the hidden element
|
|
7204
|
+
* Additionally the hidden element jakarta.faces.ViewState
|
|
7146
7205
|
* Enhancement partial page submit
|
|
7147
7206
|
*
|
|
7148
7207
|
*/
|
|
@@ -7194,7 +7253,7 @@ exports.XhrFormData = XhrFormData;
|
|
|
7194
7253
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7195
7254
|
|
|
7196
7255
|
|
|
7197
|
-
|
|
7256
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
7198
7257
|
* contributor license agreements. See the NOTICE file distributed with
|
|
7199
7258
|
* this work for additional information regarding copyright ownership.
|
|
7200
7259
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -7271,6 +7330,7 @@ var XhrRequest = /** @class */ (function () {
|
|
|
7271
7330
|
}
|
|
7272
7331
|
XhrRequest.prototype.start = function () {
|
|
7273
7332
|
var _this = this;
|
|
7333
|
+
var _a;
|
|
7274
7334
|
var ignoreErr = failSaveExecute;
|
|
7275
7335
|
var xhrObject = this.xhrObject;
|
|
7276
7336
|
var executesArr = function () {
|
|
@@ -7278,7 +7338,7 @@ var XhrRequest = /** @class */ (function () {
|
|
|
7278
7338
|
};
|
|
7279
7339
|
try {
|
|
7280
7340
|
var formElement = this.sourceForm.getAsElem(0).value;
|
|
7281
|
-
var viewState = jsf.getViewState(formElement);
|
|
7341
|
+
var viewState = ((_a = window === null || window === void 0 ? void 0 : window.faces) !== null && _a !== void 0 ? _a : window === null || window === void 0 ? void 0 : window.jsf).getViewState(formElement);
|
|
7282
7342
|
//encoded we need to decode
|
|
7283
7343
|
//We generated a base representation of the current form
|
|
7284
7344
|
//in case someone has overloaded the viewstate with addtional decorators we merge
|
|
@@ -7402,14 +7462,14 @@ var XhrRequest = /** @class */ (function () {
|
|
|
7402
7462
|
reject();
|
|
7403
7463
|
};
|
|
7404
7464
|
XhrRequest.prototype.onSuccess = function (resolve) {
|
|
7405
|
-
var _a, _b;
|
|
7465
|
+
var _a, _b, _c;
|
|
7406
7466
|
this.sendEvent(Const_1.COMPLETE);
|
|
7407
7467
|
//malforms always result in empty response xml
|
|
7408
7468
|
if (!((_a = this === null || this === void 0 ? void 0 : this.xhrObject) === null || _a === void 0 ? void 0 : _a.responseXML)) {
|
|
7409
7469
|
this.handleMalFormedXML(resolve);
|
|
7410
7470
|
return;
|
|
7411
7471
|
}
|
|
7412
|
-
jsf.ajax.response(this.xhrObject, (
|
|
7472
|
+
((_b = window === null || window === void 0 ? void 0 : window.faces) !== null && _b !== void 0 ? _b : window.jsf).ajax.response(this.xhrObject, (_c = this.responseContext.value) !== null && _c !== void 0 ? _c : {});
|
|
7413
7473
|
};
|
|
7414
7474
|
XhrRequest.prototype.handleMalFormedXML = function (resolve) {
|
|
7415
7475
|
var _a;
|
|
@@ -7492,7 +7552,7 @@ exports.XhrRequest = XhrRequest;
|
|
|
7492
7552
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7493
7553
|
|
|
7494
7554
|
|
|
7495
|
-
|
|
7555
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
7496
7556
|
* contributor license agreements. See the NOTICE file distributed with
|
|
7497
7557
|
* this work for additional information regarding copyright ownership.
|
|
7498
7558
|
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
@@ -7510,7 +7570,6 @@ exports.XhrRequest = XhrRequest;
|
|
|
7510
7570
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7511
7571
|
exports.oam = void 0;
|
|
7512
7572
|
var mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish/src/main/typescript/index_core.ts");
|
|
7513
|
-
//TODO add unit tests to check all this here that it works just as before
|
|
7514
7573
|
var oam;
|
|
7515
7574
|
(function (oam) {
|
|
7516
7575
|
/**
|
|
@@ -7626,15 +7685,50 @@ var oam;
|
|
|
7626
7685
|
/******/ }
|
|
7627
7686
|
/******/
|
|
7628
7687
|
/************************************************************************/
|
|
7629
|
-
|
|
7630
|
-
|
|
7631
|
-
|
|
7632
|
-
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
|
|
7637
|
-
|
|
7688
|
+
var __webpack_exports__ = {};
|
|
7689
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
7690
|
+
(() => {
|
|
7691
|
+
var exports = __webpack_exports__;
|
|
7692
|
+
/*!****************************************!*\
|
|
7693
|
+
!*** ./src/main/typescript/api/jsf.ts ***!
|
|
7694
|
+
\****************************************/
|
|
7695
|
+
|
|
7696
|
+
var _a;
|
|
7697
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7698
|
+
exports.jsf = void 0;
|
|
7699
|
+
/*! Licensed to the Apache Software Foundation (ASF) under one or more
|
|
7700
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
7701
|
+
* this work for additional information regarding copyright ownership.
|
|
7702
|
+
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
7703
|
+
* (the "License"); you may not use this file except in compliance with
|
|
7704
|
+
* the License. You may obtain a copy of the License at
|
|
7705
|
+
*
|
|
7706
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
7707
|
+
*
|
|
7708
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7709
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
7710
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
7711
|
+
* See the License for the specific language governing permissions and
|
|
7712
|
+
* limitations under the License.
|
|
7713
|
+
*/
|
|
7714
|
+
var faces_1 = __webpack_require__(/*! ./faces */ "./src/main/typescript/api/faces.ts");
|
|
7715
|
+
var Const_1 = __webpack_require__(/*! ../impl/core/Const */ "./src/main/typescript/impl/core/Const.ts");
|
|
7716
|
+
/**
|
|
7717
|
+
* jsf.js back compatibility shim layer
|
|
7718
|
+
* the entire namespace for jsf and javax still is provided
|
|
7719
|
+
*/
|
|
7720
|
+
if (!window.jsf) {
|
|
7721
|
+
window['jsf'] = (_a = window === null || window === void 0 ? void 0 : window.jsf) !== null && _a !== void 0 ? _a : faces_1.faces;
|
|
7722
|
+
window.jsf.specversion = 230000;
|
|
7723
|
+
(0, Const_1.remapNamespacesFor23)();
|
|
7724
|
+
}
|
|
7725
|
+
exports.jsf = window.jsf;
|
|
7726
|
+
|
|
7727
|
+
})();
|
|
7728
|
+
|
|
7729
|
+
var __webpack_export_target__ = window;
|
|
7730
|
+
for(var i in __webpack_exports__) __webpack_export_target__[i] = __webpack_exports__[i];
|
|
7731
|
+
if(__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, "__esModule", { value: true });
|
|
7638
7732
|
/******/ })()
|
|
7639
7733
|
;
|
|
7640
7734
|
//# sourceMappingURL=jsf-development.js.map
|