ag-grid-aurelia
Advanced tools
Comparing version 13.0.2 to 13.2.0
{ | ||
"name": "ag-grid-aurelia", | ||
"version": "13.0.2", | ||
"version": "13.2.0", | ||
"homepage": "http://www.ag-grid.com/", | ||
@@ -5,0 +5,0 @@ "authors": [ |
@@ -1,4 +0,4 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
import { ComponentAttached, ComponentDetached, Container, ViewResources, TaskQueue } from "aurelia-framework"; | ||
import { GridOptions, GridApi, ColumnApi } from "ag-grid/main"; | ||
// ag-grid-aurelia v13.2.0 | ||
import { ComponentAttached, ComponentDetached, Container, TaskQueue, ViewResources } from "aurelia-framework"; | ||
import { ColumnApi, GridApi, GridOptions } from "ag-grid/main"; | ||
import { AureliaFrameworkFactory } from "./aureliaFrameworkFactory"; | ||
@@ -5,0 +5,0 @@ import { AgGridColumn } from "./agGridColumn"; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
"use strict"; | ||
@@ -19,3 +19,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var aureliaFrameworkComponentWrapper_1 = require("./aureliaFrameworkComponentWrapper"); | ||
var AgGridAurelia = (function () { | ||
var AgGridAurelia = /** @class */ (function () { | ||
function AgGridAurelia(element, taskQueue, auFrameworkFactory, container, viewResources, aureliaFrameworkComponentWrapper) { | ||
@@ -41,4 +41,4 @@ var _this = this; | ||
AgGridAurelia.prototype.attached = function () { | ||
//initialize the grid in the queue | ||
//because of bug in @children | ||
// initialize the grid in the queue | ||
// because of bug in @children | ||
// https://github.com/aurelia/templating/issues/403 | ||
@@ -45,0 +45,0 @@ this.taskQueue.queueTask(this.initGrid.bind(this)); |
@@ -1,5 +0,6 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
import { ColDef } from "ag-grid/main"; | ||
import { AgCellTemplate, AgEditorTemplate, AgFilterTemplate } from "./agTemplate"; | ||
export declare class AgGridColumn { | ||
private mappedColumnProperties; | ||
childColumns: AgGridColumn[]; | ||
@@ -6,0 +7,0 @@ cellTemplate: AgCellTemplate; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
"use strict"; | ||
@@ -16,4 +16,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var agUtils_1 = require("./agUtils"); | ||
var AgGridColumn = (function () { | ||
var AgGridColumn = /** @class */ (function () { | ||
function AgGridColumn() { | ||
this.mappedColumnProperties = { | ||
"hideCol": "hide" // hide exists in aurelia-templating-resources and will conflict | ||
}; | ||
this.childColumns = []; | ||
@@ -58,3 +61,4 @@ } | ||
for (var prop in this) { | ||
colDef[prop] = this[prop]; | ||
var colDefProperty = this.mappedColumnProperties[prop] ? this.mappedColumnProperties[prop] : prop; | ||
colDef[colDefProperty] = this[prop]; | ||
} | ||
@@ -83,11 +87,19 @@ delete colDef.childColumns; | ||
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']) | ||
agUtils_1.generateBindables(["colId", "sort", "sortedAt", "sortingOrder", "field", "headerValueGetter", "hideCol", "pinned", | ||
"tooltipField", "headerTooltip", "valueGetter", "keyCreator", "headerCellRenderer", "headerCellTemplate", | ||
"width", "minWidth", "maxWidth", "cellClass", "cellStyle", "cellRenderer", "cellRendererFramework", | ||
"cellRendererParams", "cellEditor", "cellEditorFramework", "cellEditorParams", "floatingCellRenderer", | ||
"floatingCellRendererFramework", "floatingCellRendererParams", "cellFormatter(", "floatingCellFormatter", | ||
"getQuickFilterText", "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", "headerCheckboxSelection", | ||
"headerCheckboxSelectionFilteredOnly", "ype", "ooltipField", "valueSetter", "pinnedRowCellRenderer", | ||
"pinnedRowCellRendererFramework", "pinnedRowCellRendererParams", "valueFormatter", "pinnedRowValueFormatter", | ||
"valueParser", "allowedAggFuncs", "rowGroup", "showRowGroup", "pivot", "equals", "pivotComparator", "menuTabs", | ||
"colSpan", "suppressPaste", "emplate", "emplateUrl", "pivotValueColumn", "pivotTotalColumnIds", "headerComponent", | ||
"headerComponentFramework", "headerComponentParams", "floatingFilterComponent", "floatingFilterComponentParams", | ||
"floatingFilterComponentFramework"]) | ||
// <slot> is required for @children to work. https://github.com/aurelia/templating/issues/451#issuecomment-254206622 | ||
@@ -94,0 +106,0 @@ , |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
import { TargetInstruction } from "aurelia-framework"; | ||
@@ -3,0 +3,0 @@ export declare class AgCellTemplate { |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
"use strict"; | ||
@@ -33,3 +33,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
} | ||
var AgCellTemplate = (function () { | ||
var AgCellTemplate = /** @class */ (function () { | ||
function AgCellTemplate(targetInstruction) { | ||
@@ -48,3 +48,3 @@ this.template = getTemplate(targetInstruction); | ||
exports.AgCellTemplate = AgCellTemplate; | ||
var AgEditorTemplate = (function () { | ||
var AgEditorTemplate = /** @class */ (function () { | ||
function AgEditorTemplate(targetInstruction) { | ||
@@ -63,3 +63,3 @@ this.template = getTemplate(targetInstruction); | ||
exports.AgEditorTemplate = AgEditorTemplate; | ||
var AgFilterTemplate = (function () { | ||
var AgFilterTemplate = /** @class */ (function () { | ||
function AgFilterTemplate(targetInstruction) { | ||
@@ -78,3 +78,3 @@ this.template = getTemplate(targetInstruction); | ||
exports.AgFilterTemplate = AgFilterTemplate; | ||
var AgFullWidthRowTemplate = (function () { | ||
var AgFullWidthRowTemplate = /** @class */ (function () { | ||
function AgFullWidthRowTemplate(targetInstruction) { | ||
@@ -81,0 +81,0 @@ this.template = getTemplate(targetInstruction); |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
export declare function generateBindables(names: string[], bindingModeToUse?: any): any; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
"use strict"; | ||
@@ -3,0 +3,0 @@ Object.defineProperty(exports, "__esModule", { value: true }); |
@@ -1,4 +0,4 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
import { Container, ViewFactory, TaskQueue } from "aurelia-framework"; | ||
import { ICellRendererComp, ICellEditorComp } from "ag-grid/main"; | ||
// ag-grid-aurelia v13.2.0 | ||
import { Container, TaskQueue, ViewFactory } from "aurelia-framework"; | ||
import { ICellEditorComp, ICellRendererComp } from "ag-grid/main"; | ||
export declare class AureliaComponentFactory { | ||
@@ -5,0 +5,0 @@ private taskQueue; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
"use strict"; | ||
@@ -14,3 +14,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var aurelia_framework_1 = require("aurelia-framework"); | ||
var AureliaComponentFactory = (function () { | ||
var AureliaComponentFactory = /** @class */ (function () { | ||
function AureliaComponentFactory(taskQueue) { | ||
@@ -21,3 +21,3 @@ this.taskQueue = taskQueue; | ||
var componentFactory = this; | ||
var CellRendererComponent = (function () { | ||
var CellRendererComponent = /** @class */ (function () { | ||
function CellRendererComponent() { | ||
@@ -58,3 +58,3 @@ } | ||
AureliaComponentFactory.prototype.createEditorFromTemplate = function (container, viewFactory) { | ||
var CellEditor = (function () { | ||
var CellEditor = /** @class */ (function () { | ||
function CellEditor() { | ||
@@ -61,0 +61,0 @@ } |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.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.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
"use strict"; | ||
@@ -25,3 +25,3 @@ var __extends = (this && this.__extends) || (function () { | ||
var ag_grid_1 = require("ag-grid"); | ||
var AureliaFrameworkComponentWrapper = (function (_super) { | ||
var AureliaFrameworkComponentWrapper = /** @class */ (function (_super) { | ||
__extends(AureliaFrameworkComponentWrapper, _super); | ||
@@ -36,3 +36,3 @@ function AureliaFrameworkComponentWrapper(taskQueue, _viewCompiler) { | ||
var that = this; | ||
var DynamicComponent = (function (_super) { | ||
var DynamicComponent = /** @class */ (function (_super) { | ||
__extends(DynamicComponent, _super); | ||
@@ -75,3 +75,3 @@ function DynamicComponent() { | ||
exports.AureliaFrameworkComponentWrapper = AureliaFrameworkComponentWrapper; | ||
var BaseGuiComponent = (function () { | ||
var BaseGuiComponent = /** @class */ (function () { | ||
function BaseGuiComponent(taskQueue, viewCompiler) { | ||
@@ -78,0 +78,0 @@ this._taskQueue = taskQueue; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
import { Container, ViewCompiler, ViewResources } from "aurelia-framework"; | ||
@@ -3,0 +3,0 @@ import { ColDef, ICellEditorComp, IFilterComp, IFrameworkFactory } from "ag-grid/main"; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
"use strict"; | ||
@@ -16,3 +16,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var aureliaComponentFactory_1 = require("./aureliaComponentFactory"); | ||
var AureliaFrameworkFactory = (function () { | ||
var AureliaFrameworkFactory = /** @class */ (function () { | ||
function AureliaFrameworkFactory(_componentFactory, _viewCompiler) { | ||
@@ -19,0 +19,0 @@ this._componentFactory = _componentFactory; |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
/** | ||
@@ -3,0 +3,0 @@ * Implements all the methods of ICellEditor except for Init |
@@ -1,2 +0,2 @@ | ||
// ag-grid-aurelia v13.0.2 | ||
// ag-grid-aurelia v13.2.0 | ||
"use strict"; | ||
@@ -7,3 +7,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
*/ | ||
var BaseAureliaEditor = (function () { | ||
var BaseAureliaEditor = /** @class */ (function () { | ||
function BaseAureliaEditor() { | ||
@@ -10,0 +10,0 @@ } |
{ | ||
"name": "ag-grid-aurelia", | ||
"version": "13.0.2", | ||
"version": "13.2.0", | ||
"description": "ag-Grid Aurelia Component", | ||
@@ -38,4 +38,4 @@ "main": "./main.js", | ||
"peerDependencies": { | ||
"aurelia-framework": "1.0.x", | ||
"ag-grid": "13.0.2" | ||
"aurelia-framework": "1.x", | ||
"ag-grid": "13.2.x" | ||
}, | ||
@@ -42,0 +42,0 @@ "dependencies": { |
@@ -82,2 +82,2 @@ ag-Grid Aurelia Component | ||
- npm run build | ||
- npm run build |
import { | ||
autoinject, | ||
bindable, | ||
autoinject, | ||
inlineView, | ||
customElement, | ||
child, | ||
children, | ||
ComponentAttached, | ||
ComponentDetached, | ||
children, | ||
child, | ||
Container, | ||
ViewResources, | ||
TaskQueue | ||
customElement, | ||
inlineView, | ||
TaskQueue, | ||
ViewResources | ||
} from "aurelia-framework"; | ||
import {Grid, GridOptions, GridApi, ColumnApi, GridParams, ComponentUtil} from "ag-grid/main"; | ||
import {ColumnApi, ComponentUtil, Grid, GridApi, GridOptions, GridParams} from "ag-grid/main"; | ||
import {AureliaFrameworkFactory} from "./aureliaFrameworkFactory"; | ||
@@ -70,4 +70,4 @@ import {AgGridColumn} from "./agGridColumn"; | ||
attached() { | ||
//initialize the grid in the queue | ||
//because of bug in @children | ||
// initialize the grid in the queue | ||
// because of bug in @children | ||
// https://github.com/aurelia/templating/issues/403 | ||
@@ -105,3 +105,3 @@ this.taskQueue.queueTask(this.initGrid.bind(this)); | ||
this.gridOptions.fullWidthCellRendererFramework = | ||
{template: this.fullWidthRowTemplate.template}; | ||
{template: this.fullWidthRowTemplate.template}; | ||
} | ||
@@ -108,0 +108,0 @@ |
@@ -1,2 +0,2 @@ | ||
import {autoinject, inlineView, customElement, children, child} from "aurelia-framework"; | ||
import {autoinject, child, children, customElement, inlineView} from "aurelia-framework"; | ||
import {ColDef} from "ag-grid/main"; | ||
@@ -7,11 +7,19 @@ 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']) | ||
@generateBindables(["colId", "sort", "sortedAt", "sortingOrder", "field", "headerValueGetter", "hideCol", "pinned", | ||
"tooltipField", "headerTooltip", "valueGetter", "keyCreator", "headerCellRenderer", "headerCellTemplate", | ||
"width", "minWidth", "maxWidth", "cellClass", "cellStyle", "cellRenderer", "cellRendererFramework", | ||
"cellRendererParams", "cellEditor", "cellEditorFramework", "cellEditorParams", "floatingCellRenderer", | ||
"floatingCellRendererFramework", "floatingCellRendererParams", "cellFormatter(", "floatingCellFormatter", | ||
"getQuickFilterText", "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", "headerCheckboxSelection", | ||
"headerCheckboxSelectionFilteredOnly", "ype", "ooltipField", "valueSetter", "pinnedRowCellRenderer", | ||
"pinnedRowCellRendererFramework", "pinnedRowCellRendererParams", "valueFormatter", "pinnedRowValueFormatter", | ||
"valueParser", "allowedAggFuncs", "rowGroup", "showRowGroup", "pivot", "equals", "pivotComparator", "menuTabs", | ||
"colSpan", "suppressPaste", "emplate", "emplateUrl", "pivotValueColumn", "pivotTotalColumnIds", "headerComponent", | ||
"headerComponentFramework", "headerComponentParams", "floatingFilterComponent", "floatingFilterComponentParams", | ||
"floatingFilterComponentFramework"]) | ||
// <slot> is required for @children to work. https://github.com/aurelia/templating/issues/451#issuecomment-254206622 | ||
@@ -21,23 +29,27 @@ @inlineView(`<template><slot></slot></template>`) | ||
export class AgGridColumn { | ||
private mappedColumnProperties: any = { | ||
"hideCol": "hide" // hide exists in aurelia-templating-resources and will conflict | ||
}; | ||
@children('ag-grid-column') | ||
public childColumns:AgGridColumn[] = []; | ||
public childColumns: AgGridColumn[] = []; | ||
@child('ag-cell-template') | ||
public cellTemplate:AgCellTemplate; | ||
public cellTemplate: AgCellTemplate; | ||
@child('ag-editor-template') | ||
public editorTemplate:AgEditorTemplate; | ||
public editorTemplate: AgEditorTemplate; | ||
@child('ag-filter-template') | ||
public filterTemplate:AgFilterTemplate; | ||
public filterTemplate: AgFilterTemplate; | ||
constructor(){ | ||
constructor() { | ||
} | ||
public hasChildColumns():boolean { | ||
public hasChildColumns(): boolean { | ||
return this.childColumns && this.childColumns.length > 0; | ||
} | ||
public toColDef():ColDef { | ||
let colDef:ColDef = this.createColDefFromGridColumn(); | ||
public toColDef(): ColDef { | ||
let colDef: ColDef = this.createColDefFromGridColumn(); | ||
@@ -54,3 +66,3 @@ if (this.hasChildColumns()) { | ||
if (this.editorTemplate) { | ||
if(colDef.editable === undefined) { | ||
if (colDef.editable === undefined) { | ||
colDef.editable = true; | ||
@@ -70,6 +82,6 @@ } | ||
private static getChildColDefs(childColumns:AgGridColumn[]) { | ||
private static getChildColDefs(childColumns: AgGridColumn[]) { | ||
return childColumns | ||
.filter(column => !column.hasChildColumns()) | ||
.map((column:AgGridColumn) => { | ||
.map((column: AgGridColumn) => { | ||
return column.toColDef(); | ||
@@ -79,6 +91,7 @@ }); | ||
private createColDefFromGridColumn():ColDef { | ||
let colDef:ColDef = {}; | ||
private createColDefFromGridColumn(): ColDef { | ||
let colDef: ColDef = {}; | ||
for (let prop in this) { | ||
(<any>colDef)[prop] = (<any>this)[prop]; | ||
let colDefProperty = this.mappedColumnProperties[prop] ? this.mappedColumnProperties[prop] : prop; | ||
(<any>colDef)[colDefProperty] = (<any>this)[prop]; | ||
} | ||
@@ -88,2 +101,2 @@ delete (<any>colDef).childColumns; | ||
}; | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
import {processContent, autoinject, noView, customElement, TargetInstruction} from "aurelia-framework"; | ||
import {autoinject, customElement, noView, processContent, TargetInstruction} from "aurelia-framework"; | ||
@@ -3,0 +3,0 @@ /** |
@@ -10,3 +10,3 @@ import {BindableProperty, HtmlBehaviorResource, metadata} from "aurelia-framework"; | ||
let nameOrConfigOrTargets: any[] = names.map((name) => { | ||
let nameOrConfigOrTarget:any = { | ||
let nameOrConfigOrTarget: any = { | ||
name: name | ||
@@ -13,0 +13,0 @@ }; |
@@ -1,4 +0,4 @@ | ||
import {autoinject, Container, transient, View, ViewFactory, TaskQueue} from "aurelia-framework"; | ||
import {autoinject, Container, TaskQueue, transient, View, ViewFactory} from "aurelia-framework"; | ||
import {ICellRendererComp, ICellEditorComp} from "ag-grid/main"; | ||
import {ICellEditorComp, ICellRendererComp} from "ag-grid/main"; | ||
@@ -10,7 +10,7 @@ import {IAureliaEditorViewModel} from "./editorViewModels"; | ||
export class AureliaComponentFactory { | ||
constructor(private taskQueue:TaskQueue) { | ||
constructor(private taskQueue: TaskQueue) { | ||
} | ||
public createRendererFromTemplate(container: Container, viewFactory: ViewFactory): {new(): ICellRendererComp} { | ||
public createRendererFromTemplate(container: Container, viewFactory: ViewFactory): { new(): ICellRendererComp } { | ||
let componentFactory = this; | ||
@@ -26,3 +26,3 @@ | ||
//initialize each controller | ||
if (controllers && controllers.length){ | ||
if (controllers && controllers.length) { | ||
controllers.forEach((c) => { | ||
@@ -50,3 +50,3 @@ c.viewModel.params = params; | ||
refresh(params: any): boolean{ | ||
refresh(params: any): boolean { | ||
return false; | ||
@@ -60,3 +60,3 @@ } | ||
public createEditorFromTemplate(container: Container, viewFactory: ViewFactory): {new(): ICellEditorComp} { | ||
public createEditorFromTemplate(container: Container, viewFactory: ViewFactory): { new(): ICellEditorComp } { | ||
@@ -63,0 +63,0 @@ class CellEditor implements ICellEditorComp { |
@@ -92,3 +92,3 @@ import {autoinject, Container, TaskQueue, transient, View, ViewCompiler, ViewResources} from "aurelia-framework"; | ||
getGui(): HTMLElement { | ||
return this._view.fragment as any; | ||
return this._view.fragment as HTMLElement; | ||
} | ||
@@ -95,0 +95,0 @@ |
@@ -15,3 +15,3 @@ import {autoinject, Container, transient, ViewCompiler, ViewResources} from "aurelia-framework"; | ||
public colDefCellEditor(colDef: ColDef): {new (): ICellEditorComp;} | string { | ||
public colDefCellEditor(colDef: ColDef): { new (): ICellEditorComp; } | string { | ||
if (colDef.cellEditorFramework) { | ||
@@ -30,3 +30,3 @@ //cache the columnDef viewFactory | ||
public colDefFilter(colDef: ColDef): {new (): IFilterComp;} | string { | ||
public colDefFilter(colDef: ColDef): { new (): IFilterComp; } | string { | ||
return this._baseFrameworkFactory.colDefFilter(colDef); | ||
@@ -33,0 +33,0 @@ } |
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
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
95293
1528
83
1