@copart/ops-tool-kit 1.12.0-alpha.10 → 1.12.0-alpha.11

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.
@@ -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.0-alpha.10";
35
+ const version$7 = "1.12.0-alpha.11";
36
36
  const main$1 = "dist/ops-tool-kit.js";
37
37
  const style = "dist/ops-tool-kit.css";
38
38
  const files = [
@@ -46066,166 +46066,6 @@ var NavigationMenuLevel3 = function NavigationMenuLevel3(_ref6) {
46066
46066
  }) : null, !countsLoading ? countText : null)));
46067
46067
  };
46068
46068
 
46069
- var navItems3Level = [
46070
- // {
46071
- // name: "Home",
46072
- // icon: "house",
46073
- // isLandingPage: true,
46074
- // },
46075
- {
46076
- name: 'Dispatch',
46077
- icon: null,
46078
- route: 'dispatch',
46079
- subMenuItems: [{
46080
- name: 'Lots',
46081
- route: 'lots',
46082
- icon: 'car',
46083
- subMenuItems: [{
46084
- name: 'All',
46085
- route: 'all',
46086
- icon: 'house'
46087
- }, {
46088
- name: 'Pending Trip Build',
46089
- route: 'pendingtripsbuild',
46090
- icon: 'car',
46091
- getStatus: function getStatus(count) {
46092
- if (count > 1000) return 1;
46093
- if (count > 500) return 2;
46094
- if (count > 0) return 3;
46095
- }
46096
- }, {
46097
- name: 'Pending Processing',
46098
- route: 'dispatch',
46099
- icon: 'car',
46100
- getStatus: function getStatus(count) {
46101
- if (count > 300) return 1;
46102
- if (count > 50) return 2;
46103
- if (count > 0) return 3;
46104
- }
46105
- }, {
46106
- name: 'Pending Paperwork Verification',
46107
- route: 'pendingprocessing',
46108
- icon: 'car',
46109
- getStatus: function getStatus(count) {
46110
- if (count > 100) return 1;
46111
- if (count > 50) return 2;
46112
- if (count > 0) return 3;
46113
- }
46114
- }, {
46115
- name: 'Partial Paperwork Verified',
46116
- route: 'partialpaperwork',
46117
- icon: 'car'
46118
- }, {
46119
- name: 'Awaiting Dispatch',
46120
- route: 'awaitingdispatch',
46121
- icon: 'car'
46122
- }, {
46123
- name: 'Overdue and Due Today',
46124
- route: 'overdue',
46125
- icon: 'car'
46126
- }, {
46127
- name: 'Issue Queue',
46128
- route: 'issuequeue',
46129
- icon: 'car'
46130
- }]
46131
- }, {
46132
- name: 'Tow Providers',
46133
- route: 'towproviders',
46134
- icon: 'truck-tow',
46135
- disabled: true,
46136
- subMenuItems: [{
46137
- name: 'All',
46138
- route: 'all',
46139
- icon: 'car'
46140
- }]
46141
- }, {
46142
- name: 'Drivers',
46143
- route: 'drivers',
46144
- icon: 'steering-wheel',
46145
- subMenuItems: [{
46146
- name: 'All',
46147
- icon: 'car',
46148
- route: 'all',
46149
- disabled: true
46150
- }]
46151
- }, {
46152
- name: 'Work Requests',
46153
- route: 'workrequests',
46154
- icon: 'handshake',
46155
- subMenuItems: [{
46156
- name: 'All',
46157
- route: 'all',
46158
- icon: 'car'
46159
- }]
46160
- }, {
46161
- name: 'Advanced Charge Discrepancy',
46162
- route: 'advanced',
46163
- icon: 'file-invoice-dollar',
46164
- subMenuItems: [{
46165
- name: 'All',
46166
- route: 'all',
46167
- icon: 'car'
46168
- }]
46169
- }, {
46170
- name: 'One Time Rate Request Change',
46171
- route: 'onetime',
46172
- icon: 'dollar-sign',
46173
- subMenuItems: [{
46174
- name: 'All',
46175
- route: 'all',
46176
- icon: 'car'
46177
- }]
46178
- }]
46179
- }, {
46180
- name: 'Yard To Yard',
46181
- shortName: 'Y2Y',
46182
- route: 'y2y',
46183
- icon: null,
46184
- subMenuItems: [{
46185
- name: 'Y2Y Trips',
46186
- route: 'trips',
46187
- icon: 'truck-container-empty',
46188
- subMenuItems: [{
46189
- name: 'All',
46190
- route: 'all',
46191
- icon: 'car'
46192
- }]
46193
- }, {
46194
- name: 'Y2Y Requests',
46195
- route: 'requests',
46196
- icon: 'memo-circle-check',
46197
- subMenuItems: [{
46198
- name: 'All',
46199
- route: 'all',
46200
- icon: 'car'
46201
- }]
46202
- }]
46203
- }];
46204
-
46205
- var navItemCounts = {
46206
- lots: {
46207
- all: 3000,
46208
- pendingtripsbuild: 400,
46209
- dispatch: 234,
46210
- pendingprocessing: 125,
46211
- partialpaperwork: 658,
46212
- awaitingdispatch: 1002,
46213
- overdue: 376,
46214
- issuequeue: 765
46215
- },
46216
- towproviders: {
46217
- all: 298
46218
- }
46219
- };
46220
- var getNavItemCounts = function getNavItemCounts(menuItemName) {
46221
- return new Promise(function (resolve, reject) {
46222
- setTimeout(function () {
46223
- var counts = navItemCounts[menuItemName] || {};
46224
- resolve(counts);
46225
- }, 500);
46226
- });
46227
- };
46228
-
46229
46069
  var css_248z$1 = ".utilities_ops-app-frame_AppFrame_AppFrame--AppFrame {\n background: var(--paleGray);\n background: var(--paleGray);\n height: 100vh;\n max-height: 100vh;\n display: flex;\n flex-direction: column;\n flex-basis: 0;\n}\n\n.utilities_ops-app-frame_AppFrame_AppFrame--header {\n flex: 0 1 auto;\n display: flex;\n flex-direction: column;\n}\n\n/* Wrapper that contains the app being developed. */\n\n.utilities_ops-app-frame_AppFrame_AppFrame--AppContainer {\n flex: 1 1 auto;\n position: relative;\n}\n";
46230
46070
  styleInject(css_248z$1);
46231
46071
 
@@ -46272,7 +46112,7 @@ var AppFrame = function AppFrame(props) {
46272
46112
  }
46273
46113
  }, [appBarMounted]);
46274
46114
  React.useEffect(function () {
46275
- console.log('env in toolkit props=', props.env);
46115
+ console.log("env in toolkit props=", props.env);
46276
46116
  if (props.env) {
46277
46117
  window.toolkitEnv = props.env;
46278
46118
  }
@@ -46324,9 +46164,8 @@ var AppFrame = function AppFrame(props) {
46324
46164
  };
46325
46165
  AppFrame.defaultProps = {
46326
46166
  handleScrolling: true,
46327
- showNavigation: true,
46328
- navItems: navItems3Level,
46329
- getCounts: getNavItemCounts
46167
+ showNavigation: false,
46168
+ navItems: []
46330
46169
  };
46331
46170
 
46332
46171
  var _excluded = ["fromPhone", "toPhone", "appCode", "entityType", "lotAttributes"];