@everchron/ec-shards 5.0.61 → 5.0.63
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/dist/ec-shards.common.js +56 -57
- package/dist/ec-shards.common.js.map +1 -1
- package/dist/ec-shards.css +1 -1
- package/dist/ec-shards.umd.js +56 -57
- package/dist/ec-shards.umd.js.map +1 -1
- package/dist/ec-shards.umd.min.js +2 -2
- package/dist/ec-shards.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/data-grid/data-grid-head-cell.vue +6 -6
- package/src/components/jumper-document/jumper-document.vue +1 -1
package/package.json
CHANGED
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
|
|
176
176
|
methods: {
|
|
177
177
|
sortBy(){
|
|
178
|
-
if(this.sorting == 'none')
|
|
178
|
+
if (this.sorting == 'none')
|
|
179
179
|
this.newSort = 'asc'
|
|
180
180
|
else if(this.sorting == 'desc')
|
|
181
181
|
this.newSort = 'asc'
|
|
@@ -187,8 +187,7 @@
|
|
|
187
187
|
},
|
|
188
188
|
|
|
189
189
|
setColumnCellsWidth(){
|
|
190
|
-
|
|
191
|
-
if(!this.initialized) {
|
|
190
|
+
if (!this.initialized) {
|
|
192
191
|
this.initialized = true
|
|
193
192
|
return
|
|
194
193
|
}
|
|
@@ -199,6 +198,8 @@
|
|
|
199
198
|
/** Emitted when the column has been resized. Returns the new width of the column in pixels. */
|
|
200
199
|
this.$emit('resizedWidth', { id: this.id, currentColumnWidth })
|
|
201
200
|
|
|
201
|
+
console.log('columnCells', '[data-column="' + this.name.toLowerCase().replace(' ', '-') + '-column-cell"]')
|
|
202
|
+
|
|
202
203
|
let columnCells = document.querySelectorAll('[data-column="' + this.name.toLowerCase().replace(' ', '-') + '-column-cell"]')
|
|
203
204
|
columnCells.forEach(cell => {
|
|
204
205
|
// if (cell.parentElement && cell.parentElement.__vue__ && typeof cell.parentElement.__vue__.setWidth === 'function')
|
|
@@ -206,7 +207,7 @@
|
|
|
206
207
|
cell.style.width = `${ currentColumnWidth }px`
|
|
207
208
|
})
|
|
208
209
|
|
|
209
|
-
if(this.fixedLeft)
|
|
210
|
+
if (this.fixedLeft)
|
|
210
211
|
this.setCellsFixedLeftOffset()
|
|
211
212
|
},
|
|
212
213
|
|
|
@@ -214,7 +215,7 @@
|
|
|
214
215
|
let gridColumnCells = document.querySelectorAll('.ecs-data-grid-head-cell-inner')
|
|
215
216
|
let startIndex
|
|
216
217
|
|
|
217
|
-
for(let idx = 0; idx < gridColumnCells.length; idx++){
|
|
218
|
+
for (let idx = 0; idx < gridColumnCells.length; idx++){
|
|
218
219
|
if(gridColumnCells[idx].attributes['data-column'].value == this.computedId){
|
|
219
220
|
startIndex = idx
|
|
220
221
|
}
|
|
@@ -246,7 +247,6 @@
|
|
|
246
247
|
},
|
|
247
248
|
|
|
248
249
|
mounted(){
|
|
249
|
-
console.log('mounted', this.computedId)
|
|
250
250
|
if(this.resizable && this.resizeObserver){
|
|
251
251
|
const resizeEl = document.querySelector('[data-column="'+ this.computedId +'"]')
|
|
252
252
|
this.resizeObserver.observe(resizeEl)
|