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.
@@ -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 = [
@@ -8825,11 +8858,14 @@ class AtoDefaultGojsEditor {
8825
8858
  makeGroupImmersedUFTemplate(icon, title, size = { w: 80, h: 80 }) {
8826
8859
  let node = this.$(go.Group, 'Spot', {
8827
8860
  layout: this.$(go.Layout),
8861
+ selectable: false,
8828
8862
  }, {
8829
8863
  // minSize: new go.Size(NaN, 600),
8830
- }, new go.Binding('selectable', '', (x) => {
8831
- return x === null || x === void 0 ? void 0 : x.selectable;
8832
- }), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', {
8864
+ },
8865
+ // new go.Binding('selectable', '', (x) => {
8866
+ // return x?.selectable;
8867
+ // }),
8868
+ new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', {
8833
8869
  row: 0,
8834
8870
  padding: new go.Margin(0, 0, 0, 0),
8835
8871
  }, this.$(go.Shape, 'RoundedRectangle', {