@hpcc-js/dgrid2 3.2.9 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +257 -238
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +7 -7
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
4
|
-
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
5
3
|
import { format, timeParse, timeFormat, HTMLWidget } from "@hpcc-js/common";
|
|
6
4
|
const PKG_NAME = "@hpcc-js/dgrid2";
|
|
7
5
|
const PKG_VERSION = "3.1.1";
|
|
@@ -463,7 +461,7 @@ function requireReact_production() {
|
|
|
463
461
|
react_production.useTransition = function() {
|
|
464
462
|
return ReactSharedInternals.H.useTransition();
|
|
465
463
|
};
|
|
466
|
-
react_production.version = "19.1.
|
|
464
|
+
react_production.version = "19.1.1";
|
|
467
465
|
return react_production;
|
|
468
466
|
}
|
|
469
467
|
__name(requireReact_production, "requireReact_production");
|
|
@@ -483,7 +481,7 @@ function requireReact_development() {
|
|
|
483
481
|
if (hasRequiredReact_development) return react_development.exports;
|
|
484
482
|
hasRequiredReact_development = 1;
|
|
485
483
|
(function(module, exports) {
|
|
486
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
484
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
487
485
|
function defineDeprecationWarning(methodName, info) {
|
|
488
486
|
Object.defineProperty(Component.prototype, methodName, {
|
|
489
487
|
get: /* @__PURE__ */ __name(function() {
|
|
@@ -1022,13 +1020,16 @@ function requireReact_development() {
|
|
|
1022
1020
|
return null;
|
|
1023
1021
|
};
|
|
1024
1022
|
deprecatedAPIs = {
|
|
1025
|
-
|
|
1023
|
+
react_stack_bottom_frame: /* @__PURE__ */ __name(function(callStackForError) {
|
|
1026
1024
|
return callStackForError();
|
|
1027
|
-
}, "
|
|
1025
|
+
}, "react_stack_bottom_frame")
|
|
1028
1026
|
};
|
|
1029
1027
|
var specialPropKeyWarningShown, didWarnAboutOldJSXRuntime;
|
|
1030
1028
|
var didWarnAboutElementRef = {};
|
|
1031
|
-
var unknownOwnerDebugStack = deprecatedAPIs
|
|
1029
|
+
var unknownOwnerDebugStack = deprecatedAPIs.react_stack_bottom_frame.bind(
|
|
1030
|
+
deprecatedAPIs,
|
|
1031
|
+
UnknownOwner
|
|
1032
|
+
)();
|
|
1032
1033
|
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
1033
1034
|
var didWarnAboutMaps = false, userProvidedKeyEscapeRegex = /\/+/g, reportGlobalError = "function" === typeof reportError ? reportError : function(error) {
|
|
1034
1035
|
if ("object" === typeof window && "function" === typeof window.ErrorEvent) {
|
|
@@ -1445,19 +1446,26 @@ function requireReact_development() {
|
|
|
1445
1446
|
exports.useTransition = function() {
|
|
1446
1447
|
return resolveDispatcher().useTransition();
|
|
1447
1448
|
};
|
|
1448
|
-
exports.version = "19.1.
|
|
1449
|
+
exports.version = "19.1.1";
|
|
1449
1450
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
1450
|
-
}();
|
|
1451
|
+
})();
|
|
1451
1452
|
})(react_development, react_development.exports);
|
|
1452
1453
|
return react_development.exports;
|
|
1453
1454
|
}
|
|
1454
1455
|
__name(requireReact_development, "requireReact_development");
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1456
|
+
var hasRequiredReact;
|
|
1457
|
+
function requireReact() {
|
|
1458
|
+
if (hasRequiredReact) return react.exports;
|
|
1459
|
+
hasRequiredReact = 1;
|
|
1460
|
+
if (process.env.NODE_ENV === "production") {
|
|
1461
|
+
react.exports = requireReact_production();
|
|
1462
|
+
} else {
|
|
1463
|
+
react.exports = requireReact_development();
|
|
1464
|
+
}
|
|
1465
|
+
return react.exports;
|
|
1459
1466
|
}
|
|
1460
|
-
|
|
1467
|
+
__name(requireReact, "requireReact");
|
|
1468
|
+
var reactExports = requireReact();
|
|
1461
1469
|
const React = /* @__PURE__ */ getDefaultExportFromCjs(reactExports);
|
|
1462
1470
|
var client = { exports: {} };
|
|
1463
1471
|
var reactDomClient_production = {};
|
|
@@ -1752,7 +1760,7 @@ function requireScheduler_development() {
|
|
|
1752
1760
|
if (hasRequiredScheduler_development) return scheduler_development;
|
|
1753
1761
|
hasRequiredScheduler_development = 1;
|
|
1754
1762
|
(function(exports) {
|
|
1755
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
1763
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
1756
1764
|
function performWorkUntilDeadline() {
|
|
1757
1765
|
needsPaint = false;
|
|
1758
1766
|
if (isMessageLoopRunning) {
|
|
@@ -2012,7 +2020,7 @@ function requireScheduler_development() {
|
|
|
2012
2020
|
};
|
|
2013
2021
|
};
|
|
2014
2022
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2015
|
-
}();
|
|
2023
|
+
})();
|
|
2016
2024
|
})(scheduler_development);
|
|
2017
2025
|
return scheduler_development;
|
|
2018
2026
|
}
|
|
@@ -2044,7 +2052,7 @@ var hasRequiredReactDom_production;
|
|
|
2044
2052
|
function requireReactDom_production() {
|
|
2045
2053
|
if (hasRequiredReactDom_production) return reactDom_production;
|
|
2046
2054
|
hasRequiredReactDom_production = 1;
|
|
2047
|
-
var React2 =
|
|
2055
|
+
var React2 = requireReact();
|
|
2048
2056
|
function formatProdErrorMessage(code) {
|
|
2049
2057
|
var url = "https://react.dev/errors/" + code;
|
|
2050
2058
|
if (1 < arguments.length) {
|
|
@@ -2188,7 +2196,7 @@ function requireReactDom_production() {
|
|
|
2188
2196
|
reactDom_production.useFormStatus = function() {
|
|
2189
2197
|
return ReactSharedInternals.H.useHostTransitionStatus();
|
|
2190
2198
|
};
|
|
2191
|
-
reactDom_production.version = "19.1.
|
|
2199
|
+
reactDom_production.version = "19.1.1";
|
|
2192
2200
|
return reactDom_production;
|
|
2193
2201
|
}
|
|
2194
2202
|
__name(requireReactDom_production, "requireReactDom_production");
|
|
@@ -2206,7 +2214,7 @@ var hasRequiredReactDom_development;
|
|
|
2206
2214
|
function requireReactDom_development() {
|
|
2207
2215
|
if (hasRequiredReactDom_development) return reactDom_development;
|
|
2208
2216
|
hasRequiredReactDom_development = 1;
|
|
2209
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
2217
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
2210
2218
|
function noop() {
|
|
2211
2219
|
}
|
|
2212
2220
|
__name(noop, "noop");
|
|
@@ -2258,7 +2266,7 @@ function requireReactDom_development() {
|
|
|
2258
2266
|
}
|
|
2259
2267
|
__name(resolveDispatcher, "resolveDispatcher");
|
|
2260
2268
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
2261
|
-
var React2 =
|
|
2269
|
+
var React2 = requireReact(), Internals = {
|
|
2262
2270
|
d: {
|
|
2263
2271
|
f: noop,
|
|
2264
2272
|
r: /* @__PURE__ */ __name(function() {
|
|
@@ -2447,9 +2455,9 @@ function requireReactDom_development() {
|
|
|
2447
2455
|
reactDom_development.useFormStatus = function() {
|
|
2448
2456
|
return resolveDispatcher().useHostTransitionStatus();
|
|
2449
2457
|
};
|
|
2450
|
-
reactDom_development.version = "19.1.
|
|
2458
|
+
reactDom_development.version = "19.1.1";
|
|
2451
2459
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
2452
|
-
}();
|
|
2460
|
+
})();
|
|
2453
2461
|
return reactDom_development;
|
|
2454
2462
|
}
|
|
2455
2463
|
__name(requireReactDom_development, "requireReactDom_development");
|
|
@@ -2457,7 +2465,7 @@ var hasRequiredReactDom;
|
|
|
2457
2465
|
function requireReactDom() {
|
|
2458
2466
|
if (hasRequiredReactDom) return reactDom.exports;
|
|
2459
2467
|
hasRequiredReactDom = 1;
|
|
2460
|
-
function
|
|
2468
|
+
function checkDCE() {
|
|
2461
2469
|
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
|
|
2462
2470
|
return;
|
|
2463
2471
|
}
|
|
@@ -2465,14 +2473,14 @@ function requireReactDom() {
|
|
|
2465
2473
|
throw new Error("^_^");
|
|
2466
2474
|
}
|
|
2467
2475
|
try {
|
|
2468
|
-
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(
|
|
2476
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
2469
2477
|
} catch (err) {
|
|
2470
2478
|
console.error(err);
|
|
2471
2479
|
}
|
|
2472
2480
|
}
|
|
2473
|
-
__name(
|
|
2481
|
+
__name(checkDCE, "checkDCE");
|
|
2474
2482
|
if (process.env.NODE_ENV === "production") {
|
|
2475
|
-
|
|
2483
|
+
checkDCE();
|
|
2476
2484
|
reactDom.exports = requireReactDom_production();
|
|
2477
2485
|
} else {
|
|
2478
2486
|
reactDom.exports = requireReactDom_development();
|
|
@@ -2493,7 +2501,7 @@ var hasRequiredReactDomClient_production;
|
|
|
2493
2501
|
function requireReactDomClient_production() {
|
|
2494
2502
|
if (hasRequiredReactDomClient_production) return reactDomClient_production;
|
|
2495
2503
|
hasRequiredReactDomClient_production = 1;
|
|
2496
|
-
var Scheduler = requireScheduler(), React2 =
|
|
2504
|
+
var Scheduler = requireScheduler(), React2 = requireReact(), ReactDOM = requireReactDom();
|
|
2497
2505
|
function formatProdErrorMessage(code) {
|
|
2498
2506
|
var url = "https://react.dev/errors/" + code;
|
|
2499
2507
|
if (1 < arguments.length) {
|
|
@@ -13941,12 +13949,12 @@ function requireReactDomClient_production() {
|
|
|
13941
13949
|
}
|
|
13942
13950
|
};
|
|
13943
13951
|
var isomorphicReactPackageVersion$jscomp$inline_1785 = React2.version;
|
|
13944
|
-
if ("19.1.
|
|
13952
|
+
if ("19.1.1" !== isomorphicReactPackageVersion$jscomp$inline_1785)
|
|
13945
13953
|
throw Error(
|
|
13946
13954
|
formatProdErrorMessage(
|
|
13947
13955
|
527,
|
|
13948
13956
|
isomorphicReactPackageVersion$jscomp$inline_1785,
|
|
13949
|
-
"19.1.
|
|
13957
|
+
"19.1.1"
|
|
13950
13958
|
)
|
|
13951
13959
|
);
|
|
13952
13960
|
ReactDOMSharedInternals.findDOMNode = function(componentOrElement) {
|
|
@@ -13964,10 +13972,10 @@ function requireReactDomClient_production() {
|
|
|
13964
13972
|
};
|
|
13965
13973
|
var internals$jscomp$inline_2256 = {
|
|
13966
13974
|
bundleType: 0,
|
|
13967
|
-
version: "19.1.
|
|
13975
|
+
version: "19.1.1",
|
|
13968
13976
|
rendererPackageName: "react-dom",
|
|
13969
13977
|
currentDispatcherRef: ReactSharedInternals,
|
|
13970
|
-
reconcilerVersion: "19.1.
|
|
13978
|
+
reconcilerVersion: "19.1.1"
|
|
13971
13979
|
};
|
|
13972
13980
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
13973
13981
|
var hook$jscomp$inline_2257 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -14034,7 +14042,7 @@ function requireReactDomClient_production() {
|
|
|
14034
14042
|
listenToAllSupportedEvents(container);
|
|
14035
14043
|
return new ReactDOMHydrationRoot(initialChildren);
|
|
14036
14044
|
};
|
|
14037
|
-
reactDomClient_production.version = "19.1.
|
|
14045
|
+
reactDomClient_production.version = "19.1.1";
|
|
14038
14046
|
return reactDomClient_production;
|
|
14039
14047
|
}
|
|
14040
14048
|
__name(requireReactDomClient_production, "requireReactDomClient_production");
|
|
@@ -14052,7 +14060,7 @@ var hasRequiredReactDomClient_development;
|
|
|
14052
14060
|
function requireReactDomClient_development() {
|
|
14053
14061
|
if (hasRequiredReactDomClient_development) return reactDomClient_development;
|
|
14054
14062
|
hasRequiredReactDomClient_development = 1;
|
|
14055
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
14063
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
14056
14064
|
function findHook(fiber, id) {
|
|
14057
14065
|
for (fiber = fiber.memoizedState; null !== fiber && 0 < id; )
|
|
14058
14066
|
fiber = fiber.next, id--;
|
|
@@ -15218,7 +15226,7 @@ function requireReactDomClient_development() {
|
|
|
15218
15226
|
error.startsWith("Error: react-stack-top-frame\n") && (error = error.slice(29));
|
|
15219
15227
|
prevPrepareStackTrace = error.indexOf("\n");
|
|
15220
15228
|
-1 !== prevPrepareStackTrace && (error = error.slice(prevPrepareStackTrace + 1));
|
|
15221
|
-
prevPrepareStackTrace = error.indexOf("
|
|
15229
|
+
prevPrepareStackTrace = error.indexOf("react_stack_bottom_frame");
|
|
15222
15230
|
-1 !== prevPrepareStackTrace && (prevPrepareStackTrace = error.lastIndexOf(
|
|
15223
15231
|
"\n",
|
|
15224
15232
|
prevPrepareStackTrace
|
|
@@ -29653,7 +29661,7 @@ function requireReactDomClient_development() {
|
|
|
29653
29661
|
}
|
|
29654
29662
|
__name(warnIfReactDOMContainerInDEV, "warnIfReactDOMContainerInDEV");
|
|
29655
29663
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
29656
|
-
var Scheduler = requireScheduler(), React2 =
|
|
29664
|
+
var Scheduler = requireScheduler(), React2 = requireReact(), ReactDOM = requireReactDom(), assign = Object.assign, REACT_LEGACY_ELEMENT_TYPE = Symbol.for("react.element"), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler"), REACT_PROVIDER_TYPE = Symbol.for("react.provider"), REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy");
|
|
29657
29665
|
var REACT_ACTIVITY_TYPE = Symbol.for("react.activity");
|
|
29658
29666
|
var REACT_MEMO_CACHE_SENTINEL = Symbol.for("react.memo_cache_sentinel");
|
|
29659
29667
|
var MAYBE_ITERATOR_SYMBOL = Symbol.iterator, REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), isArrayImpl = Array.isArray, ReactSharedInternals = React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, ReactDOMSharedInternals = ReactDOM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, NotPending = Object.freeze({
|
|
@@ -31853,7 +31861,7 @@ function requireReactDomClient_development() {
|
|
|
31853
31861
|
}, "useCacheRefresh")
|
|
31854
31862
|
};
|
|
31855
31863
|
var callComponent = {
|
|
31856
|
-
|
|
31864
|
+
react_stack_bottom_frame: /* @__PURE__ */ __name(function(Component, props, secondArg) {
|
|
31857
31865
|
var wasRendering = isRendering;
|
|
31858
31866
|
isRendering = true;
|
|
31859
31867
|
try {
|
|
@@ -31861,9 +31869,9 @@ function requireReactDomClient_development() {
|
|
|
31861
31869
|
} finally {
|
|
31862
31870
|
isRendering = wasRendering;
|
|
31863
31871
|
}
|
|
31864
|
-
}, "
|
|
31865
|
-
}, callComponentInDEV = callComponent
|
|
31866
|
-
|
|
31872
|
+
}, "react_stack_bottom_frame")
|
|
31873
|
+
}, callComponentInDEV = callComponent.react_stack_bottom_frame.bind(callComponent), callRender = {
|
|
31874
|
+
react_stack_bottom_frame: /* @__PURE__ */ __name(function(instance) {
|
|
31867
31875
|
var wasRendering = isRendering;
|
|
31868
31876
|
isRendering = true;
|
|
31869
31877
|
try {
|
|
@@ -31871,40 +31879,48 @@ function requireReactDomClient_development() {
|
|
|
31871
31879
|
} finally {
|
|
31872
31880
|
isRendering = wasRendering;
|
|
31873
31881
|
}
|
|
31874
|
-
}, "
|
|
31875
|
-
}, callRenderInDEV = callRender
|
|
31876
|
-
|
|
31882
|
+
}, "react_stack_bottom_frame")
|
|
31883
|
+
}, callRenderInDEV = callRender.react_stack_bottom_frame.bind(callRender), callComponentDidMount = {
|
|
31884
|
+
react_stack_bottom_frame: /* @__PURE__ */ __name(function(finishedWork, instance) {
|
|
31877
31885
|
try {
|
|
31878
31886
|
instance.componentDidMount();
|
|
31879
31887
|
} catch (error) {
|
|
31880
31888
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
31881
31889
|
}
|
|
31882
|
-
}, "
|
|
31883
|
-
}, callComponentDidMountInDEV = callComponentDidMount
|
|
31884
|
-
|
|
31890
|
+
}, "react_stack_bottom_frame")
|
|
31891
|
+
}, callComponentDidMountInDEV = callComponentDidMount.react_stack_bottom_frame.bind(
|
|
31892
|
+
callComponentDidMount
|
|
31893
|
+
), callComponentDidUpdate = {
|
|
31894
|
+
react_stack_bottom_frame: /* @__PURE__ */ __name(function(finishedWork, instance, prevProps, prevState, snapshot) {
|
|
31885
31895
|
try {
|
|
31886
31896
|
instance.componentDidUpdate(prevProps, prevState, snapshot);
|
|
31887
31897
|
} catch (error) {
|
|
31888
31898
|
captureCommitPhaseError(finishedWork, finishedWork.return, error);
|
|
31889
31899
|
}
|
|
31890
|
-
}, "
|
|
31891
|
-
}, callComponentDidUpdateInDEV = callComponentDidUpdate
|
|
31892
|
-
|
|
31900
|
+
}, "react_stack_bottom_frame")
|
|
31901
|
+
}, callComponentDidUpdateInDEV = callComponentDidUpdate.react_stack_bottom_frame.bind(
|
|
31902
|
+
callComponentDidUpdate
|
|
31903
|
+
), callComponentDidCatch = {
|
|
31904
|
+
react_stack_bottom_frame: /* @__PURE__ */ __name(function(instance, errorInfo) {
|
|
31893
31905
|
var stack = errorInfo.stack;
|
|
31894
31906
|
instance.componentDidCatch(errorInfo.value, {
|
|
31895
31907
|
componentStack: null !== stack ? stack : ""
|
|
31896
31908
|
});
|
|
31897
|
-
}, "
|
|
31898
|
-
}, callComponentDidCatchInDEV = callComponentDidCatch
|
|
31899
|
-
|
|
31909
|
+
}, "react_stack_bottom_frame")
|
|
31910
|
+
}, callComponentDidCatchInDEV = callComponentDidCatch.react_stack_bottom_frame.bind(
|
|
31911
|
+
callComponentDidCatch
|
|
31912
|
+
), callComponentWillUnmount = {
|
|
31913
|
+
react_stack_bottom_frame: /* @__PURE__ */ __name(function(current2, nearestMountedAncestor, instance) {
|
|
31900
31914
|
try {
|
|
31901
31915
|
instance.componentWillUnmount();
|
|
31902
31916
|
} catch (error) {
|
|
31903
31917
|
captureCommitPhaseError(current2, nearestMountedAncestor, error);
|
|
31904
31918
|
}
|
|
31905
|
-
}, "
|
|
31906
|
-
}, callComponentWillUnmountInDEV = callComponentWillUnmount
|
|
31907
|
-
|
|
31919
|
+
}, "react_stack_bottom_frame")
|
|
31920
|
+
}, callComponentWillUnmountInDEV = callComponentWillUnmount.react_stack_bottom_frame.bind(
|
|
31921
|
+
callComponentWillUnmount
|
|
31922
|
+
), callCreate = {
|
|
31923
|
+
react_stack_bottom_frame: /* @__PURE__ */ __name(function(effect) {
|
|
31908
31924
|
null != effect.resourceKind && console.error(
|
|
31909
31925
|
"Expected only SimpleEffects when enableUseEffectCRUDOverload is disabled, got %s",
|
|
31910
31926
|
effect.resourceKind
|
|
@@ -31913,21 +31929,21 @@ function requireReactDomClient_development() {
|
|
|
31913
31929
|
effect = effect.inst;
|
|
31914
31930
|
create = create();
|
|
31915
31931
|
return effect.destroy = create;
|
|
31916
|
-
}, "
|
|
31917
|
-
}, callCreateInDEV = callCreate
|
|
31918
|
-
|
|
31932
|
+
}, "react_stack_bottom_frame")
|
|
31933
|
+
}, callCreateInDEV = callCreate.react_stack_bottom_frame.bind(callCreate), callDestroy = {
|
|
31934
|
+
react_stack_bottom_frame: /* @__PURE__ */ __name(function(current2, nearestMountedAncestor, destroy) {
|
|
31919
31935
|
try {
|
|
31920
31936
|
destroy();
|
|
31921
31937
|
} catch (error) {
|
|
31922
31938
|
captureCommitPhaseError(current2, nearestMountedAncestor, error);
|
|
31923
31939
|
}
|
|
31924
|
-
}, "
|
|
31925
|
-
}, callDestroyInDEV = callDestroy
|
|
31926
|
-
|
|
31940
|
+
}, "react_stack_bottom_frame")
|
|
31941
|
+
}, callDestroyInDEV = callDestroy.react_stack_bottom_frame.bind(callDestroy), callLazyInit = {
|
|
31942
|
+
react_stack_bottom_frame: /* @__PURE__ */ __name(function(lazy) {
|
|
31927
31943
|
var init = lazy._init;
|
|
31928
31944
|
return init(lazy._payload);
|
|
31929
|
-
}, "
|
|
31930
|
-
}, callLazyInitInDEV = callLazyInit
|
|
31945
|
+
}, "react_stack_bottom_frame")
|
|
31946
|
+
}, callLazyInitInDEV = callLazyInit.react_stack_bottom_frame.bind(callLazyInit), thenableState = null, thenableIndexCounter = 0, currentDebugInfo = null, didWarnAboutMaps;
|
|
31931
31947
|
var didWarnAboutGenerators = didWarnAboutMaps = false;
|
|
31932
31948
|
var ownerHasKeyUseWarning = {};
|
|
31933
31949
|
var ownerHasFunctionTypeWarning = {};
|
|
@@ -32371,9 +32387,9 @@ function requireReactDomClient_development() {
|
|
|
32371
32387
|
};
|
|
32372
32388
|
(function() {
|
|
32373
32389
|
var isomorphicReactPackageVersion = React2.version;
|
|
32374
|
-
if ("19.1.
|
|
32390
|
+
if ("19.1.1" !== isomorphicReactPackageVersion)
|
|
32375
32391
|
throw Error(
|
|
32376
|
-
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.1.
|
|
32392
|
+
'Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:\n - react: ' + (isomorphicReactPackageVersion + "\n - react-dom: 19.1.1\nLearn more: https://react.dev/warnings/version-mismatch")
|
|
32377
32393
|
);
|
|
32378
32394
|
})();
|
|
32379
32395
|
"function" === typeof Map && null != Map.prototype && "function" === typeof Map.prototype.forEach && "function" === typeof Set && null != Set.prototype && "function" === typeof Set.prototype.clear && "function" === typeof Set.prototype.forEach || console.error(
|
|
@@ -32394,13 +32410,13 @@ function requireReactDomClient_development() {
|
|
|
32394
32410
|
componentOrElement = null === componentOrElement ? null : componentOrElement.stateNode;
|
|
32395
32411
|
return componentOrElement;
|
|
32396
32412
|
};
|
|
32397
|
-
if (!function() {
|
|
32413
|
+
if (!(function() {
|
|
32398
32414
|
var internals = {
|
|
32399
32415
|
bundleType: 1,
|
|
32400
|
-
version: "19.1.
|
|
32416
|
+
version: "19.1.1",
|
|
32401
32417
|
rendererPackageName: "react-dom",
|
|
32402
32418
|
currentDispatcherRef: ReactSharedInternals,
|
|
32403
|
-
reconcilerVersion: "19.1.
|
|
32419
|
+
reconcilerVersion: "19.1.1"
|
|
32404
32420
|
};
|
|
32405
32421
|
internals.overrideHookState = overrideHookState;
|
|
32406
32422
|
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
|
|
@@ -32418,7 +32434,7 @@ function requireReactDomClient_development() {
|
|
|
32418
32434
|
internals.getLaneLabelMap = getLaneLabelMap;
|
|
32419
32435
|
internals.injectProfilingHooks = injectProfilingHooks;
|
|
32420
32436
|
return injectInternals(internals);
|
|
32421
|
-
}() && canUseDOM && window.top === window.self && (-1 < navigator.userAgent.indexOf("Chrome") && -1 === navigator.userAgent.indexOf("Edge") || -1 < navigator.userAgent.indexOf("Firefox"))) {
|
|
32437
|
+
})() && canUseDOM && window.top === window.self && (-1 < navigator.userAgent.indexOf("Chrome") && -1 === navigator.userAgent.indexOf("Edge") || -1 < navigator.userAgent.indexOf("Firefox"))) {
|
|
32422
32438
|
var protocol = window.location.protocol;
|
|
32423
32439
|
/^(https?|file):$/.test(protocol) && console.info(
|
|
32424
32440
|
"%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools" + ("file:" === protocol ? "\nYou might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq" : ""),
|
|
@@ -32491,33 +32507,40 @@ function requireReactDomClient_development() {
|
|
|
32491
32507
|
listenToAllSupportedEvents(container);
|
|
32492
32508
|
return new ReactDOMHydrationRoot(initialChildren);
|
|
32493
32509
|
};
|
|
32494
|
-
reactDomClient_development.version = "19.1.
|
|
32510
|
+
reactDomClient_development.version = "19.1.1";
|
|
32495
32511
|
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
32496
|
-
}();
|
|
32512
|
+
})();
|
|
32497
32513
|
return reactDomClient_development;
|
|
32498
32514
|
}
|
|
32499
32515
|
__name(requireReactDomClient_development, "requireReactDomClient_development");
|
|
32500
|
-
|
|
32501
|
-
|
|
32502
|
-
|
|
32503
|
-
|
|
32504
|
-
|
|
32505
|
-
|
|
32516
|
+
var hasRequiredClient;
|
|
32517
|
+
function requireClient() {
|
|
32518
|
+
if (hasRequiredClient) return client.exports;
|
|
32519
|
+
hasRequiredClient = 1;
|
|
32520
|
+
function checkDCE() {
|
|
32521
|
+
if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === "undefined" || typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== "function") {
|
|
32522
|
+
return;
|
|
32523
|
+
}
|
|
32524
|
+
if (process.env.NODE_ENV !== "production") {
|
|
32525
|
+
throw new Error("^_^");
|
|
32526
|
+
}
|
|
32527
|
+
try {
|
|
32528
|
+
__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
|
|
32529
|
+
} catch (err) {
|
|
32530
|
+
console.error(err);
|
|
32531
|
+
}
|
|
32506
32532
|
}
|
|
32507
|
-
|
|
32508
|
-
|
|
32509
|
-
|
|
32510
|
-
|
|
32533
|
+
__name(checkDCE, "checkDCE");
|
|
32534
|
+
if (process.env.NODE_ENV === "production") {
|
|
32535
|
+
checkDCE();
|
|
32536
|
+
client.exports = requireReactDomClient_production();
|
|
32537
|
+
} else {
|
|
32538
|
+
client.exports = requireReactDomClient_development();
|
|
32511
32539
|
}
|
|
32540
|
+
return client.exports;
|
|
32512
32541
|
}
|
|
32513
|
-
__name(
|
|
32514
|
-
|
|
32515
|
-
checkDCE();
|
|
32516
|
-
client.exports = requireReactDomClient_production();
|
|
32517
|
-
} else {
|
|
32518
|
-
client.exports = requireReactDomClient_development();
|
|
32519
|
-
}
|
|
32520
|
-
var clientExports = client.exports;
|
|
32542
|
+
__name(requireClient, "requireClient");
|
|
32543
|
+
var clientExports = requireClient();
|
|
32521
32544
|
var jsxRuntime = { exports: {} };
|
|
32522
32545
|
var reactJsxRuntime_production = {};
|
|
32523
32546
|
/**
|
|
@@ -32573,7 +32596,7 @@ var hasRequiredReactJsxRuntime_development;
|
|
|
32573
32596
|
function requireReactJsxRuntime_development() {
|
|
32574
32597
|
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
32575
32598
|
hasRequiredReactJsxRuntime_development = 1;
|
|
32576
|
-
"production" !== process.env.NODE_ENV && function() {
|
|
32599
|
+
"production" !== process.env.NODE_ENV && (function() {
|
|
32577
32600
|
function getComponentNameFromType(type) {
|
|
32578
32601
|
if (null == type) return null;
|
|
32579
32602
|
if ("function" === typeof type)
|
|
@@ -32795,18 +32818,18 @@ function requireReactJsxRuntime_development() {
|
|
|
32795
32818
|
"object" === typeof node && null !== node && node.$$typeof === REACT_ELEMENT_TYPE && node._store && (node._store.validated = 1);
|
|
32796
32819
|
}
|
|
32797
32820
|
__name(validateChildKeys, "validateChildKeys");
|
|
32798
|
-
var React2 =
|
|
32821
|
+
var React2 = requireReact(), REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"), REACT_PORTAL_TYPE = Symbol.for("react.portal"), REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"), REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"), REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
32799
32822
|
var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"), REACT_CONTEXT_TYPE = Symbol.for("react.context"), REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"), REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"), REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"), REACT_MEMO_TYPE = Symbol.for("react.memo"), REACT_LAZY_TYPE = Symbol.for("react.lazy"), REACT_ACTIVITY_TYPE = Symbol.for("react.activity"), REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"), ReactSharedInternals = React2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, hasOwnProperty = Object.prototype.hasOwnProperty, isArrayImpl = Array.isArray, createTask = console.createTask ? console.createTask : function() {
|
|
32800
32823
|
return null;
|
|
32801
32824
|
};
|
|
32802
32825
|
React2 = {
|
|
32803
|
-
|
|
32826
|
+
react_stack_bottom_frame: /* @__PURE__ */ __name(function(callStackForError) {
|
|
32804
32827
|
return callStackForError();
|
|
32805
|
-
}, "
|
|
32828
|
+
}, "react_stack_bottom_frame")
|
|
32806
32829
|
};
|
|
32807
32830
|
var specialPropKeyWarningShown;
|
|
32808
32831
|
var didWarnAboutElementRef = {};
|
|
32809
|
-
var unknownOwnerDebugStack = React2
|
|
32832
|
+
var unknownOwnerDebugStack = React2.react_stack_bottom_frame.bind(
|
|
32810
32833
|
React2,
|
|
32811
32834
|
UnknownOwner
|
|
32812
32835
|
)();
|
|
@@ -32839,16 +32862,23 @@ function requireReactJsxRuntime_development() {
|
|
|
32839
32862
|
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
32840
32863
|
);
|
|
32841
32864
|
};
|
|
32842
|
-
}();
|
|
32865
|
+
})();
|
|
32843
32866
|
return reactJsxRuntime_development;
|
|
32844
32867
|
}
|
|
32845
32868
|
__name(requireReactJsxRuntime_development, "requireReactJsxRuntime_development");
|
|
32846
|
-
|
|
32847
|
-
|
|
32848
|
-
|
|
32849
|
-
|
|
32869
|
+
var hasRequiredJsxRuntime;
|
|
32870
|
+
function requireJsxRuntime() {
|
|
32871
|
+
if (hasRequiredJsxRuntime) return jsxRuntime.exports;
|
|
32872
|
+
hasRequiredJsxRuntime = 1;
|
|
32873
|
+
if (process.env.NODE_ENV === "production") {
|
|
32874
|
+
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
32875
|
+
} else {
|
|
32876
|
+
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
32877
|
+
}
|
|
32878
|
+
return jsxRuntime.exports;
|
|
32850
32879
|
}
|
|
32851
|
-
|
|
32880
|
+
__name(requireJsxRuntime, "requireJsxRuntime");
|
|
32881
|
+
var jsxRuntimeExports = requireJsxRuntime();
|
|
32852
32882
|
var reactDomExports = requireReactDom();
|
|
32853
32883
|
function r(e) {
|
|
32854
32884
|
var t, f, n = "";
|
|
@@ -32876,7 +32906,7 @@ function stopPropagation(event) {
|
|
|
32876
32906
|
}
|
|
32877
32907
|
__name(stopPropagation, "stopPropagation");
|
|
32878
32908
|
function scrollIntoView(element, behavior = "instant") {
|
|
32879
|
-
element
|
|
32909
|
+
element?.scrollIntoView({
|
|
32880
32910
|
inline: "nearest",
|
|
32881
32911
|
block: "nearest",
|
|
32882
32912
|
behavior
|
|
@@ -32948,8 +32978,7 @@ function isDefaultCellInput(event, isUserHandlingPaste) {
|
|
|
32948
32978
|
}
|
|
32949
32979
|
__name(isDefaultCellInput, "isDefaultCellInput");
|
|
32950
32980
|
function onEditorNavigation({ key, target }) {
|
|
32951
|
-
|
|
32952
|
-
if (key === "Tab" && (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target instanceof HTMLSelectElement)) return ((_a = target.closest(".rdg-editor-container")) == null ? void 0 : _a.querySelectorAll("input, textarea, select").length) === 1;
|
|
32981
|
+
if (key === "Tab" && (target instanceof HTMLInputElement || target instanceof HTMLTextAreaElement || target instanceof HTMLSelectElement)) return target.closest(".rdg-editor-container")?.querySelectorAll("input, textarea, select").length === 1;
|
|
32953
32982
|
return false;
|
|
32954
32983
|
}
|
|
32955
32984
|
__name(onEditorNavigation, "onEditorNavigation");
|
|
@@ -32961,7 +32990,7 @@ function getLeftRightKey(direction) {
|
|
|
32961
32990
|
};
|
|
32962
32991
|
}
|
|
32963
32992
|
__name(getLeftRightKey, "getLeftRightKey");
|
|
32964
|
-
const measuringCellClassname = "mlln6zg7-0-0-beta-
|
|
32993
|
+
const measuringCellClassname = "mlln6zg7-0-0-beta-57";
|
|
32965
32994
|
function renderMeasuringCells(viewportColumns) {
|
|
32966
32995
|
return viewportColumns.map(({ key, idx, minWidth, maxWidth }) => /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
32967
32996
|
className: measuringCellClassname,
|
|
@@ -32985,7 +33014,7 @@ function isCellEditableUtil(column, row$1) {
|
|
|
32985
33014
|
}
|
|
32986
33015
|
__name(isCellEditableUtil, "isCellEditableUtil");
|
|
32987
33016
|
function getSelectedCellColSpan({ rows, topSummaryRows, bottomSummaryRows, rowIdx, mainHeaderRowIdx, lastFrozenColumnIndex, column }) {
|
|
32988
|
-
const topSummaryRowsCount =
|
|
33017
|
+
const topSummaryRowsCount = topSummaryRows?.length ?? 0;
|
|
32989
33018
|
if (rowIdx === mainHeaderRowIdx) return getColSpan(column, lastFrozenColumnIndex, { type: "HEADER" });
|
|
32990
33019
|
if (topSummaryRows && rowIdx > mainHeaderRowIdx && rowIdx <= topSummaryRowsCount + mainHeaderRowIdx) return getColSpan(column, lastFrozenColumnIndex, {
|
|
32991
33020
|
type: "SUMMARY",
|
|
@@ -33112,12 +33141,12 @@ function canExitGrid({ maxColIdx, minRowIdx, maxRowIdx, selectedPosition: { rowI
|
|
|
33112
33141
|
return shiftKey ? atFirstCellInRow && atFirstRow : atLastCellInRow && atLastRow;
|
|
33113
33142
|
}
|
|
33114
33143
|
__name(canExitGrid, "canExitGrid");
|
|
33115
|
-
const cell = "cj343x07-0-0-beta-
|
|
33144
|
+
const cell = "cj343x07-0-0-beta-57";
|
|
33116
33145
|
const cellClassname = `rdg-cell ${cell}`;
|
|
33117
|
-
const cellFrozen = "csofj7r7-0-0-beta-
|
|
33146
|
+
const cellFrozen = "csofj7r7-0-0-beta-57";
|
|
33118
33147
|
const cellFrozenClassname = `rdg-cell-frozen ${cellFrozen}`;
|
|
33119
|
-
const cellDragHandle = "ch2wcw87-0-0-beta-
|
|
33120
|
-
const cellDragHandleFrozenClassname = "c1wvphzh7-0-0-beta-
|
|
33148
|
+
const cellDragHandle = "ch2wcw87-0-0-beta-57";
|
|
33149
|
+
const cellDragHandleFrozenClassname = "c1wvphzh7-0-0-beta-57";
|
|
33121
33150
|
const cellDragHandleClassname = `rdg-cell-drag-handle ${cellDragHandle}`;
|
|
33122
33151
|
function getRowStyle(rowIdx) {
|
|
33123
33152
|
return { "--rdg-grid-row-start": rowIdx };
|
|
@@ -33168,7 +33197,7 @@ function getHeaderCellRowSpan(column, rowIdx) {
|
|
|
33168
33197
|
return column.parent === void 0 ? rowIdx : column.level - column.parent.level;
|
|
33169
33198
|
}
|
|
33170
33199
|
__name(getHeaderCellRowSpan, "getHeaderCellRowSpan");
|
|
33171
|
-
const checkbox = "c1bn88vv7-0-0-beta-
|
|
33200
|
+
const checkbox = "c1bn88vv7-0-0-beta-57";
|
|
33172
33201
|
const checkboxClassname = `rdg-checkbox-input ${checkbox}`;
|
|
33173
33202
|
function renderCheckbox({ onChange, indeterminate, ...props }) {
|
|
33174
33203
|
function handleChange(e) {
|
|
@@ -33304,8 +33333,8 @@ const SelectColumn = {
|
|
|
33304
33333
|
return /* @__PURE__ */ jsxRuntimeExports.jsx(SelectGroupFormatter, { ...props });
|
|
33305
33334
|
}
|
|
33306
33335
|
};
|
|
33307
|
-
const headerSortCellClassname = "h44jtk67-0-0-beta-
|
|
33308
|
-
const headerSortName = "hcgkhxz7-0-0-beta-
|
|
33336
|
+
const headerSortCellClassname = "h44jtk67-0-0-beta-57";
|
|
33337
|
+
const headerSortName = "hcgkhxz7-0-0-beta-57";
|
|
33309
33338
|
const headerSortNameClassname = `rdg-header-sort-name ${headerSortName}`;
|
|
33310
33339
|
function renderHeaderCell({ column, sortDirection, priority }) {
|
|
33311
33340
|
if (!column.sortable) return column.name;
|
|
@@ -33333,14 +33362,14 @@ __name(SortableHeaderCell, "SortableHeaderCell");
|
|
|
33333
33362
|
const DEFAULT_COLUMN_WIDTH = "auto";
|
|
33334
33363
|
const DEFAULT_COLUMN_MIN_WIDTH = 50;
|
|
33335
33364
|
function useCalculatedColumns({ rawColumns, defaultColumnOptions, getColumnWidth, viewportWidth, scrollLeft, enableVirtualization }) {
|
|
33336
|
-
const defaultWidth =
|
|
33337
|
-
const defaultMinWidth =
|
|
33338
|
-
const defaultMaxWidth =
|
|
33339
|
-
const defaultRenderCell$1 =
|
|
33340
|
-
const defaultRenderHeaderCell =
|
|
33341
|
-
const defaultSortable =
|
|
33342
|
-
const defaultResizable =
|
|
33343
|
-
const defaultDraggable =
|
|
33365
|
+
const defaultWidth = defaultColumnOptions?.width ?? DEFAULT_COLUMN_WIDTH;
|
|
33366
|
+
const defaultMinWidth = defaultColumnOptions?.minWidth ?? DEFAULT_COLUMN_MIN_WIDTH;
|
|
33367
|
+
const defaultMaxWidth = defaultColumnOptions?.maxWidth ?? void 0;
|
|
33368
|
+
const defaultRenderCell$1 = defaultColumnOptions?.renderCell ?? renderValue;
|
|
33369
|
+
const defaultRenderHeaderCell = defaultColumnOptions?.renderHeaderCell ?? renderHeaderCell;
|
|
33370
|
+
const defaultSortable = defaultColumnOptions?.sortable ?? false;
|
|
33371
|
+
const defaultResizable = defaultColumnOptions?.resizable ?? false;
|
|
33372
|
+
const defaultDraggable = defaultColumnOptions?.draggable ?? false;
|
|
33344
33373
|
const { columns, colSpanColumns, lastFrozenColumnIndex, headerRowsCount } = reactExports.useMemo(() => {
|
|
33345
33374
|
let lastFrozenColumnIndex$1 = -1;
|
|
33346
33375
|
let headerRowsCount$1 = 1;
|
|
@@ -33515,10 +33544,10 @@ function useColumnWidths(columns, viewportColumns, templateColumns, gridRef, gri
|
|
|
33515
33544
|
const columnsToMeasure = [];
|
|
33516
33545
|
for (const { key, idx, width } of viewportColumns) {
|
|
33517
33546
|
const columnWidth = columnWidths.get(key);
|
|
33518
|
-
if (key ===
|
|
33547
|
+
if (key === columnToAutoResize?.key) {
|
|
33519
33548
|
newTemplateColumns[idx] = columnToAutoResize.width === "max-content" ? columnToAutoResize.width : `${columnToAutoResize.width}px`;
|
|
33520
33549
|
columnsToMeasure.push(key);
|
|
33521
|
-
} else if (typeof width === "string" &&
|
|
33550
|
+
} else if (typeof width === "string" && columnWidth?.type !== "resized" && (ignorePreviouslyMeasuredColumnsOnGridWidthChange || columnsToMeasureOnResize?.has(key) === true || columnWidth === void 0)) {
|
|
33522
33551
|
newTemplateColumns[idx] = width;
|
|
33523
33552
|
columnsToMeasure.push(key);
|
|
33524
33553
|
}
|
|
@@ -33526,14 +33555,13 @@ function useColumnWidths(columns, viewportColumns, templateColumns, gridRef, gri
|
|
|
33526
33555
|
const gridTemplateColumns = newTemplateColumns.join(" ");
|
|
33527
33556
|
reactExports.useLayoutEffect(updateMeasuredAndResizedWidths);
|
|
33528
33557
|
function updateMeasuredAndResizedWidths() {
|
|
33529
|
-
var _a, _b;
|
|
33530
33558
|
setPreviousGridWidth(gridWidth);
|
|
33531
33559
|
if (columnsToMeasure.length === 0) return;
|
|
33532
33560
|
const newColumnWidths = new Map(columnWidths);
|
|
33533
33561
|
let hasChanges = false;
|
|
33534
33562
|
for (const key of columnsToMeasure) {
|
|
33535
33563
|
const measuredWidth = measureColumnWidth(gridRef, key);
|
|
33536
|
-
hasChanges
|
|
33564
|
+
hasChanges ||= measuredWidth !== columnWidths.get(key)?.width;
|
|
33537
33565
|
if (measuredWidth === void 0) newColumnWidths.delete(key);
|
|
33538
33566
|
else newColumnWidths.set(key, {
|
|
33539
33567
|
type: "measured",
|
|
@@ -33542,7 +33570,7 @@ function useColumnWidths(columns, viewportColumns, templateColumns, gridRef, gri
|
|
|
33542
33570
|
}
|
|
33543
33571
|
if (columnToAutoResize !== null) {
|
|
33544
33572
|
const resizingKey = columnToAutoResize.key;
|
|
33545
|
-
const oldWidth =
|
|
33573
|
+
const oldWidth = columnWidths.get(resizingKey)?.width;
|
|
33546
33574
|
const newWidth = measureColumnWidth(gridRef, resizingKey);
|
|
33547
33575
|
if (newWidth !== void 0 && oldWidth !== newWidth) {
|
|
33548
33576
|
hasChanges = true;
|
|
@@ -33557,13 +33585,11 @@ function useColumnWidths(columns, viewportColumns, templateColumns, gridRef, gri
|
|
|
33557
33585
|
}
|
|
33558
33586
|
__name(updateMeasuredAndResizedWidths, "updateMeasuredAndResizedWidths");
|
|
33559
33587
|
function handleColumnResize(column, nextWidth) {
|
|
33560
|
-
var _a;
|
|
33561
33588
|
const { key: resizingKey } = column;
|
|
33562
33589
|
reactDomExports.flushSync(() => {
|
|
33563
|
-
var _a2;
|
|
33564
33590
|
if (columnsCanFlex) {
|
|
33565
33591
|
const columnsToRemeasure = /* @__PURE__ */ new Set();
|
|
33566
|
-
for (const { key, width } of viewportColumns) if (resizingKey !== key && typeof width === "string" &&
|
|
33592
|
+
for (const { key, width } of viewportColumns) if (resizingKey !== key && typeof width === "string" && columnWidths.get(key)?.type !== "resized") columnsToRemeasure.add(key);
|
|
33567
33593
|
setColumnsToMeasureOnResize(columnsToRemeasure);
|
|
33568
33594
|
}
|
|
33569
33595
|
setColumnToAutoResize({
|
|
@@ -33574,7 +33600,7 @@ function useColumnWidths(columns, viewportColumns, templateColumns, gridRef, gri
|
|
|
33574
33600
|
});
|
|
33575
33601
|
setColumnsToMeasureOnResize(null);
|
|
33576
33602
|
if (onColumnResize) {
|
|
33577
|
-
const previousWidth =
|
|
33603
|
+
const previousWidth = columnWidths.get(resizingKey)?.width;
|
|
33578
33604
|
const newWidth = typeof nextWidth === "number" ? nextWidth : measureColumnWidth(gridRef, resizingKey);
|
|
33579
33605
|
if (newWidth !== void 0 && newWidth !== previousWidth) onColumnResize(column, newWidth);
|
|
33580
33606
|
}
|
|
@@ -33587,10 +33613,9 @@ function useColumnWidths(columns, viewportColumns, templateColumns, gridRef, gri
|
|
|
33587
33613
|
}
|
|
33588
33614
|
__name(useColumnWidths, "useColumnWidths");
|
|
33589
33615
|
function measureColumnWidth(gridRef, key) {
|
|
33590
|
-
var _a;
|
|
33591
33616
|
const selector = `[data-measuring-cell-key="${CSS.escape(key)}"]`;
|
|
33592
|
-
const measuringCell =
|
|
33593
|
-
return measuringCell
|
|
33617
|
+
const measuringCell = gridRef.current?.querySelector(selector);
|
|
33618
|
+
return measuringCell?.getBoundingClientRect().width;
|
|
33594
33619
|
}
|
|
33595
33620
|
__name(measureColumnWidth, "measureColumnWidth");
|
|
33596
33621
|
function useGridDimensions() {
|
|
@@ -33646,11 +33671,13 @@ function useRovingTabIndex(isSelected) {
|
|
|
33646
33671
|
const [isChildFocused, setIsChildFocused] = reactExports.useState(false);
|
|
33647
33672
|
if (isChildFocused && !isSelected) setIsChildFocused(false);
|
|
33648
33673
|
function onFocus(event) {
|
|
33649
|
-
|
|
33650
|
-
|
|
33651
|
-
elementToFocus
|
|
33652
|
-
|
|
33653
|
-
|
|
33674
|
+
if (event.target === event.currentTarget) {
|
|
33675
|
+
const elementToFocus = event.currentTarget.querySelector('[tabindex="0"]');
|
|
33676
|
+
if (elementToFocus !== null) {
|
|
33677
|
+
elementToFocus.focus({ preventScroll: true });
|
|
33678
|
+
setIsChildFocused(true);
|
|
33679
|
+
} else setIsChildFocused(false);
|
|
33680
|
+
} else setIsChildFocused(true);
|
|
33654
33681
|
}
|
|
33655
33682
|
__name(onFocus, "onFocus");
|
|
33656
33683
|
const isFocusable = isSelected && !isChildFocused;
|
|
@@ -33786,7 +33813,7 @@ function useViewportRows({ rows, rowHeight, clientHeight, scrollTop, enableVirtu
|
|
|
33786
33813
|
};
|
|
33787
33814
|
}
|
|
33788
33815
|
__name(useViewportRows, "useViewportRows");
|
|
33789
|
-
const cellDraggedOver = "c6ra8a37-0-0-beta-
|
|
33816
|
+
const cellDraggedOver = "c6ra8a37-0-0-beta-57";
|
|
33790
33817
|
const cellDraggedOverClassname = `rdg-cell-dragged-over ${cellDraggedOver}`;
|
|
33791
33818
|
function Cell({ column, colSpan, isCellSelected, isDraggedOver, row: row$1, rowIdx, className, onMouseDown, onCellMouseDown, onClick, onCellClick, onDoubleClick, onCellDoubleClick, onContextMenu, onCellContextMenu, onRowChange, selectCell, style, ...props }) {
|
|
33792
33819
|
const { tabIndex, childTabIndex, onFocus } = useRovingTabIndex(isCellSelected);
|
|
@@ -33816,22 +33843,22 @@ function Cell({ column, colSpan, isCellSelected, isDraggedOver, row: row$1, rowI
|
|
|
33816
33843
|
}
|
|
33817
33844
|
__name(handleMouseEvent, "handleMouseEvent");
|
|
33818
33845
|
function handleMouseDown(event) {
|
|
33819
|
-
onMouseDown
|
|
33846
|
+
onMouseDown?.(event);
|
|
33820
33847
|
if (!handleMouseEvent(event, onCellMouseDown)) selectCellWrapper();
|
|
33821
33848
|
}
|
|
33822
33849
|
__name(handleMouseDown, "handleMouseDown");
|
|
33823
33850
|
function handleClick(event) {
|
|
33824
|
-
onClick
|
|
33851
|
+
onClick?.(event);
|
|
33825
33852
|
handleMouseEvent(event, onCellClick);
|
|
33826
33853
|
}
|
|
33827
33854
|
__name(handleClick, "handleClick");
|
|
33828
33855
|
function handleDoubleClick(event) {
|
|
33829
|
-
onDoubleClick
|
|
33856
|
+
onDoubleClick?.(event);
|
|
33830
33857
|
if (!handleMouseEvent(event, onCellDoubleClick)) selectCellWrapper(true);
|
|
33831
33858
|
}
|
|
33832
33859
|
__name(handleDoubleClick, "handleDoubleClick");
|
|
33833
33860
|
function handleContextMenu(event) {
|
|
33834
|
-
onContextMenu
|
|
33861
|
+
onContextMenu?.(event);
|
|
33835
33862
|
handleMouseEvent(event, onCellContextMenu);
|
|
33836
33863
|
}
|
|
33837
33864
|
__name(handleContextMenu, "handleContextMenu");
|
|
@@ -33874,13 +33901,12 @@ function defaultRenderCell(key, props) {
|
|
|
33874
33901
|
}
|
|
33875
33902
|
__name(defaultRenderCell, "defaultRenderCell");
|
|
33876
33903
|
const canUsePostTask = typeof scheduler === "object" && typeof scheduler.postTask === "function";
|
|
33877
|
-
const cellEditing = "cis5rrm7-0-0-beta-
|
|
33904
|
+
const cellEditing = "cis5rrm7-0-0-beta-57";
|
|
33878
33905
|
function EditCell({ column, colSpan, row: row$1, rowIdx, onRowChange, closeEditor, onKeyDown, navigate }) {
|
|
33879
|
-
var _a, _b, _c;
|
|
33880
33906
|
const captureEventRef = reactExports.useRef(void 0);
|
|
33881
33907
|
const abortControllerRef = reactExports.useRef(void 0);
|
|
33882
33908
|
const frameRequestRef = reactExports.useRef(void 0);
|
|
33883
|
-
const commitOnOutsideClick =
|
|
33909
|
+
const commitOnOutsideClick = column.editorOptions?.commitOnOutsideClick ?? true;
|
|
33884
33910
|
const commitOnOutsideMouseDown = useLatestFunc(() => {
|
|
33885
33911
|
onClose(true, false);
|
|
33886
33912
|
});
|
|
@@ -33954,7 +33980,7 @@ function EditCell({ column, colSpan, row: row$1, rowIdx, onRowChange, closeEdito
|
|
|
33954
33980
|
}
|
|
33955
33981
|
__name(onEditorRowChange, "onEditorRowChange");
|
|
33956
33982
|
const { cellClass } = column;
|
|
33957
|
-
const className = getCellClassname(column, "rdg-editor-container", !
|
|
33983
|
+
const className = getCellClassname(column, "rdg-editor-container", !column.editorOptions?.displayCellContent && cellEditing, typeof cellClass === "function" ? cellClass(row$1) : cellClass);
|
|
33958
33984
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", {
|
|
33959
33985
|
role: "gridcell",
|
|
33960
33986
|
"aria-colindex": column.idx + 1,
|
|
@@ -33970,7 +33996,7 @@ function EditCell({ column, colSpan, row: row$1, rowIdx, onRowChange, closeEdito
|
|
|
33970
33996
|
rowIdx,
|
|
33971
33997
|
onRowChange: onEditorRowChange,
|
|
33972
33998
|
onClose
|
|
33973
|
-
}),
|
|
33999
|
+
}), column.editorOptions?.displayCellContent && column.renderCell({
|
|
33974
34000
|
column,
|
|
33975
34001
|
row: row$1,
|
|
33976
34002
|
rowIdx,
|
|
@@ -34012,25 +34038,25 @@ function GroupedColumnHeaderCell({ column, rowIdx, isCellSelected, selectCell })
|
|
|
34012
34038
|
});
|
|
34013
34039
|
}
|
|
34014
34040
|
__name(GroupedColumnHeaderCell, "GroupedColumnHeaderCell");
|
|
34015
|
-
const cellSortableClassname = "c6l2wv17-0-0-beta-
|
|
34016
|
-
const cellResizable = "c1kqdw7y7-0-0-beta-
|
|
34041
|
+
const cellSortableClassname = "c6l2wv17-0-0-beta-57";
|
|
34042
|
+
const cellResizable = "c1kqdw7y7-0-0-beta-57";
|
|
34017
34043
|
const cellResizableClassname = `rdg-cell-resizable ${cellResizable}`;
|
|
34018
|
-
const resizeHandleClassname = "r1y6ywlx7-0-0-beta-
|
|
34044
|
+
const resizeHandleClassname = "r1y6ywlx7-0-0-beta-57";
|
|
34019
34045
|
const cellDraggableClassname = "rdg-cell-draggable";
|
|
34020
|
-
const cellDragging = "c1bezg5o7-0-0-beta-
|
|
34046
|
+
const cellDragging = "c1bezg5o7-0-0-beta-57";
|
|
34021
34047
|
const cellDraggingClassname = `rdg-cell-dragging ${cellDragging}`;
|
|
34022
|
-
const cellOver = "c1vc96037-0-0-beta-
|
|
34048
|
+
const cellOver = "c1vc96037-0-0-beta-57";
|
|
34023
34049
|
const cellOverClassname = `rdg-cell-drag-over ${cellOver}`;
|
|
34024
|
-
const dragImageClassname = "d8rwc9w7-0-0-beta-
|
|
34025
|
-
function HeaderCell({ column, colSpan, rowIdx, isCellSelected, onColumnResize, onColumnResizeEnd, onColumnsReorder, sortColumns, onSortColumnsChange, selectCell, direction, draggedColumnKey, setDraggedColumnKey }) {
|
|
34050
|
+
const dragImageClassname = "d8rwc9w7-0-0-beta-57";
|
|
34051
|
+
function HeaderCell({ column, colSpan, rowIdx, isCellSelected, onColumnResize, onColumnResizeEnd, onColumnsReorder, sortColumns, onSortColumnsChange, selectCell, shouldFocusGrid, direction, draggedColumnKey, setDraggedColumnKey }) {
|
|
34026
34052
|
const [isOver, setIsOver] = reactExports.useState(false);
|
|
34027
34053
|
const dragImageRef = reactExports.useRef(null);
|
|
34028
34054
|
const isDragging = draggedColumnKey === column.key;
|
|
34029
34055
|
const rowSpan = getHeaderCellRowSpan(column, rowIdx);
|
|
34030
|
-
const { tabIndex, childTabIndex, onFocus } = useRovingTabIndex(isCellSelected);
|
|
34031
|
-
const sortIndex = sortColumns
|
|
34056
|
+
const { tabIndex, childTabIndex, onFocus } = useRovingTabIndex(shouldFocusGrid || isCellSelected);
|
|
34057
|
+
const sortIndex = sortColumns?.findIndex((sort) => sort.columnKey === column.key);
|
|
34032
34058
|
const sortColumn = sortIndex !== void 0 && sortIndex > -1 ? sortColumns[sortIndex] : void 0;
|
|
34033
|
-
const sortDirection = sortColumn
|
|
34059
|
+
const sortDirection = sortColumn?.direction;
|
|
34034
34060
|
const priority = sortColumn !== void 0 && sortColumns.length > 1 ? sortIndex + 1 : void 0;
|
|
34035
34061
|
const ariaSort = sortDirection && !priority ? sortDirection === "ASC" ? "ascending" : "descending" : void 0;
|
|
34036
34062
|
const { sortable, resizable, draggable } = column;
|
|
@@ -34065,6 +34091,14 @@ function HeaderCell({ column, colSpan, rowIdx, isCellSelected, onColumnResize, o
|
|
|
34065
34091
|
}
|
|
34066
34092
|
}
|
|
34067
34093
|
__name(onSort, "onSort");
|
|
34094
|
+
function handleFocus(event) {
|
|
34095
|
+
onFocus?.(event);
|
|
34096
|
+
if (shouldFocusGrid) selectCell({
|
|
34097
|
+
idx: 0,
|
|
34098
|
+
rowIdx
|
|
34099
|
+
});
|
|
34100
|
+
}
|
|
34101
|
+
__name(handleFocus, "handleFocus");
|
|
34068
34102
|
function onMouseDown() {
|
|
34069
34103
|
selectCell({
|
|
34070
34104
|
idx: column.idx,
|
|
@@ -34111,7 +34145,7 @@ function HeaderCell({ column, colSpan, rowIdx, isCellSelected, onColumnResize, o
|
|
|
34111
34145
|
function onDrop(event) {
|
|
34112
34146
|
setIsOver(false);
|
|
34113
34147
|
event.preventDefault();
|
|
34114
|
-
onColumnsReorder
|
|
34148
|
+
onColumnsReorder?.(draggedColumnKey, column.key);
|
|
34115
34149
|
}
|
|
34116
34150
|
__name(onDrop, "onDrop");
|
|
34117
34151
|
function onDragEnter(event) {
|
|
@@ -34163,7 +34197,7 @@ function HeaderCell({ column, colSpan, rowIdx, isCellSelected, onColumnResize, o
|
|
|
34163
34197
|
className,
|
|
34164
34198
|
style,
|
|
34165
34199
|
onMouseDown,
|
|
34166
|
-
onFocus,
|
|
34200
|
+
onFocus: handleFocus,
|
|
34167
34201
|
onClick,
|
|
34168
34202
|
onKeyDown,
|
|
34169
34203
|
...dragTargetProps,
|
|
@@ -34223,16 +34257,16 @@ function isEventPertinent(event) {
|
|
|
34223
34257
|
return !event.currentTarget.contains(relatedTarget);
|
|
34224
34258
|
}
|
|
34225
34259
|
__name(isEventPertinent, "isEventPertinent");
|
|
34226
|
-
const row = "r1upfr807-0-0-beta-
|
|
34260
|
+
const row = "r1upfr807-0-0-beta-57";
|
|
34227
34261
|
const rowClassname = `rdg-row ${row}`;
|
|
34228
|
-
const rowSelected = "r190mhd37-0-0-beta-
|
|
34262
|
+
const rowSelected = "r190mhd37-0-0-beta-57";
|
|
34229
34263
|
const rowSelectedClassname = "rdg-row-selected";
|
|
34230
|
-
const rowSelectedWithFrozenCell = "r139qu9m7-0-0-beta-
|
|
34264
|
+
const rowSelectedWithFrozenCell = "r139qu9m7-0-0-beta-57";
|
|
34231
34265
|
const topSummaryRowClassname = "rdg-top-summary-row";
|
|
34232
34266
|
const bottomSummaryRowClassname = "rdg-bottom-summary-row";
|
|
34233
|
-
const headerRow = "h10tskcx7-0-0-beta-
|
|
34267
|
+
const headerRow = "h10tskcx7-0-0-beta-57";
|
|
34234
34268
|
const headerRowClassname = `rdg-header-row ${headerRow}`;
|
|
34235
|
-
function HeaderRow({ headerRowClass, rowIdx, columns, onColumnResize, onColumnResizeEnd, onColumnsReorder, sortColumns, onSortColumnsChange, lastFrozenColumnIndex, selectedCellIdx, selectCell, direction }) {
|
|
34269
|
+
function HeaderRow({ headerRowClass, rowIdx, columns, onColumnResize, onColumnResizeEnd, onColumnsReorder, sortColumns, onSortColumnsChange, lastFrozenColumnIndex, selectedCellIdx, selectCell, shouldFocusGrid, direction }) {
|
|
34236
34270
|
const [draggedColumnKey, setDraggedColumnKey] = reactExports.useState();
|
|
34237
34271
|
const cells = [];
|
|
34238
34272
|
for (let index = 0; index < columns.length; index++) {
|
|
@@ -34250,6 +34284,7 @@ function HeaderRow({ headerRowClass, rowIdx, columns, onColumnResize, onColumnRe
|
|
|
34250
34284
|
onSortColumnsChange,
|
|
34251
34285
|
sortColumns,
|
|
34252
34286
|
selectCell,
|
|
34287
|
+
shouldFocusGrid: shouldFocusGrid && index === 0,
|
|
34253
34288
|
direction,
|
|
34254
34289
|
draggedColumnKey,
|
|
34255
34290
|
setDraggedColumnKey
|
|
@@ -34299,7 +34334,7 @@ function Row({ className, rowIdx, gridRowStart, selectedCellIdx, isRowSelectionD
|
|
|
34299
34334
|
const handleRowChange = useLatestFunc((column, newRow) => {
|
|
34300
34335
|
onRowChange(column, rowIdx, newRow);
|
|
34301
34336
|
});
|
|
34302
|
-
className = clsx(rowClassname, `rdg-row-${rowIdx % 2 === 0 ? "even" : "odd"}`, { [rowSelectedClassname]: selectedCellIdx === -1 }, rowClass
|
|
34337
|
+
className = clsx(rowClassname, `rdg-row-${rowIdx % 2 === 0 ? "even" : "odd"}`, { [rowSelectedClassname]: selectedCellIdx === -1 }, rowClass?.(row$1, rowIdx), className);
|
|
34303
34338
|
const cells = [];
|
|
34304
34339
|
for (let index = 0; index < viewportColumns.length; index++) {
|
|
34305
34340
|
const column = viewportColumns[index];
|
|
@@ -34378,7 +34413,7 @@ function ScrollToCell({ scrollToPosition: { idx, rowIdx }, gridRef, setScrollToC
|
|
|
34378
34413
|
});
|
|
34379
34414
|
}
|
|
34380
34415
|
__name(ScrollToCell, "ScrollToCell");
|
|
34381
|
-
const arrow = "a3ejtar7-0-0-beta-
|
|
34416
|
+
const arrow = "a3ejtar7-0-0-beta-57";
|
|
34382
34417
|
const arrowClassname = `rdg-sort-arrow ${arrow}`;
|
|
34383
34418
|
function renderSortStatus({ sortDirection, priority }) {
|
|
34384
34419
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [renderSortIcon({ sortDirection }), renderSortPriority({ priority })] });
|
|
@@ -34400,15 +34435,14 @@ function renderSortPriority({ priority }) {
|
|
|
34400
34435
|
return priority;
|
|
34401
34436
|
}
|
|
34402
34437
|
__name(renderSortPriority, "renderSortPriority");
|
|
34403
|
-
const root = "rnvodz57-0-0-beta-
|
|
34438
|
+
const root = "rnvodz57-0-0-beta-57";
|
|
34404
34439
|
const rootClassname = `rdg ${root}`;
|
|
34405
|
-
const viewportDragging = "vlqv91k7-0-0-beta-
|
|
34440
|
+
const viewportDragging = "vlqv91k7-0-0-beta-57";
|
|
34406
34441
|
const viewportDraggingClassname = `rdg-viewport-dragging ${viewportDragging}`;
|
|
34407
|
-
const focusSinkClassname = "f1lsfrzw7-0-0-beta-
|
|
34408
|
-
const focusSinkHeaderAndSummaryClassname = "f1cte0lg7-0-0-beta-
|
|
34409
|
-
const summaryCellClassname = "s8wc6fl7-0-0-beta-
|
|
34442
|
+
const focusSinkClassname = "f1lsfrzw7-0-0-beta-57";
|
|
34443
|
+
const focusSinkHeaderAndSummaryClassname = "f1cte0lg7-0-0-beta-57";
|
|
34444
|
+
const summaryCellClassname = "s8wc6fl7-0-0-beta-57";
|
|
34410
34445
|
function SummaryCell({ column, colSpan, row: row$1, rowIdx, isCellSelected, selectCell }) {
|
|
34411
|
-
var _a;
|
|
34412
34446
|
const { tabIndex, childTabIndex, onFocus } = useRovingTabIndex(isCellSelected);
|
|
34413
34447
|
const { summaryCellClass } = column;
|
|
34414
34448
|
const className = getCellClassname(column, summaryCellClassname, typeof summaryCellClass === "function" ? summaryCellClass(row$1) : summaryCellClass);
|
|
@@ -34429,7 +34463,7 @@ function SummaryCell({ column, colSpan, row: row$1, rowIdx, isCellSelected, sele
|
|
|
34429
34463
|
style: getCellStyle(column, colSpan),
|
|
34430
34464
|
onMouseDown,
|
|
34431
34465
|
onFocus,
|
|
34432
|
-
children:
|
|
34466
|
+
children: column.renderSummaryCell?.({
|
|
34433
34467
|
column,
|
|
34434
34468
|
row: row$1,
|
|
34435
34469
|
tabIndex: childTabIndex
|
|
@@ -34438,8 +34472,8 @@ function SummaryCell({ column, colSpan, row: row$1, rowIdx, isCellSelected, sele
|
|
|
34438
34472
|
}
|
|
34439
34473
|
__name(SummaryCell, "SummaryCell");
|
|
34440
34474
|
var SummaryCell_default = reactExports.memo(SummaryCell);
|
|
34441
|
-
const summaryRow = "skuhp557-0-0-beta-
|
|
34442
|
-
const topSummaryRow = "tf8l5ub7-0-0-beta-
|
|
34475
|
+
const summaryRow = "skuhp557-0-0-beta-57";
|
|
34476
|
+
const topSummaryRow = "tf8l5ub7-0-0-beta-57";
|
|
34443
34477
|
const summaryRowClassname = `rdg-summary-row ${summaryRow}`;
|
|
34444
34478
|
function SummaryRow({ rowIdx, gridRowStart, row: row$1, viewportColumns, top, bottom, lastFrozenColumnIndex, selectedCellIdx, isTop, selectCell, "aria-rowindex": ariaRowIndex }) {
|
|
34445
34479
|
const cells = [];
|
|
@@ -34485,11 +34519,11 @@ function DataGrid(props) {
|
|
|
34485
34519
|
const rowHeight = rawRowHeight ?? 35;
|
|
34486
34520
|
const headerRowHeight = rawHeaderRowHeight ?? (typeof rowHeight === "number" ? rowHeight : 35);
|
|
34487
34521
|
const summaryRowHeight = rawSummaryRowHeight ?? (typeof rowHeight === "number" ? rowHeight : 35);
|
|
34488
|
-
const renderRow =
|
|
34489
|
-
const renderCell =
|
|
34490
|
-
const renderSortStatus$1 =
|
|
34491
|
-
const renderCheckbox$1 =
|
|
34492
|
-
const noRowsFallback =
|
|
34522
|
+
const renderRow = renderers?.renderRow ?? defaultRenderers?.renderRow ?? defaultRenderRow;
|
|
34523
|
+
const renderCell = renderers?.renderCell ?? defaultRenderers?.renderCell ?? defaultRenderCell;
|
|
34524
|
+
const renderSortStatus$1 = renderers?.renderSortStatus ?? defaultRenderers?.renderSortStatus ?? renderSortStatus;
|
|
34525
|
+
const renderCheckbox$1 = renderers?.renderCheckbox ?? defaultRenderers?.renderCheckbox ?? renderCheckbox;
|
|
34526
|
+
const noRowsFallback = renderers?.noRowsFallback ?? defaultRenderers?.noRowsFallback;
|
|
34493
34527
|
const enableVirtualization = rawEnableVirtualization ?? true;
|
|
34494
34528
|
const direction = rawDirection ?? "ltr";
|
|
34495
34529
|
const [scrollTop, setScrollTop] = reactExports.useState(0);
|
|
@@ -34508,8 +34542,7 @@ function DataGrid(props) {
|
|
|
34508
34542
|
onColumnWidthsChangeRaw(columnWidths$1);
|
|
34509
34543
|
} : setColumnWidthsInternal;
|
|
34510
34544
|
const getColumnWidth = reactExports.useCallback((column) => {
|
|
34511
|
-
|
|
34512
|
-
return ((_a = columnWidths.get(column.key)) == null ? void 0 : _a.width) ?? column.width;
|
|
34545
|
+
return columnWidths.get(column.key)?.width ?? column.width;
|
|
34513
34546
|
}, [columnWidths]);
|
|
34514
34547
|
const [gridRef, gridWidth, gridHeight, horizontalScrollbarHeight] = useGridDimensions();
|
|
34515
34548
|
const { columns, colSpanColumns, lastFrozenColumnIndex, headerRowsCount, colOverscanStartIdx, colOverscanEndIdx, templateColumns, layoutCssVars, totalFrozenColumnWidth } = useCalculatedColumns({
|
|
@@ -34520,8 +34553,8 @@ function DataGrid(props) {
|
|
|
34520
34553
|
viewportWidth: gridWidth,
|
|
34521
34554
|
enableVirtualization
|
|
34522
34555
|
});
|
|
34523
|
-
const topSummaryRowsCount =
|
|
34524
|
-
const bottomSummaryRowsCount =
|
|
34556
|
+
const topSummaryRowsCount = topSummaryRows?.length ?? 0;
|
|
34557
|
+
const bottomSummaryRowsCount = bottomSummaryRows?.length ?? 0;
|
|
34525
34558
|
const summaryRowsCount = topSummaryRowsCount + bottomSummaryRowsCount;
|
|
34526
34559
|
const headerAndTopSummaryRowsCount = headerRowsCount + topSummaryRowsCount;
|
|
34527
34560
|
const groupedColumnHeaderRowsCount = headerRowsCount - 1;
|
|
@@ -34592,7 +34625,6 @@ function DataGrid(props) {
|
|
|
34592
34625
|
const selectedCellIsWithinSelectionBounds = isCellWithinSelectionBounds(selectedPosition);
|
|
34593
34626
|
const selectedCellIsWithinViewportBounds = isCellWithinViewportBounds(selectedPosition);
|
|
34594
34627
|
const scrollHeight = headerRowHeight + totalRowHeight + summaryRowsHeight + horizontalScrollbarHeight;
|
|
34595
|
-
const shouldFocusGrid = !selectedCellIsWithinSelectionBounds;
|
|
34596
34628
|
const handleColumnResizeLatest = useLatestFunc(handleColumnResize);
|
|
34597
34629
|
const handleColumnResizeEndLatest = useLatestFunc(handleColumnResizeEnd);
|
|
34598
34630
|
const onColumnsReorderLastest = useLatestFunc(onColumnsReorder);
|
|
@@ -34642,7 +34674,7 @@ function DataGrid(props) {
|
|
|
34642
34674
|
assertIsValidKeyGetter(rowKeyGetter);
|
|
34643
34675
|
const newSelectedRows = new Set(selectedRows);
|
|
34644
34676
|
for (const row$1 of rows) {
|
|
34645
|
-
if (
|
|
34677
|
+
if (isRowSelectionDisabled?.(row$1) === true) continue;
|
|
34646
34678
|
const rowKey = rowKeyGetter(row$1);
|
|
34647
34679
|
if (args.checked) newSelectedRows.add(rowKey);
|
|
34648
34680
|
else newSelectedRows.delete(rowKey);
|
|
@@ -34654,7 +34686,7 @@ function DataGrid(props) {
|
|
|
34654
34686
|
if (!onSelectedRowsChange) return;
|
|
34655
34687
|
assertIsValidKeyGetter(rowKeyGetter);
|
|
34656
34688
|
const { row: row$1, checked, isShiftClick } = args;
|
|
34657
|
-
if (
|
|
34689
|
+
if (isRowSelectionDisabled?.(row$1) === true) return;
|
|
34658
34690
|
const newSelectedRows = new Set(selectedRows);
|
|
34659
34691
|
const rowKey = rowKeyGetter(row$1);
|
|
34660
34692
|
const rowIdx = rows.indexOf(row$1);
|
|
@@ -34665,7 +34697,7 @@ function DataGrid(props) {
|
|
|
34665
34697
|
const step = sign(rowIdx - previousRowIdx);
|
|
34666
34698
|
for (let i = previousRowIdx + step; i !== rowIdx; i += step) {
|
|
34667
34699
|
const row$2 = rows[i];
|
|
34668
|
-
if (
|
|
34700
|
+
if (isRowSelectionDisabled?.(row$2) === true) continue;
|
|
34669
34701
|
if (checked) newSelectedRows.add(rowKeyGetter(row$2));
|
|
34670
34702
|
else newSelectedRows.delete(rowKeyGetter(row$2));
|
|
34671
34703
|
}
|
|
@@ -34710,20 +34742,13 @@ function DataGrid(props) {
|
|
|
34710
34742
|
}
|
|
34711
34743
|
}
|
|
34712
34744
|
__name(handleKeyDown, "handleKeyDown");
|
|
34713
|
-
function handleFocus(event) {
|
|
34714
|
-
if (event.target === event.currentTarget) selectHeaderCell({
|
|
34715
|
-
idx: minColIdx,
|
|
34716
|
-
rowIdx: headerRowsCount
|
|
34717
|
-
}, { shouldFocusCell: true });
|
|
34718
|
-
}
|
|
34719
|
-
__name(handleFocus, "handleFocus");
|
|
34720
34745
|
function handleScroll(event) {
|
|
34721
34746
|
const { scrollTop: scrollTop$1, scrollLeft: scrollLeft$1 } = event.currentTarget;
|
|
34722
34747
|
reactDomExports.flushSync(() => {
|
|
34723
34748
|
setScrollTop(scrollTop$1);
|
|
34724
34749
|
setScrollLeft(abs(scrollLeft$1));
|
|
34725
34750
|
});
|
|
34726
|
-
onScroll
|
|
34751
|
+
onScroll?.(event);
|
|
34727
34752
|
}
|
|
34728
34753
|
__name(handleScroll, "handleScroll");
|
|
34729
34754
|
function updateRow(column, rowIdx, row$1) {
|
|
@@ -34744,7 +34769,7 @@ function DataGrid(props) {
|
|
|
34744
34769
|
function handleCellCopy(event) {
|
|
34745
34770
|
if (!selectedCellIsWithinViewportBounds) return;
|
|
34746
34771
|
const { idx, rowIdx } = selectedPosition;
|
|
34747
|
-
onCellCopy
|
|
34772
|
+
onCellCopy?.({
|
|
34748
34773
|
row: rows[rowIdx],
|
|
34749
34774
|
column: columns[idx]
|
|
34750
34775
|
}, event);
|
|
@@ -34787,7 +34812,7 @@ function DataGrid(props) {
|
|
|
34787
34812
|
__name(handleCellInput, "handleCellInput");
|
|
34788
34813
|
function handleColumnResizeEnd() {
|
|
34789
34814
|
if (isColumnResizing) {
|
|
34790
|
-
onColumnWidthsChangeRaw
|
|
34815
|
+
onColumnWidthsChangeRaw?.(columnWidths);
|
|
34791
34816
|
setColumnResizing(false);
|
|
34792
34817
|
}
|
|
34793
34818
|
}
|
|
@@ -34887,7 +34912,7 @@ function DataGrid(props) {
|
|
|
34887
34912
|
if (!isCellWithinSelectionBounds(position)) return;
|
|
34888
34913
|
commitEditorChanges();
|
|
34889
34914
|
const samePosition = isSamePosition(selectedPosition, position);
|
|
34890
|
-
if (
|
|
34915
|
+
if (options?.enableEditor && isCellEditable(position)) {
|
|
34891
34916
|
const row$1 = rows[position.rowIdx];
|
|
34892
34917
|
setSelectedPosition({
|
|
34893
34918
|
...position,
|
|
@@ -34897,7 +34922,7 @@ function DataGrid(props) {
|
|
|
34897
34922
|
});
|
|
34898
34923
|
} else if (samePosition) scrollIntoView(getCellToScroll(gridRef.current));
|
|
34899
34924
|
else {
|
|
34900
|
-
setShouldFocusCell(
|
|
34925
|
+
setShouldFocusCell(options?.shouldFocusCell === true);
|
|
34901
34926
|
setSelectedPosition({
|
|
34902
34927
|
...position,
|
|
34903
34928
|
mode: "SELECT"
|
|
@@ -34910,11 +34935,11 @@ function DataGrid(props) {
|
|
|
34910
34935
|
});
|
|
34911
34936
|
}
|
|
34912
34937
|
__name(selectCell, "selectCell");
|
|
34913
|
-
function selectHeaderCell({ idx, rowIdx }
|
|
34938
|
+
function selectHeaderCell({ idx, rowIdx }) {
|
|
34914
34939
|
selectCell({
|
|
34915
34940
|
rowIdx: minRowIdx + rowIdx - 1,
|
|
34916
34941
|
idx
|
|
34917
|
-
}
|
|
34942
|
+
});
|
|
34918
34943
|
}
|
|
34919
34944
|
__name(selectHeaderCell, "selectHeaderCell");
|
|
34920
34945
|
function getNextPosition(key, ctrlKey, shiftKey) {
|
|
@@ -35033,17 +35058,16 @@ function DataGrid(props) {
|
|
|
35033
35058
|
}
|
|
35034
35059
|
__name(getDraggedOverCellIdx, "getDraggedOverCellIdx");
|
|
35035
35060
|
function getDragHandle() {
|
|
35036
|
-
var _a;
|
|
35037
35061
|
if (onFill == null || selectedPosition.mode === "EDIT" || !isCellWithinViewportBounds(selectedPosition)) return;
|
|
35038
35062
|
const { idx, rowIdx } = selectedPosition;
|
|
35039
35063
|
const column = columns[idx];
|
|
35040
35064
|
if (column.renderEditCell == null || column.editable === false) return;
|
|
35041
35065
|
const isLastRow = rowIdx === maxRowIdx;
|
|
35042
35066
|
const columnWidth = getColumnWidth(column);
|
|
35043
|
-
const colSpan =
|
|
35067
|
+
const colSpan = column.colSpan?.({
|
|
35044
35068
|
type: "ROW",
|
|
35045
35069
|
row: rows[rowIdx]
|
|
35046
|
-
})
|
|
35070
|
+
}) ?? 1;
|
|
35047
35071
|
const { insetInlineStart, ...style$1 } = getCellStyle(column, colSpan);
|
|
35048
35072
|
const marginEnd = "calc(var(--rdg-drag-handle-size) * -0.5 + 1px)";
|
|
35049
35073
|
const isLastColumn = column.idx + colSpan - 1 === maxColIdx;
|
|
@@ -35066,7 +35090,6 @@ function DataGrid(props) {
|
|
|
35066
35090
|
}
|
|
35067
35091
|
__name(getDragHandle, "getDragHandle");
|
|
35068
35092
|
function getCellEditor(rowIdx) {
|
|
35069
|
-
var _a;
|
|
35070
35093
|
if (selectedPosition.rowIdx !== rowIdx || selectedPosition.mode === "SELECT") return;
|
|
35071
35094
|
const { idx, row: row$1 } = selectedPosition;
|
|
35072
35095
|
const column = columns[idx];
|
|
@@ -35074,7 +35097,7 @@ function DataGrid(props) {
|
|
|
35074
35097
|
type: "ROW",
|
|
35075
35098
|
row: row$1
|
|
35076
35099
|
});
|
|
35077
|
-
const closeOnExternalRowChange =
|
|
35100
|
+
const closeOnExternalRowChange = column.editorOptions?.closeOnExternalRowChange ?? true;
|
|
35078
35101
|
const closeEditor = /* @__PURE__ */ __name((shouldFocusCell$1) => {
|
|
35079
35102
|
setShouldFocusCell(shouldFocusCell$1);
|
|
35080
35103
|
setSelectedPosition(({ idx: idx$1, rowIdx: rowIdx$1 }) => ({
|
|
@@ -35134,7 +35157,7 @@ function DataGrid(props) {
|
|
|
35134
35157
|
let isRowSelected = false;
|
|
35135
35158
|
if (typeof rowKeyGetter === "function") {
|
|
35136
35159
|
key = rowKeyGetter(row$1);
|
|
35137
|
-
isRowSelected =
|
|
35160
|
+
isRowSelected = selectedRows?.has(key) ?? false;
|
|
35138
35161
|
}
|
|
35139
35162
|
rowElements.push(renderRow(key, {
|
|
35140
35163
|
"aria-rowindex": headerAndTopSummaryRowsCount + rowIdx + 1,
|
|
@@ -35142,7 +35165,7 @@ function DataGrid(props) {
|
|
|
35142
35165
|
rowIdx,
|
|
35143
35166
|
row: row$1,
|
|
35144
35167
|
viewportColumns: rowColumns,
|
|
35145
|
-
isRowSelectionDisabled:
|
|
35168
|
+
isRowSelectionDisabled: isRowSelectionDisabled?.(row$1) ?? false,
|
|
35146
35169
|
isRowSelected,
|
|
35147
35170
|
onCellMouseDown: onCellMouseDownLatest,
|
|
35148
35171
|
onCellClick: onCellClickLatest,
|
|
@@ -35184,12 +35207,12 @@ function DataGrid(props) {
|
|
|
35184
35207
|
"aria-multiselectable": isSelectable ? true : void 0,
|
|
35185
35208
|
"aria-colcount": columns.length,
|
|
35186
35209
|
"aria-rowcount": ariaRowCount,
|
|
35187
|
-
tabIndex:
|
|
35210
|
+
tabIndex: -1,
|
|
35188
35211
|
className: clsx(rootClassname, { [viewportDraggingClassname]: isDragging }, className),
|
|
35189
35212
|
style: {
|
|
35190
35213
|
...style,
|
|
35191
|
-
scrollPaddingInlineStart: selectedPosition.idx > lastFrozenColumnIndex ||
|
|
35192
|
-
scrollPaddingBlock: isRowIdxWithinViewportBounds(selectedPosition.rowIdx) ||
|
|
35214
|
+
scrollPaddingInlineStart: selectedPosition.idx > lastFrozenColumnIndex || scrollToPosition?.idx !== void 0 ? `${totalFrozenColumnWidth}px` : void 0,
|
|
35215
|
+
scrollPaddingBlock: isRowIdxWithinViewportBounds(selectedPosition.rowIdx) || scrollToPosition?.rowIdx !== void 0 ? `${headerRowsHeight + topSummaryRowsCount * summaryRowHeight}px ${bottomSummaryRowsCount * summaryRowHeight}px` : void 0,
|
|
35193
35216
|
gridTemplateColumns,
|
|
35194
35217
|
gridTemplateRows: templateRows,
|
|
35195
35218
|
"--rdg-header-row-height": `${headerRowHeight}px`,
|
|
@@ -35198,7 +35221,6 @@ function DataGrid(props) {
|
|
|
35198
35221
|
},
|
|
35199
35222
|
dir: direction,
|
|
35200
35223
|
ref: gridRef,
|
|
35201
|
-
onFocus: shouldFocusGrid ? handleFocus : void 0,
|
|
35202
35224
|
onScroll: handleScroll,
|
|
35203
35225
|
onKeyDown: handleKeyDown,
|
|
35204
35226
|
onCopy: handleCellCopy,
|
|
@@ -35230,11 +35252,12 @@ function DataGrid(props) {
|
|
|
35230
35252
|
lastFrozenColumnIndex,
|
|
35231
35253
|
selectedCellIdx: selectedPosition.rowIdx === mainHeaderRowIdx ? selectedPosition.idx : void 0,
|
|
35232
35254
|
selectCell: selectHeaderCellLatest,
|
|
35255
|
+
shouldFocusGrid: !selectedCellIsWithinSelectionBounds,
|
|
35233
35256
|
direction
|
|
35234
35257
|
})]
|
|
35235
35258
|
})
|
|
35236
35259
|
}), rows.length === 0 && noRowsFallback ? noRowsFallback : /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
35237
|
-
topSummaryRows
|
|
35260
|
+
topSummaryRows?.map((row$1, rowIdx) => {
|
|
35238
35261
|
const gridRowStart = headerRowsCount + 1 + rowIdx;
|
|
35239
35262
|
const summaryRowIdx = mainHeaderRowIdx + 1 + rowIdx;
|
|
35240
35263
|
const isSummaryRowSelected = selectedPosition.rowIdx === summaryRowIdx;
|
|
@@ -35257,7 +35280,7 @@ function DataGrid(props) {
|
|
|
35257
35280
|
value: selectRowLatest,
|
|
35258
35281
|
children: getViewportRows()
|
|
35259
35282
|
}),
|
|
35260
|
-
bottomSummaryRows
|
|
35283
|
+
bottomSummaryRows?.map((row$1, rowIdx) => {
|
|
35261
35284
|
const gridRowStart = headerAndTopSummaryRowsCount + rows.length + rowIdx + 1;
|
|
35262
35285
|
const summaryRowIdx = rows.length + rowIdx;
|
|
35263
35286
|
const isSummaryRowSelected = selectedPosition.rowIdx === summaryRowIdx;
|
|
@@ -35309,7 +35332,6 @@ function isSamePosition(p1, p2) {
|
|
|
35309
35332
|
}
|
|
35310
35333
|
__name(isSamePosition, "isSamePosition");
|
|
35311
35334
|
function GroupCell({ id, groupKey, childRows, isExpanded, isCellSelected, column, row: row$1, groupColumnIndex, isGroupByColumn, toggleGroup: toggleGroupWrapper }) {
|
|
35312
|
-
var _a;
|
|
35313
35335
|
const { tabIndex, childTabIndex, onFocus } = useRovingTabIndex(isCellSelected);
|
|
35314
35336
|
function toggleGroup() {
|
|
35315
35337
|
toggleGroupWrapper(id);
|
|
@@ -35331,7 +35353,7 @@ function GroupCell({ id, groupKey, childRows, isExpanded, isCellSelected, column
|
|
|
35331
35353
|
}, "onMouseDown"),
|
|
35332
35354
|
onClick: isLevelMatching ? toggleGroup : void 0,
|
|
35333
35355
|
onFocus,
|
|
35334
|
-
children: (!isGroupByColumn || isLevelMatching) &&
|
|
35356
|
+
children: (!isGroupByColumn || isLevelMatching) && column.renderGroupCell?.({
|
|
35335
35357
|
groupKey,
|
|
35336
35358
|
childRows,
|
|
35337
35359
|
column,
|
|
@@ -35339,12 +35361,12 @@ function GroupCell({ id, groupKey, childRows, isExpanded, isCellSelected, column
|
|
|
35339
35361
|
isExpanded,
|
|
35340
35362
|
tabIndex: childTabIndex,
|
|
35341
35363
|
toggleGroup
|
|
35342
|
-
})
|
|
35364
|
+
})
|
|
35343
35365
|
}, column.key);
|
|
35344
35366
|
}
|
|
35345
35367
|
__name(GroupCell, "GroupCell");
|
|
35346
35368
|
var GroupCell_default = reactExports.memo(GroupCell);
|
|
35347
|
-
const groupRow = "g1yxluv37-0-0-beta-
|
|
35369
|
+
const groupRow = "g1yxluv37-0-0-beta-57";
|
|
35348
35370
|
const groupRowClassname = `rdg-group-row ${groupRow}`;
|
|
35349
35371
|
function GroupedRow({ className, row: row$1, rowIdx, viewportColumns, selectedCellIdx, isRowSelected, selectCell, gridRowStart, groupBy, toggleGroup, isRowSelectionDisabled, ...props }) {
|
|
35350
35372
|
const idx = viewportColumns[0].key === SELECT_COLUMN_KEY ? row$1.level + 1 : row$1.level;
|
|
@@ -35389,16 +35411,10 @@ function GroupedRow({ className, row: row$1, rowIdx, viewportColumns, selectedCe
|
|
|
35389
35411
|
__name(GroupedRow, "GroupedRow");
|
|
35390
35412
|
reactExports.memo(GroupedRow);
|
|
35391
35413
|
const _ErrorBoundary = class _ErrorBoundary extends reactExports.Component {
|
|
35392
|
-
|
|
35393
|
-
|
|
35394
|
-
|
|
35395
|
-
|
|
35396
|
-
error: null
|
|
35397
|
-
});
|
|
35398
|
-
__publicField(this, "handleReset", /* @__PURE__ */ __name(() => {
|
|
35399
|
-
this.setState({ hasError: false, error: null });
|
|
35400
|
-
}, "handleReset"));
|
|
35401
|
-
}
|
|
35414
|
+
state = {
|
|
35415
|
+
hasError: false,
|
|
35416
|
+
error: null
|
|
35417
|
+
};
|
|
35402
35418
|
static getDerivedStateFromError(error) {
|
|
35403
35419
|
return { hasError: true, error };
|
|
35404
35420
|
}
|
|
@@ -35406,15 +35422,17 @@ const _ErrorBoundary = class _ErrorBoundary extends reactExports.Component {
|
|
|
35406
35422
|
console.error("Error caught by boundary:", error);
|
|
35407
35423
|
console.error("Component stack:", errorInfo.componentStack);
|
|
35408
35424
|
}
|
|
35425
|
+
handleReset = /* @__PURE__ */ __name(() => {
|
|
35426
|
+
this.setState({ hasError: false, error: null });
|
|
35427
|
+
}, "handleReset");
|
|
35409
35428
|
render() {
|
|
35410
|
-
var _a;
|
|
35411
35429
|
if (this.state.hasError) {
|
|
35412
35430
|
if (this.props.fallback) {
|
|
35413
35431
|
return this.props.fallback;
|
|
35414
35432
|
}
|
|
35415
35433
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "min-h-[200px] flex items-center justify-center p-8 bg-red-50 rounded-lg border border-red-100", children: /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: "text-center", children: [
|
|
35416
35434
|
/* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: "text-xl font-semibold text-red-700 mb-2", children: "Something went wrong" }),
|
|
35417
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-red-600", children:
|
|
35435
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("p", { className: "text-red-600", children: this.state.error?.message }),
|
|
35418
35436
|
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
35419
35437
|
"button",
|
|
35420
35438
|
{
|
|
@@ -35483,6 +35501,7 @@ const ReactTable = /* @__PURE__ */ __name(({
|
|
|
35483
35501
|
formatter = /* @__PURE__ */ __name((props) => {
|
|
35484
35502
|
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { style: { textAlign: "right" }, children: props.row[props.column.key] });
|
|
35485
35503
|
}, "formatter");
|
|
35504
|
+
// eslint-disable-next-line no-fallthrough
|
|
35486
35505
|
default:
|
|
35487
35506
|
__hpcc_format = columnFormats[column] !== void 0 ? format(columnFormats[column]) : void 0;
|
|
35488
35507
|
}
|
|
@@ -35502,7 +35521,7 @@ const ReactTable = /* @__PURE__ */ __name(({
|
|
|
35502
35521
|
const onSortColumnsChange = reactExports.useCallback((sortColumns) => {
|
|
35503
35522
|
const futureSortColumn = sortColumns.slice(-1)[0];
|
|
35504
35523
|
const sorted = futureSortColumn !== void 0;
|
|
35505
|
-
const isSortedDescending =
|
|
35524
|
+
const isSortedDescending = futureSortColumn?.direction === "DESC";
|
|
35506
35525
|
setSortColumn(futureSortColumn);
|
|
35507
35526
|
setRows(copyAndSort(rows, sorted ? futureSortColumn.columnKey : "key", sorted ? isSortedDescending : false));
|
|
35508
35527
|
}, [rows]);
|
|
@@ -35533,7 +35552,7 @@ const ReactTable = /* @__PURE__ */ __name(({
|
|
|
35533
35552
|
});
|
|
35534
35553
|
return retVal;
|
|
35535
35554
|
});
|
|
35536
|
-
if (sort
|
|
35555
|
+
if (sort?.attribute) {
|
|
35537
35556
|
items = copyAndSort(items, sort.attribute, sort.descending);
|
|
35538
35557
|
}
|
|
35539
35558
|
setRows(items);
|
|
@@ -35558,13 +35577,11 @@ const ReactTable = /* @__PURE__ */ __name(({
|
|
|
35558
35577
|
) });
|
|
35559
35578
|
}, "ReactTable");
|
|
35560
35579
|
const _Table = class _Table extends HTMLWidget {
|
|
35580
|
+
_div;
|
|
35581
|
+
_root;
|
|
35582
|
+
_component;
|
|
35561
35583
|
constructor() {
|
|
35562
35584
|
super();
|
|
35563
|
-
__publicField(this, "_div");
|
|
35564
|
-
__publicField(this, "_root");
|
|
35565
|
-
__publicField(this, "_component");
|
|
35566
|
-
__publicField(this, "_prevRow");
|
|
35567
|
-
__publicField(this, "_prevColumn");
|
|
35568
35585
|
}
|
|
35569
35586
|
columnType(column, type) {
|
|
35570
35587
|
if (arguments.length === 1) return this.columnTypes()[column];
|
|
@@ -35581,6 +35598,8 @@ const _Table = class _Table extends HTMLWidget {
|
|
|
35581
35598
|
this.columnFormats({ ...this.columnFormats(), [column]: format2 });
|
|
35582
35599
|
return this;
|
|
35583
35600
|
}
|
|
35601
|
+
_prevRow;
|
|
35602
|
+
_prevColumn;
|
|
35584
35603
|
onRowClickCallback(row2, column) {
|
|
35585
35604
|
if (this._prevRow && JSON.stringify(this._prevRow) !== JSON.stringify(row2)) {
|
|
35586
35605
|
this.click(this._prevRow, this._prevColumn ?? "", false);
|
|
@@ -35627,4 +35646,4 @@ export {
|
|
|
35627
35646
|
Table
|
|
35628
35647
|
};
|
|
35629
35648
|
//# sourceMappingURL=index.js.map
|
|
35630
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var r=document.createElement("style");r.appendChild(document.createTextNode('@layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;}@layer rdg.MeasuringCell{.mlln6zg7-0-0-beta-
|
|
35649
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var r=document.createElement("style");r.appendChild(document.createTextNode('@layer rdg{@layer Defaults,FocusSink,CheckboxInput,CheckboxIcon,CheckboxLabel,Cell,HeaderCell,SummaryCell,EditCell,Row,HeaderRow,SummaryRow,GroupedRow,Root;}@layer rdg.MeasuringCell{.mlln6zg7-0-0-beta-57{contain:strict;grid-row:1;visibility:hidden}}@layer rdg.Cell{.cj343x07-0-0-beta-57{position:relative;padding-block:0;padding-inline:8px;border-inline-end:var(--rdg-border-width) solid var(--rdg-border-color);border-block-end:var(--rdg-border-width) solid var(--rdg-border-color);grid-row-start:var(--rdg-grid-row-start);align-content:center;background-color:inherit;white-space:nowrap;overflow:clip;text-overflow:ellipsis;outline:none}.cj343x07-0-0-beta-57[aria-selected=true]{outline:var(--rdg-selection-width) solid var(--rdg-selection-color);outline-offset:calc(var(--rdg-selection-width) * -1)}}@layer rdg.Cell{.csofj7r7-0-0-beta-57{position:sticky;z-index:1}.csofj7r7-0-0-beta-57:nth-last-child(1 of.csofj7r7-0-0-beta-57){box-shadow:var(--rdg-cell-frozen-box-shadow)}}@layer rdg.DragHandle{.ch2wcw87-0-0-beta-57{--rdg-drag-handle-size: 8px;z-index:0;cursor:move;inline-size:var(--rdg-drag-handle-size);block-size:var(--rdg-drag-handle-size);background-color:var(--rdg-selection-color);place-self:end}.ch2wcw87-0-0-beta-57:hover{--rdg-drag-handle-size: 16px;border:2px solid var(--rdg-selection-color);background-color:var(--rdg-background-color)}}@layer rdg.DragHandle{.c1wvphzh7-0-0-beta-57{z-index:1;position:sticky}}@layer rdg.CheckboxInput{.c1bn88vv7-0-0-beta-57{display:block;margin:auto;inline-size:20px;block-size:20px}.c1bn88vv7-0-0-beta-57:focus-visible{outline:2px solid var(--rdg-checkbox-focus-color);outline-offset:-3px}.c1bn88vv7-0-0-beta-57:enabled{cursor:pointer}}@layer rdg.GroupCellContent{.g1s9ylgp7-0-0-beta-57{outline:none}}@layer rdg.GroupCellCaret{.cz54e4y7-0-0-beta-57{margin-inline-start:4px;stroke:currentColor;stroke-width:1.5px;fill:transparent;vertical-align:middle}.cz54e4y7-0-0-beta-57>path{transition:d .1s}}@layer rdg.SortableHeaderCell{.h44jtk67-0-0-beta-57{display:flex}}@layer rdg.SortableHeaderCellName{.hcgkhxz7-0-0-beta-57{flex-grow:1;overflow:clip;text-overflow:ellipsis}}@layer rdg.Cell{.c6ra8a37-0-0-beta-57{background-color:#ccf}}@layer rdg.EditCell{.cis5rrm7-0-0-beta-57{padding:0}}@layer rdg.HeaderCell{.c6l2wv17-0-0-beta-57{cursor:pointer}}@layer rdg.HeaderCell{.c1kqdw7y7-0-0-beta-57{touch-action:none}}@layer rdg.HeaderCell{.r1y6ywlx7-0-0-beta-57{cursor:col-resize;position:absolute;inset-block-start:0;inset-inline-end:0;inset-block-end:0;inline-size:10px}}@layer rdg.HeaderCell{.c1bezg5o7-0-0-beta-57{background-color:var(--rdg-header-draggable-background-color)}}@layer rdg.HeaderCell{.c1vc96037-0-0-beta-57{background-color:var(--rdg-header-draggable-background-color)}}@layer rdg.HeaderCell{.d8rwc9w7-0-0-beta-57{border-radius:4px;width:fit-content;outline:2px solid hsl(207,100%,50%);outline-offset:-2px}}@layer rdg.Row{.r1upfr807-0-0-beta-57{display:contents;background-color:var(--rdg-background-color)}.r1upfr807-0-0-beta-57:hover{background-color:var(--rdg-row-hover-background-color)}.r1upfr807-0-0-beta-57[aria-selected=true]{background-color:var(--rdg-row-selected-background-color)}.r1upfr807-0-0-beta-57[aria-selected=true]:hover{background-color:var(--rdg-row-selected-hover-background-color)}}@layer rdg.FocusSink{.r190mhd37-0-0-beta-57{outline:2px solid var(--rdg-selection-color);outline-offset:-2px}}@layer rdg.FocusSink{.r139qu9m7-0-0-beta-57:before{content:"";display:inline-block;block-size:100%;position:sticky;inset-inline-start:0;border-inline-start:2px solid var(--rdg-selection-color)}}@layer rdg.HeaderRow{.h10tskcx7-0-0-beta-57{display:contents;background-color:var(--rdg-header-background-color);font-weight:700}.h10tskcx7-0-0-beta-57>.cj343x07-0-0-beta-57{z-index:2;position:sticky}.h10tskcx7-0-0-beta-57>.csofj7r7-0-0-beta-57{z-index:3}}@layer rdg.SortIcon{.a3ejtar7-0-0-beta-57{fill:currentColor}.a3ejtar7-0-0-beta-57>path{transition:d .1s}}@layer rdg.Defaults{.rnvodz57-0-0-beta-57 *,.rnvodz57-0-0-beta-57 *:before,.rnvodz57-0-0-beta-57 *:after{box-sizing:inherit}}@layer rdg.Root{.rnvodz57-0-0-beta-57{--rdg-selection-width: 2px;--rdg-selection-color: hsl(207, 75%, 66%);--rdg-font-size: 14px;--rdg-cell-frozen-box-shadow: 2px 0 5px -2px rgba(136, 136, 136, .3);--rdg-border-width: 1px;--rdg-summary-border-width: calc(var(--rdg-border-width) * 2);--rdg-color: light-dark(#000, #ddd);--rdg-border-color: light-dark(#ddd, #444);--rdg-summary-border-color: light-dark(#aaa, #555);--rdg-background-color: light-dark(hsl(0deg 0% 100%), hsl(0deg 0% 13%));--rdg-header-background-color: light-dark(hsl(0deg 0% 97.5%), hsl(0deg 0% 10.5%));--rdg-header-draggable-background-color: light-dark(hsl(0deg 0% 90.5%), hsl(0deg 0% 17.5%));--rdg-row-hover-background-color: light-dark(hsl(0deg 0% 96%), hsl(0deg 0% 9%));--rdg-row-selected-background-color: light-dark(hsl(207deg 76% 92%), hsl(207deg 76% 42%));--rdg-row-selected-hover-background-color: light-dark(hsl(207deg 76% 88%), hsl(207deg 76% 38%));--rdg-checkbox-focus-color: hsl(207deg 100% 69%);color-scheme:var(--rdg-color-scheme, light dark);display:grid;accent-color:light-dark(hsl(207deg 100% 29%),hsl(207deg 100% 79%));contain:content;content-visibility:auto;block-size:350px;border:1px solid var(--rdg-border-color);box-sizing:border-box;overflow:auto;background-color:var(--rdg-background-color);color:var(--rdg-color);font-size:var(--rdg-font-size)}.rnvodz57-0-0-beta-57.rdg-dark{--rdg-color-scheme: dark}.rnvodz57-0-0-beta-57.rdg-light{--rdg-color-scheme: light}.rnvodz57-0-0-beta-57:dir(rtl){--rdg-cell-frozen-box-shadow: -2px 0 5px -2px rgba(136, 136, 136, .3)}.rnvodz57-0-0-beta-57:before{content:"";grid-column:1/-1;grid-row:1/-1}.rnvodz57-0-0-beta-57>:nth-last-child(1 of.rdg-top-summary-row)>.cj343x07-0-0-beta-57{border-block-end:var(--rdg-summary-border-width) solid var(--rdg-summary-border-color)}.rnvodz57-0-0-beta-57>:nth-child(1 of.rdg-bottom-summary-row)>.cj343x07-0-0-beta-57{border-block-start:var(--rdg-summary-border-width) solid var(--rdg-summary-border-color)}}@layer rdg.Root{.vlqv91k7-0-0-beta-57{-webkit-user-select:none;user-select:none}.vlqv91k7-0-0-beta-57 .r1upfr807-0-0-beta-57{cursor:move}}@layer rdg.FocusSink{.f1lsfrzw7-0-0-beta-57{grid-column:1/-1;pointer-events:none;z-index:1}}@layer rdg.FocusSink{.f1cte0lg7-0-0-beta-57{z-index:3}}@layer rdg.SummaryCell{.s8wc6fl7-0-0-beta-57{inset-block-start:var(--rdg-summary-row-top);inset-block-end:var(--rdg-summary-row-bottom)}}@layer rdg.SummaryRow{.skuhp557-0-0-beta-57>.cj343x07-0-0-beta-57{position:sticky}}@layer rdg.SummaryRow{.tf8l5ub7-0-0-beta-57>.cj343x07-0-0-beta-57{z-index:2}.tf8l5ub7-0-0-beta-57>.csofj7r7-0-0-beta-57{z-index:3}}@layer rdg.GroupedRow{.g1yxluv37-0-0-beta-57:not([aria-selected=true]){background-color:var(--rdg-header-background-color)}.g1yxluv37-0-0-beta-57>.cj343x07-0-0-beta-57:not(:last-child,.csofj7r7-0-0-beta-57),.g1yxluv37-0-0-beta-57>:nth-last-child(n+2 of.csofj7r7-0-0-beta-57){border-inline-end:none}}@layer rdg.TextEditor{.t7vyx3i7-0-0-beta-57{appearance:none;box-sizing:border-box;inline-size:100%;block-size:100%;padding-block:0;padding-inline:6px;border:2px solid #ccc;vertical-align:top;color:var(--rdg-color);background-color:var(--rdg-background-color);font-family:inherit;font-size:var(--rdg-font-size)}.t7vyx3i7-0-0-beta-57:focus{border-color:var(--rdg-selection-color);outline:none}.t7vyx3i7-0-0-beta-57::placeholder{color:#999;opacity:1}}.dgrid2_Table .rdg{font-family:monospace,Courier New,Courier}.dgrid2_Table .rdg-checkbox-label .rdg-checkbox{block-size:16px;inline-size:16px;border-width:2px;box-shadow:inset 0 0 0 3px var(--rdg-background-color)}')),document.head.appendChild(r)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}}();
|