UNPKG

ag-grid-angular

Version:

![alt text](./github-banner.png "AG Grid")

1,128 lines (1,097 loc) 127 kB
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('ag-grid-community')) : typeof define === 'function' && define.amd ? define('ag-grid-angular', ['exports', '@angular/core', 'ag-grid-community'], factory) : (global = global || self, factory(global['ag-grid-angular'] = {}, global.ng.core, global.agGrid)); }(this, (function (exports, core, agGridCommunity) { 'use strict'; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ /* global Reflect, Promise */ var extendStatics = function(d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; function __extends(d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); } var __assign = function() { __assign = Object.assign || function __assign(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { s = arguments[i]; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; } return t; }; return __assign.apply(this, arguments); }; function __rest(s, e) { var t = {}; for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p]; if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]]; } return t; } function __decorate(decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; } function __param(paramIndex, decorator) { return function (target, key) { decorator(target, key, paramIndex); } } function __metadata(metadataKey, metadataValue) { if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); } function __awaiter(thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); } function __generator(thisArg, body) { var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; function verb(n) { return function (v) { return step([n, v]); }; } function step(op) { if (f) throw new TypeError("Generator is already executing."); while (_) try { if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; if (y = 0, t) op = [op[0] & 2, t.value]; switch (op[0]) { case 0: case 1: t = op; break; case 4: _.label++; return { value: op[1], done: false }; case 5: _.label++; y = op[1]; op = [0]; continue; case 7: op = _.ops.pop(); _.trys.pop(); continue; default: if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } if (t[2]) _.ops.pop(); _.trys.pop(); continue; } op = body.call(thisArg, _); } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; } } function __createBinding(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k]; } function __exportStar(m, exports) { for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; } function __values(o) { var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; if (m) return m.call(o); if (o && typeof o.length === "number") return { next: function () { if (o && i >= o.length) o = void 0; return { value: o && o[i++], done: !o }; } }; throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); } function __read(o, n) { var m = typeof Symbol === "function" && o[Symbol.iterator]; if (!m) return o; var i = m.call(o), r, ar = [], e; try { while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); } catch (error) { e = { error: error }; } finally { try { if (r && !r.done && (m = i["return"])) m.call(i); } finally { if (e) throw e.error; } } return ar; } function __spread() { for (var ar = [], i = 0; i < arguments.length; i++) ar = ar.concat(__read(arguments[i])); return ar; } function __spreadArrays() { for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; for (var r = Array(s), k = 0, i = 0; i < il; i++) for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) r[k] = a[j]; return r; }; function __await(v) { return this instanceof __await ? (this.v = v, this) : new __await(v); } function __asyncGenerator(thisArg, _arguments, generator) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var g = generator.apply(thisArg, _arguments || []), i, q = []; return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } function fulfill(value) { resume("next", value); } function reject(value) { resume("throw", value); } function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } } function __asyncDelegator(o) { var i, p; return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } } function __asyncValues(o) { if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); var m = o[Symbol.asyncIterator], i; return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } } function __makeTemplateObject(cooked, raw) { if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } return cooked; }; function __importStar(mod) { if (mod && mod.__esModule) return mod; var result = {}; if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; result.default = mod; return result; } function __importDefault(mod) { return (mod && mod.__esModule) ? mod : { default: mod }; } function __classPrivateFieldGet(receiver, privateMap) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to get private field on non-instance"); } return privateMap.get(receiver); } function __classPrivateFieldSet(receiver, privateMap, value) { if (!privateMap.has(receiver)) { throw new TypeError("attempted to set private field on non-instance"); } privateMap.set(receiver, value); return value; } var AgGridColumn = /** @class */ (function () { function AgGridColumn() { } AgGridColumn_1 = AgGridColumn; AgGridColumn.prototype.hasChildColumns = function () { if (this.childColumns && this.childColumns.length > 0) { // necessary because of https://github.com/angular/angular/issues/10098 return !(this.childColumns.length === 1 && this.childColumns.first === this); } return false; }; AgGridColumn.prototype.toColDef = function () { var colDef = this.createColDefFromGridColumn(this); if (this.hasChildColumns()) { colDef["children"] = this.getChildColDefs(this.childColumns); } return colDef; }; AgGridColumn.prototype.getChildColDefs = function (childColumns) { return childColumns // necessary because of https://github.com/angular/angular/issues/10098 .filter(function (column) { return !column.hasChildColumns(); }) .map(function (column) { return column.toColDef(); }); }; AgGridColumn.prototype.createColDefFromGridColumn = function (from) { var childColumns = from.childColumns, colDef = __rest(from, ["childColumns"]); return colDef; }; var AgGridColumn_1; __decorate([ core.ContentChildren(AgGridColumn_1), __metadata("design:type", core.QueryList) ], AgGridColumn.prototype, "childColumns", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "children", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "sortingOrder", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "allowedAggFuncs", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "menuTabs", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "cellClassRules", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "icons", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerGroupComponent", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerGroupComponentFramework", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerGroupComponentParams", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "cellStyle", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "cellRendererParams", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "cellEditorFramework", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "cellEditorParams", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "pinnedRowCellRendererFramework", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "pinnedRowCellRendererParams", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "filterFramework", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "filterParams", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerComponent", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerComponentFramework", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerComponentParams", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "floatingFilterComponent", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "floatingFilterComponentParams", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "floatingFilterComponentFramework", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "tooltipComponent", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "tooltipComponentParams", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "tooltipComponentFramework", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "refData", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "columnsMenuParams", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerName", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "columnGroupShow", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerClass", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "toolPanelClass", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerValueGetter", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "groupId", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "colId", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "sort", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "initialSort", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "field", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "type", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "tooltipField", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerTooltip", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "cellClass", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "showRowGroup", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "filter", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "initialAggFunc", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "aggFunc", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "cellRenderer", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "cellEditor", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "pinned", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "initialPinned", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "chartDataType", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "sortedAt", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "sortIndex", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "initialSortIndex", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "flex", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "initialFlex", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "width", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "initialWidth", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "minWidth", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "maxWidth", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "rowGroupIndex", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "initialRowGroupIndex", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "pivotIndex", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "initialPivotIndex", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "dndSourceOnRowDrag", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "valueGetter", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "valueSetter", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "filterValueGetter", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "keyCreator", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "cellRendererFramework", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "pinnedRowCellRenderer", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "valueFormatter", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "pinnedRowValueFormatter", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "valueParser", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "comparator", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "equals", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "pivotComparator", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "suppressKeyboardEvent", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "suppressHeaderKeyboardEvent", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "colSpan", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "rowSpan", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "getQuickFilterText", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "newValueHandler", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "onCellValueChanged", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "onCellClicked", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "onCellDoubleClicked", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "onCellContextMenu", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "rowDragText", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "tooltipValueGetter", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "cellRendererSelector", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "cellEditorSelector", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "suppressCellFlash", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "suppressColumnsToolPanel", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "suppressFiltersToolPanel", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "openByDefault", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "marryChildren", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "hide", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "initialHide", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "rowGroup", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "initialRowGroup", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "pivot", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "initialPivot", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "checkboxSelection", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerCheckboxSelection", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "headerCheckboxSelectionFilteredOnly", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "suppressMenu", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "suppressMovable", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "lockPosition", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "lockVisible", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "lockPinned", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "unSortIcon", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "suppressSizeToFit", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "suppressAutoSize", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "enableRowGroup", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "enablePivot", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "enableValue", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "editable", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "suppressPaste", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "suppressNavigable", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "enableCellChangeFlash", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "rowDrag", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "dndSource", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "autoHeight", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "wrapText", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "sortable", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "resizable", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "singleClickEdit", void 0); __decorate([ core.Input(), __metadata("design:type", Object) ], AgGridColumn.prototype, "floatingFilter", void 0); AgGridColumn = AgGridColumn_1 = __decorate([ core.Component({ selector: 'ag-grid-column', template: '' }) ], AgGridColumn); return AgGridColumn; }()); var AngularFrameworkOverrides = /** @class */ (function (_super) { __extends(AngularFrameworkOverrides, _super); function AngularFrameworkOverrides(_ngZone) { var _this = _super.call(this) || this; _this._ngZone = _ngZone; return _this; } AngularFrameworkOverrides.prototype.setEmitterUsedCallback = function (isEmitterUsed) { this.isEmitterUsed = isEmitterUsed; }; AngularFrameworkOverrides.prototype.setTimeout = function (action, timeout) { if (this._ngZone) { this._ngZone.runOutsideAngular(function () { window.setTimeout(function () { action(); }, timeout); }); } else { window.setTimeout(function () { action(); }, timeout); } }; AngularFrameworkOverrides.prototype.addEventListener = function (element, eventType, listener, useCapture) { if (this.isOutsideAngular(eventType) && this._ngZone) { this._ngZone.runOutsideAngular(function () { element.addEventListener(eventType, listener, useCapture); }); } else { element.addEventListener(eventType, listener, useCapture); } }; AngularFrameworkOverrides.prototype.dispatchEvent = function (eventType, listener) { if (this.isOutsideAngular(eventType)) { if (this._ngZone) { this._ngZone.runOutsideAngular(listener); } else { listener(); } } else if (this.isEmitterUsed(eventType)) { // only trigger off events (and potentially change detection) if actually used if (!core.NgZone.isInAngularZone() && this._ngZone) { this._ngZone.run(listener); } else { listener(); } } }; AngularFrameworkOverrides.ctorParameters = function () { return [ { type: core.NgZone } ]; }; AngularFrameworkOverrides = __decorate([ core.Injectable(), __metadata("design:paramtypes", [core.NgZone]) ], AngularFrameworkOverrides); return AngularFrameworkOverrides; }(agGridCommunity.VanillaFrameworkOverrides)); var AngularFrameworkComponentWrapper = /** @class */ (function (_super) { __extends(AngularFrameworkComponentWrapper, _super); function AngularFrameworkComponentWrapper() { return _super !== null && _super.apply(this, arguments) || this; } AngularFrameworkComponentWrapper.prototype.setViewContainerRef = function (viewContainerRef) { this.viewContainerRef = viewContainerRef; }; AngularFrameworkComponentWrapper.prototype.setComponentFactoryResolver = function (componentFactoryResolver) { this.componentFactoryResolver = componentFactoryResolver; }; AngularFrameworkComponentWrapper.prototype.createWrapper = function (OriginalConstructor) { var that = this; var DynamicAgNg2Component = /** @class */ (function (_super) { __extends(DynamicAgNg2Component, _super); function DynamicAgNg2Component() { return _super !== null && _super.apply(this, arguments) || this; } DynamicAgNg2Component.prototype.init = function (params) { _super.prototype.init.call(this, params); this._componentRef.changeDetectorRef.detectChanges(); }; DynamicAgNg2Component.prototype.createComponent = function () { return that.createComponent(OriginalConstructor); }; DynamicAgNg2Component.prototype.hasMethod = function (name) { return wrapper.getFrameworkComponentInstance()[name] != null; }; DynamicAgNg2Component.prototype.callMethod = function (name, args) { var componentRef = this.getFrameworkComponentInstance(); return wrapper.getFrameworkComponentInstance()[name].apply(componentRef, args); }; DynamicAgNg2Component.prototype.addMethod = function (name, callback) { wrapper[name] = callback; }; return DynamicAgNg2Component; }(BaseGuiComponent)); var wrapper = new DynamicAgNg2Component(); return wrapper; }; AngularFrameworkComponentWrapper.prototype.createComponent = function (componentType) { // used to cache the factory, but this a) caused issues when used with either webpack/angularcli with --prod // but more significantly, the underlying implementation of resolveComponentFactory uses a map too, so us // caching the factory here yields no performance benefits var factory = this.componentFactoryResolver.resolveComponentFactory(componentType); return this.viewContainerRef.createComponent(factory); }; AngularFrameworkComponentWrapper = __decorate([ core.Injectable() ], AngularFrameworkComponentWrapper); return AngularFrameworkComponentWrapper; }(agGridCommunity.BaseComponentWrapper)); var BaseGuiComponent = /** @class */ (function () { function BaseGuiComponent() { } BaseGuiComponent.prototype.init = function (params) { this._params = params; this._componentRef = this.createComponent(); this._agAwareComponent = this._componentRef.instance; this._frameworkComponentInstance = this._componentRef.instance; this._eGui = this._componentRef.location.nativeElement; this._agAwareComponent.agInit(this._params); }; BaseGuiComponent.prototype.getGui = function () { return this._eGui; }; BaseGuiComponent.prototype.destroy = function () { if (this._componentRef) { this._componentRef.destroy(); } }; BaseGuiComponent.prototype.getFrameworkComponentInstance = function () { return this._frameworkComponentInstance; }; return BaseGuiComponent; }()); var AgGridAngular = /** @class */ (function () { function AgGridAngular(elementDef, viewContainerRef, angularFrameworkOverrides, frameworkComponentWrapper, componentFactoryResolver) { this.viewContainerRef = viewContainerRef; this.angularFrameworkOverrides = angularFrameworkOverrides; this.frameworkComponentWrapper = frameworkComponentWrapper; this.componentFactoryResolver = componentFactoryResolver; this._initialised = false; this._destroyed = false; // in order to ensure firing of gridReady is deterministic this._fullyReady = agGridCommunity.AgPromise.resolve(true); // @START@ this.alignedGrids = undefined; this.rowData = undefined; this.columnDefs = undefined; this.excelStyles = undefined; this.pinnedTopRowData = undefined; this.pinnedBottomRowData = undefined; this.chartThemes = undefined; this.components = undefined; this.frameworkComponents = undefined; this.rowStyle = undefined; this.context = undefined; this.autoGroupColumnDef = undefined; this.localeText = undefined; this.icons = undefined; this.datasource = undefined; this.serverSideDatasource = undefined; this.viewportDatasource = undefined; this.groupRowRendererParams = undefined; this.aggFuncs = undefined; this.fullWidthCellRendererParams = undefined; this.defaultColGroupDef = undefined; this.defaultColDef = undefined; this.defaultExportParams = undefined; this.defaultCsvExportParams = undefined; this.defaultExcelExportParams = undefined; this.columnTypes = undefined; this.rowClassRules = undefined; this.detailGridOptions = undefined; this.detailCellRendererParams = undefined; this.loadingCellRendererParams = undefined; this.loadingOverlayComponentParams = undefined; this.noRowsOverlayComponentParams = undefined; this.popupParent = undefined; this.colResizeDefault = undefined; this.reduxStore = undefined; this.statusBar = undefined; this.sideBar = undefined; this.chartThemeOverrides = undefined; this.customChartThemes = undefined; this.sortingOrder = undefined; this.rowClass = undefined; this.rowSelection = undefined; this.overlayLoadingTemplate = undefined; this.overlayNoRowsTemplate = undefined; this.quickFilterText = undefined; this.rowModelType = undefined; this.editType = undefined; this.domLayout = undefined; this.clipboardDeliminator = undefined; this.rowGroupPanelShow = undefined; this.multiSortKey = undefined; this.pivotColumnGroupTotals = undefined; this.pivotRowTotals = undefined; this.pivotPanelShow = undefined; this.fillHandleDirection = undefined; this.serverSideStoreType = undefined; this.rowHeight = undefined; this.detailRowHeight = undefined; this.rowBuffer = undefined; this.colWidth = undefined; this.headerHeight = undefined; this.groupHeaderHeight = undefined; this.floatingFiltersHeight = undefined; this.pivotHeaderHeight = undefined; this.pivotGroupHeaderHeight = undefined; this.groupDefaultExpanded = undefined; this.minColWidth = undefined; this.maxColWidth = undefined; this.viewportRowModelPageSize = undefined; this.viewportRowModelBufferSize = undefined; this.autoSizePadding = undefined; this.maxBlocksInCache = undefined; this.maxConcurrentDatasourceRequests = undefined; this.tooltipShowDelay = undefined; this.cacheOverflowSize = undefined; this.paginationPageSize = undefined; this.cacheBlockSize = undefined; this.infiniteInitialRowCount = undefined; this.scrollbarWidth = undefined; this.batchUpdateWaitMillis = undefined; this.asyncTransactionWaitMillis = undefined; this.blockLoadDebounceMillis = undefined; this.keepDetailRowsCount = undefined; this.undoRedoCellEditingLimit = undefined; this.cellFlashDelay = undefined; this.cellFadeDelay = undefined; this.tabIndex = undefined; this.localeTextFunc = undefined; this.groupRowInnerRenderer = undefined; this.groupRowInnerRendererFramework = undefined; this.dateComponent = undefined; this.dateComponentFramework = undefined; this.groupRowRenderer = undefined; this.groupRowRendererFramework = undefined; this.isExternalFilterPresent = undefined; this.getRowHeight = undefined; this.doesExternalFilterPass = undefined; this.getRowClass = undefined; this.getRowStyle = undefined; this.getRowClassRules = undefined; this.traverseNode = undefined; this.getContextMenuItems = undefined; this.getMainMenuItems = undefined; this.processRowPostCreate = undefined; this.processCellForClipboard = undefined; this.groupRowAggNodes = undefined; this.getRowNodeId = undefined; this.isFullWidthCell = undefined; this.fullWidthCellRenderer = undefined; this.fullWidthCellRendererFramework = undefined; this.processSecondaryColDef = undefined; this.processSecondaryColGroupDef = undefined; this.getBusinessKeyForNode = undefined; this.sendToClipboard = undefined; this.navigateToNextHeader = undefined; this.tabToNextHeader = undefined; this.navigateToNextCell = undefined; this.tabToNextCell = undefined; this.getDetailRowData = undefined; this.processCellFromClipboard = undefined; this.getDocument = undefined; this.postProcessPopup = undefined; this.getChildCount = undefined; this.getDataPath = undefined; this.loadingCellRenderer = undefined; this.loadingCellRendererFramework = undefined; this.loadingOverlayComponent = undefined; this.loadingOverlayComponentFramework = undefined; this.noRowsOverlayComponent = undefined; this.noRowsOverlayComponentFramework = undefined; this.detailCellRenderer = undefined; this.detailCellRendererFramework = undefined; this.defaultGroupSortComparator = undefined; this.isRowMaster = undefined; this.isRowSelectable = undefined; this.postSort = undefined; this.processHeaderForClipboard = undefined; this.paginationNumberFormatter = undefined; this.processDataFromClipboard = undefined; this.getServerSideGroupKey = undefined; this.isServerSideGroup = undefined; this.suppressKeyboardEvent = undefined; this.createChartContainer = undefined; this.processChartOptions = undefined; this.getChartToolbarItems = undefined; this.fillOperation = undefined; this.isApplyServerSideTransaction = undefined; this.getServerSideStoreParams = undefined; this.isServerSideGroupOpenByDefault = undefined; this.isGroupOpenByDefault = undefined; this.suppressMakeColumnVisibleAfterUnGroup = undefined; this.suppressRowClickSelection = undefined; this.suppressCellSelection = undefined; this.suppressHorizontalScroll = undefined; this.alwaysShowHorizontalScroll = undefined; this.alwaysShowVerticalScroll = undefined; this.debug = undefined; this.enableBrowserTooltips = undefined; this.enableCellExpressions = undefined; this.angularCompileRows = undefined; this.angularCompileFilters = undefined; this.groupSuppressAutoColumn = undefined; this.groupSelectsChildren = undefined; this.groupIncludeFooter = undefined; this.groupIncludeTotalFooter = undefined; this.groupUseEntireRow = undefined; this.groupSuppressBlankHeader = undefined; this.suppressMenuHide = undefined; this.suppressRowDeselection = undefined; this.unSortIcon = undefined; this.suppressMultiSort = undefined; this.singleClickEdit = undefined; this.suppressLoadingOverlay = undefined; this.suppressNoRowsOverlay = undefined; this.suppressAutoSize = undefined; this.skipHeaderOnAutoSize = undefined; this.suppressParentsInRowNodes = undefined; this.suppressColumnMoveAnimation = undefined; this.suppressMovableColumns = undefined; this.suppressFieldDotNotation = undefined; this.enableRangeSelection = undefined; this.enableRangeHandle = undefined; this.enableFillHandle = undefined; this.suppressClearOnFillReduction = undefined; this.deltaSort = undefined; this.suppressTouch = undefined; this.suppressAsyncEvents = undefined; this.allowContextMenuWithControlKey = undefined; this.suppressContextMenu = undefined; this.rememberGroupStateWhenNewData = undefined; this.enableCellChangeFlash = undefined; this.suppressDragLeaveHidesColumns = undefined; this.suppressMiddleClickScrolls = undefined; this.suppressPreventDefaultOnMouseWheel = undefined; this.suppressCopyRowsToClipboard = undefined; this.copyHeaders