Skip to content

EspoCRM – Open Source CRM Application

TS fixes

Yurii2c439759b4bd
diff --git a/client/src/views/record/kanban.js b/client/src/views/record/kanban.js
index 15dd7c4418..ac0726e02f 100644
--- a/client/src/views/record/kanban.js
+++ b/client/src/views/record/kanban.js
@@ -32,6 +32,7 @@ import ListRecordView from 'views/record/list';
import RecordModal from 'helpers/record-modal';
import KanbanPipelineDropdownView from 'views/record/kanban/pipeline-dropdown';
import PipelinesHelper from 'helpers/misc/pipelines';
+import _ from 'underscore';
/**
* A kanban record view.
diff --git a/client/src/views/record/list-base.ts b/client/src/views/record/list-base.ts
index e056304db8..851d4bb3b6 100644
--- a/client/src/views/record/list-base.ts
+++ b/client/src/views/record/list-base.ts
@@ -523,7 +523,10 @@ abstract class ListBaseRecordView<
*/
protected rootData: Record<string, unknown>
- private _additionalRowActionList: any[]
+ /**
+ * @internal
+ */
+ protected _additionalRowActionList: any[]
private _columnResizeHelper: import('helpers/record/list/column-resize').default
@@ -580,7 +583,10 @@ abstract class ListBaseRecordView<
private _cachedFilteredListLayout: TLayout
private _cachedScopeForbiddenFieldList: string[]
- private _rowActionHandlers: Record<string, any>
+ /**
+ * @internal
+ */
+ protected _rowActionHandlers: Record<string, any>
focusOnList() {
const element = this.element.querySelector<HTMLElement>('.list');
diff --git a/client/src/views/record/list-expanded.ts b/client/src/views/record/list-expanded.ts
index 73cf7dfa05..f5dc3e14b0 100644
--- a/client/src/views/record/list-expanded.ts
+++ b/client/src/views/record/list-expanded.ts
@@ -53,7 +53,12 @@ export interface ListExpandedLayout {
} | null;
}
-export interface ListExpandedRecordViewOptions extends ListBaseRecordViewOptions<ListExpandedLayout> {}
+export interface ListExpandedRecordViewOptions extends ListBaseRecordViewOptions<ListExpandedLayout> {
+ /**
+ * Force pagination.
+ */
+ forcePagination?: boolean;
+}
export interface ListExpandedRecordViewSchema extends ListBaseRecordViewSchema<ListExpandedLayout> {
options: ListExpandedRecordViewOptions;