@osovitny/anatoly 2.0.11 → 2.0.12
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 +68 -27
- 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 +2 -1
- package/esm2015/lib/core/services/appcontext.service.js +4 -3
- package/esm2015/lib/ui/components/html-editor/base-html-editor.component.js +3 -2
- package/fesm2015/osovitny-anatoly.js +68 -28
- 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 +1 -0
- package/package.json +1 -1
|
@@ -277,6 +277,30 @@
|
|
|
277
277
|
return Guid;
|
|
278
278
|
}());
|
|
279
279
|
|
|
280
|
+
/*
|
|
281
|
+
<file>
|
|
282
|
+
Project:
|
|
283
|
+
@osovitny/anatoly
|
|
284
|
+
|
|
285
|
+
Authors:
|
|
286
|
+
Vadim Osovitny
|
|
287
|
+
Anatoly Osovitny
|
|
288
|
+
|
|
289
|
+
Created:
|
|
290
|
+
26 Jun 2020
|
|
291
|
+
|
|
292
|
+
Version:
|
|
293
|
+
1.0
|
|
294
|
+
|
|
295
|
+
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
296
|
+
</file>
|
|
297
|
+
*/
|
|
298
|
+
function throwIfAlreadyLoaded(parentModule, moduleName) {
|
|
299
|
+
if (parentModule) {
|
|
300
|
+
throw new Error(moduleName + " has already been loaded. Import " + moduleName + " modules in the AppModule only.");
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
|
|
280
304
|
/*
|
|
281
305
|
<file>
|
|
282
306
|
Project:
|
|
@@ -615,6 +639,46 @@
|
|
|
615
639
|
return value;
|
|
616
640
|
}
|
|
617
641
|
|
|
642
|
+
/*
|
|
643
|
+
<file>
|
|
644
|
+
Project:
|
|
645
|
+
@osovitny/anatoly
|
|
646
|
+
|
|
647
|
+
Authors:
|
|
648
|
+
Vadim Osovitny
|
|
649
|
+
Anatoly Osovitny
|
|
650
|
+
|
|
651
|
+
Created:
|
|
652
|
+
26 Jun 2020
|
|
653
|
+
|
|
654
|
+
Version:
|
|
655
|
+
1.0
|
|
656
|
+
|
|
657
|
+
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
658
|
+
</file>
|
|
659
|
+
*/
|
|
660
|
+
var ContextInitState = JSON.parse((document.getElementById("contextInitState")).getAttribute("data-contextinitstate"));
|
|
661
|
+
var AppCoreSettings = JSON.parse((document.getElementById("appCoreSettings")).getAttribute("data-appcoresettings"));
|
|
662
|
+
|
|
663
|
+
/*
|
|
664
|
+
<file>
|
|
665
|
+
Project:
|
|
666
|
+
@osovitny/anatoly
|
|
667
|
+
|
|
668
|
+
Authors:
|
|
669
|
+
Vadim Osovitny
|
|
670
|
+
Anatoly Osovitny
|
|
671
|
+
|
|
672
|
+
Created:
|
|
673
|
+
26 Jun 2020
|
|
674
|
+
|
|
675
|
+
Version:
|
|
676
|
+
1.0
|
|
677
|
+
|
|
678
|
+
Copyright (c) 2016-2020 Osovitny Inc. All rights reserved.
|
|
679
|
+
</file>
|
|
680
|
+
*/
|
|
681
|
+
|
|
618
682
|
/*
|
|
619
683
|
<file>
|
|
620
684
|
Project:
|
|
@@ -742,10 +806,10 @@
|
|
|
742
806
|
this.current = null;
|
|
743
807
|
};
|
|
744
808
|
AppContextService.prototype.isUserSignedIn = function () {
|
|
745
|
-
return
|
|
809
|
+
return ContextInitState.isUserSignedIn;
|
|
746
810
|
};
|
|
747
811
|
AppContextService.prototype.isUserAdmin = function () {
|
|
748
|
-
return
|
|
812
|
+
return ContextInitState.isUserAdmin;
|
|
749
813
|
};
|
|
750
814
|
return AppContextService;
|
|
751
815
|
}(BaseApiService));
|
|
@@ -830,30 +894,6 @@
|
|
|
830
894
|
{ type: i0.Injector }
|
|
831
895
|
]; };
|
|
832
896
|
|
|
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
|
}
|
|
@@ -1941,6 +1981,7 @@
|
|
|
1941
1981
|
exports.UpgradePlanButtonComponent = UpgradePlanButtonComponent;
|
|
1942
1982
|
exports.Utils = Utils;
|
|
1943
1983
|
exports.ValidationSummaryComponent = ValidationSummaryComponent;
|
|
1984
|
+
exports.throwIfAlreadyLoaded = throwIfAlreadyLoaded;
|
|
1944
1985
|
|
|
1945
1986
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1946
1987
|
|