UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

43 lines (42 loc) 1.69 kB
import { __extends } from "tslib"; import { IgCollection } from './IgCollection'; import { SyncableObservableCollection$2 } from './SyncableObservableCollection$2'; import { markType } from './type'; import { ToolCommandArgument } from './ToolCommandArgument'; var IgxToolCommandArgumentCollection = /** @class */ /*@__PURE__*/ (function (_super) { __extends(IgxToolCommandArgumentCollection, _super); function IgxToolCommandArgumentCollection(list) { var _this = _super.call(this) || this; if (!ToolCommandArgument.$type) { ToolCommandArgument.$type = markType(ToolCommandArgument, "ToolCommandArgument"); } if (list) { for (var i = 0; i < list.length; i++) { _this.add(list[i]); } } return _this; } IgxToolCommandArgumentCollection.prototype._createInnerColl = function () { if (!ToolCommandArgument.$type) { ToolCommandArgument.$type = markType(ToolCommandArgument, "ToolCommandArgument"); } var coll = new SyncableObservableCollection$2(ToolCommandArgument.$type, ToolCommandArgument.$type, 0); coll.compare = function (ext, int) { var comp = ext; if (comp.equals) { return comp.equals(int); } return comp === int; }; coll.createTo = function (ext) { return ext; }; coll.createFrom = function (int) { return int; }; return coll; }; return IgxToolCommandArgumentCollection; }(IgCollection)); export { IgxToolCommandArgumentCollection };