@bento-core/table 1.0.1-ccdihub.92 → 1.0.1-ccdihub.93
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.
|
@@ -115,7 +115,7 @@ const DownloadButton = _ref => {
|
|
|
115
115
|
width: '48px',
|
|
116
116
|
height: '36px',
|
|
117
117
|
paddingLeft: '5px',
|
|
118
|
-
border: "
|
|
118
|
+
border: "".concat(listDisplay === 'none' ? '0.75px solid #606060' : '1.5px solid #5666BD'),
|
|
119
119
|
borderRadius: '5px',
|
|
120
120
|
display: 'inline-block',
|
|
121
121
|
position: 'relative',
|
|
@@ -126,7 +126,7 @@ const DownloadButton = _ref => {
|
|
|
126
126
|
position: 'absolute',
|
|
127
127
|
width: '60px',
|
|
128
128
|
top: '38px',
|
|
129
|
-
|
|
129
|
+
left: '-13.5px',
|
|
130
130
|
overflow: 'auto',
|
|
131
131
|
zIndex: '5',
|
|
132
132
|
border: '1.5px solid #5666BD',
|
|
@@ -146,7 +146,9 @@ const DownloadButton = _ref => {
|
|
|
146
146
|
},
|
|
147
147
|
arrowdownIcon: {
|
|
148
148
|
fill: '#606060',
|
|
149
|
-
marginTop: '2px'
|
|
149
|
+
marginTop: '2px',
|
|
150
|
+
width: '20px',
|
|
151
|
+
height: '20px'
|
|
150
152
|
},
|
|
151
153
|
arrowdownIconDisabled: {
|
|
152
154
|
marginLeft: '5px',
|
|
@@ -86,16 +86,33 @@ const ManageColumnView = _ref => {
|
|
|
86
86
|
position: 'absolute',
|
|
87
87
|
width: '230px',
|
|
88
88
|
marginTop: '38px',
|
|
89
|
-
marginLeft: '-
|
|
89
|
+
marginLeft: '-188px',
|
|
90
90
|
overflow: 'auto',
|
|
91
|
-
zIndex: '
|
|
91
|
+
zIndex: '11',
|
|
92
92
|
border: '1.5px solid #5666BD',
|
|
93
93
|
borderRadius: '5px',
|
|
94
94
|
background: '#ffffff',
|
|
95
95
|
display: listDisplay
|
|
96
96
|
};
|
|
97
|
+
const titleStyle = {
|
|
98
|
+
fontFamily: 'Poppins',
|
|
99
|
+
fontWeight: '400',
|
|
100
|
+
fontSize: '14px',
|
|
101
|
+
display: 'flex',
|
|
102
|
+
position: 'relative',
|
|
103
|
+
top: '15px',
|
|
104
|
+
left: '1px',
|
|
105
|
+
color: '#000000'
|
|
106
|
+
};
|
|
107
|
+
const textStyle = {
|
|
108
|
+
fontFamily: 'Poppins',
|
|
109
|
+
fontSize: '14px',
|
|
110
|
+
fontWeight: '400'
|
|
111
|
+
};
|
|
97
112
|
const arrowdownIcon = {
|
|
98
|
-
fill: '#606060'
|
|
113
|
+
fill: '#606060',
|
|
114
|
+
width: '20px',
|
|
115
|
+
height: '20px'
|
|
99
116
|
};
|
|
100
117
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
101
118
|
style: columnDropdown
|
|
@@ -120,15 +137,19 @@ const ManageColumnView = _ref => {
|
|
|
120
137
|
style: dropdownList
|
|
121
138
|
}, /*#__PURE__*/_react.default.createElement(_core.Typography, {
|
|
122
139
|
variant: "caption",
|
|
123
|
-
className: "viewColumnText"
|
|
140
|
+
className: "viewColumnText",
|
|
141
|
+
style: titleStyle
|
|
124
142
|
}, manageViewColumns.title), /*#__PURE__*/_react.default.createElement(_core.IconButton, {
|
|
125
143
|
onClick: handleClose,
|
|
126
144
|
className: "closeIcon",
|
|
127
145
|
style: {
|
|
128
|
-
float: 'right'
|
|
146
|
+
float: 'right',
|
|
147
|
+
bottom: '20px',
|
|
148
|
+
scale: '0.75'
|
|
129
149
|
}
|
|
130
150
|
}, /*#__PURE__*/_react.default.createElement(_icons.Close, null)), /*#__PURE__*/_react.default.createElement(_core.List, {
|
|
131
|
-
className: "viewColumnList"
|
|
151
|
+
className: "viewColumnList",
|
|
152
|
+
id: "dropdownListItemTitle"
|
|
132
153
|
}, viewColumns.map((column, index) => /*#__PURE__*/_react.default.createElement(_core.ListItem, {
|
|
133
154
|
width: 1,
|
|
134
155
|
className: "viewColumnListItem",
|
|
@@ -147,7 +168,7 @@ const ManageColumnView = _ref => {
|
|
|
147
168
|
checkedIcon: /*#__PURE__*/_react.default.createElement(_icons.CheckBox, {
|
|
148
169
|
style: {
|
|
149
170
|
fontSize: 18,
|
|
150
|
-
color: column.hideable ? 'rgba(
|
|
171
|
+
color: column.hideable ? 'rgba(109, 95, 91, 1)' : 'rgba(109, 95, 91, 0.38)'
|
|
151
172
|
},
|
|
152
173
|
className: "checkBoxIcon"
|
|
153
174
|
}),
|
|
@@ -157,7 +178,10 @@ const ManageColumnView = _ref => {
|
|
|
157
178
|
disabled: !column.hideable
|
|
158
179
|
}),
|
|
159
180
|
disabled: !column.hideable,
|
|
160
|
-
label:
|
|
181
|
+
label: /*#__PURE__*/_react.default.createElement(_core.Typography, {
|
|
182
|
+
id: "dropdownListItemLabel-".concat(index),
|
|
183
|
+
style: textStyle
|
|
184
|
+
}, column.header),
|
|
161
185
|
id: "dropdownListItem-".concat(index, "-label")
|
|
162
186
|
}))), /*#__PURE__*/_react.default.createElement(_core.Divider, {
|
|
163
187
|
style: {
|
|
@@ -167,7 +191,10 @@ const ManageColumnView = _ref => {
|
|
|
167
191
|
}
|
|
168
192
|
}), /*#__PURE__*/_react.default.createElement(_core.ListItem, {
|
|
169
193
|
width: 1,
|
|
170
|
-
className: "viewColumnListItem"
|
|
194
|
+
className: "viewColumnListItem",
|
|
195
|
+
style: {
|
|
196
|
+
height: '20px'
|
|
197
|
+
}
|
|
171
198
|
}, /*#__PURE__*/_react.default.createElement(_core.FormControlLabel, {
|
|
172
199
|
control: /*#__PURE__*/_react.default.createElement(_core.Checkbox, {
|
|
173
200
|
icon: /*#__PURE__*/_react.default.createElement(_icons.CheckBoxOutlineBlank, {
|
|
@@ -182,7 +209,7 @@ const ManageColumnView = _ref => {
|
|
|
182
209
|
checkedIcon: /*#__PURE__*/_react.default.createElement(_icons.CheckBox, {
|
|
183
210
|
style: {
|
|
184
211
|
fontSize: 18,
|
|
185
|
-
color: 'rgba(
|
|
212
|
+
color: 'rgba(109, 95, 91, 1)'
|
|
186
213
|
},
|
|
187
214
|
className: "checkBoxIcon"
|
|
188
215
|
}),
|
|
@@ -190,7 +217,10 @@ const ManageColumnView = _ref => {
|
|
|
190
217
|
color: "secondary",
|
|
191
218
|
className: "checkBox"
|
|
192
219
|
}),
|
|
193
|
-
label:
|
|
220
|
+
label: /*#__PURE__*/_react.default.createElement(_core.Typography, {
|
|
221
|
+
id: "dropdownListItem-all-label",
|
|
222
|
+
style: textStyle
|
|
223
|
+
}, selectAll ? 'Deselect All' : 'Select All'),
|
|
194
224
|
id: "dropdownListItem-all-label"
|
|
195
225
|
})))));
|
|
196
226
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bento-core/table",
|
|
3
|
-
"version": "1.0.1-ccdihub.
|
|
3
|
+
"version": "1.0.1-ccdihub.93",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npm run lint && cross-env-shell rm -rf dist && NODE_ENV=production BABEL_ENV=es babel src --out-dir dist --copy-files",
|
|
@@ -123,7 +123,7 @@ const DownloadButton = ({
|
|
|
123
123
|
width: '48px',
|
|
124
124
|
height: '36px',
|
|
125
125
|
paddingLeft: '5px',
|
|
126
|
-
border:
|
|
126
|
+
border: `${listDisplay === 'none' ? '0.75px solid #606060' : '1.5px solid #5666BD'}`,
|
|
127
127
|
borderRadius: '5px',
|
|
128
128
|
display: 'inline-block',
|
|
129
129
|
position: 'relative',
|
|
@@ -134,7 +134,7 @@ const DownloadButton = ({
|
|
|
134
134
|
position: 'absolute',
|
|
135
135
|
width: '60px',
|
|
136
136
|
top: '38px',
|
|
137
|
-
|
|
137
|
+
left: '-13.5px',
|
|
138
138
|
overflow: 'auto',
|
|
139
139
|
zIndex: '5',
|
|
140
140
|
border: '1.5px solid #5666BD',
|
|
@@ -155,6 +155,8 @@ const DownloadButton = ({
|
|
|
155
155
|
arrowdownIcon: {
|
|
156
156
|
fill: '#606060',
|
|
157
157
|
marginTop: '2px',
|
|
158
|
+
width: '20px',
|
|
159
|
+
height: '20px',
|
|
158
160
|
},
|
|
159
161
|
arrowdownIconDisabled: {
|
|
160
162
|
marginLeft: '5px',
|
|
@@ -101,17 +101,36 @@ const ManageColumnView = ({
|
|
|
101
101
|
position: 'absolute',
|
|
102
102
|
width: '230px',
|
|
103
103
|
marginTop: '38px',
|
|
104
|
-
marginLeft: '-
|
|
104
|
+
marginLeft: '-188px',
|
|
105
105
|
overflow: 'auto',
|
|
106
|
-
zIndex: '
|
|
106
|
+
zIndex: '11',
|
|
107
107
|
border: '1.5px solid #5666BD',
|
|
108
108
|
borderRadius: '5px',
|
|
109
109
|
background: '#ffffff',
|
|
110
110
|
display: listDisplay,
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
+
const titleStyle = {
|
|
114
|
+
fontFamily: 'Poppins',
|
|
115
|
+
fontWeight: '400',
|
|
116
|
+
fontSize: '14px',
|
|
117
|
+
display: 'flex',
|
|
118
|
+
position: 'relative',
|
|
119
|
+
top: '15px',
|
|
120
|
+
left: '1px',
|
|
121
|
+
color: '#000000',
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const textStyle = {
|
|
125
|
+
fontFamily: 'Poppins',
|
|
126
|
+
fontSize: '14px',
|
|
127
|
+
fontWeight: '400',
|
|
128
|
+
};
|
|
129
|
+
|
|
113
130
|
const arrowdownIcon = {
|
|
114
131
|
fill: '#606060',
|
|
132
|
+
width: '20px',
|
|
133
|
+
height: '20px',
|
|
115
134
|
};
|
|
116
135
|
return (
|
|
117
136
|
<div style={columnDropdown}>
|
|
@@ -125,17 +144,17 @@ const ManageColumnView = ({
|
|
|
125
144
|
</IconButton>
|
|
126
145
|
</Tooltip>
|
|
127
146
|
<div style={dropdownList}>
|
|
128
|
-
<Typography variant="caption" className="viewColumnText">
|
|
147
|
+
<Typography variant="caption" className="viewColumnText" style={titleStyle}>
|
|
129
148
|
{manageViewColumns.title}
|
|
130
149
|
</Typography>
|
|
131
150
|
<IconButton
|
|
132
151
|
onClick={handleClose}
|
|
133
152
|
className="closeIcon"
|
|
134
|
-
style={{ float: 'right' }}
|
|
153
|
+
style={{ float: 'right', bottom: '20px', scale: '0.75' }}
|
|
135
154
|
>
|
|
136
155
|
<Close />
|
|
137
156
|
</IconButton>
|
|
138
|
-
<List className="viewColumnList">
|
|
157
|
+
<List className="viewColumnList" id="dropdownListItemTitle">
|
|
139
158
|
{viewColumns.map((column, index) => (
|
|
140
159
|
<ListItem
|
|
141
160
|
width={1}
|
|
@@ -158,7 +177,7 @@ const ManageColumnView = ({
|
|
|
158
177
|
<CheckBoxIcon
|
|
159
178
|
style={{
|
|
160
179
|
fontSize: 18,
|
|
161
|
-
color: column.hideable ? 'rgba(
|
|
180
|
+
color: column.hideable ? 'rgba(109, 95, 91, 1)' : 'rgba(109, 95, 91, 0.38)',
|
|
162
181
|
}}
|
|
163
182
|
className="checkBoxIcon"
|
|
164
183
|
/>
|
|
@@ -170,7 +189,7 @@ const ManageColumnView = ({
|
|
|
170
189
|
/>
|
|
171
190
|
)}
|
|
172
191
|
disabled={!column.hideable}
|
|
173
|
-
label={column.header}
|
|
192
|
+
label={<Typography id={`dropdownListItemLabel-${index}`} style={textStyle}>{column.header}</Typography>}
|
|
174
193
|
id={`dropdownListItem-${index}-label`}
|
|
175
194
|
/>
|
|
176
195
|
</ListItem>
|
|
@@ -179,6 +198,7 @@ const ManageColumnView = ({
|
|
|
179
198
|
<ListItem
|
|
180
199
|
width={1}
|
|
181
200
|
className="viewColumnListItem"
|
|
201
|
+
style={{ height: '20px' }}
|
|
182
202
|
>
|
|
183
203
|
<FormControlLabel
|
|
184
204
|
control={(
|
|
@@ -196,7 +216,7 @@ const ManageColumnView = ({
|
|
|
196
216
|
<CheckBoxIcon
|
|
197
217
|
style={{
|
|
198
218
|
fontSize: 18,
|
|
199
|
-
color: 'rgba(
|
|
219
|
+
color: 'rgba(109, 95, 91, 1)',
|
|
200
220
|
}}
|
|
201
221
|
className="checkBoxIcon"
|
|
202
222
|
/>
|
|
@@ -206,7 +226,11 @@ const ManageColumnView = ({
|
|
|
206
226
|
className="checkBox"
|
|
207
227
|
/>
|
|
208
228
|
)}
|
|
209
|
-
label={
|
|
229
|
+
label={(
|
|
230
|
+
<Typography id="dropdownListItem-all-label" style={textStyle}>
|
|
231
|
+
{selectAll ? 'Deselect All' : 'Select All'}
|
|
232
|
+
</Typography>
|
|
233
|
+
)}
|
|
210
234
|
id="dropdownListItem-all-label"
|
|
211
235
|
/>
|
|
212
236
|
</ListItem>
|