@breakside/jskit 2024.5.0 → 2024.8.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/JSCalendar.js +93 -0
- package/Frameworks/Foundation.jsframework/JS/JSDateFormatter.js +1 -3
- package/Frameworks/Foundation.jsframework/JS/JSLocale.js +13 -1
- package/Frameworks/Foundation.jsframework/JS/JSSynchronizer.js +19 -0
- package/Frameworks/Foundation.jsframework/JS/JSTimeZone.js +72 -3
- package/Frameworks/Foundation.jsframework/io.breakside.JSKit.Foundation-bundle.js +2 -2
- package/Frameworks/Foundation.jsframework/sources.json +6 -6
- 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 +2 -2
- 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/Info.yaml +1 -1
- package/Root/Frameworks/Foundation/JSCalendar.js +93 -0
- package/Root/Frameworks/Foundation/JSDateFormatter.js +1 -3
- package/Root/Frameworks/Foundation/JSLocale.js +13 -1
- package/Root/Frameworks/Foundation/JSSynchronizer.js +19 -0
- package/Root/Frameworks/Foundation/JSTimeZone.js +72 -3
- package/Root/Frameworks/ImageKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKit/Info.yaml +1 -1
- package/Root/Frameworks/MediaKit/MKAsset+HTML.js +38 -9
- package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
- package/Root/Frameworks/MediaKitUI/MKVideoView+HTML.js +1 -0
- package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
- package/Root/Frameworks/NotificationKit/NKHTMLUserNotificationCenter.js +5 -5
- 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/UIApplication.js +16 -0
- package/Root/Frameworks/UIKit/UISplitViewController.js +31 -8
- package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
- package/Root/Frameworks/UIKitTesting/UIMockApplication.js +2 -0
- package/package.json +1 -1
|
@@ -28,6 +28,9 @@ JSClass("UISplitViewController", UIViewController, {
|
|
|
28
28
|
leadingViewOpen: JSReadOnlyProperty(null, null, 'isLeadingViewOpen'),
|
|
29
29
|
trailingViewOpen: JSReadOnlyProperty(null, null, 'isTrailingViewOpen'),
|
|
30
30
|
|
|
31
|
+
leadingViewVisible: JSReadOnlyProperty(null, null, 'isLeadingViewVisible'),
|
|
32
|
+
trailingViewVisible: JSReadOnlyProperty(null, null, 'isTrailingViewVisible'),
|
|
33
|
+
|
|
31
34
|
splitView: JSReadOnlyProperty(),
|
|
32
35
|
_defaultViewClass: UISplitView,
|
|
33
36
|
|
|
@@ -72,52 +75,52 @@ JSClass("UISplitViewController", UIViewController, {
|
|
|
72
75
|
if (this.view.mainHidden){
|
|
73
76
|
this._moveMainViewControllerToLeading();
|
|
74
77
|
}
|
|
75
|
-
if (this._leadingViewController !== null && this.
|
|
78
|
+
if (this._leadingViewController !== null && this.leadingViewVisible){
|
|
76
79
|
this._leadingViewController.viewWillAppear(animated);
|
|
77
80
|
}
|
|
78
81
|
if (this._mainViewController !== null && !this._view.mainHidden){
|
|
79
82
|
this._mainViewController.viewWillAppear(animated);
|
|
80
83
|
}
|
|
81
|
-
if (this._trailingViewController !== null && this.
|
|
84
|
+
if (this._trailingViewController !== null && this.trailingViewVisible){
|
|
82
85
|
this._trailingViewController.viewWillAppear(animated);
|
|
83
86
|
}
|
|
84
87
|
},
|
|
85
88
|
|
|
86
89
|
viewDidAppear: function(animated){
|
|
87
90
|
UISplitViewController.$super.viewDidAppear.call(this, animated);
|
|
88
|
-
if (this._leadingViewController !== null && this.
|
|
91
|
+
if (this._leadingViewController !== null && this.leadingViewVisible){
|
|
89
92
|
this._leadingViewController.viewDidAppear(animated);
|
|
90
93
|
}
|
|
91
94
|
if (this._mainViewController !== null && !this._view.mainHidden){
|
|
92
95
|
this._mainViewController.viewDidAppear(animated);
|
|
93
96
|
}
|
|
94
|
-
if (this._trailingViewController !== null && this.
|
|
97
|
+
if (this._trailingViewController !== null && this.trailingViewVisible){
|
|
95
98
|
this._trailingViewController.viewDidAppear(animated);
|
|
96
99
|
}
|
|
97
100
|
},
|
|
98
101
|
|
|
99
102
|
viewWillDisappear: function(animated){
|
|
100
103
|
UISplitViewController.$super.viewWillDisappear.call(this, animated);
|
|
101
|
-
if (this._leadingViewController !== null && this.
|
|
104
|
+
if (this._leadingViewController !== null && this.leadingViewVisible){
|
|
102
105
|
this._leadingViewController.viewWillDisappear(animated);
|
|
103
106
|
}
|
|
104
107
|
if (this._mainViewController !== null && !this._view.mainHidden){
|
|
105
108
|
this._mainViewController.viewWillDisappear(animated);
|
|
106
109
|
}
|
|
107
|
-
if (this._trailingViewController !== null && this.
|
|
110
|
+
if (this._trailingViewController !== null && this.trailingViewVisible){
|
|
108
111
|
this._trailingViewController.viewWillDisappear(animated);
|
|
109
112
|
}
|
|
110
113
|
},
|
|
111
114
|
|
|
112
115
|
viewDidDisappear: function(animated){
|
|
113
116
|
UISplitViewController.$super.viewDidDisappear.call(this, animated);
|
|
114
|
-
if (this._leadingViewController !== null && this.
|
|
117
|
+
if (this._leadingViewController !== null && this.leadingViewVisible){
|
|
115
118
|
this._leadingViewController.viewDidDisappear(animated);
|
|
116
119
|
}
|
|
117
120
|
if (this._mainViewController !== null && !this._view.mainHidden){
|
|
118
121
|
this._mainViewController.viewDidDisappear(animated);
|
|
119
122
|
}
|
|
120
|
-
if (this._trailingViewController !== null && this.
|
|
123
|
+
if (this._trailingViewController !== null && this.trailingViewVisible){
|
|
121
124
|
this._trailingViewController.viewDidDisappear(animated);
|
|
122
125
|
}
|
|
123
126
|
},
|
|
@@ -417,10 +420,30 @@ JSClass("UISplitViewController", UIViewController, {
|
|
|
417
420
|
return this.splitView.leadingViewOpen;
|
|
418
421
|
},
|
|
419
422
|
|
|
423
|
+
isLeadingViewVisible: function(){
|
|
424
|
+
if (this.splitView.leadingViewOpen){
|
|
425
|
+
return true;
|
|
426
|
+
}
|
|
427
|
+
if (this.splitView.leadingCollapses){
|
|
428
|
+
return this.splitView.leadingCollapsedSize > 0;
|
|
429
|
+
}
|
|
430
|
+
return false;
|
|
431
|
+
},
|
|
432
|
+
|
|
420
433
|
isTrailingViewOpen: function(){
|
|
421
434
|
return this.splitView.trailingViewOpen;
|
|
422
435
|
},
|
|
423
436
|
|
|
437
|
+
isTrailingViewVisible: function(){
|
|
438
|
+
if (this.splitView.trailingViewOpen){
|
|
439
|
+
return true;
|
|
440
|
+
}
|
|
441
|
+
if (this.splitView.trailingCollapses){
|
|
442
|
+
return this.splitView.trailingCollapsedSize > 0;
|
|
443
|
+
}
|
|
444
|
+
return false;
|
|
445
|
+
},
|
|
446
|
+
|
|
424
447
|
hideTrailingView: function(animated){
|
|
425
448
|
if (this.splitView.trailingViewOpen){
|
|
426
449
|
this.toggleTrailingView(animated);
|