@fctc/widget-logic 6.1.1 → 6.1.2
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 +6 -2
- package/dist/index.mjs +6 -2
- package/dist/widget.js +6 -2
- package/dist/widget.mjs +6 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6609,10 +6609,14 @@ var tableGroupController = (props) => {
|
|
|
6609
6609
|
const domain = row?.__domain;
|
|
6610
6610
|
const processedData = (0, import_react26.useMemo)(() => {
|
|
6611
6611
|
const calculateColSpanEmpty = () => {
|
|
6612
|
-
const startIndex = columns
|
|
6612
|
+
const startIndex = columns?.filter(
|
|
6613
|
+
(col) => col?.field?.type_co === "field" && col?.optional !== "hide"
|
|
6614
|
+
).findIndex(
|
|
6613
6615
|
(col) => col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum"
|
|
6614
6616
|
);
|
|
6615
|
-
const endIndex = columns
|
|
6617
|
+
const endIndex = columns?.filter(
|
|
6618
|
+
(col) => col?.field?.type_co === "field" && col?.optional !== "hide"
|
|
6619
|
+
).findLastIndex(
|
|
6616
6620
|
(col) => col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator !== "sum"
|
|
6617
6621
|
);
|
|
6618
6622
|
const fromStart = startIndex === -1 ? columns.length : startIndex;
|
package/dist/index.mjs
CHANGED
|
@@ -6704,10 +6704,14 @@ var tableGroupController = (props) => {
|
|
|
6704
6704
|
const domain = row?.__domain;
|
|
6705
6705
|
const processedData = useMemo12(() => {
|
|
6706
6706
|
const calculateColSpanEmpty = () => {
|
|
6707
|
-
const startIndex = columns
|
|
6707
|
+
const startIndex = columns?.filter(
|
|
6708
|
+
(col) => col?.field?.type_co === "field" && col?.optional !== "hide"
|
|
6709
|
+
).findIndex(
|
|
6708
6710
|
(col) => col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum"
|
|
6709
6711
|
);
|
|
6710
|
-
const endIndex = columns
|
|
6712
|
+
const endIndex = columns?.filter(
|
|
6713
|
+
(col) => col?.field?.type_co === "field" && col?.optional !== "hide"
|
|
6714
|
+
).findLastIndex(
|
|
6711
6715
|
(col) => col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator !== "sum"
|
|
6712
6716
|
);
|
|
6713
6717
|
const fromStart = startIndex === -1 ? columns.length : startIndex;
|
package/dist/widget.js
CHANGED
|
@@ -5847,10 +5847,14 @@ var tableGroupController = (props) => {
|
|
|
5847
5847
|
const domain = row?.__domain;
|
|
5848
5848
|
const processedData = (0, import_react26.useMemo)(() => {
|
|
5849
5849
|
const calculateColSpanEmpty = () => {
|
|
5850
|
-
const startIndex = columns
|
|
5850
|
+
const startIndex = columns?.filter(
|
|
5851
|
+
(col) => col?.field?.type_co === "field" && col?.optional !== "hide"
|
|
5852
|
+
).findIndex(
|
|
5851
5853
|
(col) => col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum"
|
|
5852
5854
|
);
|
|
5853
|
-
const endIndex = columns
|
|
5855
|
+
const endIndex = columns?.filter(
|
|
5856
|
+
(col) => col?.field?.type_co === "field" && col?.optional !== "hide"
|
|
5857
|
+
).findLastIndex(
|
|
5854
5858
|
(col) => col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator !== "sum"
|
|
5855
5859
|
);
|
|
5856
5860
|
const fromStart = startIndex === -1 ? columns.length : startIndex;
|
package/dist/widget.mjs
CHANGED
|
@@ -5918,10 +5918,14 @@ var tableGroupController = (props) => {
|
|
|
5918
5918
|
const domain = row?.__domain;
|
|
5919
5919
|
const processedData = useMemo12(() => {
|
|
5920
5920
|
const calculateColSpanEmpty = () => {
|
|
5921
|
-
const startIndex = columns
|
|
5921
|
+
const startIndex = columns?.filter(
|
|
5922
|
+
(col) => col?.field?.type_co === "field" && col?.optional !== "hide"
|
|
5923
|
+
).findIndex(
|
|
5922
5924
|
(col) => col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum"
|
|
5923
5925
|
);
|
|
5924
|
-
const endIndex = columns
|
|
5926
|
+
const endIndex = columns?.filter(
|
|
5927
|
+
(col) => col?.field?.type_co === "field" && col?.optional !== "hide"
|
|
5928
|
+
).findLastIndex(
|
|
5925
5929
|
(col) => col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator !== "sum"
|
|
5926
5930
|
);
|
|
5927
5931
|
const fromStart = startIndex === -1 ? columns.length : startIndex;
|