@@ -5,7 +5,7 @@ import {SlotUtils} from '../../../utils/editor/slot.utils';
55
66@Component ( {
77 tag : 'app-slot-type' ,
8- styleUrl : 'app-slot-type.scss'
8+ styleUrl : 'app-slot-type.scss' ,
99} )
1010export class AppSlideAdd {
1111 @Element ( ) el : HTMLElement ;
@@ -68,14 +68,14 @@ export class AppSlideAdd {
6868
6969 private async closePopover ( type ?: SlotType ) {
7070 await ( this . el . closest ( 'ion-popover' ) as HTMLIonPopoverElement ) . dismiss ( {
71- type : this . currentType !== type ? type : null
71+ type : this . currentType !== type ? type : null ,
7272 } ) ;
7373 }
7474
7575 render ( ) {
7676 return [
7777 < ion-toolbar >
78- < h2 > Toggle section </ h2 >
78+ < h2 > Transform element </ h2 >
7979 < ion-router-link slot = "end" onClick = { ( ) => this . closePopover ( ) } >
8080 < ion-icon aria-label = "Close" src = "/assets/icons/ionicons/close.svg" > </ ion-icon >
8181 </ ion-router-link >
@@ -84,26 +84,36 @@ export class AppSlideAdd {
8484 < ion-list >
8585 < a onClick = { ( ) => this . closePopover ( SlotType . H1 ) } class = { this . currentType === SlotType . H1 ? 'current' : '' } >
8686 < ion-item >
87+ < ion-icon name = "text-outline" slot = "start" > </ ion-icon >
8788 < h1 > Huge title</ h1 >
8889 </ ion-item >
8990 </ a >
9091 < a onClick = { ( ) => this . closePopover ( SlotType . H2 ) } class = { this . currentType === SlotType . H2 ? 'current' : '' } >
9192 < ion-item >
93+ < span class = "placeholder" slot = "start" >
94+
95+ </ span >
9296 < h2 > Large title</ h2 >
9397 </ ion-item >
9498 </ a >
9599 < a onClick = { ( ) => this . closePopover ( SlotType . H3 ) } class = { this . currentType === SlotType . H3 ? 'current' : '' } >
96100 < ion-item >
101+ < span class = "placeholder" slot = "start" >
102+
103+ </ span >
97104 < h3 > Small title</ h3 >
98105 </ ion-item >
99106 </ a >
100107 < a onClick = { ( ) => this . closePopover ( SlotType . SECTION ) } class = { this . currentType === SlotType . SECTION ? 'current' : '' } >
101108 < ion-item >
109+ < span class = "placeholder" slot = "start" >
110+
111+ </ span >
102112 < p > Paragraph</ p >
103113 </ ion-item >
104114 </ a >
105115 { this . renderComplexTypes ( ) }
106- </ ion-list >
116+ </ ion-list > ,
107117 ] ;
108118 }
109119
@@ -115,24 +125,28 @@ export class AppSlideAdd {
115125 return [
116126 < a onClick = { ( ) => this . closePopover ( SlotType . OL ) } class = { this . currentType === SlotType . OL ? 'current' : '' } >
117127 < ion-item >
118- < p > List</ p >
128+ < ion-icon src = "/assets/icons/ionicons/list.svg" slot = "start" > </ ion-icon >
129+ < ion-label > List</ ion-label >
119130 </ ion-item >
120131 </ a > ,
121132 < a onClick = { ( ) => this . closePopover ( SlotType . IMG ) } class = { this . currentType === SlotType . IMG ? 'current' : '' } >
122133 < ion-item >
123- < p > Image</ p >
134+ < ion-icon src = "/assets/icons/ionicons/images.svg" slot = "start" > </ ion-icon >
135+ < ion-label > Image</ ion-label >
124136 </ ion-item >
125137 </ a > ,
126138 < a onClick = { ( ) => this . closePopover ( SlotType . CODE ) } class = { this . currentType === SlotType . CODE ? 'current' : '' } >
127139 < ion-item >
128- < p > Code</ p >
140+ < ion-icon src = "/assets/icons/ionicons/code.svg" slot = "start" > </ ion-icon >
141+ < ion-label > Code</ ion-label >
129142 </ ion-item >
130143 </ a > ,
131144 < a onClick = { ( ) => this . closePopover ( SlotType . MATH ) } class = { this . currentType === SlotType . MATH ? 'current' : '' } >
132145 < ion-item >
133- < p > Math</ p >
146+ < ion-icon src = "/assets/icons/math.svg" slot = "start" > </ ion-icon >
147+ < ion-label > Math</ ion-label >
134148 </ ion-item >
135- </ a >
149+ </ a > ,
136150 ] ;
137151 }
138152}
0 commit comments