ato-water-lib 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/ato-water-lib.module.mjs +15 -7
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +56 -0
- package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +5 -5
- package/esm2020/lib/constants/components-group-const.mjs +1289 -0
- package/esm2020/lib/models/default-gojs-editor.model.mjs +225 -223
- package/esm2020/lib/models/gojs-editor.model.mjs +302 -295
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ato-water-lib.mjs +1748 -526
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +1879 -526
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/ato-water-lib.module.d.ts +3 -1
- package/lib/components/asset-flow/asset-flow.component.d.ts +21 -0
- package/lib/constants/components-group-const.d.ts +1132 -0
- package/lib/models/default-gojs-editor.model.d.ts +3 -3
- package/lib/models/gojs-editor.model.d.ts +10 -7
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
import { EventEmitter, OnDestroy } from '@angular/core';
|
2
|
-
import {
|
2
|
+
import { AtoGojsEditorModel } from './gojs-editor.model';
|
3
3
|
import * as go from 'gojs';
|
4
4
|
import { Subject } from 'rxjs';
|
5
5
|
import { Subscription } from 'rxjs';
|
@@ -19,8 +19,8 @@ export declare class AtoDefaultGojsEditor implements OnDestroy {
|
|
19
19
|
set initialOptions(v: any);
|
20
20
|
get initialOptions(): any;
|
21
21
|
private _editor;
|
22
|
-
set editor(v:
|
23
|
-
get editor():
|
22
|
+
set editor(v: AtoGojsEditorModel);
|
23
|
+
get editor(): AtoGojsEditorModel;
|
24
24
|
isShowNodeInfo: boolean;
|
25
25
|
plantSatus: string;
|
26
26
|
constructor();
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import { ATO_ECOMPONENT_PLANT_TYPE } from '../constants/value.const';
|
2
|
-
export declare class
|
2
|
+
export declare class AtoGojsEditorModel {
|
3
3
|
initialOptions: any;
|
4
4
|
data: any;
|
5
5
|
constructor(data: any);
|
6
6
|
}
|
7
|
-
export declare namespace
|
7
|
+
export declare namespace AtoGojsEditorModel {
|
8
8
|
const GRID_SIZE = 20;
|
9
9
|
const BASIC_GRID_INTERVAL_X = 24;
|
10
10
|
const BASIC_GRID_INTERVAL_Y = 10;
|
@@ -47,7 +47,10 @@ export declare namespace GojsEditorModel {
|
|
47
47
|
DANUBE = "#7197CA",
|
48
48
|
DANUBE_ALICE_BLUE = "#F1F5FA",
|
49
49
|
AZURE = "#EEF8F8",
|
50
|
-
OLD_LACE = "#FCF6EA"
|
50
|
+
OLD_LACE = "#FCF6EA",
|
51
|
+
CARROT_ORANGE = "#F69122",
|
52
|
+
FLAMINGO = "#E95F47",
|
53
|
+
SNOW = "#FEF7F6"
|
51
54
|
}
|
52
55
|
enum ENUM_LINK_TYPES {
|
53
56
|
SIMPLE = "simple",
|
@@ -313,7 +316,7 @@ export declare namespace GojsEditorModel {
|
|
313
316
|
KEY_MODEL_COMPUTED = "M"
|
314
317
|
}
|
315
318
|
const COLOR_COLLECTION_METHOD: {
|
316
|
-
[key in
|
319
|
+
[key in AtoGojsEditorModel.DATA_COLLECTION_METHOD]: any;
|
317
320
|
};
|
318
321
|
enum WITH_DRAW_SYSTEM_TYPES {
|
319
322
|
WATER_SOURCE = "WaterSource"
|
@@ -347,10 +350,10 @@ export declare namespace GojsEditorModel {
|
|
347
350
|
const PLANT_CELL_PATH = "assets/images/editor/plant-cell";
|
348
351
|
const DATA_BOX = "assets/images/editor/data-box";
|
349
352
|
const LINK_TEMPLATES: {
|
350
|
-
[key in
|
353
|
+
[key in AtoGojsEditorModel.ENUM_LINK_TYPES]: any;
|
351
354
|
};
|
352
355
|
interface I_TEMPLATE_ITEM {
|
353
|
-
name:
|
356
|
+
name: AtoGojsEditorModel.ENUM_TEMPLATES;
|
354
357
|
icon?: string;
|
355
358
|
size?: {
|
356
359
|
w: number;
|
@@ -360,7 +363,7 @@ export declare namespace GojsEditorModel {
|
|
360
363
|
}
|
361
364
|
const ATTRNAME_COMPONENT: any[];
|
362
365
|
const NODE_TEMPLATES: {
|
363
|
-
[key in
|
366
|
+
[key in AtoGojsEditorModel.ENUM_TEMPLATES]: I_TEMPLATE_ITEM;
|
364
367
|
};
|
365
368
|
const WITHDRAW_DISCHARGE_ICON: {
|
366
369
|
[key in string]: any;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -2,3 +2,4 @@ export * from './lib/ato-water-lib.service';
|
|
2
2
|
export * from './lib/ato-water-lib.component';
|
3
3
|
export * from './lib/ato-water-lib.module';
|
4
4
|
export * from './lib/components/flow-diagram-lib/flow-diagram-lib.component';
|
5
|
+
export * from './lib/components/asset-flow/asset-flow.component';
|