neo.mjs 8.21.0 → 8.21.2

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.
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='8.21.0'
23
+ * @member {String} version='8.21.2'
24
24
  */
25
- version: '8.21.0'
25
+ version: '8.21.2'
26
26
  }
27
27
 
28
28
  /**
@@ -1,4 +1,16 @@
1
1
  [{
2
+ "author" : "Tobias Uhlig",
3
+ "authorImage" : "author_TobiasUhlig.jpeg",
4
+ "date" : "Feb 12, 2025",
5
+ "id" : 63,
6
+ "image" : "BuildingGridInPublic.png",
7
+ "name" : "Building a blazing fast Buffered Data Grid in public",
8
+ "provider" : "Medium",
9
+ "publisher" : "ITNEXT",
10
+ "selectedInto": [],
11
+ "type" : "Blog Post",
12
+ "url" : "https://itnext.io/building-a-blazing-fast-buffered-data-grid-in-public-7698bc781113?source=friends_link&sk=349893c757c5134671b16a643f35cf54"
13
+ }, {
2
14
  "author" : "Henrique Sagara",
3
15
  "authorImage" : "author_htsagara.png",
4
16
  "date" : "Oct 04, 2024",
@@ -107,7 +107,7 @@ class FooterContainer extends Container {
107
107
  }, {
108
108
  module: Component,
109
109
  cls : ['neo-version'],
110
- html : 'v8.21.0'
110
+ html : 'v8.21.2'
111
111
  }]
112
112
  }],
113
113
  /**
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='8.21.0'
23
+ * @member {String} version='8.21.2'
24
24
  */
25
- version: '8.21.0'
25
+ version: '8.21.2'
26
26
  }
27
27
 
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "8.21.0",
3
+ "version": "8.21.2",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -46,12 +46,12 @@ const DefaultConfig = {
46
46
  /**
47
47
  * Pass a token in case you are using the CesiumJS main thread addon
48
48
  * See: https://github.com/neomjs/neo/blob/dev/src/main/addon/CesiumJS.mjs
49
- * @default null
49
+ * @default undefined
50
50
  * @memberOf! module:Neo
51
51
  * @name config.cesiumJsToken
52
52
  * @type String|null
53
53
  */
54
- cesiumJsToken: null,
54
+
55
55
  /**
56
56
  * Set this config to false to disable the component logging using Ctrl-Right-Click
57
57
  * @default true
@@ -79,21 +79,21 @@ const DefaultConfig = {
79
79
  environment: 'dist/production',
80
80
  /**
81
81
  * In case you are using the GoogleMaps main thread addon, you can pass the API key here.
82
- * @default ''
82
+ * @default undefined
83
83
  * @memberOf! module:Neo
84
84
  * @name config.googleMapsApiKey
85
85
  * @type String
86
86
  */
87
- googleMapsApiKey: '',
87
+
88
88
  /**
89
89
  * In case you are using the GoogleAnalytics main thread addon or useGoogleAnalytics: true,
90
90
  * you can change the gtag id here. Required for the online examples (gh pages)
91
- * @default 'G-DJ13071C55'
91
+ * @default undefined
92
92
  * @memberOf! module:Neo
93
93
  * @name config.gtagId
94
94
  * @type String
95
95
  */
96
- gtagId: 'G-DJ13071C55',
96
+
97
97
  /**
98
98
  * Flag for running on https://neomjs.github.io/pages/
99
99
  * => to use local images paths instead of raw.githubusercontent.com
@@ -253,14 +253,6 @@ const DefaultConfig = {
253
253
  * @type Boolean
254
254
  */
255
255
  useTaskWorker: false,
256
- /**
257
- * Adds global dom event listeners for mobile related events like rotate, swipe, tap
258
- * @default true
259
- * @memberOf! module:Neo
260
- * @name config.useTouchEvents
261
- * @type Boolean
262
- */
263
- useTouchEvents: true,
264
256
  /**
265
257
  * False will create the vdom.Helper within the App worker (experimental!)
266
258
  * @default true
@@ -271,12 +263,12 @@ const DefaultConfig = {
271
263
  useVdomWorker: true,
272
264
  /**
273
265
  * buildScripts/injectPackageVersion.mjs will update this value
274
- * @default '8.21.0'
266
+ * @default '8.21.2'
275
267
  * @memberOf! module:Neo
276
268
  * @name config.version
277
269
  * @type String
278
270
  */
279
- version: '8.21.0'
271
+ version: '8.21.2'
280
272
  };
281
273
 
282
274
  Object.assign(DefaultConfig, {
@@ -53,7 +53,7 @@ class GridScrollbar extends Component {
53
53
  ScrollSync.register({
54
54
  fromId: me.parent.view.vdom.id,
55
55
  toId : me.id,
56
- twoWay: !Neo.config.useTouchEvents, // Syncing the scroller back to the view affects mobile scrolling
56
+ twoWay: !Neo.config.hasTouchEvents, // Syncing the scroller back to the view affects mobile scrolling
57
57
  ...params
58
58
  })
59
59
  } else {
@@ -93,9 +93,8 @@ class GridScrollbar extends Component {
93
93
  let me = this;
94
94
 
95
95
  value.on({
96
- filter: me.updateScrollHeight,
97
- load : me.updateScrollHeight,
98
- scope : me
96
+ load : me.updateScrollHeight,
97
+ scope: me
99
98
  });
100
99
 
101
100
  value.getCount() > 0 && me.updateScrollHeight()
@@ -21,7 +21,7 @@ const globalDomEvents = [
21
21
  {name: 'wheel', handler: 'onWheel', options: {passive: false}}
22
22
  ];
23
23
 
24
- // Will get applied to the document.body in case Neo.config.useTouchEvents === true (default value)
24
+ // Will get applied to the document.body in case Neo.config.hasTouchEvents === true
25
25
  const touchEvents = [
26
26
  {name: 'touchcancel', handler: 'onTouchCancel'},
27
27
  {name: 'touchend', handler: 'onTouchEnd'},
@@ -187,7 +187,7 @@ class DomEvents extends Base {
187
187
  addGlobalDomListeners() {
188
188
  let me = this;
189
189
 
190
- [...globalDomEvents].concat(Neo.config.useTouchEvents ? touchEvents : []).forEach(event => {
190
+ [...globalDomEvents].concat(Neo.config.hasTouchEvents ? touchEvents : []).forEach(event => {
191
191
  document.body.addEventListener(event.name, me[event.handler].bind(me), event.options)
192
192
  });
193
193
  }
@@ -1,7 +1,7 @@
1
1
  import Base from '../../core/Base.mjs';
2
2
 
3
3
  /**
4
- * Will get imported in case Neo.config.useTouchEvents === true
4
+ * Will get imported in case Neo.config.hasTouchEvents === true
5
5
  * @class Neo.main.mixin.TouchDomEvents
6
6
  * @extends Neo.core.Base
7
7
  * @singleton