@ngx-formly/nativescript 6.3.10 → 7.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/checkbox/checkbox.config.d.ts +2 -0
- package/checkbox/checkbox.type.d.ts +1 -1
- package/checkbox/public_api.d.ts +1 -0
- package/esm2022/checkbox/checkbox.config.mjs +17 -0
- package/esm2022/checkbox/checkbox.module.mjs +37 -0
- package/{esm2020 → esm2022}/checkbox/checkbox.type.mjs +9 -9
- package/esm2022/checkbox/public_api.mjs +3 -0
- package/esm2022/form-field/form-field.config.mjs +12 -0
- package/esm2022/form-field/form-field.module.mjs +23 -0
- package/{esm2020 → esm2022}/form-field/form-field.wrapper.mjs +8 -8
- package/esm2022/form-field/public_api.mjs +3 -0
- package/esm2022/lib/ui-nativescipt.mjs +3 -0
- package/esm2022/lib/ui-nativescript.config.mjs +17 -0
- package/esm2022/lib/ui-nativescript.module.mjs +38 -0
- package/esm2022/radio/public_api.mjs +3 -0
- package/esm2022/radio/radio.config.mjs +13 -0
- package/esm2022/radio/radio.module.mjs +41 -0
- package/{esm2020 → esm2022}/radio/radio.type.mjs +8 -8
- package/esm2022/select/public_api.mjs +3 -0
- package/esm2022/select/select.config.mjs +14 -0
- package/esm2022/select/select.module.mjs +41 -0
- package/{esm2020 → esm2022}/select/select.type.mjs +8 -8
- package/esm2022/text-field/public_api.mjs +3 -0
- package/esm2022/text-field/text-field.config.mjs +33 -0
- package/esm2022/text-field/text-field.module.mjs +37 -0
- package/{esm2020 → esm2022}/text-field/text-field.type.mjs +9 -9
- package/esm2022/textarea/public_api.mjs +6 -0
- package/esm2022/textarea/textarea.config.mjs +13 -0
- package/esm2022/textarea/textarea.module.mjs +37 -0
- package/{esm2020 → esm2022}/textarea/textarea.type.mjs +9 -9
- package/fesm2022/ngx-formly-nativescript-checkbox.mjs +91 -0
- package/fesm2022/ngx-formly-nativescript-checkbox.mjs.map +1 -0
- package/fesm2022/ngx-formly-nativescript-form-field.mjs +76 -0
- package/fesm2022/ngx-formly-nativescript-form-field.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-nativescript-radio.mjs +33 -39
- package/fesm2022/ngx-formly-nativescript-radio.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ngx-formly-nativescript-select.mjs +35 -42
- package/fesm2022/ngx-formly-nativescript-select.mjs.map +1 -0
- package/fesm2022/ngx-formly-nativescript-text-field.mjs +111 -0
- package/fesm2022/ngx-formly-nativescript-text-field.mjs.map +1 -0
- package/fesm2022/ngx-formly-nativescript-textarea.mjs +92 -0
- package/fesm2022/ngx-formly-nativescript-textarea.mjs.map +1 -0
- package/fesm2022/ngx-formly-nativescript.mjs +60 -0
- package/fesm2022/ngx-formly-nativescript.mjs.map +1 -0
- package/form-field/form-field.config.d.ts +2 -0
- package/form-field/form-field.wrapper.d.ts +1 -1
- package/form-field/public_api.d.ts +1 -0
- package/lib/ui-nativescipt.d.ts +1 -0
- package/lib/ui-nativescript.config.d.ts +1 -0
- package/package.json +33 -51
- package/radio/public_api.d.ts +1 -0
- package/radio/radio.config.d.ts +2 -0
- package/radio/radio.type.d.ts +2 -3
- package/select/public_api.d.ts +1 -0
- package/select/select.config.d.ts +2 -0
- package/select/select.type.d.ts +1 -1
- package/text-field/public_api.d.ts +1 -0
- package/text-field/text-field.config.d.ts +2 -0
- package/text-field/text-field.type.d.ts +1 -1
- package/textarea/public_api.d.ts +1 -0
- package/textarea/textarea.config.d.ts +2 -0
- package/textarea/textarea.type.d.ts +1 -1
- package/checkbox/package.json +0 -10
- package/esm2020/checkbox/checkbox.module.mjs +0 -62
- package/esm2020/checkbox/public_api.mjs +0 -2
- package/esm2020/form-field/form-field.module.mjs +0 -48
- package/esm2020/form-field/public_api.mjs +0 -2
- package/esm2020/lib/ui-nativescipt.mjs +0 -2
- package/esm2020/lib/ui-nativescript.module.mjs +0 -40
- package/esm2020/radio/public_api.mjs +0 -2
- package/esm2020/radio/radio.module.mjs +0 -58
- package/esm2020/select/public_api.mjs +0 -2
- package/esm2020/select/select.module.mjs +0 -60
- package/esm2020/text-field/public_api.mjs +0 -2
- package/esm2020/text-field/text-field.module.mjs +0 -94
- package/esm2020/textarea/public_api.mjs +0 -5
- package/esm2020/textarea/textarea.module.mjs +0 -54
- package/fesm2015/ngx-formly-nativescript-checkbox.mjs +0 -101
- package/fesm2015/ngx-formly-nativescript-checkbox.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript-form-field.mjs +0 -91
- package/fesm2015/ngx-formly-nativescript-form-field.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript-radio.mjs +0 -102
- package/fesm2015/ngx-formly-nativescript-radio.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript-select.mjs +0 -99
- package/fesm2015/ngx-formly-nativescript-select.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript-text-field.mjs +0 -137
- package/fesm2015/ngx-formly-nativescript-text-field.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript-textarea.mjs +0 -98
- package/fesm2015/ngx-formly-nativescript-textarea.mjs.map +0 -1
- package/fesm2015/ngx-formly-nativescript.mjs +0 -51
- package/fesm2015/ngx-formly-nativescript.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-checkbox.mjs +0 -101
- package/fesm2020/ngx-formly-nativescript-checkbox.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-form-field.mjs +0 -91
- package/fesm2020/ngx-formly-nativescript-form-field.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-radio.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-select.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-text-field.mjs +0 -137
- package/fesm2020/ngx-formly-nativescript-text-field.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript-textarea.mjs +0 -98
- package/fesm2020/ngx-formly-nativescript-textarea.mjs.map +0 -1
- package/fesm2020/ngx-formly-nativescript.mjs +0 -51
- package/fesm2020/ngx-formly-nativescript.mjs.map +0 -1
- package/form-field/package.json +0 -10
- package/radio/package.json +0 -10
- package/select/package.json +0 -10
- package/text-field/package.json +0 -10
- package/textarea/package.json +0 -10
- /package/checkbox/{ngx-formly-nativescript-checkbox.d.ts → index.d.ts} +0 -0
- /package/{esm2020 → esm2022}/checkbox/ngx-formly-nativescript-checkbox.mjs +0 -0
- /package/{esm2020 → esm2022}/form-field/ngx-formly-nativescript-form-field.mjs +0 -0
- /package/{esm2020 → esm2022}/ngx-formly-nativescript.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/radio/ngx-formly-nativescript-radio.mjs +0 -0
- /package/{esm2020 → esm2022}/select/ngx-formly-nativescript-select.mjs +0 -0
- /package/{esm2020 → esm2022}/text-field/ngx-formly-nativescript-text-field.mjs +0 -0
- /package/{esm2020 → esm2022}/textarea/ngx-formly-nativescript-textarea.mjs +0 -0
- /package/form-field/{ngx-formly-nativescript-form-field.d.ts → index.d.ts} +0 -0
- /package/{ngx-formly-nativescript.d.ts → index.d.ts} +0 -0
- /package/radio/{ngx-formly-nativescript-radio.d.ts → index.d.ts} +0 -0
- /package/select/{ngx-formly-nativescript-select.d.ts → index.d.ts} +0 -0
- /package/text-field/{ngx-formly-nativescript-text-field.d.ts → index.d.ts} +0 -0
- /package/textarea/{ngx-formly-nativescript-textarea.d.ts → index.d.ts} +0 -0
|
@@ -1,101 +0,0 @@
|
|
|
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 FormlyFieldCheckbox extends FieldType {
|
|
13
|
-
constructor() {
|
|
14
|
-
super(...arguments);
|
|
15
|
-
this.defaultOptions = {
|
|
16
|
-
props: {
|
|
17
|
-
hideLabel: true,
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
FormlyFieldCheckbox.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
FormlyFieldCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldCheckbox, selector: "formly-field-ns-checkbox", usesInheritance: true, ngImport: i0, template: `
|
|
24
|
-
<GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
|
|
25
|
-
<Label class="label" [text]="props.label"></Label>
|
|
26
|
-
<Switch class="switch input" [formlyAttributes]="field" [formControl]="formControl" col="1"></Switch>
|
|
27
|
-
</GridLayout>
|
|
28
|
-
`, isInline: true, directives: [{ type: i1.CheckedValueAccessor, selector: "Switch[ngModel],Switch[formControlName],Switch[formControl],switch[ngModel],switch[formControlName],switch[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 });
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldCheckbox, decorators: [{
|
|
30
|
-
type: Component,
|
|
31
|
-
args: [{
|
|
32
|
-
selector: 'formly-field-ns-checkbox',
|
|
33
|
-
template: `
|
|
34
|
-
<GridLayout class="input-field input-sides" rows="auto, auto" columns="*,*">
|
|
35
|
-
<Label class="label" [text]="props.label"></Label>
|
|
36
|
-
<Switch class="switch input" [formlyAttributes]="field" [formControl]="formControl" col="1"></Switch>
|
|
37
|
-
</GridLayout>
|
|
38
|
-
`,
|
|
39
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40
|
-
}]
|
|
41
|
-
}] });
|
|
42
|
-
|
|
43
|
-
class FormlyNsCheckboxFieldModule {
|
|
44
|
-
}
|
|
45
|
-
FormlyNsCheckboxFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsCheckboxFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
46
|
-
FormlyNsCheckboxFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsCheckboxFieldModule, declarations: [FormlyFieldCheckbox], imports: [CommonModule,
|
|
47
|
-
ReactiveFormsModule,
|
|
48
|
-
NativeScriptFormsModule,
|
|
49
|
-
FormlyNsFormFieldModule, i2.FormlyModule] });
|
|
50
|
-
FormlyNsCheckboxFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsCheckboxFieldModule, imports: [[
|
|
51
|
-
CommonModule,
|
|
52
|
-
ReactiveFormsModule,
|
|
53
|
-
NativeScriptFormsModule,
|
|
54
|
-
FormlyNsFormFieldModule,
|
|
55
|
-
FormlyModule.forChild({
|
|
56
|
-
types: [
|
|
57
|
-
{
|
|
58
|
-
name: 'checkbox',
|
|
59
|
-
component: FormlyFieldCheckbox,
|
|
60
|
-
wrappers: ['form-field'],
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
name: 'boolean',
|
|
64
|
-
extends: 'checkbox',
|
|
65
|
-
},
|
|
66
|
-
],
|
|
67
|
-
}),
|
|
68
|
-
]] });
|
|
69
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsCheckboxFieldModule, decorators: [{
|
|
70
|
-
type: NgModule,
|
|
71
|
-
args: [{
|
|
72
|
-
declarations: [FormlyFieldCheckbox],
|
|
73
|
-
imports: [
|
|
74
|
-
CommonModule,
|
|
75
|
-
ReactiveFormsModule,
|
|
76
|
-
NativeScriptFormsModule,
|
|
77
|
-
FormlyNsFormFieldModule,
|
|
78
|
-
FormlyModule.forChild({
|
|
79
|
-
types: [
|
|
80
|
-
{
|
|
81
|
-
name: 'checkbox',
|
|
82
|
-
component: FormlyFieldCheckbox,
|
|
83
|
-
wrappers: ['form-field'],
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
name: 'boolean',
|
|
87
|
-
extends: 'checkbox',
|
|
88
|
-
},
|
|
89
|
-
],
|
|
90
|
-
}),
|
|
91
|
-
],
|
|
92
|
-
schemas: [NO_ERRORS_SCHEMA],
|
|
93
|
-
}]
|
|
94
|
-
}] });
|
|
95
|
-
|
|
96
|
-
/**
|
|
97
|
-
* Generated bundle index. Do not edit.
|
|
98
|
-
*/
|
|
99
|
-
|
|
100
|
-
export { FormlyNsCheckboxFieldModule };
|
|
101
|
-
//# sourceMappingURL=ngx-formly-nativescript-checkbox.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';\n\ninterface CheckboxProps extends FormlyFieldProps {}\n\nexport interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {\n type: 'checkbox' | Type<FormlyFieldCheckbox>;\n}\n\n@Component({\n selector: 'formly-field-ns-checkbox',\n template: `\n <GridLayout class=\"input-field input-sides\" rows=\"auto, auto\" columns=\"*,*\">\n <Label class=\"label\" [text]=\"props.label\"></Label>\n <Switch class=\"switch input\" [formlyAttributes]=\"field\" [formControl]=\"formControl\" col=\"1\"></Switch>\n </GridLayout>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {\n override defaultOptions = {\n props: {\n hideLabel: true,\n },\n };\n}\n","import { 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":["i1"],"mappings":";;;;;;;;;;;AAoBM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AAVlF,IAAA,WAAA,GAAA;;QAWW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,SAAS,EAAE,I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zB,iCAAA;AACD,gCAAA;AACE,oCAAA,IAAI,EAAE,SAAS;AACf,oCAAA,OAAO,EAAE,UAAU;AACpB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B,CAAA;;;AChCD;;AAEG;;;;"}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, 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.3.12", ngImport: i0, type: FormlyWrapperFormField, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
13
|
-
FormlyWrapperFormField.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyWrapperFormField, selector: "formly-wrapper-ns-form-field", usesInheritance: true, ngImport: i0, template: `
|
|
14
|
-
<StackLayout class="form">
|
|
15
|
-
<StackLayout class="input-field">
|
|
16
|
-
<Label *ngIf="props.label && props.hideLabel !== true" class="label" [text]="props.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"] }] });
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyWrapperFormField, decorators: [{
|
|
27
|
-
type: Component,
|
|
28
|
-
args: [{
|
|
29
|
-
selector: 'formly-wrapper-ns-form-field',
|
|
30
|
-
template: `
|
|
31
|
-
<StackLayout class="form">
|
|
32
|
-
<StackLayout class="input-field">
|
|
33
|
-
<Label *ngIf="props.label && props.hideLabel !== true" class="label" [text]="props.label"></Label>
|
|
34
|
-
<ng-container #fieldComponent></ng-container>
|
|
35
|
-
<StackLayout class="hr-light"></StackLayout>
|
|
36
|
-
<ng-container *ngIf="showError">
|
|
37
|
-
<formly-validation-message #validationMessage [field]="field"></formly-validation-message>
|
|
38
|
-
<Label class="text-danger" [text]="validationMessage.errorMessage"></Label>
|
|
39
|
-
</ng-container>
|
|
40
|
-
</StackLayout>
|
|
41
|
-
</StackLayout>
|
|
42
|
-
`,
|
|
43
|
-
}]
|
|
44
|
-
}] });
|
|
45
|
-
|
|
46
|
-
class FormlyNsFormFieldModule {
|
|
47
|
-
}
|
|
48
|
-
FormlyNsFormFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsFormFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
49
|
-
FormlyNsFormFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsFormFieldModule, declarations: [FormlyWrapperFormField], imports: [CommonModule,
|
|
50
|
-
ReactiveFormsModule,
|
|
51
|
-
NativeScriptFormsModule, i1.FormlyModule] });
|
|
52
|
-
FormlyNsFormFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsFormFieldModule, imports: [[
|
|
53
|
-
CommonModule,
|
|
54
|
-
ReactiveFormsModule,
|
|
55
|
-
NativeScriptFormsModule,
|
|
56
|
-
FormlyModule.forChild({
|
|
57
|
-
wrappers: [
|
|
58
|
-
{
|
|
59
|
-
name: 'form-field',
|
|
60
|
-
component: FormlyWrapperFormField,
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
}),
|
|
64
|
-
]] });
|
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsFormFieldModule, decorators: [{
|
|
66
|
-
type: NgModule,
|
|
67
|
-
args: [{
|
|
68
|
-
declarations: [FormlyWrapperFormField],
|
|
69
|
-
imports: [
|
|
70
|
-
CommonModule,
|
|
71
|
-
ReactiveFormsModule,
|
|
72
|
-
NativeScriptFormsModule,
|
|
73
|
-
FormlyModule.forChild({
|
|
74
|
-
wrappers: [
|
|
75
|
-
{
|
|
76
|
-
name: 'form-field',
|
|
77
|
-
component: FormlyWrapperFormField,
|
|
78
|
-
},
|
|
79
|
-
],
|
|
80
|
-
}),
|
|
81
|
-
],
|
|
82
|
-
schemas: [NO_ERRORS_SCHEMA],
|
|
83
|
-
}]
|
|
84
|
-
}] });
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* Generated bundle index. Do not edit.
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
export { FormlyNsFormFieldModule };
|
|
91
|
-
//# sourceMappingURL=ngx-formly-nativescript-form-field.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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 } from '@angular/core';\nimport { FieldWrapper, FormlyFieldConfig, FormlyFieldProps as CoreFormlyFieldProps } from '@ngx-formly/core';\n\nexport interface FormlyFieldProps extends CoreFormlyFieldProps {\n hideLabel?: boolean;\n}\n\n@Component({\n selector: 'formly-wrapper-ns-form-field',\n template: `\n <StackLayout class=\"form\">\n <StackLayout class=\"input-field\">\n <Label *ngIf=\"props.label && props.hideLabel !== true\" class=\"label\" [text]=\"props.label\"></Label>\n <ng-container #fieldComponent></ng-container>\n <StackLayout class=\"hr-light\"></StackLayout>\n <ng-container *ngIf=\"showError\">\n <formly-validation-message #validationMessage [field]=\"field\"></formly-validation-message>\n <Label class=\"text-danger\" [text]=\"validationMessage.errorMessage\"></Label>\n </ng-container>\n </StackLayout>\n </StackLayout>\n `,\n})\nexport class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {}\n","import { 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":";;;;;;;;;AAuBM,MAAO,sBAAuB,SAAQ,YAAiD,CAAA;;oHAAhF,sBAAsB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,sBAAA,CAAA,IAAA,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AA;YACP,YAAY;YACZ,mBAAmB;YACnB,uBAAuB;YACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,gBAAA,QAAQ,EAAE;AACR,oBAAA;AACE,wBAAA,IAAI,EAAE,YAAY;AAClB,wBAAA,SAAS,EAAE,sBAAsB;AAClC,qBAAA;AACF,iBAAA;aACF,CAAC;SACH,CAAA,EAAA,CAAA,CAAA;4FAGU,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAjBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,sBAAsB,CAAC;AACtC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBACvB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,sBAAsB;AAClC,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B,CAAA;;;ACvBD;;AAEG;;;;"}
|
|
@@ -1,102 +0,0 @@
|
|
|
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.3.12", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldRadio, selector: "formly-field-ns-radio", usesInheritance: true, ngImport: i0, template: `
|
|
24
|
-
<ng-container *ngFor="let option of props.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.3.12", 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 props.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.3.12", ngImport: i0, type: FormlyNsRadioFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
52
|
-
FormlyNsRadioFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", 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.3.12", 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.3.12", 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
|
|
@@ -1 +0,0 @@
|
|
|
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, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';\n\ninterface RadioProps extends FormlyFieldProps {}\n\nexport interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {\n type: 'radio' | Type<FormlyFieldRadio>;\n}\n\n@Component({\n selector: 'formly-field-ns-radio',\n template: `\n <ng-container *ngFor=\"let option of props.options | formlySelectOptions : field | async\">\n <GridLayout class=\"input-field input-sides\" rows=\"auto, auto\" columns=\"*,*\">\n <Label class=\"label\" [text]=\"option.label\"></Label>\n <Switch col=\"1\" class=\"switch input\" [checked]=\"formControl.value === option.value\" (tap)=\"tap(option.value)\">\n </Switch>\n </GridLayout>\n </ng-container>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {\n tap(id: any) {\n const value = this.formControl.value === id ? null : id;\n setTimeout(() => {\n this.formControl.patchValue(value);\n this.formControl.markAsTouched();\n }, 100);\n }\n}\n","import { 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":["i1"],"mappings":";;;;;;;;;;;;AAuBM,MAAO,gBAAiB,SAAQ,SAAsC,CAAA;AAC1E,IAAA,GAAG,CAAC,EAAO,EAAA;AACT,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,KAAK,EAAE,GAAG,IAAI,GAAG,EAAE,CAAC;QACxD,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;AACnC,YAAA,IAAI,C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/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.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
|
-
}
|
|
25
|
-
FormlyFieldSelect.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
26
|
-
FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldSelect, selector: "formly-field-ns-select", usesInheritance: true, ngImport: i0, template: `
|
|
27
|
-
<ng-container *ngIf="props.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.3.12", 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
|
-
class FormlyNsSelectFieldModule {
|
|
45
|
-
}
|
|
46
|
-
FormlyNsSelectFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsSelectFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
47
|
-
FormlyNsSelectFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", 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.3.12", 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.3.12", 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
|
|
@@ -1 +0,0 @@
|
|
|
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, 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 { 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 FormlyNs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,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,qBAAA;AACD,oBAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,iBAAA;aACF,CAAC;SACH,CAAA,EAAA,CAAA,CAAA;4FAGU,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAtBrC,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;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B,CAAA;;;AC/BD;;AAEG;;;;"}
|
|
@@ -1,137 +0,0 @@
|
|
|
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 FormlyFieldInput extends FieldType {
|
|
13
|
-
}
|
|
14
|
-
FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
15
|
-
FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.12", type: FormlyFieldInput, selector: "formly-field-ns-input", usesInheritance: true, ngImport: i0, template: `
|
|
16
|
-
<TextField
|
|
17
|
-
class="input"
|
|
18
|
-
[formlyAttributes]="field"
|
|
19
|
-
[formControl]="formControl"
|
|
20
|
-
[autocorrect]="props.autocorrect"
|
|
21
|
-
[secure]="props.secure"
|
|
22
|
-
[hint]="props.hint"
|
|
23
|
-
[keyboardType]="props.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.3.12", 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
|
-
class FormlyNsTextFieldModule {
|
|
48
|
-
}
|
|
49
|
-
FormlyNsTextFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsTextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
50
|
-
FormlyNsTextFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsTextFieldModule, declarations: [FormlyFieldInput], imports: [CommonModule,
|
|
51
|
-
ReactiveFormsModule,
|
|
52
|
-
NativeScriptFormsModule,
|
|
53
|
-
FormlyNsFormFieldModule, i2.FormlyModule] });
|
|
54
|
-
FormlyNsTextFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.12", 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: FormlyFieldInput,
|
|
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
|
-
props: {
|
|
73
|
-
type: 'number',
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
name: 'integer',
|
|
79
|
-
extends: 'input',
|
|
80
|
-
defaultOptions: {
|
|
81
|
-
props: {
|
|
82
|
-
type: 'number',
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
],
|
|
87
|
-
}),
|
|
88
|
-
]] });
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.12", ngImport: i0, type: FormlyNsTextFieldModule, decorators: [{
|
|
90
|
-
type: NgModule,
|
|
91
|
-
args: [{
|
|
92
|
-
declarations: [FormlyFieldInput],
|
|
93
|
-
imports: [
|
|
94
|
-
CommonModule,
|
|
95
|
-
ReactiveFormsModule,
|
|
96
|
-
NativeScriptFormsModule,
|
|
97
|
-
FormlyNsFormFieldModule,
|
|
98
|
-
FormlyModule.forChild({
|
|
99
|
-
types: [
|
|
100
|
-
{
|
|
101
|
-
name: 'text-field',
|
|
102
|
-
component: FormlyFieldInput,
|
|
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
|
-
props: {
|
|
112
|
-
type: 'number',
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: 'integer',
|
|
118
|
-
extends: 'input',
|
|
119
|
-
defaultOptions: {
|
|
120
|
-
props: {
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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, 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 { 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';\n\n@NgModule({\n declarations: [FormlyFieldInput],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NativeScriptFormsModule,\n\n FormlyNsFormFieldModule,\n FormlyModule.forChild({\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 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;;8GAA/D,gBAAgB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,gBAAA,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,CAAA;;;;;;;;;;;GAWT,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,QAAA,EAAA,2zBAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,iBAAA,EAAA,Q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