neo.mjs 8.19.0 → 8.19.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.
- package/apps/ServiceWorker.mjs +2 -2
- package/apps/portal/view/home/FooterContainer.mjs +1 -1
- package/examples/ServiceWorker.mjs +2 -2
- package/examples/grid/bigData/ControlsContainer.mjs +0 -19
- package/package.json +1 -1
- package/resources/scss/src/grid/View.scss +0 -9
- package/src/DefaultConfig.mjs +2 -2
- package/src/grid/Scrollbar.mjs +1 -0
- package/src/grid/View.mjs +3 -4
package/apps/ServiceWorker.mjs
CHANGED
@@ -36,15 +36,10 @@ class ControlsContainer extends Container {
|
|
36
36
|
},
|
37
37
|
|
38
38
|
items: [{
|
39
|
-
ntype: 'component',
|
40
|
-
html : '<a class="github-button" href="https://github.com/neomjs/neo" data-size="large" data-show-count="true" aria-label="Star neomjs/neo on GitHub">Star</a>',
|
41
|
-
style: {marginLeft: 'auto'}
|
42
|
-
}, {
|
43
39
|
labelText : 'Amount Rows',
|
44
40
|
labelWidth: 120,
|
45
41
|
listeners : {change: 'up.onAmountRowsChange'},
|
46
42
|
store : ['1000', '5000', '10000', '20000', '50000'],
|
47
|
-
style : {marginTop: '2em'},
|
48
43
|
value : '1000',
|
49
44
|
width : 200
|
50
45
|
}, {
|
@@ -103,20 +98,6 @@ class ControlsContainer extends Container {
|
|
103
98
|
return this.parent.getItem('grid')
|
104
99
|
}
|
105
100
|
|
106
|
-
/**
|
107
|
-
*
|
108
|
-
*/
|
109
|
-
onConstructed() {
|
110
|
-
super.onConstructed();
|
111
|
-
|
112
|
-
Neo.main.DomAccess.addScript({
|
113
|
-
async : true,
|
114
|
-
defer : true,
|
115
|
-
src : 'https://buttons.github.io/buttons.js',
|
116
|
-
windowId: this.windowId
|
117
|
-
})
|
118
|
-
}
|
119
|
-
|
120
101
|
/**
|
121
102
|
* @param {Object} data
|
122
103
|
*/
|
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -262,12 +262,12 @@ const DefaultConfig = {
|
|
262
262
|
useVdomWorker: true,
|
263
263
|
/**
|
264
264
|
* buildScripts/injectPackageVersion.mjs will update this value
|
265
|
-
* @default '8.19.
|
265
|
+
* @default '8.19.1'
|
266
266
|
* @memberOf! module:Neo
|
267
267
|
* @name config.version
|
268
268
|
* @type String
|
269
269
|
*/
|
270
|
-
version: '8.19.
|
270
|
+
version: '8.19.1'
|
271
271
|
};
|
272
272
|
|
273
273
|
Object.assign(DefaultConfig, {
|
package/src/grid/Scrollbar.mjs
CHANGED
package/src/grid/View.mjs
CHANGED
@@ -125,8 +125,7 @@ class GridView extends Component {
|
|
125
125
|
*/
|
126
126
|
_vdom:
|
127
127
|
{tabIndex: '-1', cn: [
|
128
|
-
{cn: []}
|
129
|
-
{cls: 'neo-grid-stretcher'}
|
128
|
+
{cn: []}
|
130
129
|
]}
|
131
130
|
}
|
132
131
|
|
@@ -207,7 +206,7 @@ class GridView extends Component {
|
|
207
206
|
let me = this;
|
208
207
|
|
209
208
|
me.vdom.width = value + 'px';
|
210
|
-
me.vdom.cn[
|
209
|
+
me.vdom.cn[0].width = value + 'px';
|
211
210
|
me.update()
|
212
211
|
}
|
213
212
|
}
|
@@ -905,7 +904,7 @@ class GridView extends Component {
|
|
905
904
|
{rowHeight} = me;
|
906
905
|
|
907
906
|
if (countRecords > 0 && rowHeight > 0) {
|
908
|
-
me.vdom.cn[
|
907
|
+
me.vdom.cn[0].height = `${(countRecords + 1) * rowHeight}px`;
|
909
908
|
me.update()
|
910
909
|
}
|
911
910
|
}
|