diff --git a/bower.json b/bower.json index dcc33d89e1..9caa3aa94f 100644 --- a/bower.json +++ b/bower.json @@ -13,7 +13,7 @@ "angular-touch": "1.5.11", "angular-route": "1.5.11", "angular-bootstrap": "0.14.3", - "angular-patternfly": "4.11.8", + "angular-patternfly": "4.14.2", "angular-gettext": "2.3.9", "uri.js": "1.18.12", "moment": "2.14.2", diff --git a/dist/scripts/vendor.js b/dist/scripts/vendor.js index dce8d008c7..2545413bf7 100644 --- a/dist/scripts/vendor.js +++ b/dist/scripts/vendor.js @@ -49493,6 +49493,9 @@ t.selectedAction = "none", e.$emit("nodeActionClosed"), angular.isFunction(t.nod bindings: { status: "=", showTopBorder: "@?", +showSpinner: "= i.thresholdError, i.isWarn = i.chartData.percentageUsed >= i.thresholdWarning && i.chartData.percentageUsed < i.thresholdError, i.isOk = i.chartData.percentageUsed < i.thresholdWarning), i.animate = !0, e(function() { +t = angular.copy(i.chartData), n = angular.copy(i.layout), i.chartData && (!isNaN(i.chartData.used) && !isNaN(i.chartData.total) && i.chartData.total > 0 ? i.chartData.percentageUsed = Math.round(i.chartData.used / i.chartData.total * 100) : i.chartData.percentageUsed = 0, (i.thresholdError || i.thresholdWarning) && (i.isError = i.chartData.percentageUsed >= i.thresholdError, i.isWarn = i.chartData.percentageUsed >= i.thresholdWarning && i.chartData.percentageUsed < i.thresholdError, i.isOk = i.chartData.percentageUsed < i.thresholdWarning), i.animate = !0, e(function() { i.animate = !1; -}, 0); +}, 0)); }, i.$onChanges = function(e) { i.updateAll(); }, i.$doCheck = function() { angular.equals(i.chartData, t) && angular.equals(i.layout, n) || i.updateAll(); }, i.usedTooltipMessage = function() { -return i.usedTooltipFunction ? i.usedTooltipFunction() : i.chartData.percentageUsed + "% Used"; +return i.usedTooltipFunction ? i.usedTooltipFunction() : _.get(i.chartData, "percentageUsed", "N/A") + "% Used"; }, i.availableTooltipMessage = function() { -return i.availableTooltipFunction ? i.availableTooltipFunction() : 100 - i.chartData.percentageUsed + "% Available"; +return i.availableTooltipFunction ? i.availableTooltipFunction() : 100 - _.get(i.chartData, "percentageUsed", 0) + "% Available"; }; } ] }), angular.module("patternfly.charts").component("pfUtilizationTrendChart", { @@ -51160,7 +51172,7 @@ w.debug && r.debug(" setSelectAllCheckbox"), e = g().length, t = document.query } function g() { var e, t, n = [], i = document.querySelectorAll("#" + w.tableId + " tbody tr"); -for (e = 0; e < i.length; ++e) null !== (t = i[e].cells) && n.push(_.trim(t[w.selectionMatchPropColNum].innerText)); +for (e = 0; e < i.length; ++e) null !== (t = i[e].cells) && t.length > w.selectionMatchPropColNum && n.push(_.trim(t[w.selectionMatchPropColNum].innerText)); return w.debug && r.debug(" getVisibleRows (" + n.length + ")"), n; } function m(e) { @@ -51485,28 +51497,30 @@ actionButtons: " 0 && (o.config.selectedItems = [ o.config.selectedItems[0] ]), o.config.selectItems && o.config.showSelectBox) throw new Error("pfListView - Illegal use of pListView component! Cannot allow both select box and click selection in the same list view."); -r = angular.copy(o.items), n(); -}, o.$doCheck = function() { -angular.equals(o.pageConfig, i) || n(), angular.equals(o.items, r) || (o.items && (o.config.itemsAvailable = o.items.length > 0), angular.isDefined(o.pageConfig) && (o.pageConfig.numTotalItems = o.items.length), r = angular.copy(o.items)); -}, o.dragEnd = function() { -angular.isFunction(o.config.dragEnd) && o.config.dragEnd(); -}, o.dragMoved = function() { -angular.isFunction(o.config.dragMoved) && o.config.dragMoved(); -}, o.isDragOriginal = function(e) { -return e === o.dragItem; -}, o.dragStart = function(e) { -o.dragItem = e, angular.isFunction(o.config.dragStart) && o.config.dragStart(e); +}, a.checkDisabled = function(e) { +return a.config.checkDisabled && a.config.checkDisabled(e); +}, a.$onInit = function() { +if (angular.isUndefined(a.config) && (a.config = {}), _.defaults(a.config, a.defaultConfig), a.config.selectItems || (a.config.selectedItems = []), !a.config.multiSelect && a.config.selectedItems && a.config.selectedItems.length > 0 && (a.config.selectedItems = [ a.config.selectedItems[0] ]), a.config.selectItems && a.config.showSelectBox) throw new Error("pfListView - Illegal use of pListView component! Cannot allow both select box and click selection in the same list view."); +o = angular.copy(a.items), i(); +}, a.$doCheck = function() { +angular.equals(a.pageConfig, r) || i(), angular.equals(a.items, o) || (a.items && (a.config.itemsAvailable = a.items.length > 0), angular.isDefined(a.pageConfig) && (a.pageConfig.numTotalItems = a.items.length), o = angular.copy(a.items)); +}, a.dragEnd = function() { +angular.isFunction(a.config.dragEnd) && a.config.dragEnd(); +}, a.dragMoved = function() { +angular.isFunction(a.config.dragMoved) && a.config.dragMoved(); +}, a.isDragOriginal = function(e) { +return e === a.dragItem; +}, a.dragStart = function(e) { +a.dragItem = e, angular.isFunction(a.config.dragStart) && a.config.dragStart(e); }; } ] }), function() { @@ -51894,27 +51908,27 @@ transclude: !0, bindings: { title: "@", wizardTitle: "@", -hideIndicators: "=?", +hideIndicators: " i.selectedStep.stepPriority); +return e.allowClickNav && !i.wizardDone && i.selectedStep && i.selectedStep.okToNavAway && (i.selectedStep.nextEnabled || e.stepPriority < i.selectedStep.stepPriority) && (i.selectedStep.prevEnabled || e.stepPriority > i.selectedStep.stepPriority); }, i.stepClick = function(e) { -e.allowClickNav && !i.wizardDone && i.selectedStep.okToNavAway && (i.selectedStep.nextEnabled || e.stepPriority < i.selectedStep.stepPriority) && (i.selectedStep.prevEnabled || e.stepPriority > i.selectedStep.stepPriority) && i.goTo(e, !0); +e.allowClickNav && i.selectedStep && !i.wizardDone && i.selectedStep.okToNavAway && (i.selectedStep.nextEnabled || e.stepPriority < i.selectedStep.stepPriority) && (i.selectedStep.prevEnabled || e.stepPriority > i.selectedStep.stepPriority) && i.goTo(e, !0); }, i.setPageSelected = function(e) { angular.isFunction(i.onStepChanged) && i.onStepChanged({ step: e, @@ -52024,9 +52038,9 @@ e.put("canvas-view/canvas-editor/toolbox-items.html", '