Skip to content

Commit 5c5a568

Browse files
committed
removed divider styles panel
1 parent 99b10bb commit 5c5a568

File tree

1 file changed

+18
-64
lines changed

1 file changed

+18
-64
lines changed

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

Lines changed: 18 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { DesignerToolbarSettings } from '@/interfaces/toolbarSettings';
22
import { FormLayout } from 'antd/lib/form/Form';
33
import { fontTypes, fontWeights, textAlign } from '../_settings/utils/font/utils';
4-
import { borderStyles, getBorderInputs, getCornerInputs } from '../_settings/utils/border/utils';
4+
import { getBorderInputs, getCornerInputs } from '../_settings/utils/border/utils';
55
import { nanoid } from '@/utils/uuid';
66
import { backgroundTypeOptions, positionOptions, repeatOptions, sizeOptions } from '../_settings/utils/background/utils';
77

@@ -160,7 +160,7 @@ export const getSettings = (data) => {
160160
.addSettingsInputRow({
161161
id: 'query-builder-s4gmBg31azZC0UjZjpfTm',
162162
parentId: 'pnl54bf6-f76d-4139-a850-c99bf06c8b69',
163-
inputs: [
163+
inputs: [
164164
{
165165
type: 'queryBuilder',
166166
id: 'query-builder-s4gmBg31azZC0UjZjpfTm',
@@ -174,7 +174,7 @@ export const getSettings = (data) => {
174174
],
175175
})
176176
.addSettingsInput({
177-
inputType: 'dropdown',
177+
inputType: 'dropdown',
178178
id: 'acb2d566-fe48-43bd-84e0-28b7103354c1',
179179
propertyName: 'valueFormat',
180180
parentId: 'pnl54bf6-f76d-4139-a850-c99bf06c8b69',
@@ -221,10 +221,10 @@ export const getSettings = (data) => {
221221
description: "Return value that will be stored as field value",
222222
},
223223
],
224-
})
224+
})
225225
.addSettingsInput({
226226
id: 'columns-s4gmBg31azZC0UjZjpfTm',
227-
inputType: 'columnsConfig',
227+
inputType: 'columnsConfig',
228228
propertyName: 'items',
229229
parentId: 'pn154bf6-f76d-4139-a850-c99bf06c8b69',
230230
label: 'Columns',
@@ -253,7 +253,7 @@ export const getSettings = (data) => {
253253
components: [...new DesignerToolbarSettings()
254254
.addSettingsInputRow({
255255
id: 'data-source-s4gmBg31azZC0UjZjpfTm',
256-
inputs: [
256+
inputs: [
257257
{
258258
type: 'textField',
259259
id: '4b3b0da0-f126-4e37-b5f5-568367dc008f',
@@ -283,7 +283,7 @@ export const getSettings = (data) => {
283283
})
284284
.addSettingsInputRow({
285285
id: 'buttons-s4gmBg31azZC0UjZjpfTm',
286-
inputs: [{
286+
inputs: [{
287287
id: nanoid(),
288288
propertyName: 'footerButtons',
289289
label: 'Buttons Type',
@@ -416,7 +416,7 @@ export const getSettings = (data) => {
416416
parentId: 'fontStylePnl',
417417
inline: true,
418418
propertyName: 'font',
419-
inputs: [
419+
inputs: [
420420
{
421421
type: 'dropdown',
422422
id: 'fontFamily-s4gmBg31azZC0UjZjpfTm',
@@ -481,7 +481,7 @@ export const getSettings = (data) => {
481481
id: 'dimensionsStyleRowWidth',
482482
parentId: 'dimensionsStylePnl',
483483
inline: true,
484-
inputs: [
484+
inputs: [
485485
{
486486
type: 'textField',
487487
id: 'width-s4gmBg31azZC0UjZjpfTm',
@@ -516,7 +516,7 @@ export const getSettings = (data) => {
516516
id: 'dimensionsStyleRowHeight',
517517
parentId: 'dimensionsStylePnl',
518518
inline: true,
519-
inputs: [
519+
inputs: [
520520
{
521521
type: 'textField',
522522
id: 'height-s4gmBg31azZC0UjZjpfTm',
@@ -611,7 +611,7 @@ export const getSettings = (data) => {
611611
jsSetting: false,
612612
}],
613613
hidden: { _code: 'return getSettingValue(data[`${contexts.canvasContext?.designerDevice || "desktop"}`]?.background?.type) !== "color";', _mode: 'code', _value: false } as any,
614-
})
614+
})
615615
.addSettingsInputRow({
616616
id: "backgroundStyle-gradientColors",
617617
parentId: "backgroundStylePnl",
@@ -625,7 +625,7 @@ export const getSettings = (data) => {
625625
],
626626
hidden: { _code: 'return getSettingValue(data[`${contexts.canvasContext?.designerDevice || "desktop"}`]?.background?.type) !== "gradient";', _mode: 'code', _value: false } as any,
627627
hideLabel: true,
628-
})
628+
})
629629
.addSettingsInputRow({
630630
id: "backgroundStyle-url",
631631
parentId: "backgroundStylePnl",
@@ -637,7 +637,7 @@ export const getSettings = (data) => {
637637
label: "URL",
638638
}],
639639
hidden: { _code: 'return getSettingValue(data[`${contexts.canvasContext?.designerDevice || "desktop"}`]?.background?.type) !== "url";', _mode: 'code', _value: false } as any,
640-
})
640+
})
641641
.addSettingsInputRow({
642642
id: "backgroundStyle-image",
643643
parentId: 'backgroundStylePnl',
@@ -649,12 +649,12 @@ export const getSettings = (data) => {
649649
jsSetting: false,
650650
}],
651651
hidden: { _code: 'return getSettingValue(data[`${contexts.canvasContext?.designerDevice || "desktop"}`]?.background?.type) !== "image";', _mode: 'code', _value: false } as any,
652-
})
652+
})
653653
.addSettingsInputRow({
654654
id: "backgroundStyleRow-storedFile",
655655
parentId: 'backgroundStylePnl',
656656
hidden: { _code: 'return getSettingValue(data[`${contexts.canvasContext?.designerDevice || "desktop"}`]?.background?.type) !== "storedFile";', _mode: 'code', _value: false } as any,
657-
inputs: [
657+
inputs: [
658658
{
659659
type: 'textField',
660660
id: 'backgroundStyle-storedFile',
@@ -694,7 +694,7 @@ export const getSettings = (data) => {
694694
.addSettingsInputRow({
695695
id: 'backgroundStyleRow-repeat',
696696
parentId: 'backgroundStyleRow',
697-
inputs: [{
697+
inputs: [{
698698
type: 'radio',
699699
id: 'backgroundStyleRow-repeat-radio',
700700
label: 'Repeat',
@@ -724,7 +724,7 @@ export const getSettings = (data) => {
724724
id: 'shadowStyleRow',
725725
parentId: 'shadowStylePnl',
726726
inline: true,
727-
inputs: [
727+
inputs: [
728728
{
729729
type: 'numberField',
730730
id: 'shadowStyleRow-offsetX',
@@ -806,7 +806,7 @@ export const getSettings = (data) => {
806806
id: 'stylePnl-M500-911MFR',
807807
components: [...new DesignerToolbarSettings()
808808
.addSettingsInput({
809-
id: 'custom-css-412c-8461-4c8d55e5c073',
809+
id: 'custom-css-412c-8461-4c8d55e5c073',
810810
inputType: 'codeEditor',
811811
propertyName: 'style',
812812
label: 'Style',
@@ -816,52 +816,6 @@ export const getSettings = (data) => {
816816
]
817817
}
818818
})
819-
.addCollapsiblePanel({
820-
id: 'entityPickerDividerCollapsiblePanel',
821-
propertyName: 'entityPickerDivider',
822-
label: 'Entity Picker Divider',
823-
labelAlign: 'right',
824-
ghost: true,
825-
content: {
826-
id: 'entityPickerDividerPnl',
827-
components: [...new DesignerToolbarSettings()
828-
.addSettingsInputRow({
829-
id: nanoid(),
830-
parentId: 'entityPickerDividerPnl',
831-
inline: true,
832-
readOnly: false,
833-
inputs: [
834-
{
835-
id: nanoid(),
836-
type: 'textField',
837-
label: "Width",
838-
hideLabel: true,
839-
propertyName: 'dividerWidth',
840-
},
841-
{
842-
id: nanoid(),
843-
label: "Style",
844-
propertyName: 'dividerStyle',
845-
type: "dropdown",
846-
hideLabel: true,
847-
width: 60,
848-
readOnly: { _code: 'return getSettingValue(data?.readOnly);', _mode: 'code', _value: false } as any,
849-
dropdownOptions: borderStyles,
850-
},
851-
{
852-
id: nanoid(),
853-
label: `Color`,
854-
propertyName: 'dividerColor',
855-
type: "colorPicker",
856-
readOnly: { _code: 'return getSettingValue(data?.readOnly);', _mode: 'code', _value: false } as any,
857-
hideLabel: true,
858-
}
859-
]
860-
})
861-
.toJson()
862-
]
863-
}
864-
})
865819
.toJson()]
866820
}).toJson()]
867821
},

0 commit comments

Comments
 (0)