@ngx-formly/bootstrap 7.1.0 → 9.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 (113) hide show
  1. package/README.md +26 -9
  2. package/addons/index.d.ts +39 -5
  3. package/checkbox/index.d.ts +38 -5
  4. package/fesm2022/ngx-formly-bootstrap-addons.mjs +8 -8
  5. package/fesm2022/ngx-formly-bootstrap-addons.mjs.map +1 -1
  6. package/fesm2022/ngx-formly-bootstrap-checkbox.mjs +25 -16
  7. package/fesm2022/ngx-formly-bootstrap-checkbox.mjs.map +1 -1
  8. package/fesm2022/ngx-formly-bootstrap-form-field.mjs +64 -48
  9. package/fesm2022/ngx-formly-bootstrap-form-field.mjs.map +1 -1
  10. package/fesm2022/ngx-formly-bootstrap-input.mjs +37 -37
  11. package/fesm2022/ngx-formly-bootstrap-input.mjs.map +1 -1
  12. package/fesm2022/ngx-formly-bootstrap-multicheckbox.mjs +61 -58
  13. package/fesm2022/ngx-formly-bootstrap-multicheckbox.mjs.map +1 -1
  14. package/fesm2022/ngx-formly-bootstrap-radio.mjs +54 -57
  15. package/fesm2022/ngx-formly-bootstrap-radio.mjs.map +1 -1
  16. package/fesm2022/ngx-formly-bootstrap-select.mjs +8 -7
  17. package/fesm2022/ngx-formly-bootstrap-select.mjs.map +1 -1
  18. package/fesm2022/ngx-formly-bootstrap-textarea.mjs +8 -7
  19. package/fesm2022/ngx-formly-bootstrap-textarea.mjs.map +1 -1
  20. package/fesm2022/ngx-formly-bootstrap.mjs +4 -4
  21. package/form-field/index.d.ts +35 -5
  22. package/index.d.ts +20 -5
  23. package/input/index.d.ts +30 -5
  24. package/multicheckbox/index.d.ts +38 -5
  25. package/package.json +2 -20
  26. package/radio/index.d.ts +38 -5
  27. package/select/index.d.ts +38 -5
  28. package/textarea/index.d.ts +37 -5
  29. package/addons/addon.extension.d.ts +0 -2
  30. package/addons/addons.component.d.ts +0 -26
  31. package/addons/addons.config.d.ts +0 -2
  32. package/addons/addons.module.d.ts +0 -10
  33. package/addons/public_api.d.ts +0 -2
  34. package/checkbox/checkbox.config.d.ts +0 -2
  35. package/checkbox/checkbox.module.d.ts +0 -11
  36. package/checkbox/checkbox.type.d.ts +0 -23
  37. package/checkbox/public_api.d.ts +0 -3
  38. package/esm2022/addons/addon.extension.mjs +0 -9
  39. package/esm2022/addons/addons.component.mjs +0 -31
  40. package/esm2022/addons/addons.config.mjs +0 -9
  41. package/esm2022/addons/addons.module.mjs +0 -21
  42. package/esm2022/addons/ngx-formly-bootstrap-addons.mjs +0 -5
  43. package/esm2022/addons/public_api.mjs +0 -3
  44. package/esm2022/checkbox/checkbox.config.mjs +0 -17
  45. package/esm2022/checkbox/checkbox.module.mjs +0 -32
  46. package/esm2022/checkbox/checkbox.type.mjs +0 -81
  47. package/esm2022/checkbox/ngx-formly-bootstrap-checkbox.mjs +0 -5
  48. package/esm2022/checkbox/public_api.mjs +0 -4
  49. package/esm2022/form-field/field.type.mjs +0 -25
  50. package/esm2022/form-field/form-field.config.mjs +0 -12
  51. package/esm2022/form-field/form-field.module.mjs +0 -21
  52. package/esm2022/form-field/form-field.wrapper.mjs +0 -72
  53. package/esm2022/form-field/ngx-formly-bootstrap-form-field.mjs +0 -5
  54. package/esm2022/form-field/public_api.mjs +0 -4
  55. package/esm2022/input/input.config.mjs +0 -32
  56. package/esm2022/input/input.module.mjs +0 -32
  57. package/esm2022/input/input.type.mjs +0 -70
  58. package/esm2022/input/ngx-formly-bootstrap-input.mjs +0 -5
  59. package/esm2022/input/public_api.mjs +0 -4
  60. package/esm2022/lib/bootstrap.config.mjs +0 -21
  61. package/esm2022/lib/bootstrap.mjs +0 -3
  62. package/esm2022/lib/bootstrap.module.mjs +0 -45
  63. package/esm2022/multicheckbox/multicheckbox.config.mjs +0 -13
  64. package/esm2022/multicheckbox/multicheckbox.module.mjs +0 -36
  65. package/esm2022/multicheckbox/multicheckbox.type.mjs +0 -99
  66. package/esm2022/multicheckbox/ngx-formly-bootstrap-multicheckbox.mjs +0 -5
  67. package/esm2022/multicheckbox/public_api.mjs +0 -4
  68. package/esm2022/ngx-formly-bootstrap.mjs +0 -5
  69. package/esm2022/public_api.mjs +0 -5
  70. package/esm2022/radio/ngx-formly-bootstrap-radio.mjs +0 -5
  71. package/esm2022/radio/public_api.mjs +0 -4
  72. package/esm2022/radio/radio.config.mjs +0 -13
  73. package/esm2022/radio/radio.module.mjs +0 -36
  74. package/esm2022/radio/radio.type.mjs +0 -82
  75. package/esm2022/select/ngx-formly-bootstrap-select.mjs +0 -5
  76. package/esm2022/select/public_api.mjs +0 -4
  77. package/esm2022/select/select.config.mjs +0 -14
  78. package/esm2022/select/select.module.mjs +0 -36
  79. package/esm2022/select/select.type.mjs +0 -144
  80. package/esm2022/textarea/ngx-formly-bootstrap-textarea.mjs +0 -5
  81. package/esm2022/textarea/public_api.mjs +0 -4
  82. package/esm2022/textarea/textarea.config.mjs +0 -13
  83. package/esm2022/textarea/textarea.module.mjs +0 -32
  84. package/esm2022/textarea/textarea.type.mjs +0 -53
  85. package/form-field/field.type.d.ts +0 -10
  86. package/form-field/form-field.config.d.ts +0 -2
  87. package/form-field/form-field.module.d.ts +0 -10
  88. package/form-field/form-field.wrapper.d.ts +0 -11
  89. package/form-field/public_api.d.ts +0 -4
  90. package/input/input.config.d.ts +0 -2
  91. package/input/input.module.d.ts +0 -11
  92. package/input/input.type.d.ts +0 -15
  93. package/input/public_api.d.ts +0 -3
  94. package/lib/bootstrap.config.d.ts +0 -1
  95. package/lib/bootstrap.d.ts +0 -2
  96. package/lib/bootstrap.module.d.ts +0 -14
  97. package/multicheckbox/multicheckbox.config.d.ts +0 -2
  98. package/multicheckbox/multicheckbox.module.d.ts +0 -12
  99. package/multicheckbox/multicheckbox.type.d.ts +0 -22
  100. package/multicheckbox/public_api.d.ts +0 -3
  101. package/public_api.d.ts +0 -1
  102. package/radio/public_api.d.ts +0 -3
  103. package/radio/radio.config.d.ts +0 -2
  104. package/radio/radio.module.d.ts +0 -12
  105. package/radio/radio.type.d.ts +0 -22
  106. package/select/public_api.d.ts +0 -3
  107. package/select/select.config.d.ts +0 -2
  108. package/select/select.module.d.ts +0 -12
  109. package/select/select.type.d.ts +0 -22
  110. package/textarea/public_api.d.ts +0 -3
  111. package/textarea/textarea.config.d.ts +0 -2
  112. package/textarea/textarea.module.d.ts +0 -11
  113. package/textarea/textarea.type.d.ts +0 -22
@@ -21,8 +21,8 @@ class FormlyFieldSelect extends FieldType {
21
21
  },
22
22
  };
23
23
  }
24
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
25
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyFieldSelect, selector: "formly-field-select", usesInheritance: true, ngImport: i0, template: `
24
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldSelect, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
25
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", type: FormlyFieldSelect, isStandalone: false, selector: "formly-field-select", usesInheritance: true, ngImport: i0, template: `
26
26
  <ng-template #fieldTypeTemplate>
27
27
  <select
28
28
  *ngIf="props.multiple; else singleSelect"
@@ -81,7 +81,7 @@ class FormlyFieldSelect extends FieldType {
81
81
  </ng-template>
82
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 }); }
83
83
  }
84
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldSelect, decorators: [{
84
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldSelect, decorators: [{
85
85
  type: Component,
86
86
  args: [{
87
87
  selector: 'formly-field-select',
@@ -144,6 +144,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
144
144
  </ng-template>
145
145
  `,
146
146
  changeDetection: ChangeDetectionStrategy.OnPush,
147
+ standalone: false,
147
148
  }]
148
149
  }] });
149
150
 
@@ -161,18 +162,18 @@ function withFormlyFieldSelect() {
161
162
  }
162
163
 
163
164
  class FormlyBootstrapSelectModule {
164
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyBootstrapSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
165
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyBootstrapSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
165
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyBootstrapSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
166
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyBootstrapSelectModule, declarations: [FormlyFieldSelect], imports: [CommonModule,
166
167
  ReactiveFormsModule,
167
168
  FormlyBootstrapFormFieldModule,
168
169
  FormlySelectModule, i3.FormlyModule] }); }
169
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyBootstrapSelectModule, imports: [CommonModule,
170
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyBootstrapSelectModule, imports: [CommonModule,
170
171
  ReactiveFormsModule,
171
172
  FormlyBootstrapFormFieldModule,
172
173
  FormlySelectModule,
173
174
  FormlyModule.forChild(withFormlyFieldSelect())] }); }
174
175
  }
175
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyBootstrapSelectModule, decorators: [{
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyBootstrapSelectModule, decorators: [{
176
177
  type: NgModule,
177
178
  args: [{
178
179
  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})\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":";;;;;;;;;;;;AA4EM,MAAO,iBAAkB,SAAQ,SAAuC,CAAA;AA9D9E,IAAA,WAAA,GAAA;;AA+DW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,CAAC,EAAO,EAAE,EAAO,EAAA;oBAC1B,OAAO,EAAE,KAAK,EAAE;iB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AAS,EAAE,iBAAiB;gBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,aAAA;AACD,YAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,SAAA;KACF;AACH;;MCOa,2BAA2B,CAAA;+GAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,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 <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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AAC,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: "18.2.13", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
21
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyFieldTextArea, selector: "formly-field-textarea", usesInheritance: true, ngImport: i0, template: `
20
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldTextArea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
21
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.33", 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: "18.2.13", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyFieldTextArea, decorators: [{
37
37
  type: Component,
38
38
  args: [{
39
39
  selector: 'formly-field-textarea',
@@ -52,6 +52,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
52
52
  </ng-template>
53
53
  `,
54
54
  changeDetection: ChangeDetectionStrategy.OnPush,
55
+ standalone: false,
55
56
  }]
56
57
  }] });
57
58
 
@@ -68,16 +69,16 @@ function withFormlyFieldTextArea() {
68
69
  }
69
70
 
70
71
  class FormlyBootstrapTextAreaModule {
71
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyBootstrapTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
72
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyBootstrapTextAreaModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
72
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyBootstrapTextAreaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
73
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", ngImport: i0, type: FormlyBootstrapTextAreaModule, declarations: [FormlyFieldTextArea], imports: [CommonModule,
73
74
  ReactiveFormsModule,
74
75
  FormlyBootstrapFormFieldModule, i2.FormlyModule] }); }
75
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyBootstrapTextAreaModule, imports: [CommonModule,
76
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyBootstrapTextAreaModule, imports: [CommonModule,
76
77
  ReactiveFormsModule,
77
78
  FormlyBootstrapFormFieldModule,
78
79
  FormlyModule.forChild(withFormlyFieldTextArea())] }); }
79
80
  }
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyBootstrapTextAreaModule, decorators: [{
81
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyBootstrapTextAreaModule, decorators: [{
81
82
  type: NgModule,
82
83
  args: [{
83
84
  declarations: [FormlyFieldTextArea],
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-bootstrap-textarea.mjs","sources":["../../../../src/ui/bootstrap/textarea/src/textarea.type.ts","../../../../src/ui/bootstrap/textarea/src/textarea.config.ts","../../../../src/ui/bootstrap/textarea/src/textarea.module.ts","../../../../src/ui/bootstrap/textarea/src/ngx-formly-bootstrap-textarea.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';\n\ninterface TextAreaProps extends FormlyFieldProps {\n cols?: number;\n rows?: number;\n}\n\nexport interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {\n type: 'textarea' | Type<FormlyFieldTextArea>;\n}\n\n@Component({\n selector: 'formly-field-textarea',\n template: `\n <ng-template #fieldTypeTemplate>\n <textarea\n [formControl]=\"formControl\"\n [cols]=\"props.cols\"\n [rows]=\"props.rows\"\n class=\"form-control\"\n [class.is-invalid]=\"showError\"\n [formlyAttributes]=\"field\"\n [attr.aria-describedby]=\"id + '-formly-validation-error'\"\n [attr.aria-invalid]=\"showError\"\n ></textarea>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {\n override defaultOptions = {\n props: {\n cols: 1,\n rows: 1,\n },\n };\n}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldTextArea } from './textarea.type';\n\nexport function withFormlyFieldTextArea(): ConfigOption {\n return {\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextArea,\n wrappers: ['form-field'],\n },\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { FormlyBootstrapFormFieldModule } from '@ngx-formly/bootstrap/form-field';\nimport { FormlyFieldTextArea } from './textarea.type';\nimport { withFormlyFieldTextArea } from './textarea.config';\n\n@NgModule({\n declarations: [FormlyFieldTextArea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n\n FormlyBootstrapFormFieldModule,\n FormlyModule.forChild(withFormlyFieldTextArea()),\n ],\n})\nexport class FormlyBootstrapTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AA+BM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AAlBlF,IAAA,WAAA,GAAA;;AAmBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,IAAI,EAAE,CAAC;AACR,aAAA;SACF;AACF;+GAPY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,EAhBpB,QAAA,EAAA,uBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;;;;;;;;;;;;AAaT,EAAA,CAA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AAA,EAAA,CATzB,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAEhC,YAAY;YACZ,mBAAmB;YAEnB,8BAA8B,EAAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAIrB,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,6BAA6B,YAPtC,YAAY;YACZ,mBAAmB;YAEnB,8BAA8B;AAC9B,YAAA,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,CAAC,CAAA,EAAA,CAAA,CAAA;;4FAGvC,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAVzC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,mBAAmB,CAAC;AACnC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBAEnB,8BAA8B;AAC9B,wBAAA,YAAY,CAAC,QAAQ,CAAC,uBAAuB,EAAE,CAAC;AACjD,qBAAA;AACF,iBAAA;;;AClBD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-bootstrap-textarea.mjs","sources":["../../../../src/ui/bootstrap/textarea/src/textarea.type.ts","../../../../src/ui/bootstrap/textarea/src/textarea.config.ts","../../../../src/ui/bootstrap/textarea/src/textarea.module.ts","../../../../src/ui/bootstrap/textarea/src/ngx-formly-bootstrap-textarea.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';\n\ninterface TextAreaProps extends FormlyFieldProps {\n cols?: number;\n rows?: number;\n}\n\nexport interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {\n type: 'textarea' | Type<FormlyFieldTextArea>;\n}\n\n@Component({\n selector: 'formly-field-textarea',\n template: `\n <ng-template #fieldTypeTemplate>\n <textarea\n [formControl]=\"formControl\"\n [cols]=\"props.cols\"\n [rows]=\"props.rows\"\n class=\"form-control\"\n [class.is-invalid]=\"showError\"\n [formlyAttributes]=\"field\"\n [attr.aria-describedby]=\"id + '-formly-validation-error'\"\n [attr.aria-invalid]=\"showError\"\n ></textarea>\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: false,\n})\nexport class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {\n override defaultOptions = {\n props: {\n cols: 1,\n rows: 1,\n },\n };\n}\n","import { ConfigOption } from '@ngx-formly/core';\nimport { FormlyFieldTextArea } from './textarea.type';\n\nexport function withFormlyFieldTextArea(): ConfigOption {\n return {\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextArea,\n wrappers: ['form-field'],\n },\n ],\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { FormlyBootstrapFormFieldModule } from '@ngx-formly/bootstrap/form-field';\nimport { FormlyFieldTextArea } from './textarea.type';\nimport { withFormlyFieldTextArea } from './textarea.config';\n\n@NgModule({\n declarations: [FormlyFieldTextArea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n\n FormlyBootstrapFormFieldModule,\n FormlyModule.forChild(withFormlyFieldTextArea()),\n ],\n})\nexport class FormlyBootstrapTextAreaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;AAgCM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AAnBlF,IAAA,WAAA,GAAA;;AAoBW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,IAAI,EAAE,CAAC;AACR,aAAA;S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
 
25
25
  class FormlyBootstrapModule {
26
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyBootstrapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
27
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlyBootstrapModule, imports: [FormlyBootstrapFormFieldModule,
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyBootstrapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
27
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.33", 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: "18.2.13", ngImport: i0, type: FormlyBootstrapModule, imports: [FormlyBootstrapFormFieldModule,
35
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.33", 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: "18.2.13", ngImport: i0, type: FormlyBootstrapModule, decorators: [{
44
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.33", ngImport: i0, type: FormlyBootstrapModule, decorators: [{
45
45
  type: NgModule,
46
46
  args: [{
47
47
  imports: [
@@ -1,5 +1,35 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/bootstrap/form-field" />
5
- export * from './public_api';
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 };
package/index.d.ts CHANGED
@@ -1,5 +1,20 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/bootstrap" />
5
- export * from './public_api';
1
+ import * as _ngx_formly_core from '@ngx-formly/core';
2
+ import * as i0 from '@angular/core';
3
+ import * as i1 from '@ngx-formly/bootstrap/form-field';
4
+ import * as i2 from '@ngx-formly/bootstrap/input';
5
+ import * as i3 from '@ngx-formly/bootstrap/textarea';
6
+ import * as i4 from '@ngx-formly/bootstrap/radio';
7
+ import * as i5 from '@ngx-formly/bootstrap/checkbox';
8
+ import * as i6 from '@ngx-formly/bootstrap/multicheckbox';
9
+ import * as i7 from '@ngx-formly/bootstrap/select';
10
+ import * as i8 from '@ngx-formly/bootstrap/addons';
11
+
12
+ declare function withFormlyBootstrap(): _ngx_formly_core.ConfigOption[];
13
+
14
+ declare class FormlyBootstrapModule {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBootstrapModule, never>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyBootstrapModule, never, [typeof i1.FormlyBootstrapFormFieldModule, typeof i2.FormlyBootstrapInputModule, typeof i3.FormlyBootstrapTextAreaModule, typeof i4.FormlyBootstrapRadioModule, typeof i5.FormlyBootstrapCheckboxModule, typeof i6.FormlyBootstrapMultiCheckboxModule, typeof i7.FormlyBootstrapSelectModule, typeof i8.FormlyBootstrapAddonsModule], never>;
17
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyBootstrapModule>;
18
+ }
19
+
20
+ export { FormlyBootstrapModule, withFormlyBootstrap };
package/input/index.d.ts CHANGED
@@ -1,5 +1,30 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/bootstrap/input" />
5
- export * from './public_api';
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 };
@@ -1,5 +1,38 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/bootstrap/multicheckbox" />
5
- export * from './public_api';
1
+ import * as i6 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
+ import * as i5 from '@ngx-formly/core/select';
10
+
11
+ declare function withFormlyFieldMultiCheckbox(): ConfigOption;
12
+
13
+ interface MultiCheckboxProps extends FormlyFieldProps {
14
+ formCheck?: 'default' | 'inline' | 'switch' | 'inline-switch';
15
+ }
16
+ interface FormlyMultiCheckboxFieldConfig extends FormlyFieldConfig<MultiCheckboxProps> {
17
+ type: 'multicheckbox' | Type<FormlyFieldMultiCheckbox>;
18
+ }
19
+ declare class FormlyFieldMultiCheckbox extends FieldType<FieldTypeConfig<MultiCheckboxProps>> {
20
+ defaultOptions: {
21
+ props: {
22
+ formCheck: "default";
23
+ };
24
+ };
25
+ onChange(value: any, checked: boolean): void;
26
+ isChecked(option: any): any;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldMultiCheckbox, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldMultiCheckbox, "formly-field-multicheckbox", never, {}, {}, never, never, false, never>;
29
+ }
30
+
31
+ declare class FormlyBootstrapMultiCheckboxModule {
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBootstrapMultiCheckboxModule, never>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyBootstrapMultiCheckboxModule, [typeof FormlyFieldMultiCheckbox], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyBootstrapFormFieldModule, typeof i5.FormlySelectModule, typeof i6.FormlyModule], never>;
34
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyBootstrapMultiCheckboxModule>;
35
+ }
36
+
37
+ export { FormlyBootstrapMultiCheckboxModule, FormlyFieldMultiCheckbox, withFormlyFieldMultiCheckbox };
38
+ export type { FormlyMultiCheckboxFieldConfig };
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@ngx-formly/bootstrap",
3
- "version": "7.1.0",
3
+ "version": "9.0.0",
4
4
  "license": "MIT",
5
5
  "dependencies": {
6
6
  "tslib": "^2.0.0"
7
7
  },
8
8
  "peerDependencies": {
9
- "@ngx-formly/core": "7.1.0",
9
+ "@ngx-formly/core": "9.0.0",
10
10
  "bootstrap": "^5.0.0"
11
11
  },
12
12
  "module": "fesm2022/ngx-formly-bootstrap.mjs",
@@ -17,56 +17,38 @@
17
17
  },
18
18
  ".": {
19
19
  "types": "./index.d.ts",
20
- "esm2022": "./esm2022/ngx-formly-bootstrap.mjs",
21
- "esm": "./esm2022/ngx-formly-bootstrap.mjs",
22
20
  "default": "./fesm2022/ngx-formly-bootstrap.mjs"
23
21
  },
24
22
  "./addons": {
25
23
  "types": "./addons/index.d.ts",
26
- "esm2022": "./esm2022/addons/ngx-formly-bootstrap-addons.mjs",
27
- "esm": "./esm2022/addons/ngx-formly-bootstrap-addons.mjs",
28
24
  "default": "./fesm2022/ngx-formly-bootstrap-addons.mjs"
29
25
  },
30
26
  "./checkbox": {
31
27
  "types": "./checkbox/index.d.ts",
32
- "esm2022": "./esm2022/checkbox/ngx-formly-bootstrap-checkbox.mjs",
33
- "esm": "./esm2022/checkbox/ngx-formly-bootstrap-checkbox.mjs",
34
28
  "default": "./fesm2022/ngx-formly-bootstrap-checkbox.mjs"
35
29
  },
36
30
  "./form-field": {
37
31
  "types": "./form-field/index.d.ts",
38
- "esm2022": "./esm2022/form-field/ngx-formly-bootstrap-form-field.mjs",
39
- "esm": "./esm2022/form-field/ngx-formly-bootstrap-form-field.mjs",
40
32
  "default": "./fesm2022/ngx-formly-bootstrap-form-field.mjs"
41
33
  },
42
34
  "./input": {
43
35
  "types": "./input/index.d.ts",
44
- "esm2022": "./esm2022/input/ngx-formly-bootstrap-input.mjs",
45
- "esm": "./esm2022/input/ngx-formly-bootstrap-input.mjs",
46
36
  "default": "./fesm2022/ngx-formly-bootstrap-input.mjs"
47
37
  },
48
38
  "./multicheckbox": {
49
39
  "types": "./multicheckbox/index.d.ts",
50
- "esm2022": "./esm2022/multicheckbox/ngx-formly-bootstrap-multicheckbox.mjs",
51
- "esm": "./esm2022/multicheckbox/ngx-formly-bootstrap-multicheckbox.mjs",
52
40
  "default": "./fesm2022/ngx-formly-bootstrap-multicheckbox.mjs"
53
41
  },
54
42
  "./radio": {
55
43
  "types": "./radio/index.d.ts",
56
- "esm2022": "./esm2022/radio/ngx-formly-bootstrap-radio.mjs",
57
- "esm": "./esm2022/radio/ngx-formly-bootstrap-radio.mjs",
58
44
  "default": "./fesm2022/ngx-formly-bootstrap-radio.mjs"
59
45
  },
60
46
  "./select": {
61
47
  "types": "./select/index.d.ts",
62
- "esm2022": "./esm2022/select/ngx-formly-bootstrap-select.mjs",
63
- "esm": "./esm2022/select/ngx-formly-bootstrap-select.mjs",
64
48
  "default": "./fesm2022/ngx-formly-bootstrap-select.mjs"
65
49
  },
66
50
  "./textarea": {
67
51
  "types": "./textarea/index.d.ts",
68
- "esm2022": "./esm2022/textarea/ngx-formly-bootstrap-textarea.mjs",
69
- "esm": "./esm2022/textarea/ngx-formly-bootstrap-textarea.mjs",
70
52
  "default": "./fesm2022/ngx-formly-bootstrap-textarea.mjs"
71
53
  }
72
54
  },
package/radio/index.d.ts CHANGED
@@ -1,5 +1,38 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/bootstrap/radio" />
5
- export * from './public_api';
1
+ import * as i6 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 i3 from '@angular/forms';
8
+ import { UntypedFormControl } from '@angular/forms';
9
+ import * as i2 from '@angular/common';
10
+ import * as i5 from '@ngx-formly/core/select';
11
+
12
+ declare function withFormlyFieldRadio(): ConfigOption;
13
+
14
+ interface RadioProps extends FormlyFieldProps {
15
+ formCheck?: 'default' | 'inline';
16
+ }
17
+ interface FormlyRadioFieldConfig extends FormlyFieldConfig<RadioProps> {
18
+ type: 'radio' | Type<FormlyFieldRadio>;
19
+ }
20
+ declare class FormlyFieldRadio extends FieldType<FieldTypeConfig<RadioProps>> {
21
+ defaultOptions: {
22
+ props: {
23
+ formCheck: "default";
24
+ };
25
+ };
26
+ get disabledControl(): UntypedFormControl;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldRadio, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldRadio, "formly-field-radio", never, {}, {}, never, never, false, never>;
29
+ }
30
+
31
+ declare class FormlyBootstrapRadioModule {
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBootstrapRadioModule, never>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyBootstrapRadioModule, [typeof FormlyFieldRadio], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyBootstrapFormFieldModule, typeof i5.FormlySelectModule, typeof i6.FormlyModule], never>;
34
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyBootstrapRadioModule>;
35
+ }
36
+
37
+ export { FormlyBootstrapRadioModule, FormlyFieldRadio, withFormlyFieldRadio };
38
+ export type { FormlyRadioFieldConfig };
package/select/index.d.ts CHANGED
@@ -1,5 +1,38 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/bootstrap/select" />
5
- export * from './public_api';
1
+ import * as i6 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 i5 from '@ngx-formly/core/select';
8
+ import { FormlyFieldSelectProps } from '@ngx-formly/core/select';
9
+ import * as i2 from '@angular/common';
10
+ import * as i3 from '@angular/forms';
11
+
12
+ declare function withFormlyFieldSelect(): ConfigOption;
13
+
14
+ interface SelectProps extends FormlyFieldProps, FormlyFieldSelectProps {
15
+ multiple?: boolean;
16
+ compareWith?: (o1: any, o2: any) => boolean;
17
+ }
18
+ interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {
19
+ type: 'select' | Type<FormlyFieldSelect>;
20
+ }
21
+ declare class FormlyFieldSelect extends FieldType<FieldTypeConfig<SelectProps>> {
22
+ defaultOptions: {
23
+ props: {
24
+ compareWith(o1: any, o2: any): boolean;
25
+ };
26
+ };
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldSelect, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldSelect, "formly-field-select", never, {}, {}, never, never, false, never>;
29
+ }
30
+
31
+ declare class FormlyBootstrapSelectModule {
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBootstrapSelectModule, never>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyBootstrapSelectModule, [typeof FormlyFieldSelect], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyBootstrapFormFieldModule, typeof i5.FormlySelectModule, typeof i6.FormlyModule], never>;
34
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyBootstrapSelectModule>;
35
+ }
36
+
37
+ export { FormlyBootstrapSelectModule, FormlyFieldSelect, withFormlyFieldSelect };
38
+ export type { FormlySelectFieldConfig };
@@ -1,5 +1,37 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@ngx-formly/bootstrap/textarea" />
5
- export * from './public_api';
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 withFormlyFieldTextArea(): ConfigOption;
11
+
12
+ interface TextAreaProps extends FormlyFieldProps {
13
+ cols?: number;
14
+ rows?: number;
15
+ }
16
+ interface FormlyTextAreaFieldConfig extends FormlyFieldConfig<TextAreaProps> {
17
+ type: 'textarea' | Type<FormlyFieldTextArea>;
18
+ }
19
+ declare class FormlyFieldTextArea extends FieldType<FieldTypeConfig<TextAreaProps>> {
20
+ defaultOptions: {
21
+ props: {
22
+ cols: number;
23
+ rows: number;
24
+ };
25
+ };
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldTextArea, never>;
27
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldTextArea, "formly-field-textarea", never, {}, {}, never, never, false, never>;
28
+ }
29
+
30
+ declare class FormlyBootstrapTextAreaModule {
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBootstrapTextAreaModule, never>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyBootstrapTextAreaModule, [typeof FormlyFieldTextArea], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyBootstrapFormFieldModule, typeof i5.FormlyModule], never>;
33
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormlyBootstrapTextAreaModule>;
34
+ }
35
+
36
+ export { FormlyBootstrapTextAreaModule, FormlyFieldTextArea, withFormlyFieldTextArea };
37
+ export type { FormlyTextAreaFieldConfig };
@@ -1,2 +0,0 @@
1
- import { FormlyFieldConfig } from '@ngx-formly/core';
2
- export declare function addonsExtension(field: FormlyFieldConfig): void;
@@ -1,26 +0,0 @@
1
- import { TemplateRef, ViewContainerRef } from '@angular/core';
2
- import { FormlyFieldConfig, FieldTypeConfig, FieldWrapper } from '@ngx-formly/core';
3
- import { FormlyFieldProps } from '@ngx-formly/bootstrap/form-field';
4
- import * as i0 from "@angular/core";
5
- interface AddonsProps extends FormlyFieldProps {
6
- addonRight?: {
7
- onClick?: (field: FormlyFieldConfig, event?: any) => void;
8
- class?: string;
9
- text?: string;
10
- };
11
- addonLeft?: {
12
- onClick?: (field: FormlyFieldConfig, event?: any) => void;
13
- class?: string;
14
- text?: string;
15
- };
16
- }
17
- export declare class FormlyWrapperAddons extends FieldWrapper<FieldTypeConfig<AddonsProps>> {
18
- private hostContainerRef?;
19
- set content(templateRef: TemplateRef<any>);
20
- constructor(hostContainerRef?: ViewContainerRef);
21
- addonRightClick($event: any): void;
22
- addonLeftClick($event: any): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperAddons, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperAddons, "formly-wrapper-addons", never, {}, {}, never, never, false, never>;
25
- }
26
- export {};
@@ -1,2 +0,0 @@
1
- import { ConfigOption } from '@ngx-formly/core';
2
- export declare function withFormlyWrapperAddons(): ConfigOption;
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./addons.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@ngx-formly/core";
6
- export declare class FormlyBootstrapAddonsModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBootstrapAddonsModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyBootstrapAddonsModule, [typeof i1.FormlyWrapperAddons], [typeof i2.CommonModule, typeof i3.ReactiveFormsModule, typeof i4.FormlyModule], never>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<FormlyBootstrapAddonsModule>;
10
- }
@@ -1,2 +0,0 @@
1
- export { withFormlyWrapperAddons } from './addons.config';
2
- export { FormlyBootstrapAddonsModule } from './addons.module';
@@ -1,2 +0,0 @@
1
- import { ConfigOption } from '@ngx-formly/core';
2
- export declare function withFormlyFieldCheckbox(): ConfigOption;