ato-water-lib 0.0.110 → 0.0.111
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2020/lib/components/asset-params-view/asset-params-view.component.mjs +3 -3
- package/esm2020/lib/constants/components-group-const.mjs +16 -13
- package/esm2020/lib/models/default-gojs-editor.model.mjs +17 -3
- package/fesm2015/ato-water-lib.mjs +25 -15
- package/fesm2015/ato-water-lib.mjs.map +1 -1
- package/fesm2020/ato-water-lib.mjs +33 -16
- package/fesm2020/ato-water-lib.mjs.map +1 -1
- package/lib/constants/components-group-const.d.ts +1 -1
- package/package.json +1 -1
@@ -5659,7 +5659,15 @@ class AtoDefaultGojsEditor {
|
|
5659
5659
|
// return data.dataTable.filter((x) => x?.visible !== false);
|
5660
5660
|
const dataTable = data.dataTable.filter((x) => x?.visible !== false);
|
5661
5661
|
if (data?.isShowDataLongitudinal) {
|
5662
|
-
return _.map(dataTable, x
|
5662
|
+
return _.map(dataTable, (x) => {
|
5663
|
+
return { ...x, isOnlyShowParamName: true };
|
5664
|
+
})?.concat(_.map(dataTable, (x) => {
|
5665
|
+
return {
|
5666
|
+
...x,
|
5667
|
+
isOnlyShowValue: true,
|
5668
|
+
minSizeValue: new go.Size(170, 15),
|
5669
|
+
};
|
5670
|
+
}));
|
5663
5671
|
}
|
5664
5672
|
return dataTable;
|
5665
5673
|
}), {
|
@@ -5708,6 +5716,8 @@ class AtoDefaultGojsEditor {
|
|
5708
5716
|
return data?.name;
|
5709
5717
|
}), new go.Binding('maxSize', '', (data, panel) => {
|
5710
5718
|
return data?.maxSizeNameParam;
|
5719
|
+
}), new go.Binding('desiredSize', '', (data) => {
|
5720
|
+
return data?.desiredSizeNameParam;
|
5711
5721
|
}), new go.Binding('visible', '', (data, panel) => {
|
5712
5722
|
return !data?.isOnlyShowValue;
|
5713
5723
|
})), this.$(go.Panel, 'Table', {
|
@@ -5725,6 +5735,8 @@ class AtoDefaultGojsEditor {
|
|
5725
5735
|
return data?.minSizeValue ?? new go.Size(90, 14);
|
5726
5736
|
}), new go.Binding('maxSize', '', (data) => {
|
5727
5737
|
return data?.maxSizeValue;
|
5738
|
+
}), new go.Binding('desiredSize', '', (data) => {
|
5739
|
+
return data?.desiredSizeValue;
|
5728
5740
|
}), this.$(go.TextBlock, '', {
|
5729
5741
|
column: 0,
|
5730
5742
|
margin: 0,
|
@@ -5755,7 +5767,9 @@ class AtoDefaultGojsEditor {
|
|
5755
5767
|
return data.color;
|
5756
5768
|
}), new go.Binding('maxSize', '', (data) => {
|
5757
5769
|
if (!data?.isReadOnly && !this._initialOptions.isReadOnly) {
|
5758
|
-
return new go.Size(data?.maxSizeValue?.width
|
5770
|
+
return new go.Size(data?.maxSizeValue?.width
|
5771
|
+
? data?.maxSizeValue?.width - 15
|
5772
|
+
: NaN, data?.maxSizeValue?.height ?? NaN);
|
5759
5773
|
}
|
5760
5774
|
return data?.maxSizeValue;
|
5761
5775
|
}), new go.Binding('font', '', (data) => {
|
@@ -9492,7 +9506,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9492
9506
|
...e,
|
9493
9507
|
value: '',
|
9494
9508
|
isEditable: true,
|
9495
|
-
waterSystem: WATER_SYSTEMS_NAME.
|
9509
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
|
9496
9510
|
maxSizeValue: new go.Size(120, 14),
|
9497
9511
|
})),
|
9498
9512
|
assetLayers: ATO_ASSET_LAYERS.FLOW,
|
@@ -9516,7 +9530,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9516
9530
|
...e,
|
9517
9531
|
value: '',
|
9518
9532
|
isEditable: true,
|
9519
|
-
waterSystem: WATER_SYSTEMS_NAME.
|
9533
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
|
9520
9534
|
maxSizeValue: new go.Size(120, 14),
|
9521
9535
|
})),
|
9522
9536
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
@@ -9725,7 +9739,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9725
9739
|
key: 101,
|
9726
9740
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
9727
9741
|
group: 100,
|
9728
|
-
loc: '
|
9742
|
+
loc: '343 10',
|
9729
9743
|
padding: new go.Margin(0, 0, 0, 0),
|
9730
9744
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.VISUAL_MANAGEMENT],
|
9731
9745
|
minSizeValue: new go.Size(100, NaN),
|
@@ -9762,7 +9776,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9762
9776
|
isEditable: e?.isEditable === false ? false : true,
|
9763
9777
|
isFrom: ATO_MAPPER_FROM.INDICATOR,
|
9764
9778
|
maxSizeValue: new go.Size(130, 14),
|
9765
|
-
|
9779
|
+
desiredSizeNameParam: new go.Size(136, 14),
|
9766
9780
|
waterSystem: WATER_SYSTEMS_NAME.DATA_ANALYSIS,
|
9767
9781
|
})),
|
9768
9782
|
assetLayers: ATO_ASSET_LAYERS.PERFORMANCE,
|
@@ -9778,7 +9792,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9778
9792
|
type: AtoGojsEditorModel.ENUM_TEMPLATES.PARAM_TABLE,
|
9779
9793
|
group: 100,
|
9780
9794
|
padding: new go.Margin(0, 0, 0, 0),
|
9781
|
-
loc: '
|
9795
|
+
loc: '667 620',
|
9782
9796
|
...DATA_WATER_SYSTEMS[WATER_SYSTEMS_NAME.EFFICIENCY_AND_PERFORMANCE],
|
9783
9797
|
minSizeValue: new go.Size(100, NaN),
|
9784
9798
|
selectable: false,
|
@@ -9786,7 +9800,8 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9786
9800
|
...e,
|
9787
9801
|
value: '',
|
9788
9802
|
isEditable: true,
|
9789
|
-
|
9803
|
+
desiredSizeValue: new go.Size(100, 14),
|
9804
|
+
desiredNameParam: new go.Size(160, 14),
|
9790
9805
|
waterSystem: WATER_SYSTEMS_NAME.EFFICIENCY_AND_PERFORMANCE,
|
9791
9806
|
})),
|
9792
9807
|
assetLayers: ATO_ASSET_LAYERS.PERFORMANCE,
|
@@ -9810,7 +9825,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9810
9825
|
...e,
|
9811
9826
|
value: '',
|
9812
9827
|
isEditable: true,
|
9813
|
-
maxSizeValue: new go.Size(
|
9828
|
+
maxSizeValue: new go.Size(128, 14),
|
9814
9829
|
maxSizeNameParam: new go.Size(140, 14),
|
9815
9830
|
waterSystem: WATER_SYSTEMS_NAME.WATER_AND_ENERGY_CONSUMPTION,
|
9816
9831
|
})),
|
@@ -9835,7 +9850,8 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9835
9850
|
...e,
|
9836
9851
|
value: '',
|
9837
9852
|
isEditable: true,
|
9838
|
-
|
9853
|
+
desiredSizeValue: new go.Size(120, 14),
|
9854
|
+
desiredSizeNameParam: new go.Size(145, 14),
|
9839
9855
|
waterSystem: WATER_SYSTEMS_NAME.CHEMICALS_CONSUMPTION,
|
9840
9856
|
})),
|
9841
9857
|
assetLayers: ATO_ASSET_LAYERS.PERFORMANCE,
|
@@ -9857,8 +9873,9 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9857
9873
|
selectable: false,
|
9858
9874
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.DESIGN_PARAMETERS].map((e) => ({
|
9859
9875
|
...e,
|
9876
|
+
isEditable: true,
|
9860
9877
|
maxSizeValue: new go.Size(120, 14),
|
9861
|
-
maxSizeNameParam: new go.Size(
|
9878
|
+
maxSizeNameParam: new go.Size(180, 14),
|
9862
9879
|
waterSystem: WATER_SYSTEMS_NAME.DESIGN_PARAMETERS,
|
9863
9880
|
})),
|
9864
9881
|
assetLayers: ATO_ASSET_LAYERS.PERFORMANCE,
|
@@ -9881,7 +9898,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
9881
9898
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.SYSTEM_KPIS__COOLING_TOWER__PERFORMANCE].map((e) => ({
|
9882
9899
|
...e,
|
9883
9900
|
maxSizeValue: new go.Size(130, 14),
|
9884
|
-
|
9901
|
+
desiredSizeNameParam: new go.Size(135, 14),
|
9885
9902
|
waterSystem: WATER_SYSTEMS_NAME.SYSTEM_KPIS__COOLING_TOWER__PERFORMANCE,
|
9886
9903
|
})),
|
9887
9904
|
assetLayers: ATO_ASSET_LAYERS.PERFORMANCE,
|
@@ -10881,7 +10898,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
10881
10898
|
dataTable: ASSET_CATEGORY_PARAMS[WATER_SYSTEMS_NAME.MAKEUP_WATER__FLOW].map((e) => ({
|
10882
10899
|
...e,
|
10883
10900
|
value: '',
|
10884
|
-
waterSystem: WATER_SYSTEMS_NAME.
|
10901
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
|
10885
10902
|
isEditable: true,
|
10886
10903
|
maxSizeValue: new go.Size(120, 14),
|
10887
10904
|
})),
|
@@ -10906,7 +10923,7 @@ const ATO_COMPONENTS_GROUP_DATA = {
|
|
10906
10923
|
...e,
|
10907
10924
|
value: '',
|
10908
10925
|
isEditable: true,
|
10909
|
-
waterSystem: WATER_SYSTEMS_NAME.
|
10926
|
+
waterSystem: WATER_SYSTEMS_NAME.MAKEUP_WATER,
|
10910
10927
|
maxSizeValue: new go.Size(120, 14),
|
10911
10928
|
})),
|
10912
10929
|
assetLayers: ATO_ASSET_LAYERS.CHEMISTRY,
|
@@ -11131,10 +11148,10 @@ class AtoAssetParamsViewComponent {
|
|
11131
11148
|
}
|
11132
11149
|
}
|
11133
11150
|
AtoAssetParamsViewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoAssetParamsViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
11134
|
-
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 flex-gap-2\">\n <div\n class=\"mr-auto font-size-13px flex-grow-1\"\n [style.color]=\"itemTable?.color\"\n >\n {{ itemTable?.value }}\n </div>\n <svg *ngIf=\"isEditView && itemTable?.isEditable\" 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}.asset-param-item .table-asset-param-wrapper table tbody tr td:first-child{width:30%}.asset-param-item .table-asset-param-wrapper table tbody tr td:last-child{width:70%}.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"] }] });
|
11151
|
+
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 flex-gap-2 \">\n <div\n class=\"mr-auto font-size-13px flex-grow-1 cursor-pointer\"\n [style.color]=\"itemTable?.color\"\n >\n {{ itemTable?.value }}\n </div>\n <svg *ngIf=\"isEditView && itemTable?.isEditable\" 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}.asset-param-item .table-asset-param-wrapper table tbody tr td:first-child{width:30%}.asset-param-item .table-asset-param-wrapper table tbody tr td:last-child{width:70%}.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"] }] });
|
11135
11152
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: AtoAssetParamsViewComponent, decorators: [{
|
11136
11153
|
type: Component,
|
11137
|
-
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 flex-gap-2\">\n <div\n class=\"mr-auto font-size-13px flex-grow-1\"\n [style.color]=\"itemTable?.color\"\n >\n {{ itemTable?.value }}\n </div>\n <svg *ngIf=\"isEditView && itemTable?.isEditable\" 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}.asset-param-item .table-asset-param-wrapper table tbody tr td:first-child{width:30%}.asset-param-item .table-asset-param-wrapper table tbody tr td:last-child{width:70%}.color-white{color:#fff}.flex-gap-2{gap:.5rem}.svg-15px{width:15px;height:15px;flex:0 0 15px}\n"] }]
|
11154
|
+
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 flex-gap-2 \">\n <div\n class=\"mr-auto font-size-13px flex-grow-1 cursor-pointer\"\n [style.color]=\"itemTable?.color\"\n >\n {{ itemTable?.value }}\n </div>\n <svg *ngIf=\"isEditView && itemTable?.isEditable\" 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}.asset-param-item .table-asset-param-wrapper table tbody tr td:first-child{width:30%}.asset-param-item .table-asset-param-wrapper table tbody tr td:last-child{width:70%}.color-white{color:#fff}.flex-gap-2{gap:.5rem}.svg-15px{width:15px;height:15px;flex:0 0 15px}\n"] }]
|
11138
11155
|
}], propDecorators: { isEditView: [{
|
11139
11156
|
type: Input
|
11140
11157
|
}], data: [{
|