@c8y/ng1-modules 1019.6.11 → 1019.7.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 e(e){var t=this;_.assign(t,{$onInit:function(){t.setController.addItem(t)},$onDestroy:function(){t.setController.removeItem(t)},getCrumb:function(){return _.pick(t,["icon","label","path","translate"])},$el:e})}function t(e,t){var n=this,r=[];_.assign(n,{$onInit:function(){e.hide(),t.addLiveBreadcrumbsController(n)},$onDestroy:function(){t.removeLiveBreadcrumbsController(n)},getBreadcrumbs:function(){var t=e.find("c8y-breadcrumbs-item");return _(n.paths).sortBy(function(e){return t.index(e.$el[0])}).reverse().map(function(e){return e.getCrumb()}).value()},paths:r,addItem:function(e){r.push(e),t.$emit("update")},removeItem:function(e){_.pull(r,e),t.$emit("update")}})}e.$inject=["$element"],t.$inject=["$element","c8yBreadcrumbs"],angular.module("c8y.ui").component("c8yBreadcrumbsSet",{template:"",controller:t}).component("c8yBreadcrumbsItem",{template:"",require:{setController:"^c8yBreadcrumbsSet"},controller:e,bindings:{icon:"@",label:"@",path:"@",translate:"@"}})}();
1
+ "use strict";!function(){function e(e){var t=this;_.assign(t,{$onInit:function(){t.setController.addItem(t)},$onChanges:function(e){_.forOwn(e,function(e){return!!e.isFirstChange()||(t.setController.emitUpdate(),!1)})},$onDestroy:function(){t.setController.removeItem(t)},getCrumb:function(){return _.pick(t,["icon","label","path","translate"])},$el:e})}function t(e,t){var n=this,r=[];_.assign(n,{$onInit:function(){e.hide(),t.addLiveBreadcrumbsController(n)},$onDestroy:function(){t.removeLiveBreadcrumbsController(n)},getBreadcrumbs:function(){var t=e.find("c8y-breadcrumbs-item");return _(n.paths).sortBy(function(e){return t.index(e.$el[0])}).reverse().map(function(e){return e.getCrumb()}).value()},paths:r,addItem:function(e){r.push(e),t.$emit("update")},removeItem:function(e){_.pull(r,e),t.$emit("update")},emitUpdate:function(){t.$emit("update")}})}e.$inject=["$element"],t.$inject=["$element","c8yBreadcrumbs"],angular.module("c8y.ui").component("c8yBreadcrumbsSet",{template:"",controller:t}).component("c8yBreadcrumbsItem",{template:"",require:{setController:"^c8yBreadcrumbsSet"},controller:e,bindings:{icon:"@",label:"@",path:"@",translate:"@"}})}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1019.6.11",
3
+ "version": "1019.7.10",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",
@@ -2,7 +2,7 @@
2
2
 
3
3
  <c8y-breadcrumbs-set>
4
4
  <c8y-breadcrumbs-item
5
- label="{{ 'Preview' | translate }}"
5
+ label="{{ 'CSV preview' | translate }}"
6
6
  icon="c8y-smart-rest"
7
7
  ></c8y-breadcrumbs-item>
8
8
  <c8y-breadcrumbs-item
@@ -1,24 +1,23 @@
1
- <c8y-breadcrumbs-set>
2
- <c8y-breadcrumbs-item
3
- icon="c8y-smart-rest"
4
- label="{{ 'Responses' | translate }}"
5
- ></c8y-breadcrumbs-item>
6
- <c8y-breadcrumbs-item
7
- icon="c8y-smart-rest"
8
- label="{{ $ctrl.template.name }}"
9
- ></c8y-breadcrumbs-item>
10
- <c8y-breadcrumbs-item
11
- icon="c8y-smart-rest"
12
- label="{{ 'SmartREST templates' | translate }}"
13
- path="#smart-rest-templates"
14
- ></c8y-breadcrumbs-item>
15
- <c8y-breadcrumbs-item
16
- icon="c8y-device-protocols"
17
- label="{{ 'Device types' | translate }}"
18
- ></c8y-breadcrumbs-item>
19
- </c8y-breadcrumbs-set>
20
-
21
1
  <div ng-controller="SmartRestTemplateDetailsCtrl as $ctrl">
2
+ <c8y-breadcrumbs-set>
3
+ <c8y-breadcrumbs-item
4
+ icon="c8y-smart-rest"
5
+ label="{{ 'Responses' | translate }}"
6
+ ></c8y-breadcrumbs-item>
7
+ <c8y-breadcrumbs-item
8
+ icon="c8y-smart-rest"
9
+ label="{{ $ctrl.template.name }}"
10
+ ></c8y-breadcrumbs-item>
11
+ <c8y-breadcrumbs-item
12
+ icon="c8y-smart-rest"
13
+ label="{{ 'SmartREST templates' | translate }}"
14
+ path="#smart-rest-templates"
15
+ ></c8y-breadcrumbs-item>
16
+ <c8y-breadcrumbs-item
17
+ icon="c8y-device-protocols"
18
+ label="{{ 'Device types' | translate }}"
19
+ ></c8y-breadcrumbs-item>
20
+ </c8y-breadcrumbs-set>
22
21
  <div class="card content-fullpage split-view--5-7">
23
22
  <div
24
23
  class="card-block flex-no-shrink bg-level-1 large-padding p-t-24 p-b-24 separator-bottom grid__col--fullspan"
@@ -1 +1 @@
1
- "use strict";!function(){function t(t,a,e,r,c,i){var n="smart-rest-templates",s="".concat(r,"/views"),r=i("SmartREST templates"),r={parent:i("Device types"),name:r,path:n,icon:"c8y-smart-rest",routerLinkExact:!1,priority:1e3},n="/".concat(n),o={templateUrl:"".concat(s,"/list.html")},l="".concat(n,"/:smartRestTemplateId"),m=[{name:i("Messages"),icon:"internal",templateUrl:"".concat(s,"/requests.html"),priority:3e3},{name:i("Responses"),icon:"external",templateUrl:"".concat(s,"/responses.html"),priority:2e3},{name:i("CSV preview"),icon:"file-code-o",templateUrl:"".concat(s,"/preview.html"),priority:1e3}],p={data:["$q",function(t){return t.when({templateUrl:"".concat(s,"/title.html")})}]},d={},n=(d[n]=[o],d[l]=m,{});n[l]=p,t.addNavigation(r),_.each(d,function(t,e){_.each(t,function(t){a.when(e,t)})}),_.each(n,function(t){e.addTitle(l,t)}),c.addBreadcrumbs(l,{data:[{icon:"c8y-smart-rest",translate:!0,label:i("SmartREST templates"),path:"#/smart-rest-templates"}]})}t.$inject=["c8yNavigatorProvider","c8yViewsProvider","c8yTitleProvider","smartRestEditorPluginPath","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.smartRestEditorUI",["c8y.smartRestEditor"]).config(t)}();
1
+ "use strict";!function(){function t(t,r,e,a,i,c){var n="smart-rest-templates",o="".concat(a,"/views"),a=c("SmartREST templates"),a={parent:c("Device types"),name:a,path:n,icon:"c8y-smart-rest",routerLinkExact:!1,priority:1e3},n="/".concat(n),s={templateUrl:"".concat(o,"/list.html")},l="".concat(n,"/:smartRestTemplateId"),c=[{name:c("Messages"),icon:"internal",templateUrl:"".concat(o,"/requests.html"),priority:3e3},{name:c("Responses"),icon:"external",templateUrl:"".concat(o,"/responses.html"),priority:2e3},{name:c("CSV preview"),icon:"file-code-o",templateUrl:"".concat(o,"/preview.html"),priority:1e3}],m={data:["$q",function(t){return t.when({templateUrl:"".concat(o,"/title.html")})}]},p={},n=(p[n]=[s],p[l]=c,{});n[l]=m,t.addNavigation(a),_.each(p,function(t,e){_.each(t,function(t){r.when(e,t)})}),_.each(n,function(t){e.addTitle(l,t)})}t.$inject=["c8yNavigatorProvider","c8yViewsProvider","c8yTitleProvider","smartRestEditorPluginPath","c8yBreadcrumbsProvider","gettext"],angular.module("c8y.smartRestEditorUI",["c8y.smartRestEditor"]).config(t)}();