@kizmann/nano-ui 0.8.13 → 0.8.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizmann/nano-ui",
3
- "version": "0.8.13",
3
+ "version": "0.8.15",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "author": "Eduard Kizmann <kizmann@protonmail.ch>",
@@ -276,7 +276,9 @@ export default {
276
276
  props.onMousemove = Any.framerate(this.onHover(tempCascade), 30);
277
277
  }
278
278
 
279
- props['on' + Str.ucfirst(this.mousedown)] = this.onSelect(tempCascade);
279
+ if ( ! disabled ) {
280
+ props['on' + Str.ucfirst(this.mousedown)] = this.onSelect(tempCascade);
281
+ }
280
282
 
281
283
  let children = Obj.get(item, this.childProp);
282
284
 
@@ -334,10 +334,10 @@ export default {
334
334
  this.drag = new NDraghandler(this);
335
335
 
336
336
  Dom.find(window).on('keydown',
337
- this.watchModifierDown, this._uid);
337
+ this.watchModifierDown, this._.uid);
338
338
 
339
339
  Dom.find(window).on('keyup',
340
- this.watchModifierUp, this._uid);
340
+ this.watchModifierUp, this._.uid);
341
341
  },
342
342
 
343
343
  mounted()
@@ -518,7 +518,17 @@ export default {
518
518
 
519
519
  Arr.recursive(this.items, this.childProp, (node, cascade) => {
520
520
 
521
- if ( Obj.get(node, key || this.uniqueProp) !== value ) {
521
+ let val = node;
522
+
523
+ if ( !Any.isEmpty(key) ) {
524
+ val = Obj.get(val, key);
525
+ }
526
+
527
+ if ( ! Any.isFunction(value) ) {
528
+ value = (val) => val === value;
529
+ }
530
+
531
+ if ( ! value(val) ) {
522
532
  return;
523
533
  }
524
534
 
@@ -48,7 +48,7 @@ export default {
48
48
  minimum: {
49
49
  default()
50
50
  {
51
- return 300;
51
+ return 120;
52
52
  },
53
53
  type: [Number]
54
54
  },
@@ -56,7 +56,7 @@ export default {
56
56
  debounce: {
57
57
  default()
58
58
  {
59
- return 300;
59
+ return 120;
60
60
  },
61
61
  type: [Number]
62
62
  }
@@ -581,7 +581,7 @@ export default {
581
581
  });
582
582
 
583
583
  return (
584
- <NPopover trigger="context" width={140}>
584
+ <NPopover trigger="context" width={220}>
585
585
  <NCheckboxGroup vModel={this.tempVisible} align="vertical">
586
586
  {Obj.values(columns)}
587
587
  </NCheckboxGroup>