Add multilevel list presentation
This commit is contained in:
parent
4c3323f12e
commit
b42b14903f
|
@ -127,40 +127,37 @@
|
||||||
.bullets,
|
.bullets,
|
||||||
.numbers,
|
.numbers,
|
||||||
.multilevels {
|
.multilevels {
|
||||||
.row ul {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-around;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
|
||||||
margin-top: 10px;
|
|
||||||
padding: 0 5px;
|
|
||||||
}
|
|
||||||
.list{
|
.list{
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
|
ul {
|
||||||
|
&:before, &:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 10px;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
&:first-child li:first-child, &:last-child li:last-child {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
&:last-child li:last-child:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.list .item-content {
|
.list .item-content {
|
||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
min-height: 68px;
|
min-height: 68px;
|
||||||
.item-inner{
|
.item-inner{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
&:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.simple-list li:after, .links-list a:after, .list .item-inner:after {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.device-ios .popover__titled .list:last-child li:last-child:after {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.list ul:before {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.list ul:after{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
li {
|
li {
|
||||||
width: 70px;
|
width: 70px;
|
||||||
height: 70px;
|
height: 70px;
|
||||||
|
|
|
@ -276,18 +276,21 @@
|
||||||
.bullets,
|
.bullets,
|
||||||
.numbers,
|
.numbers,
|
||||||
.multilevels {
|
.multilevels {
|
||||||
.row ul {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-around;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
ul {
|
|
||||||
margin-top: 10px;
|
|
||||||
padding: 0 5px;
|
|
||||||
}
|
|
||||||
.list{
|
.list{
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
|
ul {
|
||||||
|
&:before, &:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 10px;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
&:first-child li:first-child, &:last-child li:last-child {
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.list .item-content {
|
.list .item-content {
|
||||||
|
@ -295,22 +298,12 @@
|
||||||
min-height: 68px;
|
min-height: 68px;
|
||||||
.item-inner{
|
.item-inner{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
&:after {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.simple-list li:after, .links-list a:after, .list .item-inner:after {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.device-ios .popover__titled .list:last-child li:last-child:after {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.list ul:before {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.list ul:after{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
li {
|
li {
|
||||||
width: 70px;
|
width: 70px;
|
||||||
height: 70px;
|
height: 70px;
|
||||||
|
|
|
@ -96,6 +96,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-content {
|
||||||
|
.preview{
|
||||||
|
color: @gray;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.phone, .tablet {
|
.phone, .tablet {
|
||||||
.swiper-container{
|
.swiper-container{
|
||||||
position: static;
|
position: static;
|
||||||
|
@ -103,7 +109,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.swiper-pagination-bullet-active{
|
.swiper-pagination-bullet-active{
|
||||||
background: #000;
|
background: @black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -154,7 +154,7 @@ const PageBullets = props => {
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
const storeTextSettings = props.storeTextSettings;
|
const storeTextSettings = props.storeTextSettings;
|
||||||
const typeBullets = props.typeBullets;
|
const typeBullets = storeTextSettings.typeBullets;
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<View className='bullets dataview'>
|
<View className='bullets dataview'>
|
||||||
|
@ -202,7 +202,7 @@ const PageNumbers = props => {
|
||||||
];
|
];
|
||||||
|
|
||||||
const storeTextSettings = props.storeTextSettings;
|
const storeTextSettings = props.storeTextSettings;
|
||||||
const typeNumbers = props.typeNumbers;
|
const typeNumbers = storeTextSettings.typeNumbers;
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<View className='numbers dataview'>
|
<View className='numbers dataview'>
|
||||||
|
@ -243,7 +243,7 @@ const PageMultiLevel = props => {
|
||||||
];
|
];
|
||||||
|
|
||||||
const storeTextSettings = props.storeTextSettings;
|
const storeTextSettings = props.storeTextSettings;
|
||||||
const typeMultiLevel = props.typeMultiLevel;
|
const typeMultiLevel = storeTextSettings.typeMultiLevel;
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<View className='multilevels dataview'>
|
<View className='multilevels dataview'>
|
||||||
|
@ -271,11 +271,7 @@ const PageMultiLevel = props => {
|
||||||
|
|
||||||
const PageBulletsAndNumbers = props => {
|
const PageBulletsAndNumbers = props => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
|
||||||
const storeTextSettings = props.storeTextSettings;
|
const storeTextSettings = props.storeTextSettings;
|
||||||
const typeNumbers = storeTextSettings.typeNumbers;
|
|
||||||
const typeBullets = storeTextSettings.typeBullets;
|
|
||||||
const typeMultiLevel = storeTextSettings.typeMultiLevel;
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
|
@ -289,9 +285,9 @@ const PageBulletsAndNumbers = props => {
|
||||||
}
|
}
|
||||||
</Navbar>
|
</Navbar>
|
||||||
<Swiper pagination>
|
<Swiper pagination>
|
||||||
<SwiperSlide> <PageNumbers f7router={props.f7router} storeTextSettings={storeTextSettings} typeNumbers={typeNumbers} onNumber={props.onNumber}/></SwiperSlide>
|
<SwiperSlide> <PageNumbers f7router={props.f7router} storeTextSettings={storeTextSettings} onNumber={props.onNumber}/></SwiperSlide>
|
||||||
<SwiperSlide> <PageBullets f7router={props.f7router} storeTextSettings={storeTextSettings} typeBullets={typeBullets} onBullet={props.onBullet}/></SwiperSlide>
|
<SwiperSlide> <PageBullets f7router={props.f7router} storeTextSettings={storeTextSettings} onBullet={props.onBullet}/></SwiperSlide>
|
||||||
<SwiperSlide> <PageMultiLevel f7router={props.f7router} storeTextSettings={storeTextSettings} typeMultiLevel={typeMultiLevel} onMultiLevelList={props.onMultiLevelList}/> </SwiperSlide>
|
<SwiperSlide> <PageMultiLevel f7router={props.f7router} storeTextSettings={storeTextSettings} onMultiLevelList={props.onMultiLevelList}/> </SwiperSlide>
|
||||||
</Swiper>
|
</Swiper>
|
||||||
</Page>
|
</Page>
|
||||||
)
|
)
|
||||||
|
@ -484,12 +480,15 @@ const EditText = props => {
|
||||||
|
|
||||||
let previewList;
|
let previewList;
|
||||||
switch(storeTextSettings.listType) {
|
switch(storeTextSettings.listType) {
|
||||||
case -1: previewList = ''
|
case -1:
|
||||||
break;
|
previewList = '';
|
||||||
case 0: previewList = 'Bullets'
|
break;
|
||||||
break;
|
case 0:
|
||||||
case 1: previewList = 'Numbers'
|
previewList = 'Bullets';
|
||||||
break;
|
break;
|
||||||
|
case 1:
|
||||||
|
previewList = 'Numbers';
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
const fontColorPreview = fontColor !== 'auto' ?
|
const fontColorPreview = fontColor !== 'auto' ?
|
||||||
|
@ -569,7 +568,7 @@ const EditText = props => {
|
||||||
onNumber: props.onNumber,
|
onNumber: props.onNumber,
|
||||||
onMultiLevelList: props.onMultiLevelList
|
onMultiLevelList: props.onMultiLevelList
|
||||||
}}>
|
}}>
|
||||||
<div style= {{color:"gray"}}>{previewList}</div>
|
<div className="preview">{previewList}</div>
|
||||||
{!isAndroid && <Icon slot="media" icon="icon-bullets"></Icon>}
|
{!isAndroid && <Icon slot="media" icon="icon-bullets"></Icon>}
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem title={t("Edit.textLineSpacing")} link='/edit-text-line-spacing/' routeProps={{
|
<ListItem title={t("Edit.textLineSpacing")} link='/edit-text-line-spacing/' routeProps={{
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"Controller" : {
|
"Controller": {
|
||||||
"Main" : {
|
"Main": {
|
||||||
"SDK": {
|
"SDK": {
|
||||||
"Series": "Series",
|
"Series": "Series",
|
||||||
"Diagram Title": "Chart Title",
|
"Diagram Title": "Chart Title",
|
||||||
|
@ -27,7 +27,6 @@
|
||||||
"closeButtonText": "Close File",
|
"closeButtonText": "Close File",
|
||||||
"advDRMOptions": "Protected File",
|
"advDRMOptions": "Protected File",
|
||||||
"advDRMPassword": "Password",
|
"advDRMPassword": "Password",
|
||||||
|
|
||||||
"leavePageText": "You have unsaved changes in this document. Click 'Stay on this Page' to await the autosave of the document. Click 'Leave this Page' to discard all the unsaved changes.",
|
"leavePageText": "You have unsaved changes in this document. Click 'Stay on this Page' to await the autosave of the document. Click 'Leave this Page' to discard all the unsaved changes.",
|
||||||
"titleLicenseExp": "License expired",
|
"titleLicenseExp": "License expired",
|
||||||
"warnLicenseExp": "Your license has expired. Please update your license and refresh the page.",
|
"warnLicenseExp": "Your license has expired. Please update your license and refresh the page.",
|
||||||
|
@ -47,12 +46,10 @@
|
||||||
"textPaidFeature": "Paid feature",
|
"textPaidFeature": "Paid feature",
|
||||||
"textCustomLoader": "Please note that according to the terms of the license you are not entitled to change the loader. Please contact our Sales Department to get a quote.",
|
"textCustomLoader": "Please note that according to the terms of the license you are not entitled to change the loader. Please contact our Sales Department to get a quote.",
|
||||||
"textClose": "Close",
|
"textClose": "Close",
|
||||||
|
|
||||||
"errorProcessSaveResult": "Saving is failed.",
|
"errorProcessSaveResult": "Saving is failed.",
|
||||||
"criticalErrorTitle": "Error",
|
"criticalErrorTitle": "Error",
|
||||||
"warnProcessRightsChange": "You have been denied the right to edit the file.",
|
"warnProcessRightsChange": "You have been denied the right to edit the file.",
|
||||||
"errorAccessDeny": "You are trying to perform an action you do not have rights for.<br>Please contact your Document Server administrator.",
|
"errorAccessDeny": "You are trying to perform an action you do not have rights for.<br>Please contact your Document Server administrator.",
|
||||||
|
|
||||||
"errorUpdateVersion": "The file version has been changed. The page will be reloaded.",
|
"errorUpdateVersion": "The file version has been changed. The page will be reloaded.",
|
||||||
"titleUpdateVersion": "Version changed",
|
"titleUpdateVersion": "Version changed",
|
||||||
"textHasMacros": "The file contains automatic macros.<br>Do you want to run macros?",
|
"textHasMacros": "The file contains automatic macros.<br>Do you want to run macros?",
|
||||||
|
@ -303,8 +300,7 @@
|
||||||
"textHighlightColor": "Highlight Color",
|
"textHighlightColor": "Highlight Color",
|
||||||
"textAdditionalFormatting": "Additional Formatting",
|
"textAdditionalFormatting": "Additional Formatting",
|
||||||
"textAdditional": "Additional",
|
"textAdditional": "Additional",
|
||||||
"textBullets": "Bullets",
|
"textBulletsAndNumbers": "Bullets & Numbers",
|
||||||
"textNumbers": "Numbers",
|
|
||||||
"textLineSpacing": "Line Spacing",
|
"textLineSpacing": "Line Spacing",
|
||||||
"textFonts": "Fonts",
|
"textFonts": "Fonts",
|
||||||
"textAuto": "Auto",
|
"textAuto": "Auto",
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
|
|
||||||
.device-ios {
|
.device-ios {
|
||||||
|
.view {
|
||||||
|
.page-content{
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -83,3 +83,19 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-content {
|
||||||
|
.preview{
|
||||||
|
color: @gray;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.phone, .tablet {
|
||||||
|
.swiper-container{
|
||||||
|
position: static;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.swiper-pagination-bullet-active{
|
||||||
|
background: @black;
|
||||||
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ import EditChartController from "../../controller/edit/EditChart";
|
||||||
import { EditLinkController } from "../../controller/edit/EditLink";
|
import { EditLinkController } from "../../controller/edit/EditLink";
|
||||||
|
|
||||||
import { Theme, Layout, Transition, Type, Effect, StyleFillColor, CustomFillColor } from './EditSlide';
|
import { Theme, Layout, Transition, Type, Effect, StyleFillColor, CustomFillColor } from './EditSlide';
|
||||||
import { PageTextFonts, PageTextFontColor, PageTextCustomFontColor, PageTextAddFormatting, PageTextBullets, PageTextNumbers, PageTextLineSpacing } from './EditText';
|
import { PageTextFonts, PageTextFontColor, PageTextCustomFontColor, PageTextAddFormatting, PageTextBulletsAndNumbers, PageTextLineSpacing } from './EditText';
|
||||||
import { PageShapeStyle, PageShapeStyleNoFill, PageReplaceContainer, PageReorderContainer, PageAlignContainer, PageShapeBorderColor, PageShapeCustomBorderColor, PageShapeCustomFillColor } from './EditShape';
|
import { PageShapeStyle, PageShapeStyleNoFill, PageReplaceContainer, PageReorderContainer, PageAlignContainer, PageShapeBorderColor, PageShapeCustomBorderColor, PageShapeCustomFillColor } from './EditShape';
|
||||||
import { PageImageReplace, PageImageReorder, PageImageAlign, PageLinkSettings } from './EditImage';
|
import { PageImageReplace, PageImageReorder, PageImageAlign, PageLinkSettings } from './EditImage';
|
||||||
import { PageTableStyle, PageTableStyleOptions, PageTableCustomFillColor, PageTableBorderColor, PageTableCustomBorderColor, PageTableReorder, PageTableAlign } from './EditTable';
|
import { PageTableStyle, PageTableStyleOptions, PageTableCustomFillColor, PageTableBorderColor, PageTableCustomBorderColor, PageTableReorder, PageTableAlign } from './EditTable';
|
||||||
|
@ -73,12 +73,8 @@ const routes = [
|
||||||
component: PageTextAddFormatting
|
component: PageTextAddFormatting
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/edit-text-bullets/',
|
path: '/edit-bullets-and-numbers/',
|
||||||
component: PageTextBullets
|
component: PageTextBulletsAndNumbers
|
||||||
},
|
|
||||||
{
|
|
||||||
path: '/edit-text-numbers/',
|
|
||||||
component: PageTextNumbers
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/edit-text-line-spacing/',
|
path: '/edit-text-line-spacing/',
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import React, {Fragment, useState} from 'react';
|
import React, {Fragment, useState} from 'react';
|
||||||
import {observer, inject} from "mobx-react";
|
import {observer, inject} from "mobx-react";
|
||||||
import {f7, List, ListItem, Icon, Row, Button, Page, Navbar, Segmented, BlockTitle, NavRight, Link} from 'framework7-react';
|
import {f7, Swiper, View, SwiperSlide, List, ListItem, Icon, Row, Button, Page, Navbar, Segmented, BlockTitle, NavRight, Link} from 'framework7-react';
|
||||||
import { useTranslation } from 'react-i18next';
|
import { useTranslation } from 'react-i18next';
|
||||||
import {Device} from '../../../../../common/mobile/utils/device';
|
import {Device} from '../../../../../common/mobile/utils/device';
|
||||||
import { ThemeColorPalette, CustomColorPicker } from '../../../../../common/mobile/lib/component/ThemeColorPalette.jsx';
|
import { ThemeColorPalette, CustomColorPicker } from '../../../../../common/mobile/lib/component/ThemeColorPalette.jsx';
|
||||||
|
@ -27,6 +27,18 @@ const EditText = props => {
|
||||||
const paragraphObj = storeFocusObjects.paragraphObject;
|
const paragraphObj = storeFocusObjects.paragraphObject;
|
||||||
let spaceBefore;
|
let spaceBefore;
|
||||||
let spaceAfter;
|
let spaceAfter;
|
||||||
|
let previewList;
|
||||||
|
switch(storeTextSettings.listType) {
|
||||||
|
case -1:
|
||||||
|
previewList = '';
|
||||||
|
break;
|
||||||
|
case 0:
|
||||||
|
previewList = 'Bullets';
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
previewList = 'Numbers';
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
if(paragraphObj) {
|
if(paragraphObj) {
|
||||||
spaceBefore = paragraphObj.get_Spacing().get_Before() < 0 ? paragraphObj.get_Spacing().get_Before() : Common.Utils.Metric.fnRecalcFromMM(paragraphObj.get_Spacing().get_Before());
|
spaceBefore = paragraphObj.get_Spacing().get_Before() < 0 ? paragraphObj.get_Spacing().get_Before() : Common.Utils.Metric.fnRecalcFromMM(paragraphObj.get_Spacing().get_Before());
|
||||||
|
@ -114,16 +126,13 @@ const EditText = props => {
|
||||||
</a>
|
</a>
|
||||||
</Row>
|
</Row>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem title={_t.textBullets} link='/edit-text-bullets/' routeProps={{
|
<ListItem title={_t.textBulletsAndNumbers} link='/edit-bullets-and-numbers/' routeProps={{
|
||||||
onBullet: props.onBullet
|
onBullet: props.onBullet,
|
||||||
|
onNumber: props.onNumber,
|
||||||
}}>
|
}}>
|
||||||
|
<div className="preview">{previewList}</div>
|
||||||
{!isAndroid && <Icon slot="media" icon="icon-bullets"></Icon>}
|
{!isAndroid && <Icon slot="media" icon="icon-bullets"></Icon>}
|
||||||
</ListItem>
|
</ListItem>
|
||||||
<ListItem title={_t.textNumbers} link='/edit-text-numbers/' routeProps={{
|
|
||||||
onNumber: props.onNumber
|
|
||||||
}}>
|
|
||||||
{!isAndroid && <Icon slot="media" icon="icon-numbers"></Icon>}
|
|
||||||
</ListItem>
|
|
||||||
<ListItem title={_t.textLineSpacing} link='/edit-text-line-spacing/' routeProps={{
|
<ListItem title={_t.textLineSpacing} link='/edit-text-line-spacing/' routeProps={{
|
||||||
onLineSpacing: props.onLineSpacing
|
onLineSpacing: props.onLineSpacing
|
||||||
}}>
|
}}>
|
||||||
|
@ -421,32 +430,31 @@ const PageBullets = props => {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return(
|
||||||
<Page className='bullets dataview'>
|
<View className='bullets dataview'>
|
||||||
<Navbar title={_t.textBullets} backLink={_t.textBack}>
|
|
||||||
{Device.phone &&
|
|
||||||
<NavRight>
|
|
||||||
<Link sheetClose='#edit-sheet'>
|
|
||||||
<Icon icon='icon-expand-down'/>
|
|
||||||
</Link>
|
|
||||||
</NavRight>
|
|
||||||
}
|
|
||||||
</Navbar>
|
|
||||||
{bulletArrays.map((bullets, index) => (
|
{bulletArrays.map((bullets, index) => (
|
||||||
<ul className="row" style={{listStyle: 'none'}} key={'bullets-' + index}>
|
<List className="row" style={{listStyle: 'none'}} key={'bullets-' + index}>
|
||||||
{bullets.map((bullet) => (
|
{bullets.map((bullet) => (
|
||||||
<li key={'bullet-' + bullet.type} data-type={bullet.type} className={bullet.type === typeBullets ? 'active' : ''} onClick={() => {props.onBullet(bullet.type)}}>
|
<ListItem key={'bullet-' + bullet.type} data-type={bullet.type} className={(bullet.type === typeBullets) &&
|
||||||
|
(storeTextSettings.listType === 0 || storeTextSettings.listType === -1) ? 'active' : ''}
|
||||||
|
onClick={() => {
|
||||||
|
if (bullet.type === -1) {
|
||||||
|
storeTextSettings.resetBullets(-1);
|
||||||
|
}
|
||||||
|
props.onBullet(bullet.type)
|
||||||
|
props.f7router.back();
|
||||||
|
}}>
|
||||||
{bullet.thumb.length < 1 ?
|
{bullet.thumb.length < 1 ?
|
||||||
<div className="thumb" style={{position: 'relative'}}>
|
<Icon className="thumb" style={{position: 'relative'}}>
|
||||||
<label>{_t.textNone}</label>
|
<label>{_t.textNone}</label>
|
||||||
</div> :
|
</Icon> :
|
||||||
<div className="thumb" style={{backgroundImage: `url('resources/img/bullets/${bullet.thumb}')`}}></div>
|
<Icon className="thumb" style={{backgroundImage: `url('resources/img/bullets/${bullet.thumb}')`}}></Icon>
|
||||||
}
|
}
|
||||||
</li>
|
</ListItem>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</List>
|
||||||
))}
|
))}
|
||||||
</Page>
|
</View>
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -477,9 +485,43 @@ const PageNumbers = props => {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return(
|
||||||
|
<View className='numbers dataview'>
|
||||||
|
{numberArrays.map((numbers, index) => (
|
||||||
|
<List className="row" style={{listStyle: 'none'}} key={'numbers-' + index}>
|
||||||
|
{numbers.map((number) => (
|
||||||
|
<ListItem key={'number-' + number.type} data-type={number.type} className={(number.type === typeNumbers) &&
|
||||||
|
(storeTextSettings.listType === 1 || storeTextSettings.listType === -1) ? 'active' : ''}
|
||||||
|
onClick={() => {
|
||||||
|
if (number.type === -1) {
|
||||||
|
storeTextSettings.resetNumbers(-1);
|
||||||
|
}
|
||||||
|
props.onNumber(number.type)
|
||||||
|
props.f7router.back();
|
||||||
|
}}>
|
||||||
|
{number.thumb.length < 1 ?
|
||||||
|
<Icon className="thumb" style={{position: 'relative'}}>
|
||||||
|
<label>{_t.textNone}</label>
|
||||||
|
</Icon> :
|
||||||
|
<Icon className="thumb" style={{backgroundImage: `url('resources/img/numbers/${number.thumb}')`}}></Icon>
|
||||||
|
}
|
||||||
|
</ListItem>
|
||||||
|
))}
|
||||||
|
</List>
|
||||||
|
))}
|
||||||
|
</View>
|
||||||
|
)
|
||||||
|
};
|
||||||
|
|
||||||
|
const PageBulletsAndNumbers = props => {
|
||||||
|
const { t } = useTranslation();
|
||||||
|
const _t = t('View.Edit', {returnObjects: true});
|
||||||
|
const storeTextSettings = props.storeTextSettings;
|
||||||
|
const storeFocusObjects = props.storeFocusObjects;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page className='numbers dataview'>
|
<Page>
|
||||||
<Navbar title={_t.textNumbers} backLink={_t.textBack}>
|
<Navbar title={_t.textBulletsAndNumbers} backLink={_t.textBack}>
|
||||||
{Device.phone &&
|
{Device.phone &&
|
||||||
<NavRight>
|
<NavRight>
|
||||||
<Link sheetClose='#edit-sheet'>
|
<Link sheetClose='#edit-sheet'>
|
||||||
|
@ -488,23 +530,13 @@ const PageNumbers = props => {
|
||||||
</NavRight>
|
</NavRight>
|
||||||
}
|
}
|
||||||
</Navbar>
|
</Navbar>
|
||||||
{numberArrays.map((numbers, index) => (
|
<Swiper pagination>
|
||||||
<ul className="row" style={{listStyle: 'none'}} key={'numbers-' + index}>
|
<SwiperSlide> <PageNumbers f7router={props.f7router} storeFocusObjects={storeFocusObjects} storeTextSettings={storeTextSettings} onNumber={props.onNumber}/></SwiperSlide>
|
||||||
{numbers.map((number) => (
|
<SwiperSlide> <PageBullets f7router={props.f7router} storeFocusObjects={storeFocusObjects} storeTextSettings={storeTextSettings} onBullet={props.onBullet}/></SwiperSlide>
|
||||||
<li key={'number-' + number.type} data-type={number.type} className={number.type === typeNumbers ? 'active' : ''} onClick={() => {props.onNumber(number.type)}}>
|
</Swiper>
|
||||||
{number.thumb.length < 1 ?
|
|
||||||
<div className="thumb" style={{position: 'relative'}}>
|
|
||||||
<label>{_t.textNone}</label>
|
|
||||||
</div> :
|
|
||||||
<div className="thumb" style={{backgroundImage: `url('resources/img/numbers/${number.thumb}')`}}></div>
|
|
||||||
}
|
|
||||||
</li>
|
|
||||||
))}
|
|
||||||
</ul>
|
|
||||||
))}
|
|
||||||
</Page>
|
</Page>
|
||||||
)
|
)
|
||||||
};
|
}
|
||||||
|
|
||||||
const PageLineSpacing = props => {
|
const PageLineSpacing = props => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
|
@ -546,8 +578,7 @@ const PageTextFonts = inject("storeTextSettings", "storeFocusObjects")(observer(
|
||||||
const PageTextFontColor = inject("storeTextSettings", "storePalette", "storeFocusObjects")(observer(PageFontColor));
|
const PageTextFontColor = inject("storeTextSettings", "storePalette", "storeFocusObjects")(observer(PageFontColor));
|
||||||
const PageTextCustomFontColor = inject("storeTextSettings", "storePalette")(observer(PageCustomFontColor));
|
const PageTextCustomFontColor = inject("storeTextSettings", "storePalette")(observer(PageCustomFontColor));
|
||||||
const PageTextAddFormatting = inject("storeTextSettings", "storeFocusObjects")(observer(PageAdditionalFormatting));
|
const PageTextAddFormatting = inject("storeTextSettings", "storeFocusObjects")(observer(PageAdditionalFormatting));
|
||||||
const PageTextBullets = inject("storeTextSettings", "storeFocusObjects")(observer(PageBullets));
|
const PageTextBulletsAndNumbers = inject("storeTextSettings", "storeFocusObjects")(observer(PageBulletsAndNumbers));
|
||||||
const PageTextNumbers = inject("storeTextSettings", "storeFocusObjects")(observer(PageNumbers));
|
|
||||||
const PageTextLineSpacing = inject("storeTextSettings", "storeFocusObjects")(observer(PageLineSpacing));
|
const PageTextLineSpacing = inject("storeTextSettings", "storeFocusObjects")(observer(PageLineSpacing));
|
||||||
|
|
||||||
export {
|
export {
|
||||||
|
@ -556,7 +587,6 @@ export {
|
||||||
PageTextFontColor,
|
PageTextFontColor,
|
||||||
PageTextCustomFontColor,
|
PageTextCustomFontColor,
|
||||||
PageTextAddFormatting,
|
PageTextAddFormatting,
|
||||||
PageTextBullets,
|
PageTextBulletsAndNumbers,
|
||||||
PageTextNumbers,
|
|
||||||
PageTextLineSpacing
|
PageTextLineSpacing
|
||||||
};
|
};
|
Loading…
Reference in a new issue