@c8y/ng1-modules 1018.503.143 → 1018.503.145

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.
@@ -3,7 +3,6 @@ msgstr ""
3
3
  "Project-Id-Version: c8y-cumulocity-ui\n"
4
4
  "Report-Msgid-Bugs-To: \n"
5
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2025-01-16 18:24\n"
7
6
  "Last-Translator: \n"
8
7
  "Language: de\n"
9
8
  "Language-Team: German\n"
@@ -3991,7 +3990,7 @@ msgid "Customer"
3991
3990
  msgstr "Kunde"
3992
3991
 
3993
3992
  msgid "Cycle data connection status"
3994
- msgstr "Datenverbindung neustarten"
3993
+ msgstr "Status des Datenverbindungszyklus"
3995
3994
 
3996
3995
  msgid "Cycle detected for route {{route}}."
3997
3996
  msgstr "Kreislauf in Route {{route}} festgestellt."
@@ -10399,7 +10398,7 @@ msgid "Operations"
10399
10398
  msgstr "Operationen"
10400
10399
 
10401
10400
  msgid "Operations created"
10402
- msgstr "Erstellte Operationen."
10401
+ msgstr "Erstellte Operationen"
10403
10402
 
10404
10403
  msgid "Operations will be displayed here."
10405
10404
  msgstr "Die Operationen werden hier angezeigt."
@@ -16510,7 +16509,7 @@ msgstr "Jahr"
16510
16509
  msgid "Yearly: {{ month }}, {{ monthDay }} day of the month, at {{ hour }}:{{\n"
16511
16510
  " minutes\n"
16512
16511
  " }}."
16513
- msgstr "Yearly: {{ month }}, {{ monthDay }} day of the month, at {{ hour }}:{{\n"
16512
+ msgstr "Jährlich: {{ month }}, {{ monthDay }} Tag des Monats, an {{ hour }}:{{\n"
16514
16513
  " minutes\n"
16515
16514
  " }}."
16516
16515
 
@@ -3,7 +3,6 @@ msgstr ""
3
3
  "Project-Id-Version: c8y-cumulocity-ui\n"
4
4
  "Report-Msgid-Bugs-To: \n"
5
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2025-01-16 18:24\n"
7
6
  "Last-Translator: \n"
8
7
  "Language: es\n"
9
8
  "Language-Team: Spanish\n"
@@ -3,7 +3,6 @@ msgstr ""
3
3
  "Project-Id-Version: c8y-cumulocity-ui\n"
4
4
  "Report-Msgid-Bugs-To: \n"
5
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2025-01-16 18:24\n"
7
6
  "Last-Translator: \n"
8
7
  "Language: fr\n"
9
8
  "Language-Team: French\n"
@@ -3,7 +3,6 @@ msgstr ""
3
3
  "Project-Id-Version: c8y-cumulocity-ui\n"
4
4
  "Report-Msgid-Bugs-To: \n"
5
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2025-01-16 18:24\n"
7
6
  "Last-Translator: \n"
8
7
  "Language: ja_JP\n"
9
8
  "Language-Team: Japanese\n"
@@ -3,7 +3,6 @@ msgstr ""
3
3
  "Project-Id-Version: c8y-cumulocity-ui\n"
4
4
  "Report-Msgid-Bugs-To: \n"
5
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2025-01-16 18:24\n"
7
6
  "Last-Translator: \n"
8
7
  "Language: ko\n"
9
8
  "Language-Team: Korean\n"
@@ -3,7 +3,6 @@ msgstr ""
3
3
  "Project-Id-Version: c8y-cumulocity-ui\n"
4
4
  "Report-Msgid-Bugs-To: \n"
5
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2025-01-16 18:24\n"
7
6
  "Last-Translator: \n"
8
7
  "Language: nl\n"
9
8
  "Language-Team: Dutch\n"
@@ -3,7 +3,6 @@ msgstr ""
3
3
  "Project-Id-Version: c8y-cumulocity-ui\n"
4
4
  "Report-Msgid-Bugs-To: \n"
5
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2025-01-16 18:24\n"
7
6
  "Last-Translator: \n"
8
7
  "Language: pl\n"
9
8
  "Language-Team: Polish\n"
@@ -10472,7 +10471,7 @@ msgid "Operations"
10472
10471
  msgstr "Operacje"
10473
10472
 
10474
10473
  msgid "Operations created"
10475
- msgstr "Utworzono operacje"
10474
+ msgstr "Operacje utworzone"
10476
10475
 
10477
10476
  msgid "Operations will be displayed here."
10478
10477
  msgstr "W tym miejscu będą wyświetlane operacje."
@@ -3,7 +3,6 @@ msgstr ""
3
3
  "Project-Id-Version: c8y-cumulocity-ui\n"
4
4
  "Report-Msgid-Bugs-To: \n"
5
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2025-01-16 18:24\n"
7
6
  "Last-Translator: \n"
8
7
  "Language: pt_BR\n"
9
8
  "Language-Team: Portuguese, Brazilian\n"
@@ -230,7 +229,7 @@ msgstr "<nenhum nome>"
230
229
  msgid "<p class=\"m-b-8\"><b>Shared</b> availability will make the package available to all subtenants without explicitly subscribing the package.</p>\n"
231
230
  " <p class=\"m-b-8\"><b>Market</b> availability will make the package available to your own tenant and needs to be subscribed to subtenants individually.</p>\n"
232
231
  " <p class=\"m-b-8\"><b>Private</b> availability will make the package only available to your own tenant.</p>"
233
- msgstr "<p class=\"m-b-8\">A disponibilidade <b>Compartilhada</b> disponibilizará o pacote a todos os subtenants sem subscrever explicitamente o pacote.</p>\n"
232
+ msgstr "<p class=\"m-b-8\">A disponibilidade <b>Compartilhada</b> tornará o pacote acessível a todos os subtenants sem subscrever explicitamente o pacote.</p>\n"
234
233
  " A <p class=\"m-b-8\">Disponibilidade de <b>Mercado</b> disponibilizará o pacote ao seu próprio tenant e precisa ser subscrita aos subtenants individualmente.</p>\n"
235
234
  " <p class=\"m-b-8\">A disponibilidade <b>Privada</b> disponibilizará o pacote apenas ao seu próprio tenant.</p>"
236
235
 
@@ -1145,7 +1144,7 @@ msgid "After the activation is completed you will no longer be able to access yo
1145
1144
  " , instead use your new custom domain name\n"
1146
1145
  " <code>{{ vm.newDomainName }}</code>\n"
1147
1146
  " ."
1148
- msgstr "Após a conclusão da ativação você não terá mais acesso ao seu tenant\n"
1147
+ msgstr "Depois de concluir o processo você não poderá mais acessar seu tenant\n"
1149
1148
  " com\n"
1150
1149
  " <code>{{ vm.domainName }}</code>\n"
1151
1150
  " , em vez disso use o seu novo nome de domínio personalizado\n"
@@ -2565,7 +2564,7 @@ msgstr "As alterações feitas no painel inicial são refletidas apenas na aplic
2565
2564
 
2566
2565
  msgid "Changes in the name server need time to propagate and take effect. Wait approximately\n"
2567
2566
  " one hour before activating your domain here."
2568
- msgstr "As alterações no servidor de nomes precisam de tempo para se propagar e entrar em vigor. Aguarde aproximadamente\n"
2567
+ msgstr "As alterações ao nome do servidor precisam de tempo para se propagar e entrar em vigor. Aguarde aproximadamente\n"
2569
2568
  " uma hora antes de ativar seu domínio aqui."
2570
2569
 
2571
2570
  msgid "Changes saved."
@@ -3,7 +3,6 @@ msgstr ""
3
3
  "Project-Id-Version: c8y-cumulocity-ui\n"
4
4
  "Report-Msgid-Bugs-To: \n"
5
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2025-01-16 18:24\n"
7
6
  "Last-Translator: \n"
8
7
  "Language: zh_CN\n"
9
8
  "Language-Team: Chinese Simplified\n"
@@ -3,7 +3,6 @@ msgstr ""
3
3
  "Project-Id-Version: c8y-cumulocity-ui\n"
4
4
  "Report-Msgid-Bugs-To: \n"
5
5
  "POT-Creation-Date: \n"
6
- "PO-Revision-Date: 2025-01-16 18:24\n"
7
6
  "Last-Translator: \n"
8
7
  "Language: zh_TW\n"
9
8
  "Language-Team: Chinese Traditional\n"
@@ -1 +1 @@
1
- "use strict";angular.module("c8y.ui").controller("c8yRadialGaugeCtrl",["$scope","$element","$window","$filter",function(n,i,t,a){var r={container:null,gauge:null,ranges:null,pointer:{knob:null,gradient:null,text:null}},s={width:0,height:0,base:0},o={x:0,y:0},u={limits:{lower:0,upper:0},ranges:[],precision:2},d={width:300,height:300,minPointerRotation:-140,maxPointerRotation:140,greenRangeColor:"#7ED321",yellowRangeColor:"#F5A623",redRangeColor:"#D0021B",lowerLimit:0,upperLimit:100,precision:2,unit:"",pointerGradientColorFar:"#FFFFFF",pointerGradientColorNear:"#5ADCEA",initialValueUpdateTransitionDuration:500,valueUpdateTransitionDuration:2e3,pointerValueTextFontSize:"1.75em",pointerValueTextFillColor:"#FFFFFF",pointerUnitTextFontSize:"1.5em",pointerUnitTextFillColor:"#F8F8F8",scaleTicksCount:10,scaleTickFontSize:"0.85em",gaugeWheelStrokeColor:"#D8D8D8",gaugeWheelFillColor:"#F5F5F5",scaleWheelStrokeColor:"#F1F1F1",scaleWheelFillColor:"#FFFFFF",scaleTickStrokeColor:"#FFFFFF",scaleTickStrokeWidth:5,scaleTickFontColor:"#444444",pointerKnobStrokeColor:"#333333",pointerKnobFillColor:"#333333",gaugeScaleInnerRadiusFactor:.7,gaugeScaleOuterRadiusFactor:1},l={degsToRads:function(t){return t*(Math.PI/180)}},p={valueToRotationRads:d3.scale.linear().domain([d.lowerLimit,d.upperLimit]).range([l.degsToRads(d.minPointerRotation),l.degsToRads(d.maxPointerRotation)]),valueToRotationDegs:d3.scale.linear().domain([d.lowerLimit,d.upperLimit]).range([d.minPointerRotation,d.maxPointerRotation]),pointerGradientProgressToColor:d3.scale.pow().exponent(25).domain([0,360]).range([d.pointerGradientColorFar,d.pointerGradientColorNear]),pointerGradientProgressToOpacity:d3.scale.pow().exponent(25).domain([0,360]).range([0,1])},c={rotate:function(t,e){return["rotate(",[t,e.x,e.y].join(","),")"].join("")},translate:function(t){return["translate(",[t.x,t.y].join(","),")"].join("")}},g=d3.svg.line().x(function(t){return t.x}).y(function(t){return t.y}).interpolate("linear");function m(){s.width=(parseInt(n.width(),10)||i.width()||d.width)-5,s.height=(parseInt(n.height(),10)||i.parent().parent().height()||d.height)-5,s.base=Math.min(s.width,s.height)/2,o.x=s.width/2,o.y=s.height/2,_.forEach([{property:"pointerValueTextFontSize",fn:function(t){return.007678571*t+.2280357},min:.85,max:2.5,precision:2,unit:"em"},{property:"scaleTickFontSize",fn:function(t){return.007107143*t+.00527381},min:.65,max:1.5,precision:2,unit:"em"},{property:"pointerUnitTextFontSize",fn:function(t){return.007107143*t+.00527381},min:.65,max:2,precision:2,unit:"em"}],function(t){var e=t.property,n=t.fn,i=t.min,a=t.max,r=t.precision,t=t.unit,n=n(s.base),n=_.round(n,r),r=_.clamp(n,i,a);_.set(d,e,"".concat(r).concat(t))}),i.empty(),r.container=d3.select(i[0]).append("svg").attr("viewBox",[0,0,s.width,s.height].join(",")),r.gauge=r.container.append("g").attr("class","radial-gauge"),r.gauge.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",s.base).style("stroke",d.gaugeWheelStrokeColor).style("fill",d.gaugeWheelFillColor),r.ranges=r.gauge.append("g").attr("class","radial-gauge-ranges"),r.ranges.selectAll("path").data(u.ranges).enter().append("path").attr("d",d3.svg.arc().innerRadius(s.base*d.gaugeScaleInnerRadiusFactor).outerRadius(s.base*d.gaugeScaleOuterRadiusFactor).startAngle(function(t){return p.valueToRotationRads(t.min)}).endAngle(function(t){return p.valueToRotationRads(t.max)})).style("fill",function(t){return t.color}).attr("transform",c.translate(o)),r.scale=r.container.append("g").attr("class","radial-gauge-scale"),r.scale.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",.7*s.base).style("stroke",d.scaleWheelStrokeColor).style("fill",d.scaleWheelFillColor);var t=(u.limits.upper-u.limits.lower)/d.scaleTicksCount,e=((t=d3.range(u.limits.lower,u.limits.upper,t).map(_.identity)).push(u.limits.upper),_.every(t,function(t){return Math.round(t)===t}));r.scale.selectAll("line").data(t).enter().append("line").attr("x1",o.x).attr("y1",o.y-.7*s.base).attr("x2",o.x).attr("y2",o.y-.75*s.base).attr("transform",function(t){return c.rotate(p.valueToRotationDegs(t),o)}).style("stroke",d.scaleTickStrokeColor).style("stroke-width",d.scaleTickStrokeWidth),r.scale.selectAll("text").data(t).enter().append("text").attr("x",o.x).attr("y",o.y-.8*s.base).attr("text-anchor","middle").style("font-size",d.scaleTickFontSize).style("font-weight","bold").attr("fill",d.scaleTickFontColor).attr("transform",function(t){return c.rotate(p.valueToRotationDegs(t),o)}).text(function(t){return a("number")(t,e?0:u.precision)}),r.pointer.knob=r.container.append("g").attr("class","radial-gauge-pointer-knob"),r.pointer.knob.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",.55*s.base).style("stroke",d.pointerKnobStrokeColor).style("fill",d.pointerKnobFillColor),r.pointer.knob.append("path").attr("d",g([{x:o.x-.55*s.base,y:o.y},{x:o.x+.55*s.base,y:o.y},{x:o.x,y:o.y-.8*s.base}])).attr("fill",d.pointerKnobFillColor),r.pointer.text=r.container.append("text").attr("x",o.x).attr("y",o.y+-.2*s.base).style("font-size",d.pointerValueTextFontSize).attr("fill",d.pointerValueTextFillColor).attr("text-anchor","middle").text(a("number")(u.value,u.precision)||""),r.pointer.textUnit=r.container.append("text").attr("id","text-unit").attr("x",o.x).attr("y",o.y).style("font-size",d.pointerUnitTextFontSize).attr("fill",d.pointerUnitTextFillColor).attr("text-anchor","middle").text(u.unit),r.pointer.dateTimeText=r.container.append("text").attr("id","text-time").attr("x",o.x).attr("y",o.y+.2*s.base).style("font-size",d.pointerUnitTextFontSize).attr("fill",d.pointerUnitTextFillColor).attr("text-anchor","middle").attr("font-style","italic").text(a("absoluteDateTimeShort")(n.time)),F(n.value||u.value||0)}function x(t,e,n){t=Number(t),e=Number(e);_.isFinite(t)&&_.isFinite(e)&&u.ranges.push({min:t,max:e,color:n})}function F(t){u.previousValue=u.value,u.value=t,u.previousDateTimeValue=u.dateTimeValue,u.dateTimeValue=moment(n.time).valueOf();var e,t=!!_.isUndefined(u.previousValue);e=t,r.pointer.gradient&&(e=e?d.initialValueUpdateTransitionDuration:d.valueUpdateTransitionDuration,r.pointer.gradient.transition().duration(e).call(T,u.value)),e=t,r.pointer.knob&&(e=e?d.initialValueUpdateTransitionDuration:d.valueUpdateTransitionDuration,r.pointer.knob.transition().duration(e).attrTween("transform",function(t,e){return function(){return d3.interpolateString(c.rotate(p.valueToRotationDegs(t),o),c.rotate(p.valueToRotationDegs(e),o))}}(_.isUndefined(u.previousValue)?u.limits.lower:u.previousValue,u.value))),e=t,r.pointer.text&&(e=e?d.initialValueUpdateTransitionDuration:d.valueUpdateTransitionDuration,r.pointer.text.transition().duration(e).tween("text",function(){var e=this,n=d3.interpolate(u.previousValue,u.value);return function(t){e.textContent=a("number")(n(t),u.precision)}})),e=t,r.pointer.dateTimeText&&(e=e?d.initialValueUpdateTransitionDuration:d.valueUpdateTransitionDuration,r.pointer.dateTimeText.transition().duration(e).tween("text",function(){var e=this,n=d3.interpolate(u.previousDateTimeValue,u.dateTimeValue);return function(t){e.textContent=_.isNaN(n(t))?"":a("absoluteDateTimeShort")(n(t))}}))}function T(t,e){e=e;var o=d3.scale.linear().domain([0,360]).range([p.valueToRotationRads(u.limits.lower),p.valueToRotationRads(_.isUndefined(e)?u.limits.lower:e)]),l=d3.svg.arc().innerRadius(s.base*d.gaugeScaleInnerRadiusFactor).outerRadius(s.base*d.gaugeScaleOuterRadiusFactor).startAngle(function(t){return t.startAngle}).endAngle(function(t){return t.endAngle});t.attrTween("d",function(e,t){var n=d3.interpolate(e.startAngle,o(t)),i=d3.interpolate(e.endAngle,o(t+1)),a=d3.interpolate(e.color,p.pointerGradientProgressToColor(t)),r=d3.interpolate(e.opacity,p.pointerGradientProgressToOpacity(t));return function(t){return e.startAngle=n(t),e.endAngle=i(t),e.fill=a(t),e.opacity=r(t),l(e)}})}n.$watch("dp",function(t){var e;t&&(u.dataPoint=t,u.limits.lower=n.lowerLimit||Number(u.dataPoint.min)||d.lowerLimit,u.limits.upper=n.upperLimit||Number(u.dataPoint.max)||d.upperLimit,u.unit=n.valueUnit||u.dataPoint.unit||d.unit,p.valueToRotationRads=d3.scale.linear().domain([u.limits.lower,u.limits.upper]).range([l.degsToRads(d.minPointerRotation),l.degsToRads(d.maxPointerRotation)]),p.valueToRotationDegs=d3.scale.linear().domain([u.limits.lower,u.limits.upper]).range([d.minPointerRotation,d.maxPointerRotation]),t=void 0===n.fractionSize?d.precision:n.fractionSize,u.precision=t,u.ranges=n.ranges||[],t=u.dataPoint.yellowRangeMin,e=u.dataPoint.yellowRangeMax,x(t,e,d.yellowRangeColor),t=u.dataPoint.redRangeMin,e=u.dataPoint.redRangeMax,x(t,e,d.redRangeColor),m())},!0),n.$watch("measurement",function(t){t&&(t=t&&t.value,F(n.value||(_.isFinite(t)?t:u.value||0)))},!0),n.$on("dashboardResize",m),n.$on("$destroy",function(){t.removeEventListener("resize",m)}),t.addEventListener("resize",m),m()}]);
1
+ "use strict";angular.module("c8y.ui").controller("c8yRadialGaugeCtrl",["$scope","$element","$window","$filter",function(n,i,t,a){var r={container:null,gauge:null,ranges:null,pointer:{knob:null,gradient:null,text:null}},s={width:0,height:0,base:0},o={x:0,y:0},u={limits:{lower:0,upper:0},ranges:[],precision:2},d={width:300,height:300,minPointerRotation:-140,maxPointerRotation:140,greenRangeColor:"#7ED321",yellowRangeColor:"#F5A623",redRangeColor:"#D0021B",lowerLimit:0,upperLimit:100,precision:2,unit:"",pointerGradientColorFar:"#FFFFFF",pointerGradientColorNear:"#5ADCEA",initialValueUpdateTransitionDuration:500,valueUpdateTransitionDuration:2e3,pointerValueTextFontSize:"1.75em",pointerValueTextFillColor:"#FFFFFF",pointerUnitTextFontSize:"1.5em",pointerUnitTextFillColor:"#F8F8F8",scaleTicksCount:10,scaleTickFontSize:"0.85em",gaugeWheelStrokeColor:"#D8D8D8",gaugeWheelFillColor:"#F5F5F5",scaleWheelStrokeColor:"#F1F1F1",scaleWheelFillColor:"#FFFFFF",scaleTickStrokeColor:"#FFFFFF",scaleTickStrokeWidth:5,scaleTickFontColor:"#444444",pointerKnobStrokeColor:"#333333",pointerKnobFillColor:"#333333",gaugeScaleInnerRadiusFactor:.7,gaugeScaleOuterRadiusFactor:1},l={degsToRads:function(t){return t*(Math.PI/180)}},p={valueToRotationRads:d3.scale.linear().domain([d.lowerLimit,d.upperLimit]).range([l.degsToRads(d.minPointerRotation),l.degsToRads(d.maxPointerRotation)]),valueToRotationDegs:d3.scale.linear().domain([d.lowerLimit,d.upperLimit]).range([d.minPointerRotation,d.maxPointerRotation]),pointerGradientProgressToColor:d3.scale.pow().exponent(25).domain([0,360]).range([d.pointerGradientColorFar,d.pointerGradientColorNear]),pointerGradientProgressToOpacity:d3.scale.pow().exponent(25).domain([0,360]).range([0,1])},c={rotate:function(t,e){return["rotate(",[t,e.x,e.y].join(","),")"].join("")},translate:function(t){return["translate(",[t.x,t.y].join(","),")"].join("")}},g=d3.svg.line().x(function(t){return t.x}).y(function(t){return t.y}).interpolate("linear");function m(){s.width=(parseInt(n.width(),10)||i.width()||d.width)-5,s.height=(parseInt(n.height(),10)||i.parent().parent().height()||d.height)-5,s.base=Math.min(s.width,s.height)/2,o.x=s.width/2,o.y=s.height/2,_.forEach([{property:"pointerValueTextFontSize",fn:function(t){return.007678571*t+.2280357},min:.85,max:2.5,precision:2,unit:"em"},{property:"scaleTickFontSize",fn:function(t){return.007107143*t+.00527381},min:.65,max:1.5,precision:2,unit:"em"},{property:"pointerUnitTextFontSize",fn:function(t){return.007107143*t+.00527381},min:.65,max:2,precision:2,unit:"em"}],function(t){var e=t.property,n=t.fn,i=t.min,a=t.max,r=t.precision,t=t.unit,n=n(s.base),n=_.round(n,r),r=_.clamp(n,i,a);_.set(d,e,"".concat(r).concat(t))}),i.empty(),r.container=d3.select(i[0]).append("svg").attr("viewBox",[0,0,s.width,s.height].join(",")),r.gauge=r.container.append("g").attr("class","radial-gauge"),r.gauge.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",s.base).style("stroke",d.gaugeWheelStrokeColor).style("fill",d.gaugeWheelFillColor),r.ranges=r.gauge.append("g").attr("class","radial-gauge-ranges"),r.ranges.selectAll("path").data(u.ranges).enter().append("path").attr("d",d3.svg.arc().innerRadius(s.base*d.gaugeScaleInnerRadiusFactor).outerRadius(s.base*d.gaugeScaleOuterRadiusFactor).startAngle(function(t){return p.valueToRotationRads(t.min)}).endAngle(function(t){return p.valueToRotationRads(t.max)})).style("fill",function(t){return t.color}).attr("transform",c.translate(o)),r.scale=r.container.append("g").attr("class","radial-gauge-scale"),r.scale.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",.7*s.base).style("stroke",d.scaleWheelStrokeColor).style("fill",d.scaleWheelFillColor);var t=(u.limits.upper-u.limits.lower)/d.scaleTicksCount,e=((t=d3.range(u.limits.lower,u.limits.upper,t).map(_.identity)).push(u.limits.upper),_.every(t,function(t){return Math.round(t)===t}));r.scale.selectAll("line").data(t).enter().append("line").attr("x1",o.x).attr("y1",o.y-.7*s.base).attr("x2",o.x).attr("y2",o.y-.75*s.base).attr("transform",function(t){return c.rotate(p.valueToRotationDegs(t),o)}).style("stroke",d.scaleTickStrokeColor).style("stroke-width",d.scaleTickStrokeWidth),r.scale.selectAll("text").data(t).enter().append("text").attr("x",o.x).attr("y",o.y-.8*s.base).attr("text-anchor","middle").style("font-size",d.scaleTickFontSize).style("font-weight","bold").attr("fill",d.scaleTickFontColor).attr("transform",function(t){return c.rotate(p.valueToRotationDegs(t),o)}).text(function(t){return a("number")(t,e?0:u.precision)}),r.pointer.knob=r.container.append("g").attr("class","radial-gauge-pointer-knob"),r.pointer.knob.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",.55*s.base).style("stroke",d.pointerKnobStrokeColor).style("fill",d.pointerKnobFillColor),r.pointer.knob.append("path").attr("d",g([{x:o.x-.55*s.base,y:o.y},{x:o.x+.55*s.base,y:o.y},{x:o.x,y:o.y-.8*s.base}])).attr("fill",d.pointerKnobFillColor),r.pointer.text=r.container.append("text").attr("x",o.x).attr("y",o.y+-.2*s.base).style("font-size",d.pointerValueTextFontSize).attr("fill",d.pointerValueTextFillColor).attr("text-anchor","middle").text(a("number")(u.value,u.precision)||""),r.pointer.textUnit=r.container.append("text").attr("id","text-unit").attr("x",o.x).attr("y",o.y).style("font-size",d.pointerUnitTextFontSize).attr("fill",d.pointerUnitTextFillColor).attr("text-anchor","middle").text(u.unit),r.pointer.dateTimeText=r.container.append("text").attr("id","text-time").attr("x",o.x).attr("y",o.y+.2*s.base).style("font-size",d.pointerUnitTextFontSize).attr("fill",d.pointerUnitTextFillColor).attr("text-anchor","middle").attr("font-style","italic").text(a("absoluteDateTimeShort")(n.time)),T(n.value||u.value||0)}function x(t,e,n){return null!=t?t:null!=e?Number(e):n}function F(t,e,n){t=Number(t),e=Number(e);_.isFinite(t)&&_.isFinite(e)&&u.ranges.push({min:t,max:e,color:n})}function T(t){u.previousValue=u.value,u.value=t,u.previousDateTimeValue=u.dateTimeValue,u.dateTimeValue=moment(n.time).valueOf();var e,t=!!_.isUndefined(u.previousValue);e=t,r.pointer.gradient&&(e=e?d.initialValueUpdateTransitionDuration:d.valueUpdateTransitionDuration,r.pointer.gradient.transition().duration(e).call(f,u.value)),e=t,r.pointer.knob&&(e=e?d.initialValueUpdateTransitionDuration:d.valueUpdateTransitionDuration,r.pointer.knob.transition().duration(e).attrTween("transform",function(t,e){return function(){return d3.interpolateString(c.rotate(p.valueToRotationDegs(t),o),c.rotate(p.valueToRotationDegs(e),o))}}(_.isUndefined(u.previousValue)?u.limits.lower:u.previousValue,u.value))),e=t,r.pointer.text&&(e=e?d.initialValueUpdateTransitionDuration:d.valueUpdateTransitionDuration,r.pointer.text.transition().duration(e).tween("text",function(){var e=this,n=d3.interpolate(u.previousValue,u.value);return function(t){e.textContent=a("number")(n(t),u.precision)}})),e=t,r.pointer.dateTimeText&&(e=e?d.initialValueUpdateTransitionDuration:d.valueUpdateTransitionDuration,r.pointer.dateTimeText.transition().duration(e).tween("text",function(){var e=this,n=d3.interpolate(u.previousDateTimeValue,u.dateTimeValue);return function(t){e.textContent=_.isNaN(n(t))?"":a("absoluteDateTimeShort")(n(t))}}))}function f(t,e){e=e;var o=d3.scale.linear().domain([0,360]).range([p.valueToRotationRads(u.limits.lower),p.valueToRotationRads(_.isUndefined(e)?u.limits.lower:e)]),l=d3.svg.arc().innerRadius(s.base*d.gaugeScaleInnerRadiusFactor).outerRadius(s.base*d.gaugeScaleOuterRadiusFactor).startAngle(function(t){return t.startAngle}).endAngle(function(t){return t.endAngle});t.attrTween("d",function(e,t){var n=d3.interpolate(e.startAngle,o(t)),i=d3.interpolate(e.endAngle,o(t+1)),a=d3.interpolate(e.color,p.pointerGradientProgressToColor(t)),r=d3.interpolate(e.opacity,p.pointerGradientProgressToOpacity(t));return function(t){return e.startAngle=n(t),e.endAngle=i(t),e.fill=a(t),e.opacity=r(t),l(e)}})}n.$watch("dp",function(t){var e;t&&(u.dataPoint=t,u.limits.lower=x(n.lowerLimit,u.dataPoint.min,d.lowerLimit),u.limits.upper=x(n.upperLimit,u.dataPoint.max,d.upperLimit),u.unit=n.valueUnit||u.dataPoint.unit||d.unit,p.valueToRotationRads=d3.scale.linear().domain([u.limits.lower,u.limits.upper]).range([l.degsToRads(d.minPointerRotation),l.degsToRads(d.maxPointerRotation)]),p.valueToRotationDegs=d3.scale.linear().domain([u.limits.lower,u.limits.upper]).range([d.minPointerRotation,d.maxPointerRotation]),t=void 0===n.fractionSize?d.precision:n.fractionSize,u.precision=t,u.ranges=n.ranges||[],t=u.dataPoint.yellowRangeMin,e=u.dataPoint.yellowRangeMax,F(t,e,d.yellowRangeColor),t=u.dataPoint.redRangeMin,e=u.dataPoint.redRangeMax,F(t,e,d.redRangeColor),m())},!0),n.$watch("measurement",function(t){t&&(t=t&&t.value,T(n.value||(_.isFinite(t)?t:u.value||0)))},!0),n.$on("dashboardResize",m),n.$on("$destroy",function(){t.removeEventListener("resize",m)}),t.addEventListener("resize",m),m()}]);
@@ -1 +1 @@
1
- "use strict";!function(){function n(r,n,t,e,i,o,a,c,l,s,u,d,f,g){var p,m,b,y,v=g("humanizeAppName"),h=this,g=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:i.getSchema(),form:i.getForm(),options:i.getSchemaFormOptions(),branding:i.getBranding(),app:d.getCurrent()}).then(function(n){var e=n.schema,t=n.form,o=n.options,i=n.branding,n=n.app,a=(_.defaults(i,{c8y_less_variables:{}}),b=_.cloneDeep(i),_.assign(h,{schema:e,form:t,options:o,branding:i}),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 o.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:g,dirtyFormApplyTitle:I,canSave:function(){return!(_.get(r,"platformConfigurationForm1.$invalid")||_.get(r,"platformConfigurationForm2.$invalid"))},save:function(){var t=[],o=i.BINARY_VARS;return h.branding.binary_ref={},_.each(o,function(e){var n;h.branding.c8y_less_variables[e]&&(n=i.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(o,e)}),i.saveConfiguration(h.branding,b.id).then(function(){return l.success(s("Branding saved."))})}).then(e.reload)},generate:o.wizardGenerate,preview:function(){p=window.open("".concat(d.getHref(y),"/index.html"),"_blank","noopener,noreferrer"),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 f({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(){f({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){f({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"})}();
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1018.503.143",
3
+ "version": "1018.503.145",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",