@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.
- package/README.md +46 -19
- package/fesm2022/ngx-formly-bootstrap-addons.mjs +7 -7
- package/fesm2022/ngx-formly-bootstrap-addons.mjs.map +1 -1
- package/fesm2022/ngx-formly-bootstrap-checkbox.mjs +7 -7
- package/fesm2022/ngx-formly-bootstrap-form-field.mjs +10 -10
- package/fesm2022/ngx-formly-bootstrap-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-bootstrap-input.mjs +7 -7
- package/fesm2022/ngx-formly-bootstrap-multicheckbox.mjs +7 -7
- package/fesm2022/ngx-formly-bootstrap-radio.mjs +7 -7
- package/fesm2022/ngx-formly-bootstrap-select.mjs +109 -95
- package/fesm2022/ngx-formly-bootstrap-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-bootstrap-textarea.mjs +7 -7
- package/fesm2022/ngx-formly-bootstrap.mjs +4 -4
- package/package.json +13 -12
- package/{addons/addons.component.d.ts → types/ngx-formly-bootstrap-addons.d.ts} +17 -4
- package/types/ngx-formly-bootstrap-checkbox.d.ts +38 -0
- package/types/ngx-formly-bootstrap-form-field.d.ts +35 -0
- package/types/ngx-formly-bootstrap-input.d.ts +30 -0
- package/types/ngx-formly-bootstrap-multicheckbox.d.ts +38 -0
- package/types/ngx-formly-bootstrap-radio.d.ts +38 -0
- package/types/ngx-formly-bootstrap-select.d.ts +38 -0
- package/types/ngx-formly-bootstrap-textarea.d.ts +37 -0
- package/types/ngx-formly-bootstrap.d.ts +20 -0
- package/addons/addon.extension.d.ts +0 -2
- package/addons/addons.config.d.ts +0 -2
- package/addons/addons.module.d.ts +0 -10
- package/addons/index.d.ts +0 -5
- package/addons/public_api.d.ts +0 -2
- package/checkbox/checkbox.config.d.ts +0 -2
- package/checkbox/checkbox.module.d.ts +0 -11
- package/checkbox/checkbox.type.d.ts +0 -23
- package/checkbox/index.d.ts +0 -5
- package/checkbox/public_api.d.ts +0 -3
- package/form-field/field.type.d.ts +0 -10
- package/form-field/form-field.config.d.ts +0 -2
- package/form-field/form-field.module.d.ts +0 -10
- package/form-field/form-field.wrapper.d.ts +0 -11
- package/form-field/index.d.ts +0 -5
- package/form-field/public_api.d.ts +0 -4
- package/index.d.ts +0 -5
- package/input/index.d.ts +0 -5
- package/input/input.config.d.ts +0 -2
- package/input/input.module.d.ts +0 -11
- package/input/input.type.d.ts +0 -15
- package/input/public_api.d.ts +0 -3
- package/lib/bootstrap.config.d.ts +0 -1
- package/lib/bootstrap.d.ts +0 -2
- package/lib/bootstrap.module.d.ts +0 -14
- package/multicheckbox/index.d.ts +0 -5
- package/multicheckbox/multicheckbox.config.d.ts +0 -2
- package/multicheckbox/multicheckbox.module.d.ts +0 -12
- package/multicheckbox/multicheckbox.type.d.ts +0 -22
- package/multicheckbox/public_api.d.ts +0 -3
- package/public_api.d.ts +0 -1
- package/radio/index.d.ts +0 -5
- package/radio/public_api.d.ts +0 -3
- package/radio/radio.config.d.ts +0 -2
- package/radio/radio.module.d.ts +0 -12
- package/radio/radio.type.d.ts +0 -22
- package/select/index.d.ts +0 -5
- package/select/public_api.d.ts +0 -3
- package/select/select.config.d.ts +0 -2
- package/select/select.module.d.ts +0 -12
- package/select/select.type.d.ts +0 -22
- package/textarea/index.d.ts +0 -5
- package/textarea/public_api.d.ts +0 -3
- package/textarea/textarea.config.d.ts +0 -2
- package/textarea/textarea.module.d.ts +0 -11
- 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/
|
|
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
|
|
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: "
|
|
25
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
79
86
|
</select>
|
|
80
|
-
|
|
87
|
+
}
|
|
81
88
|
</ng-template>
|
|
82
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i1.
|
|
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: "
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
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
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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
|
-
|
|
140
|
-
|
|
141
|
-
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
142
156
|
</select>
|
|
143
|
-
|
|
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: "
|
|
166
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
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,
|
|
170
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
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: "
|
|
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
|
|
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":"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"}
|
|
@@ -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: "
|
|
21
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
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: "
|
|
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: "
|
|
73
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
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: "
|
|
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: "
|
|
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: "
|
|
27
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
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: "
|
|
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: "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "./
|
|
19
|
+
"types": "./types/ngx-formly-bootstrap.d.ts",
|
|
20
20
|
"default": "./fesm2022/ngx-formly-bootstrap.mjs"
|
|
21
21
|
},
|
|
22
22
|
"./addons": {
|
|
23
|
-
"types": "./addons
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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 };
|