@smartbit4all/ng-client 1.0.17 → 1.0.18

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.
@@ -25,7 +25,7 @@ import * as i3$2 from '@angular/material/snack-bar';
25
25
  import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
26
26
  import { Validators } from '@angular/forms';
27
27
  import * as i5$1 from '@smartbit4all/form';
28
- import { SmartFormWidgetType, SmartFormWidgetDirection, SmartValidatorName, SmartformModule } from '@smartbit4all/form';
28
+ import { SmartFormWidgetType, SmartValidatorName, SmartFormWidgetDirection, SmartformModule } from '@smartbit4all/form';
29
29
  import { __decorate, __param } from 'tslib';
30
30
 
31
31
  /**
@@ -3308,26 +3308,30 @@ class UiActionInputDialogComponent {
3308
3308
  else {
3309
3309
  type = SmartFormWidgetType.TEXT_BOX;
3310
3310
  }
3311
+ let widgets = [
3312
+ {
3313
+ key: inputName,
3314
+ label: '',
3315
+ type,
3316
+ value: '',
3317
+ validators: [
3318
+ {
3319
+ validator: Validators.required,
3320
+ name: SmartValidatorName.required,
3321
+ errorMessage: 'Ez a mező kötelező',
3322
+ },
3323
+ ],
3324
+ placeholder: this.descriptor[this.dialogType].placeholder ?? '',
3325
+ showLabel: true,
3326
+ },
3327
+ ];
3328
+ if (widgets[0].type === SmartFormWidgetType.TEXT_FIELD && this.descriptor[this.dialogType]?.mask) {
3329
+ widgets[0].mask = this.descriptor[this.dialogType]?.mask;
3330
+ }
3311
3331
  this.folderForm = {
3312
3332
  direction: SmartFormWidgetDirection.COL,
3313
3333
  model,
3314
- widgets: [
3315
- {
3316
- key: inputName,
3317
- label: '',
3318
- type,
3319
- value: '',
3320
- validators: [
3321
- {
3322
- validator: Validators.required,
3323
- name: SmartValidatorName.required,
3324
- errorMessage: 'Ez a mező kötelező',
3325
- },
3326
- ],
3327
- placeholder: this.descriptor[this.dialogType].placeholder ?? '',
3328
- showLabel: true,
3329
- },
3330
- ],
3334
+ widgets,
3331
3335
  };
3332
3336
  }
3333
3337
  save() {