@breakside/jskit 2023.3.0 → 2023.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Frameworks/DOM.jsframework/Info.json +2 -2
- package/Frameworks/DOM.jsframework/io.breakside.JSKit.DOM-bundle.js +2 -2
- package/Frameworks/FontKit.jsframework/Info.json +2 -2
- package/Frameworks/FontKit.jsframework/io.breakside.JSKit.FontKit-bundle.js +2 -2
- package/Frameworks/Foundation.jsframework/Info.json +2 -2
- package/Frameworks/Foundation.jsframework/JS/Foundation.js +1 -0
- package/Frameworks/Foundation.jsframework/JS/JSAttributedString.js +3 -0
- package/Frameworks/Foundation.jsframework/JS/JSBundle+HTML.js +2 -1
- package/Frameworks/Foundation.jsframework/JS/JSDiff.js +99 -0
- package/Frameworks/Foundation.jsframework/io.breakside.JSKit.Foundation-bundle.js +2 -2
- package/Frameworks/Foundation.jsframework/sources.json +2 -0
- package/Frameworks/SecurityKit.jsframework/Info.json +2 -2
- package/Frameworks/SecurityKit.jsframework/io.breakside.JSKit.SecurityKit-bundle.js +2 -2
- package/Info.json +2 -2
- package/Node/io.breakside.jskit-bundle.js +2 -2
- package/Node/jskit +1 -0
- package/Root/Frameworks/APIKit/Info.yaml +1 -1
- package/Root/Frameworks/APIKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/AuthKit/Info.yaml +1 -1
- package/Root/Frameworks/CSSOM/Info.yaml +1 -1
- package/Root/Frameworks/ChartKit/Info.yaml +1 -1
- package/Root/Frameworks/ConferenceKit/Info.yaml +1 -1
- package/Root/Frameworks/DBKit/Info.yaml +1 -1
- package/Root/Frameworks/DOM/Info.yaml +1 -1
- package/Root/Frameworks/Dispatch/Info.yaml +1 -1
- package/Root/Frameworks/FontKit/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/Foundation.js +1 -0
- package/Root/Frameworks/Foundation/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/JSAttributedString.js +3 -0
- package/Root/Frameworks/Foundation/JSBundle+HTML.js +2 -1
- package/Root/Frameworks/Foundation/JSDiff.js +99 -0
- package/Root/Frameworks/ImageKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
- package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
- package/Root/Frameworks/PDFKit/Info.yaml +1 -1
- package/Root/Frameworks/QRKit/Info.yaml +1 -1
- package/Root/Frameworks/SearchKit/Info.yaml +1 -1
- package/Root/Frameworks/SecurityKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKit/Info.yaml +1 -1
- package/Root/Frameworks/ServerKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/TestKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/Info.yaml +1 -1
- package/Root/Frameworks/UIKit/UIActivityIndicatorView.js +1 -1
- package/Root/Frameworks/UIKit/UIBrowserView.js +1 -1
- package/Root/Frameworks/UIKit/UIButton.js +2 -2
- package/Root/Frameworks/UIKit/UICollectionView.js +3 -3
- package/Root/Frameworks/UIKit/UICollectionViewCell.js +4 -1
- package/Root/Frameworks/UIKit/UIColorWell.js +6 -6
- package/Root/Frameworks/UIKit/UIDisplayServer.js +5 -1
- package/Root/Frameworks/UIKit/UIHTMLTextField.js +1 -1
- package/Root/Frameworks/UIKit/UILabel.js +1 -1
- package/Root/Frameworks/UIKit/UIListView.js +4 -4
- package/Root/Frameworks/UIKit/UIListViewCell.js +4 -1
- package/Root/Frameworks/UIKit/UIMenu.js +7 -7
- package/Root/Frameworks/UIKit/UINavigationBar.js +2 -2
- package/Root/Frameworks/UIKit/UIPopupButton.js +5 -5
- package/Root/Frameworks/UIKit/UIProgressIndicatorView.js +1 -1
- package/Root/Frameworks/UIKit/UISlider.js +6 -6
- package/Root/Frameworks/UIKit/UISplitView.js +9 -9
- package/Root/Frameworks/UIKit/UISplitViewController.js +3 -0
- package/Root/Frameworks/UIKit/UIStackView.js +1 -1
- package/Root/Frameworks/UIKit/UITabView.js +5 -5
- package/Root/Frameworks/UIKit/UITextField.js +3 -3
- package/Root/Frameworks/UIKit/UIToolbar.js +1 -1
- package/Root/Frameworks/UIKit/UIView.js +4 -4
- package/Root/Frameworks/UIKit/UIWindow.js +3 -3
- package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
- package/package.json +1 -1
|
@@ -61,7 +61,7 @@ JSClass("UIActivityIndicatorView", UIView, {
|
|
|
61
61
|
var image = spec.valueForKey("spriteImage", JSImage);
|
|
62
62
|
var singleFrameHeight;
|
|
63
63
|
if (spec.containsKey('singleFrameHeight')){
|
|
64
|
-
singleFrameHeight = spec.valueForKey("singleFrameHeight");
|
|
64
|
+
singleFrameHeight = spec.valueForKey("singleFrameHeight", Number);
|
|
65
65
|
}
|
|
66
66
|
this.initWithSpriteImage(image, singleFrameHeight);
|
|
67
67
|
}
|
|
@@ -30,7 +30,7 @@ JSClass("UIBrowserView", UIScrollView, {
|
|
|
30
30
|
initWithSpec: function(spec){
|
|
31
31
|
UIBrowserView.$super.initWithSpec.call(this, spec);
|
|
32
32
|
if (spec.containsKey('dividerSize')){
|
|
33
|
-
this._dividerSize = spec.valueForKey("dividerSize");
|
|
33
|
+
this._dividerSize = spec.valueForKey("dividerSize", Number);
|
|
34
34
|
}
|
|
35
35
|
if (spec.containsKey('dividerColor')){
|
|
36
36
|
this._dividerColor = spec.valueForKey("dividerColor", JSColor);
|
|
@@ -367,7 +367,7 @@ JSClass("UIButtonStyler", UIControlStyler, {
|
|
|
367
367
|
this.titleInsets = spec.valueForKey("titleInsets", JSInsets);
|
|
368
368
|
}
|
|
369
369
|
if (spec.containsKey('titleImageSpacing')){
|
|
370
|
-
this.titleImageSpacing = spec.valueForKey("titleImageSpacing");
|
|
370
|
+
this.titleImageSpacing = spec.valueForKey("titleImageSpacing", Number);
|
|
371
371
|
}
|
|
372
372
|
if (spec.containsKey('font')){
|
|
373
373
|
this.font = spec.valueForKey("font", JSFont);
|
|
@@ -531,7 +531,7 @@ JSClass("UIButtonCustomStyler", UIButtonStyler, {
|
|
|
531
531
|
this.overTitleColor = spec.valueForKey("overTitleColor", JSColor);
|
|
532
532
|
}
|
|
533
533
|
if (spec.containsKey('cornerRadius')){
|
|
534
|
-
this.cornerRadius = spec.valueForKey("cornerRadius");
|
|
534
|
+
this.cornerRadius = spec.valueForKey("cornerRadius", Number);
|
|
535
535
|
}
|
|
536
536
|
this._commonInit();
|
|
537
537
|
},
|
|
@@ -83,7 +83,7 @@ JSClass("UICollectionView", UIScrollView, {
|
|
|
83
83
|
this._styler = spec.valueForKey("styler", UICollectionView.Styler);
|
|
84
84
|
}
|
|
85
85
|
if (spec.containsKey('layout')){
|
|
86
|
-
this.collectionViewLayout = spec.valueForKey("layout"
|
|
86
|
+
this.collectionViewLayout = spec.valueForKey("layout");
|
|
87
87
|
}else{
|
|
88
88
|
throw new Error("layout is a required property in a UICollectionView spec file");
|
|
89
89
|
}
|
|
@@ -109,7 +109,7 @@ JSClass("UICollectionView", UIScrollView, {
|
|
|
109
109
|
if (typeof(reuse) === 'string'){
|
|
110
110
|
this.registerCellClassForReuseIdentifier(JSClass.FromName(reuse), identifier);
|
|
111
111
|
}else{
|
|
112
|
-
this.registerCellClassForReuseIdentifier(JSClass.FromName(reuse.valueForKey('className')), identifier, reuse.valueForKey('styler'));
|
|
112
|
+
this.registerCellClassForReuseIdentifier(JSClass.FromName(reuse.valueForKey('className')), identifier, reuse.valueForKey('styler', UICollectionView.Styler));
|
|
113
113
|
}
|
|
114
114
|
|
|
115
115
|
}
|
|
@@ -123,7 +123,7 @@ JSClass("UICollectionView", UIScrollView, {
|
|
|
123
123
|
if (typeof(reuse) === 'string'){
|
|
124
124
|
this.registerViewClassForReuseIdentifier(JSClass.FromName(reuse), identifier);
|
|
125
125
|
}else{
|
|
126
|
-
this.registerViewClassForReuseIdentifier(JSClass.FromName(reuse.valueForKey('className')), identifier, reuse.valueForKey('styler'));
|
|
126
|
+
this.registerViewClassForReuseIdentifier(JSClass.FromName(reuse.valueForKey('className')), identifier, reuse.valueForKey('styler', UICollectionView.Styler));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -132,7 +132,10 @@ JSClass("UICollectionViewCell", UICollectionReusableView, {
|
|
|
132
132
|
},
|
|
133
133
|
|
|
134
134
|
mouseEntered: function(event){
|
|
135
|
-
this.
|
|
135
|
+
var shouldSelect = (!this.collectionView || !this.collectionView.delegate || !this.collectionView.delegate.collectionViewShouldSelectCellAtIndexPath || this.collectionView.delegate.collectionViewShouldSelectCellAtIndexPath(this.collectionView, this.collectionView.indexPathOfCell(this)));
|
|
136
|
+
if (shouldSelect){
|
|
137
|
+
this.over = true;
|
|
138
|
+
}
|
|
136
139
|
},
|
|
137
140
|
|
|
138
141
|
mouseExited: function(event){
|
|
@@ -323,16 +323,16 @@ JSClass("UIColorWellDefaultStyler", UIColorWellStyler, {
|
|
|
323
323
|
this.disabledBorderColor = JSColor.clear;
|
|
324
324
|
}
|
|
325
325
|
if (spec.containsKey("normalBorderWidth")){
|
|
326
|
-
this.normalBorderWidth = spec.valueForKey("normalBorderWidth");
|
|
326
|
+
this.normalBorderWidth = spec.valueForKey("normalBorderWidth", Number);
|
|
327
327
|
}
|
|
328
328
|
if (spec.containsKey("activeBorderWidth")){
|
|
329
|
-
this.activeBorderWidth = spec.valueForKey("activeBorderWidth");
|
|
329
|
+
this.activeBorderWidth = spec.valueForKey("activeBorderWidth", Number);
|
|
330
330
|
}
|
|
331
331
|
if (spec.containsKey("dropTargetBorderWidth")){
|
|
332
|
-
this.dropTargetBorderWidth = spec.valueForKey("dropTargetBorderWidth");
|
|
332
|
+
this.dropTargetBorderWidth = spec.valueForKey("dropTargetBorderWidth", Number);
|
|
333
333
|
}
|
|
334
334
|
if (spec.containsKey("disabledBorderWidth")){
|
|
335
|
-
this.disabledBorderWidth = spec.valueForKey("disabledBorderWidth");
|
|
335
|
+
this.disabledBorderWidth = spec.valueForKey("disabledBorderWidth", Number);
|
|
336
336
|
}
|
|
337
337
|
if (spec.containsKey("wellInsets")){
|
|
338
338
|
this.wellInsets = spec.valueForKey("wellInsets", JSInsets);
|
|
@@ -340,7 +340,7 @@ JSClass("UIColorWellDefaultStyler", UIColorWellStyler, {
|
|
|
340
340
|
this.wellInsets = JSInsets.Zero;
|
|
341
341
|
}
|
|
342
342
|
if (spec.containsKey("cornerRadius")){
|
|
343
|
-
this.cornerRadius = spec.valueForKey("cornerRadius");
|
|
343
|
+
this.cornerRadius = spec.valueForKey("cornerRadius", Number);
|
|
344
344
|
}
|
|
345
345
|
if (spec.containsKey("size")){
|
|
346
346
|
this.size = spec.valueForKey("size", JSSize);
|
|
@@ -358,7 +358,7 @@ JSClass("UIColorWellDefaultStyler", UIColorWellStyler, {
|
|
|
358
358
|
this.wellInnerShadowOffset = JSPoint(0, 1);
|
|
359
359
|
}
|
|
360
360
|
if (spec.containsKey("wellInnerShadowRadius")){
|
|
361
|
-
this.wellInnerShadowRadius = spec.valueForKey("wellInnerShadowRadius");
|
|
361
|
+
this.wellInnerShadowRadius = spec.valueForKey("wellInnerShadowRadius", Number);
|
|
362
362
|
}
|
|
363
363
|
},
|
|
364
364
|
|
|
@@ -16,6 +16,8 @@
|
|
|
16
16
|
// #import Foundation
|
|
17
17
|
'use strict';
|
|
18
18
|
|
|
19
|
+
(function(){
|
|
20
|
+
|
|
19
21
|
JSClass("UIDisplayServer", JSObject, {
|
|
20
22
|
|
|
21
23
|
typesetter: JSReadOnlyProperty("_typesetter"),
|
|
@@ -461,4 +463,6 @@ UIDisplayServerQueue.prototype = {
|
|
|
461
463
|
delete this.map[link.value.objectID];
|
|
462
464
|
}
|
|
463
465
|
|
|
464
|
-
};
|
|
466
|
+
};
|
|
467
|
+
|
|
468
|
+
})();
|
|
@@ -57,7 +57,7 @@ JSClass("UIHTMLTextField", UIControl, {
|
|
|
57
57
|
this.leftAccessoryInsets = spec.valueForKey("leftAccessoryInsets", JSInsets);
|
|
58
58
|
}
|
|
59
59
|
if (spec.containsKey('leftAccessoryVisibility')){
|
|
60
|
-
this.leftAccessoryVisibility = spec.valueForKey("leftAccessoryVisibility");
|
|
60
|
+
this.leftAccessoryVisibility = spec.valueForKey("leftAccessoryVisibility", UITextField.AccessoryVisibility);
|
|
61
61
|
}
|
|
62
62
|
if (spec.containsKey('rightImage')){
|
|
63
63
|
this.rightImage = spec.valueForKey("rightImage", JSImage);
|
|
@@ -74,7 +74,7 @@ JSClass('UILabel', UIView, {
|
|
|
74
74
|
this.allowsSelection = spec.valueForKey("allowsSelection");
|
|
75
75
|
}
|
|
76
76
|
if (spec.containsKey("selectionColor")){
|
|
77
|
-
this._selectionColor = spec.valueForKey("selectionColor");
|
|
77
|
+
this._selectionColor = spec.valueForKey("selectionColor", JSColor);
|
|
78
78
|
}else{
|
|
79
79
|
this._selectionColor = JSColor.initWithUIStyles(JSColor.black.colorWithAlpha(0.2), JSColor.white.colorWithAlpha(0.2));
|
|
80
80
|
}
|
|
@@ -84,13 +84,13 @@ JSClass("UIListView", UIScrollView, {
|
|
|
84
84
|
}
|
|
85
85
|
this._commonListInit();
|
|
86
86
|
if (spec.containsKey('rowHeight')){
|
|
87
|
-
this._rowHeight = spec.valueForKey("rowHeight");
|
|
87
|
+
this._rowHeight = spec.valueForKey("rowHeight", Number);
|
|
88
88
|
}
|
|
89
89
|
if (spec.containsKey('headerHeight')){
|
|
90
|
-
this._headerHeight = spec.valueForKey("headerHeight");
|
|
90
|
+
this._headerHeight = spec.valueForKey("headerHeight", Number);
|
|
91
91
|
}
|
|
92
92
|
if (spec.containsKey('footerHeight')){
|
|
93
|
-
this._footerHeight = spec.valueForKey("footerHeight");
|
|
93
|
+
this._footerHeight = spec.valueForKey("footerHeight", Number);
|
|
94
94
|
}
|
|
95
95
|
if (spec.containsKey('delegate')){
|
|
96
96
|
this.delegate = spec.valueForKey("delegate");
|
|
@@ -3125,7 +3125,7 @@ JSClass("UIListViewDefaultStyler", UIListViewStyler, {
|
|
|
3125
3125
|
this.cellContentInsets = spec.valueForKey("cellContentInsets", JSInsets);
|
|
3126
3126
|
}
|
|
3127
3127
|
if (spec.containsKey('cellContentCornerRadius')){
|
|
3128
|
-
this.cellContentCornerRadius = spec.valueForKey("cellContentCornerRadius");
|
|
3128
|
+
this.cellContentCornerRadius = spec.valueForKey("cellContentCornerRadius", Number);
|
|
3129
3129
|
}
|
|
3130
3130
|
this._commonStylerInit();
|
|
3131
3131
|
},
|
|
@@ -229,7 +229,10 @@ JSClass("UIListViewCell", UIView, {
|
|
|
229
229
|
},
|
|
230
230
|
|
|
231
231
|
mouseEntered: function(event){
|
|
232
|
-
this.
|
|
232
|
+
var shouldSelect = (!this.listView || !this.listView.delegate || !this.listView.delegate.listViewShouldSelectCellAtIndexPath || this.listView.delegate.listViewShouldSelectCellAtIndexPath(this.listView, this.listView.indexPathOfCell(this)));
|
|
233
|
+
if (shouldSelect){
|
|
234
|
+
this.over = true;
|
|
235
|
+
}
|
|
233
236
|
},
|
|
234
237
|
|
|
235
238
|
mouseExited: function(event){
|
|
@@ -485,10 +485,10 @@ JSClass("UIMenuWindowStyler", UIMenuStyler, {
|
|
|
485
485
|
this.shadowColor = JSColor.menuShadow;
|
|
486
486
|
this.shadowOffset = JSPoint.Zero;
|
|
487
487
|
if (spec.containsKey('capSize')){
|
|
488
|
-
this._capSize = spec.valueForKey("capSize");
|
|
488
|
+
this._capSize = spec.valueForKey("capSize", Number);
|
|
489
489
|
}
|
|
490
490
|
if (spec.containsKey('cornerRadius')){
|
|
491
|
-
this._cornerRadius = spec.valueForKey("cornerRadius");
|
|
491
|
+
this._cornerRadius = spec.valueForKey("cornerRadius", Number);
|
|
492
492
|
}
|
|
493
493
|
if (spec.containsKey('textColor')){
|
|
494
494
|
this._textColor = spec.valueForKey("textColor", JSColor);
|
|
@@ -509,7 +509,7 @@ JSClass("UIMenuWindowStyler", UIMenuStyler, {
|
|
|
509
509
|
this._borderColor = spec.valueForKey("borderColor", JSColor);
|
|
510
510
|
}
|
|
511
511
|
if (spec.containsKey('borderWidth')){
|
|
512
|
-
this._borderWidth = spec.valueForKey("borderWidth");
|
|
512
|
+
this._borderWidth = spec.valueForKey("borderWidth", Number);
|
|
513
513
|
}
|
|
514
514
|
if (spec.containsKey('shadowColor')){
|
|
515
515
|
this.shadowColor = spec.valueForKey("shadowColor", JSColor);
|
|
@@ -518,13 +518,13 @@ JSClass("UIMenuWindowStyler", UIMenuStyler, {
|
|
|
518
518
|
this.shadowOffset = spec.valueForKey("shadowOffset", JSPoint);
|
|
519
519
|
}
|
|
520
520
|
if (spec.containsKey('shadowRadius')){
|
|
521
|
-
this.shadowRadius = spec.valueForKey("shadowRadius");
|
|
521
|
+
this.shadowRadius = spec.valueForKey("shadowRadius", Number);
|
|
522
522
|
}
|
|
523
523
|
if (spec.containsKey('separatorSize')){
|
|
524
|
-
this.separatorSize = spec.valueForKey("separatorSize");
|
|
524
|
+
this.separatorSize = spec.valueForKey("separatorSize", Number);
|
|
525
525
|
}
|
|
526
526
|
if (spec.containsKey('separatorLineWidth')){
|
|
527
|
-
this.separatorLineWidth = spec.valueForKey("separatorLineWidth");
|
|
527
|
+
this.separatorLineWidth = spec.valueForKey("separatorLineWidth", Number);
|
|
528
528
|
}
|
|
529
529
|
if (spec.containsKey('separatorColor')){
|
|
530
530
|
this.separatorColor = spec.valueForKey("separatorColor", JSColor);
|
|
@@ -535,7 +535,7 @@ JSClass("UIMenuWindowStyler", UIMenuStyler, {
|
|
|
535
535
|
this.itemContentInsets = spec.valueForKey("itemContentInsets", JSInsets);
|
|
536
536
|
}
|
|
537
537
|
if (spec.containsKey('indentationSize')){
|
|
538
|
-
this.indentationSize = spec.valueForKey("indentationSize");
|
|
538
|
+
this.indentationSize = spec.valueForKey("indentationSize", Number);
|
|
539
539
|
}
|
|
540
540
|
},
|
|
541
541
|
|
|
@@ -261,7 +261,7 @@ JSClass("UINavigationBarStyler", JSObject, {
|
|
|
261
261
|
this.itemFont = spec.valueForKey("itemFont", JSFont);
|
|
262
262
|
}
|
|
263
263
|
if (spec.containsKey("height")){
|
|
264
|
-
this.height = spec.valueForKey("height");
|
|
264
|
+
this.height = spec.valueForKey("height", Number);
|
|
265
265
|
}
|
|
266
266
|
this._fillInStyles();
|
|
267
267
|
},
|
|
@@ -340,7 +340,7 @@ JSClass("UINavigationBarDefaultStyler", UINavigationBarStyler, {
|
|
|
340
340
|
this.contentSeparatorColor = spec.valueForKey("contentSeparatorColor", JSColor);
|
|
341
341
|
}
|
|
342
342
|
if (spec.containsKey("contentSeparatorSize")){
|
|
343
|
-
this.contentSeparatorSize = spec.valueForKey("contentSeparatorSize");
|
|
343
|
+
this.contentSeparatorSize = spec.valueForKey("contentSeparatorSize", Number);
|
|
344
344
|
}
|
|
345
345
|
if (spec.containsKey("titleColor")){
|
|
346
346
|
this.titleColor = spec.valueForKey("titleColor", JSColor);
|
|
@@ -573,16 +573,16 @@ JSClass("UIPopupButtonCustomStyler", UIPopupButtonStyler, {
|
|
|
573
573
|
this.shadowOffset = spec.valueForKey("shadowOffset", JSPoint);
|
|
574
574
|
}
|
|
575
575
|
if (spec.containsKey("shadowRadius")){
|
|
576
|
-
this.shadowRadius = spec.valueForKey("shadowRadius");
|
|
576
|
+
this.shadowRadius = spec.valueForKey("shadowRadius", Number);
|
|
577
577
|
}
|
|
578
578
|
if (spec.containsKey("borderWidth")){
|
|
579
|
-
this.borderWidth = spec.valueForKey("borderWidth");
|
|
579
|
+
this.borderWidth = spec.valueForKey("borderWidth", Number);
|
|
580
580
|
}
|
|
581
581
|
if (spec.containsKey("indicatorSpacing")){
|
|
582
|
-
this.indicatorSpacing = spec.valueForKey("indicatorSpacing");
|
|
582
|
+
this.indicatorSpacing = spec.valueForKey("indicatorSpacing", Number);
|
|
583
583
|
}
|
|
584
584
|
if (spec.containsKey("cornerRadius")){
|
|
585
|
-
this.cornerRadius = spec.valueForKey("cornerRadius");
|
|
585
|
+
this.cornerRadius = spec.valueForKey("cornerRadius", Number);
|
|
586
586
|
}
|
|
587
587
|
|
|
588
588
|
this._fillInMissingColors();
|
|
@@ -813,7 +813,7 @@ JSClass("UIPopupButtonImageStyler", UIPopupButtonStyler, {
|
|
|
813
813
|
this.showsOverState = true;
|
|
814
814
|
}
|
|
815
815
|
if (spec.containsKey("cornerRadius")){
|
|
816
|
-
this.cornerRadius = spec.valueForKey("cornerRadius");
|
|
816
|
+
this.cornerRadius = spec.valueForKey("cornerRadius", Number);
|
|
817
817
|
}
|
|
818
818
|
if (spec.containsKey("titleInsets")){
|
|
819
819
|
this.titleInsets = spec.valueForKey("titleInsets", JSInsets);
|
|
@@ -30,7 +30,7 @@ JSClass("UIProgressIndicatorView", UIView, {
|
|
|
30
30
|
this._progressBarColor = spec.valueForKey("progressBarColor", JSColor);
|
|
31
31
|
}
|
|
32
32
|
if (spec.containsKey('progressBorderWidth')){
|
|
33
|
-
this._progressBorderWidth = spec.valueForKey("progressBorderWidth");
|
|
33
|
+
this._progressBorderWidth = spec.valueForKey("progressBorderWidth", Number);
|
|
34
34
|
}
|
|
35
35
|
if (spec.containsKey('style')){
|
|
36
36
|
this._style = spec.valueForKey("style", UIProgressIndicatorView.Style);
|
|
@@ -255,10 +255,10 @@ JSClass("UISliderLayerBasedStyler", UIControlStyler, {
|
|
|
255
255
|
this.knobSize = spec.valueForKey("knobSize", JSSize);
|
|
256
256
|
}
|
|
257
257
|
if (spec.containsKey("trackWidth")){
|
|
258
|
-
this.trackWidth = spec.valueForKey("trackWidth");
|
|
258
|
+
this.trackWidth = spec.valueForKey("trackWidth", Number);
|
|
259
259
|
}
|
|
260
260
|
if (spec.containsKey("trackRadius")){
|
|
261
|
-
this.trackRadius = spec.valueForKey("trackRadius");
|
|
261
|
+
this.trackRadius = spec.valueForKey("trackRadius", Number);
|
|
262
262
|
}
|
|
263
263
|
},
|
|
264
264
|
|
|
@@ -407,7 +407,7 @@ JSClass("UISliderDefaultStyler", UISliderLayerBasedStyler, {
|
|
|
407
407
|
this.disabledTrackBorderColor = this.normalTrackBorderColor;
|
|
408
408
|
}
|
|
409
409
|
if (spec.containsKey("trackBorderWidth")){
|
|
410
|
-
this.trackBorderWidth = spec.valueForKey("trackBorderWidth");
|
|
410
|
+
this.trackBorderWidth = spec.valueForKey("trackBorderWidth", Number);
|
|
411
411
|
}
|
|
412
412
|
if (spec.containsKey("trackInnerShadowColor")){
|
|
413
413
|
this.trackInnerShadowColor = spec.valueForKey("trackInnerShadowColor", JSColor);
|
|
@@ -416,7 +416,7 @@ JSClass("UISliderDefaultStyler", UISliderLayerBasedStyler, {
|
|
|
416
416
|
this.trackInnerShadowOffset = spec.valueForKey("trackInnerShadowOffset", JSPoint);
|
|
417
417
|
}
|
|
418
418
|
if (spec.containsKey("trackInnerShadowRadius")){
|
|
419
|
-
this.trackInnerShadowRadius = spec.valueForKey("trackInnerShadowRadius");
|
|
419
|
+
this.trackInnerShadowRadius = spec.valueForKey("trackInnerShadowRadius", Number);
|
|
420
420
|
}
|
|
421
421
|
if (spec.containsKey("normalKnobBackgroundColor")){
|
|
422
422
|
this.normalKnobBackgroundColor = spec.valueForKey("normalKnobBackgroundColor", JSColor);
|
|
@@ -460,10 +460,10 @@ JSClass("UISliderDefaultStyler", UISliderLayerBasedStyler, {
|
|
|
460
460
|
this.knobShadowOffset = spec.valueForKey("knobShadowOffset", JSPoint);
|
|
461
461
|
}
|
|
462
462
|
if (spec.containsKey("knobShadowRadius")){
|
|
463
|
-
this.knobShadowRadius = spec.valueForKey("knobShadowRadius");
|
|
463
|
+
this.knobShadowRadius = spec.valueForKey("knobShadowRadius", Number);
|
|
464
464
|
}
|
|
465
465
|
if (spec.containsKey("knobBorderWidth")){
|
|
466
|
-
this.knobBorderWidth = spec.valueForKey("knobBorderWidth");
|
|
466
|
+
this.knobBorderWidth = spec.valueForKey("knobBorderWidth", Number);
|
|
467
467
|
}
|
|
468
468
|
if (this.knobSize === null){
|
|
469
469
|
this.knobSize = JSSize(16, 16);
|
|
@@ -93,31 +93,31 @@ JSClass("UISplitView", UIView, {
|
|
|
93
93
|
this._trailingCollapses = spec.valueForKey("trailingCollapses");
|
|
94
94
|
}
|
|
95
95
|
if (spec.containsKey('leadingCollapsedSize')){
|
|
96
|
-
this._leadingCollapsedSize = spec.valueForKey("leadingCollapsedSize");
|
|
96
|
+
this._leadingCollapsedSize = spec.valueForKey("leadingCollapsedSize", Number);
|
|
97
97
|
}
|
|
98
98
|
if (spec.containsKey('trailingCollapsedSize')){
|
|
99
|
-
this._trailingCollapsedSize = spec.valueForKey("trailingCollapsedSize");
|
|
99
|
+
this._trailingCollapsedSize = spec.valueForKey("trailingCollapsedSize", Number);
|
|
100
100
|
}
|
|
101
101
|
if (spec.containsKey('leadingSize')){
|
|
102
|
-
this._leadingSize = spec.valueForKey("leadingSize");
|
|
102
|
+
this._leadingSize = spec.valueForKey("leadingSize", Number);
|
|
103
103
|
}
|
|
104
104
|
if (spec.containsKey('trailingSize')){
|
|
105
|
-
this._trailingSize = spec.valueForKey("trailingSize");
|
|
105
|
+
this._trailingSize = spec.valueForKey("trailingSize", Number);
|
|
106
106
|
}
|
|
107
107
|
if (spec.containsKey('minimumLeadingSize')){
|
|
108
|
-
this._minimumLeadingSize = spec.valueForKey("minimumLeadingSize");
|
|
108
|
+
this._minimumLeadingSize = spec.valueForKey("minimumLeadingSize", Number);
|
|
109
109
|
}
|
|
110
110
|
if (spec.containsKey('minimumTrailingSize')){
|
|
111
|
-
this._minimumTrailingSize = spec.valueForKey("minimumTrailingSize");
|
|
111
|
+
this._minimumTrailingSize = spec.valueForKey("minimumTrailingSize", Number);
|
|
112
112
|
}
|
|
113
113
|
if (spec.containsKey('minimumMainSize')){
|
|
114
|
-
this._minimumMainSize = spec.valueForKey("minimumMainSize");
|
|
114
|
+
this._minimumMainSize = spec.valueForKey("minimumMainSize", Number);
|
|
115
115
|
}
|
|
116
116
|
if (spec.containsKey('maximumLeadingSize')){
|
|
117
|
-
this._maximumLeadingSize = spec.valueForKey("maximumLeadingSize");
|
|
117
|
+
this._maximumLeadingSize = spec.valueForKey("maximumLeadingSize", Number);
|
|
118
118
|
}
|
|
119
119
|
if (spec.containsKey('maximumTrailingSize')){
|
|
120
|
-
this._maximumTrailingSize = spec.valueForKey("maximumTrailingSize");
|
|
120
|
+
this._maximumTrailingSize = spec.valueForKey("maximumTrailingSize", Number);
|
|
121
121
|
}
|
|
122
122
|
if (spec.containsKey('leadingViewOpen')){
|
|
123
123
|
this._leadingViewOpen = spec.valueForKey("leadingViewOpen");
|
|
@@ -69,6 +69,9 @@ JSClass("UISplitViewController", UIViewController, {
|
|
|
69
69
|
|
|
70
70
|
viewWillAppear: function(animated){
|
|
71
71
|
UISplitViewController.$super.viewWillAppear.call(this, animated);
|
|
72
|
+
if (this.view.mainHidden){
|
|
73
|
+
this._moveMainViewControllerToLeading();
|
|
74
|
+
}
|
|
72
75
|
if (this._leadingViewController !== null && this.leadingViewOpen){
|
|
73
76
|
this._leadingViewController.viewWillAppear(animated);
|
|
74
77
|
}
|
|
@@ -39,7 +39,7 @@ JSClass("UIStackView", UIView, {
|
|
|
39
39
|
this._contentInsets = spec.valueForKey("contentInsets", JSInsets);
|
|
40
40
|
}
|
|
41
41
|
if (spec.containsKey('viewSpacing')){
|
|
42
|
-
this._viewSpacing = spec.valueForKey("viewSpacing");
|
|
42
|
+
this._viewSpacing = spec.valueForKey("viewSpacing", Number);
|
|
43
43
|
}
|
|
44
44
|
if (spec.containsKey('axis')){
|
|
45
45
|
this._axis = spec.valueForKey("axis", UIStackView.Axis);
|
|
@@ -712,7 +712,7 @@ JSClass("UITabViewDefaultStyler", UITabViewStyler, {
|
|
|
712
712
|
initWithSpec: function(spec){
|
|
713
713
|
UITabViewDefaultStyler.$super.initWithSpec.call(this, spec);
|
|
714
714
|
if (spec.containsKey("cornerRadius")){
|
|
715
|
-
this.cornerRadius = spec.valueForKey("cornerRadius");
|
|
715
|
+
this.cornerRadius = spec.valueForKey("cornerRadius", Number);
|
|
716
716
|
}
|
|
717
717
|
if (spec.containsKey("itemContentInsets")){
|
|
718
718
|
this.itemContentInsets = spec.valueForKey("itemContentInsets", JSInsets);
|
|
@@ -724,10 +724,10 @@ JSClass("UITabViewDefaultStyler", UITabViewStyler, {
|
|
|
724
724
|
this.dividerColor = spec.valueForKey("dividerColor", JSColor);
|
|
725
725
|
}
|
|
726
726
|
if (spec.containsKey("dividerSize")){
|
|
727
|
-
this.dividerSize = spec.valueForKey("dividerSize");
|
|
727
|
+
this.dividerSize = spec.valueForKey("dividerSize", Number);
|
|
728
728
|
}
|
|
729
729
|
if (spec.containsKey("imageSpacing")){
|
|
730
|
-
this.imageSpacing = spec.valueForKey("imageSpacing");
|
|
730
|
+
this.imageSpacing = spec.valueForKey("imageSpacing", Number);
|
|
731
731
|
}
|
|
732
732
|
if (spec.containsKey("normalItemColor")){
|
|
733
733
|
this.normalItemColor = spec.valueForKey("normalItemColor", JSColor);
|
|
@@ -1108,10 +1108,10 @@ JSClass("UITabViewImagesStyler", UITabViewStyler, {
|
|
|
1108
1108
|
null
|
|
1109
1109
|
];
|
|
1110
1110
|
if (spec.containsKey('itemSize')){
|
|
1111
|
-
this.itemSize = spec.valueForKey("itemSize");
|
|
1111
|
+
this.itemSize = spec.valueForKey("itemSize", Number);
|
|
1112
1112
|
}
|
|
1113
1113
|
if (spec.containsKey('imageSize')){
|
|
1114
|
-
this.imageSize = spec.valueForKey("imageSize");
|
|
1114
|
+
this.imageSize = spec.valueForKey("imageSize", Number);
|
|
1115
1115
|
}
|
|
1116
1116
|
if (spec.containsKey('normalColor')){
|
|
1117
1117
|
this._stateColors[UITabViewItem.State.normal] = spec.valueForKey("normalColor", JSColor);
|
|
@@ -72,7 +72,7 @@ JSClass("UITextField", UIControl, {
|
|
|
72
72
|
this.leftAccessoryInsets = spec.valueForKey("leftAccessoryInsets", JSInsets);
|
|
73
73
|
}
|
|
74
74
|
if (spec.containsKey('leftAccessoryVisibility')){
|
|
75
|
-
this.leftAccessoryVisibility = spec.valueForKey("leftAccessoryVisibility");
|
|
75
|
+
this.leftAccessoryVisibility = spec.valueForKey("leftAccessoryVisibility", UITextField.AccessoryVisibility);
|
|
76
76
|
}
|
|
77
77
|
if (spec.containsKey('rightImage')){
|
|
78
78
|
this.rightImage = spec.valueForKey("rightImage", JSImage);
|
|
@@ -1445,10 +1445,10 @@ JSClass("UITextFieldCustomStyler", UITextFieldStyler, {
|
|
|
1445
1445
|
this.placeholderColor = spec.valueForKey("placeholderColor", JSColor);
|
|
1446
1446
|
}
|
|
1447
1447
|
if (spec.containsKey("cornerRadius")){
|
|
1448
|
-
this.cornerRadius = spec.valueForKey("cornerRadius");
|
|
1448
|
+
this.cornerRadius = spec.valueForKey("cornerRadius", Number);
|
|
1449
1449
|
}
|
|
1450
1450
|
if (spec.containsKey("borderWidth")){
|
|
1451
|
-
this.borderWidth = spec.valueForKey("borderWidth");
|
|
1451
|
+
this.borderWidth = spec.valueForKey("borderWidth", Number);
|
|
1452
1452
|
}
|
|
1453
1453
|
if (spec.containsKey("textInsets")){
|
|
1454
1454
|
this.textInsets = spec.valueForKey("textInsets", JSInsets);
|
|
@@ -498,7 +498,7 @@ JSClass("UIToolbarCustomStyler", UIToolbarStyler, {
|
|
|
498
498
|
this.contentInsets = JSInsets(5);
|
|
499
499
|
}
|
|
500
500
|
if (spec.containsKey("itemSpacing")){
|
|
501
|
-
this.itemSpacing = spec.valueForKey("itemSpacing");
|
|
501
|
+
this.itemSpacing = spec.valueForKey("itemSpacing", Number);
|
|
502
502
|
}
|
|
503
503
|
this._fillInMissingStyles();
|
|
504
504
|
},
|
|
@@ -82,13 +82,13 @@ JSClass('UIView', UIResponder, {
|
|
|
82
82
|
this.borderColor = spec.valueForKey("borderColor", JSColor);
|
|
83
83
|
}
|
|
84
84
|
if (spec.containsKey("borderWidth")){
|
|
85
|
-
this.borderWidth = spec.valueForKey("borderWidth");
|
|
85
|
+
this.borderWidth = spec.valueForKey("borderWidth", Number);
|
|
86
86
|
}
|
|
87
87
|
if (spec.containsKey("shadowColor")){
|
|
88
88
|
this.shadowColor = spec.valueForKey("shadowColor", JSColor);
|
|
89
89
|
}
|
|
90
90
|
if (spec.containsKey("shadowRadius")){
|
|
91
|
-
this.shadowRadius = spec.valueForKey("shadowRadius");
|
|
91
|
+
this.shadowRadius = spec.valueForKey("shadowRadius", Number);
|
|
92
92
|
}
|
|
93
93
|
if (spec.containsKey("shadowOffset")){
|
|
94
94
|
this.shadowOffset = spec.valueForKey("shadowOffset", JSPoint);
|
|
@@ -100,7 +100,7 @@ JSClass('UIView', UIResponder, {
|
|
|
100
100
|
this.maskedBorders = spec.valueForKey("maskedBorders", UIView.Sides);
|
|
101
101
|
}
|
|
102
102
|
if (spec.containsKey("cornerRadius")){
|
|
103
|
-
this.cornerRadius = spec.valueForKey("cornerRadius");
|
|
103
|
+
this.cornerRadius = spec.valueForKey("cornerRadius", Number);
|
|
104
104
|
}
|
|
105
105
|
if (spec.containsKey("maskedCorners")){
|
|
106
106
|
this.maskedCorners = spec.valueForKey("maskedCorners", UIView.Corners);
|
|
@@ -115,7 +115,7 @@ JSClass('UIView', UIResponder, {
|
|
|
115
115
|
this.hidden = spec.valueForKey("hidden");
|
|
116
116
|
}
|
|
117
117
|
if (spec.containsKey("alpha")){
|
|
118
|
-
this.alpha = spec.valueForKey("alpha");
|
|
118
|
+
this.alpha = spec.valueForKey("alpha", Number);
|
|
119
119
|
}
|
|
120
120
|
if (spec.containsKey("userInteractionEnabled")){
|
|
121
121
|
this.userInteractionEnabled = spec.valueForKey("userInteractionEnabled");
|
|
@@ -1584,13 +1584,13 @@ JSClass("UIWindowTitlelessStyler", UIWindowStyler, {
|
|
|
1584
1584
|
this.shadowColor = JSColor.windowShadow;
|
|
1585
1585
|
}
|
|
1586
1586
|
if (spec.containsKey("shadowRadius")){
|
|
1587
|
-
this.shadowRadius = spec.valueForKey("shadowRadius");
|
|
1587
|
+
this.shadowRadius = spec.valueForKey("shadowRadius", Number);
|
|
1588
1588
|
}
|
|
1589
1589
|
if (spec.containsKey("inactiveShadowRadius")){
|
|
1590
|
-
this.inactiveShadowRadius = spec.valueForKey("inactiveShadowRadius");
|
|
1590
|
+
this.inactiveShadowRadius = spec.valueForKey("inactiveShadowRadius", Number);
|
|
1591
1591
|
}
|
|
1592
1592
|
if (spec.containsKey("cornerRadius")){
|
|
1593
|
-
this.cornerRadius = spec.valueForKey("cornerRadius");
|
|
1593
|
+
this.cornerRadius = spec.valueForKey("cornerRadius", Number);
|
|
1594
1594
|
}
|
|
1595
1595
|
if (spec.containsKey("toolbarTitleColor")){
|
|
1596
1596
|
this.toolbarTitleColor = spec.valueForKey("toolbarTitleColor", JSColor);
|