@breakside/jskit 2023.3.1 → 2023.9.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/JS/JSNumberFormatter.js +105 -8
- 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/CHAreaChart.js +2 -0
- package/Root/Frameworks/ChartKit/CHLineChart.js +2 -0
- package/Root/Frameworks/ChartKit/CHSeriesStyle.js +1 -0
- package/Root/Frameworks/ChartKit/CHStackedAreaChart.js +1 -0
- 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/Foundation/JSNumberFormatter.js +105 -8
- 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/UIAccessibility.js +1 -0
- 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/UIColorPanel.js +4 -0
- 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/UIHTMLWindowServer.js +9 -0
- package/Root/Frameworks/UIKit/UILabel.js +1 -1
- package/Root/Frameworks/UIKit/UIListView.js +4 -4
- 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
|
@@ -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);
|