jsf.js_next_gen 4.0.1-beta.9 → 4.0.2-beta.2

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 (197) hide show
  1. package/dist/window/faces-development.js +12 -2
  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 +12 -2
  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 +1 -1
  18. package/src/main/typescript/impl/util/HiddenInputBuilder.ts +2 -2
  19. package/src/main/typescript/impl/xhrCore/XhrRequest.ts +11 -0
  20. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +22 -0
  21. package/src/main/typescript/test/xhrCore/RequestParamsTest.spec.ts +2 -1
  22. package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +45 -0
  23. package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +3 -3
  24. package/target/impl/util/HiddenInputBuilder.js +2 -2
  25. package/target/impl/util/HiddenInputBuilder.js.map +1 -1
  26. package/target/impl/xhrCore/XhrRequest.js +10 -0
  27. package/target/impl/xhrCore/XhrRequest.js.map +1 -1
  28. package/target/test/frameworkBase/_ext/shared/StandardInits.js +20 -0
  29. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  30. package/target/test/xhrCore/RequestParamsTest.spec.js +2 -1
  31. package/target/test/xhrCore/RequestParamsTest.spec.js.map +1 -1
  32. package/target/test/xhrCore/RequestTest.spec.js +36 -0
  33. package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
  34. package/target/test/xhrCore/ResponseTest.spec.js +3 -3
  35. package/target/AssocArray.js +0 -281
  36. package/target/AssocArray.js.map +0 -1
  37. package/target/Config.js +0 -235
  38. package/target/Config.js.map +0 -1
  39. package/target/CryptoExtensions.js +0 -112
  40. package/target/CryptoExtensions.js.map +0 -1
  41. package/target/DomQuery.js +0 -1963
  42. package/target/DomQuery.js.map +0 -1
  43. package/target/Es2019Array.js +0 -117
  44. package/target/Es2019Array.js.map +0 -1
  45. package/target/Global.js +0 -38
  46. package/target/Global.js.map +0 -1
  47. package/target/IDomQuery.js +0 -3
  48. package/target/IDomQuery.js.map +0 -1
  49. package/target/Lang.js +0 -183
  50. package/target/Lang.js.map +0 -1
  51. package/target/Messaging.js +0 -645
  52. package/target/Messaging.js.map +0 -1
  53. package/target/Monad.js +0 -330
  54. package/target/Monad.js.map +0 -1
  55. package/target/Promise.js +0 -296
  56. package/target/Promise.js.map +0 -1
  57. package/target/PromiseShim.js +0 -30
  58. package/target/PromiseShim.js.map +0 -1
  59. package/target/SourcesCollectors.js +0 -444
  60. package/target/SourcesCollectors.js.map +0 -1
  61. package/target/Stream.js +0 -562
  62. package/target/Stream.js.map +0 -1
  63. package/target/TagBuilder.js +0 -178
  64. package/target/TagBuilder.js.map +0 -1
  65. package/target/XmlQuery.js +0 -84
  66. package/target/XmlQuery.js.map +0 -1
  67. package/target/classes/com/example/jsfs_js_ts/DecoratedFacesJS.class +0 -0
  68. package/target/classes/com/example/jsfs_js_ts/DecoratingResourceHandlerWrapper.class +0 -0
  69. package/target/classes/com/example/jsfs_js_ts/FacesJSMapFileResourceWrapper.class +0 -0
  70. package/target/classes/com/example/jsfs_js_ts/FacesJSMappingDecorator.class +0 -0
  71. package/target/impl/core/Context.js +0 -10
  72. package/target/impl/core/Context.js.map +0 -1
  73. package/target/impl/util/AsyncQueue.js +0 -109
  74. package/target/impl/util/AsyncQueue.js.map +0 -1
  75. package/target/impl/util/HiddenElementBuilder.js +0 -7
  76. package/target/impl/util/HiddenElementBuilder.js.map +0 -1
  77. package/target/impl/util/IAsyncRunnable.js +0 -27
  78. package/target/impl/util/IAsyncRunnable.js.map +0 -1
  79. package/target/impl/util/URLCodec.js +0 -77
  80. package/target/impl/util/URLCodec.js.map +0 -1
  81. package/target/impl/xhrCore/RequestContext.js +0 -11
  82. package/target/impl/xhrCore/RequestContext.js.map +0 -1
  83. package/target/impl/xhrCore/XhrQueHandler.js +0 -11
  84. package/target/impl/xhrCore/XhrQueHandler.js.map +0 -1
  85. package/target/impl/xhrCore/XhrQueueController.js +0 -62
  86. package/target/impl/xhrCore/XhrQueueController.js.map +0 -1
  87. package/target/index.js +0 -80
  88. package/target/index.js.map +0 -1
  89. package/target/index_core.js +0 -76
  90. package/target/index_core.js.map +0 -1
  91. package/target/test/frameworkBase/_ext/monadish/ExtendedArrayTest.spec.js +0 -76
  92. package/target/test/frameworkBase/_ext/monadish/ExtendedArrayTest.spec.js.map +0 -1
  93. package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js +0 -178
  94. package/target/test/frameworkBase/_ext/monadish/StreamTest.spec.js.map +0 -1
  95. package/target/test/myfaces/OnLoadSpec.js +0 -57
  96. package/target/test/myfaces/OnLoadSpec.js.map +0 -1
  97. package/target/test-classes/.gz +0 -0
  98. package/target/test-classes/com/example/jsfs_js_ts/JsfsJsTsApplicationTests.class +0 -0
  99. package/target/test-classes/fileuploadtest.html +0 -24
  100. package/target/test-classes/jsf-development.js +0 -3559
  101. package/target/test-classes/jsf-development.js.br +0 -0
  102. package/target/test-classes/jsf-development.js.gz +0 -0
  103. package/target/test-classes/jsf-development.js.map +0 -1
  104. package/target/test-classes/jsf.js +0 -3
  105. package/target/test-classes/jsf.js.br +0 -0
  106. package/target/test-classes/jsf.js.gz +0 -0
  107. package/target/types/main/typescript/AssocArray.d.ts +0 -86
  108. package/target/types/main/typescript/Config.d.ts +0 -94
  109. package/target/types/main/typescript/CryptoExtensions.d.ts +0 -87
  110. package/target/types/main/typescript/DomQuery.d.ts +0 -587
  111. package/target/types/main/typescript/Es2019Array.d.ts +0 -30
  112. package/target/types/main/typescript/Global.d.ts +0 -23
  113. package/target/types/main/typescript/IDomQuery.d.ts +0 -480
  114. package/target/types/main/typescript/Lang.d.ts +0 -97
  115. package/target/types/main/typescript/Messaging.d.ts +0 -285
  116. package/target/types/main/typescript/Monad.d.ts +0 -161
  117. package/target/types/main/typescript/Promise.d.ts +0 -58
  118. package/target/types/main/typescript/PromiseShim.d.ts +0 -22
  119. package/target/types/main/typescript/SourcesCollectors.d.ts +0 -280
  120. package/target/types/main/typescript/Stream.d.ts +0 -284
  121. package/target/types/main/typescript/TagBuilder.d.ts +0 -50
  122. package/target/types/main/typescript/XmlQuery.d.ts +0 -31
  123. package/target/types/main/typescript/api/_api.d.ts +0 -182
  124. package/target/types/main/typescript/api/faces.d.ts +0 -17
  125. package/target/types/main/typescript/api/jsf.d.ts +0 -17
  126. package/target/types/main/typescript/impl/AjaxImpl.d.ts +0 -164
  127. package/target/types/main/typescript/impl/PushImpl.d.ts +0 -38
  128. package/target/types/main/typescript/impl/core/Const.d.ts +0 -138
  129. package/target/types/main/typescript/impl/core/ImplTypes.d.ts +0 -16
  130. package/target/types/main/typescript/impl/i18n/Messages.d.ts +0 -102
  131. package/target/types/main/typescript/impl/util/Assertions.d.ts +0 -46
  132. package/target/types/main/typescript/impl/util/AsyncRunnable.d.ts +0 -112
  133. package/target/types/main/typescript/impl/util/ExtDomQuery.d.ts +0 -100
  134. package/target/types/main/typescript/impl/util/FileUtils.d.ts +0 -25
  135. package/target/types/main/typescript/impl/util/HiddenInputBuilder.d.ts +0 -37
  136. package/target/types/main/typescript/impl/util/IListener.d.ts +0 -18
  137. package/target/types/main/typescript/impl/util/Lang.d.ts +0 -138
  138. package/target/types/main/typescript/impl/util/XhrQueueController.d.ts +0 -51
  139. package/target/types/main/typescript/impl/xhrCore/ErrorData.d.ts +0 -37
  140. package/target/types/main/typescript/impl/xhrCore/EventData.d.ts +0 -25
  141. package/target/types/main/typescript/impl/xhrCore/IResponseProcessor.d.ts +0 -136
  142. package/target/types/main/typescript/impl/xhrCore/RequestDataResolver.d.ts +0 -84
  143. package/target/types/main/typescript/impl/xhrCore/ResonseDataResolver.d.ts +0 -60
  144. package/target/types/main/typescript/impl/xhrCore/Response.d.ts +0 -29
  145. package/target/types/main/typescript/impl/xhrCore/ResponseProcessor.d.ts +0 -208
  146. package/target/types/main/typescript/impl/xhrCore/XhrFormData.d.ts +0 -83
  147. package/target/types/main/typescript/impl/xhrCore/XhrRequest.d.ts +0 -102
  148. package/target/types/main/typescript/index.d.ts +0 -34
  149. package/target/types/main/typescript/index_core.d.ts +0 -29
  150. package/target/types/main/typescript/myfaces/OamSubmit.d.ts +0 -53
  151. package/target/types/main/typescript/test/frameworkBase/LangTest.spec.d.ts +0 -1
  152. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/DomQueryTest.spec.d.ts +0 -1
  153. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/LangTest.spec.d.ts +0 -16
  154. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MappingProbes.d.ts +0 -39
  155. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MappingTest.spec.d.ts +0 -16
  156. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/MonadTest.spec.d.ts +0 -16
  157. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/XmlQueryTest.spec.d.ts +0 -0
  158. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-with-header.d.ts +0 -1
  159. package/target/types/main/typescript/test/frameworkBase/_ext/monadish/markups/tobago-without-header.d.ts +0 -1
  160. package/target/types/main/typescript/test/frameworkBase/_ext/shared/StandardInits.d.ts +0 -63
  161. package/target/types/main/typescript/test/frameworkBase/_ext/shared/XmlResponses.d.ts +0 -23
  162. package/target/types/main/typescript/test/impl/ImplTest.spec.d.ts +0 -16
  163. package/target/types/main/typescript/test/impl/ImplTest_23.spec.d.ts +0 -16
  164. package/target/types/main/typescript/test/impl/SeparatorCharsTest.spec.d.ts +0 -16
  165. package/target/types/main/typescript/test/myfaces/OamSubmit.spec.d.ts +0 -16
  166. package/target/types/main/typescript/test/myfaces/OnLoad.spec.d.ts +0 -16
  167. package/target/types/main/typescript/test/queue/AsynchronousProbe.d.ts +0 -38
  168. package/target/types/main/typescript/test/queue/AsynchronousQueueTest.spec.d.ts +0 -16
  169. package/target/types/main/typescript/test/xhrCore/ClientWindow.spec.d.ts +0 -1
  170. package/target/types/main/typescript/test/xhrCore/ErrorChainTest.spec.d.ts +0 -16
  171. package/target/types/main/typescript/test/xhrCore/EventTests.spec.d.ts +0 -16
  172. package/target/types/main/typescript/test/xhrCore/FakeWebsocket.d.ts +0 -24
  173. package/target/types/main/typescript/test/xhrCore/FileUploadTest.spec.d.ts +0 -1
  174. package/target/types/main/typescript/test/xhrCore/NamespacesRequestTest.spec.d.ts +0 -16
  175. package/target/types/main/typescript/test/xhrCore/OamSubmitTest.spec.d.ts +0 -16
  176. package/target/types/main/typescript/test/xhrCore/RequestParamsTest.spec.d.ts +0 -1
  177. package/target/types/main/typescript/test/xhrCore/RequestTest.spec.d.ts +0 -16
  178. package/target/types/main/typescript/test/xhrCore/RequestTest_23.spec.d.ts +0 -16
  179. package/target/types/main/typescript/test/xhrCore/ResponseTest.spec.d.ts +0 -16
  180. package/target/types/main/typescript/test/xhrCore/ResponseTest23.spec.d.ts +0 -16
  181. package/target/types/main/typescript/test/xhrCore/ShadowDomTest.spec.d.ts +0 -16
  182. package/target/types/main/typescript/test/xhrCore/TobagoFileUploadTest.spec.d.ts +0 -1
  183. package/target/types/main/typescript/test/xhrCore/WebsocketTest.d.ts +0 -1
  184. package/target/types/main/typescript/test/xhrCore/XhrFormDataTest.spec.d.ts +0 -16
  185. package/target/types/test/typescript/AssocArrayTest.spec.d.ts +0 -1
  186. package/target/types/test/typescript/DomQueryTest.spec.d.ts +0 -1
  187. package/target/types/test/typescript/ExtendedArrayTest.spec.d.ts +0 -1
  188. package/target/types/test/typescript/LangTest.spec.d.ts +0 -1
  189. package/target/types/test/typescript/MappingProbes.d.ts +0 -24
  190. package/target/types/test/typescript/MappingTest.spec.d.ts +0 -1
  191. package/target/types/test/typescript/MessagingTest.spec.d.ts +0 -1
  192. package/target/types/test/typescript/MonadTest.spec.d.ts +0 -16
  193. package/target/types/test/typescript/PromiseTest.spec.d.ts +0 -1
  194. package/target/types/test/typescript/StreamTest.spec.d.ts +0 -1
  195. package/target/types/test/typescript/XmlQueryTest.spec.d.ts +0 -1
  196. package/target/types/test/typescript/markups/tobago-with-header.d.ts +0 -1
  197. package/target/types/test/typescript/markups/tobago-without-header.d.ts +0 -1
@@ -6220,7 +6220,7 @@ class HiddenInputBuilder {
6220
6220
  const SEP = (0, Const_1.$faces)().separatorchar;
6221
6221
  let existingStates = (0, mona_dish_1.DQ$)(`[name*='${(0, Const_1.$nsp)(this.name)}']`);
6222
6222
  let cnt = existingStates.asArray.map(state => {
6223
- let ident = state.id.orElse("-1").value;
6223
+ let ident = state.id.orElse("0").value;
6224
6224
  ident = ident.substring(ident.lastIndexOf(SEP) + 1);
6225
6225
  return parseInt(ident);
6226
6226
  })
@@ -6229,7 +6229,7 @@ class HiddenInputBuilder {
6229
6229
  })
6230
6230
  .reduce((item1, item2) => {
6231
6231
  return Math.max(item1, item2);
6232
- }, -1);
6232
+ }, 0); //we start with 1 (see cnt++)
6233
6233
  //the maximum new ident is the current max + 1
6234
6234
  cnt++;
6235
6235
  const newElement = mona_dish_1.DQ.fromMarkup((0, Const_1.$nsp)(this.template));
@@ -7953,6 +7953,7 @@ const Lang_1 = __webpack_require__(/*! ../util/Lang */ "./src/main/typescript/im
7953
7953
  const Const_1 = __webpack_require__(/*! ../core/Const */ "./src/main/typescript/impl/core/Const.ts");
7954
7954
  const RequestDataResolver_1 = __webpack_require__(/*! ./RequestDataResolver */ "./src/main/typescript/impl/xhrCore/RequestDataResolver.ts");
7955
7955
  var failSaveExecute = Lang_1.ExtLang.failSaveExecute;
7956
+ const ExtDomQuery_1 = __webpack_require__(/*! ../util/ExtDomQuery */ "./src/main/typescript/impl/util/ExtDomQuery.ts");
7956
7957
  /**
7957
7958
  * Faces XHR Request Wrapper
7958
7959
  * as AsyncRunnable for our Asynchronous queue
@@ -8032,6 +8033,15 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
8032
8033
  this.requestContext.$nspEnabled = true;
8033
8034
  requestPassThroughParams.$nspEnabled = true;
8034
8035
  }
8036
+ const issuingItemId = this.internalContext.getIf(Const_1.CTX_PARAM_SRC_CTL_ID).value;
8037
+ if (issuingItemId) {
8038
+ const itemValue = mona_dish_1.DQ.byId(issuingItemId).inputValue;
8039
+ if (itemValue.isPresent()) {
8040
+ const arr = new ExtDomQuery_1.ExtConfig({});
8041
+ arr.assign(issuingItemId).value = itemValue.value;
8042
+ formData.shallowMerge(arr, true, true);
8043
+ }
8044
+ }
8035
8045
  this.responseContext = requestPassThroughParams.deepCopy;
8036
8046
  // we have to shift the internal passthroughs around to build up our response context
8037
8047
  const responseContext = this.responseContext;
Binary file
Binary file