kwikid-forms 0.5.14 → 0.5.15

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.
@@ -7,7 +7,7 @@ import { KwikUIModule, KwikUIPipeModule } from 'kwikui';
7
7
  import * as i3$1 from '@angular/forms';
8
8
  import { FormGroup, FormControl, Validators, FormArray, FormsModule, ReactiveFormsModule } from '@angular/forms';
9
9
  import * as i3 from '@taiga-ui/core';
10
- import { TuiAlertService, TuiDialogService, TuiSvgModule, TuiLabelModule, TuiButtonModule, TuiDialogModule, TuiLoaderModule } from '@taiga-ui/core';
10
+ import { TuiNotification, TuiAlertService, TuiDialogService, TuiSvgModule, TuiLabelModule, TuiButtonModule, TuiDialogModule, TuiLoaderModule } from '@taiga-ui/core';
11
11
  import * as i3$2 from '@angular/common';
12
12
  import { CommonModule } from '@angular/common';
13
13
  import { trigger, transition, style, animate } from '@angular/animations';
@@ -226,7 +226,7 @@ const FIELD_PROPERTIES = {
226
226
  case: "default"
227
227
  },
228
228
  "aadhaar-number": {
229
- mask: "#### #### ####"
229
+ mask: "# # # # - # # # # - # # # #"
230
230
  },
231
231
  number: {
232
232
  decimal: "never",
@@ -797,6 +797,7 @@ class Converter {
797
797
  const formatFieldTypeAadhaarNumber = (field) => {
798
798
  field = setFieldKeyHidden(field);
799
799
  field = setFieldAsFormElement(field, true);
800
+ field = updateFormFieldProperties(field);
800
801
  return field;
801
802
  };
802
803
  const formatFieldTypeFile = (field) => {
@@ -3886,12 +3887,12 @@ class KwikIDFormViewComponent {
3886
3887
  this.alertService
3887
3888
  .open(`${message}`, {
3888
3889
  status: type === "error"
3889
- ? "error"
3890
+ ? TuiNotification.Error
3890
3891
  : type === "warning"
3891
- ? "warning"
3892
+ ? TuiNotification.Warning
3892
3893
  : type === "success"
3893
- ? "success"
3894
- : "info"
3894
+ ? TuiNotification.Success
3895
+ : TuiNotification.Info
3895
3896
  })
3896
3897
  .subscribe({
3897
3898
  complete() { }