@ngx-formly/nativescript 7.1.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.
- package/README.md +26 -9
- package/checkbox/index.d.ts +35 -5
- package/fesm2022/ngx-formly-nativescript-checkbox.mjs +8 -7
- package/fesm2022/ngx-formly-nativescript-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-nativescript-form-field.mjs +20 -16
- package/fesm2022/ngx-formly-nativescript-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-nativescript-radio.mjs +13 -12
- package/fesm2022/ngx-formly-nativescript-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-nativescript-select.mjs +13 -12
- package/fesm2022/ngx-formly-nativescript-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-nativescript-text-field.mjs +8 -7
- package/fesm2022/ngx-formly-nativescript-text-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-nativescript-textarea.mjs +8 -7
- package/fesm2022/ngx-formly-nativescript-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-nativescript.mjs +4 -4
- package/form-field/index.d.ts +25 -5
- package/index.d.ts +18 -5
- package/package.json +3 -17
- package/radio/index.d.ts +31 -5
- package/select/index.d.ts +34 -5
- package/text-field/index.d.ts +34 -5
- package/textarea/index.d.ts +36 -5
- package/checkbox/checkbox.config.d.ts +0 -2
- package/checkbox/checkbox.module.d.ts +0 -12
- package/checkbox/checkbox.type.d.ts +0 -19
- package/checkbox/public_api.d.ts +0 -3
- package/esm2022/checkbox/checkbox.config.mjs +0 -17
- package/esm2022/checkbox/checkbox.module.mjs +0 -37
- package/esm2022/checkbox/checkbox.type.mjs +0 -37
- package/esm2022/checkbox/ngx-formly-nativescript-checkbox.mjs +0 -5
- package/esm2022/checkbox/public_api.mjs +0 -3
- package/esm2022/form-field/form-field.config.mjs +0 -12
- package/esm2022/form-field/form-field.module.mjs +0 -23
- package/esm2022/form-field/form-field.wrapper.mjs +0 -41
- package/esm2022/form-field/ngx-formly-nativescript-form-field.mjs +0 -5
- package/esm2022/form-field/public_api.mjs +0 -3
- package/esm2022/lib/ui-nativescipt.mjs +0 -3
- package/esm2022/lib/ui-nativescript.config.mjs +0 -17
- package/esm2022/lib/ui-nativescript.module.mjs +0 -38
- package/esm2022/ngx-formly-nativescript.mjs +0 -5
- package/esm2022/public_api.mjs +0 -5
- package/esm2022/radio/ngx-formly-nativescript-radio.mjs +0 -5
- package/esm2022/radio/public_api.mjs +0 -3
- package/esm2022/radio/radio.config.mjs +0 -13
- package/esm2022/radio/radio.module.mjs +0 -41
- package/esm2022/radio/radio.type.mjs +0 -41
- package/esm2022/select/ngx-formly-nativescript-select.mjs +0 -5
- package/esm2022/select/public_api.mjs +0 -3
- package/esm2022/select/select.config.mjs +0 -14
- package/esm2022/select/select.module.mjs +0 -41
- package/esm2022/select/select.type.mjs +0 -36
- package/esm2022/text-field/ngx-formly-nativescript-text-field.mjs +0 -5
- package/esm2022/text-field/public_api.mjs +0 -3
- package/esm2022/text-field/text-field.config.mjs +0 -33
- package/esm2022/text-field/text-field.module.mjs +0 -37
- package/esm2022/text-field/text-field.type.mjs +0 -41
- package/esm2022/textarea/ngx-formly-nativescript-textarea.mjs +0 -5
- package/esm2022/textarea/public_api.mjs +0 -6
- package/esm2022/textarea/textarea.config.mjs +0 -13
- package/esm2022/textarea/textarea.module.mjs +0 -37
- package/esm2022/textarea/textarea.type.mjs +0 -39
- package/form-field/form-field.config.d.ts +0 -2
- package/form-field/form-field.module.d.ts +0 -11
- package/form-field/form-field.wrapper.d.ts +0 -9
- package/form-field/public_api.d.ts +0 -3
- package/lib/ui-nativescipt.d.ts +0 -2
- package/lib/ui-nativescript.config.d.ts +0 -1
- package/lib/ui-nativescript.module.d.ts +0 -12
- package/public_api.d.ts +0 -1
- package/radio/public_api.d.ts +0 -3
- package/radio/radio.config.d.ts +0 -2
- package/radio/radio.module.d.ts +0 -13
- package/radio/radio.type.d.ts +0 -14
- package/select/public_api.d.ts +0 -3
- package/select/select.config.d.ts +0 -2
- package/select/select.module.d.ts +0 -13
- package/select/select.type.d.ts +0 -17
- package/text-field/public_api.d.ts +0 -3
- package/text-field/text-field.config.d.ts +0 -2
- package/text-field/text-field.module.d.ts +0 -12
- package/text-field/text-field.type.d.ts +0 -18
- package/textarea/public_api.d.ts +0 -6
- package/textarea/textarea.config.d.ts +0 -2
- package/textarea/textarea.module.d.ts +0 -12
- package/textarea/textarea.type.d.ts +0 -17
package/README.md
CHANGED
|
@@ -55,15 +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 >=
|
|
61
|
-
| Angular >=
|
|
62
|
-
| Angular >=
|
|
63
|
-
| Angular >=
|
|
64
|
-
| Angular >=
|
|
65
|
-
| Angular >=
|
|
66
|
-
| Angular >=
|
|
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.
|
|
67
84
|
|
|
68
85
|
## Core Team
|
|
69
86
|
|
package/checkbox/index.d.ts
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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: "
|
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
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: "
|
|
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',
|
|
@@ -37,6 +37,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
37
37
|
</GridLayout>
|
|
38
38
|
`,
|
|
39
39
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40
|
+
standalone: false,
|
|
40
41
|
}]
|
|
41
42
|
}] });
|
|
42
43
|
|
|
@@ -57,18 +58,18 @@ function withFormlyFieldCheckbox() {
|
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
class FormlyNsCheckboxFieldModule {
|
|
60
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
61
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
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,
|
|
62
63
|
ReactiveFormsModule,
|
|
63
64
|
NativeScriptFormsModule,
|
|
64
65
|
FormlyNsFormFieldModule, i3.FormlyModule] }); }
|
|
65
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
66
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsCheckboxFieldModule, imports: [CommonModule,
|
|
66
67
|
ReactiveFormsModule,
|
|
67
68
|
NativeScriptFormsModule,
|
|
68
69
|
FormlyNsFormFieldModule,
|
|
69
70
|
FormlyModule.forChild(withFormlyFieldCheckbox())] }); }
|
|
70
71
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsCheckboxFieldModule, decorators: [{
|
|
72
73
|
type: NgModule,
|
|
73
74
|
args: [{
|
|
74
75
|
declarations: [FormlyFieldCheckbox],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-formly-nativescript-checkbox.mjs","sources":["../../../../src/ui/nativescript/checkbox/src/checkbox.type.ts","../../../../src/ui/nativescript/checkbox/src/checkbox.config.ts","../../../../src/ui/nativescript/checkbox/src/checkbox.module.ts","../../../../src/ui/nativescript/checkbox/src/ngx-formly-nativescript-checkbox.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 CheckboxProps extends FormlyFieldProps {}\n\nexport interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {\n type: 'checkbox' | Type<FormlyFieldCheckbox>;\n}\n\n@Component({\n selector: 'formly-field-ns-checkbox',\n template: `\n <GridLayout class=\"input-field input-sides\" rows=\"auto, auto\" columns=\"*,*\">\n <Label class=\"label\" [text]=\"props.label\"></Label>\n <Switch class=\"switch input\" [formlyAttributes]=\"field\" [formControl]=\"formControl\" col=\"1\"></Switch>\n </GridLayout>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\n override defaultOptions = {\n props: {\n hideLabel: true,\n },\n };\n}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldCheckbox } from './checkbox.type';\n\nexport function withFormlyFieldCheckbox(): ConfigOption {\n return {\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field'],\n },\n {\n name: 'boolean',\n extends: 'checkbox',\n },\n ],\n };\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';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldCheckbox } from './checkbox.type';\nimport { withFormlyFieldCheckbox } from './checkbox.config';\n\n@NgModule({\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild(withFormlyFieldCheckbox()),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsCheckboxFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"ngx-formly-nativescript-checkbox.mjs","sources":["../../../../src/ui/nativescript/checkbox/src/checkbox.type.ts","../../../../src/ui/nativescript/checkbox/src/checkbox.config.ts","../../../../src/ui/nativescript/checkbox/src/checkbox.module.ts","../../../../src/ui/nativescript/checkbox/src/ngx-formly-nativescript-checkbox.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 CheckboxProps extends FormlyFieldProps {}\n\nexport interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {\n type: 'checkbox' | Type<FormlyFieldCheckbox>;\n}\n\n@Component({\n selector: 'formly-field-ns-checkbox',\n template: `\n <GridLayout class=\"input-field input-sides\" rows=\"auto, auto\" columns=\"*,*\">\n <Label class=\"label\" [text]=\"props.label\"></Label>\n <Switch class=\"switch input\" [formlyAttributes]=\"field\" [formControl]=\"formControl\" col=\"1\"></Switch>\n </GridLayout>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\n override defaultOptions = {\n props: {\n hideLabel: true,\n },\n };\n}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldCheckbox } from './checkbox.type';\n\nexport function withFormlyFieldCheckbox(): ConfigOption {\n return {\n types: [\n {\n name: 'checkbox',\n component: FormlyFieldCheckbox,\n wrappers: ['form-field'],\n },\n {\n name: 'boolean',\n extends: 'checkbox',\n },\n ],\n };\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';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldCheckbox } from './checkbox.type';\nimport { withFormlyFieldCheckbox } from './checkbox.config';\n\n@NgModule({\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild(withFormlyFieldCheckbox()),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsCheckboxFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAqBM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AAXlF,IAAA,WAAA,GAAA;;AAYW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,SAAS,EAAE,IAAI;AAChB,aAAA;SACF;AACF,IAAA;+GANY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,EAAA,YAAA,EAAA,KAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EATpB;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B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAA3B,2BAA2B,EAAA,YAAA,EAAA,CAXvB,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAEhC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAKd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YATpC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;AACvB,YAAA,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAIvC,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAZvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;AACvB,wBAAA,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,CAAC;AACjD,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACrBD;;AAEG;;;;"}
|
|
@@ -1,45 +1,49 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, NO_ERRORS_SCHEMA, NgModule } from '@angular/core';
|
|
3
|
-
import * as
|
|
3
|
+
import * as i1 from '@ngx-formly/core';
|
|
4
4
|
import { FieldWrapper, FormlyModule } from '@ngx-formly/core';
|
|
5
|
-
import * as i1 from '@angular/common';
|
|
6
5
|
import { CommonModule } from '@angular/common';
|
|
7
6
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
7
|
import { NativeScriptFormsModule } from '@nativescript/angular';
|
|
9
8
|
|
|
10
9
|
class FormlyWrapperFormField extends FieldWrapper {
|
|
11
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
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: `
|
|
13
12
|
<StackLayout class="form">
|
|
14
13
|
<StackLayout class="input-field">
|
|
15
|
-
|
|
14
|
+
@if (props.label && props.hideLabel !== true) {
|
|
15
|
+
<Label class="label" [text]="props.label"></Label>
|
|
16
|
+
}
|
|
16
17
|
<ng-container #fieldComponent></ng-container>
|
|
17
18
|
<StackLayout class="hr-light"></StackLayout>
|
|
18
|
-
|
|
19
|
+
@if (showError) {
|
|
19
20
|
<formly-validation-message #validationMessage [field]="field"></formly-validation-message>
|
|
20
21
|
<Label class="text-danger" [text]="validationMessage.errorMessage"></Label>
|
|
21
|
-
|
|
22
|
+
}
|
|
22
23
|
</StackLayout>
|
|
23
24
|
</StackLayout>
|
|
24
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
25
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1.LegacyFormlyValidationMessage, selector: "formly-validation-message" }] }); }
|
|
25
26
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
|
27
28
|
type: Component,
|
|
28
29
|
args: [{
|
|
29
30
|
selector: 'formly-wrapper-ns-form-field',
|
|
30
31
|
template: `
|
|
31
32
|
<StackLayout class="form">
|
|
32
33
|
<StackLayout class="input-field">
|
|
33
|
-
|
|
34
|
+
@if (props.label && props.hideLabel !== true) {
|
|
35
|
+
<Label class="label" [text]="props.label"></Label>
|
|
36
|
+
}
|
|
34
37
|
<ng-container #fieldComponent></ng-container>
|
|
35
38
|
<StackLayout class="hr-light"></StackLayout>
|
|
36
|
-
|
|
39
|
+
@if (showError) {
|
|
37
40
|
<formly-validation-message #validationMessage [field]="field"></formly-validation-message>
|
|
38
41
|
<Label class="text-danger" [text]="validationMessage.errorMessage"></Label>
|
|
39
|
-
|
|
42
|
+
}
|
|
40
43
|
</StackLayout>
|
|
41
44
|
</StackLayout>
|
|
42
45
|
`,
|
|
46
|
+
standalone: false,
|
|
43
47
|
}]
|
|
44
48
|
}] });
|
|
45
49
|
|
|
@@ -55,11 +59,11 @@ function withFormlyFormField() {
|
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
class FormlyNsFormFieldModule {
|
|
58
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
59
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
60
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
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())] }); }
|
|
61
65
|
}
|
|
62
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsFormFieldModule, decorators: [{
|
|
63
67
|
type: NgModule,
|
|
64
68
|
args: [{
|
|
65
69
|
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.config.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
|
|
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.config.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 @if (props.label && props.hideLabel !== true) {\n <Label class=\"label\" [text]=\"props.label\"></Label>\n }\n <ng-container #fieldComponent></ng-container>\n <StackLayout class=\"hr-light\"></StackLayout>\n @if (showError) {\n <formly-validation-message #validationMessage [field]=\"field\"></formly-validation-message>\n <Label class=\"text-danger\" [text]=\"validationMessage.errorMessage\"></Label>\n }\n </StackLayout>\n </StackLayout>\n `,\n standalone: false,\n})\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\nexport function withFormlyFormField(): ConfigOption {\n return {\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField,\n },\n ],\n };\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';\nimport { withFormlyFormField } from './form-field.config';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [CommonModule, ReactiveFormsModule, NativeScriptFormsModule, FormlyModule.forChild(withFormlyFormField())],\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":";;;;;;;;AA0BM,MAAO,sBAAuB,SAAQ,YAAiD,CAAA;+GAAhF,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA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AA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,uBAAuB,EAAA,OAAA,EAAA,CAHxB,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAGvG,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBALnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,YAAY,CAAC,QAAQ,CAAC,mBAAmB,EAAE,CAAC,CAAC;oBACnH,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -18,31 +18,32 @@ 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: "
|
|
22
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
23
|
-
|
|
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
|
+
@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>
|
|
26
26
|
<Switch col="1" class="switch input" [checked]="formControl.value === option.value" (tap)="tap(option.value)">
|
|
27
27
|
</Switch>
|
|
28
28
|
</GridLayout>
|
|
29
|
-
|
|
30
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
29
|
+
}
|
|
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: "
|
|
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',
|
|
36
36
|
template: `
|
|
37
|
-
|
|
37
|
+
@for (option of props.options | formlySelectOptions: field | async; track option) {
|
|
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)">
|
|
41
41
|
</Switch>
|
|
42
42
|
</GridLayout>
|
|
43
|
-
|
|
43
|
+
}
|
|
44
44
|
`,
|
|
45
45
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
|
+
standalone: false,
|
|
46
47
|
}]
|
|
47
48
|
}] });
|
|
48
49
|
|
|
@@ -59,20 +60,20 @@ function withFormlyFieldRadio() {
|
|
|
59
60
|
}
|
|
60
61
|
|
|
61
62
|
class FormlyNsRadioFieldModule {
|
|
62
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
63
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
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,
|
|
64
65
|
ReactiveFormsModule,
|
|
65
66
|
NativeScriptFormsModule,
|
|
66
67
|
FormlyNsFormFieldModule,
|
|
67
68
|
FormlySelectModule, i1$1.FormlyModule] }); }
|
|
68
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
69
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsRadioFieldModule, imports: [CommonModule,
|
|
69
70
|
ReactiveFormsModule,
|
|
70
71
|
NativeScriptFormsModule,
|
|
71
72
|
FormlyNsFormFieldModule,
|
|
72
73
|
FormlySelectModule,
|
|
73
74
|
FormlyModule.forChild(withFormlyFieldRadio())] }); }
|
|
74
75
|
}
|
|
75
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsRadioFieldModule, decorators: [{
|
|
76
77
|
type: NgModule,
|
|
77
78
|
args: [{
|
|
78
79
|
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.config.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\ntype RadioProps = 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
|
|
1
|
+
{"version":3,"file":"ngx-formly-nativescript-radio.mjs","sources":["../../../../src/ui/nativescript/radio/src/radio.type.ts","../../../../src/ui/nativescript/radio/src/radio.config.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\ntype RadioProps = 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 @for (option of props.options | formlySelectOptions: field | async; track option) {\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 }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\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 { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldRadio } from './radio.type';\n\nexport function withFormlyFieldRadio(): ConfigOption {\n return {\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field'],\n },\n ],\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';\nimport { withFormlyFieldRadio } from './radio.config';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild(withFormlyFieldRadio()),\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":";;;;;;;;;;;;AAwBM,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;QACvD,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC;AAClC,YAAA,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE;QAClC,CAAC,EAAE,GAAG,CAAC;IACT;+GAPW,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,gBAAgB,E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CAAA;AAKT,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAVjC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;YACvB,kBAAkB;AAClB,YAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAIpC,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAbpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,kBAAkB;AAClB,wBAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC;AAC9C,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -21,23 +21,24 @@ 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: "
|
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
26
|
-
|
|
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
|
+
@if (props.options | formlySelectOptions: field | async; as options) {
|
|
27
27
|
<Button (tap)="tap(options)" [text]="selectedItem(options)"></Button>
|
|
28
|
-
|
|
29
|
-
`, isInline: true, dependencies: [{ kind: "
|
|
28
|
+
}
|
|
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: "
|
|
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',
|
|
35
35
|
template: `
|
|
36
|
-
|
|
36
|
+
@if (props.options | formlySelectOptions: field | async; as options) {
|
|
37
37
|
<Button (tap)="tap(options)" [text]="selectedItem(options)"></Button>
|
|
38
|
-
|
|
38
|
+
}
|
|
39
39
|
`,
|
|
40
40
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
41
|
+
standalone: false,
|
|
41
42
|
}]
|
|
42
43
|
}] });
|
|
43
44
|
|
|
@@ -55,20 +56,20 @@ function withFormlyFieldSelect() {
|
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
class FormlyNsSelectFieldModule {
|
|
58
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
59
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
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,
|
|
60
61
|
ReactiveFormsModule,
|
|
61
62
|
NativeScriptFormsModule,
|
|
62
63
|
FormlyNsFormFieldModule,
|
|
63
64
|
FormlySelectModule, i1$1.FormlyModule] }); }
|
|
64
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
65
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsSelectFieldModule, imports: [CommonModule,
|
|
65
66
|
ReactiveFormsModule,
|
|
66
67
|
NativeScriptFormsModule,
|
|
67
68
|
FormlyNsFormFieldModule,
|
|
68
69
|
FormlySelectModule,
|
|
69
70
|
FormlyModule.forChild(withFormlyFieldSelect())] }); }
|
|
70
71
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsSelectFieldModule, decorators: [{
|
|
72
73
|
type: NgModule,
|
|
73
74
|
args: [{
|
|
74
75
|
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.config.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
|
|
1
|
+
{"version":3,"file":"ngx-formly-nativescript-select.mjs","sources":["../../../../src/ui/nativescript/select/src/select.type.ts","../../../../src/ui/nativescript/select/src/select.config.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 @if (props.options | formlySelectOptions: field | async; as options) {\n <Button (tap)=\"tap(options)\" [text]=\"selectedItem(options)\"></Button>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\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 { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldSelect } from './select.type';\n\nexport function withFormlyFieldSelect(): ConfigOption {\n return {\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n { name: 'enum', extends: 'select' },\n ],\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';\nimport { withFormlyFieldSelect } from './select.config';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild(withFormlyFieldSelect()),\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":";;;;;;;;;;;;;AAsBM,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,KAC5F,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,cAAc,CAAC,CAAC,KAAK,CAAC,CACnF;IACH;AAEA,IAAA,YAAY,CAAC,OAAc,EAAA;AACzB,QAAA,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE;YAC1B,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC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AM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,SAAA;KACF;AACH;;MCUa,yBAAyB,CAAA;+GAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAzB,yBAAyB,EAAA,YAAA,EAAA,CAZrB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAE9B,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;YACvB,kBAAkB,EAAAA,IAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAKT,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,YAVlC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;YACvB,kBAAkB;AAClB,YAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAIrC,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAbrC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,kBAAkB;AAClB,wBAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC;AAC/C,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -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: "
|
|
14
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
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: "
|
|
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',
|
|
@@ -41,6 +41,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
41
41
|
</TextField>
|
|
42
42
|
`,
|
|
43
43
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
44
|
+
standalone: false,
|
|
44
45
|
}]
|
|
45
46
|
}] });
|
|
46
47
|
|
|
@@ -77,18 +78,18 @@ function withFormlyFieldInput() {
|
|
|
77
78
|
}
|
|
78
79
|
|
|
79
80
|
class FormlyNsTextFieldModule {
|
|
80
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
81
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
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,
|
|
82
83
|
ReactiveFormsModule,
|
|
83
84
|
NativeScriptFormsModule,
|
|
84
85
|
FormlyNsFormFieldModule, i3.FormlyModule] }); }
|
|
85
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
86
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsTextFieldModule, imports: [CommonModule,
|
|
86
87
|
ReactiveFormsModule,
|
|
87
88
|
NativeScriptFormsModule,
|
|
88
89
|
FormlyNsFormFieldModule,
|
|
89
90
|
FormlyModule.forChild(withFormlyFieldInput())] }); }
|
|
90
91
|
}
|
|
91
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
92
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyNsTextFieldModule, decorators: [{
|
|
92
93
|
type: NgModule,
|
|
93
94
|
args: [{
|
|
94
95
|
declarations: [FormlyFieldInput],
|
|
@@ -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.config.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 { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldInput } from './text-field.type';\n\nexport function withFormlyFieldInput(): ConfigOption {\n return {\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","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';\nimport { withFormlyFieldInput } from './text-field.config';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild(withFormlyFieldInput()),\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":";;;;;;;;;;;
|
|
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.config.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 standalone: false,\n})\nexport class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldInput } from './text-field.type';\n\nexport function withFormlyFieldInput(): ConfigOption {\n return {\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","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';\nimport { withFormlyFieldInput } from './text-field.config';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild(withFormlyFieldInput()),\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":";;;;;;;;;;;AAgC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