igniteui-react-grids
Version:
Ignite UI React grid components.
318 lines (317 loc) • 9.68 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 { RowPath } from "./RowPath";
import { markType } from "igniteui-react-core";
/**
* @hidden
*/
var CellPath = /** @class */ /*@__PURE__*/ (function (_super) {
__extends(CellPath, _super);
function CellPath(a) {
var _rest = [];
for (var _i = 1; _i < arguments.length; _i++) {
_rest[_i - 1] = arguments[_i];
}
var _this = this;
a = (a == void 0) ? 0 : a;
switch (a) {
case 0:
{
var c = _rest[0];
var d = _rest[1];
var e = _rest[2];
var f = _rest[3];
var g = [d, e, f];
{
var i = g[0];
var j = g[1];
var k = g[2];
_this = _super.call(this, j, k) || this;
_this.a3 = 0;
_this.a4 = 0;
_this.ae = 1;
_this.a2 = -1;
_this.ax = false;
_this.ah = false;
_this.ag = false;
_this.au = false;
_this.ai = false;
_this.a3 = i;
_this.ad();
}
_this.b = c;
_this.ad();
}
break;
case 1:
{
var c = _rest[0];
var d = _rest[1];
var e = _rest[2];
_this = _super.call(this, d, e) || this;
_this.a3 = 0;
_this.a4 = 0;
_this.ae = 1;
_this.a2 = -1;
_this.ax = false;
_this.ah = false;
_this.ag = false;
_this.au = false;
_this.ai = false;
_this.a3 = c;
_this.ad();
}
break;
case 2:
{
var c = _rest[0];
var d = _rest[1];
_this = _super.call(this, 0, d) || this;
_this.a3 = 0;
_this.a4 = 0;
_this.ae = 1;
_this.a2 = -1;
_this.ax = false;
_this.ah = false;
_this.ag = false;
_this.au = false;
_this.ai = false;
_this.a3 = c;
_this.ad();
}
break;
case 3:
{
var c = _rest[0];
var d = _rest[1];
var e = _rest[2];
_this = _super.call(this, 0, d) || this;
_this.a3 = 0;
_this.a4 = 0;
_this.ae = 1;
_this.a2 = -1;
_this.ax = false;
_this.ah = false;
_this.ag = false;
_this.au = false;
_this.ai = false;
_this.a3 = c;
_this.ae = e;
_this.ad();
}
break;
}
return _this;
}
Object.defineProperty(CellPath.prototype, "a5", {
get: function () {
return this.a3;
},
set: function (a) {
this.a3 = a;
this.ad();
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "bb", {
get: function () {
return this.a4;
},
set: function (a) {
this.a4 = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "af", {
get: function () {
return this.ae;
},
set: function (a) {
this.ae = a;
this.ad();
},
enumerable: false,
configurable: true
});
CellPath.prototype.ad = function () {
_super.prototype.ad.call(this);
this.a2 = (this.a5 * 100000000) + _super.prototype.getHashCode.call(this) + this.af;
};
CellPath.prototype.getHashCode = function () {
return this.a2;
};
CellPath.prototype.equals = function (a) {
if (!_super.prototype.equals.call(this, a)) {
return false;
}
var b = a;
if (a == null) {
return false;
}
if (this.a3 != b.a3) {
return false;
}
if (this.az != b.az) {
return false;
}
if (this.aw != b.aw) {
return false;
}
if (this.af != b.af) {
return false;
}
return true;
};
CellPath.prototype.toString = function () {
return this.a3 + "." + _super.prototype.toString.call(this);
};
CellPath.prototype.ab = function () {
var a = new CellPath(0, this.b, this.a3, this.y, this.x);
a.bb = this.bb;
a.az = this.az;
a.aw = this.aw;
a.i = this.i;
a.o = this.o;
a.d = this.d;
a.au = this.au;
a.ai = this.ai;
a.ax = this.ax;
a.af = this.af;
return a;
};
Object.defineProperty(CellPath.prototype, "ay", {
get: function () {
return (this.a3 == -300);
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "aj", {
get: function () {
return ((this.a3 >= 0 || this.a3 == -800 || this.a3 == -400) && this.x >= 0 && this.x >= 0);
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "a0", {
get: function () {
return this.a3 == -400 || this.a3 == -401 || this.a3 == -402;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "an", {
get: function () {
return this.g && !this.ay;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "av", {
get: function () {
return this.x == -102 && this.a3 == -400;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "aq", {
get: function () {
return (this.x == -103 || this.x == -104) && this.a5 == -500;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "as", {
get: function () {
return (this.x == -103 || this.x == -104) && this.a5 == -501;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "ap", {
get: function () {
return this.x == -100 && this.a5 == -500;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "ar", {
get: function () {
return this.x == -100 && this.a5 == -501;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "at", {
get: function () {
return this.x == -104;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "az", {
get: function () {
return this.ah;
},
set: function (a) {
this.ah = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "aw", {
get: function () {
return this.ag;
},
set: function (a) {
this.ag = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "a1", {
get: function () {
return this.az || this.aw;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "ak", {
get: function () {
return this.af == 2;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "al", {
get: function () {
return this.af == 3;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "ao", {
get: function () {
return this.af == 4;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CellPath.prototype, "am", {
get: function () {
return this.af == 5;
},
enumerable: false,
configurable: true
});
CellPath.$t = markType(CellPath, 'CellPath', RowPath.$);
return CellPath;
}(RowPath));
export { CellPath };