UNPKG

igniteui-angular-spreadsheet

Version:

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

1,173 lines (1,151 loc) 4.27 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, EventArgs, toNullable, Number_$type, CanvasGestureDOMEventProxy, DomWrapper_$type, Dictionary$2, Tuple, Rect, ValueType, CultureInfo, stringFormat, wrapNullable, markStruct, 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 { 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, WorkbookSaveFilter, DefaultWorkbookSaveFilter, WorksheetRow, 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 */ let 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 */ let 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. */ let ComboBoxListItem = /*@__PURE__*/ (() => { class ComboBoxListItem extends Base { constructor(dataValue, displayText) { super(); this._a = null; this._e = null; this._c = null; this._a = dataValue; this._e = displayText; } /** * The data value of the item. */ get dataValue() { return this._a; } set dataValue(a) { if (a == this._a) { return; } if (a != null) { if (Base.equalsStatic(a, this._a)) { return; } } this._a = a; } /** * The text to display for the item. */ get displayText() { return this._e; } set displayText(a) { if (a == this._e) { return; } this._e = a; } /** * an object that stores extra data related to the item. */ get tag() { return this._c; } set tag(a) { if (a == this._c) { return; } this._c = a; } /** * Returns a string that represents the current object. * @return A string that represents the current object. */ toString() { return this.displayText; } } ComboBoxListItem.$t = markType(ComboBoxListItem, 'ComboBoxListItem'); return ComboBoxListItem; })(); /* 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 */ let 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 */ let 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 */ let 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 */ let 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 */ let SR = /*@__PURE__*/ (() => { class SR extends Base { static a(a) { return null; } static b(a, ...b) { return null; } } SR.$t = markType(SR, 'SR'); return SR; })(); /* 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 */ let TypedEnumerable_Enumerator$1 = /*@__PURE__*/ (() => { class TypedEnumerable_Enumerator$1 extends Base { constructor($t, a) { super(); this.$t = null; this.a = null; this.$t = $t; this.$type = this.$type.specialize(this.$t); this.a = a; } reset() { this.a.reset(); } moveNext() { return this.a.moveNext(); } get current() { return typeCastObjTo$t(this.$t, this.a.currentObject); } get currentObject() { return getBoxIfEnum(this.$t, this.current); } dispose() { } } TypedEnumerable_Enumerator$1.$t = markType(TypedEnumerable_Enumerator$1, 'TypedEnumerable_Enumerator$1', Base.$, [IEnumerator$1_$type.specialize(0)]); return TypedEnumerable_Enumerator$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. */ /** * @hidden */ let TypedEnumerable$1 = /*@__PURE__*/ (() => { class TypedEnumerable$1 extends Base { constructor($t, a) { super(); this.$t = null; this.a = null; this.$t = $t; this.$type = this.$type.specialize(this.$t); this.a = a || new Array(0); } b(a) { this.a = a || new Array(0); } getEnumerator() { return new TypedEnumerable_Enumerator$1(this.$t, getEnumeratorObject(this.a)); } getEnumeratorObject() { return this.getEnumerator(); } } TypedEnumerable$1.$t = markType(TypedEnumerable$1, 'TypedEnumerable$1', Base.$, [IEnumerable$1_$type.specialize(0)]); return TypedEnumerable$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. */ /** * @hidden */ let CoreUtilities = /*@__PURE__*/ (() => { class CoreUtilities extends Base { static j($t, a) { return new CoreUtilities_ObservableTypedList$1($t, a); } static c(a, b) { if (a == b) { return true; } return Math.abs(a - b) < 1E-10; } static h(a, b) { return a < b && !CoreUtilities.c(a, b); } static e(a, b) { return a > b && !CoreUtilities.c(a, b); } static i(a, b) { return a <= b || CoreUtilities.c(a, b); } static f(a, b) { return a >= b || CoreUtilities.c(a, b); } static d($t, a, b, 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 (let d = 0, e = a.count; d < e; d++) { if (!c.equalsC(a.item(d), b.item(d))) { return false; } } return true; } static m($t, a, b, c, d) { if (c == null) { c = Comparer$1.defaultComparerValue($t); } let e = 0, f = a.count - 1; let g = 0; let h = !d ? null : EqualityComparer$1.defaultEqualityComparerValue($t); while (e <= f) { g = intDivide((e + f), 2); let 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; } } let 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; } static n($tItem, $tComparison, a, b, c) { let d = 0, e = a.count - 1; let f = 0; while (d <= e) { f = intDivide((d + e), 2); let g = a.item(f); let h = b(g, c); if (h > 0) { e = f - 1; } else if (h < 0) { d = f + 1; } else { return f; } } return ~d; } static l(a, b, c) { if (a < b) { return b; } else if (a > c) { return c; } return a; } static s($t, a, b, c) { let d = typeCast(ICollection$1_$type.specialize($t), a); if (null != d) { d.copyTo(b, c); } else { for (let e of fromEnum(a)) { b[c++] = e; } } } static r(a, b, c) { for (let d of fromEn(a)) { b[c++] = d; } } static a($t, a) { if (null != a) { for (let b of fromEnum(a)) { return b; } } return Type.getDefaultValue($t); } static b($t, a, b) { if (null != a) { if (b) { let c = typeCast(IList$1_$type.specialize($t), a); if (null != c) { return c.count > 0 ? c.item(0) : Type.getDefaultValue($t); } let d = typeCast(IList_$type, a); if (null != d) { return d.count > 0 ? typeCastObjTo$t($t, d.item(0)) : Type.getDefaultValue($t); } } for (let e of fromEn(a)) { return e; } } return Type.getDefaultValue($t); } static k($t) { let a = $t; let b = EnumUtil.getNames(a); let c = new List$1($t, 0); for (let e = 0; e < b.length; e++) { let d = b[e]; c.add(typeCastObjTo$t($t, EnumUtil.parse(a, d, false))); } return c; } static q(a) { if (a == null) { return null; } let b = Nullable.getUnderlyingType(a); if (b != null) { a = b; } return a; } static p(a) { if (null != a) { try { return a.c; } catch (b) { } } return null; } static g(a) { if (null != a) { if (typeCast(ICollection_$type, a) !== null) { return a.count > 0; } if (null != a) { for (let b of fromEn(a)) { return true; } } } return false; } static t() { throw new NotSupportedException(1, "Collection is read-only."); } static v($t, a, b) { let c = CoreUtilities.o($t, a, b); a.v(c, a.count - c); } static u($t, a, b) { let c = CoreUtilities.o($t, a, b); for (let d = a.count - 1; d >= c; d--) { a.removeAt(d); } } static o($t, a, b) { let c = 0; let d = a.count; let e = EqualityComparer$1.defaultEqualityComparerValue($t); for (let 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; } static w(a) { if (a < 0) { throw new ArgumentException(1, SR.a("LE_ValueCannotBeNegative")); } } static x(a, b) { if (a < 0) { throw new ArgumentException(2, b, SR.a("LE_ValueCannotBeNegative")); } } static y(a) { if (null == a) { throw new ArgumentNullException(1); } } static z(a, b) { if (null == a) { throw new ArgumentNullException(0, b); } } } CoreUtilities.$t = markType(CoreUtilities, 'CoreUtilities'); return CoreUtilities; })(); /** * @hidden */ let CoreUtilities_TypedList$1 = /*@__PURE__*/ (() => { class CoreUtilities_TypedList$1 extends Base { constructor($t, a) { super(); this.$t = null; this.a = null; this.$t = $t; this.$type = this.$type.specialize(this.$t); CoreUtilities.y(a); this.a = a; } get b() { return this.a; } indexOf(a) { return this.a.indexOf(getBoxIfEnum(this.$t, a)); } insert(a, b) { this.a.insert(a, getBoxIfEnum(this.$t, b)); } removeAt(a) { this.a.removeAt(a); } item(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)); } } add(a) { this.a.add(getBoxIfEnum(this.$t, a)); } clear() { this.a.clear(); } contains(a) { return this.a.contains(getBoxIfEnum(this.$t, a)); } copyTo(a, b) { CoreUtilities.s(this.$t, new TypedEnumerable$1(this.$t, this.a), a, b); } get count() { return this.a.count; } get isReadOnly() { return this.a.isReadOnly; } remove(a) { let b = this.a.indexOf(getBoxIfEnum(this.$t, a)); if (b >= 0) { this.a.removeAt(b); } return b >= 0; } getEnumerator() { return new TypedEnumerable_Enumerator$1(this.$t, getEnumeratorObject(this.a)); } getEnumeratorObject() { return this.getEnumerator(); } } CoreUtilities_TypedList$1.$t = markType(CoreUtilities_TypedList$1, 'CoreUtilities_TypedList$1', Base.$, [IList$1_$type.specialize(0)]); return CoreUtilities_TypedList$1; })(); /** * @hidden */ let CoreUtilities_ObservableTypedList$1 = /*@__PURE__*/ (() => { class CoreUtilities_ObservableTypedList$1 extends CoreUtilities_TypedList$1 { constructor($t, a) { super($t, a); this.$t = null; this.propertyChanged = null; this.collectionChanged = null; this.$t = $t; this.$type = this.$type.specialize(this.$t); let b = typeCast(INotifyCollectionChanged_$type, a); if (b != null) { b.collectionChanged = delegateCombine(b.collectionChanged, runOn(this, this.c)); } let c = typeCast(INotifyPropertyChanged_$type, a); if (c != null) { c.propertyChanged = delegateCombine(c.propertyChanged, runOn(this, this.d)); } } d(a, b) { let c = this.propertyChanged; if (null != c) { c(this, b); } } c(a, b) { let 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; })(); /* 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 */ let ListenerList = /*@__PURE__*/ (() => { class ListenerList extends List$1 { constructor(a) { super(Base.$, 2, a); this.ad = 0; } static af(a) { let b = typeCast(WeakReference.$, a); if (null == b) { b = new WeakReference(a); } return b; } static ag(a) { let b = typeCast(WeakReference.$, a); if (null != b) { return CoreUtilities.p(b); } return a; } static add2(a, b, c) { CoreUtilities.y(b); let d = c ? ListenerList.af(b) : b; if (null == a) { return d; } else { let e = typeCast(ListenerList.$, a); if (null != e) { e.add1(d); } else { e = new ListenerList(2); e.add1(a); e.add1(d); } return e; } } static remove2(a, b) { let c = typeCast(ListenerList.$, a); if (null != c) { for (let d = c.count - 1; d >= 0; d--) { if (b == ListenerList.ag(c._inner[d])) { if (0 != c.ad) { let 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; } } static ac(a) { let b = typeCast(ListenerList.$, a); if (null != b) { return new ListenerList_Enumerable(b); } else if (null != a) { return [a]; } else { return new Array(0); } } static ai(a, b, c) { c = null; b = null; let d = typeCast(ListenerList.$, a); if (null != d) { b = new ListenerList_Enumerable(d); } else { let e = ListenerList.ag(a); if (null != e) { c = e; } } return { p1: b, p2: c }; } static aj($tItem, $tProperty, a, b, c, d) { let e = typeCast(ListenerList.$, a); if (null != e) { e.ad++; try { for (let f = 0, g = e.count; f < g; f++) { let h = ListenerList.ag(e._inner[f]); if (null != h) { h.onPropertyValueChanged(b, c, d); } } } finally { e.ad--; } } else if (null != a) { let i = ListenerList.ag(a); if (null != i) { i.onPropertyValueChanged(b, c, d); } } } static ak($tItem, a, b) { let c = typeCast(ListenerList.$, a); if (null != c) { c.ad++; try { for (let d = 0, e = c.count; d < e; d++) { let f = ListenerList.ag(c._inner[d]); if (null != f) { f.onValueChanged(b); } } } finally { c.ad--; } } else if (null != a) { let g = ListenerList.ag(a); if (null != g) { g.onValueChanged(b); } } } } ListenerList.$t = markType(ListenerList, 'ListenerList', List$1.$.specialize(Base.$)); return ListenerList; })(); /** * @hidden */ let ListenerList_Enumerable = /*@__PURE__*/ (() => { class ListenerList_Enumerable extends Base { constructor(a) { super(); this.a = null; this.a = a; } getEnumerator() { return new ListenerList_Enumerable_Enumerator(this.a); } getEnumeratorObject() { return this.getEnumerator(); } } ListenerList_Enumerable.$t = markType(ListenerList_Enumerable, 'ListenerList_Enumerable', Base.$, [IEnumerable$1_$type.specialize(Base.$)]); return ListenerList_Enumerable; })(); /** * @hidden */ let ListenerList_Enumerable_Enumerator = /*@__PURE__*/ (() => { class ListenerList_Enumerable_Enumerator extends Base { constructor(a) { super(); this.a = null; this.b = 0; this.c = null; this.a = a; this.reset(); } get current() { return this.c; } dispose() { } get currentObject() { return this.current; } moveNext() { 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; } reset() { 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; })(); /* 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 */ let PropertyChangeListenerBase = /*@__PURE__*/ (() => { class PropertyChangeListenerBase extends Base { } PropertyChangeListenerBase.$t = markType(PropertyChangeListenerBase, 'PropertyChangeListenerBase'); return PropertyChangeListenerBase; })(); /* 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 */ let 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 */ let TypedPropertyChangeListenerList$2 = /*@__PURE__*/ (() => { class TypedPropertyChangeListenerList$2 extends Base { constructor($tItem, $tProperty) { super(); this.$tItem = null; this.$tProperty = null; this.a = null; this.$tItem = $tItem; this.$tProperty = $tProperty; this.$type = this.$type.specialize(this.$tItem, this.$tProperty); } b(a, b) { this.a = ListenerList.add2(this.a, a, b); } d(a) { this.a = ListenerList.remove2(this.a, a); } onPropertyValueChanged(a, b, c) { if (null != this.a) { ListenerList.aj(this.$tItem, this.$tProperty, this.a, a, b, c); } } c() { let a = typeCast(WeakReference.$, this.a); let b = a == null ? typeCast(IList_$type, this.a) : null; let c = b == null ? typeCast(PropertyChangeListenerList.$, this.a) : null; if (c != null) { c.c(); return; } if (b != null) { for (let d = b.count - 1; d >= 0; d -= 1) { let e = b.item(d); let f = false; if (f == false) { a = typeCast(WeakReference.$, e); if (a != null) { if (a.c == null) { f = true; } } } if (f == false) { let g = typeCast(PropertyChangeListenerBase.$, e); if (g != null) { let 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) { let i = a.c; } } } TypedPropertyChangeListenerList$2.$t = markType(TypedPropertyChangeListenerList$2, 'TypedPropertyChangeListenerList$2', Base.$, [ITypedPropertyChangeListener$2_$type.specialize(0, 1)]); return TypedPropertyChangeListenerList$2; })(); /** * @hidden */ let PropertyChangeListenerList = /*@__PURE__*/ (() => { class PropertyChangeListenerList extends TypedPropertyChangeListenerList$2 { constructor() { super(Base.$, String_$type); } static e($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 }; } static f($t, a, b, c, d) { let 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 }; } g(a, b) { this.onPropertyValueChanged(a, EnumUtil.getName(NotifyCollectionChangedAction_$type, b.action), b); } static h(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; })(); /* 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 */ let ItemPropertyChangedEventArgs = /*@__PURE__*/ (() => { class ItemPropertyChangedEventArgs extends PropertyChangedEventArgs { constructor(a, b) { super(b); this._b = null; this._b = a; } get _item() { return this._b; } } ItemPropertyChangedEventArgs.$t = markType(ItemPropertyChangedEventArgs, 'ItemPropertyChangedEventArgs', PropertyChangedEventArgs.$); return ItemPropertyChangedEventArgs; })(); /* 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 */ let ObservableCollectionExtended$1 = /*@__PURE__*/ (() => { class ObservableCollectionExtended$1 extends List$1 { constructor($t, a, ..._rest) { a = (a == void 0) ? 0 : a; switch (a) { case 0: { let c = [true, false]; { let e = c[0]; let f = c[1]; super($t, 0); this.$t = $t; this.$type = this.$type.specialize(this.$t); this._an = 0; this._ae = false; this._af = false; this._al = null; this._ac = null; this._ag = false; this._itemPropertyChanged = null; this.propertyChanged = null; this.collectionChanged = null; this._aq(e, f); } } break; case 1: { let c = _rest[0]; super($t, 1, c); this.$t = $t; this.$type = this.$type.specialize(this.$t); this._an = 0; this._ae = false; this._af = false; this._al = null; this._ac = null; this._ag = false; this._itemPropertyChanged = null; this.propertyChanged = null; this.collectionChanged = null; this._aq(true, false); } break; case 2: { let c = _rest[0]; let d = _rest[1]; super($t, 0); this.$t = $t; this.$type = this.$type.specialize(this.$t); this._an = 0; this._ae = false; this._af = false; this._al = null; this._ac = null; this._ag = false; this._itemPropertyChanged = null; this.propertyChanged = null; this.collectionChanged = null; this._aq(c, d); } break; } } get _ah() { return this._an != 0; } get__ai() { return false; } get _ai() { return this.get__ai(); } get _ad() { if (null == this._ac) { this._ac = new PropertyChangeListenerList(); } return this._ac; } get _aj() { return this; } o(a) { this.s(this.count, a); } beginUpdate() { let a = ++this._an; if (a == 1) { this._ar(); } } endUpdate() { let a = --this._an; if (a == 0) { if (this._ae) { this._ae = false; this._a0("Count"); this._a0("Item[]"); this._a1(); } this._at(); } } s(a, b) { if (b == null) { throw new ArgumentNullException(0, "collection"); } let c = this._ai; if (c) { for (let d of fromEnum(b)) { this._av(d); } } for (let e of fromEnum(b)) { this._ap(e); this.r(a++, e); if (c) { this._au(e); } } if (false == this._ah) { this._a0("Count"); this._a0("Item[]"); this._a1(); } else { this._ae = true; } } _a3(a) { if (null == a) { throw new ArgumentNullException(0, "collection"); } this.beginUpdate(); this.clear(); this.o(a); this.endUpdate(); } v(a, b) { if (a < 0) { throw new ArgumentOutOfRangeException(1, "index"); } if (b < 0) { throw new ArgumentOutOfRangeException(1, "count"); } let c = this._ai; for (let d = a + b - 1; d >= a; d--) { let e = this._inner[d]; if (c) { this._ay(e); } this._a4(e);