@aurahelper/xml-definitions
Version:
Powerfull Libraries to get the XML Definitions of ALL XML Salesforce Metadata Files. Support All API Versions up to API 53.0. You can get the definition of one or more XML files for a specific version of Salesforce. For Example: You can get the XML Defini
251 lines • 13.4 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.dashboardComponent = void 0;
var core_1 = require("@aurahelper/core");
function dashboardComponent(type, dashboardComponentName, dashboardComponentLabel, minApi) {
return new type(dashboardComponentName, dashboardComponentLabel)
.setMinApi(minApi)
.setEditable()
.setRequired()
.setFieldKey('title')
.setSortOrder(undefined)
.addField('chartAxisRange', new core_1.EnumXMLField('chartAxisRange', 'Chart Axis Range')
.setEditable()
.addEnumValue('Auto', 'auto')
.addEnumValue('Manual', 'manual'))
.addField('chartAxisRangeMax', new core_1.DoubleXMLField('chartAxisRangeMax', 'Chart Axis Range Max')
.setEditable())
.addField('chartAxisRangeMin', new core_1.DoubleXMLField('chartAxisRangeMin', 'Chart Axis Range Min')
.setEditable())
.addField('chartSummary', new core_1.ObjectXMLField('chartSummary', 'ChartSummary')
.setEditable()
.setFieldKey('column')
.setSortOrder(undefined)
.addField('aggregateType', new core_1.EnumXMLField('aggregateType', 'Aggregate Type')
.setEditable()
.setRequired()
.setDefaultValue('None')
.setEnumValues(core_1.DataValues.REPORT_SUMMARY_TYPES))
.addField('axisBinding', new core_1.EnumXMLField('axisBinding', 'Axis Binding')
.setEditable()
.addEnumValue('x', 'x')
.addEnumValue('y', 'y')
.addEnumValue('y2', 'y2'))
.addField('column', new core_1.StringXMLField('column', 'Column')
.setEditable()
.setRequired()
.setMetadataType(core_1.MetadataTypes.CUSTOM_FIELD)))
.addField('componentType', new core_1.EnumXMLField('componentType', 'Component Type')
.setEditable()
.setRequired()
.addEnumValue('Bar', 'Bar')
.addEnumValue('Bar Grouped', 'BarGrouped')
.addEnumValue('Bar Stacked', 'BarStacked')
.addEnumValue('Bar Stacked 100', 'BarStacked100')
.addEnumValue('Column', 'Column')
.addEnumValue('Column Grouped', 'ColumnGrouped')
.addEnumValue('Column Line', 'ColumnLine')
.addEnumValue('Column Line Grouped', 'ColumnLineGrouped')
.addEnumValue('Column Line Stacked', 'ColumnLineStacked')
.addEnumValue('Column Line Stacked 100', 'ColumnLineStacked100')
.addEnumValue('Column Stacked', 'ColumnStacked')
.addEnumValue('Column Stacked 100', 'ColumnStacked100')
.addEnumValue('Donut', 'Donut')
.addEnumValue('Flex Table', 'FlexTable')
.addEnumValue('Funnel', 'Funnel')
.addEnumValue('Gauge', 'Gauge')
.addEnumValue('Line', 'Line')
.addEnumValue('Line Cumulative', 'lineCumulative')
.addEnumValue('Line Grouped', 'LineGrouped')
.addEnumValue('Line Grouped Cumulative', 'lineGroupedCumulative')
.addEnumValue('Metric', 'Metric')
.addEnumValue('Pie', 'Pie')
.addEnumValue('Scatter', 'Scatter')
.addEnumValue('Scatter Grouped', 'ScatterGrouped')
.addEnumValue('S-Control', 'Scontrol')
.addEnumValue('Table', 'Table'))
.addField('dashboardFilterColumns', new core_1.ArrayXMLField('dashboardFilterColumns', 'Dashboard Filter Columns')
.setMinApi(23)
.setEditable()
.setFieldKey('column')
.addField('column', new core_1.StringXMLField('column', 'Column')
.setEditable()
.setRequired()))
.addField('dashboardTableColumn', new core_1.ArrayXMLField('dashboardTableColumn', 'Dashboard Table Column')
.setMinApi(14)
.setEditable()
.setFieldKey('column')
.addField('aggregateType', new core_1.EnumXMLField('aggregateType', 'Aggregate Type')
.setEditable()
.setRequired()
.setDefaultValue('None')
.setEnumValues(core_1.DataValues.REPORT_SUMMARY_TYPES))
.addField('column', new core_1.StringXMLField('column', 'Column')
.setEditable()
.setRequired())
.addField('showTotal', new core_1.BooleanXMLField('showTotal', 'Show Total')
.setMinApi(19)
.setEditable())
.addField('sortBy', new core_1.EnumXMLField('sortBy', 'Sort By')
.setEditable()
.addEnumValue('Row Label Ascending', 'RowLabelAscending')
.addEnumValue('Row Label Descending', 'RowLabelDescending')
.addEnumValue('Row Value Ascending', 'RowValueAscending')
.addEnumValue('Row Value Descending', 'RowValueDescending')))
.addField('displayUnits', new core_1.EnumXMLField('displayUnits', 'DisplayUnits')
.setEditable()
.addEnumValue('Auto', 'Auto')
.addEnumValue('Integer', 'Integer')
.addEnumValue('Hundreds', 'Hundreds')
.addEnumValue('Thousands', 'Thousands')
.addEnumValue('Millions', 'Millions')
.addEnumValue('Billions', 'Billions')
.addEnumValue('Trillions', 'Trillions'))
.addField('drillDownUrl', new core_1.StringXMLField('drillDownUrl', 'Drill Down Url')
.setEditable()
.setRequired())
.addField('drillEnabled', new core_1.BooleanXMLField('drillEnabled', 'Drill Enabled')
.setMinApi(17)
.setEditable())
.addField('drillToDetailEnabled', new core_1.BooleanXMLField('drillToDetailEnabled', 'Drill To Detail Enabled')
.setMinApi(20)
.setEditable())
.addField('enableHover', new core_1.BooleanXMLField('enableHover', 'Enable Hover')
.setMinApi(17)
.setEditable())
.addField('expandOthers', new core_1.BooleanXMLField('expandOthers', 'Expand Others')
.setMinApi(17)
.setEditable())
.addField('flexComponentProperties', new core_1.ObjectXMLField('flexComponentProperties', 'Flex Component Properties')
.setMinApi(41)
.setEditable()
.setFieldKey('flexTableColumn')
.setSortOrder(undefined)
.addField('flexTableColumn', new core_1.ObjectXMLField('flexTableColumn', 'Flex Table Column')
.setEditable()
.setFieldKey('type')
.setSortOrder(undefined)
.addField('breakPoint1', new core_1.DoubleXMLField('breakPoint1', 'Break Point 1')
.setEditable())
.addField('breakPoint2', new core_1.DoubleXMLField('breakPoint2', 'Break Point 2')
.setEditable())
.addField('breakPointOrder', new core_1.DoubleXMLField('breakPointOrder', 'Break Point Order')
.setEditable())
.addField('highRangeColor', new core_1.IntegerXMLField('highRangeColor', 'High Range Color')
.setEditable())
.addField('lowRangeColor', new core_1.IntegerXMLField('lowRangeColor', 'Low Range Color')
.setEditable())
.addField('midRangeColor', new core_1.IntegerXMLField('midRangeColor', 'Middle Range Color')
.setEditable())
.addField('reportColumn', new core_1.StringXMLField('reportColumn', 'Report Column')
.setEditable()
.setRequired())
.addField('showTotal', new core_1.BooleanXMLField('showTotal', 'Show Total')
.setEditable())
.addField('type', new core_1.EnumXMLField('type', 'Type')
.setEditable()
.addEnumValue('Details', 'Details')
.addEnumValue('Aggregates', 'Aggregates')
.addEnumValue('Grouping', 'Grouping')))
.addField('flexTableSortInfo', new core_1.ObjectXMLField('flexTableSortInfo', 'Flex Table Sort Info')
.setEditable()
.setFieldKey('ComponentSortColumn')
.setSortOrder(undefined)
.addField('ComponentSortColumn', new core_1.StringXMLField('ComponentSortColumn', 'Component Sort Column')
.setEditable())
.addField('sortOrder', new core_1.EnumXMLField('sortOrder', 'Sort Order')
.setEditable()
.addEnumValue('Ascending', 'Ascending')
.addEnumValue('Descending', 'Descending')))
.addField('hideChatterPhotos', new core_1.BooleanXMLField('hideChatterPhotos', 'Fide Chatter Photos')
.setEditable())
.addField('decimalPrecision', new core_1.IntegerXMLField('decimalPrecision', 'Decimal Precision')
.setEditable()))
.addField('footer', new core_1.StringXMLField('footer', 'Footer')
.setEditable()
.setMaxLength(255))
.addField('gaugeMax', new core_1.DoubleXMLField('gaugeMax', 'Gauge Max')
.setEditable())
.addField('gaugeMin', new core_1.DoubleXMLField('gaugeMin', 'Gauge Min')
.setEditable())
.addField('groupingColumn', new core_1.StringXMLField('groupingColumn', 'Grouping Column')
.setMinApi(25)
.setEditable())
.addField('GroupingSortProperties', new core_1.ObjectXMLField('GroupingSortProperties', 'Grouping Sort Properties')
.setMinApi(46)
.setEditable()
.setFieldKey('groupingSorts')
.setSortOrder(undefined)
.addField('groupingSorts', new core_1.ObjectXMLField('groupingSorts', 'Grouping Sorts')
.setEditable()
.setFieldKey('sortColumn')
.setSortOrder(undefined)
.addField('groupingLevel', new core_1.StringXMLField('groupingLevel', 'Grouping Level')
.setEditable())
.addField('inheritedReportGroupingSort', new core_1.BooleanXMLField('inheritedReportGroupingSort', 'Inherited Report Grouping Sort')
.setEditable())
.addField('sortColumn', new core_1.StringXMLField('sortColumn', 'Sort Column')
.setEditable())
.addField('sortOrder', new core_1.EnumXMLField('sortOrder', 'Sort Order')
.setEditable()
.addEnumValue('Ascending', 'Ascending')
.addEnumValue('Descending', 'Descending'))))
.addField('header', new core_1.StringXMLField('header', 'Header')
.setEditable()
.setMaxLength(80))
.addField('indicatorBreakpoint1', new core_1.DoubleXMLField('indicatorBreakpoint1', 'Indicator Breakpoint 1')
.setEditable())
.addField('indicatorBreakpoint2', new core_1.DoubleXMLField('indicatorBreakpoint2', 'Indicator Breakpoint 2')
.setEditable())
.addField('indicatorHighColor', new core_1.StringXMLField('indicatorHighColor', 'Indicator High Color')
.setEditable())
.addField('indicatorLowColor', new core_1.StringXMLField('indicatorLowColor', 'Indicator Low Color')
.setEditable())
.addField('indicatorMiddleColor', new core_1.StringXMLField('indicatorMiddleColor', 'Indicator Middle Color')
.setEditable())
.addField('legendPosition', new core_1.EnumXMLField('legendPosition', 'Legend Position')
.setEditable()
.addEnumValue('Bottom', 'Bottom')
.addEnumValue('On Chart', 'OnChart')
.addEnumValue('Right', 'Right'))
.addField('maxValuesDisplayed', new core_1.IntegerXMLField('maxValuesDisplayed', 'Max Values Displayed')
.setEditable())
.addField('metricLabel', new core_1.StringXMLField('metricLabel', 'Metric Label')
.setEditable())
.addField('page', new core_1.StringXMLField('page', 'Page')
.setEditable()
.setMetadataType(core_1.MetadataTypes.APEX_PAGE))
.addField('pageHeightInPixels', new core_1.IntegerXMLField('pageHeightInPixels', 'Page Height In Pixels')
.setEditable())
.addField('report', new core_1.StringXMLField('report', 'Report')
.setEditable()
.setMetadataType(core_1.MetadataTypes.REPORT))
.addField('scontrol', new core_1.StringXMLField('scontrol', 'S-Control')
.setEditable()
.setMetadataType(core_1.MetadataTypes.S_CONTROL))
.addField('scontrolHeightInPixels', new core_1.IntegerXMLField('scontrolHeightInPixels', 'S-Control Height In Pixels')
.setEditable())
.addField('showPercentage', new core_1.BooleanXMLField('showPercentage', 'Show Percentage')
.setEditable())
.addField('showPicturesOnCharts', new core_1.BooleanXMLField('showPicturesOnCharts', 'Show Pictures On Charts')
.setEditable())
.addField('showPicturesOnTables', new core_1.BooleanXMLField('showPicturesOnTables', 'Show Pictures On Tables')
.setEditable())
.addField('showTotal', new core_1.BooleanXMLField('showTotal', 'Show Total')
.setEditable())
.addField('showValues', new core_1.BooleanXMLField('showValues', 'Show Values')
.setEditable())
.addField('sortBy', new core_1.EnumXMLField('sortBy', 'Sort By')
.setEditable()
.addEnumValue('Row Label Ascending', 'RowLabelAscending')
.addEnumValue('Row Label Descending', 'RowLabelDescending')
.addEnumValue('Row Value Ascending', 'RowValueAscending')
.addEnumValue('Row Value Descending', 'RowValueDescending'))
.addField('title', new core_1.StringXMLField('title', 'Title')
.setEditable()
.setMaxLength(40))
.addField('useReportChart', new core_1.BooleanXMLField('useReportChart', 'Use Report Chart')
.setEditable());
}
exports.dashboardComponent = dashboardComponent;
//# sourceMappingURL=dashboardComponent.js.map