{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: .forceListviewChartsSetupPage",
            "Represents the force:listviewChartsSetupPage Aura component.",
            "Provides chart setup functionality including name, type, aggregate settings, and grouping options."
        ]
    },
    "elements": [
        {
            "type": "utam-lightning/pageObjects/input",
            "name": "chartNameInput",
            "selector": {
                "css": "lightning-input.chartNameInputBox"
            },
            "public": true
        },
        {
            "type": "utam-lightning/pageObjects/combobox",
            "name": "chartType",
            "public": true,
            "selector": {
                "css": ".chartTypeComboBox lightning-combobox"
            }
        },
        {
            "type": "utam-lightning/pageObjects/combobox",
            "name": "aggregateType",
            "public": true,
            "selector": {
                "css": ".aggregateTypeComboBox lightning-combobox"
            }
        },
        {
            "type": "utam-lightning/pageObjects/combobox",
            "name": "aggregateField",
            "public": true,
            "selector": {
                "css": ".aggregateFieldComboBox lightning-combobox"
            }
        },
        {
            "type": "utam-lightning/pageObjects/combobox",
            "name": "groupingField",
            "public": true,
            "selector": {
                "css": ".groupingFieldComboBox lightning-combobox"
            }
        }
    ],
    "methods": [
        {
            "name": "getChartNameValidationError",
            "description": {
                "text": [
                    "Gets the first chart name validation error message if any exists"
                ],
                "return": "the validation error message or null if none"
            },
            "compose": [
                {
                    "element": "chartNameInput",
                    "apply": "getErrorText",
                    "returnType": "string"
                }
            ]
        },
        {
            "name": "getGroupingFieldValidationError",
            "description": {
                "text": [
                    "Gets the first grouping field validation error message if any exists"
                ],
                "return": "the validation error message or null if none"
            },
            "compose": [
                {
                    "element": "groupingField",
                    "apply": "getErrorMessage",
                    "returnType": "string"
                }
            ]
        }
    ]
}