@ngx-formly/nativescript 6.3.11 → 7.0.0-alpha.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 +1 -0
- package/checkbox/checkbox.config.d.ts +2 -0
- package/checkbox/checkbox.type.d.ts +1 -1
- package/checkbox/public_api.d.ts +1 -0
- package/esm2022/checkbox/checkbox.config.mjs +17 -0
- package/esm2022/checkbox/checkbox.module.mjs +37 -0
- package/{esm2020 → esm2022}/checkbox/checkbox.type.mjs +9 -9
- package/esm2022/checkbox/public_api.mjs +3 -0
- package/esm2022/form-field/form-field.config.mjs +12 -0
- package/esm2022/form-field/form-field.module.mjs +23 -0
- package/{esm2020 → esm2022}/form-field/form-field.wrapper.mjs +8 -8
- package/esm2022/form-field/public_api.mjs +3 -0
- package/esm2022/lib/ui-nativescipt.mjs +3 -0
- package/esm2022/lib/ui-nativescript.config.mjs +17 -0
- package/esm2022/lib/ui-nativescript.module.mjs +38 -0
- package/esm2022/radio/public_api.mjs +3 -0
- package/esm2022/radio/radio.config.mjs +13 -0
- package/esm2022/radio/radio.module.mjs +41 -0
- package/{esm2020 → esm2022}/radio/radio.type.mjs +8 -8
- package/esm2022/select/public_api.mjs +3 -0
- package/esm2022/select/select.config.mjs +14 -0
- package/esm2022/select/select.module.mjs +41 -0
- package/{esm2020 → esm2022}/select/select.type.mjs +8 -8
- package/esm2022/text-field/public_api.mjs +3 -0
- package/esm2022/text-field/text-field.config.mjs +33 -0
- package/esm2022/text-field/text-field.module.mjs +37 -0
- package/{esm2020 → esm2022}/text-field/text-field.type.mjs +9 -9
- package/esm2022/textarea/public_api.mjs +6 -0
- package/esm2022/textarea/textarea.config.mjs +13 -0
- package/esm2022/textarea/textarea.module.mjs +37 -0
- package/{esm2020 → esm2022}/textarea/textarea.type.mjs +9 -9
- package/fesm2022/ngx-formly-nativescript-checkbox.mjs +91 -0
- package/fesm2022/ngx-formly-nativescript-checkbox.mjs.map +1 -0
- package/fesm2022/ngx-formly-nativescript-form-field.mjs +76 -0
- package/fesm2022/ngx-formly-nativescript-form-field.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-nativescript-radio.mjs +33 -39
- package/fesm2022/ngx-formly-nativescript-radio.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-nativescript-select.mjs +35 -42
- package/fesm2022/ngx-formly-nativescript-select.mjs.map +1 -0
- package/fesm2022/ngx-formly-nativescript-text-field.mjs +111 -0
- package/fesm2022/ngx-formly-nativescript-text-field.mjs.map +1 -0
- package/fesm2022/ngx-formly-nativescript-textarea.mjs +92 -0
- package/fesm2022/ngx-formly-nativescript-textarea.mjs.map +1 -0
- package/fesm2022/ngx-formly-nativescript.mjs +60 -0
- package/fesm2022/ngx-formly-nativescript.mjs.map +1 -0
- package/form-field/form-field.config.d.ts +2 -0
- package/form-field/form-field.wrapper.d.ts +1 -1
- package/form-field/public_api.d.ts +1 -0
- package/lib/ui-nativescipt.d.ts +1 -0
- package/lib/ui-nativescript.config.d.ts +1 -0
- package/package.json +33 -51
- package/radio/public_api.d.ts +1 -0
- package/radio/radio.config.d.ts +2 -0
- package/radio/radio.type.d.ts +2 -3
- package/select/public_api.d.ts +1 -0
- package/select/select.config.d.ts +2 -0
- package/select/select.type.d.ts +1 -1
- package/text-field/public_api.d.ts +1 -0
- package/text-field/text-field.config.d.ts +2 -0
- package/text-field/text-field.type.d.ts +1 -1
- package/textarea/public_api.d.ts +1 -0
- package/textarea/textarea.config.d.ts +2 -0
- package/textarea/textarea.type.d.ts +1 -1
- package/checkbox/package.json +0 -10
- package/esm2020/checkbox/checkbox.module.mjs +0 -62
- package/esm2020/checkbox/public_api.mjs +0 -2
- package/esm2020/form-field/form-field.module.mjs +0 -48
- package/esm2020/form-field/public_api.mjs +0 -2
- package/esm2020/lib/ui-nativescipt.mjs +0 -2
- package/esm2020/lib/ui-nativescript.module.mjs +0 -40
- package/esm2020/radio/public_api.mjs +0 -2
- package/esm2020/radio/radio.module.mjs +0 -58
- package/esm2020/select/public_api.mjs +0 -2
- package/esm2020/select/select.module.mjs +0 -60
- package/esm2020/text-field/public_api.mjs +0 -2
- package/esm2020/text-field/text-field.module.mjs +0 -94
- package/esm2020/textarea/public_api.mjs +0 -5
- package/esm2020/textarea/textarea.module.mjs +0 -54
- package/fesm2015/ngx-formly-nativescript-checkbox.mjs +0 -101
- package/fesm2015/ngx-formly-nativescript-checkbox.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript-form-field.mjs +0 -91
- package/fesm2015/ngx-formly-nativescript-form-field.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript-radio.mjs +0 -102
- package/fesm2015/ngx-formly-nativescript-radio.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript-select.mjs +0 -99
- package/fesm2015/ngx-formly-nativescript-select.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript-text-field.mjs +0 -137
- package/fesm2015/ngx-formly-nativescript-text-field.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript-textarea.mjs +0 -98
- package/fesm2015/ngx-formly-nativescript-textarea.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript.mjs +0 -51
- package/fesm2015/ngx-formly-nativescript.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-checkbox.mjs +0 -101
- package/fesm2020/ngx-formly-nativescript-checkbox.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-form-field.mjs +0 -91
- package/fesm2020/ngx-formly-nativescript-form-field.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-radio.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-select.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-text-field.mjs +0 -137
- package/fesm2020/ngx-formly-nativescript-text-field.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-textarea.mjs +0 -98
- package/fesm2020/ngx-formly-nativescript-textarea.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript.mjs +0 -51
- package/fesm2020/ngx-formly-nativescript.mjs.map +0 -1
- package/form-field/package.json +0 -10
- package/radio/package.json +0 -10
- package/select/package.json +0 -10
- package/text-field/package.json +0 -10
- package/textarea/package.json +0 -10
- /package/checkbox/{ngx-formly-nativescript-checkbox.d.ts → index.d.ts} +0 -0
- /package/{esm2020 → esm2022}/checkbox/ngx-formly-nativescript-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/ngx-formly-nativescript-form-field.mjs +0 -0
- /package/{esm2020 → esm2022}/ngx-formly-nativescript.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/ngx-formly-nativescript-radio.mjs +0 -0
- /package/{esm2020 → esm2022}/select/ngx-formly-nativescript-select.mjs +0 -0
- /package/{esm2020 → esm2022}/text-field/ngx-formly-nativescript-text-field.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/ngx-formly-nativescript-textarea.mjs +0 -0
- /package/form-field/{ngx-formly-nativescript-form-field.d.ts → index.d.ts} +0 -0
- /package/{ngx-formly-nativescript.d.ts → index.d.ts} +0 -0
- /package/radio/{ngx-formly-nativescript-radio.d.ts → index.d.ts} +0 -0
- /package/select/{ngx-formly-nativescript-select.d.ts → index.d.ts} +0 -0
- /package/text-field/{ngx-formly-nativescript-text-field.d.ts → index.d.ts} +0 -0
- /package/textarea/{ngx-formly-nativescript-textarea.d.ts → index.d.ts} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormlyModule } from '@ngx-formly/core';
|
|
4
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { NativeScriptFormsModule } from '@nativescript/angular';
|
|
6
|
+
import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
|
|
7
|
+
import { FormlyFieldInput } from './text-field.type';
|
|
8
|
+
import { withFormlyFieldInput } from './text-field.config';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@ngx-formly/core";
|
|
11
|
+
export class FormlyNsTextFieldModule {
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsTextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
13
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsTextFieldModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
|
14
|
+
ReactiveFormsModule,
|
|
15
|
+
NativeScriptFormsModule,
|
|
16
|
+
FormlyNsFormFieldModule, i1.FormlyModule] }); }
|
|
17
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsTextFieldModule, imports: [CommonModule,
|
|
18
|
+
ReactiveFormsModule,
|
|
19
|
+
NativeScriptFormsModule,
|
|
20
|
+
FormlyNsFormFieldModule,
|
|
21
|
+
FormlyModule.forChild(withFormlyFieldInput())] }); }
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsTextFieldModule, decorators: [{
|
|
24
|
+
type: NgModule,
|
|
25
|
+
args: [{
|
|
26
|
+
declarations: [FormlyFieldInput],
|
|
27
|
+
imports: [
|
|
28
|
+
CommonModule,
|
|
29
|
+
ReactiveFormsModule,
|
|
30
|
+
NativeScriptFormsModule,
|
|
31
|
+
FormlyNsFormFieldModule,
|
|
32
|
+
FormlyModule.forChild(withFormlyFieldInput()),
|
|
33
|
+
],
|
|
34
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
35
|
+
}]
|
|
36
|
+
}] });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4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cmlwdEZvcm1zTW9kdWxlLFxuXG4gICAgRm9ybWx5TnNGb3JtRmllbGRNb2R1bGUsXG4gICAgRm9ybWx5TW9kdWxlLmZvckNoaWxkKHdpdGhGb3JtbHlGaWVsZElucHV0KCkpLFxuICBdLFxuICBzY2hlbWFzOiBbTk9fRVJST1JTX1NDSEVNQV0sXG59KVxuZXhwb3J0IGNsYXNzIEZvcm1seU5zVGV4dEZpZWxkTW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@
|
|
5
|
-
import * as i2 from "@
|
|
6
|
-
import * as i3 from "@
|
|
4
|
+
import * as i1 from "@angular/forms";
|
|
5
|
+
import * as i2 from "@nativescript/angular";
|
|
6
|
+
import * as i3 from "@ngx-formly/core";
|
|
7
7
|
export class FormlyFieldInput extends FieldType {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldInput, selector: "formly-field-ns-input", usesInheritance: true, ngImport: i0, template: `
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormlyFieldInput, selector: "formly-field-ns-input", usesInheritance: true, ngImport: i0, template: `
|
|
11
10
|
<TextField
|
|
12
11
|
class="input"
|
|
13
12
|
[formlyAttributes]="field"
|
|
@@ -18,8 +17,9 @@ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", versi
|
|
|
18
17
|
[keyboardType]="props.keyboardType"
|
|
19
18
|
>
|
|
20
19
|
</TextField>
|
|
21
|
-
`, isInline: true,
|
|
22
|
-
|
|
20
|
+
`, 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.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
24
|
args: [{
|
|
25
25
|
selector: 'formly-field-ns-input',
|
|
@@ -38,4 +38,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
38
38
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
39
39
|
}]
|
|
40
40
|
}] });
|
|
41
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4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/OiBib29sZWFuO1xuICBoaW50Pzogc3RyaW5nO1xuICBrZXlib2FyZFR5cGU/OiBhbnk7XG59XG5cbmV4cG9ydCBpbnRlcmZhY2UgRm9ybWx5SW5wdXRGaWVsZENvbmZpZyBleHRlbmRzIEZvcm1seUZpZWxkQ29uZmlnPElucHV0UHJvcHM+IHtcbiAgdHlwZTogJ2lucHV0JyB8IFR5cGU8Rm9ybWx5RmllbGRJbnB1dD47XG59XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2Zvcm1seS1maWVsZC1ucy1pbnB1dCcsXG4gIHRlbXBsYXRlOiBgXG4gICAgPFRleHRGaWVsZFxuICAgICAgY2xhc3M9XCJpbnB1dFwiXG4gICAgICBbZm9ybWx5QXR0cmlidXRlc109XCJmaWVsZFwiXG4gICAgICBbZm9ybUNvbnRyb2xdPVwiZm9ybUNvbnRyb2xcIlxuICAgICAgW2F1dG9jb3JyZWN0XT1cInByb3BzLmF1dG9jb3JyZWN0XCJcbiAgICAgIFtzZWN1cmVdPVwicHJvcHMuc2VjdXJlXCJcbiAgICAgIFtoaW50XT1cInByb3BzLmhpbnRcIlxuICAgICAgW2tleWJvYXJkVHlwZV09XCJwcm9wcy5rZXlib2FyZFR5cGVcIlxuICAgID5cbiAgICA8L1RleHRGaWVsZD5cbiAgYCxcbiAgY2hhbmdlRGV0ZWN0aW9uOiBDaGFuZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXG59KVxuZXhwb3J0IGNsYXNzIEZvcm1seUZpZWxkSW5wdXQgZXh0ZW5kcyBGaWVsZFR5cGU8RmllbGRUeXBlQ29uZmlnPElucHV0UHJvcHM+PiB7fVxuIl19
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { withFormlyFieldTextArea } from './textarea.config';
|
|
2
|
+
import { FormlyNsTextAreaFieldModule } from './textarea.module';
|
|
3
|
+
/** @deprecated use FormlyFieldDatePicker */
|
|
4
|
+
const FormlyNsTextareaFieldModule = FormlyNsTextAreaFieldModule;
|
|
5
|
+
export { FormlyNsTextAreaFieldModule, FormlyNsTextareaFieldModule };
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy91aS9uYXRpdmVzY3JpcHQvdGV4dGFyZWEvc3JjL3B1YmxpY19hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLHVCQUF1QixFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFDNUQsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sbUJBQW1CLENBQUM7QUFHaEUsNENBQTRDO0FBQzVDLE1BQU0sMkJBQTJCLEdBQUcsMkJBQTJCLENBQUM7QUFFaEUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLDJCQUEyQixFQUFFLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyB3aXRoRm9ybWx5RmllbGRUZXh0QXJlYSB9IGZyb20gJy4vdGV4dGFyZWEuY29uZmlnJztcbmltcG9ydCB7IEZvcm1seU5zVGV4dEFyZWFGaWVsZE1vZHVsZSB9IGZyb20gJy4vdGV4dGFyZWEubW9kdWxlJztcbmV4cG9ydCB7IEZvcm1seVRleHRBcmVhRmllbGRDb25maWcgfSBmcm9tICcuL3RleHRhcmVhLnR5cGUnO1xuXG4vKiogQGRlcHJlY2F0ZWQgdXNlIEZvcm1seUZpZWxkRGF0ZVBpY2tlciAqL1xuY29uc3QgRm9ybWx5TnNUZXh0YXJlYUZpZWxkTW9kdWxlID0gRm9ybWx5TnNUZXh0QXJlYUZpZWxkTW9kdWxlO1xuXG5leHBvcnQgeyBGb3JtbHlOc1RleHRBcmVhRmllbGRNb2R1bGUsIEZvcm1seU5zVGV4dGFyZWFGaWVsZE1vZHVsZSB9O1xuIl19
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FormlyFieldTextArea } from './textarea.type';
|
|
2
|
+
export function withFormlyFieldTextArea() {
|
|
3
|
+
return {
|
|
4
|
+
types: [
|
|
5
|
+
{
|
|
6
|
+
name: 'textarea',
|
|
7
|
+
component: FormlyFieldTextArea,
|
|
8
|
+
wrappers: ['form-field'],
|
|
9
|
+
},
|
|
10
|
+
],
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEuY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3VpL25hdGl2ZXNjcmlwdC90ZXh0YXJlYS9zcmMvdGV4dGFyZWEuY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBRXRELE1BQU0sVUFBVSx1QkFBdUI7SUFDckMsT0FBTztRQUNMLEtBQUssRUFBRTtZQUNMO2dCQUNFLElBQUksRUFBRSxVQUFVO2dCQUNoQixTQUFTLEVBQUUsbUJBQW1CO2dCQUM5QixRQUFRLEVBQUUsQ0FBQyxZQUFZLENBQUM7YUFDekI7U0FDRjtLQUNGLENBQUM7QUFDSixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29uZmlnT3B0aW9uIH0gZnJvbSAnQG5neC1mb3JtbHkvY29yZSc7XG5pbXBvcnQgeyBGb3JtbHlGaWVsZFRleHRBcmVhIH0gZnJvbSAnLi90ZXh0YXJlYS50eXBlJztcblxuZXhwb3J0IGZ1bmN0aW9uIHdpdGhGb3JtbHlGaWVsZFRleHRBcmVhKCk6IENvbmZpZ09wdGlvbiB7XG4gIHJldHVybiB7XG4gICAgdHlwZXM6IFtcbiAgICAgIHtcbiAgICAgICAgbmFtZTogJ3RleHRhcmVhJyxcbiAgICAgICAgY29tcG9uZW50OiBGb3JtbHlGaWVsZFRleHRBcmVhLFxuICAgICAgICB3cmFwcGVyczogWydmb3JtLWZpZWxkJ10sXG4gICAgICB9LFxuICAgIF0sXG4gIH07XG59XG4iXX0=
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
import { FormlyModule } from '@ngx-formly/core';
|
|
4
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
5
|
+
import { NativeScriptFormsModule } from '@nativescript/angular';
|
|
6
|
+
import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
|
|
7
|
+
import { FormlyFieldTextArea } from './textarea.type';
|
|
8
|
+
import { withFormlyFieldTextArea } from './textarea.config';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
import * as i1 from "@ngx-formly/core";
|
|
11
|
+
export class FormlyNsTextAreaFieldModule {
|
|
12
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsTextAreaFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
13
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsTextAreaFieldModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
|
|
14
|
+
ReactiveFormsModule,
|
|
15
|
+
NativeScriptFormsModule,
|
|
16
|
+
FormlyNsFormFieldModule, i1.FormlyModule] }); }
|
|
17
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsTextAreaFieldModule, imports: [CommonModule,
|
|
18
|
+
ReactiveFormsModule,
|
|
19
|
+
NativeScriptFormsModule,
|
|
20
|
+
FormlyNsFormFieldModule,
|
|
21
|
+
FormlyModule.forChild(withFormlyFieldTextArea())] }); }
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsTextAreaFieldModule, decorators: [{
|
|
24
|
+
type: NgModule,
|
|
25
|
+
args: [{
|
|
26
|
+
declarations: [FormlyFieldTextArea],
|
|
27
|
+
imports: [
|
|
28
|
+
CommonModule,
|
|
29
|
+
ReactiveFormsModule,
|
|
30
|
+
NativeScriptFormsModule,
|
|
31
|
+
FormlyNsFormFieldModule,
|
|
32
|
+
FormlyModule.forChild(withFormlyFieldTextArea()),
|
|
33
|
+
],
|
|
34
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
35
|
+
}]
|
|
36
|
+
}] });
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3VpL25hdGl2ZXNjcmlwdC90ZXh0YXJlYS9zcmMvdGV4dGFyZWEubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0QsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUNoRCxPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQztBQUNyRCxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSx1QkFBdUIsQ0FBQztBQUVoRSxPQUFPLEVBQUUsdUJBQXVCLEVBQUUsTUFBTSxxQ0FBcUMsQ0FBQztBQUM5RSxPQUFPLEVB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Nb2R1bGUgfSBmcm9tICdAbmF0aXZlc2NyaXB0L2FuZ3VsYXInO1xuXG5pbXBvcnQgeyBGb3JtbHlOc0Zvcm1GaWVsZE1vZHVsZSB9IGZyb20gJ0BuZ3gtZm9ybWx5L25hdGl2ZXNjcmlwdC9mb3JtLWZpZWxkJztcbmltcG9ydCB7IEZvcm1seUZpZWxkVGV4dEFyZWEgfSBmcm9tICcuL3RleHRhcmVhLnR5cGUnO1xuaW1wb3J0IHsgd2l0aEZvcm1seUZpZWxkVGV4dEFyZWEgfSBmcm9tICcuL3RleHRhcmVhLmNvbmZpZyc7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0Zvcm1seUZpZWxkVGV4dEFyZWFdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIFJlYWN0aXZlRm9ybXNNb2R1bGUsXG4gICAgTmF0aXZlU2NyaXB0Rm9ybXNNb2R1bGUsXG5cbiAgICBGb3JtbHlOc0Zvcm1GaWVsZE1vZHVsZSxcbiAgICBGb3JtbHlNb2R1bGUuZm9yQ2hpbGQod2l0aEZvcm1seUZpZWxkVGV4dEFyZWEoKSksXG4gIF0sXG4gIHNjaGVtYXM6IFtOT19FUlJPUlNfU0NIRU1BXSxcbn0pXG5leHBvcnQgY2xhc3MgRm9ybWx5TnNUZXh0QXJlYUZpZWxkTW9kdWxlIHt9XG4iXX0=
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { Component, ChangeDetectionStrategy } from '@angular/core';
|
|
2
2
|
import { FieldType } from '@ngx-formly/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@
|
|
5
|
-
import * as i2 from "@
|
|
6
|
-
import * as i3 from "@
|
|
4
|
+
import * as i1 from "@angular/forms";
|
|
5
|
+
import * as i2 from "@nativescript/angular";
|
|
6
|
+
import * as i3 from "@ngx-formly/core";
|
|
7
7
|
export class FormlyFieldTextArea extends FieldType {
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
FormlyFieldTextArea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldTextArea, selector: "formly-field-ns-textarea", usesInheritance: true, ngImport: i0, template: `
|
|
8
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
9
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormlyFieldTextArea, selector: "formly-field-ns-textarea", usesInheritance: true, ngImport: i0, template: `
|
|
11
10
|
<TextView
|
|
12
11
|
class="input"
|
|
13
12
|
[formlyAttributes]="field"
|
|
@@ -17,8 +16,9 @@ FormlyFieldTextArea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", ve
|
|
|
17
16
|
[keyboardType]="props.keyboardType"
|
|
18
17
|
>
|
|
19
18
|
</TextView>
|
|
20
|
-
`, isInline: true,
|
|
21
|
-
|
|
19
|
+
`, 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.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
20
|
+
}
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
|
|
22
22
|
type: Component,
|
|
23
23
|
args: [{
|
|
24
24
|
selector: 'formly-field-ns-textarea',
|
|
@@ -36,4 +36,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
36
36
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
37
37
|
}]
|
|
38
38
|
}] });
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
39
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dGFyZWEudHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy91aS9uYXRpdmVzY3JpcHQvdGV4dGFyZWEvc3JjL3RleHRhcmVhLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBUSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFzQyxNQUFNLGtCQUFrQixDQUFDOzs7OztBQTRCakYsTUFBTSxPQUFPLG1CQUFvQixTQUFRLFNBQXlDOytHQUFyRSxtQkFBbUI7bUdBQW5CLG1CQUFtQix1RkFicEI7Ozs7Ozs7Ozs7R0FVVDs7NEZBR1UsbUJBQW1CO2tCQWYvQixTQUFTO21CQUFDO29CQUNULFFBQVEsRUFBRSwwQkFBMEI7b0JBQ3BDLFFBQVEsRUFBRTs7Ozs7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29ycmVjdFwiXG4gICAgICBba2V5Ym9hcmRUeXBlXT1cInByb3BzLmtleWJvYXJkVHlwZVwiXG4gICAgPlxuICAgIDwvVGV4dFZpZXc+XG4gIGAsXG4gIGNoYW5nZURldGVjdGlvbjogQ2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3kuT25QdXNoLFxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlGaWVsZFRleHRBcmVhIGV4dGVuZHMgRmllbGRUeXBlPEZpZWxkVHlwZUNvbmZpZzxUZXh0QXJlYVByb3BzPj4ge31cbiJdfQ==
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
+
import * as i3 from '@ngx-formly/core';
|
|
4
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
5
|
+
import * as i1 from '@angular/forms';
|
|
6
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
7
|
+
import * as i2 from '@nativescript/angular';
|
|
8
|
+
import { NativeScriptFormsModule } from '@nativescript/angular';
|
|
9
|
+
import { CommonModule } from '@angular/common';
|
|
10
|
+
import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
|
|
11
|
+
|
|
12
|
+
class FormlyFieldCheckbox extends FieldType {
|
|
13
|
+
constructor() {
|
|
14
|
+
super(...arguments);
|
|
15
|
+
this.defaultOptions = {
|
|
16
|
+
props: {
|
|
17
|
+
hideLabel: true,
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormlyFieldCheckbox, selector: "formly-field-ns-checkbox", usesInheritance: true, ngImport: i0, template: `
|
|
23
|
+
<GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
|
|
24
|
+
<Label class="label" [text]="props.label"></Label>
|
|
25
|
+
<Switch class="switch input" [formlyAttributes]="field" [formControl]="formControl" col="1"></Switch>
|
|
26
|
+
</GridLayout>
|
|
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.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
28
|
+
}
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
|
|
30
|
+
type: Component,
|
|
31
|
+
args: [{
|
|
32
|
+
selector: 'formly-field-ns-checkbox',
|
|
33
|
+
template: `
|
|
34
|
+
<GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
|
|
35
|
+
<Label class="label" [text]="props.label"></Label>
|
|
36
|
+
<Switch class="switch input" [formlyAttributes]="field" [formControl]="formControl" col="1"></Switch>
|
|
37
|
+
</GridLayout>
|
|
38
|
+
`,
|
|
39
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40
|
+
}]
|
|
41
|
+
}] });
|
|
42
|
+
|
|
43
|
+
function withFormlyFieldCheckbox() {
|
|
44
|
+
return {
|
|
45
|
+
types: [
|
|
46
|
+
{
|
|
47
|
+
name: 'checkbox',
|
|
48
|
+
component: FormlyFieldCheckbox,
|
|
49
|
+
wrappers: ['form-field'],
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: 'boolean',
|
|
53
|
+
extends: 'checkbox',
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
class FormlyNsCheckboxFieldModule {
|
|
60
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsCheckboxFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
61
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsCheckboxFieldModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
|
|
62
|
+
ReactiveFormsModule,
|
|
63
|
+
NativeScriptFormsModule,
|
|
64
|
+
FormlyNsFormFieldModule, i3.FormlyModule] }); }
|
|
65
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsCheckboxFieldModule, imports: [CommonModule,
|
|
66
|
+
ReactiveFormsModule,
|
|
67
|
+
NativeScriptFormsModule,
|
|
68
|
+
FormlyNsFormFieldModule,
|
|
69
|
+
FormlyModule.forChild(withFormlyFieldCheckbox())] }); }
|
|
70
|
+
}
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsCheckboxFieldModule, decorators: [{
|
|
72
|
+
type: NgModule,
|
|
73
|
+
args: [{
|
|
74
|
+
declarations: [FormlyFieldCheckbox],
|
|
75
|
+
imports: [
|
|
76
|
+
CommonModule,
|
|
77
|
+
ReactiveFormsModule,
|
|
78
|
+
NativeScriptFormsModule,
|
|
79
|
+
FormlyNsFormFieldModule,
|
|
80
|
+
FormlyModule.forChild(withFormlyFieldCheckbox()),
|
|
81
|
+
],
|
|
82
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
83
|
+
}]
|
|
84
|
+
}] });
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Generated bundle index. Do not edit.
|
|
88
|
+
*/
|
|
89
|
+
|
|
90
|
+
export { FormlyNsCheckboxFieldModule, withFormlyFieldCheckbox };
|
|
91
|
+
//# sourceMappingURL=ngx-formly-nativescript-checkbox.mjs.map
|
|
@@ -0,0 +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":";;;;;;;;;;;AAoBM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AAVlF,IAAA,WAAA,GAAA;;AAWW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,SAAS,EAAE,IAAI;AAChB,aAAA;SACF,CAAC;AACH,KAAA;+GANY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,EARpB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;AAKT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EA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A,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;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,EAAA;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,EAAA;;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,CAAA;;;ACrBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
+
import * as i2 from '@ngx-formly/core';
|
|
4
|
+
import { FieldWrapper, FormlyModule } from '@ngx-formly/core';
|
|
5
|
+
import * as i1 from '@angular/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import { NativeScriptFormsModule } from '@nativescript/angular';
|
|
9
|
+
|
|
10
|
+
class FormlyWrapperFormField extends FieldWrapper {
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
12
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormlyWrapperFormField, selector: "formly-wrapper-ns-form-field", usesInheritance: true, ngImport: i0, template: `
|
|
13
|
+
<StackLayout class="form">
|
|
14
|
+
<StackLayout class="input-field">
|
|
15
|
+
<Label *ngIf="props.label && props.hideLabel !== true" class="label" [text]="props.label"></Label>
|
|
16
|
+
<ng-container #fieldComponent></ng-container>
|
|
17
|
+
<StackLayout class="hr-light"></StackLayout>
|
|
18
|
+
<ng-container *ngIf="showError">
|
|
19
|
+
<formly-validation-message #validationMessage [field]="field"></formly-validation-message>
|
|
20
|
+
<Label class="text-danger" [text]="validationMessage.errorMessage"></Label>
|
|
21
|
+
</ng-container>
|
|
22
|
+
</StackLayout>
|
|
23
|
+
</StackLayout>
|
|
24
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }] }); }
|
|
25
|
+
}
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{
|
|
29
|
+
selector: 'formly-wrapper-ns-form-field',
|
|
30
|
+
template: `
|
|
31
|
+
<StackLayout class="form">
|
|
32
|
+
<StackLayout class="input-field">
|
|
33
|
+
<Label *ngIf="props.label && props.hideLabel !== true" class="label" [text]="props.label"></Label>
|
|
34
|
+
<ng-container #fieldComponent></ng-container>
|
|
35
|
+
<StackLayout class="hr-light"></StackLayout>
|
|
36
|
+
<ng-container *ngIf="showError">
|
|
37
|
+
<formly-validation-message #validationMessage [field]="field"></formly-validation-message>
|
|
38
|
+
<Label class="text-danger" [text]="validationMessage.errorMessage"></Label>
|
|
39
|
+
</ng-container>
|
|
40
|
+
</StackLayout>
|
|
41
|
+
</StackLayout>
|
|
42
|
+
`,
|
|
43
|
+
}]
|
|
44
|
+
}] });
|
|
45
|
+
|
|
46
|
+
function withFormlyFormField() {
|
|
47
|
+
return {
|
|
48
|
+
wrappers: [
|
|
49
|
+
{
|
|
50
|
+
name: 'form-field',
|
|
51
|
+
component: FormlyWrapperFormField,
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
class FormlyNsFormFieldModule {
|
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
59
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule, ReactiveFormsModule, NativeScriptFormsModule, i2.FormlyModule] }); }
|
|
60
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsFormFieldModule, imports: [CommonModule, ReactiveFormsModule, NativeScriptFormsModule, FormlyModule.forChild(withFormlyFormField())] }); }
|
|
61
|
+
}
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsFormFieldModule, decorators: [{
|
|
63
|
+
type: NgModule,
|
|
64
|
+
args: [{
|
|
65
|
+
declarations: [FormlyWrapperFormField],
|
|
66
|
+
imports: [CommonModule, ReactiveFormsModule, NativeScriptFormsModule, FormlyModule.forChild(withFormlyFormField())],
|
|
67
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
68
|
+
}]
|
|
69
|
+
}] });
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Generated bundle index. Do not edit.
|
|
73
|
+
*/
|
|
74
|
+
|
|
75
|
+
export { FormlyNsFormFieldModule, withFormlyFormField };
|
|
76
|
+
//# sourceMappingURL=ngx-formly-nativescript-form-field.mjs.map
|
|
@@ -0,0 +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 <Label *ngIf=\"props.label && props.hideLabel !== true\" class=\"label\" [text]=\"props.label\"></Label>\n <ng-container #fieldComponent></ng-container>\n <StackLayout class=\"hr-light\"></StackLayout>\n <ng-container *ngIf=\"showError\">\n <formly-validation-message #validationMessage [field]=\"field\"></formly-validation-message>\n <Label class=\"text-danger\" [text]=\"validationMessage.errorMessage\"></Label>\n </ng-container>\n </StackLayout>\n </StackLayout>\n `,\n})\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {}\n","import { 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":["i1"],"mappings":";;;;;;;;;AAuBM,MAAO,sBAAuB,SAAQ,YAAiD,CAAA;+GAAhF,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,sBAAsB,EAdvB,QAAA,EAAA,8BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;AAYT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,IAAA,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,UAAA,EAAA,UAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,wBAAA,EAAA,QAAA,EAAA,2BAAA,EAAA,MAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CA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A,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,CAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/common';
|
|
4
|
-
import { CommonModule } from '@angular/common';
|
|
5
3
|
import * as i1$1 from '@ngx-formly/core';
|
|
6
4
|
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
5
|
+
import * as i1 from '@angular/common';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
7
|
import * as i2 from '@ngx-formly/core/select';
|
|
8
8
|
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
9
9
|
import { ReactiveFormsModule } from '@angular/forms';
|
|
@@ -18,23 +18,23 @@ class FormlyFieldRadio extends FieldType {
|
|
|
18
18
|
this.formControl.markAsTouched();
|
|
19
19
|
}, 100);
|
|
20
20
|
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<ng-container *ngFor="let option of props.options | formlySelectOptions : field | async">
|
|
21
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
22
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: FormlyFieldRadio, selector: "formly-field-ns-radio", usesInheritance: true, ngImport: i0, template: `
|
|
23
|
+
<ng-container *ngFor="let option of props.options | formlySelectOptions: field | async">
|
|
25
24
|
<GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
|
|
26
25
|
<Label class="label" [text]="option.label"></Label>
|
|
27
26
|
<Switch col="1" class="switch input" [checked]="formControl.value === option.value" (tap)="tap(option.value)">
|
|
28
27
|
</Switch>
|
|
29
28
|
</GridLayout>
|
|
30
29
|
</ng-container>
|
|
31
|
-
`, isInline: true,
|
|
32
|
-
|
|
30
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31
|
+
}
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyFieldRadio, decorators: [{
|
|
33
33
|
type: Component,
|
|
34
34
|
args: [{
|
|
35
35
|
selector: 'formly-field-ns-radio',
|
|
36
36
|
template: `
|
|
37
|
-
<ng-container *ngFor="let option of props.options | formlySelectOptions
|
|
37
|
+
<ng-container *ngFor="let option of props.options | formlySelectOptions: field | async">
|
|
38
38
|
<GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
|
|
39
39
|
<Label class="label" [text]="option.label"></Label>
|
|
40
40
|
<Switch col="1" class="switch input" [checked]="formControl.value === option.value" (tap)="tap(option.value)">
|
|
@@ -46,31 +46,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
46
46
|
}]
|
|
47
47
|
}] });
|
|
48
48
|
|
|
49
|
-
|
|
49
|
+
function withFormlyFieldRadio() {
|
|
50
|
+
return {
|
|
51
|
+
types: [
|
|
52
|
+
{
|
|
53
|
+
name: 'radio',
|
|
54
|
+
component: FormlyFieldRadio,
|
|
55
|
+
wrappers: ['form-field'],
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
};
|
|
50
59
|
}
|
|
51
|
-
|
|
52
|
-
FormlyNsRadioFieldModule
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
60
|
+
|
|
61
|
+
class FormlyNsRadioFieldModule {
|
|
62
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsRadioFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
63
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsRadioFieldModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
|
|
64
|
+
ReactiveFormsModule,
|
|
65
|
+
NativeScriptFormsModule,
|
|
66
|
+
FormlyNsFormFieldModule,
|
|
67
|
+
FormlySelectModule, i1$1.FormlyModule] }); }
|
|
68
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsRadioFieldModule, imports: [CommonModule,
|
|
59
69
|
ReactiveFormsModule,
|
|
60
70
|
NativeScriptFormsModule,
|
|
61
71
|
FormlyNsFormFieldModule,
|
|
62
72
|
FormlySelectModule,
|
|
63
|
-
FormlyModule.forChild(
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
name: 'radio',
|
|
67
|
-
component: FormlyFieldRadio,
|
|
68
|
-
wrappers: ['form-field'],
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
}),
|
|
72
|
-
]] });
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsRadioFieldModule, decorators: [{
|
|
73
|
+
FormlyModule.forChild(withFormlyFieldRadio())] }); }
|
|
74
|
+
}
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FormlyNsRadioFieldModule, decorators: [{
|
|
74
76
|
type: NgModule,
|
|
75
77
|
args: [{
|
|
76
78
|
declarations: [FormlyFieldRadio],
|
|
@@ -80,15 +82,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
80
82
|
NativeScriptFormsModule,
|
|
81
83
|
FormlyNsFormFieldModule,
|
|
82
84
|
FormlySelectModule,
|
|
83
|
-
FormlyModule.forChild(
|
|
84
|
-
types: [
|
|
85
|
-
{
|
|
86
|
-
name: 'radio',
|
|
87
|
-
component: FormlyFieldRadio,
|
|
88
|
-
wrappers: ['form-field'],
|
|
89
|
-
},
|
|
90
|
-
],
|
|
91
|
-
}),
|
|
85
|
+
FormlyModule.forChild(withFormlyFieldRadio()),
|
|
92
86
|
],
|
|
93
87
|
schemas: [NO_ERRORS_SCHEMA],
|
|
94
88
|
}]
|
|
@@ -98,5 +92,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImpo
|
|
|
98
92
|
* Generated bundle index. Do not edit.
|
|
99
93
|
*/
|
|
100
94
|
|
|
101
|
-
export { FormlyNsRadioFieldModule };
|
|
95
|
+
export { FormlyNsRadioFieldModule, withFormlyFieldRadio };
|
|
102
96
|
//# sourceMappingURL=ngx-formly-nativescript-radio.mjs.map
|
|
@@ -0,0 +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 <ng-container *ngFor=\"let option of props.options | formlySelectOptions: field | async\">\n <GridLayout class=\"input-field input-sides\" rows=\"auto, auto\" columns=\"*,*\">\n <Label class=\"label\" [text]=\"option.label\"></Label>\n <Switch col=\"1\" class=\"switch input\" [checked]=\"formControl.value === option.value\" (tap)=\"tap(option.value)\">\n </Switch>\n </GridLayout>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\n tap(id: any) {\n const value = this.formControl.value === id ? null : id;\n setTimeout(() => {\n this.formControl.patchValue(value);\n this.formControl.markAsTouched();\n }, 100);\n }\n}\n","import { 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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