ato-water-lib 0.0.62 → 0.0.64

Sign up to get free protection for your applications and to get access to all the features.
@@ -5581,7 +5581,10 @@ class AtoDefaultGojsEditor {
5581
5581
  // this.$(go.TextBlock, 'row 2 col 1', { column: 0, margin: 2 }),
5582
5582
  // this.$(go.TextBlock, 'row 2 col 2', { column: 1, margin: 2 }),
5583
5583
  // ),
5584
- new go.Binding('itemArray', 'dataTable'), {
5584
+ // new go.Binding('itemArray', 'dataTable'),
5585
+ new go.Binding("itemArray", "", function (data) {
5586
+ return data.dataTable.filter(x => (x === null || x === void 0 ? void 0 : x.visible) !== false);
5587
+ }), {
5585
5588
  // itemTemplate: this.$(
5586
5589
  // go.Panel,
5587
5590
  // new go.Binding('row', 'indexRow'),
@@ -5616,8 +5619,11 @@ class AtoDefaultGojsEditor {
5616
5619
  margin: 2,
5617
5620
  textAlign: 'left',
5618
5621
  alignment: go.Spot.Left,
5622
+ overflow: go.TextBlock.OverflowEllipsis,
5619
5623
  }, new go.Binding('text', '', (data, panel) => {
5620
5624
  return data === null || data === void 0 ? void 0 : data.name;
5625
+ }), new go.Binding('maxSize', '', (data, panel) => {
5626
+ return data === null || data === void 0 ? void 0 : data.maxSizeNameParam;
5621
5627
  })), this.$(go.Panel, 'Table', {
5622
5628
  column: 1,
5623
5629
  margin: 2,
@@ -5656,6 +5662,8 @@ class AtoDefaultGojsEditor {
5656
5662
  return data.color;
5657
5663
  }), new go.Binding('maxSize', '', (data) => {
5658
5664
  return new go.Size((data === null || data === void 0 ? void 0 : data.maxSizeValue) || 190, 14);
5665
+ }), new go.Binding('font', '', (data) => {
5666
+ return data === null || data === void 0 ? void 0 : data.font;
5659
5667
  })), this.$(go.Picture, {
5660
5668
  alignment: go.Spot.Right,
5661
5669
  column: 1,
@@ -5671,7 +5679,7 @@ class AtoDefaultGojsEditor {
5671
5679
  height: 14,
5672
5680
  width: 14,
5673
5681
  }, new go.Binding('visible', '', (data, panel) => {
5674
- return !this._initialOptions.isReadOnly;
5682
+ return !(data === null || data === void 0 ? void 0 : data.isReadOnly) && !this._initialOptions.isReadOnly;
5675
5683
  }), new go.Binding('opacity', '', (data, panel) => {
5676
5684
  return (data === null || data === void 0 ? void 0 : data.isEditable) === false ? 0.6 : 1;
5677
5685
  })))),
@@ -5777,7 +5785,7 @@ class AtoDefaultGojsEditor {
5777
5785
  }), this.$(go.Placeholder, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), { padding: new go.Margin(0, 0, 0, 0) })), this.$(go.Panel, 'Spot', {
5778
5786
  width: 0,
5779
5787
  height: 0,
5780
- alignment: new go.Spot(0, 0.5, 0, 83),
5788
+ alignment: new go.Spot(0, 0.5, 0, 109),
5781
5789
  alignmentFocus: go.Spot.Left,
5782
5790
  portId: 'Inflow',
5783
5791
  cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
@@ -6945,6 +6953,11 @@ var ENUM_ASSET_PARAMETERS;
6945
6953
  // For Boiler - view Flow
6946
6954
  ENUM_ASSET_PARAMETERS["FLOW"] = "Flow";
6947
6955
  ENUM_ASSET_PARAMETERS["FLOW_RATE"] = "Flow Rate";
6956
+ ENUM_ASSET_PARAMETERS["PH_IN_STEAM"] = "pH in Steam";
6957
+ ENUM_ASSET_PARAMETERS["CATIONIC_CONDUCTIVITY_IN_STEAM"] = "Cationic Conductivity in Steam";
6958
+ ENUM_ASSET_PARAMETERS["SI_IN_STEAM"] = "Si in Steam";
6959
+ ENUM_ASSET_PARAMETERS["SI_IN_BOILER"] = "Si in Boiler";
6960
+ ENUM_ASSET_PARAMETERS["PH_IN_BOILER"] = "pH in Boiler";
6948
6961
  })(ENUM_ASSET_PARAMETERS || (ENUM_ASSET_PARAMETERS = {}));
6949
6962
  var WATER_SYSTEMS_NAME;
6950
6963
  (function (WATER_SYSTEMS_NAME) {
@@ -6957,7 +6970,7 @@ var WATER_SYSTEMS_NAME;
6957
6970
  WATER_SYSTEMS_NAME["COOLING_TOWER_ANALYSIS"] = "Cooling Water Analysis";
6958
6971
  WATER_SYSTEMS_NAME["COOLING_WATER_CHEMISTRY"] = "Cooling Water Chemistry";
6959
6972
  WATER_SYSTEMS_NAME["SYSTEM_KPIS"] = "System KPI's";
6960
- // For Boiler
6973
+ // For Boiler-
6961
6974
  WATER_SYSTEMS_NAME["CONDENSATE_RETURN"] = "Condensate Return";
6962
6975
  WATER_SYSTEMS_NAME["CONDENSATE_RETURN__FLOW"] = "Condensate Return Flow";
6963
6976
  WATER_SYSTEMS_NAME["CONDENSATE_RETURN__CHEMISTRY"] = "Condensate Return Chemistry";
@@ -7197,6 +7210,26 @@ const DATA_ASSET_PARAMETER_FIELDS = {
7197
7210
  name: ENUM_ASSET_PARAMETERS.FLOW_RATE,
7198
7211
  key: ENUM_ASSET_PARAMETERS.FLOW_RATE,
7199
7212
  },
7213
+ [ENUM_ASSET_PARAMETERS.PH_IN_STEAM]: {
7214
+ name: ENUM_ASSET_PARAMETERS.PH_IN_STEAM,
7215
+ key: ENUM_ASSET_PARAMETERS.PH_IN_STEAM,
7216
+ },
7217
+ [ENUM_ASSET_PARAMETERS.CATIONIC_CONDUCTIVITY_IN_STEAM]: {
7218
+ name: ENUM_ASSET_PARAMETERS.CATIONIC_CONDUCTIVITY_IN_STEAM,
7219
+ key: ENUM_ASSET_PARAMETERS.CATIONIC_CONDUCTIVITY_IN_STEAM,
7220
+ },
7221
+ [ENUM_ASSET_PARAMETERS.SI_IN_STEAM]: {
7222
+ name: ENUM_ASSET_PARAMETERS.SI_IN_STEAM,
7223
+ key: ENUM_ASSET_PARAMETERS.SI_IN_STEAM,
7224
+ },
7225
+ [ENUM_ASSET_PARAMETERS.SI_IN_BOILER]: {
7226
+ name: ENUM_ASSET_PARAMETERS.SI_IN_BOILER,
7227
+ key: ENUM_ASSET_PARAMETERS.SI_IN_BOILER,
7228
+ },
7229
+ [ENUM_ASSET_PARAMETERS.PH_IN_BOILER]: {
7230
+ name: ENUM_ASSET_PARAMETERS.PH_IN_BOILER,
7231
+ key: ENUM_ASSET_PARAMETERS.PH_IN_BOILER,
7232
+ },
7200
7233
  };
7201
7234
  const DATA_WATER_SYSTEMS = {
7202
7235
  [WATER_SYSTEMS_NAME.EVAPORATION_LOSS]: {
@@ -7339,6 +7372,14 @@ const ASSET_CATEGORY_PARAMS__BOILER = {
7339
7372
  DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.PH],
7340
7373
  DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.SILICA],
7341
7374
  ],
7375
+ [WATER_SYSTEMS_NAME.SYSTEM_KPIS]: [
7376
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.PH_IN_STEAM],
7377
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.CATIONIC_CONDUCTIVITY_IN_STEAM],
7378
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.SI_IN_STEAM],
7379
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.SI_IN_BOILER],
7380
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.PH_IN_BOILER],
7381
+ DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.CYCLES],
7382
+ ],
7342
7383
  [WATER_SYSTEMS_NAME.CONDENSATE_RETURN__CHEMISTRY]: [
7343
7384
  DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.SPECIFIC_CONDUCTIVITY],
7344
7385
  DATA_ASSET_PARAMETER_FIELDS[ENUM_ASSET_PARAMETERS.PH],
@@ -7407,6 +7448,11 @@ var ATO_ASSET_LAYERS;
7407
7448
  ATO_ASSET_LAYERS["CHEMISTRY"] = "Chemistry";
7408
7449
  ATO_ASSET_LAYERS["ANALYTICS"] = "Analytics";
7409
7450
  })(ATO_ASSET_LAYERS || (ATO_ASSET_LAYERS = {}));
7451
+ var ATO_MAPPER_FROM;
7452
+ (function (ATO_MAPPER_FROM) {
7453
+ ATO_MAPPER_FROM["HFW"] = "HFW";
7454
+ ATO_MAPPER_FROM["PLUGIN"] = "Plugin";
7455
+ })(ATO_MAPPER_FROM || (ATO_MAPPER_FROM = {}));
7410
7456
  const ATO_COMPONENTS_GROUP_DATA = {
7411
7457
  [AtoGojsEditorModel.ENUM_TYPES.STORAGE]: {
7412
7458
  nodeDataArray: [
@@ -7444,7 +7490,12 @@ const ATO_COMPONENTS_GROUP_DATA = {
7444
7490
  group: 100,
7445
7491
  loc: '92.5 95',
7446
7492
  },
7447
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.STORAGE, isGroup: true, name: 'Group' },
7493
+ {
7494
+ key: 100,
7495
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.STORAGE,
7496
+ isGroup: true,
7497
+ name: 'Group',
7498
+ },
7448
7499
  ],
7449
7500
  linkDataArray: [
7450
7501
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
@@ -7498,14 +7549,31 @@ const ATO_COMPONENTS_GROUP_DATA = {
7498
7549
  group: 100,
7499
7550
  loc: '92.5 95',
7500
7551
  },
7501
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WATER_TREATMENT, isGroup: true, name: 'Group' },
7552
+ {
7553
+ key: 100,
7554
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.WATER_TREATMENT,
7555
+ isGroup: true,
7556
+ name: 'Group',
7557
+ },
7502
7558
  ],
7503
7559
  linkDataArray: [
7504
7560
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7505
7561
  { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7506
7562
  { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7507
- { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'T' },
7508
- { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
7563
+ {
7564
+ from: 99,
7565
+ to: 93,
7566
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7567
+ fromPort: 'T',
7568
+ toPort: 'T',
7569
+ },
7570
+ {
7571
+ from: 93,
7572
+ to: 99,
7573
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7574
+ fromPort: 'B',
7575
+ toPort: 'R',
7576
+ },
7509
7577
  ],
7510
7578
  },
7511
7579
  [AtoGojsEditorModel.ENUM_TYPES.DEMIN_WATER_TREATMENT]: {
@@ -7554,14 +7622,31 @@ const ATO_COMPONENTS_GROUP_DATA = {
7554
7622
  group: 100,
7555
7623
  loc: '125 110',
7556
7624
  },
7557
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WATER_TREATMENT, isGroup: true, name: 'Group' },
7625
+ {
7626
+ key: 100,
7627
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.WATER_TREATMENT,
7628
+ isGroup: true,
7629
+ name: 'Group',
7630
+ },
7558
7631
  ],
7559
7632
  linkDataArray: [
7560
7633
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7561
7634
  { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7562
7635
  { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7563
- { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7564
- { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
7636
+ {
7637
+ from: 99,
7638
+ to: 93,
7639
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7640
+ fromPort: 'T',
7641
+ toPort: 'L',
7642
+ },
7643
+ {
7644
+ from: 93,
7645
+ to: 99,
7646
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7647
+ fromPort: 'B',
7648
+ toPort: 'R',
7649
+ },
7565
7650
  ],
7566
7651
  },
7567
7652
  [AtoGojsEditorModel.ENUM_TYPES.RO_WATER_TREATMENT]: {
@@ -7740,15 +7825,32 @@ const ATO_COMPONENTS_GROUP_DATA = {
7740
7825
  group: 100,
7741
7826
  loc: '90 80',
7742
7827
  },
7743
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS, isGroup: true, name: 'Group' },
7828
+ {
7829
+ key: 100,
7830
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.PROCESS,
7831
+ isGroup: true,
7832
+ name: 'Group',
7833
+ },
7744
7834
  ],
7745
7835
  linkDataArray: [
7746
7836
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7747
7837
  { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7748
7838
  { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7749
7839
  { from: 99, to: 94, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7750
- { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7751
- { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
7840
+ {
7841
+ from: 99,
7842
+ to: 93,
7843
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7844
+ fromPort: 'T',
7845
+ toPort: 'L',
7846
+ },
7847
+ {
7848
+ from: 93,
7849
+ to: 99,
7850
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7851
+ fromPort: 'B',
7852
+ toPort: 'R',
7853
+ },
7752
7854
  ],
7753
7855
  },
7754
7856
  [AtoGojsEditorModel.ENUM_TYPES.WASTEWATER_TREATMENT]: {
@@ -7797,14 +7899,31 @@ const ATO_COMPONENTS_GROUP_DATA = {
7797
7899
  group: 100,
7798
7900
  loc: '125 110',
7799
7901
  },
7800
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
7902
+ {
7903
+ key: 100,
7904
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT,
7905
+ isGroup: true,
7906
+ name: 'Group',
7907
+ },
7801
7908
  ],
7802
7909
  linkDataArray: [
7803
7910
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7804
7911
  { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7805
7912
  { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7806
- { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7807
- { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
7913
+ {
7914
+ from: 99,
7915
+ to: 93,
7916
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7917
+ fromPort: 'T',
7918
+ toPort: 'L',
7919
+ },
7920
+ {
7921
+ from: 93,
7922
+ to: 99,
7923
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7924
+ fromPort: 'B',
7925
+ toPort: 'R',
7926
+ },
7808
7927
  ],
7809
7928
  },
7810
7929
  [AtoGojsEditorModel.ENUM_TYPES.DAF_WASTEWATER_TREATMENT]: {
@@ -7853,14 +7972,31 @@ const ATO_COMPONENTS_GROUP_DATA = {
7853
7972
  group: 100,
7854
7973
  loc: '125 110',
7855
7974
  },
7856
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
7975
+ {
7976
+ key: 100,
7977
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT,
7978
+ isGroup: true,
7979
+ name: 'Group',
7980
+ },
7857
7981
  ],
7858
7982
  linkDataArray: [
7859
7983
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7860
7984
  { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7861
7985
  { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7862
- { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7863
- { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
7986
+ {
7987
+ from: 99,
7988
+ to: 93,
7989
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7990
+ fromPort: 'T',
7991
+ toPort: 'L',
7992
+ },
7993
+ {
7994
+ from: 93,
7995
+ to: 99,
7996
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
7997
+ fromPort: 'B',
7998
+ toPort: 'R',
7999
+ },
7864
8000
  ],
7865
8001
  },
7866
8002
  [AtoGojsEditorModel.ENUM_TYPES.ETP_WASTEWATER_TREATMENT]: {
@@ -7909,14 +8045,31 @@ const ATO_COMPONENTS_GROUP_DATA = {
7909
8045
  group: 100,
7910
8046
  loc: '125 110',
7911
8047
  },
7912
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
8048
+ {
8049
+ key: 100,
8050
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT,
8051
+ isGroup: true,
8052
+ name: 'Group',
8053
+ },
7913
8054
  ],
7914
8055
  linkDataArray: [
7915
8056
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7916
8057
  { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7917
8058
  { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7918
- { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7919
- { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
8059
+ {
8060
+ from: 99,
8061
+ to: 93,
8062
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
8063
+ fromPort: 'T',
8064
+ toPort: 'L',
8065
+ },
8066
+ {
8067
+ from: 93,
8068
+ to: 99,
8069
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
8070
+ fromPort: 'B',
8071
+ toPort: 'R',
8072
+ },
7920
8073
  ],
7921
8074
  },
7922
8075
  [AtoGojsEditorModel.ENUM_TYPES.MBR_WASTEWATER_TREATMENT]: {
@@ -7965,14 +8118,31 @@ const ATO_COMPONENTS_GROUP_DATA = {
7965
8118
  group: 100,
7966
8119
  loc: '125 110',
7967
8120
  },
7968
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
8121
+ {
8122
+ key: 100,
8123
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT,
8124
+ isGroup: true,
8125
+ name: 'Group',
8126
+ },
7969
8127
  ],
7970
8128
  linkDataArray: [
7971
8129
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7972
8130
  { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7973
8131
  { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
7974
- { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
7975
- { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
8132
+ {
8133
+ from: 99,
8134
+ to: 93,
8135
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
8136
+ fromPort: 'T',
8137
+ toPort: 'L',
8138
+ },
8139
+ {
8140
+ from: 93,
8141
+ to: 99,
8142
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
8143
+ fromPort: 'B',
8144
+ toPort: 'R',
8145
+ },
7976
8146
  ],
7977
8147
  },
7978
8148
  [AtoGojsEditorModel.ENUM_TYPES.ZLD_WASTEWATER_TREATMENT]: {
@@ -8021,14 +8191,31 @@ const ATO_COMPONENTS_GROUP_DATA = {
8021
8191
  group: 100,
8022
8192
  loc: '125 110',
8023
8193
  },
8024
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT, isGroup: true, name: 'Group' },
8194
+ {
8195
+ key: 100,
8196
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.WASTEWATER_TREATMENT,
8197
+ isGroup: true,
8198
+ name: 'Group',
8199
+ },
8025
8200
  ],
8026
8201
  linkDataArray: [
8027
8202
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
8028
8203
  { from: 99, to: 91, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
8029
8204
  { from: 99, to: 92, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
8030
- { from: 99, to: 93, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'T', toPort: 'L' },
8031
- { from: 93, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE, fromPort: 'B', toPort: 'R' },
8205
+ {
8206
+ from: 99,
8207
+ to: 93,
8208
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
8209
+ fromPort: 'T',
8210
+ toPort: 'L',
8211
+ },
8212
+ {
8213
+ from: 93,
8214
+ to: 99,
8215
+ color: AtoGojsEditorModel.ENUM_COLORS.BLUE,
8216
+ fromPort: 'B',
8217
+ toPort: 'R',
8218
+ },
8032
8219
  ],
8033
8220
  },
8034
8221
  [AtoGojsEditorModel.ENUM_TYPES.DOMESTIC_USE]: {
@@ -8067,7 +8254,12 @@ const ATO_COMPONENTS_GROUP_DATA = {
8067
8254
  group: 100,
8068
8255
  loc: '82.5 95',
8069
8256
  },
8070
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.DOMESTIC_USE, isGroup: true, name: 'Group' },
8257
+ {
8258
+ key: 100,
8259
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.DOMESTIC_USE,
8260
+ isGroup: true,
8261
+ name: 'Group',
8262
+ },
8071
8263
  ],
8072
8264
  linkDataArray: [
8073
8265
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
@@ -8104,7 +8296,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8104
8296
  },
8105
8297
  extendedDataResponsive: {
8106
8298
  loc: '700 300',
8107
- }
8299
+ },
8108
8300
  },
8109
8301
  Object.assign(Object.assign({ key: 88, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '320 60', padding: new go.Margin(0, 0, 0, 0) }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 140 }))), visible: true, assetLayers: ATO_ASSET_LAYERS.FLOW, extendedData: {
8110
8302
  visible: true,
@@ -8116,7 +8308,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8116
8308
  }, extendedDataResponsive: {
8117
8309
  visible: false,
8118
8310
  } }),
8119
- Object.assign(Object.assign({ key: 90, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, padding: new go.Margin(0, 0, 0, 0), loc: '30 270' }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 120 }))), assetLayers: ATO_ASSET_LAYERS.CHEMISTRY, extendedData: {
8311
+ Object.assign(Object.assign({ key: 90, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, padding: new go.Margin(0, 0, 0, 0), loc: '10 270' }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 120 }))), assetLayers: ATO_ASSET_LAYERS.CHEMISTRY, extendedData: {
8120
8312
  visible: true,
8121
8313
  }, extendedDataResponsive: {
8122
8314
  visible: false,
@@ -8141,7 +8333,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
8141
8333
  }, extendedDataResponsive: {
8142
8334
  visible: false,
8143
8335
  } }),
8144
- Object.assign(Object.assign({ key: 95, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, padding: new go.Margin(0, 0, 0, 0), loc: '30 20' }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.SYSTEM_KPIS]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.SYSTEM_KPIS].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 130 }))), assetLayers: ATO_ASSET_LAYERS.CHEMISTRY, extendedData: {
8336
+ Object.assign(Object.assign({ key: 95, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, padding: new go.Margin(0, 0, 0, 0), loc: '10 20' }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.SYSTEM_KPIS]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.SYSTEM_KPIS].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 130, extendedDataIsFromPlugin: {
8337
+ maxSizeValue: 220,
8338
+ } }).concat(ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => (Object.assign(Object.assign({}, e), { value: `Mapping in "Cooling Water Chemistry" section`, isEditable: false, maxSizeValue: 230, isReadOnly: true, isFrom: ATO_MAPPER_FROM.PLUGIN, font: '10px sans-serif', visible: false })))))), assetLayers: ATO_ASSET_LAYERS.CHEMISTRY, extendedData: {
8145
8339
  visible: true,
8146
8340
  }, extendedDataResponsive: {
8147
8341
  visible: false,
@@ -8158,7 +8352,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8158
8352
  },
8159
8353
  extendedDataResponsive: {
8160
8354
  margin: new go.Margin(20, 20, 0, 0),
8161
- }
8355
+ },
8162
8356
  },
8163
8357
  {
8164
8358
  key: 97,
@@ -8172,7 +8366,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8172
8366
  },
8173
8367
  extendedDataResponsive: {
8174
8368
  visible: true,
8175
- }
8369
+ },
8176
8370
  },
8177
8371
  {
8178
8372
  key: 98,
@@ -8186,7 +8380,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8186
8380
  },
8187
8381
  extendedDataResponsive: {
8188
8382
  visible: true,
8189
- }
8383
+ },
8190
8384
  },
8191
8385
  {
8192
8386
  key: 99,
@@ -8200,9 +8394,14 @@ const ATO_COMPONENTS_GROUP_DATA = {
8200
8394
  },
8201
8395
  extendedDataResponsive: {
8202
8396
  visible: true,
8203
- }
8397
+ },
8398
+ },
8399
+ {
8400
+ key: 100,
8401
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER,
8402
+ isGroup: true,
8403
+ name: 'Group',
8204
8404
  },
8205
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.COOLING_TOWER, isGroup: true, name: 'Group' },
8206
8405
  ],
8207
8406
  linkDataArray: [],
8208
8407
  },
@@ -8233,14 +8432,23 @@ const ATO_COMPONENTS_GROUP_DATA = {
8233
8432
  },
8234
8433
  extendedDataResponsive: {
8235
8434
  loc: '700 300',
8236
- }
8435
+ },
8237
8436
  },
8238
- Object.assign(Object.assign({ type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '13 280', padding: new go.Margin(0, 0, 0, 0) }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS__BOILER[WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 140, waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER }))), assetLayers: ATO_ASSET_LAYERS.CHEMISTRY, extendedData: {
8437
+ Object.assign(Object.assign({ type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '5 280', padding: new go.Margin(0, 0, 0, 0) }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS__BOILER[WATER_SYSTEMS_NAME.MAKEUP_WATER__CHEMISTRY].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 140, waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER }))), assetLayers: ATO_ASSET_LAYERS.CHEMISTRY, extendedData: {
8438
+ visible: true,
8439
+ }, extendedDataResponsive: {
8440
+ visible: false,
8441
+ } }),
8442
+ Object.assign(Object.assign({ type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '0 20', padding: new go.Margin(0, 0, 0, 0) }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.SYSTEM_KPIS]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS__BOILER[WATER_SYSTEMS_NAME.SYSTEM_KPIS].map((e) => (Object.assign(Object.assign({}, e), { value: `Mapping in "Steam" section`, isEditable: true, maxSizeValue: 170, waterSystem: WATER_SYSTEMS_NAME.SYSTEM_KPIS, isReadOnly: true, isFrom: ATO_MAPPER_FROM.PLUGIN, font: '10px sans-serif', maxSizeNameParam: new go.Size(125, 15) }))), assetLayers: ATO_ASSET_LAYERS.CHEMISTRY, isFrom: ATO_MAPPER_FROM.PLUGIN, extendedData: {
8443
+ visible: false,
8444
+ }, extendedDataisFromPlugin: {
8239
8445
  visible: true,
8240
8446
  }, extendedDataResponsive: {
8241
8447
  visible: false,
8448
+ }, extendedDataisFromPluginResponsive: {
8449
+ visible: false,
8242
8450
  } }),
8243
- Object.assign(Object.assign({ type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '190 20', padding: new go.Margin(0, 0, 0, 0) }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.CONDENSATE_RETURN]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS__BOILER[WATER_SYSTEMS_NAME.CONDENSATE_RETURN__CHEMISTRY].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 140, waterSystem: WATER_SYSTEMS_NAME.CONDENSATE_RETURN }))), assetLayers: ATO_ASSET_LAYERS.CHEMISTRY, extendedData: {
8451
+ Object.assign(Object.assign({ type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '400 5', padding: new go.Margin(0, 0, 0, 0) }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.CONDENSATE_RETURN]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS__BOILER[WATER_SYSTEMS_NAME.CONDENSATE_RETURN__CHEMISTRY].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 140, waterSystem: WATER_SYSTEMS_NAME.CONDENSATE_RETURN }))), assetLayers: ATO_ASSET_LAYERS.CHEMISTRY, extendedData: {
8244
8452
  visible: true,
8245
8453
  }, extendedDataResponsive: {
8246
8454
  visible: false,
@@ -8271,7 +8479,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8271
8479
  },
8272
8480
  extendedDataResponsive: {
8273
8481
  margin: new go.Margin(20, 20, 0, 0),
8274
- }
8482
+ },
8275
8483
  },
8276
8484
  {
8277
8485
  type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
@@ -8285,7 +8493,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8285
8493
  },
8286
8494
  extendedDataResponsive: {
8287
8495
  visible: true,
8288
- }
8496
+ },
8289
8497
  },
8290
8498
  {
8291
8499
  type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
@@ -8299,7 +8507,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8299
8507
  },
8300
8508
  extendedDataResponsive: {
8301
8509
  visible: true,
8302
- }
8510
+ },
8303
8511
  },
8304
8512
  {
8305
8513
  type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
@@ -8313,7 +8521,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8313
8521
  },
8314
8522
  extendedDataResponsive: {
8315
8523
  visible: true,
8316
- }
8524
+ },
8317
8525
  },
8318
8526
  {
8319
8527
  type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
@@ -8327,7 +8535,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8327
8535
  },
8328
8536
  extendedDataResponsive: {
8329
8537
  visible: true,
8330
- }
8538
+ },
8331
8539
  },
8332
8540
  {
8333
8541
  type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
@@ -8341,7 +8549,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8341
8549
  },
8342
8550
  extendedDataResponsive: {
8343
8551
  visible: true,
8344
- }
8552
+ },
8345
8553
  },
8346
8554
  Object.assign(Object.assign({ type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 100, loc: '15 310', padding: new go.Margin(0, 0, 0, 0) }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS__BOILER[WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: 140, waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER }))), assetLayers: ATO_ASSET_LAYERS.FLOW, extendedData: {
8347
8555
  visible: true,
@@ -8385,7 +8593,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8385
8593
  },
8386
8594
  extendedDataResponsive: {
8387
8595
  visible: true,
8388
- }
8596
+ },
8389
8597
  },
8390
8598
  {
8391
8599
  type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
@@ -8399,7 +8607,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8399
8607
  },
8400
8608
  extendedDataResponsive: {
8401
8609
  visible: true,
8402
- }
8610
+ },
8403
8611
  },
8404
8612
  {
8405
8613
  type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
@@ -8413,7 +8621,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8413
8621
  },
8414
8622
  extendedDataResponsive: {
8415
8623
  visible: true,
8416
- }
8624
+ },
8417
8625
  },
8418
8626
  {
8419
8627
  type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
@@ -8427,7 +8635,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
8427
8635
  },
8428
8636
  extendedDataResponsive: {
8429
8637
  visible: true,
8430
- }
8638
+ },
8431
8639
  },
8432
8640
  {
8433
8641
  type: AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_LABEL,
@@ -8441,9 +8649,14 @@ const ATO_COMPONENTS_GROUP_DATA = {
8441
8649
  },
8442
8650
  extendedDataResponsive: {
8443
8651
  visible: true,
8444
- }
8652
+ },
8653
+ },
8654
+ {
8655
+ key: 100,
8656
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.BOILER,
8657
+ isGroup: true,
8658
+ name: 'Group',
8445
8659
  },
8446
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.BOILER, isGroup: true, name: 'Group' },
8447
8660
  ],
8448
8661
  linkDataArray: [],
8449
8662
  },
@@ -8483,7 +8696,12 @@ const ATO_COMPONENTS_GROUP_DATA = {
8483
8696
  group: 100,
8484
8697
  loc: '92.5 95',
8485
8698
  },
8486
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.OTHER, isGroup: true, name: 'Group' },
8699
+ {
8700
+ key: 100,
8701
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.OTHER,
8702
+ isGroup: true,
8703
+ name: 'Group',
8704
+ },
8487
8705
  ],
8488
8706
  linkDataArray: [
8489
8707
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
@@ -8518,7 +8736,12 @@ const ATO_COMPONENTS_GROUP_DATA = {
8518
8736
  group: 100,
8519
8737
  loc: '92.5 95',
8520
8738
  },
8521
- { key: 100, type: AtoGojsEditorModel.ENUM_TEMPLATES.LANDSCAPING_IRRIGATION, isGroup: true, name: 'Group' },
8739
+ {
8740
+ key: 100,
8741
+ type: AtoGojsEditorModel.ENUM_TEMPLATES.LANDSCAPING_IRRIGATION,
8742
+ isGroup: true,
8743
+ name: 'Group',
8744
+ },
8522
8745
  ],
8523
8746
  linkDataArray: [
8524
8747
  { from: 90, to: 99, color: AtoGojsEditorModel.ENUM_COLORS.BLUE },
@@ -8609,11 +8832,19 @@ class AssetFlowComponent {
8609
8832
  // Reponsive
8610
8833
  _.forEach(flowData === null || flowData === void 0 ? void 0 : flowData.nodeDataArray, (node) => {
8611
8834
  var _a;
8612
- node = _.merge(node, node[`extendedData${isResponsiveView ? 'Responsive' : ''}`]);
8835
+ const propertyNameExtend = `extendedData${defaultData.isFrom && (node === null || node === void 0 ? void 0 : node.isFrom) ? `isFrom${defaultData.isFrom}` : ''}${isResponsiveView ? 'Responsive' : ''}`;
8836
+ node = _.merge(node, node[propertyNameExtend]);
8613
8837
  if (node === null || node === void 0 ? void 0 : node.assetLayers) {
8614
8838
  node.visible =
8615
8839
  (node === null || node === void 0 ? void 0 : node.assetLayers) === (defaultData === null || defaultData === void 0 ? void 0 : defaultData.assetLayer) &&
8616
- ((_a = node[`extendedData${isResponsiveView ? 'Responsive' : ''}`]) === null || _a === void 0 ? void 0 : _a.visible);
8840
+ ((_a = node[propertyNameExtend]) === null || _a === void 0 ? void 0 : _a.visible);
8841
+ }
8842
+ if (defaultData.isFrom && (node === null || node === void 0 ? void 0 : node.dataTable)) {
8843
+ _.forEach(node === null || node === void 0 ? void 0 : node.dataTable, item => {
8844
+ if (item === null || item === void 0 ? void 0 : item.isFrom) {
8845
+ item.visible = (item === null || item === void 0 ? void 0 : item.isFrom) === defaultData.isFrom;
8846
+ }
8847
+ });
8617
8848
  }
8618
8849
  });
8619
8850
  // assetLayer
@@ -8629,11 +8860,19 @@ class AssetFlowComponent {
8629
8860
  setFlowData(data) {
8630
8861
  _.forEach(data.nodeDataArray, (node) => {
8631
8862
  var _a;
8632
- node = _.merge(node, node[`extendedData${this.isResponsiveView ? 'Responsive' : ''}`]);
8863
+ const propertyNameExtend = `extendedData${data.isFrom && (node === null || node === void 0 ? void 0 : node.isFrom) ? `isFrom${data.isFrom}` : ''}${this.isResponsiveView ? 'Responsive' : ''}`;
8864
+ node = _.merge(node, node[propertyNameExtend]);
8633
8865
  if (node === null || node === void 0 ? void 0 : node.assetLayers) {
8634
8866
  node.visible =
8635
8867
  (node === null || node === void 0 ? void 0 : node.assetLayers) === data.assetLayer &&
8636
- ((_a = node[`extendedData${this.isResponsiveView ? 'Responsive' : ''}`]) === null || _a === void 0 ? void 0 : _a.visible);
8868
+ ((_a = node[propertyNameExtend]) === null || _a === void 0 ? void 0 : _a.visible);
8869
+ }
8870
+ if (data.isFrom && (node === null || node === void 0 ? void 0 : node.dataTable)) {
8871
+ _.forEach(node === null || node === void 0 ? void 0 : node.dataTable, item => {
8872
+ if (item === null || item === void 0 ? void 0 : item.isFrom) {
8873
+ item.visible = (item === null || item === void 0 ? void 0 : item.isFrom) === data.isFrom;
8874
+ }
8875
+ });
8637
8876
  }
8638
8877
  });
8639
8878
  this.flowData = Object.assign({}, data);
@@ -8651,7 +8890,7 @@ class AssetFlowComponent {
8651
8890
  }
8652
8891
  }
8653
8892
  AssetFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
8654
- AssetFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AssetFlowComponent, selector: "ato-asset-flow", inputs: { assetLayer: "assetLayer", selectedComponent: "selectedComponent", systemType: "systemType", isUseBase64: "isUseBase64", flowData: "flowData", getFlowDataCallBack: "getFlowDataCallBack" }, outputs: { onClickParamOfTableEvent: "onClickParamOfTableEvent" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "gjFlowDiagramTemp", first: true, predicate: AtoFlowDiagramLibComponent, descendants: true }, { propertyName: "assetParamsViewTemp", first: true, predicate: AtoAssetParamsViewComponent, descendants: true }], ngImport: i0, template: "<div class=\"h-100 d-flex flex-column flex-gap-3 flex-grow-1 overflow-auto px-3 pb-3\">\n <div class=\"h-100 d-flex flex-column\" atoLoading [appLoading]=\"flowData === null\">\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n [class]=\"!!isResponsiveView ? 'diagram-responsive-view' : 'flex-grow-1'\"\n ></ato-flow-diagram-lib>\n <div class=\"mt-2\" *ngIf=\"isResponsiveView\">\n <ato-asset-params-view\n #assetParamsViewTemp\n [data]=\"dataTableAssetParams\"\n [isEditView]=\"true\"\n (clickParamTableRow)=\"onClickParamOfTable($event)\"\n ></ato-asset-params-view>\n </div>\n </div>\n</div>\n\n", styles: [".diagram-responsive-view{height:30vh;min-height:30vh}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: ["data", "isLoading"] }, { kind: "directive", type: AtoLoadingDirective, selector: "[atoLoading]", inputs: ["appLoading"] }, { kind: "component", type: AtoAssetParamsViewComponent, selector: "ato-asset-params-view", inputs: ["isEditView", "data"], outputs: ["clickParamTableRow"] }] });
8893
+ AssetFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AssetFlowComponent, selector: "ato-asset-flow", inputs: { assetLayer: "assetLayer", selectedComponent: "selectedComponent", systemType: "systemType", isUseBase64: "isUseBase64", isFrom: "isFrom", flowData: "flowData", getFlowDataCallBack: "getFlowDataCallBack" }, outputs: { onClickParamOfTableEvent: "onClickParamOfTableEvent" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "gjFlowDiagramTemp", first: true, predicate: AtoFlowDiagramLibComponent, descendants: true }, { propertyName: "assetParamsViewTemp", first: true, predicate: AtoAssetParamsViewComponent, descendants: true }], ngImport: i0, template: "<div class=\"h-100 d-flex flex-column flex-gap-3 flex-grow-1 overflow-auto px-3 pb-3\">\n <div class=\"h-100 d-flex flex-column\" atoLoading [appLoading]=\"flowData === null\">\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n [class]=\"!!isResponsiveView ? 'diagram-responsive-view' : 'flex-grow-1'\"\n ></ato-flow-diagram-lib>\n <div class=\"mt-2\" *ngIf=\"isResponsiveView\">\n <ato-asset-params-view\n #assetParamsViewTemp\n [data]=\"dataTableAssetParams\"\n [isEditView]=\"true\"\n (clickParamTableRow)=\"onClickParamOfTable($event)\"\n ></ato-asset-params-view>\n </div>\n </div>\n</div>\n\n", styles: [".diagram-responsive-view{height:30vh;min-height:30vh}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: ["data", "isLoading"] }, { kind: "directive", type: AtoLoadingDirective, selector: "[atoLoading]", inputs: ["appLoading"] }, { kind: "component", type: AtoAssetParamsViewComponent, selector: "ato-asset-params-view", inputs: ["isEditView", "data"], outputs: ["clickParamTableRow"] }] });
8655
8894
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, decorators: [{
8656
8895
  type: Component,
8657
8896
  args: [{ selector: 'ato-asset-flow', template: "<div class=\"h-100 d-flex flex-column flex-gap-3 flex-grow-1 overflow-auto px-3 pb-3\">\n <div class=\"h-100 d-flex flex-column\" atoLoading [appLoading]=\"flowData === null\">\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n [class]=\"!!isResponsiveView ? 'diagram-responsive-view' : 'flex-grow-1'\"\n ></ato-flow-diagram-lib>\n <div class=\"mt-2\" *ngIf=\"isResponsiveView\">\n <ato-asset-params-view\n #assetParamsViewTemp\n [data]=\"dataTableAssetParams\"\n [isEditView]=\"true\"\n (clickParamTableRow)=\"onClickParamOfTable($event)\"\n ></ato-asset-params-view>\n </div>\n </div>\n</div>\n\n", styles: [".diagram-responsive-view{height:30vh;min-height:30vh}\n"] }]
@@ -8671,6 +8910,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8671
8910
  type: Output
8672
8911
  }], isUseBase64: [{
8673
8912
  type: Input
8913
+ }], isFrom: [{
8914
+ type: Input
8674
8915
  }], flowData: [{
8675
8916
  type: Input
8676
8917
  }], getFlowDataCallBack: [{
@@ -8757,5 +8998,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
8757
8998
  * Generated bundle index. Do not edit.
8758
8999
  */
8759
9000
 
8760
- export { ASSET_CATEGORY_PARAMS, ASSET_CATEGORY_PARAMS__BOILER, ATO_ASSET_LAYERS, ATO_COMPONENTS_GROUP_DATA, AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoGojsEditorModel, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService, COMPONENTS_GROUP_TYPE, DATA_ASSET_PARAMETER_FIELDS, DATA_WATER_SYSTEMS, ENUM_ASSET_PARAMETERS, WATER_SYSTEMS_NAME };
9001
+ export { ASSET_CATEGORY_PARAMS, ASSET_CATEGORY_PARAMS__BOILER, ATO_ASSET_LAYERS, ATO_COMPONENTS_GROUP_DATA, ATO_MAPPER_FROM, AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoGojsEditorModel, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService, COMPONENTS_GROUP_TYPE, DATA_ASSET_PARAMETER_FIELDS, DATA_WATER_SYSTEMS, ENUM_ASSET_PARAMETERS, WATER_SYSTEMS_NAME };
8761
9002
  //# sourceMappingURL=ato-water-lib.mjs.map