jsf.js_next_gen 4.0.2-beta.7 → 4.0.2-beta.9

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.
@@ -4447,13 +4447,14 @@ var Implementation;
4447
4447
  // we can use our lazy stream each functionality to run our chain here.
4448
4448
  // by passing a boolean as return value into the onElem call
4449
4449
  // we can stop early at the first false, just like the spec requests
4450
- let ret;
4450
+ let ret = true;
4451
4451
  funcs.every(func => {
4452
4452
  let returnVal = resolveAndExecute(source, event, func);
4453
- if (returnVal !== false) {
4454
- ret = returnVal;
4453
+ if (returnVal === false) {
4454
+ ret = false;
4455
4455
  }
4456
- return returnVal !== false;
4456
+ //we short circuit in case of false and break the every loop
4457
+ return ret;
4457
4458
  });
4458
4459
  return ret;
4459
4460
  }
@@ -4839,13 +4840,14 @@ var Implementation;
4839
4840
  }
4840
4841
  }
4841
4842
  /**
4842
- * transforms the user values to the expected one
4843
- * with the proper none all form and this handling
4844
- * (note we also could use a simple string replace, but then
4845
- * we would have had double entries under some circumstances)
4843
+ * transforms the user values to the expected values
4844
+ * handling '@none', '@all', '@form', and '@this' appropriately.
4845
+ * (Note: Although we could employ a simple string replacement method,
4846
+ * it could result in duplicate entries under certain conditions.)
4846
4847
  *
4847
- * there are several standardized constants which need a special treatment
4848
- * like @all, @none, @form, @this
4848
+ * Specific standardized constants such as
4849
+ * '@all', '@none', '@form', and '@this'
4850
+ * require special treatment.
4849
4851
  *
4850
4852
  * @param targetConfig the target configuration receiving the final values
4851
4853
  * @param targetKey the target key
@@ -4940,15 +4942,14 @@ var Implementation;
4940
4942
  return targetConfig;
4941
4943
  }
4942
4944
  /**
4943
- * Filter the options given with a blacklist, so that only
4944
- * the values required for params-through are processed in the ajax request
4945
+ * Filters the provided options using a blacklist to ensure
4946
+ * only pass-through parameters are processed for the Ajax request.
4945
4947
  *
4946
- * Note this is a bug carried over from the old implementation
4947
- * the spec conform behavior is to use params for pass - through values
4948
- * this will be removed soon, after it is cleared up whether removing
4949
- * it breaks any legacy code
4948
+ * Note that this issue is leftover from a previous implementation.
4949
+ * The specification-conforming behavior is to use parameters for pass-through values.
4950
+ * This will be addressed soon, after confirming that removal won't break any legacy code.
4950
4951
  *
4951
- * @param {Context} mappedOpts the options to be filtered
4952
+ * @param {Context} mappedOpts - The options to be filtered.
4952
4953
  */
4953
4954
  function extractLegacyParams(mappedOpts) {
4954
4955
  //we now can use the full code reduction given by our stream api
@@ -4958,8 +4959,9 @@ var Implementation;
4958
4959
  .reduce(collectAssoc, {});
4959
4960
  }
4960
4961
  /**
4961
- * extracts the myfaces config parameters which provide extra functionality
4962
- * on top of JSF
4962
+ * Extracts the MyFaces configuration parameters
4963
+ * that augment JSF with additional functionality.
4964
+ *
4963
4965
  * @param mappedOpts
4964
4966
  * @private
4965
4967
  */
@@ -8349,10 +8351,10 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
8349
8351
  const type = issuingItem.type.orElse("").value.toLowerCase();
8350
8352
  //Checkbox and radio only value pass if checked is set, otherwise they should not show
8351
8353
  //up at all, and if checked is set, they either can have a value or simply being boolean
8352
- if ((type == "checkbox" || type == "radio") && issuingItem.attr("checked").isAbsent()) {
8354
+ if ((type == XhrRequest.TYPE_CHECKBOX || type == XhrRequest.TYPE_RADIO) && !issuingItem.checked) {
8353
8355
  return;
8354
8356
  }
8355
- else if ((type == "checkbox" || type == "radio")) {
8357
+ else if ((type == XhrRequest.TYPE_CHECKBOX || type == XhrRequest.TYPE_RADIO)) {
8356
8358
  arr.assign(issuingItemId).value = itemValue.orElse(true).value;
8357
8359
  }
8358
8360
  else if (itemValue.isPresent()) {
@@ -8363,6 +8365,8 @@ class XhrRequest extends AsyncRunnable_1.AsyncRunnable {
8363
8365
  }
8364
8366
  }
8365
8367
  exports.XhrRequest = XhrRequest;
8368
+ XhrRequest.TYPE_CHECKBOX = "checkbox";
8369
+ XhrRequest.TYPE_RADIO = "radio";
8366
8370
 
8367
8371
 
8368
8372
  /***/ }),