@o3r/analytics 10.0.0-next.8 → 11.0.0-next.0

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.
Files changed (31) hide show
  1. package/README.md +1 -1
  2. package/directives/track-events/base-track-events.d.ts +1 -3
  3. package/directives/track-events/base-track-events.d.ts.map +1 -1
  4. package/directives/track-events/track-click/track-click.directive.d.ts +3 -2
  5. package/directives/track-events/track-click/track-click.directive.d.ts.map +1 -1
  6. package/directives/track-events/track-events.directive.d.ts +3 -2
  7. package/directives/track-events/track-events.directive.d.ts.map +1 -1
  8. package/directives/track-events/track-focus/track-focus.directive.d.ts +3 -2
  9. package/directives/track-events/track-focus/track-focus.directive.d.ts.map +1 -1
  10. package/esm2022/directives/track-events/base-track-events.mjs +5 -7
  11. package/esm2022/directives/track-events/track-click/track-click.directive.mjs +8 -7
  12. package/esm2022/directives/track-events/track-events.directive.mjs +8 -7
  13. package/esm2022/directives/track-events/track-events.module.mjs +4 -4
  14. package/esm2022/directives/track-events/track-focus/track-focus.directive.mjs +8 -7
  15. package/esm2022/services/event-track/event-track.service.mjs +7 -20
  16. package/esm2022/stores/event-track/event-track.module.mjs +4 -4
  17. package/esm2022/stores/event-track/event-track.reducer.mjs +1 -5
  18. package/fesm2022/o3r-analytics.mjs +41 -57
  19. package/fesm2022/o3r-analytics.mjs.map +1 -1
  20. package/package.json +15 -15
  21. package/plugins/webpack/build-metrics/build-stats.plugin.d.ts +1 -1
  22. package/plugins/webpack/build-metrics/build-stats.plugin.d.ts.map +1 -1
  23. package/plugins/webpack/build-metrics/build-stats.plugin.js.map +1 -1
  24. package/schematics/analytics-to-component/index.js +2 -2
  25. package/schematics/analytics-to-component/index.js.map +1 -1
  26. package/schematics/analytics-to-component/schema.json +1 -1
  27. package/schematics/ng-add/schema.json +2 -2
  28. package/services/event-track/event-track.service.d.ts +8 -21
  29. package/services/event-track/event-track.service.d.ts.map +1 -1
  30. package/stores/event-track/event-track.reducer.d.ts.map +1 -1
  31. package/schematics/package.json +0 -3
@@ -2,10 +2,10 @@ import * as i0 from '@angular/core';
2
2
  import { InjectionToken, Injectable, Optional, Inject, Directive, Input, NgModule } from '@angular/core';
3
3
  import * as i1 from '@angular/router';
4
4
  import { NavigationEnd } from '@angular/router';
5
- import { BehaviorSubject, ReplaySubject, combineLatest, fromEvent } from 'rxjs';
5
+ import { BehaviorSubject, ReplaySubject, fromEvent, combineLatest } from 'rxjs';
6
6
  import { filter, withLatestFrom, take, takeWhile, delay, skip, skipWhile } from 'rxjs/operators';
7
7
  import * as i1$1 from '@ngrx/store';
8
- import { createAction, props, on, createReducer, StoreModule, createFeatureSelector, createSelector } from '@ngrx/store';
8
+ import { props, createAction, on, createReducer, StoreModule, createFeatureSelector, createSelector } from '@ngrx/store';
9
9
 
10
10
  /* eslint-disable @typescript-eslint/naming-convention */
11
11
 
@@ -106,7 +106,6 @@ class EventTrackService {
106
106
  }
107
107
  /**
108
108
  * Populate performance payload with FP object
109
- *
110
109
  * @param FP
111
110
  */
112
111
  addFPToPerfPayload(FP) {
@@ -137,7 +136,6 @@ class EventTrackService {
137
136
  /**
138
137
  * Mark the first paint value
139
138
  * Store the first paint timing value to be emitted at Navigation End
140
- *
141
139
  * @param emit If true, sets the FP to the current page. Otherwise, wait for next NavigationEnd event to happen
142
140
  */
143
141
  async markFP(emit = false) {
@@ -149,7 +147,6 @@ class EventTrackService {
149
147
  }
150
148
  /**
151
149
  * Mark the first meaningful paint value.
152
- *
153
150
  * @param markOnlyFirstLoad If false, marks the FMP for subsequent loads else only for the first load of the application
154
151
  */
155
152
  async markFMP(markOnlyFirstLoad = true) {
@@ -182,7 +179,6 @@ class EventTrackService {
182
179
  }
183
180
  /**
184
181
  * Add a custom event and its measurements
185
- *
186
182
  * @param label The event name
187
183
  */
188
184
  async addCustomMark(label) {
@@ -193,7 +189,6 @@ class EventTrackService {
193
189
  }
194
190
  /**
195
191
  * Add a server call object in the list of server calls metrics
196
- *
197
192
  * @param serverCall The object to add in the server calls metrics
198
193
  */
199
194
  addServerCallMark(serverCall) {
@@ -203,7 +198,6 @@ class EventTrackService {
203
198
  /**
204
199
  * Add a DxAPI SDK server call object, created by the SDK Probe plugin, in the list of server calls metrics.
205
200
  * In order to have requestId for the DxAPI calls, your server has to expose 'ama-request-id' via Access-Control-Expose-Headers
206
- *
207
201
  * @param serverMark The mark object
208
202
  */
209
203
  async addSDKServerCallMark(serverMark) {
@@ -227,7 +221,6 @@ class EventTrackService {
227
221
  }
228
222
  /**
229
223
  * Add a custom event and mark the start time, and returns the element index
230
- *
231
224
  * @param label Event name
232
225
  * @returns the element index if tracking is active. Otherwise, -1
233
226
  */
@@ -244,7 +237,6 @@ class EventTrackService {
244
237
  /**
245
238
  * End the event mark given in parameter;
246
239
  * Returns false if the custom event is not found in the list of custom marks; true otherwise
247
- *
248
240
  * @param eventIndex Index of the custom event to be marked as ended
249
241
  */
250
242
  endCustomMark(eventIndex) {
@@ -271,8 +263,7 @@ class EventTrackService {
271
263
  * and the end of the composite rendering (upper bound measurement - a time mark that occurs after the real composite)
272
264
  * For the first load of the application, the start time is considered as the start of navigation to ensure a cumulative measure.
273
265
  * It is using the 'NgZone' service to runOutsideAngular to prevent any change detection to occur, nor angular error handling, speeding up the measurement.
274
- *
275
- * @example markFMP() is called in ngAfterViewInit(), the end time will be computed once the render pipeline stage completed the changes triggered by the javascript
266
+ * Example {@link markFMP} is called in {@link ngAfterViewInit}, the end time will be computed once the render pipeline stage completed the changes triggered by the javascript
276
267
  */
277
268
  getTiming() {
278
269
  const startTime = this.isFirstLoad ? 0 : Math.round(window.performance.now());
@@ -287,7 +278,6 @@ class EventTrackService {
287
278
  }
288
279
  /**
289
280
  * Add an event to the stream of captured UI events
290
- *
291
281
  * @param uiEvent emitted event object
292
282
  */
293
283
  addUiEvent(uiEvent) {
@@ -295,7 +285,6 @@ class EventTrackService {
295
285
  }
296
286
  /**
297
287
  * Add an event to the stream of captured custom events
298
- *
299
288
  * @param customEvent emitted event object
300
289
  */
301
290
  addCustomEvent(customEvent) {
@@ -303,7 +292,6 @@ class EventTrackService {
303
292
  }
304
293
  /**
305
294
  * Activate/deactivate the tracking mode for UI events
306
- *
307
295
  * @param activate activation/deactivation boolean
308
296
  */
309
297
  toggleUiTracking(activate) {
@@ -311,24 +299,23 @@ class EventTrackService {
311
299
  }
312
300
  /**
313
301
  * Activate/deactivate the tracking mode for performance measurements
314
- *
315
302
  * @param activate activation/deactivation boolean
316
303
  */
317
304
  togglePerfTracking(activate) {
318
305
  this.perfTrackingActivated.next(activate);
319
306
  }
320
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: EventTrackService, deps: [{ token: i1.Router }, { token: i0.NgZone }, { token: EVENT_TRACK_SERVICE_CONFIGURATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
321
- /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: EventTrackService, providedIn: 'root' }); }
307
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: EventTrackService, deps: [{ token: i1.Router }, { token: i0.NgZone }, { token: EVENT_TRACK_SERVICE_CONFIGURATION, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
308
+ /** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: EventTrackService, providedIn: 'root' }); }
322
309
  }
323
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: EventTrackService, decorators: [{
310
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: EventTrackService, decorators: [{
324
311
  type: Injectable,
325
312
  args: [{ providedIn: 'root' }]
326
- }], ctorParameters: function () { return [{ type: i1.Router }, { type: i0.NgZone }, { type: undefined, decorators: [{
313
+ }], ctorParameters: () => [{ type: i1.Router }, { type: i0.NgZone }, { type: undefined, decorators: [{
327
314
  type: Optional
328
315
  }, {
329
316
  type: Inject,
330
317
  args: [EVENT_TRACK_SERVICE_CONFIGURATION]
331
- }] }]; } });
318
+ }] }] });
332
319
 
333
320
  class BaseTrackEvents {
334
321
  constructor(el, trackEventsService, renderer) {
@@ -356,7 +343,6 @@ class BaseTrackEvents {
356
343
  }
357
344
  /**
358
345
  * Create the listener for the given event
359
- *
360
346
  * @param event name
361
347
  */
362
348
  nativeListen(event) {
@@ -384,7 +370,6 @@ class BaseTrackEvents {
384
370
  }
385
371
  /**
386
372
  * Keep the events to be listen and create the listener event for the given event name
387
- *
388
373
  * @param event name
389
374
  */
390
375
  trackEvent(event) {
@@ -397,23 +382,24 @@ class BaseTrackEvents {
397
382
  ngOnDestroy() {
398
383
  this.subscription.unsubscribe();
399
384
  }
400
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: BaseTrackEvents, deps: [{ token: i0.ElementRef }, { token: EventTrackService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
401
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0", type: BaseTrackEvents, ngImport: i0 }); }
385
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: BaseTrackEvents, deps: [{ token: i0.ElementRef }, { token: EventTrackService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
386
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.8", type: BaseTrackEvents, ngImport: i0 }); }
402
387
  }
403
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: BaseTrackEvents, decorators: [{
388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: BaseTrackEvents, decorators: [{
404
389
  type: Directive
405
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: EventTrackService }, { type: i0.Renderer2 }]; } });
390
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: EventTrackService }, { type: i0.Renderer2 }] });
406
391
 
407
392
  /**
408
393
  * Directive to capture the 'click' event on the reference element.
409
394
  * The captured event will be exposed via EventTrackService
410
- *
411
- * @example:
395
+ * @example
396
+ * ```html
412
397
  * <my-component
413
398
  * (click)="doSomething()"
414
399
  * trackClick
415
400
  * [trackEventContext]="{context: 'click on the component with tag: my-component'}">
416
401
  * </my-component>
402
+ * ```
417
403
  */
418
404
  class TrackClickDirective extends BaseTrackEvents {
419
405
  constructor(el, trackEventsService, renderer) {
@@ -424,15 +410,15 @@ class TrackClickDirective extends BaseTrackEvents {
424
410
  this.trackEvent('contextmenu');
425
411
  this.trackEvent('auxclick');
426
412
  }
427
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: TrackClickDirective, deps: [{ token: i0.ElementRef }, { token: EventTrackService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
428
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0", type: TrackClickDirective, selector: "[trackClick]", inputs: { trackEventContext: "trackEventContext", trackEventContextConstructor: "trackEventContextConstructor", trackEventContextConstructorParameters: "trackEventContextConstructorParameters" }, usesInheritance: true, ngImport: i0 }); }
413
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TrackClickDirective, deps: [{ token: i0.ElementRef }, { token: EventTrackService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
414
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.8", type: TrackClickDirective, selector: "[trackClick]", inputs: { trackEventContext: "trackEventContext", trackEventContextConstructor: "trackEventContextConstructor", trackEventContextConstructorParameters: "trackEventContextConstructorParameters" }, usesInheritance: true, ngImport: i0 }); }
429
415
  }
430
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: TrackClickDirective, decorators: [{
416
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TrackClickDirective, decorators: [{
431
417
  type: Directive,
432
418
  args: [{
433
419
  selector: '[trackClick]'
434
420
  }]
435
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: EventTrackService }, { type: i0.Renderer2 }]; }, propDecorators: { trackEventContext: [{
421
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: EventTrackService }, { type: i0.Renderer2 }], propDecorators: { trackEventContext: [{
436
422
  type: Input
437
423
  }], trackEventContextConstructor: [{
438
424
  type: Input
@@ -443,13 +429,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImpor
443
429
  /**
444
430
  * Directive to capture the events given as input, on the reference element.
445
431
  * The captured event will be exposed via EventTrackService
446
- *
447
- * @example:
432
+ * @example
433
+ * ```html
448
434
  * <my-component
449
435
  * (click)="doSomething()"
450
436
  * [trackEvents]="['mouseenter', 'mouseleave']"
451
437
  * [trackEventContext]="{context: 'click on the component with tag: my-component'}">
452
438
  * </my-component>
439
+ * ```
453
440
  */
454
441
  class TrackEventsDirective extends BaseTrackEvents {
455
442
  constructor(el, trackEventsService, renderer) {
@@ -464,15 +451,15 @@ class TrackEventsDirective extends BaseTrackEvents {
464
451
  this.trackEventNames.forEach((eventName) => this.trackEvent(eventName));
465
452
  }
466
453
  }
467
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: TrackEventsDirective, deps: [{ token: i0.ElementRef }, { token: EventTrackService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
468
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0", type: TrackEventsDirective, selector: "[trackEvents]", inputs: { trackEventContext: "trackEventContext", trackEventContextConstructor: "trackEventContextConstructor", trackEventContextConstructorParameters: "trackEventContextConstructorParameters", trackEventNames: ["trackEvents", "trackEventNames"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
454
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TrackEventsDirective, deps: [{ token: i0.ElementRef }, { token: EventTrackService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
455
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.8", type: TrackEventsDirective, selector: "[trackEvents]", inputs: { trackEventContext: "trackEventContext", trackEventContextConstructor: "trackEventContextConstructor", trackEventContextConstructorParameters: "trackEventContextConstructorParameters", trackEventNames: ["trackEvents", "trackEventNames"] }, usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
469
456
  }
470
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: TrackEventsDirective, decorators: [{
457
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TrackEventsDirective, decorators: [{
471
458
  type: Directive,
472
459
  args: [{
473
460
  selector: '[trackEvents]'
474
461
  }]
475
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: EventTrackService }, { type: i0.Renderer2 }]; }, propDecorators: { trackEventContext: [{
462
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: EventTrackService }, { type: i0.Renderer2 }], propDecorators: { trackEventContext: [{
476
463
  type: Input
477
464
  }], trackEventContextConstructor: [{
478
465
  type: Input
@@ -486,12 +473,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImpor
486
473
  /**
487
474
  * Directive to capture the 'focus' event on the reference element.
488
475
  * The captured event will be exposed via EventTrackService
489
- *
490
- * @example:
476
+ * @example
477
+ * ```html
491
478
  * <my-component
492
479
  * trackFocus
493
480
  * [trackEventContext]="{context: 'focus on the component with tag: my-component'}">
494
481
  * </my-component>
482
+ * ```
495
483
  */
496
484
  class TrackFocusDirective extends BaseTrackEvents {
497
485
  constructor(el, trackEventsService, renderer) {
@@ -500,15 +488,15 @@ class TrackFocusDirective extends BaseTrackEvents {
500
488
  ngOnInit() {
501
489
  this.trackEvent('focus');
502
490
  }
503
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: TrackFocusDirective, deps: [{ token: i0.ElementRef }, { token: EventTrackService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
504
- /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "16.2.0", type: TrackFocusDirective, selector: "[trackFocus]", inputs: { trackEventContext: "trackEventContext", trackEventContextConstructor: "trackEventContextConstructor", trackEventContextConstructorParameters: "trackEventContextConstructorParameters" }, usesInheritance: true, ngImport: i0 }); }
491
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TrackFocusDirective, deps: [{ token: i0.ElementRef }, { token: EventTrackService }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive }); }
492
+ /** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.8", type: TrackFocusDirective, selector: "[trackFocus]", inputs: { trackEventContext: "trackEventContext", trackEventContextConstructor: "trackEventContextConstructor", trackEventContextConstructorParameters: "trackEventContextConstructorParameters" }, usesInheritance: true, ngImport: i0 }); }
505
493
  }
506
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: TrackFocusDirective, decorators: [{
494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TrackFocusDirective, decorators: [{
507
495
  type: Directive,
508
496
  args: [{
509
497
  selector: '[trackFocus]'
510
498
  }]
511
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: EventTrackService }, { type: i0.Renderer2 }]; }, propDecorators: { trackEventContext: [{
499
+ }], ctorParameters: () => [{ type: i0.ElementRef }, { type: EventTrackService }, { type: i0.Renderer2 }], propDecorators: { trackEventContext: [{
512
500
  type: Input
513
501
  }], trackEventContextConstructor: [{
514
502
  type: Input
@@ -517,11 +505,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImpor
517
505
  }] } });
518
506
 
519
507
  class TrackEventsModule {
520
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: TrackEventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
521
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0", ngImport: i0, type: TrackEventsModule, declarations: [TrackEventsDirective, TrackClickDirective, TrackFocusDirective], exports: [TrackEventsDirective, TrackClickDirective, TrackFocusDirective] }); }
522
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: TrackEventsModule }); }
508
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TrackEventsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
509
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.8", ngImport: i0, type: TrackEventsModule, declarations: [TrackEventsDirective, TrackClickDirective, TrackFocusDirective], exports: [TrackEventsDirective, TrackClickDirective, TrackFocusDirective] }); }
510
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TrackEventsModule }); }
523
511
  }
524
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: TrackEventsModule, decorators: [{
512
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: TrackEventsModule, decorators: [{
525
513
  type: NgModule,
526
514
  args: [{
527
515
  declarations: [TrackEventsDirective, TrackClickDirective, TrackFocusDirective],
@@ -569,7 +557,6 @@ const eventTrackInitialState = {
569
557
  /**
570
558
  * Return all the involved API endpoints present in the component including its child & subchild
571
559
  * Iterate recursively till the component with no children
572
- *
573
560
  * @param component
574
561
  * @returns string[]
575
562
  */
@@ -583,7 +570,6 @@ function getComponentInvolvedEndPoints(component) {
583
570
  * Get all the involved API endpoints of the heroComponent with maximum TTI value
584
571
  * If the parent contains max TTI, then all its child & subchild end points are used
585
572
  * otherwise only component with max TTI end points are used
586
- *
587
573
  * @param component
588
574
  * @param maxTTI
589
575
  * @returns string[]
@@ -601,7 +587,6 @@ function getInvolvedAPIEndpoints(component, maxTTI) {
601
587
  * Recursively iterate the page hierarchy
602
588
  * and set the TTI for the specified component
603
589
  * and compute the TTI for the corresponding parent
604
- *
605
590
  * @param component the parent component/page
606
591
  * @param id the identifier of the component/page
607
592
  * @param value the TTI value
@@ -628,7 +613,6 @@ function computeTTI(component, id, value, endpoints = []) {
628
613
  }
629
614
  /**
630
615
  * Check if the TTI for the page is computed
631
- *
632
616
  * @param component the parent component/page
633
617
  * @returns boolean
634
618
  */
@@ -685,13 +669,13 @@ class EventTrackStoreModule {
685
669
  ]
686
670
  };
687
671
  }
688
- /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: EventTrackStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
689
- /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.0", ngImport: i0, type: EventTrackStoreModule, imports: [i1$1.StoreFeatureModule] }); }
690
- /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: EventTrackStoreModule, providers: [
672
+ /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: EventTrackStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
673
+ /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.8", ngImport: i0, type: EventTrackStoreModule, imports: [i1$1.StoreFeatureModule] }); }
674
+ /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: EventTrackStoreModule, providers: [
691
675
  { provide: EVENT_TRACK_REDUCER_TOKEN, useFactory: getDefaultEventTrackReducer }
692
676
  ], imports: [StoreModule.forFeature(EVENT_TRACK_STORE_NAME, EVENT_TRACK_REDUCER_TOKEN)] }); }
693
677
  }
694
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.0", ngImport: i0, type: EventTrackStoreModule, decorators: [{
678
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.8", ngImport: i0, type: EventTrackStoreModule, decorators: [{
695
679
  type: NgModule,
696
680
  args: [{
697
681
  imports: [