@c8y/ng1-modules 1023.37.0 → 1023.42.1

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.
@@ -500,9 +500,6 @@ msgstr "显示选定测量和时间间隔值的线性图(已弃用)"
500
500
  msgid "A list displaying current values for selected measurements"
501
501
  msgstr "显示所选测量的当前值的列表"
502
502
 
503
- msgid "A pie chart displaying current values for selected measurements"
504
- msgstr "显示所选测量的当前值的饼图"
505
-
506
503
  msgid "A problem occurred with microservice subscription."
507
504
  msgstr "微服务预订出现故障。"
508
505
 
@@ -867,9 +864,6 @@ msgstr "添加"
867
864
  msgid "Add Byte Order Mask (for Windows)"
868
865
  msgstr "添加字节序掩码(适用于 Windows)"
869
866
 
870
- msgid "Add CA certificate"
871
- msgstr "新增 CA 憑證"
872
-
873
867
  msgid "Add Header"
874
868
  msgstr "添加頁眉"
875
869
 
@@ -1347,12 +1341,6 @@ msgstr "已添加小組件:{{ widgetList }}。"
1347
1341
  msgid "Adding"
1348
1342
  msgstr "添加"
1349
1343
 
1350
- msgid "Adding a CA certificate lets the app trust certificates from the specified authority, ensuring secure connections."
1351
- msgstr "新增 CA 憑證可讓應用程式信任來自指定機構的憑證,確保安全連線。"
1352
-
1353
- msgid "Adding a CA certificate lets the app trust certificates from the specified authority, ensuring secure connections. Only one certificate is allowed, which is why the button is disabled."
1354
- msgstr "新增 CA 憑證可讓應用程式信任來自指定機構的憑證,確保安全連線。只允許一個憑證,這也是該按鈕為禁用的原因。"
1355
-
1356
1344
  msgid "Additional items not allowed."
1357
1345
  msgstr "不允许附加项目。"
1358
1346
 
@@ -1753,6 +1741,9 @@ msgstr "允許編輯翻譯。"
1753
1741
  msgid "Allows to make basic changes to the tenants branding."
1754
1742
  msgstr "允許對租戶品牌進行基本更改。"
1755
1743
 
1744
+ msgid "Allows to manage feature toggles for the tenant."
1745
+ msgstr "允許管理租戶的功能切换。"
1746
+
1756
1747
  msgid "Allows to monitor and manage the usage of messaging service."
1757
1748
  msgstr "允許監控和管理訊息服務的使用。"
1758
1749
 
@@ -4699,6 +4690,9 @@ msgstr "自訂內容值已儲存。"
4699
4690
  msgid "Custom`application`"
4700
4691
  msgstr "自定义"
4701
4692
 
4693
+ msgid "Custom`strategy`"
4694
+ msgstr "自定义"
4695
+
4702
4696
  msgid "Customer"
4703
4697
  msgstr "客户"
4704
4698
 
@@ -5166,6 +5160,9 @@ msgstr "預設:0 (無限制儲存)"
5166
5160
  msgid "Default: 0 (unlimited validity)"
5167
5161
  msgstr "默认值:0(有效期不限)"
5168
5162
 
5163
+ msgid "Default`strategy`"
5164
+ msgstr "默认"
5165
+
5169
5166
  msgid "Define how the raw value should be transformed before storing in the platform."
5170
5167
  msgstr "定义在平台中存储之前应如何转换原始值。"
5171
5168
 
@@ -5966,6 +5963,9 @@ msgstr "显示考核中心的欢迎消息"
5966
5963
  msgid "Displays current device orientation"
5967
5964
  msgstr "显示当前设备方向"
5968
5965
 
5966
+ msgid "Displays data in a pie chart format."
5967
+ msgstr "以圓餅圖格式显示数据。"
5968
+
5969
5969
  msgid "Displays editable asset notes."
5970
5970
  msgstr "显示可编辑资产备注。"
5971
5971
 
@@ -6951,9 +6951,15 @@ msgstr "刪除端點失敗。"
6951
6951
  msgid "Failed to delete the connection"
6952
6952
  msgstr "无法删除连接"
6953
6953
 
6954
+ msgid "Failed to disable feature."
6955
+ msgstr "失败禁用此功能。"
6956
+
6954
6957
  msgid "Failed to disconnect SIM card from the session."
6955
6958
  msgstr "无法断开 SIM 卡与会话的连接。"
6956
6959
 
6960
+ msgid "Failed to enable feature."
6961
+ msgstr "失败:无法启用此功能。"
6962
+
6957
6963
  msgid "Failed to extract certificate from PKCS12."
6958
6964
  msgstr "从 PKCS12 提取证书失败。"
6959
6965
 
@@ -6987,6 +6993,9 @@ msgstr "注册设备失败"
6987
6993
  msgid "Failed to request export."
6988
6994
  msgstr "请求导出失败。"
6989
6995
 
6996
+ msgid "Failed to reset feature state."
6997
+ msgstr "功能状态重置失败。"
6998
+
6990
6999
  msgid "Failed to retrieve RDB snapshot."
6991
7000
  msgstr "未能检索 RDB 快照。"
6992
7001
 
@@ -7038,9 +7047,27 @@ msgstr "Favicon"
7038
7047
  msgid "Feature"
7039
7048
  msgstr "功能"
7040
7049
 
7050
+ msgid "Feature disabled."
7051
+ msgstr "功能已禁用。"
7052
+
7053
+ msgid "Feature enabled."
7054
+ msgstr "功能已启用。"
7055
+
7056
+ msgid "Feature phases"
7057
+ msgstr "功能階段"
7058
+
7041
7059
  msgid "Feature preview"
7042
7060
  msgstr "功能預覽"
7043
7061
 
7062
+ msgid "Feature reset to default state."
7063
+ msgstr "功能重置為默认状态。"
7064
+
7065
+ msgid "Feature strategies"
7066
+ msgstr "特色功能"
7067
+
7068
+ msgid "Feature toggles"
7069
+ msgstr "功能開關"
7070
+
7044
7071
  msgid "Features"
7045
7072
  msgstr "功能"
7046
7073
 
@@ -7632,6 +7659,9 @@ msgstr "第一页"
7632
7659
  msgid "Fit to assets bounds"
7633
7660
  msgstr "符合资产限制"
7634
7661
 
7662
+ msgid "Fit to bounds"
7663
+ msgstr "適於邊界"
7664
+
7635
7665
  msgid "Fixed IP address"
7636
7666
  msgstr "固定 IP 地址"
7637
7667
 
@@ -7845,6 +7875,12 @@ msgstr "常规"
7845
7875
  msgid "General template"
7846
7876
  msgstr "常规模板"
7847
7877
 
7878
+ msgid "Generally available`feature phase`"
7879
+ msgstr "普遍可用"
7880
+
7881
+ msgid "Generate CA certificate"
7882
+ msgstr "生成CA证书"
7883
+
7848
7884
  msgid "Generate bootstrap server config"
7849
7885
  msgstr "生成 boostrap 服务器配置"
7850
7886
 
@@ -8373,12 +8409,18 @@ msgstr "全局智能规则"
8373
8409
  msgid "Globally available"
8374
8410
  msgstr "全域可用"
8375
8411
 
8412
+ msgid "Go back"
8413
+ msgstr "后退"
8414
+
8376
8415
  msgid "Go to location"
8377
8416
  msgstr "转到位置"
8378
8417
 
8379
8418
  msgid "Go to source"
8380
8419
  msgstr "转到源"
8381
8420
 
8421
+ msgid "Go to start page"
8422
+ msgstr "前往开始页"
8423
+
8382
8424
  msgid "Go to the asset data table"
8383
8425
  msgstr "转到资产数据表"
8384
8426
 
@@ -8669,6 +8711,9 @@ msgstr "标识"
8669
8711
  msgid "If enabled, the CSS will be encapsulated and no platform styling will be applied."
8670
8712
  msgstr "如果启用,CSS 将被封装,不会应用任何平台样式。"
8671
8713
 
8714
+ msgid "If enabled, the zoom level and center bound is always adjusted to fit all assets within the map view."
8715
+ msgstr "若启用此功能,缩放等级与中心范围总是会自动调整,以确保全部资产都能完整显示于地图视图中。"
8716
+
8672
8717
  msgid "If no constraints are set, device protocols are applied at any fitting location on the OPC UA\n"
8673
8718
  " server."
8674
8719
  msgstr "如果未设置约束,将在 OPC UA 服务器上的\n"
@@ -10000,9 +10045,6 @@ msgstr "已创建测量"
10000
10045
  msgid "Measurements received for this data point may be out of sync."
10001
10046
  msgstr "此資料點收到的測量結果可能不同步。"
10002
10047
 
10003
- msgid "Measurements with different units are selected."
10004
- msgstr "已選取具有不同單位的測量值。"
10005
-
10006
10048
  msgid "Mechanism"
10007
10049
  msgstr "机制"
10008
10050
 
@@ -10372,9 +10414,6 @@ msgstr "我的協定"
10372
10414
  msgid "My trackers"
10373
10415
  msgstr "我的跟踪器"
10374
10416
 
10375
- msgid "MyType`DEVICE_TYPE`"
10376
- msgstr "我的类型"
10377
-
10378
10417
  msgid "N/A"
10379
10418
  msgstr "不適用"
10380
10419
 
@@ -10447,8 +10486,8 @@ msgstr "最近测量数据:"
10447
10486
  msgid "Need more filter possibilities?"
10448
10487
  msgstr "需要更多过滤器可能性?"
10449
10488
 
10450
- msgid "Negative measurements received from data point(s): {{ list }}"
10451
- msgstr "从数据点收到的父测量值:{{ list }}"
10489
+ msgid "Negative measurements received from data point(s): {{ datapoints }}"
10490
+ msgstr "从数据点接收到的负向测量值: {{ datapoints }}"
10452
10491
 
10453
10492
  msgid "Netmask"
10454
10493
  msgstr "网络掩码"
@@ -10768,6 +10807,9 @@ msgstr "未找到连接计划。必须通过 LoRa 平台创建新连接计划。
10768
10807
  msgid "No connectivity plans with free slots available. Please contact ThingPark on the device quota limits for your connectivity plans or remove unused devices from ThingPark and retry registering the device in the {{companyName}} platform."
10769
10808
  msgstr "没有可用插槽的连接计划。请联系 ThingPark,了解您的连接计划的设备配额限制,或从 ThingPark 中删除未使用的设备,然后重新尝试在 {{companyName}} 平台中注册该设备。"
10770
10809
 
10810
+ msgid "No content to preview"
10811
+ msgstr "无内容可预览"
10812
+
10771
10813
  msgid "No contracts found. New contracts must be created via the Sigfox platform."
10772
10814
  msgstr "未找到任何合同。新合同必须通过 Sigfox 平台创建。"
10773
10815
 
@@ -10917,6 +10959,9 @@ msgstr "沒有可顯示的擴展。"
10917
10959
  msgid "No external IDs added yet."
10918
10960
  msgstr "尚未添加外部 ID。"
10919
10961
 
10962
+ msgid "No feature toggles available."
10963
+ msgstr "無可用功能切换。"
10964
+
10920
10965
  msgid "No features to display."
10921
10966
  msgstr "没有可显示的功能。"
10922
10967
 
@@ -12074,6 +12119,9 @@ msgstr "包版本 {{version}} 已被删除"
12074
12119
  msgid "Packed decimal"
12075
12120
  msgstr "压缩十进制"
12076
12121
 
12122
+ msgid "Page not found"
12123
+ msgstr "未找到頁面"
12124
+
12077
12125
  msgid "Page size"
12078
12126
  msgstr "页面大小"
12079
12127
 
@@ -12298,6 +12346,9 @@ msgstr "透视相机"
12298
12346
  msgid "Pet tracking"
12299
12347
  msgstr "宠物跟踪"
12300
12348
 
12349
+ msgid "Phase"
12350
+ msgstr "階段"
12351
+
12301
12352
  msgid "Phone Sensor Dashboard"
12302
12353
  msgstr "電話感測器儀錶板"
12303
12354
 
@@ -12316,11 +12367,8 @@ msgstr "电话"
12316
12367
  msgid "PiB"
12317
12368
  msgstr "PiB"
12318
12369
 
12319
- msgid "Pie Chart"
12320
- msgstr "饼图"
12321
-
12322
- msgid "Pie Chart Options"
12323
- msgstr "饼图选项"
12370
+ msgid "Pie chart"
12371
+ msgstr "圓餅圖"
12324
12372
 
12325
12373
  msgid "Placeholder"
12326
12374
  msgstr "占位符"
@@ -12556,6 +12604,9 @@ msgstr "私钥密码不匹配"
12556
12604
  msgid "Private key must be provided when \"Public/private keys\" option is selected."
12557
12605
  msgstr "选择 \"公钥/私钥\" 选项时,必须提供私钥。"
12558
12606
 
12607
+ msgid "Private preview`feature phase`"
12608
+ msgstr "私人预览"
12609
+
12559
12610
  msgid "Private`package availability`"
12560
12611
  msgstr "私有"
12561
12612
 
@@ -12691,6 +12742,9 @@ msgstr "公钥发现 URL"
12691
12742
  msgid "Public key in PEM format"
12692
12743
  msgstr "PEM 格式的公钥"
12693
12744
 
12745
+ msgid "Public preview`feature phase`"
12746
+ msgstr "公开预览"
12747
+
12694
12748
  msgid "Public/private keys"
12695
12749
  msgstr "公钥/私钥"
12696
12750
 
@@ -13447,6 +13501,9 @@ msgstr "重置搜索"
13447
13501
  msgid "Reset shades"
13448
13502
  msgstr "重置陰影"
13449
13503
 
13504
+ msgid "Reset the toggle to the default state depending on the phase"
13505
+ msgstr "根据阶段将切换闸重置为默认状态"
13506
+
13450
13507
  msgid "Reset to default plugins"
13451
13508
  msgstr "重置為默認外掛程式"
13452
13509
 
@@ -14402,6 +14459,9 @@ msgstr "選取的資料點範本"
14402
14459
  msgid "Selected data points"
14403
14460
  msgstr "所选数据点"
14404
14461
 
14462
+ msgid "Selected data points have different units."
14463
+ msgstr "选择的数据点具有不同的单位。"
14464
+
14405
14465
  msgid "Selected events"
14406
14466
  msgstr "選定事件"
14407
14467
 
@@ -15180,6 +15240,15 @@ msgstr "顯示"
15180
15240
  msgid "Show \"Software changes\""
15181
15241
  msgstr "顯示\"软件更改\""
15182
15242
 
15243
+ msgid "Show Labels"
15244
+ msgstr "显示标籤"
15245
+
15246
+ msgid "Show Legend"
15247
+ msgstr "显示图例"
15248
+
15249
+ msgid "Show Tooltips"
15250
+ msgstr "显示工具提示"
15251
+
15183
15252
  msgid "Show advanced options"
15184
15253
  msgstr "顯示高級选项"
15185
15254
 
@@ -15279,9 +15348,6 @@ msgstr "顯示以下类型的项:"
15279
15348
  msgid "Show labels and units"
15280
15349
  msgstr "顯示標籤和單位"
15281
15350
 
15282
- msgid "Show legend"
15283
- msgstr "顯示图例"
15284
-
15285
15351
  msgid "Show more"
15286
15352
  msgstr "顯示更多"
15287
15353
 
@@ -15297,9 +15363,6 @@ msgstr "只顯示最新版本的外掛程式"
15297
15363
  msgid "Show password"
15298
15364
  msgstr "顯示密碼"
15299
15365
 
15300
- msgid "Show percentages"
15301
- msgstr "顯示百分比"
15302
-
15303
15366
  msgid "Show readme"
15304
15367
  msgstr "顯示 readme"
15305
15368
 
@@ -15324,9 +15387,6 @@ msgstr "顯示摘要"
15324
15387
  msgid "Show timestamp"
15325
15388
  msgstr "顯示时间戳"
15326
15389
 
15327
- msgid "Show tooltips"
15328
- msgstr "顯示工具提示"
15329
-
15330
15390
  msgid "Show track"
15331
15391
  msgstr "顯示路徑"
15332
15392
 
@@ -15820,6 +15880,9 @@ msgstr "存储配额 (MB)"
15820
15880
  msgid "Store up to {{ versionHistoryLimit }} dashboard versions. Any additional versions will replace/delete older ones"
15821
15881
  msgstr "最多存儲 {{ versionHistoryLimit }} 個儀表板版本。任何額外版本都將替換/刪除舊版本"
15822
15882
 
15883
+ msgid "Strategy"
15884
+ msgstr "策略"
15885
+
15823
15886
  msgid "Streaming Analytics"
15824
15887
  msgstr "流分析"
15825
15888
 
@@ -16361,6 +16424,9 @@ msgstr "Administration 應用程式使帳戶管理員能夠管理其用戶、角
16361
16424
  msgid "The CA certificate has not been renewed; however, it may still have sufficient validity remaining."
16362
16425
  msgstr "CA 证书尚未更新;然而,其剩餘有效期可能仍足夠。"
16363
16426
 
16427
+ msgid "The Certificate Authority (CA) certificate is used to sign device certificates for secure authentication. Only one CA certificate can be generated for the tenant."
16428
+ msgstr "憑證授權單位 (CA) 证书使用于签署设备证书以实现安全身份验证。每个租户仅能生成一张 CA 证书。"
16429
+
16364
16430
  msgid "The Cockpit application allows you to build IoT applications in minutes.\n"
16365
16431
  " To get started, connect any device to the platform.\n"
16366
16432
  " If you do not have an IoT device to hand, you can start by connecting your smartphone.\n"
@@ -16532,6 +16598,21 @@ msgstr "外部 ID 链接设备信息和物理世界(例如,序列号、IMEI
16532
16598
  msgid "The feature \"Ignore case when logging in\" is not available."
16533
16599
  msgstr "”登錄時忽略大小寫” 功能不可用。"
16534
16600
 
16601
+ msgid "The feature is available for public preview and can be used by all users. It is disabled by default."
16602
+ msgstr "此功能現已開放公眾预览,全部用户均可使用。默认状态为禁用。"
16603
+
16604
+ msgid "The feature is generally available and can be used by all users. It is enabled by default."
16605
+ msgstr "此功能已全面開放,全部用户皆可使用。默认启用状态。"
16606
+
16607
+ msgid "The feature is in private preview and available to a selected set of users. It is disabled by default."
16608
+ msgstr "此功能目前處於私人预览阶段,僅開放給特定用户群使用。默认状态下禁用。"
16609
+
16610
+ msgid "The feature toggle has been customized. When the phase of the feature changes, the custom state remains unchanged."
16611
+ msgstr "功能切换开关已进行自定义设置。当功能阶段更改时,自定义状态将维持不变。"
16612
+
16613
+ msgid "The feature toggle is using the default state based on its phase."
16614
+ msgstr "功能切换会根据其阶段使用默认状态。"
16615
+
16535
16616
  msgid "The file is empty."
16536
16617
  msgstr "文件为空。"
16537
16618
 
@@ -16648,6 +16729,9 @@ msgstr "該套件已被擁有者標示為停止維護而歸檔。\n"
16648
16729
  msgid "The package was marked by the author as archived."
16649
16730
  msgstr "該套件已被作者標示為已歸檔。"
16650
16731
 
16732
+ msgid "The page you are looking for does not exist or you do not have permission to access it."
16733
+ msgstr "您所尋找的頁面不存在,或您沒有权限存取該頁面。"
16734
+
16651
16735
  msgid "The password of the user that you are currently logged in with."
16652
16736
  msgstr "您当前用于登录的用户的密码。"
16653
16737
 
@@ -17201,6 +17285,9 @@ msgstr "切换下拉列表"
17201
17285
  msgid "Toggle help text"
17202
17286
  msgstr "切换帮助文本"
17203
17287
 
17288
+ msgid "Toggle key"
17289
+ msgstr "切换键"
17290
+
17204
17291
  msgid "Toggle maintenance mode"
17205
17292
  msgstr "切换维护模式"
17206
17293
 
@@ -17852,6 +17939,9 @@ msgstr "上传包含私钥和证书的 PKCS #12 (.pk12) 文件。"
17852
17939
  msgid "Upload a binary"
17853
17940
  msgstr "上传二进制文件"
17854
17941
 
17942
+ msgid "Upload a file or provide a URL to see the preview"
17943
+ msgstr "上传文件或提供网址以查看预览"
17944
+
17855
17945
  msgid "Upload a new version"
17856
17946
  msgstr "上传新版本"
17857
17947
 
@@ -19381,6 +19471,9 @@ msgstr "c8y_EnergyCounter"
19381
19471
  msgid "c8y_GeofenceAlarm"
19382
19472
  msgstr "c8y_GeofenceAlarm"
19383
19473
 
19474
+ msgid "c8y_MQTTDevice`DEVICE_TYPE`"
19475
+ msgstr "c8y_MQTT裝置"
19476
+
19384
19477
  msgid "c8y_MissingMeasurementsAlarm"
19385
19478
  msgstr "c8y_MissingMeasurementsAlarm"
19386
19479
 
@@ -20317,6 +20410,9 @@ msgstr "x509"
20317
20410
  msgid "yellow"
20318
20411
  msgstr "黄色"
20319
20412
 
20413
+ msgid "{{ 'Feature toggles' | translate }}"
20414
+ msgstr "{{ 'Feature toggles' | translate }}"
20415
+
20320
20416
  msgid "{{ appName | translate }} (public)"
20321
20417
  msgstr "{{ appName | translate }}(公共)"
20322
20418
 
@@ -1 +1 @@
1
- (()=>{function e(o,e,t,a,n,i){o.onRealtimeAlarmFn=function(e){o.onAlarm=e},o.onRealtimeEventFn=function(e){o.onEvent=e};var c,d=200,l=!0;function h(e,t,i){!1!==o.child.config.updateDates&&(o.child.config.dateFrom=e,!o.child.config.widgetInstanceGlobalTimeContext&&o.viewRealtime&&i===n.onDragEnd&&(o.viewRealtime=!1),o.child.config.dateTo=t)}function s(){var e,t,i,n;o.child&&o.child.config&&(e=(i=o.child.config).interval,i=i.realtime,e)&&(e!==a.custom.id||i)&&(e===a.custom.id&&i?(i=new Date(o.child.config.dateFrom),i=new Date(o.child.config.dateTo)-i,n=moment(),o.child.config.dateTo=n.toDate(),o.child.config.dateFrom=n.subtract(i,"milliseconds").toDate()):(t=e,(n=_.find(a.intervals,function(e){return e.id===t})||{}).qty&&(o.child.config.dateFrom=moment().subtract(n.qty,n.unit).toDate(),o.child.config.dateTo=moment().toDate())))}function r(){var e=t.height();_.isUndefined(_.get(c,"height"))||(e-=c.height),o.dataPointsGraphHeight=_.max([d,e])}function g(){e(function(){o.$broadcast("dashboardResize")},500)}function f(e,t){o.alarmsEventsTimeline=o.alarmsEventsTimeline||{},o.alarmsEventsTimeline.displayedDateFrom=e,o.alarmsEventsTimeline.displayedDateTo=t}function m(e){return _(e).map(function(e){return e.__target.id}).uniq().value().join(",")}o.isLoading=!1,o.widgetControls={supports:["dateTimeContext","isAutoRefreshEnabled","displayMode","refreshInterval","refreshOption","aggregation"],configSettings:{dashboard:{live:{},history:{}},config:{live:{showAutoRefresh:!0,showRefreshInterval:!0,showTimeContext:!0},history:{showAggregation:!0,showTimeContext:!0}},view_and_config:{live:{showAutoRefresh:!0,showRefreshInterval:!0,showTimeContext:!0},history:{showAggregation:!0,showTimeContext:!0}}},settings:{dashboard:{live:{showAutoRefresh:!0,showTimeContext:!0,showRefreshInterval:!0},history:{showTimeContext:!0,showAggregation:!0}},config:{live:{showAutoRefresh:!0},history:{showTimeContext:!0}},view_and_config:{live:{showAutoRefresh:!0,showRefresh:!1,showRefreshInterval:!0,showTimeContext:!0},history:{showTimeContext:!0,showAggregation:!0}}},defaultLinks:{dashboard:{live:{dateTimeContext:!0,isAutoRefreshEnabled:!0},history:{dateTimeContext:!0,aggregation:!0}},config:{},view_and_config:{}},stateHandlers:{}},o.onUpdateDates=h,o.onUpdateDisplayedDates=f,o.onLoading=function(e){o.isLoading=e},o.onGlobalContextChange=function(e){o.child.config.realtime="live"===e.context.refreshOption&&e.context.isAutoRefreshEnabled&&5e3===e.context.refreshInterval,o.child.config.widgetInstanceGlobalTimeContext&&l||o.child.config.realtime&&o.child.config.widgetInstanceGlobalTimeContext&&!l&&e.diff.dateTimeContext.interval?(l=!1,Object.assign(o.child.config,e.context),e.context.dateTimeContext&&(o.child.config.dateFrom=e.context.dateTimeContext.dateFrom,o.child.config.dateTo=e.context.dateTimeContext.dateTo,o.child.config.interval=e.context.dateTimeContext.interval)):o.child.config.realtime||(Object.assign(o.child.config,e.context),e.context.dateTimeContext&&(o.child.config.dateFrom=e.context.dateTimeContext.dateFrom,o.child.config.dateTo=e.context.dateTimeContext.dateTo,o.child.config.interval=e.context.dateTimeContext.interval))},o.onBoxChanged=function(e){o.chartBox=e},o.onTimelinesChartSizeChanged=function(e){c=e,r(),g()},o.dataPointsGraphHeight=t.height(),o.viewRealtime=o.child&&o.child.config&&o.child.config.realtime,o.child&&o.child.config&&(i=i.migrateWidgetConfig(o.child.config),Object.assign(o.child.config,i)),o.dashboardChild=o.dashboardChildForLegacy,o.onRealtimeToggle=function(){o.viewRealtime=!o.viewRealtime},o.recalculate=s,s(),o.$watch("child.config.datapoints",function(e){e=m(e);o.channel=e?"/measurements/".concat(e):""}),o.$watch("child.config.alarmsEventsConfigs",function(e){e=m(e);o.alarmsChannel=e?"/alarms/".concat(e):"",o.eventsChannel=e?"/events/".concat(e):""}),o.$watchCollection(["child.config.dateFrom","child.config.dateTo"],function(){f(o.child.config.dateFrom,o.child.config.dateTo)}),o.$watch("child.config.dateTimeContext",function(e){o.child.config.widgetInstanceGlobalTimeContext&&e&&e.dateFrom&&e.dateTo&&h(new Date(e.dateFrom),new Date(e.dateTo))},!0),o.$watch("child.config.realtime",function(){o.viewRealtime=o.child&&o.child.config&&o.child.config.realtime}),o.$on("dashboardResize",function(e){(e.targetScope!==o?g:r)()})}e.$inject=["$scope","$timeout","$element","INTERVAL_CONSTANTS","X_AXIS_CONSTANTS","c8yWidgetConfigMigrationService"],angular.module("c8y.cockpit.dataPointExplorer").controller("DataPointWidgetCtrl",e)})();
1
+ (()=>{function e(c,e,i,a,d,t){c.onRealtimeAlarmFn=function(e){c.onAlarm=e},c.onRealtimeEventFn=function(e){c.onEvent=e};var n,o=200;function l(){var e,i,t,n;c.child&&c.child.config&&(e=(t=c.child.config).interval,t=t.realtime,e)&&(e!==a.custom.id||t)&&(e===a.custom.id&&t?(t=new Date(c.child.config.dateFrom),t=new Date(c.child.config.dateTo)-t,n=moment(),c.child.config.dateTo=n.toDate(),c.child.config.dateFrom=n.subtract(t,"milliseconds").toDate()):(i=e,(n=_.find(a.intervals,function(e){return e.id===i})||{}).qty&&(c.child.config.dateFrom=moment().subtract(n.qty,n.unit).toDate(),c.child.config.dateTo=moment().toDate())))}function r(){var e=i.height();_.isUndefined(_.get(n,"height"))||(e-=n.height),c.dataPointsGraphHeight=_.max([o,e])}function g(){e(function(){c.$broadcast("dashboardResize")},500)}function s(e,i){c.alarmsEventsTimeline=c.alarmsEventsTimeline||{},c.alarmsEventsTimeline.displayedDateFrom=e,c.alarmsEventsTimeline.displayedDateTo=i}function h(e){return _(e).map(function(e){return e.__target.id}).uniq().value().join(",")}c.isLoading=!1,c.widgetControlsPreset={dashboard:["liveTime","historyTime","autoRefresh","aggregation"],config:["autoRefresh"],view_and_config:["liveTime","historyTime","autoRefresh","aggregation"]},c.onUpdateDates=function(e,i,t){var n,a,o;!1===c.child.config.updateDates||(n=t===d.onDragEnd,a="dashboard"===c.child.config.displayMode,!t&&a&&c.viewRealtime)||(a&&n?(t=e instanceof Date?e.toISOString():e,a=i instanceof Date?i.toISOString():i,o={dateFrom:t,dateTo:a,interval:"custom"},window.dispatchEvent(new CustomEvent("UPDATE_GLOBAL_CONTEXT_HISTORY",{detail:{type:"UPDATE_GLOBAL_CONTEXT_HISTORY",payload:{dateTimeContext:o,isAutoRefreshEnabled:!1,aggregation:c.child.config.aggregation||null,source:"widget"},timestamp:Date.now()}})),c.viewRealtime=!1,c.child.config=Object.assign({},c.child.config,{dateFrom:t,dateTo:a,dateTimeContext:o,isAutoRefreshEnabled:!1,interval:"custom",realtime:!1,refreshOption:"history"})):c.viewRealtime&&n?(c.viewRealtime=!1,c.child.config=Object.assign({},c.child.config,{dateFrom:e,dateTo:i,isAutoRefreshEnabled:!1,realtime:!1})):(c.child.config.dateFrom=e,c.child.config.dateTo=i))},c.onUpdateDisplayedDates=s,c.onLoading=function(e){c.isLoading=e},c.onConfigChange=function(e){var e=e.context,e={dateTimeContext:e.dateTimeContext,refreshOption:e.refreshOption,isAutoRefreshEnabled:e.isAutoRefreshEnabled,refreshInterval:e.refreshInterval,aggregation:e.aggregation},i=Object.assign({},c.child.config,e);e.dateTimeContext&&(i.dateFrom=e.dateTimeContext.dateFrom,i.dateTo=e.dateTimeContext.dateTo,i.interval=e.dateTimeContext.interval);var e="live"===i.refreshOption,t=!1!==i.isAutoRefreshEnabled;i.realtime=e&&t,c.child.config=i,c.viewRealtime=i.realtime},c.onRefresh=function(){l()},c.onLinkedChange=function(){g()},c.onBoxChanged=function(e){c.chartBox=e},c.onTimelinesChartSizeChanged=function(e){n=e,r(),g()},c.dataPointsGraphHeight=i.height(),c.viewRealtime=c.child&&c.child.config&&c.child.config.realtime,c.child&&c.child.config&&(t=t.migrateWidgetConfig(c.child.config),Object.assign(c.child.config,t)),c.dashboardChild=c.dashboardChildForLegacy,c.onRealtimeToggle=function(){c.viewRealtime=!c.viewRealtime},c.recalculate=l,l(),c.$watch("child.config.datapoints",function(e){e=h(e);c.channel=e?"/measurements/".concat(e):""}),c.$watch("child.config.alarmsEventsConfigs",function(e){e=h(e);c.alarmsChannel=e?"/alarms/".concat(e):"",c.eventsChannel=e?"/events/".concat(e):""}),c.$watchCollection(["child.config.dateFrom","child.config.dateTo"],function(){s(c.child.config.dateFrom,c.child.config.dateTo)}),c.$watch("child.config.realtime",function(){c.viewRealtime=c.child&&c.child.config&&c.child.config.realtime}),c.$on("dashboardResize",function(e){(e.targetScope!==c?g:r)()})}e.$inject=["$scope","$timeout","$element","INTERVAL_CONSTANTS","X_AXIS_CONSTANTS","c8yWidgetConfigMigrationService"],angular.module("c8y.cockpit.dataPointExplorer").controller("DataPointWidgetCtrl",e)})();
@@ -3,16 +3,27 @@
3
3
  ng-controller="DataPointWidgetCtrl"
4
4
  ng-init="disableLocalStorage = true"
5
5
  >
6
- <c8y-global-context-widget-wrapper
6
+ <c8y-global-context-connector
7
7
  ng-style="{ 'z-index': 11 }"
8
- ng-if="child.config.datapoints.length > 0 && widgetControls"
9
- [display-mode]="'inline'"
10
- (global-context-change)="onGlobalContextChange($event)"
11
- [widget-controls]="widgetControls"
8
+ ng-if="child.config.datapoints.length > 0 && child.config.displayMode === 'dashboard'"
9
+ [controls]="widgetControlsPreset"
12
10
  [config]="child.config"
13
11
  [is-loading]="isLoading"
14
- [dashboard-child-for-legacy]="dashboardChild"
15
- ></c8y-global-context-widget-wrapper>
12
+ [dashboard-child]="dashboardChild"
13
+ [emit-refresh]="false"
14
+ (config-change)="onConfigChange($event)"
15
+ (refresh)="onRefresh()"
16
+ (linked-change)="onLinkedChange($event)"
17
+ ></c8y-global-context-connector>
18
+ <c8y-local-controls
19
+ ng-if="child.config.datapoints.length > 0 && (child.config.displayMode === 'config' || child.config.displayMode === 'view_and_config')"
20
+ [controls]="widgetControlsPreset"
21
+ [display-mode]="child.config.displayMode"
22
+ [config]="child.config"
23
+ [is-loading]="isLoading"
24
+ (config-change)="onConfigChange($event)"
25
+ (refresh)="onRefresh()"
26
+ ></c8y-local-controls>
16
27
  <c8y-realtime-button
17
28
  ng-show="false"
18
29
  channel="{{ channel }}"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c8y/ng1-modules",
3
- "version": "1023.37.0",
3
+ "version": "1023.42.1",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Cumulocity",
6
6
  "description": "AngularJS modules for Cumulocity IoT applications.",