@c8y/ng1-modules 1019.0.3 → 1019.2.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.
@@ -1 +1 @@
1
- "use strict";!function(){function e(e){var n=e("date"),u=e("json");return function(e,t,r,a){return(e instanceof Date&&!Number.isNaN(e)||!Number.isNaN(Date.parse(e)))&&!Number.parseFloat(e)?n(e,r,a):(r=u,a=e,t?r(a):a)}}e.$inject=["$filter"],angular.module("c8y.ui").filter("checkForDate",e)}();
1
+ "use strict";!function(){function e(e){var n=e("date"),u=e("json");return function(e,r,t,a){return(e instanceof Date&&!Number.isNaN(e)||!Number.isNaN(Date.parse(e)))&&Number.isNaN(Number.parseFloat(e))?n(e,t,a):(t=u,a=e,r?t(a):a)}}e.$inject=["$filter"],angular.module("c8y.ui").filter("checkForDate",e)}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1019.0.3",
3
+ "version": "1019.2.4",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",
@@ -1 +1 @@
1
- "use strict";!function(){function n(n,e,o,c,t,s,r,u){var i=[],a={loading:!0};function l(){a.loading=!1}function f(n){return _.filter(n,function(n){return!n.hideFromList})}function h(n){var t,e=_.keys(s);return 0===e.length?n:_.filter(n,function(n){return!!(n.contexts&&(t=_.keys(n.contexts),0<_.intersection(e,t).length))})}function m(n){return _.filter(n,function(n){return!r||r(n)})}function d(n){n.forEach(function(n){i.push(n)})}function g(){1===i.length&&i[0]._active&&v(i[0])}function v(n){var t,r,i;return t=n._active?c.createInstanceWithUI(n,(i={},n=(r=n).contexts&&_.intersection(_.keys(s),_.keys(r.contexts))||[],_.forEach(n,function(n){var e={obj:s[n]},c={rule:i};_.forEach(r.contexts[n],function(n,t){t=o("obj.".concat(t)),n=o("rule.".concat(n)),t=t(e);n.assign(c,t)})}),_.assign(i,u))).then(e.close):t}n.ruleTemplates=i,n.cancel=function(){e.dismiss()},n.createInstance=v,n.loading=a,t.list().then(f).then(h).then(m).then(d).then(g).finally(l)}n.$inject=["$scope","$uibModalInstance","$parse","smartRulesSvc","smartRuleTemplatesSvc","context","ruleTemplatesFilterFn","ruleInitialObj"],angular.module("c8y.smartRules").controller("SmartRuleAddCtrl",n)}();
1
+ "use strict";!function(){function n(n,e,o,c,t,u,r,s){var i=[],l={loading:!0};function a(){l.loading=!1}function f(n){return _.filter(n,function(n){return!n.hideFromList})}function h(n){var t,e=_.keys(u);return 0===e.length?n:_.filter(n,function(n){return!!(n.contexts&&(t=_.keys(n.contexts),0<_.intersection(e,t).length))})}function m(n){return _.filter(n,function(n){return!r||r(n)})}function d(n){n.forEach(function(n){i.push(n)})}function g(){1===i.length&&i[0]._active&&v(i[0])}function v(n){var t,r,i;return t=n._active?c.createInstanceWithUI(n,(i={},n=(r=n).contexts&&_.intersection(_.keys(u),_.keys(r.contexts))||[],_.forEach(n,function(n){var e={obj:u[n]},c={rule:i};_.forEach(r.contexts[n],function(n,t){t=o("obj.".concat(t)),n=o("rule.".concat(n)),t=t(e);null!=t&&n.assign(c,t)})}),_.assign(i,s))).then(e.close):t}n.ruleTemplates=i,n.cancel=function(){e.dismiss()},n.createInstance=v,n.loading=l,t.list().then(f).then(h).then(m).then(d).then(g).finally(a)}n.$inject=["$scope","$uibModalInstance","$parse","smartRulesSvc","smartRuleTemplatesSvc","context","ruleTemplatesFilterFn","ruleInitialObj"],angular.module("c8y.smartRules").controller("SmartRuleAddCtrl",n)}();