Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ag-grid-aurelia

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ag-grid-aurelia - npm Package Compare versions

Comparing version 13.2.0 to 13.3.0

2

bower.json
{
"name": "ag-grid-aurelia",
"version": "13.2.0",
"version": "13.3.0",
"homepage": "http://www.ag-grid.com/",

@@ -5,0 +5,0 @@ "authors": [

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
import { ComponentAttached, ComponentDetached, Container, TaskQueue, ViewResources } from "aurelia-framework";

@@ -3,0 +3,0 @@ import { ColumnApi, GridApi, GridOptions } from "ag-grid/main";

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
"use strict";

@@ -3,0 +3,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -1,4 +0,4 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
import { ColDef } from "ag-grid/main";
import { AgCellTemplate, AgEditorTemplate, AgFilterTemplate } from "./agTemplate";
import { AgCellTemplate, AgEditorTemplate, AgFilterTemplate, AgHeaderGroupTemplate, AgHeaderTemplate } from "./agTemplate";
export declare class AgGridColumn {

@@ -10,2 +10,4 @@ private mappedColumnProperties;

filterTemplate: AgFilterTemplate;
headerTemplate: AgHeaderTemplate;
headerGroupTemplate: AgHeaderGroupTemplate;
constructor();

@@ -12,0 +14,0 @@ hasChildColumns(): boolean;

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
"use strict";

@@ -47,2 +47,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

}
if (this.headerTemplate) {
colDef.headerComponentFramework = { template: this.headerTemplate.template };
delete colDef.headerTemplate;
}
if (this.headerGroupTemplate) {
colDef.headerGroupComponentFramework = { template: this.headerGroupTemplate.template };
delete colDef.headerGroupTemplate;
}
return colDef;

@@ -84,2 +92,10 @@ };

], AgGridColumn.prototype, "filterTemplate", void 0);
__decorate([
aurelia_framework_1.child('ag-header-template'),
__metadata("design:type", agTemplate_1.AgHeaderTemplate)
], AgGridColumn.prototype, "headerTemplate", void 0);
__decorate([
aurelia_framework_1.child('ag-header-group-template'),
__metadata("design:type", agTemplate_1.AgHeaderGroupTemplate)
], AgGridColumn.prototype, "headerGroupTemplate", void 0);
AgGridColumn = AgGridColumn_1 = __decorate([

@@ -98,6 +114,6 @@ aurelia_framework_1.customElement('ag-grid-column'),

"headerClass", "children", "groupId", "openByDefault", "marryChildren", "headerCheckboxSelection",
"headerCheckboxSelectionFilteredOnly", "ype", "ooltipField", "valueSetter", "pinnedRowCellRenderer",
"headerCheckboxSelectionFilteredOnly", "type", "tooltipField", "valueSetter", "pinnedRowCellRenderer",
"pinnedRowCellRendererFramework", "pinnedRowCellRendererParams", "valueFormatter", "pinnedRowValueFormatter",
"valueParser", "allowedAggFuncs", "rowGroup", "showRowGroup", "pivot", "equals", "pivotComparator", "menuTabs",
"colSpan", "suppressPaste", "emplate", "emplateUrl", "pivotValueColumn", "pivotTotalColumnIds", "headerComponent",
"colSpan", "suppressPaste", "template", "templateUrl", "pivotValueColumn", "pivotTotalColumnIds", "headerComponent",
"headerComponentFramework", "headerComponentParams", "floatingFilterComponent", "floatingFilterComponentParams",

@@ -104,0 +120,0 @@ "floatingFilterComponentFramework"])

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
import { TargetInstruction } from "aurelia-framework";

@@ -15,2 +15,10 @@ export declare class AgCellTemplate {

}
export declare class AgHeaderTemplate {
template: string;
constructor(targetInstruction: TargetInstruction);
}
export declare class AgHeaderGroupTemplate {
template: string;
constructor(targetInstruction: TargetInstruction);
}
export declare class AgFullWidthRowTemplate {

@@ -17,0 +25,0 @@ template: string;

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
"use strict";

@@ -75,2 +75,30 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

exports.AgFilterTemplate = AgFilterTemplate;
var AgHeaderTemplate = /** @class */ (function () {
function AgHeaderTemplate(targetInstruction) {
this.template = getTemplate(targetInstruction);
}
AgHeaderTemplate = __decorate([
aurelia_framework_1.customElement('ag-header-template'),
aurelia_framework_1.noView(),
aurelia_framework_1.autoinject(),
aurelia_framework_1.processContent(parseElement),
__metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction])
], AgHeaderTemplate);
return AgHeaderTemplate;
}());
exports.AgHeaderTemplate = AgHeaderTemplate;
var AgHeaderGroupTemplate = /** @class */ (function () {
function AgHeaderGroupTemplate(targetInstruction) {
this.template = getTemplate(targetInstruction);
}
AgHeaderGroupTemplate = __decorate([
aurelia_framework_1.customElement('ag-header-group-template'),
aurelia_framework_1.noView(),
aurelia_framework_1.autoinject(),
aurelia_framework_1.processContent(parseElement),
__metadata("design:paramtypes", [aurelia_framework_1.TargetInstruction])
], AgHeaderGroupTemplate);
return AgHeaderGroupTemplate;
}());
exports.AgHeaderGroupTemplate = AgHeaderGroupTemplate;
var AgFullWidthRowTemplate = /** @class */ (function () {

@@ -77,0 +105,0 @@ function AgFullWidthRowTemplate(targetInstruction) {

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
export declare function generateBindables(names: string[], bindingModeToUse?: any): any;

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
import { Container, TaskQueue, ViewFactory } from "aurelia-framework";

@@ -3,0 +3,0 @@ import { ICellEditorComp, ICellRendererComp } from "ag-grid/main";

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
"use strict";

@@ -3,0 +3,0 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
import { Container, TaskQueue, ViewCompiler, ViewResources } from "aurelia-framework";

@@ -3,0 +3,0 @@ import { BaseComponentWrapper, FrameworkComponentWrapper, WrapableInterface } from 'ag-grid';

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
"use strict";

@@ -109,5 +109,16 @@ var __extends = (this && this.__extends) || (function () {

BaseGuiComponent.prototype.getFrameworkComponentInstance = function () {
return this._frameworkComponentInstance;
var controllers = this._view.controllers;
//only one controller is allowed in editor template
if (controllers &&
controllers.length == 1 &&
controllers[0].viewModel) {
var editorVm = controllers[0].viewModel;
//this is a 'hack' because we don't have params.bind="" in the template
//must reset params or it will be nothing
editorVm.params = this._params;
return editorVm;
}
return null;
};
return BaseGuiComponent;
}());

@@ -1,4 +0,4 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
import { Container, ViewCompiler, ViewResources } from "aurelia-framework";
import { ColDef, ICellEditorComp, IFilterComp, IFrameworkFactory } from "ag-grid/main";
import { ColDef, IFilterComp, IFrameworkFactory } from "ag-grid/main";
import { AureliaComponentFactory } from "./aureliaComponentFactory";

@@ -12,5 +12,2 @@ export declare class AureliaFrameworkFactory implements IFrameworkFactory {

constructor(_componentFactory: AureliaComponentFactory, _viewCompiler: ViewCompiler);
colDefCellEditor(colDef: ColDef): {
new (): ICellEditorComp;
} | string;
colDefFilter(colDef: ColDef): {

@@ -17,0 +14,0 @@ new (): IFilterComp;

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
"use strict";

@@ -22,14 +22,2 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

}
AureliaFrameworkFactory.prototype.colDefCellEditor = function (colDef) {
if (colDef.cellEditorFramework) {
//cache the columnDef viewFactory
if (!colDef.cellEditorFramework.$viewFactory) {
colDef.cellEditorFramework.$viewFactory = this._viewCompiler.compile(colDef.cellEditorFramework.template, this._viewResources);
}
return this._componentFactory.createEditorFromTemplate(this._container, colDef.cellEditorFramework.$viewFactory);
}
else {
return this._baseFrameworkFactory.colDefCellEditor(colDef);
}
};
AureliaFrameworkFactory.prototype.colDefFilter = function (colDef) {

@@ -36,0 +24,0 @@ return this._baseFrameworkFactory.colDefFilter(colDef);

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
/**

@@ -3,0 +3,0 @@ * Implements all the methods of ICellEditor except for Init

@@ -1,2 +0,2 @@

// ag-grid-aurelia v13.2.0
// ag-grid-aurelia v13.3.0
"use strict";

@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

{
"name": "ag-grid-aurelia",
"version": "13.2.0",
"version": "13.3.0",
"description": "ag-Grid Aurelia Component",

@@ -39,3 +39,3 @@ "main": "./main.js",

"aurelia-framework": "1.x",
"ag-grid": "13.2.x"
"ag-grid": "13.3.x"
},

@@ -42,0 +42,0 @@ "dependencies": {

import {autoinject, child, children, customElement, inlineView} from "aurelia-framework";
import {ColDef} from "ag-grid/main";
import {AgCellTemplate, AgEditorTemplate, AgFilterTemplate} from "./agTemplate";
import {
AgCellTemplate,
AgEditorTemplate,
AgFilterTemplate,
AgHeaderGroupTemplate,
AgHeaderTemplate
} from "./agTemplate";
import {generateBindables} from "./agUtils";

@@ -18,6 +24,6 @@

"headerClass", "children", "groupId", "openByDefault", "marryChildren", "headerCheckboxSelection",
"headerCheckboxSelectionFilteredOnly", "ype", "ooltipField", "valueSetter", "pinnedRowCellRenderer",
"headerCheckboxSelectionFilteredOnly", "type", "tooltipField", "valueSetter", "pinnedRowCellRenderer",
"pinnedRowCellRendererFramework", "pinnedRowCellRendererParams", "valueFormatter", "pinnedRowValueFormatter",
"valueParser", "allowedAggFuncs", "rowGroup", "showRowGroup", "pivot", "equals", "pivotComparator", "menuTabs",
"colSpan", "suppressPaste", "emplate", "emplateUrl", "pivotValueColumn", "pivotTotalColumnIds", "headerComponent",
"colSpan", "suppressPaste", "template", "templateUrl", "pivotValueColumn", "pivotTotalColumnIds", "headerComponent",
"headerComponentFramework", "headerComponentParams", "floatingFilterComponent", "floatingFilterComponentParams",

@@ -45,2 +51,8 @@ "floatingFilterComponentFramework"])

@child('ag-header-template')
public headerTemplate: AgHeaderTemplate;
@child('ag-header-group-template')
public headerGroupTemplate: AgHeaderGroupTemplate;
constructor() {

@@ -78,2 +90,12 @@ }

if (this.headerTemplate) {
(<any>colDef).headerComponentFramework = {template: this.headerTemplate.template};
delete (<any>colDef).headerTemplate;
}
if (this.headerGroupTemplate) {
(<any>colDef).headerGroupComponentFramework = {template: this.headerGroupTemplate.template};
delete (<any>colDef).headerGroupTemplate;
}
return colDef;

@@ -80,0 +102,0 @@ }

@@ -60,2 +60,26 @@ import {autoinject, customElement, noView, processContent, TargetInstruction} from "aurelia-framework";

@customElement('ag-header-template')
@noView()
@autoinject()
@processContent(parseElement)
export class AgHeaderTemplate {
template: string;
constructor(targetInstruction: TargetInstruction) {
this.template = getTemplate(targetInstruction);
}
}
@customElement('ag-header-group-template')
@noView()
@autoinject()
@processContent(parseElement)
export class AgHeaderGroupTemplate {
template: string;
constructor(targetInstruction: TargetInstruction) {
this.template = getTemplate(targetInstruction);
}
}
@customElement('ag-full-width-row-template')

@@ -62,0 +86,0 @@ @noView()

@@ -11,3 +11,2 @@ import {autoinject, Container, TaskQueue, transient, View, ViewFactory} from "aurelia-framework";

constructor(private taskQueue: TaskQueue) {
}

@@ -65,3 +64,2 @@

init(params: any): void {

@@ -137,3 +135,2 @@ let bindingContext = {params: params};

}
}

@@ -140,0 +137,0 @@

@@ -60,3 +60,2 @@ import {autoinject, Container, TaskQueue, transient, View, ViewCompiler, ViewResources} from "aurelia-framework";

protected _params: any;
protected _frameworkComponentInstance: any; // the users component - for accessing methods they create
protected _view: View;

@@ -106,5 +105,17 @@

public getFrameworkComponentInstance(): any {
return this._frameworkComponentInstance;
let controllers: any[] = (<any> this._view).controllers;
//only one controller is allowed in editor template
if (controllers &&
controllers.length == 1 &&
controllers[0].viewModel) {
let editorVm = controllers[0].viewModel;
//this is a 'hack' because we don't have params.bind="" in the template
//must reset params or it will be nothing
editorVm.params = this._params;
return editorVm;
}
return null;
}
}

@@ -15,16 +15,2 @@ import {autoinject, Container, transient, ViewCompiler, ViewResources} from "aurelia-framework";

public colDefCellEditor(colDef: ColDef): { new (): ICellEditorComp; } | string {
if (colDef.cellEditorFramework) {
//cache the columnDef viewFactory
if (!colDef.cellEditorFramework.$viewFactory) {
colDef.cellEditorFramework.$viewFactory = this._viewCompiler.compile(colDef.cellEditorFramework.template, this._viewResources);
}
return this._componentFactory.createEditorFromTemplate(this._container, colDef.cellEditorFramework.$viewFactory);
} else {
return this._baseFrameworkFactory.colDefCellEditor(colDef);
}
}
public colDefFilter(colDef: ColDef): { new (): IFilterComp; } | string {

@@ -31,0 +17,0 @@ return this._baseFrameworkFactory.colDefFilter(colDef);

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc