jsf.js_next_gen 4.0.2-beta.1 → 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 (31) hide show
  1. package/dist/window/faces-development.js +8 -6
  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 +8 -6
  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 +6 -4
  20. package/src/main/typescript/test/frameworkBase/_ext/shared/StandardInits.ts +22 -0
  21. package/src/main/typescript/test/xhrCore/RequestTest.spec.ts +45 -0
  22. package/src/main/typescript/test/xhrCore/ResponseTest.spec.ts +3 -3
  23. package/target/impl/util/HiddenInputBuilder.js +2 -2
  24. package/target/impl/util/HiddenInputBuilder.js.map +1 -1
  25. package/target/impl/xhrCore/XhrRequest.js +6 -4
  26. package/target/impl/xhrCore/XhrRequest.js.map +1 -1
  27. package/target/test/frameworkBase/_ext/shared/StandardInits.js +20 -0
  28. package/target/test/frameworkBase/_ext/shared/StandardInits.js.map +1 -1
  29. package/target/test/xhrCore/RequestTest.spec.js +36 -0
  30. package/target/test/xhrCore/RequestTest.spec.js.map +1 -1
  31. package/target/test/xhrCore/ResponseTest.spec.js +3 -3
@@ -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));
@@ -8035,10 +8035,12 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
8035
8035
  }
8036
8036
  const issuingItemId = this.internalContext.getIf(Const_1.CTX_PARAM_SRC_CTL_ID).value;
8037
8037
  if (issuingItemId) {
8038
- const issuingItem = mona_dish_1.DQ.byId(issuingItemId);
8039
- const arr = new ExtDomQuery_1.ExtConfig({});
8040
- arr.assign(issuingItemId).value = issuingItem.val;
8041
- formData.shallowMerge(arr, true, true);
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
+ }
8042
8044
  }
8043
8045
  this.responseContext = requestPassThroughParams.deepCopy;
8044
8046
  // we have to shift the internal passthroughs around to build up our response context
Binary file
Binary file