@osovitny/anatoly 2.0.39 → 2.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/osovitny-anatoly.umd.js +172 -58
- package/bundles/osovitny-anatoly.umd.js.map +1 -1
- package/bundles/osovitny-anatoly.umd.min.js +2 -2
- package/bundles/osovitny-anatoly.umd.min.js.map +1 -1
- package/esm2015/lib/core/consts/settings.js +2 -2
- package/esm2015/lib/core/convert.js +2 -2
- package/esm2015/lib/core/core.module.js +4 -2
- package/esm2015/lib/core/go/base-go.service.js +2 -2
- package/esm2015/lib/core/guards/once-import.guard.js +2 -2
- package/esm2015/lib/core/guid.js +2 -2
- package/esm2015/lib/core/interceptors/httpInterceptor.js +2 -2
- package/esm2015/lib/core/localization/localization.module.js +2 -2
- package/esm2015/lib/core/localization/localization.service.js +74 -20
- package/esm2015/lib/core/localization/localizationSettings.module.js +3 -3
- package/esm2015/lib/core/localization/localize.pipe.js +13 -7
- package/esm2015/lib/core/localization/utils.js +2 -2
- package/esm2015/lib/core/logging/globalErrorHandler.js +2 -2
- package/esm2015/lib/core/logging/logging.service.js +2 -2
- package/esm2015/lib/core/notifications/alerts.js +2 -2
- package/esm2015/lib/core/notifications/interfaces/notification.js +2 -2
- package/esm2015/lib/core/notifications/services/notification-service.js +2 -2
- package/esm2015/lib/core/services/appcontext.service.js +2 -2
- package/esm2015/lib/core/services/dm.service.js +2 -2
- package/esm2015/lib/core/services/google-analytics.service.js +53 -0
- package/esm2015/lib/core/services/idle.service.js +2 -2
- package/esm2015/lib/core/services/loading.service.js +2 -2
- package/esm2015/lib/core/services/web-storage.service.js +2 -2
- package/esm2015/lib/core/subs.js +2 -2
- package/esm2015/lib/core/utils.js +2 -2
- package/esm2015/lib/data/base/base-api.service.js +2 -2
- package/esm2015/lib/data/base/grid/base-grid-edit.service.js +2 -2
- package/esm2015/lib/data/base/grid/base-grid-read.service.js +2 -2
- package/esm2015/lib/data/consts.js +2 -2
- package/esm2015/lib/data/data.module.js +2 -2
- package/esm2015/lib/data/services/billing-api.service.js +2 -2
- package/esm2015/lib/data/services/notifications/notifications-api-service.js +2 -2
- package/esm2015/lib/ui/components/base-edit.component.js +2 -2
- package/esm2015/lib/ui/components/base.component.js +2 -2
- package/esm2015/lib/ui/components/billing/buyaccess-button.component.js +2 -2
- package/esm2015/lib/ui/components/billing/subscribe-plan-button.component.js +2 -2
- package/esm2015/lib/ui/components/billing/upgrade-plan-button.component.js +2 -2
- package/esm2015/lib/ui/components/content-header/content-header.component.js +2 -2
- package/esm2015/lib/ui/components/html-editor/base-html-editor.component.js +2 -2
- package/esm2015/lib/ui/components/html-editor/forms-html-editor.component.js +2 -2
- package/esm2015/lib/ui/components/html-editor/html-editor.component.js +2 -2
- package/esm2015/lib/ui/components/html-editor/html-editor.defaultoptions.js +2 -2
- package/esm2015/lib/ui/components/identity/signin-button.component.js +2 -2
- package/esm2015/lib/ui/components/identity/signout-button.component.js +2 -2
- package/esm2015/lib/ui/components/identity/signup-button.component.js +2 -2
- package/esm2015/lib/ui/components/loading/loading.component.js +2 -2
- package/esm2015/lib/ui/components/spinner/spinner.component.js +2 -2
- package/esm2015/lib/ui/directives/native-element.directive.js +2 -2
- package/esm2015/lib/ui/pipes/filesize.pipe.js +2 -2
- package/esm2015/lib/ui/pipes/replace-text.pipe.js +2 -2
- package/esm2015/lib/ui/pipes/safeHtml.pipe.js +2 -2
- package/esm2015/lib/ui/ui.module.js +2 -2
- package/esm2015/lib/ui/validation/form-validation-summary.component.js +2 -2
- package/esm2015/lib/ui/validation/item-validation-summary.component.js +2 -2
- package/esm2015/lib/ui/validation/validation-summary.component.js +2 -2
- package/esm2015/public-api.js +2 -1
- package/fesm2015/osovitny-anatoly.js +187 -74
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/lib/core/localization/localization.service.d.ts +3 -0
- package/lib/core/services/google-analytics.service.d.ts +8 -0
- package/osovitny-anatoly.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Injectable, ɵɵdefineInjectable, ɵɵinject, Pipe, NgModule, APP_INITIALIZER, Injector, Inject, Optional, SkipSelf, Component, Input, ViewEncapsulation, Directive, ElementRef } from '@angular/core';
|
|
2
|
-
import { ActivatedRoute, Router,
|
|
2
|
+
import { ActivatedRoute, Router, NavigationEnd, NavigationStart, NavigationCancel, NavigationError } from '@angular/router';
|
|
3
3
|
import { HttpResponse, HttpClient } from '@angular/common/http';
|
|
4
4
|
import { tap, map } from 'rxjs/operators';
|
|
5
5
|
import { BehaviorSubject, Subject, merge, fromEvent, timer } from 'rxjs';
|
|
6
6
|
import { TranslateService, TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
7
7
|
import { isValid, format, formatDistanceToNow, formatDistance } from 'date-fns';
|
|
8
|
+
import { utcToZonedTime } from 'date-fns-tz';
|
|
8
9
|
import enUS from 'date-fns/locale/en-US';
|
|
9
10
|
import { LOCATION_INITIALIZED, DOCUMENT, CommonModule } from '@angular/common';
|
|
10
11
|
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
@@ -30,7 +31,7 @@ import { FroalaEditorModule, FroalaViewModule } from 'angular-froala-wysiwyg';
|
|
|
30
31
|
Version:
|
|
31
32
|
1.0
|
|
32
33
|
|
|
33
|
-
Copyright (c) 2016-
|
|
34
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
34
35
|
</file>
|
|
35
36
|
*/
|
|
36
37
|
const ContextInitState = JSON.parse((document.getElementById('contextInitState')).getAttribute('data-contextinitstate'));
|
|
@@ -73,7 +74,7 @@ const Urls = {
|
|
|
73
74
|
Version:
|
|
74
75
|
1.0
|
|
75
76
|
|
|
76
|
-
Copyright (c) 2016-
|
|
77
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
77
78
|
</file>
|
|
78
79
|
*/
|
|
79
80
|
class BaseGoService {
|
|
@@ -109,7 +110,7 @@ BaseGoService.ctorParameters = () => [
|
|
|
109
110
|
Version:
|
|
110
111
|
1.0
|
|
111
112
|
|
|
112
|
-
Copyright (c) 2016-
|
|
113
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
113
114
|
</file>
|
|
114
115
|
*/
|
|
115
116
|
function throwIfAlreadyLoaded(parentModule, moduleName) {
|
|
@@ -133,7 +134,7 @@ function throwIfAlreadyLoaded(parentModule, moduleName) {
|
|
|
133
134
|
Version:
|
|
134
135
|
1.0
|
|
135
136
|
|
|
136
|
-
Copyright (c) 2016-
|
|
137
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
137
138
|
</file>
|
|
138
139
|
*/
|
|
139
140
|
class LoadingService extends BehaviorSubject {
|
|
@@ -198,7 +199,7 @@ LoadingService.ctorParameters = () => [];
|
|
|
198
199
|
Version:
|
|
199
200
|
1.0
|
|
200
201
|
|
|
201
|
-
Copyright (c) 2016-
|
|
202
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
202
203
|
</file>
|
|
203
204
|
*/
|
|
204
205
|
class LoggingService {
|
|
@@ -233,7 +234,7 @@ LoggingService.ctorParameters = () => [];
|
|
|
233
234
|
Version:
|
|
234
235
|
1.0
|
|
235
236
|
|
|
236
|
-
Copyright (c) 2016-
|
|
237
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
237
238
|
</file>
|
|
238
239
|
*/
|
|
239
240
|
class AnatolyHttpInterceptor {
|
|
@@ -333,7 +334,7 @@ AnatolyHttpInterceptor.ctorParameters = () => [
|
|
|
333
334
|
Version:
|
|
334
335
|
1.0
|
|
335
336
|
|
|
336
|
-
Copyright (c) 2016-
|
|
337
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
337
338
|
</file>
|
|
338
339
|
*/
|
|
339
340
|
class Convert {
|
|
@@ -355,12 +356,12 @@ class Convert {
|
|
|
355
356
|
Anatoly Osovitny
|
|
356
357
|
|
|
357
358
|
Created:
|
|
358
|
-
|
|
359
|
+
05 May 2020
|
|
359
360
|
|
|
360
361
|
Version:
|
|
361
362
|
1.0
|
|
362
363
|
|
|
363
|
-
Copyright (c) 2016-
|
|
364
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
364
365
|
</file>
|
|
365
366
|
*/
|
|
366
367
|
class LocalizationService {
|
|
@@ -369,12 +370,16 @@ class LocalizationService {
|
|
|
369
370
|
this.setSupportedLanguages(['en']);
|
|
370
371
|
}
|
|
371
372
|
format(str, args) {
|
|
372
|
-
|
|
373
|
-
|
|
373
|
+
return str.replace(/{(\d+)}/g, function (match, number) {
|
|
374
|
+
return typeof args[number] != 'undefined'
|
|
375
|
+
? args[number]
|
|
376
|
+
: match;
|
|
377
|
+
});
|
|
374
378
|
}
|
|
375
379
|
;
|
|
376
380
|
configureTranslationSettings(translate) {
|
|
377
381
|
const languageToSet = 'en';
|
|
382
|
+
this.dateFnsLocale = { locale: enUS };
|
|
378
383
|
translate.setDefaultLang(languageToSet);
|
|
379
384
|
return languageToSet;
|
|
380
385
|
}
|
|
@@ -410,31 +415,82 @@ class LocalizationService {
|
|
|
410
415
|
}
|
|
411
416
|
getLocalizedDate(key) {
|
|
412
417
|
if (isValid(new Date(key))) {
|
|
413
|
-
return format(new Date(key),
|
|
418
|
+
return format(new Date(key), 'd.M.yyyy', this.dateFnsLocale);
|
|
414
419
|
}
|
|
415
|
-
return
|
|
420
|
+
return "Invalid Date";
|
|
416
421
|
}
|
|
417
422
|
getLocalizedDateTime(key) {
|
|
418
|
-
//
|
|
419
|
-
|
|
423
|
+
//To Do Manoj: Test in IE and make TimeZone specific changes accordingly
|
|
424
|
+
let dateValue = new Date(key);
|
|
420
425
|
if (isValid(dateValue)) {
|
|
421
|
-
|
|
422
|
-
return format(localDate,
|
|
426
|
+
let localDate = Convert.toLocalizedDateTime(dateValue);
|
|
427
|
+
return format(localDate, 'd.M.yyyy HH:mm', this.dateFnsLocale);
|
|
423
428
|
}
|
|
424
|
-
return
|
|
429
|
+
return "Invalid Date";
|
|
430
|
+
}
|
|
431
|
+
getUTCToLocalizedDateTime(key) {
|
|
432
|
+
let browserTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
433
|
+
if (key) {
|
|
434
|
+
if (key.indexOf("T") == -1) {
|
|
435
|
+
key = key.replace(" ", "T");
|
|
436
|
+
}
|
|
437
|
+
if (key.indexOf("Z") == -1) {
|
|
438
|
+
key = key + "Z";
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
if (browserTimeZone) {
|
|
442
|
+
let localDateTime = utcToZonedTime(key, browserTimeZone);
|
|
443
|
+
return format(localDateTime, 'd.M.yyyy HH:mm', this.dateFnsLocale);
|
|
444
|
+
}
|
|
445
|
+
else {
|
|
446
|
+
return format(new Date(key), 'd.M.yyyy HH:mm', this.dateFnsLocale);
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
//https://date-fns.org/v1.30.1/docs/distanceInWords
|
|
450
|
+
getUTCToLocalizedDistanceToNowInWords(date) {
|
|
451
|
+
date = this.safeUtcToZonedTime(date);
|
|
452
|
+
if (isValid(new Date(date))) {
|
|
453
|
+
return formatDistanceToNow(new Date(date), this.dateFnsLocale);
|
|
454
|
+
}
|
|
455
|
+
return "Invalid Date";
|
|
425
456
|
}
|
|
426
457
|
getLocalizedDistanceToNowInWords(date) {
|
|
427
|
-
// https://date-fns.org/v1.30.1/docs/distanceInWords
|
|
428
458
|
if (isValid(new Date(date))) {
|
|
429
459
|
return formatDistanceToNow(new Date(date), this.dateFnsLocale);
|
|
430
460
|
}
|
|
431
|
-
return
|
|
461
|
+
return "Invalid Date";
|
|
432
462
|
}
|
|
433
463
|
getLocalizedDistanceInWords(endedDate, startedDate) {
|
|
434
464
|
if (isValid(new Date(endedDate)) && isValid(new Date(startedDate))) {
|
|
435
465
|
return formatDistance(new Date(endedDate), new Date(startedDate), this.dateFnsLocale);
|
|
436
466
|
}
|
|
437
|
-
return
|
|
467
|
+
return "Invalid Date";
|
|
468
|
+
}
|
|
469
|
+
safeUtcToZonedTime(date) {
|
|
470
|
+
let result = date;
|
|
471
|
+
try {
|
|
472
|
+
if (date) {
|
|
473
|
+
if (date.indexOf("T") == -1) {
|
|
474
|
+
date = date.replace(" ", "T");
|
|
475
|
+
}
|
|
476
|
+
if (date.indexOf("Z") == -1) {
|
|
477
|
+
date = date + "Z";
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
let browserTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
481
|
+
if (browserTimeZone) {
|
|
482
|
+
result = utcToZonedTime(date, browserTimeZone).toString();
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
result = new Date(date).toString();
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
catch (_a) {
|
|
489
|
+
if (date) {
|
|
490
|
+
console.log("UTC to Local conversion failed for :" + date.toString());
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
return result;
|
|
438
494
|
}
|
|
439
495
|
}
|
|
440
496
|
LocalizationService.ɵprov = ɵɵdefineInjectable({ factory: function LocalizationService_Factory() { return new LocalizationService(ɵɵinject(TranslateService)); }, token: LocalizationService, providedIn: "root" });
|
|
@@ -462,7 +518,7 @@ LocalizationService.ctorParameters = () => [
|
|
|
462
518
|
Version:
|
|
463
519
|
1.0
|
|
464
520
|
|
|
465
|
-
Copyright (c) 2016-
|
|
521
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
466
522
|
</file>
|
|
467
523
|
*/
|
|
468
524
|
class LocalizePipe {
|
|
@@ -476,23 +532,29 @@ class LocalizePipe {
|
|
|
476
532
|
if (!type) {
|
|
477
533
|
type = 't';
|
|
478
534
|
}
|
|
479
|
-
//
|
|
535
|
+
//Translate
|
|
480
536
|
if (type === 't') {
|
|
481
537
|
return this.localizeService.getLocalizedValue(inputData);
|
|
482
538
|
}
|
|
483
|
-
//
|
|
539
|
+
//Date
|
|
484
540
|
if (type === 'd') {
|
|
485
541
|
return this.localizeService.getLocalizedDate(inputData);
|
|
486
542
|
}
|
|
487
|
-
//
|
|
543
|
+
//DateTime
|
|
488
544
|
if (type === 'dt') {
|
|
489
545
|
return this.localizeService.getLocalizedDateTime(inputData);
|
|
490
546
|
}
|
|
491
|
-
|
|
547
|
+
if (type === 'uldt') {
|
|
548
|
+
return this.localizeService.getUTCToLocalizedDateTime(inputData);
|
|
549
|
+
}
|
|
550
|
+
//DistanceToNowInWords
|
|
551
|
+
if (type === 'uldis2now') {
|
|
552
|
+
return this.localizeService.getUTCToLocalizedDistanceToNowInWords(inputData);
|
|
553
|
+
}
|
|
492
554
|
if (type === 'dis2now') {
|
|
493
555
|
return this.localizeService.getLocalizedDistanceToNowInWords(inputData);
|
|
494
556
|
}
|
|
495
|
-
//
|
|
557
|
+
//DistanceInWords
|
|
496
558
|
if (type === 'dis') {
|
|
497
559
|
return this.localizeService.getLocalizedDistanceInWords(inputData, param2);
|
|
498
560
|
}
|
|
@@ -523,7 +585,7 @@ LocalizePipe.ctorParameters = () => [
|
|
|
523
585
|
Version:
|
|
524
586
|
1.0
|
|
525
587
|
|
|
526
|
-
Copyright (c) 2016-
|
|
588
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
527
589
|
</file>
|
|
528
590
|
*/
|
|
529
591
|
function customTranslateLoaderFactory(http) {
|
|
@@ -592,7 +654,7 @@ LocalizationSettingsModule.ctorParameters = () => [
|
|
|
592
654
|
Version:
|
|
593
655
|
1.0
|
|
594
656
|
|
|
595
|
-
Copyright (c) 2016-
|
|
657
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
596
658
|
</file>
|
|
597
659
|
*/
|
|
598
660
|
class LocalizationModule {
|
|
@@ -628,7 +690,7 @@ LocalizationModule.decorators = [
|
|
|
628
690
|
Version:
|
|
629
691
|
1.0
|
|
630
692
|
|
|
631
|
-
Copyright (c) 2016-
|
|
693
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
632
694
|
</file>
|
|
633
695
|
*/
|
|
634
696
|
class GlobalErrorHandler {
|
|
@@ -664,7 +726,7 @@ GlobalErrorHandler.ctorParameters = () => [
|
|
|
664
726
|
Version:
|
|
665
727
|
1.0
|
|
666
728
|
|
|
667
|
-
Copyright (c) 2016-
|
|
729
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
668
730
|
</file>
|
|
669
731
|
*/
|
|
670
732
|
class L10nUtils {
|
|
@@ -706,7 +768,7 @@ class L10nUtils {
|
|
|
706
768
|
Version:
|
|
707
769
|
1.0
|
|
708
770
|
|
|
709
|
-
Copyright (c) 2016-
|
|
771
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
710
772
|
</file>
|
|
711
773
|
*/
|
|
712
774
|
class Alerts {
|
|
@@ -813,7 +875,7 @@ class Alerts {
|
|
|
813
875
|
Version:
|
|
814
876
|
1.0
|
|
815
877
|
|
|
816
|
-
Copyright (c) 2016-
|
|
878
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
817
879
|
</file>
|
|
818
880
|
*/
|
|
819
881
|
|
|
@@ -832,7 +894,7 @@ class Alerts {
|
|
|
832
894
|
Version:
|
|
833
895
|
1.0
|
|
834
896
|
|
|
835
|
-
Copyright (c) 2016-
|
|
897
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
836
898
|
</file>
|
|
837
899
|
*/
|
|
838
900
|
class Guid {
|
|
@@ -856,7 +918,7 @@ class Guid {
|
|
|
856
918
|
Version:
|
|
857
919
|
1.0
|
|
858
920
|
|
|
859
|
-
Copyright (c) 2016-
|
|
921
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
860
922
|
</file>
|
|
861
923
|
*/
|
|
862
924
|
// SignalR
|
|
@@ -1076,7 +1138,7 @@ NotificationService.ctorParameters = () => [
|
|
|
1076
1138
|
Version:
|
|
1077
1139
|
1.0
|
|
1078
1140
|
|
|
1079
|
-
Copyright (c) 2016-
|
|
1141
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1080
1142
|
</file>
|
|
1081
1143
|
*/
|
|
1082
1144
|
class BaseApiService {
|
|
@@ -1165,7 +1227,7 @@ BaseApiService.ctorParameters = () => [
|
|
|
1165
1227
|
Version:
|
|
1166
1228
|
1.0
|
|
1167
1229
|
|
|
1168
|
-
Copyright (c) 2016-
|
|
1230
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1169
1231
|
</file>
|
|
1170
1232
|
*/
|
|
1171
1233
|
class AppContextService extends BaseApiService {
|
|
@@ -1233,7 +1295,7 @@ AppContextService.ctorParameters = () => [
|
|
|
1233
1295
|
Version:
|
|
1234
1296
|
1.0
|
|
1235
1297
|
|
|
1236
|
-
Copyright (c) 2016-
|
|
1298
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1237
1299
|
</file>
|
|
1238
1300
|
*/
|
|
1239
1301
|
class IdleService {
|
|
@@ -1293,7 +1355,7 @@ IdleService.decorators = [
|
|
|
1293
1355
|
Version:
|
|
1294
1356
|
1.0
|
|
1295
1357
|
|
|
1296
|
-
Copyright (c) 2016-
|
|
1358
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1297
1359
|
</file>
|
|
1298
1360
|
*/
|
|
1299
1361
|
class WebStorageService {
|
|
@@ -1354,7 +1416,7 @@ SessionStorageService.ctorParameters = () => [];
|
|
|
1354
1416
|
Version:
|
|
1355
1417
|
1.0
|
|
1356
1418
|
|
|
1357
|
-
Copyright (c) 2016-
|
|
1419
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1358
1420
|
</file>
|
|
1359
1421
|
*/
|
|
1360
1422
|
class DigitalMarketingService {
|
|
@@ -1406,6 +1468,56 @@ DigitalMarketingService.ctorParameters = () => [
|
|
|
1406
1468
|
{ type: undefined, decorators: [{ type: Inject, args: [DOCUMENT,] }] }
|
|
1407
1469
|
];
|
|
1408
1470
|
|
|
1471
|
+
/*
|
|
1472
|
+
<file>
|
|
1473
|
+
Project:
|
|
1474
|
+
@osovitny/anatoly
|
|
1475
|
+
|
|
1476
|
+
Authors:
|
|
1477
|
+
Vadim Osovitny
|
|
1478
|
+
Anatoly Osovitny
|
|
1479
|
+
|
|
1480
|
+
Created:
|
|
1481
|
+
29 Nov 2020
|
|
1482
|
+
|
|
1483
|
+
Version:
|
|
1484
|
+
1.0
|
|
1485
|
+
|
|
1486
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1487
|
+
</file>
|
|
1488
|
+
*/
|
|
1489
|
+
class GoogleAnalyticsService {
|
|
1490
|
+
constructor(router) {
|
|
1491
|
+
this.router = router;
|
|
1492
|
+
/*
|
|
1493
|
+
https://yashints.dev/blog/2019/02/12/angular-ga-tagmanager
|
|
1494
|
+
https://developers.google.com/analytics/devguides/collection/gtagjs/pages
|
|
1495
|
+
https://developers.google.com/analytics/devguides/collection/upgrade/analyticsjs
|
|
1496
|
+
*/
|
|
1497
|
+
}
|
|
1498
|
+
subscribe() {
|
|
1499
|
+
this.subscription = this.router.events.subscribe(event => {
|
|
1500
|
+
if (event instanceof NavigationEnd) {
|
|
1501
|
+
if (window.ga) {
|
|
1502
|
+
window.ga('set', 'page', event.urlAfterRedirects);
|
|
1503
|
+
window.ga('send', 'pageview');
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
});
|
|
1507
|
+
}
|
|
1508
|
+
unsubscribe() {
|
|
1509
|
+
if (this.subscription) {
|
|
1510
|
+
this.subscription.unsubscribe();
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
GoogleAnalyticsService.decorators = [
|
|
1515
|
+
{ type: Injectable }
|
|
1516
|
+
];
|
|
1517
|
+
GoogleAnalyticsService.ctorParameters = () => [
|
|
1518
|
+
{ type: Router }
|
|
1519
|
+
];
|
|
1520
|
+
|
|
1409
1521
|
let InjectorInstance;
|
|
1410
1522
|
class AnatolyCoreModule {
|
|
1411
1523
|
constructor(injector, parentModule) {
|
|
@@ -1423,7 +1535,8 @@ AnatolyCoreModule.decorators = [
|
|
|
1423
1535
|
NotificationService,
|
|
1424
1536
|
AppContextService,
|
|
1425
1537
|
LoadingService,
|
|
1426
|
-
DigitalMarketingService
|
|
1538
|
+
DigitalMarketingService,
|
|
1539
|
+
GoogleAnalyticsService
|
|
1427
1540
|
],
|
|
1428
1541
|
},] }
|
|
1429
1542
|
];
|
|
@@ -1447,7 +1560,7 @@ AnatolyCoreModule.ctorParameters = () => [
|
|
|
1447
1560
|
Version:
|
|
1448
1561
|
1.0
|
|
1449
1562
|
|
|
1450
|
-
Copyright (c) 2016-
|
|
1563
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1451
1564
|
</file>
|
|
1452
1565
|
*/
|
|
1453
1566
|
class Subs {
|
|
@@ -1481,7 +1594,7 @@ class Subs {
|
|
|
1481
1594
|
Version:
|
|
1482
1595
|
1.0
|
|
1483
1596
|
|
|
1484
|
-
Copyright (c) 2016-
|
|
1597
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1485
1598
|
</file>
|
|
1486
1599
|
*/
|
|
1487
1600
|
class Utils {
|
|
@@ -1540,7 +1653,7 @@ class Utils {
|
|
|
1540
1653
|
Version:
|
|
1541
1654
|
1.0
|
|
1542
1655
|
|
|
1543
|
-
Copyright (c) 2016-
|
|
1656
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1544
1657
|
</file>
|
|
1545
1658
|
*/
|
|
1546
1659
|
class BaseGridReadService extends BehaviorSubject {
|
|
@@ -1596,7 +1709,7 @@ BaseGridReadService.ctorParameters = () => [
|
|
|
1596
1709
|
Version:
|
|
1597
1710
|
1.0
|
|
1598
1711
|
|
|
1599
|
-
Copyright (c) 2016-
|
|
1712
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1600
1713
|
</file>
|
|
1601
1714
|
*/
|
|
1602
1715
|
class BaseGridEditService extends BaseGridReadService {
|
|
@@ -1667,7 +1780,7 @@ BaseGridEditService.ctorParameters = () => [
|
|
|
1667
1780
|
Version:
|
|
1668
1781
|
1.0
|
|
1669
1782
|
|
|
1670
|
-
Copyright (c) 2016-
|
|
1783
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1671
1784
|
</file>
|
|
1672
1785
|
*/
|
|
1673
1786
|
const consts = {
|
|
@@ -1691,7 +1804,7 @@ const consts = {
|
|
|
1691
1804
|
Version:
|
|
1692
1805
|
1.0
|
|
1693
1806
|
|
|
1694
|
-
Copyright (c) 2016-
|
|
1807
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1695
1808
|
</file>
|
|
1696
1809
|
*/
|
|
1697
1810
|
class NotificationsApiService extends BaseApiService {
|
|
@@ -1729,7 +1842,7 @@ NotificationsApiService.ctorParameters = () => [
|
|
|
1729
1842
|
Version:
|
|
1730
1843
|
1.0
|
|
1731
1844
|
|
|
1732
|
-
Copyright (c) 2016-
|
|
1845
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1733
1846
|
</file>
|
|
1734
1847
|
*/
|
|
1735
1848
|
class BillingApiService extends BaseApiService {
|
|
@@ -1788,7 +1901,7 @@ BillingApiService.ctorParameters = () => [
|
|
|
1788
1901
|
Version:
|
|
1789
1902
|
1.0
|
|
1790
1903
|
|
|
1791
|
-
Copyright (c) 2016-
|
|
1904
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1792
1905
|
</file>
|
|
1793
1906
|
*/
|
|
1794
1907
|
class AnatolyDataModule {
|
|
@@ -1825,7 +1938,7 @@ AnatolyDataModule.ctorParameters = () => [
|
|
|
1825
1938
|
Version:
|
|
1826
1939
|
1.0
|
|
1827
1940
|
|
|
1828
|
-
Copyright (c) 2016-
|
|
1941
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1829
1942
|
</file>
|
|
1830
1943
|
*/
|
|
1831
1944
|
class BuyAccessButtonComponent {
|
|
@@ -1893,7 +2006,7 @@ BuyAccessButtonComponent.propDecorators = {
|
|
|
1893
2006
|
Version:
|
|
1894
2007
|
1.0
|
|
1895
2008
|
|
|
1896
|
-
Copyright (c) 2016-
|
|
2009
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1897
2010
|
</file>
|
|
1898
2011
|
*/
|
|
1899
2012
|
class SubscribePlanButtonComponent {
|
|
@@ -1952,7 +2065,7 @@ SubscribePlanButtonComponent.propDecorators = {
|
|
|
1952
2065
|
Version:
|
|
1953
2066
|
1.0
|
|
1954
2067
|
|
|
1955
|
-
Copyright (c) 2016-
|
|
2068
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1956
2069
|
</file>
|
|
1957
2070
|
*/
|
|
1958
2071
|
// Services
|
|
@@ -2002,7 +2115,7 @@ UpgradePlanButtonComponent.propDecorators = {
|
|
|
2002
2115
|
Version:
|
|
2003
2116
|
1.0
|
|
2004
2117
|
|
|
2005
|
-
Copyright (c) 2016-
|
|
2118
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2006
2119
|
</file>
|
|
2007
2120
|
*/
|
|
2008
2121
|
class ContentHeaderComponent {
|
|
@@ -2037,7 +2150,7 @@ ContentHeaderComponent.propDecorators = {
|
|
|
2037
2150
|
Version:
|
|
2038
2151
|
1.0
|
|
2039
2152
|
|
|
2040
|
-
Copyright (c) 2016-
|
|
2153
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2041
2154
|
</file>
|
|
2042
2155
|
*/
|
|
2043
2156
|
const DefaultEditorOptions = {
|
|
@@ -2126,7 +2239,7 @@ const DefaultEditorOptions = {
|
|
|
2126
2239
|
Version:
|
|
2127
2240
|
1.0
|
|
2128
2241
|
|
|
2129
|
-
Copyright (c) 2016-
|
|
2242
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2130
2243
|
</file>
|
|
2131
2244
|
*/
|
|
2132
2245
|
class BaseComponent {
|
|
@@ -2159,7 +2272,7 @@ class BaseComponent {
|
|
|
2159
2272
|
Version:
|
|
2160
2273
|
1.0
|
|
2161
2274
|
|
|
2162
|
-
Copyright (c) 2016-
|
|
2275
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2163
2276
|
</file>
|
|
2164
2277
|
*/
|
|
2165
2278
|
class BaseEditComponent extends BaseComponent {
|
|
@@ -2289,7 +2402,7 @@ BaseEditComponent.propDecorators = {
|
|
|
2289
2402
|
Version:
|
|
2290
2403
|
1.0
|
|
2291
2404
|
|
|
2292
|
-
Copyright (c) 2016-
|
|
2405
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2293
2406
|
</file>
|
|
2294
2407
|
*/
|
|
2295
2408
|
class BaseHtmlEditorComponent extends BaseEditComponent {
|
|
@@ -2385,7 +2498,7 @@ BaseHtmlEditorComponent.propDecorators = {
|
|
|
2385
2498
|
Version:
|
|
2386
2499
|
1.0
|
|
2387
2500
|
|
|
2388
|
-
Copyright (c) 2016-
|
|
2501
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2389
2502
|
</file>
|
|
2390
2503
|
*/
|
|
2391
2504
|
class FormsHtmlEditorComponent extends BaseHtmlEditorComponent {
|
|
@@ -2425,7 +2538,7 @@ FormsHtmlEditorComponent.propDecorators = {
|
|
|
2425
2538
|
Version:
|
|
2426
2539
|
1.0
|
|
2427
2540
|
|
|
2428
|
-
Copyright (c) 2016-
|
|
2541
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2429
2542
|
</file>
|
|
2430
2543
|
*/
|
|
2431
2544
|
class HtmlEditorComponent extends BaseHtmlEditorComponent {
|
|
@@ -2472,7 +2585,7 @@ HtmlEditorComponent.ctorParameters = () => [];
|
|
|
2472
2585
|
Version:
|
|
2473
2586
|
1.0
|
|
2474
2587
|
|
|
2475
|
-
Copyright (c) 2016-
|
|
2588
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2476
2589
|
</file>
|
|
2477
2590
|
*/
|
|
2478
2591
|
class SignInButtonComponent {
|
|
@@ -2504,7 +2617,7 @@ SignInButtonComponent.propDecorators = {
|
|
|
2504
2617
|
Version:
|
|
2505
2618
|
1.0
|
|
2506
2619
|
|
|
2507
|
-
Copyright (c) 2016-
|
|
2620
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2508
2621
|
</file>
|
|
2509
2622
|
*/
|
|
2510
2623
|
class SignOutButtonComponent {
|
|
@@ -2536,7 +2649,7 @@ SignOutButtonComponent.propDecorators = {
|
|
|
2536
2649
|
Version:
|
|
2537
2650
|
1.0
|
|
2538
2651
|
|
|
2539
|
-
Copyright (c) 2016-
|
|
2652
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2540
2653
|
</file>
|
|
2541
2654
|
*/
|
|
2542
2655
|
class SignUpButtonComponent {
|
|
@@ -2566,7 +2679,7 @@ SignUpButtonComponent.propDecorators = {
|
|
|
2566
2679
|
Version:
|
|
2567
2680
|
1.0
|
|
2568
2681
|
|
|
2569
|
-
Copyright (c) 2016-
|
|
2682
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2570
2683
|
</file>
|
|
2571
2684
|
*/
|
|
2572
2685
|
class LoadingComponent {
|
|
@@ -2611,7 +2724,7 @@ LoadingComponent.ctorParameters = () => [
|
|
|
2611
2724
|
Version:
|
|
2612
2725
|
1.0
|
|
2613
2726
|
|
|
2614
|
-
Copyright (c) 2016-
|
|
2727
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2615
2728
|
</file>
|
|
2616
2729
|
*/
|
|
2617
2730
|
const SpinnerSpinKit = {
|
|
@@ -2680,7 +2793,7 @@ SpinnerComponent.propDecorators = {
|
|
|
2680
2793
|
Version:
|
|
2681
2794
|
1.0
|
|
2682
2795
|
|
|
2683
|
-
Copyright (c) 2016-
|
|
2796
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2684
2797
|
</file>
|
|
2685
2798
|
*/
|
|
2686
2799
|
class NativeElementDirective {
|
|
@@ -2718,7 +2831,7 @@ NativeElementDirective.ctorParameters = () => [
|
|
|
2718
2831
|
Version:
|
|
2719
2832
|
1.0
|
|
2720
2833
|
|
|
2721
|
-
Copyright (c) 2016-
|
|
2834
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2722
2835
|
</file>
|
|
2723
2836
|
*/
|
|
2724
2837
|
class ReplaceTextPipe {
|
|
@@ -2752,7 +2865,7 @@ ReplaceTextPipe.decorators = [
|
|
|
2752
2865
|
Version:
|
|
2753
2866
|
1.0
|
|
2754
2867
|
|
|
2755
|
-
Copyright (c) 2016-
|
|
2868
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2756
2869
|
</file>
|
|
2757
2870
|
*/
|
|
2758
2871
|
class FileSizePipe {
|
|
@@ -2791,7 +2904,7 @@ FileSizePipe.decorators = [
|
|
|
2791
2904
|
Version:
|
|
2792
2905
|
1.0
|
|
2793
2906
|
|
|
2794
|
-
Copyright (c) 2016-
|
|
2907
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2795
2908
|
</file>
|
|
2796
2909
|
*/
|
|
2797
2910
|
class SafeHtmlPipe {
|
|
@@ -2824,7 +2937,7 @@ SafeHtmlPipe.ctorParameters = () => [
|
|
|
2824
2937
|
Version:
|
|
2825
2938
|
1.0
|
|
2826
2939
|
|
|
2827
|
-
Copyright (c) 2016-
|
|
2940
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2828
2941
|
</file>
|
|
2829
2942
|
*/
|
|
2830
2943
|
class ValidationSummaryComponent extends BaseEditComponent {
|
|
@@ -2939,7 +3052,7 @@ class ValidationSummaryComponent extends BaseEditComponent {
|
|
|
2939
3052
|
Version:
|
|
2940
3053
|
1.0
|
|
2941
3054
|
|
|
2942
|
-
Copyright (c) 2016-
|
|
3055
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2943
3056
|
</file>
|
|
2944
3057
|
*/
|
|
2945
3058
|
class FormValidationSummaryComponent extends ValidationSummaryComponent {
|
|
@@ -3000,7 +3113,7 @@ FormValidationSummaryComponent.propDecorators = {
|
|
|
3000
3113
|
Version:
|
|
3001
3114
|
1.0
|
|
3002
3115
|
|
|
3003
|
-
Copyright (c) 2016-
|
|
3116
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
3004
3117
|
</file>
|
|
3005
3118
|
*/
|
|
3006
3119
|
class ItemValidationSummaryComponent extends ValidationSummaryComponent {
|
|
@@ -3035,7 +3148,7 @@ ItemValidationSummaryComponent.propDecorators = {
|
|
|
3035
3148
|
Version:
|
|
3036
3149
|
1.0
|
|
3037
3150
|
|
|
3038
|
-
Copyright (c) 2016-
|
|
3151
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
3039
3152
|
</file>
|
|
3040
3153
|
*/
|
|
3041
3154
|
const FroalaEditorModuleWithProviders = FroalaEditorModule.forRoot();
|
|
@@ -3100,5 +3213,5 @@ AnatolyUIModule.decorators = [
|
|
|
3100
3213
|
* Generated bundle index. Do not edit.
|
|
3101
3214
|
*/
|
|
3102
3215
|
|
|
3103
|
-
export { Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BillingApiService, BuyAccessButtonComponent, ContentHeaderComponent, ContextInitState, Convert, DefaultEditorOptions, DigitalMarketingService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NotificationService, NotificationsApiService, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, SpinnerComponent, Subs, SubscribePlanButtonComponent, TranslateModuleAtRoot, UpgradePlanButtonComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
|
|
3216
|
+
export { Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BillingApiService, BuyAccessButtonComponent, ContentHeaderComponent, ContextInitState, Convert, DefaultEditorOptions, DigitalMarketingService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NotificationService, NotificationsApiService, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, SpinnerComponent, Subs, SubscribePlanButtonComponent, TranslateModuleAtRoot, UpgradePlanButtonComponent, Urls, Utils, ValidationSummaryComponent, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
|
|
3104
3217
|
//# sourceMappingURL=osovitny-anatoly.js.map
|