mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-29 15:36:07 +00:00
TS migration
This commit is contained in:
@@ -95,13 +95,13 @@ export interface CollectionOptions {
|
||||
* A model.
|
||||
*/
|
||||
model?: typeof Model;
|
||||
defs: import('model').ModelDefs;
|
||||
defs?: import('model').ModelDefs;
|
||||
maxSize?: number;
|
||||
entityType?: string | null;
|
||||
urlRoot?: string;
|
||||
url?: string;
|
||||
orderBy: string | null;
|
||||
order: 'asc' | 'desc' | boolean;
|
||||
orderBy?: string | null;
|
||||
order?: 'asc' | 'desc' | boolean;
|
||||
}
|
||||
|
||||
export default class Collection<TModel extends Model = Model> {
|
||||
@@ -228,20 +228,11 @@ export default class Collection<TModel extends Model = Model> {
|
||||
|
||||
/**
|
||||
* @param {Model[]|Record<string, *>[]|null} [models] Models.
|
||||
* @param {{
|
||||
* entityType?: string,
|
||||
* model?: Model.prototype,
|
||||
* defs?: import('model').ModelDefs,
|
||||
* order?: 'asc'|'desc'|boolean|null,
|
||||
* orderBy?: string|null,
|
||||
* urlRoot?: string,
|
||||
* url?: string,
|
||||
* maxSize?: number,
|
||||
* }} [options] Options.
|
||||
* @param [options] Options.
|
||||
*/
|
||||
constructor(
|
||||
models?: TModel[] | Record<string, any>[] | null,
|
||||
options?: CollectionOptions,
|
||||
models: TModel[] | Record<string, any>[] | null = null,
|
||||
options: CollectionOptions = {},
|
||||
) {
|
||||
options = {...options};
|
||||
|
||||
|
||||
@@ -31,8 +31,6 @@ import {Events} from 'bullbone';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*
|
||||
* @mixes Bull.Events
|
||||
*/
|
||||
class StickyBarHelper {
|
||||
|
||||
@@ -50,7 +48,7 @@ class StickyBarHelper {
|
||||
_isReady = false
|
||||
|
||||
/**
|
||||
* @param {import('views/record/list').default} view
|
||||
* @param {import('views/record/list-base').default} view
|
||||
* @param {{force?: boolean}} options
|
||||
*/
|
||||
constructor(view, options = {}) {
|
||||
|
||||
@@ -57,7 +57,7 @@ export default class ListColumnResizeHelper {
|
||||
static selector = 'table > thead > tr > th > .column-resizer';
|
||||
|
||||
/**
|
||||
* @param {import('views/record/list').default} view
|
||||
* @param {import('views/record/list-base').default} view
|
||||
* @param {import('helpers/list/settings').default} helper
|
||||
*/
|
||||
constructor(view, helper) {
|
||||
|
||||
@@ -38,7 +38,7 @@ export default class ListColumnWidthControlHelper {
|
||||
|
||||
/**
|
||||
* @param {{
|
||||
* view?: import('views/record/list').default,
|
||||
* view?: import('views/record/list-base').default,
|
||||
* helper: import('helpers/list/settings').default,
|
||||
* layoutProvider?: function(): {
|
||||
* name: string,
|
||||
|
||||
@@ -82,7 +82,7 @@ class KanbanRecordView extends ListRecordView {
|
||||
* A button list.
|
||||
*
|
||||
* @protected
|
||||
* @type {module:views/record/list~button[]}
|
||||
* @inheritDoc
|
||||
*/
|
||||
buttonList = []
|
||||
|
||||
|
||||
3901
client/src/views/record/list-base.ts
Normal file
3901
client/src/views/record/list-base.ts
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user