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