@sambath999/localize-token 12.3.5 → 12.3.7
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/sambath999-localize-token.umd.js +4 -3
- package/bundles/sambath999-localize-token.umd.js.map +1 -1
- package/esm2015/localize-token/helpers/loccalize.api.helper.js +17 -17
- package/esm2015/localize-token/localize.api.service.js +4 -3
- package/fesm2015/sambath999-localize-token.js +19 -18
- package/fesm2015/sambath999-localize-token.js.map +1 -1
- package/localize-token/localize.api.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -860,7 +860,7 @@
|
|
|
860
860
|
var zIndex = ((_d = optons.connectionError) === null || _d === void 0 ? void 0 : _d.blockScreenZIndex) || 10000;
|
|
861
861
|
var body = document.body;
|
|
862
862
|
var blcokerHtml = "\n <div class=\"lze-blocker\">\n <div class=\"lze-blocker__message\">\n " + message + "\n <span class=\"lze-blocker__dotting\">\n <span class=\"lze-blocker__dot\"></span>\n <span class=\"lze-blocker__dot\"></span>\n <span class=\"lze-blocker__dot\"></span>\n </span>\n </div>\n <div class=\"lze-blocker__error\">" + errorMessage + "</div>\n <div class=\"lze-blocker__error_suggestion\">" + suggestinMessage + "</div>\n <div class=\"lze-blocker__spinner\"></div>\n </div>\n ";
|
|
863
|
-
var style = "\n .lze-blocker {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.
|
|
863
|
+
var style = "\n div.lze-blocker {\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background: rgba(0, 0, 0, 0.85) !important;\n z-index: " + zIndex + ";\n display: flex;\n align-items: center;\n justify-content: center;\n flex-direction: column;\n color: #fff !important;\n font-family: Arial, sans-serif;\n text-align: center;\n padding: 20px;\n box-sizing: border-box;\n overflow: hidden;\n user-select: none;\n }\n \n div.lze-blocker__spinner {\n border: 4px solid rgba(255, 255, 255, 0.1) !important;\n border-top: 4px solid #fff;\n border-radius: 50%;\n width: 50px;\n height: 50px;\n animation: spin 1s linear infinite;\n margin-top: 20px;\n }\n\n div.lze-blocker__message {\n color: #fff !important;\n font-size: 18px !important;\n margin-bottom: 10px;\n }\n \n .lze-blocker__dotting {\n display: inline-block;\n vertical-align: middle;\n }\n span.lze-blocker__dot {\n display: inline-block;\n width: 7px;\n height: 7px;\n background-color: #ffffff !important;\n border-radius: 50%;\n margin-left: 3px;\n opacity: 0.3;\n animation: dotting 1s infinite;\n }\n .lze-blocker__dot:nth-child(1) {\n animation-delay: 0s;\n opacity: 1;\n }\n .lze-blocker__dot:nth-child(2) {\n animation-delay: 0.2s;\n }\n .lze-blocker__dot:nth-child(3) {\n animation-delay: 0.4s;\n }\n\n @keyframes dotting {\n 0%, 80%, 100% { opacity: 0.3; }\n 40% { opacity: 1; }\n }\n\n div.lze-blocker__error {\n color: #f00;\n font-size: 14px !important;\n margin-bottom: 10px;\n text-shadow: 0 0 1px #ff5f5f !important;\n }\n\n div.lze-blocker__error_suggestion {\n color: #ccc !important;\n font-size: 14px !important;\n margin-top: 10px;\n }\n \n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n ";
|
|
864
864
|
var styleElement = document.createElement('style');
|
|
865
865
|
if (add) {
|
|
866
866
|
if (!document.querySelector('.lze-blocker')) {
|
|
@@ -957,7 +957,7 @@
|
|
|
957
957
|
});
|
|
958
958
|
Object.defineProperty(LocalizeApiService.prototype, "config", {
|
|
959
959
|
get: function () {
|
|
960
|
-
this.validateConfig(
|
|
960
|
+
this.validateConfig();
|
|
961
961
|
return this.configSubject.value;
|
|
962
962
|
},
|
|
963
963
|
enumerable: false,
|
|
@@ -1205,8 +1205,9 @@
|
|
|
1205
1205
|
});
|
|
1206
1206
|
});
|
|
1207
1207
|
};
|
|
1208
|
-
LocalizeApiService.prototype.validateConfig = function (
|
|
1208
|
+
LocalizeApiService.prototype.validateConfig = function () {
|
|
1209
1209
|
var _a;
|
|
1210
|
+
var config = this.configSubject.value;
|
|
1210
1211
|
if (this.localizeTokenService.config.needTenant && !((_a = config.tenantTokenName) === null || _a === void 0 ? void 0 : _a.trim().length)) {
|
|
1211
1212
|
throw Error('Tenant token is required but tenantTokenName is not configured');
|
|
1212
1213
|
}
|