@ngx-formly/nativescript 6.3.12 → 7.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/esm2022/select/select.type.mjs +36 -0
- 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 +34 -40
- package/fesm2022/ngx-formly-nativescript-radio.mjs.map +1 -0
- package/fesm2022/ngx-formly-nativescript-select.mjs +92 -0
- 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/select/select.type.mjs +0 -36
- 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 +0 -99
- 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,92 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, NO_ERRORS_SCHEMA, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1$1 from '@ngx-formly/core';
|
|
4
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
5
|
+
import { action } from '@nativescript/core/ui/dialogs';
|
|
6
|
+
import * as i1 from '@angular/common';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import * as i2 from '@ngx-formly/core/select';
|
|
9
|
+
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
10
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
11
|
+
import { NativeScriptFormsModule } from '@nativescript/angular';
|
|
12
|
+
import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
|
|
13
|
+
|
|
14
|
+
class FormlyFieldSelect extends FieldType {
|
|
15
|
+
tap(options) {
|
|
16
|
+
action({ title: this.props.label, actions: options.map((o) => o.label) }).then((selectedAction) => this.formControl.patchValue(options.find((o) => o.label === selectedAction).value));
|
|
17
|
+
}
|
|
18
|
+
selectedItem(options) {
|
|
19
|
+
if (this.formControl.value) {
|
|
20
|
+
return options.find((o) => o.value === this.formControl.value).label;
|
|
21
|
+
}
|
|
22
|
+
return this.props.placeholder;
|
|
23
|
+
}
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyFieldSelect, selector: "formly-field-ns-select", usesInheritance: true, ngImport: i0, template: `
|
|
26
|
+
<ng-container *ngIf="props.options | formlySelectOptions: field | async as options">
|
|
27
|
+
<Button (tap)="tap(options)" [text]="selectedItem(options)"></Button>
|
|
28
|
+
</ng-container>
|
|
29
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: 'formly-field-ns-select',
|
|
35
|
+
template: `
|
|
36
|
+
<ng-container *ngIf="props.options | formlySelectOptions: field | async as options">
|
|
37
|
+
<Button (tap)="tap(options)" [text]="selectedItem(options)"></Button>
|
|
38
|
+
</ng-container>
|
|
39
|
+
`,
|
|
40
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
41
|
+
}]
|
|
42
|
+
}] });
|
|
43
|
+
|
|
44
|
+
function withFormlyFieldSelect() {
|
|
45
|
+
return {
|
|
46
|
+
types: [
|
|
47
|
+
{
|
|
48
|
+
name: 'select',
|
|
49
|
+
component: FormlyFieldSelect,
|
|
50
|
+
wrappers: ['form-field'],
|
|
51
|
+
},
|
|
52
|
+
{ name: 'enum', extends: 'select' },
|
|
53
|
+
],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
class FormlyNsSelectFieldModule {
|
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsSelectFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
59
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsSelectFieldModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
|
|
60
|
+
ReactiveFormsModule,
|
|
61
|
+
NativeScriptFormsModule,
|
|
62
|
+
FormlyNsFormFieldModule,
|
|
63
|
+
FormlySelectModule, i1$1.FormlyModule] }); }
|
|
64
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsSelectFieldModule, imports: [CommonModule,
|
|
65
|
+
ReactiveFormsModule,
|
|
66
|
+
NativeScriptFormsModule,
|
|
67
|
+
FormlyNsFormFieldModule,
|
|
68
|
+
FormlySelectModule,
|
|
69
|
+
FormlyModule.forChild(withFormlyFieldSelect())] }); }
|
|
70
|
+
}
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsSelectFieldModule, decorators: [{
|
|
72
|
+
type: NgModule,
|
|
73
|
+
args: [{
|
|
74
|
+
declarations: [FormlyFieldSelect],
|
|
75
|
+
imports: [
|
|
76
|
+
CommonModule,
|
|
77
|
+
ReactiveFormsModule,
|
|
78
|
+
NativeScriptFormsModule,
|
|
79
|
+
FormlyNsFormFieldModule,
|
|
80
|
+
FormlySelectModule,
|
|
81
|
+
FormlyModule.forChild(withFormlyFieldSelect()),
|
|
82
|
+
],
|
|
83
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
84
|
+
}]
|
|
85
|
+
}] });
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Generated bundle index. Do not edit.
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
export { FormlyNsSelectFieldModule, withFormlyFieldSelect };
|
|
92
|
+
//# sourceMappingURL=ngx-formly-nativescript-select.mjs.map
|
|
@@ -0,0 +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 <ng-container *ngIf=\"props.options | formlySelectOptions: field | async as options\">\n <Button (tap)=\"tap(options)\" [text]=\"selectedItem(options)\"></Button>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {\n tap(options: any[]) {\n action({ title: this.props.label, actions: options.map((o) => o.label) }).then((selectedAction) =>\n this.formControl.patchValue(options.find((o) => o.label === selectedAction).value),\n );\n }\n\n selectedItem(options: any[]) {\n if (this.formControl.value) {\n return options.find((o) => o.value === this.formControl.value).label;\n }\n\n return this.props.placeholder;\n }\n}\n","import { 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":";;;;;;;;;;;;;AAqBM,MAAO,iBAAkB,S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,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;;;;"}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, NO_ERRORS_SCHEMA, NgModule } 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 FormlyFieldInput extends FieldType {
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyFieldInput, selector: "formly-field-ns-input", usesInheritance: true, ngImport: i0, template: `
|
|
15
|
+
<TextField
|
|
16
|
+
class="input"
|
|
17
|
+
[formlyAttributes]="field"
|
|
18
|
+
[formControl]="formControl"
|
|
19
|
+
[autocorrect]="props.autocorrect"
|
|
20
|
+
[secure]="props.secure"
|
|
21
|
+
[hint]="props.hint"
|
|
22
|
+
[keyboardType]="props.keyboardType"
|
|
23
|
+
>
|
|
24
|
+
</TextField>
|
|
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.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
26
|
+
}
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldInput, decorators: [{
|
|
28
|
+
type: Component,
|
|
29
|
+
args: [{
|
|
30
|
+
selector: 'formly-field-ns-input',
|
|
31
|
+
template: `
|
|
32
|
+
<TextField
|
|
33
|
+
class="input"
|
|
34
|
+
[formlyAttributes]="field"
|
|
35
|
+
[formControl]="formControl"
|
|
36
|
+
[autocorrect]="props.autocorrect"
|
|
37
|
+
[secure]="props.secure"
|
|
38
|
+
[hint]="props.hint"
|
|
39
|
+
[keyboardType]="props.keyboardType"
|
|
40
|
+
>
|
|
41
|
+
</TextField>
|
|
42
|
+
`,
|
|
43
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
44
|
+
}]
|
|
45
|
+
}] });
|
|
46
|
+
|
|
47
|
+
function withFormlyFieldInput() {
|
|
48
|
+
return {
|
|
49
|
+
types: [
|
|
50
|
+
{
|
|
51
|
+
name: 'text-field',
|
|
52
|
+
component: FormlyFieldInput,
|
|
53
|
+
wrappers: ['form-field'],
|
|
54
|
+
},
|
|
55
|
+
{ name: 'input', extends: 'text-field' },
|
|
56
|
+
{ name: 'string', extends: 'input' },
|
|
57
|
+
{
|
|
58
|
+
name: 'number',
|
|
59
|
+
extends: 'input',
|
|
60
|
+
defaultOptions: {
|
|
61
|
+
props: {
|
|
62
|
+
type: 'number',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: 'integer',
|
|
68
|
+
extends: 'input',
|
|
69
|
+
defaultOptions: {
|
|
70
|
+
props: {
|
|
71
|
+
type: 'number',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
],
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
class FormlyNsTextFieldModule {
|
|
80
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsTextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
81
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsTextFieldModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
|
82
|
+
ReactiveFormsModule,
|
|
83
|
+
NativeScriptFormsModule,
|
|
84
|
+
FormlyNsFormFieldModule, i3.FormlyModule] }); }
|
|
85
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsTextFieldModule, imports: [CommonModule,
|
|
86
|
+
ReactiveFormsModule,
|
|
87
|
+
NativeScriptFormsModule,
|
|
88
|
+
FormlyNsFormFieldModule,
|
|
89
|
+
FormlyModule.forChild(withFormlyFieldInput())] }); }
|
|
90
|
+
}
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsTextFieldModule, decorators: [{
|
|
92
|
+
type: NgModule,
|
|
93
|
+
args: [{
|
|
94
|
+
declarations: [FormlyFieldInput],
|
|
95
|
+
imports: [
|
|
96
|
+
CommonModule,
|
|
97
|
+
ReactiveFormsModule,
|
|
98
|
+
NativeScriptFormsModule,
|
|
99
|
+
FormlyNsFormFieldModule,
|
|
100
|
+
FormlyModule.forChild(withFormlyFieldInput()),
|
|
101
|
+
],
|
|
102
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
103
|
+
}]
|
|
104
|
+
}] });
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Generated bundle index. Do not edit.
|
|
108
|
+
*/
|
|
109
|
+
|
|
110
|
+
export { FormlyNsTextFieldModule, withFormlyFieldInput };
|
|
111
|
+
//# sourceMappingURL=ngx-formly-nativescript-text-field.mjs.map
|
|
@@ -0,0 +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":";;;;;;;;;;;AA+BM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;+GAA/D,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,EAdjB,QAAA,EAAA,uBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;;;;;;;;AAWT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,2zBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,kBAAA,EAAA,IAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CA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vB,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,uBAAuB,YAThC,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;AACvB,YAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAIpC,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAZnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;AAChC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;AACvB,wBAAA,YAAY,CAAC,QAAQ,CAAC,oBAAoB,EAAE,CAAC;AAC9C,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;AAC5B,iBAAA;;;ACrBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, NO_ERRORS_SCHEMA, NgModule } 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 FormlyFieldTextArea extends FieldType {
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
14
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyFieldTextArea, selector: "formly-field-ns-textarea", usesInheritance: true, ngImport: i0, template: `
|
|
15
|
+
<TextView
|
|
16
|
+
class="input"
|
|
17
|
+
[formlyAttributes]="field"
|
|
18
|
+
[formControl]="formControl"
|
|
19
|
+
[hint]="props.hint"
|
|
20
|
+
[autocorrect]="props.autocorrect"
|
|
21
|
+
[keyboardType]="props.keyboardType"
|
|
22
|
+
>
|
|
23
|
+
</TextView>
|
|
24
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.TextValueAccessor, selector: "TextField[ngModel],TextField[formControlName],TextField[formControl],textField[ngModel],textField[formControlName],textField[formControl],textfield[ngModel],textfield[formControlName],textfield[formControl],text-field[ngModel],text-field[formControlName],text-field[formControl],TextView[ngModel],TextView[formControlName],TextView[formControl],textView[ngModel],textView[formControlName],textView[formControl],textview[ngModel],textview[formControlName],textview[formControl],text-view[ngModel],text-view[formControlName],text-view[formControl],SearchBar[ngModel],SearchBar[formControlName],SearchBar[formControl],searchBar[ngModel],searchBar[formControlName],searchBar[formControl],searchbar[ngModel],searchbar[formControlName],searchbar[formControl],search-bar[ngModel], search-bar[formControlName],search-bar[formControl]" }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
25
|
+
}
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
|
|
27
|
+
type: Component,
|
|
28
|
+
args: [{
|
|
29
|
+
selector: 'formly-field-ns-textarea',
|
|
30
|
+
template: `
|
|
31
|
+
<TextView
|
|
32
|
+
class="input"
|
|
33
|
+
[formlyAttributes]="field"
|
|
34
|
+
[formControl]="formControl"
|
|
35
|
+
[hint]="props.hint"
|
|
36
|
+
[autocorrect]="props.autocorrect"
|
|
37
|
+
[keyboardType]="props.keyboardType"
|
|
38
|
+
>
|
|
39
|
+
</TextView>
|
|
40
|
+
`,
|
|
41
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
42
|
+
}]
|
|
43
|
+
}] });
|
|
44
|
+
|
|
45
|
+
function withFormlyFieldTextArea() {
|
|
46
|
+
return {
|
|
47
|
+
types: [
|
|
48
|
+
{
|
|
49
|
+
name: 'textarea',
|
|
50
|
+
component: FormlyFieldTextArea,
|
|
51
|
+
wrappers: ['form-field'],
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
class FormlyNsTextAreaFieldModule {
|
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsTextAreaFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
59
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsTextAreaFieldModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
|
|
60
|
+
ReactiveFormsModule,
|
|
61
|
+
NativeScriptFormsModule,
|
|
62
|
+
FormlyNsFormFieldModule, i3.FormlyModule] }); }
|
|
63
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsTextAreaFieldModule, imports: [CommonModule,
|
|
64
|
+
ReactiveFormsModule,
|
|
65
|
+
NativeScriptFormsModule,
|
|
66
|
+
FormlyNsFormFieldModule,
|
|
67
|
+
FormlyModule.forChild(withFormlyFieldTextArea())] }); }
|
|
68
|
+
}
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNsTextAreaFieldModule, decorators: [{
|
|
70
|
+
type: NgModule,
|
|
71
|
+
args: [{
|
|
72
|
+
declarations: [FormlyFieldTextArea],
|
|
73
|
+
imports: [
|
|
74
|
+
CommonModule,
|
|
75
|
+
ReactiveFormsModule,
|
|
76
|
+
NativeScriptFormsModule,
|
|
77
|
+
FormlyNsFormFieldModule,
|
|
78
|
+
FormlyModule.forChild(withFormlyFieldTextArea()),
|
|
79
|
+
],
|
|
80
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
81
|
+
}]
|
|
82
|
+
}] });
|
|
83
|
+
|
|
84
|
+
/** @deprecated use FormlyFieldDatePicker */
|
|
85
|
+
const FormlyNsTextareaFieldModule = FormlyNsTextAreaFieldModule;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Generated bundle index. Do not edit.
|
|
89
|
+
*/
|
|
90
|
+
|
|
91
|
+
export { FormlyNsTextAreaFieldModule, FormlyNsTextareaFieldModule, withFormlyFieldTextArea };
|
|
92
|
+
//# sourceMappingURL=ngx-formly-nativescript-textarea.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-nativescript-textarea.mjs","sources":["../../../../src/ui/nativescript/textarea/src/textarea.type.ts","../../../../src/ui/nativescript/textarea/src/textarea.config.ts","../../../../src/ui/nativescript/textarea/src/textarea.module.ts","../../../../src/ui/nativescript/textarea/src/public_api.ts","../../../../src/ui/nativescript/textarea/src/ngx-formly-nativescript-textarea.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';\n\ninterface TextAreaProps extends FormlyFieldProps {\n hint?: string;\n autocorrect?: boolean;\n keyboardType?: any;\n}\n\nexport interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {\n type: 'textarea' | Type<FormlyFieldTextArea>;\n}\n\n@Component({\n selector: 'formly-field-ns-textarea',\n template: `\n <TextView\n class=\"input\"\n [formlyAttributes]=\"field\"\n [formControl]=\"formControl\"\n [hint]=\"props.hint\"\n [autocorrect]=\"props.autocorrect\"\n [keyboardType]=\"props.keyboardType\"\n >\n </TextView>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldTextArea } from './textarea.type';\n\nexport function withFormlyFieldTextArea(): ConfigOption {\n return {\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextArea,\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 { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldTextArea } from './textarea.type';\nimport { withFormlyFieldTextArea } from './textarea.config';\n\n@NgModule({\n declarations: [FormlyFieldTextArea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild(withFormlyFieldTextArea()),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsTextAreaFieldModule {}\n","export { withFormlyFieldTextArea } from './textarea.config';\nimport { FormlyNsTextAreaFieldModule } from './textarea.module';\nexport { FormlyTextAreaFieldConfig } from './textarea.type';\n\n/** @deprecated use FormlyFieldDatePicker */\nconst FormlyNsTextareaFieldModule = FormlyNsTextAreaFieldModule;\n\nexport { FormlyNsTextAreaFieldModule, FormlyNsTextareaFieldModule };\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;AA6BM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;+GAArE,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,EAbpB,QAAA,EAAA,0BAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;;;;;;;AAUT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,UAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,CAAA,QAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,2zBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,kBAAA,EAAA,IAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EA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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;;;ACjBD;AACM,MAAA,2BAA2B,GAAG;;ACLpC;;AAEG;;;;"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { withFormlyFormField, FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
|
|
2
|
+
import { withFormlyFieldTextArea, FormlyNsTextAreaFieldModule } from '@ngx-formly/nativescript/textarea';
|
|
3
|
+
import { withFormlyFieldRadio, FormlyNsRadioFieldModule } from '@ngx-formly/nativescript/radio';
|
|
4
|
+
import { withFormlyFieldCheckbox, FormlyNsCheckboxFieldModule } from '@ngx-formly/nativescript/checkbox';
|
|
5
|
+
import { withFormlyFieldSelect, FormlyNsSelectFieldModule } from '@ngx-formly/nativescript/select';
|
|
6
|
+
import { withFormlyFieldInput, FormlyNsTextFieldModule } from '@ngx-formly/nativescript/text-field';
|
|
7
|
+
import * as i0 from '@angular/core';
|
|
8
|
+
import { NO_ERRORS_SCHEMA, NgModule } from '@angular/core';
|
|
9
|
+
|
|
10
|
+
function withFormlyNativescript() {
|
|
11
|
+
return [
|
|
12
|
+
withFormlyFormField(),
|
|
13
|
+
withFormlyFieldInput(),
|
|
14
|
+
withFormlyFieldTextArea(),
|
|
15
|
+
withFormlyFieldRadio(),
|
|
16
|
+
withFormlyFieldCheckbox(),
|
|
17
|
+
withFormlyFieldSelect(),
|
|
18
|
+
];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
class FormlyNativescriptModule {
|
|
22
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNativescriptModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
23
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyNativescriptModule, imports: [FormlyNsFormFieldModule,
|
|
24
|
+
FormlyNsTextFieldModule,
|
|
25
|
+
FormlyNsTextAreaFieldModule,
|
|
26
|
+
FormlyNsCheckboxFieldModule,
|
|
27
|
+
FormlyNsRadioFieldModule,
|
|
28
|
+
FormlyNsSelectFieldModule] }); }
|
|
29
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNativescriptModule, imports: [FormlyNsFormFieldModule,
|
|
30
|
+
FormlyNsTextFieldModule,
|
|
31
|
+
FormlyNsTextAreaFieldModule,
|
|
32
|
+
FormlyNsCheckboxFieldModule,
|
|
33
|
+
FormlyNsRadioFieldModule,
|
|
34
|
+
FormlyNsSelectFieldModule] }); }
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyNativescriptModule, decorators: [{
|
|
37
|
+
type: NgModule,
|
|
38
|
+
args: [{
|
|
39
|
+
imports: [
|
|
40
|
+
FormlyNsFormFieldModule,
|
|
41
|
+
FormlyNsTextFieldModule,
|
|
42
|
+
FormlyNsTextAreaFieldModule,
|
|
43
|
+
FormlyNsCheckboxFieldModule,
|
|
44
|
+
FormlyNsRadioFieldModule,
|
|
45
|
+
FormlyNsSelectFieldModule,
|
|
46
|
+
],
|
|
47
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
48
|
+
}]
|
|
49
|
+
}] });
|
|
50
|
+
|
|
51
|
+
/*
|
|
52
|
+
* Public API Surface of material
|
|
53
|
+
*/
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Generated bundle index. Do not edit.
|
|
57
|
+
*/
|
|
58
|
+
|
|
59
|
+
export { FormlyNativescriptModule, withFormlyNativescript };
|
|
60
|
+
//# sourceMappingURL=ngx-formly-nativescript.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-formly-nativescript.mjs","sources":["../../../../src/ui/nativescript/src/lib/ui-nativescript.config.ts","../../../../src/ui/nativescript/src/lib/ui-nativescript.module.ts","../../../../src/ui/nativescript/src/public_api.ts","../../../../src/ui/nativescript/src/ngx-formly-nativescript.ts"],"sourcesContent":["import { withFormlyFormField } from '@ngx-formly/nativescript/form-field';\nimport { withFormlyFieldTextArea } from '@ngx-formly/nativescript/textarea';\nimport { withFormlyFieldRadio } from '@ngx-formly/nativescript/radio';\nimport { withFormlyFieldCheckbox } from '@ngx-formly/nativescript/checkbox';\nimport { withFormlyFieldSelect } from '@ngx-formly/nativescript/select';\nimport { withFormlyFieldInput } from '@ngx-formly/nativescript/text-field';\n\nexport function withFormlyNativescript() {\n return [\n withFormlyFormField(),\n withFormlyFieldInput(),\n withFormlyFieldTextArea(),\n withFormlyFieldRadio(),\n withFormlyFieldCheckbox(),\n withFormlyFieldSelect(),\n ];\n}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyNsTextFieldModule } from '@ngx-formly/nativescript/text-field';\nimport { FormlyNsTextAreaFieldModule } from '@ngx-formly/nativescript/textarea';\nimport { FormlyNsCheckboxFieldModule } from '@ngx-formly/nativescript/checkbox';\nimport { FormlyNsRadioFieldModule } from '@ngx-formly/nativescript/radio';\nimport { FormlyNsSelectFieldModule } from '@ngx-formly/nativescript/select';\n\n@NgModule({\n imports: [\n FormlyNsFormFieldModule,\n FormlyNsTextFieldModule,\n FormlyNsTextAreaFieldModule,\n FormlyNsCheckboxFieldModule,\n FormlyNsRadioFieldModule,\n FormlyNsSelectFieldModule,\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNativescriptModule {}\n","/*\n * Public API Surface of material\n */\n\nexport * from './lib/ui-nativescipt';\n","/**\n * Generated bundle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;AAEG;;ACFH;;AAEG;;;;"}
|
|
@@ -5,5 +5,5 @@ export interface FormlyFieldProps extends CoreFormlyFieldProps {
|
|
|
5
5
|
}
|
|
6
6
|
export declare class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-ns-form-field", never, {}, {}, never, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-ns-form-field", never, {}, {}, never, never, false, never>;
|
|
9
9
|
}
|
package/lib/ui-nativescipt.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function withFormlyNativescript(): import("@ngx-formly/core").ConfigOption[];
|
package/package.json
CHANGED
|
@@ -1,80 +1,62 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngx-formly/nativescript",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0-alpha.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"tslib": "^2.0.0"
|
|
7
7
|
},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@ngx-formly/core": "
|
|
10
|
-
"@nativescript/angular": ">=
|
|
9
|
+
"@ngx-formly/core": "7.0.0-alpha.1",
|
|
10
|
+
"@nativescript/angular": ">=16.0.0",
|
|
11
11
|
"@nativescript/core": ">=8.1.0"
|
|
12
12
|
},
|
|
13
|
-
"module": "
|
|
14
|
-
"
|
|
15
|
-
"esm2020": "esm2020/ngx-formly-nativescript.mjs",
|
|
16
|
-
"fesm2020": "fesm2020/ngx-formly-nativescript.mjs",
|
|
17
|
-
"fesm2015": "fesm2015/ngx-formly-nativescript.mjs",
|
|
18
|
-
"typings": "ngx-formly-nativescript.d.ts",
|
|
13
|
+
"module": "fesm2022/ngx-formly-nativescript.mjs",
|
|
14
|
+
"typings": "index.d.ts",
|
|
19
15
|
"exports": {
|
|
20
16
|
"./package.json": {
|
|
21
17
|
"default": "./package.json"
|
|
22
18
|
},
|
|
23
19
|
".": {
|
|
24
|
-
"types": "./
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"node": "./fesm2015/ngx-formly-nativescript.mjs",
|
|
29
|
-
"default": "./fesm2020/ngx-formly-nativescript.mjs"
|
|
20
|
+
"types": "./index.d.ts",
|
|
21
|
+
"esm2022": "./esm2022/ngx-formly-nativescript.mjs",
|
|
22
|
+
"esm": "./esm2022/ngx-formly-nativescript.mjs",
|
|
23
|
+
"default": "./fesm2022/ngx-formly-nativescript.mjs"
|
|
30
24
|
},
|
|
31
25
|
"./checkbox": {
|
|
32
|
-
"types": "./checkbox/
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
36
|
-
"node": "./fesm2015/ngx-formly-nativescript-checkbox.mjs",
|
|
37
|
-
"default": "./fesm2020/ngx-formly-nativescript-checkbox.mjs"
|
|
26
|
+
"types": "./checkbox/index.d.ts",
|
|
27
|
+
"esm2022": "./esm2022/checkbox/ngx-formly-nativescript-checkbox.mjs",
|
|
28
|
+
"esm": "./esm2022/checkbox/ngx-formly-nativescript-checkbox.mjs",
|
|
29
|
+
"default": "./fesm2022/ngx-formly-nativescript-checkbox.mjs"
|
|
38
30
|
},
|
|
39
31
|
"./form-field": {
|
|
40
|
-
"types": "./form-field/
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"node": "./fesm2015/ngx-formly-nativescript-form-field.mjs",
|
|
45
|
-
"default": "./fesm2020/ngx-formly-nativescript-form-field.mjs"
|
|
32
|
+
"types": "./form-field/index.d.ts",
|
|
33
|
+
"esm2022": "./esm2022/form-field/ngx-formly-nativescript-form-field.mjs",
|
|
34
|
+
"esm": "./esm2022/form-field/ngx-formly-nativescript-form-field.mjs",
|
|
35
|
+
"default": "./fesm2022/ngx-formly-nativescript-form-field.mjs"
|
|
46
36
|
},
|
|
47
37
|
"./radio": {
|
|
48
|
-
"types": "./radio/
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"node": "./fesm2015/ngx-formly-nativescript-radio.mjs",
|
|
53
|
-
"default": "./fesm2020/ngx-formly-nativescript-radio.mjs"
|
|
38
|
+
"types": "./radio/index.d.ts",
|
|
39
|
+
"esm2022": "./esm2022/radio/ngx-formly-nativescript-radio.mjs",
|
|
40
|
+
"esm": "./esm2022/radio/ngx-formly-nativescript-radio.mjs",
|
|
41
|
+
"default": "./fesm2022/ngx-formly-nativescript-radio.mjs"
|
|
54
42
|
},
|
|
55
43
|
"./select": {
|
|
56
|
-
"types": "./select/
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"node": "./fesm2015/ngx-formly-nativescript-select.mjs",
|
|
61
|
-
"default": "./fesm2020/ngx-formly-nativescript-select.mjs"
|
|
44
|
+
"types": "./select/index.d.ts",
|
|
45
|
+
"esm2022": "./esm2022/select/ngx-formly-nativescript-select.mjs",
|
|
46
|
+
"esm": "./esm2022/select/ngx-formly-nativescript-select.mjs",
|
|
47
|
+
"default": "./fesm2022/ngx-formly-nativescript-select.mjs"
|
|
62
48
|
},
|
|
63
49
|
"./text-field": {
|
|
64
|
-
"types": "./text-field/
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"node": "./fesm2015/ngx-formly-nativescript-text-field.mjs",
|
|
69
|
-
"default": "./fesm2020/ngx-formly-nativescript-text-field.mjs"
|
|
50
|
+
"types": "./text-field/index.d.ts",
|
|
51
|
+
"esm2022": "./esm2022/text-field/ngx-formly-nativescript-text-field.mjs",
|
|
52
|
+
"esm": "./esm2022/text-field/ngx-formly-nativescript-text-field.mjs",
|
|
53
|
+
"default": "./fesm2022/ngx-formly-nativescript-text-field.mjs"
|
|
70
54
|
},
|
|
71
55
|
"./textarea": {
|
|
72
|
-
"types": "./textarea/
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"node": "./fesm2015/ngx-formly-nativescript-textarea.mjs",
|
|
77
|
-
"default": "./fesm2020/ngx-formly-nativescript-textarea.mjs"
|
|
56
|
+
"types": "./textarea/index.d.ts",
|
|
57
|
+
"esm2022": "./esm2022/textarea/ngx-formly-nativescript-textarea.mjs",
|
|
58
|
+
"esm": "./esm2022/textarea/ngx-formly-nativescript-textarea.mjs",
|
|
59
|
+
"default": "./fesm2022/ngx-formly-nativescript-textarea.mjs"
|
|
78
60
|
}
|
|
79
61
|
},
|
|
80
62
|
"sideEffects": false,
|
package/radio/public_api.d.ts
CHANGED
package/radio/radio.type.d.ts
CHANGED
|
@@ -2,14 +2,13 @@ import { Type } from '@angular/core';
|
|
|
2
2
|
import { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
|
|
3
3
|
import { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
|
|
6
|
-
}
|
|
5
|
+
type RadioProps = FormlyFieldProps;
|
|
7
6
|
export interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {
|
|
8
7
|
type: 'radio' | Type<FormlyFieldRadio>;
|
|
9
8
|
}
|
|
10
9
|
export declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {
|
|
11
10
|
tap(id: any): void;
|
|
12
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRadio, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRadio, "formly-field-ns-radio", never, {}, {}, never, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRadio, "formly-field-ns-radio", never, {}, {}, never, never, false, never>;
|
|
14
13
|
}
|
|
15
14
|
export {};
|
package/select/public_api.d.ts
CHANGED
package/select/select.type.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ export declare class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectP
|
|
|
12
12
|
tap(options: any[]): void;
|
|
13
13
|
selectedItem(options: any[]): any;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSelect, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSelect, "formly-field-ns-select", never, {}, {}, never, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSelect, "formly-field-ns-select", never, {}, {}, never, never, false, never>;
|
|
16
16
|
}
|
|
17
17
|
export {};
|
|
@@ -13,6 +13,6 @@ export interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
|
|
|
13
13
|
}
|
|
14
14
|
export declare class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-ns-input", never, {}, {}, never, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-ns-input", never, {}, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
18
18
|
export {};
|