@visns-studio/visns-components 1.0.13 → 1.0.15

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.
@@ -351,6 +351,14 @@ const DataGrid = (props) => {
351
351
  useEffect(() => {
352
352
  const renderColumn = (column) => {
353
353
  switch (column.type) {
354
+ case "hidden":
355
+ return {
356
+ name: column.id,
357
+ header: column.label,
358
+ defaultFlex: 1,
359
+ link: column.link ? column.link : {},
360
+ type: "number",
361
+ };
354
362
  case "currency":
355
363
  return {
356
364
  name: column.id,
@@ -6,15 +6,10 @@ function TableFilter(props) {
6
6
  const filterTable = (e) => {
7
7
  const { id, value, url } = e.target.dataset;
8
8
 
9
- console.info("a", url);
10
-
11
- if (props.hasOwnProperty("setSettings") === true) {
12
- console.info("b");
13
- if (url && url !== "") {
14
- console.info("c");
15
- window.open(url);
16
- } else {
17
- console.info("d");
9
+ if (url && url !== "") {
10
+ window.open(url);
11
+ } else {
12
+ if (props.hasOwnProperty("setSettings") === true) {
18
13
  setSettings((prevState) => {
19
14
  if (prevState.ajaxSetting) {
20
15
  let _where = [];
package/package.json CHANGED
@@ -32,7 +32,7 @@
32
32
  "react-dom": ">=18.2.0"
33
33
  },
34
34
  "name": "@visns-studio/visns-components",
35
- "version": "1.0.13",
35
+ "version": "1.0.15",
36
36
  "description": "Various packages to assist in the development of our Custom Applications.",
37
37
  "main": "index.js",
38
38
  "devDependencies": {},