@copart/ops-tool-kit 1.5.37 → 1.6.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/ops-tool-kit.js +59 -17
- package/dist/ops-tool-kit.js.map +1 -1
- package/package.json +1 -1
package/dist/ops-tool-kit.js
CHANGED
|
@@ -33,7 +33,7 @@ var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
|
33
33
|
var ReactDOM__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$e = "@copart/ops-tool-kit";
|
|
36
|
-
const version$3 = "1.
|
|
36
|
+
const version$3 = "1.6.0";
|
|
37
37
|
const main = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -6455,7 +6455,6 @@ function () {
|
|
|
6455
6455
|
return _ref.apply(this, arguments);
|
|
6456
6456
|
};
|
|
6457
6457
|
}();
|
|
6458
|
-
|
|
6459
6458
|
var findAppData = function findAppData(tiles) {
|
|
6460
6459
|
var matchingTiles = tiles.filter(function (tile) {
|
|
6461
6460
|
if (tile.appName) {
|
|
@@ -6474,7 +6473,6 @@ var findAppData = function findAppData(tiles) {
|
|
|
6474
6473
|
return matchingTiles[0];
|
|
6475
6474
|
}
|
|
6476
6475
|
};
|
|
6477
|
-
|
|
6478
6476
|
var getAppTileData =
|
|
6479
6477
|
/*#__PURE__*/
|
|
6480
6478
|
function () {
|
|
@@ -22117,7 +22115,7 @@ FeedbackDialog.defaultProps = {
|
|
|
22117
22115
|
}
|
|
22118
22116
|
};
|
|
22119
22117
|
|
|
22120
|
-
var css_248z$b = ".utilities_ops-app-frame_AppBarComponent_AppBar--root {\n background-color: var(--blue);\n background-color: var(--blue);\n height: 64px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n white-space: nowrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--leftItems {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogo {\n display: flex;\n align-items: center;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogoNew {\n display: flex;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--moduleName {\n color: white;\n font-size: 11px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col {\n display: flex;\n color: white;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col svg {\n color: white;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n width: 6rem;\n margin-top: 0rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--text {\n margin-top: 0.6rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--iconText {\n margin-top: 0.4rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchBar,\n.utilities_ops-app-frame_AppBarComponent_AppBar--placeholderDiv {\n margin-top: -0.2rem;\n margin-left: 2rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarLeft > img.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n display: inline;\n display: initial;\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-style: italic;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2)
|
|
22118
|
+
var css_248z$b = ".utilities_ops-app-frame_AppBarComponent_AppBar--root {\n background-color: var(--blue);\n background-color: var(--blue);\n height: 64px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n white-space: nowrap;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--leftItems {\n width: 100%;\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogo {\n display: flex;\n align-items: center;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--copartLogoNew {\n display: flex;\n flex-direction: column;\n margin-left: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--moduleName {\n color: white;\n font-size: 11px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid {\n display: flex;\n justify-content: space-between;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid-items {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col {\n display: flex;\n color: white;\n font-size: 13px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--flex-grid .utilities_ops-app-frame_AppBarComponent_AppBar--col svg {\n color: white;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n width: 6rem;\n margin-top: 0rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--text {\n margin-top: 0.6rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--iconText {\n margin-top: 0.4rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--searchBar,\n.utilities_ops-app-frame_AppBarComponent_AppBar--placeholderDiv {\n margin-top: -0.2rem;\n margin-left: 2rem;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--appBarLeft > img.utilities_ops-app-frame_AppBarComponent_AppBar--logo {\n display: inline;\n display: initial;\n}\n\n@font-face {\n font-family: 'Open Sans';\n font-style: italic;\n font-weight: 600;\n src: url(https://fonts.gstatic.com/s/opensans/v18/memnYaGs126MiZpBA-UFUKXGUdhmIqOjjg.woff2)\n format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--appTitle {\n color: #fff;\n font-family: 'Open Sans', sans-serif;\n font-weight: 600;\n font-style: italic;\n font-size: 14px;\n position: relative;\n left: 16px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--item {\n display: flex;\n color: white;\n font-size: 13px;\n cursor: pointer;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\n margin-left: 10px;\n margin-right: 7px;\n cursor: pointer;\n display: flex;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber > div {\n margin-left: 7px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault {\n color: white;\n cursor: default;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\n background-color: white;\n border-radius: 20px;\n margin: 5px;\n padding: 0px 10px;\n height: 25px;\n font-weight: bold;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--light {\n border: 1px solid #1d5ab9;\n justify-content: flex-start;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightDefault {\n color: black;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline,\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\n background-color: white;\n border-radius: 20px;\n display: flex;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable {\n color: green;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--lightAvailable i {\n color: green;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline {\n color: red;\n margin: 5px 0px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneOffline svg {\n margin-right: 5px;\n margin-left: 5px;\n width: 24px;\n height: 24px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--SpinnerWrapper {\n margin-left: 5px;\n display: inline-flex;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i {\n font-size: 16px;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i {\n line-height: unset;\n font-size: 16px;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable {\n color: green;\n}\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\n margin-right: 5px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable {\n color: red;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--userMenu {\n margin-left: 10px !important;\n margin-right: 10px !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\n margin-left: 10px !important;\n margin-right: 10px !important;\n display: flex;\n align-items: center;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\n margin-left: 7px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--feedback {\n margin: 0 !important;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems {\n width: 100%;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button {\n cursor: pointer;\n position: relative;\n top: 2px;\n}\n\n.utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button i {\n color: #fff;\n}\n\n@media only screen and (max-width: 1024px) {\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneDefault i,\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneAvailable i,\n .utilities_ops-app-frame_AppBarComponent_AppBar--phoneUnvailable svg {\n margin-right: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber {\n margin-left: 5px;\n margin-right: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--yardNumber > div {\n margin-left: 2px;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--userMenu {\n margin-left: 3px !important;\n margin-right: 3px !important;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag {\n margin-left: 3px !important;\n margin-right: 3px !important;\n }\n\n .utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag > div {\n margin-left: 2px;\n }\n}\n";
|
|
22121
22119
|
styleInject(css_248z$b);
|
|
22122
22120
|
|
|
22123
22121
|
var LogOutMenu = function LogOutMenu(_ref) {
|
|
@@ -22165,6 +22163,18 @@ var CopartLogo = function CopartLogo() {
|
|
|
22165
22163
|
}));
|
|
22166
22164
|
};
|
|
22167
22165
|
|
|
22166
|
+
var Help = function Help(_ref) {
|
|
22167
|
+
var handleHelpClick = _ref.handleHelpClick;
|
|
22168
|
+
return React__default["default"].createElement("div", {
|
|
22169
|
+
className: "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button"
|
|
22170
|
+
}, React__default["default"].createElement(coreComponents.IconButton, {
|
|
22171
|
+
onClick: handleHelpClick
|
|
22172
|
+
}, React__default["default"].createElement(coreComponents.Icon, {
|
|
22173
|
+
name: "help",
|
|
22174
|
+
variant: "material"
|
|
22175
|
+
})));
|
|
22176
|
+
};
|
|
22177
|
+
|
|
22168
22178
|
var css_248z$9 = ".utilities_ops-app-frame_AppBarComponent_FeedbackDialog_FeedbackButton_FeedbackButton--FeedbackButton {\n /* TODO: Perfect the AppBar spacing. */\n margin-left: 7px !important;\n position: relative !important;\n top: 1px;\n cursor: pointer;\n}\n\nbutton.utilities_ops-app-frame_AppBarComponent_FeedbackDialog_FeedbackButton_FeedbackButton--FeedbackButton[type='button'] {\n /* materia-ui hack. */\n padding: 0 !important;\n}\n";
|
|
22169
22179
|
styleInject(css_248z$9);
|
|
22170
22180
|
|
|
@@ -22213,7 +22223,8 @@ var _styleModuleImportMap$5 = {
|
|
|
22213
22223
|
"userMenu": "utilities_ops-app-frame_AppBarComponent_AppBar--userMenu",
|
|
22214
22224
|
"roleAndFlag": "utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag",
|
|
22215
22225
|
"feedback": "utilities_ops-app-frame_AppBarComponent_AppBar--feedback",
|
|
22216
|
-
"overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems"
|
|
22226
|
+
"overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems",
|
|
22227
|
+
"mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button"
|
|
22217
22228
|
}
|
|
22218
22229
|
};
|
|
22219
22230
|
|
|
@@ -24781,7 +24792,8 @@ var _styleModuleImportMap$4 = {
|
|
|
24781
24792
|
"userMenu": "utilities_ops-app-frame_AppBarComponent_AppBar--userMenu",
|
|
24782
24793
|
"roleAndFlag": "utilities_ops-app-frame_AppBarComponent_AppBar--roleAndFlag",
|
|
24783
24794
|
"feedback": "utilities_ops-app-frame_AppBarComponent_AppBar--feedback",
|
|
24784
|
-
"overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems"
|
|
24795
|
+
"overflowItems": "utilities_ops-app-frame_AppBarComponent_AppBar--overflowItems",
|
|
24796
|
+
"mihelp_button": "utilities_ops-app-frame_AppBarComponent_AppBar--mihelp_button"
|
|
24785
24797
|
}
|
|
24786
24798
|
};
|
|
24787
24799
|
var overflowSetStyles = {
|
|
@@ -24805,10 +24817,12 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
24805
24817
|
_props$phoneStatusObj = props.phoneStatusObject,
|
|
24806
24818
|
phoneStatusObject = _props$phoneStatusObj === void 0 ? {} : _props$phoneStatusObj,
|
|
24807
24819
|
_togglePhoneAvailability = props.togglePhoneAvailability,
|
|
24820
|
+
handleHelpClick = props.handleHelpClick,
|
|
24808
24821
|
type = props.type,
|
|
24809
24822
|
config = props.config,
|
|
24810
24823
|
_props$navigateTo = props.navigateTo,
|
|
24811
|
-
navigateTo = _props$navigateTo === void 0 ? function (url) {} : _props$navigateTo
|
|
24824
|
+
navigateTo = _props$navigateTo === void 0 ? function (url) {} : _props$navigateTo,
|
|
24825
|
+
isMihelpEnabled = props.isMihelpEnabled;
|
|
24812
24826
|
var coreAppConfig = storage.getLocalItem('opsportal-core:config');
|
|
24813
24827
|
var enableNewToolkitFeatures = coreAppConfig.enableNewToolkitFeatures,
|
|
24814
24828
|
showSettingsMenuByTileConfig = coreAppConfig.showSettingsMenuByTileConfig;
|
|
@@ -24957,7 +24971,7 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
24957
24971
|
text: "Feedback"
|
|
24958
24972
|
}));
|
|
24959
24973
|
},
|
|
24960
|
-
renderIf:
|
|
24974
|
+
renderIf: !isMihelpEnabled,
|
|
24961
24975
|
onClick: function onClick() {
|
|
24962
24976
|
return props.toggleFeedbackDialog(true);
|
|
24963
24977
|
},
|
|
@@ -24968,6 +24982,15 @@ var generateAppBarElements = function generateAppBarElements(props, showCallout)
|
|
|
24968
24982
|
}
|
|
24969
24983
|
});
|
|
24970
24984
|
}
|
|
24985
|
+
}, {
|
|
24986
|
+
key: 'help',
|
|
24987
|
+
name: 'Help',
|
|
24988
|
+
renderIf: isMihelpEnabled,
|
|
24989
|
+
render: function render() {
|
|
24990
|
+
return React__default["default"].createElement(Help, {
|
|
24991
|
+
handleHelpClick: handleHelpClick
|
|
24992
|
+
});
|
|
24993
|
+
}
|
|
24971
24994
|
}, {
|
|
24972
24995
|
key: 'logout',
|
|
24973
24996
|
name: 'Logout',
|
|
@@ -30280,6 +30303,26 @@ var AppBar = function AppBar(_ref) {
|
|
|
30280
30303
|
}
|
|
30281
30304
|
};
|
|
30282
30305
|
|
|
30306
|
+
var tileData = findAppData(coreAppConfig.tiles || []) || {};
|
|
30307
|
+
var mihelpAppPath = !isCoreRoute ? tileData.mihelpAppPath : null;
|
|
30308
|
+
|
|
30309
|
+
var handleHelpClick = function handleHelpClick() {
|
|
30310
|
+
var country = storage$1.getSessionItem('dashboard', 'selectedCountryA3code');
|
|
30311
|
+
browserCookies.set('mihelpCountry', country.toLowerCase(), {
|
|
30312
|
+
domain: '.copart.com'
|
|
30313
|
+
});
|
|
30314
|
+
var uri = mihelpAppPath ? "".concat(coreAppConfig.mihelpUri, "/applications/").concat(mihelpAppPath) : coreAppConfig.mihelpUri;
|
|
30315
|
+
window.open(uri, "_blank");
|
|
30316
|
+
};
|
|
30317
|
+
|
|
30318
|
+
var isMihelpEnabled;
|
|
30319
|
+
|
|
30320
|
+
if (isCoreRoute) {
|
|
30321
|
+
isMihelpEnabled = coreAppConfig.enableMiHelp;
|
|
30322
|
+
} else {
|
|
30323
|
+
isMihelpEnabled = Boolean(mihelpAppPath);
|
|
30324
|
+
}
|
|
30325
|
+
|
|
30283
30326
|
var feedbackConfig = function feedbackConfig() {
|
|
30284
30327
|
var _storage$coreConfig;
|
|
30285
30328
|
|
|
@@ -30325,6 +30368,8 @@ var AppBar = function AppBar(_ref) {
|
|
|
30325
30368
|
yardNumber: storage$1.activeYardNumber,
|
|
30326
30369
|
onRenderFlag: CountryFlag,
|
|
30327
30370
|
onLogoutItemClicked: handleSettingsItemClick,
|
|
30371
|
+
handleHelpClick: handleHelpClick,
|
|
30372
|
+
isMihelpEnabled: isMihelpEnabled,
|
|
30328
30373
|
sendFeedback: fetcher.sendFeedback,
|
|
30329
30374
|
feedbackConfig: feedbackConfig(),
|
|
30330
30375
|
stack: process.env.STACK,
|
|
@@ -40533,12 +40578,9 @@ function formatLink(link) {
|
|
|
40533
40578
|
function padTo2Digits(num) {
|
|
40534
40579
|
return num.toString().padStart(2, '0');
|
|
40535
40580
|
}
|
|
40536
|
-
|
|
40537
|
-
function getYesterdayDate() {
|
|
40581
|
+
function getTodayDate() {
|
|
40538
40582
|
var today = new Date();
|
|
40539
|
-
|
|
40540
|
-
yesterday.setDate(today.getDate() - 1);
|
|
40541
|
-
return yesterday.getUTCFullYear() + '-' + padTo2Digits(yesterday.getUTCMonth() + 1) + '-' + padTo2Digits(yesterday.getUTCDate());
|
|
40583
|
+
return today.getUTCFullYear() + '-' + padTo2Digits(today.getUTCMonth() + 1) + '-' + padTo2Digits(today.getUTCDate());
|
|
40542
40584
|
}
|
|
40543
40585
|
|
|
40544
40586
|
var name="@firebase/database";var version="0.11.0";/**
|
|
@@ -44663,15 +44705,15 @@ function connect(firebaseConfig) {
|
|
|
44663
44705
|
}
|
|
44664
44706
|
|
|
44665
44707
|
function attachHandlers(setNotifications) {
|
|
44666
|
-
var
|
|
44667
|
-
firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(
|
|
44708
|
+
var today = getTodayDate();
|
|
44709
|
+
firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(today).on('value', function (snapshot) {
|
|
44668
44710
|
compose(setNotifications, filterNotifications, mapNotifications, values$1)(snapshot.val());
|
|
44669
44711
|
});
|
|
44670
44712
|
}
|
|
44671
44713
|
|
|
44672
44714
|
function _refetchNotifications(setNotifications) {
|
|
44673
|
-
var
|
|
44674
|
-
firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(
|
|
44715
|
+
var today = getTodayDate();
|
|
44716
|
+
firebase.database().ref().child('ops-news').orderByChild('ends_at').startAt(today).once('value').then(function (snapshot) {
|
|
44675
44717
|
compose(setNotifications, filterNotifications, mapNotifications, values$1)(snapshot.val());
|
|
44676
44718
|
});
|
|
44677
44719
|
}
|