@ngx-formly/nativescript 6.0.0-next.8 → 6.0.0-rc.1

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.
Files changed (64) hide show
  1. package/README.md +4 -3
  2. package/checkbox/checkbox.type.d.ts +11 -3
  3. package/checkbox/public_api.d.ts +1 -0
  4. package/esm2020/checkbox/checkbox.module.mjs +5 -5
  5. package/esm2020/checkbox/checkbox.type.mjs +7 -7
  6. package/esm2020/checkbox/public_api.mjs +1 -1
  7. package/esm2020/form-field/form-field.module.mjs +5 -5
  8. package/esm2020/form-field/form-field.wrapper.mjs +9 -13
  9. package/esm2020/form-field/public_api.mjs +1 -1
  10. package/esm2020/lib/ui-nativescript.module.mjs +12 -27
  11. package/esm2020/radio/public_api.mjs +1 -1
  12. package/esm2020/radio/radio.module.mjs +5 -5
  13. package/esm2020/radio/radio.type.mjs +7 -7
  14. package/esm2020/select/public_api.mjs +1 -1
  15. package/esm2020/select/select.module.mjs +5 -5
  16. package/esm2020/select/select.type.mjs +9 -9
  17. package/esm2020/text-field/public_api.mjs +1 -1
  18. package/esm2020/text-field/text-field.module.mjs +13 -13
  19. package/esm2020/text-field/text-field.type.mjs +13 -13
  20. package/esm2020/textarea/public_api.mjs +5 -2
  21. package/esm2020/textarea/textarea.module.mjs +10 -10
  22. package/esm2020/textarea/textarea.type.mjs +11 -11
  23. package/fesm2015/ngx-formly-nativescript-checkbox.mjs +10 -10
  24. package/fesm2015/ngx-formly-nativescript-checkbox.mjs.map +1 -1
  25. package/fesm2015/ngx-formly-nativescript-form-field.mjs +12 -16
  26. package/fesm2015/ngx-formly-nativescript-form-field.mjs.map +1 -1
  27. package/fesm2015/ngx-formly-nativescript-radio.mjs +10 -10
  28. package/fesm2015/ngx-formly-nativescript-radio.mjs.map +1 -1
  29. package/fesm2015/ngx-formly-nativescript-select.mjs +12 -12
  30. package/fesm2015/ngx-formly-nativescript-select.mjs.map +1 -1
  31. package/fesm2015/ngx-formly-nativescript-text-field.mjs +23 -23
  32. package/fesm2015/ngx-formly-nativescript-text-field.mjs.map +1 -1
  33. package/fesm2015/ngx-formly-nativescript-textarea.mjs +22 -19
  34. package/fesm2015/ngx-formly-nativescript-textarea.mjs.map +1 -1
  35. package/fesm2015/ngx-formly-nativescript.mjs +10 -26
  36. package/fesm2015/ngx-formly-nativescript.mjs.map +1 -1
  37. package/fesm2020/ngx-formly-nativescript-checkbox.mjs +10 -10
  38. package/fesm2020/ngx-formly-nativescript-checkbox.mjs.map +1 -1
  39. package/fesm2020/ngx-formly-nativescript-form-field.mjs +12 -16
  40. package/fesm2020/ngx-formly-nativescript-form-field.mjs.map +1 -1
  41. package/fesm2020/ngx-formly-nativescript-radio.mjs +10 -10
  42. package/fesm2020/ngx-formly-nativescript-radio.mjs.map +1 -1
  43. package/fesm2020/ngx-formly-nativescript-select.mjs +12 -12
  44. package/fesm2020/ngx-formly-nativescript-select.mjs.map +1 -1
  45. package/fesm2020/ngx-formly-nativescript-text-field.mjs +23 -23
  46. package/fesm2020/ngx-formly-nativescript-text-field.mjs.map +1 -1
  47. package/fesm2020/ngx-formly-nativescript-textarea.mjs +22 -19
  48. package/fesm2020/ngx-formly-nativescript-textarea.mjs.map +1 -1
  49. package/fesm2020/ngx-formly-nativescript.mjs +10 -26
  50. package/fesm2020/ngx-formly-nativescript.mjs.map +1 -1
  51. package/form-field/form-field.wrapper.d.ts +5 -3
  52. package/form-field/public_api.d.ts +1 -0
  53. package/lib/ui-nativescript.module.d.ts +0 -10
  54. package/package.json +2 -2
  55. package/radio/public_api.d.ts +1 -0
  56. package/radio/radio.type.d.ts +10 -2
  57. package/select/public_api.d.ts +1 -0
  58. package/select/select.type.d.ts +13 -4
  59. package/text-field/public_api.d.ts +1 -0
  60. package/text-field/text-field.module.d.ts +1 -1
  61. package/text-field/text-field.type.d.ts +16 -4
  62. package/textarea/public_api.d.ts +5 -1
  63. package/textarea/textarea.module.d.ts +4 -4
  64. package/textarea/textarea.type.d.ts +15 -4
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, ChangeDetectionStrategy, ViewChild, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
2
+ import { Component, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
3
3
  import * as i2 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i1 from '@ngx-formly/core';
@@ -9,11 +9,11 @@ import { NativeScriptFormsModule } from '@nativescript/angular';
9
9
 
10
10
  class FormlyWrapperFormField extends FieldWrapper {
11
11
  }
12
- FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component });
13
- FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: FormlyWrapperFormField, selector: "formly-wrapper-ns-form-field", viewQueries: [{ propertyName: "validationMessage", first: true, predicate: ["validationMessage"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
12
+ FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component });
13
+ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyWrapperFormField, selector: "formly-wrapper-ns-form-field", usesInheritance: true, ngImport: i0, template: `
14
14
  <StackLayout class="form">
15
15
  <StackLayout class="input-field">
16
- <Label *ngIf="to.label && to.hideLabel !== true" class="label" [text]="to.label"></Label>
16
+ <Label *ngIf="props.label && props.hideLabel !== true" class="label" [text]="props.label"></Label>
17
17
  <ng-container #fieldComponent></ng-container>
18
18
  <StackLayout class="hr-light"></StackLayout>
19
19
  <ng-container *ngIf="showError">
@@ -22,15 +22,15 @@ FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
22
22
  </ng-container>
23
23
  </StackLayout>
24
24
  </StackLayout>
25
- `, isInline: true, components: [{ type: i1.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
25
+ `, isInline: true, components: [{ type: i1.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
27
27
  type: Component,
28
28
  args: [{
29
29
  selector: 'formly-wrapper-ns-form-field',
30
30
  template: `
31
31
  <StackLayout class="form">
32
32
  <StackLayout class="input-field">
33
- <Label *ngIf="to.label && to.hideLabel !== true" class="label" [text]="to.label"></Label>
33
+ <Label *ngIf="props.label && props.hideLabel !== true" class="label" [text]="props.label"></Label>
34
34
  <ng-container #fieldComponent></ng-container>
35
35
  <StackLayout class="hr-light"></StackLayout>
36
36
  <ng-container *ngIf="showError">
@@ -40,20 +40,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
40
40
  </StackLayout>
41
41
  </StackLayout>
42
42
  `,
43
- changeDetection: ChangeDetectionStrategy.OnPush,
44
43
  }]
45
- }], propDecorators: { validationMessage: [{
46
- type: ViewChild,
47
- args: ['validationMessage']
48
- }] } });
44
+ }] });
49
45
 
50
46
  class FormlyNsFormFieldModule {
51
47
  }
52
- FormlyNsFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
53
- FormlyNsFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
48
+ FormlyNsFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
49
+ FormlyNsFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
54
50
  ReactiveFormsModule,
55
51
  NativeScriptFormsModule, i1.FormlyModule] });
56
- FormlyNsFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsFormFieldModule, imports: [[
52
+ FormlyNsFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsFormFieldModule, imports: [[
57
53
  CommonModule,
58
54
  ReactiveFormsModule,
59
55
  NativeScriptFormsModule,
@@ -66,7 +62,7 @@ FormlyNsFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
66
62
  ],
67
63
  }),
68
64
  ]] });
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsFormFieldModule, decorators: [{
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsFormFieldModule, decorators: [{
70
66
  type: NgModule,
71
67
  args: [{
72
68
  declarations: [FormlyWrapperFormField],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-nativescript-form-field.mjs","sources":["../../../../src/ui/nativescript/form-field/src/form-field.wrapper.ts","../../../../src/ui/nativescript/form-field/src/form-field.module.ts","../../../../src/ui/nativescript/form-field/src/ngx-formly-nativescript-form-field.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewChild } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-wrapper-ns-form-field',\n template: `\n <StackLayout class=\"form\">\n <StackLayout class=\"input-field\">\n <Label *ngIf=\"to.label && to.hideLabel !== true\" class=\"label\" [text]=\"to.label\"></Label>\n <ng-container #fieldComponent></ng-container>\n <StackLayout class=\"hr-light\"></StackLayout>\n <ng-container *ngIf=\"showError\">\n <formly-validation-message #validationMessage [field]=\"field\"></formly-validation-message>\n <Label class=\"text-danger\" [text]=\"validationMessage.errorMessage\"></Label>\n </ng-container>\n </StackLayout>\n </StackLayout>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyWrapperFormField extends FieldWrapper {\n @ViewChild('validationMessage') validationMessage;\n}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField,\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsFormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;MAoBa,sBAAuB,SAAQ,YAAY;;mHAA3C,sBAAsB;uGAAtB,sBAAsB,mNAfvB;;;;;;;;;;;;GAYT;2FAGU,sBAAsB;kBAjBlC,SAAS;mBAAC;oBACT,QAAQ,EAAE,8BAA8B;oBACxC,QAAQ,EAAE;;;;;;;;;;;;GAYT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;8BAEiC,iBAAiB;sBAAhD,SAAS;uBAAC,mBAAmB;;;MCGnB,uBAAuB;;oHAAvB,uBAAuB;qHAAvB,uBAAuB,iBAhBnB,sBAAsB,aAEnC,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;qHAYd,uBAAuB,YAfzB;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,YAAY,CAAC,QAAQ,CAAC;gBACpB,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,YAAY;wBAClB,SAAS,EAAE,sBAAsB;qBAClC;iBACF;aACF,CAAC;SACH;2FAGU,uBAAuB;kBAjBnC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;4BACpB,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,YAAY;oCAClB,SAAS,EAAE,sBAAsB;iCAClC;6BACF;yBACF,CAAC;qBACH;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;ACvBD;;;;;;"}
1
+ {"version":3,"file":"ngx-formly-nativescript-form-field.mjs","sources":["../../../../src/ui/nativescript/form-field/src/form-field.wrapper.ts","../../../../src/ui/nativescript/form-field/src/form-field.module.ts","../../../../src/ui/nativescript/form-field/src/ngx-formly-nativescript-form-field.ts"],"sourcesContent":["import { Component } from '@angular/core';\nimport { FieldWrapper, FormlyFieldConfig, FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';\n\nexport interface FormlyFieldProps extends CoreFormlyFieldProps {\n hideLabel?: boolean;\n}\n\n@Component({\n selector: 'formly-wrapper-ns-form-field',\n template: `\n <StackLayout class=\"form\">\n <StackLayout class=\"input-field\">\n <Label *ngIf=\"props.label && props.hideLabel !== true\" class=\"label\" [text]=\"props.label\"></Label>\n <ng-container #fieldComponent></ng-container>\n <StackLayout class=\"hr-light\"></StackLayout>\n <ng-container *ngIf=\"showError\">\n <formly-validation-message #validationMessage [field]=\"field\"></formly-validation-message>\n <Label class=\"text-danger\" [text]=\"validationMessage.errorMessage\"></Label>\n </ng-container>\n </StackLayout>\n </StackLayout>\n `,\n})\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField,\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsFormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAuBM,MAAO,sBAAuB,SAAQ,YAAiD,CAAA;;oHAAhF,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,sBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,EAdvB,QAAA,EAAA,8BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;AAYT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA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U,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAjBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
@@ -19,22 +19,22 @@ class FormlyFieldRadio extends FieldType {
19
19
  }, 100);
20
20
  }
21
21
  }
22
- FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
23
- FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: FormlyFieldRadio, selector: "formly-field-ns-radio", usesInheritance: true, ngImport: i0, template: `
24
- <ng-container *ngFor="let option of to.options | formlySelectOptions: field | async">
22
+ FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
23
+ FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldRadio, selector: "formly-field-ns-radio", usesInheritance: true, ngImport: i0, template: `
24
+ <ng-container *ngFor="let option of props.options | formlySelectOptions: field | async">
25
25
  <GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
26
26
  <Label class="label" [text]="option.label"></Label>
27
27
  <Switch col="1" class="switch input" [checked]="formControl.value === option.value" (tap)="tap(option.value)">
28
28
  </Switch>
29
29
  </GridLayout>
30
30
  </ng-container>
31
- `, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i1.AsyncPipe, "formlySelectOptions": i2.ɵFormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyFieldRadio, decorators: [{
31
+ `, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i1.AsyncPipe, "formlySelectOptions": i2.FormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldRadio, decorators: [{
33
33
  type: Component,
34
34
  args: [{
35
35
  selector: 'formly-field-ns-radio',
36
36
  template: `
37
- <ng-container *ngFor="let option of to.options | formlySelectOptions: field | async">
37
+ <ng-container *ngFor="let option of props.options | formlySelectOptions: field | async">
38
38
  <GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
39
39
  <Label class="label" [text]="option.label"></Label>
40
40
  <Switch col="1" class="switch input" [checked]="formControl.value === option.value" (tap)="tap(option.value)">
@@ -48,13 +48,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
48
48
 
49
49
  class FormlyNsRadioFieldModule {
50
50
  }
51
- FormlyNsRadioFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsRadioFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
52
- FormlyNsRadioFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsRadioFieldModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
51
+ FormlyNsRadioFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsRadioFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
52
+ FormlyNsRadioFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsRadioFieldModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
53
53
  ReactiveFormsModule,
54
54
  NativeScriptFormsModule,
55
55
  FormlyNsFormFieldModule,
56
56
  FormlySelectModule, i1$1.FormlyModule] });
57
- FormlyNsRadioFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsRadioFieldModule, imports: [[
57
+ FormlyNsRadioFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsRadioFieldModule, imports: [[
58
58
  CommonModule,
59
59
  ReactiveFormsModule,
60
60
  NativeScriptFormsModule,
@@ -70,7 +70,7 @@ FormlyNsRadioFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0"
70
70
  ],
71
71
  }),
72
72
  ]] });
73
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsRadioFieldModule, decorators: [{
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsRadioFieldModule, decorators: [{
74
74
  type: NgModule,
75
75
  args: [{
76
76
  declarations: [FormlyFieldRadio],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-nativescript-radio.mjs","sources":["../../../../src/ui/nativescript/radio/src/radio.type.ts","../../../../src/ui/nativescript/radio/src/radio.module.ts","../../../../src/ui/nativescript/radio/src/ngx-formly-nativescript-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ns-radio',\n template: `\n <ng-container *ngFor=\"let option of to.options | formlySelectOptions: field | async\">\n <GridLayout class=\"input-field input-sides\" rows=\"auto, auto\" columns=\"*,*\">\n <Label class=\"label\" [text]=\"option.label\"></Label>\n <Switch col=\"1\" class=\"switch input\" [checked]=\"formControl.value === option.value\" (tap)=\"tap(option.value)\">\n </Switch>\n </GridLayout>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig> {\n tap(id) {\n const value = this.formControl.value === id ? null : id;\n setTimeout(() => {\n this.formControl.patchValue(value);\n this.formControl.markAsTouched();\n }, 100);\n }\n}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldRadio } from './radio.type';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsRadioFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAgBa,gBAAiB,SAAQ,SAA0B;IAC9D,GAAG,CAAC,EAAE;QACJ,MAAM,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,gBAAgB,CAAC;iBAC5B;;;AC9BD;;;;;;"}
1
+ {"version":3,"file":"ngx-formly-nativescript-radio.mjs","sources":["../../../../src/ui/nativescript/radio/src/radio.type.ts","../../../../src/ui/nativescript/radio/src/radio.module.ts","../../../../src/ui/nativescript/radio/src/ngx-formly-nativescript-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';\n\ninterface RadioProps extends FormlyFieldProps {}\n\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-ns-radio',\n template: `\n <ng-container *ngFor=\"let option of props.options | formlySelectOptions: field | async\">\n <GridLayout class=\"input-field input-sides\" rows=\"auto, auto\" columns=\"*,*\">\n <Label class=\"label\" [text]=\"option.label\"></Label>\n <Switch col=\"1\" class=\"switch input\" [checked]=\"formControl.value === option.value\" (tap)=\"tap(option.value)\">\n </Switch>\n </GridLayout>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\n tap(id: any) {\n const value = this.formControl.value === id ? null : id;\n setTimeout(() => {\n this.formControl.patchValue(value);\n this.formControl.markAsTouched();\n }, 100);\n }\n}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldRadio } from './radio.type';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsRadioFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAuBM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAC1E,IAAA,GAAG,CAAC,EAAO,EAAA;AACT,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,EAAE,GAAG,IAAI,GAAG,EAAE,CAAC;QACxD,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AACnC,YAAA,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC;SAClC,EAAE,GAAG,CAAC,CAAC;KACT;;8GAPU,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,gBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,EAXjB,QAAA,EAAA,uBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;AAQT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,cAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,OAAA,EAAA,EAAA,CAAA,S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,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,OAAO;AACb,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA,CAAA;;;AC9BD;;AAEG;;;;"}
@@ -13,27 +13,27 @@ import { action } from '@nativescript/core/ui/dialogs';
13
13
 
14
14
  class FormlyFieldSelect extends FieldType {
15
15
  tap(options) {
16
- action({ title: this.to.label, actions: options.map((o) => o.label) }).then((selectedAction) => this.formControl.patchValue(options.find((o) => o.label === selectedAction).value));
16
+ action({ title: this.props.label, actions: options.map((o) => o.label) }).then((selectedAction) => this.formControl.patchValue(options.find((o) => o.label === selectedAction).value));
17
17
  }
18
18
  selectedItem(options) {
19
19
  if (this.formControl.value) {
20
20
  return options.find((o) => o.value === this.formControl.value).label;
21
21
  }
22
- return this.to.placeholder;
22
+ return this.props.placeholder;
23
23
  }
24
24
  }
25
- FormlyFieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
26
- FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: FormlyFieldSelect, selector: "formly-field-ns-select", usesInheritance: true, ngImport: i0, template: `
27
- <ng-container *ngIf="to.options | formlySelectOptions: field | async as options">
25
+ FormlyFieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
26
+ FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldSelect, selector: "formly-field-ns-select", usesInheritance: true, ngImport: i0, template: `
27
+ <ng-container *ngIf="props.options | formlySelectOptions: field | async as options">
28
28
  <Button (tap)="tap(options)" [text]="selectedItem(options)"></Button>
29
29
  </ng-container>
30
- `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1.AsyncPipe, "formlySelectOptions": i2.ɵFormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyFieldSelect, decorators: [{
30
+ `, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1.AsyncPipe, "formlySelectOptions": i2.FormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldSelect, decorators: [{
32
32
  type: Component,
33
33
  args: [{
34
34
  selector: 'formly-field-ns-select',
35
35
  template: `
36
- <ng-container *ngIf="to.options | formlySelectOptions: field | async as options">
36
+ <ng-container *ngIf="props.options | formlySelectOptions: field | async as options">
37
37
  <Button (tap)="tap(options)" [text]="selectedItem(options)"></Button>
38
38
  </ng-container>
39
39
  `,
@@ -43,13 +43,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
43
43
 
44
44
  class FormlyNsSelectFieldModule {
45
45
  }
46
- FormlyNsSelectFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsSelectFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
- FormlyNsSelectFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsSelectFieldModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
46
+ FormlyNsSelectFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsSelectFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
+ FormlyNsSelectFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsSelectFieldModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
48
48
  ReactiveFormsModule,
49
49
  NativeScriptFormsModule,
50
50
  FormlyNsFormFieldModule,
51
51
  FormlySelectModule, i1$1.FormlyModule] });
52
- FormlyNsSelectFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsSelectFieldModule, imports: [[
52
+ FormlyNsSelectFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsSelectFieldModule, imports: [[
53
53
  CommonModule,
54
54
  ReactiveFormsModule,
55
55
  NativeScriptFormsModule,
@@ -66,7 +66,7 @@ FormlyNsSelectFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0
66
66
  ],
67
67
  }),
68
68
  ]] });
69
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsSelectFieldModule, decorators: [{
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsSelectFieldModule, decorators: [{
70
70
  type: NgModule,
71
71
  args: [{
72
72
  declarations: [FormlyFieldSelect],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-nativescript-select.mjs","sources":["../../../../src/ui/nativescript/select/src/select.type.ts","../../../../src/ui/nativescript/select/src/select.module.ts","../../../../src/ui/nativescript/select/src/ngx-formly-nativescript-select.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport { action } from '@nativescript/core/ui/dialogs';\n\n@Component({\n selector: 'formly-field-ns-select',\n template: `\n <ng-container *ngIf=\"to.options | formlySelectOptions: field | async as options\">\n <Button (tap)=\"tap(options)\" [text]=\"selectedItem(options)\"></Button>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> {\n tap(options) {\n action({ title: this.to.label, actions: options.map((o) => o.label) }).then((selectedAction) =>\n this.formControl.patchValue(options.find((o) => o.label === selectedAction).value),\n );\n }\n\n selectedItem(options) {\n if (this.formControl.value) {\n return options.find((o) => o.value === this.formControl.value).label;\n }\n\n return this.to.placeholder;\n }\n}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n { name: 'enum', extends: 'select' },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsSelectFieldModule {}\n","/**\n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AAE,QAAQ;wBACd,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;oBACD,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;iBACpC;aACF,CAAC;SACH;2FAGU,yBAAyB;kBAtBrC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,QAAQ;oCACd,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;gCACD,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;6BACpC;yBACF,CAAC;qBACH;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;AC/BD;;;;;;"}
1
+ {"version":3,"file":"ngx-formly-nativescript-select.mjs","sources":["../../../../src/ui/nativescript/select/src/select.type.ts","../../../../src/ui/nativescript/select/src/select.module.ts","../../../../src/ui/nativescript/select/src/ngx-formly-nativescript-select.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { action } from '@nativescript/core/ui/dialogs';\nimport { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\n\ninterface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {}\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-ns-select',\n template: `\n <ng-container *ngIf=\"props.options | formlySelectOptions: field | async as options\">\n <Button (tap)=\"tap(options)\" [text]=\"selectedItem(options)\"></Button>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {\n tap(options: any[]) {\n action({ title: this.props.label, actions: options.map((o) => o.label) }).then((selectedAction) =>\n this.formControl.patchValue(options.find((o) => o.label === selectedAction).value),\n );\n }\n\n selectedItem(options: any[]) {\n if (this.formControl.value) {\n return options.find((o) => o.value === this.formControl.value).label;\n }\n\n return this.props.placeholder;\n }\n}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n { name: 'enum', extends: 'select' },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsSelectFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;AAqBM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAC5E,IAAA,GAAG,CAAC,OAAc,EAAA;AAChB,QAAA,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,cAAc,K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AuB;wBAEvB,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA,CAAA;;;AC/BD;;AAEG;;;;"}
@@ -9,22 +9,22 @@ import * as i1 from '@nativescript/angular';
9
9
  import { NativeScriptFormsModule } from '@nativescript/angular';
10
10
  import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
11
11
 
12
- class FormlyFieldText extends FieldType {
12
+ class FormlyFieldInput extends FieldType {
13
13
  }
14
- FormlyFieldText.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyFieldText, deps: null, target: i0.ɵɵFactoryTarget.Component });
15
- FormlyFieldText.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: FormlyFieldText, selector: "formly-field-ns-input", usesInheritance: true, ngImport: i0, template: `
14
+ FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
15
+ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldInput, selector: "formly-field-ns-input", usesInheritance: true, ngImport: i0, template: `
16
16
  <TextField
17
17
  class="input"
18
18
  [formlyAttributes]="field"
19
19
  [formControl]="formControl"
20
- [autocorrect]="to.autocorrect"
21
- [secure]="to.secure"
22
- [hint]="to.hint"
23
- [keyboardType]="to.keyboardType"
20
+ [autocorrect]="props.autocorrect"
21
+ [secure]="props.secure"
22
+ [hint]="props.hint"
23
+ [keyboardType]="props.keyboardType"
24
24
  >
25
25
  </TextField>
26
26
  `, isInline: true, directives: [{ type: i1.TextValueAccessor, selector: "TextField[ngModel],TextField[formControlName],TextField[formControl],textField[ngModel],textField[formControlName],textField[formControl],textfield[ngModel],textfield[formControlName],textfield[formControl],text-field[ngModel],text-field[formControlName],text-field[formControl],TextView[ngModel],TextView[formControlName],TextView[formControl],textView[ngModel],textView[formControlName],textView[formControl],textview[ngModel],textview[formControlName],textview[formControl],text-view[ngModel],text-view[formControlName],text-view[formControl],SearchBar[ngModel],SearchBar[formControlName],SearchBar[formControl],searchBar[ngModel],searchBar[formControlName],searchBar[formControl],searchbar[ngModel],searchbar[formControlName],searchbar[formControl],search-bar[ngModel], search-bar[formControlName],search-bar[formControl]" }, { type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyFieldText, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldInput, decorators: [{
28
28
  type: Component,
29
29
  args: [{
30
30
  selector: 'formly-field-ns-input',
@@ -33,10 +33,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
33
33
  class="input"
34
34
  [formlyAttributes]="field"
35
35
  [formControl]="formControl"
36
- [autocorrect]="to.autocorrect"
37
- [secure]="to.secure"
38
- [hint]="to.hint"
39
- [keyboardType]="to.keyboardType"
36
+ [autocorrect]="props.autocorrect"
37
+ [secure]="props.secure"
38
+ [hint]="props.hint"
39
+ [keyboardType]="props.keyboardType"
40
40
  >
41
41
  </TextField>
42
42
  `,
@@ -46,12 +46,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
46
46
 
47
47
  class FormlyNsTextFieldModule {
48
48
  }
49
- FormlyNsTextFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsTextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
50
- FormlyNsTextFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsTextFieldModule, declarations: [FormlyFieldText], imports: [CommonModule,
49
+ FormlyNsTextFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsTextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
50
+ FormlyNsTextFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsTextFieldModule, declarations: [FormlyFieldInput], imports: [CommonModule,
51
51
  ReactiveFormsModule,
52
52
  NativeScriptFormsModule,
53
53
  FormlyNsFormFieldModule, i2.FormlyModule] });
54
- FormlyNsTextFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsTextFieldModule, imports: [[
54
+ FormlyNsTextFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsTextFieldModule, imports: [[
55
55
  CommonModule,
56
56
  ReactiveFormsModule,
57
57
  NativeScriptFormsModule,
@@ -60,7 +60,7 @@ FormlyNsTextFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
60
60
  types: [
61
61
  {
62
62
  name: 'text-field',
63
- component: FormlyFieldText,
63
+ component: FormlyFieldInput,
64
64
  wrappers: ['form-field'],
65
65
  },
66
66
  { name: 'input', extends: 'text-field' },
@@ -69,7 +69,7 @@ FormlyNsTextFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
69
69
  name: 'number',
70
70
  extends: 'input',
71
71
  defaultOptions: {
72
- templateOptions: {
72
+ props: {
73
73
  type: 'number',
74
74
  },
75
75
  },
@@ -78,7 +78,7 @@ FormlyNsTextFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
78
78
  name: 'integer',
79
79
  extends: 'input',
80
80
  defaultOptions: {
81
- templateOptions: {
81
+ props: {
82
82
  type: 'number',
83
83
  },
84
84
  },
@@ -86,10 +86,10 @@ FormlyNsTextFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0",
86
86
  ],
87
87
  }),
88
88
  ]] });
89
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsTextFieldModule, decorators: [{
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsTextFieldModule, decorators: [{
90
90
  type: NgModule,
91
91
  args: [{
92
- declarations: [FormlyFieldText],
92
+ declarations: [FormlyFieldInput],
93
93
  imports: [
94
94
  CommonModule,
95
95
  ReactiveFormsModule,
@@ -99,7 +99,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
99
99
  types: [
100
100
  {
101
101
  name: 'text-field',
102
- component: FormlyFieldText,
102
+ component: FormlyFieldInput,
103
103
  wrappers: ['form-field'],
104
104
  },
105
105
  { name: 'input', extends: 'text-field' },
@@ -108,7 +108,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
108
108
  name: 'number',
109
109
  extends: 'input',
110
110
  defaultOptions: {
111
- templateOptions: {
111
+ props: {
112
112
  type: 'number',
113
113
  },
114
114
  },
@@ -117,7 +117,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
117
117
  name: 'integer',
118
118
  extends: 'input',
119
119
  defaultOptions: {
120
- templateOptions: {
120
+ props: {
121
121
  type: 'number',
122
122
  },
123
123
  },
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-nativescript-text-field.mjs","sources":["../../../../src/ui/nativescript/text-field/src/text-field.type.ts","../../../../src/ui/nativescript/text-field/src/text-field.module.ts","../../../../src/ui/nativescript/text-field/src/ngx-formly-nativescript-text-field.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ns-input',\n template: `\n <TextField\n class=\"input\"\n [formlyAttributes]=\"field\"\n [formControl]=\"formControl\"\n [autocorrect]=\"to.autocorrect\"\n [secure]=\"to.secure\"\n [hint]=\"to.hint\"\n [keyboardType]=\"to.keyboardType\"\n >\n </TextField>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldText extends FieldType<FieldTypeConfig> {}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldText } from './text-field.type';\n\n@NgModule({\n declarations: [FormlyFieldText],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'text-field',\n component: FormlyFieldText,\n wrappers: ['form-field'],\n },\n { name: 'input', extends: 'text-field' },\n { name: 'string', extends: 'input' },\n {\n name: 'number',\n extends: 'input',\n defaultOptions: {\n templateOptions: {\n type: 'number',\n },\n },\n },\n {\n name: 'integer',\n extends: 'input',\n defaultOptions: {\n templateOptions: {\n type: 'number',\n },\n },\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsTextFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;MAmBa,eAAgB,SAAQ,SAA0B;;4GAAlD,eAAe;gGAAf,eAAe,oFAdhB;;;;;;;;;;;GAWT;2FAGU,eAAe;kBAhB3B,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE;;;;;;;;;;;GAWT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MC+BY,uBAAuB;;oHAAvB,uBAAuB;qHAAvB,uBAAuB,iBAvCnB,eAAe,aAE5B,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,uBAAuB;qHAiCd,uBAAuB,YAtCzB;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;YACvB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,YAAY;wBAClB,SAAS,EAAE,eAAe;wBAC1B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;oBACD,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE;oBACxC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;oBACpC;wBACE,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,OAAO;wBAChB,cAAc,EAAE;4BACd,eAAe,EAAE;gCACf,IAAI,EAAE,QAAQ;6BACf;yBACF;qBACF;oBACD;wBACE,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,OAAO;wBAChB,cAAc,EAAE;4BACd,eAAe,EAAE;gCACf,IAAI,EAAE,QAAQ;6BACf;yBACF;qBACF;iBACF;aACF,CAAC;SACH;2FAGU,uBAAuB;kBAxCnC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;oBAC/B,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,YAAY;oCAClB,SAAS,EAAE,eAAe;oCAC1B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;gCACD,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE;gCACxC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;gCACpC;oCACE,IAAI,EAAE,QAAQ;oCACd,OAAO,EAAE,OAAO;oCAChB,cAAc,EAAE;wCACd,eAAe,EAAE;4CACf,IAAI,EAAE,QAAQ;yCACf;qCACF;iCACF;gCACD;oCACE,IAAI,EAAE,SAAS;oCACf,OAAO,EAAE,OAAO;oCAChB,cAAc,EAAE;wCACd,eAAe,EAAE;4CACf,IAAI,EAAE,QAAQ;yCACf;qCACF;iCACF;6BACF;yBACF,CAAC;qBACH;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;AChDD;;;;;;"}
1
+ {"version":3,"file":"ngx-formly-nativescript-text-field.mjs","sources":["../../../../src/ui/nativescript/text-field/src/text-field.type.ts","../../../../src/ui/nativescript/text-field/src/text-field.module.ts","../../../../src/ui/nativescript/text-field/src/ngx-formly-nativescript-text-field.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';\n\ninterface InputProps extends FormlyFieldProps {\n autocorrect?: boolean;\n secure?: boolean;\n hint?: string;\n keyboardType?: any;\n}\n\nexport interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {\n type: 'input' | Type<FormlyFieldInput>;\n}\n\n@Component({\n selector: 'formly-field-ns-input',\n template: `\n <TextField\n class=\"input\"\n [formlyAttributes]=\"field\"\n [formControl]=\"formControl\"\n [autocorrect]=\"props.autocorrect\"\n [secure]=\"props.secure\"\n [hint]=\"props.hint\"\n [keyboardType]=\"props.keyboardType\"\n >\n </TextField>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldInput } from './text-field.type';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'text-field',\n component: FormlyFieldInput,\n wrappers: ['form-field'],\n },\n { name: 'input', extends: 'text-field' },\n { name: 'string', extends: 'input' },\n {\n name: 'number',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'number',\n },\n },\n },\n {\n name: 'integer',\n extends: 'input',\n defaultOptions: {\n props: {\n type: 'number',\n },\n },\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsTextFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA+BM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;;8GAA/D,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,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AA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE;AACxC,gCAAA,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;AACpC,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,QAAQ;AACf,yCAAA;AACF,qCAAA;AACF,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,QAAQ;AACf,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA,CAAA;;;AChDD;;AAEG;;;;"}
@@ -9,21 +9,21 @@ import * as i1 from '@nativescript/angular';
9
9
  import { NativeScriptFormsModule } from '@nativescript/angular';
10
10
  import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
11
11
 
12
- class FormlyFieldTextarea extends FieldType {
12
+ class FormlyFieldTextArea extends FieldType {
13
13
  }
14
- FormlyFieldTextarea.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyFieldTextarea, deps: null, target: i0.ɵɵFactoryTarget.Component });
15
- FormlyFieldTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: FormlyFieldTextarea, selector: "formly-field-ns-textarea", usesInheritance: true, ngImport: i0, template: `
14
+ FormlyFieldTextArea.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component });
15
+ FormlyFieldTextArea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: FormlyFieldTextArea, selector: "formly-field-ns-textarea", usesInheritance: true, ngImport: i0, template: `
16
16
  <TextView
17
17
  class="input"
18
18
  [formlyAttributes]="field"
19
19
  [formControl]="formControl"
20
- [hint]="to.hint"
21
- [autocorrect]="to.autocorrect"
22
- [keyboardType]="to.keyboardType"
20
+ [hint]="props.hint"
21
+ [autocorrect]="props.autocorrect"
22
+ [keyboardType]="props.keyboardType"
23
23
  >
24
24
  </TextView>
25
25
  `, isInline: true, directives: [{ type: i1.TextValueAccessor, selector: "TextField[ngModel],TextField[formControlName],TextField[formControl],textField[ngModel],textField[formControlName],textField[formControl],textfield[ngModel],textfield[formControlName],textfield[formControl],text-field[ngModel],text-field[formControlName],text-field[formControl],TextView[ngModel],TextView[formControlName],TextView[formControl],textView[ngModel],textView[formControlName],textView[formControl],textview[ngModel],textview[formControlName],textview[formControl],text-view[ngModel],text-view[formControlName],text-view[formControl],SearchBar[ngModel],SearchBar[formControlName],SearchBar[formControl],searchBar[ngModel],searchBar[formControlName],searchBar[formControl],searchbar[ngModel],searchbar[formControlName],searchbar[formControl],search-bar[ngModel], search-bar[formControlName],search-bar[formControl]" }, { type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyFieldTextarea, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
27
27
  type: Component,
28
28
  args: [{
29
29
  selector: 'formly-field-ns-textarea',
@@ -32,9 +32,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
32
32
  class="input"
33
33
  [formlyAttributes]="field"
34
34
  [formControl]="formControl"
35
- [hint]="to.hint"
36
- [autocorrect]="to.autocorrect"
37
- [keyboardType]="to.keyboardType"
35
+ [hint]="props.hint"
36
+ [autocorrect]="props.autocorrect"
37
+ [keyboardType]="props.keyboardType"
38
38
  >
39
39
  </TextView>
40
40
  `,
@@ -42,14 +42,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
42
42
  }]
43
43
  }] });
44
44
 
45
- class FormlyNsTextareaFieldModule {
45
+ class FormlyNsTextAreaFieldModule {
46
46
  }
47
- FormlyNsTextareaFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsTextareaFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
- FormlyNsTextareaFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsTextareaFieldModule, declarations: [FormlyFieldTextarea], imports: [CommonModule,
47
+ FormlyNsTextAreaFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsTextAreaFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
+ FormlyNsTextAreaFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsTextAreaFieldModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
49
49
  ReactiveFormsModule,
50
50
  NativeScriptFormsModule,
51
51
  FormlyNsFormFieldModule, i2.FormlyModule] });
52
- FormlyNsTextareaFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsTextareaFieldModule, imports: [[
52
+ FormlyNsTextAreaFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsTextAreaFieldModule, imports: [[
53
53
  CommonModule,
54
54
  ReactiveFormsModule,
55
55
  NativeScriptFormsModule,
@@ -58,16 +58,16 @@ FormlyNsTextareaFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0
58
58
  types: [
59
59
  {
60
60
  name: 'textarea',
61
- component: FormlyFieldTextarea,
61
+ component: FormlyFieldTextArea,
62
62
  wrappers: ['form-field'],
63
63
  },
64
64
  ],
65
65
  }),
66
66
  ]] });
67
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: FormlyNsTextareaFieldModule, decorators: [{
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: FormlyNsTextAreaFieldModule, decorators: [{
68
68
  type: NgModule,
69
69
  args: [{
70
- declarations: [FormlyFieldTextarea],
70
+ declarations: [FormlyFieldTextArea],
71
71
  imports: [
72
72
  CommonModule,
73
73
  ReactiveFormsModule,
@@ -77,7 +77,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
77
77
  types: [
78
78
  {
79
79
  name: 'textarea',
80
- component: FormlyFieldTextarea,
80
+ component: FormlyFieldTextArea,
81
81
  wrappers: ['form-field'],
82
82
  },
83
83
  ],
@@ -87,9 +87,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
87
87
  }]
88
88
  }] });
89
89
 
90
+ /** @deprecated use FormlyFieldDatePicker */
91
+ const FormlyNsTextareaFieldModule = FormlyNsTextAreaFieldModule;
92
+
90
93
  /**
91
94
  * Generated bundle index. Do not edit.
92
95
  */
93
96
 
94
- export { FormlyNsTextareaFieldModule };
97
+ export { FormlyNsTextAreaFieldModule, FormlyNsTextareaFieldModule };
95
98
  //# sourceMappingURL=ngx-formly-nativescript-textarea.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-nativescript-textarea.mjs","sources":["../../../../src/ui/nativescript/textarea/src/textarea.type.ts","../../../../src/ui/nativescript/textarea/src/textarea.module.ts","../../../../src/ui/nativescript/textarea/src/ngx-formly-nativescript-textarea.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ns-textarea',\n template: `\n <TextView\n class=\"input\"\n [formlyAttributes]=\"field\"\n [formControl]=\"formControl\"\n [hint]=\"to.hint\"\n [autocorrect]=\"to.autocorrect\"\n [keyboardType]=\"to.keyboardType\"\n >\n </TextView>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldTextarea extends FieldType<FieldTypeConfig> {}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldTextarea } from './textarea.type';\n\n@NgModule({\n declarations: [FormlyFieldTextarea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextarea,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsTextareaFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;MAkBa,mBAAoB,SAAQ,SAA0B;;gHAAtD,mBAAmB;oGAAnB,mBAAmB,uFAbpB;;;;;;;;;;GAUT;2FAGU,mBAAmB;kBAf/B,SAAS;mBAAC;oBACT,QAAQ,EAAE,0BAA0B;oBACpC,QAAQ,EAAE;;;;;;;;;;GAUT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCYY,2BAA2B;;wHAA3B,2BAA2B;yHAA3B,2BAA2B,iBAnBvB,mBAAmB,aAEhC,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,uBAAuB;yHAad,2BAA2B,YAlB7B;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;YACvB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;iBACF;aACF,CAAC;SACH;2FAGU,2BAA2B;kBApBvC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,UAAU;oCAChB,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;6BACF;yBACF,CAAC;qBACH;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;AC5BD;;;;;;"}
1
+ {"version":3,"file":"ngx-formly-nativescript-textarea.mjs","sources":["../../../../src/ui/nativescript/textarea/src/textarea.type.ts","../../../../src/ui/nativescript/textarea/src/textarea.module.ts","../../../../src/ui/nativescript/textarea/src/public_api.ts","../../../../src/ui/nativescript/textarea/src/ngx-formly-nativescript-textarea.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';\n\ninterface TextAreaProps extends FormlyFieldProps {\n hint?: string;\n autocorrect?: boolean;\n keyboardType?: any;\n}\n\nexport interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {\n type: 'textarea' | Type<FormlyFieldTextArea>;\n}\n\n@Component({\n selector: 'formly-field-ns-textarea',\n template: `\n <TextView\n class=\"input\"\n [formlyAttributes]=\"field\"\n [formControl]=\"formControl\"\n [hint]=\"props.hint\"\n [autocorrect]=\"props.autocorrect\"\n [keyboardType]=\"props.keyboardType\"\n >\n </TextView>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldTextArea } from './textarea.type';\n\n@NgModule({\n declarations: [FormlyFieldTextArea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextArea,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsTextAreaFieldModule {}\n","import { FormlyNsTextAreaFieldModule } from './textarea.module';\nexport { FormlyTextAreaFieldConfig } from './textarea.type';\n\n/** @deprecated use FormlyFieldDatePicker */\nconst FormlyNsTextareaFieldModule = FormlyNsTextAreaFieldModule;\n\nexport { FormlyNsTextAreaFieldModule, FormlyNsTextareaFieldModule };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA6BM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;;iHAArE,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,mBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,EAbpB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;AAUT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,2zBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,kBAAA,EAAA,IAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EA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