Skip to content

Commit

Permalink
updates for samples testing
Browse files Browse the repository at this point in the history
  • Loading branch information
IGvaleries committed Oct 23, 2024
2 parents 01d0079 + 79f00e7 commit c89267a
Show file tree
Hide file tree
Showing 79 changed files with 171 additions and 92 deletions.
3 changes: 2 additions & 1 deletion code-gen-library/WebGridTestOnInit/WebComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ export class WebGridTestOnInit {
public webGridTestOnInit(): void {
var grid = CodeGenHelper.getDescription<IgcGridComponent>("content");
grid.allowFiltering = true;
grid.filterMode = FilterMode.ExcelStyleFilter;
// grid.filterMode = FilterMode.ExcelStyleFilter;
grid.filterMode = "excelStyleFilter";
}
//end eventHandler

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ export class WebTreeGridCellEditCellTemplate {
public webTreeGridCellEditCellTemplate = (ctx: IgcCellTemplateContext) => {
let cellValues: any = [];
let uniqueValues: any = [];
for(const i of (this.roleplayTreeGridData as any)){
let roleplayData = CodeGenHelper.findByName<any>("roleplayTreeGridData")
for (const i of (roleplayData as any)){
const field: string = ctx.cell.column.field;
if(uniqueValues.indexOf(i[field]) === -1 )
{
Expand Down
1 change: 1 addition & 0 deletions samples/charts/category-chart/annotations-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Average Temperature in Sydney"
},
"hasAnimations": true,
"descriptions": {
"editor": {
"type": "PropertyEditorPanel",
Expand Down
3 changes: 2 additions & 1 deletion samples/charts/category-chart/annotations-callouts.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Average Temperature in Sydney"
},
"hasAnimations": true,
"descriptions": {
"editor": {
"type": "PropertyEditorPanel",
Expand Down Expand Up @@ -29,7 +30,7 @@
"computedPlotAreaMarginMode": "Series",
"isHorizontalZoomEnabled": false,
"isVerticalZoomEnabled": false,
"includedProperties": ["Month", "Temperature"],
"includedProperties": [ "Month", "Temperature" ],
"dataSourceRef": "TemperatureAnnotatedData",
"autoCalloutsVisible": true,
"crosshairsAnnotationYAxisPrecision": 0,
Expand Down
1 change: 1 addition & 0 deletions samples/charts/category-chart/annotations-crosshairs.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Average Temperature in Sydney"
},
"hasAnimations": true,
"descriptions": {
"editor": {
"type": "PropertyEditorPanel",
Expand Down
5 changes: 3 additions & 2 deletions samples/charts/category-chart/annotations-custom.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Average Temperature in Sydney"
},
"hasAnimations": true,
"descriptions": {
"editor": {
"type": "PropertyEditorPanel",
Expand Down Expand Up @@ -29,15 +30,15 @@
"computedPlotAreaMarginMode": "Series",
"isHorizontalZoomEnabled": false,
"isVerticalZoomEnabled": false,
"includedProperties": ["Month", "Temperature"],
"includedProperties": [ "Month", "Temperature" ],
"dataSourceRef": "TemperatureAnnotatedData",
"crosshairsAnnotationYAxisPrecision": 0,
"calloutsDataSourceRef": "TemperatureAnnotatedData",
"calloutsVisible": true,
"calloutsXMemberPath": "Index",
"calloutsYMemberPath": "Temperature",
"calloutsLabelMemberPath": "TempInfo",
"calloutsAllowedPositions": ["Top", "Bottom"],
"calloutsAllowedPositions": [ "Top", "Bottom" ],
"yAxisMaximumValue": 35,
"yAxisLabelLocation": "OutsideRight"
}
Expand Down
3 changes: 2 additions & 1 deletion samples/charts/category-chart/annotations-final-value.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Average Temperature in Sydney"
},
"hasAnimations": true,
"descriptions": {
"editor": {
"type": "PropertyEditorPanel",
Expand Down Expand Up @@ -29,7 +30,7 @@
"computedPlotAreaMarginMode": "Series",
"isHorizontalZoomEnabled": false,
"isVerticalZoomEnabled": false,
"includedProperties": ["Month", "Temperature"],
"includedProperties": [ "Month", "Temperature" ],
"dataSourceRef": "TemperatureAnnotatedData",
"finalValueAnnotationsVisible": true,
"finalValueAnnotationsBackground": "dodgerblue",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Average Temperature in Sydney"
},
"hasAnimations": true,
"descriptions": {
"editor": {
"type": "PropertyEditorPanel",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Renewable Electricity Generated"
},
"hasAnimations": true,
"descriptions": {
"legend": {
"type": "Legend",
Expand All @@ -13,7 +14,7 @@
"name": "chart",
"chartType": "Area",
"dataSourceRef": "CountryRenewableElectricity",
"includedProperties": ["Year", "Europe", "China", "America"],
"includedProperties": [ "Year", "Europe", "China", "America" ],
"legendRef": "legend",
"yAxisTitle": "TWh",
"yAxisTitleLeftMargin": 10,
Expand Down
3 changes: 2 additions & 1 deletion samples/charts/category-chart/area-chart-single-source.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
"strings": {
"legendTitle": "Renewable Electricity Generated"
},
"hasAnimations": true,
"descriptions": {
"content": {
"type": "CategoryChart",
"name": "chart",
"dataSourceRef": "CountryRenewableElectricity",
"includedProperties": ["Year", "Europe"],
"includedProperties": [ "Year", "Europe" ],
"chartType": "Area",
"yAxisTitle": "TWh",
"yAxisTitleLeftMargin": 10,
Expand Down
13 changes: 7 additions & 6 deletions samples/charts/category-chart/area-chart-styling.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Renewable Electricity Generated"
},
"hasAnimations": true,
"descriptions": {
"legend": {
"type": "Legend",
Expand All @@ -12,17 +13,17 @@
"type": "CategoryChart",
"name": "chart",
"dataSourceRef": "CountryRenewableElectricity",
"includedProperties": ["Year", "Europe", "China", "America"],
"includedProperties": [ "Year", "Europe", "China", "America" ],
"chartType": "Area",
"legendRef": "legend",
"isHorizontalZoomEnabled": false,
"isVerticalZoomEnabled": false,
"markerTypes": ["Triangle"],
"markerTypes": [ "Triangle" ],

"markerBrushes": ["white"],
"markerOutlines": ["#8ce7d9", "#ee5879", "#735656"],
"brushes": ["#8ce7d9", "#ee5879", "#735656"],
"outlines": ["#8ce7d9", "#ee5879", "#735656"],
"markerBrushes": [ "white" ],
"markerOutlines": [ "#8ce7d9", "#ee5879", "#735656" ],
"brushes": [ "#8ce7d9", "#ee5879", "#735656" ],
"outlines": [ "#8ce7d9", "#ee5879", "#735656" ],

"yAxisTitle": "TWh",
"yAxisTitleLeftMargin": 10,
Expand Down
7 changes: 4 additions & 3 deletions samples/charts/category-chart/axis-gap.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Renewable Electricity Generated"
},
"hasAnimations": true,
"descriptions": {
"editor": {
"type": "PropertyEditorPanel",
Expand Down Expand Up @@ -30,8 +31,8 @@
"label": "Maximum Gap",
"shouldOverrideDefaultEditor": true,
"valueType": "EnumValue",
"dropDownNames": ["1.5", "1.3", "1.0", "0.6", "0.5", "0.4", "0.3", "0.2", "0.1", "0"],
"dropDownValues": ["1.5", "1.3", "1.0", "0.6", "0.5", "0.4", "0.3", "0.2", "0.1", "0"],
"dropDownNames": [ "1.5", "1.3", "1.0", "0.6", "0.5", "0.4", "0.3", "0.2", "0.1", "0" ],
"dropDownValues": [ "1.5", "1.3", "1.0", "0.6", "0.5", "0.4", "0.3", "0.2", "0.1", "0" ],
"primitiveValue": 0.5
}
]
Expand All @@ -40,7 +41,7 @@
"type": "CategoryChart",
"name": "chart",
"dataSourceRef": "CountryRenewableElectricity",
"includedProperties": ["Year", "Europe", "China", "America"],
"includedProperties": [ "Year", "Europe", "China", "America" ],
"chartType": "Column",
"crosshairsSnapToData": true,
"yAxisTitle": "TWh",
Expand Down
15 changes: 8 additions & 7 deletions samples/charts/category-chart/axis-gridlines.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Renewable Electricity Generated"
},
"hasAnimations": true,
"descriptions": {
"legend": {
"type": "Legend",
Expand All @@ -23,8 +24,8 @@
"label": "Y Axis Stroke",
"shouldOverrideDefaultEditor": true,
"valueType": "EnumValue",
"dropDownNames": ["gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen"],
"dropDownValues": ["gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen"],
"dropDownNames": [ "gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen" ],
"dropDownValues": [ "gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen" ],
"primitiveValue": "gray"
},
{
Expand All @@ -34,8 +35,8 @@
"label": "Y Axis Major Stroke",
"shouldOverrideDefaultEditor": true,
"valueType": "EnumValue",
"dropDownNames": ["gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen"],
"dropDownValues": ["gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen"],
"dropDownNames": [ "gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen" ],
"dropDownValues": [ "gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen" ],
"primitiveValue": "darkslategray"
},
{
Expand All @@ -45,8 +46,8 @@
"label": "Y Axis Minor Stroke",
"shouldOverrideDefaultEditor": true,
"valueType": "EnumValue",
"dropDownNames": ["gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen"],
"dropDownValues": ["gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen"],
"dropDownNames": [ "gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen" ],
"dropDownValues": [ "gray", "darkslategray", "salmon", "cornflowerblue", "darkgreen" ],
"primitiveValue": "gray"
}
]
Expand All @@ -56,7 +57,7 @@
"name": "chart",
"computedPlotAreaMarginMode": "Series",
"dataSourceRef": "CountryRenewableElectricity",
"includedProperties": ["Year", "Europe", "China", "America"],
"includedProperties": [ "Year", "Europe", "China", "America" ],
"chartType": "Line",
"legendRef": "legend",
"isHorizontalZoomEnabled": false,
Expand Down
3 changes: 2 additions & 1 deletion samples/charts/category-chart/axis-inverted.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Renewable Electricity Generated"
},
"hasAnimations": true,
"descriptions": {
"editor": {
"type": "PropertyEditorPanel",
Expand Down Expand Up @@ -37,7 +38,7 @@
"isHorizontalZoomEnabled": false,
"isVerticalZoomEnabled": false,
"dataSourceRef": "CountryRenewableElectricity",
"includedProperties": ["Year", "Europe"],
"includedProperties": [ "Year", "Europe" ],
"yAxisTitle": "TWh",
"yAxisTitleLeftMargin": 10,
"yAxisTitleRightMargin": 5,
Expand Down
15 changes: 8 additions & 7 deletions samples/charts/category-chart/axis-labels.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Renewable Electricity Generated"
},
"hasAnimations": true,
"descriptions": {
"legend": {
"type": "Legend",
Expand All @@ -23,8 +24,8 @@
"label": "X Axis Label Angle",
"shouldOverrideDefaultEditor": true,
"valueType": "EnumValue",
"dropDownNames": ["0", "45", "90", "135", "180", "225", "270"],
"dropDownValues": ["0", "45", "90", "135", "180", "225", "270"],
"dropDownNames": [ "0", "45", "90", "135", "180", "225", "270" ],
"dropDownValues": [ "0", "45", "90", "135", "180", "225", "270" ],
"primitiveValue": 0
},
{
Expand All @@ -34,8 +35,8 @@
"label": "Y Axis Label Angle",
"shouldOverrideDefaultEditor": true,
"valueType": "EnumValue",
"dropDownNames": ["-90", "-45", "0", "45", "90"],
"dropDownValues": ["-90", "-45", "0", "45", "90"],
"dropDownNames": [ "-90", "-45", "0", "45", "90" ],
"dropDownValues": [ "-90", "-45", "0", "45", "90" ],
"primitiveValue": 0
},
{
Expand All @@ -45,8 +46,8 @@
"label": "Y Axis Label Color",
"valueType": "EnumValue",
"shouldOverrideDefaultEditor": true,
"dropDownNames": [ "red", "green"],
"dropDownValues": [ "red", "green"],
"dropDownNames": [ "red", "green" ],
"dropDownValues": [ "red", "green" ],
"primitiveValue": "red"
}
]
Expand All @@ -55,7 +56,7 @@
"type": "CategoryChart",
"name": "chart",
"dataSourceRef": "CountryRenewableElectricity",
"includedProperties": ["Year", "Europe", "China", "America"],
"includedProperties": [ "Year", "Europe", "China", "America" ],
"chartType": "Line",
"computedPlotAreaMarginMode": "Series",
"legendRef": "legend",
Expand Down
3 changes: 2 additions & 1 deletion samples/charts/category-chart/axis-locations.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Renewable Electricity Generated"
},
"hasAnimations": true,
"descriptions": {
"legend": {
"type": "Legend",
Expand Down Expand Up @@ -30,7 +31,7 @@
"name": "chart",
"computedPlotAreaMarginMode": "Series",
"dataSourceRef": "CountryRenewableElectricity",
"includedProperties": ["Year", "Europe", "China", "America"],
"includedProperties": [ "Year", "Europe", "China", "America" ],
"legendRef": "legend",
"chartType": "Line",
"yAxisTitle": "Labels Location",
Expand Down
1 change: 1 addition & 0 deletions samples/charts/category-chart/axis-options.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Olympic Medals By Country"
},
"hasAnimations": true,
"descriptions": {
"content": {
"type": "CategoryChart",
Expand Down
1 change: 1 addition & 0 deletions samples/charts/category-chart/axis-overlap.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Highest Grossing Movie Franchises"
},
"hasAnimations": true,
"descriptions": {
"legend": {
"type": "Legend",
Expand Down
11 changes: 6 additions & 5 deletions samples/charts/category-chart/axis-range.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"strings": {
"legendTitle": "Highest Grossing Movie Franchises"
},
"hasAnimations": true,
"descriptions": {
"legend": {
"type": "Legend",
Expand All @@ -23,8 +24,8 @@
"label": "Y Axis Minimum Value",
"shouldOverrideDefaultEditor": true,
"valueType": "EnumValue",
"dropDownNames": ["0", "10", "20", "30", "40", "50", "60", "70", "80", "90", "100"],
"dropDownValues": ["0", "10", "20", "30", "40", "50", "60", "70", "80", "90", "100"],
"dropDownNames": [ "0", "10", "20", "30", "40", "50", "60", "70", "80", "90", "100" ],
"dropDownValues": [ "0", "10", "20", "30", "40", "50", "60", "70", "80", "90", "100" ],
"primitiveValue": 0,
"changedRef": "EditorChangeUpdateYAxisMinimumValue"
},
Expand All @@ -35,8 +36,8 @@
"label": "Y Axis Maximum Value",
"shouldOverrideDefaultEditor": true,
"valueType": "EnumValue",
"dropDownNames": ["100", "110", "120", "130", "140", "150", "160", "170", "180", "190", "200"],
"dropDownValues": ["100", "110", "120", "130", "140", "150", "160", "170", "180", "190", "200"],
"dropDownNames": [ "100", "110", "120", "130", "140", "150", "160", "170", "180", "190", "200" ],
"dropDownValues": [ "100", "110", "120", "130", "140", "150", "160", "170", "180", "190", "200" ],
"primitiveValue": 150,
"changedRef": "EditorChangeUpdateYAxisMaximumValue"
}
Expand All @@ -46,7 +47,7 @@
"type": "CategoryChart",
"name": "chart",
"dataSourceRef": "CountryRenewableElectricity",
"includedProperties": ["Year", "Europe", "China", "America"],
"includedProperties": [ "Year", "Europe", "China", "America" ],
"legendRef": "legend",
"chartType": "Line",
"computedPlotAreaMarginMode": "Series",
Expand Down
Loading

0 comments on commit c89267a

Please sign in to comment.