ngx-sp-infra 6.22.10 → 6.23.0

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.
@@ -7335,7 +7335,6 @@ class EstabelecimentoAbasComponent {
7335
7335
  async IsMenuAllowed(route) {
7336
7336
  try {
7337
7337
  const response = await firstValueFrom(this._hostOutsystemsServerService.IsMenuAllowed(route));
7338
- console.log('response:', response);
7339
7338
  return response.IsMenuAllowed;
7340
7339
  }
7341
7340
  catch (error) {
@@ -7453,17 +7452,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
7453
7452
  * @summary Contém diversos métodos de utilidade para formulários
7454
7453
  */
7455
7454
  class FormUtils {
7456
- /** Verifica se um campo é inválido (Template Driven) */
7457
- static isInvalidFieldTemplate(control) {
7455
+ /**
7456
+ * Verifica se um campo é inválido (Template Driven)
7457
+ * @param [ignoreDisabled=false] Informa se deve ignorar validações em campos desabilitados
7458
+ */
7459
+ static isInvalidFieldTemplate(control, ignoreDisabled = false) {
7460
+ if (ignoreDisabled)
7461
+ if (control && control.disabled)
7462
+ return false;
7458
7463
  const ret = !control.valid && (control.dirty || control.touched);
7459
7464
  return (ret ? ret : false);
7460
7465
  }
7461
- /** Verifica se um campo é inválido (Data Driven) */
7462
- static isInvalidField(control) {
7466
+ /**
7467
+ * Verifica se um campo é inválido (Data Driven)
7468
+ * @param [ignoreDisabled=false] Informa se deve ignorar validações em campos desabilitados
7469
+ */
7470
+ static isInvalidField(control, ignoreDisabled = false) {
7471
+ if (ignoreDisabled)
7472
+ if (control && control.disabled)
7473
+ return false;
7463
7474
  return (control ? !control.valid && (control.dirty || control.touched) : false);
7464
7475
  }
7465
- /** Verifica se um campo é inválido ou se possui algum erro customizado (Data Driven) */
7466
- static isInvalidFieldError(control) {
7476
+ /**
7477
+ * Verifica se um campo é inválido ou se possui algum erro customizado (Data Driven)
7478
+ * @param [ignoreDisabled=false] Informa se deve ignorar validações em campos desabilitados
7479
+ */
7480
+ static isInvalidFieldError(control, ignoreDisabled = false) {
7481
+ if (ignoreDisabled)
7482
+ if (control && control.disabled)
7483
+ return false;
7467
7484
  if (control) {
7468
7485
  if (!control.valid && (control.dirty || control.touched)) {
7469
7486
  return true;
@@ -10295,7 +10312,7 @@ class LibStepWizardComponent {
10295
10312
  // #region ==========> UTILS <==========
10296
10313
  /** O componente é controlado pelo template pai: clicar apenas emite um sinal, o responsável pela troca de etapa é o template pai. */
10297
10314
  selecionar(etapa) {
10298
- console.log(etapa);
10315
+ console.log('lib-step-wizard - etapa selecionada:', etapa);
10299
10316
  if (etapa.route !== '')
10300
10317
  return;
10301
10318
  else if (this.desabilitado || !etapa.available || etapa.situacao === 'current')