@ngx-formly/nativescript 5.12.3 → 6.0.0-beta.2

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.
Files changed (208) hide show
  1. package/README.md +9 -6
  2. package/checkbox/checkbox.module.d.ts +10 -0
  3. package/checkbox/checkbox.type.d.ts +14 -3
  4. package/checkbox/ngx-formly-nativescript-checkbox.d.ts +1 -1
  5. package/checkbox/package.json +6 -9
  6. package/checkbox/public_api.d.ts +1 -0
  7. package/esm2020/checkbox/checkbox.module.mjs +62 -0
  8. package/esm2020/checkbox/checkbox.type.mjs +37 -0
  9. package/esm2020/checkbox/ngx-formly-nativescript-checkbox.mjs +5 -0
  10. package/esm2020/checkbox/public_api.mjs +2 -0
  11. package/esm2020/form-field/form-field.module.mjs +48 -0
  12. package/esm2020/form-field/form-field.wrapper.mjs +41 -0
  13. package/esm2020/form-field/ngx-formly-nativescript-form-field.mjs +5 -0
  14. package/esm2020/form-field/public_api.mjs +2 -0
  15. package/esm2020/lib/ui-nativescipt.mjs +2 -0
  16. package/esm2020/lib/ui-nativescript.module.mjs +25 -0
  17. package/esm2020/ngx-formly-nativescript.mjs +5 -0
  18. package/esm2020/public_api.mjs +5 -0
  19. package/esm2020/radio/ngx-formly-nativescript-radio.mjs +5 -0
  20. package/esm2020/radio/public_api.mjs +2 -0
  21. package/esm2020/radio/radio.module.mjs +58 -0
  22. package/esm2020/radio/radio.type.mjs +41 -0
  23. package/esm2020/select/ngx-formly-nativescript-select.mjs +5 -0
  24. package/esm2020/select/public_api.mjs +2 -0
  25. package/esm2020/select/select.module.mjs +60 -0
  26. package/esm2020/select/select.type.mjs +36 -0
  27. package/esm2020/text-field/ngx-formly-nativescript-text-field.mjs +5 -0
  28. package/esm2020/text-field/public_api.mjs +2 -0
  29. package/esm2020/text-field/text-field.module.mjs +94 -0
  30. package/esm2020/text-field/text-field.type.mjs +41 -0
  31. package/esm2020/textarea/ngx-formly-nativescript-textarea.mjs +5 -0
  32. package/esm2020/textarea/public_api.mjs +5 -0
  33. package/esm2020/textarea/textarea.module.mjs +54 -0
  34. package/esm2020/textarea/textarea.type.mjs +39 -0
  35. package/fesm2015/ngx-formly-nativescript-checkbox.mjs +101 -0
  36. package/fesm2015/ngx-formly-nativescript-checkbox.mjs.map +1 -0
  37. package/fesm2015/ngx-formly-nativescript-form-field.mjs +91 -0
  38. package/fesm2015/ngx-formly-nativescript-form-field.mjs.map +1 -0
  39. package/fesm2015/ngx-formly-nativescript-radio.mjs +102 -0
  40. package/fesm2015/ngx-formly-nativescript-radio.mjs.map +1 -0
  41. package/fesm2015/ngx-formly-nativescript-select.mjs +99 -0
  42. package/fesm2015/ngx-formly-nativescript-select.mjs.map +1 -0
  43. package/fesm2015/ngx-formly-nativescript-text-field.mjs +137 -0
  44. package/fesm2015/ngx-formly-nativescript-text-field.mjs.map +1 -0
  45. package/fesm2015/ngx-formly-nativescript-textarea.mjs +98 -0
  46. package/fesm2015/ngx-formly-nativescript-textarea.mjs.map +1 -0
  47. package/fesm2015/ngx-formly-nativescript.mjs +35 -0
  48. package/fesm2015/ngx-formly-nativescript.mjs.map +1 -0
  49. package/fesm2020/ngx-formly-nativescript-checkbox.mjs +101 -0
  50. package/fesm2020/ngx-formly-nativescript-checkbox.mjs.map +1 -0
  51. package/fesm2020/ngx-formly-nativescript-form-field.mjs +91 -0
  52. package/fesm2020/ngx-formly-nativescript-form-field.mjs.map +1 -0
  53. package/fesm2020/ngx-formly-nativescript-radio.mjs +102 -0
  54. package/fesm2020/ngx-formly-nativescript-radio.mjs.map +1 -0
  55. package/fesm2020/ngx-formly-nativescript-select.mjs +99 -0
  56. package/fesm2020/ngx-formly-nativescript-select.mjs.map +1 -0
  57. package/fesm2020/ngx-formly-nativescript-text-field.mjs +137 -0
  58. package/fesm2020/ngx-formly-nativescript-text-field.mjs.map +1 -0
  59. package/fesm2020/ngx-formly-nativescript-textarea.mjs +98 -0
  60. package/fesm2020/ngx-formly-nativescript-textarea.mjs.map +1 -0
  61. package/fesm2020/ngx-formly-nativescript.mjs +35 -0
  62. package/fesm2020/ngx-formly-nativescript.mjs.map +1 -0
  63. package/form-field/form-field.module.d.ts +9 -0
  64. package/form-field/form-field.wrapper.d.ts +8 -3
  65. package/form-field/ngx-formly-nativescript-form-field.d.ts +1 -1
  66. package/form-field/package.json +6 -9
  67. package/form-field/public_api.d.ts +1 -0
  68. package/ngx-formly-nativescript.d.ts +1 -0
  69. package/package.json +79 -31
  70. package/radio/ngx-formly-nativescript-radio.d.ts +1 -1
  71. package/radio/package.json +6 -9
  72. package/radio/public_api.d.ts +1 -0
  73. package/radio/radio.module.d.ts +11 -0
  74. package/radio/radio.type.d.ts +13 -2
  75. package/select/ngx-formly-nativescript-select.d.ts +1 -1
  76. package/select/package.json +6 -9
  77. package/select/public_api.d.ts +1 -0
  78. package/select/select.module.d.ts +11 -0
  79. package/select/select.type.d.ts +16 -4
  80. package/text-field/ngx-formly-nativescript-text-field.d.ts +1 -1
  81. package/text-field/package.json +6 -9
  82. package/text-field/public_api.d.ts +1 -0
  83. package/text-field/text-field.module.d.ts +10 -0
  84. package/text-field/text-field.type.d.ts +17 -2
  85. package/textarea/ngx-formly-nativescript-textarea.d.ts +1 -1
  86. package/textarea/package.json +6 -9
  87. package/textarea/public_api.d.ts +5 -1
  88. package/textarea/textarea.module.d.ts +11 -1
  89. package/textarea/textarea.type.d.ts +16 -2
  90. package/bundles/ngx-formly-nativescript-checkbox.umd.js +0 -108
  91. package/bundles/ngx-formly-nativescript-checkbox.umd.js.map +0 -1
  92. package/bundles/ngx-formly-nativescript-checkbox.umd.min.js +0 -2
  93. package/bundles/ngx-formly-nativescript-checkbox.umd.min.js.map +0 -1
  94. package/bundles/ngx-formly-nativescript-form-field.umd.js +0 -101
  95. package/bundles/ngx-formly-nativescript-form-field.umd.js.map +0 -1
  96. package/bundles/ngx-formly-nativescript-form-field.umd.min.js +0 -2
  97. package/bundles/ngx-formly-nativescript-form-field.umd.min.js.map +0 -1
  98. package/bundles/ngx-formly-nativescript-radio.umd.js +0 -122
  99. package/bundles/ngx-formly-nativescript-radio.umd.js.map +0 -1
  100. package/bundles/ngx-formly-nativescript-radio.umd.min.js +0 -2
  101. package/bundles/ngx-formly-nativescript-radio.umd.min.js.map +0 -1
  102. package/bundles/ngx-formly-nativescript-select.umd.js +0 -145
  103. package/bundles/ngx-formly-nativescript-select.umd.js.map +0 -1
  104. package/bundles/ngx-formly-nativescript-select.umd.min.js +0 -2
  105. package/bundles/ngx-formly-nativescript-select.umd.min.js.map +0 -1
  106. package/bundles/ngx-formly-nativescript-text-field.umd.js +0 -103
  107. package/bundles/ngx-formly-nativescript-text-field.umd.js.map +0 -1
  108. package/bundles/ngx-formly-nativescript-text-field.umd.min.js +0 -2
  109. package/bundles/ngx-formly-nativescript-text-field.umd.min.js.map +0 -1
  110. package/bundles/ngx-formly-nativescript-textarea.umd.js +0 -102
  111. package/bundles/ngx-formly-nativescript-textarea.umd.js.map +0 -1
  112. package/bundles/ngx-formly-nativescript-textarea.umd.min.js +0 -2
  113. package/bundles/ngx-formly-nativescript-textarea.umd.min.js.map +0 -1
  114. package/bundles/ngx-formly-nativescript.umd.js +0 -51
  115. package/bundles/ngx-formly-nativescript.umd.js.map +0 -1
  116. package/bundles/ngx-formly-nativescript.umd.min.js +0 -2
  117. package/bundles/ngx-formly-nativescript.umd.min.js.map +0 -1
  118. package/checkbox/ngx-formly-nativescript-checkbox.metadata.json +0 -1
  119. package/esm2015/checkbox/checkbox.module.js +0 -35
  120. package/esm2015/checkbox/checkbox.type.js +0 -32
  121. package/esm2015/checkbox/ngx-formly-nativescript-checkbox.js +0 -10
  122. package/esm2015/checkbox/public_api.js +0 -6
  123. package/esm2015/form-field/form-field.module.js +0 -30
  124. package/esm2015/form-field/form-field.wrapper.js +0 -35
  125. package/esm2015/form-field/ngx-formly-nativescript-form-field.js +0 -10
  126. package/esm2015/form-field/public_api.js +0 -6
  127. package/esm2015/lib/ui-nativescipt.js +0 -6
  128. package/esm2015/lib/ui-nativescript.module.js +0 -27
  129. package/esm2015/ngx-formly-nativescript.js +0 -9
  130. package/esm2015/public_api.js +0 -9
  131. package/esm2015/radio/ngx-formly-nativescript-radio.js +0 -10
  132. package/esm2015/radio/public_api.js +0 -6
  133. package/esm2015/radio/radio.module.js +0 -37
  134. package/esm2015/radio/radio.type.js +0 -40
  135. package/esm2015/select/ngx-formly-nativescript-select.js +0 -10
  136. package/esm2015/select/public_api.js +0 -6
  137. package/esm2015/select/select.module.js +0 -37
  138. package/esm2015/select/select.type.js +0 -54
  139. package/esm2015/text-field/ngx-formly-nativescript-text-field.js +0 -10
  140. package/esm2015/text-field/public_api.js +0 -6
  141. package/esm2015/text-field/text-field.module.js +0 -36
  142. package/esm2015/text-field/text-field.type.js +0 -25
  143. package/esm2015/textarea/ngx-formly-nativescript-textarea.js +0 -10
  144. package/esm2015/textarea/public_api.js +0 -6
  145. package/esm2015/textarea/textarea.module.js +0 -35
  146. package/esm2015/textarea/textarea.type.js +0 -24
  147. package/esm5/checkbox/checkbox.module.js +0 -39
  148. package/esm5/checkbox/checkbox.type.js +0 -32
  149. package/esm5/checkbox/ngx-formly-nativescript-checkbox.js +0 -10
  150. package/esm5/checkbox/public_api.js +0 -6
  151. package/esm5/form-field/form-field.module.js +0 -34
  152. package/esm5/form-field/form-field.wrapper.js +0 -29
  153. package/esm5/form-field/ngx-formly-nativescript-form-field.js +0 -10
  154. package/esm5/form-field/public_api.js +0 -6
  155. package/esm5/lib/ui-nativescipt.js +0 -6
  156. package/esm5/lib/ui-nativescript.module.js +0 -31
  157. package/esm5/ngx-formly-nativescript.js +0 -9
  158. package/esm5/public_api.js +0 -9
  159. package/esm5/radio/ngx-formly-nativescript-radio.js +0 -10
  160. package/esm5/radio/public_api.js +0 -6
  161. package/esm5/radio/radio.module.js +0 -41
  162. package/esm5/radio/radio.type.js +0 -42
  163. package/esm5/select/ngx-formly-nativescript-select.js +0 -10
  164. package/esm5/select/public_api.js +0 -6
  165. package/esm5/select/select.module.js +0 -41
  166. package/esm5/select/select.type.js +0 -67
  167. package/esm5/text-field/ngx-formly-nativescript-text-field.js +0 -10
  168. package/esm5/text-field/public_api.js +0 -6
  169. package/esm5/text-field/text-field.module.js +0 -40
  170. package/esm5/text-field/text-field.type.js +0 -22
  171. package/esm5/textarea/ngx-formly-nativescript-textarea.js +0 -10
  172. package/esm5/textarea/public_api.js +0 -6
  173. package/esm5/textarea/textarea.module.js +0 -39
  174. package/esm5/textarea/textarea.type.js +0 -22
  175. package/fesm2015/ngx-formly-nativescript-checkbox.js +0 -74
  176. package/fesm2015/ngx-formly-nativescript-checkbox.js.map +0 -1
  177. package/fesm2015/ngx-formly-nativescript-form-field.js +0 -72
  178. package/fesm2015/ngx-formly-nativescript-form-field.js.map +0 -1
  179. package/fesm2015/ngx-formly-nativescript-radio.js +0 -88
  180. package/fesm2015/ngx-formly-nativescript-radio.js.map +0 -1
  181. package/fesm2015/ngx-formly-nativescript-select.js +0 -102
  182. package/fesm2015/ngx-formly-nativescript-select.js.map +0 -1
  183. package/fesm2015/ngx-formly-nativescript-text-field.js +0 -72
  184. package/fesm2015/ngx-formly-nativescript-text-field.js.map +0 -1
  185. package/fesm2015/ngx-formly-nativescript-textarea.js +0 -70
  186. package/fesm2015/ngx-formly-nativescript-textarea.js.map +0 -1
  187. package/fesm2015/ngx-formly-nativescript.js +0 -46
  188. package/fesm2015/ngx-formly-nativescript.js.map +0 -1
  189. package/fesm5/ngx-formly-nativescript-checkbox.js +0 -76
  190. package/fesm5/ngx-formly-nativescript-checkbox.js.map +0 -1
  191. package/fesm5/ngx-formly-nativescript-form-field.js +0 -68
  192. package/fesm5/ngx-formly-nativescript-form-field.js.map +0 -1
  193. package/fesm5/ngx-formly-nativescript-radio.js +0 -92
  194. package/fesm5/ngx-formly-nativescript-radio.js.map +0 -1
  195. package/fesm5/ngx-formly-nativescript-select.js +0 -117
  196. package/fesm5/ngx-formly-nativescript-select.js.map +0 -1
  197. package/fesm5/ngx-formly-nativescript-text-field.js +0 -71
  198. package/fesm5/ngx-formly-nativescript-text-field.js.map +0 -1
  199. package/fesm5/ngx-formly-nativescript-textarea.js +0 -70
  200. package/fesm5/ngx-formly-nativescript-textarea.js.map +0 -1
  201. package/fesm5/ngx-formly-nativescript.js +0 -49
  202. package/fesm5/ngx-formly-nativescript.js.map +0 -1
  203. package/form-field/ngx-formly-nativescript-form-field.metadata.json +0 -1
  204. package/ngx-formly-nativescript.metadata.json +0 -1
  205. package/radio/ngx-formly-nativescript-radio.metadata.json +0 -1
  206. package/select/ngx-formly-nativescript-select.metadata.json +0 -1
  207. package/text-field/ngx-formly-nativescript-text-field.metadata.json +0 -1
  208. package/textarea/ngx-formly-nativescript-textarea.metadata.json +0 -1
@@ -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.2.6", ngImport: i0, type: FormlyFieldRadio, deps: null, target: i0.ɵɵFactoryTarget.Component });
23
+ FormlyFieldRadio.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", 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.2.6", 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.2.6", ngImport: i0, type: FormlyNsRadioFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
52
+ FormlyNsRadioFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", 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.2.6", 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.2.6", 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, 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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CAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B,CAAA;;;AC9BD;;AAEG;;;;"}
@@ -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.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.2.6", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component });
26
+ FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", 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.2.6", 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.2.6", ngImport: i0, type: FormlyNsSelectFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
47
+ FormlyNsSelectFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", 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.2.6", 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.2.6", 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, 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 FormlyNsSelectFieldModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;AAqBM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAC5E,IAAA,GAAG,CAAC,OAAc,EAAA;AAChB,QAAA,MAAM,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,cAAc,KAC5F,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,cAAc,CAAC,C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ACd,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;;;;"}
@@ -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 FormlyFieldInput extends FieldType {
13
+ }
14
+ FormlyFieldInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyFieldInput, deps: null, target: i0.ɵɵFactoryTarget.Component });
15
+ FormlyFieldInput.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", 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.2.6", 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.2.6", ngImport: i0, type: FormlyNsTextFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
50
+ FormlyNsTextFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", 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.2.6", 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.2.6", 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
@@ -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, 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;;6GAA/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,QAAA,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,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,kBAAA,EAAA,IAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,QAAA,EAAA,2CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,oBAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,CAAA,aAAA,EAAA,UAAA,EAAA,SAAA,CAAA,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f,oCAAA,OAAO,EAAE,OAAO;AAChB,oCAAA,cAAc,EAAE;AACd,wCAAA,KAAK,EAAE;AACL,4CAAA,IAAI,EAAE,QAAQ;AACf,yCAAA;AACF,qCAAA;AACF,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B,CAAA;;;AChDD;;AAEG;;;;"}
@@ -0,0 +1,98 @@
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.2.6", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component });
15
+ FormlyFieldTextArea.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", 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]="props.hint"
21
+ [autocorrect]="props.autocorrect"
22
+ [keyboardType]="props.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.2.6", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
27
+ type: Component,
28
+ args: [{
29
+ selector: 'formly-field-ns-textarea',
30
+ template: `
31
+ <TextView
32
+ class="input"
33
+ [formlyAttributes]="field"
34
+ [formControl]="formControl"
35
+ [hint]="props.hint"
36
+ [autocorrect]="props.autocorrect"
37
+ [keyboardType]="props.keyboardType"
38
+ >
39
+ </TextView>
40
+ `,
41
+ changeDetection: ChangeDetectionStrategy.OnPush,
42
+ }]
43
+ }] });
44
+
45
+ class FormlyNsTextAreaFieldModule {
46
+ }
47
+ FormlyNsTextAreaFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: FormlyNsTextAreaFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
48
+ FormlyNsTextAreaFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", 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.2.6", 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.2.6", 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
+ /** @deprecated use FormlyFieldDatePicker */
91
+ const FormlyNsTextareaFieldModule = FormlyNsTextAreaFieldModule;
92
+
93
+ /**
94
+ * Generated bundle index. Do not edit.
95
+ */
96
+
97
+ export { FormlyNsTextAreaFieldModule, FormlyNsTextareaFieldModule };
98
+ //# 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/public_api.ts","../../../../src/ui/nativescript/textarea/src/ngx-formly-nativescript-textarea.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FormlyFieldProps } from '@ngx-formly/nativescript/form-field';\n\ninterface TextAreaProps extends FormlyFieldProps {\n hint?: string;\n autocorrect?: boolean;\n keyboardType?: any;\n}\n\nexport interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {\n type: 'textarea' | Type<FormlyFieldTextArea>;\n}\n\n@Component({\n selector: 'formly-field-ns-textarea',\n template: `\n <TextView\n class=\"input\"\n [formlyAttributes]=\"field\"\n [formControl]=\"formControl\"\n [hint]=\"props.hint\"\n [autocorrect]=\"props.autocorrect\"\n [keyboardType]=\"props.keyboardType\"\n >\n </TextView>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {}\n","import { 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","import { FormlyNsTextAreaFieldModule } from './textarea.module';\nexport { FormlyTextAreaFieldConfig } from './textarea.type';\n\n/** @deprecated use FormlyFieldDatePicker */\nconst FormlyNsTextareaFieldModule = FormlyNsTextAreaFieldModule;\n\nexport { FormlyNsTextAreaFieldModule, FormlyNsTextareaF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,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;oBACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;iBAC5B,CAAA;;;ACzBD;AACM,MAAA,2BAA2B,GAAG;;ACJpC;;AAEG;;;;"}
@@ -0,0 +1,35 @@
1
+ import { __decorate } from 'tslib';
2
+ import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';
3
+ import { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';
4
+ import { FormlyNsTextFieldModule } from '@ngx-formly/nativescript/text-field';
5
+ import { FormlyNsTextareaFieldModule } from '@ngx-formly/nativescript/textarea';
6
+ import { FormlyNsCheckboxFieldModule } from '@ngx-formly/nativescript/checkbox';
7
+ import { FormlyNsRadioFieldModule } from '@ngx-formly/nativescript/radio';
8
+ import { FormlyNsSelectFieldModule } from '@ngx-formly/nativescript/select';
9
+
10
+ let FormlyNativescriptModule = class FormlyNativescriptModule {
11
+ };
12
+ FormlyNativescriptModule = __decorate([
13
+ NgModule({
14
+ imports: [
15
+ FormlyNsFormFieldModule,
16
+ FormlyNsTextFieldModule,
17
+ FormlyNsTextareaFieldModule,
18
+ FormlyNsCheckboxFieldModule,
19
+ FormlyNsRadioFieldModule,
20
+ FormlyNsSelectFieldModule,
21
+ ],
22
+ schemas: [NO_ERRORS_SCHEMA],
23
+ })
24
+ ], FormlyNativescriptModule);
25
+
26
+ /*
27
+ * Public API Surface of material
28
+ */
29
+
30
+ /**
31
+ * Generated bundle index. Do not edit.
32
+ */
33
+
34
+ export { FormlyNativescriptModule };
35
+ //# sourceMappingURL=ngx-formly-nativescript.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngx-formly-nativescript.mjs","sources":["../../../../src/ui/nativescript/src/lib/ui-nativescript.module.ts","../../../../src/ui/nativescript/src/public_api.ts","../../../../src/ui/nativescript/src/ngx-formly-nativescript.ts"],"sourcesContent":["import { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\n\nimport { FormlyNsFormFieldModule } from '@ngx-formly/nativescript/form-field';\nimport { FormlyNsTextFieldModule } from '@ngx-formly/nativescript/text-field';\nimport { FormlyNsTextareaFieldModule } from '@ngx-formly/nativescript/textarea';\nimport { FormlyNsCheckboxFieldModule } from '@ngx-formly/nativescript/checkbox';\nimport { FormlyNsRadioFieldModule } from '@ngx-formly/nativescript/radio';\nimport { FormlyNsSelectFieldModule } from '@ngx-formly/nativescript/select';\n\n@NgModule({\n imports: [\n FormlyNsFormFieldModule,\n FormlyNsTextFieldModule,\n FormlyNsTextareaFieldModule,\n FormlyNsCheckboxFieldModule,\n FormlyNsRadioFieldModule,\n FormlyNsSelectFieldModule,\n ],\n schemas: [NO_ERRORS_SCHEMA],\n})\nexport class FormlyNativescriptModule {}\n","/*\n * Public API Surface of material\n */\n\nexport * from './lib/ui-nativescipt';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;AAoBa,IAAA,wBAAwB,GAArC,MAAa,wBAAwB,CAAA;EAAG;AAA3B,wBAAwB,GAAA,UAAA,CAAA;AAXpC,IAAA,QAAQ,CAAC;AACR,QAAA,OAAO,EAAE;YACP,uBAAuB;YACvB,uBAAuB;YACvB,2BAA2B;YAC3B,2BAA2B;YAC3B,wBAAwB;YACxB,yBAAyB;AAC1B,SAAA;QACD,OAAO,EAAE,CAAC,gBAAgB,CAAC;KAC5B,CAAC;CACW,EAAA,wBAAwB,CAAG;;ACpBxC;;AAEG;;ACFH;;AAEG;;;;"}
@@ -0,0 +1,101 @@
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.2.6", ngImport: i0, type: FormlyFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
23
+ FormlyFieldCheckbox.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", 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.2.6", 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.2.6", ngImport: i0, type: FormlyNsCheckboxFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
46
+ FormlyNsCheckboxFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", 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.2.6", 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.2.6", 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