ehscan-react-table 0.0.40 → 0.0.42

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.
@@ -138,8 +138,7 @@ export const Table = ({ columns, rows, sortOrder, setSortOrder, cellComponents,
138
138
  var _a, _b;
139
139
  const { tag, search, title, width } = col;
140
140
  const colTitle = title !== undefined ? title : tag;
141
- const thWidth = width !== undefined ? `${width}px` : "30px";
142
- return (_jsx("th", { ref: measureColElements.includes(tag) ? (el) => { colRefs.current[tag] = el; } : undefined, style: { "--custom-width": thWidth }, children: _jsxs("div", { className: styles.headcolcell, children: [_jsx(HeadColSort, { tag: tag }), _jsx("div", { className: styles.headcolcellmain, children: search
141
+ return (_jsx("th", { ref: measureColElements.includes(tag) ? (el) => { colRefs.current[tag] = el; } : undefined, style: { width: `${width}px` }, children: _jsxs("div", { className: styles.headcolcell, children: [_jsx(HeadColSort, { tag: tag }), _jsx("div", { className: styles.headcolcellmain, children: search
143
142
  ? _jsx(HeadSearchBar, { content: colTitle, tag: tag })
144
143
  : _jsx("div", { onClick: () => setOpenCol(tag), children: (_b = (_a = HeadColMainLit[colTitle]) === null || _a === void 0 ? void 0 : _a.call(HeadColMainLit, colTitle)) !== null && _b !== void 0 ? _b : colTitle }) })] }) }));
145
144
  };
@@ -148,9 +147,8 @@ export const Table = ({ columns, rows, sortOrder, setSortOrder, cellComponents,
148
147
  .filter(col => !displayImportant || col.important)
149
148
  .map((col, i) => {
150
149
  const { tag, type, width } = col;
151
- const thWidth = width !== undefined ? `${width}px` : "8px";
152
150
  if (type === "checkbox") {
153
- return (_jsx("th", { className: styles.thcheckhead, style: { "--custom-width": thWidth, padding: "5px" }, children: _jsx(TableCellSelectHeadCol, { checkHead: checkHead, checkAll: checkAll }) }, `checkbox-${tag !== null && tag !== void 0 ? tag : i}`));
151
+ return (_jsx("th", { className: styles.thcheckhead, style: { width: `${width}px`, padding: '5px' }, children: _jsx(TableCellSelectHeadCol, { checkHead: checkHead, checkAll: checkAll }) }, `checkbox-${tag !== null && tag !== void 0 ? tag : i}`));
154
152
  }
155
153
  return _jsx(HeadColMain, { col: col }, tag !== null && tag !== void 0 ? tag : i);
156
154
  }), _jsx(EndHeadCol, {})] }));
@@ -18,7 +18,7 @@ const TableChecklistItem = ({ checked }) => {
18
18
  handleRipple(event, buttonRef);
19
19
  });
20
20
  const CheckBoxItemSquare = ({ selected }) => {
21
- return (_jsx(_Fragment, { children: _jsxs("svg", { width: "60", height: "60", version: "1.1", viewBox: "0 -960 2400 2400", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { className: styles.cbcircle, d: "m1200-692.58c-767.96 0-932.58 164.63-932.58 932.58 0 767.98 164.63 932.58 932.58 932.58 767.98 0 932.58-164.63 932.58-932.58 0-767.96-164.63-932.58-932.58-932.58z", fill: "white" }), selected && _jsx("path", { className: styles.cbpath, d: "m1566.4-147.66c-33.43-0.026-66.888 12.734-92.524 38.331l-421.88 421.25-125.8-126.04c-51.193-51.272-133.7-51.348-184.97-0.1555-51.272 51.193-51.348 133.7-0.15551 184.97l218.09 218.48c38.437 38.497 94.554 48.106 141.82 28.846 15.829-6.3918 30.738-15.985 43.618-28.846l514.09-513.39c51.272-51.193 51.348-133.7 0.1554-184.97-25.596-25.636-59.014-38.46-92.446-38.486z", fill: "#666" })] }) }));
21
+ return (_jsx(_Fragment, { children: _jsxs("svg", { width: "60", height: "60", version: "1.1", viewBox: "0 -960 2400 2400", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { className: styles.cbheadcircle, d: "m1200-692.58c-767.96 0-932.58 164.63-932.58 932.58 0 767.98 164.63 932.58 932.58 932.58 767.98 0 932.58-164.63 932.58-932.58 0-767.96-164.63-932.58-932.58-932.58z", fill: "white" }), selected && _jsx("path", { className: styles.cbpath, d: "m1566.4-147.66c-33.43-0.026-66.888 12.734-92.524 38.331l-421.88 421.25-125.8-126.04c-51.193-51.272-133.7-51.348-184.97-0.1555-51.272 51.193-51.348 133.7-0.15551 184.97l218.09 218.48c38.437 38.497 94.554 48.106 141.82 28.846 15.829-6.3918 30.738-15.985 43.618-28.846l514.09-513.39c51.272-51.193 51.348-133.7 0.1554-184.97-25.596-25.636-59.014-38.46-92.446-38.486z", fill: "#666" })] }) }));
22
22
  };
23
23
  return (_jsx(_Fragment, { children: _jsx("div", { ref: buttonRef, className: styles.checkboxtable, onClick: (e) => toggleCheck(e), children: _jsx(CheckBoxItemSquare, { selected: checked }) }) }));
24
24
  };
@@ -244,8 +244,6 @@ input.headsearch:focus {
244
244
  box-sizing: border-box;
245
245
  font-size: var(--ext-table-cell-font-size, 100%);
246
246
  padding: 5px 5px 5px 0;
247
- width: var(--custom-width) !important;
248
- min-width: 30px;
249
247
  }
250
248
 
251
249
  .deftabletr > td:first-child{
@@ -373,6 +371,10 @@ Resizable column wrapper
373
371
  fill: var(--ext-table-cb-corpus-fill, red)
374
372
  }
375
373
 
374
+ .cbheadcircle {
375
+ fill: var(--ext-table-cb-corpus-head-fill, red)
376
+ }
377
+
376
378
  .cbpath {
377
379
  fill: var(--ext-table-cb-path-fill, white)
378
380
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ehscan-react-table",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "description": "components",
5
5
  "main": "dist/Components.js",
6
6
  "types": "dist/Components.d.ts",