Merge pull request #207 from ONLYOFFICE/feature/mobile-settings
Feature/mobile settings
This commit is contained in:
commit
1f523a5038
|
@ -57,6 +57,8 @@ define([
|
|||
var modal;
|
||||
|
||||
return {
|
||||
configPlugins: {autostart:[]},// {config: 'from editor config', plugins: 'loaded plugins', UIplugins: 'loaded customization plugins', autostart: 'autostart guids'}
|
||||
serverPlugins: {autostart:[]},
|
||||
models: [],
|
||||
collections: [],
|
||||
views: [
|
||||
|
@ -71,9 +73,11 @@ define([
|
|||
this.api.asc_registerCallback("asc_onPluginShow", _.bind(this.showPluginModal, this));
|
||||
this.api.asc_registerCallback("asc_onPluginClose", _.bind(this.pluginClose, this));
|
||||
this.api.asc_registerCallback("asc_onPluginResize", _.bind(this.pluginResize, this));
|
||||
this.api.asc_registerCallback('asc_onPluginsInit', _.bind(this.registerPlugins, this));
|
||||
},
|
||||
|
||||
onLaunch: function () {
|
||||
Common.Gateway.on('init', this.loadConfig.bind(this));
|
||||
},
|
||||
|
||||
setMode: function(mode) {
|
||||
|
@ -173,6 +177,133 @@ define([
|
|||
}
|
||||
},
|
||||
|
||||
loadConfig: function(data) {
|
||||
this.configPlugins.config = data.config.plugins;
|
||||
this.loadPlugins();
|
||||
},
|
||||
|
||||
loadPlugins: function() {
|
||||
var me = this;
|
||||
if (me.configPlugins.config) {
|
||||
me.getPlugins(me.configPlugins.config.pluginsData)
|
||||
.then(function(loaded)
|
||||
{
|
||||
me.configPlugins.plugins = loaded;
|
||||
me.mergePlugins();
|
||||
});
|
||||
} else {
|
||||
me.configPlugins.plugins = false;
|
||||
}
|
||||
var server_plugins_url = '../../../../plugins.json';
|
||||
Common.Utils.loadConfig(server_plugins_url, function (obj) {
|
||||
if ( obj != 'error' ) {
|
||||
me.serverPlugins.config = obj;
|
||||
me.getPlugins(me.serverPlugins.config.pluginsData)
|
||||
.then(function(loaded)
|
||||
{
|
||||
me.serverPlugins.plugins = loaded;
|
||||
me.mergePlugins();
|
||||
});
|
||||
} else
|
||||
me.serverPlugins.plugins = false;
|
||||
});
|
||||
},
|
||||
|
||||
mergePlugins: function() {
|
||||
var me = this;
|
||||
if (me.serverPlugins.plugins !== undefined && me.configPlugins.plugins !== undefined) {
|
||||
var arr = [],
|
||||
plugins = this.configPlugins;
|
||||
if (plugins.plugins && plugins.plugins.length>0) {
|
||||
arr = plugins.plugins;
|
||||
}
|
||||
plugins = this.serverPlugins;
|
||||
if (plugins.plugins && plugins.plugins.length>0) {
|
||||
arr = arr.concat(plugins.plugins);
|
||||
}
|
||||
this.registerPlugins(arr);
|
||||
}
|
||||
},
|
||||
|
||||
registerPlugins: function(plugins) {
|
||||
var me = this;
|
||||
var arr = [];
|
||||
plugins.forEach(function(item){
|
||||
var plugin = new Asc.CPlugin();
|
||||
plugin.set_Name(item['name']);
|
||||
plugin.set_Guid(item['guid']);
|
||||
plugin.set_BaseUrl(item['baseUrl']);
|
||||
|
||||
var variations = item['variations'],
|
||||
variationsArr = [];
|
||||
variations.forEach(function(itemVar){
|
||||
var variation = new Asc.CPluginVariation();
|
||||
variation.set_Description(itemVar['description']);
|
||||
variation.set_Url(itemVar['url']);
|
||||
variation.set_Icons(itemVar['icons']);
|
||||
variation.set_Visual(itemVar['isVisual']);
|
||||
variation.set_CustomWindow(itemVar['isCustomWindow']);
|
||||
variation.set_System(itemVar['isSystem']);
|
||||
variation.set_Viewer(itemVar['isViewer']);
|
||||
variation.set_EditorsSupport(itemVar['EditorsSupport']);
|
||||
variation.set_Modal(itemVar['isModal']);
|
||||
variation.set_InsideMode(itemVar['isInsideMode']);
|
||||
variation.set_InitDataType(itemVar['initDataType']);
|
||||
variation.set_InitData(itemVar['initData']);
|
||||
variation.set_UpdateOleOnResize(itemVar['isUpdateOleOnResize']);
|
||||
variation.set_Buttons(itemVar['buttons']);
|
||||
variation.set_Size(itemVar['size']);
|
||||
variation.set_InitOnSelectionChanged(itemVar['initOnSelectionChanged']);
|
||||
variation.set_Events(itemVar['events']);
|
||||
|
||||
variationsArr.push(variation);
|
||||
});
|
||||
|
||||
plugin["set_Variations"](variationsArr);
|
||||
arr.push(plugin);
|
||||
});
|
||||
me.api.asc_pluginsRegister('', arr);
|
||||
},
|
||||
|
||||
getPlugins: function(pluginsData, fetchFunction) {
|
||||
if (!pluginsData || pluginsData.length<1)
|
||||
return Promise.resolve([]);
|
||||
|
||||
fetchFunction = fetchFunction || function (url) {
|
||||
return fetch(url)
|
||||
.then(function(response) {
|
||||
if ( response.ok ) return response.json();
|
||||
else return Promise.reject(url);
|
||||
}).then(function(json) {
|
||||
json.baseUrl = url.substring(0, url.lastIndexOf("config.json"));
|
||||
return json;
|
||||
});
|
||||
};
|
||||
|
||||
var loaded = [];
|
||||
return pluginsData.map(fetchFunction).reduce(function (previousPromise, currentPromise) {
|
||||
return previousPromise
|
||||
.then(function()
|
||||
{
|
||||
return currentPromise;
|
||||
})
|
||||
.then(function(item)
|
||||
{
|
||||
loaded.push(item);
|
||||
return Promise.resolve(item);
|
||||
})
|
||||
.catch(function(item)
|
||||
{
|
||||
return Promise.resolve(item);
|
||||
});
|
||||
|
||||
}, Promise.resolve())
|
||||
.then(function ()
|
||||
{
|
||||
return Promise.resolve(loaded);
|
||||
});
|
||||
},
|
||||
|
||||
textCancel: 'Cancel',
|
||||
textLoading: 'Loading'
|
||||
}
|
||||
|
|
|
@ -379,15 +379,17 @@ define([
|
|||
|
||||
_initMenu: function (stack) {
|
||||
var me = this,
|
||||
menuItems = [],
|
||||
arrItems = [],
|
||||
arrItemsIcon = [],
|
||||
canCopy = me.api.can_CopyCut();
|
||||
|
||||
_actionSheets = [];
|
||||
|
||||
if (canCopy) {
|
||||
menuItems.push({
|
||||
arrItemsIcon.push({
|
||||
caption: me.menuCopy,
|
||||
event: 'copy'
|
||||
event: 'copy',
|
||||
icon: 'icon-copy'
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -438,59 +440,61 @@ define([
|
|||
|
||||
if (_isEdit && !me.isDisconnected) {
|
||||
if (!lockedText && !lockedTable && !lockedImage && !lockedHeader && canCopy) {
|
||||
menuItems.push({
|
||||
arrItemsIcon.push({
|
||||
caption: me.menuCut,
|
||||
event: 'cut'
|
||||
event: 'cut',
|
||||
icon: 'icon-cut'
|
||||
});
|
||||
|
||||
// Swap 'Copy' and 'Cut'
|
||||
swapItems(menuItems, 0, 1);
|
||||
swapItems(arrItemsIcon, 0, 1);
|
||||
}
|
||||
|
||||
if (!lockedText && !lockedTable && !lockedImage && !lockedHeader) {
|
||||
menuItems.push({
|
||||
arrItemsIcon.push({
|
||||
caption: me.menuPaste,
|
||||
event: 'paste'
|
||||
event: 'paste',
|
||||
icon: 'icon-paste'
|
||||
});
|
||||
}
|
||||
|
||||
if(isTable && me.api.CheckBeforeMergeCells() && !lockedTable && !lockedHeader) {
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuMerge,
|
||||
event: 'merge'
|
||||
});
|
||||
}
|
||||
|
||||
if(isTable && me.api.CheckBeforeSplitCells() && !lockedTable && !lockedHeader) {
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuSplit,
|
||||
event: 'split'
|
||||
});
|
||||
}
|
||||
|
||||
if(!lockedText && !lockedTable && !lockedImage && !lockedHeader) {
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuDelete,
|
||||
event: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
if(isTable && !lockedTable && !lockedText && !lockedHeader) {
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuDeleteTable,
|
||||
event: 'deletetable'
|
||||
});
|
||||
}
|
||||
|
||||
if(!lockedText && !lockedTable && !lockedImage && !lockedHeader){
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuEdit,
|
||||
event: 'edit'
|
||||
});
|
||||
}
|
||||
|
||||
if (!_.isEmpty(me.api.can_AddHyperlink()) && !lockedHeader) {
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuAddLink,
|
||||
event: 'addlink'
|
||||
});
|
||||
|
@ -498,12 +502,12 @@ define([
|
|||
|
||||
if (_canReview) {
|
||||
if (_inRevisionChange) {
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuReviewChange,
|
||||
event: 'reviewchange'
|
||||
});
|
||||
} else {
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuReview,
|
||||
event: 'review'
|
||||
});
|
||||
|
@ -513,22 +517,24 @@ define([
|
|||
}
|
||||
|
||||
if (isLink) {
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuOpenLink,
|
||||
event: 'openlink'
|
||||
});
|
||||
}
|
||||
|
||||
if (Common.SharedSettings.get('phone') && menuItems.length > 3) {
|
||||
_actionSheets = menuItems.slice(3);
|
||||
if (Common.SharedSettings.get('phone') && arrItems.length > 2) {
|
||||
_actionSheets = arrItems.slice(2);
|
||||
|
||||
menuItems = menuItems.slice(0, 3);
|
||||
menuItems.push({
|
||||
arrItems = arrItems.slice(0, 2);
|
||||
arrItems.push({
|
||||
caption: me.menuMore,
|
||||
event: 'showActionSheet'
|
||||
});
|
||||
}
|
||||
|
||||
var menuItems = {itemsIcon: arrItemsIcon, items: arrItems};
|
||||
|
||||
return menuItems;
|
||||
},
|
||||
|
||||
|
|
|
@ -82,9 +82,14 @@ define([
|
|||
}
|
||||
|
||||
var menuItemTemplate = _.template([
|
||||
'<% _.each(menuItems, function(item) { %>',
|
||||
'<li data-event="<%= item.event %>"><a href="#" class="item-link list-button"><%= item.caption %></li>',
|
||||
'<% }); %>'
|
||||
'<% if(menuItems.itemsIcon) {%>',
|
||||
'<% _.each(menuItems.itemsIcon, function(item) { %>',
|
||||
'<li data-event="<%= item.event %>"><a href="#" class="item-link list-button"><i class="icon <%= item.icon %>"></i></a></li>',
|
||||
'<% }); }%>',
|
||||
'<% if(menuItems.items) {%>',
|
||||
'<% _.each(menuItems.items, function(item) { %>',
|
||||
'<li data-event="<%= item.event %>"><a href="#" class="item-link list-button"><%= item.caption %></a></li>',
|
||||
'<% }); }%>'
|
||||
].join(''));
|
||||
|
||||
$('#' + _anchorId)
|
||||
|
|
|
@ -6859,6 +6859,21 @@ i.icon.icon-footnote {
|
|||
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");
|
||||
}
|
||||
i.icon.icon-cut {
|
||||
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(%23cut)%22%3E%3Cpath%20d%3D%22M19.4406%2016.7116C17.8368%2016.7116%2016.4336%2017.76%2015.9825%2019.2576L13.1259%2013.5167L19.4907%200.737143C19.5909%200.487542%2019.4907%200.18802%2019.2902%200.0881796C19.0396%20-0.011661%2018.7389%200.0881795%2018.6387%200.287861L12.5245%2012.3686L6.51049%200.287861C6.41026%200.0382593%206.10956%20-0.0615813%205.85898%200.0382593C5.6084%200.1381%205.50816%200.437622%205.6084%200.687223L11.9732%2013.4668L9.06644%2019.2576C8.61539%2017.8099%207.21213%2016.7116%205.6084%2016.7116C3.60373%2016.7116%202%2018.3091%202%2020.3059C2%2022.3027%203.60373%2023.9002%205.6084%2023.9002C6.91143%2023.9002%208.06411%2023.2013%208.71562%2022.153C8.71562%2022.153%208.71562%2022.1529%208.71562%2022.103C8.81586%2021.9533%208.86597%2021.8035%208.91609%2021.6537L12.5245%2014.615L16.0828%2021.7037C16.1329%2021.8534%2016.2331%2022.0032%2016.2832%2022.153V22.2029C16.2832%2022.2029%2016.2832%2022.2029%2016.2832%2022.2528C16.9347%2023.3011%2018.0874%2024%2019.3905%2024C21.3951%2024%2022.9989%2022.4026%2022.9989%2020.4057C23.049%2018.359%2021.4452%2016.7116%2019.4406%2016.7116ZM5.6084%2022.9517C4.15501%2022.9517%203.00233%2021.8035%203.00233%2020.3558C3.00233%2018.9081%204.15501%2017.76%205.6084%2017.76C7.06178%2017.76%208.21446%2018.9081%208.21446%2020.3558C8.21446%2020.7053%208.16434%2021.0547%208.01399%2021.3542L7.91376%2021.5539C7.51283%2022.3526%206.66084%2022.9517%205.6084%2022.9517ZM19.4406%2022.9517C18.4382%2022.9517%2017.5361%2022.3526%2017.1352%2021.504L17.035%2021.3043C16.9347%2021.0048%2016.8345%2020.6553%2016.8345%2020.3059C16.8345%2018.8582%2017.9872%2017.71%2019.4406%2017.71C20.894%2017.71%2022.0466%2018.8582%2022.0466%2020.3059C22.0466%2021.7536%2020.894%2022.9517%2019.4406%2022.9517Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22cut%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-copy {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M3%203.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M3%207.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M3%2011.5H9%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M9%2014.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15%2010V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z%22%20stroke%3D%22white%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-paste {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M13%202.5H4%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%202.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%201.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%203.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%204.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%200.5L5%200.500001%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M9.5%209H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z%22%20stroke%3D%22white%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
.label-switch input[type="checkbox"]:checked + .checkbox {
|
||||
background: #446995;
|
||||
}
|
||||
|
|
|
@ -6339,6 +6339,21 @@ i.icon.icon-footnote {
|
|||
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");
|
||||
}
|
||||
i.icon.icon-cut {
|
||||
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(%23cut)%22%3E%3Cpath%20d%3D%22M19.4406%2016.7116C17.8368%2016.7116%2016.4336%2017.76%2015.9825%2019.2576L13.1259%2013.5167L19.4907%200.737143C19.5909%200.487542%2019.4907%200.18802%2019.2902%200.0881796C19.0396%20-0.011661%2018.7389%200.0881795%2018.6387%200.287861L12.5245%2012.3686L6.51049%200.287861C6.41026%200.0382593%206.10956%20-0.0615813%205.85898%200.0382593C5.6084%200.1381%205.50816%200.437622%205.6084%200.687223L11.9732%2013.4668L9.06644%2019.2576C8.61539%2017.8099%207.21213%2016.7116%205.6084%2016.7116C3.60373%2016.7116%202%2018.3091%202%2020.3059C2%2022.3027%203.60373%2023.9002%205.6084%2023.9002C6.91143%2023.9002%208.06411%2023.2013%208.71562%2022.153C8.71562%2022.153%208.71562%2022.1529%208.71562%2022.103C8.81586%2021.9533%208.86597%2021.8035%208.91609%2021.6537L12.5245%2014.615L16.0828%2021.7037C16.1329%2021.8534%2016.2331%2022.0032%2016.2832%2022.153V22.2029C16.2832%2022.2029%2016.2832%2022.2029%2016.2832%2022.2528C16.9347%2023.3011%2018.0874%2024%2019.3905%2024C21.3951%2024%2022.9989%2022.4026%2022.9989%2020.4057C23.049%2018.359%2021.4452%2016.7116%2019.4406%2016.7116ZM5.6084%2022.9517C4.15501%2022.9517%203.00233%2021.8035%203.00233%2020.3558C3.00233%2018.9081%204.15501%2017.76%205.6084%2017.76C7.06178%2017.76%208.21446%2018.9081%208.21446%2020.3558C8.21446%2020.7053%208.16434%2021.0547%208.01399%2021.3542L7.91376%2021.5539C7.51283%2022.3526%206.66084%2022.9517%205.6084%2022.9517ZM19.4406%2022.9517C18.4382%2022.9517%2017.5361%2022.3526%2017.1352%2021.504L17.035%2021.3043C16.9347%2021.0048%2016.8345%2020.6553%2016.8345%2020.3059C16.8345%2018.8582%2017.9872%2017.71%2019.4406%2017.71C20.894%2017.71%2022.0466%2018.8582%2022.0466%2020.3059C22.0466%2021.7536%2020.894%2022.9517%2019.4406%2022.9517Z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22cut%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22black%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-copy {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M3%203.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M3%207.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M3%2011.5H9%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M9%2014.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15%2010V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z%22%20stroke%3D%22black%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-paste {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M13%202.5H4%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%202.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%201.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%203.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%204.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%200.5L5%200.500001%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M9.5%209H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z%22%20stroke%3D%22black%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
.navbar i.icon.icon-undo {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
|
|
|
@ -456,4 +456,19 @@ i.icon {
|
|||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22 8.11133H20.9177V5.15361L20.9282 4.66765L20.9457 4.13624C20.7659 4.31571 20.641 4.43341 20.5709 4.48935L19.9825 4.96132L19.4606 4.31105L21.1103 3H22V8.11133Z" fill="@{themeColor}"/><path d="M10.3363 18.8514L8.98161 15.3968H4.61996L3.28021 18.8514H2L6.3021 7.94526H7.36646L11.6462 18.8514H10.3363ZM8.58713 14.2601L7.3218 10.8947C7.15806 10.4687 6.98935 9.94621 6.81567 9.32711C6.70651 9.80258 6.5502 10.3251 6.34676 10.8947L5.06655 14.2601H8.58713Z" fill="@{themeColor}"/><path d="M16.1425 10.5752C17.2143 10.5752 18.0454 10.9417 18.6359 11.6748C19.2313 12.4028 19.5291 13.4355 19.5291 14.7728C19.5291 16.11 19.2288 17.1501 18.6284 17.893C18.033 18.631 17.2043 19 16.1425 19C15.6115 19 15.1252 18.9034 14.6836 18.7103C14.2469 18.5121 13.8798 18.21 13.582 17.8039H13.4927L13.2322 18.8514H12.3465V7.29149H13.582V10.0997C13.582 10.7288 13.5622 11.2934 13.5225 11.7936H13.582C14.1576 10.9814 15.0111 10.5752 16.1425 10.5752ZM15.9638 11.6079C15.1203 11.6079 14.5124 11.8506 14.1403 12.336C13.7681 12.8164 13.582 13.6286 13.582 14.7728C13.582 15.9169 13.7731 16.7366 14.1551 17.2318C14.5372 17.7222 15.15 17.9673 15.9936 17.9673C16.7528 17.9673 17.3185 17.6925 17.6906 17.1427C18.0628 16.588 18.2488 15.793 18.2488 14.7579C18.2488 13.698 18.0628 12.908 17.6906 12.388C17.3185 11.8679 16.7429 11.6079 15.9638 11.6079Z" fill="@{themeColor}"/></svg>');
|
||||
}
|
||||
&.icon-cut {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#cut)"><path d="M19.4406 16.7116C17.8368 16.7116 16.4336 17.76 15.9825 19.2576L13.1259 13.5167L19.4907 0.737143C19.5909 0.487542 19.4907 0.18802 19.2902 0.0881796C19.0396 -0.011661 18.7389 0.0881795 18.6387 0.287861L12.5245 12.3686L6.51049 0.287861C6.41026 0.0382593 6.10956 -0.0615813 5.85898 0.0382593C5.6084 0.1381 5.50816 0.437622 5.6084 0.687223L11.9732 13.4668L9.06644 19.2576C8.61539 17.8099 7.21213 16.7116 5.6084 16.7116C3.60373 16.7116 2 18.3091 2 20.3059C2 22.3027 3.60373 23.9002 5.6084 23.9002C6.91143 23.9002 8.06411 23.2013 8.71562 22.153C8.71562 22.153 8.71562 22.1529 8.71562 22.103C8.81586 21.9533 8.86597 21.8035 8.91609 21.6537L12.5245 14.615L16.0828 21.7037C16.1329 21.8534 16.2331 22.0032 16.2832 22.153V22.2029C16.2832 22.2029 16.2832 22.2029 16.2832 22.2528C16.9347 23.3011 18.0874 24 19.3905 24C21.3951 24 22.9989 22.4026 22.9989 20.4057C23.049 18.359 21.4452 16.7116 19.4406 16.7116ZM5.6084 22.9517C4.15501 22.9517 3.00233 21.8035 3.00233 20.3558C3.00233 18.9081 4.15501 17.76 5.6084 17.76C7.06178 17.76 8.21446 18.9081 8.21446 20.3558C8.21446 20.7053 8.16434 21.0547 8.01399 21.3542L7.91376 21.5539C7.51283 22.3526 6.66084 22.9517 5.6084 22.9517ZM19.4406 22.9517C18.4382 22.9517 17.5361 22.3526 17.1352 21.504L17.035 21.3043C16.9347 21.0048 16.8345 20.6553 16.8345 20.3059C16.8345 18.8582 17.9872 17.71 19.4406 17.71C20.894 17.71 22.0466 18.8582 22.0466 20.3059C22.0466 21.7536 20.894 22.9517 19.4406 22.9517Z" fill="white"/></g><defs><clipPath id="cut"><rect width="24" height="24" fill="white"/></clipPath></defs></svg>');
|
||||
}
|
||||
&.icon-copy {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="white"/><path d="M21 16.5H12" stroke="white"/><path d="M21 12.5H12" stroke="white"/><path d="M3 3.5H12" stroke="white"/><path d="M3 7.5H12" stroke="white"/><path d="M3 11.5H9" stroke="white"/><path d="M9 14.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15 10V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z" stroke="white"/></svg>');
|
||||
}
|
||||
&.icon-paste {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="white"/><path d="M21 16.5H12" stroke="white"/><path d="M21 12.5H12" stroke="white"/><path d="M13 2.5H4" stroke="white"/><path d="M14 2.5H5" stroke="white"/><path d="M14 1.5H5" stroke="white"/><path d="M14 3.5H5" stroke="white"/><path d="M14 4.5H5" stroke="white"/><path d="M14 0.5L5 0.500001" stroke="white"/><path d="M9.5 9H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z" stroke="white"/></svg>');
|
||||
}
|
||||
}
|
|
@ -383,6 +383,21 @@ i.icon {
|
|||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M22 8.11133H20.9177V5.15361L20.9282 4.66765L20.9457 4.13624C20.7659 4.31571 20.641 4.43341 20.5709 4.48935L19.9825 4.96132L19.4606 4.31105L21.1103 3H22V8.11133Z" fill="@{themeColor}"/><path d="M10.3363 18.8514L8.98161 15.3968H4.61996L3.28021 18.8514H2L6.3021 7.94526H7.36646L11.6462 18.8514H10.3363ZM8.58713 14.2601L7.3218 10.8947C7.15806 10.4687 6.98935 9.94621 6.81567 9.32711C6.70651 9.80258 6.5502 10.3251 6.34676 10.8947L5.06655 14.2601H8.58713Z" fill="@{themeColor}"/><path d="M16.1425 10.5752C17.2143 10.5752 18.0454 10.9417 18.6359 11.6748C19.2313 12.4028 19.5291 13.4355 19.5291 14.7728C19.5291 16.11 19.2288 17.1501 18.6284 17.893C18.033 18.631 17.2043 19 16.1425 19C15.6115 19 15.1252 18.9034 14.6836 18.7103C14.2469 18.5121 13.8798 18.21 13.582 17.8039H13.4927L13.2322 18.8514H12.3465V7.29149H13.582V10.0997C13.582 10.7288 13.5622 11.2934 13.5225 11.7936H13.582C14.1576 10.9814 15.0111 10.5752 16.1425 10.5752ZM15.9638 11.6079C15.1203 11.6079 14.5124 11.8506 14.1403 12.336C13.7681 12.8164 13.582 13.6286 13.582 14.7728C13.582 15.9169 13.7731 16.7366 14.1551 17.2318C14.5372 17.7222 15.15 17.9673 15.9936 17.9673C16.7528 17.9673 17.3185 17.6925 17.6906 17.1427C18.0628 16.588 18.2488 15.793 18.2488 14.7579C18.2488 13.698 18.0628 12.908 17.6906 12.388C17.3185 11.8679 16.7429 11.6079 15.9638 11.6079Z" fill="@{themeColor}"/></svg>');
|
||||
}
|
||||
&.icon-cut {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#cut)"><path d="M19.4406 16.7116C17.8368 16.7116 16.4336 17.76 15.9825 19.2576L13.1259 13.5167L19.4907 0.737143C19.5909 0.487542 19.4907 0.18802 19.2902 0.0881796C19.0396 -0.011661 18.7389 0.0881795 18.6387 0.287861L12.5245 12.3686L6.51049 0.287861C6.41026 0.0382593 6.10956 -0.0615813 5.85898 0.0382593C5.6084 0.1381 5.50816 0.437622 5.6084 0.687223L11.9732 13.4668L9.06644 19.2576C8.61539 17.8099 7.21213 16.7116 5.6084 16.7116C3.60373 16.7116 2 18.3091 2 20.3059C2 22.3027 3.60373 23.9002 5.6084 23.9002C6.91143 23.9002 8.06411 23.2013 8.71562 22.153C8.71562 22.153 8.71562 22.1529 8.71562 22.103C8.81586 21.9533 8.86597 21.8035 8.91609 21.6537L12.5245 14.615L16.0828 21.7037C16.1329 21.8534 16.2331 22.0032 16.2832 22.153V22.2029C16.2832 22.2029 16.2832 22.2029 16.2832 22.2528C16.9347 23.3011 18.0874 24 19.3905 24C21.3951 24 22.9989 22.4026 22.9989 20.4057C23.049 18.359 21.4452 16.7116 19.4406 16.7116ZM5.6084 22.9517C4.15501 22.9517 3.00233 21.8035 3.00233 20.3558C3.00233 18.9081 4.15501 17.76 5.6084 17.76C7.06178 17.76 8.21446 18.9081 8.21446 20.3558C8.21446 20.7053 8.16434 21.0547 8.01399 21.3542L7.91376 21.5539C7.51283 22.3526 6.66084 22.9517 5.6084 22.9517ZM19.4406 22.9517C18.4382 22.9517 17.5361 22.3526 17.1352 21.504L17.035 21.3043C16.9347 21.0048 16.8345 20.6553 16.8345 20.3059C16.8345 18.8582 17.9872 17.71 19.4406 17.71C20.894 17.71 22.0466 18.8582 22.0466 20.3059C22.0466 21.7536 20.894 22.9517 19.4406 22.9517Z" fill="black"/></g><defs><clipPath id="cut"><rect width="24" height="24" fill="black"/></clipPath></defs></svg>');
|
||||
}
|
||||
&.icon-copy {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="black"/><path d="M21 16.5H12" stroke="black"/><path d="M21 12.5H12" stroke="black"/><path d="M3 3.5H12" stroke="black"/><path d="M3 7.5H12" stroke="black"/><path d="M3 11.5H9" stroke="black"/><path d="M9 14.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15 10V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z" stroke="black"/></svg>');
|
||||
}
|
||||
&.icon-paste {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="black"/><path d="M21 16.5H12" stroke="black"/><path d="M21 12.5H12" stroke="black"/><path d="M13 2.5H4" stroke="black"/><path d="M14 2.5H5" stroke="black"/><path d="M14 1.5H5" stroke="black"/><path d="M14 3.5H5" stroke="black"/><path d="M14 4.5H5" stroke="black"/><path d="M14 0.5L5 0.500001" stroke="black"/><path d="M9.5 9H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z" stroke="black"/></svg>');
|
||||
}
|
||||
}
|
||||
|
||||
// Overwrite color for toolbar
|
||||
|
|
|
@ -200,7 +200,8 @@ define([
|
|||
|
||||
_initMenu: function (stack) {
|
||||
var me = this,
|
||||
menuItems = [],
|
||||
arrItems = [],
|
||||
arrItemsIcon = [],
|
||||
canCopy = me.api.can_CopyCut();
|
||||
|
||||
_actionSheets = [];
|
||||
|
@ -237,9 +238,10 @@ define([
|
|||
isObject = isText || isImage || isChart || isShape || isTable;
|
||||
|
||||
if (canCopy && isObject) {
|
||||
menuItems.push({
|
||||
arrItemsIcon.push({
|
||||
caption: me.menuCopy,
|
||||
event: 'copy'
|
||||
event: 'copy',
|
||||
icon: 'icon-copy'
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -257,33 +259,35 @@ define([
|
|||
|
||||
if (!objectLocked && _isEdit && !me.isDisconnected) {
|
||||
if (canCopy && isObject) {
|
||||
menuItems.push({
|
||||
arrItemsIcon.push({
|
||||
caption: me.menuCut,
|
||||
event: 'cut'
|
||||
event: 'cut',
|
||||
icon: 'icon-cut'
|
||||
});
|
||||
|
||||
// Swap 'Copy' and 'Cut'
|
||||
swapItems(menuItems, 0, 1);
|
||||
swapItems(arrItemsIcon, 0, 1);
|
||||
}
|
||||
|
||||
menuItems.push({
|
||||
arrItemsIcon.push({
|
||||
caption: me.menuPaste,
|
||||
event: 'paste'
|
||||
event: 'paste',
|
||||
icon: 'icon-paste'
|
||||
});
|
||||
|
||||
if (isObject)
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuDelete,
|
||||
event: 'delete'
|
||||
});
|
||||
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuEdit,
|
||||
event: 'edit'
|
||||
});
|
||||
|
||||
if (!isLink && me.api.can_AddHyperlink()!==false) {
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuAddLink,
|
||||
event: 'addlink'
|
||||
});
|
||||
|
@ -292,22 +296,24 @@ define([
|
|||
}
|
||||
|
||||
if (isLink) {
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuOpenLink,
|
||||
event: 'openlink'
|
||||
});
|
||||
}
|
||||
|
||||
if (Common.SharedSettings.get('phone') && menuItems.length > 3) {
|
||||
_actionSheets = menuItems.slice(3);
|
||||
if (Common.SharedSettings.get('phone') && arrItems.length > 2) {
|
||||
_actionSheets = arrItems.slice(2);
|
||||
|
||||
menuItems = menuItems.slice(0, 3);
|
||||
menuItems.push({
|
||||
arrItems = arrItems.slice(0, 2);
|
||||
arrItems.push({
|
||||
caption: me.menuMore,
|
||||
event: 'showActionSheet'
|
||||
});
|
||||
}
|
||||
|
||||
var menuItems = {itemsIcon: arrItemsIcon, items: arrItems};
|
||||
|
||||
return menuItems;
|
||||
},
|
||||
|
||||
|
|
|
@ -81,9 +81,14 @@ define([
|
|||
}
|
||||
|
||||
var menuItemTemplate = _.template([
|
||||
'<% _.each(menuItems, function(item) { %>',
|
||||
'<li data-event="<%= item.event %>"><a href="#" class="item-link list-button"><%= item.caption %></li>',
|
||||
'<% }); %>'
|
||||
'<% if(menuItems.itemsIcon) {%>',
|
||||
'<% _.each(menuItems.itemsIcon, function(item) { %>',
|
||||
'<li data-event="<%= item.event %>"><a href="#" class="item-link list-button"><i class="icon <%= item.icon %>"></i></a></li>',
|
||||
'<% }); }%>',
|
||||
'<% if(menuItems.items) {%>',
|
||||
'<% _.each(menuItems.items, function(item) { %>',
|
||||
'<li data-event="<%= item.event %>"><a href="#" class="item-link list-button"><%= item.caption %></a></li>',
|
||||
'<% }); }%>'
|
||||
].join(''));
|
||||
|
||||
$('#' + _anchorId)
|
||||
|
|
|
@ -6741,6 +6741,21 @@ i.icon.icon-app-settings {
|
|||
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%2014H16C18.2091%2014%2020%2015.7909%2020%2018C20%2020.2091%2018.2091%2022%2016%2022H7C4.79086%2022%203%2020.2091%203%2018C3%2015.7909%204.79086%2014%207%2014ZM16%2013C18.7614%2013%2021%2015.2386%2021%2018C21%2020.7614%2018.7614%2023%2016%2023H7C4.23858%2023%202%2020.7614%202%2018C2%2015.2386%204.23858%2013%207%2013H16Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M16%2020C14.8954%2020%2014%2019.1046%2014%2018C14%2016.8954%2014.8954%2016%2016%2016C17.1046%2016%2018%2016.8954%2018%2018C18%2019.1046%2017.1046%2020%2016%2020ZM16%2021C14.3431%2021%2013%2019.6569%2013%2018C13%2016.3431%2014.3431%2015%2016%2015C17.6569%2015%2019%2016.3431%2019%2018C19%2019.6569%2017.6569%2021%2016%2021Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M16%203H7C4.79086%203%203%204.79086%203%207C3%209.20914%204.79086%2011%207%2011H16C18.2091%2011%2020%209.20914%2020%207C20%204.79086%2018.2091%203%2016%203ZM7%202C4.23858%202%202%204.23858%202%207C2%209.76142%204.23858%2012%207%2012H16C18.7614%2012%2021%209.76142%2021%207C21%204.23858%2018.7614%202%2016%202H7Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7%209C8.10457%209%209%208.10457%209%207C9%205.89543%208.10457%205%207%205C5.89543%205%205%205.89543%205%207C5%208.10457%205.89543%209%207%209ZM7%2010C8.65685%2010%2010%208.65685%2010%207C10%205.34315%208.65685%204%207%204C5.34315%204%204%205.34315%204%207C4%208.65685%205.34315%2010%207%2010Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-cut {
|
||||
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(%23cut)%22%3E%3Cpath%20d%3D%22M19.4406%2016.7116C17.8368%2016.7116%2016.4336%2017.76%2015.9825%2019.2576L13.1259%2013.5167L19.4907%200.737143C19.5909%200.487542%2019.4907%200.18802%2019.2902%200.0881796C19.0396%20-0.011661%2018.7389%200.0881795%2018.6387%200.287861L12.5245%2012.3686L6.51049%200.287861C6.41026%200.0382593%206.10956%20-0.0615813%205.85898%200.0382593C5.6084%200.1381%205.50816%200.437622%205.6084%200.687223L11.9732%2013.4668L9.06644%2019.2576C8.61539%2017.8099%207.21213%2016.7116%205.6084%2016.7116C3.60373%2016.7116%202%2018.3091%202%2020.3059C2%2022.3027%203.60373%2023.9002%205.6084%2023.9002C6.91143%2023.9002%208.06411%2023.2013%208.71562%2022.153C8.71562%2022.153%208.71562%2022.1529%208.71562%2022.103C8.81586%2021.9533%208.86597%2021.8035%208.91609%2021.6537L12.5245%2014.615L16.0828%2021.7037C16.1329%2021.8534%2016.2331%2022.0032%2016.2832%2022.153V22.2029C16.2832%2022.2029%2016.2832%2022.2029%2016.2832%2022.2528C16.9347%2023.3011%2018.0874%2024%2019.3905%2024C21.3951%2024%2022.9989%2022.4026%2022.9989%2020.4057C23.049%2018.359%2021.4452%2016.7116%2019.4406%2016.7116ZM5.6084%2022.9517C4.15501%2022.9517%203.00233%2021.8035%203.00233%2020.3558C3.00233%2018.9081%204.15501%2017.76%205.6084%2017.76C7.06178%2017.76%208.21446%2018.9081%208.21446%2020.3558C8.21446%2020.7053%208.16434%2021.0547%208.01399%2021.3542L7.91376%2021.5539C7.51283%2022.3526%206.66084%2022.9517%205.6084%2022.9517ZM19.4406%2022.9517C18.4382%2022.9517%2017.5361%2022.3526%2017.1352%2021.504L17.035%2021.3043C16.9347%2021.0048%2016.8345%2020.6553%2016.8345%2020.3059C16.8345%2018.8582%2017.9872%2017.71%2019.4406%2017.71C20.894%2017.71%2022.0466%2018.8582%2022.0466%2020.3059C22.0466%2021.7536%2020.894%2022.9517%2019.4406%2022.9517Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22cut%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-copy {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M3%203.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M3%207.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M3%2011.5H9%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M9%2014.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15%2010V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z%22%20stroke%3D%22white%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-paste {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M13%202.5H4%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%202.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%201.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%203.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%204.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%200.5L5%200.500001%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M9.5%209H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z%22%20stroke%3D%22white%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
.label-switch input[type="checkbox"]:checked + .checkbox {
|
||||
background: #aa5252;
|
||||
}
|
||||
|
|
|
@ -6273,6 +6273,21 @@ i.icon.icon-app-settings {
|
|||
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%2014H16C18.2091%2014%2020%2015.7909%2020%2018C20%2020.2091%2018.2091%2022%2016%2022H7C4.79086%2022%203%2020.2091%203%2018C3%2015.7909%204.79086%2014%207%2014ZM16%2013C18.7614%2013%2021%2015.2386%2021%2018C21%2020.7614%2018.7614%2023%2016%2023H7C4.23858%2023%202%2020.7614%202%2018C2%2015.2386%204.23858%2013%207%2013H16Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M16%2020C14.8954%2020%2014%2019.1046%2014%2018C14%2016.8954%2014.8954%2016%2016%2016C17.1046%2016%2018%2016.8954%2018%2018C18%2019.1046%2017.1046%2020%2016%2020ZM16%2021C14.3431%2021%2013%2019.6569%2013%2018C13%2016.3431%2014.3431%2015%2016%2015C17.6569%2015%2019%2016.3431%2019%2018C19%2019.6569%2017.6569%2021%2016%2021Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M16%203H7C4.79086%203%203%204.79086%203%207C3%209.20914%204.79086%2011%207%2011H16C18.2091%2011%2020%209.20914%2020%207C20%204.79086%2018.2091%203%2016%203ZM7%202C4.23858%202%202%204.23858%202%207C2%209.76142%204.23858%2012%207%2012H16C18.7614%2012%2021%209.76142%2021%207C21%204.23858%2018.7614%202%2016%202H7Z%22%20fill%3D%22%23aa5252%22%2F%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M7%209C8.10457%209%209%208.10457%209%207C9%205.89543%208.10457%205%207%205C5.89543%205%205%205.89543%205%207C5%208.10457%205.89543%209%207%209ZM7%2010C8.65685%2010%2010%208.65685%2010%207C10%205.34315%208.65685%204%207%204C5.34315%204%204%205.34315%204%207C4%208.65685%205.34315%2010%207%2010Z%22%20fill%3D%22%23aa5252%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-cut {
|
||||
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(%23cut)%22%3E%3Cpath%20d%3D%22M19.4406%2016.7116C17.8368%2016.7116%2016.4336%2017.76%2015.9825%2019.2576L13.1259%2013.5167L19.4907%200.737143C19.5909%200.487542%2019.4907%200.18802%2019.2902%200.0881796C19.0396%20-0.011661%2018.7389%200.0881795%2018.6387%200.287861L12.5245%2012.3686L6.51049%200.287861C6.41026%200.0382593%206.10956%20-0.0615813%205.85898%200.0382593C5.6084%200.1381%205.50816%200.437622%205.6084%200.687223L11.9732%2013.4668L9.06644%2019.2576C8.61539%2017.8099%207.21213%2016.7116%205.6084%2016.7116C3.60373%2016.7116%202%2018.3091%202%2020.3059C2%2022.3027%203.60373%2023.9002%205.6084%2023.9002C6.91143%2023.9002%208.06411%2023.2013%208.71562%2022.153C8.71562%2022.153%208.71562%2022.1529%208.71562%2022.103C8.81586%2021.9533%208.86597%2021.8035%208.91609%2021.6537L12.5245%2014.615L16.0828%2021.7037C16.1329%2021.8534%2016.2331%2022.0032%2016.2832%2022.153V22.2029C16.2832%2022.2029%2016.2832%2022.2029%2016.2832%2022.2528C16.9347%2023.3011%2018.0874%2024%2019.3905%2024C21.3951%2024%2022.9989%2022.4026%2022.9989%2020.4057C23.049%2018.359%2021.4452%2016.7116%2019.4406%2016.7116ZM5.6084%2022.9517C4.15501%2022.9517%203.00233%2021.8035%203.00233%2020.3558C3.00233%2018.9081%204.15501%2017.76%205.6084%2017.76C7.06178%2017.76%208.21446%2018.9081%208.21446%2020.3558C8.21446%2020.7053%208.16434%2021.0547%208.01399%2021.3542L7.91376%2021.5539C7.51283%2022.3526%206.66084%2022.9517%205.6084%2022.9517ZM19.4406%2022.9517C18.4382%2022.9517%2017.5361%2022.3526%2017.1352%2021.504L17.035%2021.3043C16.9347%2021.0048%2016.8345%2020.6553%2016.8345%2020.3059C16.8345%2018.8582%2017.9872%2017.71%2019.4406%2017.71C20.894%2017.71%2022.0466%2018.8582%2022.0466%2020.3059C22.0466%2021.7536%2020.894%2022.9517%2019.4406%2022.9517Z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22cut%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22black%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-copy {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M3%203.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M3%207.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M3%2011.5H9%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M9%2014.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15%2010V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z%22%20stroke%3D%22black%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-paste {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M13%202.5H4%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%202.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%201.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%203.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%204.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%200.5L5%200.500001%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M9.5%209H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z%22%20stroke%3D%22black%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
.navbar i.icon.icon-undo {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
|
|
|
@ -410,4 +410,19 @@ i.icon {
|
|||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7 14H16C18.2091 14 20 15.7909 20 18C20 20.2091 18.2091 22 16 22H7C4.79086 22 3 20.2091 3 18C3 15.7909 4.79086 14 7 14ZM16 13C18.7614 13 21 15.2386 21 18C21 20.7614 18.7614 23 16 23H7C4.23858 23 2 20.7614 2 18C2 15.2386 4.23858 13 7 13H16Z" fill="@{themeColor}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16 20C14.8954 20 14 19.1046 14 18C14 16.8954 14.8954 16 16 16C17.1046 16 18 16.8954 18 18C18 19.1046 17.1046 20 16 20ZM16 21C14.3431 21 13 19.6569 13 18C13 16.3431 14.3431 15 16 15C17.6569 15 19 16.3431 19 18C19 19.6569 17.6569 21 16 21Z" fill="@{themeColor}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16 3H7C4.79086 3 3 4.79086 3 7C3 9.20914 4.79086 11 7 11H16C18.2091 11 20 9.20914 20 7C20 4.79086 18.2091 3 16 3ZM7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12H16C18.7614 12 21 9.76142 21 7C21 4.23858 18.7614 2 16 2H7Z" fill="@{themeColor}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 9C8.10457 9 9 8.10457 9 7C9 5.89543 8.10457 5 7 5C5.89543 5 5 5.89543 5 7C5 8.10457 5.89543 9 7 9ZM7 10C8.65685 10 10 8.65685 10 7C10 5.34315 8.65685 4 7 4C5.34315 4 4 5.34315 4 7C4 8.65685 5.34315 10 7 10Z" fill="@{themeColor}"/></svg>');
|
||||
}
|
||||
&.icon-cut {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#cut)"><path d="M19.4406 16.7116C17.8368 16.7116 16.4336 17.76 15.9825 19.2576L13.1259 13.5167L19.4907 0.737143C19.5909 0.487542 19.4907 0.18802 19.2902 0.0881796C19.0396 -0.011661 18.7389 0.0881795 18.6387 0.287861L12.5245 12.3686L6.51049 0.287861C6.41026 0.0382593 6.10956 -0.0615813 5.85898 0.0382593C5.6084 0.1381 5.50816 0.437622 5.6084 0.687223L11.9732 13.4668L9.06644 19.2576C8.61539 17.8099 7.21213 16.7116 5.6084 16.7116C3.60373 16.7116 2 18.3091 2 20.3059C2 22.3027 3.60373 23.9002 5.6084 23.9002C6.91143 23.9002 8.06411 23.2013 8.71562 22.153C8.71562 22.153 8.71562 22.1529 8.71562 22.103C8.81586 21.9533 8.86597 21.8035 8.91609 21.6537L12.5245 14.615L16.0828 21.7037C16.1329 21.8534 16.2331 22.0032 16.2832 22.153V22.2029C16.2832 22.2029 16.2832 22.2029 16.2832 22.2528C16.9347 23.3011 18.0874 24 19.3905 24C21.3951 24 22.9989 22.4026 22.9989 20.4057C23.049 18.359 21.4452 16.7116 19.4406 16.7116ZM5.6084 22.9517C4.15501 22.9517 3.00233 21.8035 3.00233 20.3558C3.00233 18.9081 4.15501 17.76 5.6084 17.76C7.06178 17.76 8.21446 18.9081 8.21446 20.3558C8.21446 20.7053 8.16434 21.0547 8.01399 21.3542L7.91376 21.5539C7.51283 22.3526 6.66084 22.9517 5.6084 22.9517ZM19.4406 22.9517C18.4382 22.9517 17.5361 22.3526 17.1352 21.504L17.035 21.3043C16.9347 21.0048 16.8345 20.6553 16.8345 20.3059C16.8345 18.8582 17.9872 17.71 19.4406 17.71C20.894 17.71 22.0466 18.8582 22.0466 20.3059C22.0466 21.7536 20.894 22.9517 19.4406 22.9517Z" fill="white"/></g><defs><clipPath id="cut"><rect width="24" height="24" fill="white"/></clipPath></defs></svg>');
|
||||
}
|
||||
&.icon-copy {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="white"/><path d="M21 16.5H12" stroke="white"/><path d="M21 12.5H12" stroke="white"/><path d="M3 3.5H12" stroke="white"/><path d="M3 7.5H12" stroke="white"/><path d="M3 11.5H9" stroke="white"/><path d="M9 14.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15 10V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z" stroke="white"/></svg>');
|
||||
}
|
||||
&.icon-paste {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="white"/><path d="M21 16.5H12" stroke="white"/><path d="M21 12.5H12" stroke="white"/><path d="M13 2.5H4" stroke="white"/><path d="M14 2.5H5" stroke="white"/><path d="M14 1.5H5" stroke="white"/><path d="M14 3.5H5" stroke="white"/><path d="M14 4.5H5" stroke="white"/><path d="M14 0.5L5 0.500001" stroke="white"/><path d="M9.5 9H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z" stroke="white"/></svg>');
|
||||
}
|
||||
}
|
|
@ -380,6 +380,21 @@ i.icon {
|
|||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7 14H16C18.2091 14 20 15.7909 20 18C20 20.2091 18.2091 22 16 22H7C4.79086 22 3 20.2091 3 18C3 15.7909 4.79086 14 7 14ZM16 13C18.7614 13 21 15.2386 21 18C21 20.7614 18.7614 23 16 23H7C4.23858 23 2 20.7614 2 18C2 15.2386 4.23858 13 7 13H16Z" fill="@{themeColor}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16 20C14.8954 20 14 19.1046 14 18C14 16.8954 14.8954 16 16 16C17.1046 16 18 16.8954 18 18C18 19.1046 17.1046 20 16 20ZM16 21C14.3431 21 13 19.6569 13 18C13 16.3431 14.3431 15 16 15C17.6569 15 19 16.3431 19 18C19 19.6569 17.6569 21 16 21Z" fill="@{themeColor}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16 3H7C4.79086 3 3 4.79086 3 7C3 9.20914 4.79086 11 7 11H16C18.2091 11 20 9.20914 20 7C20 4.79086 18.2091 3 16 3ZM7 2C4.23858 2 2 4.23858 2 7C2 9.76142 4.23858 12 7 12H16C18.7614 12 21 9.76142 21 7C21 4.23858 18.7614 2 16 2H7Z" fill="@{themeColor}"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7 9C8.10457 9 9 8.10457 9 7C9 5.89543 8.10457 5 7 5C5.89543 5 5 5.89543 5 7C5 8.10457 5.89543 9 7 9ZM7 10C8.65685 10 10 8.65685 10 7C10 5.34315 8.65685 4 7 4C5.34315 4 4 5.34315 4 7C4 8.65685 5.34315 10 7 10Z" fill="@{themeColor}"/></svg>');
|
||||
}
|
||||
&.icon-cut {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#cut)"><path d="M19.4406 16.7116C17.8368 16.7116 16.4336 17.76 15.9825 19.2576L13.1259 13.5167L19.4907 0.737143C19.5909 0.487542 19.4907 0.18802 19.2902 0.0881796C19.0396 -0.011661 18.7389 0.0881795 18.6387 0.287861L12.5245 12.3686L6.51049 0.287861C6.41026 0.0382593 6.10956 -0.0615813 5.85898 0.0382593C5.6084 0.1381 5.50816 0.437622 5.6084 0.687223L11.9732 13.4668L9.06644 19.2576C8.61539 17.8099 7.21213 16.7116 5.6084 16.7116C3.60373 16.7116 2 18.3091 2 20.3059C2 22.3027 3.60373 23.9002 5.6084 23.9002C6.91143 23.9002 8.06411 23.2013 8.71562 22.153C8.71562 22.153 8.71562 22.1529 8.71562 22.103C8.81586 21.9533 8.86597 21.8035 8.91609 21.6537L12.5245 14.615L16.0828 21.7037C16.1329 21.8534 16.2331 22.0032 16.2832 22.153V22.2029C16.2832 22.2029 16.2832 22.2029 16.2832 22.2528C16.9347 23.3011 18.0874 24 19.3905 24C21.3951 24 22.9989 22.4026 22.9989 20.4057C23.049 18.359 21.4452 16.7116 19.4406 16.7116ZM5.6084 22.9517C4.15501 22.9517 3.00233 21.8035 3.00233 20.3558C3.00233 18.9081 4.15501 17.76 5.6084 17.76C7.06178 17.76 8.21446 18.9081 8.21446 20.3558C8.21446 20.7053 8.16434 21.0547 8.01399 21.3542L7.91376 21.5539C7.51283 22.3526 6.66084 22.9517 5.6084 22.9517ZM19.4406 22.9517C18.4382 22.9517 17.5361 22.3526 17.1352 21.504L17.035 21.3043C16.9347 21.0048 16.8345 20.6553 16.8345 20.3059C16.8345 18.8582 17.9872 17.71 19.4406 17.71C20.894 17.71 22.0466 18.8582 22.0466 20.3059C22.0466 21.7536 20.894 22.9517 19.4406 22.9517Z" fill="black"/></g><defs><clipPath id="cut"><rect width="24" height="24" fill="black"/></clipPath></defs></svg>');
|
||||
}
|
||||
&.icon-copy {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="black"/><path d="M21 16.5H12" stroke="black"/><path d="M21 12.5H12" stroke="black"/><path d="M3 3.5H12" stroke="black"/><path d="M3 7.5H12" stroke="black"/><path d="M3 11.5H9" stroke="black"/><path d="M9 14.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15 10V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z" stroke="black"/></svg>');
|
||||
}
|
||||
&.icon-paste {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="black"/><path d="M21 16.5H12" stroke="black"/><path d="M21 12.5H12" stroke="black"/><path d="M13 2.5H4" stroke="black"/><path d="M14 2.5H5" stroke="black"/><path d="M14 1.5H5" stroke="black"/><path d="M14 3.5H5" stroke="black"/><path d="M14 4.5H5" stroke="black"/><path d="M14 0.5L5 0.500001" stroke="black"/><path d="M9.5 9H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z" stroke="black"/></svg>');
|
||||
}
|
||||
}
|
||||
|
||||
// Overwrite color for toolbar
|
||||
|
|
|
@ -209,9 +209,10 @@ define([
|
|||
// Internal
|
||||
|
||||
_initMenu: function (cellinfo) {
|
||||
var me = this;
|
||||
|
||||
_actionSheets = [];
|
||||
var me = this,
|
||||
_actionSheets = [],
|
||||
arrItems = [],
|
||||
arrItemsIcon = [];
|
||||
|
||||
var iscellmenu, isrowmenu, iscolmenu, isallmenu, ischartmenu, isimagemenu, istextshapemenu, isshapemenu, istextchartmenu;
|
||||
var iscelllocked = cellinfo.asc_getLocked(),
|
||||
|
@ -240,38 +241,43 @@ define([
|
|||
}
|
||||
|
||||
if ( iscelllocked || this.api.isCellEdited ) {
|
||||
menuItems = [{
|
||||
arrItemsIcon = [{
|
||||
caption: me.menuCopy,
|
||||
event: 'copy'
|
||||
event: 'copy',
|
||||
icon: 'icon-copy'
|
||||
}];
|
||||
|
||||
} else {
|
||||
var menuItems = [{
|
||||
var arrItemsIcon = [{
|
||||
caption: me.menuCut,
|
||||
event: 'cut'
|
||||
event: 'cut',
|
||||
icon: 'icon-cut'
|
||||
},{
|
||||
caption: me.menuCopy,
|
||||
event: 'copy'
|
||||
event: 'copy',
|
||||
icon: 'icon-copy'
|
||||
},{
|
||||
caption: me.menuPaste,
|
||||
event: 'paste'
|
||||
},{
|
||||
caption: me.menuDelete,
|
||||
event: 'del'
|
||||
event: 'paste',
|
||||
icon: 'icon-paste'
|
||||
}];
|
||||
arrItems.push({
|
||||
caption: me.menuDelete,
|
||||
event: 'del'
|
||||
});
|
||||
|
||||
// isTableLocked = cellinfo.asc_getLockedTable()===true;
|
||||
|
||||
if (isimagemenu || isshapemenu || ischartmenu ||
|
||||
istextshapemenu || istextchartmenu )
|
||||
{
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuEdit,
|
||||
event: 'edit'
|
||||
});
|
||||
} else {
|
||||
if ( iscolmenu || isrowmenu) {
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuHide,
|
||||
event: 'hide'
|
||||
},{
|
||||
|
@ -281,24 +287,24 @@ define([
|
|||
} else
|
||||
if ( iscellmenu ) {
|
||||
!iscelllocked &&
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuCell,
|
||||
event: 'edit'
|
||||
});
|
||||
|
||||
(cellinfo.asc_getFlags().asc_getMerge() == Asc.c_oAscMergeOptions.None) &&
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuMerge,
|
||||
event: 'merge'
|
||||
});
|
||||
|
||||
(cellinfo.asc_getFlags().asc_getMerge() == Asc.c_oAscMergeOptions.Merge) &&
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuUnmerge,
|
||||
event: 'unmerge'
|
||||
});
|
||||
|
||||
menuItems.push(
|
||||
arrItems.push(
|
||||
cellinfo.asc_getFlags().asc_getWrapText() ?
|
||||
{
|
||||
caption: me.menuUnwrap,
|
||||
|
@ -312,7 +318,7 @@ define([
|
|||
if ( cellinfo.asc_getHyperlink() && !cellinfo.asc_getFlags().asc_getMultiselect() &&
|
||||
cellinfo.asc_getHyperlink().asc_getType() == Asc.c_oAscHyperlinkType.WebLink )
|
||||
{
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuOpenLink,
|
||||
event: 'openlink'
|
||||
});
|
||||
|
@ -320,14 +326,14 @@ define([
|
|||
if ( !cellinfo.asc_getHyperlink() && !cellinfo.asc_getFlags().asc_getMultiselect() &&
|
||||
!cellinfo.asc_getFlags().asc_getLockText() && !!cellinfo.asc_getText() )
|
||||
{
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: me.menuAddLink,
|
||||
event: 'addlink'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
menuItems.push({
|
||||
arrItems.push({
|
||||
caption: this.api.asc_getSheetViewSettings().asc_getIsFreezePane() ? me.menuUnfreezePanes : me.menuFreezePanes,
|
||||
event: 'freezePanes'
|
||||
});
|
||||
|
@ -337,16 +343,18 @@ define([
|
|||
|
||||
|
||||
|
||||
if (Common.SharedSettings.get('phone') && menuItems.length > 3) {
|
||||
_actionSheets = menuItems.slice(3);
|
||||
if (Common.SharedSettings.get('phone') && arrItems.length > 2) {
|
||||
_actionSheets = arrItems.slice(2);
|
||||
|
||||
menuItems = menuItems.slice(0, 3);
|
||||
menuItems.push({
|
||||
arrItems = arrItems.slice(0, 2);
|
||||
arrItems.push({
|
||||
caption: me.menuMore,
|
||||
event: 'showActionSheet'
|
||||
});
|
||||
}
|
||||
|
||||
var menuItems = {itemsIcon: arrItemsIcon, items: arrItems};
|
||||
|
||||
return menuItems;
|
||||
},
|
||||
|
||||
|
|
|
@ -83,9 +83,14 @@ define([
|
|||
}
|
||||
|
||||
var menuItemTemplate = _.template([
|
||||
'<% _.each(menuItems, function(item) { %>',
|
||||
'<li data-event="<%= item.event %>"><a href="#" class="item-link list-button"><%= item.caption %></li>',
|
||||
'<% }); %>'
|
||||
'<% if(menuItems.itemsIcon) {%>',
|
||||
'<% _.each(menuItems.itemsIcon, function(item) { %>',
|
||||
'<li data-event="<%= item.event %>"><a href="#" class="item-link list-button"><i class="icon <%= item.icon %>"></i></a></li>',
|
||||
'<% }); }%>',
|
||||
'<% if(menuItems.items) {%>',
|
||||
'<% _.each(menuItems.items, function(item) { %>',
|
||||
'<li data-event="<%= item.event %>"><a href="#" class="item-link list-button"><%= item.caption %></a></li>',
|
||||
'<% }); }%>'
|
||||
].join(''));
|
||||
|
||||
var $target = $('#' + _anchorId)
|
||||
|
|
|
@ -6632,6 +6632,21 @@ i.icon.icon-table-settings {
|
|||
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%20%20%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%2340865c%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-cut {
|
||||
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(%23cut)%22%3E%3Cpath%20d%3D%22M19.4406%2016.7116C17.8368%2016.7116%2016.4336%2017.76%2015.9825%2019.2576L13.1259%2013.5167L19.4907%200.737143C19.5909%200.487542%2019.4907%200.18802%2019.2902%200.0881796C19.0396%20-0.011661%2018.7389%200.0881795%2018.6387%200.287861L12.5245%2012.3686L6.51049%200.287861C6.41026%200.0382593%206.10956%20-0.0615813%205.85898%200.0382593C5.6084%200.1381%205.50816%200.437622%205.6084%200.687223L11.9732%2013.4668L9.06644%2019.2576C8.61539%2017.8099%207.21213%2016.7116%205.6084%2016.7116C3.60373%2016.7116%202%2018.3091%202%2020.3059C2%2022.3027%203.60373%2023.9002%205.6084%2023.9002C6.91143%2023.9002%208.06411%2023.2013%208.71562%2022.153C8.71562%2022.153%208.71562%2022.1529%208.71562%2022.103C8.81586%2021.9533%208.86597%2021.8035%208.91609%2021.6537L12.5245%2014.615L16.0828%2021.7037C16.1329%2021.8534%2016.2331%2022.0032%2016.2832%2022.153V22.2029C16.2832%2022.2029%2016.2832%2022.2029%2016.2832%2022.2528C16.9347%2023.3011%2018.0874%2024%2019.3905%2024C21.3951%2024%2022.9989%2022.4026%2022.9989%2020.4057C23.049%2018.359%2021.4452%2016.7116%2019.4406%2016.7116ZM5.6084%2022.9517C4.15501%2022.9517%203.00233%2021.8035%203.00233%2020.3558C3.00233%2018.9081%204.15501%2017.76%205.6084%2017.76C7.06178%2017.76%208.21446%2018.9081%208.21446%2020.3558C8.21446%2020.7053%208.16434%2021.0547%208.01399%2021.3542L7.91376%2021.5539C7.51283%2022.3526%206.66084%2022.9517%205.6084%2022.9517ZM19.4406%2022.9517C18.4382%2022.9517%2017.5361%2022.3526%2017.1352%2021.504L17.035%2021.3043C16.9347%2021.0048%2016.8345%2020.6553%2016.8345%2020.3059C16.8345%2018.8582%2017.9872%2017.71%2019.4406%2017.71C20.894%2017.71%2022.0466%2018.8582%2022.0466%2020.3059C22.0466%2021.7536%2020.894%2022.9517%2019.4406%2022.9517Z%22%20fill%3D%22white%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22cut%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22white%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-copy {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M3%203.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M3%207.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M3%2011.5H9%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M9%2014.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15%2010V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z%22%20stroke%3D%22white%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-paste {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M13%202.5H4%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%202.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%201.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%203.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%204.5H5%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M14%200.5L5%200.500001%22%20stroke%3D%22white%22%2F%3E%3Cpath%20d%3D%22M9.5%209H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z%22%20stroke%3D%22white%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
.chart-types .thumb.bar-normal {
|
||||
background-image: url('../img/charts/chart-03.png');
|
||||
}
|
||||
|
|
|
@ -6266,6 +6266,21 @@ i.icon.icon-collaboration {
|
|||
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%3E%3Cpath%20fill-rule%3D%22evenodd%22%20clip-rule%3D%22evenodd%22%20d%3D%22M15.9912%206C15.9912%208.34102%2015.4074%2010.1346%2014.6055%2011.3121C13.7983%2012.4974%2012.8249%2013%2011.9912%2013C11.1575%2013%2010.1841%2012.4974%209.37695%2011.3121C8.57501%2010.1346%207.99121%208.34102%207.99121%206C7.99121%203.61508%209.96974%202%2011.9912%202C14.0127%202%2015.9912%203.61508%2015.9912%206ZM14.5015%2012.9506C13.7365%2013.6361%2012.8649%2014%2011.9912%2014C11.1195%2014%2010.2499%2013.6378%209.48619%2012.9554C7.78363%2013.6081%206.36015%2014.2591%205.26963%2014.9224C3.55256%2015.9667%203%2016.8326%203%2017.5C3%2018.2545%203.4257%2019.0877%204.82302%2019.7879C6.25015%2020.5031%208.57272%2020.9999%2012%2021C15.4273%2021%2017.7499%2020.5031%2019.177%2019.7879C20.5743%2019.0877%2021%2018.2545%2021%2017.5C21%2016.8326%2020.4474%2015.9667%2018.7304%2014.9224C17.6372%2014.2575%2016.2095%2013.605%2014.5015%2012.9506ZM15.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%2340865c%22%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-cut {
|
||||
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(%23cut)%22%3E%3Cpath%20d%3D%22M19.4406%2016.7116C17.8368%2016.7116%2016.4336%2017.76%2015.9825%2019.2576L13.1259%2013.5167L19.4907%200.737143C19.5909%200.487542%2019.4907%200.18802%2019.2902%200.0881796C19.0396%20-0.011661%2018.7389%200.0881795%2018.6387%200.287861L12.5245%2012.3686L6.51049%200.287861C6.41026%200.0382593%206.10956%20-0.0615813%205.85898%200.0382593C5.6084%200.1381%205.50816%200.437622%205.6084%200.687223L11.9732%2013.4668L9.06644%2019.2576C8.61539%2017.8099%207.21213%2016.7116%205.6084%2016.7116C3.60373%2016.7116%202%2018.3091%202%2020.3059C2%2022.3027%203.60373%2023.9002%205.6084%2023.9002C6.91143%2023.9002%208.06411%2023.2013%208.71562%2022.153C8.71562%2022.153%208.71562%2022.1529%208.71562%2022.103C8.81586%2021.9533%208.86597%2021.8035%208.91609%2021.6537L12.5245%2014.615L16.0828%2021.7037C16.1329%2021.8534%2016.2331%2022.0032%2016.2832%2022.153V22.2029C16.2832%2022.2029%2016.2832%2022.2029%2016.2832%2022.2528C16.9347%2023.3011%2018.0874%2024%2019.3905%2024C21.3951%2024%2022.9989%2022.4026%2022.9989%2020.4057C23.049%2018.359%2021.4452%2016.7116%2019.4406%2016.7116ZM5.6084%2022.9517C4.15501%2022.9517%203.00233%2021.8035%203.00233%2020.3558C3.00233%2018.9081%204.15501%2017.76%205.6084%2017.76C7.06178%2017.76%208.21446%2018.9081%208.21446%2020.3558C8.21446%2020.7053%208.16434%2021.0547%208.01399%2021.3542L7.91376%2021.5539C7.51283%2022.3526%206.66084%2022.9517%205.6084%2022.9517ZM19.4406%2022.9517C18.4382%2022.9517%2017.5361%2022.3526%2017.1352%2021.504L17.035%2021.3043C16.9347%2021.0048%2016.8345%2020.6553%2016.8345%2020.3059C16.8345%2018.8582%2017.9872%2017.71%2019.4406%2017.71C20.894%2017.71%2022.0466%2018.8582%2022.0466%2020.3059C22.0466%2021.7536%2020.894%2022.9517%2019.4406%2022.9517Z%22%20fill%3D%22black%22%2F%3E%3C%2Fg%3E%3Cdefs%3E%3CclipPath%20id%3D%22cut%22%3E%3Crect%20width%3D%2224%22%20height%3D%2224%22%20fill%3D%22black%22%2F%3E%3C%2FclipPath%3E%3C%2Fdefs%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-copy {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M3%203.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M3%207.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M3%2011.5H9%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M9%2014.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15%2010V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z%22%20stroke%3D%22black%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
i.icon.icon-paste {
|
||||
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%22M21%2020.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2016.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M21%2012.5H12%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M13%202.5H4%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%202.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%201.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%203.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%204.5H5%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M14%200.5L5%200.500001%22%20stroke%3D%22black%22%2F%3E%3Cpath%20d%3D%22M9.5%209H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z%22%20stroke%3D%22black%22%2F%3E%3C%2Fsvg%3E");
|
||||
}
|
||||
.navbar i.icon.icon-undo {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
|
|
|
@ -368,6 +368,21 @@ i.icon {
|
|||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M1 2H22V21H1V2ZM12 3H21V8H12V3ZM12 9H21V14H12V9ZM11 14V9H2V14H11ZM2 15V20H11V15H2ZM12 15H21V20H12V15ZM11 3V8H2V3H11Z" fill="@{themeColor}"/></svg>');
|
||||
}
|
||||
&.icon-cut {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#cut)"><path d="M19.4406 16.7116C17.8368 16.7116 16.4336 17.76 15.9825 19.2576L13.1259 13.5167L19.4907 0.737143C19.5909 0.487542 19.4907 0.18802 19.2902 0.0881796C19.0396 -0.011661 18.7389 0.0881795 18.6387 0.287861L12.5245 12.3686L6.51049 0.287861C6.41026 0.0382593 6.10956 -0.0615813 5.85898 0.0382593C5.6084 0.1381 5.50816 0.437622 5.6084 0.687223L11.9732 13.4668L9.06644 19.2576C8.61539 17.8099 7.21213 16.7116 5.6084 16.7116C3.60373 16.7116 2 18.3091 2 20.3059C2 22.3027 3.60373 23.9002 5.6084 23.9002C6.91143 23.9002 8.06411 23.2013 8.71562 22.153C8.71562 22.153 8.71562 22.1529 8.71562 22.103C8.81586 21.9533 8.86597 21.8035 8.91609 21.6537L12.5245 14.615L16.0828 21.7037C16.1329 21.8534 16.2331 22.0032 16.2832 22.153V22.2029C16.2832 22.2029 16.2832 22.2029 16.2832 22.2528C16.9347 23.3011 18.0874 24 19.3905 24C21.3951 24 22.9989 22.4026 22.9989 20.4057C23.049 18.359 21.4452 16.7116 19.4406 16.7116ZM5.6084 22.9517C4.15501 22.9517 3.00233 21.8035 3.00233 20.3558C3.00233 18.9081 4.15501 17.76 5.6084 17.76C7.06178 17.76 8.21446 18.9081 8.21446 20.3558C8.21446 20.7053 8.16434 21.0547 8.01399 21.3542L7.91376 21.5539C7.51283 22.3526 6.66084 22.9517 5.6084 22.9517ZM19.4406 22.9517C18.4382 22.9517 17.5361 22.3526 17.1352 21.504L17.035 21.3043C16.9347 21.0048 16.8345 20.6553 16.8345 20.3059C16.8345 18.8582 17.9872 17.71 19.4406 17.71C20.894 17.71 22.0466 18.8582 22.0466 20.3059C22.0466 21.7536 20.894 22.9517 19.4406 22.9517Z" fill="white"/></g><defs><clipPath id="cut"><rect width="24" height="24" fill="white"/></clipPath></defs></svg>');
|
||||
}
|
||||
&.icon-copy {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="white"/><path d="M21 16.5H12" stroke="white"/><path d="M21 12.5H12" stroke="white"/><path d="M3 3.5H12" stroke="white"/><path d="M3 7.5H12" stroke="white"/><path d="M3 11.5H9" stroke="white"/><path d="M9 14.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15 10V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z" stroke="white"/></svg>');
|
||||
}
|
||||
&.icon-paste {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="white"/><path d="M21 16.5H12" stroke="white"/><path d="M21 12.5H12" stroke="white"/><path d="M13 2.5H4" stroke="white"/><path d="M14 2.5H5" stroke="white"/><path d="M14 1.5H5" stroke="white"/><path d="M14 3.5H5" stroke="white"/><path d="M14 4.5H5" stroke="white"/><path d="M14 0.5L5 0.500001" stroke="white"/><path d="M9.5 9H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z" stroke="white"/></svg>');
|
||||
}
|
||||
}
|
||||
|
||||
.chart-types .thumb {
|
||||
|
|
|
@ -332,6 +332,21 @@ i.icon {
|
|||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g><path fill-rule="evenodd" clip-rule="evenodd" d="M15.9912 6C15.9912 8.34102 15.4074 10.1346 14.6055 11.3121C13.7983 12.4974 12.8249 13 11.9912 13C11.1575 13 10.1841 12.4974 9.37695 11.3121C8.57501 10.1346 7.99121 8.34102 7.99121 6C7.99121 3.61508 9.96974 2 11.9912 2C14.0127 2 15.9912 3.61508 15.9912 6ZM14.5015 12.9506C13.7365 13.6361 12.8649 14 11.9912 14C11.1195 14 10.2499 13.6378 9.48619 12.9554C7.78363 13.6081 6.36015 14.2591 5.26963 14.9224C3.55256 15.9667 3 16.8326 3 17.5C3 18.2545 3.4257 19.0877 4.82302 19.7879C6.25015 20.5031 8.57272 20.9999 12 21C15.4273 21 17.7499 20.5031 19.177 19.7879C20.5743 19.0877 21 18.2545 21 17.5C21 16.8326 20.4474 15.9667 18.7304 14.9224C17.6372 14.2575 16.2095 13.605 14.5015 12.9506ZM15.2272 12.1594C16.2765 10.7825 16.9912 8.67814 16.9912 6C16.9912 3 14.5 1 11.9912 1C9.48242 1 6.99121 3 6.99121 6C6.99121 8.68159 7.70777 10.7879 8.75931 12.1647C4.60309 13.7964 2 15.4951 2 17.5C2 19.9852 5 21.9999 12 22C19 22 22 19.9852 22 17.5C22 15.4929 19.3913 13.7927 15.2272 12.1594Z" fill="@{themeColor}"/></g></svg>');
|
||||
}
|
||||
&.icon-cut {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#cut)"><path d="M19.4406 16.7116C17.8368 16.7116 16.4336 17.76 15.9825 19.2576L13.1259 13.5167L19.4907 0.737143C19.5909 0.487542 19.4907 0.18802 19.2902 0.0881796C19.0396 -0.011661 18.7389 0.0881795 18.6387 0.287861L12.5245 12.3686L6.51049 0.287861C6.41026 0.0382593 6.10956 -0.0615813 5.85898 0.0382593C5.6084 0.1381 5.50816 0.437622 5.6084 0.687223L11.9732 13.4668L9.06644 19.2576C8.61539 17.8099 7.21213 16.7116 5.6084 16.7116C3.60373 16.7116 2 18.3091 2 20.3059C2 22.3027 3.60373 23.9002 5.6084 23.9002C6.91143 23.9002 8.06411 23.2013 8.71562 22.153C8.71562 22.153 8.71562 22.1529 8.71562 22.103C8.81586 21.9533 8.86597 21.8035 8.91609 21.6537L12.5245 14.615L16.0828 21.7037C16.1329 21.8534 16.2331 22.0032 16.2832 22.153V22.2029C16.2832 22.2029 16.2832 22.2029 16.2832 22.2528C16.9347 23.3011 18.0874 24 19.3905 24C21.3951 24 22.9989 22.4026 22.9989 20.4057C23.049 18.359 21.4452 16.7116 19.4406 16.7116ZM5.6084 22.9517C4.15501 22.9517 3.00233 21.8035 3.00233 20.3558C3.00233 18.9081 4.15501 17.76 5.6084 17.76C7.06178 17.76 8.21446 18.9081 8.21446 20.3558C8.21446 20.7053 8.16434 21.0547 8.01399 21.3542L7.91376 21.5539C7.51283 22.3526 6.66084 22.9517 5.6084 22.9517ZM19.4406 22.9517C18.4382 22.9517 17.5361 22.3526 17.1352 21.504L17.035 21.3043C16.9347 21.0048 16.8345 20.6553 16.8345 20.3059C16.8345 18.8582 17.9872 17.71 19.4406 17.71C20.894 17.71 22.0466 18.8582 22.0466 20.3059C22.0466 21.7536 20.894 22.9517 19.4406 22.9517Z" fill="black"/></g><defs><clipPath id="cut"><rect width="24" height="24" fill="black"/></clipPath></defs></svg>');
|
||||
}
|
||||
&.icon-copy {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="black"/><path d="M21 16.5H12" stroke="black"/><path d="M21 12.5H12" stroke="black"/><path d="M3 3.5H12" stroke="black"/><path d="M3 7.5H12" stroke="black"/><path d="M3 11.5H9" stroke="black"/><path d="M9 14.5H0.5V0.5H14.5V9H9.5H9V9.5V14.5ZM15 10V9.5H23.5V23.5H9.5V15.5H10V15V14.5V10H15Z" stroke="black"/></svg>');
|
||||
}
|
||||
&.icon-paste {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
.encoded-svg-background('<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 20.5H12" stroke="black"/><path d="M21 16.5H12" stroke="black"/><path d="M21 12.5H12" stroke="black"/><path d="M13 2.5H4" stroke="black"/><path d="M14 2.5H5" stroke="black"/><path d="M14 1.5H5" stroke="black"/><path d="M14 3.5H5" stroke="black"/><path d="M14 4.5H5" stroke="black"/><path d="M14 0.5L5 0.500001" stroke="black"/><path d="M9.5 9H9V9.5V19H10V10H23.5V23.5H9.5V20V19.5H9H0.5V2.5H18.5V9H9.5Z" stroke="black"/></svg>');
|
||||
}
|
||||
}
|
||||
|
||||
// Overwrite color for toolbar
|
||||
|
|
Loading…
Reference in a new issue