vcomply-workflow-engine 3.1.38 → 3.1.39
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/esm2020/lib/more-option/more-option.component.mjs +2 -2
- package/esm2020/lib/sharedComponents/table-card-loader/table-card-loader.component.mjs +3 -3
- package/esm2020/lib/workflow/grc-object/grc-object-container/grc-object-container.component.mjs +4 -7
- package/esm2020/lib/workflow/shared/components/attributes/attributes-checkbox/attributes-checkbox.component.mjs +3 -3
- package/esm2020/lib/workflow/shared/components/attributes/attributes-dropdown/attributes-dropdown.component.mjs +11 -14
- package/esm2020/lib/workflow/shared/services/grc.service.mjs +5 -10
- package/esm2020/lib/workflow/shared/workflow-pipes/is-attributes-valid.pipe.mjs +8 -10
- package/fesm2015/vcomply-workflow-engine.mjs +29 -43
- package/fesm2015/vcomply-workflow-engine.mjs.map +1 -1
- package/fesm2020/vcomply-workflow-engine.mjs +29 -42
- package/fesm2020/vcomply-workflow-engine.mjs.map +1 -1
- package/lib/workflow/grc-object/grc-object-container/grc-object-container.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -714,15 +714,10 @@ class GrcService {
|
|
|
714
714
|
}
|
|
715
715
|
else if (obj.type === 'checkbox' || obj.type === 'dropdown') {
|
|
716
716
|
let isChoiceSelected = false;
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
for (const choice of obj.choices) {
|
|
722
|
-
if (choice.is_selected) {
|
|
723
|
-
isChoiceSelected = true;
|
|
724
|
-
break;
|
|
725
|
-
}
|
|
717
|
+
for (const choice of obj.choices) {
|
|
718
|
+
if (choice.is_selected) {
|
|
719
|
+
isChoiceSelected = true;
|
|
720
|
+
break;
|
|
726
721
|
}
|
|
727
722
|
}
|
|
728
723
|
if (!isChoiceSelected) {
|
|
@@ -3237,10 +3232,10 @@ class TableCardLoaderComponent {
|
|
|
3237
3232
|
ngOnInit() { }
|
|
3238
3233
|
}
|
|
3239
3234
|
TableCardLoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TableCardLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3240
|
-
TableCardLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TableCardLoaderComponent, isStandalone: true, selector: "app-table-card-loader", ngImport: i0, template: "<div class=\"table-card-area vx-d-flex vx-align-center vx-mb-2\">\
|
|
3235
|
+
TableCardLoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TableCardLoaderComponent, isStandalone: true, selector: "app-table-card-loader", ngImport: i0, template: "<div class=\"table-card-area vx-d-flex vx-align-center vx-mb-2\">\n <div *ngFor=\"let data of [1,1,1,1]\" class=\"vx-table-card vx-bg-white vx-d-flex vx-justify-between vx-align-center vx-pt-2 vx-pb-2 vx-pl-3 vx-pr-3 vx-mr-1 vx-w-100\">\n <div class=\"left vx-d-block vx-w-100\">\n <div class=\"label vx-d-flex vx-align-center\">\n <div class=\"loader\"></div>\n </div>\n </div>\n <div class=\"right vx-d-flex vx-justify-end vx-w-100\">\n <span class=\"vx-txt-white vx-fw-500 vx-d-inline-block vx-text-center loader\"></span>\n </div>\n </div>\n</div>", styles: ["@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/table-card/table-card.css\";::ng-deep .table-card-area .vx-table-card:last-of-type{margin-right:0!important}::ng-deep .table-card-area .vx-table-card .left .label .loader{width:100%}::ng-deep .table-card-area .vx-table-card .right span{width:1.75rem;height:1.75rem}.loader{background:#f1f1f1!important;height:.5rem}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3241
3236
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TableCardLoaderComponent, decorators: [{
|
|
3242
3237
|
type: Component,
|
|
3243
|
-
args: [{ selector: 'app-table-card-loader', standalone: true, imports: [CommonModule], template: "<div class=\"table-card-area vx-d-flex vx-align-center vx-mb-2\">\
|
|
3238
|
+
args: [{ selector: 'app-table-card-loader', standalone: true, imports: [CommonModule], template: "<div class=\"table-card-area vx-d-flex vx-align-center vx-mb-2\">\n <div *ngFor=\"let data of [1,1,1,1]\" class=\"vx-table-card vx-bg-white vx-d-flex vx-justify-between vx-align-center vx-pt-2 vx-pb-2 vx-pl-3 vx-pr-3 vx-mr-1 vx-w-100\">\n <div class=\"left vx-d-block vx-w-100\">\n <div class=\"label vx-d-flex vx-align-center\">\n <div class=\"loader\"></div>\n </div>\n </div>\n <div class=\"right vx-d-flex vx-justify-end vx-w-100\">\n <span class=\"vx-txt-white vx-fw-500 vx-d-inline-block vx-text-center loader\"></span>\n </div>\n </div>\n</div>", styles: ["@import\"https://cdn.v-comply.com/design-system/css/mixin/mixin.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/table-card/table-card.css\";::ng-deep .table-card-area .vx-table-card:last-of-type{margin-right:0!important}::ng-deep .table-card-area .vx-table-card .left .label .loader{width:100%}::ng-deep .table-card-area .vx-table-card .right span{width:1.75rem;height:1.75rem}.loader{background:#f1f1f1!important;height:.5rem}\n"] }]
|
|
3244
3239
|
}], ctorParameters: function () { return []; } });
|
|
3245
3240
|
|
|
3246
3241
|
class GrcObjectListComponent {
|
|
@@ -4978,10 +4973,10 @@ class AttributesDropdownComponent {
|
|
|
4978
4973
|
this.onDataSelection = new EventEmitter();
|
|
4979
4974
|
}
|
|
4980
4975
|
onValueChanged(event, index) {
|
|
4981
|
-
if (event === 'Other') {
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
}
|
|
4976
|
+
// if (event === 'Other') {
|
|
4977
|
+
// this.dropdownInfo.is_other_selected = true;
|
|
4978
|
+
// return;
|
|
4979
|
+
// }
|
|
4985
4980
|
this.dropdownInfo.choices.forEach((eachChoice, dataIndex) => {
|
|
4986
4981
|
if (index === dataIndex) {
|
|
4987
4982
|
eachChoice.is_selected = true;
|
|
@@ -4995,10 +4990,6 @@ class AttributesDropdownComponent {
|
|
|
4995
4990
|
this.onDataSelection.emit(this.dropdownInfo.choices);
|
|
4996
4991
|
}
|
|
4997
4992
|
get placeholderText() {
|
|
4998
|
-
var _a;
|
|
4999
|
-
if (this.dropdownInfo.hasOther && ((_a = this.dropdownInfo) === null || _a === void 0 ? void 0 : _a.is_other_selected)) {
|
|
5000
|
-
return this.dropdownInfo.otherValue;
|
|
5001
|
-
}
|
|
5002
4993
|
const INDEX = this.dropdownInfo.choices.findIndex((choices) => choices.is_selected);
|
|
5003
4994
|
if (INDEX > -1) {
|
|
5004
4995
|
return this.dropdownInfo.choices[INDEX].title;
|
|
@@ -5020,11 +5011,11 @@ AttributesDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.
|
|
|
5020
5011
|
(click)="onValueChanged(eachChoice?.title, i)"
|
|
5021
5012
|
>{{ eachChoice?.title }}</cs-option
|
|
5022
5013
|
>
|
|
5023
|
-
<cs-option
|
|
5014
|
+
<!-- <cs-option
|
|
5024
5015
|
*ngIf="dropdownInfo?.hasOther"
|
|
5025
5016
|
[value]="dropdownInfo?.is_other_selected"
|
|
5026
|
-
(click)="onValueChanged(dropdownInfo?.
|
|
5027
|
-
>{{ dropdownInfo?.
|
|
5017
|
+
(click)="onValueChanged(dropdownInfo?.hasOtherValue, i)"
|
|
5018
|
+
>{{ dropdownInfo?.hasOtherValue }}</cs-option -->
|
|
5028
5019
|
>
|
|
5029
5020
|
</cs-select>
|
|
5030
5021
|
<p *ngIf="isValidationError" class="error-message">
|
|
@@ -5053,11 +5044,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
5053
5044
|
(click)="onValueChanged(eachChoice?.title, i)"
|
|
5054
5045
|
>{{ eachChoice?.title }}</cs-option
|
|
5055
5046
|
>
|
|
5056
|
-
<cs-option
|
|
5047
|
+
<!-- <cs-option
|
|
5057
5048
|
*ngIf="dropdownInfo?.hasOther"
|
|
5058
5049
|
[value]="dropdownInfo?.is_other_selected"
|
|
5059
|
-
(click)="onValueChanged(dropdownInfo?.
|
|
5060
|
-
>{{ dropdownInfo?.
|
|
5050
|
+
(click)="onValueChanged(dropdownInfo?.hasOtherValue, i)"
|
|
5051
|
+
>{{ dropdownInfo?.hasOtherValue }}</cs-option -->
|
|
5061
5052
|
>
|
|
5062
5053
|
</cs-select>
|
|
5063
5054
|
<p *ngIf="isValidationError" class="error-message">
|
|
@@ -5149,10 +5140,10 @@ class AttributesCheckboxComponent {
|
|
|
5149
5140
|
}
|
|
5150
5141
|
}
|
|
5151
5142
|
AttributesCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AttributesCheckboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5152
|
-
AttributesCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: AttributesCheckboxComponent, isStandalone: true, selector: "lib-attributes-checkbox", inputs: { selectedAttribute: "selectedAttribute" }, outputs: { onSelectedAttributes: "onSelectedAttributes" }, ngImport: i0, template: "<div class=\"add-risk-rc\" [class.animate]=\"animation\">\r\n <div\r\n class=\"add-risk-rc-head vx-d-flex vx-align-center vx-justify-between vx-pl-4 vx-pr-4\"\r\n >\r\n <div\r\n class=\"vx-fs-14 vx-fw-500 vx-label-txt\"\r\n [innerHTML]=\"selectedAttribute?.title\"\r\n ></div>\r\n </div>\r\n <div class=\"add-risk-rc-body\">\r\n <!-- <app-workflow-pagination></app-workflow-pagination> -->\r\n\r\n <div class=\"body-top\" *ngIf=\"selectedAttribute?.choices?.length > 0\">\r\n <app-cs-checkbox\r\n [ngValue]=\"isSelectAll\"\r\n (ngValueChange)=\"selectAll($event)\"\r\n ><strong>{{ isSelectAll ? \"Deselect All\" : \"Select All\" }}</strong>\r\n </app-cs-checkbox>\r\n </div>\r\n\r\n <ul class=\"add-risk-rc-list\">\r\n <ng-container>\r\n <li\r\n *ngFor=\"let choice of selectedAttribute?.choices; let i = index\"\r\n #ulElement\r\n >\r\n <app-cs-checkbox\r\n [ngValue]=\"choice.is_selected\"\r\n (ngValueChange)=\"selectAttributes(i, $event)\"\r\n >\r\n <ul class=\"add-risk-rc-name\" #listBlock>\r\n <!-- [style.max-width.px]=\"blockWidth / rc.rc_name\" -->\r\n <li\r\n [appTooltip]=\"choice?.title\"\r\n placement=\"bottom\"\r\n type=\"black\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n >\r\n {{ choice?.title }}\r\n </li>\r\n </ul>\r\n </app-cs-checkbox>\r\n </li>\r\n\r\n <li *ngIf=\"selectedAttribute?.hasOther\">\r\n <app-cs-checkbox\r\n [ngValue]=\"selectedAttribute.is_other_selected\"\r\n (ngValueChange)=\"selectedAttribute['is_other_selected'] = $event\"\r\n >\r\n <ul class=\"add-risk-rc-name\" #listBlock>\r\n <!-- [style.max-width.px]=\"blockWidth / rc.rc_name\" -->\r\n <li\r\n [appTooltip]=\"selectedAttribute?.otherValue\"\r\n placement=\"bottom\"\r\n type=\"black\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n >\r\n {{ selectedAttribute?.otherValue }}\r\n </li>\r\n </ul>\r\n </app-cs-checkbox>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n <app-no-data\r\n *ngIf=\"!selectedAttribute?.choices?.length\"\r\n [noDataImage]=\"\r\n 'https://cdn.v-comply.com/libraries/workflow-engine/assets/workflow/search-data.svg'\r\n \"\r\n [noDataText]=\"'No data to display'\"\r\n ></app-no-data>\r\n\r\n <app-floating-bar\r\n [selectedData]=\"getSelectedValue\"\r\n [displayElementKey]=\"'title'\"\r\n (closeEvent)=\"close(getSelectedValue)\"\r\n (deleteEvent)=\"deleteEvent($event)\"\r\n (closeList)=\"close()\"\r\n [isDisabled]=\"\r\n (getSelectedValue?.length === 0 ||\r\n selectedAttribute?.choices?.length === 0) &&\r\n !selectedAttribute?.is_other_selected\r\n \"\r\n ></app-floating-bar>\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";::-webkit-scrollbar-track{background-color:#fff;position:absolute}::-webkit-scrollbar{width:3px;height:3px;background-color:transparent;position:absolute}::-webkit-scrollbar-thumb{border-radius:3px;background-color:#dbdbdb;position:absolute}::ng-deep .add-risk-rc{position:fixed;inset:0 500px 0 0}::ng-deep .add-risk-rc:before{background:#1e5dd3;content:\"\";position:absolute;top:0;left:0;right:0;width:100%;height:3px}::ng-deep .add-risk-rc-head{background:#fbfbfb;height:2.75rem;border-bottom:1px solid #f1f1f1}::ng-deep .add-risk-rc-body{background:#fff;height:calc(100vh - 2.75rem);padding:2rem}::ng-deep .add-risk-rc-body .search-block{position:relative}::ng-deep .add-risk-rc-body .search-block input{height:2.75rem;line-height:1.5rem;padding:.5rem 1rem .5rem 2.5rem;outline:none;border:1px solid #7475763f;border-radius:.25rem;width:100%;font-size:14px;color:#747576}::ng-deep .add-risk-rc-body .search-block input:focus{border-color:#1e5dd3}::ng-deep .add-risk-rc-body .search-block i{position:absolute;left:1rem;font-size:12px;font-weight:400;top:1rem;pointer-events:none;color:#f1f1f1}::ng-deep .add-risk-rc-body .body-top{display:flex;justify-content:space-between;padding:.5rem 0 0}::ng-deep .add-risk-rc-body .body-top app-cs-checkbox{display:flex}::ng-deep .add-risk-rc-body .body-top app-cs-checkbox label span.value strong{color:#161b2f;font-size:12px;font-weight:600;white-space:nowrap}::ng-deep .add-risk-rc-body ul{padding:0;margin:0}::ng-deep .add-risk-rc-body ul.add-risk-rc-list{display:block;align-items:flex-start;flex-wrap:wrap;height:calc(100vh - 14.5rem);overflow:auto;margin:1rem 0}::ng-deep .add-risk-rc-body ul.add-risk-rc-list.with-selectAll{height:calc(100vh - 16rem)}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li{width:100%;padding:0 0 1rem;list-style:none}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio{display:flex}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox label,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio label{width:100%}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox label span.value,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio label span.value{width:auto;justify-content:flex-start;line-height:18px!important}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox ul.add-risk-rc-name,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio ul.add-risk-rc-name{display:flex;justify-content:flex-start;width:auto;max-width:100%}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox ul.add-risk-rc-name li,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio ul.add-risk-rc-name li{list-style:none;color:#747576;font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:auto;padding:0 .5rem 0 0;max-width:100%}::ng-deep .add-risk-rc-body app-no-data .no-data-wrapper{height:calc(100vh - 200px)}::ng-deep .add-risk-rc.animate{animation:animate-right .2s cubic-bezier(.25,.46,.45,.94) both;z-index:-1}::ng-deep .add-risk-rc .message-footer{background:#1e5dd3;border-radius:5px;margin:0 0 0 30px;width:calc(100% - 60px);position:relative;bottom:0}::ng-deep .add-risk-rc .message-footer .message{padding:15px;display:flex;align-items:flex-start}::ng-deep .add-risk-rc .message-footer .message i{width:auto;font-size:16px;color:#fff}::ng-deep .add-risk-rc .message-footer .message span{color:#fff;font-size:12px;line-height:18px;padding-left:9px;font-weight:300}::ng-deep .add-risk-rc .message-footer .footer{border-top:1px solid #1483ef;display:flex;justify-content:space-between;align-items:center;padding:10px 15px}::ng-deep .add-risk-rc .message-footer .footer span{color:#fff;font-size:14px}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper{display:flex}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper button{width:60px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:11px;font-weight:500;border:1px solid #fff;text-transform:uppercase;border-radius:2px;outline:none;padding:0;margin:0}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper button.outline{background:#1e5dd3;color:#fff}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper button.fill{background:#fff;color:#1e5dd3}@keyframes animate-right{0%{transform:translate(100%)}to{transform:translate(0)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: FloatingBarModule }, { kind: "component", type: FloatingBarComponent, selector: "app-floating-bar", inputs: ["selectedData", "selectedGroups", "displayElementKey", "elementId", "singularText", "pluralText", "showNextButton", "showFrequencyText", "showWorkflow", "workflowText", "currentFrequency", "isDisabled", "workflowList", "selectedWorkflow", "workflowPlaceHolder", "mode", "defaultSelected", "groupsEnabled", "nonRemovableUsersList", "removePosition"], outputs: ["closeEvent", "deleteEvent", "closeList", "deleteGroupEvent", "workflowTypeChanged"] }, { kind: "ngmodule", type: FormgroupModule$1 }, { kind: "component", type: CsCheckboxComponent$1, selector: "app-cs-checkbox", inputs: ["disabled", "ngValue", "value", "readonly", "oneLine"], outputs: ["ngValueChange"] }] });
|
|
5143
|
+
AttributesCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: AttributesCheckboxComponent, isStandalone: true, selector: "lib-attributes-checkbox", inputs: { selectedAttribute: "selectedAttribute" }, outputs: { onSelectedAttributes: "onSelectedAttributes" }, ngImport: i0, template: "<div class=\"add-risk-rc\" [class.animate]=\"animation\">\r\n <div\r\n class=\"add-risk-rc-head vx-d-flex vx-align-center vx-justify-between vx-pl-4 vx-pr-4\"\r\n >\r\n <div\r\n class=\"vx-fs-14 vx-fw-500 vx-label-txt\"\r\n [innerHTML]=\"selectedAttribute?.title\"\r\n ></div>\r\n </div>\r\n <div class=\"add-risk-rc-body\">\r\n <!-- <app-workflow-pagination></app-workflow-pagination> -->\r\n\r\n <div class=\"body-top\" *ngIf=\"selectedAttribute?.choices?.length > 0\">\r\n <app-cs-checkbox\r\n [ngValue]=\"isSelectAll\"\r\n (ngValueChange)=\"selectAll($event)\"\r\n ><strong>{{ isSelectAll ? \"Deselect All\" : \"Select All\" }}</strong>\r\n </app-cs-checkbox>\r\n </div>\r\n\r\n <ul class=\"add-risk-rc-list\">\r\n <ng-container>\r\n <li\r\n *ngFor=\"let choice of selectedAttribute?.choices; let i = index\"\r\n #ulElement\r\n >\r\n <app-cs-checkbox\r\n [ngValue]=\"choice.is_selected\"\r\n (ngValueChange)=\"selectAttributes(i, $event)\"\r\n >\r\n <ul class=\"add-risk-rc-name\" #listBlock>\r\n <!-- [style.max-width.px]=\"blockWidth / rc.rc_name\" -->\r\n <li\r\n [appTooltip]=\"choice?.title\"\r\n placement=\"bottom\"\r\n type=\"black\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n >\r\n {{ choice?.title }}\r\n </li>\r\n </ul>\r\n </app-cs-checkbox>\r\n </li>\r\n\r\n <li *ngIf=\"selectedAttribute?.hasOther\">\r\n <app-cs-checkbox\r\n [ngValue]=\"selectedAttribute.is_other_selected\"\r\n (ngValueChange)=\"selectedAttribute['is_other_selected'] = $event\"\r\n >\r\n <ul class=\"add-risk-rc-name\" #listBlock>\r\n <!-- [style.max-width.px]=\"blockWidth / rc.rc_name\" -->\r\n <li\r\n [appTooltip]=\"selectedAttribute?.otherValue\"\r\n placement=\"bottom\"\r\n type=\"black\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n >\r\n {{ selectedAttribute?.otherValue }}\r\n </li>\r\n </ul>\r\n </app-cs-checkbox>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n <app-no-data\r\n *ngIf=\"!selectedAttribute?.choices?.length\"\r\n [noDataImage]=\"\r\n 'https://cdn.v-comply.com/libraries/workflow-engine/assets/workflow/search-data.svg'\r\n \"\r\n [noDataText]=\"'No data to display'\"\r\n ></app-no-data>\r\n\r\n <app-floating-bar\r\n [selectedData]=\"getSelectedValue\"\r\n [displayElementKey]=\"'title'\"\r\n (closeEvent)=\"close(getSelectedValue)\"\r\n (deleteEvent)=\"deleteEvent($event)\"\r\n (closeList)=\"close()\"\r\n [isDisabled]=\"\r\n getSelectedValue?.length === 0 ||\r\n selectedAttribute?.choices?.length === 0\r\n \"\r\n ></app-floating-bar>\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";::-webkit-scrollbar-track{background-color:#fff;position:absolute}::-webkit-scrollbar{width:3px;height:3px;background-color:transparent;position:absolute}::-webkit-scrollbar-thumb{border-radius:3px;background-color:#dbdbdb;position:absolute}::ng-deep .add-risk-rc{position:fixed;inset:0 500px 0 0}::ng-deep .add-risk-rc:before{background:#1e5dd3;content:\"\";position:absolute;top:0;left:0;right:0;width:100%;height:3px}::ng-deep .add-risk-rc-head{background:#fbfbfb;height:2.75rem;border-bottom:1px solid #f1f1f1}::ng-deep .add-risk-rc-body{background:#fff;height:calc(100vh - 2.75rem);padding:2rem}::ng-deep .add-risk-rc-body .search-block{position:relative}::ng-deep .add-risk-rc-body .search-block input{height:2.75rem;line-height:1.5rem;padding:.5rem 1rem .5rem 2.5rem;outline:none;border:1px solid #7475763f;border-radius:.25rem;width:100%;font-size:14px;color:#747576}::ng-deep .add-risk-rc-body .search-block input:focus{border-color:#1e5dd3}::ng-deep .add-risk-rc-body .search-block i{position:absolute;left:1rem;font-size:12px;font-weight:400;top:1rem;pointer-events:none;color:#f1f1f1}::ng-deep .add-risk-rc-body .body-top{display:flex;justify-content:space-between;padding:.5rem 0 0}::ng-deep .add-risk-rc-body .body-top app-cs-checkbox{display:flex}::ng-deep .add-risk-rc-body .body-top app-cs-checkbox label span.value strong{color:#161b2f;font-size:12px;font-weight:600;white-space:nowrap}::ng-deep .add-risk-rc-body ul{padding:0;margin:0}::ng-deep .add-risk-rc-body ul.add-risk-rc-list{display:block;align-items:flex-start;flex-wrap:wrap;height:calc(100vh - 14.5rem);overflow:auto;margin:1rem 0}::ng-deep .add-risk-rc-body ul.add-risk-rc-list.with-selectAll{height:calc(100vh - 16rem)}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li{width:100%;padding:0 0 1rem;list-style:none}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio{display:flex}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox label,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio label{width:100%}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox label span.value,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio label span.value{width:auto;justify-content:flex-start;line-height:18px!important}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox ul.add-risk-rc-name,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio ul.add-risk-rc-name{display:flex;justify-content:flex-start;width:auto;max-width:100%}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox ul.add-risk-rc-name li,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio ul.add-risk-rc-name li{list-style:none;color:#747576;font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:auto;padding:0 .5rem 0 0;max-width:100%}::ng-deep .add-risk-rc-body app-no-data .no-data-wrapper{height:calc(100vh - 200px)}::ng-deep .add-risk-rc.animate{animation:animate-right .2s cubic-bezier(.25,.46,.45,.94) both;z-index:-1}::ng-deep .add-risk-rc .message-footer{background:#1e5dd3;border-radius:5px;margin:0 0 0 30px;width:calc(100% - 60px);position:relative;bottom:0}::ng-deep .add-risk-rc .message-footer .message{padding:15px;display:flex;align-items:flex-start}::ng-deep .add-risk-rc .message-footer .message i{width:auto;font-size:16px;color:#fff}::ng-deep .add-risk-rc .message-footer .message span{color:#fff;font-size:12px;line-height:18px;padding-left:9px;font-weight:300}::ng-deep .add-risk-rc .message-footer .footer{border-top:1px solid #1483ef;display:flex;justify-content:space-between;align-items:center;padding:10px 15px}::ng-deep .add-risk-rc .message-footer .footer span{color:#fff;font-size:14px}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper{display:flex}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper button{width:60px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:11px;font-weight:500;border:1px solid #fff;text-transform:uppercase;border-radius:2px;outline:none;padding:0;margin:0}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper button.outline{background:#1e5dd3;color:#fff}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper button.fill{background:#fff;color:#1e5dd3}@keyframes animate-right{0%{transform:translate(100%)}to{transform:translate(0)}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: FloatingBarModule }, { kind: "component", type: FloatingBarComponent, selector: "app-floating-bar", inputs: ["selectedData", "selectedGroups", "displayElementKey", "elementId", "singularText", "pluralText", "showNextButton", "showFrequencyText", "showWorkflow", "workflowText", "currentFrequency", "isDisabled", "workflowList", "selectedWorkflow", "workflowPlaceHolder", "mode", "defaultSelected", "groupsEnabled", "nonRemovableUsersList", "removePosition"], outputs: ["closeEvent", "deleteEvent", "closeList", "deleteGroupEvent", "workflowTypeChanged"] }, { kind: "ngmodule", type: FormgroupModule$1 }, { kind: "component", type: CsCheckboxComponent$1, selector: "app-cs-checkbox", inputs: ["disabled", "ngValue", "value", "readonly", "oneLine"], outputs: ["ngValueChange"] }] });
|
|
5153
5144
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: AttributesCheckboxComponent, decorators: [{
|
|
5154
5145
|
type: Component,
|
|
5155
|
-
args: [{ selector: 'lib-attributes-checkbox', standalone: true, imports: [CommonModule, FormsModule, FloatingBarModule, FormgroupModule$1], inputs: ['selectedAttribute'], outputs: ['onSelectedAttributes'], template: "<div class=\"add-risk-rc\" [class.animate]=\"animation\">\r\n <div\r\n class=\"add-risk-rc-head vx-d-flex vx-align-center vx-justify-between vx-pl-4 vx-pr-4\"\r\n >\r\n <div\r\n class=\"vx-fs-14 vx-fw-500 vx-label-txt\"\r\n [innerHTML]=\"selectedAttribute?.title\"\r\n ></div>\r\n </div>\r\n <div class=\"add-risk-rc-body\">\r\n <!-- <app-workflow-pagination></app-workflow-pagination> -->\r\n\r\n <div class=\"body-top\" *ngIf=\"selectedAttribute?.choices?.length > 0\">\r\n <app-cs-checkbox\r\n [ngValue]=\"isSelectAll\"\r\n (ngValueChange)=\"selectAll($event)\"\r\n ><strong>{{ isSelectAll ? \"Deselect All\" : \"Select All\" }}</strong>\r\n </app-cs-checkbox>\r\n </div>\r\n\r\n <ul class=\"add-risk-rc-list\">\r\n <ng-container>\r\n <li\r\n *ngFor=\"let choice of selectedAttribute?.choices; let i = index\"\r\n #ulElement\r\n >\r\n <app-cs-checkbox\r\n [ngValue]=\"choice.is_selected\"\r\n (ngValueChange)=\"selectAttributes(i, $event)\"\r\n >\r\n <ul class=\"add-risk-rc-name\" #listBlock>\r\n <!-- [style.max-width.px]=\"blockWidth / rc.rc_name\" -->\r\n <li\r\n [appTooltip]=\"choice?.title\"\r\n placement=\"bottom\"\r\n type=\"black\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n >\r\n {{ choice?.title }}\r\n </li>\r\n </ul>\r\n </app-cs-checkbox>\r\n </li>\r\n\r\n <li *ngIf=\"selectedAttribute?.hasOther\">\r\n <app-cs-checkbox\r\n [ngValue]=\"selectedAttribute.is_other_selected\"\r\n (ngValueChange)=\"selectedAttribute['is_other_selected'] = $event\"\r\n >\r\n <ul class=\"add-risk-rc-name\" #listBlock>\r\n <!-- [style.max-width.px]=\"blockWidth / rc.rc_name\" -->\r\n <li\r\n [appTooltip]=\"selectedAttribute?.otherValue\"\r\n placement=\"bottom\"\r\n type=\"black\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n >\r\n {{ selectedAttribute?.otherValue }}\r\n </li>\r\n </ul>\r\n </app-cs-checkbox>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n <app-no-data\r\n *ngIf=\"!selectedAttribute?.choices?.length\"\r\n [noDataImage]=\"\r\n 'https://cdn.v-comply.com/libraries/workflow-engine/assets/workflow/search-data.svg'\r\n \"\r\n [noDataText]=\"'No data to display'\"\r\n ></app-no-data>\r\n\r\n <app-floating-bar\r\n [selectedData]=\"getSelectedValue\"\r\n [displayElementKey]=\"'title'\"\r\n (closeEvent)=\"close(getSelectedValue)\"\r\n (deleteEvent)=\"deleteEvent($event)\"\r\n (closeList)=\"close()\"\r\n [isDisabled]=\"\r\n
|
|
5146
|
+
args: [{ selector: 'lib-attributes-checkbox', standalone: true, imports: [CommonModule, FormsModule, FloatingBarModule, FormgroupModule$1], inputs: ['selectedAttribute'], outputs: ['onSelectedAttributes'], template: "<div class=\"add-risk-rc\" [class.animate]=\"animation\">\r\n <div\r\n class=\"add-risk-rc-head vx-d-flex vx-align-center vx-justify-between vx-pl-4 vx-pr-4\"\r\n >\r\n <div\r\n class=\"vx-fs-14 vx-fw-500 vx-label-txt\"\r\n [innerHTML]=\"selectedAttribute?.title\"\r\n ></div>\r\n </div>\r\n <div class=\"add-risk-rc-body\">\r\n <!-- <app-workflow-pagination></app-workflow-pagination> -->\r\n\r\n <div class=\"body-top\" *ngIf=\"selectedAttribute?.choices?.length > 0\">\r\n <app-cs-checkbox\r\n [ngValue]=\"isSelectAll\"\r\n (ngValueChange)=\"selectAll($event)\"\r\n ><strong>{{ isSelectAll ? \"Deselect All\" : \"Select All\" }}</strong>\r\n </app-cs-checkbox>\r\n </div>\r\n\r\n <ul class=\"add-risk-rc-list\">\r\n <ng-container>\r\n <li\r\n *ngFor=\"let choice of selectedAttribute?.choices; let i = index\"\r\n #ulElement\r\n >\r\n <app-cs-checkbox\r\n [ngValue]=\"choice.is_selected\"\r\n (ngValueChange)=\"selectAttributes(i, $event)\"\r\n >\r\n <ul class=\"add-risk-rc-name\" #listBlock>\r\n <!-- [style.max-width.px]=\"blockWidth / rc.rc_name\" -->\r\n <li\r\n [appTooltip]=\"choice?.title\"\r\n placement=\"bottom\"\r\n type=\"black\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n >\r\n {{ choice?.title }}\r\n </li>\r\n </ul>\r\n </app-cs-checkbox>\r\n </li>\r\n\r\n <li *ngIf=\"selectedAttribute?.hasOther\">\r\n <app-cs-checkbox\r\n [ngValue]=\"selectedAttribute.is_other_selected\"\r\n (ngValueChange)=\"selectedAttribute['is_other_selected'] = $event\"\r\n >\r\n <ul class=\"add-risk-rc-name\" #listBlock>\r\n <!-- [style.max-width.px]=\"blockWidth / rc.rc_name\" -->\r\n <li\r\n [appTooltip]=\"selectedAttribute?.otherValue\"\r\n placement=\"bottom\"\r\n type=\"black\"\r\n delay=\"0\"\r\n [tooltipMandatory]=\"true\"\r\n >\r\n {{ selectedAttribute?.otherValue }}\r\n </li>\r\n </ul>\r\n </app-cs-checkbox>\r\n </li>\r\n </ng-container>\r\n </ul>\r\n <app-no-data\r\n *ngIf=\"!selectedAttribute?.choices?.length\"\r\n [noDataImage]=\"\r\n 'https://cdn.v-comply.com/libraries/workflow-engine/assets/workflow/search-data.svg'\r\n \"\r\n [noDataText]=\"'No data to display'\"\r\n ></app-no-data>\r\n\r\n <app-floating-bar\r\n [selectedData]=\"getSelectedValue\"\r\n [displayElementKey]=\"'title'\"\r\n (closeEvent)=\"close(getSelectedValue)\"\r\n (deleteEvent)=\"deleteEvent($event)\"\r\n (closeList)=\"close()\"\r\n [isDisabled]=\"\r\n getSelectedValue?.length === 0 ||\r\n selectedAttribute?.choices?.length === 0\r\n \"\r\n ></app-floating-bar>\r\n </div>\r\n</div>\r\n", styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";@import\"https://cdn.v-comply.com/design-system/css/display/display.css\";@import\"https://cdn.v-comply.com/design-system/css/alignment/alignment.css\";@import\"https://cdn.v-comply.com/design-system/css/text/text.css\";@import\"https://cdn.v-comply.com/design-system/css/color/color.css\";@import\"https://cdn.v-comply.com/design-system/css/width/width.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-top.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-left.css\";@import\"https://cdn.v-comply.com/design-system/css/margin/margin-right.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-top.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-bottom.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-left.css\";@import\"https://cdn.v-comply.com/design-system/css/padding/padding-right.css\";::-webkit-scrollbar-track{background-color:#fff;position:absolute}::-webkit-scrollbar{width:3px;height:3px;background-color:transparent;position:absolute}::-webkit-scrollbar-thumb{border-radius:3px;background-color:#dbdbdb;position:absolute}::ng-deep .add-risk-rc{position:fixed;inset:0 500px 0 0}::ng-deep .add-risk-rc:before{background:#1e5dd3;content:\"\";position:absolute;top:0;left:0;right:0;width:100%;height:3px}::ng-deep .add-risk-rc-head{background:#fbfbfb;height:2.75rem;border-bottom:1px solid #f1f1f1}::ng-deep .add-risk-rc-body{background:#fff;height:calc(100vh - 2.75rem);padding:2rem}::ng-deep .add-risk-rc-body .search-block{position:relative}::ng-deep .add-risk-rc-body .search-block input{height:2.75rem;line-height:1.5rem;padding:.5rem 1rem .5rem 2.5rem;outline:none;border:1px solid #7475763f;border-radius:.25rem;width:100%;font-size:14px;color:#747576}::ng-deep .add-risk-rc-body .search-block input:focus{border-color:#1e5dd3}::ng-deep .add-risk-rc-body .search-block i{position:absolute;left:1rem;font-size:12px;font-weight:400;top:1rem;pointer-events:none;color:#f1f1f1}::ng-deep .add-risk-rc-body .body-top{display:flex;justify-content:space-between;padding:.5rem 0 0}::ng-deep .add-risk-rc-body .body-top app-cs-checkbox{display:flex}::ng-deep .add-risk-rc-body .body-top app-cs-checkbox label span.value strong{color:#161b2f;font-size:12px;font-weight:600;white-space:nowrap}::ng-deep .add-risk-rc-body ul{padding:0;margin:0}::ng-deep .add-risk-rc-body ul.add-risk-rc-list{display:block;align-items:flex-start;flex-wrap:wrap;height:calc(100vh - 14.5rem);overflow:auto;margin:1rem 0}::ng-deep .add-risk-rc-body ul.add-risk-rc-list.with-selectAll{height:calc(100vh - 16rem)}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li{width:100%;padding:0 0 1rem;list-style:none}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio{display:flex}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox label,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio label{width:100%}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox label span.value,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio label span.value{width:auto;justify-content:flex-start;line-height:18px!important}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox ul.add-risk-rc-name,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio ul.add-risk-rc-name{display:flex;justify-content:flex-start;width:auto;max-width:100%}::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-checkbox ul.add-risk-rc-name li,::ng-deep .add-risk-rc-body ul.add-risk-rc-list li app-cs-radio ul.add-risk-rc-name li{list-style:none;color:#747576;font-size:12px;font-weight:400;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;width:auto;padding:0 .5rem 0 0;max-width:100%}::ng-deep .add-risk-rc-body app-no-data .no-data-wrapper{height:calc(100vh - 200px)}::ng-deep .add-risk-rc.animate{animation:animate-right .2s cubic-bezier(.25,.46,.45,.94) both;z-index:-1}::ng-deep .add-risk-rc .message-footer{background:#1e5dd3;border-radius:5px;margin:0 0 0 30px;width:calc(100% - 60px);position:relative;bottom:0}::ng-deep .add-risk-rc .message-footer .message{padding:15px;display:flex;align-items:flex-start}::ng-deep .add-risk-rc .message-footer .message i{width:auto;font-size:16px;color:#fff}::ng-deep .add-risk-rc .message-footer .message span{color:#fff;font-size:12px;line-height:18px;padding-left:9px;font-weight:300}::ng-deep .add-risk-rc .message-footer .footer{border-top:1px solid #1483ef;display:flex;justify-content:space-between;align-items:center;padding:10px 15px}::ng-deep .add-risk-rc .message-footer .footer span{color:#fff;font-size:14px}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper{display:flex}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper button{width:60px;height:32px;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:11px;font-weight:500;border:1px solid #fff;text-transform:uppercase;border-radius:2px;outline:none;padding:0;margin:0}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper button.outline{background:#1e5dd3;color:#fff}::ng-deep .add-risk-rc .message-footer .footer .button-wrapper button.fill{background:#fff;color:#1e5dd3}@keyframes animate-right{0%{transform:translate(100%)}to{transform:translate(0)}}\n"] }]
|
|
5156
5147
|
}], ctorParameters: function () { return []; } });
|
|
5157
5148
|
|
|
5158
5149
|
class GetSelectedValuePipe {
|
|
@@ -5197,15 +5188,10 @@ class IsAttributesValidPipe {
|
|
|
5197
5188
|
else if (attribute.type === 'checkbox' ||
|
|
5198
5189
|
attribute.type === 'dropdown') {
|
|
5199
5190
|
let isChoiceSelected = false;
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
for (const choice of attribute.choices) {
|
|
5205
|
-
if (choice.is_selected) {
|
|
5206
|
-
isChoiceSelected = true;
|
|
5207
|
-
break;
|
|
5208
|
-
}
|
|
5191
|
+
for (const choice of attribute.choices) {
|
|
5192
|
+
if (choice.is_selected) {
|
|
5193
|
+
isChoiceSelected = true;
|
|
5194
|
+
break;
|
|
5209
5195
|
}
|
|
5210
5196
|
}
|
|
5211
5197
|
if (!isChoiceSelected) {
|
|
@@ -5216,6 +5202,9 @@ class IsAttributesValidPipe {
|
|
|
5216
5202
|
else {
|
|
5217
5203
|
// isValid = true;
|
|
5218
5204
|
}
|
|
5205
|
+
if (attribute.type === 'single-textbox') {
|
|
5206
|
+
console.log('isValid', isValid, attribute);
|
|
5207
|
+
}
|
|
5219
5208
|
return isValid;
|
|
5220
5209
|
}
|
|
5221
5210
|
}
|
|
@@ -5449,11 +5438,12 @@ class GrcObjectContainerComponent {
|
|
|
5449
5438
|
this.hideMoreOption = [];
|
|
5450
5439
|
this.authService.getUserInfo().subscribe((res) => {
|
|
5451
5440
|
var _a;
|
|
5452
|
-
const
|
|
5453
|
-
if ((
|
|
5441
|
+
const riskPermission = res === null || res === void 0 ? void 0 : res.roleActions[(_a = res === null || res === void 0 ? void 0 : res.roleActions) === null || _a === void 0 ? void 0 : _a.findIndex((ele) => ele.moduleName == 'risk')];
|
|
5442
|
+
if ((riskPermission === null || riskPermission === void 0 ? void 0 : riskPermission.isActive) !== 1) {
|
|
5454
5443
|
this.hideMoreOption.push('LINK_RISK_CATEGORIES_RISKS');
|
|
5455
5444
|
}
|
|
5456
5445
|
this.hideElementsFromMoreOptions.emit(this.hideMoreOption);
|
|
5446
|
+
console.log('riskPermission ==>', riskPermission);
|
|
5457
5447
|
});
|
|
5458
5448
|
}
|
|
5459
5449
|
ngOnDestroy() {
|
|
@@ -5685,8 +5675,6 @@ class GrcObjectContainerComponent {
|
|
|
5685
5675
|
item.label = (_b = OBJECT_LABEL[(_a = item === null || item === void 0 ? void 0 : item.label) === null || _a === void 0 ? void 0 : _a.toUpperCase()]) !== null && _b !== void 0 ? _b : item === null || item === void 0 ? void 0 : item.label;
|
|
5686
5676
|
return item;
|
|
5687
5677
|
});
|
|
5688
|
-
this.ORIGINAL_GRC_ATTRIBUTES = JSON.parse(JSON.stringify(this.OBJECT_TYPE));
|
|
5689
|
-
console.log('this.ORIGINAL_GRC_ATTRIBUTES', this.ORIGINAL_GRC_ATTRIBUTES);
|
|
5690
5678
|
if (this.MODE === 'EDIT') {
|
|
5691
5679
|
this.OBJECT_TYPE[this.grcType].attributes =
|
|
5692
5680
|
this.grcPayload.attributes;
|
|
@@ -5862,8 +5850,6 @@ class GrcObjectContainerComponent {
|
|
|
5862
5850
|
this.isFormSubmitted = false;
|
|
5863
5851
|
this.isDuplicateName = false;
|
|
5864
5852
|
this.uiKitService.isSmileyOn = false;
|
|
5865
|
-
this.OBJECT_TYPE = JSON.parse(JSON.stringify(this.ORIGINAL_GRC_ATTRIBUTES));
|
|
5866
|
-
this.setDefaultGRCObjectType();
|
|
5867
5853
|
this.resetListObjectSelection();
|
|
5868
5854
|
this.mapUserList({ data: this.listObject.OWNER.data.assigneesList });
|
|
5869
5855
|
}
|
|
@@ -30337,7 +30323,7 @@ class MoreOptionComponent {
|
|
|
30337
30323
|
tooltipTitle: 'LINK RISKS',
|
|
30338
30324
|
tooltipMessage: `This option lets you link a GRC Object with related risks.`,
|
|
30339
30325
|
checked: false,
|
|
30340
|
-
hidden:
|
|
30326
|
+
hidden: true,
|
|
30341
30327
|
code: 'LINK_RISK_CATEGORIES_RISKS',
|
|
30342
30328
|
},
|
|
30343
30329
|
{
|