ato-water-lib 0.0.138 → 0.0.140

Sign up to get free protection for your applications and to get access to all the features.
@@ -7026,7 +7026,7 @@ class AtoDefaultGojsEditor {
7026
7026
  }
7027
7027
  },
7028
7028
  doubleClick: (e, obj) => {
7029
- var _a, _b, _c, _d, _e;
7029
+ var _a, _b, _c, _d, _e, _f, _g;
7030
7030
  const node = obj.part;
7031
7031
  if (((_a = node === null || node === void 0 ? void 0 : node.ob) === null || _a === void 0 ? void 0 : _a.isTypeInflowOfPlantCell) && !((_b = this._initialOptions) === null || _b === void 0 ? void 0 : _b.isReadOnly)) {
7032
7032
  // obj?.data?.onSelected(node?.ob?.nodePlantCellParent);
@@ -7050,7 +7050,15 @@ class AtoDefaultGojsEditor {
7050
7050
  })
7051
7051
  : null;
7052
7052
  }
7053
+ if (this.isSelectBox) {
7054
+ self.onClickInfoButton.emit({
7055
+ left: (_f = e === null || e === void 0 ? void 0 : e['Wr']) === null || _f === void 0 ? void 0 : _f.x,
7056
+ top: (_g = e === null || e === void 0 ? void 0 : e['Wr']) === null || _g === void 0 ? void 0 : _g.y,
7057
+ node: node,
7058
+ });
7059
+ }
7053
7060
  },
7061
+ selectionAdorned: false,
7054
7062
  selectionAdornmentTemplate: this._initialOptions.isReadOnly || this.isSelectBox
7055
7063
  ? null
7056
7064
  : this.$(go.Adornment, 'Spot', this.$(go.Panel, 'Auto',
@@ -7086,7 +7094,7 @@ class AtoDefaultGojsEditor {
7086
7094
  AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
7087
7095
  ])
7088
7096
  : {})),
7089
- }, new go.Binding('visible', 'visible'), new go.Binding('fromSpot', 'fromSpot'), new go.Binding('toSpot', 'toSpot'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('deletable', 'deletable'),
7097
+ }, new go.Binding('visible', 'visible'), new go.Binding('fromSpot', 'fromSpot'), new go.Binding('toSpot', 'toSpot'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('deletable', 'deletable'), new go.Binding('selectionAdorned', '', (x) => !(self === null || self === void 0 ? void 0 : self.isSelectBox)), new go.Binding('opacity', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.opacity) !== null && _a !== void 0 ? _a : 1; }),
7090
7098
  // new go.Binding('alignment', 'alignment', function(loc) {
7091
7099
  // return new go.Spot(0, 0, loc.x, 0);
7092
7100
  // }).ofObject(),
@@ -7107,11 +7115,14 @@ class AtoDefaultGojsEditor {
7107
7115
  source: ICONS_BASE64['uf2f6_output'],
7108
7116
  height: 14,
7109
7117
  width: 14,
7110
- }, new go.Binding('source', '', (x) => ICONS_BASE64[x === null || x === void 0 ? void 0 : x.group_source_icon])), new go.Binding('visible', '', (x) => { var _a; return (_a = ((x === null || x === void 0 ? void 0 : x.group_visible) || (x === null || x === void 0 ? void 0 : x.isSelectBox))) !== null && _a !== void 0 ? _a : false; })), this.$(go.Panel, 'Auto', {
7118
+ }, new go.Binding('source', '', (x) => ICONS_BASE64[x === null || x === void 0 ? void 0 : x.group_source_icon])), new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.group_visible) !== null && _a !== void 0 ? _a : false; })), this.$(go.Panel, 'Auto', {
7111
7119
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7112
7120
  margin: 2,
7113
7121
  }, new go.Binding('text', '', function (data) {
7114
7122
  var _a;
7123
+ if (self.isSelectBox) {
7124
+ return data === null || data === void 0 ? void 0 : data.name;
7125
+ }
7115
7126
  if (!self._initialOptions.isReadOnly) {
7116
7127
  return (_a = data === null || data === void 0 ? void 0 : data.name) !== null && _a !== void 0 ? _a : VALUE_NA;
7117
7128
  }
@@ -7133,10 +7144,19 @@ class AtoDefaultGojsEditor {
7133
7144
  fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
7134
7145
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
7135
7146
  name: 'textNodeShape',
7147
+ strokeWidth: 1,
7136
7148
  }, new go.Binding('fill', 'fill'), new go.Binding('stroke', '', (x) => {
7137
- return (x === null || x === void 0 ? void 0 : x.isSelectBox) ? AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE : x === null || x === void 0 ? void 0 : x.stroke;
7149
+ var _a;
7150
+ if (x === null || x === void 0 ? void 0 : x.isSelectBox) {
7151
+ return AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE;
7152
+ }
7153
+ return (_a = x === null || x === void 0 ? void 0 : x.stroke) !== null && _a !== void 0 ? _a : AtoGojsEditorModel.ENUM_COLORS.LINK_WATER;
7138
7154
  }), new go.Binding('strokeWidth', '', (x) => {
7139
- return (x === null || x === void 0 ? void 0 : x.isSelectBox) ? 3 : x === null || x === void 0 ? void 0 : x.strokeWidth;
7155
+ var _a;
7156
+ if (x === null || x === void 0 ? void 0 : x.isSelectBox) {
7157
+ return 3;
7158
+ }
7159
+ return (_a = x === null || x === void 0 ? void 0 : x.strokeWidth) !== null && _a !== void 0 ? _a : 1;
7140
7160
  })), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', { alignment: go.Spot.Center },
7141
7161
  // Alert
7142
7162
  this.$(go.Panel, 'Auto', {
@@ -7203,25 +7223,15 @@ class AtoDefaultGojsEditor {
7203
7223
  // }
7204
7224
  // },
7205
7225
  // }),
7206
- // this.$(go.Picture, {
7207
- // alignment: go.Spot.TopRight,
7208
- // margin: new go.Margin(10, 10, 10, 10),
7209
- // source: ICONS_BASE64['uf2f6_output'],
7210
- // height: 14,
7211
- // width: 14,
7212
- // }),
7213
- this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false)), this.arrowForPlantCell(size, ATO_ENUM_FLOW_DIRECTION.INFLOW))), this.$(go.Panel, 'Horizontal', {
7214
- height: 16,
7215
- }, new go.Binding('visible', '', (x) => { var _a; return (_a = ((x === null || x === void 0 ? void 0 : x.group_visible) || (x === null || x === void 0 ? void 0 : x.isSelectBox))) !== null && _a !== void 0 ? _a : false; }))), this.$(go.Panel, 'Auto', {
7226
+ this.$(go.Picture, {
7216
7227
  alignment: go.Spot.TopRight,
7217
- alignmentFocus: go.Spot.TopRight,
7218
- }, new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.isSelectBox) !== null && _a !== void 0 ? _a : false; }), this.$(go.Picture, {
7219
- alignment: go.Spot.Right,
7220
- margin: new go.Margin(2, 0, 0, 0),
7228
+ margin: new go.Margin(0, 0, 0, 0),
7221
7229
  source: ICONS_BASE64['uf14a'],
7222
- height: 17,
7230
+ height: 14,
7223
7231
  width: 14,
7224
- })));
7232
+ }, new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.isSelectBox) !== null && _a !== void 0 ? _a : false; })), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false)), this.arrowForPlantCell(size, ATO_ENUM_FLOW_DIRECTION.INFLOW))), this.$(go.Panel, 'Horizontal', {
7233
+ height: 16,
7234
+ }, new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.group_visible) !== null && _a !== void 0 ? _a : false; }))));
7225
7235
  this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE, node);
7226
7236
  }
7227
7237
  arrowForPlantCell(size, flowDirection) {
@@ -7393,7 +7403,12 @@ class AtoDefaultGojsEditor {
7393
7403
  fill: null,
7394
7404
  stroke: 'dodgerblue',
7395
7405
  strokeWidth: 4,
7396
- }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
7406
+ }), this.$(go.Placeholder, { padding: 3 }), new go.Binding('height', '', (x) => {
7407
+ if (x === null || x === void 0 ? void 0 : x.plantCellNameBelong) {
7408
+ return 130;
7409
+ }
7410
+ return null;
7411
+ })), this.$(go.Panel, 'Horizontal', {
7397
7412
  alignment: go.Spot.TopRight,
7398
7413
  alignmentFocus: go.Spot.Bottom,
7399
7414
  background: 'white',
@@ -7421,28 +7436,43 @@ class AtoDefaultGojsEditor {
7421
7436
  AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
7422
7437
  ])
7423
7438
  : {})),
7424
- toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7425
- margin: 4,
7426
- }, new go.Binding('text', 'name').makeTwoWay())),
7427
7439
  },
7428
7440
  // new go.Binding('location', 'loc', go.Point.parse),
7429
- new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('visible', 'visible'), new go.Binding('deletable', 'deletable'), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', {
7441
+ new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('visible', 'visible'), new go.Binding('deletable', 'deletable'), new go.Binding('selectionAdorned', '', (x) => !(self === null || self === void 0 ? void 0 : self.isSelectBox)), new go.Binding('opacity', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.opacity) !== null && _a !== void 0 ? _a : 1; }), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', {
7430
7442
  alignment: go.Spot.Left,
7431
- padding: new go.Margin(1, 1, 0, 1),
7432
- margin: new go.Margin(0, 0, 0, 4),
7433
- height: 14,
7434
- }, new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.isSelectBox) !== null && _a !== void 0 ? _a : false; })), this.$(go.Panel, 'Auto', {
7443
+ margin: new go.Margin(0, 0, 0, 0),
7444
+ }, this.$(go.TextBlock, {
7445
+ font: 'bold 10pt Arial',
7446
+ width: size.w,
7447
+ overflow: go.TextBlock.OverflowEllipsis,
7448
+ alignment: go.Spot.Center,
7449
+ wrap: go.TextBlock.None,
7450
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7451
+ margin: 4,
7452
+ }, new go.Binding('text', 'plantCellNameBelong'))),
7453
+ }, new go.Binding('text', 'plantCellNameBelong')), new go.Binding('visible', '', (x) => ((x === null || x === void 0 ? void 0 : x.plantCellNameBelong) ? true : false))), this.$(go.Panel, 'Auto', {
7435
7454
  width: size.w,
7436
7455
  height: size.h,
7456
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7457
+ margin: 4,
7458
+ }, new go.Binding('text', 'name').makeTwoWay())),
7437
7459
  }, this.$(go.Shape, 'RoundedRectangle', {
7438
7460
  fill: 'white',
7439
7461
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
7440
7462
  strokeWidth: 1,
7441
7463
  // strokeDashArray: [5, 5],
7442
7464
  }, new go.Binding('fill', 'fill'), new go.Binding('stroke', '', (x) => {
7443
- return (x === null || x === void 0 ? void 0 : x.isSelectBox) ? AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE : x === null || x === void 0 ? void 0 : x.stroke;
7465
+ var _a;
7466
+ if (x === null || x === void 0 ? void 0 : x.isSelectBox) {
7467
+ return AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE;
7468
+ }
7469
+ return (_a = x === null || x === void 0 ? void 0 : x.stroke) !== null && _a !== void 0 ? _a : AtoGojsEditorModel.ENUM_COLORS.LINK_WATER;
7444
7470
  }), new go.Binding('strokeWidth', '', (x) => {
7445
- return (x === null || x === void 0 ? void 0 : x.isSelectBox) ? 3 : x === null || x === void 0 ? void 0 : x.strokeWidth;
7471
+ var _a;
7472
+ if (x === null || x === void 0 ? void 0 : x.isSelectBox) {
7473
+ return 3;
7474
+ }
7475
+ return (_a = x === null || x === void 0 ? void 0 : x.strokeWidth) !== null && _a !== void 0 ? _a : 1;
7446
7476
  })), this.$(go.Panel, 'Table', this.$(go.Picture, icon, {
7447
7477
  row: 1,
7448
7478
  alignment: go.Spot.Center,
@@ -7469,27 +7499,31 @@ class AtoDefaultGojsEditor {
7469
7499
  toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))),
7470
7500
  }, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('editable', '', (data) => {
7471
7501
  var _a;
7502
+ if ((data === null || data === void 0 ? void 0 : data.editable) !== undefined) {
7503
+ return data === null || data === void 0 ? void 0 : data.editable;
7504
+ }
7472
7505
  return !(((_a = AtoGojsEditorModel.TYPE_COMPONENT_WATER) === null || _a === void 0 ? void 0 : _a.includes(data === null || data === void 0 ? void 0 : data.systemType)) &&
7473
7506
  (data === null || data === void 0 ? void 0 : data.topologyType) !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
7474
7507
  (data === null || data === void 0 ? void 0 : data.topologyType) !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL);
7475
- }))))),
7476
- // Select box
7477
- this.$(go.Panel, 'Auto', {
7508
+ }))), this.$(go.Picture, {
7478
7509
  alignment: go.Spot.TopRight,
7479
- alignmentFocus: go.Spot.TopRight,
7480
- }, new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.isSelectBox) !== null && _a !== void 0 ? _a : false; }), this.$(go.Picture, {
7481
- alignment: go.Spot.Right,
7482
- margin: new go.Margin(2, 0, 0, 0),
7510
+ margin: new go.Margin(0, 0, 0, 0),
7483
7511
  source: ICONS_BASE64['uf14a'],
7484
- height: 17,
7512
+ height: 14,
7485
7513
  width: 14,
7486
- })), this.$(go.Panel, 'Vertical', {
7514
+ }, new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.isSelectBox) !== null && _a !== void 0 ? _a : false; })), this.$(go.Panel, 'Vertical', {
7487
7515
  alignment: go.Spot.Left,
7488
7516
  alignmentFocus: new go.Spot(0, 0.5, 8, 0),
7489
7517
  }), this.$(go.Panel, 'Vertical', {
7490
7518
  alignment: go.Spot.Right,
7491
7519
  alignmentFocus: new go.Spot(1, 0.5, -8, 0),
7492
- }), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false));
7520
+ }), this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false), this.$(go.TextBlock, '', {
7521
+ alignment: go.Spot.TopLeft,
7522
+ margin: new go.Margin(2, 0, 0, 2),
7523
+ stroke: '#DC8FA9',
7524
+ font: 'bold 9pt Arial',
7525
+ textAlign: 'left',
7526
+ }, new go.Binding('text', '', (x) => x === null || x === void 0 ? void 0 : x.group_text), new go.Binding('stroke', '', (x) => x === null || x === void 0 ? void 0 : x.group_text_stroke)))));
7493
7527
  this.myDiagram.nodeTemplateMap.set(title, node);
7494
7528
  }
7495
7529
  makeEntityTemplateEnergy(icon, title, size = {
@@ -7627,7 +7661,6 @@ class AtoDefaultGojsEditor {
7627
7661
  },
7628
7662
  click: (e, obj) => {
7629
7663
  var _a, _b, _c, _d;
7630
- console.log('TEST');
7631
7664
  if ((_a = obj === null || obj === void 0 ? void 0 : obj.data) === null || _a === void 0 ? void 0 : _a.onSelected) {
7632
7665
  (_b = obj === null || obj === void 0 ? void 0 : obj.data) === null || _b === void 0 ? void 0 : _b.onSelected(obj === null || obj === void 0 ? void 0 : obj.data);
7633
7666
  self.onClickCompoent.emit({
@@ -7681,11 +7714,11 @@ class AtoDefaultGojsEditor {
7681
7714
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7682
7715
  margin: 4,
7683
7716
  }, new go.Binding('text', 'name').makeTwoWay())),
7684
- }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('deletable', 'deletable'), this.$(go.Panel, 'Auto', { width: size.w, height: size.h },
7717
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('deletable', 'deletable'), new go.Binding('selectionAdorned', '', (x) => !(x === null || x === void 0 ? void 0 : x.isNodeSelectionAdorned)), new go.Binding('visible', 'visible'), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Auto', { width: size.w, height: size.h },
7685
7718
  // this.$(go.Shape, 'RoundedRectangle', {
7686
7719
  // fill: 'white',
7687
7720
  // stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
7688
- // // strokeDashArray: [5, 5],
7721
+ // // s trokeDashArray: [5, 5],
7689
7722
  // }),
7690
7723
  // this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0), visible: false }),
7691
7724
  this.$(go.Panel, 'Auto', {
@@ -7695,7 +7728,7 @@ class AtoDefaultGojsEditor {
7695
7728
  fill: 'white',
7696
7729
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
7697
7730
  strokeDashArray: [5, 5],
7698
- }), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
7731
+ }, new go.Binding('fill', 'fill'), new go.Binding('stroke', 'stroke'), new go.Binding('strokeWidth', 'strokeWidth'), new go.Binding('strokeDashArray', 'strokeDashArray')), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
7699
7732
  row: 0,
7700
7733
  margin: new go.Margin(3, 0, 10, 0),
7701
7734
  desiredSize: new go.Size(size.w - 20, 15),
@@ -7728,10 +7761,14 @@ class AtoDefaultGojsEditor {
7728
7761
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7729
7762
  margin: 4,
7730
7763
  }, new go.Binding('text', 'name').makeTwoWay())),
7731
- }, new go.Binding('text', 'name').makeTwoWay()))), this.$(go.Panel, 'Horizontal', {
7732
- height: 16,
7733
- }, new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.group_visible) !== null && _a !== void 0 ? _a : false; }), this.$(go.TextBlock, '+Select Component', {
7734
- margin: new go.Margin(0, 2, 0, 0),
7764
+ }, new go.Binding('text', 'name').makeTwoWay()))), this.$(go.TextBlock, '', {
7765
+ alignment: go.Spot.TopLeft,
7766
+ margin: new go.Margin(4, 0, 0, 4),
7767
+ stroke: '#DC8FA9',
7768
+ font: 'bold 9pt Arial',
7769
+ textAlign: 'left',
7770
+ }, new go.Binding('text', '', (x) => x === null || x === void 0 ? void 0 : x.group_text), new go.Binding('stroke', '', (x) => x === null || x === void 0 ? void 0 : x.group_text_stroke))), this.$(go.Panel, 'Horizontal', new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.isCanSelectComponent) !== null && _a !== void 0 ? _a : false; }), this.$(go.TextBlock, '+Select Component', {
7771
+ margin: new go.Margin(4, 0, 0, 0),
7735
7772
  stroke: '#3863A6',
7736
7773
  font: 'bold 9pt Arial',
7737
7774
  textAlign: 'left',
@@ -7785,6 +7822,9 @@ class AtoDefaultGojsEditor {
7785
7822
  stroke: 'dodgerblue',
7786
7823
  strokeWidth: 4,
7787
7824
  }), this.$(go.Placeholder, { padding: 3 }), new go.Binding('height', '', (x) => {
7825
+ if (x === null || x === void 0 ? void 0 : x.plantCellNameBelong) {
7826
+ return 130;
7827
+ }
7788
7828
  if (x === null || x === void 0 ? void 0 : x.isSelectBox) {
7789
7829
  return 124;
7790
7830
  }
@@ -7798,24 +7838,30 @@ class AtoDefaultGojsEditor {
7798
7838
  AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
7799
7839
  AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
7800
7840
  ]))),
7841
+ }, new go.Binding('visible', 'visible'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('deletable', 'deletable'), new go.Binding('selectionAdorned', '', (x) => !(self === null || self === void 0 ? void 0 : self.isSelectBox)), new go.Binding('opacity', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.opacity) !== null && _a !== void 0 ? _a : 1; }), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', {
7842
+ alignment: go.Spot.Left,
7843
+ margin: new go.Margin(0, 0, 0, 0),
7844
+ }, this.$(go.TextBlock, {
7845
+ font: 'bold 10pt Arial',
7846
+ width: size.w,
7847
+ overflow: go.TextBlock.OverflowEllipsis,
7848
+ alignment: go.Spot.Center,
7849
+ wrap: go.TextBlock.None,
7801
7850
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7802
7851
  margin: 4,
7803
- }, new go.Binding('text', 'name').makeTwoWay())),
7804
- }, new go.Binding('visible', 'visible'), new go.Binding('movable', 'movable'), new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('deletable', 'deletable'), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', {
7805
- alignment: go.Spot.Left,
7806
- padding: new go.Margin(1, 1, 0, 1),
7807
- margin: new go.Margin(0, 0, 0, 4),
7808
- height: 14,
7809
- }, new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.isSelectBox) !== null && _a !== void 0 ? _a : false; })), this.$(go.Panel, 'Auto', {
7852
+ }, new go.Binding('text', 'plantCellNameBelong'))),
7853
+ }, new go.Binding('text', 'plantCellNameBelong')), new go.Binding('visible', '', (x) => ((x === null || x === void 0 ? void 0 : x.plantCellNameBelong) ? true : false))), this.$(go.Panel, 'Auto', {
7810
7854
  width: size.w,
7811
7855
  height: size.h,
7856
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7857
+ margin: 4,
7858
+ }, new go.Binding('text', 'name').makeTwoWay())),
7812
7859
  }, this.$(go.Shape, 'RoundedRectangle', {
7813
7860
  fill: 'white',
7814
7861
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
7815
- strokeWidth: 3,
7816
7862
  }, new go.Binding('fill', 'fill'), new go.Binding('stroke', '', (x) => {
7817
7863
  return (x === null || x === void 0 ? void 0 : x.isSelectBox) ? AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE : x === null || x === void 0 ? void 0 : x.stroke;
7818
- })), this.$(go.Panel, 'Table',
7864
+ }), new go.Binding('strokeWidth', 'strokeWidth')), this.$(go.Panel, 'Table',
7819
7865
  // this.$(go.TextBlock, title, {
7820
7866
  // row: 0,
7821
7867
  // margin: new go.Margin(3, 3, 10, 3),
@@ -7842,7 +7888,7 @@ class AtoDefaultGojsEditor {
7842
7888
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7843
7889
  margin: 4,
7844
7890
  }, new go.Binding('text', 'name').makeTwoWay())),
7845
- }, new go.Binding('text', 'name').makeTwoWay())),
7891
+ }, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('editable', 'editable'))),
7846
7892
  // this.$('CheckBox', '', {
7847
7893
  // alignment: go.Spot.TopLeft,
7848
7894
  // margin: new go.Margin(2, 0, 0, 2),
@@ -7852,7 +7898,13 @@ class AtoDefaultGojsEditor {
7852
7898
  // }
7853
7899
  // },
7854
7900
  // }),
7855
- this.$(go.TextBlock, '', {
7901
+ this.$(go.Picture, {
7902
+ alignment: go.Spot.TopRight,
7903
+ margin: new go.Margin(0, 0, 0, 0),
7904
+ source: ICONS_BASE64['uf14a'],
7905
+ height: 14,
7906
+ width: 14,
7907
+ }, new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.isSelectBox) !== null && _a !== void 0 ? _a : false; })), this.$(go.TextBlock, '', {
7856
7908
  alignment: go.Spot.TopLeft,
7857
7909
  margin: new go.Margin(2, 0, 0, 2),
7858
7910
  stroke: '#DC8FA9',
@@ -7879,18 +7931,7 @@ class AtoDefaultGojsEditor {
7879
7931
  alignmentFocus: new go.Spot(1, 0.5, -8, 0),
7880
7932
  }),
7881
7933
  // four named ports, one on each side:
7882
- this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false))),
7883
- // Select box
7884
- this.$(go.Panel, 'Auto', {
7885
- alignment: go.Spot.TopRight,
7886
- alignmentFocus: go.Spot.TopRight,
7887
- }, new go.Binding('visible', '', (x) => { var _a; return (_a = x === null || x === void 0 ? void 0 : x.isSelectBox) !== null && _a !== void 0 ? _a : false; }), this.$(go.Picture, {
7888
- alignment: go.Spot.Right,
7889
- margin: new go.Margin(2, 0, 0, 0),
7890
- source: ICONS_BASE64['uf14a'],
7891
- height: 17,
7892
- width: 14,
7893
- })));
7934
+ this.makePort('T', go.Spot.Top, go.Spot.TopSide, false, true), this.makePort('L', go.Spot.Left, go.Spot.LeftSide, false, true), this.makePort('R', go.Spot.Right, go.Spot.RightSide, true, false), this.makePort('B', go.Spot.Bottom, go.Spot.BottomSide, true, false))));
7894
7935
  this.myDiagram.nodeTemplateMap.set(title, node);
7895
7936
  }
7896
7937
  editTextGroupZone(e, button) {
@@ -8109,7 +8150,7 @@ class AtoDefaultGojsEditor {
8109
8150
  const diagram = fromnode.diagram;
8110
8151
  const model = diagram.model;
8111
8152
  const nodedata = Object.assign(Object.assign({}, model.copyNodeData(dragData)), { key: UtilsService.generateUUID() });
8112
- model.addNodeData(Object.assign(Object.assign({}, nodedata), { isEditable: true, shortenedNumber: 0, isFormat: false, dataCollectionMethod: AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL, color: AtoGojsEditorModel.COLOR_COLLECTION_METHOD[AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL].color, group: (_a = fromnode === null || fromnode === void 0 ? void 0 : fromnode.ob) === null || _a === void 0 ? void 0 : _a.group, value: 0 }));
8153
+ model.addNodeData(Object.assign(Object.assign({}, nodedata), { isEditable: true, shortenedNumber: 0, isFormat: false, dataCollectionMethod: AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL, color: AtoGojsEditorModel.COLOR_COLLECTION_METHOD[AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL].color, group: (_a = fromnode === null || fromnode === void 0 ? void 0 : fromnode.ob) === null || _a === void 0 ? void 0 : _a.group, value: 0, parentTopologyId: this.topologyId }));
8113
8154
  const newnode = diagram.findNodeForData(nodedata);
8114
8155
  const linkdata = model.copyLinkData({});
8115
8156
  model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
@@ -9790,7 +9831,7 @@ class AtoDefaultGojsEditor {
9790
9831
  }
9791
9832
  }
9792
9833
  AtoDefaultGojsEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
9793
- AtoDefaultGojsEditor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AtoDefaultGojsEditor, inputs: { linkValidation: "linkValidation", initialOptions: "initialOptions", editor: "editor", isShowNodeInfo: "isShowNodeInfo", isSelectBox: "isSelectBox", plantSatus: "plantSatus" }, outputs: { onModelChangeListenerEvent: "onModelChangeListenerEvent", onClickInfoButton: "onClickInfoButton", onOpenWizard: "onOpenWizard", onOpenDetail: "onOpenDetail", onOpenAssetParameter: "onOpenAssetParameter", onOpenInsightMapping: "onOpenInsightMapping", onHoverInfoButton: "onHoverInfoButton", onHoverAlert: "onHoverAlert", onDoubleClickNode: "onDoubleClickNode", onOpenChangeIcon: "onOpenChangeIcon", onClickCompoent: "onClickCompoent", callbackImageTopology: "callbackImageTopology", onClikParamOfTable: "onClikParamOfTable", onDeleteNode: "onDeleteNode", onUndo: "onUndo", onRename: "onRename" }, viewQueries: [{ propertyName: "menuTrigger", first: true, predicate: ["menuTrigger"], descendants: true }], ngImport: i0 });
9834
+ AtoDefaultGojsEditor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.10", type: AtoDefaultGojsEditor, inputs: { linkValidation: "linkValidation", topologyId: "topologyId", initialOptions: "initialOptions", editor: "editor", isShowNodeInfo: "isShowNodeInfo", isSelectBox: "isSelectBox", plantSatus: "plantSatus" }, outputs: { onModelChangeListenerEvent: "onModelChangeListenerEvent", onClickInfoButton: "onClickInfoButton", onOpenWizard: "onOpenWizard", onOpenDetail: "onOpenDetail", onOpenAssetParameter: "onOpenAssetParameter", onOpenInsightMapping: "onOpenInsightMapping", onHoverInfoButton: "onHoverInfoButton", onHoverAlert: "onHoverAlert", onDoubleClickNode: "onDoubleClickNode", onOpenChangeIcon: "onOpenChangeIcon", onClickCompoent: "onClickCompoent", callbackImageTopology: "callbackImageTopology", onClikParamOfTable: "onClikParamOfTable", onDeleteNode: "onDeleteNode", onUndo: "onUndo", onRename: "onRename" }, viewQueries: [{ propertyName: "menuTrigger", first: true, predicate: ["menuTrigger"], descendants: true }], ngImport: i0 });
9794
9835
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, decorators: [{
9795
9836
  type: Directive
9796
9837
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { menuTrigger: [{
@@ -9798,6 +9839,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
9798
9839
  args: ['menuTrigger']
9799
9840
  }], linkValidation: [{
9800
9841
  type: Input
9842
+ }], topologyId: [{
9843
+ type: Input
9801
9844
  }], initialOptions: [{
9802
9845
  type: Input
9803
9846
  }], editor: [{