@solcre-org/core-ui 2.15.41 → 2.15.43

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.
@@ -199,9 +199,14 @@ class BaseFieldComponent {
199
199
  const formValue = this.formValue();
200
200
  const control = this.formControl();
201
201
  if (control) {
202
+ const wasTouched = control.touched;
202
203
  const currentValidators = this.getCurrentValidators();
204
+ control.clearValidators();
203
205
  control.setValidators(currentValidators);
204
206
  control.updateValueAndValidity({ emitEvent: false });
207
+ if (wasTouched) {
208
+ control.markAsTouched();
209
+ }
205
210
  }
206
211
  });
207
212
  effect(() => {
@@ -6982,8 +6987,18 @@ class GenericModalComponent {
6982
6987
  effect(() => {
6983
6988
  const editedData = this.editedData();
6984
6989
  const activeStepId = this.activeStepId();
6985
- if (editedData && this.hasSteps() && activeStepId && this.stepValidationEnabled()) {
6986
- this.validateCurrentStepFields();
6990
+ if (editedData) {
6991
+ const allErrors = {};
6992
+ this.allFields().forEach(field => {
6993
+ const control = this.form().get(field.key);
6994
+ if (control && control.touched) {
6995
+ const validationResult = this.validateField(field.key, control.value);
6996
+ if (validationResult.fieldErrors.length > 0) {
6997
+ allErrors[field.key] = validationResult.fieldErrors;
6998
+ }
6999
+ }
7000
+ });
7001
+ this.fieldErrors.set(allErrors);
6987
7002
  }
6988
7003
  });
6989
7004
  }
@@ -7119,10 +7134,17 @@ class GenericModalComponent {
7119
7134
  return result;
7120
7135
  if (control.touched) {
7121
7136
  const modeConfig = field.modes?.[this.mode()];
7137
+ const validatorConfig = modeConfig?.validators ?? field.validators ?? [];
7138
+ const currentValidators = typeof validatorConfig === 'function'
7139
+ ? validatorConfig(this.editedData())
7140
+ : validatorConfig;
7141
+ control.clearValidators();
7142
+ control.setValidators(currentValidators);
7143
+ control.updateValueAndValidity({ emitEvent: false });
7122
7144
  const errorMessages = modeConfig?.errorMessages ?? field.errorMessages ?? {};
7123
7145
  if (control.errors) {
7124
7146
  const fieldConfig = this.getFieldConfig(field);
7125
- const isDynamicValidators = typeof (modeConfig?.validators ?? field.validators) === 'function';
7147
+ const isDynamicValidators = typeof validatorConfig === 'function';
7126
7148
  if (isDynamicValidators) {
7127
7149
  result.fieldErrors = this.mapDynamicValidatorErrors(control.errors, errorMessages);
7128
7150
  }
@@ -14355,6 +14377,9 @@ class GenericTableComponent {
14355
14377
  customClass: this.expansionConfig()?.buttonClass || 'c-icon-btn'
14356
14378
  };
14357
14379
  }
14380
+ getDefaultTooltipPosition() {
14381
+ return this.scrollTable() ? 'left' : 'bottom';
14382
+ }
14358
14383
  getActionButtonConfig(action, actionConfig, row) {
14359
14384
  const configs = {
14360
14385
  [TableAction.VIEW]: {
@@ -14364,7 +14389,7 @@ class GenericTableComponent {
14364
14389
  tooltipConfig: {
14365
14390
  hasTooltip: true,
14366
14391
  text: actionConfig.tooltip || 'table.view',
14367
- position: actionConfig.tooltipPosition || 'left'
14392
+ position: actionConfig.tooltipPosition || this.getDefaultTooltipPosition()
14368
14393
  },
14369
14394
  // text: 'table.view'
14370
14395
  },
@@ -14375,7 +14400,7 @@ class GenericTableComponent {
14375
14400
  tooltipConfig: {
14376
14401
  hasTooltip: true,
14377
14402
  text: actionConfig.tooltip || 'table.edit',
14378
- position: actionConfig.tooltipPosition || 'left'
14403
+ position: actionConfig.tooltipPosition || this.getDefaultTooltipPosition()
14379
14404
  },
14380
14405
  // text: 'table.edit'
14381
14406
  },
@@ -14386,7 +14411,7 @@ class GenericTableComponent {
14386
14411
  tooltipConfig: {
14387
14412
  hasTooltip: true,
14388
14413
  text: actionConfig.tooltip || 'table.delete',
14389
- position: actionConfig.tooltipPosition || 'left'
14414
+ position: actionConfig.tooltipPosition || this.getDefaultTooltipPosition()
14390
14415
  },
14391
14416
  context: ButtonContext.ERROR,
14392
14417
  },
@@ -14397,7 +14422,7 @@ class GenericTableComponent {
14397
14422
  tooltipConfig: {
14398
14423
  hasTooltip: true,
14399
14424
  text: actionConfig.tooltip || 'table.recover',
14400
- position: actionConfig.tooltipPosition || 'left'
14425
+ position: actionConfig.tooltipPosition || this.getDefaultTooltipPosition()
14401
14426
  },
14402
14427
  }
14403
14428
  };
@@ -14408,7 +14433,7 @@ class GenericTableComponent {
14408
14433
  tooltipConfig: {
14409
14434
  hasTooltip: true,
14410
14435
  text: actionConfig.tooltip || action,
14411
- position: actionConfig.tooltipPosition || 'left'
14436
+ position: actionConfig.tooltipPosition || this.getDefaultTooltipPosition()
14412
14437
  },
14413
14438
  };
14414
14439
  const isDisabled = row && actionConfig.shouldDisable ? actionConfig.shouldDisable(row) : false;
@@ -14434,7 +14459,7 @@ class GenericTableComponent {
14434
14459
  tooltipConfig: {
14435
14460
  hasTooltip: true,
14436
14461
  text: customAction.tooltip || customAction.title,
14437
- position: customAction.tooltipPosition || 'left'
14462
+ position: customAction.tooltipPosition || this.getDefaultTooltipPosition()
14438
14463
  },
14439
14464
  customClass: customAction.class || 'c-icon-btn',
14440
14465
  showTextOnIcon: hasLabel && (isLinkStyle || !isIconButton)
@@ -14479,7 +14504,7 @@ class GenericTableComponent {
14479
14504
  tooltipConfig: actionConfig.tooltip ? {
14480
14505
  hasTooltip: true,
14481
14506
  text: actionConfig.tooltip,
14482
- position: actionConfig.tooltipPosition || 'left'
14507
+ position: actionConfig.tooltipPosition || this.getDefaultTooltipPosition()
14483
14508
  } : undefined
14484
14509
  };
14485
14510
  }
@@ -14495,7 +14520,7 @@ class GenericTableComponent {
14495
14520
  tooltipConfig: customAction.tooltip ? {
14496
14521
  hasTooltip: true,
14497
14522
  text: customAction.tooltip,
14498
- position: customAction.tooltipPosition || 'left'
14523
+ position: customAction.tooltipPosition || this.getDefaultTooltipPosition()
14499
14524
  } : undefined
14500
14525
  };
14501
14526
  }
@@ -14511,7 +14536,7 @@ class GenericTableComponent {
14511
14536
  tooltipConfig: globalAction.tooltip ? {
14512
14537
  hasTooltip: true,
14513
14538
  text: globalAction.tooltip,
14514
- position: globalAction.tooltipPosition || 'left'
14539
+ position: globalAction.tooltipPosition || this.getDefaultTooltipPosition()
14515
14540
  } : undefined
14516
14541
  };
14517
14542
  }
@@ -16364,12 +16389,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
16364
16389
  // Este archivo es generado automáticamente por scripts/update-version.js
16365
16390
  // No edites manualmente este archivo
16366
16391
  const VERSION = {
16367
- full: '2.15.41',
16392
+ full: '2.15.43',
16368
16393
  major: 2,
16369
16394
  minor: 15,
16370
- patch: 41,
16371
- timestamp: '2025-11-25T16:43:03.822Z',
16372
- buildDate: '25/11/2025'
16395
+ patch: 43,
16396
+ timestamp: '2025-11-27T09:53:16.146Z',
16397
+ buildDate: '27/11/2025'
16373
16398
  };
16374
16399
 
16375
16400
  class MainNavComponent {