@adaptabletools/adaptable-angular-aggrid 13.0.0-canary.0 → 13.0.0-canary.1

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,578 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@adaptabletools/adaptable/src/agGrid/Adaptable'), require('@adaptabletools/adaptable/src/Utilities/Helpers/LoggingHelper'), require('@adaptabletools/adaptable/src/types'), require('@adaptabletools/adaptable/src/AdaptableComponents'), require('@adaptabletools/adaptable/agGrid')) :
3
+ typeof define === 'function' && define.amd ? define('@adaptabletools/adaptable-angular-aggrid', ['exports', '@angular/core', '@adaptabletools/adaptable/src/agGrid/Adaptable', '@adaptabletools/adaptable/src/Utilities/Helpers/LoggingHelper', '@adaptabletools/adaptable/src/types', '@adaptabletools/adaptable/src/AdaptableComponents', '@adaptabletools/adaptable/agGrid'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.adaptabletools = global.adaptabletools || {}, global.adaptabletools["adaptable-angular-aggrid"] = {}), global.ng.core, global.Adaptable, global.LoggingHelper, global.types, global.AdaptableComponents, global.agGrid));
5
+ })(this, (function (exports, i0, Adaptable, LoggingHelper, types, AdaptableComponents, agGrid) { 'use strict';
6
+
7
+ function _interopNamespace(e) {
8
+ if (e && e.__esModule) return e;
9
+ var n = Object.create(null);
10
+ if (e) {
11
+ Object.keys(e).forEach(function (k) {
12
+ if (k !== 'default') {
13
+ var d = Object.getOwnPropertyDescriptor(e, k);
14
+ Object.defineProperty(n, k, d.get ? d : {
15
+ enumerable: true,
16
+ get: function () { return e[k]; }
17
+ });
18
+ }
19
+ });
20
+ }
21
+ n["default"] = e;
22
+ return Object.freeze(n);
23
+ }
24
+
25
+ var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
26
+
27
+ /******************************************************************************
28
+ Copyright (c) Microsoft Corporation.
29
+
30
+ Permission to use, copy, modify, and/or distribute this software for any
31
+ purpose with or without fee is hereby granted.
32
+
33
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
34
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
35
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
36
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
37
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
38
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
39
+ PERFORMANCE OF THIS SOFTWARE.
40
+ ***************************************************************************** */
41
+ /* global Reflect, Promise */
42
+ var extendStatics = function (d, b) {
43
+ extendStatics = Object.setPrototypeOf ||
44
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
45
+ function (d, b) { for (var p in b)
46
+ if (Object.prototype.hasOwnProperty.call(b, p))
47
+ d[p] = b[p]; };
48
+ return extendStatics(d, b);
49
+ };
50
+ function __extends(d, b) {
51
+ if (typeof b !== "function" && b !== null)
52
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
53
+ extendStatics(d, b);
54
+ function __() { this.constructor = d; }
55
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
56
+ }
57
+ var __assign = function () {
58
+ __assign = Object.assign || function __assign(t) {
59
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
60
+ s = arguments[i];
61
+ for (var p in s)
62
+ if (Object.prototype.hasOwnProperty.call(s, p))
63
+ t[p] = s[p];
64
+ }
65
+ return t;
66
+ };
67
+ return __assign.apply(this, arguments);
68
+ };
69
+ function __rest(s, e) {
70
+ var t = {};
71
+ for (var p in s)
72
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
73
+ t[p] = s[p];
74
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
75
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
76
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
77
+ t[p[i]] = s[p[i]];
78
+ }
79
+ return t;
80
+ }
81
+ function __decorate(decorators, target, key, desc) {
82
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
83
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
84
+ r = Reflect.decorate(decorators, target, key, desc);
85
+ else
86
+ for (var i = decorators.length - 1; i >= 0; i--)
87
+ if (d = decorators[i])
88
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
89
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
90
+ }
91
+ function __param(paramIndex, decorator) {
92
+ return function (target, key) { decorator(target, key, paramIndex); };
93
+ }
94
+ function __metadata(metadataKey, metadataValue) {
95
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
96
+ return Reflect.metadata(metadataKey, metadataValue);
97
+ }
98
+ function __awaiter(thisArg, _arguments, P, generator) {
99
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
100
+ return new (P || (P = Promise))(function (resolve, reject) {
101
+ function fulfilled(value) { try {
102
+ step(generator.next(value));
103
+ }
104
+ catch (e) {
105
+ reject(e);
106
+ } }
107
+ function rejected(value) { try {
108
+ step(generator["throw"](value));
109
+ }
110
+ catch (e) {
111
+ reject(e);
112
+ } }
113
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
114
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
115
+ });
116
+ }
117
+ function __generator(thisArg, body) {
118
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
119
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
120
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
121
+ function verb(n) { return function (v) { return step([n, v]); }; }
122
+ function step(op) {
123
+ if (f)
124
+ throw new TypeError("Generator is already executing.");
125
+ while (_)
126
+ try {
127
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
128
+ return t;
129
+ if (y = 0, t)
130
+ op = [op[0] & 2, t.value];
131
+ switch (op[0]) {
132
+ case 0:
133
+ case 1:
134
+ t = op;
135
+ break;
136
+ case 4:
137
+ _.label++;
138
+ return { value: op[1], done: false };
139
+ case 5:
140
+ _.label++;
141
+ y = op[1];
142
+ op = [0];
143
+ continue;
144
+ case 7:
145
+ op = _.ops.pop();
146
+ _.trys.pop();
147
+ continue;
148
+ default:
149
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
150
+ _ = 0;
151
+ continue;
152
+ }
153
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
154
+ _.label = op[1];
155
+ break;
156
+ }
157
+ if (op[0] === 6 && _.label < t[1]) {
158
+ _.label = t[1];
159
+ t = op;
160
+ break;
161
+ }
162
+ if (t && _.label < t[2]) {
163
+ _.label = t[2];
164
+ _.ops.push(op);
165
+ break;
166
+ }
167
+ if (t[2])
168
+ _.ops.pop();
169
+ _.trys.pop();
170
+ continue;
171
+ }
172
+ op = body.call(thisArg, _);
173
+ }
174
+ catch (e) {
175
+ op = [6, e];
176
+ y = 0;
177
+ }
178
+ finally {
179
+ f = t = 0;
180
+ }
181
+ if (op[0] & 5)
182
+ throw op[1];
183
+ return { value: op[0] ? op[1] : void 0, done: true };
184
+ }
185
+ }
186
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
187
+ if (k2 === undefined)
188
+ k2 = k;
189
+ var desc = Object.getOwnPropertyDescriptor(m, k);
190
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
191
+ desc = { enumerable: true, get: function () { return m[k]; } };
192
+ }
193
+ Object.defineProperty(o, k2, desc);
194
+ }) : (function (o, m, k, k2) {
195
+ if (k2 === undefined)
196
+ k2 = k;
197
+ o[k2] = m[k];
198
+ });
199
+ function __exportStar(m, o) {
200
+ for (var p in m)
201
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
202
+ __createBinding(o, m, p);
203
+ }
204
+ function __values(o) {
205
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
206
+ if (m)
207
+ return m.call(o);
208
+ if (o && typeof o.length === "number")
209
+ return {
210
+ next: function () {
211
+ if (o && i >= o.length)
212
+ o = void 0;
213
+ return { value: o && o[i++], done: !o };
214
+ }
215
+ };
216
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
217
+ }
218
+ function __read(o, n) {
219
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
220
+ if (!m)
221
+ return o;
222
+ var i = m.call(o), r, ar = [], e;
223
+ try {
224
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
225
+ ar.push(r.value);
226
+ }
227
+ catch (error) {
228
+ e = { error: error };
229
+ }
230
+ finally {
231
+ try {
232
+ if (r && !r.done && (m = i["return"]))
233
+ m.call(i);
234
+ }
235
+ finally {
236
+ if (e)
237
+ throw e.error;
238
+ }
239
+ }
240
+ return ar;
241
+ }
242
+ /** @deprecated */
243
+ function __spread() {
244
+ for (var ar = [], i = 0; i < arguments.length; i++)
245
+ ar = ar.concat(__read(arguments[i]));
246
+ return ar;
247
+ }
248
+ /** @deprecated */
249
+ function __spreadArrays() {
250
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
251
+ s += arguments[i].length;
252
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
253
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
254
+ r[k] = a[j];
255
+ return r;
256
+ }
257
+ function __spreadArray(to, from, pack) {
258
+ if (pack || arguments.length === 2)
259
+ for (var i = 0, l = from.length, ar; i < l; i++) {
260
+ if (ar || !(i in from)) {
261
+ if (!ar)
262
+ ar = Array.prototype.slice.call(from, 0, i);
263
+ ar[i] = from[i];
264
+ }
265
+ }
266
+ return to.concat(ar || Array.prototype.slice.call(from));
267
+ }
268
+ function __await(v) {
269
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
270
+ }
271
+ function __asyncGenerator(thisArg, _arguments, generator) {
272
+ if (!Symbol.asyncIterator)
273
+ throw new TypeError("Symbol.asyncIterator is not defined.");
274
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
275
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
276
+ function verb(n) { if (g[n])
277
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
278
+ function resume(n, v) { try {
279
+ step(g[n](v));
280
+ }
281
+ catch (e) {
282
+ settle(q[0][3], e);
283
+ } }
284
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
285
+ function fulfill(value) { resume("next", value); }
286
+ function reject(value) { resume("throw", value); }
287
+ function settle(f, v) { if (f(v), q.shift(), q.length)
288
+ resume(q[0][0], q[0][1]); }
289
+ }
290
+ function __asyncDelegator(o) {
291
+ var i, p;
292
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
293
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
294
+ }
295
+ function __asyncValues(o) {
296
+ if (!Symbol.asyncIterator)
297
+ throw new TypeError("Symbol.asyncIterator is not defined.");
298
+ var m = o[Symbol.asyncIterator], i;
299
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
300
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
301
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
302
+ }
303
+ function __makeTemplateObject(cooked, raw) {
304
+ if (Object.defineProperty) {
305
+ Object.defineProperty(cooked, "raw", { value: raw });
306
+ }
307
+ else {
308
+ cooked.raw = raw;
309
+ }
310
+ return cooked;
311
+ }
312
+ ;
313
+ var __setModuleDefault = Object.create ? (function (o, v) {
314
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
315
+ }) : function (o, v) {
316
+ o["default"] = v;
317
+ };
318
+ function __importStar(mod) {
319
+ if (mod && mod.__esModule)
320
+ return mod;
321
+ var result = {};
322
+ if (mod != null)
323
+ for (var k in mod)
324
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
325
+ __createBinding(result, mod, k);
326
+ __setModuleDefault(result, mod);
327
+ return result;
328
+ }
329
+ function __importDefault(mod) {
330
+ return (mod && mod.__esModule) ? mod : { default: mod };
331
+ }
332
+ function __classPrivateFieldGet(receiver, state, kind, f) {
333
+ if (kind === "a" && !f)
334
+ throw new TypeError("Private accessor was defined without a getter");
335
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
336
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
337
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
338
+ }
339
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
340
+ if (kind === "m")
341
+ throw new TypeError("Private method is not writable");
342
+ if (kind === "a" && !f)
343
+ throw new TypeError("Private accessor was defined without a setter");
344
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
345
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
346
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
347
+ }
348
+ function __classPrivateFieldIn(state, receiver) {
349
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function"))
350
+ throw new TypeError("Cannot use 'in' operator on non-object");
351
+ return typeof state === "function" ? receiver === state : state.has(receiver);
352
+ }
353
+
354
+ var ADAPTABLE_API = new i0.InjectionToken('ADAPTABLE_API');
355
+
356
+ var AdaptableAngularFrameworkComponentService = /** @class */ (function () {
357
+ function AdaptableAngularFrameworkComponentService(resolver, injector, appRef) {
358
+ this.resolver = resolver;
359
+ this.injector = injector;
360
+ this.appRef = appRef;
361
+ this.toolbarComponentRefs = new WeakMap();
362
+ }
363
+ AdaptableAngularFrameworkComponentService.prototype.createFrameworkComponent = function (component, containerDomNode, componentType, adaptableApi) {
364
+ try {
365
+ LoggingHelper.LogAdaptableInfo("Creating framework component for " + componentType, containerDomNode);
366
+ if (this.toolbarComponentRefs.has(component)) {
367
+ LoggingHelper.LogAdaptableInfo("Creation of framework component " + componentType + " skipped as it is already present", containerDomNode);
368
+ return;
369
+ }
370
+ var angularComponentRef = this.createAngularComponent(component.type, containerDomNode, adaptableApi);
371
+ if (component.onSetup) {
372
+ Object.assign(angularComponentRef.instance, component.onSetup({ adaptableApi: adaptableApi }));
373
+ }
374
+ this.toolbarComponentRefs.set(component, angularComponentRef);
375
+ }
376
+ catch (err) {
377
+ LoggingHelper.LogAdaptableError("Cannot correctly create framework component for " + componentType, err);
378
+ }
379
+ };
380
+ AdaptableAngularFrameworkComponentService.prototype.destroyFrameworkComponent = function (component, componentType) {
381
+ LoggingHelper.LogAdaptableInfo("Destroying framework component for " + componentType);
382
+ var toolbarComponentRef = this.toolbarComponentRefs.get(component);
383
+ if (toolbarComponentRef) {
384
+ try {
385
+ toolbarComponentRef.destroy();
386
+ this.toolbarComponentRefs.delete(component);
387
+ }
388
+ catch (err) {
389
+ LoggingHelper.LogAdaptableError("Cannot correctly destroy framework component for " + componentType, err);
390
+ }
391
+ }
392
+ else {
393
+ LoggingHelper.LogAdaptableInfo("Cannot correctly destroy framework component for " + componentType + " because the reference is no longer available");
394
+ }
395
+ };
396
+ AdaptableAngularFrameworkComponentService.prototype.createAngularComponent = function (angularComponentType, domContainer, api) {
397
+ // extend standard DI context with AdaptableApi
398
+ var toolbarInjector = i0.Injector.create({
399
+ providers: [
400
+ {
401
+ provide: ADAPTABLE_API,
402
+ useValue: api,
403
+ },
404
+ ],
405
+ parent: this.injector,
406
+ });
407
+ // create the component
408
+ var componentFactory = this.resolver.resolveComponentFactory(angularComponentType);
409
+ var componentRef = componentFactory.create(toolbarInjector, [], domContainer);
410
+ // attach newly created component to Angular change detection
411
+ this.appRef.attachView(componentRef.hostView);
412
+ // trigger an early change detection
413
+ componentRef.hostView.detectChanges();
414
+ return componentRef;
415
+ };
416
+ return AdaptableAngularFrameworkComponentService;
417
+ }());
418
+ AdaptableAngularFrameworkComponentService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AdaptableAngularFrameworkComponentService, deps: [{ token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.Injector }, { token: i0__namespace.ApplicationRef }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
419
+ AdaptableAngularFrameworkComponentService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AdaptableAngularFrameworkComponentService, providedIn: 'root' });
420
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AdaptableAngularFrameworkComponentService, decorators: [{
421
+ type: i0.Injectable,
422
+ args: [{
423
+ providedIn: 'root',
424
+ }]
425
+ }], ctorParameters: function () { return [{ type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.Injector }, { type: i0__namespace.ApplicationRef }]; } });
426
+
427
+ function getRandomInt(max) {
428
+ return Math.floor(Math.random() * Math.floor(max));
429
+ }
430
+ var AdaptableAngularAgGridComponentDirective = /** @class */ (function () {
431
+ function AdaptableAngularAgGridComponentDirective(renderer, el, frameworkComponentService) {
432
+ this.renderer = renderer;
433
+ this.el = el;
434
+ this.frameworkComponentService = frameworkComponentService;
435
+ this.adaptableReady = new i0.EventEmitter();
436
+ var seedId = getRandomInt(1000) + "-" + Date.now();
437
+ this.adaptableContainerId = "adaptable-" + seedId;
438
+ }
439
+ AdaptableAngularAgGridComponentDirective.prototype.ngOnInit = function () {
440
+ return __awaiter(this, void 0, void 0, function () {
441
+ var adaptableApi;
442
+ var _this = this;
443
+ return __generator(this, function (_a) {
444
+ switch (_a.label) {
445
+ case 0:
446
+ if (this.modules == null) {
447
+ throw new Error("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.");
448
+ }
449
+ this.createAngularWrapperContainer();
450
+ this.adaptableOptions.gridOptions = this.gridOptions;
451
+ this.adaptableOptions.containerOptions = this.adaptableOptions.containerOptions || {};
452
+ this.adaptableOptions.containerOptions.adaptableContainer = this.adaptableContainerId;
453
+ return [4 /*yield*/, Adaptable.Adaptable.initInternal(this.adaptableOptions, {
454
+ waitForAgGrid: true,
455
+ })];
456
+ case 1:
457
+ adaptableApi = _a.sent();
458
+ adaptableApi.internalApi
459
+ .getAdaptableInstance()
460
+ ._onIncludeFired('FrameworkComponentChange', function (_a) {
461
+ var command = _a.command, frameworkComponent = _a.frameworkComponent, containerDomNode = _a.containerDomNode, componentType = _a.componentType;
462
+ if (command === 'create') {
463
+ _this.frameworkComponentService.createFrameworkComponent(frameworkComponent, containerDomNode, componentType, adaptableApi);
464
+ }
465
+ else {
466
+ _this.frameworkComponentService.destroyFrameworkComponent(frameworkComponent, componentType);
467
+ }
468
+ });
469
+ adaptableApi.eventApi.on('AdaptableReady', function (adaptableReadyInfo) { return _this.adaptableReady.emit(adaptableReadyInfo); });
470
+ this.adaptableApi = adaptableApi;
471
+ return [2 /*return*/];
472
+ }
473
+ });
474
+ });
475
+ };
476
+ AdaptableAngularAgGridComponentDirective.prototype.ngOnDestroy = function () {
477
+ if (!this.adaptableApi) {
478
+ return;
479
+ }
480
+ this.adaptableApi.destroy({
481
+ unmount: true,
482
+ destroyApi: false,
483
+ });
484
+ this.adaptableApi = null;
485
+ };
486
+ // creates the container for the adaptable toolbar and inserts it before the ag-grid element
487
+ AdaptableAngularAgGridComponentDirective.prototype.createAngularWrapperContainer = function () {
488
+ var adaptableContainer = this.renderer.createElement('div');
489
+ adaptableContainer.style.setProperty('display', 'flex');
490
+ adaptableContainer.style.setProperty('flex-flow', 'var(--ab_flex-direction, column)');
491
+ this.renderer.setProperty(adaptableContainer, 'id', this.adaptableContainerId);
492
+ this.renderer.insertBefore(this.renderer.parentNode(this.el.nativeElement), adaptableContainer, this.el.nativeElement);
493
+ };
494
+ return AdaptableAngularAgGridComponentDirective;
495
+ }());
496
+ AdaptableAngularAgGridComponentDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AdaptableAngularAgGridComponentDirective, deps: [{ token: i0__namespace.Renderer2 }, { token: i0__namespace.ElementRef }, { token: AdaptableAngularFrameworkComponentService }], target: i0__namespace.ɵɵFactoryTarget.Directive });
497
+ AdaptableAngularAgGridComponentDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.16", type: AdaptableAngularAgGridComponentDirective, selector: "ag-grid-angular[adaptableOptions]", inputs: { adaptableOptions: "adaptableOptions", modules: "modules", gridOptions: "gridOptions" }, outputs: { adaptableReady: "adaptableReady" }, providers: [AdaptableAngularFrameworkComponentService], ngImport: i0__namespace });
498
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AdaptableAngularAgGridComponentDirective, decorators: [{
499
+ type: i0.Directive,
500
+ args: [{
501
+ selector: 'ag-grid-angular[adaptableOptions]',
502
+ // ensures each AG Grid instance has its own copy of the service (incl. the framework component references)
503
+ providers: [AdaptableAngularFrameworkComponentService],
504
+ }]
505
+ }], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }, { type: i0__namespace.ElementRef }, { type: AdaptableAngularFrameworkComponentService }]; }, propDecorators: { adaptableOptions: [{
506
+ type: i0.Input
507
+ }], modules: [{
508
+ type: i0.Input
509
+ }], gridOptions: [{
510
+ type: i0.Input
511
+ }], adaptableReady: [{
512
+ type: i0.Output
513
+ }] } });
514
+
515
+ var AdaptableAngularAgGridModule = /** @class */ (function () {
516
+ function AdaptableAngularAgGridModule() {
517
+ }
518
+ return AdaptableAngularAgGridModule;
519
+ }());
520
+ AdaptableAngularAgGridModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AdaptableAngularAgGridModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
521
+ AdaptableAngularAgGridModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AdaptableAngularAgGridModule, declarations: [AdaptableAngularAgGridComponentDirective], exports: [AdaptableAngularAgGridComponentDirective] });
522
+ AdaptableAngularAgGridModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AdaptableAngularAgGridModule, providers: [], imports: [[]] });
523
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: AdaptableAngularAgGridModule, decorators: [{
524
+ type: i0.NgModule,
525
+ args: [{
526
+ declarations: [AdaptableAngularAgGridComponentDirective],
527
+ imports: [],
528
+ exports: [AdaptableAngularAgGridComponentDirective],
529
+ providers: [],
530
+ }]
531
+ }] });
532
+
533
+ /*
534
+ * Public API Surface of adaptable-angular-aggrid
535
+ */
536
+
537
+ /**
538
+ * Generated bundle index. Do not edit.
539
+ */
540
+
541
+ Object.defineProperty(exports, 'AdaptableToolPanelAgGridComponent', {
542
+ enumerable: true,
543
+ get: function () { return AdaptableComponents.AdaptableToolPanelAgGridComponent; }
544
+ });
545
+ Object.defineProperty(exports, 'AdaptableAggregatedBooleanExpressionFunctions', {
546
+ enumerable: true,
547
+ get: function () { return agGrid.AdaptableAggregatedBooleanExpressionFunctions; }
548
+ });
549
+ Object.defineProperty(exports, 'AdaptableAggregatedScalarExpressionFunctions', {
550
+ enumerable: true,
551
+ get: function () { return agGrid.AdaptableAggregatedScalarExpressionFunctions; }
552
+ });
553
+ Object.defineProperty(exports, 'AdaptableBooleanExpressionFunctions', {
554
+ enumerable: true,
555
+ get: function () { return agGrid.AdaptableBooleanExpressionFunctions; }
556
+ });
557
+ Object.defineProperty(exports, 'AdaptableObservableExpressionFunctions', {
558
+ enumerable: true,
559
+ get: function () { return agGrid.AdaptableObservableExpressionFunctions; }
560
+ });
561
+ Object.defineProperty(exports, 'AdaptableScalarExpressionFunctions', {
562
+ enumerable: true,
563
+ get: function () { return agGrid.AdaptableScalarExpressionFunctions; }
564
+ });
565
+ exports.ADAPTABLE_API = ADAPTABLE_API;
566
+ exports.AdaptableAngularAgGridComponentDirective = AdaptableAngularAgGridComponentDirective;
567
+ exports.AdaptableAngularAgGridModule = AdaptableAngularAgGridModule;
568
+ Object.keys(types).forEach(function (k) {
569
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
570
+ enumerable: true,
571
+ get: function () { return types[k]; }
572
+ });
573
+ });
574
+
575
+ Object.defineProperty(exports, '__esModule', { value: true });
576
+
577
+ }));
578
+ //# sourceMappingURL=adaptabletools-adaptable-angular-aggrid.umd.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"adaptabletools-adaptable-angular-aggrid.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../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":["/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n var desc = Object.getOwnPropertyDescriptor(m, k);\r\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\r\n desc = { enumerable: true, get: function() { return m[k]; } };\r\n }\r\n Object.defineProperty(o, k2, desc);\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, state, kind, f) {\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a getter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot read private member from an object whose class did not declare it\");\r\n return kind === \"m\" ? f : kind === \"a\" ? f.call(receiver) : f ? f.value : state.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, state, value, kind, f) {\r\n if (kind === \"m\") throw new TypeError(\"Private method is not writable\");\r\n if (kind === \"a\" && !f) throw new TypeError(\"Private accessor was defined without a setter\");\r\n if (typeof state === \"function\" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError(\"Cannot write private member to an object whose class did not declare it\");\r\n return (kind === \"a\" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;\r\n}\r\n\r\nexport function __classPrivateFieldIn(state, receiver) {\r\n if (receiver === null || (typeof receiver !== \"object\" && typeof receiver !== \"function\")) throw new TypeError(\"Cannot use 'in' operator on non-object\");\r\n return typeof state === \"function\" ? receiver === state : state.has(receiver);\r\n}\r\n","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 ComponentFactoryResolver,\n ComponentRef,\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 {\n LogAdaptableError,\n LogAdaptableInfo,\n} from '@adaptabletools/adaptable/src/Utilities/Helpers/LoggingHelper';\nimport { AngularFrameworkComponent } from '@adaptabletools/adaptable/types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AdaptableAngularFrameworkComponentService {\n private toolbarComponentRefs = new WeakMap<AngularFrameworkComponent, ComponentRef<unknown>>();\n\n constructor(\n private resolver: ComponentFactoryResolver,\n private injector: Injector,\n private appRef: ApplicationRef\n ) {}\n\n createFrameworkComponent(\n component: AngularFrameworkComponent,\n containerDomNode: HTMLElement,\n componentType: string,\n adaptableApi: AdaptableApi\n ): void {\n try {\n LogAdaptableInfo(`Creating framework component for ${componentType}`, containerDomNode);\n if (this.toolbarComponentRefs.has(component)) {\n LogAdaptableInfo(\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 LogAdaptableError(`Cannot correctly create framework component for ${componentType}`, err);\n }\n }\n\n destroyFrameworkComponent(component: AngularFrameworkComponent, componentType: string): void {\n LogAdaptableInfo(`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 LogAdaptableError(`Cannot correctly destroy framework component for ${componentType}`, err);\n }\n } else {\n LogAdaptableInfo(\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 componentFactory = this.resolver.resolveComponentFactory(angularComponentType);\n const componentRef = componentFactory.create(toolbarInjector, [], domContainer);\n\n // attach newly created component to Angular change detection\n this.appRef.attachView(componentRef.hostView);\n // trigger an early change detection\n componentRef.hostView.detectChanges();\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 implements OnDestroy, OnInit {\n @Input() adaptableOptions: AdaptableOptions;\n @Input() modules: Module[];\n @Input() gridOptions: GridOptions;\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.gridOptions = this.gridOptions;\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 waitForAgGrid: true,\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 );\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 { AdaptableToolPanelAgGridComponent } from '@adaptabletools/adaptable/src/AdaptableComponents';\nexport {\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":["InjectionToken","LogAdaptableInfo","LogAdaptableError","Injector","i0","Injectable","EventEmitter","Adaptable","i1.AdaptableAngularFrameworkComponentService","Directive","Input","Output","NgModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;IAAA;;;;;;;;;;;;;IAagF;IAChF;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC,EAAA;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,EAAA,EAAI,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5E,UAAU,CAAC,EAAE,CAAC,EAAA,EAAI,KAAK,IAAI,CAAC,IAAI,CAAC;gBAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC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,19 @@
1
1
  {
2
2
  "name": "@adaptabletools/adaptable-angular-aggrid",
3
- "version": "13.0.0-canary.0",
3
+ "version": "13.0.0-canary.1",
4
4
  "description": "Angular version of AdapTable - the powerful AG Grid add-on that provides all the rich functionality that advanced users expect from their DataGrids and Data Tables",
5
5
  "license": "contact sales@adaptabletools.com for details",
6
6
  "peerDependencies": {
7
7
  "@ag-grid-community/core": ">=28.1.0",
8
8
  "@ag-grid-community/angular": ">=28.1.0",
9
- "@angular/common": ">=13.3.0",
10
- "@angular/core": ">=13.3.0"
9
+ "@angular/common": ">=12.2.0",
10
+ "@angular/core": ">=12.2.0"
11
11
  },
12
12
  "dependencies": {
13
13
  "tslib": "^2.3.0",
14
- "@adaptabletools/adaptable": "13.0.0-canary.0"
14
+ "@adaptabletools/adaptable": "13.0.0-canary.1"
15
15
  },
16
- "es2020": "fesm2020/adaptabletools-adaptable-angular-aggrid.mjs",
17
- "esm2020": "esm2020/adaptabletools-adaptable-angular-aggrid.mjs",
18
- "fesm2020": "fesm2020/adaptabletools-adaptable-angular-aggrid.mjs",
16
+ "main": "bundles/adaptabletools-adaptable-angular-aggrid.umd.js",
19
17
  "typings": "adaptabletools-adaptable-angular-aggrid.d.ts",
20
- "exports": {
21
- "./package.json": {
22
- "default": "./package.json"
23
- },
24
- ".": {
25
- "types": "./adaptabletools-adaptable-angular-aggrid.d.ts",
26
- "esm2020": "./esm2020/adaptabletools-adaptable-angular-aggrid.mjs",
27
- "es2020": "./fesm2020/adaptabletools-adaptable-angular-aggrid.mjs",
28
- "es2015": "./fesm2015/adaptabletools-adaptable-angular-aggrid.mjs",
29
- "node": "./fesm2015/adaptabletools-adaptable-angular-aggrid.mjs",
30
- "default": "./fesm2020/adaptabletools-adaptable-angular-aggrid.mjs"
31
- }
32
- },
33
18
  "sideEffects": false
34
19
  }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRhcHRhYmxldG9vbHMtYWRhcHRhYmxlLWFuZ3VsYXItYWdncmlkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vcHJvamVjdHMvYWRhcHRhYmxlLWFuZ3VsYXItYWdncmlkL3NyYy9hZGFwdGFibGV0b29scy1hZGFwdGFibGUtYW5ndWxhci1hZ2dyaWQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,80 +0,0 @@
1
- import { Directive, ElementRef, EventEmitter, Input, Output, Renderer2, } from '@angular/core';
2
- import { Adaptable } from '@adaptabletools/adaptable/src/agGrid/Adaptable';
3
- import { AdaptableAngularFrameworkComponentService } from './adaptable-angular-framework-component.service';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "./adaptable-angular-framework-component.service";
6
- function getRandomInt(max) {
7
- return Math.floor(Math.random() * Math.floor(max));
8
- }
9
- export class AdaptableAngularAgGridComponentDirective {
10
- constructor(renderer, el, frameworkComponentService) {
11
- this.renderer = renderer;
12
- this.el = el;
13
- this.frameworkComponentService = frameworkComponentService;
14
- this.adaptableReady = new EventEmitter();
15
- const seedId = `${getRandomInt(1000)}-${Date.now()}`;
16
- this.adaptableContainerId = `adaptable-${seedId}`;
17
- }
18
- async ngOnInit() {
19
- if (this.modules == null) {
20
- throw new Error(`Attribute 'modules' is required. Please pass the ag-grid modules you use into AdapTable.
21
- If you don't have extra modules, pass an empty array.`);
22
- }
23
- this.createAngularWrapperContainer();
24
- this.adaptableOptions.gridOptions = this.gridOptions;
25
- this.adaptableOptions.containerOptions = this.adaptableOptions.containerOptions || {};
26
- this.adaptableOptions.containerOptions.adaptableContainer = this.adaptableContainerId;
27
- const adaptableApi = await Adaptable.initInternal(this.adaptableOptions, {
28
- waitForAgGrid: true,
29
- });
30
- adaptableApi.internalApi
31
- .getAdaptableInstance()
32
- ._onIncludeFired('FrameworkComponentChange', ({ command, frameworkComponent, containerDomNode, componentType }) => {
33
- if (command === 'create') {
34
- this.frameworkComponentService.createFrameworkComponent(frameworkComponent, containerDomNode, componentType, adaptableApi);
35
- }
36
- else {
37
- this.frameworkComponentService.destroyFrameworkComponent(frameworkComponent, componentType);
38
- }
39
- });
40
- adaptableApi.eventApi.on('AdaptableReady', (adaptableReadyInfo) => this.adaptableReady.emit(adaptableReadyInfo));
41
- this.adaptableApi = adaptableApi;
42
- }
43
- ngOnDestroy() {
44
- if (!this.adaptableApi) {
45
- return;
46
- }
47
- this.adaptableApi.destroy({
48
- unmount: true,
49
- destroyApi: false,
50
- });
51
- this.adaptableApi = null;
52
- }
53
- // creates the container for the adaptable toolbar and inserts it before the ag-grid element
54
- createAngularWrapperContainer() {
55
- const adaptableContainer = this.renderer.createElement('div');
56
- adaptableContainer.style.setProperty('display', 'flex');
57
- adaptableContainer.style.setProperty('flex-flow', 'var(--ab_flex-direction, column)');
58
- this.renderer.setProperty(adaptableContainer, 'id', this.adaptableContainerId);
59
- this.renderer.insertBefore(this.renderer.parentNode(this.el.nativeElement), adaptableContainer, this.el.nativeElement);
60
- }
61
- }
62
- AdaptableAngularAgGridComponentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridComponentDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i1.AdaptableAngularFrameworkComponentService }], target: i0.ɵɵFactoryTarget.Directive });
63
- AdaptableAngularAgGridComponentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: AdaptableAngularAgGridComponentDirective, selector: "ag-grid-angular[adaptableOptions]", inputs: { adaptableOptions: "adaptableOptions", modules: "modules", gridOptions: "gridOptions" }, outputs: { adaptableReady: "adaptableReady" }, providers: [AdaptableAngularFrameworkComponentService], ngImport: i0 });
64
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridComponentDirective, decorators: [{
65
- type: Directive,
66
- args: [{
67
- selector: 'ag-grid-angular[adaptableOptions]',
68
- // ensures each AG Grid instance has its own copy of the service (incl. the framework component references)
69
- providers: [AdaptableAngularFrameworkComponentService],
70
- }]
71
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i1.AdaptableAngularFrameworkComponentService }]; }, propDecorators: { adaptableOptions: [{
72
- type: Input
73
- }], modules: [{
74
- type: Input
75
- }], gridOptions: [{
76
- type: Input
77
- }], adaptableReady: [{
78
- type: Output
79
- }] } });
80
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRhcHRhYmxlLWFuZ3VsYXItYWctZ3JpZC1jb21wb25lbnQuZGlyZWN0aXZlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYWRhcHRhYmxlLWFuZ3VsYXItYWdncmlkL3NyYy9saWIvYWRhcHRhYmxlLWFuZ3VsYXItYWctZ3JpZC1jb21wb25lbnQuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxTQUFTLEVBQ1QsVUFBVSxFQUNWLFlBQVksRUFDWixLQUFLLEVBR0wsTUFBTSxFQUNOLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQUt2QixPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0RBQWdELENBQUM7QUFFM0UsT0FBTyxFQUFFLHlDQUF5QyxFQUFFLE1BQU0saURBQWlELENBQUM7OztBQU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dEZvckFnR3JpZDogdHJ1ZSxcbiAgICB9KTtcblxuICAgIGFkYXB0YWJsZUFwaS5pbnRlcm5hbEFwaVxuICAgICAgLmdldEFkYXB0YWJsZUluc3RhbmNlKClcbiAgICAgIC5fb25JbmNsdWRlRmlyZWQoXG4gICAgICAgICdGcmFtZXdvcmtDb21wb25lbnRDaGFuZ2UnLFxuICAgICAgICAoeyBjb21tYW5kLCBmcmFtZXdvcmtDb21wb25lbnQsIGNvbnRhaW5lckRvbU5vZGUsIGNvbXBvbmVudFR5cGUgfSkgPT4ge1xuICAgICAgICAgIGlmIChjb21tYW5kID09PSAnY3JlYXRlJykge1xuICAgICAgICAgICAgdGhpcy5mcmFtZXdvcmtDb21wb25lbnRTZXJ2aWNlLmNyZWF0ZUZyYW1ld29ya0NvbXBvbmVudChcbiAgICAgICAgICAgICAgZnJhbWV3b3JrQ29tcG9uZW50IGFzIEFuZ3VsYXJGcmFtZXdvcmtDb21wb25lbnQsXG4gICAgICAgICAgICAgIGNvbnRhaW5lckRvbU5vZGUsXG4gICAgICAgICAgICAgIGNvbXBvbmVudFR5cGUsXG4gICAgICAgICAgICAgIGFkYXB0YWJsZUFwaVxuICAgICAgICAgICAgKTtcbiAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgdGhpcy5mcmFtZXdvcmtDb21wb25lbnRTZXJ2aWNlLmRlc3Ryb3lGcmFtZXdvcmtDb21wb25lbnQoXG4gICAgICAgICAgICAgIGZyYW1ld29ya0NvbXBvbmVudCBhcyBBbmd1bGFyRnJhbWV3b3JrQ29tcG9uZW50LFxuICAgICAgICAgICAgICBjb21wb25lbnRUeXBlXG4gICAgICAgICAgICApO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgKTtcblxuICAgIGFkYXB0YWJsZUFwaS5ldmVudEFwaS5vbignQWRhcHRhYmxlUmVhZHknLCAoYWRhcHRhYmxlUmVhZHlJbmZvOiBBZGFwdGFibGVSZWFkeUluZm8pID0+XG4gICAgICB0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bnROb2RlKHRoaXMuZWwubmF0aXZlRWxlbWVudCksXG4gICAgICBhZGFwdGFibGVDb250YWluZXIsXG4gICAgICB0aGlzLmVsLm5hdGl2ZUVsZW1lbnRcbiAgICApO1xuICB9XG59XG4iXX0=
@@ -1,18 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { AdaptableAngularAgGridComponentDirective } from './adaptable-angular-ag-grid-component.directive';
3
- import * as i0 from "@angular/core";
4
- export class AdaptableAngularAgGridModule {
5
- }
6
- AdaptableAngularAgGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
- AdaptableAngularAgGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridModule, declarations: [AdaptableAngularAgGridComponentDirective], exports: [AdaptableAngularAgGridComponentDirective] });
8
- AdaptableAngularAgGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridModule, providers: [], imports: [[]] });
9
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridModule, decorators: [{
10
- type: NgModule,
11
- args: [{
12
- declarations: [AdaptableAngularAgGridComponentDirective],
13
- imports: [],
14
- exports: [AdaptableAngularAgGridComponentDirective],
15
- providers: [],
16
- }]
17
- }] });
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRhcHRhYmxlLWFuZ3VsYXItYWdncmlkLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3Byb2plY3RzL2FkYXB0YWJsZS1hbmd1bGFyLWFnZ3JpZC9zcmMvbGliL2FkYXB0YWJsZS1hbmd1bGFyL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3 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export const ADAPTABLE_API = new InjectionToken('ADAPTABLE_API');
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRhcHRhYmxlLWFuZ3VsYXItYWdncmlkLnRva2VuLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYWRhcHRhYmxlLWFuZ3VsYXItYWdncmlkL3NyYy9saWIvYWRhcHRhYmxlLWFuZ3VsYXItYWdncmlkLnRva2VuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFHL0MsTUFBTSxDQUFDLE1BQU0sYUFBYSxHQUFHLElBQUksY0FBYyxDQUFlLGVBQWUsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSW5qZWN0aW9uVG9rZW4gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IEFkYXB0YWJsZUFwaSB9IGZyb20gJ0BhZGFwdGFibGV0b29scy9hZGFwdGFibGUvc3JjL3R5cGVzJztcblxuZXhwb3J0IGNvbnN0IEFEQVBUQUJMRV9BUEkgPSBuZXcgSW5qZWN0aW9uVG9rZW48QWRhcHRhYmxlQXBpPignQURBUFRBQkxFX0FQSScpO1xuIl19
@@ -1,74 +0,0 @@
1
- import { ApplicationRef, ComponentFactoryResolver, Injectable, Injector, } from '@angular/core';
2
- import { ADAPTABLE_API } from './adaptable-angular-aggrid.token';
3
- import { LogAdaptableError, LogAdaptableInfo, } from '@adaptabletools/adaptable/src/Utilities/Helpers/LoggingHelper';
4
- import * as i0 from "@angular/core";
5
- export class AdaptableAngularFrameworkComponentService {
6
- constructor(resolver, injector, appRef) {
7
- this.resolver = resolver;
8
- this.injector = injector;
9
- this.appRef = appRef;
10
- this.toolbarComponentRefs = new WeakMap();
11
- }
12
- createFrameworkComponent(component, containerDomNode, componentType, adaptableApi) {
13
- try {
14
- LogAdaptableInfo(`Creating framework component for ${componentType}`, containerDomNode);
15
- if (this.toolbarComponentRefs.has(component)) {
16
- LogAdaptableInfo(`Creation of framework component ${componentType} skipped as it is already present`, containerDomNode);
17
- return;
18
- }
19
- const angularComponentRef = this.createAngularComponent(component.type, containerDomNode, adaptableApi);
20
- if (component.onSetup) {
21
- Object.assign(angularComponentRef.instance, component.onSetup({ adaptableApi }));
22
- }
23
- this.toolbarComponentRefs.set(component, angularComponentRef);
24
- }
25
- catch (err) {
26
- LogAdaptableError(`Cannot correctly create framework component for ${componentType}`, err);
27
- }
28
- }
29
- destroyFrameworkComponent(component, componentType) {
30
- LogAdaptableInfo(`Destroying framework component for ${componentType}`);
31
- const toolbarComponentRef = this.toolbarComponentRefs.get(component);
32
- if (toolbarComponentRef) {
33
- try {
34
- toolbarComponentRef.destroy();
35
- this.toolbarComponentRefs.delete(component);
36
- }
37
- catch (err) {
38
- LogAdaptableError(`Cannot correctly destroy framework component for ${componentType}`, err);
39
- }
40
- }
41
- else {
42
- LogAdaptableInfo(`Cannot correctly destroy framework component for ${componentType} because the reference is no longer available`);
43
- }
44
- }
45
- createAngularComponent(angularComponentType, domContainer, api) {
46
- // extend standard DI context with AdaptableApi
47
- const toolbarInjector = Injector.create({
48
- providers: [
49
- {
50
- provide: ADAPTABLE_API,
51
- useValue: api,
52
- },
53
- ],
54
- parent: this.injector,
55
- });
56
- // create the component
57
- const componentFactory = this.resolver.resolveComponentFactory(angularComponentType);
58
- const componentRef = componentFactory.create(toolbarInjector, [], domContainer);
59
- // attach newly created component to Angular change detection
60
- this.appRef.attachView(componentRef.hostView);
61
- // trigger an early change detection
62
- componentRef.hostView.detectChanges();
63
- return componentRef;
64
- }
65
- }
66
- AdaptableAngularFrameworkComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularFrameworkComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
67
- AdaptableAngularFrameworkComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularFrameworkComponentService, providedIn: 'root' });
68
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularFrameworkComponentService, decorators: [{
69
- type: Injectable,
70
- args: [{
71
- providedIn: 'root',
72
- }]
73
- }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
74
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRhcHRhYmxlLWFuZ3VsYXItZnJhbWV3b3JrLWNvbXBvbmVudC5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYWRhcHRhYmxlLWFuZ3VsYXItYWdncmlkL3NyYy9saWIvYWRhcHRhYmxlLWFuZ3VsYXItZnJhbWV3b3JrLWNvbXBvbmVudC5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxjQUFjLEVBQ2Qsd0JBQXdCLEVBRXhCLFVBQVUsRUFDVixRQUFRLEdBRVQsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFDO0FBQ2pFLE9BQU8sRUFDTCxpQkFBaUIsRUFDakIsZ0JBQWdCLEdBQ2pCLE1BQU0sK0RBQStELENBQUM7O0FBTXZFLE1BQU0sT0FBTyx5Q0FBeUM7SUFHcEQsWUFDVSxRQUFrQyxFQUNsQyxRQUFrQixFQUNsQixNQUFzQjtRQUZ0Q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mplY3RvcixcbiAgICB9KTtcblxuICAgIC8vIGNyZWF0ZSB0aGUgY29tcG9uZW50XG4gICAgY29uc3QgY29tcG9uZW50RmFjdG9yeSA9IHRoaXMucmVzb2x2ZXIucmVzb2x2ZUNvbXBvbmVudEZhY3RvcnkoYW5ndWxhckNvbXBvbmVudFR5cGUpO1xuICAgIGNvbnN0IGNvbXBvbmVudFJlZiA9IGNvbXBvbmVudEZhY3RvcnkuY3JlYXRlKHRvb2xiYXJJbmplY3RvciwgW10sIGRvbUNvbnRhaW5lcik7XG5cbiAgICAvLyBhdHRhY2ggbmV3bHkgY3JlYXRlZCBjb21wb25lbnQgdG8gQW5ndWxhciBjaGFuZ2UgZGV0ZWN0aW9uXG4gICAgdGhpcy5hcHBSZWYuYXR0YWNoVmlldyhjb21wb25lbnRSZWYuaG9zdFZpZXcpO1xuICAgIC8vIHRyaWdnZXIgYW4gZWFybHkgY2hhbmdlIGRldGVjdGlvblxuICAgIGNvbXBvbmVudFJlZi5ob3N0Vmlldy5kZXRlY3RDaGFuZ2VzKCk7XG4gICAgcmV0dXJuIGNvbXBvbmVudFJlZjtcbiAgfVxufVxuIl19
@@ -1,10 +0,0 @@
1
- /*
2
- * Public API Surface of adaptable-angular-aggrid
3
- */
4
- export * from './lib/adaptable-angular-ag-grid-component.directive';
5
- export * from './lib/adaptable-angular-aggrid.module';
6
- export * from '@adaptabletools/adaptable/src/types';
7
- export { AdaptableToolPanelAgGridComponent } from '@adaptabletools/adaptable/src/AdaptableComponents';
8
- export { AdaptableBooleanExpressionFunctions, AdaptableScalarExpressionFunctions, AdaptableAggregatedBooleanExpressionFunctions, AdaptableAggregatedScalarExpressionFunctions, AdaptableObservableExpressionFunctions, } from '@adaptabletools/adaptable/agGrid';
9
- export { ADAPTABLE_API } from './lib/adaptable-angular-aggrid.token';
10
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIi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Y2FsYXJFeHByZXNzaW9uRnVuY3Rpb25zLFxuICBBZGFwdGFibGVBZ2dyZWdhdGVkQm9vbGVhbkV4cHJlc3Npb25GdW5jdGlvbnMsXG4gIEFkYXB0YWJsZUFnZ3JlZ2F0ZWRTY2FsYXJFeHByZXNzaW9uRnVuY3Rpb25zLFxuICBBZGFwdGFibGVPYnNlcnZhYmxlRXhwcmVzc2lvbkZ1bmN0aW9ucyxcbn0gZnJvbSAnQGFkYXB0YWJsZXRvb2xzL2FkYXB0YWJsZS9hZ0dyaWQnO1xuZXhwb3J0IHsgQURBUFRBQkxFX0FQSSB9IGZyb20gJy4vbGliL2FkYXB0YWJsZS1hbmd1bGFyLWFnZ3JpZC50b2tlbic7XG4iXX0=
@@ -1,180 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { InjectionToken, Injector, Injectable, EventEmitter, Directive, Input, Output, NgModule } from '@angular/core';
3
- import { Adaptable } from '@adaptabletools/adaptable/src/agGrid/Adaptable';
4
- import { LogAdaptableInfo, LogAdaptableError } from '@adaptabletools/adaptable/src/Utilities/Helpers/LoggingHelper';
5
- export * from '@adaptabletools/adaptable/src/types';
6
- export { AdaptableToolPanelAgGridComponent } from '@adaptabletools/adaptable/src/AdaptableComponents';
7
- export { AdaptableAggregatedBooleanExpressionFunctions, AdaptableAggregatedScalarExpressionFunctions, AdaptableBooleanExpressionFunctions, AdaptableObservableExpressionFunctions, AdaptableScalarExpressionFunctions } from '@adaptabletools/adaptable/agGrid';
8
-
9
- const ADAPTABLE_API = new InjectionToken('ADAPTABLE_API');
10
-
11
- class AdaptableAngularFrameworkComponentService {
12
- constructor(resolver, injector, appRef) {
13
- this.resolver = resolver;
14
- this.injector = injector;
15
- this.appRef = appRef;
16
- this.toolbarComponentRefs = new WeakMap();
17
- }
18
- createFrameworkComponent(component, containerDomNode, componentType, adaptableApi) {
19
- try {
20
- LogAdaptableInfo(`Creating framework component for ${componentType}`, containerDomNode);
21
- if (this.toolbarComponentRefs.has(component)) {
22
- LogAdaptableInfo(`Creation of framework component ${componentType} skipped as it is already present`, containerDomNode);
23
- return;
24
- }
25
- const angularComponentRef = this.createAngularComponent(component.type, containerDomNode, adaptableApi);
26
- if (component.onSetup) {
27
- Object.assign(angularComponentRef.instance, component.onSetup({ adaptableApi }));
28
- }
29
- this.toolbarComponentRefs.set(component, angularComponentRef);
30
- }
31
- catch (err) {
32
- LogAdaptableError(`Cannot correctly create framework component for ${componentType}`, err);
33
- }
34
- }
35
- destroyFrameworkComponent(component, componentType) {
36
- LogAdaptableInfo(`Destroying framework component for ${componentType}`);
37
- const toolbarComponentRef = this.toolbarComponentRefs.get(component);
38
- if (toolbarComponentRef) {
39
- try {
40
- toolbarComponentRef.destroy();
41
- this.toolbarComponentRefs.delete(component);
42
- }
43
- catch (err) {
44
- LogAdaptableError(`Cannot correctly destroy framework component for ${componentType}`, err);
45
- }
46
- }
47
- else {
48
- LogAdaptableInfo(`Cannot correctly destroy framework component for ${componentType} because the reference is no longer available`);
49
- }
50
- }
51
- createAngularComponent(angularComponentType, domContainer, api) {
52
- // extend standard DI context with AdaptableApi
53
- const toolbarInjector = Injector.create({
54
- providers: [
55
- {
56
- provide: ADAPTABLE_API,
57
- useValue: api,
58
- },
59
- ],
60
- parent: this.injector,
61
- });
62
- // create the component
63
- const componentFactory = this.resolver.resolveComponentFactory(angularComponentType);
64
- const componentRef = componentFactory.create(toolbarInjector, [], domContainer);
65
- // attach newly created component to Angular change detection
66
- this.appRef.attachView(componentRef.hostView);
67
- // trigger an early change detection
68
- componentRef.hostView.detectChanges();
69
- return componentRef;
70
- }
71
- }
72
- AdaptableAngularFrameworkComponentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularFrameworkComponentService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.ApplicationRef }], target: i0.ɵɵFactoryTarget.Injectable });
73
- AdaptableAngularFrameworkComponentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularFrameworkComponentService, providedIn: 'root' });
74
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularFrameworkComponentService, decorators: [{
75
- type: Injectable,
76
- args: [{
77
- providedIn: 'root',
78
- }]
79
- }], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.ApplicationRef }]; } });
80
-
81
- function getRandomInt(max) {
82
- return Math.floor(Math.random() * Math.floor(max));
83
- }
84
- class AdaptableAngularAgGridComponentDirective {
85
- constructor(renderer, el, frameworkComponentService) {
86
- this.renderer = renderer;
87
- this.el = el;
88
- this.frameworkComponentService = frameworkComponentService;
89
- this.adaptableReady = new EventEmitter();
90
- const seedId = `${getRandomInt(1000)}-${Date.now()}`;
91
- this.adaptableContainerId = `adaptable-${seedId}`;
92
- }
93
- async ngOnInit() {
94
- if (this.modules == null) {
95
- throw new Error(`Attribute 'modules' is required. Please pass the ag-grid modules you use into AdapTable.
96
- If you don't have extra modules, pass an empty array.`);
97
- }
98
- this.createAngularWrapperContainer();
99
- this.adaptableOptions.gridOptions = this.gridOptions;
100
- this.adaptableOptions.containerOptions = this.adaptableOptions.containerOptions || {};
101
- this.adaptableOptions.containerOptions.adaptableContainer = this.adaptableContainerId;
102
- const adaptableApi = await Adaptable.initInternal(this.adaptableOptions, {
103
- waitForAgGrid: true,
104
- });
105
- adaptableApi.internalApi
106
- .getAdaptableInstance()
107
- ._onIncludeFired('FrameworkComponentChange', ({ command, frameworkComponent, containerDomNode, componentType }) => {
108
- if (command === 'create') {
109
- this.frameworkComponentService.createFrameworkComponent(frameworkComponent, containerDomNode, componentType, adaptableApi);
110
- }
111
- else {
112
- this.frameworkComponentService.destroyFrameworkComponent(frameworkComponent, componentType);
113
- }
114
- });
115
- adaptableApi.eventApi.on('AdaptableReady', (adaptableReadyInfo) => this.adaptableReady.emit(adaptableReadyInfo));
116
- this.adaptableApi = adaptableApi;
117
- }
118
- ngOnDestroy() {
119
- if (!this.adaptableApi) {
120
- return;
121
- }
122
- this.adaptableApi.destroy({
123
- unmount: true,
124
- destroyApi: false,
125
- });
126
- this.adaptableApi = null;
127
- }
128
- // creates the container for the adaptable toolbar and inserts it before the ag-grid element
129
- createAngularWrapperContainer() {
130
- const adaptableContainer = this.renderer.createElement('div');
131
- adaptableContainer.style.setProperty('display', 'flex');
132
- adaptableContainer.style.setProperty('flex-flow', 'var(--ab_flex-direction, column)');
133
- this.renderer.setProperty(adaptableContainer, 'id', this.adaptableContainerId);
134
- this.renderer.insertBefore(this.renderer.parentNode(this.el.nativeElement), adaptableContainer, this.el.nativeElement);
135
- }
136
- }
137
- AdaptableAngularAgGridComponentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridComponentDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: AdaptableAngularFrameworkComponentService }], target: i0.ɵɵFactoryTarget.Directive });
138
- AdaptableAngularAgGridComponentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.11", type: AdaptableAngularAgGridComponentDirective, selector: "ag-grid-angular[adaptableOptions]", inputs: { adaptableOptions: "adaptableOptions", modules: "modules", gridOptions: "gridOptions" }, outputs: { adaptableReady: "adaptableReady" }, providers: [AdaptableAngularFrameworkComponentService], ngImport: i0 });
139
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridComponentDirective, decorators: [{
140
- type: Directive,
141
- args: [{
142
- selector: 'ag-grid-angular[adaptableOptions]',
143
- // ensures each AG Grid instance has its own copy of the service (incl. the framework component references)
144
- providers: [AdaptableAngularFrameworkComponentService],
145
- }]
146
- }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: AdaptableAngularFrameworkComponentService }]; }, propDecorators: { adaptableOptions: [{
147
- type: Input
148
- }], modules: [{
149
- type: Input
150
- }], gridOptions: [{
151
- type: Input
152
- }], adaptableReady: [{
153
- type: Output
154
- }] } });
155
-
156
- class AdaptableAngularAgGridModule {
157
- }
158
- AdaptableAngularAgGridModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
159
- AdaptableAngularAgGridModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridModule, declarations: [AdaptableAngularAgGridComponentDirective], exports: [AdaptableAngularAgGridComponentDirective] });
160
- AdaptableAngularAgGridModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridModule, providers: [], imports: [[]] });
161
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: AdaptableAngularAgGridModule, decorators: [{
162
- type: NgModule,
163
- args: [{
164
- declarations: [AdaptableAngularAgGridComponentDirective],
165
- imports: [],
166
- exports: [AdaptableAngularAgGridComponentDirective],
167
- providers: [],
168
- }]
169
- }] });
170
-
171
- /*
172
- * Public API Surface of adaptable-angular-aggrid
173
- */
174
-
175
- /**
176
- * Generated bundle index. Do not edit.
177
- */
178
-
179
- export { ADAPTABLE_API, AdaptableAngularAgGridComponentDirective, AdaptableAngularAgGridModule };
180
- //# sourceMappingURL=adaptabletools-adaptable-angular-aggrid.mjs.map
@@ -1 +0,0 @@
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 ComponentFactoryResolver,\n ComponentRef,\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 {\n LogAdaptableError,\n LogAdaptableInfo,\n} from '@adaptabletools/adaptable/src/Utilities/Helpers/LoggingHelper';\nimport { AngularFrameworkComponent } from '@adaptabletools/adaptable/types';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AdaptableAngularFrameworkComponentService {\n private toolbarComponentRefs = new WeakMap<AngularFrameworkComponent, ComponentRef<unknown>>();\n\n constructor(\n private resolver: ComponentFactoryResolver,\n private injector: Injector,\n private appRef: ApplicationRef\n ) {}\n\n createFrameworkComponent(\n component: AngularFrameworkComponent,\n containerDomNode: HTMLElement,\n componentType: string,\n adaptableApi: AdaptableApi\n ): void {\n try {\n LogAdaptableInfo(`Creating framework component for ${componentType}`, containerDomNode);\n if (this.toolbarComponentRefs.has(component)) {\n LogAdaptableInfo(\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 LogAdaptableError(`Cannot correctly create framework component for ${componentType}`, err);\n }\n }\n\n destroyFrameworkComponent(component: AngularFrameworkComponent, componentType: string): void {\n LogAdaptableInfo(`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 LogAdaptableError(`Cannot correctly destroy framework component for ${componentType}`, err);\n }\n } else {\n LogAdaptableInfo(\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 componentFactory = this.resolver.resolveComponentFactory(angularComponentType);\n const componentRef = componentFactory.create(toolbarInjector, [], domContainer);\n\n // attach newly created component to Angular change detection\n this.appRef.attachView(componentRef.hostView);\n // trigger an early change detection\n componentRef.hostView.detectChanges();\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 implements OnDestroy, OnInit {\n @Input() adaptableOptions: AdaptableOptions;\n @Input() modules: Module[];\n @Input() gridOptions: GridOptions;\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.gridOptions = this.gridOptions;\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 waitForAgGrid: true,\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 );\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 { AdaptableToolPanelAgGridComponent } from '@adaptabletools/adaptable/src/AdaptableComponents';\nexport {\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;;MCgBhE,yCAAyC,CAAA;AAGpD,IAAA,WAAA,CACU,QAAkC,EAClC,QAAkB,EAClB,MAAsB,EAAA;QAFtB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAA0B;QAClC,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAU;QAClB,IAAM,CAAA,MAAA,GAAN,MAAM,CAAgB;AALxB,QAAA,IAAA,CAAA,oB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