diff --git a/core-web/.betterer.ts b/core-web/.betterer.ts
new file mode 100644
index 000000000000..2a222d3f8208
--- /dev/null
+++ b/core-web/.betterer.ts
@@ -0,0 +1,8 @@
+import { typescript } from '@betterer/typescript';
+
+export default {
+ 'stricter compilation': () =>
+ typescript('./tsconfig.json', {
+ strict: true
+ }).include('./src/**/*.ts')
+};
diff --git a/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.html b/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.html
index 4c61af5237db..84e0eeb93eb8 100644
--- a/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.html
+++ b/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.html
@@ -8,103 +8,139 @@
@switch (field.fieldType) {
@case (fieldTypes.SELECT) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.RADIO) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.TEXT) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.TEXTAREA) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.CHECKBOX) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.MULTI_SELECT) {
-
+ @defer (on immediate) {
+
+ }
}
@case (calendarTypes.includes(field.fieldType) ? field.fieldType : '') {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.TAG) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.JSON) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.BINARY) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.CUSTOM_FIELD) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.BLOCK_EDITOR) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.KEY_VALUE) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.WYSIWYG) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.HOST_FOLDER) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.CATEGORY) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.FILE) {
-
+ @defer (on immediate) {
+
+ }
}
@case (fieldTypes.IMAGE) {
-
+ @defer (on immediate) {
+
+ }
}
}
@if (field.hint) {
diff --git a/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.ts b/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.ts
index a6560dd3c404..511ad1382b37 100644
--- a/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.ts
+++ b/core-web/libs/edit-content/src/lib/components/dot-edit-content-field/dot-edit-content-field.component.ts
@@ -6,9 +6,20 @@ import { DotCMSContentlet, DotCMSContentTypeField } from '@dotcms/dotcms-models'
import { DotFieldRequiredDirective } from '@dotcms/ui';
import { DotEditContentBinaryFieldComponent } from '../../fields/dot-edit-content-binary-field/dot-edit-content-binary-field.component';
-import { DotEditContentFieldsModule } from '../../fields/dot-edit-content-fields.module';
+import { DotEditContentCalendarFieldComponent } from '../../fields/dot-edit-content-calendar-field/dot-edit-content-calendar-field.component';
+import { DotEditContentCategoryFieldComponent } from '../../fields/dot-edit-content-category-field/dot-edit-content-category-field.component';
+import { DotEditContentCheckboxFieldComponent } from '../../fields/dot-edit-content-checkbox-field/dot-edit-content-checkbox-field.component';
+import { DotEditContentCustomFieldComponent } from '../../fields/dot-edit-content-custom-field/dot-edit-content-custom-field.component';
import { DotEditContentFileFieldComponent } from '../../fields/dot-edit-content-file-field/dot-edit-content-file-field.component';
+import { DotEditContentHostFolderFieldComponent } from '../../fields/dot-edit-content-host-folder-field/dot-edit-content-host-folder-field.component';
+import { DotEditContentJsonFieldComponent } from '../../fields/dot-edit-content-json-field/dot-edit-content-json-field.component';
import { DotEditContentKeyValueComponent } from '../../fields/dot-edit-content-key-value/dot-edit-content-key-value.component';
+import { DotEditContentMultiSelectFieldComponent } from '../../fields/dot-edit-content-multi-select-field/dot-edit-content-multi-select-field.component';
+import { DotEditContentRadioFieldComponent } from '../../fields/dot-edit-content-radio-field/dot-edit-content-radio-field.component';
+import { DotEditContentSelectFieldComponent } from '../../fields/dot-edit-content-select-field/dot-edit-content-select-field.component';
+import { DotEditContentTagFieldComponent } from '../../fields/dot-edit-content-tag-field/dot-edit-content-tag-field.component';
+import { DotEditContentTextAreaComponent } from '../../fields/dot-edit-content-text-area/dot-edit-content-text-area.component';
+import { DotEditContentTextFieldComponent } from '../../fields/dot-edit-content-text-field/dot-edit-content-text-field.component';
import { DotEditContentWYSIWYGFieldComponent } from '../../fields/dot-edit-content-wysiwyg-field/dot-edit-content-wysiwyg-field.component';
import { CALENDAR_FIELD_TYPES } from '../../models/dot-edit-content-field.constant';
import { FIELD_TYPES } from '../../models/dot-edit-content-field.enum';
@@ -27,7 +38,20 @@ import { FIELD_TYPES } from '../../models/dot-edit-content-field.enum';
changeDetection: ChangeDetectionStrategy.OnPush,
imports: [
ReactiveFormsModule,
- DotEditContentFieldsModule,
+ DotEditContentTextAreaComponent,
+ DotEditContentRadioFieldComponent,
+ DotEditContentSelectFieldComponent,
+ DotEditContentTextFieldComponent,
+ DotEditContentCalendarFieldComponent,
+ DotEditContentTagFieldComponent,
+ DotEditContentCheckboxFieldComponent,
+ DotEditContentMultiSelectFieldComponent,
+ DotEditContentBinaryFieldComponent,
+ DotEditContentJsonFieldComponent,
+ DotEditContentCustomFieldComponent,
+ DotEditContentWYSIWYGFieldComponent,
+ DotEditContentHostFolderFieldComponent,
+ DotEditContentCategoryFieldComponent,
DotFieldRequiredDirective,
BlockEditorModule,
DotEditContentBinaryFieldComponent,
diff --git a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-fields.module.ts b/core-web/libs/edit-content/src/lib/fields/dot-edit-content-fields.module.ts
deleted file mode 100644
index 45be7ca6143e..000000000000
--- a/core-web/libs/edit-content/src/lib/fields/dot-edit-content-fields.module.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-import { NgModule } from '@angular/core';
-
-import { DotEditContentBinaryFieldComponent } from './dot-edit-content-binary-field/dot-edit-content-binary-field.component';
-import { DotEditContentCalendarFieldComponent } from './dot-edit-content-calendar-field/dot-edit-content-calendar-field.component';
-import { DotEditContentCategoryFieldComponent } from './dot-edit-content-category-field/dot-edit-content-category-field.component';
-import { DotEditContentCheckboxFieldComponent } from './dot-edit-content-checkbox-field/dot-edit-content-checkbox-field.component';
-import { DotEditContentCustomFieldComponent } from './dot-edit-content-custom-field/dot-edit-content-custom-field.component';
-import { DotEditContentHostFolderFieldComponent } from './dot-edit-content-host-folder-field/dot-edit-content-host-folder-field.component';
-import { DotEditContentJsonFieldComponent } from './dot-edit-content-json-field/dot-edit-content-json-field.component';
-import { DotEditContentMultiSelectFieldComponent } from './dot-edit-content-multi-select-field/dot-edit-content-multi-select-field.component';
-import { DotEditContentRadioFieldComponent } from './dot-edit-content-radio-field/dot-edit-content-radio-field.component';
-import { DotEditContentSelectFieldComponent } from './dot-edit-content-select-field/dot-edit-content-select-field.component';
-import { DotEditContentTagFieldComponent } from './dot-edit-content-tag-field/dot-edit-content-tag-field.component';
-import { DotEditContentTextAreaComponent } from './dot-edit-content-text-area/dot-edit-content-text-area.component';
-import { DotEditContentTextFieldComponent } from './dot-edit-content-text-field/dot-edit-content-text-field.component';
-import { DotEditContentWYSIWYGFieldComponent } from './dot-edit-content-wysiwyg-field/dot-edit-content-wysiwyg-field.component';
-
-@NgModule({
- declarations: [],
- imports: [
- DotEditContentTextAreaComponent,
- DotEditContentRadioFieldComponent,
- DotEditContentSelectFieldComponent,
- DotEditContentTextFieldComponent,
- DotEditContentCalendarFieldComponent,
- DotEditContentTagFieldComponent,
- DotEditContentCheckboxFieldComponent,
- DotEditContentMultiSelectFieldComponent,
- DotEditContentBinaryFieldComponent,
- DotEditContentJsonFieldComponent,
- DotEditContentCustomFieldComponent,
- DotEditContentWYSIWYGFieldComponent,
- DotEditContentHostFolderFieldComponent,
- DotEditContentCategoryFieldComponent
- ],
- exports: [
- DotEditContentTextAreaComponent,
- DotEditContentRadioFieldComponent,
- DotEditContentSelectFieldComponent,
- DotEditContentTextFieldComponent,
- DotEditContentCalendarFieldComponent,
- DotEditContentTagFieldComponent,
- DotEditContentCheckboxFieldComponent,
- DotEditContentMultiSelectFieldComponent,
- DotEditContentBinaryFieldComponent,
- DotEditContentJsonFieldComponent,
- DotEditContentCustomFieldComponent,
- DotEditContentWYSIWYGFieldComponent,
- DotEditContentHostFolderFieldComponent,
- DotEditContentCategoryFieldComponent
- ]
-})
-export class DotEditContentFieldsModule {}