Skip to content

Commit 88960e8

Browse files
chore: adding additional properties
1 parent ee06057 commit 88960e8

File tree

1 file changed

+103
-11
lines changed

1 file changed

+103
-11
lines changed

shesha-reactjs/src/designer-components/text/settingsForm.ts

Lines changed: 103 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,98 @@ export const getSettings = (data: any) => {
213213
},
214214
],
215215
})
216+
.addSettingsInputRow({
217+
id: 'switeches-s4gmBg31azZC0UjZjpfTm',
218+
parentId: 's4gmBg31azZC0UjZjpfTm',
219+
readOnly: { _code: 'return getSettingValue(data?.readOnly);', _mode: 'code', _value: false } as any,
220+
inputs: [
221+
{
222+
type: 'switch',
223+
id: 'italic-s4gmBg31azZC0UjZjpfTm',
224+
propertyName: 'italic',
225+
label: 'Italic',
226+
size: 'small',
227+
jsSetting: true,
228+
},
229+
{
230+
type: 'switch',
231+
id: 'code-s4gmBg31azZC0UjZjpfTm',
232+
propertyName: 'code',
233+
label: 'Code',
234+
size: 'small',
235+
jsSetting: true,
236+
},
237+
],
238+
})
239+
.addSettingsInputRow({
240+
id: 'switeches-s4gmBg31azZC0UjZjpfTm',
241+
parentId: 's4gmBg31azZC0UjZjpfTm',
242+
readOnly: { _code: 'return getSettingValue(data?.readOnly);', _mode: 'code', _value: false } as any,
243+
inputs: [
244+
{
245+
type: 'switch',
246+
id: 'delete-s4gmBg31azZC0UjZjpfTm',
247+
propertyName: 'delete',
248+
label: 'Strikethrough',
249+
size: 'small',
250+
jsSetting: true,
251+
},
252+
{
253+
type: 'switch',
254+
id: 'underline-s4gmBg31azZC0UjZjpfTm',
255+
propertyName: 'underline',
256+
label: 'Underline',
257+
size: 'small',
258+
jsSetting: true,
259+
},
260+
],
261+
})
262+
.addSettingsInputRow({
263+
id: 'switeches-s4gmBg31azZC0UjZjpfTm',
264+
parentId: 's4gmBg31azZC0UjZjpfTm',
265+
readOnly: { _code: 'return getSettingValue(data?.readOnly);', _mode: 'code', _value: false } as any,
266+
inputs: [
267+
{
268+
type: 'switch',
269+
id: 'strong-s4gmBg31azZC0UjZjpfTm',
270+
propertyName: 'ellipsis',
271+
label: 'Ellipsis',
272+
size: 'small',
273+
jsSetting: true,
274+
},
275+
{
276+
type: 'switch',
277+
id: 'mark-s4gmBg31azZC0UjZjpfTm',
278+
propertyName: 'mark',
279+
label: 'Mark',
280+
size: 'small',
281+
jsSetting: true,
282+
},
283+
],
284+
})
285+
.addSettingsInputRow({
286+
id: 'switeches-s4gmBg31azZC0UjZjpfTm',
287+
parentId: 's4gmBg31azZC0UjZjpfTm',
288+
readOnly: { _code: 'return getSettingValue(data?.readOnly);', _mode: 'code', _value: false } as any,
289+
inputs: [
290+
{
291+
type: 'switch',
292+
id: 'keyboard-s4gmBg31azZC0UjZjpfTm',
293+
propertyName: 'keyboard',
294+
label: 'Keyboard',
295+
size: 'small',
296+
jsSetting: true,
297+
},
298+
{
299+
type: 'switch',
300+
id: 'copyable-s4gmBg31azZC0UjZjpfTm',
301+
propertyName: 'copyable',
302+
label: 'Copyable',
303+
size: 'small',
304+
jsSetting: true,
305+
},
306+
],
307+
})
216308
.toJson(),
217309
],
218310
},
@@ -401,7 +493,7 @@ export const getSettings = (data: any) => {
401493
hideLabel: true,
402494
width: 60,
403495
dropdownOptions: textAlign,
404-
},
496+
},
405497
],
406498
})
407499
.toJson(),
@@ -826,10 +918,10 @@ export const getSettings = (data: any) => {
826918
hideLabel: true,
827919
tooltip: 'Offset X',
828920
width: 80,
829-
icon: "offsetHorizontalIcon",
921+
icon: 'offsetHorizontalIcon',
830922
propertyName: 'shadow.offsetX',
831-
},
832-
{
923+
},
924+
{
833925
type: 'numberField',
834926
id: 'shadowStyleRow-offsetY',
835927
label: 'Offset Y',
@@ -838,8 +930,8 @@ export const getSettings = (data: any) => {
838930
width: 80,
839931
icon: 'offsetVerticalIcon',
840932
propertyName: 'shadow.offsetY',
841-
},
842-
{
933+
},
934+
{
843935
type: 'numberField',
844936
id: 'shadowStyleRow-blurRadius',
845937
label: 'Blur',
@@ -848,8 +940,8 @@ export const getSettings = (data: any) => {
848940
width: 80,
849941
icon: 'blurIcon',
850942
propertyName: 'shadow.blurRadius',
851-
},
852-
{
943+
},
944+
{
853945
type: 'numberField',
854946
id: 'shadowStyleRow-spreadRadius',
855947
label: 'Spread',
@@ -858,14 +950,14 @@ export const getSettings = (data: any) => {
858950
width: 80,
859951
icon: 'spreadIcon',
860952
propertyName: 'shadow.spreadRadius',
861-
},
862-
{
953+
},
954+
{
863955
type: 'colorPicker',
864956
id: 'shadowStyleRow-color',
865957
label: 'Color',
866958
hideLabel: true,
867959
propertyName: 'shadow.color',
868-
},
960+
},
869961
],
870962
})
871963
.toJson(),

0 commit comments

Comments
 (0)