@covalent/guided-tour 3.1.2 → 4.0.0-beta.2

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,588 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, NgModule } from '@angular/core';
3
+ import { CommonModule } from '@angular/common';
4
+ import * as i2 from '@angular/common/http';
5
+ import * as i1 from '@angular/router';
6
+ import { NavigationStart } from '@angular/router';
7
+ import { first, takeUntil, skip, skipWhile, filter, debounceTime, tap, map } from 'rxjs/operators';
8
+ import { Subject, merge, fromEvent, forkJoin, BehaviorSubject, timer } from 'rxjs';
9
+ import Shepherd from 'shepherd.js';
10
+
11
+ var ITourEvent;
12
+ (function (ITourEvent) {
13
+ ITourEvent["click"] = "click";
14
+ ITourEvent["pointerover"] = "pointerover";
15
+ ITourEvent["keyup"] = "keyup";
16
+ ITourEvent["added"] = "added";
17
+ ITourEvent["removed"] = "removed";
18
+ })(ITourEvent || (ITourEvent = {}));
19
+ class TourButtonsActions {
20
+ }
21
+ const SHEPHERD_DEFAULT_FIND_TIME_BEFORE_SHOW = 100;
22
+ const SHEPHERD_DEFAULT_FIND_INTERVAL = 500;
23
+ const SHEPHERD_DEFAULT_FIND_ATTEMPTS = 20;
24
+ const overriddenEvents = [
25
+ ITourEvent.click,
26
+ ITourEvent.pointerover,
27
+ ITourEvent.removed,
28
+ ITourEvent.added,
29
+ ITourEvent.keyup,
30
+ ];
31
+ const keyEvents = new Map([
32
+ [13, 'enter'],
33
+ [27, 'esc'],
34
+ ]);
35
+ const defaultStepOptions = {
36
+ scrollTo: { behavior: 'smooth', block: 'center' },
37
+ cancelIcon: {
38
+ enabled: true,
39
+ },
40
+ };
41
+ const MAT_ICON_BUTTON = 'mat-icon-button material-icons mat-button-base';
42
+ const MAT_BUTTON = 'mat-button-base mat-button';
43
+ const MAT_BUTTON_INVISIBLE = 'shepherd-void-button';
44
+ class CovalentGuidedTour extends TourButtonsActions {
45
+ constructor(stepOptions = defaultStepOptions) {
46
+ super();
47
+ this.stepOptions = stepOptions;
48
+ this.newTour();
49
+ }
50
+ newTour(opts) {
51
+ this.shepherdTour = new Shepherd.Tour(Object.assign({
52
+ defaultStepOptions: this.stepOptions,
53
+ }, opts));
54
+ this._destroyedEvent$ = new Subject();
55
+ // listen to cancel and complete to clean up abortOn events
56
+ merge(fromEvent(this.shepherdTour, 'cancel'), fromEvent(this.shepherdTour, 'complete'))
57
+ .pipe(first())
58
+ .subscribe(() => {
59
+ this._destroyedEvent$.next();
60
+ this._destroyedEvent$.complete();
61
+ });
62
+ // if abortOn was passed, we bind the event and execute complete
63
+ if (opts && opts.abortOn) {
64
+ const abortArr$ = [];
65
+ opts.abortOn.forEach((abortOn) => {
66
+ const abortEvent$ = new Subject();
67
+ abortArr$.push(abortEvent$);
68
+ this._bindEvent(abortOn, undefined, abortEvent$, this._destroyedEvent$);
69
+ });
70
+ const abortSubs = merge(...abortArr$)
71
+ .pipe(takeUntil(this._destroyedEvent$))
72
+ .subscribe(() => {
73
+ this.shepherdTour.complete();
74
+ abortSubs.unsubscribe();
75
+ });
76
+ }
77
+ }
78
+ back() {
79
+ this.shepherdTour.back();
80
+ }
81
+ cancel() {
82
+ this.shepherdTour.cancel();
83
+ }
84
+ next() {
85
+ this.shepherdTour.next();
86
+ }
87
+ finish() {
88
+ this.shepherdTour.complete();
89
+ }
90
+ addSteps(steps) {
91
+ this.shepherdTour.addSteps(this._prepareTour(steps));
92
+ }
93
+ start() {
94
+ this.shepherdTour.start();
95
+ }
96
+ _prepareTour(originalSteps, finishLabel = 'finish') {
97
+ // create Subjects for back and forward events
98
+ const backEvent$ = new Subject();
99
+ const forwardEvent$ = new Subject();
100
+ let _backFlow = false;
101
+ // create Subject for your end
102
+ const destroyedEvent$ = new Subject();
103
+ /**
104
+ * This function adds the step progress in the footer of the shepherd tooltip
105
+ */
106
+ const appendProgressFunc = function () {
107
+ // get all the footers that are available in the DOM
108
+ const footers = Array.from(document.querySelectorAll('.shepherd-footer'));
109
+ // get the last footer since Shepherd always puts the active one at the end
110
+ const footer = footers[footers.length - 1];
111
+ // generate steps html element
112
+ const progress = document.createElement('span');
113
+ progress.className = 'shepherd-progress';
114
+ progress.innerText = `${this.shepherdTour.currentStep.options.count}/${stepTotal}`;
115
+ // insert into the footer before the first button
116
+ footer.insertBefore(progress, footer.querySelector('.shepherd-button'));
117
+ };
118
+ let stepTotal = 0;
119
+ const steps = originalSteps.map((step) => {
120
+ let showProgress;
121
+ if (step.attachToOptions?.skipFromStepCount === true) {
122
+ showProgress = function () {
123
+ return;
124
+ };
125
+ }
126
+ else if (step.attachToOptions?.skipFromStepCount === undefined ||
127
+ step.attachToOptions?.skipFromStepCount === false) {
128
+ step.count = ++stepTotal;
129
+ showProgress = appendProgressFunc.bind(this);
130
+ }
131
+ return Object.assign({}, step, {
132
+ when: {
133
+ show: showProgress,
134
+ },
135
+ });
136
+ });
137
+ const finishButton = {
138
+ text: finishLabel,
139
+ action: this['finish'].bind(this),
140
+ classes: MAT_BUTTON,
141
+ };
142
+ const voidButton = {
143
+ text: '',
144
+ action() {
145
+ return;
146
+ },
147
+ classes: MAT_BUTTON_INVISIBLE,
148
+ };
149
+ // listen to the destroyed event to clean up all the streams
150
+ this._destroyedEvent$.pipe(first()).subscribe(() => {
151
+ backEvent$.complete();
152
+ forwardEvent$.complete();
153
+ destroyedEvent$.next();
154
+ destroyedEvent$.complete();
155
+ });
156
+ const totalSteps = steps.length;
157
+ steps.forEach((step, index) => {
158
+ // create buttons specific for the step
159
+ // this is done to create more control on events
160
+ const nextButton = {
161
+ text: 'chevron_right',
162
+ action: () => {
163
+ // intercept the next action and trigger event
164
+ forwardEvent$.next();
165
+ this.shepherdTour.next();
166
+ },
167
+ classes: MAT_ICON_BUTTON,
168
+ };
169
+ const backButton = {
170
+ text: 'chevron_left',
171
+ action: () => {
172
+ // intercept the back action and trigger event
173
+ backEvent$.next();
174
+ _backFlow = true;
175
+ // check if 'goBackTo' is set to jump to a particular step, else just go back
176
+ if (step.attachToOptions && step.attachToOptions.goBackTo) {
177
+ this.shepherdTour.show(step.attachToOptions.goBackTo, false);
178
+ }
179
+ else {
180
+ this.shepherdTour.back();
181
+ }
182
+ },
183
+ classes: step.advanceOnOptions?.allowGoBack === false ? MAT_BUTTON_INVISIBLE : MAT_ICON_BUTTON,
184
+ };
185
+ // check if highlight was provided for the step, else fallback into shepherds usage
186
+ step.highlightClass =
187
+ step.attachToOptions && step.attachToOptions.highlight ? 'shepherd-highlight' : step.highlightClass;
188
+ // Adding buttons in the steps if no buttons are defined
189
+ if (!step.buttons || step.buttons.length === 0) {
190
+ if (index === 0) {
191
+ // first step
192
+ step.buttons = [nextButton];
193
+ }
194
+ else if (index === totalSteps - 1) {
195
+ // last step
196
+ step.buttons = [backButton, finishButton];
197
+ }
198
+ else {
199
+ step.buttons = [backButton, nextButton];
200
+ }
201
+ }
202
+ // checks "advanceOn" to override listeners
203
+ let advanceOn = step.advanceOn;
204
+ // remove the shepherd "advanceOn" infavor of ours if the event is part of our list
205
+ if ((typeof advanceOn === 'object' &&
206
+ !Array.isArray(advanceOn) &&
207
+ overriddenEvents.indexOf(advanceOn.event.split('.')[0]) > -1) ||
208
+ advanceOn instanceof Array) {
209
+ step.advanceOn = undefined;
210
+ step.buttons =
211
+ step.advanceOnOptions && step.advanceOnOptions.allowGoBack ? [backButton, voidButton] : [voidButton];
212
+ }
213
+ // adds a default beforeShowPromise function
214
+ step.beforeShowPromise = () => {
215
+ return new Promise((resolve) => {
216
+ const additionalCapabilitiesSetup = () => {
217
+ if (advanceOn && !step.advanceOn) {
218
+ if (!Array.isArray(advanceOn)) {
219
+ advanceOn = [advanceOn];
220
+ }
221
+ const advanceArr$ = [];
222
+ advanceOn.forEach((_, i) => {
223
+ const advanceEvent$ = new Subject();
224
+ advanceArr$.push(advanceEvent$);
225
+ // we start a timer of attempts to find an element in the dom
226
+ this._bindEvent(advanceOn[i], step.advanceOnOptions, advanceEvent$, destroyedEvent$);
227
+ });
228
+ const advanceSubs = forkJoin(...advanceArr$)
229
+ .pipe(takeUntil(merge(destroyedEvent$, backEvent$)))
230
+ .subscribe(() => {
231
+ // check if we need to advance to a specific step, else advance to next step
232
+ if (step.advanceOnOptions && step.advanceOnOptions.jumpTo) {
233
+ this.shepherdTour.show(step.advanceOnOptions.jumpTo);
234
+ }
235
+ else {
236
+ this.shepherdTour.next();
237
+ }
238
+ forwardEvent$.next();
239
+ advanceSubs.unsubscribe();
240
+ });
241
+ }
242
+ // if abortOn was passed on the step, we bind the event and execute complete
243
+ if (step.abortOn) {
244
+ const abortArr$ = [];
245
+ step.abortOn.forEach((abortOn) => {
246
+ const abortEvent$ = new Subject();
247
+ abortArr$.push(abortEvent$);
248
+ this._bindEvent(abortOn, undefined, abortEvent$, destroyedEvent$);
249
+ });
250
+ const abortSubs = merge(...abortArr$)
251
+ .pipe(takeUntil(merge(destroyedEvent$, backEvent$, forwardEvent$)))
252
+ .subscribe(() => {
253
+ this.shepherdTour.complete();
254
+ abortSubs.unsubscribe();
255
+ });
256
+ }
257
+ };
258
+ const _stopTimer$ = new Subject();
259
+ const _retriesReached$ = new Subject();
260
+ const _retryAttempts$ = new BehaviorSubject(-1);
261
+ let id;
262
+ // checks if "attachTo" is a string or an object to get the id of an element
263
+ if (typeof step.attachTo === 'string') {
264
+ id = step.attachTo;
265
+ }
266
+ else if (typeof step.attachTo === 'object' && typeof step.attachTo.element === 'string') {
267
+ id = step.attachTo.element;
268
+ }
269
+ // if we have an id as a string in either case, we use it (we ignore it if its HTMLElement)
270
+ if (id) {
271
+ // if current step is the first step of the tour, we set the buttons to be only "next"
272
+ // we had to use `any` since the tour doesnt expose the steps in any fashion nor a way to check if we have modified them at all
273
+ if (this.shepherdTour.getCurrentStep() === this.shepherdTour.steps[0]) {
274
+ this.shepherdTour.getCurrentStep().updateStepOptions({
275
+ buttons: originalSteps[index].advanceOn ? [voidButton] : [nextButton],
276
+ });
277
+ }
278
+ // register to the attempts observable to notify deeveloper when number has been reached
279
+ _retryAttempts$
280
+ .pipe(skip(1), takeUntil(merge(_stopTimer$.asObservable(), destroyedEvent$)), skipWhile((val) => {
281
+ if (step.attachToOptions && step.attachToOptions.retries !== undefined) {
282
+ return val < step.attachToOptions.retries;
283
+ }
284
+ return val < SHEPHERD_DEFAULT_FIND_ATTEMPTS;
285
+ }))
286
+ .subscribe((attempts) => {
287
+ _retriesReached$.next();
288
+ _retriesReached$.complete();
289
+ // if attempts have been reached, we check "skipIfNotFound" to move on to the next step
290
+ if (step.attachToOptions && step.attachToOptions.skipIfNotFound) {
291
+ // if we get to this step coming back from a step and it wasnt found
292
+ // then we either check if its the first step and try going forward
293
+ // or we keep going back until we find a step that actually exists
294
+ if (_backFlow) {
295
+ if (this.shepherdTour.steps.indexOf(this.shepherdTour.getCurrentStep()) === 0) {
296
+ this.shepherdTour.next();
297
+ }
298
+ else {
299
+ this.shepherdTour.back();
300
+ }
301
+ _backFlow = false;
302
+ }
303
+ else {
304
+ // destroys current step if we need to skip it to remove it from the tour
305
+ const currentStep = this.shepherdTour.getCurrentStep();
306
+ currentStep.destroy();
307
+ this.shepherdTour.next();
308
+ this.shepherdTour.removeStep(currentStep.id);
309
+ }
310
+ }
311
+ else if (step.attachToOptions && step.attachToOptions.else) {
312
+ // if "skipIfNotFound" is not true, then we check if "else" has been set to jump to a specific step
313
+ this.shepherdTour.show(step.attachToOptions.else);
314
+ }
315
+ else {
316
+ // tslint:disable-next-line:no-console
317
+ console.warn(`Retries reached trying to find ${id}. Retried ${attempts} times.`);
318
+ // else we show the step regardless
319
+ resolve();
320
+ }
321
+ });
322
+ // we start a timer of attempts to find an element in the dom
323
+ timer((step.attachToOptions && step.attachToOptions.timeBeforeShow) || SHEPHERD_DEFAULT_FIND_TIME_BEFORE_SHOW, (step.attachToOptions && step.attachToOptions.interval) || SHEPHERD_DEFAULT_FIND_INTERVAL)
324
+ .pipe(
325
+ // the timer will continue either until we find the element or the number of attempts has been reached
326
+ takeUntil(merge(_stopTimer$, _retriesReached$, destroyedEvent$)))
327
+ .subscribe(() => {
328
+ const element = document.querySelector(id);
329
+ // if the element has been found, we stop the timer and resolve the promise
330
+ if (element) {
331
+ _stopTimer$.next();
332
+ _stopTimer$.complete();
333
+ additionalCapabilitiesSetup();
334
+ resolve();
335
+ }
336
+ else {
337
+ _retryAttempts$.next(_retryAttempts$.value + 1);
338
+ }
339
+ });
340
+ // stop find interval if user stops the tour
341
+ destroyedEvent$.subscribe(() => {
342
+ _stopTimer$.next();
343
+ _stopTimer$.complete();
344
+ _retriesReached$.next();
345
+ _retriesReached$.complete();
346
+ });
347
+ }
348
+ else {
349
+ // resolve observable until the timeBeforeShow has passsed or use default
350
+ timer((step.attachToOptions && step.attachToOptions.timeBeforeShow) || SHEPHERD_DEFAULT_FIND_TIME_BEFORE_SHOW)
351
+ .pipe(takeUntil(merge(destroyedEvent$)))
352
+ .subscribe(() => {
353
+ resolve();
354
+ });
355
+ }
356
+ });
357
+ };
358
+ });
359
+ return steps;
360
+ }
361
+ _bindEvent(eventOn, eventOnOptions, event$, destroyedEvent$) {
362
+ const selector = eventOn.selector;
363
+ const event = eventOn.event;
364
+ // we start a timer of attempts to find an element in the dom
365
+ const timerSubs = timer((eventOnOptions && eventOnOptions.timeBeforeShow) || SHEPHERD_DEFAULT_FIND_TIME_BEFORE_SHOW, (eventOnOptions && eventOnOptions.interval) || SHEPHERD_DEFAULT_FIND_INTERVAL)
366
+ .pipe(takeUntil(destroyedEvent$))
367
+ .subscribe(() => {
368
+ const element = document.querySelector(selector);
369
+ // if the element has been found, we stop the timer and resolve the promise
370
+ if (element) {
371
+ timerSubs.unsubscribe();
372
+ if (event === ITourEvent.added) {
373
+ // if event is "Added" trigger a soon as this is attached.
374
+ event$.next();
375
+ event$.complete();
376
+ }
377
+ else if (event === ITourEvent.click ||
378
+ event === ITourEvent.pointerover ||
379
+ event.indexOf(ITourEvent.keyup) > -1) {
380
+ // we use normal listeners for mouseevents
381
+ const mainEvent = event.split('.')[0];
382
+ const subEvent = event.split('.')[1];
383
+ fromEvent(element, mainEvent)
384
+ .pipe(takeUntil(merge(event$.asObservable(), destroyedEvent$)), filter(($event) => {
385
+ // only trigger if the event is a keyboard event and part of out list
386
+ if ($event instanceof KeyboardEvent) {
387
+ if (keyEvents.get($event.keyCode) === subEvent) {
388
+ return true;
389
+ }
390
+ return false;
391
+ }
392
+ else {
393
+ return true;
394
+ }
395
+ }))
396
+ .subscribe(() => {
397
+ event$.next();
398
+ event$.complete();
399
+ });
400
+ }
401
+ else if (event === ITourEvent.removed) {
402
+ // and we will use MutationObserver for DOM events
403
+ const observer = new MutationObserver(() => {
404
+ if (!document.body.contains(element)) {
405
+ event$.next();
406
+ event$.complete();
407
+ observer.disconnect();
408
+ }
409
+ });
410
+ // stop listenining if tour is closed
411
+ destroyedEvent$.subscribe(() => {
412
+ observer.disconnect();
413
+ });
414
+ // observe for any DOM interaction in the element
415
+ observer.observe(element, { childList: true, subtree: true, attributes: true });
416
+ }
417
+ }
418
+ });
419
+ }
420
+ }
421
+
422
+ /**
423
+ * Router enabled Shepherd tour
424
+ */
425
+ var TourEvents;
426
+ (function (TourEvents) {
427
+ TourEvents["complete"] = "complete";
428
+ TourEvents["cancel"] = "cancel";
429
+ TourEvents["hide"] = "hide";
430
+ TourEvents["show"] = "show";
431
+ TourEvents["start"] = "start";
432
+ TourEvents["active"] = "active";
433
+ TourEvents["inactive"] = "inactive";
434
+ })(TourEvents || (TourEvents = {}));
435
+ class CovalentGuidedTourService extends CovalentGuidedTour {
436
+ constructor(_router, _route, _httpClient) {
437
+ super();
438
+ this._router = _router;
439
+ this._route = _route;
440
+ this._httpClient = _httpClient;
441
+ this._toursMap = new Map();
442
+ this._tourStepURLs = new Map();
443
+ _router.events
444
+ .pipe(filter((event) => event instanceof NavigationStart && event.navigationTrigger === 'popstate'))
445
+ .subscribe((event) => {
446
+ if (this.shepherdTour.isActive) {
447
+ this.shepherdTour.cancel();
448
+ }
449
+ });
450
+ }
451
+ tourEvent$(str) {
452
+ return fromEvent(this.shepherdTour, str);
453
+ }
454
+ async registerTour(tourName, tour) {
455
+ const guidedTour = typeof tour === 'string' ? await this._loadTour(tour) : tour;
456
+ this._toursMap.set(tourName, guidedTour);
457
+ }
458
+ startTour(tourName) {
459
+ const guidedTour = this._getTour(tourName);
460
+ this.finish();
461
+ if (guidedTour && guidedTour.steps && guidedTour.steps.length) {
462
+ // remove steps from tour since we need to preprocess them first
463
+ this.newTour(Object.assign({}, guidedTour, { steps: undefined }));
464
+ const tourInstance = this.shepherdTour.addSteps(this._configureRoutesForSteps(this._prepareTour(guidedTour.steps, guidedTour.finishButtonText)));
465
+ // init route transition if step URL is different then the current location.
466
+ this.tourEvent$(TourEvents.show).subscribe((tourEvent) => {
467
+ const currentURL = this._router.url.split(/[?#]/)[0];
468
+ const { step: { id, options }, } = tourEvent;
469
+ if (this._tourStepURLs.has(id)) {
470
+ const stepRoute = this._tourStepURLs.get(id);
471
+ if (stepRoute !== currentURL) {
472
+ this._router.navigate([stepRoute]);
473
+ }
474
+ }
475
+ else {
476
+ if (options && options.routing) {
477
+ this._tourStepURLs.set(id, options.routing.route);
478
+ }
479
+ else {
480
+ this._tourStepURLs.set(id, currentURL);
481
+ }
482
+ }
483
+ });
484
+ this.start();
485
+ return tourInstance;
486
+ }
487
+ else {
488
+ // tslint:disable-next-line:no-console
489
+ console.warn(`Tour ${tourName} does not exist. Please try another tour.`);
490
+ }
491
+ }
492
+ // Finds the right registered tour by using queryParams
493
+ // finishes any other tour and starts the new one.
494
+ initializeOnQueryParams(queryParam = 'tour') {
495
+ return this._route.queryParamMap.pipe(debounceTime(100), tap((params) => {
496
+ const tourParam = params.get(queryParam);
497
+ if (tourParam) {
498
+ this.startTour(tourParam);
499
+ // get current search parameters
500
+ const searchParams = new URLSearchParams(window.location.search);
501
+ // delete tour queryParam
502
+ searchParams.delete(queryParam);
503
+ // build new URL string without it
504
+ let url = window.location.protocol + '//' + window.location.host + window.location.pathname;
505
+ if (searchParams.toString()) {
506
+ url += '?' + searchParams.toString();
507
+ }
508
+ // replace state in history without triggering a navigation
509
+ window.history.replaceState({ path: url }, '', url);
510
+ }
511
+ }));
512
+ }
513
+ setNextBtnDisability(stepId, isDisabled) {
514
+ if (this.shepherdTour.getById(stepId)) {
515
+ const stepOptions = this.shepherdTour.getById(stepId).options;
516
+ stepOptions.buttons.forEach((button) => {
517
+ if (button.text === 'chevron_right') {
518
+ button.disabled = isDisabled;
519
+ }
520
+ });
521
+ this.shepherdTour.getById(stepId).updateStepOptions(stepOptions);
522
+ }
523
+ }
524
+ async _loadTour(tourUrl) {
525
+ const request = this._httpClient.get(tourUrl);
526
+ try {
527
+ return await request
528
+ .pipe(map((resultSet) => {
529
+ return JSON.parse(JSON.stringify(resultSet));
530
+ }))
531
+ .toPromise();
532
+ }
533
+ catch {
534
+ return undefined;
535
+ }
536
+ }
537
+ _getTour(key) {
538
+ return this._toursMap.get(key);
539
+ }
540
+ _configureRoutesForSteps(routedSteps) {
541
+ routedSteps.forEach((step) => {
542
+ if (step.routing) {
543
+ const route = step.routing.route;
544
+ // if there is a beforeShowPromise, then we save it and call it after the navigation
545
+ if (step.beforeShowPromise) {
546
+ const beforeShowPromise = step.beforeShowPromise;
547
+ step.beforeShowPromise = () => {
548
+ return this._router.navigate([route], step.routing.extras).then(() => {
549
+ return beforeShowPromise();
550
+ });
551
+ };
552
+ }
553
+ else {
554
+ step.beforeShowPromise = () => this._router.navigate([route]);
555
+ }
556
+ }
557
+ });
558
+ return routedSteps;
559
+ }
560
+ }
561
+ /** @nocollapse */ /** @nocollapse */ CovalentGuidedTourService.ɵfac = function CovalentGuidedTourService_Factory(t) { return new (t || CovalentGuidedTourService)(i0.ɵɵinject(i1.Router), i0.ɵɵinject(i1.ActivatedRoute), i0.ɵɵinject(i2.HttpClient)); };
562
+ /** @nocollapse */ /** @nocollapse */ CovalentGuidedTourService.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: CovalentGuidedTourService, factory: CovalentGuidedTourService.ɵfac });
563
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentGuidedTourService, [{
564
+ type: Injectable
565
+ }], function () { return [{ type: i1.Router }, { type: i1.ActivatedRoute }, { type: i2.HttpClient }]; }, null); })();
566
+
567
+ class CovalentGuidedTourModule {
568
+ }
569
+ /** @nocollapse */ /** @nocollapse */ CovalentGuidedTourModule.ɵfac = function CovalentGuidedTourModule_Factory(t) { return new (t || CovalentGuidedTourModule)(); };
570
+ /** @nocollapse */ /** @nocollapse */ CovalentGuidedTourModule.ɵmod = /** @pureOrBreakMyCode */ i0.ɵɵdefineNgModule({ type: CovalentGuidedTourModule });
571
+ /** @nocollapse */ /** @nocollapse */ CovalentGuidedTourModule.ɵinj = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjector({ providers: [CovalentGuidedTourService], imports: [[CommonModule]] });
572
+ (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CovalentGuidedTourModule, [{
573
+ type: NgModule,
574
+ args: [{
575
+ imports: [CommonModule],
576
+ providers: [CovalentGuidedTourService],
577
+ declarations: [],
578
+ exports: [],
579
+ }]
580
+ }], null, null); })();
581
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CovalentGuidedTourModule, { imports: [CommonModule] }); })();
582
+
583
+ /**
584
+ * Generated bundle index. Do not edit.
585
+ */
586
+
587
+ export { CovalentGuidedTour, CovalentGuidedTourModule, CovalentGuidedTourService, ITourEvent, TourEvents };
588
+ //# sourceMappingURL=covalent-guided-tour.mjs.map