@gpa-gemstone/common-pages 0.0.34 → 0.0.38

Sign up to get free protection for your applications and to get access to all the features.
@@ -80,7 +80,7 @@ function SelectPopup(props) {
80
80
  }, onClick: function (d) { return setSelectedData(__spreadArray(__spreadArray([], selectedData.filter(function (item) { return item.ID !== d.row.ID; }), true), [d.row], false)); }, theadStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, tbodyStyle: { display: 'block', overflowY: 'scroll', maxHeight: '400px', width: '100%' }, rowStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, selected: props.Type === undefined || props.Type === 'single' ? function (item) { return selectedData.findIndex(function (d) { return d.ID === item.ID; }) > -1; } : function (item) { return false; } })),
81
81
  props.Type === 'multiple' ? React.createElement("div", { className: "col", style: { width: '40%' } },
82
82
  React.createElement("div", { style: { width: '100%' } },
83
- React.createElement("h3", null, " Selected Assets ")),
83
+ React.createElement("h3", null, " Current Selection ")),
84
84
  React.createElement(react_table_1.default, { cols: props.Columns, tableClass: "table table-hover", data: selectedData, sortKey: sortKeySelected, ascending: ascendingSelected, onSort: function (d) {
85
85
  if (d.colKey === sortKeySelected) {
86
86
  var ordered = _.orderBy(selectedData, [d.colKey], [(!ascendingSelected ? "asc" : "desc")]);
@@ -93,6 +93,6 @@ function SelectPopup(props) {
93
93
  setSelectedData(ordered);
94
94
  setSortKeySelected(d.colKey);
95
95
  }
96
- }, onClick: function () { return true; }, theadStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, tbodyStyle: { display: 'block', overflowY: 'scroll', maxHeight: '400px', width: '100%' }, rowStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, selected: function (item) { return false; } })) : null))));
96
+ }, onClick: function (d) { return setSelectedData(__spreadArray([], selectedData.filter(function (item) { return item.ID !== d.row.ID; }), true)); }, theadStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, tbodyStyle: { display: 'block', overflowY: 'scroll', maxHeight: '400px', width: '100%' }, rowStyle: { fontSize: 'smaller', display: 'table', tableLayout: 'fixed', width: '100%' }, selected: function (item) { return false; } })) : null))));
97
97
  }
98
98
  exports.default = SelectPopup;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gpa-gemstone/common-pages",
3
- "version": "0.0.34",
3
+ "version": "0.0.38",
4
4
  "description": "Common UI pages for GPA products",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -47,12 +47,12 @@
47
47
  "typescript": "4.4.4"
48
48
  },
49
49
  "dependencies": {
50
- "@gpa-gemstone/application-typings": "0.0.44",
51
- "@gpa-gemstone/gpa-symbols": "0.0.18",
50
+ "@gpa-gemstone/application-typings": "0.0.45",
51
+ "@gpa-gemstone/gpa-symbols": "0.0.20",
52
52
  "@gpa-gemstone/helper-functions": "0.0.14",
53
53
  "@gpa-gemstone/react-forms": "1.1.21",
54
- "@gpa-gemstone/react-interactive": "1.0.44",
55
- "@gpa-gemstone/react-table": "1.2.10",
54
+ "@gpa-gemstone/react-interactive": "1.0.49",
55
+ "@gpa-gemstone/react-table": "1.2.12",
56
56
  "@reduxjs/toolkit": "1.6.0",
57
57
  "crypto-js": "4.0.0",
58
58
  "moment": "^2.29.1",