@c8y/ng1-modules 1016.160.0 → 1016.162.0
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/device-protocol-lwm2m/cumulocity.json +1 -3
- package/device-protocol-lwm2m/lwm2m.provider.js +1 -1
- package/device-protocol-lwm2m/module.js +1 -1
- package/package.json +2 -2
- package/device-protocol-lwm2m/bootstrap/bootstrap-config.component.js +0 -1
- package/device-protocol-lwm2m/bootstrap/bootstrap-config.html +0 -30
- package/device-protocol-lwm2m/bootstrap/bootstrap-config.module.js +0 -1
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
"lwm2mValidationRules/lwm2mValidationRules.component.js",
|
|
14
14
|
"lwm2mValidationRules/lwm2mValidationRule.component.js",
|
|
15
15
|
"postOperations/lwm2mPostOperations.component.js",
|
|
16
|
-
"postOperations/lwm2mPostOperationsUi.provider.js"
|
|
17
|
-
"bootstrap/bootstrap-config.module.js",
|
|
18
|
-
"bootstrap/bootstrap-config.component.js"
|
|
16
|
+
"postOperations/lwm2mPostOperationsUi.provider.js"
|
|
19
17
|
]
|
|
20
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(){
|
|
1
|
+
"use strict";!function(){t.$inject=["gettext","c8yDeviceProtocolUiProvider","c8yViewsProvider"];var r="c8yLwm2m";function t(d,t,e){a.$inject=["c8yBase","c8yInventory","c8yTenant","c8yObjectMappings","$http","$upload"],i.$inject=["$routeParams"];var n={service:r,id:"lwm2m",name:d("LWM2M")},h={path:"/deviceprotocols/".concat(n.id,"/:id"),template:'<c8y-lwm2m-detail id="vm.id"></c8y-lwm2m-detail>',controllerAs:"vm",controller:i};return{initUi:function(){t.register(n),e.when(h.path,h)},$get:a};function i(t){_.assign(this,t)}function a(n,i,t,a,r,e){var o,c=n.url("service/lwm2m-agent/"),s="".concat(c,"objectResourceMappings");return{flow:function(){return["c8yLwm2mUploadStep","c8yLwm2mFinalStep"]},list:function(){return r.get(s,{silentError:!0}).then(n.getResData)},detail:function(t){var e=n.getId(t);return i.detail(e).then(n.getResData)},detailPath:function(t){var e=l(t);return h.path.replace(/:id$/,e)},upload:function(t){return e.upload({url:"".concat(s,"/ddf"),method:"POST",headers:{Accept:"application/json"},file:t,fileName:t.name.replace(/\s+/g,"_")})},remove:function(t){var e=l(t);return i.remove(e)},getName:function(t){var e=a.getName(t),n=a.getObjectId(t);return"".concat(n," ").concat(e)},updateMapping:function(t,e){var n="".concat(s,"/").concat(t,"/add");return r.put(n,e)},getPostRegistrationOptions:function(){var t={url:"".concat(c,"postRegistrationOptions"),method:"GET",silentError:!0};return r(t).then(n.getResData)},setPostRegistrationOptions:function(t){var e={url:"".concat(c,"postRegistrationOptions"),method:"PUT",data:{commands:t}};return r(e)},helpTexts:{minPeriod:d("The minimum period attribute indicates the minimum time in seconds the LWM2M client MUST wait between two notifications."),maxPeriod:d("The maximum period attribute indicates the maximum time in seconds the LWM2M client MAY wait between two notifications."),greaterThan:d("This greater than attribute defines a threshold high value."),lessThan:d("This less than attribute defines a threshold low value."),step:d("This step attribute defines a minimum change value between two notifications.")},isServiceSubscribed:u,showIf:function t(){t._cached||(t._cached=u());return t._cached},listRowInfoComponent:"c8yDeviceProtocolRowCountResources",getCustomActions:function(){o||(o=r.get("".concat(c,"mappingActions/resourceactions")).then(n.getResData).then(m));return o},Validation:{RuleType:{LT:"lt",GT:"gt",EQ:"eq",NEQ:"neq",GTE:"gte",LTE:"lte",AND:"and",OR:"or"},ValueType:{NUMBER:"number",DATE:"date",STRING:"string",REGEX:"regex",OBJECTLINK:"objectLink"},ResourceDataType:{INTEGER:"INTEGER",FLOAT:"FLOAT",STRING:"STRING",BOOLEAN:"BOOLEAN",TIME:"TIME",OBJECTLINK:"OBJECTLINK"},RuleName:{GT:"Greater than",LT:"Lower than",GTE:"Greater or equals than",LTE:"Lower or equals than",EQ:"Equals",NEQ:"Equals not"}}};function u(){return t.isSubscribed({name:"lwm2m-agent",type:"MICROSERVICE"})}function l(t){return _.get(t,"id")}function m(t){return _.reduce(t,function(t,e){var n=e.name,i=e.args,a=_.get(i,"length")?i.map(function(t){return"".concat(n,":").concat(t)}):[n];return t.concat(a)},[])}}}angular.module("c8y.lwm2m").provider(r,t)}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(){function i(i,
|
|
1
|
+
"use strict";!function(){function i(i,c){i.initUi(),c.initUi()}i.$inject=["c8yLwm2mProvider","c8yLwm2mPostOperationsUiProvider"],angular.module("c8y.lwm2m",["c8y.deviceProtocols"]).config(i)}();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@c8y/ng1-modules",
|
|
3
|
-
"version": "1016.
|
|
3
|
+
"version": "1016.162.0",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"author": "Cumulocity",
|
|
6
6
|
"description": "AngularJS modules for Cumulocity IoT applications.",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"@claviska/jquery-minicolors": "2.3.6",
|
|
9
9
|
"ace-builds": "1.4.5",
|
|
10
10
|
"angular": "1.6.9",
|
|
11
|
-
"angular-animate": "1.
|
|
11
|
+
"angular-animate": "1.8.3",
|
|
12
12
|
"angular-cron-jobs": "1.4.0",
|
|
13
13
|
"angular-dynamic-locale": "0.1.31",
|
|
14
14
|
"angular-file-upload": "https://github.com/danialfarid/ng-file-upload/archive/1.6.12.tar.gz",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";!function(){function t(t,o,n,e){var s=this,i=e.bootstrapSchema();function c(t){s.config=t,s.form.$setPristine()}function a(){n.success(o("Bootstrap parameters updated"))}_.assign(s,{config:{},$onInit:function(){t.$watch(function(){return _.get(s.config,"securityMode")},function(){s.schema=e.bootstrapSchemaChange(s.schema,s.config)})},$onChanges:function(t){t.id&&s.id&&e.bootstrapParams(s.id).then(c)},save:function(){e.bootstrapParams(s.id,s.config).then(c).then(a)},schema:i}),e.bootstrapPermissions().then(function(t){s.permissions=t})}t.$inject=["$scope","gettext","c8yAlert","c8yLwm2m"],angular.module("c8y.lwm2m.bootstrap").component("c8yLwm2mBootstrapConfig",{templateUrl:":::PLUGIN_PATH:::/bootstrap/bootstrap-config.html",controllerAs:"vm",controller:t,bindings:{id:"<deviceId"}})}();
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
<form name="vm.form" novalidate>
|
|
2
|
-
<div class="card content-fullpage">
|
|
3
|
-
<div class="d-flex d-col fit-h">
|
|
4
|
-
<div class="card-header separator">
|
|
5
|
-
<div class="card-title" translate>LWM2M bootstrap parameters</div>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="inner-scroll">
|
|
8
|
-
<div class="card-block">
|
|
9
|
-
<c8y-schema-form
|
|
10
|
-
schema="vm.schema"
|
|
11
|
-
model="vm.config"
|
|
12
|
-
class="schema-form-grid card--grid grid__col--6-6--md"
|
|
13
|
-
options="{formDefaults: {readonly: !vm.permissions.write}}"
|
|
14
|
-
></c8y-schema-form>
|
|
15
|
-
</div>
|
|
16
|
-
</div>
|
|
17
|
-
<div class="card-footer separator" ng-hide="!vm.permissions.write">
|
|
18
|
-
<button
|
|
19
|
-
title="{{ 'Save' | translate }}"
|
|
20
|
-
class="btn btn-primary"
|
|
21
|
-
type="button"
|
|
22
|
-
ng-click="vm.save()"
|
|
23
|
-
ng-disabled="!vm.form.$dirty"
|
|
24
|
-
>
|
|
25
|
-
{{ 'Save' | translate }}
|
|
26
|
-
</button>
|
|
27
|
-
</div>
|
|
28
|
-
</div>
|
|
29
|
-
</div>
|
|
30
|
-
</form>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";!function(){function e(e,t){var o={template:'<c8y-lwm2m-bootstrap-config device-id="id"></c8y-lwm2m-bootstrap-config>',name:e("LWM2M bootstrap parameters"),icon:"c8y-device-protocols",controller:i,showIf:c};return{initUi:function(){t.when("/device/:deviceId",o)},$get:_.noop,showIf:c}}function i(e,t){e.id=t.deviceId}function c(e,t,o){return t.detailCached(e.deviceId).then(function(e){var t=e.data;return o.isDeviceType(t)&&o.bootstrapPermissions()}).then(function(e){return e.read})}c.$inject=["$routeParams","c8yDevices","c8yLwm2m"],i.$inject=["$scope","$routeParams"],e.$inject=["gettext","c8yViewsProvider"],angular.module("c8y.lwm2m.bootstrap",[]).provider("c8yLwm2mBootstrapUi",e)}();
|