jsf.js_next_gen 4.0.0-beta-7 → 4.0.0-beta-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/functions/faces.getClientWindow.html +2 -1
- package/dist/docs/functions/faces.getProjectStage.html +2 -1
- package/dist/docs/functions/faces.getViewState.html +2 -1
- package/dist/docs/modules/faces.html +3 -1
- package/dist/docs/variables/faces.contextpath.html +55 -0
- package/dist/docs/variables/faces.implversion.html +2 -1
- package/dist/docs/variables/faces.separatorchar.html +4 -3
- package/dist/docs/variables/faces.specversion.html +12 -2
- package/dist/window/faces-development.js +21 -3
- 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 +22 -4
- package/dist/window/jsf-development.js.br +0 -0
- package/dist/window/jsf-development.js.gz +0 -0
- package/dist/window/jsf-development.js.map +1 -1
- package/dist/window/jsf.js +1 -1
- package/dist/window/jsf.js.br +0 -0
- package/dist/window/jsf.js.gz +0 -0
- package/dist/window/jsf.js.map +1 -1
- package/package.json +1 -1
- package/src/main/typescript/api/_api.ts +15 -2
- package/src/main/typescript/api/faces.ts +2 -0
- package/src/main/typescript/api/jsf.ts +2 -3
- package/src/main/typescript/impl/AjaxImpl.ts +12 -0
- package/target/api/Jsf.js +1 -1
- package/target/api/Jsf.js.map +1 -1
- package/target/api/_api.js +12 -2
- package/target/api/_api.js.map +1 -1
- package/target/api/faces.js.map +1 -1
- package/target/impl/AjaxImpl.js +10 -0
- package/target/impl/AjaxImpl.js.map +1 -1
|
@@ -3389,7 +3389,8 @@ const Const_1 = __webpack_require__(/*! ../impl/core/Const */ "./src/main/typesc
|
|
|
3389
3389
|
//as per spec requirement
|
|
3390
3390
|
var faces;
|
|
3391
3391
|
(function (faces) {
|
|
3392
|
-
|
|
3392
|
+
faces.contextpath = '#{facesContext.externalContext.requestContextPath}';
|
|
3393
|
+
/**
|
|
3393
3394
|
* Version of the implementation for the faces.ts.
|
|
3394
3395
|
* <p />
|
|
3395
3396
|
* as specified within the jsf specifications faces.html:
|
|
@@ -3411,10 +3412,15 @@ var faces;
|
|
|
3411
3412
|
*/
|
|
3412
3413
|
faces.implversion = 0;
|
|
3413
3414
|
/**
|
|
3414
|
-
* SeparatorChar as defined by
|
|
3415
|
+
* SeparatorChar as defined by facesContext.getNamingContainerSeparatorChar()
|
|
3415
3416
|
* @type {Char}
|
|
3416
3417
|
*/
|
|
3417
3418
|
faces.separatorchar = getSeparatorChar();
|
|
3419
|
+
/**
|
|
3420
|
+
* Context Path as defined externalContext.requestContextPath
|
|
3421
|
+
*/
|
|
3422
|
+
faces.contextpath = '#{facesContext.externalContext.requestContextPath}';
|
|
3423
|
+
// we do not have a fallback here, for now
|
|
3418
3424
|
/**
|
|
3419
3425
|
* This method is responsible for the return of a given project stage as defined
|
|
3420
3426
|
* by the jsf specification.
|
|
@@ -3457,7 +3463,9 @@ var faces;
|
|
|
3457
3463
|
faces.getClientWindow = getClientWindow;
|
|
3458
3464
|
//private helper functions
|
|
3459
3465
|
function getSeparatorChar() {
|
|
3460
|
-
|
|
3466
|
+
const sep = '#{facesContext.namingContainerSeparatorChar}';
|
|
3467
|
+
//We now enable standalone mode, the separator char was not mapped we make a fallback to 2.3 behavior
|
|
3468
|
+
return (faces.separatorchar.indexOf(/\#\{/gi) != -1) ? AjaxImpl_1.Implementation.getSeparatorChar() : sep;
|
|
3461
3469
|
}
|
|
3462
3470
|
let ajax;
|
|
3463
3471
|
(function (ajax) {
|
|
@@ -3751,6 +3759,16 @@ var Implementation;
|
|
|
3751
3759
|
return (_c = (_b = (_a = resolveGlobalConfig()) === null || _a === void 0 ? void 0 : _a.separator) !== null && _b !== void 0 ? _b : this === null || this === void 0 ? void 0 : this.separator) !== null && _c !== void 0 ? _c : (separator = ExtDomQuery_1.ExtDomquery.searchJsfJsFor(/separator=([^&;]*)/).orElse(":").value);
|
|
3752
3760
|
}
|
|
3753
3761
|
Implementation.getSeparatorChar = getSeparatorChar;
|
|
3762
|
+
/**
|
|
3763
|
+
* fetches the separator char from the given script tags
|
|
3764
|
+
*
|
|
3765
|
+
* @return {string} the separator char for the given script tags
|
|
3766
|
+
*/
|
|
3767
|
+
function getContextPath() {
|
|
3768
|
+
var _a, _b, _c;
|
|
3769
|
+
return (_c = (_b = (_a = resolveGlobalConfig()) === null || _a === void 0 ? void 0 : _a.separator) !== null && _b !== void 0 ? _b : this === null || this === void 0 ? void 0 : this.separator) !== null && _c !== void 0 ? _c : (separator = ExtDomQuery_1.ExtDomquery.searchJsfJsFor(/separator=([^&;]*)/).orElse(":").value);
|
|
3770
|
+
}
|
|
3771
|
+
Implementation.getContextPath = getContextPath;
|
|
3754
3772
|
/**
|
|
3755
3773
|
* this is for testing purposes only, since AjaxImpl is a module
|
|
3756
3774
|
* we need to reset for every unit test its internal states
|
|
@@ -7166,6 +7184,7 @@ if (!window.jsf) {
|
|
|
7166
7184
|
const faces = (__webpack_require__(/*! ./_api */ "./src/main/typescript/api/_api.ts").faces);
|
|
7167
7185
|
window['jsf'] = (_a = window === null || window === void 0 ? void 0 : window.jsf) !== null && _a !== void 0 ? _a : faces;
|
|
7168
7186
|
window.jsf.specversion = 230000;
|
|
7187
|
+
delete window.jsf.contextpath;
|
|
7169
7188
|
}
|
|
7170
7189
|
if (!((_b = window === null || window === void 0 ? void 0 : window.myfaces) === null || _b === void 0 ? void 0 : _b.ab)) {
|
|
7171
7190
|
const myfaces = (__webpack_require__(/*! ./_api */ "./src/main/typescript/api/_api.ts").myfaces);
|
|
@@ -7178,7 +7197,6 @@ if (!((_b = window === null || window === void 0 ? void 0 : window.myfaces) ===
|
|
|
7178
7197
|
Object.keys(myfaces).forEach(key => { var _a, _b; return window.myfaces[key] = (_b = (_a = window.myfaces) === null || _a === void 0 ? void 0 : _a[key]) !== null && _b !== void 0 ? _b : myfaces[key]; });
|
|
7179
7198
|
}
|
|
7180
7199
|
}
|
|
7181
|
-
alert("init");
|
|
7182
7200
|
exports.jsf = window.jsf;
|
|
7183
7201
|
exports.myfaces = window.myfaces;
|
|
7184
7202
|
|
|
Binary file
|
|
Binary file
|