ato-water-lib 0.0.19 → 0.0.21
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 +9 -4
- package/esm2020/lib/components/asset-flow/asset-flow.component.mjs +3 -3
- package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +3 -3
- package/esm2020/lib/components/svg/svg.component.mjs +23 -0
- package/esm2020/lib/constants/components-group-const.mjs +2 -2
- package/esm2020/lib/constants/icon-svg.const.mjs +10 -0
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/ato-water-lib.mjs +62 -29
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +75 -42
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/ato-water-lib.module.d.ts +5 -4
- package/lib/components/asset-flow/asset-flow.component.d.ts +0 -891
- package/lib/components/svg/svg.component.d.ts +9 -0
- package/lib/constants/components-group-const.d.ts +1 -1
- package/lib/constants/icon-svg.const.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
@@ -1,7 +1,6 @@
|
|
1
1
|
import * as i0 from '@angular/core';
|
2
2
|
import { Injectable, Component, EventEmitter, Directive, ViewChild, Input, Output, HostListener, NgModule } from '@angular/core';
|
3
3
|
import * as go from 'gojs';
|
4
|
-
import go__default from 'gojs';
|
5
4
|
import _ from 'lodash';
|
6
5
|
import moment from 'moment';
|
7
6
|
import { Subject, Subscription } from 'rxjs';
|
@@ -6971,9 +6970,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
6971
6970
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
6972
6971
|
group: 100,
|
6973
6972
|
loc: '20 10',
|
6974
|
-
padding: new
|
6973
|
+
padding: new go.Margin(0, 0, 0, 20),
|
6975
6974
|
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.CERULEAN],
|
6976
|
-
minSizeValue: new
|
6975
|
+
minSizeValue: new go.Size(100, NaN),
|
6977
6976
|
selectable: false,
|
6978
6977
|
dataTable: [
|
6979
6978
|
{
|
@@ -7008,7 +7007,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7008
7007
|
group: 100,
|
7009
7008
|
loc: '420 40',
|
7010
7009
|
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.DANUBE],
|
7011
|
-
minSizeValue: new
|
7010
|
+
minSizeValue: new go.Size(100, NaN),
|
7012
7011
|
selectable: false,
|
7013
7012
|
dataTable: [
|
7014
7013
|
{
|
@@ -7037,7 +7036,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7037
7036
|
group: 100,
|
7038
7037
|
loc: '590 150',
|
7039
7038
|
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.FOUNTAIN_BLUE],
|
7040
|
-
minSizeValue: new
|
7039
|
+
minSizeValue: new go.Size(100, NaN),
|
7041
7040
|
selectable: false,
|
7042
7041
|
dataTable: [
|
7043
7042
|
{
|
@@ -7066,7 +7065,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7066
7065
|
group: 100,
|
7067
7066
|
loc: '30 370',
|
7068
7067
|
...AtoGojsEditorModel.PARAM_TABLE_STYLE[AtoGojsEditorModel.ENUM_COLORS.GALLIANO],
|
7069
|
-
minSizeValue: new
|
7068
|
+
minSizeValue: new go.Size(100, NaN),
|
7070
7069
|
selectable: false,
|
7071
7070
|
dataTable: [
|
7072
7071
|
{
|
@@ -7095,7 +7094,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7095
7094
|
source: AtoGojsEditorModel.IMAGE_RO_WATER_TREATMENT_PATH,
|
7096
7095
|
group: 100,
|
7097
7096
|
loc: '0 0',
|
7098
|
-
margin: new
|
7097
|
+
margin: new go.Margin(130, 0, 0, 0),
|
7099
7098
|
selectable: false,
|
7100
7099
|
},
|
7101
7100
|
{
|
@@ -7532,9 +7531,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7532
7531
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7533
7532
|
group: 100,
|
7534
7533
|
loc: '30 160',
|
7535
|
-
padding: new
|
7534
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7536
7535
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS],
|
7537
|
-
minSizeValue: new
|
7536
|
+
minSizeValue: new go.Size(100, NaN),
|
7538
7537
|
selectable: false,
|
7539
7538
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS].map((e) => ({
|
7540
7539
|
...e,
|
@@ -7548,10 +7547,10 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7548
7547
|
key: 91,
|
7549
7548
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7550
7549
|
group: 100,
|
7551
|
-
padding: new
|
7550
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7552
7551
|
loc: '30 270',
|
7553
7552
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER],
|
7554
|
-
minSizeValue: new
|
7553
|
+
minSizeValue: new go.Size(100, NaN),
|
7555
7554
|
selectable: false,
|
7556
7555
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER].map((e) => ({
|
7557
7556
|
...e,
|
@@ -7564,10 +7563,10 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7564
7563
|
key: 92,
|
7565
7564
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7566
7565
|
group: 100,
|
7567
|
-
padding: new
|
7566
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7568
7567
|
loc: '580 250',
|
7569
7568
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.WARMER_WATER],
|
7570
|
-
minSizeValue: new
|
7569
|
+
minSizeValue: new go.Size(100, NaN),
|
7571
7570
|
selectable: false,
|
7572
7571
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.WARMER_WATER].map((e) => ({
|
7573
7572
|
...e,
|
@@ -7580,10 +7579,10 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7580
7579
|
key: 93,
|
7581
7580
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7582
7581
|
group: 100,
|
7583
|
-
padding: new
|
7582
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7584
7583
|
loc: '580 560',
|
7585
7584
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER],
|
7586
|
-
minSizeValue: new
|
7585
|
+
minSizeValue: new go.Size(100, NaN),
|
7587
7586
|
selectable: false,
|
7588
7587
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER].map((e) => ({
|
7589
7588
|
...e,
|
@@ -7596,10 +7595,10 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7596
7595
|
key: 94,
|
7597
7596
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7598
7597
|
group: 100,
|
7599
|
-
padding: new
|
7598
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7600
7599
|
loc: '450 20',
|
7601
7600
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS],
|
7602
|
-
minSizeValue: new
|
7601
|
+
minSizeValue: new go.Size(100, NaN),
|
7603
7602
|
selectable: false,
|
7604
7603
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS].map((e) => ({
|
7605
7604
|
...e,
|
@@ -7612,10 +7611,10 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7612
7611
|
key: 95,
|
7613
7612
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7614
7613
|
group: 100,
|
7615
|
-
padding: new
|
7614
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7616
7615
|
loc: '730 20',
|
7617
7616
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY],
|
7618
|
-
minSizeValue: new
|
7617
|
+
minSizeValue: new go.Size(100, NaN),
|
7619
7618
|
selectable: false,
|
7620
7619
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => ({
|
7621
7620
|
...e,
|
@@ -7630,7 +7629,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7630
7629
|
source: AtoGojsEditorModel.IMAGE_COOLING_TOWER_PATH,
|
7631
7630
|
group: 100,
|
7632
7631
|
loc: '0 0',
|
7633
|
-
margin: new
|
7632
|
+
margin: new go.Margin(195, 20, 0, 0),
|
7634
7633
|
selectable: false,
|
7635
7634
|
},
|
7636
7635
|
// {
|
@@ -7694,9 +7693,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7694
7693
|
key: 90,
|
7695
7694
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7696
7695
|
group: 100,
|
7697
|
-
padding: new
|
7696
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7698
7697
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS],
|
7699
|
-
minSizeValue: new
|
7698
|
+
minSizeValue: new go.Size(100, NaN),
|
7700
7699
|
selectable: false,
|
7701
7700
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_TOWER_ANALYSIS].map((e) => ({
|
7702
7701
|
...e,
|
@@ -7710,9 +7709,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7710
7709
|
key: 91,
|
7711
7710
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7712
7711
|
group: 100,
|
7713
|
-
padding: new
|
7712
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7714
7713
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY],
|
7715
|
-
minSizeValue: new
|
7714
|
+
minSizeValue: new go.Size(100, NaN),
|
7716
7715
|
selectable: false,
|
7717
7716
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.COOLING_WATER_CHEMISTRY].map((e) => ({
|
7718
7717
|
...e,
|
@@ -7726,9 +7725,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7726
7725
|
key: 92,
|
7727
7726
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7728
7727
|
group: 100,
|
7729
|
-
padding: new
|
7728
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7730
7729
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS],
|
7731
|
-
minSizeValue: new
|
7730
|
+
minSizeValue: new go.Size(100, NaN),
|
7732
7731
|
selectable: false,
|
7733
7732
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.EVAPORATION_LOSS].map((e) => ({
|
7734
7733
|
...e,
|
@@ -7742,9 +7741,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7742
7741
|
key: 93,
|
7743
7742
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7744
7743
|
group: 100,
|
7745
|
-
padding: new
|
7744
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7746
7745
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.MAKEUP_WATER],
|
7747
|
-
minSizeValue: new
|
7746
|
+
minSizeValue: new go.Size(100, NaN),
|
7748
7747
|
selectable: false,
|
7749
7748
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER].map((e) => ({
|
7750
7749
|
...e,
|
@@ -7758,9 +7757,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7758
7757
|
key: 94,
|
7759
7758
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7760
7759
|
group: 100,
|
7761
|
-
padding: new
|
7760
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7762
7761
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.WARMER_WATER],
|
7763
|
-
minSizeValue: new
|
7762
|
+
minSizeValue: new go.Size(100, NaN),
|
7764
7763
|
selectable: false,
|
7765
7764
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.WARMER_WATER].map((e) => ({
|
7766
7765
|
...e,
|
@@ -7774,9 +7773,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7774
7773
|
key: 95,
|
7775
7774
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
7776
7775
|
group: 100,
|
7777
|
-
padding: new
|
7776
|
+
padding: new go.Margin(0, 0, 0, 0),
|
7778
7777
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER],
|
7779
|
-
minSizeValue: new
|
7778
|
+
minSizeValue: new go.Size(100, NaN),
|
7780
7779
|
selectable: false,
|
7781
7780
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.BLOWDOWN_WATER].map((e) => ({
|
7782
7781
|
...e,
|
@@ -7792,7 +7791,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7792
7791
|
source: AtoGojsEditorModel.IMAGE_COOLING_TOWER_PATH,
|
7793
7792
|
group: 100,
|
7794
7793
|
loc: '0 0',
|
7795
|
-
margin: new
|
7794
|
+
margin: new go.Margin(20, 20, 0, 0),
|
7796
7795
|
selectable: false,
|
7797
7796
|
},
|
7798
7797
|
{
|
@@ -7831,7 +7830,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
7831
7830
|
source: AtoGojsEditorModel.IMAGE_BOILER_PATH,
|
7832
7831
|
group: 100,
|
7833
7832
|
loc: '0 0',
|
7834
|
-
margin: new
|
7833
|
+
margin: new go.Margin(0, 0, 0, 0),
|
7835
7834
|
selectable: false,
|
7836
7835
|
width: 1038,
|
7837
7836
|
height: 516,
|
@@ -8015,10 +8014,10 @@ class AtoAssetParamsViewComponent {
|
|
8015
8014
|
}
|
8016
8015
|
}
|
8017
8016
|
AtoAssetParamsViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoAssetParamsViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
8018
|
-
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
|
8017
|
+
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 *ngVar=\"{ isCollapsed: true } as vars\"\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)=\"vars.isCollapsed = !vars.isCollapsed\"\n >\n <div class=\"font-size-14px flex-grow-1 text-truncate color-white\">\n {{ data?.title }}\n </div>\n <svg\n *ngIf=\"vars.isCollapsed\"\n style=\"width: 15px; height: 15px\"\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\"\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=\"!vars.isCollapsed\"\n style=\"width: 15px; height: 15px\"\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\"\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=\"!vars.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\" width=\"15px\" height=\"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}\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"] }, { kind: "directive", type: AtoNgVarDirective, selector: "[ngVar]", inputs: ["ngVar"] }] });
|
8019
8018
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoAssetParamsViewComponent, decorators: [{
|
8020
8019
|
type: Component,
|
8021
|
-
args: [{ selector: 'ato-asset-params-view', template: "<div class=\"d-flex flex-column flex-gap-2\">\n
|
8020
|
+
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 *ngVar=\"{ isCollapsed: true } as vars\"\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)=\"vars.isCollapsed = !vars.isCollapsed\"\n >\n <div class=\"font-size-14px flex-grow-1 text-truncate color-white\">\n {{ data?.title }}\n </div>\n <svg\n *ngIf=\"vars.isCollapsed\"\n style=\"width: 15px; height: 15px\"\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\"\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=\"!vars.isCollapsed\"\n style=\"width: 15px; height: 15px\"\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\"\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=\"!vars.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\" width=\"15px\" height=\"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}\n"] }]
|
8022
8021
|
}], propDecorators: { isEditView: [{
|
8023
8022
|
type: Input
|
8024
8023
|
}], data: [{
|
@@ -8062,7 +8061,7 @@ class AssetFlowComponent {
|
|
8062
8061
|
}
|
8063
8062
|
updateLocationReponsive() {
|
8064
8063
|
if (!this.flowData?.nodeDataArray) {
|
8065
|
-
this.
|
8064
|
+
this.flowData = this.getDefaultFlowData();
|
8066
8065
|
this.dataTableAssetParams = this.flowData?.nodeDataArray?.filter((e) => e?.type === AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE);
|
8067
8066
|
return;
|
8068
8067
|
}
|
@@ -8087,7 +8086,7 @@ class AssetFlowComponent {
|
|
8087
8086
|
}
|
8088
8087
|
getDefaultFlowData() {
|
8089
8088
|
const flowData = {
|
8090
|
-
..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType],
|
8089
|
+
..._.cloneDeep(ATO_COMPONENTS_GROUP_DATA)[this.systemType + (this.isResponsiveView ? '_RESPONSIVE' : '')],
|
8091
8090
|
linkFromPortIdProperty: 'fromPort',
|
8092
8091
|
linkToPortIdProperty: 'toPort',
|
8093
8092
|
};
|
@@ -8130,6 +8129,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
8130
8129
|
args: ['window:resize', ['$event']]
|
8131
8130
|
}] } });
|
8132
8131
|
|
8132
|
+
var ATO_E_ICON_SVG;
|
8133
|
+
(function (ATO_E_ICON_SVG) {
|
8134
|
+
ATO_E_ICON_SVG["EDIT"] = "fa-edit ";
|
8135
|
+
ATO_E_ICON_SVG["ANGLE_RIGHT"] = "fa-angle-right";
|
8136
|
+
ATO_E_ICON_SVG["ANGLE_DOWN"] = "fa-angle-down";
|
8137
|
+
})(ATO_E_ICON_SVG || (ATO_E_ICON_SVG = {}));
|
8138
|
+
const ATO_ICONS_SVG = {
|
8139
|
+
[ATO_E_ICON_SVG.EDIT]: `<svg width="15px" height="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>`
|
8140
|
+
};
|
8141
|
+
|
8142
|
+
class SvgComponent {
|
8143
|
+
constructor() {
|
8144
|
+
this.width = '15px';
|
8145
|
+
this.height = '15px';
|
8146
|
+
this.htmlStr = ATO_ICONS_SVG[ATO_E_ICON_SVG.EDIT];
|
8147
|
+
}
|
8148
|
+
}
|
8149
|
+
SvgComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SvgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
8150
|
+
SvgComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: SvgComponent, selector: "ato-svg", inputs: { type: "type", width: "width", height: "height" }, ngImport: i0, template: "<!-- <svg [width]=\"width\" [height]=\"height\" 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\n<div [innerHTML]=\"htmlStr\"></div>", styles: [""] });
|
8151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: SvgComponent, decorators: [{
|
8152
|
+
type: Component,
|
8153
|
+
args: [{ selector: 'ato-svg', template: "<!-- <svg [width]=\"width\" [height]=\"height\" 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\n<div [innerHTML]=\"htmlStr\"></div>" }]
|
8154
|
+
}], propDecorators: { type: [{
|
8155
|
+
type: Input
|
8156
|
+
}], width: [{
|
8157
|
+
type: Input
|
8158
|
+
}], height: [{
|
8159
|
+
type: Input
|
8160
|
+
}] } });
|
8161
|
+
|
8133
8162
|
class AtoWaterLibModule {
|
8134
8163
|
}
|
8135
8164
|
AtoWaterLibModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -8138,7 +8167,8 @@ AtoWaterLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versi
|
|
8138
8167
|
AssetFlowComponent,
|
8139
8168
|
AtoLoadingDirective,
|
8140
8169
|
AtoAssetParamsViewComponent,
|
8141
|
-
AtoNgVarDirective
|
8170
|
+
AtoNgVarDirective,
|
8171
|
+
SvgComponent], imports: [CommonModule,
|
8142
8172
|
BrowserModule,
|
8143
8173
|
ReactiveFormsModule,
|
8144
8174
|
FormsModule], exports: [AtoWaterLibComponent,
|
@@ -8146,7 +8176,8 @@ AtoWaterLibModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", versi
|
|
8146
8176
|
AssetFlowComponent,
|
8147
8177
|
AtoLoadingDirective,
|
8148
8178
|
AtoAssetParamsViewComponent,
|
8149
|
-
AtoNgVarDirective
|
8179
|
+
AtoNgVarDirective,
|
8180
|
+
SvgComponent] });
|
8150
8181
|
AtoWaterLibModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoWaterLibModule, imports: [CommonModule,
|
8151
8182
|
BrowserModule,
|
8152
8183
|
ReactiveFormsModule,
|
@@ -8161,6 +8192,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
8161
8192
|
AtoLoadingDirective,
|
8162
8193
|
AtoAssetParamsViewComponent,
|
8163
8194
|
AtoNgVarDirective,
|
8195
|
+
SvgComponent,
|
8164
8196
|
],
|
8165
8197
|
imports: [
|
8166
8198
|
CommonModule,
|
@@ -8174,7 +8206,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
8174
8206
|
AssetFlowComponent,
|
8175
8207
|
AtoLoadingDirective,
|
8176
8208
|
AtoAssetParamsViewComponent,
|
8177
|
-
AtoNgVarDirective
|
8209
|
+
AtoNgVarDirective,
|
8210
|
+
SvgComponent
|
8178
8211
|
]
|
8179
8212
|
}]
|
8180
8213
|
}] });
|
@@ -8188,5 +8221,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImpo
|
|
8188
8221
|
* Generated bundle index. Do not edit.
|
8189
8222
|
*/
|
8190
8223
|
|
8191
|
-
export { AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService };
|
8224
|
+
export { AssetFlowComponent, AtoAssetParamsViewComponent, AtoFlowDiagramLibComponent, AtoLoadingDirective, AtoNgVarDirective, AtoWaterLibComponent, AtoWaterLibModule, AtoWaterLibService, SvgComponent };
|
8192
8225
|
//# sourceMappingURL=ato-water-lib.mjs.map
|