Skip to content

Commit 639e9ca

Browse files
committed
Sync with Kendo UI Professional
1 parent cebe558 commit 639e9ca

27 files changed

+176
-7786
lines changed

README.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -118,15 +118,6 @@ Kendo UI Core is a free and open-source subset of Kendo UI. The following table
118118
| [ProgressBar](https://demos.telerik.com/kendo-ui/progressbar/index) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
119119
| [Sortable](https://demos.telerik.com/kendo-ui/sortable/index) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
120120
| [Styling](https://demos.telerik.com/kendo-ui/styling/index) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
121-
| **Hybrid UI** |
122-
| [Widgets](https://demos.telerik.com/kendo-ui/m/index) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
123-
| [Mobile Application](https://demos.telerik.com/kendo-ui/m/index) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
124-
| [Mobile Forms](https://demos.telerik.com/kendo-ui/m/index) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
125-
| [Mobile Layout](https://demos.telerik.com/kendo-ui/m/index) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
126-
| [Mobile SplitView](https://demos.telerik.com/kendo-ui/m/index) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
127-
| [Mobile Theme Builder](https://demos.telerik.com/kendo-ui/mobilethemebuilder)| :white_check_mark: | :white_check_mark: | :white_check_mark: |
128-
| [Mobile Touch Events](https://demos.telerik.com/kendo-ui/m/index) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
129-
| [Mobile View](https://demos.telerik.com/kendo-ui/m/index) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
130121
| **Tools, Frameworks and Utilities** |
131122
| [Chrome Inspector](https://chrome.google.com/webstore/category/apps) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
132123
| [DataSource](https://demos.telerik.com/kendo-ui/datasource/index) | :white_check_mark: | :white_check_mark: | :white_check_mark: |
@@ -289,4 +280,4 @@ This project has been released under the [Apache License, version 2.0](http://ww
289280

290281
*Copyright © 2023 Progress Software Corporation and/or its subsidiaries or affiliates. All Rights Reserved.*
291282

292-
*Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*
283+
*Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries.*

src/kendo.angular.js

Lines changed: 5 additions & 206 deletions
Original file line numberDiff line numberDiff line change
@@ -793,11 +793,7 @@ var __meta__ = {
793793
Upload: "input",
794794
Validator: "form",
795795
Button: "button",
796-
MobileButton: "a",
797-
MobileBackButton: "a",
798-
MobileDetailButton: "a",
799796
ListView: "ul",
800-
MobileListView: "ul",
801797
ScrollView: "div",
802798
PanelBar: "ul",
803799
TreeView: "ul",
@@ -807,29 +803,11 @@ var __meta__ = {
807803
Switch: "input"
808804
};
809805

810-
var SKIP_SHORTCUTS = [
811-
'MobileView',
812-
'MobileDrawer',
813-
'MobileLayout',
814-
'MobileSplitView',
815-
'MobilePane',
816-
'MobileModalView'
817-
];
818-
819-
var MANUAL_DIRECTIVES = [
820-
'MobileApplication',
821-
'MobileView',
822-
'MobileModalView',
823-
'MobileLayout',
824-
'MobileActionSheet',
825-
'MobileDrawer',
826-
'MobileSplitView',
827-
'MobilePane',
828-
'MobileScrollView',
829-
'MobilePopOver'
830-
];
831-
832-
angular.forEach(['MobileNavBar', 'MobileButton', 'MobileBackButton', 'MobileDetailButton', 'MobileTabStrip', 'MobileScrollView', 'MobileScroller'], function(widget) {
806+
var SKIP_SHORTCUTS = [];
807+
808+
var MANUAL_DIRECTIVES = [];
809+
810+
angular.forEach(['MobileScroller'], function(widget) {
833811
MANUAL_DIRECTIVES.push(widget);
834812
widget = "kendo" + widget;
835813
module.directive(widget, function() {
@@ -884,9 +862,6 @@ var __meta__ = {
884862
return;
885863
}
886864

887-
// here name should be like kendoMobileListView so kendo-mobile-list-view works,
888-
// and shortcut like kendoMobilelistview, for kendo-mobilelistview
889-
890865
make(name, name);
891866
if (shortcut != name) {
892867
make(shortcut, name);
@@ -1240,183 +1215,8 @@ var __meta__ = {
12401215
}
12411216
});
12421217

1243-
{
1244-
// mobile/ButtonGroup does not have a "value" method, but looks
1245-
// like it would be useful. We provide it here.
1246-
1247-
defadvice("mobile.ui.ButtonGroup", "value", function(mew) {
1248-
var self = this.self;
1249-
if (mew != null) {
1250-
self.select(self.element.children("li.km-button").eq(mew));
1251-
self.trigger("change");
1252-
self.trigger("select", { index: self.selectedIndex });
1253-
}
1254-
return self.selectedIndex;
1255-
});
1256-
1257-
defadvice("mobile.ui.ButtonGroup", "_select", function() {
1258-
this.next();
1259-
this.self.trigger("change");
1260-
});
1261-
}
1262-
1263-
// mobile directives
1264-
module
1265-
.directive('kendoMobileApplication', function() {
1266-
return {
1267-
terminal: true,
1268-
link: function(scope, element, attrs) {
1269-
createWidget(scope, element, attrs, 'kendoMobileApplication', 'kendoMobileApplication');
1270-
}
1271-
};
1272-
}).directive('kendoMobileView', function() {
1273-
return {
1274-
scope: true,
1275-
link: {
1276-
pre: function(scope, element, attrs) {
1277-
attrs.defaultOptions = scope.viewOptions;
1278-
attrs._instance = createWidget(scope, element, attrs, 'kendoMobileView', 'kendoMobileView');
1279-
},
1280-
1281-
post: function(scope, element, attrs) {
1282-
attrs._instance._layout();
1283-
attrs._instance._scroller();
1284-
}
1285-
}
1286-
};
1287-
}).directive('kendoMobileDrawer', function() {
1288-
return {
1289-
scope: true,
1290-
link: {
1291-
pre: function(scope, element, attrs) {
1292-
attrs.defaultOptions = scope.viewOptions;
1293-
attrs._instance = createWidget(scope, element, attrs, 'kendoMobileDrawer', 'kendoMobileDrawer');
1294-
},
1295-
1296-
post: function(scope, element, attrs) {
1297-
attrs._instance._layout();
1298-
attrs._instance._scroller();
1299-
}
1300-
}
1301-
};
1302-
}).directive('kendoMobileModalView', function() {
1303-
return {
1304-
scope: true,
1305-
link: {
1306-
pre: function(scope, element, attrs) {
1307-
attrs.defaultOptions = scope.viewOptions;
1308-
attrs._instance = createWidget(scope, element, attrs, 'kendoMobileModalView', 'kendoMobileModalView');
1309-
},
1310-
1311-
post: function(scope, element, attrs) {
1312-
attrs._instance._layout();
1313-
attrs._instance._scroller();
1314-
}
1315-
}
1316-
};
1317-
}).directive('kendoMobileSplitView', function() {
1318-
return {
1319-
terminal: true,
1320-
link: {
1321-
pre: function(scope, element, attrs) {
1322-
attrs.defaultOptions = scope.viewOptions;
1323-
attrs._instance = createWidget(scope, element, attrs, 'kendoMobileSplitView', 'kendoMobileSplitView');
1324-
},
1325-
1326-
post: function(scope, element, attrs) {
1327-
attrs._instance._layout();
1328-
}
1329-
}
1330-
};
1331-
}).directive('kendoMobilePane', function() {
1332-
return {
1333-
terminal: true,
1334-
link: {
1335-
pre: function(scope, element, attrs) {
1336-
attrs.defaultOptions = scope.viewOptions;
1337-
createWidget(scope, element, attrs, 'kendoMobilePane', 'kendoMobilePane');
1338-
}
1339-
}
1340-
};
1341-
}).directive('kendoMobileLayout', function() {
1342-
return {
1343-
link: {
1344-
pre: function(scope, element, attrs) {
1345-
createWidget(scope, element, attrs, 'kendoMobileLayout', 'kendoMobileLayout');
1346-
}
1347-
}
1348-
};
1349-
}).directive('kendoMobileActionSheet', function() {
1350-
return {
1351-
restrict: "A",
1352-
link: function(scope, element, attrs) {
1353-
element.find("a[k-action]").each(function() {
1354-
$(this).attr("data-" + kendo.ns + "action", $(this).attr("k-action"));
1355-
});
1356-
1357-
createWidget(scope, element, attrs, 'kendoMobileActionSheet', 'kendoMobileActionSheet');
1358-
}
1359-
};
1360-
}).directive('kendoMobilePopOver', function() {
1361-
return {
1362-
terminal: true,
1363-
link: {
1364-
pre: function(scope, element, attrs) {
1365-
attrs.defaultOptions = scope.viewOptions;
1366-
createWidget(scope, element, attrs, 'kendoMobilePopOver', 'kendoMobilePopOver');
1367-
}
1368-
}
1369-
};
1370-
}).directive('kendoViewTitle', function() {
1371-
return {
1372-
restrict: "E",
1373-
replace: true,
1374-
template: function(element) {
1375-
return "<span data-" + kendo.ns + "role='view-title'>" + element.html() + "</span>";
1376-
}
1377-
};
1378-
}).directive('kendoMobileHeader', function() {
1379-
return {
1380-
restrict: "E",
1381-
link: function(scope, element) {
1382-
element.addClass("km-header").attr("data-role", "header");
1383-
}
1384-
};
1385-
}).directive('kendoMobileFooter', function() {
1386-
return {
1387-
restrict: 'E',
1388-
link: function(scope, element) {
1389-
element.addClass("km-footer").attr("data-role", "footer");
1390-
}
1391-
};
1392-
}).directive('kendoMobileScrollViewPage', function() {
1393-
return {
1394-
restrict: "E",
1395-
replace: true,
1396-
template: function(element) {
1397-
return "<div data-" + kendo.ns + "role='page'>" + element.html() + "</div>";
1398-
}
1399-
};
1400-
});
1401-
1402-
angular.forEach(['align', 'icon', 'rel', 'transition', 'actionsheetContext'], function(attr) {
1403-
var kAttr = "k" + attr.slice(0, 1).toUpperCase() + attr.slice(1);
1404-
1405-
module.directive(kAttr, function() {
1406-
return {
1407-
restrict: 'A',
1408-
priority: 2,
1409-
link: function(scope, element, attrs) {
1410-
element.attr(kendo.attr(kendo.toHyphens(attr)), scope.$eval(attrs[kAttr]));
1411-
}
1412-
};
1413-
});
1414-
});
1415-
14161218
var WIDGET_TEMPLATE_OPTIONS = {
14171219
"TreeMap": [ "Template" ],
1418-
"MobileListView": [ "HeaderTemplate", "Template" ],
1419-
"MobileScrollView": [ "EmptyTemplate", "Template" ],
14201220
"Grid": [ "AltRowTemplate", "DetailTemplate", "RowTemplate" ],
14211221
"ListView": [ "EditTemplate", "Template", "AltTemplate" ],
14221222
"Pager": [ "SelectTemplate", "LinkTemplate" ],
@@ -1479,4 +1279,3 @@ var __meta__ = {
14791279

14801280

14811281
})(window.kendo.jQuery, window.angular);
1482-

src/kendo.core.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3663,10 +3663,6 @@ function pad(number, digits, end) {
36633663
kendo.init(element, kendo.mobile.ui, kendo.ui, kendo.dataviz.ui);
36643664
},
36653665

3666-
appLevelNativeScrolling: function() {
3667-
return kendo.mobile.application && kendo.mobile.application.options && kendo.mobile.application.options.useNativeScrolling;
3668-
},
3669-
36703666
roles: {},
36713667

36723668
ui: {
@@ -4877,22 +4873,6 @@ function pad(number, digits, end) {
48774873
return start;
48784874
};
48794875

4880-
kendo.compileMobileDirective = function(element, scope) {
4881-
var angular = window.angular;
4882-
4883-
element.attr("data-" + kendo.ns + "role", element[0].tagName.toLowerCase().replace('kendo-mobile-', '').replace('-', ''));
4884-
4885-
angular.element(element).injector().invoke(["$compile", function($compile) {
4886-
$compile(element)(scope);
4887-
4888-
if (!/^\$(digest|apply)$/.test(scope.$$phase)) {
4889-
scope.$digest();
4890-
}
4891-
}]);
4892-
4893-
return kendo.widgetInstance(element, kendo.mobile.ui);
4894-
};
4895-
48964876
kendo.antiForgeryTokens = function() {
48974877
var tokens = { },
48984878
csrf_token = $("meta[name=csrf-token],meta[name=_csrf]").attr("content"),

0 commit comments

Comments
 (0)