ag-grid-aurelia
Advanced tools
Comparing version 12.0.0 to 13.0.2
{ | ||
"name": "ag-grid-aurelia", | ||
"version": "12.0.0", | ||
"version": "13.0.2", | ||
"homepage": "http://www.ag-grid.com/", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -43,5 +43,5 @@ - [Question or Problem?](#question) | ||
You can file new issues by filling out our [new issue form](https://github.com/ceolter/ag-grid-aurelia/issues/new). | ||
You can file new issues by filling out our [new issue form](https://github.com/ag-grid/ag-grid-aurelia/issues/new). | ||
[github]: https://github.com/ceolter/ag-grid-aurelia | ||
[github]: https://github.com/ag-grid/ag-grid-aurelia | ||
[jsfiddle]: http://jsfiddle.net | ||
@@ -48,0 +48,0 @@ [plunker]: http://plnkr.co/edit |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
import { ComponentAttached, ComponentDetached, Container, ViewResources, TaskQueue } from "aurelia-framework"; | ||
@@ -7,2 +7,3 @@ import { GridOptions, GridApi, ColumnApi } from "ag-grid/main"; | ||
import { AgFullWidthRowTemplate } from './agTemplate'; | ||
import { AureliaFrameworkComponentWrapper } from "./aureliaFrameworkComponentWrapper"; | ||
export declare class AgGridAurelia implements ComponentAttached, ComponentDetached { | ||
@@ -13,2 +14,3 @@ private taskQueue; | ||
private viewResources; | ||
private aureliaFrameworkComponentWrapper; | ||
private _nativeElement; | ||
@@ -24,3 +26,3 @@ private _initialised; | ||
fullWidthRowTemplate: AgFullWidthRowTemplate; | ||
constructor(element: Element, taskQueue: TaskQueue, auFrameworkFactory: AureliaFrameworkFactory, container: Container, viewResources: ViewResources); | ||
constructor(element: Element, taskQueue: TaskQueue, auFrameworkFactory: AureliaFrameworkFactory, container: Container, viewResources: ViewResources, aureliaFrameworkComponentWrapper: AureliaFrameworkComponentWrapper); | ||
attached(): void; | ||
@@ -27,0 +29,0 @@ initGrid(): void; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
"use strict"; | ||
@@ -18,4 +18,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var agTemplate_1 = require("./agTemplate"); | ||
var aureliaFrameworkComponentWrapper_1 = require("./aureliaFrameworkComponentWrapper"); | ||
var AgGridAurelia = (function () { | ||
function AgGridAurelia(element, taskQueue, auFrameworkFactory, container, viewResources) { | ||
function AgGridAurelia(element, taskQueue, auFrameworkFactory, container, viewResources, aureliaFrameworkComponentWrapper) { | ||
var _this = this; | ||
@@ -26,2 +27,3 @@ this.taskQueue = taskQueue; | ||
this.viewResources = viewResources; | ||
this.aureliaFrameworkComponentWrapper = aureliaFrameworkComponentWrapper; | ||
this._initialised = false; | ||
@@ -50,6 +52,11 @@ this._destroyed = false; | ||
this.auFrameworkFactory.setViewResources(this.viewResources); | ||
this.aureliaFrameworkComponentWrapper.setContainer(this.container); | ||
this.aureliaFrameworkComponentWrapper.setViewResources(this.viewResources); | ||
this.gridOptions = main_1.ComponentUtil.copyAttributesToGridOptions(this.gridOptions, this); | ||
this.gridParams = { | ||
globalEventListener: this.globalEventListener.bind(this), | ||
frameworkFactory: this.auFrameworkFactory | ||
frameworkFactory: this.auFrameworkFactory, | ||
seedBeanInstances: { | ||
frameworkComponentWrapper: this.aureliaFrameworkComponentWrapper | ||
} | ||
}; | ||
@@ -132,3 +139,4 @@ if (this.columns && this.columns.length > 0) { | ||
aurelia_framework_1.Container, | ||
aurelia_framework_1.ViewResources]) | ||
aurelia_framework_1.ViewResources, | ||
aureliaFrameworkComponentWrapper_1.AureliaFrameworkComponentWrapper]) | ||
], AgGridAurelia); | ||
@@ -135,0 +143,0 @@ return AgGridAurelia; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
import { ColDef } from "ag-grid/main"; | ||
@@ -3,0 +3,0 @@ import { AgCellTemplate, AgEditorTemplate, AgFilterTemplate } from "./agTemplate"; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
import { TargetInstruction } from "aurelia-framework"; | ||
@@ -3,0 +3,0 @@ export declare class AgCellTemplate { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
export declare function generateBindables(names: string[], bindingModeToUse?: any): any; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
import { ICellRenderer } from 'ag-grid/main'; | ||
@@ -3,0 +3,0 @@ export declare class AureliaCellRendererComponent implements ICellRenderer { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
import { Container, ViewFactory, TaskQueue } from "aurelia-framework"; | ||
@@ -3,0 +3,0 @@ import { ICellRendererComp, ICellEditorComp } from "ag-grid/main"; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
"use strict"; | ||
@@ -78,2 +78,5 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
CellEditor.prototype.afterGuiAttached = function () { | ||
if (this.editorVm.afterGuiAttached) { | ||
this.editorVm.afterGuiAttached(); | ||
} | ||
this.view.attached(); | ||
@@ -80,0 +83,0 @@ }; |
@@ -1,4 +0,4 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
import { Container, ViewResources, ViewCompiler } from "aurelia-framework"; | ||
import { IFrameworkFactory, IFilterComp, ICellRendererFunc, ColDef, GridOptions, ICellRendererComp, ICellEditorComp } from "ag-grid/main"; | ||
// ag-grid-aurelia v13.0.2 | ||
import { Container, ViewCompiler, ViewResources } from "aurelia-framework"; | ||
import { ColDef, ICellEditorComp, IFilterComp, IFrameworkFactory } from "ag-grid/main"; | ||
import { AureliaComponentFactory } from "./aureliaComponentFactory"; | ||
@@ -12,20 +12,5 @@ export declare class AureliaFrameworkFactory implements IFrameworkFactory { | ||
constructor(_componentFactory: AureliaComponentFactory, _viewCompiler: ViewCompiler); | ||
colDefFloatingCellRenderer(colDef: ColDef): { | ||
new (): ICellRendererComp; | ||
} | ICellRendererFunc | string; | ||
colDefCellRenderer(colDef: ColDef): { | ||
new (): ICellRendererComp; | ||
} | ICellRendererFunc | string; | ||
colDefCellEditor(colDef: ColDef): { | ||
new (): ICellEditorComp; | ||
} | string; | ||
gridOptionsFullWidthCellRenderer(gridOptions: GridOptions): { | ||
new (): ICellRendererComp; | ||
} | ICellRendererFunc | string; | ||
gridOptionsGroupRowRenderer(gridOptions: GridOptions): { | ||
new (): ICellRendererComp; | ||
} | ICellRendererFunc | string; | ||
gridOptionsGroupRowInnerRenderer(gridOptions: GridOptions): { | ||
new (): ICellRendererComp; | ||
} | ICellRendererFunc | string; | ||
colDefFilter(colDef: ColDef): { | ||
@@ -32,0 +17,0 @@ new (): IFilterComp; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
"use strict"; | ||
@@ -22,16 +22,2 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
} | ||
AureliaFrameworkFactory.prototype.colDefFloatingCellRenderer = function (colDef) { | ||
return this._baseFrameworkFactory.colDefFloatingCellRenderer(colDef); | ||
}; | ||
AureliaFrameworkFactory.prototype.colDefCellRenderer = function (colDef) { | ||
if (colDef.cellRendererFramework) { | ||
if (!colDef.cellRendererFramework.$viewFactory) { | ||
colDef.cellRendererFramework.$viewFactory = this._viewCompiler.compile(colDef.cellRendererFramework.template, this._viewResources); | ||
} | ||
return this._componentFactory.createRendererFromTemplate(this._container, colDef.cellRendererFramework.$viewFactory); | ||
} | ||
else { | ||
return this._baseFrameworkFactory.colDefCellRenderer(colDef); | ||
} | ||
}; | ||
AureliaFrameworkFactory.prototype.colDefCellEditor = function (colDef) { | ||
@@ -49,20 +35,2 @@ if (colDef.cellEditorFramework) { | ||
}; | ||
AureliaFrameworkFactory.prototype.gridOptionsFullWidthCellRenderer = function (gridOptions) { | ||
if (gridOptions.fullWidthCellRendererFramework) { | ||
if (!gridOptions.fullWidthCellRendererFramework.$viewFactory) { | ||
gridOptions.fullWidthCellRendererFramework.$viewFactory = | ||
this._viewCompiler.compile(gridOptions.fullWidthCellRendererFramework.template, this._viewResources); | ||
} | ||
return this._componentFactory.createRendererFromTemplate(this._container, gridOptions.fullWidthCellRendererFramework.$viewFactory); | ||
} | ||
else { | ||
return this._baseFrameworkFactory.gridOptionsFullWidthCellRenderer(gridOptions); | ||
} | ||
}; | ||
AureliaFrameworkFactory.prototype.gridOptionsGroupRowRenderer = function (gridOptions) { | ||
return this._baseFrameworkFactory.gridOptionsGroupRowRenderer(gridOptions); | ||
}; | ||
AureliaFrameworkFactory.prototype.gridOptionsGroupRowInnerRenderer = function (gridOptions) { | ||
return this._baseFrameworkFactory.gridOptionsGroupRowInnerRenderer(gridOptions); | ||
}; | ||
AureliaFrameworkFactory.prototype.colDefFilter = function (colDef) { | ||
@@ -69,0 +37,0 @@ return this._baseFrameworkFactory.colDefFilter(colDef); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
/** | ||
@@ -3,0 +3,0 @@ * Implements all the methods of ICellEditor except for Init |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v12.0.0 | ||
// ag-grid-aurelia v13.0.2 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
{ | ||
"name": "ag-grid-aurelia", | ||
"version": "12.0.0", | ||
"version": "13.0.2", | ||
"description": "ag-Grid Aurelia Component", | ||
@@ -13,3 +13,3 @@ "main": "./main.js", | ||
"type": "git", | ||
"url": "https://github.com/ceolter/ag-grid-aurelia.git" | ||
"url": "https://github.com/ag-grid/ag-grid-aurelia.git" | ||
}, | ||
@@ -25,3 +25,3 @@ "keywords": [ | ||
"bugs": { | ||
"url": "https://github.com/ceolter/ag-grid-aurelia/issues" | ||
"url": "https://github.com/ag-grid/ag-grid-aurelia/issues" | ||
}, | ||
@@ -40,4 +40,4 @@ "homepage": "http://www.ag-grid.com/", | ||
"peerDependencies": { | ||
"aurelia-framework": "^1.0.0", | ||
"ag-grid": "12.0.x" | ||
"aurelia-framework": "1.0.x", | ||
"ag-grid": "13.0.2" | ||
}, | ||
@@ -44,0 +44,0 @@ "dependencies": { |
@@ -9,3 +9,3 @@ ag-Grid Aurelia Component | ||
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. | ||
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/ag-grid/ag-grid-aurelia-example. | ||
@@ -81,4 +81,4 @@ Frameworks Supported | ||
- npm install ag-grid | ||
- (or: npm install aurelia-framework && npm install ag-grid) | ||
- (or: npm install aurelia-framework@1.0.x && npm install ag-grid@13.0.2) | ||
- npm run build |
@@ -19,2 +19,3 @@ import { | ||
import {AgFullWidthRowTemplate} from './agTemplate'; | ||
import {AureliaFrameworkComponentWrapper} from "./aureliaFrameworkComponentWrapper"; | ||
@@ -57,3 +58,4 @@ interface IPropertyChanges { | ||
private container: Container, | ||
private viewResources: ViewResources) { | ||
private viewResources: ViewResources, | ||
private aureliaFrameworkComponentWrapper: AureliaFrameworkComponentWrapper) { | ||
this._nativeElement = element; | ||
@@ -83,6 +85,12 @@ // create all the events generically. this is done generically so that | ||
this.aureliaFrameworkComponentWrapper.setContainer(this.container); | ||
this.aureliaFrameworkComponentWrapper.setViewResources(this.viewResources); | ||
this.gridOptions = ComponentUtil.copyAttributesToGridOptions(this.gridOptions, this); | ||
this.gridParams = <any>{ | ||
globalEventListener: this.globalEventListener.bind(this), | ||
frameworkFactory: this.auFrameworkFactory | ||
frameworkFactory: this.auFrameworkFactory, | ||
seedBeanInstances: { | ||
frameworkComponentWrapper: this.aureliaFrameworkComponentWrapper | ||
} | ||
}; | ||
@@ -89,0 +97,0 @@ |
@@ -28,3 +28,2 @@ import {processContent, autoinject, noView, customElement, TargetInstruction} from "aurelia-framework"; | ||
@processContent(parseElement) | ||
export class AgCellTemplate { | ||
@@ -31,0 +30,0 @@ template: string; |
@@ -88,2 +88,5 @@ import {autoinject, Container, transient, View, ViewFactory, TaskQueue} from "aurelia-framework"; | ||
public afterGuiAttached() { | ||
if (this.editorVm.afterGuiAttached) { | ||
this.editorVm.afterGuiAttached(); | ||
} | ||
this.view.attached(); | ||
@@ -90,0 +93,0 @@ } |
@@ -1,12 +0,3 @@ | ||
import {autoinject, transient, Container, ViewResources, ViewCompiler} from "aurelia-framework"; | ||
import { | ||
BaseFrameworkFactory, | ||
IFrameworkFactory, | ||
IFilterComp, | ||
ICellRendererFunc, | ||
ColDef, | ||
GridOptions, | ||
ICellRendererComp, | ||
ICellEditorComp | ||
} from "ag-grid/main"; | ||
import {autoinject, Container, transient, ViewCompiler, ViewResources} from "aurelia-framework"; | ||
import {BaseFrameworkFactory, ColDef, ICellEditorComp, IFilterComp, IFrameworkFactory} from "ag-grid/main"; | ||
import {AureliaComponentFactory} from "./aureliaComponentFactory"; | ||
@@ -24,18 +15,2 @@ | ||
public colDefFloatingCellRenderer(colDef: ColDef): {new (): ICellRendererComp;} | ICellRendererFunc | string { | ||
return this._baseFrameworkFactory.colDefFloatingCellRenderer(colDef); | ||
} | ||
public colDefCellRenderer(colDef: ColDef): {new (): ICellRendererComp;} | ICellRendererFunc | string { | ||
if (colDef.cellRendererFramework) { | ||
if (!colDef.cellRendererFramework.$viewFactory) { | ||
colDef.cellRendererFramework.$viewFactory = this._viewCompiler.compile(colDef.cellRendererFramework.template, this._viewResources); | ||
} | ||
return this._componentFactory.createRendererFromTemplate(this._container, colDef.cellRendererFramework.$viewFactory); | ||
} else { | ||
return this._baseFrameworkFactory.colDefCellRenderer(colDef); | ||
} | ||
} | ||
public colDefCellEditor(colDef: ColDef): {new (): ICellEditorComp;} | string { | ||
@@ -54,26 +29,3 @@ if (colDef.cellEditorFramework) { | ||
public gridOptionsFullWidthCellRenderer(gridOptions: GridOptions): {new (): ICellRendererComp;} | ICellRendererFunc | string { | ||
if (gridOptions.fullWidthCellRendererFramework) { | ||
if (!gridOptions.fullWidthCellRendererFramework.$viewFactory) { | ||
gridOptions.fullWidthCellRendererFramework.$viewFactory = | ||
this._viewCompiler.compile(gridOptions.fullWidthCellRendererFramework.template, this._viewResources); | ||
} | ||
return this._componentFactory.createRendererFromTemplate(this._container, gridOptions.fullWidthCellRendererFramework.$viewFactory); | ||
} else { | ||
return this._baseFrameworkFactory.gridOptionsFullWidthCellRenderer(gridOptions); | ||
} | ||
} | ||
public gridOptionsGroupRowRenderer(gridOptions: GridOptions): { | ||
new (): ICellRendererComp; | ||
} | ICellRendererFunc | string { | ||
return this._baseFrameworkFactory.gridOptionsGroupRowRenderer(gridOptions); | ||
} | ||
public gridOptionsGroupRowInnerRenderer(gridOptions: GridOptions): {new (): ICellRendererComp;} | ICellRendererFunc | string { | ||
return this._baseFrameworkFactory.gridOptionsGroupRowInnerRenderer(gridOptions); | ||
} | ||
public colDefFilter(colDef: ColDef): {new (): IFilterComp;} | string { | ||
@@ -80,0 +32,0 @@ return this._baseFrameworkFactory.colDefFilter(colDef); |
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
75706
38
1522