@ngx-formly/nativescript 5.10.23 → 6.0.0-next.3
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 +4 -2
- package/checkbox/checkbox.module.d.ts +10 -0
- package/checkbox/checkbox.type.d.ts +3 -0
- package/checkbox/ngx-formly-nativescript-checkbox.d.ts +1 -1
- package/checkbox/package.json +6 -9
- package/esm2020/checkbox/checkbox.module.mjs +62 -0
- package/esm2020/checkbox/checkbox.type.mjs +37 -0
- package/esm2020/checkbox/ngx-formly-nativescript-checkbox.mjs +5 -0
- package/esm2020/checkbox/public_api.mjs +2 -0
- package/esm2020/form-field/form-field.module.mjs +48 -0
- package/esm2020/form-field/form-field.wrapper.mjs +45 -0
- package/esm2020/form-field/ngx-formly-nativescript-form-field.mjs +5 -0
- package/esm2020/form-field/public_api.mjs +2 -0
- package/esm2020/lib/ui-nativescipt.mjs +2 -0
- package/esm2020/lib/ui-nativescript.module.mjs +40 -0
- package/esm2020/ngx-formly-nativescript.mjs +5 -0
- package/esm2020/public_api.mjs +5 -0
- package/esm2020/radio/ngx-formly-nativescript-radio.mjs +5 -0
- package/esm2020/radio/public_api.mjs +2 -0
- package/esm2020/radio/radio.module.mjs +58 -0
- package/esm2020/radio/radio.type.mjs +41 -0
- package/esm2020/select/ngx-formly-nativescript-select.mjs +5 -0
- package/esm2020/select/public_api.mjs +2 -0
- package/esm2020/select/select.module.mjs +60 -0
- package/esm2020/select/select.type.mjs +36 -0
- package/esm2020/text-field/ngx-formly-nativescript-text-field.mjs +5 -0
- package/esm2020/text-field/public_api.mjs +2 -0
- package/esm2020/text-field/text-field.module.mjs +94 -0
- package/esm2020/text-field/text-field.type.mjs +41 -0
- package/esm2020/textarea/ngx-formly-nativescript-textarea.mjs +5 -0
- package/esm2020/textarea/public_api.mjs +2 -0
- package/esm2020/textarea/textarea.module.mjs +54 -0
- package/esm2020/textarea/textarea.type.mjs +39 -0
- package/fesm2015/ngx-formly-nativescript-checkbox.mjs +101 -0
- package/fesm2015/ngx-formly-nativescript-checkbox.mjs.map +1 -0
- package/fesm2015/ngx-formly-nativescript-form-field.mjs +95 -0
- package/fesm2015/ngx-formly-nativescript-form-field.mjs.map +1 -0
- package/fesm2015/ngx-formly-nativescript-radio.mjs +102 -0
- package/fesm2015/ngx-formly-nativescript-radio.mjs.map +1 -0
- package/fesm2015/ngx-formly-nativescript-select.mjs +99 -0
- package/fesm2015/ngx-formly-nativescript-select.mjs.map +1 -0
- package/fesm2015/ngx-formly-nativescript-text-field.mjs +137 -0
- package/fesm2015/ngx-formly-nativescript-text-field.mjs.map +1 -0
- package/fesm2015/ngx-formly-nativescript-textarea.mjs +95 -0
- package/fesm2015/ngx-formly-nativescript-textarea.mjs.map +1 -0
- package/fesm2015/ngx-formly-nativescript.mjs +51 -0
- package/fesm2015/ngx-formly-nativescript.mjs.map +1 -0
- package/fesm2020/ngx-formly-nativescript-checkbox.mjs +101 -0
- package/fesm2020/ngx-formly-nativescript-checkbox.mjs.map +1 -0
- package/fesm2020/ngx-formly-nativescript-form-field.mjs +95 -0
- package/fesm2020/ngx-formly-nativescript-form-field.mjs.map +1 -0
- package/fesm2020/ngx-formly-nativescript-radio.mjs +102 -0
- package/fesm2020/ngx-formly-nativescript-radio.mjs.map +1 -0
- package/fesm2020/ngx-formly-nativescript-select.mjs +99 -0
- package/fesm2020/ngx-formly-nativescript-select.mjs.map +1 -0
- package/fesm2020/ngx-formly-nativescript-text-field.mjs +137 -0
- package/fesm2020/ngx-formly-nativescript-text-field.mjs.map +1 -0
- package/fesm2020/ngx-formly-nativescript-textarea.mjs +95 -0
- package/fesm2020/ngx-formly-nativescript-textarea.mjs.map +1 -0
- package/fesm2020/ngx-formly-nativescript.mjs +51 -0
- package/fesm2020/ngx-formly-nativescript.mjs.map +1 -0
- package/form-field/form-field.module.d.ts +9 -0
- package/form-field/form-field.wrapper.d.ts +3 -0
- package/form-field/ngx-formly-nativescript-form-field.d.ts +1 -1
- package/form-field/package.json +6 -9
- package/lib/ui-nativescript.module.d.ts +10 -0
- package/ngx-formly-nativescript.d.ts +1 -0
- package/package.json +78 -31
- package/radio/ngx-formly-nativescript-radio.d.ts +1 -1
- package/radio/package.json +6 -9
- package/radio/radio.module.d.ts +11 -0
- package/radio/radio.type.d.ts +3 -0
- package/select/ngx-formly-nativescript-select.d.ts +1 -1
- package/select/package.json +6 -9
- package/select/select.module.d.ts +11 -0
- package/select/select.type.d.ts +3 -0
- package/text-field/ngx-formly-nativescript-text-field.d.ts +1 -1
- package/text-field/package.json +6 -9
- package/text-field/text-field.module.d.ts +10 -0
- package/text-field/text-field.type.d.ts +3 -0
- package/textarea/ngx-formly-nativescript-textarea.d.ts +1 -1
- package/textarea/package.json +6 -9
- package/textarea/textarea.module.d.ts +10 -0
- package/textarea/textarea.type.d.ts +3 -0
- package/bundles/ngx-formly-nativescript-checkbox.umd.js +0 -108
- package/bundles/ngx-formly-nativescript-checkbox.umd.js.map +0 -1
- package/bundles/ngx-formly-nativescript-checkbox.umd.min.js +0 -2
- package/bundles/ngx-formly-nativescript-checkbox.umd.min.js.map +0 -1
- package/bundles/ngx-formly-nativescript-form-field.umd.js +0 -101
- package/bundles/ngx-formly-nativescript-form-field.umd.js.map +0 -1
- package/bundles/ngx-formly-nativescript-form-field.umd.min.js +0 -2
- package/bundles/ngx-formly-nativescript-form-field.umd.min.js.map +0 -1
- package/bundles/ngx-formly-nativescript-radio.umd.js +0 -122
- package/bundles/ngx-formly-nativescript-radio.umd.js.map +0 -1
- package/bundles/ngx-formly-nativescript-radio.umd.min.js +0 -2
- package/bundles/ngx-formly-nativescript-radio.umd.min.js.map +0 -1
- package/bundles/ngx-formly-nativescript-select.umd.js +0 -145
- package/bundles/ngx-formly-nativescript-select.umd.js.map +0 -1
- package/bundles/ngx-formly-nativescript-select.umd.min.js +0 -2
- package/bundles/ngx-formly-nativescript-select.umd.min.js.map +0 -1
- package/bundles/ngx-formly-nativescript-text-field.umd.js +0 -103
- package/bundles/ngx-formly-nativescript-text-field.umd.js.map +0 -1
- package/bundles/ngx-formly-nativescript-text-field.umd.min.js +0 -2
- package/bundles/ngx-formly-nativescript-text-field.umd.min.js.map +0 -1
- package/bundles/ngx-formly-nativescript-textarea.umd.js +0 -102
- package/bundles/ngx-formly-nativescript-textarea.umd.js.map +0 -1
- package/bundles/ngx-formly-nativescript-textarea.umd.min.js +0 -2
- package/bundles/ngx-formly-nativescript-textarea.umd.min.js.map +0 -1
- package/bundles/ngx-formly-nativescript.umd.js +0 -51
- package/bundles/ngx-formly-nativescript.umd.js.map +0 -1
- package/bundles/ngx-formly-nativescript.umd.min.js +0 -2
- package/bundles/ngx-formly-nativescript.umd.min.js.map +0 -1
- package/checkbox/ngx-formly-nativescript-checkbox.metadata.json +0 -1
- package/esm2015/checkbox/checkbox.module.js +0 -35
- package/esm2015/checkbox/checkbox.type.js +0 -32
- package/esm2015/checkbox/ngx-formly-nativescript-checkbox.js +0 -10
- package/esm2015/checkbox/public_api.js +0 -6
- package/esm2015/form-field/form-field.module.js +0 -30
- package/esm2015/form-field/form-field.wrapper.js +0 -35
- package/esm2015/form-field/ngx-formly-nativescript-form-field.js +0 -10
- package/esm2015/form-field/public_api.js +0 -6
- package/esm2015/lib/ui-nativescipt.js +0 -6
- package/esm2015/lib/ui-nativescript.module.js +0 -27
- package/esm2015/ngx-formly-nativescript.js +0 -9
- package/esm2015/public_api.js +0 -9
- package/esm2015/radio/ngx-formly-nativescript-radio.js +0 -10
- package/esm2015/radio/public_api.js +0 -6
- package/esm2015/radio/radio.module.js +0 -37
- package/esm2015/radio/radio.type.js +0 -40
- package/esm2015/select/ngx-formly-nativescript-select.js +0 -10
- package/esm2015/select/public_api.js +0 -6
- package/esm2015/select/select.module.js +0 -37
- package/esm2015/select/select.type.js +0 -54
- package/esm2015/text-field/ngx-formly-nativescript-text-field.js +0 -10
- package/esm2015/text-field/public_api.js +0 -6
- package/esm2015/text-field/text-field.module.js +0 -36
- package/esm2015/text-field/text-field.type.js +0 -25
- package/esm2015/textarea/ngx-formly-nativescript-textarea.js +0 -10
- package/esm2015/textarea/public_api.js +0 -6
- package/esm2015/textarea/textarea.module.js +0 -35
- package/esm2015/textarea/textarea.type.js +0 -24
- package/esm5/checkbox/checkbox.module.js +0 -39
- package/esm5/checkbox/checkbox.type.js +0 -32
- package/esm5/checkbox/ngx-formly-nativescript-checkbox.js +0 -10
- package/esm5/checkbox/public_api.js +0 -6
- package/esm5/form-field/form-field.module.js +0 -34
- package/esm5/form-field/form-field.wrapper.js +0 -29
- package/esm5/form-field/ngx-formly-nativescript-form-field.js +0 -10
- package/esm5/form-field/public_api.js +0 -6
- package/esm5/lib/ui-nativescipt.js +0 -6
- package/esm5/lib/ui-nativescript.module.js +0 -31
- package/esm5/ngx-formly-nativescript.js +0 -9
- package/esm5/public_api.js +0 -9
- package/esm5/radio/ngx-formly-nativescript-radio.js +0 -10
- package/esm5/radio/public_api.js +0 -6
- package/esm5/radio/radio.module.js +0 -41
- package/esm5/radio/radio.type.js +0 -42
- package/esm5/select/ngx-formly-nativescript-select.js +0 -10
- package/esm5/select/public_api.js +0 -6
- package/esm5/select/select.module.js +0 -41
- package/esm5/select/select.type.js +0 -67
- package/esm5/text-field/ngx-formly-nativescript-text-field.js +0 -10
- package/esm5/text-field/public_api.js +0 -6
- package/esm5/text-field/text-field.module.js +0 -40
- package/esm5/text-field/text-field.type.js +0 -22
- package/esm5/textarea/ngx-formly-nativescript-textarea.js +0 -10
- package/esm5/textarea/public_api.js +0 -6
- package/esm5/textarea/textarea.module.js +0 -39
- package/esm5/textarea/textarea.type.js +0 -22
- package/fesm2015/ngx-formly-nativescript-checkbox.js +0 -74
- package/fesm2015/ngx-formly-nativescript-checkbox.js.map +0 -1
- package/fesm2015/ngx-formly-nativescript-form-field.js +0 -72
- package/fesm2015/ngx-formly-nativescript-form-field.js.map +0 -1
- package/fesm2015/ngx-formly-nativescript-radio.js +0 -88
- package/fesm2015/ngx-formly-nativescript-radio.js.map +0 -1
- package/fesm2015/ngx-formly-nativescript-select.js +0 -102
- package/fesm2015/ngx-formly-nativescript-select.js.map +0 -1
- package/fesm2015/ngx-formly-nativescript-text-field.js +0 -72
- package/fesm2015/ngx-formly-nativescript-text-field.js.map +0 -1
- package/fesm2015/ngx-formly-nativescript-textarea.js +0 -70
- package/fesm2015/ngx-formly-nativescript-textarea.js.map +0 -1
- package/fesm2015/ngx-formly-nativescript.js +0 -46
- package/fesm2015/ngx-formly-nativescript.js.map +0 -1
- package/fesm5/ngx-formly-nativescript-checkbox.js +0 -76
- package/fesm5/ngx-formly-nativescript-checkbox.js.map +0 -1
- package/fesm5/ngx-formly-nativescript-form-field.js +0 -68
- package/fesm5/ngx-formly-nativescript-form-field.js.map +0 -1
- package/fesm5/ngx-formly-nativescript-radio.js +0 -92
- package/fesm5/ngx-formly-nativescript-radio.js.map +0 -1
- package/fesm5/ngx-formly-nativescript-select.js +0 -117
- package/fesm5/ngx-formly-nativescript-select.js.map +0 -1
- package/fesm5/ngx-formly-nativescript-text-field.js +0 -71
- package/fesm5/ngx-formly-nativescript-text-field.js.map +0 -1
- package/fesm5/ngx-formly-nativescript-textarea.js +0 -70
- package/fesm5/ngx-formly-nativescript-textarea.js.map +0 -1
- package/fesm5/ngx-formly-nativescript.js +0 -49
- package/fesm5/ngx-formly-nativescript.js.map +0 -1
- package/form-field/ngx-formly-nativescript-form-field.metadata.json +0 -1
- package/ngx-formly-nativescript.metadata.json +0 -1
- package/radio/ngx-formly-nativescript-radio.metadata.json +0 -1
- package/select/ngx-formly-nativescript-select.metadata.json +0 -1
- package/text-field/ngx-formly-nativescript-text-field.metadata.json +0 -1
- package/textarea/ngx-formly-nativescript-textarea.metadata.json +0 -1
|
@@ -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.module.ts","../../../../src/ui/nativescript/checkbox/src/ngx-formly-nativescript-checkbox.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\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]=\"to.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 {\n defaultOptions = {\n templateOptions: {\n hideLabel: true,\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';\n\n@NgModule({\n declarations: [FormlyFieldCheckbox],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild({\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 schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsCheckboxFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;MAaa,mBAAoB,SAAQ,SAAS;IAVlD;;QAWE,mBAAc,GAAG;YACf,eAAe,EAAE;gBACf,SAAS,EAAE,IAAI;aAChB;SACF,CAAC;KACH;;gHANY,mBAAmB;oGAAnB,mBAAmB,uFARpB;;;;;GAKT;2FAGU,mBAAmB;kBAV/B,SAAS;mBAAC;oBACT,QAAQ,EAAE,0BAA0B;oBACpC,QAAQ,EAAE;;;;;GAKT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCqBY,2BAA2B;;wHAA3B,2BAA2B;yHAA3B,2BAA2B,iBAvBvB,mBAAmB,aAEhC,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,uBAAuB;yHAiBd,2BAA2B,YAtB7B;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;YACvB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;oBACD;wBACE,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,UAAU;qBACpB;iBACF;aACF,CAAC;SACH;2FAGU,2BAA2B;kBAxBvC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,UAAU;oCAChB,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;gCACD;oCACE,IAAI,EAAE,SAAS;oCACf,OAAO,EAAE,UAAU;iCACpB;6BACF;yBACF,CAAC;qBACH;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;AChCD;;;;;;"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, ViewChild, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i1 from '@ngx-formly/core';
|
|
6
|
+
import { FieldWrapper, FormlyModule } from '@ngx-formly/core';
|
|
7
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import { NativeScriptFormsModule } from '@nativescript/angular';
|
|
9
|
+
|
|
10
|
+
class FormlyWrapperFormField extends FieldWrapper {
|
|
11
|
+
}
|
|
12
|
+
FormlyWrapperFormField.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
+
FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyWrapperFormField, selector: "formly-wrapper-ns-form-field", viewQueries: [{ propertyName: "validationMessage", first: true, predicate: ["validationMessage"], descendants: true }], usesInheritance: true, ngImport: i0, template: `
|
|
14
|
+
<StackLayout class="form">
|
|
15
|
+
<StackLayout class="input-field">
|
|
16
|
+
<Label *ngIf="to.label && to.hideLabel !== true" class="label" [text]="to.label"></Label>
|
|
17
|
+
<ng-container #fieldComponent></ng-container>
|
|
18
|
+
<StackLayout class="hr-light"></StackLayout>
|
|
19
|
+
<ng-container *ngIf="showError">
|
|
20
|
+
<formly-validation-message #validationMessage [field]="field"></formly-validation-message>
|
|
21
|
+
<Label class="text-danger" [text]="validationMessage.errorMessage"></Label>
|
|
22
|
+
</ng-container>
|
|
23
|
+
</StackLayout>
|
|
24
|
+
</StackLayout>
|
|
25
|
+
`, isInline: true, components: [{ type: i1.ɵFormlyValidationMessage, selector: "formly-validation-message", inputs: ["field"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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="to.label && to.hideLabel !== true" class="label" [text]="to.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
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
44
|
+
}]
|
|
45
|
+
}], propDecorators: { validationMessage: [{
|
|
46
|
+
type: ViewChild,
|
|
47
|
+
args: ['validationMessage']
|
|
48
|
+
}] } });
|
|
49
|
+
|
|
50
|
+
class FormlyNsFormFieldModule {
|
|
51
|
+
}
|
|
52
|
+
FormlyNsFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
53
|
+
FormlyNsFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
|
|
54
|
+
ReactiveFormsModule,
|
|
55
|
+
NativeScriptFormsModule, i1.FormlyModule] });
|
|
56
|
+
FormlyNsFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsFormFieldModule, imports: [[
|
|
57
|
+
CommonModule,
|
|
58
|
+
ReactiveFormsModule,
|
|
59
|
+
NativeScriptFormsModule,
|
|
60
|
+
FormlyModule.forChild({
|
|
61
|
+
wrappers: [
|
|
62
|
+
{
|
|
63
|
+
name: 'form-field',
|
|
64
|
+
component: FormlyWrapperFormField,
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
}),
|
|
68
|
+
]] });
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsFormFieldModule, decorators: [{
|
|
70
|
+
type: NgModule,
|
|
71
|
+
args: [{
|
|
72
|
+
declarations: [FormlyWrapperFormField],
|
|
73
|
+
imports: [
|
|
74
|
+
CommonModule,
|
|
75
|
+
ReactiveFormsModule,
|
|
76
|
+
NativeScriptFormsModule,
|
|
77
|
+
FormlyModule.forChild({
|
|
78
|
+
wrappers: [
|
|
79
|
+
{
|
|
80
|
+
name: 'form-field',
|
|
81
|
+
component: FormlyWrapperFormField,
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
}),
|
|
85
|
+
],
|
|
86
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
87
|
+
}]
|
|
88
|
+
}] });
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Generated bundle index. Do not edit.
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
export { FormlyNsFormFieldModule };
|
|
95
|
+
//# 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.module.ts","../../../../src/ui/nativescript/form-field/src/ngx-formly-nativescript-form-field.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, ViewChild } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-wrapper-ns-form-field',\n template: `\n <StackLayout class=\"form\">\n <StackLayout class=\"input-field\">\n <Label *ngIf=\"to.label && to.hideLabel !== true\" class=\"label\" [text]=\"to.label\"></Label>\n <ng-container #fieldComponent></ng-container>\n <StackLayout class=\"hr-light\"></StackLayout>\n <ng-container *ngIf=\"showError\">\n <formly-validation-message #validationMessage [field]=\"field\"></formly-validation-message>\n <Label class=\"text-danger\" [text]=\"validationMessage.errorMessage\"></Label>\n </ng-container>\n </StackLayout>\n </StackLayout>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyWrapperFormField extends FieldWrapper {\n @ViewChild('validationMessage') validationMessage;\n}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\nimport { FormlyWrapperFormField } from './form-field.wrapper';\n\n@NgModule({\n declarations: [FormlyWrapperFormField],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'form-field',\n component: FormlyWrapperFormField,\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsFormFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;MAoBa,sBAAuB,SAAQ,YAAY;;mHAA3C,sBAAsB;uGAAtB,sBAAsB,mNAfvB;;;;;;;;;;;;GAYT;2FAGU,sBAAsB;kBAjBlC,SAAS;mBAAC;oBACT,QAAQ,EAAE,8BAA8B;oBACxC,QAAQ,EAAE;;;;;;;;;;;;GAYT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;8BAEiC,iBAAiB;sBAAhD,SAAS;uBAAC,mBAAmB;;;MCGnB,uBAAuB;;oHAAvB,uBAAuB;qHAAvB,uBAAuB,iBAhBnB,sBAAsB,aAEnC,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;qHAYd,uBAAuB,YAfzB;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,YAAY,CAAC,QAAQ,CAAC;gBACpB,QAAQ,EAAE;oBACR;wBACE,IAAI,EAAE,YAAY;wBAClB,SAAS,EAAE,sBAAsB;qBAClC;iBACF;aACF,CAAC;SACH;2FAGU,uBAAuB;kBAjBnC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;oBACtC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;4BACpB,QAAQ,EAAE;gCACR;oCACE,IAAI,EAAE,YAAY;oCAClB,SAAS,EAAE,sBAAsB;iCAClC;6BACF;yBACF,CAAC;qBACH;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;ACvBD;;;;;;"}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
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
|
+
import * as i1$1 from '@ngx-formly/core';
|
|
6
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
7
|
+
import * as i2 from '@ngx-formly/core/select';
|
|
8
|
+
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
9
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
10
|
+
import { NativeScriptFormsModule } from '@nativescript/angular';
|
|
11
|
+
import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
|
|
12
|
+
|
|
13
|
+
class FormlyFieldRadio extends FieldType {
|
|
14
|
+
tap(id) {
|
|
15
|
+
const value = this.formControl.value === id ? null : id;
|
|
16
|
+
setTimeout(() => {
|
|
17
|
+
this.formControl.patchValue(value);
|
|
18
|
+
this.formControl.markAsTouched();
|
|
19
|
+
}, 100);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
FormlyFieldRadio.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyFieldRadio, selector: "formly-field-ns-radio", usesInheritance: true, ngImport: i0, template: `
|
|
24
|
+
<ng-container *ngFor="let option of to.options | formlySelectOptions: field | async">
|
|
25
|
+
<GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
|
|
26
|
+
<Label class="label" [text]="option.label"></Label>
|
|
27
|
+
<Switch col="1" class="switch input" [checked]="formControl.value === option.value" (tap)="tap(option.value)">
|
|
28
|
+
</Switch>
|
|
29
|
+
</GridLayout>
|
|
30
|
+
</ng-container>
|
|
31
|
+
`, isInline: true, directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i1.AsyncPipe, "formlySelectOptions": i2.ɵFormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldRadio, decorators: [{
|
|
33
|
+
type: Component,
|
|
34
|
+
args: [{
|
|
35
|
+
selector: 'formly-field-ns-radio',
|
|
36
|
+
template: `
|
|
37
|
+
<ng-container *ngFor="let option of to.options | formlySelectOptions: field | async">
|
|
38
|
+
<GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
|
|
39
|
+
<Label class="label" [text]="option.label"></Label>
|
|
40
|
+
<Switch col="1" class="switch input" [checked]="formControl.value === option.value" (tap)="tap(option.value)">
|
|
41
|
+
</Switch>
|
|
42
|
+
</GridLayout>
|
|
43
|
+
</ng-container>
|
|
44
|
+
`,
|
|
45
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
|
+
}]
|
|
47
|
+
}] });
|
|
48
|
+
|
|
49
|
+
class FormlyNsRadioFieldModule {
|
|
50
|
+
}
|
|
51
|
+
FormlyNsRadioFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsRadioFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
52
|
+
FormlyNsRadioFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsRadioFieldModule, declarations: [FormlyFieldRadio], imports: [CommonModule,
|
|
53
|
+
ReactiveFormsModule,
|
|
54
|
+
NativeScriptFormsModule,
|
|
55
|
+
FormlyNsFormFieldModule,
|
|
56
|
+
FormlySelectModule, i1$1.FormlyModule] });
|
|
57
|
+
FormlyNsRadioFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsRadioFieldModule, imports: [[
|
|
58
|
+
CommonModule,
|
|
59
|
+
ReactiveFormsModule,
|
|
60
|
+
NativeScriptFormsModule,
|
|
61
|
+
FormlyNsFormFieldModule,
|
|
62
|
+
FormlySelectModule,
|
|
63
|
+
FormlyModule.forChild({
|
|
64
|
+
types: [
|
|
65
|
+
{
|
|
66
|
+
name: 'radio',
|
|
67
|
+
component: FormlyFieldRadio,
|
|
68
|
+
wrappers: ['form-field'],
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
}),
|
|
72
|
+
]] });
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsRadioFieldModule, decorators: [{
|
|
74
|
+
type: NgModule,
|
|
75
|
+
args: [{
|
|
76
|
+
declarations: [FormlyFieldRadio],
|
|
77
|
+
imports: [
|
|
78
|
+
CommonModule,
|
|
79
|
+
ReactiveFormsModule,
|
|
80
|
+
NativeScriptFormsModule,
|
|
81
|
+
FormlyNsFormFieldModule,
|
|
82
|
+
FormlySelectModule,
|
|
83
|
+
FormlyModule.forChild({
|
|
84
|
+
types: [
|
|
85
|
+
{
|
|
86
|
+
name: 'radio',
|
|
87
|
+
component: FormlyFieldRadio,
|
|
88
|
+
wrappers: ['form-field'],
|
|
89
|
+
},
|
|
90
|
+
],
|
|
91
|
+
}),
|
|
92
|
+
],
|
|
93
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
94
|
+
}]
|
|
95
|
+
}] });
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* Generated bundle index. Do not edit.
|
|
99
|
+
*/
|
|
100
|
+
|
|
101
|
+
export { FormlyNsRadioFieldModule };
|
|
102
|
+
//# 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.module.ts","../../../../src/ui/nativescript/radio/src/ngx-formly-nativescript-radio.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ns-radio',\n template: `\n <ng-container *ngFor=\"let option of to.options | formlySelectOptions: field | async\">\n <GridLayout class=\"input-field input-sides\" rows=\"auto, auto\" columns=\"*,*\">\n <Label class=\"label\" [text]=\"option.label\"></Label>\n <Switch col=\"1\" class=\"switch input\" [checked]=\"formControl.value === option.value\" (tap)=\"tap(option.value)\">\n </Switch>\n </GridLayout>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldRadio extends FieldType {\n tap(id) {\n const value = this.formControl.value === id ? null : id;\n setTimeout(() => {\n this.formControl.patchValue(value);\n this.formControl.markAsTouched();\n }, 100);\n }\n}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldRadio } from './radio.type';\n\n@NgModule({\n declarations: [FormlyFieldRadio],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'radio',\n component: FormlyFieldRadio,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsRadioFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;MAgBa,gBAAiB,SAAQ,SAAS;IAC7C,GAAG,CAAC,EAAE;QACJ,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,EAAE,GAAG,IAAI,GAAG,EAAE,CAAC;QACxD,UAAU,CAAC;YACT,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YACnC,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC;SAClC,EAAE,GAAG,CAAC,CAAC;KACT;;6GAPU,gBAAgB;iGAAhB,gBAAgB,oFAXjB;;;;;;;;GAQT;2FAGU,gBAAgB;kBAb5B,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE;;;;;;;;GAQT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCgBY,wBAAwB;;qHAAxB,wBAAwB;sHAAxB,wBAAwB,iBApBpB,gBAAgB,aAE7B,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,uBAAuB;QACvB,kBAAkB;sHAaT,wBAAwB,YAnB1B;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;YACvB,kBAAkB;YAClB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,OAAO;wBACb,SAAS,EAAE,gBAAgB;wBAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;iBACF;aACF,CAAC;SACH;2FAGU,wBAAwB;kBArBpC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,gBAAgB,CAAC;oBAChC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,OAAO;oCACb,SAAS,EAAE,gBAAgB;oCAC3B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;6BACF;yBACF,CAAC;qBACH;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;AC9BD;;;;;;"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
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
|
+
import * as i1$1 from '@ngx-formly/core';
|
|
6
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
7
|
+
import * as i2 from '@ngx-formly/core/select';
|
|
8
|
+
import { FormlySelectModule } from '@ngx-formly/core/select';
|
|
9
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
10
|
+
import { NativeScriptFormsModule } from '@nativescript/angular';
|
|
11
|
+
import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
|
|
12
|
+
import { action } from '@nativescript/core/ui/dialogs';
|
|
13
|
+
|
|
14
|
+
class FormlyFieldSelect extends FieldType {
|
|
15
|
+
tap(options) {
|
|
16
|
+
action({ title: this.to.label, actions: options.map((o) => o.label) }).then((selectedAction) => this.formControl.patchValue(options.find((o) => o.label === selectedAction).value));
|
|
17
|
+
}
|
|
18
|
+
selectedItem(options) {
|
|
19
|
+
if (this.formControl.value) {
|
|
20
|
+
return options.find((o) => o.value === this.formControl.value).label;
|
|
21
|
+
}
|
|
22
|
+
return this.to.placeholder;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
FormlyFieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
+
FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyFieldSelect, selector: "formly-field-ns-select", usesInheritance: true, ngImport: i0, template: `
|
|
27
|
+
<ng-container *ngIf="to.options | formlySelectOptions: field | async as options">
|
|
28
|
+
<Button (tap)="tap(options)" [text]="selectedItem(options)"></Button>
|
|
29
|
+
</ng-container>
|
|
30
|
+
`, isInline: true, directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i1.AsyncPipe, "formlySelectOptions": i2.ɵFormlySelectOptionsPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldSelect, decorators: [{
|
|
32
|
+
type: Component,
|
|
33
|
+
args: [{
|
|
34
|
+
selector: 'formly-field-ns-select',
|
|
35
|
+
template: `
|
|
36
|
+
<ng-container *ngIf="to.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
|
+
class FormlyNsSelectFieldModule {
|
|
45
|
+
}
|
|
46
|
+
FormlyNsSelectFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsSelectFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
47
|
+
FormlyNsSelectFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsSelectFieldModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
|
|
48
|
+
ReactiveFormsModule,
|
|
49
|
+
NativeScriptFormsModule,
|
|
50
|
+
FormlyNsFormFieldModule,
|
|
51
|
+
FormlySelectModule, i1$1.FormlyModule] });
|
|
52
|
+
FormlyNsSelectFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsSelectFieldModule, imports: [[
|
|
53
|
+
CommonModule,
|
|
54
|
+
ReactiveFormsModule,
|
|
55
|
+
NativeScriptFormsModule,
|
|
56
|
+
FormlyNsFormFieldModule,
|
|
57
|
+
FormlySelectModule,
|
|
58
|
+
FormlyModule.forChild({
|
|
59
|
+
types: [
|
|
60
|
+
{
|
|
61
|
+
name: 'select',
|
|
62
|
+
component: FormlyFieldSelect,
|
|
63
|
+
wrappers: ['form-field'],
|
|
64
|
+
},
|
|
65
|
+
{ name: 'enum', extends: 'select' },
|
|
66
|
+
],
|
|
67
|
+
}),
|
|
68
|
+
]] });
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsSelectFieldModule, decorators: [{
|
|
70
|
+
type: NgModule,
|
|
71
|
+
args: [{
|
|
72
|
+
declarations: [FormlyFieldSelect],
|
|
73
|
+
imports: [
|
|
74
|
+
CommonModule,
|
|
75
|
+
ReactiveFormsModule,
|
|
76
|
+
NativeScriptFormsModule,
|
|
77
|
+
FormlyNsFormFieldModule,
|
|
78
|
+
FormlySelectModule,
|
|
79
|
+
FormlyModule.forChild({
|
|
80
|
+
types: [
|
|
81
|
+
{
|
|
82
|
+
name: 'select',
|
|
83
|
+
component: FormlyFieldSelect,
|
|
84
|
+
wrappers: ['form-field'],
|
|
85
|
+
},
|
|
86
|
+
{ name: 'enum', extends: 'select' },
|
|
87
|
+
],
|
|
88
|
+
}),
|
|
89
|
+
],
|
|
90
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
91
|
+
}]
|
|
92
|
+
}] });
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Generated bundle index. Do not edit.
|
|
96
|
+
*/
|
|
97
|
+
|
|
98
|
+
export { FormlyNsSelectFieldModule };
|
|
99
|
+
//# 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.module.ts","../../../../src/ui/nativescript/select/src/ngx-formly-nativescript-select.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\nimport { action } from '@nativescript/core/ui/dialogs';\n\n@Component({\n selector: 'formly-field-ns-select',\n template: `\n <ng-container *ngIf=\"to.options | formlySelectOptions: field | async as options\">\n <Button (tap)=\"tap(options)\" [text]=\"selectedItem(options)\"></Button>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldSelect extends FieldType {\n tap(options) {\n action({ title: this.to.label, actions: options.map((o) => o.label) }).then((selectedAction) =>\n this.formControl.patchValue(options.find((o) => o.label === selectedAction).value),\n );\n }\n\n selectedItem(options) {\n if (this.formControl.value) {\n return options.find((o) => o.value === this.formControl.value).label;\n }\n\n return this.to.placeholder;\n }\n}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n { name: 'enum', extends: 'select' },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsSelectFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAaa,iBAAkB,SAAQ,SAAS;IAC9C,GAAG,CAAC,OAAO;QACT,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,cAAc,KACzF,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,cAAc,CAAC,CAAC,KAAK,CAAC,CACnF,CAAC;KACH;IAED,YAAY,CAAC,OAAO;QAClB,IAAI,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE;YAC1B,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC;SACtE;QAED,OAAO,IAAI,CAAC,EAAE,CAAC,WAAW,CAAC;KAC5B;;8GAbU,iBAAiB;kGAAjB,iBAAiB,qFAPlB;;;;GAIT;2FAGU,iBAAiB;kBAT7B,SAAS;mBAAC;oBACT,QAAQ,EAAE,wBAAwB;oBAClC,QAAQ,EAAE;;;;GAIT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCoBY,yBAAyB;;sHAAzB,yBAAyB;uHAAzB,yBAAyB,iBArBrB,iBAAiB,aAE9B,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,uBAAuB;QACvB,kBAAkB;uHAcT,yBAAyB,YApB3B;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;YACvB,kBAAkB;YAClB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,QAAQ;wBACd,SAAS,EAAE,iBAAiB;wBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;oBACD,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;iBACpC;aACF,CAAC;SACH;2FAGU,yBAAyB;kBAtBrC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;oBACjC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,QAAQ;oCACd,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;gCACD,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;6BACpC;yBACF,CAAC;qBACH;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;AC/BD;;;;;;"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i2 from '@ngx-formly/core';
|
|
5
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
6
|
+
import * as i3 from '@angular/forms';
|
|
7
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import * as i1 from '@nativescript/angular';
|
|
9
|
+
import { NativeScriptFormsModule } from '@nativescript/angular';
|
|
10
|
+
import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
|
|
11
|
+
|
|
12
|
+
class FormlyFieldText extends FieldType {
|
|
13
|
+
}
|
|
14
|
+
FormlyFieldText.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldText, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
FormlyFieldText.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyFieldText, selector: "formly-field-ns-input", usesInheritance: true, ngImport: i0, template: `
|
|
16
|
+
<TextField
|
|
17
|
+
class="input"
|
|
18
|
+
[formlyAttributes]="field"
|
|
19
|
+
[formControl]="formControl"
|
|
20
|
+
[autocorrect]="to.autocorrect"
|
|
21
|
+
[secure]="to.secure"
|
|
22
|
+
[hint]="to.hint"
|
|
23
|
+
[keyboardType]="to.keyboardType"
|
|
24
|
+
>
|
|
25
|
+
</TextField>
|
|
26
|
+
`, isInline: true, directives: [{ type: i1.TextValueAccessor, selector: "TextField[ngModel],TextField[formControlName],TextField[formControl],textField[ngModel],textField[formControlName],textField[formControl],textfield[ngModel],textfield[formControlName],textfield[formControl],text-field[ngModel],text-field[formControlName],text-field[formControl],TextView[ngModel],TextView[formControlName],TextView[formControl],textView[ngModel],textView[formControlName],textView[formControl],textview[ngModel],textview[formControlName],textview[formControl],text-view[ngModel],text-view[formControlName],text-view[formControl],SearchBar[ngModel],SearchBar[formControlName],SearchBar[formControl],searchBar[ngModel],searchBar[formControlName],searchBar[formControl],searchbar[ngModel],searchbar[formControlName],searchbar[formControl],search-bar[ngModel], search-bar[formControlName],search-bar[formControl]" }, { type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldText, 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]="to.autocorrect"
|
|
37
|
+
[secure]="to.secure"
|
|
38
|
+
[hint]="to.hint"
|
|
39
|
+
[keyboardType]="to.keyboardType"
|
|
40
|
+
>
|
|
41
|
+
</TextField>
|
|
42
|
+
`,
|
|
43
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
44
|
+
}]
|
|
45
|
+
}] });
|
|
46
|
+
|
|
47
|
+
class FormlyNsTextFieldModule {
|
|
48
|
+
}
|
|
49
|
+
FormlyNsTextFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsTextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
50
|
+
FormlyNsTextFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsTextFieldModule, declarations: [FormlyFieldText], imports: [CommonModule,
|
|
51
|
+
ReactiveFormsModule,
|
|
52
|
+
NativeScriptFormsModule,
|
|
53
|
+
FormlyNsFormFieldModule, i2.FormlyModule] });
|
|
54
|
+
FormlyNsTextFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsTextFieldModule, imports: [[
|
|
55
|
+
CommonModule,
|
|
56
|
+
ReactiveFormsModule,
|
|
57
|
+
NativeScriptFormsModule,
|
|
58
|
+
FormlyNsFormFieldModule,
|
|
59
|
+
FormlyModule.forChild({
|
|
60
|
+
types: [
|
|
61
|
+
{
|
|
62
|
+
name: 'text-field',
|
|
63
|
+
component: FormlyFieldText,
|
|
64
|
+
wrappers: ['form-field'],
|
|
65
|
+
},
|
|
66
|
+
{ name: 'input', extends: 'text-field' },
|
|
67
|
+
{ name: 'string', extends: 'input' },
|
|
68
|
+
{
|
|
69
|
+
name: 'number',
|
|
70
|
+
extends: 'input',
|
|
71
|
+
defaultOptions: {
|
|
72
|
+
templateOptions: {
|
|
73
|
+
type: 'number',
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'integer',
|
|
79
|
+
extends: 'input',
|
|
80
|
+
defaultOptions: {
|
|
81
|
+
templateOptions: {
|
|
82
|
+
type: 'number',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
],
|
|
87
|
+
}),
|
|
88
|
+
]] });
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsTextFieldModule, decorators: [{
|
|
90
|
+
type: NgModule,
|
|
91
|
+
args: [{
|
|
92
|
+
declarations: [FormlyFieldText],
|
|
93
|
+
imports: [
|
|
94
|
+
CommonModule,
|
|
95
|
+
ReactiveFormsModule,
|
|
96
|
+
NativeScriptFormsModule,
|
|
97
|
+
FormlyNsFormFieldModule,
|
|
98
|
+
FormlyModule.forChild({
|
|
99
|
+
types: [
|
|
100
|
+
{
|
|
101
|
+
name: 'text-field',
|
|
102
|
+
component: FormlyFieldText,
|
|
103
|
+
wrappers: ['form-field'],
|
|
104
|
+
},
|
|
105
|
+
{ name: 'input', extends: 'text-field' },
|
|
106
|
+
{ name: 'string', extends: 'input' },
|
|
107
|
+
{
|
|
108
|
+
name: 'number',
|
|
109
|
+
extends: 'input',
|
|
110
|
+
defaultOptions: {
|
|
111
|
+
templateOptions: {
|
|
112
|
+
type: 'number',
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: 'integer',
|
|
118
|
+
extends: 'input',
|
|
119
|
+
defaultOptions: {
|
|
120
|
+
templateOptions: {
|
|
121
|
+
type: 'number',
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
],
|
|
126
|
+
}),
|
|
127
|
+
],
|
|
128
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
129
|
+
}]
|
|
130
|
+
}] });
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Generated bundle index. Do not edit.
|
|
134
|
+
*/
|
|
135
|
+
|
|
136
|
+
export { FormlyNsTextFieldModule };
|
|
137
|
+
//# 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.module.ts","../../../../src/ui/nativescript/text-field/src/ngx-formly-nativescript-text-field.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ns-input',\n template: `\n <TextField\n class=\"input\"\n [formlyAttributes]=\"field\"\n [formControl]=\"formControl\"\n [autocorrect]=\"to.autocorrect\"\n [secure]=\"to.secure\"\n [hint]=\"to.hint\"\n [keyboardType]=\"to.keyboardType\"\n >\n </TextField>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldText extends FieldType {}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldText } from './text-field.type';\n\n@NgModule({\n declarations: [FormlyFieldText],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'text-field',\n component: FormlyFieldText,\n wrappers: ['form-field'],\n },\n { name: 'input', extends: 'text-field' },\n { name: 'string', extends: 'input' },\n {\n name: 'number',\n extends: 'input',\n defaultOptions: {\n templateOptions: {\n type: 'number',\n },\n },\n },\n {\n name: 'integer',\n extends: 'input',\n defaultOptions: {\n templateOptions: {\n type: 'number',\n },\n },\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsTextFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;MAmBa,eAAgB,SAAQ,SAAS;;4GAAjC,eAAe;gGAAf,eAAe,oFAdhB;;;;;;;;;;;GAWT;2FAGU,eAAe;kBAhB3B,SAAS;mBAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE;;;;;;;;;;;GAWT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MC+BY,uBAAuB;;oHAAvB,uBAAuB;qHAAvB,uBAAuB,iBAvCnB,eAAe,aAE5B,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,uBAAuB;qHAiCd,uBAAuB,YAtCzB;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;YACvB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,YAAY;wBAClB,SAAS,EAAE,eAAe;wBAC1B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;oBACD,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE;oBACxC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;oBACpC;wBACE,IAAI,EAAE,QAAQ;wBACd,OAAO,EAAE,OAAO;wBAChB,cAAc,EAAE;4BACd,eAAe,EAAE;gCACf,IAAI,EAAE,QAAQ;6BACf;yBACF;qBACF;oBACD;wBACE,IAAI,EAAE,SAAS;wBACf,OAAO,EAAE,OAAO;wBAChB,cAAc,EAAE;4BACd,eAAe,EAAE;gCACf,IAAI,EAAE,QAAQ;6BACf;yBACF;qBACF;iBACF;aACF,CAAC;SACH;2FAGU,uBAAuB;kBAxCnC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,eAAe,CAAC;oBAC/B,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,YAAY;oCAClB,SAAS,EAAE,eAAe;oCAC1B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;gCACD,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE;gCACxC,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,OAAO,EAAE;gCACpC;oCACE,IAAI,EAAE,QAAQ;oCACd,OAAO,EAAE,OAAO;oCAChB,cAAc,EAAE;wCACd,eAAe,EAAE;4CACf,IAAI,EAAE,QAAQ;yCACf;qCACF;iCACF;gCACD;oCACE,IAAI,EAAE,SAAS;oCACf,OAAO,EAAE,OAAO;oCAChB,cAAc,EAAE;wCACd,eAAe,EAAE;4CACf,IAAI,EAAE,QAAQ;yCACf;qCACF;iCACF;6BACF;yBACF,CAAC;qBACH;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;AChDD;;;;;;"}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, ChangeDetectionStrategy, NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
|
|
3
|
+
import { CommonModule } from '@angular/common';
|
|
4
|
+
import * as i2 from '@ngx-formly/core';
|
|
5
|
+
import { FieldType, FormlyModule } from '@ngx-formly/core';
|
|
6
|
+
import * as i3 from '@angular/forms';
|
|
7
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
8
|
+
import * as i1 from '@nativescript/angular';
|
|
9
|
+
import { NativeScriptFormsModule } from '@nativescript/angular';
|
|
10
|
+
import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
|
|
11
|
+
|
|
12
|
+
class FormlyFieldTextarea extends FieldType {
|
|
13
|
+
}
|
|
14
|
+
FormlyFieldTextarea.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyFieldTextarea, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
+
FormlyFieldTextarea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.0.2", type: FormlyFieldTextarea, selector: "formly-field-ns-textarea", usesInheritance: true, ngImport: i0, template: `
|
|
16
|
+
<TextView
|
|
17
|
+
class="input"
|
|
18
|
+
[formlyAttributes]="field"
|
|
19
|
+
[formControl]="formControl"
|
|
20
|
+
[hint]="to.hint"
|
|
21
|
+
[autocorrect]="to.autocorrect"
|
|
22
|
+
[keyboardType]="to.keyboardType"
|
|
23
|
+
>
|
|
24
|
+
</TextView>
|
|
25
|
+
`, isInline: true, directives: [{ type: i1.TextValueAccessor, selector: "TextField[ngModel],TextField[formControlName],TextField[formControl],textField[ngModel],textField[formControlName],textField[formControl],textfield[ngModel],textfield[formControlName],textfield[formControl],text-field[ngModel],text-field[formControlName],text-field[formControl],TextView[ngModel],TextView[formControlName],TextView[formControl],textView[ngModel],textView[formControlName],textView[formControl],textview[ngModel],textview[formControlName],textview[formControl],text-view[ngModel],text-view[formControlName],text-view[formControl],SearchBar[ngModel],SearchBar[formControlName],SearchBar[formControl],searchBar[ngModel],searchBar[formControlName],searchBar[formControl],searchbar[ngModel],searchbar[formControlName],searchbar[formControl],search-bar[ngModel], search-bar[formControlName],search-bar[formControl]" }, { type: i2.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", 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]="to.hint"
|
|
36
|
+
[autocorrect]="to.autocorrect"
|
|
37
|
+
[keyboardType]="to.keyboardType"
|
|
38
|
+
>
|
|
39
|
+
</TextView>
|
|
40
|
+
`,
|
|
41
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
42
|
+
}]
|
|
43
|
+
}] });
|
|
44
|
+
|
|
45
|
+
class FormlyNsTextareaFieldModule {
|
|
46
|
+
}
|
|
47
|
+
FormlyNsTextareaFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsTextareaFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
48
|
+
FormlyNsTextareaFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsTextareaFieldModule, declarations: [FormlyFieldTextarea], imports: [CommonModule,
|
|
49
|
+
ReactiveFormsModule,
|
|
50
|
+
NativeScriptFormsModule,
|
|
51
|
+
FormlyNsFormFieldModule, i2.FormlyModule] });
|
|
52
|
+
FormlyNsTextareaFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsTextareaFieldModule, imports: [[
|
|
53
|
+
CommonModule,
|
|
54
|
+
ReactiveFormsModule,
|
|
55
|
+
NativeScriptFormsModule,
|
|
56
|
+
FormlyNsFormFieldModule,
|
|
57
|
+
FormlyModule.forChild({
|
|
58
|
+
types: [
|
|
59
|
+
{
|
|
60
|
+
name: 'textarea',
|
|
61
|
+
component: FormlyFieldTextarea,
|
|
62
|
+
wrappers: ['form-field'],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
}),
|
|
66
|
+
]] });
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.2", ngImport: i0, type: FormlyNsTextareaFieldModule, decorators: [{
|
|
68
|
+
type: NgModule,
|
|
69
|
+
args: [{
|
|
70
|
+
declarations: [FormlyFieldTextarea],
|
|
71
|
+
imports: [
|
|
72
|
+
CommonModule,
|
|
73
|
+
ReactiveFormsModule,
|
|
74
|
+
NativeScriptFormsModule,
|
|
75
|
+
FormlyNsFormFieldModule,
|
|
76
|
+
FormlyModule.forChild({
|
|
77
|
+
types: [
|
|
78
|
+
{
|
|
79
|
+
name: 'textarea',
|
|
80
|
+
component: FormlyFieldTextarea,
|
|
81
|
+
wrappers: ['form-field'],
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
}),
|
|
85
|
+
],
|
|
86
|
+
schemas: [NO_ERRORS_SCHEMA],
|
|
87
|
+
}]
|
|
88
|
+
}] });
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Generated bundle index. Do not edit.
|
|
92
|
+
*/
|
|
93
|
+
|
|
94
|
+
export { FormlyNsTextareaFieldModule };
|
|
95
|
+
//# 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.module.ts","../../../../src/ui/nativescript/textarea/src/ngx-formly-nativescript-textarea.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType } from '@ngx-formly/core';\n\n@Component({\n selector: 'formly-field-ns-textarea',\n template: `\n <TextView\n class=\"input\"\n [formlyAttributes]=\"field\"\n [formControl]=\"formControl\"\n [hint]=\"to.hint\"\n [autocorrect]=\"to.autocorrect\"\n [keyboardType]=\"to.keyboardType\"\n >\n </TextView>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldTextarea extends FieldType {}\n","import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { NativeScriptFormsModule } from '@nativescript/angular';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyFieldTextarea } from './textarea.type';\n\n@NgModule({\n declarations: [FormlyFieldTextarea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextarea,\n wrappers: ['form-field'],\n },\n ],\n }),\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNsTextareaFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;;;MAkBa,mBAAoB,SAAQ,SAAS;;gHAArC,mBAAmB;oGAAnB,mBAAmB,uFAbpB;;;;;;;;;;GAUT;2FAGU,mBAAmB;kBAf/B,SAAS;mBAAC;oBACT,QAAQ,EAAE,0BAA0B;oBACpC,QAAQ,EAAE;;;;;;;;;;GAUT;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAChD;;;MCYY,2BAA2B;;wHAA3B,2BAA2B;yHAA3B,2BAA2B,iBAnBvB,mBAAmB,aAEhC,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,uBAAuB;yHAad,2BAA2B,YAlB7B;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YAEvB,uBAAuB;YACvB,YAAY,CAAC,QAAQ,CAAC;gBACpB,KAAK,EAAE;oBACL;wBACE,IAAI,EAAE,UAAU;wBAChB,SAAS,EAAE,mBAAmB;wBAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;qBACzB;iBACF;aACF,CAAC;SACH;2FAGU,2BAA2B;kBApBvC,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;oBACnC,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;4BACpB,KAAK,EAAE;gCACL;oCACE,IAAI,EAAE,UAAU;oCAChB,SAAS,EAAE,mBAAmB;oCAC9B,QAAQ,EAAE,CAAC,YAAY,CAAC;iCACzB;6BACF;yBACF,CAAC;qBACH;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B;;;AC5BD;;;;;;"}
|