Merge branch 'release/v6.3.0' into develop
|
@ -402,7 +402,7 @@
|
|||
|
||||
if (typeof _config.document.fileType === 'string' && _config.document.fileType != '') {
|
||||
_config.document.fileType = _config.document.fileType.toLowerCase();
|
||||
var type = /^(?:(xls|xlsx|ods|csv|xlst|xlsy|gsheet|xlsm|xlt|xltm|xltx|fods|ots)|(pps|ppsx|ppt|pptx|odp|pptt|ppty|gslides|pot|potm|potx|ppsm|pptm|fodp|otp)|(doc|docx|doct|odt|gdoc|txt|rtf|pdf|mht|htm|html|epub|djvu|xps|docm|dot|dotm|dotx|fodt|ott|fb2))$/
|
||||
var type = /^(?:(xls|xlsx|ods|csv|xlst|xlsy|gsheet|xlsm|xlt|xltm|xltx|fods|ots)|(pps|ppsx|ppt|pptx|odp|pptt|ppty|gslides|pot|potm|potx|ppsm|pptm|fodp|otp)|(doc|docx|doct|odt|gdoc|txt|rtf|pdf|mht|htm|html|epub|djvu|xps|docm|dot|dotm|dotx|fodt|ott|fb2|xml))$/
|
||||
.exec(_config.document.fileType);
|
||||
if (!type) {
|
||||
window.alert("The \"document.fileType\" parameter for the config object is invalid. Please correct it.");
|
||||
|
|
|
@ -677,10 +677,12 @@ define([
|
|||
};
|
||||
|
||||
me.setTableColor = function(color) {
|
||||
table_content.toggleClass('transparent', color == 'transparent');
|
||||
table_content.css('background-color', (color == 'transparent' ) ? color : ('#'+color));
|
||||
};
|
||||
|
||||
me.setCellsColor = function(color) {
|
||||
!me.spacingMode && table_content.toggleClass('transparent', color == 'transparent');
|
||||
cells_content.css('background-color', (color == 'transparent' ) ? color : ('#'+color));
|
||||
};
|
||||
|
||||
|
|
|
@ -455,7 +455,7 @@ define([
|
|||
if (!options.width) options.width = 'auto';
|
||||
|
||||
var template = '<div class="info-box">' +
|
||||
'<% if (typeof iconCls !== "undefined") { %><div class="icon img-commonctrl img-no-theme-filter <%= iconCls %>"></div><% } %>' +
|
||||
'<% if (typeof iconCls !== "undefined") { %><div class="icon img-commonctrl img-colored <%= iconCls %>"></div><% } %>' +
|
||||
'<div class="text" <% if (typeof iconCls == "undefined") { %> style="padding-left:10px;" <% } %>><span><%= msg %></span>' +
|
||||
'<% if (dontshow) { %><div class="dont-show-checkbox"></div><% } %>' +
|
||||
'</div>' +
|
||||
|
|
|
@ -190,6 +190,7 @@ define([
|
|||
this.api.asc_registerCallback('asc_onHideComment', _.bind(this.onApiHideComment, this));
|
||||
this.api.asc_registerCallback('asc_onUpdateCommentPosition', _.bind(this.onApiUpdateCommentPosition, this));
|
||||
this.api.asc_registerCallback('asc_onDocumentPlaceChanged', _.bind(this.onDocumentPlaceChanged, this));
|
||||
this.api.asc_registerCallback('asc_onDeleteComment', _.bind(this.onDeleteComment, this)); // only for PE, when del or ctrl+x pressed
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -1051,6 +1052,12 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
onDeleteComment: function (id, comment) {
|
||||
if (this.api) {
|
||||
this.api.asc_RemoveAllComments(!this.mode.canDeleteComments, true);// 1 param = true if remove only my comments, 2 param - remove current comments
|
||||
}
|
||||
},
|
||||
|
||||
// internal
|
||||
|
||||
updateComments: function (needRender, disableSort, loadText) {
|
||||
|
|
|
@ -647,20 +647,24 @@ define([
|
|||
warn = false;
|
||||
if (plugins.plugins && plugins.plugins.length>0)
|
||||
arr = plugins.plugins;
|
||||
var val = plugins.config.autostart || plugins.config.autoStartGuid;
|
||||
if (typeof (val) == 'string')
|
||||
val = [val];
|
||||
warn = !!plugins.config.autoStartGuid;
|
||||
autostart = val || [];
|
||||
if (plugins && plugins.config) {
|
||||
var val = plugins.config.autostart || plugins.config.autoStartGuid;
|
||||
if (typeof (val) == 'string')
|
||||
val = [val];
|
||||
warn = !!plugins.config.autoStartGuid;
|
||||
autostart = val || [];
|
||||
}
|
||||
|
||||
plugins = this.serverPlugins;
|
||||
if (plugins.plugins && plugins.plugins.length>0)
|
||||
arr = arr.concat(plugins.plugins);
|
||||
val = plugins.config.autostart || plugins.config.autoStartGuid;
|
||||
if (typeof (val) == 'string')
|
||||
val = [val];
|
||||
(warn || plugins.config.autoStartGuid) && console.warn("Obsolete: The autoStartGuid parameter is deprecated. Please check the documentation for new plugin connection configuration.");
|
||||
autostart = autostart.concat(val || []);
|
||||
if (plugins && plugins.config) {
|
||||
val = plugins.config.autostart || plugins.config.autoStartGuid;
|
||||
if (typeof (val) == 'string')
|
||||
val = [val];
|
||||
(warn || plugins.config.autoStartGuid) && console.warn("Obsolete: The autoStartGuid parameter is deprecated. Please check the documentation for new plugin connection configuration.");
|
||||
autostart = autostart.concat(val || []);
|
||||
}
|
||||
|
||||
this.autostart = autostart;
|
||||
this.parsePlugins(arr, false);
|
||||
|
|
|
@ -8,18 +8,35 @@ define([
|
|||
'use strict';
|
||||
|
||||
Common.UI.Themes = new (function() {
|
||||
var sdk_themes_relation = {
|
||||
var sdk_themes_alias = {
|
||||
'theme-light': 'flat',
|
||||
'theme-dark': 'flatDark'
|
||||
};
|
||||
|
||||
sdk_themes_relation.contains = function (name) {
|
||||
sdk_themes_alias.contains = function (name) {
|
||||
return !!this[name];
|
||||
}
|
||||
|
||||
var refresh_sdk_colors = function () {
|
||||
var style = getComputedStyle(document.body);
|
||||
if ( !!window.DE ) {
|
||||
var color_background_normal = style.getPropertyValue('--background-normal');
|
||||
this.api.asc_setSkin({
|
||||
"RulerOutline": style.getPropertyValue('--border-toolbar')
|
||||
, "RulerMarkersFillColor": color_background_normal
|
||||
, "RulerMarkersFillColorOld": color_background_normal
|
||||
, "RulerTableColor1": color_background_normal
|
||||
});
|
||||
}
|
||||
}
|
||||
return {
|
||||
THEME_LIGHT_ID: 'theme-light',
|
||||
THEME_DARK_ID: 'theme-dark',
|
||||
|
||||
init: function (api) {
|
||||
var me = this;
|
||||
refresh_sdk_colors = refresh_sdk_colors.bind(this);
|
||||
|
||||
$(window).on('storage', function (e) {
|
||||
if ( e.key == 'ui-theme' ) {
|
||||
me.setTheme(e.originalEvent.newValue);
|
||||
|
@ -28,12 +45,14 @@ define([
|
|||
|
||||
this.api = api;
|
||||
var theme_name = Common.localStorage.getItem('ui-theme', 'theme-light');
|
||||
api.asc_setSkin(sdk_themes_relation[theme_name]);
|
||||
api.asc_setSkin(sdk_themes_alias[theme_name]);
|
||||
|
||||
if ( !$('body').hasClass(theme_name) ) {
|
||||
$('body').addClass(theme_name);
|
||||
}
|
||||
|
||||
refresh_sdk_colors();
|
||||
|
||||
// app.eventbus.addListeners({
|
||||
// 'FileMenu': {
|
||||
// 'settings:apply': function (menu) {
|
||||
|
@ -49,7 +68,7 @@ define([
|
|||
},
|
||||
|
||||
current: function () {
|
||||
return Common.localStorage.getItem('ui-theme', 'theme-light');
|
||||
return Common.localStorage.getItem('ui-theme') || 'theme-light';
|
||||
},
|
||||
|
||||
isDarkTheme: function () {
|
||||
|
@ -57,23 +76,13 @@ define([
|
|||
},
|
||||
|
||||
setTheme: function (name) {
|
||||
if ( sdk_themes_relation.contains(name) ) {
|
||||
if ( sdk_themes_alias.contains(name) ) {
|
||||
var classname = document.documentElement.className.replace(/theme-\w+\s?/, '');
|
||||
document.body.className = classname;
|
||||
|
||||
$('body').addClass(name);
|
||||
this.api.asc_setSkin(sdk_themes_relation[name]);
|
||||
|
||||
var style = getComputedStyle(document.body);
|
||||
if ( !!window.DE ) {
|
||||
var color_background_normal = style.getPropertyValue('--background-normal');
|
||||
this.api.asc_setSkin({
|
||||
"RulerOutline": style.getPropertyValue('--border-toolbar')
|
||||
, "RulerMarkersFillColor": color_background_normal
|
||||
, "RulerMarkersFillColorOld": color_background_normal
|
||||
, "RulerTableColor1": color_background_normal
|
||||
});
|
||||
}
|
||||
this.api.asc_setSkin(sdk_themes_alias[name]);
|
||||
refresh_sdk_colors();
|
||||
|
||||
Common.localStorage.setItem('ui-theme', name);
|
||||
Common.NotificationCenter.trigger('uitheme:changed', name);
|
||||
|
|
|
@ -120,7 +120,7 @@ Common.Utils = _.extend(new(function() {
|
|||
me = this,
|
||||
checkSize = function() {
|
||||
var scale = {};
|
||||
if ( !!window.AscCommon )
|
||||
if ( !!window.AscCommon && !!window.AscCommon.checkDeviceScale )
|
||||
scale = window.AscCommon.checkDeviceScale();
|
||||
else {
|
||||
var str_mq_150 = "screen and (-webkit-min-device-pixel-ratio: 1.5) and (-webkit-max-device-pixel-ratio: 1.9), " +
|
||||
|
@ -140,7 +140,7 @@ Common.Utils = _.extend(new(function() {
|
|||
if ( scale.devicePixelRatio < 1.5 ) {
|
||||
$root.removeClass('pixel-ratio__1_5 pixel-ratio__2');
|
||||
} else
|
||||
if ( !(scale.devicePixelRatio < 1.5) && !(scale.devicePixelRatio > 2) ) {
|
||||
if ( !(scale.devicePixelRatio < 1.5) && scale.devicePixelRatio < 2 ) {
|
||||
$root.removeClass('pixel-ratio__2');
|
||||
$root.addClass('pixel-ratio__1_5');
|
||||
} else {
|
||||
|
@ -1086,4 +1086,4 @@ Common.Utils.UserInfoParser = new(function() {
|
|||
return _intersection(commentGroups.remove, groups);
|
||||
}
|
||||
}
|
||||
})();
|
||||
})();
|
||||
|
|
|
@ -77,7 +77,7 @@ define([
|
|||
'<div class="user-name" data-can-copy="true">',
|
||||
'<div class="color" style="display: inline-block; background-color: <% if (msg.get("usercolor")!==null) { %><%=msg.get("usercolor")%><% } else { %> #cfcfcf <% } %>; " ></div><%= scope.getUserName(msg.get("username")) %>',
|
||||
'</div>',
|
||||
'<label class="message user-select" data-can-copy="true"><%= msg.get("message") %></label>',
|
||||
'<label class="message user-select" data-can-copy="true" tabindex="-1" oo_editor_input="true"><%= msg.get("message") %></label>',
|
||||
'<% } %>',
|
||||
'</li>'].join(''),
|
||||
|
||||
|
|
Before Width: | Height: | Size: 285 B After Width: | Height: | Size: 389 B |
Before Width: | Height: | Size: 189 B After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 163 B After Width: | Height: | Size: 254 B |
Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 245 B |
Before Width: | Height: | Size: 200 B After Width: | Height: | Size: 296 B |
Before Width: | Height: | Size: 466 B After Width: | Height: | Size: 596 B |
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 272 B |
Before Width: | Height: | Size: 211 B After Width: | Height: | Size: 327 B |
Before Width: | Height: | Size: 494 B After Width: | Height: | Size: 615 B |
Before Width: | Height: | Size: 171 B After Width: | Height: | Size: 262 B |
Before Width: | Height: | Size: 335 B After Width: | Height: | Size: 472 B |
Before Width: | Height: | Size: 512 B After Width: | Height: | Size: 669 B |
Before Width: | Height: | Size: 550 B After Width: | Height: | Size: 631 B |
Before Width: | Height: | Size: 395 B After Width: | Height: | Size: 552 B |
Before Width: | Height: | Size: 647 B After Width: | Height: | Size: 732 B |
Before Width: | Height: | Size: 958 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 185 B After Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 175 B After Width: | Height: | Size: 289 B |
Before Width: | Height: | Size: 178 B After Width: | Height: | Size: 273 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 287 B |
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 256 B |
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 634 B |
Before Width: | Height: | Size: 421 B After Width: | Height: | Size: 775 B |
Before Width: | Height: | Size: 396 B After Width: | Height: | Size: 536 B |
Before Width: | Height: | Size: 497 B After Width: | Height: | Size: 681 B |
Before Width: | Height: | Size: 147 B After Width: | Height: | Size: 253 B |
After Width: | Height: | Size: 478 B |
Before Width: | Height: | Size: 291 B After Width: | Height: | Size: 381 B |
Before Width: | Height: | Size: 173 B After Width: | Height: | Size: 254 B |
Before Width: | Height: | Size: 283 B After Width: | Height: | Size: 397 B |
Before Width: | Height: | Size: 226 B After Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 177 B After Width: | Height: | Size: 275 B |
Before Width: | Height: | Size: 842 B After Width: | Height: | Size: 987 B |
Before Width: | Height: | Size: 468 B After Width: | Height: | Size: 597 B |
Before Width: | Height: | Size: 176 B After Width: | Height: | Size: 305 B |
Before Width: | Height: | Size: 492 B After Width: | Height: | Size: 653 B |
Before Width: | Height: | Size: 572 B After Width: | Height: | Size: 674 B |
Before Width: | Height: | Size: 228 B After Width: | Height: | Size: 395 B |
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 249 B |
Before Width: | Height: | Size: 165 B After Width: | Height: | Size: 236 B |
Before Width: | Height: | Size: 127 B After Width: | Height: | Size: 188 B |
Before Width: | Height: | Size: 118 B After Width: | Height: | Size: 166 B |
Before Width: | Height: | Size: 122 B After Width: | Height: | Size: 184 B |
Before Width: | Height: | Size: 199 B After Width: | Height: | Size: 258 B |
Before Width: | Height: | Size: 121 B After Width: | Height: | Size: 188 B |
Before Width: | Height: | Size: 165 B After Width: | Height: | Size: 237 B |
BIN
apps/common/main/resources/img/toolbar/1.25x/btn-autocorrect.png
Normal file
After Width: | Height: | Size: 400 B |
Before Width: | Height: | Size: 342 B After Width: | Height: | Size: 458 B |
Before Width: | Height: | Size: 264 B After Width: | Height: | Size: 360 B |
Before Width: | Height: | Size: 132 B After Width: | Height: | Size: 189 B |
Before Width: | Height: | Size: 131 B After Width: | Height: | Size: 204 B |
Before Width: | Height: | Size: 204 B After Width: | Height: | Size: 286 B |
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 278 B |
Before Width: | Height: | Size: 138 B After Width: | Height: | Size: 235 B |
Before Width: | Height: | Size: 123 B After Width: | Height: | Size: 193 B |
Before Width: | Height: | Size: 130 B After Width: | Height: | Size: 213 B |
Before Width: | Height: | Size: 139 B After Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 128 B After Width: | Height: | Size: 192 B |
Before Width: | Height: | Size: 139 B After Width: | Height: | Size: 223 B |
Before Width: | Height: | Size: 136 B After Width: | Height: | Size: 208 B |
Before Width: | Height: | Size: 138 B After Width: | Height: | Size: 211 B |
Before Width: | Height: | Size: 521 B After Width: | Height: | Size: 546 B |
Before Width: | Height: | Size: 334 B After Width: | Height: | Size: 447 B |
Before Width: | Height: | Size: 218 B After Width: | Height: | Size: 312 B |
Before Width: | Height: | Size: 130 B After Width: | Height: | Size: 220 B |
Before Width: | Height: | Size: 184 B After Width: | Height: | Size: 289 B |
Before Width: | Height: | Size: 164 B After Width: | Height: | Size: 248 B |
Before Width: | Height: | Size: 405 B After Width: | Height: | Size: 530 B |
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 380 B |
Before Width: | Height: | Size: 193 B After Width: | Height: | Size: 285 B |
Before Width: | Height: | Size: 143 B After Width: | Height: | Size: 226 B |
Before Width: | Height: | Size: 203 B After Width: | Height: | Size: 291 B |
Before Width: | Height: | Size: 184 B After Width: | Height: | Size: 297 B |
Before Width: | Height: | Size: 251 B After Width: | Height: | Size: 360 B |
Before Width: | Height: | Size: 344 B After Width: | Height: | Size: 467 B |
Before Width: | Height: | Size: 303 B After Width: | Height: | Size: 405 B |
Before Width: | Height: | Size: 270 B After Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 208 B After Width: | Height: | Size: 281 B |
Before Width: | Height: | Size: 584 B After Width: | Height: | Size: 670 B |
Before Width: | Height: | Size: 324 B After Width: | Height: | Size: 435 B |
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 458 B |
Before Width: | Height: | Size: 108 B After Width: | Height: | Size: 161 B |
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 477 B |
Before Width: | Height: | Size: 295 B After Width: | Height: | Size: 357 B |
Before Width: | Height: | Size: 195 B After Width: | Height: | Size: 274 B |
Before Width: | Height: | Size: 320 B After Width: | Height: | Size: 427 B |
Before Width: | Height: | Size: 185 B After Width: | Height: | Size: 265 B |
Before Width: | Height: | Size: 440 B After Width: | Height: | Size: 556 B |
Before Width: | Height: | Size: 302 B After Width: | Height: | Size: 411 B |
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 318 B |
Before Width: | Height: | Size: 243 B After Width: | Height: | Size: 336 B |
Before Width: | Height: | Size: 236 B After Width: | Height: | Size: 314 B |