@akkadu/rsi-interpretation-manager
Advanced tools
Comparing version 0.1.25 to 0.1.26
@@ -85,5 +85,5 @@ "use strict"; | ||
} | ||
_this.domContainer = document.querySelector("#" + _this.container); | ||
_this.domContainer = document.querySelector("#".concat(_this.container)); | ||
if (!_this.domContainer) { | ||
throw Error("Unable to detect container: " + _this.container + " on the DOM, please add <div id=\"akkadu-interpretation-manager\"/>, \n see the doc : https://rsi-docs.akkadu.com/getting-started/react.html#registering-the-interpretation-manager"); | ||
throw Error("Unable to detect container: ".concat(_this.container, " on the DOM, please add <div id=\"akkadu-interpretation-manager\"/>, \n see the doc : https://rsi-docs.akkadu.com/getting-started/react.html#registering-the-interpretation-manager")); | ||
} | ||
@@ -176,3 +176,3 @@ return _this; | ||
label.className = 'int-manager-label-language'; | ||
label.id = "int-manager-" + language.code; | ||
label.id = "int-manager-".concat(language.code); | ||
var newText = document.createElement('h3'); | ||
@@ -208,3 +208,3 @@ newText.textContent = language.name.en; | ||
}); | ||
var node = document.getElementById("int-manager-" + language.code); | ||
var node = document.getElementById("int-manager-".concat(language.code)); | ||
if (node.parentNode) { | ||
@@ -215,3 +215,3 @@ node.parentNode.removeChild(node); | ||
catch (err) { | ||
throw Error("interpretationManager: deleteLanguageLabel() error " + err); | ||
throw Error("interpretationManager: deleteLanguageLabel() error ".concat(err)); | ||
} | ||
@@ -236,4 +236,4 @@ }; | ||
InterpretationManager.prototype.addToDomLanguageSelectorBase = function (divIdTarget, id) { | ||
var divElement = "<div class=\"select\">\n <div class=\"select-wrapper\">\n <div class=\"selectCustom js-selectCustom js-selectCustom-" + id + "\" >\n <div id=\"int-manager-custom-value\" class=\"selectCustom-trigger int-manager-custom-value-" + id + "\"> <img src=''/> <h3></h3> </div>\n <div id=\"int-manager-options\" class=\"selectCustom-options int-manager-options-" + id + "\"/>\n </div>\n </div>\n </div>"; | ||
var languageSelector = document.querySelector("#" + divIdTarget); | ||
var divElement = "<div class=\"select\">\n <div class=\"select-wrapper\">\n <div class=\"selectCustom js-selectCustom js-selectCustom-".concat(id, "\" >\n <div id=\"int-manager-custom-value\" class=\"selectCustom-trigger int-manager-custom-value-").concat(id, "\"> <img src=''/> <h3></h3> </div>\n <div id=\"int-manager-options\" class=\"selectCustom-options int-manager-options-").concat(id, "\"/>\n </div>\n </div>\n </div>"); | ||
var languageSelector = document.querySelector("#".concat(divIdTarget)); | ||
languageSelector.insertAdjacentHTML('afterbegin', divElement); | ||
@@ -264,4 +264,4 @@ }; | ||
// Init Dropdown header | ||
var elSelectCustom = document.getElementsByClassName("js-selectCustom-" + id)[0]; | ||
var selectorHeader = document.getElementsByClassName("int-manager-custom-value-" + id)[0]; | ||
var elSelectCustom = document.getElementsByClassName("js-selectCustom-".concat(id))[0]; | ||
var selectorHeader = document.getElementsByClassName("int-manager-custom-value-".concat(id))[0]; | ||
selectorHeader.getElementsByTagName("h3")[0].textContent = 'Select a language'; | ||
@@ -314,3 +314,3 @@ // Languages Options | ||
}); | ||
document.getElementsByClassName("int-manager-options-" + id)[0].appendChild(languagesOptions); | ||
document.getElementsByClassName("int-manager-options-".concat(id))[0].appendChild(languagesOptions); | ||
// Listeners Languages Selector | ||
@@ -350,3 +350,3 @@ // Toggle select on label click | ||
var emailDiv = document.createElement('div'); | ||
emailDiv.id = "int-manager-email-div-" + id; | ||
emailDiv.id = "int-manager-email-div-".concat(id); | ||
var emailInput = document.createElement('input'); | ||
@@ -362,3 +362,3 @@ emailInput.placeholder = "interpreter@gmail.com"; | ||
closeButton.addEventListener('click', function (e) { | ||
var node = document.getElementById("int-manager-email-div-" + id); | ||
var node = document.getElementById("int-manager-email-div-".concat(id)); | ||
node.parentNode.removeChild(node); | ||
@@ -429,3 +429,3 @@ delete _this.ownInterpreterEmail[id]; | ||
if (!isEmailValid) { | ||
_this.updateFeedback("The email \"" + _this.ownInterpreterEmail[key] + "\" is not a valid email address."); | ||
_this.updateFeedback("The email \"".concat(_this.ownInterpreterEmail[key], "\" is not a valid email address.")); | ||
return; | ||
@@ -432,0 +432,0 @@ } |
{ | ||
"name": "@akkadu/rsi-interpretation-manager", | ||
"version": "0.1.25", | ||
"version": "0.1.26", | ||
"description": "", | ||
@@ -23,5 +23,5 @@ "main": "lib/index.js", | ||
"@akkadu/logger": "^2.1.0", | ||
"@akkadu/rsi-base": "^0.2.32" | ||
"@akkadu/rsi-base": "^0.2.33" | ||
}, | ||
"gitHead": "b1c71cf7a0e635b6bd0f6ada2cff90a537b03d75", | ||
"gitHead": "7f75ad0810ffe99f0f598fd4782fb67fe42472a9", | ||
"devDependencies": { | ||
@@ -28,0 +28,0 @@ "lerna": "^4.0.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36626
Updated@akkadu/rsi-base@^0.2.33