ato-water-lib 0.0.120 → 0.0.122
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 +9 -2
- package/esm2020/lib/models/default-gojs-editor.model.mjs +80 -5
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/ato-water-lib.mjs +85 -6
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +88 -6
- 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
package/esm2020/public-api.mjs
CHANGED
@@ -15,4 +15,6 @@ export * from './lib/directive/ng-var.directive';
|
|
15
15
|
export * from './lib/constants/components-group-const';
|
16
16
|
// Model
|
17
17
|
export * from './lib/models/gojs-editor.model';
|
18
|
-
|
18
|
+
// Const
|
19
|
+
export * from './lib/constants/value.const';
|
20
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxZQUFZO0FBQ1osY0FBYyw4REFBOEQsQ0FBQztBQUM3RSxjQUFjLGtEQUFrRCxDQUFDO0FBQ2pFLGNBQWMsZ0VBQWdFLENBQUM7QUFDL0UsWUFBWTtBQUNaLGNBQWMsdUNBQXVDLENBQUM7QUFDdEQsY0FBYyxrQ0FBa0MsQ0FBQztBQUNqRCxPQUFPO0FBQ1AsY0FBYyx3Q0FBd0MsQ0FBQztBQUN2RCxRQUFRO0FBQ1IsY0FBYyxnQ0FBZ0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@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
5558
5558
|
loc: '700 300',
|
5559
5559
|
},
|
5560
5560
|
},
|
5561
|
-
Object.assign(Object.assign({ key: 132, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 150, loc: '15 15', padding: new go.Margin(0, 0, 0, 0) }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.IMMERSED_UF_SYSTEM_KPIS__CHEMISTRY]), { minSizeValue: new go.Size(150, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS__IMMERSED_UF[WATER_SYSTEMS_NAME.IMMERSED_UF_SYSTEM_KPIS__CHEMISTRY].map((e) => (Object.assign(Object.assign({}, e), { value: 'Mapping in Permeate section', isEditable: false, maxSizeValue: new go.Size(180, 14), waterSystem: WATER_SYSTEMS_NAME.IMMERSED_UF_SYSTEM_KPIS, isReadOnly: true, isFrom: ATO_MAPPER_FROM.INDICATOR, visible:
|
5561
|
+
Object.assign(Object.assign({ key: 132, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 150, loc: '15 15', padding: new go.Margin(0, 0, 0, 0) }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.IMMERSED_UF_SYSTEM_KPIS__CHEMISTRY]), { minSizeValue: new go.Size(150, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS__IMMERSED_UF[WATER_SYSTEMS_NAME.IMMERSED_UF_SYSTEM_KPIS__CHEMISTRY].map((e) => (Object.assign(Object.assign({}, e), { value: 'Mapping in Permeate section', isEditable: false, maxSizeValue: new go.Size(180, 14), waterSystem: WATER_SYSTEMS_NAME.IMMERSED_UF_SYSTEM_KPIS, isReadOnly: true, isFrom: ATO_MAPPER_FROM.INDICATOR, visible: true }))), assetLayers: ATO_ASSET_LAYERS.CHEMISTRY, isFrom: ATO_MAPPER_FROM.INDICATOR, extendedData: {
|
5562
|
+
visible: false,
|
5563
|
+
}, [`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}`]: {
|
5562
5564
|
visible: true,
|
5563
5565
|
}, extendedDataResponsive: {
|
5564
5566
|
visible: false,
|
5567
|
+
}, [`extendedDataIsFrom${ATO_MAPPER_FROM.INDICATOR}Responsive`]: {
|
5568
|
+
visible: false,
|
5565
5569
|
} }),
|
5566
5570
|
Object.assign(Object.assign({ key: 135, type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE, group: 150, loc: '665 120', padding: new go.Margin(0, 0, 0, 0) }, DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.IMMERSED_UF_PERMEATE__CHEMISTRY]), { minSizeValue: new go.Size(100, NaN), selectable: false, dataTable: ASSET_CATEGORY_PARAMS__IMMERSED_UF[WATER_SYSTEMS_NAME.IMMERSED_UF_PERMEATE__CHEMISTRY].map((e) => (Object.assign(Object.assign({}, e), { value: '', isEditable: true, maxSizeValue: new go.Size(120, 14), waterSystem: WATER_SYSTEMS_NAME.IMMERSED_UF_PERMEATE }))), assetLayers: ATO_ASSET_LAYERS.CHEMISTRY, extendedData: {
|
5567
5571
|
visible: true,
|
@@ -8820,10 +8824,10 @@ class AtoDefaultGojsEditor {
|
|
8820
8824
|
}
|
8821
8825
|
makeGroupImmersedUFTemplate(icon, title, size = { w: 80, h: 80 }) {
|
8822
8826
|
let node = this.$(go.Group, 'Spot', {
|
8823
|
-
selectable: false,
|
8824
8827
|
layout: this.$(go.Layout),
|
8825
|
-
|
8826
|
-
|
8828
|
+
}, {
|
8829
|
+
// minSize: new go.Size(NaN, 600),
|
8830
|
+
}, new go.Binding('selectable', 'selectable'), new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(go.Point.stringify), this.$(go.Panel, 'Auto', {
|
8827
8831
|
row: 0,
|
8828
8832
|
padding: new go.Margin(0, 0, 0, 0),
|
8829
8833
|
}, this.$(go.Shape, 'RoundedRectangle', {
|
@@ -8855,11 +8859,86 @@ class AtoDefaultGojsEditor {
|
|
8855
8859
|
fromLinkable: true,
|
8856
8860
|
toLinkable: true,
|
8857
8861
|
}, new go.Binding('alignment', '', (x) => {
|
8858
|
-
console.log('zzzzz', x);
|
8859
8862
|
return x === null || x === void 0 ? void 0 : x[ATO_SPOT_LOCATION_TYPE.SPOT_OUTFLOW];
|
8860
8863
|
})));
|
8861
8864
|
this.myDiagram.groupTemplateMap.set(title, node);
|
8862
8865
|
}
|
8866
|
+
// makeGroupImmersedUFTemplate(
|
8867
|
+
// icon,
|
8868
|
+
// title,
|
8869
|
+
// size: { w: number; h: number } = { w: 80, h: 80 }
|
8870
|
+
// ) {
|
8871
|
+
// let node = this.$(
|
8872
|
+
// go.Group,
|
8873
|
+
// 'Spot',
|
8874
|
+
// {
|
8875
|
+
// selectable: false,
|
8876
|
+
// layout: this.$(go.Layout),
|
8877
|
+
// padding: new go.Margin(0, 30, 0, 0),
|
8878
|
+
// },
|
8879
|
+
// new go.Binding('location', 'loc', go.Point.parse).makeTwoWay(
|
8880
|
+
// go.Point.stringify
|
8881
|
+
// ),
|
8882
|
+
// this.$(
|
8883
|
+
// go.Panel,
|
8884
|
+
// 'Auto',
|
8885
|
+
// {
|
8886
|
+
// row: 0,
|
8887
|
+
// padding: new go.Margin(0, 0, 0, 0),
|
8888
|
+
// },
|
8889
|
+
// this.$(go.Shape, 'RoundedRectangle', {
|
8890
|
+
// name: 'SHAPE_KEY',
|
8891
|
+
// fill: '#FCFCFD',
|
8892
|
+
// stroke: AtoGojsEditorModel.ENUM_COLORS.RESOLUTION_BLUE,
|
8893
|
+
// strokeWidth: 2,
|
8894
|
+
// strokeDashArray: [5, 5],
|
8895
|
+
// }),
|
8896
|
+
// this.$(go.Placeholder, { padding: new go.Margin(0, 0, 0, 0) })
|
8897
|
+
// ),
|
8898
|
+
// this.$(go.Panel, 'Table', {
|
8899
|
+
// width: 0,
|
8900
|
+
// height: 0,
|
8901
|
+
// alignment: new go.Spot(0, 0, 0, 340),
|
8902
|
+
// alignmentFocus: go.Spot.Bottom,
|
8903
|
+
// portId: 'Inflow',
|
8904
|
+
// cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
8905
|
+
// fromSpot: go.Spot.Left,
|
8906
|
+
// toSpot: go.Spot.Left,
|
8907
|
+
// fromLinkable: true,
|
8908
|
+
// toLinkable: true,
|
8909
|
+
// }),
|
8910
|
+
// this.$(
|
8911
|
+
// go.Panel,
|
8912
|
+
// 'Spot',
|
8913
|
+
// {
|
8914
|
+
// alignmentFocus: go.Spot.Top,
|
8915
|
+
// alignment: new go.Spot(0, 0, 0, 0),
|
8916
|
+
// },
|
8917
|
+
// // this.$(
|
8918
|
+
// // go.Picture,
|
8919
|
+
// // OUTFLOW_LINE_DIRTY,
|
8920
|
+
// // {
|
8921
|
+
// // width: 10,
|
8922
|
+
// // height: 20,
|
8923
|
+
// // },
|
8924
|
+
// // new go.Binding('visible', '', (x) => {
|
8925
|
+
// // return x?.isViewGeneral && x?.hasOutFlow ? true : false;
|
8926
|
+
// // })
|
8927
|
+
// // ),
|
8928
|
+
// this.$(go.Panel, {
|
8929
|
+
// alignment: new go.Spot(0, 0, 0, -50),
|
8930
|
+
// alignmentFocus: go.Spot.Top,
|
8931
|
+
// portId: 'OutFlow',
|
8932
|
+
// cursor: this._initialOptions.isReadOnly ? '' : 'pointer',
|
8933
|
+
// fromSpot: go.Spot.Center,
|
8934
|
+
// toSpot: go.Spot.Right,
|
8935
|
+
// fromLinkable: true,
|
8936
|
+
// toLinkable: true,
|
8937
|
+
// })
|
8938
|
+
// )
|
8939
|
+
// );
|
8940
|
+
// this.myDiagram.groupTemplateMap.set(title, node);
|
8941
|
+
// }
|
8863
8942
|
groupPlantCellTemplate(icon, title, size = { w: 80, h: 80 }) {
|
8864
8943
|
const self = this;
|
8865
8944
|
let node = this.$(go.Group, 'Spot', {
|
@@ -10150,5 +10229,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
10150
10229
|
* Generated bundle index. Do not edit.
|
10151
10230
|
*/
|
10152
10231
|
|
10153
|
-
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 };
|
10232
|
+
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 };
|
10154
10233
|
//# sourceMappingURL=ato-water-lib.mjs.map
|