@c8y/ng1-modules 1018.503.137 → 1018.503.144
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/core/locales/de.po +264 -439
- package/core/locales/es.po +275 -443
- package/core/locales/fr.po +278 -447
- package/core/locales/ja_JP.po +272 -470
- package/core/locales/ko.po +273 -442
- package/core/locales/nl.po +276 -443
- package/core/locales/pl.po +313 -450
- package/core/locales/pt_BR.po +278 -445
- package/core/locales/zh_CN.po +274 -438
- package/core/locales/zh_TW.po +274 -438
- package/core/ui/services/docs.js +1 -1
- package/enterpriseEdition/customBranding/brandingConfigurationForm.component.js +1 -1
- package/package.json +1 -1
- package/smartRules/controllers/childAssetsSelector.js +1 -1
- package/smartRules/views/childAssetsSelector.html +2 -2
package/core/ui/services/docs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(){function e(i,a,
|
|
1
|
+
"use strict";!function(){function e(i,c,a,l){return{list:function(){var e,t=c.appOption("target"),n=[{icon:"c8y-c8y-data",label:l("Concepts`KEEP_ORIGINAL`"),url:o("/docs/concepts/introduction")},{icon:"c8y-user",label:l("Getting started`KEEP_ORIGINAL`"),url:o("/docs/section/getting_started")},{icon:"c8y-administration",label:l("Platform administration`KEEP_ORIGINAL`"),url:o("/docs/section/platform_administration")},{icon:"c8y-device-management",label:l("Device management`KEEP_ORIGINAL`"),url:o("/docs/section/device_management")},{icon:"c8y-cockpit",label:l("Application enablement`KEEP_ORIGINAL`"),url:o("/docs/section/app_enablement")},{icon:"c8y-book",label:l("Cumulocity IoT Edge`KEEP_ORIGINAL`"),url:o("/docs/edge/edge-introduction")},{icon:"c8y-data-explorer",label:l("Streaming analytics`KEEP_ORIGINAL`"),url:o("/docs/streaming-analytics/overview-analytics")},{icon:"rest-api",label:l("OpenAPI specification`KEEP_ORIGINAL`"),url:o("/api")},{icon:"gavel",label:l("Legal notices"),url:"https://cumulocity.com/docs/legal-notices/"}];switch(t){case"dt":e=i.resolve([{icon:"comments",label:l("Help & Service"),url:l("https://support.ram.m2m.telekom.com/apps/HelpAndService/index.html")}]);break;case"quarktech":e=i.resolve(n);break;default:e=a.getSupportUrl().then(function(e){return!1!==e&&n.push({icon:"comments",label:l("Forum support"),url:e}),n})}return e.then(function(e){return _.filter(e,"url")})},getBaseUrl:n,getUserGuideLink:o};function n(){return c.appOption("docsBaseUrl")}function o(e){var t;return _.isNull(n())?null:(t=c.appOption("guideHrefTemplate"),e=e,_.isNull(t)||_.isUndefined(t)||0===t.length?void 0:t.replace(/\${docsBaseUrl}/,n()).replace(/\${partialUrl}/,function(e){return(_.isEmpty(e)||_.startsWith(e,"/")?"":"/")+e}(e)))}}e.$inject=["$q","c8yBase","c8ySettings","gettext"],angular.module("c8y.ui").factory("c8yDocs",e)}();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(){function n(r,n,t,e,i,
|
|
1
|
+
"use strict";!function(){function n(r,n,t,e,o,i,a,c,l,s,u,d,g,f){var p,m,b,y,v=f("humanizeAppName"),h=this,f=s("Apply branding"),I=s("Save branding configuration first"),B={html_title:w,favicon:function(n){h.favicon=n?n.fileSrc:"",p&&p.document.querySelector("link[rel=icon]")&&(p.document.querySelector("link[rel=icon]").href=n?n.fileSrc:"")},"navigator-font-family":function(n){k("navigator-font-family",a.getFontFamilyCssVar(n))},appLogo:function(n){return k("navigator-platform-logo",n?"url(".concat(n.fileSrc,")"):"")},"brand-logo-img":function(n){return k("brand-logo-img",n?"url(".concat(n.fileSrc,")"):"")},"__import-font":function(n){var e=document.createElement("style");e.innerText="@import url('".concat(n,"')"),C().contentDocument.head.appendChild(e),p&&p.document.head.appendChild(e)}};function C(){return document.querySelector("#previewBrowser")}function N(){return h.isLoading=!0,n.all({schema:o.getSchema(),form:o.getForm(),options:o.getSchemaFormOptions(),branding:o.getBranding(),app:d.getCurrent()}).then(function(n){var e=n.schema,t=n.form,i=n.options,o=n.branding,n=n.app,a=(_.defaults(o,{c8y_less_variables:{}}),b=_.cloneDeep(o),_.assign(h,{schema:e,form:t,options:i,branding:o}),y=n,C());a.src="".concat(d.getHref(y),"/index.html"),a.onload=function(){a.appTitle=a.contentDocument.title,_.set(a.contentWindow,"C8Y_PREVIEW.preview",!0),_.set(a.contentWindow,"C8Y_PREVIEW.previewCookieBanner",R()),w(),T()},r.$watchCollection("vm.branding.c8y_less_variables",T)}).finally(function(){h.isLoading=!1})}function w(n){n=n||A();h.title="".concat(n," - ").concat(C().appTitle),p&&(p.document.title="".concat(n," - ").concat(p.appTitle),p.C8Y_PREVIEW.globalTitle=n)}function A(){return _.get(h,"branding.c8y_less_variables.html_title")||u.appOption("globalTitle")}function R(){return _.pick(h.branding.c8y_less_variables,["cookieBannerDisabled","cookieBannerTitle","cookieBannerText","policyUrl"])}function T(){h.isLoading||_.forOwn(h.branding.c8y_less_variables,function(n,e){B[e]?B[e](n):k(e,n)})}function k(n,e){E(n,e,C().contentDocument.documentElement),p&&E(n,e,p.document.documentElement)}function E(n,e,t){n=a.keyToCssVar(n);"navigator-platform-logo-height"===n?null==e||""===e?t.style.removeProperty("--".concat(n)):t.style.setProperty("--".concat(n),"".concat(e,"%")):t.style.setProperty("--".concat(n),_.isNumber(e)?"".concat(e,"px"):e)}function P(){return i.state().then(S)}function S(n){var e=h.state;h.state=n,e&&e.RUNNING&&!n.RUNNING&&l.success(s("Branded applications created.")),e&&e.WAITING&&n.RUNNING&&l.success(s("Branded applications will be created.")),(n.RUNNING||n.WAITING)&&t(P,2e3)}_.assign(h,{$onInit:function(){c&&P();return N()},applyTitle:f,dirtyFormApplyTitle:I,canSave:function(){return!(_.get(r,"platformConfigurationForm1.$invalid")||_.get(r,"platformConfigurationForm2.$invalid"))},save:function(){var t=[],i=o.BINARY_VARS;return h.branding.binary_ref={},_.each(i,function(e){var n;h.branding.c8y_less_variables[e]&&(n=o.saveBinary(e,h.branding.c8y_less_variables[e],b.binary_ref,b.c8y_less_variables[e]).then(function(n){h.branding.binary_ref[e]=_.pick(n,["id","name"])}),t.push(n))}),n.all(t).then(function(){return h.branding.c8y_less_variables=_.omitBy(h.branding.c8y_less_variables,function(n,e){return""===_.trim(n)||_.includes(i,e)}),o.saveConfiguration(h.branding,b.id).then(function(){return l.success(s("Branding saved."))})}).then(e.reload)},generate:i.wizardGenerate,preview:function(){p=window.open("".concat(d.getHref(y),"/index.html"),"_blank"),function e(){clearInterval(m);m=setInterval(function(){var n;p&&(p.C8Y_PREVIEW={preview:!0,globalTitle:A(),previewCookieBanner:R()},p.C8Y_APP)&&(n=p.C8Y_APP.name,p.appTitle=v(n),clearInterval(m),T(),p.onunload=function(){return e()})})}()},blocked:function(){var n=h.state;return!_.get(h,"branding.id")||_.get(n,"RUNNING")||_.get(n,"WAITING")},title:window.document.title,favicon:"favicon.ico",useMicroservice:c,applyConfiguration:function(){a.removeLegacyBrandedApplications().then(function(){return g({status:"info",title:s("Apply branding configuration"),body:s("You are about to apply the branding configuration, making it visible to all subtenants. Do you want to proceed?"),labels:{ok:s("Apply")}})}).then(function(){a.deploy(h.branding.c8y_less_variables).then(function(){return l.success(s("Branding configuration is being applied. It usually takes less than a minute."))},function(n){l.danger(u.getResErrorMessage(n))})})},removeAppliedBranding:function(){g({status:"info",title:s("Remove branding"),body:s("You are about to remove applied branding.\n If you have any extra customization options set, they will be reset.\n The default branding will be shown to all subtenants. Do you want to proceed?"),labels:{ok:s("Remove")}}).then(function(){a.reset().then(function(){return l.success(s("Branding has been removed."))})})},resetForm:function(n){g({status:"info",title:s("Reset branding configuration"),body:s("You are about to reset the branding configuration to the previously saved settings.\n Do you want to proceed?"),labels:{ok:s("Reset")}}).then(function(){N().then(function(){n&&n.$setPristine(),l.success(s("Branding configuration has been reset."))},function(n){return l.danger(n)})})}})}n.$inject=["$scope","$q","$timeout","$route","c8yBrandingConfigurationUi","c8yBrandingConfiguration","c8yBrandingDeploy","USE_BRANDING_MICROSERVICE","c8yAlert","gettext","c8yBase","c8yApplication","c8yModal","$filter"],angular.module("c8y.custom-branding").component("c8yBrandingConfigurationForm",{templateUrl:":::PLUGIN_PATH:::/customBranding/brandingConfigurationForm.html",controller:n,controllerAs:"vm"})}();
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";!function(){function e(t,e,n,i,c
|
|
1
|
+
"use strict";!function(){function e(t,e,n,i,l,c){var s,o=this,r={},a={},d=null,u={open:!1},f={text:""};function h(e){r={},a={},_.forEach(e,function(e){r[e.id]=!0,a[e.id]=!0})}function g(e){return a[e.id]}function p(e){a[e.id]=!0}function C(){var e,t=S();t?(e=_.filter(t,g),o.allVisibleSelected=e.length===t.length):o.allVisibleSelected=!1}function S(){return e("filter")(s,f.text)}function A(e){a[e.id]=!1}o.allVisibleSelected=!1,o.isSelected=g,o.selectAllVisible=function(){_.forEach(S(),p),C()},o.select=p,o.deselectAllVisible=function(){_.forEach(S(),A),C()},o.deselect=A,o.toggle=function(e){a[e.id]=!a[e.id],C()},o.getSelectedStatusText=function(){var e=_.filter(r,_.identity).length;return e===d?c.getString("All children active`assets`"):0===e?c.getString("No children active`assets`"):c.getPlural(e,"1 child active`asset`","{{$count}} children active`asset`",{})},o.apply=function(){t.onSelectionConfirmed&&t.onSelectionConfirmed({selection:_.filter(s,g)}),u.open=!1},o.filterCfg=f,o.dropdownStatus=u,t.$watch("parentMo()",function(e){o.parentMoId=e.id||e,l.detail(o.parentMoId).then(i.getResData).then(function(e){o.childAssets=_.map(e.childAssets.references,"managedObject").concat(_.map(e.childDevices.references,"managedObject")),s=o.childAssets,o.allChildAssetsCount=o.childAssets.length,d=o.allChildAssetsCount,C()})}),t.$watch("selectedChildAssets()",h),t.$watch("ctrl.dropdownStatus.open",function(e){e&&h(t.selectedChildAssets()),n(function(){o.dropdownOpeningFinished=e})}),t.$watch("ctrl.filterCfg.text",C),t.$watchCollection(function(){return a},C)}e.$inject=["$scope","$filter","$timeout","c8yBase","c8yInventory","gettextCatalog"],angular.module("c8y.smartRules").controller("c8yChildAssetsSelectorCtrl",e)}();
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
<li class="multiselect-item">
|
|
40
40
|
<label
|
|
41
41
|
title="{{ 'Activate all visible`children`' | translate }}"
|
|
42
|
-
ng-if="!ctrl.
|
|
42
|
+
ng-if="!ctrl.allVisibleSelected"
|
|
43
43
|
class="c8y-checkbox input-sm"
|
|
44
44
|
ng-click="ctrl.selectAllVisible()"
|
|
45
45
|
>
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
</label>
|
|
55
55
|
<label
|
|
56
56
|
title="{{ 'Deactivate all visible`children`' | translate }}"
|
|
57
|
-
ng-if="ctrl.
|
|
57
|
+
ng-if="ctrl.allVisibleSelected"
|
|
58
58
|
class="c8y-checkbox input-sm"
|
|
59
59
|
ng-click="ctrl.deselectAllVisible()"
|
|
60
60
|
>
|