@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,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@angular/common/http'), require('rxjs/operators'), require('rxjs'), require('@ngx-translate/core'), require('date-fns'), require('date-fns/locale/en-US'), require('@angular/common'), require('@ngx-translate/http-loader'), require('sweetalert2'), require('ngx-toastr'), require('uuid'), require('@angular/platform-browser'), require('@angular/forms'), require('angular-froala-wysiwyg')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@osovitny/anatoly', ['exports', '@angular/core', '@angular/router', '@angular/common/http', 'rxjs/operators', 'rxjs', '@ngx-translate/core', 'date-fns', 'date-fns/locale/en-US', '@angular/common', '@ngx-translate/http-loader', 'sweetalert2', 'ngx-toastr', 'uuid', '@angular/platform-browser', '@angular/forms', 'angular-froala-wysiwyg'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.osovitny = global.osovitny || {}, global.osovitny.anatoly = {}), global.ng.core, global.ng.router, global.ng.common.http, global.rxjs.operators, global.rxjs, global.i1$1, global.dateFns, global.enUS, global.ng.common, global.httpLoader, global.Swal, global.i1$2, global.uuid, global.ng.platformBrowser, global.ng.forms, global.angularFroalaWysiwyg));
|
|
5
|
-
}(this, (function (exports, i0, router, i1, operators, rxjs, i1$1, dateFns, enUS, i2, httpLoader, Swal, i1$2, uuid, i1$3, forms, angularFroalaWysiwyg) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/router'), require('@angular/common/http'), require('rxjs/operators'), require('rxjs'), require('@ngx-translate/core'), require('date-fns'), require('date-fns-tz'), require('date-fns/locale/en-US'), require('@angular/common'), require('@ngx-translate/http-loader'), require('sweetalert2'), require('ngx-toastr'), require('uuid'), require('@angular/platform-browser'), require('@angular/forms'), require('angular-froala-wysiwyg')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@osovitny/anatoly', ['exports', '@angular/core', '@angular/router', '@angular/common/http', 'rxjs/operators', 'rxjs', '@ngx-translate/core', 'date-fns', 'date-fns-tz', 'date-fns/locale/en-US', '@angular/common', '@ngx-translate/http-loader', 'sweetalert2', 'ngx-toastr', 'uuid', '@angular/platform-browser', '@angular/forms', 'angular-froala-wysiwyg'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.osovitny = global.osovitny || {}, global.osovitny.anatoly = {}), global.ng.core, global.ng.router, global.ng.common.http, global.rxjs.operators, global.rxjs, global.i1$1, global.dateFns, global.dateFnsTz, global.enUS, global.ng.common, global.httpLoader, global.Swal, global.i1$2, global.uuid, global.ng.platformBrowser, global.ng.forms, global.angularFroalaWysiwyg));
|
|
5
|
+
}(this, (function (exports, i0, router, i1, operators, rxjs, i1$1, dateFns, dateFnsTz, enUS, i2, httpLoader, Swal, i1$2, uuid, i1$3, forms, angularFroalaWysiwyg) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
Version:
|
|
25
25
|
1.0
|
|
26
26
|
|
|
27
|
-
Copyright (c) 2016-
|
|
27
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
28
28
|
</file>
|
|
29
29
|
*/
|
|
30
30
|
var ContextInitState = JSON.parse((document.getElementById('contextInitState')).getAttribute('data-contextinitstate'));
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
Version:
|
|
68
68
|
1.0
|
|
69
69
|
|
|
70
|
-
Copyright (c) 2016-
|
|
70
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
71
71
|
</file>
|
|
72
72
|
*/
|
|
73
73
|
var BaseGoService = /** @class */ (function () {
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
Version:
|
|
105
105
|
1.0
|
|
106
106
|
|
|
107
|
-
Copyright (c) 2016-
|
|
107
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
108
108
|
</file>
|
|
109
109
|
*/
|
|
110
110
|
function throwIfAlreadyLoaded(parentModule, moduleName) {
|
|
@@ -481,7 +481,7 @@
|
|
|
481
481
|
Version:
|
|
482
482
|
1.0
|
|
483
483
|
|
|
484
|
-
Copyright (c) 2016-
|
|
484
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
485
485
|
</file>
|
|
486
486
|
*/
|
|
487
487
|
var LoggingService = /** @class */ (function () {
|
|
@@ -633,7 +633,7 @@
|
|
|
633
633
|
Version:
|
|
634
634
|
1.0
|
|
635
635
|
|
|
636
|
-
Copyright (c) 2016-
|
|
636
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
637
637
|
</file>
|
|
638
638
|
*/
|
|
639
639
|
var Convert = /** @class */ (function () {
|
|
@@ -658,12 +658,12 @@
|
|
|
658
658
|
Anatoly Osovitny
|
|
659
659
|
|
|
660
660
|
Created:
|
|
661
|
-
|
|
661
|
+
05 May 2020
|
|
662
662
|
|
|
663
663
|
Version:
|
|
664
664
|
1.0
|
|
665
665
|
|
|
666
|
-
Copyright (c) 2016-
|
|
666
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
667
667
|
</file>
|
|
668
668
|
*/
|
|
669
669
|
var LocalizationService = /** @class */ (function () {
|
|
@@ -672,12 +672,16 @@
|
|
|
672
672
|
this.setSupportedLanguages(['en']);
|
|
673
673
|
}
|
|
674
674
|
LocalizationService.prototype.format = function (str, args) {
|
|
675
|
-
|
|
676
|
-
|
|
675
|
+
return str.replace(/{(\d+)}/g, function (match, number) {
|
|
676
|
+
return typeof args[number] != 'undefined'
|
|
677
|
+
? args[number]
|
|
678
|
+
: match;
|
|
679
|
+
});
|
|
677
680
|
};
|
|
678
681
|
;
|
|
679
682
|
LocalizationService.prototype.configureTranslationSettings = function (translate) {
|
|
680
683
|
var languageToSet = 'en';
|
|
684
|
+
this.dateFnsLocale = { locale: enUS__default['default'] };
|
|
681
685
|
translate.setDefaultLang(languageToSet);
|
|
682
686
|
return languageToSet;
|
|
683
687
|
};
|
|
@@ -713,31 +717,82 @@
|
|
|
713
717
|
};
|
|
714
718
|
LocalizationService.prototype.getLocalizedDate = function (key) {
|
|
715
719
|
if (dateFns.isValid(new Date(key))) {
|
|
716
|
-
return dateFns.format(new Date(key),
|
|
720
|
+
return dateFns.format(new Date(key), 'd.M.yyyy', this.dateFnsLocale);
|
|
717
721
|
}
|
|
718
|
-
return
|
|
722
|
+
return "Invalid Date";
|
|
719
723
|
};
|
|
720
724
|
LocalizationService.prototype.getLocalizedDateTime = function (key) {
|
|
721
|
-
//
|
|
725
|
+
//To Do Manoj: Test in IE and make TimeZone specific changes accordingly
|
|
722
726
|
var dateValue = new Date(key);
|
|
723
727
|
if (dateFns.isValid(dateValue)) {
|
|
724
728
|
var localDate = Convert.toLocalizedDateTime(dateValue);
|
|
725
|
-
return dateFns.format(localDate,
|
|
729
|
+
return dateFns.format(localDate, 'd.M.yyyy HH:mm', this.dateFnsLocale);
|
|
726
730
|
}
|
|
727
|
-
return
|
|
731
|
+
return "Invalid Date";
|
|
732
|
+
};
|
|
733
|
+
LocalizationService.prototype.getUTCToLocalizedDateTime = function (key) {
|
|
734
|
+
var browserTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
735
|
+
if (key) {
|
|
736
|
+
if (key.indexOf("T") == -1) {
|
|
737
|
+
key = key.replace(" ", "T");
|
|
738
|
+
}
|
|
739
|
+
if (key.indexOf("Z") == -1) {
|
|
740
|
+
key = key + "Z";
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
if (browserTimeZone) {
|
|
744
|
+
var localDateTime = dateFnsTz.utcToZonedTime(key, browserTimeZone);
|
|
745
|
+
return dateFns.format(localDateTime, 'd.M.yyyy HH:mm', this.dateFnsLocale);
|
|
746
|
+
}
|
|
747
|
+
else {
|
|
748
|
+
return dateFns.format(new Date(key), 'd.M.yyyy HH:mm', this.dateFnsLocale);
|
|
749
|
+
}
|
|
750
|
+
};
|
|
751
|
+
//https://date-fns.org/v1.30.1/docs/distanceInWords
|
|
752
|
+
LocalizationService.prototype.getUTCToLocalizedDistanceToNowInWords = function (date) {
|
|
753
|
+
date = this.safeUtcToZonedTime(date);
|
|
754
|
+
if (dateFns.isValid(new Date(date))) {
|
|
755
|
+
return dateFns.formatDistanceToNow(new Date(date), this.dateFnsLocale);
|
|
756
|
+
}
|
|
757
|
+
return "Invalid Date";
|
|
728
758
|
};
|
|
729
759
|
LocalizationService.prototype.getLocalizedDistanceToNowInWords = function (date) {
|
|
730
|
-
// https://date-fns.org/v1.30.1/docs/distanceInWords
|
|
731
760
|
if (dateFns.isValid(new Date(date))) {
|
|
732
761
|
return dateFns.formatDistanceToNow(new Date(date), this.dateFnsLocale);
|
|
733
762
|
}
|
|
734
|
-
return
|
|
763
|
+
return "Invalid Date";
|
|
735
764
|
};
|
|
736
765
|
LocalizationService.prototype.getLocalizedDistanceInWords = function (endedDate, startedDate) {
|
|
737
766
|
if (dateFns.isValid(new Date(endedDate)) && dateFns.isValid(new Date(startedDate))) {
|
|
738
767
|
return dateFns.formatDistance(new Date(endedDate), new Date(startedDate), this.dateFnsLocale);
|
|
739
768
|
}
|
|
740
|
-
return
|
|
769
|
+
return "Invalid Date";
|
|
770
|
+
};
|
|
771
|
+
LocalizationService.prototype.safeUtcToZonedTime = function (date) {
|
|
772
|
+
var result = date;
|
|
773
|
+
try {
|
|
774
|
+
if (date) {
|
|
775
|
+
if (date.indexOf("T") == -1) {
|
|
776
|
+
date = date.replace(" ", "T");
|
|
777
|
+
}
|
|
778
|
+
if (date.indexOf("Z") == -1) {
|
|
779
|
+
date = date + "Z";
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
var browserTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
783
|
+
if (browserTimeZone) {
|
|
784
|
+
result = dateFnsTz.utcToZonedTime(date, browserTimeZone).toString();
|
|
785
|
+
}
|
|
786
|
+
else {
|
|
787
|
+
result = new Date(date).toString();
|
|
788
|
+
}
|
|
789
|
+
}
|
|
790
|
+
catch (_a) {
|
|
791
|
+
if (date) {
|
|
792
|
+
console.log("UTC to Local conversion failed for :" + date.toString());
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
return result;
|
|
741
796
|
};
|
|
742
797
|
return LocalizationService;
|
|
743
798
|
}());
|
|
@@ -766,7 +821,7 @@
|
|
|
766
821
|
Version:
|
|
767
822
|
1.0
|
|
768
823
|
|
|
769
|
-
Copyright (c) 2016-
|
|
824
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
770
825
|
</file>
|
|
771
826
|
*/
|
|
772
827
|
var LocalizePipe = /** @class */ (function () {
|
|
@@ -780,23 +835,29 @@
|
|
|
780
835
|
if (!type) {
|
|
781
836
|
type = 't';
|
|
782
837
|
}
|
|
783
|
-
//
|
|
838
|
+
//Translate
|
|
784
839
|
if (type === 't') {
|
|
785
840
|
return this.localizeService.getLocalizedValue(inputData);
|
|
786
841
|
}
|
|
787
|
-
//
|
|
842
|
+
//Date
|
|
788
843
|
if (type === 'd') {
|
|
789
844
|
return this.localizeService.getLocalizedDate(inputData);
|
|
790
845
|
}
|
|
791
|
-
//
|
|
846
|
+
//DateTime
|
|
792
847
|
if (type === 'dt') {
|
|
793
848
|
return this.localizeService.getLocalizedDateTime(inputData);
|
|
794
849
|
}
|
|
795
|
-
|
|
850
|
+
if (type === 'uldt') {
|
|
851
|
+
return this.localizeService.getUTCToLocalizedDateTime(inputData);
|
|
852
|
+
}
|
|
853
|
+
//DistanceToNowInWords
|
|
854
|
+
if (type === 'uldis2now') {
|
|
855
|
+
return this.localizeService.getUTCToLocalizedDistanceToNowInWords(inputData);
|
|
856
|
+
}
|
|
796
857
|
if (type === 'dis2now') {
|
|
797
858
|
return this.localizeService.getLocalizedDistanceToNowInWords(inputData);
|
|
798
859
|
}
|
|
799
|
-
//
|
|
860
|
+
//DistanceInWords
|
|
800
861
|
if (type === 'dis') {
|
|
801
862
|
return this.localizeService.getLocalizedDistanceInWords(inputData, param2);
|
|
802
863
|
}
|
|
@@ -828,7 +889,7 @@
|
|
|
828
889
|
Version:
|
|
829
890
|
1.0
|
|
830
891
|
|
|
831
|
-
Copyright (c) 2016-
|
|
892
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
832
893
|
</file>
|
|
833
894
|
*/
|
|
834
895
|
function customTranslateLoaderFactory(http) {
|
|
@@ -897,7 +958,7 @@
|
|
|
897
958
|
Version:
|
|
898
959
|
1.0
|
|
899
960
|
|
|
900
|
-
Copyright (c) 2016-
|
|
961
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
901
962
|
</file>
|
|
902
963
|
*/
|
|
903
964
|
var LocalizationModule = /** @class */ (function () {
|
|
@@ -936,7 +997,7 @@
|
|
|
936
997
|
Version:
|
|
937
998
|
1.0
|
|
938
999
|
|
|
939
|
-
Copyright (c) 2016-
|
|
1000
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
940
1001
|
</file>
|
|
941
1002
|
*/
|
|
942
1003
|
var GlobalErrorHandler = /** @class */ (function () {
|
|
@@ -973,7 +1034,7 @@
|
|
|
973
1034
|
Version:
|
|
974
1035
|
1.0
|
|
975
1036
|
|
|
976
|
-
Copyright (c) 2016-
|
|
1037
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
977
1038
|
</file>
|
|
978
1039
|
*/
|
|
979
1040
|
var L10nUtils = /** @class */ (function () {
|
|
@@ -1022,7 +1083,7 @@
|
|
|
1022
1083
|
Version:
|
|
1023
1084
|
1.0
|
|
1024
1085
|
|
|
1025
|
-
Copyright (c) 2016-
|
|
1086
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1026
1087
|
</file>
|
|
1027
1088
|
*/
|
|
1028
1089
|
var Alerts = /** @class */ (function () {
|
|
@@ -1132,7 +1193,7 @@
|
|
|
1132
1193
|
Version:
|
|
1133
1194
|
1.0
|
|
1134
1195
|
|
|
1135
|
-
Copyright (c) 2016-
|
|
1196
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1136
1197
|
</file>
|
|
1137
1198
|
*/
|
|
1138
1199
|
|
|
@@ -1151,7 +1212,7 @@
|
|
|
1151
1212
|
Version:
|
|
1152
1213
|
1.0
|
|
1153
1214
|
|
|
1154
|
-
Copyright (c) 2016-
|
|
1215
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1155
1216
|
</file>
|
|
1156
1217
|
*/
|
|
1157
1218
|
var Guid = /** @class */ (function () {
|
|
@@ -1390,7 +1451,7 @@
|
|
|
1390
1451
|
Version:
|
|
1391
1452
|
1.0
|
|
1392
1453
|
|
|
1393
|
-
Copyright (c) 2016-
|
|
1454
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1394
1455
|
</file>
|
|
1395
1456
|
*/
|
|
1396
1457
|
var BaseApiService = /** @class */ (function () {
|
|
@@ -1534,7 +1595,7 @@
|
|
|
1534
1595
|
Version:
|
|
1535
1596
|
1.0
|
|
1536
1597
|
|
|
1537
|
-
Copyright (c) 2016-
|
|
1598
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1538
1599
|
</file>
|
|
1539
1600
|
*/
|
|
1540
1601
|
var IdleService = /** @class */ (function () {
|
|
@@ -1646,7 +1707,7 @@
|
|
|
1646
1707
|
Version:
|
|
1647
1708
|
1.0
|
|
1648
1709
|
|
|
1649
|
-
Copyright (c) 2016-
|
|
1710
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1650
1711
|
</file>
|
|
1651
1712
|
*/
|
|
1652
1713
|
var DigitalMarketingService = /** @class */ (function () {
|
|
@@ -1700,6 +1761,57 @@
|
|
|
1700
1761
|
{ type: undefined, decorators: [{ type: i0.Inject, args: [i2.DOCUMENT,] }] }
|
|
1701
1762
|
]; };
|
|
1702
1763
|
|
|
1764
|
+
/*
|
|
1765
|
+
<file>
|
|
1766
|
+
Project:
|
|
1767
|
+
@osovitny/anatoly
|
|
1768
|
+
|
|
1769
|
+
Authors:
|
|
1770
|
+
Vadim Osovitny
|
|
1771
|
+
Anatoly Osovitny
|
|
1772
|
+
|
|
1773
|
+
Created:
|
|
1774
|
+
29 Nov 2020
|
|
1775
|
+
|
|
1776
|
+
Version:
|
|
1777
|
+
1.0
|
|
1778
|
+
|
|
1779
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1780
|
+
</file>
|
|
1781
|
+
*/
|
|
1782
|
+
var GoogleAnalyticsService = /** @class */ (function () {
|
|
1783
|
+
function GoogleAnalyticsService(router) {
|
|
1784
|
+
this.router = router;
|
|
1785
|
+
/*
|
|
1786
|
+
https://yashints.dev/blog/2019/02/12/angular-ga-tagmanager
|
|
1787
|
+
https://developers.google.com/analytics/devguides/collection/gtagjs/pages
|
|
1788
|
+
https://developers.google.com/analytics/devguides/collection/upgrade/analyticsjs
|
|
1789
|
+
*/
|
|
1790
|
+
}
|
|
1791
|
+
GoogleAnalyticsService.prototype.subscribe = function () {
|
|
1792
|
+
this.subscription = this.router.events.subscribe(function (event) {
|
|
1793
|
+
if (event instanceof router.NavigationEnd) {
|
|
1794
|
+
if (window.ga) {
|
|
1795
|
+
window.ga('set', 'page', event.urlAfterRedirects);
|
|
1796
|
+
window.ga('send', 'pageview');
|
|
1797
|
+
}
|
|
1798
|
+
}
|
|
1799
|
+
});
|
|
1800
|
+
};
|
|
1801
|
+
GoogleAnalyticsService.prototype.unsubscribe = function () {
|
|
1802
|
+
if (this.subscription) {
|
|
1803
|
+
this.subscription.unsubscribe();
|
|
1804
|
+
}
|
|
1805
|
+
};
|
|
1806
|
+
return GoogleAnalyticsService;
|
|
1807
|
+
}());
|
|
1808
|
+
GoogleAnalyticsService.decorators = [
|
|
1809
|
+
{ type: i0.Injectable }
|
|
1810
|
+
];
|
|
1811
|
+
GoogleAnalyticsService.ctorParameters = function () { return [
|
|
1812
|
+
{ type: router.Router }
|
|
1813
|
+
]; };
|
|
1814
|
+
|
|
1703
1815
|
var AnatolyCoreModule = /** @class */ (function () {
|
|
1704
1816
|
function AnatolyCoreModule(injector, parentModule) {
|
|
1705
1817
|
this.injector = injector;
|
|
@@ -1717,7 +1829,8 @@
|
|
|
1717
1829
|
NotificationService,
|
|
1718
1830
|
AppContextService,
|
|
1719
1831
|
LoadingService,
|
|
1720
|
-
DigitalMarketingService
|
|
1832
|
+
DigitalMarketingService,
|
|
1833
|
+
GoogleAnalyticsService
|
|
1721
1834
|
],
|
|
1722
1835
|
},] }
|
|
1723
1836
|
];
|
|
@@ -1741,7 +1854,7 @@
|
|
|
1741
1854
|
Version:
|
|
1742
1855
|
1.0
|
|
1743
1856
|
|
|
1744
|
-
Copyright (c) 2016-
|
|
1857
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1745
1858
|
</file>
|
|
1746
1859
|
*/
|
|
1747
1860
|
var Subs = /** @class */ (function () {
|
|
@@ -1784,7 +1897,7 @@
|
|
|
1784
1897
|
Version:
|
|
1785
1898
|
1.0
|
|
1786
1899
|
|
|
1787
|
-
Copyright (c) 2016-
|
|
1900
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1788
1901
|
</file>
|
|
1789
1902
|
*/
|
|
1790
1903
|
var Utils = /** @class */ (function () {
|
|
@@ -1946,7 +2059,7 @@
|
|
|
1946
2059
|
Version:
|
|
1947
2060
|
1.0
|
|
1948
2061
|
|
|
1949
|
-
Copyright (c) 2016-
|
|
2062
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
1950
2063
|
</file>
|
|
1951
2064
|
*/
|
|
1952
2065
|
var consts = {
|
|
@@ -2037,7 +2150,7 @@
|
|
|
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
|
var AnatolyDataModule = /** @class */ (function () {
|
|
@@ -2075,7 +2188,7 @@
|
|
|
2075
2188
|
Version:
|
|
2076
2189
|
1.0
|
|
2077
2190
|
|
|
2078
|
-
Copyright (c) 2016-
|
|
2191
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2079
2192
|
</file>
|
|
2080
2193
|
*/
|
|
2081
2194
|
var BuyAccessButtonComponent = /** @class */ (function () {
|
|
@@ -2145,7 +2258,7 @@
|
|
|
2145
2258
|
Version:
|
|
2146
2259
|
1.0
|
|
2147
2260
|
|
|
2148
|
-
Copyright (c) 2016-
|
|
2261
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2149
2262
|
</file>
|
|
2150
2263
|
*/
|
|
2151
2264
|
var SubscribePlanButtonComponent = /** @class */ (function () {
|
|
@@ -2206,7 +2319,7 @@
|
|
|
2206
2319
|
Version:
|
|
2207
2320
|
1.0
|
|
2208
2321
|
|
|
2209
|
-
Copyright (c) 2016-
|
|
2322
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2210
2323
|
</file>
|
|
2211
2324
|
*/
|
|
2212
2325
|
// Services
|
|
@@ -2257,7 +2370,7 @@
|
|
|
2257
2370
|
Version:
|
|
2258
2371
|
1.0
|
|
2259
2372
|
|
|
2260
|
-
Copyright (c) 2016-
|
|
2373
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2261
2374
|
</file>
|
|
2262
2375
|
*/
|
|
2263
2376
|
var ContentHeaderComponent = /** @class */ (function () {
|
|
@@ -2295,7 +2408,7 @@
|
|
|
2295
2408
|
Version:
|
|
2296
2409
|
1.0
|
|
2297
2410
|
|
|
2298
|
-
Copyright (c) 2016-
|
|
2411
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2299
2412
|
</file>
|
|
2300
2413
|
*/
|
|
2301
2414
|
var DefaultEditorOptions = {
|
|
@@ -2384,7 +2497,7 @@
|
|
|
2384
2497
|
Version:
|
|
2385
2498
|
1.0
|
|
2386
2499
|
|
|
2387
|
-
Copyright (c) 2016-
|
|
2500
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2388
2501
|
</file>
|
|
2389
2502
|
*/
|
|
2390
2503
|
var BaseComponent = /** @class */ (function () {
|
|
@@ -2684,7 +2797,7 @@
|
|
|
2684
2797
|
Version:
|
|
2685
2798
|
1.0
|
|
2686
2799
|
|
|
2687
|
-
Copyright (c) 2016-
|
|
2800
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2688
2801
|
</file>
|
|
2689
2802
|
*/
|
|
2690
2803
|
var SignInButtonComponent = /** @class */ (function () {
|
|
@@ -2718,7 +2831,7 @@
|
|
|
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
|
var SignOutButtonComponent = /** @class */ (function () {
|
|
@@ -2752,7 +2865,7 @@
|
|
|
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
|
var SignUpButtonComponent = /** @class */ (function () {
|
|
@@ -2785,7 +2898,7 @@
|
|
|
2785
2898
|
Version:
|
|
2786
2899
|
1.0
|
|
2787
2900
|
|
|
2788
|
-
Copyright (c) 2016-
|
|
2901
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2789
2902
|
</file>
|
|
2790
2903
|
*/
|
|
2791
2904
|
var LoadingComponent = /** @class */ (function () {
|
|
@@ -2832,7 +2945,7 @@
|
|
|
2832
2945
|
Version:
|
|
2833
2946
|
1.0
|
|
2834
2947
|
|
|
2835
|
-
Copyright (c) 2016-
|
|
2948
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2836
2949
|
</file>
|
|
2837
2950
|
*/
|
|
2838
2951
|
var SpinnerSpinKit = {
|
|
@@ -2903,7 +3016,7 @@
|
|
|
2903
3016
|
Version:
|
|
2904
3017
|
1.0
|
|
2905
3018
|
|
|
2906
|
-
Copyright (c) 2016-
|
|
3019
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2907
3020
|
</file>
|
|
2908
3021
|
*/
|
|
2909
3022
|
var NativeElementDirective = /** @class */ (function () {
|
|
@@ -2942,7 +3055,7 @@
|
|
|
2942
3055
|
Version:
|
|
2943
3056
|
1.0
|
|
2944
3057
|
|
|
2945
|
-
Copyright (c) 2016-
|
|
3058
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2946
3059
|
</file>
|
|
2947
3060
|
*/
|
|
2948
3061
|
var ReplaceTextPipe = /** @class */ (function () {
|
|
@@ -2979,7 +3092,7 @@
|
|
|
2979
3092
|
Version:
|
|
2980
3093
|
1.0
|
|
2981
3094
|
|
|
2982
|
-
Copyright (c) 2016-
|
|
3095
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
2983
3096
|
</file>
|
|
2984
3097
|
*/
|
|
2985
3098
|
var FileSizePipe = /** @class */ (function () {
|
|
@@ -3021,7 +3134,7 @@
|
|
|
3021
3134
|
Version:
|
|
3022
3135
|
1.0
|
|
3023
3136
|
|
|
3024
|
-
Copyright (c) 2016-
|
|
3137
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
3025
3138
|
</file>
|
|
3026
3139
|
*/
|
|
3027
3140
|
var SafeHtmlPipe = /** @class */ (function () {
|
|
@@ -3220,7 +3333,7 @@
|
|
|
3220
3333
|
Version:
|
|
3221
3334
|
1.0
|
|
3222
3335
|
|
|
3223
|
-
Copyright (c) 2016-
|
|
3336
|
+
Copyright (c) 2016-20201Osovitny Inc. All rights reserved.
|
|
3224
3337
|
</file>
|
|
3225
3338
|
*/
|
|
3226
3339
|
var FroalaEditorModuleWithProviders = angularFroalaWysiwyg.FroalaEditorModule.forRoot();
|
|
@@ -3315,6 +3428,7 @@
|
|
|
3315
3428
|
exports.FroalaEditorModuleWithProviders = FroalaEditorModuleWithProviders;
|
|
3316
3429
|
exports.FroalaViewModuleWithProviders = FroalaViewModuleWithProviders;
|
|
3317
3430
|
exports.GlobalErrorHandler = GlobalErrorHandler;
|
|
3431
|
+
exports.GoogleAnalyticsService = GoogleAnalyticsService;
|
|
3318
3432
|
exports.Guid = Guid;
|
|
3319
3433
|
exports.HtmlEditorComponent = HtmlEditorComponent;
|
|
3320
3434
|
exports.IdleService = IdleService;
|