neo.mjs 3.0.4 → 3.0.5

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.
@@ -36,7 +36,7 @@ class List extends BaseList {
36
36
 
37
37
  return [
38
38
  {cls: ['neo-list-item-content'], id: `${id}__content`, cn: [
39
- {tag: 'img', id: `${id}__image`, src: `../../../resources/examples/${record.image}`},
39
+ {tag: 'img', id: `${id}__image`, src: `${Neo.config.resourcesPath}examples/${record.image}`},
40
40
  {cls: ['neo-list-item-text'], id: `${id}__content_wrapper`, cn: [
41
41
  {html: record.firstname, id: `${id}__firstname`},
42
42
  {cls: ['neo-lastname'], id: `${id}__lastname`, html: record.lastname},
@@ -75,7 +75,7 @@ class MainContainer extends Viewport {
75
75
  minValue : 100,
76
76
  stepSize : 100,
77
77
  style : {marginLeft: '10px'},
78
- value : 3000,
78
+ value : 500,
79
79
  width : 262
80
80
  }, {
81
81
  module: List,
@@ -23,7 +23,7 @@ class MainStore extends Store {
23
23
 
24
24
  filterBy: opts => {
25
25
  let record = opts.item,
26
- value = opts.value;
26
+ value = opts.value?.toLowerCase();
27
27
 
28
28
  if (value) {
29
29
  return !(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "3.0.4",
3
+ "version": "3.0.5",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,6 +1,5 @@
1
- import Base from '../../plugin/Base.mjs';
2
- import CssUtil from '../../util/Css.mjs';
3
- import VdomUtil from '../../util/VDom.mjs';
1
+ import Base from '../../plugin/Base.mjs';
2
+ import CssUtil from '../../util/Css.mjs';
4
3
 
5
4
  /**
6
5
  * @class Neo.list.plugin.Animate
@@ -46,7 +45,7 @@ class Animate extends Base {
46
45
  * Time in ms. Please ensure to match the CSS based value, in case you change the default.
47
46
  * @member {Number} transitionDuration_=500
48
47
  */
49
- transitionDuration_: 2000,
48
+ transitionDuration_: 500,
50
49
  /**
51
50
  * The id of the setTimeout() call which gets triggered after a transition is done.
52
51
  * @member {Number|null} transitionTimeoutId=null
@@ -198,7 +197,7 @@ class Animate extends Base {
198
197
  transitionTimeoutId = me.transitionTimeoutId,
199
198
  intercept = !!transitionTimeoutId,
200
199
  vdom = owner.vdom,
201
- index, item, map, position, vdomIndex;
200
+ index, item, map, position;
202
201
 
203
202
  if (transitionTimeoutId) {
204
203
  clearTimeout(transitionTimeoutId);
@@ -324,12 +323,12 @@ class Animate extends Base {
324
323
  if (hasChange) {
325
324
  owner.vdom.cn = newVdomCn;
326
325
 
327
- owner.promiseVdomUpdate().then(() => {
328
- // we need to ensure to get this call into the next animation frame
329
- setTimeout(() => {
330
- owner.createItems();
331
- }, 50);
332
- });
326
+ owner.vdom = vdom;
327
+
328
+ // we need to ensure to get this call into the next animation frame
329
+ setTimeout(() => {
330
+ owner.createItems();
331
+ }, 50);
333
332
  }
334
333
  }
335
334
  }