ia-table 0.12.7 → 0.12.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 +525 -530
- package/dist/locale-patch-applied.txt +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2674,7 +2674,7 @@ const qs = (e, t, n = 150) => {
|
|
|
2674
2674
|
};
|
|
2675
2675
|
case ee.SET_DATA: {
|
|
2676
2676
|
const { isCountUnknown: S, totalItems: T, totalPages: y, currentPage: I } = t.meta || {}, F = e.columns.some((J) => J.aggFunc);
|
|
2677
|
-
let
|
|
2677
|
+
let Y = null;
|
|
2678
2678
|
if (F && !Object.keys(e.aggregationTotalRow || {}).length) {
|
|
2679
2679
|
const { aggreRow: J } = Tn(
|
|
2680
2680
|
e,
|
|
@@ -2684,10 +2684,10 @@ const qs = (e, t, n = 150) => {
|
|
|
2684
2684
|
0,
|
|
2685
2685
|
null
|
|
2686
2686
|
);
|
|
2687
|
-
|
|
2688
|
-
} else e.pinnedBottomRows.length || (
|
|
2687
|
+
Y = J;
|
|
2688
|
+
} else e.pinnedBottomRows.length || (Y = e.aggregationTotalRow);
|
|
2689
2689
|
const H = t.payload;
|
|
2690
|
-
if (e.data.length && JSON.stringify(H) === JSON.stringify(e.data) && S === e.isCountUnknown && T === e.totalItems && y === e.totalPages && I === e.currentPage && !
|
|
2690
|
+
if (e.data.length && JSON.stringify(H) === JSON.stringify(e.data) && S === e.isCountUnknown && T === e.totalItems && y === e.totalPages && I === e.currentPage && !Y)
|
|
2691
2691
|
return e;
|
|
2692
2692
|
const N = H.map((J) => (delete J._animationState, delete J._isDraggedRow, J));
|
|
2693
2693
|
return {
|
|
@@ -2695,9 +2695,9 @@ const qs = (e, t, n = 150) => {
|
|
|
2695
2695
|
data: N,
|
|
2696
2696
|
filteredData: N,
|
|
2697
2697
|
isLoading: !1,
|
|
2698
|
-
...
|
|
2699
|
-
aggregationTotalRow:
|
|
2700
|
-
pinnedBottomRows: [
|
|
2698
|
+
...Y ? {
|
|
2699
|
+
aggregationTotalRow: Y,
|
|
2700
|
+
pinnedBottomRows: [Y]
|
|
2701
2701
|
} : {},
|
|
2702
2702
|
hasAggregation: F,
|
|
2703
2703
|
pagination: {
|
|
@@ -2719,21 +2719,21 @@ const qs = (e, t, n = 150) => {
|
|
|
2719
2719
|
filteredData: t.payload
|
|
2720
2720
|
};
|
|
2721
2721
|
case ee.UPDATE_ROW_DATA: {
|
|
2722
|
-
const { updatedData: S, dataRowIndex: T, aggregationRow: y, rowId: I, parentIndex: F } = t.payload,
|
|
2722
|
+
const { updatedData: S, dataRowIndex: T, aggregationRow: y, rowId: I, parentIndex: F } = t.payload, Y = Fr(
|
|
2723
2723
|
S,
|
|
2724
2724
|
e.rowSpanColumn,
|
|
2725
2725
|
e.api
|
|
2726
2726
|
);
|
|
2727
2727
|
return Rn(
|
|
2728
2728
|
e,
|
|
2729
|
-
|
|
2729
|
+
Y,
|
|
2730
2730
|
!0,
|
|
2731
2731
|
I,
|
|
2732
2732
|
F >= 0 ? F : T
|
|
2733
2733
|
), La(e.tableInstance, T), {
|
|
2734
2734
|
...e,
|
|
2735
|
-
data:
|
|
2736
|
-
filteredData:
|
|
2735
|
+
data: Y,
|
|
2736
|
+
filteredData: Y,
|
|
2737
2737
|
...y ? {
|
|
2738
2738
|
aggregationTotalRow: y,
|
|
2739
2739
|
pinnedBottomRows: [y]
|
|
@@ -2742,17 +2742,17 @@ const qs = (e, t, n = 150) => {
|
|
|
2742
2742
|
}
|
|
2743
2743
|
case ee.UPDATE_ROW_DATA_OBJECT: {
|
|
2744
2744
|
const { rowId: S, data: T } = t.payload, y = e.uniqueIdField, I = e.expandedChildRows[S], F = { ...e.expandedChildRows };
|
|
2745
|
-
let
|
|
2745
|
+
let Y = !1, H = -1, N = 0;
|
|
2746
2746
|
I && (Object.keys(e.expandedChildRows).filter(
|
|
2747
|
-
(
|
|
2748
|
-
).forEach((
|
|
2749
|
-
N += e.expandedChildRows[
|
|
2747
|
+
(U) => U.startsWith(S)
|
|
2748
|
+
).forEach((U) => {
|
|
2749
|
+
N += e.expandedChildRows[U].childRowsCount;
|
|
2750
2750
|
}), H = I.rowIndex);
|
|
2751
|
-
let J = e.data.map((X,
|
|
2751
|
+
let J = e.data.map((X, U) => {
|
|
2752
2752
|
if (X[y] == S)
|
|
2753
|
-
return H =
|
|
2753
|
+
return H = U, { ...X, ...T };
|
|
2754
2754
|
if (X[e.childKeyField] && Array.isArray(X[e.childKeyField])) {
|
|
2755
|
-
const Z = X[e.childKeyField].map((
|
|
2755
|
+
const Z = X[e.childKeyField].map((j) => j[y] == S ? { ...j, ...T } : j);
|
|
2756
2756
|
if (Z !== X[e.childKeyField])
|
|
2757
2757
|
return { ...X, [e.childKeyField]: Z };
|
|
2758
2758
|
}
|
|
@@ -2763,11 +2763,11 @@ const qs = (e, t, n = 150) => {
|
|
|
2763
2763
|
if (!T[e.childKeyField])
|
|
2764
2764
|
J.splice(H + 1, N);
|
|
2765
2765
|
else {
|
|
2766
|
-
const
|
|
2766
|
+
const j = S.split("/").length, $ = T[e.childKeyField].map(
|
|
2767
2767
|
(ae) => ({
|
|
2768
2768
|
...ae,
|
|
2769
2769
|
__parentPath: ae.__parentPath ? `${ae.__parentPath}/${ae[S]}` : S,
|
|
2770
|
-
level:
|
|
2770
|
+
level: j,
|
|
2771
2771
|
parentRowIndex: H,
|
|
2772
2772
|
parentRowData: T
|
|
2773
2773
|
})
|
|
@@ -2775,18 +2775,18 @@ const qs = (e, t, n = 150) => {
|
|
|
2775
2775
|
J.splice(H + 1, N), J.splice(H + 1, 0, ...$), F[S] = {
|
|
2776
2776
|
...F[S],
|
|
2777
2777
|
childRowsCount: T[e.childKeyField].length
|
|
2778
|
-
},
|
|
2778
|
+
}, Y = !0;
|
|
2779
2779
|
}
|
|
2780
|
-
Z !== 0 && (Object.keys(F).forEach((
|
|
2781
|
-
const $ = F[
|
|
2782
|
-
$.rowIndex > H && (F[
|
|
2780
|
+
Z !== 0 && (Object.keys(F).forEach((j) => {
|
|
2781
|
+
const $ = F[j];
|
|
2782
|
+
$.rowIndex > H && (F[j] = {
|
|
2783
2783
|
...$,
|
|
2784
2784
|
rowIndex: $.rowIndex + Z
|
|
2785
2785
|
});
|
|
2786
|
-
}), J = J.map((
|
|
2787
|
-
...
|
|
2788
|
-
parentRowIndex:
|
|
2789
|
-
} :
|
|
2786
|
+
}), J = J.map((j) => j.__parentPath && j.parentRowIndex !== void 0 && j.parentRowIndex > H ? {
|
|
2787
|
+
...j,
|
|
2788
|
+
parentRowIndex: j.parentRowIndex + Z
|
|
2789
|
+
} : j));
|
|
2790
2790
|
}
|
|
2791
2791
|
H !== -1 && La(e.tableInstance, H);
|
|
2792
2792
|
const Q = Fr(
|
|
@@ -2804,7 +2804,7 @@ const qs = (e, t, n = 150) => {
|
|
|
2804
2804
|
...e,
|
|
2805
2805
|
data: Q,
|
|
2806
2806
|
filteredData: Q,
|
|
2807
|
-
...
|
|
2807
|
+
...Y ? { expandedChildRows: F } : {}
|
|
2808
2808
|
};
|
|
2809
2809
|
}
|
|
2810
2810
|
case ee.SET_COLUMNS: {
|
|
@@ -2821,8 +2821,8 @@ const qs = (e, t, n = 150) => {
|
|
|
2821
2821
|
e.isSingleSelect
|
|
2822
2822
|
);
|
|
2823
2823
|
y.indexes.forEach((F) => {
|
|
2824
|
-
const
|
|
2825
|
-
|
|
2824
|
+
const Y = T[F];
|
|
2825
|
+
Y && !Y.hidden && (I += Y.width || e.defaultColDef.minWidth);
|
|
2826
2826
|
}), y.totalWidth = I;
|
|
2827
2827
|
}
|
|
2828
2828
|
return {
|
|
@@ -2833,11 +2833,11 @@ const qs = (e, t, n = 150) => {
|
|
|
2833
2833
|
}
|
|
2834
2834
|
case ee.MOVE_ROW: {
|
|
2835
2835
|
const { fromIndex: S, toIndex: T } = t.payload, y = [...e.data], F = y[S][e.uniqueIdField];
|
|
2836
|
-
let
|
|
2836
|
+
let Y = 0;
|
|
2837
2837
|
Object.keys(e.expandedChildRows).forEach((X) => {
|
|
2838
|
-
X.startsWith(F) && (
|
|
2838
|
+
X.startsWith(F) && (Y += e.expandedChildRows[X].childRowsCount);
|
|
2839
2839
|
});
|
|
2840
|
-
const H =
|
|
2840
|
+
const H = Y + 1, N = y.splice(S, H);
|
|
2841
2841
|
let J = T;
|
|
2842
2842
|
S < T && (J -= H), y.splice(J, 0, ...N);
|
|
2843
2843
|
const Q = y.map((X) => (delete X._isDraggedRow, delete X._animationState, X));
|
|
@@ -2924,7 +2924,7 @@ const qs = (e, t, n = 150) => {
|
|
|
2924
2924
|
isUnchecked: y = !1,
|
|
2925
2925
|
singleEntry: I = !1
|
|
2926
2926
|
} = t.payload;
|
|
2927
|
-
let F = e.selectedRows,
|
|
2927
|
+
let F = e.selectedRows, Y = e.unCheckedRows, H = e.selectedRowsObject;
|
|
2928
2928
|
if (I) {
|
|
2929
2929
|
const {
|
|
2930
2930
|
selectedRowsUpdated: N,
|
|
@@ -2936,7 +2936,7 @@ const qs = (e, t, n = 150) => {
|
|
|
2936
2936
|
selectUnselectRowId: T,
|
|
2937
2937
|
isUnchecked: y
|
|
2938
2938
|
});
|
|
2939
|
-
F = N,
|
|
2939
|
+
F = N, Y = J, H = Q;
|
|
2940
2940
|
} else
|
|
2941
2941
|
F = t.payload, H = t.payload.reduce((N, J) => (N[J] = !0, N), {});
|
|
2942
2942
|
return Qn({
|
|
@@ -2947,7 +2947,7 @@ const qs = (e, t, n = 150) => {
|
|
|
2947
2947
|
selectedRows: F,
|
|
2948
2948
|
selectedRowsObject: H,
|
|
2949
2949
|
isSelectionChanged: !1,
|
|
2950
|
-
unCheckedRows:
|
|
2950
|
+
unCheckedRows: Y
|
|
2951
2951
|
};
|
|
2952
2952
|
}
|
|
2953
2953
|
case ee.SET_COLUMN_FILTER: {
|
|
@@ -3002,30 +3002,30 @@ const qs = (e, t, n = 150) => {
|
|
|
3002
3002
|
case ee.TOGGLE_GROUP_EXPANSION: {
|
|
3003
3003
|
const { rowId: S, rowIndex: T } = t.payload, y = String(S);
|
|
3004
3004
|
let I, F = [...e.filteredData];
|
|
3005
|
-
const
|
|
3005
|
+
const Y = y.split("/").length, H = !e.expandedChildRows[y];
|
|
3006
3006
|
if (H) {
|
|
3007
3007
|
const N = e.filteredData[T], J = N[e.childKeyField] || [], Q = e.columns.some((ae) => ae.aggFunc);
|
|
3008
|
-
let X = J,
|
|
3008
|
+
let X = J, U = null;
|
|
3009
3009
|
if (Q && J.length > 0) {
|
|
3010
3010
|
const { aggreRow: ae, aggreChildRows: fe } = Tn(
|
|
3011
3011
|
e,
|
|
3012
3012
|
X,
|
|
3013
3013
|
N,
|
|
3014
|
-
|
|
3014
|
+
Y,
|
|
3015
3015
|
T,
|
|
3016
3016
|
y
|
|
3017
3017
|
);
|
|
3018
|
-
|
|
3018
|
+
U = ae, X = fe;
|
|
3019
3019
|
} else
|
|
3020
3020
|
X = X.map((ae) => ({
|
|
3021
3021
|
...ae,
|
|
3022
3022
|
__parentPath: ae.__parentPath ? `${ae.__parentPath}/${y}` : y,
|
|
3023
|
-
level:
|
|
3023
|
+
level: Y,
|
|
3024
3024
|
parentRowIndex: T,
|
|
3025
3025
|
parentRowData: N,
|
|
3026
|
-
groupingLevel:
|
|
3026
|
+
groupingLevel: Y
|
|
3027
3027
|
}));
|
|
3028
|
-
const Z = J.length + (
|
|
3028
|
+
const Z = J.length + (U ? 1 : 0);
|
|
3029
3029
|
I = {
|
|
3030
3030
|
...e.expandedChildRows,
|
|
3031
3031
|
[y]: {
|
|
@@ -3034,11 +3034,11 @@ const qs = (e, t, n = 150) => {
|
|
|
3034
3034
|
childRowsCount: Z
|
|
3035
3035
|
}
|
|
3036
3036
|
};
|
|
3037
|
-
const
|
|
3037
|
+
const j = Fr(
|
|
3038
3038
|
[N, ...X],
|
|
3039
3039
|
e.rowSpanColumn,
|
|
3040
3040
|
e.api
|
|
3041
|
-
), $ =
|
|
3041
|
+
), $ = U ? [...j, U] : j;
|
|
3042
3042
|
F.splice(T, 1), F.splice(T, 0, ...$);
|
|
3043
3043
|
} else {
|
|
3044
3044
|
I = {
|
|
@@ -3073,7 +3073,7 @@ const qs = (e, t, n = 150) => {
|
|
|
3073
3073
|
isSelectionChanged: !1
|
|
3074
3074
|
} : e;
|
|
3075
3075
|
case ee.FREEZE_COLUMN: {
|
|
3076
|
-
const { columnId: S } = t.payload, T = e.columns.map((
|
|
3076
|
+
const { columnId: S } = t.payload, T = e.columns.map((Y) => te(Y) === S ? { ...Y, is_frozen: !0, pinned: "left" } : Y), { processedColumns: y } = _t(
|
|
3077
3077
|
T,
|
|
3078
3078
|
e.expandedColumnGroups || {},
|
|
3079
3079
|
0,
|
|
@@ -3091,37 +3091,37 @@ const qs = (e, t, n = 150) => {
|
|
|
3091
3091
|
}
|
|
3092
3092
|
case ee.UNFREEZE_COLUMN: {
|
|
3093
3093
|
const { columnId: S } = t.payload, T = {}, y = {};
|
|
3094
|
-
if (e.columns.forEach((
|
|
3095
|
-
if (
|
|
3096
|
-
const Z = te(
|
|
3097
|
-
y[Z] = [],
|
|
3098
|
-
const $ = te(
|
|
3094
|
+
if (e.columns.forEach((U) => {
|
|
3095
|
+
if (U.children && Array.isArray(U.children)) {
|
|
3096
|
+
const Z = te(U);
|
|
3097
|
+
y[Z] = [], U.children.forEach((j) => {
|
|
3098
|
+
const $ = te(j);
|
|
3099
3099
|
T[$] = Z, y[Z] ? y[Z].push($) : y[Z] = [$];
|
|
3100
3100
|
});
|
|
3101
3101
|
}
|
|
3102
3102
|
}), !e.columns.find(
|
|
3103
|
-
(
|
|
3103
|
+
(U) => te(U) === S
|
|
3104
3104
|
)) return e;
|
|
3105
3105
|
const F = [];
|
|
3106
|
-
let
|
|
3107
|
-
for (; T[
|
|
3108
|
-
const
|
|
3109
|
-
F.push(
|
|
3106
|
+
let Y = S;
|
|
3107
|
+
for (; T[Y]; ) {
|
|
3108
|
+
const U = T[Y];
|
|
3109
|
+
F.push(U), Y = U;
|
|
3110
3110
|
}
|
|
3111
3111
|
const H = {};
|
|
3112
|
-
e.columns.forEach((
|
|
3113
|
-
const Z = te(
|
|
3114
|
-
if (
|
|
3115
|
-
let
|
|
3116
|
-
for (; T[
|
|
3117
|
-
const $ = T[
|
|
3118
|
-
H[$] = !0,
|
|
3112
|
+
e.columns.forEach((U) => {
|
|
3113
|
+
const Z = te(U);
|
|
3114
|
+
if (U.is_frozen && Z !== S && F.includes(Z) === !1) {
|
|
3115
|
+
let j = Z;
|
|
3116
|
+
for (; T[j]; ) {
|
|
3117
|
+
const $ = T[j];
|
|
3118
|
+
H[$] = !0, j = $;
|
|
3119
3119
|
}
|
|
3120
3120
|
}
|
|
3121
3121
|
});
|
|
3122
|
-
const N = e.columns.map((
|
|
3123
|
-
const Z = te(
|
|
3124
|
-
return Z === S ? { ...
|
|
3122
|
+
const N = e.columns.map((U) => {
|
|
3123
|
+
const Z = te(U);
|
|
3124
|
+
return Z === S ? { ...U, is_frozen: !1, pinned: null } : F.includes(Z) ? H[Z] ? U : { ...U, is_frozen: !1, pinned: null } : U;
|
|
3125
3125
|
}), { processedColumns: J } = _t(
|
|
3126
3126
|
N,
|
|
3127
3127
|
e.expandedColumnGroups || {},
|
|
@@ -3152,20 +3152,20 @@ const qs = (e, t, n = 150) => {
|
|
|
3152
3152
|
};
|
|
3153
3153
|
if (N.children && N.children.length > 0) {
|
|
3154
3154
|
const Q = N.children.some(
|
|
3155
|
-
(
|
|
3155
|
+
(U) => te(U) === S || U.path && U.path.includes(S)
|
|
3156
3156
|
), X = N.children.map(
|
|
3157
3157
|
I
|
|
3158
3158
|
);
|
|
3159
3159
|
if (Q) {
|
|
3160
|
-
const
|
|
3161
|
-
(Z,
|
|
3160
|
+
const U = X.reduce(
|
|
3161
|
+
(Z, j) => j.hidden || j.is_hidden ? Z : Z + (j.width || 100),
|
|
3162
3162
|
0
|
|
3163
3163
|
);
|
|
3164
3164
|
return {
|
|
3165
3165
|
...N,
|
|
3166
3166
|
children: X,
|
|
3167
3167
|
// Update parent width based on children's total width
|
|
3168
|
-
width:
|
|
3168
|
+
width: U
|
|
3169
3169
|
};
|
|
3170
3170
|
}
|
|
3171
3171
|
return {
|
|
@@ -3176,22 +3176,22 @@ const qs = (e, t, n = 150) => {
|
|
|
3176
3176
|
return N;
|
|
3177
3177
|
}, F = e.columns.map(
|
|
3178
3178
|
I
|
|
3179
|
-
), { columns:
|
|
3179
|
+
), { columns: Y, frozenData: H } = Ot(
|
|
3180
3180
|
F,
|
|
3181
3181
|
e.defaultColDef
|
|
3182
3182
|
);
|
|
3183
3183
|
return {
|
|
3184
3184
|
...e,
|
|
3185
|
-
columns:
|
|
3185
|
+
columns: Y,
|
|
3186
3186
|
frozenColumns: H
|
|
3187
3187
|
};
|
|
3188
3188
|
}
|
|
3189
3189
|
case ee.SET_COLUMNS_WIDTH: {
|
|
3190
3190
|
const { widths: S, isAutoWidth: T } = t.payload, y = e.columns.map((F) => {
|
|
3191
|
-
const
|
|
3192
|
-
return S[
|
|
3191
|
+
const Y = te(F);
|
|
3192
|
+
return S[Y] !== void 0 ? {
|
|
3193
3193
|
...F,
|
|
3194
|
-
width: S[
|
|
3194
|
+
width: S[Y],
|
|
3195
3195
|
isAutoWidth: T !== void 0 ? T : F.isAutoWidth
|
|
3196
3196
|
} : F;
|
|
3197
3197
|
}), I = { ...e.frozenColumns };
|
|
@@ -3201,8 +3201,8 @@ const qs = (e, t, n = 150) => {
|
|
|
3201
3201
|
e.disableSelectAllRecords,
|
|
3202
3202
|
e.isSingleSelect
|
|
3203
3203
|
);
|
|
3204
|
-
I.indexes.forEach((
|
|
3205
|
-
const H = y[
|
|
3204
|
+
I.indexes.forEach((Y) => {
|
|
3205
|
+
const H = y[Y];
|
|
3206
3206
|
if (H && !H.hidden) {
|
|
3207
3207
|
const N = te(H);
|
|
3208
3208
|
I.positions[N] = F, F += H.width || 100;
|
|
@@ -3263,8 +3263,8 @@ const qs = (e, t, n = 150) => {
|
|
|
3263
3263
|
).reduce(
|
|
3264
3264
|
(he, ge) => he + (ge.width || e.defaultColDef.minWidth),
|
|
3265
3265
|
0
|
|
3266
|
-
),
|
|
3267
|
-
if (F +
|
|
3266
|
+
), Y = y.width || e.defaultColDef.minWidth;
|
|
3267
|
+
if (F + Y > T)
|
|
3268
3268
|
return {
|
|
3269
3269
|
...e,
|
|
3270
3270
|
notification: {
|
|
@@ -3276,7 +3276,7 @@ const qs = (e, t, n = 150) => {
|
|
|
3276
3276
|
};
|
|
3277
3277
|
const { parentToChildrenMap: J, childToParentMap: Q } = Zr(
|
|
3278
3278
|
e.columns
|
|
3279
|
-
), X = Q[S],
|
|
3279
|
+
), X = Q[S], U = !!X, Z = U ? Ta(S, Q) : [], j = U ? J[X] || [] : [], $ = e.columns.map((he) => {
|
|
3280
3280
|
const ge = te(he);
|
|
3281
3281
|
return ge === S ? {
|
|
3282
3282
|
...he,
|
|
@@ -3291,7 +3291,7 @@ const qs = (e, t, n = 150) => {
|
|
|
3291
3291
|
...he,
|
|
3292
3292
|
pinned: "right",
|
|
3293
3293
|
is_frozen: !1
|
|
3294
|
-
} :
|
|
3294
|
+
} : j.includes(ge) ? {
|
|
3295
3295
|
...he,
|
|
3296
3296
|
pinned: "right",
|
|
3297
3297
|
is_frozen: !1
|
|
@@ -3309,18 +3309,18 @@ const qs = (e, t, n = 150) => {
|
|
|
3309
3309
|
case ee.UNPIN_COLUMN_RIGHT: {
|
|
3310
3310
|
const { field: S } = t.payload, { parentToChildrenMap: T, childToParentMap: y } = Zr(
|
|
3311
3311
|
e.columns
|
|
3312
|
-
), I = y[S], F = !!I,
|
|
3313
|
-
const
|
|
3314
|
-
return
|
|
3312
|
+
), I = y[S], F = !!I, Y = F ? Ta(S, y) : [], H = F ? T[I] || [] : [], N = e.columns.map((X) => {
|
|
3313
|
+
const U = te(X);
|
|
3314
|
+
return U === S ? {
|
|
3315
3315
|
...X,
|
|
3316
3316
|
pinned: void 0
|
|
3317
|
-
} :
|
|
3317
|
+
} : Y.includes(U) ? {
|
|
3318
3318
|
...X,
|
|
3319
3319
|
pinned: void 0
|
|
3320
|
-
} :
|
|
3320
|
+
} : Y.some((j) => (T[j] || []).includes(U)) ? {
|
|
3321
3321
|
...X,
|
|
3322
3322
|
pinned: void 0
|
|
3323
|
-
} : H.includes(
|
|
3323
|
+
} : H.includes(U) ? {
|
|
3324
3324
|
...X,
|
|
3325
3325
|
pinned: void 0
|
|
3326
3326
|
} : X;
|
|
@@ -3350,10 +3350,10 @@ const qs = (e, t, n = 150) => {
|
|
|
3350
3350
|
});
|
|
3351
3351
|
}
|
|
3352
3352
|
case ee.REORDER_COLUMNS: {
|
|
3353
|
-
const { sourceColumn: S, targetColumn: T } = t.payload, y = e.frozenColumns.totalWidth, I = ((b = e.tableInstance.current) == null ? void 0 : b.clientWidth) || 0, F = [...e.columns],
|
|
3353
|
+
const { sourceColumn: S, targetColumn: T } = t.payload, y = e.frozenColumns.totalWidth, I = ((b = e.tableInstance.current) == null ? void 0 : b.clientWidth) || 0, F = [...e.columns], Y = S.children && S.children.length > 0, H = ($) => {
|
|
3354
3354
|
var ae;
|
|
3355
3355
|
return $.children && $.children.length > 0 ? $.children.reduce((fe, he) => fe + H(he), 0) : $.width || ((ae = e.defaultColDef) == null ? void 0 : ae.minWidth) || 150;
|
|
3356
|
-
}, N =
|
|
3356
|
+
}, N = Y ? H(S) : S.width || ((v = e.defaultColDef) == null ? void 0 : v.minWidth) || 150;
|
|
3357
3357
|
if (T.is_frozen && !S.is_frozen && N && y + N > I * 0.7)
|
|
3358
3358
|
return {
|
|
3359
3359
|
...e,
|
|
@@ -3388,20 +3388,20 @@ const qs = (e, t, n = 150) => {
|
|
|
3388
3388
|
Q.forEach(($) => {
|
|
3389
3389
|
X[$] !== !0 && (X[$] = !0);
|
|
3390
3390
|
});
|
|
3391
|
-
const { processedColumns:
|
|
3391
|
+
const { processedColumns: U } = _t(
|
|
3392
3392
|
J,
|
|
3393
3393
|
X,
|
|
3394
3394
|
0,
|
|
3395
3395
|
null,
|
|
3396
3396
|
((x = e.defaultColDef) == null ? void 0 : x.minWidth) || 150
|
|
3397
|
-
), { columns: Z, frozenData:
|
|
3398
|
-
|
|
3397
|
+
), { columns: Z, frozenData: j } = Ot(
|
|
3398
|
+
U,
|
|
3399
3399
|
((G = t.meta) == null ? void 0 : G.defaultColDef) || e.defaultColDef
|
|
3400
3400
|
);
|
|
3401
3401
|
return {
|
|
3402
3402
|
...e,
|
|
3403
3403
|
columns: Z,
|
|
3404
|
-
frozenColumns:
|
|
3404
|
+
frozenColumns: j,
|
|
3405
3405
|
expandedColumnGroups: X
|
|
3406
3406
|
};
|
|
3407
3407
|
}
|
|
@@ -3429,7 +3429,7 @@ const qs = (e, t, n = 150) => {
|
|
|
3429
3429
|
checkConfiguration: []
|
|
3430
3430
|
};
|
|
3431
3431
|
let y = [], I = {};
|
|
3432
|
-
return t.payload && (y = S.filter((F) => !(F != null && F.__parentPath || F != null && F.isChildGroup)).map((F) => F[e.uniqueIdField]), I = y.reduce((F,
|
|
3432
|
+
return t.payload && (y = S.filter((F) => !(F != null && F.__parentPath || F != null && F.isChildGroup)).map((F) => F[e.uniqueIdField]), I = y.reduce((F, Y) => (F[Y] = !0, F), {})), {
|
|
3433
3433
|
...e,
|
|
3434
3434
|
isSelectAllRecords: t.payload,
|
|
3435
3435
|
selectedRows: y,
|
|
@@ -3455,12 +3455,12 @@ const qs = (e, t, n = 150) => {
|
|
|
3455
3455
|
currentRowStyles: I
|
|
3456
3456
|
} = t.payload;
|
|
3457
3457
|
const F = ((D = e.masterDetail) == null ? void 0 : D.expandedRows) || [];
|
|
3458
|
-
let
|
|
3459
|
-
return F.includes(S) ? (
|
|
3458
|
+
let Y, H = null, N = !1;
|
|
3459
|
+
return F.includes(S) ? (Y = [], N = !0) : (Y = [S], H = T), {
|
|
3460
3460
|
...e,
|
|
3461
3461
|
masterDetail: {
|
|
3462
3462
|
...e.masterDetail,
|
|
3463
|
-
expandedRows:
|
|
3463
|
+
expandedRows: Y,
|
|
3464
3464
|
expandedRowData: H,
|
|
3465
3465
|
currentRowStyles: I,
|
|
3466
3466
|
rowIndex: N ? null : y
|
|
@@ -3486,7 +3486,7 @@ const qs = (e, t, n = 150) => {
|
|
|
3486
3486
|
case ee.ADD_EVENT_LISTENER: {
|
|
3487
3487
|
const { eventType: S, listener: T, once: y = !1 } = t.payload, I = { ...e.eventListeners };
|
|
3488
3488
|
return I[S] || (I[S] = []), I[S].some(
|
|
3489
|
-
(
|
|
3489
|
+
(Y) => Y.fn === T
|
|
3490
3490
|
) || I[S].push({
|
|
3491
3491
|
fn: T,
|
|
3492
3492
|
once: y
|
|
@@ -3511,13 +3511,13 @@ const qs = (e, t, n = 150) => {
|
|
|
3511
3511
|
case ee.TOGGLE_COLUMN_GROUP: {
|
|
3512
3512
|
const { field: S } = t.payload, T = e.expandedColumnGroups || {}, y = T[S] === !0;
|
|
3513
3513
|
if (!y) {
|
|
3514
|
-
const J = (X,
|
|
3514
|
+
const J = (X, U) => {
|
|
3515
3515
|
for (const Z of X) {
|
|
3516
|
-
if (te(Z) ===
|
|
3516
|
+
if (te(Z) === U)
|
|
3517
3517
|
return Z;
|
|
3518
3518
|
if (Z.children && Z.children.length > 0) {
|
|
3519
|
-
const
|
|
3520
|
-
if (
|
|
3519
|
+
const j = J(Z.children, U);
|
|
3520
|
+
if (j) return j;
|
|
3521
3521
|
}
|
|
3522
3522
|
}
|
|
3523
3523
|
return null;
|
|
@@ -3526,10 +3526,10 @@ const qs = (e, t, n = 150) => {
|
|
|
3526
3526
|
S
|
|
3527
3527
|
);
|
|
3528
3528
|
if (Q && Q.is_frozen) {
|
|
3529
|
-
const X = ((m = (M = e.tableInstance) == null ? void 0 : M.current) == null ? void 0 : m.clientWidth) || 0,
|
|
3529
|
+
const X = ((m = (M = e.tableInstance) == null ? void 0 : M.current) == null ? void 0 : m.clientWidth) || 0, U = ((E = e.frozenColumns) == null ? void 0 : E.totalWidth) || 0, Z = (he) => {
|
|
3530
3530
|
var ge;
|
|
3531
3531
|
return !he.children || he.children.length === 0 ? he.width || ((ge = e.defaultColDef) == null ? void 0 : ge.minWidth) || 150 : he.children.reduce((pe, Ie) => pe + Z(Ie), 0);
|
|
3532
|
-
},
|
|
3532
|
+
}, j = Q.width || ((R = e.defaultColDef) == null ? void 0 : R.minWidth) || 150, ae = Z(Q) - j, fe = U + ae;
|
|
3533
3533
|
if (X > 0 && fe > X * 0.7)
|
|
3534
3534
|
return {
|
|
3535
3535
|
...e,
|
|
@@ -3545,14 +3545,14 @@ const qs = (e, t, n = 150) => {
|
|
|
3545
3545
|
const F = {
|
|
3546
3546
|
...T,
|
|
3547
3547
|
[S]: !y
|
|
3548
|
-
}, { processedColumns:
|
|
3548
|
+
}, { processedColumns: Y } = _t(
|
|
3549
3549
|
e.columns,
|
|
3550
3550
|
F,
|
|
3551
3551
|
0,
|
|
3552
3552
|
null,
|
|
3553
3553
|
((_ = e.defaultColDef) == null ? void 0 : _.minWidth) || 150
|
|
3554
3554
|
), { columns: H, frozenData: N } = Ot(
|
|
3555
|
-
|
|
3555
|
+
Y,
|
|
3556
3556
|
e.defaultColDef || { minWidth: 150 }
|
|
3557
3557
|
);
|
|
3558
3558
|
return {
|
|
@@ -3584,21 +3584,21 @@ const qs = (e, t, n = 150) => {
|
|
|
3584
3584
|
case ee.PREVIEW_ROW_MOVE: {
|
|
3585
3585
|
const { fromIndex: S, toIndex: T, fromRowData: y, isDraggingDownward: I } = t.payload;
|
|
3586
3586
|
if (e.previewMode) {
|
|
3587
|
-
const F = e.originalFromIndex,
|
|
3588
|
-
|
|
3587
|
+
const F = e.originalFromIndex, Y = [...e.originalData], H = e.hasExpandedChildren;
|
|
3588
|
+
Y.forEach((Q, X) => {
|
|
3589
3589
|
X === F ? (Q._animationState = "moving", Q._hasExpandedChildren = H) : (X >= Math.min(F, T) && X <= Math.max(F, T) || X >= Math.min(F, e.lastToIndex) && X <= Math.max(F, e.lastToIndex)) && (Q._animationState = "affected");
|
|
3590
3590
|
});
|
|
3591
|
-
const [N] =
|
|
3591
|
+
const [N] = Y.splice(F, 1);
|
|
3592
3592
|
let J = T;
|
|
3593
3593
|
if (H && I) {
|
|
3594
3594
|
const Q = ((z = y[e.childKeyField]) == null ? void 0 : z.length) || 0;
|
|
3595
3595
|
Q > 0 && (J = Math.max(T - Q, S + 1));
|
|
3596
3596
|
}
|
|
3597
|
-
return
|
|
3597
|
+
return Y.splice(J, 0, N), {
|
|
3598
3598
|
...e,
|
|
3599
3599
|
originalData: e.originalData,
|
|
3600
3600
|
// Keep the original data unchanged
|
|
3601
|
-
filteredData:
|
|
3601
|
+
filteredData: Y,
|
|
3602
3602
|
previewMode: !0,
|
|
3603
3603
|
originalFromIndex: F,
|
|
3604
3604
|
// Maintain the original fromIndex
|
|
@@ -3610,20 +3610,20 @@ const qs = (e, t, n = 150) => {
|
|
|
3610
3610
|
// Update the drag direction
|
|
3611
3611
|
};
|
|
3612
3612
|
} else {
|
|
3613
|
-
const F = [...e.filteredData],
|
|
3614
|
-
|
|
3613
|
+
const F = [...e.filteredData], Y = [...F], H = y && y[e.childKeyField] && Array.isArray(y[e.childKeyField]) && y[e.childKeyField].length > 0;
|
|
3614
|
+
Y.forEach((Q, X) => {
|
|
3615
3615
|
X === S ? (Q._animationState = "moving", Q._isDraggedRow = !0, Q._hasExpandedChildren = H) : X >= Math.min(S, T) && X <= Math.max(S, T) && (Q._animationState = "affected");
|
|
3616
3616
|
});
|
|
3617
|
-
const [N] =
|
|
3617
|
+
const [N] = Y.splice(S, 1);
|
|
3618
3618
|
let J = T;
|
|
3619
3619
|
if (H && I) {
|
|
3620
3620
|
const Q = ((L = y[e.childKeyField]) == null ? void 0 : L.length) || 0;
|
|
3621
3621
|
Q > 0 && (J = Math.max(T - Q, S + 1));
|
|
3622
3622
|
}
|
|
3623
|
-
return
|
|
3623
|
+
return Y.splice(J, 0, N), {
|
|
3624
3624
|
...e,
|
|
3625
3625
|
originalData: F,
|
|
3626
|
-
filteredData:
|
|
3626
|
+
filteredData: Y,
|
|
3627
3627
|
previewMode: !0,
|
|
3628
3628
|
originalFromIndex: S,
|
|
3629
3629
|
// Store the original fromIndex
|
|
@@ -3677,30 +3677,30 @@ const qs = (e, t, n = 150) => {
|
|
|
3677
3677
|
groupId: S,
|
|
3678
3678
|
rowIndex: T,
|
|
3679
3679
|
extra: { fieldName: y, value: I }
|
|
3680
|
-
} = t.payload, { expandedGroups: F, loadedData:
|
|
3680
|
+
} = t.payload, { expandedGroups: F, loadedData: Y } = e.rowGroupState, H = !((K = F[S]) != null && K[S]);
|
|
3681
3681
|
let N = [...e.filteredData];
|
|
3682
|
-
const J =
|
|
3682
|
+
const J = Y[S] || [];
|
|
3683
3683
|
let Q = { ...F }, X = 0;
|
|
3684
3684
|
if (H)
|
|
3685
3685
|
J.length && (N.splice(T + 1, 0, ...J), X = J.length);
|
|
3686
3686
|
else {
|
|
3687
|
-
let
|
|
3687
|
+
let j = -1;
|
|
3688
3688
|
for (let ae = 0; ae < N.length; ae++)
|
|
3689
3689
|
if ((N[ae].id || N[ae][e.uniqueIdField]) == S) {
|
|
3690
|
-
|
|
3690
|
+
j = ae;
|
|
3691
3691
|
break;
|
|
3692
3692
|
}
|
|
3693
|
-
|
|
3693
|
+
j === -1 && (j = ((q = F[S]) == null ? void 0 : q.rowIndex) || T);
|
|
3694
3694
|
let $ = 0;
|
|
3695
3695
|
Object.keys(F).forEach((ae) => {
|
|
3696
3696
|
ae.startsWith(S) && (delete Q[ae], $ += F[ae].count);
|
|
3697
|
-
}), N.splice(
|
|
3697
|
+
}), N.splice(j + 1, $);
|
|
3698
3698
|
}
|
|
3699
|
-
let
|
|
3699
|
+
let U = { ...Y }, Z = { ...e.rowGroupState.pagination };
|
|
3700
3700
|
return e.purgeClosedRowNodes && !H && (Object.keys(F).filter(
|
|
3701
3701
|
($) => $.startsWith(S)
|
|
3702
3702
|
).forEach(($) => {
|
|
3703
|
-
delete
|
|
3703
|
+
delete U[$], delete Z[$];
|
|
3704
3704
|
}), Z = {
|
|
3705
3705
|
...Z,
|
|
3706
3706
|
[S]: {
|
|
@@ -3719,7 +3719,7 @@ const qs = (e, t, n = 150) => {
|
|
|
3719
3719
|
rowGroupState: {
|
|
3720
3720
|
...e.rowGroupState,
|
|
3721
3721
|
isLoadingSomething: H,
|
|
3722
|
-
loadedData:
|
|
3722
|
+
loadedData: U,
|
|
3723
3723
|
pagination: Z,
|
|
3724
3724
|
expandedGroups: H ? {
|
|
3725
3725
|
...e.rowGroupState.expandedGroups,
|
|
@@ -3741,10 +3741,10 @@ const qs = (e, t, n = 150) => {
|
|
|
3741
3741
|
childIndex: X,
|
|
3742
3742
|
groupingLevel: I,
|
|
3743
3743
|
__parentPath: Q.__parentPath ? `${Q.__parentPath}/${S}` : S
|
|
3744
|
-
})),
|
|
3744
|
+
})), Y = (P = e.rowGroupState.expandedGroups[S]) == null ? void 0 : P.rowIndex, H = e.rowGroupState.loadedData[S] || [], N = y ? [...H, ...F] : F;
|
|
3745
3745
|
let J = [...e.filteredData];
|
|
3746
|
-
if (
|
|
3747
|
-
const Q = y ?
|
|
3746
|
+
if (Y >= 0) {
|
|
3747
|
+
const Q = y ? Y + 1 + H.length : Y + 1;
|
|
3748
3748
|
J.splice(Q, 0, ...F);
|
|
3749
3749
|
}
|
|
3750
3750
|
return e.rowGroupState.expandedGroups[S] ? {
|
|
@@ -4354,9 +4354,9 @@ const qs = (e, t, n = 150) => {
|
|
|
4354
4354
|
const S = ((d == null ? void 0 : d.current) || (i == null ? void 0 : i.current)).getBoundingClientRect();
|
|
4355
4355
|
let T = { top: 0, left: 0, width: 0 }, y = !1;
|
|
4356
4356
|
h !== document.body && h instanceof Element && (T = h.getBoundingClientRect(), y = !0);
|
|
4357
|
-
const I = window.innerWidth, F = window.innerHeight,
|
|
4357
|
+
const I = window.innerWidth, F = window.innerHeight, Y = o || Math.max(S.width, 150), H = e.length * 40;
|
|
4358
4358
|
let N = s;
|
|
4359
|
-
const J = S.top > H, Q = F - S.bottom > H, X = S.left >
|
|
4359
|
+
const J = S.top > H, Q = F - S.bottom > H, X = S.left > Y, U = I - S.right > Y;
|
|
4360
4360
|
if (p)
|
|
4361
4361
|
N = s;
|
|
4362
4362
|
else
|
|
@@ -4368,13 +4368,13 @@ const qs = (e, t, n = 150) => {
|
|
|
4368
4368
|
!Q && J && (N = st.TOP);
|
|
4369
4369
|
break;
|
|
4370
4370
|
case st.LEFT:
|
|
4371
|
-
!X &&
|
|
4371
|
+
!X && U && (N = st.RIGHT);
|
|
4372
4372
|
break;
|
|
4373
4373
|
case st.RIGHT:
|
|
4374
|
-
!
|
|
4374
|
+
!U && X && (N = st.LEFT);
|
|
4375
4375
|
break;
|
|
4376
4376
|
}
|
|
4377
|
-
const Z = c && (d != null && d.current) ? d.current.getBoundingClientRect() : S,
|
|
4377
|
+
const Z = c && (d != null && d.current) ? d.current.getBoundingClientRect() : S, j = Mo(
|
|
4378
4378
|
N,
|
|
4379
4379
|
y,
|
|
4380
4380
|
Z,
|
|
@@ -4384,26 +4384,26 @@ const qs = (e, t, n = 150) => {
|
|
|
4384
4384
|
if (N === st.BOTTOM || N === st.TOP) {
|
|
4385
4385
|
let ae = l;
|
|
4386
4386
|
if (l === dn.AUTO) {
|
|
4387
|
-
const fe = S.right +
|
|
4387
|
+
const fe = S.right + Y <= I, he = S.left - Y >= 0;
|
|
4388
4388
|
fe ? ae = dn.START : he ? ae = dn.END : ae = dn.START;
|
|
4389
4389
|
}
|
|
4390
|
-
if (ae === dn.START ? y ?
|
|
4390
|
+
if (ae === dn.START ? y ? j.left = S.left - T.left : j.left = S.left + window.scrollX : ae === dn.END && (y ? j.left = S.right - Y - T.left : j.left = S.right - Y + window.scrollX), y) {
|
|
4391
4391
|
const fe = T.width;
|
|
4392
|
-
|
|
4392
|
+
j.left + Y > fe && (j.left = Math.max(0, fe - Y));
|
|
4393
4393
|
} else
|
|
4394
|
-
|
|
4395
|
-
|
|
4396
|
-
} else (N === st.LEFT || N === st.RIGHT) && (y ||
|
|
4394
|
+
j.left + Y > I && (j.left = Math.max(0, I - Y));
|
|
4395
|
+
j.left < 0 && (j.left = 0);
|
|
4396
|
+
} else (N === st.LEFT || N === st.RIGHT) && (y || j.top + H > F && (j.top = Math.max(0, F - H)));
|
|
4397
4397
|
let $ = "center";
|
|
4398
4398
|
if (N === st.BOTTOM || N === st.TOP) {
|
|
4399
4399
|
const ae = S.left + S.width / 2, fe = I / 2;
|
|
4400
|
-
ae < fe &&
|
|
4400
|
+
ae < fe && U ? $ = "left" : ae >= fe && X && ($ = "right");
|
|
4401
4401
|
} else if (N === st.LEFT || N === st.RIGHT) {
|
|
4402
4402
|
const ae = S.top + S.height / 2, fe = F / 2;
|
|
4403
4403
|
ae < fe && Q ? $ = "top" : ae >= fe && J && ($ = "bottom");
|
|
4404
4404
|
}
|
|
4405
4405
|
B(N), G($), C({
|
|
4406
|
-
...
|
|
4406
|
+
...j,
|
|
4407
4407
|
visibility: "visible"
|
|
4408
4408
|
});
|
|
4409
4409
|
}
|
|
@@ -4901,14 +4901,14 @@ const ur = (e, t = {}) => {
|
|
|
4901
4901
|
hasSplitRenderer: P,
|
|
4902
4902
|
splitRendererKeys: k
|
|
4903
4903
|
}, S) => {
|
|
4904
|
-
const T = ce(null), y = ce({}), F = Lo().getState().dispatch,
|
|
4904
|
+
const T = ce(null), y = ce({}), F = Lo().getState().dispatch, Y = de((Z) => {
|
|
4905
4905
|
var $, ae, fe, he;
|
|
4906
4906
|
F(Z);
|
|
4907
|
-
const
|
|
4908
|
-
if (
|
|
4907
|
+
const j = y.current.state || {};
|
|
4908
|
+
if (j != null && j.api && (($ = j.api) != null && $.dispatchEvent)) {
|
|
4909
4909
|
const ge = Ao[Z.type];
|
|
4910
4910
|
if (ge) {
|
|
4911
|
-
let pe = { api:
|
|
4911
|
+
let pe = { api: j.api };
|
|
4912
4912
|
switch (Z.type) {
|
|
4913
4913
|
case ee.SET_COLUMN_WIDTH:
|
|
4914
4914
|
case ee.SET_COLUMNS_WIDTH:
|
|
@@ -4933,22 +4933,22 @@ const ur = (e, t = {}) => {
|
|
|
4933
4933
|
case ee.SET_COLUMN_FILTER:
|
|
4934
4934
|
case ee.REMOVE_COLUMN_FILTER:
|
|
4935
4935
|
case ee.APPLY_FILTERS:
|
|
4936
|
-
Da(
|
|
4936
|
+
Da(j), pe = { ...pe, filterState: j.columnFilters };
|
|
4937
4937
|
break;
|
|
4938
4938
|
case ee.SET_PAGE:
|
|
4939
4939
|
pe = {
|
|
4940
4940
|
...pe,
|
|
4941
4941
|
paginationState: {
|
|
4942
|
-
...
|
|
4942
|
+
...j.pagination,
|
|
4943
4943
|
page: Z.payload
|
|
4944
4944
|
}
|
|
4945
4945
|
};
|
|
4946
4946
|
break;
|
|
4947
4947
|
case ee.SET_PAGE_SIZE:
|
|
4948
|
-
Da(
|
|
4948
|
+
Da(j), pe = {
|
|
4949
4949
|
...pe,
|
|
4950
4950
|
paginationState: {
|
|
4951
|
-
...
|
|
4951
|
+
...j.pagination,
|
|
4952
4952
|
pageSize: Z.payload
|
|
4953
4953
|
}
|
|
4954
4954
|
};
|
|
@@ -4956,8 +4956,8 @@ const ur = (e, t = {}) => {
|
|
|
4956
4956
|
case ee.UPDATE_ROW_DATA:
|
|
4957
4957
|
pe = {
|
|
4958
4958
|
...pe,
|
|
4959
|
-
data: Z.payload.rowId ?
|
|
4960
|
-
(Ie) => Ie[
|
|
4959
|
+
data: Z.payload.rowId ? j.data.find(
|
|
4960
|
+
(Ie) => Ie[j.uniqueIdField] === Z.payload.rowId
|
|
4961
4961
|
) : null,
|
|
4962
4962
|
column: { field: Z.payload.field },
|
|
4963
4963
|
newValue: Z.payload.value,
|
|
@@ -4999,10 +4999,10 @@ const ur = (e, t = {}) => {
|
|
|
4999
4999
|
};
|
|
5000
5000
|
break;
|
|
5001
5001
|
}
|
|
5002
|
-
|
|
5002
|
+
j.api.dispatchEvent(ge, pe);
|
|
5003
5003
|
}
|
|
5004
5004
|
}
|
|
5005
|
-
!
|
|
5005
|
+
!j.tableId || !((ae = T.current.alignedGrids) != null && ae.length) || (fe = Z.meta) != null && fe.fromAlignedGrid || !mo.includes(Z.type) || (he = T.current) != null && he.propagateChange && T.current.propagateChange(
|
|
5006
5006
|
Z.type,
|
|
5007
5007
|
Z.payload,
|
|
5008
5008
|
Z.meta
|
|
@@ -5054,36 +5054,36 @@ const ur = (e, t = {}) => {
|
|
|
5054
5054
|
meta: { defaultColDef: i }
|
|
5055
5055
|
});
|
|
5056
5056
|
const Z = setTimeout(() => {
|
|
5057
|
-
const
|
|
5057
|
+
const j = {};
|
|
5058
5058
|
let $ = !1;
|
|
5059
5059
|
t.forEach((ae) => {
|
|
5060
|
-
ae.width || ($ = !0,
|
|
5060
|
+
ae.width || ($ = !0, j[te(ae)] = !0);
|
|
5061
5061
|
}), $ && F({
|
|
5062
5062
|
type: ee.AUTOSIZE_COLUMNS_REQUESTED,
|
|
5063
|
-
payload: { columnsToAutosize:
|
|
5063
|
+
payload: { columnsToAutosize: j }
|
|
5064
5064
|
});
|
|
5065
5065
|
}, 100);
|
|
5066
5066
|
return () => clearTimeout(Z);
|
|
5067
5067
|
}, [t]);
|
|
5068
5068
|
const H = de(
|
|
5069
|
-
(Z,
|
|
5070
|
-
Z &&
|
|
5069
|
+
(Z, j) => {
|
|
5070
|
+
Z && Y({
|
|
5071
5071
|
type: ee.TOGGLE_GROUP_EXPANSION,
|
|
5072
|
-
payload: { rowId: String(Z), rowIndex:
|
|
5072
|
+
payload: { rowId: String(Z), rowIndex: j }
|
|
5073
5073
|
});
|
|
5074
5074
|
},
|
|
5075
|
-
[
|
|
5075
|
+
[Y]
|
|
5076
5076
|
), { propagateChange: N } = Fo(
|
|
5077
5077
|
l,
|
|
5078
5078
|
c,
|
|
5079
5079
|
a,
|
|
5080
|
-
|
|
5080
|
+
Y
|
|
5081
5081
|
);
|
|
5082
5082
|
se(() => {
|
|
5083
5083
|
T.current = { propagateChange: N, alignedGrids: c };
|
|
5084
5084
|
}, [N, c]);
|
|
5085
5085
|
const J = de(
|
|
5086
|
-
(Z,
|
|
5086
|
+
(Z, j, $ = !1) => {
|
|
5087
5087
|
if (!hr.includes(Z)) {
|
|
5088
5088
|
console.warn(
|
|
5089
5089
|
`Invalid event type: ${Z}. Valid types are: ${hr.join(
|
|
@@ -5092,18 +5092,18 @@ const ur = (e, t = {}) => {
|
|
|
5092
5092
|
);
|
|
5093
5093
|
return;
|
|
5094
5094
|
}
|
|
5095
|
-
if (typeof
|
|
5095
|
+
if (typeof j != "function") {
|
|
5096
5096
|
console.warn("Event listener must be a function");
|
|
5097
5097
|
return;
|
|
5098
5098
|
}
|
|
5099
|
-
|
|
5099
|
+
Y({
|
|
5100
5100
|
type: ee.ADD_EVENT_LISTENER,
|
|
5101
|
-
payload: { eventType: Z, listener:
|
|
5101
|
+
payload: { eventType: Z, listener: j, once: $ }
|
|
5102
5102
|
});
|
|
5103
5103
|
},
|
|
5104
|
-
[
|
|
5104
|
+
[Y]
|
|
5105
5105
|
), Q = de(
|
|
5106
|
-
(Z,
|
|
5106
|
+
(Z, j) => {
|
|
5107
5107
|
if (!hr.includes(Z)) {
|
|
5108
5108
|
console.warn(
|
|
5109
5109
|
`Invalid event type: ${Z}. Valid types are: ${hr.join(
|
|
@@ -5112,19 +5112,19 @@ const ur = (e, t = {}) => {
|
|
|
5112
5112
|
);
|
|
5113
5113
|
return;
|
|
5114
5114
|
}
|
|
5115
|
-
if (typeof
|
|
5115
|
+
if (typeof j != "function") {
|
|
5116
5116
|
console.warn("Event listener must be a function");
|
|
5117
5117
|
return;
|
|
5118
5118
|
}
|
|
5119
|
-
|
|
5119
|
+
Y({
|
|
5120
5120
|
type: ee.REMOVE_EVENT_LISTENER,
|
|
5121
|
-
payload: { eventType: Z, listener:
|
|
5121
|
+
payload: { eventType: Z, listener: j }
|
|
5122
5122
|
});
|
|
5123
5123
|
},
|
|
5124
|
-
[
|
|
5124
|
+
[Y]
|
|
5125
5125
|
), X = de(
|
|
5126
|
-
(Z,
|
|
5127
|
-
const $ = Ho(y.current.state, Z,
|
|
5126
|
+
(Z, j) => {
|
|
5127
|
+
const $ = Ho(y.current.state, Z, j) || [];
|
|
5128
5128
|
Array.isArray($) && $.forEach((ae) => {
|
|
5129
5129
|
Q(Z, ae);
|
|
5130
5130
|
});
|
|
@@ -5134,7 +5134,7 @@ const ur = (e, t = {}) => {
|
|
|
5134
5134
|
se(() => () => {
|
|
5135
5135
|
F({ type: ee.CLEANUP_TABLE_RESOURCES });
|
|
5136
5136
|
}, []);
|
|
5137
|
-
const
|
|
5137
|
+
const U = Re(() => {
|
|
5138
5138
|
var Z;
|
|
5139
5139
|
return {
|
|
5140
5140
|
state: {
|
|
@@ -5147,7 +5147,7 @@ const ur = (e, t = {}) => {
|
|
|
5147
5147
|
}
|
|
5148
5148
|
},
|
|
5149
5149
|
tableApi: a,
|
|
5150
|
-
dispatch:
|
|
5150
|
+
dispatch: Y,
|
|
5151
5151
|
ACTION_TYPES: ee,
|
|
5152
5152
|
toggleGroupExpansion: H,
|
|
5153
5153
|
dispatchEvent: X,
|
|
@@ -5159,10 +5159,10 @@ const ur = (e, t = {}) => {
|
|
|
5159
5159
|
b,
|
|
5160
5160
|
J,
|
|
5161
5161
|
Q,
|
|
5162
|
-
|
|
5162
|
+
Y,
|
|
5163
5163
|
a
|
|
5164
5164
|
]);
|
|
5165
|
-
return y.current =
|
|
5165
|
+
return y.current = U, bi(S, () => y.current), /* @__PURE__ */ ne(Qi.Provider, { value: U, children: [
|
|
5166
5166
|
/* @__PURE__ */ f(
|
|
5167
5167
|
Vo,
|
|
5168
5168
|
{
|
|
@@ -6071,35 +6071,35 @@ const ur = (e, t = {}) => {
|
|
|
6071
6071
|
if (Array.isArray(J)) {
|
|
6072
6072
|
if (J.length === 0)
|
|
6073
6073
|
return { checked: !1, indeterminate: !1 };
|
|
6074
|
-
let Z = !0,
|
|
6074
|
+
let Z = !0, j = !1;
|
|
6075
6075
|
for (const $ of J) {
|
|
6076
6076
|
const { checked: ae, indeterminate: fe } = N($);
|
|
6077
|
-
if ((!ae || fe) && (Z = !1), (ae || fe) && (
|
|
6077
|
+
if ((!ae || fe) && (Z = !1), (ae || fe) && (j = !0), !Z && j) break;
|
|
6078
6078
|
}
|
|
6079
|
-
return
|
|
6079
|
+
return j ? {
|
|
6080
6080
|
checked: Z,
|
|
6081
|
-
indeterminate:
|
|
6081
|
+
indeterminate: j && !Z
|
|
6082
6082
|
} : { checked: !1, indeterminate: !1 };
|
|
6083
6083
|
}
|
|
6084
6084
|
const X = `${te(J)}-${J.hidden}`;
|
|
6085
6085
|
if (H.has(X))
|
|
6086
6086
|
return H.get(X);
|
|
6087
|
-
let
|
|
6087
|
+
let U;
|
|
6088
6088
|
if (!J.children || J.children.length === 0)
|
|
6089
|
-
|
|
6089
|
+
U = {
|
|
6090
6090
|
checked: !J.hidden,
|
|
6091
6091
|
indeterminate: !1
|
|
6092
6092
|
};
|
|
6093
6093
|
else {
|
|
6094
|
-
const Z = J.children.map(N),
|
|
6094
|
+
const Z = J.children.map(N), j = Z.every((ae) => ae.checked), $ = Z.some(
|
|
6095
6095
|
(ae) => ae.checked || ae.indeterminate
|
|
6096
6096
|
);
|
|
6097
|
-
$ ?
|
|
6098
|
-
checked:
|
|
6099
|
-
indeterminate: $ && !
|
|
6100
|
-
} :
|
|
6097
|
+
$ ? U = {
|
|
6098
|
+
checked: j,
|
|
6099
|
+
indeterminate: $ && !j
|
|
6100
|
+
} : U = { checked: !1, indeterminate: !1 };
|
|
6101
6101
|
}
|
|
6102
|
-
return H.set(X,
|
|
6102
|
+
return H.set(X, U), U;
|
|
6103
6103
|
};
|
|
6104
6104
|
return N;
|
|
6105
6105
|
}, [o]), m = Re(() => {
|
|
@@ -6156,8 +6156,8 @@ const ur = (e, t = {}) => {
|
|
|
6156
6156
|
for (const Q of H) {
|
|
6157
6157
|
if (te(Q) === N) return Q;
|
|
6158
6158
|
if ((J = Q.children) != null && J.length) {
|
|
6159
|
-
const
|
|
6160
|
-
if (
|
|
6159
|
+
const U = K(Q.children, N);
|
|
6160
|
+
if (U) return U;
|
|
6161
6161
|
}
|
|
6162
6162
|
}
|
|
6163
6163
|
return null;
|
|
@@ -6192,12 +6192,12 @@ const ur = (e, t = {}) => {
|
|
|
6192
6192
|
if (N.children && N.children.length > 0) {
|
|
6193
6193
|
const J = P(
|
|
6194
6194
|
N.children
|
|
6195
|
-
), Q = (Z) => !Z.children || Z.children.length === 0 ? Z.hidden === !0 : Z.children.every((
|
|
6195
|
+
), Q = (Z) => !Z.children || Z.children.length === 0 ? Z.hidden === !0 : Z.children.every((j) => Q(j)), U = J.every(
|
|
6196
6196
|
(Z) => Q(Z)
|
|
6197
6197
|
);
|
|
6198
6198
|
return {
|
|
6199
6199
|
...N,
|
|
6200
|
-
...W(
|
|
6200
|
+
...W(U)(N),
|
|
6201
6201
|
children: J
|
|
6202
6202
|
};
|
|
6203
6203
|
}
|
|
@@ -6206,8 +6206,8 @@ const ur = (e, t = {}) => {
|
|
|
6206
6206
|
[W]
|
|
6207
6207
|
), k = de(
|
|
6208
6208
|
(H) => {
|
|
6209
|
-
const J = O(H).filter((
|
|
6210
|
-
l(X), d(X.every((
|
|
6209
|
+
const J = O(H).filter((U) => U.pinned !== "right"), X = J.length > 0 && J.every((U) => U.hidden) ? V(H) : H;
|
|
6210
|
+
l(X), d(X.every((U) => !U.hidden)), e({
|
|
6211
6211
|
type: t.TOGGLE_COLUMN_VISIBILITY,
|
|
6212
6212
|
payload: X
|
|
6213
6213
|
}), requestAnimationFrame(() => {
|
|
@@ -6238,12 +6238,12 @@ const ur = (e, t = {}) => {
|
|
|
6238
6238
|
if (J === !0 && N.columnGroupShow === void 0 && !(N.extra && N.extra.columnGroupShow)) {
|
|
6239
6239
|
const Z = q(o, N, null);
|
|
6240
6240
|
if (Z) {
|
|
6241
|
-
const
|
|
6242
|
-
if (
|
|
6241
|
+
const j = te(Z);
|
|
6242
|
+
if (j) {
|
|
6243
6243
|
const $ = r || {};
|
|
6244
6244
|
e({
|
|
6245
6245
|
type: t.SET_EXPANDED_COLUMN_GROUPS,
|
|
6246
|
-
payload: { ...$, [
|
|
6246
|
+
payload: { ...$, [j]: !0 }
|
|
6247
6247
|
});
|
|
6248
6248
|
}
|
|
6249
6249
|
}
|
|
@@ -6275,7 +6275,7 @@ const ur = (e, t = {}) => {
|
|
|
6275
6275
|
), F = de(
|
|
6276
6276
|
() => C((H) => !H),
|
|
6277
6277
|
[]
|
|
6278
|
-
),
|
|
6278
|
+
), Y = de(
|
|
6279
6279
|
(H) => s(H.target.value),
|
|
6280
6280
|
[]
|
|
6281
6281
|
);
|
|
@@ -6312,7 +6312,7 @@ const ur = (e, t = {}) => {
|
|
|
6312
6312
|
className: "search-input",
|
|
6313
6313
|
placeholder: "Search",
|
|
6314
6314
|
value: i,
|
|
6315
|
-
onChange:
|
|
6315
|
+
onChange: Y,
|
|
6316
6316
|
"aria-label": "Search columns"
|
|
6317
6317
|
}
|
|
6318
6318
|
),
|
|
@@ -6417,22 +6417,22 @@ const ur = (e, t = {}) => {
|
|
|
6417
6417
|
if (X.children && X.children.length > 0 && J.includes(
|
|
6418
6418
|
te(X)
|
|
6419
6419
|
)) {
|
|
6420
|
-
const
|
|
6420
|
+
const U = (Z, j) => Z.map(($) => $.children && $.children.length > 0 ? {
|
|
6421
6421
|
...$,
|
|
6422
|
-
hidden:
|
|
6423
|
-
is_hidden:
|
|
6424
|
-
hide:
|
|
6425
|
-
children:
|
|
6422
|
+
hidden: j,
|
|
6423
|
+
is_hidden: j,
|
|
6424
|
+
hide: j,
|
|
6425
|
+
children: U(
|
|
6426
6426
|
$.children,
|
|
6427
|
-
|
|
6427
|
+
j
|
|
6428
6428
|
)
|
|
6429
6429
|
} : {
|
|
6430
6430
|
...$,
|
|
6431
|
-
hidden:
|
|
6432
|
-
is_hidden:
|
|
6433
|
-
hide:
|
|
6431
|
+
hidden: j,
|
|
6432
|
+
is_hidden: j,
|
|
6433
|
+
hide: j
|
|
6434
6434
|
});
|
|
6435
|
-
X.children =
|
|
6435
|
+
X.children = U(
|
|
6436
6436
|
X.children,
|
|
6437
6437
|
N.checked
|
|
6438
6438
|
);
|
|
@@ -6997,12 +6997,7 @@ const Cl = rt(Ji), wl = ({
|
|
|
6997
6997
|
D(y), R(-1);
|
|
6998
6998
|
const I = u || o;
|
|
6999
6999
|
if (y) {
|
|
7000
|
-
const F = I.filter(
|
|
7001
|
-
(j) => (
|
|
7002
|
-
// Search in both label and value if they exist
|
|
7003
|
-
j.label && j.label.toLowerCase().includes(y) || j.value && j.value.toLowerCase().includes(y)
|
|
7004
|
-
)
|
|
7005
|
-
);
|
|
7000
|
+
const F = I.filter((Y) => Y.label && typeof Y.label == "string" ? Y.label.toLowerCase().includes(y) : Y.value && typeof Y.value == "string" ? Y.value.toLowerCase().includes(y) : Y.label && typeof Y.label == "number" ? Y.label == y : Y.value && typeof Y.value == "number" ? Y.value == y : !1);
|
|
7006
7001
|
h ? h(F) : W(F);
|
|
7007
7002
|
} else
|
|
7008
7003
|
h ? h(o) : W(o);
|
|
@@ -7016,26 +7011,26 @@ const Cl = rt(Ji), wl = ({
|
|
|
7016
7011
|
switch (y.key) {
|
|
7017
7012
|
case "ArrowDown":
|
|
7018
7013
|
y.preventDefault(), y.stopPropagation(), R((F) => {
|
|
7019
|
-
const
|
|
7014
|
+
const Y = F < I.length - 1 ? F + 1 : 0;
|
|
7020
7015
|
return setTimeout(() => {
|
|
7021
7016
|
var N;
|
|
7022
7017
|
const H = (N = b.current) == null ? void 0 : N.querySelector(
|
|
7023
|
-
`[data-option-index="${
|
|
7018
|
+
`[data-option-index="${Y}"]`
|
|
7024
7019
|
);
|
|
7025
7020
|
H == null || H.scrollIntoView({ block: "nearest" });
|
|
7026
|
-
}, 0),
|
|
7021
|
+
}, 0), Y;
|
|
7027
7022
|
});
|
|
7028
7023
|
break;
|
|
7029
7024
|
case "ArrowUp":
|
|
7030
7025
|
y.preventDefault(), y.stopPropagation(), R((F) => {
|
|
7031
|
-
const
|
|
7026
|
+
const Y = F > 0 ? F - 1 : I.length - 1;
|
|
7032
7027
|
return setTimeout(() => {
|
|
7033
7028
|
var N;
|
|
7034
7029
|
const H = (N = b.current) == null ? void 0 : N.querySelector(
|
|
7035
|
-
`[data-option-index="${
|
|
7030
|
+
`[data-option-index="${Y}"]`
|
|
7036
7031
|
);
|
|
7037
7032
|
H == null || H.scrollIntoView({ block: "nearest" });
|
|
7038
|
-
}, 0),
|
|
7033
|
+
}, 0), Y;
|
|
7039
7034
|
});
|
|
7040
7035
|
break;
|
|
7041
7036
|
case "Enter":
|
|
@@ -7096,14 +7091,14 @@ const Cl = rt(Ji), wl = ({
|
|
|
7096
7091
|
/* @__PURE__ */ f("div", { className: "ia-table-select-options d-flex flex-column gap-2", children: L && L.length > 0 ? L.map((I) => {
|
|
7097
7092
|
const F = T.findIndex(
|
|
7098
7093
|
(H) => H.value === I.value
|
|
7099
|
-
),
|
|
7094
|
+
), Y = F === E;
|
|
7100
7095
|
return /* @__PURE__ */ ne(
|
|
7101
7096
|
"div",
|
|
7102
7097
|
{
|
|
7103
7098
|
"data-option-index": F,
|
|
7104
7099
|
className: `ia-table-select-option d-flex align-items-center gap-6 ${d ? Array.isArray(n) && n.some(
|
|
7105
7100
|
(H) => H.value === I.value
|
|
7106
|
-
) ? "ia-table-select-option-selected" : "" : n && n.value === I.value ? "ia-table-select-option-selected" : ""} ${I.isDisabled ? "ia-table-option-disabled" : ""} ${
|
|
7101
|
+
) ? "ia-table-select-option-selected" : "" : n && n.value === I.value ? "ia-table-select-option-selected" : ""} ${I.isDisabled ? "ia-table-option-disabled" : ""} ${Y ? "ia-table-select-option-highlighted" : ""}`,
|
|
7107
7102
|
onClick: (H) => {
|
|
7108
7103
|
H.stopPropagation(), I.isDisabled || V(I);
|
|
7109
7104
|
},
|
|
@@ -10012,12 +10007,12 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10012
10007
|
type: k
|
|
10013
10008
|
}));
|
|
10014
10009
|
else {
|
|
10015
|
-
const
|
|
10010
|
+
const Y = (k ? T ? Gl : zl : []).map((H) => ({
|
|
10016
10011
|
value: H,
|
|
10017
10012
|
label: ii[H],
|
|
10018
10013
|
type: k
|
|
10019
10014
|
}));
|
|
10020
|
-
y[O].operators =
|
|
10015
|
+
y[O].operators = Y;
|
|
10021
10016
|
}
|
|
10022
10017
|
g(y);
|
|
10023
10018
|
}, M = () => {
|
|
@@ -10417,7 +10412,7 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10417
10412
|
advancedSearchApplyRef: G,
|
|
10418
10413
|
lazyLoadCellRenderer: D = !1
|
|
10419
10414
|
}) => {
|
|
10420
|
-
const [M, m] = ie(e), [E, R] = ie(!1), [_, W] = ie(!1), [L, z] = ie(() => e ? ue(e).isValid() ? ue(e) : ue() : ue()), [K, q] = ie(null), [O, V] = ie(!1), [P, k] = ie(!1), [S, T] = ie(!1), [y, I] = ie(null), F = ce(null),
|
|
10415
|
+
const [M, m] = ie(e), [E, R] = ie(!1), [_, W] = ie(!1), [L, z] = ie(() => e ? ue(e).isValid() ? ue(e) : ue() : ue()), [K, q] = ie(null), [O, V] = ie(!1), [P, k] = ie(!1), [S, T] = ie(!1), [y, I] = ie(null), F = ce(null), Y = ce(null), H = ce(null), N = ce(null), [J, Q] = ie(null);
|
|
10421
10416
|
se(() => {
|
|
10422
10417
|
D && R(!0);
|
|
10423
10418
|
}, [D]), se(() => {
|
|
@@ -10451,7 +10446,7 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10451
10446
|
w,
|
|
10452
10447
|
b
|
|
10453
10448
|
]
|
|
10454
|
-
),
|
|
10449
|
+
), U = de(
|
|
10455
10450
|
(le) => ye.validateDate(le, X),
|
|
10456
10451
|
[X]
|
|
10457
10452
|
);
|
|
@@ -10460,7 +10455,7 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10460
10455
|
const le = ue(M);
|
|
10461
10456
|
if (le.isValid()) {
|
|
10462
10457
|
z(le);
|
|
10463
|
-
const { hasError: Ee } =
|
|
10458
|
+
const { hasError: Ee } = U(M);
|
|
10464
10459
|
T(Ee);
|
|
10465
10460
|
}
|
|
10466
10461
|
} else
|
|
@@ -10474,15 +10469,15 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10474
10469
|
h,
|
|
10475
10470
|
A,
|
|
10476
10471
|
p,
|
|
10477
|
-
|
|
10472
|
+
U
|
|
10478
10473
|
]);
|
|
10479
|
-
const [Z,
|
|
10474
|
+
const [Z, j] = ie({ top: 0, left: 0 }), $ = de(() => {
|
|
10480
10475
|
var ht;
|
|
10481
|
-
if (!
|
|
10476
|
+
if (!Y.current)
|
|
10482
10477
|
return;
|
|
10483
|
-
const le =
|
|
10478
|
+
const le = Y.current.getBoundingClientRect(), Ee = ((ht = F.current) == null ? void 0 : ht.offsetHeight) || 400, Ge = window.innerHeight - le.bottom, Ze = le.top, Ye = 8;
|
|
10484
10479
|
let Se;
|
|
10485
|
-
Ge >= Ee + Ye ? Se = le.bottom + Ye : Ze >= Ee + Ye ? Se = le.top - Ee - Ye : Ze > Ge ? Se = Ye : Se = le.bottom + Ye,
|
|
10480
|
+
Ge >= Ee + Ye ? Se = le.bottom + Ye : Ze >= Ee + Ye ? Se = le.top - Ee - Ye : Ze > Ge ? Se = Ye : Se = le.bottom + Ye, j({
|
|
10486
10481
|
top: Se,
|
|
10487
10482
|
left: le.left
|
|
10488
10483
|
});
|
|
@@ -10499,7 +10494,7 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10499
10494
|
}
|
|
10500
10495
|
}, [E, s, $]), se(() => {
|
|
10501
10496
|
const le = (Ee) => {
|
|
10502
|
-
F.current && !F.current.contains(Ee.target) &&
|
|
10497
|
+
F.current && !F.current.contains(Ee.target) && Y.current && !Y.current.contains(Ee.target) && (R(!1), V(!1), k(!1), g && (C != null && C.tableId) ? (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[C.tableId] = !1) : g && (window.iaTablePortalOpen[C.tableId] = !1)), H.current && !H.current.contains(Ee.target) && !Ee.target.classList.contains("ia-table-datepicker-month-select") && V(!1), N.current && !N.current.contains(Ee.target) && !Ee.target.classList.contains("ia-table-datepicker-year-select") && k(!1);
|
|
10503
10498
|
};
|
|
10504
10499
|
return document.addEventListener("mousedown", le), () => {
|
|
10505
10500
|
document.removeEventListener("mousedown", le);
|
|
@@ -10812,7 +10807,7 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10812
10807
|
isError: S,
|
|
10813
10808
|
setErrorState: T,
|
|
10814
10809
|
disabled: r,
|
|
10815
|
-
inputContainerRef:
|
|
10810
|
+
inputContainerRef: Y,
|
|
10816
10811
|
selectedDate: M,
|
|
10817
10812
|
isOpen: E,
|
|
10818
10813
|
setIsOpen: R,
|
|
@@ -10824,7 +10819,7 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10824
10819
|
if (Ge && Ge.isValid()) {
|
|
10825
10820
|
const Ze = ye.formatDate(Ge, "YYYY-MM-DD");
|
|
10826
10821
|
m(Ze), z(Ge), q(Ze);
|
|
10827
|
-
const { hasError: Ye } =
|
|
10822
|
+
const { hasError: Ye } = U(Ze);
|
|
10828
10823
|
T(Ye);
|
|
10829
10824
|
} else
|
|
10830
10825
|
m(Ee ? le.toString() : le), T(!0);
|
|
@@ -10860,7 +10855,7 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
10860
10855
|
}
|
|
10861
10856
|
),
|
|
10862
10857
|
S && !g && /* @__PURE__ */ f("div", { className: "ia-table-datepicker-error-message", children: (() => {
|
|
10863
|
-
const le = M ?
|
|
10858
|
+
const le = M ? U(M) : { reason: null }, Ee = (Ge) => ye.formatDate(Ge, l);
|
|
10864
10859
|
switch (le.reason) {
|
|
10865
10860
|
case "before_min_date":
|
|
10866
10861
|
return `Date must be on or after ${Ee(w)}`;
|
|
@@ -11103,14 +11098,14 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11103
11098
|
className: `ia-table-daterangepicker-dropdown-option cursor-pointer ${De(e) === I ? "ia-table-daterangepicker-dropdown-option-selected" : ""}`,
|
|
11104
11099
|
onClick: (F) => {
|
|
11105
11100
|
F.stopPropagation();
|
|
11106
|
-
const
|
|
11107
|
-
|
|
11108
|
-
const H = be(
|
|
11109
|
-
if (H === N && I >= De(n) || H > N || Ar(
|
|
11110
|
-
const J = new Date(
|
|
11101
|
+
const Y = new Date(e);
|
|
11102
|
+
Y.setMonth(I);
|
|
11103
|
+
const H = be(Y), N = be(n);
|
|
11104
|
+
if (H === N && I >= De(n) || H > N || Ar(Y, n)) {
|
|
11105
|
+
const J = new Date(Y);
|
|
11111
11106
|
J.setMonth(J.getMonth() + 1), r(J);
|
|
11112
11107
|
}
|
|
11113
|
-
t(
|
|
11108
|
+
t(Y), u(!1);
|
|
11114
11109
|
},
|
|
11115
11110
|
children: y
|
|
11116
11111
|
},
|
|
@@ -11129,12 +11124,12 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11129
11124
|
className: `ia-table-daterangepicker-dropdown-option ${be(e) === y ? "ia-table-daterangepicker-dropdown-option-selected" : ""}`,
|
|
11130
11125
|
onClick: (F) => {
|
|
11131
11126
|
F.stopPropagation();
|
|
11132
|
-
const
|
|
11133
|
-
if (
|
|
11134
|
-
const H = new Date(
|
|
11127
|
+
const Y = new Date(e);
|
|
11128
|
+
if (Y.setFullYear(y), y === be(n) && De(Y) >= De(n) || y > be(n)) {
|
|
11129
|
+
const H = new Date(Y);
|
|
11135
11130
|
H.setMonth(H.getMonth() + 1), r(H);
|
|
11136
11131
|
}
|
|
11137
|
-
t(
|
|
11132
|
+
t(Y), A(!1);
|
|
11138
11133
|
},
|
|
11139
11134
|
children: y
|
|
11140
11135
|
},
|
|
@@ -11201,10 +11196,10 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11201
11196
|
disablePast: G,
|
|
11202
11197
|
disableFuture: D
|
|
11203
11198
|
})) {
|
|
11204
|
-
const
|
|
11205
|
-
|
|
11199
|
+
const Y = new Date(e);
|
|
11200
|
+
Y.setDate(y.day);
|
|
11206
11201
|
const H = ye.formatDate(
|
|
11207
|
-
|
|
11202
|
+
Y,
|
|
11208
11203
|
"YYYY-MM-DD"
|
|
11209
11204
|
);
|
|
11210
11205
|
if (v === "start") {
|
|
@@ -11212,7 +11207,7 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11212
11207
|
let N = l;
|
|
11213
11208
|
if (l) {
|
|
11214
11209
|
const Q = new Date(l);
|
|
11215
|
-
|
|
11210
|
+
Y > Q && (c(""), N = "");
|
|
11216
11211
|
}
|
|
11217
11212
|
B("end");
|
|
11218
11213
|
const J = new Date(H);
|
|
@@ -11226,7 +11221,7 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11226
11221
|
});
|
|
11227
11222
|
} else {
|
|
11228
11223
|
const N = s ? new Date(s) : null;
|
|
11229
|
-
N &&
|
|
11224
|
+
N && Y < N && o(""), c(H), B("start"), W && W({
|
|
11230
11225
|
startDate: s,
|
|
11231
11226
|
endDate: H
|
|
11232
11227
|
});
|
|
@@ -11252,10 +11247,10 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11252
11247
|
I.setMonth(I.getMonth() - 1);
|
|
11253
11248
|
const F = `${be(
|
|
11254
11249
|
I
|
|
11255
|
-
)}-${De(I)}`,
|
|
11250
|
+
)}-${De(I)}`, Y = `${be(
|
|
11256
11251
|
e
|
|
11257
11252
|
)}-${De(e)}`;
|
|
11258
|
-
if (F <=
|
|
11253
|
+
if (F <= Y) {
|
|
11259
11254
|
const H = new Date(e);
|
|
11260
11255
|
if (be(e) === E && De(e) === 0)
|
|
11261
11256
|
return;
|
|
@@ -11311,10 +11306,10 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11311
11306
|
I.setFullYear(I.getFullYear() - 1);
|
|
11312
11307
|
const F = `${be(
|
|
11313
11308
|
I
|
|
11314
|
-
)}-${De(I)}`,
|
|
11309
|
+
)}-${De(I)}`, Y = `${be(
|
|
11315
11310
|
e
|
|
11316
11311
|
)}-${De(e)}`;
|
|
11317
|
-
if (F <=
|
|
11312
|
+
if (F <= Y) {
|
|
11318
11313
|
const H = new Date(e);
|
|
11319
11314
|
H.setFullYear(H.getFullYear() - 1);
|
|
11320
11315
|
const N = new Date(H);
|
|
@@ -11365,18 +11360,18 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11365
11360
|
className: `ia-table-daterangepicker-dropdown-option cursor-pointer ${De(n) === I ? "ia-table-daterangepicker-dropdown-option-selected" : ""}`,
|
|
11366
11361
|
onClick: (F) => {
|
|
11367
11362
|
F.stopPropagation();
|
|
11368
|
-
const
|
|
11369
|
-
|
|
11370
|
-
const H = be(e), N = be(
|
|
11363
|
+
const Y = new Date(n);
|
|
11364
|
+
Y.setMonth(I);
|
|
11365
|
+
const H = be(e), N = be(Y);
|
|
11371
11366
|
if (H === N && De(e) === I || N < H || N === H && I <= De(e)) {
|
|
11372
11367
|
const Q = new Date(e);
|
|
11373
11368
|
N === H ? I === 0 ? (Q.setFullYear(
|
|
11374
11369
|
Q.getFullYear() - 1
|
|
11375
11370
|
), Q.setMonth(11)) : Q.setMonth(I - 1) : (Q.setFullYear(N), Q.setMonth(
|
|
11376
11371
|
I - 1 >= 0 ? I - 1 : 11
|
|
11377
|
-
)), t(Q), r(
|
|
11372
|
+
)), t(Q), r(Y);
|
|
11378
11373
|
} else
|
|
11379
|
-
r(
|
|
11374
|
+
r(Y);
|
|
11380
11375
|
u(!1);
|
|
11381
11376
|
},
|
|
11382
11377
|
children: y
|
|
@@ -11396,12 +11391,12 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11396
11391
|
className: `ia-table-daterangepicker-dropdown-option ${be(n) === y ? "ia-table-daterangepicker-dropdown-option-selected" : ""}`,
|
|
11397
11392
|
onClick: (F) => {
|
|
11398
11393
|
F.stopPropagation();
|
|
11399
|
-
const
|
|
11400
|
-
if (
|
|
11394
|
+
const Y = new Date(n);
|
|
11395
|
+
if (Y.setFullYear(y), y < be(e) || y === be(e) && De(Y) <= De(e)) {
|
|
11401
11396
|
const N = new Date(e);
|
|
11402
|
-
y === be(e) && De(
|
|
11397
|
+
y === be(e) && De(Y) <= De(e) ? De(Y) === 0 ? (N.setFullYear(y - 1), N.setMonth(11)) : (N.setFullYear(y), N.setMonth(De(Y) - 1)) : (N.setFullYear(y), De(Y) === 0 ? (N.setFullYear(y - 1), N.setMonth(11)) : N.setMonth(De(Y) - 1)), t(N), r(Y);
|
|
11403
11398
|
} else
|
|
11404
|
-
r(
|
|
11399
|
+
r(Y);
|
|
11405
11400
|
A(!1);
|
|
11406
11401
|
},
|
|
11407
11402
|
children: y
|
|
@@ -11469,10 +11464,10 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11469
11464
|
disablePast: G,
|
|
11470
11465
|
disableFuture: D
|
|
11471
11466
|
})) {
|
|
11472
|
-
const
|
|
11473
|
-
|
|
11467
|
+
const Y = new Date(n);
|
|
11468
|
+
Y.setDate(y.day);
|
|
11474
11469
|
const H = ye.formatDate(
|
|
11475
|
-
|
|
11470
|
+
Y,
|
|
11476
11471
|
"YYYY-MM-DD"
|
|
11477
11472
|
);
|
|
11478
11473
|
if (v === "start") {
|
|
@@ -11480,7 +11475,7 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11480
11475
|
let N = l;
|
|
11481
11476
|
if (l) {
|
|
11482
11477
|
const Q = new Date(l);
|
|
11483
|
-
|
|
11478
|
+
Y > Q && (c(""), N = "");
|
|
11484
11479
|
}
|
|
11485
11480
|
B("end");
|
|
11486
11481
|
const J = new Date(H);
|
|
@@ -11494,7 +11489,7 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11494
11489
|
});
|
|
11495
11490
|
} else {
|
|
11496
11491
|
const N = s ? new Date(s) : null;
|
|
11497
|
-
N &&
|
|
11492
|
+
N && Y < N && o(""), c(H), B("start"), W && W({
|
|
11498
11493
|
startDate: s,
|
|
11499
11494
|
endDate: H
|
|
11500
11495
|
});
|
|
@@ -11515,10 +11510,10 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11515
11510
|
const y = s || a, I = l || i;
|
|
11516
11511
|
if (!y || !I)
|
|
11517
11512
|
return "0 days";
|
|
11518
|
-
const F = new Date(y),
|
|
11519
|
-
if (F.setHours(0, 0, 0, 0),
|
|
11513
|
+
const F = new Date(y), Y = new Date(I);
|
|
11514
|
+
if (F.setHours(0, 0, 0, 0), Y.setHours(0, 0, 0, 0), isNaN(F.getTime()) || isNaN(Y.getTime()))
|
|
11520
11515
|
return "0 days";
|
|
11521
|
-
const H = Math.abs(
|
|
11516
|
+
const H = Math.abs(Y - F);
|
|
11522
11517
|
return `${Math.ceil(H / (1e3 * 60 * 60 * 24)) + 1} days`;
|
|
11523
11518
|
})() })
|
|
11524
11519
|
] }),
|
|
@@ -11568,8 +11563,8 @@ const us = (e) => /* @__PURE__ */ re.createElement("svg", { width: "1em", height
|
|
|
11568
11563
|
endDate: F
|
|
11569
11564
|
}), o(""), c(""), B("start"), _(!1), M && (m != null && m.tableId) ? (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[m.tableId] = !1) : M && (window.iaTablePortalOpen[m.tableId] = !1);
|
|
11570
11565
|
else {
|
|
11571
|
-
const
|
|
11572
|
-
|
|
11566
|
+
const Y = new Date(I), H = new Date(F);
|
|
11567
|
+
Y > H && (K && K({
|
|
11573
11568
|
startDate: F,
|
|
11574
11569
|
endDate: I
|
|
11575
11570
|
}), o(""), c(""), B("start"), _(!1), M && (m != null && m.tableId) ? (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[m.tableId] = !1) : M && (window.iaTablePortalOpen[m.tableId] = !1));
|
|
@@ -11627,11 +11622,11 @@ function wc({
|
|
|
11627
11622
|
const O = (N, J) => {
|
|
11628
11623
|
if (!N || d && ue(N).isBefore(d, "day") || u && ue(N).isAfter(u, "day"))
|
|
11629
11624
|
return !1;
|
|
11630
|
-
const Q = J ? v : x, X = o || "DD-MM-YYYY",
|
|
11625
|
+
const Q = J ? v : x, X = o || "DD-MM-YYYY", U = {
|
|
11631
11626
|
"DD-MM-YYYY": { day: [0, 2], month: [3, 5], year: [6, 10] },
|
|
11632
11627
|
"MM-DD-YYYY": { day: [3, 5], month: [0, 2], year: [6, 10] },
|
|
11633
11628
|
"YYYY-MM-DD": { day: [8, 10], month: [5, 7], year: [0, 4] }
|
|
11634
|
-
}, Z =
|
|
11629
|
+
}, Z = U[X] || U["DD-MM-YYYY"], j = parseInt(
|
|
11635
11630
|
Q.substring(Z.day[0], Z.day[1])
|
|
11636
11631
|
), $ = parseInt(
|
|
11637
11632
|
Q.substring(Z.month[0], Z.month[1])
|
|
@@ -11641,7 +11636,7 @@ function wc({
|
|
|
11641
11636
|
if ($ < 1 || $ > 12)
|
|
11642
11637
|
return !1;
|
|
11643
11638
|
const fe = ue(`${ae}-${$}`, "YYYY-M").daysInMonth();
|
|
11644
|
-
if (
|
|
11639
|
+
if (j < 1 || j > fe)
|
|
11645
11640
|
return !1;
|
|
11646
11641
|
if (J && x) {
|
|
11647
11642
|
const he = ue(x, o, !0);
|
|
@@ -11693,7 +11688,7 @@ function wc({
|
|
|
11693
11688
|
return;
|
|
11694
11689
|
}
|
|
11695
11690
|
if (!q.includes(J)) {
|
|
11696
|
-
const Q = q.find((
|
|
11691
|
+
const Q = q.find((U) => U >= J), X = q[q.length - 1];
|
|
11697
11692
|
z.current.setSelectionRange(
|
|
11698
11693
|
Q !== void 0 ? Q : X,
|
|
11699
11694
|
Q !== void 0 ? Q : X
|
|
@@ -11705,8 +11700,8 @@ function wc({
|
|
|
11705
11700
|
var ae;
|
|
11706
11701
|
const J = N.target, Q = J.value, X = J.selectionStart;
|
|
11707
11702
|
if (X == null || X < 1) return;
|
|
11708
|
-
const
|
|
11709
|
-
if (!/^\d$/.test(
|
|
11703
|
+
const U = Q[X - 1];
|
|
11704
|
+
if (!/^\d$/.test(U)) return;
|
|
11710
11705
|
const Z = X - 1;
|
|
11711
11706
|
if (!q.includes(Z)) {
|
|
11712
11707
|
(ae = N.preventDefault) == null || ae.call(N), _(
|
|
@@ -11714,16 +11709,16 @@ function wc({
|
|
|
11714
11709
|
);
|
|
11715
11710
|
return;
|
|
11716
11711
|
}
|
|
11717
|
-
const
|
|
11718
|
-
if (
|
|
11719
|
-
B(
|
|
11712
|
+
const j = v.slice(0, Z) + U + v.slice(Z + 1);
|
|
11713
|
+
if (j.length > o.length) return;
|
|
11714
|
+
B(j), l == null || l(j);
|
|
11720
11715
|
const $ = q.indexOf(Z);
|
|
11721
11716
|
if ($ < q.length - 1) {
|
|
11722
11717
|
const fe = q[$ + 1];
|
|
11723
11718
|
_(fe);
|
|
11724
11719
|
} else {
|
|
11725
|
-
const fe = ue(
|
|
11726
|
-
M(!he), l == null || l(he ? fe :
|
|
11720
|
+
const fe = ue(j, o, !0), he = fe.isValid() && O(fe, !0);
|
|
11721
|
+
M(!he), l == null || l(he ? fe : j);
|
|
11727
11722
|
}
|
|
11728
11723
|
},
|
|
11729
11724
|
onKeyDown: (N) => {
|
|
@@ -11735,10 +11730,10 @@ function wc({
|
|
|
11735
11730
|
const X = v.slice(0, Q) + o[Q] + // "D" | "M" | "Y"
|
|
11736
11731
|
v.slice(Q + 1);
|
|
11737
11732
|
B(X), l == null || l(X);
|
|
11738
|
-
let
|
|
11739
|
-
for (;
|
|
11740
|
-
|
|
11741
|
-
_(
|
|
11733
|
+
let U = Q;
|
|
11734
|
+
for (; U > 0 && !q.includes(U - 1); )
|
|
11735
|
+
U--;
|
|
11736
|
+
_(U);
|
|
11742
11737
|
return;
|
|
11743
11738
|
}
|
|
11744
11739
|
/^\d$/.test(N.key) || N.preventDefault();
|
|
@@ -11782,7 +11777,7 @@ function wc({
|
|
|
11782
11777
|
return;
|
|
11783
11778
|
}
|
|
11784
11779
|
if (!q.includes(J)) {
|
|
11785
|
-
const Q = q.find((
|
|
11780
|
+
const Q = q.find((U) => U >= J), X = q[q.length - 1];
|
|
11786
11781
|
K.current.setSelectionRange(
|
|
11787
11782
|
Q !== void 0 ? Q : X,
|
|
11788
11783
|
Q !== void 0 ? Q : X
|
|
@@ -11794,8 +11789,8 @@ function wc({
|
|
|
11794
11789
|
var ae;
|
|
11795
11790
|
const J = N.target, Q = J.value, X = J.selectionStart;
|
|
11796
11791
|
if (X == null || X < 1) return;
|
|
11797
|
-
const
|
|
11798
|
-
if (!/^\d$/.test(
|
|
11792
|
+
const U = Q[X - 1];
|
|
11793
|
+
if (!/^\d$/.test(U)) return;
|
|
11799
11794
|
const Z = X - 1;
|
|
11800
11795
|
if (!q.includes(Z)) {
|
|
11801
11796
|
(ae = N.preventDefault) == null || ae.call(N), L(
|
|
@@ -11803,16 +11798,16 @@ function wc({
|
|
|
11803
11798
|
);
|
|
11804
11799
|
return;
|
|
11805
11800
|
}
|
|
11806
|
-
const
|
|
11807
|
-
if (
|
|
11808
|
-
G(
|
|
11801
|
+
const j = x.slice(0, Z) + U + x.slice(Z + 1);
|
|
11802
|
+
if (j.length > o.length) return;
|
|
11803
|
+
G(j), c == null || c(j);
|
|
11809
11804
|
const $ = q.indexOf(Z);
|
|
11810
11805
|
if ($ < q.length - 1) {
|
|
11811
11806
|
const fe = q[$ + 1];
|
|
11812
11807
|
L(fe);
|
|
11813
11808
|
} else {
|
|
11814
|
-
const fe = ue(
|
|
11815
|
-
E(!he), c == null || c(he ? fe :
|
|
11809
|
+
const fe = ue(j, o, !0), he = fe.isValid() && O(fe, !1);
|
|
11810
|
+
E(!he), c == null || c(he ? fe : j);
|
|
11816
11811
|
}
|
|
11817
11812
|
},
|
|
11818
11813
|
onKeyDown: (N) => {
|
|
@@ -11824,10 +11819,10 @@ function wc({
|
|
|
11824
11819
|
const X = x.slice(0, Q) + o[Q] + // "D" | "M" | "Y"
|
|
11825
11820
|
x.slice(Q + 1);
|
|
11826
11821
|
G(X), c == null || c(X);
|
|
11827
|
-
let
|
|
11828
|
-
for (;
|
|
11829
|
-
|
|
11830
|
-
L(
|
|
11822
|
+
let U = Q;
|
|
11823
|
+
for (; U > 0 && !q.includes(U - 1); )
|
|
11824
|
+
U--;
|
|
11825
|
+
L(U);
|
|
11831
11826
|
return;
|
|
11832
11827
|
}
|
|
11833
11828
|
/^\d$/.test(N.key) || N.preventDefault();
|
|
@@ -11917,13 +11912,13 @@ const Ec = ({
|
|
|
11917
11912
|
isOutsideRange: x,
|
|
11918
11913
|
lazyLoadCellRenderer: G = !1
|
|
11919
11914
|
}) => {
|
|
11920
|
-
const [D, M] = ie(e), [m, E] = ie(t), [R, _] = ie(""), [W, L] = ie(""), [z, K] = ie(0), [q, O] = ie(!0), [V, P] = ie(!0), [k, S] = ie(""), T = p, y = g, [I, F] = ie(!1), [
|
|
11915
|
+
const [D, M] = ie(e), [m, E] = ie(t), [R, _] = ie(""), [W, L] = ie(""), [z, K] = ie(0), [q, O] = ie(!0), [V, P] = ie(!0), [k, S] = ie(""), T = p, y = g, [I, F] = ie(!1), [Y, H] = ie(""), [N, J] = ie(() => e ? ye.parseDate(e) || ue() : ue()), [Q, X] = ie(() => {
|
|
11921
11916
|
if (t) {
|
|
11922
11917
|
const oe = ye.parseDate(t);
|
|
11923
11918
|
if (oe) return oe;
|
|
11924
11919
|
}
|
|
11925
11920
|
return ue(N).add(1, "month");
|
|
11926
|
-
}), [
|
|
11921
|
+
}), [U, Z] = ie(null), [j, $] = ie(null), [ae, fe] = ie(!1), [he, ge] = ie(!1), [pe, Ie] = ie("left"), [Ve, je] = ie(null), Fe = ce(null), He = ce(null), Be = ce(null), Ne = ce(null), [Ke, Le] = ie(null);
|
|
11927
11922
|
se(() => {
|
|
11928
11923
|
G && F(!0);
|
|
11929
11924
|
}, [G]), se(() => {
|
|
@@ -11969,23 +11964,23 @@ const Ec = ({
|
|
|
11969
11964
|
h,
|
|
11970
11965
|
A
|
|
11971
11966
|
]
|
|
11972
|
-
), ot = de(() => !
|
|
11973
|
-
Y,
|
|
11967
|
+
), ot = de(() => !U && !j ? { isValid: !0, hasError: !1 } : ye.dateRange.validateDateRange(
|
|
11974
11968
|
U,
|
|
11969
|
+
j,
|
|
11975
11970
|
Pe
|
|
11976
|
-
), [
|
|
11971
|
+
), [U, j, Pe]);
|
|
11977
11972
|
se(() => {
|
|
11978
11973
|
I || (_(me(D)), L(me(m)));
|
|
11979
11974
|
}, [D, m, me, I]);
|
|
11980
11975
|
const lt = ce({ startDate: "", endDate: "" });
|
|
11981
11976
|
se(() => {
|
|
11982
11977
|
if (I) {
|
|
11983
|
-
const oe =
|
|
11978
|
+
const oe = U || D, Te = j || m, ke = me(oe), xe = me(Te);
|
|
11984
11979
|
lt.current.startDate !== ke && (_(ke), lt.current.startDate = ke), lt.current.endDate !== xe && (L(xe), lt.current.endDate = xe), K((Qe) => Qe + 1);
|
|
11985
11980
|
}
|
|
11986
11981
|
}, [
|
|
11987
|
-
Y,
|
|
11988
11982
|
U,
|
|
11983
|
+
j,
|
|
11989
11984
|
I,
|
|
11990
11985
|
D,
|
|
11991
11986
|
m,
|
|
@@ -12052,30 +12047,30 @@ const Ec = ({
|
|
|
12052
12047
|
};
|
|
12053
12048
|
}, [C, w]), se(() => {
|
|
12054
12049
|
if (I)
|
|
12055
|
-
if (
|
|
12056
|
-
const oe = ye.parseDate(Y);
|
|
12057
|
-
oe && je(oe);
|
|
12058
|
-
} else if (j === "end" && U) {
|
|
12050
|
+
if (Y === "start" && U) {
|
|
12059
12051
|
const oe = ye.parseDate(U);
|
|
12060
12052
|
oe && je(oe);
|
|
12053
|
+
} else if (Y === "end" && j) {
|
|
12054
|
+
const oe = ye.parseDate(j);
|
|
12055
|
+
oe && je(oe);
|
|
12061
12056
|
} else
|
|
12062
12057
|
je(ue());
|
|
12063
|
-
}, [I,
|
|
12058
|
+
}, [I, Y, U, j]), se(() => {
|
|
12064
12059
|
I && setTimeout(() => {
|
|
12065
12060
|
var oe, Te;
|
|
12066
|
-
if (
|
|
12061
|
+
if (Y === "start") {
|
|
12067
12062
|
const ke = (oe = He.current) == null ? void 0 : oe.querySelector(
|
|
12068
12063
|
".ia-table-daterangepicker-start-input"
|
|
12069
12064
|
);
|
|
12070
12065
|
ke && (ke.focus(), ke.setSelectionRange(0, 0));
|
|
12071
|
-
} else if (
|
|
12066
|
+
} else if (Y === "end") {
|
|
12072
12067
|
const ke = (Te = He.current) == null ? void 0 : Te.querySelector(
|
|
12073
12068
|
".ia-table-daterangepicker-end-input"
|
|
12074
12069
|
);
|
|
12075
12070
|
ke && (ke.focus(), ke.setSelectionRange(0, 0));
|
|
12076
12071
|
}
|
|
12077
12072
|
}, 0);
|
|
12078
|
-
}, [
|
|
12073
|
+
}, [Y, I]), se(() => {
|
|
12079
12074
|
if (!I) return;
|
|
12080
12075
|
const oe = (Te) => {
|
|
12081
12076
|
if (ae || he) return;
|
|
@@ -12084,14 +12079,14 @@ const Ec = ({
|
|
|
12084
12079
|
ke
|
|
12085
12080
|
);
|
|
12086
12081
|
if (Te.key === "Enter") {
|
|
12087
|
-
if (Te.preventDefault(), Te.stopPropagation(),
|
|
12082
|
+
if (Te.preventDefault(), Te.stopPropagation(), U && !j && Y === "start") {
|
|
12088
12083
|
H("end");
|
|
12089
|
-
const Oe = ye.parseDate(
|
|
12084
|
+
const Oe = ye.parseDate(U);
|
|
12090
12085
|
Oe && je(ue(Oe).add(1, "day"));
|
|
12091
12086
|
return;
|
|
12092
12087
|
}
|
|
12093
|
-
if (
|
|
12094
|
-
const Oe = ye.parseDate(
|
|
12088
|
+
if (U && j && !s) {
|
|
12089
|
+
const Oe = ye.parseDate(U), at = ye.parseDate(j);
|
|
12095
12090
|
if (Oe && at) {
|
|
12096
12091
|
const vt = ye.formatDate(
|
|
12097
12092
|
Oe,
|
|
@@ -12111,9 +12106,9 @@ const Ec = ({
|
|
|
12111
12106
|
Te.preventDefault(), Te.stopPropagation(), F(!1), C && (w != null && w.tableId) ? ((!window.iaTablePortalOpen || typeof window.iaTablePortalOpen != "object") && (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[w.tableId] = !1) : C && (window.iaTablePortalOpen[w.tableId] = !1);
|
|
12112
12107
|
return;
|
|
12113
12108
|
}
|
|
12114
|
-
if (Qe && (Te.preventDefault(), Te.stopPropagation()), je(xe),
|
|
12109
|
+
if (Qe && (Te.preventDefault(), Te.stopPropagation()), je(xe), Y === "start" ? xe.isSame(N, "month") || J(xe.clone().startOf("month")) : Y === "end" && (xe.isSame(Q, "month") || X(xe.clone().startOf("month"))), Qe) {
|
|
12115
12110
|
const Oe = ye.formatDate(xe, "YYYY-MM-DD");
|
|
12116
|
-
|
|
12111
|
+
Y === "start" ? (Z(Oe), M(Oe)) : Y === "end" && ($(Oe), E(Oe));
|
|
12117
12112
|
}
|
|
12118
12113
|
};
|
|
12119
12114
|
return document.addEventListener("keydown", oe), () => {
|
|
@@ -12122,13 +12117,13 @@ const Ec = ({
|
|
|
12122
12117
|
}, [
|
|
12123
12118
|
I,
|
|
12124
12119
|
Ve,
|
|
12125
|
-
|
|
12120
|
+
Y,
|
|
12126
12121
|
ae,
|
|
12127
12122
|
he,
|
|
12128
12123
|
N,
|
|
12129
12124
|
Q,
|
|
12130
|
-
Y,
|
|
12131
12125
|
U,
|
|
12126
|
+
j,
|
|
12132
12127
|
s,
|
|
12133
12128
|
n,
|
|
12134
12129
|
C,
|
|
@@ -12141,11 +12136,11 @@ const Ec = ({
|
|
|
12141
12136
|
if (oe.startDate && oe.endDate) {
|
|
12142
12137
|
const ke = ye.parseDate(oe.startDate), xe = ye.parseDate(oe.endDate);
|
|
12143
12138
|
if (ke && xe) {
|
|
12144
|
-
if (xe.isBefore(ke) &&
|
|
12139
|
+
if (xe.isBefore(ke) && Y === "end") {
|
|
12145
12140
|
M(""), E(oe.endDate);
|
|
12146
12141
|
return;
|
|
12147
12142
|
}
|
|
12148
|
-
if (ke.isAfter(xe) &&
|
|
12143
|
+
if (ke.isAfter(xe) && Y === "start") {
|
|
12149
12144
|
M(oe.startDate), E("");
|
|
12150
12145
|
return;
|
|
12151
12146
|
}
|
|
@@ -12153,7 +12148,7 @@ const Ec = ({
|
|
|
12153
12148
|
}
|
|
12154
12149
|
M(oe.startDate), E(oe.endDate), ot().isValid ? S("") : S("Invalid date range");
|
|
12155
12150
|
},
|
|
12156
|
-
[
|
|
12151
|
+
[Y, ot, D, m]
|
|
12157
12152
|
), Se = Re(
|
|
12158
12153
|
() => ({
|
|
12159
12154
|
setLeftMonth: J,
|
|
@@ -12193,8 +12188,8 @@ const Ec = ({
|
|
|
12193
12188
|
rightMonth: Q,
|
|
12194
12189
|
selectedStartDate: D,
|
|
12195
12190
|
selectedEndDate: m,
|
|
12196
|
-
tempStartDate:
|
|
12197
|
-
tempEndDate:
|
|
12191
|
+
tempStartDate: U,
|
|
12192
|
+
tempEndDate: j,
|
|
12198
12193
|
showMonthDropdown: ae,
|
|
12199
12194
|
showYearDropdown: he,
|
|
12200
12195
|
activeCalendar: pe,
|
|
@@ -12204,7 +12199,7 @@ const Ec = ({
|
|
|
12204
12199
|
disableFuture: A,
|
|
12205
12200
|
startYear: p,
|
|
12206
12201
|
endYear: g,
|
|
12207
|
-
focusedInput:
|
|
12202
|
+
focusedInput: Y,
|
|
12208
12203
|
error: s,
|
|
12209
12204
|
hasDateError: k
|
|
12210
12205
|
}),
|
|
@@ -12215,8 +12210,8 @@ const Ec = ({
|
|
|
12215
12210
|
Q,
|
|
12216
12211
|
D,
|
|
12217
12212
|
m,
|
|
12218
|
-
Y,
|
|
12219
12213
|
U,
|
|
12214
|
+
j,
|
|
12220
12215
|
ae,
|
|
12221
12216
|
he,
|
|
12222
12217
|
pe,
|
|
@@ -12226,7 +12221,7 @@ const Ec = ({
|
|
|
12226
12221
|
A,
|
|
12227
12222
|
p,
|
|
12228
12223
|
g,
|
|
12229
|
-
|
|
12224
|
+
Y,
|
|
12230
12225
|
s,
|
|
12231
12226
|
k
|
|
12232
12227
|
]
|
|
@@ -12277,8 +12272,8 @@ const Ec = ({
|
|
|
12277
12272
|
return;
|
|
12278
12273
|
}
|
|
12279
12274
|
const ke = ye.formatDate(oe, "YYYY-MM-DD");
|
|
12280
|
-
if (Z(ke), O(!0), S(""), J(ue(oe)),
|
|
12281
|
-
const xe = ue(
|
|
12275
|
+
if (Z(ke), O(!0), S(""), J(ue(oe)), j) {
|
|
12276
|
+
const xe = ue(j);
|
|
12282
12277
|
oe.isSame(xe, "month") ? X(ue(oe).add(1, "month")) : oe.isBefore(xe) ? X(xe) : X(ue(oe).add(1, "month"));
|
|
12283
12278
|
} else
|
|
12284
12279
|
X(ue(oe).add(1, "month"));
|
|
@@ -12292,8 +12287,8 @@ const Ec = ({
|
|
|
12292
12287
|
return;
|
|
12293
12288
|
}
|
|
12294
12289
|
const ke = ye.formatDate(oe, "YYYY-MM-DD");
|
|
12295
|
-
if ($(ke), P(!0), S(""), X(ue(oe)),
|
|
12296
|
-
const xe = ue(
|
|
12290
|
+
if ($(ke), P(!0), S(""), X(ue(oe)), U) {
|
|
12291
|
+
const xe = ue(U);
|
|
12297
12292
|
oe.isSame(xe, "month") ? J(ue(oe).subtract(1, "month")) : xe.isBefore(oe) ? J(xe) : (J(ue(oe)), X(ue(oe).add(1, "month")));
|
|
12298
12293
|
} else
|
|
12299
12294
|
J(ue(oe));
|
|
@@ -12629,31 +12624,31 @@ const Ec = ({
|
|
|
12629
12624
|
showMasterDetailToggle: y,
|
|
12630
12625
|
isRowGroupEnabled: I,
|
|
12631
12626
|
updatedCellId: F,
|
|
12632
|
-
cellValue:
|
|
12627
|
+
cellValue: Y,
|
|
12633
12628
|
tableApi: H,
|
|
12634
12629
|
hasChildren: N,
|
|
12635
12630
|
isAggregationParentRowWithAggregatedData: J,
|
|
12636
12631
|
lazyLoadCellRenderer: Q
|
|
12637
12632
|
}) => {
|
|
12638
12633
|
const X = ce(null), {
|
|
12639
|
-
cellRenderer:
|
|
12634
|
+
cellRenderer: U,
|
|
12640
12635
|
autoHeight: Z = !1,
|
|
12641
|
-
cellRendererLazyType:
|
|
12642
|
-
} = T, $ =
|
|
12643
|
-
!(Q && mr.includes($)) && !!
|
|
12636
|
+
cellRendererLazyType: j
|
|
12637
|
+
} = T, $ = j || U, [ae, fe] = ie(
|
|
12638
|
+
!(Q && mr.includes($)) && !!U
|
|
12644
12639
|
);
|
|
12645
12640
|
se(() => {
|
|
12646
12641
|
fe(
|
|
12647
|
-
!(Q && mr.includes($)) && !!
|
|
12642
|
+
!(Q && mr.includes($)) && !!U
|
|
12648
12643
|
), Q || Gr({ cellRef: e });
|
|
12649
|
-
}, [Q, e, $,
|
|
12644
|
+
}, [Q, e, $, U]), Q && $ === "smartGridDropdownRenderer" && (E = ec({
|
|
12650
12645
|
column: T,
|
|
12651
12646
|
rowData: S,
|
|
12652
|
-
cellValue:
|
|
12647
|
+
cellValue: Y
|
|
12653
12648
|
}));
|
|
12654
12649
|
let he = !1;
|
|
12655
12650
|
Q && $ === "smartGridDateTimeRenderer" && (he = tc({ column: T, actualValue: E }));
|
|
12656
|
-
const ge = ae &&
|
|
12651
|
+
const ge = ae && U && !J && !(A && U !== "smartGridSplitRenderer");
|
|
12657
12652
|
return /* @__PURE__ */ ne(
|
|
12658
12653
|
"div",
|
|
12659
12654
|
{
|
|
@@ -12667,7 +12662,7 @@ const Ec = ({
|
|
|
12667
12662
|
"data-col": o,
|
|
12668
12663
|
"data-field": l,
|
|
12669
12664
|
"data-pinned": c ? "leftPinned" : d ? "rightPinned" : !1,
|
|
12670
|
-
"data-renderer": Rr.includes(
|
|
12665
|
+
"data-renderer": Rr.includes(U) ? U : "",
|
|
12671
12666
|
children: [
|
|
12672
12667
|
/* @__PURE__ */ ne(
|
|
12673
12668
|
"div",
|
|
@@ -12709,7 +12704,7 @@ const Ec = ({
|
|
|
12709
12704
|
isGrandTotalRow: A,
|
|
12710
12705
|
rowData: S,
|
|
12711
12706
|
isAggregationParentRowWithAggregatedData: J,
|
|
12712
|
-
cellValue:
|
|
12707
|
+
cellValue: Y,
|
|
12713
12708
|
rowIndex: i,
|
|
12714
12709
|
colIndex: o,
|
|
12715
12710
|
column: T,
|
|
@@ -12720,10 +12715,10 @@ const Ec = ({
|
|
|
12720
12715
|
}
|
|
12721
12716
|
) : ea(u) && m !== void 0 ? E : ei({
|
|
12722
12717
|
cellRenderer: $,
|
|
12723
|
-
cellValue:
|
|
12718
|
+
cellValue: Y,
|
|
12724
12719
|
actualValue: E
|
|
12725
12720
|
})) || (h ? "" : "-"),
|
|
12726
|
-
Q &&
|
|
12721
|
+
Q && U && !ae && /* @__PURE__ */ f(li, { cellRenderer: U })
|
|
12727
12722
|
]
|
|
12728
12723
|
}
|
|
12729
12724
|
) : /* @__PURE__ */ f(
|
|
@@ -12749,7 +12744,7 @@ const Ec = ({
|
|
|
12749
12744
|
isGrandTotalRow: A,
|
|
12750
12745
|
rowData: S,
|
|
12751
12746
|
isAggregationParentRowWithAggregatedData: J,
|
|
12752
|
-
cellValue:
|
|
12747
|
+
cellValue: Y,
|
|
12753
12748
|
rowIndex: i,
|
|
12754
12749
|
colIndex: o,
|
|
12755
12750
|
column: T,
|
|
@@ -12760,10 +12755,10 @@ const Ec = ({
|
|
|
12760
12755
|
}
|
|
12761
12756
|
) : ea(u) && m !== void 0 ? E : ei({
|
|
12762
12757
|
cellRenderer: $,
|
|
12763
|
-
cellValue:
|
|
12758
|
+
cellValue: Y,
|
|
12764
12759
|
actualValue: E
|
|
12765
12760
|
})) || (h ? "" : "-"),
|
|
12766
|
-
Q &&
|
|
12761
|
+
Q && U && !ae && /* @__PURE__ */ f(li, { cellRenderer: $ })
|
|
12767
12762
|
]
|
|
12768
12763
|
}
|
|
12769
12764
|
)
|
|
@@ -12863,17 +12858,17 @@ const Ec = ({
|
|
|
12863
12858
|
} : E;
|
|
12864
12859
|
}, [E, d, m]), I = T ? !!((Nt = E == null ? void 0 : E.originalFields) != null && Nt[T]) : !0, {
|
|
12865
12860
|
cellRenderer: F,
|
|
12866
|
-
cellClassName:
|
|
12861
|
+
cellClassName: Y = "",
|
|
12867
12862
|
autoHeight: H = !1,
|
|
12868
12863
|
field: N = "",
|
|
12869
12864
|
is_frozen: J = !1,
|
|
12870
12865
|
cellRendererParams: Q = {},
|
|
12871
12866
|
extra: { hideToolTip: X = !1 } = {},
|
|
12872
|
-
cellRendererLazyType:
|
|
12867
|
+
cellRendererLazyType: U = ""
|
|
12873
12868
|
} = y;
|
|
12874
12869
|
let Z = 0;
|
|
12875
12870
|
K && (m != null && m.__parentPath) && (Z = ((En = (wn = m.__parentPath) == null ? void 0 : wn.split("/")) == null ? void 0 : En.length) || 0, Z > 4 && (Z = 4));
|
|
12876
|
-
const
|
|
12871
|
+
const j = t.minWidth, $ = y.width && y.width < j ? j : y.width, ae = ((ar = y.cellStyle) == null ? void 0 : ar.textAlign) || "left", fe = y.is_disabled || ((ir = y.extra) == null ? void 0 : ir.is_disabled) || ((sr = y.extra) == null ? void 0 : sr.isDisabled);
|
|
12877
12872
|
let he = O || {};
|
|
12878
12873
|
if (g != null && g.includes(N) && (m != null && m.__rowSpanInfo)) {
|
|
12879
12874
|
const Ae = ((lr = (or = m.__rowSpanInfo) == null ? void 0 : or[N]) == null ? void 0 : lr.span) || 0, Rt = ((dr = (cr = m.__rowSpanInfo) == null ? void 0 : cr[N]) == null ? void 0 : dr.isFirst) || !1;
|
|
@@ -12940,8 +12935,8 @@ const Ec = ({
|
|
|
12940
12935
|
var Rt, kt, sn;
|
|
12941
12936
|
return ((Rt = Ae == null ? void 0 : Ae.headerName) == null ? void 0 : Rt.toLowerCase()) === ((sn = (kt = m == null ? void 0 : m.__split) == null ? void 0 : kt.key) == null ? void 0 : sn.toLowerCase()) && Rr.includes(Ae.cellRenderer);
|
|
12942
12937
|
}
|
|
12943
|
-
))), nr = B ? typeof F == "string" ? F :
|
|
12944
|
-
ia-table-body-cell ${B && !Zt && ql[nr]} ia-table-body-cell--type-${_n ? et : "string"} ia-table-body-cell--font ia-table-body-cell--align-${ae} ia-table-${h.type}-cell ${Q.disabled || fe ? "ia-table-body-cell--disabled" : ""} ${H ? "ia-table-body-cell--auto-height" : ""} ${Ut} ${Ie ? "right-pinned" : ""} ${
|
|
12938
|
+
))), nr = B ? typeof F == "string" ? F : U : "", _n = !Qe && !m.subTotalAggreRow && Et, rn = `
|
|
12939
|
+
ia-table-body-cell ${B && !Zt && ql[nr]} ia-table-body-cell--type-${_n ? et : "string"} ia-table-body-cell--font ia-table-body-cell--align-${ae} ia-table-${h.type}-cell ${Q.disabled || fe ? "ia-table-body-cell--disabled" : ""} ${H ? "ia-table-body-cell--auto-height" : ""} ${Ut} ${Ie ? "right-pinned" : ""} ${Y} ${z} ${Ke ? "ia-table-row-group-cell" : ""} ${I ? "" : "ia-table-row-group-cell--disabled"} ${K ? "ia-table-child-row-cell" : ""} ${F && Sa.includes(y.type) && !Qe && !m.subTotalAggreRow && y.is_editable ? "ia-table-cell-renderer" : ""} ${mn && !Qe && !m.subTotalAggreRow && y.is_editable ? "ia-table-cell-renderer" : ""}
|
|
12945
12940
|
${P ? "ia-table-grand-total-row-title" : ""}
|
|
12946
12941
|
`, Jt = h.height, Ht = ge > 1 ? `${ge * Jt}px` : "100%", $e = P ? $ + (pe || !S ? Pt(
|
|
12947
12942
|
V,
|
|
@@ -13288,10 +13283,10 @@ const Bc = (e, t, n, r, a) => {
|
|
|
13288
13283
|
rowHeight: Q.rowHeight.height
|
|
13289
13284
|
}))
|
|
13290
13285
|
), O = ce(null), V = !!(e != null && e.__parentPath) || (e == null ? void 0 : e.isChildGroup), P = m ? !E : D, k = (Q) => {
|
|
13291
|
-
var
|
|
13286
|
+
var U, Z, j, $, ae, fe, he;
|
|
13292
13287
|
if (Q.stopPropagation(), !p || !(e != null && e[p]))
|
|
13293
13288
|
return;
|
|
13294
|
-
const X = (
|
|
13289
|
+
const X = (U = M == null ? void 0 : M.getTableStateContext) == null ? void 0 : U.call(M);
|
|
13295
13290
|
if (W && (_ != null && _.includes("Selection"))) {
|
|
13296
13291
|
const ge = (Z = e == null ? void 0 : e.__rowSpanInfo) == null ? void 0 : Z.Selection;
|
|
13297
13292
|
if (!ge) return;
|
|
@@ -13301,7 +13296,7 @@ const Bc = (e, t, n, r, a) => {
|
|
|
13301
13296
|
else {
|
|
13302
13297
|
const Ke = (X == null ? void 0 : X.data) || [];
|
|
13303
13298
|
let Le = t;
|
|
13304
|
-
for (; Le > 0 && !((ae = ($ = (
|
|
13299
|
+
for (; Le > 0 && !((ae = ($ = (j = Ke[Le]) == null ? void 0 : j.__rowSpanInfo) == null ? void 0 : $.Selection) != null && ae.isFirst); )
|
|
13305
13300
|
Le--;
|
|
13306
13301
|
const me = Ke[Le], Pe = ((he = (fe = me == null ? void 0 : me.__rowSpanInfo) == null ? void 0 : fe.Selection) == null ? void 0 : he.span) || 1;
|
|
13307
13302
|
pe = Ke.slice(
|
|
@@ -13378,7 +13373,7 @@ const Bc = (e, t, n, r, a) => {
|
|
|
13378
13373
|
) : {}, [t, e, M, l, B]), y = (e == null ? void 0 : e.__isAggregationRow) && (e == null ? void 0 : e.grandTotalAggreRow), I = e == null ? void 0 : e.isGrandTotalRow, F = `ia-table-body-row ${S ? "ia-table-expanded" : ""}
|
|
13379
13374
|
${P ? "ia-table-row-selected" : ""}
|
|
13380
13375
|
${I ? "ia-table-grand-total-row" : ""}
|
|
13381
|
-
`,
|
|
13376
|
+
`, Y = (e == null ? void 0 : e.__split) || null, H = Y && (e != null && e.__flattenedRowId) ? e.__flattenedRowId.split(`__${Object.values(Y)[0]}`) : null;
|
|
13382
13377
|
return /* @__PURE__ */ f(
|
|
13383
13378
|
"div",
|
|
13384
13379
|
{
|
|
@@ -13422,15 +13417,15 @@ const Bc = (e, t, n, r, a) => {
|
|
|
13422
13417
|
const X = Q;
|
|
13423
13418
|
if (W && X && (X.span === 0 || !X.isFirst))
|
|
13424
13419
|
return null;
|
|
13425
|
-
const Z = R,
|
|
13420
|
+
const Z = R, j = (X == null ? void 0 : X.span) || 1, $ = j > 1 ? `${j * Z}px` : "100%", ae = (e == null ? void 0 : e.is_disabled) || !1;
|
|
13426
13421
|
return /* @__PURE__ */ f(
|
|
13427
13422
|
"div",
|
|
13428
13423
|
{
|
|
13429
|
-
className: `ia-table-body-selection-cell ia-table-body-selection-cell--size-default ia-table-frozen ${
|
|
13424
|
+
className: `ia-table-body-selection-cell ia-table-body-selection-cell--size-default ia-table-frozen ${j > 1 ? "ia-table-row-span" : "d-flex align-items-center"} ${P ? "ia-table-body-selection-cell--selected" : ""}`,
|
|
13430
13425
|
onClick: (ge) => ge.stopPropagation(),
|
|
13431
13426
|
style: {
|
|
13432
|
-
height:
|
|
13433
|
-
minHeight:
|
|
13427
|
+
height: j > 1 ? $ : "100%",
|
|
13428
|
+
minHeight: j > 1 ? $ : "auto"
|
|
13434
13429
|
},
|
|
13435
13430
|
children: /* @__PURE__ */ f(
|
|
13436
13431
|
"div",
|
|
@@ -13445,7 +13440,7 @@ const Bc = (e, t, n, r, a) => {
|
|
|
13445
13440
|
checked: P,
|
|
13446
13441
|
onChange: k,
|
|
13447
13442
|
disabled: ae,
|
|
13448
|
-
style:
|
|
13443
|
+
style: j > 1 ? { marginTop: "8px" } : {}
|
|
13449
13444
|
}
|
|
13450
13445
|
)
|
|
13451
13446
|
}
|
|
@@ -13468,8 +13463,8 @@ const Bc = (e, t, n, r, a) => {
|
|
|
13468
13463
|
),
|
|
13469
13464
|
o.map((Q, X) => {
|
|
13470
13465
|
var Z;
|
|
13471
|
-
const
|
|
13472
|
-
return Q.colId =
|
|
13466
|
+
const U = te(Q);
|
|
13467
|
+
return Q.colId = U, /* @__PURE__ */ f(
|
|
13473
13468
|
Tc,
|
|
13474
13469
|
{
|
|
13475
13470
|
isFirstGrandTotalColumn: I && X === 0,
|
|
@@ -13480,7 +13475,7 @@ const Bc = (e, t, n, r, a) => {
|
|
|
13480
13475
|
rowIndex: t,
|
|
13481
13476
|
colIndex: A.current + X,
|
|
13482
13477
|
onClick: n,
|
|
13483
|
-
rowSpanInfo: (Z = e == null ? void 0 : e.__rowSpanInfo) == null ? void 0 : Z[
|
|
13478
|
+
rowSpanInfo: (Z = e == null ? void 0 : e.__rowSpanInfo) == null ? void 0 : Z[U],
|
|
13484
13479
|
customRowStyle: T,
|
|
13485
13480
|
loadingRef: c,
|
|
13486
13481
|
virtualized: i,
|
|
@@ -13490,7 +13485,7 @@ const Bc = (e, t, n, r, a) => {
|
|
|
13490
13485
|
isGrandTotalRow: I,
|
|
13491
13486
|
isLeftPinnedRowsAvailable: g
|
|
13492
13487
|
},
|
|
13493
|
-
|
|
13488
|
+
U
|
|
13494
13489
|
);
|
|
13495
13490
|
})
|
|
13496
13491
|
]
|
|
@@ -13816,8 +13811,8 @@ const Bc = (e, t, n, r, a) => {
|
|
|
13816
13811
|
index: -1
|
|
13817
13812
|
};
|
|
13818
13813
|
return q.map((P, k) => {
|
|
13819
|
-
var X,
|
|
13820
|
-
const S = k + K.start, T = P.id || P[E] || `data-row-${S}`, y = g[S] || c, I = S * c + L[S] + (O.index <= S ? O.offset : 0), F = P.__parentPath ? `${P.__parentPath}/${T}` : T,
|
|
13814
|
+
var X, U, Z;
|
|
13815
|
+
const S = k + K.start, T = P.id || P[E] || `data-row-${S}`, y = g[S] || c, I = S * c + L[S] + (O.index <= S ? O.offset : 0), F = P.__parentPath ? `${P.__parentPath}/${T}` : T, Y = (X = M[F]) == null ? void 0 : X.hasMore, H = A[F], N = (U = p[F]) == null ? void 0 : U[F], J = ((Z = P.__rowSpanInfo) == null ? void 0 : Z.isRowSpan) || !1, Q = Y && (H == null ? void 0 : H.length) || N && Y === void 0;
|
|
13821
13816
|
return Q && (O.offset = 46, O.index = H != null && H.length ? H.length + S + 1 : S + 1), /* @__PURE__ */ ne(At, { children: [
|
|
13822
13817
|
/* @__PURE__ */ f(
|
|
13823
13818
|
"div",
|
|
@@ -13872,7 +13867,7 @@ const Bc = (e, t, n, r, a) => {
|
|
|
13872
13867
|
flexDirection: "column"
|
|
13873
13868
|
},
|
|
13874
13869
|
children: Array.from({ length: On }).map(
|
|
13875
|
-
(
|
|
13870
|
+
(j, $) => /* @__PURE__ */ f(
|
|
13876
13871
|
ta,
|
|
13877
13872
|
{
|
|
13878
13873
|
columns: l,
|
|
@@ -14068,7 +14063,7 @@ const Qc = ({
|
|
|
14068
14063
|
virtualizedStartCololumnIndex: h,
|
|
14069
14064
|
columnHorizontalScrollContainerRef: A
|
|
14070
14065
|
}) => {
|
|
14071
|
-
var
|
|
14066
|
+
var j;
|
|
14072
14067
|
const {
|
|
14073
14068
|
filteredData: p,
|
|
14074
14069
|
pagination: g,
|
|
@@ -14114,13 +14109,13 @@ const Qc = ({
|
|
|
14114
14109
|
P.current || (P.current = new Aa());
|
|
14115
14110
|
}, []);
|
|
14116
14111
|
const T = Math.floor(
|
|
14117
|
-
(((
|
|
14112
|
+
(((j = l.current) == null ? void 0 : j.clientHeight) || 368) / An.default.height
|
|
14118
14113
|
), y = u !== void 0 ? u : T || Vs, I = Re(() => Object.keys(x).filter(
|
|
14119
14114
|
($) => {
|
|
14120
14115
|
var ae;
|
|
14121
14116
|
return (ae = x[$]) == null ? void 0 : ae[$];
|
|
14122
14117
|
}
|
|
14123
|
-
), [x]), F = C && w && !(!K && q === O),
|
|
14118
|
+
), [x]), F = C && w && !(!K && q === O), Y = Object.values(v).reduce(
|
|
14124
14119
|
($, ae) => $ + ae.childRowsCount,
|
|
14125
14120
|
0
|
|
14126
14121
|
), H = Re(() => {
|
|
@@ -14129,7 +14124,7 @@ const Qc = ({
|
|
|
14129
14124
|
{
|
|
14130
14125
|
const { currentPage: $, pageSize: ae, totalItems: fe, currentLoadedPage: he } = g, pe = (p.length === fe ? w ? 0 : he - 1 : $ - 1) * ae;
|
|
14131
14126
|
let Ie = b && pe === 0 ? p.length : pe + ae;
|
|
14132
|
-
return Ie < p.length && w && (Ie = p.length),
|
|
14127
|
+
return Ie < p.length && w && (Ie = p.length), Y > 0 && (Ie += Y), _ && (Ie += 1), p.slice(pe, Ie);
|
|
14133
14128
|
}
|
|
14134
14129
|
}, [
|
|
14135
14130
|
p,
|
|
@@ -14176,8 +14171,8 @@ const Qc = ({
|
|
|
14176
14171
|
k,
|
|
14177
14172
|
D
|
|
14178
14173
|
]);
|
|
14179
|
-
const Q = g == null ? void 0 : g.pageSize, X = Object.keys(E || {}).length > 0,
|
|
14180
|
-
return (R ||
|
|
14174
|
+
const Q = g == null ? void 0 : g.pageSize, X = Object.keys(E || {}).length > 0, U = R && !X, Z = X && N.length === 0;
|
|
14175
|
+
return (R || U && N.length === 0) && (J = Q * m.height), Z && N.length === 0 && (J = Math.max(J, 200)), F && R && (J += On * m.height), /* @__PURE__ */ f(
|
|
14181
14176
|
"div",
|
|
14182
14177
|
{
|
|
14183
14178
|
className: "ia-table-body-content",
|
|
@@ -14787,20 +14782,20 @@ const Kc = (e, t, n = {}) => {
|
|
|
14787
14782
|
// unpinColumnRight,
|
|
14788
14783
|
autoSizeColumn: K,
|
|
14789
14784
|
customSizeColumn: q
|
|
14790
|
-
} = qc(), O = (
|
|
14791
|
-
r(te(e),
|
|
14792
|
-
}, V = (
|
|
14793
|
-
|
|
14794
|
-
}, P = (
|
|
14795
|
-
if (
|
|
14785
|
+
} = qc(), O = (U) => {
|
|
14786
|
+
r(te(e), U), setTimeout(() => n(), 100);
|
|
14787
|
+
}, V = (U) => {
|
|
14788
|
+
U.stopPropagation(), e.is_frozen || e.pinned === "left" ? L(e) : z(e), n();
|
|
14789
|
+
}, P = (U, Z) => {
|
|
14790
|
+
if (U !== "sort" && U !== "width") {
|
|
14796
14791
|
g(!1), v(!1), w(null);
|
|
14797
14792
|
return;
|
|
14798
14793
|
}
|
|
14799
|
-
const
|
|
14800
|
-
A(S(
|
|
14794
|
+
const j = Z.currentTarget.getBoundingClientRect();
|
|
14795
|
+
A(S(j)), w(Z.currentTarget), U === "sort" && (g(!0), v(!1)), U === "width" && (v(!0), g(!1));
|
|
14801
14796
|
}, k = () => {
|
|
14802
14797
|
if (t && i && i.current) {
|
|
14803
|
-
const
|
|
14798
|
+
const U = () => {
|
|
14804
14799
|
var je, Fe;
|
|
14805
14800
|
const ae = ((Fe = (je = i.current) == null ? void 0 : je.getBoundingClientRect) == null ? void 0 : Fe.call(je)) || {}, fe = 180, he = window.innerWidth, ge = he - ae.right, pe = ae.left;
|
|
14806
14801
|
let Ie;
|
|
@@ -14817,77 +14812,77 @@ const Kc = (e, t, n = {}) => {
|
|
|
14817
14812
|
left: Ie
|
|
14818
14813
|
});
|
|
14819
14814
|
};
|
|
14820
|
-
|
|
14815
|
+
U();
|
|
14821
14816
|
const Z = setTimeout(() => {
|
|
14822
|
-
|
|
14823
|
-
}, 0),
|
|
14824
|
-
t &&
|
|
14817
|
+
U();
|
|
14818
|
+
}, 0), j = () => {
|
|
14819
|
+
t && U();
|
|
14825
14820
|
}, $ = () => {
|
|
14826
|
-
t &&
|
|
14821
|
+
t && U();
|
|
14827
14822
|
};
|
|
14828
|
-
return window.addEventListener("scroll",
|
|
14829
|
-
clearTimeout(Z), window.removeEventListener("scroll",
|
|
14823
|
+
return window.addEventListener("scroll", j, !0), window.addEventListener("resize", $), () => {
|
|
14824
|
+
clearTimeout(Z), window.removeEventListener("scroll", j, !0), window.removeEventListener("resize", $);
|
|
14830
14825
|
};
|
|
14831
14826
|
}
|
|
14832
14827
|
};
|
|
14833
14828
|
se(() => {
|
|
14834
14829
|
k(), t || (g(!1), v(!1), w(null));
|
|
14835
14830
|
}, [t, i]);
|
|
14836
|
-
const S = (
|
|
14837
|
-
const Z = window.innerWidth,
|
|
14831
|
+
const S = (U) => {
|
|
14832
|
+
const Z = window.innerWidth, j = 180, ae = U.right + Mr + j > Z ? U.left - j - Mr * 3 : U.right + Mr;
|
|
14838
14833
|
return {
|
|
14839
|
-
top:
|
|
14834
|
+
top: U.top,
|
|
14840
14835
|
left: ae
|
|
14841
14836
|
};
|
|
14842
14837
|
};
|
|
14843
14838
|
se(() => {
|
|
14844
|
-
const
|
|
14839
|
+
const U = () => {
|
|
14845
14840
|
k(), C && A(
|
|
14846
14841
|
S(C.getBoundingClientRect())
|
|
14847
14842
|
);
|
|
14848
14843
|
};
|
|
14849
|
-
return t && window.addEventListener("scroll",
|
|
14850
|
-
window.removeEventListener("scroll",
|
|
14844
|
+
return t && window.addEventListener("scroll", U, !0), () => {
|
|
14845
|
+
window.removeEventListener("scroll", U, !0);
|
|
14851
14846
|
};
|
|
14852
14847
|
}, [t, p, b]);
|
|
14853
|
-
const T = (
|
|
14854
|
-
if (
|
|
14855
|
-
const Z =
|
|
14856
|
-
A(S(Z)), w(
|
|
14848
|
+
const T = (U) => {
|
|
14849
|
+
if (U.stopPropagation(), U.currentTarget) {
|
|
14850
|
+
const Z = U.currentTarget.getBoundingClientRect();
|
|
14851
|
+
A(S(Z)), w(U.currentTarget);
|
|
14857
14852
|
}
|
|
14858
14853
|
g((Z) => !Z), v(!1);
|
|
14859
|
-
}, y = (
|
|
14860
|
-
if (
|
|
14861
|
-
const Z =
|
|
14862
|
-
A(S(Z)), w(
|
|
14854
|
+
}, y = (U) => {
|
|
14855
|
+
if (U.stopPropagation(), U.currentTarget) {
|
|
14856
|
+
const Z = U.currentTarget.getBoundingClientRect();
|
|
14857
|
+
A(S(Z)), w(U.currentTarget);
|
|
14863
14858
|
}
|
|
14864
14859
|
v((Z) => !Z), g(!1);
|
|
14865
|
-
}, I = (
|
|
14860
|
+
}, I = (U, Z) => {
|
|
14866
14861
|
R && R({
|
|
14867
14862
|
type: _.EXPAND_COLLAPSE_ALL_COLUMNS,
|
|
14868
14863
|
payload: Z
|
|
14869
14864
|
});
|
|
14870
|
-
}, F = (
|
|
14871
|
-
Z === "expand" ? I(
|
|
14865
|
+
}, F = (U, Z) => {
|
|
14866
|
+
Z === "expand" ? I(U, !0) : I(U, !1);
|
|
14872
14867
|
};
|
|
14873
14868
|
se(() => {
|
|
14874
14869
|
if (!t) return;
|
|
14875
|
-
const
|
|
14870
|
+
const U = (Z) => {
|
|
14876
14871
|
var ae;
|
|
14877
14872
|
if ((ae = i == null ? void 0 : i.current) != null && ae.contains(Z.target))
|
|
14878
14873
|
return;
|
|
14879
|
-
const
|
|
14880
|
-
o.current && !o.current.contains(Z.target) && !
|
|
14874
|
+
const j = l.current && l.current.contains(Z.target), $ = c.current && c.current.contains(Z.target);
|
|
14875
|
+
o.current && !o.current.contains(Z.target) && !j && !$ && (n(), g(!1), v(!1), w(null));
|
|
14881
14876
|
};
|
|
14882
|
-
return document.addEventListener("mousedown",
|
|
14883
|
-
document.removeEventListener("mousedown",
|
|
14877
|
+
return document.addEventListener("mousedown", U), () => {
|
|
14878
|
+
document.removeEventListener("mousedown", U);
|
|
14884
14879
|
};
|
|
14885
14880
|
}, [t, n, i]);
|
|
14886
|
-
let
|
|
14887
|
-
const H = (
|
|
14888
|
-
var
|
|
14889
|
-
const Z =
|
|
14890
|
-
(
|
|
14881
|
+
let Y = null;
|
|
14882
|
+
const H = (U) => {
|
|
14883
|
+
var j, $;
|
|
14884
|
+
const Z = U.relatedTarget;
|
|
14885
|
+
(j = l.current) != null && j.contains(Z) || ($ = c.current) != null && $.contains(Z) || (Y = setTimeout(() => {
|
|
14891
14886
|
g(!1), v(!1), w(null);
|
|
14892
14887
|
}, 100));
|
|
14893
14888
|
};
|
|
@@ -14952,8 +14947,8 @@ const Kc = (e, t, n = {}) => {
|
|
|
14952
14947
|
{
|
|
14953
14948
|
ref: o,
|
|
14954
14949
|
className: "column-menu-dropdown",
|
|
14955
|
-
onClick: (
|
|
14956
|
-
onMouseEnter: () => clearTimeout(
|
|
14950
|
+
onClick: (U) => U.stopPropagation(),
|
|
14951
|
+
onMouseEnter: () => clearTimeout(Y),
|
|
14957
14952
|
onMouseLeave: H,
|
|
14958
14953
|
style: {
|
|
14959
14954
|
position: "absolute",
|
|
@@ -14973,7 +14968,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
14973
14968
|
{
|
|
14974
14969
|
className: `menu-item sort-option ${p ? "active" : ""}`,
|
|
14975
14970
|
onClick: T,
|
|
14976
|
-
onMouseEnter: (
|
|
14971
|
+
onMouseEnter: (U) => P("sort", U),
|
|
14977
14972
|
children: [
|
|
14978
14973
|
"Sort",
|
|
14979
14974
|
/* @__PURE__ */ f(hi, { className: "right-arrow-icon" })
|
|
@@ -14985,7 +14980,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
14985
14980
|
{
|
|
14986
14981
|
className: "menu-item freeze-option",
|
|
14987
14982
|
onClick: V,
|
|
14988
|
-
onMouseEnter: (
|
|
14983
|
+
onMouseEnter: (U) => P("freeze", U),
|
|
14989
14984
|
children: e.is_frozen ? "Unfreeze" : "Freeze Column"
|
|
14990
14985
|
}
|
|
14991
14986
|
),
|
|
@@ -14993,20 +14988,20 @@ const Kc = (e, t, n = {}) => {
|
|
|
14993
14988
|
"div",
|
|
14994
14989
|
{
|
|
14995
14990
|
className: "menu-item autosize-option",
|
|
14996
|
-
onClick: (
|
|
14997
|
-
|
|
14998
|
-
const Z =
|
|
14991
|
+
onClick: (U) => {
|
|
14992
|
+
U.stopPropagation();
|
|
14993
|
+
const Z = U.currentTarget, j = Z.innerText;
|
|
14999
14994
|
Z.innerText = "Calculating...", Z.style.pointerEvents = "none", Z.style.opacity = "0.7", setTimeout(() => {
|
|
15000
14995
|
try {
|
|
15001
14996
|
W();
|
|
15002
14997
|
} catch ($) {
|
|
15003
14998
|
console.error("Error autosizing columns:", $);
|
|
15004
14999
|
} finally {
|
|
15005
|
-
Z.innerText =
|
|
15000
|
+
Z.innerText = j, Z.style.pointerEvents = "auto", Z.style.opacity = "1", n();
|
|
15006
15001
|
}
|
|
15007
15002
|
}, 10);
|
|
15008
15003
|
},
|
|
15009
|
-
onMouseEnter: (
|
|
15004
|
+
onMouseEnter: (U) => P("autoSize", U),
|
|
15010
15005
|
children: "Autosize All Columns"
|
|
15011
15006
|
}
|
|
15012
15007
|
),
|
|
@@ -15015,7 +15010,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
15015
15010
|
{
|
|
15016
15011
|
className: `menu-item width-option ${b ? "active" : ""}`,
|
|
15017
15012
|
onClick: y,
|
|
15018
|
-
onMouseEnter: (
|
|
15013
|
+
onMouseEnter: (U) => P("width", U),
|
|
15019
15014
|
children: [
|
|
15020
15015
|
"Column Width",
|
|
15021
15016
|
/* @__PURE__ */ f(hi, { className: "right-arrow-icon" })
|
|
@@ -15026,10 +15021,10 @@ const Kc = (e, t, n = {}) => {
|
|
|
15026
15021
|
"div",
|
|
15027
15022
|
{
|
|
15028
15023
|
className: "menu-item wrap-option",
|
|
15029
|
-
onClick: (
|
|
15030
|
-
|
|
15024
|
+
onClick: (U) => {
|
|
15025
|
+
U.stopPropagation(), F(U, "expand"), n();
|
|
15031
15026
|
},
|
|
15032
|
-
onMouseEnter: (
|
|
15027
|
+
onMouseEnter: (U) => P("wrap", U),
|
|
15033
15028
|
children: "Expand All"
|
|
15034
15029
|
}
|
|
15035
15030
|
),
|
|
@@ -15037,10 +15032,10 @@ const Kc = (e, t, n = {}) => {
|
|
|
15037
15032
|
"div",
|
|
15038
15033
|
{
|
|
15039
15034
|
className: "menu-item wrap-option",
|
|
15040
|
-
onClick: (
|
|
15041
|
-
|
|
15035
|
+
onClick: (U) => {
|
|
15036
|
+
U.stopPropagation(), F(U, "collapse"), n();
|
|
15042
15037
|
},
|
|
15043
|
-
onMouseEnter: (
|
|
15038
|
+
onMouseEnter: (U) => P("wrap", U),
|
|
15044
15039
|
children: "Collapse All"
|
|
15045
15040
|
}
|
|
15046
15041
|
),
|
|
@@ -15048,10 +15043,10 @@ const Kc = (e, t, n = {}) => {
|
|
|
15048
15043
|
"div",
|
|
15049
15044
|
{
|
|
15050
15045
|
className: "menu-item wrap-option",
|
|
15051
|
-
onClick: (
|
|
15052
|
-
|
|
15046
|
+
onClick: (U) => {
|
|
15047
|
+
U.stopPropagation(), a(e.id), n();
|
|
15053
15048
|
},
|
|
15054
|
-
onMouseEnter: (
|
|
15049
|
+
onMouseEnter: (U) => P("wrap", U),
|
|
15055
15050
|
children: "Wrap Text"
|
|
15056
15051
|
}
|
|
15057
15052
|
)
|
|
@@ -15402,7 +15397,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
15402
15397
|
autoHeight: V = !1,
|
|
15403
15398
|
wrapHeaderText: P = !1,
|
|
15404
15399
|
headerComponent: k = null
|
|
15405
|
-
} = e, S = k || x, T = ce(null), y = ce(!1), [I, F] = ie(!1), [
|
|
15400
|
+
} = e, S = k || x, T = ce(null), y = ce(!1), [I, F] = ie(!1), [Y, H] = ie(!1), [N, J] = ie(""), [Q, X] = ie(!1), U = g[E] && g[E].length > 0, Z = W === !0, { isLeftPinned: j, isRightPinned: $, pinnedPosition: ae, rightPinnedPosition: fe } = Re(
|
|
15406
15401
|
() => hc({
|
|
15407
15402
|
column: e,
|
|
15408
15403
|
isFrozen: q,
|
|
@@ -15428,10 +15423,10 @@ const Kc = (e, t, n = {}) => {
|
|
|
15428
15423
|
// Key alignment fix: parent columns are centered, leaf columns follow type-based alignment
|
|
15429
15424
|
justifyContent: O || z === "center" ? "center" : z === "right" ? "flex-end" : "flex-start",
|
|
15430
15425
|
boxSizing: "border-box",
|
|
15431
|
-
position:
|
|
15432
|
-
...!(
|
|
15426
|
+
position: j || $ ? "sticky" : "absolute",
|
|
15427
|
+
...!(j || $) && {
|
|
15433
15428
|
left: Di(
|
|
15434
|
-
|
|
15429
|
+
j ? a : !1,
|
|
15435
15430
|
e,
|
|
15436
15431
|
me,
|
|
15437
15432
|
D,
|
|
@@ -15439,7 +15434,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
15439
15434
|
)
|
|
15440
15435
|
},
|
|
15441
15436
|
// Add left position for pinned columns
|
|
15442
|
-
...
|
|
15437
|
+
...j && {
|
|
15443
15438
|
left: `${ae + Pt(
|
|
15444
15439
|
a,
|
|
15445
15440
|
M,
|
|
@@ -15458,7 +15453,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
15458
15453
|
}, [
|
|
15459
15454
|
O,
|
|
15460
15455
|
z,
|
|
15461
|
-
|
|
15456
|
+
j,
|
|
15462
15457
|
$,
|
|
15463
15458
|
a,
|
|
15464
15459
|
ae,
|
|
@@ -15492,7 +15487,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
15492
15487
|
me.stopPropagation(), H((Pe) => !Pe);
|
|
15493
15488
|
}, []), Ve = () => {
|
|
15494
15489
|
H(!1);
|
|
15495
|
-
}, je = !O && !e.emptyCell, Fe =
|
|
15490
|
+
}, je = !O && !e.emptyCell, Fe = j ? "ia-table-frozen" : $ ? "ia-table-right-pinned" : "", He = Jc(e), Be = !O && !e.emptyCell && e.isSortable, Ne = wt.includes(e.type);
|
|
15496
15491
|
se(() => {
|
|
15497
15492
|
if (i) {
|
|
15498
15493
|
const me = d.current, Pe = u.current;
|
|
@@ -15543,7 +15538,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
15543
15538
|
isSearchable: W,
|
|
15544
15539
|
showSortIcon: Be,
|
|
15545
15540
|
toggleSearchModal: pe,
|
|
15546
|
-
hasFilters:
|
|
15541
|
+
hasFilters: U,
|
|
15547
15542
|
isExpandable: r,
|
|
15548
15543
|
onToggle: n,
|
|
15549
15544
|
api: G,
|
|
@@ -15560,7 +15555,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
15560
15555
|
p,
|
|
15561
15556
|
Be,
|
|
15562
15557
|
pe,
|
|
15563
|
-
|
|
15558
|
+
U,
|
|
15564
15559
|
r,
|
|
15565
15560
|
n,
|
|
15566
15561
|
G,
|
|
@@ -15649,7 +15644,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
15649
15644
|
)
|
|
15650
15645
|
}
|
|
15651
15646
|
),
|
|
15652
|
-
|
|
15647
|
+
U && !Z && /* @__PURE__ */ f(
|
|
15653
15648
|
"span",
|
|
15654
15649
|
{
|
|
15655
15650
|
className: "filter-indicator",
|
|
@@ -15679,7 +15674,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
15679
15674
|
W && /* @__PURE__ */ f(At, { children: /* @__PURE__ */ ne(
|
|
15680
15675
|
"button",
|
|
15681
15676
|
{
|
|
15682
|
-
className: `ia-table-search-button position-relative ${
|
|
15677
|
+
className: `ia-table-search-button position-relative ${U || Z && Q ? "ia-table-active" : ""} ${N ? "ia-table-active" : ""}`,
|
|
15683
15678
|
onClick: pe,
|
|
15684
15679
|
"aria-label": `Search ${R || E}`,
|
|
15685
15680
|
children: [
|
|
@@ -15717,7 +15712,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
15717
15712
|
}
|
|
15718
15713
|
},
|
|
15719
15714
|
columnMap: w,
|
|
15720
|
-
isOpen:
|
|
15715
|
+
isOpen: Y,
|
|
15721
15716
|
onMenuClose: () => H(!1),
|
|
15722
15717
|
onSort: (me, Pe) => {
|
|
15723
15718
|
Qr(me, Pe, h);
|
|
@@ -15819,7 +15814,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
15819
15814
|
const P = p.pageSize || A.length, S = ((p.currentPage || 1) - 1) * P;
|
|
15820
15815
|
let T = S + P;
|
|
15821
15816
|
const y = Object.values(B).reduce(
|
|
15822
|
-
(F,
|
|
15817
|
+
(F, Y) => F + Y.childRowsCount,
|
|
15823
15818
|
0
|
|
15824
15819
|
);
|
|
15825
15820
|
return y && (T += y), x && (T = A.length), A.slice(S, T).filter((F) => !(F != null && F.__parentPath || F != null && F.isChildGroup)).map((F) => F[g]);
|
|
@@ -16199,7 +16194,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
16199
16194
|
pinnedBottomRows: y,
|
|
16200
16195
|
pinnedTopRows: I,
|
|
16201
16196
|
uniqueIdField: F,
|
|
16202
|
-
isLoading:
|
|
16197
|
+
isLoading: Y,
|
|
16203
16198
|
rowHeight: H,
|
|
16204
16199
|
columnBufferSize: N
|
|
16205
16200
|
} = _e(
|
|
@@ -16224,8 +16219,8 @@ const Kc = (e, t, n = {}) => {
|
|
|
16224
16219
|
}), {
|
|
16225
16220
|
visibleColumns: Q = [],
|
|
16226
16221
|
virtualizedHeaderRows: X = [],
|
|
16227
|
-
handleScroll:
|
|
16228
|
-
} = J, Z = n || r ? t : Q,
|
|
16222
|
+
handleScroll: U
|
|
16223
|
+
} = J, Z = n || r ? t : Q, j = (y == null ? void 0 : y.length) && y[0].isGrandTotalRow, $ = (I == null ? void 0 : I.length) && I[0].isGrandTotalRow, ae = $ || j;
|
|
16229
16224
|
return /* @__PURE__ */ f(
|
|
16230
16225
|
"div",
|
|
16231
16226
|
{
|
|
@@ -16238,7 +16233,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
16238
16233
|
}
|
|
16239
16234
|
},
|
|
16240
16235
|
...ae ? {} : {
|
|
16241
|
-
onScroll: r ? E :
|
|
16236
|
+
onScroll: r ? E : U,
|
|
16242
16237
|
ref: !r && !n ? a : null
|
|
16243
16238
|
},
|
|
16244
16239
|
children: /* @__PURE__ */ ne(
|
|
@@ -16330,7 +16325,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
16330
16325
|
},
|
|
16331
16326
|
onScroll: r ? E : _(
|
|
16332
16327
|
a,
|
|
16333
|
-
|
|
16328
|
+
U
|
|
16334
16329
|
),
|
|
16335
16330
|
ref: !r && !n ? a : null
|
|
16336
16331
|
} : {},
|
|
@@ -16351,9 +16346,9 @@ const Kc = (e, t, n = {}) => {
|
|
|
16351
16346
|
ref: z,
|
|
16352
16347
|
style: {
|
|
16353
16348
|
flex: 1,
|
|
16354
|
-
overflowY:
|
|
16349
|
+
overflowY: Y ? "hidden" : "auto",
|
|
16355
16350
|
// Allow horizontal scrolling when headerHeight is 0
|
|
16356
|
-
overflowX:
|
|
16351
|
+
overflowX: Y ? "hidden" : h == 0 ? "auto" : "hidden",
|
|
16357
16352
|
// Ensure proper spacing when headerHeight is 0
|
|
16358
16353
|
marginTop: h == 0 && u ? 0 : void 0,
|
|
16359
16354
|
// Calculate styles based on props
|
|
@@ -16398,7 +16393,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
16398
16393
|
leftPinnedOnly: n,
|
|
16399
16394
|
rightPinnedOnly: r,
|
|
16400
16395
|
frozenColumnWidth: D,
|
|
16401
|
-
isPinnedGrandTotalRow:
|
|
16396
|
+
isPinnedGrandTotalRow: j,
|
|
16402
16397
|
isLeftPinnedRowsAvailable: M,
|
|
16403
16398
|
handlePinnedScroll: S,
|
|
16404
16399
|
virtualizedAllVisibleColumns: Z,
|
|
@@ -16534,7 +16529,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
16534
16529
|
}, y = c ? "leftPinnedOnly" : d ? "rightPinnedOnly" : "normal", {
|
|
16535
16530
|
secondRowColumns: I,
|
|
16536
16531
|
headerRows: F,
|
|
16537
|
-
globalColumnCounts:
|
|
16532
|
+
globalColumnCounts: Y
|
|
16538
16533
|
} = Re(() => Js(
|
|
16539
16534
|
E,
|
|
16540
16535
|
y,
|
|
@@ -16542,7 +16537,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
16542
16537
|
_
|
|
16543
16538
|
), [E, y, _, m]), H = ts(
|
|
16544
16539
|
y,
|
|
16545
|
-
|
|
16540
|
+
Y
|
|
16546
16541
|
), N = ce(H);
|
|
16547
16542
|
N.current < H && (N.current = H);
|
|
16548
16543
|
let J = "auto";
|
|
@@ -16552,9 +16547,9 @@ const Kc = (e, t, n = {}) => {
|
|
|
16552
16547
|
...c || d ? {} : { width: `${J}px` }
|
|
16553
16548
|
}, {
|
|
16554
16549
|
headerScrollContainerRef: X,
|
|
16555
|
-
pinnedTopScrollContainerRef:
|
|
16550
|
+
pinnedTopScrollContainerRef: U,
|
|
16556
16551
|
pinnedBottomScrollContainerRef: Z,
|
|
16557
|
-
createHeaderScrollHandler:
|
|
16552
|
+
createHeaderScrollHandler: j,
|
|
16558
16553
|
createPinnedTopScrollHandler: $,
|
|
16559
16554
|
createPinnedBottomScrollHandler: ae,
|
|
16560
16555
|
handleFrozenScroll: fe,
|
|
@@ -16565,7 +16560,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
16565
16560
|
frozenScrollContainerRef: e,
|
|
16566
16561
|
normalScrollContainerRef: t,
|
|
16567
16562
|
rightPinnedScrollContainerRef: n
|
|
16568
|
-
}), Ie =
|
|
16563
|
+
}), Ie = j(
|
|
16569
16564
|
r
|
|
16570
16565
|
), Ve = $(
|
|
16571
16566
|
r
|
|
@@ -16598,7 +16593,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
16598
16593
|
rightPinnedOnly: d,
|
|
16599
16594
|
columnHorizontalScrollContainerRef: r,
|
|
16600
16595
|
pinnedType: y,
|
|
16601
|
-
globalColumnCounts:
|
|
16596
|
+
globalColumnCounts: Y,
|
|
16602
16597
|
virtualizedStartCololumnIndex: N,
|
|
16603
16598
|
mainContainerClassName: V,
|
|
16604
16599
|
mainContainerStyles: T,
|
|
@@ -16614,7 +16609,7 @@ const Kc = (e, t, n = {}) => {
|
|
|
16614
16609
|
ShowFullText: b,
|
|
16615
16610
|
expandable: o,
|
|
16616
16611
|
onRowClick: A,
|
|
16617
|
-
pinnedTopScrollContainerRef:
|
|
16612
|
+
pinnedTopScrollContainerRef: U,
|
|
16618
16613
|
frozenColumnWidth: He,
|
|
16619
16614
|
isLeftPinnedRowsAvailable: v,
|
|
16620
16615
|
handlePinnedTopScroll: Ve,
|
|
@@ -17274,7 +17269,7 @@ const Id = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
17274
17269
|
ShowFullText: S = !1,
|
|
17275
17270
|
detailRendererTable: T
|
|
17276
17271
|
}) => {
|
|
17277
|
-
const { dispatch: y } = pt(), I = ce(null), F = ce({}),
|
|
17272
|
+
const { dispatch: y } = pt(), I = ce(null), F = ce({}), Y = ce(null);
|
|
17278
17273
|
se(() => {
|
|
17279
17274
|
y({
|
|
17280
17275
|
type: ee.SET_MASTER_DETAIL_CONFIG,
|
|
@@ -17290,7 +17285,7 @@ const Id = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
17290
17285
|
"div",
|
|
17291
17286
|
{
|
|
17292
17287
|
className: `ia-table-enterprise-table d-flex ${N || T || J ? "" : "ia-table-padding-bottom-14"}`,
|
|
17293
|
-
ref:
|
|
17288
|
+
ref: Y,
|
|
17294
17289
|
children: [
|
|
17295
17290
|
/* @__PURE__ */ ne("div", { style: { flex: 1, minWidth: 0 }, children: [
|
|
17296
17291
|
!O && /* @__PURE__ */ f(kl, {}),
|
|
@@ -17333,7 +17328,7 @@ const Id = ({ tableInstance: e, callBackRef: t, api: n }) => (se(() => {
|
|
|
17333
17328
|
height: a,
|
|
17334
17329
|
normalScrollContainerRef: I,
|
|
17335
17330
|
ShowFullText: S,
|
|
17336
|
-
enterPriseTableRef:
|
|
17331
|
+
enterPriseTableRef: Y
|
|
17337
17332
|
}
|
|
17338
17333
|
),
|
|
17339
17334
|
N && /* @__PURE__ */ f(
|
|
@@ -19966,8 +19961,8 @@ const Wd = (e, t = {}) => {
|
|
|
19966
19961
|
}, [C, w.current, V, n]);
|
|
19967
19962
|
const k = {
|
|
19968
19963
|
...t.context || {},
|
|
19969
|
-
updateData: (
|
|
19970
|
-
t.onDataUpdate && t.onDataUpdate(
|
|
19964
|
+
updateData: (j, $, ae) => {
|
|
19965
|
+
t.onDataUpdate && t.onDataUpdate(j, $, ae);
|
|
19971
19966
|
},
|
|
19972
19967
|
tableContextRef: m
|
|
19973
19968
|
}, S = de(() => {
|
|
@@ -19976,9 +19971,9 @@ const Wd = (e, t = {}) => {
|
|
|
19976
19971
|
if (z.current)
|
|
19977
19972
|
return ($ = L.current) != null && $.infiniteCache && (z.current.infiniteCache = L.current.infiniteCache, z.current.context || (z.current.context = {}), z.current.context.infiniteCache = L.current.infiniteCache), z.current;
|
|
19978
19973
|
L.current && L.current.infiniteCache && (k.infiniteCache = L.current.infiniteCache);
|
|
19979
|
-
let
|
|
19974
|
+
let j;
|
|
19980
19975
|
if (e && Array.isArray(e))
|
|
19981
|
-
|
|
19976
|
+
j = wi.createClientSideDataSource({
|
|
19982
19977
|
data: e,
|
|
19983
19978
|
sortModel: q.current,
|
|
19984
19979
|
filterModel: O.current,
|
|
@@ -19995,7 +19990,7 @@ const Wd = (e, t = {}) => {
|
|
|
19995
19990
|
context: k
|
|
19996
19991
|
});
|
|
19997
19992
|
else if (u.current || h)
|
|
19998
|
-
|
|
19993
|
+
j = wi.createServerSideDataSource({
|
|
19999
19994
|
fetchFunc: u,
|
|
20000
19995
|
apiUrl: h,
|
|
20001
19996
|
sortModel: q.current,
|
|
@@ -20009,7 +20004,7 @@ const Wd = (e, t = {}) => {
|
|
|
20009
20004
|
});
|
|
20010
20005
|
else
|
|
20011
20006
|
return null;
|
|
20012
|
-
return z.current =
|
|
20007
|
+
return z.current = j, j;
|
|
20013
20008
|
}, [
|
|
20014
20009
|
e,
|
|
20015
20010
|
h,
|
|
@@ -20034,7 +20029,7 @@ const Wd = (e, t = {}) => {
|
|
|
20034
20029
|
}
|
|
20035
20030
|
if (L.current && L.current.datasource && (w.current || !ns(L, e)))
|
|
20036
20031
|
return;
|
|
20037
|
-
const
|
|
20032
|
+
const j = new Od({
|
|
20038
20033
|
rowHeight: i,
|
|
20039
20034
|
maxBlocksInCache: r,
|
|
20040
20035
|
overflowSize: a,
|
|
@@ -20056,9 +20051,9 @@ const Wd = (e, t = {}) => {
|
|
|
20056
20051
|
usePagination: t.isPaginationMode,
|
|
20057
20052
|
tableId: g
|
|
20058
20053
|
});
|
|
20059
|
-
L.current =
|
|
20054
|
+
L.current = j, z.current = null;
|
|
20060
20055
|
const $ = S();
|
|
20061
|
-
if ($ && (
|
|
20056
|
+
if ($ && (j.setDatasource($), !w.current)) {
|
|
20062
20057
|
const { startRow: ae, endRow: fe } = K.current || {};
|
|
20063
20058
|
ae !== 0 ? F(ae, fe) : F(0, b);
|
|
20064
20059
|
}
|
|
@@ -20080,33 +20075,33 @@ const Wd = (e, t = {}) => {
|
|
|
20080
20075
|
]), se(() => () => {
|
|
20081
20076
|
z.current && z.current.destroy && z.current.destroy(), L.current = null, z.current = null;
|
|
20082
20077
|
}, []);
|
|
20083
|
-
const y = de((
|
|
20078
|
+
const y = de((j) => {
|
|
20084
20079
|
if (!P.current || !L.current) {
|
|
20085
|
-
q.current =
|
|
20080
|
+
q.current = j;
|
|
20086
20081
|
return;
|
|
20087
20082
|
}
|
|
20088
|
-
q.current =
|
|
20089
|
-
}, []), I = de((
|
|
20083
|
+
q.current = j, K.current = { startRow: 0, endRow: b }, L.current.setSortModel(j);
|
|
20084
|
+
}, []), I = de((j, $) => {
|
|
20090
20085
|
if (!P.current || !L.current) {
|
|
20091
|
-
O.current =
|
|
20086
|
+
O.current = j;
|
|
20092
20087
|
return;
|
|
20093
20088
|
}
|
|
20094
|
-
O.current =
|
|
20095
|
-
}, []), F = de((
|
|
20096
|
-
K.current = { startRow:
|
|
20097
|
-
}, []),
|
|
20098
|
-
(
|
|
20089
|
+
O.current = j, K.current = { startRow: 0, endRow: b }, L.current.setFilterModel(j, $);
|
|
20090
|
+
}, []), F = de((j, $) => {
|
|
20091
|
+
K.current = { startRow: j, endRow: $ }, P.current && L.current && L.current.setViewportRange(j, $);
|
|
20092
|
+
}, []), Y = de(
|
|
20093
|
+
(j, $) => {
|
|
20099
20094
|
var pe, Ie, Ve;
|
|
20100
20095
|
if (!P.current || !L.current)
|
|
20101
|
-
return Array.isArray(e) ? e.slice(
|
|
20096
|
+
return Array.isArray(e) ? e.slice(j, $ + 1) : [];
|
|
20102
20097
|
const ae = K.current.startRow, fe = K.current.endRow;
|
|
20103
20098
|
let he = [];
|
|
20104
|
-
const ge =
|
|
20105
|
-
if ((ge || Math.abs(ae -
|
|
20099
|
+
const ge = j % ($ - j + 1) === 0 || ($ + 1) % ($ - j + 1) === 0;
|
|
20100
|
+
if ((ge || Math.abs(ae - j) > 5 || Math.abs(fe - $) > 5) && ge) {
|
|
20106
20101
|
const je = [];
|
|
20107
20102
|
let Fe = !1;
|
|
20108
20103
|
const He = ((Ve = (Ie = (pe = m.current) == null ? void 0 : pe.state) == null ? void 0 : Ie.data) == null ? void 0 : Ve.length) || 0;
|
|
20109
|
-
for (let Be =
|
|
20104
|
+
for (let Be = j; Be <= $; Be++) {
|
|
20110
20105
|
const Ne = L.current.getRow(Be);
|
|
20111
20106
|
Ne && Ne.data ? (je.push(Ne.data), Fe = !0) : Be < He && je.push({
|
|
20112
20107
|
id: `loading-${Be}`,
|
|
@@ -20116,9 +20111,9 @@ const Wd = (e, t = {}) => {
|
|
|
20116
20111
|
}
|
|
20117
20112
|
if (Fe)
|
|
20118
20113
|
he = je;
|
|
20119
|
-
else if (Array.isArray(e) && e.length > 0 &&
|
|
20114
|
+
else if (Array.isArray(e) && e.length > 0 && j < e.length) {
|
|
20120
20115
|
const Be = e.slice(
|
|
20121
|
-
|
|
20116
|
+
j,
|
|
20122
20117
|
Math.min($ + 1, e.length)
|
|
20123
20118
|
);
|
|
20124
20119
|
Be.length > 0 && (he = Be);
|
|
@@ -20128,14 +20123,14 @@ const Wd = (e, t = {}) => {
|
|
|
20128
20123
|
},
|
|
20129
20124
|
[e, F]
|
|
20130
20125
|
), H = de(
|
|
20131
|
-
(
|
|
20126
|
+
(j = {}) => {
|
|
20132
20127
|
if (!P.current || !L.current) return;
|
|
20133
20128
|
const {
|
|
20134
20129
|
purge: $ = !1,
|
|
20135
20130
|
partialRefresh: ae = !1,
|
|
20136
20131
|
preserveFields: fe = [],
|
|
20137
20132
|
userInitiated: he = !1
|
|
20138
|
-
} =
|
|
20133
|
+
} = j, ge = { ...K.current }, pe = V > 2e4;
|
|
20139
20134
|
$ ? L.current.purgeCache() : ae ? L.current.refreshCachePartial(fe) : L.current.refreshCache(), setTimeout(
|
|
20140
20135
|
() => {
|
|
20141
20136
|
L.current && $ && !he && ((K.current.startRow !== ge.startRow || K.current.endRow !== ge.endRow) && (K.current = ge, L.current.setViewportRange(
|
|
@@ -20150,27 +20145,27 @@ const Wd = (e, t = {}) => {
|
|
|
20150
20145
|
);
|
|
20151
20146
|
},
|
|
20152
20147
|
[V]
|
|
20153
|
-
), N = de((
|
|
20154
|
-
!P.current || !L.current || (
|
|
20155
|
-
}, []), J = de((
|
|
20156
|
-
!P.current || !L.current || L.current.setCachePersistence(
|
|
20148
|
+
), N = de((j) => {
|
|
20149
|
+
!P.current || !L.current || (j === Kt.PURGE_STRATEGY_LRU || j === Kt.PURGE_STRATEGY_FURTHEST_FROM_VIEWPORT || j === Kt.PURGE_STRATEGY_MEMORY_OPTIMIZED) && L.current.setPurgeStrategy(j);
|
|
20150
|
+
}, []), J = de((j, $) => {
|
|
20151
|
+
!P.current || !L.current || L.current.setCachePersistence(j, $);
|
|
20157
20152
|
}, []), Q = de(() => {
|
|
20158
20153
|
!P.current || !L.current || L.current.clearPersistedCache();
|
|
20159
20154
|
}, []), X = de(() => {
|
|
20160
20155
|
var $, ae, fe, he, ge;
|
|
20161
20156
|
if (!P.current || !L.current) return null;
|
|
20162
|
-
const
|
|
20163
|
-
return !
|
|
20157
|
+
const j = L.current.getCacheState();
|
|
20158
|
+
return !j || !j.cache ? {
|
|
20164
20159
|
cache: L.current.infiniteCache,
|
|
20165
20160
|
rowCount: ((fe = (ae = ($ = m.current) == null ? void 0 : $.state) == null ? void 0 : ae.data) == null ? void 0 : fe.length) || 0,
|
|
20166
20161
|
lastRowKnown: _,
|
|
20167
20162
|
blockCount: ((ge = (he = L.current.infiniteCache) == null ? void 0 : he.getBlockCount) == null ? void 0 : ge.call(he)) || 0,
|
|
20168
20163
|
status: L.current.infiniteCache ? "active" : "inactive"
|
|
20169
|
-
} :
|
|
20170
|
-
}, [_]),
|
|
20171
|
-
(
|
|
20164
|
+
} : j;
|
|
20165
|
+
}, [_]), U = de(
|
|
20166
|
+
(j, $ = !1) => {
|
|
20172
20167
|
var fe, he;
|
|
20173
|
-
if (!
|
|
20168
|
+
if (!j || typeof j.getRows != "function")
|
|
20174
20169
|
return console.error(
|
|
20175
20170
|
"Invalid datasource: must provide an object with a getRows method"
|
|
20176
20171
|
), null;
|
|
@@ -20180,7 +20175,7 @@ const Wd = (e, t = {}) => {
|
|
|
20180
20175
|
});
|
|
20181
20176
|
const ae = {
|
|
20182
20177
|
// Core properties
|
|
20183
|
-
_originalDatasource:
|
|
20178
|
+
_originalDatasource: j,
|
|
20184
20179
|
_loadingBlocks: {},
|
|
20185
20180
|
_pendingRequests: {},
|
|
20186
20181
|
_isDestroyed: !1,
|
|
@@ -20261,14 +20256,14 @@ const Wd = (e, t = {}) => {
|
|
|
20261
20256
|
cacheReady: E,
|
|
20262
20257
|
shouldUseCacheRef: P,
|
|
20263
20258
|
// Data access methods
|
|
20264
|
-
getRows:
|
|
20259
|
+
getRows: Y,
|
|
20265
20260
|
// Cache operations
|
|
20266
20261
|
setVisibleRange: F,
|
|
20267
20262
|
setSortModel: y,
|
|
20268
20263
|
setFilterModel: I,
|
|
20269
20264
|
refreshCache: H,
|
|
20270
20265
|
// Server-side data source management
|
|
20271
|
-
setServerSideDataSource:
|
|
20266
|
+
setServerSideDataSource: U,
|
|
20272
20267
|
// Configuration methods
|
|
20273
20268
|
setPurgeStrategy: N,
|
|
20274
20269
|
setPersistence: J,
|
|
@@ -20282,14 +20277,14 @@ const Wd = (e, t = {}) => {
|
|
|
20282
20277
|
E,
|
|
20283
20278
|
P,
|
|
20284
20279
|
// Data access methods
|
|
20285
|
-
|
|
20280
|
+
Y,
|
|
20286
20281
|
// Cache operations
|
|
20287
20282
|
F,
|
|
20288
20283
|
y,
|
|
20289
20284
|
I,
|
|
20290
20285
|
H,
|
|
20291
20286
|
// Server-side data source management
|
|
20292
|
-
|
|
20287
|
+
U,
|
|
20293
20288
|
// Configuration methods
|
|
20294
20289
|
N,
|
|
20295
20290
|
J,
|
|
@@ -20730,10 +20725,10 @@ const Wd = (e, t = {}) => {
|
|
|
20730
20725
|
if (S && V && V.length > 0) {
|
|
20731
20726
|
const I = new Set(V.map(String));
|
|
20732
20727
|
for (let F = 0; F < S.length; F++) {
|
|
20733
|
-
const
|
|
20734
|
-
if (!
|
|
20735
|
-
const H =
|
|
20736
|
-
if (H !== void 0 && I.has(String(H)) && (k.push(
|
|
20728
|
+
const Y = S[F];
|
|
20729
|
+
if (!Y) continue;
|
|
20730
|
+
const H = Y[P] || Y.id;
|
|
20731
|
+
if (H !== void 0 && I.has(String(H)) && (k.push(Y), k.length === V.length))
|
|
20737
20732
|
break;
|
|
20738
20733
|
}
|
|
20739
20734
|
}
|
|
@@ -21436,7 +21431,7 @@ const Wd = (e, t = {}) => {
|
|
|
21436
21431
|
`[data-row="${m}"][data-pinned="${T}"][data-field="${te(k.colDef)}"]`
|
|
21437
21432
|
), P = S.getAttribute("data-col"));
|
|
21438
21433
|
let y = O[m], I = y == null ? void 0 : y[q];
|
|
21439
|
-
const F = te(k),
|
|
21434
|
+
const F = te(k), Y = y[F];
|
|
21440
21435
|
if (!y)
|
|
21441
21436
|
return console.warn(`Row not found at index: ${m}`), !1;
|
|
21442
21437
|
if (S) {
|
|
@@ -21464,7 +21459,7 @@ const Wd = (e, t = {}) => {
|
|
|
21464
21459
|
N,
|
|
21465
21460
|
k,
|
|
21466
21461
|
y,
|
|
21467
|
-
|
|
21462
|
+
Y
|
|
21468
21463
|
), S.classList.add("ia-table-body-cell-selected"), !0;
|
|
21469
21464
|
} else
|
|
21470
21465
|
return window.iaTableSelectedCell = {
|
|
@@ -21472,7 +21467,7 @@ const Wd = (e, t = {}) => {
|
|
|
21472
21467
|
colIndex: P,
|
|
21473
21468
|
rowId: I,
|
|
21474
21469
|
field: F,
|
|
21475
|
-
cellValue:
|
|
21470
|
+
cellValue: Y,
|
|
21476
21471
|
rowData: y,
|
|
21477
21472
|
column: k
|
|
21478
21473
|
}, (W = e.current) != null && W.dispatch && e.current.dispatch({
|
|
@@ -21791,7 +21786,7 @@ const Wd = (e, t = {}) => {
|
|
|
21791
21786
|
},
|
|
21792
21787
|
rowDragManaged: I = !1,
|
|
21793
21788
|
hidePaginationPageSizeSelector: F = !0,
|
|
21794
|
-
purgeClosedRowNodes:
|
|
21789
|
+
purgeClosedRowNodes: Y = !1,
|
|
21795
21790
|
detailRendererTable: H = !1,
|
|
21796
21791
|
smartGridMenuOptions: N = {
|
|
21797
21792
|
withColumMenu: !0,
|
|
@@ -21806,9 +21801,9 @@ const Wd = (e, t = {}) => {
|
|
|
21806
21801
|
isSaveViewEnabled: J = !1,
|
|
21807
21802
|
isSavingViewLoading: Q = !1,
|
|
21808
21803
|
maxSavedViews: X = 50,
|
|
21809
|
-
deleteViewPromptText:
|
|
21804
|
+
deleteViewPromptText: U = "Deleted can not be recover!.",
|
|
21810
21805
|
savedViewsOptions: Z = [],
|
|
21811
|
-
handleSetDefaultView:
|
|
21806
|
+
handleSetDefaultView: j = null,
|
|
21812
21807
|
handleSavedViewClick: $ = null,
|
|
21813
21808
|
handleEditSaveView: ae = null,
|
|
21814
21809
|
handleSaveAndApply: fe = null,
|
|
@@ -22158,13 +22153,13 @@ const Wd = (e, t = {}) => {
|
|
|
22158
22153
|
downloadExcelHandler: Ne,
|
|
22159
22154
|
downloadCSVHandler: Ke,
|
|
22160
22155
|
copyToClipboardHandler: Le,
|
|
22161
|
-
handleSetDefaultView:
|
|
22156
|
+
handleSetDefaultView: j,
|
|
22162
22157
|
handleSavedViewClick: $,
|
|
22163
22158
|
handleEditSaveView: ae,
|
|
22164
22159
|
handleSaveAndApply: fe,
|
|
22165
22160
|
handleDeleteViewClick: he,
|
|
22166
22161
|
maxSavedViews: X,
|
|
22167
|
-
deleteViewPromptText:
|
|
22162
|
+
deleteViewPromptText: U,
|
|
22168
22163
|
onSelectionChanged: C,
|
|
22169
22164
|
onRowDragStart: w,
|
|
22170
22165
|
onRowDragEnd: b,
|
|
@@ -22411,7 +22406,7 @@ const Wd = (e, t = {}) => {
|
|
|
22411
22406
|
getRowStyle: l,
|
|
22412
22407
|
tableInstance: Te,
|
|
22413
22408
|
smartGridMenuOptions: N,
|
|
22414
|
-
purgeClosedRowNodes:
|
|
22409
|
+
purgeClosedRowNodes: Y,
|
|
22415
22410
|
detailRendererTable: H,
|
|
22416
22411
|
isSaveViewEnabled: J,
|
|
22417
22412
|
isSavingViewLoading: Q,
|