@@ -793,11 +793,7 @@ var __meta__ = {
793
793
Upload : "input" ,
794
794
Validator : "form" ,
795
795
Button : "button" ,
796
- MobileButton : "a" ,
797
- MobileBackButton : "a" ,
798
- MobileDetailButton : "a" ,
799
796
ListView : "ul" ,
800
- MobileListView : "ul" ,
801
797
ScrollView : "div" ,
802
798
PanelBar : "ul" ,
803
799
TreeView : "ul" ,
@@ -807,29 +803,11 @@ var __meta__ = {
807
803
Switch : "input"
808
804
} ;
809
805
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 ) {
833
811
MANUAL_DIRECTIVES . push ( widget ) ;
834
812
widget = "kendo" + widget ;
835
813
module . directive ( widget , function ( ) {
@@ -884,9 +862,6 @@ var __meta__ = {
884
862
return ;
885
863
}
886
864
887
- // here name should be like kendoMobileListView so kendo-mobile-list-view works,
888
- // and shortcut like kendoMobilelistview, for kendo-mobilelistview
889
-
890
865
make ( name , name ) ;
891
866
if ( shortcut != name ) {
892
867
make ( shortcut , name ) ;
@@ -1240,183 +1215,8 @@ var __meta__ = {
1240
1215
}
1241
1216
} ) ;
1242
1217
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
-
1416
1218
var WIDGET_TEMPLATE_OPTIONS = {
1417
1219
"TreeMap" : [ "Template" ] ,
1418
- "MobileListView" : [ "HeaderTemplate" , "Template" ] ,
1419
- "MobileScrollView" : [ "EmptyTemplate" , "Template" ] ,
1420
1220
"Grid" : [ "AltRowTemplate" , "DetailTemplate" , "RowTemplate" ] ,
1421
1221
"ListView" : [ "EditTemplate" , "Template" , "AltTemplate" ] ,
1422
1222
"Pager" : [ "SelectTemplate" , "LinkTemplate" ] ,
@@ -1479,4 +1279,3 @@ var __meta__ = {
1479
1279
1480
1280
1481
1281
} ) ( window . kendo . jQuery , window . angular ) ;
1482
-
0 commit comments