Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-telerik-ui

Package Overview
Dependencies
Maintainers
5
Versions
580
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-telerik-ui - npm Package Compare versions

Comparing version 0.0.10 to 0.1.0

LICENSE.md

29

chart/chart-initializers.android.js
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};

@@ -13,7 +12,7 @@ var chartCommonModule = require("./chart-common");

if (!chart.legend) {
if (chart._rootLayout) {
chart._rootLayout.removeAllViews();
if (chart.rootLayout) {
chart.rootLayout.removeAllViews();
}
if (chart.android) {
chart._rootLayout.addView(chart._android);
if (chart.androidView) {
chart.rootLayout.addView(chart.androidView);
}

@@ -27,7 +26,7 @@ }

ChartBaseValueMapper.prototype.loadPalette = function (palettes, chart) {
if (!chart._android) {
if (!chart.androidView) {
return;
}
chart._android.setPalette(com.telerik.widget.palettes.ChartPalettes.light());
var nativePalette = chart._android.getPalette().clone();
chart.androidView.setPalette(com.telerik.widget.palettes.ChartPalettes.light());
var nativePalette = chart.androidView.getPalette().clone();
if (chart.palettes) {

@@ -41,3 +40,3 @@ for (var i = 0; i < chart.series.length; i++) {

}
chart._android.setPalette(nativePalette);
chart.androidView.setPalette(nativePalette);
};

@@ -96,6 +95,6 @@ ChartBaseValueMapper.prototype.getPaletteForSeries = function (source, series) {

if (data.oldValue) {
if (chart._android) {
if (chart.androidView) {
for (var serieIndex = 0; data.oldValue.length; serieIndex++) {
if (chart._android.getSeries().indexOf(data.oldValue[serieIndex].android) != -1) {
chart._android.getSeries().remove(data.oldValue[serieIndex].android);
if (chart.androidView.getSeries().indexOf(data.oldValue[serieIndex].android) !== -1) {
chart.androidView.getSeries().remove(data.oldValue[serieIndex].android);
}

@@ -108,5 +107,5 @@ }

ChartBaseValueMapper.prototype.loadSeries = function (chart) {
if (chart._android && chart.series) {
if (chart.androidView && chart.series) {
for (var i = 0; i < chart.series.length; i++) {
chart._android.getSeries().add(chart.series[i].android);
chart.androidView.getSeries().add(chart.series[i].android);
}

@@ -113,0 +112,0 @@ if (chart.palettes) {

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};

@@ -7,0 +6,0 @@ var chartCommonModule = require("./chart-common");

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var commonModule = require("./chart-common");
require("utils/module-merge").merge(commonModule, exports);
var PieChart = (function (_super) {
__extends(PieChart, _super);
function PieChart() {
var RadPieChart = (function (_super) {
__extends(RadPieChart, _super);
function RadPieChart() {
_super.call(this);
}
Object.defineProperty(PieChart.prototype, "android", {
Object.defineProperty(RadPieChart.prototype, "android", {
get: function () {

@@ -21,3 +20,17 @@ return this._rootLayout;

});
PieChart.prototype._createUI = function () {
Object.defineProperty(RadPieChart.prototype, "androidView", {
get: function () {
return this._android;
},
enumerable: true,
configurable: true
});
Object.defineProperty(RadPieChart.prototype, "rootLayout", {
get: function () {
return this._rootLayout;
},
enumerable: true,
configurable: true
});
RadPieChart.prototype._createUI = function () {
this._android = new com.telerik.widget.chart.visualization.pieChart.RadPieChartView(this._context);

@@ -33,11 +46,21 @@ this._rootLayout = new android.widget.RelativeLayout(this._context);

};
return PieChart;
})(commonModule.PieChart);
exports.PieChart = PieChart;
var LegendView = (function (_super) {
__extends(LegendView, _super);
function LegendView() {
RadPieChart.prototype._onDetach = function (force) {
var thisAndroid = this._android;
_super.prototype._onDetach.call(this, force);
if (thisAndroid) {
this._rootLayout = undefined;
for (var i = 0; i < this.series.length; i++) {
thisAndroid.getSeries().remove(this.series[i].android);
}
}
};
return RadPieChart;
})(commonModule.RadPieChart);
exports.RadPieChart = RadPieChart;
var RadLegendView = (function (_super) {
__extends(RadLegendView, _super);
function RadLegendView() {
_super.apply(this, arguments);
}
Object.defineProperty(LegendView.prototype, "android", {
Object.defineProperty(RadLegendView.prototype, "android", {
get: function () {

@@ -49,3 +72,3 @@ return this._android;

});
LegendView.prototype.updateLegendView = function (chartView) {
RadLegendView.prototype.updateLegendView = function (chartView) {
if (!chartView._context) {

@@ -57,9 +80,9 @@ return;

}
this._android.setLegendProvider(chartView._android);
if (chartView._rootLayout.indexOfChild(this._android) !== -1) {
chartView._rootLayout.removeView(this._android);
this._android.setLegendProvider(chartView.androidView);
if (chartView.rootLayout.indexOfChild(this._android) !== -1) {
chartView.rootLayout.removeView(this._android);
}
var lParams = new android.widget.RelativeLayout.LayoutParams(android.widget.RelativeLayout.LayoutParams.MATCH_PARENT, android.widget.RelativeLayout.LayoutParams.MATCH_PARENT);
var cParams = new android.widget.RelativeLayout.LayoutParams(android.widget.RelativeLayout.LayoutParams.MATCH_PARENT, android.widget.RelativeLayout.LayoutParams.MATCH_PARENT);
chartView._android.setId(1);
chartView.androidView.setId(1);
this._android.setId(2);

@@ -93,15 +116,15 @@ switch (this.position) {

}
chartView._android.setLayoutParams(cParams);
chartView.androidView.setLayoutParams(cParams);
this._android.setLayoutParams(lParams);
chartView._rootLayout.addView(this._android, 0);
chartView.rootLayout.addView(this._android, 0);
};
return LegendView;
})(commonModule.LegendView);
exports.LegendView = LegendView;
var CartesianChart = (function (_super) {
__extends(CartesianChart, _super);
function CartesianChart() {
return RadLegendView;
})(commonModule.RadLegendView);
exports.RadLegendView = RadLegendView;
var RadCartesianChart = (function (_super) {
__extends(RadCartesianChart, _super);
function RadCartesianChart() {
_super.call(this);
}
Object.defineProperty(CartesianChart.prototype, "android", {
Object.defineProperty(RadCartesianChart.prototype, "android", {
get: function () {

@@ -113,3 +136,17 @@ return this._rootLayout;

});
CartesianChart.prototype._createUI = function () {
Object.defineProperty(RadCartesianChart.prototype, "androidView", {
get: function () {
return this._android;
},
enumerable: true,
configurable: true
});
Object.defineProperty(RadCartesianChart.prototype, "rootLayout", {
get: function () {
return this._rootLayout;
},
enumerable: true,
configurable: true
});
RadCartesianChart.prototype._createUI = function () {
this._android = new com.telerik.widget.chart.visualization.cartesianChart.RadCartesianChartView(this._context);

@@ -139,3 +176,16 @@ this._rootLayout = new android.widget.RelativeLayout(this._context);

};
CartesianChart.prototype.onHorizontalAxisChanged = function (data) {
RadCartesianChart.prototype._onDetach = function (force) {
var thisAndroid = this._android;
_super.prototype._onDetach.call(this, force);
if (thisAndroid) {
this._rootLayout = undefined;
for (var i = 0; i < this.series.length; i++) {
thisAndroid.getSeries().remove(this.series[i].android);
}
thisAndroid.setHorizontalAxis(undefined);
thisAndroid.setVerticalAxis(undefined);
thisAndroid.setGrid(undefined);
}
};
RadCartesianChart.prototype.onHorizontalAxisChanged = function (data) {
_super.prototype.onHorizontalAxisChanged.call(this, data);

@@ -147,3 +197,3 @@ if (this._android) {

};
CartesianChart.prototype.onVerticalAxisChanged = function (data) {
RadCartesianChart.prototype.onVerticalAxisChanged = function (data) {
_super.prototype.onVerticalAxisChanged.call(this, data);

@@ -155,3 +205,3 @@ if (this._android) {

};
CartesianChart.prototype.onGridChanged = function (data) {
RadCartesianChart.prototype.onGridChanged = function (data) {
if (this._android && data.newValue) {

@@ -162,5 +212,5 @@ this._android.setGrid(null);

};
return CartesianChart;
})(commonModule.CartesianChart);
exports.CartesianChart = CartesianChart;
return RadCartesianChart;
})(commonModule.RadCartesianChart);
exports.RadCartesianChart = RadCartesianChart;
var CategoricalAxis = (function (_super) {

@@ -211,3 +261,3 @@ __extends(CategoricalAxis, _super);

DateTimeContinuousAxis.prototype.onMinimumChanged = function (data) {
if (!data.newValue) {
if (data.newValue === undefined) {
this.android.setMinimum(undefined);

@@ -223,3 +273,3 @@ return;

DateTimeContinuousAxis.prototype.onMaximumChanged = function (data) {
if (!data.newValue) {
if (data.newValue === undefined) {
this.android.setMaximum(undefined);

@@ -605,8 +655,8 @@ return;

exports.BarSeries = BarSeries;
var CartesianChartGrid = (function (_super) {
__extends(CartesianChartGrid, _super);
function CartesianChartGrid() {
var RadCartesianChartGrid = (function (_super) {
__extends(RadCartesianChartGrid, _super);
function RadCartesianChartGrid() {
_super.apply(this, arguments);
}
Object.defineProperty(CartesianChartGrid.prototype, "android", {
Object.defineProperty(RadCartesianChartGrid.prototype, "android", {
get: function () {

@@ -622,3 +672,3 @@ if (!this._android) {

});
CartesianChartGrid.prototype.onVerticalLinesVisibleChanged = function (data) {
RadCartesianChartGrid.prototype.onVerticalLinesVisibleChanged = function (data) {
if (data.newValue === true) {

@@ -641,3 +691,3 @@ if (this.horizontalLinesVisible === true) {

};
CartesianChartGrid.prototype.onHorizontalLinesVisibleChanged = function (data) {
RadCartesianChartGrid.prototype.onHorizontalLinesVisibleChanged = function (data) {
if (data.newValue === true) {

@@ -660,3 +710,3 @@ if (this.verticalLinesVisible === true) {

};
CartesianChartGrid.prototype.onHorizontalStripLinesVisibleChanged = function (data) {
RadCartesianChartGrid.prototype.onHorizontalStripLinesVisibleChanged = function (data) {
if (data.newValue === true) {

@@ -679,3 +729,3 @@ if (this.verticalStripLinesVisible === true) {

};
CartesianChartGrid.prototype.onVerticalStripLinesVisibleChanged = function (data) {
RadCartesianChartGrid.prototype.onVerticalStripLinesVisibleChanged = function (data) {
if (data.newValue === true) {

@@ -698,3 +748,3 @@ if (this.horizontalStripLinesVisible === true) {

};
CartesianChartGrid.prototype.onVerticalStrokeColorChanged = function (data) {
RadCartesianChartGrid.prototype.onVerticalStrokeColorChanged = function (data) {
if (!data.newValue) {

@@ -705,3 +755,3 @@ return;

};
CartesianChartGrid.prototype.onHorizontalStrokeColorChanged = function (data) {
RadCartesianChartGrid.prototype.onHorizontalStrokeColorChanged = function (data) {
if (!data.newValue) {

@@ -712,3 +762,3 @@ return;

};
CartesianChartGrid.prototype.onHorizontalStrokeWidthChanged = function (data) {
RadCartesianChartGrid.prototype.onHorizontalStrokeWidthChanged = function (data) {
if (!data.newValue) {

@@ -719,3 +769,3 @@ return;

};
CartesianChartGrid.prototype.onVerticalStrokeWidthChanged = function (data) {
RadCartesianChartGrid.prototype.onVerticalStrokeWidthChanged = function (data) {
if (!data.newValue) {

@@ -726,3 +776,3 @@ return;

};
CartesianChartGrid.prototype.onVerticalStripLineColorChanged = function (data) {
RadCartesianChartGrid.prototype.onVerticalStripLineColorChanged = function (data) {
if (!data.newValue) {

@@ -735,3 +785,3 @@ return;

var stripePaint = new android.graphics.Paint();
stripePaint.Style = android.graphics.Paint.Style.FILL;
stripePaint.setStyle(android.graphics.Paint.Style.FILL);
stripePaint.setColor(android.graphics.Color.parseColor(colors[i].trim()));

@@ -741,3 +791,3 @@ this.android.getYStripeBrushes().add(stripePaint);

};
CartesianChartGrid.prototype.onHorizontalStripLineColorChanged = function (data) {
RadCartesianChartGrid.prototype.onHorizontalStripLineColorChanged = function (data) {
if (!data.newValue) {

@@ -750,3 +800,3 @@ return;

var stripePaint = new android.graphics.Paint();
stripePaint.Style = android.graphics.Paint.Style.FILL;
stripePaint.setStyle(android.graphics.Paint.Style.FILL);
stripePaint.setColor(android.graphics.Color.parseColor(colors[i].trim()));

@@ -756,4 +806,4 @@ this.android.getXStripeBrushes().add(stripePaint);

};
return CartesianChartGrid;
})(commonModule.CartesianChartGrid);
exports.CartesianChartGrid = CartesianChartGrid;
return RadCartesianChartGrid;
})(commonModule.RadCartesianChartGrid);
exports.RadCartesianChartGrid = RadCartesianChartGrid;
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};

@@ -11,5 +10,5 @@ var commonModule = require("./chart-common");

require("utils/module-merge").merge(commonModule, exports);
var PieChart = (function (_super) {
__extends(PieChart, _super);
function PieChart() {
var RadPieChart = (function (_super) {
__extends(RadPieChart, _super);
function RadPieChart() {
_super.call(this);

@@ -21,3 +20,3 @@ this._ios = TKChart.new();

}
Object.defineProperty(PieChart.prototype, "ios", {
Object.defineProperty(RadPieChart.prototype, "ios", {
get: function () {

@@ -29,3 +28,3 @@ return this._ios;

});
PieChart.prototype.addSeries = function (newSeries) {
RadPieChart.prototype.addSeries = function (newSeries) {
this.ios.addSeries(newSeries);

@@ -36,6 +35,6 @@ if (this._chartPalettes.length > 0) {

this.applyLabelStyle();
this._ios.legend().update();
this._ios.legend.update();
}
};
PieChart.prototype.onSeriesChanged = function (data) {
RadPieChart.prototype.onSeriesChanged = function (data) {
_super.prototype.onSeriesChanged.call(this, data);

@@ -53,9 +52,9 @@ if (data.oldValue) {

};
PieChart.prototype.onPalettesChanged = function (data) {
RadPieChart.prototype.onPalettesChanged = function (data) {
var newPalettes = data.newValue;
this.loadPalette(newPalettes);
};
//NOTE: PieChart uses the label settings from first palette entry of the palette etnries collection,
//NOTE: RadPieChart uses the label settings from first palette entry of the palette etnries collection,
//since label properties are commot for the series
PieChart.prototype.applyLabelStyle = function () {
RadPieChart.prototype.applyLabelStyle = function () {
var paletteEntry = this.palettes[0].entries[0];

@@ -77,3 +76,3 @@ if (this.series.length > 0 && paletteEntry) {

};
PieChart.prototype.loadPalette = function (newPalettes) {
RadPieChart.prototype.loadPalette = function (newPalettes) {
if (!this.ios) {

@@ -91,3 +90,3 @@ return;

};
PieChart.prototype.getPaletteForSeries = function (source, series) {
RadPieChart.prototype.getPaletteForSeries = function (source, series) {
for (var i = 0; i < source.length; ++i) {

@@ -100,3 +99,3 @@ var palette = source[i];

};
PieChart.prototype.applyPaletteToSeries = function (palette, series) {
RadPieChart.prototype.applyPaletteToSeries = function (palette, series) {
var seriesPalette = TKChartPalette.new();

@@ -120,5 +119,5 @@ for (var i = 0; i < palette.entries.length; ++i) {

};
return PieChart;
})(commonModule.PieChart);
exports.PieChart = PieChart;
return RadPieChart;
})(commonModule.RadPieChart);
exports.RadPieChart = RadPieChart;
var PieSeries = (function (_super) {

@@ -174,5 +173,5 @@ __extends(PieSeries, _super);

/////////////////////******//////////////////////////////
var CartesianChart = (function (_super) {
__extends(CartesianChart, _super);
function CartesianChart() {
var RadCartesianChart = (function (_super) {
__extends(RadCartesianChart, _super);
function RadCartesianChart() {
_super.call(this);

@@ -183,3 +182,3 @@ this._ios = TKChart.new();

}
Object.defineProperty(CartesianChart.prototype, "ios", {
Object.defineProperty(RadCartesianChart.prototype, "ios", {
get: function () {

@@ -191,3 +190,3 @@ return this._ios;

});
CartesianChart.prototype.onSeriesChanged = function (data) {
RadCartesianChart.prototype.onSeriesChanged = function (data) {
_super.prototype.onSeriesChanged.call(this, data);

@@ -206,6 +205,6 @@ if (data.oldValue) {

};
CartesianChart.prototype.addSeries = function (newSeries) {
RadCartesianChart.prototype.addSeries = function (newSeries) {
this.loadChart();
};
CartesianChart.prototype.loadChart = function () {
RadCartesianChart.prototype.loadChart = function () {
if (this.ios && this.series) {

@@ -239,20 +238,20 @@ this.ios.removeAllData();

};
CartesianChart.prototype.updateGridStyle = function (newStyle) {
RadCartesianChart.prototype.updateGridStyle = function (newStyle) {
if (this.ios && newStyle) {
if (this.ios) {
this.ios.gridStyle().verticalLineStroke = newStyle.ios.verticalLineStroke;
this.ios.gridStyle.verticalLineStroke = newStyle.ios.verticalLineStroke;
;
this.ios.gridStyle().verticalLineAlternateStroke = newStyle.ios.verticalLineAlternateStroke;
this.ios.gridStyle().verticalLinesHidden = newStyle.ios.verticalLinesHidden;
this.ios.gridStyle().verticalFill = newStyle.ios.verticalFill;
this.ios.gridStyle().verticalAlternateFill = newStyle.ios.verticalAlternateFill;
this.ios.gridStyle().horizontalLineStroke = newStyle.ios.horizontalLineStroke;
this.ios.gridStyle().horizontalLineAlternateStroke = newStyle.ios.horizontalLineAlternateStroke;
this.ios.gridStyle().horizontalFill = newStyle.ios.horizontalFill;
this.ios.gridStyle().horizontalAlternateFill = newStyle.ios.horizontalAlternateFill;
this.ios.gridStyle().horizontalLinesHidden = newStyle.ios.horizontalLinesHidden;
this.ios.gridStyle.verticalLineAlternateStroke = newStyle.ios.verticalLineAlternateStroke;
this.ios.gridStyle.verticalLinesHidden = newStyle.ios.verticalLinesHidden;
this.ios.gridStyle.verticalFill = newStyle.ios.verticalFill;
this.ios.gridStyle.verticalAlternateFill = newStyle.ios.verticalAlternateFill;
this.ios.gridStyle.horizontalLineStroke = newStyle.ios.horizontalLineStroke;
this.ios.gridStyle.horizontalLineAlternateStroke = newStyle.ios.horizontalLineAlternateStroke;
this.ios.gridStyle.horizontalFill = newStyle.ios.horizontalFill;
this.ios.gridStyle.horizontalAlternateFill = newStyle.ios.horizontalAlternateFill;
this.ios.gridStyle.horizontalLinesHidden = newStyle.ios.horizontalLinesHidden;
}
}
};
CartesianChart.prototype.onGridChanged = function (data) {
RadCartesianChart.prototype.onGridChanged = function (data) {
if (this.ios) {

@@ -262,7 +261,7 @@ this.updateGridStyle(data.newValue);

};
CartesianChart.prototype.onPalettesChanged = function (data) {
RadCartesianChart.prototype.onPalettesChanged = function (data) {
var newPalettes = data.newValue;
this.loadPalette(newPalettes);
};
CartesianChart.prototype.loadPalette = function (palettes) {
RadCartesianChart.prototype.loadPalette = function (palettes) {
if (!this.ios) {

@@ -300,3 +299,3 @@ return;

};
CartesianChart.prototype.getPaletteForSeries = function (source, series) {
RadCartesianChart.prototype.getPaletteForSeries = function (source, series) {
for (var i = 0; i < source.length; ++i) {

@@ -309,3 +308,3 @@ var palette = source[i];

};
CartesianChart.prototype.applyPaletteToSeries = function (palette, series) {
RadCartesianChart.prototype.applyPaletteToSeries = function (palette, series) {
var seriesPalette = TKChartPalette.new();

@@ -331,5 +330,5 @@ for (var i = 0; i < palette.entries.length; ++i) {

};
return CartesianChart;
})(commonModule.CartesianChart);
exports.CartesianChart = CartesianChart;
return RadCartesianChart;
})(commonModule.RadCartesianChart);
exports.RadCartesianChart = RadCartesianChart;
////////////////////////////////////////////////////////////////////////

@@ -352,3 +351,3 @@ // LinearAxis

LinearAxis.prototype.onMajorStepChanged = function (data) {
if (data.newValue) {
if (!isNaN(+data.newValue)) {
this.ios.majorTickInterval = data.newValue;

@@ -358,3 +357,3 @@ }

LinearAxis.prototype.onMinimumChanged = function (data) {
if (data.newValue) {
if (!isNaN(+data.newValue)) {
if (this.ios.range) {

@@ -369,3 +368,3 @@ this.ios.range.minimum = data.newValue;

LinearAxis.prototype.onMaximumChanged = function (data) {
if (data.newValue) {
if (!isNaN(+data.newValue)) {
if (this.ios.range) {

@@ -512,11 +511,11 @@ this.ios.range.maximum = data.newValue;

////////////////////////////////////////////////////////////////////////
// CartesianChartGrid
// RadCartesianChartGrid
////////////////////////////////////////////////////////////////////////
var CartesianChartGrid = (function (_super) {
__extends(CartesianChartGrid, _super);
function CartesianChartGrid() {
var RadCartesianChartGrid = (function (_super) {
__extends(RadCartesianChartGrid, _super);
function RadCartesianChartGrid() {
_super.call(this);
this._ios = TKChartGridStyle.new();
}
Object.defineProperty(CartesianChartGrid.prototype, "ios", {
Object.defineProperty(RadCartesianChartGrid.prototype, "ios", {
get: function () {

@@ -528,9 +527,9 @@ return this._ios;

});
CartesianChartGrid.prototype.onVerticalLinesVisibleChanged = function (data) {
RadCartesianChartGrid.prototype.onVerticalLinesVisibleChanged = function (data) {
this.ios.verticalLinesHidden = (data.newValue == true) ? false : true;
};
CartesianChartGrid.prototype.onHorizontalLinesVisibleChanged = function (data) {
RadCartesianChartGrid.prototype.onHorizontalLinesVisibleChanged = function (data) {
this.ios.horizontalLinesHidden = (data.newValue == true) ? false : true;
};
CartesianChartGrid.prototype.onHorizontalStripLinesVisibleChanged = function (data) {
RadCartesianChartGrid.prototype.onHorizontalStripLinesVisibleChanged = function (data) {
if (data.newValue == false) {

@@ -541,3 +540,3 @@ this.ios.horizontalFill = null;

};
CartesianChartGrid.prototype.onVerticalStripLinesVisibleChanged = function (data) {
RadCartesianChartGrid.prototype.onVerticalStripLinesVisibleChanged = function (data) {
if (data.newValue == false) {

@@ -548,3 +547,3 @@ this.ios.verticalFill = null;

};
CartesianChartGrid.prototype.onVerticalStrokeColorChanged = function (data) {
RadCartesianChartGrid.prototype.onVerticalStrokeColorChanged = function (data) {
if (data.newValue) {

@@ -555,3 +554,3 @@ this.ios.verticalLineStroke.fill = TKSolidFill.solidFillWithColor((new colorModule.Color(data.newValue)).ios);

};
CartesianChartGrid.prototype.onHorizontalStrokeColorChanged = function (data) {
RadCartesianChartGrid.prototype.onHorizontalStrokeColorChanged = function (data) {
if (data.newValue) {

@@ -562,3 +561,3 @@ this.ios.horizontalLineStroke.fill = TKSolidFill.solidFillWithColor((new colorModule.Color(data.newValue)).ios);

};
CartesianChartGrid.prototype.onHorizontalStrokeWidthChanged = function (data) {
RadCartesianChartGrid.prototype.onHorizontalStrokeWidthChanged = function (data) {
if (data.newValue) {

@@ -568,3 +567,3 @@ this.ios.horizontalLineStroke.width = data.newValue;

};
CartesianChartGrid.prototype.onVerticalStrokeWidthChanged = function (data) {
RadCartesianChartGrid.prototype.onVerticalStrokeWidthChanged = function (data) {
if (data.newValue) {

@@ -574,3 +573,3 @@ this.ios.verticalLineStroke.width = data.newValue;

};
CartesianChartGrid.prototype.onVerticalStripLineColorChanged = function (data) {
RadCartesianChartGrid.prototype.onVerticalStripLineColorChanged = function (data) {
if (data.newValue) {

@@ -582,3 +581,3 @@ var colors = data.newValue.split(',');

};
CartesianChartGrid.prototype.onHorizontalStripLineColorChanged = function (data) {
RadCartesianChartGrid.prototype.onHorizontalStripLineColorChanged = function (data) {
if (data.newValue) {

@@ -590,20 +589,20 @@ var colors = data.newValue.split(',');

};
return CartesianChartGrid;
})(commonModule.CartesianChartGrid);
exports.CartesianChartGrid = CartesianChartGrid;
return RadCartesianChartGrid;
})(commonModule.RadCartesianChartGrid);
exports.RadCartesianChartGrid = RadCartesianChartGrid;
////////////////////////////////////////////////////////////////////////
// LegendView
// RadLegendView
////////////////////////////////////////////////////////////////////////
var LegendView = (function (_super) {
__extends(LegendView, _super);
function LegendView() {
var RadLegendView = (function (_super) {
__extends(RadLegendView, _super);
function RadLegendView() {
_super.apply(this, arguments);
}
LegendView.prototype.onPositionChanged = function (data) {
RadLegendView.prototype.onPositionChanged = function (data) {
this.updateLegendView(this._chart);
};
LegendView.prototype.onTitleChanged = function (data) {
RadLegendView.prototype.onTitleChanged = function (data) {
this.updateLegendView(this._chart);
};
LegendView.prototype.updateLegendPosition = function (chartView) {
RadLegendView.prototype.updateLegendPosition = function (chartView) {
if (!this.position) {

@@ -614,23 +613,23 @@ return;

case commonModule.ChartLegendPosition.Left:
chartView.ios.legend().style.position = TKChartLegendPosition.TKChartLegendPositionLeft;
chartView.ios.legend.style.position = TKChartLegendPosition.TKChartLegendPositionLeft;
break;
case commonModule.ChartLegendPosition.Right:
chartView.ios.legend().style.position = TKChartLegendPosition.TKChartLegendPositionRight;
chartView.ios.legend.style.position = TKChartLegendPosition.TKChartLegendPositionRight;
break;
case commonModule.ChartLegendPosition.Top:
chartView.ios.legend().style.position = TKChartLegendPosition.TKChartLegendPositionTop;
chartView.ios.legend.style.position = TKChartLegendPosition.TKChartLegendPositionTop;
break;
case commonModule.ChartLegendPosition.Bottom:
chartView.ios.legend().style.position = TKChartLegendPosition.TKChartLegendPositionBottom;
chartView.ios.legend.style.position = TKChartLegendPosition.TKChartLegendPositionBottom;
break;
case commonModule.ChartLegendPosition.Floating:
chartView.ios.legend().style.position = TKChartLegendPosition.TKChartLegendPositionFloating;
chartView.ios.legend.style.position = TKChartLegendPosition.TKChartLegendPositionFloating;
break;
}
};
LegendView.prototype.updateLegendView = function (chartView) {
RadLegendView.prototype.updateLegendView = function (chartView) {
if (!(chartView)) {
return;
}
if (!(chartView instanceof commonModule.ChartBase)) {
if (!(chartView instanceof commonModule.RadChartBase)) {
console.log("Warning: Wrong view is attached to chart legend!");

@@ -642,3 +641,3 @@ return;

}
chartView.ios.legend().hidden = false;
chartView.ios.legend.hidden = false;
if (this.position) {

@@ -648,10 +647,10 @@ this.updateLegendPosition(chartView);

if (this.title) {
chartView.ios.legend().titleLabel.text = this.title;
chartView.ios.legend().showTitle = true;
chartView.ios.legend.titleLabel.text = this.title;
chartView.ios.legend.showTitle = true;
}
//chartView.ios.legend().update();
//chartView.ios.legend.update();
};
return LegendView;
})(commonModule.LegendView);
exports.LegendView = LegendView;
return RadLegendView;
})(commonModule.RadLegendView);
exports.RadLegendView = RadLegendView;
////////////////////////////////////////////////////////////////////////

@@ -658,0 +657,0 @@ // BarSeries

{
"name": "nativescript-telerik-ui",
"version": "0.0.10",
"version": "0.1.0",
"description": "Telerik UI for NativeScript is a set of rich-ui, cross-platform components based on the native iOS and Android libraries provided by Telerik.",
"main": "index.js",
"nativescript": {
"ios": "1.2.0",
"android": "1.2.0"
},
"ios": "^1.3.0",
"android": "^1.3.0"
},
"scripts": {

@@ -21,9 +21,8 @@ "test": "echo \"Error: no test specified\" && exit 1"

"chart",
"sidedrawer"
"sidedrawer",
"listview"
],
"author": {
"name": "Telerik AD"
},
"license": "SEE LICENSE IN LICENSE.rtf",
"devDependencies": {
"author": "Telerik AD",
"license": "SEE LICENSE IN LICENSE",
"devDependencies": {
"del": "^1.2.0",

@@ -39,8 +38,3 @@ "gulp": "^3.9.0",

"yargs": "^3.18.0"
},
"readme": "# Welcome to Telerik UI for NativeScript\nTelerik UI for NativeScript is a suite of UI components targeting the NativeScript platform. The controls are based on the familiar [Telerik UI for Android](http://www.telerik.com/android-ui) and [Telerik UI for iOS](http://www.telerik.com/ios-ui) suites and expose common API for utilizing these suites Android and iOS cross-platform development.\n\n## Getting started\nFor more information on how to use Telerik UI for NativeScript, please visit the documentation website here [http://docs.telerik.com/devtools/nativescript-ui](http://docs.telerik.com/devtools/nativescript-ui).\n\n> Currently there are some manual steps that need to be followed in order to correctly integrate Telerik UI for NativeScript into your {N} app. You can find them here: [http://docs.telerik.com/devtools/nativescript-ui/getting-started](http://docs.telerik.com/devtools/nativescript-ui/getting-started)\n\nYou can also take a look at the SDK samples application which is available on GitHub and contains simple scenarios covering all features of the components in Telerik UI for NativeScript: [http://www.github.com/telerik/nativescript-ui-samples](http://www.github.com/telerik/nativescript-ui-samples).\n\n## Feedback\nTelerik UI for NativeScript is currently in Preview version so we are looking for your feedback. We will be grateful if you share your thoughts regarding:\n\n- API of the components\n- Ease of use\n- Features/Missing features\n- Documentation quality\n- Examples\n- ...whatever comes to your mind\n\nYou can get back to using our Google Groups forum:\n\n[http://groups.google.com/forum/#!forum/nativescript](http://groups.google.com/forum/#!forum/nativescript)\n\nYou can also submit issues on GitHub here:\n[http://www.github.com/telerik/nativescript-ui-samples](http://www.github.com/telerik/nativescript-ui-samples)",
"readmeFilename": "README.md",
"_id": "nativescript-telerik-ui@0.0.9",
"_shasum": "be124dc3d0f50610f65568181e4ef947675e7e4b",
"_from": "nativescript-telerik-ui@0.0.9"
}
}
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};

@@ -27,44 +26,44 @@ var dependencyObservable = require("ui/core/dependency-observable");

exports.DrawerTransitionBase = DrawerTransitionBase;
var SideDrawer = (function (_super) {
__extends(SideDrawer, _super);
function SideDrawer() {
var RadSideDrawer = (function (_super) {
__extends(RadSideDrawer, _super);
function RadSideDrawer() {
_super.call(this);
this._isOpen = false;
}
SideDrawer.onDrawerTransitionChanged = function (eventData) {
RadSideDrawer.onDrawerTransitionChanged = function (eventData) {
var classInstance = eventData.object;
classInstance._onDrawerTransitionChanged(eventData);
};
SideDrawer.onDrawerContentSizeChanged = function (eventData) {
RadSideDrawer.onDrawerContentSizeChanged = function (eventData) {
var classInstance = eventData.object;
classInstance._onDrawerContentSizeChanged(eventData);
};
SideDrawer.onDrawerLocationPropertyChanged = function (eventData) {
RadSideDrawer.onDrawerLocationPropertyChanged = function (eventData) {
var classInstance = eventData.object;
classInstance._onDrawerLocationChanged(eventData);
};
SideDrawer._onMainContentPropertyChanged = function (eventData) {
RadSideDrawer._onMainContentPropertyChanged = function (eventData) {
var classInstance = eventData.object;
classInstance._onMainContentChanged(eventData);
};
SideDrawer._onDrawerContentPropertyChanged = function (eventData) {
RadSideDrawer._onDrawerContentPropertyChanged = function (eventData) {
var classInstance = eventData.object;
classInstance._onDrawerContentChanged(eventData);
};
SideDrawer.prototype._onMainContentChanged = function (eventData) { };
RadSideDrawer.prototype._onMainContentChanged = function (eventData) { };
;
SideDrawer.prototype._onDrawerContentChanged = function (eventData) { };
RadSideDrawer.prototype._onDrawerContentChanged = function (eventData) { };
;
SideDrawer.prototype._onDrawerLocationChanged = function (eventData) { };
RadSideDrawer.prototype._onDrawerLocationChanged = function (eventData) { };
;
SideDrawer.prototype._onDrawerTransitionChanged = function (eventData) { };
RadSideDrawer.prototype._onDrawerTransitionChanged = function (eventData) { };
;
SideDrawer.prototype._onDrawerContentSizeChanged = function (eventData) { };
RadSideDrawer.prototype._onDrawerContentSizeChanged = function (eventData) { };
;
Object.defineProperty(SideDrawer.prototype, "drawerTransition", {
Object.defineProperty(RadSideDrawer.prototype, "drawerTransition", {
get: function () {
return this._getValue(SideDrawer.drawerTransitionProperty);
return this._getValue(RadSideDrawer.drawerTransitionProperty);
},
set: function (value) {
this._setValue(SideDrawer.drawerTransitionProperty, value);
this._setValue(RadSideDrawer.drawerTransitionProperty, value);
},

@@ -74,8 +73,8 @@ enumerable: true,

});
Object.defineProperty(SideDrawer.prototype, "drawerContentSize", {
Object.defineProperty(RadSideDrawer.prototype, "drawerContentSize", {
get: function () {
return this._getValue(SideDrawer.drawerContentSizeProperty);
return this._getValue(RadSideDrawer.drawerContentSizeProperty);
},
set: function (value) {
this._setValue(SideDrawer.drawerContentSizeProperty, value);
this._setValue(RadSideDrawer.drawerContentSizeProperty, value);
},

@@ -85,8 +84,8 @@ enumerable: true,

});
Object.defineProperty(SideDrawer.prototype, "drawerLocation", {
Object.defineProperty(RadSideDrawer.prototype, "drawerLocation", {
get: function () {
return this._getValue(SideDrawer.drawerLocationProperty);
return this._getValue(RadSideDrawer.drawerLocationProperty);
},
set: function (value) {
this._setValue(SideDrawer.drawerLocationProperty, value);
this._setValue(RadSideDrawer.drawerLocationProperty, value);
},

@@ -96,8 +95,8 @@ enumerable: true,

});
Object.defineProperty(SideDrawer.prototype, "drawerContent", {
Object.defineProperty(RadSideDrawer.prototype, "drawerContent", {
get: function () {
return this._getValue(SideDrawer.drawerContentProperty);
return this._getValue(RadSideDrawer.drawerContentProperty);
},
set: function (value) {
this._setValue(SideDrawer.drawerContentProperty, value);
this._setValue(RadSideDrawer.drawerContentProperty, value);
},

@@ -107,8 +106,8 @@ enumerable: true,

});
Object.defineProperty(SideDrawer.prototype, "mainContent", {
Object.defineProperty(RadSideDrawer.prototype, "mainContent", {
get: function () {
return this._getValue(SideDrawer.mainContentProperty);
return this._getValue(RadSideDrawer.mainContentProperty);
},
set: function (value) {
this._setValue(SideDrawer.mainContentProperty, value);
this._setValue(RadSideDrawer.mainContentProperty, value);
},

@@ -118,3 +117,3 @@ enumerable: true,

});
Object.defineProperty(SideDrawer.prototype, "delegate", {
Object.defineProperty(RadSideDrawer.prototype, "delegate", {
get: function () {

@@ -130,7 +129,7 @@ return this._delegate;

;
SideDrawer.prototype.showDrawer = function () {
RadSideDrawer.prototype.showDrawer = function () {
};
SideDrawer.prototype.closeDrawer = function () {
RadSideDrawer.prototype.closeDrawer = function () {
};
SideDrawer.prototype.getIsOpen = function () {
RadSideDrawer.prototype.getIsOpen = function () {
var androidIsOpen = false;

@@ -150,3 +149,3 @@ var iosIsOpen = false;

};
SideDrawer.prototype.toggleDrawerState = function () {
RadSideDrawer.prototype.toggleDrawerState = function () {
if (this.getIsOpen()) {

@@ -159,4 +158,3 @@ this.closeDrawer();

};
SideDrawer.prototype.showDrawerWithTransition = function (transition) { };
Object.defineProperty(SideDrawer.prototype, "_childrenCount", {
Object.defineProperty(RadSideDrawer.prototype, "_childrenCount", {
get: function () {

@@ -175,3 +173,3 @@ var count = 0;

});
SideDrawer.prototype._eachChildView = function (callback) {
RadSideDrawer.prototype._eachChildView = function (callback) {
if (this.mainContent) {

@@ -184,3 +182,3 @@ callback(this.mainContent);

};
Object.defineProperty(SideDrawer.prototype, "android", {
Object.defineProperty(RadSideDrawer.prototype, "android", {
get: function () {

@@ -192,3 +190,3 @@ return undefined;

});
Object.defineProperty(SideDrawer.prototype, "ios", {
Object.defineProperty(RadSideDrawer.prototype, "ios", {
get: function () {

@@ -200,9 +198,9 @@ return undefined;

});
SideDrawer.drawerTransitionProperty = new dependencyObservable.Property("drawerTransition", "SideDrawer", new proxy.PropertyMetadata(undefined, dependencyObservable.PropertyMetadataSettings.AffectsLayout, SideDrawer.onDrawerTransitionChanged));
SideDrawer.drawerContentSizeProperty = new dependencyObservable.Property("drawerContentSize", "SideDrawer", new proxy.PropertyMetadata(280, dependencyObservable.PropertyMetadataSettings.AffectsLayout, SideDrawer.onDrawerContentSizeChanged));
SideDrawer.drawerLocationProperty = new dependencyObservable.Property("drawerLocation", "SideDrawer", new proxy.PropertyMetadata(SideDrawerLocation.Left, dependencyObservable.PropertyMetadataSettings.AffectsLayout, SideDrawer.onDrawerLocationPropertyChanged));
SideDrawer.mainContentProperty = new dependencyObservable.Property("mainContent", "SideDrawer", new proxy.PropertyMetadata(undefined, dependencyObservable.PropertyMetadataSettings.AffectsLayout, SideDrawer._onMainContentPropertyChanged));
SideDrawer.drawerContentProperty = new dependencyObservable.Property("drawerContent", "SideDrawer", new proxy.PropertyMetadata(undefined, dependencyObservable.PropertyMetadataSettings.AffectsLayout, SideDrawer._onDrawerContentPropertyChanged));
return SideDrawer;
RadSideDrawer.drawerTransitionProperty = new dependencyObservable.Property("drawerTransition", "RadSideDrawer", new proxy.PropertyMetadata(undefined, dependencyObservable.PropertyMetadataSettings.AffectsLayout, RadSideDrawer.onDrawerTransitionChanged));
RadSideDrawer.drawerContentSizeProperty = new dependencyObservable.Property("drawerContentSize", "RadSideDrawer", new proxy.PropertyMetadata(280, dependencyObservable.PropertyMetadataSettings.AffectsLayout, RadSideDrawer.onDrawerContentSizeChanged));
RadSideDrawer.drawerLocationProperty = new dependencyObservable.Property("drawerLocation", "RadSideDrawer", new proxy.PropertyMetadata(SideDrawerLocation.Left, dependencyObservable.PropertyMetadataSettings.AffectsLayout, RadSideDrawer.onDrawerLocationPropertyChanged));
RadSideDrawer.mainContentProperty = new dependencyObservable.Property("mainContent", "RadSideDrawer", new proxy.PropertyMetadata(undefined, dependencyObservable.PropertyMetadataSettings.AffectsLayout, RadSideDrawer._onMainContentPropertyChanged));
RadSideDrawer.drawerContentProperty = new dependencyObservable.Property("drawerContent", "RadSideDrawer", new proxy.PropertyMetadata(undefined, dependencyObservable.PropertyMetadataSettings.AffectsLayout, RadSideDrawer._onDrawerContentPropertyChanged));
return RadSideDrawer;
})(view.View);
exports.SideDrawer = SideDrawer;
exports.RadSideDrawer = RadSideDrawer;
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};

@@ -12,15 +11,14 @@ var common = require("./sidedrawer-common");

require("utils/module-merge").merge(common, exports);
var SideDrawer = (function (_super) {
__extends(SideDrawer, _super);
function SideDrawer() {
var RadSideDrawer = (function (_super) {
__extends(RadSideDrawer, _super);
function RadSideDrawer() {
_super.call(this);
}
SideDrawer.prototype._createUI = function () {
RadSideDrawer.prototype._createUI = function () {
this._android = new com.telerik.android.primitives.widget.sidedrawer.RadSideDrawer(this._context);
this._android.setDrawerSize(utils.layout.getDisplayDensity() * this.drawerContentSize);
var that = this;
var that = new WeakRef(this);
this._android.addChangeListener(new com.telerik.android.primitives.widget.sidedrawer.DrawerChangeListener({
onDrawerOpening: function (drawer) {
var ownerDrawerDelegate = that.delegate;
console.log("opening");
var ownerDrawerDelegate = that.get().delegate;
if (ownerDrawerDelegate) {

@@ -35,4 +33,3 @@ var result = ownerDrawerDelegate.onDrawerOpening();

onDrawerOpened: function (drawer) {
var ownerDrawerDelegate = that.delegate;
console.log("opened");
var ownerDrawerDelegate = that.get().delegate;
if (ownerDrawerDelegate) {

@@ -43,4 +40,3 @@ ownerDrawerDelegate.onDrawerOpened();

onDrawerClosing: function (drawer) {
var ownerDrawerDelegate = that.delegate;
console.log("closing");
var ownerDrawerDelegate = that.get().delegate;
if (ownerDrawerDelegate) {

@@ -55,4 +51,3 @@ var result = ownerDrawerDelegate.onDrawerClosing();

onDrawerClosed: function (drawer) {
var ownerDrawerDelegate = that.delegate;
console.log("closed");
var ownerDrawerDelegate = that.get().delegate;
if (ownerDrawerDelegate) {

@@ -70,3 +65,3 @@ ownerDrawerDelegate.onDrawerClosed();

};
Object.defineProperty(SideDrawer.prototype, "android", {
Object.defineProperty(RadSideDrawer.prototype, "android", {
get: function () {

@@ -78,3 +73,3 @@ return this._android;

});
SideDrawer.prototype.onLoaded = function () {
RadSideDrawer.prototype.onLoaded = function () {
this._addView(this.mainContent);

@@ -84,3 +79,3 @@ this._addView(this.drawerContent);

};
SideDrawer.prototype.onUnloaded = function () {
RadSideDrawer.prototype.onUnloaded = function () {
this._removeView(this.mainContent);

@@ -90,3 +85,3 @@ this._removeView(this.drawerContent);

};
SideDrawer.prototype._onDrawerSizeChanged = function (data) {
RadSideDrawer.prototype._onDrawerSizeChanged = function (data) {
if (!this.android) {

@@ -99,3 +94,3 @@ return;

};
SideDrawer.prototype._onDrawerContentChanged = function (data) {
RadSideDrawer.prototype._onDrawerContentChanged = function (data) {
if (!this.android) {

@@ -116,3 +111,3 @@ return;

};
SideDrawer.prototype._onMainContentChanged = function (data) {
RadSideDrawer.prototype._onMainContentChanged = function (data) {
if (!this.android) {

@@ -133,3 +128,3 @@ return;

};
SideDrawer.prototype._onDrawerTransitionChanged = function (data) {
RadSideDrawer.prototype._onDrawerTransitionChanged = function (data) {
var newTransition = data.newValue;

@@ -143,3 +138,3 @@ if (!newTransition) {

};
SideDrawer.prototype._onDrawerLocationChanged = function (data) {
RadSideDrawer.prototype._onDrawerLocationChanged = function (data) {
_super.prototype._onDrawerLocationChanged.call(this, data);

@@ -154,14 +149,15 @@ if (!this.android) {

};
SideDrawer.prototype.setDrawerLocation = function (newLocation) {
switch (newLocation) {
case common.SideDrawerLocation.Left:
RadSideDrawer.prototype.setDrawerLocation = function (newLocation) {
var newLocationToLower = newLocation.toLocaleLowerCase();
switch (newLocationToLower) {
case common.SideDrawerLocation.Left.toLocaleLowerCase():
this.android.setDrawerLocation(com.telerik.android.primitives.widget.sidedrawer.DrawerLocation.LEFT);
break;
case common.SideDrawerLocation.Right:
case common.SideDrawerLocation.Right.toLocaleLowerCase():
this.android.setDrawerLocation(com.telerik.android.primitives.widget.sidedrawer.DrawerLocation.RIGHT);
break;
case common.SideDrawerLocation.Top:
case common.SideDrawerLocation.Top.toLocaleLowerCase():
this.android.setDrawerLocation(com.telerik.android.primitives.widget.sidedrawer.DrawerLocation.TOP);
break;
case common.SideDrawerLocation.Bottom:
case common.SideDrawerLocation.Bottom.toLocaleLowerCase():
this.android.setDrawerLocation(com.telerik.android.primitives.widget.sidedrawer.DrawerLocation.BOTTOM);

@@ -171,3 +167,3 @@ break;

};
SideDrawer.prototype._onBindingContextChanged = function (oldValue, newValue) {
RadSideDrawer.prototype._onBindingContextChanged = function (oldValue, newValue) {
_super.prototype._onBindingContextChanged.call(this, oldValue, newValue);

@@ -181,3 +177,3 @@ if (this.mainContent instanceof view.View) {

};
SideDrawer.prototype._addViewToNativeVisualTree = function (child) {
RadSideDrawer.prototype._addViewToNativeVisualTree = function (child) {
if (this._android && child.android) {

@@ -195,3 +191,3 @@ if (this.mainContent === child) {

};
SideDrawer.prototype._removeViewFromNativeVisualTree = function (child) {
RadSideDrawer.prototype._removeViewFromNativeVisualTree = function (child) {
if (this._android && child.android) {

@@ -208,3 +204,3 @@ if (this.mainContent === child) {

};
SideDrawer.prototype.closeDrawer = function () {
RadSideDrawer.prototype.closeDrawer = function () {
if (this.android) {

@@ -215,3 +211,3 @@ this.android.setIsOpen(false);

};
SideDrawer.prototype.showDrawer = function () {
RadSideDrawer.prototype.showDrawer = function () {
if (this.android) {

@@ -222,11 +218,5 @@ this.android.setIsOpen(true);

};
SideDrawer.prototype.showDrawerWithTransition = function (transition) {
if (this.android) {
this.android.setDrawerTransition(transition.getNativeContent());
this.showDrawer();
}
};
return SideDrawer;
})(common.SideDrawer);
exports.SideDrawer = SideDrawer;
return RadSideDrawer;
})(common.RadSideDrawer);
exports.RadSideDrawer = RadSideDrawer;
var DrawerTransitionBase = (function (_super) {

@@ -233,0 +223,0 @@ __extends(DrawerTransitionBase, _super);

var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
__.prototype = b.prototype;
d.prototype = new __();
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};

@@ -14,5 +13,5 @@ var commonModule = require("./sidedrawer-common");

////////////////////////////////////////////////
var SideDrawer = (function (_super) {
__extends(SideDrawer, _super);
function SideDrawer() {
var RadSideDrawer = (function (_super) {
__extends(RadSideDrawer, _super);
function RadSideDrawer() {
_super.call(this);

@@ -29,3 +28,3 @@ this._mainContentHost = new contentView.ContentView();

}
Object.defineProperty(SideDrawer.prototype, "ios", {
Object.defineProperty(RadSideDrawer.prototype, "ios", {
get: function () {

@@ -38,17 +37,22 @@ return this._ios;

//data changed event handlers
SideDrawer.prototype._onDrawerLocationChanged = function (eventData) {
RadSideDrawer.prototype._onDrawerLocationChanged = function (eventData) {
var newLocation = eventData.newValue;
if (!eventData.newValue) {
return;
}
switch (eventData.newValue) {
case commonModule.SideDrawerLocation.Left:
this.setDrawerLocation(newLocation);
};
RadSideDrawer.prototype.setDrawerLocation = function (newLocation) {
var newLocationToLower = newLocation.toLocaleLowerCase();
switch (newLocationToLower) {
case commonModule.SideDrawerLocation.Left.toLocaleLowerCase():
this._ios.sideDrawer.position = TKSideDrawerPosition.TKSideDrawerPositionLeft;
break;
case commonModule.SideDrawerLocation.Right:
case commonModule.SideDrawerLocation.Right.toLocaleLowerCase():
this._ios.sideDrawer.position = TKSideDrawerPosition.TKSideDrawerPositionRight;
break;
case commonModule.SideDrawerLocation.Top:
case commonModule.SideDrawerLocation.Top.toLocaleLowerCase():
this._ios.sideDrawer.position = TKSideDrawerPosition.TKSideDrawerPositionTop;
break;
case commonModule.SideDrawerLocation.Bottom:
case commonModule.SideDrawerLocation.Bottom.toLocaleLowerCase():
this._ios.sideDrawer.position = TKSideDrawerPosition.TKSideDrawerPositionBottom;

@@ -58,11 +62,11 @@ break;

};
SideDrawer.prototype._onDrawerContentSizeChanged = function (eventData) {
RadSideDrawer.prototype._onDrawerContentSizeChanged = function (eventData) {
var value = eventData.newValue;
this._ios.sideDrawer.width = value;
};
SideDrawer.prototype._onDrawerTransitionChanged = function (eventData) {
RadSideDrawer.prototype._onDrawerTransitionChanged = function (eventData) {
var value = eventData.newValue;
this._ios.sideDrawer.transition = value.getNativeContent();
};
SideDrawer.prototype._onMainContentChanged = function (eventData) {
RadSideDrawer.prototype._onMainContentChanged = function (eventData) {
var drawer = eventData.object;

@@ -74,3 +78,3 @@ var newContent = eventData.newValue;

};
SideDrawer.prototype._onDrawerContentChanged = function (eventData) {
RadSideDrawer.prototype._onDrawerContentChanged = function (eventData) {
var drawer = eventData.object;

@@ -82,3 +86,3 @@ var newContent = eventData.newValue;

};
Object.defineProperty(SideDrawer.prototype, "_nativeView", {
Object.defineProperty(RadSideDrawer.prototype, "_nativeView", {
get: function () {

@@ -90,3 +94,3 @@ return this._ios;

});
SideDrawer.prototype.closeDrawer = function () {
RadSideDrawer.prototype.closeDrawer = function () {
if (this._ios) {

@@ -97,3 +101,3 @@ this._ios.sideDrawer.dismiss();

};
SideDrawer.prototype.showDrawer = function () {
RadSideDrawer.prototype.showDrawer = function () {
if (this._ios) {

@@ -104,6 +108,3 @@ this._ios.sideDrawer.show();

};
SideDrawer.prototype.showDrawerWithTransition = function (transition) {
this._ios.sideDrawer.showWithTransition(transition.getNativeContent());
};
SideDrawer.prototype.onLoaded = function () {
RadSideDrawer.prototype.onLoaded = function () {
this._addView(this._mainContentHost);

@@ -114,3 +115,3 @@ this._addView(this._drawerContentHost);

};
SideDrawer.prototype.onUnloaded = function () {
RadSideDrawer.prototype.onUnloaded = function () {
this._removeView(this._mainContentHost);

@@ -120,3 +121,3 @@ this._removeView(this._drawerContentHost);

};
SideDrawer.prototype._onBindingContextChanged = function (oldValue, newValue) {
RadSideDrawer.prototype._onBindingContextChanged = function (oldValue, newValue) {
_super.prototype._onBindingContextChanged.call(this, oldValue, newValue);

@@ -130,3 +131,3 @@ if (this._mainContentHost instanceof viewModule.View) {

};
SideDrawer.prototype.onLayout = function (left, top, right, bottom) {
RadSideDrawer.prototype.onLayout = function (left, top, right, bottom) {
var width = right - left;

@@ -143,3 +144,3 @@ var height = bottom - top;

};
SideDrawer.prototype.onMeasure = function (widthMeasureSpec, heightMeasureSpec) {
RadSideDrawer.prototype.onMeasure = function (widthMeasureSpec, heightMeasureSpec) {
var pos = this._ios.sideDrawer.position;

@@ -161,5 +162,5 @@ if (pos == TKSideDrawerPosition.TKSideDrawerPositionTop || pos == TKSideDrawerPosition.TKSideDrawerPositionBottom) {

};
return SideDrawer;
})(commonModule.SideDrawer);
exports.SideDrawer = SideDrawer;
return RadSideDrawer;
})(commonModule.RadSideDrawer);
exports.RadSideDrawer = RadSideDrawer;
////////////////////////////////////////////////

@@ -166,0 +167,0 @@ // TRANSITIONS

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc