neo.mjs 4.3.33 → 4.4.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "4.3.33",
3
+ "version": "4.4.0",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -62,6 +62,7 @@
62
62
  &.neo-selected {
63
63
  background-color: v(list-item-background-color-selected) !important;
64
64
  color : v(list-item-color-selected) !important;
65
+ cursor : default !important;
65
66
  }
66
67
 
67
68
  .neo-highlight-search {
@@ -60,6 +60,39 @@ class Base extends CoreBase {
60
60
  */
61
61
  applyRenderAttributes() {}
62
62
 
63
+ /**
64
+ *
65
+ */
66
+ destroy() {
67
+ let me = this;
68
+
69
+ me.bind && Neo.getComponent(me.containerId).getModel()?.removeBindings(me.id);
70
+
71
+ super.destroy();
72
+ }
73
+
74
+ /**
75
+ * Returns the container model or its closest parent model
76
+ * @param {String} [ntype]
77
+ * @returns {Neo.model.Component|null}
78
+ */
79
+ getModel(ntype) {
80
+ return Neo.getComponent(this.containerId).getModel();
81
+ }
82
+
83
+ /**
84
+ * Applies all class configs to this instance
85
+ * @param {Object} config
86
+ * @param {Boolean} [preventOriginalConfig] True prevents the instance from getting an originalConfig property
87
+ */
88
+ initConfig(config, preventOriginalConfig) {
89
+ super.initConfig(config, preventOriginalConfig);
90
+
91
+ let me = this;
92
+
93
+ me.bind && Neo.getComponent(me.containerId).getModel()?.parseConfig(me);
94
+ }
95
+
63
96
  /**
64
97
  * Placeholder method
65
98
  * @param {Neo.component.Base} item