@fctc/sme-widget-ui 2.7.6 → 2.7.8

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/dist/index.js CHANGED
@@ -10930,7 +10930,8 @@ var Row = (props) => {
10930
10930
  onClickRow,
10931
10931
  isAutoSelect,
10932
10932
  selectedRowKeysRef,
10933
- isEditTable
10933
+ isEditTable,
10934
+ env
10934
10935
  } = props;
10935
10936
  const checkboxRef = (0, import_react13.useRef)("enabled");
10936
10937
  const checked = (0, import_react13.useMemo)(() => {
@@ -10983,7 +10984,7 @@ var Row = (props) => {
10983
10984
  "data-row-id": row?.id,
10984
10985
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10985
10986
  style: {
10986
- background: indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
10987
+ background: env?.envFile?.PLATFORM === "edu" ? "transparent" : indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
10987
10988
  },
10988
10989
  children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
10989
10990
  isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
@@ -11084,7 +11085,8 @@ var TableBodyRow = (props) => {
11084
11085
  groupByList,
11085
11086
  setIsAutoSelect,
11086
11087
  isAutoSelect,
11087
- isEditTable
11088
+ isEditTable,
11089
+ env
11088
11090
  } = props;
11089
11091
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
11090
11092
  return typeTable === "group" ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
@@ -11132,7 +11134,8 @@ var TableBodyRow = (props) => {
11132
11134
  isAutoSelect,
11133
11135
  selectedRowKeysRef,
11134
11136
  setSelectedRowKeys,
11135
- isEditTable
11137
+ isEditTable,
11138
+ env
11136
11139
  },
11137
11140
  `record-${index4}`
11138
11141
  );
@@ -16097,7 +16100,7 @@ var Search = ({
16097
16100
  /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
16098
16101
  "div",
16099
16102
  {
16100
- className: `relative flex md:min-w-[400px] max-w-full items-center gap-[8px] w-full ${(showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && "border-r border-[rgba(242,242,242,1)]"}`,
16103
+ className: `relative flex md:min-w-[400px] max-w-full items-center gap-[8px] w-full ${showFiltersGroups && "border-r border-[rgba(242,242,242,1)]"}`,
16101
16104
  children: [
16102
16105
  /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "min-h-5 min-w-5", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(SearchIcon, {}) }),
16103
16106
  /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
@@ -16139,7 +16142,7 @@ var Search = ({
16139
16142
  ]
16140
16143
  }
16141
16144
  ),
16142
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
16145
+ showFiltersGroups && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
16143
16146
  /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
16144
16147
  "div",
16145
16148
  {
package/dist/index.mjs CHANGED
@@ -10803,7 +10803,8 @@ var Row = (props) => {
10803
10803
  onClickRow,
10804
10804
  isAutoSelect,
10805
10805
  selectedRowKeysRef,
10806
- isEditTable
10806
+ isEditTable,
10807
+ env
10807
10808
  } = props;
10808
10809
  const checkboxRef = useRef4("enabled");
10809
10810
  const checked = useMemo3(() => {
@@ -10856,7 +10857,7 @@ var Row = (props) => {
10856
10857
  "data-row-id": row?.id,
10857
10858
  className: `border-b border-[#e8e8e8] cursor-pointer`,
10858
10859
  style: {
10859
- background: indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
10860
+ background: env?.envFile?.PLATFORM === "edu" ? "transparent" : indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
10860
10861
  },
10861
10862
  children: /* @__PURE__ */ jsxs26(Fragment3, { children: [
10862
10863
  isDisplayCheckbox && /* @__PURE__ */ jsx47(
@@ -10957,7 +10958,8 @@ var TableBodyRow = (props) => {
10957
10958
  groupByList,
10958
10959
  setIsAutoSelect,
10959
10960
  isAutoSelect,
10960
- isEditTable
10961
+ isEditTable,
10962
+ env
10961
10963
  } = props;
10962
10964
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
10963
10965
  return typeTable === "group" ? /* @__PURE__ */ jsx48(
@@ -11005,7 +11007,8 @@ var TableBodyRow = (props) => {
11005
11007
  isAutoSelect,
11006
11008
  selectedRowKeysRef,
11007
11009
  setSelectedRowKeys,
11008
- isEditTable
11010
+ isEditTable,
11011
+ env
11009
11012
  },
11010
11013
  `record-${index4}`
11011
11014
  );
@@ -15970,7 +15973,7 @@ var Search = ({
15970
15973
  /* @__PURE__ */ jsxs41(
15971
15974
  "div",
15972
15975
  {
15973
- className: `relative flex md:min-w-[400px] max-w-full items-center gap-[8px] w-full ${(showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && "border-r border-[rgba(242,242,242,1)]"}`,
15976
+ className: `relative flex md:min-w-[400px] max-w-full items-center gap-[8px] w-full ${showFiltersGroups && "border-r border-[rgba(242,242,242,1)]"}`,
15974
15977
  children: [
15975
15978
  /* @__PURE__ */ jsx65("div", { className: "min-h-5 min-w-5", children: /* @__PURE__ */ jsx65(SearchIcon, {}) }),
15976
15979
  /* @__PURE__ */ jsxs41("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
@@ -16012,7 +16015,7 @@ var Search = ({
16012
16015
  ]
16013
16016
  }
16014
16017
  ),
16015
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs41(Fragment10, { children: [
16018
+ showFiltersGroups && /* @__PURE__ */ jsxs41(Fragment10, { children: [
16016
16019
  /* @__PURE__ */ jsx65(
16017
16020
  "div",
16018
16021
  {
@@ -79,6 +79,7 @@ interface TableBodyProps {
79
79
  tableGroupController?: any;
80
80
  groupByList?: any;
81
81
  isEditTable?: boolean;
82
+ env?: any;
82
83
  }
83
84
  declare const TableBody: (props: TableBodyProps) => JSX.Element;
84
85
 
package/dist/widgets.d.ts CHANGED
@@ -79,6 +79,7 @@ interface TableBodyProps {
79
79
  tableGroupController?: any;
80
80
  groupByList?: any;
81
81
  isEditTable?: boolean;
82
+ env?: any;
82
83
  }
83
84
  declare const TableBody: (props: TableBodyProps) => JSX.Element;
84
85
 
package/dist/widgets.js CHANGED
@@ -9922,7 +9922,8 @@ var Row = (props) => {
9922
9922
  onClickRow,
9923
9923
  isAutoSelect,
9924
9924
  selectedRowKeysRef,
9925
- isEditTable
9925
+ isEditTable,
9926
+ env
9926
9927
  } = props;
9927
9928
  const checkboxRef = (0, import_react11.useRef)("enabled");
9928
9929
  const checked = (0, import_react11.useMemo)(() => {
@@ -9975,7 +9976,7 @@ var Row = (props) => {
9975
9976
  "data-row-id": row?.id,
9976
9977
  className: `border-b border-[#e8e8e8] cursor-pointer`,
9977
9978
  style: {
9978
- background: indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
9979
+ background: env?.envFile?.PLATFORM === "edu" ? "transparent" : indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
9979
9980
  },
9980
9981
  children: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_jsx_runtime47.Fragment, { children: [
9981
9982
  isDisplayCheckbox && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
@@ -10076,7 +10077,8 @@ var TableBodyRow = (props) => {
10076
10077
  groupByList,
10077
10078
  setIsAutoSelect,
10078
10079
  isAutoSelect,
10079
- isEditTable
10080
+ isEditTable,
10081
+ env
10080
10082
  } = props;
10081
10083
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
10082
10084
  return typeTable === "group" ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
@@ -10124,7 +10126,8 @@ var TableBodyRow = (props) => {
10124
10126
  isAutoSelect,
10125
10127
  selectedRowKeysRef,
10126
10128
  setSelectedRowKeys,
10127
- isEditTable
10129
+ isEditTable,
10130
+ env
10128
10131
  },
10129
10132
  `record-${index4}`
10130
10133
  );
@@ -15346,7 +15349,7 @@ var Search = ({
15346
15349
  /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(
15347
15350
  "div",
15348
15351
  {
15349
- className: `relative flex md:min-w-[400px] max-w-full items-center gap-[8px] w-full ${(showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && "border-r border-[rgba(242,242,242,1)]"}`,
15352
+ className: `relative flex md:min-w-[400px] max-w-full items-center gap-[8px] w-full ${showFiltersGroups && "border-r border-[rgba(242,242,242,1)]"}`,
15350
15353
  children: [
15351
15354
  /* @__PURE__ */ (0, import_jsx_runtime65.jsx)("div", { className: "min-h-5 min-w-5", children: /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(SearchIcon, {}) }),
15352
15355
  /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
@@ -15388,7 +15391,7 @@ var Search = ({
15388
15391
  ]
15389
15392
  }
15390
15393
  ),
15391
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
15394
+ showFiltersGroups && /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
15392
15395
  /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
15393
15396
  "div",
15394
15397
  {
package/dist/widgets.mjs CHANGED
@@ -9859,7 +9859,8 @@ var Row = (props) => {
9859
9859
  onClickRow,
9860
9860
  isAutoSelect,
9861
9861
  selectedRowKeysRef,
9862
- isEditTable
9862
+ isEditTable,
9863
+ env
9863
9864
  } = props;
9864
9865
  const checkboxRef = useRef2("enabled");
9865
9866
  const checked = useMemo3(() => {
@@ -9912,7 +9913,7 @@ var Row = (props) => {
9912
9913
  "data-row-id": row?.id,
9913
9914
  className: `border-b border-[#e8e8e8] cursor-pointer`,
9914
9915
  style: {
9915
- background: indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
9916
+ background: env?.envFile?.PLATFORM === "edu" ? "transparent" : indexRow % 2 === 0 ? "#FFF" : "#EEF3FB"
9916
9917
  },
9917
9918
  children: /* @__PURE__ */ jsxs26(Fragment3, { children: [
9918
9919
  isDisplayCheckbox && /* @__PURE__ */ jsx47(
@@ -10013,7 +10014,8 @@ var TableBodyRow = (props) => {
10013
10014
  groupByList,
10014
10015
  setIsAutoSelect,
10015
10016
  isAutoSelect,
10016
- isEditTable
10017
+ isEditTable,
10018
+ env
10017
10019
  } = props;
10018
10020
  return rows && rows?.length > 0 && rows?.map((row, index4) => {
10019
10021
  return typeTable === "group" ? /* @__PURE__ */ jsx48(
@@ -10061,7 +10063,8 @@ var TableBodyRow = (props) => {
10061
10063
  isAutoSelect,
10062
10064
  selectedRowKeysRef,
10063
10065
  setSelectedRowKeys,
10064
- isEditTable
10066
+ isEditTable,
10067
+ env
10065
10068
  },
10066
10069
  `record-${index4}`
10067
10070
  );
@@ -15283,7 +15286,7 @@ var Search = ({
15283
15286
  /* @__PURE__ */ jsxs41(
15284
15287
  "div",
15285
15288
  {
15286
- className: `relative flex md:min-w-[400px] max-w-full items-center gap-[8px] w-full ${(showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && "border-r border-[rgba(242,242,242,1)]"}`,
15289
+ className: `relative flex md:min-w-[400px] max-w-full items-center gap-[8px] w-full ${showFiltersGroups && "border-r border-[rgba(242,242,242,1)]"}`,
15287
15290
  children: [
15288
15291
  /* @__PURE__ */ jsx65("div", { className: "min-h-5 min-w-5", children: /* @__PURE__ */ jsx65(SearchIcon, {}) }),
15289
15292
  /* @__PURE__ */ jsxs41("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
@@ -15325,7 +15328,7 @@ var Search = ({
15325
15328
  ]
15326
15329
  }
15327
15330
  ),
15328
- (showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs41(Fragment10, { children: [
15331
+ showFiltersGroups && /* @__PURE__ */ jsxs41(Fragment10, { children: [
15329
15332
  /* @__PURE__ */ jsx65(
15330
15333
  "div",
15331
15334
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fctc/sme-widget-ui",
3
- "version": "2.7.6",
3
+ "version": "2.7.8",
4
4
  "main": "dist/index.cjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "dist/index.d.ts",