Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
6196c5e
update data label formating to work for axis annotations also
IGvaleries Mar 27, 2025
9c0c236
code gen items for events, format specifiers, etc for CR tests
IGvaleries Apr 18, 2025
28b02d7
more test additions
IGvaleries Apr 25, 2025
4e09e08
add tooltip with static text
IGvaleries Apr 28, 2025
4d269e5
format specifier for datapie tests
IGvaleries May 23, 2025
d3f944e
kotlin library
gmurray81 Jun 24, 2025
f0c8b76
Merge branch '25.1' into toolbar-testing
gmurray81 Jun 24, 2025
6895ffb
fixes
gmurray81 Jun 24, 2025
7ab9844
add web version of test code-gen-library items for testing
IGvaleries Jun 30, 2025
b6650c3
web fixes
IGvaleries Jul 2, 2025
e4a67c2
fixes
gmurray81 Jul 3, 2025
0601a6f
Merge branch 'toolbar-testing' of https://github.com/IgniteUI/igniteu…
gmurray81 Jul 3, 2025
c547b26
android fixes
gmurray81 Jul 24, 2025
1a4c37e
android fixes
gmurray81 Jul 30, 2025
641fb35
react updates
IGvaleries Aug 7, 2025
96ba9d5
updates for WC tests
IGvaleries Aug 12, 2025
3957795
use IgcDataLegendStylingRowEventArgs instead of DataLegendStylingRowE…
IGvaleries Aug 13, 2025
44d9961
android fixes
gmurray81 Aug 20, 2025
a90e488
Merge branch 'toolbar-testing' of https://github.com/IgniteUI/igniteu…
gmurray81 Aug 20, 2025
f68f4a0
iOS stuff
gmurray81 Aug 23, 2025
6405a38
updates for WF testHost
IGvaleries Aug 27, 2025
b5da1ab
wf test fixes
gmurray81 Sep 17, 2025
8a2c0a2
WF test fixes
gmurray81 Sep 17, 2025
924bdfd
wf fixes
gmurray81 Sep 19, 2025
3ee7db5
wf fixes
gmurray81 Sep 19, 2025
6f0c815
ios fixes
gmurray81 Sep 29, 2025
ce6719f
Merge branch 'toolbar-testing' of https://github.com/IgniteUI/igniteu…
gmurray81 Sep 29, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions code-gen-library/AnalyzeSales/XPLAT-CONFIG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[{
"platform": "Kotlin",
"location": "jsonFile"
},{
"platform": "Swift",
"location": "jsonFile"
}]
7 changes: 7 additions & 0 deletions code-gen-library/AthletesData/XPLAT-CONFIG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[{
"platform": "Kotlin",
"location": "jsonFile"
},{
"platform": "Swift",
"location": "jsonFile"
}]
7 changes: 7 additions & 0 deletions code-gen-library/AthletesDataExtended/XPLAT-CONFIG.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[{
"platform": "Kotlin",
"location": "jsonFile"
},{
"platform": "Swift",
"location": "jsonFile"
}]
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
//begin imports
import com.infragistics.mobile.controls.IgaDomainChartSeriesPointerEventArgs;
import com.infragistics.mobile.controls.IgaCategoryChart;
//end imports

public class CategoryChartCustomSelectionPointerDown {
//begin eventHandler
public fun categoryChartCustomSelectionPointerDown(sender: Any?, args: IgaDomainChartSeriesPointerEventArgs?) {

var chart = CodeGenHelper.getDescription<IgaCategoryChart>("content")!!;
var selectableData = chart.dataSource as SelectableData?;
var oldItem = args!!.item as SelectableDataItem?;

if (oldItem === null) return;

var newItem: SelectableDataItem = SelectableDataItem()
newItem.category = oldItem!!.category;
newItem.dataValue = oldItem!!.dataValue;
newItem.selectedValue = oldItem!!.selectedValue;

var selectedIndex: Int = -1;
for (i in 0..< selectableData!!.size) {
if (oldItem!!.category === selectableData!![i].category) {
selectedIndex = i;
break;
}
}

if (oldItem.selectedValue == oldItem.dataValue) {
newItem.selectedValue = Double.NaN;
}
else {
newItem.selectedValue = newItem.dataValue;
}

chart.notifySetItem(selectableData, selectedIndex, oldItem, newItem);
}
//end eventHandler
}
33 changes: 33 additions & 0 deletions code-gen-library/CategoryChartCustomSelectionPointerDown/iOS.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
//begin imports
//end imports

public class CategoryChartCustomSelectionPointerDown {
//begin eventHandler
public func categoryChartCustomSelectionPointerDown(sender: Any?, args: IgsDomainChartSeriesPointerEventArgs?) {

guard let chart = CodeGenHelper.getDescription(IgsCategoryChart.self, "content") else { return }
let selectableData = chart.dataSource as? SelectableData
guard let oldItem = args?.item as? SelectableDataItem else { return }

let newItem = SelectableDataItem()
newItem.category = oldItem.category
newItem.dataValue = oldItem.dataValue
newItem.selectedValue = oldItem.selectedValue
var selectedIndex: Int = -1
for i in 0..<selectableData!.count {
if oldItem.category == selectableData![i]!.category {
selectedIndex = i
break
}
}

if oldItem.selectedValue == oldItem.dataValue {
newItem.selectedValue = Double.nan
} else {
newItem.selectedValue = newItem.dataValue
}

chart.notifySetItem(source_: selectableData, index: selectedIndex, oldItem: oldItem, newItem: newItem)
}
//end eventHandler
}
24 changes: 24 additions & 0 deletions code-gen-library/CategoryStyleTurnLowValuesRed/Android.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//begin imports
import com.infragistics.mobile.controls.IgaAssigningCategoryStyleEventArgs;
import com.infragistics.mobile.controls.IgaSeries;
import com.infragistics.mobile.controls.IgaBrush;
//end imports

import com.infragistics.mobile.controls.CodeGenHelper;

public class CategoryStyleTurnLowValuesRed {
//begin eventHandler
public fun categoryStyleTurnLowValuesRed(sender: Any?, args: IgaAssigningCategoryStyleEventArgs) {
var series = sender as IgaSeries;
var items = args.getItems!!(args.startIndex, args.endIndex)!!;
for (i in 0..< items.size)
{
var item = items[i]!!;
var value = series.getItemValue(item, "valueMemberPath") as Double;
if (value < 60) {
args.fill = IgaBrush.fromString("red");
}
}
}
//end eventHandler
}
19 changes: 19 additions & 0 deletions code-gen-library/CategoryStyleTurnLowValuesRed/iOS.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//begin imports
import UIKit;
//end imports

public class CategoryStyleTurnLowValuesRed {
//begin eventHandler
public func categoryStyleTurnLowValuesRed(sender: Any?, args: IgsAssigningCategoryStyleEventArgs?) {
guard let series = sender as? IgsSeries else { return }
guard let items = args!.getItems!(args!.startIndex, args!.endIndex) else { return }

for i in 0..<items.count {
guard let item: Any? = items[i] else { continue }
if let value = series.getItemValue(item: item, memberPathName: "valueMemberPath") as? Double, value < 60 {
args!.fill = IgsSolidColorBrush(UIColor.red);
}
}
}
//end eventHandler
}
23 changes: 23 additions & 0 deletions code-gen-library/ChartAxisCurrencyFormat/Android.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
//begin imports
import java.text.NumberFormat
import java.util.Locale
//end imports

public class ChartAxisCurrencyFormat
{
//begin eventHandler
private var axisCurrencyFormat: NumberFormat? = null
//Kotlin: Any?___String?
public fun chartAxisCurrencyFormat(sender: Any?, item: Any?): String? {
if (axisCurrencyFormat == null) {
axisCurrencyFormat = java.text.NumberFormat.getCurrencyInstance(Locale.US)
}
if (item == null) return null
if (item is Number) {
return axisCurrencyFormat?.format(item)
}
return null;
}
//end eventHandler
}

19 changes: 19 additions & 0 deletions code-gen-library/ChartAxisCurrencyFormat/WindowsForms.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
//begin imports
using Infragistics.Win.DataVisualization;
//end imports

public class ChartAxisCurrencyFormat
{
//begin eventHandler
//WindowsForms: Infragistics.Win.DataVisualization.AxisFormatLabelHandler
public string ChartAxisCurrencyFormat(AxisLabelInfo info)
{
if (info.Item == null)
{
return null;
}

return info.Value.ToString("C");
}
//end eventHandler
}
22 changes: 22 additions & 0 deletions code-gen-library/ChartAxisCurrencyFormat/iOS.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//begin imports
//end imports

public class ChartAxisCurrencyFormat {
//begin eventHandler
private var axisCurrencyFormat: NumberFormatter? = nil

//Swift: Any?___String?
public func chartAxisCurrencyFormat(sender: Any?, args: Any?) -> String? {
if axisCurrencyFormat == nil {
axisCurrencyFormat = NumberFormatter()
axisCurrencyFormat?.numberStyle = .currency
axisCurrencyFormat?.locale = Locale(identifier: "en_US")
}
guard let args = args else { return nil }
if let number = args as? NSNumber {
return axisCurrencyFormat?.string(from: number)
}
return nil
}
//end eventHandler
}
27 changes: 27 additions & 0 deletions code-gen-library/ColorEditorToggleSeriesBrush/Android.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
//begin imports
import com.infragistics.mobile.controls.IgaToolCommandEventArgs;
import com.infragistics.mobile.controls.IgaDataChart;
import com.infragistics.mobile.controls.IgaSeries;
import com.infragistics.mobile.controls.IgaBrush;
//end imports

import com.infragistics.mobile.controls.CodeGenHelper;

public class ColorEditorToggleSeriesBrush {
//begin eventHandler
public fun colorEditorToggleSeriesBrush(sender: Any?, args: IgaToolCommandEventArgs) {
var target = CodeGenHelper.getDescription<IgaDataChart>("content")!!;
var color = args.command!!.argumentsList!![0]!!.value;

when (args.command!!.commandId!!)
{
"ToggleSeriesBrush" -> {
var series = target.series[0] as IgaSeries;
series.brush = color as IgaBrush?;
break;
}
}

}
//end eventHandler
}
20 changes: 20 additions & 0 deletions code-gen-library/ColorEditorToggleSeriesBrush/iOS.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
//begin imports
//end imports

public class ColorEditorToggleSeriesBrush {
//begin eventHandler
public func colorEditorToggleSeriesBrush(sender: Any?, args: IgsToolCommandEventArgs?) {
guard let target = CodeGenHelper.getDescription(IgsDataChart.self, "content") else { return }
guard let color = args.command?.argumentsList?[0]?.value else { return }

switch args.command?.commandId {
case "ToggleSeriesBrush":
if let series = target.series.first as? IgsSeries {
series.brush = color as? IgsBrush
}
default:
break
}
}
//end eventHandler
}
18 changes: 18 additions & 0 deletions code-gen-library/EditorButtonReplayTransitionIn/Android.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//begin imports
import com.infragistics.mobile.controls.IgaPropertyEditorPropertyDescriptionButtonClickEventArgs;
import com.infragistics.mobile.controls.IgaDataChart;
import com.infragistics.mobile.controls.IgaSeries;
//end imports

import com.infragistics.mobile.controls.CodeGenHelper;

public class EditorButtonReplayTransitionIn {
//begin eventHandler
public fun editorButtonReplayTransitionIn(sender: Any?, args: IgaPropertyEditorPropertyDescriptionButtonClickEventArgs) {
var series = CodeGenHelper.getDescription<IgaDataChart>("content").series!!;
for (i in 0..< series.length) {
series[i]!!.replayTransitionIn();
}
}
//end eventHandler
}
13 changes: 13 additions & 0 deletions code-gen-library/EditorButtonReplayTransitionIn/iOS.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
//begin imports
//end imports

public class EditorButtonReplayTransitionIn {
//begin eventHandler
public func editorButtonReplayTransitionIn(sender: Any?, args: IgsPropertyEditorPropertyDescriptionButtonClickEventArgs?) {
guard let series = CodeGenHelper.getDescription(IgsDataChart.self, "content")?.series else { return }
for i in 0..<series.count {
series[i]?.replayTransitionIn()
}
}
//end eventHandler
}
22 changes: 22 additions & 0 deletions code-gen-library/EditorButtonReplayTransitionInDomain/Android.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//begin imports
import com.infragistics.mobile.controls.IgaPropertyEditorPropertyDescriptionButtonClickEventArgs;
import com.infragistics.mobile.controls.IgaDataChart;
import com.infragistics.mobile.controls.IgaCategoryChart;
//end imports

import com.infragistics.mobile.controls.CodeGenHelper;

public class EditorButtonReplayTransitionInDomain {
//begin eventHandler
public fun editorButtonReplayTransitionInDomain(sender: Any?, args: IgaPropertyEditorPropertyDescriptionButtonClickEventArgs) {
var chart = CodeGenHelper.getDescription<Any?>("content");

if (chart is IgaDataChart) {
chart.replayTransitionIn();
}
if (chart is IgaCategoryChart) {
chart.replayTransitionIn();
}
}
//end eventHandler
}
17 changes: 17 additions & 0 deletions code-gen-library/EditorButtonReplayTransitionInDomain/iOS.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//begin imports
//end imports

public class EditorButtonReplayTransitionInDomain {
//begin eventHandler
public func editorButtonReplayTransitionInDomain(sender: Any?, args: IgsPropertyEditorPropertyDescriptionButtonClickEventArgs?) {
let chart = CodeGenHelper.getDescription(Any.self, "content")

if let dataChart = chart as? IgsDataChart {
dataChart.replayTransitionIn()
}
if let categoryChart = chart as? IgsCategoryChart {
categoryChart.replayTransitionIn()
}
}
//end eventHandler
}
16 changes: 16 additions & 0 deletions code-gen-library/EditorChangeDataFilter/Android.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
//begin imports
import com.infragistics.mobile.controls.IgaPropertyEditorPropertyDescriptionChangedEventArgs;
import com.infragistics.mobile.controls.IgaCategoryChart;
//end imports

import com.infragistics.mobile.controls.CodeGenHelper;

public class EditorChangeDataFilter {
//begin eventHandler
public fun editorChangeDataFilter(sender: Any?, args: IgaPropertyEditorPropertyDescriptionChangedEventArgs): void {
var chart = CodeGenHelper.getDescription<IgaCategoryChart>("content")!!;
var filter = args.newValue.toString();
chart.initialFilter = "(contains(Year," + "'" + filter + "'" + "))";
}
//end eventHandler
}
12 changes: 12 additions & 0 deletions code-gen-library/EditorChangeDataFilter/iOS.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//begin imports
//end imports

public class EditorChangeDataFilter {
//begin eventHandler
public func editorChangeDataFilter(sender: Any?, args: IgsPropertyEditorPropertyDescriptionChangedEventArgs?) {
guard let chart = CodeGenHelper.getDescription(IgsCategoryChart.self, "content") else { return }
let filter = String(describing: args.newValue)
chart.initialFilter = "(contains(Year,'" + filter + "'))"
}
//end eventHandler
}
17 changes: 17 additions & 0 deletions code-gen-library/EditorChangeReplayTransitionIn/Android.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
//begin imports
import com.infragistics.mobile.controls.IgaPropertyEditorPropertyDescriptionChangedEventArgs;
import com.infragistics.mobile.controls.IgaDataChart;
//end imports

import com.infragistics.mobile.controls.CodeGenHelper;

public class EditorChangeReplayTransitionIn {
//begin eventHandler
public fun editorChangeReplayTransitionIn(sender: Any?, args: IgaPropertyEditorPropertyDescriptionChangedEventArgs?) {
var series = CodeGenHelper.getDescription<IgaDataChart>("content").series!!;
for (i in 0..< series.length) {
series[i]!!.replayTransitionIn();
}
}
//end eventHandler
}
Loading