@c8y/ng1-modules 1019.6.3 → 1019.6.10

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 t(t,n,i,e){var s,r=this;function a(){c(!0),i.getApplicationMO(n.applicationId).then(u).then(function(){s="/managedobjects/".concat(r.mo.id),e.addListener(t.$id,s,e.realtimeActions().UPDATE,function(t,n){return u(n)}),e.start(t.$id,s)}).finally(function(){return c(!1)})}function o(){e.stop(t.$id,s),e.removeSubscriber(t.$id,s)}function c(t){r.refreshingItems.appDetails=t}function u(t){r.mo=t,r.status=t.c8y_Status}_.assign(r,{status:"",realtime:!0,refreshingItems:{},tenantSubscriptions:{},$onInit:function(){a()},$onDestroy:function(){o()},refresh:function(){o(),a(),t.$broadcast("alarmListRefresh"),t.$broadcast("eventListRefresh")},isRefreshing:function(){return _.includes(r.refreshingItems,!0)},statusVisible:function(){return!_.isEmpty(_.get(r.mo,"c8y_Status"))},subscriptionsVisible:function(){return!_.isEmpty(_.get(r.mo,"c8y_Subscriptions"))}}),t.$watch("vm.realtime",function(t,n){t!==n&&(t?a:o)()})}t.$inject=["$scope","$routeParams","c8yApplication","c8yRealtime"],angular.module("c8y.appStatus").component("c8yAppStatus",{bindings:{basePath:"@"},templateUrl:":::PLUGIN_PATH:::/app-status/app-status.html",controller:t,controllerAs:"vm"})}();
1
+ "use strict";!function(){function t(t,n,i,e){var s,a=this;function r(){c(!0),i.getApplicationMO(n.applicationId).then(u).then(function(){s="/managedobjects/".concat(a.mo.id),e.addListener(t.$id,s,e.realtimeActions().UPDATE,function(t,n){return u(n)}),e.start(t.$id,s)}).finally(function(){return c(!1)})}function o(){e.stop(t.$id,s),e.removeSubscriber(t.$id,s)}function c(t){a.refreshingItems.appDetails=t}function u(t){a.mo=t,a.status=t.c8y_Status}_.assign(a,{status:"",realtime:!0,refreshingItems:{},tenantSubscriptions:{},$onInit:function(){r()},$onDestroy:function(){o()},refresh:function(){o(),r(),t.$broadcast("alarmListRefresh"),t.$broadcast("eventListRefresh"),t.$broadcast("smartRulesListReload")},isRefreshing:function(){return _.includes(a.refreshingItems,!0)},statusVisible:function(){return!_.isEmpty(_.get(a.mo,"c8y_Status"))},subscriptionsVisible:function(){return!_.isEmpty(_.get(a.mo,"c8y_Subscriptions"))}}),t.$watch("vm.realtime",function(t,n){t!==n&&(t?r:o)()})}t.$inject=["$scope","$routeParams","c8yApplication","c8yRealtime"],angular.module("c8y.appStatus").component("c8yAppStatus",{bindings:{basePath:"@"},templateUrl:":::PLUGIN_PATH:::/app-status/app-status.html",controller:t,controllerAs:"vm"})}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1019.6.3",
3
+ "version": "1019.6.10",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",
@@ -1,6 +1,6 @@
1
1
  <div class="viewport-modal">
2
2
  <div class="modal-header text-center separator">
3
- <h1 id="modal-title" class="h3">
3
+ <h1 id="modal-title" class="h3" data-cy="smartRuleAdd--card-header">
4
4
  <i class="c8y-icon c8y-icon-smart-rules c8y-icon-duocolor"></i>
5
5
  {{ title | translate }}
6
6
  </h1>
@@ -1,5 +1,5 @@
1
1
  <div class="modal-header text-center separator">
2
- <p class="text-muted">{{ title | translate }}</p>
2
+ <p class="text-muted" data-cy="smartRuleEdit--card-header">{{ title | translate }}</p>
3
3
  <div class="smart-list-icon-label">
4
4
  <span class="dot"><i c8y-icon="{{ ruleTemplate.paramGroups.input.icon }}"></i></span>
5
5
  <i c8y-icon="arrow-right"></i>
@@ -206,7 +206,7 @@
206
206
  </div>
207
207
 
208
208
  <div class="card-header">
209
- <label class="text-center text-muted m-b-16">
209
+ <label class="text-center text-muted m-b-16" data-cy="smartRulesList--card-header">
210
210
  <i c8y-icon="c8y-smart-rules"></i>
211
211
  {{ getRuleCardTitle(rule) | translate }}
212
212
  </label>