From 88f32b91f6e65237bfaca3e05883f8531a910116 Mon Sep 17 00:00:00 2001 From: JuliaSvinareva Date: Wed, 26 May 2021 18:30:18 +0300 Subject: [PATCH] Hint Manager: change letter getting, add offsets, add hints for toolbar --- apps/common/main/lib/component/Button.js | 20 ++- apps/common/main/lib/component/ComboBox.js | 10 +- .../main/lib/component/ComboBoxFonts.js | 2 +- .../main/lib/component/ComboDataView.js | 8 +- apps/common/main/lib/component/HintManager.js | 66 +++++--- apps/common/main/lib/util/utils.js | 6 +- apps/common/main/lib/view/Header.js | 3 +- apps/common/main/lib/view/Plugins.js | 8 +- apps/common/main/lib/view/ReviewChanges.js | 44 +++-- .../main/app/controller/Toolbar.js | 2 +- apps/documenteditor/main/app/view/Links.js | 30 +++- apps/documenteditor/main/app/view/Toolbar.js | 160 +++++++++++++----- 12 files changed, 255 insertions(+), 104 deletions(-) diff --git a/apps/common/main/lib/component/Button.js b/apps/common/main/lib/component/Button.js index 8f76ff772..400d5554f 100644 --- a/apps/common/main/lib/component/Button.js +++ b/apps/common/main/lib/component/Button.js @@ -194,7 +194,7 @@ define([ '<% } %>'; var templateHugeCaption = - '' + - '', '<% } else if (split == false) {%>', '
', - '
', '<% } else { %>', '
', - '', - '', @@ -354,7 +355,8 @@ define([ caption : me.caption, style : me.style, dataHint : me.options.dataHint, - dataHintDirection: me.options.dataHintDirection + dataHintDirection: me.options.dataHintDirection, + dataHintOffset: me.options.dataHintOffset })); if (me.menu && _.isObject(me.menu) && _.isFunction(me.menu.render)) diff --git a/apps/common/main/lib/component/ComboBox.js b/apps/common/main/lib/component/ComboBox.js index 121f4570c..cd5a614ff 100644 --- a/apps/common/main/lib/component/ComboBox.js +++ b/apps/common/main/lib/component/ComboBox.js @@ -87,13 +87,15 @@ define([ valueField : 'value', search : false, scrollAlwaysVisible: false, - takeFocusOnClose: false + takeFocusOnClose: false, + dataHint: '', + dataHintDirection: '' }, template: _.template([ '', '', - '', '