@adaptabletools/adaptable-angular-aggrid 17.0.8 → 18.0.0-canary.10
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.
- package/base.css +34 -22
- package/base.css.map +1 -1
- package/esm2020/lib/adaptable-aggrid.directive.mjs +29 -0
- package/esm2020/lib/adaptable-angular-aggrid.component.mjs +41 -0
- package/esm2020/lib/adaptable-angular-aggrid.module.mjs +11 -7
- package/esm2020/lib/adaptable-api.token.mjs +3 -0
- package/esm2020/lib/adaptable-controller.service.mjs +115 -0
- package/esm2020/lib/adaptable-provider.component.mjs +57 -0
- package/esm2020/lib/adaptable-ui.component.mjs +91 -0
- package/esm2020/lib/waitForCondition.mjs +26 -0
- package/esm2020/public-api.mjs +8 -5
- package/fesm2015/adaptabletools-adaptable-angular-aggrid.mjs +379 -0
- package/fesm2015/adaptabletools-adaptable-angular-aggrid.mjs.map +1 -0
- package/fesm2020/adaptabletools-adaptable-angular-aggrid.mjs +264 -73
- package/fesm2020/adaptabletools-adaptable-angular-aggrid.mjs.map +1 -1
- package/index.css +237 -179
- package/index.css.map +1 -1
- package/lib/adaptable-aggrid.directive.d.ts +13 -0
- package/lib/adaptable-angular-aggrid.component.d.ts +11 -0
- package/lib/adaptable-angular-aggrid.module.d.ts +6 -2
- package/lib/{adaptable-angular-aggrid.token.d.ts → adaptable-api.token.d.ts} +1 -1
- package/lib/adaptable-controller.service.d.ts +38 -0
- package/lib/adaptable-provider.component.d.ts +18 -0
- package/lib/adaptable-ui.component.d.ts +21 -0
- package/lib/waitForCondition.d.ts +1 -0
- package/package.json +4 -4
- package/public-api.d.ts +7 -4
- package/themes/dark.css +3 -3
- package/themes/dark.css.map +1 -1
- package/themes/light.css.map +1 -1
- package/README.md +0 -37
- package/esm2020/lib/adaptable-angular-ag-grid-component.directive.mjs +0 -82
- package/esm2020/lib/adaptable-angular-aggrid.token.mjs +0 -3
- package/esm2020/lib/adaptable-angular-framework-component.service.mjs +0 -77
- package/lib/adaptable-angular-ag-grid-component.directive.d.ts +0 -23
- package/lib/adaptable-angular-framework-component.service.d.ts +0 -16
|
@@ -1,18 +1,63 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injector, createComponent, Injectable, EventEmitter, Directive, Input, Output, NgModule } from '@angular/core';
|
|
3
|
-
import { Adaptable } from '@adaptabletools/adaptable/src/agGrid/Adaptable';
|
|
4
1
|
export * from '@adaptabletools/adaptable/src/types';
|
|
5
|
-
|
|
2
|
+
import { _AdaptableAgGrid } from '@adaptabletools/adaptable/agGrid';
|
|
3
|
+
export { AdaptableQL } from '@adaptabletools/adaptable/agGrid';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { InjectionToken, EventEmitter, Injector, createComponent, Injectable, Component, Input, Output, Attribute, Directive, ViewEncapsulation, NgModule } from '@angular/core';
|
|
6
|
+
import * as i2 from '@angular/common';
|
|
7
|
+
import { CommonModule } from '@angular/common';
|
|
8
|
+
import { BehaviorSubject } from 'rxjs';
|
|
9
|
+
import * as i1 from '@ag-grid-community/angular';
|
|
10
|
+
import { AgGridAngular, AngularFrameworkOverrides, AngularFrameworkComponentWrapper } from '@ag-grid-community/angular';
|
|
6
11
|
|
|
7
12
|
const ADAPTABLE_API = new InjectionToken('ADAPTABLE_API');
|
|
8
13
|
|
|
9
|
-
class
|
|
14
|
+
class AdaptableControllerService {
|
|
10
15
|
constructor(injector, environmentInjector, appRef) {
|
|
11
16
|
this.injector = injector;
|
|
12
17
|
this.environmentInjector = environmentInjector;
|
|
13
18
|
this.appRef = appRef;
|
|
19
|
+
this.adaptableReady = new EventEmitter();
|
|
20
|
+
this.phase = new BehaviorSubject('waitForAdaptableProps');
|
|
21
|
+
this.agGridFrameworkPromise = new Promise((resolve) => {
|
|
22
|
+
this.resolveAgGridFrameworkPromise = resolve;
|
|
23
|
+
});
|
|
14
24
|
this.toolbarComponentRefs = new WeakMap();
|
|
15
25
|
}
|
|
26
|
+
currentInitPhase() {
|
|
27
|
+
return this.phase.asObservable();
|
|
28
|
+
}
|
|
29
|
+
setInitialisationPhase(phase) {
|
|
30
|
+
this.phase.next(phase);
|
|
31
|
+
}
|
|
32
|
+
registerAdaptableOptions(adaptableOptions) {
|
|
33
|
+
this.adaptableOptions = adaptableOptions;
|
|
34
|
+
this.checkIfAllPropsAreSet();
|
|
35
|
+
}
|
|
36
|
+
registerGridOptions(gridOptions) {
|
|
37
|
+
this.gridOptions = gridOptions;
|
|
38
|
+
this.checkIfAllPropsAreSet();
|
|
39
|
+
}
|
|
40
|
+
registerModules(modules) {
|
|
41
|
+
this.modules = modules;
|
|
42
|
+
this.checkIfAllPropsAreSet();
|
|
43
|
+
}
|
|
44
|
+
renderAgGridFrameworkComponent(gridOptions) {
|
|
45
|
+
this.gridOptions = gridOptions;
|
|
46
|
+
this.setInitialisationPhase('waitForAgGridInit');
|
|
47
|
+
return this.agGridFrameworkPromise;
|
|
48
|
+
}
|
|
49
|
+
onAdaptableReady(adaptableReadyInfo) {
|
|
50
|
+
this.adaptableReady.emit(adaptableReadyInfo);
|
|
51
|
+
}
|
|
52
|
+
onAgGridReady(agGridApi) {
|
|
53
|
+
this.resolveAgGridFrameworkPromise(agGridApi);
|
|
54
|
+
this.setInitialisationPhase('waitForAdaptableReady');
|
|
55
|
+
}
|
|
56
|
+
checkIfAllPropsAreSet() {
|
|
57
|
+
if (this.adaptableOptions && this.gridOptions && this.modules) {
|
|
58
|
+
this.setInitialisationPhase('waitForAdaptableInit');
|
|
59
|
+
}
|
|
60
|
+
}
|
|
16
61
|
createFrameworkComponent(component, containerDomNode, componentType, adaptableApi) {
|
|
17
62
|
try {
|
|
18
63
|
adaptableApi.logInfo(`Creating framework component for ${componentType}`, containerDomNode);
|
|
@@ -71,55 +116,88 @@ class AdaptableAngularFrameworkComponentService {
|
|
|
71
116
|
return componentRef;
|
|
72
117
|
}
|
|
73
118
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type:
|
|
77
|
-
type: Injectable
|
|
78
|
-
args: [{
|
|
79
|
-
providedIn: 'root',
|
|
80
|
-
}]
|
|
119
|
+
AdaptableControllerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableControllerService, deps: [{ token: i0.Injector }, { token: i0.EnvironmentInjector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
120
|
+
AdaptableControllerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableControllerService });
|
|
121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableControllerService, decorators: [{
|
|
122
|
+
type: Injectable
|
|
81
123
|
}], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.EnvironmentInjector }, { type: i0.ApplicationRef }]; } });
|
|
82
124
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
constructor(renderer, el, frameworkComponentService) {
|
|
88
|
-
this.renderer = renderer;
|
|
89
|
-
this.el = el;
|
|
90
|
-
this.frameworkComponentService = frameworkComponentService;
|
|
91
|
-
this.adaptableReady = new EventEmitter();
|
|
92
|
-
const seedId = `${getRandomInt(1000)}-${Date.now()}`;
|
|
93
|
-
this.adaptableContainerId = `adaptable-${seedId}`;
|
|
125
|
+
class AdaptableProvider {
|
|
126
|
+
constructor(adaptableControllerService) {
|
|
127
|
+
this.adaptableControllerService = adaptableControllerService;
|
|
128
|
+
this.adaptableReady = this.adaptableControllerService.adaptableReady;
|
|
94
129
|
}
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
130
|
+
ngOnChanges(changes) {
|
|
131
|
+
const adaptableOptionsChange = changes['adaptableOptions'];
|
|
132
|
+
if (adaptableOptionsChange) {
|
|
133
|
+
if (adaptableOptionsChange.previousValue != undefined) {
|
|
134
|
+
console.error(`Mutating AdaptableOptions after Adaptable has been initialised is not supported!`);
|
|
135
|
+
}
|
|
136
|
+
else if (adaptableOptionsChange.currentValue != undefined) {
|
|
137
|
+
this.adaptableControllerService.registerAdaptableOptions(adaptableOptionsChange.currentValue);
|
|
138
|
+
}
|
|
99
139
|
}
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
gridOptions: this.gridOptions,
|
|
105
|
-
waitForAgGrid: true,
|
|
106
|
-
variant: 'angular',
|
|
107
|
-
modules: this.modules,
|
|
108
|
-
});
|
|
109
|
-
adaptableApi.internalApi
|
|
110
|
-
.getAdaptableInstance()
|
|
111
|
-
._onIncludeFired('FrameworkComponentChange', ({ command, frameworkComponent, containerDomNode, componentType }) => {
|
|
112
|
-
if (command === 'create') {
|
|
113
|
-
this.frameworkComponentService.createFrameworkComponent(frameworkComponent, containerDomNode, componentType, adaptableApi);
|
|
140
|
+
const gridOptionsChange = changes['gridOptions'];
|
|
141
|
+
if (gridOptionsChange) {
|
|
142
|
+
if (gridOptionsChange.previousValue != undefined) {
|
|
143
|
+
console.error(`Mutating GridOptions after AG Grid has been initialised is not supported!`);
|
|
114
144
|
}
|
|
115
|
-
else {
|
|
116
|
-
this.
|
|
145
|
+
else if (gridOptionsChange.currentValue != undefined) {
|
|
146
|
+
this.adaptableControllerService.registerGridOptions(gridOptionsChange.currentValue);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
const modulesChange = changes['modules'];
|
|
150
|
+
if (modulesChange) {
|
|
151
|
+
if (modulesChange.previousValue != undefined) {
|
|
152
|
+
console.error(`Mutating Modules after AG Grid has been initialised is not supported!`);
|
|
153
|
+
}
|
|
154
|
+
else if (modulesChange.currentValue != undefined) {
|
|
155
|
+
this.adaptableControllerService.registerModules(modulesChange.currentValue);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
onAdaptableReady(adaptableReadyInfo) {
|
|
160
|
+
this.adaptableReady.emit(adaptableReadyInfo);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
AdaptableProvider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableProvider, deps: [{ token: AdaptableControllerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
164
|
+
AdaptableProvider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AdaptableProvider, selector: "adaptable-provider", inputs: { adaptableOptions: "adaptableOptions", gridOptions: "gridOptions", modules: "modules" }, outputs: { adaptableReady: "adaptableReady" }, providers: [AdaptableControllerService], usesOnChanges: true, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [":host{display:flex;flex-direction:var(--ab_flex-direction, column)}\n"] });
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableProvider, decorators: [{
|
|
166
|
+
type: Component,
|
|
167
|
+
args: [{ selector: 'adaptable-provider', template: `<ng-content></ng-content>`, providers: [AdaptableControllerService], styles: [":host{display:flex;flex-direction:var(--ab_flex-direction, column)}\n"] }]
|
|
168
|
+
}], ctorParameters: function () { return [{ type: AdaptableControllerService }]; }, propDecorators: { adaptableOptions: [{
|
|
169
|
+
type: Input
|
|
170
|
+
}], gridOptions: [{
|
|
171
|
+
type: Input
|
|
172
|
+
}], modules: [{
|
|
173
|
+
type: Input
|
|
174
|
+
}], adaptableReady: [{
|
|
175
|
+
type: Output
|
|
176
|
+
}] } });
|
|
177
|
+
|
|
178
|
+
function getRandomInt(max) {
|
|
179
|
+
return Math.floor(Math.random() * Math.floor(max));
|
|
180
|
+
}
|
|
181
|
+
class AdaptableUI {
|
|
182
|
+
constructor(elementId, adaptableControllerService) {
|
|
183
|
+
this.adaptableControllerService = adaptableControllerService;
|
|
184
|
+
this.readyForAdaptableInit = false;
|
|
185
|
+
this.adaptableContainerId = elementId || `adaptable-${getRandomInt(1000)}-${Date.now()}`;
|
|
186
|
+
this.adaptableContainerStyle = {
|
|
187
|
+
display: 'flex',
|
|
188
|
+
'flex-flow': 'var(--ab_flex-direction, column)',
|
|
189
|
+
};
|
|
190
|
+
this.phaseSubscription = this.adaptableControllerService
|
|
191
|
+
.currentInitPhase()
|
|
192
|
+
.subscribe((phase) => {
|
|
193
|
+
if (phase === 'waitForAdaptableInit') {
|
|
194
|
+
this.readyForAdaptableInit = true;
|
|
195
|
+
this.initializeAdaptable();
|
|
117
196
|
}
|
|
118
197
|
});
|
|
119
|
-
adaptableApi.eventApi.on('AdaptableReady', (adaptableReadyInfo) => this.adaptableReady.emit(adaptableReadyInfo));
|
|
120
|
-
this.adaptableApi = adaptableApi;
|
|
121
198
|
}
|
|
122
199
|
ngOnDestroy() {
|
|
200
|
+
this.phaseSubscription?.unsubscribe();
|
|
123
201
|
if (!this.adaptableApi) {
|
|
124
202
|
return;
|
|
125
203
|
}
|
|
@@ -129,45 +207,158 @@ class AdaptableAngularAgGridComponentDirective {
|
|
|
129
207
|
});
|
|
130
208
|
this.adaptableApi = null;
|
|
131
209
|
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
210
|
+
get adaptableOptions() {
|
|
211
|
+
return this.adaptableControllerService.adaptableOptions;
|
|
212
|
+
}
|
|
213
|
+
get gridOptions() {
|
|
214
|
+
return this.adaptableControllerService.gridOptions;
|
|
215
|
+
}
|
|
216
|
+
get modules() {
|
|
217
|
+
return this.adaptableControllerService.modules;
|
|
218
|
+
}
|
|
219
|
+
initializeAdaptable() {
|
|
220
|
+
this.adaptableOptions.containerOptions = this.adaptableOptions.containerOptions || {};
|
|
221
|
+
this.adaptableOptions.containerOptions.adaptableContainer = this.adaptableContainerId;
|
|
222
|
+
_AdaptableAgGrid
|
|
223
|
+
._initInternal({
|
|
224
|
+
adaptableOptions: this.adaptableOptions,
|
|
225
|
+
gridOptions: this.gridOptions,
|
|
226
|
+
modules: this.modules,
|
|
227
|
+
variant: 'angular',
|
|
228
|
+
renderAgGridFrameworkComponent: (gridOptions) => this.adaptableControllerService.renderAgGridFrameworkComponent(gridOptions),
|
|
229
|
+
})
|
|
230
|
+
.then((adaptableApi) => {
|
|
231
|
+
this.adaptableApi = adaptableApi;
|
|
232
|
+
adaptableApi.internalApi
|
|
233
|
+
.getAdaptableInstance()
|
|
234
|
+
._onIncludeFired('FrameworkComponentChange', ({ command, frameworkComponent, containerDomNode, componentType }) => {
|
|
235
|
+
if (command === 'create') {
|
|
236
|
+
this.adaptableControllerService.createFrameworkComponent(frameworkComponent, containerDomNode, componentType, adaptableApi);
|
|
237
|
+
}
|
|
238
|
+
else {
|
|
239
|
+
this.adaptableControllerService.destroyFrameworkComponent(frameworkComponent, componentType, adaptableApi);
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
adaptableApi.eventApi.on('AdaptableReady', (adaptableReadyInfo) => this.adaptableControllerService.onAdaptableReady(adaptableReadyInfo));
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
AdaptableUI.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableUI, deps: [{ token: 'id', attribute: true }, { token: AdaptableControllerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
247
|
+
AdaptableUI.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AdaptableUI, selector: "adaptable-ui", ngImport: i0, template: ` <div
|
|
248
|
+
*ngIf="readyForAdaptableInit"
|
|
249
|
+
[id]="adaptableContainerId"
|
|
250
|
+
[ngStyle]="adaptableContainerStyle"
|
|
251
|
+
></div>`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
252
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableUI, decorators: [{
|
|
253
|
+
type: Component,
|
|
254
|
+
args: [{ selector: 'adaptable-ui', template: ` <div
|
|
255
|
+
*ngIf="readyForAdaptableInit"
|
|
256
|
+
[id]="adaptableContainerId"
|
|
257
|
+
[ngStyle]="adaptableContainerStyle"
|
|
258
|
+
></div>` }]
|
|
259
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
260
|
+
type: Attribute,
|
|
261
|
+
args: ['id']
|
|
262
|
+
}] }, { type: AdaptableControllerService }]; } });
|
|
263
|
+
|
|
264
|
+
class AdaptableAgGridDirective {
|
|
265
|
+
constructor(viewContainer, templateRef, adaptableControllerService) {
|
|
266
|
+
this.viewContainer = viewContainer;
|
|
267
|
+
this.templateRef = templateRef;
|
|
268
|
+
this.adaptableControllerService = adaptableControllerService;
|
|
269
|
+
this.phaseSubscription = this.adaptableControllerService
|
|
270
|
+
.currentInitPhase()
|
|
271
|
+
.subscribe((phase) => {
|
|
272
|
+
if (phase === 'waitForAgGridInit') {
|
|
273
|
+
this.viewContainer.createEmbeddedView(this.templateRef);
|
|
274
|
+
}
|
|
275
|
+
});
|
|
276
|
+
}
|
|
277
|
+
ngOnDestroy() {
|
|
278
|
+
this.phaseSubscription?.unsubscribe();
|
|
139
279
|
}
|
|
140
280
|
}
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type:
|
|
281
|
+
AdaptableAgGridDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAgGridDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }, { token: AdaptableControllerService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
282
|
+
AdaptableAgGridDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AdaptableAgGridDirective, selector: "[adaptable]", ngImport: i0 });
|
|
283
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAgGridDirective, decorators: [{
|
|
144
284
|
type: Directive,
|
|
145
285
|
args: [{
|
|
146
|
-
selector: '
|
|
147
|
-
// ensures each AG Grid instance has its own copy of the service (incl. the framework component references)
|
|
148
|
-
providers: [AdaptableAngularFrameworkComponentService],
|
|
286
|
+
selector: '[adaptable]',
|
|
149
287
|
}]
|
|
150
|
-
}], ctorParameters: function () { return [{ type: i0.
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
288
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }, { type: AdaptableControllerService }]; } });
|
|
289
|
+
|
|
290
|
+
const waitForCondition = (isReady, message = 'Wait time expired', timeout = 5000) => {
|
|
291
|
+
const startTime = Date.now();
|
|
292
|
+
const ready = isReady();
|
|
293
|
+
if (ready) {
|
|
294
|
+
return Promise.resolve();
|
|
295
|
+
}
|
|
296
|
+
return new Promise((resolve, reject) => {
|
|
297
|
+
const wait = (callback) => {
|
|
298
|
+
const ready = isReady();
|
|
299
|
+
if (Date.now() - startTime > timeout) {
|
|
300
|
+
reject(message);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
if (!ready) {
|
|
304
|
+
setTimeout(() => {
|
|
305
|
+
wait(callback);
|
|
306
|
+
}, 16);
|
|
307
|
+
}
|
|
308
|
+
else {
|
|
309
|
+
callback();
|
|
310
|
+
}
|
|
311
|
+
};
|
|
312
|
+
wait(resolve);
|
|
313
|
+
});
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
class AdaptableAgGridAngular extends AgGridAngular {
|
|
317
|
+
constructor(elementDef, viewContainerRef, angularFrameworkOverrides, frameworkComponentWrapper, adaptableControllerService) {
|
|
318
|
+
super(elementDef, viewContainerRef, angularFrameworkOverrides, frameworkComponentWrapper);
|
|
319
|
+
this.adaptableControllerService = adaptableControllerService;
|
|
320
|
+
this.gridOptions = this.adaptableControllerService.gridOptions;
|
|
321
|
+
this.modules = this.adaptableControllerService.modules;
|
|
322
|
+
waitForCondition(() => this.api != null, 'Waiting for AgGrid initialisation expired!', 10000).then(() => {
|
|
323
|
+
this.adaptableControllerService.onAgGridReady(this.api);
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
ngOnChanges(changes) {
|
|
327
|
+
const gridOptionsChange = changes['gridOptions'];
|
|
328
|
+
if (gridOptionsChange) {
|
|
329
|
+
gridOptionsChange.currentValue = this.adaptableControllerService.gridOptions;
|
|
330
|
+
}
|
|
331
|
+
const modulesChange = changes['modules'];
|
|
332
|
+
if (modulesChange) {
|
|
333
|
+
modulesChange.currentValue = this.adaptableControllerService.modules;
|
|
334
|
+
}
|
|
335
|
+
super.ngOnChanges(changes);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
AdaptableAgGridAngular.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAgGridAngular, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i1.AngularFrameworkOverrides }, { token: i1.AngularFrameworkComponentWrapper }, { token: AdaptableControllerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
339
|
+
AdaptableAgGridAngular.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AdaptableAgGridAngular, selector: "adaptable-ag-grid-angular", providers: [AngularFrameworkOverrides, AngularFrameworkComponentWrapper], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: ``, isInline: true, encapsulation: i0.ViewEncapsulation.None });
|
|
340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAgGridAngular, decorators: [{
|
|
341
|
+
type: Component,
|
|
342
|
+
args: [{
|
|
343
|
+
selector: 'adaptable-ag-grid-angular',
|
|
344
|
+
template: ``,
|
|
345
|
+
providers: [AngularFrameworkOverrides, AngularFrameworkComponentWrapper],
|
|
346
|
+
// tell angular we don't want view encapsulation, we don't want a shadow root
|
|
347
|
+
encapsulation: ViewEncapsulation.None,
|
|
348
|
+
}]
|
|
349
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i1.AngularFrameworkOverrides }, { type: i1.AngularFrameworkComponentWrapper }, { type: AdaptableControllerService }]; } });
|
|
159
350
|
|
|
160
351
|
class AdaptableAngularAgGridModule {
|
|
161
352
|
}
|
|
162
353
|
AdaptableAngularAgGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
163
|
-
AdaptableAngularAgGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridModule, declarations: [
|
|
164
|
-
AdaptableAngularAgGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridModule });
|
|
354
|
+
AdaptableAngularAgGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridModule, declarations: [AdaptableProvider, AdaptableUI, AdaptableAgGridDirective, AdaptableAgGridAngular], imports: [CommonModule], exports: [AdaptableProvider, AdaptableUI, AdaptableAgGridDirective, AdaptableAgGridAngular] });
|
|
355
|
+
AdaptableAngularAgGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridModule, imports: [CommonModule] });
|
|
165
356
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AdaptableAngularAgGridModule, decorators: [{
|
|
166
357
|
type: NgModule,
|
|
167
358
|
args: [{
|
|
168
|
-
declarations: [
|
|
169
|
-
imports: [],
|
|
170
|
-
exports: [
|
|
359
|
+
declarations: [AdaptableProvider, AdaptableUI, AdaptableAgGridDirective, AdaptableAgGridAngular],
|
|
360
|
+
imports: [CommonModule],
|
|
361
|
+
exports: [AdaptableProvider, AdaptableUI, AdaptableAgGridDirective, AdaptableAgGridAngular],
|
|
171
362
|
providers: [],
|
|
172
363
|
}]
|
|
173
364
|
}] });
|
|
@@ -180,5 +371,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
|
180
371
|
* Generated bundle index. Do not edit.
|
|
181
372
|
*/
|
|
182
373
|
|
|
183
|
-
export { ADAPTABLE_API,
|
|
374
|
+
export { ADAPTABLE_API, AdaptableAgGridAngular, AdaptableAgGridDirective, AdaptableAngularAgGridModule, AdaptableProvider, AdaptableUI };
|
|
184
375
|
//# sourceMappingURL=adaptabletools-adaptable-angular-aggrid.mjs.map
|
|
@@ -1 +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;QAFtB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAClB,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB,CAAqB;QACxC,IAAM,CAAA,MAAA,GAAN,MAAM,CAAgB;AAE9B,QAAA,IAAI,CAAC,oBAAoB,GAAG,IAAI,OAAO,EAAoD,CAAC;KAC7F;AAED,IAAA,wBAAwB,CACtB,SAAoC,EACpC,gBAA6B,EAC7B,aAAqB,EACrB,YAA0B,EAAA;QAE1B,IAAI;YACF,YAAY,CAAC,O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A,CAAA;sBAAxB,KAAK;gBACG,OAAO,EAAA,CAAA;sBAAf,KAAK;gBACG,WAAW,EAAA,CAAA;sBAAnB,KAAK;gBAEI,cAAc,EAAA,CAAA;sBAAvB,MAAM;;;MCvBI,4BAA4B,CAAA;;0HAA5B,4BAA4B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;2HAA5B,4BAA4B,EAAA,YAAA,EAAA,CALxB,wCAAwC,CAAA,EAAA,OAAA,EAAA,CAE7C,wCAAwC,CAAA,EAAA,CAAA,CAAA;2HAGvC,4BAA4B,EAAA,CAAA,CAAA;4FAA5B,4BAA4B,EAAA,UAAA,EAAA,CAAA;kBANxC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,wCAAwC,CAAC;AACxD,oBAAA,OAAO,EAAE,EAAE;oBACX,OAAO,EAAE,CAAC,wCAAwC,CAAC;AACnD,oBAAA,SAAS,EAAE,EAAE;AACd,iBAAA,CAAA;;;ACRD;;AAEG;;ACFH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"adaptabletools-adaptable-angular-aggrid.mjs","sources":["../../../projects/adaptable-angular-aggrid/src/lib/adaptable-api.token.ts","../../../projects/adaptable-angular-aggrid/src/lib/adaptable-controller.service.ts","../../../projects/adaptable-angular-aggrid/src/lib/adaptable-provider.component.ts","../../../projects/adaptable-angular-aggrid/src/lib/adaptable-ui.component.ts","../../../projects/adaptable-angular-aggrid/src/lib/adaptable-aggrid.directive.ts","../../../projects/adaptable-angular-aggrid/src/lib/waitForCondition.ts","../../../projects/adaptable-angular-aggrid/src/lib/adaptable-angular-aggrid.component.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/Api/AdaptableApi';\nexport const ADAPTABLE_API = new InjectionToken<AdaptableApi>('ADAPTABLE_API');\n","import {\n ApplicationRef,\n ComponentRef,\n createComponent,\n EnvironmentInjector,\n EventEmitter,\n Injectable,\n Injector,\n Type,\n} from '@angular/core';\nimport { BehaviorSubject, Observable } from 'rxjs';\nimport { GridApi, GridOptions, Module } from '@ag-grid-community/core';\nimport { AdaptableOptions } from '@adaptabletools/adaptable/src/AdaptableOptions/AdaptableOptions';\nimport { AngularFrameworkComponent } from '@adaptabletools/adaptable/src/AdaptableOptions/AdaptableFrameworkComponent';\nimport { AdaptableApi } from '@adaptabletools/adaptable/src/Api/AdaptableApi';\nimport { ADAPTABLE_API } from './adaptable-api.token';\nimport { AdaptableReadyInfo } from '@adaptabletools/adaptable/src/Api/Events/AdaptableReady';\n\nexport type AdaptableInitialisationPhase =\n | 'waitForAdaptableProps'\n | 'waitForAdaptableInit'\n | 'waitForAgGridInit'\n | 'waitForAdaptableReady';\n\nexport type RenderAgGridFrameworkComponentResult = false | GridApi;\n@Injectable()\nexport class AdaptableControllerService {\n adaptableOptions: AdaptableOptions;\n gridOptions: GridOptions;\n modules: Module[];\n\n adaptableReady: EventEmitter<AdaptableReadyInfo>;\n\n private phase: BehaviorSubject<AdaptableInitialisationPhase>;\n\n private agGridFrameworkPromise: Promise<RenderAgGridFrameworkComponentResult>;\n private resolveAgGridFrameworkPromise: (result: RenderAgGridFrameworkComponentResult) => void;\n\n private toolbarComponentRefs: WeakMap<AngularFrameworkComponent, ComponentRef<unknown>>;\n constructor(\n private injector: Injector,\n private environmentInjector: EnvironmentInjector,\n private appRef: ApplicationRef\n ) {\n this.adaptableReady = new EventEmitter<AdaptableReadyInfo>();\n this.phase = new BehaviorSubject<AdaptableInitialisationPhase>('waitForAdaptableProps');\n this.agGridFrameworkPromise = new Promise<RenderAgGridFrameworkComponentResult>((resolve) => {\n this.resolveAgGridFrameworkPromise = resolve;\n });\n this.toolbarComponentRefs = new WeakMap<AngularFrameworkComponent, ComponentRef<unknown>>();\n }\n\n currentInitPhase(): Observable<AdaptableInitialisationPhase> {\n return this.phase.asObservable();\n }\n setInitialisationPhase(phase: AdaptableInitialisationPhase) {\n this.phase.next(phase);\n }\n registerAdaptableOptions(adaptableOptions: AdaptableOptions) {\n this.adaptableOptions = adaptableOptions;\n this.checkIfAllPropsAreSet();\n }\n registerGridOptions(gridOptions: GridOptions) {\n this.gridOptions = gridOptions;\n this.checkIfAllPropsAreSet();\n }\n registerModules(modules: Module[]) {\n this.modules = modules;\n this.checkIfAllPropsAreSet();\n }\n renderAgGridFrameworkComponent(\n gridOptions: GridOptions\n ): Promise<RenderAgGridFrameworkComponentResult> {\n this.gridOptions = gridOptions;\n\n this.setInitialisationPhase('waitForAgGridInit');\n\n return this.agGridFrameworkPromise;\n }\n onAdaptableReady(adaptableReadyInfo: AdaptableReadyInfo) {\n this.adaptableReady.emit(adaptableReadyInfo);\n }\n\n onAgGridReady(agGridApi: GridApi) {\n this.resolveAgGridFrameworkPromise(agGridApi);\n this.setInitialisationPhase('waitForAdaptableReady');\n }\n private checkIfAllPropsAreSet() {\n if (this.adaptableOptions && this.gridOptions && this.modules) {\n this.setInitialisationPhase('waitForAdaptableInit');\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 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 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 { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core';\nimport { GridOptions, Module } from '@ag-grid-community/core';\nimport { AdaptableOptions } from '@adaptabletools/adaptable/src/AdaptableOptions/AdaptableOptions';\nimport { AdaptableControllerService } from './adaptable-controller.service';\nimport { AdaptableReadyInfo } from '@adaptabletools/adaptable/src/Api/Events/AdaptableReady';\n\n@Component({\n selector: 'adaptable-provider',\n template: `<ng-content></ng-content>`,\n providers: [AdaptableControllerService],\n styles: [\n `\n :host {\n display: flex;\n flex-direction: var(--ab_flex-direction, column);\n }\n `,\n ],\n})\nexport class AdaptableProvider implements OnChanges {\n @Input()\n adaptableOptions: AdaptableOptions;\n @Input()\n gridOptions: GridOptions;\n @Input()\n modules: Module[];\n\n @Output() adaptableReady: EventEmitter<AdaptableReadyInfo>;\n constructor(private adaptableControllerService: AdaptableControllerService) {\n this.adaptableReady = this.adaptableControllerService.adaptableReady;\n }\n ngOnChanges(changes: SimpleChanges): void {\n const adaptableOptionsChange = changes['adaptableOptions'];\n if (adaptableOptionsChange) {\n if (adaptableOptionsChange.previousValue != undefined) {\n console.error(\n `Mutating AdaptableOptions after Adaptable has been initialised is not supported!`\n );\n } else if (adaptableOptionsChange.currentValue != undefined) {\n this.adaptableControllerService.registerAdaptableOptions(\n adaptableOptionsChange.currentValue\n );\n }\n }\n const gridOptionsChange = changes['gridOptions'];\n if (gridOptionsChange) {\n if (gridOptionsChange.previousValue != undefined) {\n console.error(`Mutating GridOptions after AG Grid has been initialised is not supported!`);\n } else if (gridOptionsChange.currentValue != undefined) {\n this.adaptableControllerService.registerGridOptions(gridOptionsChange.currentValue);\n }\n }\n const modulesChange = changes['modules'];\n if (modulesChange) {\n if (modulesChange.previousValue != undefined) {\n console.error(`Mutating Modules after AG Grid has been initialised is not supported!`);\n } else if (modulesChange.currentValue != undefined) {\n this.adaptableControllerService.registerModules(modulesChange.currentValue);\n }\n }\n }\n\n onAdaptableReady(adaptableReadyInfo: AdaptableReadyInfo) {\n this.adaptableReady.emit(adaptableReadyInfo);\n }\n}\n","import { Attribute, Component, OnDestroy } from '@angular/core';\nimport { AdaptableControllerService } from './adaptable-controller.service';\nimport { AdaptableApi } from '@adaptabletools/adaptable/src/Api/AdaptableApi';\nimport { _AdaptableAgGrid } from '@adaptabletools/adaptable/agGrid';\nimport { AngularFrameworkComponent } from '@adaptabletools/adaptable/src/AdaptableOptions/AdaptableFrameworkComponent';\nimport { AdaptableReadyInfo } from '@adaptabletools/adaptable/src/Api/Events/AdaptableReady';\nimport { Subscription } from 'rxjs';\n\nfunction getRandomInt(max: number): number {\n return Math.floor(Math.random() * Math.floor(max));\n}\n\n@Component({\n selector: 'adaptable-ui',\n template: ` <div\n *ngIf=\"readyForAdaptableInit\"\n [id]=\"adaptableContainerId\"\n [ngStyle]=\"adaptableContainerStyle\"\n ></div>`,\n styles: [],\n})\nexport class AdaptableUI implements OnDestroy {\n readyForAdaptableInit: boolean;\n adaptableContainerId: string;\n adaptableContainerStyle: { [key: string]: string };\n\n private adaptableApi: AdaptableApi;\n\n private phaseSubscription: Subscription;\n constructor(\n @Attribute('id') elementId: string,\n private adaptableControllerService: AdaptableControllerService\n ) {\n this.readyForAdaptableInit = false;\n this.adaptableContainerId = elementId || `adaptable-${getRandomInt(1000)}-${Date.now()}`;\n this.adaptableContainerStyle = {\n display: 'flex',\n 'flex-flow': 'var(--ab_flex-direction, column)',\n };\n\n this.phaseSubscription = this.adaptableControllerService\n .currentInitPhase()\n .subscribe((phase) => {\n if (phase === 'waitForAdaptableInit') {\n this.readyForAdaptableInit = true;\n this.initializeAdaptable();\n }\n });\n }\n ngOnDestroy() {\n this.phaseSubscription?.unsubscribe();\n if (!this.adaptableApi) {\n return;\n }\n this.adaptableApi.destroy({\n unmount: true,\n destroyApi: false,\n });\n this.adaptableApi = null;\n }\n get adaptableOptions() {\n return this.adaptableControllerService.adaptableOptions;\n }\n\n get gridOptions() {\n return this.adaptableControllerService.gridOptions;\n }\n\n get modules() {\n return this.adaptableControllerService.modules;\n }\n\n private initializeAdaptable() {\n this.adaptableOptions.containerOptions = this.adaptableOptions.containerOptions || {};\n this.adaptableOptions.containerOptions.adaptableContainer = this.adaptableContainerId;\n\n _AdaptableAgGrid\n ._initInternal({\n adaptableOptions: this.adaptableOptions,\n gridOptions: this.gridOptions,\n modules: this.modules,\n variant: 'angular',\n renderAgGridFrameworkComponent: (gridOptions) =>\n this.adaptableControllerService.renderAgGridFrameworkComponent(gridOptions),\n })\n .then((adaptableApi) => {\n this.adaptableApi = adaptableApi;\n\n adaptableApi.internalApi\n .getAdaptableInstance()\n ._onIncludeFired(\n 'FrameworkComponentChange',\n ({ command, frameworkComponent, containerDomNode, componentType }) => {\n if (command === 'create') {\n this.adaptableControllerService.createFrameworkComponent(\n frameworkComponent as AngularFrameworkComponent,\n containerDomNode,\n componentType,\n adaptableApi\n );\n } else {\n this.adaptableControllerService.destroyFrameworkComponent(\n frameworkComponent as AngularFrameworkComponent,\n componentType,\n adaptableApi\n );\n }\n }\n );\n\n adaptableApi.eventApi.on('AdaptableReady', (adaptableReadyInfo: AdaptableReadyInfo) =>\n this.adaptableControllerService.onAdaptableReady(adaptableReadyInfo)\n );\n });\n }\n}\n","import { Directive, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';\nimport { AdaptableControllerService } from './adaptable-controller.service';\nimport { Subscription } from 'rxjs';\n\n@Directive({\n selector: '[adaptable]',\n})\nexport class AdaptableAgGridDirective implements OnDestroy {\n private phaseSubscription: Subscription;\n\n constructor(\n private viewContainer: ViewContainerRef,\n private templateRef: TemplateRef<any>,\n private adaptableControllerService: AdaptableControllerService\n ) {\n this.phaseSubscription = this.adaptableControllerService\n .currentInitPhase()\n .subscribe((phase) => {\n if (phase === 'waitForAgGridInit') {\n this.viewContainer.createEmbeddedView(this.templateRef);\n }\n });\n }\n\n ngOnDestroy(): void {\n this.phaseSubscription?.unsubscribe();\n }\n}\n","export const waitForCondition = (\n isReady: () => boolean,\n message = 'Wait time expired',\n timeout = 5000\n): Promise<void> => {\n const startTime = Date.now();\n\n const ready = isReady();\n if (ready) {\n return Promise.resolve();\n }\n return new Promise<void>((resolve, reject) => {\n const wait = (callback: () => void) => {\n const ready = isReady();\n\n if (Date.now() - startTime > timeout) {\n reject(message);\n return;\n }\n\n if (!ready) {\n setTimeout(() => {\n wait(callback);\n }, 16);\n } else {\n callback();\n }\n };\n\n wait(resolve);\n });\n};\n","import {\n Component,\n ElementRef,\n SimpleChanges,\n ViewContainerRef,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n AgGridAngular,\n AngularFrameworkComponentWrapper,\n AngularFrameworkOverrides,\n} from '@ag-grid-community/angular';\nimport { AdaptableControllerService } from './adaptable-controller.service';\nimport { waitForCondition } from './waitForCondition';\n\n@Component({\n selector: 'adaptable-ag-grid-angular',\n template: ``,\n providers: [AngularFrameworkOverrides, AngularFrameworkComponentWrapper],\n // tell angular we don't want view encapsulation, we don't want a shadow root\n encapsulation: ViewEncapsulation.None,\n})\nexport class AdaptableAgGridAngular extends AgGridAngular {\n constructor(\n elementDef: ElementRef,\n viewContainerRef: ViewContainerRef,\n angularFrameworkOverrides: AngularFrameworkOverrides,\n frameworkComponentWrapper: AngularFrameworkComponentWrapper,\n private adaptableControllerService: AdaptableControllerService\n ) {\n super(elementDef, viewContainerRef, angularFrameworkOverrides, frameworkComponentWrapper);\n\n this.gridOptions = this.adaptableControllerService.gridOptions;\n this.modules = this.adaptableControllerService.modules;\n\n waitForCondition(\n () => this.api != null,\n 'Waiting for AgGrid initialisation expired!',\n 10000\n ).then(() => {\n this.adaptableControllerService.onAgGridReady(this.api);\n });\n }\n ngOnChanges(changes: SimpleChanges) {\n const gridOptionsChange = changes['gridOptions'];\n if (gridOptionsChange) {\n gridOptionsChange.currentValue = this.adaptableControllerService.gridOptions;\n }\n const modulesChange = changes['modules'];\n if (modulesChange) {\n modulesChange.currentValue = this.adaptableControllerService.modules;\n }\n super.ngOnChanges(changes);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { AdaptableProvider } from './adaptable-provider.component';\nimport { AdaptableUI } from './adaptable-ui.component';\nimport { AdaptableAgGridDirective } from './adaptable-aggrid.directive';\nimport { AdaptableAgGridAngular } from './adaptable-angular-aggrid.component';\n\n@NgModule({\n declarations: [AdaptableProvider, AdaptableUI, AdaptableAgGridDirective, AdaptableAgGridAngular],\n imports: [CommonModule],\n exports: [AdaptableProvider, AdaptableUI, AdaptableAgGridDirective, AdaptableAgGridAngular],\n providers: [],\n})\nexport class AdaptableAngularAgGridModule {}\n","/*\n * Public API Surface of adaptable-angular-aggrid\n */\nexport * from '@adaptabletools/adaptable/src/types';\nexport { AdaptableQL } from '@adaptabletools/adaptable/agGrid';\nexport * from './lib/adaptable-angular-aggrid.module';\nexport * from './lib/adaptable-provider.component';\nexport * from './lib/adaptable-ui.component';\nexport * from './lib/adaptable-aggrid.directive';\nexport * from './lib/adaptable-angular-aggrid.component';\nexport { ADAPTABLE_API } from './lib/adaptable-api.token';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i1.AdaptableControllerService","i2.AdaptableControllerService"],"mappings":";;;;;;;;;;;MAEa,aAAa,GAAG,IAAI,cAAc,CAAe,eAAe;;MCwBhE,0BAA0B,CAAA;AAarC,IAAA,WAAA,CACU,QAAkB,EAClB,mBAAwC,EACxC,MAAsB,EAAA;QAFtB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAClB,IAAmB,CAAA,mBAAA,GAAnB,mBAAmB,CAAqB;QACxC,IAAM,CAAA,MAAA,GAAN,MAAM,CAAgB;AAE9B,QAAA,IAAI,CAAC,cAAc,GAAG,IAAI,YAAY,EAAsB,CAAC;QAC7D,IAAI,CAAC,KAAK,GAAG,IAAI,eAAe,CAA+B,uBAAuB,CAAC,CAAC;QACxF,IAAI,CAAC,sBAAsB,GAAG,IAAI,OAAO,CAAuC,CAAC,OAAO,KAAI;AAC1F,YAAA,IAAI,CAAC,6BAA6B,GAAG,OAAO,CAAC;AAC/C,SAAC,CAAC,CAAC;AACH,QAAA,IAAI,CAAC,oBAAoB,GAAG,IAAI,OAAO,EAAoD,CAAC;KAC7F;IAED,gBAAgB,GAAA;AACd,QAAA,OAAO,IAAI,CAAC,KAAK,CAAC,YAAY,EAAE,CAAC;KAClC;AACD,IAAA,sBAAsB,CAAC,KAAmC,EAAA;AACxD,QAAA,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACxB;AACD,IAAA,wBAAwB,CAAC,gBAAkC,EAAA;AACzD,QAAA,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC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