Skip to content

EspoCRM – Open Source CRM Application

Type fixes

Yuriief2872d464b1
diff --git a/client/src/views/fields/base.ts b/client/src/views/fields/base.ts
index 431856dbea..2c8840f249 100644
--- a/client/src/views/fields/base.ts
+++ b/client/src/views/fields/base.ts
@@ -224,12 +224,12 @@ export default class BaseFieldView<
/**
* Search params.
*/
- searchParams: {[s: string]: any} | null = null
+ protected searchParams: {[s: string]: any} | null = null
/**
* Inline edit disabled.
*/
- inlineEditDisabled: boolean = false
+ private inlineEditDisabled: boolean = false
/**
* Field is disabled.
@@ -243,7 +243,6 @@ export default class BaseFieldView<
/**
* Read-only locked.
- *
*/
readOnlyLocked: boolean = false
@@ -259,6 +258,8 @@ export default class BaseFieldView<
/**
* Attribute values before edit.
+ *
+ * @internal
*/
initialAttributes: {[s: string]: any} | null = null
@@ -280,7 +281,7 @@ export default class BaseFieldView<
/**
* A view-record helper.
*/
- recordHelper: import('view-record-helper').default | null = null
+ protected recordHelper: import('view-record-helper').default | null = null
/**
* @internal
@@ -301,6 +302,8 @@ export default class BaseFieldView<
/**
* Is searchable once a search filter is added (no need to type or selecting anything).
* Actual for search mode.
+ *
+ * @internal
*/
initialSearchIsNotIdle: boolean = false
@@ -310,7 +313,9 @@ export default class BaseFieldView<
protected entityType: string | null = null
/**
- * A last validation message;
+ * A last validation message.
+ *
+ * @internal
*/
lastValidationMessage: string | null = null
@@ -692,8 +697,10 @@ export default class BaseFieldView<
private _initCalled: boolean = false
- /** @inheritDoc */
- init() {
+ /**
+ * @internal
+ */
+ protected init() {
this.validations = Espo.Utils.clone(this.validations);
this.searchTypeList = Espo.Utils.clone(this.searchTypeList);
diff --git a/client/src/views/fields/bool.ts b/client/src/views/fields/bool.ts
index 4980982a74..18765ac763 100644
--- a/client/src/views/fields/bool.ts
+++ b/client/src/views/fields/bool.ts
@@ -43,13 +43,6 @@ interface Options extends BaseOptions {}
*/
export default class BoolFieldView<S extends ViewSchema = ViewSchema> extends BaseFieldView<S, Params, Options> {
- /**
- * @param options Options.
- */
- constructor(options: {[s: string]: unknown} & Options & {params: Params}) {
- super(options);
- }
-
type = 'bool'
listTemplate = 'fields/bool/list'
diff --git a/client/src/views/fields/varchar.ts b/client/src/views/fields/varchar.ts
index 6342e4f945..3e221e14fd 100644
--- a/client/src/views/fields/varchar.ts
+++ b/client/src/views/fields/varchar.ts
@@ -55,13 +55,6 @@ type AutocompleteReturn = Promise<import('ui/autocomplete').AutocompleteItem & R
*/
class VarcharFieldView<S extends ViewSchema = ViewSchema> extends BaseFieldView<S, Params, Options> {
- /**
- * @param options Options.
- */
- constructor(options: {[s: string]: unknown} & Options & {params: Params}) {
- super(options);
- }
-
type = 'varchar'
listTemplate = 'fields/varchar/list'