ehscan-react-table 0.0.46 → 0.0.48

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.
@@ -131,8 +131,8 @@ export const Table = ({ columns, rows, sortOrder, setSortOrder, cellComponents,
131
131
  };
132
132
  const HeadColMainLit = {
133
133
  def: (tag) => tag !== null && tag !== void 0 ? tag : "",
134
- duedate: () => (_jsxs("svg", { width: "40", height: "40", version: "1.1", viewBox: "0 -960 1600 1600", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { className: "table-header-icons", d: "m381.72-908.36c-112.37 0-203.83 90.835-203.83 202.42v157.03h-68.359c-31.606 1.731-56.094 24.21-56.094 51.328 0 27.118 24.487 49.407 56.094 51.484h68.359v577.03h-68.359c-32.304 1.1539-57.891 25.058-57.891 53.906 0 28.964 25.587 52.674 57.891 53.828h68.359v147.27a203.93 202.52 0 0 0 203.83 202.42h224.06l56.719-98.359h-288.28c-53.103 0-96.406-42.893-96.406-95.859v-155.47h58.047c31.723-1.9617 56.328-25.441 56.328-53.828 0-28.502-24.606-51.945-56.328-53.906h-58.047v-577.11h58.047c33.117 0 60.118-22.978 60.234-51.25 1e-4 -28.272-27.001-51.328-60.234-51.328h-57.969v-165.47a96.679 96.009 0 0 1 96.484-95.859v0.15624h977.58a96.795 96.124 0 0 1 96.406 95.781v921.72l100 166.88v-1080.4c-1e-4 -111.59-91.347-202.42-203.83-202.42h-962.81zm251.25 359.61c-30.444 1.5001-54.781 22.239-56.641 48.203a47.294 46.966 0 0 0 15 37.188 64.259 63.814 0 0 0 41.641 17.266h514.06v-0.07813c33.233 0 60.042-22.978 60.391-51.25 0-28.272-27.274-51.328-60.391-51.328h-514.06zm-2.8125 338.28c-29.849 0-53.906 24.057-53.906 53.906s24.057 53.828 53.906 53.828h318.59c29.849 1e-5 53.828-23.979 53.828-53.828s-23.979-53.906-53.828-53.906h-318.59zm0 343.36c-29.849 0-53.906 24.057-53.906 53.906 0 29.849 24.057 53.906 53.906 53.906h139.53c29.849 0 53.828-24.057 53.828-53.906 1e-5 -29.85-23.979-53.906-53.828-53.906h-139.53zm96.016 357.11-56.797 98.359h102.73l59.922-98.359h-105.86z" }), _jsx("path", { className: "table-header-icons-overdue", d: "m1134-177.42c-15.754 0-31.544 7.7956-40.547 23.438l-415.94 720.39c-18.005 31.284 4.5368 70.234 40.547 70.234h831.8c36.01 0 58.552-38.951 40.547-70.234l-415.94-720.39c-9.0026-15.642-24.714-23.438-40.469-23.438zm0 184.53c47.713 0 86.406 44.129 86.406 98.594 0 166.1-38.693 300.7-86.406 300.7-47.714 0-86.484-134.61-86.484-300.7 0-54.465 38.771-98.594 86.484-98.594zm0 451.95a60.542 60.542 0 0 1 60.547 60.547 60.542 60.542 0 0 1-60.547 60.547 60.542 60.542 0 0 1-60.547-60.547 60.542 60.542 0 0 1 60.547-60.547z", fill: "#999" })] })),
135
- solved: () => (_jsxs("svg", { className: styles.svgSolved, width: "40", height: "40", version: "1.1", viewBox: "0 -960 1600 1600", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { className: "table-header-icons", d: "m381.72-908.36c-112.37 0-203.83 90.835-203.83 202.42v157.03h-68.359c-31.606 1.731-56.094 24.21-56.094 51.328 0 27.118 24.487 49.407 56.094 51.484h68.359v577.03h-68.359c-32.304 1.1539-57.891 25.058-57.891 53.906 0 28.964 25.587 52.674 57.891 53.828h68.359v147.27a203.93 202.52 0 0 0 203.83 202.42h224.06l56.719-98.359h-288.28c-53.103 0-96.406-42.893-96.406-95.859v-155.47h58.047c31.723-1.9617 56.328-25.441 56.328-53.828 0-28.502-24.606-51.945-56.328-53.906h-58.047v-577.11h58.047c33.117 0 60.118-22.978 60.234-51.25 1e-4 -28.272-27.001-51.328-60.234-51.328h-57.969v-165.47a96.679 96.009 0 0 1 96.484-95.859v0.15624h977.58a96.795 96.124 0 0 1 96.406 95.781v921.72l100 166.88v-1080.4c-1e-4 -111.59-91.347-202.42-203.83-202.42h-962.81zm251.25 359.61c-30.444 1.5001-54.781 22.239-56.641 48.203a47.294 46.966 0 0 0 15 37.188 64.259 63.814 0 0 0 41.641 17.266h514.06v-0.07813c33.233 0 60.042-22.978 60.391-51.25 0-28.272-27.274-51.328-60.391-51.328h-514.06zm-2.8125 338.28c-29.849 0-53.906 24.057-53.906 53.906s24.057 53.828 53.906 53.828h318.59c29.849 1e-5 53.828-23.979 53.828-53.828s-23.979-53.906-53.828-53.906h-318.59zm0 343.36c-29.849 0-53.906 24.057-53.906 53.906 0 29.849 24.057 53.906 53.906 53.906h139.53c29.849 0 53.828-24.057 53.828-53.906 1e-5 -29.85-23.979-53.906-53.828-53.906h-139.53zm96.016 357.11-56.797 98.359h102.73l59.922-98.359h-105.86z" }), _jsx("path", { className: "table-header-icons-overdue", d: "m1134-177.42c-15.754 0-31.544 7.7956-40.547 23.438l-415.94 720.39c-18.005 31.284 4.5368 70.234 40.547 70.234h831.8c36.01 0 58.552-38.951 40.547-70.234l-415.94-720.39c-9.0026-15.642-24.714-23.438-40.469-23.438zm0 184.53c47.713 0 86.406 44.129 86.406 98.594 0 166.1-38.693 300.7-86.406 300.7-47.714 0-86.484-134.61-86.484-300.7 0-54.465 38.771-98.594 86.484-98.594zm0 451.95a60.542 60.542 0 0 1 60.547 60.547 60.542 60.542 0 0 1-60.547 60.547 60.542 60.542 0 0 1-60.547-60.547 60.542 60.542 0 0 1 60.547-60.547z", fill: "#999" })] })),
134
+ duedate: () => (_jsx("svg", { width: "40", height: "40", version: "1.1", viewBox: "0 -960 1600 1600", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { className: "table-header-icons", d: "m510.04-849.55c-34.408 0-62.088 27.681-62.088 62.088v182.69c0 34.408 27.681 62.088 62.088 62.088h6.242c34.408 0 62.173-27.681 62.173-62.088v-182.69c0-34.408-27.764-62.088-62.173-62.088zm573.45 0c-34.408 0-62.088 27.681-62.088 62.088v182.69c0 34.408 27.681 62.088 62.088 62.088h6.3256c34.408 0 62.088-27.681 62.088-62.088v-182.69c0-34.408-27.681-62.088-62.088-62.088zm-833.05 119.27c-77.748 0-140.41 62.574-140.41 140.33v979.26c0 77.748 62.659 140.24 140.41 140.24h224.88v-0.0852h53.765c34.442 0 62.088-27.731 62.088-62.173v-4.4944c0-34.442-27.648-62.173-62.088-62.173h-54.183v-0.41761h-181.69c-29.931 0-54.017-24.085-54.017-54.017v-714.2c0-29.931 24.085-54.017 54.017-54.017h1059.8c0 3.1364 0.45 5.8883 0.5826 8.9054-0.574 3.4726-0.9989 6.9294-0.9989 10.57v53.101c0 35.663 28.756 64.338 64.419 64.338h8.5726c20.283 0 38.405-9.3153 50.186-23.887 6.3673-6.6417 10.869-15.7 12.817-27.049 0.9175-4.3449 1.4148-8.7737 1.4148-13.4v-53.101c0-1.4753-0.068-2.8781-0.1662-4.3278v-183.11c0-77.748-62.659-140.33-140.41-140.33h-152.89v128.01c0 57.072-49.01 103.04-109.86 103.04-60.852 0-109.78-45.963-109.78-103.04v-128.01h-353.89v128.01c0 57.072-49.014 103.04-109.86 103.04-60.852 0-109.78-45.963-109.78-103.04v-128.01h-152.89zm147.57 477.65c-22.401 0-40.366 18.049-40.366 40.45v56.514c0 22.401 17.966 40.45 40.366 40.45h578.44c22.401 0 40.45-18.049 40.45-40.45v-56.514c0-22.401-18.049-40.45-40.45-40.45zm912.1 53.352c-16.58 0-33.038 3.2263-48.358 9.5714-15.317 6.3451-29.224 15.658-40.949 27.383l-18.394 18.311 178.61 178.61 18.394-18.311c11.726-11.723 21.037-25.714 27.383-41.032 6.3417-15.32 9.5714-31.693 9.5714-48.273 0-16.581-3.2297-33.04-9.5714-48.358-6.3452-15.318-15.657-29.225-27.383-40.949-11.725-11.724-25.716-21.037-41.032-27.383-15.321-6.3452-31.695-9.5714-48.272-9.5714zm-157.72 105.29-365.3 365.38c-4.3568 4.353-7.5349 9.7887-9.1551 15.73l-48.192 176.7c-3.3413 12.252 0.098 25.395 9.072 34.374 8.9804 8.9821 22.122 12.413 34.374 9.072l176.7-48.192c5.9416-1.621 11.459-4.7152 15.813-9.072l365.3-365.38-178.61-178.61zm-754.39 141.07c-22.401 0-40.366 18.049-40.366 40.45v56.514c0 22.401 17.966 40.45 40.366 40.45h273.83c22.401 0 40.45-18.049 40.45-40.45v-56.514c0-22.401-18.049-40.45-40.45-40.45z", fill: "#f55" }) })),
135
+ solved: () => (_jsxs("svg", { width: "40", height: "40", version: "1.1", viewBox: "0 -960 1600 1600", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { className: "table-header-icons", d: "m391.1-852.77c-101.01 0-183.28 81.591-183.28 181.89v141.26h-61.417c-28.411 1.5555-50.407 21.738-50.407 46.114s21.996 44.385 50.407 46.253h61.417v518.68l-61.417-0.06925c-29.037 1.0376-52 22.536-52 48.469 0 26.036 22.962 47.362 52 48.399h61.417v132.39a183.31 182.04 0 0 0 183.28 181.96h350.43l-88.352-88.352h-268.79c-47.738 0-86.759-38.663-86.759-86.274v-139.66h52.276c28.515-1.7641 50.545-22.952 50.545-48.469 0-25.621-22.03-46.635-50.545-48.399h-52.276v-518.75h52.276c29.769 0 53.974-20.771 54.077-46.183 0-25.413-24.203-46.114-54.077-46.114h-52.138v-148.73a86.902 86.305 0 0 1 86.689-86.066v0.0693h878.8a87.011 86.406 0 0 1 86.62 86.066v488.63l89.878 89.878v-571.1c0-100.31-82.1-181.89-183.21-181.89h-865.44zm191.93 323.15c-27.367 1.3488-49.22 20.075-50.892 43.414a42.512 42.217 0 0 0 13.502 33.443 57.763 57.362 0 0 0 37.39 15.51h462.04v-0.0693c29.875 0 54.041-20.702 54.354-46.114 0-25.413-24.585-46.183-54.354-46.183h-462.04zm0.27697 308.12c-28.724 1.4522-51.238 22.675-51.238 48.399 0 25.725 22.514 47.016 51.238 48.469h462.04c28.725-1.4522 51.169-22.744 51.169-48.469 0-25.724-22.444-46.947-51.169-48.399zm-6.3702 312.62c-24.876 0-44.868 20.061-44.868 44.937v4.9853c0 24.876 19.992 44.937 44.868 44.937h95.133c24.876 0 44.868-20.061 44.868-44.937v-4.9853c0-24.876-19.992-44.937-44.868-44.937zm862.67 126.84v92.918a183.21 181.94 0 0 0 0.1385-0.48467v-92.297l-0.1385-0.13847z", fill: "#d3d3d3" }), _jsx("path", { className: "table-header-icons-darker", d: "m1477.2-17.798c-37.896-37.896-98.918-37.896-136.82 0l-317.15 317.15-123.25-123.26c-37.101-37.101-96.844-37.072-133.94 0.0292l-1.8057 1.8057c-37.101 37.101-37.101 96.817 0 133.92l191.67 191.67 1.4212 1.4208c37.101 37.101 96.844 37.132 133.94 0.0292l1.4209-1.4209 0.3845-0.38486 384.13-384.13c37.895-37.896 37.895-98.918 0-136.82z", fill: "#999" })] })),
136
136
  };
137
137
  const HeadColMain = ({ col }) => {
138
138
  var _a, _b;
@@ -155,8 +155,8 @@ export const Table = ({ columns, rows, sortOrder, setSortOrder, cellComponents,
155
155
  };
156
156
  const SortButton = () => {
157
157
  switch (sortOrder.dir) {
158
- case 'desc': return _jsx("svg", { className: styles.sortsvg, xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "white", children: _jsx("path", { d: "M480-240 240-480l56-56 144 144v-368h80v368l144-144 56 56-240 240Z" }) });
159
- default: return _jsx("svg", { className: styles.sortsvg, xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "white", children: _jsx("path", { d: "M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z" }) });
158
+ case 'desc': return _jsxs("svg", { className: styles.sortsvg, xmlns: "http://www.w3.org/2000/svg", height: "24px", width: "24px", viewBox: "0 0 40 40", fill: "grey", children: [_jsx("rect", { transform: "scale(1,-1)", x: "11.272", y: "-29.684", width: "10.816", height: "2.5216", ry: "1.2608" }), _jsx("rect", { transform: "matrix(.59502 .80371 .80371 -.59502 0 0)", x: "20.965", y: "17.855", width: "12.044", height: "2.3029", ry: "1.1515" }), _jsx("rect", { transform: "scale(1,-1)", x: "7.9704", y: "-21.307", width: "14.118", height: "2.5216", ry: "1.2608" }), _jsx("rect", { transform: "scale(1,-1)", x: "4.6156", y: "-12.93", width: "17.473", height: "2.5216", ry: "1.2608" }), _jsx("rect", { transform: "matrix(0,-1,-1,0,0,0)", x: "-34.687", y: "-29.567", width: "29.341", height: "2.5216", ry: "1.2608" })] });
159
+ default: return _jsxs("svg", { className: styles.sortsvg, xmlns: "http://www.w3.org/2000/svg", height: "24px", width: "24px", viewBox: "0 0 40 40", fill: "grey", children: [_jsx("rect", { x: "11.272", y: "10.316", width: "10.816", height: "2.5216", ry: "1.2608" }), _jsx("rect", { transform: "rotate(-53.486)", x: "-11.184", y: "41.656", width: "12.044", height: "2.3029", ry: "1.1515" }), _jsx("rect", { x: "7.9704", y: "18.693", width: "14.118", height: "2.5216", ry: "1.2608" }), _jsx("rect", { x: "4.6156", y: "27.07", width: "17.473", height: "2.5216", ry: "1.2608" }), _jsx("rect", { transform: "rotate(90)", x: "5.313", y: "-29.567", width: "29.341", height: "2.5216", ry: "1.2608" })] });
160
160
  }
161
161
  };
162
162
  const EmptySort = () => _jsx("svg", { className: styles.sortsvg, xmlns: "http://www.w3.org/2000/svg", height: "24px", viewBox: "0 -960 960 960", width: "24px", fill: "white", children: _jsx("path", { d: "M480-120 300-300l58-58 122 122 122-122 58 58-180 180ZM358-598l-58-58 180-180 180 180-58 58-122-122-122 122Z" }) });
@@ -156,7 +156,8 @@ svg.removesearchsvg{
156
156
  }
157
157
 
158
158
  .searchwrapper{
159
- display: flex;
159
+ display: grid;
160
+ grid-template-columns: 1fr auto;
160
161
  align-items: center;
161
162
  justify-content: center;
162
163
  gap: 3px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ehscan-react-table",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "description": "components",
5
5
  "main": "dist/Components.js",
6
6
  "types": "dist/Components.d.ts",