UNPKG

@ng-zi/extensions-ag-grid

Version:

AgGrid Extension for Ag-grid

72 lines (67 loc) 5.82 kB
import * as i0 from '@angular/core'; import { HostBinding, Input, ViewEncapsulation, Component, NgModule } from '@angular/core'; import { NgIf, CommonModule } from '@angular/common'; import * as i1 from 'ag-grid-angular'; import { AgGridAngular, AgGridModule, AngularFrameworkOverrides, AngularFrameworkComponentWrapper } from 'ag-grid-angular'; import { LicenseManager } from 'ag-grid-enterprise'; export { AllEnterpriseModule, CellSelectionModule, ClipboardModule, ColumnMenuModule, ColumnsToolPanelModule, ContextMenuModule, FiltersToolPanelModule, MenuModule, NewFiltersToolPanelModule, RowGroupingModule, RowGroupingPanelModule, ServerSideRowModelApiModule, ServerSideRowModelModule, SetFilterModule, StatusBarModule } from 'ag-grid-enterprise'; export { ClientSideRowModelModule, ModuleRegistry, createGrid, themeAlpine, themeBalham, themeMaterial, themeQuartz } from 'ag-grid-community'; LicenseManager.setLicenseKey('Using_this_{AG_Grid}_Enterprise_key_{AG-073130}_in_excess_of_the_licence_granted_is_not_permitted___Please_report_misuse_to_legal@ag-grid.com___For_help_with_changing_this_key_please_contact_info@ag-grid.com___{K12insight_LLC}_is_granted_a_{Single_Application}_Developer_License_for_the_application_{k12insight}_only_for_{1}_Front-End_JavaScript_developer___All_Front-End_JavaScript_developers_working_on_{k12insight}_need_to_be_licensed___{k12insight}_has_been_granted_a_Deployment_License_Add-on_for_{1}_Production_Environment___This_key_works_with_{AG_Grid}_Enterprise_versions_released_before_{9_December_2025}____[v3]_[01]_MTc2NTIzODQwMDAwMA==4e14752e9a31fc44065379e196e84403'); class MtxAgGrid extends AgGridAngular { constructor(elementDef, viewContainerRef, angularFrameworkOverrides, frameworkComponentWrapper) { super(elementDef, viewContainerRef, angularFrameworkOverrides, frameworkComponentWrapper); this.gridElement = elementDef; } ngOnInit() { } ngOnChanges(changes) { if (changes['gridHeight']) { this.componentHeight = this.normalizeDimension(this.gridHeight); } if (changes['gridWidth']) { this.componentWidth = this.normalizeDimension(this.gridWidth); } } normalizeDimension(value) { if (typeof value === 'number') { return `${value}px`; } return value ? value.toString() : ''; } /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MtxAgGrid, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i1.AngularFrameworkOverrides }, { token: i1.AngularFrameworkComponentWrapper }], target: i0.ɵɵFactoryTarget.Component }); } /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: MtxAgGrid, isStandalone: true, selector: "mtx-ag-grid", inputs: { gridHeight: "gridHeight", gridWidth: "gridWidth" }, host: { attributes: { "role": "data-grid" }, properties: { "style.height": "this.componentHeight", "style.width": "this.componentWidth" }, classAttribute: "mtx-ag-grid" }, providers: [AngularFrameworkOverrides, AngularFrameworkComponentWrapper, NgIf], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: '', isInline: true, styles: [".mtx-ag-grid{display:block;width:100%;height:100%}\n"], dependencies: [{ kind: "ngmodule", type: AgGridModule }], encapsulation: i0.ViewEncapsulation.None }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MtxAgGrid, decorators: [{ type: Component, args: [{ selector: 'mtx-ag-grid', template: '', imports: [AgGridModule], providers: [AngularFrameworkOverrides, AngularFrameworkComponentWrapper, NgIf], encapsulation: ViewEncapsulation.None, host: { class: 'mtx-ag-grid', role: 'data-grid', }, styles: [".mtx-ag-grid{display:block;width:100%;height:100%}\n"] }] }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i1.AngularFrameworkOverrides }, { type: i1.AngularFrameworkComponentWrapper }], propDecorators: { gridHeight: [{ type: Input }], gridWidth: [{ type: Input }], componentHeight: [{ type: HostBinding, args: ['style.height'] }], componentWidth: [{ type: HostBinding, args: ['style.width'] }] } }); class MtxAgGridModule { /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MtxAgGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: MtxAgGridModule, imports: [CommonModule, AgGridModule, MtxAgGrid], exports: [MtxAgGrid] }); } /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MtxAgGridModule, providers: [AngularFrameworkOverrides, AngularFrameworkComponentWrapper], imports: [CommonModule, AgGridModule, MtxAgGrid] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MtxAgGridModule, decorators: [{ type: NgModule, args: [{ imports: [CommonModule, AgGridModule, MtxAgGrid], exports: [MtxAgGrid], providers: [AngularFrameworkOverrides, AngularFrameworkComponentWrapper], }] }] }); /** * Generated bundle index. Do not edit. */ export { MtxAgGrid, MtxAgGridModule }; //# sourceMappingURL=mtxAgGrid.mjs.map