Skip to content

Commit 9a6bd6d

Browse files
committed
Merge branch 'main' into thulasizwe/en/button-group
2 parents 3682836 + 730a5b0 commit 9a6bd6d

File tree

11 files changed

+1160
-1013
lines changed

11 files changed

+1160
-1013
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ export const getSettings = (data: any) => {
118118
value: 'referenceList',
119119
},
120120
{
121-
label: 'Api url',
121+
label: 'Api URL',
122122
value: 'url',
123123
},
124124
],

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

Lines changed: 338 additions & 166 deletions
Large diffs are not rendered by default.

shesha-reactjs/src/designer-components/dataTable/tableContext/settingsForm.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,8 @@ export const getSettings = (data: any) => {
399399
version: 0,
400400
modelType: "{{data.entityType}}",
401401
validate: {},
402-
settingsValidationErrors: []
402+
settingsValidationErrors: [],
403+
jsSetting: true,
403404
}
404405
]
405406
})
@@ -429,6 +430,7 @@ export const getSettings = (data: any) => {
429430
version: 0,
430431
validate: {},
431432
settingsValidationErrors: [],
433+
jsSetting: true,
432434
modelType: "{{data.entityType}}"
433435
}
434436
]

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

Lines changed: 219 additions & 202 deletions
Large diffs are not rendered by default.

shesha-reactjs/src/designer-components/inputComponent/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ export const InputComponent: FC<Omit<ISettingsInputProps, 'hidden'>> = (props) =
334334
variant={variant}
335335
placeholder={placeholder}
336336
suffix={<span style={{ height: '20px' }}>{iconElement(icon, null, tooltip, {}, styles)}</span>}
337-
value={value?.value ? value.value : value || defaultValue}
337+
value={value}
338338
type={textType}
339339
/>;
340340
}

shesha-reactjs/src/designer-components/link/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ const LinkComponent: IToolboxComponent<ILinkProps> = {
114114
return containerHolder();
115115
}
116116
return (
117-
<a href={href} target={target} className="sha-link" style={getStyle(style, data)}>
117+
<a href={href} target={target} className="sha-link">
118118
{containerHolder()}
119119
</a>
120120
);

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,17 @@ export const getSettings = (data: any) => {
372372
},
373373
],
374374
},
375+
],
376+
})
377+
.addSettingsInputRow({
378+
id: 'type-default-value-s4gmBg31azZC0UjZjpfTm',
379+
parentId: 's4gmBg31azZC0UjZjpfTm',
380+
hidden: {
381+
_code: 'return !getSettingValue(data?.hasChildren);',
382+
_mode: 'code',
383+
_value: false,
384+
} as any,
385+
inputs: [
375386
{
376387
type: 'dropdown',
377388
id: 'justifyItems-s4gmBg31azZC0UjZjpfTm',
@@ -450,17 +461,6 @@ export const getSettings = (data: any) => {
450461
},
451462
],
452463
},
453-
],
454-
})
455-
.addSettingsInputRow({
456-
id: 'type-default-value-s4gmBg31azZC0UjZjpfTm',
457-
parentId: 's4gmBg31azZC0UjZjpfTm',
458-
hidden: {
459-
_code: 'return !getSettingValue(data?.hasChildren);',
460-
_mode: 'code',
461-
_value: false,
462-
} as any,
463-
inputs: [
464464
{
465465
type: 'textField',
466466
id: 'customCss-s4gmBg31azZC0UjZjpfTm',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export const getSettings = (data: any) => {
104104
value: 'values',
105105
},
106106
{
107-
label: 'Reference List',
107+
label: 'Reference list',
108108
value: 'referenceList',
109109
},
110110
{

0 commit comments

Comments
 (0)