igniteui-react-grids
Version:
Ignite UI React grid components.
182 lines (181 loc) • 9.85 kB
JavaScript
/*
THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE:
https://www.infragistics.com/legal/license/igultimate-la
https://www.infragistics.com/legal/license/igultimate-eula
GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company.
*/
import { Base, typeCast, markType } from "igniteui-react-core";
import { TextCellModel } from "./TextCellModel";
import { CanvasTextCell } from "./CanvasTextCell";
import { CanvasTextCellPresenter } from "./CanvasTextCellPresenter";
import { NumericCellModel } from "./NumericCellModel";
import { CanvasNumericCell } from "./CanvasNumericCell";
import { CanvasNumericCellPresenter } from "./CanvasNumericCellPresenter";
import { DateTimeCellModel } from "./DateTimeCellModel";
import { CanvasDateTimeCell } from "./CanvasDateTimeCell";
import { CanvasDateTimeCellPresenter } from "./CanvasDateTimeCellPresenter";
import { TextHeaderCellModel } from "./TextHeaderCellModel";
import { CanvasTextHeaderCell } from "./CanvasTextHeaderCell";
import { CanvasTextHeaderCellPresenter } from "./CanvasTextHeaderCellPresenter";
import { RowSeparatorModel } from "./RowSeparatorModel";
import { CanvasRowSeparatorCell } from "./CanvasRowSeparatorCell";
import { CanvasRowSeparatorCellPresenter } from "./CanvasRowSeparatorCellPresenter";
import { ImageCellModel } from "./ImageCellModel";
import { CanvasImageCell } from "./CanvasImageCell";
import { CanvasImageCellPresenter } from "./CanvasImageCellPresenter";
import { TemplateCellModel } from "./TemplateCellModel";
import { CanvasTemplateCell } from "./CanvasTemplateCell";
import { CanvasTemplateCellPresenter } from "./CanvasTemplateCellPresenter";
import { TemplateHeaderCellModel } from "./TemplateHeaderCellModel";
import { CanvasTemplateHeaderCell } from "./CanvasTemplateHeaderCell";
import { CanvasTemplateHeaderCellPresenter } from "./CanvasTemplateHeaderCellPresenter";
import { SectionHeaderCellModel } from "./SectionHeaderCellModel";
import { CanvasSectionHeaderCell } from "./CanvasSectionHeaderCell";
import { CanvasSectionHeaderCellPresenter } from "./CanvasSectionHeaderCellPresenter";
import { VerticalSeparatorCellModel } from "./VerticalSeparatorCellModel";
import { CanvasVerticalSeparatorCell } from "./CanvasVerticalSeparatorCell";
import { CanvasVerticalSeparatorCellPresenter } from "./CanvasVerticalSeparatorCellPresenter";
import { SummaryCellModel } from "./SummaryCellModel";
import { CanvasSummaryCell } from "./CanvasSummaryCell";
import { CanvasSummaryCellPresenter } from "./CanvasSummaryCellPresenter";
import { EditorCellModel } from "./EditorCellModel";
import { EditorCell } from "./EditorCell";
import { EditorCellPresenter } from "./EditorCellPresenter";
import { EditorRowCellModel } from "./EditorRowCellModel";
import { EditorRowCell } from "./EditorRowCell";
import { EditorRowCellPresenter } from "./EditorRowCellPresenter";
import { FilterCellModel } from "./FilterCellModel";
import { FilterCell } from "./FilterCell";
import { FilterCellPresenter } from "./FilterCellPresenter";
import { TextCell } from "./TextCell";
import { TextCellPresenter } from "./TextCellPresenter";
import { NumericCell } from "./NumericCell";
import { NumericCellPresenter } from "./NumericCellPresenter";
import { DateTimeCell } from "./DateTimeCell";
import { DateTimeCellPresenter } from "./DateTimeCellPresenter";
import { TextHeaderCell } from "./TextHeaderCell";
import { TextHeaderCellPresenter } from "./TextHeaderCellPresenter";
import { RowSeparatorCell } from "./RowSeparatorCell";
import { RowSeparatorCellPresenter } from "./RowSeparatorCellPresenter";
import { ImageCell } from "./ImageCell";
import { ImageCellPresenter } from "./ImageCellPresenter";
import { TemplateCell } from "./TemplateCell";
import { TemplateCellPresenter } from "./TemplateCellPresenter";
import { TemplateHeaderCell } from "./TemplateHeaderCell";
import { TemplateHeaderCellPresenter } from "./TemplateHeaderCellPresenter";
import { SectionHeaderCell } from "./SectionHeaderCell";
import { SectionHeaderCellPresenter } from "./SectionHeaderCellPresenter";
import { VerticalSeparatorCell } from "./VerticalSeparatorCell";
import { VerticalSeparatorCellPresenter } from "./VerticalSeparatorCellPresenter";
import { SummaryCell } from "./SummaryCell";
import { SummaryCellPresenter } from "./SummaryCellPresenter";
/**
* @hidden
*/
export let DataGridPresenterManager = /*@__PURE__*/ (() => {
class DataGridPresenterManager extends Base {
constructor(a, b) {
super();
this.a = null;
this.c = false;
this.a = a;
this.c = b;
}
b(a, b) {
if (b.s != null) {
return b.s;
}
if (this.c) {
if (typeCast(TextCellModel.$, b) !== null) {
b.s = new CanvasTextCellPresenter(new CanvasTextCell(a));
}
if (typeCast(NumericCellModel.$, b) !== null) {
b.s = new CanvasNumericCellPresenter(new CanvasNumericCell(a));
}
if (typeCast(DateTimeCellModel.$, b) !== null) {
b.s = new CanvasDateTimeCellPresenter(new CanvasDateTimeCell(a));
}
if (typeCast(TextHeaderCellModel.$, b) !== null) {
b.s = new CanvasTextHeaderCellPresenter(new CanvasTextHeaderCell(a));
}
if (typeCast(RowSeparatorModel.$, b) !== null) {
b.s = new CanvasRowSeparatorCellPresenter(new CanvasRowSeparatorCell(a));
}
if (typeCast(ImageCellModel.$, b) !== null) {
b.s = new CanvasImageCellPresenter(new CanvasImageCell(a));
}
if (typeCast(TemplateCellModel.$, b) !== null) {
b.s = new CanvasTemplateCellPresenter(new CanvasTemplateCell(a), this.a);
}
if (typeCast(TemplateHeaderCellModel.$, b) !== null) {
b.s = new CanvasTemplateHeaderCellPresenter(new CanvasTemplateHeaderCell(a), this.a);
}
if (typeCast(SectionHeaderCellModel.$, b) !== null) {
b.s = new CanvasSectionHeaderCellPresenter(new CanvasSectionHeaderCell(a));
}
if (typeCast(VerticalSeparatorCellModel.$, b) !== null) {
b.s = new CanvasVerticalSeparatorCellPresenter(new CanvasVerticalSeparatorCell(a));
}
if (typeCast(SummaryCellModel.$, b) !== null) {
b.s = new CanvasSummaryCellPresenter(new CanvasSummaryCell(a));
}
if (typeCast(EditorCellModel.$, b) !== null) {
b.s = new EditorCellPresenter(new EditorCell(a));
}
if (typeCast(EditorRowCellModel.$, b) !== null) {
b.s = new EditorRowCellPresenter(new EditorRowCell(a));
}
if (typeCast(FilterCellModel.$, b) !== null) {
b.s = new FilterCellPresenter(new FilterCell(a));
}
}
else {
if (typeCast(TextCellModel.$, b) !== null) {
b.s = new TextCellPresenter(new TextCell(a));
}
if (typeCast(NumericCellModel.$, b) !== null) {
b.s = new NumericCellPresenter(new NumericCell(a));
}
if (typeCast(DateTimeCellModel.$, b) !== null) {
b.s = new DateTimeCellPresenter(new DateTimeCell(a));
}
if (typeCast(TextHeaderCellModel.$, b) !== null) {
b.s = new TextHeaderCellPresenter(new TextHeaderCell(a));
}
if (typeCast(RowSeparatorModel.$, b) !== null) {
b.s = new RowSeparatorCellPresenter(new RowSeparatorCell(a));
}
if (typeCast(ImageCellModel.$, b) !== null) {
b.s = new ImageCellPresenter(new ImageCell(a));
}
if (typeCast(TemplateCellModel.$, b) !== null) {
b.s = new TemplateCellPresenter(new TemplateCell(a), this.a);
}
if (typeCast(TemplateHeaderCellModel.$, b) !== null) {
b.s = new TemplateHeaderCellPresenter(new TemplateHeaderCell(a), this.a);
}
if (typeCast(SectionHeaderCellModel.$, b) !== null) {
b.s = new SectionHeaderCellPresenter(new SectionHeaderCell(a));
}
if (typeCast(VerticalSeparatorCellModel.$, b) !== null) {
b.s = new VerticalSeparatorCellPresenter(new VerticalSeparatorCell(a));
}
if (typeCast(SummaryCellModel.$, b) !== null) {
b.s = new SummaryCellPresenter(new SummaryCell(a));
}
if (typeCast(EditorCellModel.$, b) !== null) {
b.s = new EditorCellPresenter(new EditorCell(a));
}
if (typeCast(EditorRowCellModel.$, b) !== null) {
b.s = new EditorRowCellPresenter(new EditorRowCell(a));
}
if (typeCast(FilterCellModel.$, b) !== null) {
b.s = new FilterCellPresenter(new FilterCell(a));
}
}
return b.s;
}
}
DataGridPresenterManager.$t = /*@__PURE__*/ markType(DataGridPresenterManager, 'DataGridPresenterManager');
return DataGridPresenterManager;
})();