UNPKG

@ohayojp.com/components

Version:

Common business components of ohayojp.

42 lines (41 loc) 1.51 kB
import { DomSanitizer } from '@angular/platform-browser'; import { ACLService } from '@ohayojp.com/acl'; import { OhayoI18NService } from '@ohayojp.com/theme'; import { OhayoSTConfig } from '@ohayojp.com/util'; import { STRowSource } from './st-row.directive'; import { STWidgetRegistry } from './st-widget'; import { STColumn, STColumnFilter, STResizable, STWidthMode } from './st.interfaces'; import { _STColumn } from './st.types'; export interface STColumnSourceProcessOptions { widthMode: STWidthMode; resizable: STResizable; } export declare class STColumnSource { private dom; private rowSource; private acl; private i18nSrv; private stWidgetRegistry; private cog; constructor(dom: DomSanitizer, rowSource: STRowSource, acl: ACLService, i18nSrv: OhayoI18NService, stWidgetRegistry: STWidgetRegistry); setCog(val: OhayoSTConfig): void; private fixPop; private btnCoerce; private btnCoerceIf; private fixedCoerce; private sortCoerce; private fixSortCoerce; private filterCoerce; private restoreRender; private widgetCoerce; private genHeaders; private cleanCond; process(list: STColumn[], options: STColumnSourceProcessOptions): { columns: _STColumn[]; headers: _STColumn[][]; headerWidths: string[] | null; }; restoreAllRender(columns: _STColumn[]): void; updateDefault(filter: STColumnFilter): this; cleanFilter(col: _STColumn): this; }