@ngx-formly/nativescript 8.0.0 → 9.0.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.
Files changed (44) hide show
  1. package/README.md +26 -19
  2. package/checkbox/index.d.ts +35 -5
  3. package/fesm2022/ngx-formly-nativescript-checkbox.mjs +7 -7
  4. package/fesm2022/ngx-formly-nativescript-form-field.mjs +7 -7
  5. package/fesm2022/ngx-formly-nativescript-radio.mjs +7 -7
  6. package/fesm2022/ngx-formly-nativescript-select.mjs +7 -7
  7. package/fesm2022/ngx-formly-nativescript-text-field.mjs +7 -7
  8. package/fesm2022/ngx-formly-nativescript-textarea.mjs +7 -7
  9. package/fesm2022/ngx-formly-nativescript.mjs +4 -4
  10. package/form-field/index.d.ts +25 -5
  11. package/index.d.ts +18 -5
  12. package/package.json +3 -3
  13. package/radio/index.d.ts +31 -5
  14. package/select/index.d.ts +34 -5
  15. package/text-field/index.d.ts +34 -5
  16. package/textarea/index.d.ts +36 -5
  17. package/checkbox/checkbox.config.d.ts +0 -2
  18. package/checkbox/checkbox.module.d.ts +0 -12
  19. package/checkbox/checkbox.type.d.ts +0 -19
  20. package/checkbox/public_api.d.ts +0 -3
  21. package/form-field/form-field.config.d.ts +0 -2
  22. package/form-field/form-field.module.d.ts +0 -11
  23. package/form-field/form-field.wrapper.d.ts +0 -9
  24. package/form-field/public_api.d.ts +0 -3
  25. package/lib/ui-nativescipt.d.ts +0 -2
  26. package/lib/ui-nativescript.config.d.ts +0 -1
  27. package/lib/ui-nativescript.module.d.ts +0 -12
  28. package/public_api.d.ts +0 -1
  29. package/radio/public_api.d.ts +0 -3
  30. package/radio/radio.config.d.ts +0 -2
  31. package/radio/radio.module.d.ts +0 -13
  32. package/radio/radio.type.d.ts +0 -14
  33. package/select/public_api.d.ts +0 -3
  34. package/select/select.config.d.ts +0 -2
  35. package/select/select.module.d.ts +0 -13
  36. package/select/select.type.d.ts +0 -17
  37. package/text-field/public_api.d.ts +0 -3
  38. package/text-field/text-field.config.d.ts +0 -2
  39. package/text-field/text-field.module.d.ts +0 -12
  40. package/text-field/text-field.type.d.ts +0 -18
  41. package/textarea/public_api.d.ts +0 -6
  42. package/textarea/textarea.config.d.ts +0 -2
  43. package/textarea/textarea.module.d.ts +0 -12
  44. package/textarea/textarea.type.d.ts +0 -17
package/README.md CHANGED
@@ -55,25 +55,32 @@ Formly is a dynamic (JSON powered) form library for Angular that brings unmatche
55
55
 
56
56
  #### **Which Version to use?**
57
57
 
58
- | Angular version | Formly version |
59
- | --------------- | ---------------------- |
60
- | Angular >= 19 | `@ngx-formly/core@8.x` |
61
- | Angular >= 18 | `@ngx-formly/core@7.x` |
62
- | Angular >= 13 | `@ngx-formly/core@6.x` |
63
- | Angular >= 7 | `@ngx-formly/core@5.x` |
64
- | Angular >= 6 | `@ngx-formly/core@4.x` |
65
- | Angular >= 5 | `@ngx-formly/core@3.x` |
66
- | Angular >= 4 | `@ngx-formly/core@2.x` |
67
- | Angular >= 2 | `ng-formly@1.x` |
68
-
69
- #### Upgrading to v8
70
-
71
- Formly v8 requires Angular 19 or newer. Upgrade Angular first, then update all
72
- `@ngx-formly/*` packages used by your application together to v8.
73
- The Material, PrimeNG, and NG-ZORRO integrations require version 19 or newer of
74
- their respective UI libraries. Applications staying on Angular 18 should use Formly v7.
75
-
76
- See the [changelog](CHANGELOG.md) for the full list of changes.
58
+ | Angular version | Formly version | Migration |
59
+ | --------------- | -------------------- | ---------------------------------- |
60
+ | Angular >= 20 | `@ngx-formly/core@9.x` | [Upgrade to v9](UPGRADE-9.0.md) |
61
+ | Angular >= 19 | `@ngx-formly/core@8.x` | [Upgrade to v8](UPGRADE-8.0.md) |
62
+ | Angular >= 18 | `@ngx-formly/core@7.x` | [Upgrade to v7](UPGRADE-7.0.md) |
63
+ | Angular >= 13 | `@ngx-formly/core@6.x` | [Upgrade to v6](UPGRADE-6.0.md) |
64
+ | Angular >= 7 | `@ngx-formly/core@5.x` | [Upgrade to v5](UPGRADE-5.0.md) |
65
+ | Angular >= 6 | `@ngx-formly/core@4.x` | |
66
+ | Angular >= 5 | `@ngx-formly/core@3.x` | |
67
+ | Angular >= 4 | `@ngx-formly/core@2.x` | [Upgrade to v2](UPGRADE-2.0.md) |
68
+ | Angular >= 2 | `ng-formly@1.x` | |
69
+
70
+ #### Upgrading to v9
71
+
72
+ Formly v9 requires Angular 20 or newer. Upgrade Angular first, then update all
73
+ `@ngx-formly/*` packages used by your application together to v9.
74
+ The Material, PrimeNG, and NG-ZORRO integrations require version 20 or newer of
75
+ their respective UI libraries. Kendo requires version 19.1 or newer, and NativeScript
76
+ requires `@nativescript/angular` 20 or newer. Applications staying on Angular 19 should
77
+ use Formly v8; applications staying on Angular 18 should use Formly v7.
78
+
79
+ PrimeNG datepicker fields no longer accept `monthNavigator`, `yearNavigator`, or
80
+ `yearRange`, which PrimeNG 20 removed. Replace `@primeng/themes` imports with
81
+ `@primeuix/themes` when configuring a PrimeNG theme.
82
+
83
+ See the [v9 upgrade guide](UPGRADE-9.0.md) for migration steps and the [changelog](CHANGELOG.md) for the full list of changes.
77
84
 
78
85
  ## Core Team
79
86
 
@@ -1,5 +1,35 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/nativescript/checkbox" />
5
- export * from './public_api';
1
+ import * as i6 from '@ngx-formly/core';
2
+ import { ConfigOption, FormlyFieldConfig, FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
+ import * as i0 from '@angular/core';
4
+ import { Type } from '@angular/core';
5
+ import * as i5 from '@ngx-formly/nativescript/form-field';
6
+ import { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';
7
+ import * as i2 from '@angular/common';
8
+ import * as i3 from '@angular/forms';
9
+ import * as i4 from '@nativescript/angular';
10
+
11
+ declare function withFormlyFieldCheckbox(): ConfigOption;
12
+
13
+ interface CheckboxProps extends FormlyFieldProps {
14
+ }
15
+ interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {
16
+ type: 'checkbox' | Type<FormlyFieldCheckbox>;
17
+ }
18
+ declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {
19
+ defaultOptions: {
20
+ props: {
21
+ hideLabel: boolean;
22
+ };
23
+ };
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCheckbox, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCheckbox, "formly-field-ns-checkbox", never, {}, {}, never, never, false, never>;
26
+ }
27
+
28
+ declare class FormlyNsCheckboxFieldModule {
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsCheckboxFieldModule, never>;
30
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsCheckboxFieldModule, [typeof FormlyFieldCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyNsFormFieldModule, typeof i6.FormlyModule], never>;
31
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsCheckboxFieldModule>;
32
+ }
33
+
34
+ export { FormlyNsCheckboxFieldModule, withFormlyFieldCheckbox };
35
+ export type { FormlyCheckboxFieldConfig };
@@ -18,15 +18,15 @@ class FormlyFieldCheckbox extends FieldType {
18
18
  },
19
19
  };
20
20
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: FormlyFieldCheckbox, isStandalone: false, selector: "formly-field-ns-checkbox", usesInheritance: true, ngImport: i0, template: `
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: FormlyFieldCheckbox, isStandalone: false, selector: "formly-field-ns-checkbox", usesInheritance: true, ngImport: i0, template: `
23
23
  <GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
24
24
  <Label class="label" [text]="props.label"></Label>
25
25
  <Switch class="switch input" [formlyAttributes]="field" [formControl]="formControl" col="1"></Switch>
26
26
  </GridLayout>
27
27
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.CheckedValueAccessor, selector: "Switch[ngModel],Switch[formControlName],Switch[formControl],switch[ngModel],switch[formControlName],switch[formControl]" }, { kind: "directive", type: i3.LegacyFormlyAttributes, selector: "[formlyAttributes]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
28
28
  }
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
30
30
  type: Component,
31
31
  args: [{
32
32
  selector: 'formly-field-ns-checkbox',
@@ -58,18 +58,18 @@ function withFormlyFieldCheckbox() {
58
58
  }
59
59
 
60
60
  class FormlyNsCheckboxFieldModule {
61
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsCheckboxFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
62
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsCheckboxFieldModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
61
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsCheckboxFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
62
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsCheckboxFieldModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
63
63
  ReactiveFormsModule,
64
64
  NativeScriptFormsModule,
65
65
  FormlyNsFormFieldModule, i3.FormlyModule] }); }
66
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsCheckboxFieldModule, imports: [CommonModule,
66
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsCheckboxFieldModule, imports: [CommonModule,
67
67
  ReactiveFormsModule,
68
68
  NativeScriptFormsModule,
69
69
  FormlyNsFormFieldModule,
70
70
  FormlyModule.forChild(withFormlyFieldCheckbox())] }); }
71
71
  }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsCheckboxFieldModule, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsCheckboxFieldModule, decorators: [{
73
73
  type: NgModule,
74
74
  args: [{
75
75
  declarations: [FormlyFieldCheckbox],
@@ -7,8 +7,8 @@ import { ReactiveFormsModule } from '@angular/forms';
7
7
  import { NativeScriptFormsModule } from '@nativescript/angular';
8
8
 
9
9
  class FormlyWrapperFormField extends FieldWrapper {
10
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
11
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: FormlyWrapperFormField, isStandalone: false, selector: "formly-wrapper-ns-form-field", usesInheritance: true, ngImport: i0, template: `
10
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
11
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: FormlyWrapperFormField, isStandalone: false, selector: "formly-wrapper-ns-form-field", usesInheritance: true, ngImport: i0, template: `
12
12
  <StackLayout class="form">
13
13
  <StackLayout class="input-field">
14
14
  @if (props.label && props.hideLabel !== true) {
@@ -24,7 +24,7 @@ class FormlyWrapperFormField extends FieldWrapper {
24
24
  </StackLayout>
25
25
  `, isInline: true, dependencies: [{ kind: "component", type: i1.LegacyFormlyValidationMessage, selector: "formly-validation-message" }] }); }
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
28
28
  type: Component,
29
29
  args: [{
30
30
  selector: 'formly-wrapper-ns-form-field',
@@ -59,11 +59,11 @@ function withFormlyFormField() {
59
59
  }
60
60
 
61
61
  class FormlyNsFormFieldModule {
62
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
63
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule, ReactiveFormsModule, NativeScriptFormsModule, i1.FormlyModule] }); }
64
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsFormFieldModule, imports: [CommonModule, ReactiveFormsModule, NativeScriptFormsModule, FormlyModule.forChild(withFormlyFormField())] }); }
62
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
63
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule, ReactiveFormsModule, NativeScriptFormsModule, i1.FormlyModule] }); }
64
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsFormFieldModule, imports: [CommonModule, ReactiveFormsModule, NativeScriptFormsModule, FormlyModule.forChild(withFormlyFormField())] }); }
65
65
  }
66
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsFormFieldModule, decorators: [{
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsFormFieldModule, decorators: [{
67
67
  type: NgModule,
68
68
  args: [{
69
69
  declarations: [FormlyWrapperFormField],
@@ -18,8 +18,8 @@ class FormlyFieldRadio extends FieldType {
18
18
  this.formControl.markAsTouched();
19
19
  }, 100);
20
20
  }
21
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
22
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: FormlyFieldRadio, isStandalone: false, selector: "formly-field-ns-radio", usesInheritance: true, ngImport: i0, template: `
21
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
22
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: FormlyFieldRadio, isStandalone: false, selector: "formly-field-ns-radio", usesInheritance: true, ngImport: i0, template: `
23
23
  @for (option of props.options | formlySelectOptions: field | async; track option) {
24
24
  <GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
25
25
  <Label class="label" [text]="option.label"></Label>
@@ -29,7 +29,7 @@ class FormlyFieldRadio extends FieldType {
29
29
  }
30
30
  `, isInline: true, dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.LegacyFormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
31
31
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldRadio, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldRadio, decorators: [{
33
33
  type: Component,
34
34
  args: [{
35
35
  selector: 'formly-field-ns-radio',
@@ -60,20 +60,20 @@ function withFormlyFieldRadio() {
60
60
  }
61
61
 
62
62
  class FormlyNsRadioFieldModule {
63
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsRadioFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
64
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsRadioFieldModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
63
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsRadioFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
64
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsRadioFieldModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
65
65
  ReactiveFormsModule,
66
66
  NativeScriptFormsModule,
67
67
  FormlyNsFormFieldModule,
68
68
  FormlySelectModule, i1$1.FormlyModule] }); }
69
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsRadioFieldModule, imports: [CommonModule,
69
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsRadioFieldModule, imports: [CommonModule,
70
70
  ReactiveFormsModule,
71
71
  NativeScriptFormsModule,
72
72
  FormlyNsFormFieldModule,
73
73
  FormlySelectModule,
74
74
  FormlyModule.forChild(withFormlyFieldRadio())] }); }
75
75
  }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsRadioFieldModule, decorators: [{
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsRadioFieldModule, decorators: [{
77
77
  type: NgModule,
78
78
  args: [{
79
79
  declarations: [FormlyFieldRadio],
@@ -21,14 +21,14 @@ class FormlyFieldSelect extends FieldType {
21
21
  }
22
22
  return this.props.placeholder;
23
23
  }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
25
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: FormlyFieldSelect, isStandalone: false, selector: "formly-field-ns-select", usesInheritance: true, ngImport: i0, template: `
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.33", type: FormlyFieldSelect, isStandalone: false, selector: "formly-field-ns-select", usesInheritance: true, ngImport: i0, template: `
26
26
  @if (props.options | formlySelectOptions: field | async; as options) {
27
27
  <Button (tap)="tap(options)" [text]="selectedItem(options)"></Button>
28
28
  }
29
29
  `, isInline: true, dependencies: [{ kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.LegacyFormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
30
30
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldSelect, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldSelect, decorators: [{
32
32
  type: Component,
33
33
  args: [{
34
34
  selector: 'formly-field-ns-select',
@@ -56,20 +56,20 @@ function withFormlyFieldSelect() {
56
56
  }
57
57
 
58
58
  class FormlyNsSelectFieldModule {
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsSelectFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
60
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsSelectFieldModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsSelectFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
60
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsSelectFieldModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
61
61
  ReactiveFormsModule,
62
62
  NativeScriptFormsModule,
63
63
  FormlyNsFormFieldModule,
64
64
  FormlySelectModule, i1$1.FormlyModule] }); }
65
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsSelectFieldModule, imports: [CommonModule,
65
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsSelectFieldModule, imports: [CommonModule,
66
66
  ReactiveFormsModule,
67
67
  NativeScriptFormsModule,
68
68
  FormlyNsFormFieldModule,
69
69
  FormlySelectModule,
70
70
  FormlyModule.forChild(withFormlyFieldSelect())] }); }
71
71
  }
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsSelectFieldModule, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsSelectFieldModule, decorators: [{
73
73
  type: NgModule,
74
74
  args: [{
75
75
  declarations: [FormlyFieldSelect],
@@ -10,8 +10,8 @@ import { CommonModule } from '@angular/common';
10
10
  import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
11
11
 
12
12
  class FormlyFieldInput extends FieldType {
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: FormlyFieldInput, isStandalone: false, selector: "formly-field-ns-input", usesInheritance: true, ngImport: i0, template: `
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
14
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: FormlyFieldInput, isStandalone: false, selector: "formly-field-ns-input", usesInheritance: true, ngImport: i0, template: `
15
15
  <TextField
16
16
  class="input"
17
17
  [formlyAttributes]="field"
@@ -24,7 +24,7 @@ class FormlyFieldInput extends FieldType {
24
24
  </TextField>
25
25
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.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]" }, { kind: "directive", type: i3.LegacyFormlyAttributes, selector: "[formlyAttributes]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26
26
  }
27
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldInput, decorators: [{
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldInput, decorators: [{
28
28
  type: Component,
29
29
  args: [{
30
30
  selector: 'formly-field-ns-input',
@@ -78,18 +78,18 @@ function withFormlyFieldInput() {
78
78
  }
79
79
 
80
80
  class FormlyNsTextFieldModule {
81
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsTextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
82
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsTextFieldModule, declarations: [FormlyFieldInput], imports: [CommonModule,
81
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsTextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
82
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsTextFieldModule, declarations: [FormlyFieldInput], imports: [CommonModule,
83
83
  ReactiveFormsModule,
84
84
  NativeScriptFormsModule,
85
85
  FormlyNsFormFieldModule, i3.FormlyModule] }); }
86
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsTextFieldModule, imports: [CommonModule,
86
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsTextFieldModule, imports: [CommonModule,
87
87
  ReactiveFormsModule,
88
88
  NativeScriptFormsModule,
89
89
  FormlyNsFormFieldModule,
90
90
  FormlyModule.forChild(withFormlyFieldInput())] }); }
91
91
  }
92
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsTextFieldModule, decorators: [{
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsTextFieldModule, decorators: [{
93
93
  type: NgModule,
94
94
  args: [{
95
95
  declarations: [FormlyFieldInput],
@@ -10,8 +10,8 @@ import { CommonModule } from '@angular/common';
10
10
  import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
11
11
 
12
12
  class FormlyFieldTextArea extends FieldType {
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: FormlyFieldTextArea, isStandalone: false, selector: "formly-field-ns-textarea", usesInheritance: true, ngImport: i0, template: `
13
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
14
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: FormlyFieldTextArea, isStandalone: false, selector: "formly-field-ns-textarea", usesInheritance: true, ngImport: i0, template: `
15
15
  <TextView
16
16
  class="input"
17
17
  [formlyAttributes]="field"
@@ -23,7 +23,7 @@ class FormlyFieldTextArea extends FieldType {
23
23
  </TextView>
24
24
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.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]" }, { kind: "directive", type: i3.LegacyFormlyAttributes, selector: "[formlyAttributes]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
25
25
  }
26
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
27
27
  type: Component,
28
28
  args: [{
29
29
  selector: 'formly-field-ns-textarea',
@@ -56,18 +56,18 @@ function withFormlyFieldTextArea() {
56
56
  }
57
57
 
58
58
  class FormlyNsTextAreaFieldModule {
59
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsTextAreaFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
60
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsTextAreaFieldModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
59
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsTextAreaFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
60
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsTextAreaFieldModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
61
61
  ReactiveFormsModule,
62
62
  NativeScriptFormsModule,
63
63
  FormlyNsFormFieldModule, i3.FormlyModule] }); }
64
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsTextAreaFieldModule, imports: [CommonModule,
64
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsTextAreaFieldModule, imports: [CommonModule,
65
65
  ReactiveFormsModule,
66
66
  NativeScriptFormsModule,
67
67
  FormlyNsFormFieldModule,
68
68
  FormlyModule.forChild(withFormlyFieldTextArea())] }); }
69
69
  }
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNsTextAreaFieldModule, decorators: [{
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsTextAreaFieldModule, decorators: [{
71
71
  type: NgModule,
72
72
  args: [{
73
73
  declarations: [FormlyFieldTextArea],
@@ -19,21 +19,21 @@ function withFormlyNativescript() {
19
19
  }
20
20
 
21
21
  class FormlyNativescriptModule {
22
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNativescriptModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
23
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: FormlyNativescriptModule, imports: [FormlyNsFormFieldModule,
22
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNativescriptModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
23
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyNativescriptModule, imports: [FormlyNsFormFieldModule,
24
24
  FormlyNsTextFieldModule,
25
25
  FormlyNsTextAreaFieldModule,
26
26
  FormlyNsCheckboxFieldModule,
27
27
  FormlyNsRadioFieldModule,
28
28
  FormlyNsSelectFieldModule] }); }
29
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNativescriptModule, imports: [FormlyNsFormFieldModule,
29
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNativescriptModule, imports: [FormlyNsFormFieldModule,
30
30
  FormlyNsTextFieldModule,
31
31
  FormlyNsTextAreaFieldModule,
32
32
  FormlyNsCheckboxFieldModule,
33
33
  FormlyNsRadioFieldModule,
34
34
  FormlyNsSelectFieldModule] }); }
35
35
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyNativescriptModule, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNativescriptModule, decorators: [{
37
37
  type: NgModule,
38
38
  args: [{
39
39
  imports: [
@@ -1,5 +1,25 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/nativescript/form-field" />
5
- export * from './public_api';
1
+ import * as i5 from '@ngx-formly/core';
2
+ import { ConfigOption, FormlyFieldProps as FormlyFieldProps$1, FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import * as i0 from '@angular/core';
4
+ import * as i2 from '@angular/common';
5
+ import * as i3 from '@angular/forms';
6
+ import * as i4 from '@nativescript/angular';
7
+
8
+ declare function withFormlyFormField(): ConfigOption;
9
+
10
+ interface FormlyFieldProps extends FormlyFieldProps$1 {
11
+ hideLabel?: boolean;
12
+ }
13
+ declare class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-ns-form-field", never, {}, {}, never, never, false, never>;
16
+ }
17
+
18
+ declare class FormlyNsFormFieldModule {
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsFormFieldModule, never>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsFormFieldModule, [typeof FormlyWrapperFormField], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyModule], never>;
21
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsFormFieldModule>;
22
+ }
23
+
24
+ export { FormlyNsFormFieldModule, withFormlyFormField };
25
+ export type { FormlyFieldProps };
package/index.d.ts CHANGED
@@ -1,5 +1,18 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/nativescript" />
5
- export * from './public_api';
1
+ import * as _ngx_formly_core from '@ngx-formly/core';
2
+ import * as i0 from '@angular/core';
3
+ import * as i1 from '@ngx-formly/nativescript/form-field';
4
+ import * as i2 from '@ngx-formly/nativescript/text-field';
5
+ import * as i3 from '@ngx-formly/nativescript/textarea';
6
+ import * as i4 from '@ngx-formly/nativescript/checkbox';
7
+ import * as i5 from '@ngx-formly/nativescript/radio';
8
+ import * as i6 from '@ngx-formly/nativescript/select';
9
+
10
+ declare function withFormlyNativescript(): _ngx_formly_core.ConfigOption[];
11
+
12
+ declare class FormlyNativescriptModule {
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNativescriptModule, never>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNativescriptModule, never, [typeof i1.FormlyNsFormFieldModule, typeof i2.FormlyNsTextFieldModule, typeof i3.FormlyNsTextAreaFieldModule, typeof i4.FormlyNsCheckboxFieldModule, typeof i5.FormlyNsRadioFieldModule, typeof i6.FormlyNsSelectFieldModule], never>;
15
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNativescriptModule>;
16
+ }
17
+
18
+ export { FormlyNativescriptModule, withFormlyNativescript };
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@ngx-formly/nativescript",
3
- "version": "8.0.0",
3
+ "version": "9.0.0",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"
7
7
  },
8
8
  "peerDependencies": {
9
- "@ngx-formly/core": "8.0.0",
10
- "@nativescript/angular": ">=16.0.0",
9
+ "@ngx-formly/core": "9.0.0",
10
+ "@nativescript/angular": ">=20.0.0",
11
11
  "@nativescript/core": ">=8.1.0"
12
12
  },
13
13
  "module": "fesm2022/ngx-formly-nativescript.mjs",
package/radio/index.d.ts CHANGED
@@ -1,5 +1,31 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/nativescript/radio" />
5
- export * from './public_api';
1
+ import * as i7 from '@ngx-formly/core';
2
+ import { ConfigOption, FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import * as i0 from '@angular/core';
4
+ import { Type } from '@angular/core';
5
+ import * as i5 from '@ngx-formly/nativescript/form-field';
6
+ import { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';
7
+ import * as i2 from '@angular/common';
8
+ import * as i3 from '@angular/forms';
9
+ import * as i4 from '@nativescript/angular';
10
+ import * as i6 from '@ngx-formly/core/select';
11
+
12
+ declare function withFormlyFieldRadio(): ConfigOption;
13
+
14
+ type RadioProps = FormlyFieldProps;
15
+ interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {
16
+ type: 'radio' | Type<FormlyFieldRadio>;
17
+ }
18
+ declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {
19
+ tap(id: any): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRadio, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRadio, "formly-field-ns-radio", never, {}, {}, never, never, false, never>;
22
+ }
23
+
24
+ declare class FormlyNsRadioFieldModule {
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsRadioFieldModule, never>;
26
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsRadioFieldModule, [typeof FormlyFieldRadio], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyNsFormFieldModule, typeof i6.FormlySelectModule, typeof i7.FormlyModule], never>;
27
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsRadioFieldModule>;
28
+ }
29
+
30
+ export { FormlyNsRadioFieldModule, withFormlyFieldRadio };
31
+ export type { FormlyRadioFieldConfig };
package/select/index.d.ts CHANGED
@@ -1,5 +1,34 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/nativescript/select" />
5
- export * from './public_api';
1
+ import * as i7 from '@ngx-formly/core';
2
+ import { ConfigOption, FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import * as i0 from '@angular/core';
4
+ import { Type } from '@angular/core';
5
+ import * as i5 from '@ngx-formly/nativescript/form-field';
6
+ import { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';
7
+ import * as i6 from '@ngx-formly/core/select';
8
+ import { FormlyFieldSelectProps } from '@ngx-formly/core/select';
9
+ import * as i2 from '@angular/common';
10
+ import * as i3 from '@angular/forms';
11
+ import * as i4 from '@nativescript/angular';
12
+
13
+ declare function withFormlyFieldSelect(): ConfigOption;
14
+
15
+ interface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {
16
+ }
17
+ interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {
18
+ type: 'select' | Type<FormlyFieldSelect>;
19
+ }
20
+ declare class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {
21
+ tap(options: any[]): void;
22
+ selectedItem(options: any[]): any;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSelect, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSelect, "formly-field-ns-select", never, {}, {}, never, never, false, never>;
25
+ }
26
+
27
+ declare class FormlyNsSelectFieldModule {
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsSelectFieldModule, never>;
29
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsSelectFieldModule, [typeof FormlyFieldSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyNsFormFieldModule, typeof i6.FormlySelectModule, typeof i7.FormlyModule], never>;
30
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsSelectFieldModule>;
31
+ }
32
+
33
+ export { FormlyNsSelectFieldModule, withFormlyFieldSelect };
34
+ export type { FormlySelectFieldConfig };
@@ -1,5 +1,34 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/nativescript/text-field" />
5
- export * from './public_api';
1
+ import * as i6 from '@ngx-formly/core';
2
+ import { ConfigOption, FormlyFieldConfig, FieldType, FieldTypeConfig } from '@ngx-formly/core';
3
+ import * as i0 from '@angular/core';
4
+ import { Type } from '@angular/core';
5
+ import * as i5 from '@ngx-formly/nativescript/form-field';
6
+ import { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';
7
+ import * as i2 from '@angular/common';
8
+ import * as i3 from '@angular/forms';
9
+ import * as i4 from '@nativescript/angular';
10
+
11
+ declare function withFormlyFieldInput(): ConfigOption;
12
+
13
+ interface InputProps extends FormlyFieldProps {
14
+ autocorrect?: boolean;
15
+ secure?: boolean;
16
+ hint?: string;
17
+ keyboardType?: any;
18
+ }
19
+ interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
20
+ type: 'input' | Type<FormlyFieldInput>;
21
+ }
22
+ declare class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, never>;
24
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-ns-input", never, {}, {}, never, never, false, never>;
25
+ }
26
+
27
+ declare class FormlyNsTextFieldModule {
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsTextFieldModule, never>;
29
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsTextFieldModule, [typeof FormlyFieldInput], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyNsFormFieldModule, typeof i6.FormlyModule], never>;
30
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsTextFieldModule>;
31
+ }
32
+
33
+ export { FormlyNsTextFieldModule, withFormlyFieldInput };
34
+ export type { FormlyInputFieldConfig };
@@ -1,5 +1,36 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/nativescript/textarea" />
5
- export * from './public_api';
1
+ import * as i0 from '@angular/core';
2
+ import { Type } from '@angular/core';
3
+ import * as i6 from '@ngx-formly/core';
4
+ import { ConfigOption, FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
5
+ import * as i5 from '@ngx-formly/nativescript/form-field';
6
+ import { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';
7
+ import * as i2 from '@angular/common';
8
+ import * as i3 from '@angular/forms';
9
+ import * as i4 from '@nativescript/angular';
10
+
11
+ declare function withFormlyFieldTextArea(): ConfigOption;
12
+
13
+ interface TextAreaProps extends FormlyFieldProps {
14
+ hint?: string;
15
+ autocorrect?: boolean;
16
+ keyboardType?: any;
17
+ }
18
+ interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {
19
+ type: 'textarea' | Type<FormlyFieldTextArea>;
20
+ }
21
+ declare class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTextArea, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTextArea, "formly-field-ns-textarea", never, {}, {}, never, never, false, never>;
24
+ }
25
+
26
+ declare class FormlyNsTextAreaFieldModule {
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsTextAreaFieldModule, never>;
28
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsTextAreaFieldModule, [typeof FormlyFieldTextArea], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyNsFormFieldModule, typeof i6.FormlyModule], never>;
29
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsTextAreaFieldModule>;
30
+ }
31
+
32
+ /** @deprecated use FormlyFieldDatePicker */
33
+ declare const FormlyNsTextareaFieldModule: typeof FormlyNsTextAreaFieldModule;
34
+
35
+ export { FormlyNsTextAreaFieldModule, FormlyNsTextareaFieldModule, withFormlyFieldTextArea };
36
+ export type { FormlyTextAreaFieldConfig };
@@ -1,2 +0,0 @@
1
- import { ConfigOption } from '@ngx-formly/core';
2
- export declare function withFormlyFieldCheckbox(): ConfigOption;
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./checkbox.type";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@nativescript/angular";
6
- import * as i5 from "@ngx-formly/nativescript/form-field";
7
- import * as i6 from "@ngx-formly/core";
8
- export declare class FormlyNsCheckboxFieldModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsCheckboxFieldModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsCheckboxFieldModule, [typeof i1.FormlyFieldCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyNsFormFieldModule, typeof i6.FormlyModule], never>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsCheckboxFieldModule>;
12
- }
@@ -1,19 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';
4
- import * as i0 from "@angular/core";
5
- interface CheckboxProps extends FormlyFieldProps {
6
- }
7
- export interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {
8
- type: 'checkbox' | Type<FormlyFieldCheckbox>;
9
- }
10
- export declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {
11
- defaultOptions: {
12
- props: {
13
- hideLabel: boolean;
14
- };
15
- };
16
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCheckbox, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCheckbox, "formly-field-ns-checkbox", never, {}, {}, never, never, false, never>;
18
- }
19
- export {};
@@ -1,3 +0,0 @@
1
- export { withFormlyFieldCheckbox } from './checkbox.config';
2
- export { FormlyNsCheckboxFieldModule } from './checkbox.module';
3
- export { FormlyCheckboxFieldConfig } from './checkbox.type';
@@ -1,2 +0,0 @@
1
- import { ConfigOption } from '@ngx-formly/core';
2
- export declare function withFormlyFormField(): ConfigOption;
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./form-field.wrapper";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@nativescript/angular";
6
- import * as i5 from "@ngx-formly/core";
7
- export declare class FormlyNsFormFieldModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsFormFieldModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsFormFieldModule, [typeof i1.FormlyWrapperFormField], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyModule], never>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsFormFieldModule>;
11
- }
@@ -1,9 +0,0 @@
1
- import { FieldWrapper, FormlyFieldConfig, FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';
2
- import * as i0 from "@angular/core";
3
- export interface FormlyFieldProps extends CoreFormlyFieldProps {
4
- hideLabel?: boolean;
5
- }
6
- export declare class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-ns-form-field", never, {}, {}, never, never, false, never>;
9
- }
@@ -1,3 +0,0 @@
1
- export { withFormlyFormField } from './form-field.config';
2
- export { FormlyNsFormFieldModule } from './form-field.module';
3
- export { FormlyFieldProps } from './form-field.wrapper';
@@ -1,2 +0,0 @@
1
- export { withFormlyNativescript } from './ui-nativescript.config';
2
- export { FormlyNativescriptModule } from './ui-nativescript.module';
@@ -1 +0,0 @@
1
- export declare function withFormlyNativescript(): import("@ngx-formly/core").ConfigOption[];
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@ngx-formly/nativescript/form-field";
3
- import * as i2 from "@ngx-formly/nativescript/text-field";
4
- import * as i3 from "@ngx-formly/nativescript/textarea";
5
- import * as i4 from "@ngx-formly/nativescript/checkbox";
6
- import * as i5 from "@ngx-formly/nativescript/radio";
7
- import * as i6 from "@ngx-formly/nativescript/select";
8
- export declare class FormlyNativescriptModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNativescriptModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNativescriptModule, never, [typeof i1.FormlyNsFormFieldModule, typeof i2.FormlyNsTextFieldModule, typeof i3.FormlyNsTextAreaFieldModule, typeof i4.FormlyNsCheckboxFieldModule, typeof i5.FormlyNsRadioFieldModule, typeof i6.FormlyNsSelectFieldModule], never>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNativescriptModule>;
12
- }
package/public_api.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './lib/ui-nativescipt';
@@ -1,3 +0,0 @@
1
- export { withFormlyFieldRadio } from './radio.config';
2
- export { FormlyNsRadioFieldModule } from './radio.module';
3
- export { FormlyRadioFieldConfig } from './radio.type';
@@ -1,2 +0,0 @@
1
- import { ConfigOption } from '@ngx-formly/core';
2
- export declare function withFormlyFieldRadio(): ConfigOption;
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./radio.type";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@nativescript/angular";
6
- import * as i5 from "@ngx-formly/nativescript/form-field";
7
- import * as i6 from "@ngx-formly/core/select";
8
- import * as i7 from "@ngx-formly/core";
9
- export declare class FormlyNsRadioFieldModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsRadioFieldModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsRadioFieldModule, [typeof i1.FormlyFieldRadio], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyNsFormFieldModule, typeof i6.FormlySelectModule, typeof i7.FormlyModule], never>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsRadioFieldModule>;
13
- }
@@ -1,14 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';
4
- import * as i0 from "@angular/core";
5
- type RadioProps = FormlyFieldProps;
6
- export interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {
7
- type: 'radio' | Type<FormlyFieldRadio>;
8
- }
9
- export declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {
10
- tap(id: any): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRadio, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRadio, "formly-field-ns-radio", never, {}, {}, never, never, false, never>;
13
- }
14
- export {};
@@ -1,3 +0,0 @@
1
- export { withFormlyFieldSelect } from './select.config';
2
- export { FormlyNsSelectFieldModule } from './select.module';
3
- export { FormlySelectFieldConfig } from './select.type';
@@ -1,2 +0,0 @@
1
- import { ConfigOption } from '@ngx-formly/core';
2
- export declare function withFormlyFieldSelect(): ConfigOption;
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./select.type";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@nativescript/angular";
6
- import * as i5 from "@ngx-formly/nativescript/form-field";
7
- import * as i6 from "@ngx-formly/core/select";
8
- import * as i7 from "@ngx-formly/core";
9
- export declare class FormlyNsSelectFieldModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsSelectFieldModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsSelectFieldModule, [typeof i1.FormlyFieldSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyNsFormFieldModule, typeof i6.FormlySelectModule, typeof i7.FormlyModule], never>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsSelectFieldModule>;
13
- }
@@ -1,17 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';
4
- import { FormlyFieldSelectProps } from '@ngx-formly/core/select';
5
- import * as i0 from "@angular/core";
6
- interface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {
7
- }
8
- export interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {
9
- type: 'select' | Type<FormlyFieldSelect>;
10
- }
11
- export declare class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {
12
- tap(options: any[]): void;
13
- selectedItem(options: any[]): any;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSelect, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSelect, "formly-field-ns-select", never, {}, {}, never, never, false, never>;
16
- }
17
- export {};
@@ -1,3 +0,0 @@
1
- export { withFormlyFieldInput } from './text-field.config';
2
- export { FormlyNsTextFieldModule } from './text-field.module';
3
- export { FormlyInputFieldConfig } from './text-field.type';
@@ -1,2 +0,0 @@
1
- import { ConfigOption } from '@ngx-formly/core';
2
- export declare function withFormlyFieldInput(): ConfigOption;
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./text-field.type";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@nativescript/angular";
6
- import * as i5 from "@ngx-formly/nativescript/form-field";
7
- import * as i6 from "@ngx-formly/core";
8
- export declare class FormlyNsTextFieldModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsTextFieldModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsTextFieldModule, [typeof i1.FormlyFieldInput], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyNsFormFieldModule, typeof i6.FormlyModule], never>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsTextFieldModule>;
12
- }
@@ -1,18 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';
4
- import * as i0 from "@angular/core";
5
- interface InputProps extends FormlyFieldProps {
6
- autocorrect?: boolean;
7
- secure?: boolean;
8
- hint?: string;
9
- keyboardType?: any;
10
- }
11
- export interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
12
- type: 'input' | Type<FormlyFieldInput>;
13
- }
14
- export declare class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {
15
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-ns-input", never, {}, {}, never, never, false, never>;
17
- }
18
- export {};
@@ -1,6 +0,0 @@
1
- export { withFormlyFieldTextArea } from './textarea.config';
2
- import { FormlyNsTextAreaFieldModule } from './textarea.module';
3
- export { FormlyTextAreaFieldConfig } from './textarea.type';
4
- /** @deprecated use FormlyFieldDatePicker */
5
- declare const FormlyNsTextareaFieldModule: typeof FormlyNsTextAreaFieldModule;
6
- export { FormlyNsTextAreaFieldModule, FormlyNsTextareaFieldModule };
@@ -1,2 +0,0 @@
1
- import { ConfigOption } from '@ngx-formly/core';
2
- export declare function withFormlyFieldTextArea(): ConfigOption;
@@ -1,12 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./textarea.type";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@nativescript/angular";
6
- import * as i5 from "@ngx-formly/nativescript/form-field";
7
- import * as i6 from "@ngx-formly/core";
8
- export declare class FormlyNsTextAreaFieldModule {
9
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNsTextAreaFieldModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNsTextAreaFieldModule, [typeof i1.FormlyFieldTextArea], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.NativeScriptFormsModule, typeof i5.FormlyNsFormFieldModule, typeof i6.FormlyModule], never>;
11
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNsTextAreaFieldModule>;
12
- }
@@ -1,17 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
- import { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';
4
- import * as i0 from "@angular/core";
5
- interface TextAreaProps extends FormlyFieldProps {
6
- hint?: string;
7
- autocorrect?: boolean;
8
- keyboardType?: any;
9
- }
10
- export interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {
11
- type: 'textarea' | Type<FormlyFieldTextArea>;
12
- }
13
- export declare class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {
14
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTextArea, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTextArea, "formly-field-ns-textarea", never, {}, {}, never, never, false, never>;
16
- }
17
- export {};