diff --git a/common/plugins.js b/common/plugins.js index 14489ad8a2..7532167554 100644 --- a/common/plugins.js +++ b/common/plugins.js @@ -1719,7 +1719,7 @@ let pluginDataTmp = new CPluginData(); pluginDataTmp.setAttribute("guid", guid); pluginDataTmp.setAttribute("type", "plugin_init"); - pluginDataTmp.setAttribute("data", /**/"(function(a,l){var g=[1,1.25,1.5,1.75,2,2.25,2.5,2.75,3,3.5,4,4.5,5];a.AscDesktopEditor&&a.AscDesktopEditor.GetSupportedScaleValues&&(g=a.AscDesktopEditor.GetSupportedScaleValues());var h=function(){if(0===g.length)return!1;var b=navigator.userAgent.toLowerCase(),e=-1e-1E-4);f++)k=Math.abs(g[f]-e),kMath.abs(b.zoom-c)||(c=b.zoom,document.firstElementChild.style.zoom=.001>Math.abs(c-1)?\"normal\":1/c)}})(window);(function(a,l){function g(c){this.plugin=c;this.ps;this.items=[];this.isCurrentVisible=this.isVisible=!1}function h(){this.id=a.Asc.generateGuid();this.id=this.id.replace(/-/g,\"\");this._events={};this._register()}g.prototype.createWindow=function(){var c=document.body,b=document.getElementsByTagName(\"head\")[0];c&&b&&(c=document.createElement(\"style\"),c.type=\"text/css\",c.innerHTML='.ih_main { margin: 0px; padding: 0px; width: 100%; height: 100%; display: inline-block; overflow: hidden; box-sizing: border-box; user-select: none; position: fixed; border: 1px solid #cfcfcf; } ul { margin: 0px; padding: 0px; width: 100%; height: 100%; list-style-type: none; outline:none; } li { padding: 5px; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 12px; font-weight: 400; color: #373737; } li:hover { background-color: #D8DADC; } .li_selected { background-color: #D8DADC; color: #373737; }.li_selected:hover { background-color: #D8DADC; color: #373737; }',b.appendChild(c),document.body.style.background=\"#FFFFFF\",document.body.style.width=\"100%\",document.body.style.height=\"100%\",document.body.style.margin=\"0\",document.body.style.padding=\"0\",document.body.innerHTML='
    ',this.ps=new PerfectScrollbar(document.getElementById(\"ih_area\"),{minScrollbarLength:20}),this.updateScrolls(),this.createDefaultEvents())};g.prototype.setItems=function(c){this.items=c;for(var b=\"\",e=c.length,d=0;d',b+=c[d].text,b+=\"\";document.getElementById(\"ih_elements_id\").innerHTML=b;this.updateScrolls();this.scrollToSelected()};g.prototype.createDefaultEvents=function(){this.plugin.onExternalMouseUp=function(){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"mouseup\",!0,!0,a,1,0,0,0,0,!1,!1,!1,!1,0,null);document.dispatchEvent(b)};var c=this;a.onkeydown=function(b){switch(b.keyCode){case 27:c.isVisible&&(c.isVisible=!1,c.plugin.executeMethod(\"UnShowInputHelper\",[c.plugin.info.guid,!0]));break;case 38:case 40:case 9:case 36:case 35:case 33:case 34:for(var e=document.getElementsByTagName(\"li\"),d=-1,m=0;md&&(d=0);break;case 40:d++;d>=e.length&&(d=e.length-1);break;case 9:d++;d>=e.length&&(d=0);break;case 36:d=0;break;case 35:d=e.length-1;break;case 33:case 34:m=1;var k=document.getElementById(\"ih_area\").clientHeight/24>>0;1d&&(d=0)):(d+=m,d>=e.length&&(d=d=e.length-1))}d .ps__thumb-y\":{\"border-color\":\"canvas-scroll-thumb-hover\",\"background-color\":\"canvas-scroll-thumb-hover !important\"},\".ps .ps__rail-x:hover\":{\"background-color\":\"background-toolbar\"},\".ps .ps__rail-x.ps--clicking\":{\"background-color\":\"background-toolbar\"},\".ps__thumb-x\":{\"background-color\":\"background-normal\",\"border-color\":\"Border !important\"},\".ps__rail-x:hover > .ps__thumb-x\":{\"border-color\":\"canvas-scroll-thumb-hover\"},a:{color:\"text-link !important\"},\"a:hover\":{color:\"text-link-hover !important\"},\"a:active\":{color:\"text-link-active !important\"},\"a:visited\":{color:\"text-link-visited !important\"},\"*::-webkit-scrollbar-track\":{background:\"background-normal\"},\"*::-webkit-scrollbar-track:hover\":{background:\"background-toolbar-additional\"},\"*::-webkit-scrollbar-thumb\":{\"background-color\":\"background-toolbar\",\"border-color\":\"border-regular-control\"},\"*::-webkit-scrollbar-thumb:hover\":{\"background-color\":\"canvas-scroll-thumb-hover\"},\".asc-plugin-loader\":{color:\"text-normal\"}},e=!1,d=\"\";a.plugin_sendMessage=function(k){a.Asc.plugin.ie_channel?a.Asc.plugin.ie_channel.postMessage(k):a.parent.postMessage(k,\"*\")};a.plugin_onMessage=function(k){if(a.Asc.plugin&&\"string\"==typeof k.data){var f={};try{f=JSON.parse(k.data)}catch(n){f={}}k=f.type;if(f.guid!=a.Asc.plugin.guid){if(l!==f.guid)return;switch(k){case \"onExternalPluginMessage\":break;default:return}}\"init\"===k&&(a.Asc.plugin.info=f);\"updateOptions\"===k&&f.options&&(a.Asc.plugin.info.options=f.options);if(l!==f.theme&&(!a.Asc.plugin.theme||\"onThemeChanged\"===k))if(a.Asc.plugin.theme=f.theme,a.Asc.plugin.onThemeChangedBase||(a.Asc.plugin.onThemeChangedBase=function(n){var q=\"\",t;for(t in b){q+=t+\" {\";var w=b[t],r;for(r in w){var u=w[r],y=u.indexOf(\" !important\");-1*/); + pluginDataTmp.setAttribute("data", /**/"(function(a,l){var g=[1,1.25,1.5,1.75,2,2.25,2.5,2.75,3,3.5,4,4.5,5];a.AscDesktopEditor&&a.AscDesktopEditor.GetSupportedScaleValues&&(g=a.AscDesktopEditor.GetSupportedScaleValues());var h=function(){if(0===g.length)return!1;var b=navigator.userAgent.toLowerCase(),e=-1e-1E-4);f++)k=Math.abs(g[f]-e),kMath.abs(b.zoom-c)||(c=b.zoom,document.firstElementChild.style.zoom=.001>Math.abs(c-1)?\"normal\":1/c)}})(window);(function(a,l){function g(c){this.plugin=c;this.ps;this.items=[];this.isCurrentVisible=this.isVisible=!1}function h(){this.id=a.Asc.generateGuid();this.id=this.id.replace(/-/g,\"\");this._events={};this._register()}g.prototype.createWindow=function(){var c=document.body,b=document.getElementsByTagName(\"head\")[0];c&&b&&(c=document.createElement(\"style\"),c.type=\"text/css\",c.innerHTML='.ih_main { margin: 0px; padding: 0px; width: 100%; height: 100%; display: inline-block; overflow: hidden; box-sizing: border-box; user-select: none; position: fixed; border: 1px solid #cfcfcf; } ul { margin: 0px; padding: 0px; width: 100%; height: 100%; list-style-type: none; outline:none; } li { padding: 5px; font-family: \"Helvetica Neue\", Helvetica, Arial, sans-serif; font-size: 12px; font-weight: 400; color: #373737; } li:hover { background-color: #D8DADC; } .li_selected { background-color: #D8DADC; color: #373737; }.li_selected:hover { background-color: #D8DADC; color: #373737; }',b.appendChild(c),document.body.style.background=\"#FFFFFF\",document.body.style.width=\"100%\",document.body.style.height=\"100%\",document.body.style.margin=\"0\",document.body.style.padding=\"0\",document.body.innerHTML='
      ',this.ps=new PerfectScrollbar(document.getElementById(\"ih_area\"),{minScrollbarLength:20}),this.updateScrolls(),this.createDefaultEvents())};g.prototype.setItems=function(c){this.items=c;for(var b=\"\",e=c.length,d=0;d',b+=c[d].text,b+=\"\";document.getElementById(\"ih_elements_id\").innerHTML=b;this.updateScrolls();this.scrollToSelected()};g.prototype.createDefaultEvents=function(){this.plugin.onExternalMouseUp=function(){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"mouseup\",!0,!0,a,1,0,0,0,0,!1,!1,!1,!1,0,null);document.dispatchEvent(b)};var c=this;a.onkeydown=function(b){switch(b.keyCode){case 27:c.isVisible&&(c.isVisible=!1,c.plugin.executeMethod(\"UnShowInputHelper\",[c.plugin.info.guid,!0]));break;case 38:case 40:case 9:case 36:case 35:case 33:case 34:for(var e=document.getElementsByTagName(\"li\"),d=-1,m=0;md&&(d=0);break;case 40:d++;d>=e.length&&(d=e.length-1);break;case 9:d++;d>=e.length&&(d=0);break;case 36:d=0;break;case 35:d=e.length-1;break;case 33:case 34:m=1;var k=document.getElementById(\"ih_area\").clientHeight/24>>0;1d&&(d=0)):(d+=m,d>=e.length&&(d=d=e.length-1))}d .ps__thumb-y\":{\"border-color\":\"canvas-scroll-thumb-hover\",\"background-color\":\"canvas-scroll-thumb-hover !important\"},\".ps .ps__rail-x:hover\":{\"background-color\":\"background-toolbar\"},\".ps .ps__rail-x.ps--clicking\":{\"background-color\":\"background-toolbar\"},\".ps__thumb-x\":{\"background-color\":\"background-normal\",\"border-color\":\"Border !important\"},\".ps__rail-x:hover > .ps__thumb-x\":{\"border-color\":\"canvas-scroll-thumb-hover\"},a:{color:\"text-link !important\"},\"a:hover\":{color:\"text-link-hover !important\"},\"a:active\":{color:\"text-link-active !important\"},\"a:visited\":{color:\"text-link-visited !important\"},\"*::-webkit-scrollbar-track\":{background:\"background-normal\"},\"*::-webkit-scrollbar-track:hover\":{background:\"background-toolbar-additional\"},\"*::-webkit-scrollbar-thumb\":{\"background-color\":\"background-toolbar\",\"border-color\":\"border-regular-control\"},\"*::-webkit-scrollbar-thumb:hover\":{\"background-color\":\"canvas-scroll-thumb-hover\"},\".asc-plugin-loader\":{color:\"text-normal\"}},e=!1,d=\"\";a.plugin_sendMessage=function(k){a.Asc.plugin.ie_channel?a.Asc.plugin.ie_channel.postMessage(k):a.parent.postMessage(k,\"*\")};a.plugin_onMessage=function(k){if(a.Asc.plugin&&\"string\"==typeof k.data){var f={};try{f=JSON.parse(k.data)}catch(n){f={}}k=f.type;if(f.guid!=a.Asc.plugin.guid){if(l!==f.guid)return;switch(k){case \"onExternalPluginMessage\":break;default:return}}\"init\"===k&&(a.Asc.plugin.info=f);\"updateOptions\"===k&&f.options&&(a.Asc.plugin.info.options=f.options);if(l!==f.theme&&(!a.Asc.plugin.theme||\"onThemeChanged\"===k))if(a.Asc.plugin.theme=f.theme,a.Asc.plugin.onThemeChangedBase||(a.Asc.plugin.onThemeChangedBase=function(n){var q=\"\",t;for(t in b){q+=t+\" {\";var w=b[t],r;for(r in w){var u=w[r],y=u.indexOf(\" !important\");-1*/); let frame = document.getElementById(iframeID); if (frame) { diff --git a/common/plugins/plugin_base.js b/common/plugins/plugin_base.js index b9d6b2e820..e05b0a2f2e 100644 --- a/common/plugins/plugin_base.js +++ b/common/plugins/plugin_base.js @@ -561,7 +561,7 @@ ".select2-container--default .select2-selection--single .select2-selection__rendered" : { "color" : "text-normal" }, ".select2-results" : { "background-color" : "background-normal" }, ".select2-container--default .select2-results__option--highlighted[aria-selected]" : { "background-color" : "highlight-button-hover !important"}, - ".select2-container--default .select2-results__option[aria-selected=true]" : { "background-color" : "highlight-button-pressed !important"}, + ".select2-container--default .select2-results__option[aria-selected=true]" : { "background-color" : "highlight-button-pressed !important", "color" : "text-normal-pressed"}, ".select2-dropdown, .select2-container--default .select2-selection--single" : { "border-color" : "border-regular-control !important"}, ".select2-container--default.select2-container--open .select2-selection--single" : { "border-color" : "border-control-focus !important"}, ".select2-container--default.select2-container--focus:not(.select2-container--open) .select2-selection--single" : { "border-color" : "border-regular-control !important"},