From f4aee180e97882d477c2ae28d904ddbaec56cc2c Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 31 Jan 2020 13:53:58 +0300 Subject: [PATCH 01/72] [DE] Use svg icons for chart type --- .../main/resources/img/toolbar/charttypes.svg | 157 ++++++++++++++++++ apps/common/main/resources/less/toolbar.less | 16 +- .../main/app/view/ChartSettings.js | 2 +- apps/documenteditor/main/app/view/Toolbar.js | 2 +- apps/documenteditor/main/index.html | 1 + apps/documenteditor/main/index.html.deploy | 1 + apps/documenteditor/main/index_loader.html | 1 + .../main/index_loader.html.deploy | 1 + 8 files changed, 176 insertions(+), 5 deletions(-) create mode 100644 apps/common/main/resources/img/toolbar/charttypes.svg diff --git a/apps/common/main/resources/img/toolbar/charttypes.svg b/apps/common/main/resources/img/toolbar/charttypes.svg new file mode 100644 index 000000000..3f3289bb2 --- /dev/null +++ b/apps/common/main/resources/img/toolbar/charttypes.svg @@ -0,0 +1,157 @@ + \ No newline at end of file diff --git a/apps/common/main/resources/less/toolbar.less b/apps/common/main/resources/less/toolbar.less index 96a098cbb..07292b1db 100644 --- a/apps/common/main/resources/less/toolbar.less +++ b/apps/common/main/resources/less/toolbar.less @@ -515,9 +515,19 @@ } .item-chartlist { - .background-ximage-v2('toolbar/charttypes.png', 250px); - width: 50px; - height: 50px; + //.background-ximage-v2('toolbar/charttypes.png', 250px); + width: 40px; + height: 40px; + .icon { + width: 40px; + height: 40px; + } + + svg.icon { + display: inline-block; + vertical-align: middle; + fill: #444444; + } } .line-normal { diff --git a/apps/documenteditor/main/app/view/ChartSettings.js b/apps/documenteditor/main/app/view/ChartSettings.js index 878effd46..b3b62dbc4 100644 --- a/apps/documenteditor/main/app/view/ChartSettings.js +++ b/apps/documenteditor/main/app/view/ChartSettings.js @@ -263,7 +263,7 @@ define([ restoreHeight: 421, groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData()), store: new Common.UI.DataViewStore(Common.define.chartData.getChartData()), - itemTemplate: _.template('
') + itemTemplate: _.template('
\">
') }); }); this.btnChartType.render($('#chart-button-type')); diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index eb0b47b2e..6f53ada8a 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -1676,7 +1676,7 @@ define([ restoreHeight: 421, groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData(true)), store: new Common.UI.DataViewStore(Common.define.chartData.getChartData()), - itemTemplate: _.template('
') + itemTemplate: _.template('
\">
') }); picker.on('item:click', function (picker, item, record, e) { if (record) diff --git a/apps/documenteditor/main/index.html b/apps/documenteditor/main/index.html index b5d3c4ecb..0f8f2c9c0 100644 --- a/apps/documenteditor/main/index.html +++ b/apps/documenteditor/main/index.html @@ -249,6 +249,7 @@ + diff --git a/apps/documenteditor/main/index.html.deploy b/apps/documenteditor/main/index.html.deploy index 8748c4255..ac8fd206e 100644 --- a/apps/documenteditor/main/index.html.deploy +++ b/apps/documenteditor/main/index.html.deploy @@ -276,6 +276,7 @@ + diff --git a/apps/documenteditor/main/index_loader.html b/apps/documenteditor/main/index_loader.html index 3872b757e..530edb682 100644 --- a/apps/documenteditor/main/index_loader.html +++ b/apps/documenteditor/main/index_loader.html @@ -259,6 +259,7 @@ + diff --git a/apps/documenteditor/main/index_loader.html.deploy b/apps/documenteditor/main/index_loader.html.deploy index 0d2c66fa9..e6db41071 100644 --- a/apps/documenteditor/main/index_loader.html.deploy +++ b/apps/documenteditor/main/index_loader.html.deploy @@ -314,6 +314,7 @@ +
From 9cc5e9ea4d7f4efd3da66b5769269e0adbbf76aa Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Thu, 5 Mar 2020 14:20:04 +0300 Subject: [PATCH 02/72] [de mobile] add comment, view comment --- .../mobile/lib/controller/Collaboration.js | 178 +++++++++++++++++- .../lib/template/Collaboration.template | 16 ++ apps/common/mobile/lib/view/Collaboration.js | 15 ++ .../resources/less/ios/_collaboration.less | 56 +++++- .../mobile/app/controller/DocumentHolder.js | 36 +++- .../mobile/resources/css/app-ios.css | 78 +++++++- .../mobile/resources/css/app-ios.css | 78 +++++++- .../mobile/resources/css/app-ios.css | 78 +++++++- 8 files changed, 505 insertions(+), 30 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 4c80eff99..8b4c8bf87 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -679,6 +679,179 @@ define([ //Comments + showCommentModal: function() { + var me = this, + isAndroid = Framework7.prototype.device.android === true, + modalView, + appPrefix = !!window.DE ? DE : !!window.PE ? PE : SSE, + mainView = appPrefix.getController('Editor').getView('Editor').f7View; + + uiApp.closeModal(); + + if (Common.SharedSettings.get('phone')) { + modalView = $$(uiApp.pickerModal( + '
' + + this.getView('Common.Views.Collaboration').rootCommentLayout() + + '
' + )).on('opened', function () { + if (_.isFunction(me.api.asc_OnShowContextMenu)) { + me.api.asc_OnShowContextMenu() + } + }).on('close', function (e) { + mainView.showNavbar(); + }).on('closed', function () { + if (_.isFunction(me.api.asc_OnHideContextMenu)) { + me.api.asc_OnHideContextMenu() + } + }); + mainView.hideNavbar(); + } else { + } + + appPrefix.getController('Toolbar').getView('Toolbar').hideSearch(); + + //swipe modal window + me.swipeFull = false; + var $swipeContainer = $('.swipe-container'); + $swipeContainer.single('touchstart', _.bind(function(e){ + var touchobj = e.changedTouches[0]; + me.swipeStart = parseInt(touchobj.clientY); + e.preventDefault(); + }, me)); + $swipeContainer.single('touchend', _.bind(function (e) { + var touchobj = e.changedTouches[0]; + var swipeEnd = parseInt(touchobj.clientY); + var dist = swipeEnd - me.swipeStart; + if (dist > 20) { + if (me.swipeFull) { + $('.container-view-comment').css('height', '50%'); + me.swipeFull = false; + } else { + uiApp.closeModal(); + } + } else if (dist < 0) { + $('.container-view-comment').css('height', '100%'); + me.swipeFull = true; + } else { + $('.container-view-comment').css('height', '50%'); + } + }, me)); + }, + + showAddCommentModal: function() { + var me = this, + isAndroid = Framework7.prototype.device.android === true, + modalView, + appPrefix = !!window.DE ? DE : !!window.PE ? PE : SSE, + mainView = appPrefix.getController('Editor').getView('Editor').f7View; + + uiApp.closeModal(); + + var date = new Date(); + _.each(editUsers, function(item){ + if (item.asc_getIdOriginal() === _userId) { + me.currentUser = item; + } + }); + if (!me.currentUser) return; + var comment = { + time: date.getTime(), + date: me.dateToLocaleTimeString(date), + userid: _userId, + username: me.currentUser.asc_getUserName(), + usercolor: me.currentUser.asc_getColor() + }; + + if (Common.SharedSettings.get('phone')) { + modalView = $$(uiApp.pickerModal( + '
' + + '' + + '
' + + '
' + + '
' + + '
' + + '
' + comment.username + '
' + + '
' + comment.date + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + )).on('opened', function () { + if (_.isFunction(me.api.asc_OnShowContextMenu)) { + me.api.asc_OnShowContextMenu() + } + }).on('close', function (e) { + mainView.showNavbar(); + }).on('closed', function () { + if (_.isFunction(me.api.asc_OnHideContextMenu)) { + me.api.asc_OnHideContextMenu() + } + }); + mainView.hideNavbar(); + } else { + } + + _.delay(function(){ + $('#comment-text').focus(); + },200); + + appPrefix.getController('Toolbar').getView('Toolbar').hideSearch(); + + $('#add-comment').single('click', _.bind(me.onAddNewComment, me)); + }, + + onAddNewComment: function() { + var comment; + if (typeof Asc.asc_CCommentDataWord !== 'undefined') { + comment = new Asc.asc_CCommentDataWord(null); + } else { + comment = new Asc.asc_CCommentData(null); + } + + var textComment = $('#comment-text').val(); + + if (textComment.length > 0) { + comment.asc_putText(textComment); + comment.asc_putTime(this.utcDateToString(new Date())); + comment.asc_putOnlyOfficeTime(this.ooDateToString(new Date())); + comment.asc_putUserId(this.currentUser.asc_getIdOriginal()); + comment.asc_putUserName(this.currentUser.asc_getUserName()); + comment.asc_putSolved(false); + + if (!_.isUndefined(comment.asc_putDocumentFlag)) + comment.asc_putDocumentFlag(false); + + this.api.asc_addComment(comment); + + uiApp.closeModal(); + } + }, + + // utils + timeZoneOffsetInMs: (new Date()).getTimezoneOffset() * 60000, + utcDateToString: function (date) { + if (Object.prototype.toString.call(date) === '[object Date]') + return (date.getTime() - this.timeZoneOffsetInMs).toString(); + + return ''; + }, + ooDateToString: function (date) { + if (Object.prototype.toString.call(date) === '[object Date]') + return (date.getTime()).toString(); + + return ''; + }, + //end utils + + groupCollectionComments: [], collectionComments: [], groupCollectionFilter: [], @@ -953,7 +1126,10 @@ define([ textParaMoveTo: 'Moved:', textParaMoveFromUp: 'Moved Up:', textParaMoveFromDown: 'Moved Down:', - textEditUser: 'Document is currently being edited by several users.' + textEditUser: 'Document is currently being edited by several users.', + textAddComment: "Add Comment", + textCancel: "Cancel", + textDone: "Done" } })(), Common.Controllers.Collaboration || {})) diff --git a/apps/common/mobile/lib/template/Collaboration.template b/apps/common/mobile/lib/template/Collaboration.template index ec41861a4..fb6016c6f 100644 --- a/apps/common/mobile/lib/template/Collaboration.template +++ b/apps/common/mobile/lib/template/Collaboration.template @@ -236,4 +236,20 @@ + + +
+
+
+
+
+
+ Link 1 + Link 2 + Link 3 +
+
+
+ +
\ No newline at end of file diff --git a/apps/common/mobile/lib/view/Collaboration.js b/apps/common/mobile/lib/view/Collaboration.js index a9d54cd89..cbc70e452 100644 --- a/apps/common/mobile/lib/view/Collaboration.js +++ b/apps/common/mobile/lib/view/Collaboration.js @@ -123,6 +123,17 @@ define([ return ''; }, + rootCommentLayout: function() { + if (this.layout) { + var $layour = this.layout.find('#comment-view'), + isPhone = Common.SharedSettings.get('phone'); + + return $layour.html(); + } + + return ''; + }, + showPage: function(templateId, animate) { var me = this; var prefix = !!window.DE ? DE : !!window.PE ? PE : SSE; @@ -146,6 +157,10 @@ define([ } }, + renderViewComments: function(comments) { + + }, + renderComments: function (comments) { var $pageComments = $('.page-comments .page-content'); if (!comments) { diff --git a/apps/common/mobile/resources/less/ios/_collaboration.less b/apps/common/mobile/resources/less/ios/_collaboration.less index 37361bc8e..7c5468464 100644 --- a/apps/common/mobile/resources/less/ios/_collaboration.less +++ b/apps/common/mobile/resources/less/ios/_collaboration.less @@ -92,7 +92,7 @@ } //Comments -.page-comments { +.page-comments, .page-add-comment { .list-block .item-inner { display: block; padding: 16px 0; @@ -151,7 +151,61 @@ margin: 5px 0; font-size: 15px; } + + //add comment + .wrap-comment { + padding: 16px 16px 0 16px; + } + .comment-textarea { + margin-top: 10px; + background:transparent; + border:none; + outline:none; + width: 100%; + min-height: 200px; + } } .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; +} + +//view comment +.container-view-comment { + -webkit-transition: height 100ms; + transition: height 100ms; + background-color: #FFFFFF; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + height: 50%; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + .toolbar { + position: absolute; + } + .swipe-container { + display: flex; + justify-content: center; + height: 40px; + .icon-swipe { + margin-top: 8px; + width: 40px; + height: 4px; + background: rgba(0, 0, 0, 0.12); + border-radius: 2px; + } + } + .page-content { + padding: 0 16px 80px; + } +} + +.container-view-add-comment { + height: 100%; + .navbar { + a.link i + span { + margin-left: 0; + } + } + .page-add-comment { + background-color: #FFFFFF; + } } \ No newline at end of file diff --git a/apps/documenteditor/mobile/app/controller/DocumentHolder.js b/apps/documenteditor/mobile/app/controller/DocumentHolder.js index 7ceeca7d4..387396a65 100644 --- a/apps/documenteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/documenteditor/mobile/app/controller/DocumentHolder.js @@ -60,6 +60,7 @@ define([ _isEdit = false, _canReview = false, _inRevisionChange = false, + _isComments = false, _menuPos = [], _timer = 0; @@ -95,6 +96,8 @@ define([ Common.NotificationCenter.on('api:disconnect', _.bind(me.onCoAuthoringDisconnect, me)); me.api.asc_registerCallback('asc_onCoAuthoringDisconnect', _.bind(me.onCoAuthoringDisconnect,me)); me.api.asc_registerCallback('asc_onShowRevisionsChange', _.bind(me.onApiShowChange, me)); + me.api.asc_registerCallback('asc_onShowComment', _.bind(me.onApiShowComment, me)); + me.api.asc_registerCallback('asc_onHideComment', _.bind(me.onApiHideComment, me)); me.api.asc_coAuthoringGetUsers(); }, @@ -157,6 +160,15 @@ define([ getCollaboration.showModal(); getCollaboration.getView('Common.Views.Collaboration').showPage('#reviewing-settings-view', false); getCollaboration.getView('Common.Views.Collaboration').showPage('#change-view', false); + } else if ('viewcomment' == eventName) { + var getCollaboration = DE.getController('Common.Controllers.Collaboration'); + getCollaboration.showCommentModal(); + } else if ('addcomment' == eventName) { + var getCollaboration = DE.getController('Common.Controllers.Collaboration'); + /*if (this.api && this.mode.canCoAuthoring && this.mode.canComments) { + + }*/ + getCollaboration.showAddCommentModal(); } else if ('showActionSheet' == eventName && _actionSheets.length > 0) { _.delay(function () { _.each(_actionSheets, function (action) { @@ -365,6 +377,14 @@ define([ _inRevisionChange = sdkchange && sdkchange.length>0; }, + onApiShowComment: function(comments) { + _isComments = comments && comments.length>0; + }, + + onApiHideComment: function() { + _isComments = false; + }, + // Internal _openLink: function(url) { @@ -513,6 +533,18 @@ define([ }); } } + + if (1/*_isComments*/) { + arrItems.push({ + caption: me.menuViewComment, + event: 'viewcomment' + }); + } + + arrItems.push({ + caption: me.menuAddComment, + event: 'addcomment' + }); } } @@ -559,7 +591,9 @@ define([ menuMerge: 'Merge Cells', menuSplit: 'Split Cell', menuDeleteTable: 'Delete Table', - menuReviewChange: 'Review Change' + menuReviewChange: 'Review Change', + menuViewComment: 'View Comment', + menuAddComment: 'Add Comment' } })(), DE.Controllers.DocumentHolder || {})) }); \ No newline at end of file diff --git a/apps/documenteditor/mobile/resources/css/app-ios.css b/apps/documenteditor/mobile/resources/css/app-ios.css index 974bae797..bd1719bc0 100644 --- a/apps/documenteditor/mobile/resources/css/app-ios.css +++ b/apps/documenteditor/mobile/resources/css/app-ios.css @@ -6479,15 +6479,18 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after #user-list ul:before { content: none; } -.page-comments .list-block .item-inner { +.page-comments .list-block .item-inner, +.page-add-comment .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } -.page-comments p { +.page-comments p, +.page-add-comment p { margin: 0; } -.page-comments .user-name { +.page-comments .user-name, +.page-add-comment .user-name { font-size: 17px; line-height: 22px; color: #000000; @@ -6495,7 +6498,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-weight: bold; } .page-comments .comment-date, -.page-comments .reply-date { +.page-add-comment .comment-date, +.page-comments .reply-date, +.page-add-comment .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6503,7 +6508,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after margin-top: 0px; } .page-comments .comment-text, -.page-comments .reply-text { +.page-add-comment .comment-text, +.page-comments .reply-text, +.page-add-comment .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6511,13 +6518,16 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after max-width: 100%; padding-right: 15px; } -.page-comments .reply-item { +.page-comments .reply-item, +.page-add-comment .reply-item { margin-top: 15px; } -.page-comments .reply-item .user-name { +.page-comments .reply-item .user-name, +.page-add-comment .reply-item .user-name { padding-top: 16px; } -.page-comments .reply-item:before { +.page-comments .reply-item:before, +.page-add-comment .reply-item:before { content: ''; position: absolute; left: auto; @@ -6532,17 +6542,67 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; } -.page-comments .comment-quote { +.page-comments .comment-quote, +.page-add-comment .comment-quote { color: #446995; border-left: 1px solid #446995; padding-left: 10px; margin: 5px 0; font-size: 15px; } +.page-comments .wrap-comment, +.page-add-comment .wrap-comment { + padding: 16px 16px 0 16px; +} +.page-comments .comment-textarea, +.page-add-comment .comment-textarea { + margin-top: 10px; + background: transparent; + border: none; + outline: none; + width: 100%; + min-height: 200px; +} .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; } +.container-view-comment { + -webkit-transition: height 100ms; + transition: height 100ms; + background-color: #FFFFFF; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + height: 50%; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .toolbar { + position: absolute; +} +.container-view-comment .swipe-container { + display: flex; + justify-content: center; + height: 40px; +} +.container-view-comment .swipe-container .icon-swipe { + margin-top: 8px; + width: 40px; + height: 4px; + background: rgba(0, 0, 0, 0.12); + border-radius: 2px; +} +.container-view-comment .page-content { + padding: 0 16px 80px; +} +.container-view-add-comment { + height: 100%; +} +.container-view-add-comment .navbar a.link i + span { + margin-left: 0; +} +.container-view-add-comment .page-add-comment { + background-color: #FFFFFF; +} .tablet .searchbar.document.replace .center .searchbar:first-child { margin-right: 10px; } diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index 856611ab1..fa01a7fef 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -6479,15 +6479,18 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after #user-list ul:before { content: none; } -.page-comments .list-block .item-inner { +.page-comments .list-block .item-inner, +.page-add-comment .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } -.page-comments p { +.page-comments p, +.page-add-comment p { margin: 0; } -.page-comments .user-name { +.page-comments .user-name, +.page-add-comment .user-name { font-size: 17px; line-height: 22px; color: #000000; @@ -6495,7 +6498,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-weight: bold; } .page-comments .comment-date, -.page-comments .reply-date { +.page-add-comment .comment-date, +.page-comments .reply-date, +.page-add-comment .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6503,7 +6508,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after margin-top: 0px; } .page-comments .comment-text, -.page-comments .reply-text { +.page-add-comment .comment-text, +.page-comments .reply-text, +.page-add-comment .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6511,13 +6518,16 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after max-width: 100%; padding-right: 15px; } -.page-comments .reply-item { +.page-comments .reply-item, +.page-add-comment .reply-item { margin-top: 15px; } -.page-comments .reply-item .user-name { +.page-comments .reply-item .user-name, +.page-add-comment .reply-item .user-name { padding-top: 16px; } -.page-comments .reply-item:before { +.page-comments .reply-item:before, +.page-add-comment .reply-item:before { content: ''; position: absolute; left: auto; @@ -6532,17 +6542,67 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; } -.page-comments .comment-quote { +.page-comments .comment-quote, +.page-add-comment .comment-quote { color: #aa5252; border-left: 1px solid #aa5252; padding-left: 10px; margin: 5px 0; font-size: 15px; } +.page-comments .wrap-comment, +.page-add-comment .wrap-comment { + padding: 16px 16px 0 16px; +} +.page-comments .comment-textarea, +.page-add-comment .comment-textarea { + margin-top: 10px; + background: transparent; + border: none; + outline: none; + width: 100%; + min-height: 200px; +} .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; } +.container-view-comment { + -webkit-transition: height 100ms; + transition: height 100ms; + background-color: #FFFFFF; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + height: 50%; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .toolbar { + position: absolute; +} +.container-view-comment .swipe-container { + display: flex; + justify-content: center; + height: 40px; +} +.container-view-comment .swipe-container .icon-swipe { + margin-top: 8px; + width: 40px; + height: 4px; + background: rgba(0, 0, 0, 0.12); + border-radius: 2px; +} +.container-view-comment .page-content { + padding: 0 16px 80px; +} +.container-view-add-comment { + height: 100%; +} +.container-view-add-comment .navbar a.link i + span { + margin-left: 0; +} +.container-view-add-comment .page-add-comment { + background-color: #FFFFFF; +} .tablet .searchbar.document.replace .center .searchbar:first-child { margin-right: 10px; } diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index 1c04dcd53..96e6cb262 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -6479,15 +6479,18 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after #user-list ul:before { content: none; } -.page-comments .list-block .item-inner { +.page-comments .list-block .item-inner, +.page-add-comment .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } -.page-comments p { +.page-comments p, +.page-add-comment p { margin: 0; } -.page-comments .user-name { +.page-comments .user-name, +.page-add-comment .user-name { font-size: 17px; line-height: 22px; color: #000000; @@ -6495,7 +6498,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-weight: bold; } .page-comments .comment-date, -.page-comments .reply-date { +.page-add-comment .comment-date, +.page-comments .reply-date, +.page-add-comment .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6503,7 +6508,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after margin-top: 0px; } .page-comments .comment-text, -.page-comments .reply-text { +.page-add-comment .comment-text, +.page-comments .reply-text, +.page-add-comment .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6511,13 +6518,16 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after max-width: 100%; padding-right: 15px; } -.page-comments .reply-item { +.page-comments .reply-item, +.page-add-comment .reply-item { margin-top: 15px; } -.page-comments .reply-item .user-name { +.page-comments .reply-item .user-name, +.page-add-comment .reply-item .user-name { padding-top: 16px; } -.page-comments .reply-item:before { +.page-comments .reply-item:before, +.page-add-comment .reply-item:before { content: ''; position: absolute; left: auto; @@ -6532,17 +6542,67 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; } -.page-comments .comment-quote { +.page-comments .comment-quote, +.page-add-comment .comment-quote { color: #40865c; border-left: 1px solid #40865c; padding-left: 10px; margin: 5px 0; font-size: 15px; } +.page-comments .wrap-comment, +.page-add-comment .wrap-comment { + padding: 16px 16px 0 16px; +} +.page-comments .comment-textarea, +.page-add-comment .comment-textarea { + margin-top: 10px; + background: transparent; + border: none; + outline: none; + width: 100%; + min-height: 200px; +} .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; } +.container-view-comment { + -webkit-transition: height 100ms; + transition: height 100ms; + background-color: #FFFFFF; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + height: 50%; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .toolbar { + position: absolute; +} +.container-view-comment .swipe-container { + display: flex; + justify-content: center; + height: 40px; +} +.container-view-comment .swipe-container .icon-swipe { + margin-top: 8px; + width: 40px; + height: 4px; + background: rgba(0, 0, 0, 0.12); + border-radius: 2px; +} +.container-view-comment .page-content { + padding: 0 16px 80px; +} +.container-view-add-comment { + height: 100%; +} +.container-view-add-comment .navbar a.link i + span { + margin-left: 0; +} +.container-view-add-comment .page-add-comment { + background-color: #FFFFFF; +} i.icon.icon-search { width: 24px; height: 24px; From 9670353c3b684c0bc7bef36dfd2bed839c923172 Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Sun, 15 Mar 2020 18:59:42 +0300 Subject: [PATCH 03/72] [de mobile] edit comment, delete comment, prev comment, next comment, add reply, edit reply, delete reply, resolve comment (ios) --- .../mobile/lib/controller/Collaboration.js | 569 +++++++++++++++++- .../lib/template/Collaboration.template | 16 - apps/common/mobile/lib/view/Collaboration.js | 59 +- .../resources/less/ios/_collaboration.less | 104 +++- .../mobile/app/controller/DocumentHolder.js | 2 +- .../mobile/resources/css/app-ios.css | 178 +++++- .../mobile/resources/less/ios/_icons.less | 17 + .../mobile/resources/css/app-ios.css | 163 ++++- .../mobile/resources/css/app-ios.css | 163 ++++- 9 files changed, 1184 insertions(+), 87 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 8b4c8bf87..efd3be179 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -91,6 +91,8 @@ define([ this.api.asc_registerCallback('asc_onAddComments', _.bind(this.onApiAddComments, this)); this.api.asc_registerCallback('asc_onChangeCommentData', _.bind(this.onApiChangeCommentData, this)); this.api.asc_registerCallback('asc_onRemoveComment', _.bind(this.onApiRemoveComment, this)); + this.api.asc_registerCallback('asc_onRemoveComments', _.bind(this.onApiRemoveComments, this)); + this.api.asc_registerCallback('asc_onShowComment', _.bind(this.apiShowComments, this)); if (editor === 'DE') { this.api.asc_registerCallback('asc_onShowRevisionsChange', _.bind(this.changeReview, this)); } @@ -679,19 +681,80 @@ define([ //Comments + findComment: function(uid) { + var comment; + if (this.groupCollectionFilter.length !== 0) { + comment = me.findCommentInGroup(uid); + } else if (this.collectionComments.length !== 0) { + comment = _.findWhere(this.collectionComments, {uid: uid}); + } + return comment; + }, + + apiShowComments: function(uid) { + var comments, + me = this; + me.showComments = []; + if (this.groupCollectionFilter.length !== 0) { + comments = this.groupCollectionFilter; + _.each(uid, function (id) { + var comment = me.findCommentInGroup(uid); + if (comment) { + me.showComments.push(comment); + } + }); + } else if (this.collectionComments.length !== 0) { + comments = this.collectionComments; + _.each(uid, function (id) { + var comment = _.findWhere(comments, {uid: id}); + if (comment) { + me.showComments.push(comment); + } + }); + } + }, + + updateViewComment: function() { + DE.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(this.showComments, this.indexCurrentComment); + $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); + $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); + $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this)); + }, + showCommentModal: function() { var me = this, isAndroid = Framework7.prototype.device.android === true, - modalView, appPrefix = !!window.DE ? DE : !!window.PE ? PE : SSE, - mainView = appPrefix.getController('Editor').getView('Editor').f7View; + mainView = appPrefix.getController('Editor').getView('Editor').f7View, + viewCollaboration = appPrefix.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration'); + + me.indexCurrentComment = 0; uiApp.closeModal(); if (Common.SharedSettings.get('phone')) { - modalView = $$(uiApp.pickerModal( + me.modalViewComment = $$(uiApp.pickerModal( '
' + - this.getView('Common.Views.Collaboration').rootCommentLayout() + + '
' + + '
' + + '
' + + '
' + + '
' + + '' + + '
' + + '' + + '' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
' + + '
'+ '
' )).on('opened', function () { if (_.isFunction(me.api.asc_OnShowContextMenu)) { @@ -710,6 +773,8 @@ define([ appPrefix.getController('Toolbar').getView('Toolbar').hideSearch(); + viewCollaboration.renderViewComments(me.showComments, me.indexCurrentComment); + //swipe modal window me.swipeFull = false; var $swipeContainer = $('.swipe-container'); @@ -736,6 +801,135 @@ define([ $('.container-view-comment').css('height', '50%'); } }, me)); + + $('.prev-comment').single('click', _.bind(me.onViewPrevComment, me)); + $('.next-comment').single('click', _.bind(me.onViewNextComment, me)); + $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); + $('.add-reply').single('click', _.bind(me.onClickAddReply, me)); + $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); + $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me)); + }, + + onViewPrevComment: function() { + if (this.indexCurrentComment - 1 >= 0 && this.showComments.length > 0) { + this.indexCurrentComment -= 1; + DE.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(this.showComments, this.indexCurrentComment); + $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); + $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); + $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this)); + } + }, + + onViewNextComment: function() { + if (this.indexCurrentComment + 1 < this.showComments.length) { + this.indexCurrentComment += 1; + DE.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(this.showComments, this.indexCurrentComment); + $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); + $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); + $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this)); + } + }, + + onClickAddReply: function() { + var me = this; + if (this.indexCurrentComment > -1 && this.indexCurrentComment < this.showComments.length) { + var addReplyView, + comment = this.showComments[this.indexCurrentComment]; + if (Common.SharedSettings.get('phone')) { + addReplyView = uiApp.popup( + '' + ); + $('.popup').css('z-index', '20000'); + _.delay(function () { + var $textarea = $('.reply-textarea')[0]; + $textarea.focus(); + },100); + $('.done-reply').single('click', _.bind(function (uid) { + var reply = $('.reply-textarea')[0].value; + if (reply && reply.length > 0) { + this.addReply(uid, reply); + uiApp.closeModal($$(addReplyView)); + this.updateViewComment(this.showComments, this.indexCurrentComment); + } + }, me, comment.uid)); + } else { + + } + } + }, + + addReply: function(id, replyVal) { + if (replyVal.length > 0) { + var me = this, + reply = null, + addReply = null, + ascComment = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)), + comment = _.findWhere(this.collectionComments, {uid: id}); + + if (ascComment && comment) { + + ascComment.asc_putText(comment.comment); + ascComment.asc_putQuoteText(comment.quote); + ascComment.asc_putTime(me.utcDateToString(new Date(comment.time))); + ascComment.asc_putOnlyOfficeTime(me.ooDateToString(new Date(comment.time))); + ascComment.asc_putUserId(comment.userid); + ascComment.asc_putUserName(comment.username); + ascComment.asc_putSolved(comment.resolved); + ascComment.asc_putGuid(comment.guid); + + if (!_.isUndefined(ascComment.asc_putDocumentFlag)) { + ascComment.asc_putDocumentFlag(comment.unattached); + } + + reply = comment.replys; + if (reply && reply.length) { + reply.forEach(function (reply) { + + addReply = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)); + if (addReply) { + addReply.asc_putText(reply.reply); + addReply.asc_putTime(me.utcDateToString(new Date(reply.time))); + addReply.asc_putOnlyOfficeTime(me.ooDateToString(new Date(reply.time))); + addReply.asc_putUserId(reply.userid); + addReply.asc_putUserName(reply.username); + + ascComment.asc_addReply(addReply); + } + }); + } + + addReply = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)); + if (addReply) { + addReply.asc_putText(replyVal); + addReply.asc_putTime(me.utcDateToString(new Date())); + addReply.asc_putOnlyOfficeTime(me.ooDateToString(new Date())); + _.each(editUsers, function(item){ + if (item.asc_getIdOriginal() === _userId) { + me.currentUser = item; + } + }); + addReply.asc_putUserId(_userId); + addReply.asc_putUserName(me.currentUser.asc_getUserName()); + + ascComment.asc_addReply(addReply); + + me.api.asc_changeComment(id, ascComment); + } + } + } }, showAddCommentModal: function() { @@ -835,6 +1029,335 @@ define([ } }, + initMenuComments: function() { + var me = this; + _.delay(function () { + var _menuItems = []; + _menuItems.push({ + caption: me.textEdit, + event: 'edit' + }); + if (!me.showComments[me.indexCurrentComment].resolved) { + _menuItems.push({ + caption: me.textResolve, + event: 'resolve' + }); + } else { + _menuItems.push({ + caption: me.textReopen, + event: 'resolve' + }); + } + _menuItems.push({ + caption: me.textDeleteComment, + event: 'delete' + }); + _.each(_menuItems, function (item) { + item.text = item.caption; + item.onClick = function () { + me.onCommentMenuClick(item.event) + } + }); + + uiApp.actions([_menuItems, [ + { + text: me.textCancel, + bold: true + } + ]]); + }, 100); + }, + + initReplyMenu: function(event) { + var me = this; + var ind = $(event.currentTarget).parent().parent().data('ind'); + _.delay(function () { + var _menuItems = []; + _menuItems.push({ + caption: me.textEdit, + event: 'editreply' + }); + _menuItems.push({ + caption: me.textDeleteReply, + event: 'deletereply' + }); + _.each(_menuItems, function (item) { + item.text = item.caption; + item.onClick = function () { + me.onCommentMenuClick(item.event, ind); + } + }); + + uiApp.actions([_menuItems, [ + { + text: me.textCancel, + bold: true + } + ]]); + }, 100); + }, + + onCommentMenuClick: function(action, indReply) { + var me = this; + switch (action) { + case 'edit': me.showEditCommentModal(); break; + case 'resolve': me.onClickResolveComment(); break; + case 'delete': me.onDeleteComment(me.indexCurrentComment); break; + case 'editreply': me.showEditReplyModal(me.indexCurrentComment, indReply); break; + case 'deletereply': me.onDeleteReply(me.indexCurrentComment, indReply); break; + } + }, + + onChangeComment: function(comment) { + if (this.api) { + var ascComment, + me = this; + if (typeof Asc.asc_CCommentDataWord !== 'undefined') { + ascComment = new Asc.asc_CCommentDataWord(null); + } else { + ascComment = new Asc.asc_CCommentData(null); + } + + if (ascComment && comment) { + var uid = comment.uid; + ascComment.asc_putText(comment.comment); + ascComment.asc_putQuoteText(comment.quote); + ascComment.asc_putTime(me.utcDateToString(new Date(comment.time))); + ascComment.asc_putOnlyOfficeTime(me.ooDateToString(new Date(comment.time))); + ascComment.asc_putUserId(comment.userid); + ascComment.asc_putUserName(comment.username); + ascComment.asc_putSolved(!comment.resolved); + ascComment.asc_putGuid(comment.guid); + + if (!_.isUndefined(ascComment.asc_putDocumentFlag)) { + ascComment.asc_putDocumentFlag(comment.unattached); + } + + var reply = comment.replys; + if (reply && reply.length > 0) { + reply.forEach(function (reply) { + var addReply = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)); + if (addReply) { + addReply.asc_putText(reply.reply); + addReply.asc_putTime(me.utcDateToString(new Date(reply.time))); + addReply.asc_putOnlyOfficeTime(me.ooDateToString(new Date(reply.time))); + addReply.asc_putUserId(reply.userid); + addReply.asc_putUserName(reply.username); + + ascComment.asc_addReply(addReply); + } + }); + } + + this.api.asc_changeComment(uid, ascComment); + } + } + }, + + onDeleteComment: function(ind) { + if (this.api && !_.isUndefined(ind) && !_.isUndefined(this.showComments)) { + this.api.asc_removeComment(this.showComments[ind].uid); + if (this.showComments.length === 0) { + uiApp.closeModal(); + } else { + this.indexCurrentComment = this.indexCurrentComment - 1 > -1 ? this.indexCurrentComment - 1 : 0; + this.updateViewComment(); + } + } + }, + + onDeleteReply: function(indComment, indReply) { + if (!_.isUndefined(indComment) && !_.isUndefined(indReply)) { + var me = this, + replies = null, + addReply = null, + ascComment = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)), + comment = me.showComments[indComment]; + + if (ascComment && comment) { + var id = comment.uid; + ascComment.asc_putText(comment.comment); + ascComment.asc_putQuoteText(comment.quote); + ascComment.asc_putTime(me.utcDateToString(new Date(comment.time))); + ascComment.asc_putOnlyOfficeTime(me.ooDateToString(new Date(comment.time))); + ascComment.asc_putUserId(comment.userid); + ascComment.asc_putUserName(comment.username); + ascComment.asc_putSolved(comment.resolved); + ascComment.asc_putGuid(comment.guid); + + if (!_.isUndefined(ascComment.asc_putDocumentFlag)) { + ascComment.asc_putDocumentFlag(comment.unattached); + } + + replies = comment.replys; + if (replies && replies.length) { + replies.forEach(function (reply) { + if (reply.ind !== indReply) { + addReply = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)); + if (addReply) { + addReply.asc_putText(reply.reply); + addReply.asc_putTime(me.utcDateToString(new Date(reply.time))); + addReply.asc_putOnlyOfficeTime(me.ooDateToString(new Date(reply.time))); + addReply.asc_putUserId(reply.userid); + addReply.asc_putUserName(reply.username); + + ascComment.asc_addReply(addReply); + } + } + }); + } + + me.api.asc_changeComment(id, ascComment); + me.updateViewComment(); + } + } + }, + + showEditCommentModal: function() { + var me = this; + if (this.indexCurrentComment > -1 && this.indexCurrentComment < this.showComments.length) { + var comment = this.showComments[this.indexCurrentComment]; + if (Common.SharedSettings.get('phone')) { + me.editView = uiApp.popup( + '' + ); + $('.popup').css('z-index', '20000'); + _.delay(function () { + var $textarea = $('.comment-textarea')[0]; + $textarea.focus(); + $textarea.selectionStart = $textarea.value.length; + },100); + $('#edit-comment').single('click', _.bind(function (comment) { + var value = $('.comment-textarea')[0].value; + if (value && value.length > 0) { + comment.comment = value; + this.showComments[this.indexCurrentComment] = comment; + this.onChangeComment(comment); + uiApp.closeModal($$(me.editView)); + this.updateViewComment(); + } + }, me, comment)); + } else { + + } + } + }, + + showEditReplyModal: function(indComment, indReply) { + var me = this; + if (indComment > -1 && indComment < this.showComments.length) { + var editView, + comment, + replies, + reply; + this.showComments && (comment = this.showComments[indComment]); + comment && (replies = comment.replys); + replies && (reply = replies[indReply]); + if (reply) { + if (Common.SharedSettings.get('phone')) { + editView = uiApp.popup( + '' + ); + $('.popup').css('z-index', '20000'); + _.delay(function () { + var $textarea = $('.reply-textarea')[0]; + $textarea.focus(); + $textarea.selectionStart = $textarea.value.length; + },100); + } + $('#edit-reply').single('click', _.bind(function (comment, indReply) { + var value = $('.reply-textarea')[0].value; + if (value && value.length > 0) { + comment.replys[indReply].reply = value; + this.onChangeComment(comment); + uiApp.closeModal($$(editView)); + this.updateViewComment(); + } + }, me, comment, indReply)); + } + } + }, + + onClickResolveComment: function() { + if (!_.isUndefined(this.indexCurrentComment) && !_.isUndefined(this.showComments)) { + var comment = this.showComments[this.indexCurrentComment]; + if (comment) { + if (this.resolveComment(comment.uid)) { + $('.comment-resolve .icon-resolve-comment').toggleClass('check'); + } + } + } + }, + + resolveComment: function (uid) { + var me = this, + reply = null, + addReply = null, + ascComment = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)), + comment = me.findComment(uid); + + if (ascComment && comment && me.api) { + ascComment.asc_putText(comment.comment); + ascComment.asc_putQuoteText(comment.quote); + ascComment.asc_putTime(me.utcDateToString(new Date(comment.time))); + ascComment.asc_putOnlyOfficeTime(me.ooDateToString(new Date(comment.time))); + ascComment.asc_putUserId(comment.userid); + ascComment.asc_putUserName(comment.username); + ascComment.asc_putSolved(!comment.resolved); + ascComment.asc_putGuid(comment.guid); + + if (!_.isUndefined(ascComment.asc_putDocumentFlag)) { + ascComment.asc_putDocumentFlag(comment.unattached); + } + + reply = comment.replys; + if (reply && reply.length) { + reply.forEach(function (reply) { + addReply = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)); + if (addReply) { + addReply.asc_putText(reply.reply); + addReply.asc_putTime(me.utcDateToString(new Date(reply.time))); + addReply.asc_putOnlyOfficeTime(me.ooDateToString(new Date(reply.time))); + addReply.asc_putUserId(reply.userid); + addReply.asc_putUserName(reply.username); + + ascComment.asc_addReply(addReply); + } + }); + } + + me.api.asc_changeComment(uid, ascComment); + return true; + } + return false; + }, + // utils timeZoneOffsetInMs: (new Date()).getTimezoneOffset() * 60000, utcDateToString: function (date) { @@ -874,6 +1397,7 @@ define([ var user = _.findWhere(editUsers, {idOriginal: data.asc_getReply(i).asc_getUserId()}); replies.push({ + ind : i, userid : data.asc_getReply(i).asc_getUserId(), username : data.asc_getReply(i).asc_getUserName(), usercolor : (user) ? user.asc_getColor() : null, @@ -950,6 +1474,7 @@ define([ user = _.findWhere(editUsers, {idOriginal: data.asc_getReply(i).asc_getUserId()}); replies.push({ + ind : i, userid : data.asc_getReply(i).asc_getUserId(), username : data.asc_getReply(i).asc_getUserName(), usercolor : (user) ? user.asc_getColor() : null, @@ -962,6 +1487,13 @@ define([ if($('.page-comments').length > 0) { this.initComments(); } + + if (this.showComments && this.showComments.length > 0) { + var showComment = _.findWhere(this.showComments, {uid: id}); + if (showComment) { + showComment = comment; + } + } } }, @@ -1016,7 +1548,7 @@ define([ } }, - onApiRemoveComment: function (id) { + onApiRemoveComment: function (id, silentUpdate) { function remove (collection, key) { if(collection instanceof Array) { var index = collection.indexOf(key); @@ -1025,7 +1557,7 @@ define([ } } } - if (this.groupCollectionComments) { + if (this.groupCollectionComments.length > 0) { for (var name in this.groupCollectionComments) { var store = this.groupCollectionComments[name], comment = _.findWhere(store, {uid: id}); @@ -1043,9 +1575,22 @@ define([ remove(this.collectionComments, comment); } } - if($('.page-comments').length > 0) { + if(!silentUpdate && $('.page-comments').length > 0) { this.initComments(); } + + if (this.showComments && this.showComments.length > 0) { + var removeComment = _.findWhere(this.showComments, {uid: id}); + if (removeComment) { + this.showComments = _.without(this.showComments, removeComment); + } + } + }, + + onApiRemoveComments: function(data) { + for (var i = 0; i < data.length; i++) { + this.onApiRemoveComment(data[i], true); + } }, onFilterChange: function (filter) { @@ -1129,7 +1674,15 @@ define([ textEditUser: 'Document is currently being edited by several users.', textAddComment: "Add Comment", textCancel: "Cancel", - textDone: "Done" + textDone: "Done", + textAddReply: "Add Reply", + textEdit: 'Edit', + textResolve: 'Resolve', + textDeleteComment: 'Delete comment', + textEditComment: 'Edit comment', + textDeleteReply: 'Delete reply', + textEditReply: 'Edit reply', + textReopen: 'Reopen' } })(), Common.Controllers.Collaboration || {})) diff --git a/apps/common/mobile/lib/template/Collaboration.template b/apps/common/mobile/lib/template/Collaboration.template index fb6016c6f..f418d24b5 100644 --- a/apps/common/mobile/lib/template/Collaboration.template +++ b/apps/common/mobile/lib/template/Collaboration.template @@ -237,19 +237,3 @@ - -
-
-
-
-
-
- Link 1 - Link 2 - Link 3 -
-
-
- -
-
\ No newline at end of file diff --git a/apps/common/mobile/lib/view/Collaboration.js b/apps/common/mobile/lib/view/Collaboration.js index cbc70e452..3765c858e 100644 --- a/apps/common/mobile/lib/view/Collaboration.js +++ b/apps/common/mobile/lib/view/Collaboration.js @@ -123,17 +123,6 @@ define([ return ''; }, - rootCommentLayout: function() { - if (this.layout) { - var $layour = this.layout.find('#comment-view'), - isPhone = Common.SharedSettings.get('phone'); - - return $layour.html(); - } - - return ''; - }, - showPage: function(templateId, animate) { var me = this; var prefix = !!window.DE ? DE : !!window.PE ? PE : SSE; @@ -157,8 +146,52 @@ define([ } }, - renderViewComments: function(comments) { + //Comments + renderViewComments: function(comments, indCurComment) { + if ($('.page-view-comments .page-content').length > 0) { + var template = ''; + if (comments && comments.length > 0) { + template = '
' + + '
    '; + var comment = comments[indCurComment]; + template += '
  • ' + + '
    ' + + '
    ' + + '

    ' + comment.username + '

    ' + + '

    ' + comment.date + '

    '; + if (comment.quote) template += '

    ' + comment.quote + '

    '; + template += '
    '; + template += '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    '; + + template += '

    ' + comment.comment + '

    '; + if (comment.replys.length > 0) { + template += '
      '; + _.each(comment.replys, function (reply) { + template += '
    • ' + + '
      ' + + '
      ' + + '

      ' + reply.username + '

      ' + + '

      ' + reply.date + '

      ' + + '
      ' + + '
      ' + + '
      ' + + '

      ' + reply.reply + '

      ' + + '
    • '; + }); + template += '
    ' + } + + template += '
    ' + + '
  • '; + template += '
'; + $('.page-view-comments .page-content').html(template); + } + } }, renderComments: function (comments) { @@ -205,7 +238,7 @@ define([ replys: comment.replys.length, })); }); - $listComments.html(items); + $listComments.html(items.join('')); } }, diff --git a/apps/common/mobile/resources/less/ios/_collaboration.less b/apps/common/mobile/resources/less/ios/_collaboration.less index 7c5468464..5fd698055 100644 --- a/apps/common/mobile/resources/less/ios/_collaboration.less +++ b/apps/common/mobile/resources/less/ios/_collaboration.less @@ -92,7 +92,7 @@ } //Comments -.page-comments, .page-add-comment { +.page-comments, .page-add-comment, .page-view-comments, .container-edit-comment, .container-add-reply { .list-block .item-inner { display: block; padding: 16px 0; @@ -100,6 +100,7 @@ } p { margin: 0; + word-break: break-word; } .user-name { font-size: 17px; @@ -125,8 +126,14 @@ } .reply-item { margin-top: 15px; + padding-right: 16px; + padding-top: 13px; + .header-reply { + display: flex; + justify-content: space-between; + } .user-name { - padding-top: 16px; + padding-top: 3px; } &:before { content: ''; @@ -152,23 +159,29 @@ font-size: 15px; } - //add comment .wrap-comment { padding: 16px 16px 0 16px; } - .comment-textarea { + .comment-textarea, .reply-textarea { margin-top: 10px; background:transparent; border:none; outline:none; width: 100%; min-height: 200px; + font-size: 15px; } } .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; } +.container-edit-comment { + .navbar { + background-color: #FFFFFF; + } +} + //view comment .container-view-comment { -webkit-transition: height 100ms; @@ -178,8 +191,52 @@ border-top-right-radius: 4px; height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + .page-view-comments { + background-color: #FFFFFF; + .list-block { + margin-bottom: 100px; + ul:before, ul:after { + content: none; + } + .item-inner { + padding: 0; + .header-comment { + display: flex; + justify-content: space-between; + padding-right: 16px; + .comment-right { + display: flex; + justify-content: space-between; + width: 70px; + } + } + } + } + + } .toolbar { position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + &:before { + content: none; + } + .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; + .button-left { + min-width: 80px; + } + .button-right { + min-width: 62px; + display: flex; + justify-content: space-between; + a { + padding: 0 8px; + } + } + } } .swipe-container { display: flex; @@ -193,19 +250,52 @@ border-radius: 2px; } } - .page-content { - padding: 0 16px 80px; + .list-block { + margin-top: 0; } } .container-view-add-comment { height: 100%; .navbar { + background-color: #FFFFFF; a.link i + span { margin-left: 0; } } .page-add-comment { background-color: #FFFFFF; + .page-content { + padding: 0 16px 80px; + } } -} \ No newline at end of file +} + +.container-add-reply { + height: 100%; + .navbar { + background-color: #FFFFFF; + a.link i + span { + margin-left: 0; + } + } +} + +.icon-arrow-comment { + border: solid black; + border-width: 0 2px 2px 0; + border-color: @themeColor; + height: 12px; + width: 12px; + display: inline-block; + padding: 0; + &.right { + transform: rotate(-45deg); + -webkit-transform: rotate(-45deg); + } + + &.left { + transform: rotate(135deg); + -webkit-transform: rotate(135deg); + } +} diff --git a/apps/documenteditor/mobile/app/controller/DocumentHolder.js b/apps/documenteditor/mobile/app/controller/DocumentHolder.js index 387396a65..532a74301 100644 --- a/apps/documenteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/documenteditor/mobile/app/controller/DocumentHolder.js @@ -534,7 +534,7 @@ define([ } } - if (1/*_isComments*/) { + if (_isComments) { arrItems.push({ caption: me.menuViewComment, event: 'viewcomment' diff --git a/apps/documenteditor/mobile/resources/css/app-ios.css b/apps/documenteditor/mobile/resources/css/app-ios.css index bd1719bc0..c5f043d0f 100644 --- a/apps/documenteditor/mobile/resources/css/app-ios.css +++ b/apps/documenteditor/mobile/resources/css/app-ios.css @@ -6480,17 +6480,27 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after content: none; } .page-comments .list-block .item-inner, -.page-add-comment .list-block .item-inner { +.page-add-comment .list-block .item-inner, +.page-view-comments .list-block .item-inner, +.container-edit-comment .list-block .item-inner, +.container-add-reply .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } .page-comments p, -.page-add-comment p { +.page-add-comment p, +.page-view-comments p, +.container-edit-comment p, +.container-add-reply p { margin: 0; + word-break: break-word; } .page-comments .user-name, -.page-add-comment .user-name { +.page-add-comment .user-name, +.page-view-comments .user-name, +.container-edit-comment .user-name, +.container-add-reply .user-name { font-size: 17px; line-height: 22px; color: #000000; @@ -6499,8 +6509,14 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after } .page-comments .comment-date, .page-add-comment .comment-date, +.page-view-comments .comment-date, +.container-edit-comment .comment-date, +.container-add-reply .comment-date, .page-comments .reply-date, -.page-add-comment .reply-date { +.page-add-comment .reply-date, +.page-view-comments .reply-date, +.container-edit-comment .reply-date, +.container-add-reply .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6509,8 +6525,14 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after } .page-comments .comment-text, .page-add-comment .comment-text, +.page-view-comments .comment-text, +.container-edit-comment .comment-text, +.container-add-reply .comment-text, .page-comments .reply-text, -.page-add-comment .reply-text { +.page-add-comment .reply-text, +.page-view-comments .reply-text, +.container-edit-comment .reply-text, +.container-add-reply .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6519,15 +6541,34 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after padding-right: 15px; } .page-comments .reply-item, -.page-add-comment .reply-item { +.page-add-comment .reply-item, +.page-view-comments .reply-item, +.container-edit-comment .reply-item, +.container-add-reply .reply-item { margin-top: 15px; + padding-right: 16px; + padding-top: 13px; +} +.page-comments .reply-item .header-reply, +.page-add-comment .reply-item .header-reply, +.page-view-comments .reply-item .header-reply, +.container-edit-comment .reply-item .header-reply, +.container-add-reply .reply-item .header-reply { + display: flex; + justify-content: space-between; } .page-comments .reply-item .user-name, -.page-add-comment .reply-item .user-name { - padding-top: 16px; +.page-add-comment .reply-item .user-name, +.page-view-comments .reply-item .user-name, +.container-edit-comment .reply-item .user-name, +.container-add-reply .reply-item .user-name { + padding-top: 3px; } .page-comments .reply-item:before, -.page-add-comment .reply-item:before { +.page-add-comment .reply-item:before, +.page-view-comments .reply-item:before, +.container-edit-comment .reply-item:before, +.container-add-reply .reply-item:before { content: ''; position: absolute; left: auto; @@ -6543,7 +6584,10 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after transform-origin: 50% 100%; } .page-comments .comment-quote, -.page-add-comment .comment-quote { +.page-add-comment .comment-quote, +.page-view-comments .comment-quote, +.container-edit-comment .comment-quote, +.container-add-reply .comment-quote { color: #446995; border-left: 1px solid #446995; padding-left: 10px; @@ -6551,22 +6595,37 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-size: 15px; } .page-comments .wrap-comment, -.page-add-comment .wrap-comment { +.page-add-comment .wrap-comment, +.page-view-comments .wrap-comment, +.container-edit-comment .wrap-comment, +.container-add-reply .wrap-comment { padding: 16px 16px 0 16px; } .page-comments .comment-textarea, -.page-add-comment .comment-textarea { +.page-add-comment .comment-textarea, +.page-view-comments .comment-textarea, +.container-edit-comment .comment-textarea, +.container-add-reply .comment-textarea, +.page-comments .reply-textarea, +.page-add-comment .reply-textarea, +.page-view-comments .reply-textarea, +.container-edit-comment .reply-textarea, +.container-add-reply .reply-textarea { margin-top: 10px; background: transparent; border: none; outline: none; width: 100%; min-height: 200px; + font-size: 15px; } .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; } +.container-edit-comment .navbar { + background-color: #FFFFFF; +} .container-view-comment { -webkit-transition: height 100ms; transition: height 100ms; @@ -6576,8 +6635,52 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } +.container-view-comment .page-view-comments { + background-color: #FFFFFF; +} +.container-view-comment .page-view-comments .list-block { + margin-bottom: 100px; +} +.container-view-comment .page-view-comments .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after { + content: none; +} +.container-view-comment .page-view-comments .list-block .item-inner { + padding: 0; +} +.container-view-comment .page-view-comments .list-block .item-inner .header-comment { + display: flex; + justify-content: space-between; + padding-right: 16px; +} +.container-view-comment .page-view-comments .list-block .item-inner .header-comment .comment-right { + display: flex; + justify-content: space-between; + width: 70px; +} .container-view-comment .toolbar { position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .toolbar:before { + content: none; +} +.container-view-comment .toolbar .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; +} +.container-view-comment .toolbar .toolbar-inner .button-left { + min-width: 80px; +} +.container-view-comment .toolbar .toolbar-inner .button-right { + min-width: 62px; + display: flex; + justify-content: space-between; +} +.container-view-comment .toolbar .toolbar-inner .button-right a { + padding: 0 8px; } .container-view-comment .swipe-container { display: flex; @@ -6591,18 +6694,50 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after background: rgba(0, 0, 0, 0.12); border-radius: 2px; } -.container-view-comment .page-content { - padding: 0 16px 80px; +.container-view-comment .list-block { + margin-top: 0; } .container-view-add-comment { height: 100%; } +.container-view-add-comment .navbar { + background-color: #FFFFFF; +} .container-view-add-comment .navbar a.link i + span { margin-left: 0; } .container-view-add-comment .page-add-comment { background-color: #FFFFFF; } +.container-view-add-comment .page-add-comment .page-content { + padding: 0 16px 80px; +} +.container-add-reply { + height: 100%; +} +.container-add-reply .navbar { + background-color: #FFFFFF; +} +.container-add-reply .navbar a.link i + span { + margin-left: 0; +} +.icon-arrow-comment { + border: solid black; + border-width: 0 2px 2px 0; + border-color: #446995; + height: 12px; + width: 12px; + display: inline-block; + padding: 0; +} +.icon-arrow-comment.right { + transform: rotate(-45deg); + -webkit-transform: rotate(-45deg); +} +.icon-arrow-comment.left { + transform: rotate(135deg); + -webkit-transform: rotate(135deg); +} .tablet .searchbar.document.replace .center .searchbar:first-child { margin-right: 10px; } @@ -7144,6 +7279,21 @@ i.icon.icon-paste { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%202H0V20H9V24H24V7H19V2H14V3H18V7H9V19H1V3H5V2ZM10%208H23V23H10V8Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M5%200H14V5H5V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2012H12V11H21V12Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2016H12V15H21V16Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2020H12V19H21V20Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-menu-comment { + width: 30px; + height: 30px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M10%2015C10%2016.6569%208.65685%2018%207%2018C5.34315%2018%204%2016.6569%204%2015C4%2013.3431%205.34315%2012%207%2012C8.65685%2012%2010%2013.3431%2010%2015ZM7%2016.7143C7.94677%2016.7143%208.71429%2015.9468%208.71429%2015C8.71429%2014.0532%207.94677%2013.2857%207%2013.2857C6.05323%2013.2857%205.28571%2014.0532%205.28571%2015C5.28571%2015.9468%206.05323%2016.7143%207%2016.7143Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18%2015C18%2016.6569%2016.6569%2018%2015%2018C13.3431%2018%2012%2016.6569%2012%2015C12%2013.3431%2013.3431%2012%2015%2012C16.6569%2012%2018%2013.3431%2018%2015ZM15%2016.7143C15.9468%2016.7143%2016.7143%2015.9468%2016.7143%2015C16.7143%2014.0532%2015.9468%2013.2857%2015%2013.2857C14.0532%2013.2857%2013.2857%2014.0532%2013.2857%2015C13.2857%2015.9468%2014.0532%2016.7143%2015%2016.7143Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M26%2015C26%2016.6569%2024.6569%2018%2023%2018C21.3431%2018%2020%2016.6569%2020%2015C20%2013.3431%2021.3431%2012%2023%2012C24.6569%2012%2026%2013.3431%2026%2015ZM23%2016.7143C23.9468%2016.7143%2024.7143%2015.9468%2024.7143%2015C24.7143%2014.0532%2023.9468%2013.2857%2023%2013.2857C22.0532%2013.2857%2021.2857%2014.0532%2021.2857%2015C21.2857%2015.9468%2022.0532%2016.7143%2023%2016.7143Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment { + width: 30px; + height: 30px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.6195%2020.8555C11.8237%2021.0673%2012.1658%2021.0577%2012.358%2020.8349L22.516%209.05783C22.7843%208.74676%2022.7528%208.27781%2022.4453%208.00545C22.1315%207.72756%2021.651%207.7604%2021.3779%208.07839L12.3546%2018.587C12.1638%2018.8092%2011.8238%2018.8206%2011.6186%2018.6117L8.10643%2015.0366C7.81574%2014.7407%207.34084%2014.7345%207.04258%2015.0228C6.74283%2015.3125%206.73444%2015.7903%207.02383%2016.0904L11.6195%2020.8555Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment.check { + width: 30px; + height: 30px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200H30V30H0V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.6195%2020.8555C11.8237%2021.0673%2012.1658%2021.0577%2012.358%2020.8349L22.516%209.05783C22.7843%208.74676%2022.7528%208.27781%2022.4453%208.00545V8.00545C22.1315%207.72756%2021.651%207.7604%2021.3779%208.07839L12.3546%2018.587C12.1638%2018.8092%2011.8238%2018.8206%2011.6186%2018.6117L8.10643%2015.0366C7.81575%2014.7407%207.34084%2014.7345%207.04258%2015.0228V15.0228C6.74283%2015.3125%206.73444%2015.7903%207.02383%2016.0904L11.6195%2020.8555Z%22%20fill%3D%22%235B9F27%22%2F%3E%3C%2Fsvg%3E"); +} .label-switch input[type="checkbox"]:checked + .checkbox { background: #446995; } diff --git a/apps/documenteditor/mobile/resources/less/ios/_icons.less b/apps/documenteditor/mobile/resources/less/ios/_icons.less index b5c848064..1fb110579 100644 --- a/apps/documenteditor/mobile/resources/less/ios/_icons.less +++ b/apps/documenteditor/mobile/resources/less/ios/_icons.less @@ -476,4 +476,21 @@ i.icon { height: 24px; .encoded-svg-background(''); } + + //comments + &.icon-menu-comment { + width: 30px; + height: 30px; + .encoded-svg-background(''); + } + &.icon-resolve-comment { + width: 30px; + height: 30px; + .encoded-svg-background(''); + } + &.icon-resolve-comment.check { + width: 30px; + height: 30px; + .encoded-svg-background(''); + } } \ No newline at end of file diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index fa01a7fef..3052c79ac 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -6480,17 +6480,27 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after content: none; } .page-comments .list-block .item-inner, -.page-add-comment .list-block .item-inner { +.page-add-comment .list-block .item-inner, +.page-view-comments .list-block .item-inner, +.container-edit-comment .list-block .item-inner, +.container-add-reply .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } .page-comments p, -.page-add-comment p { +.page-add-comment p, +.page-view-comments p, +.container-edit-comment p, +.container-add-reply p { margin: 0; + word-break: break-word; } .page-comments .user-name, -.page-add-comment .user-name { +.page-add-comment .user-name, +.page-view-comments .user-name, +.container-edit-comment .user-name, +.container-add-reply .user-name { font-size: 17px; line-height: 22px; color: #000000; @@ -6499,8 +6509,14 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after } .page-comments .comment-date, .page-add-comment .comment-date, +.page-view-comments .comment-date, +.container-edit-comment .comment-date, +.container-add-reply .comment-date, .page-comments .reply-date, -.page-add-comment .reply-date { +.page-add-comment .reply-date, +.page-view-comments .reply-date, +.container-edit-comment .reply-date, +.container-add-reply .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6509,8 +6525,14 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after } .page-comments .comment-text, .page-add-comment .comment-text, +.page-view-comments .comment-text, +.container-edit-comment .comment-text, +.container-add-reply .comment-text, .page-comments .reply-text, -.page-add-comment .reply-text { +.page-add-comment .reply-text, +.page-view-comments .reply-text, +.container-edit-comment .reply-text, +.container-add-reply .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6519,15 +6541,34 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after padding-right: 15px; } .page-comments .reply-item, -.page-add-comment .reply-item { +.page-add-comment .reply-item, +.page-view-comments .reply-item, +.container-edit-comment .reply-item, +.container-add-reply .reply-item { margin-top: 15px; + padding-right: 16px; + padding-top: 13px; +} +.page-comments .reply-item .header-reply, +.page-add-comment .reply-item .header-reply, +.page-view-comments .reply-item .header-reply, +.container-edit-comment .reply-item .header-reply, +.container-add-reply .reply-item .header-reply { + display: flex; + justify-content: space-between; } .page-comments .reply-item .user-name, -.page-add-comment .reply-item .user-name { - padding-top: 16px; +.page-add-comment .reply-item .user-name, +.page-view-comments .reply-item .user-name, +.container-edit-comment .reply-item .user-name, +.container-add-reply .reply-item .user-name { + padding-top: 3px; } .page-comments .reply-item:before, -.page-add-comment .reply-item:before { +.page-add-comment .reply-item:before, +.page-view-comments .reply-item:before, +.container-edit-comment .reply-item:before, +.container-add-reply .reply-item:before { content: ''; position: absolute; left: auto; @@ -6543,7 +6584,10 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after transform-origin: 50% 100%; } .page-comments .comment-quote, -.page-add-comment .comment-quote { +.page-add-comment .comment-quote, +.page-view-comments .comment-quote, +.container-edit-comment .comment-quote, +.container-add-reply .comment-quote { color: #aa5252; border-left: 1px solid #aa5252; padding-left: 10px; @@ -6551,22 +6595,37 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-size: 15px; } .page-comments .wrap-comment, -.page-add-comment .wrap-comment { +.page-add-comment .wrap-comment, +.page-view-comments .wrap-comment, +.container-edit-comment .wrap-comment, +.container-add-reply .wrap-comment { padding: 16px 16px 0 16px; } .page-comments .comment-textarea, -.page-add-comment .comment-textarea { +.page-add-comment .comment-textarea, +.page-view-comments .comment-textarea, +.container-edit-comment .comment-textarea, +.container-add-reply .comment-textarea, +.page-comments .reply-textarea, +.page-add-comment .reply-textarea, +.page-view-comments .reply-textarea, +.container-edit-comment .reply-textarea, +.container-add-reply .reply-textarea { margin-top: 10px; background: transparent; border: none; outline: none; width: 100%; min-height: 200px; + font-size: 15px; } .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; } +.container-edit-comment .navbar { + background-color: #FFFFFF; +} .container-view-comment { -webkit-transition: height 100ms; transition: height 100ms; @@ -6576,8 +6635,52 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } +.container-view-comment .page-view-comments { + background-color: #FFFFFF; +} +.container-view-comment .page-view-comments .list-block { + margin-bottom: 100px; +} +.container-view-comment .page-view-comments .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after { + content: none; +} +.container-view-comment .page-view-comments .list-block .item-inner { + padding: 0; +} +.container-view-comment .page-view-comments .list-block .item-inner .header-comment { + display: flex; + justify-content: space-between; + padding-right: 16px; +} +.container-view-comment .page-view-comments .list-block .item-inner .header-comment .comment-right { + display: flex; + justify-content: space-between; + width: 70px; +} .container-view-comment .toolbar { position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .toolbar:before { + content: none; +} +.container-view-comment .toolbar .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; +} +.container-view-comment .toolbar .toolbar-inner .button-left { + min-width: 80px; +} +.container-view-comment .toolbar .toolbar-inner .button-right { + min-width: 62px; + display: flex; + justify-content: space-between; +} +.container-view-comment .toolbar .toolbar-inner .button-right a { + padding: 0 8px; } .container-view-comment .swipe-container { display: flex; @@ -6591,18 +6694,50 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after background: rgba(0, 0, 0, 0.12); border-radius: 2px; } -.container-view-comment .page-content { - padding: 0 16px 80px; +.container-view-comment .list-block { + margin-top: 0; } .container-view-add-comment { height: 100%; } +.container-view-add-comment .navbar { + background-color: #FFFFFF; +} .container-view-add-comment .navbar a.link i + span { margin-left: 0; } .container-view-add-comment .page-add-comment { background-color: #FFFFFF; } +.container-view-add-comment .page-add-comment .page-content { + padding: 0 16px 80px; +} +.container-add-reply { + height: 100%; +} +.container-add-reply .navbar { + background-color: #FFFFFF; +} +.container-add-reply .navbar a.link i + span { + margin-left: 0; +} +.icon-arrow-comment { + border: solid black; + border-width: 0 2px 2px 0; + border-color: #aa5252; + height: 12px; + width: 12px; + display: inline-block; + padding: 0; +} +.icon-arrow-comment.right { + transform: rotate(-45deg); + -webkit-transform: rotate(-45deg); +} +.icon-arrow-comment.left { + transform: rotate(135deg); + -webkit-transform: rotate(135deg); +} .tablet .searchbar.document.replace .center .searchbar:first-child { margin-right: 10px; } diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index 96e6cb262..6d965e8e9 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -6480,17 +6480,27 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after content: none; } .page-comments .list-block .item-inner, -.page-add-comment .list-block .item-inner { +.page-add-comment .list-block .item-inner, +.page-view-comments .list-block .item-inner, +.container-edit-comment .list-block .item-inner, +.container-add-reply .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } .page-comments p, -.page-add-comment p { +.page-add-comment p, +.page-view-comments p, +.container-edit-comment p, +.container-add-reply p { margin: 0; + word-break: break-word; } .page-comments .user-name, -.page-add-comment .user-name { +.page-add-comment .user-name, +.page-view-comments .user-name, +.container-edit-comment .user-name, +.container-add-reply .user-name { font-size: 17px; line-height: 22px; color: #000000; @@ -6499,8 +6509,14 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after } .page-comments .comment-date, .page-add-comment .comment-date, +.page-view-comments .comment-date, +.container-edit-comment .comment-date, +.container-add-reply .comment-date, .page-comments .reply-date, -.page-add-comment .reply-date { +.page-add-comment .reply-date, +.page-view-comments .reply-date, +.container-edit-comment .reply-date, +.container-add-reply .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6509,8 +6525,14 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after } .page-comments .comment-text, .page-add-comment .comment-text, +.page-view-comments .comment-text, +.container-edit-comment .comment-text, +.container-add-reply .comment-text, .page-comments .reply-text, -.page-add-comment .reply-text { +.page-add-comment .reply-text, +.page-view-comments .reply-text, +.container-edit-comment .reply-text, +.container-add-reply .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6519,15 +6541,34 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after padding-right: 15px; } .page-comments .reply-item, -.page-add-comment .reply-item { +.page-add-comment .reply-item, +.page-view-comments .reply-item, +.container-edit-comment .reply-item, +.container-add-reply .reply-item { margin-top: 15px; + padding-right: 16px; + padding-top: 13px; +} +.page-comments .reply-item .header-reply, +.page-add-comment .reply-item .header-reply, +.page-view-comments .reply-item .header-reply, +.container-edit-comment .reply-item .header-reply, +.container-add-reply .reply-item .header-reply { + display: flex; + justify-content: space-between; } .page-comments .reply-item .user-name, -.page-add-comment .reply-item .user-name { - padding-top: 16px; +.page-add-comment .reply-item .user-name, +.page-view-comments .reply-item .user-name, +.container-edit-comment .reply-item .user-name, +.container-add-reply .reply-item .user-name { + padding-top: 3px; } .page-comments .reply-item:before, -.page-add-comment .reply-item:before { +.page-add-comment .reply-item:before, +.page-view-comments .reply-item:before, +.container-edit-comment .reply-item:before, +.container-add-reply .reply-item:before { content: ''; position: absolute; left: auto; @@ -6543,7 +6584,10 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after transform-origin: 50% 100%; } .page-comments .comment-quote, -.page-add-comment .comment-quote { +.page-add-comment .comment-quote, +.page-view-comments .comment-quote, +.container-edit-comment .comment-quote, +.container-add-reply .comment-quote { color: #40865c; border-left: 1px solid #40865c; padding-left: 10px; @@ -6551,22 +6595,37 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-size: 15px; } .page-comments .wrap-comment, -.page-add-comment .wrap-comment { +.page-add-comment .wrap-comment, +.page-view-comments .wrap-comment, +.container-edit-comment .wrap-comment, +.container-add-reply .wrap-comment { padding: 16px 16px 0 16px; } .page-comments .comment-textarea, -.page-add-comment .comment-textarea { +.page-add-comment .comment-textarea, +.page-view-comments .comment-textarea, +.container-edit-comment .comment-textarea, +.container-add-reply .comment-textarea, +.page-comments .reply-textarea, +.page-add-comment .reply-textarea, +.page-view-comments .reply-textarea, +.container-edit-comment .reply-textarea, +.container-add-reply .reply-textarea { margin-top: 10px; background: transparent; border: none; outline: none; width: 100%; min-height: 200px; + font-size: 15px; } .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; } +.container-edit-comment .navbar { + background-color: #FFFFFF; +} .container-view-comment { -webkit-transition: height 100ms; transition: height 100ms; @@ -6576,8 +6635,52 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } +.container-view-comment .page-view-comments { + background-color: #FFFFFF; +} +.container-view-comment .page-view-comments .list-block { + margin-bottom: 100px; +} +.container-view-comment .page-view-comments .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after { + content: none; +} +.container-view-comment .page-view-comments .list-block .item-inner { + padding: 0; +} +.container-view-comment .page-view-comments .list-block .item-inner .header-comment { + display: flex; + justify-content: space-between; + padding-right: 16px; +} +.container-view-comment .page-view-comments .list-block .item-inner .header-comment .comment-right { + display: flex; + justify-content: space-between; + width: 70px; +} .container-view-comment .toolbar { position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .toolbar:before { + content: none; +} +.container-view-comment .toolbar .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; +} +.container-view-comment .toolbar .toolbar-inner .button-left { + min-width: 80px; +} +.container-view-comment .toolbar .toolbar-inner .button-right { + min-width: 62px; + display: flex; + justify-content: space-between; +} +.container-view-comment .toolbar .toolbar-inner .button-right a { + padding: 0 8px; } .container-view-comment .swipe-container { display: flex; @@ -6591,18 +6694,50 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after background: rgba(0, 0, 0, 0.12); border-radius: 2px; } -.container-view-comment .page-content { - padding: 0 16px 80px; +.container-view-comment .list-block { + margin-top: 0; } .container-view-add-comment { height: 100%; } +.container-view-add-comment .navbar { + background-color: #FFFFFF; +} .container-view-add-comment .navbar a.link i + span { margin-left: 0; } .container-view-add-comment .page-add-comment { background-color: #FFFFFF; } +.container-view-add-comment .page-add-comment .page-content { + padding: 0 16px 80px; +} +.container-add-reply { + height: 100%; +} +.container-add-reply .navbar { + background-color: #FFFFFF; +} +.container-add-reply .navbar a.link i + span { + margin-left: 0; +} +.icon-arrow-comment { + border: solid black; + border-width: 0 2px 2px 0; + border-color: #40865c; + height: 12px; + width: 12px; + display: inline-block; + padding: 0; +} +.icon-arrow-comment.right { + transform: rotate(-45deg); + -webkit-transform: rotate(-45deg); +} +.icon-arrow-comment.left { + transform: rotate(135deg); + -webkit-transform: rotate(135deg); +} i.icon.icon-search { width: 24px; height: 24px; From a98b2892bb300601e6548a67a44fe0a5d29556c9 Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Thu, 19 Mar 2020 09:12:18 +0300 Subject: [PATCH 04/72] [de mobile] comments (add style for android) --- .../mobile/lib/controller/Collaboration.js | 159 ++++++-- apps/common/mobile/lib/view/Collaboration.js | 27 +- .../resources/less/ios/_collaboration.less | 12 +- .../less/material/_collaboration.less | 217 ++++++++++- .../mobile/resources/css/app-ios.css | 13 +- .../mobile/resources/css/app-material.css | 361 ++++++++++++++++-- .../mobile/resources/less/ios/_icons.less | 2 +- .../resources/less/material/_icons.less | 35 ++ .../mobile/resources/css/app-ios.css | 11 +- .../mobile/resources/css/app-material.css | 326 ++++++++++++++-- .../mobile/resources/css/app-ios.css | 11 +- .../mobile/resources/css/app-material.css | 326 ++++++++++++++-- 12 files changed, 1353 insertions(+), 147 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index efd3be179..4c53dd461 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -223,7 +223,7 @@ define([ editUsers = users; }, - initEditUsers: function() { + getUsersInfo: function() { var usersArray = []; _.each(editUsers, function(item){ var fio = item.asc_getUserName().split(' '); @@ -248,6 +248,11 @@ define([ } }); var userSort = _.chain(usersArray).groupBy('idOriginal').value(); + return userSort; + }, + + initEditUsers: function() { + var users = this.getUsersInfo(); var templateUserItem = _.template([ '<% _.each(users, function (user) { %>', '
  • ' + @@ -263,7 +268,7 @@ define([ this.textEditUser + '' + '
      ' + - templateUserItem({users: userSort}) + + templateUserItem({users: users}) + '
    '); $('#user-list').html(templateUserList()); }, @@ -680,6 +685,14 @@ define([ }, //Comments + getInitials: function(name) { + var fio = name.split(' '); + var initials = fio[0].substring(0, 1).toUpperCase(); + if (fio.length > 1) { + initials += fio[fio.length - 1].substring(0, 1).toUpperCase(); + } + return initials; + }, findComment: function(uid) { var comment; @@ -738,14 +751,14 @@ define([ '
    ' + '
    ' + '
    ' + - '
    ' + + '
    ' + '
    ' + '' + '
    ' + - '' + - '' + + '' + + '' + '
    ' + '
    ' + '
    ' + @@ -781,25 +794,46 @@ define([ $swipeContainer.single('touchstart', _.bind(function(e){ var touchobj = e.changedTouches[0]; me.swipeStart = parseInt(touchobj.clientY); + me.swipeChange = parseInt(touchobj.clientY); + me.swipeHeight = parseInt($('.container-view-comment').css('height')); + e.preventDefault(); + }, me)); + $swipeContainer.single('touchmove', _.bind(function(e){ + var touchobj = e.changedTouches[0]; + var dist = parseInt(touchobj.clientY) - me.swipeStart; + var newHeight; + if (dist < 0) { + newHeight = '100%'; + me.swipeFull = true; + me.closeCommentPicker = false; + $('.container-view-comment').css('opacity', '1'); + } else if (dist < 100) { + newHeight = '50%'; + me.swipeFull = false; + me.closeCommentPicker = false; + $('.container-view-comment').css('opacity', '1'); + } else { + me.closeCommentPicker = true; + $('.container-view-comment').css('opacity', '0.6'); + } + $('.container-view-comment').css('height', newHeight); + me.swipeHeight = newHeight; e.preventDefault(); }, me)); $swipeContainer.single('touchend', _.bind(function (e) { var touchobj = e.changedTouches[0]; var swipeEnd = parseInt(touchobj.clientY); var dist = swipeEnd - me.swipeStart; - if (dist > 20) { - if (me.swipeFull) { + if (me.closeCommentPicker) { + uiApp.closeModal(); + } else if (me.swipeFull) { + if (dist > 20) { $('.container-view-comment').css('height', '50%'); - me.swipeFull = false; - } else { - uiApp.closeModal(); } - } else if (dist < 0) { - $('.container-view-comment').css('height', '100%'); - me.swipeFull = true; - } else { - $('.container-view-comment').css('height', '50%'); } + me.swipeHeight = undefined; + me.swipeChange = undefined; + me.closeCommentPicker = undefined; }, me)); $('.prev-comment').single('click', _.bind(me.onViewPrevComment, me)); @@ -808,6 +842,21 @@ define([ $('.add-reply').single('click', _.bind(me.onClickAddReply, me)); $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me)); + + me.updateDisabledCommentArrow(); + }, + + updateDisabledCommentArrow: function() { + if (this.indexCurrentComment === 0) { + $('.prev-comment').addClass('disabled'); + } else { + $('.prev-comment').removeClass('disabled'); + } + if (this.indexCurrentComment + 1 === this.showComments.length) { + $('.next-comment').addClass('disabled'); + } else { + $('.next-comment').removeClass('disabled'); + } }, onViewPrevComment: function() { @@ -817,6 +866,7 @@ define([ $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this)); + this.updateDisabledCommentArrow(); } }, @@ -827,11 +877,13 @@ define([ $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this)); + this.updateDisabledCommentArrow(); } }, onClickAddReply: function() { var me = this; + var isAndroid = Framework7.prototype.device.android === true; if (this.indexCurrentComment > -1 && this.indexCurrentComment < this.showComments.length) { var addReplyView, comment = this.showComments[this.indexCurrentComment]; @@ -840,16 +892,24 @@ define([ '' ); $('.popup').css('z-index', '20000'); @@ -953,25 +1013,28 @@ define([ date: me.dateToLocaleTimeString(date), userid: _userId, username: me.currentUser.asc_getUserName(), - usercolor: me.currentUser.asc_getColor() + usercolor: me.currentUser.asc_getColor(), + userInitials: me.getInitials(me.currentUser.asc_getUserName()) }; if (Common.SharedSettings.get('phone')) { - modalView = $$(uiApp.pickerModal( - '
    ' + + modalView = $$(uiApp.popup( + '
  • ' + '
    ' + - '
    ' + - '

    ' + comment.username + '

    ' + + '
    '; + if (isAndroid) { + template += '
    ' + comment.userInitials + '
    '; + } + template += '

    ' + comment.username + '

    ' + '

    ' + comment.date + '

    '; - if (comment.quote) template += '

    ' + comment.quote + '

    '; + if (isAndroid) { + template += '
    '; + } template += '
    '; template += '
    ' + '
    ' + @@ -168,17 +174,24 @@ define([ '
    ' + '
    '; + if (comment.quote) template += '

    ' + comment.quote + '

    '; template += '

    ' + comment.comment + '

    '; if (comment.replys.length > 0) { template += '
      '; _.each(comment.replys, function (reply) { template += '
    • ' + '
      ' + - '
      ' + - '

      ' + reply.username + '

      ' + + '
      '; + if (isAndroid) { + template += '
      ' + reply.userInitials + '
      ' + } + template += '

      ' + reply.username + '

      ' + '

      ' + reply.date + '

      ' + - '
      ' + - '
      ' + + '
      '; + if (isAndroid) { + template += '
      '; + } + template += '
      ' + '
      ' + '

      ' + reply.reply + '

      ' + '
    • '; diff --git a/apps/common/mobile/resources/less/ios/_collaboration.less b/apps/common/mobile/resources/less/ios/_collaboration.less index 5fd698055..68bebd264 100644 --- a/apps/common/mobile/resources/less/ios/_collaboration.less +++ b/apps/common/mobile/resources/less/ios/_collaboration.less @@ -180,12 +180,15 @@ .navbar { background-color: #FFFFFF; } + .page { + background-color: #FFFFFF; + } } //view comment .container-view-comment { -webkit-transition: height 100ms; - transition: height 100ms; + transition: height 120ms; background-color: #FFFFFF; border-top-left-radius: 4px; border-top-right-radius: 4px; @@ -279,6 +282,9 @@ margin-left: 0; } } + .page { + background-color: #FFFFFF; + } } .icon-arrow-comment { @@ -299,3 +305,7 @@ -webkit-transform: rotate(135deg); } } + +.actions-modal-button.color-red { + color: @red; +} diff --git a/apps/common/mobile/resources/less/material/_collaboration.less b/apps/common/mobile/resources/less/material/_collaboration.less index ea3cdf0f0..7760211d6 100644 --- a/apps/common/mobile/resources/less/material/_collaboration.less +++ b/apps/common/mobile/resources/less/material/_collaboration.less @@ -89,9 +89,8 @@ } } - //Comments -.page-comments { +.page-comments, .page-add-comment, .page-view-comments, .container-edit-comment, .container-add-reply { .list-block .item-inner { display: block; padding: 16px 0; @@ -99,13 +98,13 @@ } p { margin: 0; + word-break: break-word; } .user-name { - font-size: 17px; + font-size: 16px; line-height: 22px; color: #000000; margin: 0; - font-weight: bold; } .comment-date, .reply-date { font-size: 12px; @@ -123,24 +122,14 @@ padding-right: 15px; } .reply-item { - margin-top: 15px; - .user-name { - padding-top: 16px; + padding-right: 16px; + padding-top: 13px; + .header-reply { + display: flex; + justify-content: space-between; } - &:before { - content: ''; - position: absolute; - left: auto; - bottom: 0; - right: auto; - top: 0; - height: 1px; - width: 100%; - background-color: @listBlockBorderColor; - display: block; - z-index: 15; - -webkit-transform-origin: 50% 100%; - transform-origin: 50% 100%; + .user-name { + padding-top: 3px; } } .comment-quote { @@ -150,7 +139,193 @@ margin: 5px 0; font-size: 15px; } + + .wrap-comment { + padding: 16px 0 0 0; + } + .comment-textarea, .reply-textarea { + margin-top: 10px; + background:transparent; + border:none; + outline:none; + width: 100%; + min-height: 200px; + font-size: 15px; + } + + .header-comment { + display: flex; + justify-content: space-between; + padding-right: 16px; + margin-bottom: 13px; + .comment-right { + display: flex; + justify-content: space-between; + width: 70px; + } + .comment-left { + display: flex; + justify-content: space-between; + } + .initials-comment { + height: 40px; + width: 40px; + border-radius: 50px; + color: #FFFFFF; + display: flex; + justify-content: center; + align-items: center; + margin-right: 16px; + font-size: 18px; + } + } + .header-reply { + .reply-left { + display: flex; + justify-content: space-between; + align-items: flex-start; + } + .initials-reply { + width: 24px; + height: 24px; + color: #FFFFFF; + font-size: 11px; + display: flex; + justify-content: center; + align-items: center; + margin-right: 16px; + border-radius: 50px; + margin-top: 5px; + } + } } .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; +} + +.container-edit-comment { + .navbar { + background-color: #FFFFFF; + color: @themeColor; + } +} + +//view comment +.container-view-comment { + -webkit-transition: height 100ms; + transition: height 100ms; + background-color: #FFFFFF; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + height: 50%; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + .page-view-comments { + background-color: #FFFFFF; + .list-block { + margin-bottom: 120px; + ul:before, ul:after { + content: none; + } + .item-inner { + padding: 0; + } + } + + } + .toolbar { + position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + &.toolbar-bottom { + top: auto; + } + &:before { + content: none; + } + a { + &.link { + color: @themeColor; + font-size: 16px; + } + } + .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; + .button-left { + min-width: 80px; + } + .button-right { + min-width: 62px; + display: flex; + justify-content: space-between; + a { + padding: 0 8px; + } + } + } + } + .swipe-container { + display: flex; + justify-content: center; + height: 40px; + .icon-swipe { + margin-top: 8px; + width: 40px; + height: 4px; + background: rgba(0, 0, 0, 0.12); + border-radius: 2px; + } + } + .list-block { + margin-top: 0; + } +} + +.container-view-add-comment, .container-edit-comment, .container-add-reply, container-edit-comment { + height: 100%; + .navbar { + background-color: #FFFFFF; + color: #000; + &:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #c4c4c4; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; + } + .navbar-inner { + justify-content: space-between; + } + a.link i + span { + margin-left: 0; + } + .center { + font-size: 18px; + } + .right { + margin-left: 0; + } + } + .page-add-comment { + background-color: #FFFFFF; + .page-content { + padding: 0 16px 80px; + } + } + .header-comment { + justify-content: flex-start; + } +} + +.actions-modal-button.color-red { + color: @red; } \ No newline at end of file diff --git a/apps/documenteditor/mobile/resources/css/app-ios.css b/apps/documenteditor/mobile/resources/css/app-ios.css index c5f043d0f..868b521d0 100644 --- a/apps/documenteditor/mobile/resources/css/app-ios.css +++ b/apps/documenteditor/mobile/resources/css/app-ios.css @@ -6626,9 +6626,12 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-edit-comment .navbar { background-color: #FFFFFF; } +.container-edit-comment .page { + background-color: #FFFFFF; +} .container-view-comment { -webkit-transition: height 100ms; - transition: height 100ms; + transition: height 120ms; background-color: #FFFFFF; border-top-left-radius: 4px; border-top-right-radius: 4px; @@ -6721,6 +6724,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-add-reply .navbar a.link i + span { margin-left: 0; } +.container-add-reply .page { + background-color: #FFFFFF; +} .icon-arrow-comment { border: solid black; border-width: 0 2px 2px 0; @@ -6738,6 +6744,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after transform: rotate(135deg); -webkit-transform: rotate(135deg); } +.actions-modal-button.color-red { + color: #ff3b30; +} .tablet .searchbar.document.replace .center .searchbar:first-child { margin-right: 10px; } @@ -7292,7 +7301,7 @@ i.icon.icon-resolve-comment { i.icon.icon-resolve-comment.check { width: 30px; height: 30px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200H30V30H0V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.6195%2020.8555C11.8237%2021.0673%2012.1658%2021.0577%2012.358%2020.8349L22.516%209.05783C22.7843%208.74676%2022.7528%208.27781%2022.4453%208.00545V8.00545C22.1315%207.72756%2021.651%207.7604%2021.3779%208.07839L12.3546%2018.587C12.1638%2018.8092%2011.8238%2018.8206%2011.6186%2018.6117L8.10643%2015.0366C7.81575%2014.7407%207.34084%2014.7345%207.04258%2015.0228V15.0228C6.74283%2015.3125%206.73444%2015.7903%207.02383%2016.0904L11.6195%2020.8555Z%22%20fill%3D%22%235B9F27%22%2F%3E%3C%2Fsvg%3E"); + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200H30V30H0V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.6195%2020.8555C11.8237%2021.0673%2012.1658%2021.0577%2012.358%2020.8349L22.516%209.05783C22.7843%208.74676%2022.7528%208.27781%2022.4453%208.00545V8.00545C22.1315%207.72756%2021.651%207.7604%2021.3779%208.07839L12.3546%2018.587C12.1638%2018.8092%2011.8238%2018.8206%2011.6186%2018.6117L8.10643%2015.0366C7.81575%2014.7407%207.34084%2014.7345%207.04258%2015.0228V15.0228C6.74283%2015.3125%206.73444%2015.7903%207.02383%2016.0904L11.6195%2020.8555Z%22%20fill%3D%22%234cd964%22%2F%3E%3C%2Fsvg%3E"); } .label-switch input[type="checkbox"]:checked + .checkbox { background: #446995; diff --git a/apps/documenteditor/mobile/resources/css/app-material.css b/apps/documenteditor/mobile/resources/css/app-material.css index 450682feb..ed009b11e 100644 --- a/apps/documenteditor/mobile/resources/css/app-material.css +++ b/apps/documenteditor/mobile/resources/css/app-material.css @@ -6064,23 +6064,43 @@ html.phone .document-menu .list-block .item-link { #user-list ul:before { content: none; } -.page-comments .list-block .item-inner { +.page-comments .list-block .item-inner, +.page-add-comment .list-block .item-inner, +.page-view-comments .list-block .item-inner, +.container-edit-comment .list-block .item-inner, +.container-add-reply .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } -.page-comments p { +.page-comments p, +.page-add-comment p, +.page-view-comments p, +.container-edit-comment p, +.container-add-reply p { margin: 0; + word-break: break-word; } -.page-comments .user-name { - font-size: 17px; +.page-comments .user-name, +.page-add-comment .user-name, +.page-view-comments .user-name, +.container-edit-comment .user-name, +.container-add-reply .user-name { + font-size: 16px; line-height: 22px; color: #000000; margin: 0; - font-weight: bold; } .page-comments .comment-date, -.page-comments .reply-date { +.page-add-comment .comment-date, +.page-view-comments .comment-date, +.container-edit-comment .comment-date, +.container-add-reply .comment-date, +.page-comments .reply-date, +.page-add-comment .reply-date, +.page-view-comments .reply-date, +.container-edit-comment .reply-date, +.container-add-reply .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6088,7 +6108,15 @@ html.phone .document-menu .list-block .item-link { margin-top: 0px; } .page-comments .comment-text, -.page-comments .reply-text { +.page-add-comment .comment-text, +.page-view-comments .comment-text, +.container-edit-comment .comment-text, +.container-add-reply .comment-text, +.page-comments .reply-text, +.page-add-comment .reply-text, +.page-view-comments .reply-text, +.container-edit-comment .reply-text, +.container-add-reply .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6096,38 +6124,284 @@ html.phone .document-menu .list-block .item-link { max-width: 100%; padding-right: 15px; } -.page-comments .reply-item { - margin-top: 15px; +.page-comments .reply-item, +.page-add-comment .reply-item, +.page-view-comments .reply-item, +.container-edit-comment .reply-item, +.container-add-reply .reply-item { + padding-right: 16px; + padding-top: 13px; } -.page-comments .reply-item .user-name { - padding-top: 16px; +.page-comments .reply-item .header-reply, +.page-add-comment .reply-item .header-reply, +.page-view-comments .reply-item .header-reply, +.container-edit-comment .reply-item .header-reply, +.container-add-reply .reply-item .header-reply { + display: flex; + justify-content: space-between; } -.page-comments .reply-item:before { - content: ''; - position: absolute; - left: auto; - bottom: 0; - right: auto; - top: 0; - height: 1px; - width: 100%; - background-color: rgba(0, 0, 0, 0.12); - display: block; - z-index: 15; - -webkit-transform-origin: 50% 100%; - transform-origin: 50% 100%; +.page-comments .reply-item .user-name, +.page-add-comment .reply-item .user-name, +.page-view-comments .reply-item .user-name, +.container-edit-comment .reply-item .user-name, +.container-add-reply .reply-item .user-name { + padding-top: 3px; } -.page-comments .comment-quote { +.page-comments .comment-quote, +.page-add-comment .comment-quote, +.page-view-comments .comment-quote, +.container-edit-comment .comment-quote, +.container-add-reply .comment-quote { color: #446995; border-left: 1px solid #446995; padding-left: 10px; margin: 5px 0; font-size: 15px; } +.page-comments .wrap-comment, +.page-add-comment .wrap-comment, +.page-view-comments .wrap-comment, +.container-edit-comment .wrap-comment, +.container-add-reply .wrap-comment { + padding: 16px 0 0 0; +} +.page-comments .comment-textarea, +.page-add-comment .comment-textarea, +.page-view-comments .comment-textarea, +.container-edit-comment .comment-textarea, +.container-add-reply .comment-textarea, +.page-comments .reply-textarea, +.page-add-comment .reply-textarea, +.page-view-comments .reply-textarea, +.container-edit-comment .reply-textarea, +.container-add-reply .reply-textarea { + margin-top: 10px; + background: transparent; + border: none; + outline: none; + width: 100%; + min-height: 200px; + font-size: 15px; +} +.page-comments .header-comment, +.page-add-comment .header-comment, +.page-view-comments .header-comment, +.container-edit-comment .header-comment, +.container-add-reply .header-comment { + display: flex; + justify-content: space-between; + padding-right: 16px; + margin-bottom: 13px; +} +.page-comments .header-comment .comment-right, +.page-add-comment .header-comment .comment-right, +.page-view-comments .header-comment .comment-right, +.container-edit-comment .header-comment .comment-right, +.container-add-reply .header-comment .comment-right { + display: flex; + justify-content: space-between; + width: 70px; +} +.page-comments .header-comment .comment-left, +.page-add-comment .header-comment .comment-left, +.page-view-comments .header-comment .comment-left, +.container-edit-comment .header-comment .comment-left, +.container-add-reply .header-comment .comment-left { + display: flex; + justify-content: space-between; +} +.page-comments .header-comment .initials-comment, +.page-add-comment .header-comment .initials-comment, +.page-view-comments .header-comment .initials-comment, +.container-edit-comment .header-comment .initials-comment, +.container-add-reply .header-comment .initials-comment { + height: 40px; + width: 40px; + border-radius: 50px; + color: #FFFFFF; + display: flex; + justify-content: center; + align-items: center; + margin-right: 16px; + font-size: 18px; +} +.page-comments .header-reply .reply-left, +.page-add-comment .header-reply .reply-left, +.page-view-comments .header-reply .reply-left, +.container-edit-comment .header-reply .reply-left, +.container-add-reply .header-reply .reply-left { + display: flex; + justify-content: space-between; + align-items: flex-start; +} +.page-comments .header-reply .initials-reply, +.page-add-comment .header-reply .initials-reply, +.page-view-comments .header-reply .initials-reply, +.container-edit-comment .header-reply .initials-reply, +.container-add-reply .header-reply .initials-reply { + width: 24px; + height: 24px; + color: #FFFFFF; + font-size: 11px; + display: flex; + justify-content: center; + align-items: center; + margin-right: 16px; + border-radius: 50px; + margin-top: 5px; +} .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; } +.container-edit-comment .navbar { + background-color: #FFFFFF; + color: #446995; +} +.container-view-comment { + -webkit-transition: height 100ms; + transition: height 100ms; + background-color: #FFFFFF; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + height: 50%; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .page-view-comments { + background-color: #FFFFFF; +} +.container-view-comment .page-view-comments .list-block { + margin-bottom: 120px; +} +.container-view-comment .page-view-comments .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after { + content: none; +} +.container-view-comment .page-view-comments .list-block .item-inner { + padding: 0; +} +.container-view-comment .toolbar { + position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .toolbar.toolbar-bottom { + top: auto; +} +.container-view-comment .toolbar:before { + content: none; +} +.container-view-comment .toolbar a.link { + color: #446995; + font-size: 16px; +} +.container-view-comment .toolbar .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; +} +.container-view-comment .toolbar .toolbar-inner .button-left { + min-width: 80px; +} +.container-view-comment .toolbar .toolbar-inner .button-right { + min-width: 62px; + display: flex; + justify-content: space-between; +} +.container-view-comment .toolbar .toolbar-inner .button-right a { + padding: 0 8px; +} +.container-view-comment .swipe-container { + display: flex; + justify-content: center; + height: 40px; +} +.container-view-comment .swipe-container .icon-swipe { + margin-top: 8px; + width: 40px; + height: 4px; + background: rgba(0, 0, 0, 0.12); + border-radius: 2px; +} +.container-view-comment .list-block { + margin-top: 0; +} +.container-view-add-comment, +.container-edit-comment, +.container-add-reply, +container-edit-comment { + height: 100%; +} +.container-view-add-comment .navbar, +.container-edit-comment .navbar, +.container-add-reply .navbar, +container-edit-comment .navbar { + background-color: #FFFFFF; + color: #000; +} +.container-view-add-comment .navbar:after, +.container-edit-comment .navbar:after, +.container-add-reply .navbar:after, +container-edit-comment .navbar:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #c4c4c4; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +.container-view-add-comment .navbar .navbar-inner, +.container-edit-comment .navbar .navbar-inner, +.container-add-reply .navbar .navbar-inner, +container-edit-comment .navbar .navbar-inner { + justify-content: space-between; +} +.container-view-add-comment .navbar a.link i + span, +.container-edit-comment .navbar a.link i + span, +.container-add-reply .navbar a.link i + span, +container-edit-comment .navbar a.link i + span { + margin-left: 0; +} +.container-view-add-comment .navbar .center, +.container-edit-comment .navbar .center, +.container-add-reply .navbar .center, +container-edit-comment .navbar .center { + font-size: 18px; +} +.container-view-add-comment .navbar .right, +.container-edit-comment .navbar .right, +.container-add-reply .navbar .right, +container-edit-comment .navbar .right { + margin-left: 0; +} +.container-view-add-comment .page-add-comment, +.container-edit-comment .page-add-comment, +.container-add-reply .page-add-comment, +container-edit-comment .page-add-comment { + background-color: #FFFFFF; +} +.container-view-add-comment .page-add-comment .page-content, +.container-edit-comment .page-add-comment .page-content, +.container-add-reply .page-add-comment .page-content, +container-edit-comment .page-add-comment .page-content { + padding: 0 16px 80px; +} +.container-view-add-comment .header-comment, +.container-edit-comment .header-comment, +.container-add-reply .header-comment, +container-edit-comment .header-comment { + justify-content: flex-start; +} +.actions-modal-button.color-red { + color: #f44336; +} .tablet .searchbar.document.replace .center > .replace { display: flex; } @@ -6564,6 +6838,41 @@ i.icon.icon-paste { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%202H0V20H9V24H24V7H19V2H14V3H18V7H9V19H1V3H5V2ZM10%208H23V23H10V8Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20d%3D%22M5%200H14V5H5V0Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2012H12V11H21V12Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2016H12V15H21V16Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2020H12V19H21V20Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-menu-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M16.6047%2016.5848C17.0078%2016.1793%2017.4729%2015.9766%2018%2015.9766C18.5271%2015.9766%2018.9922%2016.1793%2019.3953%2016.5848C19.7984%2016.9903%2020%2017.4581%2020%2017.9883C20%2018.5185%2019.7984%2018.9864%2019.3953%2019.3918C18.9922%2019.7973%2018.5271%2020%2018%2020C17.4729%2020%2017.0078%2019.7973%2016.6047%2019.3918C16.2016%2018.9864%2016%2018.5185%2016%2017.9883C16%2017.4581%2016.2016%2016.9903%2016.6047%2016.5848ZM16.6047%2010.5965C17.0078%2010.191%2017.4729%209.9883%2018%209.9883C18.5271%209.9883%2018.9922%2010.191%2019.3953%2010.5965C19.7984%2011.0019%2020%2011.4698%2020%2012C20%2012.5302%2019.7984%2012.9981%2019.3953%2013.4035C18.9922%2013.809%2018.5271%2014.0117%2018%2014.0117C17.4729%2014.0117%2017.0078%2013.809%2016.6047%2013.4035C16.2016%2012.9981%2016%2012.5302%2016%2012C16%2011.4698%2016.2016%2011.0019%2016.6047%2010.5965ZM19.3953%207.4152C18.9922%207.82066%2018.5271%208.02339%2018%208.02339C17.4729%208.02339%2017.0078%207.82066%2016.6047%207.4152C16.2016%207.00975%2016%206.54191%2016%206.0117C16%205.48148%2016.2016%205.01365%2016.6047%204.60819C17.0078%204.20273%2017.4729%204%2018%204C18.5271%204%2018.9922%204.20273%2019.3953%204.60819C19.7984%205.01365%2020%205.48148%2020%206.0117C20%206.54191%2019.7984%207.00975%2019.3953%207.4152Z%22%20fill%3D%22black%22%20fill-opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22black%22%20fill-opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment.check { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%2340865C%22%20fill-opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-arrow-comment.left { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M15.4219%207.40625L10.8281%2012L15.4219%2016.5938L14.0156%2018L8.01562%2012L14.0156%206L15.4219%207.40625Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-arrow-comment.right { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9.98438%206L15.9844%2012L9.98438%2018L8.57812%2016.5938L13.1719%2012L8.57812%207.40625L9.98438%206Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-close-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9844%206.42188L13.4062%2012L18.9844%2017.5781L17.5781%2018.9844L12%2013.4062L6.42188%2018.9844L5.01562%2017.5781L10.5938%2012L5.01562%206.42188L6.42188%205.01562L12%2010.5938L17.5781%205.01562L18.9844%206.42188Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-done-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); +} .navbar i.icon.icon-undo { width: 22px; height: 22px; diff --git a/apps/documenteditor/mobile/resources/less/ios/_icons.less b/apps/documenteditor/mobile/resources/less/ios/_icons.less index 1fb110579..754b73559 100644 --- a/apps/documenteditor/mobile/resources/less/ios/_icons.less +++ b/apps/documenteditor/mobile/resources/less/ios/_icons.less @@ -491,6 +491,6 @@ i.icon { &.icon-resolve-comment.check { width: 30px; height: 30px; - .encoded-svg-background(''); + .encoded-svg-background(''); } } \ No newline at end of file diff --git a/apps/documenteditor/mobile/resources/less/material/_icons.less b/apps/documenteditor/mobile/resources/less/material/_icons.less index 681503ddb..4b5473bd6 100644 --- a/apps/documenteditor/mobile/resources/less/material/_icons.less +++ b/apps/documenteditor/mobile/resources/less/material/_icons.less @@ -404,6 +404,41 @@ i.icon { height: 24px; .encoded-svg-background(''); } + &.icon-menu-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-resolve-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-resolve-comment.check { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-arrow-comment.left { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-arrow-comment.right { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-close-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-done-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } // Overwrite color for toolbar diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index 3052c79ac..bbbc0b1be 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -6626,9 +6626,12 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-edit-comment .navbar { background-color: #FFFFFF; } +.container-edit-comment .page { + background-color: #FFFFFF; +} .container-view-comment { -webkit-transition: height 100ms; - transition: height 100ms; + transition: height 120ms; background-color: #FFFFFF; border-top-left-radius: 4px; border-top-right-radius: 4px; @@ -6721,6 +6724,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-add-reply .navbar a.link i + span { margin-left: 0; } +.container-add-reply .page { + background-color: #FFFFFF; +} .icon-arrow-comment { border: solid black; border-width: 0 2px 2px 0; @@ -6738,6 +6744,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after transform: rotate(135deg); -webkit-transform: rotate(135deg); } +.actions-modal-button.color-red { + color: #ff3b30; +} .tablet .searchbar.document.replace .center .searchbar:first-child { margin-right: 10px; } diff --git a/apps/presentationeditor/mobile/resources/css/app-material.css b/apps/presentationeditor/mobile/resources/css/app-material.css index 3855bdd11..df2107b28 100644 --- a/apps/presentationeditor/mobile/resources/css/app-material.css +++ b/apps/presentationeditor/mobile/resources/css/app-material.css @@ -6064,23 +6064,43 @@ html.phone .document-menu .list-block .item-link { #user-list ul:before { content: none; } -.page-comments .list-block .item-inner { +.page-comments .list-block .item-inner, +.page-add-comment .list-block .item-inner, +.page-view-comments .list-block .item-inner, +.container-edit-comment .list-block .item-inner, +.container-add-reply .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } -.page-comments p { +.page-comments p, +.page-add-comment p, +.page-view-comments p, +.container-edit-comment p, +.container-add-reply p { margin: 0; + word-break: break-word; } -.page-comments .user-name { - font-size: 17px; +.page-comments .user-name, +.page-add-comment .user-name, +.page-view-comments .user-name, +.container-edit-comment .user-name, +.container-add-reply .user-name { + font-size: 16px; line-height: 22px; color: #000000; margin: 0; - font-weight: bold; } .page-comments .comment-date, -.page-comments .reply-date { +.page-add-comment .comment-date, +.page-view-comments .comment-date, +.container-edit-comment .comment-date, +.container-add-reply .comment-date, +.page-comments .reply-date, +.page-add-comment .reply-date, +.page-view-comments .reply-date, +.container-edit-comment .reply-date, +.container-add-reply .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6088,7 +6108,15 @@ html.phone .document-menu .list-block .item-link { margin-top: 0px; } .page-comments .comment-text, -.page-comments .reply-text { +.page-add-comment .comment-text, +.page-view-comments .comment-text, +.container-edit-comment .comment-text, +.container-add-reply .comment-text, +.page-comments .reply-text, +.page-add-comment .reply-text, +.page-view-comments .reply-text, +.container-edit-comment .reply-text, +.container-add-reply .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6096,38 +6124,284 @@ html.phone .document-menu .list-block .item-link { max-width: 100%; padding-right: 15px; } -.page-comments .reply-item { - margin-top: 15px; +.page-comments .reply-item, +.page-add-comment .reply-item, +.page-view-comments .reply-item, +.container-edit-comment .reply-item, +.container-add-reply .reply-item { + padding-right: 16px; + padding-top: 13px; } -.page-comments .reply-item .user-name { - padding-top: 16px; +.page-comments .reply-item .header-reply, +.page-add-comment .reply-item .header-reply, +.page-view-comments .reply-item .header-reply, +.container-edit-comment .reply-item .header-reply, +.container-add-reply .reply-item .header-reply { + display: flex; + justify-content: space-between; } -.page-comments .reply-item:before { - content: ''; - position: absolute; - left: auto; - bottom: 0; - right: auto; - top: 0; - height: 1px; - width: 100%; - background-color: rgba(0, 0, 0, 0.12); - display: block; - z-index: 15; - -webkit-transform-origin: 50% 100%; - transform-origin: 50% 100%; +.page-comments .reply-item .user-name, +.page-add-comment .reply-item .user-name, +.page-view-comments .reply-item .user-name, +.container-edit-comment .reply-item .user-name, +.container-add-reply .reply-item .user-name { + padding-top: 3px; } -.page-comments .comment-quote { +.page-comments .comment-quote, +.page-add-comment .comment-quote, +.page-view-comments .comment-quote, +.container-edit-comment .comment-quote, +.container-add-reply .comment-quote { color: #aa5252; border-left: 1px solid #aa5252; padding-left: 10px; margin: 5px 0; font-size: 15px; } +.page-comments .wrap-comment, +.page-add-comment .wrap-comment, +.page-view-comments .wrap-comment, +.container-edit-comment .wrap-comment, +.container-add-reply .wrap-comment { + padding: 16px 0 0 0; +} +.page-comments .comment-textarea, +.page-add-comment .comment-textarea, +.page-view-comments .comment-textarea, +.container-edit-comment .comment-textarea, +.container-add-reply .comment-textarea, +.page-comments .reply-textarea, +.page-add-comment .reply-textarea, +.page-view-comments .reply-textarea, +.container-edit-comment .reply-textarea, +.container-add-reply .reply-textarea { + margin-top: 10px; + background: transparent; + border: none; + outline: none; + width: 100%; + min-height: 200px; + font-size: 15px; +} +.page-comments .header-comment, +.page-add-comment .header-comment, +.page-view-comments .header-comment, +.container-edit-comment .header-comment, +.container-add-reply .header-comment { + display: flex; + justify-content: space-between; + padding-right: 16px; + margin-bottom: 13px; +} +.page-comments .header-comment .comment-right, +.page-add-comment .header-comment .comment-right, +.page-view-comments .header-comment .comment-right, +.container-edit-comment .header-comment .comment-right, +.container-add-reply .header-comment .comment-right { + display: flex; + justify-content: space-between; + width: 70px; +} +.page-comments .header-comment .comment-left, +.page-add-comment .header-comment .comment-left, +.page-view-comments .header-comment .comment-left, +.container-edit-comment .header-comment .comment-left, +.container-add-reply .header-comment .comment-left { + display: flex; + justify-content: space-between; +} +.page-comments .header-comment .initials-comment, +.page-add-comment .header-comment .initials-comment, +.page-view-comments .header-comment .initials-comment, +.container-edit-comment .header-comment .initials-comment, +.container-add-reply .header-comment .initials-comment { + height: 40px; + width: 40px; + border-radius: 50px; + color: #FFFFFF; + display: flex; + justify-content: center; + align-items: center; + margin-right: 16px; + font-size: 18px; +} +.page-comments .header-reply .reply-left, +.page-add-comment .header-reply .reply-left, +.page-view-comments .header-reply .reply-left, +.container-edit-comment .header-reply .reply-left, +.container-add-reply .header-reply .reply-left { + display: flex; + justify-content: space-between; + align-items: flex-start; +} +.page-comments .header-reply .initials-reply, +.page-add-comment .header-reply .initials-reply, +.page-view-comments .header-reply .initials-reply, +.container-edit-comment .header-reply .initials-reply, +.container-add-reply .header-reply .initials-reply { + width: 24px; + height: 24px; + color: #FFFFFF; + font-size: 11px; + display: flex; + justify-content: center; + align-items: center; + margin-right: 16px; + border-radius: 50px; + margin-top: 5px; +} .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; } +.container-edit-comment .navbar { + background-color: #FFFFFF; + color: #aa5252; +} +.container-view-comment { + -webkit-transition: height 100ms; + transition: height 100ms; + background-color: #FFFFFF; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + height: 50%; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .page-view-comments { + background-color: #FFFFFF; +} +.container-view-comment .page-view-comments .list-block { + margin-bottom: 120px; +} +.container-view-comment .page-view-comments .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after { + content: none; +} +.container-view-comment .page-view-comments .list-block .item-inner { + padding: 0; +} +.container-view-comment .toolbar { + position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .toolbar.toolbar-bottom { + top: auto; +} +.container-view-comment .toolbar:before { + content: none; +} +.container-view-comment .toolbar a.link { + color: #aa5252; + font-size: 16px; +} +.container-view-comment .toolbar .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; +} +.container-view-comment .toolbar .toolbar-inner .button-left { + min-width: 80px; +} +.container-view-comment .toolbar .toolbar-inner .button-right { + min-width: 62px; + display: flex; + justify-content: space-between; +} +.container-view-comment .toolbar .toolbar-inner .button-right a { + padding: 0 8px; +} +.container-view-comment .swipe-container { + display: flex; + justify-content: center; + height: 40px; +} +.container-view-comment .swipe-container .icon-swipe { + margin-top: 8px; + width: 40px; + height: 4px; + background: rgba(0, 0, 0, 0.12); + border-radius: 2px; +} +.container-view-comment .list-block { + margin-top: 0; +} +.container-view-add-comment, +.container-edit-comment, +.container-add-reply, +container-edit-comment { + height: 100%; +} +.container-view-add-comment .navbar, +.container-edit-comment .navbar, +.container-add-reply .navbar, +container-edit-comment .navbar { + background-color: #FFFFFF; + color: #000; +} +.container-view-add-comment .navbar:after, +.container-edit-comment .navbar:after, +.container-add-reply .navbar:after, +container-edit-comment .navbar:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #c4c4c4; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +.container-view-add-comment .navbar .navbar-inner, +.container-edit-comment .navbar .navbar-inner, +.container-add-reply .navbar .navbar-inner, +container-edit-comment .navbar .navbar-inner { + justify-content: space-between; +} +.container-view-add-comment .navbar a.link i + span, +.container-edit-comment .navbar a.link i + span, +.container-add-reply .navbar a.link i + span, +container-edit-comment .navbar a.link i + span { + margin-left: 0; +} +.container-view-add-comment .navbar .center, +.container-edit-comment .navbar .center, +.container-add-reply .navbar .center, +container-edit-comment .navbar .center { + font-size: 18px; +} +.container-view-add-comment .navbar .right, +.container-edit-comment .navbar .right, +.container-add-reply .navbar .right, +container-edit-comment .navbar .right { + margin-left: 0; +} +.container-view-add-comment .page-add-comment, +.container-edit-comment .page-add-comment, +.container-add-reply .page-add-comment, +container-edit-comment .page-add-comment { + background-color: #FFFFFF; +} +.container-view-add-comment .page-add-comment .page-content, +.container-edit-comment .page-add-comment .page-content, +.container-add-reply .page-add-comment .page-content, +container-edit-comment .page-add-comment .page-content { + padding: 0 16px 80px; +} +.container-view-add-comment .header-comment, +.container-edit-comment .header-comment, +.container-add-reply .header-comment, +container-edit-comment .header-comment { + justify-content: flex-start; +} +.actions-modal-button.color-red { + color: #f44336; +} .tablet .searchbar.document.replace .center > .replace { display: flex; } diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index 6d965e8e9..0c2270a0d 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -6626,9 +6626,12 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-edit-comment .navbar { background-color: #FFFFFF; } +.container-edit-comment .page { + background-color: #FFFFFF; +} .container-view-comment { -webkit-transition: height 100ms; - transition: height 100ms; + transition: height 120ms; background-color: #FFFFFF; border-top-left-radius: 4px; border-top-right-radius: 4px; @@ -6721,6 +6724,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-add-reply .navbar a.link i + span { margin-left: 0; } +.container-add-reply .page { + background-color: #FFFFFF; +} .icon-arrow-comment { border: solid black; border-width: 0 2px 2px 0; @@ -6738,6 +6744,9 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after transform: rotate(135deg); -webkit-transform: rotate(135deg); } +.actions-modal-button.color-red { + color: #ff3b30; +} i.icon.icon-search { width: 24px; height: 24px; diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-material.css b/apps/spreadsheeteditor/mobile/resources/css/app-material.css index db3b6425d..887889736 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-material.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-material.css @@ -6074,23 +6074,43 @@ html.phone .document-menu .list-block .item-link { #user-list ul:before { content: none; } -.page-comments .list-block .item-inner { +.page-comments .list-block .item-inner, +.page-add-comment .list-block .item-inner, +.page-view-comments .list-block .item-inner, +.container-edit-comment .list-block .item-inner, +.container-add-reply .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } -.page-comments p { +.page-comments p, +.page-add-comment p, +.page-view-comments p, +.container-edit-comment p, +.container-add-reply p { margin: 0; + word-break: break-word; } -.page-comments .user-name { - font-size: 17px; +.page-comments .user-name, +.page-add-comment .user-name, +.page-view-comments .user-name, +.container-edit-comment .user-name, +.container-add-reply .user-name { + font-size: 16px; line-height: 22px; color: #000000; margin: 0; - font-weight: bold; } .page-comments .comment-date, -.page-comments .reply-date { +.page-add-comment .comment-date, +.page-view-comments .comment-date, +.container-edit-comment .comment-date, +.container-add-reply .comment-date, +.page-comments .reply-date, +.page-add-comment .reply-date, +.page-view-comments .reply-date, +.container-edit-comment .reply-date, +.container-add-reply .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6098,7 +6118,15 @@ html.phone .document-menu .list-block .item-link { margin-top: 0px; } .page-comments .comment-text, -.page-comments .reply-text { +.page-add-comment .comment-text, +.page-view-comments .comment-text, +.container-edit-comment .comment-text, +.container-add-reply .comment-text, +.page-comments .reply-text, +.page-add-comment .reply-text, +.page-view-comments .reply-text, +.container-edit-comment .reply-text, +.container-add-reply .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6106,38 +6134,284 @@ html.phone .document-menu .list-block .item-link { max-width: 100%; padding-right: 15px; } -.page-comments .reply-item { - margin-top: 15px; +.page-comments .reply-item, +.page-add-comment .reply-item, +.page-view-comments .reply-item, +.container-edit-comment .reply-item, +.container-add-reply .reply-item { + padding-right: 16px; + padding-top: 13px; } -.page-comments .reply-item .user-name { - padding-top: 16px; +.page-comments .reply-item .header-reply, +.page-add-comment .reply-item .header-reply, +.page-view-comments .reply-item .header-reply, +.container-edit-comment .reply-item .header-reply, +.container-add-reply .reply-item .header-reply { + display: flex; + justify-content: space-between; } -.page-comments .reply-item:before { - content: ''; - position: absolute; - left: auto; - bottom: 0; - right: auto; - top: 0; - height: 1px; - width: 100%; - background-color: rgba(0, 0, 0, 0.12); - display: block; - z-index: 15; - -webkit-transform-origin: 50% 100%; - transform-origin: 50% 100%; +.page-comments .reply-item .user-name, +.page-add-comment .reply-item .user-name, +.page-view-comments .reply-item .user-name, +.container-edit-comment .reply-item .user-name, +.container-add-reply .reply-item .user-name { + padding-top: 3px; } -.page-comments .comment-quote { +.page-comments .comment-quote, +.page-add-comment .comment-quote, +.page-view-comments .comment-quote, +.container-edit-comment .comment-quote, +.container-add-reply .comment-quote { color: #40865c; border-left: 1px solid #40865c; padding-left: 10px; margin: 5px 0; font-size: 15px; } +.page-comments .wrap-comment, +.page-add-comment .wrap-comment, +.page-view-comments .wrap-comment, +.container-edit-comment .wrap-comment, +.container-add-reply .wrap-comment { + padding: 16px 0 0 0; +} +.page-comments .comment-textarea, +.page-add-comment .comment-textarea, +.page-view-comments .comment-textarea, +.container-edit-comment .comment-textarea, +.container-add-reply .comment-textarea, +.page-comments .reply-textarea, +.page-add-comment .reply-textarea, +.page-view-comments .reply-textarea, +.container-edit-comment .reply-textarea, +.container-add-reply .reply-textarea { + margin-top: 10px; + background: transparent; + border: none; + outline: none; + width: 100%; + min-height: 200px; + font-size: 15px; +} +.page-comments .header-comment, +.page-add-comment .header-comment, +.page-view-comments .header-comment, +.container-edit-comment .header-comment, +.container-add-reply .header-comment { + display: flex; + justify-content: space-between; + padding-right: 16px; + margin-bottom: 13px; +} +.page-comments .header-comment .comment-right, +.page-add-comment .header-comment .comment-right, +.page-view-comments .header-comment .comment-right, +.container-edit-comment .header-comment .comment-right, +.container-add-reply .header-comment .comment-right { + display: flex; + justify-content: space-between; + width: 70px; +} +.page-comments .header-comment .comment-left, +.page-add-comment .header-comment .comment-left, +.page-view-comments .header-comment .comment-left, +.container-edit-comment .header-comment .comment-left, +.container-add-reply .header-comment .comment-left { + display: flex; + justify-content: space-between; +} +.page-comments .header-comment .initials-comment, +.page-add-comment .header-comment .initials-comment, +.page-view-comments .header-comment .initials-comment, +.container-edit-comment .header-comment .initials-comment, +.container-add-reply .header-comment .initials-comment { + height: 40px; + width: 40px; + border-radius: 50px; + color: #FFFFFF; + display: flex; + justify-content: center; + align-items: center; + margin-right: 16px; + font-size: 18px; +} +.page-comments .header-reply .reply-left, +.page-add-comment .header-reply .reply-left, +.page-view-comments .header-reply .reply-left, +.container-edit-comment .header-reply .reply-left, +.container-add-reply .header-reply .reply-left { + display: flex; + justify-content: space-between; + align-items: flex-start; +} +.page-comments .header-reply .initials-reply, +.page-add-comment .header-reply .initials-reply, +.page-view-comments .header-reply .initials-reply, +.container-edit-comment .header-reply .initials-reply, +.container-add-reply .header-reply .initials-reply { + width: 24px; + height: 24px; + color: #FFFFFF; + font-size: 11px; + display: flex; + justify-content: center; + align-items: center; + margin-right: 16px; + border-radius: 50px; + margin-top: 5px; +} .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { display: none; } +.container-edit-comment .navbar { + background-color: #FFFFFF; + color: #40865c; +} +.container-view-comment { + -webkit-transition: height 100ms; + transition: height 100ms; + background-color: #FFFFFF; + border-top-left-radius: 4px; + border-top-right-radius: 4px; + height: 50%; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .page-view-comments { + background-color: #FFFFFF; +} +.container-view-comment .page-view-comments .list-block { + margin-bottom: 120px; +} +.container-view-comment .page-view-comments .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after { + content: none; +} +.container-view-comment .page-view-comments .list-block .item-inner { + padding: 0; +} +.container-view-comment .toolbar { + position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); +} +.container-view-comment .toolbar.toolbar-bottom { + top: auto; +} +.container-view-comment .toolbar:before { + content: none; +} +.container-view-comment .toolbar a.link { + color: #40865c; + font-size: 16px; +} +.container-view-comment .toolbar .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; +} +.container-view-comment .toolbar .toolbar-inner .button-left { + min-width: 80px; +} +.container-view-comment .toolbar .toolbar-inner .button-right { + min-width: 62px; + display: flex; + justify-content: space-between; +} +.container-view-comment .toolbar .toolbar-inner .button-right a { + padding: 0 8px; +} +.container-view-comment .swipe-container { + display: flex; + justify-content: center; + height: 40px; +} +.container-view-comment .swipe-container .icon-swipe { + margin-top: 8px; + width: 40px; + height: 4px; + background: rgba(0, 0, 0, 0.12); + border-radius: 2px; +} +.container-view-comment .list-block { + margin-top: 0; +} +.container-view-add-comment, +.container-edit-comment, +.container-add-reply, +container-edit-comment { + height: 100%; +} +.container-view-add-comment .navbar, +.container-edit-comment .navbar, +.container-add-reply .navbar, +container-edit-comment .navbar { + background-color: #FFFFFF; + color: #000; +} +.container-view-add-comment .navbar:after, +.container-edit-comment .navbar:after, +.container-add-reply .navbar:after, +container-edit-comment .navbar:after { + content: ''; + position: absolute; + left: 0; + bottom: 0; + right: auto; + top: auto; + height: 1px; + width: 100%; + background-color: #c4c4c4; + display: block; + z-index: 15; + -webkit-transform-origin: 50% 100%; + transform-origin: 50% 100%; +} +.container-view-add-comment .navbar .navbar-inner, +.container-edit-comment .navbar .navbar-inner, +.container-add-reply .navbar .navbar-inner, +container-edit-comment .navbar .navbar-inner { + justify-content: space-between; +} +.container-view-add-comment .navbar a.link i + span, +.container-edit-comment .navbar a.link i + span, +.container-add-reply .navbar a.link i + span, +container-edit-comment .navbar a.link i + span { + margin-left: 0; +} +.container-view-add-comment .navbar .center, +.container-edit-comment .navbar .center, +.container-add-reply .navbar .center, +container-edit-comment .navbar .center { + font-size: 18px; +} +.container-view-add-comment .navbar .right, +.container-edit-comment .navbar .right, +.container-add-reply .navbar .right, +container-edit-comment .navbar .right { + margin-left: 0; +} +.container-view-add-comment .page-add-comment, +.container-edit-comment .page-add-comment, +.container-add-reply .page-add-comment, +container-edit-comment .page-add-comment { + background-color: #FFFFFF; +} +.container-view-add-comment .page-add-comment .page-content, +.container-edit-comment .page-add-comment .page-content, +.container-add-reply .page-add-comment .page-content, +container-edit-comment .page-add-comment .page-content { + padding: 0 16px 80px; +} +.container-view-add-comment .header-comment, +.container-edit-comment .header-comment, +.container-add-reply .header-comment, +container-edit-comment .header-comment { + justify-content: flex-start; +} +.actions-modal-button.color-red { + color: #f44336; +} .tablet .searchbar.document.replace .center > .replace { display: flex; } From 9621eab6b6ce50f74251c03b17c20f5be74ed096 Mon Sep 17 00:00:00 2001 From: Julia Svinareva Date: Mon, 23 Mar 2020 17:33:41 +0300 Subject: [PATCH 05/72] [de mobile] Add, view comment, add reply for iPad --- .../mobile/lib/controller/Collaboration.js | 349 +++++++++++------- apps/common/mobile/lib/view/Collaboration.js | 7 +- .../resources/less/ios/_collaboration.less | 94 +++-- .../mobile/resources/css/app-ios.css | 174 ++++++--- .../mobile/resources/css/app-material.css | 4 +- .../mobile/resources/less/ios/_icons.less | 4 +- .../resources/less/material/_icons.less | 4 +- .../mobile/resources/css/app-ios.css | 168 ++++++--- .../mobile/resources/css/app-ios.css | 168 ++++++--- 9 files changed, 642 insertions(+), 330 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 4c53dd461..052aae316 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -748,26 +748,26 @@ define([ if (Common.SharedSettings.get('phone')) { me.modalViewComment = $$(uiApp.pickerModal( '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '' + - '
      ' + - '' + - '' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      '+ + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '' + + '
      ' + + '' + + '' + + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '
      ' + '
      ' )).on('opened', function () { if (_.isFunction(me.api.asc_OnShowContextMenu)) { @@ -782,112 +782,139 @@ define([ }); mainView.hideNavbar(); } else { + me.modalViewComment = uiApp.popover( + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '' + + '
      ' + + '' + + '' + + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '
      ' + + '
      ', + $$('#toolbar-collaboration') + ); } appPrefix.getController('Toolbar').getView('Toolbar').hideSearch(); - viewCollaboration.renderViewComments(me.showComments, me.indexCurrentComment); + _.delay(function () { + viewCollaboration.renderViewComments(me.showComments, me.indexCurrentComment); + $('.prev-comment').single('click', _.bind(me.onViewPrevComment, me)); + $('.next-comment').single('click', _.bind(me.onViewNextComment, me)); + $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); + $('.add-reply').single('click', _.bind(me.onClickAddReply, me)); + $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); + $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me)); + + if (me.showComments.length === 1) { + $('.prev-comment, .next-comment').addClass('disabled'); + } + }, 300); //swipe modal window - me.swipeFull = false; - var $swipeContainer = $('.swipe-container'); - $swipeContainer.single('touchstart', _.bind(function(e){ - var touchobj = e.changedTouches[0]; - me.swipeStart = parseInt(touchobj.clientY); - me.swipeChange = parseInt(touchobj.clientY); - me.swipeHeight = parseInt($('.container-view-comment').css('height')); - e.preventDefault(); - }, me)); - $swipeContainer.single('touchmove', _.bind(function(e){ - var touchobj = e.changedTouches[0]; - var dist = parseInt(touchobj.clientY) - me.swipeStart; - var newHeight; - if (dist < 0) { - newHeight = '100%'; - me.swipeFull = true; - me.closeCommentPicker = false; - $('.container-view-comment').css('opacity', '1'); - } else if (dist < 100) { - newHeight = '50%'; - me.swipeFull = false; - me.closeCommentPicker = false; - $('.container-view-comment').css('opacity', '1'); - } else { - me.closeCommentPicker = true; - $('.container-view-comment').css('opacity', '0.6'); - } - $('.container-view-comment').css('height', newHeight); - me.swipeHeight = newHeight; - e.preventDefault(); - }, me)); - $swipeContainer.single('touchend', _.bind(function (e) { - var touchobj = e.changedTouches[0]; - var swipeEnd = parseInt(touchobj.clientY); - var dist = swipeEnd - me.swipeStart; - if (me.closeCommentPicker) { - uiApp.closeModal(); - } else if (me.swipeFull) { - if (dist > 20) { - $('.container-view-comment').css('height', '50%'); + if ($('.swipe-container').length > 0) { + me.swipeFull = false; + var $swipeContainer = $('.swipe-container'); + $swipeContainer.single('touchstart', _.bind(function (e) { + var touchobj = e.changedTouches[0]; + me.swipeStart = parseInt(touchobj.clientY); + me.swipeChange = parseInt(touchobj.clientY); + me.swipeHeight = parseInt($('.container-view-comment').css('height')); + e.preventDefault(); + }, me)); + $swipeContainer.single('touchmove', _.bind(function (e) { + var touchobj = e.changedTouches[0]; + var dist = parseInt(touchobj.clientY) - me.swipeStart; + var newHeight; + if (dist < 0) { + newHeight = '100%'; + me.swipeFull = true; + me.closeCommentPicker = false; + $('.container-view-comment').css('opacity', '1'); + } else if (dist < 100) { + newHeight = '50%'; + me.swipeFull = false; + me.closeCommentPicker = false; + $('.container-view-comment').css('opacity', '1'); + } else { + me.closeCommentPicker = true; + $('.container-view-comment').css('opacity', '0.6'); } - } - me.swipeHeight = undefined; - me.swipeChange = undefined; - me.closeCommentPicker = undefined; - }, me)); - - $('.prev-comment').single('click', _.bind(me.onViewPrevComment, me)); - $('.next-comment').single('click', _.bind(me.onViewNextComment, me)); - $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); - $('.add-reply').single('click', _.bind(me.onClickAddReply, me)); - $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); - $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me)); - - me.updateDisabledCommentArrow(); - }, - - updateDisabledCommentArrow: function() { - if (this.indexCurrentComment === 0) { - $('.prev-comment').addClass('disabled'); - } else { - $('.prev-comment').removeClass('disabled'); - } - if (this.indexCurrentComment + 1 === this.showComments.length) { - $('.next-comment').addClass('disabled'); - } else { - $('.next-comment').removeClass('disabled'); + $('.container-view-comment').css('height', newHeight); + me.swipeHeight = newHeight; + e.preventDefault(); + }, me)); + $swipeContainer.single('touchend', _.bind(function (e) { + var touchobj = e.changedTouches[0]; + var swipeEnd = parseInt(touchobj.clientY); + var dist = swipeEnd - me.swipeStart; + if (me.closeCommentPicker) { + uiApp.closeModal(); + me.modalViewComment.remove(); + } else if (me.swipeFull) { + if (dist > 20) { + $('.container-view-comment').css('height', '50%'); + } + } + me.swipeHeight = undefined; + me.swipeChange = undefined; + me.closeCommentPicker = undefined; + }, me)); } }, onViewPrevComment: function() { - if (this.indexCurrentComment - 1 >= 0 && this.showComments.length > 0) { - this.indexCurrentComment -= 1; - DE.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(this.showComments, this.indexCurrentComment); - $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); - $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); - $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this)); - this.updateDisabledCommentArrow(); + if (this.showComments.length > 0) { + if (this.indexCurrentComment - 1 < 0) { + this.indexCurrentComment = this.showComments.length - 1; + } else { + this.indexCurrentComment -= 1; + } + var me = this; + DE.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment); + _.defer(function () { + $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); + $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); + $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me)); + }); } }, onViewNextComment: function() { - if (this.indexCurrentComment + 1 < this.showComments.length) { - this.indexCurrentComment += 1; - DE.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(this.showComments, this.indexCurrentComment); - $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); - $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); - $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this)); - this.updateDisabledCommentArrow(); + if (this.showComments.length > 0) { + if (this.indexCurrentComment + 1 === this.showComments.length) { + this.indexCurrentComment = 0; + } else { + this.indexCurrentComment += 1; + } + var me = this; + DE.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment); + _.defer(function () { + $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); + $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); + $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me)); + }); } }, onClickAddReply: function() { var me = this; - var isAndroid = Framework7.prototype.device.android === true; + var isAndroid = Framework7.prototype.device.android === true, + phone = Common.SharedSettings.get('phone'); if (this.indexCurrentComment > -1 && this.indexCurrentComment < this.showComments.length) { var addReplyView, comment = this.showComments[this.indexCurrentComment]; - if (Common.SharedSettings.get('phone')) { + if (phone) { addReplyView = uiApp.popup( '' + '
    ' + '
    ' + - '
    ' + + '
    ' + '
    ' + '
    ' + (isAndroid ? '
    ' + comment.userInitials + '
    ' : '') + '
    ' + comment.username + '
    ' + '
    ' + comment.date + '
    ' + (isAndroid ? '
    ' : '') + - '
    ' + + '
    ' + '
    ' + '
    ' + '
    ' + @@ -1054,15 +1096,39 @@ define([ }); mainView.hideNavbar(); } else { + modalView = uiApp.popover( + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '' + me.textCancel + '' + + '
    ' + + '' + + '
    ' + + '
    ' + + '
    ' + + (isAndroid ? '
    ' + comment.userInitials + '
    ' : '') + + '
    ' + comment.username + '
    ' + + '
    ' + comment.date + '
    ' + + (isAndroid ? '
    ' : '') + + '
    ' + + '
    ' + + '
    ' + + '
    ', + $$('#context-menu-target') + ); } - _.delay(function(){ - $('#comment-text').focus(); - },200); - appPrefix.getController('Toolbar').getView('Toolbar').hideSearch(); $('#add-comment').single('click', _.bind(me.onAddNewComment, me)); + + _.defer(function(){ + $('#comment-text').focus(); + }); }, onAddNewComment: function() { @@ -1165,7 +1231,7 @@ define([ onCommentMenuClick: function(action, indReply) { var me = this; switch (action) { - case 'edit': me.showEditCommentModal(); break; + case 'edit': me.showEditComment(); break; case 'resolve': me.onClickResolveComment(); break; case 'delete': me.onDeleteComment(me.indexCurrentComment); break; case 'editreply': me.showEditReplyModal(me.indexCurrentComment, indReply); break; @@ -1278,7 +1344,7 @@ define([ } }, - showEditCommentModal: function() { + showEditComment: function() { var me = this, isAndroid = Framework7.prototype.device.android === true; if (this.indexCurrentComment > -1 && this.indexCurrentComment < this.showComments.length) { @@ -1294,7 +1360,7 @@ define([ '
    ' + '
    ' + '
    ' + - '
    ' + + '
    ' + '
    ' + '
    ' + (isAndroid ? '
    ' + comment.userInitials + '
    ' : '') + @@ -1314,19 +1380,28 @@ define([ $textarea.focus(); $textarea.selectionStart = $textarea.value.length; },100); - $('#edit-comment').single('click', _.bind(function (comment) { - var value = $('.comment-textarea')[0].value; - if (value && value.length > 0) { - comment.comment = value; - this.showComments[this.indexCurrentComment] = comment; - this.onChangeComment(comment); - uiApp.closeModal($$(me.editView)); - this.updateViewComment(); - } - }, me, comment)); } else { - + var $viewComment = $('.container-view-comment'); + var oldComment = $viewComment.find('.comment-text span').text(); + $viewComment.find('.comment-text span').css('display', 'none'); + var template = _.template(''); + $viewComment.find('.comment-text').append(template); + $viewComment('.toolbar').find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'none'); + template = _.template('' + me.textDone + ''); + $viewComment('.button-right').append(template); + template = _.template('' + me.textCancel + ''); + $viewComment('.button-left').append(template); } + $('#edit-comment').single('click', _.bind(function (comment) { + var value = $('#comment-text')[0].value; + if (value && value.length > 0) { + comment.comment = value; + this.showComments[this.indexCurrentComment] = comment; + this.onChangeComment(comment); + uiApp.closeModal($$(me.editView)); + this.updateViewComment(); + } + }, me, comment)); } }, @@ -1353,7 +1428,7 @@ define([ '
    ' + '
    ' + '
    ' + - '
    ' + + '
    ' + '
    ' + '
    ' + (isAndroid ? '
    ' + comment.userInitials + '
    ' : '') + diff --git a/apps/common/mobile/lib/view/Collaboration.js b/apps/common/mobile/lib/view/Collaboration.js index d6ebec855..b202b6633 100644 --- a/apps/common/mobile/lib/view/Collaboration.js +++ b/apps/common/mobile/lib/view/Collaboration.js @@ -150,7 +150,7 @@ define([ renderViewComments: function(comments, indCurComment) { var isAndroid = Framework7.prototype.device.android === true; - if ($('.page-view-comments .page-content').length > 0) { + if ($('.view-comment .page-content').length > 0) { var template = ''; if (comments && comments.length > 0) { template = '
    ' + @@ -175,7 +175,7 @@ define([ '
    '; if (comment.quote) template += '

    ' + comment.quote + '

    '; - template += '

    ' + comment.comment + '

    '; + template += '
    ' + comment.comment + '
    '; if (comment.replys.length > 0) { template += '
      '; _.each(comment.replys, function (reply) { @@ -202,9 +202,10 @@ define([ template += '
    ' + '
  • '; template += ''; - $('.page-view-comments .page-content').html(template); + $('.view-comment .page-content').html(template); } } + Common.Utils.addScrollIfNeed('.view-comment.page', '.view-comment .page-content'); }, renderComments: function (comments) { diff --git a/apps/common/mobile/resources/less/ios/_collaboration.less b/apps/common/mobile/resources/less/ios/_collaboration.less index 68bebd264..e97323e6f 100644 --- a/apps/common/mobile/resources/less/ios/_collaboration.less +++ b/apps/common/mobile/resources/less/ios/_collaboration.less @@ -92,7 +92,7 @@ } //Comments -.page-comments, .page-add-comment, .page-view-comments, .container-edit-comment, .container-add-reply { +.page-comments, .add-comment, .page-view-comments, .container-edit-comment, .container-add-reply, .view-comment { .list-block .item-inner { display: block; padding: 16px 0; @@ -194,7 +194,7 @@ border-top-right-radius: 4px; height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); - .page-view-comments { + .page-view-comments, .view-comment { background-color: #FFFFFF; .list-block { margin-bottom: 100px; @@ -236,7 +236,7 @@ display: flex; justify-content: space-between; a { - padding: 0 8px; + padding: 0 12px; } } } @@ -256,6 +256,52 @@ .list-block { margin-top: 0; } + &.popover { + border-radius: 4px; + min-height: 170px; + height: 400px; + max-height: 600px; + + .toolbar { + border-radius: 0 0 4px 4px; + .toolbar-inner { + padding-right: 0; + } + } + + .page { + border-radius: 13px; + .page-content { + padding: 16px; + padding-bottom: 80px; + + .list-block { + margin-bottom: 0px; + + .item-content { + padding-left: 0; + + .header-comment, .reply-item { + padding-right: 0; + } + } + } + + .block-reply { + width: 260px; + margin-top: 10px; + .reply-textarea { + min-height: 70px; + width: 260px; + border: 1px solid #c4c4c4; + border-radius: 13px; + padding: 5px; + } + } + } + } + + } } .container-view-add-comment { @@ -266,13 +312,34 @@ margin-left: 0; } } - .page-add-comment { + .page { background-color: #FFFFFF; .page-content { padding: 0 16px 80px; } } } +.popover { + &.add-comment { + .toolbar { + border-radius: 0 0 13px 13px; + } + .toolbar-bottom { + position: absolute; + bottom: 0; + } + .wrap-comment { + padding-bottom: 55px; + } + .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 5px; + min-height: 150px; + max-height: 300px; + width: 280px; + } + } +} .container-add-reply { height: 100%; @@ -287,25 +354,6 @@ } } -.icon-arrow-comment { - border: solid black; - border-width: 0 2px 2px 0; - border-color: @themeColor; - height: 12px; - width: 12px; - display: inline-block; - padding: 0; - &.right { - transform: rotate(-45deg); - -webkit-transform: rotate(-45deg); - } - - &.left { - transform: rotate(135deg); - -webkit-transform: rotate(135deg); - } -} - .actions-modal-button.color-red { color: @red; } diff --git a/apps/documenteditor/mobile/resources/css/app-ios.css b/apps/documenteditor/mobile/resources/css/app-ios.css index 868b521d0..094b9e1bc 100644 --- a/apps/documenteditor/mobile/resources/css/app-ios.css +++ b/apps/documenteditor/mobile/resources/css/app-ios.css @@ -6480,27 +6480,30 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after content: none; } .page-comments .list-block .item-inner, -.page-add-comment .list-block .item-inner, +.add-comment .list-block .item-inner, .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, -.container-add-reply .list-block .item-inner { +.container-add-reply .list-block .item-inner, +.view-comment .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } .page-comments p, -.page-add-comment p, +.add-comment p, .page-view-comments p, .container-edit-comment p, -.container-add-reply p { +.container-add-reply p, +.view-comment p { margin: 0; word-break: break-word; } .page-comments .user-name, -.page-add-comment .user-name, +.add-comment .user-name, .page-view-comments .user-name, .container-edit-comment .user-name, -.container-add-reply .user-name { +.container-add-reply .user-name, +.view-comment .user-name { font-size: 17px; line-height: 22px; color: #000000; @@ -6508,15 +6511,17 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-weight: bold; } .page-comments .comment-date, -.page-add-comment .comment-date, +.add-comment .comment-date, .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, +.view-comment .comment-date, .page-comments .reply-date, -.page-add-comment .reply-date, +.add-comment .reply-date, .page-view-comments .reply-date, .container-edit-comment .reply-date, -.container-add-reply .reply-date { +.container-add-reply .reply-date, +.view-comment .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6524,15 +6529,17 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after margin-top: 0px; } .page-comments .comment-text, -.page-add-comment .comment-text, +.add-comment .comment-text, .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, +.view-comment .comment-text, .page-comments .reply-text, -.page-add-comment .reply-text, +.add-comment .reply-text, .page-view-comments .reply-text, .container-edit-comment .reply-text, -.container-add-reply .reply-text { +.container-add-reply .reply-text, +.view-comment .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6541,34 +6548,38 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after padding-right: 15px; } .page-comments .reply-item, -.page-add-comment .reply-item, +.add-comment .reply-item, .page-view-comments .reply-item, .container-edit-comment .reply-item, -.container-add-reply .reply-item { +.container-add-reply .reply-item, +.view-comment .reply-item { margin-top: 15px; padding-right: 16px; padding-top: 13px; } .page-comments .reply-item .header-reply, -.page-add-comment .reply-item .header-reply, +.add-comment .reply-item .header-reply, .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, -.container-add-reply .reply-item .header-reply { +.container-add-reply .reply-item .header-reply, +.view-comment .reply-item .header-reply { display: flex; justify-content: space-between; } .page-comments .reply-item .user-name, -.page-add-comment .reply-item .user-name, +.add-comment .reply-item .user-name, .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, -.container-add-reply .reply-item .user-name { +.container-add-reply .reply-item .user-name, +.view-comment .reply-item .user-name { padding-top: 3px; } .page-comments .reply-item:before, -.page-add-comment .reply-item:before, +.add-comment .reply-item:before, .page-view-comments .reply-item:before, .container-edit-comment .reply-item:before, -.container-add-reply .reply-item:before { +.container-add-reply .reply-item:before, +.view-comment .reply-item:before { content: ''; position: absolute; left: auto; @@ -6584,10 +6595,11 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after transform-origin: 50% 100%; } .page-comments .comment-quote, -.page-add-comment .comment-quote, +.add-comment .comment-quote, .page-view-comments .comment-quote, .container-edit-comment .comment-quote, -.container-add-reply .comment-quote { +.container-add-reply .comment-quote, +.view-comment .comment-quote { color: #446995; border-left: 1px solid #446995; padding-left: 10px; @@ -6595,22 +6607,25 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-size: 15px; } .page-comments .wrap-comment, -.page-add-comment .wrap-comment, +.add-comment .wrap-comment, .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, -.container-add-reply .wrap-comment { +.container-add-reply .wrap-comment, +.view-comment .wrap-comment { padding: 16px 16px 0 16px; } .page-comments .comment-textarea, -.page-add-comment .comment-textarea, +.add-comment .comment-textarea, .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, +.view-comment .comment-textarea, .page-comments .reply-textarea, -.page-add-comment .reply-textarea, +.add-comment .reply-textarea, .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, -.container-add-reply .reply-textarea { +.container-add-reply .reply-textarea, +.view-comment .reply-textarea { margin-top: 10px; background: transparent; border: none; @@ -6638,25 +6653,32 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } -.container-view-comment .page-view-comments { +.container-view-comment .page-view-comments, +.container-view-comment .view-comment { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block { +.container-view-comment .page-view-comments .list-block, +.container-view-comment .view-comment .list-block { margin-bottom: 100px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after { +.container-view-comment .view-comment .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after, +.container-view-comment .view-comment .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner, +.container-view-comment .view-comment .list-block .item-inner { padding: 0; } -.container-view-comment .page-view-comments .list-block .item-inner .header-comment { +.container-view-comment .page-view-comments .list-block .item-inner .header-comment, +.container-view-comment .view-comment .list-block .item-inner .header-comment { display: flex; justify-content: space-between; padding-right: 16px; } -.container-view-comment .page-view-comments .list-block .item-inner .header-comment .comment-right { +.container-view-comment .page-view-comments .list-block .item-inner .header-comment .comment-right, +.container-view-comment .view-comment .list-block .item-inner .header-comment .comment-right { display: flex; justify-content: space-between; width: 70px; @@ -6683,7 +6705,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after justify-content: space-between; } .container-view-comment .toolbar .toolbar-inner .button-right a { - padding: 0 8px; + padding: 0 12px; } .container-view-comment .swipe-container { display: flex; @@ -6700,6 +6722,46 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-comment .list-block { margin-top: 0; } +.container-view-comment.popover { + border-radius: 4px; + min-height: 170px; + height: 400px; + max-height: 600px; +} +.container-view-comment.popover .toolbar { + border-radius: 0 0 4px 4px; +} +.container-view-comment.popover .toolbar .toolbar-inner { + padding-right: 0; +} +.container-view-comment.popover .page { + border-radius: 13px; +} +.container-view-comment.popover .page .page-content { + padding: 16px; + padding-bottom: 80px; +} +.container-view-comment.popover .page .page-content .list-block { + margin-bottom: 0px; +} +.container-view-comment.popover .page .page-content .list-block .item-content { + padding-left: 0; +} +.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .block-reply { + width: 260px; + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .block-reply .reply-textarea { + min-height: 70px; + width: 260px; + border: 1px solid #c4c4c4; + border-radius: 13px; + padding: 5px; +} .container-view-add-comment { height: 100%; } @@ -6709,12 +6771,29 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-add-comment .navbar a.link i + span { margin-left: 0; } -.container-view-add-comment .page-add-comment { +.container-view-add-comment .page { background-color: #FFFFFF; } -.container-view-add-comment .page-add-comment .page-content { +.container-view-add-comment .page .page-content { padding: 0 16px 80px; } +.popover.add-comment .toolbar { + border-radius: 0 0 13px 13px; +} +.popover.add-comment .toolbar-bottom { + position: absolute; + bottom: 0; +} +.popover.add-comment .wrap-comment { + padding-bottom: 55px; +} +.popover.add-comment .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 5px; + min-height: 150px; + max-height: 300px; + width: 280px; +} .container-add-reply { height: 100%; } @@ -6727,23 +6806,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-add-reply .page { background-color: #FFFFFF; } -.icon-arrow-comment { - border: solid black; - border-width: 0 2px 2px 0; - border-color: #446995; - height: 12px; - width: 12px; - display: inline-block; - padding: 0; -} -.icon-arrow-comment.right { - transform: rotate(-45deg); - -webkit-transform: rotate(-45deg); -} -.icon-arrow-comment.left { - transform: rotate(135deg); - -webkit-transform: rotate(135deg); -} .actions-modal-button.color-red { color: #ff3b30; } @@ -6975,12 +7037,14 @@ i.icon.icon-in-indent { background-color: #446995; -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23446995%22%3E%3Cg%3E%3Cpath%20d%3D%22M1%2C20v-1h21v1H1z%20M12%2C16H1v-1h11V16z%20M12%2C12H1v-1h11V12z%20M12%2C8H1V7h11V8z%20M21%2C11.2l0.2%2C0.3L21%2C11.8L16.7%2C16L16%2C15.3l3.8-3.8L16%2C7.7L16.7%2C7L21%2C11.2z%20M22%2C4H1V3h21V4z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); } -i.icon.icon-prev { +i.icon.icon-prev, +i.icon.icon-prev-comment { width: 22px; height: 22px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23446995%22%3E%3Cg%3E%3Cpath%20d%3D%22M16%2C20.5L15%2C21.5L4.5%2C11l0%2C0l0%2C0L15%2C0.5L16%2C1.5L6.6%2C11L16%2C20.5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); } -i.icon.icon-next { +i.icon.icon-next, +i.icon.icon-next-comment { width: 22px; height: 22px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23446995%22%3E%3Cg%3E%3Cpath%20d%3D%22M15.5%2C11L6%2C1.5l1.1-1.1L17.5%2C11l0%2C0l0%2C0L7.1%2C21.5L6%2C20.5L15.5%2C11z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); diff --git a/apps/documenteditor/mobile/resources/css/app-material.css b/apps/documenteditor/mobile/resources/css/app-material.css index ed009b11e..6d5966cac 100644 --- a/apps/documenteditor/mobile/resources/css/app-material.css +++ b/apps/documenteditor/mobile/resources/css/app-material.css @@ -6853,12 +6853,12 @@ i.icon.icon-resolve-comment.check { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%2340865C%22%20fill-opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E"); } -i.icon.icon-arrow-comment.left { +i.icon.icon-prev-comment { width: 24px; height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M15.4219%207.40625L10.8281%2012L15.4219%2016.5938L14.0156%2018L8.01562%2012L14.0156%206L15.4219%207.40625Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); } -i.icon.icon-arrow-comment.right { +i.icon.icon-next-comment { width: 24px; height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9.98438%206L15.9844%2012L9.98438%2018L8.57812%2016.5938L13.1719%2012L8.57812%207.40625L9.98438%206Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); diff --git a/apps/documenteditor/mobile/resources/less/ios/_icons.less b/apps/documenteditor/mobile/resources/less/ios/_icons.less index 754b73559..45534e386 100644 --- a/apps/documenteditor/mobile/resources/less/ios/_icons.less +++ b/apps/documenteditor/mobile/resources/less/ios/_icons.less @@ -150,12 +150,12 @@ i.icon { height: 22px; .encoded-svg-mask(''); } - &.icon-prev { + &.icon-prev, &.icon-prev-comment { width: 22px; height: 22px; .encoded-svg-background(''); } - &.icon-next { + &.icon-next, &.icon-next-comment { width: 22px; height: 22px; .encoded-svg-background(''); diff --git a/apps/documenteditor/mobile/resources/less/material/_icons.less b/apps/documenteditor/mobile/resources/less/material/_icons.less index 4b5473bd6..40b21197f 100644 --- a/apps/documenteditor/mobile/resources/less/material/_icons.less +++ b/apps/documenteditor/mobile/resources/less/material/_icons.less @@ -419,12 +419,12 @@ i.icon { height: 24px; .encoded-svg-background(''); } - &.icon-arrow-comment.left { + &.icon-prev-comment { width: 24px; height: 24px; .encoded-svg-background(''); } - &.icon-arrow-comment.right { + &.icon-next-comment { width: 24px; height: 24px; .encoded-svg-background(''); diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index bbbc0b1be..b7e956d4e 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -6480,27 +6480,30 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after content: none; } .page-comments .list-block .item-inner, -.page-add-comment .list-block .item-inner, +.add-comment .list-block .item-inner, .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, -.container-add-reply .list-block .item-inner { +.container-add-reply .list-block .item-inner, +.view-comment .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } .page-comments p, -.page-add-comment p, +.add-comment p, .page-view-comments p, .container-edit-comment p, -.container-add-reply p { +.container-add-reply p, +.view-comment p { margin: 0; word-break: break-word; } .page-comments .user-name, -.page-add-comment .user-name, +.add-comment .user-name, .page-view-comments .user-name, .container-edit-comment .user-name, -.container-add-reply .user-name { +.container-add-reply .user-name, +.view-comment .user-name { font-size: 17px; line-height: 22px; color: #000000; @@ -6508,15 +6511,17 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-weight: bold; } .page-comments .comment-date, -.page-add-comment .comment-date, +.add-comment .comment-date, .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, +.view-comment .comment-date, .page-comments .reply-date, -.page-add-comment .reply-date, +.add-comment .reply-date, .page-view-comments .reply-date, .container-edit-comment .reply-date, -.container-add-reply .reply-date { +.container-add-reply .reply-date, +.view-comment .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6524,15 +6529,17 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after margin-top: 0px; } .page-comments .comment-text, -.page-add-comment .comment-text, +.add-comment .comment-text, .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, +.view-comment .comment-text, .page-comments .reply-text, -.page-add-comment .reply-text, +.add-comment .reply-text, .page-view-comments .reply-text, .container-edit-comment .reply-text, -.container-add-reply .reply-text { +.container-add-reply .reply-text, +.view-comment .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6541,34 +6548,38 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after padding-right: 15px; } .page-comments .reply-item, -.page-add-comment .reply-item, +.add-comment .reply-item, .page-view-comments .reply-item, .container-edit-comment .reply-item, -.container-add-reply .reply-item { +.container-add-reply .reply-item, +.view-comment .reply-item { margin-top: 15px; padding-right: 16px; padding-top: 13px; } .page-comments .reply-item .header-reply, -.page-add-comment .reply-item .header-reply, +.add-comment .reply-item .header-reply, .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, -.container-add-reply .reply-item .header-reply { +.container-add-reply .reply-item .header-reply, +.view-comment .reply-item .header-reply { display: flex; justify-content: space-between; } .page-comments .reply-item .user-name, -.page-add-comment .reply-item .user-name, +.add-comment .reply-item .user-name, .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, -.container-add-reply .reply-item .user-name { +.container-add-reply .reply-item .user-name, +.view-comment .reply-item .user-name { padding-top: 3px; } .page-comments .reply-item:before, -.page-add-comment .reply-item:before, +.add-comment .reply-item:before, .page-view-comments .reply-item:before, .container-edit-comment .reply-item:before, -.container-add-reply .reply-item:before { +.container-add-reply .reply-item:before, +.view-comment .reply-item:before { content: ''; position: absolute; left: auto; @@ -6584,10 +6595,11 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after transform-origin: 50% 100%; } .page-comments .comment-quote, -.page-add-comment .comment-quote, +.add-comment .comment-quote, .page-view-comments .comment-quote, .container-edit-comment .comment-quote, -.container-add-reply .comment-quote { +.container-add-reply .comment-quote, +.view-comment .comment-quote { color: #aa5252; border-left: 1px solid #aa5252; padding-left: 10px; @@ -6595,22 +6607,25 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-size: 15px; } .page-comments .wrap-comment, -.page-add-comment .wrap-comment, +.add-comment .wrap-comment, .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, -.container-add-reply .wrap-comment { +.container-add-reply .wrap-comment, +.view-comment .wrap-comment { padding: 16px 16px 0 16px; } .page-comments .comment-textarea, -.page-add-comment .comment-textarea, +.add-comment .comment-textarea, .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, +.view-comment .comment-textarea, .page-comments .reply-textarea, -.page-add-comment .reply-textarea, +.add-comment .reply-textarea, .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, -.container-add-reply .reply-textarea { +.container-add-reply .reply-textarea, +.view-comment .reply-textarea { margin-top: 10px; background: transparent; border: none; @@ -6638,25 +6653,32 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } -.container-view-comment .page-view-comments { +.container-view-comment .page-view-comments, +.container-view-comment .view-comment { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block { +.container-view-comment .page-view-comments .list-block, +.container-view-comment .view-comment .list-block { margin-bottom: 100px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after { +.container-view-comment .view-comment .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after, +.container-view-comment .view-comment .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner, +.container-view-comment .view-comment .list-block .item-inner { padding: 0; } -.container-view-comment .page-view-comments .list-block .item-inner .header-comment { +.container-view-comment .page-view-comments .list-block .item-inner .header-comment, +.container-view-comment .view-comment .list-block .item-inner .header-comment { display: flex; justify-content: space-between; padding-right: 16px; } -.container-view-comment .page-view-comments .list-block .item-inner .header-comment .comment-right { +.container-view-comment .page-view-comments .list-block .item-inner .header-comment .comment-right, +.container-view-comment .view-comment .list-block .item-inner .header-comment .comment-right { display: flex; justify-content: space-between; width: 70px; @@ -6683,7 +6705,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after justify-content: space-between; } .container-view-comment .toolbar .toolbar-inner .button-right a { - padding: 0 8px; + padding: 0 12px; } .container-view-comment .swipe-container { display: flex; @@ -6700,6 +6722,46 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-comment .list-block { margin-top: 0; } +.container-view-comment.popover { + border-radius: 4px; + min-height: 170px; + height: 400px; + max-height: 600px; +} +.container-view-comment.popover .toolbar { + border-radius: 0 0 4px 4px; +} +.container-view-comment.popover .toolbar .toolbar-inner { + padding-right: 0; +} +.container-view-comment.popover .page { + border-radius: 13px; +} +.container-view-comment.popover .page .page-content { + padding: 16px; + padding-bottom: 80px; +} +.container-view-comment.popover .page .page-content .list-block { + margin-bottom: 0px; +} +.container-view-comment.popover .page .page-content .list-block .item-content { + padding-left: 0; +} +.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .block-reply { + width: 260px; + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .block-reply .reply-textarea { + min-height: 70px; + width: 260px; + border: 1px solid #c4c4c4; + border-radius: 13px; + padding: 5px; +} .container-view-add-comment { height: 100%; } @@ -6709,12 +6771,29 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-add-comment .navbar a.link i + span { margin-left: 0; } -.container-view-add-comment .page-add-comment { +.container-view-add-comment .page { background-color: #FFFFFF; } -.container-view-add-comment .page-add-comment .page-content { +.container-view-add-comment .page .page-content { padding: 0 16px 80px; } +.popover.add-comment .toolbar { + border-radius: 0 0 13px 13px; +} +.popover.add-comment .toolbar-bottom { + position: absolute; + bottom: 0; +} +.popover.add-comment .wrap-comment { + padding-bottom: 55px; +} +.popover.add-comment .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 5px; + min-height: 150px; + max-height: 300px; + width: 280px; +} .container-add-reply { height: 100%; } @@ -6727,23 +6806,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-add-reply .page { background-color: #FFFFFF; } -.icon-arrow-comment { - border: solid black; - border-width: 0 2px 2px 0; - border-color: #aa5252; - height: 12px; - width: 12px; - display: inline-block; - padding: 0; -} -.icon-arrow-comment.right { - transform: rotate(-45deg); - -webkit-transform: rotate(-45deg); -} -.icon-arrow-comment.left { - transform: rotate(135deg); - -webkit-transform: rotate(135deg); -} .actions-modal-button.color-red { color: #ff3b30; } diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index 0c2270a0d..f34a059de 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -6480,27 +6480,30 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after content: none; } .page-comments .list-block .item-inner, -.page-add-comment .list-block .item-inner, +.add-comment .list-block .item-inner, .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, -.container-add-reply .list-block .item-inner { +.container-add-reply .list-block .item-inner, +.view-comment .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; } .page-comments p, -.page-add-comment p, +.add-comment p, .page-view-comments p, .container-edit-comment p, -.container-add-reply p { +.container-add-reply p, +.view-comment p { margin: 0; word-break: break-word; } .page-comments .user-name, -.page-add-comment .user-name, +.add-comment .user-name, .page-view-comments .user-name, .container-edit-comment .user-name, -.container-add-reply .user-name { +.container-add-reply .user-name, +.view-comment .user-name { font-size: 17px; line-height: 22px; color: #000000; @@ -6508,15 +6511,17 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-weight: bold; } .page-comments .comment-date, -.page-add-comment .comment-date, +.add-comment .comment-date, .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, +.view-comment .comment-date, .page-comments .reply-date, -.page-add-comment .reply-date, +.add-comment .reply-date, .page-view-comments .reply-date, .container-edit-comment .reply-date, -.container-add-reply .reply-date { +.container-add-reply .reply-date, +.view-comment .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6524,15 +6529,17 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after margin-top: 0px; } .page-comments .comment-text, -.page-add-comment .comment-text, +.add-comment .comment-text, .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, +.view-comment .comment-text, .page-comments .reply-text, -.page-add-comment .reply-text, +.add-comment .reply-text, .page-view-comments .reply-text, .container-edit-comment .reply-text, -.container-add-reply .reply-text { +.container-add-reply .reply-text, +.view-comment .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6541,34 +6548,38 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after padding-right: 15px; } .page-comments .reply-item, -.page-add-comment .reply-item, +.add-comment .reply-item, .page-view-comments .reply-item, .container-edit-comment .reply-item, -.container-add-reply .reply-item { +.container-add-reply .reply-item, +.view-comment .reply-item { margin-top: 15px; padding-right: 16px; padding-top: 13px; } .page-comments .reply-item .header-reply, -.page-add-comment .reply-item .header-reply, +.add-comment .reply-item .header-reply, .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, -.container-add-reply .reply-item .header-reply { +.container-add-reply .reply-item .header-reply, +.view-comment .reply-item .header-reply { display: flex; justify-content: space-between; } .page-comments .reply-item .user-name, -.page-add-comment .reply-item .user-name, +.add-comment .reply-item .user-name, .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, -.container-add-reply .reply-item .user-name { +.container-add-reply .reply-item .user-name, +.view-comment .reply-item .user-name { padding-top: 3px; } .page-comments .reply-item:before, -.page-add-comment .reply-item:before, +.add-comment .reply-item:before, .page-view-comments .reply-item:before, .container-edit-comment .reply-item:before, -.container-add-reply .reply-item:before { +.container-add-reply .reply-item:before, +.view-comment .reply-item:before { content: ''; position: absolute; left: auto; @@ -6584,10 +6595,11 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after transform-origin: 50% 100%; } .page-comments .comment-quote, -.page-add-comment .comment-quote, +.add-comment .comment-quote, .page-view-comments .comment-quote, .container-edit-comment .comment-quote, -.container-add-reply .comment-quote { +.container-add-reply .comment-quote, +.view-comment .comment-quote { color: #40865c; border-left: 1px solid #40865c; padding-left: 10px; @@ -6595,22 +6607,25 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after font-size: 15px; } .page-comments .wrap-comment, -.page-add-comment .wrap-comment, +.add-comment .wrap-comment, .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, -.container-add-reply .wrap-comment { +.container-add-reply .wrap-comment, +.view-comment .wrap-comment { padding: 16px 16px 0 16px; } .page-comments .comment-textarea, -.page-add-comment .comment-textarea, +.add-comment .comment-textarea, .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, +.view-comment .comment-textarea, .page-comments .reply-textarea, -.page-add-comment .reply-textarea, +.add-comment .reply-textarea, .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, -.container-add-reply .reply-textarea { +.container-add-reply .reply-textarea, +.view-comment .reply-textarea { margin-top: 10px; background: transparent; border: none; @@ -6638,25 +6653,32 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } -.container-view-comment .page-view-comments { +.container-view-comment .page-view-comments, +.container-view-comment .view-comment { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block { +.container-view-comment .page-view-comments .list-block, +.container-view-comment .view-comment .list-block { margin-bottom: 100px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after { +.container-view-comment .view-comment .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after, +.container-view-comment .view-comment .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner, +.container-view-comment .view-comment .list-block .item-inner { padding: 0; } -.container-view-comment .page-view-comments .list-block .item-inner .header-comment { +.container-view-comment .page-view-comments .list-block .item-inner .header-comment, +.container-view-comment .view-comment .list-block .item-inner .header-comment { display: flex; justify-content: space-between; padding-right: 16px; } -.container-view-comment .page-view-comments .list-block .item-inner .header-comment .comment-right { +.container-view-comment .page-view-comments .list-block .item-inner .header-comment .comment-right, +.container-view-comment .view-comment .list-block .item-inner .header-comment .comment-right { display: flex; justify-content: space-between; width: 70px; @@ -6683,7 +6705,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after justify-content: space-between; } .container-view-comment .toolbar .toolbar-inner .button-right a { - padding: 0 8px; + padding: 0 12px; } .container-view-comment .swipe-container { display: flex; @@ -6700,6 +6722,46 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-comment .list-block { margin-top: 0; } +.container-view-comment.popover { + border-radius: 4px; + min-height: 170px; + height: 400px; + max-height: 600px; +} +.container-view-comment.popover .toolbar { + border-radius: 0 0 4px 4px; +} +.container-view-comment.popover .toolbar .toolbar-inner { + padding-right: 0; +} +.container-view-comment.popover .page { + border-radius: 13px; +} +.container-view-comment.popover .page .page-content { + padding: 16px; + padding-bottom: 80px; +} +.container-view-comment.popover .page .page-content .list-block { + margin-bottom: 0px; +} +.container-view-comment.popover .page .page-content .list-block .item-content { + padding-left: 0; +} +.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .block-reply { + width: 260px; + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .block-reply .reply-textarea { + min-height: 70px; + width: 260px; + border: 1px solid #c4c4c4; + border-radius: 13px; + padding: 5px; +} .container-view-add-comment { height: 100%; } @@ -6709,12 +6771,29 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-add-comment .navbar a.link i + span { margin-left: 0; } -.container-view-add-comment .page-add-comment { +.container-view-add-comment .page { background-color: #FFFFFF; } -.container-view-add-comment .page-add-comment .page-content { +.container-view-add-comment .page .page-content { padding: 0 16px 80px; } +.popover.add-comment .toolbar { + border-radius: 0 0 13px 13px; +} +.popover.add-comment .toolbar-bottom { + position: absolute; + bottom: 0; +} +.popover.add-comment .wrap-comment { + padding-bottom: 55px; +} +.popover.add-comment .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 5px; + min-height: 150px; + max-height: 300px; + width: 280px; +} .container-add-reply { height: 100%; } @@ -6727,23 +6806,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-add-reply .page { background-color: #FFFFFF; } -.icon-arrow-comment { - border: solid black; - border-width: 0 2px 2px 0; - border-color: #40865c; - height: 12px; - width: 12px; - display: inline-block; - padding: 0; -} -.icon-arrow-comment.right { - transform: rotate(-45deg); - -webkit-transform: rotate(-45deg); -} -.icon-arrow-comment.left { - transform: rotate(135deg); - -webkit-transform: rotate(135deg); -} .actions-modal-button.color-red { color: #ff3b30; } From cc94f8bd3c14dcc4cce5d94fd997217b776aea6a Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Wed, 25 Mar 2020 15:23:46 +0300 Subject: [PATCH 06/72] [de mobile] fix bug with overlay, add: edit comment, edit reply for iPad --- .../mobile/lib/controller/Collaboration.js | 220 ++++++++++++------ .../resources/less/ios/_collaboration.less | 53 ++++- .../mobile/resources/css/app-ios.css | 50 +++- .../mobile/resources/css/app-ios.css | 50 +++- .../mobile/resources/css/app-ios.css | 50 +++- 5 files changed, 315 insertions(+), 108 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 052aae316..39afe7302 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -738,8 +738,7 @@ define([ var me = this, isAndroid = Framework7.prototype.device.android === true, appPrefix = !!window.DE ? DE : !!window.PE ? PE : SSE, - mainView = appPrefix.getController('Editor').getView('Editor').f7View, - viewCollaboration = appPrefix.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration'); + mainView = appPrefix.getController('Editor').getView('Editor').f7View; me.indexCurrentComment = 0; @@ -804,23 +803,20 @@ define([ $$('#toolbar-collaboration') ); } + me.getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment); + $('.prev-comment').single('click', _.bind(me.onViewPrevComment, me)); + $('.next-comment').single('click', _.bind(me.onViewNextComment, me)); + $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); + $('.add-reply').single('click', _.bind(me.onClickAddReply, me)); + $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); + $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me)); + + if (me.showComments.length === 1) { + $('.prev-comment, .next-comment').addClass('disabled'); + } appPrefix.getController('Toolbar').getView('Toolbar').hideSearch(); - _.delay(function () { - viewCollaboration.renderViewComments(me.showComments, me.indexCurrentComment); - $('.prev-comment').single('click', _.bind(me.onViewPrevComment, me)); - $('.next-comment').single('click', _.bind(me.onViewNextComment, me)); - $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); - $('.add-reply').single('click', _.bind(me.onClickAddReply, me)); - $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); - $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me)); - - if (me.showComments.length === 1) { - $('.prev-comment, .next-comment').addClass('disabled'); - } - }, 300); - //swipe modal window if ($('.swipe-container').length > 0) { me.swipeFull = false; @@ -1118,7 +1114,7 @@ define([ '' + '' + '', - $$('#context-menu-target') + $$('#toolbar-collaboration') ); } @@ -1159,43 +1155,48 @@ define([ }, initMenuComments: function() { - var me = this; - _.delay(function () { - var _menuItems = []; - _menuItems.push({ - caption: me.textEdit, - event: 'edit' - }); - if (!me.showComments[me.indexCurrentComment].resolved) { + if ($('.actions-modal').length === 0) { + var me = this; + _.delay(function () { + var _menuItems = []; _menuItems.push({ - caption: me.textResolve, - event: 'resolve' + caption: me.textEdit, + event: 'edit' }); - } else { - _menuItems.push({ - caption: me.textReopen, - event: 'resolve' - }); - } - _menuItems.push({ - caption: me.textDeleteComment, - event: 'delete', - color: 'red' - }); - _.each(_menuItems, function (item) { - item.text = item.caption; - item.onClick = function () { - me.onCommentMenuClick(item.event) + if (!me.showComments[me.indexCurrentComment].resolved) { + _menuItems.push({ + caption: me.textResolve, + event: 'resolve' + }); + } else { + _menuItems.push({ + caption: me.textReopen, + event: 'resolve' + }); } - }); + _menuItems.push({ + caption: me.textDeleteComment, + event: 'delete', + color: 'red' + }); + _.each(_menuItems, function (item) { + item.text = item.caption; + item.onClick = function () { + me.onCommentMenuClick(item.event) + } + }); - uiApp.actions([_menuItems, [ - { - text: me.textCancel, - bold: true - } - ]]); - }, 100); + me.menuComments = uiApp.actions([_menuItems, [ + { + text: me.textCancel, + bold: true, + onClick: function () { + me.onCommentMenuClick(); + } + } + ]]); + }, 100); + } }, initReplyMenu: function(event) { @@ -1218,11 +1219,13 @@ define([ me.onCommentMenuClick(item.event, ind); } }); - uiApp.actions([_menuItems, [ { text: me.textCancel, - bold: true + bold: true, + onClick: function () { + me.onCommentMenuClick(); + } } ]]); }, 100); @@ -1230,12 +1233,38 @@ define([ onCommentMenuClick: function(action, indReply) { var me = this; + function addOverlay () { + if (!Common.SharedSettings.get('phone')) { + var $overlay = $('.modal-overlay'); + if (!$overlay.hasClass('modal-overlay-visible')) { + $overlay.addClass('modal-overlay-visible') + } + } + } switch (action) { - case 'edit': me.showEditComment(); break; - case 'resolve': me.onClickResolveComment(); break; - case 'delete': me.onDeleteComment(me.indexCurrentComment); break; - case 'editreply': me.showEditReplyModal(me.indexCurrentComment, indReply); break; - case 'deletereply': me.onDeleteReply(me.indexCurrentComment, indReply); break; + case 'edit': + addOverlay(); + me.showEditComment(); + break; + case 'resolve': + addOverlay(); + me.onClickResolveComment(); + break; + case 'delete': + addOverlay(); + me.onDeleteComment(me.indexCurrentComment); + break; + case 'editreply': + addOverlay(); + me.showEditReplyModal(me.indexCurrentComment, indReply); + break; + case 'deletereply': + addOverlay(); + me.onDeleteReply(me.indexCurrentComment, indReply); + break; + default: + addOverlay(); + break; } }, @@ -1381,16 +1410,24 @@ define([ $textarea.selectionStart = $textarea.value.length; },100); } else { - var $viewComment = $('.container-view-comment'); - var oldComment = $viewComment.find('.comment-text span').text(); - $viewComment.find('.comment-text span').css('display', 'none'); - var template = _.template(''); - $viewComment.find('.comment-text').append(template); - $viewComment('.toolbar').find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'none'); - template = _.template('' + me.textDone + ''); - $viewComment('.button-right').append(template); - template = _.template('' + me.textCancel + ''); - $viewComment('.button-left').append(template); + if ($('.comment-textarea').length === 0) { + var $viewComment = $('.container-view-comment'); + var oldComment = $viewComment.find('.comment-text span').text(); + $viewComment.find('.comment-text span').css('display', 'none'); + var template = _.template(''); + $viewComment.find('.comment-text').append(template); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'none'); + template = _.template('' + me.textDone + ''); + $viewComment.find('.button-right').append(template); + template = _.template('' + me.textCancel + ''); + $viewComment.find('.button-left').append(template); + + _.delay(function () { + var $textarea = $viewComment.find('.comment-textarea')[0]; + $textarea.focus(); + $textarea.selectionStart = $textarea.value.length; + }, 50); + } } $('#edit-comment').single('click', _.bind(function (comment) { var value = $('#comment-text')[0].value; @@ -1398,10 +1435,22 @@ define([ comment.comment = value; this.showComments[this.indexCurrentComment] = comment; this.onChangeComment(comment); - uiApp.closeModal($$(me.editView)); + if (Common.SharedSettings.get('phone')) { + uiApp.closeModal($$(me.editView)); + } else { + var $viewComment = $('.container-view-comment'); + $viewComment.find('a.done-reply, a.cancel-reply').remove(); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + } this.updateViewComment(); } }, me, comment)); + $('.cancel-reply').single('click', _.bind(function () { + var $viewComment = $('.container-view-comment'); + $viewComment.find('a.done-reply, a.cancel-reply, .comment-textarea').remove(); + $viewComment.find('.comment-text span').css('display', 'block'); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + }, me)); } }, @@ -1435,7 +1484,7 @@ define([ '
    ' + reply.username + '
    ' + '
    ' + reply.date + '
    ' + (isAndroid ? '' : '') + - '
    ' + + '
    ' + '' + '' + '' + @@ -1444,20 +1493,47 @@ define([ ); $('.popup').css('z-index', '20000'); _.delay(function () { - var $textarea = $('.reply-textarea')[0]; + var $textarea = $('.edit-reply-textarea')[0]; $textarea.focus(); $textarea.selectionStart = $textarea.value.length; },100); + } else { + var $reply = $('.reply-item[data-ind=' + indReply + ']'); + var $viewComment = $('.container-view-comment'); + $reply.find('.reply-text').css('display', 'none'); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'none'); + var template = _.template(''); + $reply.append(template); + template = _.template('' + me.textDone + ''); + $viewComment.find('.button-right').append(template); + template = _.template('' + me.textCancel + ''); + $viewComment.find('.button-left').append(template); + + _.delay(function () { + var $textarea = $viewComment.find('.edit-reply-textarea')[0]; + $textarea.focus(); + $textarea.selectionStart = $textarea.value.length; + }, 50); } $('#edit-reply').single('click', _.bind(function (comment, indReply) { - var value = $('.reply-textarea')[0].value; + var value = $('.edit-reply-textarea')[0].value; if (value && value.length > 0) { comment.replys[indReply].reply = value; this.onChangeComment(comment); - uiApp.closeModal($$(editView)); + if (Common.SharedSettings.get('phone')) { + uiApp.closeModal($$(editView)); + } else { + $viewComment.find('a.done-reply, a.cancel-reply').remove(); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + } this.updateViewComment(); } }, me, comment, indReply)); + $('.cancel-reply').single('click', _.bind(function () { + $viewComment.find('a.done-reply, a.cancel-reply, .edit-reply-textarea').remove(); + $reply.find('.reply-text').css('display', 'block'); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + }, me)); } } }, diff --git a/apps/common/mobile/resources/less/ios/_collaboration.less b/apps/common/mobile/resources/less/ios/_collaboration.less index e97323e6f..9ac262f3b 100644 --- a/apps/common/mobile/resources/less/ios/_collaboration.less +++ b/apps/common/mobile/resources/less/ios/_collaboration.less @@ -193,7 +193,10 @@ border-top-left-radius: 4px; border-top-right-radius: 4px; height: 50%; - box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12); + .pages { + background-color: #FFFFFF; + } .page-view-comments, .view-comment { background-color: #FFFFFF; .list-block { @@ -288,16 +291,37 @@ } .block-reply { - width: 260px; margin-top: 10px; .reply-textarea { min-height: 70px; - width: 260px; + width: 278px; border: 1px solid #c4c4c4; - border-radius: 13px; + border-radius: 6px; padding: 5px; } } + + .edit-reply-textarea { + min-height: 60px; + width: 100%; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; + height: 60px; + margin-top: 10px; + } + + .comment-text { + padding-right: 0; + + .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 8px; + min-height: 80px; + height: 80px; + } + } } } @@ -321,20 +345,31 @@ } .popover { &.add-comment { - .toolbar { - border-radius: 0 0 13px 13px; - } .toolbar-bottom { position: absolute; bottom: 0; } + .toolbar { + position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + border-radius: 0 0 13px 13px; + &:before { + content: none; + } + .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; + } + } .wrap-comment { - padding-bottom: 55px; + padding-bottom: 80px; } .comment-textarea { border: 1px solid #c4c4c4; border-radius: 5px; - min-height: 150px; + min-height: 80px; max-height: 300px; width: 280px; } diff --git a/apps/documenteditor/mobile/resources/css/app-ios.css b/apps/documenteditor/mobile/resources/css/app-ios.css index 094b9e1bc..fbf79fe47 100644 --- a/apps/documenteditor/mobile/resources/css/app-ios.css +++ b/apps/documenteditor/mobile/resources/css/app-ios.css @@ -6651,7 +6651,10 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after border-top-left-radius: 4px; border-top-right-radius: 4px; height: 50%; - box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12); +} +.container-view-comment .pages { + background-color: #FFFFFF; } .container-view-comment .page-view-comments, .container-view-comment .view-comment { @@ -6752,16 +6755,34 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after padding-right: 0; } .container-view-comment.popover .page .page-content .block-reply { - width: 260px; margin-top: 10px; } .container-view-comment.popover .page .page-content .block-reply .reply-textarea { min-height: 70px; - width: 260px; + width: 278px; border: 1px solid #c4c4c4; - border-radius: 13px; + border-radius: 6px; padding: 5px; } +.container-view-comment.popover .page .page-content .edit-reply-textarea { + min-height: 60px; + width: 100%; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; + height: 60px; + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .comment-text { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .comment-text .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 8px; + min-height: 80px; + height: 80px; +} .container-view-add-comment { height: 100%; } @@ -6777,20 +6798,31 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-add-comment .page .page-content { padding: 0 16px 80px; } -.popover.add-comment .toolbar { - border-radius: 0 0 13px 13px; -} .popover.add-comment .toolbar-bottom { position: absolute; bottom: 0; } +.popover.add-comment .toolbar { + position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + border-radius: 0 0 13px 13px; +} +.popover.add-comment .toolbar:before { + content: none; +} +.popover.add-comment .toolbar .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; +} .popover.add-comment .wrap-comment { - padding-bottom: 55px; + padding-bottom: 80px; } .popover.add-comment .comment-textarea { border: 1px solid #c4c4c4; border-radius: 5px; - min-height: 150px; + min-height: 80px; max-height: 300px; width: 280px; } diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index b7e956d4e..3ace1ab66 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -6651,7 +6651,10 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after border-top-left-radius: 4px; border-top-right-radius: 4px; height: 50%; - box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12); +} +.container-view-comment .pages { + background-color: #FFFFFF; } .container-view-comment .page-view-comments, .container-view-comment .view-comment { @@ -6752,16 +6755,34 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after padding-right: 0; } .container-view-comment.popover .page .page-content .block-reply { - width: 260px; margin-top: 10px; } .container-view-comment.popover .page .page-content .block-reply .reply-textarea { min-height: 70px; - width: 260px; + width: 278px; border: 1px solid #c4c4c4; - border-radius: 13px; + border-radius: 6px; padding: 5px; } +.container-view-comment.popover .page .page-content .edit-reply-textarea { + min-height: 60px; + width: 100%; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; + height: 60px; + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .comment-text { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .comment-text .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 8px; + min-height: 80px; + height: 80px; +} .container-view-add-comment { height: 100%; } @@ -6777,20 +6798,31 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-add-comment .page .page-content { padding: 0 16px 80px; } -.popover.add-comment .toolbar { - border-radius: 0 0 13px 13px; -} .popover.add-comment .toolbar-bottom { position: absolute; bottom: 0; } +.popover.add-comment .toolbar { + position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + border-radius: 0 0 13px 13px; +} +.popover.add-comment .toolbar:before { + content: none; +} +.popover.add-comment .toolbar .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; +} .popover.add-comment .wrap-comment { - padding-bottom: 55px; + padding-bottom: 80px; } .popover.add-comment .comment-textarea { border: 1px solid #c4c4c4; border-radius: 5px; - min-height: 150px; + min-height: 80px; max-height: 300px; width: 280px; } diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index f34a059de..1389f301e 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -6651,7 +6651,10 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after border-top-left-radius: 4px; border-top-right-radius: 4px; height: 50%; - box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12); +} +.container-view-comment .pages { + background-color: #FFFFFF; } .container-view-comment .page-view-comments, .container-view-comment .view-comment { @@ -6752,16 +6755,34 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after padding-right: 0; } .container-view-comment.popover .page .page-content .block-reply { - width: 260px; margin-top: 10px; } .container-view-comment.popover .page .page-content .block-reply .reply-textarea { min-height: 70px; - width: 260px; + width: 278px; border: 1px solid #c4c4c4; - border-radius: 13px; + border-radius: 6px; padding: 5px; } +.container-view-comment.popover .page .page-content .edit-reply-textarea { + min-height: 60px; + width: 100%; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; + height: 60px; + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .comment-text { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .comment-text .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 8px; + min-height: 80px; + height: 80px; +} .container-view-add-comment { height: 100%; } @@ -6777,20 +6798,31 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-add-comment .page .page-content { padding: 0 16px 80px; } -.popover.add-comment .toolbar { - border-radius: 0 0 13px 13px; -} .popover.add-comment .toolbar-bottom { position: absolute; bottom: 0; } +.popover.add-comment .toolbar { + position: absolute; + background-color: #FFFFFF; + box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); + border-radius: 0 0 13px 13px; +} +.popover.add-comment .toolbar:before { + content: none; +} +.popover.add-comment .toolbar .toolbar-inner { + display: flex; + justify-content: space-between; + padding: 0 16px; +} .popover.add-comment .wrap-comment { - padding-bottom: 55px; + padding-bottom: 80px; } .popover.add-comment .comment-textarea { border: 1px solid #c4c4c4; border-radius: 5px; - min-height: 150px; + min-height: 80px; max-height: 300px; width: 280px; } From 9911c851c523b369a1eebec41f583857900a0c71 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 27 Mar 2020 11:40:58 +0300 Subject: [PATCH 07/72] Fix translation --- apps/documenteditor/main/locale/fi.json | 2 +- apps/presentationeditor/main/locale/fi.json | 6 +++--- apps/spreadsheeteditor/main/locale/fi.json | 10 +++++----- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/apps/documenteditor/main/locale/fi.json b/apps/documenteditor/main/locale/fi.json index 508962f5b..7da94b7ad 100644 --- a/apps/documenteditor/main/locale/fi.json +++ b/apps/documenteditor/main/locale/fi.json @@ -1122,7 +1122,7 @@ "DE.Views.ImageSettings.textEdit": "Muokkaa", "DE.Views.ImageSettings.textEditObject": "Muokkaa objektia", "DE.Views.ImageSettings.textFromFile": "Tiedostosta", - "DE.Views.ImageSettings.textFromUrl": "Verkko-osoitteesta", + "DE.Views.ImageSettings.textFromUrl": "URL-osoitteesta", "DE.Views.ImageSettings.textHeight": "Korkeus", "DE.Views.ImageSettings.textInsert": "Korvaa kuva", "DE.Views.ImageSettings.textOriginalSize": "Oletuskoko", diff --git a/apps/presentationeditor/main/locale/fi.json b/apps/presentationeditor/main/locale/fi.json index b7203c6a1..3d8d6efd9 100644 --- a/apps/presentationeditor/main/locale/fi.json +++ b/apps/presentationeditor/main/locale/fi.json @@ -949,7 +949,7 @@ "PE.Views.ImageSettings.textEdit": "Muokkaa", "PE.Views.ImageSettings.textEditObject": "Muokkaa objektia", "PE.Views.ImageSettings.textFromFile": "Tiedostosta", - "PE.Views.ImageSettings.textFromUrl": "Verkko-osoitteesta", + "PE.Views.ImageSettings.textFromUrl": "URL-osoitteesta", "PE.Views.ImageSettings.textHeight": "Korkeus", "PE.Views.ImageSettings.textInsert": "Korvaa kuva", "PE.Views.ImageSettings.textOriginalSize": "Oletuskoko", @@ -1112,7 +1112,7 @@ "PE.Views.SlideSettings.textEmptyPattern": "Ei kuviota", "PE.Views.SlideSettings.textFade": "Häivytys", "PE.Views.SlideSettings.textFromFile": "Tiedostosta", - "PE.Views.SlideSettings.textFromUrl": "Verkko-osoitteesta", + "PE.Views.SlideSettings.textFromUrl": "URL-osoitteesta", "PE.Views.SlideSettings.textGradient": "Kalteva", "PE.Views.SlideSettings.textGradientFill": "Kalteva täyttö", "PE.Views.SlideSettings.textHorizontalIn": "Sisään vaakasuoraan", @@ -1262,7 +1262,7 @@ "PE.Views.TextArtSettings.textDirection": "Suunta", "PE.Views.TextArtSettings.textEmptyPattern": "Ei kuviota", "PE.Views.TextArtSettings.textFromFile": "Tiedostosta", - "PE.Views.TextArtSettings.textFromUrl": "Verkko-osoitteesta", + "PE.Views.TextArtSettings.textFromUrl": "URL-osoitteesta", "PE.Views.TextArtSettings.textGradient": "Kalteva", "PE.Views.TextArtSettings.textGradientFill": "Kalteva täyttö", "PE.Views.TextArtSettings.textImageTexture": "Kuva tai pintarakenne", diff --git a/apps/spreadsheeteditor/main/locale/fi.json b/apps/spreadsheeteditor/main/locale/fi.json index b4de5b85e..65a99e21c 100644 --- a/apps/spreadsheeteditor/main/locale/fi.json +++ b/apps/spreadsheeteditor/main/locale/fi.json @@ -786,7 +786,7 @@ "SSE.Views.ChartSettingsDlg.textHundredMil": "100 000 000", "SSE.Views.ChartSettingsDlg.textHundreds": "Satoja", "SSE.Views.ChartSettingsDlg.textHundredThousands": "100 000", - "SSE.Views.ChartSettingsDlg.textIn": "/", + "SSE.Views.ChartSettingsDlg.textIn": "Sisällä", "SSE.Views.ChartSettingsDlg.textInnerBottom": "Sisäreuna alhaalla", "SSE.Views.ChartSettingsDlg.textInnerTop": "Sisäreuna ylhäällä", "SSE.Views.ChartSettingsDlg.textInvalidRange": "VIRHE! Virheellinen solujen tietoalue", @@ -1050,7 +1050,7 @@ "SSE.Views.ImageSettings.textEdit": "Muokkaa", "SSE.Views.ImageSettings.textEditObject": "Muokkaa objektia", "SSE.Views.ImageSettings.textFromFile": "Tiedostosta", - "SSE.Views.ImageSettings.textFromUrl": "Verkko-osoitteesta", + "SSE.Views.ImageSettings.textFromUrl": "URL-osoitteesta", "SSE.Views.ImageSettings.textHeight": "Korkeus", "SSE.Views.ImageSettings.textInsert": "Korvaa kuva", "SSE.Views.ImageSettings.textKeepRatio": "Vakiosuhteet", @@ -1169,7 +1169,7 @@ "SSE.Views.PrintSettings.textFitCols": "Sovita kaikki sarakkeet yhdelle sivulle", "SSE.Views.PrintSettings.textFitPage": "Sovita taulukko yhdelle sivulle", "SSE.Views.PrintSettings.textFitRows": "Sovita kaikki rivit yhdelle sivulle", - "SSE.Views.PrintSettings.textHideDetails": "Piilota yksityiskohdat", + "SSE.Views.PrintSettings.textHideDetails": "Piilota tiedot", "SSE.Views.PrintSettings.textLayout": "Asettelu", "SSE.Views.PrintSettings.textPageOrientation": "Sivun suunta", "SSE.Views.PrintSettings.textPageScaling": "Skaalaus", @@ -1318,7 +1318,7 @@ "SSE.Views.TableSettings.textIsLocked": "Toinen käyttäjä on muokkaamassa tätä elementtiä. ", "SSE.Views.TableSettings.textLast": "Viimeinen", "SSE.Views.TableSettings.textReservedName": "Nimi, jota yrität käyttää, on jo viitattu solujen kaavoissa. Ole hyvä ja käytä muuta nimeä.", - "SSE.Views.TableSettings.textResize": "Muuta taulukon kokoa", + "SSE.Views.TableSettings.textResize": "Taulukon koko", "SSE.Views.TableSettings.textRows": "Rivit", "SSE.Views.TableSettings.textSelectData": "Valitse tiedot", "SSE.Views.TableSettings.textTableName": "Taulukon nimi", @@ -1338,7 +1338,7 @@ "SSE.Views.TextArtSettings.textDirection": "Suunta", "SSE.Views.TextArtSettings.textEmptyPattern": "Ei kuviota", "SSE.Views.TextArtSettings.textFromFile": "Tiedostosta", - "SSE.Views.TextArtSettings.textFromUrl": "Verkko-osoitteesta", + "SSE.Views.TextArtSettings.textFromUrl": "URL-osoitteesta", "SSE.Views.TextArtSettings.textGradient": "Kalteva", "SSE.Views.TextArtSettings.textGradientFill": "Kalteva täyttö", "SSE.Views.TextArtSettings.textImageTexture": "Kuva tai pintarakenne", From 13025de93b16fa2a98124aae9c9a6d98c1d04416 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 27 Mar 2020 12:09:34 +0300 Subject: [PATCH 08/72] [SSE] Fix translation --- apps/spreadsheeteditor/main/app/view/ScaleDialog.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/view/ScaleDialog.js b/apps/spreadsheeteditor/main/app/view/ScaleDialog.js index add9bd0ce..f9cdd2171 100644 --- a/apps/spreadsheeteditor/main/app/view/ScaleDialog.js +++ b/apps/spreadsheeteditor/main/app/view/ScaleDialog.js @@ -68,11 +68,11 @@ define([ '
    ', '
    ', '
    ', - '', + '', '
    ', '
    ', '
    ', - '', + '', '
    ', '
    ', '
    ', From 29c1dfeedc2b8d8dc906f9871772e27fc12e1ef6 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 27 Mar 2020 13:17:29 +0300 Subject: [PATCH 09/72] Fix translation --- apps/spreadsheeteditor/main/locale/hu.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/spreadsheeteditor/main/locale/hu.json b/apps/spreadsheeteditor/main/locale/hu.json index 4ba3bf7ed..862f66db4 100644 --- a/apps/spreadsheeteditor/main/locale/hu.json +++ b/apps/spreadsheeteditor/main/locale/hu.json @@ -59,7 +59,7 @@ "Common.Views.About.txtVersion": "Verzió", "Common.Views.Chat.textSend": "Küldés", "Common.Views.Comments.textAdd": "Hozzáad", - "Common.Views.Comments.textAddComment": "Hozzászólás hozzáadása", + "Common.Views.Comments.textAddComment": "Hozzáad", "Common.Views.Comments.textAddCommentToDoc": "Hozzászólás hozzáadása a dokumentumhoz", "Common.Views.Comments.textAddReply": "Válasz hozzáadása", "Common.Views.Comments.textAnonym": "Vendég", @@ -1305,7 +1305,7 @@ "SSE.Views.ChartSettingsDlg.textMinorType": "Kisebb típusú", "SSE.Views.ChartSettingsDlg.textMinValue": "Minimum érték", "SSE.Views.ChartSettingsDlg.textNextToAxis": "Tengely mellett", - "SSE.Views.ChartSettingsDlg.textNone": "nincs", + "SSE.Views.ChartSettingsDlg.textNone": "Nincs", "SSE.Views.ChartSettingsDlg.textNoOverlay": "Nincs átfedés", "SSE.Views.ChartSettingsDlg.textOneCell": "Mozgatás cellákkal méretezés nélkül", "SSE.Views.ChartSettingsDlg.textOnTickMarks": "Tengely osztásokon", @@ -2209,7 +2209,7 @@ "SSE.Views.TableSettings.textLast": "Utolsó", "SSE.Views.TableSettings.textLongOperation": "Hosszú művelet", "SSE.Views.TableSettings.textReservedName": "A használni kívánt név már hivatkozásra került egyes képletekben. Kérjük, használjon más nevet.", - "SSE.Views.TableSettings.textResize": "Táblázat átméretezése", + "SSE.Views.TableSettings.textResize": "Táblázat méret", "SSE.Views.TableSettings.textRows": "Sorok", "SSE.Views.TableSettings.textSelectData": "Adatok kiválasztása", "SSE.Views.TableSettings.textTableName": "Táblázat név", From 4b0b7b0472560bf573cc69143ae275a0cea2df48 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 27 Mar 2020 14:21:12 +0300 Subject: [PATCH 10/72] Fix Bug 44940 --- apps/common/main/lib/view/PasswordDialog.js | 9 ++++----- apps/documenteditor/main/app/view/StyleTitleDialog.js | 1 + 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/common/main/lib/view/PasswordDialog.js b/apps/common/main/lib/view/PasswordDialog.js index 09ed9007c..8ef59c485 100644 --- a/apps/common/main/lib/view/PasswordDialog.js +++ b/apps/common/main/lib/view/PasswordDialog.js @@ -55,7 +55,7 @@ define([ _.extend(_options, { width : 350, - height : 220, + height : 238, header : true, cls : 'modal-dlg', contentTemplate : '', @@ -65,7 +65,7 @@ define([ }, options); this.template = options.template || [ - '
    ', + '
    ', '
    ', '', '
    ', @@ -76,9 +76,8 @@ define([ '
    ', '', '
    ', - '
    ', - '
    ', - '
    ' + '
    ', + '
    ' ].join(''); this.handler = options.handler; diff --git a/apps/documenteditor/main/app/view/StyleTitleDialog.js b/apps/documenteditor/main/app/view/StyleTitleDialog.js index bbda408ea..2fdbb0189 100644 --- a/apps/documenteditor/main/app/view/StyleTitleDialog.js +++ b/apps/documenteditor/main/app/view/StyleTitleDialog.js @@ -45,6 +45,7 @@ define([ DE.Views.StyleTitleDialog = Common.UI.Window.extend(_.extend({ options: { width: 350, + height: 196, style: 'min-width: 230px;', cls: 'modal-dlg', buttons: ['ok', 'cancel'] From a7d78a781d74be960cb69b073099878f582d30bd Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 27 Mar 2020 20:00:50 +0300 Subject: [PATCH 11/72] [SSE] Fix Bug 44942 --- apps/spreadsheeteditor/main/app/controller/DocumentHolder.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index a523962a0..295da6c0e 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -2245,7 +2245,8 @@ define([ inputtip.ref.getBSTip().$tip.css({ top : showPoint[1] + 'px', - left: showPoint[0] + 'px' + left: showPoint[0] + 'px', + 'z-index': 900 }); } else { if (!inputtip.isHidden && inputtip.ref) { From 23f6028575cb71c276eb597302a0d4e3ae12e59c Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Mon, 30 Mar 2020 19:52:13 +0300 Subject: [PATCH 12/72] [de mobile] add comment move to add other --- .../mobile/lib/controller/Collaboration.js | 133 ++++-------------- .../resources/less/ios/_collaboration.less | 73 ++++------ .../less/material/_collaboration.less | 33 ++++- .../mobile/app/controller/DocumentHolder.js | 8 +- .../mobile/app/controller/add/AddOther.js | 17 +++ .../mobile/app/template/AddOther.template | 30 ++++ .../mobile/app/view/add/AddOther.js | 27 +++- .../mobile/resources/css/app-ios.css | 66 ++++----- .../mobile/resources/css/app-material.css | 52 +++++-- .../mobile/resources/less/ios/_icons.less | 5 + .../resources/less/material/_icons.less | 10 ++ .../mobile/resources/css/app-ios.css | 61 ++++---- .../mobile/resources/css/app-material.css | 42 ++++-- .../mobile/resources/css/app-ios.css | 61 ++++---- .../mobile/resources/css/app-material.css | 42 ++++-- 15 files changed, 375 insertions(+), 285 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 39afe7302..af364fbdd 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -685,6 +685,32 @@ define([ }, //Comments + getCurrentUser: function () { + var me = this; + _.each(editUsers, function(item){ + if (item.asc_getIdOriginal() === _userId) { + me.currentUser = item; + } + }); + return me.currentUser; + }, + + getCommentInfo: function () { + this.getCurrentUser(); + if (this.currentUser) { + var date = new Date(); + var comment = { + time: date.getTime(), + date: this.dateToLocaleTimeString(date), + userid: _userId, + username: this.currentUser.asc_getUserName(), + usercolor: this.currentUser.asc_getColor(), + userInitials: this.getInitials(this.currentUser.asc_getUserName()) + }; + return comment; + } + }, + getInitials: function(name) { var fio = name.split(' '); var initials = fio[0].substring(0, 1).toUpperCase(); @@ -1014,11 +1040,7 @@ define([ addReply.asc_putText(replyVal); addReply.asc_putTime(me.utcDateToString(new Date())); addReply.asc_putOnlyOfficeTime(me.ooDateToString(new Date())); - _.each(editUsers, function(item){ - if (item.asc_getIdOriginal() === _userId) { - me.currentUser = item; - } - }); + me.getCurrentUser(); addReply.asc_putUserId(_userId); addReply.asc_putUserName(me.currentUser.asc_getUserName()); @@ -1030,104 +1052,7 @@ define([ } }, - showAddCommentModal: function() { - var me = this, - isAndroid = Framework7.prototype.device.android === true, - modalView, - appPrefix = !!window.DE ? DE : !!window.PE ? PE : SSE, - mainView = appPrefix.getController('Editor').getView('Editor').f7View; - - uiApp.closeModal(); - - var date = new Date(); - _.each(editUsers, function(item){ - if (item.asc_getIdOriginal() === _userId) { - me.currentUser = item; - } - }); - if (!me.currentUser) return; - var comment = { - time: date.getTime(), - date: me.dateToLocaleTimeString(date), - userid: _userId, - username: me.currentUser.asc_getUserName(), - usercolor: me.currentUser.asc_getColor(), - userInitials: me.getInitials(me.currentUser.asc_getUserName()) - }; - - if (Common.SharedSettings.get('phone')) { - modalView = $$(uiApp.popup( - '' - )).on('opened', function () { - if (_.isFunction(me.api.asc_OnShowContextMenu)) { - me.api.asc_OnShowContextMenu() - } - }).on('close', function (e) { - mainView.showNavbar(); - }).on('closed', function () { - if (_.isFunction(me.api.asc_OnHideContextMenu)) { - me.api.asc_OnHideContextMenu() - } - }); - mainView.hideNavbar(); - } else { - modalView = uiApp.popover( - '
    ' + - '
    ' + - '
    ' + - '
    ' + - '
    ' + - '' + me.textCancel + '' + - '
    ' + - '' + - '
    ' + - '
    ' + - '
    ' + - (isAndroid ? '
    ' + comment.userInitials + '
    ' : '') + - '
    ' + comment.username + '
    ' + - '
    ' + comment.date + '
    ' + - (isAndroid ? '
    ' : '') + - '
    ' + - '
    ' + - '
    ' + - '
    ', - $$('#toolbar-collaboration') - ); - } - - appPrefix.getController('Toolbar').getView('Toolbar').hideSearch(); - - $('#add-comment').single('click', _.bind(me.onAddNewComment, me)); - - _.defer(function(){ - $('#comment-text').focus(); - }); - }, - - onAddNewComment: function() { + onAddNewComment: function(value) { var comment; if (typeof Asc.asc_CCommentDataWord !== 'undefined') { comment = new Asc.asc_CCommentDataWord(null); @@ -1135,7 +1060,7 @@ define([ comment = new Asc.asc_CCommentData(null); } - var textComment = $('#comment-text').val(); + var textComment = value; if (textComment.length > 0) { comment.asc_putText(textComment); diff --git a/apps/common/mobile/resources/less/ios/_collaboration.less b/apps/common/mobile/resources/less/ios/_collaboration.less index 9ac262f3b..5afebdaaa 100644 --- a/apps/common/mobile/resources/less/ios/_collaboration.less +++ b/apps/common/mobile/resources/less/ios/_collaboration.less @@ -102,6 +102,9 @@ margin: 0; word-break: break-word; } + .list-reply { + padding-left: 32px; + } .user-name { font-size: 17px; line-height: 22px; @@ -328,54 +331,36 @@ } } -.container-view-add-comment { - height: 100%; - .navbar { - background-color: #FFFFFF; - a.link i + span { - margin-left: 0; +#done-comment { + color: @themeColor; +} +.page-add-comment { + background-color: #FFFFFF; + .wrap-comment { + padding: 16px 16px 0 16px; + .header-comment { + justify-content: flex-start; } - } - .page { - background-color: #FFFFFF; - .page-content { - padding: 0 16px 80px; + .user-name { + font-weight: bold; + } + .comment-date { + font-size: 12px; + color: #6d6d72; + } + .wrap-textarea { + margin-top: 16px; + padding-right: 6px; + .comment-textarea { + border: 1px solid #c4c4c4; + margin-top: 0; + min-height: 100px; + border-radius: 4px; + width: 100%; + } } } } -.popover { - &.add-comment { - .toolbar-bottom { - position: absolute; - bottom: 0; - } - .toolbar { - position: absolute; - background-color: #FFFFFF; - box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); - border-radius: 0 0 13px 13px; - &:before { - content: none; - } - .toolbar-inner { - display: flex; - justify-content: space-between; - padding: 0 16px; - } - } - .wrap-comment { - padding-bottom: 80px; - } - .comment-textarea { - border: 1px solid #c4c4c4; - border-radius: 5px; - min-height: 80px; - max-height: 300px; - width: 280px; - } - } -} - .container-add-reply { height: 100%; .navbar { diff --git a/apps/common/mobile/resources/less/material/_collaboration.less b/apps/common/mobile/resources/less/material/_collaboration.less index 7760211d6..18f1c2cc0 100644 --- a/apps/common/mobile/resources/less/material/_collaboration.less +++ b/apps/common/mobile/resources/less/material/_collaboration.less @@ -100,6 +100,9 @@ margin: 0; word-break: break-word; } + .list-reply { + padding-left: 32px; + } .user-name { font-size: 16px; line-height: 22px; @@ -282,7 +285,35 @@ } } -.container-view-add-comment, .container-edit-comment, .container-add-reply, container-edit-comment { +#done-comment { + padding: 0 16px; +} +.page-add-comment { + .wrap-comment { + padding: 16px 16px 0 16px; + .header-comment { + justify-content: flex-start; + } + .user-name { + font-weight: bold; + } + .comment-date { + font-size: 12px; + color: #6d6d72; + } + .wrap-textarea { + padding-right: 6px; + .comment-textarea { + border: 1px solid #c4c4c4; + margin-top: 0; + min-height: 100px; + border-radius: 4px; + } + } + } +} + +.container-edit-comment, .container-add-reply, container-edit-comment { height: 100%; .navbar { background-color: #FFFFFF; diff --git a/apps/documenteditor/mobile/app/controller/DocumentHolder.js b/apps/documenteditor/mobile/app/controller/DocumentHolder.js index 532a74301..d82fec29f 100644 --- a/apps/documenteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/documenteditor/mobile/app/controller/DocumentHolder.js @@ -164,11 +164,9 @@ define([ var getCollaboration = DE.getController('Common.Controllers.Collaboration'); getCollaboration.showCommentModal(); } else if ('addcomment' == eventName) { - var getCollaboration = DE.getController('Common.Controllers.Collaboration'); - /*if (this.api && this.mode.canCoAuthoring && this.mode.canComments) { - - }*/ - getCollaboration.showAddCommentModal(); + _view.hideMenu(); + DE.getController('AddContainer').showModal(); + DE.getController('AddOther').getView('AddOther').showPageComment(false); } else if ('showActionSheet' == eventName && _actionSheets.length > 0) { _.delay(function () { _.each(_actionSheets, function (action) { diff --git a/apps/documenteditor/mobile/app/controller/add/AddOther.js b/apps/documenteditor/mobile/app/controller/add/AddOther.js index 8b14782a0..09a3681e1 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddOther.js +++ b/apps/documenteditor/mobile/app/controller/add/AddOther.js @@ -111,10 +111,27 @@ define([ } } else if (pageId == '#addother-insert-footnote') { me.initInsertFootnote(); + } else if (pageId === "#addother-insert-comment") { + me.initInsertComment(); } }, // Handlers + initInsertComment: function () { + var comment = DE.getController('Common.Controllers.Collaboration').getCommentInfo(); + if (comment) { + this.getView('AddOther').renderComment(comment); + $('#done-comment').single('click', _.bind(this.onDoneComment, this)); + } + }, + + onDoneComment: function() { + var value = $('#comment-text').val(); + if (value.length > 0) { + DE.getController('Common.Controllers.Collaboration').onAddNewComment(value); + DE.getController('AddContainer').hideModal(); + } + }, initInsertFootnote: function () { var me = this, diff --git a/apps/documenteditor/mobile/app/template/AddOther.template b/apps/documenteditor/mobile/app/template/AddOther.template index 76c91c506..d4b9d19f6 100644 --- a/apps/documenteditor/mobile/app/template/AddOther.template +++ b/apps/documenteditor/mobile/app/template/AddOther.template @@ -74,6 +74,18 @@
    +
  • + +
    +
    + +
    +
    +
    <%= scope.textComment %>
    +
    +
    +
    +
  • @@ -324,4 +336,22 @@ + + + + \ No newline at end of file diff --git a/apps/documenteditor/mobile/app/view/add/AddOther.js b/apps/documenteditor/mobile/app/view/add/AddOther.js index c5c1afd41..76bfaeb07 100644 --- a/apps/documenteditor/mobile/app/view/add/AddOther.js +++ b/apps/documenteditor/mobile/app/view/add/AddOther.js @@ -70,6 +70,7 @@ define([ $('#add-other-link').single('click', _.bind(me.showLink, me)); $('#add-other-pagenumber').single('click', _.bind(me.showPagePosition, me)); $('#add-other-footnote').single('click', _.bind(me.showPageFootnote, me)); + $('#add-other-comment').single('click', _.bind(me.showPageComment, me)); me.initControls(); }, @@ -143,6 +144,26 @@ define([ this.showPage('#addother-insert-footnote'); }, + showPageComment: function(animate) { + this.showPage('#addother-insert-comment', animate); + }, + + renderComment: function(comment) { + var $commentInfo = $('#comment-info'); + var template = [ + '<% if (android) { %>
    <%= comment.userInitials %>
    <% } %>', + '
    <%= comment.username %>
    ', + '
    <%= comment.date %>
    ', + '<% if (android) { %>
    <% } %>', + '
    ' + ].join(''); + var insert = _.template(template)({ + android: Framework7.prototype.device.android, + comment: comment + }); + $commentInfo.html(insert); + }, + renderNumFormat: function (dataFormat, selectFormat) { var $listFormat = $('#list-format-footnote ul'), items = []; @@ -221,8 +242,10 @@ define([ textInsertFootnote: 'Insert Footnote', textFormat: 'Format', textStartFrom: 'Start At', - textLocation: 'Location' - + textLocation: 'Location', + textComment: 'Comment', + textAddComment: 'Add Comment', + textDone: 'Done' } })(), DE.Views.AddOther || {})) diff --git a/apps/documenteditor/mobile/resources/css/app-ios.css b/apps/documenteditor/mobile/resources/css/app-ios.css index fbf79fe47..7bd3329a2 100644 --- a/apps/documenteditor/mobile/resources/css/app-ios.css +++ b/apps/documenteditor/mobile/resources/css/app-ios.css @@ -6498,6 +6498,14 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after margin: 0; word-break: break-word; } +.page-comments .list-reply, +.add-comment .list-reply, +.page-view-comments .list-reply, +.container-edit-comment .list-reply, +.container-add-reply .list-reply, +.view-comment .list-reply { + padding-left: 32px; +} .page-comments .user-name, .add-comment .user-name, .page-view-comments .user-name, @@ -6783,48 +6791,35 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after min-height: 80px; height: 80px; } -.container-view-add-comment { - height: 100%; +#done-comment { + color: #446995; } -.container-view-add-comment .navbar { +.page-add-comment { background-color: #FFFFFF; } -.container-view-add-comment .navbar a.link i + span { - margin-left: 0; +.page-add-comment .wrap-comment { + padding: 16px 16px 0 16px; } -.container-view-add-comment .page { - background-color: #FFFFFF; +.page-add-comment .wrap-comment .header-comment { + justify-content: flex-start; } -.container-view-add-comment .page .page-content { - padding: 0 16px 80px; +.page-add-comment .wrap-comment .user-name { + font-weight: bold; } -.popover.add-comment .toolbar-bottom { - position: absolute; - bottom: 0; +.page-add-comment .wrap-comment .comment-date { + font-size: 12px; + color: #6d6d72; } -.popover.add-comment .toolbar { - position: absolute; - background-color: #FFFFFF; - box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); - border-radius: 0 0 13px 13px; +.page-add-comment .wrap-comment .wrap-textarea { + margin-top: 16px; + padding-right: 6px; } -.popover.add-comment .toolbar:before { - content: none; -} -.popover.add-comment .toolbar .toolbar-inner { - display: flex; - justify-content: space-between; - padding: 0 16px; -} -.popover.add-comment .wrap-comment { - padding-bottom: 80px; -} -.popover.add-comment .comment-textarea { +.page-add-comment .wrap-comment .wrap-textarea .comment-textarea { border: 1px solid #c4c4c4; - border-radius: 5px; - min-height: 80px; - max-height: 300px; - width: 280px; + margin-top: 0; + min-height: 100px; + border-radius: 4px; + width: 100%; } .container-add-reply { height: 100%; @@ -7399,6 +7394,11 @@ i.icon.icon-resolve-comment.check { height: 30px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200H30V30H0V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.6195%2020.8555C11.8237%2021.0673%2012.1658%2021.0577%2012.358%2020.8349L22.516%209.05783C22.7843%208.74676%2022.7528%208.27781%2022.4453%208.00545V8.00545C22.1315%207.72756%2021.651%207.7604%2021.3779%208.07839L12.3546%2018.587C12.1638%2018.8092%2011.8238%2018.8206%2011.6186%2018.6117L8.10643%2015.0366C7.81575%2014.7407%207.34084%2014.7345%207.04258%2015.0228V15.0228C6.74283%2015.3125%206.73444%2015.7903%207.02383%2016.0904L11.6195%2020.8555Z%22%20fill%3D%22%234cd964%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-insert-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); +} .label-switch input[type="checkbox"]:checked + .checkbox { background: #446995; } diff --git a/apps/documenteditor/mobile/resources/css/app-material.css b/apps/documenteditor/mobile/resources/css/app-material.css index 6d5966cac..2d06856ad 100644 --- a/apps/documenteditor/mobile/resources/css/app-material.css +++ b/apps/documenteditor/mobile/resources/css/app-material.css @@ -6081,6 +6081,13 @@ html.phone .document-menu .list-block .item-link { margin: 0; word-break: break-word; } +.page-comments .list-reply, +.page-add-comment .list-reply, +.page-view-comments .list-reply, +.container-edit-comment .list-reply, +.container-add-reply .list-reply { + padding-left: 32px; +} .page-comments .user-name, .page-add-comment .user-name, .page-view-comments .user-name, @@ -6326,20 +6333,42 @@ html.phone .document-menu .list-block .item-link { .container-view-comment .list-block { margin-top: 0; } -.container-view-add-comment, +#done-comment { + padding: 0 16px; +} +.page-add-comment .wrap-comment { + padding: 16px 16px 0 16px; +} +.page-add-comment .wrap-comment .header-comment { + justify-content: flex-start; +} +.page-add-comment .wrap-comment .user-name { + font-weight: bold; +} +.page-add-comment .wrap-comment .comment-date { + font-size: 12px; + color: #6d6d72; +} +.page-add-comment .wrap-comment .wrap-textarea { + padding-right: 6px; +} +.page-add-comment .wrap-comment .wrap-textarea .comment-textarea { + border: 1px solid #c4c4c4; + margin-top: 0; + min-height: 100px; + border-radius: 4px; +} .container-edit-comment, .container-add-reply, container-edit-comment { height: 100%; } -.container-view-add-comment .navbar, .container-edit-comment .navbar, .container-add-reply .navbar, container-edit-comment .navbar { background-color: #FFFFFF; color: #000; } -.container-view-add-comment .navbar:after, .container-edit-comment .navbar:after, .container-add-reply .navbar:after, container-edit-comment .navbar:after { @@ -6357,43 +6386,36 @@ container-edit-comment .navbar:after { -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; } -.container-view-add-comment .navbar .navbar-inner, .container-edit-comment .navbar .navbar-inner, .container-add-reply .navbar .navbar-inner, container-edit-comment .navbar .navbar-inner { justify-content: space-between; } -.container-view-add-comment .navbar a.link i + span, .container-edit-comment .navbar a.link i + span, .container-add-reply .navbar a.link i + span, container-edit-comment .navbar a.link i + span { margin-left: 0; } -.container-view-add-comment .navbar .center, .container-edit-comment .navbar .center, .container-add-reply .navbar .center, container-edit-comment .navbar .center { font-size: 18px; } -.container-view-add-comment .navbar .right, .container-edit-comment .navbar .right, .container-add-reply .navbar .right, container-edit-comment .navbar .right { margin-left: 0; } -.container-view-add-comment .page-add-comment, .container-edit-comment .page-add-comment, .container-add-reply .page-add-comment, container-edit-comment .page-add-comment { background-color: #FFFFFF; } -.container-view-add-comment .page-add-comment .page-content, .container-edit-comment .page-add-comment .page-content, .container-add-reply .page-add-comment .page-content, container-edit-comment .page-add-comment .page-content { padding: 0 16px 80px; } -.container-view-add-comment .header-comment, .container-edit-comment .header-comment, .container-add-reply .header-comment, container-edit-comment .header-comment { @@ -6873,6 +6895,16 @@ i.icon.icon-done-comment { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-insert-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-done-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%3C%2Fsvg%3E"); +} .navbar i.icon.icon-undo { width: 22px; height: 22px; diff --git a/apps/documenteditor/mobile/resources/less/ios/_icons.less b/apps/documenteditor/mobile/resources/less/ios/_icons.less index 45534e386..d673cf708 100644 --- a/apps/documenteditor/mobile/resources/less/ios/_icons.less +++ b/apps/documenteditor/mobile/resources/less/ios/_icons.less @@ -493,4 +493,9 @@ i.icon { height: 30px; .encoded-svg-background(''); } + &.icon-insert-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } \ No newline at end of file diff --git a/apps/documenteditor/mobile/resources/less/material/_icons.less b/apps/documenteditor/mobile/resources/less/material/_icons.less index 40b21197f..cc2d96f0f 100644 --- a/apps/documenteditor/mobile/resources/less/material/_icons.less +++ b/apps/documenteditor/mobile/resources/less/material/_icons.less @@ -439,6 +439,16 @@ i.icon { height: 24px; .encoded-svg-background(''); } + &.icon-insert-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-done-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } // Overwrite color for toolbar diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index 3ace1ab66..9a561db39 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -6498,6 +6498,14 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after margin: 0; word-break: break-word; } +.page-comments .list-reply, +.add-comment .list-reply, +.page-view-comments .list-reply, +.container-edit-comment .list-reply, +.container-add-reply .list-reply, +.view-comment .list-reply { + padding-left: 32px; +} .page-comments .user-name, .add-comment .user-name, .page-view-comments .user-name, @@ -6783,48 +6791,35 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after min-height: 80px; height: 80px; } -.container-view-add-comment { - height: 100%; +#done-comment { + color: #aa5252; } -.container-view-add-comment .navbar { +.page-add-comment { background-color: #FFFFFF; } -.container-view-add-comment .navbar a.link i + span { - margin-left: 0; +.page-add-comment .wrap-comment { + padding: 16px 16px 0 16px; } -.container-view-add-comment .page { - background-color: #FFFFFF; +.page-add-comment .wrap-comment .header-comment { + justify-content: flex-start; } -.container-view-add-comment .page .page-content { - padding: 0 16px 80px; +.page-add-comment .wrap-comment .user-name { + font-weight: bold; } -.popover.add-comment .toolbar-bottom { - position: absolute; - bottom: 0; +.page-add-comment .wrap-comment .comment-date { + font-size: 12px; + color: #6d6d72; } -.popover.add-comment .toolbar { - position: absolute; - background-color: #FFFFFF; - box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); - border-radius: 0 0 13px 13px; +.page-add-comment .wrap-comment .wrap-textarea { + margin-top: 16px; + padding-right: 6px; } -.popover.add-comment .toolbar:before { - content: none; -} -.popover.add-comment .toolbar .toolbar-inner { - display: flex; - justify-content: space-between; - padding: 0 16px; -} -.popover.add-comment .wrap-comment { - padding-bottom: 80px; -} -.popover.add-comment .comment-textarea { +.page-add-comment .wrap-comment .wrap-textarea .comment-textarea { border: 1px solid #c4c4c4; - border-radius: 5px; - min-height: 80px; - max-height: 300px; - width: 280px; + margin-top: 0; + min-height: 100px; + border-radius: 4px; + width: 100%; } .container-add-reply { height: 100%; diff --git a/apps/presentationeditor/mobile/resources/css/app-material.css b/apps/presentationeditor/mobile/resources/css/app-material.css index df2107b28..1e3d2c4fc 100644 --- a/apps/presentationeditor/mobile/resources/css/app-material.css +++ b/apps/presentationeditor/mobile/resources/css/app-material.css @@ -6081,6 +6081,13 @@ html.phone .document-menu .list-block .item-link { margin: 0; word-break: break-word; } +.page-comments .list-reply, +.page-add-comment .list-reply, +.page-view-comments .list-reply, +.container-edit-comment .list-reply, +.container-add-reply .list-reply { + padding-left: 32px; +} .page-comments .user-name, .page-add-comment .user-name, .page-view-comments .user-name, @@ -6326,20 +6333,42 @@ html.phone .document-menu .list-block .item-link { .container-view-comment .list-block { margin-top: 0; } -.container-view-add-comment, +#done-comment { + padding: 0 16px; +} +.page-add-comment .wrap-comment { + padding: 16px 16px 0 16px; +} +.page-add-comment .wrap-comment .header-comment { + justify-content: flex-start; +} +.page-add-comment .wrap-comment .user-name { + font-weight: bold; +} +.page-add-comment .wrap-comment .comment-date { + font-size: 12px; + color: #6d6d72; +} +.page-add-comment .wrap-comment .wrap-textarea { + padding-right: 6px; +} +.page-add-comment .wrap-comment .wrap-textarea .comment-textarea { + border: 1px solid #c4c4c4; + margin-top: 0; + min-height: 100px; + border-radius: 4px; +} .container-edit-comment, .container-add-reply, container-edit-comment { height: 100%; } -.container-view-add-comment .navbar, .container-edit-comment .navbar, .container-add-reply .navbar, container-edit-comment .navbar { background-color: #FFFFFF; color: #000; } -.container-view-add-comment .navbar:after, .container-edit-comment .navbar:after, .container-add-reply .navbar:after, container-edit-comment .navbar:after { @@ -6357,43 +6386,36 @@ container-edit-comment .navbar:after { -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; } -.container-view-add-comment .navbar .navbar-inner, .container-edit-comment .navbar .navbar-inner, .container-add-reply .navbar .navbar-inner, container-edit-comment .navbar .navbar-inner { justify-content: space-between; } -.container-view-add-comment .navbar a.link i + span, .container-edit-comment .navbar a.link i + span, .container-add-reply .navbar a.link i + span, container-edit-comment .navbar a.link i + span { margin-left: 0; } -.container-view-add-comment .navbar .center, .container-edit-comment .navbar .center, .container-add-reply .navbar .center, container-edit-comment .navbar .center { font-size: 18px; } -.container-view-add-comment .navbar .right, .container-edit-comment .navbar .right, .container-add-reply .navbar .right, container-edit-comment .navbar .right { margin-left: 0; } -.container-view-add-comment .page-add-comment, .container-edit-comment .page-add-comment, .container-add-reply .page-add-comment, container-edit-comment .page-add-comment { background-color: #FFFFFF; } -.container-view-add-comment .page-add-comment .page-content, .container-edit-comment .page-add-comment .page-content, .container-add-reply .page-add-comment .page-content, container-edit-comment .page-add-comment .page-content { padding: 0 16px 80px; } -.container-view-add-comment .header-comment, .container-edit-comment .header-comment, .container-add-reply .header-comment, container-edit-comment .header-comment { diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index 1389f301e..5b03b9502 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -6498,6 +6498,14 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after margin: 0; word-break: break-word; } +.page-comments .list-reply, +.add-comment .list-reply, +.page-view-comments .list-reply, +.container-edit-comment .list-reply, +.container-add-reply .list-reply, +.view-comment .list-reply { + padding-left: 32px; +} .page-comments .user-name, .add-comment .user-name, .page-view-comments .user-name, @@ -6783,48 +6791,35 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after min-height: 80px; height: 80px; } -.container-view-add-comment { - height: 100%; +#done-comment { + color: #40865c; } -.container-view-add-comment .navbar { +.page-add-comment { background-color: #FFFFFF; } -.container-view-add-comment .navbar a.link i + span { - margin-left: 0; +.page-add-comment .wrap-comment { + padding: 16px 16px 0 16px; } -.container-view-add-comment .page { - background-color: #FFFFFF; +.page-add-comment .wrap-comment .header-comment { + justify-content: flex-start; } -.container-view-add-comment .page .page-content { - padding: 0 16px 80px; +.page-add-comment .wrap-comment .user-name { + font-weight: bold; } -.popover.add-comment .toolbar-bottom { - position: absolute; - bottom: 0; +.page-add-comment .wrap-comment .comment-date { + font-size: 12px; + color: #6d6d72; } -.popover.add-comment .toolbar { - position: absolute; - background-color: #FFFFFF; - box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); - border-radius: 0 0 13px 13px; +.page-add-comment .wrap-comment .wrap-textarea { + margin-top: 16px; + padding-right: 6px; } -.popover.add-comment .toolbar:before { - content: none; -} -.popover.add-comment .toolbar .toolbar-inner { - display: flex; - justify-content: space-between; - padding: 0 16px; -} -.popover.add-comment .wrap-comment { - padding-bottom: 80px; -} -.popover.add-comment .comment-textarea { +.page-add-comment .wrap-comment .wrap-textarea .comment-textarea { border: 1px solid #c4c4c4; - border-radius: 5px; - min-height: 80px; - max-height: 300px; - width: 280px; + margin-top: 0; + min-height: 100px; + border-radius: 4px; + width: 100%; } .container-add-reply { height: 100%; diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-material.css b/apps/spreadsheeteditor/mobile/resources/css/app-material.css index 887889736..c887372bd 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-material.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-material.css @@ -6091,6 +6091,13 @@ html.phone .document-menu .list-block .item-link { margin: 0; word-break: break-word; } +.page-comments .list-reply, +.page-add-comment .list-reply, +.page-view-comments .list-reply, +.container-edit-comment .list-reply, +.container-add-reply .list-reply { + padding-left: 32px; +} .page-comments .user-name, .page-add-comment .user-name, .page-view-comments .user-name, @@ -6336,20 +6343,42 @@ html.phone .document-menu .list-block .item-link { .container-view-comment .list-block { margin-top: 0; } -.container-view-add-comment, +#done-comment { + padding: 0 16px; +} +.page-add-comment .wrap-comment { + padding: 16px 16px 0 16px; +} +.page-add-comment .wrap-comment .header-comment { + justify-content: flex-start; +} +.page-add-comment .wrap-comment .user-name { + font-weight: bold; +} +.page-add-comment .wrap-comment .comment-date { + font-size: 12px; + color: #6d6d72; +} +.page-add-comment .wrap-comment .wrap-textarea { + padding-right: 6px; +} +.page-add-comment .wrap-comment .wrap-textarea .comment-textarea { + border: 1px solid #c4c4c4; + margin-top: 0; + min-height: 100px; + border-radius: 4px; +} .container-edit-comment, .container-add-reply, container-edit-comment { height: 100%; } -.container-view-add-comment .navbar, .container-edit-comment .navbar, .container-add-reply .navbar, container-edit-comment .navbar { background-color: #FFFFFF; color: #000; } -.container-view-add-comment .navbar:after, .container-edit-comment .navbar:after, .container-add-reply .navbar:after, container-edit-comment .navbar:after { @@ -6367,43 +6396,36 @@ container-edit-comment .navbar:after { -webkit-transform-origin: 50% 100%; transform-origin: 50% 100%; } -.container-view-add-comment .navbar .navbar-inner, .container-edit-comment .navbar .navbar-inner, .container-add-reply .navbar .navbar-inner, container-edit-comment .navbar .navbar-inner { justify-content: space-between; } -.container-view-add-comment .navbar a.link i + span, .container-edit-comment .navbar a.link i + span, .container-add-reply .navbar a.link i + span, container-edit-comment .navbar a.link i + span { margin-left: 0; } -.container-view-add-comment .navbar .center, .container-edit-comment .navbar .center, .container-add-reply .navbar .center, container-edit-comment .navbar .center { font-size: 18px; } -.container-view-add-comment .navbar .right, .container-edit-comment .navbar .right, .container-add-reply .navbar .right, container-edit-comment .navbar .right { margin-left: 0; } -.container-view-add-comment .page-add-comment, .container-edit-comment .page-add-comment, .container-add-reply .page-add-comment, container-edit-comment .page-add-comment { background-color: #FFFFFF; } -.container-view-add-comment .page-add-comment .page-content, .container-edit-comment .page-add-comment .page-content, .container-add-reply .page-add-comment .page-content, container-edit-comment .page-add-comment .page-content { padding: 0 16px 80px; } -.container-view-add-comment .header-comment, .container-edit-comment .header-comment, .container-add-reply .header-comment, container-edit-comment .header-comment { From 2422fab071a0fe0d8e2f31146c2a7edf0488439a Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 31 Mar 2020 20:14:05 +0300 Subject: [PATCH 13/72] [DE mobile] Add style of comments view for android --- .../mobile/lib/controller/Collaboration.js | 14 ++ .../resources/less/ios/_collaboration.less | 13 +- .../less/material/_collaboration.less | 88 ++++++++-- .../mobile/app/template/AddOther.template | 2 +- .../mobile/resources/css/app-ios.css | 19 ++- .../mobile/resources/css/app-material.css | 155 ++++++++++++++---- .../resources/less/material/_icons.less | 4 +- .../mobile/resources/css/app-ios.css | 19 ++- .../mobile/resources/css/app-material.css | 151 +++++++++++++---- .../mobile/resources/css/app-ios.css | 19 ++- .../mobile/resources/css/app-material.css | 151 +++++++++++++---- 11 files changed, 495 insertions(+), 140 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index af364fbdd..2de3c0ac9 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -828,6 +828,20 @@ define([ '', $$('#toolbar-collaboration') ); + this.picker = $$(me.modalViewComment); + var $overlay = $('.modal-overlay'); + + $$(this.picker).on('opened', function () { + $overlay.on('removeClass', function () { + if (!$overlay.hasClass('modal-overlay-visible')) { + $overlay.addClass('modal-overlay-visible') + } + }); + }).on('close', function () { + $overlay.off('removeClass'); + $overlay.removeClass('modal-overlay-visible'); + $('.popover').remove(); + }); } me.getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment); $('.prev-comment').single('click', _.bind(me.onViewPrevComment, me)); diff --git a/apps/common/mobile/resources/less/ios/_collaboration.less b/apps/common/mobile/resources/less/ios/_collaboration.less index 5afebdaaa..076b1e2ac 100644 --- a/apps/common/mobile/resources/less/ios/_collaboration.less +++ b/apps/common/mobile/resources/less/ios/_collaboration.less @@ -103,7 +103,7 @@ word-break: break-word; } .list-reply { - padding-left: 32px; + padding-left: 26px; } .user-name { font-size: 17px; @@ -163,16 +163,17 @@ } .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; } - .comment-textarea, .reply-textarea { + .comment-textarea, .reply-textarea, .edit-reply-textarea { margin-top: 10px; background:transparent; - border:none; outline:none; width: 100%; - min-height: 200px; font-size: 15px; + border: 1px solid #c4c4c4; + border-radius: 3px; + min-height: 100px; } } .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { @@ -337,7 +338,7 @@ .page-add-comment { background-color: #FFFFFF; .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; .header-comment { justify-content: flex-start; } diff --git a/apps/common/mobile/resources/less/material/_collaboration.less b/apps/common/mobile/resources/less/material/_collaboration.less index 18f1c2cc0..231ced4b2 100644 --- a/apps/common/mobile/resources/less/material/_collaboration.less +++ b/apps/common/mobile/resources/less/material/_collaboration.less @@ -90,7 +90,7 @@ } //Comments -.page-comments, .page-add-comment, .page-view-comments, .container-edit-comment, .container-add-reply { +.page-comments, .page-add-comment, .page-view-comments, .container-edit-comment, .container-add-reply, .view-comment { .list-block .item-inner { display: block; padding: 16px 0; @@ -101,7 +101,7 @@ word-break: break-word; } .list-reply { - padding-left: 32px; + padding-left: 26px; } .user-name { font-size: 16px; @@ -144,23 +144,23 @@ } .wrap-comment { - padding: 16px 0 0 0; + padding: 16px 24px 0 16px; } - .comment-textarea, .reply-textarea { + .comment-textarea, .reply-textarea, .edit-reply-textarea { margin-top: 10px; background:transparent; - border:none; outline:none; width: 100%; - min-height: 200px; font-size: 15px; + border: 1px solid #c4c4c4; + border-radius: 3px; + min-height: 100px; } .header-comment { display: flex; justify-content: space-between; padding-right: 16px; - margin-bottom: 13px; .comment-right { display: flex; justify-content: space-between; @@ -222,7 +222,7 @@ border-top-right-radius: 4px; height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); - .page-view-comments { + .page-view-comments, .view-comment { background-color: #FFFFFF; .list-block { margin-bottom: 120px; @@ -283,6 +283,73 @@ .list-block { margin-top: 0; } + &.popover { + border-radius: 4px; + min-height: 170px; + height: 400px; + max-height: 600px; + + .toolbar { + border-radius: 0 0 4px 4px; + .toolbar-inner { + padding-right: 0; + } + } + + .page { + border-radius: 13px; + .page-content { + padding: 16px; + padding-bottom: 80px; + + .list-block { + margin-bottom: 0px; + + .item-content { + padding-left: 0; + + .header-comment, .reply-item { + padding-right: 0; + } + } + } + + .block-reply { + margin-top: 10px; + .reply-textarea { + min-height: 70px; + width: 278px; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; + } + } + + .edit-reply-textarea { + min-height: 60px; + width: 100%; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; + height: 60px; + margin-top: 10px; + } + + .comment-text { + padding-right: 0; + + .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 8px; + min-height: 80px; + height: 80px; + } + } + } + } + + } } #done-comment { @@ -290,7 +357,7 @@ } .page-add-comment { .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; .header-comment { justify-content: flex-start; } @@ -348,9 +415,6 @@ } .page-add-comment { background-color: #FFFFFF; - .page-content { - padding: 0 16px 80px; - } } .header-comment { justify-content: flex-start; diff --git a/apps/documenteditor/mobile/app/template/AddOther.template b/apps/documenteditor/mobile/app/template/AddOther.template index d4b9d19f6..ee5a922fb 100644 --- a/apps/documenteditor/mobile/app/template/AddOther.template +++ b/apps/documenteditor/mobile/app/template/AddOther.template @@ -344,7 +344,7 @@
    diff --git a/apps/documenteditor/mobile/resources/css/app-ios.css b/apps/documenteditor/mobile/resources/css/app-ios.css index 7bd3329a2..3e3be5679 100644 --- a/apps/documenteditor/mobile/resources/css/app-ios.css +++ b/apps/documenteditor/mobile/resources/css/app-ios.css @@ -6504,7 +6504,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-edit-comment .list-reply, .container-add-reply .list-reply, .view-comment .list-reply { - padding-left: 32px; + padding-left: 26px; } .page-comments .user-name, .add-comment .user-name, @@ -6620,7 +6620,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-edit-comment .wrap-comment, .container-add-reply .wrap-comment, .view-comment .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; } .page-comments .comment-textarea, .add-comment .comment-textarea, @@ -6633,14 +6633,21 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea { +.view-comment .reply-textarea, +.page-comments .edit-reply-textarea, +.add-comment .edit-reply-textarea, +.page-view-comments .edit-reply-textarea, +.container-edit-comment .edit-reply-textarea, +.container-add-reply .edit-reply-textarea, +.view-comment .edit-reply-textarea { margin-top: 10px; background: transparent; - border: none; outline: none; width: 100%; - min-height: 200px; font-size: 15px; + border: 1px solid #c4c4c4; + border-radius: 3px; + min-height: 100px; } .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { @@ -6798,7 +6805,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after background-color: #FFFFFF; } .page-add-comment .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; } .page-add-comment .wrap-comment .header-comment { justify-content: flex-start; diff --git a/apps/documenteditor/mobile/resources/css/app-material.css b/apps/documenteditor/mobile/resources/css/app-material.css index 2d06856ad..5193113d3 100644 --- a/apps/documenteditor/mobile/resources/css/app-material.css +++ b/apps/documenteditor/mobile/resources/css/app-material.css @@ -6068,7 +6068,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .list-block .item-inner, .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, -.container-add-reply .list-block .item-inner { +.container-add-reply .list-block .item-inner, +.view-comment .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; @@ -6077,7 +6078,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment p, .page-view-comments p, .container-edit-comment p, -.container-add-reply p { +.container-add-reply p, +.view-comment p { margin: 0; word-break: break-word; } @@ -6085,14 +6087,16 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .list-reply, .page-view-comments .list-reply, .container-edit-comment .list-reply, -.container-add-reply .list-reply { - padding-left: 32px; +.container-add-reply .list-reply, +.view-comment .list-reply { + padding-left: 26px; } .page-comments .user-name, .page-add-comment .user-name, .page-view-comments .user-name, .container-edit-comment .user-name, -.container-add-reply .user-name { +.container-add-reply .user-name, +.view-comment .user-name { font-size: 16px; line-height: 22px; color: #000000; @@ -6103,11 +6107,13 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, +.view-comment .comment-date, .page-comments .reply-date, .page-add-comment .reply-date, .page-view-comments .reply-date, .container-edit-comment .reply-date, -.container-add-reply .reply-date { +.container-add-reply .reply-date, +.view-comment .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6119,11 +6125,13 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, +.view-comment .comment-text, .page-comments .reply-text, .page-add-comment .reply-text, .page-view-comments .reply-text, .container-edit-comment .reply-text, -.container-add-reply .reply-text { +.container-add-reply .reply-text, +.view-comment .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6135,7 +6143,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .reply-item, .page-view-comments .reply-item, .container-edit-comment .reply-item, -.container-add-reply .reply-item { +.container-add-reply .reply-item, +.view-comment .reply-item { padding-right: 16px; padding-top: 13px; } @@ -6143,7 +6152,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .reply-item .header-reply, .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, -.container-add-reply .reply-item .header-reply { +.container-add-reply .reply-item .header-reply, +.view-comment .reply-item .header-reply { display: flex; justify-content: space-between; } @@ -6151,14 +6161,16 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .reply-item .user-name, .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, -.container-add-reply .reply-item .user-name { +.container-add-reply .reply-item .user-name, +.view-comment .reply-item .user-name { padding-top: 3px; } .page-comments .comment-quote, .page-add-comment .comment-quote, .page-view-comments .comment-quote, .container-edit-comment .comment-quote, -.container-add-reply .comment-quote { +.container-add-reply .comment-quote, +.view-comment .comment-quote { color: #446995; border-left: 1px solid #446995; padding-left: 10px; @@ -6169,42 +6181,53 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .wrap-comment, .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, -.container-add-reply .wrap-comment { - padding: 16px 0 0 0; +.container-add-reply .wrap-comment, +.view-comment .wrap-comment { + padding: 16px 24px 0 16px; } .page-comments .comment-textarea, .page-add-comment .comment-textarea, .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, +.view-comment .comment-textarea, .page-comments .reply-textarea, .page-add-comment .reply-textarea, .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, -.container-add-reply .reply-textarea { +.container-add-reply .reply-textarea, +.view-comment .reply-textarea, +.page-comments .edit-reply-textarea, +.page-add-comment .edit-reply-textarea, +.page-view-comments .edit-reply-textarea, +.container-edit-comment .edit-reply-textarea, +.container-add-reply .edit-reply-textarea, +.view-comment .edit-reply-textarea { margin-top: 10px; background: transparent; - border: none; outline: none; width: 100%; - min-height: 200px; font-size: 15px; + border: 1px solid #c4c4c4; + border-radius: 3px; + min-height: 100px; } .page-comments .header-comment, .page-add-comment .header-comment, .page-view-comments .header-comment, .container-edit-comment .header-comment, -.container-add-reply .header-comment { +.container-add-reply .header-comment, +.view-comment .header-comment { display: flex; justify-content: space-between; padding-right: 16px; - margin-bottom: 13px; } .page-comments .header-comment .comment-right, .page-add-comment .header-comment .comment-right, .page-view-comments .header-comment .comment-right, .container-edit-comment .header-comment .comment-right, -.container-add-reply .header-comment .comment-right { +.container-add-reply .header-comment .comment-right, +.view-comment .header-comment .comment-right { display: flex; justify-content: space-between; width: 70px; @@ -6213,7 +6236,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-comment .comment-left, .page-view-comments .header-comment .comment-left, .container-edit-comment .header-comment .comment-left, -.container-add-reply .header-comment .comment-left { +.container-add-reply .header-comment .comment-left, +.view-comment .header-comment .comment-left { display: flex; justify-content: space-between; } @@ -6221,7 +6245,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-comment .initials-comment, .page-view-comments .header-comment .initials-comment, .container-edit-comment .header-comment .initials-comment, -.container-add-reply .header-comment .initials-comment { +.container-add-reply .header-comment .initials-comment, +.view-comment .header-comment .initials-comment { height: 40px; width: 40px; border-radius: 50px; @@ -6236,7 +6261,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-reply .reply-left, .page-view-comments .header-reply .reply-left, .container-edit-comment .header-reply .reply-left, -.container-add-reply .header-reply .reply-left { +.container-add-reply .header-reply .reply-left, +.view-comment .header-reply .reply-left { display: flex; justify-content: space-between; align-items: flex-start; @@ -6245,7 +6271,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-reply .initials-reply, .page-view-comments .header-reply .initials-reply, .container-edit-comment .header-reply .initials-reply, -.container-add-reply .header-reply .initials-reply { +.container-add-reply .header-reply .initials-reply, +.view-comment .header-reply .initials-reply { width: 24px; height: 24px; color: #FFFFFF; @@ -6274,17 +6301,22 @@ html.phone .document-menu .list-block .item-link { height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } -.container-view-comment .page-view-comments { +.container-view-comment .page-view-comments, +.container-view-comment .view-comment { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block { +.container-view-comment .page-view-comments .list-block, +.container-view-comment .view-comment .list-block { margin-bottom: 120px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after { +.container-view-comment .view-comment .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after, +.container-view-comment .view-comment .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner, +.container-view-comment .view-comment .list-block .item-inner { padding: 0; } .container-view-comment .toolbar { @@ -6333,11 +6365,69 @@ html.phone .document-menu .list-block .item-link { .container-view-comment .list-block { margin-top: 0; } +.container-view-comment.popover { + border-radius: 4px; + min-height: 170px; + height: 400px; + max-height: 600px; +} +.container-view-comment.popover .toolbar { + border-radius: 0 0 4px 4px; +} +.container-view-comment.popover .toolbar .toolbar-inner { + padding-right: 0; +} +.container-view-comment.popover .page { + border-radius: 13px; +} +.container-view-comment.popover .page .page-content { + padding: 16px; + padding-bottom: 80px; +} +.container-view-comment.popover .page .page-content .list-block { + margin-bottom: 0px; +} +.container-view-comment.popover .page .page-content .list-block .item-content { + padding-left: 0; +} +.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .block-reply { + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .block-reply .reply-textarea { + min-height: 70px; + width: 278px; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; +} +.container-view-comment.popover .page .page-content .edit-reply-textarea { + min-height: 60px; + width: 100%; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; + height: 60px; + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .comment-text { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .comment-text .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 8px; + min-height: 80px; + height: 80px; +} #done-comment { padding: 0 16px; } .page-add-comment .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; } .page-add-comment .wrap-comment .header-comment { justify-content: flex-start; @@ -6411,11 +6501,6 @@ container-edit-comment .navbar .right { container-edit-comment .page-add-comment { background-color: #FFFFFF; } -.container-edit-comment .page-add-comment .page-content, -.container-add-reply .page-add-comment .page-content, -container-edit-comment .page-add-comment .page-content { - padding: 0 16px 80px; -} .container-edit-comment .header-comment, .container-add-reply .header-comment, container-edit-comment .header-comment { @@ -6888,7 +6973,7 @@ i.icon.icon-next-comment { i.icon.icon-close-comment { width: 24px; height: 24px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9844%206.42188L13.4062%2012L18.9844%2017.5781L17.5781%2018.9844L12%2013.4062L6.42188%2018.9844L5.01562%2017.5781L10.5938%2012L5.01562%206.42188L6.42188%205.01562L12%2010.5938L17.5781%205.01562L18.9844%206.42188Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9844%206.42188L13.4062%2012L18.9844%2017.5781L17.5781%2018.9844L12%2013.4062L6.42188%2018.9844L5.01562%2017.5781L10.5938%2012L5.01562%206.42188L6.42188%205.01562L12%2010.5938L17.5781%205.01562L18.9844%206.42188Z%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%200.6)%22%2F%3E%3C%2Fsvg%3E"); } i.icon.icon-done-comment { width: 24px; @@ -6900,7 +6985,7 @@ i.icon.icon-insert-comment { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); } -i.icon.icon-done-comment { +i.icon.icon-done-comment-white { width: 24px; height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%3C%2Fsvg%3E"); diff --git a/apps/documenteditor/mobile/resources/less/material/_icons.less b/apps/documenteditor/mobile/resources/less/material/_icons.less index cc2d96f0f..21f1d2b7c 100644 --- a/apps/documenteditor/mobile/resources/less/material/_icons.less +++ b/apps/documenteditor/mobile/resources/less/material/_icons.less @@ -432,7 +432,7 @@ i.icon { &.icon-close-comment { width: 24px; height: 24px; - .encoded-svg-background(''); + .encoded-svg-background(''); } &.icon-done-comment { width: 24px; @@ -444,7 +444,7 @@ i.icon { height: 24px; .encoded-svg-background(''); } - &.icon-done-comment { + &.icon-done-comment-white { width: 24px; height: 24px; .encoded-svg-background(''); diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index 9a561db39..8a92320f8 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -6504,7 +6504,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-edit-comment .list-reply, .container-add-reply .list-reply, .view-comment .list-reply { - padding-left: 32px; + padding-left: 26px; } .page-comments .user-name, .add-comment .user-name, @@ -6620,7 +6620,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-edit-comment .wrap-comment, .container-add-reply .wrap-comment, .view-comment .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; } .page-comments .comment-textarea, .add-comment .comment-textarea, @@ -6633,14 +6633,21 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea { +.view-comment .reply-textarea, +.page-comments .edit-reply-textarea, +.add-comment .edit-reply-textarea, +.page-view-comments .edit-reply-textarea, +.container-edit-comment .edit-reply-textarea, +.container-add-reply .edit-reply-textarea, +.view-comment .edit-reply-textarea { margin-top: 10px; background: transparent; - border: none; outline: none; width: 100%; - min-height: 200px; font-size: 15px; + border: 1px solid #c4c4c4; + border-radius: 3px; + min-height: 100px; } .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { @@ -6798,7 +6805,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after background-color: #FFFFFF; } .page-add-comment .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; } .page-add-comment .wrap-comment .header-comment { justify-content: flex-start; diff --git a/apps/presentationeditor/mobile/resources/css/app-material.css b/apps/presentationeditor/mobile/resources/css/app-material.css index 1e3d2c4fc..8be55ee01 100644 --- a/apps/presentationeditor/mobile/resources/css/app-material.css +++ b/apps/presentationeditor/mobile/resources/css/app-material.css @@ -6068,7 +6068,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .list-block .item-inner, .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, -.container-add-reply .list-block .item-inner { +.container-add-reply .list-block .item-inner, +.view-comment .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; @@ -6077,7 +6078,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment p, .page-view-comments p, .container-edit-comment p, -.container-add-reply p { +.container-add-reply p, +.view-comment p { margin: 0; word-break: break-word; } @@ -6085,14 +6087,16 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .list-reply, .page-view-comments .list-reply, .container-edit-comment .list-reply, -.container-add-reply .list-reply { - padding-left: 32px; +.container-add-reply .list-reply, +.view-comment .list-reply { + padding-left: 26px; } .page-comments .user-name, .page-add-comment .user-name, .page-view-comments .user-name, .container-edit-comment .user-name, -.container-add-reply .user-name { +.container-add-reply .user-name, +.view-comment .user-name { font-size: 16px; line-height: 22px; color: #000000; @@ -6103,11 +6107,13 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, +.view-comment .comment-date, .page-comments .reply-date, .page-add-comment .reply-date, .page-view-comments .reply-date, .container-edit-comment .reply-date, -.container-add-reply .reply-date { +.container-add-reply .reply-date, +.view-comment .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6119,11 +6125,13 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, +.view-comment .comment-text, .page-comments .reply-text, .page-add-comment .reply-text, .page-view-comments .reply-text, .container-edit-comment .reply-text, -.container-add-reply .reply-text { +.container-add-reply .reply-text, +.view-comment .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6135,7 +6143,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .reply-item, .page-view-comments .reply-item, .container-edit-comment .reply-item, -.container-add-reply .reply-item { +.container-add-reply .reply-item, +.view-comment .reply-item { padding-right: 16px; padding-top: 13px; } @@ -6143,7 +6152,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .reply-item .header-reply, .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, -.container-add-reply .reply-item .header-reply { +.container-add-reply .reply-item .header-reply, +.view-comment .reply-item .header-reply { display: flex; justify-content: space-between; } @@ -6151,14 +6161,16 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .reply-item .user-name, .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, -.container-add-reply .reply-item .user-name { +.container-add-reply .reply-item .user-name, +.view-comment .reply-item .user-name { padding-top: 3px; } .page-comments .comment-quote, .page-add-comment .comment-quote, .page-view-comments .comment-quote, .container-edit-comment .comment-quote, -.container-add-reply .comment-quote { +.container-add-reply .comment-quote, +.view-comment .comment-quote { color: #aa5252; border-left: 1px solid #aa5252; padding-left: 10px; @@ -6169,42 +6181,53 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .wrap-comment, .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, -.container-add-reply .wrap-comment { - padding: 16px 0 0 0; +.container-add-reply .wrap-comment, +.view-comment .wrap-comment { + padding: 16px 24px 0 16px; } .page-comments .comment-textarea, .page-add-comment .comment-textarea, .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, +.view-comment .comment-textarea, .page-comments .reply-textarea, .page-add-comment .reply-textarea, .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, -.container-add-reply .reply-textarea { +.container-add-reply .reply-textarea, +.view-comment .reply-textarea, +.page-comments .edit-reply-textarea, +.page-add-comment .edit-reply-textarea, +.page-view-comments .edit-reply-textarea, +.container-edit-comment .edit-reply-textarea, +.container-add-reply .edit-reply-textarea, +.view-comment .edit-reply-textarea { margin-top: 10px; background: transparent; - border: none; outline: none; width: 100%; - min-height: 200px; font-size: 15px; + border: 1px solid #c4c4c4; + border-radius: 3px; + min-height: 100px; } .page-comments .header-comment, .page-add-comment .header-comment, .page-view-comments .header-comment, .container-edit-comment .header-comment, -.container-add-reply .header-comment { +.container-add-reply .header-comment, +.view-comment .header-comment { display: flex; justify-content: space-between; padding-right: 16px; - margin-bottom: 13px; } .page-comments .header-comment .comment-right, .page-add-comment .header-comment .comment-right, .page-view-comments .header-comment .comment-right, .container-edit-comment .header-comment .comment-right, -.container-add-reply .header-comment .comment-right { +.container-add-reply .header-comment .comment-right, +.view-comment .header-comment .comment-right { display: flex; justify-content: space-between; width: 70px; @@ -6213,7 +6236,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-comment .comment-left, .page-view-comments .header-comment .comment-left, .container-edit-comment .header-comment .comment-left, -.container-add-reply .header-comment .comment-left { +.container-add-reply .header-comment .comment-left, +.view-comment .header-comment .comment-left { display: flex; justify-content: space-between; } @@ -6221,7 +6245,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-comment .initials-comment, .page-view-comments .header-comment .initials-comment, .container-edit-comment .header-comment .initials-comment, -.container-add-reply .header-comment .initials-comment { +.container-add-reply .header-comment .initials-comment, +.view-comment .header-comment .initials-comment { height: 40px; width: 40px; border-radius: 50px; @@ -6236,7 +6261,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-reply .reply-left, .page-view-comments .header-reply .reply-left, .container-edit-comment .header-reply .reply-left, -.container-add-reply .header-reply .reply-left { +.container-add-reply .header-reply .reply-left, +.view-comment .header-reply .reply-left { display: flex; justify-content: space-between; align-items: flex-start; @@ -6245,7 +6271,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-reply .initials-reply, .page-view-comments .header-reply .initials-reply, .container-edit-comment .header-reply .initials-reply, -.container-add-reply .header-reply .initials-reply { +.container-add-reply .header-reply .initials-reply, +.view-comment .header-reply .initials-reply { width: 24px; height: 24px; color: #FFFFFF; @@ -6274,17 +6301,22 @@ html.phone .document-menu .list-block .item-link { height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } -.container-view-comment .page-view-comments { +.container-view-comment .page-view-comments, +.container-view-comment .view-comment { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block { +.container-view-comment .page-view-comments .list-block, +.container-view-comment .view-comment .list-block { margin-bottom: 120px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after { +.container-view-comment .view-comment .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after, +.container-view-comment .view-comment .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner, +.container-view-comment .view-comment .list-block .item-inner { padding: 0; } .container-view-comment .toolbar { @@ -6333,11 +6365,69 @@ html.phone .document-menu .list-block .item-link { .container-view-comment .list-block { margin-top: 0; } +.container-view-comment.popover { + border-radius: 4px; + min-height: 170px; + height: 400px; + max-height: 600px; +} +.container-view-comment.popover .toolbar { + border-radius: 0 0 4px 4px; +} +.container-view-comment.popover .toolbar .toolbar-inner { + padding-right: 0; +} +.container-view-comment.popover .page { + border-radius: 13px; +} +.container-view-comment.popover .page .page-content { + padding: 16px; + padding-bottom: 80px; +} +.container-view-comment.popover .page .page-content .list-block { + margin-bottom: 0px; +} +.container-view-comment.popover .page .page-content .list-block .item-content { + padding-left: 0; +} +.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .block-reply { + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .block-reply .reply-textarea { + min-height: 70px; + width: 278px; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; +} +.container-view-comment.popover .page .page-content .edit-reply-textarea { + min-height: 60px; + width: 100%; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; + height: 60px; + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .comment-text { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .comment-text .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 8px; + min-height: 80px; + height: 80px; +} #done-comment { padding: 0 16px; } .page-add-comment .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; } .page-add-comment .wrap-comment .header-comment { justify-content: flex-start; @@ -6411,11 +6501,6 @@ container-edit-comment .navbar .right { container-edit-comment .page-add-comment { background-color: #FFFFFF; } -.container-edit-comment .page-add-comment .page-content, -.container-add-reply .page-add-comment .page-content, -container-edit-comment .page-add-comment .page-content { - padding: 0 16px 80px; -} .container-edit-comment .header-comment, .container-add-reply .header-comment, container-edit-comment .header-comment { diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index 5b03b9502..97d206c9b 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -6504,7 +6504,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-edit-comment .list-reply, .container-add-reply .list-reply, .view-comment .list-reply { - padding-left: 32px; + padding-left: 26px; } .page-comments .user-name, .add-comment .user-name, @@ -6620,7 +6620,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-edit-comment .wrap-comment, .container-add-reply .wrap-comment, .view-comment .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; } .page-comments .comment-textarea, .add-comment .comment-textarea, @@ -6633,14 +6633,21 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea { +.view-comment .reply-textarea, +.page-comments .edit-reply-textarea, +.add-comment .edit-reply-textarea, +.page-view-comments .edit-reply-textarea, +.container-edit-comment .edit-reply-textarea, +.container-add-reply .edit-reply-textarea, +.view-comment .edit-reply-textarea { margin-top: 10px; background: transparent; - border: none; outline: none; width: 100%; - min-height: 200px; font-size: 15px; + border: 1px solid #c4c4c4; + border-radius: 3px; + min-height: 100px; } .settings.popup .list-block ul.list-reply:last-child:after, .settings.popover .list-block ul.list-reply:last-child:after { @@ -6798,7 +6805,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after background-color: #FFFFFF; } .page-add-comment .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; } .page-add-comment .wrap-comment .header-comment { justify-content: flex-start; diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-material.css b/apps/spreadsheeteditor/mobile/resources/css/app-material.css index c887372bd..594d458e7 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-material.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-material.css @@ -6078,7 +6078,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .list-block .item-inner, .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, -.container-add-reply .list-block .item-inner { +.container-add-reply .list-block .item-inner, +.view-comment .list-block .item-inner { display: block; padding: 16px 0; word-wrap: break-word; @@ -6087,7 +6088,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment p, .page-view-comments p, .container-edit-comment p, -.container-add-reply p { +.container-add-reply p, +.view-comment p { margin: 0; word-break: break-word; } @@ -6095,14 +6097,16 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .list-reply, .page-view-comments .list-reply, .container-edit-comment .list-reply, -.container-add-reply .list-reply { - padding-left: 32px; +.container-add-reply .list-reply, +.view-comment .list-reply { + padding-left: 26px; } .page-comments .user-name, .page-add-comment .user-name, .page-view-comments .user-name, .container-edit-comment .user-name, -.container-add-reply .user-name { +.container-add-reply .user-name, +.view-comment .user-name { font-size: 16px; line-height: 22px; color: #000000; @@ -6113,11 +6117,13 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, +.view-comment .comment-date, .page-comments .reply-date, .page-add-comment .reply-date, .page-view-comments .reply-date, .container-edit-comment .reply-date, -.container-add-reply .reply-date { +.container-add-reply .reply-date, +.view-comment .reply-date { font-size: 12px; line-height: 18px; color: #6d6d72; @@ -6129,11 +6135,13 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, +.view-comment .comment-text, .page-comments .reply-text, .page-add-comment .reply-text, .page-view-comments .reply-text, .container-edit-comment .reply-text, -.container-add-reply .reply-text { +.container-add-reply .reply-text, +.view-comment .reply-text { color: #000000; font-size: 15px; line-height: 25px; @@ -6145,7 +6153,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .reply-item, .page-view-comments .reply-item, .container-edit-comment .reply-item, -.container-add-reply .reply-item { +.container-add-reply .reply-item, +.view-comment .reply-item { padding-right: 16px; padding-top: 13px; } @@ -6153,7 +6162,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .reply-item .header-reply, .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, -.container-add-reply .reply-item .header-reply { +.container-add-reply .reply-item .header-reply, +.view-comment .reply-item .header-reply { display: flex; justify-content: space-between; } @@ -6161,14 +6171,16 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .reply-item .user-name, .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, -.container-add-reply .reply-item .user-name { +.container-add-reply .reply-item .user-name, +.view-comment .reply-item .user-name { padding-top: 3px; } .page-comments .comment-quote, .page-add-comment .comment-quote, .page-view-comments .comment-quote, .container-edit-comment .comment-quote, -.container-add-reply .comment-quote { +.container-add-reply .comment-quote, +.view-comment .comment-quote { color: #40865c; border-left: 1px solid #40865c; padding-left: 10px; @@ -6179,42 +6191,53 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .wrap-comment, .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, -.container-add-reply .wrap-comment { - padding: 16px 0 0 0; +.container-add-reply .wrap-comment, +.view-comment .wrap-comment { + padding: 16px 24px 0 16px; } .page-comments .comment-textarea, .page-add-comment .comment-textarea, .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, +.view-comment .comment-textarea, .page-comments .reply-textarea, .page-add-comment .reply-textarea, .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, -.container-add-reply .reply-textarea { +.container-add-reply .reply-textarea, +.view-comment .reply-textarea, +.page-comments .edit-reply-textarea, +.page-add-comment .edit-reply-textarea, +.page-view-comments .edit-reply-textarea, +.container-edit-comment .edit-reply-textarea, +.container-add-reply .edit-reply-textarea, +.view-comment .edit-reply-textarea { margin-top: 10px; background: transparent; - border: none; outline: none; width: 100%; - min-height: 200px; font-size: 15px; + border: 1px solid #c4c4c4; + border-radius: 3px; + min-height: 100px; } .page-comments .header-comment, .page-add-comment .header-comment, .page-view-comments .header-comment, .container-edit-comment .header-comment, -.container-add-reply .header-comment { +.container-add-reply .header-comment, +.view-comment .header-comment { display: flex; justify-content: space-between; padding-right: 16px; - margin-bottom: 13px; } .page-comments .header-comment .comment-right, .page-add-comment .header-comment .comment-right, .page-view-comments .header-comment .comment-right, .container-edit-comment .header-comment .comment-right, -.container-add-reply .header-comment .comment-right { +.container-add-reply .header-comment .comment-right, +.view-comment .header-comment .comment-right { display: flex; justify-content: space-between; width: 70px; @@ -6223,7 +6246,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-comment .comment-left, .page-view-comments .header-comment .comment-left, .container-edit-comment .header-comment .comment-left, -.container-add-reply .header-comment .comment-left { +.container-add-reply .header-comment .comment-left, +.view-comment .header-comment .comment-left { display: flex; justify-content: space-between; } @@ -6231,7 +6255,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-comment .initials-comment, .page-view-comments .header-comment .initials-comment, .container-edit-comment .header-comment .initials-comment, -.container-add-reply .header-comment .initials-comment { +.container-add-reply .header-comment .initials-comment, +.view-comment .header-comment .initials-comment { height: 40px; width: 40px; border-radius: 50px; @@ -6246,7 +6271,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-reply .reply-left, .page-view-comments .header-reply .reply-left, .container-edit-comment .header-reply .reply-left, -.container-add-reply .header-reply .reply-left { +.container-add-reply .header-reply .reply-left, +.view-comment .header-reply .reply-left { display: flex; justify-content: space-between; align-items: flex-start; @@ -6255,7 +6281,8 @@ html.phone .document-menu .list-block .item-link { .page-add-comment .header-reply .initials-reply, .page-view-comments .header-reply .initials-reply, .container-edit-comment .header-reply .initials-reply, -.container-add-reply .header-reply .initials-reply { +.container-add-reply .header-reply .initials-reply, +.view-comment .header-reply .initials-reply { width: 24px; height: 24px; color: #FFFFFF; @@ -6284,17 +6311,22 @@ html.phone .document-menu .list-block .item-link { height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } -.container-view-comment .page-view-comments { +.container-view-comment .page-view-comments, +.container-view-comment .view-comment { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block { +.container-view-comment .page-view-comments .list-block, +.container-view-comment .view-comment .list-block { margin-bottom: 120px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after { +.container-view-comment .view-comment .list-block ul:before, +.container-view-comment .page-view-comments .list-block ul:after, +.container-view-comment .view-comment .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner, +.container-view-comment .view-comment .list-block .item-inner { padding: 0; } .container-view-comment .toolbar { @@ -6343,11 +6375,69 @@ html.phone .document-menu .list-block .item-link { .container-view-comment .list-block { margin-top: 0; } +.container-view-comment.popover { + border-radius: 4px; + min-height: 170px; + height: 400px; + max-height: 600px; +} +.container-view-comment.popover .toolbar { + border-radius: 0 0 4px 4px; +} +.container-view-comment.popover .toolbar .toolbar-inner { + padding-right: 0; +} +.container-view-comment.popover .page { + border-radius: 13px; +} +.container-view-comment.popover .page .page-content { + padding: 16px; + padding-bottom: 80px; +} +.container-view-comment.popover .page .page-content .list-block { + margin-bottom: 0px; +} +.container-view-comment.popover .page .page-content .list-block .item-content { + padding-left: 0; +} +.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .block-reply { + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .block-reply .reply-textarea { + min-height: 70px; + width: 278px; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; +} +.container-view-comment.popover .page .page-content .edit-reply-textarea { + min-height: 60px; + width: 100%; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; + height: 60px; + margin-top: 10px; +} +.container-view-comment.popover .page .page-content .comment-text { + padding-right: 0; +} +.container-view-comment.popover .page .page-content .comment-text .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 8px; + min-height: 80px; + height: 80px; +} #done-comment { padding: 0 16px; } .page-add-comment .wrap-comment { - padding: 16px 16px 0 16px; + padding: 16px 24px 0 16px; } .page-add-comment .wrap-comment .header-comment { justify-content: flex-start; @@ -6421,11 +6511,6 @@ container-edit-comment .navbar .right { container-edit-comment .page-add-comment { background-color: #FFFFFF; } -.container-edit-comment .page-add-comment .page-content, -.container-add-reply .page-add-comment .page-content, -container-edit-comment .page-add-comment .page-content { - padding: 0 16px 80px; -} .container-edit-comment .header-comment, .container-add-reply .header-comment, container-edit-comment .header-comment { From 218929dd3e1e0ebda6a1b3fc3579146f7849d561 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Wed, 1 Apr 2020 20:34:51 +0300 Subject: [PATCH 14/72] [DE mobile] add edit comments into collaboration section --- .../mobile/lib/controller/Collaboration.js | 480 ++++++++++-------- .../lib/template/Collaboration.template | 54 ++ apps/common/mobile/lib/view/Collaboration.js | 73 ++- .../resources/less/ios/_collaboration.less | 46 +- .../less/material/_collaboration.less | 46 +- .../mobile/resources/css/app-ios.css | 166 ++++-- .../mobile/resources/css/app-material.css | 212 ++++++-- .../mobile/resources/css/app-ios.css | 166 ++++-- .../mobile/resources/css/app-material.css | 212 ++++++-- .../mobile/resources/css/app-ios.css | 166 ++++-- .../mobile/resources/css/app-material.css | 212 ++++++-- 11 files changed, 1376 insertions(+), 457 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 2de3c0ac9..8767924b9 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -723,7 +723,7 @@ define([ findComment: function(uid) { var comment; if (this.groupCollectionFilter.length !== 0) { - comment = me.findCommentInGroup(uid); + comment = this.findCommentInGroup(uid); } else if (this.collectionComments.length !== 0) { comment = _.findWhere(this.collectionComments, {uid: uid}); } @@ -757,7 +757,7 @@ define([ DE.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(this.showComments, this.indexCurrentComment); $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); - $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this)); + $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this, false)); }, showCommentModal: function() { @@ -847,9 +847,9 @@ define([ $('.prev-comment').single('click', _.bind(me.onViewPrevComment, me)); $('.next-comment').single('click', _.bind(me.onViewNextComment, me)); $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); - $('.add-reply').single('click', _.bind(me.onClickAddReply, me)); + $('.add-reply').single('click', _.bind(me.onClickAddReply, me, false)); $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); - $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me)); + $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me, false)); if (me.showComments.length === 1) { $('.prev-comment, .next-comment').addClass('disabled'); @@ -921,7 +921,7 @@ define([ _.defer(function () { $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); - $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me)); + $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me, false)); }); } }, @@ -938,64 +938,84 @@ define([ _.defer(function () { $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); - $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me)); + $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me, false)); }); } }, - onClickAddReply: function() { + onClickAddReply: function(id) { var me = this; var isAndroid = Framework7.prototype.device.android === true, phone = Common.SharedSettings.get('phone'); - if (this.indexCurrentComment > -1 && this.indexCurrentComment < this.showComments.length) { - var addReplyView, - comment = this.showComments[this.indexCurrentComment]; - if (phone) { - addReplyView = uiApp.popup( - '' - ); - $('.popup').css('z-index', '20000'); - } else { - $('.container-view-comment .toolbar').find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'none'); - var template = _.template('' + me.textDone + ''); - $('.container-view-comment .button-right').append(template); - template = _.template('' + me.textCancel + ''); - $('.container-view-comment .button-left').append(template); - template = _.template('
    '); - $('.view-comment .page-content').append(template); + var idComment; + if (!id) { + idComment = $('.view-comment').find('.comment').data('uid'); + } else { + idComment = id; + } + var comment = me.findComment(idComment); + me.getCurrentUser(); + var date = me.dateToLocaleTimeString(new Date()); + if (comment) { + var addReplyView; + if ($('.container-view-comment').length > 0) { + if (phone) { + addReplyView = uiApp.popup( + '' + ); + $('.popup').css('z-index', '20000'); + } else { + $('.container-view-comment .toolbar').find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'none'); + var template = _.template('' + me.textDone + ''); + $('.container-view-comment .button-right').append(template); + template = _.template('' + me.textCancel + ''); + $('.container-view-comment .button-left').append(template); + template = _.template('
    '); + $('.view-comment .page-content').append(template); + } + } else if ($('.container-collaboration').length > 0) { + me.getView('Common.Views.Collaboration').showPage('#comments-add-reply-view'); + var name = me.currentUser.asc_getUserName(), + color = me.currentUser.asc_getColor(); + me.getView('Common.Views.Collaboration').renderAddReply(name, color, me.getInitials(name), date); } $('.done-reply').single('click', _.bind(function (uid) { var reply = $('.reply-textarea')[0].value; - var $viewComment = $('.container-view-comment'); - if (reply && reply.length > 0) { - this.addReply(uid, reply); - uiApp.closeModal($$(addReplyView)); - this.updateViewComment(this.showComments, this.indexCurrentComment); - if (!phone) { - $viewComment.find('a.done-reply, a.cancel-reply').css('display', 'none'); - $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + if ($('.container-view-comment').length > 0) { + var $viewComment = $('.container-view-comment'); + if (reply && reply.length > 0) { + this.addReply(uid, reply); + uiApp.closeModal($$(addReplyView)); + this.updateViewComment(this.showComments, this.indexCurrentComment); + if (!phone) { + $viewComment.find('a.done-reply, a.cancel-reply').css('display', 'none'); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + } } + } else if ($('.container-collaboration').length > 0) { + this.addReply(uid, reply); + rootView.router.back(); } }, me, comment.uid)); $('.cancel-reply').single('click', _.bind(function () { @@ -1093,8 +1113,11 @@ define([ } }, - initMenuComments: function() { - if ($('.actions-modal').length === 0) { + initMenuComments: function(e) { + var $comment = $(e.currentTarget).closest('.comment'); + var idComment = $comment.data('uid'); + var comment = this.findComment(idComment); + if ($('.actions-modal').length === 0 && comment) { var me = this; _.delay(function () { var _menuItems = []; @@ -1102,7 +1125,7 @@ define([ caption: me.textEdit, event: 'edit' }); - if (!me.showComments[me.indexCurrentComment].resolved) { + if (!comment.resolved) { _menuItems.push({ caption: me.textResolve, event: 'resolve' @@ -1113,6 +1136,12 @@ define([ event: 'resolve' }); } + if ($('.container-collaboration').length > 0) { + _menuItems.push({ + caption: me.textAddReply, + event: 'addreply' + }); + } _menuItems.push({ caption: me.textDeleteComment, event: 'delete', @@ -1121,7 +1150,7 @@ define([ _.each(_menuItems, function (item) { item.text = item.caption; item.onClick = function () { - me.onCommentMenuClick(item.event) + me.onCommentMenuClick(item.event, idComment) } }); @@ -1141,6 +1170,7 @@ define([ initReplyMenu: function(event) { var me = this; var ind = $(event.currentTarget).parent().parent().data('ind'); + var idComment = $(event.currentTarget).closest('.comment').data('uid'); _.delay(function () { var _menuItems = []; _menuItems.push({ @@ -1155,7 +1185,7 @@ define([ _.each(_menuItems, function (item) { item.text = item.caption; item.onClick = function () { - me.onCommentMenuClick(item.event, ind); + me.onCommentMenuClick(item.event, idComment, ind); } }); uiApp.actions([_menuItems, [ @@ -1170,7 +1200,7 @@ define([ }, 100); }, - onCommentMenuClick: function(action, indReply) { + onCommentMenuClick: function(action, idComment, indReply) { var me = this; function addOverlay () { if (!Common.SharedSettings.get('phone')) { @@ -1183,24 +1213,27 @@ define([ switch (action) { case 'edit': addOverlay(); - me.showEditComment(); + me.showEditComment(idComment); break; case 'resolve': addOverlay(); - me.onClickResolveComment(); + me.onClickResolveComment(idComment); break; case 'delete': addOverlay(); - me.onDeleteComment(me.indexCurrentComment); + me.onDeleteComment(idComment); break; case 'editreply': addOverlay(); - me.showEditReplyModal(me.indexCurrentComment, indReply); + me.showEditReply(idComment, indReply); break; case 'deletereply': addOverlay(); - me.onDeleteReply(me.indexCurrentComment, indReply); + me.onDeleteReply(idComment, indReply); break; + case 'addreply': + addOverlay(); + me.onClickAddReply(idComment); default: addOverlay(); break; @@ -1249,29 +1282,34 @@ define([ } this.api.asc_changeComment(uid, ascComment); + return true; + } + } + return false; + }, + + onDeleteComment: function(uid) { + var comment = this.findComment(uid); + if (this.api && comment) { + this.api.asc_removeComment(uid); + if ($('.container-view-comment').length > 0) { + if (this.showComments.length === 0) { + uiApp.closeModal(); + } else { + this.indexCurrentComment = this.indexCurrentComment - 1 > -1 ? this.indexCurrentComment - 1 : 0; + this.updateViewComment(); + } } } }, - onDeleteComment: function(ind) { - if (this.api && !_.isUndefined(ind) && !_.isUndefined(this.showComments)) { - this.api.asc_removeComment(this.showComments[ind].uid); - if (this.showComments.length === 0) { - uiApp.closeModal(); - } else { - this.indexCurrentComment = this.indexCurrentComment - 1 > -1 ? this.indexCurrentComment - 1 : 0; - this.updateViewComment(); - } - } - }, - - onDeleteReply: function(indComment, indReply) { - if (!_.isUndefined(indComment) && !_.isUndefined(indReply)) { + onDeleteReply: function(idComment, indReply) { + if (!_.isUndefined(idComment) && !_.isUndefined(indReply)) { var me = this, replies = null, addReply = null, ascComment = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)), - comment = me.showComments[indComment]; + comment = me.findComment(idComment); if (ascComment && comment) { var id = comment.uid; @@ -1307,123 +1345,38 @@ define([ } me.api.asc_changeComment(id, ascComment); - me.updateViewComment(); + if($('.container-view-comment').length > 0) { + me.updateViewComment(); + } } } }, - showEditComment: function() { + showEditComment: function(idComment) { var me = this, isAndroid = Framework7.prototype.device.android === true; - if (this.indexCurrentComment > -1 && this.indexCurrentComment < this.showComments.length) { - var comment = this.showComments[this.indexCurrentComment]; - if (Common.SharedSettings.get('phone')) { - me.editView = uiApp.popup( - '' - ); - $('.popup').css('z-index', '20000'); - _.delay(function () { - var $textarea = $('.comment-textarea')[0]; - $textarea.focus(); - $textarea.selectionStart = $textarea.value.length; - },100); - } else { - if ($('.comment-textarea').length === 0) { - var $viewComment = $('.container-view-comment'); - var oldComment = $viewComment.find('.comment-text span').text(); - $viewComment.find('.comment-text span').css('display', 'none'); - var template = _.template(''); - $viewComment.find('.comment-text').append(template); - $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'none'); - template = _.template('' + me.textDone + ''); - $viewComment.find('.button-right').append(template); - template = _.template('' + me.textCancel + ''); - $viewComment.find('.button-left').append(template); - - _.delay(function () { - var $textarea = $viewComment.find('.comment-textarea')[0]; - $textarea.focus(); - $textarea.selectionStart = $textarea.value.length; - }, 50); - } - } - $('#edit-comment').single('click', _.bind(function (comment) { - var value = $('#comment-text')[0].value; - if (value && value.length > 0) { - comment.comment = value; - this.showComments[this.indexCurrentComment] = comment; - this.onChangeComment(comment); - if (Common.SharedSettings.get('phone')) { - uiApp.closeModal($$(me.editView)); - } else { - var $viewComment = $('.container-view-comment'); - $viewComment.find('a.done-reply, a.cancel-reply').remove(); - $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); - } - this.updateViewComment(); - } - }, me, comment)); - $('.cancel-reply').single('click', _.bind(function () { - var $viewComment = $('.container-view-comment'); - $viewComment.find('a.done-reply, a.cancel-reply, .comment-textarea').remove(); - $viewComment.find('.comment-text span').css('display', 'block'); - $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); - }, me)); - } - }, - - showEditReplyModal: function(indComment, indReply) { - var me = this; - if (indComment > -1 && indComment < this.showComments.length) { - var editView, - comment, - replies, - reply; - var isAndroid = Framework7.prototype.device.android === true; - this.showComments && (comment = this.showComments[indComment]); - comment && (replies = comment.replys); - replies && (reply = replies[indReply]); - if (reply) { + if (idComment) { + var comment = this.findComment(idComment); + if ($('.container-view-comment').length > 0) { if (Common.SharedSettings.get('phone')) { - editView = uiApp.popup( + me.editView = uiApp.popup( ''; } - template += '
    ' + - '
    ' + + if (reply.editable && !me.viewmode) { + template += '
    '; + } + template += '' + '

    ' + reply.reply + '

    ' + ''; }); @@ -209,6 +217,7 @@ define([ }, renderComments: function (comments) { + var me = this; var $pageComments = $('.page-comments .page-content'); if (!comments) { if ($('.comment').length > 0) { @@ -233,10 +242,12 @@ define([ '

    <%= item.date %>

    ', '<% if (android) { %><% } %>', '', + '<% if (item.editable && !viewmode) { %>', '
    ', '
    ', '
    ', '
    ', + '<% } %>', '', '<% if(item.quote) {%>', '

    <%= item.quote %>

    ', @@ -253,7 +264,9 @@ define([ '

    <%= reply.date %>

    ', '', '<% if (android) { %><% } %>', + '<% if (reply.editable && !viewmode) { %>', '
    ', + '<% } %>', '', '

    <%= reply.reply %>

    ', '', @@ -267,6 +280,7 @@ define([ android: Framework7.prototype.device.android, item: comment, replys: comment.replys.length, + viewmode: me.viewmode })); }); $listComments.html(items.join('')); diff --git a/apps/documenteditor/mobile/app/controller/DocumentHolder.js b/apps/documenteditor/mobile/app/controller/DocumentHolder.js index 7aecfd2f9..ff8893ccf 100644 --- a/apps/documenteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/documenteditor/mobile/app/controller/DocumentHolder.js @@ -62,7 +62,8 @@ define([ _inRevisionChange = false, _isComments = false, _menuPos = [], - _timer = 0; + _timer = 0, + _canViewComments = true; return { models: [], @@ -104,6 +105,7 @@ define([ setMode: function (mode) { _isEdit = mode.isEdit; _canReview = mode.canReview; + _canViewComments = mode.canViewComments; }, // When our application is ready, lets get started @@ -434,6 +436,12 @@ define([ icon: 'icon-copy' }); } + if (_canViewComments && _isComments && !_isEdit) { + arrItems.push({ + caption: me.menuViewComment, + event: 'viewcomment' + }); + } var isText = false, isTable = false, @@ -556,17 +564,19 @@ define([ } } - if (_isComments) { + if (_isComments && _canViewComments) { arrItems.push({ caption: me.menuViewComment, event: 'viewcomment' }); } - arrItems.push({ - caption: me.menuAddComment, - event: 'addcomment' - }); + if (_canViewComments) { + arrItems.push({ + caption: me.menuAddComment, + event: 'addcomment' + }); + } } } diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js index ad3be8a53..2f0351f5b 100644 --- a/apps/documenteditor/mobile/app/controller/Main.js +++ b/apps/documenteditor/mobile/app/controller/Main.js @@ -762,7 +762,10 @@ define([ me.appOptions.canHistoryClose = me.editorConfig.canHistoryClose; me.appOptions.canUseMailMerge = me.appOptions.canLicense && me.appOptions.canEdit && !me.appOptions.isDesktopApp; me.appOptions.canSendEmailAddresses = me.appOptions.canLicense && me.editorConfig.canSendEmailAddresses && me.appOptions.canEdit && me.appOptions.canCoAuthoring; - me.appOptions.canComments = me.appOptions.canLicense && !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.comments===false); + me.appOptions.canComments = me.appOptions.canLicense && (me.permissions.comment===undefined ? me.appOptions.isEdit : me.permissions.comment) && (me.editorConfig.mode !== 'view'); + me.appOptions.canComments = me.appOptions.canComments && !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.comments===false); + me.appOptions.canViewComments = me.appOptions.canComments || !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.comments===false); + me.appOptions.canEditComments = me.appOptions.isOffline || !(typeof (me.editorConfig.customization) == 'object' && me.editorConfig.customization.commentAuthorOnly); me.appOptions.canChat = me.appOptions.canLicense && !me.appOptions.isOffline && !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.chat===false); me.appOptions.canEditStyles = me.appOptions.canLicense && me.appOptions.canEdit; me.appOptions.canPrint = (me.permissions.print !== false); diff --git a/apps/documenteditor/mobile/app/controller/add/AddOther.js b/apps/documenteditor/mobile/app/controller/add/AddOther.js index 36f25503c..a137cd1bd 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddOther.js +++ b/apps/documenteditor/mobile/app/controller/add/AddOther.js @@ -81,6 +81,11 @@ define([ me.api = api; }, + setMode: function (mode) { + this.view = this.getView('AddOther'); + this.view.canViewComments = mode.canViewComments; + }, + onLaunch: function () { this.createView('AddOther').render(); }, diff --git a/apps/documenteditor/mobile/app/template/AddOther.template b/apps/documenteditor/mobile/app/template/AddOther.template index f646fe425..c664a7dd4 100644 --- a/apps/documenteditor/mobile/app/template/AddOther.template +++ b/apps/documenteditor/mobile/app/template/AddOther.template @@ -2,7 +2,7 @@
      -
    • +
    • diff --git a/apps/documenteditor/mobile/app/view/add/AddOther.js b/apps/documenteditor/mobile/app/view/add/AddOther.js index 023bdbc99..523c58880 100644 --- a/apps/documenteditor/mobile/app/view/add/AddOther.js +++ b/apps/documenteditor/mobile/app/view/add/AddOther.js @@ -88,6 +88,9 @@ define([ rootLayout: function () { if (this.layout) { + if (!this.canViewComments) { + this.layout.find('#addother-root-view #item-comment').remove(); + } return this.layout .find('#addother-root-view') .html(); From ba1c1e1c1b9e0bffb56e11d2216fe1898fb31fab Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 10 Apr 2020 13:14:55 +0300 Subject: [PATCH 22/72] [SSE] Fix Bug 45112 --- apps/spreadsheeteditor/main/app/controller/DocumentHolder.js | 4 ++-- apps/spreadsheeteditor/main/app/controller/Main.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index 295da6c0e..40168960c 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -2209,8 +2209,8 @@ define([ this.documentHolder.cmpEl.append(inputtip.parentEl); } - var hint = title ? ('' + (title || '') + '
      ') : ''; - hint += (message || ''); + var hint = title ? ('' + (Common.Utils.String.htmlEncode(title || '')) + '
      ') : ''; + hint += (Common.Utils.String.htmlEncode(message || '')); if (inputtip.ref && inputtip.ref.isVisible()) { if (inputtip.text != hint) { diff --git a/apps/spreadsheeteditor/main/app/controller/Main.js b/apps/spreadsheeteditor/main/app/controller/Main.js index 695261196..93959d844 100644 --- a/apps/spreadsheeteditor/main/app/controller/Main.js +++ b/apps/spreadsheeteditor/main/app/controller/Main.js @@ -1436,9 +1436,9 @@ define([ if (icon!==undefined) { config.iconCls = (icon==Asc.c_oAscEDataValidationErrorStyle.Stop) ? 'error' : ((icon==Asc.c_oAscEDataValidationErrorStyle.Information) ? 'info' : 'warn'); } - errData && errData.asc_getErrorTitle() && (config.title = errData.asc_getErrorTitle()); + errData && errData.asc_getErrorTitle() && (config.title = Common.Utils.String.htmlEncode(errData.asc_getErrorTitle())); config.buttons = ['ok', 'cancel']; - config.msg = errData && errData.asc_getError() ? errData.asc_getError() : this.errorDataValidate; + config.msg = errData && errData.asc_getError() ? Common.Utils.String.htmlEncode(errData.asc_getError()) : this.errorDataValidate; config.maxwidth = 600; break; From 8b5cd96bce68afa803192e13ac58372699d22d4a Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Fri, 10 Apr 2020 13:53:25 +0300 Subject: [PATCH 23/72] [SSE] Fix Bug 45105 --- apps/spreadsheeteditor/main/app/controller/Print.js | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/spreadsheeteditor/main/app/controller/Print.js b/apps/spreadsheeteditor/main/app/controller/Print.js index 532047783..69bada513 100644 --- a/apps/spreadsheeteditor/main/app/controller/Print.js +++ b/apps/spreadsheeteditor/main/app/controller/Print.js @@ -244,6 +244,7 @@ define([ } if (this.api) { + Common.UI.Menu.Manager.hideAll(); this.asUrl = asUrl; this.downloadFormat = format; this.printSettingsDlg = (new SSE.Views.PrintSettings({ From 96b9c849aca2ad9205b4692b175bf4dc84949a9e Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Fri, 10 Apr 2020 18:58:59 +0300 Subject: [PATCH 24/72] [PE mobile] Comments (add: add/edit/delete comments, add/edit/delete reply, tab other into insert) --- .../mobile/lib/controller/Collaboration.js | 7 +- apps/presentationeditor/mobile/app-dev.js | 2 + apps/presentationeditor/mobile/app.js | 2 + .../mobile/app/controller/DocumentHolder.js | 44 ++++- .../mobile/app/controller/Main.js | 5 +- .../mobile/app/controller/add/AddContainer.js | 11 +- .../mobile/app/controller/add/AddOther.js | 142 ++++++++++++++++ .../mobile/app/template/AddOther.template | 37 +++++ .../mobile/app/view/add/AddOther.js | 154 ++++++++++++++++++ .../mobile/resources/css/app-ios.css | 26 ++- .../mobile/resources/css/app-material.css | 45 +++++ .../mobile/resources/less/ios/_icons.less | 25 ++- .../resources/less/material/_icons.less | 46 ++++++ 13 files changed, 536 insertions(+), 10 deletions(-) create mode 100644 apps/presentationeditor/mobile/app/controller/add/AddOther.js create mode 100644 apps/presentationeditor/mobile/app/template/AddOther.template create mode 100644 apps/presentationeditor/mobile/app/view/add/AddOther.js diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index dc8ec38c7..71e42bbd4 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -797,7 +797,8 @@ define([ }, updateViewComment: function() { - DE.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(this.showComments, this.indexCurrentComment); + var appPrefix = !!window.DE ? DE : !!window.PE ? PE : SSE; + appPrefix.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(this.showComments, this.indexCurrentComment); $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this, false)); @@ -963,7 +964,7 @@ define([ this.indexCurrentComment -= 1; } var me = this; - DE.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment); + me.getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment); _.defer(function () { $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); @@ -980,7 +981,7 @@ define([ this.indexCurrentComment += 1; } var me = this; - DE.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment); + me.getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment); _.defer(function () { $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); diff --git a/apps/presentationeditor/mobile/app-dev.js b/apps/presentationeditor/mobile/app-dev.js index 931f572a8..552212b59 100644 --- a/apps/presentationeditor/mobile/app-dev.js +++ b/apps/presentationeditor/mobile/app-dev.js @@ -150,6 +150,7 @@ require([ 'AddImage', 'AddLink', 'AddSlide', + 'AddOther', 'Common.Controllers.Collaboration' ] }); @@ -218,6 +219,7 @@ require([ 'presentationeditor/mobile/app/controller/add/AddImage', 'presentationeditor/mobile/app/controller/add/AddLink', 'presentationeditor/mobile/app/controller/add/AddSlide', + 'presentationeditor/mobile/app/controller/add/AddOther', 'common/mobile/lib/controller/Collaboration' ], function() { diff --git a/apps/presentationeditor/mobile/app.js b/apps/presentationeditor/mobile/app.js index abcec73a8..39ff0d4ef 100644 --- a/apps/presentationeditor/mobile/app.js +++ b/apps/presentationeditor/mobile/app.js @@ -160,6 +160,7 @@ require([ 'AddImage', 'AddLink', 'AddSlide', + 'AddOther', 'Common.Controllers.Collaboration' ] }); @@ -228,6 +229,7 @@ require([ 'presentationeditor/mobile/app/controller/add/AddImage', 'presentationeditor/mobile/app/controller/add/AddLink', 'presentationeditor/mobile/app/controller/add/AddSlide', + 'presentationeditor/mobile/app/controller/add/AddOther', 'common/mobile/lib/controller/Collaboration' ], function() { app.start(); diff --git a/apps/presentationeditor/mobile/app/controller/DocumentHolder.js b/apps/presentationeditor/mobile/app/controller/DocumentHolder.js index 9f629e27d..b43aa613e 100644 --- a/apps/presentationeditor/mobile/app/controller/DocumentHolder.js +++ b/apps/presentationeditor/mobile/app/controller/DocumentHolder.js @@ -56,7 +56,9 @@ define([ _view, _actionSheets = [], _isEdit = false, - _isPopMenuHidden = false; + _isPopMenuHidden = false, + _isComments = false, + _canViewComments = true; return { models: [], @@ -83,10 +85,21 @@ define([ me.api.asc_registerCallback('asc_onDocumentContentReady', _.bind(me.onApiDocumentContentReady, me)); Common.NotificationCenter.on('api:disconnect', _.bind(me.onCoAuthoringDisconnect, me)); me.api.asc_registerCallback('asc_onCoAuthoringDisconnect', _.bind(me.onCoAuthoringDisconnect,me)); + me.api.asc_registerCallback('asc_onShowComment', _.bind(me.onApiShowComment, me)); + me.api.asc_registerCallback('asc_onHideComment', _.bind(me.onApiHideComment, me)); + }, + + onApiShowComment: function(comments) { + _isComments = comments && comments.length>0; + }, + + onApiHideComment: function() { + _isComments = false; }, setMode: function (mode) { _isEdit = mode.isEdit; + _canViewComments = mode.canViewComments; }, // When our application is ready, lets get started @@ -152,6 +165,13 @@ define([ return true; } }); + } else if ('viewcomment' == eventName) { + var getCollaboration = PE.getController('Common.Controllers.Collaboration'); + getCollaboration.showCommentModal(); + } else if ('addcomment' == eventName) { + _view.hideMenu(); + PE.getController('AddContainer').showModal(); + PE.getController('AddOther').getView('AddOther').showPageComment(false); } else if ('showActionSheet' == eventName && _actionSheets.length > 0) { _.delay(function () { _.each(_actionSheets, function (action) { @@ -268,6 +288,12 @@ define([ icon: 'icon-copy' }); } + if (_canViewComments && _isComments && !_isEdit) { + arrItems.push({ + caption: me.menuViewComment, + event: 'viewcomment' + }); + } if (stack.length > 0) { var topObject = stack[stack.length - 1], @@ -316,6 +342,20 @@ define([ event: 'addlink' }); } + + if (_isComments && _canViewComments) { + arrItems.push({ + caption: me.menuViewComment, + event: 'viewcomment' + }); + } + + if (_canViewComments) { + arrItems.push({ + caption: me.menuAddComment, + event: 'addcomment' + }); + } } } @@ -353,6 +393,8 @@ define([ menuAddLink: 'Add Link', menuOpenLink: 'Open Link', menuMore: 'More', + menuViewComment: 'View Comment', + menuAddComment: 'Add Comment', sheetCancel: 'Cancel', textCopyCutPasteActions: 'Copy, Cut and Paste Actions', errorCopyCutPaste: 'Copy, cut and paste actions using the context menu will be performed within the current file only. You cannot copy or paste to or from other applications.' diff --git a/apps/presentationeditor/mobile/app/controller/Main.js b/apps/presentationeditor/mobile/app/controller/Main.js index 303d3a172..7d8dd1958 100644 --- a/apps/presentationeditor/mobile/app/controller/Main.js +++ b/apps/presentationeditor/mobile/app/controller/Main.js @@ -698,7 +698,10 @@ define([ me.appOptions.canHistoryClose = me.editorConfig.canHistoryClose; me.appOptions.canUseMailMerge = me.appOptions.canLicense && me.appOptions.canEdit && !me.appOptions.isDesktopApp; me.appOptions.canSendEmailAddresses = me.appOptions.canLicense && me.editorConfig.canSendEmailAddresses && me.appOptions.canEdit && me.appOptions.canCoAuthoring; - me.appOptions.canComments = me.appOptions.canLicense && !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.comments===false); + me.appOptions.canComments = me.appOptions.canLicense && (me.permissions.comment===undefined ? me.appOptions.isEdit : me.permissions.comment) && (me.editorConfig.mode !== 'view'); + me.appOptions.canComments = me.appOptions.canComments && !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.comments===false); + me.appOptions.canViewComments = me.appOptions.canComments || !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.comments===false); + me.appOptions.canEditComments = me.appOptions.isOffline || !(typeof (me.editorConfig.customization) == 'object' && me.editorConfig.customization.commentAuthorOnly); me.appOptions.canChat = me.appOptions.canLicense && !me.appOptions.isOffline && !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.chat===false); me.appOptions.canEditStyles = me.appOptions.canLicense && me.appOptions.canEdit; me.appOptions.canPrint = (me.permissions.print !== false); diff --git a/apps/presentationeditor/mobile/app/controller/add/AddContainer.js b/apps/presentationeditor/mobile/app/controller/add/AddContainer.js index 4a38ed5ad..95fe5aea1 100644 --- a/apps/presentationeditor/mobile/app/controller/add/AddContainer.js +++ b/apps/presentationeditor/mobile/app/controller/add/AddContainer.js @@ -134,6 +134,14 @@ define([ .rootLayout() }); + addViews.push({ + caption: me.textOther, + id: 'add-other', + layout: PE.getController('AddOther') + .getView('AddOther') + .rootLayout() + }); + return addViews; }, @@ -287,7 +295,8 @@ define([ textTable: 'Table', textShape: 'Shape', textImage: 'Image', - textLink: 'Link' + textLink: 'Link', + textOther: 'Other' } })(), PE.Controllers.AddContainer || {})) }); \ No newline at end of file diff --git a/apps/presentationeditor/mobile/app/controller/add/AddOther.js b/apps/presentationeditor/mobile/app/controller/add/AddOther.js new file mode 100644 index 000000000..2a41e9423 --- /dev/null +++ b/apps/presentationeditor/mobile/app/controller/add/AddOther.js @@ -0,0 +1,142 @@ +/* + * + * (c) Copyright Ascensio System SIA 2010-2019 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ +/** + * AddOther.js + * Presentation Editor + * + * Created by Julia Svinareva on 10/04/20 + * Copyright (c) 2020 Ascensio System SIA. All rights reserved. + * + */ + +define([ + 'core', + 'presentationeditor/mobile/app/view/add/AddOther', + 'jquery', + 'underscore', + 'backbone' +], function (core, view, $, _, Backbone) { + 'use strict'; + + PE.Controllers.AddOther = Backbone.Controller.extend(_.extend((function() { + + return { + models: [], + collections: [], + views: [ + 'AddOther' + ], + + initialize: function () { + Common.NotificationCenter.on('addcontainer:show', _.bind(this.initEvents, this)); + + this.addListeners({ + 'AddOther': { + 'page:show' : this.onPageShow + } + }); + }, + + setApi: function (api) { + var me = this; + me.api = api; + }, + + setMode: function (mode) { + this.view = this.getView('AddOther'); + this.view.canViewComments = mode.canViewComments; + }, + + onLaunch: function () { + this.createView('AddOther').render(); + }, + + initEvents: function () { + var me = this; + + }, + + onPageShow: function (view, pageId) { + var me = this; + + $('.page[data-page=addother-comment] li a').single('click', _.buffered(me.onInsertComment, 100, me)); + + if (pageId == '#addother-insert-comment') { + me.initInsertComment(); + } + }, + + // Handlers + initInsertComment: function () { + var comment = PE.getController('Common.Controllers.Collaboration').getCommentInfo(); + if (comment) { + this.getView('AddOther').renderComment(comment); + $('#done-comment').single('click', _.bind(this.onDoneComment, this)); + $('.back-from-add-comment').single('click', _.bind(function () { + if ($('#comment-text').val().length > 0) { + uiApp.modal({ + title: '', + text: this.textDeleteDraft, + buttons: [ + { + text: this.textCancel + }, + { + text: this.textContinue, + onClick: function () { + PE.getController('AddContainer').rootView.router.back(); + } + }] + }) + } else { + PE.getController('AddContainer').rootView.router.back(); + } + }, this)) + } + }, + + onDoneComment: function() { + var value = $('#comment-text').val(); + if (value.length > 0) { + PE.getController('Common.Controllers.Collaboration').onAddNewComment(value); + PE.getController('AddContainer').hideModal(); + } + }, + + textDeleteDraft: 'Delete draft?', + textCancel: 'Cancel', + textContinue: 'Continue' + + } + })(), PE.Controllers.AddOther || {})) +}); \ No newline at end of file diff --git a/apps/presentationeditor/mobile/app/template/AddOther.template b/apps/presentationeditor/mobile/app/template/AddOther.template new file mode 100644 index 000000000..6b894f93e --- /dev/null +++ b/apps/presentationeditor/mobile/app/template/AddOther.template @@ -0,0 +1,37 @@ + +
      + + + \ No newline at end of file diff --git a/apps/presentationeditor/mobile/app/view/add/AddOther.js b/apps/presentationeditor/mobile/app/view/add/AddOther.js new file mode 100644 index 000000000..82e94a6ad --- /dev/null +++ b/apps/presentationeditor/mobile/app/view/add/AddOther.js @@ -0,0 +1,154 @@ +/* + * + * (c) Copyright Ascensio System SIA 2010-2019 + * + * This program is a free software product. You can redistribute it and/or + * modify it under the terms of the GNU Affero General Public License (AGPL) + * version 3 as published by the Free Software Foundation. In accordance with + * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect + * that Ascensio System SIA expressly excludes the warranty of non-infringement + * of any third-party rights. + * + * This program is distributed WITHOUT ANY WARRANTY; without even the implied + * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For + * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html + * + * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha + * street, Riga, Latvia, EU, LV-1050. + * + * The interactive user interfaces in modified source and object code versions + * of the Program must display Appropriate Legal Notices, as required under + * Section 5 of the GNU AGPL version 3. + * + * Pursuant to Section 7(b) of the License you must retain the original Product + * logo when distributing the program. Pursuant to Section 7(e) we decline to + * grant you any rights under trademark law for use of our trademarks. + * + * All the Product's GUI elements, including illustrations and icon sets, as + * well as technical writing content are licensed under the terms of the + * Creative Commons Attribution-ShareAlike 4.0 International. See the License + * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode + * + */ + +/** + * AddOther.js + * Presentation Editor + * + * Created by Julia Svinareva on 10/04/20 + * Copyright (c) 2020 Ascensio System SIA. All rights reserved. + * + */ + +define([ + 'text!presentationeditor/mobile/app/template/AddOther.template', + 'jquery', + 'underscore', + 'backbone' +], function (addTemplate, $, _, Backbone) { + 'use strict'; + + PE.Views.AddOther = Backbone.View.extend(_.extend((function() { + // private + + return { + // el: '.view-main', + + template: _.template(addTemplate), + + events: { + }, + + initialize: function () { + Common.NotificationCenter.on('addcontainer:show', _.bind(this.initEvents, this)); + }, + + initEvents: function () { + var me = this; + + $('#add-other-comment').single('click', _.bind(me.showPageComment, me)); + + me.initControls(); + }, + + // Render layout + render: function () { + this.layout = $('
      ').append(this.template({ + android : Common.SharedSettings.get('android'), + phone : Common.SharedSettings.get('phone'), + scope : this + })); + + return this; + }, + + rootLayout: function () { + if (this.layout) { + if (!this.canViewComments) { + this.layout.find('#addother-root-view #item-comment').remove(); + } + return this.layout + .find('#addother-root-view') + .html(); + } + + return ''; + }, + + initControls: function () { + // + }, + + showPage: function (templateId, animate) { + var rootView = PE.getController('AddContainer').rootView; + + if (rootView && this.layout) { + var $content = this.layout.find(templateId); + + // Android fix for navigation + if (Framework7.prototype.device.android) { + $content.find('.page').append($content.find('.navbar')); + } + + rootView.router.load({ + content: $content.html(), + animatePages: animate !== false + }); + + this.fireEvent('page:show', [this, templateId]); + } + }, + + showPageComment: function(animate) { + this.showPage('#addother-insert-comment', animate); + }, + + renderComment: function(comment) { + _.delay(function () { + var $commentInfo = $('#comment-info'); + var template = [ + '<% if (android) { %>
      <%= comment.userInitials %>
      <% } %>', + '
      <%= comment.username %>
      ', + '
      <%= comment.date %>
      ', + '<% if (android) { %>
      <% } %>', + '
      ' + ].join(''); + var insert = _.template(template)({ + android: Framework7.prototype.device.android, + comment: comment + }); + $commentInfo.html(insert); + _.defer(function () { + var $textarea = $('.comment-textarea')[0]; + $textarea.focus(); + }); + }, 100); + }, + + textComment: 'Comment', + textAddComment: 'Add Comment', + textDone: 'Done' + + } + })(), PE.Views.AddOther || {})) +}); \ No newline at end of file diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index 7b7a308b7..fd9fef61d 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -7220,12 +7220,14 @@ i.icon.icon-in-indent { background-color: #aa5252; -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23aa5252%22%3E%3Cg%3E%3Cpath%20d%3D%22M1%2C20v-1h21v1H1z%20M12%2C16H1v-1h11V16z%20M12%2C12H1v-1h11V12z%20M12%2C8H1V7h11V8z%20M21%2C11.2l0.2%2C0.3L21%2C11.8L16.7%2C16L16%2C15.3l3.8-3.8L16%2C7.7L16.7%2C7L21%2C11.2z%20M22%2C4H1V3h21V4z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); } -i.icon.icon-prev { +i.icon.icon-prev, +i.icon.icon-prev-comment { width: 22px; height: 22px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23aa5252%22%3E%3Cg%3E%3Cpath%20d%3D%22M16%2C20.5L15%2C21.5L4.5%2C11l0%2C0l0%2C0L15%2C0.5L16%2C1.5L6.6%2C11L16%2C20.5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); } -i.icon.icon-next { +i.icon.icon-next, +i.icon.icon-next-comment { width: 22px; height: 22px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23aa5252%22%3E%3Cg%3E%3Cpath%20d%3D%22M15.5%2C11L6%2C1.5l1.1-1.1L17.5%2C11l0%2C0l0%2C0L7.1%2C21.5L6%2C20.5L15.5%2C11z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); @@ -7478,6 +7480,26 @@ i.icon.icon-paste { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%202H0V20H9V24H24V7H19V2H14V3H18V7H9V19H1V3H5V2ZM10%208H23V23H10V8Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M5%200H14V5H5V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2012H12V11H21V12Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2016H12V15H21V16Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2020H12V19H21V20Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-menu-comment { + width: 30px; + height: 30px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M10%2015C10%2016.6569%208.65685%2018%207%2018C5.34315%2018%204%2016.6569%204%2015C4%2013.3431%205.34315%2012%207%2012C8.65685%2012%2010%2013.3431%2010%2015ZM7%2016.7143C7.94677%2016.7143%208.71429%2015.9468%208.71429%2015C8.71429%2014.0532%207.94677%2013.2857%207%2013.2857C6.05323%2013.2857%205.28571%2014.0532%205.28571%2015C5.28571%2015.9468%206.05323%2016.7143%207%2016.7143Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18%2015C18%2016.6569%2016.6569%2018%2015%2018C13.3431%2018%2012%2016.6569%2012%2015C12%2013.3431%2013.3431%2012%2015%2012C16.6569%2012%2018%2013.3431%2018%2015ZM15%2016.7143C15.9468%2016.7143%2016.7143%2015.9468%2016.7143%2015C16.7143%2014.0532%2015.9468%2013.2857%2015%2013.2857C14.0532%2013.2857%2013.2857%2014.0532%2013.2857%2015C13.2857%2015.9468%2014.0532%2016.7143%2015%2016.7143Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M26%2015C26%2016.6569%2024.6569%2018%2023%2018C21.3431%2018%2020%2016.6569%2020%2015C20%2013.3431%2021.3431%2012%2023%2012C24.6569%2012%2026%2013.3431%2026%2015ZM23%2016.7143C23.9468%2016.7143%2024.7143%2015.9468%2024.7143%2015C24.7143%2014.0532%2023.9468%2013.2857%2023%2013.2857C22.0532%2013.2857%2021.2857%2014.0532%2021.2857%2015C21.2857%2015.9468%2022.0532%2016.7143%2023%2016.7143Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment { + width: 30px; + height: 30px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.6195%2020.8555C11.8237%2021.0673%2012.1658%2021.0577%2012.358%2020.8349L22.516%209.05783C22.7843%208.74676%2022.7528%208.27781%2022.4453%208.00545C22.1315%207.72756%2021.651%207.7604%2021.3779%208.07839L12.3546%2018.587C12.1638%2018.8092%2011.8238%2018.8206%2011.6186%2018.6117L8.10643%2015.0366C7.81574%2014.7407%207.34084%2014.7345%207.04258%2015.0228C6.74283%2015.3125%206.73444%2015.7903%207.02383%2016.0904L11.6195%2020.8555Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment.check { + width: 30px; + height: 30px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200H30V30H0V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.6195%2020.8555C11.8237%2021.0673%2012.1658%2021.0577%2012.358%2020.8349L22.516%209.05783C22.7843%208.74676%2022.7528%208.27781%2022.4453%208.00545V8.00545C22.1315%207.72756%2021.651%207.7604%2021.3779%208.07839L12.3546%2018.587C12.1638%2018.8092%2011.8238%2018.8206%2011.6186%2018.6117L8.10643%2015.0366C7.81575%2014.7407%207.34084%2014.7345%207.04258%2015.0228V15.0228C6.74283%2015.3125%206.73444%2015.7903%207.02383%2016.0904L11.6195%2020.8555Z%22%20fill%3D%22%234cd964%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-insert-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} .label-switch input[type="checkbox"]:checked + .checkbox { background: #aa5252; } diff --git a/apps/presentationeditor/mobile/resources/css/app-material.css b/apps/presentationeditor/mobile/resources/css/app-material.css index dc5561f6e..d5be5c3ff 100644 --- a/apps/presentationeditor/mobile/resources/css/app-material.css +++ b/apps/presentationeditor/mobile/resources/css/app-material.css @@ -7091,6 +7091,51 @@ i.icon.icon-paste { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%202H0V20H9V24H24V7H19V2H14V3H18V7H9V19H1V3H5V2ZM10%208H23V23H10V8Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20d%3D%22M5%200H14V5H5V0Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2012H12V11H21V12Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2016H12V15H21V16Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2020H12V19H21V20Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-menu-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M16.6047%2016.5848C17.0078%2016.1793%2017.4729%2015.9766%2018%2015.9766C18.5271%2015.9766%2018.9922%2016.1793%2019.3953%2016.5848C19.7984%2016.9903%2020%2017.4581%2020%2017.9883C20%2018.5185%2019.7984%2018.9864%2019.3953%2019.3918C18.9922%2019.7973%2018.5271%2020%2018%2020C17.4729%2020%2017.0078%2019.7973%2016.6047%2019.3918C16.2016%2018.9864%2016%2018.5185%2016%2017.9883C16%2017.4581%2016.2016%2016.9903%2016.6047%2016.5848ZM16.6047%2010.5965C17.0078%2010.191%2017.4729%209.9883%2018%209.9883C18.5271%209.9883%2018.9922%2010.191%2019.3953%2010.5965C19.7984%2011.0019%2020%2011.4698%2020%2012C20%2012.5302%2019.7984%2012.9981%2019.3953%2013.4035C18.9922%2013.809%2018.5271%2014.0117%2018%2014.0117C17.4729%2014.0117%2017.0078%2013.809%2016.6047%2013.4035C16.2016%2012.9981%2016%2012.5302%2016%2012C16%2011.4698%2016.2016%2011.0019%2016.6047%2010.5965ZM19.3953%207.4152C18.9922%207.82066%2018.5271%208.02339%2018%208.02339C17.4729%208.02339%2017.0078%207.82066%2016.6047%207.4152C16.2016%207.00975%2016%206.54191%2016%206.0117C16%205.48148%2016.2016%205.01365%2016.6047%204.60819C17.0078%204.20273%2017.4729%204%2018%204C18.5271%204%2018.9922%204.20273%2019.3953%204.60819C19.7984%205.01365%2020%205.48148%2020%206.0117C20%206.54191%2019.7984%207.00975%2019.3953%207.4152Z%22%20fill%3D%22black%22%20fill-opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22black%22%20fill-opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment.check { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%2340865C%22%20fill-opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-prev-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M15.4219%207.40625L10.8281%2012L15.4219%2016.5938L14.0156%2018L8.01562%2012L14.0156%206L15.4219%207.40625Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-next-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9.98438%206L15.9844%2012L9.98438%2018L8.57812%2016.5938L13.1719%2012L8.57812%207.40625L9.98438%206Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-close-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9844%206.42188L13.4062%2012L18.9844%2017.5781L17.5781%2018.9844L12%2013.4062L6.42188%2018.9844L5.01562%2017.5781L10.5938%2012L5.01562%206.42188L6.42188%205.01562L12%2010.5938L17.5781%205.01562L18.9844%206.42188Z%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%200.6)%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-done-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-insert-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-done-comment-white { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%3C%2Fsvg%3E"); +} .navbar i.icon.icon-logo { width: 100px; height: 14px; diff --git a/apps/presentationeditor/mobile/resources/less/ios/_icons.less b/apps/presentationeditor/mobile/resources/less/ios/_icons.less index 82bca371a..719330b78 100644 --- a/apps/presentationeditor/mobile/resources/less/ios/_icons.less +++ b/apps/presentationeditor/mobile/resources/less/ios/_icons.less @@ -155,12 +155,12 @@ i.icon { height: 22px; .encoded-svg-mask(''); } - &.icon-prev { + &.icon-prev, &.icon-prev-comment { width: 22px; height: 22px; .encoded-svg-background(''); } - &.icon-next { + &.icon-next, &.icon-next-comment { width: 22px; height: 22px; .encoded-svg-background(''); @@ -430,4 +430,25 @@ i.icon { height: 24px; .encoded-svg-background(''); } + //comments + &.icon-menu-comment { + width: 30px; + height: 30px; + .encoded-svg-background(''); + } + &.icon-resolve-comment { + width: 30px; + height: 30px; + .encoded-svg-background(''); + } + &.icon-resolve-comment.check { + width: 30px; + height: 30px; + .encoded-svg-background(''); + } + &.icon-insert-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } \ No newline at end of file diff --git a/apps/presentationeditor/mobile/resources/less/material/_icons.less b/apps/presentationeditor/mobile/resources/less/material/_icons.less index bc7d5e766..b8dcb4460 100644 --- a/apps/presentationeditor/mobile/resources/less/material/_icons.less +++ b/apps/presentationeditor/mobile/resources/less/material/_icons.less @@ -395,6 +395,52 @@ i.icon { height: 24px; .encoded-svg-background(''); } + //Comments + &.icon-menu-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-resolve-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-resolve-comment.check { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-prev-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-next-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-close-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-done-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-insert-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-done-comment-white { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } // Overwrite color for toolbar From 4d5f9edae8fa94bb9c0da404c20c96e056af6020 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 14 Apr 2020 19:28:37 +0300 Subject: [PATCH 25/72] [SSE mobile] Comments (add: add/edit/delete comments, add/edit/delete reply) --- .../mobile/lib/controller/Collaboration.js | 57 ++++++++++---- .../mobile/app/controller/add/AddOther.js | 10 +-- .../mobile/app/controller/add/AddOther.js | 10 +-- .../mobile/app/controller/DocumentHolder.js | 45 ++++++++++- .../mobile/app/controller/Main.js | 5 +- .../mobile/app/controller/add/AddOther.js | 54 ++++++++++++- .../mobile/app/template/AddOther.template | 23 ++++++ .../mobile/app/view/add/AddOther.js | 78 +++++++++++++++++-- .../mobile/resources/css/app-ios.css | 39 +++++++++- .../mobile/resources/css/app-material.css | 58 ++++++++++++++ .../mobile/resources/less/app-ios.less | 13 ++++ .../mobile/resources/less/app-material.less | 13 ++++ .../mobile/resources/less/ios/_icons.less | 25 +++++- .../resources/less/material/_icons.less | 46 +++++++++++ 14 files changed, 439 insertions(+), 37 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 71e42bbd4..14c527755 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -768,6 +768,9 @@ define([ me.indexCurrentComment = 0; me.updateViewComment(); } + if (window.SSE) { + SSE.getController('AddOther').sedHideAddComment(true); + } }, apiHideComments: function() { @@ -775,6 +778,9 @@ define([ uiApp.closeModal(); $('.container-view-comment').remove(); } + if (window.SSE) { + SSE.getController('AddOther').sedHideAddComment(false); + } }, disabledViewComments: function(disabled) { @@ -923,15 +929,33 @@ define([ newHeight = '100%'; me.swipeFull = true; me.closeCommentPicker = false; - $('.container-view-comment').css('opacity', '1'); + if (window.SSE) { + if ($('.container-view-comment').hasClass('onHide')) { + $('.container-view-comment').removeClass('onHide'); + } + } else { + $('.container-view-comment').css('opacity', '1'); + } } else if (dist < 100) { newHeight = '50%'; me.swipeFull = false; me.closeCommentPicker = false; - $('.container-view-comment').css('opacity', '1'); + if (window.SSE) { + if ($('.container-view-comment').hasClass('onHide')) { + $('.container-view-comment').removeClass('onHide'); + } + } else { + $('.container-view-comment').css('opacity', '1'); + } } else { me.closeCommentPicker = true; - $('.container-view-comment').css('opacity', '0.6'); + if (window.SSE) { + if (!$('.container-view-comment').hasClass('onHide')) { + $('.container-view-comment').addClass('onHide'); + } + } else { + $('.container-view-comment').css('opacity', '0.6'); + } } $('.container-view-comment').css('height', newHeight); me.swipeHeight = newHeight; @@ -1093,7 +1117,7 @@ define([ reply = null, addReply = null, ascComment = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)), - comment = _.findWhere(this.collectionComments, {uid: id}); + comment = this.findComment(id); if (ascComment && comment) { @@ -1144,7 +1168,7 @@ define([ } }, - onAddNewComment: function(value) { + onAddNewComment: function(value, documentFlag) { var comment; if (typeof Asc.asc_CCommentDataWord !== 'undefined') { comment = new Asc.asc_CCommentDataWord(null); @@ -1163,12 +1187,15 @@ define([ comment.asc_putSolved(false); if (!_.isUndefined(comment.asc_putDocumentFlag)) - comment.asc_putDocumentFlag(false); + comment.asc_putDocumentFlag(documentFlag); this.api.asc_addComment(comment); uiApp.closeModal(); + + return true; } + return false; }, initMenuComments: function(e) { @@ -1878,8 +1905,9 @@ define([ findCommentInGroup: function (id) { for (var name in this.groupCollectionComments) { - var store = this.groupCollectionComments[name], - model = _.findWhere(store, {uid: id}); + var store = this.groupCollectionComments[name]; + var id = _.isArray(id) ? id[0] : id; + var model = _.findWhere(store, {uid: id}); if (model) return model; } }, @@ -1893,7 +1921,12 @@ define([ } } } - if (this.groupCollectionComments.length > 0) { + if (this.collectionComments.length > 0) { + var comment = _.findWhere(this.collectionComments, {uid: id}); + if (comment) { + remove(this.collectionComments, comment); + } + } else { for (var name in this.groupCollectionComments) { var store = this.groupCollectionComments[name], comment = _.findWhere(store, {uid: id}); @@ -1905,12 +1938,6 @@ define([ } } } - if (this.collectionComments.length > 0) { - var comment = _.findWhere(this.collectionComments, {uid: id}); - if (comment) { - remove(this.collectionComments, comment); - } - } if(!silentUpdate && $('.page-comments').length > 0) { this.initComments(); } diff --git a/apps/documenteditor/mobile/app/controller/add/AddOther.js b/apps/documenteditor/mobile/app/controller/add/AddOther.js index a137cd1bd..742ddc793 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddOther.js +++ b/apps/documenteditor/mobile/app/controller/add/AddOther.js @@ -114,16 +114,16 @@ define([ } else if (pageId == '#addother-insert-footnote') { me.initInsertFootnote(); } else if (pageId === "#addother-insert-comment") { - me.initInsertComment(); + me.initInsertComment(false); } }, // Handlers - initInsertComment: function () { + initInsertComment: function (documentFlag) { var comment = DE.getController('Common.Controllers.Collaboration').getCommentInfo(); if (comment) { this.getView('AddOther').renderComment(comment); - $('#done-comment').single('click', _.bind(this.onDoneComment, this)); + $('#done-comment').single('click', _.bind(this.onDoneComment, this, documentFlag)); $('.back-from-add-comment').single('click', _.bind(function () { if ($('#comment-text').val().length > 0) { uiApp.modal({ @@ -147,10 +147,10 @@ define([ } }, - onDoneComment: function() { + onDoneComment: function(documentFlag) { var value = $('#comment-text').val(); if (value.length > 0) { - DE.getController('Common.Controllers.Collaboration').onAddNewComment(value); + DE.getController('Common.Controllers.Collaboration').onAddNewComment(value, documentFlag); DE.getController('AddContainer').hideModal(); } }, diff --git a/apps/presentationeditor/mobile/app/controller/add/AddOther.js b/apps/presentationeditor/mobile/app/controller/add/AddOther.js index 2a41e9423..dcbf08121 100644 --- a/apps/presentationeditor/mobile/app/controller/add/AddOther.js +++ b/apps/presentationeditor/mobile/app/controller/add/AddOther.js @@ -92,16 +92,16 @@ define([ $('.page[data-page=addother-comment] li a').single('click', _.buffered(me.onInsertComment, 100, me)); if (pageId == '#addother-insert-comment') { - me.initInsertComment(); + me.initInsertComment(false); } }, // Handlers - initInsertComment: function () { + initInsertComment: function (documentFlag) { var comment = PE.getController('Common.Controllers.Collaboration').getCommentInfo(); if (comment) { this.getView('AddOther').renderComment(comment); - $('#done-comment').single('click', _.bind(this.onDoneComment, this)); + $('#done-comment').single('click', _.bind(this.onDoneComment, this, documentFlag)); $('.back-from-add-comment').single('click', _.bind(function () { if ($('#comment-text').val().length > 0) { uiApp.modal({ @@ -125,10 +125,10 @@ define([ } }, - onDoneComment: function() { + onDoneComment: function(documentFlag) { var value = $('#comment-text').val(); if (value.length > 0) { - PE.getController('Common.Controllers.Collaboration').onAddNewComment(value); + PE.getController('Common.Controllers.Collaboration').onAddNewComment(value, documentFlag); PE.getController('AddContainer').hideModal(); } }, diff --git a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js index 50023d10f..2f51a7f37 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js @@ -52,7 +52,9 @@ define([ SSE.Controllers.DocumentHolder = Backbone.Controller.extend(_.extend((function() { // private var _actionSheets = [], - _isEdit = false; + _isEdit = false, + _canViewComments = true, + _isComments = false; function openLink(url) { var newDocumentPage = window.open(url, '_blank'); @@ -84,6 +86,16 @@ define([ this.api.asc_registerCallback('asc_onHidePopMenu', _.bind(this.onApiHidePopMenu, this)); Common.NotificationCenter.on('api:disconnect', _.bind(this.onCoAuthoringDisconnect, this)); this.api.asc_registerCallback('asc_onCoAuthoringDisconnect', _.bind(this.onCoAuthoringDisconnect,this)); + this.api.asc_registerCallback('asc_onShowComment', _.bind(this.onApiShowComment, this)); + this.api.asc_registerCallback('asc_onHideComment', _.bind(this.onApiHideComment, this)); + }, + + onApiShowComment: function(comments) { + _isComments = comments && comments.length>0; + }, + + onApiHideComment: function() { + _isComments = false; }, setMode: function (mode) { @@ -91,6 +103,7 @@ define([ if (_isEdit) { this.api.asc_registerCallback('asc_onSetAFDialog', _.bind(this.onApiFilterOptions, this)); } + _canViewComments = mode.canViewComments; }, // When our application is ready, lets get started @@ -191,6 +204,14 @@ define([ case 'freezePanes': me.api.asc_freezePane(); break; + case 'viewcomment': + me.view.hideMenu(); + SSE.getController('Common.Controllers.Collaboration').showCommentModal(); + break; + case 'addcomment': + me.view.hideMenu(); + SSE.getController('AddContainer').showModal(); + SSE.getController('AddOther').getView('AddOther').showPageComment(false); } if ('showActionSheet' == event && _actionSheets.length > 0) { @@ -277,6 +298,12 @@ define([ event: 'openlink' }); } + if (_canViewComments && _isComments) { + arrItems.push({ + caption: me.menuViewComment, + event: 'viewcomment' + }); + } } else { if (!iscelllocked && (isimagemenu || isshapemenu || ischartmenu || istextshapemenu || istextchartmenu)) { @@ -382,6 +409,20 @@ define([ }); } + + if (_canViewComments) { + if (_isComments) { + arrItems.push({ + caption: me.menuViewComment, + event: 'viewcomment' + }); + } else { + arrItems.push({ + caption: me.menuAddComment, + event: 'addcomment' + }); + } + } } @@ -434,6 +475,8 @@ define([ sheetCancel: 'Cancel', menuFreezePanes: 'Freeze Panes', menuUnfreezePanes: 'Unfreeze Panes', + menuViewComment: 'View Comment', + menuAddComment: 'Add Comment', textCopyCutPasteActions: 'Copy, Cut and Paste Actions', errorCopyCutPaste: 'Copy, cut and paste actions using the context menu will be performed within the current file only. You cannot copy or paste to or from other applications.' } diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index dd7a3cb23..2f38c4a03 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -717,7 +717,10 @@ define([ /** coauthoring begin **/ me.appOptions.canCoAuthoring = !me.appOptions.isLightVersion; /** coauthoring end **/ - me.appOptions.canComments = me.appOptions.canLicense && !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.comments===false); + me.appOptions.canComments = me.appOptions.canLicense && (me.permissions.comment===undefined ? me.appOptions.isEdit : me.permissions.comment) && (me.editorConfig.mode !== 'view'); + me.appOptions.canComments = me.appOptions.canComments && !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.comments===false); + me.appOptions.canViewComments = me.appOptions.canComments || !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.comments===false); + me.appOptions.canEditComments = me.appOptions.isOffline || !(typeof (me.editorConfig.customization) == 'object' && me.editorConfig.customization.commentAuthorOnly); me.appOptions.canChat = me.appOptions.canLicense && !me.appOptions.isOffline && !((typeof (me.editorConfig.customization) == 'object') && me.editorConfig.customization.chat===false); me.appOptions.canRename = !!me.permissions.rename; diff --git a/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js b/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js index 570fec38c..937cdcb9c 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js +++ b/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js @@ -75,6 +75,15 @@ define([ }, + setMode: function (mode) { + this.view = this.getView('AddOther'); + this.view.canViewComments = mode.canViewComments; + }, + + sedHideAddComment: function(hide) { + this.view.isHideAddComment = hide; //prohibit adding multiple comments in one cell + }, + onLaunch: function () { this.createView('AddOther').render(); }, @@ -100,11 +109,51 @@ define([ $('#addimage-file').single('click', function () { me.onInsertImage({islocal:true}); }); + } else if (pageId === "#addother-insert-comment") { + me.initInsertComment(false); } }, // Handlers + initInsertComment: function (documentFlag) { + var comment = SSE.getController('Common.Controllers.Collaboration').getCommentInfo(); + if (comment) { + this.getView('AddOther').renderComment(comment); + $('#done-comment').single('click', _.bind(this.onDoneComment, this, documentFlag)); + $('.back-from-add-comment').single('click', _.bind(function () { + if ($('#comment-text').val().length > 0) { + uiApp.modal({ + title: '', + text: this.textDeleteDraft, + buttons: [ + { + text: this.textCancel + }, + { + text: this.textContinue, + onClick: function () { + SSE.getController('AddContainer').rootView.router.back(); + } + }] + }) + } else { + SSE.getController('AddContainer').rootView.router.back(); + } + }, this)) + } + }, + + onDoneComment: function(documentFlag) { + var value = $('#comment-text').val(); + if (value.length > 0) { + if (SSE.getController('Common.Controllers.Collaboration').onAddNewComment(value, documentFlag)) { + this.view.isHideAddComment = true; + } + SSE.getController('AddContainer').hideModal(); + } + }, + onInsertImage: function (args) { if ( !args.islocal ) { var me = this; @@ -137,7 +186,10 @@ define([ }, textEmptyImgUrl : 'You need to specify image URL.', - txtNotUrl: 'This field should be a URL in the format \"http://www.example.com\"' + txtNotUrl: 'This field should be a URL in the format \"http://www.example.com\"', + textDeleteDraft: 'Delete draft?', + textCancel: 'Cancel', + textContinue: 'Continue' } })(), SSE.Controllers.AddOther || {})) }); \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/app/template/AddOther.template b/apps/spreadsheeteditor/mobile/app/template/AddOther.template index f20d083e8..4089e161e 100644 --- a/apps/spreadsheeteditor/mobile/app/template/AddOther.template +++ b/apps/spreadsheeteditor/mobile/app/template/AddOther.template @@ -2,6 +2,18 @@ +
      + + +
      +
      +
      +
      +
      + +
      +
      \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js b/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js index 4b5b98675..5ad766736 100644 --- a/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js +++ b/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js @@ -62,6 +62,23 @@ define([ var mapNavigation = {}; + var tplNavigationComment = '
      '; + var getNavigation = function (panelid) { var el = mapNavigation[panelid]; if ( !el ) { @@ -73,16 +90,28 @@ define([ case '#addother-insimage': _title = this.textInsertImage; break; case '#addother-sort': _title = this.textSort; break; case '#addother-imagefromurl': _title = this.textLinkSettings; break; + case '#addother-insert-comment': _title = this.textAddComment; break; } - mapNavigation = - el = _.template(tplNavigation)({ + if (panelid === '#addother-insert-comment') { + el = _.template(tplNavigationComment)({ android : Common.SharedSettings.get('android'), phone : Common.SharedSettings.get('phone'), textBack : this.textBack, + textDone : this.textDone, title : _title } ); + } else { + mapNavigation = + el = _.template(tplNavigation)({ + android : Common.SharedSettings.get('android'), + phone : Common.SharedSettings.get('phone'), + textBack : this.textBack, + title : _title + } + ); + } } return el; @@ -106,6 +135,7 @@ define([ $page.find('#add-other-insimage').single('click', _.bind(me.showInsertImage, me)); $page.find('#add-other-link').single('click', _.bind(me.showInsertLink, me)); $page.find('#add-other-sort').single('click', _.bind(me.showSortPage, me)); + $page.find('#add-other-comment').single('click', _.bind(me.showPageComment, me)); me.initControls(); }, @@ -123,6 +153,14 @@ define([ rootLayout: function () { if (this.layout) { + if (!this.canViewComments) { + this.layout.find('#addother-root-view #item-comment').remove(); + } + if (this.isHideAddComment) { + this.layout.find('#addother-root-view #item-comment').hide(); + } else { + this.layout.find('#addother-root-view #item-comment').show(); + } return this.layout .find('#addother-root-view') .html(); @@ -144,7 +182,7 @@ define([ // }, - showPage: function (templateId) { + showPage: function (templateId, animate) { var rootView = SSE.getController('AddContainer').rootView; if (rootView && this.layout) { @@ -161,13 +199,40 @@ define([ } rootView.router.load({ - content: $content.html() + content: $content.html(), + animatePages: animate !== false }); this.fireEvent('page:show', [this, templateId]); } }, + showPageComment: function(animate) { + this.showPage('#addother-insert-comment', animate); + }, + + renderComment: function(comment) { + _.delay(function () { + var $commentInfo = $('#comment-info'); + var template = [ + '<% if (android) { %>
      <%= comment.userInitials %>
      <% } %>', + '
      <%= comment.username %>
      ', + '
      <%= comment.date %>
      ', + '<% if (android) { %>
      <% } %>', + '
      ' + ].join(''); + var insert = _.template(template)({ + android: Framework7.prototype.device.android, + comment: comment + }); + $commentInfo.html(insert); + _.defer(function () { + var $textarea = $('.comment-textarea')[0]; + $textarea.focus(); + }); + }, 100); + }, + showInsertImage: function () { this.showPage('#addother-insimage'); @@ -227,7 +292,10 @@ define([ textAddress: 'Address', textImageURL: 'Image URL', textFilter: 'Filter', - textLinkSettings: 'Link Settings' + textLinkSettings: 'Link Settings', + textComment: 'Comment', + textAddComment: 'Add Comment', + textDone: 'Done' } })(), SSE.Views.AddOther || {})) }); \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index 97ff19d6c..32f523dfe 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -7112,12 +7112,14 @@ i.icon.icon-text-valign-bottom { background-color: #40865c; -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%2340865c%22%3E%3Cg%3E%3Crect%20class%3D%22cls-1%22%20x%3D%222%22%20y%3D%2218%22%20width%3D%2219%22%20height%3D%221%22%2F%3E%3Crect%20class%3D%22cls-1%22%20x%3D%222%22%20y%3D%2220%22%20width%3D%2219%22%20height%3D%221%22%2F%3E%3Cpolygon%20class%3D%22cls-1%22%20points%3D%2211%204%2012%204%2012%2015.17%2014.35%2013.2%2015%2014.06%2011.5%2017%208%2014%208.65%2013.2%2011%2015.17%2011%204%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); } -i.icon.icon-prev { +i.icon.icon-prev, +i.icon.icon-prev-comment { width: 22px; height: 22px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%2340865c%22%3E%3Cg%3E%3Cpath%20d%3D%22M16%2C20.5L15%2C21.5L4.5%2C11l0%2C0l0%2C0L15%2C0.5L16%2C1.5L6.6%2C11L16%2C20.5z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); } -i.icon.icon-next { +i.icon.icon-next, +i.icon.icon-next-comment { width: 22px; height: 22px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%2340865c%22%3E%3Cg%3E%3Cpath%20d%3D%22M15.5%2C11L6%2C1.5l1.1-1.1L17.5%2C11l0%2C0l0%2C0L7.1%2C21.5L6%2C20.5L15.5%2C11z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); @@ -7362,6 +7364,26 @@ i.icon.icon-paste { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%202H0V20H9V24H24V7H19V2H14V3H18V7H9V19H1V3H5V2ZM10%208H23V23H10V8Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M5%200H14V5H5V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2012H12V11H21V12Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2016H12V15H21V16Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2020H12V19H21V20Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-menu-comment { + width: 30px; + height: 30px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M10%2015C10%2016.6569%208.65685%2018%207%2018C5.34315%2018%204%2016.6569%204%2015C4%2013.3431%205.34315%2012%207%2012C8.65685%2012%2010%2013.3431%2010%2015ZM7%2016.7143C7.94677%2016.7143%208.71429%2015.9468%208.71429%2015C8.71429%2014.0532%207.94677%2013.2857%207%2013.2857C6.05323%2013.2857%205.28571%2014.0532%205.28571%2015C5.28571%2015.9468%206.05323%2016.7143%207%2016.7143Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18%2015C18%2016.6569%2016.6569%2018%2015%2018C13.3431%2018%2012%2016.6569%2012%2015C12%2013.3431%2013.3431%2012%2015%2012C16.6569%2012%2018%2013.3431%2018%2015ZM15%2016.7143C15.9468%2016.7143%2016.7143%2015.9468%2016.7143%2015C16.7143%2014.0532%2015.9468%2013.2857%2015%2013.2857C14.0532%2013.2857%2013.2857%2014.0532%2013.2857%2015C13.2857%2015.9468%2014.0532%2016.7143%2015%2016.7143Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M26%2015C26%2016.6569%2024.6569%2018%2023%2018C21.3431%2018%2020%2016.6569%2020%2015C20%2013.3431%2021.3431%2012%2023%2012C24.6569%2012%2026%2013.3431%2026%2015ZM23%2016.7143C23.9468%2016.7143%2024.7143%2015.9468%2024.7143%2015C24.7143%2014.0532%2023.9468%2013.2857%2023%2013.2857C22.0532%2013.2857%2021.2857%2014.0532%2021.2857%2015C21.2857%2015.9468%2022.0532%2016.7143%2023%2016.7143Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment { + width: 30px; + height: 30px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.6195%2020.8555C11.8237%2021.0673%2012.1658%2021.0577%2012.358%2020.8349L22.516%209.05783C22.7843%208.74676%2022.7528%208.27781%2022.4453%208.00545C22.1315%207.72756%2021.651%207.7604%2021.3779%208.07839L12.3546%2018.587C12.1638%2018.8092%2011.8238%2018.8206%2011.6186%2018.6117L8.10643%2015.0366C7.81574%2014.7407%207.34084%2014.7345%207.04258%2015.0228C6.74283%2015.3125%206.73444%2015.7903%207.02383%2016.0904L11.6195%2020.8555Z%22%20fill%3D%22%23A3A3A3%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment.check { + width: 30px; + height: 30px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2230%22%20height%3D%2230%22%20viewBox%3D%220%200%2030%2030%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M0%200H30V30H0V0Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M11.6195%2020.8555C11.8237%2021.0673%2012.1658%2021.0577%2012.358%2020.8349L22.516%209.05783C22.7843%208.74676%2022.7528%208.27781%2022.4453%208.00545V8.00545C22.1315%207.72756%2021.651%207.7604%2021.3779%208.07839L12.3546%2018.587C12.1638%2018.8092%2011.8238%2018.8206%2011.6186%2018.6117L8.10643%2015.0366C7.81575%2014.7407%207.34084%2014.7345%207.04258%2015.0228V15.0228C6.74283%2015.3125%206.73444%2015.7903%207.02383%2016.0904L11.6195%2020.8555Z%22%20fill%3D%22%234cd964%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-insert-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%2340865c%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); +} .chart-types .thumb.bar-normal { background-image: url('../img/charts/chart-03.png'); } @@ -8195,3 +8217,16 @@ html.pixel-ratio-3 .cell-styles.dataview .row li { background-size: 20px 20px; width: 25px; } +.picker-modal.container-view-comment { + background-color: #efeff4; +} +.picker-modal.container-view-comment.onHide .swipe-container, +.picker-modal.container-view-comment.onHide .toolbar-inner, +.picker-modal.container-view-comment.onHide .pages { + opacity: 0.6; +} +.picker-modal.container-view-comment .swipe-container, +.picker-modal.container-view-comment .toolbar, +.picker-modal.container-view-comment .pages { + background-color: #FFFFFF; +} diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-material.css b/apps/spreadsheeteditor/mobile/resources/css/app-material.css index fbedc52d8..93a468c05 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-material.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-material.css @@ -7084,6 +7084,51 @@ i.icon.icon-paste { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%202H0V20H9V24H24V7H19V2H14V3H18V7H9V19H1V3H5V2ZM10%208H23V23H10V8Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20d%3D%22M5%200H14V5H5V0Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2012H12V11H21V12Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2016H12V15H21V16Z%22%20fill%3D%22black%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M21%2020H12V19H21V20Z%22%20fill%3D%22black%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-menu-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M16.6047%2016.5848C17.0078%2016.1793%2017.4729%2015.9766%2018%2015.9766C18.5271%2015.9766%2018.9922%2016.1793%2019.3953%2016.5848C19.7984%2016.9903%2020%2017.4581%2020%2017.9883C20%2018.5185%2019.7984%2018.9864%2019.3953%2019.3918C18.9922%2019.7973%2018.5271%2020%2018%2020C17.4729%2020%2017.0078%2019.7973%2016.6047%2019.3918C16.2016%2018.9864%2016%2018.5185%2016%2017.9883C16%2017.4581%2016.2016%2016.9903%2016.6047%2016.5848ZM16.6047%2010.5965C17.0078%2010.191%2017.4729%209.9883%2018%209.9883C18.5271%209.9883%2018.9922%2010.191%2019.3953%2010.5965C19.7984%2011.0019%2020%2011.4698%2020%2012C20%2012.5302%2019.7984%2012.9981%2019.3953%2013.4035C18.9922%2013.809%2018.5271%2014.0117%2018%2014.0117C17.4729%2014.0117%2017.0078%2013.809%2016.6047%2013.4035C16.2016%2012.9981%2016%2012.5302%2016%2012C16%2011.4698%2016.2016%2011.0019%2016.6047%2010.5965ZM19.3953%207.4152C18.9922%207.82066%2018.5271%208.02339%2018%208.02339C17.4729%208.02339%2017.0078%207.82066%2016.6047%207.4152C16.2016%207.00975%2016%206.54191%2016%206.0117C16%205.48148%2016.2016%205.01365%2016.6047%204.60819C17.0078%204.20273%2017.4729%204%2018%204C18.5271%204%2018.9922%204.20273%2019.3953%204.60819C19.7984%205.01365%2020%205.48148%2020%206.0117C20%206.54191%2019.7984%207.00975%2019.3953%207.4152Z%22%20fill%3D%22black%22%20fill-opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22black%22%20fill-opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-resolve-comment.check { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%2340865C%22%20fill-opacity%3D%220.6%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-prev-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M15.4219%207.40625L10.8281%2012L15.4219%2016.5938L14.0156%2018L8.01562%2012L14.0156%206L15.4219%207.40625Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-next-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9.98438%206L15.9844%2012L9.98438%2018L8.57812%2016.5938L13.1719%2012L8.57812%207.40625L9.98438%206Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-close-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9844%206.42188L13.4062%2012L18.9844%2017.5781L17.5781%2018.9844L12%2013.4062L6.42188%2018.9844L5.01562%2017.5781L10.5938%2012L5.01562%206.42188L6.42188%205.01562L12%2010.5938L17.5781%205.01562L18.9844%206.42188Z%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%200.6)%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-done-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-insert-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%2340865c%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-done-comment-white { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%3C%2Fsvg%3E"); +} .navbar i.icon.icon-logo { width: 100px; height: 14px; @@ -8158,3 +8203,16 @@ html.pixel-ratio-3 .cell-styles.dataview .row li { background-size: 20px 20px; width: 25px; } +.picker-modal.container-view-comment { + background-color: #efeff4; +} +.picker-modal.container-view-comment.onHide .swipe-container, +.picker-modal.container-view-comment.onHide .toolbar-inner, +.picker-modal.container-view-comment.onHide .pages { + opacity: 0.6; +} +.picker-modal.container-view-comment .swipe-container, +.picker-modal.container-view-comment .toolbar, +.picker-modal.container-view-comment .pages { + background-color: #FFFFFF; +} diff --git a/apps/spreadsheeteditor/mobile/resources/less/app-ios.less b/apps/spreadsheeteditor/mobile/resources/less/app-ios.less index 69f0a6eaf..ea4955770 100644 --- a/apps/spreadsheeteditor/mobile/resources/less/app-ios.less +++ b/apps/spreadsheeteditor/mobile/resources/less/app-ios.less @@ -341,4 +341,17 @@ input, textarea { width: 25px; } } +} + +//Comments +.picker-modal.container-view-comment { + &.onHide { + .swipe-container, .toolbar-inner, .pages { + opacity: 0.6; + } + } + background-color: #efeff4; + .swipe-container, .toolbar, .pages { + background-color: #FFFFFF; + } } \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/resources/less/app-material.less b/apps/spreadsheeteditor/mobile/resources/less/app-material.less index 6cc861eac..897d5eb15 100644 --- a/apps/spreadsheeteditor/mobile/resources/less/app-material.less +++ b/apps/spreadsheeteditor/mobile/resources/less/app-material.less @@ -330,4 +330,17 @@ input, textarea { width: 25px; } } +} + +//Comments +.picker-modal.container-view-comment { + &.onHide { + .swipe-container, .toolbar-inner, .pages { + opacity: 0.6; + } + } + background-color: #efeff4; + .swipe-container, .toolbar, .pages { + background-color: #FFFFFF; + } } \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/resources/less/ios/_icons.less b/apps/spreadsheeteditor/mobile/resources/less/ios/_icons.less index bf9b1ebfd..8f314eb15 100644 --- a/apps/spreadsheeteditor/mobile/resources/less/ios/_icons.less +++ b/apps/spreadsheeteditor/mobile/resources/less/ios/_icons.less @@ -121,12 +121,12 @@ i.icon { height: 22px; .encoded-svg-mask(''); } - &.icon-prev { + &.icon-prev, &.icon-prev-comment { width: 22px; height: 22px; .encoded-svg-background(''); } - &.icon-next { + &.icon-next, &.icon-next-comment { width: 22px; height: 22px; .encoded-svg-background(''); @@ -388,6 +388,27 @@ i.icon { height: 24px; .encoded-svg-background(''); } + //Comments + &.icon-menu-comment { + width: 30px; + height: 30px; + .encoded-svg-background(''); + } + &.icon-resolve-comment { + width: 30px; + height: 30px; + .encoded-svg-background(''); + } + &.icon-resolve-comment.check { + width: 30px; + height: 30px; + .encoded-svg-background(''); + } + &.icon-insert-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } .chart-types .thumb { diff --git a/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less b/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less index 941748222..8a8250db9 100644 --- a/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less +++ b/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less @@ -347,6 +347,52 @@ i.icon { height: 24px; .encoded-svg-background(''); } + //Comments + &.icon-menu-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-resolve-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-resolve-comment.check { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-prev-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-next-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-close-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-done-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-insert-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-done-comment-white { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } // Overwrite color for toolbar From cd4826ff92b23fbb96c448919518b20d43fcb8a3 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Wed, 15 Apr 2020 19:50:15 +0300 Subject: [PATCH 26/72] [mobile] Comments (added check for the ability to add comments) --- .../mobile/lib/controller/Collaboration.js | 4 +- .../mobile/app/controller/DocumentHolder.js | 6 ++- .../mobile/app/controller/add/AddOther.js | 45 +++++++++++++++++++ .../mobile/app/view/add/AddOther.js | 7 ++- .../mobile/app/controller/DocumentHolder.js | 3 +- .../mobile/app/controller/add/AddOther.js | 27 ++++++++++- .../mobile/app/view/add/AddOther.js | 11 +++-- .../mobile/app/controller/DocumentHolder.js | 2 +- .../mobile/app/controller/add/AddOther.js | 17 +++++-- .../mobile/app/view/add/AddOther.js | 12 ++--- 10 files changed, 112 insertions(+), 22 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 14c527755..651f1bdee 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -769,7 +769,7 @@ define([ me.updateViewComment(); } if (window.SSE) { - SSE.getController('AddOther').sedHideAddComment(true); + SSE.getController('AddOther').setHideAddComment(true); } }, @@ -779,7 +779,7 @@ define([ $('.container-view-comment').remove(); } if (window.SSE) { - SSE.getController('AddOther').sedHideAddComment(false); + SSE.getController('AddOther').setHideAddComment(false); } }, diff --git a/apps/documenteditor/mobile/app/controller/DocumentHolder.js b/apps/documenteditor/mobile/app/controller/DocumentHolder.js index ff8893ccf..1b54d0928 100644 --- a/apps/documenteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/documenteditor/mobile/app/controller/DocumentHolder.js @@ -462,7 +462,7 @@ define([ lockedHeader = objectValue.get_Locked(); } - if (objectType == Asc.c_oAscTypeSelectElement.Text) { + if (objectType == Asc.c_oAscTypeSelectElement.Paragraph) { isText = true; lockedText = objectValue.get_Locked(); } else if (objectType == Asc.c_oAscTypeSelectElement.Image) { @@ -571,7 +571,9 @@ define([ }); } - if (_canViewComments) { + var isObject = isShape || isChart || isImage || isTable; + var hideAddComment = !_canViewComments || me.api.can_AddQuotedComment() === false || lockedText || lockedTable || lockedImage || lockedHeader || (!isText && isObject); + if (!hideAddComment) { arrItems.push({ caption: me.menuAddComment, event: 'addcomment' diff --git a/apps/documenteditor/mobile/app/controller/add/AddOther.js b/apps/documenteditor/mobile/app/controller/add/AddOther.js index 742ddc793..041cb3758 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddOther.js +++ b/apps/documenteditor/mobile/app/controller/add/AddOther.js @@ -94,6 +94,51 @@ define([ var me = this; $('#add-other-pagebreak').single('click', _.bind(me.onPageBreak, me)); $('#add-other-columnbreak').single('click', _.bind(me.onColumnBreak, me)); + this.view.hideInsertComments = this.isHideInsertComment(); + }, + + isHideInsertComment: function() { + var stack = this.api.getSelectedElements(); + var isText = false, + isTable = false, + isImage = false, + isChart = false, + isShape = false, + isLink = false, + lockedText = false, + lockedTable = false, + lockedImage = false, + lockedHeader = false; + _.each(stack, function (item) { + var objectType = item.get_ObjectType(), + objectValue = item.get_ObjectValue(); + if (objectType == Asc.c_oAscTypeSelectElement.Header) { + lockedHeader = objectValue.get_Locked(); + } + if (objectType == Asc.c_oAscTypeSelectElement.Paragraph) { + isText = true; + lockedText = objectValue.get_Locked(); + } else if (objectType == Asc.c_oAscTypeSelectElement.Image) { + lockedImage = objectValue.get_Locked(); + if (objectValue && objectValue.get_ChartProperties()) { + isChart = true; + } else if (objectType && objectValue.get_ShapeProperties()) { + isShape = true; + } else { + isImage = true; + } + } else if (objectType == Asc.c_oAscTypeSelectElement.Table) { + isTable = true; + lockedTable = objectValue.get_Locked(); + } else if (objectType == Asc.c_oAscTypeSelectElement.Hyperlink) { + isLink = true; + } + }); + if (stack.length > 0) { + var isObject = isShape || isChart || isImage || isTable; + return (this.api.can_AddQuotedComment() === false || lockedText || lockedTable || lockedImage || lockedHeader || (!isText && isObject)); + } + return true; }, onPageShow: function (view, pageId) { diff --git a/apps/documenteditor/mobile/app/view/add/AddOther.js b/apps/documenteditor/mobile/app/view/add/AddOther.js index 523c58880..746f300de 100644 --- a/apps/documenteditor/mobile/app/view/add/AddOther.js +++ b/apps/documenteditor/mobile/app/view/add/AddOther.js @@ -70,7 +70,12 @@ define([ $('#add-other-link').single('click', _.bind(me.showLink, me)); $('#add-other-pagenumber').single('click', _.bind(me.showPagePosition, me)); $('#add-other-footnote').single('click', _.bind(me.showPageFootnote, me)); - $('#add-other-comment').single('click', _.bind(me.showPageComment, me)); + if (this.hideInsertComments) { + $('#item-comment').hide(); + } else { + $('#item-comment').show(); + $('#add-other-comment').single('click', _.bind(me.showPageComment, me)); + } me.initControls(); }, diff --git a/apps/presentationeditor/mobile/app/controller/DocumentHolder.js b/apps/presentationeditor/mobile/app/controller/DocumentHolder.js index b43aa613e..e46b5d68b 100644 --- a/apps/presentationeditor/mobile/app/controller/DocumentHolder.js +++ b/apps/presentationeditor/mobile/app/controller/DocumentHolder.js @@ -350,7 +350,8 @@ define([ }); } - if (_canViewComments) { + var hideAddComment = (isText && isChart) || me.api.can_AddQuotedComment() === false || !_canViewComments; + if (!hideAddComment) { arrItems.push({ caption: me.menuAddComment, event: 'addcomment' diff --git a/apps/presentationeditor/mobile/app/controller/add/AddOther.js b/apps/presentationeditor/mobile/app/controller/add/AddOther.js index dcbf08121..b64bc7a35 100644 --- a/apps/presentationeditor/mobile/app/controller/add/AddOther.js +++ b/apps/presentationeditor/mobile/app/controller/add/AddOther.js @@ -83,14 +83,37 @@ define([ initEvents: function () { var me = this; + this.view.hideInsertComments = this.isHideInsertComment(); + }, + isHideInsertComment: function() { + var stack = this.api.getSelectedElements(); + var isText = false, + isChart = false; + + _.each(stack, function (item) { + var objectType = item.get_ObjectType(); + if (objectType == Asc.c_oAscTypeSelectElement.Paragraph) { + isText = true; + } else if (objectType == Asc.c_oAscTypeSelectElement.Chart) { + isChart = true; + } + }); + if (stack.length > 0) { + var topObject = stack[stack.length - 1], + topObjectValue = topObject.get_ObjectValue(), + objectLocked = _.isFunction(topObjectValue.get_Locked) ? topObjectValue.get_Locked() : false; + !objectLocked && (objectLocked = _.isFunction(topObjectValue.get_LockDelete) ? topObjectValue.get_LockDelete() : false); + if (!objectLocked) { + return ((isText && isChart) || this.api.can_AddQuotedComment() === false); + } + } + return true; }, onPageShow: function (view, pageId) { var me = this; - $('.page[data-page=addother-comment] li a').single('click', _.buffered(me.onInsertComment, 100, me)); - if (pageId == '#addother-insert-comment') { me.initInsertComment(false); } diff --git a/apps/presentationeditor/mobile/app/view/add/AddOther.js b/apps/presentationeditor/mobile/app/view/add/AddOther.js index 82e94a6ad..6473fba24 100644 --- a/apps/presentationeditor/mobile/app/view/add/AddOther.js +++ b/apps/presentationeditor/mobile/app/view/add/AddOther.js @@ -64,11 +64,14 @@ define([ }, initEvents: function () { - var me = this; + if (this.hideInsertComments) { + $('#item-comment').hide(); + } else { + $('#item-comment').show(); + $('#add-other-comment').single('click', _.bind(this.showPageComment, this)); + } - $('#add-other-comment').single('click', _.bind(me.showPageComment, me)); - - me.initControls(); + this.initControls(); }, // Render layout diff --git a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js index 2f51a7f37..8f0f5ed37 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/mobile/app/controller/DocumentHolder.js @@ -416,7 +416,7 @@ define([ caption: me.menuViewComment, event: 'viewcomment' }); - } else { + } else if (iscellmenu) { arrItems.push({ caption: me.menuAddComment, event: 'addcomment' diff --git a/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js b/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js index 937cdcb9c..6986b3ba9 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js +++ b/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js @@ -80,8 +80,8 @@ define([ this.view.canViewComments = mode.canViewComments; }, - sedHideAddComment: function(hide) { - this.view.isHideAddComment = hide; //prohibit adding multiple comments in one cell + setHideAddComment: function(hide) { + this.view.isComments = hide; //prohibit adding multiple comments in one cell }, onLaunch: function () { @@ -92,6 +92,17 @@ define([ if ( args && !(_.indexOf(args.panels, 'image') < 0) ) { this.onPageShow(this.getView('AddOther'), '#addother-insimage'); } + this.view.hideInsertComments = this.isHideInsertComment(); + }, + + isHideInsertComment: function() { + var cellinfo = this.api.asc_getCellInfo(); + var iscelllocked = cellinfo.asc_getLocked(), + seltype = cellinfo.asc_getFlags().asc_getSelectionType(); + if (seltype === Asc.c_oAscSelectionType.RangeCells && !iscelllocked) { + return false; + } + return true; }, onPageShow: function (view, pageId) { @@ -148,7 +159,7 @@ define([ var value = $('#comment-text').val(); if (value.length > 0) { if (SSE.getController('Common.Controllers.Collaboration').onAddNewComment(value, documentFlag)) { - this.view.isHideAddComment = true; + this.view.isComments = true; } SSE.getController('AddContainer').hideModal(); } diff --git a/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js b/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js index 5ad766736..07e3ddb73 100644 --- a/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js +++ b/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js @@ -135,7 +135,12 @@ define([ $page.find('#add-other-insimage').single('click', _.bind(me.showInsertImage, me)); $page.find('#add-other-link').single('click', _.bind(me.showInsertLink, me)); $page.find('#add-other-sort').single('click', _.bind(me.showSortPage, me)); - $page.find('#add-other-comment').single('click', _.bind(me.showPageComment, me)); + if (me.hideInsertComments || me.isComments) { + $('#item-comment').hide(); + } else { + $('#item-comment').show(); + $('#add-other-comment').single('click', _.bind(me.showPageComment, me)); + } me.initControls(); }, @@ -156,11 +161,6 @@ define([ if (!this.canViewComments) { this.layout.find('#addother-root-view #item-comment').remove(); } - if (this.isHideAddComment) { - this.layout.find('#addother-root-view #item-comment').hide(); - } else { - this.layout.find('#addother-root-view #item-comment').show(); - } return this.layout .find('#addother-root-view') .html(); From 5fa1b9dbb51fcfb5d95772c64cf297b4f71fd943 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 21 Apr 2020 18:36:06 +0300 Subject: [PATCH 27/72] [mobile] Comments (refactoring, moved comment editing) --- .../mobile/lib/controller/Collaboration.js | 603 +++++------------- apps/common/mobile/lib/view/Collaboration.js | 110 +++- .../resources/less/ios/_collaboration.less | 82 +-- .../less/material/_collaboration.less | 82 +-- .../mobile/resources/css/app-ios.css | 61 +- .../mobile/resources/css/app-material.css | 67 +- .../mobile/resources/css/app-ios.css | 61 +- .../mobile/resources/css/app-material.css | 67 +- .../mobile/resources/css/app-ios.css | 61 +- .../mobile/resources/css/app-material.css | 67 +- 10 files changed, 456 insertions(+), 805 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 651f1bdee..0f6778519 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -803,8 +803,7 @@ define([ }, updateViewComment: function() { - var appPrefix = !!window.DE ? DE : !!window.PE ? PE : SSE; - appPrefix.getController('Common.Controllers.Collaboration').getView('Common.Views.Collaboration').renderViewComments(this.showComments, this.indexCurrentComment); + this.view.renderViewComments(this.showComments, this.indexCurrentComment); $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this, false)); @@ -815,7 +814,6 @@ define([ showCommentModal: function() { var me = this, - isAndroid = Framework7.prototype.device.android === true, appPrefix = !!window.DE ? DE : !!window.PE ? PE : SSE, mainView = appPrefix.getController('Editor').getView('Editor').f7View; @@ -829,54 +827,17 @@ define([ '
      ' + '
      ' + '
      ' + - '
      ' + - '
      ' + - '
      ' + - (!me.view.viewmode ? '' + me.textAddReply + '' : '') + - '
      ' + - '
      ' + - '' + - '' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + + me.view.getTemplateContainerViewComments() + '
      ' - )).on('opened', function () { - if (_.isFunction(me.api.asc_OnShowContextMenu)) { - me.api.asc_OnShowContextMenu() - } - }).on('close', function (e) { + )).on('close', function (e) { mainView.showNavbar(); - }).on('closed', function () { - if (_.isFunction(me.api.asc_OnHideContextMenu)) { - me.api.asc_OnHideContextMenu() - } }); mainView.hideNavbar(); } else { me.modalViewComment = uiApp.popover( '
      ' + '
      ' + - '
      ' + - '
      ' + - '
      ' + - (!me.view.viewmode ? '' + me.textAddReply + '' : '') + - '
      ' + - '
      ' + - '' + - '' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + - '
      ' + + me.view.getTemplateContainerViewComments() + '
      ' + '
      ', $$('#toolbar-collaboration') @@ -987,8 +948,8 @@ define([ } else { this.indexCurrentComment -= 1; } + this.view.renderViewComments(this.showComments, this.indexCurrentComment); var me = this; - me.getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment); _.defer(function () { $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); @@ -1004,8 +965,8 @@ define([ } else { this.indexCurrentComment += 1; } + this.view.renderViewComments(this.showComments, this.indexCurrentComment); var me = this; - me.getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment); _.defer(function () { $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); @@ -1016,14 +977,8 @@ define([ onClickAddReply: function(id) { var me = this; - var isAndroid = Framework7.prototype.device.android === true, - phone = Common.SharedSettings.get('phone'); - var idComment; - if (!id) { - idComment = $('.view-comment').find('.comment').data('uid'); - } else { - idComment = id; - } + var phone = Common.SharedSettings.get('phone'); + var idComment = !id ? $('.page-view-comments').find('.comment').data('uid') : id; if (_.isNumber(idComment)) { idComment = idComment.toString(); } @@ -1031,32 +986,14 @@ define([ me.getCurrentUser(); var date = me.dateToLocaleTimeString(new Date()); if (comment) { - var addReplyView; if ($('.container-view-comment').length > 0) { if (phone) { - addReplyView = uiApp.popup( - '' + var colorUser = me.currentUser.asc_getColor(), + name = me.currentUser.asc_getUserName(), + initialUser = me.getInitials(name); + var templatePopup = me.getView('Common.Views.Collaboration').getTemplateAddReplyPopup(name, colorUser, initialUser, date); + me.addReplyView = uiApp.popup( + templatePopup ); $('.popup').css('z-index', '20000'); } else { @@ -1067,7 +1004,7 @@ define([ template = _.template('' + me.textCancel + ''); $('.container-view-comment .button-left').append(template); template = _.template('
      '); - $('.view-comment .page-content').append(template); + $('.page-view-comments .page-content').append(template); } } else if ($('.container-collaboration').length > 0) { me.getView('Common.Views.Collaboration').showPage('#comments-add-reply-view', false); @@ -1079,123 +1016,46 @@ define([ var $textarea = $('.reply-textarea')[0]; $textarea.focus(); }); - $('#add-new-reply').single('click', _.bind(function (uid) { - var reply = $('.reply-textarea')[0].value; - if ($('.container-view-comment').length > 0) { - var $viewComment = $('.container-view-comment'); - if (reply && reply.length > 0) { - this.addReply(uid, reply); - this.updateViewComment(this.showComments, this.indexCurrentComment); - if (!phone) { - $viewComment.find('a#add-new-reply, a.cancel-reply').remove(); - $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); - } else { - uiApp.closeModal($$(addReplyView)); - } - this.disabledViewComments(false); + $('#add-new-reply').single('click', _.bind(me.onDoneAddNewReply, me, comment.uid)); + $('.cancel-reply').single('click', _.bind(me.onCancelAddNewReply, me)); + } + }, + + onDoneAddNewReply: function(uid) { + var phone = Common.SharedSettings.get('phone'); + var reply = $('.reply-textarea')[0].value; + if ($('.container-view-comment').length > 0) { + var $viewComment = $('.container-view-comment'); + if (reply && reply.length > 0) { + this.addReply && this.addReply(uid, reply, _userId); + if (!phone) { + $viewComment.find('a#add-new-reply, a.cancel-reply').remove(); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + if ($('.block-reply').length > 0) { + $('.block-reply').remove(); } - } else if ($('.container-collaboration').length > 0) { - this.addReply(uid, reply); - rootView.router.back(); + } else { + uiApp.closeModal($$(this.addReplyView)); } - }, me, comment.uid)); - $('.cancel-reply').single('click', _.bind(function () { - var $viewComment = $('.container-view-comment'); - if ($viewComment.find('.block-reply').length > 0) { - $viewComment.find('.block-reply').remove(); - } - $viewComment.find('a#add-new-reply, a.cancel-reply').css('display', 'none'); - $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); this.disabledViewComments(false); - }, me)); - } - }, - - addReply: function(id, replyVal) { - if (replyVal.length > 0) { - var me = this, - reply = null, - addReply = null, - ascComment = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)), - comment = this.findComment(id); - - if (ascComment && comment) { - - ascComment.asc_putText(comment.comment); - ascComment.asc_putQuoteText(comment.quote); - ascComment.asc_putTime(me.utcDateToString(new Date(comment.time))); - ascComment.asc_putOnlyOfficeTime(me.ooDateToString(new Date(comment.time))); - ascComment.asc_putUserId(comment.userid); - ascComment.asc_putUserName(comment.username); - ascComment.asc_putSolved(comment.resolved); - ascComment.asc_putGuid(comment.guid); - - if (!_.isUndefined(ascComment.asc_putDocumentFlag)) { - ascComment.asc_putDocumentFlag(comment.unattached); - } - - reply = comment.replys; - if (reply && reply.length) { - reply.forEach(function (reply) { - - addReply = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)); - if (addReply) { - addReply.asc_putText(reply.reply); - addReply.asc_putTime(me.utcDateToString(new Date(reply.time))); - addReply.asc_putOnlyOfficeTime(me.ooDateToString(new Date(reply.time))); - addReply.asc_putUserId(reply.userid); - addReply.asc_putUserName(reply.username); - - ascComment.asc_addReply(addReply); - } - }); - } - - addReply = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)); - if (addReply) { - addReply.asc_putText(replyVal); - addReply.asc_putTime(me.utcDateToString(new Date())); - addReply.asc_putOnlyOfficeTime(me.ooDateToString(new Date())); - me.getCurrentUser(); - addReply.asc_putUserId(_userId); - addReply.asc_putUserName(me.currentUser.asc_getUserName()); - - ascComment.asc_addReply(addReply); - - me.api.asc_changeComment(id, ascComment); - } } + } else if ($('.container-collaboration').length > 0) { + this.addReply && this.addReply(uid, reply, _userId); + rootView.router.back(); } }, - onAddNewComment: function(value, documentFlag) { - var comment; - if (typeof Asc.asc_CCommentDataWord !== 'undefined') { - comment = new Asc.asc_CCommentDataWord(null); - } else { - comment = new Asc.asc_CCommentData(null); + onCancelAddNewReply: function() { + var $viewComment = $('.container-view-comment'); + if ($viewComment.find('.block-reply').length > 0) { + $viewComment.find('.block-reply').remove(); } + $viewComment.find('a#add-new-reply, a.cancel-reply').css('display', 'none'); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + this.disabledViewComments(false); + }, - var textComment = value; - - if (textComment.length > 0) { - comment.asc_putText(textComment); - comment.asc_putTime(this.utcDateToString(new Date())); - comment.asc_putOnlyOfficeTime(this.ooDateToString(new Date())); - comment.asc_putUserId(this.currentUser.asc_getIdOriginal()); - comment.asc_putUserName(this.currentUser.asc_getUserName()); - comment.asc_putSolved(false); - - if (!_.isUndefined(comment.asc_putDocumentFlag)) - comment.asc_putDocumentFlag(documentFlag); - - this.api.asc_addComment(comment); - - uiApp.closeModal(); - - return true; - } - return false; + onAddNewComment: function() { }, initMenuComments: function(e) { @@ -1319,7 +1179,7 @@ define([ break; case 'delete': addOverlay(); - uiApp.modal({ + $$(uiApp.modal({ title: this.textDeleteComment, text: this.textMessageDeleteComment, buttons: [ @@ -1329,9 +1189,11 @@ define([ { text: this.textYes, onClick: function () { - me.onDeleteComment(idComment); + me.onDeleteComment && me.onDeleteComment(idComment); } }] + })).on('close', function () { + addOverlay(); }); me.disabledViewComments(false); break; @@ -1341,7 +1203,22 @@ define([ break; case 'deletereply': addOverlay(); - me.onDeleteReply(idComment, indReply); + $$(uiApp.modal({ + title: this.textDeleteReply, + text: this.textMessageDeleteReply, + buttons: [ + { + text: this.textCancel + }, + { + text: this.textYes, + onClick: function () { + me.onDeleteReply && me.onDeleteReply(idComment, indReply); + } + }] + })).on('close', function () { + addOverlay(); + }); me.disabledViewComments(false); break; case 'addreply': @@ -1354,147 +1231,18 @@ define([ } }, - onChangeComment: function(comment) { - if (this.api) { - var ascComment, - me = this; - if (typeof Asc.asc_CCommentDataWord !== 'undefined') { - ascComment = new Asc.asc_CCommentDataWord(null); - } else { - ascComment = new Asc.asc_CCommentData(null); - } - - if (ascComment && comment) { - var uid = comment.uid; - ascComment.asc_putText(comment.comment); - ascComment.asc_putQuoteText(comment.quote); - ascComment.asc_putTime(me.utcDateToString(new Date(comment.time))); - ascComment.asc_putOnlyOfficeTime(me.ooDateToString(new Date(comment.time))); - ascComment.asc_putUserId(comment.userid); - ascComment.asc_putUserName(comment.username); - ascComment.asc_putSolved(!comment.resolved); - ascComment.asc_putGuid(comment.guid); - - if (!_.isUndefined(ascComment.asc_putDocumentFlag)) { - ascComment.asc_putDocumentFlag(comment.unattached); - } - - var reply = comment.replys; - if (reply && reply.length > 0) { - reply.forEach(function (reply) { - var addReply = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)); - if (addReply) { - addReply.asc_putText(reply.reply); - addReply.asc_putTime(me.utcDateToString(new Date(reply.time))); - addReply.asc_putOnlyOfficeTime(me.ooDateToString(new Date(reply.time))); - addReply.asc_putUserId(reply.userid); - addReply.asc_putUserName(reply.username); - - ascComment.asc_addReply(addReply); - } - }); - } - - this.api.asc_changeComment(uid, ascComment); - return true; - } - } - return false; - }, - - onDeleteComment: function(uid) { - var comment = this.findComment(uid); - if (this.api && comment) { - this.api.asc_removeComment(uid); - if ($('.container-view-comment').length > 0) { - if (this.showComments.length === 0) { - uiApp.closeModal(); - } else { - this.indexCurrentComment = this.indexCurrentComment - 1 > -1 ? this.indexCurrentComment - 1 : 0; - this.updateViewComment(); - } - } - } - }, - - onDeleteReply: function(idComment, indReply) { - if (!_.isUndefined(idComment) && !_.isUndefined(indReply)) { - var me = this, - replies = null, - addReply = null, - ascComment = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)), - comment = me.findComment(idComment); - - if (ascComment && comment) { - var id = comment.uid; - ascComment.asc_putText(comment.comment); - ascComment.asc_putQuoteText(comment.quote); - ascComment.asc_putTime(me.utcDateToString(new Date(comment.time))); - ascComment.asc_putOnlyOfficeTime(me.ooDateToString(new Date(comment.time))); - ascComment.asc_putUserId(comment.userid); - ascComment.asc_putUserName(comment.username); - ascComment.asc_putSolved(comment.resolved); - ascComment.asc_putGuid(comment.guid); - - if (!_.isUndefined(ascComment.asc_putDocumentFlag)) { - ascComment.asc_putDocumentFlag(comment.unattached); - } - - replies = comment.replys; - if (replies && replies.length) { - replies.forEach(function (reply) { - if (reply.ind !== indReply) { - addReply = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)); - if (addReply) { - addReply.asc_putText(reply.reply); - addReply.asc_putTime(me.utcDateToString(new Date(reply.time))); - addReply.asc_putOnlyOfficeTime(me.ooDateToString(new Date(reply.time))); - addReply.asc_putUserId(reply.userid); - addReply.asc_putUserName(reply.username); - - ascComment.asc_addReply(addReply); - } - } - }); - } - - me.api.asc_changeComment(id, ascComment); - if($('.container-view-comment').length > 0) { - me.updateViewComment(); - } - } - } - }, - showEditComment: function(idComment) { - var me = this, - isAndroid = Framework7.prototype.device.android === true; + var me = this; if (idComment) { var comment = this.findComment(idComment); if ($('.container-view-comment').length > 0) { if (Common.SharedSettings.get('phone')) { me.editView = uiApp.popup( - '' + me.view.getTemplateEditCommentPopup(comment) ); + $$(me.editView).on('close', function(){ + me.disabledViewComments(false); + }); $('.popup').css('z-index', '20000'); _.delay(function () { var $textarea = $('.comment-textarea')[0]; @@ -1524,74 +1272,62 @@ define([ $textarea.focus(); $textarea.selectionStart = $textarea.value.length; }); - $('#edit-comment').single('click', _.bind(function (comment) { - var value = $('#comment-text')[0].value; - if (value && value.length > 0) { - comment.comment = value; - if (!this.onChangeComment(comment)) return; - if ($('.container-view-comment').length > 0) { - this.showComments[this.indexCurrentComment] = comment; - if (Common.SharedSettings.get('phone')) { - uiApp.closeModal($$(me.editView)); - } else { - var $viewComment = $('.container-view-comment'); - $viewComment.find('a.done-edit-comment, a.cancel-edit-comment').remove(); - $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); - } - this.updateViewComment(); - this.disabledViewComments(false); - } else if ($('.container-collaboration').length > 0) { - rootView.router.back(); + $('#edit-comment').single('click', _.bind(me.onEditComment, me, comment)); + $('.cancel-edit-comment').single('click', _.bind(me.onCancelEditComment, me)); + } + }, + + onEditComment: function(comment) { + var value = $('#comment-text')[0].value; + if (value && value.length > 0) { + if (!_.isUndefined(this.onChangeComment)) { + comment.comment = value; + this.onChangeComment(comment); + } + if ($('.container-view-comment').length > 0) { + if (Common.SharedSettings.get('phone')) { + uiApp.closeModal($$(this.editView)); + } else { + var $viewComment = $('.container-view-comment'); + $viewComment.find('a.done-edit-comment, a.cancel-edit-comment').remove(); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + if ($viewComment.find('.comment-textarea').length > 0) { + $viewComment.find('.comment-textarea').remove(); + $viewComment.find('.comment-text span').css('display', 'block'); } } - }, me, comment)); - $('.cancel-edit-comment').single('click', _.bind(function () { - var $viewComment = $('.container-view-comment'); - $viewComment.find('a.done-edit-comment, a.cancel-edit-comment, .comment-textarea').remove(); - $viewComment.find('.comment-text span').css('display', 'block'); - $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); this.disabledViewComments(false); - }, me)); + } else if ($('.container-collaboration').length > 0) { + rootView.router.back(); + } } }, + onCancelEditComment: function() { + var $viewComment = $('.container-view-comment'); + $viewComment.find('a.done-edit-comment, a.cancel-edit-comment, .comment-textarea').remove(); + $viewComment.find('.comment-text span').css('display', 'block'); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + this.disabledViewComments(false); + }, + showEditReply: function(idComment, indReply) { var me = this; var comment = me.findComment(idComment); if (comment) { - var editView, - replies, + var replies, reply; - var isAndroid = Framework7.prototype.device.android === true; replies = comment.replys; reply = replies[indReply]; if (reply) { if ($('.container-view-comment').length > 0) { if (Common.SharedSettings.get('phone')) { - editView = uiApp.popup( - '' + me.editReplyView = uiApp.popup( + me.view.getTemplateEditReplyPopup(reply) ); + $$(me.editReplyView).on('close', function () { + me.disabledViewComments(false); + }); $('.popup').css('z-index', '20000'); } else { var $reply = $('.reply-item[data-ind=' + indReply + ']'); @@ -1614,37 +1350,49 @@ define([ $textarea.focus(); $textarea.selectionStart = $textarea.value.length; }); - $('#edit-reply').single('click', _.bind(function (comment, indReply) { - var value = $('.edit-reply-textarea')[0].value; - if (value && value.length > 0) { - if ($('.container-view-comment').length > 0) { - comment.replys[indReply].reply = value; - this.onChangeComment(comment); - if (Common.SharedSettings.get('phone')) { - uiApp.closeModal($$(editView)); - } else { - $viewComment.find('a#edit-reply, a.cancel-reply').remove(); - $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); - } - this.updateViewComment(); - } else { - comment.replys[indReply].reply = value; - this.onChangeComment(comment); - rootView.router.back(); - } - this.disabledViewComments(false); - } - }, me, comment, indReply)); - $('.cancel-reply').single('click', _.bind(function () { - $viewComment.find('a#edit-reply, a.cancel-reply, .edit-reply-textarea').remove(); - $reply.find('.reply-text').css('display', 'block'); - $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); - this.disabledViewComments(false); - }, me)); + $('#edit-reply').single('click', _.bind(me.onEditReply, me, comment, indReply)); + $('.cancel-reply').single('click', _.bind(me.onCancelEditReply, me)); } } }, + onEditReply: function(comment, indReply) { + var value = $('.edit-reply-textarea')[0].value; + if (value && value.length > 0) { + if ($('.container-view-comment').length > 0) { + if (!_.isUndefined(this.onChangeComment)) { + comment.replys[indReply].reply = value; + this.onChangeComment(comment); + } + if (Common.SharedSettings.get('phone')) { + uiApp.closeModal($$(this.editReplyView)); + } else { + var $viewComment = $('.container-view-comment'); + $viewComment.find('a#edit-reply, a.cancel-reply').remove(); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + if ($viewComment.find('.edit-reply-textarea').length > 0) { + $viewComment.find('.edit-reply-textarea').remove(); + $viewComment.find('.reply-text').css('display', 'block'); + } + } + } else { + if (!_.isUndefined(this.onChangeComment)) { + comment.replys[indReply].reply = value; + this.onChangeComment(comment); + } + rootView.router.back(); + } + this.disabledViewComments(false); + } + }, + + onCancelEditReply: function() { + $viewComment.find('a#edit-reply, a.cancel-reply, .edit-reply-textarea').remove(); + $reply.find('.reply-text').css('display', 'block'); + $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); + this.disabledViewComments(false); + }, + onClickResolveComment: function(uid, e) { var idComment; if (!uid) { @@ -1658,57 +1406,10 @@ define([ } var comment = this.findComment(idComment); if (comment) { - if (this.resolveComment(comment.uid)) { - if ($('.container-view-comment').length > 0) { - $('.comment[data-uid=' + idComment + '] .comment-resolve .icon-resolve-comment').toggleClass('check'); - } - } + this.resolveComment && this.resolveComment(comment.uid); } }, - resolveComment: function (uid) { - var me = this, - reply = null, - addReply = null, - ascComment = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)), - comment = me.findComment(uid); - - if (ascComment && comment && me.api) { - ascComment.asc_putText(comment.comment); - ascComment.asc_putQuoteText(comment.quote); - ascComment.asc_putTime(me.utcDateToString(new Date(comment.time))); - ascComment.asc_putOnlyOfficeTime(me.ooDateToString(new Date(comment.time))); - ascComment.asc_putUserId(comment.userid); - ascComment.asc_putUserName(comment.username); - ascComment.asc_putSolved(!comment.resolved); - ascComment.asc_putGuid(comment.guid); - - if (!_.isUndefined(ascComment.asc_putDocumentFlag)) { - ascComment.asc_putDocumentFlag(comment.unattached); - } - - reply = comment.replys; - if (reply && reply.length) { - reply.forEach(function (reply) { - addReply = (typeof Asc.asc_CCommentDataWord !== 'undefined' ? new Asc.asc_CCommentDataWord(null) : new Asc.asc_CCommentData(null)); - if (addReply) { - addReply.asc_putText(reply.reply); - addReply.asc_putTime(me.utcDateToString(new Date(reply.time))); - addReply.asc_putOnlyOfficeTime(me.ooDateToString(new Date(reply.time))); - addReply.asc_putUserId(reply.userid); - addReply.asc_putUserName(reply.username); - - ascComment.asc_addReply(addReply); - } - }); - } - - me.api.asc_changeComment(uid, ascComment); - return true; - } - return false; - }, - // utils timeZoneOffsetInMs: (new Date()).getTimezoneOffset() * 60000, utcDateToString: function (date) { @@ -1857,6 +1558,9 @@ define([ showComment = comment; } } + if ($('.container-view-comment').length > 0) { + this.updateViewComment(); + } } }, @@ -2047,6 +1751,7 @@ define([ textEditReply: 'Edit reply', textReopen: 'Reopen', textMessageDeleteComment: 'Do you really want to delete this comment?', + textMessageDeleteReply: 'Do you really want to delete this reply?', textYes: 'Yes' } diff --git a/apps/common/mobile/lib/view/Collaboration.js b/apps/common/mobile/lib/view/Collaboration.js index f20dbf161..748ec1bd7 100644 --- a/apps/common/mobile/lib/view/Collaboration.js +++ b/apps/common/mobile/lib/view/Collaboration.js @@ -154,7 +154,7 @@ define([ renderViewComments: function(comments, indCurComment) { var isAndroid = Framework7.prototype.device.android === true; var me = this; - if ($('.view-comment .page-content').length > 0) { + if ($('.page-view-comments .page-content').length > 0) { var template = ''; if (comments && comments.length > 0) { template = '
      ' + @@ -210,10 +210,10 @@ define([ template += '
      ' + '
    • '; template += '
    '; - $('.view-comment .page-content').html(template); + $('.page-view-comments .page-content').html(template); } } - Common.Utils.addScrollIfNeed('.view-comment.page', '.view-comment .page-content'); + Common.Utils.addScrollIfNeed('.page-view-comments.page', '.page-view-comments .page-content'); }, renderComments: function (comments) { @@ -326,6 +326,107 @@ define([ $pageEdit.html(_.template(template)); }, + //view comments + getTemplateAddReplyPopup: function(name, color, initial, date) { + var isAndroid = Framework7.prototype.device.android === true; + var template = ''; + return template; + }, + + getTemplateContainerViewComments: function() { + var template = '
    ' + + '
    ' + + '
    ' + + (!this.viewmode ? '' + this.textAddReply + '' : '') + + '
    ' + + '
    ' + + '' + + '' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    ' + + '
    '; + return template; + }, + + getTemplateEditCommentPopup: function(comment) { + var isAndroid = Framework7.prototype.device.android === true; + var template = ''; + return template; + }, + + getTemplateEditReplyPopup: function(reply) { + var isAndroid = Framework7.prototype.device.android === true; + var template = ''; + return template; + }, + textCollaboration: 'Collaboration', textReviewing: 'Review', textСomments: 'Сomments', @@ -343,7 +444,8 @@ define([ textEditСomment: "Edit Comment", textDone: "Done", textAddReply: "Add Reply", - textEditReply: "Edit Reply" + textEditReply: "Edit Reply", + textCancel: 'Cancel' } })(), Common.Views.Collaboration || {})) }); \ No newline at end of file diff --git a/apps/common/mobile/resources/less/ios/_collaboration.less b/apps/common/mobile/resources/less/ios/_collaboration.less index 112fba932..b6812b334 100644 --- a/apps/common/mobile/resources/less/ios/_collaboration.less +++ b/apps/common/mobile/resources/less/ios/_collaboration.less @@ -92,7 +92,7 @@ } //Comments -.page-comments, .add-comment, .page-view-comments, .container-edit-comment, .container-add-reply, .view-comment, .page-edit-comment, .page-add-reply, .page-edit-reply { +.page-comments, .add-comment, .page-view-comments, .container-edit-comment, .container-add-reply, .page-edit-comment, .page-add-reply, .page-edit-reply { .header-comment { display: flex; justify-content: space-between; @@ -215,7 +215,7 @@ .pages { background-color: #FFFFFF; } - .page-view-comments, .view-comment { + .page-view-comments { background-color: #FFFFFF; .list-block { margin-bottom: 100px; @@ -282,54 +282,60 @@ } } - .page { - border-radius: 13px; - .page-content { - padding: 16px; - padding-bottom: 80px; + .pages { + position: absolute; - .list-block { - margin-bottom: 0px; + .page { + border-radius: 13px; - .item-content { - padding-left: 0; + .page-content { + padding: 16px; + padding-bottom: 80px; - .header-comment, .reply-item { - padding-right: 0; + .list-block { + margin-bottom: 0px; + + .item-content { + padding-left: 0; + + .header-comment, .reply-item { + padding-right: 0; + } } } - } - .block-reply { - margin-top: 10px; - .reply-textarea { - min-height: 70px; - width: 278px; + .block-reply { + margin-top: 10px; + + .reply-textarea { + min-height: 70px; + width: 278px; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; + } + } + + .edit-reply-textarea { + min-height: 60px; + width: 100%; border: 1px solid #c4c4c4; border-radius: 6px; padding: 5px; + height: 60px; + margin-top: 10px; } - } - .edit-reply-textarea { - min-height: 60px; - width: 100%; - border: 1px solid #c4c4c4; - border-radius: 6px; - padding: 5px; - height: 60px; - margin-top: 10px; - } + .comment-text { + padding-right: 0; - .comment-text { - padding-right: 0; - - .comment-textarea { - border: 1px solid #c4c4c4; - border-radius: 6px; - padding: 8px; - min-height: 80px; - height: 80px; + .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 8px; + min-height: 80px; + height: 80px; + } } } } diff --git a/apps/common/mobile/resources/less/material/_collaboration.less b/apps/common/mobile/resources/less/material/_collaboration.less index 5ac455060..5a158aef5 100644 --- a/apps/common/mobile/resources/less/material/_collaboration.less +++ b/apps/common/mobile/resources/less/material/_collaboration.less @@ -90,7 +90,7 @@ } //Comments -.page-comments, .page-add-comment, .page-view-comments, .container-edit-comment, .container-add-reply, .view-comment, .page-edit-comment, .page-add-reply, .page-edit-reply { +.page-comments, .page-add-comment, .page-view-comments, .container-edit-comment, .container-add-reply, .page-edit-comment, .page-add-reply, .page-edit-reply { .list-block { ul { &:before, &:after { @@ -236,7 +236,7 @@ border-top-right-radius: 4px; height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); - .page-view-comments, .view-comment { + .page-view-comments { background-color: #FFFFFF; .list-block { margin-bottom: 120px; @@ -312,54 +312,60 @@ } } - .page { - border-radius: 13px; - .page-content { - padding: 16px; - padding-bottom: 80px; + .pages { + position: absolute; - .list-block { - margin-bottom: 0px; + .page { + border-radius: 13px; - .item-content { - padding-left: 0; + .page-content { + padding: 16px; + padding-bottom: 80px; - .header-comment, .reply-item { - padding-right: 0; + .list-block { + margin-bottom: 0px; + + .item-content { + padding-left: 0; + + .header-comment, .reply-item { + padding-right: 0; + } } } - } - .block-reply { - margin-top: 10px; - .reply-textarea { - min-height: 70px; - width: 278px; + .block-reply { + margin-top: 10px; + + .reply-textarea { + min-height: 70px; + width: 278px; + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 5px; + } + } + + .edit-reply-textarea { + min-height: 60px; + width: 100%; border: 1px solid #c4c4c4; border-radius: 6px; padding: 5px; + height: 60px; + margin-top: 10px; } - } - .edit-reply-textarea { - min-height: 60px; - width: 100%; - border: 1px solid #c4c4c4; - border-radius: 6px; - padding: 5px; - height: 60px; - margin-top: 10px; - } + .comment-text { + padding-right: 0; - .comment-text { - padding-right: 0; - - .comment-textarea { - border: 1px solid #c4c4c4; - border-radius: 6px; - padding: 8px; - min-height: 80px; - height: 80px; + .comment-textarea { + border: 1px solid #c4c4c4; + border-radius: 6px; + padding: 8px; + min-height: 80px; + height: 80px; + } } } } diff --git a/apps/documenteditor/mobile/resources/css/app-ios.css b/apps/documenteditor/mobile/resources/css/app-ios.css index 59dc17faf..112fcf541 100644 --- a/apps/documenteditor/mobile/resources/css/app-ios.css +++ b/apps/documenteditor/mobile/resources/css/app-ios.css @@ -6487,7 +6487,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .header-comment, .container-edit-comment .header-comment, .container-add-reply .header-comment, -.view-comment .header-comment, .page-edit-comment .header-comment, .page-add-reply .header-comment, .page-edit-reply .header-comment { @@ -6500,7 +6499,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .header-comment .comment-right, .container-edit-comment .header-comment .comment-right, .container-add-reply .header-comment .comment-right, -.view-comment .header-comment .comment-right, .page-edit-comment .header-comment .comment-right, .page-add-reply .header-comment .comment-right, .page-edit-reply .header-comment .comment-right { @@ -6513,7 +6511,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, .container-add-reply .list-block .item-inner, -.view-comment .list-block .item-inner, .page-edit-comment .list-block .item-inner, .page-add-reply .list-block .item-inner, .page-edit-reply .list-block .item-inner { @@ -6526,7 +6523,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments p, .container-edit-comment p, .container-add-reply p, -.view-comment p, .page-edit-comment p, .page-add-reply p, .page-edit-reply p { @@ -6538,7 +6534,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .list-reply, .container-edit-comment .list-reply, .container-add-reply .list-reply, -.view-comment .list-reply, .page-edit-comment .list-reply, .page-add-reply .list-reply, .page-edit-reply .list-reply { @@ -6549,7 +6544,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6558,7 +6552,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6567,7 +6560,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6578,7 +6570,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .user-name, .container-edit-comment .user-name, .container-add-reply .user-name, -.view-comment .user-name, .page-edit-comment .user-name, .page-add-reply .user-name, .page-edit-reply .user-name { @@ -6593,7 +6584,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, -.view-comment .comment-date, .page-edit-comment .comment-date, .page-add-reply .comment-date, .page-edit-reply .comment-date, @@ -6602,7 +6592,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-date, .container-edit-comment .reply-date, .container-add-reply .reply-date, -.view-comment .reply-date, .page-edit-comment .reply-date, .page-add-reply .reply-date, .page-edit-reply .reply-date { @@ -6617,7 +6606,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, -.view-comment .comment-text, .page-edit-comment .comment-text, .page-add-reply .comment-text, .page-edit-reply .comment-text, @@ -6626,7 +6614,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-text, .container-edit-comment .reply-text, .container-add-reply .reply-text, -.view-comment .reply-text, .page-edit-comment .reply-text, .page-add-reply .reply-text, .page-edit-reply .reply-text { @@ -6642,7 +6629,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item, .container-edit-comment .reply-item, .container-add-reply .reply-item, -.view-comment .reply-item, .page-edit-comment .reply-item, .page-add-reply .reply-item, .page-edit-reply .reply-item { @@ -6655,7 +6641,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, .container-add-reply .reply-item .header-reply, -.view-comment .reply-item .header-reply, .page-edit-comment .reply-item .header-reply, .page-add-reply .reply-item .header-reply, .page-edit-reply .reply-item .header-reply { @@ -6667,7 +6652,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, .container-add-reply .reply-item .user-name, -.view-comment .reply-item .user-name, .page-edit-comment .reply-item .user-name, .page-add-reply .reply-item .user-name, .page-edit-reply .reply-item .user-name { @@ -6678,7 +6662,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item:before, .container-edit-comment .reply-item:before, .container-add-reply .reply-item:before, -.view-comment .reply-item:before, .page-edit-comment .reply-item:before, .page-add-reply .reply-item:before, .page-edit-reply .reply-item:before { @@ -6701,7 +6684,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-quote, .container-edit-comment .comment-quote, .container-add-reply .comment-quote, -.view-comment .comment-quote, .page-edit-comment .comment-quote, .page-add-reply .comment-quote, .page-edit-reply .comment-quote { @@ -6716,7 +6698,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, .container-add-reply .wrap-comment, -.view-comment .wrap-comment, .page-edit-comment .wrap-comment, .page-add-reply .wrap-comment, .page-edit-reply .wrap-comment, @@ -6725,7 +6706,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .wrap-reply, .container-edit-comment .wrap-reply, .container-add-reply .wrap-reply, -.view-comment .wrap-reply, .page-edit-comment .wrap-reply, .page-add-reply .wrap-reply, .page-edit-reply .wrap-reply { @@ -6736,7 +6716,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6745,7 +6724,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6754,7 +6732,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6790,22 +6767,17 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-comment .pages { background-color: #FFFFFF; } -.container-view-comment .page-view-comments, -.container-view-comment .view-comment { +.container-view-comment .page-view-comments { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block, -.container-view-comment .view-comment .list-block { +.container-view-comment .page-view-comments .list-block { margin-bottom: 100px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .view-comment .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after, -.container-view-comment .view-comment .list-block ul:after { +.container-view-comment .page-view-comments .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner, -.container-view-comment .view-comment .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner { padding: 0; } .container-view-comment .toolbar { @@ -6861,34 +6833,37 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-comment.popover .toolbar .toolbar-inner { padding-right: 0; } -.container-view-comment.popover .page { +.container-view-comment.popover .pages { + position: absolute; +} +.container-view-comment.popover .pages .page { border-radius: 13px; } -.container-view-comment.popover .page .page-content { +.container-view-comment.popover .pages .page .page-content { padding: 16px; padding-bottom: 80px; } -.container-view-comment.popover .page .page-content .list-block { +.container-view-comment.popover .pages .page .page-content .list-block { margin-bottom: 0px; } -.container-view-comment.popover .page .page-content .list-block .item-content { +.container-view-comment.popover .pages .page .page-content .list-block .item-content { padding-left: 0; } -.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, -.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { +.container-view-comment.popover .pages .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .pages .page .page-content .list-block .item-content .reply-item { padding-right: 0; } -.container-view-comment.popover .page .page-content .block-reply { +.container-view-comment.popover .pages .page .page-content .block-reply { margin-top: 10px; } -.container-view-comment.popover .page .page-content .block-reply .reply-textarea { +.container-view-comment.popover .pages .page .page-content .block-reply .reply-textarea { min-height: 70px; width: 278px; border: 1px solid #c4c4c4; border-radius: 6px; padding: 5px; } -.container-view-comment.popover .page .page-content .edit-reply-textarea { +.container-view-comment.popover .pages .page .page-content .edit-reply-textarea { min-height: 60px; width: 100%; border: 1px solid #c4c4c4; @@ -6897,10 +6872,10 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after height: 60px; margin-top: 10px; } -.container-view-comment.popover .page .page-content .comment-text { +.container-view-comment.popover .pages .page .page-content .comment-text { padding-right: 0; } -.container-view-comment.popover .page .page-content .comment-text .comment-textarea { +.container-view-comment.popover .pages .page .page-content .comment-text .comment-textarea { border: 1px solid #c4c4c4; border-radius: 6px; padding: 8px; diff --git a/apps/documenteditor/mobile/resources/css/app-material.css b/apps/documenteditor/mobile/resources/css/app-material.css index 2ea8931d6..bc06120d8 100644 --- a/apps/documenteditor/mobile/resources/css/app-material.css +++ b/apps/documenteditor/mobile/resources/css/app-material.css @@ -6061,7 +6061,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block ul:before, .container-edit-comment .list-block ul:before, .container-add-reply .list-block ul:before, -.view-comment .list-block ul:before, .page-edit-comment .list-block ul:before, .page-add-reply .list-block ul:before, .page-edit-reply .list-block ul:before, @@ -6070,7 +6069,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block ul:after, .container-edit-comment .list-block ul:after, .container-add-reply .list-block ul:after, -.view-comment .list-block ul:after, .page-edit-comment .list-block ul:after, .page-add-reply .list-block ul:after, .page-edit-reply .list-block ul:after { @@ -6081,7 +6079,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, .container-add-reply .list-block .item-inner, -.view-comment .list-block .item-inner, .page-edit-comment .list-block .item-inner, .page-add-reply .list-block .item-inner, .page-edit-reply .list-block .item-inner { @@ -6094,7 +6091,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block .item-inner:after, .container-edit-comment .list-block .item-inner:after, .container-add-reply .list-block .item-inner:after, -.view-comment .list-block .item-inner:after, .page-edit-comment .list-block .item-inner:after, .page-add-reply .list-block .item-inner:after, .page-edit-reply .list-block .item-inner:after { @@ -6105,7 +6101,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments p, .container-edit-comment p, .container-add-reply p, -.view-comment p, .page-edit-comment p, .page-add-reply p, .page-edit-reply p { @@ -6117,7 +6112,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-reply, .container-edit-comment .list-reply, .container-add-reply .list-reply, -.view-comment .list-reply, .page-edit-comment .list-reply, .page-add-reply .list-reply, .page-edit-reply .list-reply { @@ -6128,7 +6122,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6137,7 +6130,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6146,7 +6138,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6157,7 +6148,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .user-name, .container-edit-comment .user-name, .container-add-reply .user-name, -.view-comment .user-name, .page-edit-comment .user-name, .page-add-reply .user-name, .page-edit-reply .user-name { @@ -6171,7 +6161,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, -.view-comment .comment-date, .page-edit-comment .comment-date, .page-add-reply .comment-date, .page-edit-reply .comment-date, @@ -6180,7 +6169,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-date, .container-edit-comment .reply-date, .container-add-reply .reply-date, -.view-comment .reply-date, .page-edit-comment .reply-date, .page-add-reply .reply-date, .page-edit-reply .reply-date { @@ -6195,7 +6183,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, -.view-comment .comment-text, .page-edit-comment .comment-text, .page-add-reply .comment-text, .page-edit-reply .comment-text, @@ -6204,7 +6191,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-text, .container-edit-comment .reply-text, .container-add-reply .reply-text, -.view-comment .reply-text, .page-edit-comment .reply-text, .page-add-reply .reply-text, .page-edit-reply .reply-text { @@ -6220,7 +6206,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-item, .container-edit-comment .reply-item, .container-add-reply .reply-item, -.view-comment .reply-item, .page-edit-comment .reply-item, .page-add-reply .reply-item, .page-edit-reply .reply-item { @@ -6232,7 +6217,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, .container-add-reply .reply-item .header-reply, -.view-comment .reply-item .header-reply, .page-edit-comment .reply-item .header-reply, .page-add-reply .reply-item .header-reply, .page-edit-reply .reply-item .header-reply { @@ -6244,7 +6228,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, .container-add-reply .reply-item .user-name, -.view-comment .reply-item .user-name, .page-edit-comment .reply-item .user-name, .page-add-reply .reply-item .user-name, .page-edit-reply .reply-item .user-name { @@ -6255,7 +6238,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-quote, .container-edit-comment .comment-quote, .container-add-reply .comment-quote, -.view-comment .comment-quote, .page-edit-comment .comment-quote, .page-add-reply .comment-quote, .page-edit-reply .comment-quote { @@ -6270,7 +6252,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, .container-add-reply .wrap-comment, -.view-comment .wrap-comment, .page-edit-comment .wrap-comment, .page-add-reply .wrap-comment, .page-edit-reply .wrap-comment, @@ -6279,7 +6260,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .wrap-reply, .container-edit-comment .wrap-reply, .container-add-reply .wrap-reply, -.view-comment .wrap-reply, .page-edit-comment .wrap-reply, .page-add-reply .wrap-reply, .page-edit-reply .wrap-reply { @@ -6290,7 +6270,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6299,7 +6278,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6308,7 +6286,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6326,7 +6303,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment, .container-edit-comment .header-comment, .container-add-reply .header-comment, -.view-comment .header-comment, .page-edit-comment .header-comment, .page-add-reply .header-comment, .page-edit-reply .header-comment { @@ -6339,7 +6315,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment .comment-right, .container-edit-comment .header-comment .comment-right, .container-add-reply .header-comment .comment-right, -.view-comment .header-comment .comment-right, .page-edit-comment .header-comment .comment-right, .page-add-reply .header-comment .comment-right, .page-edit-reply .header-comment .comment-right { @@ -6352,7 +6327,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment .comment-left, .container-edit-comment .header-comment .comment-left, .container-add-reply .header-comment .comment-left, -.view-comment .header-comment .comment-left, .page-edit-comment .header-comment .comment-left, .page-add-reply .header-comment .comment-left, .page-edit-reply .header-comment .comment-left { @@ -6364,7 +6338,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment .initials-comment, .container-edit-comment .header-comment .initials-comment, .container-add-reply .header-comment .initials-comment, -.view-comment .header-comment .initials-comment, .page-edit-comment .header-comment .initials-comment, .page-add-reply .header-comment .initials-comment, .page-edit-reply .header-comment .initials-comment { @@ -6383,7 +6356,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-reply .reply-left, .container-edit-comment .header-reply .reply-left, .container-add-reply .header-reply .reply-left, -.view-comment .header-reply .reply-left, .page-edit-comment .header-reply .reply-left, .page-add-reply .header-reply .reply-left, .page-edit-reply .header-reply .reply-left { @@ -6396,7 +6368,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-reply .initials-reply, .container-edit-comment .header-reply .initials-reply, .container-add-reply .header-reply .initials-reply, -.view-comment .header-reply .initials-reply, .page-edit-comment .header-reply .initials-reply, .page-add-reply .header-reply .initials-reply, .page-edit-reply .header-reply .initials-reply { @@ -6429,22 +6400,17 @@ html.phone .document-menu .list-block .item-link { height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } -.container-view-comment .page-view-comments, -.container-view-comment .view-comment { +.container-view-comment .page-view-comments { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block, -.container-view-comment .view-comment .list-block { +.container-view-comment .page-view-comments .list-block { margin-bottom: 120px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .view-comment .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after, -.container-view-comment .view-comment .list-block ul:after { +.container-view-comment .page-view-comments .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner, -.container-view-comment .view-comment .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner { padding: 0; } .container-view-comment .toolbar { @@ -6507,34 +6473,37 @@ html.phone .document-menu .list-block .item-link { .container-view-comment.popover .toolbar .toolbar-inner { padding-right: 0; } -.container-view-comment.popover .page { +.container-view-comment.popover .pages { + position: absolute; +} +.container-view-comment.popover .pages .page { border-radius: 13px; } -.container-view-comment.popover .page .page-content { +.container-view-comment.popover .pages .page .page-content { padding: 16px; padding-bottom: 80px; } -.container-view-comment.popover .page .page-content .list-block { +.container-view-comment.popover .pages .page .page-content .list-block { margin-bottom: 0px; } -.container-view-comment.popover .page .page-content .list-block .item-content { +.container-view-comment.popover .pages .page .page-content .list-block .item-content { padding-left: 0; } -.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, -.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { +.container-view-comment.popover .pages .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .pages .page .page-content .list-block .item-content .reply-item { padding-right: 0; } -.container-view-comment.popover .page .page-content .block-reply { +.container-view-comment.popover .pages .page .page-content .block-reply { margin-top: 10px; } -.container-view-comment.popover .page .page-content .block-reply .reply-textarea { +.container-view-comment.popover .pages .page .page-content .block-reply .reply-textarea { min-height: 70px; width: 278px; border: 1px solid #c4c4c4; border-radius: 6px; padding: 5px; } -.container-view-comment.popover .page .page-content .edit-reply-textarea { +.container-view-comment.popover .pages .page .page-content .edit-reply-textarea { min-height: 60px; width: 100%; border: 1px solid #c4c4c4; @@ -6543,10 +6512,10 @@ html.phone .document-menu .list-block .item-link { height: 60px; margin-top: 10px; } -.container-view-comment.popover .page .page-content .comment-text { +.container-view-comment.popover .pages .page .page-content .comment-text { padding-right: 0; } -.container-view-comment.popover .page .page-content .comment-text .comment-textarea { +.container-view-comment.popover .pages .page .page-content .comment-text .comment-textarea { border: 1px solid #c4c4c4; border-radius: 6px; padding: 8px; diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index fd9fef61d..6ae23fa66 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -6487,7 +6487,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .header-comment, .container-edit-comment .header-comment, .container-add-reply .header-comment, -.view-comment .header-comment, .page-edit-comment .header-comment, .page-add-reply .header-comment, .page-edit-reply .header-comment { @@ -6500,7 +6499,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .header-comment .comment-right, .container-edit-comment .header-comment .comment-right, .container-add-reply .header-comment .comment-right, -.view-comment .header-comment .comment-right, .page-edit-comment .header-comment .comment-right, .page-add-reply .header-comment .comment-right, .page-edit-reply .header-comment .comment-right { @@ -6513,7 +6511,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, .container-add-reply .list-block .item-inner, -.view-comment .list-block .item-inner, .page-edit-comment .list-block .item-inner, .page-add-reply .list-block .item-inner, .page-edit-reply .list-block .item-inner { @@ -6526,7 +6523,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments p, .container-edit-comment p, .container-add-reply p, -.view-comment p, .page-edit-comment p, .page-add-reply p, .page-edit-reply p { @@ -6538,7 +6534,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .list-reply, .container-edit-comment .list-reply, .container-add-reply .list-reply, -.view-comment .list-reply, .page-edit-comment .list-reply, .page-add-reply .list-reply, .page-edit-reply .list-reply { @@ -6549,7 +6544,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6558,7 +6552,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6567,7 +6560,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6578,7 +6570,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .user-name, .container-edit-comment .user-name, .container-add-reply .user-name, -.view-comment .user-name, .page-edit-comment .user-name, .page-add-reply .user-name, .page-edit-reply .user-name { @@ -6593,7 +6584,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, -.view-comment .comment-date, .page-edit-comment .comment-date, .page-add-reply .comment-date, .page-edit-reply .comment-date, @@ -6602,7 +6592,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-date, .container-edit-comment .reply-date, .container-add-reply .reply-date, -.view-comment .reply-date, .page-edit-comment .reply-date, .page-add-reply .reply-date, .page-edit-reply .reply-date { @@ -6617,7 +6606,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, -.view-comment .comment-text, .page-edit-comment .comment-text, .page-add-reply .comment-text, .page-edit-reply .comment-text, @@ -6626,7 +6614,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-text, .container-edit-comment .reply-text, .container-add-reply .reply-text, -.view-comment .reply-text, .page-edit-comment .reply-text, .page-add-reply .reply-text, .page-edit-reply .reply-text { @@ -6642,7 +6629,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item, .container-edit-comment .reply-item, .container-add-reply .reply-item, -.view-comment .reply-item, .page-edit-comment .reply-item, .page-add-reply .reply-item, .page-edit-reply .reply-item { @@ -6655,7 +6641,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, .container-add-reply .reply-item .header-reply, -.view-comment .reply-item .header-reply, .page-edit-comment .reply-item .header-reply, .page-add-reply .reply-item .header-reply, .page-edit-reply .reply-item .header-reply { @@ -6667,7 +6652,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, .container-add-reply .reply-item .user-name, -.view-comment .reply-item .user-name, .page-edit-comment .reply-item .user-name, .page-add-reply .reply-item .user-name, .page-edit-reply .reply-item .user-name { @@ -6678,7 +6662,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item:before, .container-edit-comment .reply-item:before, .container-add-reply .reply-item:before, -.view-comment .reply-item:before, .page-edit-comment .reply-item:before, .page-add-reply .reply-item:before, .page-edit-reply .reply-item:before { @@ -6701,7 +6684,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-quote, .container-edit-comment .comment-quote, .container-add-reply .comment-quote, -.view-comment .comment-quote, .page-edit-comment .comment-quote, .page-add-reply .comment-quote, .page-edit-reply .comment-quote { @@ -6716,7 +6698,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, .container-add-reply .wrap-comment, -.view-comment .wrap-comment, .page-edit-comment .wrap-comment, .page-add-reply .wrap-comment, .page-edit-reply .wrap-comment, @@ -6725,7 +6706,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .wrap-reply, .container-edit-comment .wrap-reply, .container-add-reply .wrap-reply, -.view-comment .wrap-reply, .page-edit-comment .wrap-reply, .page-add-reply .wrap-reply, .page-edit-reply .wrap-reply { @@ -6736,7 +6716,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6745,7 +6724,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6754,7 +6732,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6790,22 +6767,17 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-comment .pages { background-color: #FFFFFF; } -.container-view-comment .page-view-comments, -.container-view-comment .view-comment { +.container-view-comment .page-view-comments { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block, -.container-view-comment .view-comment .list-block { +.container-view-comment .page-view-comments .list-block { margin-bottom: 100px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .view-comment .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after, -.container-view-comment .view-comment .list-block ul:after { +.container-view-comment .page-view-comments .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner, -.container-view-comment .view-comment .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner { padding: 0; } .container-view-comment .toolbar { @@ -6861,34 +6833,37 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-comment.popover .toolbar .toolbar-inner { padding-right: 0; } -.container-view-comment.popover .page { +.container-view-comment.popover .pages { + position: absolute; +} +.container-view-comment.popover .pages .page { border-radius: 13px; } -.container-view-comment.popover .page .page-content { +.container-view-comment.popover .pages .page .page-content { padding: 16px; padding-bottom: 80px; } -.container-view-comment.popover .page .page-content .list-block { +.container-view-comment.popover .pages .page .page-content .list-block { margin-bottom: 0px; } -.container-view-comment.popover .page .page-content .list-block .item-content { +.container-view-comment.popover .pages .page .page-content .list-block .item-content { padding-left: 0; } -.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, -.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { +.container-view-comment.popover .pages .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .pages .page .page-content .list-block .item-content .reply-item { padding-right: 0; } -.container-view-comment.popover .page .page-content .block-reply { +.container-view-comment.popover .pages .page .page-content .block-reply { margin-top: 10px; } -.container-view-comment.popover .page .page-content .block-reply .reply-textarea { +.container-view-comment.popover .pages .page .page-content .block-reply .reply-textarea { min-height: 70px; width: 278px; border: 1px solid #c4c4c4; border-radius: 6px; padding: 5px; } -.container-view-comment.popover .page .page-content .edit-reply-textarea { +.container-view-comment.popover .pages .page .page-content .edit-reply-textarea { min-height: 60px; width: 100%; border: 1px solid #c4c4c4; @@ -6897,10 +6872,10 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after height: 60px; margin-top: 10px; } -.container-view-comment.popover .page .page-content .comment-text { +.container-view-comment.popover .pages .page .page-content .comment-text { padding-right: 0; } -.container-view-comment.popover .page .page-content .comment-text .comment-textarea { +.container-view-comment.popover .pages .page .page-content .comment-text .comment-textarea { border: 1px solid #c4c4c4; border-radius: 6px; padding: 8px; diff --git a/apps/presentationeditor/mobile/resources/css/app-material.css b/apps/presentationeditor/mobile/resources/css/app-material.css index d5be5c3ff..fa11f66a1 100644 --- a/apps/presentationeditor/mobile/resources/css/app-material.css +++ b/apps/presentationeditor/mobile/resources/css/app-material.css @@ -6061,7 +6061,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block ul:before, .container-edit-comment .list-block ul:before, .container-add-reply .list-block ul:before, -.view-comment .list-block ul:before, .page-edit-comment .list-block ul:before, .page-add-reply .list-block ul:before, .page-edit-reply .list-block ul:before, @@ -6070,7 +6069,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block ul:after, .container-edit-comment .list-block ul:after, .container-add-reply .list-block ul:after, -.view-comment .list-block ul:after, .page-edit-comment .list-block ul:after, .page-add-reply .list-block ul:after, .page-edit-reply .list-block ul:after { @@ -6081,7 +6079,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, .container-add-reply .list-block .item-inner, -.view-comment .list-block .item-inner, .page-edit-comment .list-block .item-inner, .page-add-reply .list-block .item-inner, .page-edit-reply .list-block .item-inner { @@ -6094,7 +6091,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block .item-inner:after, .container-edit-comment .list-block .item-inner:after, .container-add-reply .list-block .item-inner:after, -.view-comment .list-block .item-inner:after, .page-edit-comment .list-block .item-inner:after, .page-add-reply .list-block .item-inner:after, .page-edit-reply .list-block .item-inner:after { @@ -6105,7 +6101,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments p, .container-edit-comment p, .container-add-reply p, -.view-comment p, .page-edit-comment p, .page-add-reply p, .page-edit-reply p { @@ -6117,7 +6112,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-reply, .container-edit-comment .list-reply, .container-add-reply .list-reply, -.view-comment .list-reply, .page-edit-comment .list-reply, .page-add-reply .list-reply, .page-edit-reply .list-reply { @@ -6128,7 +6122,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6137,7 +6130,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6146,7 +6138,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6157,7 +6148,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .user-name, .container-edit-comment .user-name, .container-add-reply .user-name, -.view-comment .user-name, .page-edit-comment .user-name, .page-add-reply .user-name, .page-edit-reply .user-name { @@ -6171,7 +6161,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, -.view-comment .comment-date, .page-edit-comment .comment-date, .page-add-reply .comment-date, .page-edit-reply .comment-date, @@ -6180,7 +6169,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-date, .container-edit-comment .reply-date, .container-add-reply .reply-date, -.view-comment .reply-date, .page-edit-comment .reply-date, .page-add-reply .reply-date, .page-edit-reply .reply-date { @@ -6195,7 +6183,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, -.view-comment .comment-text, .page-edit-comment .comment-text, .page-add-reply .comment-text, .page-edit-reply .comment-text, @@ -6204,7 +6191,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-text, .container-edit-comment .reply-text, .container-add-reply .reply-text, -.view-comment .reply-text, .page-edit-comment .reply-text, .page-add-reply .reply-text, .page-edit-reply .reply-text { @@ -6220,7 +6206,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-item, .container-edit-comment .reply-item, .container-add-reply .reply-item, -.view-comment .reply-item, .page-edit-comment .reply-item, .page-add-reply .reply-item, .page-edit-reply .reply-item { @@ -6232,7 +6217,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, .container-add-reply .reply-item .header-reply, -.view-comment .reply-item .header-reply, .page-edit-comment .reply-item .header-reply, .page-add-reply .reply-item .header-reply, .page-edit-reply .reply-item .header-reply { @@ -6244,7 +6228,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, .container-add-reply .reply-item .user-name, -.view-comment .reply-item .user-name, .page-edit-comment .reply-item .user-name, .page-add-reply .reply-item .user-name, .page-edit-reply .reply-item .user-name { @@ -6255,7 +6238,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-quote, .container-edit-comment .comment-quote, .container-add-reply .comment-quote, -.view-comment .comment-quote, .page-edit-comment .comment-quote, .page-add-reply .comment-quote, .page-edit-reply .comment-quote { @@ -6270,7 +6252,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, .container-add-reply .wrap-comment, -.view-comment .wrap-comment, .page-edit-comment .wrap-comment, .page-add-reply .wrap-comment, .page-edit-reply .wrap-comment, @@ -6279,7 +6260,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .wrap-reply, .container-edit-comment .wrap-reply, .container-add-reply .wrap-reply, -.view-comment .wrap-reply, .page-edit-comment .wrap-reply, .page-add-reply .wrap-reply, .page-edit-reply .wrap-reply { @@ -6290,7 +6270,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6299,7 +6278,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6308,7 +6286,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6326,7 +6303,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment, .container-edit-comment .header-comment, .container-add-reply .header-comment, -.view-comment .header-comment, .page-edit-comment .header-comment, .page-add-reply .header-comment, .page-edit-reply .header-comment { @@ -6339,7 +6315,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment .comment-right, .container-edit-comment .header-comment .comment-right, .container-add-reply .header-comment .comment-right, -.view-comment .header-comment .comment-right, .page-edit-comment .header-comment .comment-right, .page-add-reply .header-comment .comment-right, .page-edit-reply .header-comment .comment-right { @@ -6352,7 +6327,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment .comment-left, .container-edit-comment .header-comment .comment-left, .container-add-reply .header-comment .comment-left, -.view-comment .header-comment .comment-left, .page-edit-comment .header-comment .comment-left, .page-add-reply .header-comment .comment-left, .page-edit-reply .header-comment .comment-left { @@ -6364,7 +6338,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment .initials-comment, .container-edit-comment .header-comment .initials-comment, .container-add-reply .header-comment .initials-comment, -.view-comment .header-comment .initials-comment, .page-edit-comment .header-comment .initials-comment, .page-add-reply .header-comment .initials-comment, .page-edit-reply .header-comment .initials-comment { @@ -6383,7 +6356,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-reply .reply-left, .container-edit-comment .header-reply .reply-left, .container-add-reply .header-reply .reply-left, -.view-comment .header-reply .reply-left, .page-edit-comment .header-reply .reply-left, .page-add-reply .header-reply .reply-left, .page-edit-reply .header-reply .reply-left { @@ -6396,7 +6368,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-reply .initials-reply, .container-edit-comment .header-reply .initials-reply, .container-add-reply .header-reply .initials-reply, -.view-comment .header-reply .initials-reply, .page-edit-comment .header-reply .initials-reply, .page-add-reply .header-reply .initials-reply, .page-edit-reply .header-reply .initials-reply { @@ -6429,22 +6400,17 @@ html.phone .document-menu .list-block .item-link { height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } -.container-view-comment .page-view-comments, -.container-view-comment .view-comment { +.container-view-comment .page-view-comments { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block, -.container-view-comment .view-comment .list-block { +.container-view-comment .page-view-comments .list-block { margin-bottom: 120px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .view-comment .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after, -.container-view-comment .view-comment .list-block ul:after { +.container-view-comment .page-view-comments .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner, -.container-view-comment .view-comment .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner { padding: 0; } .container-view-comment .toolbar { @@ -6507,34 +6473,37 @@ html.phone .document-menu .list-block .item-link { .container-view-comment.popover .toolbar .toolbar-inner { padding-right: 0; } -.container-view-comment.popover .page { +.container-view-comment.popover .pages { + position: absolute; +} +.container-view-comment.popover .pages .page { border-radius: 13px; } -.container-view-comment.popover .page .page-content { +.container-view-comment.popover .pages .page .page-content { padding: 16px; padding-bottom: 80px; } -.container-view-comment.popover .page .page-content .list-block { +.container-view-comment.popover .pages .page .page-content .list-block { margin-bottom: 0px; } -.container-view-comment.popover .page .page-content .list-block .item-content { +.container-view-comment.popover .pages .page .page-content .list-block .item-content { padding-left: 0; } -.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, -.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { +.container-view-comment.popover .pages .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .pages .page .page-content .list-block .item-content .reply-item { padding-right: 0; } -.container-view-comment.popover .page .page-content .block-reply { +.container-view-comment.popover .pages .page .page-content .block-reply { margin-top: 10px; } -.container-view-comment.popover .page .page-content .block-reply .reply-textarea { +.container-view-comment.popover .pages .page .page-content .block-reply .reply-textarea { min-height: 70px; width: 278px; border: 1px solid #c4c4c4; border-radius: 6px; padding: 5px; } -.container-view-comment.popover .page .page-content .edit-reply-textarea { +.container-view-comment.popover .pages .page .page-content .edit-reply-textarea { min-height: 60px; width: 100%; border: 1px solid #c4c4c4; @@ -6543,10 +6512,10 @@ html.phone .document-menu .list-block .item-link { height: 60px; margin-top: 10px; } -.container-view-comment.popover .page .page-content .comment-text { +.container-view-comment.popover .pages .page .page-content .comment-text { padding-right: 0; } -.container-view-comment.popover .page .page-content .comment-text .comment-textarea { +.container-view-comment.popover .pages .page .page-content .comment-text .comment-textarea { border: 1px solid #c4c4c4; border-radius: 6px; padding: 8px; diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index 32f523dfe..44a7fb9f3 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -6480,7 +6480,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .header-comment, .container-edit-comment .header-comment, .container-add-reply .header-comment, -.view-comment .header-comment, .page-edit-comment .header-comment, .page-add-reply .header-comment, .page-edit-reply .header-comment { @@ -6493,7 +6492,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .header-comment .comment-right, .container-edit-comment .header-comment .comment-right, .container-add-reply .header-comment .comment-right, -.view-comment .header-comment .comment-right, .page-edit-comment .header-comment .comment-right, .page-add-reply .header-comment .comment-right, .page-edit-reply .header-comment .comment-right { @@ -6506,7 +6504,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, .container-add-reply .list-block .item-inner, -.view-comment .list-block .item-inner, .page-edit-comment .list-block .item-inner, .page-add-reply .list-block .item-inner, .page-edit-reply .list-block .item-inner { @@ -6519,7 +6516,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments p, .container-edit-comment p, .container-add-reply p, -.view-comment p, .page-edit-comment p, .page-add-reply p, .page-edit-reply p { @@ -6531,7 +6527,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .list-reply, .container-edit-comment .list-reply, .container-add-reply .list-reply, -.view-comment .list-reply, .page-edit-comment .list-reply, .page-add-reply .list-reply, .page-edit-reply .list-reply { @@ -6542,7 +6537,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6551,7 +6545,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6560,7 +6553,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6571,7 +6563,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .user-name, .container-edit-comment .user-name, .container-add-reply .user-name, -.view-comment .user-name, .page-edit-comment .user-name, .page-add-reply .user-name, .page-edit-reply .user-name { @@ -6586,7 +6577,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, -.view-comment .comment-date, .page-edit-comment .comment-date, .page-add-reply .comment-date, .page-edit-reply .comment-date, @@ -6595,7 +6585,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-date, .container-edit-comment .reply-date, .container-add-reply .reply-date, -.view-comment .reply-date, .page-edit-comment .reply-date, .page-add-reply .reply-date, .page-edit-reply .reply-date { @@ -6610,7 +6599,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, -.view-comment .comment-text, .page-edit-comment .comment-text, .page-add-reply .comment-text, .page-edit-reply .comment-text, @@ -6619,7 +6607,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-text, .container-edit-comment .reply-text, .container-add-reply .reply-text, -.view-comment .reply-text, .page-edit-comment .reply-text, .page-add-reply .reply-text, .page-edit-reply .reply-text { @@ -6635,7 +6622,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item, .container-edit-comment .reply-item, .container-add-reply .reply-item, -.view-comment .reply-item, .page-edit-comment .reply-item, .page-add-reply .reply-item, .page-edit-reply .reply-item { @@ -6648,7 +6634,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, .container-add-reply .reply-item .header-reply, -.view-comment .reply-item .header-reply, .page-edit-comment .reply-item .header-reply, .page-add-reply .reply-item .header-reply, .page-edit-reply .reply-item .header-reply { @@ -6660,7 +6645,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, .container-add-reply .reply-item .user-name, -.view-comment .reply-item .user-name, .page-edit-comment .reply-item .user-name, .page-add-reply .reply-item .user-name, .page-edit-reply .reply-item .user-name { @@ -6671,7 +6655,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-item:before, .container-edit-comment .reply-item:before, .container-add-reply .reply-item:before, -.view-comment .reply-item:before, .page-edit-comment .reply-item:before, .page-add-reply .reply-item:before, .page-edit-reply .reply-item:before { @@ -6694,7 +6677,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-quote, .container-edit-comment .comment-quote, .container-add-reply .comment-quote, -.view-comment .comment-quote, .page-edit-comment .comment-quote, .page-add-reply .comment-quote, .page-edit-reply .comment-quote { @@ -6709,7 +6691,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, .container-add-reply .wrap-comment, -.view-comment .wrap-comment, .page-edit-comment .wrap-comment, .page-add-reply .wrap-comment, .page-edit-reply .wrap-comment, @@ -6718,7 +6699,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .wrap-reply, .container-edit-comment .wrap-reply, .container-add-reply .wrap-reply, -.view-comment .wrap-reply, .page-edit-comment .wrap-reply, .page-add-reply .wrap-reply, .page-edit-reply .wrap-reply { @@ -6729,7 +6709,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6738,7 +6717,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6747,7 +6725,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6783,22 +6760,17 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-comment .pages { background-color: #FFFFFF; } -.container-view-comment .page-view-comments, -.container-view-comment .view-comment { +.container-view-comment .page-view-comments { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block, -.container-view-comment .view-comment .list-block { +.container-view-comment .page-view-comments .list-block { margin-bottom: 100px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .view-comment .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after, -.container-view-comment .view-comment .list-block ul:after { +.container-view-comment .page-view-comments .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner, -.container-view-comment .view-comment .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner { padding: 0; } .container-view-comment .toolbar { @@ -6854,34 +6826,37 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-view-comment.popover .toolbar .toolbar-inner { padding-right: 0; } -.container-view-comment.popover .page { +.container-view-comment.popover .pages { + position: absolute; +} +.container-view-comment.popover .pages .page { border-radius: 13px; } -.container-view-comment.popover .page .page-content { +.container-view-comment.popover .pages .page .page-content { padding: 16px; padding-bottom: 80px; } -.container-view-comment.popover .page .page-content .list-block { +.container-view-comment.popover .pages .page .page-content .list-block { margin-bottom: 0px; } -.container-view-comment.popover .page .page-content .list-block .item-content { +.container-view-comment.popover .pages .page .page-content .list-block .item-content { padding-left: 0; } -.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, -.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { +.container-view-comment.popover .pages .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .pages .page .page-content .list-block .item-content .reply-item { padding-right: 0; } -.container-view-comment.popover .page .page-content .block-reply { +.container-view-comment.popover .pages .page .page-content .block-reply { margin-top: 10px; } -.container-view-comment.popover .page .page-content .block-reply .reply-textarea { +.container-view-comment.popover .pages .page .page-content .block-reply .reply-textarea { min-height: 70px; width: 278px; border: 1px solid #c4c4c4; border-radius: 6px; padding: 5px; } -.container-view-comment.popover .page .page-content .edit-reply-textarea { +.container-view-comment.popover .pages .page .page-content .edit-reply-textarea { min-height: 60px; width: 100%; border: 1px solid #c4c4c4; @@ -6890,10 +6865,10 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after height: 60px; margin-top: 10px; } -.container-view-comment.popover .page .page-content .comment-text { +.container-view-comment.popover .pages .page .page-content .comment-text { padding-right: 0; } -.container-view-comment.popover .page .page-content .comment-text .comment-textarea { +.container-view-comment.popover .pages .page .page-content .comment-text .comment-textarea { border: 1px solid #c4c4c4; border-radius: 6px; padding: 8px; diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-material.css b/apps/spreadsheeteditor/mobile/resources/css/app-material.css index 93a468c05..a2b95dc58 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-material.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-material.css @@ -6071,7 +6071,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block ul:before, .container-edit-comment .list-block ul:before, .container-add-reply .list-block ul:before, -.view-comment .list-block ul:before, .page-edit-comment .list-block ul:before, .page-add-reply .list-block ul:before, .page-edit-reply .list-block ul:before, @@ -6080,7 +6079,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block ul:after, .container-edit-comment .list-block ul:after, .container-add-reply .list-block ul:after, -.view-comment .list-block ul:after, .page-edit-comment .list-block ul:after, .page-add-reply .list-block ul:after, .page-edit-reply .list-block ul:after { @@ -6091,7 +6089,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block .item-inner, .container-edit-comment .list-block .item-inner, .container-add-reply .list-block .item-inner, -.view-comment .list-block .item-inner, .page-edit-comment .list-block .item-inner, .page-add-reply .list-block .item-inner, .page-edit-reply .list-block .item-inner { @@ -6104,7 +6101,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-block .item-inner:after, .container-edit-comment .list-block .item-inner:after, .container-add-reply .list-block .item-inner:after, -.view-comment .list-block .item-inner:after, .page-edit-comment .list-block .item-inner:after, .page-add-reply .list-block .item-inner:after, .page-edit-reply .list-block .item-inner:after { @@ -6115,7 +6111,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments p, .container-edit-comment p, .container-add-reply p, -.view-comment p, .page-edit-comment p, .page-add-reply p, .page-edit-reply p { @@ -6127,7 +6122,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .list-reply, .container-edit-comment .list-reply, .container-add-reply .list-reply, -.view-comment .list-reply, .page-edit-comment .list-reply, .page-add-reply .list-reply, .page-edit-reply .list-reply { @@ -6138,7 +6132,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6147,7 +6140,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6156,7 +6148,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6167,7 +6158,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .user-name, .container-edit-comment .user-name, .container-add-reply .user-name, -.view-comment .user-name, .page-edit-comment .user-name, .page-add-reply .user-name, .page-edit-reply .user-name { @@ -6181,7 +6171,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-date, .container-edit-comment .comment-date, .container-add-reply .comment-date, -.view-comment .comment-date, .page-edit-comment .comment-date, .page-add-reply .comment-date, .page-edit-reply .comment-date, @@ -6190,7 +6179,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-date, .container-edit-comment .reply-date, .container-add-reply .reply-date, -.view-comment .reply-date, .page-edit-comment .reply-date, .page-add-reply .reply-date, .page-edit-reply .reply-date { @@ -6205,7 +6193,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-text, .container-edit-comment .comment-text, .container-add-reply .comment-text, -.view-comment .comment-text, .page-edit-comment .comment-text, .page-add-reply .comment-text, .page-edit-reply .comment-text, @@ -6214,7 +6201,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-text, .container-edit-comment .reply-text, .container-add-reply .reply-text, -.view-comment .reply-text, .page-edit-comment .reply-text, .page-add-reply .reply-text, .page-edit-reply .reply-text { @@ -6230,7 +6216,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-item, .container-edit-comment .reply-item, .container-add-reply .reply-item, -.view-comment .reply-item, .page-edit-comment .reply-item, .page-add-reply .reply-item, .page-edit-reply .reply-item { @@ -6242,7 +6227,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-item .header-reply, .container-edit-comment .reply-item .header-reply, .container-add-reply .reply-item .header-reply, -.view-comment .reply-item .header-reply, .page-edit-comment .reply-item .header-reply, .page-add-reply .reply-item .header-reply, .page-edit-reply .reply-item .header-reply { @@ -6254,7 +6238,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-item .user-name, .container-edit-comment .reply-item .user-name, .container-add-reply .reply-item .user-name, -.view-comment .reply-item .user-name, .page-edit-comment .reply-item .user-name, .page-add-reply .reply-item .user-name, .page-edit-reply .reply-item .user-name { @@ -6265,7 +6248,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-quote, .container-edit-comment .comment-quote, .container-add-reply .comment-quote, -.view-comment .comment-quote, .page-edit-comment .comment-quote, .page-add-reply .comment-quote, .page-edit-reply .comment-quote { @@ -6280,7 +6262,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .wrap-comment, .container-edit-comment .wrap-comment, .container-add-reply .wrap-comment, -.view-comment .wrap-comment, .page-edit-comment .wrap-comment, .page-add-reply .wrap-comment, .page-edit-reply .wrap-comment, @@ -6289,7 +6270,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .wrap-reply, .container-edit-comment .wrap-reply, .container-add-reply .wrap-reply, -.view-comment .wrap-reply, .page-edit-comment .wrap-reply, .page-add-reply .wrap-reply, .page-edit-reply .wrap-reply { @@ -6300,7 +6280,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .comment-textarea, .container-edit-comment .comment-textarea, .container-add-reply .comment-textarea, -.view-comment .comment-textarea, .page-edit-comment .comment-textarea, .page-add-reply .comment-textarea, .page-edit-reply .comment-textarea, @@ -6309,7 +6288,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .reply-textarea, .container-edit-comment .reply-textarea, .container-add-reply .reply-textarea, -.view-comment .reply-textarea, .page-edit-comment .reply-textarea, .page-add-reply .reply-textarea, .page-edit-reply .reply-textarea, @@ -6318,7 +6296,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .edit-reply-textarea, .container-edit-comment .edit-reply-textarea, .container-add-reply .edit-reply-textarea, -.view-comment .edit-reply-textarea, .page-edit-comment .edit-reply-textarea, .page-add-reply .edit-reply-textarea, .page-edit-reply .edit-reply-textarea { @@ -6336,7 +6313,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment, .container-edit-comment .header-comment, .container-add-reply .header-comment, -.view-comment .header-comment, .page-edit-comment .header-comment, .page-add-reply .header-comment, .page-edit-reply .header-comment { @@ -6349,7 +6325,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment .comment-right, .container-edit-comment .header-comment .comment-right, .container-add-reply .header-comment .comment-right, -.view-comment .header-comment .comment-right, .page-edit-comment .header-comment .comment-right, .page-add-reply .header-comment .comment-right, .page-edit-reply .header-comment .comment-right { @@ -6362,7 +6337,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment .comment-left, .container-edit-comment .header-comment .comment-left, .container-add-reply .header-comment .comment-left, -.view-comment .header-comment .comment-left, .page-edit-comment .header-comment .comment-left, .page-add-reply .header-comment .comment-left, .page-edit-reply .header-comment .comment-left { @@ -6374,7 +6348,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-comment .initials-comment, .container-edit-comment .header-comment .initials-comment, .container-add-reply .header-comment .initials-comment, -.view-comment .header-comment .initials-comment, .page-edit-comment .header-comment .initials-comment, .page-add-reply .header-comment .initials-comment, .page-edit-reply .header-comment .initials-comment { @@ -6393,7 +6366,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-reply .reply-left, .container-edit-comment .header-reply .reply-left, .container-add-reply .header-reply .reply-left, -.view-comment .header-reply .reply-left, .page-edit-comment .header-reply .reply-left, .page-add-reply .header-reply .reply-left, .page-edit-reply .header-reply .reply-left { @@ -6406,7 +6378,6 @@ html.phone .document-menu .list-block .item-link { .page-view-comments .header-reply .initials-reply, .container-edit-comment .header-reply .initials-reply, .container-add-reply .header-reply .initials-reply, -.view-comment .header-reply .initials-reply, .page-edit-comment .header-reply .initials-reply, .page-add-reply .header-reply .initials-reply, .page-edit-reply .header-reply .initials-reply { @@ -6439,22 +6410,17 @@ html.phone .document-menu .list-block .item-link { height: 50%; box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.2), 0px 4px 5px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.14); } -.container-view-comment .page-view-comments, -.container-view-comment .view-comment { +.container-view-comment .page-view-comments { background-color: #FFFFFF; } -.container-view-comment .page-view-comments .list-block, -.container-view-comment .view-comment .list-block { +.container-view-comment .page-view-comments .list-block { margin-bottom: 120px; } .container-view-comment .page-view-comments .list-block ul:before, -.container-view-comment .view-comment .list-block ul:before, -.container-view-comment .page-view-comments .list-block ul:after, -.container-view-comment .view-comment .list-block ul:after { +.container-view-comment .page-view-comments .list-block ul:after { content: none; } -.container-view-comment .page-view-comments .list-block .item-inner, -.container-view-comment .view-comment .list-block .item-inner { +.container-view-comment .page-view-comments .list-block .item-inner { padding: 0; } .container-view-comment .toolbar { @@ -6517,34 +6483,37 @@ html.phone .document-menu .list-block .item-link { .container-view-comment.popover .toolbar .toolbar-inner { padding-right: 0; } -.container-view-comment.popover .page { +.container-view-comment.popover .pages { + position: absolute; +} +.container-view-comment.popover .pages .page { border-radius: 13px; } -.container-view-comment.popover .page .page-content { +.container-view-comment.popover .pages .page .page-content { padding: 16px; padding-bottom: 80px; } -.container-view-comment.popover .page .page-content .list-block { +.container-view-comment.popover .pages .page .page-content .list-block { margin-bottom: 0px; } -.container-view-comment.popover .page .page-content .list-block .item-content { +.container-view-comment.popover .pages .page .page-content .list-block .item-content { padding-left: 0; } -.container-view-comment.popover .page .page-content .list-block .item-content .header-comment, -.container-view-comment.popover .page .page-content .list-block .item-content .reply-item { +.container-view-comment.popover .pages .page .page-content .list-block .item-content .header-comment, +.container-view-comment.popover .pages .page .page-content .list-block .item-content .reply-item { padding-right: 0; } -.container-view-comment.popover .page .page-content .block-reply { +.container-view-comment.popover .pages .page .page-content .block-reply { margin-top: 10px; } -.container-view-comment.popover .page .page-content .block-reply .reply-textarea { +.container-view-comment.popover .pages .page .page-content .block-reply .reply-textarea { min-height: 70px; width: 278px; border: 1px solid #c4c4c4; border-radius: 6px; padding: 5px; } -.container-view-comment.popover .page .page-content .edit-reply-textarea { +.container-view-comment.popover .pages .page .page-content .edit-reply-textarea { min-height: 60px; width: 100%; border: 1px solid #c4c4c4; @@ -6553,10 +6522,10 @@ html.phone .document-menu .list-block .item-link { height: 60px; margin-top: 10px; } -.container-view-comment.popover .page .page-content .comment-text { +.container-view-comment.popover .pages .page .page-content .comment-text { padding-right: 0; } -.container-view-comment.popover .page .page-content .comment-text .comment-textarea { +.container-view-comment.popover .pages .page .page-content .comment-text .comment-textarea { border: 1px solid #c4c4c4; border-radius: 6px; padding: 8px; From 582c1ab6ced805cf969ce7450d0022b61fd5a49e Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Tue, 21 Apr 2020 20:38:07 +0300 Subject: [PATCH 28/72] [mobile] Comments (add translations) --- .../mobile/lib/controller/Collaboration.js | 3 --- apps/common/mobile/lib/view/Collaboration.js | 10 ++++---- .../mobile/app/controller/add/AddOther.js | 2 +- apps/documenteditor/mobile/locale/en.json | 24 ++++++++++++++++++ .../mobile/app/controller/add/AddOther.js | 2 +- apps/presentationeditor/mobile/locale/en.json | 25 +++++++++++++++++++ .../mobile/app/controller/add/AddOther.js | 2 +- apps/spreadsheeteditor/mobile/locale/en.json | 24 ++++++++++++++++++ 8 files changed, 81 insertions(+), 11 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 0f6778519..013928067 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -1739,16 +1739,13 @@ define([ textParaMoveFromUp: 'Moved Up:', textParaMoveFromDown: 'Moved Down:', textEditUser: 'Document is currently being edited by several users.', - textAddComment: "Add Comment", textCancel: "Cancel", textDone: "Done", textAddReply: "Add Reply", textEdit: 'Edit', textResolve: 'Resolve', textDeleteComment: 'Delete comment', - textEditComment: 'Edit comment', textDeleteReply: 'Delete reply', - textEditReply: 'Edit reply', textReopen: 'Reopen', textMessageDeleteComment: 'Do you really want to delete this comment?', textMessageDeleteReply: 'Do you really want to delete this reply?', diff --git a/apps/common/mobile/lib/view/Collaboration.js b/apps/common/mobile/lib/view/Collaboration.js index 748ec1bd7..b87108959 100644 --- a/apps/common/mobile/lib/view/Collaboration.js +++ b/apps/common/mobile/lib/view/Collaboration.js @@ -440,11 +440,11 @@ define([ textOriginal: 'Original', textChange: 'Review Change', textEditUsers: 'Users', - textNoComments: "This document doesn\'t contain comments", - textEditСomment: "Edit Comment", - textDone: "Done", - textAddReply: "Add Reply", - textEditReply: "Edit Reply", + textNoComments: 'This document doesn\'t contain comments', + textEditСomment: 'Edit Comment', + textDone: 'Done', + textAddReply: 'Add Reply', + textEditReply: 'Edit Reply', textCancel: 'Cancel' } })(), Common.Views.Collaboration || {})) diff --git a/apps/documenteditor/mobile/app/controller/add/AddOther.js b/apps/documenteditor/mobile/app/controller/add/AddOther.js index 041cb3758..fc09c8d7b 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddOther.js +++ b/apps/documenteditor/mobile/app/controller/add/AddOther.js @@ -455,7 +455,7 @@ define([ txtNotUrl: 'This field should be a URL in the format \"http://www.example.com\"', textBottomOfPage: 'Bottom Of Page', textBelowText: 'Below Text', - textDeleteDraft: 'Delete draft?', + textDeleteDraft: 'Do you really want to delete draft?', textCancel: 'Cancel', textContinue: 'Continue' diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index 8402c0bb5..a44edb222 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -12,6 +12,17 @@ "Common.Controllers.Collaboration.textDeleted": "Deleted:", "Common.Controllers.Collaboration.textDStrikeout": "Double strikeout", "Common.Controllers.Collaboration.textEditUser": "Users who are editing the file:", + "Common.Controllers.Collaboration.textCancel": "Cancel", + "Common.Controllers.Collaboration.textDone": "Done", + "Common.Controllers.Collaboration.textAddReply": "Add Reply", + "Common.Controllers.Collaboration.textEdit": "Edit", + "Common.Controllers.Collaboration.textResolve": "Resolve", + "Common.Controllers.Collaboration.textDeleteComment": "Delete comment", + "Common.Controllers.Collaboration.textDeleteReply": "Delete reply", + "Common.Controllers.Collaboration.textReopen": "Reopen", + "Common.Controllers.Collaboration.textMessageDeleteComment": "Do you really want to delete this comment?", + "Common.Controllers.Collaboration.textMessageDeleteReply": "Do you really want to delete this reply?", + "Common.Controllers.Collaboration.textYes": "Yes", "Common.Controllers.Collaboration.textEquation": "Equation", "Common.Controllers.Collaboration.textExact": "exactly", "Common.Controllers.Collaboration.textFirstLine": "First line", @@ -77,6 +88,11 @@ "Common.Views.Collaboration.textReview": "Track Changes", "Common.Views.Collaboration.textReviewing": "Review", "Common.Views.Collaboration.textСomments": "Сomments", + "Common.Views.Collaboration.textEditСomment": "Edit Comment", + "Common.Views.Collaboration.textDone": "Done", + "Common.Views.Collaboration.textAddReply": "Add Reply", + "Common.Views.Collaboration.textEditReply": "Edit Reply", + "Common.Views.Collaboration.textCancel": "Cancel", "DE.Controllers.AddContainer.textImage": "Image", "DE.Controllers.AddContainer.textOther": "Other", "DE.Controllers.AddContainer.textShape": "Shape", @@ -86,6 +102,9 @@ "DE.Controllers.AddOther.textBelowText": "Below Text", "DE.Controllers.AddOther.textBottomOfPage": "Bottom Of Page", "DE.Controllers.AddOther.txtNotUrl": "This field should be a URL in the 'http://www.example.com' format", + "DE.Controllers.AddOther.textDeleteDraft": "Do you really want to delete draft?", + "DE.Controllers.AddOther.textCancel": "Cancel", + "DE.Controllers.AddOther.textContinue": "Continue", "DE.Controllers.AddTable.textCancel": "Cancel", "DE.Controllers.AddTable.textColumns": "Columns", "DE.Controllers.AddTable.textRows": "Rows", @@ -110,6 +129,8 @@ "DE.Controllers.DocumentHolder.textRows": "Rows", "DE.Controllers.DocumentHolder.textCopyCutPasteActions": "Copy, Cut and Paste Actions", "DE.Controllers.DocumentHolder.errorCopyCutPaste": "Copy, cut and paste actions using the context menu will be performed within the current file only. You cannot copy or paste to or from other applications.", + "DE.Controllers.DocumentHolder.menuViewComment": "View Comment", + "DE.Controllers.DocumentHolder.menuAddComment": "Add Comment", "DE.Controllers.EditContainer.textChart": "Chart", "DE.Controllers.EditContainer.textFooter": "Footer", "DE.Controllers.EditContainer.textHeader": "Header", @@ -298,6 +319,9 @@ "DE.Views.AddOther.textSectionBreak": "Section Break", "DE.Views.AddOther.textStartFrom": "Start At", "DE.Views.AddOther.textTip": "Screen Tip", + "DE.Views.AddOther.textComment": "Comment", + "DE.Views.AddOther.textAddComment": "Add Comment", + "DE.Views.AddOther.textDone": "Done", "DE.Views.EditChart.textAddCustomColor": "Add Custom Color", "DE.Views.EditChart.textAlign": "Align", "DE.Views.EditChart.textBack": "Back", diff --git a/apps/presentationeditor/mobile/app/controller/add/AddOther.js b/apps/presentationeditor/mobile/app/controller/add/AddOther.js index b64bc7a35..7d5bddd16 100644 --- a/apps/presentationeditor/mobile/app/controller/add/AddOther.js +++ b/apps/presentationeditor/mobile/app/controller/add/AddOther.js @@ -156,7 +156,7 @@ define([ } }, - textDeleteDraft: 'Delete draft?', + textDeleteDraft: 'Do you really want to delete draft?', textCancel: 'Cancel', textContinue: 'Continue' diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json index 16aac262d..974581605 100644 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -1,5 +1,16 @@ { "Common.Controllers.Collaboration.textEditUser": "Users who are editing the file:", + "Common.Controllers.Collaboration.textCancel": "Cancel", + "Common.Controllers.Collaboration.textDone": "Done", + "Common.Controllers.Collaboration.textAddReply": "Add Reply", + "Common.Controllers.Collaboration.textEdit": "Edit", + "Common.Controllers.Collaboration.textResolve": "Resolve", + "Common.Controllers.Collaboration.textDeleteComment": "Delete comment", + "Common.Controllers.Collaboration.textDeleteReply": "Delete reply", + "Common.Controllers.Collaboration.textReopen": "Reopen", + "Common.Controllers.Collaboration.textMessageDeleteComment": "Do you really want to delete this comment?", + "Common.Controllers.Collaboration.textMessageDeleteReply": "Do you really want to delete this reply?", + "Common.Controllers.Collaboration.textYes": "Yes", "Common.UI.ThemeColorPalette.textCustomColors": "Custom Colors", "Common.UI.ThemeColorPalette.textStandartColors": "Standard Colors", "Common.UI.ThemeColorPalette.textThemeColors": "Theme Colors", @@ -10,11 +21,17 @@ "Common.Views.Collaboration.textEditUsers": "Users", "Common.Views.Collaboration.textNoComments": "This presentation doesn't contain comments", "Common.Views.Collaboration.textСomments": "Сomments", + "Common.Views.Collaboration.textEditСomment": "Edit Comment", + "Common.Views.Collaboration.textDone": "Done", + "Common.Views.Collaboration.textAddReply": "Add Reply", + "Common.Views.Collaboration.textEditReply": "Edit Reply", + "Common.Views.Collaboration.textCancel": "Cancel", "PE.Controllers.AddContainer.textImage": "Image", "PE.Controllers.AddContainer.textLink": "Link", "PE.Controllers.AddContainer.textShape": "Shape", "PE.Controllers.AddContainer.textSlide": "Slide", "PE.Controllers.AddContainer.textTable": "Table", + "PE.Controllers.AddContainer.textOther": "Other", "PE.Controllers.AddImage.textEmptyImgUrl": "You need to specify image URL.", "PE.Controllers.AddImage.txtNotUrl": "This field should be a URL in the format 'http://www.example.com'", "PE.Controllers.AddLink.textDefault": "Selected text", @@ -30,6 +47,9 @@ "PE.Controllers.AddTable.textColumns": "Columns", "PE.Controllers.AddTable.textRows": "Rows", "PE.Controllers.AddTable.textTableSize": "Table Size", + "PE.Controllers.AddOther.textDeleteDraft": "Do you really want to delete draft?", + "PE.Controllers.AddOther.textCancel": "Cancel", + "PE.Controllers.AddOther.textContinue": "Continue", "PE.Controllers.DocumentHolder.menuAddLink": "Add Link", "PE.Controllers.DocumentHolder.menuCopy": "Copy", "PE.Controllers.DocumentHolder.menuCut": "Cut", @@ -38,6 +58,8 @@ "PE.Controllers.DocumentHolder.menuMore": "More", "PE.Controllers.DocumentHolder.menuOpenLink": "Open Link", "PE.Controllers.DocumentHolder.menuPaste": "Paste", + "PE.Controllers.DocumentHolder.menuViewComment": "View Comment", + "PE.Controllers.DocumentHolder.menuAddComment": "Add Comment", "PE.Controllers.DocumentHolder.sheetCancel": "Cancel", "PE.Controllers.DocumentHolder.textCopyCutPasteActions": "Copy, Cut and Paste Actions", "PE.Controllers.DocumentHolder.errorCopyCutPaste": "Copy, cut and paste actions using the context menu will be performed within the current file only. You cannot copy or paste to or from other applications.", @@ -257,6 +279,9 @@ "PE.Views.AddLink.textNumber": "Slide Number", "PE.Views.AddLink.textPrev": "Previous Slide", "PE.Views.AddLink.textTip": "Screen Tip", + "PE.Views.AddOther.textComment": "Comment", + "PE.Views.AddOther.textAddComment": "Add Comment", + "PE.Views.AddOther.textDone": "Done", "PE.Views.EditChart.textAddCustomColor": "Add Custom Color", "PE.Views.EditChart.textAlign": "Align", "PE.Views.EditChart.textAlignBottom": "Align Bottom", diff --git a/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js b/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js index 6986b3ba9..e62a322e1 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js +++ b/apps/spreadsheeteditor/mobile/app/controller/add/AddOther.js @@ -198,7 +198,7 @@ define([ textEmptyImgUrl : 'You need to specify image URL.', txtNotUrl: 'This field should be a URL in the format \"http://www.example.com\"', - textDeleteDraft: 'Delete draft?', + textDeleteDraft: 'Do you really want to delete draft?', textCancel: 'Cancel', textContinue: 'Continue' } diff --git a/apps/spreadsheeteditor/mobile/locale/en.json b/apps/spreadsheeteditor/mobile/locale/en.json index ee71efa83..65cf7a6b6 100644 --- a/apps/spreadsheeteditor/mobile/locale/en.json +++ b/apps/spreadsheeteditor/mobile/locale/en.json @@ -1,5 +1,16 @@ { "Common.Controllers.Collaboration.textEditUser": "Users who are editing the file:", + "Common.Controllers.Collaboration.textCancel": "Cancel", + "Common.Controllers.Collaboration.textDone": "Done", + "Common.Controllers.Collaboration.textAddReply": "Add Reply", + "Common.Controllers.Collaboration.textEdit": "Edit", + "Common.Controllers.Collaboration.textResolve": "Resolve", + "Common.Controllers.Collaboration.textDeleteComment": "Delete comment", + "Common.Controllers.Collaboration.textDeleteReply": "Delete reply", + "Common.Controllers.Collaboration.textReopen": "Reopen", + "Common.Controllers.Collaboration.textMessageDeleteComment": "Do you really want to delete this comment?", + "Common.Controllers.Collaboration.textMessageDeleteReply": "Do you really want to delete this reply?", + "Common.Controllers.Collaboration.textYes": "Yes", "Common.UI.ThemeColorPalette.textCustomColors": "Custom Colors", "Common.UI.ThemeColorPalette.textStandartColors": "Standard Colors", "Common.UI.ThemeColorPalette.textThemeColors": "Theme Colors", @@ -10,6 +21,11 @@ "Common.Views.Collaboration.textEditUsers": "Users", "Common.Views.Collaboration.textNoComments": "This spreadsheet doesn't contain comments", "Common.Views.Collaboration.textСomments": "Сomments", + "Common.Views.Collaboration.textEditСomment": "Edit Comment", + "Common.Views.Collaboration.textDone": "Done", + "Common.Views.Collaboration.textAddReply": "Add Reply", + "Common.Views.Collaboration.textEditReply": "Edit Reply", + "Common.Views.Collaboration.textCancel": "Cancel", "SSE.Controllers.AddChart.txtDiagramTitle": "Chart Title", "SSE.Controllers.AddChart.txtSeries": "Series", "SSE.Controllers.AddChart.txtXAxis": "X Axis", @@ -23,6 +39,9 @@ "SSE.Controllers.AddLink.txtNotUrl": "This field should be a URL in the format 'http://www.example.com'", "SSE.Controllers.AddOther.textEmptyImgUrl": "You need to specify image URL.", "SSE.Controllers.AddOther.txtNotUrl": "This field should be a URL in the format 'http://www.example.com'", + "SSE.Controllers.AddOther.textDeleteDraft": "Do you really want to delete draft?", + "SSE.Controllers.AddOther.textCancel": "Cancel", + "SSE.Controllers.AddOther.textContinue": "Continue", "SSE.Controllers.DocumentHolder.menuAddLink": "Add Link", "SSE.Controllers.DocumentHolder.menuCell": "Cell", "SSE.Controllers.DocumentHolder.menuCopy": "Copy", @@ -40,6 +59,8 @@ "SSE.Controllers.DocumentHolder.menuUnmerge": "Unmerge", "SSE.Controllers.DocumentHolder.menuUnwrap": "Unwrap", "SSE.Controllers.DocumentHolder.menuWrap": "Wrap", + "SSE.Controllers.DocumentHolder.menuViewComment": "View Comment", + "SSE.Controllers.DocumentHolder.menuAddComment": "Add Comment", "SSE.Controllers.DocumentHolder.sheetCancel": "Cancel", "SSE.Controllers.DocumentHolder.warnMergeLostData": "Operation can destroy data in the selected cells.
    Continue?", "SSE.Controllers.DocumentHolder.textCopyCutPasteActions": "Copy, Cut and Paste Actions", @@ -351,6 +372,9 @@ "SSE.Views.AddOther.textLink": "Link", "SSE.Views.AddOther.textSort": "Sort and Filter", "SSE.Views.AddOther.textLinkSettings": "Link Settings", + "SSE.Views.AddOther.textComment": "Comment", + "SSE.Views.AddOther.textAddComment": "Add Comment", + "SSE.Views.AddOther.textDone": "Done", "SSE.Views.EditCell.textAccounting": "Accounting", "SSE.Views.EditCell.textAddCustomColor": "Add Custom Color", "SSE.Views.EditCell.textAlignBottom": "Align Bottom", From b9c32cdfcb1f22cbc92c4600c10b7fab19a49e2b Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 23 Apr 2020 19:02:54 +0300 Subject: [PATCH 29/72] [SSE] Fix Bug 45276 --- .../main/app/controller/DocumentHolder.js | 2 +- .../resources/less/advanced-settings.less | 31 ------------------- 2 files changed, 1 insertion(+), 32 deletions(-) diff --git a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js index 40168960c..a16b57a5a 100644 --- a/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js +++ b/apps/spreadsheeteditor/main/app/controller/DocumentHolder.js @@ -2044,7 +2044,7 @@ define([ name = menuItem.asc_getName(true), origname = me.api.asc_getFormulaNameByLocale(name), mnu = new Common.UI.MenuItem({ - iconCls: (type==Asc.c_oAscPopUpSelectorType.Func) ? 'mnu-popup-func': ((type==Asc.c_oAscPopUpSelectorType.Table) ? 'mnu-popup-table' : 'mnu-popup-range') , + iconCls: 'menu__icon ' + ((type==Asc.c_oAscPopUpSelectorType.Func) ? 'btn-function': ((type==Asc.c_oAscPopUpSelectorType.Table) ? 'btn-menu-table' : 'btn-named-range')) , caption: name, hint : (funcdesc && funcdesc[origname]) ? funcdesc[origname].d : '' }).on('click', function(item, e) { diff --git a/apps/spreadsheeteditor/main/resources/less/advanced-settings.less b/apps/spreadsheeteditor/main/resources/less/advanced-settings.less index 4b53ba3b4..d7a69c082 100644 --- a/apps/spreadsheeteditor/main/resources/less/advanced-settings.less +++ b/apps/spreadsheeteditor/main/resources/less/advanced-settings.less @@ -90,35 +90,4 @@ } } -#menu-formula-selection { - .dropdown-menu li { - .menu-item-icon { - .background-ximage('@{app-image-path}/toolbar-menu.png', '@{app-image-path}/toolbar-menu@2x.png', 20px) !important; - - &.mnu-popup-range { - background-position: 0 -1560px; - } - &.mnu-popup-table { - background-position: 0 -1580px; - } - &.mnu-popup-func { - background-position: 0 -1300px; - } - } - - &.selected { - .mnu-popup-range { - background-position: -20px -1560px; - } - .mnu-popup-table { - background-position: -20px -1580px; - } - .mnu-popup-func { - background-position: -20px -1300px; - } - } - } -} - - From 43c5300cdc702922453abb87a348a4cf21a89efa Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Fri, 24 Apr 2020 14:30:55 +0300 Subject: [PATCH 30/72] [mobile] Comments (fix bugs) --- .../mobile/lib/controller/Collaboration.js | 42 +++++++++++++------ apps/common/mobile/lib/view/Collaboration.js | 16 +++++-- .../resources/less/ios/_collaboration.less | 1 + .../less/material/_collaboration.less | 1 + .../mobile/app/view/add/AddOther.js | 12 ++++++ .../mobile/resources/css/app-ios.css | 1 + .../mobile/resources/css/app-material.css | 1 + .../mobile/app/view/add/AddOther.js | 12 ++++++ .../mobile/resources/css/app-ios.css | 1 + .../mobile/resources/css/app-material.css | 1 + .../mobile/app/view/add/AddOther.js | 12 ++++++ .../mobile/resources/css/app-ios.css | 1 + .../mobile/resources/css/app-material.css | 1 + 13 files changed, 87 insertions(+), 15 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 013928067..3f2694a0a 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -804,8 +804,8 @@ define([ updateViewComment: function() { this.view.renderViewComments(this.showComments, this.indexCurrentComment); - $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); - $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); + $('.comment-menu').single('click', _.buffered(this.initMenuComments, 100, this)); + $('.reply-menu').single('click', _.buffered(this.initReplyMenu, 100, this)); $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this, false)); if (this.showComments.length === 1) { $('.prev-comment, .next-comment').addClass('disabled'); @@ -860,9 +860,9 @@ define([ me.getView('Common.Views.Collaboration').renderViewComments(me.showComments, me.indexCurrentComment); $('.prev-comment').single('click', _.bind(me.onViewPrevComment, me)); $('.next-comment').single('click', _.bind(me.onViewNextComment, me)); - $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); + $('.comment-menu').single('click', _.buffered(me.initMenuComments, 100, me)); $('.add-reply').single('click', _.bind(me.onClickAddReply, me, false)); - $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); + $('.reply-menu').single('click', _.buffered(me.initReplyMenu, 100, me)); $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me, false)); if (me.showComments.length === 1) { @@ -951,8 +951,8 @@ define([ this.view.renderViewComments(this.showComments, this.indexCurrentComment); var me = this; _.defer(function () { - $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); - $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); + $('.comment-menu').single('click', _.buffered(me.initMenuComments, 100, me)); + $('.reply-menu').single('click', _.buffered(me.initReplyMenu, 100, me)); $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me, false)); }); } @@ -968,8 +968,8 @@ define([ this.view.renderViewComments(this.showComments, this.indexCurrentComment); var me = this; _.defer(function () { - $('.comment-menu').single('click', _.bind(me.initMenuComments, me)); - $('.reply-menu').single('click', _.bind(me.initReplyMenu, me)); + $('.comment-menu').single('click', _.buffered(me.initMenuComments, 100, me)); + $('.reply-menu').single('click', _.buffered(me.initReplyMenu, 100, me)); $('.comment-resolve').single('click', _.bind(me.onClickResolveComment, me, false)); }); } @@ -1014,7 +1014,19 @@ define([ } _.defer(function () { var $textarea = $('.reply-textarea')[0]; + var $btnAddReply = $('#add-new-reply'); $textarea.focus(); + $btnAddReply.addClass('disabled'); + $textarea.oninput = function () { + if ($textarea.value.length < 1) { + if (!$btnAddReply.hasClass('disabled')) + $btnAddReply.addClass('disabled'); + } else { + if ($btnAddReply.hasClass('disabled')) { + $btnAddReply.removeClass('disabled'); + } + } + }; }); $('#add-new-reply').single('click', _.bind(me.onDoneAddNewReply, me, comment.uid)); $('.cancel-reply').single('click', _.bind(me.onCancelAddNewReply, me)); @@ -1050,7 +1062,7 @@ define([ if ($viewComment.find('.block-reply').length > 0) { $viewComment.find('.block-reply').remove(); } - $viewComment.find('a#add-new-reply, a.cancel-reply').css('display', 'none'); + $viewComment.find('a#add-new-reply, a.cancel-reply').remove(); $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); this.disabledViewComments(false); }, @@ -1112,6 +1124,9 @@ define([ } } ]]); + $$(me.menuComments).on('close', function () { + me.disabledViewComments(false); + }); }, 100); } this.disabledViewComments(true); @@ -1143,7 +1158,7 @@ define([ me.onCommentMenuClick(item.event, idComment, ind); } }); - uiApp.actions([_menuItems, [ + me.menuReply = uiApp.actions([_menuItems, [ { text: me.textCancel, bold: true, @@ -1152,6 +1167,9 @@ define([ } } ]]); + $$(me.menuReply).on('close', function () { + me.disabledViewComments(false); + }); }, 100); this.disabledViewComments(true); } @@ -1434,8 +1452,8 @@ define([ initComments: function() { this.getView('Common.Views.Collaboration').renderComments((this.groupCollectionFilter.length !== 0) ? this.groupCollectionFilter : (this.collectionComments.length !== 0) ? this.collectionComments : false); - $('.comment-menu').single('click', _.bind(this.initMenuComments, this)); - $('.reply-menu').single('click', _.bind(this.initReplyMenu, this)); + $('.comment-menu').single('click', _.buffered(this.initMenuComments, 100, this)); + $('.reply-menu').single('click', _.buffered(this.initReplyMenu, 100, this)); $('.comment-resolve').single('click', _.bind(this.onClickResolveComment, this, false)); $('.comment-quote').single('click', _.bind(this.onSelectComment, this)); }, diff --git a/apps/common/mobile/lib/view/Collaboration.js b/apps/common/mobile/lib/view/Collaboration.js index b87108959..13a47f164 100644 --- a/apps/common/mobile/lib/view/Collaboration.js +++ b/apps/common/mobile/lib/view/Collaboration.js @@ -151,6 +151,15 @@ define([ //Comments + sliceQuote: function(text) { + var sliced = text.slice(0,100); + if (sliced.length < text.length) { + sliced += '...'; + return sliced; + } + return text; + }, + renderViewComments: function(comments, indCurComment) { var isAndroid = Framework7.prototype.device.android === true; var me = this; @@ -180,7 +189,7 @@ define([ } template += '
    '; - if (comment.quote) template += '

    ' + comment.quote + '

    '; + if (comment.quote) template += '

    ' + me.sliceQuote(comment.quote) + '

    '; template += '
    ' + comment.comment + '
    '; if (comment.replys.length > 0) { template += '
      '; @@ -250,7 +259,7 @@ define([ '<% } %>', '', '<% if(item.quote) {%>', - '

      <%= item.quote %>

      ', + '

      <%= quote %>

      ', '<% } %>', '

      <%= item.comment %>

      ', '<% if(replys > 0) {%>', @@ -280,7 +289,8 @@ define([ android: Framework7.prototype.device.android, item: comment, replys: comment.replys.length, - viewmode: me.viewmode + viewmode: me.viewmode, + quote: me.sliceQuote(comment.quote) })); }); $listComments.html(items.join('')); diff --git a/apps/common/mobile/resources/less/ios/_collaboration.less b/apps/common/mobile/resources/less/ios/_collaboration.less index b6812b334..d3a89c340 100644 --- a/apps/common/mobile/resources/less/ios/_collaboration.less +++ b/apps/common/mobile/resources/less/ios/_collaboration.less @@ -171,6 +171,7 @@ color: @themeColor; border-left: 1px solid @themeColor; padding-left: 10px; + padding-right: 16px; margin: 5px 0; font-size: 15px; } diff --git a/apps/common/mobile/resources/less/material/_collaboration.less b/apps/common/mobile/resources/less/material/_collaboration.less index 5a158aef5..d58a5a7ee 100644 --- a/apps/common/mobile/resources/less/material/_collaboration.less +++ b/apps/common/mobile/resources/less/material/_collaboration.less @@ -152,6 +152,7 @@ color: @themeColor; border-left: 1px solid @themeColor; padding-left: 10px; + padding-right: 16px; margin: 5px 0; font-size: 15px; } diff --git a/apps/documenteditor/mobile/app/view/add/AddOther.js b/apps/documenteditor/mobile/app/view/add/AddOther.js index 746f300de..84be9a873 100644 --- a/apps/documenteditor/mobile/app/view/add/AddOther.js +++ b/apps/documenteditor/mobile/app/view/add/AddOther.js @@ -173,7 +173,19 @@ define([ $commentInfo.html(insert); _.defer(function () { var $textarea = $('.comment-textarea')[0]; + var $btnAddComment = $('#done-comment'); + $btnAddComment.addClass('disabled'); $textarea.focus(); + $textarea.oninput = function () { + if ($textarea.value.length < 1) { + if (!$btnAddComment.hasClass('disabled')) + $btnAddComment.addClass('disabled'); + } else { + if ($btnAddComment.hasClass('disabled')) { + $btnAddComment.removeClass('disabled'); + } + } + }; }); }, 100); }, diff --git a/apps/documenteditor/mobile/resources/css/app-ios.css b/apps/documenteditor/mobile/resources/css/app-ios.css index 112fcf541..3fa73222a 100644 --- a/apps/documenteditor/mobile/resources/css/app-ios.css +++ b/apps/documenteditor/mobile/resources/css/app-ios.css @@ -6690,6 +6690,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after color: #446995; border-left: 1px solid #446995; padding-left: 10px; + padding-right: 16px; margin: 5px 0; font-size: 15px; } diff --git a/apps/documenteditor/mobile/resources/css/app-material.css b/apps/documenteditor/mobile/resources/css/app-material.css index bc06120d8..16b33a898 100644 --- a/apps/documenteditor/mobile/resources/css/app-material.css +++ b/apps/documenteditor/mobile/resources/css/app-material.css @@ -6244,6 +6244,7 @@ html.phone .document-menu .list-block .item-link { color: #446995; border-left: 1px solid #446995; padding-left: 10px; + padding-right: 16px; margin: 5px 0; font-size: 15px; } diff --git a/apps/presentationeditor/mobile/app/view/add/AddOther.js b/apps/presentationeditor/mobile/app/view/add/AddOther.js index 6473fba24..34b7a1df9 100644 --- a/apps/presentationeditor/mobile/app/view/add/AddOther.js +++ b/apps/presentationeditor/mobile/app/view/add/AddOther.js @@ -143,7 +143,19 @@ define([ $commentInfo.html(insert); _.defer(function () { var $textarea = $('.comment-textarea')[0]; + var $btnAddComment = $('#done-comment'); + $btnAddComment.addClass('disabled'); $textarea.focus(); + $textarea.oninput = function () { + if ($textarea.value.length < 1) { + if (!$btnAddComment.hasClass('disabled')) + $btnAddComment.addClass('disabled'); + } else { + if ($btnAddComment.hasClass('disabled')) { + $btnAddComment.removeClass('disabled'); + } + } + }; }); }, 100); }, diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index 6ae23fa66..44414d9c9 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -6690,6 +6690,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after color: #aa5252; border-left: 1px solid #aa5252; padding-left: 10px; + padding-right: 16px; margin: 5px 0; font-size: 15px; } diff --git a/apps/presentationeditor/mobile/resources/css/app-material.css b/apps/presentationeditor/mobile/resources/css/app-material.css index fa11f66a1..eb23f750c 100644 --- a/apps/presentationeditor/mobile/resources/css/app-material.css +++ b/apps/presentationeditor/mobile/resources/css/app-material.css @@ -6244,6 +6244,7 @@ html.phone .document-menu .list-block .item-link { color: #aa5252; border-left: 1px solid #aa5252; padding-left: 10px; + padding-right: 16px; margin: 5px 0; font-size: 15px; } diff --git a/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js b/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js index 07e3ddb73..fbc7d6967 100644 --- a/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js +++ b/apps/spreadsheeteditor/mobile/app/view/add/AddOther.js @@ -228,7 +228,19 @@ define([ $commentInfo.html(insert); _.defer(function () { var $textarea = $('.comment-textarea')[0]; + var $btnAddComment = $('#done-comment'); + $btnAddComment.addClass('disabled'); $textarea.focus(); + $textarea.oninput = function () { + if ($textarea.value.length < 1) { + if (!$btnAddComment.hasClass('disabled')) + $btnAddComment.addClass('disabled'); + } else { + if ($btnAddComment.hasClass('disabled')) { + $btnAddComment.removeClass('disabled'); + } + } + }; }); }, 100); }, diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index 44a7fb9f3..596615b11 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -6683,6 +6683,7 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after color: #40865c; border-left: 1px solid #40865c; padding-left: 10px; + padding-right: 16px; margin: 5px 0; font-size: 15px; } diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-material.css b/apps/spreadsheeteditor/mobile/resources/css/app-material.css index a2b95dc58..4291b0a43 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-material.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-material.css @@ -6254,6 +6254,7 @@ html.phone .document-menu .list-block .item-link { color: #40865c; border-left: 1px solid #40865c; padding-left: 10px; + padding-right: 16px; margin: 5px 0; font-size: 15px; } From 90128ec48cd4c5019875ce0357b16e0eaec593b0 Mon Sep 17 00:00:00 2001 From: Maxim Kadushkin Date: Tue, 21 Apr 2020 11:20:15 +0300 Subject: [PATCH 31/72] [desktop] fix bug 45170 --- apps/common/main/lib/controller/Desktop.js | 43 ++++++++++++---------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/apps/common/main/lib/controller/Desktop.js b/apps/common/main/lib/controller/Desktop.js index d5dafa7ea..1e5670f1f 100644 --- a/apps/common/main/lib/controller/Desktop.js +++ b/apps/common/main/lib/controller/Desktop.js @@ -209,32 +209,37 @@ define([ Common.NotificationCenter.trigger('app:config', {canUndock: true}); } - var header = webapp.getController('Viewport').getView('Common.Views.Header'); titlebuttons = {}; - if ( !!header.btnSave ) { - titlebuttons['save'] = {btn: header.btnSave}; + if ( !mode.isEdit ) { + native.execCommand('webapps:features', JSON.stringify( + {version: config.version, eventloading:true, titlebuttons:true, viewmode:true} )); + } else { + var header = webapp.getController('Viewport').getView('Common.Views.Header'); + if (!!header.btnSave) { + titlebuttons['save'] = {btn: header.btnSave}; - var iconname = /\s?([^\s]+)$/.exec(titlebuttons.save.btn.$icon.attr('class')); - !!iconname && iconname.length && (titlebuttons.save.icon = btnsave_icons[iconname]); - } + var iconname = /\s?([^\s]+)$/.exec(titlebuttons.save.btn.$icon.attr('class')); + !!iconname && iconname.length && (titlebuttons.save.icon = btnsave_icons[iconname]); + } - if ( !!header.btnPrint ) - titlebuttons['print'] = {btn: header.btnPrint}; + if (!!header.btnPrint) + titlebuttons['print'] = {btn: header.btnPrint}; - if ( !!header.btnUndo ) - titlebuttons['undo'] = {btn: header.btnUndo}; + if (!!header.btnUndo) + titlebuttons['undo'] = {btn: header.btnUndo}; - if ( !!header.btnRedo ) - titlebuttons['redo'] = {btn: header.btnRedo}; + if (!!header.btnRedo) + titlebuttons['redo'] = {btn: header.btnRedo}; - for (var i in titlebuttons) { - titlebuttons[i].btn.options.signals = ['disabled']; - titlebuttons[i].btn.on('disabled', _onTitleButtonDisabled.bind(this, i)); - } + for (var i in titlebuttons) { + titlebuttons[i].btn.options.signals = ['disabled']; + titlebuttons[i].btn.on('disabled', _onTitleButtonDisabled.bind(this, i)); + } - if (!!titlebuttons.save) { - titlebuttons.save.btn.options.signals.push('icon:changed'); - titlebuttons.save.btn.on('icon:changed', _onSaveIconChanged.bind(this)); + if (!!titlebuttons.save) { + titlebuttons.save.btn.options.signals.push('icon:changed'); + titlebuttons.save.btn.on('icon:changed', _onSaveIconChanged.bind(this)); + } } if ( !!config.callback_editorconfig ) { From a3b347c911e362c8187a9060aa2c789b3e63580e Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Thu, 30 Apr 2020 12:55:09 +0300 Subject: [PATCH 32/72] =?UTF-8?q?[mobile]=20=D0=A1hanged=20tabs=20template?= =?UTF-8?q?=20into=20insert?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mobile/resources/less/ios/_container.less | 17 ++ .../mobile/app/controller/add/AddContainer.js | 12 +- .../mobile/app/controller/add/AddOther.js | 6 +- .../mobile/app/template/AddOther.template | 102 +++++--- .../mobile/app/view/add/AddOther.js | 10 +- apps/documenteditor/mobile/locale/en.json | 1 + .../mobile/resources/css/app-ios.css | 48 ++++ .../mobile/resources/css/app-material.css | 46 +++- .../mobile/resources/less/app-material.less | 12 + .../mobile/resources/less/ios/_icons.less | 47 ++++ .../resources/less/material/_icons.less | 40 +++- .../mobile/app/controller/DocumentHolder.js | 4 +- .../mobile/app/controller/add/AddContainer.js | 45 +--- .../mobile/app/controller/add/AddLink.js | 22 +- .../mobile/app/controller/add/AddOther.js | 18 ++ .../mobile/app/controller/add/AddTable.js | 8 +- .../mobile/app/template/AddLink.template | 171 -------------- .../mobile/app/template/AddOther.template | 223 ++++++++++++++++++ .../mobile/app/template/AddTable.template | 12 - .../mobile/app/view/add/AddLink.js | 137 ----------- .../mobile/app/view/add/AddOther.js | 67 +++++- .../mobile/app/view/add/AddTable.js | 104 -------- apps/presentationeditor/mobile/locale/en.json | 15 ++ .../mobile/resources/css/app-ios.css | 53 +++++ .../mobile/resources/css/app-material.css | 49 +++- .../mobile/resources/less/app-material.less | 12 + .../mobile/resources/less/ios/_icons.less | 51 ++++ .../resources/less/material/_icons.less | 43 +++- .../mobile/app/controller/add/AddContainer.js | 9 +- .../mobile/app/template/AddOther.template | 30 +-- .../mobile/resources/css/app-ios.css | 58 +++++ .../mobile/resources/css/app-material.css | 53 ++++- .../mobile/resources/less/app-material.less | 12 + .../mobile/resources/less/ios/_icons.less | 56 +++++ .../resources/less/material/_icons.less | 46 +++- 35 files changed, 1028 insertions(+), 611 deletions(-) delete mode 100644 apps/presentationeditor/mobile/app/template/AddLink.template delete mode 100644 apps/presentationeditor/mobile/app/template/AddTable.template delete mode 100644 apps/presentationeditor/mobile/app/view/add/AddLink.js delete mode 100644 apps/presentationeditor/mobile/app/view/add/AddTable.js diff --git a/apps/common/mobile/resources/less/ios/_container.less b/apps/common/mobile/resources/less/ios/_container.less index de81509ef..3d1885edf 100644 --- a/apps/common/mobile/resources/less/ios/_container.less +++ b/apps/common/mobile/resources/less/ios/_container.less @@ -97,4 +97,21 @@ .popover-inner { height: 400px; } +} + +.container-add { + .categories { + > .buttons-row { + .button { + &.active { + i.icon { + background-color: transparent; + } + } + display: flex; + justify-content: center; + align-items: center; + } + } + } } \ No newline at end of file diff --git a/apps/documenteditor/mobile/app/controller/add/AddContainer.js b/apps/documenteditor/mobile/app/controller/add/AddContainer.js index 39c5c7608..6a5975fef 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddContainer.js +++ b/apps/documenteditor/mobile/app/controller/add/AddContainer.js @@ -75,6 +75,7 @@ define([ uiApp.closeModal(); me._showByStack(Common.SharedSettings.get('phone')); + uiApp.showTab('#add-other'); DE.getController('Toolbar').getView('Toolbar').hideSearch(); }, @@ -92,6 +93,7 @@ define([ addViews.push({ caption: me.textTable, id: 'add-table', + icon: 'icon-add-table', layout: DE.getController('AddTable') .getView('AddTable') .rootLayout() @@ -100,6 +102,7 @@ define([ addViews.push({ caption: me.textShape, id: 'add-shape', + icon: 'icon-add-shape', layout: DE.getController('AddShape') .getView('AddShape') .rootLayout() @@ -108,6 +111,7 @@ define([ addViews.push({ caption: me.textImage, id: 'add-image', + icon: 'icon-add-image', layout: DE.getController('AddImage') .getView('AddImage') .rootLayout() @@ -116,6 +120,7 @@ define([ addViews.push({ caption: me.textOther, id: 'add-other', + icon: 'icon-add-other', layout: DE.getController('AddOther') .getView('AddOther') .rootLayout() @@ -153,7 +158,7 @@ define([ $layoutNavbar .find('.toolbar-inner') .append( - '' + layout.caption + '' + '' ); }); $layoutNavbar @@ -168,7 +173,7 @@ define([ $layoutNavbar .find('.buttons-row') .append( - '' + layout.caption + '' + '' ); }); } @@ -247,7 +252,8 @@ define([ } me.rootView = uiApp.addView('.add-root-view', { - dynamicNavbar: true + dynamicNavbar: true, + domCache: true }); Common.NotificationCenter.trigger('addcontainer:show'); diff --git a/apps/documenteditor/mobile/app/controller/add/AddOther.js b/apps/documenteditor/mobile/app/controller/add/AddOther.js index fc09c8d7b..7ab12a1e3 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddOther.js +++ b/apps/documenteditor/mobile/app/controller/add/AddOther.js @@ -91,9 +91,6 @@ define([ }, initEvents: function () { - var me = this; - $('#add-other-pagebreak').single('click', _.bind(me.onPageBreak, me)); - $('#add-other-columnbreak').single('click', _.bind(me.onColumnBreak, me)); this.view.hideInsertComments = this.isHideInsertComment(); }, @@ -160,6 +157,9 @@ define([ me.initInsertFootnote(); } else if (pageId === "#addother-insert-comment") { me.initInsertComment(false); + } else if (pageId === "#addother-insert-break") { + $('#add-other-pagebreak').single('click', _.bind(me.onPageBreak, me)); + $('#add-other-columnbreak').single('click', _.bind(me.onColumnBreak, me)); } }, diff --git a/apps/documenteditor/mobile/app/template/AddOther.template b/apps/documenteditor/mobile/app/template/AddOther.template index c664a7dd4..b67fdcf51 100644 --- a/apps/documenteditor/mobile/app/template/AddOther.template +++ b/apps/documenteditor/mobile/app/template/AddOther.template @@ -14,42 +14,6 @@ -
    • - -
      -
      - -
      -
      -
      <%= scope.textPageBreak %>
      -
      -
      -
      -
    • -
    • - -
      -
      - -
      -
      -
      <%= scope.textColumnBreak %>
      -
      -
      -
      -
    • -
    • - -
      -
      - -
      -
      -
      <%= scope.textSectionBreak %>
      -
      -
      -
      -
    • @@ -74,6 +38,18 @@
    • +
    • + +
      +
      + +
      +
      +
      <%= scope.textBreak %>
      +
      +
      +
      +
    • @@ -354,4 +330,58 @@
      + + + +
      \ No newline at end of file diff --git a/apps/documenteditor/mobile/app/view/add/AddOther.js b/apps/documenteditor/mobile/app/view/add/AddOther.js index 84be9a873..ce0261455 100644 --- a/apps/documenteditor/mobile/app/view/add/AddOther.js +++ b/apps/documenteditor/mobile/app/view/add/AddOther.js @@ -66,10 +66,10 @@ define([ initEvents: function () { var me = this; - $('#add-other-section').single('click', _.bind(me.showSectionBreak, me)); $('#add-other-link').single('click', _.bind(me.showLink, me)); $('#add-other-pagenumber').single('click', _.bind(me.showPagePosition, me)); $('#add-other-footnote').single('click', _.bind(me.showPageFootnote, me)); + $('#add-other-break').single('click', _.bind(me.showPageBreak, me)); if (this.hideInsertComments) { $('#item-comment').hide(); } else { @@ -128,6 +128,11 @@ define([ } }, + showPageBreak: function() { + this.showPage('#addother-insert-break'); + $('#add-other-section').single('click', _.bind(this.showSectionBreak, this)); + }, + showSectionBreak: function () { this.showPage('#addother-sectionbreak'); }, @@ -271,7 +276,8 @@ define([ textLocation: 'Location', textComment: 'Comment', textAddComment: 'Add Comment', - textDone: 'Done' + textDone: 'Done', + textBreak: 'Break' } })(), DE.Views.AddOther || {})) diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index a44edb222..f80c28ea9 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -322,6 +322,7 @@ "DE.Views.AddOther.textComment": "Comment", "DE.Views.AddOther.textAddComment": "Add Comment", "DE.Views.AddOther.textDone": "Done", + "DE.Views.AddOther.textBreak": "Break", "DE.Views.EditChart.textAddCustomColor": "Add Custom Color", "DE.Views.EditChart.textAlign": "Align", "DE.Views.EditChart.textBack": "Back", diff --git a/apps/documenteditor/mobile/resources/css/app-ios.css b/apps/documenteditor/mobile/resources/css/app-ios.css index 3fa73222a..3c06ccd77 100644 --- a/apps/documenteditor/mobile/resources/css/app-ios.css +++ b/apps/documenteditor/mobile/resources/css/app-ios.css @@ -5975,6 +5975,14 @@ html.pixel-ratio-3 .settings.popover .list-block ul:last-child:after { .settings .popover-inner { height: 400px; } +.container-add .categories > .buttons-row .button { + display: flex; + justify-content: center; + align-items: center; +} +.container-add .categories > .buttons-row .button.active i.icon { + background-color: transparent; +} .dataview.page-content { background: #ffffff; } @@ -7535,6 +7543,46 @@ i.icon.icon-insert-comment { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-add-table { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4%205.59998H11.2V8.79998H4V5.59998Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M12.8%205.59998H20V8.79998H12.8V5.59998Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M4%2010.4H11.2V13.6H4V10.4Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M12.8%2010.4H20V13.6H12.8V10.4Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M4%2015.2H11.2V18.4H4V15.2Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M12.8%2015.2H20V18.4H12.8V15.2Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-add-shape { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cellipse%20cx%3D%2215.3333%22%20cy%3D%2214.4002%22%20rx%3D%225.66667%22%20ry%3D%225.60002%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%204.80005C4.44772%204.80005%204%205.24776%204%205.80005V15.8001C4%2016.3524%204.44771%2016.8001%205%2016.8001H9.32787C9.02431%2016.059%208.85714%2015.2488%208.85714%2014.4001C8.85714%2010.8655%2011.7566%208.00012%2015.3333%208.00012C15.8924%208.00012%2016.4349%208.07013%2016.9524%208.20175V5.80005C16.9524%205.24776%2016.5047%204.80005%2015.9524%204.80005H5Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-add-image { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5.79177%2016.6667L8.87529%2013.1667L11.1254%2015.5L14.2089%2012L18.2092%2016.6667H5.79177ZM19.4593%2018.526C19.8204%2018.2101%2020.001%2017.8455%2020.001%2017.4323V6.56771C20.001%206.15451%2019.8204%205.78993%2019.4593%205.47396C19.0981%205.15799%2018.6814%205%2018.2092%205H5.79177C5.31952%205%204.90283%205.15799%204.5417%205.47396C4.18057%205.78993%204%206.15451%204%206.56771V17.4323C4%2017.8455%204.18057%2018.2101%204.5417%2018.526C4.90283%2018.842%205.31952%2019%205.79177%2019H18.2092C18.6814%2019%2019.0981%2018.842%2019.4593%2018.526ZM8.79933%2011.2222C9.68304%2011.2222%2010.3994%2010.5258%2010.3994%209.66667C10.3994%208.80756%209.68304%208.11111%208.79933%208.11111C7.91562%208.11111%207.19923%208.80756%207.19923%209.66667C7.19923%2010.5258%207.91562%2011.2222%208.79933%2011.2222Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-add-other { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7.00049%2018C7.00049%2018.8284%206.32892%2019.5%205.50049%2019.5C4.67206%2019.5%204.00049%2018.8284%204.00049%2018C4.00049%2017.1716%204.67206%2016.5%205.50049%2016.5C6.32892%2016.5%207.00049%2017.1716%207.00049%2018ZM13.5005%2018C13.5005%2018.8284%2012.8289%2019.5%2012.0005%2019.5C11.1721%2019.5%2010.5005%2018.8284%2010.5005%2018C10.5005%2017.1716%2011.1721%2016.5%2012.0005%2016.5C12.8289%2016.5%2013.5005%2017.1716%2013.5005%2018ZM18.5005%2019.5C19.3289%2019.5%2020.0005%2018.8284%2020.0005%2018C20.0005%2017.1716%2019.3289%2016.5%2018.5005%2016.5C17.6721%2016.5%2017.0005%2017.1716%2017.0005%2018C17.0005%2018.8284%2017.6721%2019.5%2018.5005%2019.5Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-table { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4%205.59998H11.2V8.79998H4V5.59998Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M12.8%205.59998H20V8.79998H12.8V5.59998Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M4%2010.4H11.2V13.6H4V10.4Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M12.8%2010.4H20V13.6H12.8V10.4Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M4%2015.2H11.2V18.4H4V15.2Z%22%20fill%3D%22white%22%2F%3E%3Cpath%20d%3D%22M12.8%2015.2H20V18.4H12.8V15.2Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-shape { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cellipse%20cx%3D%2215.3333%22%20cy%3D%2214.4002%22%20rx%3D%225.66667%22%20ry%3D%225.60002%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%204.80005C4.44772%204.80005%204%205.24776%204%205.80005V15.8001C4%2016.3524%204.44771%2016.8001%205%2016.8001H9.32787C9.02431%2016.059%208.85714%2015.2488%208.85714%2014.4001C8.85714%2010.8655%2011.7566%208.00012%2015.3333%208.00012C15.8924%208.00012%2016.4349%208.07013%2016.9524%208.20175V5.80005C16.9524%205.24776%2016.5047%204.80005%2015.9524%204.80005H5Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-image { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5.79177%2016.6667L8.87529%2013.1667L11.1254%2015.5L14.2089%2012L18.2092%2016.6667H5.79177ZM19.4593%2018.526C19.8204%2018.2101%2020.001%2017.8455%2020.001%2017.4323V6.56771C20.001%206.15451%2019.8204%205.78993%2019.4593%205.47396C19.0981%205.15799%2018.6814%205%2018.2092%205H5.79177C5.31952%205%204.90283%205.15799%204.5417%205.47396C4.18057%205.78993%204%206.15451%204%206.56771V17.4323C4%2017.8455%204.18057%2018.2101%204.5417%2018.526C4.90283%2018.842%205.31952%2019%205.79177%2019H18.2092C18.6814%2019%2019.0981%2018.842%2019.4593%2018.526ZM8.79933%2011.2222C9.68304%2011.2222%2010.3994%2010.5258%2010.3994%209.66667C10.3994%208.80756%209.68304%208.11111%208.79933%208.11111C7.91562%208.11111%207.19923%208.80756%207.19923%209.66667C7.19923%2010.5258%207.91562%2011.2222%208.79933%2011.2222Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-other { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7.00049%2018C7.00049%2018.8284%206.32892%2019.5%205.50049%2019.5C4.67206%2019.5%204.00049%2018.8284%204.00049%2018C4.00049%2017.1716%204.67206%2016.5%205.50049%2016.5C6.32892%2016.5%207.00049%2017.1716%207.00049%2018ZM13.5005%2018C13.5005%2018.8284%2012.8289%2019.5%2012.0005%2019.5C11.1721%2019.5%2010.5005%2018.8284%2010.5005%2018C10.5005%2017.1716%2011.1721%2016.5%2012.0005%2016.5C12.8289%2016.5%2013.5005%2017.1716%2013.5005%2018ZM18.5005%2019.5C19.3289%2019.5%2020.0005%2018.8284%2020.0005%2018C20.0005%2017.1716%2019.3289%2016.5%2018.5005%2016.5C17.6721%2016.5%2017.0005%2017.1716%2017.0005%2018C17.0005%2018.8284%2017.6721%2019.5%2018.5005%2019.5Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} .label-switch input[type="checkbox"]:checked + .checkbox { background: #446995; } diff --git a/apps/documenteditor/mobile/resources/css/app-material.css b/apps/documenteditor/mobile/resources/css/app-material.css index 16b33a898..67d4bd728 100644 --- a/apps/documenteditor/mobile/resources/css/app-material.css +++ b/apps/documenteditor/mobile/resources/css/app-material.css @@ -6856,32 +6856,32 @@ i.icon.icon-table-remove-row { i.icon.icon-pagebreak { width: 22px; height: 22px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23446995%22%3E%3Cg%3E%3Cpath%20d%3D%22M8%2C14v1h1v-1H8z%20M6%2C14v1h1v-1H6z%20M18%2C21H3v-6H2v7h17v-7h-1V21z%20M4%2C14v1h1v-1H4z%20M14%2C14v1h1v-1H14z%20M10%2C14v1h1v-1H10z%20M8.2%2C1L2%2C7.6V14h1V9h6V2l0%2C0h9v12h1V1H8.2z%20M8%2C8H3.1L8%2C2.8V8z%20M12%2C14v1h1v-1H12z%20M16%2C14v1h1v-1H16z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23clip0)%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M6%208L10%207.99531V4L6%208ZM10%2010H6V11H4V7L9%202H18C18.5302%202%2018.9864%202.20344%2019.3918%202.61033C19.7661%202.98592%2020%203.46792%2020%204V11H18V4H12V8C12%209.10457%2011.1046%2010%2010%2010ZM6%2017V20.0282L18%2020V17H20V20C20%2020.5321%2019.7973%2021.0297%2019.3918%2021.4366C18.9864%2021.8122%2018.5302%2022%2018%2022H6C5.46979%2022%205.01364%2021.8122%204.60819%2021.4366C4.20273%2021.0297%204%2020.5266%204%2019.9945V17H6Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M3%2013H7V15H3V13Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M9%2013H15V15H9V13Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M17%2013H21V15H17V13Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0%22%3E%3Cpath%20d%3D%22M0.000488281%200H24.0005V24H0.000488281V0Z%22%20fill%3D%22transparent%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"); } i.icon.icon-sectionbreak { width: 22px; height: 22px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23446995%22%3E%3Cg%3E%3Cpath%20d%3D%22M20%2C14V2H3v12H2V1h19v13H20z%20M5%2C14v1H4v-1H5z%20M7%2C14v1H6v-1H7z%20M9%2C14v1H8v-1H9z%20M11%2C14v1h-1v-1H11z%20M13%2C14v1h-1v-1H13z%20M15%2C14v1h-1v-1H15z%20M17%2C14v1h-1v-1H17z%20M18%2C14h1v1h-1V14z%20M3%2C21h17v-6h1v7H2v-7h1V21z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23clip0)%22%3E%3Cpath%20d%3D%22M3%2011H7V13H3V11Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M9%2011H15V13H9V11Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M17%2011H21V13H17V11Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18%204H6V9H4V4C4%202.89543%204.89543%202%206%202H18C18.5302%202%2018.9864%202.20344%2019.3918%202.61033C19.7661%202.98592%2020%203.46792%2020%204V9H18V4ZM6%2015V20.0282L18%2020V15H20V20C20%2020.5321%2019.7973%2021.0297%2019.3918%2021.4366C18.9864%2021.8122%2018.5302%2022%2018%2022H6C5.46979%2022%205.01364%2021.8122%204.60819%2021.4366C4.20273%2021.0297%204%2020.5266%204%2019.9945V15H6Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0%22%3E%3Cpath%20d%3D%22M0%200H24V24H0V0Z%22%20fill%3D%22transparent%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"); } i.icon.icon-stringbreak { width: 22px; height: 22px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23446995%22%3E%3Cg%3E%3Cpath%20d%3D%22M18%2C12H5.1L9%2C15.9l-0.7%2C0.7l-4.5-4.5l-0.6-0.6l0.6-0.6l4.5-4.5L9%2C7.1L5.1%2C11H18V5h1v6v1H18z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M10%209.01309L11.4062%2010.4181L7.79688%2014.0241H17.9844V4.00208H20V15.9911H7.79688L11.4062%2019.5971L10%2021.0021L4%2015.0076L10%209.01309Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); } i.icon.icon-pagenumber { width: 22px; height: 22px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23446995%22%3E%3Cg%3E%3Cpath%20d%3D%22M8.2%2C1L2%2C7.6V22h17V1H8.2z%20M8%2C2.8V8H3.1L8%2C2.8z%20M18%2C21H3V9h6V2l0%2C0h9V21z%20M12%2C19h1v-4h-0.7c0%2C0.2-0.1-0.1-0.1%2C0c-0.1%2C0.1-0.2%2C0-0.3%2C0c-0.1%2C0.1-0.2%2C0.1-0.4%2C0.1c-0.1%2C0-0.3%2C0-0.4%2C0V16H12V19z%20M15.3%2C17.3C15%2C17.9%2C15.1%2C18.4%2C15%2C19h0.9c0-0.3%2C0-0.6%2C0.1-0.9c0.1-0.3%2C0.1-0.6%2C0.3-0.9c0.1-0.3%2C0.3-0.6%2C0.4-0.9c0.2-0.3%2C0.1-0.3%2C0.3-0.5V15h-3v1h1.9C15.6%2C16.4%2C15.5%2C16.7%2C15.3%2C17.3z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M18%204H6V20.0282L18%2020V4ZM4%204.5C4%203.11929%205.11929%202%206.5%202H18C18.5302%202%2018.9864%202.20344%2019.3918%202.61033C19.7661%202.98592%2020%203.46792%2020%204V20C20%2020.5321%2019.7973%2021.0297%2019.3918%2021.4366C18.9864%2021.8122%2018.5302%2022%2018%2022H6C5.46979%2022%205.01364%2021.8122%204.60819%2021.4366C4.20273%2021.0297%204%2020.5266%204%2019.9945V4.5ZM11.5698%2016H10.1836V12.2578H10.1574L9%2013.0686V11.8385L10.1836%2011H11.5698V16ZM14.1593%2016H12.7076L14.6333%2012.1365V12.1088H12.3709V11H16V12.1053L14.1593%2016Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); } i.icon.icon-link { width: 22px; height: 22px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23446995%22%3E%3Cg%3E%3Cpath%20d%3D%22M12.4%2C9.8c0%2C0-2.1-0.1-3.8%2C1.2c-2.8%2C2-3.3%2C4.3-3.3%2C4.3s1.6-1.7%2C3.5-2.5c1.7-0.7%2C3.7-0.4%2C3.7-0.4v1.9l4.8-3.3V11l-4.8-3.3V9.8z%20M11%2C1C5.5%2C1%2C1%2C5.5%2C1%2C11c0%2C5.5%2C4.5%2C10%2C10%2C10s10-4.5%2C10-10C21%2C5.5%2C16.5%2C1%2C11%2C1z%20M11%2C20c-5%2C0-9-4.1-9-9C2%2C6%2C6%2C2%2C11%2C2s9%2C4.1%2C9%2C9C20%2C16%2C16%2C20%2C11%2C20z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M17.0235%207C18.4006%207%2019.5743%207.49845%2020.5446%208.49534C21.5149%209.46108%2022%2010.6293%2022%2012C22%2013.3708%2021.5149%2014.5546%2020.5446%2015.5515C19.5743%2016.5172%2018.4006%2017.0001%2017.0235%2017.0001H13V15H17C17.8451%2015%2018.5884%2014.7882%2019.1831%2014.1963C19.8091%2013.5733%2020%2012.8411%2020%2012C20%2011.1589%2019.8091%2010.4424%2019.1831%209.85049C18.5884%209.22743%2017.8685%209%2017.0235%209H13V7H17.0235ZM8.00939%2012.9814V11.0187H15.9906V12.9814H8.00939ZM4.76995%209.85049C4.17527%2010.4424%204%2011.1589%204%2012C4%2012.8411%204.17527%2013.5733%204.76995%2014.1963C5.39593%2014.7882%206.15493%2015%207%2015H11.0141V17.0001H6.97653C5.59937%2017.0001%204.42567%2016.5172%203.4554%2015.5515C2.48513%2014.5546%202%2013.3708%202%2012C2%2010.6293%202.48513%209.46108%203.4554%208.49534C4.42567%207.49845%205.59937%207%206.97653%207H11.0141V9H6.97653C6.13146%209%205.39593%209.22743%204.76995%209.85049Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); } i.icon.icon-image-library { - width: 22px; - height: 22px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bisolation%3Aisolate%3B%7D.cls-2%7Bopacity%3A0.2%3B%7D.cls-3%7Bfill%3A%23fff%3B%7D.cls-10%2C.cls-11%2C.cls-4%2C.cls-6%2C.cls-7%2C.cls-8%2C.cls-9%7Bmix-blend-mode%3Amultiply%3B%7D.cls-4%7Bfill%3Aurl(%23grad_8)%3B%7D.cls-5%7Bfill%3Aurl(%23grad_10)%3B%7D.cls-6%7Bfill%3Aurl(%23grad_12)%3B%7D.cls-7%7Bfill%3Aurl(%23grad_14)%3B%7D.cls-8%7Bfill%3Aurl(%23grad_79)%3B%7D.cls-9%7Bfill%3Aurl(%23grad_77)%3B%7D.cls-10%7Bfill%3Aurl(%23grad_75)%3B%7D.cls-11%7Bfill%3Aurl(%23grad_81)%3B%7D%3C%2Fstyle%3E%3ClinearGradient%20id%3D%22grad_8%22%20x1%3D%2211.08%22%20y1%3D%2210.26%22%20x2%3D%2211.08%22%20y2%3D%221.26%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f3e916%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f89d34%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_10%22%20x1%3D%2211.08%22%20y1%3D%2220.44%22%20x2%3D%2211.08%22%20y2%3D%2211.88%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235eb6e8%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23958cc3%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_12%22%20x1%3D%221.46%22%20y1%3D%2211.05%22%20x2%3D%2210.46%22%20y2%3D%2211.05%22%20gradientTransform%3D%22translate(17%205.09)%20rotate(90)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23cc8dba%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f86867%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_14%22%20x1%3D%2211.73%22%20y1%3D%2211.05%22%20x2%3D%2220.73%22%20y2%3D%2211.05%22%20gradientTransform%3D%22translate(27.28%20-5.18)%20rotate(90)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%236ac07f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c5da3d%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_79%22%20x1%3D%2211.74%22%20y1%3D%2210.42%22%20x2%3D%2217.52%22%20y2%3D%224.63%22%20gradientTransform%3D%22translate(30.29%202.51)%20rotate(135)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23c5da3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f3e916%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_77%22%20x1%3D%224.7%22%20y1%3D%2217.49%22%20x2%3D%2210.48%22%20y2%3D%2211.71%22%20gradientTransform%3D%22translate(23.24%2019.65)%20rotate(135)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%239595c3%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23cc8dba%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_75%22%20x1%3D%224.69%22%20y1%3D%224.64%22%20x2%3D%2210.47%22%20y2%3D%2210.42%22%20gradientTransform%3D%22translate(7.54%20-3.15)%20rotate(45)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f86867%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f89d34%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_81%22%20x1%3D%2211.77%22%20y1%3D%2211.78%22%20x2%3D%2217.55%22%20y2%3D%2217.56%22%20gradientTransform%3D%22translate(14.63%20-6.05)%20rotate(45)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235ec0e8%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%236ac07f%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Ctitle%3Eicons_for_svg%3C%2Ftitle%3E%3Cg%20class%3D%22cls-1%22%3E%3Cg%20id%3D%22%D0%A1%D0%BB%D0%BE%D0%B9_1%22%20data-name%3D%22%D0%A1%D0%BB%D0%BE%D0%B9%201%22%3E%3Crect%20class%3D%22cls-2%22%20x%3D%220.09%22%20y%3D%220.01%22%20width%3D%2222%22%20height%3D%2222%22%20rx%3D%224%22%20ry%3D%224%22%2F%3E%3Crect%20class%3D%22cls-3%22%20x%3D%220.57%22%20y%3D%220.49%22%20width%3D%2221.04%22%20height%3D%2221.04%22%20rx%3D%223.6%22%20ry%3D%223.6%22%2F%3E%3Crect%20class%3D%22cls-4%22%20x%3D%228.33%22%20y%3D%221.26%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%2F%3E%3Crect%20class%3D%22cls-5%22%20x%3D%228.33%22%20y%3D%2211.76%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%2F%3E%3Crect%20class%3D%22cls-6%22%20x%3D%223.21%22%20y%3D%226.55%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(-5.09%2017)%20rotate(-90)%22%2F%3E%3Crect%20class%3D%22cls-7%22%20x%3D%2213.48%22%20y%3D%226.55%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(5.18%2027.28)%20rotate(-90)%22%2F%3E%3Crect%20class%3D%22cls-8%22%20x%3D%2211.87%22%20y%3D%223.03%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(19.64%2023.19)%20rotate(-135)%22%2F%3E%3Crect%20class%3D%22cls-9%22%20x%3D%224.8%22%20y%3D%2210.14%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(2.54%2030.33)%20rotate(-135)%22%2F%3E%3Crect%20class%3D%22cls-10%22%20x%3D%224.83%22%20y%3D%223.03%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(-3.1%207.56)%20rotate(-45)%22%2F%3E%3Crect%20class%3D%22cls-11%22%20x%3D%2211.87%22%20y%3D%2210.14%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(-6.07%2014.63)%20rotate(-45)%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"); + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23clip0)%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20%205.5H4C3.72386%205.5%203.5%205.72386%203.5%206V15.5822L8.03349%2011.6898C8.47476%2011.3109%209.11904%2011.2865%209.58778%2011.6308L13.5726%2014.5579L15.9619%2012.6774C16.4488%2012.2942%2017.1428%2012.3255%2017.5933%2012.7509L20.5%2015.4962V6C20.5%205.72386%2020.2761%205.5%2020%205.5ZM20.5%2017.5294L20.485%2017.5453L16.7201%2013.9895L14.3509%2015.8542C13.9095%2016.2016%2013.2905%2016.2119%2012.8378%2015.8793L8.85988%2012.9573L3.5%2017.5592V18C3.5%2018.2761%203.72386%2018.5%204%2018.5H20C20.2761%2018.5%2020.5%2018.2761%2020.5%2018V17.5294ZM4%204C2.89543%204%202%204.89543%202%206V18C2%2019.1046%202.89543%2020%204%2020H20C21.1046%2020%2022%2019.1046%2022%2018V6C22%204.89543%2021.1046%204%2020%204H4ZM16.5%209.5C16.5%2011.1569%2015.1569%2012.5%2013.5%2012.5C11.8431%2012.5%2010.5%2011.1569%2010.5%209.5C10.5%207.84315%2011.8431%206.5%2013.5%206.5C15.1569%206.5%2016.5%207.84315%2016.5%209.5ZM13.5%2011C14.3284%2011%2015%2010.3284%2015%209.5C15%208.67157%2014.3284%208%2013.5%208C12.6716%208%2012%208.67157%2012%209.5C12%2010.3284%2012.6716%2011%2013.5%2011Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0%22%3E%3Cpath%20d%3D%22M0%200H24V24H0V0Z%22%20fill%3D%22transparent%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"); } i.icon.icon-table-borders-all { width: 28px; @@ -7059,7 +7059,7 @@ i.icon.icon-app-settings { i.icon.icon-footnote { width: 24px; height: 24px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M22%208.11133H20.9177V5.15361L20.9282%204.66765L20.9457%204.13624C20.7659%204.31571%2020.641%204.43341%2020.5709%204.48935L19.9825%204.96132L19.4606%204.31105L21.1103%203H22V8.11133Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M10.3363%2018.8514L8.98161%2015.3968H4.61996L3.28021%2018.8514H2L6.3021%207.94526H7.36646L11.6462%2018.8514H10.3363ZM8.58713%2014.2601L7.3218%2010.8947C7.15806%2010.4687%206.98935%209.94621%206.81567%209.32711C6.70651%209.80258%206.5502%2010.3251%206.34676%2010.8947L5.06655%2014.2601H8.58713Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M16.1425%2010.5752C17.2143%2010.5752%2018.0454%2010.9417%2018.6359%2011.6748C19.2313%2012.4028%2019.5291%2013.4355%2019.5291%2014.7728C19.5291%2016.11%2019.2288%2017.1501%2018.6284%2017.893C18.033%2018.631%2017.2043%2019%2016.1425%2019C15.6115%2019%2015.1252%2018.9034%2014.6836%2018.7103C14.2469%2018.5121%2013.8798%2018.21%2013.582%2017.8039H13.4927L13.2322%2018.8514H12.3465V7.29149H13.582V10.0997C13.582%2010.7288%2013.5622%2011.2934%2013.5225%2011.7936H13.582C14.1576%2010.9814%2015.0111%2010.5752%2016.1425%2010.5752ZM15.9638%2011.6079C15.1203%2011.6079%2014.5124%2011.8506%2014.1403%2012.336C13.7681%2012.8164%2013.582%2013.6286%2013.582%2014.7728C13.582%2015.9169%2013.7731%2016.7366%2014.1551%2017.2318C14.5372%2017.7222%2015.15%2017.9673%2015.9936%2017.9673C16.7528%2017.9673%2017.3185%2017.6925%2017.6906%2017.1427C18.0628%2016.588%2018.2488%2015.793%2018.2488%2014.7579C18.2488%2013.698%2018.0628%2012.908%2017.6906%2012.388C17.3185%2011.8679%2016.7429%2011.6079%2015.9638%2011.6079Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M12.1173%2018.7983H10.109L9.36904%2016.6471H4.74829L4.00837%2018.7983H2L5.95633%207.58823H8.161L12.1173%2018.7983ZM8.87072%2014.916L7.05867%209.57143L5.24661%2014.916H8.87072Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M14.7577%2016.3613C14.9288%2016.6639%2015.1906%2016.9216%2015.5429%2017.1345C15.9053%2017.3361%2016.2677%2017.437%2016.6301%2017.437C17.2543%2017.437%2017.7526%2017.1905%2018.1251%2016.6975C18.5076%2016.1933%2018.6989%2015.5434%2018.6989%2014.7479C18.6989%2013.9524%2018.5076%2013.3025%2018.1251%2012.7983C17.7526%2012.2941%2017.2543%2012.042%2016.6301%2012.042C16.2677%2012.042%2015.9103%2012.1485%2015.558%2012.3613C15.2057%2012.5742%2014.9389%2012.8375%2014.7577%2013.1513V16.3613ZM14.7577%2018.7983H13.1721V7.58823H14.7577V11.8067C15.3516%2010.9216%2016.1318%2010.479%2017.0982%2010.479C18.0445%2010.479%2018.8197%2010.8711%2019.4237%2011.6555C20.0277%2012.4286%2020.3298%2013.4594%2020.3298%2014.7479C20.3298%2016.0588%2020.0277%2017.0952%2019.4237%2017.8571C18.8197%2018.619%2018.0445%2019%2017.0982%2019C16.1419%2019%2015.3617%2018.563%2014.7577%2017.6891V18.7983Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M24%2011.7227H22.7769V6.7479L21.7651%207.90756L21.0705%207.08403L22.943%205H24V11.7227Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); } i.icon.icon-cut { width: 24px; @@ -7114,7 +7114,7 @@ i.icon.icon-done-comment { i.icon.icon-insert-comment { width: 24px; height: 24px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V15.0346C2%2016.3222%203.18908%2017.013%204.5%2017.013H5.5C5.82773%2017.013%206%2017.1917%206%2017.5136V21L12%2017H20C21.1046%2017%2022%2016.1046%2022%2015V8H20.5V14.5C20.5%2015.0523%2020.0523%2015.5%2019.5%2015.5H11.5L7.5%2018V15.5H4.5C3.94772%2015.5%203.5%2015.0523%203.5%2014.5V5.5C3.5%204.94772%203.94772%204.5%204.5%204.5H19.5C20.0523%204.5%2020.5%204.94772%2020.5%205.5V8H22V5.50295C22%204.2153%2020.8109%203%2019.5%203Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M6%207.5H18V9H6L6%207.5Z%22%20fill%3D%22%23446995%22%2F%3E%3Cpath%20d%3D%22M6%2011H18V12.5H6V11Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); } i.icon.icon-done-comment-white { width: 24px; @@ -7181,6 +7181,26 @@ i.icon.icon-done-comment-white { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M14.9912%206C14.9912%208.18203%2014.4464%209.76912%2013.7789%2010.7492C13.101%2011.7447%2012.4042%2012%2011.9912%2012C11.5782%2012%2010.8814%2011.7447%2010.2035%2010.7492C9.53601%209.76912%208.99121%208.18203%208.99121%206C8.99121%204.23017%2010.4571%203%2011.9912%203C13.5254%203%2014.9912%204.23017%2014.9912%206ZM13.4917%2013.6397C13.0059%2013.8771%2012.4989%2014%2011.9912%2014C11.4861%2014%2010.9817%2013.8784%2010.4983%2013.6434C8.53188%2014.3681%206.94518%2015.0737%205.78927%2015.7768C4.10512%2016.8011%204%2017.4079%204%2017.5C4%2017.7664%204.1014%2018.3077%205.27104%2018.8939C6.50029%2019.5099%208.64545%2019.9999%2012%2020C15.3546%2020%2017.4997%2019.5099%2018.7289%2018.8939C19.8986%2018.3078%2020%2017.7664%2020%2017.5C20%2017.4079%2019.8949%2016.8011%2018.2107%2015.7768C17.0529%2015.0726%2015.4627%2014.3657%2013.4917%2013.6397ZM15.2272%2012.1594C16.2765%2010.7825%2016.9912%208.67814%2016.9912%206C16.9912%203%2014.5%201%2011.9912%201C9.48242%201%206.99121%203%206.99121%206C6.99121%208.68159%207.70777%2010.7879%208.75931%2012.1647C4.60309%2013.7964%202%2015.4951%202%2017.5C2%2019.9852%205%2021.9999%2012%2022C19%2022%2022%2019.9852%2022%2017.5C22%2015.4929%2019.3913%2013.7927%2015.2272%2012.1594Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); } +.navbar i.icon.icon-add-table { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M2%204H11V8H2V4Z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M13%204H22V8H13V4Z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M2%2010H11V14H2V10Z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M13%2010H22V14H13V10Z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M2%2016H11V20H2V16Z%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20d%3D%22M13%2016H22V20H13V16Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} +.navbar i.icon.icon-add-shape { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2215%22%20r%3D%227%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%203C2.44772%203%202%203.44772%202%204V17C2%2017.5523%202.44772%2018%203%2018H8.58152C8.20651%2017.0736%208%2016.0609%208%2015C8%2010.5817%2011.5817%207%2016%207C16.6906%207%2017.3608%207.08751%2018%207.25204V4C18%203.44772%2017.5523%203%2017%203H3Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} +.navbar i.icon.icon-add-image { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23clip0)%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.23958%2018L8.09375%2013.5L10.9062%2016.5L14.7604%2012L19.7604%2018H4.23958ZM21.3229%2020.3906C21.7743%2019.9844%2022%2019.5156%2022%2018.9844V5.01562C22%204.48438%2021.7743%204.01562%2021.3229%203.60938C20.8715%203.20313%2020.3507%203%2019.7604%203H4.23958C3.64931%203%203.12847%203.20313%202.67708%203.60938C2.22569%204.01562%202%204.48438%202%205.01562V18.9844C2%2019.5156%202.22569%2019.9844%202.67708%2020.3906C3.12847%2020.7969%203.64931%2021%204.23958%2021H19.7604C20.3507%2021%2020.8715%2020.7969%2021.3229%2020.3906ZM8%2011C9.10457%2011%2010%2010.1046%2010%209C10%207.89543%209.10457%207%208%207C6.89543%207%206%207.89543%206%209C6%2010.1046%206.89543%2011%208%2011Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0%22%3E%3Cpath%20d%3D%22M0.000477791%200H24.0005V24H0.000477791V0Z%22%20fill%3D%22transparent%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"); +} +.navbar i.icon.icon-add-other { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7%2012C7%2013.6569%205.65685%2015%204%2015C2.34315%2015%201%2013.6569%201%2012C1%2010.3431%202.34315%209%204%209C5.65685%209%207%2010.3431%207%2012ZM15%2012C15%2013.6569%2013.6569%2015%2012%2015C10.3431%2015%209%2013.6569%209%2012C9%2010.3431%2010.3431%209%2012%209C13.6569%209%2015%2010.3431%2015%2012ZM20%2015C21.6569%2015%2023%2013.6569%2023%2012C23%2010.3431%2021.6569%209%2020%209C18.3431%209%2017%2010.3431%2017%2012C17%2013.6569%2018.3431%2015%2020%2015Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} .sailfish i.icon.icon-text-align-center { background-color: transparent; -webkit-mask-image: none; @@ -7454,6 +7474,12 @@ textarea { #add-shape .page { background-color: #fff; } +.container-add .categories i.icon { + opacity: 0.5; +} +.container-add .categories .active i.icon { + opacity: 1; +} .table-styles .row, .table-styles .row li { margin-bottom: 12px; diff --git a/apps/documenteditor/mobile/resources/less/app-material.less b/apps/documenteditor/mobile/resources/less/app-material.less index 9024b51b5..351b81974 100644 --- a/apps/documenteditor/mobile/resources/less/app-material.less +++ b/apps/documenteditor/mobile/resources/less/app-material.less @@ -113,6 +113,18 @@ input, textarea { background-color: #fff; } } +.container-add { + .categories { + i.icon { + opacity: 0.5; + } + .active { + i.icon { + opacity: 1; + } + } + } +} // Table styles diff --git a/apps/documenteditor/mobile/resources/less/ios/_icons.less b/apps/documenteditor/mobile/resources/less/ios/_icons.less index 3dbeb8ea5..9e331152b 100644 --- a/apps/documenteditor/mobile/resources/less/ios/_icons.less +++ b/apps/documenteditor/mobile/resources/less/ios/_icons.less @@ -503,4 +503,51 @@ i.icon { height: 24px; .encoded-svg-background(''); } + + //Insert + &.icon-add-table { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-shape { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-image { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-other { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } +} + +.active { + i.icon { + &.icon-add-table { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-shape { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-image { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-other { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + } } \ No newline at end of file diff --git a/apps/documenteditor/mobile/resources/less/material/_icons.less b/apps/documenteditor/mobile/resources/less/material/_icons.less index 252119b10..4db39aeac 100644 --- a/apps/documenteditor/mobile/resources/less/material/_icons.less +++ b/apps/documenteditor/mobile/resources/less/material/_icons.less @@ -173,32 +173,32 @@ i.icon { &.icon-pagebreak { width: 22px; height: 22px; - .encoded-svg-background(''); + .encoded-svg-background(''); } &.icon-sectionbreak { width: 22px; height: 22px; - .encoded-svg-background(''); + .encoded-svg-background(''); } &.icon-stringbreak { width: 22px; height: 22px; - .encoded-svg-background(''); + .encoded-svg-background(''); } &.icon-pagenumber { width: 22px; height: 22px; - .encoded-svg-background(''); + .encoded-svg-background(''); } &.icon-link { width: 22px; height: 22px; - .encoded-svg-background(''); + .encoded-svg-background(''); } &.icon-image-library { - width: 22px; - height: 22px; - .encoded-svg-background('icons_for_svg'); + width: 24px; + height: 24px; + .encoded-svg-background(''); } // Presets of table borders @@ -387,7 +387,7 @@ i.icon { &.icon-footnote { width: 24px; height: 24px; - .encoded-svg-background(''); + .encoded-svg-background(''); } &.icon-cut { width: 24px; @@ -442,7 +442,7 @@ i.icon { &.icon-insert-comment { width: 24px; height: 24px; - .encoded-svg-background(''); + .encoded-svg-background(''); } &.icon-done-comment-white { width: 24px; @@ -515,5 +515,25 @@ i.icon { height: 24px; .encoded-svg-background(''); } + &.icon-add-table { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-shape { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-image { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-other { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } } \ No newline at end of file diff --git a/apps/presentationeditor/mobile/app/controller/DocumentHolder.js b/apps/presentationeditor/mobile/app/controller/DocumentHolder.js index e46b5d68b..742015d6e 100644 --- a/apps/presentationeditor/mobile/app/controller/DocumentHolder.js +++ b/apps/presentationeditor/mobile/app/controller/DocumentHolder.js @@ -156,8 +156,8 @@ define([ _view.hideMenu(); PE.getController('AddContainer').showModal(); - uiApp.showTab('#add-link'); - // PE.getController('AddLink').getView('AddLink').showLink(); + uiApp.showTab('#add-other'); + PE.getController('AddOther').getView('AddOther').showPageLink(); } else if ('openlink' == eventName) { _.some(_stack, function (item) { if (item.get_ObjectType() == Asc.c_oAscTypeSelectElement.Hyperlink) { diff --git a/apps/presentationeditor/mobile/app/controller/add/AddContainer.js b/apps/presentationeditor/mobile/app/controller/add/AddContainer.js index 95fe5aea1..c7ca039ae 100644 --- a/apps/presentationeditor/mobile/app/controller/add/AddContainer.js +++ b/apps/presentationeditor/mobile/app/controller/add/AddContainer.js @@ -47,8 +47,6 @@ define([ PE.Controllers.AddContainer = Backbone.Controller.extend(_.extend((function() { // private - var _canAddHyperlink = false, - _paragraphLocked = false; return { models: [], @@ -61,8 +59,6 @@ define([ setApi: function(api) { this.api = api; - this.api.asc_registerCallback('asc_onCanAddHyperlink', _.bind(this.onApiCanAddHyperlink, this)); - this.api.asc_registerCallback('asc_onFocusObject', _.bind(this.onApiFocusObject, this)); }, onLaunch: function() { @@ -96,22 +92,16 @@ define([ addViews.push({ caption: me.textSlide, id: 'add-slide', + icon: 'icon-add-slide', layout: PE.getController('AddSlide') .getView('AddSlide') .rootLayout() }); - addViews.push({ - caption: me.textTable, - id: 'add-table', - layout: PE.getController('AddTable') - .getView('AddTable') - .rootLayout() - }); - addViews.push({ caption: me.textShape, id: 'add-shape', + icon: 'icon-add-shape', layout: PE.getController('AddShape') .getView('AddShape') .rootLayout() @@ -120,23 +110,16 @@ define([ addViews.push({ caption: me.textImage, id: 'add-image', + icon: 'icon-add-image', layout: PE.getController('AddImage') .getView('AddImage') .rootLayout() }); - if (_canAddHyperlink && !_paragraphLocked) - addViews.push({ - caption: me.textLink, - id: 'add-link', - layout: PE.getController('AddLink') - .getView('AddLink') - .rootLayout() - }); - addViews.push({ caption: me.textOther, id: 'add-other', + icon: 'icon-add-other', layout: PE.getController('AddOther') .getView('AddOther') .rootLayout() @@ -174,7 +157,7 @@ define([ $layoutNavbar .find('.toolbar-inner') .append( - '' + layout.caption + '' + '' ); }); $layoutNavbar @@ -189,7 +172,7 @@ define([ $layoutNavbar .find('.buttons-row') .append( - '' + layout.caption + '' + '' ); }); } @@ -272,25 +255,13 @@ define([ } me.rootView = uiApp.addView('.add-root-view', { - dynamicNavbar: true + dynamicNavbar: true, + domCache: true }); Common.NotificationCenter.trigger('addcontainer:show'); }, - onApiCanAddHyperlink: function(value) { - _canAddHyperlink = value; - }, - - onApiFocusObject: function (objects) { - _paragraphLocked = false; - _.each(objects, function(object) { - if (Asc.c_oAscTypeSelectElement.Paragraph == object.get_ObjectType()) { - _paragraphLocked = object.get_ObjectValue().get_Locked(); - } - }); - }, - textSlide: 'Slide', textTable: 'Table', textShape: 'Shape', diff --git a/apps/presentationeditor/mobile/app/controller/add/AddLink.js b/apps/presentationeditor/mobile/app/controller/add/AddLink.js index 652839f77..c5c9855c2 100644 --- a/apps/presentationeditor/mobile/app/controller/add/AddLink.js +++ b/apps/presentationeditor/mobile/app/controller/add/AddLink.js @@ -41,7 +41,7 @@ define([ 'core', - 'presentationeditor/mobile/app/view/add/AddLink' + 'presentationeditor/mobile/app/view/add/AddOther' ], function (core) { 'use strict'; @@ -63,16 +63,15 @@ define([ models: [], collections: [], views: [ - 'AddLink' + 'AddOther' ], initialize: function () { - Common.NotificationCenter.on('addcontainer:show', _.bind(this.initEvents, this)); - Common.NotificationCenter.on('addcategory:show', _.bind(this.categoryShow, this)); this.addListeners({ - 'AddLink': { - 'page:show' : this.onPageShow + 'AddOther': { + 'category:show': this.categoryShow, + 'page:show' : this.onPageShow } }); @@ -91,19 +90,13 @@ define([ me.api = api; }, - onLaunch: function () { - this.createView('AddLink').render(); - }, - initEvents: function () { var me = this; $('#add-link-insert').single('click', _.buffered(me.onInsertLink, 100, me)); }, - categoryShow: function (e) { - var $target = $(e.currentTarget); - - if ($target && $target.prop('id') === 'add-link') { + categoryShow: function (view, pageId) { + if (pageId === '#addother-insert-link') { this._linkType = c_oHyperlinkType.WebLink; this._slideLink = this._slideNum = 0; var text = this.api.can_AddHyperlink(); @@ -112,6 +105,7 @@ define([ $('#add-link-display').toggleClass('disabled', text === null); } + this.initEvents(); this.initSettings(); } }, diff --git a/apps/presentationeditor/mobile/app/controller/add/AddOther.js b/apps/presentationeditor/mobile/app/controller/add/AddOther.js index 7d5bddd16..1699b6d60 100644 --- a/apps/presentationeditor/mobile/app/controller/add/AddOther.js +++ b/apps/presentationeditor/mobile/app/controller/add/AddOther.js @@ -49,6 +49,8 @@ define([ 'use strict'; PE.Controllers.AddOther = Backbone.Controller.extend(_.extend((function() { + var _canAddHyperlink = false, + _paragraphLocked = false; return { models: [], @@ -70,6 +72,8 @@ define([ setApi: function (api) { var me = this; me.api = api; + me.api.asc_registerCallback('asc_onCanAddHyperlink', _.bind(me.onApiCanAddHyperlink, me)); + me.api.asc_registerCallback('asc_onFocusObject', _.bind(me.onApiFocusObject, me)); }, setMode: function (mode) { @@ -84,6 +88,20 @@ define([ initEvents: function () { var me = this; this.view.hideInsertComments = this.isHideInsertComment(); + this.view.hideInsertLink = !(_canAddHyperlink && !_paragraphLocked); + }, + + onApiCanAddHyperlink: function(value) { + _canAddHyperlink = value; + }, + + onApiFocusObject: function (objects) { + _paragraphLocked = false; + _.each(objects, function(object) { + if (Asc.c_oAscTypeSelectElement.Paragraph == object.get_ObjectType()) { + _paragraphLocked = object.get_ObjectValue().get_Locked(); + } + }); }, isHideInsertComment: function() { diff --git a/apps/presentationeditor/mobile/app/controller/add/AddTable.js b/apps/presentationeditor/mobile/app/controller/add/AddTable.js index 73c5e38c2..5f4e3d8ae 100644 --- a/apps/presentationeditor/mobile/app/controller/add/AddTable.js +++ b/apps/presentationeditor/mobile/app/controller/add/AddTable.js @@ -43,7 +43,6 @@ define([ 'core', - 'presentationeditor/mobile/app/view/add/AddTable' ], function (core) { 'use strict'; @@ -56,7 +55,6 @@ define([ ], initialize: function () { - Common.NotificationCenter.on('addcontainer:show', _.bind(this.initEvents, this)); this._styles = []; this._initDefaultStyles = false; }, @@ -66,13 +64,9 @@ define([ me.api = api; }, - onLaunch: function () { - this.createView('AddTable').render(); - }, - initEvents: function () { var me = this; - $('#add-table li').single('click', _.buffered(me.onStyleClick, 100, me)); + $('.page[data-page="addother-insert-table"] li').single('click', _.buffered(me.onStyleClick, 100, me)); }, onStyleClick: function (e) { diff --git a/apps/presentationeditor/mobile/app/template/AddLink.template b/apps/presentationeditor/mobile/app/template/AddLink.template deleted file mode 100644 index c9ada4f6a..000000000 --- a/apps/presentationeditor/mobile/app/template/AddLink.template +++ /dev/null @@ -1,171 +0,0 @@ - - - - - - - - \ No newline at end of file diff --git a/apps/presentationeditor/mobile/app/template/AddOther.template b/apps/presentationeditor/mobile/app/template/AddOther.template index 6b894f93e..0b85b96ab 100644 --- a/apps/presentationeditor/mobile/app/template/AddOther.template +++ b/apps/presentationeditor/mobile/app/template/AddOther.template @@ -2,6 +2,18 @@ @@ -34,4 +58,203 @@ + + + +
      + +
      +
      +
        + +
      +
      +
      +
      + + + + + + + + + \ No newline at end of file diff --git a/apps/presentationeditor/mobile/app/template/AddTable.template b/apps/presentationeditor/mobile/app/template/AddTable.template deleted file mode 100644 index 69398316d..000000000 --- a/apps/presentationeditor/mobile/app/template/AddTable.template +++ /dev/null @@ -1,12 +0,0 @@ - -
      -
      -
        - <% _.each(styles, function(style) { %> -
      • - -
      • - <% }); %> -
      -
      -
      \ No newline at end of file diff --git a/apps/presentationeditor/mobile/app/view/add/AddLink.js b/apps/presentationeditor/mobile/app/view/add/AddLink.js deleted file mode 100644 index 84179e671..000000000 --- a/apps/presentationeditor/mobile/app/view/add/AddLink.js +++ /dev/null @@ -1,137 +0,0 @@ -/* - * - * (c) Copyright Ascensio System SIA 2010-2019 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ - -/** - * AddLink.js - * Presentation Editor - * - * Created by Julia Radzhabova on 12/01/16 - * Copyright (c) 2018 Ascensio System SIA. All rights reserved. - * - */ - -define([ - 'text!presentationeditor/mobile/app/template/AddLink.template', - 'jquery', - 'underscore', - 'backbone' -], function (addTemplate, $, _, Backbone) { - 'use strict'; - - PE.Views.AddLink = Backbone.View.extend(_.extend((function() { - // private - - return { - // el: '.view-main', - - template: _.template(addTemplate), - - events: { - }, - - initialize: function () { - Common.NotificationCenter.on('addcontainer:show', _.bind(this.initEvents, this)); - }, - - initEvents: function () { - var me = this; - - $('#add-link-number').single('click', _.bind(me.showPageNumber, me)); - $('#add-link-type').single('click', _.bind(me.showLinkType, me)); - }, - - // Render layout - render: function () { - this.layout = $('
      ').append(this.template({ - android : Common.SharedSettings.get('android'), - phone : Common.SharedSettings.get('phone'), - scope : this - })); - - return this; - }, - - rootLayout: function () { - if (this.layout) { - return this.layout - .find('#addlink-root-view') - .html(); - } - - return ''; - }, - - showPage: function (templateId) { - var rootView = PE.getController('AddContainer').rootView; - - if (rootView && this.layout) { - var $content = this.layout.find(templateId); - - // Android fix for navigation - if (Framework7.prototype.device.android) { - $content.find('.page').append($content.find('.navbar')); - } - - rootView.router.load({ - content: $content.html() - }); - - this.fireEvent('page:show', [this, templateId]); - } - }, - - showLinkType: function () { - this.showPage('#addlink-type'); - }, - - showPageNumber: function () { - this.showPage('#addlink-slidenumber'); - }, - - textLinkType: 'Link Type', - textExternalLink: 'External Link', - textInternalLink: 'Slide in this Presentation', - textLink: 'Link', - textLinkSlide: 'Link to', - textBack: 'Back', - textDisplay: 'Display', - textTip: 'Screen Tip', - textInsert: 'Insert', - textNext: 'Next Slide', - textPrev: 'Previous Slide', - textFirst: 'First Slide', - textLast: 'Last Slide', - textNumber: 'Slide Number' - } - })(), PE.Views.AddLink || {})) -}); \ No newline at end of file diff --git a/apps/presentationeditor/mobile/app/view/add/AddOther.js b/apps/presentationeditor/mobile/app/view/add/AddOther.js index 34b7a1df9..6aafebc96 100644 --- a/apps/presentationeditor/mobile/app/view/add/AddOther.js +++ b/apps/presentationeditor/mobile/app/view/add/AddOther.js @@ -70,6 +70,13 @@ define([ $('#item-comment').show(); $('#add-other-comment').single('click', _.bind(this.showPageComment, this)); } + $('#add-other-table').single('click', _.bind(this.showPageTable, this)); + if (this.hideInsertLink) { + $('#item-link').hide(); + } else { + $('#item-link').show(); + $('#add-other-link').single('click', _.bind(this.showPageLink, this)); + } this.initControls(); }, @@ -118,7 +125,11 @@ define([ animatePages: animate !== false }); - this.fireEvent('page:show', [this, templateId]); + if (templateId === '#addother-insert-link') { + this.fireEvent('category:show', [this, templateId]); + } else { + this.fireEvent('page:show', [this, templateId]); + } } }, @@ -160,9 +171,61 @@ define([ }, 100); }, + showPageTable: function() { + this.showPage('#addother-insert-table'); + this.renderTableStyles(); + PE.getController('AddTable').initEvents(); + }, + + renderTableStyles: function() { + var $stylesList = $('.table-styles ul'); + var template = [ + '<% _.each(styles, function(style) { %>', + '
    • ', + '', + '
    • ', + '<% }); %>' + ].join(''); + var insert = _.template(template)({ + android : Common.SharedSettings.get('android'), + phone : Common.SharedSettings.get('phone'), + styles : PE.getController('AddTable').getStyles() + }); + $stylesList.html(insert); + }, + + showPageLink: function() { + this.showPage('#addother-insert-link'); + $('#add-link-number').single('click', _.bind(this.showPageNumber, this)); + $('#add-link-type').single('click', _.bind(this.showLinkType, this)); + }, + + showLinkType: function () { + this.showPage('#addlink-type'); + }, + + showPageNumber: function () { + this.showPage('#addlink-slidenumber'); + }, + textComment: 'Comment', textAddComment: 'Add Comment', - textDone: 'Done' + textDone: 'Done', + textTable: 'Table', + textLinkType: 'Link Type', + textExternalLink: 'External Link', + textInternalLink: 'Slide in this Presentation', + textLink: 'Link', + textLinkSlide: 'Link to', + textBack: 'Back', + textDisplay: 'Display', + textTip: 'Screen Tip', + textInsert: 'Insert', + textNext: 'Next Slide', + textPrev: 'Previous Slide', + textFirst: 'First Slide', + textLast: 'Last Slide', + textNumber: 'Slide Number' } })(), PE.Views.AddOther || {})) diff --git a/apps/presentationeditor/mobile/app/view/add/AddTable.js b/apps/presentationeditor/mobile/app/view/add/AddTable.js deleted file mode 100644 index c59f40a0f..000000000 --- a/apps/presentationeditor/mobile/app/view/add/AddTable.js +++ /dev/null @@ -1,104 +0,0 @@ -/* - * - * (c) Copyright Ascensio System SIA 2010-2019 - * - * This program is a free software product. You can redistribute it and/or - * modify it under the terms of the GNU Affero General Public License (AGPL) - * version 3 as published by the Free Software Foundation. In accordance with - * Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect - * that Ascensio System SIA expressly excludes the warranty of non-infringement - * of any third-party rights. - * - * This program is distributed WITHOUT ANY WARRANTY; without even the implied - * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For - * details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html - * - * You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha - * street, Riga, Latvia, EU, LV-1050. - * - * The interactive user interfaces in modified source and object code versions - * of the Program must display Appropriate Legal Notices, as required under - * Section 5 of the GNU AGPL version 3. - * - * Pursuant to Section 7(b) of the License you must retain the original Product - * logo when distributing the program. Pursuant to Section 7(e) we decline to - * grant you any rights under trademark law for use of our trademarks. - * - * All the Product's GUI elements, including illustrations and icon sets, as - * well as technical writing content are licensed under the terms of the - * Creative Commons Attribution-ShareAlike 4.0 International. See the License - * terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode - * - */ - -/** - * AddTable.js - * Presentation Editor - * - * Created by Julia Radzhabova on 11/30/16 - * Copyright (c) 2018 Ascensio System SIA. All rights reserved. - * - */ - -define([ - 'text!presentationeditor/mobile/app/template/AddTable.template', - 'jquery', - 'underscore', - 'backbone' -], function (addTemplate, $, _, Backbone) { - 'use strict'; - - PE.Views.AddTable = Backbone.View.extend(_.extend((function() { - // private - - return { - // el: '.view-main', - - template: _.template(addTemplate), - - events: { - }, - - initialize: function () { - Common.NotificationCenter.on('addcontainer:show', _.bind(this.initEvents, this)); - }, - - initEvents: function () { - var me = this; - - Common.Utils.addScrollIfNeed('#add-table .pages', '#add-table .page'); - me.initControls(); - }, - - // Render layout - render: function () { - this.layout = $('
      ').append(this.template({ - android : Common.SharedSettings.get('android'), - phone : Common.SharedSettings.get('phone'), - styles : PE.getController('AddTable').getStyles() - })); - - var $tableStyles = $('.container-add .table-styles'); - if ($tableStyles) { - $tableStyles.replaceWith(this.layout.find('#add-table-root').html()); - } - - return this; - }, - - rootLayout: function () { - if (this.layout) { - return this.layout - .find('#add-table-root') - .html(); - } - - return ''; - }, - - initControls: function () { - // - } - } - })(), PE.Views.AddTable || {})) -}); \ No newline at end of file diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json index 974581605..310b6d726 100644 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -282,6 +282,21 @@ "PE.Views.AddOther.textComment": "Comment", "PE.Views.AddOther.textAddComment": "Add Comment", "PE.Views.AddOther.textDone": "Done", + "PE.Views.AddOther.textTable": "Table", + "PE.Views.AddOther.textLinkType": "Link Type", + "PE.Views.AddOther.textExternalLink": "External Link", + "PE.Views.AddOther.textInternalLink": "Slide in this Presentation", + "PE.Views.AddOther.textLink": "Link", + "PE.Views.AddOther.textLinkSlide": "Link to", + "PE.Views.AddOther.textBack": "Back", + "PE.Views.AddOther.textDisplay": "Display", + "PE.Views.AddOther.textTip": "Screen Tip", + "PE.Views.AddOther.textInsert": "Insert", + "PE.Views.AddOther.textNext": "Next Slide", + "PE.Views.AddOther.textPrev": "Previous Slide", + "PE.Views.AddOther.textFirst": "First Slide", + "PE.Views.AddOther.textLast": "Last Slide", + "PE.Views.AddOther.textNumber": "Slide Number", "PE.Views.EditChart.textAddCustomColor": "Add Custom Color", "PE.Views.EditChart.textAlign": "Align", "PE.Views.EditChart.textAlignBottom": "Align Bottom", diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index 44414d9c9..954b546fb 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -5975,6 +5975,14 @@ html.pixel-ratio-3 .settings.popover .list-block ul:last-child:after { .settings .popover-inner { height: 400px; } +.container-add .categories > .buttons-row .button { + display: flex; + justify-content: center; + align-items: center; +} +.container-add .categories > .buttons-row .button.active i.icon { + background-color: transparent; +} .dataview.page-content { background: #ffffff; } @@ -7476,6 +7484,51 @@ i.icon.icon-insert-comment { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-add-slide { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4%206C4%204.89543%204.89543%204%206%204H18C19.1046%204%2020%204.89543%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020H6C4.89543%2020%204%2019.1046%204%2018V6ZM11%2010.9333V8H13V10.9333H16V12.9333H13V16H11V12.9333H8V10.9333H11Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-add-shape { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cellipse%20cx%3D%2215.3333%22%20cy%3D%2214.4002%22%20rx%3D%225.66667%22%20ry%3D%225.60002%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%204.80005C4.44772%204.80005%204%205.24776%204%205.80005V15.8001C4%2016.3524%204.44771%2016.8001%205%2016.8001H9.32787C9.02431%2016.059%208.85714%2015.2488%208.85714%2014.4001C8.85714%2010.8655%2011.7566%208.00012%2015.3333%208.00012C15.8924%208.00012%2016.4349%208.07013%2016.9524%208.20175V5.80005C16.9524%205.24776%2016.5047%204.80005%2015.9524%204.80005H5Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-add-image { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5.79177%2016.6667L8.87529%2013.1667L11.1254%2015.5L14.2089%2012L18.2092%2016.6667H5.79177ZM19.4593%2018.526C19.8204%2018.2101%2020.001%2017.8455%2020.001%2017.4323V6.56771C20.001%206.15451%2019.8204%205.78993%2019.4593%205.47396C19.0981%205.15799%2018.6814%205%2018.2092%205H5.79177C5.31952%205%204.90283%205.15799%204.5417%205.47396C4.18057%205.78993%204%206.15451%204%206.56771V17.4323C4%2017.8455%204.18057%2018.2101%204.5417%2018.526C4.90283%2018.842%205.31952%2019%205.79177%2019H18.2092C18.6814%2019%2019.0981%2018.842%2019.4593%2018.526ZM8.79933%2011.2222C9.68304%2011.2222%2010.3994%2010.5258%2010.3994%209.66667C10.3994%208.80756%209.68304%208.11111%208.79933%208.11111C7.91562%208.11111%207.19923%208.80756%207.19923%209.66667C7.19923%2010.5258%207.91562%2011.2222%208.79933%2011.2222Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-add-other { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7.00049%2018C7.00049%2018.8284%206.32892%2019.5%205.50049%2019.5C4.67206%2019.5%204.00049%2018.8284%204.00049%2018C4.00049%2017.1716%204.67206%2016.5%205.50049%2016.5C6.32892%2016.5%207.00049%2017.1716%207.00049%2018ZM13.5005%2018C13.5005%2018.8284%2012.8289%2019.5%2012.0005%2019.5C11.1721%2019.5%2010.5005%2018.8284%2010.5005%2018C10.5005%2017.1716%2011.1721%2016.5%2012.0005%2016.5C12.8289%2016.5%2013.5005%2017.1716%2013.5005%2018ZM18.5005%2019.5C19.3289%2019.5%2020.0005%2018.8284%2020.0005%2018C20.0005%2017.1716%2019.3289%2016.5%2018.5005%2016.5C17.6721%2016.5%2017.0005%2017.1716%2017.0005%2018C17.0005%2018.8284%2017.6721%2019.5%2018.5005%2019.5Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-add-table { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M1%202H22V21H1V2ZM12%203H21V8H12V3ZM12%209H21V14H12V9ZM11%2014V9H2V14H11ZM2%2015V20H11V15H2ZM12%2015H21V20H12V15ZM11%203V8H2V3H11Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-slide { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4%206C4%204.89543%204.89543%204%206%204H18C19.1046%204%2020%204.89543%2020%206V18C20%2019.1046%2019.1046%2020%2018%2020H6C4.89543%2020%204%2019.1046%204%2018V6ZM11%2010.9333V8H13V10.9333H16V12.9333H13V16H11V12.9333H8V10.9333H11Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-shape { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cellipse%20cx%3D%2215.3333%22%20cy%3D%2214.4002%22%20rx%3D%225.66667%22%20ry%3D%225.60002%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%204.80005C4.44772%204.80005%204%205.24776%204%205.80005V15.8001C4%2016.3524%204.44771%2016.8001%205%2016.8001H9.32787C9.02431%2016.059%208.85714%2015.2488%208.85714%2014.4001C8.85714%2010.8655%2011.7566%208.00012%2015.3333%208.00012C15.8924%208.00012%2016.4349%208.07013%2016.9524%208.20175V5.80005C16.9524%205.24776%2016.5047%204.80005%2015.9524%204.80005H5Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-image { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5.79177%2016.6667L8.87529%2013.1667L11.1254%2015.5L14.2089%2012L18.2092%2016.6667H5.79177ZM19.4593%2018.526C19.8204%2018.2101%2020.001%2017.8455%2020.001%2017.4323V6.56771C20.001%206.15451%2019.8204%205.78993%2019.4593%205.47396C19.0981%205.15799%2018.6814%205%2018.2092%205H5.79177C5.31952%205%204.90283%205.15799%204.5417%205.47396C4.18057%205.78993%204%206.15451%204%206.56771V17.4323C4%2017.8455%204.18057%2018.2101%204.5417%2018.526C4.90283%2018.842%205.31952%2019%205.79177%2019H18.2092C18.6814%2019%2019.0981%2018.842%2019.4593%2018.526ZM8.79933%2011.2222C9.68304%2011.2222%2010.3994%2010.5258%2010.3994%209.66667C10.3994%208.80756%209.68304%208.11111%208.79933%208.11111C7.91562%208.11111%207.19923%208.80756%207.19923%209.66667C7.19923%2010.5258%207.91562%2011.2222%208.79933%2011.2222Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-other { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7.00049%2018C7.00049%2018.8284%206.32892%2019.5%205.50049%2019.5C4.67206%2019.5%204.00049%2018.8284%204.00049%2018C4.00049%2017.1716%204.67206%2016.5%205.50049%2016.5C6.32892%2016.5%207.00049%2017.1716%207.00049%2018ZM13.5005%2018C13.5005%2018.8284%2012.8289%2019.5%2012.0005%2019.5C11.1721%2019.5%2010.5005%2018.8284%2010.5005%2018C10.5005%2017.1716%2011.1721%2016.5%2012.0005%2016.5C12.8289%2016.5%2013.5005%2017.1716%2013.5005%2018ZM18.5005%2019.5C19.3289%2019.5%2020.0005%2018.8284%2020.0005%2018C20.0005%2017.1716%2019.3289%2016.5%2018.5005%2016.5C17.6721%2016.5%2017.0005%2017.1716%2017.0005%2018C17.0005%2018.8284%2017.6721%2019.5%2018.5005%2019.5Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} .label-switch input[type="checkbox"]:checked + .checkbox { background: #aa5252; } diff --git a/apps/presentationeditor/mobile/resources/css/app-material.css b/apps/presentationeditor/mobile/resources/css/app-material.css index eb23f750c..bf6b594e0 100644 --- a/apps/presentationeditor/mobile/resources/css/app-material.css +++ b/apps/presentationeditor/mobile/resources/css/app-material.css @@ -6868,15 +6868,10 @@ i.icon.icon-pagenumber { height: 22px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23aa5252%22%3E%3Cg%3E%3Cpath%20d%3D%22M8.2%2C1L2%2C7.6V22h17V1H8.2z%20M8%2C2.8V8H3.1L8%2C2.8z%20M18%2C21H3V9h6V2l0%2C0h9V21z%20M12%2C19h1v-4h-0.7c0%2C0.2-0.1-0.1-0.1%2C0c-0.1%2C0.1-0.2%2C0-0.3%2C0c-0.1%2C0.1-0.2%2C0.1-0.4%2C0.1c-0.1%2C0-0.3%2C0-0.4%2C0V16H12V19z%20M15.3%2C17.3C15%2C17.9%2C15.1%2C18.4%2C15%2C19h0.9c0-0.3%2C0-0.6%2C0.1-0.9c0.1-0.3%2C0.1-0.6%2C0.3-0.9c0.1-0.3%2C0.3-0.6%2C0.4-0.9c0.2-0.3%2C0.1-0.3%2C0.3-0.5V15h-3v1h1.9C15.6%2C16.4%2C15.5%2C16.7%2C15.3%2C17.3z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); } -i.icon.icon-link { - width: 22px; - height: 22px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%23aa5252%22%3E%3Cg%3E%3Cpath%20d%3D%22M12.4%2C9.8c0%2C0-2.1-0.1-3.8%2C1.2c-2.8%2C2-3.3%2C4.3-3.3%2C4.3s1.6-1.7%2C3.5-2.5c1.7-0.7%2C3.7-0.4%2C3.7-0.4v1.9l4.8-3.3V11l-4.8-3.3V9.8z%20M11%2C1C5.5%2C1%2C1%2C5.5%2C1%2C11c0%2C5.5%2C4.5%2C10%2C10%2C10s10-4.5%2C10-10C21%2C5.5%2C16.5%2C1%2C11%2C1z%20M11%2C20c-5%2C0-9-4.1-9-9C2%2C6%2C6%2C2%2C11%2C2s9%2C4.1%2C9%2C9C20%2C16%2C16%2C20%2C11%2C20z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); -} i.icon.icon-image-library { - width: 22px; - height: 22px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bisolation%3Aisolate%3B%7D.cls-2%7Bopacity%3A0.2%3B%7D.cls-3%7Bfill%3A%23fff%3B%7D.cls-10%2C.cls-11%2C.cls-4%2C.cls-6%2C.cls-7%2C.cls-8%2C.cls-9%7Bmix-blend-mode%3Amultiply%3B%7D.cls-4%7Bfill%3Aurl(%23grad_8)%3B%7D.cls-5%7Bfill%3Aurl(%23grad_10)%3B%7D.cls-6%7Bfill%3Aurl(%23grad_12)%3B%7D.cls-7%7Bfill%3Aurl(%23grad_14)%3B%7D.cls-8%7Bfill%3Aurl(%23grad_79)%3B%7D.cls-9%7Bfill%3Aurl(%23grad_77)%3B%7D.cls-10%7Bfill%3Aurl(%23grad_75)%3B%7D.cls-11%7Bfill%3Aurl(%23grad_81)%3B%7D%3C%2Fstyle%3E%3ClinearGradient%20id%3D%22grad_8%22%20x1%3D%2211.08%22%20y1%3D%2210.26%22%20x2%3D%2211.08%22%20y2%3D%221.26%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f3e916%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f89d34%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_10%22%20x1%3D%2211.08%22%20y1%3D%2220.44%22%20x2%3D%2211.08%22%20y2%3D%2211.88%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235eb6e8%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23958cc3%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_12%22%20x1%3D%221.46%22%20y1%3D%2211.05%22%20x2%3D%2210.46%22%20y2%3D%2211.05%22%20gradientTransform%3D%22translate(17%205.09)%20rotate(90)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23cc8dba%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f86867%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_14%22%20x1%3D%2211.73%22%20y1%3D%2211.05%22%20x2%3D%2220.73%22%20y2%3D%2211.05%22%20gradientTransform%3D%22translate(27.28%20-5.18)%20rotate(90)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%236ac07f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c5da3d%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_79%22%20x1%3D%2211.74%22%20y1%3D%2210.42%22%20x2%3D%2217.52%22%20y2%3D%224.63%22%20gradientTransform%3D%22translate(30.29%202.51)%20rotate(135)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23c5da3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f3e916%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_77%22%20x1%3D%224.7%22%20y1%3D%2217.49%22%20x2%3D%2210.48%22%20y2%3D%2211.71%22%20gradientTransform%3D%22translate(23.24%2019.65)%20rotate(135)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%239595c3%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23cc8dba%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_75%22%20x1%3D%224.69%22%20y1%3D%224.64%22%20x2%3D%2210.47%22%20y2%3D%2210.42%22%20gradientTransform%3D%22translate(7.54%20-3.15)%20rotate(45)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f86867%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f89d34%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_81%22%20x1%3D%2211.77%22%20y1%3D%2211.78%22%20x2%3D%2217.55%22%20y2%3D%2217.56%22%20gradientTransform%3D%22translate(14.63%20-6.05)%20rotate(45)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235ec0e8%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%236ac07f%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Ctitle%3Eicons_for_svg%3C%2Ftitle%3E%3Cg%20class%3D%22cls-1%22%3E%3Cg%20id%3D%22%D0%A1%D0%BB%D0%BE%D0%B9_1%22%20data-name%3D%22%D0%A1%D0%BB%D0%BE%D0%B9%201%22%3E%3Crect%20class%3D%22cls-2%22%20x%3D%220.09%22%20y%3D%220.01%22%20width%3D%2222%22%20height%3D%2222%22%20rx%3D%224%22%20ry%3D%224%22%2F%3E%3Crect%20class%3D%22cls-3%22%20x%3D%220.57%22%20y%3D%220.49%22%20width%3D%2221.04%22%20height%3D%2221.04%22%20rx%3D%223.6%22%20ry%3D%223.6%22%2F%3E%3Crect%20class%3D%22cls-4%22%20x%3D%228.33%22%20y%3D%221.26%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%2F%3E%3Crect%20class%3D%22cls-5%22%20x%3D%228.33%22%20y%3D%2211.76%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%2F%3E%3Crect%20class%3D%22cls-6%22%20x%3D%223.21%22%20y%3D%226.55%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(-5.09%2017)%20rotate(-90)%22%2F%3E%3Crect%20class%3D%22cls-7%22%20x%3D%2213.48%22%20y%3D%226.55%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(5.18%2027.28)%20rotate(-90)%22%2F%3E%3Crect%20class%3D%22cls-8%22%20x%3D%2211.87%22%20y%3D%223.03%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(19.64%2023.19)%20rotate(-135)%22%2F%3E%3Crect%20class%3D%22cls-9%22%20x%3D%224.8%22%20y%3D%2210.14%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(2.54%2030.33)%20rotate(-135)%22%2F%3E%3Crect%20class%3D%22cls-10%22%20x%3D%224.83%22%20y%3D%223.03%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(-3.1%207.56)%20rotate(-45)%22%2F%3E%3Crect%20class%3D%22cls-11%22%20x%3D%2211.87%22%20y%3D%2210.14%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(-6.07%2014.63)%20rotate(-45)%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"); + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23clip0)%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20%205.5H4C3.72386%205.5%203.5%205.72386%203.5%206V15.5822L8.03349%2011.6898C8.47476%2011.3109%209.11904%2011.2865%209.58778%2011.6308L13.5726%2014.5579L15.9619%2012.6774C16.4488%2012.2942%2017.1428%2012.3255%2017.5933%2012.7509L20.5%2015.4962V6C20.5%205.72386%2020.2761%205.5%2020%205.5ZM20.5%2017.5294L20.485%2017.5453L16.7201%2013.9895L14.3509%2015.8542C13.9095%2016.2016%2013.2905%2016.2119%2012.8378%2015.8793L8.85988%2012.9573L3.5%2017.5592V18C3.5%2018.2761%203.72386%2018.5%204%2018.5H20C20.2761%2018.5%2020.5%2018.2761%2020.5%2018V17.5294ZM4%204C2.89543%204%202%204.89543%202%206V18C2%2019.1046%202.89543%2020%204%2020H20C21.1046%2020%2022%2019.1046%2022%2018V6C22%204.89543%2021.1046%204%2020%204H4ZM16.5%209.5C16.5%2011.1569%2015.1569%2012.5%2013.5%2012.5C11.8431%2012.5%2010.5%2011.1569%2010.5%209.5C10.5%207.84315%2011.8431%206.5%2013.5%206.5C15.1569%206.5%2016.5%207.84315%2016.5%209.5ZM13.5%2011C14.3284%2011%2015%2010.3284%2015%209.5C15%208.67157%2014.3284%208%2013.5%208C12.6716%208%2012%208.67157%2012%209.5C12%2010.3284%2012.6716%2011%2013.5%2011Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0%22%3E%3Cpath%20d%3D%22M0%200H24V24H0V0Z%22%20fill%3D%22transparent%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"); } i.icon.icon-text-valign-top { width: 22px; @@ -7099,13 +7094,23 @@ i.icon.icon-done-comment { i.icon.icon-insert-comment { width: 24px; height: 24px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V15.0346C2%2016.3222%203.18908%2017.013%204.5%2017.013H5.5C5.82773%2017.013%206%2017.1917%206%2017.5136V21L12%2017H20C21.1046%2017%2022%2016.1046%2022%2015V8H20.5V14.5C20.5%2015.0523%2020.0523%2015.5%2019.5%2015.5H11.5L7.5%2018V15.5H4.5C3.94772%2015.5%203.5%2015.0523%203.5%2014.5V5.5C3.5%204.94772%203.94772%204.5%204.5%204.5H19.5C20.0523%204.5%2020.5%204.94772%2020.5%205.5V8H22V5.50295C22%204.2153%2020.8109%203%2019.5%203Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20d%3D%22M6%207.5H18V9H6L6%207.5Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20d%3D%22M6%2011H18V12.5H6V11Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); } i.icon.icon-done-comment-white { width: 24px; height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9%2016.1719L19.5938%205.57812L21%206.98438L9%2018.9844L3.42188%2013.4062L4.82812%2012L9%2016.1719Z%22%20fill%3D%22%23FFFFFF%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-add-table { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M4%205.59961H11.2V8.79961H4V5.59961Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20d%3D%22M12.8%205.59961H20V8.79961H12.8V5.59961Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20d%3D%22M4%2010.3996H11.2V13.5996H4V10.3996Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20d%3D%22M12.8%2010.3996H20V13.5996H12.8V10.3996Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20d%3D%22M4%2015.1996H11.2V18.3996H4V15.1996Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20d%3D%22M12.8%2015.1996H20V18.3996H12.8V15.1996Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-link { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M17.0235%207C18.4006%207%2019.5743%207.49845%2020.5446%208.49534C21.5149%209.46108%2022%2010.6293%2022%2012C22%2013.3708%2021.5149%2014.5546%2020.5446%2015.5515C19.5743%2016.5172%2018.4006%2017.0001%2017.0235%2017.0001H13V15H17C17.8451%2015%2018.5884%2014.7882%2019.1831%2014.1963C19.8091%2013.5733%2020%2012.8411%2020%2012C20%2011.1589%2019.8091%2010.4424%2019.1831%209.85049C18.5884%209.22743%2017.8685%209%2017.0235%209H13V7H17.0235ZM8.00939%2012.9814V11.0187H15.9906V12.9814H8.00939ZM4.76995%209.85049C4.17527%2010.4424%204%2011.1589%204%2012C4%2012.8411%204.17527%2013.5733%204.76995%2014.1963C5.39593%2014.7882%206.15493%2015%207%2015H11.0141V17.0001H6.97653C5.59937%2017.0001%204.42567%2016.5172%203.4554%2015.5515C2.48513%2014.5546%202%2013.3708%202%2012C2%2010.6293%202.48513%209.46108%203.4554%208.49534C4.42567%207.49845%205.59937%207%206.97653%207H11.0141V9H6.97653C6.13146%209%205.39593%209.22743%204.76995%209.85049Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); +} .navbar i.icon.icon-logo { width: 100px; height: 14px; @@ -7171,6 +7176,26 @@ i.icon.icon-done-comment-white { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M14.9912%206C14.9912%208.18203%2014.4464%209.76912%2013.7789%2010.7492C13.101%2011.7447%2012.4042%2012%2011.9912%2012C11.5782%2012%2010.8814%2011.7447%2010.2035%2010.7492C9.53601%209.76912%208.99121%208.18203%208.99121%206C8.99121%204.23017%2010.4571%203%2011.9912%203C13.5254%203%2014.9912%204.23017%2014.9912%206ZM13.4917%2013.6397C13.0059%2013.8771%2012.4989%2014%2011.9912%2014C11.4861%2014%2010.9817%2013.8784%2010.4983%2013.6434C8.53188%2014.3681%206.94518%2015.0737%205.78927%2015.7768C4.10512%2016.8011%204%2017.4079%204%2017.5C4%2017.7664%204.1014%2018.3077%205.27104%2018.8939C6.50029%2019.5099%208.64545%2019.9999%2012%2020C15.3546%2020%2017.4997%2019.5099%2018.7289%2018.8939C19.8986%2018.3078%2020%2017.7664%2020%2017.5C20%2017.4079%2019.8949%2016.8011%2018.2107%2015.7768C17.0529%2015.0726%2015.4627%2014.3657%2013.4917%2013.6397ZM15.2272%2012.1594C16.2765%2010.7825%2016.9912%208.67814%2016.9912%206C16.9912%203%2014.5%201%2011.9912%201C9.48242%201%206.99121%203%206.99121%206C6.99121%208.68159%207.70777%2010.7879%208.75931%2012.1647C4.60309%2013.7964%202%2015.4951%202%2017.5C2%2019.9852%205%2021.9999%2012%2022C19%2022%2022%2019.9852%2022%2017.5C22%2015.4929%2019.3913%2013.7927%2015.2272%2012.1594Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); } +.navbar i.icon.icon-add-slide { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M2%204C2%202.89543%202.89543%202%204%202H20C21.1046%202%2022%202.89543%2022%204V20C22%2021.1046%2021.1046%2022%2020%2022H4C2.89543%2022%202%2021.1046%202%2020V4ZM11%2011V7.00001H13V11H17V13H13V17H11V13H7V11H11Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} +.navbar i.icon.icon-add-shape { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2215%22%20r%3D%227%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%203C2.44772%203%202%203.44772%202%204V17C2%2017.5523%202.44772%2018%203%2018H8.58152C8.20651%2017.0736%208%2016.0609%208%2015C8%2010.5817%2011.5817%207%2016%207C16.6906%207%2017.3608%207.08751%2018%207.25204V4C18%203.44772%2017.5523%203%2017%203H3Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} +.navbar i.icon.icon-add-image { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23clip0)%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.23958%2018L8.09375%2013.5L10.9062%2016.5L14.7604%2012L19.7604%2018H4.23958ZM21.3229%2020.3906C21.7743%2019.9844%2022%2019.5156%2022%2018.9844V5.01562C22%204.48438%2021.7743%204.01562%2021.3229%203.60938C20.8715%203.20313%2020.3507%203%2019.7604%203H4.23958C3.64931%203%203.12847%203.20313%202.67708%203.60938C2.22569%204.01562%202%204.48438%202%205.01562V18.9844C2%2019.5156%202.22569%2019.9844%202.67708%2020.3906C3.12847%2020.7969%203.64931%2021%204.23958%2021H19.7604C20.3507%2021%2020.8715%2020.7969%2021.3229%2020.3906ZM8%2011C9.10457%2011%2010%2010.1046%2010%209C10%207.89543%209.10457%207%208%207C6.89543%207%206%207.89543%206%209C6%2010.1046%206.89543%2011%208%2011Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0%22%3E%3Cpath%20d%3D%22M0.000477791%200H24.0005V24H0.000477791V0Z%22%20fill%3D%22transparent%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"); +} +.navbar i.icon.icon-add-other { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7%2012C7%2013.6569%205.65685%2015%204%2015C2.34315%2015%201%2013.6569%201%2012C1%2010.3431%202.34315%209%204%209C5.65685%209%207%2010.3431%207%2012ZM15%2012C15%2013.6569%2013.6569%2015%2012%2015C10.3431%2015%209%2013.6569%209%2012C9%2010.3431%2010.3431%209%2012%209C13.6569%209%2015%2010.3431%2015%2012ZM20%2015C21.6569%2015%2023%2013.6569%2023%2012C23%2010.3431%2021.6569%209%2020%209C18.3431%209%2017%2010.3431%2017%2012C17%2013.6569%2018.3431%2015%2020%2015Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} .sailfish i.icon.icon-text-align-center { background-color: transparent; -webkit-mask-image: none; @@ -7444,6 +7469,12 @@ textarea { #add-shape .page { background-color: #fff; } +.container-add .categories i.icon { + opacity: 0.5; +} +.container-add .categories .active i.icon { + opacity: 1; +} .table-styles .row, .table-styles .row li { margin-bottom: 12px; diff --git a/apps/presentationeditor/mobile/resources/less/app-material.less b/apps/presentationeditor/mobile/resources/less/app-material.less index 0e9e4c5d7..6ac442771 100644 --- a/apps/presentationeditor/mobile/resources/less/app-material.less +++ b/apps/presentationeditor/mobile/resources/less/app-material.less @@ -114,6 +114,18 @@ input, textarea { background-color: #fff; } } +.container-add { + .categories { + i.icon { + opacity: 0.5; + } + .active { + i.icon { + opacity: 1; + } + } + } +} // Table styles diff --git a/apps/presentationeditor/mobile/resources/less/ios/_icons.less b/apps/presentationeditor/mobile/resources/less/ios/_icons.less index 719330b78..20146fcda 100644 --- a/apps/presentationeditor/mobile/resources/less/ios/_icons.less +++ b/apps/presentationeditor/mobile/resources/less/ios/_icons.less @@ -451,4 +451,55 @@ i.icon { height: 24px; .encoded-svg-background(''); } + //Insert + &.icon-add-slide { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-shape { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-image { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-other { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-table { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } +} + +.active { + i.icon { + &.icon-add-slide { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-shape { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-image { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-other { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + } } \ No newline at end of file diff --git a/apps/presentationeditor/mobile/resources/less/material/_icons.less b/apps/presentationeditor/mobile/resources/less/material/_icons.less index b8dcb4460..d998fdfa3 100644 --- a/apps/presentationeditor/mobile/resources/less/material/_icons.less +++ b/apps/presentationeditor/mobile/resources/less/material/_icons.less @@ -185,15 +185,10 @@ i.icon { height: 22px; .encoded-svg-background(''); } - &.icon-link { - width: 22px; - height: 22px; - .encoded-svg-background(''); - } &.icon-image-library { - width: 22px; - height: 22px; - .encoded-svg-background('icons_for_svg'); + width: 24px; + height: 24px; + .encoded-svg-background(''); } &.icon-text-valign-top { @@ -434,13 +429,23 @@ i.icon { &.icon-insert-comment { width: 24px; height: 24px; - .encoded-svg-background(''); + .encoded-svg-background(''); } &.icon-done-comment-white { width: 24px; height: 24px; .encoded-svg-background(''); } + &.icon-add-table { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-link { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } // Overwrite color for toolbar @@ -511,5 +516,25 @@ i.icon { height: 24px; .encoded-svg-background(''); } + &.icon-add-slide { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-shape { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-image { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-other { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } } \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js b/apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js index 4db297c43..70c6a8adf 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js +++ b/apps/spreadsheeteditor/mobile/app/controller/add/AddContainer.js @@ -129,6 +129,7 @@ define([ addViews.push({ caption: me.textChart, id: 'add-chart', + icon: 'icon-add-chart', layout: SSE.getController('AddChart').getView('AddChart').rootLayout() }); @@ -137,6 +138,7 @@ define([ addViews.push({ caption: me.textFormula, id: 'add-formula', + icon: 'icon-add-formula', layout: options ? view.rootLayout() : view.layoutPanel() }); } @@ -145,6 +147,7 @@ define([ addViews.push({ caption: me.textShape, id: 'add-shape', + icon: 'icon-add-shape', layout: SSE.getController('AddShape').getView('AddShape').rootLayout() }); @@ -152,6 +155,7 @@ define([ addViews.push({ caption: me.textOther, id: 'add-other', + icon: 'icon-add-other', layout: SSE.getController('AddOther').getView('AddOther').rootLayout() }); @@ -168,6 +172,7 @@ define([ addViews.push({ caption: me.textImage, id: 'add-image', + icon: 'icon-add-image', layout: SSE.getController('AddOther').getView('AddOther').childLayout('image') }); } @@ -214,7 +219,7 @@ define([ $layoutNavbar .find('.toolbar-inner') .append( - '' + layout.caption + '' + '' ); }); $layoutNavbar @@ -229,7 +234,7 @@ define([ $layoutNavbar .find('.buttons-row') .append( - '' + layout.caption + '' + '' ); }); } diff --git a/apps/spreadsheeteditor/mobile/app/template/AddOther.template b/apps/spreadsheeteditor/mobile/app/template/AddOther.template index 4089e161e..dd247de8e 100644 --- a/apps/spreadsheeteditor/mobile/app/template/AddOther.template +++ b/apps/spreadsheeteditor/mobile/app/template/AddOther.template @@ -2,6 +2,18 @@
    diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index 596615b11..828087606 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -5968,6 +5968,14 @@ html.pixel-ratio-3 .settings.popover .list-block ul:last-child:after { .settings .popover-inner { height: 400px; } +.container-add .categories > .buttons-row .button { + display: flex; + justify-content: center; + align-items: center; +} +.container-add .categories > .buttons-row .button.active i.icon { + background-color: transparent; +} .dataview.page-content { background: #ffffff; } @@ -7360,6 +7368,56 @@ i.icon.icon-insert-comment { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%2340865c%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); } +i.icon.icon-add-chart { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20%205H16V20H20V5ZM10%2011H14V20H10V11ZM4%2014H8V20H4V14Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-add-formula { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%205H19V9.11765H16.375V7.47059H8.9375L11.5625%2012L8.9375%2016.5294H16.375V14.8824H19V19H5V17.7647L8.5%2012L5%206.23529V5Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-add-shape { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cellipse%20cx%3D%2215.3333%22%20cy%3D%2214.4002%22%20rx%3D%225.66667%22%20ry%3D%225.60002%22%20fill%3D%22%2340865c%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%204.80005C4.44772%204.80005%204%205.24776%204%205.80005V15.8001C4%2016.3524%204.44771%2016.8001%205%2016.8001H9.32787C9.02431%2016.059%208.85714%2015.2488%208.85714%2014.4001C8.85714%2010.8655%2011.7566%208.00012%2015.3333%208.00012C15.8924%208.00012%2016.4349%208.07013%2016.9524%208.20175V5.80005C16.9524%205.24776%2016.5047%204.80005%2015.9524%204.80005H5Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-add-image { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5.79177%2016.6667L8.87529%2013.1667L11.1254%2015.5L14.2089%2012L18.2092%2016.6667H5.79177ZM19.4593%2018.526C19.8204%2018.2101%2020.001%2017.8455%2020.001%2017.4323V6.56771C20.001%206.15451%2019.8204%205.78993%2019.4593%205.47396C19.0981%205.15799%2018.6814%205%2018.2092%205H5.79177C5.31952%205%204.90283%205.15799%204.5417%205.47396C4.18057%205.78993%204%206.15451%204%206.56771V17.4323C4%2017.8455%204.18057%2018.2101%204.5417%2018.526C4.90283%2018.842%205.31952%2019%205.79177%2019H18.2092C18.6814%2019%2019.0981%2018.842%2019.4593%2018.526ZM8.79933%2011.2222C9.68304%2011.2222%2010.3994%2010.5258%2010.3994%209.66667C10.3994%208.80756%209.68304%208.11111%208.79933%208.11111C7.91562%208.11111%207.19923%208.80756%207.19923%209.66667C7.19923%2010.5258%207.91562%2011.2222%208.79933%2011.2222Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); +} +i.icon.icon-add-other { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7.00049%2018C7.00049%2018.8284%206.32892%2019.5%205.50049%2019.5C4.67206%2019.5%204.00049%2018.8284%204.00049%2018C4.00049%2017.1716%204.67206%2016.5%205.50049%2016.5C6.32892%2016.5%207.00049%2017.1716%207.00049%2018ZM13.5005%2018C13.5005%2018.8284%2012.8289%2019.5%2012.0005%2019.5C11.1721%2019.5%2010.5005%2018.8284%2010.5005%2018C10.5005%2017.1716%2011.1721%2016.5%2012.0005%2016.5C12.8289%2016.5%2013.5005%2017.1716%2013.5005%2018ZM18.5005%2019.5C19.3289%2019.5%2020.0005%2018.8284%2020.0005%2018C20.0005%2017.1716%2019.3289%2016.5%2018.5005%2016.5C17.6721%2016.5%2017.0005%2017.1716%2017.0005%2018C17.0005%2018.8284%2017.6721%2019.5%2018.5005%2019.5Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-chart { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20%205H16V20H20V5ZM10%2011H14V20H10V11ZM4%2014H8V20H4V14Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-formula { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%205H19V9.11765H16.375V7.47059H8.9375L11.5625%2012L8.9375%2016.5294H16.375V14.8824H19V19H5V17.7647L8.5%2012L5%206.23529V5Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-shape { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cellipse%20cx%3D%2215.3333%22%20cy%3D%2214.4002%22%20rx%3D%225.66667%22%20ry%3D%225.60002%22%20fill%3D%22white%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5%204.80005C4.44772%204.80005%204%205.24776%204%205.80005V15.8001C4%2016.3524%204.44771%2016.8001%205%2016.8001H9.32787C9.02431%2016.059%208.85714%2015.2488%208.85714%2014.4001C8.85714%2010.8655%2011.7566%208.00012%2015.3333%208.00012C15.8924%208.00012%2016.4349%208.07013%2016.9524%208.20175V5.80005C16.9524%205.24776%2016.5047%204.80005%2015.9524%204.80005H5Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-image { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M5.79177%2016.6667L8.87529%2013.1667L11.1254%2015.5L14.2089%2012L18.2092%2016.6667H5.79177ZM19.4593%2018.526C19.8204%2018.2101%2020.001%2017.8455%2020.001%2017.4323V6.56771C20.001%206.15451%2019.8204%205.78993%2019.4593%205.47396C19.0981%205.15799%2018.6814%205%2018.2092%205H5.79177C5.31952%205%204.90283%205.15799%204.5417%205.47396C4.18057%205.78993%204%206.15451%204%206.56771V17.4323C4%2017.8455%204.18057%2018.2101%204.5417%2018.526C4.90283%2018.842%205.31952%2019%205.79177%2019H18.2092C18.6814%2019%2019.0981%2018.842%2019.4593%2018.526ZM8.79933%2011.2222C9.68304%2011.2222%2010.3994%2010.5258%2010.3994%209.66667C10.3994%208.80756%209.68304%208.11111%208.79933%208.11111C7.91562%208.11111%207.19923%208.80756%207.19923%209.66667C7.19923%2010.5258%207.91562%2011.2222%208.79933%2011.2222Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} +.active i.icon.icon-add-other { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7.00049%2018C7.00049%2018.8284%206.32892%2019.5%205.50049%2019.5C4.67206%2019.5%204.00049%2018.8284%204.00049%2018C4.00049%2017.1716%204.67206%2016.5%205.50049%2016.5C6.32892%2016.5%207.00049%2017.1716%207.00049%2018ZM13.5005%2018C13.5005%2018.8284%2012.8289%2019.5%2012.0005%2019.5C11.1721%2019.5%2010.5005%2018.8284%2010.5005%2018C10.5005%2017.1716%2011.1721%2016.5%2012.0005%2016.5C12.8289%2016.5%2013.5005%2017.1716%2013.5005%2018ZM18.5005%2019.5C19.3289%2019.5%2020.0005%2018.8284%2020.0005%2018C20.0005%2017.1716%2019.3289%2016.5%2018.5005%2016.5C17.6721%2016.5%2017.0005%2017.1716%2017.0005%2018C17.0005%2018.8284%2017.6721%2019.5%2018.5005%2019.5Z%22%20fill%3D%22white%22%2F%3E%3C%2Fsvg%3E"); +} .chart-types .thumb.bar-normal { background-image: url('../img/charts/chart-03.png'); } diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-material.css b/apps/spreadsheeteditor/mobile/resources/css/app-material.css index 4291b0a43..dfaba16c0 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-material.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-material.css @@ -6825,25 +6825,21 @@ i.icon.icon-text-valign-bottom { -webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%2340865c%22%3E%3Cg%3E%3Crect%20class%3D%22cls-1%22%20x%3D%222%22%20y%3D%2218%22%20width%3D%2219%22%20height%3D%221%22%2F%3E%3Crect%20class%3D%22cls-1%22%20x%3D%222%22%20y%3D%2220%22%20width%3D%2219%22%20height%3D%221%22%2F%3E%3Cpolygon%20class%3D%22cls-1%22%20points%3D%2211%204%2012%204%2012%2015.17%2014.35%2013.2%2015%2014.06%2011.5%2017%208%2014%208.65%2013.2%2011%2015.17%2011%204%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); } i.icon.icon-link { - width: 22px; - height: 22px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%2340865c%22%3E%3Cg%3E%3Cpath%20d%3D%22M12.4%2C9.8c0%2C0-2.1-0.1-3.8%2C1.2c-2.8%2C2-3.3%2C4.3-3.3%2C4.3s1.6-1.7%2C3.5-2.5c1.7-0.7%2C3.7-0.4%2C3.7-0.4v1.9l4.8-3.3V11l-4.8-3.3V9.8z%20M11%2C1C5.5%2C1%2C1%2C5.5%2C1%2C11c0%2C5.5%2C4.5%2C10%2C10%2C10s10-4.5%2C10-10C21%2C5.5%2C16.5%2C1%2C11%2C1z%20M11%2C20c-5%2C0-9-4.1-9-9C2%2C6%2C6%2C2%2C11%2C2s9%2C4.1%2C9%2C9C20%2C16%2C16%2C20%2C11%2C20z%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E"); + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M17.0235%207C18.4006%207%2019.5743%207.49845%2020.5446%208.49534C21.5149%209.46108%2022%2010.6293%2022%2012C22%2013.3708%2021.5149%2014.5546%2020.5446%2015.5515C19.5743%2016.5172%2018.4006%2017.0001%2017.0235%2017.0001H13V15H17C17.8451%2015%2018.5884%2014.7882%2019.1831%2014.1963C19.8091%2013.5733%2020%2012.8411%2020%2012C20%2011.1589%2019.8091%2010.4424%2019.1831%209.85049C18.5884%209.22743%2017.8685%209%2017.0235%209H13V7H17.0235ZM8.00939%2012.9814V11.0187H15.9906V12.9814H8.00939ZM4.76995%209.85049C4.17527%2010.4424%204%2011.1589%204%2012C4%2012.8411%204.17527%2013.5733%204.76995%2014.1963C5.39593%2014.7882%206.15493%2015%207%2015H11.0141V17.0001H6.97653C5.59937%2017.0001%204.42567%2016.5172%203.4554%2015.5515C2.48513%2014.5546%202%2013.3708%202%2012C2%2010.6293%202.48513%209.46108%203.4554%208.49534C4.42567%207.49845%205.59937%207%206.97653%207H11.0141V9H6.97653C6.13146%209%205.39593%209.22743%204.76995%209.85049Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); } -i.icon.icon-insimage { - width: 22px; - height: 22px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%2340865c%22%3E%3Cpath%20id%3D%22XMLID_43_%22%20d%3D%22M19%2C4L19%2C4H3v15l0%2C0l0%2C0l0%2C0h17V4H19z%20M7.5%2C7C8.3%2C7%2C9%2C7.7%2C9%2C8.5S8.3%2C10%2C7.5%2C10S6%2C9.3%2C6%2C8.5S6.7%2C7%2C7.5%2C7zM5.2%2C18l5.5-5.5l5.5%2C5.5H5.2z%20M19%2C18h-1.5l-4.3-4.3l4-4l1.8%2C1.8V18z%22%2F%3E%3C%2Fsvg%3E"); +i.icon.icon-insimage, +i.icon.icon-image-library { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23clip0)%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20%205.5H4C3.72386%205.5%203.5%205.72386%203.5%206V15.5822L8.03349%2011.6898C8.47476%2011.3109%209.11904%2011.2865%209.58778%2011.6308L13.5726%2014.5579L15.9619%2012.6774C16.4488%2012.2942%2017.1428%2012.3255%2017.5933%2012.7509L20.5%2015.4962V6C20.5%205.72386%2020.2761%205.5%2020%205.5ZM20.5%2017.5294L20.485%2017.5453L16.7201%2013.9895L14.3509%2015.8542C13.9095%2016.2016%2013.2905%2016.2119%2012.8378%2015.8793L8.85988%2012.9573L3.5%2017.5592V18C3.5%2018.2761%203.72386%2018.5%204%2018.5H20C20.2761%2018.5%2020.5%2018.2761%2020.5%2018V17.5294ZM4%204C2.89543%204%202%204.89543%202%206V18C2%2019.1046%202.89543%2020%204%2020H20C21.1046%2020%2022%2019.1046%2022%2018V6C22%204.89543%2021.1046%204%2020%204H4ZM16.5%209.5C16.5%2011.1569%2015.1569%2012.5%2013.5%2012.5C11.8431%2012.5%2010.5%2011.1569%2010.5%209.5C10.5%207.84315%2011.8431%206.5%2013.5%206.5C15.1569%206.5%2016.5%207.84315%2016.5%209.5ZM13.5%2011C14.3284%2011%2015%2010.3284%2015%209.5C15%208.67157%2014.3284%208%2013.5%208C12.6716%208%2012%208.67157%2012%209.5C12%2010.3284%2012.6716%2011%2013.5%2011Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0%22%3E%3Cpath%20d%3D%22M0%200H24V24H0V0Z%22%20fill%3D%22transparent%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"); } i.icon.icon-sort { width: 22px; height: 22px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20viewBox%3D%220%200%2022%2022%22%20fill%3D%22%2340865c%22%3E%3Cpolygon%20points%3D%228%2C16.4%207.3%2C15.7%205%2C18.1%205%2C2%204%2C2%204%2C18.1%201.7%2C15.7%201%2C16.4%204.5%2C20%204.5%2C20%204.5%2C20%20%22%2F%3E%3Cpath%20d%3D%22M19.3%2C4H8.7C8.1%2C4%2C7.8%2C4.6%2C8.1%2C5.1l3.9%2C5.9v4.7l2.8%2C1.5c0.5%2C0.3%2C1.1-0.1%2C1.1-0.7V11h0l3.9-5.9C20.2%2C4.6%2C19.9%2C4%2C19.3%2C4z%22%2F%3E%3C%2Fsvg%3E"); } -i.icon.icon-image-library { - width: 22px; - height: 22px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20viewBox%3D%220%200%2022%2022%22%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bisolation%3Aisolate%3B%7D.cls-2%7Bopacity%3A0.2%3B%7D.cls-3%7Bfill%3A%23fff%3B%7D.cls-10%2C.cls-11%2C.cls-4%2C.cls-6%2C.cls-7%2C.cls-8%2C.cls-9%7Bmix-blend-mode%3Amultiply%3B%7D.cls-4%7Bfill%3Aurl(%23grad_8)%3B%7D.cls-5%7Bfill%3Aurl(%23grad_10)%3B%7D.cls-6%7Bfill%3Aurl(%23grad_12)%3B%7D.cls-7%7Bfill%3Aurl(%23grad_14)%3B%7D.cls-8%7Bfill%3Aurl(%23grad_79)%3B%7D.cls-9%7Bfill%3Aurl(%23grad_77)%3B%7D.cls-10%7Bfill%3Aurl(%23grad_75)%3B%7D.cls-11%7Bfill%3Aurl(%23grad_81)%3B%7D%3C%2Fstyle%3E%3ClinearGradient%20id%3D%22grad_8%22%20x1%3D%2211.08%22%20y1%3D%2210.26%22%20x2%3D%2211.08%22%20y2%3D%221.26%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f3e916%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f89d34%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_10%22%20x1%3D%2211.08%22%20y1%3D%2220.44%22%20x2%3D%2211.08%22%20y2%3D%2211.88%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235eb6e8%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23958cc3%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_12%22%20x1%3D%221.46%22%20y1%3D%2211.05%22%20x2%3D%2210.46%22%20y2%3D%2211.05%22%20gradientTransform%3D%22translate(17%205.09)%20rotate(90)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23cc8dba%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f86867%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_14%22%20x1%3D%2211.73%22%20y1%3D%2211.05%22%20x2%3D%2220.73%22%20y2%3D%2211.05%22%20gradientTransform%3D%22translate(27.28%20-5.18)%20rotate(90)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%236ac07f%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23c5da3d%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_79%22%20x1%3D%2211.74%22%20y1%3D%2210.42%22%20x2%3D%2217.52%22%20y2%3D%224.63%22%20gradientTransform%3D%22translate(30.29%202.51)%20rotate(135)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23c5da3d%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f3e916%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_77%22%20x1%3D%224.7%22%20y1%3D%2217.49%22%20x2%3D%2210.48%22%20y2%3D%2211.71%22%20gradientTransform%3D%22translate(23.24%2019.65)%20rotate(135)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%239595c3%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23cc8dba%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_75%22%20x1%3D%224.69%22%20y1%3D%224.64%22%20x2%3D%2210.47%22%20y2%3D%2210.42%22%20gradientTransform%3D%22translate(7.54%20-3.15)%20rotate(45)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%23f86867%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%23f89d34%22%2F%3E%3C%2FlinearGradient%3E%3ClinearGradient%20id%3D%22grad_81%22%20x1%3D%2211.77%22%20y1%3D%2211.78%22%20x2%3D%2217.55%22%20y2%3D%2217.56%22%20gradientTransform%3D%22translate(14.63%20-6.05)%20rotate(45)%22%20gradientUnits%3D%22userSpaceOnUse%22%3E%3Cstop%20offset%3D%220%22%20stop-color%3D%22%235ec0e8%22%2F%3E%3Cstop%20offset%3D%221%22%20stop-color%3D%22%236ac07f%22%2F%3E%3C%2FlinearGradient%3E%3C%2Fdefs%3E%3Ctitle%3Eicons_for_svg%3C%2Ftitle%3E%3Cg%20class%3D%22cls-1%22%3E%3Cg%20id%3D%22%D0%A1%D0%BB%D0%BE%D0%B9_1%22%20data-name%3D%22%D0%A1%D0%BB%D0%BE%D0%B9%201%22%3E%3Crect%20class%3D%22cls-2%22%20x%3D%220.09%22%20y%3D%220.01%22%20width%3D%2222%22%20height%3D%2222%22%20rx%3D%224%22%20ry%3D%224%22%2F%3E%3Crect%20class%3D%22cls-3%22%20x%3D%220.57%22%20y%3D%220.49%22%20width%3D%2221.04%22%20height%3D%2221.04%22%20rx%3D%223.6%22%20ry%3D%223.6%22%2F%3E%3Crect%20class%3D%22cls-4%22%20x%3D%228.33%22%20y%3D%221.26%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%2F%3E%3Crect%20class%3D%22cls-5%22%20x%3D%228.33%22%20y%3D%2211.76%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%2F%3E%3Crect%20class%3D%22cls-6%22%20x%3D%223.21%22%20y%3D%226.55%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(-5.09%2017)%20rotate(-90)%22%2F%3E%3Crect%20class%3D%22cls-7%22%20x%3D%2213.48%22%20y%3D%226.55%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(5.18%2027.28)%20rotate(-90)%22%2F%3E%3Crect%20class%3D%22cls-8%22%20x%3D%2211.87%22%20y%3D%223.03%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(19.64%2023.19)%20rotate(-135)%22%2F%3E%3Crect%20class%3D%22cls-9%22%20x%3D%224.8%22%20y%3D%2210.14%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(2.54%2030.33)%20rotate(-135)%22%2F%3E%3Crect%20class%3D%22cls-10%22%20x%3D%224.83%22%20y%3D%223.03%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(-3.1%207.56)%20rotate(-45)%22%2F%3E%3Crect%20class%3D%22cls-11%22%20x%3D%2211.87%22%20y%3D%2210.14%22%20width%3D%225.5%22%20height%3D%229%22%20rx%3D%222.5%22%20ry%3D%222.5%22%20transform%3D%22translate(-6.07%2014.63)%20rotate(-45)%22%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"); -} i.icon.icon-function { width: 22px; height: 22px; @@ -7092,7 +7088,7 @@ i.icon.icon-done-comment { i.icon.icon-insert-comment { width: 24px; height: 24px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M20.1538%209.00708H11.8462C10.8266%209.00708%2010%209.83461%2010%2010.8554V15.1694C10%2016.1902%2010.8266%2017.0177%2011.8462%2017.0177H13.8329C13.9409%2017.0177%2014.0454%2017.0556%2014.1284%2017.1248L18.243%2020.392C18.5436%2020.6428%2019%2020.4288%2019%2020.037V17.4798C19%2017.2246%2019.2066%2017.0177%2019.4615%2017.0177H20.1538C21.1734%2017.0177%2022%2016.1902%2022%2015.1694V10.8554C22%209.83461%2021.1734%209.00708%2020.1538%209.00708ZM20%2010.0083C20.5523%2010.0083%2021%2010.4565%2021%2011.0095V15.0154C21%2015.5683%2020.5523%2016.0165%2020%2016.0165H18.0025L18%2018.8995C18%2019.2912%2018%2019%2018%2019L14.5%2016.0165H12C11.4477%2016.0165%2011%2015.5683%2011%2015.0154V11.0095C11%2010.4565%2011.4477%2010.0083%2012%2010.0083H20Z%22%20fill%3D%22%2340865c%22%2F%3E%3Cpath%20d%3D%22M14.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V12.0346C2%2013.3222%203.18908%2014.013%204.5%2014.013H5.5C5.82773%2014.013%206%2014.1917%206%2014.5136V17.5183C6%2018.0125%206.6135%2018.3352%207%2018.0189L11%2014.9858V13.5L7%2016.5V13.0118H4.5C3.78992%2013.0118%203%2012.732%203%2012.0346V5.50295C3%204.80547%203.78992%204.00118%204.5%204.00118H14.5C15.2101%204.00118%2016%204.80547%2016%205.50295V8.0059H17V5.50295C17%204.2153%2015.8109%203%2014.5%203Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M19.5%203H4.5C3.18908%203%202%204.2153%202%205.50295V15.0346C2%2016.3222%203.18908%2017.013%204.5%2017.013H5.5C5.82773%2017.013%206%2017.1917%206%2017.5136V21L12%2017H20C21.1046%2017%2022%2016.1046%2022%2015V8H20.5V14.5C20.5%2015.0523%2020.0523%2015.5%2019.5%2015.5H11.5L7.5%2018V15.5H4.5C3.94772%2015.5%203.5%2015.0523%203.5%2014.5V5.5C3.5%204.94772%203.94772%204.5%204.5%204.5H19.5C20.0523%204.5%2020.5%204.94772%2020.5%205.5V8H22V5.50295C22%204.2153%2020.8109%203%2019.5%203Z%22%20fill%3D%22%2340865c%22%2F%3E%3Cpath%20d%3D%22M6%207.5H18V9H6L6%207.5Z%22%20fill%3D%22%2340865c%22%2F%3E%3Cpath%20d%3D%22M6%2011H18V12.5H6V11Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); } i.icon.icon-done-comment-white { width: 24px; @@ -7159,6 +7155,31 @@ i.icon.icon-done-comment-white { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M14.9912%206C14.9912%208.18203%2014.4464%209.76912%2013.7789%2010.7492C13.101%2011.7447%2012.4042%2012%2011.9912%2012C11.5782%2012%2010.8814%2011.7447%2010.2035%2010.7492C9.53601%209.76912%208.99121%208.18203%208.99121%206C8.99121%204.23017%2010.4571%203%2011.9912%203C13.5254%203%2014.9912%204.23017%2014.9912%206ZM13.4917%2013.6397C13.0059%2013.8771%2012.4989%2014%2011.9912%2014C11.4861%2014%2010.9817%2013.8784%2010.4983%2013.6434C8.53188%2014.3681%206.94518%2015.0737%205.78927%2015.7768C4.10512%2016.8011%204%2017.4079%204%2017.5C4%2017.7664%204.1014%2018.3077%205.27104%2018.8939C6.50029%2019.5099%208.64545%2019.9999%2012%2020C15.3546%2020%2017.4997%2019.5099%2018.7289%2018.8939C19.8986%2018.3078%2020%2017.7664%2020%2017.5C20%2017.4079%2019.8949%2016.8011%2018.2107%2015.7768C17.0529%2015.0726%2015.4627%2014.3657%2013.4917%2013.6397ZM15.2272%2012.1594C16.2765%2010.7825%2016.9912%208.67814%2016.9912%206C16.9912%203%2014.5%201%2011.9912%201C9.48242%201%206.99121%203%206.99121%206C6.99121%208.68159%207.70777%2010.7879%208.75931%2012.1647C4.60309%2013.7964%202%2015.4951%202%2017.5C2%2019.9852%205%2021.9999%2012%2022C19%2022%2022%2019.9852%2022%2017.5C22%2015.4929%2019.3913%2013.7927%2015.2272%2012.1594Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); } +.navbar i.icon.icon-add-chart { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M22%203H17V21H22V3ZM9.5%209.00012H14.5V21.0001H9.5V9.00012ZM2%2013H7V21H2V13Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} +.navbar i.icon.icon-add-formula { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4%204H20V9H17V7H8.5L11.5%2012.5L8.5%2018H17V16H20V21H4V19.5L8%2012.5L4%205.5V4Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} +.navbar i.icon.icon-add-shape { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Ccircle%20cx%3D%2216%22%20cy%3D%2215%22%20r%3D%227%22%20fill%3D%22%23fff%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M3%203C2.44772%203%202%203.44772%202%204V17C2%2017.5523%202.44772%2018%203%2018H8.58152C8.20651%2017.0736%208%2016.0609%208%2015C8%2010.5817%2011.5817%207%2016%207C16.6906%207%2017.3608%207.08751%2018%207.25204V4C18%203.44772%2017.5523%203%2017%203H3Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} +.navbar i.icon.icon-add-image { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cg%20clip-path%3D%22url(%23clip0)%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M4.23958%2018L8.09375%2013.5L10.9062%2016.5L14.7604%2012L19.7604%2018H4.23958ZM21.3229%2020.3906C21.7743%2019.9844%2022%2019.5156%2022%2018.9844V5.01562C22%204.48438%2021.7743%204.01562%2021.3229%203.60938C20.8715%203.20313%2020.3507%203%2019.7604%203H4.23958C3.64931%203%203.12847%203.20313%202.67708%203.60938C2.22569%204.01562%202%204.48438%202%205.01562V18.9844C2%2019.5156%202.22569%2019.9844%202.67708%2020.3906C3.12847%2020.7969%203.64931%2021%204.23958%2021H19.7604C20.3507%2021%2020.8715%2020.7969%2021.3229%2020.3906ZM8%2011C9.10457%2011%2010%2010.1046%2010%209C10%207.89543%209.10457%207%208%207C6.89543%207%206%207.89543%206%209C6%2010.1046%206.89543%2011%208%2011Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22clip0%22%3E%3Cpath%20d%3D%22M0.000477791%200H24.0005V24H0.000477791V0Z%22%20fill%3D%22transparent%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E"); +} +.navbar i.icon.icon-add-other { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7%2012C7%2013.6569%205.65685%2015%204%2015C2.34315%2015%201%2013.6569%201%2012C1%2010.3431%202.34315%209%204%209C5.65685%209%207%2010.3431%207%2012ZM15%2012C15%2013.6569%2013.6569%2015%2012%2015C10.3431%2015%209%2013.6569%209%2012C9%2010.3431%2010.3431%209%2012%209C13.6569%209%2015%2010.3431%2015%2012ZM20%2015C21.6569%2015%2023%2013.6569%2023%2012C23%2010.3431%2021.6569%209%2020%209C18.3431%209%2017%2010.3431%2017%2012C17%2013.6569%2018.3431%2015%2020%2015Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} .chart-types .thumb.bar-normal { background-image: url('../img/charts/chart-03.png'); } @@ -7868,6 +7889,12 @@ html.pixel-ratio-3 .box-tabs ul > li:after { #add-shape .page { background-color: #fff; } +.container-add .categories i.icon { + opacity: 0.5; +} +.container-add .categories .active i.icon { + opacity: 1; +} .table-styles .row, .table-styles .row li { margin-bottom: 12px; diff --git a/apps/spreadsheeteditor/mobile/resources/less/app-material.less b/apps/spreadsheeteditor/mobile/resources/less/app-material.less index 897d5eb15..da83d5662 100644 --- a/apps/spreadsheeteditor/mobile/resources/less/app-material.less +++ b/apps/spreadsheeteditor/mobile/resources/less/app-material.less @@ -109,6 +109,18 @@ input, textarea { background-color: #fff; } } +.container-add { + .categories { + i.icon { + opacity: 0.5; + } + .active { + i.icon { + opacity: 1; + } + } + } +} // Table styles diff --git a/apps/spreadsheeteditor/mobile/resources/less/ios/_icons.less b/apps/spreadsheeteditor/mobile/resources/less/ios/_icons.less index 8f314eb15..2d8dab753 100644 --- a/apps/spreadsheeteditor/mobile/resources/less/ios/_icons.less +++ b/apps/spreadsheeteditor/mobile/resources/less/ios/_icons.less @@ -409,6 +409,62 @@ i.icon { height: 24px; .encoded-svg-background(''); } + //Insert + &.icon-add-chart { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-formula { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-shape { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-image { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-other { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } +} + +.active { + i.icon { + &.icon-add-chart { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-formula { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-shape { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-image { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-other { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + } } .chart-types .thumb { diff --git a/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less b/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less index 8a8250db9..f75328c16 100644 --- a/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less +++ b/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less @@ -101,25 +101,20 @@ i.icon { .encoded-svg-mask(''); } &.icon-link { - width: 22px; - height: 22px; - .encoded-svg-background(''); + width: 24px; + height: 24px; + .encoded-svg-background(''); } - &.icon-insimage { - width: 22px; - height: 22px; - .encoded-svg-background(''); + &.icon-insimage, &.icon-image-library { + width: 24px; + height: 24px; + .encoded-svg-background(''); } &.icon-sort { width: 22px; height: 22px; .encoded-svg-background(''); } - &.icon-image-library { - width: 22px; - height: 22px; - .encoded-svg-background('icons_for_svg'); - } &.icon-function { width: 22px; height: 22px; @@ -386,7 +381,7 @@ i.icon { &.icon-insert-comment { width: 24px; height: 24px; - .encoded-svg-background(''); + .encoded-svg-background(''); } &.icon-done-comment-white { width: 24px; @@ -458,6 +453,31 @@ i.icon { height: 24px; .encoded-svg-background(''); } + &.icon-add-chart { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-formula { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-shape { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-image { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } + &.icon-add-other { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } } From b79d2891ff6af4bcdc451e7025026cb105c8c83b Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 30 Apr 2020 17:34:04 +0300 Subject: [PATCH 33/72] Fix icons for new document templates --- apps/documenteditor/main/app/view/FileMenuPanels.js | 6 +++--- apps/documenteditor/main/resources/less/filemenu.less | 1 + apps/presentationeditor/main/app/view/FileMenuPanels.js | 6 +++--- apps/presentationeditor/main/resources/less/leftmenu.less | 1 + apps/spreadsheeteditor/main/app/view/FileMenuPanels.js | 6 +++--- apps/spreadsheeteditor/main/resources/less/leftmenu.less | 1 + 6 files changed, 12 insertions(+), 9 deletions(-) diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 50c45fba9..2967be441 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -655,9 +655,9 @@ define([ '<% _.each(docs, function(item) { %>', '
    ', '
    \")' + - ' } else { ' + + '<% if (!_.isEmpty(item.icon)) { %> ', + ' style="background-image: url(<%= item.icon %>);">', + '<% } else { ' + 'print(\">\")' + ' } %>', '
    ', diff --git a/apps/documenteditor/main/resources/less/filemenu.less b/apps/documenteditor/main/resources/less/filemenu.less index d81b84a87..fbf3a4730 100644 --- a/apps/documenteditor/main/resources/less/filemenu.less +++ b/apps/documenteditor/main/resources/less/filemenu.less @@ -196,6 +196,7 @@ .thumb { width: 102px; height: 128px; + background-repeat: no-repeat; } .title { diff --git a/apps/presentationeditor/main/app/view/FileMenuPanels.js b/apps/presentationeditor/main/app/view/FileMenuPanels.js index 2f4aa9aea..5cfb38c5f 100644 --- a/apps/presentationeditor/main/app/view/FileMenuPanels.js +++ b/apps/presentationeditor/main/app/view/FileMenuPanels.js @@ -564,9 +564,9 @@ define([ '<% _.each(docs, function(item) { %>', '
    ', '
    \")' + - ' } else { ' + + '<% if (!_.isEmpty(item.icon)) { %> ', + ' style="background-image: url(<%= item.icon %>);">', + '<% } else { ' + 'print(\">\")' + ' } %>', '
    ', diff --git a/apps/presentationeditor/main/resources/less/leftmenu.less b/apps/presentationeditor/main/resources/less/leftmenu.less index b3c5ef74a..5b7afd026 100644 --- a/apps/presentationeditor/main/resources/less/leftmenu.less +++ b/apps/presentationeditor/main/resources/less/leftmenu.less @@ -262,6 +262,7 @@ .thumb { width: 102px; height: 128px; + background-repeat: no-repeat; } .title { diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index ead372a55..6a8dd83de 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -1378,9 +1378,9 @@ define([ '<% _.each(docs, function(item) { %>', '
    ', '
    \")' + - ' } else { ' + + '<% if (!_.isEmpty(item.icon)) { %> ', + ' style="background-image: url(<%= item.icon %>);">', + '<% } else { ' + 'print(\">\")' + ' } %>', '
    ', diff --git a/apps/spreadsheeteditor/main/resources/less/leftmenu.less b/apps/spreadsheeteditor/main/resources/less/leftmenu.less index ee420a7a1..ef9af3ae0 100644 --- a/apps/spreadsheeteditor/main/resources/less/leftmenu.less +++ b/apps/spreadsheeteditor/main/resources/less/leftmenu.less @@ -315,6 +315,7 @@ .thumb { width: 102px; height: 128px; + background-repeat: no-repeat; } .title { From 9b1aa597c4c357151070d4bd02f9033ad4ab77cf Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Thu, 30 Apr 2020 18:35:30 +0300 Subject: [PATCH 34/72] Change api for new and recent files --- apps/api/documents/api.js | 7 ++++--- .../main/app/view/FileMenuPanels.js | 16 ++++++++++------ .../main/resources/less/filemenu.less | 1 + .../main/app/view/FileMenuPanels.js | 16 ++++++++++------ .../main/resources/less/leftmenu.less | 3 ++- .../main/app/view/FileMenuPanels.js | 16 ++++++++++------ .../main/resources/less/leftmenu.less | 1 + 7 files changed, 38 insertions(+), 22 deletions(-) diff --git a/apps/api/documents/api.js b/apps/api/documents/api.js index 1dcf5eada..0f8d84ec8 100644 --- a/apps/api/documents/api.js +++ b/apps/api/documents/api.js @@ -74,15 +74,16 @@ recent: [ { title: 'document title', + image: 'recent icon url', url: 'document url', - folder: 'path to document' + folder: 'path to document', }, ... ], templates: [ { - name: 'template name', - icon: 'template icon url', + title: 'template name', // name - is deprecated + image: 'template icon url', url: 'http://...' }, ... diff --git a/apps/documenteditor/main/app/view/FileMenuPanels.js b/apps/documenteditor/main/app/view/FileMenuPanels.js index 2967be441..2a897293e 100644 --- a/apps/documenteditor/main/app/view/FileMenuPanels.js +++ b/apps/documenteditor/main/app/view/FileMenuPanels.js @@ -601,9 +601,13 @@ define([ store: new Common.UI.DataViewStore(this.recent), itemTemplate: _.template([ '
    ', - '
    ', - '
    <%= Common.Utils.String.htmlEncode(title) %>
    ', - '
    <%= Common.Utils.String.htmlEncode(folder) %>
    ', + '
    ', + ' style="background-image: url(<%= image %>);background-position: center;"', + '<% } %>', + '>
    ', + '
    <% if (typeof title !== "undefined") {%><%= Common.Utils.String.htmlEncode(title || "") %><% } %>
    ', + '
    <% if (typeof folder !== "undefined") {%><%= Common.Utils.String.htmlEncode(folder || "") %><% } %>
    ', '
    ' ].join('')) }); @@ -655,13 +659,13 @@ define([ '<% _.each(docs, function(item) { %>', '
    ', '
    ', - ' style="background-image: url(<%= item.icon %>);">', + '<% if (!_.isEmpty(item.image)) { %> ', + ' style="background-image: url(<%= item.image %>);">', '<% } else { ' + 'print(\">\")' + ' } %>', '
    ', - '
    <%= item.name %>
    ', + '
    <%= Common.Utils.String.htmlEncode(item.name || item.title || "") %>
    ', '
    ', '<% }) %>', '
    ' diff --git a/apps/documenteditor/main/resources/less/filemenu.less b/apps/documenteditor/main/resources/less/filemenu.less index fbf3a4730..8cf1d774f 100644 --- a/apps/documenteditor/main/resources/less/filemenu.less +++ b/apps/documenteditor/main/resources/less/filemenu.less @@ -197,6 +197,7 @@ width: 102px; height: 128px; background-repeat: no-repeat; + background-position: center; } .title { diff --git a/apps/presentationeditor/main/app/view/FileMenuPanels.js b/apps/presentationeditor/main/app/view/FileMenuPanels.js index 5cfb38c5f..f228680c3 100644 --- a/apps/presentationeditor/main/app/view/FileMenuPanels.js +++ b/apps/presentationeditor/main/app/view/FileMenuPanels.js @@ -510,9 +510,13 @@ define([ store: new Common.UI.DataViewStore(this.recent), itemTemplate: _.template([ '
    ', - '
    ', - '
    <%= Common.Utils.String.htmlEncode(title) %>
    ', - '
    <%= Common.Utils.String.htmlEncode(folder) %>
    ', + '
    ', + ' style="background-image: url(<%= image %>);background-position: center;"', + '<% } %>', + '>
    ', + '
    <% if (typeof title !== "undefined") {%><%= Common.Utils.String.htmlEncode(title || "") %><% } %>
    ', + '
    <% if (typeof folder !== "undefined") {%><%= Common.Utils.String.htmlEncode(folder || "") %><% } %>
    ', '
    ' ].join('')) }); @@ -564,13 +568,13 @@ define([ '<% _.each(docs, function(item) { %>', '
    ', '
    ', - ' style="background-image: url(<%= item.icon %>);">', + '<% if (!_.isEmpty(item.image)) { %> ', + ' style="background-image: url(<%= item.image %>);">', '<% } else { ' + 'print(\">\")' + ' } %>', '
    ', - '
    <%= item.name %>
    ', + '
    <%= Common.Utils.String.htmlEncode(item.name || item.title || "") %>
    ', '
    ', '<% }) %>', '
    ' diff --git a/apps/presentationeditor/main/resources/less/leftmenu.less b/apps/presentationeditor/main/resources/less/leftmenu.less index 5b7afd026..82edc9190 100644 --- a/apps/presentationeditor/main/resources/less/leftmenu.less +++ b/apps/presentationeditor/main/resources/less/leftmenu.less @@ -263,7 +263,8 @@ width: 102px; height: 128px; background-repeat: no-repeat; - } + background-position: center; + } .title { padding-top: 20px; diff --git a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js index 6a8dd83de..74563f6bf 100644 --- a/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js +++ b/apps/spreadsheeteditor/main/app/view/FileMenuPanels.js @@ -1324,9 +1324,13 @@ define([ store: new Common.UI.DataViewStore(this.recent), itemTemplate: _.template([ '
    ', - '
    ', - '
    <%= Common.Utils.String.htmlEncode(title) %>
    ', - '
    <%= Common.Utils.String.htmlEncode(folder) %>
    ', + '
    ', + ' style="background-image: url(<%= image %>);background-position: center;"', + '<% } %>', + '>
    ', + '
    <% if (typeof title !== "undefined") {%><%= Common.Utils.String.htmlEncode(title || "") %><% } %>
    ', + '
    <% if (typeof folder !== "undefined") {%><%= Common.Utils.String.htmlEncode(folder || "") %><% } %>
    ', '
    ' ].join('')) }); @@ -1378,13 +1382,13 @@ define([ '<% _.each(docs, function(item) { %>', '
    ', '
    ', - ' style="background-image: url(<%= item.icon %>);">', + '<% if (!_.isEmpty(item.image)) { %> ', + ' style="background-image: url(<%= item.image %>);">', '<% } else { ' + 'print(\">\")' + ' } %>', '
    ', - '
    <%= item.name %>
    ', + '
    <%= Common.Utils.String.htmlEncode(item.name || item.title || "") %>
    ', '
    ', '<% }) %>', '
    ' diff --git a/apps/spreadsheeteditor/main/resources/less/leftmenu.less b/apps/spreadsheeteditor/main/resources/less/leftmenu.less index ef9af3ae0..4ca403a1d 100644 --- a/apps/spreadsheeteditor/main/resources/less/leftmenu.less +++ b/apps/spreadsheeteditor/main/resources/less/leftmenu.less @@ -316,6 +316,7 @@ width: 102px; height: 128px; background-repeat: no-repeat; + background-position: center; } .title { From a9391876010a8ea2a5454ff3c5c4377dd2d26517 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 6 May 2020 14:23:09 +0300 Subject: [PATCH 35/72] [DE] Chart settings: set button icon --- apps/documenteditor/main/app/view/ChartSettings.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apps/documenteditor/main/app/view/ChartSettings.js b/apps/documenteditor/main/app/view/ChartSettings.js index b3b62dbc4..283998330 100644 --- a/apps/documenteditor/main/app/view/ChartSettings.js +++ b/apps/documenteditor/main/app/view/ChartSettings.js @@ -136,17 +136,17 @@ define([ value = props.get_SeveralChartTypes(); if (this._state.SeveralCharts && value) { - this.btnChartType.setIconCls(''); + // this.btnChartType.setIconCls(''); this._state.ChartType = null; } else { var type = this.chartProps.getType(); if (this._state.ChartType !== type) { var record = this.mnuChartTypePicker.store.findWhere({type: type}); this.mnuChartTypePicker.selectRecord(record, true); - if (record) { - this.btnChartType.setIconCls('item-chartlist ' + record.get('iconCls')); - } else - this.btnChartType.setIconCls(''); + // if (record) { + // this.btnChartType.setIconCls('item-chartlist ' + record.get('iconCls')); + // } else + // this.btnChartType.setIconCls(''); this.updateChartStyles(this.api.asc_getChartPreviews(type)); this._state.ChartType = type; } @@ -248,7 +248,7 @@ define([ this.btnChartType = new Common.UI.Button({ cls : 'btn-large-dataview', - iconCls : 'item-chartlist bar-normal', + iconCls : 'svgicon chart-column-normal', menu : new Common.UI.Menu({ style: 'width: 435px; padding-top: 12px;', items: [ @@ -386,7 +386,7 @@ define([ rawData = record; } - this.btnChartType.setIconCls('item-chartlist ' + rawData.iconCls); + // this.btnChartType.setIconCls('item-chartlist ' + rawData.iconCls); this._state.ChartType = -1; if (this.api && !this._noApply && this.chartProps) { From add8ec86219c69ba73c9c4556d7ae7f1da6fe746 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Wed, 6 May 2020 15:46:12 +0300 Subject: [PATCH 36/72] [mobile] Fix comments --- .../mobile/lib/controller/Collaboration.js | 12 ++++++++---- apps/common/mobile/lib/view/Collaboration.js | 6 +++--- .../resources/less/ios/_collaboration.less | 4 ---- .../less/material/_collaboration.less | 9 --------- .../mobile/app/controller/Main.js | 2 +- .../mobile/app/controller/Settings.js | 6 +++--- .../mobile/app/controller/add/AddContainer.js | 2 +- .../mobile/resources/css/app-ios.css | 6 ------ .../mobile/resources/css/app-material.css | 19 +++++-------------- .../resources/less/material/_icons.less | 10 +++++----- .../mobile/resources/css/app-ios.css | 6 ------ .../mobile/resources/css/app-material.css | 19 +++++-------------- .../resources/less/material/_icons.less | 10 +++++----- .../mobile/app/controller/Main.js | 2 +- .../mobile/app/controller/Settings.js | 6 +++--- .../mobile/resources/css/app-ios.css | 6 ------ .../mobile/resources/css/app-material.css | 19 +++++-------------- .../resources/less/material/_icons.less | 10 +++++----- 18 files changed, 50 insertions(+), 104 deletions(-) diff --git a/apps/common/mobile/lib/controller/Collaboration.js b/apps/common/mobile/lib/controller/Collaboration.js index 3f2694a0a..2b00c0b13 100644 --- a/apps/common/mobile/lib/controller/Collaboration.js +++ b/apps/common/mobile/lib/controller/Collaboration.js @@ -786,7 +786,7 @@ define([ disabledViewComments: function(disabled) { if ($('.container-view-comment').length > 0) { if (disabled) { - $('.comment-resolve, .comment-menu, .add-reply').addClass('disabled'); + $('.comment-resolve, .comment-menu, .add-reply, .reply-menu').addClass('disabled'); if (!$('.prev-comment').hasClass('disabled')) { $('.prev-comment').addClass('disabled'); } @@ -794,7 +794,7 @@ define([ $('.next-comment').addClass('disabled'); } } else { - $('.comment-resolve, .comment-menu, .add-reply').removeClass('disabled'); + $('.comment-resolve, .comment-menu, .add-reply, .reply-menu').removeClass('disabled'); if (this.showComments.length > 1) { $('.prev-comment, .next-comment').removeClass('disabled'); } @@ -1268,6 +1268,7 @@ define([ $textarea.selectionStart = $textarea.value.length; }, 100); } else { + me.disabledViewComments(true); if ($('.comment-textarea').length === 0) { var $viewComment = $('.container-view-comment'); var oldComment = $viewComment.find('.comment-text span').text(); @@ -1348,6 +1349,7 @@ define([ }); $('.popup').css('z-index', '20000'); } else { + me.disabledViewComments(true); var $reply = $('.reply-item[data-ind=' + indReply + ']'); var $viewComment = $('.container-view-comment'); $reply.find('.reply-text').css('display', 'none'); @@ -1369,7 +1371,7 @@ define([ $textarea.selectionStart = $textarea.value.length; }); $('#edit-reply').single('click', _.bind(me.onEditReply, me, comment, indReply)); - $('.cancel-reply').single('click', _.bind(me.onCancelEditReply, me)); + $('.cancel-reply').single('click', _.bind(me.onCancelEditReply, me, indReply)); } } }, @@ -1404,7 +1406,9 @@ define([ } }, - onCancelEditReply: function() { + onCancelEditReply: function(indReply) { + var $viewComment = $('.container-view-comment'), + $reply = $('.reply-item[data-ind=' + indReply + ']'); $viewComment.find('a#edit-reply, a.cancel-reply, .edit-reply-textarea').remove(); $reply.find('.reply-text').css('display', 'block'); $viewComment.find('a.prev-comment, a.next-comment, a.add-reply').css('display', 'flex'); diff --git a/apps/common/mobile/lib/view/Collaboration.js b/apps/common/mobile/lib/view/Collaboration.js index 13a47f164..66b26c2d9 100644 --- a/apps/common/mobile/lib/view/Collaboration.js +++ b/apps/common/mobile/lib/view/Collaboration.js @@ -344,7 +344,7 @@ define([ '' + '' + '' + '' + '
    ' + diff --git a/apps/common/mobile/resources/less/ios/_collaboration.less b/apps/common/mobile/resources/less/ios/_collaboration.less index d3a89c340..698a6d96a 100644 --- a/apps/common/mobile/resources/less/ios/_collaboration.less +++ b/apps/common/mobile/resources/less/ios/_collaboration.less @@ -195,9 +195,6 @@ } .container-edit-comment { - .navbar { - background-color: #FFFFFF; - } .page { background-color: #FFFFFF; } @@ -378,7 +375,6 @@ .container-add-reply { height: 100%; .navbar { - background-color: #FFFFFF; a.link i + span { margin-left: 0; } diff --git a/apps/common/mobile/resources/less/material/_collaboration.less b/apps/common/mobile/resources/less/material/_collaboration.less index d58a5a7ee..0f0e93925 100644 --- a/apps/common/mobile/resources/less/material/_collaboration.less +++ b/apps/common/mobile/resources/less/material/_collaboration.less @@ -220,13 +220,6 @@ display: none; } -.container-edit-comment { - .navbar { - background-color: #FFFFFF; - color: @themeColor; - } -} - //view comment .container-view-comment { position: fixed; @@ -407,8 +400,6 @@ .container-edit-comment, .container-add-reply { height: 100%; .navbar { - background-color: #FFFFFF; - color: #000; &:after { content: ''; position: absolute; diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js index 2f0351f5b..a630bb57c 100644 --- a/apps/documenteditor/mobile/app/controller/Main.js +++ b/apps/documenteditor/mobile/app/controller/Main.js @@ -528,7 +528,7 @@ define([ me.api.asc_SetTrackRevisions(me.appOptions.isReviewOnly || Common.localStorage.getBool("de-mobile-track-changes-" + (me.appOptions.fileKey || ''))); /** coauthoring begin **/ - this.isLiveCommenting = Common.localStorage.getBool("de-settings-livecomment", true); + this.isLiveCommenting = Common.localStorage.getBool("de-mobile-settings-livecomment", true); var resolved = Common.localStorage.getBool("de-settings-resolvedcomment", true); this.isLiveCommenting ? this.api.asc_showComments(resolved) : this.api.asc_hideComments(); /** coauthoring end **/ diff --git a/apps/documenteditor/mobile/app/controller/Settings.js b/apps/documenteditor/mobile/app/controller/Settings.js index a1205cd8f..c058d65bd 100644 --- a/apps/documenteditor/mobile/app/controller/Settings.js +++ b/apps/documenteditor/mobile/app/controller/Settings.js @@ -237,7 +237,7 @@ define([ $('#settings-hidden-borders input:checkbox').attr('checked', (Common.localStorage.getItem("de-mobile-hidden-borders") == 'true') ? true : false); $('#settings-hidden-borders input:checkbox').single('change', _.bind(me.onShowTableEmptyLine, me)); $('#settings-orthography').single('click', _.bind(me.onOrthographyCheck, me)); - var displayComments = Common.localStorage.getBool("de-settings-livecomment", true); + var displayComments = Common.localStorage.getBool("de-mobile-settings-livecomment", true); $('#settings-display-comments input:checkbox').attr('checked', displayComments); $('#settings-display-comments input:checkbox').single('change', _.bind(me.onChangeDisplayComments, me)); var displayResolved = Common.localStorage.getBool("de-settings-resolvedcomment", true); @@ -285,11 +285,11 @@ define([ this.api.asc_showComments(resolved); $("#settings-display-resolved").removeClass("disabled"); } - Common.localStorage.setBool("de-settings-livecomment", displayComments); + Common.localStorage.setBool("de-mobile-settings-livecomment", displayComments); }, onChangeDisplayResolved: function(e) { - var displayComments = Common.localStorage.getBool("de-settings-livecomment"); + var displayComments = Common.localStorage.getBool("de-mobile-settings-livecomment"); if (displayComments) { var resolved = $(e.currentTarget).is(':checked'); if (this.api) { diff --git a/apps/documenteditor/mobile/app/controller/add/AddContainer.js b/apps/documenteditor/mobile/app/controller/add/AddContainer.js index 6a5975fef..265a0412b 100644 --- a/apps/documenteditor/mobile/app/controller/add/AddContainer.js +++ b/apps/documenteditor/mobile/app/controller/add/AddContainer.js @@ -75,7 +75,7 @@ define([ uiApp.closeModal(); me._showByStack(Common.SharedSettings.get('phone')); - uiApp.showTab('#add-other'); + //uiApp.showTab('#add-other'); DE.getController('Toolbar').getView('Toolbar').hideSearch(); }, diff --git a/apps/documenteditor/mobile/resources/css/app-ios.css b/apps/documenteditor/mobile/resources/css/app-ios.css index 3c06ccd77..9d6be9bf5 100644 --- a/apps/documenteditor/mobile/resources/css/app-ios.css +++ b/apps/documenteditor/mobile/resources/css/app-ios.css @@ -6757,9 +6757,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .settings.popover .list-block ul.list-reply:last-child:after { display: none; } -.container-edit-comment .navbar { - background-color: #FFFFFF; -} .container-edit-comment .page { background-color: #FFFFFF; } @@ -6930,9 +6927,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-add-reply { height: 100%; } -.container-add-reply .navbar { - background-color: #FFFFFF; -} .container-add-reply .navbar a.link i + span { margin-left: 0; } diff --git a/apps/documenteditor/mobile/resources/css/app-material.css b/apps/documenteditor/mobile/resources/css/app-material.css index 67d4bd728..0beb5df9f 100644 --- a/apps/documenteditor/mobile/resources/css/app-material.css +++ b/apps/documenteditor/mobile/resources/css/app-material.css @@ -6387,10 +6387,6 @@ html.phone .document-menu .list-block .item-link { .settings.popover .list-block ul.list-reply:last-child:after { display: none; } -.container-edit-comment .navbar { - background-color: #FFFFFF; - color: #446995; -} .container-view-comment { position: fixed; -webkit-transition: height 100ms; @@ -6559,11 +6555,6 @@ html.phone .document-menu .list-block .item-link { .container-add-reply { height: 100%; } -.container-edit-comment .navbar, -.container-add-reply .navbar { - background-color: #FFFFFF; - color: #000; -} .container-edit-comment .navbar:after, .container-add-reply .navbar:after { content: ''; @@ -7101,11 +7092,6 @@ i.icon.icon-next-comment { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9.98438%206L15.9844%2012L9.98438%2018L8.57812%2016.5938L13.1719%2012L8.57812%207.40625L9.98438%206Z%22%20fill%3D%22%23446995%22%2F%3E%3C%2Fsvg%3E"); } -i.icon.icon-close-comment { - width: 24px; - height: 24px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9844%206.42188L13.4062%2012L18.9844%2017.5781L17.5781%2018.9844L12%2013.4062L6.42188%2018.9844L5.01562%2017.5781L10.5938%2012L5.01562%206.42188L6.42188%205.01562L12%2010.5938L17.5781%205.01562L18.9844%206.42188Z%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%200.6)%22%2F%3E%3C%2Fsvg%3E"); -} i.icon.icon-done-comment { width: 24px; height: 24px; @@ -7201,6 +7187,11 @@ i.icon.icon-done-comment-white { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7%2012C7%2013.6569%205.65685%2015%204%2015C2.34315%2015%201%2013.6569%201%2012C1%2010.3431%202.34315%209%204%209C5.65685%209%207%2010.3431%207%2012ZM15%2012C15%2013.6569%2013.6569%2015%2012%2015C10.3431%2015%209%2013.6569%209%2012C9%2010.3431%2010.3431%209%2012%209C13.6569%209%2015%2010.3431%2015%2012ZM20%2015C21.6569%2015%2023%2013.6569%2023%2012C23%2010.3431%2021.6569%209%2020%209C18.3431%209%2017%2010.3431%2017%2012C17%2013.6569%2018.3431%2015%2020%2015Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); } +.navbar i.icon.icon-close-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9844%206.42188L13.4062%2012L18.9844%2017.5781L17.5781%2018.9844L12%2013.4062L6.42188%2018.9844L5.01562%2017.5781L10.5938%2012L5.01562%206.42188L6.42188%205.01562L12%2010.5938L17.5781%205.01562L18.9844%206.42188Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} .sailfish i.icon.icon-text-align-center { background-color: transparent; -webkit-mask-image: none; diff --git a/apps/documenteditor/mobile/resources/less/material/_icons.less b/apps/documenteditor/mobile/resources/less/material/_icons.less index 4db39aeac..8e6ee9569 100644 --- a/apps/documenteditor/mobile/resources/less/material/_icons.less +++ b/apps/documenteditor/mobile/resources/less/material/_icons.less @@ -429,11 +429,6 @@ i.icon { height: 24px; .encoded-svg-background(''); } - &.icon-close-comment { - width: 24px; - height: 24px; - .encoded-svg-background(''); - } &.icon-done-comment { width: 24px; height: 24px; @@ -535,5 +530,10 @@ i.icon { height: 24px; .encoded-svg-background(''); } + &.icon-close-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } } \ No newline at end of file diff --git a/apps/presentationeditor/mobile/resources/css/app-ios.css b/apps/presentationeditor/mobile/resources/css/app-ios.css index 954b546fb..4c53197da 100644 --- a/apps/presentationeditor/mobile/resources/css/app-ios.css +++ b/apps/presentationeditor/mobile/resources/css/app-ios.css @@ -6757,9 +6757,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .settings.popover .list-block ul.list-reply:last-child:after { display: none; } -.container-edit-comment .navbar { - background-color: #FFFFFF; -} .container-edit-comment .page { background-color: #FFFFFF; } @@ -6930,9 +6927,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-add-reply { height: 100%; } -.container-add-reply .navbar { - background-color: #FFFFFF; -} .container-add-reply .navbar a.link i + span { margin-left: 0; } diff --git a/apps/presentationeditor/mobile/resources/css/app-material.css b/apps/presentationeditor/mobile/resources/css/app-material.css index bf6b594e0..db85e3b04 100644 --- a/apps/presentationeditor/mobile/resources/css/app-material.css +++ b/apps/presentationeditor/mobile/resources/css/app-material.css @@ -6387,10 +6387,6 @@ html.phone .document-menu .list-block .item-link { .settings.popover .list-block ul.list-reply:last-child:after { display: none; } -.container-edit-comment .navbar { - background-color: #FFFFFF; - color: #aa5252; -} .container-view-comment { position: fixed; -webkit-transition: height 100ms; @@ -6559,11 +6555,6 @@ html.phone .document-menu .list-block .item-link { .container-add-reply { height: 100%; } -.container-edit-comment .navbar, -.container-add-reply .navbar { - background-color: #FFFFFF; - color: #000; -} .container-edit-comment .navbar:after, .container-add-reply .navbar:after { content: ''; @@ -7081,11 +7072,6 @@ i.icon.icon-next-comment { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9.98438%206L15.9844%2012L9.98438%2018L8.57812%2016.5938L13.1719%2012L8.57812%207.40625L9.98438%206Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E"); } -i.icon.icon-close-comment { - width: 24px; - height: 24px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9844%206.42188L13.4062%2012L18.9844%2017.5781L17.5781%2018.9844L12%2013.4062L6.42188%2018.9844L5.01562%2017.5781L10.5938%2012L5.01562%206.42188L6.42188%205.01562L12%2010.5938L17.5781%205.01562L18.9844%206.42188Z%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%200.6)%22%2F%3E%3C%2Fsvg%3E"); -} i.icon.icon-done-comment { width: 24px; height: 24px; @@ -7196,6 +7182,11 @@ i.icon.icon-link { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7%2012C7%2013.6569%205.65685%2015%204%2015C2.34315%2015%201%2013.6569%201%2012C1%2010.3431%202.34315%209%204%209C5.65685%209%207%2010.3431%207%2012ZM15%2012C15%2013.6569%2013.6569%2015%2012%2015C10.3431%2015%209%2013.6569%209%2012C9%2010.3431%2010.3431%209%2012%209C13.6569%209%2015%2010.3431%2015%2012ZM20%2015C21.6569%2015%2023%2013.6569%2023%2012C23%2010.3431%2021.6569%209%2020%209C18.3431%209%2017%2010.3431%2017%2012C17%2013.6569%2018.3431%2015%2020%2015Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); } +.navbar i.icon.icon-close-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9844%206.42188L13.4062%2012L18.9844%2017.5781L17.5781%2018.9844L12%2013.4062L6.42188%2018.9844L5.01562%2017.5781L10.5938%2012L5.01562%206.42188L6.42188%205.01562L12%2010.5938L17.5781%205.01562L18.9844%206.42188Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} .sailfish i.icon.icon-text-align-center { background-color: transparent; -webkit-mask-image: none; diff --git a/apps/presentationeditor/mobile/resources/less/material/_icons.less b/apps/presentationeditor/mobile/resources/less/material/_icons.less index d998fdfa3..ef2e2e839 100644 --- a/apps/presentationeditor/mobile/resources/less/material/_icons.less +++ b/apps/presentationeditor/mobile/resources/less/material/_icons.less @@ -416,11 +416,6 @@ i.icon { height: 24px; .encoded-svg-background(''); } - &.icon-close-comment { - width: 24px; - height: 24px; - .encoded-svg-background(''); - } &.icon-done-comment { width: 24px; height: 24px; @@ -536,5 +531,10 @@ i.icon { height: 24px; .encoded-svg-background(''); } + &.icon-close-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } } \ No newline at end of file diff --git a/apps/spreadsheeteditor/mobile/app/controller/Main.js b/apps/spreadsheeteditor/mobile/app/controller/Main.js index 2f38c4a03..bf5493a3c 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Main.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Main.js @@ -526,7 +526,7 @@ define([ this.api.asc_setZoom(zf>0 ? zf : 1); /** coauthoring begin **/ - this.isLiveCommenting = Common.localStorage.getBool("sse-settings-livecomment", true); + this.isLiveCommenting = Common.localStorage.getBool("sse-mobile-settings-livecomment", true); var resolved = Common.localStorage.getBool("sse-settings-resolvedcomment", true); this.isLiveCommenting ? this.api.asc_showComments(resolved) : this.api.asc_hideComments(); diff --git a/apps/spreadsheeteditor/mobile/app/controller/Settings.js b/apps/spreadsheeteditor/mobile/app/controller/Settings.js index bb74e6fc9..847826eed 100644 --- a/apps/spreadsheeteditor/mobile/app/controller/Settings.js +++ b/apps/spreadsheeteditor/mobile/app/controller/Settings.js @@ -595,7 +595,7 @@ define([ $r1c1Style.single('change', _.bind(me.clickR1C1Style, me)); //init Commenting Display - var displayComments = Common.localStorage.getBool("sse-settings-livecomment", true); + var displayComments = Common.localStorage.getBool("sse-mobile-settings-livecomment", true); $('#settings-display-comments input:checkbox').attr('checked', displayComments); $('#settings-display-comments input:checkbox').single('change', _.bind(me.onChangeDisplayComments, me)); var displayResolved = Common.localStorage.getBool("sse-settings-resolvedcomment", true); @@ -619,11 +619,11 @@ define([ this.api.asc_showComments(resolved); $("#settings-display-resolved").removeClass("disabled"); } - Common.localStorage.setBool("sse-settings-livecomment", displayComments); + Common.localStorage.setBool("sse-mobile-settings-livecomment", displayComments); }, onChangeDisplayResolved: function(e) { - var displayComments = Common.localStorage.getBool("sse-settings-livecomment"); + var displayComments = Common.localStorage.getBool("sse-mobile-settings-livecomment"); if (displayComments) { var resolved = $(e.currentTarget).is(':checked'); if (this.api) { diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css index 828087606..b18dcba25 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-ios.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-ios.css @@ -6750,9 +6750,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .settings.popover .list-block ul.list-reply:last-child:after { display: none; } -.container-edit-comment .navbar { - background-color: #FFFFFF; -} .container-edit-comment .page { background-color: #FFFFFF; } @@ -6923,9 +6920,6 @@ html.pixel-ratio-3 .document-menu .list-block li:last-child li .item-inner:after .container-add-reply { height: 100%; } -.container-add-reply .navbar { - background-color: #FFFFFF; -} .container-add-reply .navbar a.link i + span { margin-left: 0; } diff --git a/apps/spreadsheeteditor/mobile/resources/css/app-material.css b/apps/spreadsheeteditor/mobile/resources/css/app-material.css index dfaba16c0..8d86bf5ee 100644 --- a/apps/spreadsheeteditor/mobile/resources/css/app-material.css +++ b/apps/spreadsheeteditor/mobile/resources/css/app-material.css @@ -6397,10 +6397,6 @@ html.phone .document-menu .list-block .item-link { .settings.popover .list-block ul.list-reply:last-child:after { display: none; } -.container-edit-comment .navbar { - background-color: #FFFFFF; - color: #40865c; -} .container-view-comment { position: fixed; -webkit-transition: height 100ms; @@ -6569,11 +6565,6 @@ html.phone .document-menu .list-block .item-link { .container-add-reply { height: 100%; } -.container-edit-comment .navbar, -.container-add-reply .navbar { - background-color: #FFFFFF; - color: #000; -} .container-edit-comment .navbar:after, .container-add-reply .navbar:after { content: ''; @@ -7075,11 +7066,6 @@ i.icon.icon-next-comment { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M9.98438%206L15.9844%2012L9.98438%2018L8.57812%2016.5938L13.1719%2012L8.57812%207.40625L9.98438%206Z%22%20fill%3D%22%2340865c%22%2F%3E%3C%2Fsvg%3E"); } -i.icon.icon-close-comment { - width: 24px; - height: 24px; - background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9844%206.42188L13.4062%2012L18.9844%2017.5781L17.5781%2018.9844L12%2013.4062L6.42188%2018.9844L5.01562%2017.5781L10.5938%2012L5.01562%206.42188L6.42188%205.01562L12%2010.5938L17.5781%205.01562L18.9844%206.42188Z%22%20fill%3D%22rgba(0%2C%200%2C%200%2C%200.6)%22%2F%3E%3C%2Fsvg%3E"); -} i.icon.icon-done-comment { width: 24px; height: 24px; @@ -7180,6 +7166,11 @@ i.icon.icon-done-comment-white { height: 24px; background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7%2012C7%2013.6569%205.65685%2015%204%2015C2.34315%2015%201%2013.6569%201%2012C1%2010.3431%202.34315%209%204%209C5.65685%209%207%2010.3431%207%2012ZM15%2012C15%2013.6569%2013.6569%2015%2012%2015C10.3431%2015%209%2013.6569%209%2012C9%2010.3431%2010.3431%209%2012%209C13.6569%209%2015%2010.3431%2015%2012ZM20%2015C21.6569%2015%2023%2013.6569%2023%2012C23%2010.3431%2021.6569%209%2020%209C18.3431%209%2017%2010.3431%2017%2012C17%2013.6569%2018.3431%2015%2020%2015Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); } +.navbar i.icon.icon-close-comment { + width: 24px; + height: 24px; + background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M18.9844%206.42188L13.4062%2012L18.9844%2017.5781L17.5781%2018.9844L12%2013.4062L6.42188%2018.9844L5.01562%2017.5781L10.5938%2012L5.01562%206.42188L6.42188%205.01562L12%2010.5938L17.5781%205.01562L18.9844%206.42188Z%22%20fill%3D%22%23fff%22%2F%3E%3C%2Fsvg%3E"); +} .chart-types .thumb.bar-normal { background-image: url('../img/charts/chart-03.png'); } diff --git a/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less b/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less index f75328c16..2cc96f141 100644 --- a/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less +++ b/apps/spreadsheeteditor/mobile/resources/less/material/_icons.less @@ -368,11 +368,6 @@ i.icon { height: 24px; .encoded-svg-background(''); } - &.icon-close-comment { - width: 24px; - height: 24px; - .encoded-svg-background(''); - } &.icon-done-comment { width: 24px; height: 24px; @@ -478,6 +473,11 @@ i.icon { height: 24px; .encoded-svg-background(''); } + &.icon-close-comment { + width: 24px; + height: 24px; + .encoded-svg-background(''); + } } } From fd5c8d5f79db159952b41f41e1fc5cf5e3df8944 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 6 May 2020 17:17:03 +0300 Subject: [PATCH 37/72] [DE] Fix svg icon for chart type --- apps/common/main/lib/component/Button.js | 10 ++++++++-- apps/common/main/resources/less/buttons.less | 6 ++++++ apps/documenteditor/main/app/view/ChartSettings.js | 14 +++++++------- apps/documenteditor/main/app/view/Toolbar.js | 2 +- 4 files changed, 22 insertions(+), 10 deletions(-) diff --git a/apps/common/main/lib/component/Button.js b/apps/common/main/lib/component/Button.js index 12eb656b7..1e7d61218 100644 --- a/apps/common/main/lib/component/Button.js +++ b/apps/common/main/lib/component/Button.js @@ -646,8 +646,14 @@ define([ oldCls = this.iconCls; this.iconCls = cls; - btnIconEl.removeClass(oldCls); - btnIconEl.addClass(cls || ''); + if (/svgicon/.test(this.iconCls)) { + var icon = /svgicon\s(\S+)/.exec(this.iconCls); + btnIconEl.find('use.zoom-int').attr('xlink:href', icon && icon.length>1 ? '#' + icon[1]: ''); + btnIconEl.find('use.zoom-grit').attr('xlink:href', icon && icon.length>1 ? '#' + icon[1] + '-150' : ''); + } else { + btnIconEl.removeClass(oldCls); + btnIconEl.addClass(cls || ''); + } }, changeIcon: function(opts) { diff --git a/apps/common/main/resources/less/buttons.less b/apps/common/main/resources/less/buttons.less index 213acbb00..d4db0ae96 100644 --- a/apps/common/main/resources/less/buttons.less +++ b/apps/common/main/resources/less/buttons.less @@ -777,6 +777,12 @@ position: relative; } + svg.icon { + vertical-align: middle; + width: 52px; + padding: 5px; + } + &:hover, .over, &:active, diff --git a/apps/documenteditor/main/app/view/ChartSettings.js b/apps/documenteditor/main/app/view/ChartSettings.js index 283998330..3fa55df2e 100644 --- a/apps/documenteditor/main/app/view/ChartSettings.js +++ b/apps/documenteditor/main/app/view/ChartSettings.js @@ -136,17 +136,17 @@ define([ value = props.get_SeveralChartTypes(); if (this._state.SeveralCharts && value) { - // this.btnChartType.setIconCls(''); + this.btnChartType.setIconCls('svgicon'); this._state.ChartType = null; } else { var type = this.chartProps.getType(); if (this._state.ChartType !== type) { var record = this.mnuChartTypePicker.store.findWhere({type: type}); this.mnuChartTypePicker.selectRecord(record, true); - // if (record) { - // this.btnChartType.setIconCls('item-chartlist ' + record.get('iconCls')); - // } else - // this.btnChartType.setIconCls(''); + if (record) { + this.btnChartType.setIconCls('svgicon ' + 'chart-' + record.get('iconCls')); + } else + this.btnChartType.setIconCls('svgicon'); this.updateChartStyles(this.api.asc_getChartPreviews(type)); this._state.ChartType = type; } @@ -250,7 +250,7 @@ define([ cls : 'btn-large-dataview', iconCls : 'svgicon chart-column-normal', menu : new Common.UI.Menu({ - style: 'width: 435px; padding-top: 12px;', + style: 'width: 364px; padding-top: 12px;', items: [ { template: _.template('') } ] @@ -386,7 +386,7 @@ define([ rawData = record; } - // this.btnChartType.setIconCls('item-chartlist ' + rawData.iconCls); + this.btnChartType.setIconCls('svgicon ' + 'chart-' + rawData.iconCls); this._state.ChartType = -1; if (this.api && !this._noApply && this.chartProps) { diff --git a/apps/documenteditor/main/app/view/Toolbar.js b/apps/documenteditor/main/app/view/Toolbar.js index 6f53ada8a..6bac2a065 100644 --- a/apps/documenteditor/main/app/view/Toolbar.js +++ b/apps/documenteditor/main/app/view/Toolbar.js @@ -1662,7 +1662,7 @@ define([ this.paragraphControls.push(this.mnuInsertPageCount); this.btnInsertChart.setMenu( new Common.UI.Menu({ - style: 'width: 435px;', + style: 'width: 364px;', items: [ {template: _.template('')} ] From 0a54513e4716670417bd5c8f876f72a4b5980370 Mon Sep 17 00:00:00 2001 From: Julia Radzhabova Date: Wed, 6 May 2020 18:04:48 +0300 Subject: [PATCH 38/72] [SSE][PE] Set svg icons for chart types --- .../main/resources/img/toolbar/charttypes.png | Bin 8042 -> 0 bytes .../resources/img/toolbar/charttypes@1.5x.png | Bin 15189 -> 0 bytes .../resources/img/toolbar/charttypes@2x.png | Bin 17074 -> 0 bytes apps/common/main/resources/less/toolbar.less | 116 ------------------ .../main/app/view/ChartSettings.js | 14 +-- .../main/app/view/DocumentHolder.js | 4 +- .../main/app/view/Toolbar.js | 4 +- apps/presentationeditor/main/index.html | 1 + .../presentationeditor/main/index.html.deploy | 1 + .../presentationeditor/main/index_loader.html | 1 + .../main/index_loader.html.deploy | 1 + .../main/app/view/ChartSettings.js | 26 ++-- .../main/app/view/ChartSettingsDlg.js | 24 ++-- .../main/app/view/Toolbar.js | 4 +- apps/spreadsheeteditor/main/index.html | 1 + apps/spreadsheeteditor/main/index.html.deploy | 1 + apps/spreadsheeteditor/main/index_loader.html | 1 + .../main/index_loader.html.deploy | 1 + 18 files changed, 46 insertions(+), 154 deletions(-) delete mode 100644 apps/common/main/resources/img/toolbar/charttypes.png delete mode 100644 apps/common/main/resources/img/toolbar/charttypes@1.5x.png delete mode 100644 apps/common/main/resources/img/toolbar/charttypes@2x.png diff --git a/apps/common/main/resources/img/toolbar/charttypes.png b/apps/common/main/resources/img/toolbar/charttypes.png deleted file mode 100644 index e13818e761547b29f367e60e275462c1ba8ec15f..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 8042 zcmbVxXH-+&)-Fh|iAe8FDI#5ZkuK7)AksmK(k1i~dXTE1(o3kXf&`@pLa)*iKw7BM zLPrRlz!%OrcZ_p?eD}xQV~w%aUVE)Q=kv_D=AL8j_r``gG?c8A1Ox;$x{ozY@%=dg z0iiWHDSlMJc*~oBfJ;JGQ|(#6%yyduA%2oj9GCF*ZWMR`fWP_AHS@y<(Dshso1n)5 zUFVJ#&2_)&M0)Fz4tEmLhPo%N_Of&8;6ctOh@H%x#@w&x-TnHLSlQY1vlt0VF$d1N zrM?2SD0Z|sK+J)j60KV31)1mujW3ri(G5f11(2J>#sA~$x5)FU+W)oP%58F9yKQq- zuHg=u$GlzJPHe+JK>>Cv-cBn6J$G}cNdA&)ete7hCTolwM#X+yFUW&z(W{bpw*qw@ zh5&SJDM*8XXD2`hDA5As$AuTnUFAR=o1%IZKs}-HM_*?_nrI|N?+07qU#a0oVSwX- za^NzQ2u89>9?X?T{s&Rl*w=~tJf*i}&Mtdf>9G8EshV`%;uHDs_{cJ@m^N~+MB#^DyhkM zcDZZ|%|me+9wwAn#1$6KU&XOnp+xl4PWBN!S3$wRLOt)hhkkp!0H#RM@cUKwb@$)0 z@BE-Il#4DinTIqU0{J6Y1alM0Q%5rhbr*TIhQo(T=u%2WN^y8D7nbN+`-bcO( zITF9SLD8sn<0|3Ik*K$$mbqi&1DTK*^TC|vPv!>B(C-ei8%)ZML3IABXl(NeUJKxB= zBVee+dA)wmAPcn82~c%&Sh(=KdpyoJLNUWKw?@SHQFcY71=B$#rj+PzX6fDi#}$S+ zj>`6cZ)~DHTM@dkT#LgIE|wm)U`tw5Mm9>Wvi0ix{(D8n>kGs25v4%!o4RM|l+69tYNKJYPwAw7)y4}=+PlY(VxX$F zF(0$7b1>YjB~i@hpme$Or2++$oVceUAD#nlJ4T+#(w_AFp4tKMwULQTSkUIHo-Rgh zruo^aAUxk-Oyabk5?%WdU5n1m?U@As2@fl5Q0+4%eFl(f&an+_n0%pylr8vJ{sYY% z2(EzaZ|YkIt};A4W*#0|Z9U`Wk63P)X!9G1amn#qTu@m!fp}*Hk5^7DOPW~z`8Ak2 z5WEuxw~b_I#NlO|(~m5@zU+M=*0_@DOmR^_cVUt!13VL@mZ`zP9!cM0KCKrx#|0V8 zh12eSZ0cnQ7a02Gt_9?)zYgzKuyDBB6~PxkyLuh=-H%1n8)!8acj+wsP%hR4n8e(C z-Zto>>SxHdUFA8N4bCm@@^EQhB1|}9XnP=ct6euFRw2tDldnc^Qu9k=<*D)f{>%79 zKwJ-?Z%fB^(s7%ws-l3TaGI{MIwRDUnX~Gpjk|t~ocQgXv=E`K6kxaZ_%E#$&w>v+ z4ngFpZPdi;39nwNIk@$g_6@0sQv+UBz_?V}HJEcZo$ryuAJA&hmmACLuJn2*0X(Vd zH0VwV=S-U|uL)Bh(XTeMKh|&?jO^^p?xq?_OQ`J|}OjL+2O1N7f%&)IhAvL&EF?L7<(TjbDy>LEFk6mc?+0;Tf^MOFH z|KR8h3#r#-`3jL$A07MMf!v=Br-Zwy0PeRvA9UZew`-{bi5YZGX!Ce9EYRQ4J6`9- z?1IWK17SG_^EzPF0PZgJ(4)(XwVbK6^ZMW(aMjz>%d zc{X=K!ikVpN!N6T!EYAlR4?vM>qrvLF&rC7=tuzOJaE3UbIXuj*Zf$V1M~m+O#F9$ z3bUAZvgqyX)VLTOKli7_)e@i7FQl0FNY9Bht!uwehMEk94N8`7I87_do@1a?Rv2^! zI-@CLCqQX_*r~edEF>&AB&68@MD6b2;jjzuH5e3j5(Yu35dPaaIXRcEKRGq5;rMOp zBkCA+COC2o7=)wpq)-=Y*uRG*j<(+Gu;@WvFwIBjg(J6G^o>}8+DESDx-5CH!geJT zh^svfj5^E+b2QRh9b@gKB8pw2P#)VW!h|TPVX}wTMg|53Y$mpjj80BYRH>A`F`Y0C zjFyQ2IYN4~|Me&*CudzkcOe1}p9$S7%D`nf>hpo10LE(MR*W^6L!Bw8`|vL%)J%@c z2pE(_RNgVLM5%fRznOq>J)S;mK*oq-Bg5}RU)i^*8!?_6Zvo-|(pD4%6#yXk-`+6t zUR^9MCq1s6EJ(m2CTnyY+P2VXZe-%xSVI&cFDh8Qrz+YgUW`9jpj zYsmnQGpO6D<%&$3691TMGnhevJap>tue4&&gw@seChN$D^eG&OD?FiO+<58&GDWeb z>P+XaCEox50CcxK%G%0mCz82)yH~`4^@g}TZtPocYP`X3e988tlJlHxxYyrRPEpa- z$jHdwb!uq$?{4GV!k5F9SdzEV{kDoohp#3<^f)x^Z!F)pLdEz#5kU zHFp?|A{QVWp#&u+|M7&Ft4a;7ZheOr5=l1_SfOSg?*7Y782rvIq1V-Gr&s>f@tHk| zbP&9hbiMuKnH$H^tR7-hKVf9W`kyI4)62OOPMd$8;|&50Nf%RveTO~4Ji`6QL+-x1 zNh1I6t8KT%LjwH6pHV!S&z#xXi4-Lv6`$PbogpqN$r68nYrBbh4Z94})67Dd19P<$rZH1e(8_>?i7ojHCttZ6NR zh%Bo+fhpVmhfBf%@f6WKU59&_Ph-x;#)bs=`eGq}V`oQMJ-)=I@m&dv zYS?8c2M5Oq2|wJ609!w@{6-&>D!>$7s0hr!M0PxVJ+9F&1h?o(Vv}{-Uujh5&QO?pgPKYg|lbV*sZ}9Lv7*c-1KkjB^$8_*EN^5nMT3q!PM}ShY}lmuS3{ zAnJ=D=j}=z$yZh7+>jXIyuSV<^t3Q`wj5pWsmheP()JM#G9P9`K3va5!14|AJFevk zt^WPT$qJE7bCnuTfg8;!EK)rc)`*!;1CGI(A;h2Bdx?Nn|J-T}xHpBej6YMi;ZJda zcNM@=$wc5*5GJdW-CYkUhaT!`#{tGnj|AYgwnMy#;)&L9z(aAdl$+;53N+h>VNm!C;Vfqg{agVH0^ z(bflQ4ux?M%Le53)Q`@JSGB?_&w6=+;|gu44i<5X%t)GF1*M|!4j0j9X^%w%cpE?X zr&}6r|R?Z8zCZS`AosAde88#`3dwO3)Bv2$Wl5=$-X9s1-oC_ZQGitdh4b)EQ z?5eE(J>_5~raifu zRocmYLaz1hTI&QHZ2Nk*Z}lBGy344EQjF>MV5U^>q7z^!&*KhCm4I?lfef`3NU%-9 z^|K7!%r@j$M)=-On9Z^OXv-L=9IjBj#c4wVxj+BsW6(KvgLHHNerHK-a_-AK*PAui;&c9;YRTHk9^A!~Y{^5ok8LvoR2q%o&f-cHs||D?}FsM&**iruQ!H zlW*-Guv-=DR6p2lDWdZ9oo8G2p2RuWiUn{Jqsm1UY39>T5Dd}2r-DHa8{YMqr%YDj z3!LGYq!JxvuCVX7PZakH%?bxx@@!x4n*t}6iZHvQOq4O0c=+kHBb)|IF`Lv%eXN#x z5-bRx%V=U;X?Je3_o@{ebC=8-Fl1=vuIQw}dDOBUB`L+(`8?=Dk6xHUYH762PcBB^ zq~{8|s7Y_xa-5H%$K0X%wbP^JM)mzJqKeO}A_e=}6`qxxT)hf_e3em!@Biz4HQbc% zs%Wo^(^pTQLDCBy3=d^O8W;UVNaSBaAfv%SjvHi;2;;ELt|Fask73;KEG&JlH+e}b z%_V{UtqJMpa-(Gr=X%7cJO6(gs&iHiY)rf!b)!^QLhHuh1GelU^#lR~Q2AFsAT!O^*Q@jwd;5k)Wc$r|(0bg9uhU2yFtrbRlNk&8=Cf2yW@B?34RD8D* zc`~_|COC^PXhG9R1kr-|(-Yi2U;xB9?$6gGYycA9N#Kr1{tD91c?|x3#K69Egg@x|3yCsO{V5QegerLVvRSCJl{k@m94m-lpo&;~ z*Jpq_YT9L-2hC|=O~1az2Yu+OR`+=>15 z{abfTL>Pxw`qQKiZw(|*@@x@xi^yoJnP4L$xjC&D3{f1#CkEJ)i1dit_#%d_7i;Pl zs=q(0^vzrLB?G{WY|H%n;iE2Lsb9FyAq(e+7@qgLya=7bglz`f&9Bddop9$zPJg=I zmm&~2-{A0(uKaGvKaSG_WS>Q3`vgf)J_?bi3vbFW{Uv6MIA$;CW0z|1by&6E&MT?l zeg^Jco850Bivtt8Waup(u}ly7 zW`Nl87zk5npwCEbq|d4RVM0sNs>?0mNvn%`nr>aPwJUnzz1Yk04D5I(fuda69P|GmA!O}}=< z3R$H;|FVLtFD_uJj@)P-2^5vbk_ovOLFTU(jM7dh_nklS6|ryMVVq5o zpIO-98fFh|C{Bn-9;_lcf*#6a4TLbCscGk+W@#F&36aM>7+ORY`x(3R7t+z1e^09> zMOF%JW^e@c_Cvv1Y6A)&h_y9s;0yRa?}OQlkrp>E6%&JmagyXt_94(h7+c6La$w-2 zkr9!g>H0*lp=uWC7|4+$Xp77g2OTi0L1b!kfI{H@w@BtbL31?xG4EE!konS?U!V`( zIjF{}lofm)P+I#*vw}F8Pw4qod|r2p)@^A}f*u6ko$-@aNm9kk*{e+Y;rBg7u1mi^ zcKb8<3@b(Q{l(tA=$mad2ooNK6)lcCemr2N@uL)(F*42IlKo;7nDryz-{MC1=s^r5 zNu>`qL-}Xw>1(W|R3}Zl!(y^E(z&FrY|pR$HvWL+SME&Aq-frsM{>Z~&)lRldd5r} zx166M#b0Hslokv9->OOe25|GTShCZ_1YwzO6lkqH; zhiJ4$MT)*%nsvvr{Jt?lqjn3WK`Ho6?2C}ydPhk)5Tx=Q4Njg?LD*FpPv7$n*{=wr zr}7}kJb6D<@BifvH=c5~0WB*`b74p5OP#EgecSzd=_9Rc6LR+34b<-H**tySLdK~A zd3%>NAnCZ6YlDjNJT|QGVenhbWoX^Y_57_%DASqcmi&I;#yeK+zuP`y_%d!#@|tja zpKP%|Mob}^v7{gnBf_dyX8c_ik4JG|YlD$h<6}I8Gw|{nT6R@pK&7znh%sS(vObF4 zI9HRF@b}<2|IAq?A2fhxkH{usxA;B%nab5lb^DvevwNt!(vE7RDq?f$MH@j`)$=&E zH!cX*>QN1>fcwi;s3M3=MON7`O^9_XNp^wrQ_tK>81m8_@FZ$S?_`Y5ASW=U#q-a+ z_cgvY|EN+Vn7tQvb2MS@QsoZlU&{YJr+u9HnCq6$MLCG}?a<6wx8KE^)fu}x=D2T7 z&Tukk6Po$}DNOkb*vI+M^Cx3YL&dK39zVTMf9Tji$+)kfHZ6JKU9t`Et{` zeG%;%Iyshg_KtTpCu)myw(etvA!S0P@UPW(maRUu0{BGa;teuVOfbnad9>%74_)ty ziP>~?bnpuc$DS-5tmlKD#85K0wY$yKWR6!_>CDu)3;3)LA8r&J20mohQq*tLqK+(J ze+8AyI}AhCerP4->&pCG{=$NkmUB%KE_e=X2Vod*jcUv2l-f*+6YfUJxBuJ~su0E*%F4U)a@^q!*Gq zpIU)SHM%+g*0)eXOB{uyF7hUAe}zP_VeNoAUqmg!pgJS-6E)aGAC^pWZ8JNYhJg1? z;2L3JQiN)doZJ-)>EbO)Z$|BkwgMGvh{=lmaN+U9a z_D~kFvVj^hqM;!`$O>K~Mykx#884B(mk7nfx`S=}aK9q$o{{og!+UGWC!cHk2gI!U zLjJ}w=uX4geNY8r)<4JRRHxNuD@>8=1)RGYgmn%APnK1h$*5jgU$BzdwMqhH8{~{A z?*%GgYF#J46c^KXtBnjjs5;tQ?lIc0E!YyTVO9gPm+dDpf_ybNL96jF@2UNdWv=5D ze9`E43NVWUmi(3wBsx2gWy6jzvP5K) zoEZc5;1p>EOYiF9k5MDDcUTshJbQ&K5=Y3juLL-Xj7CPvn!&&ai zdZPM&fY<Iw8{j55cV$DnTnFQoq><&;TBb}{s zaA59_dhY(i-Iekh6Gx)aoKFi;J}>_%_?|4jbeqW+%Un7UnTgN#bpryT#ji;V##ZH7 z;6$033KSF+XCuKNrPpN)J&a{!rQ3?^#~~?|B+3+jqGN*L+IM*X6cn|B{gv_c_|?g; z=ieUd>sS0K(9zQJxu{MQ6OC|>_}fh$#K`EPcH)L~;7NY%v_UIOBX72BK&c)^m{JZr zQ1xQ=R}>6pyhm+{9QFrxHT>g4M%!VuQ!tVtpFrgXreK<}B+X?2(cQVz`#=VqDeqb* zMvCKM*ZL*om9xym`rdh|D(yA#`$4gO-}&MHR{*m%5^R z=o{&r$7f3ymkgj2L~Z2PsIILo_u-jW9*y|4vp>vRiCt$uCynPy*@cEEbsT{xJz6_H zJkW~|J}g*Fpj7whW)qISbY=Exjr#eeYLSR!=TjuZ9$r@}86K1c`kDDy+pOZ#hBjn68t zSm^hv#PPj(lldg*&_wuX?T#_5@5hBP8DoYwLAf|h6pGOIW6I0Rh(qS(HOuy?1a$Kq zkZu2{V`^5`FYWZja$ zY8}G)&LP^$*>s#3r_vAmRpGC%zGt~}4!aE0#rXajf78;+HTTyYc>t{F5Q=uWK>gkt zGE?&+O!B(EM$ONiQnR=~116WvE%HZX5YOZqDb8 diff --git a/apps/common/main/resources/img/toolbar/charttypes@1.5x.png b/apps/common/main/resources/img/toolbar/charttypes@1.5x.png deleted file mode 100644 index 57a3ed1dcb635686d6902c73286f696aaf8f7fd8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 15189 zcmcJ0WmH>Hw{0kGp@tSHP}~YFP$*KMxVyWxxKn~lfKnki!JXm~q)>tfN{ef83)12t zI3zgl^u0Uo&pW>R<7H$Fl5=+UIcM#)=ALV=MTC}y;-mXC_dy`gBV{Ey9S{i57X-TX zi103Oqzfk53H+h^Rlu|CEciv%M!)WLAY^V(GE6RR|fQ4}J6ASDzP&j^NG7);& zWd6gU*(8BvIi#7J%}>8#^s_S4Ok*V#B~oc8M*UL(t6-F?aMo#!2B!CEA8{ALMZ5mR zJipEEnR$+?CD9(LXD~bc;#6Y!ZLj~Li07VfFwU3WkQ2D;|MUe76)FdTeq^Snr?<9k zP1%O?9QuY|&E$v&W@&O~f{jwgCMG6q;Pw83lC+>u_-{{zO`M4BuIyq`*yZ@-q+qqX z+&%$fGinHRt$+Cm1bW^nk?+3lMNQ1)BV71lbJEr%%0lHsFI`3x%e>h84eZYRMj2`E zevQ^knGxaToi*eGlYO#2+?G;XUJs3kug|&%xiKNzZDPdN&upYYzGC?;v3dK%P6lq}f3XjN3;)rGIZ>|rNOJx^G>?EYdtoB}7job-}kgJk4 zaanu9@F1q!>7n<6@@>fvsJv0J?{eg_6B^*xe*13`4!WHp&4IYx2!-IblthfIHC~qm zzYZ_^vXKMjN;8o@%k8D9pZAmdTY1%Jet4i8+O;dqySsSW;$*_lEa?(>KsA zZUq@six4_KBxCkjwfMe@%-`%~b&u_;3DrT_cS#UY9N4*vG5{PF!OoViDqt9wst!Iw#a=3ID z%8t}H96oN+e(ToR#q%^BxXqAH)n=pNxGvtAW~pL{oJl5R2(EBn|9qW#2fo z5C@iPr#Ey4KZK)`sQ8zD{;69obYB0^M8%rkk)Fv%mR3BL;Go+qG_;1PjqurNe$_y8 zI7@?I9zVRVs0TX7y`~ee{DI(*A!z?Y=8RYjidbLhVZ&1J#buRw3z(X;WzSa@vz$>+edX$1$db}zATuUui$%(r?ytr4tIzhYpD2{ zeZ;CoFem1ufwIIZV)~oSn(Qz1S44%bhlH2(x~#Ob#RI4GMY)P)Y4M-x`X?qFXWC-uv9_S?@VtLNHpuJ%&lK^E2Ez8XpF zjJ1=GPyOx`ubou`dIbK5w8(~r9wCM;VSF?+6@YHx{@V{%#$Z2u_t}|4A#sav zt~=G`4-=0`Tdv$~WTXBv`n2y^tUaD<*d6Lv=owu4VWo*`TT3jb4nCPQBw%y8SxwZ8 zOf>^5I}W69wzZWqx%e>}W+;7| zK?|eGU8^D$E8rr^7P>4u33)8`*h;f*^~hv(t?oJnue;veVLh@G?@Q`bvcD09c9A@@ zkF=;32Rplp!n#JqM!&s(5nJ8N#o&f0XK5G3447~6KxU&)J!zCGZzfrJTdKR0r_dO4 zm$xR>^xFhtiCSBn>Ry@UF1=Oiqa~A%W-9i>S+G_^dy0+`t~d`2I~wCf8Wird(C-e5 zT2S0aM2hQ=@h_3r$dY6%eiLlI$>(XhfSRxB5Ctwj8<(~<(H8F5fJY$n$3&k8e~Y+X zsY2ysqxyN7^rEDs^}C(kEvu2&-TIEAmpNFrVao?gu|2S}vGV8K9FvdD> z6r>$cDApLZ=C&H%tEuj_y?Y((2xswp_;Bg{uSXv(uMblfa;$dT9k&Ed${tiFD@0Yk z|72#U-^4rVLQpO!)?C%QF!(paA!%mFUN34{yvvQNJJ?l|rjzHyo~JewPT9fYGp$j+ z$VeJ=zl(>3uaMkB>&xqYr6*Jspv~ouk97AnrTo<3In&Bet?k#v8uOoyYHz; zk8|dA8`_&;KD4=KpnIe9Ecm3AyDMfz#^eyJz zF`t^z<`0QEWK9VXImLc--(;yh7ASY zli>C)Y*&<~f(6(z7#VX9ACN?(c-!!NydOy)Mq7PwEpglWps^|`y#JU^rNPwjSv57d%D=(SxMVi$XU zxydTkXr^@+&#v@e*)+lX=D)Y(beGzK6)|mLdu7^~qu?+_Ozv>4_roZ2CO^b$d*(hX z1_92r#mI2E^;#PYG*fEGrbs)kVONmqjF1KUmGes*<&^vA#=)YUx|hHebFlZ+Igx(n zV(a<1t&;yB_sdaQE8-B!q%=|R3o*0z${ojd%q`6y1kG^>{-#>KuO7Tz@cLsyjzRTR zRRgYYMB=5>@F@+FE*LH|wb0R0o^B`8wBUJVP(W@(IqjJkWzvny*~gRM;c~mkd)|t= zArinN>hF^T>7Yx0$rm4HH%yVa-c=eQ3`ceU2ydi!&=zc8nTWcQh}+PM$?lh?bwK!0 zh)A-duPW*Zg=uPpo33xIijlU2m~(hE7EFBfy55OnrXh;Yfpx!!BflB_cvn)haC2$* zS;%Q#_E=NyaMrbwj9gAPgkJ2S6|VYdLAfQ^b9-0L+3ii zJU---B?E;lW+5YGRt^2{g zCkOpVRa)w7due?%bike1-;CeJI>tsa$6WPN!`qb6XM-qnb=$u=DA#Rm@$AzKEeoy{ ztUPl2aiBKavXebe&$3HzYM(=9PYhI5Ki_NMBNr;+F09C!hS}F4d*+p%CKOo{W|@*h zn#UmO)vJk#Sa6s1A`;H1)XqJqu<}*Fcy!rrGF!R797fp7ZQ?Ow+gSG+>_VJQu)?g# zpHZ13Ppqny_o2v$+L|sNPHFHiRHmkP;X-pt=kkO+N(q$60_qw zh_u9|KL>hE&!BP}U3T(Y|0xarUyeH{j^P4@nrxxb{R2A_6ME@$rNe`RYSK%O2iw`q zBj+33a}{?%Bpm5cg+6KXt^P`@787gVPopem@HsMQ|qae5iJsGLG--;P0#_&=%Q0Vao6dp*2 z(2*Ln-x(dBUcw$P24b~bzk>*BWC7#e+S#$&qsv)%yg#GxesE%)e$jbO#KH%CUl(cs zwyj~)q`1AVl_eZYqz~FJDk%w9dA}^E0NI|Z1XhXBwZiy2JLSBz$z9MB(nJ}99zT2Q zp|sF%ME5729fg@lFc-@W`O(|g(2~jmlWEi#(vpr#?=<$msb{f@7n4%LVrCQ9t5Y|q zhz9ct-ClzU3LjDOGq3;7lhykqt(g zr&bR*#TI3N^b%&Q$h1a5jqzz}ud0_hlW(Y(iaE~_dx03&^rv?*X=}{BMDEAUi=1Er zhdYH?2FqM!C)?9--4YFLu>oaUUhw$Z@M@u!_MOB;MjfABR39{Ltw(c`l&@A{5QA}1 z-xCuTca14^bjP(RoPNM3C?w^1`0!ygNfSOu;6uO^^sG-axc0b#&?2&TF{Q~Q{g%vb zJhxJVR2ELXq!BK^<>~2ZKpGGbP@IW?0A~AoKX{9xq;coj)v(xJbXPr#FDR5tPqkW) zyixbKmyTIP{C4PET<*86e#m2$Icj^e54JnrU5bKO z6?RF)SI6+a8Ym5b3KQ>{_v_)q#6X46va&LXrb=+7o{>fgI9D(dg~wQ*z?=EZB62YP zanp$Qs{wRrse2^$#xC84vvzgQNT;33kvjAt-^-VbwY<9Ii?!3Xg_V`A3^1`zVX-<6 zHLY{-LT6STTO@9cRmk=u3a^&aFJh5H&BG#Wj}`I#O{C#2C+)k}!}A)zO1+pRe)tfI z8kqRffKl(aW8IwxZr}$eud$K5O0L!GB8G%oYHtOsM_AoMPzChwWPei3k7t>Y&n&w9 zk{$u~f7;*nMO$d?;goKL!YrdNh>(l7Iw^*3XTW-=na^Rw&-;$@?BgL%QQ8{37aDg! zf-IbwIXU!!mv8i{OTyYXmCPe1yde~26#vTr|DT74+Io3=QxpoEd(M?Qg}S_a^~(C5 z?FDv6-l?F8e_B|_C(V@O(DZ4_JYajJ5UN$8c(?Qml{>S-dYA{&ISv06vnR_Ri51pY zC-o$yxVm;ZlGzSaS-#$pl&KUXHeCllFCu014R!fLQGm8t=8$Q_=fKEyw=mFcEy3C>iN2M%q0NK#kNie6D*0!$s|+^NxD zEJ|e=AGfxaH1kuT2tQeL87%g!*m)j)}D4w{q|PYY7Z8`I24R z2OX?@MUDVh(gU-`OV#kQx@K;t1R8L#%9|UW^Kq3*Ur=~Ih>@YZ67~2iC%U!>rR1)B zq%hNbpZ`05`Uoz9u+$bL^RV23e*5W@Cs40d3YeG_mUYQ4-;cA5c8P9Wl%ed+$1#3)2iYhT9zRVN zJef1o-`wuI4gtSn9z|kW;ch0MM=W6P*tCp&>IwZX+m-Zx>JW&C)mJA-#B!=2SOHt+ zu-Xf(p>09NthNwy;6iWm*uFUcr#}EZvJFa7hwBId_mjaDs3WAxNt;)pim8_R2XbL5 zi@dhFdXH$PsHkQKv~-UT$?)RH9zl&s3YkA@T_*K&p8}J9%gV}a@d%NW5 zza4&z<+!!2X#`qc&_BNJoj%yS*?zIG=i@$K@2dE_StWlHux{k(x^R2b`>T^_IJ~M^ z#oX`D=U~l-HE*q`wzQ%EG#YKvxS1a{F==R7d3e^^zXq1x=Hkm&-2D~}h>5#9^9`Ea zZ^bARv@Dyeth^sa)M47Et1YW#pluiu2+b3XCAyJe9)xGQu!@k(sMmp)CXg9)^6;BU`j62ZA+*zn16CdhH>DJee{D*ot}L2-qBXbA5qc zOSLozIaUlQoT@M`;6WbiAlw$3`%C&})wNT9f#F>e3=Mk#(A3x)9WM_lGC&Gr86@2( zNRblToY`W&ZkxWr8@`drBM`u{_xq!pxAyk-LlFy&wX@+<4Y#~ zlJv`<>V5SogOjSNs)&5lJBdh`{LSxrQ^yv}nDY2?rv@cI27{cCYkrxSCWl#D>521gJ?N%2s5)JV zlPm^vonjl>k(O?nId5hIk2goNCX&4hnQ;zJd{9^>pH89^U}M+1zFNAulBT}HQt%GI zHM<4gFva5m|Km}`qb4&qt!_lfu4k?;9UYxhaIi)4fNe76XoK7?yHmrRarg~G41a(k z1}YBk)#_$Zj5U(){!Tz~b+(aPE#x{^$kTTEHzC$8yjIJQ`ADbCh9bRDk28RphU*uj z?I9VMm;nJVE%5EM$emgH8jgWlEC6A1jg?F6w=3;gU2{Qe4b0LTfnPFwteCRU>)1{|l`sc~1ID z51;YmB*s061^Af#T7ECSnTr42##f$1M^a=}N!b0DzkgC9QIVUH7qcTKqgP^kt=5lX z>Nf88dKPN%wqG6|BBm|G9*5iBGa+pv4n$d2tn@Hj`BGifmA9c6?$?Bz{t4GJld4gL z6mjO`NFd>y)&xXPm9jUHen7BPGIM4~o+V0Z(+a!kWeU63qgBzPBIDDH9ou=IKYuRz z+-<^kKB=CfzQ_{xVzcJ~LT(RASJNPaaV)I{Jlz|u7fzWS-AS!WZJJpQt}o|4=UR>4 z4p<7?@NRD`>F1Jy&y*K&i6$*q{0q%$Du$?@nSz|S@-*`x(b5WE`$FergYx+5P z$)>J~F}KDkx@ww1W3>IS|2Z1i`fE3${B#eD{QnE^Fy> zU6^1;qs`PEImrbLW*b&k!#bpi?Kb`*3o?;gs_2EhUOj>ryVs7L*;Ag-c#7CQ_8&p_ z1lBF9>eJw97QU0iY>~C7BfRHHuT)U%eEQ_#;A(mVRV~=*Y2FNy@+9Fqjj>N%PnOAD z$_wi_@nYa1zxhZdph!gJdC8MWAUpY~=OX@xg@UlH)}vwBT|tE%sQ8Rij88B`B6`N& z-k#4#YHWg}Ux|t{O#FVa#%Sty_H#o^$Yg-oZC-nM4=RZ4+AbAh;KTUhZb(^o#VXX< z?BY(1uoA|xk~h#Moco-S6#4KVano|3s^YWIv0=!GVWRO2ae2h`g74A^1=7q@e+oV7 zEmDq7`)d6BQTC^=wu0vByV#EJ-rEN0KNsHD^gzx&DDa>K#lWtJ=Y<+?G3x_sLrr8``gS+$aCZw^LQ-nN3jf!8u+8 z;|Z+-##oW&=Zl;_y}j|)J+a1Jlt{T_vPwgyYRYOk0Y8AS$wjqIL9ag&OMGKKrLypQ z=SVir-GI{B!I;GEE!y#@{_cIw_lO`S5<~h@Bf?$@GamD}WkT4doGDAo+ajWm@@ga) z`|4zc;bsOMpG>%juX+sVs_9pYxVF?Jjr%Rq<+Oohi4#CUCt>Vxv!NHz!|NN&cm~d2 zA!9DX9z~$w@;eqKE%nPc`@}cDBWd_qv0u!VC~EAh+h{!4*xM2It5-Wk_tfy?HD$~p z*zdVJ0QoaDj%u=*)_*KZzmUQfe;f^I4~l)E$#{&zX|nQhzcNU-fZ=a+QCS`b!RRVg zB~bzWe9kjG}lSazX3^eGnwu$FDrVVc92g!yO)H26W`KeKkVi){ey!i`DOH039 zqixW2ay#b)3~@&v$Z?z}$!AvR{*W^~m`|Gb740ZV_xm$EYAaLRE8IgWY~Z{8~zz-${B2oXpsMz9VILL4f=oJ5FVE;Ju3D>2QvC3#R7!`nnhGga}Ld@qTpwgd$ZUg0(94EUvhploHMZ31!4W$NWN^Ez!X2v|QLqUMBtJW!Zr30XvQj+e zq`Df;7CUNK3~EMwqB8T2@8P9OErQ!e(%-)BD z+zy$!GF$=|Fe-_edbDUg&rULmL*<0 zR+mntYxdgInOZvlY^Ur*&?KDoUxo5DA@f5!`?{I$_HjpLY~MYvbyE9)Y@bY$?#KPS z0Y0x>kyz34H?9`3OmcB3S|+cEX93=`J2m(Q{R^%H*}rYuDIw{(q;Fy7Ek4|4kdsNS z+!44L&j!v57|xP-{tYNZT5PcRaxkB1vl7P?!{N@-d-kp#O9~fzQ9R8`XA#$74|u-i zcrnLE%TUA7!3UzJ#&%8Y*Tl@H-iTwe&ob^^MhQejwyD>AKkNg51 zUj&?JaECESlYpXH|BDCLM{=KMx-}~=1RV{b%i&eE*X@|v0Zhrf{R9%ofmKN%2J+R} zlkaLD+^K%}kzgU#+QLn4KMvki2iCncI{B#TYik=dfIR{D)Kkfgs!LdsE^vztsQ3FXXrXmdUC^Cq61!1PM~EWmd&D{uH$Wr1oKs5{Ya;RXKXvto2}c zlq313r%v*%47bnvB*o{s{M1^zAsU3oio!n~*89(As(=UyQjvf}(_90Dcal(oGO z--^jcrQcqUzSC&<@_Qm7>u_DFPEKmWGvFVEzrQwZ8G>Ai5nj|fH-KCo^uXkfy`jN+ zQ4*9F#?f87UQ=F=r5%$T(`CyAMX+BhnO^X_(zO10BGj!#aCLRH#*yP^^-Yh5$^9JPF zMuQQfTb;X)TV32O;Vig6X@+_qHX#w<VcS}$* zs40hHJwJfKfqN*Y6UdIX3K6MfDW)sohrU1>9t7`h&aBxh&AgKvr#`RUWMcL`|0x#2C~`Z!bK==3$6GRTu%?KkV^Y7w%>yKn z@y5^%i(o5pq0zB6Fl8i5?cLZObV^N0KaE68Vj$ExtNW4i0PA%me}X7qNv46Gg)4t;dVi(K9vH5sSghxVK4Thw`_eM)XUS66ynL6Q>e2`6)17 z<^Jpjm1BNW{i#gl%+0k6Hsf6&62!s8O3VuVa(rQ3tJCuoQiP+bJ*C{fThG+bS=p(Z z5+^32U3@EHfkO|%9X%e42+(l(P##^#P z`)^69&$So4r_Is!k{8AmcX+K*cf8C*;Kg5RESd)5f7aaIxd~6K&C@0nUuG>Hgsr1Q z64T1>dLs`NQFr#3u^Au7^u6g>*I0{0os7vv{v4MlC#Es7=(UjP7F1QztUTuv-@R09 z+XHseN}|87ndVvM*A4@px-_F6U69vSGpxQRkh3&Do;LGT=W4(B@#9CKsgo>tj*M+u z6kmXA^~hGNe063Z;KDf)wN1a_cKGWT*CLB(VWOj@nXtz667>8y(x9MOLy$YS0ek&hg8| z4JImbkq?s}_X+be@OpFVq~^s2cNkY{2ikyzM_bH7MPmm*sm#%znC^Z{lJb=2O`ZEL zA96G#JiS0VFY_h3pgch3({p)dzpZB}!MC?qtEfa|zlB5Zs^KROVyD!S28esNez~Y= z_WT_#WeH%Af2Bo0mOUjN(YMV!r<~PklaKSKL;99?9jk>~_IJjv-yv-!wCumUY_-Sd zpv$k-h-+1h86beph}i~ipS8gh-Xv26LqE=}2q|PKy_##zmw-=25e6GR&ZoleE;uiU z_S8o;X61)$6{T`<@I_=5zVZ|xN=$R9TlSQ`y;QCy``9YZY}c-YtO?i66gEl#v3y7@ zYV!$2&Jkd`tHCAj&XSnMn*FXs@cjJT3U~3OV_^31ZM2YcZpyiqo;&4Pc|5b;tCrg2 zu(+ZbJd+RUOH4(){ZNTMLo0sRL43;P3j2J#`=9k*V|7dM>=JcYi|qapw-bfpmed`G zw#}6QHg<--D6M(KY8N%GY@O%RGaZJ>`InuB0mD|6X@Deg+fsRqEVi-Epax#?0vvaw+<&&dCBjPpFa-B$)yEBQRAeDjbrs{=4m33+-{kb zR%%~eYyuvr*JibfQkQ>q4llGjl3Q9av7)DV_|N5@6WEidoT0~evw7E4S40W-;Kw}?BICFWB8yYfdU zvakS4CdmzA#2rg1a)G2WR^6stQi-~igAG8vqK^Gd&&!(xBW|)j6Gl^U86zIUK}qLly@I zqum$Wm)ejq=LF0+cDbGAX!J){CGKHSx@quJ&o{#vJ0Os9LQBf&*NA>>x@p8r16t>O zq2s2~9gtEaO1;_EC^au~+}*gq{I=zUtwxQV7)Z)Gc-oX%v$3$gv=vXJax93xlmMY%s+nN(VqXd&Sx8z%OqjK9>b5Sik zkkzw)r|HYdL5%cruoPpVclSUb9g-$z(Wd)ktaq9|(IWu&!IQ%Lx5xf}`@mNa!xh>% zIys4m@7&4B$Z#si`D>_YY%8b_@>s3Dv8yPazB&te;xy}=$g1M_#N@;T>$d84Fkqki z{IZ=YWWi&EA;_6QGIc{*_qXsbAa@%pAZ}wu+=@3h=rTq(s{zuj;`sSejpFs6kYRMf z28Su9w|QYK(H8TGZbJJB#2PRUI4*nQBv*opL?J+m{gv%cW zWxQ9X6+Cnkl)%WCiJgn3z&-Jead30Aa|gp1TlfT3k%XY2pcR_E0-KMHKkO=ZVjr8xq<;rzmWGpjrK~WpDF@ce?LHU*VCU!a4KV#j!J+exh|Mfz&Q{ z;aV566io zTLMGsumL1ci#xW8)8luE24;L6Q|~|^t#fRBq25dsA82EhOLRojhfp0Bzuok_x-rNs zBn4XI(*G_o_S9^K)ne(!QhC2Ll1pfJ6_2^8ESLt$S`QZT8lY(f%)q{fd znp)-U&M&#w$KL|3&o(OCh23UKcTX3@CLRf+dSR_Vn~V?q4C(rZn5JV7oJF@jDDm6% zIt8L}?)JrD9~Ss^LV1Sj^%tqT>wt(^e>0e=Q|e&j@_}wDKhFHvil|;jsb-!tJ%=RM zTJao0F=`Rcd5DAPgoE3I7rz)x4-qf~eZ9uI6PF5yT$pur6&(_thv}$==%yk~P2j#m=V<6gOR@B1JH z#nL00AlWZt*se;C@F#ud4-mp?Tz1O4dq^tune%j&_C{_G(s|ZW~d`e znABIxCp{^;{Pk&6?6}{>6;<@IDNUC+AcLA({ZrG9-H}tx?*C}_VEU_+)tmL|o2cfM z*d@d+)gQ?l)RE}V5Vx%p=IcF_rzU0o z7fl(+qc#zY#TY}R+P+@z?p?Q>w}fA3W?Xf(-x=wvu*^M%s?v0r#Rrx48gy4}^V<{2 zkX}^y$9;ue+x*x_QA?U0D>WbEGc@z)N|ZV98{HW;T{)*FlHhc7wBpm^*Hc^_C zXl`HJw1=$1UJ$mqVMq;}_ymPzVi?qj5P}apFRbSKP3RgOzHy z=f*I%_{MSIURhbmO+&z6#hU@A+i11EPMzIi(j?ujJ|}G?^|pkoP0Qp{KW2}N-T)RX%Zi98mr={t#(1 zHYPp(9y1jZmr*LIrlRngBAo6dQBxuUgOuC<*EYqmGrij;=Gt@2`#cUw7!Oe#gV06i z^fjVlv?>Tq$GG`oy;J&PK0u=T_U&%Exj8+vCif0gH=RjQ4Mi z20yuTaXfZz2%gIY~d2EZ5#YUdh=1Xn=A9~?dIPKj{6@+(pqdi*_%d|5K)y(x(9o9p5OeF z(cE}jTnds4l1U$vO%9}O0)^@qu_x}i=;4fycBLkZ3muVOYM~!JWf-y!FGY?-u!QV^ zhdQ%K{^VzzCtLAK7hm1paoKuAH$Mza8s*de1_&D`K&zNhHr(>8KX&5jZ)Pu+zcQW7 zDOU-tfnm@~lP^m*12=DQyDfX`__=P|4p+Uf)LV)>$!5Ng7Kvrv`rROg*}&vRUofF6n*YpwognYz z1mAq$dxZT$8aU%M*gwAgKqdlma8yBrI(w33u`2{Sm-~S)@?Ny~{@63Ufzi}A5{CI# zABU>4`kmAJNxFeTkA->2)k#iuAONG2Dcq*FAYZcXJrxh|+WI~Qex&~jrJus+P)#ZD z2}xAmRGV5DAlmfBi60tJr&cMB-r@I!o!GoYi~qjJ zdyGZ+xJfwRPbjtd4N!4YPty?E+)JEGylN5q*|1}(zGOw)MNw> z7wm54GPNb~I{VG&KtM|O7NigB5 zWFK9;e$8{j^-6{9Z%S{AL7}z5qP3x~Z#l7>;<3b2?BC5;xCliPSXW`~+J1@lMQP{* z4|!NDEH93U>fZPC-`aujg17}PzaBgDttUN#0=V#??8}q|kEl6U*0B`m1@M0?6ovHH(q-)B*NF2Et?wR3oZ zshra59v74%g`qA(9kwwVT2ZN@&-IL(g_R0uolXl1@FGv*h5L}I6WpYJzajmUEfs{b z)4uL=Q;7%Utr*oYCQ&Jqt&ZAUj|1OzjezVM;-NZAazFy zi=IrJxUKR1{Q>e?1*Apke=Ut`LvcbWvne z0qtOO;yIU#$C_}cKI%Xpjaaq^L#j+axBphq4hdGZpPDV8K-p}!av@>O8(lSY&qddt zK3Z{gI$(aP0txuAT^lh*bk~^fH>|*2^JnaHSOav9vbBO*&;OppmRGVi- zIC2I~*yeymSRgKM%|blV$3fgFEfp*U<-{R%2CpY{xThM)Q&6;F9N~j%GYjlLA2FZ5 z9{h&dsi$Kn5OqPr#g#hEMy1pOdYk77EvNqE2#)|A1Id#a1@6=U7{{Cs+|>1uwN{L{ zS$^5;j3A#f^6MLzr|Q-?i|={alXBTsI~BtFz>mq7_nkho*l=k|z%OPH`DfFZaF&gB z(EIdv@jp6qq=SqX8O7i-M@{DZEGaywH_ ziOTaI*vM{)#!@7hjvAJn)I?5F?Jpa$^vonf6#sHE=3s)7F%I5KKtN2c6ror4CT*M7h#*h9PU`J-I|v`tzG9ls TgL(V--|v;>HRP&f-iG}j6s>Q` diff --git a/apps/common/main/resources/img/toolbar/charttypes@2x.png b/apps/common/main/resources/img/toolbar/charttypes@2x.png deleted file mode 100644 index aac960d29f61bb1cd7011de4b2ce1b02fdf473fa..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 17074 zcmb_@XH-*NvoJ_iS}4-1h#*pofOKL+L=w|PzcgOQB=AhJs{E) z0z^>|fzU%}iI_kL^*ix--h2Okcio%CIypIe_RQ>=+0*vn$;}(aT*pL@F)%Q2UA=PY z76St#g@NHn8#^oTL`37dAOpk2u&bA#w?lueeT)U3F~p$u-wM5@-~Io5kmy#<^m*%& zvwEkrl@fF4AMN+?sIzL7pG;XF=ZGwvRRcbsXBBK$TS+{3Z~45%TU4v7p_gv!I~&`L ztQg!OQM}g|b36*(_StG38=JL>h@EySuWWcZs~Hiy+ijI)o4K^m`b2)ybu&nf?Y+{mj7FU&Mh zfsF;rd;m=MkxrRR$k z6k!gHJxb;~>H?q7Z%eXPLjn{}seEk95m){6ULh#a3LI9f@a(c%)y3+l+Y4$lzQS$4 z0%Tq*W4oLk;@oZ#qEuIl)SnqIeX_(WQX&?T&r~5fvx}KV)9yUKSy*y{gg|ec!MtVC zbRLRBdmMn2MlMpr*&jaPGYV3%2apa&*Qz2kosATNkGVMLvBZzXTeroK-2^K9A9JT( zd+w0KZaiChGM-@H)NlW|VD(mYm-F_B`I_NQ=>EGduxGqBI_U>Tg!)a zl(E$)@;%%7Pe+~yC}%+-eHx@hH-F{+8iq=w%25QaeDNZYX?5-vCt<(38aAs4I}T?| ziL{7#_OQ0@^7R-PSP=hPLlj&yLteOJ9m96k>UgiSiXH=pzZah%+G>J!eTuPs2L7Ga z(cUZbI0IOS!|z*#3?3!=DJ~v9wqk`J#cczGd()iKD>zq+I%>RB_gKBG_E=VnEG_Zr z?+Jk$As5&x#FT~m4mUNpPd~qnzsB6t4l0Oe5oj$_Kh6iD?YF)lsizSl z$fHF*eAF+FyS4a<%V<2H-s#BU*qB!7&09IfpcnAywe-;#mk>Sa-smj72E+v}1+w<; zOhJM+)3r#J7tJNNo1Jn?IANiphHZ|H^D}2QvFAKeuYF!=IitAs)}KoW^;3c;DIiY{ z;Wc$XR(n5IZuj@)Rk;l|%v&S3g7>$Zt;I@|XTBI%Y?~O*KfU<&nwxLTHT{t{KdrjL z8GDGK7gFby!o*jH1UwV9*Yi4;-{w2tSVvxTODA5-PpMBY$DGmHr;J43%-M~~Al_qa zbE~>FtoI9Cgk&pu)G?#7<3jk-$f+Bx0dADMj8G)6xk0K8~+rS(jT z48=F!tokz;@C*0q>4^R3Qy1JED$h}~;i14DQ%egrRTSDizs-7wcSw(HI^kV6I0rG2 z++tL6Lw0@8M)Hh(67PRwm6P}aK61!;A+ukv4bx?!UxSHV>oaoWe)ByMCF1IQ82m*p z`=>+rx?6d5JNzYS2|NXe5se*7&{ock*RJKn-1h+thJ4HK-C6eQisYDcA!IkCb%)+u^9&gJrmiS~@Maq&BH<$KHS+28*OAp#FHL;Ut z!jnhCZ|I{ijP=eYFT!3K;miRx`pt9BC{k3NxH%R*3zRrv+wVsQB7!5h;%O#Rj`-ux zYa=fv^@~^CBJH2EqFr=zz`nso$7`FuENRv}ikTg=RUzAKuyFp)ZfV4{evL(2;{Bh) zS>39D4NGn+F_Wnn__|jfANKu0&Tx#Gb4-PTWSgz{9tr{Sk_7*}(yC z@tOUK*)9E(Z%e3)voEL zS=}sDxL-|%olW!!@>VW67x0``8v3K7>5=~1iq=~QXE2AhkmMU+s+qg)DMhl}Z-cey z7uR0Zzd8V|z-byoNoG#^loPK9J3q8b;!$h^_bgAH9%z$PO;Az66<)D;p_6e@e#Snu zDdSp~)H?DWJfE%jQLwd@SLKH+E-3>&pSRPgjM~a%F|hBADw_G(LUe{XpoHk*$zdNq56mCnKVw+bUW-{!@!Y{#fDyZ&2#LpC`fsH6LVK~sRyFL&9T zQ_k#nGmtFsS5`^?b1R2RZ1%T$Tdpqt#i{R-TRTTo;=_{TY%cc6a4YL;ukxPL3V)tU z9BY?!LmHYx3?5#o;P=$i6K`+Yjy_@eX+Y12KJ{z*Rrj&bW0OZ$d#ANZR`XW{Hb2xn z4<2s9bbNBrmQ0kNQSNI#7lDQq0Z#73=v8%L>SI-vgTgB>exEY~43WziP~cR6dIX1| zoNIuF`xV7U83iCx=Pd=-%+&rpBhy@R?N1&&Y4;-Ot_+^5(zK;ESE( zv&!k)E7e~|ejftZO>ia@Qly_#(rTW!_jwZy`nIl3V9yJtl6RMn@-;4PT87UwH27|Z2Nu5 zH1n;L%9C1*rRWCazM1YRa|z>JHr3gS>Mr2#a+b$f&kO0ebY=&m6~|d|gl_&D@$6V?C60>FVFRoGSL^=hQI{ ze+a(fo8az#4MStE`rDzmFV0!zocRSdS6GT_I?g&K>$2}g?4VUjlU;QFjo4cbxkHXH zu7Bcn7F4^E)#Q>}m1p0jR|d?5AHV7BuGLll$@&?2}PLEeDN*E6YIOngM)(&UoVUGM3U`3%I6%v4bx*PYW33K zPVTpV6%|v5neU(t9)jK*JF$?3S29A2{~aTh&EJU5>5C@kx(=Bpk2$k!=$yJgsz9BR6!>9lONV=?}vOyLmw$8QCi0H~3zyPL7MaI*IJE``l}FupT%RLRAZYqix$Uxhi!-`5JK9sdVtr}U@CM`)J_-wjr^?5udDKdXOy5qyuj{`5ih=nq$dR?Ajk$?&X zu}-H1Pxv$z4j1U}j#}K%UL1YQA%rtua96#yl#VQS-9pfQxTqi1iBlm|KtEayz0~lc z?a|17b~R3&`6+_Rio0c>2OTJN$W>SFbXwXGs4JwTMWVvyHTe?U~fUm65`V7 z7u*rxn}d$(??d3y81v8IKM(06UDvSyUjUM+XH{{yV%fX7`xUZuc-?Q7SUdkxuYCb_ zI@}g=lx0eCM2qnES9%cIYlpH75ul7pEU$Rn#qtJ0J$}o#emFxYSi}GG+ZYSu3v!k$ zM2$R&VQ-m8L~*qI7c(LM;RDY07vEq0<}YF+qbCiRC7@=&`f+*xun<+cy6`1)z%^a_ zbsM2Lr5_Q!H~%5rtfI3U`4*hwdPm@{3?Veh3Tu%bB=H)UqOpHqmUHfv9vks14|t>#NM|6$c_47C6-$PM=NXw63-FRgN_FQvapCFe({Yn zcw`pLPyfk+KEr$$TbW1~o$oNP(!PWr+}!6jV7P_-HgV->EL!|JmJA94v91NgYb4JrK^rA~ zrH-7C2C(>81K8+42%{w|-qrx0fL1PDs7ORj(3zM5egIRs1`^}|s8PcU%u{fHyKcBO z542ENO&R|VdHl$G-~6C&SEI$M4Lc&}mV$!~>lfAobQo(Tm7VlkK-)hn%A2oU_{AGa zXAQLatZWzb$@{2UBU3P&79 zO(%} zT);*P!Xh!9;0{1gzWfwQF4pPT`zqrp_dD2k6MYP;FCVsu2k{Jsq|hx8FmhrMP35n3 z0m{}_pJoKCf$m6J67j9k|Cs4NK-}WXiUeQ~u(5E@_SHrxeFxB8i6OZX@@=zfd8F*{ zCf#O%JwwGtuobMG`WM_I%u^C7MDYgpy59{f2S5h^`Db#Z_}_gBpk)AVxMNU_NL2Wh zS|`0R*)GGXQQ7&>&v$`63lPT9orsV8KfBfp05(Wvp7JrlvgpeY*x|ZITV(J4^`Ffs zj-45R((q-h%|wwPoe;A=6P?k&*NJObmdHN~Ulz@cB`h66XCE&bLw3GCcz4*kQ@26_ zSmOs4-xvq%+Fvlnj^)?6{keYa&08K#@Z1%j@K}Ir0AJ+yc!!=DLJ2}ewS`c;;($U` zqhk=O!+Sy<+dY3)9S`BOSE`Y3_ZC&7Pydy{&KoxUeOy^A;(9b-Bl#gX+H8)Rhe7bD zjmHa3T&U|hmC{U2p$8YwZpjAk@%Mqt-(D?dckC^CFcthqIgXQ=)xpz|)IU!Rxla%4 zkui1#2OEg#0@jEc|4?n)Dfo}SVx_AwS7$zRidljI>L&wbyMWcbfYmQ0$n0DikoxpN zay3+M!QuYF+C#byfImMuKsoqf2O-KGabZB$D$;QdfLy0|OGMQ5&RzyQ;vlf+=^hRK z-T=@P;3D!@+xKO3EowxH~I=(p97zciWtp&9bqbpHw1!d0-Z;tef_KZt=Do%U_!m=41f zXAA032@i)-pN7xZN`^`OsuWqBwNi*9o@)TuqjUI=6Q&2E|NQ;+Xn$Spe?R+Y@E_X$ z#n`ZRoB`O~7GnvfM}spO5T5fFZ!b47!;my6v%QsVF~QHC4RsssRC$tLfLM4Z}wS z_dh?42%%2~Ae)B+AwV09q_Bn$)Yi*N&COx^sFSLRYmE2`^kADvhE9v`6pu=xG0#lU>J zZdKb%90zOqZn`cp^suUxxbv0Xk?Yt#lowRDMI`Nx^hrhUQGq7g`{s?ht(NwQ?}A{m zOFQ`@w3<7+d1s|OT0C*k-a$gg;vR#G3PD+HI1r(bO@fcL_J=Ao>8)1O6=)KFEc>&G z`(F_G`u0ZJDugxI4YLSt?e)He4b{hy3#fW9pucy}ai+TM&)RnLZsk%+IL8rg0Gp4L zs-4{+X=?1AxHR`n_DqSQBXP!;yeTH- z_f0Spv`2zqzkwEZc#Gr|&u3IeNQg$m-s;!g@raXnh|3ltEWf+#7P*gY>PC`rZQhXXPd0wGq&1^7rB3=so% z#@4-$ZFUMDJD`~>;iqjkGwN4f-4}@`Dp7eNW|%bly!NPyJKa|UqWRdUlc3dyg(#kB z09ix72sx;`?bOP+s|sPT4_?|)S6LA0AR%lKS-Brj&5d~S@piP8grY1VXH?cfuI63K zO_M#>)u|1&CWo*5eJcmJT^zOjjEgc+kTTm8QZV!_4{Tti=I|ENQUYa}<&QFCuf(s%a8Jqpo&d#1kFX#L&o$lXud zeLq#1(Nol+k#R*U%m^=e=grbTqB6Gu&~O`U&-_`)H2WLS51Jt1F{aa`DHi=M_-!j^ z-5o+nM+7cxNkSM>BDUG5uaX3F-*a7yo*OY6 zmLwf!HGx$`D2bObbv=eyJ24p4%wu=GQI$I3*Ky9_fu+&xW5DDb($=4Z<|4Yq#mPHy z_|>ni-4FC^|5R=#{$QK)*naiJ$8R6m@kCo6&vvBX5EoVwzP!<(nlgS4Pe4YeHOr2d zGNV5LPH6R6-!HwsNFcL_+zK6QYSj8{WLuC-^Trf`{ghcx5FU=1AxO)$8*2OgaTw~5 z*rZ8y!AV|nIGC;5UXYxIEPHVNG}O-x!xGsv)^#;t!nf5&WcZWHe9;W$gz`hODdrEd z#5L+VR?IYTpR%1e%A?w`_vb-%cq9}TzNAs7j#mbUcjt}n9!iNjW%5zD0i&O2kvx*& zP%1}M&e}Lxb*`ZM1#6pcyQrF`yBgF{ccit1I*v4SJ*RhK4i}bi{Tg;c3IVL#2Fe>2aA7T1kHXo2-8?GWWkU>b z!bk*=np=eOWeAdT75u~2(<KO`L%+K$w}p{|Pw#X?>KoFt8KO?k9VDR|_W+t-y6fFD z-(AL3nh;TTh`o-w>+`s1QTxr*O=>$8{X^|1i~b0_G=S7`Y@))Z&NtQ3M(-p+868sK zdu}7T(dD112f)-xMw`qgRqGm*j`*oAxjQV8*XJaMwYSUZse3s5i6wM6n$#AY`2;dh zbM*%TX_vhRNR`HP&U&&uEs{9dyjXvKTB94t3{EYY)Li zWImxvlmRwYnF5sO5dri_KA@%b3Z6^(^X|uVw6437J50z!q_L^2aTt z$_G#8sTRPi4~tSY^3{oP1v13VNnO8*Q*wmS9yt5X-%u(`Ty^Mv*qF5DF>kYiSh7bn zO+^AIUmxtQ;KI&mo`yE6jCQSGn(Wa>OS}#UA+_b_K1bPQ1CAOtNBr~d{-hc++JHFK z(e?mNYV-L!hWU4FUXrR#*bE>YELx6)FI7&J0_-e!=y#(lr^5rx;)ydk6kM3eUlKGM zo&Y}*)nSqajmL%Q{*Rt%+aUJ3(ViD4S@h8%xFNcvOngUWApxqQydh8$J-SzUPP5MU zev1pW7FvB4+a#0*dWJjU?tlpywZSris3({L{6Ikr-DrtytK%WrRz92;CMS;j2MGE9 zU!}AR3{H7Uw)LL>7U(YR5^92VVHh8P9X0T>=gaJMsnds7w(^J3ytyI^g z9RxGPOd{7^&nq*qa)dVT@P-Jh&-tZkpTjpG%Ut?fo`gcC^^U{rFwek#stkNU0y>4* znhKeI1(foK0oO4-60GdB>Ap$izZPW2j zC@UBYQ_gaai;gJ0X|>#!`8d^9nuXf-{&n-2i;Jbri}GOXutLjz?ReC zm{sOSj6h|V5{`Sl=YufIQsAYpx`AMaaGOzKkera?h4i#cRuQNKxzq4zr_a z*&TP^-}@prW)B-gsGup|)*FJRTvk83bo|9Ku?B;$8kgQv%P;xP*?5&7N_s@k_7 zA{!UwV48!uZ{!fCLiiAX*mqAshJkJ9^YYWXBLXq+($z~|T7okZBh9lOo+S)0-`k@Q zbF#loS}XuXXMsH6c!FJ5k(LtoFN{9 zNnHWT!o@RGgcDXOX}okjrOwb)`$S4zJPN@L4ao{816Y8%ZpA-`ezMXR@DsE6qe#tA zm@;MjMr3&nx79;~$kuDgAA>itw-lDC6Gh?-Zcf73^bFO8Bxg~DQ(HYY=PstyUBdEG zZZ{4GR*QKw^Gv2rT-G4ax3|?qyOyJHQ4cK+HCEVJu)hwJ_-c8J?ZI(CYCIfCgi+J{ zu~NR_SP}r#Y=K=Jb{gK@8l(&6No$ECn{Th0?B3H|H6O>k#LJ!mk^+<+SvzujB)y?~ zeU4sJe$=OovZ2La_0W4clr30Rc(}4%!`iYr*UpeGX|fn-8Yn`mwd3`>CPJhM%13Ka zK+@B3+TyidKIHW}a{E`gM!3<}W0HX###k?a`tL0oojRfw)wiVU+?y)0_=Z)#ee1!X z!xUbuM?$t<`miw*S{-&rJFb8a2yY~7tY*G$2=VhjP`F6|O6b>N8s+^5{ID&(i*{)F zvqgx)q0)q!jM`l{R>A)mvyWW=K}8K}Cd+kEu0O0XO^`2=0UC=+)E~_Huk#EdcRsV| zx8on6ZKWv9vh@n`$8_R|O=B7&9?cLxtY+$I;5ch-Mb2K9pS*2bULB?o*WPtD()Dhh zTvuH`Z%{x;*6ssJ@f}H^=#k~8Y}@W0nm0J-`myKs>S-KF`Ewg{rj_q0>#(9RHh<9p zG89;SbSI95qyI~$e24))eEoyf<_GTK>ML`Z4(E?R9Y;JsZF$o z&~E1~8ay(GbP!kH72Iq9P8=KCc{j9AnMK*H=Rs06Gon{-Vh$_47z5nH>6WWKkNb-1 z0OMy{sw?69ThELoZSESkJ&gS6mVNi#@OtwYa%`{*>?hhQ_QlQ>@T(ZWuX?e?6O*i< zX6*3Xd0Y{y%v>tv^w_<3DKEtzem7qPT1m}A6E`Ede=L1##rD4(`gwNx=IbD7f<^Kp zp#PE{?xRx@krfX2p&+Zff%CU7@`d)2L0IVG4c+zUK7;QLM`PI}t@j(thn=xBTg)Tp zj#_)IZg59UJmZEp4C==iAhl69Ir7F&5EgB!O;ECLs?l36&FnYi)-Ij&D2yCkS^Zg# zu#Cj4xLO^iZToRa{z2l#8f=7orTJa5xScV6={eZWn9v5GrjKcAJXE5tnNRDuTSkhn zN@Z0$oC^kyS+mqUhLp;#=iV`*jmuZAH_fN-8)NPqhG_hlw)C?=`)nHg*u5iFLYk#q zu2XbhRhc^Lz)v2ONv3JKI;bf!La}6i>WzX$oZd=i<{O^fisT&opi6M2wXuYg_-d(F zKwP3dY0a*zJijv0tM@$?2@$CC$@XKfPNJEnxJH>^%2QaGB~}6Nj?-F+79fwvq|?k? z4?G2Y8C0Lx{QQJeO%8h!~qVJzVMt1WY!4DvN;eC_SaZe$jx<&xx z50J-6Nw1MoX|tg2y+klcd{Jsgv&X)X+chc@lgoUPry{WlIK>)!H=Ir@6inC~LXM-y zkZh3Oc5dycflBby7 zuessj(OW&Z3Cucr_;rszgJ)EhuH{U$93BB2{pRt)B31h#sm=0uTsvt#5`B1>h;D3d zry5vD;`UO;gt(_Ao&U{&RW3>1^}&1nJ$ z7LkHso}#{{QNN2GnWKb!!E1C};Jg*bU0jZij8#$ zB|-I}Y_^w?csa4LQ5F|$3~Grj>Dy&6WObsxU98R_R#+V{CdT4=v-kH0RY36x%=(ZE z&wZCCY9v#`!u}nNqp*ER_<*{=DauFLV}Q1(kJp?(1Bz#*!=^eMCtsO%-+X%n?0E%C zX6hy|eR2N)F!C4g#rh}=V)y*J3D@%q|4v8>zHa}j2X=c^ zKvG+DdUz~V%mf#F>t9Tt)JojDw0$)W*|!VZ8)*(0I7^%XH#1sNT8H1omo#BdOxIR? zZHoWCu>bmGbhPKc(~8y9(3%AYVbgh|)F@5rKFttZt-$w5Zw=}}`?I(xZNX4ca??kg zOkTjz26he(_Q7WIGFqy5Y9_?)c2FED6GDg)CJEL-yAWXc@r5P5;fXfQH25Dx%!Bhl zKT#?V#pKd%gUJLR3ab@;L6c8@6RXDil$}&HTP++G$d@K8@aRYrq}C^phpRo8^l?i+ zTf&#VOpsb$z99iY+&~M;)*Vq6_y?k`do2;{ zmifkN_?{Uqq?e(vYZQ#w!jT>oGco5^K-sQ1N*(BtpCPY5Fz7wwN;Dz5nJIjVG4D_X zqNECe2^18gSODgs_b87qQ&3} z4+AiFADWX|L!zRmC-$}6yN*DmqT{%+DO+lhxf@olqom#4>GBjfY5m4koV#r-DpQUS zgRBsOnY#W87I9bdmN zJZ%Zc=cvw1#pc2_PegAU8Xp-Yj~}{6J_y9f0>a$nV2+Gn*SRpL_HC(hc6a|W-)7L3 zA}HuRvjpf_V~^g;HiwA$6Y8luV=kj-{(UT#!4+CqT;}{eMD-2(P7{C7g$oDg$0M?P zDySzQqq;6p;ugITr)gU3J6gO!7xYFEvwx>4lriC7eZ2hhrV%)NQE zw{qm<*zu!(*^m~mPO=$qTsC-mctnAIoT|>%m-FRy_-$wuaHz?|)wNL_DMsXRJte^D zMnA1$-1vD8ZvxgmPCqEqVE{BiKY?A62hL(!P)so>rvLIu|A#l&`}9K})e>x>xs>W^jG*V=78_#o}<6Z4}326FAF#$ z)lzRh`u?SnM1mnk`*KS&9DI0_MeaDjrutoD9I}NGwq{$a;-aYRe-G>UOJK8jm=%2(I;f%*&O_$?| zd93=aY!>lVhK2_U?$Qi7YJNo^3WMzlq9Ywn>?|iE`w`&;InZ9}2lEgr{B~%>Ob7mWfUdD_Z!^(WK(RAy0n#d zvGTLQD~I3iutRrH-uv3h0gK-UJUc}6?!C!JN58dP7rXzfA}44SXXrjyARA7V(qe;- zp>n4WkArz(SRq=#GuFF_=@o`iV8wZpD<`v5?C!g)f9AB$nN9qLlw$9g8JrbYlinWh zG*G$GxvNPizf=9}+ba{c#-mmh*5Kvw@@#L@U!~B)>?3{QW^-OwSfijkla;`d<`4V! zjz+LO`F_B}*3|(CnX}N_fD{?V18-1GS90L;Qh(cxigS9D&Fo82N(b#qZx&tbq>_Ob zz>XeuldFwjIU=PRM#k4&%s6AEavxh$lq#Y-1h4e#i27C)89w`_fI!U}hbUIQ0AXMJOGHx@vlsX?(G)#SFo$vvfV7rZAz1v3kQQo!8kuSYD+*{kPd>=9ZJX7tsO*Pp^Kp=-Xs zow%^_!|&c(yXvCb6}OF!37tOS?aE=ibIuj7#06h~Ix=(y+vj&aE_hWV=`v!j4$Y%e z_CNEo=|hxZ#?d-myGGK_&kpareNn zjowp&dVlcxZyib+j)wI<_+BCF)}NJm!YIWC;`)S7F24GOa<+n;NftiIpnB7x<6vKc z)jEF2t5J3;l%fQiLI_usX7=N69|e&lqWc^4Niqs4mkS+dXxq$;nA-ilL4pY*o&XgsdS&=~eouQLT@ z2OJFuMHI>g+tdZ;?*se2?*g`OK4ooArq@n1NMd|rs~#cq?AM2IglYbH!w28r9QXWI z-`rY4Ho_Ao^K~O7$xAX<`YgD&!bM=uSda22sjqk+$}v0YOsWbo@4Dy_#LdSz+8x?2 z%8}xH1y0{mZ@Rv}!?nhCH@;moF3`M*%U7H^98?A@B|pxAh40C_ZbtLBkT!MSZ}y5- zZ-aaH++So>+8T>flLEY$UDM+56?G`uN&4BEk%D0AgIYW1@UxPx=r zFz;s#_$n)xWPhdZ_3pi%te1T)?ChQsRq^vk@_wt3@e&iT&^S35y_W2e9hHuS~E$(>{6w=0Q0*tA=(=Hn;iPMvZO)6Hd_ zf=5D_{fuRi?nS4d$5eg*^tpk2uGVY(&x=Xd3HcF=c`C=Qq7 z4O45GH%r=(Z<%$k8)Qy0|MqL#`Fj{CkXc%ouXA`rEDl#INxAkyk;QSzG?NO|oWKM9 zf~NHu8N(sTAg&!>_CVv)glrj>xGX@UQHZb`dq=k^ z!Or7~SCT3f62wKsXAhY=A*1oudB*yCcRpUqr@f!g(lmt z=QfB^D&h^q;#$l(;o`xDXKw+-tHB*CeKNBRKGV+(;25phi;YT$E-rGF-y>*$CTy)w zh7c#el}*Q(x*9~!x;VQDtH$9leNaE1&ao!G^6hA-#76nHeWbpkuRrD8y%{ z$BjTUCBa&#CI5QuT#rPhV6PGETlCBfXMFqpfjeVh%>v4Oj9<4od&8`8QUGUsz_1No z;VAgjBlNn~%53AiX8XXcTEJ=4%*tYztdosZ3C?4ALF=Q+WWdhL4Qte2c5=2F`91<- z&$LSve15fNm-$%i+tzjQ-v*D)<~ zHl?X42`-ZK4B4|DXjXgz?yQpWEUrt73GAD?iBh$$|7^>Upfz!;?#^8>c_VtP7VY>r z`NiW%_Hf?u=-*FSC35x(1jPG(m~-!hgTy-*+mE(zOXy~VRLP?5!|+3mDnYQ~%Y(nl z0vG$&)$v&o_8|3$ZqG5}r9JVAwhs=1O7L@D%B1iZ<_`dvp|qalSGw z)ZQ)cG0EB|M|ToseSQVkwD*NLHJiCcaoo80`|_jR!q^!#guzHdU3ZI+;@s7R&-c>X zK;lL>I`nuVf4uyVp=&0&8WqG=HYssvGgseATe|(#g7|rkN_7O?zHmc~N0u+

    fsB zoI{7T96(R z%=?2T2JAW?*Y9;wQ+_pRrN1#25AvmP60P3dzR#ueKD0xOc^9W&YgMC-aF_R?lSCh@pQO%_DvK+xEMUaCyR^nmCrQ@A9xWg64 zYJLoGV0VF((?uH}BEt}nY*~2&E&;nS#Zit4J5FgZ(ATME1Kb1lYr8X#!v=xO86&LP zge-$FuVPHvId#~5RO^B-Mv-@aw4wk}_t+}??)RPq(0g0)$94F}XVSzcPY3cfJ^*+R z#2Q2M=2Xiw@z35AT)U#MYKcM2>l7N8E3?Gea#OjYeR!fg60Q+uz(qiU-J%4D@8ko-E7f^~98ile+vhjD)wFJd|hy>#JJ<?zHxQ=MB9GTUNQo%~_(WzC+W>^F*v40!GuSM=?{#bHs=-j(xo ziMiaE-O{X%Yws>IUNVy2?)%c?eM72k&IxBGqm=+8fN$A55lvbX%u{)AvnyB5dQ}S@ zzhhD_5tQC9aH6KX&2RP<7}mc^x_XCLpw)sl|nhN~`_ zw4T@Md6ootXb#Wra6Z`l^+HyCkvPfG6iG;EPiNZ(sO0rP9e1L%r?bP5BvkWGg{?Av zm}R;=yZ$(3MdN|V!5&LR^-K8HigGKJSjX$c)shzJ+cgaG?p{1Exs|~aZTMTh-`bCE z5TO{@oKzCOQs8VPX7H=_z&*g6rwr0)x8c4;zVP(alrOBn_N2*r~|cnoVqG~Lb@YWEZfzF%L*D|5AQJ2Io0 z@(lPkpD%$mwbluXU&FKuStB)=yNWkwjpk3B59_&8pu z|1n#Bt5(I>%J;XjUvwcg`W>uO8||vIe(X^feA!PfQ1%p(z`Z-yt^k2o9^AnfePM0R zW~dMI)mUI5LsVlm^f;Lm@QlaxKpY5+Ze;b~6GuR$^ZedD5vfofb)yr1W?3fV&kUWT zzPR$RJ)v#a%^?!7#w}ohU;Cfrx$smSO2TI++L_oShO40=ZHMvO!hHCv74gFBmHFxf zod^MnASm}p-uXNXFD2T{Q9tDvA>C+OfH6s|Cnfv$A3|HR8DePZ;@O_w20v%b?#C9} zyt_4mYGBTFL;MZH-|DX*Sz&3hC^0cjA3+*s4GFY&?=tjo<0C(XS{;szoMQC z=xJLKpFQi5#O1Zols559((r1~N7J>w(@7HI&A=L6KQDJ7AxS~(l7lX-Kt=8%e%Wg> zJ#j-cxu_)!E%n-oC3xK@j3HK-$RqTnYZVvfuQy+RvvY+H2R?U*H*0~S5{aDec z!hc7#wsTpe7J^yuTXz7x9kQS$7nBT)owGYm!)6==F2YPNojZt?-s64lAiOqGLf!x= z4K3`8omD!S&dAxt#d|8uPrb|`W5P09`7bo4eq->Ktvm|(y8TXYM85NhdGGE`>h z8U=2Tzc+XGrO~eQDSTE&$k&(;GxFr&i6{IZp>O^Oz@h5ik_pw0XRELOj*e_z7n=)L%Mw2w2SBI*}j@1gJ-pL2HGC{t@pXpfP|Qj@6=JV-fdel z4J%r=A@WVe*@5hgsqO=_|GD?KQ{W0t#_R6eBIBoJX4@S9oBF`TixFva2KzQuAIsmw zgOPOE+yJc&F2pt7X~GzLVIk=W){i>;KTo(hXb?n$^34)^_1Fv&W)y7aGGNpvLCA3Q zVa$xHu29=D_Mg6pD8=PUAM>O*ztpvougoq#TV}2&(pwE=0Dz~r4!l{UE;_B-@!wB* zy$nk>c-zwkIdJNPCE0!IM#uUO8TvnM#GnqV(atd(tee{mXF-Nz|D%4DbgI4Y^_y}R SAJcnVSB-95s=DYD_x}J{tttTk diff --git a/apps/common/main/resources/less/toolbar.less b/apps/common/main/resources/less/toolbar.less index 07292b1db..175f825da 100644 --- a/apps/common/main/resources/less/toolbar.less +++ b/apps/common/main/resources/less/toolbar.less @@ -515,7 +515,6 @@ } .item-chartlist { - //.background-ximage-v2('toolbar/charttypes.png', 250px); width: 40px; height: 40px; .icon { @@ -530,118 +529,3 @@ } } -.line-normal { - background-position: 0 0; -} - -.line-stack { - background-position: -50px 0; -} - -.line-pstack { - background-position: -100px 0; -} - -.line-3d { - background-position: -150px 0; -} - -.column-normal { - background-position: 0 -50px; -} - -.column-stack{ - background-position: -50px -50px; -} - -.column-pstack{ - background-position: -100px -50px; -} - -.column-3d-normal { - background-position: -150px -50px; -} - -.column-3d-stack{ - background-position: -200px -50px; -} - -.column-3d-pstack{ - background-position: -150px -100px; -} - -.column-3d-normal-per{ - background-position: -200px -100px; -} - -.bar-normal { - background-position: 0 -100px; -} - -.bar-stack{ - background-position: -50px -100px; -} - -.bar-pstack{ - background-position: -100px -100px; -} - -.bar-3d-normal { - background-position: -150px -150px; -} - -.bar-3d-stack{ - background-position: -200px -150px; -} - -.bar-3d-pstack{ - background-position: -150px -200px; -} - -.area-normal { - background-position: 0 -150px; -} - -.area-stack{ - background-position: -50px -150px; -} - -.area-pstack{ - background-position: -100px -150px; -} - -.pie-normal { - background-position: 0 -200px; -} - -.pie-3d-normal { - background-position: -200px -200px; -} - -.point-normal{ - background-position: -50px -200px; -} - -.stock-normal{ - background-position: -100px -200px; -} - -.pie-doughnut{ - background-position: -200px 0; -} - -.surface-normal{ - background-position: 0px -300px; -} - -.surface-wireframe{ - background-position: -50px -300px; -} - -.contour-normal{ - background-position: -100px -300px; -} - -.contour-wireframe{ - background-position: -150px -300px; -} diff --git a/apps/presentationeditor/main/app/view/ChartSettings.js b/apps/presentationeditor/main/app/view/ChartSettings.js index 8bedf958a..6785ca887 100644 --- a/apps/presentationeditor/main/app/view/ChartSettings.js +++ b/apps/presentationeditor/main/app/view/ChartSettings.js @@ -119,7 +119,7 @@ define([ value = props.get_SeveralChartTypes(); if (this._state.SeveralCharts && value) { - this.btnChartType.setIconCls(''); + this.btnChartType.setIconCls('svgicon'); this._state.ChartType = null; } else { var type = props.getType(); @@ -127,9 +127,9 @@ define([ var record = this.mnuChartTypePicker.store.findWhere({type: type}); this.mnuChartTypePicker.selectRecord(record, true); if (record) { - this.btnChartType.setIconCls('item-chartlist ' + record.get('iconCls')); + this.btnChartType.setIconCls('svgicon ' + 'chart-' + record.get('iconCls')); } else - this.btnChartType.setIconCls(''); + this.btnChartType.setIconCls('svgicon'); this.updateChartStyles(this.api.asc_getChartPreviews(type)); this._state.ChartType = type; } @@ -200,9 +200,9 @@ define([ var me = this; this.btnChartType = new Common.UI.Button({ cls : 'btn-large-dataview', - iconCls : 'item-chartlist bar-normal', + iconCls : 'svgicon chart-bar-normal', menu : new Common.UI.Menu({ - style: 'width: 435px; padding-top: 12px;', + style: 'width: 364px; padding-top: 12px;', items: [ { template: _.template('

    ') } ] @@ -215,7 +215,7 @@ define([ restoreHeight: 421, groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData()), store: new Common.UI.DataViewStore(Common.define.chartData.getChartData()), - itemTemplate: _.template('
    ') + itemTemplate: _.template('
    \">
    ') }); }); this.btnChartType.render($('#chart-button-type')); @@ -320,7 +320,7 @@ define([ rawData = record; } - this.btnChartType.setIconCls('item-chartlist ' + rawData.iconCls); + this.btnChartType.setIconCls('svgicon ' + 'chart-' + rawData.iconCls); this._state.ChartType = -1; if (this.api && !this._noApply) { diff --git a/apps/presentationeditor/main/app/view/DocumentHolder.js b/apps/presentationeditor/main/app/view/DocumentHolder.js index a38db7495..8f689852c 100644 --- a/apps/presentationeditor/main/app/view/DocumentHolder.js +++ b/apps/presentationeditor/main/app/view/DocumentHolder.js @@ -3458,7 +3458,7 @@ define([ if (!menu) { this.placeholderMenuChart = menu = new Common.UI.Menu({ - style: 'width: 435px;', + style: 'width: 364px;', items: [ {template: _.template('')} ] @@ -3480,7 +3480,7 @@ define([ // restoreHeight: 421, groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData()), store: new Common.UI.DataViewStore(Common.define.chartData.getChartData()), - itemTemplate: _.template('
    ') + itemTemplate: _.template('
    \">
    ') }); picker.on('item:click', function (picker, item, record, e) { me.editChartClick(record.get('type'), me._state.placeholderObj); diff --git a/apps/presentationeditor/main/app/view/Toolbar.js b/apps/presentationeditor/main/app/view/Toolbar.js index 26051856c..71f68771f 100644 --- a/apps/presentationeditor/main/app/view/Toolbar.js +++ b/apps/presentationeditor/main/app/view/Toolbar.js @@ -1112,7 +1112,7 @@ define([ ); this.btnInsertChart.setMenu( new Common.UI.Menu({ - style: 'width: 435px;', + style: 'width: 364px;', items: [ {template: _.template('')} ] @@ -1126,7 +1126,7 @@ define([ restoreHeight: 421, groups: new Common.UI.DataViewGroupStore(Common.define.chartData.getChartGroupData(true)), store: new Common.UI.DataViewStore(Common.define.chartData.getChartData()), - itemTemplate: _.template('
    ') + itemTemplate: _.template('
    \">
    ') }); picker.on('item:click', function (picker, item, record, e) { if (record) diff --git a/apps/presentationeditor/main/index.html b/apps/presentationeditor/main/index.html index 56f0d0641..7f7060d5c 100644 --- a/apps/presentationeditor/main/index.html +++ b/apps/presentationeditor/main/index.html @@ -284,6 +284,7 @@ + diff --git a/apps/presentationeditor/main/index_loader.html b/apps/presentationeditor/main/index_loader.html index 4d37d5841..679142047 100644 --- a/apps/presentationeditor/main/index_loader.html +++ b/apps/presentationeditor/main/index_loader.html @@ -257,6 +257,7 @@ + diff --git a/apps/spreadsheeteditor/main/index_loader.html b/apps/spreadsheeteditor/main/index_loader.html index ed2469838..b098ed4bd 100644 --- a/apps/spreadsheeteditor/main/index_loader.html +++ b/apps/spreadsheeteditor/main/index_loader.html @@ -260,6 +260,7 @@ +