@valtimo/components 5.7.0 → 5.8.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/esm2020/lib/components/form-io/form-io-builder.component.mjs +14 -2
- package/fesm2015/valtimo-components.mjs +13 -2
- package/fesm2015/valtimo-components.mjs.map +1 -1
- package/fesm2020/valtimo-components.mjs +13 -2
- package/fesm2020/valtimo-components.mjs.map +1 -1
- package/lib/components/form-io/form-io-builder.component.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -32,7 +32,7 @@ import heatmap from 'heatmap.js-fixed/build/heatmap.js';
|
|
|
32
32
|
import * as i1$a from '@valtimo/resource';
|
|
33
33
|
import { S3Resource, ResourceModule } from '@valtimo/resource';
|
|
34
34
|
import * as i7 from '@formio/angular';
|
|
35
|
-
import { Formio, FormioModule, FormioAppConfig, createCustomFormioComponent, registerCustomFormioComponentWithClass
|
|
35
|
+
import { Formio, Components, FormioModule, FormioAppConfig, createCustomFormioComponent, registerCustomFormioComponentWithClass } from '@formio/angular';
|
|
36
36
|
import jwt_decode from 'jwt-decode';
|
|
37
37
|
import Dropzone from 'dropzone';
|
|
38
38
|
import * as i1$b from 'ngx-spinner';
|
|
@@ -3778,7 +3778,18 @@ class FormioBuilderComponent {
|
|
|
3778
3778
|
// eslint-disable-next-line @angular-eslint/no-output-native
|
|
3779
3779
|
this.change = new EventEmitter();
|
|
3780
3780
|
}
|
|
3781
|
-
ngOnInit() {
|
|
3781
|
+
ngOnInit() {
|
|
3782
|
+
const originalEditForm = Components.baseEditForm;
|
|
3783
|
+
Components.baseEditForm = function (...extend) {
|
|
3784
|
+
const editForm = originalEditForm(...extend);
|
|
3785
|
+
const keyField = editForm.components
|
|
3786
|
+
.find(element => element.key === 'tabs')
|
|
3787
|
+
.components.find(element => element.key === 'api')
|
|
3788
|
+
.components.find(element => element.key === 'key');
|
|
3789
|
+
delete keyField.validate;
|
|
3790
|
+
return editForm;
|
|
3791
|
+
};
|
|
3792
|
+
}
|
|
3782
3793
|
onChange(event) {
|
|
3783
3794
|
this.change.emit(event);
|
|
3784
3795
|
}
|