ato-water-lib 0.0.120 → 0.0.123
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/constants/components-group-const.mjs +10 -3
- package/esm2020/lib/models/default-gojs-editor.model.mjs +82 -5
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/ato-water-lib.mjs +88 -7
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +91 -7
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/constants/components-group-const.d.ts +30 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
@@ -4840,7 +4840,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
4840
4840
|
tooltip: '',
|
4841
4841
|
assetLayers: ATO_ASSET_LAYERS.FLOW,
|
4842
4842
|
extendedData: {
|
4843
|
-
visible:
|
4843
|
+
visible: false,
|
4844
4844
|
},
|
4845
4845
|
},
|
4846
4846
|
{
|
@@ -6293,15 +6293,22 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
6293
6293
|
waterSystem: WATER_SYSTEMS_NAME.IMMERSED_UF_SYSTEM_KPIS,
|
6294
6294
|
isReadOnly: true,
|
6295
6295
|
isFrom: ATO_MAPPER_FROM.INDICATOR,
|
6296
|
-
visible:
|
6296
|
+
visible: true,
|
6297
6297
|
})),
|
6298
6298
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
6299
|
+
isFrom: ATO_MAPPER_FROM.INDICATOR,
|
6299
6300
|
extendedData: {
|
6301
|
+
visible: false,
|
6302
|
+
},
|
6303
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
|
6300
6304
|
visible: true,
|
6301
6305
|
},
|
6302
6306
|
extendedDataResponsive: {
|
6303
6307
|
visible: false,
|
6304
6308
|
},
|
6309
|
+
[`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}Responsive`]: {
|
6310
|
+
visible: false,
|
6311
|
+
},
|
6305
6312
|
},
|
6306
6313
|
// {
|
6307
6314
|
// key: 133,
|
@@ -10135,10 +10142,12 @@ class AtoDefaultGojsEditor {
|
|
10135
10142
|
}
|
10136
10143
|
makeGroupImmersedUFTemplate(icon, title, size = { w: 80, h: 80 }) {
|
10137
10144
|
let node = this.$(go.Group, 'Spot', {
|
10138
|
-
selectable: false,
|
10139
10145
|
layout: this.$(go.Layout),
|
10140
|
-
|
10141
|
-
|
10146
|
+
}, {
|
10147
|
+
// minSize: new go.Size(NaN, 600),
|
10148
|
+
}, new go.Binding('selectable', '', (x) => {
|
10149
|
+
return x?.selectable;
|
10150
|
+
}), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', {
|
10142
10151
|
row: 0,
|
10143
10152
|
padding: new go.Margin(0, 0, 0, 0),
|
10144
10153
|
}, this.$(go.Shape, 'RoundedRectangle', {
|
@@ -10170,11 +10179,86 @@ class AtoDefaultGojsEditor {
|
|
10170
10179
|
fromLinkable: true,
|
10171
10180
|
toLinkable: true,
|
10172
10181
|
}, new go.Binding('alignment', '', (x) => {
|
10173
|
-
console.log('zzzzz', x);
|
10174
10182
|
return x?.[ATO_SPOT_LOCATION_TYPE.SPOT_OUTFLOW];
|
10175
10183
|
})));
|
10176
10184
|
this.myDiagram.groupTemplateMap.set(title, node);
|
10177
10185
|
}
|
10186
|
+
// makeGroupImmersedUFTemplate(
|
10187
|
+
// icon,
|
10188
|
+
// title,
|
10189
|
+
// size: { w: number; h: number } = { w: 80, h: 80 }
|
10190
|
+
// ) {
|
10191
|
+
// let node = this.$(
|
10192
|
+
// go.Group,
|
10193
|
+
// 'Spot',
|
10194
|
+
// {
|
10195
|
+
// selectable: false,
|
10196
|
+
// layout: this.$(go.Layout),
|
10197
|
+
// padding: new go.Margin(0, 30, 0, 0),
|
10198
|
+
// },
|
10199
|
+
// new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(
|
10200
|
+
// go.Point.stringify
|
10201
|
+
// ),
|
10202
|
+
// this.$(
|
10203
|
+
// go.Panel,
|
10204
|
+
// 'Auto',
|
10205
|
+
// {
|
10206
|
+
// row: 0,
|
10207
|
+
// padding: new go.Margin(0, 0, 0, 0),
|
10208
|
+
// },
|
10209
|
+
// this.$(go.Shape, 'RoundedRectangle', {
|
10210
|
+
// name: 'SHAPE_KEY',
|
10211
|
+
// fill: '#FCFCFD',
|
10212
|
+
// stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
10213
|
+
// strokeWidth: 2,
|
10214
|
+
// strokeDashArray: [5, 5],
|
10215
|
+
// }),
|
10216
|
+
// this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })
|
10217
|
+
// ),
|
10218
|
+
// this.$(go.Panel, 'Table', {
|
10219
|
+
// width: 0,
|
10220
|
+
// height: 0,
|
10221
|
+
// alignment: new go.Spot(0, 0, 0, 340),
|
10222
|
+
// alignmentFocus: go.Spot.Bottom,
|
10223
|
+
// portId: 'Inflow',
|
10224
|
+
// cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
10225
|
+
// fromSpot: go.Spot.Left,
|
10226
|
+
// toSpot: go.Spot.Left,
|
10227
|
+
// fromLinkable: true,
|
10228
|
+
// toLinkable: true,
|
10229
|
+
// }),
|
10230
|
+
// this.$(
|
10231
|
+
// go.Panel,
|
10232
|
+
// 'Spot',
|
10233
|
+
// {
|
10234
|
+
// alignmentFocus: go.Spot.Top,
|
10235
|
+
// alignment: new go.Spot(0, 0, 0, 0),
|
10236
|
+
// },
|
10237
|
+
// // this.$(
|
10238
|
+
// // go.Picture,
|
10239
|
+
// // OUTFLOW_LINE_DIRTY,
|
10240
|
+
// // {
|
10241
|
+
// // width: 10,
|
10242
|
+
// // height: 20,
|
10243
|
+
// // },
|
10244
|
+
// // new go.Binding('visible', '', (x) => {
|
10245
|
+
// // return x?.isViewGeneral && x?.hasOutFlow ? true : false;
|
10246
|
+
// // })
|
10247
|
+
// // ),
|
10248
|
+
// this.$(go.Panel, {
|
10249
|
+
// alignment: new go.Spot(0, 0, 0, -50),
|
10250
|
+
// alignmentFocus: go.Spot.Top,
|
10251
|
+
// portId: 'OutFlow',
|
10252
|
+
// cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
10253
|
+
// fromSpot: go.Spot.Center,
|
10254
|
+
// toSpot: go.Spot.Right,
|
10255
|
+
// fromLinkable: true,
|
10256
|
+
// toLinkable: true,
|
10257
|
+
// })
|
10258
|
+
// )
|
10259
|
+
// );
|
10260
|
+
// this.myDiagram.groupTemplateMap.set(title, node);
|
10261
|
+
// }
|
10178
10262
|
groupPlantCellTemplate(icon, title, size = { w: 80, h: 80 }) {
|
10179
10263
|
const self = this;
|
10180
10264
|
let node = this.$(go.Group, 'Spot', {
|
@@ -11453,5 +11537,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
11453
11537
|
* Generated bundle index. Do not edit.
|
11454
11538
|
*/
|
11455
11539
|
|
11456
|
-
export { ASSET_CATEGORY_PARAMS, ASSET_CATEGORY_PARAMS__BOILER, ASSET_CATEGORY_PARAMS__IMMERSED_UF, ASSET_CATEGORY_PARAMS__RO_WATER_TREATMENT, ATO_ASSET_LAYERS, ATO_COMPONENTS_GROUP_DATA, ATO_MAPPER_FROM, ATO_SPOT_LOCATION_TYPE, AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoGojsEditorModel, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService, COMPONENTS_GROUP_TYPE, DATA_ASSET_PARAMETER_FIELDS, DATA_WATER_SYSTEMS, ENUM_ASSET_PARAMETERS, STYLE_TABLE_PARAM, WATER_SYSTEMS_NAME };
|
11540
|
+
export { ASSET_CATEGORY_PARAMS, ASSET_CATEGORY_PARAMS__BOILER, ASSET_CATEGORY_PARAMS__IMMERSED_UF, ASSET_CATEGORY_PARAMS__RO_WATER_TREATMENT, ATO_ASSET_LAYERS, ATO_COMPONENTS_GROUP_DATA, ATO_ECOMPONENT_PLANT_TYPE, ATO_ENUM_FLOW_DIRECTION, ATO_MAPPER_FROM, ATO_SPOT_LOCATION_TYPE, AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoGojsEditorModel, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService, COMPONENTS_GROUP_TYPE, COMPONENT_TYPE_OF_PLANT_CELL, COMPONENT_TYPE_OF_PLANT_CELL_ENERGY, COMPOTYPE_CALL_PLANT_TOPOLOGY_DETAILS, DATA_ASSET_PARAMETER_FIELDS, DATA_WATER_SYSTEMS, ENUM_ASSET_PARAMETERS, ENUM_ROLES, E_COMPONENT_DATA_TYPE, E_FILTER_KEY, E_FLOW_RECORD, GROUP_PC_INPUTS_KEY, GROUP_PC_OUTPUTS_KEY, GROUP_PLANT_CELL_KEY, KEY_CREATE_DOM_TO_DOWNLOAD, NO_DATA, NO_ENOUGH_DATA, NO_HIDDEN, PLANT_ENERGY_DIAGRAM_TABS, STYLE_TABLE_PARAM, TAG_TYPE, TEXT_ERR, TEXT_UNKNOWN, VALUE_NA, VALUE_NA_SPECIAL, WATER_SYSTEMS_NAME };
|
11457
11541
|
//# sourceMappingURL=ato-water-lib.mjs.map
|