ag-grid-aurelia
Advanced tools
Comparing version 7.0.0 to 7.1.0
{ | ||
"name": "ag-grid-aurelia", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"homepage": "http://www.ag-grid.com/", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
import { ComponentAttached, ComponentDetached, Container, ViewResources, TaskQueue } from "aurelia-framework"; | ||
@@ -14,2 +14,4 @@ import { GridOptions, GridApi, ColumnApi } from "ag-grid/main"; | ||
private _destroyed; | ||
gridOptions: GridOptions; | ||
context: any; | ||
private gridParams; | ||
@@ -28,181 +30,2 @@ api: GridApi; | ||
private globalEventListener(eventType, event); | ||
/** | ||
* inputs example: grid-options.bind="yourViewModelProperty" | ||
*/ | ||
gridOptions: GridOptions; | ||
slaveGrids: any; | ||
rowData: any; | ||
floatingTopRowData: any; | ||
floatingBottomRowData: any; | ||
columnDefs: any; | ||
rowStyle: any; | ||
context: any; | ||
groupColumnDef: any; | ||
localeText: any; | ||
icons: any; | ||
datasource: any; | ||
viewportDatasource: any; | ||
groupRowRendererParams: any; | ||
aggFuncs: any; | ||
fullWidthCellRendererParams: any; | ||
sortingOrder: any; | ||
rowClass: any; | ||
rowSelection: any; | ||
overlayLoadingTemplate: any; | ||
overlayNoRowsTemplate: any; | ||
headerCellTemplate: any; | ||
quickFilterText: any; | ||
rowModelType: any; | ||
rowHeight: any; | ||
rowBuffer: any; | ||
colWidth: any; | ||
headerHeight: any; | ||
groupDefaultExpanded: any; | ||
minColWidth: any; | ||
maxColWidth: any; | ||
viewportRowModelPageSize: any; | ||
viewportRowModelBufferSize: any; | ||
layoutInterval: any; | ||
autoSizePadding: any; | ||
maxPagesInCache: any; | ||
maxConcurrentDatasourceRequests: any; | ||
paginationOverflowSize: any; | ||
paginationPageSize: any; | ||
paginationInitialRowCount: any; | ||
headerCellRenderer: any; | ||
localeTextFunc: any; | ||
groupRowInnerRenderer: any; | ||
groupRowRenderer: any; | ||
isScrollLag: any; | ||
isExternalFilterPresent: any; | ||
getRowHeight: any; | ||
doesExternalFilterPass: any; | ||
getRowClass: any; | ||
getRowStyle: any; | ||
getHeaderCellTemplate: any; | ||
traverseNode: any; | ||
getContextMenuItems: any; | ||
getMainMenuItems: any; | ||
processRowPostCreate: any; | ||
processCellForClipboard: any; | ||
getNodeChildDetails: any; | ||
groupRowAggNodes: any; | ||
getRowNodeId: any; | ||
isFullWidthCell: any; | ||
fullWidthCellRenderer: any; | ||
doesDataFlower: any; | ||
toolPanelSuppressRowGroups: any; | ||
toolPanelSuppressValues: any; | ||
toolPanelSuppressPivots: any; | ||
toolPanelSuppressPivotMode: any; | ||
suppressRowClickSelection: any; | ||
suppressCellSelection: any; | ||
suppressHorizontalScroll: any; | ||
debug: any; | ||
enableColResize: any; | ||
enableCellExpressions: any; | ||
enableSorting: any; | ||
enableServerSideSorting: any; | ||
enableFilter: any; | ||
enableServerSideFilter: any; | ||
angularCompileRows: any; | ||
angularCompileFilters: any; | ||
angularCompileHeaders: any; | ||
groupSuppressAutoColumn: any; | ||
groupSelectsChildren: any; | ||
groupIncludeFooter: any; | ||
groupUseEntireRow: any; | ||
groupSuppressRow: any; | ||
groupSuppressBlankHeader: any; | ||
forPrint: any; | ||
suppressMenuHide: any; | ||
rowDeselection: any; | ||
unSortIcon: any; | ||
suppressMultiSort: any; | ||
suppressScrollLag: any; | ||
singleClickEdit: any; | ||
suppressLoadingOverlay: any; | ||
suppressNoRowsOverlay: any; | ||
suppressAutoSize: any; | ||
suppressParentsInRowNodes: any; | ||
showToolPanel: any; | ||
suppressColumnMoveAnimation: any; | ||
suppressMovableColumns: any; | ||
suppressFieldDotNotation: any; | ||
enableRangeSelection: any; | ||
suppressEnterprise: any; | ||
rowGroupPanelShow: any; | ||
pivotPanelShow: any; | ||
suppressContextMenu: any; | ||
suppressMenuFilterPanel: any; | ||
suppressMenuMainPanel: any; | ||
suppressMenuColumnPanel: any; | ||
enableStatusBar: any; | ||
rememberGroupStateWhenNewData: any; | ||
enableCellChangeFlash: any; | ||
suppressDragLeaveHidesColumns: any; | ||
suppressMiddleClickScrolls: any; | ||
suppressPreventDefaultOnMouseWheel: any; | ||
suppressUseColIdForGroups: any; | ||
suppressCopyRowsToClipboard: any; | ||
pivotMode: any; | ||
suppressAggFuncInHeader: any; | ||
suppressColumnVirtualisation: any; | ||
suppressFocusAfterRefresh: any; | ||
functionsPassive: any; | ||
functionsReadOnly: any; | ||
/** | ||
* Outputs - example: grid-ready.call="yourViewModelFunction()" | ||
*/ | ||
gridReady: () => any; | ||
columnEverythingChanged: () => any; | ||
newColumnsLoaded: () => any; | ||
columnPivotModeChanged: () => any; | ||
columnRowGroupChanged: () => any; | ||
columnPivotChanged: () => any; | ||
gridColumnsChanged: () => any; | ||
columnValueChanged: () => any; | ||
columnMoved: () => any; | ||
columnVisible: () => any; | ||
columnPinned: () => any; | ||
columnGroupOpened: () => any; | ||
columnResized: () => any; | ||
displayedColumnsChanged: () => any; | ||
virtualColumnsChanged: () => any; | ||
rowGroupOpened: () => any; | ||
rowDataChanged: () => any; | ||
floatingRowDataChanged: () => any; | ||
rangeSelectionChanged: () => any; | ||
columnRowGroupAddRequest: () => any; | ||
columnRowGroupRemoveRequest: () => any; | ||
columnPivotAddRequest: () => any; | ||
columnPivotRemoveRequest: () => any; | ||
columnValueAddRequest: () => any; | ||
columnValueRemoveRequest: () => any; | ||
columnAggFuncChangeRequest: () => any; | ||
clipboardPaste: () => any; | ||
modelUpdated: () => any; | ||
cellClicked: () => any; | ||
cellDoubleClicked: () => any; | ||
cellContextMenu: () => any; | ||
cellValueChanged: () => any; | ||
cellFocused: () => any; | ||
rowSelected: () => any; | ||
selectionChanged: () => any; | ||
beforeFilterChanged: () => any; | ||
filterChanged: () => any; | ||
afterFilterChanged: () => any; | ||
filterModified: () => any; | ||
beforeSortChanged: () => any; | ||
sortChanged: () => any; | ||
afterSortChanged: () => any; | ||
virtualRowRemoved: () => any; | ||
rowClicked: () => any; | ||
rowDoubleClicked: () => any; | ||
gridSizeChanged: () => any; | ||
viewportChanged: () => any; | ||
dragStarted: () => any; | ||
dragStopped: () => any; | ||
itemsAdded: () => any; | ||
itemsRemoved: () => any; | ||
} |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
"use strict"; | ||
@@ -15,2 +15,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var aureliaFrameworkFactory_1 = require("./aureliaFrameworkFactory"); | ||
var agUtils_1 = require("./agUtils"); | ||
var AgGridAurelia = (function () { | ||
@@ -95,706 +96,28 @@ function AgGridAurelia(element, taskQueue, auFrameworkFactory, container, viewResources) { | ||
}; | ||
__decorate([ | ||
aurelia_framework_1.children('ag-grid-column'), | ||
__metadata('design:type', Array) | ||
], AgGridAurelia.prototype, "columns", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "gridOptions", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "slaveGrids", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "rowData", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "floatingTopRowData", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "floatingBottomRowData", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "columnDefs", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "rowStyle", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "context", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupColumnDef", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "localeText", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "icons", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "datasource", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "viewportDatasource", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupRowRendererParams", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "aggFuncs", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "fullWidthCellRendererParams", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "sortingOrder", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "rowClass", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "rowSelection", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "overlayLoadingTemplate", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "overlayNoRowsTemplate", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "headerCellTemplate", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "quickFilterText", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "rowModelType", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "rowHeight", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "rowBuffer", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "colWidth", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "headerHeight", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupDefaultExpanded", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "minColWidth", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "maxColWidth", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "viewportRowModelPageSize", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "viewportRowModelBufferSize", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "layoutInterval", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "autoSizePadding", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "maxPagesInCache", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "maxConcurrentDatasourceRequests", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "paginationOverflowSize", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "paginationPageSize", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "paginationInitialRowCount", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "headerCellRenderer", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "localeTextFunc", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupRowInnerRenderer", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupRowRenderer", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "isScrollLag", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "isExternalFilterPresent", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "getRowHeight", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "doesExternalFilterPass", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "getRowClass", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "getRowStyle", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "getHeaderCellTemplate", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "traverseNode", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "getContextMenuItems", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "getMainMenuItems", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "processRowPostCreate", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "processCellForClipboard", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "getNodeChildDetails", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupRowAggNodes", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "getRowNodeId", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "isFullWidthCell", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "fullWidthCellRenderer", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "doesDataFlower", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "toolPanelSuppressRowGroups", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "toolPanelSuppressValues", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "toolPanelSuppressPivots", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "toolPanelSuppressPivotMode", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressRowClickSelection", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressCellSelection", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressHorizontalScroll", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "debug", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "enableColResize", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "enableCellExpressions", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "enableSorting", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "enableServerSideSorting", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "enableFilter", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "enableServerSideFilter", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "angularCompileRows", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "angularCompileFilters", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "angularCompileHeaders", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupSuppressAutoColumn", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupSelectsChildren", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupIncludeFooter", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupUseEntireRow", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupSuppressRow", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "groupSuppressBlankHeader", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "forPrint", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressMenuHide", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "rowDeselection", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "unSortIcon", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressMultiSort", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressScrollLag", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "singleClickEdit", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressLoadingOverlay", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressNoRowsOverlay", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressAutoSize", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressParentsInRowNodes", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "showToolPanel", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressColumnMoveAnimation", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressMovableColumns", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressFieldDotNotation", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "enableRangeSelection", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressEnterprise", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "rowGroupPanelShow", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "pivotPanelShow", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressContextMenu", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressMenuFilterPanel", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressMenuMainPanel", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressMenuColumnPanel", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "enableStatusBar", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "rememberGroupStateWhenNewData", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "enableCellChangeFlash", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressDragLeaveHidesColumns", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressMiddleClickScrolls", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressPreventDefaultOnMouseWheel", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressUseColIdForGroups", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressCopyRowsToClipboard", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "pivotMode", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressAggFuncInHeader", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressColumnVirtualisation", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "suppressFocusAfterRefresh", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "functionsPassive", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridAurelia.prototype, "functionsReadOnly", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "gridReady", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnEverythingChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "newColumnsLoaded", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnPivotModeChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnRowGroupChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnPivotChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "gridColumnsChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnValueChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnMoved", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnVisible", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnPinned", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnGroupOpened", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnResized", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "displayedColumnsChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "virtualColumnsChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "rowGroupOpened", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "rowDataChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "floatingRowDataChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "rangeSelectionChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnRowGroupAddRequest", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnRowGroupRemoveRequest", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnPivotAddRequest", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnPivotRemoveRequest", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnValueAddRequest", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnValueRemoveRequest", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "columnAggFuncChangeRequest", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "clipboardPaste", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "modelUpdated", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "cellClicked", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "cellDoubleClicked", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "cellContextMenu", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "cellValueChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "cellFocused", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "rowSelected", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "selectionChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "beforeFilterChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "filterChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "afterFilterChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "filterModified", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "beforeSortChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "sortChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "afterSortChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "virtualRowRemoved", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "rowClicked", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "rowDoubleClicked", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "gridSizeChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "viewportChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "dragStarted", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "dragStopped", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "itemsAdded", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridAurelia.prototype, "itemsRemoved", void 0); | ||
AgGridAurelia = __decorate([ | ||
aurelia_framework_1.customElement('ag-grid-aurelia'), | ||
aurelia_framework_1.inlineView("<template><slot></slot></template>"), | ||
aurelia_framework_1.autoinject(), | ||
__metadata('design:paramtypes', [Element, aurelia_framework_1.TaskQueue, aureliaFrameworkFactory_1.AureliaFrameworkFactory, aurelia_framework_1.Container, aurelia_framework_1.ViewResources]) | ||
], AgGridAurelia); | ||
return AgGridAurelia; | ||
}()); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata("design:type", Object) | ||
], AgGridAurelia.prototype, "gridOptions", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata("design:type", Object) | ||
], AgGridAurelia.prototype, "context", void 0); | ||
__decorate([ | ||
aurelia_framework_1.children('ag-grid-column'), | ||
__metadata("design:type", Array) | ||
], AgGridAurelia.prototype, "columns", void 0); | ||
AgGridAurelia = __decorate([ | ||
aurelia_framework_1.customElement('ag-grid-aurelia'), | ||
agUtils_1.generateBindables(main_1.ComponentUtil.ALL_PROPERTIES.filter(function (property) { return property !== 'gridOptions'; })), | ||
agUtils_1.generateBindables(main_1.ComponentUtil.EVENTS), | ||
aurelia_framework_1.inlineView("<template><slot></slot></template>"), | ||
aurelia_framework_1.autoinject(), | ||
__metadata("design:paramtypes", [Element, | ||
aurelia_framework_1.TaskQueue, | ||
aureliaFrameworkFactory_1.AureliaFrameworkFactory, | ||
aurelia_framework_1.Container, | ||
aurelia_framework_1.ViewResources]) | ||
], AgGridAurelia); | ||
exports.AgGridAurelia = AgGridAurelia; |
@@ -1,4 +0,4 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
import { ColDef, SetFilterParameters, TextAndNumberFilterParameters, ICellEditor, ICellRendererFunc, ICellRenderer, IFilter, RowNode, IsColumnFunc, IAggFunc, ColGroupDef } from "ag-grid/main"; | ||
import { AgCellTemplate, AgEditorTemplate, AgFilterTemplate } from './agTemplate'; | ||
// ag-grid-aurelia v7.1.0 | ||
import { ColDef } from "ag-grid/main"; | ||
import { AgCellTemplate, AgEditorTemplate, AgFilterTemplate } from "./agTemplate"; | ||
export declare class AgGridColumn { | ||
@@ -12,83 +12,4 @@ childColumns: AgGridColumn[]; | ||
toColDef(): ColDef; | ||
private getChildColDefs(childColumns); | ||
private static getChildColDefs(childColumns); | ||
private createColDefFromGridColumn(); | ||
colId: string; | ||
sort: string; | ||
sortedAt: number; | ||
sortingOrder: string[]; | ||
field: string; | ||
headerValueGetter: string | Function; | ||
hide: boolean; | ||
pinned: boolean | string; | ||
tooltipField: string; | ||
headerTooltip: string; | ||
valueGetter: string | Function; | ||
keyCreator: Function; | ||
headerCellRenderer: Function | Object; | ||
headerCellTemplate: ((params: any) => string | HTMLElement) | string | HTMLElement; | ||
width: number; | ||
minWidth: number; | ||
maxWidth: number; | ||
cellClass: string | string[] | ((cellClassParams: any) => string | string[]); | ||
cellStyle: {} | ((params: any) => {}); | ||
cellRenderer: { | ||
new (): ICellRenderer; | ||
} | ICellRendererFunc | string; | ||
cellRendererFramework: any; | ||
cellRendererParams: {}; | ||
cellEditor: { | ||
new (): ICellEditor; | ||
} | string; | ||
cellEditorFramework: any; | ||
cellEditorParams: {}; | ||
floatingCellRenderer: { | ||
new (): ICellRenderer; | ||
} | ICellRendererFunc | string; | ||
floatingCellRendererFramework: any; | ||
floatingCellRendererParams: {}; | ||
cellFormatter: (params: any) => string; | ||
floatingCellFormatter: (params: any) => string; | ||
aggFunc: string | IAggFunc; | ||
rowGroupIndex: number; | ||
pivotIndex: number; | ||
comparator: (valueA: any, valueB: any, nodeA: RowNode, nodeB: RowNode, isInverted: boolean) => number; | ||
checkboxSelection: boolean | (Function); | ||
suppressMenu: boolean; | ||
suppressSorting: boolean; | ||
suppressMovable: boolean; | ||
suppressFilter: boolean; | ||
unSortIcon: boolean; | ||
suppressSizeToFit: boolean; | ||
suppressResize: boolean; | ||
suppressAutoSize: boolean; | ||
enableRowGroup: boolean; | ||
enablePivot: boolean; | ||
enableValue: boolean; | ||
editable: boolean | IsColumnFunc; | ||
suppressNavigable: boolean | IsColumnFunc; | ||
newValueHandler: Function; | ||
volatile: boolean; | ||
filter: string | { | ||
new (): IFilter; | ||
}; | ||
filterFramework: any; | ||
filterParams: SetFilterParameters | TextAndNumberFilterParameters; | ||
cellClassRules: { | ||
[cssClassName: string]: (Function | string); | ||
}; | ||
onCellValueChanged: Function; | ||
onCellClicked: Function; | ||
onCellDoubleClicked: Function; | ||
onCellContextMenu: Function; | ||
icons: { | ||
[key: string]: string; | ||
}; | ||
enableCellChangeFlash: boolean; | ||
headerName: string; | ||
columnGroupShow: string; | ||
headerClass: string | string[] | ((params: any) => string | string[]); | ||
children: (ColDef | ColGroupDef)[]; | ||
groupId: string; | ||
openByDefault: boolean; | ||
marryChildren: boolean; | ||
} |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
"use strict"; | ||
@@ -12,5 +12,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
var aurelia_framework_1 = require('aurelia-framework'); | ||
var agTemplate_1 = require('./agTemplate'); | ||
var AgGridColumn = (function () { | ||
var aurelia_framework_1 = require("aurelia-framework"); | ||
var agTemplate_1 = require("./agTemplate"); | ||
var agUtils_1 = require("./agUtils"); | ||
var AgGridColumn = AgGridColumn_1 = (function () { | ||
function AgGridColumn() { | ||
@@ -25,3 +26,3 @@ this.childColumns = []; | ||
if (this.hasChildColumns()) { | ||
colDef["children"] = this.getChildColDefs(this.childColumns); | ||
colDef["children"] = AgGridColumn_1.getChildColDefs(this.childColumns); | ||
} | ||
@@ -43,3 +44,3 @@ if (this.cellTemplate) { | ||
}; | ||
AgGridColumn.prototype.getChildColDefs = function (childColumns) { | ||
AgGridColumn.getChildColDefs = function (childColumns) { | ||
return childColumns | ||
@@ -61,294 +62,36 @@ .filter(function (column) { return !column.hasChildColumns(); }) | ||
; | ||
__decorate([ | ||
aurelia_framework_1.children('ag-grid-column'), | ||
__metadata('design:type', Array) | ||
], AgGridColumn.prototype, "childColumns", void 0); | ||
__decorate([ | ||
aurelia_framework_1.child('ag-cell-template'), | ||
__metadata('design:type', agTemplate_1.AgCellTemplate) | ||
], AgGridColumn.prototype, "cellTemplate", void 0); | ||
__decorate([ | ||
aurelia_framework_1.child('ag-editor-template'), | ||
__metadata('design:type', agTemplate_1.AgEditorTemplate) | ||
], AgGridColumn.prototype, "editorTemplate", void 0); | ||
__decorate([ | ||
aurelia_framework_1.child('ag-filter-template'), | ||
__metadata('design:type', agTemplate_1.AgFilterTemplate) | ||
], AgGridColumn.prototype, "filterTemplate", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', String) | ||
], AgGridColumn.prototype, "colId", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', String) | ||
], AgGridColumn.prototype, "sort", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Number) | ||
], AgGridColumn.prototype, "sortedAt", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Array) | ||
], AgGridColumn.prototype, "sortingOrder", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', String) | ||
], AgGridColumn.prototype, "field", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "headerValueGetter", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "hide", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "pinned", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', String) | ||
], AgGridColumn.prototype, "tooltipField", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', String) | ||
], AgGridColumn.prototype, "headerTooltip", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "valueGetter", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridColumn.prototype, "keyCreator", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "headerCellRenderer", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "headerCellTemplate", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Number) | ||
], AgGridColumn.prototype, "width", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Number) | ||
], AgGridColumn.prototype, "minWidth", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Number) | ||
], AgGridColumn.prototype, "maxWidth", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "cellClass", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "cellStyle", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "cellRenderer", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "cellRendererFramework", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "cellRendererParams", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "cellEditor", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "cellEditorFramework", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "cellEditorParams", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "floatingCellRenderer", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "floatingCellRendererFramework", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "floatingCellRendererParams", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridColumn.prototype, "cellFormatter", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridColumn.prototype, "floatingCellFormatter", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "aggFunc", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Number) | ||
], AgGridColumn.prototype, "rowGroupIndex", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Number) | ||
], AgGridColumn.prototype, "pivotIndex", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridColumn.prototype, "comparator", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "checkboxSelection", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "suppressMenu", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "suppressSorting", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "suppressMovable", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "suppressFilter", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "unSortIcon", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "suppressSizeToFit", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "suppressResize", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "suppressAutoSize", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "enableRowGroup", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "enablePivot", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "enableValue", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "editable", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "suppressNavigable", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridColumn.prototype, "newValueHandler", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "volatile", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "filter", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "filterFramework", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "filterParams", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "cellClassRules", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridColumn.prototype, "onCellValueChanged", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridColumn.prototype, "onCellClicked", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridColumn.prototype, "onCellDoubleClicked", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Function) | ||
], AgGridColumn.prototype, "onCellContextMenu", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "icons", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "enableCellChangeFlash", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', String) | ||
], AgGridColumn.prototype, "headerName", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', String) | ||
], AgGridColumn.prototype, "columnGroupShow", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Object) | ||
], AgGridColumn.prototype, "headerClass", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Array) | ||
], AgGridColumn.prototype, "children", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', String) | ||
], AgGridColumn.prototype, "groupId", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "openByDefault", void 0); | ||
__decorate([ | ||
aurelia_framework_1.bindable(), | ||
__metadata('design:type', Boolean) | ||
], AgGridColumn.prototype, "marryChildren", void 0); | ||
AgGridColumn = __decorate([ | ||
aurelia_framework_1.customElement('ag-grid-column'), | ||
aurelia_framework_1.inlineView("<template><slot></slot></template>"), | ||
aurelia_framework_1.autoinject(), | ||
__metadata('design:paramtypes', []) | ||
], AgGridColumn); | ||
return AgGridColumn; | ||
}()); | ||
__decorate([ | ||
aurelia_framework_1.children('ag-grid-column'), | ||
__metadata("design:type", Array) | ||
], AgGridColumn.prototype, "childColumns", void 0); | ||
__decorate([ | ||
aurelia_framework_1.child('ag-cell-template'), | ||
__metadata("design:type", agTemplate_1.AgCellTemplate) | ||
], AgGridColumn.prototype, "cellTemplate", void 0); | ||
__decorate([ | ||
aurelia_framework_1.child('ag-editor-template'), | ||
__metadata("design:type", agTemplate_1.AgEditorTemplate) | ||
], AgGridColumn.prototype, "editorTemplate", void 0); | ||
__decorate([ | ||
aurelia_framework_1.child('ag-filter-template'), | ||
__metadata("design:type", agTemplate_1.AgFilterTemplate) | ||
], AgGridColumn.prototype, "filterTemplate", void 0); | ||
AgGridColumn = AgGridColumn_1 = __decorate([ | ||
aurelia_framework_1.customElement('ag-grid-column'), | ||
agUtils_1.generateBindables(['colId', 'sort', 'sortedAt', 'sortingOrder', 'field', 'headerValueGetter', 'hide', 'pinned', 'tooltipField', 'headerTooltip', | ||
'valueGetter', 'keyCreator', 'headerCellRenderer', 'headerCellTemplate', 'width', 'minWidth', 'maxWidth', 'cellClass', | ||
'cellStyle', 'cellRenderer', 'cellRendererFramework', 'cellRendererParams', 'cellEditor', 'cellEditorFramework', 'cellEditorParams', | ||
'floatingCellRenderer', 'floatingCellRendererFramework', 'floatingCellRendererParams', 'cellFormatter(', 'floatingCellFormatter', | ||
'aggFunc', 'rowGroupIndex', 'pivotIndex', 'comparator', 'checkboxSelection', 'suppressMenu', 'suppressSorting', 'suppressMovable', | ||
'suppressFilter', 'unSortIcon', 'suppressSizeToFit', 'suppressResize', 'suppressAutoSize', 'enableRowGroup', 'enablePivot', | ||
'enableValue', 'editable', 'suppressNavigable', 'newValueHandler', 'volatile', 'filter', 'filterFramework', 'filterParams', 'cellClassRules', | ||
'onCellValueChanged', 'onCellClicked', 'onCellDoubleClicked', 'onCellContextMenu', 'icons', 'enableCellChangeFlash', 'headerName', | ||
'columnGroupShow', 'headerClass', 'children', 'groupId', 'openByDefault', 'marryChildren']), | ||
aurelia_framework_1.inlineView("<template><slot></slot></template>"), | ||
aurelia_framework_1.autoinject(), | ||
__metadata("design:paramtypes", []) | ||
], AgGridColumn); | ||
exports.AgGridColumn = AgGridColumn; | ||
var AgGridColumn_1; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
import { TargetInstruction } from "aurelia-framework"; | ||
@@ -3,0 +3,0 @@ export declare class AgCellTemplate { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
"use strict"; | ||
@@ -36,11 +36,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
} | ||
AgCellTemplate = __decorate([ | ||
aurelia_framework_1.customElement('ag-cell-template'), | ||
aurelia_framework_1.noView(), | ||
aurelia_framework_1.autoinject(), | ||
aurelia_framework_1.processContent(parseElement), | ||
__metadata('design:paramtypes', [aurelia_framework_1.TargetInstruction]) | ||
], AgCellTemplate); | ||
return AgCellTemplate; | ||
}()); | ||
AgCellTemplate = __decorate([ | ||
aurelia_framework_1.customElement('ag-cell-template'), | ||
aurelia_framework_1.noView(), | ||
aurelia_framework_1.autoinject(), | ||
aurelia_framework_1.processContent(parseElement), | ||
__metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction]) | ||
], AgCellTemplate); | ||
exports.AgCellTemplate = AgCellTemplate; | ||
@@ -51,11 +51,11 @@ var AgEditorTemplate = (function () { | ||
} | ||
AgEditorTemplate = __decorate([ | ||
aurelia_framework_1.customElement('ag-editor-template'), | ||
aurelia_framework_1.noView(), | ||
aurelia_framework_1.autoinject(), | ||
aurelia_framework_1.processContent(parseElement), | ||
__metadata('design:paramtypes', [aurelia_framework_1.TargetInstruction]) | ||
], AgEditorTemplate); | ||
return AgEditorTemplate; | ||
}()); | ||
AgEditorTemplate = __decorate([ | ||
aurelia_framework_1.customElement('ag-editor-template'), | ||
aurelia_framework_1.noView(), | ||
aurelia_framework_1.autoinject(), | ||
aurelia_framework_1.processContent(parseElement), | ||
__metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction]) | ||
], AgEditorTemplate); | ||
exports.AgEditorTemplate = AgEditorTemplate; | ||
@@ -66,11 +66,11 @@ var AgFilterTemplate = (function () { | ||
} | ||
AgFilterTemplate = __decorate([ | ||
aurelia_framework_1.customElement('ag-filter-template'), | ||
aurelia_framework_1.noView(), | ||
aurelia_framework_1.autoinject(), | ||
aurelia_framework_1.processContent(parseElement), | ||
__metadata('design:paramtypes', [aurelia_framework_1.TargetInstruction]) | ||
], AgFilterTemplate); | ||
return AgFilterTemplate; | ||
}()); | ||
AgFilterTemplate = __decorate([ | ||
aurelia_framework_1.customElement('ag-filter-template'), | ||
aurelia_framework_1.noView(), | ||
aurelia_framework_1.autoinject(), | ||
aurelia_framework_1.processContent(parseElement), | ||
__metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction]) | ||
], AgFilterTemplate); | ||
exports.AgFilterTemplate = AgFilterTemplate; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
import { ICellRenderer } from 'ag-grid/main'; | ||
@@ -3,0 +3,0 @@ export declare class AureliaCellRendererComponent implements ICellRenderer { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var AureliaCellRendererComponent = (function () { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
import { Container, ViewFactory } from "aurelia-framework"; | ||
@@ -3,0 +3,0 @@ import { ICellRenderer, ICellEditor } from "ag-grid/main"; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
"use strict"; | ||
@@ -98,9 +98,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
AureliaComponentFactory = __decorate([ | ||
aurelia_framework_1.autoinject(), | ||
aurelia_framework_1.transient(), | ||
__metadata('design:paramtypes', []) | ||
], AureliaComponentFactory); | ||
return AureliaComponentFactory; | ||
}()); | ||
AureliaComponentFactory = __decorate([ | ||
aurelia_framework_1.autoinject(), | ||
aurelia_framework_1.transient(), | ||
__metadata("design:paramtypes", []) | ||
], AureliaComponentFactory); | ||
exports.AureliaComponentFactory = AureliaComponentFactory; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
import { Container, ViewResources, ViewCompiler } from "aurelia-framework"; | ||
@@ -35,3 +35,3 @@ import { ICellRenderer, ICellEditor, IFrameworkFactory, IFilter, ICellRendererFunc, ColDef, GridOptions } from "ag-grid/main"; | ||
setViewResources(viewResources: ViewResources): void; | ||
setTimeout(handler: any, timeout?: any): number; | ||
setTimeout(action: any, timeout?: any): void; | ||
} |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
"use strict"; | ||
@@ -65,12 +65,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
AureliaFrameworkFactory.prototype.setTimeout = function (handler, timeout) { | ||
return this._baseFrameworkFactory.setTimeout(handler, timeout); | ||
AureliaFrameworkFactory.prototype.setTimeout = function (action, timeout) { | ||
this._baseFrameworkFactory.setTimeout(action, timeout); | ||
}; | ||
AureliaFrameworkFactory = __decorate([ | ||
aurelia_framework_1.autoinject(), | ||
aurelia_framework_1.transient(), | ||
__metadata('design:paramtypes', [aureliaComponentFactory_1.AureliaComponentFactory, aurelia_framework_1.ViewCompiler]) | ||
], AureliaFrameworkFactory); | ||
return AureliaFrameworkFactory; | ||
}()); | ||
AureliaFrameworkFactory = __decorate([ | ||
aurelia_framework_1.autoinject(), | ||
aurelia_framework_1.transient(), | ||
__metadata("design:paramtypes", [aureliaComponentFactory_1.AureliaComponentFactory, aurelia_framework_1.ViewCompiler]) | ||
], AureliaFrameworkFactory); | ||
exports.AureliaFrameworkFactory = AureliaFrameworkFactory; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
/** | ||
@@ -3,0 +3,0 @@ * Implements all the methods of ICellEditor except for Init |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v7.0.0 | ||
// ag-grid-aurelia v7.1.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ /** |
{ | ||
"name": "ag-grid-aurelia", | ||
"version": "7.0.0", | ||
"version": "7.1.0", | ||
"description": "ag-Grid Aurelia Component", | ||
@@ -39,3 +39,3 @@ "main": "./main.js", | ||
"aurelia-framework": "^1.0.0", | ||
"ag-grid": "7.0.x" | ||
"ag-grid": "7.1.x" | ||
}, | ||
@@ -42,0 +42,0 @@ "dependencies": { |
@@ -1,2 +0,2 @@ | ||
ag-Grid Aurelia Component ALPHA RELEASE!!! | ||
ag-Grid Aurelia Component | ||
============== | ||
@@ -9,3 +9,5 @@ | ||
in your main entry. | ||
Please refer to www.ag-grid.com for full documentation on ag-Grid and Aurelia integration. Also take a look a the provided examples at https://github.com/ceolter/ag-grid-aurelia-example. | ||
In your main entry. | ||
``` | ||
@@ -27,5 +29,2 @@ aurelia.use | ||
this.gridOptions.rowData = [{id: 1, name: 'Shane'}, {id: 2, name: 'Sean'}]; | ||
//so we can reference the viewModel in the templates | ||
this.gridOptions.context = {vm:this}; | ||
} | ||
@@ -45,4 +44,2 @@ | ||
``` | ||
In your view template. Here we are adding columns using markup. ColumnDefs can be added from your view model if you wish. | ||
@@ -58,3 +55,3 @@ ``` | ||
<ag-cell-template> | ||
<button md-button class="btn accent" click.delegate="params.context.vm.onIdClicked(params.data)">${params.value}</button> | ||
<button md-button class="btn accent" click.delegate="params.context.onIdClicked(params.data)">${params.value}</button> | ||
</ag-cell-template> | ||
@@ -72,4 +69,2 @@ </ag-grid-column> | ||
Building | ||
@@ -76,0 +71,0 @@ ============== |
@@ -16,2 +16,3 @@ import { | ||
import {AgGridColumn} from "./agGridColumn"; | ||
import {generateBindables} from "./agUtils"; | ||
@@ -23,2 +24,4 @@ interface IPropertyChanges { | ||
@customElement('ag-grid-aurelia') | ||
@generateBindables(ComponentUtil.ALL_PROPERTIES.filter((property) => property !== 'gridOptions')) | ||
@generateBindables(ComponentUtil.EVENTS) | ||
// <slot> is required for @children to work. https://github.com/aurelia/templating/issues/451#issuecomment-254206622 | ||
@@ -34,2 +37,5 @@ @inlineView(`<template><slot></slot></template>`) | ||
@bindable() public gridOptions: GridOptions; | ||
@bindable() public context: any; | ||
private gridParams: GridParams; | ||
@@ -98,3 +104,3 @@ | ||
//emulate an Angular2 SimpleChanges Object | ||
var changes: IPropertyChanges = {}; | ||
let changes: IPropertyChanges = {}; | ||
changes[propertyName] = <any>{currentValue: newValue, previousValue: oldValue}; | ||
@@ -122,3 +128,3 @@ | ||
// generically look up the eventType | ||
var emitter = (<any>this)[eventType]; | ||
let emitter = (<any>this)[eventType]; | ||
if (emitter) { | ||
@@ -130,183 +136,2 @@ emitter(event); | ||
} | ||
/** | ||
* inputs example: grid-options.bind="yourViewModelProperty" | ||
*/ | ||
@bindable() public gridOptions: GridOptions; | ||
@bindable() public slaveGrids: any; | ||
@bindable() public rowData: any; | ||
@bindable() public floatingTopRowData: any; | ||
@bindable() public floatingBottomRowData: any; | ||
@bindable() public columnDefs: any; | ||
@bindable() public rowStyle: any; | ||
@bindable() public context: any; | ||
@bindable() public groupColumnDef: any; | ||
@bindable() public localeText: any; | ||
@bindable() public icons: any; | ||
@bindable() public datasource: any; | ||
@bindable() public viewportDatasource: any; | ||
@bindable() public groupRowRendererParams: any; | ||
@bindable() public aggFuncs: any; | ||
@bindable() public fullWidthCellRendererParams: any; | ||
@bindable() public sortingOrder: any; | ||
@bindable() public rowClass: any; | ||
@bindable() public rowSelection: any; | ||
@bindable() public overlayLoadingTemplate: any; | ||
@bindable() public overlayNoRowsTemplate: any; | ||
@bindable() public headerCellTemplate: any; | ||
@bindable() public quickFilterText: any; | ||
@bindable() public rowModelType: any; | ||
@bindable() public rowHeight: any; | ||
@bindable() public rowBuffer: any; | ||
@bindable() public colWidth: any; | ||
@bindable() public headerHeight: any; | ||
@bindable() public groupDefaultExpanded: any; | ||
@bindable() public minColWidth: any; | ||
@bindable() public maxColWidth: any; | ||
@bindable() public viewportRowModelPageSize: any; | ||
@bindable() public viewportRowModelBufferSize: any; | ||
@bindable() public layoutInterval: any; | ||
@bindable() public autoSizePadding: any; | ||
@bindable() public maxPagesInCache: any; | ||
@bindable() public maxConcurrentDatasourceRequests: any; | ||
@bindable() public paginationOverflowSize: any; | ||
@bindable() public paginationPageSize: any; | ||
@bindable() public paginationInitialRowCount: any; | ||
@bindable() public headerCellRenderer: any; | ||
@bindable() public localeTextFunc: any; | ||
@bindable() public groupRowInnerRenderer: any; | ||
@bindable() public groupRowRenderer: any; | ||
@bindable() public isScrollLag: any; | ||
@bindable() public isExternalFilterPresent: any; | ||
@bindable() public getRowHeight: any; | ||
@bindable() public doesExternalFilterPass: any; | ||
@bindable() public getRowClass: any; | ||
@bindable() public getRowStyle: any; | ||
@bindable() public getHeaderCellTemplate: any; | ||
@bindable() public traverseNode: any; | ||
@bindable() public getContextMenuItems: any; | ||
@bindable() public getMainMenuItems: any; | ||
@bindable() public processRowPostCreate: any; | ||
@bindable() public processCellForClipboard: any; | ||
@bindable() public getNodeChildDetails: any; | ||
@bindable() public groupRowAggNodes: any; | ||
@bindable() public getRowNodeId: any; | ||
@bindable() public isFullWidthCell: any; | ||
@bindable() public fullWidthCellRenderer: any; | ||
@bindable() public doesDataFlower: any; | ||
@bindable() public toolPanelSuppressRowGroups: any; | ||
@bindable() public toolPanelSuppressValues: any; | ||
@bindable() public toolPanelSuppressPivots: any; | ||
@bindable() public toolPanelSuppressPivotMode: any; | ||
@bindable() public suppressRowClickSelection: any; | ||
@bindable() public suppressCellSelection: any; | ||
@bindable() public suppressHorizontalScroll: any; | ||
@bindable() public debug: any; | ||
@bindable() public enableColResize: any; | ||
@bindable() public enableCellExpressions: any; | ||
@bindable() public enableSorting: any; | ||
@bindable() public enableServerSideSorting: any; | ||
@bindable() public enableFilter: any; | ||
@bindable() public enableServerSideFilter: any; | ||
@bindable() public angularCompileRows: any; | ||
@bindable() public angularCompileFilters: any; | ||
@bindable() public angularCompileHeaders: any; | ||
@bindable() public groupSuppressAutoColumn: any; | ||
@bindable() public groupSelectsChildren: any; | ||
@bindable() public groupIncludeFooter: any; | ||
@bindable() public groupUseEntireRow: any; | ||
@bindable() public groupSuppressRow: any; | ||
@bindable() public groupSuppressBlankHeader: any; | ||
@bindable() public forPrint: any; | ||
@bindable() public suppressMenuHide: any; | ||
@bindable() public rowDeselection: any; | ||
@bindable() public unSortIcon: any; | ||
@bindable() public suppressMultiSort: any; | ||
@bindable() public suppressScrollLag: any; | ||
@bindable() public singleClickEdit: any; | ||
@bindable() public suppressLoadingOverlay: any; | ||
@bindable() public suppressNoRowsOverlay: any; | ||
@bindable() public suppressAutoSize: any; | ||
@bindable() public suppressParentsInRowNodes: any; | ||
@bindable() public showToolPanel: any; | ||
@bindable() public suppressColumnMoveAnimation: any; | ||
@bindable() public suppressMovableColumns: any; | ||
@bindable() public suppressFieldDotNotation: any; | ||
@bindable() public enableRangeSelection: any; | ||
@bindable() public suppressEnterprise: any; | ||
@bindable() public rowGroupPanelShow: any; | ||
@bindable() public pivotPanelShow: any; | ||
@bindable() public suppressContextMenu: any; | ||
@bindable() public suppressMenuFilterPanel: any; | ||
@bindable() public suppressMenuMainPanel: any; | ||
@bindable() public suppressMenuColumnPanel: any; | ||
@bindable() public enableStatusBar: any; | ||
@bindable() public rememberGroupStateWhenNewData: any; | ||
@bindable() public enableCellChangeFlash: any; | ||
@bindable() public suppressDragLeaveHidesColumns: any; | ||
@bindable() public suppressMiddleClickScrolls: any; | ||
@bindable() public suppressPreventDefaultOnMouseWheel: any; | ||
@bindable() public suppressUseColIdForGroups: any; | ||
@bindable() public suppressCopyRowsToClipboard: any; | ||
@bindable() public pivotMode: any; | ||
@bindable() public suppressAggFuncInHeader: any; | ||
@bindable() public suppressColumnVirtualisation: any; | ||
@bindable() public suppressFocusAfterRefresh: any; | ||
@bindable() public functionsPassive: any; | ||
@bindable() public functionsReadOnly: any; | ||
/** | ||
* Outputs - example: grid-ready.call="yourViewModelFunction()" | ||
*/ | ||
@bindable() public gridReady: () => any; | ||
@bindable() public columnEverythingChanged: () => any; | ||
@bindable() public newColumnsLoaded: () => any; | ||
@bindable() public columnPivotModeChanged: () => any; | ||
@bindable() public columnRowGroupChanged: () => any; | ||
@bindable() public columnPivotChanged: () => any; | ||
@bindable() public gridColumnsChanged: () => any; | ||
@bindable() public columnValueChanged: () => any; | ||
@bindable() public columnMoved: () => any; | ||
@bindable() public columnVisible: () => any; | ||
@bindable() public columnPinned: () => any; | ||
@bindable() public columnGroupOpened: () => any; | ||
@bindable() public columnResized: () => any; | ||
@bindable() public displayedColumnsChanged: () => any; | ||
@bindable() public virtualColumnsChanged: () => any; | ||
@bindable() public rowGroupOpened: () => any; | ||
@bindable() public rowDataChanged: () => any; | ||
@bindable() public floatingRowDataChanged: () => any; | ||
@bindable() public rangeSelectionChanged: () => any; | ||
@bindable() public columnRowGroupAddRequest: () => any; | ||
@bindable() public columnRowGroupRemoveRequest: () => any; | ||
@bindable() public columnPivotAddRequest: () => any; | ||
@bindable() public columnPivotRemoveRequest: () => any; | ||
@bindable() public columnValueAddRequest: () => any; | ||
@bindable() public columnValueRemoveRequest: () => any; | ||
@bindable() public columnAggFuncChangeRequest: () => any; | ||
@bindable() public clipboardPaste: () => any; | ||
@bindable() public modelUpdated: () => any; | ||
@bindable() public cellClicked: () => any; | ||
@bindable() public cellDoubleClicked: () => any; | ||
@bindable() public cellContextMenu: () => any; | ||
@bindable() public cellValueChanged: () => any; | ||
@bindable() public cellFocused: () => any; | ||
@bindable() public rowSelected: () => any; | ||
@bindable() public selectionChanged: () => any; | ||
@bindable() public beforeFilterChanged: () => any; | ||
@bindable() public filterChanged: () => any; | ||
@bindable() public afterFilterChanged: () => any; | ||
@bindable() public filterModified: () => any; | ||
@bindable() public beforeSortChanged: () => any; | ||
@bindable() public sortChanged: () => any; | ||
@bindable() public afterSortChanged: () => any; | ||
@bindable() public virtualRowRemoved: () => any; | ||
@bindable() public rowClicked: () => any; | ||
@bindable() public rowDoubleClicked: () => any; | ||
@bindable() public gridSizeChanged: () => any; | ||
@bindable() public viewportChanged: () => any; | ||
@bindable() public dragStarted: () => any; | ||
@bindable() public dragStopped: () => any; | ||
@bindable() public itemsAdded: () => any; | ||
@bindable() public itemsRemoved: () => any; | ||
} |
@@ -1,23 +0,16 @@ | ||
import {bindable, | ||
autoinject, | ||
inlineView, | ||
customElement, | ||
children, | ||
child} from 'aurelia-framework'; | ||
import {ColDef, | ||
SetFilterParameters, | ||
TextAndNumberFilterParameters, | ||
ICellEditor, | ||
ICellRendererFunc, | ||
ICellRenderer, | ||
IFilter, | ||
RowNode, | ||
IsColumnFunc, | ||
IAggFunc, | ||
ColGroupDef | ||
} from "ag-grid/main"; | ||
import {autoinject, inlineView, customElement, children, child} from "aurelia-framework"; | ||
import {ColDef} from "ag-grid/main"; | ||
import {AgCellTemplate, AgEditorTemplate, AgFilterTemplate} from "./agTemplate"; | ||
import {generateBindables} from "./agUtils"; | ||
import {AgCellTemplate, AgEditorTemplate, AgFilterTemplate} from './agTemplate'; | ||
@customElement('ag-grid-column') | ||
@generateBindables(['colId','sort','sortedAt','sortingOrder','field','headerValueGetter','hide','pinned','tooltipField','headerTooltip', | ||
'valueGetter','keyCreator','headerCellRenderer','headerCellTemplate','width','minWidth','maxWidth','cellClass', | ||
'cellStyle','cellRenderer','cellRendererFramework','cellRendererParams','cellEditor','cellEditorFramework','cellEditorParams', | ||
'floatingCellRenderer','floatingCellRendererFramework','floatingCellRendererParams','cellFormatter(','floatingCellFormatter', | ||
'aggFunc','rowGroupIndex','pivotIndex','comparator','checkboxSelection','suppressMenu','suppressSorting','suppressMovable', | ||
'suppressFilter','unSortIcon','suppressSizeToFit','suppressResize','suppressAutoSize','enableRowGroup','enablePivot', | ||
'enableValue','editable','suppressNavigable','newValueHandler','volatile','filter','filterFramework','filterParams','cellClassRules', | ||
'onCellValueChanged','onCellClicked','onCellDoubleClicked','onCellContextMenu','icons','enableCellChangeFlash','headerName', | ||
'columnGroupShow','headerClass','children','groupId','openByDefault','marryChildren']) | ||
// <slot> is required for @children to work. https://github.com/aurelia/templating/issues/451#issuecomment-254206622 | ||
@@ -50,3 +43,3 @@ @inlineView(`<template><slot></slot></template>`) | ||
if (this.hasChildColumns()) { | ||
(<any>colDef)["children"] = this.getChildColDefs(this.childColumns); | ||
(<any>colDef)["children"] = AgGridColumn.getChildColDefs(this.childColumns); | ||
} | ||
@@ -73,3 +66,3 @@ | ||
private getChildColDefs(childColumns:AgGridColumn[]) { | ||
private static getChildColDefs(childColumns:AgGridColumn[]) { | ||
return childColumns | ||
@@ -84,3 +77,3 @@ .filter(column => !column.hasChildColumns()) | ||
let colDef:ColDef = {}; | ||
for (var prop in this) { | ||
for (let prop in this) { | ||
(<any>colDef)[prop] = (<any>this)[prop]; | ||
@@ -91,84 +84,2 @@ } | ||
}; | ||
// inputs - pretty much most of ColDef, with the exception of template, templateUrl and internal only properties | ||
@bindable() public colId:string; | ||
@bindable() public sort:string; | ||
@bindable() public sortedAt:number; | ||
@bindable() public sortingOrder:string[]; | ||
@bindable() public field:string; | ||
@bindable() public headerValueGetter:string | Function; | ||
@bindable() public hide:boolean; | ||
@bindable() public pinned:boolean | string; | ||
@bindable() public tooltipField:string; | ||
@bindable() public headerTooltip:string; | ||
@bindable() public valueGetter:string | Function; | ||
@bindable() public keyCreator:Function; | ||
@bindable() public headerCellRenderer:Function | Object; | ||
@bindable() public headerCellTemplate:((params:any) => string | HTMLElement) | string | HTMLElement; | ||
@bindable() public width:number; | ||
@bindable() public minWidth:number; | ||
@bindable() public maxWidth:number; | ||
@bindable() public cellClass:string | string[] | ((cellClassParams:any) => string | string[]); | ||
@bindable() public cellStyle:{} | ((params:any) => {}); | ||
@bindable() public cellRenderer:{ | ||
new (): ICellRenderer; | ||
} | ICellRendererFunc | string; | ||
@bindable() public cellRendererFramework:any; | ||
@bindable() public cellRendererParams:{}; | ||
@bindable() public cellEditor:{ | ||
new (): ICellEditor; | ||
} | string; | ||
@bindable() public cellEditorFramework:any; | ||
@bindable() public cellEditorParams:{}; | ||
@bindable() public floatingCellRenderer:{ | ||
new (): ICellRenderer; | ||
} | ICellRendererFunc | string; | ||
@bindable() public floatingCellRendererFramework:any; | ||
@bindable() public floatingCellRendererParams:{}; | ||
@bindable() public cellFormatter:(params:any) => string; | ||
@bindable() public floatingCellFormatter:(params:any) => string; | ||
@bindable() public aggFunc:string | IAggFunc; | ||
@bindable() public rowGroupIndex:number; | ||
@bindable() public pivotIndex:number; | ||
@bindable() public comparator:(valueA:any, valueB:any, nodeA:RowNode, nodeB:RowNode, isInverted:boolean) => number; | ||
@bindable() public checkboxSelection:boolean | (Function); | ||
@bindable() public suppressMenu:boolean; | ||
@bindable() public suppressSorting:boolean; | ||
@bindable() public suppressMovable:boolean; | ||
@bindable() public suppressFilter:boolean; | ||
@bindable() public unSortIcon:boolean; | ||
@bindable() public suppressSizeToFit:boolean; | ||
@bindable() public suppressResize:boolean; | ||
@bindable() public suppressAutoSize:boolean; | ||
@bindable() public enableRowGroup:boolean; | ||
@bindable() public enablePivot:boolean; | ||
@bindable() public enableValue:boolean; | ||
@bindable() public editable:boolean | IsColumnFunc; | ||
@bindable() public suppressNavigable:boolean | IsColumnFunc; | ||
@bindable() public newValueHandler:Function; | ||
@bindable() public volatile:boolean; | ||
@bindable() public filter:string | { | ||
new (): IFilter; | ||
}; | ||
@bindable() public filterFramework:any; | ||
@bindable() public filterParams:SetFilterParameters | TextAndNumberFilterParameters; | ||
@bindable() public cellClassRules:{ | ||
[cssClassName: string]: (Function | string); | ||
}; | ||
@bindable() public onCellValueChanged:Function; | ||
@bindable() public onCellClicked:Function; | ||
@bindable() public onCellDoubleClicked:Function; | ||
@bindable() public onCellContextMenu:Function; | ||
@bindable() public icons:{ | ||
[key: string]: string; | ||
}; | ||
@bindable() public enableCellChangeFlash:boolean; | ||
@bindable() public headerName: string; | ||
@bindable() public columnGroupShow: string; | ||
@bindable() public headerClass: string | string[] | ((params: any) => string | string[]); | ||
@bindable() public children: (ColDef | ColGroupDef)[]; | ||
@bindable() public groupId: string; | ||
@bindable() public openByDefault: boolean; | ||
@bindable() public marryChildren: boolean; | ||
} | ||
} |
@@ -79,5 +79,5 @@ import {autoinject, transient, Container, ViewResources, ViewCompiler} from "aurelia-framework"; | ||
setTimeout(handler: any, timeout?: any): number { | ||
return this._baseFrameworkFactory.setTimeout(handler, timeout); | ||
setTimeout(action: any, timeout?: any): void { | ||
this._baseFrameworkFactory.setTimeout(action, timeout); | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33
56994
1245
76