@adaptabletools/adaptable-angular-aggrid 17.0.5 → 18.0.0-canary.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,187 @@
1
+ import { __awaiter } from 'tslib';
2
+ import * as i0 from '@angular/core';
3
+ import { InjectionToken, Injector, createComponent, Injectable, EventEmitter, Directive, Input, Output, NgModule } from '@angular/core';
4
+ import { Adaptable } from '@adaptabletools/adaptable/src/agGrid/Adaptable';
5
+ export * from '@adaptabletools/adaptable/src/types';
6
+ export { AdaptableAggregatedBooleanExpressionFunctions, AdaptableAggregatedScalarExpressionFunctions, AdaptableBooleanExpressionFunctions, AdaptableObservableExpressionFunctions, AdaptableQL, AdaptableScalarExpressionFunctions } from '@adaptabletools/adaptable/agGrid';
7
+
8
+ const ADAPTABLE_API = new InjectionToken('ADAPTABLE_API');
9
+
10
+ class AdaptableAngularFrameworkComponentService {
11
+ constructor(injector, environmentInjector, appRef) {
12
+ this.injector = injector;
13
+ this.environmentInjector = environmentInjector;
14
+ this.appRef = appRef;
15
+ this.toolbarComponentRefs = new WeakMap();
16
+ }
17
+ createFrameworkComponent(component, containerDomNode, componentType, adaptableApi) {
18
+ try {
19
+ adaptableApi.logInfo(`Creating framework component for ${componentType}`, containerDomNode);
20
+ if (this.toolbarComponentRefs.has(component)) {
21
+ adaptableApi.logInfo(`Creation of framework component ${componentType} skipped as it is already present`, containerDomNode);
22
+ return;
23
+ }
24
+ const angularComponentRef = this.createAngularComponent(component.type, containerDomNode, adaptableApi);
25
+ if (component.onSetup) {
26
+ Object.assign(angularComponentRef.instance, component.onSetup({ adaptableApi }));
27
+ }
28
+ this.toolbarComponentRefs.set(component, angularComponentRef);
29
+ }
30
+ catch (err) {
31
+ adaptableApi.logError(`Cannot correctly create framework component for ${componentType}`, err);
32
+ }
33
+ }
34
+ destroyFrameworkComponent(component, componentType, adaptableApi) {
35
+ adaptableApi.logInfo(`Destroying framework component for ${componentType}`);
36
+ const toolbarComponentRef = this.toolbarComponentRefs.get(component);
37
+ if (toolbarComponentRef) {
38
+ try {
39
+ toolbarComponentRef.destroy();
40
+ this.toolbarComponentRefs.delete(component);
41
+ }
42
+ catch (err) {
43
+ adaptableApi.logError(`Cannot correctly destroy framework component for ${componentType}`, err);
44
+ }
45
+ }
46
+ else {
47
+ adaptableApi.logInfo(`Cannot correctly destroy framework component for ${componentType} because the reference is no longer available`);
48
+ }
49
+ }
50
+ createAngularComponent(angularComponentType, domContainer, api) {
51
+ // extend standard DI context with AdaptableApi
52
+ const toolbarInjector = Injector.create({
53
+ providers: [
54
+ {
55
+ provide: ADAPTABLE_API,
56
+ useValue: api,
57
+ },
58
+ ],
59
+ parent: this.injector,
60
+ });
61
+ // create the component
62
+ const componentRef = createComponent(angularComponentType, {
63
+ hostElement: domContainer,
64
+ environmentInjector: this.environmentInjector,
65
+ elementInjector: toolbarInjector,
66
+ });
67
+ // Last step is to register the newly created ref using the `ApplicationRef` instance
68
+ // to include the component view into change detection cycles.
69
+ this.appRef.attachView(componentRef.hostView);
70
+ // trigger an early change detection
71
+ componentRef.changeDetectorRef.detectChanges();
72
+ return componentRef;
73
+ }
74
+ }
75
+ AdaptableAngularFrameworkComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularFrameworkComponentService, deps: [{ token: i0.Injector }, { token: i0.EnvironmentInjector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
76
+ AdaptableAngularFrameworkComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularFrameworkComponentService, providedIn: 'root' });
77
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularFrameworkComponentService, decorators: [{
78
+ type: Injectable,
79
+ args: [{
80
+ providedIn: 'root',
81
+ }]
82
+ }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.EnvironmentInjector }, { type: i0.ApplicationRef }]; } });
83
+
84
+ function getRandomInt(max) {
85
+ return Math.floor(Math.random() * Math.floor(max));
86
+ }
87
+ class AdaptableAngularAgGridComponentDirective {
88
+ constructor(renderer, el, frameworkComponentService) {
89
+ this.renderer = renderer;
90
+ this.el = el;
91
+ this.frameworkComponentService = frameworkComponentService;
92
+ this.adaptableReady = new EventEmitter();
93
+ const seedId = `${getRandomInt(1000)}-${Date.now()}`;
94
+ this.adaptableContainerId = `adaptable-${seedId}`;
95
+ }
96
+ ngOnInit() {
97
+ return __awaiter(this, void 0, void 0, function* () {
98
+ if (this.modules == null) {
99
+ throw new Error(`Attribute 'modules' is required. Please pass the ag-grid modules you use into AdapTable.
100
+ If you don't have extra modules, pass an empty array.`);
101
+ }
102
+ this.createAngularWrapperContainer();
103
+ this.adaptableOptions.containerOptions = this.adaptableOptions.containerOptions || {};
104
+ this.adaptableOptions.containerOptions.adaptableContainer = this.adaptableContainerId;
105
+ const adaptableApi = yield Adaptable.initInternal(this.adaptableOptions, {
106
+ gridOptions: this.gridOptions,
107
+ waitForAgGrid: true,
108
+ variant: 'angular',
109
+ modules: this.modules,
110
+ });
111
+ adaptableApi.internalApi
112
+ .getAdaptableInstance()
113
+ ._onIncludeFired('FrameworkComponentChange', ({ command, frameworkComponent, containerDomNode, componentType }) => {
114
+ if (command === 'create') {
115
+ this.frameworkComponentService.createFrameworkComponent(frameworkComponent, containerDomNode, componentType, adaptableApi);
116
+ }
117
+ else {
118
+ this.frameworkComponentService.destroyFrameworkComponent(frameworkComponent, componentType, adaptableApi);
119
+ }
120
+ });
121
+ adaptableApi.eventApi.on('AdaptableReady', (adaptableReadyInfo) => this.adaptableReady.emit(adaptableReadyInfo));
122
+ this.adaptableApi = adaptableApi;
123
+ });
124
+ }
125
+ ngOnDestroy() {
126
+ if (!this.adaptableApi) {
127
+ return;
128
+ }
129
+ this.adaptableApi.destroy({
130
+ unmount: true,
131
+ destroyApi: false,
132
+ });
133
+ this.adaptableApi = null;
134
+ }
135
+ // creates the container for the adaptable toolbar and inserts it before the ag-grid element
136
+ createAngularWrapperContainer() {
137
+ const adaptableContainer = this.renderer.createElement('div');
138
+ adaptableContainer.style.setProperty('display', 'flex');
139
+ adaptableContainer.style.setProperty('flex-flow', 'var(--ab_flex-direction, column)');
140
+ this.renderer.setProperty(adaptableContainer, 'id', this.adaptableContainerId);
141
+ this.renderer.insertBefore(this.renderer.parentNode(this.el.nativeElement), adaptableContainer, this.el.nativeElement);
142
+ }
143
+ }
144
+ AdaptableAngularAgGridComponentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridComponentDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: AdaptableAngularFrameworkComponentService }], target: i0.ɵɵFactoryTarget.Directive });
145
+ AdaptableAngularAgGridComponentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AdaptableAngularAgGridComponentDirective, selector: "ag-grid-angular[adaptableOptions]", inputs: { adaptableOptions: "adaptableOptions", modules: "modules", gridOptions: "gridOptions" }, outputs: { adaptableReady: "adaptableReady" }, providers: [AdaptableAngularFrameworkComponentService], ngImport: i0 });
146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridComponentDirective, decorators: [{
147
+ type: Directive,
148
+ args: [{
149
+ selector: 'ag-grid-angular[adaptableOptions]',
150
+ // ensures each AG Grid instance has its own copy of the service (incl. the framework component references)
151
+ providers: [AdaptableAngularFrameworkComponentService],
152
+ }]
153
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: AdaptableAngularFrameworkComponentService }]; }, propDecorators: { adaptableOptions: [{
154
+ type: Input
155
+ }], modules: [{
156
+ type: Input
157
+ }], gridOptions: [{
158
+ type: Input
159
+ }], adaptableReady: [{
160
+ type: Output
161
+ }] } });
162
+
163
+ class AdaptableAngularAgGridModule {
164
+ }
165
+ AdaptableAngularAgGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
166
+ AdaptableAngularAgGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridModule, declarations: [AdaptableAngularAgGridComponentDirective], exports: [AdaptableAngularAgGridComponentDirective] });
167
+ AdaptableAngularAgGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridModule });
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridModule, decorators: [{
169
+ type: NgModule,
170
+ args: [{
171
+ declarations: [AdaptableAngularAgGridComponentDirective],
172
+ imports: [],
173
+ exports: [AdaptableAngularAgGridComponentDirective],
174
+ providers: [],
175
+ }]
176
+ }] });
177
+
178
+ /*
179
+ * Public API Surface of adaptable-angular-aggrid
180
+ */
181
+
182
+ /**
183
+ * Generated bundle index. Do not edit.
184
+ */
185
+
186
+ export { ADAPTABLE_API, AdaptableAngularAgGridComponentDirective, AdaptableAngularAgGridModule };
187
+ //# sourceMappingURL=adaptabletools-adaptable-angular-aggrid.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adaptabletools-adaptable-angular-aggrid.mjs","sources":["../../../projects/adaptable-angular-aggrid/src/lib/adaptable-angular-aggrid.token.ts","../../../projects/adaptable-angular-aggrid/src/lib/adaptable-angular-framework-component.service.ts","../../../projects/adaptable-angular-aggrid/src/lib/adaptable-angular-ag-grid-component.directive.ts","../../../projects/adaptable-angular-aggrid/src/lib/adaptable-angular-aggrid.module.ts","../../../projects/adaptable-angular-aggrid/src/public-api.ts","../../../projects/adaptable-angular-aggrid/src/adaptabletools-adaptable-angular-aggrid.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { AdaptableApi } from '@adaptabletools/adaptable/src/types';\n\nexport const ADAPTABLE_API = new InjectionToken<AdaptableApi>('ADAPTABLE_API');\n","import {\n ApplicationRef,\n ComponentRef,\n createComponent,\n EnvironmentInjector,\n Injectable,\n Injector,\n Type,\n} from '@angular/core';\nimport { AdaptableApi } from '@adaptabletools/adaptable/src/Api/AdaptableApi';\nimport { ADAPTABLE_API } from './adaptable-angular-aggrid.token';\nimport { AngularFrameworkComponent } from '@adaptabletools/adaptable/types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AdaptableAngularFrameworkComponentService {\n private toolbarComponentRefs: WeakMap<AngularFrameworkComponent, ComponentRef<unknown>>;\n\n constructor(\n private injector: Injector,\n private environmentInjector: EnvironmentInjector,\n private appRef: ApplicationRef\n ) {\n this.toolbarComponentRefs = new WeakMap<AngularFrameworkComponent, ComponentRef<unknown>>();\n }\n\n createFrameworkComponent(\n component: AngularFrameworkComponent,\n containerDomNode: HTMLElement,\n componentType: string,\n adaptableApi: AdaptableApi\n ): void {\n try {\n adaptableApi.logInfo(`Creating framework component for ${componentType}`, containerDomNode);\n if (this.toolbarComponentRefs.has(component)) {\n adaptableApi.logInfo(\n `Creation of framework component ${componentType} skipped as it is already present`,\n containerDomNode\n );\n return;\n }\n\n const angularComponentRef = this.createAngularComponent(\n component.type as Type<unknown>,\n containerDomNode,\n adaptableApi\n );\n\n if (component.onSetup) {\n Object.assign(angularComponentRef.instance, component.onSetup({ adaptableApi }));\n }\n\n this.toolbarComponentRefs.set(component, angularComponentRef);\n } catch (err) {\n adaptableApi.logError(\n `Cannot correctly create framework component for ${componentType}`,\n err\n );\n }\n }\n\n destroyFrameworkComponent(\n component: AngularFrameworkComponent,\n componentType: string,\n adaptableApi: AdaptableApi\n ): void {\n adaptableApi.logInfo(`Destroying framework component for ${componentType}`);\n const toolbarComponentRef = this.toolbarComponentRefs.get(component);\n if (toolbarComponentRef) {\n try {\n toolbarComponentRef.destroy();\n this.toolbarComponentRefs.delete(component);\n } catch (err) {\n adaptableApi.logError(\n `Cannot correctly destroy framework component for ${componentType}`,\n err\n );\n }\n } else {\n adaptableApi.logInfo(\n `Cannot correctly destroy framework component for ${componentType} because the reference is no longer available`\n );\n }\n }\n\n private createAngularComponent(\n angularComponentType: Type<unknown>,\n domContainer: HTMLElement,\n api: AdaptableApi\n ): ComponentRef<unknown> {\n // extend standard DI context with AdaptableApi\n const toolbarInjector = Injector.create({\n providers: [\n {\n provide: ADAPTABLE_API,\n useValue: api,\n },\n ],\n parent: this.injector,\n });\n\n // create the component\n const componentRef = createComponent(angularComponentType, {\n hostElement: domContainer,\n environmentInjector: this.environmentInjector,\n elementInjector: toolbarInjector,\n });\n\n // Last step is to register the newly created ref using the `ApplicationRef` instance\n // to include the component view into change detection cycles.\n this.appRef.attachView(componentRef.hostView);\n // trigger an early change detection\n componentRef.changeDetectorRef.detectChanges();\n\n return componentRef;\n }\n}\n","import {\n Directive,\n ElementRef,\n EventEmitter,\n Input,\n OnDestroy,\n OnInit,\n Output,\n Renderer2,\n} from '@angular/core';\nimport { GridOptions, Module } from '@ag-grid-community/core';\nimport { AdaptableOptions } from '@adaptabletools/adaptable/src/AdaptableOptions/AdaptableOptions';\nimport { AdaptableReadyInfo } from '@adaptabletools/adaptable/src/Api/Events/AdaptableReady';\nimport { AdaptableApi } from '@adaptabletools/adaptable/src/Api/AdaptableApi';\nimport { Adaptable } from '@adaptabletools/adaptable/src/agGrid/Adaptable';\nimport { AngularFrameworkComponent } from '@adaptabletools/adaptable/types';\nimport { AdaptableAngularFrameworkComponentService } from './adaptable-angular-framework-component.service';\n\nfunction getRandomInt(max: number): number {\n return Math.floor(Math.random() * Math.floor(max));\n}\n\n@Directive({\n selector: 'ag-grid-angular[adaptableOptions]',\n // ensures each AG Grid instance has its own copy of the service (incl. the framework component references)\n providers: [AdaptableAngularFrameworkComponentService],\n})\nexport class AdaptableAngularAgGridComponentDirective<TData = any> implements OnDestroy, OnInit {\n @Input() adaptableOptions: AdaptableOptions<TData>;\n @Input() modules: Module[];\n @Input() gridOptions: GridOptions<TData>;\n\n @Output() adaptableReady = new EventEmitter<AdaptableReadyInfo>();\n\n public adaptableContainerId: string;\n private adaptableApi: AdaptableApi;\n\n constructor(\n private renderer: Renderer2,\n private el: ElementRef,\n private frameworkComponentService: AdaptableAngularFrameworkComponentService\n ) {\n const seedId = `${getRandomInt(1000)}-${Date.now()}`;\n\n this.adaptableContainerId = `adaptable-${seedId}`;\n }\n\n async ngOnInit() {\n if (this.modules == null) {\n throw new Error(\n `Attribute 'modules' is required. Please pass the ag-grid modules you use into AdapTable.\n If you don't have extra modules, pass an empty array.`\n );\n }\n\n this.createAngularWrapperContainer();\n\n this.adaptableOptions.containerOptions = this.adaptableOptions.containerOptions || {};\n this.adaptableOptions.containerOptions.adaptableContainer = this.adaptableContainerId;\n\n const adaptableApi = await Adaptable.initInternal(this.adaptableOptions, {\n gridOptions: this.gridOptions,\n waitForAgGrid: true,\n variant: 'angular',\n modules: this.modules,\n });\n\n adaptableApi.internalApi\n .getAdaptableInstance()\n ._onIncludeFired(\n 'FrameworkComponentChange',\n ({ command, frameworkComponent, containerDomNode, componentType }) => {\n if (command === 'create') {\n this.frameworkComponentService.createFrameworkComponent(\n frameworkComponent as AngularFrameworkComponent,\n containerDomNode,\n componentType,\n adaptableApi\n );\n } else {\n this.frameworkComponentService.destroyFrameworkComponent(\n frameworkComponent as AngularFrameworkComponent,\n componentType,\n adaptableApi\n );\n }\n }\n );\n\n adaptableApi.eventApi.on('AdaptableReady', (adaptableReadyInfo: AdaptableReadyInfo) =>\n this.adaptableReady.emit(adaptableReadyInfo)\n );\n\n this.adaptableApi = adaptableApi;\n }\n\n ngOnDestroy() {\n if (!this.adaptableApi) {\n return;\n }\n this.adaptableApi.destroy({\n unmount: true,\n destroyApi: false,\n });\n this.adaptableApi = null;\n }\n\n // creates the container for the adaptable toolbar and inserts it before the ag-grid element\n private createAngularWrapperContainer(): void {\n const adaptableContainer = this.renderer.createElement('div');\n\n adaptableContainer.style.setProperty('display', 'flex');\n adaptableContainer.style.setProperty('flex-flow', 'var(--ab_flex-direction, column)');\n\n this.renderer.setProperty(adaptableContainer, 'id', this.adaptableContainerId);\n this.renderer.insertBefore(\n this.renderer.parentNode(this.el.nativeElement),\n adaptableContainer,\n this.el.nativeElement\n );\n }\n}\n","import { NgModule } from '@angular/core';\nimport { AdaptableAngularAgGridComponentDirective } from './adaptable-angular-ag-grid-component.directive';\n\n@NgModule({\n declarations: [AdaptableAngularAgGridComponentDirective],\n imports: [],\n exports: [AdaptableAngularAgGridComponentDirective],\n providers: [],\n})\nexport class AdaptableAngularAgGridModule {}\n","/*\n * Public API Surface of adaptable-angular-aggrid\n */\n\nexport * from './lib/adaptable-angular-ag-grid-component.directive';\nexport * from './lib/adaptable-angular-aggrid.module';\nexport * from '@adaptabletools/adaptable/src/types';\nexport {\n AdaptableQL,\n AdaptableBooleanExpressionFunctions,\n AdaptableScalarExpressionFunctions,\n AdaptableAggregatedBooleanExpressionFunctions,\n AdaptableAggregatedScalarExpressionFunctions,\n AdaptableObservableExpressionFunctions,\n} from '@adaptabletools/adaptable/agGrid';\nexport { ADAPTABLE_API } from './lib/adaptable-angular-aggrid.token';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.AdaptableAngularFrameworkComponentService"],"mappings":";;;;;;;MAGa,aAAa,GAAG,IAAI,cAAc,CAAe,eAAe;;MCahE,yCAAyC,CAAA;AAGpD,IAAA,WAAA,CACU,QAAkB,EAClB,mBAAwC,EACxC,MAAsB,EAAA;AAFtB,QAAA,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;AAClB,QAAA,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB,CAAqB;AACxC,QAAA,IAAM,CAAA,MAAA,GAAN,MAAM,CAAgB;AAE9B,QA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