@c8y/ng1-modules 1020.13.2 → 1020.14.4
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/alarmsEventsExplorer/alarmsEventsTimelinesChart/alarmsEventsTimelinesChart.service.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){var r;if(t)return"string"==typeof t?_arrayLikeToArray(t,e):"Map"===(r="Object"===(r=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _iterableToArrayLimit(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){u=!0,a=t}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function _arrayWithHoles(t){if(Array.isArray(t))return t}!function(){function t(l,c,u,s,i,e,f){var n=u.createEnum([{name:"ALARM",value:"ALARM",label:f("Alarm")},{name:"EVENT",value:"EVENT",label:f("Event")}]);return{TIMELINE_TYPES:n,getSampleAlarmsAndEventsConfigsForDevice:function(t){return l.all([function(t){t={source:t.id||t,pageSize:10};return s.list(t).then(function(t){return _.map(t,function(t){return{__active:!1,__target:_.pick(t.source,"id","name"),label:t.type,color:e.generateColor(),timelineType:n.ALARM.value,filters:{type:t.type}}})})}(t),function(t){t={source:t.id||t,pageSize:10};return i.list(t).then(function(t){return _.map(t,function(t){return{__active:!1,__target:_.pick(t.source,"id","name"),label:t.type,color:e.generateColor(),timelineType:n.EVENT.value,filters:{type:t.type}}})})}(t)]).then(_.flatten).then(r)},getEmptyAlarmEventConfigForDevice:function(t){return{__active:!1,__target:_.pick(t,"id","name"),label:"",color:e.generateColor(),timelineType:n.ALARM.value,filters:{type:""}}},fetchTimelinesForAlarmsEvents:function(t,r){t=_.filter(t,{__active:!0}),t=_.map(t,function(e){return function(t,e){var r=l.when([]),e=_.assign({},e,t.filters,{source:t.__target.id});t.timelineType===n.EVENT.value?r=function(t){return i.list(t).then(function(t){return l.all(_.map(t,o))})}(e):t.timelineType===n.ALARM.value&&(r=function(t){var e=_.assign({},t,{dateFrom:moment(0).format(u.dateFullFormat),dateTo:t.dateFrom,revert:!0,pageSize:1}),r=t,t=_.assign({},t,{dateFrom:t.dateTo,dateTo:moment().format(u.dateFullFormat),pageSize:1}),e=[s.list(e),s.list(r),s.list(t)];return l.all(e).then(_.flatten).then(function(t){return l.all(_.map(t,a))})}(e));return r}(e,r).then(function(t){return{label:e.label,color:e.color,events:t,alarmsEventsConfig:e}})});return l.all(t)},alarmMatchesConfig:function(t,e){return _.isMatch(e,{timelineType:"ALARM",__target:{id:t.source.id},filters:{type:t.type}})},eventMatchesConfig:function(t,e){return _.isMatch(e,{timelineType:"EVENT",__target:{id:t.source.id},filters:{type:t.type}})},transformAlarmToTimelineEvent:a,transformEventToTimelineEvent:o};function r(t){return _.uniqBy(t,function(t){return[t.__target.id,t.timelineType,t.filters.type].join(":")})}function a(n){return l.all([s.alarmDurationDiff(n),(r=n,a=c("absoluteDate"),i=c("translate"),o=c("humanize2"),s.statusText(r).then(function(t){var e=r.firstOccurrenceTime||r.time;return _.flatten(['<i class="dlt-c8y-icon-bell"></i> <b>'.concat(a(e),"</b>"),"".concat(i(f("Status")),": ").concat(t),_.map(s.getStandardKeys(r,["lastUpdated"]),function(t,e){return"".concat(_.escape(i(t)),": <b>").concat(_.escape(r[e]),"</b>")}),"".concat(i(f("Last updated")),": <b>").concat(a(r.lastUpdated),"</b>"),_.map(s.getNonStandardKeys(r),function(t){return"".concat(_.escape(o(t)),": <b>").concat(_.escape(JSON.stringify(r[t])),"</b>")})]).join("<br />")}))]).then(function(t){var t=_slicedToArray(t,2),e=t[0],t=t[1],r=n.firstOccurrenceTime||n.time||n.creationTime,e=n.status
|
|
1
|
+
"use strict";function _slicedToArray(t,e){return _arrayWithHoles(t)||_iterableToArrayLimit(t,e)||_unsupportedIterableToArray(t,e)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){var r;if(t)return"string"==typeof t?_arrayLikeToArray(t,e):"Map"===(r="Object"===(r=Object.prototype.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:r)||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(t,e):void 0}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function _iterableToArrayLimit(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,a,i,o,l=[],c=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=i.call(r)).done)&&(l.push(n.value),l.length!==e);c=!0);}catch(t){u=!0,a=t}finally{try{if(!c&&null!=r.return&&(o=r.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function _arrayWithHoles(t){if(Array.isArray(t))return t}!function(){function t(l,c,u,s,i,e,f){var n=u.createEnum([{name:"ALARM",value:"ALARM",label:f("Alarm")},{name:"EVENT",value:"EVENT",label:f("Event")}]);return{TIMELINE_TYPES:n,getSampleAlarmsAndEventsConfigsForDevice:function(t){return l.all([function(t){t={source:t.id||t,pageSize:10};return s.list(t).then(function(t){return _.map(t,function(t){return{__active:!1,__target:_.pick(t.source,"id","name"),label:t.type,color:e.generateColor(),timelineType:n.ALARM.value,filters:{type:t.type}}})})}(t),function(t){t={source:t.id||t,pageSize:10};return i.list(t).then(function(t){return _.map(t,function(t){return{__active:!1,__target:_.pick(t.source,"id","name"),label:t.type,color:e.generateColor(),timelineType:n.EVENT.value,filters:{type:t.type}}})})}(t)]).then(_.flatten).then(r)},getEmptyAlarmEventConfigForDevice:function(t){return{__active:!1,__target:_.pick(t,"id","name"),label:"",color:e.generateColor(),timelineType:n.ALARM.value,filters:{type:""}}},fetchTimelinesForAlarmsEvents:function(t,r){t=_.filter(t,{__active:!0}),t=_.map(t,function(e){return function(t,e){var r=l.when([]),e=_.assign({},e,t.filters,{source:t.__target.id});t.timelineType===n.EVENT.value?r=function(t){return i.list(t).then(function(t){return l.all(_.map(t,o))})}(e):t.timelineType===n.ALARM.value&&(r=function(t){var e=_.assign({},t,{dateFrom:moment(0).format(u.dateFullFormat),dateTo:t.dateFrom,revert:!0,pageSize:1}),r=t,t=_.assign({},t,{dateFrom:t.dateTo,dateTo:moment().format(u.dateFullFormat),pageSize:1}),e=[s.list(e),s.list(r),s.list(t)];return l.all(e).then(_.flatten).then(function(t){return l.all(_.map(t,a))})}(e));return r}(e,r).then(function(t){return{label:e.label,color:e.color,events:t,alarmsEventsConfig:e}})});return l.all(t)},alarmMatchesConfig:function(t,e){return _.isMatch(e,{timelineType:"ALARM",__target:{id:t.source.id},filters:{type:t.type}})},eventMatchesConfig:function(t,e){return _.isMatch(e,{timelineType:"EVENT",__target:{id:t.source.id},filters:{type:t.type}})},transformAlarmToTimelineEvent:a,transformEventToTimelineEvent:o};function r(t){return _.uniqBy(t,function(t){return[t.__target.id,t.timelineType,t.filters.type].join(":")})}function a(n){return l.all([s.alarmDurationDiff(n),(r=n,a=c("absoluteDate"),i=c("translate"),o=c("humanize2"),s.statusText(r).then(function(t){var e=r.firstOccurrenceTime||r.time;return _.flatten(['<i class="dlt-c8y-icon-bell"></i> <b>'.concat(a(e),"</b>"),"".concat(i(f("Status")),": ").concat(t),_.map(s.getStandardKeys(r,["lastUpdated"]),function(t,e){return"".concat(_.escape(i(t)),": <b>").concat(_.escape(r[e]),"</b>")}),"".concat(i(f("Last updated")),": <b>").concat(a(r.lastUpdated),"</b>"),_.map(s.getNonStandardKeys(r),function(t){return"".concat(_.escape(o(t)),": <b>").concat(_.escape(JSON.stringify(r[t])),"</b>")})]).join("<br />")}))]).then(function(t){var t=_slicedToArray(t,2),e=t[0],t=t[1],r=n.firstOccurrenceTime||n.time||n.creationTime,e=n.status===s.status.CLEARED&&e?moment(r).subtract(e).format(u.dateFullFormat):void 0;return{id:n.id,dateFrom:r,dateTo:e,tooltip:t}});var r,a,i,o}function o(e){return r=e,t=c("absoluteDate"),n=c("translate"),a=c("humanize2"),l.when(_.flatten(['<i class="dlt-c8y-icon-rss"></i> <b>'.concat(t(r.time),"</b>"),_.map(i.getStandardKeys(r),function(t,e){return"".concat(_.escape(n(t)),": <b>").concat(_.escape(r[e]),"</b>")}),_.map(i.getNonStandardKeys(r),function(t){return"".concat(_.escape(a(t)),": <b>").concat(_.escape(JSON.stringify(r[t])),"</b>")})]).join("<br />")).then(function(t){return{id:e.id,date:e.time,tooltip:t}});var r,t,n,a}}t.$inject=["$q","$filter","c8yBase","c8yAlarms","c8yEvents","c8yUiUtil","gettext"],angular.module("c8y.alarmsEventsExplorer").factory("c8yAlarmsEventsTimelinesChartService",t)}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ownKeys(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){t=_toPrimitive(t,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);r=r.call(t,e||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}!function(){function t(n,i,o,u,a,t,e,c){var r=i.cleanFields,s="alarm/alarms",f="".concat(s,"/reports"),l={headers:i.contentHeaders("alarm")},m={WARNING:e("WARNING"),MINOR:e("MINOR"),MAJOR:e("MAJOR"),CRITICAL:e("CRITICAL")},y=[m.CRITICAL,m.MAJOR,m.MINOR,m.WARNING],p=_.keys(m),g={ACTIVE:e("ACTIVE"),ACKNOWLEDGED:e("ACKNOWLEDGED"),CLEARED:e("CLEARED")},d=_.keys(g),h=["id"],v=["id","self","creationTime","type","time","count","history","firstOccurence","firstOccurrenceTime"],b={},E="status",e={type:e("Type"),text:e("Text"),lastUpdated:e("Last updated")};function O(t){t=t.id||t;return i.url("".concat(s,"/").concat(t))}function D(t){var e=i.url(s),t=i.timeOrderFilter(i.pageSizeNoTotalFilter(t)),r={params:t},t=i.cleanListCallback("alarms",D,t);return n.get(e,r).then(t)}function C(t){var e=i.url(s),t=r(t,h);return n.post(e,t,l)}function w(t){var e=O(t),t=r(t,v);return n.put(e,t,l)}function A(e,t){t=t?r(t):a.list({source:e.id,pageSize:1e3}).then(r);return t;function r(t){var n="--";return e.status!==g.ACKNOWLEDGED||_.isEmpty(t)||(n=_.last(t).user),t.forEach(function(t){var e=t.changes||[],r=!1;if(e.forEach(function(t){if(t.attribute===E&&t.newValue===g.ACKNOWLEDGED)return!(r=!0)}),r)return n=t.user||n,!1}),n}}function T(t,e){function r(t){var t=t||[],n=t.length?t[t.length-1].creationTime:void 0;return t.forEach(function(e){var t=e.changes||[],r=!1;if(t.forEach(function(t){if(t.attribute===E&&t.newValue===g.ACKNOWLEDGED)return n=e.creationTime,!(r=!0)}),r)return!1}),n}return e?r(e):a.list({source:t.id,pageSize:1e3}).then(r)}function N(t,e){t=L(t,e);return t.humanize?t.humanize():t.then(function(t){return t.humanize?t.humanize():""})}function L(
|
|
1
|
+
"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ownKeys(e,t){var r,n=Object.keys(e);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(e),t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)),n}function _objectSpread(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ownKeys(Object(r),!0).forEach(function(t){_defineProperty(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function _defineProperty(t,e,r){return(e=_toPropertyKey(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _toPropertyKey(t){t=_toPrimitive(t,"string");return"symbol"==_typeof(t)?t:t+""}function _toPrimitive(t,e){if("object"!=_typeof(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0===r)return("string"===e?String:Number)(t);r=r.call(t,e||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}!function(){function t(n,i,o,u,a,t,e,c){var r=i.cleanFields,s="alarm/alarms",f="".concat(s,"/reports"),l={headers:i.contentHeaders("alarm")},m={WARNING:e("WARNING"),MINOR:e("MINOR"),MAJOR:e("MAJOR"),CRITICAL:e("CRITICAL")},y=[m.CRITICAL,m.MAJOR,m.MINOR,m.WARNING],p=_.keys(m),g={ACTIVE:e("ACTIVE"),ACKNOWLEDGED:e("ACKNOWLEDGED"),CLEARED:e("CLEARED")},d=_.keys(g),h=["id"],v=["id","self","creationTime","type","time","count","history","firstOccurence","firstOccurrenceTime"],b={},E="status",e={type:e("Type"),text:e("Text"),lastUpdated:e("Last updated")};function O(t){t=t.id||t;return i.url("".concat(s,"/").concat(t))}function D(t){var e=i.url(s),t=i.timeOrderFilter(i.pageSizeNoTotalFilter(t)),r={params:t},t=i.cleanListCallback("alarms",D,t);return n.get(e,r).then(t)}function C(t){var e=i.url(s),t=r(t,h);return n.post(e,t,l)}function w(t){var e=O(t),t=r(t,v);return n.put(e,t,l)}function A(e,t){t=t?r(t):a.list({source:e.id,pageSize:1e3}).then(r);return t;function r(t){var n="--";return e.status!==g.ACKNOWLEDGED||_.isEmpty(t)||(n=_.last(t).user),t.forEach(function(t){var e=t.changes||[],r=!1;if(e.forEach(function(t){if(t.attribute===E&&t.newValue===g.ACKNOWLEDGED)return!(r=!0)}),r)return n=t.user||n,!1}),n}}function T(t,e){function r(t){var t=t||[],n=t.length?t[t.length-1].creationTime:void 0;return t.forEach(function(e){var t=e.changes||[],r=!1;if(t.forEach(function(t){if(t.attribute===E&&t.newValue===g.ACKNOWLEDGED)return n=e.creationTime,!(r=!0)}),r)return!1}),n}return e?r(e):a.list({source:t.id,pageSize:1e3}).then(r)}function N(t,e){t=L(t,e);return t.humanize?t.humanize():t.then(function(t){return t.humanize?t.humanize():""})}function L(o,t){function e(t){var t=t||[],e=o.firstOccurrenceTime||o.time||o.creationTime,n=t.length?t[t.length-1].creationTime:void 0,r="",i=null;return _.forEach(t,function(e){var t=e.changes||[],r=!1;if(t.forEach(function(t){if(t.attribute===E&&t.newValue===g.CLEARED){if(i&&!(e.creationTime>i.creationTime))return!(r=!0);n=(i=e).creationTime}}),r)return!1}),e&&n&&(t=moment(e),e=moment(n),r=moment.duration(t.diff(e))),r}return t?e(t):a.list({source:o.id,pageSize:1e3}).then(e)}function R(t,e){t=[f,t];return e.id&&t.push(e.id),i.url(t.join("/"))}function S(t){var r=_.memoize(t,function(t,e){return[t.id,t.status,t.count,e&&e.length].join(":")});return function(t,e){return r(t,e)}}function j(t,e){var r=u.when(A(t,e)),t=u.when(T(t,e));return u.all([r,t]).then(function(t){return c.getString("ACKNOWLEDGED`alarm` by: {{ackBy}} {{ackTimeFromNow}}",{ackBy:t[0],ackTimeFromNow:moment(t[1]).fromNow()})})}function I(t,e){return u.when(N(t,e)).then(function(t){return c.getString("CLEARED`alarm`: was active for {{alarmDuration}}",{alarmDuration:t})})}function P(t){return u.when(c.getString("ACTIVE`alarm`: triggered {{alarmTimeFromNow}}",{alarmTimeFromNow:moment(t.time).fromNow()}))}b[m.WARNING]="circle",b[m.MINOR]="high-priority",b[m.MAJOR]="warning",b[m.CRITICAL]="exclamation-circle",b[g.CLEARED]="c8y-alert-idle",b[g.ACKNOWLEDGED]="bell-slash",b[g.ACTIVE]="bell";m={list:D,listByStatus:function(t,e){return t=_.compact(_.map(t,function(t,e){return t?e:void 0})),t=_.map(t,function(t){return D(_objectSpread(_objectSpread({},e),{},{status:t}))}),u.all(t).then(i.combineLists)},listByDevices:function(t,e){return u.all(_.map(t,function(t){return e.source=t,D(e)})).then(i.combineLists)},getSeverityCount:function(t,e){return _.filter(t,{severity:e}).length},detail:function(t){return t=O(t),n.get(t)},update:w,updateBulk:function(t,e){var r=i.url(s);return n.put(r,e,{params:t})},create:C,save:function(t){return(t.id?w:C)(t)},acknowledgedBy:S(A),ackTime:S(T),alarmDuration:S(N),alarmDurationDiff:S(L),severity:m,severityList:p,getHighestSeverityFromAlarmsStatus:function(e){var t=_.map(y,function(t){return{severity:t,count:_.get(e,_.toLower(t),0)}}),t=_.find(t,function(t){return 0<t.count});return _.get(t,"severity",null)},status:g,statusList:d,statusText:S(function(t,e){var r;switch((t.status||"").toUpperCase()){case g.ACKNOWLEDGED:r=j;break;case g.CLEARED:r=I;break;case g.ACTIVE:r=P}return r&&r(t,e)}),icon:function(t){return t=(_.isObjectLike(t)?t.severity:t).toUpperCase(),b[t]},reports:{downtimeDuration:function(t){var e=R("downtimeDuration",t=i.timeOrderFilter(t));return n.get(e,{params:t})},downtimeDurationAggregation:function(t){var e=R("downtimeDuration/aggregation",t=i.timeOrderFilter(t));return n.get(e,{params:t})}},getDisplayCount:function(t){var e=i.url("".concat(s,"/count"));return n.get(e,{params:t}).then(i.getResData).then(function(t){return 99<t?"99+":t})},createCounter:function(t){var e,r,n=_.get(t,"source"),n="/alarms/".concat(n||"*"),n=new o.Counter(D,n);return t&&(e=[o.defaultPropertyMaps.date,o.defaultPropertyMaps.source],t.type&&(r=t.type,e.push([function(t){return r===t.type}])),delete t.type,n.filter(t,e)),n}};return t.enhanceWithKeysUtil({target:m,reservedKeys:["history","id","severity","self","source","creationTime","time","text","firstOccurrence","count","firstOccurrenceTime","status"],standardKeys:e})}t.$inject=["$http","c8yBase","c8yCounter","$q","c8yAudits","c8yUtil","gettext","gettextCatalog"],angular.module("c8y.core").factory("c8yAlarms",t)}();
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
<div
|
|
3
3
|
title="{{ 'From/To date filter' | translate }}"
|
|
4
4
|
class="form-group datepicker d-inline-block"
|
|
5
|
-
style="vertical-align: top"
|
|
6
5
|
>
|
|
7
6
|
<input
|
|
8
7
|
class="form-control"
|
|
@@ -17,13 +16,12 @@
|
|
|
17
16
|
ng-required="required"
|
|
18
17
|
ng-disabled="disabled"
|
|
19
18
|
ng-click="isOpen = true"
|
|
20
|
-
style="width:
|
|
19
|
+
style="max-width: 120px"
|
|
21
20
|
/>
|
|
22
21
|
</div>
|
|
23
22
|
<div
|
|
24
23
|
class="timepicker form-group d-inline-block"
|
|
25
24
|
ng-class="getInputSizeClass()"
|
|
26
|
-
style="vertical-align: top"
|
|
27
25
|
ng-if="timePickerOptions.show"
|
|
28
26
|
>
|
|
29
27
|
<div
|
|
@@ -38,4 +36,4 @@
|
|
|
38
36
|
ng-disabled="disabled"
|
|
39
37
|
></div>
|
|
40
38
|
</div>
|
|
41
|
-
</div>
|
|
39
|
+
</div>
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
<span c8y-icon="caret-down"></span>
|
|
25
25
|
</button>
|
|
26
26
|
<ul
|
|
27
|
-
class="dropdown-menu dropdown-menu-right
|
|
27
|
+
class="dropdown-menu dropdown-menu-right"
|
|
28
28
|
data-cy="logViewer--dropdown-menu-action-bar"
|
|
29
29
|
uib-dropdown-menu
|
|
30
30
|
>
|
|
@@ -32,12 +32,13 @@
|
|
|
32
32
|
<form
|
|
33
33
|
class="form"
|
|
34
34
|
name="logRequestForm"
|
|
35
|
+
style="overflow: visible !important;"
|
|
35
36
|
>
|
|
36
37
|
<div
|
|
37
38
|
class="form-group c8y-datetime-picker"
|
|
38
39
|
data-cy="fromDatePicker"
|
|
39
40
|
>
|
|
40
|
-
<label>{{ 'From`date`' | translate }}</label>
|
|
41
|
+
<label class="logViewer">{{ 'From`date`' | translate }}</label>
|
|
41
42
|
<c8y-date-time-picker
|
|
42
43
|
placeholder="{{ 'From`date`' | translate }}"
|
|
43
44
|
append-to-body="true"
|
|
@@ -51,7 +52,7 @@
|
|
|
51
52
|
class="form-group c8y-datetime-picker"
|
|
52
53
|
data-cy="toDatePicker"
|
|
53
54
|
>
|
|
54
|
-
<label>{{ 'To`date`' | translate }}</label>
|
|
55
|
+
<label class="logViewer">{{ 'To`date`' | translate }}</label>
|
|
55
56
|
<c8y-date-time-picker
|
|
56
57
|
placeholder="{{ 'To`date`' | translate }}"
|
|
57
58
|
append-to-body="true"
|
|
@@ -62,7 +63,10 @@
|
|
|
62
63
|
</div>
|
|
63
64
|
|
|
64
65
|
<div class="form-group">
|
|
65
|
-
<label
|
|
66
|
+
<label
|
|
67
|
+
class="logViewer"
|
|
68
|
+
translate
|
|
69
|
+
>Type of log</label>
|
|
66
70
|
<ui-select
|
|
67
71
|
required
|
|
68
72
|
ng-init="vm.logtypeSelect = $select"
|
|
@@ -87,7 +91,10 @@
|
|
|
87
91
|
</div>
|
|
88
92
|
|
|
89
93
|
<div class="form-group">
|
|
90
|
-
<label
|
|
94
|
+
<label
|
|
95
|
+
class="logViewer"
|
|
96
|
+
translate
|
|
97
|
+
>Filter by text</label>
|
|
91
98
|
<input
|
|
92
99
|
class="form-control"
|
|
93
100
|
placeholder="{{ 'Filter by text' | translate }}"
|
|
@@ -98,7 +105,10 @@
|
|
|
98
105
|
</div>
|
|
99
106
|
|
|
100
107
|
<div class="form-group">
|
|
101
|
-
<label
|
|
108
|
+
<label
|
|
109
|
+
class="logViewer"
|
|
110
|
+
translate
|
|
111
|
+
>Last lines to display</label>
|
|
102
112
|
<input
|
|
103
113
|
class="form-control"
|
|
104
114
|
placeholder="{{ 'e.g.' | translate }} 10"
|
|
@@ -341,7 +351,9 @@
|
|
|
341
351
|
ng-show="selectedLog.c8y_LogfileRequest.dateFrom"
|
|
342
352
|
>
|
|
343
353
|
<dt translate>Date from</dt>
|
|
344
|
-
<dd
|
|
354
|
+
<dd
|
|
355
|
+
ng-bind="selectedLog.c8y_LogfileRequest.dateFrom|absoluteDate"
|
|
356
|
+
></dd>
|
|
345
357
|
</dl>
|
|
346
358
|
|
|
347
359
|
<dl
|
|
@@ -396,4 +408,4 @@
|
|
|
396
408
|
</div>
|
|
397
409
|
</div>
|
|
398
410
|
<c8y-load-more change-page-size></c8y-load-more>
|
|
399
|
-
</div>
|
|
411
|
+
</div>
|