ato-water-lib 0.0.32 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/ng-package.json +11 -0
  2. package/package.json +3 -22
  3. package/src/lib/ato-water-lib.component.spec.ts +23 -0
  4. package/src/lib/ato-water-lib.component.ts +15 -0
  5. package/src/lib/ato-water-lib.module.ts +31 -0
  6. package/src/lib/ato-water-lib.service.spec.ts +16 -0
  7. package/src/lib/ato-water-lib.service.ts +9 -0
  8. package/src/lib/components/asset-flow/asset-flow.component.html +21 -0
  9. package/src/lib/components/asset-flow/asset-flow.component.scss +4 -0
  10. package/src/lib/components/asset-flow/asset-flow.component.spec.ts +23 -0
  11. package/src/lib/components/asset-flow/asset-flow.component.ts +137 -0
  12. package/src/lib/components/asset-params-view/asset-params-view.component.html +85 -0
  13. package/src/lib/components/asset-params-view/asset-params-view.component.scss +37 -0
  14. package/src/lib/components/asset-params-view/asset-params-view.component.spec.ts +23 -0
  15. package/src/lib/components/asset-params-view/asset-params-view.component.ts +16 -0
  16. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.css +0 -0
  17. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.html +25 -0
  18. package/src/lib/components/flow-diagram-lib/flow-diagram-lib.component.ts +69 -0
  19. package/src/lib/constants/applicable-prefixes-const.ts +452 -0
  20. package/src/lib/constants/base64.const.ts +5 -0
  21. package/src/lib/constants/components-group-const.ts +1637 -0
  22. package/src/lib/constants/icon-base64.const.ts +3 -0
  23. package/src/lib/constants/icon-svg.const.ts +8 -0
  24. package/src/lib/constants/key.const.ts +5 -0
  25. package/src/lib/constants/plant.constant.ts +52 -0
  26. package/src/lib/constants/value.const.ts +822 -0
  27. package/src/lib/directive/ato-loading.directive.ts +55 -0
  28. package/src/lib/directive/ng-var.directive.ts +28 -0
  29. package/src/lib/models/default-gojs-editor.model.ts +4906 -0
  30. package/{lib/models/gojs-data.model.d.ts → src/lib/models/gojs-data.model.ts} +3 -3
  31. package/src/lib/models/gojs-editor.model.ts +1901 -0
  32. package/src/lib/services/utils/utils.service.ts +141 -0
  33. package/{public-api.d.ts → src/public-api.ts} +10 -0
  34. package/tsconfig.lib.json +14 -0
  35. package/tsconfig.lib.prod.json +10 -0
  36. package/tsconfig.spec.json +14 -0
  37. package/esm2020/ato-water-lib.mjs +0 -5
  38. package/esm2020/lib/ato-water-lib.component.mjs +0 -19
  39. package/esm2020/lib/ato-water-lib.module.mjs +0 -49
  40. package/esm2020/lib/ato-water-lib.service.mjs +0 -14
  41. package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +0 -121
  42. package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +0 -26
  43. package/esm2020/lib/components/flow-diagram-lib/flow-diagram-lib.component.mjs +0 -54
  44. package/esm2020/lib/constants/applicable-prefixes-const.mjs +0 -441
  45. package/esm2020/lib/constants/base64.const.mjs +0 -5
  46. package/esm2020/lib/constants/components-group-const.mjs +0 -1476
  47. package/esm2020/lib/constants/icon-base64.const.mjs +0 -4
  48. package/esm2020/lib/constants/key.const.mjs +0 -4
  49. package/esm2020/lib/constants/plant.constant.mjs +0 -51
  50. package/esm2020/lib/constants/value.const.mjs +0 -782
  51. package/esm2020/lib/directive/ato-loading.directive.mjs +0 -55
  52. package/esm2020/lib/directive/ng-var.directive.mjs +0 -31
  53. package/esm2020/lib/models/default-gojs-editor.model.mjs +0 -3226
  54. package/esm2020/lib/models/gojs-data.model.mjs +0 -6
  55. package/esm2020/lib/models/gojs-editor.model.mjs +0 -1754
  56. package/esm2020/lib/services/utils/utils.service.mjs +0 -133
  57. package/esm2020/public-api.mjs +0 -15
  58. package/fesm2015/ato-water-lib.mjs +0 -8017
  59. package/fesm2015/ato-water-lib.mjs.map +0 -1
  60. package/fesm2020/ato-water-lib.mjs +0 -8204
  61. package/fesm2020/ato-water-lib.mjs.map +0 -1
  62. package/index.d.ts +0 -5
  63. package/lib/ato-water-lib.component.d.ts +0 -5
  64. package/lib/ato-water-lib.module.d.ts +0 -13
  65. package/lib/ato-water-lib.service.d.ts +0 -6
  66. package/lib/components/asset-flow/asset-flow.component.d.ts +0 -1336
  67. package/lib/components/asset-params-view/asset-params-view.component.d.ts +0 -10
  68. package/lib/components/flow-diagram-lib/flow-diagram-lib.component.d.ts +0 -16
  69. package/lib/constants/applicable-prefixes-const.d.ts +0 -162
  70. package/lib/constants/base64.const.d.ts +0 -3
  71. package/lib/constants/components-group-const.d.ts +0 -1561
  72. package/lib/constants/icon-base64.const.d.ts +0 -3
  73. package/lib/constants/key.const.d.ts +0 -1
  74. package/lib/constants/plant.constant.d.ts +0 -7
  75. package/lib/constants/value.const.d.ts +0 -71
  76. package/lib/directive/ato-loading.directive.d.ts +0 -14
  77. package/lib/directive/ng-var.directive.d.ts +0 -12
  78. package/lib/models/default-gojs-editor.model.d.ts +0 -197
  79. package/lib/models/gojs-editor.model.d.ts +0 -436
  80. package/lib/services/utils/utils.service.d.ts +0 -24
@@ -0,0 +1,141 @@
1
+ import { DecimalPipe } from '@angular/common';
2
+ import { Injectable } from '@angular/core';
3
+ import { ATO_ABBREVIATION, APPLICABLE_PREFIXES, ROUNDED_NUMBER, } from '../../constants/applicable-prefixes-const';
4
+ import { v4 as uuidV4 } from 'uuid';
5
+ import _ from 'lodash';
6
+
7
+ @Injectable({
8
+ providedIn: 'root',
9
+ })
10
+ export class UtilsService {
11
+ static convertPrefixesData(data: { value: number | string | any; unit: string | any; isChangeUnitKwh?: boolean }): {
12
+ shortenedNumber: number | string | null;
13
+ unitPrefixes: number | null | string;
14
+ } {
15
+ if (!data?.unit || (!+data?.value && data?.value !== '0')) {
16
+ return {
17
+ shortenedNumber: data?.value ?? '0',
18
+ unitPrefixes: '',
19
+ };
20
+ }
21
+
22
+ const [unitToConvert, suffixUnit] = data?.unit?.split('/');
23
+
24
+ if (unitToConvert === ATO_ABBREVIATION.kWh) {
25
+ return this.getDataFormatSpecialKwh(data?.value, data?.isChangeUnitKwh);
26
+ }
27
+
28
+ return this.getDataFormatUnit(data?.value, unitToConvert);
29
+ }
30
+
31
+ static getDataFormatSpecialKwh(value: any, isChangeUnitKwh: any) {
32
+ const _DecimalPipe = new DecimalPipe('en');
33
+
34
+ if (!!isChangeUnitKwh) {
35
+ // 1.000.000 KWh => 1 GWh
36
+ if (Math.abs(value) >= ROUNDED_NUMBER.MILLION) {
37
+ return {
38
+ shortenedNumber: _DecimalPipe.transform(+(value / ROUNDED_NUMBER.MILLION) ?? 0, '1.0-2'),
39
+ unitPrefixes: APPLICABLE_PREFIXES?.[ATO_ABBREVIATION.kWh]?.[ROUNDED_NUMBER.BILLION],
40
+ };
41
+ }
42
+ // 1000 KWh => 1 MWh
43
+ if (Math.abs(value) >= ROUNDED_NUMBER.THOUSAND) {
44
+ return {
45
+ shortenedNumber: _DecimalPipe.transform(+(value / ROUNDED_NUMBER.THOUSAND) ?? 0, '1.0-2'),
46
+ unitPrefixes: APPLICABLE_PREFIXES?.[ATO_ABBREVIATION.kWh]?.[ROUNDED_NUMBER.MILLION],
47
+ };
48
+ }
49
+ }
50
+ if (Math.abs(value) >= ROUNDED_NUMBER.BILLION) {
51
+ return {
52
+ shortenedNumber: _DecimalPipe.transform(+(value / ROUNDED_NUMBER.MILLION) ?? 0, '1.0-2'),
53
+ unitPrefixes: APPLICABLE_PREFIXES?.[ATO_ABBREVIATION.kWh]?.[ROUNDED_NUMBER.BILLION],
54
+ };
55
+ }
56
+ if (Math.abs(value) >= ROUNDED_NUMBER.MILLION) {
57
+ return {
58
+ shortenedNumber: _DecimalPipe.transform(+(value / ROUNDED_NUMBER.MILLION) ?? 0, '1.0-2'),
59
+ unitPrefixes: APPLICABLE_PREFIXES?.[ATO_ABBREVIATION.kWh]?.[ROUNDED_NUMBER.MILLION],
60
+ };
61
+ }
62
+ if (Math.abs(value) >= ROUNDED_NUMBER.THOUSAND) {
63
+ return {
64
+ shortenedNumber: _DecimalPipe.transform(+(value / ROUNDED_NUMBER.THOUSAND) ?? 0, '1.0-2'),
65
+ unitPrefixes: APPLICABLE_PREFIXES?.[ATO_ABBREVIATION.kWh]?.[ROUNDED_NUMBER.THOUSAND],
66
+ };
67
+ }
68
+
69
+ return {
70
+ shortenedNumber: _DecimalPipe.transform(+value ?? 0, '1.0-2') ?? '0',
71
+ unitPrefixes: '',
72
+ };
73
+ }
74
+
75
+ static getDataFormatUnit(value: any, unit: string) {
76
+ const _DecimalPipe = new DecimalPipe('en');
77
+
78
+ if (Math.abs(value) >= ROUNDED_NUMBER.BILLION) {
79
+ return {
80
+ shortenedNumber: _DecimalPipe.transform(+(value / ROUNDED_NUMBER.BILLION) ?? 0, '1.0-2'),
81
+ unitPrefixes: (APPLICABLE_PREFIXES as any)?.[unit]?.[ROUNDED_NUMBER.BILLION],
82
+ };
83
+ }
84
+ if (Math.abs(value) >= ROUNDED_NUMBER.MILLION) {
85
+ return {
86
+ shortenedNumber: _DecimalPipe.transform(+(value / ROUNDED_NUMBER.MILLION) ?? 0, '1.0-2'),
87
+ unitPrefixes: (APPLICABLE_PREFIXES as any)?.[unit]?.[ROUNDED_NUMBER.MILLION],
88
+ };
89
+ }
90
+ if (Math.abs(value) >= ROUNDED_NUMBER.THOUSAND) {
91
+ return {
92
+ shortenedNumber: _DecimalPipe.transform(+(value / ROUNDED_NUMBER.THOUSAND) ?? 0, '1.0-2'),
93
+ unitPrefixes: (APPLICABLE_PREFIXES as any)?.[unit]?.[ROUNDED_NUMBER.THOUSAND],
94
+ };
95
+ }
96
+ return {
97
+ shortenedNumber: _DecimalPipe.transform(+value ?? 0, '1.0-2') ?? '0',
98
+ unitPrefixes: '',
99
+ };
100
+ }
101
+
102
+ static convertSpecialUnit(unit: string, unitPrefixes?: any) {
103
+ switch (unit) {
104
+ case ATO_ABBREVIATION.kWh: {
105
+ return unitPrefixes ? ATO_ABBREVIATION.Wh : ATO_ABBREVIATION.kWh;
106
+ }
107
+ case ATO_ABBREVIATION.m3: {
108
+ return ATO_ABBREVIATION.m3_Special;
109
+ }
110
+ case ATO_ABBREVIATION.m3_unit: {
111
+ return ATO_ABBREVIATION.m3_unit_Special;
112
+ }
113
+ case ATO_ABBREVIATION.degC: {
114
+ return ATO_ABBREVIATION.degC_unit_Special;
115
+ }
116
+ case ATO_ABBREVIATION.degF: {
117
+ return ATO_ABBREVIATION.degF_unit_Special;
118
+ }
119
+ default: {
120
+ unit = UtilsService.replaceAll(unit ?? '', ATO_ABBREVIATION.m3, ATO_ABBREVIATION.m3_Special);
121
+ return UtilsService.replaceAll(unit ?? '', ATO_ABBREVIATION.CO2, ATO_ABBREVIATION.CO2_Special);
122
+ }
123
+ }
124
+ }
125
+
126
+ static generateUUID() {
127
+ const id = UtilsService.replaceAll(uuidV4(), '-', '').toUpperCase();
128
+ const randomPosition = _.random(0, 32);
129
+ const randomNumber = _.random(0, 9).toString();
130
+ const leftChar = id.slice(0, randomPosition);
131
+ const rightChar = id.slice(randomPosition);
132
+ return `${leftChar}${randomNumber}${rightChar}`;
133
+ }
134
+
135
+ static replaceAll(text: any, find: any, replace: any): string {
136
+ function escapeRegExp(str: any) {
137
+ return str.replace(/([.*+?^=!:${}()|\[\]\/\\])/g, '\\$1');
138
+ }
139
+ return text.replace(new RegExp(escapeRegExp(find), 'g'), replace);
140
+ }
141
+ }
@@ -1,8 +1,18 @@
1
+ /*
2
+ * Public API Surface of ato-water-lib
3
+ */
4
+
1
5
  export * from './lib/ato-water-lib.service';
2
6
  export * from './lib/ato-water-lib.component';
3
7
  export * from './lib/ato-water-lib.module';
8
+ // Component
4
9
  export * from './lib/components/flow-diagram-lib/flow-diagram-lib.component';
5
10
  export * from './lib/components/asset-flow/asset-flow.component';
6
11
  export * from './lib/components/asset-params-view/asset-params-view.component';
12
+ // Directive
7
13
  export * from './lib/directive/ato-loading.directive';
8
14
  export * from './lib/directive/ng-var.directive';
15
+ // Css
16
+
17
+
18
+
@@ -0,0 +1,14 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "../../tsconfig.json",
4
+ "compilerOptions": {
5
+ "outDir": "../../out-tsc/lib",
6
+ "declaration": true,
7
+ "declarationMap": true,
8
+ "inlineSources": true,
9
+ "types": []
10
+ },
11
+ "exclude": [
12
+ "**/*.spec.ts"
13
+ ]
14
+ }
@@ -0,0 +1,10 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "./tsconfig.lib.json",
4
+ "compilerOptions": {
5
+ "declarationMap": false
6
+ },
7
+ "angularCompilerOptions": {
8
+ "compilationMode": "partial"
9
+ }
10
+ }
@@ -0,0 +1,14 @@
1
+ /* To learn more about this file see: https://angular.io/config/tsconfig. */
2
+ {
3
+ "extends": "../../tsconfig.json",
4
+ "compilerOptions": {
5
+ "outDir": "../../out-tsc/spec",
6
+ "types": [
7
+ "jasmine"
8
+ ]
9
+ },
10
+ "include": [
11
+ "**/*.spec.ts",
12
+ "**/*.d.ts"
13
+ ]
14
+ }
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- export * from './public-api';
5
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvLXdhdGVyLWxpYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2F0by13YXRlci1saWIvc3JjL2F0by13YXRlci1saWIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
@@ -1,19 +0,0 @@
1
- import { Component } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class AtoWaterLibComponent {
4
- }
5
- AtoWaterLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
6
- AtoWaterLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoWaterLibComponent, selector: "lib-ato-water-lib", ngImport: i0, template: `
7
- <p>
8
- ato-water-lib works!
9
- </p>
10
- `, isInline: true });
11
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibComponent, decorators: [{
12
- type: Component,
13
- args: [{ selector: 'lib-ato-water-lib', template: `
14
- <p>
15
- ato-water-lib works!
16
- </p>
17
- ` }]
18
- }] });
19
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvLXdhdGVyLWxpYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvYXRvLXdhdGVyLWxpYi5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLGVBQWUsQ0FBQzs7QUFZMUMsTUFBTSxPQUFPLG9CQUFvQjs7a0hBQXBCLG9CQUFvQjtzR0FBcEIsb0JBQW9CLHlEQVJyQjs7OztHQUlUOzRGQUlVLG9CQUFvQjtrQkFWaEMsU0FBUzsrQkFDRSxtQkFBbUIsWUFDbkI7Ozs7R0FJVCIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbXBvbmVudCB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5AQ29tcG9uZW50KHtcbiAgc2VsZWN0b3I6ICdsaWItYXRvLXdhdGVyLWxpYicsXG4gIHRlbXBsYXRlOiBgXG4gICAgPHA+XG4gICAgICBhdG8td2F0ZXItbGliIHdvcmtzIVxuICAgIDwvcD5cbiAgYCxcbiAgc3R5bGVzOiBbXG4gIF1cbn0pXG5leHBvcnQgY2xhc3MgQXRvV2F0ZXJMaWJDb21wb25lbnQge1xuXG59XG4iXX0=
@@ -1,49 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { AtoWaterLibComponent } from './ato-water-lib.component';
3
- import { AtoFlowDiagramLibComponent } from './components/flow-diagram-lib/flow-diagram-lib.component';
4
- import { AssetFlowComponent } from './components/asset-flow/asset-flow.component';
5
- import { CommonModule } from '@angular/common';
6
- import { AtoLoadingDirective } from './directive/ato-loading.directive';
7
- import { AtoAssetParamsViewComponent } from './components/asset-params-view/asset-params-view.component';
8
- import { AtoNgVarDirective } from './directive/ng-var.directive';
9
- import * as i0 from "@angular/core";
10
- export class AtoWaterLibModule {
11
- }
12
- AtoWaterLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
13
- AtoWaterLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, declarations: [AtoWaterLibComponent,
14
- AtoFlowDiagramLibComponent,
15
- AssetFlowComponent,
16
- AtoLoadingDirective,
17
- AtoAssetParamsViewComponent,
18
- AtoNgVarDirective], imports: [CommonModule], exports: [AtoWaterLibComponent,
19
- AtoFlowDiagramLibComponent,
20
- AssetFlowComponent,
21
- AtoLoadingDirective,
22
- AtoAssetParamsViewComponent,
23
- AtoNgVarDirective] });
24
- AtoWaterLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, imports: [CommonModule] });
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, decorators: [{
26
- type: NgModule,
27
- args: [{
28
- declarations: [
29
- AtoWaterLibComponent,
30
- AtoFlowDiagramLibComponent,
31
- AssetFlowComponent,
32
- AtoLoadingDirective,
33
- AtoAssetParamsViewComponent,
34
- AtoNgVarDirective,
35
- ],
36
- imports: [
37
- CommonModule,
38
- ],
39
- exports: [
40
- AtoWaterLibComponent,
41
- AtoFlowDiagramLibComponent,
42
- AssetFlowComponent,
43
- AtoLoadingDirective,
44
- AtoAssetParamsViewComponent,
45
- AtoNgVarDirective,
46
- ]
47
- }]
48
- }] });
49
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvLXdhdGVyLWxpYi5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvYXRvLXdhdGVyLWxpYi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFFBQVEsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6QyxPQUFPLEVBQUUsb0JBQW9CLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQztBQUNqRSxPQUFPLEVBQUUsMEJBQTBCLEVBQUUsTUFBTSwwREFBMEQsQ0FBQztBQUN0RyxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSw4Q0FBOEMsQ0FBQztBQUNsRixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDL0MsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sbUNBQW1DLENBQUM7QUFDeEUsT0FBTyxFQUFFLDJCQUEyQixFQUFFLE1BQU0sNERBQTRELENBQUM7QUFDekcsT0FBTyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sOEJBQThCLENBQUM7O0FBdUJqRSxNQUFNLE9BQU8saUJBQWlCOzsrR0FBakIsaUJBQWlCO2dIQUFqQixpQkFBaUIsaUJBbkIxQixvQkFBb0I7UUFDcEIsMEJBQTBCO1FBQzF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bmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBBdG9Mb2FkaW5nRGlyZWN0aXZlIH0gZnJvbSAnLi9kaXJlY3RpdmUvYXRvLWxvYWRpbmcuZGlyZWN0aXZlJztcbmltcG9ydCB7IEF0b0Fzc2V0UGFyYW1zVmlld0NvbXBvbmVudCB9IGZyb20gJy4vY29tcG9uZW50cy9hc3NldC1wYXJhbXMtdmlldy9hc3NldC1wYXJhbXMtdmlldy5jb21wb25lbnQnO1xuaW1wb3J0IHsgQXRvTmdWYXJEaXJlY3RpdmUgfSBmcm9tICcuL2RpcmVjdGl2ZS9uZy12YXIuZGlyZWN0aXZlJztcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbXG4gICAgQXRvV2F0ZXJMaWJDb21wb25lbnQsXG4gICAgQXRvRmxvd0RpYWdyYW1MaWJDb21wb25lbnQsXG4gICAgQXNzZXRGbG93Q29tcG9uZW50LFxuICAgIEF0b0xvYWRpbmdEaXJlY3RpdmUsXG4gICAgQXRvQXNzZXRQYXJhbXNWaWV3Q29tcG9uZW50LFxuICAgIEF0b05nVmFyRGlyZWN0aXZlLFxuICBdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICBdLFxuICBleHBvcnRzOiBbXG4gICAgQXRvV2F0ZXJMaWJDb21wb25lbnQsXG4gICAgQXRvRmxvd0RpYWdyYW1MaWJDb21wb25lbnQsXG4gICAgQXNzZXRGbG93Q29tcG9uZW50LFxuICAgIEF0b0xvYWRpbmdEaXJlY3RpdmUsXG4gICAgQXRvQXNzZXRQYXJhbXNWaWV3Q29tcG9uZW50LFxuICAgIEF0b05nVmFyRGlyZWN0aXZlLFxuICBdXG59KVxuZXhwb3J0IGNsYXNzIEF0b1dhdGVyTGliTW9kdWxlIHsgfVxuIl19
@@ -1,14 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class AtoWaterLibService {
4
- constructor() { }
5
- }
6
- AtoWaterLibService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
7
- AtoWaterLibService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibService, providedIn: 'root' });
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibService, decorators: [{
9
- type: Injectable,
10
- args: [{
11
- providedIn: 'root'
12
- }]
13
- }], ctorParameters: function () { return []; } });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXRvLXdhdGVyLWxpYi5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2F0by13YXRlci1saWIuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQUFDOztBQUszQyxNQUFNLE9BQU8sa0JBQWtCO0lBRTdCLGdCQUFnQixDQUFDOztnSEFGTixrQkFBa0I7b0hBQWxCLGtCQUFrQixjQUZqQixNQUFNOzRGQUVQLGtCQUFrQjtrQkFIOUIsVUFBVTttQkFBQztvQkFDVixVQUFVLEVBQUUsTUFBTTtpQkFDbkIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJbmplY3RhYmxlIH0gZnJvbSAnQGFuZ3VsYXIvY29yZSc7XG5cbkBJbmplY3RhYmxlKHtcbiAgcHJvdmlkZWRJbjogJ3Jvb3QnXG59KVxuZXhwb3J0IGNsYXNzIEF0b1dhdGVyTGliU2VydmljZSB7XG5cbiAgY29uc3RydWN0b3IoKSB7IH1cbn1cbiJdfQ==
@@ -1,121 +0,0 @@
1
- import { Component, EventEmitter, HostListener, Input, Output, ViewChild, } from '@angular/core';
2
- import * as go from 'gojs';
3
- import _ from 'lodash';
4
- import { AtoGoJSBase64 } from '../../constants/base64.const';
5
- import { ATO_COMPONENTS_GROUP_DATA } from '../../constants/components-group-const';
6
- import { AtoGojsEditorModel } from '../../models/gojs-editor.model';
7
- import { AtoAssetParamsViewComponent } from '../asset-params-view/asset-params-view.component';
8
- import { AtoFlowDiagramLibComponent } from '../flow-diagram-lib/flow-diagram-lib.component';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "@angular/common";
11
- import * as i2 from "../flow-diagram-lib/flow-diagram-lib.component";
12
- import * as i3 from "../../directive/ato-loading.directive";
13
- import * as i4 from "../asset-params-view/asset-params-view.component";
14
- export class AssetFlowComponent {
15
- constructor() {
16
- this.onClickParamOfTableEvent = new EventEmitter();
17
- this.isUseBase64 = false;
18
- this.$ = go.GraphObject.make;
19
- this.options = {
20
- layout: this.$(go.LayeredDigraphLayout, {
21
- // direction: 0,
22
- }),
23
- // isReadOnly: true,
24
- };
25
- this.flowData = {};
26
- this.isResponsiveView = false;
27
- }
28
- onResize(event) {
29
- // Now only Support Cooling Tower Responsive
30
- if (this.timeoutResizeWindow) {
31
- clearTimeout(this.timeoutResizeWindow);
32
- }
33
- this.timeoutResizeWindow = setTimeout(() => {
34
- this.checkResponsiveView();
35
- this.updateLocationReponsive();
36
- }, 1000);
37
- }
38
- checkResponsiveView() {
39
- if (this?.systemType ===
40
- AtoGojsEditorModel.ENUM_TYPES.COOLING_TOWER) {
41
- this.isResponsiveView = window.innerWidth < 1024;
42
- }
43
- else {
44
- this.isResponsiveView = false;
45
- }
46
- }
47
- updateLocationReponsive() {
48
- if (!this.flowData?.nodeDataArray) {
49
- this.flowData = this.getDefaultFlowData();
50
- }
51
- _.forEach(_.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType + (this.isResponsiveView ? '_RESPONSIVE' : '')]?.nodeDataArray, (node) => {
52
- const itemFind = this.flowData?.nodeDataArray?.find((x) => node?.key === x?.key);
53
- if (itemFind) {
54
- itemFind.visible = node?.visible === false ? false : true;
55
- itemFind.loc = node?.loc;
56
- itemFind.margin = node?.margin;
57
- itemFind.padding = node?.padding;
58
- }
59
- });
60
- this.setFlowData(_.cloneDeep(this.flowData));
61
- }
62
- ngOnInit() {
63
- this.checkResponsiveView();
64
- this.updateLocationReponsive();
65
- }
66
- onClickParamOfTable($event) {
67
- this.onClickParamOfTableEvent.emit($event);
68
- }
69
- getDefaultFlowData() {
70
- const flowData = {
71
- ..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType],
72
- linkFromPortIdProperty: 'fromPort',
73
- linkToPortIdProperty: 'toPort',
74
- };
75
- if (this.isUseBase64) {
76
- const itemImageTemp = flowData?.nodeDataArray?.find((x) => x?.type === 'Image Template');
77
- if (itemImageTemp) {
78
- itemImageTemp.source = AtoGoJSBase64[this.systemType];
79
- }
80
- }
81
- return flowData;
82
- }
83
- setFlowData(data) {
84
- this.flowData = { ...data };
85
- this.dataTableAssetParams = _.forEach(this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE), x => {
86
- if (!data?.isRefresh) {
87
- x.isCollapsed = this.assetParamsViewTemp?.data?.find(y => y?.key === x?.key)?.isCollapsed;
88
- }
89
- });
90
- }
91
- }
92
- AssetFlowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
93
- AssetFlowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AssetFlowComponent, selector: "ato-asset-flow", inputs: { selectedComponent: "selectedComponent", systemType: "systemType", isUseBase64: "isUseBase64", flowData: "flowData", isResponsiveView: "isResponsiveView", getFlowDataCallBack: "getFlowDataCallBack" }, outputs: { onClickParamOfTableEvent: "onClickParamOfTableEvent" }, host: { listeners: { "window:resize": "onResize($event)" } }, viewQueries: [{ propertyName: "gjFlowDiagramTemp", first: true, predicate: AtoFlowDiagramLibComponent, descendants: true }, { propertyName: "assetParamsViewTemp", first: true, predicate: AtoAssetParamsViewComponent, descendants: true }], ngImport: i0, template: "<div class=\"h-100 d-flex flex-column flex-gap-3 flex-grow-1 overflow-auto px-3 pb-3\">\n <div class=\"h-100 d-flex flex-column\" atoLoading [appLoading]=\"flowData === null\">\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n [class]=\"!!isResponsiveView ? 'diagram-responsive-view' : 'flex-grow-1'\"\n ></ato-flow-diagram-lib>\n <div class=\"mt-2\" *ngIf=\"isResponsiveView\">\n <ato-asset-params-view\n #assetParamsViewTemp\n [data]=\"dataTableAssetParams\"\n [isEditView]=\"true\"\n (clickParamTableRow)=\"onClickParamOfTable($event)\"\n ></ato-asset-params-view>\n </div>\n </div>\n</div>\n\n", styles: [".diagram-responsive-view{height:30vh;min-height:30vh}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: ["data", "isLoading"] }, { kind: "directive", type: i3.AtoLoadingDirective, selector: "[atoLoading]", inputs: ["appLoading"] }, { kind: "component", type: i4.AtoAssetParamsViewComponent, selector: "ato-asset-params-view", inputs: ["isEditView", "data"], outputs: ["clickParamTableRow"] }] });
94
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AssetFlowComponent, decorators: [{
95
- type: Component,
96
- args: [{ selector: 'ato-asset-flow', template: "<div class=\"h-100 d-flex flex-column flex-gap-3 flex-grow-1 overflow-auto px-3 pb-3\">\n <div class=\"h-100 d-flex flex-column\" atoLoading [appLoading]=\"flowData === null\">\n <ato-flow-diagram-lib\n *ngIf=\"flowData !== null\"\n #gjFlowDiagramTemp\n [data]=\"flowData\"\n [initialOptions]=\"options\"\n (onClikParamOfTable)=\"onClickParamOfTable($event)\"\n [class]=\"!!isResponsiveView ? 'diagram-responsive-view' : 'flex-grow-1'\"\n ></ato-flow-diagram-lib>\n <div class=\"mt-2\" *ngIf=\"isResponsiveView\">\n <ato-asset-params-view\n #assetParamsViewTemp\n [data]=\"dataTableAssetParams\"\n [isEditView]=\"true\"\n (clickParamTableRow)=\"onClickParamOfTable($event)\"\n ></ato-asset-params-view>\n </div>\n </div>\n</div>\n\n", styles: [".diagram-responsive-view{height:30vh;min-height:30vh}\n"] }]
97
- }], propDecorators: { gjFlowDiagramTemp: [{
98
- type: ViewChild,
99
- args: [AtoFlowDiagramLibComponent]
100
- }], assetParamsViewTemp: [{
101
- type: ViewChild,
102
- args: [AtoAssetParamsViewComponent]
103
- }], selectedComponent: [{
104
- type: Input
105
- }], systemType: [{
106
- type: Input
107
- }], onClickParamOfTableEvent: [{
108
- type: Output
109
- }], isUseBase64: [{
110
- type: Input
111
- }], flowData: [{
112
- type: Input
113
- }], isResponsiveView: [{
114
- type: Input
115
- }], getFlowDataCallBack: [{
116
- type: Input
117
- }], onResize: [{
118
- type: HostListener,
119
- args: ['window:resize', ['$event']]
120
- }] } });
121
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQtZmxvdy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hdG8td2F0ZXItbGliL3NyYy9saWIvY29tcG9uZW50cy9hc3NldC1mbG93L2Fzc2V0LWZsb3cuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2NvbXBvb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GlhbE9wdGlvbnNdPVwib3B0aW9uc1wiXG4gICAgICAob25DbGlrUGFyYW1PZlRhYmxlKT1cIm9uQ2xpY2tQYXJhbU9mVGFibGUoJGV2ZW50KVwiXG4gICAgICBbY2xhc3NdPVwiISFpc1Jlc3BvbnNpdmVWaWV3ID8gJ2RpYWdyYW0tcmVzcG9uc2l2ZS12aWV3JyA6ICdmbGV4LWdyb3ctMSdcIlxuICAgID48L2F0by1mbG93LWRpYWdyYW0tbGliPlxuICAgIDxkaXYgY2xhc3M9XCJtdC0yXCIgKm5nSWY9XCJpc1Jlc3BvbnNpdmVWaWV3XCI+XG4gICAgICA8YXRvLWFzc2V0LXBhcmFtcy12aWV3XG4gICAgICAgICNhc3NldFBhcmFtc1ZpZXdUZW1wXG4gICAgICAgIFtkYXRhXT1cImRhdGFUYWJsZUFzc2V0UGFyYW1zXCJcbiAgICAgICAgW2lzRWRpdFZpZXddPVwidHJ1ZVwiXG4gICAgICAgIChjbGlja1BhcmFtVGFibGVSb3cpPVwib25DbGlja1BhcmFtT2ZUYWJsZSgkZXZlbnQpXCJcbiAgICAgID48L2F0by1hc3NldC1wYXJhbXMtdmlldz5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L2Rpdj5cblxuIl19
@@ -1,26 +0,0 @@
1
- import { Component, EventEmitter, Input, Output } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "@angular/common";
4
- export class AtoAssetParamsViewComponent {
5
- constructor() {
6
- this.isEditView = false;
7
- this.data = [];
8
- this.clickParamTableRow = new EventEmitter();
9
- }
10
- onClickRowParam(itemTable) {
11
- this.clickParamTableRow.emit(itemTable);
12
- }
13
- }
14
- AtoAssetParamsViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoAssetParamsViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
- AtoAssetParamsViewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoAssetParamsViewComponent, selector: "ato-asset-params-view", inputs: { isEditView: "isEditView", data: "data" }, outputs: { clickParamTableRow: "clickParamTableRow" }, ngImport: i0, template: "<div class=\"d-flex flex-column flex-gap-2\">\n <div class=\"\" *ngFor=\"let tableParam of data\">\n <ng-template\n [ngTemplateOutlet]=\"tableParamTemplate\"\n [ngTemplateOutletContext]=\"{\n data: tableParam\n }\"\n ></ng-template>\n </div>\n</div>\n\n<ng-template #tableParamTemplate let-data=\"data\">\n <div\n class=\"d-flex flex-column asset-param-item w-100\"\n [style.backgroundColor]=\"data?.color\"\n >\n <div\n class=\"d-flex align-items-center justify-content-between py-1 pl-1 pr-2 cursor-pointer\"\n (click)=\"data.isCollapsed = !data.isCollapsed\"\n >\n <div class=\"font-size-14px flex-grow-1 text-truncate color-white\">\n {{ data?.title }}\n </div>\n <svg\n *ngIf=\"data.isCollapsed\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 320 512\"\n fill=\"#FFFF\"\n class=\"fa-solid font-size-14px color-white svg-15px\"\n >\n <path\n d=\"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z\"\n />\n </svg>\n <svg\n *ngIf=\"!data.isCollapsed\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 448 512\"\n fill=\"#FFFF\"\n class=\"fa-solid font-size-14px color-white svg-15px\"\n >\n <path\n d=\"M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z\"\n />\n </svg>\n </div>\n <div class=\"px-1 pb-1\" *ngIf=\"!data.isCollapsed\">\n <div\n class=\"table-asset-param-wrapper\"\n [style.backgroundColor]=\"data?.bgColor\"\n >\n <table>\n <tbody>\n <tr\n *ngFor=\"let itemTable of data?.dataTable\"\n (click)=\"onClickRowParam(itemTable)\"\n class=\"cursor-pointer\"\n >\n <td\n class=\"font-size-13px\"\n [style.borderColor]=\"data?.borderTable\"\n >\n {{ itemTable?.name }}\n </td>\n <td\n class=\"font-size-13px\"\n [style.borderColor]=\"data?.borderTable\"\n >\n <div class=\"d-flex align-items-center\">\n <div\n class=\"mr-auto font-size-13px text-truncate flex-grow-1\"\n [style.color]=\"itemTable?.color\"\n >\n {{ itemTable?.value }}\n </div>\n <svg *ngIf=\"isEditView\" class=\"svg-15px\" fill=\"#333333\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M441 58.9L453.1 71c9.4 9.4 9.4 24.6 0 33.9L424 134.1 377.9 88 407 58.9c9.4-9.4 24.6-9.4 33.9 0zM209.8 256.2L344 121.9 390.1 168 255.8 302.2c-2.9 2.9-6.5 5-10.4 6.1l-58.5 16.7 16.7-58.5c1.1-3.9 3.2-7.5 6.1-10.4zM373.1 25L175.8 222.2c-8.7 8.7-15 19.4-18.3 31.1l-28.6 100c-2.4 8.4-.1 17.4 6.1 23.6s15.2 8.5 23.6 6.1l100-28.6c11.8-3.4 22.5-9.7 31.1-18.3L487 138.9c28.1-28.1 28.1-73.7 0-101.8L474.9 25C446.8-3.1 401.2-3.1 373.1 25zM88 64C39.4 64 0 103.4 0 152V424c0 48.6 39.4 88 88 88H360c48.6 0 88-39.4 88-88V312c0-13.3-10.7-24-24-24s-24 10.7-24 24V424c0 22.1-17.9 40-40 40H88c-22.1 0-40-17.9-40-40V152c0-22.1 17.9-40 40-40H200c13.3 0 24-10.7 24-24s-10.7-24-24-24H88z\"/></svg>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: [".asset-param-item{border-radius:5px}.asset-param-item .table-asset-param-wrapper{border-radius:5px;background-color:#f0f8ff}.asset-param-item .table-asset-param-wrapper table{border-collapse:collapse;width:100%}.asset-param-item .table-asset-param-wrapper table tbody tr td{border:1px solid red;height:30px;padding:4px}.color-white{color:#fff}.flex-gap-2{gap:.5rem}.svg-15px{width:15px;height:15px;flex:0 0 15px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoAssetParamsViewComponent, decorators: [{
17
- type: Component,
18
- args: [{ selector: 'ato-asset-params-view', template: "<div class=\"d-flex flex-column flex-gap-2\">\n <div class=\"\" *ngFor=\"let tableParam of data\">\n <ng-template\n [ngTemplateOutlet]=\"tableParamTemplate\"\n [ngTemplateOutletContext]=\"{\n data: tableParam\n }\"\n ></ng-template>\n </div>\n</div>\n\n<ng-template #tableParamTemplate let-data=\"data\">\n <div\n class=\"d-flex flex-column asset-param-item w-100\"\n [style.backgroundColor]=\"data?.color\"\n >\n <div\n class=\"d-flex align-items-center justify-content-between py-1 pl-1 pr-2 cursor-pointer\"\n (click)=\"data.isCollapsed = !data.isCollapsed\"\n >\n <div class=\"font-size-14px flex-grow-1 text-truncate color-white\">\n {{ data?.title }}\n </div>\n <svg\n *ngIf=\"data.isCollapsed\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 320 512\"\n fill=\"#FFFF\"\n class=\"fa-solid font-size-14px color-white svg-15px\"\n >\n <path\n d=\"M278.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-160 160c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L210.7 256 73.4 118.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l160 160z\"\n />\n </svg>\n <svg\n *ngIf=\"!data.isCollapsed\"\n xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 448 512\"\n fill=\"#FFFF\"\n class=\"fa-solid font-size-14px color-white svg-15px\"\n >\n <path\n d=\"M201.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 306.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z\"\n />\n </svg>\n </div>\n <div class=\"px-1 pb-1\" *ngIf=\"!data.isCollapsed\">\n <div\n class=\"table-asset-param-wrapper\"\n [style.backgroundColor]=\"data?.bgColor\"\n >\n <table>\n <tbody>\n <tr\n *ngFor=\"let itemTable of data?.dataTable\"\n (click)=\"onClickRowParam(itemTable)\"\n class=\"cursor-pointer\"\n >\n <td\n class=\"font-size-13px\"\n [style.borderColor]=\"data?.borderTable\"\n >\n {{ itemTable?.name }}\n </td>\n <td\n class=\"font-size-13px\"\n [style.borderColor]=\"data?.borderTable\"\n >\n <div class=\"d-flex align-items-center\">\n <div\n class=\"mr-auto font-size-13px text-truncate flex-grow-1\"\n [style.color]=\"itemTable?.color\"\n >\n {{ itemTable?.value }}\n </div>\n <svg *ngIf=\"isEditView\" class=\"svg-15px\" fill=\"#333333\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M441 58.9L453.1 71c9.4 9.4 9.4 24.6 0 33.9L424 134.1 377.9 88 407 58.9c9.4-9.4 24.6-9.4 33.9 0zM209.8 256.2L344 121.9 390.1 168 255.8 302.2c-2.9 2.9-6.5 5-10.4 6.1l-58.5 16.7 16.7-58.5c1.1-3.9 3.2-7.5 6.1-10.4zM373.1 25L175.8 222.2c-8.7 8.7-15 19.4-18.3 31.1l-28.6 100c-2.4 8.4-.1 17.4 6.1 23.6s15.2 8.5 23.6 6.1l100-28.6c11.8-3.4 22.5-9.7 31.1-18.3L487 138.9c28.1-28.1 28.1-73.7 0-101.8L474.9 25C446.8-3.1 401.2-3.1 373.1 25zM88 64C39.4 64 0 103.4 0 152V424c0 48.6 39.4 88 88 88H360c48.6 0 88-39.4 88-88V312c0-13.3-10.7-24-24-24s-24 10.7-24 24V424c0 22.1-17.9 40-40 40H88c-22.1 0-40-17.9-40-40V152c0-22.1 17.9-40 40-40H200c13.3 0 24-10.7 24-24s-10.7-24-24-24H88z\"/></svg>\n </div>\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n </div>\n </div>\n</ng-template>\n", styles: [".asset-param-item{border-radius:5px}.asset-param-item .table-asset-param-wrapper{border-radius:5px;background-color:#f0f8ff}.asset-param-item .table-asset-param-wrapper table{border-collapse:collapse;width:100%}.asset-param-item .table-asset-param-wrapper table tbody tr td{border:1px solid red;height:30px;padding:4px}.color-white{color:#fff}.flex-gap-2{gap:.5rem}.svg-15px{width:15px;height:15px;flex:0 0 15px}\n"] }]
19
- }], propDecorators: { isEditView: [{
20
- type: Input
21
- }], data: [{
22
- type: Input
23
- }], clickParamTableRow: [{
24
- type: Output
25
- }] } });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNzZXQtcGFyYW1zLXZpZXcuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvYXNzZXQtcGFyYW1zLXZpZXcvYXNzZXQtcGFyYW1zLXZpZXcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYXRvLXdhdGVyLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvYXNzZXQtcGFyYW1zLXZpZXcvYXNzZXQtcGFyYW1zLXZpZXcuY29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IDE3LjQgNi4xIDIzLjZzMTUuMiA4LjUgMjMuNiA2LjFsMTAwLTI4LjZjMTEuOC0zLjQgMjIuNS05LjcgMzEuMS0xOC4zTDQ4NyAxMzguOWMyOC4xLTI4LjEgMjguMS03My43IDAtMTAxLjhMNDc0LjkgMjVDNDQ2LjgtMy4xIDQwMS4yLTMuMSAzNzMuMSAyNXpNODggNjRDMzkuNCA2NCAwIDEwMy40IDAgMTUyVjQyNGMwIDQ4LjYgMzkuNCA4OCA4OCA4OEgzNjBjNDguNiAwIDg4LTM5LjQgODgtODhWMzEyYzAtMTMuMy0xMC43LTI0LTI0LTI0cy0yNCAxMC43LTI0IDI0VjQyNGMwIDIyLjEtMTcuOSA0MC00MCA0MEg4OGMtMjIuMSAwLTQwLTE3LjktNDAtNDBWMTUyYzAtMjIuMSAxNy45LTQwIDQwLTQwSDIwMGMxMy4zIDAgMjQtMTAuNyAyNC0yNHMtMTAuNy0yNC0yNC0yNEg4OHpcIi8+PC9zdmc+XG4gICAgICAgICAgICAgICAgPC9kaXY+XG4gICAgICAgICAgICAgIDwvdGQ+XG4gICAgICAgICAgICA8L3RyPlxuICAgICAgICAgIDwvdGJvZHk+XG4gICAgICAgIDwvdGFibGU+XG4gICAgICA8L2Rpdj5cbiAgICA8L2Rpdj5cbiAgPC9kaXY+XG48L25nLXRlbXBsYXRlPlxuIl19
@@ -1,54 +0,0 @@
1
- import { Component, Input, ViewChild } from '@angular/core';
2
- import { AtoDefaultGojsEditor } from '../../models/default-gojs-editor.model';
3
- import { AtoGojsEditorModel } from '../../models/gojs-editor.model';
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "@angular/common";
6
- import * as i2 from "../../directive/ato-loading.directive";
7
- export class AtoFlowDiagramLibComponent extends AtoDefaultGojsEditor {
8
- set data(v) {
9
- this._data = v;
10
- this.loadDiagram();
11
- }
12
- get data() {
13
- return this._data;
14
- }
15
- constructor(_elRef) {
16
- super(_elRef);
17
- this._data = null;
18
- this.isLoading = false;
19
- this.actions = [
20
- AtoDefaultGojsEditor.ACTIONS[AtoDefaultGojsEditor.ENUM_ACTIONS.DETAILS],
21
- AtoDefaultGojsEditor.ACTIONS[AtoDefaultGojsEditor.ENUM_ACTIONS.DELETE],
22
- ];
23
- this.unsubscribeAll();
24
- }
25
- ngOnInit() {
26
- this.addSubscribes(this.committedTransactionSubject?.subscribe((e) => {
27
- this.onModelChangeListenerEvent.emit(e);
28
- }));
29
- }
30
- loadDiagram() {
31
- this.editor = new AtoGojsEditorModel({
32
- class: 'go.GraphLinksModel',
33
- nodeCategoryProperty: 'type',
34
- ...this.data,
35
- });
36
- }
37
- findNodeForKey(key) {
38
- this.myDiagram.select(this.myDiagram.findNodeForKey(key));
39
- }
40
- }
41
- AtoFlowDiagramLibComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
42
- AtoFlowDiagramLibComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: AtoFlowDiagramLibComponent, selector: "ato-flow-diagram-lib", inputs: { data: "data", isLoading: "isLoading" }, viewQueries: [{ propertyName: "myDiagramDivTemp", first: true, predicate: ["myDiagramDivTemp"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" atoLoading [appLoading]=\"data === null || !!isLoading\">\n <div class=\"w-100 h-100 d-flex\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp [id]=\"myDiagramDiv\" class=\"flex-grow-1\"></div>\n <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <!-- <nz-empty nzNotFoundImage=\"simple\"></nz-empty> -->\n No Data\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.AtoLoadingDirective, selector: "[atoLoading]", inputs: ["appLoading"] }] });
43
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoFlowDiagramLibComponent, decorators: [{
44
- type: Component,
45
- args: [{ selector: 'ato-flow-diagram-lib', template: "<div class=\"w-100 h-100 gj-flow-diagram-wrapper\" atoLoading [appLoading]=\"data === null || !!isLoading\">\n <div class=\"w-100 h-100 d-flex\">\n <!-- <button\n id=\"actionMenuId\"\n class=\"invisible-btn\"\n mat-button\n [matMenuTriggerFor]=\"menu\"\n #menuTrigger=\"matMenuTrigger\"\n ></button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let item of actions\" (click)=\"item?.onClick($event)\">\n <div class=\"d-flex flex-gap-2\">\n <div><i class=\"{{ item?.iconClassName }}\"></i></div>\n <div>{{ item?.name }}</div>\n </div>\n </button>\n </mat-menu> -->\n\n <div #myDiagramDivTemp [id]=\"myDiagramDiv\" class=\"flex-grow-1\"></div>\n <div *ngIf=\"initialOptions?.isReadOnly && !data?.nodeDataArray?.length\" class=\"empty-data\">\n <!-- <nz-empty nzNotFoundImage=\"simple\"></nz-empty> -->\n No Data\n </div>\n </div>\n</div>\n" }]
46
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { myDiagramDivTemp: [{
47
- type: ViewChild,
48
- args: ['myDiagramDivTemp']
49
- }], data: [{
50
- type: Input
51
- }], isLoading: [{
52
- type: Input
53
- }] } });
54
- //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bmV3IEF0b0dvanNFZGl0b3JNb2RlbCh7XG4gICAgICAgICAgY2xhc3M6ICdnby5HcmFwaExpbmtzTW9kZWwnLFxuICAgICAgICAgIG5vZGVDYXRlZ29yeVByb3BlcnR5OiAndHlwZScsXG4gICAgICAgICAgLi4udGhpcy5kYXRhLFxuICAgICAgfSk7XG4gIH1cblxuICBmaW5kTm9kZUZvcktleShrZXk6IG51bWJlciB8IHN0cmluZykge1xuICAgICAgdGhpcy5teURpYWdyYW0uc2VsZWN0KHRoaXMubXlEaWFncmFtLmZpbmROb2RlRm9yS2V5KGtleSkpO1xuICB9XG59XG5cblxuXG5cblxuIiwiPGRpdiBjbGFzcz1cInctMTAwIGgtMTAwIGdqLWZsb3ctZGlhZ3JhbS13cmFwcGVyXCIgYXRvTG9hZGluZyBbYXBwTG9hZGluZ109XCJkYXRhID09PSBudWxsIHx8ICEhaXNMb2FkaW5nXCI+XG4gICAgPGRpdiBjbGFzcz1cInctMTAwIGgtMTAwIGQtZmxleFwiPlxuICAgICAgICA8IS0tIDxidXR0b25cbiAgICAgICAgICAgIGlkPVwiYWN0aW9uTWVudUlkXCJcbiAgICAgICAgICAgIGNsYXNzPVwiaW52aXNpYmxlLWJ0blwiXG4gICAgICAgICAgICBtYXQtYnV0dG9uXG4gICAgICAgICAgICBbbWF0TWVudVRyaWdnZXJGb3JdPVwibWVudVwiXG4gICAgICAgICAgICAjbWVudVRyaWdnZXI9XCJtYXRNZW51VHJpZ2dlclwiXG4gICAgICAgID48L2J1dHRvbj5cbiAgICAgICAgPG1hdC1tZW51ICNtZW51PVwibWF0TWVudVwiPlxuICAgICAgICAgICAgPGJ1dHRvbiBtYXQtbWVudS1pdGVtICpuZ0Zvcj1cImxldCBpdGVtIG9mIGFjdGlvbnNcIiAoY2xpY2spPVwiaXRlbT8ub25DbGljaygkZXZlbnQpXCI+XG4gICAgICAgICAgICAgICAgPGRpdiBjbGFzcz1cImQtZmxleCBmbGV4LWdhcC0yXCI+XG4gICAgICAgICA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