sf-crud 13.2.46 → 13.2.47

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.
@@ -2266,7 +2266,6 @@ class ControlComponent {
2266
2266
  }
2267
2267
  }
2268
2268
  ngOnDestroy() {
2269
- console.log("Destroy control");
2270
2269
  if (this.subscription) {
2271
2270
  this.subscription.unsubscribe();
2272
2271
  // Limpiar el estado del campo cuando se destruye el componente
@@ -2384,7 +2383,6 @@ class ControlComponent {
2384
2383
  if (this.control.config?.optionValueExtra) {
2385
2384
  const optionValueKey = this.control.field || this.control.config.optionValue;
2386
2385
  const selectedOption = this.dataFromService.find((item) => item[optionValueKey] === event.value);
2387
- console.log('[control onDropdownChange] optionValueExtra:', this.control.config.optionValueExtra, '| event.value:', event.value, '| selectedOption:', selectedOption);
2388
2386
  if (selectedOption) {
2389
2387
  this.sendObject.emit({
2390
2388
  data: selectedOption,
@@ -2435,7 +2433,6 @@ class ControlComponent {
2435
2433
  }
2436
2434
  }
2437
2435
  if (this.control.config.optionValueExtra && this.sendObject) {
2438
- console.log('[control sendObject] emitting optionValueExtra (dropdown:replace):', this.control.config.optionValueExtra, '| event.value:', event.value);
2439
2436
  this.sendObject.emit({
2440
2437
  data: event.value,
2441
2438
  optionValue: this.control.config.optionValueExtra
@@ -2904,7 +2901,6 @@ class FormComponent {
2904
2901
  this.crudService.applyValuesOnEvent('onChange', this.esquema, undefined, this.data);
2905
2902
  }
2906
2903
  applyValuesFromObject(event, arrayIndex) {
2907
- console.log('[applyValuesFromObject] event:', event, '| arrayIndex:', arrayIndex);
2908
2904
  if (event.optionValue) {
2909
2905
  for (let i = 0; i < event.optionValue.length; i++) {
2910
2906
  const optionVal = event.optionValue[i];
@@ -2923,9 +2919,7 @@ class FormComponent {
2923
2919
  else {
2924
2920
  transformedScope = optionVal.scope.replaceAll('..properties', '').replaceAll('.properties', '');
2925
2921
  }
2926
- console.log('[applyValuesFromObject] scope:', optionVal.scope, '| transformedScope:', transformedScope, '| key:', optionVal.key, '| newVal:', newVal);
2927
2922
  jsonpath.value(this.data, transformedScope, newVal);
2928
- console.log('[applyValuesFromObject] data after set:', JSON.stringify(this.data?.Solidarios));
2929
2923
  this.setValueByScope(optionVal.scope, newVal);
2930
2924
  }
2931
2925
  this.buildControls();