@c8y/ng1-modules 1021.49.4 → 1021.49.12
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/LICENSE
CHANGED
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
same "printed page" as the copyright notice for easier
|
|
188
188
|
identification within third-party archives.
|
|
189
189
|
|
|
190
|
-
Copyright
|
|
190
|
+
Copyright (c) 2013-present Cumulocity GmbH, Duesseldorf, Germany and/or its affiliates and/or their licensors. Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Cumulocity GmbH
|
|
191
191
|
|
|
192
192
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
193
|
you may not use this file except in compliance with the License.
|
package/core/core/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var a=_.identity;window.c8yConfig={validation:{deviceId:{pattern:/^[^\s/]*$/,message:a('Device ID must not contain spaces or slashes ("/").')},domain:{pattern:/^[a-z]+[a-z0-9-]*[a-z0-9]+\.{1}.+$/,message:a("Only lowercase letters, digits and hyphens allowed in the first part of the URI. Must start with a letter; hyphens only allowed in the middle. Must be a valid URI.")},groupName:{maxlength:254},hostname:{pattern:/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/},internationalPhoneNumber:{message:a('Must be a valid phone number (only digits, spaces, slashes ("/"), dashes ("-"), and plus ("+") allowed, for example: +49 9 876 543 210).')},ip:{pattern:/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/},ipV6:{pattern:/^([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^\s*((([0-9A-Fa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id JSONPath expression.")},opcuaBrowsePath:{pattern:/^(opc.tcp|http|https):\/\/[^ "]+$/},password:{pattern:/^[a-zA-Z0-9`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]{8,32}$/,message:a("Password must have at least 8 characters and no more than 32 and can only contain letters, numbers and following symbols: `~!@#$%^&*()_|+-=?;:'\",.<>{}[]\\/")},passwordStrengthChecklist:{message:a("Password is not strong enough, use a stronger password. Check the requirements listed on the right.")},tenantId:{pattern:/^[a-z]+[a-z0-9-]*[a-z0-9]+$/,message:a("May contain lowercase letters, digits, and hyphens. Must start with a letter; hyphens only allowed in the middle; minimum 2 characters.")},user:{pattern:/^[^\\/\s$:+]*$/,message:a('Username must not contain spaces nor slashes ("/", "\\") nor ("+"), (":"), ("$") signs.')},loginAlias:{pattern:/^[^\\/$:+]*$/,message:a('Login alias must not contain slashes ("/", "\\") nor ("+"), (":"), ("$") signs.')},urlSegment:{pattern:/^(([.]{1,2})|([/])+|(([/]*)([.]{1,2})([/]*))|((.*)([/]|[ ]+)(.*))|(\s+))$/,message:a("Slash, single or double dots and white space not allowed.")}},defaultAppOptions:{rightDrawer:!0,staticLinks:{devicemanagementDeviceDetails:"/apps/devicemanagement/#/device/{{deviceId}}"},supportUrl:!0,storageLimitationFeatureEnabled:!1,hide_navigator:!1,guideHrefTemplate:"${docsBaseUrl}${partialUrl}",docsBaseUrl:"https://
|
|
1
|
+
(()=>{var a=_.identity;window.c8yConfig={validation:{deviceId:{pattern:/^[^\s/]*$/,message:a('Device ID must not contain spaces or slashes ("/").')},domain:{pattern:/^[a-z]+[a-z0-9-]*[a-z0-9]+\.{1}.+$/,message:a("Only lowercase letters, digits and hyphens allowed in the first part of the URI. Must start with a letter; hyphens only allowed in the middle. Must be a valid URI.")},groupName:{maxlength:254},hostname:{pattern:/^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9-]*[A-Za-z0-9])$/},internationalPhoneNumber:{message:a('Must be a valid phone number (only digits, spaces, slashes ("/"), dashes ("-"), and plus ("+") allowed, for example: +49 9 876 543 210).')},ip:{pattern:/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/},ipV6:{pattern:/^([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/},jsonPath:{pattern:/.*/,message:a("Must be valid JSONPath expression.")},opcuaBrowsePath:{pattern:/^(opc.tcp|http|https):\/\/[^ "]+$/},password:{pattern:/^[a-zA-Z0-9`~!@#$%^&*()_|+\-=?;:'",.<>{}[\]\\/]{8,32}$/,message:a("Password must have at least 8 characters and no more than 32 and can only contain letters, numbers and following symbols: `~!@#$%^&*()_|+-=?;:'\",.<>{}[]\\/")},passwordStrengthChecklist:{message:a("Password is not strong enough, use a stronger password. Check the requirements listed on the right.")},tenantId:{pattern:/^[a-z]+[a-z0-9-]*[a-z0-9]+$/,message:a("May contain lowercase letters, digits, and hyphens. Must start with a letter; hyphens only allowed in the middle; minimum 2 characters.")},user:{pattern:/^[^\\/\s$:+]*$/,message:a('Username must not contain spaces nor slashes ("/", "\\") nor ("+"), (":"), ("$") signs.')},loginAlias:{pattern:/^[^\\/$:+]*$/,message:a('Login alias must not contain slashes ("/", "\\") nor ("+"), (":"), ("$") signs.')},urlSegment:{pattern:/^(([.]{1,2})|([/])+|(([/]*)([.]{1,2})([/]*))|((.*)([/]|[ ]+)(.*))|(\s+))$/,message:a("Slash, single or double dots and white space not allowed.")}},defaultAppOptions:{rightDrawer:!0,staticLinks:{devicemanagementDeviceDetails:"/apps/devicemanagement/#/device/{{deviceId}}"},supportUrl:!0,storageLimitationFeatureEnabled:!1,hide_navigator:!1,guideHrefTemplate:"${docsBaseUrl}${partialUrl}",docsBaseUrl:"https://cumulocity.com"},deviceListMap:{},tracking:{},smartRules:{exclude:[]},administration:{statistics:{}}}})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{function
|
|
1
|
+
(()=>{function e(e,n,t,o,r,c,a,i,u,s){var l,m=this;_.assign(m,{$onInit:function(){e.all(_.transform(r.APIS.values(),function(e,n){var t="".concat(n.name,"S"),t=_.get(c.ENTITIES[t],"staticSchemaPath");t&&(e[n.value]=c.another(t).list())},{})).then(function(e){l=e})},$onChanges:function(e){e.inputDuplicateId&&m.inputDuplicateId?(e=>{r.getConnectorDuplicate(e).then(r.convertToViewModel).then(function(e){m.connector=e})})(m.inputDuplicateId):e.inputId&&m.inputId?(e=>{"new"===e?(m.connector=r.getConnectorStub(),t.find("#connectorName").eq(0).focus()):r.getConnector(e).then(r.convertToViewModel).then(function(e){m.connector=e})})(m.inputId):e.inputConnector&&m.inputConnector&&(e=>{m.connector=r.convertToViewModel(e)})(m.inputConnector)},addFilter:function(){m.connector.filters.push({isOpen:!0,selectedGroupOrDevice:null,apis:{alarm:!0,event:!0,measurement:!0,managedObject:!0,operation:!0},fragmentsToFilter:[{fragment:""}],fragmentsToCopy:[{fragment:""}],copyAllFragments:!1,typeFilter:""}),m.connectorForm.$setDirty()},removeFilter:function(e){_.remove(m.connector.filters,e),m.connectorForm.$setDirty()},addFragment:function(e,n){e[n].push({fragment:""}),m.connectorForm.$setDirty()},removeFragment:function(e,n,t){1===e[n].length?_.set(e[n][0],"fragment",""):_.remove(e[n],t);m.connectorForm.$setDirty()},getSuggestedFragments:function(e){return _(e.apis).map(function(e,n){return e?_.get(l,n,[]):[]}).flatten().reject("computed").map(function(e){return e.keyPath.join(".")}).uniq().orderBy([function(e){return e.toLowerCase()}],["asc"]).value()},saveName:function(e){e=n.onSaveName?m.onSaveName({connector:m.connector,name:e}):((e,n)=>r.updateConnectorName(e,n).then(function(){o.hasId(e)&&a.success(i("Connector name updated."))}))(m.connector,e);return e},canSave:function(){return m.connectorForm.$dirty&&m.connectorForm.$valid&&_.get(m,"connector.filters")&&1<=m.connector.filters.length&&_.every(m.connector.filters,function(e){return _.some(e.apis)})},save:function(){var e=r.convertToBackendModel(m.connector);e=n.onSave?m.onSave({connector:e,connectorForm:m.connectorForm}):(e=>r.saveConnector(e).then(r.navigateToDetails).then(function(){a.success(i("Connector saved.")),m.connectorForm.$setPristine()}))(e);return e},remove:function(){var e=r.convertToBackendModel(m.connector);e=n.onRemove?m.onRemove({connector:e}):(e=>u({title:i("Delete connector"),body:s.getString('You are about to delete connector "{{name}}". Do you want to proceed?',{name:e.name}),status:"danger",labels:{ok:i("Delete")}}).then(function(){return r.deleteConnector(e.id).then(r.navigateToList).then(function(){a.success(i("Connector deleted."))})}))(e);return e},cancel:function(){var e;n.onCancel?e=m.onCancel():r.navigateToList();return e},getFilterFragmentsSummary:r.getFilterFragmentsSummary,apis:r.APIS.values()})}e.$inject=["$q","$attrs","$element","c8yBase","dataBrokerConnectorsSvc","c8yPropertiesLibrary","c8yAlert","gettext","c8yModal","gettextCatalog"],angular.module("c8y.dataBroker").component("c8yDataBrokerConnectorEditor",{bindings:{inputDuplicateId:"<duplicateId",inputId:"<id",inputConnector:"<connector",onSave:"&",onSaveName:"&",onRemove:"&",onCancel:"&"},templateUrl:":::PLUGIN_PATH:::/connectors/connectorEditor.html",controller:e,controllerAs:"vm"})})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{function t(t,o,e,n,c,
|
|
1
|
+
(()=>{function t(t,o,e,n,a,c,r,i){var s=this,l="/brokerconnectors/*",d=t.$id;function u(){o.getConnectors().then(function(t){s.connectors=t})}function g(){u()}function T(t,e){var n=_.find(s.connectors,{id:e.id});_.assign(n,_.pick(e,"destinationStatus")),_.isUndefined(n)||_.set(n,"visibleStatus",o.getMappedStatus(n))}function C(){g()}_.assign(s,{$onInit:function(){u(),c.addListener(d,l,c.realtimeActions().UPDATE,T),c.addListener(d,l,c.realtimeActions().CREATE,C),c.addListener(d,l,c.realtimeActions().DELETE,C),c.start(d,l),t.$on("$destroy",function(){c.stop(d,l)})},reload:g,editConnector:function(t){o.navigateToDetails(t)},duplicateConnector:function(t){o.navigateToNew(t)},deleteConnector:function(t){return n({title:r("Delete connector"),body:i.getString('You are about to delete connector "{{name}}". Do you want to proceed?',{name:t.name}),status:"danger",labels:{ok:r("Delete")}}).then(_.partial(o.deleteConnector,t.id)).then(function(){a.success(r("Connector deleted.")),u()})},toggleConnectorStatus:function(t,e){t.stopPropagation(),t.preventDefault(),o.toggleConnectorStatus(e)},ROUTE_NEW_CONNECTOR:e.ROUTE_NEW_CONNECTOR,STATUS:o.STATUS,MAPPED_STATUS:o.MAPPED_STATUS,getStatusTooltip:o.getStatusTooltip})}t.$inject=["$scope","dataBrokerConnectorsSvc","dataBrokerConstants","c8yModal","c8yAlert","c8yRealtime","gettext","gettextCatalog"],angular.module("c8y.dataBroker").component("c8yDataBrokerConnectorsList",{templateUrl:":::PLUGIN_PATH:::/connectors/connectors.html",controller:t,controllerAs:"vm"})})();
|