ato-water-lib 0.0.124 → 0.0.126
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 +46 -16
- package/esm2020/lib/models/gojs-editor.model.mjs +35 -2
- package/fesm2015/ato-water-lib.mjs +79 -16
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +79 -16
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/models/gojs-editor.model.d.ts +4 -0
- package/package.json +1 -1
@@ -934,6 +934,8 @@ class AtoGojsEditorModel {
|
|
934
934
|
// RAIN_WATER = 'Rainwater',
|
935
935
|
ENUM_TEMPLATES["FRESH_SURFACE_WATER"] = "Fresh surface water";
|
936
936
|
ENUM_TEMPLATES["THIRD_PARTY_SOURCES"] = "Third party sources";
|
937
|
+
ENUM_TEMPLATES["MUNICIPAL_SUPPLY"] = "Municipal supply";
|
938
|
+
ENUM_TEMPLATES["ANY_NATURAL_ENVIRONMENT"] = "Any natural environment";
|
937
939
|
ENUM_TEMPLATES["THIRD_PARTY_DESTINATIONS"] = "Third party destinations";
|
938
940
|
ENUM_TEMPLATES["GROUND_WATER_NON_RENEWABLE"] = "Groundwater - non-renewable";
|
939
941
|
ENUM_TEMPLATES["PRODUCED_ENTRAINED"] = "Produced / entrained water";
|
@@ -1070,7 +1072,9 @@ class AtoGojsEditorModel {
|
|
1070
1072
|
ENUM_TYPES["LANDSCAPING_IRRIGATION"] = "IrrigationUse";
|
1071
1073
|
ENUM_TYPES["FRESH_SURFACE_WATER"] = "Fresh surface water";
|
1072
1074
|
ENUM_TYPES["THIRD_PARTY_SOURCES"] = "Third party sources";
|
1075
|
+
ENUM_TYPES["MUNICIPAL_SUPPLY"] = "Municipal supply";
|
1073
1076
|
ENUM_TYPES["THIRD_PARTY_DESTINATIONS"] = "Third party destinations";
|
1077
|
+
ENUM_TYPES["ANY_NATURAL_ENVIRONMENT"] = "Any natural environment";
|
1074
1078
|
ENUM_TYPES["GROUND_WATER_NON_RENEWABLE"] = "Groundwater - non-renewable";
|
1075
1079
|
ENUM_TYPES["PRODUCED_ENTRAINED"] = "Produced / entrained water";
|
1076
1080
|
// FRESH_SURFACE_WAER = 'Fresh surface water',
|
@@ -1335,12 +1339,14 @@ class AtoGojsEditorModel {
|
|
1335
1339
|
ENUM_TYPES.GROUND_WATER_RENEWABLE,
|
1336
1340
|
ENUM_TYPES.GROUND_WATER_NON_RENEWABLE,
|
1337
1341
|
ENUM_TYPES.PRODUCED_ENTRAINED,
|
1342
|
+
ENUM_TYPES.MUNICIPAL_SUPPLY,
|
1338
1343
|
];
|
1339
1344
|
AtoGojsEditorModel.DISCHARGE_TYPE_LIST = [
|
1340
1345
|
ENUM_TYPES.FRESH_SURFACE_WATER,
|
1341
1346
|
ENUM_TYPES.BRACKISH_SURFACE_WATER,
|
1342
1347
|
ENUM_TYPES.GROUND_WATER_RENEWABLE,
|
1343
1348
|
ENUM_TYPES.THIRD_PARTY_DESTINATIONS,
|
1349
|
+
ENUM_TYPES.ANY_NATURAL_ENVIRONMENT,
|
1344
1350
|
];
|
1345
1351
|
AtoGojsEditorModel.WITH_DRAW_SYSTEM_TYPE_LIST = [
|
1346
1352
|
WITH_DRAW_SYSTEM_TYPES.WATER_SOURCE,
|
@@ -1473,9 +1479,11 @@ class AtoGojsEditorModel {
|
|
1473
1479
|
ENUM_TYPES.THIRD_PARTY_DESTINATIONS,
|
1474
1480
|
ENUM_TYPES.GROUND_WATER_NON_RENEWABLE,
|
1475
1481
|
ENUM_TYPES.PRODUCED_ENTRAINED,
|
1482
|
+
ENUM_TYPES.MUNICIPAL_SUPPLY,
|
1476
1483
|
// FRESH_SURFACE_WAER = 'Fresh surface water',
|
1477
1484
|
ENUM_TYPES.BRACKISH_SURFACE_WATER,
|
1478
1485
|
ENUM_TYPES.GROUND_WATER_RENEWABLE,
|
1486
|
+
ENUM_TYPES.ANY_NATURAL_ENVIRONMENT,
|
1479
1487
|
ENUM_TYPES.TANKER_WATER,
|
1480
1488
|
// ENERGY
|
1481
1489
|
ENUM_TYPES.ZONE,
|
@@ -1805,9 +1813,20 @@ class AtoGojsEditorModel {
|
|
1805
1813
|
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Third Party Sources.svg`,
|
1806
1814
|
systemType: ENUM_TYPES.THIRD_PARTY_SOURCES,
|
1807
1815
|
},
|
1816
|
+
[ENUM_TEMPLATES.MUNICIPAL_SUPPLY]: {
|
1817
|
+
name: ENUM_TEMPLATES.MUNICIPAL_SUPPLY,
|
1818
|
+
// icon: `${ICON_ASSET_PATH}/Intake.svg`,
|
1819
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/municipal-supply.svg`,
|
1820
|
+
systemType: ENUM_TYPES.MUNICIPAL_SUPPLY,
|
1821
|
+
},
|
1822
|
+
[ENUM_TEMPLATES.ANY_NATURAL_ENVIRONMENT]: {
|
1823
|
+
name: ENUM_TEMPLATES.ANY_NATURAL_ENVIRONMENT,
|
1824
|
+
// icon: `${ICON_ASSET_PATH}/Intake.svg`,
|
1825
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/any-natural-environment.svg`,
|
1826
|
+
systemType: ENUM_TYPES.ANY_NATURAL_ENVIRONMENT,
|
1827
|
+
},
|
1808
1828
|
[ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS]: {
|
1809
1829
|
name: ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS,
|
1810
|
-
// icon: `${ICON_ASSET_PATH}/Intake.svg`,
|
1811
1830
|
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Third party destinations.svg`,
|
1812
1831
|
systemType: ENUM_TYPES.THIRD_PARTY_DESTINATIONS,
|
1813
1832
|
},
|
@@ -2370,6 +2389,18 @@ class AtoGojsEditorModel {
|
|
2370
2389
|
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable - Duo.svg`,
|
2371
2390
|
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable.svg`,
|
2372
2391
|
},
|
2392
|
+
[ENUM_TYPES.MUNICIPAL_SUPPLY]: {
|
2393
|
+
name: ENUM_TEMPLATES.MUNICIPAL_SUPPLY,
|
2394
|
+
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/municipal-supply - Duo.svg`,
|
2395
|
+
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/municipal-supply.svg`,
|
2396
|
+
isHasWaterCapcity: true,
|
2397
|
+
},
|
2398
|
+
[ENUM_TYPES.ANY_NATURAL_ENVIRONMENT]: {
|
2399
|
+
name: ENUM_TEMPLATES.ANY_NATURAL_ENVIRONMENT,
|
2400
|
+
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/any-natural-environment - Duo.svg`,
|
2401
|
+
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/any-natural-environment.svg`,
|
2402
|
+
isHasWaterCapcity: true,
|
2403
|
+
},
|
2373
2404
|
};
|
2374
2405
|
AtoGojsEditorModel.WITHDRAW_DISCHARGE_DIAGRAM_HOME = {
|
2375
2406
|
withdrawSourcesChildren: [
|
@@ -2533,6 +2564,8 @@ class AtoGojsEditorModel {
|
|
2533
2564
|
AtoGojsEditorModel.ENUM_TEMPLATES.PRODUCED_ENTRAINED,
|
2534
2565
|
AtoGojsEditorModel.ENUM_TEMPLATES.THIRD_PARTY_SOURCES,
|
2535
2566
|
AtoGojsEditorModel.ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS,
|
2567
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.MUNICIPAL_SUPPLY,
|
2568
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.ANY_NATURAL_ENVIRONMENT,
|
2536
2569
|
];
|
2537
2570
|
// ['Fresh surface water', 'Brackish surface water/ seawater', 'Groundwater - Renewable', 'Groundwater - non-renewable', 'Produced / entrained water', 'Third party sources', 'Third party destinations'];
|
2538
2571
|
AtoGojsEditorModel.TYPE_TEMPLATE_ELECTRICITY = [
|
@@ -8613,9 +8646,15 @@ class AtoDefaultGojsEditor {
|
|
8613
8646
|
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
8614
8647
|
])
|
8615
8648
|
: {})),
|
8649
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8650
|
+
margin: 4,
|
8651
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
8616
8652
|
},
|
8617
8653
|
// new go.Binding('location', 'loc', go.Point.parse),
|
8618
|
-
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'), this.$(go.Panel, 'Auto', {
|
8654
|
+
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'), this.$(go.Panel, 'Auto', {
|
8655
|
+
width: size.w,
|
8656
|
+
height: size.h,
|
8657
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
8619
8658
|
fill: 'white',
|
8620
8659
|
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
8621
8660
|
strokeWidth: 1,
|
@@ -8626,10 +8665,13 @@ class AtoDefaultGojsEditor {
|
|
8626
8665
|
desiredSize: new go.Size(size.w - 20, size.h - 50),
|
8627
8666
|
// maxSize: new go.Size(60, 60),
|
8628
8667
|
imageStretch: go.GraphObject.Uniform,
|
8629
|
-
toolTip: this.$(
|
8630
|
-
|
8631
|
-
|
8632
|
-
|
8668
|
+
// toolTip: this.$(
|
8669
|
+
// 'ToolTip',
|
8670
|
+
// this.$(go.TextBlock, {
|
8671
|
+
// margin: 4,
|
8672
|
+
// text: title,
|
8673
|
+
// })
|
8674
|
+
// ),
|
8633
8675
|
}), this.$(go.TextBlock, {
|
8634
8676
|
row: 2,
|
8635
8677
|
margin: new go.Margin(10, 0, 3, 0),
|
@@ -8698,7 +8740,13 @@ class AtoDefaultGojsEditor {
|
|
8698
8740
|
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
8699
8741
|
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
8700
8742
|
]))),
|
8701
|
-
|
8743
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8744
|
+
margin: 4,
|
8745
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
8746
|
+
}, 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), this.$(go.Panel, 'Auto', {
|
8747
|
+
width: size.w,
|
8748
|
+
height: size.h,
|
8749
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
8702
8750
|
fill: 'white',
|
8703
8751
|
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
8704
8752
|
// strokeDashArray: [5, 5],
|
@@ -8709,10 +8757,13 @@ class AtoDefaultGojsEditor {
|
|
8709
8757
|
stroke: '#444444',
|
8710
8758
|
font: 'normal 10pt Arial',
|
8711
8759
|
textAlign: 'center',
|
8712
|
-
toolTip: this.$(
|
8713
|
-
|
8714
|
-
|
8715
|
-
|
8760
|
+
// toolTip: this.$(
|
8761
|
+
// 'ToolTip',
|
8762
|
+
// this.$(go.TextBlock, {
|
8763
|
+
// margin: 4,
|
8764
|
+
// text: title,
|
8765
|
+
// })
|
8766
|
+
// ),
|
8716
8767
|
}), this.$(go.Picture, icon, {
|
8717
8768
|
row: 1,
|
8718
8769
|
alignment: go.Spot.Center,
|
@@ -8836,6 +8887,9 @@ class AtoDefaultGojsEditor {
|
|
8836
8887
|
// }),
|
8837
8888
|
// ),
|
8838
8889
|
),
|
8890
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8891
|
+
margin: 4,
|
8892
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
8839
8893
|
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h },
|
8840
8894
|
// this.$(go.Shape, 'RoundedRectangle', {
|
8841
8895
|
// fill: 'white',
|
@@ -8857,10 +8911,13 @@ class AtoDefaultGojsEditor {
|
|
8857
8911
|
stroke: '#444444',
|
8858
8912
|
font: 'normal 10pt Arial',
|
8859
8913
|
textAlign: 'center',
|
8860
|
-
toolTip: this.$(
|
8861
|
-
|
8862
|
-
|
8863
|
-
|
8914
|
+
// toolTip: this.$(
|
8915
|
+
// 'ToolTip',
|
8916
|
+
// this.$(go.TextBlock, {
|
8917
|
+
// margin: 4,
|
8918
|
+
// text: title,
|
8919
|
+
// })
|
8920
|
+
// ),
|
8864
8921
|
}), this.$(go.Picture, icon, {
|
8865
8922
|
row: 1,
|
8866
8923
|
alignment: go.Spot.Center,
|
@@ -8932,7 +8989,13 @@ class AtoDefaultGojsEditor {
|
|
8932
8989
|
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
8933
8990
|
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
8934
8991
|
]))),
|
8935
|
-
|
8992
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
8993
|
+
margin: 4,
|
8994
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
8995
|
+
}, 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), this.$(go.Panel, 'Auto', {
|
8996
|
+
width: size.w,
|
8997
|
+
height: size.h,
|
8998
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
8936
8999
|
fill: 'white',
|
8937
9000
|
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
8938
9001
|
// strokeDashArray: [5, 5],
|