qms-angular 1.0.22 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/qms-angular.umd.js +76 -31
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/components/related/common/tree.function.js +3 -3
- package/esm2015/lib/components/related/model/danger-assessment.model.js +1 -1
- package/esm2015/lib/components/related/model/danger.model.js +1 -1
- package/esm2015/lib/components/related/model/risk-result.model.js +2 -1
- package/esm2015/lib/components/related/popup/related-popup.component.js +58 -23
- package/esm2015/lib/components/related/risk/list/list.component.js +3 -2
- package/esm2015/lib/components/related/risk/result/result.component.js +4 -2
- package/esm2015/lib/components/related/tree/tree.component.js +7 -4
- package/esm2015/lib/directives/tooltip/tooltip-renderer.directive.js +4 -3
- package/esm2015/lib/model/en.js +2 -1
- package/esm2015/lib/model/no.js +2 -1
- package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-tree-node.model.js +1 -1
- package/fesm2015/qms-angular.js +76 -31
- package/fesm2015/qms-angular.js.map +1 -1
- package/lib/components/related/model/danger-assessment.model.d.ts +1 -0
- package/lib/components/related/model/danger.model.d.ts +1 -0
- package/lib/components/related/model/risk-result.model.d.ts +1 -0
- package/lib/components/related/risk/result/result.component.d.ts +1 -0
- package/lib/model/en.d.ts +1 -0
- package/lib/model/no.d.ts +1 -0
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-tree-node.model.d.ts +1 -0
- package/package.json +1 -1
- package/qms-angular.metadata.json +1 -1
package/fesm2015/qms-angular.js
CHANGED
@@ -91,6 +91,7 @@ const en = {
|
|
91
91
|
"MUST_BE_EVALUATED": "Must be evaluated",
|
92
92
|
"ACCEPTED": "Accepted",
|
93
93
|
"ARCHIVED": "Archived",
|
94
|
+
"CAUSE": "Cause",
|
94
95
|
"ERROR": {
|
95
96
|
"SELECT_DANGER": "You must select one or more events"
|
96
97
|
},
|
@@ -199,6 +200,7 @@ const no = {
|
|
199
200
|
"MUST_BE_EVALUATED": "Må vurderes",
|
200
201
|
"ACCEPTED": "Akseptert",
|
201
202
|
"ARCHIVED": "Arkivert",
|
203
|
+
"CAUSE": "Årsak",
|
202
204
|
"ERROR": {
|
203
205
|
"SELECT_DANGER": "Du må velge en eller flere hendelser"
|
204
206
|
},
|
@@ -1692,9 +1694,10 @@ class QMSToolTipRendererDirective {
|
|
1692
1694
|
*/
|
1693
1695
|
show() {
|
1694
1696
|
//attach the component if it has not already attached to the overlay
|
1695
|
-
if (this.text && this._overlayRef && !this._overlayRef.hasAttached()) {
|
1697
|
+
if ((this.text || this.contentTemplate) && this._overlayRef && !this._overlayRef.hasAttached()) {
|
1696
1698
|
const tooltipRef = this._overlayRef.attach(new ComponentPortal(QMSToolTipComponent));
|
1697
|
-
|
1699
|
+
if (this.text)
|
1700
|
+
tooltipRef.instance.text = this.text;
|
1698
1701
|
if (this.mode) {
|
1699
1702
|
tooltipRef.instance.mode = this.mode;
|
1700
1703
|
}
|
@@ -3220,7 +3223,7 @@ function findParent$1(id, array) {
|
|
3220
3223
|
let key = {
|
3221
3224
|
id: parent[0].rootId,
|
3222
3225
|
name: parent[0].rootName,
|
3223
|
-
parentId:
|
3226
|
+
parentId: id
|
3224
3227
|
};
|
3225
3228
|
// add node to tree
|
3226
3229
|
objData$1[json.stringify(key)] = objParent;
|
@@ -3235,7 +3238,7 @@ function findChild$1(id, objParent, array) {
|
|
3235
3238
|
let nodeKey = {
|
3236
3239
|
id: item.childId,
|
3237
3240
|
name: item.childName,
|
3238
|
-
parentId:
|
3241
|
+
parentId: item.rootId
|
3239
3242
|
};
|
3240
3243
|
processNode[json.stringify(nodeKey)] = null;
|
3241
3244
|
this.findChild(item.rootId, processNode, array);
|
@@ -3359,7 +3362,10 @@ class TreeComponent {
|
|
3359
3362
|
this.treeData = [...this.treeData, changes.treeData.currentValue];
|
3360
3363
|
this.initTreeData();
|
3361
3364
|
}
|
3362
|
-
if (changes.selectedData &&
|
3365
|
+
if (changes.selectedData &&
|
3366
|
+
(changes.selectedData.currentValue.length > 0 ||
|
3367
|
+
JSON.stringify(changes.selectedData.currentValue) !==
|
3368
|
+
JSON.stringify(changes.selectedData.previousValue))) {
|
3363
3369
|
this.checkSelected(changes.selectedData.currentValue);
|
3364
3370
|
}
|
3365
3371
|
else {
|
@@ -3544,8 +3550,8 @@ class TreeComponent {
|
|
3544
3550
|
}
|
3545
3551
|
else {
|
3546
3552
|
const descendants = this.treeControl.getDescendants(node).filter(item => !item.disabled);
|
3547
|
-
this.checkSelectedSameNode(descendants, this.
|
3548
|
-
this.
|
3553
|
+
this.checkSelectedSameNode(descendants, this.descendantsAllSelected(node));
|
3554
|
+
!this.descendantsAllSelected(node)
|
3549
3555
|
? this.checklistSelection.select(...descendants)
|
3550
3556
|
: this.checklistSelection.deselect(...descendants);
|
3551
3557
|
this.cdRef.markForCheck();
|
@@ -3921,6 +3927,8 @@ class RelatedPopupComponent {
|
|
3921
3927
|
this.checkedNodeList = this.checkedNodeList.filter(x => (x.id !== item.id || x.parentId !== item.parentId));
|
3922
3928
|
const tempArr = [];
|
3923
3929
|
const tempArrDocument = [];
|
3930
|
+
const newSelectProcessList = [];
|
3931
|
+
const newSelectDocumentList = [];
|
3924
3932
|
this.commonCheckedList.forEach(element => {
|
3925
3933
|
this.checkedNodeList.forEach(x => {
|
3926
3934
|
if (element.id === x.id && element.parentId === x.parentId) {
|
@@ -3928,6 +3936,14 @@ class RelatedPopupComponent {
|
|
3928
3936
|
}
|
3929
3937
|
});
|
3930
3938
|
});
|
3939
|
+
this.singleProcessList.forEach(element => {
|
3940
|
+
this.checkedNodeList.forEach(x => {
|
3941
|
+
if (element.id === x.id && element.parentId === x.parentId) {
|
3942
|
+
newSelectProcessList.push(element);
|
3943
|
+
}
|
3944
|
+
});
|
3945
|
+
});
|
3946
|
+
this.singleProcessList = newSelectProcessList;
|
3931
3947
|
this.selectedData = [...tempArr];
|
3932
3948
|
this.documentCheckedList.forEach(element => {
|
3933
3949
|
this.checkedNodeList.forEach(x => {
|
@@ -3936,6 +3952,14 @@ class RelatedPopupComponent {
|
|
3936
3952
|
}
|
3937
3953
|
});
|
3938
3954
|
});
|
3955
|
+
this.singleDocumentList.forEach(element => {
|
3956
|
+
this.checkedNodeList.forEach(x => {
|
3957
|
+
if (element.id === x.id && element.parentId === x.parentId) {
|
3958
|
+
newSelectDocumentList.push(element);
|
3959
|
+
}
|
3960
|
+
});
|
3961
|
+
});
|
3962
|
+
this.singleDocumentList = newSelectDocumentList;
|
3939
3963
|
this.selectedData2 = [...tempArrDocument];
|
3940
3964
|
}
|
3941
3965
|
isMatchTrue(arr, arr2) {
|
@@ -3964,7 +3988,7 @@ class RelatedPopupComponent {
|
|
3964
3988
|
onSearchRelated(_val) {
|
3965
3989
|
this.filteredOptions = [];
|
3966
3990
|
if (typeof (_val) === 'object') {
|
3967
|
-
|
3991
|
+
this.myControl.setValue('');
|
3968
3992
|
}
|
3969
3993
|
else if (typeof (_val) === 'string') {
|
3970
3994
|
if (!!_val) {
|
@@ -4102,7 +4126,8 @@ class RelatedPopupComponent {
|
|
4102
4126
|
const node = {
|
4103
4127
|
id: item.rootId,
|
4104
4128
|
name: item.rootName,
|
4105
|
-
children: []
|
4129
|
+
children: [],
|
4130
|
+
parentId: item.parentId
|
4106
4131
|
};
|
4107
4132
|
let nodeChildren = this.treeData1.
|
4108
4133
|
filter(x => x.rootId === item.rootId).
|
@@ -4123,7 +4148,8 @@ class RelatedPopupComponent {
|
|
4123
4148
|
id: x.id,
|
4124
4149
|
itemName: x.name,
|
4125
4150
|
itemType: itemType,
|
4126
|
-
itemNumberId: item.displayId.toString()
|
4151
|
+
itemNumberId: item.displayId.toString(),
|
4152
|
+
parentId: item.rootId
|
4127
4153
|
});
|
4128
4154
|
});
|
4129
4155
|
}
|
@@ -4134,7 +4160,8 @@ class RelatedPopupComponent {
|
|
4134
4160
|
id: x.id,
|
4135
4161
|
itemName: x.name,
|
4136
4162
|
itemType: itemType,
|
4137
|
-
itemNumberId: item.displayId.toString()
|
4163
|
+
itemNumberId: item.displayId.toString(),
|
4164
|
+
parentId: item.rootId
|
4138
4165
|
});
|
4139
4166
|
});
|
4140
4167
|
}
|
@@ -4169,13 +4196,14 @@ class RelatedPopupComponent {
|
|
4169
4196
|
else {
|
4170
4197
|
position = this.treeData1.findIndex(p => p.childId === item.id);
|
4171
4198
|
}
|
4172
|
-
if (position >
|
4199
|
+
if (position > -1) {
|
4173
4200
|
this.singleProcessList.push({
|
4174
4201
|
moduleId: this.moduleId,
|
4175
4202
|
id: item.id,
|
4176
4203
|
itemName: item.name,
|
4177
4204
|
itemType: (this.itemType === 2) ? this.setTypeProcess(item.expandable) : this.itemType,
|
4178
|
-
itemNumberId: this.treeData1[position].displayId.toString()
|
4205
|
+
itemNumberId: this.treeData1[position].displayId.toString(),
|
4206
|
+
parentId: item.parentId
|
4179
4207
|
});
|
4180
4208
|
}
|
4181
4209
|
}
|
@@ -4188,7 +4216,7 @@ class RelatedPopupComponent {
|
|
4188
4216
|
itemName: item.name,
|
4189
4217
|
itemType: this.itemType,
|
4190
4218
|
parentId: item.parentId,
|
4191
|
-
parentName: this.treeData1[position].rootName,
|
4219
|
+
parentName: this.treeData1[position].parentId ? this.treeData1[position].subName : this.treeData1[position].rootName,
|
4192
4220
|
itemNumberId: this.treeData1[position].displayId.toString()
|
4193
4221
|
});
|
4194
4222
|
}
|
@@ -4211,24 +4239,37 @@ class RelatedPopupComponent {
|
|
4211
4239
|
this.documentCheckedList.push(item);
|
4212
4240
|
}
|
4213
4241
|
if (this.singleSelectedNode) {
|
4214
|
-
|
4215
|
-
|
4216
|
-
|
4217
|
-
|
4218
|
-
|
4219
|
-
|
4220
|
-
|
4221
|
-
|
4242
|
+
let position;
|
4243
|
+
if (item.expandable) {
|
4244
|
+
position = this.treeData2.findIndex(p => p.rootId === item.id);
|
4245
|
+
}
|
4246
|
+
else {
|
4247
|
+
position = this.treeData2.findIndex(p => p.childId === item.id);
|
4248
|
+
}
|
4249
|
+
if (position > -1) {
|
4250
|
+
this.singleDocumentList.push({
|
4251
|
+
moduleId: this.moduleId,
|
4252
|
+
id: item.id,
|
4253
|
+
itemName: item.name,
|
4254
|
+
itemType: item.expandable ? this.dataType.folder : this.dataType.document,
|
4255
|
+
itemNumberId: this.treeData2[position].displayId.toString(),
|
4256
|
+
parentId: item.parentId
|
4257
|
+
});
|
4258
|
+
}
|
4222
4259
|
}
|
4223
4260
|
if (index < 0 && !item.expandable && !this.singleSelectedNode) {
|
4224
4261
|
const position = this.treeData2.findIndex(p => p.childId === item.id);
|
4225
|
-
|
4226
|
-
|
4227
|
-
|
4228
|
-
|
4229
|
-
|
4230
|
-
|
4231
|
-
|
4262
|
+
if (position > -1) {
|
4263
|
+
this.checkedNodeList.push({
|
4264
|
+
moduleId: this.moduleId,
|
4265
|
+
id: item.id,
|
4266
|
+
itemName: item.name,
|
4267
|
+
itemType: this.dataType.document,
|
4268
|
+
itemNumberId: this.treeData2[position].displayId.toString(),
|
4269
|
+
parentId: item.parentId,
|
4270
|
+
parentName: this.treeData2[position].rootName,
|
4271
|
+
});
|
4272
|
+
}
|
4232
4273
|
}
|
4233
4274
|
});
|
4234
4275
|
if (this.singleSelectedNode) {
|
@@ -4412,6 +4453,7 @@ class RiskResult {
|
|
4412
4453
|
constructor() {
|
4413
4454
|
this.title = '';
|
4414
4455
|
this.results = [];
|
4456
|
+
this.isSimple = 0;
|
4415
4457
|
}
|
4416
4458
|
}
|
4417
4459
|
class Result {
|
@@ -4424,8 +4466,10 @@ class RiskResultComponent {
|
|
4424
4466
|
this.data = data;
|
4425
4467
|
this.results = [];
|
4426
4468
|
this.color = Color;
|
4469
|
+
this.isSimple = 0;
|
4427
4470
|
this.title = data.title;
|
4428
4471
|
this.results = data.results;
|
4472
|
+
this.isSimple = data.isSimple || 0;
|
4429
4473
|
}
|
4430
4474
|
ngOnInit() {
|
4431
4475
|
this.translate.getLanguageSubject$.pipe().subscribe((res) => {
|
@@ -4441,7 +4485,7 @@ class RiskResultComponent {
|
|
4441
4485
|
RiskResultComponent.decorators = [
|
4442
4486
|
{ type: Component, args: [{
|
4443
4487
|
selector: 'qms-risk-result',
|
4444
|
-
template: "<div class=\"dialog-container\">\r\n <div mat-dialog-title class=\"dialog-title\">\r\n <h3 class=\"title\">{{ title }}</h3>\r\n <button\r\n qms-btn-icon\r\n color=\"light\"\r\n qms-tool-tip=\"Caption\"\r\n mode=\"dark\"\r\n (click)=\"onCloseClick()\"\r\n >\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <mat-dialog-content>\r\n <div class=\"flex-container-header\">\r\n <div class=\"first\">{{ LANG.EVENT }}</div>\r\n <div class=\"second\">{{ LANG.AREA_OF_IMPACT }}</div>\r\n <div class=\"third\">{{ LANG.RESULT }}</div>\r\n </div>\r\n <div class=\"flex-container\" *ngFor=\"let item of results\">\r\n <!-- g y r 1 2 3 done -->\r\n <div class=\"first\" [ngSwitch]=\"item.color\">\r\n <label *ngSwitchCase=\"3\" class=\"label-red\"></label>\r\n <label *ngSwitchCase=\"1\" class=\"label-green\"></label>\r\n <label *ngSwitchCase=\"2\" class=\"label-yellow\"></label>\r\n {{ item.cause }}\r\n </div>\r\n <div class=\"second\">{{ item.consequenceArea }}</div>\r\n <ng-container [ngSwitch]=\"item.color\">\r\n <div class=\"third text-red\" *ngSwitchCase=\"3\">\r\n <span class=\"material-icons-outlined\">report_problem</span>\r\n {{ LANG.NOT_ACCEPTED }}\r\n </div>\r\n <div class=\"third text-yellow\" *ngSwitchCase=\"2\">\r\n <mat-icon>error_outline</mat-icon>\r\n {{ LANG.MUST_BE_EVALUATED }}\r\n </div>\r\n <div class=\"third text-green\" *ngSwitchCase=\"1\">\r\n <mat-icon>done</mat-icon>\r\n {{ LANG.ACCEPTED }}\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-dialog-content>\r\n</div>\r\n",
|
4488
|
+
template: "<div class=\"dialog-container\">\r\n <div mat-dialog-title class=\"dialog-title\">\r\n <h3 class=\"title\">{{ title }}</h3>\r\n <button\r\n qms-btn-icon\r\n color=\"light\"\r\n qms-tool-tip=\"Caption\"\r\n mode=\"dark\"\r\n (click)=\"onCloseClick()\"\r\n >\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div>\r\n\r\n <mat-dialog-content>\r\n <div class=\"flex-container-header\">\r\n <div class=\"first\">{{ isSimple ? LANG.EVENT : LANG.CAUSE }}</div>\r\n <div class=\"second\">{{ LANG.AREA_OF_IMPACT }}</div>\r\n <div class=\"third\">{{ LANG.RESULT }}</div>\r\n </div>\r\n <div class=\"flex-container\" *ngFor=\"let item of results\">\r\n <!-- g y r 1 2 3 done -->\r\n <div class=\"first\" [ngSwitch]=\"item.color\">\r\n <label *ngSwitchCase=\"3\" class=\"label-red\"></label>\r\n <label *ngSwitchCase=\"1\" class=\"label-green\"></label>\r\n <label *ngSwitchCase=\"2\" class=\"label-yellow\"></label>\r\n {{ item.cause }}\r\n </div>\r\n <div class=\"second\">{{ item.consequenceArea }}</div>\r\n <ng-container [ngSwitch]=\"item.color\">\r\n <div class=\"third text-red\" *ngSwitchCase=\"3\">\r\n <span class=\"material-icons-outlined\">report_problem</span>\r\n {{ LANG.NOT_ACCEPTED }}\r\n </div>\r\n <div class=\"third text-yellow\" *ngSwitchCase=\"2\">\r\n <mat-icon>error_outline</mat-icon>\r\n {{ LANG.MUST_BE_EVALUATED }}\r\n </div>\r\n <div class=\"third text-green\" *ngSwitchCase=\"1\">\r\n <mat-icon>done</mat-icon>\r\n {{ LANG.ACCEPTED }}\r\n </div>\r\n </ng-container>\r\n </div>\r\n </mat-dialog-content>\r\n</div>\r\n",
|
4445
4489
|
styles: ["@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWJ0bbck.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFUZ0bbck.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWZ0bbck.woff2) format(\"woff2\");unicode-range:U+1f??}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVp0bbck.woff2) format(\"woff2\");unicode-range:U+0370-03ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWp0bbck.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFW50bbck.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Open Sans;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFVZ0b.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCFPrEHJA.woff2) format(\"woff2\");unicode-range:U+0460-052f,U+1c80-1c88,U+20b4,U+2de0-2dff,U+a640-a69f,U+fe2e-fe2f}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCMPrEHJA.woff2) format(\"woff2\");unicode-range:U+0400-045f,U+0490-0491,U+04b0-04b1,U+2116}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCHPrEHJA.woff2) format(\"woff2\");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01a0-01a1,U+01af-01b0,U+1ea0-1ef9,U+20ab}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCGPrEHJA.woff2) format(\"woff2\");unicode-range:U+0100-024f,U+0259,U+1e??,U+2020,U+20a0-20ab,U+20ad-20cf,U+2113,U+2c60-2c7f,U+a720-a7ff}@font-face{font-family:Raleway;font-style:normal;font-weight:400;font-display:swap;src:url(https://fonts.gstatic.com/s/raleway/v19/1Ptxg8zYS_SKggPN4iEgvnHyvveLxVvaorCIPrE.woff2) format(\"woff2\");unicode-range:U+00??,U+0131,U+0152-0153,U+02bb-02bc,U+02c6,U+02da,U+02dc,U+2000-206f,U+2074,U+20ac,U+2122,U+2191,U+2193,U+2212,U+2215,U+feff,U+fffd}.dialog-title{display:flex;justify-content:space-between}.dialog-title h3.title{font-family:Raleway;font-style:normal;font-weight:500;font-size:22px;line-height:26px}.flex-container-header{display:flex;align-items:center;font-size:.75rem;border-radius:4px;line-height:16px}.flex-container-header>div{font-family:Open Sans;font-style:normal;font-weight:600;text-align:left;padding:10px 25px;color:rgba(0,0,0,.6)}.flex-container-header .first{flex:0 1 40%}.flex-container-header .second,.flex-container-header .third{flex:0 1 30%}.flex-container{display:flex;align-items:center;font-size:.875rem;line-height:22px;border-radius:4px;border:1px solid #ddd;min-height:48px;margin-bottom:10px}.flex-container>div{font-family:Open Sans;font-style:normal;text-align:left;padding:10px 25px;color:#323232}.flex-container .first{display:flex;flex:0 1 40%;align-items:center;font-weight:600}.flex-container .second{flex:0 1 30%;font-weight:400}.flex-container .third{display:flex;flex:0 1 30%;align-items:center;font-weight:600;font-size:.75rem}.flex-container .third.text-green,.flex-container .third.text-red,.flex-container .third.text-yellow{font-size:.75rem}.flex-container .third.text-green .mat-icon,.flex-container .third.text-green .material-icons-outlined,.flex-container .third.text-red .mat-icon,.flex-container .third.text-red .material-icons-outlined,.flex-container .third.text-yellow .mat-icon,.flex-container .third.text-yellow .material-icons-outlined{margin-right:1rem}.flex-container .third.text-red{color:#b00020}.flex-container .third.text-yellow{color:#726729}.flex-container .third.text-green{color:#005935}.label-green,.label-red,.label-yellow{font-family:Open Sans;font-style:normal;font-weight:600;display:flex;text-align:center;margin-right:1rem;width:24px;height:24px;flex:0 0 24px;border-radius:1px}.label-red{background-color:#9e360f;color:#fff}.label-yellow{background-color:#e4cf53;color:rgba(0,0,0,.87)}.label-green{background-color:#00804c;color:#fff}"]
|
4446
4490
|
},] }
|
4447
4491
|
];
|
@@ -4560,7 +4604,8 @@ class RiskListComponent {
|
|
4560
4604
|
remain: 0,
|
4561
4605
|
dangers: [],
|
4562
4606
|
folderId: d.folderId,
|
4563
|
-
statusId: d.statusId
|
4607
|
+
statusId: d.statusId,
|
4608
|
+
simple: d.simple
|
4564
4609
|
});
|
4565
4610
|
dangers.forEach(d => {
|
4566
4611
|
const index = this.analysisDanger[i].dangers.findIndex(x => {
|