igniteui-angular-spreadsheet
Version:
Ignite UI Angular spreadsheet component for displaying and editing Microsoft Excel workbooks for modern web apps.
1,126 lines (1,106 loc) • 5.34 MB
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.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('igniteui-angular-core'), require('tslib'), require('igniteui-angular-excel'), require('pako'), require('@angular/common')) :
typeof define === 'function' && define.amd ? define(['exports', '@angular/core', 'igniteui-angular-core', 'tslib', 'igniteui-angular-excel', 'pako', '@angular/common'], factory) :
(global = global || self, factory(global['igniteui-angular-spreadsheet'] = {}, global.i0, global.igniteuiAngularCore, global.tslib, global.igniteuiAngularExcel, global.Pako, global.common));
}(this, (function (exports, i0, igniteuiAngularCore, tslib, igniteuiAngularExcel, Pako, common) { 'use strict';
/*
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.
*/
/**
* @hidden
*/
var SortDirectionWithCustomListOptions_$type = igniteuiAngularCore.markEnum('SortDirectionWithCustomListOptions', 'Ascending,0|Descending,1|AscendingCustomList,2|DescendingCustomList,3');
/*
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.
*/
/**
* @hidden
*/
var SpreadsheetSortDialogConditionType_$type = igniteuiAngularCore.markEnum('SpreadsheetSortDialogConditionType', 'OrderedSortCondition,0|FillSortCondition,1|FontColorSortCondition,2|IconSortCondition,3|CustomListSortCondition,4');
/*
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.
*/
/**
* An object that contains a DataValue and DisplayText for lists (such as ComboBoxes) in the UI.
*/
var ComboBoxListItem = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(ComboBoxListItem, _super);
function ComboBoxListItem(dataValue, displayText) {
var _this = _super.call(this) || this;
_this._a = null;
_this._e = null;
_this._c = null;
_this._a = dataValue;
_this._e = displayText;
return _this;
}
Object.defineProperty(ComboBoxListItem.prototype, "dataValue", {
/**
* The data value of the item.
*/
get: function () {
return this._a;
},
set: function (a) {
if (a == this._a) {
return;
}
if (a != null) {
if (igniteuiAngularCore.Base.equalsStatic(a, this._a)) {
return;
}
}
this._a = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ComboBoxListItem.prototype, "displayText", {
/**
* The text to display for the item.
*/
get: function () {
return this._e;
},
set: function (a) {
if (a == this._e) {
return;
}
this._e = a;
},
enumerable: false,
configurable: true
});
Object.defineProperty(ComboBoxListItem.prototype, "tag", {
/**
* an object that stores extra data related to the item.
*/
get: function () {
return this._c;
},
set: function (a) {
if (a == this._c) {
return;
}
this._c = a;
},
enumerable: false,
configurable: true
});
/**
* Returns a string that represents the current object.
* @return A string that represents the current object.
*/
ComboBoxListItem.prototype.toString = function () {
return this.displayText;
};
ComboBoxListItem.$t = igniteuiAngularCore.markType(ComboBoxListItem, 'ComboBoxListItem');
return ComboBoxListItem;
}(igniteuiAngularCore.Base));
/*
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.
*/
/**
* @hidden
*/
var ITypedSupportPropertyChangeNotifications$2_$type = new igniteuiAngularCore.Type(null, 'ITypedSupportPropertyChangeNotifications$2');
/*
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.
*/
/**
* @hidden
*/
var ISupportPropertyChangeNotifications_$type = new igniteuiAngularCore.Type(null, 'ISupportPropertyChangeNotifications', null, [ITypedSupportPropertyChangeNotifications$2_$type.specialize(igniteuiAngularCore.Base.$, igniteuiAngularCore.String_$type)]);
/*
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.
*/
/**
* @hidden
*/
var IDeferUpdate_$type = new igniteuiAngularCore.Type(null, 'IDeferUpdate');
/*
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.
*/
/**
* @hidden
*/
var ITypedPropertyChangeListener$2_$type = new igniteuiAngularCore.Type(null, 'ITypedPropertyChangeListener$2');
/*
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.
*/
/**
* @hidden
*/
var SR = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(SR, _super);
function SR() {
return _super !== null && _super.apply(this, arguments) || this;
}
SR.a = function (a) {
return null;
};
SR.b = function (a) {
var b = [];
for (var _i = 1; _i < arguments.length; _i++) {
b[_i - 1] = arguments[_i];
}
return null;
};
SR.$t = igniteuiAngularCore.markType(SR, 'SR');
return SR;
}(igniteuiAngularCore.Base));
/*
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.
*/
/**
* @hidden
*/
var TypedEnumerable_Enumerator$1 = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(TypedEnumerable_Enumerator$1, _super);
function TypedEnumerable_Enumerator$1($t, a) {
var _this = _super.call(this) || this;
_this.$t = null;
_this.a = null;
_this.$t = $t;
_this.$type = _this.$type.specialize(_this.$t);
_this.a = a;
return _this;
}
TypedEnumerable_Enumerator$1.prototype.reset = function () {
this.a.reset();
};
TypedEnumerable_Enumerator$1.prototype.moveNext = function () {
return this.a.moveNext();
};
Object.defineProperty(TypedEnumerable_Enumerator$1.prototype, "current", {
get: function () {
return igniteuiAngularCore.typeCastObjTo$t(this.$t, this.a.currentObject);
},
enumerable: false,
configurable: true
});
Object.defineProperty(TypedEnumerable_Enumerator$1.prototype, "currentObject", {
get: function () {
return igniteuiAngularCore.getBoxIfEnum(this.$t, this.current);
},
enumerable: false,
configurable: true
});
TypedEnumerable_Enumerator$1.prototype.dispose = function () {
};
TypedEnumerable_Enumerator$1.$t = igniteuiAngularCore.markType(TypedEnumerable_Enumerator$1, 'TypedEnumerable_Enumerator$1', igniteuiAngularCore.Base.$, [igniteuiAngularCore.IEnumerator$1_$type.specialize(0)]);
return TypedEnumerable_Enumerator$1;
}(igniteuiAngularCore.Base));
/*
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.
*/
/**
* @hidden
*/
var TypedEnumerable$1 = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(TypedEnumerable$1, _super);
function TypedEnumerable$1($t, a) {
var _this = _super.call(this) || this;
_this.$t = null;
_this.a = null;
_this.$t = $t;
_this.$type = _this.$type.specialize(_this.$t);
_this.a = a || new Array(0);
return _this;
}
TypedEnumerable$1.prototype.b = function (a) {
this.a = a || new Array(0);
};
TypedEnumerable$1.prototype.getEnumerator = function () {
return new TypedEnumerable_Enumerator$1(this.$t, igniteuiAngularCore.getEnumeratorObject(this.a));
};
TypedEnumerable$1.prototype.getEnumeratorObject = function () {
return this.getEnumerator();
};
TypedEnumerable$1.$t = igniteuiAngularCore.markType(TypedEnumerable$1, 'TypedEnumerable$1', igniteuiAngularCore.Base.$, [igniteuiAngularCore.IEnumerable$1_$type.specialize(0)]);
return TypedEnumerable$1;
}(igniteuiAngularCore.Base));
/*
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.
*/
/**
* @hidden
*/
var CoreUtilities = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(CoreUtilities, _super);
function CoreUtilities() {
return _super !== null && _super.apply(this, arguments) || this;
}
CoreUtilities.j = function ($t, a) {
return new CoreUtilities_ObservableTypedList$1($t, a);
};
CoreUtilities.c = function (a, b) {
if (a == b) {
return true;
}
return Math.abs(a - b) < 1E-10;
};
CoreUtilities.h = function (a, b) {
return a < b && !CoreUtilities.c(a, b);
};
CoreUtilities.e = function (a, b) {
return a > b && !CoreUtilities.c(a, b);
};
CoreUtilities.i = function (a, b) {
return a <= b || CoreUtilities.c(a, b);
};
CoreUtilities.f = function (a, b) {
return a >= b || CoreUtilities.c(a, b);
};
CoreUtilities.d = function ($t, a, b, c) {
if (c === void 0) {
c = null;
}
if (a == b) {
return true;
}
if (a == null || b == null) {
return false;
}
if (a.count != b.count) {
return false;
}
if (c == null) {
c = igniteuiAngularCore.EqualityComparer$1.defaultEqualityComparerValue($t);
}
for (var d = 0, e = a.count; d < e; d++) {
if (!c.equalsC(a.item(d), b.item(d))) {
return false;
}
}
return true;
};
CoreUtilities.m = function ($t, a, b, c, d) {
if (c == null) {
c = igniteuiAngularCore.Comparer$1.defaultComparerValue($t);
}
var e = 0, f = a.count - 1;
var g = 0;
var h = !d ? null : igniteuiAngularCore.EqualityComparer$1.defaultEqualityComparerValue($t);
while (e <= f) {
g = igniteuiAngularCore.intDivide((e + f), 2);
var i = a.item(g);
if (null != h && h.equalsC(b, i)) {
if (g > e) {
i = a.item(--g);
}
else if (g < f) {
i = a.item(++g);
}
else {
return g;
}
}
var j = c.compare(i, b);
if (j > 0) {
f = g - 1;
}
else if (j < 0) {
e = g + 1;
}
else {
return g;
}
}
if (null != h && e < a.count - 1 && h.equalsC(b, a.item(e))) {
return e;
}
return ~e;
};
CoreUtilities.n = function ($tItem, $tComparison, a, b, c) {
var d = 0, e = a.count - 1;
var f = 0;
while (d <= e) {
f = igniteuiAngularCore.intDivide((d + e), 2);
var g = a.item(f);
var h = b(g, c);
if (h > 0) {
e = f - 1;
}
else if (h < 0) {
d = f + 1;
}
else {
return f;
}
}
return ~d;
};
CoreUtilities.l = function (a, b, c) {
if (a < b) {
return b;
}
else if (a > c) {
return c;
}
return a;
};
CoreUtilities.s = function ($t, a, b, c) {
var e_1, _a;
var d = igniteuiAngularCore.typeCast(igniteuiAngularCore.ICollection$1_$type.specialize($t), a);
if (null != d) {
d.copyTo(b, c);
}
else {
try {
for (var _b = tslib.__values(igniteuiAngularCore.fromEnum(a)), _c = _b.next(); !_c.done; _c = _b.next()) {
var e = _c.value;
b[c++] = e;
}
}
catch (e_1_1) {
e_1 = { error: e_1_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_1)
throw e_1.error;
}
}
}
};
CoreUtilities.r = function (a, b, c) {
var e_2, _a;
try {
for (var _b = tslib.__values(igniteuiAngularCore.fromEn(a)), _c = _b.next(); !_c.done; _c = _b.next()) {
var d = _c.value;
b[c++] = d;
}
}
catch (e_2_1) {
e_2 = { error: e_2_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_2)
throw e_2.error;
}
}
};
CoreUtilities.a = function ($t, a) {
var e_3, _a;
if (null != a) {
try {
for (var _b = tslib.__values(igniteuiAngularCore.fromEnum(a)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
return b;
}
}
catch (e_3_1) {
e_3 = { error: e_3_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_3)
throw e_3.error;
}
}
}
return igniteuiAngularCore.Type.getDefaultValue($t);
};
CoreUtilities.b = function ($t, a, b) {
var e_4, _a;
if (null != a) {
if (b) {
var c = igniteuiAngularCore.typeCast(igniteuiAngularCore.IList$1_$type.specialize($t), a);
if (null != c) {
return c.count > 0 ? c.item(0) : igniteuiAngularCore.Type.getDefaultValue($t);
}
var d = igniteuiAngularCore.typeCast(igniteuiAngularCore.IList_$type, a);
if (null != d) {
return d.count > 0 ? igniteuiAngularCore.typeCastObjTo$t($t, d.item(0)) : igniteuiAngularCore.Type.getDefaultValue($t);
}
}
try {
for (var _b = tslib.__values(igniteuiAngularCore.fromEn(a)), _c = _b.next(); !_c.done; _c = _b.next()) {
var e = _c.value;
return e;
}
}
catch (e_4_1) {
e_4 = { error: e_4_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_4)
throw e_4.error;
}
}
}
return igniteuiAngularCore.Type.getDefaultValue($t);
};
CoreUtilities.k = function ($t) {
var a = $t;
var b = igniteuiAngularCore.EnumUtil.getNames(a);
var c = new igniteuiAngularCore.List$1($t, 0);
for (var e = 0; e < b.length; e++) {
var d = b[e];
c.add(igniteuiAngularCore.typeCastObjTo$t($t, igniteuiAngularCore.EnumUtil.parse(a, d, false)));
}
return c;
};
CoreUtilities.q = function (a) {
if (a == null) {
return null;
}
var b = igniteuiAngularCore.Nullable.getUnderlyingType(a);
if (b != null) {
a = b;
}
return a;
};
CoreUtilities.p = function (a) {
if (null != a) {
try {
return a.c;
}
catch (b) {
}
}
return null;
};
CoreUtilities.g = function (a) {
var e_5, _a;
if (null != a) {
if (igniteuiAngularCore.typeCast(igniteuiAngularCore.ICollection_$type, a) !== null) {
return a.count > 0;
}
if (null != a) {
try {
for (var _b = tslib.__values(igniteuiAngularCore.fromEn(a)), _c = _b.next(); !_c.done; _c = _b.next()) {
var b = _c.value;
return true;
}
}
catch (e_5_1) {
e_5 = { error: e_5_1 };
}
finally {
try {
if (_c && !_c.done && (_a = _b.return))
_a.call(_b);
}
finally {
if (e_5)
throw e_5.error;
}
}
}
}
return false;
};
CoreUtilities.t = function () {
throw new igniteuiAngularCore.NotSupportedException(1, "Collection is read-only.");
};
CoreUtilities.v = function ($t, a, b) {
var c = CoreUtilities.o($t, a, b);
a.v(c, a.count - c);
};
CoreUtilities.u = function ($t, a, b) {
var c = CoreUtilities.o($t, a, b);
for (var d = a.count - 1; d >= c; d--) {
a.removeAt(d);
}
};
CoreUtilities.o = function ($t, a, b) {
var c = 0;
var d = a.count;
var e = igniteuiAngularCore.EqualityComparer$1.defaultEqualityComparerValue($t);
for (var f = 0; f < d; f++) {
if (e.equalsC(a.item(f), b)) {
c++;
}
else if (0 != c) {
a.item(f - c, a.item(f));
}
}
return d - c;
};
CoreUtilities.w = function (a) {
if (a < 0) {
throw new igniteuiAngularCore.ArgumentException(1, SR.a("LE_ValueCannotBeNegative"));
}
};
CoreUtilities.x = function (a, b) {
if (a < 0) {
throw new igniteuiAngularCore.ArgumentException(2, b, SR.a("LE_ValueCannotBeNegative"));
}
};
CoreUtilities.y = function (a) {
if (null == a) {
throw new igniteuiAngularCore.ArgumentNullException(1);
}
};
CoreUtilities.z = function (a, b) {
if (null == a) {
throw new igniteuiAngularCore.ArgumentNullException(0, b);
}
};
CoreUtilities.$t = igniteuiAngularCore.markType(CoreUtilities, 'CoreUtilities');
return CoreUtilities;
}(igniteuiAngularCore.Base));
/**
* @hidden
*/
var CoreUtilities_TypedList$1 = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(CoreUtilities_TypedList$1, _super);
function CoreUtilities_TypedList$1($t, a) {
var _this = _super.call(this) || this;
_this.$t = null;
_this.a = null;
_this.$t = $t;
_this.$type = _this.$type.specialize(_this.$t);
CoreUtilities.y(a);
_this.a = a;
return _this;
}
Object.defineProperty(CoreUtilities_TypedList$1.prototype, "b", {
get: function () {
return this.a;
},
enumerable: false,
configurable: true
});
CoreUtilities_TypedList$1.prototype.indexOf = function (a) {
return this.a.indexOf(igniteuiAngularCore.getBoxIfEnum(this.$t, a));
};
CoreUtilities_TypedList$1.prototype.insert = function (a, b) {
this.a.insert(a, igniteuiAngularCore.getBoxIfEnum(this.$t, b));
};
CoreUtilities_TypedList$1.prototype.removeAt = function (a) {
this.a.removeAt(a);
};
CoreUtilities_TypedList$1.prototype.item = function (a, b) {
if (arguments.length === 2) {
this.a.item(a, igniteuiAngularCore.getBoxIfEnum(this.$t, b));
return b;
}
else {
return igniteuiAngularCore.typeCastObjTo$t(this.$t, this.a.item(a));
}
};
CoreUtilities_TypedList$1.prototype.add = function (a) {
this.a.add(igniteuiAngularCore.getBoxIfEnum(this.$t, a));
};
CoreUtilities_TypedList$1.prototype.clear = function () {
this.a.clear();
};
CoreUtilities_TypedList$1.prototype.contains = function (a) {
return this.a.contains(igniteuiAngularCore.getBoxIfEnum(this.$t, a));
};
CoreUtilities_TypedList$1.prototype.copyTo = function (a, b) {
CoreUtilities.s(this.$t, new TypedEnumerable$1(this.$t, this.a), a, b);
};
Object.defineProperty(CoreUtilities_TypedList$1.prototype, "count", {
get: function () {
return this.a.count;
},
enumerable: false,
configurable: true
});
Object.defineProperty(CoreUtilities_TypedList$1.prototype, "isReadOnly", {
get: function () {
return this.a.isReadOnly;
},
enumerable: false,
configurable: true
});
CoreUtilities_TypedList$1.prototype.remove = function (a) {
var b = this.a.indexOf(igniteuiAngularCore.getBoxIfEnum(this.$t, a));
if (b >= 0) {
this.a.removeAt(b);
}
return b >= 0;
};
CoreUtilities_TypedList$1.prototype.getEnumerator = function () {
return new TypedEnumerable_Enumerator$1(this.$t, igniteuiAngularCore.getEnumeratorObject(this.a));
};
CoreUtilities_TypedList$1.prototype.getEnumeratorObject = function () {
return this.getEnumerator();
};
CoreUtilities_TypedList$1.$t = igniteuiAngularCore.markType(CoreUtilities_TypedList$1, 'CoreUtilities_TypedList$1', igniteuiAngularCore.Base.$, [igniteuiAngularCore.IList$1_$type.specialize(0)]);
return CoreUtilities_TypedList$1;
}(igniteuiAngularCore.Base));
/**
* @hidden
*/
var CoreUtilities_ObservableTypedList$1 = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(CoreUtilities_ObservableTypedList$1, _super);
function CoreUtilities_ObservableTypedList$1($t, a) {
var _this = _super.call(this, $t, a) || this;
_this.$t = null;
_this.propertyChanged = null;
_this.collectionChanged = null;
_this.$t = $t;
_this.$type = _this.$type.specialize(_this.$t);
var b = igniteuiAngularCore.typeCast(igniteuiAngularCore.INotifyCollectionChanged_$type, a);
if (b != null) {
b.collectionChanged = igniteuiAngularCore.delegateCombine(b.collectionChanged, igniteuiAngularCore.runOn(_this, _this.c));
}
var c = igniteuiAngularCore.typeCast(igniteuiAngularCore.INotifyPropertyChanged_$type, a);
if (c != null) {
c.propertyChanged = igniteuiAngularCore.delegateCombine(c.propertyChanged, igniteuiAngularCore.runOn(_this, _this.d));
}
return _this;
}
CoreUtilities_ObservableTypedList$1.prototype.d = function (a, b) {
var c = this.propertyChanged;
if (null != c) {
c(this, b);
}
};
CoreUtilities_ObservableTypedList$1.prototype.c = function (a, b) {
var c = this.collectionChanged;
if (null != c) {
c(this, b);
}
};
CoreUtilities_ObservableTypedList$1.$t = igniteuiAngularCore.markType(CoreUtilities_ObservableTypedList$1, 'CoreUtilities_ObservableTypedList$1', CoreUtilities_TypedList$1.$.specialize(0), [igniteuiAngularCore.INotifyCollectionChanged_$type, igniteuiAngularCore.INotifyPropertyChanged_$type]);
return CoreUtilities_ObservableTypedList$1;
}(CoreUtilities_TypedList$1));
/*
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.
*/
/*
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.
*/
/**
* @hidden
*/
var ListenerList = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(ListenerList, _super);
function ListenerList(a) {
var _this = _super.call(this, igniteuiAngularCore.Base.$, 2, a) || this;
_this.ad = 0;
return _this;
}
ListenerList.af = function (a) {
var b = igniteuiAngularCore.typeCast(igniteuiAngularCore.WeakReference.$, a);
if (null == b) {
b = new igniteuiAngularCore.WeakReference(a);
}
return b;
};
ListenerList.ag = function (a) {
var b = igniteuiAngularCore.typeCast(igniteuiAngularCore.WeakReference.$, a);
if (null != b) {
return CoreUtilities.p(b);
}
return a;
};
ListenerList.add2 = function (a, b, c) {
CoreUtilities.y(b);
var d = c ? ListenerList.af(b) : b;
if (null == a) {
return d;
}
else {
var e = igniteuiAngularCore.typeCast(ListenerList.$, a);
if (null != e) {
e.add1(d);
}
else {
e = new ListenerList(2);
e.add1(a);
e.add1(d);
}
return e;
}
};
ListenerList.remove2 = function (a, b) {
var c = igniteuiAngularCore.typeCast(ListenerList.$, a);
if (null != c) {
for (var d = c.count - 1; d >= 0; d--) {
if (b == ListenerList.ag(c._inner[d])) {
if (0 != c.ad) {
var e = new ListenerList(c.count);
e.o(c);
c = e;
}
c.removeAt(d);
break;
}
}
return 1 == c.count ? c._inner[0] : c;
}
else if (ListenerList.ag(a) == b) {
return null;
}
else {
return a;
}
};
ListenerList.ac = function (a) {
var b = igniteuiAngularCore.typeCast(ListenerList.$, a);
if (null != b) {
return new ListenerList_Enumerable(b);
}
else if (null != a) {
return [a];
}
else {
return new Array(0);
}
};
ListenerList.ai = function (a, b, c) {
c = null;
b = null;
var d = igniteuiAngularCore.typeCast(ListenerList.$, a);
if (null != d) {
b = new ListenerList_Enumerable(d);
}
else {
var e = ListenerList.ag(a);
if (null != e) {
c = e;
}
}
return {
p1: b,
p2: c
};
};
ListenerList.aj = function ($tItem, $tProperty, a, b, c, d) {
var e = igniteuiAngularCore.typeCast(ListenerList.$, a);
if (null != e) {
e.ad++;
try {
for (var f = 0, g = e.count; f < g; f++) {
var h = ListenerList.ag(e._inner[f]);
if (null != h) {
h.onPropertyValueChanged(b, c, d);
}
}
}
finally {
e.ad--;
}
}
else if (null != a) {
var i = ListenerList.ag(a);
if (null != i) {
i.onPropertyValueChanged(b, c, d);
}
}
};
ListenerList.ak = function ($tItem, a, b) {
var c = igniteuiAngularCore.typeCast(ListenerList.$, a);
if (null != c) {
c.ad++;
try {
for (var d = 0, e = c.count; d < e; d++) {
var f = ListenerList.ag(c._inner[d]);
if (null != f) {
f.onValueChanged(b);
}
}
}
finally {
c.ad--;
}
}
else if (null != a) {
var g = ListenerList.ag(a);
if (null != g) {
g.onValueChanged(b);
}
}
};
ListenerList.$t = igniteuiAngularCore.markType(ListenerList, 'ListenerList', igniteuiAngularCore.List$1.$.specialize(igniteuiAngularCore.Base.$));
return ListenerList;
}(igniteuiAngularCore.List$1));
/**
* @hidden
*/
var ListenerList_Enumerable = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(ListenerList_Enumerable, _super);
function ListenerList_Enumerable(a) {
var _this = _super.call(this) || this;
_this.a = null;
_this.a = a;
return _this;
}
ListenerList_Enumerable.prototype.getEnumerator = function () {
return new ListenerList_Enumerable_Enumerator(this.a);
};
ListenerList_Enumerable.prototype.getEnumeratorObject = function () {
return this.getEnumerator();
};
ListenerList_Enumerable.$t = igniteuiAngularCore.markType(ListenerList_Enumerable, 'ListenerList_Enumerable', igniteuiAngularCore.Base.$, [igniteuiAngularCore.IEnumerable$1_$type.specialize(igniteuiAngularCore.Base.$)]);
return ListenerList_Enumerable;
}(igniteuiAngularCore.Base));
/**
* @hidden
*/
var ListenerList_Enumerable_Enumerator = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(ListenerList_Enumerable_Enumerator, _super);
function ListenerList_Enumerable_Enumerator(a) {
var _this = _super.call(this) || this;
_this.a = null;
_this.b = 0;
_this.c = null;
_this.a = a;
_this.reset();
return _this;
}
Object.defineProperty(ListenerList_Enumerable_Enumerator.prototype, "current", {
get: function () {
return this.c;
},
enumerable: false,
configurable: true
});
ListenerList_Enumerable_Enumerator.prototype.dispose = function () {
};
Object.defineProperty(ListenerList_Enumerable_Enumerator.prototype, "currentObject", {
get: function () {
return this.current;
},
enumerable: false,
configurable: true
});
ListenerList_Enumerable_Enumerator.prototype.moveNext = function () {
this.c = null;
while (null == this.c && ++this.b < this.a.count) {
this.c = ListenerList.ag(this.a.item(this.b));
}
return null != this.c;
};
ListenerList_Enumerable_Enumerator.prototype.reset = function () {
this.b = -1;
this.c = null;
};
ListenerList_Enumerable_Enumerator.$t = igniteuiAngularCore.markType(ListenerList_Enumerable_Enumerator, 'ListenerList_Enumerable_Enumerator', igniteuiAngularCore.Base.$, [igniteuiAngularCore.IEnumerator$1_$type.specialize(igniteuiAngularCore.Base.$)]);
return ListenerList_Enumerable_Enumerator;
}(igniteuiAngularCore.Base));
/*
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.
*/
/*
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.
*/
/**
* @hidden
*/
var PropertyChangeListenerBase = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(PropertyChangeListenerBase, _super);
function PropertyChangeListenerBase() {
return _super !== null && _super.apply(this, arguments) || this;
}
PropertyChangeListenerBase.$t = igniteuiAngularCore.markType(PropertyChangeListenerBase, 'PropertyChangeListenerBase');
return PropertyChangeListenerBase;
}(igniteuiAngularCore.Base));
/*
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.
*/
/**
* @hidden
*/
var IPropertyChangeListener_$type = new igniteuiAngularCore.Type(null, 'IPropertyChangeListener', null, [ITypedPropertyChangeListener$2_$type.specialize(igniteuiAngularCore.Base.$, igniteuiAngularCore.String_$type)]);
/*
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.
*/
/**
* @hidden
*/
var TypedPropertyChangeListenerList$2 = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(TypedPropertyChangeListenerList$2, _super);
function TypedPropertyChangeListenerList$2($tItem, $tProperty) {
var _this = _super.call(this) || this;
_this.$tItem = null;
_this.$tProperty = null;
_this.a = null;
_this.$tItem = $tItem;
_this.$tProperty = $tProperty;
_this.$type = _this.$type.specialize(_this.$tItem, _this.$tProperty);
return _this;
}
TypedPropertyChangeListenerList$2.prototype.b = function (a, b) {
this.a = ListenerList.add2(this.a, a, b);
};
TypedPropertyChangeListenerList$2.prototype.d = function (a) {
this.a = ListenerList.remove2(this.a, a);
};
TypedPropertyChangeListenerList$2.prototype.onPropertyValueChanged = function (a, b, c) {
if (null != this.a) {
ListenerList.aj(this.$tItem, this.$tProperty, this.a, a, b, c);
}
};
TypedPropertyChangeListenerList$2.prototype.c = function () {
var a = igniteuiAngularCore.typeCast(igniteuiAngularCore.WeakReference.$, this.a);
var b = a == null ? igniteuiAngularCore.typeCast(igniteuiAngularCore.IList_$type, this.a) : null;
var c = b == null ? igniteuiAngularCore.typeCast(PropertyChangeListenerList.$, this.a) : null;
if (c != null) {
c.c();
return;
}
if (b != null) {
for (var d = b.count - 1; d >= 0; d -= 1) {
var e = b.item(d);
var f = false;
if (f == false) {
a = igniteuiAngularCore.typeCast(igniteuiAngularCore.WeakReference.$, e);
if (a != null) {
if (a.c == null) {
f = true;
}
}
}
if (f == false) {
var g = igniteuiAngularCore.typeCast(PropertyChangeListenerBase.$, e);
if (g != null) {
var h = g.a();
if (f == false) {
a = igniteuiAngularCore.typeCast(igniteuiAngularCore.WeakReference.$, h);
if (a != null) {
if (a.c == null) {
f = true;
}
}
}
}
}
if (f) {
b.removeAt(d);
}
}
}
else if (a != null) {
var i = a.c;
}
};
TypedPropertyChangeListenerList$2.$t = igniteuiAngularCore.markType(TypedPropertyChangeListenerList$2, 'TypedPropertyChangeListenerList$2', igniteuiAngularCore.Base.$, [ITypedPropertyChangeListener$2_$type.specialize(0, 1)]);
return TypedPropertyChangeListenerList$2;
}(igniteuiAngularCore.Base));
/**
* @hidden
*/
var PropertyChangeListenerList = /** @class */ /*@__PURE__*/ (function (_super) {
tslib.__extends(PropertyChangeListenerList, _super);
function PropertyChangeListenerList() {
return _super.call(this, igniteuiAngularCore.Base.$, igniteuiAngularCore.String_$type) || this;
}
PropertyChangeListenerList.e = function ($t, a, b, c, d) {
if (igniteuiAngularCore.getBoxIfEnum($t, a) != null) {
a.removeListener(c);
}
a = b;
if (igniteuiAngularCore.getBoxIfEnum($t, a) != null) {
a.addListener(c, d);
}
return {
p0: a
};
};
PropertyChangeListenerList.f = function ($t, a, b, c, d) {
var e = igniteuiAngularCore.typeCast(ISupportPropertyChangeNotifications_$type, a);
if (e != null) {
e.removeListener(c);
}
a = b;
e = igniteuiAngularCore.typeCast(ISupportPropertyChangeNotifications_$type, b);
if (e != null) {
e.addListener(c, d);
}
return {
p0: a
};
};
PropertyChangeListenerList.prototype.g = function (a, b) {
this.onPropertyValueChanged(a, igniteuiAngularCore.EnumUtil.getName(igniteuiAngularCore.NotifyCollectionChangedAction_$type, b.action), b);
};
PropertyChangeListenerList.h = function (a, b, c, d) {
ListenerList.aj(igniteuiAngularCore.Base.$, igniteuiAngularCore.String_$type, a, b, c, d);
};
PropertyChangeListenerList.$t = igniteuiAngularCore.markType(PropertyChangeListenerList, 'PropertyChangeListenerList', TypedPropertyChangeListenerList$2.$.specialize(igniteuiAngularCore.Base.$, igniteuiAngularCore.String_$type), [IPropertyChangeListener_$type]);
return PropertyChangeListenerList;
}(TypedPropertyChangeListenerList$2));
/*
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.
*/
/*
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