@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.
Files changed (53) hide show
  1. package/Frameworks/DOM.jsframework/Info.json +2 -2
  2. package/Frameworks/DOM.jsframework/io.breakside.JSKit.DOM-bundle.js +2 -2
  3. package/Frameworks/FontKit.jsframework/Info.json +2 -2
  4. package/Frameworks/FontKit.jsframework/io.breakside.JSKit.FontKit-bundle.js +2 -2
  5. package/Frameworks/Foundation.jsframework/Info.json +2 -2
  6. package/Frameworks/Foundation.jsframework/JS/JSCalendar.js +93 -0
  7. package/Frameworks/Foundation.jsframework/JS/JSDateFormatter.js +1 -3
  8. package/Frameworks/Foundation.jsframework/JS/JSLocale.js +13 -1
  9. package/Frameworks/Foundation.jsframework/JS/JSSynchronizer.js +19 -0
  10. package/Frameworks/Foundation.jsframework/JS/JSTimeZone.js +72 -3
  11. package/Frameworks/Foundation.jsframework/io.breakside.JSKit.Foundation-bundle.js +2 -2
  12. package/Frameworks/Foundation.jsframework/sources.json +6 -6
  13. package/Frameworks/SecurityKit.jsframework/Info.json +2 -2
  14. package/Frameworks/SecurityKit.jsframework/io.breakside.JSKit.SecurityKit-bundle.js +2 -2
  15. package/Info.json +2 -2
  16. package/Node/io.breakside.jskit-bundle.js +2 -2
  17. package/Node/jskit +2 -2
  18. package/Root/Frameworks/APIKit/Info.yaml +1 -1
  19. package/Root/Frameworks/APIKitTesting/Info.yaml +1 -1
  20. package/Root/Frameworks/AuthKit/Info.yaml +1 -1
  21. package/Root/Frameworks/CSSOM/Info.yaml +1 -1
  22. package/Root/Frameworks/ChartKit/Info.yaml +1 -1
  23. package/Root/Frameworks/ConferenceKit/Info.yaml +1 -1
  24. package/Root/Frameworks/DBKit/Info.yaml +1 -1
  25. package/Root/Frameworks/DOM/Info.yaml +1 -1
  26. package/Root/Frameworks/Dispatch/Info.yaml +1 -1
  27. package/Root/Frameworks/FontKit/Info.yaml +1 -1
  28. package/Root/Frameworks/Foundation/Info.yaml +1 -1
  29. package/Root/Frameworks/Foundation/JSCalendar.js +93 -0
  30. package/Root/Frameworks/Foundation/JSDateFormatter.js +1 -3
  31. package/Root/Frameworks/Foundation/JSLocale.js +13 -1
  32. package/Root/Frameworks/Foundation/JSSynchronizer.js +19 -0
  33. package/Root/Frameworks/Foundation/JSTimeZone.js +72 -3
  34. package/Root/Frameworks/ImageKit/Info.yaml +1 -1
  35. package/Root/Frameworks/MediaKit/Info.yaml +1 -1
  36. package/Root/Frameworks/MediaKit/MKAsset+HTML.js +38 -9
  37. package/Root/Frameworks/MediaKitUI/Info.yaml +1 -1
  38. package/Root/Frameworks/MediaKitUI/MKVideoView+HTML.js +1 -0
  39. package/Root/Frameworks/NotificationKit/Info.yaml +1 -1
  40. package/Root/Frameworks/NotificationKit/NKHTMLUserNotificationCenter.js +5 -5
  41. package/Root/Frameworks/PDFKit/Info.yaml +1 -1
  42. package/Root/Frameworks/QRKit/Info.yaml +1 -1
  43. package/Root/Frameworks/SearchKit/Info.yaml +1 -1
  44. package/Root/Frameworks/SecurityKit/Info.yaml +1 -1
  45. package/Root/Frameworks/ServerKit/Info.yaml +1 -1
  46. package/Root/Frameworks/ServerKitTesting/Info.yaml +1 -1
  47. package/Root/Frameworks/TestKit/Info.yaml +1 -1
  48. package/Root/Frameworks/UIKit/Info.yaml +1 -1
  49. package/Root/Frameworks/UIKit/UIApplication.js +16 -0
  50. package/Root/Frameworks/UIKit/UISplitViewController.js +31 -8
  51. package/Root/Frameworks/UIKitTesting/Info.yaml +1 -1
  52. package/Root/Frameworks/UIKitTesting/UIMockApplication.js +2 -0
  53. 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.leadingViewOpen){
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.trailingViewOpen){
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.leadingViewOpen){
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.trailingViewOpen){
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.leadingViewOpen){
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.trailingViewOpen){
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.leadingViewOpen){
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.trailingViewOpen){
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);
@@ -1,6 +1,6 @@
1
1
  JSBundleType: framework
2
2
  JSBundleIdentifier: io.breakside.JSKit.UIKitTesting
3
- JSBundleVersion: 2024.5.0
3
+ JSBundleVersion: 2024.8.0
4
4
  JSDevelopmentLanguage: en
5
5
  JSCopyright: Copyright © 2020 Breakside Inc.
6
6
  JSLicenseNotice: |
@@ -42,6 +42,8 @@ JSClass("UIMockApplication", UIApplication, {
42
42
  setupDelegate: function(){
43
43
  },
44
44
 
45
+ postsSystemNotifications: false,
46
+
45
47
  stop: function(completion, target){
46
48
  if (!completion){
47
49
  completion = Promise.completion(Promise.resolveNull);
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "node": ">=10.10.0"
10
10
  },
11
11
  "name": "@breakside/jskit",
12
- "version": "2024.5.0",
12
+ "version": "2024.8.0",
13
13
  "license": "SEE LICENSE IN LICENSE.txt",
14
14
  "files": [
15
15
  "*"