@copart/ops-tool-kit 1.12.1-alpha.33 → 1.12.1-alpha.34
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/ops-tool-kit.js +16 -5
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -32,7 +32,7 @@ var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
|
32
32
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
33
33
|
|
|
34
34
|
const name$r = "@copart/ops-tool-kit";
|
|
35
|
-
const version$7 = "1.12.1-alpha.
|
|
35
|
+
const version$7 = "1.12.1-alpha.34";
|
|
36
36
|
const main$1 = "dist/ops-tool-kit.js";
|
|
37
37
|
const style = "dist/ops-tool-kit.css";
|
|
38
38
|
const files = [
|
|
@@ -47260,7 +47260,8 @@ var NavigationBar = function NavigationBar(_ref2) {
|
|
|
47260
47260
|
allowMultipleNavItemsOpen = _ref2.allowMultipleNavItemsOpen,
|
|
47261
47261
|
setShowNavigationCounts = _ref2.setShowNavigationCounts,
|
|
47262
47262
|
countsRef = _ref2.countsRef,
|
|
47263
|
-
countAutoReloadDisabled = _ref2.countAutoReloadDisabled
|
|
47263
|
+
countAutoReloadDisabled = _ref2.countAutoReloadDisabled,
|
|
47264
|
+
onNavSectionToggle = _ref2.onNavSectionToggle;
|
|
47264
47265
|
// const withCounts = getCounts && typeof getCounts === 'function'
|
|
47265
47266
|
var navigateFunction = navigateTo || (history === null || history === void 0 ? void 0 : history.push) || defaultRedirect;
|
|
47266
47267
|
var _useState = React.useState(null),
|
|
@@ -47338,7 +47339,8 @@ var NavigationBar = function NavigationBar(_ref2) {
|
|
|
47338
47339
|
setWithCounts: setWithCounts,
|
|
47339
47340
|
withCounts: withCounts,
|
|
47340
47341
|
countsRef: countsRef,
|
|
47341
|
-
countAutoReloadDisabled: countAutoReloadDisabled
|
|
47342
|
+
countAutoReloadDisabled: countAutoReloadDisabled,
|
|
47343
|
+
onNavSectionToggle: onNavSectionToggle
|
|
47342
47344
|
}) : null, isConfigValid === false ? /*#__PURE__*/React__default["default"].createElement("div", null, "Please check your navigation config") : null);
|
|
47343
47345
|
};
|
|
47344
47346
|
var NavigationMenu = function NavigationMenu(_ref3) {
|
|
@@ -47355,7 +47357,8 @@ var NavigationMenu = function NavigationMenu(_ref3) {
|
|
|
47355
47357
|
setWithCounts = _ref3.setWithCounts,
|
|
47356
47358
|
withCounts = _ref3.withCounts,
|
|
47357
47359
|
countsRef = _ref3.countsRef,
|
|
47358
|
-
countAutoReloadDisabled = _ref3.countAutoReloadDisabled
|
|
47360
|
+
countAutoReloadDisabled = _ref3.countAutoReloadDisabled,
|
|
47361
|
+
onNavSectionToggle = _ref3.onNavSectionToggle;
|
|
47359
47362
|
var redirectUrl = window.location.pathname;
|
|
47360
47363
|
var _useState13 = React.useState(null),
|
|
47361
47364
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
@@ -47422,6 +47425,7 @@ var NavigationMenu = function NavigationMenu(_ref3) {
|
|
|
47422
47425
|
withCounts: withCounts,
|
|
47423
47426
|
countsRef: countsRef,
|
|
47424
47427
|
countAutoReloadDisabled: countAutoReloadDisabled,
|
|
47428
|
+
onNavSectionToggle: onNavSectionToggle,
|
|
47425
47429
|
counts: counts,
|
|
47426
47430
|
setCounts: setCounts,
|
|
47427
47431
|
countLoadAttemptsRef: countLoadAttemptsRef
|
|
@@ -47443,6 +47447,7 @@ var NavigationMenuLevel1 = function NavigationMenuLevel1(_ref4) {
|
|
|
47443
47447
|
withCounts = _ref4.withCounts,
|
|
47444
47448
|
countsRef = _ref4.countsRef,
|
|
47445
47449
|
countAutoReloadDisabled = _ref4.countAutoReloadDisabled,
|
|
47450
|
+
onNavSectionToggle = _ref4.onNavSectionToggle,
|
|
47446
47451
|
counts = _ref4.counts,
|
|
47447
47452
|
setCounts = _ref4.setCounts,
|
|
47448
47453
|
countLoadAttemptsRef = _ref4.countLoadAttemptsRef;
|
|
@@ -47479,6 +47484,7 @@ var NavigationMenuLevel1 = function NavigationMenuLevel1(_ref4) {
|
|
|
47479
47484
|
withCounts: withCounts,
|
|
47480
47485
|
countsRef: countsRef,
|
|
47481
47486
|
countAutoReloadDisabled: countAutoReloadDisabled,
|
|
47487
|
+
onNavSectionToggle: onNavSectionToggle,
|
|
47482
47488
|
counts: counts,
|
|
47483
47489
|
setCounts: setCounts,
|
|
47484
47490
|
countLoadAttemptsRef: countLoadAttemptsRef
|
|
@@ -47499,6 +47505,8 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
|
|
|
47499
47505
|
withCounts = _ref5.withCounts,
|
|
47500
47506
|
countsRef = _ref5.countsRef,
|
|
47501
47507
|
countAutoReloadDisabled = _ref5.countAutoReloadDisabled,
|
|
47508
|
+
_ref5$onNavSectionTog = _ref5.onNavSectionToggle,
|
|
47509
|
+
onNavSectionToggle = _ref5$onNavSectionTog === void 0 ? function () {} : _ref5$onNavSectionTog,
|
|
47502
47510
|
counts = _ref5.counts,
|
|
47503
47511
|
setCounts = _ref5.setCounts,
|
|
47504
47512
|
countLoadAttemptsRef = _ref5.countLoadAttemptsRef;
|
|
@@ -47549,12 +47557,14 @@ var NavigationMenuLevel2 = function NavigationMenuLevel2(_ref5) {
|
|
|
47549
47557
|
setActiveSubmenu(function (menuItems) {
|
|
47550
47558
|
return allowMultipleNavItemsOpen ? [].concat(_toConsumableArray(menuItems), [navItem.fullRoute]) : [navItem.fullRoute];
|
|
47551
47559
|
});
|
|
47560
|
+
onNavSectionToggle(navItem.route, true);
|
|
47552
47561
|
} else {
|
|
47553
47562
|
setActiveSubmenu(function (menuItems) {
|
|
47554
47563
|
return _toConsumableArray(menuItems).filter(function (item) {
|
|
47555
47564
|
return item !== navItem.fullRoute;
|
|
47556
47565
|
});
|
|
47557
47566
|
});
|
|
47567
|
+
onNavSectionToggle(navItem.route, false);
|
|
47558
47568
|
}
|
|
47559
47569
|
// setActiveSubmenu(isMenuExpanded ? null : navItem.fullRoute)
|
|
47560
47570
|
if (!isMenuExpanded && showCounts && !countAutoReloadDisabled) {
|
|
@@ -47828,7 +47838,8 @@ var AppFrame = function AppFrame(props) {
|
|
|
47828
47838
|
allowMultipleNavItemsOpen: props.allowMultipleNavItemsOpen,
|
|
47829
47839
|
setShowNavigationCounts: setShowNavigationCounts,
|
|
47830
47840
|
countsRef: props.countsRef,
|
|
47831
|
-
countAutoReloadDisabled: props.countAutoReloadDisabled
|
|
47841
|
+
countAutoReloadDisabled: props.countAutoReloadDisabled,
|
|
47842
|
+
onNavSectionToggle: props.onNavSectionToggle
|
|
47832
47843
|
}) : null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
47833
47844
|
style: {
|
|
47834
47845
|
marginLeft: props.showNavigation ? navigationWidth : '0px',
|