ato-water-lib 0.0.123 → 0.0.125
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 +7 -4
- package/esm2020/lib/models/gojs-editor.model.mjs +35 -2
- package/fesm2015/ato-water-lib.mjs +40 -4
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +40 -4
- 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 = [
|
@@ -10143,11 +10176,14 @@ class AtoDefaultGojsEditor {
|
|
10143
10176
|
makeGroupImmersedUFTemplate(icon, title, size = { w: 80, h: 80 }) {
|
10144
10177
|
let node = this.$(go.Group, 'Spot', {
|
10145
10178
|
layout: this.$(go.Layout),
|
10179
|
+
selectable: false,
|
10146
10180
|
}, {
|
10147
10181
|
// minSize: new go.Size(NaN, 600),
|
10148
|
-
},
|
10149
|
-
|
10150
|
-
|
10182
|
+
},
|
10183
|
+
// new go.Binding('selectable', '', (x) => {
|
10184
|
+
// return x?.selectable;
|
10185
|
+
// }),
|
10186
|
+
new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', {
|
10151
10187
|
row: 0,
|
10152
10188
|
padding: new go.Margin(0, 0, 0, 0),
|
10153
10189
|
}, this.$(go.Shape, 'RoundedRectangle', {
|