@corpsmap/corpsmap 3.2.6 → 3.2.7
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/lib/dev.js +4 -2
- package/lib/prod.js +4 -2
- package/package.json +1 -1
- package/src/core-plugins/identify/identify-table.js +3 -1
package/lib/dev.js
CHANGED
|
@@ -106554,7 +106554,7 @@ var config = {
|
|
|
106554
106554
|
};
|
|
106555
106555
|
|
|
106556
106556
|
var name = "@corpsmap/corpsmap";
|
|
106557
|
-
var version$1 = "3.2.
|
|
106557
|
+
var version$1 = "3.2.7";
|
|
106558
106558
|
var description = "CorpsMap as React Components";
|
|
106559
106559
|
var main = "index.js";
|
|
106560
106560
|
var scripts = {
|
|
@@ -141650,6 +141650,8 @@ var IdentifyTable = /*#__PURE__*/function (_React$Component) {
|
|
|
141650
141650
|
key: "generateColumns",
|
|
141651
141651
|
value: function generateColumns(properties) {
|
|
141652
141652
|
return Object.keys(properties).map(function (key, i) {
|
|
141653
|
+
// Increase the width for longer column names.
|
|
141654
|
+
var width = key && key.length > 15 ? 150 + (key.length - 10) * 5 : 150;
|
|
141653
141655
|
return {
|
|
141654
141656
|
id: i,
|
|
141655
141657
|
key: key,
|
|
@@ -141657,7 +141659,7 @@ var IdentifyTable = /*#__PURE__*/function (_React$Component) {
|
|
|
141657
141659
|
editable: false,
|
|
141658
141660
|
sortable: true,
|
|
141659
141661
|
filterable: true,
|
|
141660
|
-
width:
|
|
141662
|
+
width: width,
|
|
141661
141663
|
resizable: true,
|
|
141662
141664
|
nullable: true,
|
|
141663
141665
|
formatter: Cell
|
package/lib/prod.js
CHANGED
|
@@ -106468,7 +106468,7 @@ var config = {
|
|
|
106468
106468
|
};
|
|
106469
106469
|
|
|
106470
106470
|
var name = "@corpsmap/corpsmap";
|
|
106471
|
-
var version$1 = "3.2.
|
|
106471
|
+
var version$1 = "3.2.7";
|
|
106472
106472
|
var description = "CorpsMap as React Components";
|
|
106473
106473
|
var main = "index.js";
|
|
106474
106474
|
var scripts = {
|
|
@@ -141564,6 +141564,8 @@ var IdentifyTable = /*#__PURE__*/function (_React$Component) {
|
|
|
141564
141564
|
key: "generateColumns",
|
|
141565
141565
|
value: function generateColumns(properties) {
|
|
141566
141566
|
return Object.keys(properties).map(function (key, i) {
|
|
141567
|
+
// Increase the width for longer column names.
|
|
141568
|
+
var width = key && key.length > 15 ? 150 + (key.length - 10) * 5 : 150;
|
|
141567
141569
|
return {
|
|
141568
141570
|
id: i,
|
|
141569
141571
|
key: key,
|
|
@@ -141571,7 +141573,7 @@ var IdentifyTable = /*#__PURE__*/function (_React$Component) {
|
|
|
141571
141573
|
editable: false,
|
|
141572
141574
|
sortable: true,
|
|
141573
141575
|
filterable: true,
|
|
141574
|
-
width:
|
|
141576
|
+
width: width,
|
|
141575
141577
|
resizable: true,
|
|
141576
141578
|
nullable: true,
|
|
141577
141579
|
formatter: Cell
|
package/package.json
CHANGED
|
@@ -104,6 +104,8 @@ class IdentifyTable extends React.Component {
|
|
|
104
104
|
|
|
105
105
|
generateColumns(properties) {
|
|
106
106
|
return Object.keys(properties).map((key, i) => {
|
|
107
|
+
// Increase the width for longer column names.
|
|
108
|
+
let width = key && key.length > 15 ? 150 + (key.length -10 ) * 5 : 150;
|
|
107
109
|
return {
|
|
108
110
|
id: i,
|
|
109
111
|
key: key,
|
|
@@ -111,7 +113,7 @@ class IdentifyTable extends React.Component {
|
|
|
111
113
|
editable: false,
|
|
112
114
|
sortable: true,
|
|
113
115
|
filterable: true,
|
|
114
|
-
width:
|
|
116
|
+
width: width,
|
|
115
117
|
resizable: true,
|
|
116
118
|
nullable: true,
|
|
117
119
|
formatter: Cell,
|