/** * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { AfterViewInit, OnDestroy, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { MagMatchMediaService, MagSpaceService } from 'ng-stalk/core/service'; import { NzSafeAny } from 'ng-zorro-antd/core/types'; import { NzModalService } from 'ng-zorro-antd/modal'; import { NzTableComponent } from 'ng-zorro-antd/table'; import { Subject } from 'rxjs'; import { SelectableZorroDataSource } from '../datasource/selectable-zorro-data-source'; import { CrudAction } from '../model/crud-action'; import { CrudModalOption } from '../model/crud-modal-option'; import * as i0 from "@angular/core"; /** * CrudPage2 의 역할 * - mainTable 의 크기를 결정해줌 * - CrudDataSource 생성을 요구함 * - edit/detail 모달을 오픈하고 기본 콜백 기능을 지원함 */ export declare abstract class CrudPage2Component implements OnInit, AfterViewInit, OnDestroy { protected magSpaceService: MagSpaceService; protected magMatchMediaService: MagMatchMediaService; protected unsubscribeAll: Subject; sidebarScrollSize: number; tableScrollSize: number; dataSource: SelectableZorroDataSource; table?: NzTableComponent; protected router: Router; route: ActivatedRoute; dialog: NzModalService; componentId: string; sortName: string | null; sortValue: string | null; protected constructor(router: Router, route: ActivatedRoute, dialog: NzModalService, magSpaceService: MagSpaceService, magMatchMediaService: MagMatchMediaService); ngOnInit(): void; abstract makeDataSource(): SelectableZorroDataSource; abstract getModalComponents(): Map; getDataSource(): SelectableZorroDataSource; ngAfterViewInit(): void; protected initDefaultMagSpacing(): void; ngOnDestroy(): void; protected stopDefaultMagSpacing(): void; sort(sort: { key: string; value: string; }): void; sortData(data: T[]): T[]; abstract loadPage(): void; onWindowResize(event: any): void; protected getDefaultModalWidth(component: NzSafeAny, forceWidth?: string): string; add(option?: CrudModalOption): void; modify(model: T, option?: CrudModalOption): void; showDetail(model: T, option?: CrudModalOption): void; onModalAction(action: CrudAction | string, model?: T): void; static ɵfac: i0.ɵɵFactoryDeclaration, never>; static ɵprov: i0.ɵɵInjectableDeclaration>; }