@ngx-formly/bootstrap 8.0.0 → 10.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +46 -19
  2. package/fesm2022/ngx-formly-bootstrap-addons.mjs +7 -7
  3. package/fesm2022/ngx-formly-bootstrap-addons.mjs.map +1 -1
  4. package/fesm2022/ngx-formly-bootstrap-checkbox.mjs +7 -7
  5. package/fesm2022/ngx-formly-bootstrap-form-field.mjs +10 -10
  6. package/fesm2022/ngx-formly-bootstrap-form-field.mjs.map +1 -1
  7. package/fesm2022/ngx-formly-bootstrap-input.mjs +7 -7
  8. package/fesm2022/ngx-formly-bootstrap-multicheckbox.mjs +7 -7
  9. package/fesm2022/ngx-formly-bootstrap-radio.mjs +7 -7
  10. package/fesm2022/ngx-formly-bootstrap-select.mjs +109 -95
  11. package/fesm2022/ngx-formly-bootstrap-select.mjs.map +1 -1
  12. package/fesm2022/ngx-formly-bootstrap-textarea.mjs +7 -7
  13. package/fesm2022/ngx-formly-bootstrap.mjs +4 -4
  14. package/package.json +13 -12
  15. package/{addons/addons.component.d.ts → types/ngx-formly-bootstrap-addons.d.ts} +17 -4
  16. package/types/ngx-formly-bootstrap-checkbox.d.ts +38 -0
  17. package/types/ngx-formly-bootstrap-form-field.d.ts +35 -0
  18. package/types/ngx-formly-bootstrap-input.d.ts +30 -0
  19. package/types/ngx-formly-bootstrap-multicheckbox.d.ts +38 -0
  20. package/types/ngx-formly-bootstrap-radio.d.ts +38 -0
  21. package/types/ngx-formly-bootstrap-select.d.ts +38 -0
  22. package/types/ngx-formly-bootstrap-textarea.d.ts +37 -0
  23. package/types/ngx-formly-bootstrap.d.ts +20 -0
  24. package/addons/addon.extension.d.ts +0 -2
  25. package/addons/addons.config.d.ts +0 -2
  26. package/addons/addons.module.d.ts +0 -10
  27. package/addons/index.d.ts +0 -5
  28. package/addons/public_api.d.ts +0 -2
  29. package/checkbox/checkbox.config.d.ts +0 -2
  30. package/checkbox/checkbox.module.d.ts +0 -11
  31. package/checkbox/checkbox.type.d.ts +0 -23
  32. package/checkbox/index.d.ts +0 -5
  33. package/checkbox/public_api.d.ts +0 -3
  34. package/form-field/field.type.d.ts +0 -10
  35. package/form-field/form-field.config.d.ts +0 -2
  36. package/form-field/form-field.module.d.ts +0 -10
  37. package/form-field/form-field.wrapper.d.ts +0 -11
  38. package/form-field/index.d.ts +0 -5
  39. package/form-field/public_api.d.ts +0 -4
  40. package/index.d.ts +0 -5
  41. package/input/index.d.ts +0 -5
  42. package/input/input.config.d.ts +0 -2
  43. package/input/input.module.d.ts +0 -11
  44. package/input/input.type.d.ts +0 -15
  45. package/input/public_api.d.ts +0 -3
  46. package/lib/bootstrap.config.d.ts +0 -1
  47. package/lib/bootstrap.d.ts +0 -2
  48. package/lib/bootstrap.module.d.ts +0 -14
  49. package/multicheckbox/index.d.ts +0 -5
  50. package/multicheckbox/multicheckbox.config.d.ts +0 -2
  51. package/multicheckbox/multicheckbox.module.d.ts +0 -12
  52. package/multicheckbox/multicheckbox.type.d.ts +0 -22
  53. package/multicheckbox/public_api.d.ts +0 -3
  54. package/public_api.d.ts +0 -1
  55. package/radio/index.d.ts +0 -5
  56. package/radio/public_api.d.ts +0 -3
  57. package/radio/radio.config.d.ts +0 -2
  58. package/radio/radio.module.d.ts +0 -12
  59. package/radio/radio.type.d.ts +0 -22
  60. package/select/index.d.ts +0 -5
  61. package/select/public_api.d.ts +0 -3
  62. package/select/select.config.d.ts +0 -2
  63. package/select/select.module.d.ts +0 -12
  64. package/select/select.type.d.ts +0 -22
  65. package/textarea/index.d.ts +0 -5
  66. package/textarea/public_api.d.ts +0 -3
  67. package/textarea/textarea.config.d.ts +0 -2
  68. package/textarea/textarea.module.d.ts +0 -11
  69. package/textarea/textarea.type.d.ts +0 -22
@@ -1,12 +1,12 @@
1
1
  import * as i0 from '@angular/core';
2
2
  import { ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
3
3
  import { FieldType, FormlyBootstrapFormFieldModule } from '@ngx-formly/bootstrap/form-field';
4
- import * as i1 from '@angular/common';
5
- import { CommonModule } from '@angular/common';
6
- import * as i2 from '@angular/forms';
4
+ import * as i1 from '@angular/forms';
7
5
  import { ReactiveFormsModule } from '@angular/forms';
8
- import * as i3 from '@ngx-formly/core';
6
+ import * as i2 from '@ngx-formly/core';
9
7
  import { FormlyModule } from '@ngx-formly/core';
8
+ import * as i3 from '@angular/common';
9
+ import { CommonModule } from '@angular/common';
10
10
  import * as i4 from '@ngx-formly/core/select';
11
11
  import { FormlySelectModule } from '@ngx-formly/core/select';
12
12
 
@@ -21,37 +21,39 @@ class FormlyFieldSelect extends FieldType {
21
21
  },
22
22
  };
23
23
  }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
25
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: FormlyFieldSelect, isStandalone: false, selector: "formly-field-select", usesInheritance: true, ngImport: i0, template: `
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.25", type: FormlyFieldSelect, isStandalone: false, selector: "formly-field-select", usesInheritance: true, ngImport: i0, template: `
26
26
  <ng-template #fieldTypeTemplate>
27
- <select
28
- *ngIf="props.multiple; else singleSelect"
29
- class="form-select"
30
- multiple
31
- [formControl]="formControl"
32
- [compareWith]="props.compareWith"
33
- [class.is-invalid]="showError"
34
- [formlyAttributes]="field"
35
- [attr.aria-describedby]="id + '-formly-validation-error'"
36
- [attr.aria-invalid]="showError"
37
- >
38
- <ng-container *ngIf="props.options | formlySelectOptions: field | async as opts">
39
- <ng-container *ngFor="let opt of opts">
40
- <option *ngIf="!opt.group; else optgroup" [ngValue]="opt.value" [disabled]="opt.disabled">
41
- {{ opt.label }}
42
- </option>
43
- <ng-template #optgroup>
44
- <optgroup [label]="opt.label">
45
- <option *ngFor="let child of opt.group" [ngValue]="child.value" [disabled]="child.disabled">
46
- {{ child.label }}
27
+ @if (props.multiple) {
28
+ <select
29
+ class="form-select"
30
+ multiple
31
+ [formControl]="formControl"
32
+ [compareWith]="props.compareWith"
33
+ [class.is-invalid]="showError"
34
+ [formlyAttributes]="field"
35
+ [attr.aria-describedby]="id + '-formly-validation-error'"
36
+ [attr.aria-invalid]="showError"
37
+ >
38
+ @if (props.options | formlySelectOptions: field | async; as opts) {
39
+ @for (opt of opts; track opt) {
40
+ @if (!opt.group) {
41
+ <option [ngValue]="opt.value" [disabled]="opt.disabled">
42
+ {{ opt.label }}
47
43
  </option>
48
- </optgroup>
49
- </ng-template>
50
- </ng-container>
51
- </ng-container>
52
- </select>
53
-
54
- <ng-template #singleSelect>
44
+ } @else {
45
+ <optgroup [label]="opt.label">
46
+ @for (child of opt.group; track child) {
47
+ <option [ngValue]="child.value" [disabled]="child.disabled">
48
+ {{ child.label }}
49
+ </option>
50
+ }
51
+ </optgroup>
52
+ }
53
+ }
54
+ }
55
+ </select>
56
+ } @else {
55
57
  <select
56
58
  class="form-select"
57
59
  [formControl]="formControl"
@@ -61,60 +63,67 @@ class FormlyFieldSelect extends FieldType {
61
63
  [attr.aria-describedby]="id + '-formly-validation-error'"
62
64
  [attr.aria-invalid]="showError"
63
65
  >
64
- <option *ngIf="props.placeholder" [ngValue]="undefined">{{ props.placeholder }}</option>
65
- <ng-container *ngIf="props.options | formlySelectOptions: field | async as opts">
66
- <ng-container *ngFor="let opt of opts">
67
- <option *ngIf="!opt.group; else optgroup" [ngValue]="opt.value" [disabled]="opt.disabled">
68
- {{ opt.label }}
69
- </option>
70
- <ng-template #optgroup>
66
+ @if (props.placeholder) {
67
+ <option [ngValue]="undefined">{{ props.placeholder }}</option>
68
+ }
69
+ @if (props.options | formlySelectOptions: field | async; as opts) {
70
+ @for (opt of opts; track opt) {
71
+ @if (!opt.group) {
72
+ <option [ngValue]="opt.value" [disabled]="opt.disabled">
73
+ {{ opt.label }}
74
+ </option>
75
+ } @else {
71
76
  <optgroup [label]="opt.label">
72
- <option *ngFor="let child of opt.group" [ngValue]="child.value" [disabled]="child.disabled">
73
- {{ child.label }}
74
- </option>
77
+ @for (child of opt.group; track child) {
78
+ <option [ngValue]="child.value" [disabled]="child.disabled">
79
+ {{ child.label }}
80
+ </option>
81
+ }
75
82
  </optgroup>
76
- </ng-template>
77
- </ng-container>
78
- </ng-container>
83
+ }
84
+ }
85
+ }
79
86
  </select>
80
- </ng-template>
87
+ }
81
88
  </ng-template>
82
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.SelectMultipleControlValueAccessor, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i3.LegacyFormlyAttributes, selector: "[formlyAttributes]" }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.LegacyFormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
89
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.SelectMultipleControlValueAccessor, selector: "select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.LegacyFormlyAttributes, selector: "[formlyAttributes]" }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.LegacyFormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
83
90
  }
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldSelect, decorators: [{
91
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldSelect, decorators: [{
85
92
  type: Component,
86
93
  args: [{
87
94
  selector: 'formly-field-select',
88
95
  template: `
89
96
  <ng-template #fieldTypeTemplate>
90
- <select
91
- *ngIf="props.multiple; else singleSelect"
92
- class="form-select"
93
- multiple
94
- [formControl]="formControl"
95
- [compareWith]="props.compareWith"
96
- [class.is-invalid]="showError"
97
- [formlyAttributes]="field"
98
- [attr.aria-describedby]="id + '-formly-validation-error'"
99
- [attr.aria-invalid]="showError"
100
- >
101
- <ng-container *ngIf="props.options | formlySelectOptions: field | async as opts">
102
- <ng-container *ngFor="let opt of opts">
103
- <option *ngIf="!opt.group; else optgroup" [ngValue]="opt.value" [disabled]="opt.disabled">
104
- {{ opt.label }}
105
- </option>
106
- <ng-template #optgroup>
107
- <optgroup [label]="opt.label">
108
- <option *ngFor="let child of opt.group" [ngValue]="child.value" [disabled]="child.disabled">
109
- {{ child.label }}
97
+ @if (props.multiple) {
98
+ <select
99
+ class="form-select"
100
+ multiple
101
+ [formControl]="formControl"
102
+ [compareWith]="props.compareWith"
103
+ [class.is-invalid]="showError"
104
+ [formlyAttributes]="field"
105
+ [attr.aria-describedby]="id + '-formly-validation-error'"
106
+ [attr.aria-invalid]="showError"
107
+ >
108
+ @if (props.options | formlySelectOptions: field | async; as opts) {
109
+ @for (opt of opts; track opt) {
110
+ @if (!opt.group) {
111
+ <option [ngValue]="opt.value" [disabled]="opt.disabled">
112
+ {{ opt.label }}
110
113
  </option>
111
- </optgroup>
112
- </ng-template>
113
- </ng-container>
114
- </ng-container>
115
- </select>
116
-
117
- <ng-template #singleSelect>
114
+ } @else {
115
+ <optgroup [label]="opt.label">
116
+ @for (child of opt.group; track child) {
117
+ <option [ngValue]="child.value" [disabled]="child.disabled">
118
+ {{ child.label }}
119
+ </option>
120
+ }
121
+ </optgroup>
122
+ }
123
+ }
124
+ }
125
+ </select>
126
+ } @else {
118
127
  <select
119
128
  class="form-select"
120
129
  [formControl]="formControl"
@@ -124,23 +133,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
124
133
  [attr.aria-describedby]="id + '-formly-validation-error'"
125
134
  [attr.aria-invalid]="showError"
126
135
  >
127
- <option *ngIf="props.placeholder" [ngValue]="undefined">{{ props.placeholder }}</option>
128
- <ng-container *ngIf="props.options | formlySelectOptions: field | async as opts">
129
- <ng-container *ngFor="let opt of opts">
130
- <option *ngIf="!opt.group; else optgroup" [ngValue]="opt.value" [disabled]="opt.disabled">
131
- {{ opt.label }}
132
- </option>
133
- <ng-template #optgroup>
136
+ @if (props.placeholder) {
137
+ <option [ngValue]="undefined">{{ props.placeholder }}</option>
138
+ }
139
+ @if (props.options | formlySelectOptions: field | async; as opts) {
140
+ @for (opt of opts; track opt) {
141
+ @if (!opt.group) {
142
+ <option [ngValue]="opt.value" [disabled]="opt.disabled">
143
+ {{ opt.label }}
144
+ </option>
145
+ } @else {
134
146
  <optgroup [label]="opt.label">
135
- <option *ngFor="let child of opt.group" [ngValue]="child.value" [disabled]="child.disabled">
136
- {{ child.label }}
137
- </option>
147
+ @for (child of opt.group; track child) {
148
+ <option [ngValue]="child.value" [disabled]="child.disabled">
149
+ {{ child.label }}
150
+ </option>
151
+ }
138
152
  </optgroup>
139
- </ng-template>
140
- </ng-container>
141
- </ng-container>
153
+ }
154
+ }
155
+ }
142
156
  </select>
143
- </ng-template>
157
+ }
144
158
  </ng-template>
145
159
  `,
146
160
  changeDetection: ChangeDetectionStrategy.OnPush,
@@ -162,18 +176,18 @@ function withFormlyFieldSelect() {
162
176
  }
163
177
 
164
178
  class FormlyBootstrapSelectModule {
165
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
166
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
179
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
180
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
167
181
  ReactiveFormsModule,
168
182
  FormlyBootstrapFormFieldModule,
169
- FormlySelectModule, i3.FormlyModule] }); }
170
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapSelectModule, imports: [CommonModule,
183
+ FormlySelectModule, i2.FormlyModule] }); }
184
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapSelectModule, imports: [CommonModule,
171
185
  ReactiveFormsModule,
172
186
  FormlyBootstrapFormFieldModule,
173
187
  FormlySelectModule,
174
188
  FormlyModule.forChild(withFormlyFieldSelect())] }); }
175
189
  }
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapSelectModule, decorators: [{
190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapSelectModule, decorators: [{
177
191
  type: NgModule,
178
192
  args: [{
179
193
  declarations: [FormlyFieldSelect],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-bootstrap-select.mjs","sources":["../../../../src/ui/bootstrap/select/src/select.type.ts","../../../../src/ui/bootstrap/select/src/select.config.ts","../../../../src/ui/bootstrap/select/src/select.module.ts","../../../../src/ui/bootstrap/select/src/ngx-formly-bootstrap-select.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FieldType, FormlyFieldProps } from '@ngx-formly/bootstrap/form-field';\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\n\ninterface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {\n multiple?: boolean;\n compareWith?: (o1: any, o2: any) => boolean;\n}\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <ng-template #fieldTypeTemplate>\n <select\n *ngIf=\"props.multiple; else singleSelect\"\n class=\"form-select\"\n multiple\n [formControl]=\"formControl\"\n [compareWith]=\"props.compareWith\"\n [class.is-invalid]=\"showError\"\n [formlyAttributes]=\"field\"\n [attr.aria-describedby]=\"id + '-formly-validation-error'\"\n [attr.aria-invalid]=\"showError\"\n >\n <ng-container *ngIf=\"props.options | formlySelectOptions: field | async as opts\">\n <ng-container *ngFor=\"let opt of opts\">\n <option *ngIf=\"!opt.group; else optgroup\" [ngValue]=\"opt.value\" [disabled]=\"opt.disabled\">\n {{ opt.label }}\n </option>\n <ng-template #optgroup>\n <optgroup [label]=\"opt.label\">\n <option *ngFor=\"let child of opt.group\" [ngValue]=\"child.value\" [disabled]=\"child.disabled\">\n {{ child.label }}\n </option>\n </optgroup>\n </ng-template>\n </ng-container>\n </ng-container>\n </select>\n\n <ng-template #singleSelect>\n <select\n class=\"form-select\"\n [formControl]=\"formControl\"\n [compareWith]=\"props.compareWith\"\n [class.is-invalid]=\"showError\"\n [formlyAttributes]=\"field\"\n [attr.aria-describedby]=\"id + '-formly-validation-error'\"\n [attr.aria-invalid]=\"showError\"\n >\n <option *ngIf=\"props.placeholder\" [ngValue]=\"undefined\">{{ props.placeholder }}</option>\n <ng-container *ngIf=\"props.options | formlySelectOptions: field | async as opts\">\n <ng-container *ngFor=\"let opt of opts\">\n <option *ngIf=\"!opt.group; else optgroup\" [ngValue]=\"opt.value\" [disabled]=\"opt.disabled\">\n {{ opt.label }}\n </option>\n <ng-template #optgroup>\n <optgroup [label]=\"opt.label\">\n <option *ngFor=\"let child of opt.group\" [ngValue]=\"child.value\" [disabled]=\"child.disabled\">\n {{ child.label }}\n </option>\n </optgroup>\n </ng-template>\n </ng-container>\n </ng-container>\n </select>\n </ng-template>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {\n override defaultOptions = {\n props: {\n compareWith(o1: any, o2: any) {\n return o1 === o2;\n },\n },\n };\n}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldSelect } from './select.type';\n\nexport function withFormlyFieldSelect(): ConfigOption {\n return {\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n { name: 'enum', extends: 'select' },\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyBootstrapFormFieldModule } from '@ngx-formly/bootstrap/form-field';\nimport { FormlyFieldSelect } from './select.type';\nimport { withFormlyFieldSelect } from './select.config';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n\n FormlyBootstrapFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild(withFormlyFieldSelect()),\n ],\n})\nexport class FormlyBootstrapSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA6EM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AA/D9E,IAAA,WAAA,GAAA;;AAgEW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,CAAC,EAAO,EAAE,EAAO,EAAA;oBAC1B,OAAO,EAAE,KAAK,EAAE;gBAClB,CAAC;AACF,aAAA;SACF;AACF,IAAA;+GARY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,iBAAiB,EAAA,YAAA,EAAA,KAAA,EAAA,Q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AA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAA3B,2BAA2B,EAAA,YAAA,EAAA,CAVvB,iBAAiB,CAAA,EAAA,OAAA,EAAA,CAE9B,YAAY;YACZ,mBAAmB;YAEnB,8BAA8B;YAC9B,kBAAkB,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAIT,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YARpC,YAAY;YACZ,mBAAmB;YAEnB,8BAA8B;YAC9B,kBAAkB;AAClB,YAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAGrC,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAXvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBAEnB,8BAA8B;wBAC9B,kBAAkB;AAClB,wBAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC;AAC/C,qBAAA;AACF,iBAAA;;;ACpBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-bootstrap-select.mjs","sources":["../../../../src/ui/bootstrap/select/src/select.type.ts","../../../../src/ui/bootstrap/select/src/select.config.ts","../../../../src/ui/bootstrap/select/src/select.module.ts","../../../../src/ui/bootstrap/select/src/ngx-formly-bootstrap-select.ts"],"sourcesContent":["import { Component, ChangeDetectionStrategy, Type } from '@angular/core';\nimport { FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\nimport { FieldType, FormlyFieldProps } from '@ngx-formly/bootstrap/form-field';\nimport { FormlyFieldSelectProps } from '@ngx-formly/core/select';\n\ninterface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {\n multiple?: boolean;\n compareWith?: (o1: any, o2: any) => boolean;\n}\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <ng-template #fieldTypeTemplate>\n @if (props.multiple) {\n <select\n class=\"form-select\"\n multiple\n [formControl]=\"formControl\"\n [compareWith]=\"props.compareWith\"\n [class.is-invalid]=\"showError\"\n [formlyAttributes]=\"field\"\n [attr.aria-describedby]=\"id + '-formly-validation-error'\"\n [attr.aria-invalid]=\"showError\"\n >\n @if (props.options | formlySelectOptions: field | async; as opts) {\n @for (opt of opts; track opt) {\n @if (!opt.group) {\n <option [ngValue]=\"opt.value\" [disabled]=\"opt.disabled\">\n {{ opt.label }}\n </option>\n } @else {\n <optgroup [label]=\"opt.label\">\n @for (child of opt.group; track child) {\n <option [ngValue]=\"child.value\" [disabled]=\"child.disabled\">\n {{ child.label }}\n </option>\n }\n </optgroup>\n }\n }\n }\n </select>\n } @else {\n <select\n class=\"form-select\"\n [formControl]=\"formControl\"\n [compareWith]=\"props.compareWith\"\n [class.is-invalid]=\"showError\"\n [formlyAttributes]=\"field\"\n [attr.aria-describedby]=\"id + '-formly-validation-error'\"\n [attr.aria-invalid]=\"showError\"\n >\n @if (props.placeholder) {\n <option [ngValue]=\"undefined\">{{ props.placeholder }}</option>\n }\n @if (props.options | formlySelectOptions: field | async; as opts) {\n @for (opt of opts; track opt) {\n @if (!opt.group) {\n <option [ngValue]=\"opt.value\" [disabled]=\"opt.disabled\">\n {{ opt.label }}\n </option>\n } @else {\n <optgroup [label]=\"opt.label\">\n @for (child of opt.group; track child) {\n <option [ngValue]=\"child.value\" [disabled]=\"child.disabled\">\n {{ child.label }}\n </option>\n }\n </optgroup>\n }\n }\n }\n </select>\n }\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {\n override defaultOptions = {\n props: {\n compareWith(o1: any, o2: any) {\n return o1 === o2;\n },\n },\n };\n}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldSelect } from './select.type';\n\nexport function withFormlyFieldSelect(): ConfigOption {\n return {\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field'],\n },\n { name: 'enum', extends: 'select' },\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlySelectModule } from '@ngx-formly/core/select';\n\nimport { FormlyBootstrapFormFieldModule } from '@ngx-formly/bootstrap/form-field';\nimport { FormlyFieldSelect } from './select.type';\nimport { withFormlyFieldSelect } from './select.config';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n\n FormlyBootstrapFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild(withFormlyFieldSelect()),\n ],\n})\nexport class FormlyBootstrapSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAoFM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AAtE9E,IAAA,WAAA,GAAA;;AAuEW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,CAAC,EAAO,EAAE,EAAO,EAAA;oBAC1B,OAAO,EAAE,KAAK,EAAE;gBAClB,CAAC;AACF,aAAA;SACF;AACF,IAAA;+GARY,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,E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SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YARpC,YAAY;YACZ,mBAAmB;YAEnB,8BAA8B;YAC9B,kBAAkB;AAClB,YAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAGrC,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAXvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBAEnB,8BAA8B;wBAC9B,kBAAkB;AAClB,wBAAA,YAAY,CAAC,QAAQ,CAAC,qBAAqB,EAAE,CAAC;AAC/C,qBAAA;AACF,iBAAA;;;ACpBD;;AAEG;;;;"}
@@ -17,8 +17,8 @@ class FormlyFieldTextArea extends FieldType {
17
17
  },
18
18
  };
19
19
  }
20
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
21
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: FormlyFieldTextArea, isStandalone: false, selector: "formly-field-textarea", usesInheritance: true, ngImport: i0, template: `
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.25", type: FormlyFieldTextArea, isStandalone: false, selector: "formly-field-textarea", usesInheritance: true, ngImport: i0, template: `
22
22
  <ng-template #fieldTypeTemplate>
23
23
  <textarea
24
24
  [formControl]="formControl"
@@ -33,7 +33,7 @@ class FormlyFieldTextArea extends FieldType {
33
33
  </ng-template>
34
34
  `, isInline: true, dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i2.LegacyFormlyAttributes, selector: "[formlyAttributes]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
35
  }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
37
37
  type: Component,
38
38
  args: [{
39
39
  selector: 'formly-field-textarea',
@@ -69,16 +69,16 @@ function withFormlyFieldTextArea() {
69
69
  }
70
70
 
71
71
  class FormlyBootstrapTextAreaModule {
72
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
73
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapTextAreaModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
73
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapTextAreaModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
74
74
  ReactiveFormsModule,
75
75
  FormlyBootstrapFormFieldModule, i2.FormlyModule] }); }
76
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapTextAreaModule, imports: [CommonModule,
76
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapTextAreaModule, imports: [CommonModule,
77
77
  ReactiveFormsModule,
78
78
  FormlyBootstrapFormFieldModule,
79
79
  FormlyModule.forChild(withFormlyFieldTextArea())] }); }
80
80
  }
81
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapTextAreaModule, decorators: [{
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapTextAreaModule, decorators: [{
82
82
  type: NgModule,
83
83
  args: [{
84
84
  declarations: [FormlyFieldTextArea],
@@ -23,8 +23,8 @@ function withFormlyBootstrap() {
23
23
  }
24
24
 
25
25
  class FormlyBootstrapModule {
26
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
27
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapModule, imports: [FormlyBootstrapFormFieldModule,
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
27
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapModule, imports: [FormlyBootstrapFormFieldModule,
28
28
  FormlyBootstrapInputModule,
29
29
  FormlyBootstrapTextAreaModule,
30
30
  FormlyBootstrapRadioModule,
@@ -32,7 +32,7 @@ class FormlyBootstrapModule {
32
32
  FormlyBootstrapMultiCheckboxModule,
33
33
  FormlyBootstrapSelectModule,
34
34
  FormlyBootstrapAddonsModule] }); }
35
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapModule, imports: [FormlyBootstrapFormFieldModule,
35
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapModule, imports: [FormlyBootstrapFormFieldModule,
36
36
  FormlyBootstrapInputModule,
37
37
  FormlyBootstrapTextAreaModule,
38
38
  FormlyBootstrapRadioModule,
@@ -41,7 +41,7 @@ class FormlyBootstrapModule {
41
41
  FormlyBootstrapSelectModule,
42
42
  FormlyBootstrapAddonsModule] }); }
43
43
  }
44
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: FormlyBootstrapModule, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.25", ngImport: i0, type: FormlyBootstrapModule, decorators: [{
45
45
  type: NgModule,
46
46
  args: [{
47
47
  imports: [
package/package.json CHANGED
@@ -1,58 +1,59 @@
1
1
  {
2
2
  "name": "@ngx-formly/bootstrap",
3
- "version": "8.0.0",
3
+ "version": "10.0.0",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"
7
7
  },
8
8
  "peerDependencies": {
9
- "@ngx-formly/core": "8.0.0",
9
+ "@ngx-formly/core": "10.0.0",
10
10
  "bootstrap": "^5.0.0"
11
11
  },
12
12
  "module": "fesm2022/ngx-formly-bootstrap.mjs",
13
- "typings": "index.d.ts",
13
+ "typings": "types/ngx-formly-bootstrap.d.ts",
14
14
  "exports": {
15
15
  "./package.json": {
16
16
  "default": "./package.json"
17
17
  },
18
18
  ".": {
19
- "types": "./index.d.ts",
19
+ "types": "./types/ngx-formly-bootstrap.d.ts",
20
20
  "default": "./fesm2022/ngx-formly-bootstrap.mjs"
21
21
  },
22
22
  "./addons": {
23
- "types": "./addons/index.d.ts",
23
+ "types": "./types/ngx-formly-bootstrap-addons.d.ts",
24
24
  "default": "./fesm2022/ngx-formly-bootstrap-addons.mjs"
25
25
  },
26
26
  "./checkbox": {
27
- "types": "./checkbox/index.d.ts",
27
+ "types": "./types/ngx-formly-bootstrap-checkbox.d.ts",
28
28
  "default": "./fesm2022/ngx-formly-bootstrap-checkbox.mjs"
29
29
  },
30
30
  "./form-field": {
31
- "types": "./form-field/index.d.ts",
31
+ "types": "./types/ngx-formly-bootstrap-form-field.d.ts",
32
32
  "default": "./fesm2022/ngx-formly-bootstrap-form-field.mjs"
33
33
  },
34
34
  "./input": {
35
- "types": "./input/index.d.ts",
35
+ "types": "./types/ngx-formly-bootstrap-input.d.ts",
36
36
  "default": "./fesm2022/ngx-formly-bootstrap-input.mjs"
37
37
  },
38
38
  "./multicheckbox": {
39
- "types": "./multicheckbox/index.d.ts",
39
+ "types": "./types/ngx-formly-bootstrap-multicheckbox.d.ts",
40
40
  "default": "./fesm2022/ngx-formly-bootstrap-multicheckbox.mjs"
41
41
  },
42
42
  "./radio": {
43
- "types": "./radio/index.d.ts",
43
+ "types": "./types/ngx-formly-bootstrap-radio.d.ts",
44
44
  "default": "./fesm2022/ngx-formly-bootstrap-radio.mjs"
45
45
  },
46
46
  "./select": {
47
- "types": "./select/index.d.ts",
47
+ "types": "./types/ngx-formly-bootstrap-select.d.ts",
48
48
  "default": "./fesm2022/ngx-formly-bootstrap-select.mjs"
49
49
  },
50
50
  "./textarea": {
51
- "types": "./textarea/index.d.ts",
51
+ "types": "./types/ngx-formly-bootstrap-textarea.d.ts",
52
52
  "default": "./fesm2022/ngx-formly-bootstrap-textarea.mjs"
53
53
  }
54
54
  },
55
55
  "sideEffects": false,
56
+ "type": "module",
56
57
  "homepage": "https://github.com/ngx-formly/ngx-formly#readme",
57
58
  "description": "Formly is a dynamic (JSON powered) form library for Angular that bring unmatched maintainability to your application's forms.",
58
59
  "repository": {
@@ -1,7 +1,13 @@
1
+ import * as i4 from '@ngx-formly/core';
2
+ import { ConfigOption, FieldWrapper, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import * as i0 from '@angular/core';
1
4
  import { TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { FormlyFieldConfig, FieldTypeConfig, FieldWrapper } from '@ngx-formly/core';
3
5
  import { FormlyFieldProps } from '@ngx-formly/bootstrap/form-field';
4
- import * as i0 from "@angular/core";
6
+ import * as i2 from '@angular/common';
7
+ import * as i3 from '@angular/forms';
8
+
9
+ declare function withFormlyWrapperAddons(): ConfigOption;
10
+
5
11
  interface AddonsProps extends FormlyFieldProps {
6
12
  addonRight?: {
7
13
  onClick?: (field: FormlyFieldConfig, event?: any) => void;
@@ -14,7 +20,7 @@ interface AddonsProps extends FormlyFieldProps {
14
20
  text?: string;
15
21
  };
16
22
  }
17
- export declare class FormlyWrapperAddons extends FieldWrapper<FieldTypeConfig<AddonsProps>> {
23
+ declare class FormlyWrapperAddons extends FieldWrapper<FieldTypeConfig<AddonsProps>> {
18
24
  private hostContainerRef?;
19
25
  set content(templateRef: TemplateRef<any>);
20
26
  constructor(hostContainerRef?: ViewContainerRef);
@@ -23,4 +29,11 @@ export declare class FormlyWrapperAddons extends FieldWrapper<FieldTypeConfig<Ad
23
29
  static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperAddons, never>;
24
30
  static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperAddons, "formly-wrapper-addons", never, {}, {}, never, never, false, never>;
25
31
  }
26
- export {};
32
+
33
+ declare class FormlyBootstrapAddonsModule {
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBootstrapAddonsModule, never>;
35
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyBootstrapAddonsModule, [typeof FormlyWrapperAddons], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyModule], never>;
36
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyBootstrapAddonsModule>;
37
+ }
38
+
39
+ export { FormlyBootstrapAddonsModule, withFormlyWrapperAddons };
@@ -0,0 +1,38 @@
1
+ import * as i5 from '@ngx-formly/core';
2
+ import { ConfigOption, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import * as i0 from '@angular/core';
4
+ import { Type } from '@angular/core';
5
+ import * as i4 from '@ngx-formly/bootstrap/form-field';
6
+ import { FieldType, FormlyFieldProps } from '@ngx-formly/bootstrap/form-field';
7
+ import * as i2 from '@angular/common';
8
+ import * as i3 from '@angular/forms';
9
+
10
+ declare function withFormlyFieldCheckbox(): ConfigOption;
11
+
12
+ interface CheckboxProps extends FormlyFieldProps {
13
+ formCheck?: 'default' | 'inline' | 'switch' | 'inline-switch' | 'nolabel';
14
+ indeterminate?: boolean;
15
+ }
16
+ interface FormlyCheckboxFieldConfig extends FormlyFieldConfig<CheckboxProps> {
17
+ type: 'checkbox' | Type<FormlyFieldCheckbox>;
18
+ }
19
+ declare class FormlyFieldCheckbox extends FieldType<FieldTypeConfig<CheckboxProps>> {
20
+ defaultOptions: {
21
+ props: {
22
+ indeterminate: boolean;
23
+ hideLabel: boolean;
24
+ formCheck: "default";
25
+ };
26
+ };
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCheckbox, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCheckbox, "formly-field-checkbox", never, {}, {}, never, never, false, never>;
29
+ }
30
+
31
+ declare class FormlyBootstrapCheckboxModule {
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBootstrapCheckboxModule, never>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyBootstrapCheckboxModule, [typeof FormlyFieldCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyBootstrapFormFieldModule, typeof i5.FormlyModule], never>;
34
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyBootstrapCheckboxModule>;
35
+ }
36
+
37
+ export { FormlyBootstrapCheckboxModule, FormlyFieldCheckbox, withFormlyFieldCheckbox };
38
+ export type { FormlyCheckboxFieldConfig };
@@ -0,0 +1,35 @@
1
+ import * as i4 from '@ngx-formly/core';
2
+ import { ConfigOption, FieldWrapper, FormlyFieldConfig, FormlyFieldProps as FormlyFieldProps$1, FieldType as FieldType$1 } from '@ngx-formly/core';
3
+ import * as i0 from '@angular/core';
4
+ import { TemplateRef, ViewContainerRef } from '@angular/core';
5
+ import * as i2 from '@angular/common';
6
+ import * as i3 from '@angular/forms';
7
+
8
+ declare function withFormlyFormField(): ConfigOption;
9
+
10
+ interface FormlyFieldProps extends FormlyFieldProps$1 {
11
+ hideLabel?: boolean;
12
+ hideRequiredMarker?: boolean;
13
+ labelPosition?: 'floating';
14
+ }
15
+ declare class FormlyWrapperFormField extends FieldWrapper<FormlyFieldConfig<FormlyFieldProps>> {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperFormField, never>;
17
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperFormField, "formly-wrapper-form-field", never, {}, {}, never, never, false, never>;
18
+ }
19
+
20
+ declare class FormlyBootstrapFormFieldModule {
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBootstrapFormFieldModule, never>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyBootstrapFormFieldModule, [typeof FormlyWrapperFormField], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyModule], never>;
23
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyBootstrapFormFieldModule>;
24
+ }
25
+
26
+ declare abstract class FieldType<F extends FormlyFieldConfig = FormlyFieldConfig> extends FieldType$1<F> {
27
+ private hostContainerRef?;
28
+ set content(templateRef: TemplateRef<any>);
29
+ constructor(hostContainerRef?: ViewContainerRef);
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<FieldType<any>, [{ optional: true; }]>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FieldType<any>, never, never, {}, {}, never, never, true, never>;
32
+ }
33
+
34
+ export { FieldType, FormlyBootstrapFormFieldModule, withFormlyFormField };
35
+ export type { FormlyFieldProps };
@@ -0,0 +1,30 @@
1
+ import * as i5 from '@ngx-formly/core';
2
+ import { ConfigOption, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';
3
+ import * as i0 from '@angular/core';
4
+ import { Type } from '@angular/core';
5
+ import * as i4 from '@ngx-formly/bootstrap/form-field';
6
+ import { FieldType, FormlyFieldProps } from '@ngx-formly/bootstrap/form-field';
7
+ import * as i2 from '@angular/common';
8
+ import * as i3 from '@angular/forms';
9
+
10
+ declare function withFormlyFieldInput(): ConfigOption;
11
+
12
+ interface InputProps extends FormlyFieldProps {
13
+ }
14
+ interface FormlyInputFieldConfig extends FormlyFieldConfig<InputProps> {
15
+ type: 'input' | Type<FormlyFieldInput>;
16
+ }
17
+ declare class FormlyFieldInput extends FieldType<FieldTypeConfig<InputProps>> {
18
+ get type(): string;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldInput, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldInput, "formly-field-input", never, {}, {}, never, never, false, never>;
21
+ }
22
+
23
+ declare class FormlyBootstrapInputModule {
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBootstrapInputModule, never>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyBootstrapInputModule, [typeof FormlyFieldInput], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyBootstrapFormFieldModule, typeof i5.FormlyModule], never>;
26
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyBootstrapInputModule>;
27
+ }
28
+
29
+ export { FormlyBootstrapInputModule, FormlyFieldInput, withFormlyFieldInput };
30
+ export type { FormlyInputFieldConfig };