@c8y/ng1-modules 1021.75.4 → 1021.75.8
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/core/core/services/devices.js +1 -1
- package/core/locales/de.po +3 -3
- package/core/locales/es.po +3 -3
- package/core/locales/fr.po +3 -3
- package/core/locales/ko.po +3 -3
- package/core/locales/nl.po +3 -3
- package/core/locales/pl.po +3 -3
- package/core/locales/pt_BR.po +3 -3
- package/core/locales/zh_CN.po +3 -3
- package/core/locales/zh_TW.po +3 -3
- package/deviceDatabase4/cumulocity.json +0 -3
- package/deviceDatabase4/device-database-4.module.js +1 -1
- package/deviceStatusWidget/requiredAvailabilityIntervalSetting.component.js +1 -1
- package/deviceStatusWidget/requiredAvailabilityIntervalSetting.html +3 -1
- package/modbusConfiguration4/fieldbus-config.component.js +1 -1
- package/modbusConfiguration4/fieldbus-config.html +0 -196
- package/modbusConfiguration4/fieldbus-device-list.component.js +1 -1
- package/modbusConfiguration4/fieldbus-device-list.html +0 -1052
- package/package.json +1 -1
- package/device-protocol-snmp/cumulocity.json +0 -10
- package/device-protocol-snmp/snmp-device.provider.js +0 -1
- package/device-protocol-snmp/snmp.module.js +0 -1
- package/deviceDatabase4/parsers/device-type-parser-mib.service.js +0 -1
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _regeneratorRuntime(){_regeneratorRuntime=function(){return a};var u,a={},e=Object.prototype,s=e.hasOwnProperty,l=Object.defineProperty||function(e,t,r){e[t]=r.value},t="function"==typeof Symbol?Symbol:{},n=t.iterator||"@@iterator",r=t.asyncIterator||"@@asyncIterator",o=t.toStringTag||"@@toStringTag";function i(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{i({},"")}catch(u){i=function(e,t,r){return e[t]=r}}function c(e,t,r,n){var o,i,a,c,t=t&&t.prototype instanceof m?t:m,t=Object.create(t.prototype),n=new N(n||[]);return l(t,"_invoke",{value:(o=e,i=r,a=n,c=p,function(e,t){if(c===h)throw Error("Generator is already running");if(c===d){if("throw"===e)throw t;return{value:u,done:!0}}for(a.method=e,a.arg=t;;){var r=a.delegate;if(r){r=function e(t,r){var n=r.method,o=t.iterator[n];if(o===u)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=u,e(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;n=f(o,t.iterator,r.arg);if("throw"===n.type)return r.method="throw",r.arg=n.arg,r.delegate=null,v;o=n.arg;return o?o.done?(r[t.resultName]=o.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=u),r.delegate=null,v):o:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}(r,a);if(r){if(r===v)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(c===p)throw c=d,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);c=h;r=f(o,i,a);if("normal"===r.type){if(c=a.done?d:y,r.arg===v)continue;return{value:r.arg,done:a.done}}"throw"===r.type&&(c=d,a.method="throw",a.arg=r.arg)}})}),t}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}a.wrap=c;var p="suspendedStart",y="suspendedYield",h="executing",d="completed",v={};function m(){}function g(){}function b(){}var t={},w=(i(t,n,function(){return this}),Object.getPrototypeOf),w=w&&w(w(x([]))),_=(w&&w!==e&&s.call(w,n)&&(t=w),b.prototype=m.prototype=Object.create(t));function P(e){["next","throw","return"].forEach(function(t){i(e,t,function(e){return this._invoke(t,e)})})}function S(a,c){var t;l(this,"_invoke",{value:function(r,n){function e(){return new c(function(e,t){!function t(e,r,n,o){var i,e=f(a[e],a,r);if("throw"!==e.type)return(r=(i=e.arg).value)&&"object"==_typeof(r)&&s.call(r,"__await")?c.resolve(r.__await).then(function(e){t("next",e,n,o)},function(e){t("throw",e,n,o)}):c.resolve(r).then(function(e){i.value=e,n(i)},function(e){return t("throw",e,n,o)});o(e.arg)}(r,n,e,t)})}return t=t?t.then(e,e):e()}})}function O(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function N(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(O,this),this.reset(!0)}function x(t){if(t||""===t){var r,e=t[n];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length))return r=-1,(e=function e(){for(;++r<t.length;)if(s.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=u,e.done=!0,e}).next=e}throw new TypeError(_typeof(t)+" is not iterable")}return l(_,"constructor",{value:g.prototype=b,configurable:!0}),l(b,"constructor",{value:g,configurable:!0}),g.displayName=i(b,o,"GeneratorFunction"),a.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},a.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,i(e,o,"GeneratorFunction")),e.prototype=Object.create(_),e},a.awrap=function(e){return{__await:e}},P(S.prototype),i(S.prototype,r,function(){return this}),a.AsyncIterator=S,a.async=function(e,t,r,n,o){void 0===o&&(o=Promise);var i=new S(c(e,t,r,n),o);return a.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},P(_),i(_,o,"Generator"),i(_,n,function(){return this}),i(_,"toString",function(){return"[object Generator]"}),a.keys=function(e){var t,r=Object(e),n=[];for(t in r)n.push(t);return n.reverse(),function e(){for(;n.length;){var t=n.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},a.values=x,N.prototype={constructor:N,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=u,this.done=!1,this.delegate=null,this.method="next",this.arg=u,this.tryEntries.forEach(E),!e)for(var t in this)"t"===t.charAt(0)&&s.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=u)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var n=this;function e(e,t){return i.type="throw",i.arg=r,n.next=e,t&&(n.method="next",n.arg=u),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var o=this.tryEntries[t],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=s.call(o,"catchLoc"),c=s.call(o,"finallyLoc");if(a&&c){if(this.prev<o.catchLoc)return e(o.catchLoc,!0);if(this.prev<o.finallyLoc)return e(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return e(o.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return e(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;0<=r;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&s.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}var i=(o=o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc?null:o)?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),E(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var r,n,o=this.tryEntries[t];if(o.tryLoc===e)return"throw"===(r=o.completion).type&&(n=r.arg,E(o)),n}throw Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=u),v}},a}function asyncGeneratorStep(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function _asyncToGenerator(c){return function(){var e=this,a=arguments;return new Promise(function(t,r){var n=c.apply(e,a);function o(e){asyncGeneratorStep(n,t,r,o,i,"next",e)}function i(e){asyncGeneratorStep(n,t,r,o,i,"throw",e)}o(void 0)})}}function ownKeys(t,e){var r,n=Object.keys(t);return Object.getOwnPropertySymbols&&(r=Object.getOwnPropertySymbols(t),e&&(r=r.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,r)),n}function _objectSpread(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ownKeys(Object(r),!0).forEach(function(e){_defineProperty(t,e,r[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ownKeys(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))})}return t}function _defineProperty(e,t,r){return(t=_toPropertyKey(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _toPropertyKey(e){e=_toPrimitive(e,"string");return"symbol"==_typeof(e)?e:e+""}function _toPrimitive(e,t){if("object"!=_typeof(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0===r)return("string"===t?String:Number)(e);r=r.call(e,t||"default");if("object"!=_typeof(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}(()=>{e.$inject=["c8yDeviceTypeProtocolBaseProvider","gettext"];var r="c8ySNMPDevice";function e(e,g){t.$inject=["c8yDeviceDatabase","c8yDeviceControl","c8yTenant","c8yDevices","c8yBase","c8yUser","$q"];var b={label:g("SNMP"),fieldbusType:"snmp",serviceName:r};return e.getDeviceTypeProtocolProvider(b,t);function t(t,u,r,s,l,o,n){var i={name:"snmp-mib-parser"},a=_objectSpread(_objectSpread({},b),{},{options:!1,discreteOutputs:!1,discreteInputs:!1,holdingRegisters:{sectionTitle:g("Components"),noRegistersDefinedMessage:g("No components defined."),elementTypeLabel:g("Component"),newRegisterModalTitle:g("New component"),editRegisterModalTitle:g('Edit component: "{{name}}"'),addRegisterButtonLabel:g("Add component"),validation:{invalidName:g("Name must be unique among components.")},description:!0,oid:!0,functionalities:{raiseAlarm:!0,sendMeasurement:!0,sendEvent:!0}},deviceFragments:["c8y_SNMPDevice","c8y_SNMPGateway"],deviceConfiguration:{fragment:"c8y_SNMPGateway",icon:"cogs"}}),e=l.createEnum([{value:0,label:g("Version 1"),name:"VERSION_1"},{value:1,label:g("Version 2c"),name:"VERSION_2C"},{value:3,name:"VERSION_3",label:g("Version 3")}]),c=l.createEnum([{value:1,name:"NOAUTH_NOPRIV",label:g("NOAUTH_NOPRIV")},{value:2,name:"AUTH_NOPRIV",label:g("AUTH_NOPRIV")},{value:3,name:"AUTH_PRIV",label:g("AUTH_PRIV")}]),f=l.createEnum([{value:1,name:"MD5",label:g("MD5")},{value:2,name:"SHA",label:g("SHA")}]);return{registerFeaturesManifest:function(){t.registerFeaturesManifest(p().then(function(e){return e&&a}))},isSubscribed:p,create:function(e,t){return y.apply(this,arguments)},update:function(e,t){return h.apply(this,arguments)},isSNMP:function(e){return!!(e||{}).c8y_SNMPDevice},snmpVersions:e,snmpAuthPrivProtocols:l.createEnum([{value:1,name:"DES",label:g("DES")},{value:2,name:"AES128",label:g("AES128")},{value:3,name:"AES192",label:g("AES192")},{value:4,name:"AES256",label:g("AES256")}]),snmpAuthProtocols:f,snmpSecurityLevels:c};function p(){var e={isFeatureFieldbus4Available:t.isFeatureFieldbus4Available(),isSubscribed:r.isSubscribed(i)};return n.all(e).then(function(e){return e.isFeatureFieldbus4Available&&e.isSubscribed})}function y(){return(y=_asyncToGenerator(_regeneratorRuntime().mark(function e(o,i){var a,c;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(o,i);case 2:return a=e.sent,e.t0=l,e.next=6,s.createConfirm(a);case 6:return e.t1=e.sent,c=e.t0.getResData.call(e.t0,e.t1),e.next=10,s.addChildDevice(o,c);case 10:return c.owner=o.owner,e.next=13,s.save(c);case 13:return e.abrupt("return",u.create((t=o,r=i.deviceType,n=c,{deviceId:t.id,description:'Added new child device to "'.concat(t.name,'" (ID: ').concat(t.id,")."),c8y_SNMPDevice:m(r,n)})));case 14:case"end":return e.stop()}var t,r,n},e)}))).apply(this,arguments)}function h(){return(h=_asyncToGenerator(_regeneratorRuntime().mark(function e(o,i){var a;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,d(o,i);case 2:return(a=e.sent).id=i.id,a.owner=o.owner,e.next=7,s.update(a);case 7:return e.abrupt("return",u.create((t=o,r=i.deviceType,n=a,{deviceId:t.id,description:'Updated child device of "'.concat(t.name,'" (ID: ').concat(t.id,")."),c8y_SNMPDevice:m(r,n)})));case 8:case"end":return e.stop()}var t,r,n},e)}))).apply(this,arguments)}function d(){return v.apply(this,arguments)}function v(){return(v=_asyncToGenerator(_regeneratorRuntime().mark(function e(t,r){var n;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,o.current();case 2:return n=e.sent,e.abrupt("return",{name:r.name,type:r.deviceType.name,c8y_SNMPDevice:{ipAddress:r.ipAddress,port:r.port,version:r.version,auth:(t=r.auth,_.pick(t,["username","privPassword","authPassword","authProtocol","privProtocol","securityLevel","engineId"])),type:"/inventory/managedObjects/".concat(r.deviceType.id)},owner:n.id});case 4:case"end":return e.stop()}var t},e)}))).apply(this,arguments)}function m(e,t){return{id:t.id,name:t.name,ipAddress:t.c8y_SNMPDevice.ipAddress,port:t.c8y_SNMPDevice.port,version:t.c8y_SNMPDevice.version,auth:t.c8y_SNMPDevice.auth,type:"/inventory/managedObjects/".concat(e.id)}}}}angular.module("c8y.snmp").provider(r,e)})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{function e(e){e.initUi()}function c(e){e.registerFeaturesManifest()}c.$inject=["c8ySNMPDevice"],e.$inject=["c8ySNMPDeviceProvider"],angular.module("c8y.snmp",["c8y.deviceProtocols","c8y.deviceDatabase4"]).config(e).run(c)})();
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(()=>{function e(t,e,r,s,c,n){return{doesSupportFile:function(e){return/\.zip$/.test(e.name)},parseFile:function(e){var r=c.url("service/mibparser/mib/uploadzip"),a=t.defer();return n.upload({url:r,method:"POST",headers:{Accept:"application/json"},file:e,fileName:e.name.replace(/\s+/g,"_")}).error(function(e){e={type:"error",summary:c.getResErrorMessage({data:e})};a.reject({feedback:e})}).then(c.getResData).then(u).then(a.resolve),a.promise}};function u(e){var e=_.cloneDeep(e),r="c8y_ModbusDeviceTypeInfo",a=_.get(e,r,{}),a=(e.name=e.name||a.name,e.fieldbusType=e.fieldbusType||a.fieldbusType,_.unset(e,r),{type:"success",summary:s("MIB ZIP parsed successfully.")});return{deviceType:e,feedback:a}}}e.$inject=["$q","$rootScope","c8yDeviceDatabase","gettext","c8yBase","$upload"],angular.module("c8y.deviceDatabase4").factory("c8yDeviceTypeParserMIB",e)})();
|