@jielga/tmdatagrid 2.0.0-beta.15 → 2.0.0-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -321,28 +321,28 @@ function zt(e = "Details") {
321
321
  };
322
322
  }
323
323
  var Bt = {
324
- tableWrapper: "_tableWrapper_8hvcb_2",
325
- scrollContainer: "_scrollContainer_8hvcb_17",
326
- grid: "_grid_8hvcb_29",
327
- tabGuard: "_tabGuard_8hvcb_44",
328
- headerRow: "_headerRow_8hvcb_54",
329
- bodyRow: "_bodyRow_8hvcb_63",
330
- bodyCell: "_bodyCell_8hvcb_137",
331
- cellContent: "_cellContent_8hvcb_135",
332
- cellEditor: "_cellEditor_8hvcb_244",
333
- cellEditorField: "_cellEditorField_8hvcb_254",
334
- cellEditorActions: "_cellEditorActions_8hvcb_262",
335
- detailsCell: "_detailsCell_8hvcb_313",
336
- messageRow: "_messageRow_8hvcb_23",
337
- entryBlock: "_entryBlock_8hvcb_365",
338
- entryRow: "_entryRow_8hvcb_374",
339
- pinnedTopBlock: "_pinnedTopBlock_8hvcb_387",
340
- pinnedBottomBlock: "_pinnedBottomBlock_8hvcb_400",
341
- entryCell: "_entryCell_8hvcb_413",
342
- rowStateIndicator: "_rowStateIndicator_8hvcb_449",
343
- matchHighlight: "_matchHighlight_8hvcb_475",
344
- summaryRow: "_summaryRow_8hvcb_496",
345
- summaryCell: "_summaryCell_8hvcb_506"
324
+ tableWrapper: "_tableWrapper_bdal6_2",
325
+ scrollContainer: "_scrollContainer_bdal6_17",
326
+ grid: "_grid_bdal6_29",
327
+ tabGuard: "_tabGuard_bdal6_44",
328
+ headerRow: "_headerRow_bdal6_54",
329
+ bodyRow: "_bodyRow_bdal6_63",
330
+ bodyCell: "_bodyCell_bdal6_137",
331
+ cellContent: "_cellContent_bdal6_135",
332
+ cellEditor: "_cellEditor_bdal6_244",
333
+ cellEditorField: "_cellEditorField_bdal6_254",
334
+ cellEditorActions: "_cellEditorActions_bdal6_262",
335
+ entryCell: "_entryCell_bdal6_275",
336
+ detailsCell: "_detailsCell_bdal6_317",
337
+ messageRow: "_messageRow_bdal6_23",
338
+ entryBlock: "_entryBlock_bdal6_369",
339
+ entryRow: "_entryRow_bdal6_378",
340
+ pinnedTopBlock: "_pinnedTopBlock_bdal6_391",
341
+ pinnedBottomBlock: "_pinnedBottomBlock_bdal6_404",
342
+ rowStateIndicator: "_rowStateIndicator_bdal6_453",
343
+ matchHighlight: "_matchHighlight_bdal6_479",
344
+ summaryRow: "_summaryRow_bdal6_500",
345
+ summaryCell: "_summaryCell_bdal6_510"
346
346
  }, Vt = {
347
347
  active: null,
348
348
  openRowIds: [],
@@ -1140,40 +1140,40 @@ function rn(t) {
1140
1140
  ]
1141
1141
  }), n[51] = u, n[52] = h, n[53] = e, n[54] = g) : g = n[54], g;
1142
1142
  }
1143
- let e;
1144
- n[55] !== i || n[56] !== c ? (e = () => void i.commit(c), n[55] = i, n[56] = c, n[57] = e) : e = n[57];
1145
- let t;
1146
- n[58] === Symbol.for("react.memo_cache_sentinel") ? (t = /* @__PURE__ */ X(B, {
1143
+ let e = E ?? o.confirmNewRow, t = w ? "red" : "green", r;
1144
+ n[55] !== i || n[56] !== c ? (r = () => void i.commit(c), n[55] = i, n[56] = c, n[57] = r) : r = n[57];
1145
+ let a;
1146
+ n[58] === Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ X(B, {
1147
1147
  size: 16,
1148
1148
  stroke: 2
1149
- }), n[58] = t) : t = n[58];
1150
- let r;
1151
- n[59] !== o.confirmNewRow || n[60] !== c || n[61] !== e || n[62] !== s ? (r = /* @__PURE__ */ X(l, {
1149
+ }), n[58] = a) : a = n[58];
1150
+ let u;
1151
+ n[59] !== o.confirmNewRow || n[60] !== c || n[61] !== t || n[62] !== r || n[63] !== s ? (u = /* @__PURE__ */ X(l, {
1152
1152
  variant: "subtle",
1153
- color: "green",
1153
+ color: t,
1154
1154
  size: "sm",
1155
1155
  tabIndex: s,
1156
1156
  "aria-label": o.confirmNewRow,
1157
1157
  "data-dg-part": "confirm-new-row",
1158
1158
  "data-row-id": c,
1159
- onClick: e,
1160
- children: t
1161
- }), n[59] = o.confirmNewRow, n[60] = c, n[61] = e, n[62] = s, n[63] = r) : r = n[63];
1162
- let a;
1163
- n[64] !== o.confirmNewRow || n[65] !== r ? (a = /* @__PURE__ */ X(k, {
1164
- label: o.confirmNewRow,
1165
- withArrow: !0,
1166
- children: r
1167
- }), n[64] = o.confirmNewRow, n[65] = r, n[66] = a) : a = n[66];
1168
- let u;
1169
- n[67] !== i || n[68] !== c ? (u = () => i.cancel(c), n[67] = i, n[68] = c, n[69] = u) : u = n[69];
1159
+ onClick: r,
1160
+ children: a
1161
+ }), n[59] = o.confirmNewRow, n[60] = c, n[61] = t, n[62] = r, n[63] = s, n[64] = u) : u = n[64];
1170
1162
  let d;
1171
- n[70] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ X(Y, {
1163
+ n[65] !== u || n[66] !== e ? (d = /* @__PURE__ */ X(k, {
1164
+ label: e,
1165
+ withArrow: !0,
1166
+ children: u
1167
+ }), n[65] = u, n[66] = e, n[67] = d) : d = n[67];
1168
+ let f;
1169
+ n[68] !== i || n[69] !== c ? (f = () => i.cancel(c), n[68] = i, n[69] = c, n[70] = f) : f = n[70];
1170
+ let p;
1171
+ n[71] === Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ X(Y, {
1172
1172
  size: 16,
1173
1173
  stroke: 1.6
1174
- }), n[70] = d) : d = n[70];
1175
- let f;
1176
- n[71] !== o.discardNewRow || n[72] !== c || n[73] !== u || n[74] !== s ? (f = /* @__PURE__ */ X(l, {
1174
+ }), n[71] = p) : p = n[71];
1175
+ let h;
1176
+ n[72] !== o.discardNewRow || n[73] !== c || n[74] !== f || n[75] !== s ? (h = /* @__PURE__ */ X(l, {
1177
1177
  variant: "subtle",
1178
1178
  color: "gray",
1179
1179
  size: "sm",
@@ -1181,41 +1181,41 @@ function rn(t) {
1181
1181
  "aria-label": o.discardNewRow,
1182
1182
  "data-dg-part": "discard-new-row",
1183
1183
  "data-row-id": c,
1184
- onClick: u,
1185
- children: d
1186
- }), n[71] = o.discardNewRow, n[72] = c, n[73] = u, n[74] = s, n[75] = f) : f = n[75];
1187
- let p;
1188
- n[76] !== o.discardNewRow || n[77] !== f ? (p = /* @__PURE__ */ X(k, {
1184
+ onClick: f,
1185
+ children: p
1186
+ }), n[72] = o.discardNewRow, n[73] = c, n[74] = f, n[75] = s, n[76] = h) : h = n[76];
1187
+ let g;
1188
+ n[77] !== o.discardNewRow || n[78] !== h ? (g = /* @__PURE__ */ X(k, {
1189
1189
  label: o.discardNewRow,
1190
1190
  withArrow: !0,
1191
- children: f
1192
- }), n[76] = o.discardNewRow, n[77] = f, n[78] = p) : p = n[78];
1193
- let h;
1194
- return n[79] !== a || n[80] !== p ? (h = /* @__PURE__ */ Z(m, {
1191
+ children: h
1192
+ }), n[77] = o.discardNewRow, n[78] = h, n[79] = g) : g = n[79];
1193
+ let _;
1194
+ return n[80] !== d || n[81] !== g ? (_ = /* @__PURE__ */ Z(m, {
1195
1195
  gap: 0,
1196
1196
  wrap: "nowrap",
1197
- children: [a, p]
1198
- }), n[79] = a, n[80] = p, n[81] = h) : h = n[81], h;
1197
+ children: [d, g]
1198
+ }), n[80] = d, n[81] = g, n[82] = _) : _ = n[82], _;
1199
1199
  }
1200
1200
  if (C) {
1201
1201
  let e;
1202
- n[82] !== o.rowStateDeleted || n[83] !== c ? (e = /* @__PURE__ */ X(nn, {
1202
+ n[83] !== o.rowStateDeleted || n[84] !== c ? (e = /* @__PURE__ */ X(nn, {
1203
1203
  state: "deleted",
1204
1204
  rowId: c,
1205
1205
  label: o.rowStateDeleted,
1206
1206
  error: null
1207
- }), n[82] = o.rowStateDeleted, n[83] = c, n[84] = e) : e = n[84];
1207
+ }), n[83] = o.rowStateDeleted, n[84] = c, n[85] = e) : e = n[85];
1208
1208
  let t;
1209
- n[85] !== i || n[86] !== c ? (t = (e) => {
1209
+ n[86] !== i || n[87] !== c ? (t = (e) => {
1210
1210
  e.stopPropagation(), i.restoreRow(c);
1211
- }, n[85] = i, n[86] = c, n[87] = t) : t = n[87];
1211
+ }, n[86] = i, n[87] = c, n[88] = t) : t = n[88];
1212
1212
  let r;
1213
- n[88] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ X(P, {
1213
+ n[89] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ X(P, {
1214
1214
  size: 16,
1215
1215
  stroke: 1.6
1216
- }), n[88] = r) : r = n[88];
1216
+ }), n[89] = r) : r = n[89];
1217
1217
  let a;
1218
- n[89] !== o.restoreRow || n[90] !== c || n[91] !== t || n[92] !== s ? (a = /* @__PURE__ */ X(l, {
1218
+ n[90] !== o.restoreRow || n[91] !== c || n[92] !== t || n[93] !== s ? (a = /* @__PURE__ */ X(l, {
1219
1219
  variant: "subtle",
1220
1220
  color: "gray",
1221
1221
  size: "sm",
@@ -1225,47 +1225,47 @@ function rn(t) {
1225
1225
  "data-row-id": c,
1226
1226
  onClick: t,
1227
1227
  children: r
1228
- }), n[89] = o.restoreRow, n[90] = c, n[91] = t, n[92] = s, n[93] = a) : a = n[93];
1228
+ }), n[90] = o.restoreRow, n[91] = c, n[92] = t, n[93] = s, n[94] = a) : a = n[94];
1229
1229
  let u;
1230
- n[94] !== o.restoreRow || n[95] !== a ? (u = /* @__PURE__ */ X(k, {
1230
+ n[95] !== o.restoreRow || n[96] !== a ? (u = /* @__PURE__ */ X(k, {
1231
1231
  label: o.restoreRow,
1232
1232
  withArrow: !0,
1233
1233
  children: a
1234
- }), n[94] = o.restoreRow, n[95] = a, n[96] = u) : u = n[96];
1234
+ }), n[95] = o.restoreRow, n[96] = a, n[97] = u) : u = n[97];
1235
1235
  let d;
1236
- return n[97] !== u || n[98] !== e ? (d = /* @__PURE__ */ Z(m, {
1236
+ return n[98] !== u || n[99] !== e ? (d = /* @__PURE__ */ Z(m, {
1237
1237
  gap: 0,
1238
1238
  wrap: "nowrap",
1239
1239
  children: [e, u]
1240
- }), n[97] = u, n[98] = e, n[99] = d) : d = n[99], d;
1240
+ }), n[98] = u, n[99] = e, n[100] = d) : d = n[100], d;
1241
1241
  }
1242
1242
  if (!i.canEditRow(r)) return null;
1243
1243
  if (p?.isSubmitting) {
1244
1244
  let e;
1245
- return n[100] === o.loading ? e = n[101] : (e = /* @__PURE__ */ X(g, {
1245
+ return n[101] === o.loading ? e = n[102] : (e = /* @__PURE__ */ X(g, {
1246
1246
  size: "xs",
1247
1247
  "aria-label": o.loading
1248
- }), n[100] = o.loading, n[101] = e), e;
1248
+ }), n[101] = o.loading, n[102] = e), e;
1249
1249
  }
1250
1250
  if (x) {
1251
1251
  let e;
1252
- n[102] !== o.rowStateEdited || n[103] !== E || n[104] !== c ? (e = /* @__PURE__ */ X(nn, {
1252
+ n[103] !== o.rowStateEdited || n[104] !== E || n[105] !== c ? (e = /* @__PURE__ */ X(nn, {
1253
1253
  state: "edited",
1254
1254
  rowId: c,
1255
1255
  label: o.rowStateEdited,
1256
1256
  error: E
1257
- }), n[102] = o.rowStateEdited, n[103] = E, n[104] = c, n[105] = e) : e = n[105];
1257
+ }), n[103] = o.rowStateEdited, n[104] = E, n[105] = c, n[106] = e) : e = n[106];
1258
1258
  let t;
1259
- n[106] !== i || n[107] !== c ? (t = (e) => {
1259
+ n[107] !== i || n[108] !== c ? (t = (e) => {
1260
1260
  e.stopPropagation(), i.cancel(c);
1261
- }, n[106] = i, n[107] = c, n[108] = t) : t = n[108];
1261
+ }, n[107] = i, n[108] = c, n[109] = t) : t = n[109];
1262
1262
  let r;
1263
- n[109] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ X(P, {
1263
+ n[110] === Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ X(P, {
1264
1264
  size: 16,
1265
1265
  stroke: 1.6
1266
- }), n[109] = r) : r = n[109];
1266
+ }), n[110] = r) : r = n[110];
1267
1267
  let a;
1268
- n[110] !== o.revertRow || n[111] !== c || n[112] !== t || n[113] !== s ? (a = /* @__PURE__ */ X(l, {
1268
+ n[111] !== o.revertRow || n[112] !== c || n[113] !== t || n[114] !== s ? (a = /* @__PURE__ */ X(l, {
1269
1269
  variant: "subtle",
1270
1270
  color: "gray",
1271
1271
  size: "sm",
@@ -1275,23 +1275,23 @@ function rn(t) {
1275
1275
  "data-row-id": c,
1276
1276
  onClick: t,
1277
1277
  children: r
1278
- }), n[110] = o.revertRow, n[111] = c, n[112] = t, n[113] = s, n[114] = a) : a = n[114];
1278
+ }), n[111] = o.revertRow, n[112] = c, n[113] = t, n[114] = s, n[115] = a) : a = n[115];
1279
1279
  let u;
1280
- n[115] !== o.revertRow || n[116] !== a ? (u = /* @__PURE__ */ X(k, {
1280
+ n[116] !== o.revertRow || n[117] !== a ? (u = /* @__PURE__ */ X(k, {
1281
1281
  label: o.revertRow,
1282
1282
  withArrow: !0,
1283
1283
  children: a
1284
- }), n[115] = o.revertRow, n[116] = a, n[117] = u) : u = n[117];
1284
+ }), n[116] = o.revertRow, n[117] = a, n[118] = u) : u = n[118];
1285
1285
  let d;
1286
- return n[118] !== u || n[119] !== e ? (d = /* @__PURE__ */ Z(m, {
1286
+ return n[119] !== u || n[120] !== e ? (d = /* @__PURE__ */ Z(m, {
1287
1287
  gap: 0,
1288
1288
  wrap: "nowrap",
1289
1289
  children: [e, u]
1290
- }), n[118] = u, n[119] = e, n[120] = d) : d = n[120], d;
1290
+ }), n[119] = u, n[120] = e, n[121] = d) : d = n[121], d;
1291
1291
  }
1292
1292
  if (!d) {
1293
1293
  let e;
1294
- n[121] !== i || n[122] !== a.editMode || n[123] !== o || n[124] !== c || n[125] !== s ? (e = a.editMode === "row" && /* @__PURE__ */ X(k, {
1294
+ n[122] !== i || n[123] !== a.editMode || n[124] !== o || n[125] !== c || n[126] !== s ? (e = a.editMode === "row" && /* @__PURE__ */ X(k, {
1295
1295
  label: o.editRow,
1296
1296
  withArrow: !0,
1297
1297
  children: /* @__PURE__ */ X(l, {
@@ -1313,25 +1313,25 @@ function rn(t) {
1313
1313
  stroke: 1.6
1314
1314
  })
1315
1315
  })
1316
- }), n[121] = i, n[122] = a.editMode, n[123] = o, n[124] = c, n[125] = s, n[126] = e) : e = n[126];
1316
+ }), n[122] = i, n[123] = a.editMode, n[124] = o, n[125] = c, n[126] = s, n[127] = e) : e = n[127];
1317
1317
  let t;
1318
- return n[127] !== e || n[128] !== O ? (t = /* @__PURE__ */ Z(m, {
1318
+ return n[128] !== e || n[129] !== O ? (t = /* @__PURE__ */ Z(m, {
1319
1319
  gap: 0,
1320
1320
  wrap: "nowrap",
1321
1321
  children: [e, O]
1322
- }), n[127] = e, n[128] = O, n[129] = t) : t = n[129], t;
1322
+ }), n[128] = e, n[129] = O, n[130] = t) : t = n[130], t;
1323
1323
  }
1324
1324
  let A = w ? "red" : "green", j;
1325
- n[130] !== i || n[131] !== c ? (j = (e) => {
1325
+ n[131] !== i || n[132] !== c ? (j = (e) => {
1326
1326
  e.stopPropagation(), i.commit(c);
1327
- }, n[130] = i, n[131] = c, n[132] = j) : j = n[132];
1327
+ }, n[131] = i, n[132] = c, n[133] = j) : j = n[133];
1328
1328
  let N;
1329
- n[133] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ X(B, {
1329
+ n[134] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ X(B, {
1330
1330
  size: 16,
1331
1331
  stroke: 2
1332
- }), n[133] = N) : N = n[133];
1332
+ }), n[134] = N) : N = n[134];
1333
1333
  let ee;
1334
- n[134] !== o.saveRow || n[135] !== c || n[136] !== j || n[137] !== A ? (ee = /* @__PURE__ */ X(l, {
1334
+ n[135] !== o.saveRow || n[136] !== c || n[137] !== j || n[138] !== A ? (ee = /* @__PURE__ */ X(l, {
1335
1335
  variant: "subtle",
1336
1336
  color: A,
1337
1337
  size: "sm",
@@ -1341,28 +1341,24 @@ function rn(t) {
1341
1341
  "data-row-id": c,
1342
1342
  onClick: j,
1343
1343
  children: N
1344
- }), n[134] = o.saveRow, n[135] = c, n[136] = j, n[137] = A, n[138] = ee) : ee = n[138];
1345
- let F = ee, I;
1346
- n[139] !== o.saveRow || n[140] !== E || n[141] !== F ? (I = E === null ? /* @__PURE__ */ X(k, {
1347
- label: o.saveRow,
1348
- withArrow: !0,
1349
- children: F
1350
- }) : /* @__PURE__ */ X(k, {
1351
- label: E,
1344
+ }), n[135] = o.saveRow, n[136] = c, n[137] = j, n[138] = A, n[139] = ee) : ee = n[139];
1345
+ let F = ee, I = E ?? o.saveRow, L;
1346
+ n[140] !== F || n[141] !== I ? (L = /* @__PURE__ */ X(k, {
1347
+ label: I,
1352
1348
  withArrow: !0,
1353
1349
  children: F
1354
- }), n[139] = o.saveRow, n[140] = E, n[141] = F, n[142] = I) : I = n[142];
1355
- let L;
1356
- n[143] !== i || n[144] !== c ? (L = (e) => {
1357
- e.stopPropagation(), i.cancel(c);
1358
- }, n[143] = i, n[144] = c, n[145] = L) : L = n[145];
1350
+ }), n[140] = F, n[141] = I, n[142] = L) : L = n[142];
1359
1351
  let R;
1360
- n[146] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ X(Y, {
1352
+ n[143] !== i || n[144] !== c ? (R = (e) => {
1353
+ e.stopPropagation(), i.cancel(c);
1354
+ }, n[143] = i, n[144] = c, n[145] = R) : R = n[145];
1355
+ let z;
1356
+ n[146] === Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ X(Y, {
1361
1357
  size: 16,
1362
1358
  stroke: 1.6
1363
- }), n[146] = R) : R = n[146];
1364
- let z;
1365
- n[147] !== o.cancelRowEdit || n[148] !== c || n[149] !== L ? (z = /* @__PURE__ */ X(l, {
1359
+ }), n[146] = z) : z = n[146];
1360
+ let V;
1361
+ n[147] !== o.cancelRowEdit || n[148] !== c || n[149] !== R ? (V = /* @__PURE__ */ X(l, {
1366
1362
  variant: "subtle",
1367
1363
  color: "gray",
1368
1364
  size: "sm",
@@ -1370,21 +1366,21 @@ function rn(t) {
1370
1366
  "aria-label": o.cancelRowEdit,
1371
1367
  "data-dg-part": "cancel-row",
1372
1368
  "data-row-id": c,
1373
- onClick: L,
1374
- children: R
1375
- }), n[147] = o.cancelRowEdit, n[148] = c, n[149] = L, n[150] = z) : z = n[150];
1376
- let V;
1377
- n[151] !== o.cancelRowEdit || n[152] !== z ? (V = /* @__PURE__ */ X(k, {
1378
- label: o.cancelRowEdit,
1379
- withArrow: !0,
1369
+ onClick: R,
1380
1370
  children: z
1381
- }), n[151] = o.cancelRowEdit, n[152] = z, n[153] = V) : V = n[153];
1371
+ }), n[147] = o.cancelRowEdit, n[148] = c, n[149] = R, n[150] = V) : V = n[150];
1382
1372
  let H;
1383
- return n[154] !== I || n[155] !== V ? (H = /* @__PURE__ */ Z(m, {
1373
+ n[151] !== o.cancelRowEdit || n[152] !== V ? (H = /* @__PURE__ */ X(k, {
1374
+ label: o.cancelRowEdit,
1375
+ withArrow: !0,
1376
+ children: V
1377
+ }), n[151] = o.cancelRowEdit, n[152] = V, n[153] = H) : H = n[153];
1378
+ let U;
1379
+ return n[154] !== L || n[155] !== H ? (U = /* @__PURE__ */ Z(m, {
1384
1380
  gap: 0,
1385
1381
  wrap: "nowrap",
1386
- children: [I, V]
1387
- }), n[154] = I, n[155] = V, n[156] = H) : H = n[156], H;
1382
+ children: [L, H]
1383
+ }), n[154] = L, n[155] = H, n[156] = U) : U = n[156], U;
1388
1384
  }
1389
1385
  function an(e = "Edit", t = !1) {
1390
1386
  let n = t ? 88 : 64;
@@ -5564,7 +5560,67 @@ function is(e, t, n) {
5564
5560
  return n.isColumnEditable(t) ? Vn(t, e) : !1;
5565
5561
  }
5566
5562
  function as(t) {
5567
- let n = e(36), { orderedColumns: r, layoutFor: i, rowHeight: o } = t, { table: c, edit: l, features: u } = $(), d = M(l.store, ds), f = M(l.store, us), p = s(null), m = s(null), h = s(null), g;
5563
+ let n = e(44), { entryRow: r, column: i, cell: a, committed: o, layout: s, rowHeight: c, pinnedZ: l } = t, { edit: u } = $(), d;
5564
+ n[0] === i ? d = n[1] : (d = Wt(i), n[0] = i, n[1] = d);
5565
+ let f = d, p;
5566
+ n[2] !== r || n[3] !== f ? (p = (e) => {
5567
+ if (f === null) return !1;
5568
+ let t = e.rows[r.id];
5569
+ return t !== void 0 && t.errorFields.includes(f);
5570
+ }, n[2] = r, n[3] = f, n[4] = p) : p = n[4];
5571
+ let m = M(u.store, p), h;
5572
+ n[5] !== a || n[6] !== i || n[7] !== u || n[8] !== r ? (h = a !== void 0 && is(r, i, u), n[5] = a, n[6] = i, n[7] = u, n[8] = r, n[9] = h) : h = n[9];
5573
+ let g = h, _ = i.id, v;
5574
+ n[10] === i ? v = n[11] : (v = Hn(i), n[10] = i, n[11] = v);
5575
+ let y;
5576
+ n[12] === i.id ? y = n[13] : (y = Un(i.id), n[12] = i.id, n[13] = y);
5577
+ let b = m || void 0, x;
5578
+ n[14] !== i.id || n[15] !== o || n[16] !== u || n[17] !== g || n[18] !== r ? (x = o && g ? () => u.begin({
5579
+ rowId: r.id,
5580
+ columnId: i.id
5581
+ }) : void 0, n[14] = i.id, n[15] = o, n[16] = u, n[17] = g, n[18] = r, n[19] = x) : x = n[19];
5582
+ let S = s.isBoundary && s.pinnedAt === "left" ? $a.stickyLeft : "", C = s.isBoundary && s.pinnedAt === "right" ? $a.stickyRight : "", w;
5583
+ n[20] !== C || n[21] !== S ? (w = [
5584
+ Bt.entryCell,
5585
+ S,
5586
+ C
5587
+ ].filter(Boolean), n[20] = C, n[21] = S, n[22] = w) : w = n[22];
5588
+ let T = w.join(" "), E = s.pinnedAt === "left" ? s.offset : void 0, D = s.pinnedAt === "right" ? s.offset : void 0, O = s.pinnedAt ? "sticky" : void 0, k = s.pinnedAt ? l : void 0, A;
5589
+ n[23] !== c || n[24] !== E || n[25] !== D || n[26] !== O || n[27] !== k ? (A = {
5590
+ minHeight: c,
5591
+ left: E,
5592
+ right: D,
5593
+ position: O,
5594
+ zIndex: k
5595
+ }, n[23] = c, n[24] = E, n[25] = D, n[26] = O, n[27] = k, n[28] = A) : A = n[28];
5596
+ let j;
5597
+ n[29] !== a || n[30] !== i.id || n[31] !== o || n[32] !== g || n[33] !== r ? (j = a !== void 0 && i.id === "__edit__" ? Ie(a.column.columnDef.cell, a.getContext()) : o && a !== void 0 ? /* @__PURE__ */ X("span", {
5598
+ className: Bt.cellContent,
5599
+ children: Ie(a.column.columnDef.cell, a.getContext())
5600
+ }) : g && a !== void 0 ? /* @__PURE__ */ X(rs, {
5601
+ cell: a,
5602
+ row: r,
5603
+ takeSeedText: ss,
5604
+ onClose: os,
5605
+ inEntryBlock: !0
5606
+ }) : null, n[29] = a, n[30] = i.id, n[31] = o, n[32] = g, n[33] = r, n[34] = j) : j = n[34];
5607
+ let N;
5608
+ return n[35] !== i.id || n[36] !== T || n[37] !== A || n[38] !== j || n[39] !== v || n[40] !== y || n[41] !== b || n[42] !== x ? (N = /* @__PURE__ */ X("div", {
5609
+ role: "cell",
5610
+ "data-column-id": _,
5611
+ "data-align": v,
5612
+ "data-control-column": y,
5613
+ "data-invalid": b,
5614
+ onDoubleClick: x,
5615
+ className: T,
5616
+ style: A,
5617
+ children: j
5618
+ }), n[35] = i.id, n[36] = T, n[37] = A, n[38] = j, n[39] = v, n[40] = y, n[41] = b, n[42] = x, n[43] = N) : N = n[43], N;
5619
+ }
5620
+ function os() {}
5621
+ function ss() {}
5622
+ function cs(t) {
5623
+ let n = e(34), { orderedColumns: r, layoutFor: i, rowHeight: o } = t, { table: c, edit: l, features: u } = $(), d = M(l.store, fs), f = M(l.store, ds), p = s(null), m = s(null), h = s(null), g;
5568
5624
  n[0] === d ? g = n[1] : (g = () => {
5569
5625
  let e = d.at(-1)?.tempId;
5570
5626
  if (e === void 0) {
@@ -5610,14 +5666,14 @@ function as(t) {
5610
5666
  let S = Ye(x);
5611
5667
  if (d.length === 0) return null;
5612
5668
  let C;
5613
- if (n[15] !== l || n[16] !== S || n[17] !== u || n[18] !== i || n[19] !== d || n[20] !== r || n[21] !== o) {
5669
+ if (n[15] !== S || n[16] !== u || n[17] !== i || n[18] !== d || n[19] !== r || n[20] !== o) {
5614
5670
  let e = S.getCoreRowModel().rows, t;
5615
- n[23] === d ? t = n[24] : (t = new Map(d.map(ls)), n[23] = d, n[24] = t);
5671
+ n[22] === d ? t = n[23] : (t = new Map(d.map(us)), n[22] = d, n[23] = t);
5616
5672
  let a = t, s;
5617
- n[25] !== a || n[26] !== u ? (s = (e) => u.editNewRowsSticky || a.get(e.id) !== !0, n[25] = a, n[26] = u, n[27] = s) : s = n[27];
5618
- let c = e.filter(s), f;
5619
- n[28] !== a || n[29] !== l || n[30] !== i || n[31] !== r || n[32] !== o ? (f = (e, t) => {
5620
- let n = new Map(e.getAllCells().map(cs)), s = a.get(e.id) === !0;
5673
+ n[24] !== a || n[25] !== u ? (s = (e) => u.editNewRowsSticky || a.get(e.id) !== !0, n[24] = a, n[25] = u, n[26] = s) : s = n[26];
5674
+ let c = e.filter(s), l;
5675
+ n[27] !== a || n[28] !== i || n[29] !== r || n[30] !== o ? (l = (e, t) => {
5676
+ let n = new Map(e.getAllCells().map(ls)), s = a.get(e.id) === !0;
5621
5677
  return /* @__PURE__ */ X("div", {
5622
5678
  role: "row",
5623
5679
  "data-dg-part": "entry-row",
@@ -5626,77 +5682,49 @@ function as(t) {
5626
5682
  "data-committed": s,
5627
5683
  "data-draft": s,
5628
5684
  className: Bt.entryRow,
5629
- children: r.map((r) => {
5630
- let a = n.get(r.id), c = i(r.id), u = a !== void 0 && is(e, r, l);
5631
- return /* @__PURE__ */ X("div", {
5632
- role: "cell",
5633
- "data-column-id": r.id,
5634
- "data-align": Hn(r),
5635
- "data-control-column": Un(r.id),
5636
- onDoubleClick: s && u ? () => l.begin({
5637
- rowId: e.id,
5638
- columnId: r.id
5639
- }) : void 0,
5640
- className: [
5641
- Bt.entryCell,
5642
- c.isBoundary && c.pinnedAt === "left" ? $a.stickyLeft : "",
5643
- c.isBoundary && c.pinnedAt === "right" ? $a.stickyRight : ""
5644
- ].filter(Boolean).join(" "),
5645
- style: {
5646
- minHeight: o,
5647
- left: c.pinnedAt === "left" ? c.offset : void 0,
5648
- right: c.pinnedAt === "right" ? c.offset : void 0,
5649
- position: c.pinnedAt ? "sticky" : void 0,
5650
- zIndex: c.pinnedAt ? t : void 0
5651
- },
5652
- children: a !== void 0 && r.id === "__edit__" ? Ie(a.column.columnDef.cell, a.getContext()) : s && a !== void 0 ? /* @__PURE__ */ X("span", {
5653
- className: Bt.cellContent,
5654
- children: Ie(a.column.columnDef.cell, a.getContext())
5655
- }) : u && a !== void 0 ? /* @__PURE__ */ X(rs, {
5656
- cell: a,
5657
- row: e,
5658
- takeSeedText: ss,
5659
- onClose: os,
5660
- inEntryBlock: !0
5661
- }) : null
5662
- }, r.id);
5663
- })
5685
+ children: r.map((r) => /* @__PURE__ */ X(as, {
5686
+ entryRow: e,
5687
+ column: r,
5688
+ cell: n.get(r.id),
5689
+ committed: s,
5690
+ layout: i(r.id),
5691
+ rowHeight: o,
5692
+ pinnedZ: t
5693
+ }, r.id))
5664
5694
  }, e.id);
5665
- }, n[28] = a, n[29] = l, n[30] = i, n[31] = r, n[32] = o, n[33] = f) : f = n[33];
5666
- let m = f;
5695
+ }, n[27] = a, n[28] = i, n[29] = r, n[30] = o, n[31] = l) : l = n[31];
5696
+ let f = l;
5667
5697
  C = c.length > 0 && /* @__PURE__ */ X("div", {
5668
5698
  ref: p,
5669
5699
  role: "rowgroup",
5670
5700
  "data-dg-entry-block": !0,
5671
5701
  className: Bt.entryBlock,
5672
- children: c.map((e) => m(e, "var(--dg-z-pinned-row-pinned-cell, 5)"))
5673
- }), n[15] = l, n[16] = S, n[17] = u, n[18] = i, n[19] = d, n[20] = r, n[21] = o, n[22] = C;
5674
- } else C = n[22];
5702
+ children: c.map((e) => f(e, "var(--dg-z-pinned-row-pinned-cell, 5)"))
5703
+ }), n[15] = S, n[16] = u, n[17] = i, n[18] = d, n[19] = r, n[20] = o, n[21] = C;
5704
+ } else C = n[21];
5675
5705
  let w;
5676
- return n[34] === C ? w = n[35] : (w = /* @__PURE__ */ X(ue, { children: C }), n[34] = C, n[35] = w), w;
5706
+ return n[32] === C ? w = n[33] : (w = /* @__PURE__ */ X(ue, { children: C }), n[32] = C, n[33] = w), w;
5677
5707
  }
5678
- function os() {}
5679
- function ss() {}
5680
- function cs(e) {
5708
+ function ls(e) {
5681
5709
  return [e.column.id, e];
5682
5710
  }
5683
- function ls(e) {
5711
+ function us(e) {
5684
5712
  return [e.tempId, e.committed];
5685
5713
  }
5686
- function us(e) {
5714
+ function ds(e) {
5687
5715
  return e.active !== null && e.newRows.some((t) => t.tempId === e.active?.rowId && !t.committed) ? e.active : null;
5688
5716
  }
5689
- function ds(e) {
5717
+ function fs(e) {
5690
5718
  return e.newRows;
5691
5719
  }
5692
5720
  //#endregion
5693
5721
  //#region src/core/resizePreview.ts
5694
- var fs = 20, ps = 2 ** 53 - 1;
5695
- function ms(e, t, n) {
5722
+ var ps = 20, ms = 2 ** 53 - 1;
5723
+ function hs(e, t, n) {
5696
5724
  let r = Math.round(Math.max(e + e * t, 0) * 100) / 100;
5697
- return Math.min(Math.max(n.minSize ?? fs, r), n.maxSize ?? ps);
5725
+ return Math.min(Math.max(n.minSize ?? ps, r), n.maxSize ?? ms);
5698
5726
  }
5699
- function* hs(e, t, n) {
5727
+ function* gs(e, t, n) {
5700
5728
  let r = 0;
5701
5729
  for (let i of e) yield {
5702
5730
  columnId: i,
@@ -5704,10 +5732,10 @@ function* hs(e, t, n) {
5704
5732
  offset: r
5705
5733
  }, r += n(i);
5706
5734
  }
5707
- function gs({ progress: e, tracks: t, boundsOf: n, leftLane: r, rightLane: i }) {
5735
+ function _s({ progress: e, tracks: t, boundsOf: n, leftLane: r, rightLane: i }) {
5708
5736
  if (e.isResizingColumn === !1 || e.columnSizingStart.length === 0) return null;
5709
5737
  let a = e.deltaPercentage ?? 0, o = /* @__PURE__ */ new Map();
5710
- for (let [t, r] of e.columnSizingStart) o.set(t, ms(r, a, n(t)));
5738
+ for (let [t, r] of e.columnSizingStart) o.set(t, hs(r, a, n(t)));
5711
5739
  let s = [], c = 0;
5712
5740
  for (let e of t) {
5713
5741
  let t = o.get(e.id);
@@ -5717,12 +5745,12 @@ function gs({ progress: e, tracks: t, boundsOf: n, leftLane: r, rightLane: i })
5717
5745
  return {
5718
5746
  gridTemplateColumns: s.join(" "),
5719
5747
  minWidth: c,
5720
- offsets: [...l(r) ? hs(r, "left", u) : [], ...l(i) ? hs(i, "right", u) : []]
5748
+ offsets: [...l(r) ? gs(r, "left", u) : [], ...l(i) ? gs(i, "right", u) : []]
5721
5749
  };
5722
5750
  }
5723
5751
  //#endregion
5724
5752
  //#region src/core/draftCellContext.ts
5725
- function _s(e, t) {
5753
+ function vs(e, t) {
5726
5754
  let n = Object.create(e.row), r = n;
5727
5755
  r.original = t, r._valuesCache = Object.create(null), r._uniqueValuesCache = Object.create(null);
5728
5756
  let i = Object.create(e);
@@ -5737,7 +5765,7 @@ function _s(e, t) {
5737
5765
  }
5738
5766
  //#endregion
5739
5767
  //#region src/core/cellRange.ts
5740
- function vs({ range: e, rowIndexOf: t, columnIndexOf: n }) {
5768
+ function ys({ range: e, rowIndexOf: t, columnIndexOf: n }) {
5741
5769
  if (e === null) return null;
5742
5770
  let r = t(e.anchor.rowId), i = t(e.focus.rowId), a = n(e.anchor.columnId), o = n(e.focus.columnId);
5743
5771
  return r < 0 || i < 0 || a < 0 || o < 0 ? null : {
@@ -5747,14 +5775,14 @@ function vs({ range: e, rowIndexOf: t, columnIndexOf: n }) {
5747
5775
  right: Math.max(a, o)
5748
5776
  };
5749
5777
  }
5750
- function ys(e, t, n) {
5778
+ function bs(e, t, n) {
5751
5779
  return e !== null && t >= e.top && t <= e.bottom && n >= e.left && n <= e.right;
5752
5780
  }
5753
- function bs(e) {
5781
+ function xs(e) {
5754
5782
  return e === null ? 0 : (e.bottom - e.top + 1) * (e.right - e.left + 1);
5755
5783
  }
5756
- function xs(e, t, n) {
5757
- return !ys(e, t, n) || e === null ? null : {
5784
+ function Ss(e, t, n) {
5785
+ return !bs(e, t, n) || e === null ? null : {
5758
5786
  top: t === e.top,
5759
5787
  bottom: t === e.bottom,
5760
5788
  left: n === e.left,
@@ -5763,7 +5791,7 @@ function xs(e, t, n) {
5763
5791
  }
5764
5792
  //#endregion
5765
5793
  //#region src/core/rowPinning.ts
5766
- function Ss(e, t) {
5794
+ function Cs(e, t) {
5767
5795
  let n = e.store.state.rowPinning[t];
5768
5796
  if (n.length === 0) return [];
5769
5797
  let r = e.getPrePaginatedRowModel().rowsById, i = e.getCoreRowModel().rowsById, a = [];
@@ -5775,17 +5803,17 @@ function Ss(e, t) {
5775
5803
  }
5776
5804
  //#endregion
5777
5805
  //#region src/core/matchHighlight.ts
5778
- var Cs = [
5806
+ var ws = [
5779
5807
  "contains",
5780
5808
  "startsWith",
5781
5809
  "endsWith"
5782
5810
  ];
5783
- function ws(e) {
5811
+ function Ts(e) {
5784
5812
  let t = e.store.state, n = typeof t.globalFilter == "string" ? t.globalFilter.trim() : "", r = /* @__PURE__ */ new Map();
5785
5813
  for (let e of t.columnFilters) {
5786
5814
  if (!xt(e.value)) continue;
5787
5815
  let { operator: t, value: n } = e.value;
5788
- if (!Cs.includes(t) || typeof n != "string" || n === "") continue;
5816
+ if (!ws.includes(t) || typeof n != "string" || n === "") continue;
5789
5817
  let i = r.get(e.id) ?? [];
5790
5818
  i.push(n), r.set(e.id, i);
5791
5819
  }
@@ -5799,7 +5827,7 @@ function ws(e) {
5799
5827
  }
5800
5828
  return i.size > 0 ? i : null;
5801
5829
  }
5802
- function Ts(e, t) {
5830
+ function Es(e, t) {
5803
5831
  let n = e.toLowerCase(), r = [];
5804
5832
  for (let e of t) {
5805
5833
  let t = e.toLowerCase();
@@ -5821,26 +5849,26 @@ function Ts(e, t) {
5821
5849
  }
5822
5850
  //#endregion
5823
5851
  //#region src/components/TMDataGridTable.tsx
5824
- var Es = {
5852
+ var Ds = {
5825
5853
  pinnedAt: !1,
5826
5854
  offset: 0,
5827
5855
  isBoundary: !1
5828
5856
  };
5829
- function Ds(e, t) {
5857
+ function Os(e, t) {
5830
5858
  return e.querySelector(`[data-cell="true"][data-row-id="${CSS.escape(t.rowId)}"][data-column-id="${CSS.escape(t.columnId)}"]`);
5831
5859
  }
5832
- function Os({ container: e, cellElement: t, leftPinnedWidth: n, rightPinnedWidth: r }) {
5860
+ function ks({ container: e, cellElement: t, leftPinnedWidth: n, rightPinnedWidth: r }) {
5833
5861
  let i = t.getBoundingClientRect(), a = e.getBoundingClientRect(), o = a.left + n, s = a.right - r;
5834
5862
  i.left < o ? e.scrollLeft -= o - i.left : i.right > s && (e.scrollLeft += i.right - s);
5835
5863
  }
5836
- function ks(e) {
5864
+ function As(e) {
5837
5865
  if (e.getIsPlaceholder()) return null;
5838
5866
  if (!e.getIsAggregated()) return Ie(e.column.columnDef.cell, e.getContext());
5839
5867
  let { aggregatedCell: t, aggregationFn: n } = e.column.columnDef;
5840
5868
  return t === void 0 ? n === void 0 ? null : Ie(e.column.columnDef.cell, e.getContext()) : Ie(t, e.getContext());
5841
5869
  }
5842
- function As(e, t) {
5843
- let n = Ts(e, t);
5870
+ function js(e, t) {
5871
+ let n = Es(e, t);
5844
5872
  if (n === null) return e;
5845
5873
  let r = [], i = 0;
5846
5874
  for (let t of n) t.start > i && r.push(e.slice(i, t.start)), r.push(/* @__PURE__ */ X("mark", {
@@ -5849,7 +5877,7 @@ function As(e, t) {
5849
5877
  }, t.start)), i = t.end;
5850
5878
  return i < e.length && r.push(e.slice(i)), r;
5851
5879
  }
5852
- function js(t) {
5880
+ function Ms(t) {
5853
5881
  let n = e(59), { cell: r, rowHeight: i, layout: a, nav: o, editor: s, contentOverride: c, highlightNeedles: l, onFocus: u, onClick: d, onMouseDown: f, onMouseEnter: p, onDoubleClick: m, onContextMenu: h } = t, { table: g, edit: _ } = $(), v;
5854
5882
  n[0] === r.column ? v = n[1] : (v = Wt(r.column), n[0] = r.column, n[1] = v);
5855
5883
  let y = v, b = r.row.id, x;
@@ -5890,12 +5918,12 @@ function js(t) {
5890
5918
  n[24] !== r || n[25] !== c || n[26] !== O || n[27] !== s || n[28] !== l || n[29] !== g ? (J = s ?? /* @__PURE__ */ X("span", {
5891
5919
  className: Bt.cellContent,
5892
5920
  children: (() => {
5893
- let e = O !== void 0 && c === void 0 && !r.getIsPlaceholder() && !r.getIsAggregated() ? _s(r, O) : void 0;
5921
+ let e = O !== void 0 && c === void 0 && !r.getIsPlaceholder() && !r.getIsAggregated() ? vs(r, O) : void 0;
5894
5922
  if (l !== void 0 && c === void 0 && !r.getIsPlaceholder() && !r.getIsAggregated() && r.column.columnDef.cell === g.getDefaultColumnDef().cell) {
5895
5923
  let t = e === void 0 ? r.renderValue() : e.renderValue();
5896
- if (typeof t == "string" || typeof t == "number") return As(String(t), l);
5924
+ if (typeof t == "string" || typeof t == "number") return js(String(t), l);
5897
5925
  }
5898
- return e === void 0 ? c ?? ks(r) : Ie(r.column.columnDef.cell, e);
5926
+ return e === void 0 ? c ?? As(r) : Ie(r.column.columnDef.cell, e);
5899
5927
  })()
5900
5928
  }), n[24] = r, n[25] = c, n[26] = O, n[27] = s, n[28] = l, n[29] = g, n[30] = J) : J = n[30];
5901
5929
  let ce;
@@ -5929,7 +5957,7 @@ function js(t) {
5929
5957
  children: J
5930
5958
  }), n[31] = r.column.id, n[32] = r.row.id, n[33] = S, n[34] = d, n[35] = h, n[36] = m, n[37] = u, n[38] = f, n[39] = p, n[40] = F, n[41] = I, n[42] = L, n[43] = R, n[44] = z, n[45] = B, n[46] = V, n[47] = H, n[48] = U, n[49] = W, n[50] = G, n[51] = ie, n[52] = se, n[53] = J, n[54] = k, n[55] = A, n[56] = j, n[57] = N, n[58] = ce) : ce = n[58], ce;
5931
5959
  }
5932
- function Ms(t) {
5960
+ function Ns(t) {
5933
5961
  let n = e(16), { enabled: r, menuContent: i, menuProps: a, onContextMenu: o, onClose: s, children: c } = t, l;
5934
5962
  n[0] === Symbol.for("react.memo_cache_sentinel") ? (l = { display: "contents" }, n[0] = l) : l = n[0];
5935
5963
  let u = r ? o : void 0, d;
@@ -5960,10 +5988,10 @@ function Ms(t) {
5960
5988
  children: [h, g]
5961
5989
  }), n[10] = a, n[11] = p, n[12] = m, n[13] = h, n[14] = g, n[15] = v) : v = n[15], v;
5962
5990
  }
5963
- function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContextMenu: o, rowClassName: l, rowStyle: u, striped: d = !1, onScrollToTop: f, onScrollToBottom: m, onScrollToLeft: h, onScrollToRight: v, renderEmptyState: y, renderRowContextMenu: b, renderColumnMenuItems: x, rowContextMenuProps: S, cellExport: C, onReachEnd: w, reachEndThreshold: T = 10, "aria-label": E, "aria-labelledby": O }) {
5991
+ function Ps({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContextMenu: o, rowClassName: l, rowStyle: u, striped: d = !1, onScrollToTop: f, onScrollToBottom: m, onScrollToLeft: h, onScrollToRight: v, renderEmptyState: y, renderRowContextMenu: b, renderColumnMenuItems: x, rowContextMenuProps: S, cellExport: C, onReachEnd: w, reachEndThreshold: T = 10, "aria-label": E, "aria-labelledby": O }) {
5964
5992
  let { table: k, ui: A, edit: j, features: N, filters: P, exportOptions: ee, labels: F, rowHeight: I, controlSize: L, renderDetails: R, renderDetailsEstHeight: z, overscan: B, scrollerRef: V } = $();
5965
5993
  ka(k.store);
5966
- let H = M(A, (e) => e.highlightedRowId), U = M(A, (e) => e.focusedCell), W = M(A, (e) => e.cellRange), G = M(j.store, (e) => e.active), te = M(j.store, (e) => e.openRowIds), ne = M(j.store, (e) => e.newRows), re = ne.length, ie = M(j.store, (e) => e.deletedRowIds), ae = M(j.store, (e) => e.openRowIds.filter((t) => (e.rows[t]?.dirtyFields.length ?? 0) > 0)), oe = M(j.store, (e) => e.committedRowIds), { loading: K, noResultsLabel: q = F.noResults } = k.options.meta ?? {}, se = s(null), J = Tn(k, N), le = N.matchHighlighting ? ws(k) : null, Y = N.rowPinning ? Ss(k, "top") : [], de = N.rowPinning ? Ss(k, "bottom") : [], fe = Y.length + de.length, pe = null;
5994
+ let H = M(A, (e) => e.highlightedRowId), U = M(A, (e) => e.focusedCell), W = M(A, (e) => e.cellRange), G = M(j.store, (e) => e.active), te = M(j.store, (e) => e.openRowIds), ne = M(j.store, (e) => e.newRows), re = ne.length, ie = M(j.store, (e) => e.deletedRowIds), ae = M(j.store, (e) => e.openRowIds.filter((t) => (e.rows[t]?.dirtyFields.length ?? 0) > 0)), oe = M(j.store, (e) => e.committedRowIds), { loading: K, noResultsLabel: q = F.noResults } = k.options.meta ?? {}, se = s(null), J = Tn(k, N), le = N.matchHighlighting ? Ts(k) : null, Y = N.rowPinning ? Cs(k, "top") : [], de = N.rowPinning ? Cs(k, "bottom") : [], fe = Y.length + de.length, pe = null;
5967
5995
  if (N.rowNumbers) {
5968
5996
  pe = /* @__PURE__ */ new Map();
5969
5997
  let e = En(k, N) ? k.store.state.pagination.pageIndex * k.store.state.pagination.pageSize : 0;
@@ -6103,7 +6131,7 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6103
6131
  offset: 0,
6104
6132
  isBoundary: !1
6105
6133
  });
6106
- let Xe = (e) => Ke.get(e) ?? Es, Ze = s({
6134
+ let Xe = (e) => Ke.get(e) ?? Ds, Ze = s({
6107
6135
  tracks: Ue,
6108
6136
  leftLane: [],
6109
6137
  rightLane: []
@@ -6118,7 +6146,7 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6118
6146
  let e = ge.current;
6119
6147
  if (!e) return;
6120
6148
  let t = "", n = k.store.subscribe((n) => {
6121
- let r = gs({
6149
+ let r = _s({
6122
6150
  progress: n.columnResizing,
6123
6151
  boundsOf: (e) => k.getColumn(e)?.columnDef ?? {},
6124
6152
  ...Ze.current
@@ -6185,8 +6213,8 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6185
6213
  if (Ct === null) return;
6186
6214
  mt.current = !0, A.actions.setFocusedCell(Ct);
6187
6215
  let e = se.current;
6188
- e !== null && Ds(e, Ct)?.focus({ preventScroll: !0 });
6189
- }, Tt = (e, t, n) => e !== null && e.rowId === t && e.columnId === n, Et = vs({
6216
+ e !== null && Os(e, Ct)?.focus({ preventScroll: !0 });
6217
+ }, Tt = (e, t, n) => e !== null && e.rowId === t && e.columnId === n, Et = ys({
6190
6218
  range: pt ? W : null,
6191
6219
  rowIndexOf: (e) => J.findIndex((t) => t.id === e),
6192
6220
  columnIndexOf: (e) => Le.findIndex((t) => t.id === e)
@@ -6202,7 +6230,7 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6202
6230
  bottom: yt,
6203
6231
  left: bt,
6204
6232
  right: bt
6205
- } : null), kt = bs(Ot), At = Ot === null ? 0 : Le.slice(Ot.left, Ot.right + 1).filter((e) => !Wn(e.id) && e.columnDef.meta?.enableExport !== !1).length, jt = Gi(ee, C && oa(C)), [Mt, Nt] = c(jt.includeHeaders), Pt = () => Ot === null ? null : $i({
6233
+ } : null), kt = xs(Ot), At = Ot === null ? 0 : Le.slice(Ot.left, Ot.right + 1).filter((e) => !Wn(e.id) && e.columnDef.meta?.enableExport !== !1).length, jt = Gi(ee, C && oa(C)), [Mt, Nt] = c(jt.includeHeaders), Pt = () => Ot === null ? null : $i({
6206
6234
  table: k,
6207
6235
  rows: J,
6208
6236
  bounds: Ot
@@ -6260,7 +6288,7 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6260
6288
  });
6261
6289
  let Kt = (e) => {
6262
6290
  let t = se.current;
6263
- t !== null && (mt.current = !0, Ds(t, e)?.focus());
6291
+ t !== null && (mt.current = !0, Os(t, e)?.focus());
6264
6292
  }, qt = (e) => {
6265
6293
  ft && A.actions.setFocusedCell(e), j.begin({
6266
6294
  rowId: e.rowId,
@@ -6333,7 +6361,7 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6333
6361
  rowIndex: c,
6334
6362
  columnIndex: e.shiftKey ? Le.length - 1 : 0
6335
6363
  });
6336
- let n = se.current, r = n === null ? null : Ds(n, {
6364
+ let n = se.current, r = n === null ? null : Os(n, {
6337
6365
  rowId: l.id,
6338
6366
  columnId: u.id
6339
6367
  });
@@ -6430,8 +6458,8 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6430
6458
  }
6431
6459
  let t = e.ownerDocument.activeElement;
6432
6460
  if (!mt.current && !e.contains(t) || !mt.current && t !== null && t.closest("[data-dg-part=\"tab-guard\"]") !== null) return;
6433
- let n = Ds(e, U);
6434
- n !== null && (mt.current = !1, !n.contains(t) && (t !== null && t.closest("[data-dg-part=\"editor\"]") !== null || (n.focus({ preventScroll: !0 }), Xe(U.columnId).pinnedAt === !1 && Os({
6461
+ let n = Os(e, U);
6462
+ n !== null && (mt.current = !1, !n.contains(t) && (t !== null && t.closest("[data-dg-part=\"editor\"]") !== null || (n.focus({ preventScroll: !0 }), Xe(U.columnId).pinnedAt === !1 && ks({
6435
6463
  container: e,
6436
6464
  cellElement: n,
6437
6465
  leftPinnedWidth: Je,
@@ -6442,7 +6470,7 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6442
6470
  let e = en.current, t = tn.current;
6443
6471
  if (en.current = null, tn.current = null, ft && e !== null && t !== null) {
6444
6472
  let n = J.findIndex((t) => t.id === e), r = Le.findIndex((e) => e.id === t);
6445
- n >= 0 && !ys(Ot, n, r) && (A.actions.setFocusedCell({
6473
+ n >= 0 && !bs(Ot, n, r) && (A.actions.setFocusedCell({
6446
6474
  rowId: e,
6447
6475
  columnId: t
6448
6476
  }), Dt({
@@ -6560,12 +6588,12 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6560
6588
  className: Bt.tabGuard,
6561
6589
  onFocus: wt
6562
6590
  }),
6563
- N.editing && re > 0 && /* @__PURE__ */ X(as, {
6591
+ N.editing && re > 0 && /* @__PURE__ */ X(cs, {
6564
6592
  orderedColumns: Le,
6565
6593
  layoutFor: Xe,
6566
6594
  rowHeight: I
6567
6595
  }),
6568
- /* @__PURE__ */ X(Ms, {
6596
+ /* @__PURE__ */ X(Ns, {
6569
6597
  enabled: b !== void 0 || pt,
6570
6598
  menuContent: ln,
6571
6599
  menuProps: S,
@@ -6625,7 +6653,7 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6625
6653
  } : void 0,
6626
6654
  children: [l.map((i, a) => {
6627
6655
  let c = G !== null && G.rowId === e.id && G.columnId === i.column.id || u && j.canEditCell(e, i.column);
6628
- return /* @__PURE__ */ X(js, {
6656
+ return /* @__PURE__ */ X(Ms, {
6629
6657
  cell: i,
6630
6658
  rowHeight: I,
6631
6659
  layout: Xe(i.column.id),
@@ -6652,8 +6680,8 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6652
6680
  columnIndex: a + 1,
6653
6681
  focused: Tt(U, e.id, i.column.id),
6654
6682
  tabIndex: -1,
6655
- selected: pt ? ys(Et, n, a) : Tt(U, e.id, i.column.id),
6656
- edges: xs(Et, n, a)
6683
+ selected: pt ? bs(Et, n, a) : Tt(U, e.id, i.column.id),
6684
+ edges: Ss(Et, n, a)
6657
6685
  } : void 0,
6658
6686
  onFocus: ft ? () => A.actions.setFocusedCell({
6659
6687
  rowId: e.id,
@@ -6802,18 +6830,18 @@ function Ns({ onRowClick: e, onCellClick: t, onCellDoubleClick: r, onCellContext
6802
6830
  ]
6803
6831
  });
6804
6832
  }
6805
- var Ps = {
6833
+ var Fs = {
6806
6834
  toolbar: "_toolbar_gwk05_1",
6807
6835
  toolbarSpacer: "_toolbarSpacer_gwk05_15",
6808
6836
  summaryCount: "_summaryCount_gwk05_19"
6809
6837
  };
6810
6838
  //#endregion
6811
6839
  //#region src/components/TMDataGridToolbar.tsx
6812
- function Fs(t) {
6840
+ function Is(t) {
6813
6841
  let n = e(18), r, i, a, o, s;
6814
6842
  n[0] === t ? (r = n[1], i = n[2], a = n[3], o = n[4], s = n[5]) : ({children: r, withBottomBorder: s, className: i, mod: a, ...o} = t, n[0] = t, n[1] = r, n[2] = i, n[3] = a, n[4] = o, n[5] = s);
6815
6843
  let c = s !== void 0 && s, l;
6816
- n[6] === i ? l = n[7] : (l = [Ps.toolbar, i].filter(Boolean), n[6] = i, n[7] = l);
6844
+ n[6] === i ? l = n[7] : (l = [Fs.toolbar, i].filter(Boolean), n[6] = i, n[7] = l);
6817
6845
  let u = l.join(" "), f;
6818
6846
  n[8] === c ? f = n[9] : (f = { "with-bottom-border": c }, n[8] = c, n[9] = f);
6819
6847
  let p;
@@ -6827,18 +6855,18 @@ function Fs(t) {
6827
6855
  children: r
6828
6856
  }), n[13] = r, n[14] = o, n[15] = u, n[16] = p, n[17] = m) : m = n[17], m;
6829
6857
  }
6830
- function Is(t) {
6858
+ function Ls(t) {
6831
6859
  let n = e(8), r, i;
6832
6860
  n[0] === t ? (r = n[1], i = n[2]) : ({className: r, ...i} = t, n[0] = t, n[1] = r, n[2] = i);
6833
6861
  let a;
6834
- n[3] === r ? a = n[4] : (a = [Ps.toolbarSpacer, r].filter(Boolean), n[3] = r, n[4] = a);
6862
+ n[3] === r ? a = n[4] : (a = [Fs.toolbarSpacer, r].filter(Boolean), n[3] = r, n[4] = a);
6835
6863
  let o = a.join(" "), s;
6836
6864
  return n[5] !== i || n[6] !== o ? (s = /* @__PURE__ */ X(d, {
6837
6865
  className: o,
6838
6866
  ...i
6839
6867
  }), n[5] = i, n[6] = o, n[7] = s) : s = n[7], s;
6840
6868
  }
6841
- function Ls() {
6869
+ function Rs() {
6842
6870
  let t = e(2), { table: n, labels: r } = $();
6843
6871
  if (n.options.meta?.loading !== !0) return null;
6844
6872
  let i;
@@ -6848,7 +6876,7 @@ function Ls() {
6848
6876
  "aria-label": r.loading
6849
6877
  }), t[0] = r.loading, t[1] = i), i;
6850
6878
  }
6851
- function Rs(t) {
6879
+ function zs(t) {
6852
6880
  let n = e(8), { children: r } = t, { table: i, controlSize: a } = $();
6853
6881
  ka(i.store);
6854
6882
  let o = i.options.manualFiltering === !0 || i.options.manualPagination === !0, s;
@@ -6860,13 +6888,13 @@ function Rs(t) {
6860
6888
  span: !0,
6861
6889
  size: a,
6862
6890
  c: "dimmed",
6863
- className: Ps.summaryCount,
6891
+ className: Fs.summaryCount,
6864
6892
  "data-dg-part": "summary-count",
6865
6893
  children: d
6866
6894
  }), n[5] = a, n[6] = d, n[7] = f) : f = n[7], f;
6867
6895
  }
6868
- function zs() {
6869
- let t = e(16), n = $(), { table: r, ui: i, features: a, filters: o, labels: s, controlSize: c } = n, u = M(i, Us), d = M(r.store, Hs), f = d.filter(Vs).length;
6896
+ function Bs() {
6897
+ let t = e(16), n = $(), { table: r, ui: i, features: a, filters: o, labels: s, controlSize: c } = n, u = M(i, Ws), d = M(r.store, Us), f = d.filter(Hs).length;
6870
6898
  if (!di(r, a).canFilterAny || o.surface === "none") return null;
6871
6899
  let p = u || f > 0 ? "light" : "subtle", m = f > 0 ? void 0 : "gray", h;
6872
6900
  t[0] !== n || t[1] !== d.length || t[2] !== u || t[3] !== r || t[4] !== i.actions ? (h = () => {
@@ -6874,7 +6902,7 @@ function zs() {
6874
6902
  i.actions.closeFilterPanel();
6875
6903
  return;
6876
6904
  }
6877
- let e = d.length === 0 ? r.getAllLeafColumns().find(Bs) : void 0;
6905
+ let e = d.length === 0 ? r.getAllLeafColumns().find(Vs) : void 0;
6878
6906
  e && Sa(n, e.id), i.actions.openFilterPanel(e?.id ?? null);
6879
6907
  }, t[0] = n, t[1] = d.length, t[2] = u, t[3] = r, t[4] = i.actions, t[5] = h) : h = t[5];
6880
6908
  let g;
@@ -6899,19 +6927,19 @@ function zs() {
6899
6927
  children: _
6900
6928
  }), t[13] = s.filters, t[14] = _, t[15] = v) : v = t[15], v;
6901
6929
  }
6902
- function Bs(e) {
6930
+ function Vs(e) {
6903
6931
  return e.getCanFilter();
6904
6932
  }
6905
- function Vs(e) {
6933
+ function Hs(e) {
6906
6934
  return Ct(e.value);
6907
6935
  }
6908
- function Hs(e) {
6936
+ function Us(e) {
6909
6937
  return e.columnFilters;
6910
6938
  }
6911
- function Us(e) {
6939
+ function Ws(e) {
6912
6940
  return e.filterPanelOpen;
6913
6941
  }
6914
- var Ws = {
6942
+ var Gs = {
6915
6943
  title: "_title_199r2_1",
6916
6944
  list: "_list_199r2_5",
6917
6945
  listHeader: "_listHeader_199r2_13",
@@ -6927,20 +6955,20 @@ var Ws = {
6927
6955
  };
6928
6956
  //#endregion
6929
6957
  //#region src/components/TMDataGridExportPicker.tsx
6930
- function Gs() {
6931
- let t = e(26), { ui: n, labels: r, size: i, controlSize: a, exportOptions: o } = $(), s = M(n, Ks), c, l, u, d;
6958
+ function Ks() {
6959
+ let t = e(26), { ui: n, labels: r, size: i, controlSize: a, exportOptions: o } = $(), s = M(n, qs), c, l, u, d;
6932
6960
  if (t[0] !== o || t[1] !== r || t[2] !== s || t[3] !== n.actions) {
6933
6961
  let e = s ? Gi(o, s.options).format : null;
6934
6962
  c = v, l = s !== null, t[8] === n.actions ? u = t[9] : (u = () => n.actions.closeExportPicker(), t[8] = n.actions, t[9] = u), d = e && r.exportPickerTitle(e.extension.toUpperCase()), t[0] = o, t[1] = r, t[2] = s, t[3] = n.actions, t[4] = c, t[5] = l, t[6] = u, t[7] = d;
6935
6963
  } else c = t[4], l = t[5], u = t[6], d = t[7];
6936
- let f = qs[i], p = Js[a], m;
6964
+ let f = Js[i], p = Ys[a], m;
6937
6965
  t[10] === p ? m = t[11] : (m = { size: p }, t[10] = p, t[11] = m);
6938
6966
  let h;
6939
- t[12] === Symbol.for("react.memo_cache_sentinel") ? (h = { title: Ws.title }, t[12] = h) : h = t[12];
6967
+ t[12] === Symbol.for("react.memo_cache_sentinel") ? (h = { title: Gs.title }, t[12] = h) : h = t[12];
6940
6968
  let g = `var(--mantine-font-size-${a})`, _;
6941
6969
  t[13] === g ? _ = t[14] : (_ = { title: { fontSize: g } }, t[13] = g, t[14] = _);
6942
6970
  let y;
6943
- t[15] === s ? y = t[16] : (y = s && /* @__PURE__ */ X(Ys, { request: s }), t[15] = s, t[16] = y);
6971
+ t[15] === s ? y = t[16] : (y = s && /* @__PURE__ */ X(Xs, { request: s }), t[15] = s, t[16] = y);
6944
6972
  let b;
6945
6973
  return t[17] !== c || t[18] !== l || t[19] !== u || t[20] !== d || t[21] !== f || t[22] !== m || t[23] !== _ || t[24] !== y ? (b = /* @__PURE__ */ X(c, {
6946
6974
  opened: l,
@@ -6953,25 +6981,25 @@ function Gs() {
6953
6981
  children: y
6954
6982
  }), t[17] = c, t[18] = l, t[19] = u, t[20] = d, t[21] = f, t[22] = m, t[23] = _, t[24] = y, t[25] = b) : b = t[25], b;
6955
6983
  }
6956
- function Ks(e) {
6984
+ function qs(e) {
6957
6985
  return e.exportPicker;
6958
6986
  }
6959
- var qs = {
6987
+ var Js = {
6960
6988
  xs: "xs",
6961
6989
  sm: "xs",
6962
6990
  md: "sm",
6963
6991
  lg: "sm",
6964
6992
  xl: "md"
6965
- }, Js = {
6993
+ }, Ys = {
6966
6994
  xs: "sm",
6967
6995
  sm: "md",
6968
6996
  md: "lg"
6969
6997
  };
6970
- function Ys(t) {
6998
+ function Xs(t) {
6971
6999
  let n = e(95), { request: r } = t, { table: i, ui: a, labels: o, controlSize: s } = $(), { exportAll: l, exportSelected: u } = za(r.options), d;
6972
7000
  n[0] === i ? d = n[1] : (d = qi(i), n[0] = i, n[1] = d);
6973
7001
  let h = d, [g, _] = c(""), v;
6974
- n[2] === h ? v = n[3] : (v = () => new Set(h.filter(Qs).map(Zs)), n[2] = h, n[3] = v);
7002
+ n[2] === h ? v = n[3] : (v = () => new Set(h.filter($s).map(Qs)), n[2] = h, n[3] = v);
6975
7003
  let [y, b] = c(v), x;
6976
7004
  n[4] === h.length ? x = n[5] : (x = Kn("auto", h.length), n[4] = h.length, n[5] = x);
6977
7005
  let S = x, w;
@@ -6997,7 +7025,7 @@ function Ys(t) {
6997
7025
  }), n[15] = T, n[16] = ee);
6998
7026
  let F = ee, I;
6999
7027
  n[17] !== y || n[18] !== h || n[19] !== l || n[20] !== u || n[21] !== r.rows || n[22] !== a.actions ? (I = async () => {
7000
- let e = h.filter((e) => y.has(e.id)).map(Xs);
7028
+ let e = h.filter((e) => y.has(e.id)).map(Zs);
7001
7029
  await (r.rows === "selected" ? u : l)({ columns: e }), a.actions.closeExportPicker();
7002
7030
  }, n[17] = y, n[18] = h, n[19] = l, n[20] = u, n[21] = r.rows, n[22] = a.actions, n[23] = I) : I = n[23];
7003
7031
  let L = I, R;
@@ -7025,7 +7053,7 @@ function Ys(t) {
7025
7053
  let H;
7026
7054
  n[36] === F ? H = n[37] : (H = (e) => F(e.currentTarget.checked), n[36] = F, n[37] = H);
7027
7055
  let U;
7028
- n[38] === Symbol.for("react.memo_cache_sentinel") ? (U = { label: Ws.headerLabel }, n[38] = U) : U = n[38];
7056
+ n[38] === Symbol.for("react.memo_cache_sentinel") ? (U = { label: Gs.headerLabel }, n[38] = U) : U = n[38];
7029
7057
  let W;
7030
7058
  n[39] !== j || n[40] !== s || n[41] !== o.exportPickerSelectAll || n[42] !== M || n[43] !== H ? (W = /* @__PURE__ */ X(p, {
7031
7059
  size: s,
@@ -7047,7 +7075,7 @@ function Ys(t) {
7047
7075
  }), n[49] = G, n[50] = te);
7048
7076
  let ne;
7049
7077
  n[51] !== W || n[52] !== te ? (ne = /* @__PURE__ */ Z("div", {
7050
- className: Ws.listHeader,
7078
+ className: Gs.listHeader,
7051
7079
  children: [W, te]
7052
7080
  }), n[51] = W, n[52] = te, n[53] = ne) : ne = n[53];
7053
7081
  let re;
@@ -7056,19 +7084,19 @@ function Ys(t) {
7056
7084
  n[59] !== y || n[60] !== s || n[61] !== o.exportPickerHidden ? (e = (e) => /* @__PURE__ */ X(p, {
7057
7085
  size: s,
7058
7086
  label: /* @__PURE__ */ Z(ue, { children: [/* @__PURE__ */ X("span", {
7059
- className: Ws.rowText,
7087
+ className: Gs.rowText,
7060
7088
  children: Fn(e)
7061
7089
  }), !e.getIsVisible() && /* @__PURE__ */ X("span", {
7062
- className: Ws.rowHint,
7090
+ className: Gs.rowHint,
7063
7091
  children: o.exportPickerHidden
7064
7092
  })] }),
7065
7093
  checked: y.has(e.id),
7066
7094
  onChange: (t) => P(e.id, t.currentTarget.checked),
7067
7095
  classNames: {
7068
- root: Ws.row,
7069
- body: Ws.rowBody,
7070
- labelWrapper: Ws.rowLabelWrapper,
7071
- label: Ws.rowLabel
7096
+ root: Gs.row,
7097
+ body: Gs.rowBody,
7098
+ labelWrapper: Gs.rowLabelWrapper,
7099
+ label: Gs.rowLabel
7072
7100
  },
7073
7101
  "data-dg-part": "export-column",
7074
7102
  "data-column-id": e.id
@@ -7078,7 +7106,7 @@ function Ys(t) {
7078
7106
  n[63] !== s || n[64] !== o || n[65] !== T.length || n[66] !== g ? (ie = T.length === 0 && /* @__PURE__ */ X(D, {
7079
7107
  size: s,
7080
7108
  c: "dimmed",
7081
- className: Ws.empty,
7109
+ className: Gs.empty,
7082
7110
  children: o.columnsNoMatch(g)
7083
7111
  }), n[63] = s, n[64] = o, n[65] = T.length, n[66] = g, n[67] = ie) : ie = n[67];
7084
7112
  let ae;
@@ -7086,13 +7114,13 @@ function Ys(t) {
7086
7114
  mah: "50vh",
7087
7115
  type: "auto",
7088
7116
  children: /* @__PURE__ */ Z("div", {
7089
- className: Ws.rows,
7117
+ className: Gs.rows,
7090
7118
  children: [re, ie]
7091
7119
  })
7092
7120
  }), n[68] = re, n[69] = ie, n[70] = ae) : ae = n[70];
7093
7121
  let oe;
7094
7122
  n[71] !== ne || n[72] !== ae ? (oe = /* @__PURE__ */ Z("div", {
7095
- className: Ws.list,
7123
+ className: Gs.list,
7096
7124
  children: [ne, ae]
7097
7125
  }), n[71] = ne, n[72] = ae, n[73] = oe) : oe = n[73];
7098
7126
  let K;
@@ -7133,24 +7161,24 @@ function Ys(t) {
7133
7161
  ]
7134
7162
  }), n[90] = B, n[91] = V, n[92] = oe, n[93] = Y, n[94] = de) : de = n[94], de;
7135
7163
  }
7136
- function Xs(e) {
7137
- return e.id;
7138
- }
7139
7164
  function Zs(e) {
7140
7165
  return e.id;
7141
7166
  }
7142
7167
  function Qs(e) {
7168
+ return e.id;
7169
+ }
7170
+ function $s(e) {
7143
7171
  return e.getIsVisible();
7144
7172
  }
7145
7173
  //#endregion
7146
7174
  //#region src/core/sizes.ts
7147
- var $s = "md", ec = {
7175
+ var ec = "md", tc = {
7148
7176
  xs: 34,
7149
7177
  sm: 42,
7150
7178
  md: 52,
7151
7179
  lg: 62,
7152
7180
  xl: 72
7153
- }, tc = {
7181
+ }, nc = {
7154
7182
  xs: "xs",
7155
7183
  sm: "xs",
7156
7184
  md: "sm",
@@ -7159,8 +7187,8 @@ var $s = "md", ec = {
7159
7187
  };
7160
7188
  //#endregion
7161
7189
  //#region src/components/TMDataGrid.tsx
7162
- function nc(t) {
7163
- let n = e(30), { table: r, ui: i, edit: a, features: o, filters: s, exportOptions: c, labels: l, renderDetails: u, renderDetailsEstHeight: d, overscan: f, resetSettings: p, scrollToRow: m, scrollerRef: h, size: g, children: _, className: v, style: y, id: b, "data-testid": x } = t, S = g === void 0 ? "md" : g, C = r.options.meta?.rowHeight ?? ec[S], w = tc[S], T;
7190
+ function rc(t) {
7191
+ let n = e(30), { table: r, ui: i, edit: a, features: o, filters: s, exportOptions: c, labels: l, renderDetails: u, renderDetailsEstHeight: d, overscan: f, resetSettings: p, scrollToRow: m, scrollerRef: h, size: g, children: _, className: v, style: y, id: b, "data-testid": x } = t, S = g === void 0 ? "md" : g, C = r.options.meta?.rowHeight ?? tc[S], w = nc[S], T;
7164
7192
  n[0] !== a || n[1] !== c || n[2] !== o || n[3] !== s || n[4] !== l || n[5] !== f || n[6] !== u || n[7] !== d || n[8] !== p || n[9] !== C || n[10] !== m || n[11] !== h || n[12] !== S || n[13] !== w || n[14] !== r || n[15] !== i ? (T = {
7165
7193
  table: r,
7166
7194
  ui: i,
@@ -7192,23 +7220,23 @@ function nc(t) {
7192
7220
  children: _
7193
7221
  }), n[19] = _, n[20] = b, n[21] = S, n[22] = y, n[23] = O, n[24] = x, n[25] = k) : k = n[25];
7194
7222
  let A;
7195
- n[26] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ X(Gs, {}), n[26] = A) : A = n[26];
7223
+ n[26] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ X(Ks, {}), n[26] = A) : A = n[26];
7196
7224
  let j;
7197
7225
  return n[27] !== E || n[28] !== k ? (j = /* @__PURE__ */ Z(nt, {
7198
7226
  value: E,
7199
7227
  children: [k, A]
7200
7228
  }), n[27] = E, n[28] = k, n[29] = j) : j = n[29], j;
7201
7229
  }
7202
- var rc = Object.assign(nc, {
7203
- Toolbar: Fs,
7204
- Spacer: Is,
7205
- SummaryCount: Rs,
7206
- LoadingIndicator: Ls,
7230
+ var ic = Object.assign(rc, {
7231
+ Toolbar: Is,
7232
+ Spacer: Ls,
7233
+ SummaryCount: zs,
7234
+ LoadingIndicator: Rs,
7207
7235
  Search: Za,
7208
7236
  DraftActions: cr,
7209
7237
  Menu: Xa,
7210
- FilterButton: zs,
7211
- Table: Ns,
7238
+ FilterButton: Bs,
7239
+ Table: Ps,
7212
7240
  Footer: Ra,
7213
7241
  FilterPanel: wr,
7214
7242
  FilterPills: wa,
@@ -7216,7 +7244,7 @@ var rc = Object.assign(nc, {
7216
7244
  });
7217
7245
  //#endregion
7218
7246
  //#region src/components/filters/DgRangeSliderFilter.tsx
7219
- function ic(t) {
7247
+ function ac(t) {
7220
7248
  let n = e(26), { column: r, operator: i, value: a, onChange: o, size: s, labels: c } = t;
7221
7249
  if (!yt(i)) {
7222
7250
  let e;
@@ -7266,7 +7294,7 @@ function ic(t) {
7266
7294
  }
7267
7295
  //#endregion
7268
7296
  //#region src/components/filters/DgDateRangeFilter.tsx
7269
- function ac(t) {
7297
+ function oc(t) {
7270
7298
  let n = e(32), { operator: r, value: i, onChange: a, size: o, labels: s } = t;
7271
7299
  if (!yt(r)) {
7272
7300
  let e;
@@ -7319,7 +7347,7 @@ function ac(t) {
7319
7347
  }
7320
7348
  //#endregion
7321
7349
  //#region src/components/filters/DgAutocompleteFilter.tsx
7322
- function oc(t) {
7350
+ function sc(t) {
7323
7351
  let n = e(21), { column: r, table: i, operator: a, value: o, onChange: s, options: c, size: l, labels: d } = t;
7324
7352
  if (vt(a) || yt(a)) {
7325
7353
  let e;
@@ -7339,7 +7367,7 @@ function oc(t) {
7339
7367
  width: 180
7340
7368
  }), n[8] = t, n[9] = d.filterValue, n[10] = g) : g = n[10];
7341
7369
  let _ = !p, v = p && t.layout !== "header" ? d.filterValuePlaceholder : "", y;
7342
- n[11] === h ? y = n[12] : (y = h.map(sc), n[11] = h, n[12] = y);
7370
+ n[11] === h ? y = n[12] : (y = h.map(cc), n[11] = h, n[12] = y);
7343
7371
  let b = p && typeof o == "string" ? o : "", x;
7344
7372
  return n[13] !== s || n[14] !== l || n[15] !== g || n[16] !== _ || n[17] !== v || n[18] !== y || n[19] !== b ? (x = /* @__PURE__ */ X(u, {
7345
7373
  ...g,
@@ -7352,12 +7380,12 @@ function oc(t) {
7352
7380
  onChange: s
7353
7381
  }), n[13] = s, n[14] = l, n[15] = g, n[16] = _, n[17] = v, n[18] = y, n[19] = b, n[20] = x) : x = n[20], x;
7354
7382
  }
7355
- function sc(e) {
7383
+ function cc(e) {
7356
7384
  return e.value;
7357
7385
  }
7358
7386
  //#endregion
7359
7387
  //#region src/components/filters/DgTriStateFilter.tsx
7360
- function cc(t) {
7388
+ function lc(t) {
7361
7389
  let n = e(29), { operator: r, value: i, onChange: a, size: o, labels: s } = t;
7362
7390
  if (vt(r) || yt(r)) {
7363
7391
  let e;
@@ -7407,7 +7435,7 @@ function cc(t) {
7407
7435
  }
7408
7436
  //#endregion
7409
7437
  //#region src/core/labelsSv.ts
7410
- var lc = {
7438
+ var uc = {
7411
7439
  operators: {
7412
7440
  contains: "innehåller",
7413
7441
  equals: "är lika med",
@@ -7531,7 +7559,7 @@ var lc = {
7531
7559
  };
7532
7560
  //#endregion
7533
7561
  //#region src/core/summary.ts
7534
- function uc({ table: e, columnId: t, fn: n = "sum" }) {
7562
+ function dc({ table: e, columnId: t, fn: n = "sum" }) {
7535
7563
  let r = e, i = r.getColumn(t);
7536
7564
  if (!i) return;
7537
7565
  let a = {
@@ -7545,6 +7573,6 @@ function uc({ table: e, columnId: t, fn: n = "sum" }) {
7545
7573
  return ve[n].aggregate(a);
7546
7574
  }
7547
7575
  //#endregion
7548
- export { Rr as DATA_STATE_SLICES, aa as DEFAULT_CELL_EXPORT_OPTIONS, Wi as DEFAULT_EXPORT_OPTIONS, $s as DEFAULT_TMDATAGRID_SIZE, It as DETAILS_COLUMN_ID, oc as DgAutocompleteFilter, ac as DgDateRangeFilter, ic as DgRangeSliderFilter, cc as DgTriStateFilter, tn as EDIT_COLUMN_ID, it as FILTER_OPERATOR_LABELS, cn as GROUP_COLUMN_ID, Br as PERSIST_PAYLOAD_VERSION, gn as ROW_NUMBER_COLUMN_ID, kn as SELECT_COLUMN_ID, zr as SETTINGS_STATE_SLICES, tc as SIZE_CONTROL_SIZE, ec as SIZE_ROW_HEIGHT, Ir as TMDATAGRID_LABELS_EN, lc as TMDATAGRID_LABELS_SV, rc as TMDataGrid, Xo as TMDataGridBooleanEditor, Zo as TMDataGridDateEditor, cr as TMDataGridDraftActions, wa as TMDataGridFilterPills, _r as TMDataGridFilterValueInput, Qo as TMDataGridMultiSelectEditor, $o as TMDataGridNumberEditor, Za as TMDataGridSearch, es as TMDataGridSelectEditor, ts as TMDataGridStringEditor, wt as activeColumnFilters, uc as aggregateColumn, Pt as areAllRowsExpanded, So as autosizeColumn, bs as boundsCellCount, xs as boundsEdges, ca as buildCellMatrix, $i as buildExportData, la as buildGridCellMatrix, Gt as clearedValueForType, Zi as countSelectedExportRows, ha as createTMDataGridColumnHelper, zi as csvExcelFormat, Bi as csvFormat, ia as downloadFile, fa as downloadTextFile, bt as emptyValueForOperator, ta as exportGrid, da as exportGridToCsv, St as filterValueShape, Mi as formatExportValue, Tt as formatFilterLabel, dn as formatGroupValue, oa as fromCellExportOptions, Mr as fuzzyGlobalFilterFn, ui as getColumnCapabilities, Rn as getColumnDefaultOperator, zn as getColumnFilterControl, Fn as getColumnLabel, Ln as getColumnOperators, Co as getColumnRegion, In as getColumnType, gt as getDefaultOperator, Tn as getDisplayedRows, Wt as getEditFieldName, qi as getExportableColumns, di as getGridCapabilities, sn as getGroupDataRows, ht as getOperatorsForType, Dn as getSelectableRowIds, ko as getStepTargetColumn, ja as getTMDataGridPaginationApi, Pi as guardFormula, Vn as isColumnEditableForRow, Gn as isColumnReorderable, Un as isControlColumn, Ct as isFilterActive, Wn as isGeneratedColumn, En as isPagingActive, hi as isSameCell, ys as isWithinBounds, Ui as jsonFormat, Do as keepGeneratedColumnsOutermost, xo as measureColumnContentWidth, Lr as mergeLabels, Eo as moveColumn, Ao as moveColumnByStep, en as normalizeFieldValidate, Ca as openColumnFilter, _t as operatorNeedsValue, vt as operatorTakesArrayValue, yt as operatorTakesRangeValue, hr as optionsToComboboxData, li as readFeatureFlags, pi as resolveCellMove, mr as resolveColumnOptions, Ft as resolveExpandAll, Gi as resolveExportOptions, vs as resolveRangeBounds, On as resolveRowSelectionClick, ma as tmDataGridFeatures, na as toClipboardText, ua as toExcelCsv, Vi as tsvFormat, xa as useTMDataGrid, $ as useTMDataGridContext, za as useTMDataGridExport, ra as writeClipboardText, ea as writeExportFile };
7576
+ export { Rr as DATA_STATE_SLICES, aa as DEFAULT_CELL_EXPORT_OPTIONS, Wi as DEFAULT_EXPORT_OPTIONS, ec as DEFAULT_TMDATAGRID_SIZE, It as DETAILS_COLUMN_ID, sc as DgAutocompleteFilter, oc as DgDateRangeFilter, ac as DgRangeSliderFilter, lc as DgTriStateFilter, tn as EDIT_COLUMN_ID, it as FILTER_OPERATOR_LABELS, cn as GROUP_COLUMN_ID, Br as PERSIST_PAYLOAD_VERSION, gn as ROW_NUMBER_COLUMN_ID, kn as SELECT_COLUMN_ID, zr as SETTINGS_STATE_SLICES, nc as SIZE_CONTROL_SIZE, tc as SIZE_ROW_HEIGHT, Ir as TMDATAGRID_LABELS_EN, uc as TMDATAGRID_LABELS_SV, ic as TMDataGrid, Xo as TMDataGridBooleanEditor, Zo as TMDataGridDateEditor, cr as TMDataGridDraftActions, wa as TMDataGridFilterPills, _r as TMDataGridFilterValueInput, Qo as TMDataGridMultiSelectEditor, $o as TMDataGridNumberEditor, Za as TMDataGridSearch, es as TMDataGridSelectEditor, ts as TMDataGridStringEditor, wt as activeColumnFilters, dc as aggregateColumn, Pt as areAllRowsExpanded, So as autosizeColumn, xs as boundsCellCount, Ss as boundsEdges, ca as buildCellMatrix, $i as buildExportData, la as buildGridCellMatrix, Gt as clearedValueForType, Zi as countSelectedExportRows, ha as createTMDataGridColumnHelper, zi as csvExcelFormat, Bi as csvFormat, ia as downloadFile, fa as downloadTextFile, bt as emptyValueForOperator, ta as exportGrid, da as exportGridToCsv, St as filterValueShape, Mi as formatExportValue, Tt as formatFilterLabel, dn as formatGroupValue, oa as fromCellExportOptions, Mr as fuzzyGlobalFilterFn, ui as getColumnCapabilities, Rn as getColumnDefaultOperator, zn as getColumnFilterControl, Fn as getColumnLabel, Ln as getColumnOperators, Co as getColumnRegion, In as getColumnType, gt as getDefaultOperator, Tn as getDisplayedRows, Wt as getEditFieldName, qi as getExportableColumns, di as getGridCapabilities, sn as getGroupDataRows, ht as getOperatorsForType, Dn as getSelectableRowIds, ko as getStepTargetColumn, ja as getTMDataGridPaginationApi, Pi as guardFormula, Vn as isColumnEditableForRow, Gn as isColumnReorderable, Un as isControlColumn, Ct as isFilterActive, Wn as isGeneratedColumn, En as isPagingActive, hi as isSameCell, bs as isWithinBounds, Ui as jsonFormat, Do as keepGeneratedColumnsOutermost, xo as measureColumnContentWidth, Lr as mergeLabels, Eo as moveColumn, Ao as moveColumnByStep, en as normalizeFieldValidate, Ca as openColumnFilter, _t as operatorNeedsValue, vt as operatorTakesArrayValue, yt as operatorTakesRangeValue, hr as optionsToComboboxData, li as readFeatureFlags, pi as resolveCellMove, mr as resolveColumnOptions, Ft as resolveExpandAll, Gi as resolveExportOptions, ys as resolveRangeBounds, On as resolveRowSelectionClick, ma as tmDataGridFeatures, na as toClipboardText, ua as toExcelCsv, Vi as tsvFormat, xa as useTMDataGrid, $ as useTMDataGridContext, za as useTMDataGridExport, ra as writeClipboardText, ea as writeExportFile };
7549
7577
 
7550
7578
  //# sourceMappingURL=index.js.map