@flexem/fc-gui 3.0.0-alpha.106 → 3.0.0-alpha.108

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/CHANGELOG.md CHANGED
@@ -471,7 +471,12 @@
471
471
  #### Features
472
472
  1. FLEXCLOUD-3086 历史曲线可以设置筛选的背景颜色
473
473
 
474
- ## 3.0.0-alpha.106(2024-04-10)
474
+ ## 3.0.0-alpha.107(2024-04-10)
475
475
  ### Web端
476
476
  #### Features
477
- 1. FLEXCLOUD-3269 由于历史曲线使用d3绘制,数据量过多或者通道较多时导致安卓端操作较卡顿
477
+ 1. FLEXCLOUD-3269 由于历史曲线使用d3绘制,数据量过多或者通道较多时导致安卓端操作较卡顿
478
+
479
+ ## 3.0.0-alpha.108(2024-05-15)
480
+ ### Web端
481
+ #### Features
482
+ 1. FLEXCLOUD-3288 云组态时间元件支持更改时区
@@ -36201,6 +36201,566 @@ class graph_state_element_GraphStateElement {
36201
36201
  }
36202
36202
  }
36203
36203
 
36204
+ // CONCATENATED MODULE: ./.tmp/elements/datetime-display/time-zone-select-json.ts
36205
+ /**
36206
+ * 导出时区json
36207
+ */
36208
+ const timeZoneOptions = [
36209
+ {
36210
+ key: '',
36211
+ utcoffset: '08:00'
36212
+ },
36213
+ {
36214
+ key: 'Dateline Standard Time',
36215
+ utcoffset: '-12:00'
36216
+ },
36217
+ {
36218
+ key: 'UTC-11',
36219
+ utcoffset: '-11:00'
36220
+ },
36221
+ {
36222
+ key: 'Aleutian Standard Time',
36223
+ utcoffset: '-10:00'
36224
+ },
36225
+ {
36226
+ key: 'Hawaiian Standard Time',
36227
+ utcoffset: '-10:00'
36228
+ },
36229
+ {
36230
+ key: 'Marquesas Standard Time',
36231
+ utcoffset: '-09:30'
36232
+ },
36233
+ {
36234
+ key: 'Alaskan Standard Time',
36235
+ utcoffset: '-09:00'
36236
+ },
36237
+ {
36238
+ key: 'UTC-09',
36239
+ utcoffset: '-09:00'
36240
+ },
36241
+ {
36242
+ key: 'Pacific Standard Time (Mexico)',
36243
+ utcoffset: '-08:00'
36244
+ },
36245
+ {
36246
+ key: 'Pacific Standard Time',
36247
+ utcoffset: '-08:00'
36248
+ },
36249
+ {
36250
+ key: 'UTC-08',
36251
+ utcoffset: '-08:00'
36252
+ },
36253
+ {
36254
+ key: 'Mountain Standard Time (Mexico)',
36255
+ utcoffset: '-07:00'
36256
+ },
36257
+ {
36258
+ key: 'Mountain Standard Time',
36259
+ utcoffset: '-07:00'
36260
+ },
36261
+ {
36262
+ key: 'US Mountain Standard Time',
36263
+ utcoffset: '-07:00'
36264
+ },
36265
+ {
36266
+ key: 'Canada Central Standard Time',
36267
+ utcoffset: '-06:00'
36268
+ },
36269
+ {
36270
+ key: 'Central America Standard Time',
36271
+ utcoffset: '-06:00'
36272
+ },
36273
+ {
36274
+ key: 'Central Standard Time (Mexico)',
36275
+ utcoffset: '-06:00'
36276
+ },
36277
+ {
36278
+ key: 'Central Standard Time',
36279
+ utcoffset: '-06:00'
36280
+ },
36281
+ {
36282
+ key: 'Easter Island Standard Time',
36283
+ utcoffset: '-06:00'
36284
+ },
36285
+ {
36286
+ key: 'Cuba Standard Time',
36287
+ utcoffset: '-05:00'
36288
+ },
36289
+ {
36290
+ key: 'Eastern Standard Time (Mexico)',
36291
+ utcoffset: '-05:00'
36292
+ },
36293
+ {
36294
+ key: 'Eastern Standard Time',
36295
+ utcoffset: '-05:00'
36296
+ },
36297
+ {
36298
+ key: 'Haiti Standard Time',
36299
+ utcoffset: '-05:00'
36300
+ },
36301
+ {
36302
+ key: 'SA Pacific Standard Time',
36303
+ utcoffset: '-05:00'
36304
+ },
36305
+ {
36306
+ key: 'Turks And Caicos Standard Time',
36307
+ utcoffset: '-05:00'
36308
+ },
36309
+ {
36310
+ key: 'US Eastern Standard Time',
36311
+ utcoffset: '-05:00'
36312
+ },
36313
+ {
36314
+ key: 'Atlantic Standard Time',
36315
+ utcoffset: '-04:00'
36316
+ },
36317
+ {
36318
+ key: 'Central Brazilian Standard Time',
36319
+ utcoffset: '-04:00'
36320
+ },
36321
+ {
36322
+ key: 'Pacific SA Standard Time',
36323
+ utcoffset: '-04:00'
36324
+ },
36325
+ {
36326
+ key: 'Paraguay Standard Time',
36327
+ utcoffset: '-04:00'
36328
+ },
36329
+ {
36330
+ key: 'SA Western Standard Time',
36331
+ utcoffset: '-04:00'
36332
+ },
36333
+ {
36334
+ key: 'Venezuela Standard Time',
36335
+ utcoffset: '-04:00'
36336
+ },
36337
+ {
36338
+ key: 'Newfoundland Standard Time',
36339
+ utcoffset: '-03:30'
36340
+ },
36341
+ {
36342
+ key: 'Argentina Standard Time',
36343
+ utcoffset: '-03:00'
36344
+ },
36345
+ {
36346
+ key: 'Bahia Standard Time',
36347
+ utcoffset: '-03:00'
36348
+ },
36349
+ {
36350
+ key: 'E. South America Standard Time',
36351
+ utcoffset: '-03:00'
36352
+ },
36353
+ {
36354
+ key: 'Greenland Standard Time',
36355
+ utcoffset: '-03:00'
36356
+ },
36357
+ {
36358
+ key: 'Magallanes Standard Time',
36359
+ utcoffset: '-03:00'
36360
+ },
36361
+ {
36362
+ key: 'Montevideo Standard Time',
36363
+ utcoffset: '-03:00'
36364
+ },
36365
+ {
36366
+ key: 'SA Eastern Standard Time',
36367
+ utcoffset: '-03:00'
36368
+ },
36369
+ {
36370
+ key: 'Saint Pierre Standard Time',
36371
+ utcoffset: '-03:00'
36372
+ },
36373
+ {
36374
+ key: 'Tocantins Standard Time',
36375
+ utcoffset: '-03:00'
36376
+ },
36377
+ {
36378
+ key: 'Mid-Atlantic Standard Time',
36379
+ utcoffset: '-02:00'
36380
+ },
36381
+ {
36382
+ key: 'UTC-02',
36383
+ utcoffset: '-02:00'
36384
+ },
36385
+ {
36386
+ key: 'Azores Standard Time',
36387
+ utcoffset: '-01:00'
36388
+ },
36389
+ {
36390
+ key: 'Cape Verde Standard Time',
36391
+ utcoffset: '-01:00'
36392
+ },
36393
+ {
36394
+ key: 'GMT Standard Time',
36395
+ utcoffset: '+00:00'
36396
+ },
36397
+ {
36398
+ key: 'Greenwich Standard Time',
36399
+ utcoffset: '+00:00'
36400
+ },
36401
+ {
36402
+ key: 'Morocco Standard Time',
36403
+ utcoffset: '+01:00'
36404
+ },
36405
+ {
36406
+ key: 'Sao Tome Standard Time',
36407
+ utcoffset: '+00:00'
36408
+ },
36409
+ {
36410
+ key: 'UTC',
36411
+ utcoffset: '+00:00'
36412
+ },
36413
+ {
36414
+ key: 'Central Europe Standard Time',
36415
+ utcoffset: '+01:00'
36416
+ },
36417
+ {
36418
+ key: 'Central European Standard Time',
36419
+ utcoffset: '+01:00'
36420
+ },
36421
+ {
36422
+ key: 'Romance Standard Time',
36423
+ utcoffset: '+01:00'
36424
+ },
36425
+ {
36426
+ key: 'W. Central Africa Standard Time',
36427
+ utcoffset: '+01:00'
36428
+ },
36429
+ {
36430
+ key: 'W. Europe Standard Time',
36431
+ utcoffset: '+01:00'
36432
+ },
36433
+ {
36434
+ key: 'E. Europe Standard Time',
36435
+ utcoffset: '+02:00'
36436
+ },
36437
+ {
36438
+ key: 'Egypt Standard Time',
36439
+ utcoffset: '+02:00'
36440
+ },
36441
+ {
36442
+ key: 'FLE Standard Time',
36443
+ utcoffset: '+02:00'
36444
+ },
36445
+ {
36446
+ key: 'GTB Standard Time',
36447
+ utcoffset: '+02:00'
36448
+ },
36449
+ {
36450
+ key: 'Israel Standard Time',
36451
+ utcoffset: '+02:00'
36452
+ },
36453
+ {
36454
+ key: 'Jordan Standard Time',
36455
+ utcoffset: '+02:00'
36456
+ },
36457
+ {
36458
+ key: 'Kaliningrad Standard Time',
36459
+ utcoffset: '+02:00'
36460
+ },
36461
+ {
36462
+ key: 'Libya Standard Time',
36463
+ utcoffset: '+02:00'
36464
+ },
36465
+ {
36466
+ key: 'Middle East Standard Time',
36467
+ utcoffset: '+02:00'
36468
+ },
36469
+ {
36470
+ key: 'Namibia Standard Time',
36471
+ utcoffset: '+02:00'
36472
+ },
36473
+ {
36474
+ key: 'South Africa Standard Time',
36475
+ utcoffset: '+02:00'
36476
+ },
36477
+ {
36478
+ key: 'Sudan Standard Time',
36479
+ utcoffset: '+02:00'
36480
+ },
36481
+ {
36482
+ key: 'Syria Standard Time',
36483
+ utcoffset: '+02:00'
36484
+ },
36485
+ {
36486
+ key: 'West Bank Standard Time',
36487
+ utcoffset: '+02:00'
36488
+ },
36489
+ {
36490
+ key: 'Arab Standard Time',
36491
+ utcoffset: '+03:00'
36492
+ },
36493
+ {
36494
+ key: 'Arabic Standard Time',
36495
+ utcoffset: '+03:00'
36496
+ },
36497
+ {
36498
+ key: 'Belarus Standard Time',
36499
+ utcoffset: '+03:00'
36500
+ },
36501
+ {
36502
+ key: 'E. Africa Standard Time',
36503
+ utcoffset: '+03:00'
36504
+ },
36505
+ {
36506
+ key: 'Russian Standard Time',
36507
+ utcoffset: '+03:00'
36508
+ },
36509
+ {
36510
+ key: 'Turkey Standard Time',
36511
+ utcoffset: '+03:00'
36512
+ },
36513
+ {
36514
+ key: 'Iran Standard Time',
36515
+ utcoffset: '+03:30'
36516
+ },
36517
+ {
36518
+ key: 'Arabian Standard Time',
36519
+ utcoffset: '+04:00'
36520
+ },
36521
+ {
36522
+ key: 'Astrakhan Standard Time',
36523
+ utcoffset: '+04:00'
36524
+ },
36525
+ {
36526
+ key: 'Azerbaijan Standard Time',
36527
+ utcoffset: '+04:00'
36528
+ },
36529
+ {
36530
+ key: 'Caucasus Standard Time',
36531
+ utcoffset: '+04:00'
36532
+ },
36533
+ {
36534
+ key: 'Georgian Standard Time',
36535
+ utcoffset: '+04:00'
36536
+ },
36537
+ {
36538
+ key: 'Mauritius Standard Time',
36539
+ utcoffset: '+04:00'
36540
+ },
36541
+ {
36542
+ key: 'Russia Time Zone 3',
36543
+ utcoffset: '+04:00'
36544
+ },
36545
+ {
36546
+ key: 'Saratov Standard Time',
36547
+ utcoffset: '+04:00'
36548
+ },
36549
+ {
36550
+ key: 'Afghanistan Standard Time',
36551
+ utcoffset: '+04:30'
36552
+ },
36553
+ {
36554
+ key: 'Ekaterinburg Standard Time',
36555
+ utcoffset: '+05:00'
36556
+ },
36557
+ {
36558
+ key: 'Pakistan Standard Time',
36559
+ utcoffset: '+05:00'
36560
+ },
36561
+ {
36562
+ key: 'West Asia Standard Time',
36563
+ utcoffset: '+05:00'
36564
+ },
36565
+ {
36566
+ key: 'India Standard Time',
36567
+ utcoffset: '+05:30'
36568
+ },
36569
+ {
36570
+ key: 'Sri Lanka Standard Time',
36571
+ utcoffset: '+05:30'
36572
+ },
36573
+ {
36574
+ key: 'Nepal Standard Time',
36575
+ utcoffset: '+05:45'
36576
+ },
36577
+ {
36578
+ key: 'Bangladesh Standard Time',
36579
+ utcoffset: '+06:00'
36580
+ },
36581
+ {
36582
+ key: 'Central Asia Standard Time',
36583
+ utcoffset: '+06:00'
36584
+ },
36585
+ {
36586
+ key: 'Omsk Standard Time',
36587
+ utcoffset: '+06:00'
36588
+ },
36589
+ {
36590
+ key: 'Myanmar Standard Time',
36591
+ utcoffset: '+06:30'
36592
+ },
36593
+ {
36594
+ key: 'Altai Standard Time',
36595
+ utcoffset: '+07:00'
36596
+ },
36597
+ {
36598
+ key: 'N. Central Asia Standard Time',
36599
+ utcoffset: '+07:00'
36600
+ },
36601
+ {
36602
+ key: 'North Asia Standard Time',
36603
+ utcoffset: '+07:00'
36604
+ },
36605
+ {
36606
+ key: 'SE Asia Standard Time',
36607
+ utcoffset: '+07:00'
36608
+ },
36609
+ {
36610
+ key: 'Tomsk Standard Time',
36611
+ utcoffset: '+07:00'
36612
+ },
36613
+ {
36614
+ key: 'W. Mongolia Standard Time',
36615
+ utcoffset: '+07:00'
36616
+ },
36617
+ {
36618
+ key: 'China Standard Time',
36619
+ utcoffset: '+08:00'
36620
+ },
36621
+ {
36622
+ key: 'North Asia East Standard Time',
36623
+ utcoffset: '+08:00'
36624
+ },
36625
+ {
36626
+ key: 'Singapore Standard Time',
36627
+ utcoffset: '+08:00'
36628
+ },
36629
+ {
36630
+ key: 'Taipei Standard Time',
36631
+ utcoffset: '+08:00'
36632
+ },
36633
+ {
36634
+ key: 'Ulaanbaatar Standard Time',
36635
+ utcoffset: '+08:00'
36636
+ },
36637
+ {
36638
+ key: 'W. Australia Standard Time',
36639
+ utcoffset: '+08:00'
36640
+ },
36641
+ {
36642
+ key: 'Aus Central W. Standard Time',
36643
+ utcoffset: '+08:45'
36644
+ },
36645
+ {
36646
+ key: 'Korea Standard Time',
36647
+ utcoffset: '+09:00'
36648
+ },
36649
+ {
36650
+ key: 'North Korea Standard Time',
36651
+ utcoffset: '+09:00'
36652
+ },
36653
+ {
36654
+ key: 'Tokyo Standard Time',
36655
+ utcoffset: '+09:00'
36656
+ },
36657
+ {
36658
+ key: 'Transbaikal Standard Time',
36659
+ utcoffset: '+09:00'
36660
+ },
36661
+ {
36662
+ key: 'Yakutsk Standard Time',
36663
+ utcoffset: '+09:00'
36664
+ },
36665
+ {
36666
+ key: 'AUS Central Standard Time',
36667
+ utcoffset: '+09:30'
36668
+ },
36669
+ {
36670
+ key: 'Cen. Australia Standard Time',
36671
+ utcoffset: '+09:30'
36672
+ },
36673
+ {
36674
+ key: 'AUS Eastern Standard Time',
36675
+ utcoffset: '+10:00'
36676
+ },
36677
+ {
36678
+ key: 'E. Australia Standard Time',
36679
+ utcoffset: '+10:00'
36680
+ },
36681
+ {
36682
+ key: 'Tasmania Standard Time',
36683
+ utcoffset: '+10:00'
36684
+ },
36685
+ {
36686
+ key: 'Vladivostok Standard Time',
36687
+ utcoffset: '+10:00'
36688
+ },
36689
+ {
36690
+ key: 'West Pacific Standard Time',
36691
+ utcoffset: '+10:00'
36692
+ },
36693
+ {
36694
+ key: 'Lord Howe Standard Time',
36695
+ utcoffset: '+10:30'
36696
+ },
36697
+ {
36698
+ key: 'Bougainville Standard Time',
36699
+ utcoffset: '+11:00'
36700
+ },
36701
+ {
36702
+ key: 'Central Pacific Standard Time',
36703
+ utcoffset: '+11:00'
36704
+ },
36705
+ {
36706
+ key: 'Magadan Standard Time',
36707
+ utcoffset: '+11:00'
36708
+ },
36709
+ {
36710
+ key: 'Norfolk Standard Time',
36711
+ utcoffset: '+11:00'
36712
+ },
36713
+ {
36714
+ key: 'Russia Time Zone 10',
36715
+ utcoffset: '+11:00'
36716
+ },
36717
+ {
36718
+ key: 'Sakhalin Standard Time',
36719
+ utcoffset: '+11:00'
36720
+ },
36721
+ {
36722
+ key: 'Fiji Standard Time',
36723
+ utcoffset: '+12:00'
36724
+ },
36725
+ {
36726
+ key: 'Kamchatka Standard Time',
36727
+ utcoffset: '+12:00'
36728
+ },
36729
+ {
36730
+ key: 'New Zealand Standard Time',
36731
+ utcoffset: '+12:00'
36732
+ },
36733
+ {
36734
+ key: 'Russia Time Zone 11',
36735
+ utcoffset: '+12:00'
36736
+ },
36737
+ {
36738
+ key: 'UTC+12',
36739
+ utcoffset: '+12:00'
36740
+ },
36741
+ {
36742
+ key: 'Chatham Islands Standard Time',
36743
+ utcoffset: '+12:45'
36744
+ },
36745
+ {
36746
+ key: 'Samoa Standard Time',
36747
+ utcoffset: '+13:00'
36748
+ },
36749
+ {
36750
+ key: 'Tonga Standard Time',
36751
+ utcoffset: '+13:00'
36752
+ },
36753
+ {
36754
+ key: 'UTC+13',
36755
+ utcoffset: '+13:00'
36756
+ },
36757
+ {
36758
+ key: 'Line Islands Standard Time',
36759
+ utcoffset: '+14:00'
36760
+ }
36761
+ ];
36762
+ /* harmony default export */ var time_zone_select_json = (timeZoneOptions);
36763
+
36204
36764
  // CONCATENATED MODULE: ./.tmp/elements/datetime-display/datetime-display-element.ts
36205
36765
 
36206
36766
 
@@ -36209,6 +36769,7 @@ class graph_state_element_GraphStateElement {
36209
36769
 
36210
36770
 
36211
36771
 
36772
+
36212
36773
  class datetime_display_element_DatetimeDisplayElement extends conditional_display_element_ConditionalDisplayElement {
36213
36774
  constructor(element, injector, permissionChecker, variableCommunicator, variableStore, graphStore, signalRAppId) {
36214
36775
  super(element, permissionChecker, variableCommunicator, variableStore, signalRAppId);
@@ -36216,7 +36777,12 @@ class datetime_display_element_DatetimeDisplayElement extends conditional_displa
36216
36777
  this.variableCommunicator = variableCommunicator;
36217
36778
  this.variableStore = variableStore;
36218
36779
  this.graphStore = graphStore;
36780
+ this.timeZoneMap = new Map();
36219
36781
  this.logger = injector.get(logger["b" /* LOGGER_SERVICE_TOKEN */]);
36782
+ // 初始化时区
36783
+ time_zone_select_json.forEach((item) => {
36784
+ this.timeZoneMap.set(item.key, item.utcoffset);
36785
+ });
36220
36786
  if (this.model.size && this.model.useGraph) {
36221
36787
  this.initGraph(this.model.size.width, this.model.size.height);
36222
36788
  }
@@ -36230,7 +36796,9 @@ class datetime_display_element_DatetimeDisplayElement extends conditional_displa
36230
36796
  }
36231
36797
  }
36232
36798
  getAndSetCurrentTime(format) {
36233
- const content = moment().local().format(format);
36799
+ var _a;
36800
+ const currentTimeZone = this.timeZoneMap.get((_a = this.model.timeZone) !== null && _a !== void 0 ? _a : '');
36801
+ const content = moment().utcOffset(currentTimeZone !== null && currentTimeZone !== void 0 ? currentTimeZone : this.timeZoneMap.get('')).format(format);
36234
36802
  this.$dateTimeText.text(content);
36235
36803
  let fontF = this.$dateTimeText.css('font-family');
36236
36804
  if (fontF && fontF.lastIndexOf('msyh') === -1) {
@@ -41417,7 +41985,7 @@ var shared = __webpack_require__(5);
41417
41985
  // EXTERNAL MODULE: ./.tmp/view/view.service.ts
41418
41986
  var view_service = __webpack_require__(26);
41419
41987
 
41420
- // EXTERNAL MODULE: ./.tmp/gui/gui-view.ts + 124 modules
41988
+ // EXTERNAL MODULE: ./.tmp/gui/gui-view.ts + 125 modules
41421
41989
  var gui_view = __webpack_require__(31);
41422
41990
 
41423
41991
  // EXTERNAL MODULE: external "rxjs/operators"