@devexpress/dx-react-grid-bootstrap3
Advanced tools
Comparing version 1.0.0-alpha.8 to 1.0.0-alpha.9
/** | ||
* Bundle of @devexpress/dx-react-grid-bootstrap3 | ||
* Generated: 2017-08-21 | ||
* Version: 1.0.0-alpha.8 | ||
* Generated: 2017-09-04 | ||
* Version: 1.0.0-alpha.9 | ||
* License: https://js.devexpress.com/Licensing | ||
@@ -419,14 +419,38 @@ */ | ||
var defaultText = React.createElement( | ||
'span', | ||
{ | ||
style: { | ||
padding: '7px 0', | ||
marginBottom: '5px', | ||
display: 'inline-block' | ||
} | ||
}, | ||
'Drag a column header here to group by that column' | ||
); | ||
var defaultTextStyle = { | ||
padding: '7px 0', | ||
marginBottom: '5px', | ||
display: 'inline-block' | ||
}; | ||
var getDefaultText = function getDefaultText(allowDragging, allowUngroupingByClick) { | ||
if (allowDragging) { | ||
return React.createElement( | ||
'span', | ||
{ style: defaultTextStyle }, | ||
'Drag a column header here to group by that column' | ||
); | ||
} | ||
if (allowUngroupingByClick) { | ||
return React.createElement( | ||
'span', | ||
{ style: defaultTextStyle }, | ||
'Click \xA0', | ||
React.createElement('i', { | ||
className: 'glyphicon glyphicon-th-list', | ||
style: { | ||
top: '0', | ||
fontSize: '9px' | ||
} | ||
}), | ||
'\xA0 icon in the column header to group by that column' | ||
); | ||
} | ||
return React.createElement( | ||
'span', | ||
{ style: defaultTextStyle }, | ||
'Grouping is not available' | ||
); | ||
}; | ||
var PanelTemplate = function PanelTemplate(_ref) { | ||
@@ -453,3 +477,3 @@ var items = _ref.items; | ||
return React.createElement(GroupPanelLayout, _extends({ | ||
groupByColumnText: groupByColumnText || defaultText, | ||
groupByColumnText: groupByColumnText || getDefaultText(restProps.allowDragging, restProps.allowUngroupingByClick), | ||
panelTemplate: panelTemplate | ||
@@ -854,9 +878,7 @@ }, restProps)); | ||
var children = _ref.children, | ||
tableRef = _ref.tableRef, | ||
restProps = objectWithoutProperties(_ref, ['children', 'tableRef']); | ||
restProps = objectWithoutProperties(_ref, ['children']); | ||
return React.createElement( | ||
'table', | ||
_extends({ | ||
className: 'table', | ||
ref: tableRef | ||
className: 'table' | ||
}, restProps), | ||
@@ -863,0 +885,0 @@ children |
/** | ||
* Bundle of @devexpress/dx-react-grid-bootstrap3 | ||
* Generated: 2017-08-21 | ||
* Version: 1.0.0-alpha.8 | ||
* Generated: 2017-09-04 | ||
* Version: 1.0.0-alpha.9 | ||
* License: https://js.devexpress.com/Licensing | ||
@@ -421,14 +421,38 @@ */ | ||
var defaultText = React.createElement( | ||
'span', | ||
{ | ||
style: { | ||
padding: '7px 0', | ||
marginBottom: '5px', | ||
display: 'inline-block' | ||
} | ||
}, | ||
'Drag a column header here to group by that column' | ||
); | ||
var defaultTextStyle = { | ||
padding: '7px 0', | ||
marginBottom: '5px', | ||
display: 'inline-block' | ||
}; | ||
var getDefaultText = function getDefaultText(allowDragging, allowUngroupingByClick) { | ||
if (allowDragging) { | ||
return React.createElement( | ||
'span', | ||
{ style: defaultTextStyle }, | ||
'Drag a column header here to group by that column' | ||
); | ||
} | ||
if (allowUngroupingByClick) { | ||
return React.createElement( | ||
'span', | ||
{ style: defaultTextStyle }, | ||
'Click \xA0', | ||
React.createElement('i', { | ||
className: 'glyphicon glyphicon-th-list', | ||
style: { | ||
top: '0', | ||
fontSize: '9px' | ||
} | ||
}), | ||
'\xA0 icon in the column header to group by that column' | ||
); | ||
} | ||
return React.createElement( | ||
'span', | ||
{ style: defaultTextStyle }, | ||
'Grouping is not available' | ||
); | ||
}; | ||
var PanelTemplate = function PanelTemplate(_ref) { | ||
@@ -455,3 +479,3 @@ var items = _ref.items; | ||
return React.createElement(_devexpress_dxReactGrid.GroupPanelLayout, _extends({ | ||
groupByColumnText: groupByColumnText || defaultText, | ||
groupByColumnText: groupByColumnText || getDefaultText(restProps.allowDragging, restProps.allowUngroupingByClick), | ||
panelTemplate: panelTemplate | ||
@@ -856,9 +880,7 @@ }, restProps)); | ||
var children = _ref.children, | ||
tableRef = _ref.tableRef, | ||
restProps = objectWithoutProperties(_ref, ['children', 'tableRef']); | ||
restProps = objectWithoutProperties(_ref, ['children']); | ||
return React.createElement( | ||
'table', | ||
_extends({ | ||
className: 'table', | ||
ref: tableRef | ||
className: 'table' | ||
}, restProps), | ||
@@ -865,0 +887,0 @@ children |
{ | ||
"name": "@devexpress/dx-react-grid-bootstrap3", | ||
"version": "1.0.0-alpha.8", | ||
"version": "1.0.0-alpha.9", | ||
"description": "Bootstrap 3 templates for DevExtreme React Grid component", | ||
@@ -59,5 +59,5 @@ "author": { | ||
"devDependencies": { | ||
"@devexpress/dx-grid-core": "1.0.0-alpha.8", | ||
"@devexpress/dx-react-core": "1.0.0-alpha.8", | ||
"@devexpress/dx-react-grid": "1.0.0-alpha.8", | ||
"@devexpress/dx-grid-core": "1.0.0-alpha.9", | ||
"@devexpress/dx-react-core": "1.0.0-alpha.9", | ||
"@devexpress/dx-react-grid": "1.0.0-alpha.9", | ||
"@devexpress/dx-testing": "1.0.0-alpha.8", | ||
@@ -98,5 +98,5 @@ "babel-cli": "^6.24.1", | ||
"peerDependencies": { | ||
"@devexpress/dx-grid-core": "1.0.0-alpha.8", | ||
"@devexpress/dx-react-core": "1.0.0-alpha.8", | ||
"@devexpress/dx-react-grid": "1.0.0-alpha.8", | ||
"@devexpress/dx-grid-core": "1.0.0-alpha.9", | ||
"@devexpress/dx-react-core": "1.0.0-alpha.9", | ||
"@devexpress/dx-react-grid": "1.0.0-alpha.9", | ||
"react": "^15.5.4", | ||
@@ -103,0 +103,0 @@ "react-bootstrap": "^0.31.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
309934
3931