[SSE mobile] Almost maked Cell Settings
This commit is contained in:
parent
ef0449b49b
commit
7981bd1b43
|
@ -122,7 +122,22 @@
|
||||||
"textDiagonalDownBorder": "Diagonal Down Border",
|
"textDiagonalDownBorder": "Diagonal Down Border",
|
||||||
"textThin": "Thin",
|
"textThin": "Thin",
|
||||||
"textMedium": "Medium",
|
"textMedium": "Medium",
|
||||||
"textThick": "Thick"
|
"textThick": "Thick",
|
||||||
|
"textGeneral": "General",
|
||||||
|
"textNumber": "Number",
|
||||||
|
"textInteger": "Integer",
|
||||||
|
"textScientific": "Scientific",
|
||||||
|
"textAccounting": "Accounting",
|
||||||
|
"textCurrency": "Currency",
|
||||||
|
"textDate": "Date",
|
||||||
|
"textTime": "Time",
|
||||||
|
"textPercentage": "Percentage",
|
||||||
|
"textText": "Text",
|
||||||
|
"textDollar": "Dollar",
|
||||||
|
"textEuro": "Euro",
|
||||||
|
"textPound": "Pound",
|
||||||
|
"textRouble": "Rouble",
|
||||||
|
"textYen": "Yen"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Common": {
|
"Common": {
|
||||||
|
|
|
@ -40,6 +40,7 @@ export class storeCellSettings {
|
||||||
|
|
||||||
let color = xfs.asc_getFillColor();
|
let color = xfs.asc_getFillColor();
|
||||||
console.log(color);
|
console.log(color);
|
||||||
|
|
||||||
let clr = this.resetColor(color);
|
let clr = this.resetColor(color);
|
||||||
|
|
||||||
this.fillColor = clr;
|
this.fillColor = clr;
|
||||||
|
@ -147,14 +148,19 @@ export class storeCellSettings {
|
||||||
resetColor(color) {
|
resetColor(color) {
|
||||||
let clr = 'transparent';
|
let clr = 'transparent';
|
||||||
|
|
||||||
if (color) {
|
if(color) {
|
||||||
if (color.get_type() == Asc.c_oAscColor.COLOR_TYPE_SCHEME) {
|
if (color.get_auto()) {
|
||||||
clr = {
|
// return clr;
|
||||||
color: Common.Utils.ThemeColor.getHexColor(color.get_r(), color.get_g(), color.get_b()),
|
clr = 'auto'
|
||||||
effectValue: color.get_value()
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
clr = Common.Utils.ThemeColor.getHexColor(color.get_r(), color.get_g(), color.get_b());
|
if (color.get_type() == Asc.c_oAscColor.COLOR_TYPE_SCHEME) {
|
||||||
|
clr = {
|
||||||
|
color: Common.Utils.ThemeColor.getHexColor(color.get_r(), color.get_g(), color.get_b()),
|
||||||
|
effectValue: color.get_value()
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
clr = Common.Utils.ThemeColor.getHexColor(color.get_r(), color.get_g(), color.get_b());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@ import EditImageController from "../../controller/edit/EditImage";
|
||||||
|
|
||||||
import { PageShapeStyle, PageShapeStyleNoFill, PageReplaceContainer, PageReorderContainer, PageShapeBorderColor, PageShapeCustomBorderColor, PageShapeCustomFillColor } from './EditShape';
|
import { PageShapeStyle, PageShapeStyleNoFill, PageReplaceContainer, PageReorderContainer, PageShapeBorderColor, PageShapeCustomBorderColor, PageShapeCustomFillColor } from './EditShape';
|
||||||
import { PageImageReplace, PageImageReorder, PageLinkSettings } from './EditImage';
|
import { PageImageReplace, PageImageReorder, PageLinkSettings } from './EditImage';
|
||||||
import { TextColorCell, FillColorCell, CustomTextColorCell, CustomFillColorCell, FontsCell, TextFormatCell, TextOrientationCell, BorderStyleCell, BorderColorCell, CustomBorderColorCell, BorderSizeCell } from './EditCell';
|
import { TextColorCell, FillColorCell, CustomTextColorCell, CustomFillColorCell, FontsCell, TextFormatCell, TextOrientationCell, BorderStyleCell, BorderColorCell, CustomBorderColorCell, BorderSizeCell, PageFormatCell, PageAccountingFormatCell, PageCurrencyFormatCell, PageDateFormatCell, PageTimeFormatCell } from './EditCell';
|
||||||
|
|
||||||
const routes = [
|
const routes = [
|
||||||
|
|
||||||
|
@ -106,6 +106,26 @@ const routes = [
|
||||||
{
|
{
|
||||||
path: '/edit-border-size-cell/',
|
path: '/edit-border-size-cell/',
|
||||||
component: BorderSizeCell
|
component: BorderSizeCell
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/edit-format-cell/',
|
||||||
|
component: PageFormatCell
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/edit-accounting-format-cell/',
|
||||||
|
component: PageAccountingFormatCell
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/edit-currency-format-cell/',
|
||||||
|
component: PageCurrencyFormatCell
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/edit-date-format-cell/',
|
||||||
|
component: PageDateFormatCell
|
||||||
|
},
|
||||||
|
{
|
||||||
|
path: '/edit-time-format-cell/',
|
||||||
|
component: PageTimeFormatCell
|
||||||
}
|
}
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
|
@ -13,13 +13,10 @@ const EditCell = props => {
|
||||||
const storeCellSettings = props.storeCellSettings;
|
const storeCellSettings = props.storeCellSettings;
|
||||||
const cellStyles = storeCellSettings.cellStyles;
|
const cellStyles = storeCellSettings.cellStyles;
|
||||||
const styleName = storeCellSettings.styleName;
|
const styleName = storeCellSettings.styleName;
|
||||||
console.log(styleName);
|
|
||||||
console.log(cellStyles);
|
|
||||||
console.log(storeCellSettings);
|
console.log(storeCellSettings);
|
||||||
|
|
||||||
const fontInfo = storeCellSettings.fontInfo;
|
const fontInfo = storeCellSettings.fontInfo;
|
||||||
console.log(fontInfo);
|
|
||||||
|
|
||||||
const fontName = fontInfo.name || _t.textFonts;
|
const fontName = fontInfo.name || _t.textFonts;
|
||||||
const fontSize = fontInfo.size;
|
const fontSize = fontInfo.size;
|
||||||
const fontColor = storeCellSettings.fontColor;
|
const fontColor = storeCellSettings.fontColor;
|
||||||
|
@ -33,11 +30,11 @@ const EditCell = props => {
|
||||||
|
|
||||||
const fontColorPreview = fontColor !== 'auto' ?
|
const fontColorPreview = fontColor !== 'auto' ?
|
||||||
<span className="color-preview" style={{ background: `#${(typeof fontColor === "object" ? fontColor.color : fontColor)}`}}></span> :
|
<span className="color-preview" style={{ background: `#${(typeof fontColor === "object" ? fontColor.color : fontColor)}`}}></span> :
|
||||||
<span className="color-preview auto"></span>;
|
<span className="color-preview"></span>;
|
||||||
|
|
||||||
const fillColorPreview = fillColor !== 'auto' ?
|
const fillColorPreview = fillColor !== 'auto' ?
|
||||||
<span className="color-preview" style={{ background: `#${(typeof fillColor === "object" ? fillColor.color : fillColor)}`}}></span> :
|
<span className="color-preview" style={{ background: `#${(typeof fillColor === "object" ? fillColor.color : fillColor)}`}}></span> :
|
||||||
<span className="color-preview auto"></span>;
|
<span className="color-preview"></span>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
|
@ -94,8 +91,8 @@ const EditCell = props => {
|
||||||
</ListItem>
|
</ListItem>
|
||||||
</List>
|
</List>
|
||||||
<List>
|
<List>
|
||||||
<ListItem title={_t.textFormat} link="/edit-cell-format/" routeProps={{
|
<ListItem title={_t.textFormat} link="/edit-format-cell/" routeProps={{
|
||||||
onTextColor: props.onTextColor
|
onCellFormat: props.onCellFormat
|
||||||
}}>
|
}}>
|
||||||
{!isAndroid ?
|
{!isAndroid ?
|
||||||
<Icon slot="media" icon="icon-format-general"></Icon> : null
|
<Icon slot="media" icon="icon-format-general"></Icon> : null
|
||||||
|
@ -109,7 +106,6 @@ const EditCell = props => {
|
||||||
return (
|
return (
|
||||||
<ListItem key={index} style={{backgroundImage: `url(${elem.image})`}}
|
<ListItem key={index} style={{backgroundImage: `url(${elem.image})`}}
|
||||||
className={elem.name === styleName ? "item-theme active" : "item-theme"} onClick={() => props.onStyleClick(elem.name)}>
|
className={elem.name === styleName ? "item-theme active" : "item-theme"} onClick={() => props.onStyleClick(elem.name)}>
|
||||||
|
|
||||||
</ListItem>
|
</ListItem>
|
||||||
)
|
)
|
||||||
})}
|
})}
|
||||||
|
@ -195,17 +191,21 @@ const PageTextColorCell = props => {
|
||||||
const storePalette = props.storePalette;
|
const storePalette = props.storePalette;
|
||||||
const storeCellSettings = props.storeCellSettings;
|
const storeCellSettings = props.storeCellSettings;
|
||||||
const customColors = storePalette.customColors;
|
const customColors = storePalette.customColors;
|
||||||
const fontColor = storeCellSettings.fontColor;
|
let fontColor = storeCellSettings.fontColor;
|
||||||
|
|
||||||
|
if(typeof fontColor === 'object') {
|
||||||
|
fontColor = storeCellSettings.fontColor.color;
|
||||||
|
}
|
||||||
|
|
||||||
const changeColor = (color, effectId, effectValue) => {
|
const changeColor = (color, effectId, effectValue) => {
|
||||||
if (color !== 'empty') {
|
if (color !== 'empty') {
|
||||||
if (effectId !== undefined ) {
|
if (effectId !== undefined ) {
|
||||||
const newColor = {color: color, effectId: effectId, effectValue: effectValue};
|
const newColor = {color: color, effectId: effectId, effectValue: effectValue};
|
||||||
props.onTextColor(newColor);
|
|
||||||
storeCellSettings.changeFontColor(newColor);
|
storeCellSettings.changeFontColor(newColor);
|
||||||
|
props.onTextColor(newColor);
|
||||||
} else {
|
} else {
|
||||||
props.onTextColor(color);
|
|
||||||
storeCellSettings.changeFontColor(color);
|
storeCellSettings.changeFontColor(color);
|
||||||
|
props.onTextColor(color);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// open custom color menu
|
// open custom color menu
|
||||||
|
@ -220,7 +220,7 @@ const PageTextColorCell = props => {
|
||||||
<Link icon='icon-expand-down' sheetClose></Link>
|
<Link icon='icon-expand-down' sheetClose></Link>
|
||||||
</NavRight>
|
</NavRight>
|
||||||
</Navbar>
|
</Navbar>
|
||||||
<ThemeColorPalette changeColor={changeColor} curColor={fontColor} customColors={customColors} transparent={true} />
|
<ThemeColorPalette changeColor={changeColor} curColor={fontColor} customColors={customColors} />
|
||||||
<List>
|
<List>
|
||||||
<ListItem title={_t.textAddCustomColor} link={'/edit-cell-text-custom-color/'} routeProps={{
|
<ListItem title={_t.textAddCustomColor} link={'/edit-cell-text-custom-color/'} routeProps={{
|
||||||
onTextColor: props.onTextColor
|
onTextColor: props.onTextColor
|
||||||
|
@ -238,17 +238,23 @@ const PageFillColorCell = props => {
|
||||||
const storePalette = props.storePalette;
|
const storePalette = props.storePalette;
|
||||||
const storeCellSettings = props.storeCellSettings;
|
const storeCellSettings = props.storeCellSettings;
|
||||||
const customColors = storePalette.customColors;
|
const customColors = storePalette.customColors;
|
||||||
const fillColor = storeCellSettings.fillColor;
|
let fillColor = storeCellSettings.fillColor;
|
||||||
|
|
||||||
|
if(typeof fillColor === 'object') {
|
||||||
|
fillColor = storeCellSettings.fillColor.color;
|
||||||
|
}
|
||||||
|
|
||||||
|
console.log(fillColor);
|
||||||
|
|
||||||
const changeColor = (color, effectId, effectValue) => {
|
const changeColor = (color, effectId, effectValue) => {
|
||||||
if (color !== 'empty') {
|
if (color !== 'empty') {
|
||||||
if (effectId !== undefined ) {
|
if (effectId !== undefined ) {
|
||||||
const newColor = {color: color, effectId: effectId, effectValue: effectValue};
|
const newColor = {color: color, effectId: effectId, effectValue: effectValue};
|
||||||
props.onFillColor(newColor);
|
|
||||||
storeCellSettings.changeFillColor(newColor);
|
storeCellSettings.changeFillColor(newColor);
|
||||||
|
props.onFillColor(newColor);
|
||||||
} else {
|
} else {
|
||||||
props.onFillColor(color);
|
|
||||||
storeCellSettings.changeFillColor(color);
|
storeCellSettings.changeFillColor(color);
|
||||||
|
props.onFillColor(color);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// open custom color menu
|
// open custom color menu
|
||||||
|
@ -468,8 +474,6 @@ const PageBorderStyleCell = props => {
|
||||||
13: `${_t.textThick}`
|
13: `${_t.textThick}`
|
||||||
};
|
};
|
||||||
|
|
||||||
// const borderSizes = storeCellSettings.borderSizes;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
<Navbar title={_t.textBorderStyle} backLink={_t.textBack} />
|
<Navbar title={_t.textBorderStyle} backLink={_t.textBack} />
|
||||||
|
@ -565,10 +569,14 @@ const PageBorderColorCell = props => {
|
||||||
const storePalette = props.storePalette;
|
const storePalette = props.storePalette;
|
||||||
const storeCellSettings = props.storeCellSettings;
|
const storeCellSettings = props.storeCellSettings;
|
||||||
const borderInfo = storeCellSettings.borderInfo;
|
const borderInfo = storeCellSettings.borderInfo;
|
||||||
const borderColor = typeof borderInfo.color === "object" ? borderInfo.color.color : borderInfo.color;
|
let borderColor = borderInfo.color;
|
||||||
const borderStyle = storeCellSettings.borderStyle;
|
const borderStyle = storeCellSettings.borderStyle;
|
||||||
const customColors = storePalette.customColors;
|
const customColors = storePalette.customColors;
|
||||||
|
|
||||||
|
if(typeof borderColor === "object") {
|
||||||
|
borderColor = borderInfo.color.color;
|
||||||
|
}
|
||||||
|
|
||||||
const changeColor = (color, effectId, effectValue) => {
|
const changeColor = (color, effectId, effectValue) => {
|
||||||
if (color !== 'empty') {
|
if (color !== 'empty') {
|
||||||
if (effectId !== undefined ) {
|
if (effectId !== undefined ) {
|
||||||
|
@ -592,7 +600,7 @@ const PageBorderColorCell = props => {
|
||||||
<Link icon='icon-expand-down' sheetClose></Link>
|
<Link icon='icon-expand-down' sheetClose></Link>
|
||||||
</NavRight>
|
</NavRight>
|
||||||
</Navbar>
|
</Navbar>
|
||||||
<ThemeColorPalette changeColor={changeColor} curColor={borderColor} customColors={customColors} transparent={true} />
|
<ThemeColorPalette changeColor={changeColor} curColor={borderColor} customColors={customColors} />
|
||||||
<List>
|
<List>
|
||||||
<ListItem title={_t.textAddCustomColor} link={'/edit-border-custom-color-cell/'} routeProps={{
|
<ListItem title={_t.textAddCustomColor} link={'/edit-border-custom-color-cell/'} routeProps={{
|
||||||
onBorderStyle: props.onBorderStyle
|
onBorderStyle: props.onBorderStyle
|
||||||
|
@ -608,7 +616,12 @@ const PageCustomBorderColorCell = props => {
|
||||||
const storeCellSettings = props.storeCellSettings;
|
const storeCellSettings = props.storeCellSettings;
|
||||||
const storePalette = props.storePalette;
|
const storePalette = props.storePalette;
|
||||||
const borderInfo = storeCellSettings.borderInfo;
|
const borderInfo = storeCellSettings.borderInfo;
|
||||||
const borderColor = typeof borderInfo.color === "object" ? borderInfo.color.color : borderInfo.color;
|
let borderColor = borderInfo.color;
|
||||||
|
|
||||||
|
if(typeof borderColor === "object") {
|
||||||
|
borderColor = borderInfo.color.color;
|
||||||
|
}
|
||||||
|
|
||||||
const borderStyle = storeCellSettings.borderStyle;
|
const borderStyle = storeCellSettings.borderStyle;
|
||||||
|
|
||||||
const onAddNewColor = (colors, color) => {
|
const onAddNewColor = (colors, color) => {
|
||||||
|
@ -657,6 +670,174 @@ const PageBorderSizeCell = props => {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const PageFormatCell = props => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const _t = t('View.Edit', {returnObjects: true});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Page>
|
||||||
|
<Navbar title={_t.textFormat} backLink={_t.textBack} />
|
||||||
|
<List>
|
||||||
|
<ListItem title={_t.textGeneral} onClick={() => props.onCellFormat('R2VuZXJhbA==')}>
|
||||||
|
<Icon slot="media" icon="icon-format-general"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textNumber} onClick={() => props.onCellFormat('MC4wMA==')}>
|
||||||
|
<Icon slot="media" icon="icon-format-number"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textInteger} onClick={() => props.onCellFormat('JTIzMA==')}>
|
||||||
|
<Icon slot="media" icon="icon-format-integer"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textScientific} onClick={() => props.onCellFormat('MC4wMEUlMkIwMA==')}>
|
||||||
|
<Icon slot="media" icon="icon-format-scientific"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textAccounting} link="/edit-accounting-format-cell/" routeProps={{
|
||||||
|
onCellFormat: props.onCellFormat
|
||||||
|
}}>
|
||||||
|
<Icon slot="media" icon="icon-format-accounting"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textCurrency} link="/edit-currency-format-cell/" routeProps={{
|
||||||
|
onCellFormat: props.onCellFormat
|
||||||
|
}}>
|
||||||
|
<Icon slot="media" icon="icon-format-currency"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textDate} link='/edit-date-format-cell/' routeProps={{
|
||||||
|
onCellFormat: props.onCellFormat
|
||||||
|
}}>
|
||||||
|
<Icon slot="media" icon="icon-format-date"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textTime} link='/edit-time-format-cell/' routeProps={{
|
||||||
|
onCellFormat: props.onCellFormat
|
||||||
|
}}>
|
||||||
|
<Icon slot="media" icon="icon-format-time"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textPercentage} onClick={() => props.onCellFormat('MC4wMCUyNQ==')}>
|
||||||
|
<Icon slot="media" icon="icon-format-percentage"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textText} onClick={() => props.onCellFormat('JTQw')}>
|
||||||
|
<Icon slot="media" icon="icon-format-text"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
</List>
|
||||||
|
</Page>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const PageAccountingFormatCell = props => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const _t = t('View.Edit', {returnObjects: true});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Page>
|
||||||
|
<Navbar title={_t.textAccounting} backLink={_t.textBack} />
|
||||||
|
<List>
|
||||||
|
<ListItem title={_t.textDollar} after='$'
|
||||||
|
onClick={() => props.onCellFormat('XyglMjQqJTIwJTIzJTJDJTIzJTIzMC4wMF8pJTNCXyglMjQqJTIwKCUyMyUyQyUyMyUyMzAuMDApJTNCXyglMjQqJTIwJTIyLSUyMiUzRiUzRl8pJTNCXyglNDBfKQ==')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textEuro} after='€'
|
||||||
|
onClick={() => props.onCellFormat('XyglRTIlODIlQUMqJTIwJTIzJTJDJTIzJTIzMC4wMF8pJTNCXyglRTIlODIlQUMqJTIwKCUyMyUyQyUyMyUyMzAuMDApJTNCXyglRTIlODIlQUMqJTIwJTIyLSUyMiUzRiUzRl8pJTNCXyglNDBfKQ==')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textPound} after='£'
|
||||||
|
onClick={() => props.onCellFormat('XyglQzIlQTMqJTIwJTIzJTJDJTIzJTIzMC4wMF8pJTNCXyglQzIlQTMqJTIwKCUyMyUyQyUyMyUyMzAuMDApJTNCXyglQzIlQTMqJTIwJTIyLSUyMiUzRiUzRl8pJTNCXyglNDBfKQ==')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textRouble} after='₽'
|
||||||
|
onClick={() => props.onCellFormat('Xy0qJTIwJTIzJTJDJTIzJTIzMC4wMCU1QiUyNCVEMSU4MC4tNDE5JTVEXy0lM0ItKiUyMCUyMyUyQyUyMyUyMzAuMDAlNUIlMjQlRDElODAuLTQxOSU1RF8tJTNCXy0qJTIwJTIyLSUyMiUzRiUzRiU1QiUyNCVEMSU4MC4tNDE5JTVEXy0lM0JfLSU0MF8t')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textYen} after='¥'
|
||||||
|
onClick={() => props.onCellFormat('XyglQzIlQTUqJTIwJTIzJTJDJTIzJTIzMC4wMF8pJTNCXyglQzIlQTUqJTIwKCUyMyUyQyUyMyUyMzAuMDApJTNCXyglQzIlQTUqJTIwJTIyLSUyMiUzRiUzRl8pJTNCXyglNDBfKQ==')}>
|
||||||
|
</ListItem>
|
||||||
|
</List>
|
||||||
|
</Page>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const PageCurrencyFormatCell = props => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const _t = t('View.Edit', {returnObjects: true});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Page>
|
||||||
|
<Navbar title={_t.textAccounting} backLink={_t.textBack} />
|
||||||
|
<List>
|
||||||
|
<ListItem title={_t.textDollar} after='$'
|
||||||
|
onClick={() => props.onCellFormat('JTI0JTIzJTJDJTIzJTIzMC4wMA==')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textEuro} after='€'
|
||||||
|
onClick={() => props.onCellFormat('JUUyJTgyJUFDJTIzJTJDJTIzJTIzMC4wMA==')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textPound} after='£'
|
||||||
|
onClick={() => props.onCellFormat('JUMyJUEzJTIzJTJDJTIzJTIzMC4wMA==')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textRouble} after='₽'
|
||||||
|
onClick={() => props.onCellFormat('JTIzJTJDJTIzJTIzMC4wMCUyMiVEMSU4MC4lMjI=')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title={_t.textYen} after='¥'
|
||||||
|
onClick={() => props.onCellFormat('JUMyJUE1JTIzJTJDJTIzJTIzMC4wMA==')}>
|
||||||
|
</ListItem>
|
||||||
|
</List>
|
||||||
|
</Page>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const PageDateFormatCell = props => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const _t = t('View.Edit', {returnObjects: true});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Page>
|
||||||
|
<Navbar title={_t.textDate} backLink={_t.textBack} />
|
||||||
|
<List>
|
||||||
|
<ListItem title='07-24-88' after='MM-dd-yy'
|
||||||
|
onClick={() => props.onCellFormat('TU0tZGQteXk=')}></ListItem>
|
||||||
|
<ListItem title='07-24-1988' after='MM-dd-yyyy'
|
||||||
|
onClick={() => props.onCellFormat('TU0tZGQteXl5eQ==')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title='24-07-88' after='dd-MM-yy'
|
||||||
|
onClick={() => props.onCellFormat('ZGQtTU0teXk=')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title='24-07-1988' after='dd-MM-yyyy'
|
||||||
|
onClick={() => props.onCellFormat('ZGQtTU0teXl5eQ==')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title='24-Jul-1988' after='dd-MMM-yyyy'
|
||||||
|
onClick={() => props.onCellFormat('ZGQtTU1NLXl5eXk=')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title='24-Jul' after='dd-MMM'
|
||||||
|
onClick={() => props.onCellFormat('ZGQtTU1N')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title='Jul-88' after='MMM-yy'
|
||||||
|
onClick={() => props.onCellFormat('TU1NLXl5')}>
|
||||||
|
</ListItem>
|
||||||
|
</List>
|
||||||
|
</Page>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
const PageTimeFormatCell = props => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const _t = t('View.Edit', {returnObjects: true});
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Page>
|
||||||
|
<Navbar title={_t.textTime} backLink={_t.textBack} />
|
||||||
|
<List>
|
||||||
|
<ListItem title='10:56' after='HH:mm'
|
||||||
|
onClick={() => props.onCellFormat('aCUzQW1tJTNCJTQw')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title='21:56:00' after='HH:MM:ss'
|
||||||
|
onClick={() => props.onCellFormat('aCUzQW1tJTNBc3MlM0IlNDA=')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title='05:56 AM' after='hh:mm tt'
|
||||||
|
onClick={() => props.onCellFormat('aCUzQW1tJTIwQU0lMkZQTSUzQiU0MA==')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title='05:56:00 AM' after='hh:mm:ss tt'
|
||||||
|
onClick={() => props.onCellFormat('aCUzQW1tJTNBc3MlMjBBTSUyRlBNJTNCJTQw')}>
|
||||||
|
</ListItem>
|
||||||
|
<ListItem title='38:56:00' after='[h]:mm:ss'
|
||||||
|
onClick={() => props.onCellFormat('JTVCaCU1RCUzQW1tJTNBc3MlM0IlNDA=')}>
|
||||||
|
</ListItem>
|
||||||
|
</List>
|
||||||
|
</Page>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const PageEditCell = inject("storeCellSettings")(observer(EditCell));
|
const PageEditCell = inject("storeCellSettings")(observer(EditCell));
|
||||||
const TextColorCell = inject("storeCellSettings", "storePalette", "storeFocusObjects")(observer(PageTextColorCell));
|
const TextColorCell = inject("storeCellSettings", "storePalette", "storeFocusObjects")(observer(PageTextColorCell));
|
||||||
|
@ -683,5 +864,10 @@ export {
|
||||||
BorderStyleCell,
|
BorderStyleCell,
|
||||||
BorderColorCell,
|
BorderColorCell,
|
||||||
CustomBorderColorCell,
|
CustomBorderColorCell,
|
||||||
BorderSizeCell
|
BorderSizeCell,
|
||||||
|
PageFormatCell,
|
||||||
|
PageAccountingFormatCell,
|
||||||
|
PageCurrencyFormatCell,
|
||||||
|
PageDateFormatCell,
|
||||||
|
PageTimeFormatCell
|
||||||
};
|
};
|
Loading…
Reference in a new issue