diff --git a/apps/spreadsheeteditor/mobile/src/view/edit/EditCell.jsx b/apps/spreadsheeteditor/mobile/src/view/edit/EditCell.jsx index 905135484..e66e49045 100644 --- a/apps/spreadsheeteditor/mobile/src/view/edit/EditCell.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/edit/EditCell.jsx @@ -146,7 +146,13 @@ const PageFontsCell = props => { return ( - + + {Device.phone && + + + + } + {!isAndroid &&
{displaySize}
} @@ -218,9 +224,11 @@ const PageTextColorCell = props => { return ( - - - + {Device.phone && + + + + } @@ -265,9 +273,11 @@ const PageFillColorCell = props => { return ( - - - + {Device.phone && + + + + } @@ -298,7 +308,13 @@ const PageCustomTextColorCell = props => { return ( - + + {Device.phone && + + + + } + ) @@ -323,7 +339,13 @@ const PageCustomFillColorCell = props => { return ( - + + {Device.phone && + + + + } + ) @@ -346,7 +368,13 @@ const PageTextFormatCell = props => { return ( - + + {Device.phone && + + + + } + { props.onHAlignChange('left'); @@ -419,7 +447,13 @@ const PageTextOrientationCell = props => { return ( - + + {Device.phone && + + + + } + : null} onChange={() => { @@ -494,7 +528,13 @@ const PageBorderStyleCell = props => { return ( - + + {Device.phone && + + + + } + { storeCellSettings.changeBorderStyle('none'); @@ -616,9 +656,11 @@ const PageBorderColorCell = props => { return ( - - - + {Device.phone && + + + + } @@ -653,7 +695,13 @@ const PageCustomBorderColorCell = props => { return ( - + + {Device.phone && + + + + } + ) @@ -674,7 +722,13 @@ const PageBorderSizeCell = props => { return ( - + + {Device.phone && + + + + } + {Object.keys(borderSizes).map(key => { return ( @@ -695,7 +749,13 @@ const PageFormatCell = props => { return ( - + + {Device.phone && + + + + } + props.onCellFormat('R2VuZXJhbA==')}> @@ -746,7 +806,13 @@ const PageAccountingFormatCell = props => { return ( - + + {Device.phone && + + + + } + props.onCellFormat('XyglMjQqJTIwJTIzJTJDJTIzJTIzMC4wMF8pJTNCXyglMjQqJTIwKCUyMyUyQyUyMyUyMzAuMDApJTNCXyglMjQqJTIwJTIyLSUyMiUzRiUzRl8pJTNCXyglNDBfKQ==')}> @@ -774,7 +840,13 @@ const PageCurrencyFormatCell = props => { return ( - + + {Device.phone && + + + + } + props.onCellFormat('JTI0JTIzJTJDJTIzJTIzMC4wMA==')}> @@ -802,7 +874,13 @@ const PageDateFormatCell = props => { return ( - + + {Device.phone && + + + + } + props.onCellFormat('TU0tZGQteXk=')}> @@ -835,7 +913,13 @@ const PageTimeFormatCell = props => { return ( - + + {Device.phone && + + + + } + props.onCellFormat('aCUzQW1tJTNCJTQw')}> diff --git a/apps/spreadsheeteditor/mobile/src/view/edit/EditChart.jsx b/apps/spreadsheeteditor/mobile/src/view/edit/EditChart.jsx index 011ad253d..4beba878c 100644 --- a/apps/spreadsheeteditor/mobile/src/view/edit/EditChart.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/edit/EditChart.jsx @@ -1,6 +1,6 @@ import React, {Fragment, useState, useEffect} from 'react'; import {observer, inject} from "mobx-react"; -import {f7, List, ListItem, ListButton, ListInput, Icon, Row, Page, Navbar, BlockTitle, Toggle, Range, Link, Tabs, Tab, NavTitle, NavRight} from 'framework7-react'; +import {f7, List, ListItem, ListButton, ListInput, Icon, Page, Navbar, NavRight, BlockTitle, Toggle, Range, Link, Tabs, Tab} from 'framework7-react'; import { useTranslation } from 'react-i18next'; import {Device} from '../../../../../common/mobile/utils/device'; import {CustomColorPicker, ThemeColorPalette} from "../../../../../common/mobile/lib/component/ThemeColorPalette.jsx"; @@ -23,7 +23,13 @@ const PageCustomFillColor = props => { return ( - + + {Device.phone && + + + + } + ) @@ -83,7 +89,13 @@ const PageCustomBorderColor = props => { return ( - + + {Device.phone && + + + + } + ) @@ -115,7 +127,13 @@ const PageBorderColor = props => { return ( - + + {Device.phone && + + + + } + { {_t.textFill} {_t.textBorder} + {Device.phone && + + + + } @@ -262,7 +285,13 @@ const PageReorder = props => { } return ( - + + {Device.phone && + + + + } + {props.onReorder('all-up')}} link='#' className='no-indicator'> @@ -404,7 +433,13 @@ const PageLayout = props => { return ( - + + {Device.phone && + + + + } + { return ( - + + {Device.phone && + + + + } + {Object.keys(chartLayoutTitles).map(key => { return ( @@ -507,7 +548,13 @@ const PageLegend = props => { return ( - + + {Device.phone && + + + + } + {Object.keys(chartLayoutLegends).map(key => { return ( @@ -532,7 +579,13 @@ const PageHorizontalAxisTitle = props => { return ( - + + {Device.phone && + + + + } + {Object.keys(chartLayoutAxisTitleHorizontal).map(key => { return ( @@ -557,7 +610,13 @@ const PageVerticalAxisTitle = props => { return ( - + + {Device.phone && + + + + } + {Object.keys(chartLayoutAxisTitleVertical).map(key => { return ( @@ -582,7 +641,13 @@ const PageHorizontalGridlines = props => { return ( - + + {Device.phone && + + + + } + {Object.keys(chartLayoutGridlinesHorizontal).map(key => { return ( @@ -607,7 +672,13 @@ const PageVerticalGridlines = props => { return ( - + + {Device.phone && + + + + } + {Object.keys(chartLayoutGridlinesVertical).map(key => { return ( @@ -632,7 +703,13 @@ const PageDataLabels = props => { return ( - + + {Device.phone && + + + + } + {Object.keys(chartDataLabels).map(key => { return ( @@ -724,7 +801,13 @@ const PageVerticalAxis = props => { return ( - + + {Device.phone && + + + + } + { return ( - + + {Device.phone && + + + + } + {axisCrosses.map((elem, index) => { return ( @@ -846,7 +935,13 @@ const PageDisplayUnits = props => { return ( - + + {Device.phone && + + + + } + {vertAxisDisplayUnits.map((elem, index) => { return ( @@ -874,7 +969,13 @@ const PageVertMajorType = props => { return ( - + + {Device.phone && + + + + } + {tickOptions.map((elem, index) => { return ( @@ -902,7 +1003,13 @@ const PageVertMinorType = props => { return ( - + + {Device.phone && + + + + } + {tickOptions.map((elem, index) => { return ( @@ -930,7 +1037,13 @@ const PageVertLabelPosition = props => { return ( - + + {Device.phone && + + + + } + {verticalAxisLabelsPosition.map((elem, index) => { return ( @@ -1015,7 +1128,13 @@ const PageHorizontalAxis = props => { return ( - + + {Device.phone && + + + + } + { return ( - + + {Device.phone && + + + + } + {axisCrosses.map((elem, index) => { return ( @@ -1116,7 +1241,13 @@ const PageHorAxisPosition = props => { return ( - + + {Device.phone && + + + + } + {horAxisPosition.map((elem, index) => { return ( @@ -1144,7 +1275,13 @@ const PageHorMajorType = props => { return ( - + + {Device.phone && + + + + } + {tickOptions.map((elem, index) => { return ( @@ -1172,7 +1309,13 @@ const PageHorMinorType = props => { return ( - + + {Device.phone && + + + + } + {tickOptions.map((elem, index) => { return ( @@ -1200,7 +1343,13 @@ const PageHorLabelPosition = props => { return ( - + + {Device.phone && + + + + } + {horAxisLabelsPosition.map((elem, index) => { return ( diff --git a/apps/spreadsheeteditor/mobile/src/view/edit/EditImage.jsx b/apps/spreadsheeteditor/mobile/src/view/edit/EditImage.jsx index ff49398e3..a71943fa3 100644 --- a/apps/spreadsheeteditor/mobile/src/view/edit/EditImage.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/edit/EditImage.jsx @@ -1,7 +1,6 @@ import React, {Fragment, useState} from 'react'; import {observer, inject} from "mobx-react"; -import {f7, Page, Navbar, List, ListItem, Row, BlockTitle, Link, Toggle, Icon, View, NavRight, ListItemCell, Range, Button, Segmented, Tab, Tabs, ListInput, ListButton} from 'framework7-react'; -import { ThemeColorPalette, CustomColorPicker } from '../../../../../common/mobile/lib/component/ThemeColorPalette.jsx'; +import {f7, Page, Navbar, NavRight, List, ListItem, BlockTitle, Icon, ListInput, ListButton, Link} from 'framework7-react'; import { useTranslation } from 'react-i18next'; import {Device} from '../../../../../common/mobile/utils/device'; @@ -40,7 +39,13 @@ const PageReorder = props => { return ( - + + {Device.phone && + + + + } + {props.onReorder('all-up')}} className='no-indicator'> @@ -72,7 +77,13 @@ const PageReplace = props => { return ( - + + {Device.phone && + + + + } + {props.onReplaceByFile()}}> @@ -105,7 +116,13 @@ const PageLinkSettings = props => { }; return ( - + + {Device.phone && + + + + } + {_t.textAddress} { return ( - + + {Device.phone && + + + + } + {setTypeLink(1); changeType(1);}}> {setTypeLink(2); changeType(2);}}> @@ -39,7 +45,13 @@ const PageSheet = ({curSheet, sheets, changeSheet, storeFocusObjects}) => { return ( - + + {Device.phone && + + + + } + {sheets.map(sheet => { return( diff --git a/apps/spreadsheeteditor/mobile/src/view/edit/EditShape.jsx b/apps/spreadsheeteditor/mobile/src/view/edit/EditShape.jsx index 2c1cb974f..f4fcb7c19 100644 --- a/apps/spreadsheeteditor/mobile/src/view/edit/EditShape.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/edit/EditShape.jsx @@ -1,6 +1,6 @@ import React, {Fragment, useState} from 'react'; import {observer, inject} from "mobx-react"; -import {f7, Page, Navbar, List, ListItem, Row, BlockTitle, Link, Toggle, Icon, View, NavRight, ListItemCell, Range, Button, Segmented, Tab, Tabs} from 'framework7-react'; +import {f7, Page, Navbar, NavRight, List, ListItem, Link, Icon, Range, Tab, Tabs} from 'framework7-react'; import { ThemeColorPalette, CustomColorPicker } from '../../../../../common/mobile/lib/component/ThemeColorPalette.jsx'; import { useTranslation } from 'react-i18next'; import {Device} from '../../../../../common/mobile/utils/device'; @@ -120,6 +120,11 @@ const PageStyle = props => { {_t.textBorder} {_t.textEffects} + {Device.phone && + + + + } @@ -188,7 +193,13 @@ const PageCustomFillColor = props => { return( - + + {Device.phone && + + + + } + ) @@ -218,7 +229,13 @@ const PageStyleNoFill = props => { return ( - + + {Device.phone && + + + + } +
{_t.textSize}
@@ -260,7 +277,13 @@ const PageReplace = props => { return ( - + + {Device.phone && + + + + } + {shapes.map((row, indexRow) => { return (
    @@ -292,7 +315,13 @@ const PageReorder = props => { return ( - + + {Device.phone && + + + + } + {props.onReorder('all-up')}} className='no-indicator'> @@ -334,7 +363,13 @@ const PageBorderColor = props => { }; return ( - + + {Device.phone && + + + + } + { }; return ( - + + {Device.phone && + + + + } + ) diff --git a/apps/spreadsheeteditor/mobile/src/view/edit/EditText.jsx b/apps/spreadsheeteditor/mobile/src/view/edit/EditText.jsx index cd29dfd5a..edd1f410f 100644 --- a/apps/spreadsheeteditor/mobile/src/view/edit/EditText.jsx +++ b/apps/spreadsheeteditor/mobile/src/view/edit/EditText.jsx @@ -1,6 +1,6 @@ import React, {Fragment, useState} from 'react'; import {observer, inject} from "mobx-react"; -import {f7, List, ListItem, Icon, Row, Button, Page, Navbar, Segmented, BlockTitle} from 'framework7-react'; +import {f7, List, ListItem, Icon, Row, Button, Page, Navbar, NavRight, Segmented, BlockTitle, Link} from 'framework7-react'; import { useTranslation } from 'react-i18next'; import {Device} from '../../../../../common/mobile/utils/device'; import { ThemeColorPalette, CustomColorPicker } from '../../../../../common/mobile/lib/component/ThemeColorPalette.jsx'; @@ -9,14 +9,12 @@ const EditText = props => { const isAndroid = Device.android; const { t } = useTranslation(); const _t = t('View.Edit', {returnObjects: true}); - // const metricText = Common.Utils.Metric.getCurrentMetricName(); const storeTextSettings = props.storeTextSettings; const textIn = storeTextSettings.textIn; const fontName = storeTextSettings.fontName || _t.textFonts; const fontSize = storeTextSettings.fontSize; const fontColor = storeTextSettings.textColor; - // console.log(fontColor); const displaySize = typeof fontSize === 'undefined' ? _t.textAuto : fontSize + ' ' + _t.textPt; const isBold = storeTextSettings.isBold; @@ -119,7 +117,13 @@ const PageFonts = props => { return ( - + + {Device.phone && + + + + } + {!isAndroid &&
    {displaySize}
    } @@ -184,7 +188,13 @@ const PageFontColor = props => { return ( - + + {Device.phone && + + + + } + { }; return ( - + + {Device.phone && + + + + } + )