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
@@ -935,6 +935,8 @@ class AtoGojsEditorModel {
|
|
935
935
|
// RAIN_WATER = 'Rainwater',
|
936
936
|
ENUM_TEMPLATES["FRESH_SURFACE_WATER"] = "Fresh surface water";
|
937
937
|
ENUM_TEMPLATES["THIRD_PARTY_SOURCES"] = "Third party sources";
|
938
|
+
ENUM_TEMPLATES["MUNICIPAL_SUPPLY"] = "Municipal supply";
|
939
|
+
ENUM_TEMPLATES["ANY_NATURAL_ENVIRONMENT"] = "Any natural environment";
|
938
940
|
ENUM_TEMPLATES["THIRD_PARTY_DESTINATIONS"] = "Third party destinations";
|
939
941
|
ENUM_TEMPLATES["GROUND_WATER_NON_RENEWABLE"] = "Groundwater - non-renewable";
|
940
942
|
ENUM_TEMPLATES["PRODUCED_ENTRAINED"] = "Produced / entrained water";
|
@@ -1071,7 +1073,9 @@ class AtoGojsEditorModel {
|
|
1071
1073
|
ENUM_TYPES["LANDSCAPING_IRRIGATION"] = "IrrigationUse";
|
1072
1074
|
ENUM_TYPES["FRESH_SURFACE_WATER"] = "Fresh surface water";
|
1073
1075
|
ENUM_TYPES["THIRD_PARTY_SOURCES"] = "Third party sources";
|
1076
|
+
ENUM_TYPES["MUNICIPAL_SUPPLY"] = "Municipal supply";
|
1074
1077
|
ENUM_TYPES["THIRD_PARTY_DESTINATIONS"] = "Third party destinations";
|
1078
|
+
ENUM_TYPES["ANY_NATURAL_ENVIRONMENT"] = "Any natural environment";
|
1075
1079
|
ENUM_TYPES["GROUND_WATER_NON_RENEWABLE"] = "Groundwater - non-renewable";
|
1076
1080
|
ENUM_TYPES["PRODUCED_ENTRAINED"] = "Produced / entrained water";
|
1077
1081
|
// FRESH_SURFACE_WAER = 'Fresh surface water',
|
@@ -1336,12 +1340,14 @@ class AtoGojsEditorModel {
|
|
1336
1340
|
ENUM_TYPES.GROUND_WATER_RENEWABLE,
|
1337
1341
|
ENUM_TYPES.GROUND_WATER_NON_RENEWABLE,
|
1338
1342
|
ENUM_TYPES.PRODUCED_ENTRAINED,
|
1343
|
+
ENUM_TYPES.MUNICIPAL_SUPPLY,
|
1339
1344
|
];
|
1340
1345
|
AtoGojsEditorModel.DISCHARGE_TYPE_LIST = [
|
1341
1346
|
ENUM_TYPES.FRESH_SURFACE_WATER,
|
1342
1347
|
ENUM_TYPES.BRACKISH_SURFACE_WATER,
|
1343
1348
|
ENUM_TYPES.GROUND_WATER_RENEWABLE,
|
1344
1349
|
ENUM_TYPES.THIRD_PARTY_DESTINATIONS,
|
1350
|
+
ENUM_TYPES.ANY_NATURAL_ENVIRONMENT,
|
1345
1351
|
];
|
1346
1352
|
AtoGojsEditorModel.WITH_DRAW_SYSTEM_TYPE_LIST = [
|
1347
1353
|
WITH_DRAW_SYSTEM_TYPES.WATER_SOURCE,
|
@@ -1474,9 +1480,11 @@ class AtoGojsEditorModel {
|
|
1474
1480
|
ENUM_TYPES.THIRD_PARTY_DESTINATIONS,
|
1475
1481
|
ENUM_TYPES.GROUND_WATER_NON_RENEWABLE,
|
1476
1482
|
ENUM_TYPES.PRODUCED_ENTRAINED,
|
1483
|
+
ENUM_TYPES.MUNICIPAL_SUPPLY,
|
1477
1484
|
// FRESH_SURFACE_WAER = 'Fresh surface water',
|
1478
1485
|
ENUM_TYPES.BRACKISH_SURFACE_WATER,
|
1479
1486
|
ENUM_TYPES.GROUND_WATER_RENEWABLE,
|
1487
|
+
ENUM_TYPES.ANY_NATURAL_ENVIRONMENT,
|
1480
1488
|
ENUM_TYPES.TANKER_WATER,
|
1481
1489
|
// ENERGY
|
1482
1490
|
ENUM_TYPES.ZONE,
|
@@ -1806,9 +1814,20 @@ class AtoGojsEditorModel {
|
|
1806
1814
|
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Third Party Sources.svg`,
|
1807
1815
|
systemType: ENUM_TYPES.THIRD_PARTY_SOURCES,
|
1808
1816
|
},
|
1817
|
+
[ENUM_TEMPLATES.MUNICIPAL_SUPPLY]: {
|
1818
|
+
name: ENUM_TEMPLATES.MUNICIPAL_SUPPLY,
|
1819
|
+
// icon: `${ICON_ASSET_PATH}/Intake.svg`,
|
1820
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/municipal-supply.svg`,
|
1821
|
+
systemType: ENUM_TYPES.MUNICIPAL_SUPPLY,
|
1822
|
+
},
|
1823
|
+
[ENUM_TEMPLATES.ANY_NATURAL_ENVIRONMENT]: {
|
1824
|
+
name: ENUM_TEMPLATES.ANY_NATURAL_ENVIRONMENT,
|
1825
|
+
// icon: `${ICON_ASSET_PATH}/Intake.svg`,
|
1826
|
+
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/any-natural-environment.svg`,
|
1827
|
+
systemType: ENUM_TYPES.ANY_NATURAL_ENVIRONMENT,
|
1828
|
+
},
|
1809
1829
|
[ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS]: {
|
1810
1830
|
name: ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS,
|
1811
|
-
// icon: `${ICON_ASSET_PATH}/Intake.svg`,
|
1812
1831
|
icon: `${AtoGojsEditorModel.ICON_ASSET_PATH}/Third party destinations.svg`,
|
1813
1832
|
systemType: ENUM_TYPES.THIRD_PARTY_DESTINATIONS,
|
1814
1833
|
},
|
@@ -2371,6 +2390,18 @@ class AtoGojsEditorModel {
|
|
2371
2390
|
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable - Duo.svg`,
|
2372
2391
|
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/Groundwater - renewable.svg`,
|
2373
2392
|
},
|
2393
|
+
[ENUM_TYPES.MUNICIPAL_SUPPLY]: {
|
2394
|
+
name: ENUM_TEMPLATES.MUNICIPAL_SUPPLY,
|
2395
|
+
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/municipal-supply - Duo.svg`,
|
2396
|
+
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/municipal-supply.svg`,
|
2397
|
+
isHasWaterCapcity: true,
|
2398
|
+
},
|
2399
|
+
[ENUM_TYPES.ANY_NATURAL_ENVIRONMENT]: {
|
2400
|
+
name: ENUM_TEMPLATES.ANY_NATURAL_ENVIRONMENT,
|
2401
|
+
iconActive: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/any-natural-environment - Duo.svg`,
|
2402
|
+
iconDisabled: `${AtoGojsEditorModel.ICON_ASSET_WITHDRAW_DISCHARGE_ICON}/any-natural-environment.svg`,
|
2403
|
+
isHasWaterCapcity: true,
|
2404
|
+
},
|
2374
2405
|
};
|
2375
2406
|
AtoGojsEditorModel.WITHDRAW_DISCHARGE_DIAGRAM_HOME = {
|
2376
2407
|
withdrawSourcesChildren: [
|
@@ -2534,6 +2565,8 @@ class AtoGojsEditorModel {
|
|
2534
2565
|
AtoGojsEditorModel.ENUM_TEMPLATES.PRODUCED_ENTRAINED,
|
2535
2566
|
AtoGojsEditorModel.ENUM_TEMPLATES.THIRD_PARTY_SOURCES,
|
2536
2567
|
AtoGojsEditorModel.ENUM_TEMPLATES.THIRD_PARTY_DESTINATIONS,
|
2568
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.MUNICIPAL_SUPPLY,
|
2569
|
+
AtoGojsEditorModel.ENUM_TEMPLATES.ANY_NATURAL_ENVIRONMENT,
|
2537
2570
|
];
|
2538
2571
|
// ['Fresh surface water', 'Brackish surface water/ seawater', 'Groundwater - Renewable', 'Groundwater - non-renewable', 'Produced / entrained water', 'Third party sources', 'Third party destinations'];
|
2539
2572
|
AtoGojsEditorModel.TYPE_TEMPLATE_ELECTRICITY = [
|
@@ -7304,9 +7337,15 @@ class AtoDefaultGojsEditor {
|
|
7304
7337
|
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
7305
7338
|
])
|
7306
7339
|
: {})),
|
7340
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
7341
|
+
margin: 4,
|
7342
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
7307
7343
|
},
|
7308
7344
|
// new go.Binding('location', 'loc', go.Point.parse),
|
7309
|
-
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', {
|
7345
|
+
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', {
|
7346
|
+
width: size.w,
|
7347
|
+
height: size.h,
|
7348
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
7310
7349
|
fill: 'white',
|
7311
7350
|
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
7312
7351
|
strokeWidth: 1,
|
@@ -7317,10 +7356,13 @@ class AtoDefaultGojsEditor {
|
|
7317
7356
|
desiredSize: new go.Size(size.w - 20, size.h - 50),
|
7318
7357
|
// maxSize: new go.Size(60, 60),
|
7319
7358
|
imageStretch: go.GraphObject.Uniform,
|
7320
|
-
toolTip: this.$(
|
7321
|
-
|
7322
|
-
|
7323
|
-
|
7359
|
+
// toolTip: this.$(
|
7360
|
+
// 'ToolTip',
|
7361
|
+
// this.$(go.TextBlock, {
|
7362
|
+
// margin: 4,
|
7363
|
+
// text: title,
|
7364
|
+
// })
|
7365
|
+
// ),
|
7324
7366
|
}), this.$(go.TextBlock, {
|
7325
7367
|
row: 2,
|
7326
7368
|
margin: new go.Margin(10, 0, 3, 0),
|
@@ -7393,7 +7435,13 @@ class AtoDefaultGojsEditor {
|
|
7393
7435
|
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
7394
7436
|
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
7395
7437
|
]))),
|
7396
|
-
|
7438
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
7439
|
+
margin: 4,
|
7440
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
7441
|
+
}, 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', {
|
7442
|
+
width: size.w,
|
7443
|
+
height: size.h,
|
7444
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
7397
7445
|
fill: 'white',
|
7398
7446
|
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
7399
7447
|
// strokeDashArray: [5, 5],
|
@@ -7404,10 +7452,13 @@ class AtoDefaultGojsEditor {
|
|
7404
7452
|
stroke: '#444444',
|
7405
7453
|
font: 'normal 10pt Arial',
|
7406
7454
|
textAlign: 'center',
|
7407
|
-
toolTip: this.$(
|
7408
|
-
|
7409
|
-
|
7410
|
-
|
7455
|
+
// toolTip: this.$(
|
7456
|
+
// 'ToolTip',
|
7457
|
+
// this.$(go.TextBlock, {
|
7458
|
+
// margin: 4,
|
7459
|
+
// text: title,
|
7460
|
+
// })
|
7461
|
+
// ),
|
7411
7462
|
}), this.$(go.Picture, icon, {
|
7412
7463
|
row: 1,
|
7413
7464
|
alignment: go.Spot.Center,
|
@@ -7535,6 +7586,9 @@ class AtoDefaultGojsEditor {
|
|
7535
7586
|
// }),
|
7536
7587
|
// ),
|
7537
7588
|
),
|
7589
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
7590
|
+
margin: 4,
|
7591
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
7538
7592
|
}, new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', { width: size.w, height: size.h },
|
7539
7593
|
// this.$(go.Shape, 'RoundedRectangle', {
|
7540
7594
|
// fill: 'white',
|
@@ -7556,10 +7610,13 @@ class AtoDefaultGojsEditor {
|
|
7556
7610
|
stroke: '#444444',
|
7557
7611
|
font: 'normal 10pt Arial',
|
7558
7612
|
textAlign: 'center',
|
7559
|
-
toolTip: this.$(
|
7560
|
-
|
7561
|
-
|
7562
|
-
|
7613
|
+
// toolTip: this.$(
|
7614
|
+
// 'ToolTip',
|
7615
|
+
// this.$(go.TextBlock, {
|
7616
|
+
// margin: 4,
|
7617
|
+
// text: title,
|
7618
|
+
// })
|
7619
|
+
// ),
|
7563
7620
|
}), this.$(go.Picture, icon, {
|
7564
7621
|
row: 1,
|
7565
7622
|
alignment: go.Spot.Center,
|
@@ -7632,7 +7689,13 @@ class AtoDefaultGojsEditor {
|
|
7632
7689
|
AtoDefaultGojsEditor.ENUM_ACTIONS.OUTFLOW,
|
7633
7690
|
AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE,
|
7634
7691
|
]))),
|
7635
|
-
|
7692
|
+
toolTip: this.$('ToolTip', this.$(go.TextBlock, {
|
7693
|
+
margin: 4,
|
7694
|
+
}, new go.Binding('text', 'name').makeTwoWay())),
|
7695
|
+
}, 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', {
|
7696
|
+
width: size.w,
|
7697
|
+
height: size.h,
|
7698
|
+
}, this.$(go.Shape, 'RoundedRectangle', {
|
7636
7699
|
fill: 'white',
|
7637
7700
|
stroke: AtoGojsEditorModel.ENUM_COLORS.LINK_WATER,
|
7638
7701
|
// strokeDashArray: [5, 5],
|