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.
- package/esm2020/lib/models/default-gojs-editor.model.mjs +117 -72
- package/fesm2015/ato-water-lib.mjs +120 -72
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +116 -71
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/models/default-gojs-editor.model.d.ts +2 -1
- package/package.json +1 -1
@@ -8206,6 +8206,7 @@ class AtoDefaultGojsEditor {
|
|
8206
8206
|
: null;
|
8207
8207
|
}
|
8208
8208
|
},
|
8209
|
+
selectionAdorned: false,
|
8209
8210
|
selectionAdornmentTemplate: this._initialOptions.isReadOnly || this.isSelectBox
|
8210
8211
|
? null
|
8211
8212
|
: this.$(go.Adornment, 'Spot', this.$(go.Panel, 'Auto',
|
@@ -8241,7 +8242,7 @@ class AtoDefaultGojsEditor {
|
|
8241
8242
|
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
8242
8243
|
])
|
8243
8244
|
: {})),
|
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'),
|
8245
|
+
}, 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
8246
|
// new go.Binding('alignment', 'alignment', function(loc) {
|
8246
8247
|
// return new go.Spot(0, 0, loc.x, 0);
|
8247
8248
|
// }).ofObject(),
|
@@ -8262,7 +8263,7 @@ class AtoDefaultGojsEditor {
|
|
8262
8263
|
source: ICONS_BASE64['uf2f6_output'],
|
8263
8264
|
height: 14,
|
8264
8265
|
width: 14,
|
8265
|
-
}, new go.Binding('source', '', (x) => ICONS_BASE64[x?.group_source_icon])), new go.Binding('visible', '', (x) =>
|
8266
|
+
}, 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
8267
|
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8267
8268
|
margin: 2,
|
8268
8269
|
}, new go.Binding('text', '', function (data) {
|
@@ -8287,10 +8288,17 @@ class AtoDefaultGojsEditor {
|
|
8287
8288
|
fill: AtoGojsEditorModel.ENUM_COLORS.LIGHT_BLUE,
|
8288
8289
|
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
8289
8290
|
name: 'textNodeShape',
|
8291
|
+
strokeWidth: 1,
|
8290
8292
|
}, new go.Binding('fill', 'fill'), new go.Binding('stroke', '', (x) => {
|
8291
|
-
|
8293
|
+
if (x?.isSelectBox) {
|
8294
|
+
return AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE;
|
8295
|
+
}
|
8296
|
+
return x?.stroke ?? AtoGojsEditorModel.ENUM_COLORS.LINK_WATER;
|
8292
8297
|
}), new go.Binding('strokeWidth', '', (x) => {
|
8293
|
-
|
8298
|
+
if (x?.isSelectBox) {
|
8299
|
+
return 3;
|
8300
|
+
}
|
8301
|
+
return x?.strokeWidth ?? 1;
|
8294
8302
|
})), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', { alignment: go.Spot.Center },
|
8295
8303
|
// Alert
|
8296
8304
|
this.$(go.Panel, 'Auto', {
|
@@ -8356,25 +8364,15 @@ class AtoDefaultGojsEditor {
|
|
8356
8364
|
// }
|
8357
8365
|
// },
|
8358
8366
|
// }),
|
8359
|
-
|
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', {
|
8367
|
+
this.$(go.Picture, {
|
8369
8368
|
alignment: go.Spot.TopRight,
|
8370
|
-
|
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),
|
8369
|
+
margin: new go.Margin(0, 0, 0, 0),
|
8374
8370
|
source: ICONS_BASE64['uf14a'],
|
8375
|
-
height:
|
8371
|
+
height: 14,
|
8376
8372
|
width: 14,
|
8377
|
-
})))
|
8373
|
+
}, 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', {
|
8374
|
+
height: 16,
|
8375
|
+
}, new go.Binding('visible', '', (x) => x?.group_visible ?? false))));
|
8378
8376
|
this.myDiagram.nodeTemplateMap.set(AtoGojsEditorModel.ENUM_TEMPLATES.TEXT_NODE, node);
|
8379
8377
|
}
|
8380
8378
|
arrowForPlantCell(size, flowDirection) {
|
@@ -8540,7 +8538,12 @@ class AtoDefaultGojsEditor {
|
|
8540
8538
|
fill: null,
|
8541
8539
|
stroke: 'dodgerblue',
|
8542
8540
|
strokeWidth: 4,
|
8543
|
-
}), this.$(go.Placeholder, { padding: 3 })
|
8541
|
+
}), this.$(go.Placeholder, { padding: 3 }), new go.Binding('height', '', (x) => {
|
8542
|
+
if (x?.plantCellNameBelong) {
|
8543
|
+
return 130;
|
8544
|
+
}
|
8545
|
+
return null;
|
8546
|
+
})), this.$(go.Panel, 'Horizontal', {
|
8544
8547
|
alignment: go.Spot.TopRight,
|
8545
8548
|
alignmentFocus: go.Spot.Bottom,
|
8546
8549
|
background: 'white',
|
@@ -8568,28 +8571,41 @@ class AtoDefaultGojsEditor {
|
|
8568
8571
|
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
8569
8572
|
])
|
8570
8573
|
: {})),
|
8571
|
-
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8572
|
-
margin: 4,
|
8573
|
-
}, new go.Binding('text', 'name').makeTwoWay())),
|
8574
8574
|
},
|
8575
8575
|
// 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', {
|
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'), new go.Binding('selectionAdorned', '', (x) => !self?.isSelectBox), new go.Binding('opacity', '', (x) => x?.opacity ?? 1), this.$(go.Panel, 'Vertical', this.$(go.Panel, 'Horizontal', {
|
8577
8577
|
alignment: go.Spot.Left,
|
8578
|
-
|
8579
|
-
|
8580
|
-
|
8581
|
-
|
8578
|
+
margin: new go.Margin(0, 0, 0, 0),
|
8579
|
+
}, this.$(go.TextBlock, {
|
8580
|
+
font: 'bold 10pt Arial',
|
8581
|
+
width: size.w,
|
8582
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
8583
|
+
alignment: go.Spot.Center,
|
8584
|
+
wrap: go.TextBlock.None,
|
8585
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8586
|
+
margin: 4,
|
8587
|
+
}, new go.Binding('text', 'plantCellNameBelong'))),
|
8588
|
+
}, new go.Binding('text', 'plantCellNameBelong')), new go.Binding('visible', '', (x) => (x?.plantCellNameBelong ? true : false))), this.$(go.Panel, 'Auto', {
|
8582
8589
|
width: size.w,
|
8583
8590
|
height: size.h,
|
8591
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8592
|
+
margin: 4,
|
8593
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
8584
8594
|
}, this.$(go.Shape, 'RoundedRectangle', {
|
8585
8595
|
fill: 'white',
|
8586
8596
|
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
8587
8597
|
strokeWidth: 1,
|
8588
8598
|
// strokeDashArray: [5, 5],
|
8589
8599
|
}, new go.Binding('fill', 'fill'), new go.Binding('stroke', '', (x) => {
|
8590
|
-
|
8600
|
+
if (x?.isSelectBox) {
|
8601
|
+
return AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE;
|
8602
|
+
}
|
8603
|
+
return x?.stroke ?? AtoGojsEditorModel.ENUM_COLORS.LINK_WATER;
|
8591
8604
|
}), new go.Binding('strokeWidth', '', (x) => {
|
8592
|
-
|
8605
|
+
if (x?.isSelectBox) {
|
8606
|
+
return 3;
|
8607
|
+
}
|
8608
|
+
return x?.strokeWidth ?? 1;
|
8593
8609
|
})), this.$(go.Panel, 'Table', this.$(go.Picture, icon, {
|
8594
8610
|
row: 1,
|
8595
8611
|
alignment: go.Spot.Center,
|
@@ -8618,18 +8634,37 @@ class AtoDefaultGojsEditor {
|
|
8618
8634
|
return !(AtoGojsEditorModel.TYPE_COMPONENT_WATER?.includes(data?.systemType) &&
|
8619
8635
|
data?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER &&
|
8620
8636
|
data?.topologyType !== ATO_ECOMPONENT_PLANT_TYPE.WATER_PLANT_CELL);
|
8621
|
-
})))
|
8622
|
-
// Select box
|
8623
|
-
this.$(go.Panel, 'Auto', {
|
8637
|
+
}))), this.$(go.Picture, {
|
8624
8638
|
alignment: go.Spot.TopRight,
|
8625
|
-
|
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),
|
8639
|
+
margin: new go.Margin(0, 0, 0, 0),
|
8629
8640
|
source: ICONS_BASE64['uf14a'],
|
8630
|
-
height:
|
8641
|
+
height: 14,
|
8631
8642
|
width: 14,
|
8632
|
-
})), this.$(go.
|
8643
|
+
}, new go.Binding('visible', '', (x) => x?.isSelectBox ?? false)), this.$(go.TextBlock, '', {
|
8644
|
+
alignment: go.Spot.TopLeft,
|
8645
|
+
margin: new go.Margin(2, 0, 0, 2),
|
8646
|
+
stroke: '#DC8FA9',
|
8647
|
+
font: 'bold 9pt Arial',
|
8648
|
+
textAlign: 'left',
|
8649
|
+
}, new go.Binding('text', '', (x) => x?.group_text), new go.Binding('stroke', '', (x) => x?.group_text_stroke)))),
|
8650
|
+
// Select box
|
8651
|
+
// this.$(
|
8652
|
+
// go.Panel,
|
8653
|
+
// 'Auto',
|
8654
|
+
// {
|
8655
|
+
// alignment: go.Spot.TopRight,
|
8656
|
+
// alignmentFocus: go.Spot.TopRight,
|
8657
|
+
// },
|
8658
|
+
// // new go.Binding('visible', '', (x) => x?.isSelectBox ?? false),
|
8659
|
+
// this.$(go.Picture, {
|
8660
|
+
// alignment: go.Spot.Right,
|
8661
|
+
// margin: new go.Margin(2, 0, 0, 0),
|
8662
|
+
// source: ICONS_BASE64['uf14a'],
|
8663
|
+
// height: 17,
|
8664
|
+
// width: 14,
|
8665
|
+
// }),
|
8666
|
+
// ),
|
8667
|
+
this.$(go.Panel, 'Vertical', {
|
8633
8668
|
alignment: go.Spot.Left,
|
8634
8669
|
alignmentFocus: new go.Spot(0, 0.5, 8, 0),
|
8635
8670
|
}), this.$(go.Panel, 'Vertical', {
|
@@ -8768,7 +8803,6 @@ class AtoDefaultGojsEditor {
|
|
8768
8803
|
// self.onHoverAlert.emit(null);
|
8769
8804
|
},
|
8770
8805
|
click: (e, obj) => {
|
8771
|
-
console.log('TEST');
|
8772
8806
|
if (obj?.data?.onSelected) {
|
8773
8807
|
obj?.data?.onSelected(obj?.data);
|
8774
8808
|
self.onClickCompoent.emit({
|
@@ -8820,11 +8854,11 @@ class AtoDefaultGojsEditor {
|
|
8820
8854
|
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8821
8855
|
margin: 4,
|
8822
8856
|
}, 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 },
|
8857
|
+
}, 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
8858
|
// this.$(go.Shape, 'RoundedRectangle', {
|
8825
8859
|
// fill: 'white',
|
8826
8860
|
// stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
8827
|
-
// //
|
8861
|
+
// // s trokeDashArray: [5, 5],
|
8828
8862
|
// }),
|
8829
8863
|
// this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0), visible: false }),
|
8830
8864
|
this.$(go.Panel, 'Auto', {
|
@@ -8834,7 +8868,7 @@ class AtoDefaultGojsEditor {
|
|
8834
8868
|
fill: 'white',
|
8835
8869
|
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
8836
8870
|
strokeDashArray: [5, 5],
|
8837
|
-
}), this.$(go.Panel, 'Table', this.$(go.TextBlock, title, {
|
8871
|
+
}, 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
8872
|
row: 0,
|
8839
8873
|
margin: new go.Margin(3, 0, 10, 0),
|
8840
8874
|
desiredSize: new go.Size(size.w - 20, 15),
|
@@ -8868,10 +8902,14 @@ class AtoDefaultGojsEditor {
|
|
8868
8902
|
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8869
8903
|
margin: 4,
|
8870
8904
|
}, new go.Binding('text', 'name').makeTwoWay())),
|
8871
|
-
}, new go.Binding('text', 'name').makeTwoWay()))), this.$(go.
|
8872
|
-
|
8873
|
-
|
8874
|
-
|
8905
|
+
}, new go.Binding('text', 'name').makeTwoWay()))), this.$(go.TextBlock, '', {
|
8906
|
+
alignment: go.Spot.TopLeft,
|
8907
|
+
margin: new go.Margin(4, 0, 0, 4),
|
8908
|
+
stroke: '#DC8FA9',
|
8909
|
+
font: 'bold 9pt Arial',
|
8910
|
+
textAlign: 'left',
|
8911
|
+
}, 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', {
|
8912
|
+
margin: new go.Margin(4, 0, 0, 0),
|
8875
8913
|
stroke: '#3863A6',
|
8876
8914
|
font: 'bold 9pt Arial',
|
8877
8915
|
textAlign: 'left',
|
@@ -8923,6 +8961,9 @@ class AtoDefaultGojsEditor {
|
|
8923
8961
|
stroke: 'dodgerblue',
|
8924
8962
|
strokeWidth: 4,
|
8925
8963
|
}), this.$(go.Placeholder, { padding: 3 }), new go.Binding('height', '', (x) => {
|
8964
|
+
if (x?.plantCellNameBelong) {
|
8965
|
+
return 130;
|
8966
|
+
}
|
8926
8967
|
if (x?.isSelectBox) {
|
8927
8968
|
return 124;
|
8928
8969
|
}
|
@@ -8936,24 +8977,30 @@ class AtoDefaultGojsEditor {
|
|
8936
8977
|
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
8937
8978
|
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
8938
8979
|
]))),
|
8980
|
+
}, 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', {
|
8981
|
+
alignment: go.Spot.Left,
|
8982
|
+
margin: new go.Margin(0, 0, 0, 0),
|
8983
|
+
}, this.$(go.TextBlock, {
|
8984
|
+
font: 'bold 10pt Arial',
|
8985
|
+
width: size.w,
|
8986
|
+
overflow: go.TextBlock.OverflowEllipsis,
|
8987
|
+
alignment: go.Spot.Center,
|
8988
|
+
wrap: go.TextBlock.None,
|
8939
8989
|
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8940
8990
|
margin: 4,
|
8941
|
-
}, new go.Binding('text', '
|
8942
|
-
}, new go.Binding('
|
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', {
|
8991
|
+
}, new go.Binding('text', 'plantCellNameBelong'))),
|
8992
|
+
}, new go.Binding('text', 'plantCellNameBelong')), new go.Binding('visible', '', (x) => (x?.plantCellNameBelong ? true : false))), this.$(go.Panel, 'Auto', {
|
8948
8993
|
width: size.w,
|
8949
8994
|
height: size.h,
|
8995
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8996
|
+
margin: 4,
|
8997
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
8950
8998
|
}, this.$(go.Shape, 'RoundedRectangle', {
|
8951
8999
|
fill: 'white',
|
8952
9000
|
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
8953
|
-
strokeWidth: 3,
|
8954
9001
|
}, new go.Binding('fill', 'fill'), new go.Binding('stroke', '', (x) => {
|
8955
9002
|
return x?.isSelectBox ? AtoGojsEditorModel.ENUM_COLORS.TORY_BLUE : x?.stroke;
|
8956
|
-
})), this.$(go.Panel, 'Table',
|
9003
|
+
}), new go.Binding('strokeWidth', 'strokeWidth')), this.$(go.Panel, 'Table',
|
8957
9004
|
// this.$(go.TextBlock, title, {
|
8958
9005
|
// row: 0,
|
8959
9006
|
// margin: new go.Margin(3, 3, 10, 3),
|
@@ -8990,7 +9037,13 @@ class AtoDefaultGojsEditor {
|
|
8990
9037
|
// }
|
8991
9038
|
// },
|
8992
9039
|
// }),
|
8993
|
-
this.$(go.
|
9040
|
+
this.$(go.Picture, {
|
9041
|
+
alignment: go.Spot.TopRight,
|
9042
|
+
margin: new go.Margin(0, 0, 0, 0),
|
9043
|
+
source: ICONS_BASE64['uf14a'],
|
9044
|
+
height: 14,
|
9045
|
+
width: 14,
|
9046
|
+
}, new go.Binding('visible', '', (x) => x?.isSelectBox ?? false)), this.$(go.TextBlock, '', {
|
8994
9047
|
alignment: go.Spot.TopLeft,
|
8995
9048
|
margin: new go.Margin(2, 0, 0, 2),
|
8996
9049
|
stroke: '#DC8FA9',
|
@@ -9017,18 +9070,7 @@ class AtoDefaultGojsEditor {
|
|
9017
9070
|
alignmentFocus: new go.Spot(1, 0.5, -8, 0),
|
9018
9071
|
}),
|
9019
9072
|
// 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
|
-
})));
|
9073
|
+
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
9074
|
this.myDiagram.nodeTemplateMap.set(title, node);
|
9033
9075
|
}
|
9034
9076
|
editTextGroupZone(e, button) {
|
@@ -9267,6 +9309,7 @@ class AtoDefaultGojsEditor {
|
|
9267
9309
|
color: AtoGojsEditorModel.COLOR_COLLECTION_METHOD[AtoGojsEditorModel.DATA_COLLECTION_METHOD.MANUAL].color,
|
9268
9310
|
group: fromnode?.ob?.group,
|
9269
9311
|
value: 0,
|
9312
|
+
parentTopologyId: this.topologyId,
|
9270
9313
|
});
|
9271
9314
|
const newnode = diagram.findNodeForData(nodedata);
|
9272
9315
|
const linkdata = model.copyLinkData({});
|
@@ -10930,7 +10973,7 @@ class AtoDefaultGojsEditor {
|
|
10930
10973
|
}
|
10931
10974
|
}
|
10932
10975
|
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 });
|
10976
|
+
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
10977
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoDefaultGojsEditor, decorators: [{
|
10935
10978
|
type: Directive
|
10936
10979
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { menuTrigger: [{
|
@@ -10938,6 +10981,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
10938
10981
|
args: ['menuTrigger']
|
10939
10982
|
}], linkValidation: [{
|
10940
10983
|
type: Input
|
10984
|
+
}], topologyId: [{
|
10985
|
+
type: Input
|
10941
10986
|
}], initialOptions: [{
|
10942
10987
|
type: Input
|
10943
10988
|
}], editor: [{
|