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.
@@ -8205,7 +8205,15 @@ class AtoDefaultGojsEditor {
8205
8205
  })
8206
8206
  : null;
8207
8207
  }
8208
+ if (this.isSelectBox) {
8209
+ self.onClickInfoButton.emit({
8210
+ left: e?.['Wr']?.x,
8211
+ top: e?.['Wr']?.y,
8212
+ node: node,
8213
+ });
8214
+ }
8208
8215
  },
8216
+ selectionAdorned: false,
8209
8217
  selectionAdornmentTemplate: this._initialOptions.isReadOnly || this.isSelectBox
8210
8218
  ? null
8211
8219
  : this.$(go.Adornment, 'Spot', this.$(go.Panel, 'Auto',
@@ -8241,7 +8249,7 @@ class AtoDefaultGojsEditor {
8241
8249
  AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
8242
8250
  ])
8243
8251
  : {})),
8244
- }, 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'),
8252
+ }, 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?.isSelectBox), new go.Binding('opacity', '', (x) => x?.opacity ?? 1),
8245
8253
  // new go.Binding('alignment', 'alignment', function(loc) {
8246
8254
  // return new go.Spot(0, 0, loc.x, 0);
8247
8255
  // }).ofObject(),
@@ -8262,10 +8270,13 @@ class AtoDefaultGojsEditor {
8262
8270
  source: ICONS_BASE64['uf2f6_output'],
8263
8271
  height: 14,
8264
8272
  width: 14,
8265
- }, new go.Binding('source', '', (x) => ICONS_BASE64[x?.group_source_icon])), new go.Binding('visible', '', (x) => (x?.group_visible || x?.isSelectBox) ?? false)), this.$(go.Panel, 'Auto', {
8273
+ }, new go.Binding('source', '', (x) => ICONS_BASE64[x?.group_source_icon])), new go.Binding('visible', '', (x) => x?.group_visible ?? false)), this.$(go.Panel, 'Auto', {
8266
8274
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
8267
8275
  margin: 2,
8268
8276
  }, new go.Binding('text', '', function (data) {
8277
+ if (self.isSelectBox) {
8278
+ return data?.name;
8279
+ }
8269
8280
  if (!self._initialOptions.isReadOnly) {
8270
8281
  return data?.name ?? VALUE_NA;
8271
8282
  }
@@ -8287,10 +8298,17 @@ class AtoDefaultGojsEditor {
8287
8298
  fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
8288
8299
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
8289
8300
  name: 'textNodeShape',
8301
+ strokeWidth: 1,
8290
8302
  }, new go.Binding('fill', 'fill'), new go.Binding('stroke', '', (x) => {
8291
- return x?.isSelectBox ? AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE : x?.stroke;
8303
+ if (x?.isSelectBox) {
8304
+ return AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE;
8305
+ }
8306
+ return x?.stroke ?? AtoGojsEditorModel.ENUM_COLORS.LINK_WATER;
8292
8307
  }), new go.Binding('strokeWidth', '', (x) => {
8293
- return x?.isSelectBox ? 3 : x?.strokeWidth;
8308
+ if (x?.isSelectBox) {
8309
+ return 3;
8310
+ }
8311
+ return x?.strokeWidth ?? 1;
8294
8312
  })), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', { alignment: go.Spot.Center },
8295
8313
  // Alert
8296
8314
  this.$(go.Panel, 'Auto', {
@@ -8356,25 +8374,15 @@ class AtoDefaultGojsEditor {
8356
8374
  // }
8357
8375
  // },
8358
8376
  // }),
8359
- // this.$(go.Picture, {
8360
- // alignment: go.Spot.TopRight,
8361
- // margin: new go.Margin(10, 10, 10, 10),
8362
- // source: ICONS_BASE64['uf2f6_output'],
8363
- // height: 14,
8364
- // width: 14,
8365
- // }),
8366
- 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', {
8367
- height: 16,
8368
- }, new go.Binding('visible', '', (x) => (x?.group_visible || x?.isSelectBox) ?? false))), this.$(go.Panel, 'Auto', {
8377
+ this.$(go.Picture, {
8369
8378
  alignment: go.Spot.TopRight,
8370
- alignmentFocus: go.Spot.TopRight,
8371
- }, new go.Binding('visible', '', (x) => x?.isSelectBox ?? false), this.$(go.Picture, {
8372
- alignment: go.Spot.Right,
8373
- margin: new go.Margin(2, 0, 0, 0),
8379
+ margin: new go.Margin(0, 0, 0, 0),
8374
8380
  source: ICONS_BASE64['uf14a'],
8375
- height: 17,
8381
+ height: 14,
8376
8382
  width: 14,
8377
- })));
8383
+ }, new go.Binding('visible', '', (x) => x?.isSelectBox ?? 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', {
8384
+ height: 16,
8385
+ }, new go.Binding('visible', '', (x) => x?.group_visible ?? false))));
8378
8386
  this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE, node);
8379
8387
  }
8380
8388
  arrowForPlantCell(size, flowDirection) {
@@ -8540,7 +8548,12 @@ class AtoDefaultGojsEditor {
8540
8548
  fill: null,
8541
8549
  stroke: 'dodgerblue',
8542
8550
  strokeWidth: 4,
8543
- }), this.$(go.Placeholder, { padding: 3 })), this.$(go.Panel, 'Horizontal', {
8551
+ }), this.$(go.Placeholder, { padding: 3 }), new go.Binding('height', '', (x) => {
8552
+ if (x?.plantCellNameBelong) {
8553
+ return 130;
8554
+ }
8555
+ return null;
8556
+ })), this.$(go.Panel, 'Horizontal', {
8544
8557
  alignment: go.Spot.TopRight,
8545
8558
  alignmentFocus: go.Spot.Bottom,
8546
8559
  background: 'white',
@@ -8568,28 +8581,41 @@ class AtoDefaultGojsEditor {
8568
8581
  AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
8569
8582
  ])
8570
8583
  : {})),
8571
- toolTip: this.$('ToolTip', this.$(go.TextBlock, {
8572
- margin: 4,
8573
- }, new go.Binding('text', 'name').makeTwoWay())),
8574
8584
  },
8575
8585
  // new go.Binding('location', 'loc', go.Point.parse),
8576
- 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', {
8586
+ 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?.isSelectBox), new go.Binding('opacity', '', (x) => x?.opacity ?? 1), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', {
8577
8587
  alignment: go.Spot.Left,
8578
- padding: new go.Margin(1, 1, 0, 1),
8579
- margin: new go.Margin(0, 0, 0, 4),
8580
- height: 14,
8581
- }, new go.Binding('visible', '', (x) => x?.isSelectBox ?? false)), this.$(go.Panel, 'Auto', {
8588
+ margin: new go.Margin(0, 0, 0, 0),
8589
+ }, this.$(go.TextBlock, {
8590
+ font: 'bold 10pt Arial',
8591
+ width: size.w,
8592
+ overflow: go.TextBlock.OverflowEllipsis,
8593
+ alignment: go.Spot.Center,
8594
+ wrap: go.TextBlock.None,
8595
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
8596
+ margin: 4,
8597
+ }, new go.Binding('text', 'plantCellNameBelong'))),
8598
+ }, new go.Binding('text', 'plantCellNameBelong')), new go.Binding('visible', '', (x) => (x?.plantCellNameBelong ? true : false))), this.$(go.Panel, 'Auto', {
8582
8599
  width: size.w,
8583
8600
  height: size.h,
8601
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
8602
+ margin: 4,
8603
+ }, new go.Binding('text', 'name').makeTwoWay())),
8584
8604
  }, this.$(go.Shape, 'RoundedRectangle', {
8585
8605
  fill: 'white',
8586
8606
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
8587
8607
  strokeWidth: 1,
8588
8608
  // strokeDashArray: [5, 5],
8589
8609
  }, new go.Binding('fill', 'fill'), new go.Binding('stroke', '', (x) => {
8590
- return x?.isSelectBox ? AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE : x?.stroke;
8610
+ if (x?.isSelectBox) {
8611
+ return AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE;
8612
+ }
8613
+ return x?.stroke ?? AtoGojsEditorModel.ENUM_COLORS.LINK_WATER;
8591
8614
  }), new go.Binding('strokeWidth', '', (x) => {
8592
- return x?.isSelectBox ? 3 : x?.strokeWidth;
8615
+ if (x?.isSelectBox) {
8616
+ return 3;
8617
+ }
8618
+ return x?.strokeWidth ?? 1;
8593
8619
  })), this.$(go.Panel, 'Table', this.$(go.Picture, icon, {
8594
8620
  row: 1,
8595
8621
  alignment: go.Spot.Center,
@@ -8615,27 +8641,31 @@ class AtoDefaultGojsEditor {
8615
8641
  overflow: go.TextBlock.OverflowEllipsis,
8616
8642
  toolTip: this.$('ToolTip', this.$(go.TextBlock, { margin: 4 }, new go.Binding('text', 'name'))),
8617
8643
  }, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('editable', '', (data) => {
8644
+ if (data?.editable !== undefined) {
8645
+ return data?.editable;
8646
+ }
8618
8647
  return !(AtoGojsEditorModel.TYPE_COMPONENT_WATER?.includes(data?.systemType) &&
8619
8648
  data?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
8620
8649
  data?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL);
8621
- }))))),
8622
- // Select box
8623
- this.$(go.Panel, 'Auto', {
8650
+ }))), this.$(go.Picture, {
8624
8651
  alignment: go.Spot.TopRight,
8625
- alignmentFocus: go.Spot.TopRight,
8626
- }, new go.Binding('visible', '', (x) => x?.isSelectBox ?? false), this.$(go.Picture, {
8627
- alignment: go.Spot.Right,
8628
- margin: new go.Margin(2, 0, 0, 0),
8652
+ margin: new go.Margin(0, 0, 0, 0),
8629
8653
  source: ICONS_BASE64['uf14a'],
8630
- height: 17,
8654
+ height: 14,
8631
8655
  width: 14,
8632
- })), this.$(go.Panel, 'Vertical', {
8656
+ }, new go.Binding('visible', '', (x) => x?.isSelectBox ?? false)), this.$(go.Panel, 'Vertical', {
8633
8657
  alignment: go.Spot.Left,
8634
8658
  alignmentFocus: new go.Spot(0, 0.5, 8, 0),
8635
8659
  }), this.$(go.Panel, 'Vertical', {
8636
8660
  alignment: go.Spot.Right,
8637
8661
  alignmentFocus: new go.Spot(1, 0.5, -8, 0),
8638
- }), 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));
8662
+ }), 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, '', {
8663
+ alignment: go.Spot.TopLeft,
8664
+ margin: new go.Margin(2, 0, 0, 2),
8665
+ stroke: '#DC8FA9',
8666
+ font: 'bold 9pt Arial',
8667
+ textAlign: 'left',
8668
+ }, new go.Binding('text', '', (x) => x?.group_text), new go.Binding('stroke', '', (x) => x?.group_text_stroke)))));
8639
8669
  this.myDiagram.nodeTemplateMap.set(title, node);
8640
8670
  }
8641
8671
  makeEntityTemplateEnergy(icon, title, size = {
@@ -8768,7 +8798,6 @@ class AtoDefaultGojsEditor {
8768
8798
  // self.onHoverAlert.emit(null);
8769
8799
  },
8770
8800
  click: (e, obj) => {
8771
- console.log('TEST');
8772
8801
  if (obj?.data?.onSelected) {
8773
8802
  obj?.data?.onSelected(obj?.data);
8774
8803
  self.onClickCompoent.emit({
@@ -8820,11 +8849,11 @@ class AtoDefaultGojsEditor {
8820
8849
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
8821
8850
  margin: 4,
8822
8851
  }, new go.Binding('text', 'name').makeTwoWay())),
8823
- }, 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 },
8852
+ }, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), new go.Binding('deletable', 'deletable'), new go.Binding('selectionAdorned', '', (x) => !x?.isNodeSelectionAdorned), new go.Binding('visible', 'visible'), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Auto', { width: size.w, height: size.h },
8824
8853
  // this.$(go.Shape, 'RoundedRectangle', {
8825
8854
  // fill: 'white',
8826
8855
  // stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
8827
- // // strokeDashArray: [5, 5],
8856
+ // // s trokeDashArray: [5, 5],
8828
8857
  // }),
8829
8858
  // this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0), visible: false }),
8830
8859
  this.$(go.Panel, 'Auto', {
@@ -8834,7 +8863,7 @@ class AtoDefaultGojsEditor {
8834
8863
  fill: 'white',
8835
8864
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
8836
8865
  strokeDashArray: [5, 5],
8837
- }), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
8866
+ }, 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, {
8838
8867
  row: 0,
8839
8868
  margin: new go.Margin(3, 0, 10, 0),
8840
8869
  desiredSize: new go.Size(size.w - 20, 15),
@@ -8868,10 +8897,14 @@ class AtoDefaultGojsEditor {
8868
8897
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
8869
8898
  margin: 4,
8870
8899
  }, new go.Binding('text', 'name').makeTwoWay())),
8871
- }, new go.Binding('text', 'name').makeTwoWay()))), this.$(go.Panel, 'Horizontal', {
8872
- height: 16,
8873
- }, new go.Binding('visible', '', (x) => x?.group_visible ?? false), this.$(go.TextBlock, '+Select Component', {
8874
- margin: new go.Margin(0, 2, 0, 0),
8900
+ }, new go.Binding('text', 'name').makeTwoWay()))), this.$(go.TextBlock, '', {
8901
+ alignment: go.Spot.TopLeft,
8902
+ margin: new go.Margin(4, 0, 0, 4),
8903
+ stroke: '#DC8FA9',
8904
+ font: 'bold 9pt Arial',
8905
+ textAlign: 'left',
8906
+ }, new go.Binding('text', '', (x) => x?.group_text), new go.Binding('stroke', '', (x) => x?.group_text_stroke))), this.$(go.Panel, 'Horizontal', new go.Binding('visible', '', (x) => x?.isCanSelectComponent ?? false), this.$(go.TextBlock, '+Select Component', {
8907
+ margin: new go.Margin(4, 0, 0, 0),
8875
8908
  stroke: '#3863A6',
8876
8909
  font: 'bold 9pt Arial',
8877
8910
  textAlign: 'left',
@@ -8923,6 +8956,9 @@ class AtoDefaultGojsEditor {
8923
8956
  stroke: 'dodgerblue',
8924
8957
  strokeWidth: 4,
8925
8958
  }), this.$(go.Placeholder, { padding: 3 }), new go.Binding('height', '', (x) => {
8959
+ if (x?.plantCellNameBelong) {
8960
+ return 130;
8961
+ }
8926
8962
  if (x?.isSelectBox) {
8927
8963
  return 124;
8928
8964
  }
@@ -8936,24 +8972,30 @@ class AtoDefaultGojsEditor {
8936
8972
  AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
8937
8973
  AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
8938
8974
  ]))),
8975
+ }, 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?.isSelectBox), new go.Binding('opacity', '', (x) => x?.opacity ?? 1), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', {
8976
+ alignment: go.Spot.Left,
8977
+ margin: new go.Margin(0, 0, 0, 0),
8978
+ }, this.$(go.TextBlock, {
8979
+ font: 'bold 10pt Arial',
8980
+ width: size.w,
8981
+ overflow: go.TextBlock.OverflowEllipsis,
8982
+ alignment: go.Spot.Center,
8983
+ wrap: go.TextBlock.None,
8939
8984
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
8940
8985
  margin: 4,
8941
- }, new go.Binding('text', 'name').makeTwoWay())),
8942
- }, 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', {
8943
- alignment: go.Spot.Left,
8944
- padding: new go.Margin(1, 1, 0, 1),
8945
- margin: new go.Margin(0, 0, 0, 4),
8946
- height: 14,
8947
- }, new go.Binding('visible', '', (x) => x?.isSelectBox ?? false)), this.$(go.Panel, 'Auto', {
8986
+ }, new go.Binding('text', 'plantCellNameBelong'))),
8987
+ }, new go.Binding('text', 'plantCellNameBelong')), new go.Binding('visible', '', (x) => (x?.plantCellNameBelong ? true : false))), this.$(go.Panel, 'Auto', {
8948
8988
  width: size.w,
8949
8989
  height: size.h,
8990
+ toolTip: this.$('ToolTip', this.$(go.TextBlock, {
8991
+ margin: 4,
8992
+ }, new go.Binding('text', 'name').makeTwoWay())),
8950
8993
  }, this.$(go.Shape, 'RoundedRectangle', {
8951
8994
  fill: 'white',
8952
8995
  stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
8953
- strokeWidth: 3,
8954
8996
  }, new go.Binding('fill', 'fill'), new go.Binding('stroke', '', (x) => {
8955
8997
  return x?.isSelectBox ? AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE : x?.stroke;
8956
- })), this.$(go.Panel, 'Table',
8998
+ }), new go.Binding('strokeWidth', 'strokeWidth')), this.$(go.Panel, 'Table',
8957
8999
  // this.$(go.TextBlock, title, {
8958
9000
  // row: 0,
8959
9001
  // margin: new go.Margin(3, 3, 10, 3),
@@ -8980,7 +9022,7 @@ class AtoDefaultGojsEditor {
8980
9022
  toolTip: this.$('ToolTip', this.$(go.TextBlock, {
8981
9023
  margin: 4,
8982
9024
  }, new go.Binding('text', 'name').makeTwoWay())),
8983
- }, new go.Binding('text', 'name').makeTwoWay())),
9025
+ }, new go.Binding('text', 'name').makeTwoWay(), new go.Binding('editable', 'editable'))),
8984
9026
  // this.$('CheckBox', '', {
8985
9027
  // alignment: go.Spot.TopLeft,
8986
9028
  // margin: new go.Margin(2, 0, 0, 2),
@@ -8990,7 +9032,13 @@ class AtoDefaultGojsEditor {
8990
9032
  // }
8991
9033
  // },
8992
9034
  // }),
8993
- this.$(go.TextBlock, '', {
9035
+ this.$(go.Picture, {
9036
+ alignment: go.Spot.TopRight,
9037
+ margin: new go.Margin(0, 0, 0, 0),
9038
+ source: ICONS_BASE64['uf14a'],
9039
+ height: 14,
9040
+ width: 14,
9041
+ }, new go.Binding('visible', '', (x) => x?.isSelectBox ?? false)), this.$(go.TextBlock, '', {
8994
9042
  alignment: go.Spot.TopLeft,
8995
9043
  margin: new go.Margin(2, 0, 0, 2),
8996
9044
  stroke: '#DC8FA9',
@@ -9017,18 +9065,7 @@ class AtoDefaultGojsEditor {
9017
9065
  alignmentFocus: new go.Spot(1, 0.5, -8, 0),
9018
9066
  }),
9019
9067
  // four named ports, one on each side:
9020
- 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))),
9021
- // Select box
9022
- this.$(go.Panel, 'Auto', {
9023
- alignment: go.Spot.TopRight,
9024
- alignmentFocus: go.Spot.TopRight,
9025
- }, new go.Binding('visible', '', (x) => x?.isSelectBox ?? false), this.$(go.Picture, {
9026
- alignment: go.Spot.Right,
9027
- margin: new go.Margin(2, 0, 0, 0),
9028
- source: ICONS_BASE64['uf14a'],
9029
- height: 17,
9030
- width: 14,
9031
- })));
9068
+ 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))));
9032
9069
  this.myDiagram.nodeTemplateMap.set(title, node);
9033
9070
  }
9034
9071
  editTextGroupZone(e, button) {
@@ -9267,6 +9304,7 @@ class AtoDefaultGojsEditor {
9267
9304
  color: AtoGojsEditorModel.COLOR_COLLECTION_METHOD[AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL].color,
9268
9305
  group: fromnode?.ob?.group,
9269
9306
  value: 0,
9307
+ parentTopologyId: this.topologyId,
9270
9308
  });
9271
9309
  const newnode = diagram.findNodeForData(nodedata);
9272
9310
  const linkdata = model.copyLinkData({});
@@ -10930,7 +10968,7 @@ class AtoDefaultGojsEditor {
10930
10968
  }
10931
10969
  }
10932
10970
  AtoDefaultGojsEditor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
10933
- 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 });
10971
+ 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 });
10934
10972
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, decorators: [{
10935
10973
  type: Directive
10936
10974
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { menuTrigger: [{
@@ -10938,6 +10976,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
10938
10976
  args: ['menuTrigger']
10939
10977
  }], linkValidation: [{
10940
10978
  type: Input
10979
+ }], topologyId: [{
10980
+ type: Input
10941
10981
  }], initialOptions: [{
10942
10982
  type: Input
10943
10983
  }], editor: [{