@c8y/ng1-modules 1023.17.13 → 1023.17.19
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
CHANGED
|
@@ -354,7 +354,7 @@ msgstr "<p class=\"p-b-8\">\n"
|
|
|
354
354
|
msgid "<p class=\"p-b-8\">Enabling this option uses the layout and configuration of this dashboard to create dashboard instances for all devices based on the device type.</p>\n"
|
|
355
355
|
" <p class=\"p-b-16\">The current device doesn't have a device type assigned to it. Assign a device type to the device via the \"Asset properties\" widget in the <strong>Info</strong> tab of the device.</p>"
|
|
356
356
|
msgstr "<p class=\"p-b-8\">Die Aktivierung dieser Option verwendet das Layout und die Konfiguration dieses Dashboards, um anhand des Gerätetyps für alle Geräte Dashboard-Instanzen zu erstellen.</p>\n"
|
|
357
|
-
" <p class=\"p-b-16\">Dem aktuellen Gerät ist kein Gerätetyp zugewiesen. Weisen Sie dem Gerät über das Widget \"Asset-
|
|
357
|
+
" <p class=\"p-b-16\">Dem aktuellen Gerät ist kein Gerätetyp zugewiesen. Weisen Sie dem Gerät über das Widget \"Asset-Eigenschaften\" auf der Registerkarte <strong>Info</strong> des Geräts einen Gerätetyp zu.</p>"
|
|
358
358
|
|
|
359
359
|
msgid "<p><strong>The following error was returned from the external authentication service:</strong></p><p><code>{{ error }}</code></p>."
|
|
360
360
|
msgstr "<p><strong>Der folgende Fehler wurde vom externen Authentifizierungsdienst zurückgegeben:</strong></p><p><code>{{ error }}</code></p>."
|
|
@@ -923,7 +923,7 @@ msgid "Add a new software by clicking below."
|
|
|
923
923
|
msgstr "Fügen Sie eine neue Software hinzu, indem Sie unten klicken."
|
|
924
924
|
|
|
925
925
|
msgid "Add a new tenant property in Properties library."
|
|
926
|
-
msgstr "
|
|
926
|
+
msgstr "Neue Mandanteneigenschaft zur Eigenschaftsbibliothek hinzufügen."
|
|
927
927
|
|
|
928
928
|
msgid "Add a new version by clicking below."
|
|
929
929
|
msgstr "Fügen Sie eine neue Version hinzu, indem Sie unten klicken."
|
|
@@ -1519,7 +1519,7 @@ msgid "Alarm mapping"
|
|
|
1519
1519
|
msgstr "Alarmregeln"
|
|
1520
1520
|
|
|
1521
1521
|
msgid "Alarm mappings automatically transform the description and severity based on alarm type matching. Alarm types are a defined property of each alarm created on the platform."
|
|
1522
|
-
msgstr "Alarmregeln ändern automatisch die Beschreibung und den Schweregrad von Alarmen eines bestimmten Typs. Jedem Alarm ist ein Typ über
|
|
1522
|
+
msgstr "Alarmregeln ändern automatisch die Beschreibung und den Schweregrad von Alarmen eines bestimmten Typs. Jedem Alarm ist ein Typ über seine \"type\"-Eigenschaft zugeordnet."
|
|
1523
1523
|
|
|
1524
1524
|
msgid "Alarm mask"
|
|
1525
1525
|
msgstr "Alarmmaske"
|
|
@@ -3533,10 +3533,10 @@ msgid "Completed with failures"
|
|
|
3533
3533
|
msgstr "Mit Fehlern abgeschlossen"
|
|
3534
3534
|
|
|
3535
3535
|
msgid "Complex property. Subproperties are listed below.`tooltip`"
|
|
3536
|
-
msgstr "
|
|
3536
|
+
msgstr "Komplexe Eigenschaft. Untergeordnete Eigenschaften sind unten aufgeführt."
|
|
3537
3537
|
|
|
3538
3538
|
msgid "Complex property.`tooltip`"
|
|
3539
|
-
msgstr "
|
|
3539
|
+
msgstr "Komplexe Eigenschaft."
|
|
3540
3540
|
|
|
3541
3541
|
msgid "Compressed files must have an index.html at root. URLs in the web application can be relative."
|
|
3542
3542
|
msgstr "Die Datei \"index.html\" muss sich im Root-Verzeichnis des Archivs befinden. Die URLs in der Web-Anwendung können relativ sein."
|
|
@@ -3548,7 +3548,7 @@ msgid "Computed property configuration"
|
|
|
3548
3548
|
msgstr "Konfiguration der berechneten Eigenschaften"
|
|
3549
3549
|
|
|
3550
3550
|
msgid "Computed property.`tooltip`"
|
|
3551
|
-
msgstr "
|
|
3551
|
+
msgstr "Berechnete Eigenschaft."
|
|
3552
3552
|
|
|
3553
3553
|
msgid "Concepts`KEEP_ORIGINAL`"
|
|
3554
3554
|
msgstr "Concepts"
|
|
@@ -5629,7 +5629,7 @@ msgid "Device {{id}}"
|
|
|
5629
5629
|
msgstr "Gerät {{id}}"
|
|
5630
5630
|
|
|
5631
5631
|
msgid "Device's name or value of any device's property"
|
|
5632
|
-
msgstr "Name oder anderer
|
|
5632
|
+
msgstr "Name oder anderer Eigenschaftswert des Geräts"
|
|
5633
5633
|
|
|
5634
5634
|
msgid "Device-supported configurations"
|
|
5635
5635
|
msgstr "Geräteunterstützte Konfigurationen"
|
|
@@ -7224,7 +7224,7 @@ msgid "Find out more in the\n"
|
|
|
7224
7224
|
" user documentation\n"
|
|
7225
7225
|
" </a>\n"
|
|
7226
7226
|
" ."
|
|
7227
|
-
msgstr "Weitere Informationen finden Sie in der <a c8y-guide-href=\"/docs/cockpit/widgets-collection/#linear-gauge\">
|
|
7227
|
+
msgstr "Weitere Informationen finden Sie in der <a c8y-guide-href=\"/docs/cockpit/widgets-collection/#linear-gauge\">Benutzerdokumentation</a>."
|
|
7228
7228
|
|
|
7229
7229
|
msgid "Find out more in the\n"
|
|
7230
7230
|
" <a c8y-guide-href=\"/docs/enterprise-tenant/managing-tenants\">user documentation</a>\n"
|
|
@@ -14105,7 +14105,7 @@ msgid "Select repository entry"
|
|
|
14105
14105
|
msgstr "Repository-Eintrag auswählen"
|
|
14106
14106
|
|
|
14107
14107
|
msgid "Select schema properties"
|
|
14108
|
-
msgstr "
|
|
14108
|
+
msgstr "Schema-Eigenschaften auswählen"
|
|
14109
14109
|
|
|
14110
14110
|
msgid "Select server IDs from list"
|
|
14111
14111
|
msgstr "Server-IDs aus der Liste auswählen"
|
|
@@ -14987,7 +14987,7 @@ msgid "Show devices with type"
|
|
|
14987
14987
|
msgstr "Geräte mit Typ anzeigen"
|
|
14988
14988
|
|
|
14989
14989
|
msgid "Show equal properties"
|
|
14990
|
-
msgstr "Gleiche
|
|
14990
|
+
msgstr "Gleiche Eigenschaften anzeigen"
|
|
14991
14991
|
|
|
14992
14992
|
msgid "Show error message"
|
|
14993
14993
|
msgstr "Fehlermeldung anzeigen"
|
|
@@ -15844,7 +15844,7 @@ msgid "Sync"
|
|
|
15844
15844
|
msgstr "Synchronisieren"
|
|
15845
15845
|
|
|
15846
15846
|
msgid "Sync selected properties"
|
|
15847
|
-
msgstr "Ausgewählte
|
|
15847
|
+
msgstr "Ausgewählte Eigenschaften synchronisieren"
|
|
15848
15848
|
|
|
15849
15849
|
msgid "Sync with dashboard settings or set independent time controls for this widget."
|
|
15850
15850
|
msgstr "Synchronisieren Sie dieses Widget mit den Dashboard-Einstellungen oder legen Sie unabhängige Zeitsteuerungen dafür fest."
|
|
@@ -15907,7 +15907,7 @@ msgid "TRIAL"
|
|
|
15907
15907
|
msgstr "TEST"
|
|
15908
15908
|
|
|
15909
15909
|
msgid "Table of device properties, for example, name, type or notes."
|
|
15910
|
-
msgstr "Liste von
|
|
15910
|
+
msgstr "Liste von Geräteeigenschaften, z. B. Name, Typ oder Notizen."
|
|
15911
15911
|
|
|
15912
15912
|
msgid "Tag has been set."
|
|
15913
15913
|
msgstr "Tag gesetzt."
|
|
@@ -16443,7 +16443,7 @@ msgid "The request is taking longer than usual. We apologize for the inconvenien
|
|
|
16443
16443
|
msgstr "Die Anfrage benötigt mehr Zeit als erwartet. Wir entschuldigen uns für die Unannehmlichkeiten."
|
|
16444
16444
|
|
|
16445
16445
|
msgid "The required and optional properties to register and setup LWM2M devices"
|
|
16446
|
-
msgstr "Notwendige und optionale
|
|
16446
|
+
msgstr "Notwendige und optionale Eigenschaften um LWM2M-Geräte zu registrieren und einzurichten"
|
|
16447
16447
|
|
|
16448
16448
|
msgid "The response of the microservice is incomplete. The bulk registration information is missing."
|
|
16449
16449
|
msgstr "Die Antwort des Microservice ist nicht vollständig. Es fehlen Informationen zur Bulk-Registrierung."
|
|
@@ -16461,7 +16461,7 @@ msgid "The selected asset has no children."
|
|
|
16461
16461
|
msgstr "Das ausgewählte Gerät hat keine Kindgeräte."
|
|
16462
16462
|
|
|
16463
16463
|
msgid "The selected device does not have coil status and register properties."
|
|
16464
|
-
msgstr "Das ausgewählte Gerät hat keine Bit- oder
|
|
16464
|
+
msgstr "Das ausgewählte Gerät hat keine Bit- oder Registereigenschaften."
|
|
16465
16465
|
|
|
16466
16466
|
msgid "The selected file is not of a supported type. Supported file types are: {{ accept }}."
|
|
16467
16467
|
msgstr "Der Dateityp der ausgewählten Datei wird nicht unterstützt. Die unterstützten Dateitypen sind: {{ accept }}."
|
|
@@ -16535,7 +16535,7 @@ msgid "The value must be less than \"Token lifespan\"."
|
|
|
16535
16535
|
msgstr "Der Wert muss kleiner als \"Token-Laufzeit\" sein."
|
|
16536
16536
|
|
|
16537
16537
|
msgid "The value of the selected data point or property must be one of the following to have the respective light on: true, 1, any non-empty string or any non-null number."
|
|
16538
|
-
msgstr "Um das entsprechende Licht zu aktivieren, muss der Wert des angegebenen Datenpunkts oder
|
|
16538
|
+
msgstr "Um das entsprechende Licht zu aktivieren, muss der Wert des angegebenen Datenpunkts oder der Eigenschaft eine der folgenden Bedingungen erfüllen: Wahr, 1, nicht leere Zeichenkette, eine Zahl ungleich null."
|
|
16539
16539
|
|
|
16540
16540
|
msgid "The verification code was already sent. For a new verification code, please click on the link above."
|
|
16541
16541
|
msgstr "Der Bestätigungscode wurde bereits gesendet. Klicken Sie auf den oben stehenden Link, um einen neuen Bestätigungscode anzufordern."
|
|
@@ -16848,7 +16848,7 @@ msgid "This will apply to data coming from specified device"
|
|
|
16848
16848
|
msgstr "Dies wird auf Daten des angegebenen Geräts angewendet."
|
|
16849
16849
|
|
|
16850
16850
|
msgid "This will apply to data that has a type property."
|
|
16851
|
-
msgstr "Falls die Daten
|
|
16851
|
+
msgstr "Falls die Daten eine Typ-Eigenschaft besitzen, kann nach dieser Typ-Eigenschaft gefiltert werden."
|
|
16852
16852
|
|
|
16853
16853
|
msgid "This will be matched with the message ID extracted from the protocol's data according to the \"Source\" setting."
|
|
16854
16854
|
msgstr "Diese ID wird mit der Nachricht-ID der Quelle, die auf der Gerätetyp-Seite angegeben ist, verglichen."
|
|
@@ -17279,7 +17279,7 @@ msgid "Unable to get tenant option: \"{{option}}\"."
|
|
|
17279
17279
|
msgstr "Kann die Mandantenoption \"{{option}}\" nicht lesen."
|
|
17280
17280
|
|
|
17281
17281
|
msgid "Unable to load asset properties. Please try again later."
|
|
17282
|
-
msgstr "Die Eigenschaften
|
|
17282
|
+
msgstr "Die Asset-Eigenschaften können nicht geladen werden. Bitte versuchen Sie es später erneut."
|
|
17283
17283
|
|
|
17284
17284
|
msgid "Unable to locate file: \"{{ currentValue }}\""
|
|
17285
17285
|
msgstr "Datei kann nicht gefunden werden: \"{{ currentValue }}\""
|
|
@@ -18832,7 +18832,7 @@ msgid "You must log out to apply your changes. Do you want to proceed?"
|
|
|
18832
18832
|
msgstr "Sie müssen sich abmelden, um Ihre Änderungen zu übernehmen. Möchten Sie fortfahren?"
|
|
18833
18833
|
|
|
18834
18834
|
msgid "You must select at least one property."
|
|
18835
|
-
msgstr "Sie müssen mindestens
|
|
18835
|
+
msgstr "Sie müssen mindestens eine Eigenschaft auswählen."
|
|
18836
18836
|
|
|
18837
18837
|
msgid "You need these roles to access retention rules: Retention rule Read/Admin"
|
|
18838
18838
|
msgstr "Sie brauchen die Berechtigung \"Datenhaltung Lesen\" zum Lesen bzw. \"Datenhaltung Admin\" zur Bearbeitung der Datenhaltungsregeln."
|
|
@@ -19320,7 +19320,7 @@ msgid "e.g. My message"
|
|
|
19320
19320
|
msgstr "z. B. Meine Nachricht"
|
|
19321
19321
|
|
|
19322
19322
|
msgid "e.g. My property"
|
|
19323
|
-
msgstr "z. B.
|
|
19323
|
+
msgstr "z. B. Meine Eigenschaft"
|
|
19324
19324
|
|
|
19325
19325
|
msgid "e.g. My protocol"
|
|
19326
19326
|
msgstr "z. B. Mein Protokoll"
|
|
@@ -19470,7 +19470,7 @@ msgid "e.g. myCustomOperation"
|
|
|
19470
19470
|
msgstr "z. B. meineEigeneOperation"
|
|
19471
19471
|
|
|
19472
19472
|
msgid "e.g. myProperty"
|
|
19473
|
-
msgstr "z. B.
|
|
19473
|
+
msgstr "z. B. meineEigenschaft"
|
|
19474
19474
|
|
|
19475
19475
|
msgid "e.g. mySmartRESTTemplateUniqueId"
|
|
19476
19476
|
msgstr "z. B. meineSmartRESTTemplateUniqueId"
|
|
@@ -20045,7 +20045,7 @@ msgid "{{ instruction.seconds }} seconds"
|
|
|
20045
20045
|
msgstr "{{ instruction.seconds }} Sekunden"
|
|
20046
20046
|
|
|
20047
20047
|
msgid "{{ label }} properties"
|
|
20048
|
-
msgstr "{{ label }}-
|
|
20048
|
+
msgstr "{{ label }}-Eigenschaften"
|
|
20049
20049
|
|
|
20050
20050
|
msgid "{{ lastUpdated }} by {{ user }}"
|
|
20051
20051
|
msgstr "{{ lastUpdated }} von {{ user }}"
|
package/core/locales/zh_TW.po
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _slicedToArray(t,r){return _arrayWithHoles(t)||_iterableToArrayLimit(t,r)||_unsupportedIterableToArray(t,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,r){var e;if(t)return"string"==typeof t?_arrayLikeToArray(t,r):"Map"===(e="Object"===(e={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_arrayLikeToArray(t,r):void 0}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,i=Array(r);e<r;e++)i[e]=t[e];return i}function _iterableToArrayLimit(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var i,n,a,o,l=[],s=!0,c=!1;try{if(a=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;s=!1}else for(;!(s=(i=a.call(e)).done)&&(l.push(i.value),l.length!==r);s=!0);}catch(t){c=!0,n=t}finally{try{if(!s&&null!=e.return&&(o=e.return(),Object(o)!==o))return}finally{if(c)throw n}}return l}}function _arrayWithHoles(t){if(Array.isArray(t))return t}(()=>{function t(c){function t(t){var r=this;(r.chart=t).addItem(r),r.series=[]}return t.prototype={indexPosition:function(){return this.chart.getAxisY().indexOf(this)},indexPositionInSide:function(){var t=this,r=t.orientation();return t.chart.getAxisYByOrientation(r).indexOf(t)},orientation:function(){return this.firstSeries().dataPoint.yAxisType||this.autoOrientation()},autoOrientation:function(){var e=this,t="left",r=e.chart.getAxisY(),i=r.indexOf(e),r=_.findIndex(r,function(t){var r=t.firstSeries().dataPoint.yAxisType;return t!==e&&(!r||"left"===r)});return t=-1<r&&r<i?"right":t},addSerie:function(t){this.series.push(t)},firstSeries:function(){return this.series[0]||{dataPoint:{}}},axis:function(){var r=this,e=(r.strictValues=[],d3.format(".2s"));return d3.svg.axis().scale(r.scale()).orient(r.orientation()).ticks(6).tickFormat(function(t){t={originalValue:t,formattedValue:5<String(t).length?e(t):t};return r.strictValues.push(t),t.formattedValue})},scale:function(){var t,r=_slicedToArray(this.series,1)[0];return t=r?r.scale():t},remove:function(){this.chart.removeItem(this),this.el&&this.el.remove()},render:function(){var t=this,r=t.axis(),e=t.el,i=t.chart.box(),n=t.chart.margins,a=t.chart.sizes.yAxisWidth,o=n.t,l="left"===t.orientation(),a=(t.indexPositionInSide()+1)*a,n=l?n.l+a:i.width-n.r-a,a=(e||(a=t.chart.svg,t._id="axis".concat(String(Math.random()).substr(2)),t.el=a.append("g").attr({class:"yaxis axis",id:t._id}),e=t.el,t.circles=e.append("g").attr({class:"circles"}),t.label=e.append("text").style({fill:"#999","font-size":"10px"})),l?-35:35),s=i.height/2;t.label.attr({x:a,y:s,"text-anchor":"middle",transform:c.rotate(l?-90:90,a,s)}),t.label.text(t.labelText()),e.attr("transform",c.translate(n,o)),e.call(r),0<i.height&&t.renderAdditionalElements()},renderAdditionalElements:function(){var t=this,r=_.uniqBy(t.strictValues,"formattedValue").length!==t.strictValues.length;t.renderCircles(r),r&&(t.reformatTickText(),t.renderStrictValues())},renderCircles:function(i){var n=this,t=n.chart,a=n.circles,o=n.el,r=n.series,l="right"===n.orientation()?35:-35,e=t.box(),t=t.margins,s=e.height-t.t-t.b-15;a.selectAll("circle").remove(),a.selectAll(".seriesColorLine").remove(),_.forEach(r,function(t,r){var t=t.dataPoint,e=a.append("circle").attr({cx:l,cy:s-7*r,r:5,fill:t.color});a.append("line").attr({x1:l,x2:0,y1:s-7*r,y2:s-7*r,style:"stroke:".concat(t.color,";stroke-width:2"),class:"seriesColorLine"}),i&&e.on("mouseover",function(){o.selectAll(".tick").attr({visibility:"hidden"}),n.chart.svg.append("use").attr({href:"#strictValues".concat(n._id),transform:o.attr("transform")})}).on("mouseout",function(){o.selectAll(".tick").attr({visibility:"visible"}),n.chart.svg.selectAll("use").remove()})})},reformatTickText:function(){var i=this,t=_slicedToArray(i.el.selectAll(".tick").select("text"),1)[0],n=t.length-1;_.forEach(t,function(t,r){var e=String(i.strictValues[r].originalValue);t.innerHTML="<title>".concat(e,"</title>"),0!==r&&r!==n?5<e.length&&(t.innerHTML+="…".concat(e.substr(-2))):t.innerHTML+=e})},renderStrictValues:function(){var i=this,t=i.el,r=_slicedToArray(t.selectAll(".tick"),1)[0],n=_.chain(r).map(function(t){return t.transform.baseVal.consolidate().matrix.f}).sortBy().reverse().value(),r=i.strictValues,a=6.25*Math.max.apply(Math,_toConsumableArray(r.map(function(t){return String(t.originalValue).length})))+20,o="right"===i.orientation()?-a:0;t.selectAll("g[strictValuesFor=".concat(i._id,"]")).remove();var l=t.append("g").attr({visibility:"hidden",strictValuesFor:i._id}).append("g").attr({id:"strictValues".concat(i._id)});_.forEach(r,function(t,r){var e=l.append("g").attr({class:"strictValue",strictValueFor:i._id});e.append("rect").attr({x:o,y:n[r]-10,width:a,height:20}),e.append("text").attr({x:10+o,y:n[r]+3,fill:"white"}).text(t.originalValue)})},labelText:function(){var t,r=this.series;return
|
|
1
|
+
function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _slicedToArray(t,r){return _arrayWithHoles(t)||_iterableToArrayLimit(t,r)||_unsupportedIterableToArray(t,r)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,r){var e;if(t)return"string"==typeof t?_arrayLikeToArray(t,r):"Map"===(e="Object"===(e={}.toString.call(t).slice(8,-1))&&t.constructor?t.constructor.name:e)||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?_arrayLikeToArray(t,r):void 0}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var e=0,i=Array(r);e<r;e++)i[e]=t[e];return i}function _iterableToArrayLimit(t,r){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var i,n,a,o,l=[],s=!0,c=!1;try{if(a=(e=e.call(t)).next,0===r){if(Object(e)!==e)return;s=!1}else for(;!(s=(i=a.call(e)).done)&&(l.push(i.value),l.length!==r);s=!0);}catch(t){c=!0,n=t}finally{try{if(!s&&null!=e.return&&(o=e.return(),Object(o)!==o))return}finally{if(c)throw n}}return l}}function _arrayWithHoles(t){if(Array.isArray(t))return t}(()=>{function t(c){function t(t){var r=this;(r.chart=t).addItem(r),r.series=[],r.maxLabelLength=50}return t.prototype={indexPosition:function(){return this.chart.getAxisY().indexOf(this)},indexPositionInSide:function(){var t=this,r=t.orientation();return t.chart.getAxisYByOrientation(r).indexOf(t)},orientation:function(){return this.firstSeries().dataPoint.yAxisType||this.autoOrientation()},autoOrientation:function(){var e=this,t="left",r=e.chart.getAxisY(),i=r.indexOf(e),r=_.findIndex(r,function(t){var r=t.firstSeries().dataPoint.yAxisType;return t!==e&&(!r||"left"===r)});return t=-1<r&&r<i?"right":t},addSerie:function(t){this.series.push(t)},firstSeries:function(){return this.series[0]||{dataPoint:{}}},axis:function(){var r=this,e=(r.strictValues=[],d3.format(".2s"));return d3.svg.axis().scale(r.scale()).orient(r.orientation()).ticks(6).tickFormat(function(t){t={originalValue:t,formattedValue:5<String(t).length?e(t):t};return r.strictValues.push(t),t.formattedValue})},scale:function(){var t,r=_slicedToArray(this.series,1)[0];return t=r?r.scale():t},remove:function(){this.chart.removeItem(this),this.el&&this.el.remove()},render:function(){var t=this,r=t.axis(),e=t.el,i=t.chart.box(),n=t.chart.margins,a=t.chart.sizes.yAxisWidth,o=n.t,l="left"===t.orientation(),a=(t.indexPositionInSide()+1)*a,n=l?n.l+a:i.width-n.r-a,a=(e||(a=t.chart.svg,t._id="axis".concat(String(Math.random()).substr(2)),t.el=a.append("g").attr({class:"yaxis axis",id:t._id}),e=t.el,t.circles=e.append("g").attr({class:"circles"}),t.label=e.append("text").style({fill:"#999","font-size":"10px"})),l?-35:35),s=i.height/2;t.label.attr({x:a,y:s,"text-anchor":"middle",transform:c.rotate(l?-90:90,a,s)}),t.label.text(t.labelText()),e.attr("transform",c.translate(n,o)),e.call(r),0<i.height&&t.renderAdditionalElements()},renderAdditionalElements:function(){var t=this,r=_.uniqBy(t.strictValues,"formattedValue").length!==t.strictValues.length;t.renderCircles(r),r&&(t.reformatTickText(),t.renderStrictValues())},renderCircles:function(i){var n=this,t=n.chart,a=n.circles,o=n.el,r=n.series,l="right"===n.orientation()?35:-35,e=t.box(),t=t.margins,s=e.height-t.t-t.b-15;a.selectAll("circle").remove(),a.selectAll(".seriesColorLine").remove(),_.forEach(r,function(t,r){var t=t.dataPoint,e=a.append("circle").attr({cx:l,cy:s-7*r,r:5,fill:t.color});a.append("line").attr({x1:l,x2:0,y1:s-7*r,y2:s-7*r,style:"stroke:".concat(t.color,";stroke-width:2"),class:"seriesColorLine"}),i&&e.on("mouseover",function(){o.selectAll(".tick").attr({visibility:"hidden"}),n.chart.svg.append("use").attr({href:"#strictValues".concat(n._id),transform:o.attr("transform")})}).on("mouseout",function(){o.selectAll(".tick").attr({visibility:"visible"}),n.chart.svg.selectAll("use").remove()})})},reformatTickText:function(){var i=this,t=_slicedToArray(i.el.selectAll(".tick").select("text"),1)[0],n=t.length-1;_.forEach(t,function(t,r){var e=String(i.strictValues[r].originalValue);t.innerHTML="<title>".concat(e,"</title>"),0!==r&&r!==n?5<e.length&&(t.innerHTML+="…".concat(e.substr(-2))):t.innerHTML+=e})},renderStrictValues:function(){var i=this,t=i.el,r=_slicedToArray(t.selectAll(".tick"),1)[0],n=_.chain(r).map(function(t){return t.transform.baseVal.consolidate().matrix.f}).sortBy().reverse().value(),r=i.strictValues,a=6.25*Math.max.apply(Math,_toConsumableArray(r.map(function(t){return String(t.originalValue).length})))+20,o="right"===i.orientation()?-a:0;t.selectAll("g[strictValuesFor=".concat(i._id,"]")).remove();var l=t.append("g").attr({visibility:"hidden",strictValuesFor:i._id}).append("g").attr({id:"strictValues".concat(i._id)});_.forEach(r,function(t,r){var e=l.append("g").attr({class:"strictValue",strictValueFor:i._id});e.append("rect").attr({x:o,y:n[r]-10,width:a,height:20}),e.append("text").attr({x:10+o,y:n[r]+3,fill:"white"}).text(t.originalValue)})},labelText:function(){var t,r="",e=this.series;return(r=1===e.length?(t=_slicedToArray(e,1)[0].dataPoint).label+(t.unit?" [".concat(t.unit,"]"):""):_.uniqBy(_.filter(_.map(e,function(t){return t.dataPoint.unit}),_.identity)).join(" / ")).length>this.maxLabelLength?"".concat(r.substring(0,this.maxLabelLength),"…"):r}},t}t.$inject=["c8yChartCommon"],angular.module("c8y.core.measurements2").factory("c8yAxisY",t)})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{function e(
|
|
1
|
+
(()=>{function e(o){function e(e){var t=this;t._id=String(Math.random()).substr(2),e.addItem(t),t.chart=e,t.maxLabelLength=50,t.maxValueUnitLength=30,t.init()}function c(e,t){var a,n,i=o("absoluteDate");return"HOURLY"===e._aggregation?(a=new Date(t),n=new Date(t),a.setMinutes(0,0,0),n.setHours(a.getHours()+1,0,0,0),"".concat(i(a,"mediumDate")," ").concat(i(a,"shortTime")," - ").concat(i(n,"shortTime"))):"MINUTELY"===e._aggregation?(a=new Date(t),n=new Date(t),a.setSeconds(0,0),n.setMinutes(a.getMinutes()+1,0,0),"".concat(i(a,"mediumDate")," ").concat(i(a,"shortTime")," - ").concat(i(n,"shortTime"))):"DAILY"===e._aggregation?i(t,"mediumDate"):i(t)}return e.prototype={tplMain:$('<div class="c8y-chart-hover-box"></div>'),tplTime:$('<div class="clock"><i class="dlt-c8y-icon-clock-o"></i><span class="time"></span></div>'),tplRow:$('\n <div class="series">\n <div class="value-holder"><i class="dlt-c8y-icon-circle"></i><span class="label"></span><span class="value"></span></div>\n <div class="time-holder"><i class="dlt-c8y-icon-clock-o"></i><span class="time"></span></div>\n </div>\n '),init:function(){var t=this,e=$("body"),a=(t.el=$("<div>").append(t.tplMain.clone()).find(".c8y-chart-hover-box"),t.el);t.el.append(t.tplTime.clone()),t.clock=a.find(".clock .time"),t.el.hide(),e.append(a),t.mouseMove=function(e){t._mx=e.pageX,t._my=e.pageY},t.chart.el.on("mousemove",t.mouseMove)},destroy:function(){this.el.remove()},render:function(e){var n=this,t=n.chart.series,i=n.el;i.is(":hidden")||(e&&(e=c(n.chart,e),n.clock.text(e)),_.forEach(t,function(e){var t=e._hoverRow,a=(t||(a=n.tplRow.clone(),e._hoverRow={el:a,circle:a.find(".dlt-c8y-icon-circle"),label:a.find(".label"),value:a.find(".value"),time:a.find(".time")},t=e._hoverRow,a.data("seriedata",e),i.append(a)),t.circle.css({color:e.dataPoint.color}),e.dataPoint.label),a=a.length>n.maxLabelLength?"".concat(a.substring(0,n.maxLabelLength),"…"):a,a=(t.label.text(a),e.hoverValue()),a=a.length>n.maxValueUnitLength?"".concat(a.substring(0,n.maxValueUnitLength),"…"):a;t.value.text(a),"--"!==e.hoverTime()?t.time.text(c(n.chart,e.hoverTime())):t.time.text(e.hoverTime())}),i.find(".series").filter(function(){return!_.includes(t,$(this).data("seriedata"))}).remove())},onMove:function(e,t){var a=this,n=a.chart,i=(_.get(n,"selectedPoint.date")&&!n.mouseIn&&(i=$(n.el).offset(),a._mx=i.left+t+10,a._my=i.top),a.el.width()),t=n.box().width<t+n.margins.l+i,n=window.scrollY+window.innerHeight,i=this.el.outerHeight(),o="auto",c=t?-($("body").width()-a._mx):a._mx+1,l=a._my+20,n=(n<l+i&&(l=n-i),{left:t?o:0,right:t?0:o,transform:"translate(".concat(c,"px,").concat(l,"px)")});a.render(e),a.el.css(n)}},e}e.$inject=["$filter"],angular.module("c8y.core.measurements2").factory("c8yHoverInfo",e)})();
|