igniteui-angular-spreadsheet
Version:
Ignite UI Angular spreadsheet component for displaying and editing Microsoft Excel workbooks for modern web apps.
89 lines (88 loc) • 3.21 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 { __extends } from "tslib";
import { RowColumnBaseCellFormatEnumerator } from "./RowColumnBaseCellFormatEnumerator";
import { markType, getEnumerator } from "igniteui-angular-core";
/**
* @hidden
*/
var ColumnCellFormatEnumerator = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(ColumnCellFormatEnumerator, _super);
function ColumnCellFormatEnumerator() {
var _this = _super !== null && _super.apply(this, arguments) || this;
_this.i = null;
_this.n = 0;
_this.o = 0;
_this.m = 0;
_this.l = 0;
_this.j = null;
_this.k = null;
return _this;
}
ColumnCellFormatEnumerator.prototype.h = function (a, b, c, d) {
this.i = a;
this.l = b;
this.j = a._cb(b);
this.n = c;
this.o = d;
this.m = -1;
this.k = null;
this.a = null;
this.e = -1;
this.d = -1;
};
ColumnCellFormatEnumerator.prototype.c = function () {
if (this.d >= this.o) {
this.a = null;
this.e = this.d = this.o + 1;
return false;
}
else if (this.m < 0) {
this.m = this.n;
this.k = getEnumerator(this.i._rows$i._m(this.n, this.o));
if (!this.k.moveNext()) {
this.k = null;
}
}
else {
this.m = this.d + 1;
}
while (this.k != null) {
var a = this.k.current;
if (a.index >= this.m) {
break;
}
if (!this.k.moveNext()) {
this.k = null;
}
}
if (this.k != null) {
var b = this.k.current;
if (b.index == this.m) {
var c = b._bf(this.l);
if (c == null && b._hasCellFormat) {
c = b._cellFormatInternal.d;
}
if (c != null) {
this.e = this.d = this.m;
this.a = c;
return true;
}
}
}
this.a = this.j.b;
this.e = this.m;
if (this.k != null && this.m == this.k.current.index && !this.k.moveNext()) {
this.k = null;
}
this.d = this.k != null ? this.k.current.index - 1 : this.o;
return true;
};
ColumnCellFormatEnumerator.$t = markType(ColumnCellFormatEnumerator, 'ColumnCellFormatEnumerator', RowColumnBaseCellFormatEnumerator.$);
return ColumnCellFormatEnumerator;
}(RowColumnBaseCellFormatEnumerator));
export { ColumnCellFormatEnumerator };