@osovitny/anatoly 2.0.11 → 2.0.13
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 +144 -101
- 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/index.js +20 -0
- package/esm2015/lib/core/consts/settings.js +21 -0
- package/esm2015/lib/core/index.js +6 -3
- package/esm2015/lib/core/services/appcontext.service.js +4 -3
- package/esm2015/lib/core/utils.js +1 -1
- package/esm2015/lib/ui/components/html-editor/base-html-editor.component.js +3 -2
- package/fesm2015/osovitny-anatoly.js +139 -99
- package/fesm2015/osovitny-anatoly.js.map +1 -1
- package/lib/core/consts/index.d.ts +1 -0
- package/lib/core/consts/settings.d.ts +2 -0
- package/lib/core/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -6,6 +6,46 @@
|
|
|
6
6
|
|
|
7
7
|
Swal = Swal && Object.prototype.hasOwnProperty.call(Swal, 'default') ? Swal['default'] : Swal;
|
|
8
8
|
|
|
9
|
+
/*
|
|
10
|
+
<file>
|
|
11
|
+
Project:
|
|
12
|
+
@osovitny/anatoly
|
|
13
|
+
|
|
14
|
+
Authors:
|
|
15
|
+
Vadim Osovitny
|
|
16
|
+
Anatoly Osovitny
|
|
17
|
+
|
|
18
|
+
Created:
|
|
19
|
+
26 Jun 2020
|
|
20
|
+
|
|
21
|
+
Version:
|
|
22
|
+
1.0
|
|
23
|
+
|
|
24
|
+
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
25
|
+
</file>
|
|
26
|
+
*/
|
|
27
|
+
var ContextInitState = JSON.parse((document.getElementById("contextInitState")).getAttribute("data-contextinitstate"));
|
|
28
|
+
var AppCoreSettings = JSON.parse((document.getElementById("appCoreSettings")).getAttribute("data-appcoresettings"));
|
|
29
|
+
|
|
30
|
+
/*
|
|
31
|
+
<file>
|
|
32
|
+
Project:
|
|
33
|
+
@osovitny/anatoly
|
|
34
|
+
|
|
35
|
+
Authors:
|
|
36
|
+
Vadim Osovitny
|
|
37
|
+
Anatoly Osovitny
|
|
38
|
+
|
|
39
|
+
Created:
|
|
40
|
+
26 Jun 2020
|
|
41
|
+
|
|
42
|
+
Version:
|
|
43
|
+
1.0
|
|
44
|
+
|
|
45
|
+
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
46
|
+
</file>
|
|
47
|
+
*/
|
|
48
|
+
|
|
9
49
|
/*
|
|
10
50
|
<file>
|
|
11
51
|
Project:
|
|
@@ -277,6 +317,30 @@
|
|
|
277
317
|
return Guid;
|
|
278
318
|
}());
|
|
279
319
|
|
|
320
|
+
/*
|
|
321
|
+
<file>
|
|
322
|
+
Project:
|
|
323
|
+
@osovitny/anatoly
|
|
324
|
+
|
|
325
|
+
Authors:
|
|
326
|
+
Vadim Osovitny
|
|
327
|
+
Anatoly Osovitny
|
|
328
|
+
|
|
329
|
+
Created:
|
|
330
|
+
26 Jun 2020
|
|
331
|
+
|
|
332
|
+
Version:
|
|
333
|
+
1.0
|
|
334
|
+
|
|
335
|
+
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
336
|
+
</file>
|
|
337
|
+
*/
|
|
338
|
+
function throwIfAlreadyLoaded(parentModule, moduleName) {
|
|
339
|
+
if (parentModule) {
|
|
340
|
+
throw new Error(moduleName + " has already been loaded. Import " + moduleName + " modules in the AppModule only.");
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
280
344
|
/*
|
|
281
345
|
<file>
|
|
282
346
|
Project:
|
|
@@ -314,6 +378,80 @@
|
|
|
314
378
|
{ type: router.Router }
|
|
315
379
|
]; };
|
|
316
380
|
|
|
381
|
+
/*
|
|
382
|
+
<file>
|
|
383
|
+
Project:
|
|
384
|
+
@osovitny/anatoly
|
|
385
|
+
|
|
386
|
+
Authors:
|
|
387
|
+
Vadim Osovitny
|
|
388
|
+
Anatoly Osovitny
|
|
389
|
+
|
|
390
|
+
Created:
|
|
391
|
+
26 Jun 2020
|
|
392
|
+
|
|
393
|
+
Version:
|
|
394
|
+
1.0
|
|
395
|
+
|
|
396
|
+
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
397
|
+
</file>
|
|
398
|
+
*/
|
|
399
|
+
var LoggingService = /** @class */ (function () {
|
|
400
|
+
function LoggingService() {
|
|
401
|
+
}
|
|
402
|
+
LoggingService.prototype.logError = function (error) {
|
|
403
|
+
console.error(error);
|
|
404
|
+
};
|
|
405
|
+
LoggingService.prototype.logInformation = function (info) {
|
|
406
|
+
console.info(info);
|
|
407
|
+
};
|
|
408
|
+
return LoggingService;
|
|
409
|
+
}());
|
|
410
|
+
LoggingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoggingService_Factory() { return new LoggingService(); }, token: LoggingService, providedIn: "root" });
|
|
411
|
+
LoggingService.decorators = [
|
|
412
|
+
{ type: i0.Injectable, args: [{
|
|
413
|
+
providedIn: "root",
|
|
414
|
+
},] }
|
|
415
|
+
];
|
|
416
|
+
LoggingService.ctorParameters = function () { return []; };
|
|
417
|
+
|
|
418
|
+
/*
|
|
419
|
+
<file>
|
|
420
|
+
Project:
|
|
421
|
+
@osovitny/anatoly
|
|
422
|
+
|
|
423
|
+
Authors:
|
|
424
|
+
Vadim Osovitny
|
|
425
|
+
Anatoly Osovitny
|
|
426
|
+
|
|
427
|
+
Created:
|
|
428
|
+
26 Jun 2020
|
|
429
|
+
|
|
430
|
+
Version:
|
|
431
|
+
1.0
|
|
432
|
+
|
|
433
|
+
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
434
|
+
</file>
|
|
435
|
+
*/
|
|
436
|
+
var GlobalErrorHandler = /** @class */ (function () {
|
|
437
|
+
function GlobalErrorHandler(injector) {
|
|
438
|
+
this.injector = injector;
|
|
439
|
+
}
|
|
440
|
+
GlobalErrorHandler.prototype.handleError = function (error) {
|
|
441
|
+
var loggingService = this.injector.get(LoggingService);
|
|
442
|
+
loggingService.logError(error);
|
|
443
|
+
// IMPORTANT: Rethrow the error otherwise it gets swallowed
|
|
444
|
+
throw error;
|
|
445
|
+
};
|
|
446
|
+
return GlobalErrorHandler;
|
|
447
|
+
}());
|
|
448
|
+
GlobalErrorHandler.decorators = [
|
|
449
|
+
{ type: i0.Injectable }
|
|
450
|
+
];
|
|
451
|
+
GlobalErrorHandler.ctorParameters = function () { return [
|
|
452
|
+
{ type: i0.Injector }
|
|
453
|
+
]; };
|
|
454
|
+
|
|
317
455
|
/*! *****************************************************************************
|
|
318
456
|
Copyright (c) Microsoft Corporation.
|
|
319
457
|
|
|
@@ -742,10 +880,10 @@
|
|
|
742
880
|
this.current = null;
|
|
743
881
|
};
|
|
744
882
|
AppContextService.prototype.isUserSignedIn = function () {
|
|
745
|
-
return
|
|
883
|
+
return ContextInitState.isUserSignedIn;
|
|
746
884
|
};
|
|
747
885
|
AppContextService.prototype.isUserAdmin = function () {
|
|
748
|
-
return
|
|
886
|
+
return ContextInitState.isUserAdmin;
|
|
749
887
|
};
|
|
750
888
|
return AppContextService;
|
|
751
889
|
}(BaseApiService));
|
|
@@ -756,104 +894,6 @@
|
|
|
756
894
|
{ type: http.HttpClient }
|
|
757
895
|
]; };
|
|
758
896
|
|
|
759
|
-
/*
|
|
760
|
-
<file>
|
|
761
|
-
Project:
|
|
762
|
-
@osovitny/anatoly
|
|
763
|
-
|
|
764
|
-
Authors:
|
|
765
|
-
Vadim Osovitny
|
|
766
|
-
Anatoly Osovitny
|
|
767
|
-
|
|
768
|
-
Created:
|
|
769
|
-
26 Jun 2020
|
|
770
|
-
|
|
771
|
-
Version:
|
|
772
|
-
1.0
|
|
773
|
-
|
|
774
|
-
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
775
|
-
</file>
|
|
776
|
-
*/
|
|
777
|
-
var LoggingService = /** @class */ (function () {
|
|
778
|
-
function LoggingService() {
|
|
779
|
-
}
|
|
780
|
-
LoggingService.prototype.logError = function (error) {
|
|
781
|
-
console.error(error);
|
|
782
|
-
};
|
|
783
|
-
LoggingService.prototype.logInformation = function (info) {
|
|
784
|
-
console.info(info);
|
|
785
|
-
};
|
|
786
|
-
return LoggingService;
|
|
787
|
-
}());
|
|
788
|
-
LoggingService.ɵprov = i0.ɵɵdefineInjectable({ factory: function LoggingService_Factory() { return new LoggingService(); }, token: LoggingService, providedIn: "root" });
|
|
789
|
-
LoggingService.decorators = [
|
|
790
|
-
{ type: i0.Injectable, args: [{
|
|
791
|
-
providedIn: "root",
|
|
792
|
-
},] }
|
|
793
|
-
];
|
|
794
|
-
LoggingService.ctorParameters = function () { return []; };
|
|
795
|
-
|
|
796
|
-
/*
|
|
797
|
-
<file>
|
|
798
|
-
Project:
|
|
799
|
-
@osovitny/anatoly
|
|
800
|
-
|
|
801
|
-
Authors:
|
|
802
|
-
Vadim Osovitny
|
|
803
|
-
Anatoly Osovitny
|
|
804
|
-
|
|
805
|
-
Created:
|
|
806
|
-
26 Jun 2020
|
|
807
|
-
|
|
808
|
-
Version:
|
|
809
|
-
1.0
|
|
810
|
-
|
|
811
|
-
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
812
|
-
</file>
|
|
813
|
-
*/
|
|
814
|
-
var GlobalErrorHandler = /** @class */ (function () {
|
|
815
|
-
function GlobalErrorHandler(injector) {
|
|
816
|
-
this.injector = injector;
|
|
817
|
-
}
|
|
818
|
-
GlobalErrorHandler.prototype.handleError = function (error) {
|
|
819
|
-
var loggingService = this.injector.get(LoggingService);
|
|
820
|
-
loggingService.logError(error);
|
|
821
|
-
// IMPORTANT: Rethrow the error otherwise it gets swallowed
|
|
822
|
-
throw error;
|
|
823
|
-
};
|
|
824
|
-
return GlobalErrorHandler;
|
|
825
|
-
}());
|
|
826
|
-
GlobalErrorHandler.decorators = [
|
|
827
|
-
{ type: i0.Injectable }
|
|
828
|
-
];
|
|
829
|
-
GlobalErrorHandler.ctorParameters = function () { return [
|
|
830
|
-
{ type: i0.Injector }
|
|
831
|
-
]; };
|
|
832
|
-
|
|
833
|
-
/*
|
|
834
|
-
<file>
|
|
835
|
-
Project:
|
|
836
|
-
@osovitny/anatoly
|
|
837
|
-
|
|
838
|
-
Authors:
|
|
839
|
-
Vadim Osovitny
|
|
840
|
-
Anatoly Osovitny
|
|
841
|
-
|
|
842
|
-
Created:
|
|
843
|
-
26 Jun 2020
|
|
844
|
-
|
|
845
|
-
Version:
|
|
846
|
-
1.0
|
|
847
|
-
|
|
848
|
-
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
849
|
-
</file>
|
|
850
|
-
*/
|
|
851
|
-
function throwIfAlreadyLoaded(parentModule, moduleName) {
|
|
852
|
-
if (parentModule) {
|
|
853
|
-
throw new Error(moduleName + " has already been loaded. Import " + moduleName + " modules in the AppModule only.");
|
|
854
|
-
}
|
|
855
|
-
}
|
|
856
|
-
|
|
857
897
|
var providers = [
|
|
858
898
|
LoggingService,
|
|
859
899
|
AppContextService,
|
|
@@ -1612,7 +1652,7 @@
|
|
|
1612
1652
|
opt = JSON.parse(this.editorOptions);
|
|
1613
1653
|
}
|
|
1614
1654
|
var newOptions = $.extend({}, DefaultEditorOptions, opt);
|
|
1615
|
-
var key =
|
|
1655
|
+
var key = AppCoreSettings.froalaEditorKey;
|
|
1616
1656
|
if (key) {
|
|
1617
1657
|
newOptions = $.extend({}, newOptions, JSON.parse('{ "key": "' + key + '" }'));
|
|
1618
1658
|
}
|
|
@@ -1917,6 +1957,7 @@
|
|
|
1917
1957
|
exports.AnatolyDataModule = AnatolyDataModule;
|
|
1918
1958
|
exports.AnatolyUIModule = AnatolyUIModule;
|
|
1919
1959
|
exports.AppContextService = AppContextService;
|
|
1960
|
+
exports.AppCoreSettings = AppCoreSettings;
|
|
1920
1961
|
exports.BaseApiService = BaseApiService;
|
|
1921
1962
|
exports.BaseComponent = BaseComponent;
|
|
1922
1963
|
exports.BaseEditComponent = BaseEditComponent;
|
|
@@ -1926,6 +1967,7 @@
|
|
|
1926
1967
|
exports.BillingApiService = BillingApiService;
|
|
1927
1968
|
exports.BuyAccessButtonComponent = BuyAccessButtonComponent;
|
|
1928
1969
|
exports.ContentHeaderComponent = ContentHeaderComponent;
|
|
1970
|
+
exports.ContextInitState = ContextInitState;
|
|
1929
1971
|
exports.FormValidationSummaryComponent = FormValidationSummaryComponent;
|
|
1930
1972
|
exports.FormsHtmlEditorComponent = FormsHtmlEditorComponent;
|
|
1931
1973
|
exports.GlobalErrorHandler = GlobalErrorHandler;
|
|
@@ -1941,6 +1983,7 @@
|
|
|
1941
1983
|
exports.UpgradePlanButtonComponent = UpgradePlanButtonComponent;
|
|
1942
1984
|
exports.Utils = Utils;
|
|
1943
1985
|
exports.ValidationSummaryComponent = ValidationSummaryComponent;
|
|
1986
|
+
exports.throwIfAlreadyLoaded = throwIfAlreadyLoaded;
|
|
1944
1987
|
|
|
1945
1988
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1946
1989
|
|