jsf.js_next_gen 4.0.0-beta-11 → 4.0.0-beta-12

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.
Files changed (146) hide show
  1. package/dist/window/faces-development.js +164 -49
  2. package/dist/window/faces-development.js.br +0 -0
  3. package/dist/window/faces-development.js.gz +0 -0
  4. package/dist/window/faces-development.js.map +1 -1
  5. package/dist/window/faces.js +1 -1
  6. package/dist/window/faces.js.br +0 -0
  7. package/dist/window/faces.js.gz +0 -0
  8. package/dist/window/faces.js.map +1 -1
  9. package/dist/window/jsf-development.js +164 -49
  10. package/dist/window/jsf-development.js.br +0 -0
  11. package/dist/window/jsf-development.js.gz +0 -0
  12. package/dist/window/jsf-development.js.map +1 -1
  13. package/dist/window/jsf.js +1 -1
  14. package/dist/window/jsf.js.br +0 -0
  15. package/dist/window/jsf.js.gz +0 -0
  16. package/dist/window/jsf.js.map +1 -1
  17. package/package.json +3 -3
  18. package/pom.xml +14 -0
  19. package/src/main/java/com/example/jsfs_js_ts/DecoratedFacesJS.java +80 -0
  20. package/src/main/java/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.java +54 -0
  21. package/src/main/typescript/impl/util/ExtDomQuery.ts +10 -6
  22. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +0 -2
  23. package/target/api/{Jsf.js → jsf.js} +0 -0
  24. package/target/api/{Jsf.js.map → jsf.js.map} +0 -0
  25. package/target/impl/util/ExtDomQuery.js +10 -6
  26. package/target/impl/util/ExtDomQuery.js.map +1 -1
  27. package/target/test/frameworkBase/_ext/shared/StandardInits.js +0 -2
  28. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  29. package/src/main/java/com/example/jsfs_js_ts/JsfsJsTsApplication.java +0 -12
  30. package/target/api/_faces.js +0 -251
  31. package/target/api/_faces.js.map +0 -1
  32. package/target/classes/com/example/jsfs_js_ts/JsfsJsTsApplication.class +0 -0
  33. package/target/impl/util/ListenerQueue.js +0 -3
  34. package/target/impl/util/ListenerQueue.js.map +0 -1
  35. package/target/main/typescript/api/Jsf.js +0 -258
  36. package/target/main/typescript/api/Jsf.js.map +0 -1
  37. package/target/main/typescript/impl/AjaxImpl.js +0 -569
  38. package/target/main/typescript/impl/AjaxImpl.js.map +0 -1
  39. package/target/main/typescript/impl/PushImpl.js +0 -215
  40. package/target/main/typescript/impl/PushImpl.js.map +0 -1
  41. package/target/main/typescript/impl/core/Const.js +0 -135
  42. package/target/main/typescript/impl/core/Const.js.map +0 -1
  43. package/target/main/typescript/impl/core/ImplTypes.js +0 -43
  44. package/target/main/typescript/impl/core/ImplTypes.js.map +0 -1
  45. package/target/main/typescript/impl/i18n/Messages.js +0 -114
  46. package/target/main/typescript/impl/i18n/Messages.js.map +0 -1
  47. package/target/main/typescript/impl/util/Assertions.js +0 -90
  48. package/target/main/typescript/impl/util/Assertions.js.map +0 -1
  49. package/target/main/typescript/impl/util/AsyncQueue.js +0 -104
  50. package/target/main/typescript/impl/util/AsyncQueue.js.map +0 -1
  51. package/target/main/typescript/impl/util/AsyncRunnable.js +0 -18
  52. package/target/main/typescript/impl/util/AsyncRunnable.js.map +0 -1
  53. package/target/main/typescript/impl/util/ExtDomQuery.js +0 -129
  54. package/target/main/typescript/impl/util/ExtDomQuery.js.map +0 -1
  55. package/target/main/typescript/impl/util/Lang.js +0 -215
  56. package/target/main/typescript/impl/util/Lang.js.map +0 -1
  57. package/target/main/typescript/impl/util/ListenerQueue.js +0 -3
  58. package/target/main/typescript/impl/util/ListenerQueue.js.map +0 -1
  59. package/target/main/typescript/impl/xhrCore/ErrorData.js +0 -89
  60. package/target/main/typescript/impl/xhrCore/ErrorData.js.map +0 -1
  61. package/target/main/typescript/impl/xhrCore/EventData.js +0 -30
  62. package/target/main/typescript/impl/xhrCore/EventData.js.map +0 -1
  63. package/target/main/typescript/impl/xhrCore/IResponseProcessor.js +0 -3
  64. package/target/main/typescript/impl/xhrCore/IResponseProcessor.js.map +0 -1
  65. package/target/main/typescript/impl/xhrCore/RequestDataResolver.js +0 -143
  66. package/target/main/typescript/impl/xhrCore/RequestDataResolver.js.map +0 -1
  67. package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js +0 -103
  68. package/target/main/typescript/impl/xhrCore/ResonseDataResolver.js.map +0 -1
  69. package/target/main/typescript/impl/xhrCore/Response.js +0 -167
  70. package/target/main/typescript/impl/xhrCore/Response.js.map +0 -1
  71. package/target/main/typescript/impl/xhrCore/ResponseProcessor.js +0 -368
  72. package/target/main/typescript/impl/xhrCore/ResponseProcessor.js.map +0 -1
  73. package/target/main/typescript/impl/xhrCore/XhrFormData.js +0 -272
  74. package/target/main/typescript/impl/xhrCore/XhrFormData.js.map +0 -1
  75. package/target/main/typescript/impl/xhrCore/XhrRequest.js +0 -281
  76. package/target/main/typescript/impl/xhrCore/XhrRequest.js.map +0 -1
  77. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
  78. package/target/test/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
  79. package/target/test/frameworkBase/_ext/monadish/LangTest.js +0 -89
  80. package/target/test/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
  81. package/target/test/frameworkBase/_ext/monadish/MappingTest.js +0 -39
  82. package/target/test/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
  83. package/target/test/frameworkBase/_ext/monadish/MonadTest.js +0 -155
  84. package/target/test/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
  85. package/target/test/frameworkBase/_ext/monadish/StreamTest.js +0 -176
  86. package/target/test/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
  87. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
  88. package/target/test/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
  89. package/target/test/impl/ImplTest_23.spec_.js +0 -165
  90. package/target/test/impl/ImplTest_23.spec_.js.map +0 -1
  91. package/target/test/typescript/frameworkBase/LangTest.js +0 -112
  92. package/target/test/typescript/frameworkBase/LangTest.js.map +0 -1
  93. package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js +0 -293
  94. package/target/test/typescript/frameworkBase/_ext/monadish/DomQueryTest.js.map +0 -1
  95. package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js +0 -89
  96. package/target/test/typescript/frameworkBase/_ext/monadish/LangTest.js.map +0 -1
  97. package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js +0 -115
  98. package/target/test/typescript/frameworkBase/_ext/monadish/MappingProbes.js.map +0 -1
  99. package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js +0 -39
  100. package/target/test/typescript/frameworkBase/_ext/monadish/MappingTest.js.map +0 -1
  101. package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js +0 -155
  102. package/target/test/typescript/frameworkBase/_ext/monadish/MonadTest.js.map +0 -1
  103. package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js +0 -176
  104. package/target/test/typescript/frameworkBase/_ext/monadish/StreamTest.js.map +0 -1
  105. package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js +0 -1
  106. package/target/test/typescript/frameworkBase/_ext/monadish/XmlQueryTest.js.map +0 -1
  107. package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js +0 -264
  108. package/target/test/typescript/frameworkBase/_ext/shared/StandardInits.js.map +0 -1
  109. package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js +0 -23
  110. package/target/test/typescript/frameworkBase/_ext/shared/XmlResponses.js.map +0 -1
  111. package/target/test/typescript/impl/ImplTest.js +0 -98
  112. package/target/test/typescript/impl/ImplTest.js.map +0 -1
  113. package/target/test/typescript/impl/SeparatorCharsTest.js +0 -72
  114. package/target/test/typescript/impl/SeparatorCharsTest.js.map +0 -1
  115. package/target/test/typescript/queue/AsynchronousProbe.js +0 -99
  116. package/target/test/typescript/queue/AsynchronousProbe.js.map +0 -1
  117. package/target/test/typescript/queue/AsynchronousQueueTest.js +0 -130
  118. package/target/test/typescript/queue/AsynchronousQueueTest.js.map +0 -1
  119. package/target/test/typescript/xhrCore/EventTests.js +0 -155
  120. package/target/test/typescript/xhrCore/EventTests.js.map +0 -1
  121. package/target/test/typescript/xhrCore/FakeWebsocket.js +0 -25
  122. package/target/test/typescript/xhrCore/FakeWebsocket.js.map +0 -1
  123. package/target/test/typescript/xhrCore/FileUploadTest.js +0 -166
  124. package/target/test/typescript/xhrCore/FileUploadTest.js.map +0 -1
  125. package/target/test/typescript/xhrCore/RequestParamsTest.js +0 -151
  126. package/target/test/typescript/xhrCore/RequestParamsTest.js.map +0 -1
  127. package/target/test/typescript/xhrCore/RequestTest.js +0 -318
  128. package/target/test/typescript/xhrCore/RequestTest.js.map +0 -1
  129. package/target/test/typescript/xhrCore/ResponseTest.js +0 -257
  130. package/target/test/typescript/xhrCore/ResponseTest.js.map +0 -1
  131. package/target/test/typescript/xhrCore/ShadowDomTest.js +0 -122
  132. package/target/test/typescript/xhrCore/ShadowDomTest.js.map +0 -1
  133. package/target/test/typescript/xhrCore/WebsocketTest.js +0 -182
  134. package/target/test/typescript/xhrCore/WebsocketTest.js.map +0 -1
  135. package/target/test/typescript/xhrCore/XhrFormDataTest.js +0 -58
  136. package/target/test/typescript/xhrCore/XhrFormDataTest.js.map +0 -1
  137. package/target/test-classes/.gz +0 -0
  138. package/target/test-classes/com/example/jsfs_js_ts/JsfsJsTsApplicationTests.class +0 -0
  139. package/target/test-classes/fileuploadtest.html +0 -24
  140. package/target/test-classes/jsf-development.js +0 -6781
  141. package/target/test-classes/jsf-development.js.br +0 -0
  142. package/target/test-classes/jsf-development.js.gz +0 -0
  143. package/target/test-classes/jsf-development.js.map +0 -1
  144. package/target/test-classes/jsf.js +0 -3
  145. package/target/test-classes/jsf.js.br +0 -0
  146. package/target/test-classes/jsf.js.gz +0 -0
@@ -1,143 +0,0 @@
1
- "use strict";
2
- /* Licensed to the Apache Software Foundation (ASF) under one or more
3
- * contributor license agreements. See the NOTICE file distributed with
4
- * this work for additional information regarding copyright ownership.
5
- * The ASF licenses this file to you under the Apache License, Version 2.0
6
- * (the "License"); you may not use this file except in compliance with
7
- * the License. You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.resolveDefaults = exports.getEventTarget = exports.resolveWindowId = exports.resolveDelay = exports.resolveTimeout = exports.resolveForm = exports.resolveFinalUrl = exports.resolveTargetUrl = exports.resolveHandlerFunc = void 0;
19
- var mona_dish_1 = require("mona-dish");
20
- var Const_1 = require("../core/Const");
21
- var Lang_1 = require("../util/Lang");
22
- var ExtDomQuery_1 = require("../util/ExtDomQuery");
23
- /**
24
- * Resolver functions for various aspects of the request data
25
- *
26
- * stateless because it might be called from various
27
- * parts of the response classes
28
- */
29
- /**
30
- * resolves the event handlers lazly
31
- * so that if some decoration happens in between we can deal with it
32
- *
33
- * @param requestContext
34
- * @param responseContext
35
- * @param funcName
36
- */
37
- function resolveHandlerFunc(requestContext, responseContext, funcName) {
38
- return responseContext.getIf(funcName)
39
- .orElse(requestContext.getIf(funcName).value)
40
- .orElse(Const_1.EMPTY_FUNC).value;
41
- }
42
- exports.resolveHandlerFunc = resolveHandlerFunc;
43
- function resolveTargetUrl(srcFormElement) {
44
- return (typeof srcFormElement.elements[Const_1.ENCODED_URL] == 'undefined') ?
45
- srcFormElement.action :
46
- srcFormElement.elements[Const_1.ENCODED_URL].value;
47
- }
48
- exports.resolveTargetUrl = resolveTargetUrl;
49
- function resolveFinalUrl(sourceForm, formData, ajaxType) {
50
- if (ajaxType === void 0) { ajaxType = Const_1.REQ_TYPE_POST; }
51
- var targetUrl = this.resolveTargetUrl(sourceForm.getAsElem(0).value);
52
- return targetUrl + (ajaxType == Const_1.REQ_TYPE_GET ? "?" + formData.toString() : Const_1.EMPTY_STR);
53
- }
54
- exports.resolveFinalUrl = resolveFinalUrl;
55
- /**
56
- * form resolution the same way our old implementation did
57
- * it is either the id or the parent form of the element or an embedded form
58
- * of the element
59
- *
60
- * @param requestCtx
61
- * @param elem
62
- * @param event
63
- */
64
- function resolveForm(requestCtx, elem, event) {
65
- var _a, _b, _c;
66
- var configId = (_c = (_b = (_a = requestCtx.value) === null || _a === void 0 ? void 0 : _a.myfaces) === null || _b === void 0 ? void 0 : _b.form) !== null && _c !== void 0 ? _c : Const_1.MF_NONE; //requestCtx.getIf(MYFACES, "form").orElse(MF_NONE).value;
67
- return mona_dish_1.DQ
68
- .byId(configId, true)
69
- .orElseLazy(function () { return Lang_1.ExtLang.getForm(elem.getAsElem(0).value, event); });
70
- }
71
- exports.resolveForm = resolveForm;
72
- function resolveTimeout(options) {
73
- var _a;
74
- var getCfg = Lang_1.ExtLang.getLocalOrGlobalConfig;
75
- return (_a = options.getIf(Const_1.CTX_PARAM_TIMEOUT).value) !== null && _a !== void 0 ? _a : getCfg(options.value, Const_1.CTX_PARAM_TIMEOUT, 0);
76
- }
77
- exports.resolveTimeout = resolveTimeout;
78
- /**
79
- * resolve the delay from the options and/or the request context and or the configuration
80
- *
81
- * @param options ... the options object, in most cases it will host the delay value
82
- */
83
- function resolveDelay(options) {
84
- var _a;
85
- var getCfg = Lang_1.ExtLang.getLocalOrGlobalConfig;
86
- return (_a = options.getIf(Const_1.CTX_PARAM_DELAY).value) !== null && _a !== void 0 ? _a : getCfg(options.value, Const_1.CTX_PARAM_DELAY, 0);
87
- }
88
- exports.resolveDelay = resolveDelay;
89
- /**
90
- * resolves the window Id from various sources
91
- *
92
- * @param options
93
- */
94
- function resolveWindowId(options) {
95
- var _a, _b;
96
- return (_b = (_a = options === null || options === void 0 ? void 0 : options.value) === null || _a === void 0 ? void 0 : _a.windowId) !== null && _b !== void 0 ? _b : ExtDomQuery_1.ExtDomquery.windowId;
97
- }
98
- exports.resolveWindowId = resolveWindowId;
99
- /**
100
- * cross port from the dojo lib
101
- * browser save event resolution
102
- * @param evt the event object
103
- * (with a fallback for ie events if none is present)
104
- */
105
- function getEventTarget(evt) {
106
- var _a, _b;
107
- //ie6 and 7 fallback
108
- var finalEvent = evt;
109
- /**
110
- * evt source is defined in the jsf events
111
- * seems like some component authors use our code
112
- * so we add it here see also
113
- * https://issues.apache.org/jira/browse/MYFACES-2458
114
- * not entirely a bug but makes sense to add this
115
- * behavior. I dont use it that way but nevertheless it
116
- * does not break anything so why not
117
- * */
118
- var t = (_b = (_a = finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.srcElement) !== null && _a !== void 0 ? _a : finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.target) !== null && _b !== void 0 ? _b : finalEvent === null || finalEvent === void 0 ? void 0 : finalEvent.source;
119
- while ((t) && (t.nodeType != 1)) {
120
- t = t.parentNode;
121
- }
122
- return t;
123
- }
124
- exports.getEventTarget = getEventTarget;
125
- /**
126
- * resolves a bunch of default values
127
- * which can be further processed from the given
128
- * call parameters of jsf.ajax.request
129
- *
130
- * @param event
131
- * @param opts
132
- * @param el
133
- */
134
- function resolveDefaults(event, opts, el) {
135
- var _a;
136
- if (opts === void 0) { opts = {}; }
137
- if (el === void 0) { el = null; }
138
- //deep copy the options, so that further transformations to not backfire into the callers
139
- var resolvedEvent = event, options = new mona_dish_1.Config(opts).deepCopy, elem = mona_dish_1.DQ.byId(el || resolvedEvent.target, true), elementId = elem.id, requestCtx = new mona_dish_1.Config({}), internalCtx = new mona_dish_1.Config({}), windowId = resolveWindowId(options), isResetValues = true === ((_a = options.value) === null || _a === void 0 ? void 0 : _a.resetValues);
140
- return { resolvedEvent: resolvedEvent, options: options, elem: elem, elementId: elementId, requestCtx: requestCtx, internalCtx: internalCtx, windowId: windowId, isResetValues: isResetValues };
141
- }
142
- exports.resolveDefaults = resolveDefaults;
143
- //# sourceMappingURL=RequestDataResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RequestDataResolver.js","sourceRoot":"","sources":["../../../../../src/main/typescript/impl/xhrCore/RequestDataResolver.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uCAA+C;AAC/C,uCASuB;AAEvB,qCAAqC;AACrC,mDAAgD;AAEhD;;;;;GAKG;AAEH;;;;;;;GAOG;AACH,SAAgB,kBAAkB,CAAC,cAAsB,EAAE,eAAuB,EAAE,QAAgB;IAChG,OAAO,eAAe,CAAC,KAAK,CAAC,QAAQ,CAAC;SACjC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC;SAC5C,MAAM,CAAC,kBAAU,CAAC,CAAC,KAAK,CAAC;AAClC,CAAC;AAJD,gDAIC;AAED,SAAgB,gBAAgB,CAAC,cAA+B;IAC5D,OAAO,CAAC,OAAO,cAAc,CAAC,QAAQ,CAAC,mBAAW,CAAC,IAAI,WAAW,CAAC,CAAC,CAAC;QACjE,cAAc,CAAC,MAAM,CAAC,CAAC;QACvB,cAAc,CAAC,QAAQ,CAAC,mBAAW,CAAC,CAAC,KAAK,CAAC;AACnD,CAAC;AAJD,4CAIC;AAED,SAAgB,eAAe,CAAC,UAAoB,EAAE,QAAqB,EAAE,QAAwB;IAAxB,yBAAA,EAAA,WAAW,qBAAa;IACjG,IAAI,SAAS,GAAG,IAAI,CAAC,gBAAgB,CAAkB,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IAEtF,OAAO,SAAS,GAAG,CAAC,QAAQ,IAAI,oBAAY,CAAC,CAAC,CAAC,GAAG,GAAG,QAAQ,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,iBAAS,CAAC,CAAC;AAC1F,CAAC;AAJD,0CAIC;AAED;;;;;;;;GAQG;AACH,SAAgB,WAAW,CAAC,UAAkB,EAAE,IAAQ,EAAE,KAAY;;IAClE,IAAM,QAAQ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AE,UAAU,mCAAI,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,MAAM,mCAAU,UAAW,aAAX,UAAU,uBAAV,UAAU,CAAG,MAAM,CAAC;IAClF,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,EAAE;QAC7B,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC;KACpB;IACD,OAAO,CAAC,CAAC;AACb,CAAC;AAjBD,wCAiBC;AAED;;;;;;;;GAQG;AACH,SAAgB,eAAe,CAAC,KAAY,EAAE,IAAc,EAAE,EAA2B;;IAA3C,qBAAA,EAAA,SAAc;IAAE,mBAAA,EAAA,SAA2B;IACrF,yFAAyF;IACzF,IAAM,aAAa,GAAG,KAAK,EACvB,OAAO,GAAG,IAAI,kBAAM,CAAC,IAAI,CAAC,CAAC,QAAQ,EACnC,IAAI,GAAG,cAAE,CAAC,IAAI,CAAC,EAAE,IAAa,aAAa,CAAC,MAAM,EAAE,IAAI,CAAC,EACzD,SAAS,GAAG,IAAI,CAAC,EAAE,EAAE,UAAU,GAAG,IAAI,kBAAM,CAAC,EAAE,CAAC,EAChD,WAAW,GAAG,IAAI,kBAAM,CAAC,EAAE,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC,OAAO,CAAC,EACjE,aAAa,GAAG,IAAI,MAAK,MAAA,OAAO,CAAC,KAAK,0CAAE,WAAW,CAAA,CAAC;IAExD,OAAO,EAAC,aAAa,eAAA,EAAE,OAAO,SAAA,EAAE,IAAI,MAAA,EAAE,SAAS,WAAA,EAAE,UAAU,YAAA,EAAE,WAAW,aAAA,EAAE,QAAQ,UAAA,EAAE,aAAa,eAAA,EAAC,CAAC;AACvG,CAAC;AAVD,0CAUC"}
@@ -1,103 +0,0 @@
1
- "use strict";
2
- /* Licensed to the Apache Software Foundation (ASF) under one or more
3
- * contributor license agreements. See the NOTICE file distributed with
4
- * this work for additional information regarding copyright ownership.
5
- * The ASF licenses this file to you under the Apache License, Version 2.0
6
- * (the "License"); you may not use this file except in compliance with
7
- * the License. You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.resolveSourceForm = exports.resolveSourceElement = exports.resolveContexts = exports.resolveResponseXML = void 0;
19
- var mona_dish_1 = require("mona-dish");
20
- var Assertions_1 = require("../util/Assertions");
21
- var mona_dish_2 = require("mona-dish");
22
- var Const_1 = require("../core/Const");
23
- /**
24
- * Resolver functions for various aspects of the response data
25
- *
26
- * stateless because it might be called from various
27
- * parts of the response classes
28
- */
29
- /**
30
- * fetches the response XML
31
- * as XML Query object
32
- *
33
- * @param request the request hosting the responseXML
34
- *
35
- * Throws an error in case of non existent or wrong xml data
36
- *
37
- */
38
- function resolveResponseXML(request) {
39
- var ret = new mona_dish_1.XMLQuery(request.getIf(Const_1.SEL_RESPONSE_XML).value);
40
- Assertions_1.Assertions.assertValidXMLResponse(ret);
41
- return ret;
42
- }
43
- exports.resolveResponseXML = resolveResponseXML;
44
- /**
45
- * Splits the incoming passthrough context apart
46
- * in an internal and an external nomalized context
47
- * the internal one is just for our internal processing
48
- *
49
- * @param context the root context as associative array
50
- */
51
- function resolveContexts(context) {
52
- /**
53
- * we split the context apart into the external one and
54
- * some internal values
55
- */
56
- var externalContext = mona_dish_1.Config.fromNullable(context);
57
- var internalContext = externalContext.getIf(Const_1.CTX_PARAM_MF_INTERNAL);
58
- if (!internalContext.isPresent()) {
59
- internalContext = mona_dish_1.Config.fromNullable({});
60
- }
61
- /**
62
- * prepare storage for some deferred operations
63
- */
64
- internalContext.assign(Const_1.UPDATE_FORMS).value = [];
65
- internalContext.assign(Const_1.UPDATE_ELEMS).value = [];
66
- return { externalContext: externalContext, internalContext: internalContext };
67
- }
68
- exports.resolveContexts = resolveContexts;
69
- /**
70
- * fetches the source element out of our conexts
71
- *
72
- * @param context the external context which shpuld host the source id
73
- * @param internalContext internal passthrough fall back
74
- *
75
- */
76
- function resolveSourceElement(context, internalContext) {
77
- var elemId = resolveSourceElementId(context, internalContext);
78
- return mona_dish_2.DQ.byId(elemId.value, true);
79
- }
80
- exports.resolveSourceElement = resolveSourceElement;
81
- /**
82
- * fetches the source form if it still exists
83
- * also embedded forms and parent forms are taken into consideration
84
- * as fallbacks
85
- *
86
- * @param internalContext
87
- * @param elem
88
- */
89
- function resolveSourceForm(internalContext, elem) {
90
- var sourceFormId = internalContext.getIf(Const_1.CTX_PARAM_SRC_FRM_ID);
91
- var sourceForm = new mona_dish_2.DQ(sourceFormId.isPresent() ? document.forms[sourceFormId.value] : null);
92
- sourceForm = sourceForm.orElse(elem.parents(Const_1.TAG_FORM))
93
- .orElse(elem.querySelectorAll(Const_1.TAG_FORM))
94
- .orElse(mona_dish_2.DQ.querySelectorAll(Const_1.TAG_FORM));
95
- return sourceForm;
96
- }
97
- exports.resolveSourceForm = resolveSourceForm;
98
- function resolveSourceElementId(context, internalContext) {
99
- //?internal context?? used to be external one
100
- return internalContext.getIf(Const_1.CTX_PARAM_SRC_CTL_ID)
101
- .orElseLazy(function () { return context.getIf(Const_1.SOURCE, "id").value; });
102
- }
103
- //# sourceMappingURL=ResonseDataResolver.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ResonseDataResolver.js","sourceRoot":"","sources":["../../../../../src/main/typescript/impl/xhrCore/ResonseDataResolver.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uCAAqD;AAErD,iDAA8C;AAC9C,uCAA6B;AAC7B,uCASuB;AAEvB;;;;;GAKG;AAEH;;;;;;;;GAQG;AACH,SAAgB,kBAAkB,CAAC,OAAe;IAC9C,IAAI,GAAG,GAAG,IAAI,oBAAQ,CAAC,OAAO,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,CAAC,CAAC,IAAI,CAAC,CAAC;IAE9F,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,gBAAQ,CAAC,CAAC;SACjD,MAAM,CAAC,IAAI,CAAC,gBAAgB,CAAC,gBAAQ,CAAC,CAAC;SACvC,MAAM,CAAC,cAAE,CAAC,gBAAgB,CAAC,gBAAQ,CAAC,CAAC,CAAC;IAE3C,OAAO,UAAU,CAAC;AACtB,CAAC;AATD,8CASC;AAED,SAAS,sBAAsB,CAAC,OAAe,EAAE,eAAuB;IACpE,6CAA6C;IAC7C,OAAO,eAAe,CAAC,KAAK,CAAC,4BAAoB,CAAC;SAC7C,UAAU,CAAC,cAAM,OAAA,OAAO,CAAC,KAAK,CAAC,cAAM,EAAE,IAAI,CAAC,CAAC,KAAK,EAAjC,CAAiC,CAAC,CAAC;AAC7D,CAAC"}
@@ -1,167 +0,0 @@
1
- "use strict";
2
- /* Licensed to the Apache Software Foundation (ASF) under one or more
3
- * contributor license agreements. See the NOTICE file distributed with
4
- * this work for additional information regarding copyright ownership.
5
- * The ASF licenses this file to you under the Apache License, Version 2.0
6
- * (the "License"); you may not use this file except in compliance with
7
- * the License. You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.Response = void 0;
19
- var mona_dish_1 = require("mona-dish");
20
- var ResponseProcessor_1 = require("./ResponseProcessor");
21
- var Const_1 = require("../core/Const");
22
- var ResonseDataResolver_1 = require("./ResonseDataResolver");
23
- var Response;
24
- (function (Response) {
25
- /**
26
- * Standardized jsf.js response
27
- * this one is called straight from jsf.js.response
28
- *
29
- * The processing follows the spec by going for the responseXML
30
- * and processing its tags
31
- *
32
- * @param {XMLHttpRequest} request (xhrRequest) - xhr request object
33
- * @param ASSOC_ARR<any> context (Map) - AJAX context
34
- *
35
- */
36
- function processResponse(request, context) {
37
- var req = mona_dish_1.Config.fromNullable(request);
38
- var _a = (0, ResonseDataResolver_1.resolveContexts)(context), externalContext = _a.externalContext, internalContext = _a.internalContext;
39
- var responseXML = (0, ResonseDataResolver_1.resolveResponseXML)(req);
40
- var responseProcessor = new ResponseProcessor_1.ResponseProcessor(req, externalContext, internalContext);
41
- internalContext.assign(Const_1.RESPONSE_XML).value = responseXML;
42
- //we now process the partial tags, or in none given raise an error
43
- responseXML.querySelectorAll(Const_1.RESP_PARTIAL)
44
- .each(function (item) { return processPartialTag(item, responseProcessor, internalContext); });
45
- //we now process the viewstates, client windows and the evals deferred
46
- //the reason for this is that often it is better
47
- //to wait until the document has caught up before
48
- //doing any evals even on embedded scripts
49
- //usually this does not matter, the client window comes in almost last always anyway
50
- //we maybe drop this deferred assignment in the future, but myfaces did it until now
51
- responseProcessor.fixViewStates();
52
- responseProcessor.fixClientWindow();
53
- responseProcessor.globalEval();
54
- responseProcessor.done();
55
- }
56
- Response.processResponse = processResponse;
57
- /**
58
- * highest node partial-response from there the main operations are triggered
59
- */
60
- function processPartialTag(node, responseProcessor, internalContext) {
61
- internalContext.assign(Const_1.PARTIAL_ID).value = node.id;
62
- var SEL_SUB_TAGS = [Const_1.CMD_ERROR, Const_1.CMD_REDIRECT, Const_1.CMD_CHANGES].join(",");
63
- //now we can process the main operations
64
- node.getIf(SEL_SUB_TAGS).each(function (node) {
65
- switch (node.tagName.value) {
66
- case Const_1.CMD_ERROR:
67
- responseProcessor.error(node);
68
- break;
69
- case Const_1.CMD_REDIRECT:
70
- responseProcessor.redirect(node);
71
- break;
72
- case Const_1.CMD_CHANGES:
73
- processChangesTag(node, responseProcessor);
74
- break;
75
- }
76
- });
77
- }
78
- var processInsert = function (responseProcessor, node) {
79
- //path1 insert after as child tags
80
- if (node.querySelectorAll([Const_1.TAG_BEFORE, Const_1.TAG_AFTER].join(",")).length) {
81
- responseProcessor.insertWithSubtags(node);
82
- }
83
- else { //insert before after with id
84
- responseProcessor.insert(node);
85
- }
86
- };
87
- /**
88
- * next level changes tag
89
- *
90
- * @param node
91
- * @param responseProcessor
92
- */
93
- function processChangesTag(node, responseProcessor) {
94
- 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(",");
95
- node.getIf(ALLOWED_TAGS).each(function (node) {
96
- switch (node.tagName.value) {
97
- case Const_1.CMD_UPDATE:
98
- processUpdateTag(node, responseProcessor);
99
- break;
100
- case Const_1.CMD_EVAL:
101
- responseProcessor.eval(node);
102
- break;
103
- case Const_1.CMD_INSERT:
104
- processInsert(responseProcessor, node);
105
- break;
106
- case Const_1.CMD_DELETE:
107
- responseProcessor.delete(node);
108
- break;
109
- case Const_1.CMD_ATTRIBUTES:
110
- responseProcessor.attributes(node);
111
- break;
112
- case Const_1.CMD_EXTENSION:
113
- break;
114
- }
115
- });
116
- return true;
117
- }
118
- /**
119
- * checks and stores a state update for delayed processing
120
- *
121
- * @param responseProcessor the response processor to perform the store operation
122
- * @param node the xml node to check for the state
123
- *
124
- * @private
125
- */
126
- function storeState(responseProcessor, node) {
127
- return responseProcessor.processViewState(node) || responseProcessor.processClientWindow(node);
128
- }
129
- /**
130
- * branch tag update.. drill further down into the updates
131
- * special case viewstate in that case it is a leaf
132
- * and the viewstate must be processed
133
- *
134
- * @param node
135
- * @param responseProcessor
136
- */
137
- function processUpdateTag(node, responseProcessor) {
138
- //early state storing, if no state we perform a normal update cycle
139
- if (!storeState(responseProcessor, node)) {
140
- handleElementUpdate(node, responseProcessor);
141
- }
142
- }
143
- /**
144
- * element update
145
- *
146
- * @param node
147
- * @param responseProcessor
148
- */
149
- function handleElementUpdate(node, responseProcessor) {
150
- var cdataBlock = node.cDATAAsString;
151
- switch (node.id.value) {
152
- case Const_1.P_VIEWROOT:
153
- responseProcessor.replaceViewRoot(mona_dish_1.DQ.fromMarkup(cdataBlock.substring(cdataBlock.indexOf("<html"))));
154
- break;
155
- case Const_1.P_VIEWHEAD:
156
- responseProcessor.replaceHead(mona_dish_1.DQ.fromMarkup(cdataBlock));
157
- break;
158
- case Const_1.P_VIEWBODY:
159
- responseProcessor.replaceBody(mona_dish_1.DQ.fromMarkup(cdataBlock));
160
- break;
161
- default: //htmlItem replacement
162
- responseProcessor.update(node, cdataBlock);
163
- break;
164
- }
165
- }
166
- })(Response = exports.Response || (exports.Response = {}));
167
- //# sourceMappingURL=Response.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Response.js","sourceRoot":"","sources":["../../../../../src/main/typescript/impl/xhrCore/Response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uCAA+C;AAC/C,yDAAsD;AAGtD,uCAkBuB;AACvB,6DAA0E;AAI1E,IAAc,QAAQ,CAwKrB;AAxKD,WAAc,QAAQ;IAGlB;;;;;;;;;;OAUG;IACH,SAAgB,eAAe,CAAC,OAAuB,EAAE,OAAgB;QAErE,IAAI,GAAG,GAAG,kBAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QACnC,IAAA,KAAqC,IAAA,qCAAe,EAAC,OAAO,CAAC,EAA5D,eAAe,qBAAA,EAAE,eAAe,qBAA4B,CAAC;QAClE,IAAI,WAAW,GAAa,IAAA,wCAAkB,EAAC,GAAG,CAAC,CAAC;QACpD,IAAI,iBAAiB,GAAG,IAAI,qCAAiB,CAAC,GAAG,EAAE,eAAe,EAAE,eAAe,CAAC,CAAC;QAErF,eAAe,CAAC,MAAM,CAAC,oBAAY,CAAC,CAAC,KAAK,GAAG,WAAW,CAAC;QAEzD,kEAAkE;QAClE,WAAW,CAAC,gBAAgB,CAAC,oBAAY,CAAC;aACrC,IAAI,CAAC,UAAA,IAAI,IAAI,OAAA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