ato-water-lib 0.0.138 → 0.0.139

Sign up to get free protection for your applications and to get access to all the features.
@@ -7051,6 +7051,7 @@ class AtoDefaultGojsEditor {
7051
7051
  : null;
7052
7052
  }
7053
7053
  },
7054
+ selectionAdorned: false,
7054
7055
  selectionAdornmentTemplate: this._initialOptions.isReadOnly || this.isSelectBox
7055
7056
  ? null
7056
7057
  : this.$(go.Adornment, 'Spot', this.$(go.Panel, 'Auto',
@@ -7086,7 +7087,7 @@ class AtoDefaultGojsEditor {
7086
7087
  AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
7087
7088
  ])
7088
7089
  : {})),
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'),
7090
+ }, 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
7091
  // new go.Binding('alignment', 'alignment', function(loc) {
7091
7092
  // return new go.Spot(0, 0, loc.x, 0);
7092
7093
  // }).ofObject(),
@@ -7107,7 +7108,7 @@ class AtoDefaultGojsEditor {
7107
7108
  source: ICONS_BASE64['uf2f6_output'],
7108
7109
  height: 14,
7109
7110
  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', {
7111
+ }, 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
7112
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7112
7113
  margin: 2,
7113
7114
  }, new go.Binding('text', '', function (data) {
@@ -7133,10 +7134,19 @@ class AtoDefaultGojsEditor {
7133
7134
  fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
7134
7135
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
7135
7136
  name: 'textNodeShape',
7137
+ strokeWidth: 1,
7136
7138
  }, 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;
7139
+ var _a;
7140
+ if (x === null || x === void 0 ? void 0 : x.isSelectBox) {
7141
+ return AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE;
7142
+ }
7143
+ return (_a = x === null || x === void 0 ? void 0 : x.stroke) !== null && _a !== void 0 ? _a : AtoGojsEditorModel.ENUM_COLORS.LINK_WATER;
7138
7144
  }), 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;
7145
+ var _a;
7146
+ if (x === null || x === void 0 ? void 0 : x.isSelectBox) {
7147
+ return 3;
7148
+ }
7149
+ return (_a = x === null || x === void 0 ? void 0 : x.strokeWidth) !== null && _a !== void 0 ? _a : 1;
7140
7150
  })), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', { alignment: go.Spot.Center },
7141
7151
  // Alert
7142
7152
  this.$(go.Panel, 'Auto', {
@@ -7203,25 +7213,15 @@ class AtoDefaultGojsEditor {
7203
7213
  // }
7204
7214
  // },
7205
7215
  // }),
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', {
7216
+ this.$(go.Picture, {
7216
7217
  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),
7218
+ margin: new go.Margin(0, 0, 0, 0),
7221
7219
  source: ICONS_BASE64['uf14a'],
7222
- height: 17,
7220
+ height: 14,
7223
7221
  width: 14,
7224
- })));
7222
+ }, 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', {
7223
+ height: 16,
7224
+ }, 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
7225
  this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE, node);
7226
7226
  }
7227
7227
  arrowForPlantCell(size, flowDirection) {
@@ -7393,7 +7393,12 @@ class AtoDefaultGojsEditor {
7393
7393
  fill: null,
7394
7394
  stroke: 'dodgerblue',
7395
7395
  strokeWidth: 4,
7396
- }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
7396
+ }), this.$(go.Placeholder, { padding: 3 }), new go.Binding('height', '', (x) => {
7397
+ if (x === null || x === void 0 ? void 0 : x.plantCellNameBelong) {
7398
+ return 130;
7399
+ }
7400
+ return null;
7401
+ })), this.$(go.Panel, 'Horizontal', {
7397
7402
  alignment: go.Spot.TopRight,
7398
7403
  alignmentFocus: go.Spot.Bottom,
7399
7404
  background: 'white',
@@ -7421,28 +7426,43 @@ class AtoDefaultGojsEditor {
7421
7426
  AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
7422
7427
  ])
7423
7428
  : {})),
7424
- toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7425
- margin: 4,
7426
- }, new go.Binding('text', 'name').makeTwoWay())),
7427
7429
  },
7428
7430
  // 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', {
7431
+ 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
7432
  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', {
7433
+ margin: new go.Margin(0, 0, 0, 0),
7434
+ }, this.$(go.TextBlock, {
7435
+ font: 'bold 10pt Arial',
7436
+ width: size.w,
7437
+ overflow: go.TextBlock.OverflowEllipsis,
7438
+ alignment: go.Spot.Center,
7439
+ wrap: go.TextBlock.None,
7440
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7441
+ margin: 4,
7442
+ }, new go.Binding('text', 'plantCellNameBelong'))),
7443
+ }, 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
7444
  width: size.w,
7436
7445
  height: size.h,
7446
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7447
+ margin: 4,
7448
+ }, new go.Binding('text', 'name').makeTwoWay())),
7437
7449
  }, this.$(go.Shape, 'RoundedRectangle', {
7438
7450
  fill: 'white',
7439
7451
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
7440
7452
  strokeWidth: 1,
7441
7453
  // strokeDashArray: [5, 5],
7442
7454
  }, 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;
7455
+ var _a;
7456
+ if (x === null || x === void 0 ? void 0 : x.isSelectBox) {
7457
+ return AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE;
7458
+ }
7459
+ return (_a = x === null || x === void 0 ? void 0 : x.stroke) !== null && _a !== void 0 ? _a : AtoGojsEditorModel.ENUM_COLORS.LINK_WATER;
7444
7460
  }), 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;
7461
+ var _a;
7462
+ if (x === null || x === void 0 ? void 0 : x.isSelectBox) {
7463
+ return 3;
7464
+ }
7465
+ return (_a = x === null || x === void 0 ? void 0 : x.strokeWidth) !== null && _a !== void 0 ? _a : 1;
7446
7466
  })), this.$(go.Panel, 'Table', this.$(go.Picture, icon, {
7447
7467
  row: 1,
7448
7468
  alignment: go.Spot.Center,
@@ -7472,18 +7492,37 @@ class AtoDefaultGojsEditor {
7472
7492
  return !(((_a = AtoGojsEditorModel.TYPE_COMPONENT_WATER) === null || _a === void 0 ? void 0 : _a.includes(data === null || data === void 0 ? void 0 : data.systemType)) &&
7473
7493
  (data === null || data === void 0 ? void 0 : data.topologyType) !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
7474
7494
  (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', {
7495
+ }))), this.$(go.Picture, {
7478
7496
  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),
7497
+ margin: new go.Margin(0, 0, 0, 0),
7483
7498
  source: ICONS_BASE64['uf14a'],
7484
- height: 17,
7499
+ height: 14,
7485
7500
  width: 14,
7486
- })), this.$(go.Panel, 'Vertical', {
7501
+ }, 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, '', {
7502
+ alignment: go.Spot.TopLeft,
7503
+ margin: new go.Margin(2, 0, 0, 2),
7504
+ stroke: '#DC8FA9',
7505
+ font: 'bold 9pt Arial',
7506
+ textAlign: 'left',
7507
+ }, 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)))),
7508
+ // Select box
7509
+ // this.$(
7510
+ // go.Panel,
7511
+ // 'Auto',
7512
+ // {
7513
+ // alignment: go.Spot.TopRight,
7514
+ // alignmentFocus: go.Spot.TopRight,
7515
+ // },
7516
+ // // new go.Binding('visible', '', (x) => x?.isSelectBox ?? false),
7517
+ // this.$(go.Picture, {
7518
+ // alignment: go.Spot.Right,
7519
+ // margin: new go.Margin(2, 0, 0, 0),
7520
+ // source: ICONS_BASE64['uf14a'],
7521
+ // height: 17,
7522
+ // width: 14,
7523
+ // }),
7524
+ // ),
7525
+ this.$(go.Panel, 'Vertical', {
7487
7526
  alignment: go.Spot.Left,
7488
7527
  alignmentFocus: new go.Spot(0, 0.5, 8, 0),
7489
7528
  }), this.$(go.Panel, 'Vertical', {
@@ -7627,7 +7666,6 @@ class AtoDefaultGojsEditor {
7627
7666
  },
7628
7667
  click: (e, obj) => {
7629
7668
  var _a, _b, _c, _d;
7630
- console.log('TEST');
7631
7669
  if ((_a = obj === null || obj === void 0 ? void 0 : obj.data) === null || _a === void 0 ? void 0 : _a.onSelected) {
7632
7670
  (_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
7671
  self.onClickCompoent.emit({
@@ -7681,11 +7719,11 @@ class AtoDefaultGojsEditor {
7681
7719
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7682
7720
  margin: 4,
7683
7721
  }, 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 },
7722
+ }, 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
7723
  // this.$(go.Shape, 'RoundedRectangle', {
7686
7724
  // fill: 'white',
7687
7725
  // stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
7688
- // // strokeDashArray: [5, 5],
7726
+ // // s trokeDashArray: [5, 5],
7689
7727
  // }),
7690
7728
  // this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0), visible: false }),
7691
7729
  this.$(go.Panel, 'Auto', {
@@ -7695,7 +7733,7 @@ class AtoDefaultGojsEditor {
7695
7733
  fill: 'white',
7696
7734
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
7697
7735
  strokeDashArray: [5, 5],
7698
- }), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
7736
+ }, 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
7737
  row: 0,
7700
7738
  margin: new go.Margin(3, 0, 10, 0),
7701
7739
  desiredSize: new go.Size(size.w - 20, 15),
@@ -7728,10 +7766,14 @@ class AtoDefaultGojsEditor {
7728
7766
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7729
7767
  margin: 4,
7730
7768
  }, 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),
7769
+ }, new go.Binding('text', 'name').makeTwoWay()))), this.$(go.TextBlock, '', {
7770
+ alignment: go.Spot.TopLeft,
7771
+ margin: new go.Margin(4, 0, 0, 4),
7772
+ stroke: '#DC8FA9',
7773
+ font: 'bold 9pt Arial',
7774
+ textAlign: 'left',
7775
+ }, 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', {
7776
+ margin: new go.Margin(4, 0, 0, 0),
7735
7777
  stroke: '#3863A6',
7736
7778
  font: 'bold 9pt Arial',
7737
7779
  textAlign: 'left',
@@ -7785,6 +7827,9 @@ class AtoDefaultGojsEditor {
7785
7827
  stroke: 'dodgerblue',
7786
7828
  strokeWidth: 4,
7787
7829
  }), this.$(go.Placeholder, { padding: 3 }), new go.Binding('height', '', (x) => {
7830
+ if (x === null || x === void 0 ? void 0 : x.plantCellNameBelong) {
7831
+ return 130;
7832
+ }
7788
7833
  if (x === null || x === void 0 ? void 0 : x.isSelectBox) {
7789
7834
  return 124;
7790
7835
  }
@@ -7798,24 +7843,30 @@ class AtoDefaultGojsEditor {
7798
7843
  AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
7799
7844
  AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
7800
7845
  ]))),
7846
+ }, 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', {
7847
+ alignment: go.Spot.Left,
7848
+ margin: new go.Margin(0, 0, 0, 0),
7849
+ }, this.$(go.TextBlock, {
7850
+ font: 'bold 10pt Arial',
7851
+ width: size.w,
7852
+ overflow: go.TextBlock.OverflowEllipsis,
7853
+ alignment: go.Spot.Center,
7854
+ wrap: go.TextBlock.None,
7801
7855
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7802
7856
  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', {
7857
+ }, new go.Binding('text', 'plantCellNameBelong'))),
7858
+ }, 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
7859
  width: size.w,
7811
7860
  height: size.h,
7861
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
7862
+ margin: 4,
7863
+ }, new go.Binding('text', 'name').makeTwoWay())),
7812
7864
  }, this.$(go.Shape, 'RoundedRectangle', {
7813
7865
  fill: 'white',
7814
7866
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
7815
- strokeWidth: 3,
7816
7867
  }, new go.Binding('fill', 'fill'), new go.Binding('stroke', '', (x) => {
7817
7868
  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',
7869
+ }), new go.Binding('strokeWidth', 'strokeWidth')), this.$(go.Panel, 'Table',
7819
7870
  // this.$(go.TextBlock, title, {
7820
7871
  // row: 0,
7821
7872
  // margin: new go.Margin(3, 3, 10, 3),
@@ -7852,7 +7903,13 @@ class AtoDefaultGojsEditor {
7852
7903
  // }
7853
7904
  // },
7854
7905
  // }),
7855
- this.$(go.TextBlock, '', {
7906
+ this.$(go.Picture, {
7907
+ alignment: go.Spot.TopRight,
7908
+ margin: new go.Margin(0, 0, 0, 0),
7909
+ source: ICONS_BASE64['uf14a'],
7910
+ height: 14,
7911
+ width: 14,
7912
+ }, 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
7913
  alignment: go.Spot.TopLeft,
7857
7914
  margin: new go.Margin(2, 0, 0, 2),
7858
7915
  stroke: '#DC8FA9',
@@ -7879,18 +7936,7 @@ class AtoDefaultGojsEditor {
7879
7936
  alignmentFocus: new go.Spot(1, 0.5, -8, 0),
7880
7937
  }),
7881
7938
  // 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
- })));
7939
+ 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
7940
  this.myDiagram.nodeTemplateMap.set(title, node);
7895
7941
  }
7896
7942
  editTextGroupZone(e, button) {
@@ -8109,7 +8155,7 @@ class AtoDefaultGojsEditor {
8109
8155
  const diagram = fromnode.diagram;
8110
8156
  const model = diagram.model;
8111
8157
  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 }));
8158
+ 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
8159
  const newnode = diagram.findNodeForData(nodedata);
8114
8160
  const linkdata = model.copyLinkData({});
8115
8161
  model.setFromKeyForLinkData(linkdata, model.getKeyForNodeData(fromnode.data));
@@ -9790,7 +9836,7 @@ class AtoDefaultGojsEditor {
9790
9836
  }
9791
9837
  }
9792
9838
  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 });
9839
+ 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
9840
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, decorators: [{
9795
9841
  type: Directive
9796
9842
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { menuTrigger: [{
@@ -9798,6 +9844,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
9798
9844
  args: ['menuTrigger']
9799
9845
  }], linkValidation: [{
9800
9846
  type: Input
9847
+ }], topologyId: [{
9848
+ type: Input
9801
9849
  }], initialOptions: [{
9802
9850
  type: Input
9803
9851
  }], editor: [{