neo.mjs 6.17.0 → 6.17.1

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.
@@ -1,6 +1,6 @@
1
1
  [
2
2
  {
3
- "browsers" : ["Chrome (including more examples)"],
3
+ "browsers" : ["Chrome", "Edge", "Firefox", "Safari</br>(including more examples)"],
4
4
  "environments": ["Desktop"],
5
5
  "id" : 1,
6
6
  "image" : "devmode/docs.png",
@@ -26,4 +26,4 @@
26
26
  "sourceUrl" : "https://github.com/neomjs/neo/tree/dev/docs",
27
27
  "url" : "https://neomjs.github.io/pages/node_modules/neo.mjs/dist/production/docs/index.html"
28
28
  }
29
- ]
29
+ ]
@@ -52,7 +52,7 @@ class List extends BaseList {
52
52
  value.on({
53
53
  load : 'onBlogPostStoreLoad',
54
54
  scope: this.getController()
55
- });
55
+ })
56
56
  }
57
57
 
58
58
  /**
@@ -65,30 +65,28 @@ class List extends BaseList {
65
65
  basePath = '../../../../resources/website';
66
66
 
67
67
  if (Neo.config.environment !== 'development') {
68
- basePath = '../../' + basePath;
68
+ basePath = '../../' + basePath
69
69
  }
70
70
  } else {
71
- basePath = 'https://raw.githubusercontent.com/neomjs/pages/main/resources/website';
71
+ basePath = 'https://raw.githubusercontent.com/neomjs/pages/main/resources/website'
72
72
  }
73
73
 
74
74
  const vdomCn = [
75
- {cls: ['content'], cn: [
76
- {cls: ['neo-relative'], cn: [
77
- {cls: ['neo-full-size', 'preview-image'], style: {
78
- backgroundImage: `url('${basePath}/blog/${record.image}'), linear-gradient(#777, #333)`}
79
- },
80
- {cls: ['neo-absolute', 'neo-item-bottom-position'], cn: [
81
- {tag: 'a', cls: ['neo-title'], href: record.url, target: '_blank', cn: [
82
- {flag: 'name', html: record.name.replace(List.nameRegEx, "$1")}
83
- ]},
84
- {cls: ['neo-top-20'], cn: [
85
- {tag: 'img', cls: ['neo-user-image'], src: `${basePath}/blogAuthor/${record.authorImage}`},
86
- {cls: ['neo-inner-content'], cn: [
87
- {cls: ['neo-inner-details'], flag: 'author', cn: [
88
- {tag: 'span', cls: ['neo-bold'], html: record.author}
89
- ]},
90
- {cls: ['neo-inner-details'], html: record.date}
91
- ]}
75
+ {cls: ['content', 'neo-relative'], cn: [
76
+ {cls: ['neo-full-size', 'preview-image'], style: {
77
+ backgroundImage: `url('${basePath}/blog/${record.image}'), linear-gradient(#777, #333)`}
78
+ },
79
+ {cls: ['neo-absolute', 'neo-item-bottom-position'], cn: [
80
+ {tag: 'a', cls: ['neo-title'], href: record.url, target: '_blank', cn: [
81
+ {flag: 'name', html: record.name.replace(List.nameRegEx, "$1")}
82
+ ]},
83
+ {cls: ['neo-top-20'], cn: [
84
+ {tag: 'img', cls: ['neo-user-image'], src: `${basePath}/blogAuthor/${record.authorImage}`},
85
+ {cls: ['neo-inner-content'], cn: [
86
+ {cls: ['neo-inner-details'], flag: 'author', cn: [
87
+ {tag: 'span', cls: ['neo-bold'], html: record.author}
88
+ ]},
89
+ {cls: ['neo-inner-details'], html: record.date}
92
90
  ]}
93
91
  ]}
94
92
  ]}
@@ -99,19 +97,19 @@ class List extends BaseList {
99
97
  VDomUtil.getByFlag(vdomCn[0], 'author').cn.push(
100
98
  {vtype: 'text', html : ' in '},
101
99
  {tag: 'span', cls: ['neo-bold'], html: record.publisher}
102
- );
100
+ )
103
101
  }
104
102
 
105
103
  if (record.selectedInto.length > 0) {
106
- vdomCn[0].cn[0].cn.splice(1, 0,
104
+ vdomCn[0].cn.splice(1, 0,
107
105
  {cls: ['neo-absolute', 'neo-item-top-position'], cn: [
108
106
  {html: `Officially selected by ${record.provider} into`},
109
107
  {cls: ['neo-bold'], html: record.selectedInto.join('</br>')}
110
108
  ]}
111
- );
109
+ )
112
110
  }
113
111
 
114
- return vdomCn;
112
+ return vdomCn
115
113
  }
116
114
 
117
115
  /**
@@ -135,7 +133,7 @@ class List extends BaseList {
135
133
 
136
134
  if (emptyValue) {
137
135
  itemName.html = name;
138
- delete item.style.display;
136
+ delete item.style.display
139
137
  } else {
140
138
  itemName.html = name.replace(valueRegEx, match => {
141
139
  hasMatch = true;
@@ -143,28 +141,28 @@ class List extends BaseList {
143
141
  });
144
142
 
145
143
  if (hasMatch) {
146
- delete item.style.display;
144
+ delete item.style.display
147
145
  } else {
148
- item.style.display = 'none';
146
+ item.style.display = 'none'
149
147
  }
150
148
  }
151
149
  });
152
150
 
153
- me.update();
151
+ me.update()
154
152
  }
155
153
 
156
154
  /**
157
155
  * @returns {Object}
158
156
  */
159
157
  getVdomRoot() {
160
- return this.vdom.cn[0];
158
+ return this.vdom.cn[0]
161
159
  }
162
160
 
163
161
  /**
164
162
  * @returns {Object}
165
163
  */
166
164
  getVnodeRoot() {
167
- return this.vnode.childNodes[0];
165
+ return this.vnode.childNodes[0]
168
166
  }
169
167
  }
170
168
 
@@ -77,47 +77,45 @@ class List extends BaseList {
77
77
  basePath = '../../../../resources/website/examples';
78
78
 
79
79
  if (Neo.config.environment !== 'development') {
80
- basePath = '../../' + basePath;
80
+ basePath = '../../' + basePath
81
81
  }
82
82
  } else {
83
- basePath = 'https://raw.githubusercontent.com/neomjs/pages/main/resources/website/examples';
83
+ basePath = 'https://raw.githubusercontent.com/neomjs/pages/main/resources/website/examples'
84
84
  }
85
85
 
86
86
  return [
87
- {cls: ['content'], cn: [
87
+ {cls: ['content', 'neo-relative'], cn: [
88
88
  {cls: ['neo-full-size', 'preview-image'], style: {
89
89
  backgroundImage: `url('${basePath}/${record.image}'), linear-gradient(#777, #333)`}
90
90
  },
91
- {cls: ['neo-relative'], cn: [
92
- {cls: ['neo-absolute', 'neo-item-bottom-position'], cn: [
93
- {tag: 'a', cls: ['neo-title'], href: record.url, target: '_blank', cn: [
94
- {html: record.name.replace(List.nameRegEx, "$1")}
95
- ]},
96
- {cls: ['neo-top-20'], cn: [
97
- {tag: 'a', cls: ['fab fa-github', 'neo-github-image'], href: record.sourceUrl, target: '_blank'},
98
- {cls: ['neo-inner-content'], cn: [
99
- {cls: ['neo-inner-details'], html: record.browsers.join(', ')},
100
- {cls: ['neo-inner-details'], html: record.environments.join(', ')}
101
- ]}
91
+ {cls: ['neo-absolute', 'neo-item-bottom-position'], cn: [
92
+ {tag: 'a', cls: ['neo-title'], href: record.url, target: '_blank', cn: [
93
+ {html: record.name.replace(List.nameRegEx, "$1")}
94
+ ]},
95
+ {cls: ['neo-top-20'], cn: [
96
+ {tag: 'a', cls: ['fab fa-github', 'neo-github-image'], href: record.sourceUrl, target: '_blank'},
97
+ {cls: ['neo-inner-content'], cn: [
98
+ {cls: ['neo-inner-details'], html: record.browsers.join(', ')},
99
+ {cls: ['neo-inner-details'], html: record.environments.join(', ')}
102
100
  ]}
103
101
  ]}
104
102
  ]}
105
103
  ]}
106
- ];
104
+ ]
107
105
  }
108
106
 
109
107
  /**
110
108
  * @returns {Object}
111
109
  */
112
110
  getVdomRoot() {
113
- return this.vdom.cn[0];
111
+ return this.vdom.cn[0]
114
112
  }
115
113
 
116
114
  /**
117
115
  * @returns {Object}
118
116
  */
119
117
  getVnodeRoot() {
120
- return this.vnode.childNodes[0];
118
+ return this.vnode.childNodes[0]
121
119
  }
122
120
  }
123
121
 
@@ -246,6 +246,10 @@ class MembersList extends Base {
246
246
 
247
247
  // methods
248
248
  if (item.params && item.kind !== 'event') {
249
+ if (item.$kind === 'property') {console.log(item);
250
+ headerText = 'get ' + headerText
251
+ }
252
+
249
253
  headerText += ('(' + item.params.reduce((result, param) => {
250
254
  if (param.name.indexOf('.') < 0) {
251
255
  if (param.optional) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "6.17.0",
3
+ "version": "6.17.1",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {