File tree Expand file tree Collapse file tree 6 files changed +45
-1
lines changed Expand file tree Collapse file tree 6 files changed +45
-1
lines changed Original file line number Diff line number Diff line change 185
185
"title" : {
186
186
"type" : " string" ,
187
187
"description" : " A title that is displayed centered above this map."
188
+ },
189
+ "caption" : {
190
+ "type" : " string" ,
191
+ "description" : " Supporting text content for the map."
188
192
}
189
193
},
190
194
"required" : [" config" , " type" ]
Original file line number Diff line number Diff line change 192
192
"type" : " string" ,
193
193
"description" : " A title that is displayed centered above this map."
194
194
},
195
+ "caption" : {
196
+ "type" : " string" ,
197
+ "description" : " Supporting text content for the map."
198
+ },
195
199
"timeSlider" : {
196
200
"type" : " object" ,
197
201
"description" : " Configuration for a time slider on the map." ,
256
260
"customStyles" : {
257
261
"type" : " string" ,
258
262
"description" : " Additional CSS styles to apply to the panel."
263
+ },
264
+ "caption" : {
265
+ "type" : " string" ,
266
+ "description" : " Supporting text content for the chart."
259
267
}
260
268
},
261
269
"additionalProperties" : false ,
Original file line number Diff line number Diff line change 47
47
:configFileStructure =" configFileStructure"
48
48
:sourceCounts =" sourceCounts"
49
49
:lang =" lang"
50
+ :index =" index"
50
51
@edit =" editChart"
51
52
@delete =" $vfm.open(`${element.name}-${index}`)"
53
+ @captionEdit =" onChartsEdited"
52
54
></ChartPreview >
53
55
</template >
54
56
</draggable >
Original file line number Diff line number Diff line change 63
63
</div >
64
64
</button >
65
65
</div >
66
+ <div class =" flex items-center mt-2" >
67
+ <label :for =" 'chartPreviewCaption' + index" class =" font-bold"
68
+ >{{ $t('editor.image.label.caption') }}:
69
+ </label >
70
+ <input
71
+ :id =" 'chartPreviewCaption' + index"
72
+ class =" editor-input w-2/5 ml-2"
73
+ type =" text"
74
+ v-model =" chart.caption"
75
+ placeholder =" Add a caption"
76
+ @input =" $emit('captionEdit')"
77
+ />
78
+ </div >
66
79
</li >
67
80
</template >
68
81
@@ -92,6 +105,7 @@ export default class ChartPreviewV extends Vue {
92
105
@Prop () configFileStructure! : ConfigFileStructure ;
93
106
@Prop () sourceCounts! : SourceCounts ;
94
107
@Prop () lang! : string ;
108
+ @Prop () index! : number ;
95
109
96
110
loading = true ;
97
111
chartIdx = 0 ;
Original file line number Diff line number Diff line change 24
24
25
25
<div class =" mb-4" v-if =" usingTimeSlider" ></div >
26
26
27
+ <div class =" flex items-center w-full text-left mt-2" >
28
+ <label class =" editor-label text-label" for =" rampMapCaption" >
29
+ {{ $t('editor.image.label.caption') }}:</label
30
+ >
31
+ <input
32
+ id =" rampMapCaption"
33
+ class =" editor-input w-2/5"
34
+ type =" text"
35
+ v-model =" panel.caption"
36
+ placeholder =" Add a caption"
37
+ />
38
+ </div >
39
+
27
40
<div class =" ramp-editor mt-5" ref =" editor" style =" width : 70vw ; height : 80vh " ></div >
28
41
</div >
29
42
<vue-final-modal
44
57
:disabled =" timeSliderError"
45
58
@click =" saveTimeSlider"
46
59
>
47
- Done
60
+ {{ $t('editor.done') }}
48
61
</button >
49
62
</div >
50
63
</vue-final-modal >
Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ export interface MapPanel extends BasePanel {
183
183
title : string ;
184
184
scrollguard : boolean ;
185
185
customStyles ?: string ;
186
+ caption ?: string ;
186
187
}
187
188
export interface TimeSliderConfig {
188
189
range : number [ ] ;
@@ -252,6 +253,7 @@ export interface ChartPanel extends BasePanel {
252
253
name ?: string ;
253
254
options ?: DQVOptions ;
254
255
customStyles ?: string ;
256
+ caption ?: string ;
255
257
}
256
258
257
259
export interface ChartConfig {
@@ -260,6 +262,7 @@ export interface ChartConfig {
260
262
config ?: any ;
261
263
name ?: string ;
262
264
options ?: DQVOptions ;
265
+ caption ?: string ;
263
266
}
264
267
265
268
export interface ImageFile {
You can’t perform that action at this time.
0 commit comments