UNPKG

igniteui-angular-spreadsheet

Version:

Ignite UI Angular spreadsheet component for displaying and editing Microsoft Excel workbooks for modern web apps.

1,148 lines (1,128 loc) 4.75 MB
/*! 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 * as i0 from '@angular/core'; import { EventEmitter, ɵɵngDeclareFactory, Renderer2, ViewContainerRef, NgZone, ComponentFactoryResolver, Injector, ɵɵFactoryTarget, ɵɵngDeclareComponent, ChangeDetectionStrategy, ɵɵngDeclareClassMetadata, Component, ViewChild, Input, Output, ɵɵngDeclareNgModule, ɵɵngDeclareInjector, NgModule } from '@angular/core'; import { markEnum, Base, markType, Type, String_$type, typeCastObjTo$t, getBoxIfEnum, IEnumerator$1_$type, getEnumeratorObject, IEnumerable$1_$type, EqualityComparer$1, Comparer$1, intDivide, typeCast, ICollection$1_$type, fromEnum, fromEn, IList$1_$type, IList_$type, EnumUtil, List$1, Nullable, ICollection_$type, NotSupportedException, ArgumentException, ArgumentNullException, INotifyCollectionChanged_$type, delegateCombine, runOn, INotifyPropertyChanged_$type, WeakReference, NotifyCollectionChangedAction_$type, PropertyChangedEventArgs, ArgumentOutOfRangeException, delegateRemove, NotifyCollectionChangedEventArgs, toNullable, Number_$type, EventArgs, CanvasGestureDOMEventProxy, DomWrapper_$type, Dictionary$2, Tuple, Rect, CultureInfo, stringFormat, wrapNullable, markStruct, ValueType, IEquatable$1_$type, callStaticConstructors, stringSplit, stringEmpty, StringBuilder, CancelEventArgs, BaseError, Boolean_$type, Color, nullableNotEquals, unwrapNullable, DataObject, Clipboard, DataFormats, u32BitwiseAnd, Convert, isNaN_, IDisposable_$type, arrayClear1, enumGetBox, BitArray, StringComparer, Nullable$1, nullableEquals, IEnumerable_$type, InvalidOperationException, stringIsNullOrEmpty, Size, Stack$1, DomRenderer_$type, typeGetValue, isInfinity, ReadOnlyCollection$1, nullableIsNull, stringCompare1, IComparable$1_$type, getEnumerator, Localization, dateMinValue, timeSpanTicks, dateNow, truncate, logBase, getInstanceType, NotImplementedException, Enumerable, HashSet$1, ObservableCollection$1, BaseDOMEventProxy, stringEquals1, startsWith1, Stream, IDataObject_$type, IEqualityComparer$1_$type, boxArray$1, numberToString, Date_$type, Delegate_$type, StreamReader, toEnum, IComparer$1_$type, Array_$type, arrayIndexOf1, Environment, stringCreateFromChar, indexOfAny, b64toUint8Array, MemoryStream, stringReplace, IOPath, Encoding, BinaryReader, BinaryWriter, TypeRegistrar, IConvertible_$type, ConvertUtil, IVisualData_$type, AppearanceHelper, PrimitiveVisualDataList, RectData, Point_$type, IndexOutOfRangeException, Regex, stringContains, KeyValuePair$2, Tuple$2, Thickness, stringStartsWith, dateFromValues, dateToStringFormat, timeSpanTotalDays, dateGetTimeOfDay, numberToString2, isDigit, tryParseInt32_1, intSToU, stringIsNullOrWhiteSpace, Uri, UriParser, trimEnd, dateToday, dateAddHours, timeSpanTotalHours, LRUCache$2, Brush, toSpinal, rectFromLiteral, pointFromLiteral, rectToLiteral, PointUtil, sizeToLiteral, sizeFromLiteral, stringFormat1, isLetterOrDigit, arrayGetLength, BrushUtilCore, arrayCopyTo, NumberFormatInfo, tryParseNumber1, dateTryParse, DateTimeFormat, dateGetDate, dateMaxValue, tryParseInt32_2, timeSpanFromHours, Queue$1, nullableLessThan, nullableGreaterThan, nullableLessThanOrEqual, nullableGreaterThanOrEqual, trimStart, StringReader, StreamWriter, Guid, StringWriter, ColorData, timeSpanTotalMilliseconds, IEnumerator_$type, tryParseBool, tryParseNumber, stringToString$1, IgxCancelEventArgs, ensureBool, NamePatcher, AngularRenderer, IgxComponentRendererContainerComponent, fromPoint, toPoint, initializePropertiesFromCss, XmlConvert, XmlTextReader, IgxComponentRendererContainerModule, boolCompare } from 'igniteui-angular-core'; import { __extends, __values, __spreadArray, __read, __generator } from 'tslib'; import { WorksheetRegionAddress, WorksheetCellAddress, ExcelUtils, CellAddress, WorkbookColorInfo, ColorsInternal, IWorkbookFont_$type, FontSuperscriptSubscriptStyle_$type, FontUnderlineStyle_$type, HorizontalTextAlignment_$type, WorksheetCellFormatData, Colors, WorksheetProtectedRange, Worksheet, SecureString, IWorksheetCellFormat_$type, TextMetricsProviderBase, DocCoreUtils, MathUtilities, MutableWorksheetRegionAddress, RowColumnBase, Formula, ErrorValue, WorksheetPaneSelection, WorksheetColumnBlock, Sheet, WorkItem, IZipEntry_$type, IZipFile_$type, IPackageFactory_$type, DefaultWorkbookSaveFilter, WorksheetRow, WorkbookSaveFilter, Workbook, CustomListSortCondition, IconSortCondition, FormatConditionIconSet_$type, FontColorSortCondition, FillSortCondition, OrderedSortCondition, RelativeIndex, SortCondition, WorksheetTableColumn, CellFill, CellFillPattern, CellFillRectangularGradient, CellFillLinearGradient, DataValidationErrorStyle_$type, FormatConditionIcon_$type, ExcelComparisonOperator_$type, RelativeDateRangeDuration_$type, RelativeDateRangeOffset_$type, DatePeriodFilterType_$type, CustomFilter, YearToDateFilter, RelativeDateRangeFilter, DatePeriodFilter, AverageFilter, TopOrBottomFilter, WorksheetShapeGroupBase, WorksheetShapeGroup, ChartEmptyFill, ChartSolidFill, ChartGradientFill, WorksheetChart, FillPatternStyle_$type, ExcelCalcValue, GetCellTextParameters, ExcelChangeAction_$type, FormattedString, IFilterable_$type, ShapeFillNoFill, ShapeOutlineNoOutline, WorksheetImage, WeakWorkbookOwner, WorksheetReferenceCollection, FormulaParser, CellReferenceMode_$type, WorkbookFormatCollection, ValueFormatter, WorksheetItemPosition, VerticalCellAlignment_$type, HorizontalCellAlignment_$type, NamedReferenceBase, CharUnicodeInfo, StructuredTableReference, ListDataValidationRule, CellCalcReference, ExcelCalcEngine, CalcUtilities, NamedCalcReference, WorksheetRegion, TableCalcReferenceBase, WorksheetCell, IWorkbookOwner_$type, CellBorderLineStyle_$type, DiagonalBorders_$type, WorkbookStyle, CellFillGradientStop, WorksheetShapeWithText, HtmlTextMetricsProvider, WorksheetCellBlock, IRegionBlockingValue_$type, ArrayFormula, ConditionBase, WorkbookFontData, WorkbookFontProxy, StringElement, WorksheetHyperlink, FormattedStringElement, FormulaContext, IFunctionToken_$type, UnaryOperatorToken, BinaryOperatorToken, RefToken, AreaToken, CellConditionalFormat, IconFilter, FontColorFilter, FillFilter, FixedValuesFilter, WorksheetMergedCellsRegion, WorksheetCellFormatProxy, IndexRange, CellSizeMeasurementContext, ArrayInteriorFormula, DataTableInteriorFormula, PaneLocation_$type, WorkbookBuiltInStyle, WorksheetShape, RegionLookupTable$1, WorksheetCellComment, WorksheetTable, NamedReferenceUnconnected, NamedReference, SortedIntRangeList, WorkbookLoadOptions, WorkbookSaveOptions, ChangeInfo, DateRangeFilter, CustomFilterCondition, WorkbookThemeColorType_$type, IgxExcelCoreModule, IPath2DCommandVisitor$2_$type, ShapeFillSolid, ShapeFillImage, ShapeOutlineSolid, ImageData, ImageFormat, CT_TextBodyProperties, UnknownShape, CT_CustomGeometry2D, ST_ShapeType_$type, ST_PositiveCoordinate, ST_Angle, ICT_ShapePropertiesOwner_$type, CT_PresetGeometry2D, GZipStream, CT_GeomRect, ST_AdjCoordinate, CT_Path2DList, CT_GeomGuideList, IPath2DCommand_$type, CT_Path2DArcTo, ST_AdjAngle, CT_Path2DClose, CT_AdjPoint2D, CT_Path2DCubicBezierTo, CT_Path2DQuadBezierTo, CT_Path2DLineTo, CT_Path2DMoveTo, CT_Path2D, ST_PathFillMode_$type, CT_GeomGuide, IgxExcelModule } from 'igniteui-angular-excel'; import { inflate, deflate } from 'pako'; import { CommonModule } from '@angular/common'; /* 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 = 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 = 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) { __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 (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 = markType(ComboBoxListItem, 'ComboBoxListItem'); return ComboBoxListItem; }(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 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 Type(null, 'ISupportPropertyChangeNotifications', null, [ITypedSupportPropertyChangeNotifications$2_$type.specialize(Base.$, 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 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 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) { __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 = markType(SR, 'SR'); return SR; }(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) { __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 typeCastObjTo$t(this.$t, this.a.currentObject); }, enumerable: false, configurable: true }); Object.defineProperty(TypedEnumerable_Enumerator$1.prototype, "currentObject", { get: function () { return getBoxIfEnum(this.$t, this.current); }, enumerable: false, configurable: true }); TypedEnumerable_Enumerator$1.prototype.dispose = function () { }; TypedEnumerable_Enumerator$1.$t = markType(TypedEnumerable_Enumerator$1, 'TypedEnumerable_Enumerator$1', Base.$, [IEnumerator$1_$type.specialize(0)]); return TypedEnumerable_Enumerator$1; }(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) { __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, getEnumeratorObject(this.a)); }; TypedEnumerable$1.prototype.getEnumeratorObject = function () { return this.getEnumerator(); }; TypedEnumerable$1.$t = markType(TypedEnumerable$1, 'TypedEnumerable$1', Base.$, [IEnumerable$1_$type.specialize(0)]); return TypedEnumerable$1; }(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) { __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 = 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 = Comparer$1.defaultComparerValue($t); } var e = 0, f = a.count - 1; var g = 0; var h = !d ? null : EqualityComparer$1.defaultEqualityComparerValue($t); while (e <= f) { g = 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 = 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 = typeCast(ICollection$1_$type.specialize($t), a); if (null != d) { d.copyTo(b, c); } else { try { for (var _b = __values(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 = __values(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 = __values(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 Type.getDefaultValue($t); }; CoreUtilities.b = function ($t, a, b) { var e_4, _a; if (null != a) { if (b) { var c = typeCast(IList$1_$type.specialize($t), a); if (null != c) { return c.count > 0 ? c.item(0) : Type.getDefaultValue($t); } var d = typeCast(IList_$type, a); if (null != d) { return d.count > 0 ? typeCastObjTo$t($t, d.item(0)) : Type.getDefaultValue($t); } } try { for (var _b = __values(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 Type.getDefaultValue($t); }; CoreUtilities.k = function ($t) { var a = $t; var b = EnumUtil.getNames(a); var c = new List$1($t, 0); for (var e = 0; e < b.length; e++) { var d = b[e]; c.add(typeCastObjTo$t($t, EnumUtil.parse(a, d, false))); } return c; }; CoreUtilities.q = function (a) { if (a == null) { return null; } var b = 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 (typeCast(ICollection_$type, a) !== null) { return a.count > 0; } if (null != a) { try { for (var _b = __values(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 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 = 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 ArgumentException(1, SR.a("LE_ValueCannotBeNegative")); } }; CoreUtilities.x = function (a, b) { if (a < 0) { throw new ArgumentException(2, b, SR.a("LE_ValueCannotBeNegative")); } }; CoreUtilities.y = function (a) { if (null == a) { throw new ArgumentNullException(1); } }; CoreUtilities.z = function (a, b) { if (null == a) { throw new ArgumentNullException(0, b); } }; CoreUtilities.$t = markType(CoreUtilities, 'CoreUtilities'); return CoreUtilities; }(Base)); /** * @hidden */ var CoreUtilities_TypedList$1 = /** @class */ /*@__PURE__*/ (function (_super) { __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(getBoxIfEnum(this.$t, a)); }; CoreUtilities_TypedList$1.prototype.insert = function (a, b) { this.a.insert(a, 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, getBoxIfEnum(this.$t, b)); return b; } else { return typeCastObjTo$t(this.$t, this.a.item(a)); } }; CoreUtilities_TypedList$1.prototype.add = function (a) { this.a.add(getBoxIfEnum(this.$t, a)); }; CoreUtilities_TypedList$1.prototype.clear = function () { this.a.clear(); }; CoreUtilities_TypedList$1.prototype.contains = function (a) { return this.a.contains(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(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, getEnumeratorObject(this.a)); }; CoreUtilities_TypedList$1.prototype.getEnumeratorObject = function () { return this.getEnumerator(); }; CoreUtilities_TypedList$1.$t = markType(CoreUtilities_TypedList$1, 'CoreUtilities_TypedList$1', Base.$, [IList$1_$type.specialize(0)]); return CoreUtilities_TypedList$1; }(Base)); /** * @hidden */ var CoreUtilities_ObservableTypedList$1 = /** @class */ /*@__PURE__*/ (function (_super) { __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 = typeCast(INotifyCollectionChanged_$type, a); if (b != null) { b.collectionChanged = delegateCombine(b.collectionChanged, runOn(_this, _this.c)); } var c = typeCast(INotifyPropertyChanged_$type, a); if (c != null) { c.propertyChanged = delegateCombine(c.propertyChanged, 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 = markType(CoreUtilities_ObservableTypedList$1, 'CoreUtilities_ObservableTypedList$1', CoreUtilities_TypedList$1.$.specialize(0), [INotifyCollectionChanged_$type, 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) { __extends(ListenerList, _super); function ListenerList(a) { var _this = _super.call(this, Base.$, 2, a) || this; _this.ad = 0; return _this; } ListenerList.af = function (a) { var b = typeCast(WeakReference.$, a); if (null == b) { b = new WeakReference(a); } return b; }; ListenerList.ag = function (a) { var b = typeCast(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 = 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 = 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 = 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 = 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 = 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 = 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 = markType(ListenerList, 'ListenerList', List$1.$.specialize(Base.$)); return ListenerList; }(List$1)); /** * @hidden */ var ListenerList_Enumerable = /** @class */ /*@__PURE__*/ (function (_super) { __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 = markType(ListenerList_Enumerable, 'ListenerList_Enumerable', Base.$, [IEnumerable$1_$type.specialize(Base.$)]); return ListenerList_Enumerable; }(Base)); /** * @hidden */ var ListenerList_Enumerable_Enumerator = /** @class */ /*@__PURE__*/ (function (_super) { __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 = markType(ListenerList_Enumerable_Enumerator, 'ListenerList_Enumerable_Enumerator', Base.$, [IEnumerator$1_$type.specialize(Base.$)]); return ListenerList_Enumerable_Enumerator; }(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) { __extends(PropertyChangeListenerBase, _super); function PropertyChangeListenerBase() { return _super !== null && _super.apply(this, arguments) || this; } PropertyChangeListenerBase.$t = markType(PropertyChangeListenerBase, 'PropertyChangeListenerBase'); return PropertyChangeListenerBase; }(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 Type(null, 'IPropertyChangeListener', null, [ITypedPropertyChangeListener$2_$type.specialize(Base.$, 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) { __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 = typeCast(WeakReference.$, this.a); var b = a == null ? typeCast(IList_$type, this.a) : null; var c = b == null ? 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 = typeCast(WeakReference.$, e); if (a != null) { if (a.c == null) { f = true; } } } if (f == false) { var g = typeCast(PropertyChangeListenerBase.$, e); if (g != null) { var h = g.a(); if (f == false) { a = typeCast(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 = markType(TypedPropertyChangeListenerList$2, 'TypedPropertyChangeListenerList$2', Base.$, [ITypedPropertyChangeListener$2_$type.specialize(0, 1)]); return TypedPropertyChangeListenerList$2; }(Base)); /** * @hidden */ var PropertyChangeListenerList = /** @class */ /*@__PURE__*/ (function (_super) { __extends(PropertyChangeListenerList, _super); function PropertyChangeListenerList() { return _super.call(this, Base.$, String_$type) || this; } PropertyChangeListenerList.e = function ($t, a, b, c, d) { if (getBoxIfEnum($t, a) != null) { a.removeListener(c); } a = b; if (getBoxIfEnum($t, a) != null) { a.addListener(c, d); } return { p0: a }; }; PropertyChangeListenerList.f = function ($t, a, b, c, d) { var e = typeCast(ISupportPropertyChangeNotifications_$type, a); if (e != null) { e.removeListener(c); } a = b; e = typeCast(ISupportPropertyChangeNotifications_$type, b); if (e != null) { e.addListener(c, d); } return { p0: a }; }; PropertyChangeListenerList.prototype.g = function (a, b) { this.onPropertyValueChanged(a, EnumUtil.getName(NotifyCollectionChangedAction_$type, b.action), b); }; PropertyChangeListenerList.h = function (a, b, c, d) { ListenerList.aj(Base.$, String_$type, a, b, c, d); }; PropertyChangeListenerList.$t = markType(PropertyChangeListenerList, 'PropertyChangeListenerList', TypedPropertyChangeListenerList$2.$.specialize(Base.$, 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 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 ItemPropertyChangedEventArgs = /** @class */ /*@__PURE__*/ (function (_super) { __extends(ItemPropertyChangedEventArgs, _super); function ItemPropertyChangedEventArgs(a, b) { var _this = _super.call(this, b) || this; _this._b = null; _this._b = a; return _this; } Object.defineProperty(ItemPropertyChangedEventArgs.prototype, "_item", { get: function () { return this._b; }, enumerable: false, configurable: true }); ItemPropertyChangedEventArgs.$t = markType(ItemPropertyChangedEventArgs, 'ItemP