@zambezi/grid
Advanced tools
Comparing version 0.14.0 to 0.14.1-dataset-ie-support.1
{ | ||
"name": "@zambezi/grid", | ||
"version": "0.14.0", | ||
"version": "0.14.1-dataset-ie-support.1", | ||
"description": "D3 component for drawing financial grids.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
import { appendFromTemplate, selectionChanged, rebind, forward } from '@zambezi/d3-utils' | ||
import { dataset } from './dataset' | ||
import { dispatch as createDispatch } from 'd3-dispatch' | ||
@@ -17,3 +18,2 @@ import { property, batch } from '@zambezi/fun' | ||
, isLast = property('isLast') | ||
, rowIndexMatch = /(\bgrid-row-index-\d+\b|$)/ | ||
@@ -97,2 +97,3 @@ export function createCells() { | ||
.each(updateRow) | ||
.call(dataset, 'gridRowIndex', d => d.index) | ||
.select( | ||
@@ -161,3 +162,2 @@ changed.key( | ||
this.dataset.gridRowIndex = index | ||
sheet(selector, { top: top(d) }) | ||
@@ -203,1 +203,2 @@ } | ||
} | ||
@@ -7,7 +7,8 @@ import { select } from 'd3-selection' | ||
if (target.attr('id')) return | ||
target.attr( | ||
'id' | ||
, this.dataset.componentId || uniqueId('gen-grid-') | ||
, (this.dataset && this.dataset.componentId) | ||
|| target.attr('data-component-id') | ||
|| uniqueId('gen-grid-') | ||
) | ||
} |
@@ -0,5 +1,6 @@ | ||
import { dataset } from './dataset' | ||
import { isFunction } from 'underscore' | ||
import { property } from '@zambezi/fun' | ||
import { select } from 'd3-selection' | ||
import { selectionChanged } from '@zambezi/d3-utils' | ||
import { isFunction } from 'underscore' | ||
import { wrap } from './wrap-row' | ||
@@ -48,3 +49,3 @@ | ||
.select(rowNestedLevelChanged) | ||
.each(() => this.dataset.nestLevel = d.row.nestLevel) | ||
.call(dataset, 'nestLevel', d.row.nestLevel) | ||
} | ||
@@ -51,0 +52,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
430938
81
5376