@griddo/ax 11.6.4-rc.1 → 11.6.5-rc.0

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@griddo/ax",
3
3
  "description": "Griddo Author Experience",
4
- "version": "11.6.4-rc.1",
4
+ "version": "11.6.5-rc.0",
5
5
  "authors": [
6
6
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
7
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -223,5 +223,5 @@
223
223
  "publishConfig": {
224
224
  "access": "public"
225
225
  },
226
- "gitHead": "0d987fe049e3d4561dae0aa1cb5356ef1d6878cf"
226
+ "gitHead": "0e955833fde196ce53d661ce232c0be07d227287"
227
227
  }
@@ -36,6 +36,7 @@ const TableHeader = (props: IProps): JSX.Element => {
36
36
  } = props;
37
37
 
38
38
  const activeColumns = columns.filter((col) => col.show).map((col) => col.id);
39
+ const checkGroups = ["MultiCheckSelect", "AsyncCheckGroup", "CheckGroup"];
39
40
 
40
41
  const CategoryColumns =
41
42
  isGlobalPages &&
@@ -43,7 +44,7 @@ const TableHeader = (props: IProps): JSX.Element => {
43
44
  return (
44
45
  activeColumns.includes(col.key) && (
45
46
  <React.Fragment key={col.key}>
46
- {col.type === "AsyncCheckGroup" ? (
47
+ {checkGroups.includes(col.type) ? (
47
48
  <S.HeaderWrapper>
48
49
  <CategoryFilter
49
50
  filterItems={filterItems}
@@ -494,8 +494,9 @@ const PageItem = (props: IPageItemProps): JSX.Element => {
494
494
  }
495
495
 
496
496
  const type: any = structuredDataContent && structuredDataContent[col.key];
497
+ const checkGroups = ["MultiCheckSelect", "AsyncCheckGroup", "CheckGroup"];
497
498
 
498
- if (typeof type === "string") {
499
+ if (!checkGroups.includes(col.type)) {
499
500
  return (
500
501
  <S.ColumnCell key={col.key} onClick={goToPage}>
501
502
  {type}
@@ -39,13 +39,15 @@ const TableHeader = (props: IProps): JSX.Element => {
39
39
  const activeColumns = columns.filter((col) => col.show).map((col) => col.id);
40
40
  const filterCategories = isFromPage ? filterValues.categories : filterValues.related;
41
41
 
42
+ const checkGroups = ["MultiCheckSelect", "AsyncCheckGroup", "CheckGroup"];
43
+
42
44
  const CategoryColumns =
43
45
  !isAllPages &&
44
46
  categoryColumns.map(
45
47
  (col) =>
46
48
  activeColumns.includes(col.key) && (
47
49
  <React.Fragment key={col.key}>
48
- {col.type === "AsyncCheckGroup" ? (
50
+ {checkGroups.includes(col.type) ? (
49
51
  <S.HeaderWrapper key={col.key}>
50
52
  <CategoryFilter filterItems={filterItems} value={filterCategories} structuredData={col} siteID={null} />
51
53
  </S.HeaderWrapper>
@@ -372,8 +372,9 @@ const GlobalPageItem = (props: IGlobalPageItemProps): JSX.Element => {
372
372
  }
373
373
 
374
374
  const type: any = structuredDataContent && structuredDataContent[col.key];
375
+ const checkGroups = ["MultiCheckSelect", "AsyncCheckGroup", "CheckGroup"];
375
376
 
376
- if (typeof type === "string") {
377
+ if (!checkGroups.includes(col.type)) {
377
378
  return (
378
379
  <S.ColumnCell key={col.key} onClick={_handleClick}>
379
380
  {type}
@@ -217,8 +217,9 @@ const StructuredDataItem = (props: IStructuredDataItemProps): JSX.Element => {
217
217
  }
218
218
 
219
219
  const type: any = structuredData && structuredData.content && structuredData.content[col.key];
220
+ const checkGroups = ["MultiCheckSelect", "AsyncCheckGroup", "CheckGroup"];
220
221
 
221
- if (typeof type === "string") {
222
+ if (!checkGroups.includes(col.type)) {
222
223
  return (
223
224
  <S.ColumnCell key={col.key} onClick={_handleClick}>
224
225
  {type}