@copart/ops-tool-kit 1.8.1-alpha.16 → 1.8.1-alpha.17
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 -12
- 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__namespace = /*#__PURE__*/_interopNamespace(ReactDOM);
|
|
|
33
33
|
var ReactDOM__default = /*#__PURE__*/_interopDefaultLegacy(ReactDOM);
|
|
34
34
|
|
|
35
35
|
const name$f = "@copart/ops-tool-kit";
|
|
36
|
-
const version$5 = "1.8.1-alpha.
|
|
36
|
+
const version$5 = "1.8.1-alpha.17";
|
|
37
37
|
const main$1 = "dist/ops-tool-kit.js";
|
|
38
38
|
const style = "dist/ops-tool-kit.css";
|
|
39
39
|
const files = [
|
|
@@ -2586,13 +2586,11 @@ function set$1(target, path, value, options) {
|
|
|
2586
2586
|
|
|
2587
2587
|
let opts = options || {};
|
|
2588
2588
|
const isArray = Array.isArray(path);
|
|
2589
|
-
|
|
2590
2589
|
if (!isArray && typeof path !== 'string') {
|
|
2591
2590
|
return target;
|
|
2592
2591
|
}
|
|
2593
2592
|
|
|
2594
2593
|
let merge = opts.merge;
|
|
2595
|
-
|
|
2596
2594
|
if (merge && typeof merge !== 'function') {
|
|
2597
2595
|
merge = Object.assign;
|
|
2598
2596
|
}
|
|
@@ -2635,7 +2633,8 @@ function result(target, path, value, merge) {
|
|
|
2635
2633
|
function split(path, options) {
|
|
2636
2634
|
const id = createKey(path, options);
|
|
2637
2635
|
if (set$1.memo[id]) return set$1.memo[id];
|
|
2638
|
-
|
|
2636
|
+
|
|
2637
|
+
const char = (options && options.separator) ? options.separator : '.';
|
|
2639
2638
|
let keys = [];
|
|
2640
2639
|
let res = [];
|
|
2641
2640
|
|
|
@@ -2647,32 +2646,25 @@ function split(path, options) {
|
|
|
2647
2646
|
|
|
2648
2647
|
for (let i = 0; i < keys.length; i++) {
|
|
2649
2648
|
let prop = keys[i];
|
|
2650
|
-
|
|
2651
2649
|
while (prop && prop.slice(-1) === '\\' && keys[i + 1]) {
|
|
2652
2650
|
prop = prop.slice(0, -1) + char + keys[++i];
|
|
2653
2651
|
}
|
|
2654
|
-
|
|
2655
2652
|
res.push(prop);
|
|
2656
2653
|
}
|
|
2657
|
-
|
|
2658
2654
|
set$1.memo[id] = res;
|
|
2659
2655
|
return res;
|
|
2660
2656
|
}
|
|
2661
2657
|
|
|
2662
2658
|
function createKey(pattern, options) {
|
|
2663
2659
|
let id = pattern;
|
|
2664
|
-
|
|
2665
2660
|
if (typeof options === 'undefined') {
|
|
2666
2661
|
return id + '';
|
|
2667
2662
|
}
|
|
2668
|
-
|
|
2669
2663
|
const keys = Object.keys(options);
|
|
2670
|
-
|
|
2671
2664
|
for (let i = 0; i < keys.length; i++) {
|
|
2672
2665
|
const key = keys[i];
|
|
2673
2666
|
id += ';' + key + '=' + String(options[key]);
|
|
2674
2667
|
}
|
|
2675
|
-
|
|
2676
2668
|
return id;
|
|
2677
2669
|
}
|
|
2678
2670
|
|
|
@@ -47821,10 +47813,21 @@ var AppBar = function AppBar(_ref) {
|
|
|
47821
47813
|
var notificationIds = newNotifications.map(function (notification) {
|
|
47822
47814
|
return notification.notificationId;
|
|
47823
47815
|
});
|
|
47816
|
+
var actionCompletedNotificationIds = [];
|
|
47824
47817
|
var filteredNotifications = notifications.filter(function (notification) {
|
|
47818
|
+
var _notification$action, _notification$action$;
|
|
47819
|
+
|
|
47820
|
+
if (notification === null || notification === void 0 ? void 0 : (_notification$action = notification.action) === null || _notification$action === void 0 ? void 0 : (_notification$action$ = _notification$action.componentState) === null || _notification$action$ === void 0 ? void 0 : _notification$action$.completed) {
|
|
47821
|
+
actionCompletedNotificationIds.push(notification.notificationId);
|
|
47822
|
+
return true;
|
|
47823
|
+
}
|
|
47824
|
+
|
|
47825
47825
|
return !notificationIds.includes(notification.notificationId);
|
|
47826
47826
|
});
|
|
47827
|
-
|
|
47827
|
+
var filterednewNotifications = newNotifications.filter(function (notification) {
|
|
47828
|
+
return !actionCompletedNotificationIds.includes(notification.notificationId);
|
|
47829
|
+
});
|
|
47830
|
+
return sortNotifications([].concat(_toConsumableArray(filterednewNotifications), _toConsumableArray(filteredNotifications)));
|
|
47828
47831
|
};
|
|
47829
47832
|
|
|
47830
47833
|
var dismissNotification = function dismissNotification(notification) {
|
|
@@ -47906,6 +47909,7 @@ var AppBar = function AppBar(_ref) {
|
|
|
47906
47909
|
phoneStatus: '',
|
|
47907
47910
|
phoneStatusProcessing: false
|
|
47908
47911
|
} : _storage$chromePlugin;
|
|
47912
|
+
console.log("***notifications=", notifications);
|
|
47909
47913
|
return React__default["default"].createElement("div", null, React__default["default"].createElement(AppBar$1, {
|
|
47910
47914
|
moduleName: "OPS PORTAL",
|
|
47911
47915
|
isLoggedOn: storage$1.isAuthenticated,
|