@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everchron/ec-shards",
3
- "version": "5.0.61",
3
+ "version": "5.0.63",
4
4
  "private": false,
5
5
  "description": "Everchron Shards UI Library",
6
6
  "repository": "https://github.com/everchron/ec-shards.git",
@@ -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
- console.log('setColumnCellsWidth', this.initialized)
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)
@@ -20,7 +20,7 @@
20
20
  props: {
21
21
  /** Index position of the currently viewed object. */
22
22
  currentEntry: {
23
- type: [Number, String],
23
+ type: Number,
24
24
  required: true
25
25
  },
26
26
  /** Count of the total objects in a given index. */