jsf.js_next_gen 1.0.0-beta-18 → 1.0.0-beta-20
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/README.md +5 -2
- package/dist/docs/assets/search.js +1 -1
- package/dist/docs/functions/myfaces.ab.html +1 -0
- package/dist/docs/index.html +5 -2
- package/dist/docs/modules/myfaces.html +5 -0
- package/dist/docs/variables/myfaces.oam.html +50 -0
- package/dist/window/jsf-development.js +204 -13
- package/dist/window/jsf-development.js.map +1 -1
- package/dist/window/jsf.js +2 -2
- 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/remap.js +1 -1
- package/remap.js.map +1 -1
- package/remap.ts +1 -1
- package/src/main/typescript/api/Jsf.ts +8 -10
- package/src/main/typescript/impl/AjaxImpl.ts +1 -1
- package/src/main/typescript/impl/PushImpl.ts +16 -0
- package/src/main/typescript/impl/util/Assertions.ts +15 -0
- package/src/main/typescript/impl/util/AsyncQueue.ts +15 -0
- package/src/main/typescript/impl/util/ExtDomQuery.ts +15 -0
- package/src/main/typescript/impl/util/IListener.ts +18 -0
- package/src/main/typescript/impl/xhrCore/ErrorData.ts +15 -0
- package/src/main/typescript/impl/xhrCore/EventData.ts +15 -0
- package/src/main/typescript/impl/xhrCore/IResponseProcessor.ts +15 -0
- package/src/main/typescript/impl/xhrCore/Response.ts +5 -6
- package/src/main/typescript/myfaces/OamSubmit.ts +119 -0
- package/src/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.ts +0 -5
- package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +8 -4
- package/src/main/typescript/test/impl/SeparatorCharsTest.spec.ts +0 -1
- package/src/main/typescript/test/myfaces/OamSubmit.spec.ts +141 -0
- package/src/main/typescript/test/xhrCore/FakeWebsocket.ts +15 -0
- package/src/main/typescript/test/xhrCore/FileUploadTest.spec.ts +15 -0
- package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +15 -0
- package/src/main/typescript/test/xhrCore/WebsocketTest.ts +15 -0
- package/src/main/typescript/tsconfig.json +1 -0
- package/target/api/Jsf.js +6 -5
- package/target/api/Jsf.js.map +1 -1
- package/target/impl/PushImpl.js +17 -2
- package/target/impl/PushImpl.js.map +1 -1
- package/target/impl/util/Assertions.js +15 -0
- package/target/impl/util/Assertions.js.map +1 -1
- package/target/impl/util/AsyncQueue.js.map +1 -1
- package/target/impl/util/ExtDomQuery.js +15 -0
- package/target/impl/util/ExtDomQuery.js.map +1 -1
- package/target/impl/util/IListener.js +3 -0
- package/target/impl/util/IListener.js.map +1 -0
- package/target/impl/xhrCore/ErrorData.js +15 -0
- package/target/impl/xhrCore/ErrorData.js.map +1 -1
- package/target/impl/xhrCore/EventData.js +15 -0
- package/target/impl/xhrCore/EventData.js.map +1 -1
- package/target/impl/xhrCore/Response.js +5 -5
- package/target/impl/xhrCore/Response.js.map +1 -1
- package/target/myfaces/OamSubmit.js +105 -0
- package/target/myfaces/OamSubmit.js.map +1 -0
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js +24 -1
- package/target/test/frameworkBase/_ext/monadish/DomQueryTest.spec.js.map +1 -1
- package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js +0 -5
- package/target/test/frameworkBase/_ext/monadish/MonadTest.spec.js.map +1 -1
- package/target/test/frameworkBase/_ext/shared/StandardInits.js +35 -6
- package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
- package/target/test/impl/ImplTest.spec.js +24 -1
- package/target/test/impl/ImplTest.spec.js.map +1 -1
- package/target/test/impl/SeparatorCharsTest.spec.js +24 -2
- package/target/test/impl/SeparatorCharsTest.spec.js.map +1 -1
- package/target/test/myfaces/OamSubmit.spec.js +125 -0
- package/target/test/myfaces/OamSubmit.spec.js.map +1 -0
- package/target/test/queue/AsynchronousQueueTest.spec.js +24 -1
- package/target/test/queue/AsynchronousQueueTest.spec.js.map +1 -1
- package/target/test/xhrCore/EventTests.spec.js +24 -1
- package/target/test/xhrCore/EventTests.spec.js.map +1 -1
- package/target/test/xhrCore/FakeWebsocket.js +15 -0
- package/target/test/xhrCore/FakeWebsocket.js.map +1 -1
- package/target/test/xhrCore/FileUploadTest.spec.js +39 -1
- package/target/test/xhrCore/FileUploadTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestParamsTest.spec.js +39 -1
- package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
- package/target/test/xhrCore/RequestTest.spec.js +24 -1
- package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
- package/target/test/xhrCore/ResponseTest.spec.js +24 -1
- package/target/test/xhrCore/ResponseTest.spec.js.map +1 -1
- package/target/test/xhrCore/ShadowDomTest.spec.js +24 -1
- package/target/test/xhrCore/ShadowDomTest.spec.js.map +1 -1
- package/target/test/xhrCore/WebsocketTest.js +39 -1
- package/target/test/xhrCore/WebsocketTest.js.map +1 -1
- package/target/test/xhrCore/XhrFormDataTest.spec.js +24 -1
- package/target/test/xhrCore/XhrFormDataTest.spec.js.map +1 -1
- package/webpack.config.js +0 -7
- package/webpack.config.js.map +1 -1
- package/webpack.config.ts +0 -7
- package/src/main/typescript/impl/util/ListenerQueue.ts +0 -3
package/README.md
CHANGED
|
@@ -34,8 +34,11 @@ where I just ran a set of 20 integration tests on macro scale.
|
|
|
34
34
|
## Status
|
|
35
35
|
|
|
36
36
|
ATM I am function complete, and the code
|
|
37
|
-
can be tested (
|
|
38
|
-
I probably will make a release before
|
|
37
|
+
can be tested (final beta stages)
|
|
38
|
+
I probably will make a release before 2022.
|
|
39
|
+
It has been testing in MyFaces Tobago now for a year
|
|
40
|
+
and atm is being integrated into MyFaces as new
|
|
41
|
+
JS codebase.
|
|
39
42
|
|
|
40
43
|
|
|
41
44
|
## Usage
|
|
@@ -1 +1 @@
|
|
|
1
|
-
window.searchData = JSON.parse("{\"kinds\":{\"4\":\"Namespace\",\"32\":\"Variable\",\"64\":\"Function\"},\"rows\":[{\"kind\":4,\"name\":\"jsf\",\"url\":\"modules/jsf.html\",\"classes\":\"tsd-kind-namespace\"},{\"kind\":64,\"name\":\"getProjectStage\",\"url\":\"functions/jsf.getProjectStage.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":64,\"name\":\"getViewState\",\"url\":\"functions/jsf.getViewState.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":64,\"name\":\"getClientWindow\",\"url\":\"functions/jsf.getClientWindow.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":32,\"name\":\"specversion\",\"url\":\"variables/jsf.specversion.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":32,\"name\":\"implversion\",\"url\":\"variables/jsf.implversion.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":32,\"name\":\"separatorchar\",\"url\":\"variables/jsf.separatorchar.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":4,\"name\":\"ajax\",\"url\":\"modules/jsf.ajax.html\",\"classes\":\"tsd-kind-namespace tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":64,\"name\":\"request\",\"url\":\"functions/jsf.ajax.request.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.ajax\"},{\"kind\":64,\"name\":\"response\",\"url\":\"functions/jsf.ajax.response.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.ajax\"},{\"kind\":64,\"name\":\"addOnError\",\"url\":\"functions/jsf.ajax.addOnError.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.ajax\"},{\"kind\":64,\"name\":\"addOnEvent\",\"url\":\"functions/jsf.ajax.addOnEvent.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.ajax\"},{\"kind\":4,\"name\":\"util\",\"url\":\"modules/jsf.util.html\",\"classes\":\"tsd-kind-namespace tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":64,\"name\":\"chain\",\"url\":\"functions/jsf.util.chain.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.util\"},{\"kind\":4,\"name\":\"push\",\"url\":\"modules/jsf.push.html\",\"classes\":\"tsd-kind-namespace tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":64,\"name\":\"init\",\"url\":\"functions/jsf.push.init.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.push\"},{\"kind\":64,\"name\":\"open\",\"url\":\"functions/jsf.push.open.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.push\"},{\"kind\":64,\"name\":\"close\",\"url\":\"functions/jsf.push.close.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.push\"},{\"kind\":4,\"name\":\"myfaces\",\"url\":\"modules/myfaces.html\",\"classes\":\"tsd-kind-namespace\"},{\"kind\":64,\"name\":\"ab\",\"url\":\"functions/myfaces.ab.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"myfaces\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,26.
|
|
1
|
+
window.searchData = JSON.parse("{\"kinds\":{\"4\":\"Namespace\",\"32\":\"Variable\",\"64\":\"Function\"},\"rows\":[{\"kind\":4,\"name\":\"jsf\",\"url\":\"modules/jsf.html\",\"classes\":\"tsd-kind-namespace\"},{\"kind\":64,\"name\":\"getProjectStage\",\"url\":\"functions/jsf.getProjectStage.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":64,\"name\":\"getViewState\",\"url\":\"functions/jsf.getViewState.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":64,\"name\":\"getClientWindow\",\"url\":\"functions/jsf.getClientWindow.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":32,\"name\":\"specversion\",\"url\":\"variables/jsf.specversion.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":32,\"name\":\"implversion\",\"url\":\"variables/jsf.implversion.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":32,\"name\":\"separatorchar\",\"url\":\"variables/jsf.separatorchar.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":4,\"name\":\"ajax\",\"url\":\"modules/jsf.ajax.html\",\"classes\":\"tsd-kind-namespace tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":64,\"name\":\"request\",\"url\":\"functions/jsf.ajax.request.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.ajax\"},{\"kind\":64,\"name\":\"response\",\"url\":\"functions/jsf.ajax.response.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.ajax\"},{\"kind\":64,\"name\":\"addOnError\",\"url\":\"functions/jsf.ajax.addOnError.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.ajax\"},{\"kind\":64,\"name\":\"addOnEvent\",\"url\":\"functions/jsf.ajax.addOnEvent.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.ajax\"},{\"kind\":4,\"name\":\"util\",\"url\":\"modules/jsf.util.html\",\"classes\":\"tsd-kind-namespace tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":64,\"name\":\"chain\",\"url\":\"functions/jsf.util.chain.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.util\"},{\"kind\":4,\"name\":\"push\",\"url\":\"modules/jsf.push.html\",\"classes\":\"tsd-kind-namespace tsd-parent-kind-namespace\",\"parent\":\"jsf\"},{\"kind\":64,\"name\":\"init\",\"url\":\"functions/jsf.push.init.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.push\"},{\"kind\":64,\"name\":\"open\",\"url\":\"functions/jsf.push.open.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.push\"},{\"kind\":64,\"name\":\"close\",\"url\":\"functions/jsf.push.close.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"jsf.push\"},{\"kind\":4,\"name\":\"myfaces\",\"url\":\"modules/myfaces.html\",\"classes\":\"tsd-kind-namespace\"},{\"kind\":64,\"name\":\"ab\",\"url\":\"functions/myfaces.ab.html\",\"classes\":\"tsd-kind-function tsd-parent-kind-namespace\",\"parent\":\"myfaces\"},{\"kind\":32,\"name\":\"oam\",\"url\":\"variables/myfaces.oam.html\",\"classes\":\"tsd-kind-variable tsd-parent-kind-namespace\",\"parent\":\"myfaces\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"comment\"],\"fieldVectors\":[[\"name/0\",[0,26.856]],[\"comment/0\",[]],[\"name/1\",[1,26.856]],[\"comment/1\",[]],[\"name/2\",[2,26.856]],[\"comment/2\",[]],[\"name/3\",[3,26.856]],[\"comment/3\",[]],[\"name/4\",[4,26.856]],[\"comment/4\",[]],[\"name/5\",[5,26.856]],[\"comment/5\",[]],[\"name/6\",[6,26.856]],[\"comment/6\",[]],[\"name/7\",[7,26.856]],[\"comment/7\",[]],[\"name/8\",[8,26.856]],[\"comment/8\",[]],[\"name/9\",[9,26.856]],[\"comment/9\",[]],[\"name/10\",[10,26.856]],[\"comment/10\",[]],[\"name/11\",[11,26.856]],[\"comment/11\",[]],[\"name/12\",[12,26.856]],[\"comment/12\",[]],[\"name/13\",[13,26.856]],[\"comment/13\",[]],[\"name/14\",[14,26.856]],[\"comment/14\",[]],[\"name/15\",[15,26.856]],[\"comment/15\",[]],[\"name/16\",[16,26.856]],[\"comment/16\",[]],[\"name/17\",[17,26.856]],[\"comment/17\",[]],[\"name/18\",[18,26.856]],[\"comment/18\",[]],[\"name/19\",[19,26.856]],[\"comment/19\",[]],[\"name/20\",[20,26.856]],[\"comment/20\",[]]],\"invertedIndex\":[[\"ab\",{\"_index\":19,\"name\":{\"19\":{}},\"comment\":{}}],[\"addonerror\",{\"_index\":10,\"name\":{\"10\":{}},\"comment\":{}}],[\"addonevent\",{\"_index\":11,\"name\":{\"11\":{}},\"comment\":{}}],[\"ajax\",{\"_index\":7,\"name\":{\"7\":{}},\"comment\":{}}],[\"chain\",{\"_index\":13,\"name\":{\"13\":{}},\"comment\":{}}],[\"close\",{\"_index\":17,\"name\":{\"17\":{}},\"comment\":{}}],[\"getclientwindow\",{\"_index\":3,\"name\":{\"3\":{}},\"comment\":{}}],[\"getprojectstage\",{\"_index\":1,\"name\":{\"1\":{}},\"comment\":{}}],[\"getviewstate\",{\"_index\":2,\"name\":{\"2\":{}},\"comment\":{}}],[\"implversion\",{\"_index\":5,\"name\":{\"5\":{}},\"comment\":{}}],[\"init\",{\"_index\":15,\"name\":{\"15\":{}},\"comment\":{}}],[\"jsf\",{\"_index\":0,\"name\":{\"0\":{}},\"comment\":{}}],[\"myfaces\",{\"_index\":18,\"name\":{\"18\":{}},\"comment\":{}}],[\"oam\",{\"_index\":20,\"name\":{\"20\":{}},\"comment\":{}}],[\"open\",{\"_index\":16,\"name\":{\"16\":{}},\"comment\":{}}],[\"push\",{\"_index\":14,\"name\":{\"14\":{}},\"comment\":{}}],[\"request\",{\"_index\":8,\"name\":{\"8\":{}},\"comment\":{}}],[\"response\",{\"_index\":9,\"name\":{\"9\":{}},\"comment\":{}}],[\"separatorchar\",{\"_index\":6,\"name\":{\"6\":{}},\"comment\":{}}],[\"specversion\",{\"_index\":4,\"name\":{\"4\":{}},\"comment\":{}}],[\"util\",{\"_index\":12,\"name\":{\"12\":{}},\"comment\":{}}]],\"pipeline\":[]}}");
|
|
@@ -72,6 +72,7 @@ Code provided by Thomas Andraschko</p>
|
|
|
72
72
|
<li class="current tsd-kind-namespace"><a href="../modules/myfaces.html">myfaces</a></li></ul></li></ul></div></details></nav>
|
|
73
73
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
74
74
|
<ul>
|
|
75
|
+
<li class="tsd-kind-variable tsd-parent-kind-namespace"><a href="../variables/myfaces.oam.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg>oam</a></li>
|
|
75
76
|
<li class="current tsd-kind-function tsd-parent-kind-namespace"><a href="myfaces.ab.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg>ab</a></li></ul></nav></div></div>
|
|
76
77
|
<div class="container tsd-generator">
|
|
77
78
|
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
package/dist/docs/index.html
CHANGED
|
@@ -44,8 +44,11 @@ where I just ran a set of 20 integration tests on macro scale.</p>
|
|
|
44
44
|
<h2>Status</h2>
|
|
45
45
|
</a>
|
|
46
46
|
<p>ATM I am function complete, and the code
|
|
47
|
-
can be tested (
|
|
48
|
-
I probably will make a release before
|
|
47
|
+
can be tested (final beta stages)
|
|
48
|
+
I probably will make a release before 2022.
|
|
49
|
+
It has been testing in MyFaces Tobago now for a year
|
|
50
|
+
and atm is being integrated into MyFaces as new
|
|
51
|
+
JS codebase.</p>
|
|
49
52
|
|
|
50
53
|
<a href="#usage" id="usage" style="color: inherit; text-decoration: none;">
|
|
51
54
|
<h2>Usage</h2>
|
|
@@ -17,6 +17,10 @@
|
|
|
17
17
|
<section class="tsd-panel tsd-index-panel">
|
|
18
18
|
<h3 class="tsd-index-heading uppercase">Index</h3>
|
|
19
19
|
<section class="tsd-index-section">
|
|
20
|
+
<h3 class="tsd-index-heading">Variables</h3>
|
|
21
|
+
<div class="tsd-index-list"><a href="../variables/myfaces.oam.html" class="tsd-index-link tsd-kind-variable tsd-parent-kind-namespace"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg><span>oam</span></a>
|
|
22
|
+
</div></section>
|
|
23
|
+
<section class="tsd-index-section">
|
|
20
24
|
<h3 class="tsd-index-heading">Functions</h3>
|
|
21
25
|
<div class="tsd-index-list"><a href="../functions/myfaces.ab.html" class="tsd-index-link tsd-kind-function tsd-parent-kind-namespace"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg><span>ab</span></a>
|
|
22
26
|
</div></section></section></section></div>
|
|
@@ -46,6 +50,7 @@
|
|
|
46
50
|
<li class="current selected tsd-kind-namespace"><a href="myfaces.html">myfaces</a></li></ul></li></ul></div></details></nav>
|
|
47
51
|
<nav class="tsd-navigation secondary menu-sticky">
|
|
48
52
|
<ul>
|
|
53
|
+
<li class="tsd-kind-variable tsd-parent-kind-namespace"><a href="../variables/myfaces.oam.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-32-path"></use><use href="#icon-32-text"></use></svg>oam</a></li>
|
|
49
54
|
<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="../functions/myfaces.ab.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>ab</a></li></ul></nav></div></div>
|
|
50
55
|
<div class="container tsd-generator">
|
|
51
56
|
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>oam | jsf.js_next_gen</title><meta name="description" content="Documentation for jsf.js_next_gen"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
|
+
<div class="tsd-toolbar-contents container">
|
|
3
|
+
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
|
+
<div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
5
|
+
<ul class="results">
|
|
6
|
+
<li class="state loading">Preparing search index...</li>
|
|
7
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">jsf.js_next_gen</a></div>
|
|
8
|
+
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
9
|
+
<div class="container container-main">
|
|
10
|
+
<div class="col-8 col-content">
|
|
11
|
+
<div class="tsd-page-title">
|
|
12
|
+
<ul class="tsd-breadcrumb">
|
|
13
|
+
<li><a href="../modules.html">jsf.js_next_gen</a></li>
|
|
14
|
+
<li><a href="../modules/myfaces.html">myfaces</a></li>
|
|
15
|
+
<li><a href="myfaces.oam.html">oam</a></li></ul>
|
|
16
|
+
<h1>Variable oam<code class="tsd-tag ts-flagConst">Const</code> </h1></div>
|
|
17
|
+
<div class="tsd-signature">oam<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-symbol">typeof </span><span class="tsd-signature-type">oam</span><span class="tsd-signature-symbol"> = _oam</span></div>
|
|
18
|
+
<div class="tsd-comment tsd-typography"><p>legacy oam functions</p>
|
|
19
|
+
</div></div>
|
|
20
|
+
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
21
|
+
<div class="tsd-navigation settings">
|
|
22
|
+
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
23
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Settings</h3></summary>
|
|
24
|
+
<div class="tsd-accordion-details">
|
|
25
|
+
<div class="tsd-filter-visibility">
|
|
26
|
+
<h4 class="uppercase">Member Visibility</h4><form>
|
|
27
|
+
<ul id="tsd-filter-options">
|
|
28
|
+
<li class="tsd-filter-item"><label class="tsd-filter-input"><input type="checkbox" id="tsd-filter-inherited" name="inherited" checked/><svg width="32" height="32" viewBox="0 0 32 32" aria-hidden="true"><rect class="tsd-checkbox-background" width="30" height="30" x="1" y="1" rx="6" fill="none"></rect><path class="tsd-checkbox-checkmark" d="M8.35422 16.8214L13.2143 21.75L24.6458 10.25" stroke="none" stroke-width="3.5" stroke-linejoin="round" fill="none"></path></svg><span>Inherited</span></label></li></ul></form></div>
|
|
29
|
+
<div class="tsd-theme-toggle">
|
|
30
|
+
<h4 class="uppercase">Theme</h4><select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div>
|
|
31
|
+
<nav class="tsd-navigation primary">
|
|
32
|
+
<details class="tsd-index-accordion" open><summary class="tsd-accordion-summary">
|
|
33
|
+
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
34
|
+
<div class="tsd-accordion-details">
|
|
35
|
+
<ul>
|
|
36
|
+
<li class="current"><a href="../modules.html">jsf.js_<wbr/>next_<wbr/>gen</a>
|
|
37
|
+
<ul>
|
|
38
|
+
<li class="tsd-kind-namespace"><a href="../modules/jsf.html">jsf</a>
|
|
39
|
+
<ul>
|
|
40
|
+
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/jsf.ajax.html">ajax</a></li>
|
|
41
|
+
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/jsf.push.html">push</a></li>
|
|
42
|
+
<li class="tsd-kind-namespace tsd-parent-kind-namespace"><a href="../modules/jsf.util.html">util</a></li></ul></li>
|
|
43
|
+
<li class="current tsd-kind-namespace"><a href="../modules/myfaces.html">myfaces</a></li></ul></li></ul></div></details></nav>
|
|
44
|
+
<nav class="tsd-navigation secondary menu-sticky">
|
|
45
|
+
<ul>
|
|
46
|
+
<li class="current tsd-kind-variable tsd-parent-kind-namespace"><a href="myfaces.oam.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-variable)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-32-path"></rect><path d="M11.106 16L8.85 7.24H9.966L11.454 13.192C11.558 13.608 11.646 13.996 11.718 14.356C11.79 14.708 11.842 14.976 11.874 15.16C11.906 14.976 11.954 14.708 12.018 14.356C12.09 13.996 12.178 13.608 12.282 13.192L13.758 7.24H14.85L12.582 16H11.106Z" fill="var(--color-text)" id="icon-32-text"></path></svg>oam</a></li>
|
|
47
|
+
<li class="tsd-kind-function tsd-parent-kind-namespace"><a href="../functions/myfaces.ab.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-function)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-64-path"></rect><path d="M9.39 16V7.24H14.55V8.224H10.446V11.128H14.238V12.112H10.47V16H9.39Z" fill="var(--color-text)" id="icon-64-text"></path></svg>ab</a></li></ul></nav></div></div>
|
|
48
|
+
<div class="container tsd-generator">
|
|
49
|
+
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p></div>
|
|
50
|
+
<div class="overlay"></div><script src="../assets/main.js"></script></body></html>
|
|
@@ -957,6 +957,7 @@ var DomQuery = /** @class */ (function () {
|
|
|
957
957
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
958
958
|
nodeSelector[_i] = arguments[_i];
|
|
959
959
|
}
|
|
960
|
+
debugger;
|
|
960
961
|
var selectorStage = this.childNodes;
|
|
961
962
|
for (var cnt = 0; cnt < nodeSelector.length; cnt++) {
|
|
962
963
|
selectorStage = selectorStage.filterSelector(nodeSelector[cnt]);
|
|
@@ -3802,6 +3803,7 @@ exports.myfaces = exports.jsf = void 0;
|
|
|
3802
3803
|
///<reference types='../../types/typedefs'/>
|
|
3803
3804
|
var AjaxImpl_1 = __webpack_require__(/*! ../impl/AjaxImpl */ "./src/main/typescript/impl/AjaxImpl.ts");
|
|
3804
3805
|
var PushImpl_1 = __webpack_require__(/*! ../impl/PushImpl */ "./src/main/typescript/impl/PushImpl.ts");
|
|
3806
|
+
var OamSubmit_1 = __webpack_require__(/*! ../myfaces/OamSubmit */ "./src/main/typescript/myfaces/OamSubmit.ts");
|
|
3805
3807
|
//declare const Implementation: any;
|
|
3806
3808
|
var jsf;
|
|
3807
3809
|
(function (jsf) {
|
|
@@ -3995,12 +3997,8 @@ var jsf;
|
|
|
3995
3997
|
}
|
|
3996
3998
|
push.close = close;
|
|
3997
3999
|
})(push = jsf.push || (jsf.push = {}));
|
|
3998
|
-
//We hook the old namespace system into our npm system
|
|
3999
|
-
//if ("undefined" == window.jsf) {
|
|
4000
|
-
// window.jsf = jsf;
|
|
4001
|
-
//}
|
|
4002
4000
|
})(jsf = exports.jsf || (exports.jsf = {}));
|
|
4003
|
-
//fullfill the window contract
|
|
4001
|
+
//fullfill the window contract for the myfaces namespace
|
|
4004
4002
|
var myfaces;
|
|
4005
4003
|
(function (myfaces) {
|
|
4006
4004
|
/**
|
|
@@ -4029,6 +4027,10 @@ var myfaces;
|
|
|
4029
4027
|
jsf.ajax.request(source, event, options);
|
|
4030
4028
|
}
|
|
4031
4029
|
myfaces.ab = ab;
|
|
4030
|
+
/**
|
|
4031
|
+
* legacy oam functions
|
|
4032
|
+
*/
|
|
4033
|
+
myfaces.oam = OamSubmit_1.oam;
|
|
4032
4034
|
})(myfaces = exports.myfaces || (exports.myfaces = {}));
|
|
4033
4035
|
|
|
4034
4036
|
|
|
@@ -4671,11 +4673,26 @@ var Implementation;
|
|
|
4671
4673
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4672
4674
|
|
|
4673
4675
|
|
|
4674
|
-
|
|
4675
|
-
*
|
|
4676
|
+
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
4677
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
4678
|
+
* this work for additional information regarding copyright ownership.
|
|
4679
|
+
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
4680
|
+
* (the "License"); you may not use this file except in compliance with
|
|
4681
|
+
* the License. You may obtain a copy of the License at
|
|
4682
|
+
*
|
|
4683
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
4684
|
+
*
|
|
4685
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
4686
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
4687
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
4688
|
+
* See the License for the specific language governing permissions and
|
|
4689
|
+
* limitations under the License.
|
|
4676
4690
|
*/
|
|
4677
4691
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4678
4692
|
exports.PushImpl = void 0;
|
|
4693
|
+
/**
|
|
4694
|
+
* Typescript port of the jsf.push part in the myfaces implementation
|
|
4695
|
+
*/
|
|
4679
4696
|
//TODO still work in progress
|
|
4680
4697
|
//this is a 1:1 port for the time being
|
|
4681
4698
|
var Jsf_1 = __webpack_require__(/*! ../api/Jsf */ "./src/main/typescript/api/Jsf.ts");
|
|
@@ -5216,6 +5233,21 @@ exports.Messages = Messages;
|
|
|
5216
5233
|
|
|
5217
5234
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5218
5235
|
exports.Assertions = void 0;
|
|
5236
|
+
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5237
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5238
|
+
* this work for additional information regarding copyright ownership.
|
|
5239
|
+
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
5240
|
+
* (the "License"); you may not use this file except in compliance with
|
|
5241
|
+
* the License. You may obtain a copy of the License at
|
|
5242
|
+
*
|
|
5243
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5244
|
+
*
|
|
5245
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5246
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5247
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5248
|
+
* See the License for the specific language governing permissions and
|
|
5249
|
+
* limitations under the License.
|
|
5250
|
+
*/
|
|
5219
5251
|
var mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish/src/main/typescript/index_core.ts");
|
|
5220
5252
|
var Lang_1 = __webpack_require__(/*! ./Lang */ "./src/main/typescript/impl/util/Lang.ts");
|
|
5221
5253
|
var getMessage = Lang_1.ExtLang.getMessage;
|
|
@@ -5456,6 +5488,21 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
5456
5488
|
})();
|
|
5457
5489
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5458
5490
|
exports.ExtDQ = exports.ExtDomquery = void 0;
|
|
5491
|
+
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5492
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5493
|
+
* this work for additional information regarding copyright ownership.
|
|
5494
|
+
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
5495
|
+
* (the "License"); you may not use this file except in compliance with
|
|
5496
|
+
* the License. You may obtain a copy of the License at
|
|
5497
|
+
*
|
|
5498
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5499
|
+
*
|
|
5500
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5501
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5502
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5503
|
+
* See the License for the specific language governing permissions and
|
|
5504
|
+
* limitations under the License.
|
|
5505
|
+
*/
|
|
5459
5506
|
var mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish/src/main/typescript/index_core.ts");
|
|
5460
5507
|
var Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/impl/core/Const.ts");
|
|
5461
5508
|
/**
|
|
@@ -5873,6 +5920,21 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
5873
5920
|
})();
|
|
5874
5921
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5875
5922
|
exports.ErrorData = exports.ErrorType = void 0;
|
|
5923
|
+
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
5924
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
5925
|
+
* this work for additional information regarding copyright ownership.
|
|
5926
|
+
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
5927
|
+
* (the "License"); you may not use this file except in compliance with
|
|
5928
|
+
* the License. You may obtain a copy of the License at
|
|
5929
|
+
*
|
|
5930
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
5931
|
+
*
|
|
5932
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
5933
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
5934
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
5935
|
+
* See the License for the specific language governing permissions and
|
|
5936
|
+
* limitations under the License.
|
|
5937
|
+
*/
|
|
5876
5938
|
var Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/impl/core/Const.ts");
|
|
5877
5939
|
var EventData_1 = __webpack_require__(/*! ./EventData */ "./src/main/typescript/impl/xhrCore/EventData.ts");
|
|
5878
5940
|
var Lang_1 = __webpack_require__(/*! ../util/Lang */ "./src/main/typescript/impl/util/Lang.ts");
|
|
@@ -5958,6 +6020,21 @@ exports.ErrorData = ErrorData;
|
|
|
5958
6020
|
|
|
5959
6021
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5960
6022
|
exports.EventData = void 0;
|
|
6023
|
+
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
6024
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
6025
|
+
* this work for additional information regarding copyright ownership.
|
|
6026
|
+
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
6027
|
+
* (the "License"); you may not use this file except in compliance with
|
|
6028
|
+
* the License. You may obtain a copy of the License at
|
|
6029
|
+
*
|
|
6030
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
6031
|
+
*
|
|
6032
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
6033
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
6034
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
6035
|
+
* See the License for the specific language governing permissions and
|
|
6036
|
+
* limitations under the License.
|
|
6037
|
+
*/
|
|
5961
6038
|
var mona_dish_1 = __webpack_require__(/*! mona-dish */ "./node_modules/mona-dish/src/main/typescript/index_core.ts");
|
|
5962
6039
|
var Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/impl/core/Const.ts");
|
|
5963
6040
|
var EventData = /** @class */ (function () {
|
|
@@ -6290,7 +6367,7 @@ var Response;
|
|
|
6290
6367
|
* and processing its tags
|
|
6291
6368
|
*
|
|
6292
6369
|
* @param {XMLHttpRequest} request (xhrRequest) - xhr request object
|
|
6293
|
-
* @param
|
|
6370
|
+
* @param context {Context} context (Map) - AJAX context
|
|
6294
6371
|
*
|
|
6295
6372
|
*/
|
|
6296
6373
|
function processResponse(request, context) {
|
|
@@ -6321,7 +6398,7 @@ var Response;
|
|
|
6321
6398
|
internalContext.assign(Const_1.PARTIAL_ID).value = node.id;
|
|
6322
6399
|
var SEL_SUB_TAGS = [Const_1.CMD_ERROR, Const_1.CMD_REDIRECT, Const_1.CMD_CHANGES].join(",");
|
|
6323
6400
|
//now we can process the main operations
|
|
6324
|
-
node.
|
|
6401
|
+
node.querySelectorAll(SEL_SUB_TAGS).each(function (node) {
|
|
6325
6402
|
switch (node.tagName.value) {
|
|
6326
6403
|
case Const_1.CMD_ERROR:
|
|
6327
6404
|
responseProcessor.error(node);
|
|
@@ -6351,8 +6428,8 @@ var Response;
|
|
|
6351
6428
|
* @param responseProcessor
|
|
6352
6429
|
*/
|
|
6353
6430
|
function processChangesTag(node, responseProcessor) {
|
|
6354
|
-
var ALLOWED_TAGS = [Const_1.CMD_UPDATE, Const_1.CMD_EVAL, Const_1.CMD_INSERT, Const_1.CMD_DELETE, Const_1.CMD_ATTRIBUTES, Const_1.CMD_EXTENSION].join(",");
|
|
6355
|
-
node.
|
|
6431
|
+
var ALLOWED_TAGS = [Const_1.CMD_UPDATE, Const_1.CMD_EVAL, Const_1.CMD_INSERT, Const_1.CMD_DELETE, Const_1.CMD_ATTRIBUTES, Const_1.CMD_EXTENSION].join(", ");
|
|
6432
|
+
node.querySelectorAll(ALLOWED_TAGS).each(function (node) {
|
|
6356
6433
|
switch (node.tagName.value) {
|
|
6357
6434
|
case Const_1.CMD_UPDATE:
|
|
6358
6435
|
processUpdateTag(node, responseProcessor);
|
|
@@ -6387,7 +6464,7 @@ var Response;
|
|
|
6387
6464
|
return responseProcessor.processViewState(node) || responseProcessor.processClientWindow(node);
|
|
6388
6465
|
}
|
|
6389
6466
|
/**
|
|
6390
|
-
* branch tag update
|
|
6467
|
+
* branch tag update. drill further down into the updates
|
|
6391
6468
|
* special case viewstate in that case it is a leaf
|
|
6392
6469
|
* and the viewstate must be processed
|
|
6393
6470
|
*
|
|
@@ -7406,6 +7483,120 @@ var XhrRequest = /** @class */ (function () {
|
|
|
7406
7483
|
exports.XhrRequest = XhrRequest;
|
|
7407
7484
|
|
|
7408
7485
|
|
|
7486
|
+
/***/ }),
|
|
7487
|
+
|
|
7488
|
+
/***/ "./src/main/typescript/myfaces/OamSubmit.ts":
|
|
7489
|
+
/*!**************************************************!*\
|
|
7490
|
+
!*** ./src/main/typescript/myfaces/OamSubmit.ts ***!
|
|
7491
|
+
\**************************************************/
|
|
7492
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7493
|
+
|
|
7494
|
+
|
|
7495
|
+
/* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
7496
|
+
* contributor license agreements. See the NOTICE file distributed with
|
|
7497
|
+
* this work for additional information regarding copyright ownership.
|
|
7498
|
+
* The ASF licenses this file to you under the Apache License, Version 2.0
|
|
7499
|
+
* (the "License"); you may not use this file except in compliance with
|
|
7500
|
+
* the License. You may obtain a copy of the License at
|
|
7501
|
+
*
|
|
7502
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
7503
|
+
*
|
|
7504
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
7505
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
7506
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
7507
|
+
* See the License for the specific language governing permissions and
|
|
7508
|
+
* limitations under the License.
|
|
7509
|
+
*/
|
|
7510
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7511
|
+
exports.oam = void 0;
|
|
7512
|
+
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
|
+
var oam;
|
|
7515
|
+
(function (oam) {
|
|
7516
|
+
/**
|
|
7517
|
+
* sets a hidden input field
|
|
7518
|
+
* @param formName the formName
|
|
7519
|
+
* @param name the hidden field
|
|
7520
|
+
* @param value the value to be rendered
|
|
7521
|
+
*/
|
|
7522
|
+
oam.setHiddenInput = function (formName, name, value) {
|
|
7523
|
+
mona_dish_1.DQ.byId(document.forms[formName])
|
|
7524
|
+
.each(function (form) {
|
|
7525
|
+
var input = form.querySelectorAll("input[type='hidden'][name='".concat(name, "']"));
|
|
7526
|
+
if (input.isPresent()) {
|
|
7527
|
+
input.inputValue.value = value;
|
|
7528
|
+
}
|
|
7529
|
+
else {
|
|
7530
|
+
var newInput = mona_dish_1.DQ.fromMarkup("<input type='hidden' id='".concat(name, "' name='").concat(name, "'>"));
|
|
7531
|
+
newInput.inputValue.value = value;
|
|
7532
|
+
newInput.appendTo(form);
|
|
7533
|
+
}
|
|
7534
|
+
});
|
|
7535
|
+
};
|
|
7536
|
+
/**
|
|
7537
|
+
* clears a hidden input field
|
|
7538
|
+
*
|
|
7539
|
+
* @param formName formName for the input
|
|
7540
|
+
* @param name the name of the input field
|
|
7541
|
+
*/
|
|
7542
|
+
oam.clearHiddenInput = function (formName, name) {
|
|
7543
|
+
var _a, _b, _c;
|
|
7544
|
+
var element = (_c = (_b = (_a = document.forms) === null || _a === void 0 ? void 0 : _a[formName]) === null || _b === void 0 ? void 0 : _b.elements) === null || _c === void 0 ? void 0 : _c[name];
|
|
7545
|
+
if (!element) {
|
|
7546
|
+
return;
|
|
7547
|
+
}
|
|
7548
|
+
mona_dish_1.DQ.byId(element).delete();
|
|
7549
|
+
};
|
|
7550
|
+
// noinspection JSUnusedGlobalSymbols
|
|
7551
|
+
/**
|
|
7552
|
+
* does special form submit remapping
|
|
7553
|
+
* re-maps the issuing command link into something,
|
|
7554
|
+
* a decode of the command link on the server can understand
|
|
7555
|
+
*
|
|
7556
|
+
* @param formName
|
|
7557
|
+
* @param linkId
|
|
7558
|
+
* @param target
|
|
7559
|
+
* @param params
|
|
7560
|
+
*/
|
|
7561
|
+
oam.submitForm = function (formName, linkId, target, params) {
|
|
7562
|
+
var _a, _b, _c, _d;
|
|
7563
|
+
var clearFn = 'clearFormHiddenParams_' + formName.replace(/-/g, '\$:').replace(/:/g, '_');
|
|
7564
|
+
(_a = window === null || window === void 0 ? void 0 : window[clearFn]) === null || _a === void 0 ? void 0 : _a.call(window, formName);
|
|
7565
|
+
//autoscroll code
|
|
7566
|
+
if (((_d = (_c = (_b = window === null || window === void 0 ? void 0 : window.myfaces) === null || _b === void 0 ? void 0 : _b.core) === null || _c === void 0 ? void 0 : _c.config) === null || _d === void 0 ? void 0 : _d.autoScroll) && (window === null || window === void 0 ? void 0 : window.getScrolling)) {
|
|
7567
|
+
myfaces.oam.setHiddenInput(formName, 'autoScroll', window === null || window === void 0 ? void 0 : window.getScrolling());
|
|
7568
|
+
}
|
|
7569
|
+
mona_dish_1.Stream.ofAssoc(params).each(function (param) {
|
|
7570
|
+
myfaces.oam.setHiddenInput(formName, param[0], param[1]);
|
|
7571
|
+
});
|
|
7572
|
+
//we call the namespaced function, to allow decoration, via a direct call we would
|
|
7573
|
+
myfaces.oam.setHiddenInput(formName, "".concat(formName, ":_idcl"), linkId);
|
|
7574
|
+
mona_dish_1.DQ.byId(document.forms[formName]).each(function (form) {
|
|
7575
|
+
var _a;
|
|
7576
|
+
var ATTR_TARGET = "target";
|
|
7577
|
+
var formElement = form.getAsElem(0).value;
|
|
7578
|
+
var oldTarget = form.attr(ATTR_TARGET).value;
|
|
7579
|
+
form.attr(ATTR_TARGET).value = target;
|
|
7580
|
+
var result = (_a = formElement === null || formElement === void 0 ? void 0 : formElement.onsubmit) === null || _a === void 0 ? void 0 : _a.call(formElement, null);
|
|
7581
|
+
try {
|
|
7582
|
+
if ((!!result) || 'undefined' == typeof result) {
|
|
7583
|
+
formElement.submit();
|
|
7584
|
+
}
|
|
7585
|
+
}
|
|
7586
|
+
catch (e) {
|
|
7587
|
+
window === null || window === void 0 ? void 0 : window.console.error(e);
|
|
7588
|
+
}
|
|
7589
|
+
form.attr(ATTR_TARGET).value = oldTarget;
|
|
7590
|
+
mona_dish_1.Stream.ofAssoc(params).each(function (param) {
|
|
7591
|
+
myfaces.oam.clearHiddenInput(formName, param[0]);
|
|
7592
|
+
});
|
|
7593
|
+
myfaces.oam.clearHiddenInput(formName, "".concat(formName, ":_idcl"));
|
|
7594
|
+
});
|
|
7595
|
+
return false;
|
|
7596
|
+
};
|
|
7597
|
+
})(oam = exports.oam || (exports.oam = {}));
|
|
7598
|
+
|
|
7599
|
+
|
|
7409
7600
|
/***/ })
|
|
7410
7601
|
|
|
7411
7602
|
/******/ });
|
|
@@ -7447,4 +7638,4 @@ exports.XhrRequest = XhrRequest;
|
|
|
7447
7638
|
/******/ })()
|
|
7448
7639
|
;
|
|
7449
7640
|
//# sourceMappingURL=jsf-development.js.map
|
|
7450
|
-
//# sourceMappingURL=jsf-development.js.map.jsf?ln=
|
|
7641
|
+
//# sourceMappingURL=jsf-development.js.map.jsf?ln=javax.faces
|