PromucFlow_constructor/app/client/cypress/fixtures/listdsl.json
ashit-rath b9ed9e74e8
fix: List widget inconsistent pageSize value with the number of item shown in the list. (#11355)
* fix - List widget inconsistent pageSize value

* consider data list length to calculate average gap

* update listdsl for List_spec

* minor change

* fix this.props.children mutation

* fix gridGap calculation

* minor spec change

* update listwidgetdsl.json

* reverted dsl update

* minor test dsl update

* minor averageGridGap calc fix

* minor change

* updated List_spec

* minor change
2022-03-24 12:41:33 +05:30

325 lines
16 KiB
JSON

{
"dsl": {
"widgetName": "MainContainer",
"backgroundColor": "none",
"rightColumn": 778,
"snapColumns": 64,
"detachFromLayout": true,
"widgetId": "0",
"topRow": 0,
"bottomRow": 1120,
"containerStyle": "none",
"snapRows": 125,
"parentRowSpace": 1,
"type": "CANVAS_WIDGET",
"canExtend": true,
"version": 52,
"minHeight": 1550,
"parentColumnSpace": 1,
"dynamicTriggerPathList": [],
"dynamicBindingPathList": [],
"leftColumn": 0,
"children": [
{
"template": {
"Text1": {
"isVisible": true,
"text": "Label",
"fontSize": "PARAGRAPH",
"fontStyle": "BOLD",
"textAlign": "LEFT",
"textColor": "#231F20",
"truncateButtonColor": "#FFC13D",
"widgetName": "Text1",
"shouldScroll": false,
"shouldTruncate": false,
"version": 1,
"animateLoading": true,
"type": "TEXT_WIDGET",
"hideCard": false,
"displayName": "Text",
"key": "e9bpznyucj",
"iconSVG": "/static/media/icon.97c59b52.svg",
"textStyle": "HEADING",
"widgetId": "rz3yq5hf7s",
"renderMode": "CANVAS",
"isLoading": false,
"leftColumn": 16,
"rightColumn": 28,
"topRow": 0,
"bottomRow": 4,
"parentId": "y4cy49e4l1"
},
"Button1": {
"isVisible": true,
"animateLoading": true,
"text": "Submit",
"buttonColor": "#03B365",
"buttonVariant": "PRIMARY",
"placement": "CENTER",
"widgetName": "Button1",
"isDisabled": false,
"isDefaultClickDisabled": true,
"recaptchaType": "V3",
"version": 1,
"type": "BUTTON_WIDGET",
"hideCard": false,
"displayName": "Button",
"key": "48eoz8tblb",
"iconSVG": "/static/media/icon.cca02633.svg",
"widgetId": "lwdh6n12xy",
"renderMode": "CANVAS",
"isLoading": false,
"parentColumnSpace": 4.05078125,
"parentRowSpace": 10,
"leftColumn": 34,
"rightColumn": 50,
"topRow": 1,
"bottomRow": 5,
"parentId": "y4cy49e4l1"
}
},
"widgetName": "List1",
"listData": "[\n {\n \"id\": 1,\n \"email\": \"michael.lawson@reqres.in\",\n \"first_name\": \"Michael\",\n \"last_name\": \"Lawson\",\n \"avatar\": \"https://reqres.in/img/faces/7-image.jpg\"\n },\n {\n \"id\": 2,\n \"email\": \"lindsay.ferguson@reqres.in\",\n \"first_name\": \"Lindsay\",\n \"last_name\": \"Ferguson\",\n \"avatar\": \"https://reqres.in/img/faces/8-image.jpg\"\n },\n {\n \"id\": 3,\n \"email\": \"brock.lesnar@reqres.in\",\n \"first_name\": \"Brock\",\n \"last_name\": \"Lesnar\",\n \"avatar\": \"https://reqres.in/img/faces/8-image.jpg\"\n },\n {\n \"id\": 4,\n \"email\": \"dwayne.jhonson@reqres.in\",\n \"first_name\": \"Dwayne\",\n \"last_name\": \"Johnson\",\n \"avatar\": \"https://reqres.in/img/faces/8-image.jpg\"\n }\n]",
"isCanvas": true,
"displayName": "List",
"iconSVG": "/static/media/icon.9925ee17.svg",
"topRow": 0,
"bottomRow": 40,
"parentRowSpace": 10,
"type": "LIST_WIDGET",
"hideCard": false,
"gridGap": 0,
"animateLoading": true,
"parentColumnSpace": 11.96875,
"dynamicTriggerPathList": [],
"leftColumn": 20,
"dynamicBindingPathList": [],
"gridType": "vertical",
"enhancements": true,
"children": [
{
"widgetName": "Canvas1",
"displayName": "Canvas",
"topRow": 0,
"bottomRow": 400,
"parentRowSpace": 1,
"type": "CANVAS_WIDGET",
"canExtend": false,
"hideCard": true,
"dropDisabled": true,
"openParentPropertyPane": true,
"minHeight": 400,
"noPad": true,
"parentColumnSpace": 1,
"leftColumn": 0,
"children": [
{
"boxShadow": "NONE",
"widgetName": "Container1",
"borderColor": "transparent",
"disallowCopy": true,
"isCanvas": true,
"displayName": "Container",
"iconSVG": "/static/media/icon.1977dca3.svg",
"topRow": 0,
"bottomRow": 12,
"dragDisabled": true,
"type": "CONTAINER_WIDGET",
"hideCard": false,
"openParentPropertyPane": true,
"isDeletable": false,
"animateLoading": true,
"leftColumn": 0,
"children": [
{
"widgetName": "Canvas2",
"detachFromLayout": true,
"displayName": "Canvas",
"widgetId": "y4cy49e4l1",
"containerStyle": "none",
"topRow": 0,
"bottomRow": 70,
"parentRowSpace": 1,
"isVisible": true,
"type": "CANVAS_WIDGET",
"canExtend": false,
"version": 1,
"hideCard": true,
"parentId": "s4x8lq7c32",
"renderMode": "CANVAS",
"isLoading": false,
"parentColumnSpace": 1,
"leftColumn": 0,
"children": [
{
"widgetName": "Text1",
"displayName": "Text",
"iconSVG": "/static/media/icon.97c59b52.svg",
"topRow": 1,
"bottomRow": 5,
"type": "TEXT_WIDGET",
"hideCard": false,
"animateLoading": true,
"dynamicTriggerPathList": [],
"dynamicBindingPathList": [],
"leftColumn": 2,
"shouldTruncate": false,
"truncateButtonColor": "#FFC13D",
"text": "Label",
"key": "e9bpznyucj",
"rightColumn": 29,
"textAlign": "LEFT",
"widgetId": "rz3yq5hf7s",
"logBlackList": {
"isVisible": true,
"text": true,
"fontSize": true,
"fontStyle": true,
"textAlign": true,
"textColor": true,
"truncateButtonColor": true,
"widgetName": true,
"shouldScroll": true,
"shouldTruncate": true,
"version": true,
"animateLoading": true,
"type": true,
"hideCard": true,
"displayName": true,
"key": true,
"iconSVG": true,
"isCanvas": true,
"textStyle": true,
"dynamicBindingPathList": true,
"dynamicTriggerPathList": true,
"minHeight": true,
"widgetId": true,
"renderMode": true,
"isLoading": true,
"parentColumnSpace": true,
"parentRowSpace": true,
"leftColumn": true,
"rightColumn": true,
"topRow": true,
"bottomRow": true,
"parentId": true
},
"isVisible": true,
"fontStyle": "BOLD",
"textColor": "#231F20",
"shouldScroll": false,
"version": 1,
"parentId": "y4cy49e4l1",
"renderMode": "CANVAS",
"isLoading": false,
"fontSize": "PARAGRAPH",
"textStyle": "HEADING"
},
{
"widgetName": "Button1",
"buttonColor": "#03B365",
"displayName": "Button",
"iconSVG": "/static/media/icon.cca02633.svg",
"topRow": 1,
"bottomRow": 5,
"parentRowSpace": 10,
"type": "BUTTON_WIDGET",
"hideCard": false,
"animateLoading": true,
"parentColumnSpace": 4.05078125,
"leftColumn": 34,
"text": "Submit",
"isDisabled": false,
"key": "48eoz8tblb",
"rightColumn": 53,
"isDefaultClickDisabled": true,
"widgetId": "lwdh6n12xy",
"logBlackList": {
"isVisible": true,
"animateLoading": true,
"text": true,
"buttonColor": true,
"buttonVariant": true,
"placement": true,
"widgetName": true,
"isDisabled": true,
"isDefaultClickDisabled": true,
"recaptchaType": true,
"version": true,
"type": true,
"hideCard": true,
"displayName": true,
"key": true,
"iconSVG": true,
"isCanvas": true,
"minHeight": true,
"widgetId": true,
"renderMode": true,
"isLoading": true,
"parentColumnSpace": true,
"parentRowSpace": true,
"leftColumn": true,
"rightColumn": true,
"topRow": true,
"bottomRow": true,
"parentId": true
},
"isVisible": true,
"recaptchaType": "V3",
"version": 1,
"parentId": "y4cy49e4l1",
"renderMode": "CANVAS",
"isLoading": false,
"buttonVariant": "PRIMARY",
"placement": "CENTER"
}
],
"key": "oiyh0dnja0"
}
],
"borderWidth": "0",
"key": "5veqdwa6js",
"disablePropertyPane": true,
"backgroundColor": "white",
"rightColumn": 64,
"widgetId": "s4x8lq7c32",
"containerStyle": "card",
"isVisible": true,
"version": 1,
"parentId": "9qa052pga4",
"renderMode": "CANVAS",
"isLoading": false,
"borderRadius": "0"
}
],
"key": "oiyh0dnja0",
"rightColumn": 287.25,
"detachFromLayout": true,
"widgetId": "9qa052pga4",
"containerStyle": "none",
"isVisible": true,
"version": 1,
"parentId": "0s7k5dgj77",
"renderMode": "CANVAS",
"isLoading": false
}
],
"privateWidgets": {
"Text1": true,
"Button1": true
},
"key": "l1iovfl7pr",
"backgroundColor": "transparent",
"rightColumn": 44,
"itemBackgroundColor": "#FFFFFF",
"widgetId": "0s7k5dgj77",
"isVisible": true,
"parentId": "0",
"renderMode": "CANVAS",
"isLoading": false
}
]
}
}