neo.mjs 4.3.29 → 4.3.31

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.
@@ -47,7 +47,10 @@ class FooterContainer extends Container {
47
47
  }, {
48
48
  flex: 1
49
49
  }, {
50
- html : 'Country Flag Icons made by <a target="_blank" href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a target="_blank" href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a>.'
50
+ html : [
51
+ 'Country Flag Icons made by <a target="_blank" href="https://www.flaticon.com/authors/freepik" title="Freepik">',
52
+ 'Freepik</a> from <a target="_blank" href="https://www.flaticon.com/" title="Flaticon"> www.flaticon.com</a>.'
53
+ ].join('')
51
54
  }, {
52
55
  ntype : 'button',
53
56
  cls : ['neo-button'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "4.3.29",
3
+ "version": "4.3.31",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -56,7 +56,7 @@
56
56
  "neo-jsdoc": "^1.0.1",
57
57
  "neo-jsdoc-x": "^1.0.4",
58
58
  "postcss": "^8.4.20",
59
- "sass": "^1.56.2",
59
+ "sass": "^1.57.0",
60
60
  "webpack": "^5.75.0",
61
61
  "webpack-cli": "^5.0.1",
62
62
  "webpack-dev-server": "4.11.1",
@@ -43,7 +43,6 @@
43
43
 
44
44
  .neo-list-item {
45
45
  background-color: v(list-item-background-color);
46
- cursor : pointer;
47
46
  padding : v(list-item-padding);
48
47
  white-space : nowrap;
49
48
 
@@ -51,8 +50,13 @@
51
50
  outline: 0;
52
51
  }
53
52
 
54
- &:hover {
55
- background-color: v(list-item-background-color-hover);
53
+ &:not(.neo-list-header) {
54
+ cursor: pointer;
55
+
56
+ &:hover {
57
+ background-color: v(list-item-background-color-hover);
58
+ color : v(list-container-list-color);
59
+ }
56
60
  }
57
61
 
58
62
  &.neo-selected {
@@ -529,7 +529,7 @@ class Base extends Component {
529
529
  me[silent || destroyItem ? '_vdom' : 'vdom'] = vdom;
530
530
 
531
531
  if (destroyItem) {
532
- item.destroy(false, true);
532
+ item.destroy(true, silent);
533
533
  } else {
534
534
  item.mounted = false;
535
535
  }
package/src/list/Base.mjs CHANGED
@@ -509,9 +509,12 @@ class Base extends Component {
509
509
  * @param {Object} data
510
510
  */
511
511
  onItemClick(node, data) {
512
- let me = this;
512
+ let me = this,
513
+ record = me.store.get(me.getItemRecordId(node.id));
513
514
 
514
- !me.disableSelection && me.selectionModel?.select(node.id);
515
+ if (!me.disableSelection && (!me.useHeaders || !record.isHeader)) {
516
+ me.selectionModel?.select(node.id);
517
+ }
515
518
 
516
519
  /**
517
520
  * The itemClick event fires when a click occurs on a list item
@@ -519,7 +522,7 @@ class Base extends Component {
519
522
  * @param {String} id the record matching the list item
520
523
  * @returns {Object}
521
524
  */
522
- me.fire('itemClick', me.store.get(me.getItemRecordId(node.id)));
525
+ me.fire('itemClick', record);
523
526
  }
524
527
 
525
528
  /**
@@ -438,7 +438,7 @@ class Component extends Base {
438
438
  parentModel = me.getParent();
439
439
 
440
440
  if (!parentModel) {
441
- console.error(`store '${key}' found inside this model or parents.`, originModel);
441
+ console.error(`store '${key}' not found inside this model or parents.`, originModel);
442
442
  }
443
443
 
444
444
  return parentModel.getStore(key, originModel);