qms-angular 1.0.94 → 1.0.97
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 +143 -55
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/components/breadcrumb/breadcrumb-item.directive.js +4 -6
- package/esm2015/lib/components/breadcrumb/breadcrumb.js +34 -19
- package/esm2015/lib/components/breadcrumb/breadcrumb.module.js +6 -2
- package/esm2015/lib/components/breadcrumb/enum/breadcrumb-type.js +7 -0
- package/esm2015/lib/components/breadcrumb/model/breadcrumb-node.model.js +1 -1
- package/esm2015/lib/components/comment/comment.js +1 -1
- package/esm2015/lib/components/related/list-other-related/list-related.component.js +3 -3
- package/esm2015/lib/components/reports/qms-report-cover-portrait/qms-report-cover-portrait.component.js +3 -20
- package/esm2015/lib/directives/chip-input/chip-input-select-dropdown.directive.js +4 -4
- package/esm2015/lib/model/en.js +3 -1
- package/esm2015/lib/model/no.js +3 -1
- package/esm2015/lib/qms-angular.module.js +4 -4
- package/esm2015/lib/utils/qms-mfe.utils.js +56 -0
- package/esm2015/public-api.js +4 -1
- package/fesm2015/qms-angular.js +114 -52
- package/fesm2015/qms-angular.js.map +1 -1
- package/lib/components/breadcrumb/breadcrumb.d.ts +10 -5
- package/lib/components/breadcrumb/enum/breadcrumb-type.d.ts +5 -0
- package/lib/components/reports/qms-report-cover-portrait/qms-report-cover-portrait.component.d.ts +0 -2
- package/lib/directives/chip-input/chip-input-select-dropdown.directive.d.ts +1 -1
- package/lib/model/en.d.ts +2 -0
- package/lib/model/no.d.ts +2 -0
- package/lib/utils/qms-mfe.utils.d.ts +18 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/qms-angular.metadata.json +1 -1
- package/src/assets/qms-ckeditor-plugin/package-lock.json +601 -151
- package/src/lib/components/breadcrumb/breadcrumb.scss +174 -79
- package/src/lib/components/related/list-other-related/list-related.component.scss +32 -11
- package/src/lib/components/reports/qms-report-cover-portrait/qms-report-cover-portrait.component.scss +29 -33
@@ -94,6 +94,8 @@
|
|
94
94
|
"REPORT_FOR": "Report for",
|
95
95
|
"SELECTED": "SELECTED",
|
96
96
|
"CHOOSE_ALL": "Choose all",
|
97
|
+
"BREADCRUMB": "Breadcrumb",
|
98
|
+
"NAVIGATE_TO": "Navigate to",
|
97
99
|
"ERROR": {
|
98
100
|
"SELECT_DANGER": "You must select one or more events"
|
99
101
|
},
|
@@ -455,6 +457,8 @@
|
|
455
457
|
"REPORT_FOR": "Rapport for",
|
456
458
|
"SELECTED": "Valgte",
|
457
459
|
"CHOOSE_ALL": "Velg alle",
|
460
|
+
"BREADCRUMB": "Brødsmuler",
|
461
|
+
"NAVIGATE_TO": "Navigere til",
|
458
462
|
"ERROR": {
|
459
463
|
"SELECT_DANGER": "Du må velge en eller flere hendelser"
|
460
464
|
},
|
@@ -1133,23 +1137,23 @@
|
|
1133
1137
|
{ type: i0.ElementRef }
|
1134
1138
|
]; };
|
1135
1139
|
|
1136
|
-
var
|
1137
|
-
function
|
1140
|
+
var QMSChipInputSelectDropDownDirective = /** @class */ (function () {
|
1141
|
+
function QMSChipInputSelectDropDownDirective(ele) {
|
1138
1142
|
this.ele = ele;
|
1139
1143
|
}
|
1140
|
-
|
1144
|
+
QMSChipInputSelectDropDownDirective.prototype.ngOnInit = function () {
|
1141
1145
|
if (this.ele) {
|
1142
1146
|
this.ele.nativeElement.classList.add('qms-chip-input-dropdown');
|
1143
1147
|
}
|
1144
1148
|
};
|
1145
|
-
return
|
1149
|
+
return QMSChipInputSelectDropDownDirective;
|
1146
1150
|
}());
|
1147
|
-
|
1151
|
+
QMSChipInputSelectDropDownDirective.decorators = [
|
1148
1152
|
{ type: i0.Directive, args: [{
|
1149
1153
|
selector: '[qms-chip-input-dropdown]',
|
1150
1154
|
},] }
|
1151
1155
|
];
|
1152
|
-
|
1156
|
+
QMSChipInputSelectDropDownDirective.ctorParameters = function () { return [
|
1153
1157
|
{ type: i0.ElementRef }
|
1154
1158
|
]; };
|
1155
1159
|
|
@@ -3762,7 +3766,7 @@
|
|
3762
3766
|
DateFormatPipe,
|
3763
3767
|
QMSChipInputDirective,
|
3764
3768
|
QMSChipInputSelectFieldDirective,
|
3765
|
-
|
3769
|
+
QMSChipInputSelectDropDownDirective,
|
3766
3770
|
QMSChipInputSelectTriggerDirective,
|
3767
3771
|
QMSChipInputChipListDirective,
|
3768
3772
|
ScrollToSelectedDirective,
|
@@ -3814,7 +3818,7 @@
|
|
3814
3818
|
DateFormatPipe,
|
3815
3819
|
QMSChipInputDirective,
|
3816
3820
|
QMSChipInputSelectFieldDirective,
|
3817
|
-
|
3821
|
+
QMSChipInputSelectDropDownDirective,
|
3818
3822
|
QMSChipInputSelectTriggerDirective,
|
3819
3823
|
QMSChipInputChipListDirective,
|
3820
3824
|
ScrollToSelectedDirective,
|
@@ -3842,6 +3846,86 @@
|
|
3842
3846
|
},] }
|
3843
3847
|
];
|
3844
3848
|
|
3849
|
+
exports.FileType = void 0;
|
3850
|
+
(function (FileType) {
|
3851
|
+
FileType["Component"] = "Component";
|
3852
|
+
FileType["Module"] = "Module";
|
3853
|
+
FileType["Css"] = "CSS";
|
3854
|
+
FileType["Html"] = "Html";
|
3855
|
+
})(exports.FileType || (exports.FileType = {}));
|
3856
|
+
var MfeUtil = /** @class */ (function () {
|
3857
|
+
function MfeUtil() {
|
3858
|
+
var _this = this;
|
3859
|
+
// holds list of loaded script
|
3860
|
+
this.fileMap = {};
|
3861
|
+
this.findExposedModule = function (uniqueName, exposedFile) { return __awaiter(_this, void 0, void 0, function () {
|
3862
|
+
var Module, container, factory;
|
3863
|
+
return __generator(this, function (_a) {
|
3864
|
+
switch (_a.label) {
|
3865
|
+
case 0:
|
3866
|
+
// Initializes the shared scope. Fills it with known provided modules from this build and all remotes
|
3867
|
+
return [4 /*yield*/, __webpack_init_sharing__('default')];
|
3868
|
+
case 1:
|
3869
|
+
// Initializes the shared scope. Fills it with known provided modules from this build and all remotes
|
3870
|
+
_a.sent();
|
3871
|
+
container = window[uniqueName];
|
3872
|
+
// Initialize the container, it may provide shared modules
|
3873
|
+
return [4 /*yield*/, container.init(__webpack_share_scopes__.default)];
|
3874
|
+
case 2:
|
3875
|
+
// Initialize the container, it may provide shared modules
|
3876
|
+
_a.sent();
|
3877
|
+
return [4 /*yield*/, container.get(exposedFile)];
|
3878
|
+
case 3:
|
3879
|
+
factory = _a.sent();
|
3880
|
+
Module = factory();
|
3881
|
+
return [2 /*return*/, Module];
|
3882
|
+
}
|
3883
|
+
});
|
3884
|
+
}); };
|
3885
|
+
}
|
3886
|
+
MfeUtil.prototype.loadRemoteFile = function (loadRemoteModuleOptions) {
|
3887
|
+
return __awaiter(this, void 0, void 0, function () {
|
3888
|
+
return __generator(this, function (_a) {
|
3889
|
+
switch (_a.label) {
|
3890
|
+
case 0: return [4 /*yield*/, this.loadRemoteEntry(loadRemoteModuleOptions.remoteEntry)];
|
3891
|
+
case 1:
|
3892
|
+
_a.sent();
|
3893
|
+
return [4 /*yield*/, this.findExposedModule(loadRemoteModuleOptions.remoteName, loadRemoteModuleOptions.exposedFile)];
|
3894
|
+
case 2: return [2 /*return*/, _a.sent()];
|
3895
|
+
}
|
3896
|
+
});
|
3897
|
+
});
|
3898
|
+
};
|
3899
|
+
MfeUtil.prototype.loadRemoteEntry = function (remoteEntry) {
|
3900
|
+
return __awaiter(this, void 0, void 0, function () {
|
3901
|
+
var _this = this;
|
3902
|
+
return __generator(this, function (_a) {
|
3903
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
3904
|
+
var scriptId = "" + remoteEntry.substring(remoteEntry.lastIndexOf('/') + 1);
|
3905
|
+
var getScript = document.getElementById(scriptId);
|
3906
|
+
if (getScript || _this.fileMap[remoteEntry]) {
|
3907
|
+
resolve();
|
3908
|
+
return;
|
3909
|
+
}
|
3910
|
+
var script = document.createElement("script");
|
3911
|
+
script.src = remoteEntry;
|
3912
|
+
script.id = scriptId;
|
3913
|
+
script.onerror = function (error) {
|
3914
|
+
console.error(error, 'unable to load remote entry, show error or something');
|
3915
|
+
reject();
|
3916
|
+
};
|
3917
|
+
script.onload = function () {
|
3918
|
+
_this.fileMap[remoteEntry] = true;
|
3919
|
+
resolve(); // window is the global namespace
|
3920
|
+
};
|
3921
|
+
document.body.append(script);
|
3922
|
+
})];
|
3923
|
+
});
|
3924
|
+
});
|
3925
|
+
};
|
3926
|
+
return MfeUtil;
|
3927
|
+
}());
|
3928
|
+
|
3845
3929
|
var QMSRangeSliderLockUpDirective = /** @class */ (function () {
|
3846
3930
|
function QMSRangeSliderLockUpDirective(ele) {
|
3847
3931
|
this.ele = ele;
|
@@ -4591,11 +4675,9 @@
|
|
4591
4675
|
this.showTooltipChange = new i0.EventEmitter();
|
4592
4676
|
}
|
4593
4677
|
QMSBreadcrumbItemDirective.prototype.ngAfterViewInit = function () {
|
4594
|
-
if (this.breadcrumbItemText && this.showTooltip) {
|
4595
|
-
this.breadcrumbItemText.nativeElement.classList.add('qms-breadcrumb-item-
|
4596
|
-
|
4597
|
-
this.showTooltipChange.emit(true);
|
4598
|
-
}
|
4678
|
+
if (this.breadcrumbItemText && this.showTooltip && this.breadcrumbItemText.nativeElement.innerText.length > 30) {
|
4679
|
+
this.breadcrumbItemText.nativeElement.classList.add('qms-breadcrumb-item-overflow');
|
4680
|
+
this.showTooltipChange.emit(true);
|
4599
4681
|
}
|
4600
4682
|
};
|
4601
4683
|
QMSBreadcrumbItemDirective.prototype.ngOnChanges = function () {
|
@@ -4632,6 +4714,13 @@
|
|
4632
4714
|
breadcrumbItemText: [{ type: i0.ContentChild, args: ["breadcrumbItemText", { static: false },] }]
|
4633
4715
|
};
|
4634
4716
|
|
4717
|
+
exports.BreadcrumbType = void 0;
|
4718
|
+
(function (BreadcrumbType) {
|
4719
|
+
BreadcrumbType["normal"] = "normal";
|
4720
|
+
BreadcrumbType["table"] = "table";
|
4721
|
+
BreadcrumbType["mobile"] = "mobile";
|
4722
|
+
})(exports.BreadcrumbType || (exports.BreadcrumbType = {}));
|
4723
|
+
|
4635
4724
|
var DropdownBreadCrumbNodeWidth;
|
4636
4725
|
(function (DropdownBreadCrumbNodeWidth) {
|
4637
4726
|
DropdownBreadCrumbNodeWidth[DropdownBreadCrumbNodeWidth["NORMAL"] = 66] = "NORMAL";
|
@@ -4639,23 +4728,45 @@
|
|
4639
4728
|
})(DropdownBreadCrumbNodeWidth || (DropdownBreadCrumbNodeWidth = {}));
|
4640
4729
|
|
4641
4730
|
var QMSBreadcrumb = /** @class */ (function () {
|
4642
|
-
function QMSBreadcrumb(ele, iconRegistry, cdRef, sanitizer) {
|
4731
|
+
function QMSBreadcrumb(ele, iconRegistry, cdRef, sanitizer, trans) {
|
4643
4732
|
this.ele = ele;
|
4644
4733
|
this.iconRegistry = iconRegistry;
|
4645
4734
|
this.cdRef = cdRef;
|
4646
4735
|
this.sanitizer = sanitizer;
|
4736
|
+
this.trans = trans;
|
4737
|
+
this.type = exports.BreadcrumbType.normal;
|
4647
4738
|
this.numDisplayItem = 0;
|
4648
4739
|
this.onlyItem = false;
|
4649
4740
|
this.disabledLastItem = true;
|
4650
4741
|
this.onItemClick = new i0.EventEmitter();
|
4651
|
-
this.dropdownNodes = [];
|
4652
4742
|
this.isOverflow = false;
|
4743
|
+
this.dropdownNodes = [];
|
4744
|
+
this.sideNavNodes = [];
|
4653
4745
|
this.itemSpace = DropdownBreadCrumbNodeWidth.NORMAL; // width of dropdown node in normal view
|
4654
4746
|
this.isMobileType = false;
|
4655
4747
|
iconRegistry.addSvgIconLiteral('breadcrumb_dropdown', sanitizer.bypassSecurityTrustHtml(BREADCRUMB_DROPDOWN_ICON));
|
4656
4748
|
}
|
4749
|
+
QMSBreadcrumb.prototype.ngOnChanges = function (changes) {
|
4750
|
+
if (changes.nodes && this.breadCrumbNodes && JSON.stringify(changes.nodes.currentValue) !== JSON.stringify(changes.nodes.previousValue)) {
|
4751
|
+
this.nodes = __spreadArray([], __read(changes.nodes.currentValue));
|
4752
|
+
this.initBreadCrumb();
|
4753
|
+
this.buildBreadcrumb();
|
4754
|
+
}
|
4755
|
+
};
|
4756
|
+
QMSBreadcrumb.prototype.ngOnInit = function () {
|
4757
|
+
var _this = this;
|
4758
|
+
this.trans.getLanguageSubject$.pipe().subscribe(function (res) {
|
4759
|
+
if (res) {
|
4760
|
+
_this.LANG = _this.trans.getObjectLang(res);
|
4761
|
+
}
|
4762
|
+
});
|
4763
|
+
this.isMobileType = (this.type == exports.BreadcrumbType.mobile);
|
4764
|
+
this.itemIconType = ItemIconType;
|
4765
|
+
this.initBreadCrumb();
|
4766
|
+
};
|
4657
4767
|
QMSBreadcrumb.prototype.ngAfterViewInit = function () {
|
4658
4768
|
this.buildBreadcrumb();
|
4769
|
+
this.cdRef.detectChanges();
|
4659
4770
|
};
|
4660
4771
|
QMSBreadcrumb.prototype.checkOverflow = function (width) {
|
4661
4772
|
var _this = this;
|
@@ -4682,7 +4793,8 @@
|
|
4682
4793
|
nodeWidths.shift();
|
4683
4794
|
nodeWidths.forEach(function (eleWidth, index) {
|
4684
4795
|
if (currentWidth > screenWidth_1) {
|
4685
|
-
_this.itemNodes[index].isShow = index ==
|
4796
|
+
_this.itemNodes[index].isShow = index == nodeWidths.length - 1 ? true : false;
|
4797
|
+
_this.itemNodes[index].isOverflow = index == nodeWidths.length - 1 ? false : _this.itemNodes[index].isOverflow;
|
4686
4798
|
_this.dropdownNodes.push(_this.itemNodes[index]);
|
4687
4799
|
currentWidth -= (eleWidth);
|
4688
4800
|
}
|
@@ -4690,17 +4802,6 @@
|
|
4690
4802
|
this.dropdownNodes = this.dropdownNodes.reverse();
|
4691
4803
|
}
|
4692
4804
|
};
|
4693
|
-
QMSBreadcrumb.prototype.ngOnChanges = function (changes) {
|
4694
|
-
if (changes.nodes && this.breadCrumbNodes && JSON.stringify(changes.nodes.currentValue) !== JSON.stringify(changes.nodes.previousValue)) {
|
4695
|
-
this.nodes = __spreadArray([], __read(changes.nodes.currentValue));
|
4696
|
-
this.initBreadCrumb();
|
4697
|
-
this.buildBreadcrumb();
|
4698
|
-
}
|
4699
|
-
};
|
4700
|
-
QMSBreadcrumb.prototype.ngOnInit = function () {
|
4701
|
-
this.itemIconType = ItemIconType;
|
4702
|
-
this.initBreadCrumb();
|
4703
|
-
};
|
4704
4805
|
QMSBreadcrumb.prototype.initBreadCrumb = function () {
|
4705
4806
|
var _this = this;
|
4706
4807
|
if (this.nodes && this.nodes.length > 0) {
|
@@ -4714,8 +4815,9 @@
|
|
4714
4815
|
this.itemNodes = this.nodes.slice(1);
|
4715
4816
|
}
|
4716
4817
|
else {
|
4717
|
-
this.isMobileType = true;
|
4718
4818
|
this.previousNode = this.nodes[this.nodes.length >= 2 ? this.nodes.length - 2 : 0];
|
4819
|
+
this.sideNavNodes = [];
|
4820
|
+
this.sideNavNodes = this.nodes.length >= 2 ? __spreadArray([], __read(this.nodes)) : [];
|
4719
4821
|
}
|
4720
4822
|
}
|
4721
4823
|
if (this.type === 'table') {
|
@@ -4786,16 +4888,17 @@
|
|
4786
4888
|
QMSBreadcrumb.decorators = [
|
4787
4889
|
{ type: i0.Component, args: [{
|
4788
4890
|
selector: 'qms-breadcrumb',
|
4789
|
-
template: "<div>\r\n <div class=\"breadcrumb-container\" *ngIf=\"!isMobileType\">\r\n <!-- Home -->\r\n <span\r\n qms-breadcrumb-item\r\n *ngIf=\"!isOverflow || type=='table'\"\r\n [(showTooltip)]=\"homeNode.isOverflow\"\r\n >\r\n <mat-icon\r\n *ngIf=\"homeNode.displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n >\r\n {{ homeNode.itemIcon }}\r\n </mat-icon>\r\n <mat-icon\r\n *ngIf=\"homeNode.displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n [svgIcon]=\"homeNode.itemIconSvg\"\r\n >\r\n </mat-icon>\r\n <img\r\n *ngIf=\"homeNode.displayType === itemIconType.path\"\r\n class=\"mat-icon item-icon\"\r\n [src]=\"homeNode.itemIconPath\"\r\n />\r\n <img\r\n *ngIf=\"homeNode.displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(homeNode)\"\r\n />\r\n <div\r\n [qms-tool-tip]=\"homeNode.name\"\r\n [showToolTip]=\"homeNode.isOverflow\"\r\n #breadcrumbItemText\r\n mode=\"dark\"\r\n (click)=\"onItemSelect(homeNode)\"\r\n >\r\n {{homeNode.name}}\r\n </div>\r\n <mat-icon *ngIf=\"!isOverflow && type !=='table'\">keyboard_arrow_right</mat-icon>\r\n <span\r\n *ngIf=\"itemNodes.length && type=='table'\"\r\n qms-breadcrumb-direction-icon\r\n >\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </span>\r\n\r\n <!-- Dropdown not table -->\r\n <span qms-breadcrumb-item *ngIf=\"isOverflow && type!='table'\">\r\n <button\r\n qms-btn-icon\r\n color=\"light\"\r\n class=\"breadcrumb__dropdown-btn\"\r\n [matMenuTriggerFor]=\"bodyMediumMenu\"\r\n >\r\n <mat-icon svgIcon=\"breadcrumb_dropdown\"></mat-icon>\r\n </button>\r\n <mat-menu\r\n #bodyMediumMenu=\"matMenu\"\r\n yPosition=\"below\"\r\n class=\"qms-breadcrumb-menu\"\r\n >\r\n <div (click)=\"$event.stopPropagation()\">\r\n <div\r\n qms-menu-item\r\n mat-menu-item\r\n disableRipple\r\n *ngFor=\"let item of dropdownNodes\"\r\n (keydown.enter)=\"onKeyPressed($event)\"\r\n (click)=\"onItemSelect(item)\"\r\n >\r\n <div #menuItemContent qms-expansion-header>\r\n <div qms-list-header>\r\n <div qms-line color=\"default-subtitle\">{{item.name}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-menu>\r\n\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </span>\r\n\r\n <!-- Dropdown table -->\r\n <span qms-breadcrumb-item *ngIf=\"isOverflow && type=='table'\">\r\n <button qms-btn-icon color=\"light\" [matMenuTriggerFor]=\"bodyMediumMenu\">\r\n <mat-icon>more_horiz</mat-icon>\r\n </button>\r\n <mat-menu\r\n #bodyMediumMenu=\"matMenu\"\r\n yPosition=\"below\"\r\n class=\"qms-breadcrumb-menu\"\r\n >\r\n <div (click)=\"$event.stopPropagation()\">\r\n <div\r\n qms-menu-item\r\n mat-menu-item\r\n disableRipple\r\n *ngFor=\"let item of dropdownNodes\"\r\n (keydown.enter)=\"onKeyPressed($event)\"\r\n (click)=\"onItemSelect(item)\"\r\n >\r\n <div #menuItemContent qms-expansion-header>\r\n <div qms-list-header>\r\n <div qms-line color=\"default-subtitle\">{{item.name}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-menu>\r\n\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </span>\r\n <!-- Item list -->\r\n <span\r\n qms-breadcrumb-item\r\n *ngFor=\"let item of itemNodes;let i=index\"\r\n [isLastItem]=\"i === itemNodes.length - 1\"\r\n [(showTooltip)]=\"item.isOverflow\"\r\n >\r\n <mat-icon\r\n *ngIf=\"item.displayType === itemIconType.name && item.isShow\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n >\r\n {{ item.itemIcon }}\r\n </mat-icon>\r\n <mat-icon\r\n *ngIf=\"item.displayType === itemIconType.svg && item.isShow\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n [svgIcon]=\"item.itemIconSvg\"\r\n >\r\n </mat-icon>\r\n <img\r\n *ngIf=\"item.displayType === itemIconType.path && item.isShow\"\r\n class=\"mat-icon item-icon\"\r\n [src]=\"item.itemIconPath\"\r\n />\r\n <img\r\n *ngIf=\"item.displayType === itemIconType.base64 && item.isShow\"\r\n class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(item)\"\r\n />\r\n <div\r\n [qms-tool-tip]=\"item.name\"\r\n [showToolTip]=\"item.isOverflow\"\r\n #breadcrumbItemText\r\n mode=\"dark\"\r\n *ngIf=\"item.isShow\"\r\n (click)=\"onItemSelect(item, i == itemNodes.length - 1);\"\r\n >\r\n {{item.name}}\r\n </div>\r\n <span\r\n qms-breadcrumb-direction-icon\r\n *ngIf=\"item.isShow && i !== itemNodes.length - 1\"\r\n >\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </span>\r\n </div>\r\n\r\n <div class=\"breadcrumb-container\" *ngIf=\"isMobileType\">\r\n <!-- Home -->\r\n <span qms-breadcrumb-item [(showTooltip)]=\"previousNode.isOverflow\">\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_backspace</mat-icon>\r\n </span>\r\n <mat-icon\r\n *ngIf=\"previousNode.displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n >\r\n {{ previousNode.itemIcon }}\r\n </mat-icon>\r\n <mat-icon\r\n *ngIf=\"previousNode.displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n [svgIcon]=\"previousNode.itemIconSvg\"\r\n >\r\n </mat-icon>\r\n <img\r\n *ngIf=\"previousNode.displayType === itemIconType.path\"\r\n class=\"mat-icon item-icon\"\r\n [src]=\"previousNode.itemIconPath\"\r\n />\r\n <img\r\n *ngIf=\"previousNode.displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(previousNode)\"\r\n />\r\n <div\r\n [qms-tool-tip]=\"previousNode.name\"\r\n [showToolTip]=\"previousNode.isOverflow\"\r\n #breadcrumbItemText\r\n mode=\"dark\"\r\n (click)=\"onItemSelect(previousNode)\"\r\n >\r\n {{previousNode.name}}\r\n </div>\r\n </span>\r\n </div>\r\n</div>\r\n",
|
4891
|
+
template: "<div>\r\n <div class=\"breadcrumb-container\" *ngIf=\"!isMobileType\">\r\n <!-- Home -->\r\n <div\r\n qms-breadcrumb-item\r\n *ngIf=\"!isOverflow || type=='table'\"\r\n [(showTooltip)]=\"homeNode['isOverflow']\"\r\n >\r\n <mat-icon\r\n *ngIf=\"homeNode?.displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n >\r\n {{ homeNode?.itemIcon }}\r\n </mat-icon>\r\n <mat-icon\r\n *ngIf=\"homeNode?.displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n [svgIcon]=\"homeNode.itemIconSvg\"\r\n >\r\n </mat-icon>\r\n <img\r\n *ngIf=\"homeNode?.displayType === itemIconType.path\"\r\n class=\"mat-icon item-icon\"\r\n [src]=\"homeNode.itemIconPath\"\r\n />\r\n <img\r\n *ngIf=\"homeNode?.displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(homeNode)\"\r\n />\r\n <div\r\n class=\"qms-breadcrumb-item-text\"\r\n [qms-tool-tip]=\"homeNode['name']\"\r\n [showToolTip]=\"homeNode['isOverflow']\"\r\n #breadcrumbItemText\r\n mode=\"dark\"\r\n (click)=\"onItemSelect(homeNode)\"\r\n >\r\n {{homeNode?.name}}\r\n </div>\r\n <mat-icon *ngIf=\"!isOverflow && type !=='table'\"\r\n >keyboard_arrow_right</mat-icon\r\n >\r\n <span\r\n *ngIf=\"itemNodes.length && type=='table'\"\r\n qms-breadcrumb-direction-icon\r\n >\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n\r\n <!-- Dropdown not table -->\r\n <div qms-breadcrumb-item *ngIf=\"isOverflow && type!='table'\">\r\n <button\r\n qms-btn-icon\r\n color=\"light\"\r\n class=\"breadcrumb__dropdown-btn\"\r\n [matMenuTriggerFor]=\"bodyMediumMenu\"\r\n >\r\n <mat-icon svgIcon=\"breadcrumb_dropdown\"></mat-icon>\r\n </button>\r\n <mat-menu\r\n #bodyMediumMenu=\"matMenu\"\r\n yPosition=\"below\"\r\n class=\"qms-breadcrumb-menu\"\r\n >\r\n <div (click)=\"$event.stopPropagation()\">\r\n <div\r\n qms-menu-item\r\n mat-menu-item\r\n disableRipple\r\n *ngFor=\"let item of dropdownNodes\"\r\n (keydown.enter)=\"onKeyPressed($event)\"\r\n (click)=\"onItemSelect(item)\"\r\n >\r\n <div #menuItemContent qms-expansion-header>\r\n <div qms-list-header>\r\n <div qms-line color=\"default-subtitle\">{{item.name}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-menu>\r\n\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n\r\n <!-- Dropdown table -->\r\n <div qms-breadcrumb-item *ngIf=\"isOverflow && type=='table'\">\r\n <button qms-btn-icon color=\"light\" [matMenuTriggerFor]=\"bodyMediumMenu\">\r\n <mat-icon>more_horiz</mat-icon>\r\n </button>\r\n <mat-menu\r\n #bodyMediumMenu=\"matMenu\"\r\n yPosition=\"below\"\r\n class=\"qms-breadcrumb-menu\"\r\n >\r\n <div (click)=\"$event.stopPropagation()\">\r\n <div\r\n qms-menu-item\r\n mat-menu-item\r\n disableRipple\r\n *ngFor=\"let item of dropdownNodes\"\r\n (keydown.enter)=\"onKeyPressed($event)\"\r\n (click)=\"onItemSelect(item)\"\r\n >\r\n <div #menuItemContent qms-expansion-header>\r\n <div qms-list-header>\r\n <div qms-line color=\"default-subtitle\">{{item.name}}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </mat-menu>\r\n\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n <!-- Item list -->\r\n <div\r\n qms-breadcrumb-item\r\n *ngFor=\"let item of itemNodes;let i=index\"\r\n [isLastItem]=\"i === itemNodes.length - 1\"\r\n [(showTooltip)]=\"item.isOverflow\"\r\n >\r\n <mat-icon\r\n *ngIf=\"item.displayType === itemIconType.name && item.isShow\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n >\r\n {{ item.itemIcon }}\r\n </mat-icon>\r\n <mat-icon\r\n *ngIf=\"item.displayType === itemIconType.svg && item.isShow\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n [svgIcon]=\"item.itemIconSvg\"\r\n >\r\n </mat-icon>\r\n <img\r\n *ngIf=\"item.displayType === itemIconType.path && item.isShow\"\r\n class=\"mat-icon item-icon\"\r\n [src]=\"item.itemIconPath\"\r\n />\r\n <img\r\n *ngIf=\"item.displayType === itemIconType.base64 && item.isShow\"\r\n class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(item)\"\r\n />\r\n <div\r\n class=\"qms-breadcrumb-item-text\"\r\n [qms-tool-tip]=\"item.name\"\r\n [showToolTip]=\"item.isOverflow\"\r\n #breadcrumbItemText\r\n mode=\"dark\"\r\n *ngIf=\"item.isShow\"\r\n (click)=\"onItemSelect(item, i == itemNodes.length - 1);\"\r\n >\r\n {{item.name}}\r\n </div>\r\n <span\r\n qms-breadcrumb-direction-icon\r\n *ngIf=\"item.isShow && i !== itemNodes.length - 1\"\r\n >\r\n <mat-icon>keyboard_arrow_right</mat-icon>\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <div class=\"breadcrumb-container\" *ngIf=\"isMobileType\">\r\n <mat-sidenav-container>\r\n <mat-sidenav\r\n #sidenav\r\n mode=\"'over'\"\r\n class=\"breadcrumb-sidenav\"\r\n [fixedInViewport]=\"true\"\r\n >\r\n <div class=\"header\">\r\n <div class=\"header-left\">\r\n <p>{{LANG.BREADCRUMB}}</p>\r\n <div class=\"sub\">{{LANG.NAVIGATE_TO}}</div>\r\n </div>\r\n <div class=\"header-right\">\r\n <button qms-btn-text (click)=\"sidenav.close()\">\r\n {{LANG.QMSCKEDITOR.CLOSE}}\r\n </button>\r\n </div>\r\n </div>\r\n\r\n <div class=\"content\">\r\n <mat-selection-list #shoes [multiple]=\"false\">\r\n <mat-list-option\r\n class=\"qms-list-option\"\r\n *ngFor=\"let item of sideNavNodes; let first = first; let last = last;\"\r\n (click)=\"onItemSelect(item)\"\r\n >\r\n <mat-icon\r\n *ngIf=\"!first\"\r\n mat-list-icon\r\n class=\"subdirectory_arrow_right\"\r\n >subdirectory_arrow_right</mat-icon\r\n >\r\n <div class=\"content-text-name\">\r\n <div class=\"content-text-name-heading\">\r\n <mat-icon\r\n *ngIf=\"item.displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n >\r\n {{ item.itemIcon }}\r\n </mat-icon>\r\n <img\r\n *ngIf=\"item.displayType === itemIconType.path\"\r\n class=\"mat-icon item-icon\"\r\n [src]=\"item.itemIconPath\"\r\n />\r\n <img\r\n *ngIf=\"item.displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(item)\"\r\n />\r\n <span class=\"\">{{item.name}}</span>\r\n </div>\r\n <mat-icon class=\"color-gray\" *ngIf=\"last\">done</mat-icon>\r\n </div>\r\n </mat-list-option>\r\n </mat-selection-list>\r\n </div>\r\n </mat-sidenav>\r\n\r\n <mat-sidenav-content>\r\n <button\r\n qms-btn-icon\r\n class=\"more_horiz-btn\"\r\n color=\"light\"\r\n *ngIf=\"sideNavNodes.length\"\r\n (click)=\"sidenav.toggle()\"\r\n >\r\n <mat-icon>more_horiz</mat-icon>\r\n </button>\r\n </mat-sidenav-content>\r\n </mat-sidenav-container>\r\n <div qms-breadcrumb-item [(showTooltip)]=\"previousNode['isOverflow']\">\r\n <!-- Home -->\r\n <span qms-breadcrumb-direction-icon>\r\n <mat-icon>keyboard_arrow_left</mat-icon>\r\n </span>\r\n <mat-icon\r\n *ngIf=\"previousNode?.displayType === itemIconType.name\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n >\r\n {{ previousNode.itemIcon }}\r\n </mat-icon>\r\n <mat-icon\r\n *ngIf=\"previousNode?.displayType === itemIconType.svg\"\r\n class=\"mat-icon-rtl-mirror material-icons-outlined item-icon\"\r\n [svgIcon]=\"previousNode.itemIconSvg\"\r\n >\r\n </mat-icon>\r\n <img\r\n *ngIf=\"previousNode?.displayType === itemIconType.path\"\r\n class=\"mat-icon item-icon\"\r\n [src]=\"previousNode.itemIconPath\"\r\n />\r\n <img\r\n *ngIf=\"previousNode?.displayType === itemIconType.base64\"\r\n class=\"mat-icon image-base64 item-icon\"\r\n [src]=\"getImagePath(previousNode)\"\r\n />\r\n <div\r\n class=\"qms-breadcrumb-item-text\"\r\n [qms-tool-tip]=\"previousNode['name']\"\r\n [showToolTip]=\"previousNode['isOverflow']\"\r\n #breadcrumbItemText\r\n mode=\"dark\"\r\n (click)=\"onItemSelect(previousNode)\"\r\n >\r\n {{previousNode.name}}\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n",
|
4790
4892
|
encapsulation: i0.ViewEncapsulation.None,
|
4791
|
-
styles: [".breadcrumb-container{display:flex;font-family:Open Sans;font-size:14px;font-weight:600;color:#323232}.breadcrumb-container .qms-breadcrumb-direction-icon,.breadcrumb-container .qms-breadcrumb-item{display:flex;align-items:center;padding:3px 0 2px}.breadcrumb-container .qms-breadcrumb-direction-icon .mat-icon{width:18px;height:18px;font-size:18px;margin-left:.5rem;margin-right:.5rem}.breadcrumb-container .item-icon{margin-right:2px}.breadcrumb-container .qms-breadcrumb-item{cursor:inherit}.breadcrumb-container .qms-breadcrumb-item .qms-btn-icon{width:1.5rem;height:1.5rem;line-height:2rem}.breadcrumb-container .qms-breadcrumb-item .qms-breadcrumb-item-
|
4893
|
+
styles: [".breadcrumb-container{display:flex;font-family:Open Sans;font-size:14px;font-weight:600;color:#323232}.breadcrumb-container .qms-breadcrumb-direction-icon,.breadcrumb-container .qms-breadcrumb-item{display:flex;align-items:center;padding:3px 0 2px}.breadcrumb-container .qms-breadcrumb-direction-icon .mat-icon{width:18px;height:18px;font-size:18px;margin-left:.5rem;margin-right:.5rem}.breadcrumb-container .item-icon{margin-right:2px}.breadcrumb-container .qms-breadcrumb-item{cursor:inherit;margin:8px 8px 8px 0}.breadcrumb-container .qms-breadcrumb-item .qms-btn-icon{width:1.5rem;height:1.5rem;line-height:2rem}.breadcrumb-container .qms-breadcrumb-item .qms-breadcrumb-item-overflow{max-width:240px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.breadcrumb-container .qms-breadcrumb-item .breadcrumb__dropdown-btn{width:2rem;height:2rem}.breadcrumb-container .qms-breadcrumb-item .breadcrumb__dropdown-btn svg{display:block}.breadcrumb-container .qms-breadcrumb-last-item{color:rgba(0,0,0,.6);font-weight:400;cursor:not-allowed}.breadcrumb-container .mat-drawer-container{z-index:3;background-color:transparent}.qms-breadcrumb-table .breadcrumb-container .qms-breadcrumb-direction-icon .mat-icon{width:12px;height:12px;font-size:12px;margin-left:.25rem;margin-right:.25rem;color:rgba(0,0,0,.6)}.qms-breadcrumb-table .breadcrumb-container .item-icon{margin-right:1px}.qms-breadcrumb-table .breadcrumb-container .qms-breadcrumb-item .qms-breadcrumb-item-text{font-size:12px;font-weight:400;color:rgba(0,0,0,.6)}.qms-breadcrumb-table .breadcrumb-container .qms-breadcrumb-item .qms-breadcrumb-item-overflow{max-width:200px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qms-breadcrumb__multi-line .breadcrumb-container{flex-wrap:wrap}.qms-breadcrumb-menu .qms-dropdown-menu-item{border:none}.breadcrumb-sidenav{display:flex;align-items:center;justify-content:center;width:100%;background:#fff;z-index:3}.breadcrumb-sidenav .header{font-family:Open Sans;font-style:normal;background-color:var(--background-area);height:71px;display:flex;justify-content:space-between;padding:16px}.breadcrumb-sidenav .header p{font-weight:600;font-size:18px;line-height:25px;color:var(--default-color);margin-bottom:0}.breadcrumb-sidenav .header .sub{font-weight:400;font-size:14px;line-height:22px;color:#5a5a5a}.breadcrumb-sidenav .content{padding:0 16px 16px;height:calc(100vh - 71px);overflow:auto}.breadcrumb-sidenav .content .qms-list-option{height:unset!important}.breadcrumb-sidenav .content .qms-list-option .mat-list-text{padding-right:0!important;padding-left:0!important}.breadcrumb-sidenav .content .qms-list-option .mat-list-item-content{border-bottom:1px solid #e0e0e0;padding:8px}.breadcrumb-sidenav .content-text-name{display:flex;align-items:center;justify-content:space-between}.breadcrumb-sidenav .content-text-name .content-text-name-heading{display:flex;align-items:center;color:var(--default-color)}.breadcrumb-sidenav .content-text-name .content-text-name-heading .item-icon{margin-right:10px;color:var(--tab-border)}.breadcrumb-sidenav .content-text-name .color-gray{color:var(--tab-border)}.more_horiz-btn.qms-btn-icon{width:1.5rem;height:1.5rem;line-height:2rem;margin:8px 0 8px 8px}.subdirectory_arrow_right{color:#0163b2}"]
|
4792
4894
|
},] }
|
4793
4895
|
];
|
4794
4896
|
QMSBreadcrumb.ctorParameters = function () { return [
|
4795
4897
|
{ type: i0.ElementRef },
|
4796
4898
|
{ type: icon.MatIconRegistry },
|
4797
4899
|
{ type: i0.ChangeDetectorRef },
|
4798
|
-
{ type: platformBrowser.DomSanitizer }
|
4900
|
+
{ type: platformBrowser.DomSanitizer },
|
4901
|
+
{ type: TranslateLibraryService }
|
4799
4902
|
]; };
|
4800
4903
|
QMSBreadcrumb.propDecorators = {
|
4801
4904
|
nodes: [{ type: i0.Input }],
|
@@ -4840,8 +4943,10 @@
|
|
4840
4943
|
core.MatCommonModule,
|
4841
4944
|
icon.MatIconModule,
|
4842
4945
|
QmsAngularModule,
|
4946
|
+
QMSListModule,
|
4843
4947
|
QMSButtonModule,
|
4844
|
-
menu.MatMenuModule
|
4948
|
+
menu.MatMenuModule,
|
4949
|
+
sidenav.MatSidenavModule
|
4845
4950
|
],
|
4846
4951
|
exports: [
|
4847
4952
|
core.MatCommonModule,
|
@@ -6006,9 +6111,9 @@
|
|
6006
6111
|
RelatedListComponent.decorators = [
|
6007
6112
|
{ type: i0.Component, args: [{
|
6008
6113
|
selector: 'qms-related-list',
|
6009
|
-
template: "<div class=\"container list-related\">\r\n <div class=\"list-related__title\">\r\n <strong>{{ title }}</strong>\r\n </div>\r\n <div\r\n class=\"list-related__body\"\r\n *ngFor=\"let item of relatedData; let i = index\"\r\n >\r\n <div class=\"list-related__body-parent\">\r\n <qms-list-item type=\"image-square\">\r\n <mat-icon\r\n leading-icon\r\n type=\"image-square\"\r\n [svgIcon]=\"getNodeIcon(item)\"\r\n ></mat-icon>\r\n <div qms-list-header>\r\n <div\r\n qms-line\r\n type=\"subtitle\"\r\n class=\"search__option-name\"\r\n (click)=\"onItemClick(item)\"\r\n >\r\n <div class=\"caption\" *ngIf=\"canShowParent(item)\">\r\n {{ item?.parentName }}\r\n </div>\r\n <span class=\"cursor\">{{ item.itemName }}</span>\r\n </div>\r\n <div\r\n class=\"caption\"\r\n *ngIf=\"item.breadcumbs && item.breadcumbs.length\"\r\n >\r\n <qms-breadcrumb\r\n class=\"breadcrumb-containe\"\r\n type=\"table\"\r\n numDisplayItem=\"1\"\r\n [nodes]=\"item.breadcumbs\"\r\n >\r\n </qms-breadcrumb>\r\n </div>\r\n </div>\r\n <div qms-line color=\"default-subtitle\" *ngIf=\"item?.displayId\">\r\n <ng-container *ngIf=\"item?.displayId\">\r\n <span class=\"material-icons-outlined\"> local_offer </span> ID:\r\n {{ item?.displayId }}\r\n </ng-container>\r\n <ng-container *ngIf=\"item.statusName\">\r\n {{ getItemStatus(item) }}</ng-container
|
6114
|
+
template: "<div class=\"container list-related\">\r\n <div class=\"list-related__title\">\r\n <strong>{{ title }}</strong>\r\n </div>\r\n <div\r\n class=\"list-related__body\"\r\n *ngFor=\"let item of relatedData; let i = index\"\r\n >\r\n <div class=\"list-related__body-parent\">\r\n <qms-list-item type=\"image-square\">\r\n <mat-icon\r\n type=\"image-square\"\r\n leading-icon\r\n [svgIcon]=\"getNodeIcon(item)\"\r\n ></mat-icon>\r\n <div qms-list-header>\r\n <div\r\n qms-line\r\n (click)=\"onItemClick(item)\"\r\n type=\"caption\"\r\n *ngIf=\"canShowParent(item)\"\r\n >\r\n {{ item?.parentName }}\r\n </div>\r\n <div qms-line (click)=\"onItemClick(item)\" type=\"subtitle\">\r\n {{ item.itemName }}\r\n </div>\r\n </div>\r\n <div qms-line *ngIf=\"item.breadcumbs && item.breadcumbs.length\">\r\n <qms-breadcrumb\r\n class=\"breadcrumb-container\"\r\n type=\"table\"\r\n numDisplayItem=\"1\"\r\n [nodes]=\"item.breadcumbs\"\r\n >\r\n </qms-breadcrumb>\r\n </div>\r\n <div qms-line color=\"default-subtitle\" *ngIf=\"item?.displayId\">\r\n <ng-container *ngIf=\"item?.displayId\">\r\n <span class=\"material-icons-outlined\"> local_offer </span> ID:\r\n {{ item?.displayId }}\r\n </ng-container>\r\n <ng-container *ngIf=\"item.statusName\">\r\n {{ getItemStatus(item) }}\r\n </ng-container>\r\n </div>\r\n <button\r\n qms-btn-icon\r\n color=\"light\"\r\n mode=\"dark\"\r\n *ngIf=\"!isNotEditedItem\"\r\n (click)=\"removeItem(i)\"\r\n >\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </qms-list-item>\r\n\r\n <!-- <qms-list-item type=\"image-square\">\r\n <mat-icon\r\n leading-icon\r\n type=\"image-square\"\r\n [svgIcon]=\"getNodeIcon(item)\"\r\n ></mat-icon>\r\n <div qms-list-header>\r\n <div\r\n qms-line\r\n type=\"subtitle\"\r\n class=\"search__option-name\"\r\n (click)=\"onItemClick(item)\"\r\n >\r\n <div class=\"caption\" *ngIf=\"canShowParent(item)\">\r\n {{ item?.parentName }}\r\n </div>\r\n <span class=\"cursor\">{{ item.itemName }}</span>\r\n </div>\r\n <div\r\n class=\"caption\"\r\n *ngIf=\"item.breadcumbs && item.breadcumbs.length\"\r\n >\r\n <qms-breadcrumb\r\n class=\"breadcrumb-containe\"\r\n type=\"table\"\r\n numDisplayItem=\"1\"\r\n [nodes]=\"item.breadcumbs\"\r\n >\r\n </qms-breadcrumb>\r\n </div>\r\n </div>\r\n <div qms-line color=\"default-subtitle\" *ngIf=\"item?.displayId\">\r\n <ng-container *ngIf=\"item?.displayId\">\r\n <span class=\"material-icons-outlined\"> local_offer </span> ID:\r\n {{ item?.displayId }}\r\n </ng-container>\r\n <ng-container *ngIf=\"item.statusName\">\r\n {{ getItemStatus(item) }}\r\n </ng-container>\r\n </div>\r\n </qms-list-item>\r\n <div class=\"block\" *ngIf=\"!isNotEditedItem\">\r\n <button qms-btn-icon color=\"light\" mode=\"dark\" (click)=\"removeItem(i)\">\r\n <mat-icon>close</mat-icon>\r\n </button>\r\n </div> -->\r\n </div>\r\n </div>\r\n</div>\r\n",
|
6010
6115
|
encapsulation: i0.ViewEncapsulation.None,
|
6011
|
-
styles: [".list-related{font-family:Open Sans;font-style:normal;font-weight:400;color:var(--default-color)}.list-related .list-related__title{font-weight:600;font-size:.875rem;line-height:22px;margin-bottom:1rem}.list-related .list-related__body .list-related__body-parent{min-height:48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd}.list-related .list-related__body .list-related__body-parent .qms-list-item.mat-2-line.image-item{height:auto}.list-related .list-related__body .list-related__body-parent .qms-list-item.image-item .qms-list-item-content{margin:0}.list-related .list-related__body .list-related__body-parent .wrap-image.image-square,.list-related .list-related__body .list-related__body-parent .wrap-image.image-square img{background:transparent;margin:auto;height:24px;width:24px}.list-related .list-related__body .list-related__body-parent .qms-list-item.image-item .qms-list-text,.list-related .list-related__body .list-related__body-parent .qms-list-item.image-item .trailing-box{margin-left:1.5rem;border-bottom:none;padding-bottom:7px;padding-top:7px}.list-related .list-related__body .list-related__body-parent .qms-list-item.image-item .qms-list-text .material-icons-outlined,.list-related .list-related__body .list-related__body-parent .qms-list-item.image-item .trailing-box .material-icons-outlined{font-size:13px}.list-related .list-related__body .list-related__body-parent .
|
6116
|
+
styles: [".list-related{font-family:Open Sans;font-style:normal;font-weight:400;color:var(--default-color)}.list-related .list-related__title{font-weight:600;font-size:.875rem;line-height:22px;margin-bottom:1rem}.list-related .list-related__body .list-related__body-parent{min-height:48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd}.list-related .list-related__body .list-related__body-parent .qms-list-item{height:unset!important}.list-related .list-related__body .list-related__body-parent .qms-list-item.mat-2-line.image-item{height:auto}.list-related .list-related__body .list-related__body-parent .qms-list-item.image-item .qms-list-item-content{margin:0}.list-related .list-related__body .list-related__body-parent .wrap-image.image-square,.list-related .list-related__body .list-related__body-parent .wrap-image.image-square img{background:transparent;margin:auto;height:24px;width:24px}.list-related .list-related__body .list-related__body-parent .qms-list-item.image-item .qms-list-text,.list-related .list-related__body .list-related__body-parent .qms-list-item.image-item .trailing-box{margin-left:1.5rem;border-bottom:none;padding-bottom:7px;padding-top:7px}.list-related .list-related__body .list-related__body-parent .qms-list-item.image-item .qms-list-text .material-icons-outlined,.list-related .list-related__body .list-related__body-parent .qms-list-item.image-item .trailing-box .material-icons-outlined{font-size:13px}.list-related .list-related__body .list-related__body-parent .block{font-weight:400;font-size:1rem;line-height:28px;display:flex;align-items:center}.list-related .list-related__body .list-related__body-parent .block .title{margin-left:1.5rem;padding-top:5px;padding-bottom:5px}.list-related .list-related__body .list-related__body-parent .block .title .caption{color:rgba(0,0,0,.6);font-size:.75rem;line-height:22px}.list-related .list-related__body .list-related__body-parent .block mat-icon{color:rgba(0,0,0,.6);padding:0}.list-related .list-related__body .list-related__body-parent .block button.qms-btn-icon{width:40px;height:40px;line-height:40px}.list-related .list-related__body .list-related__body-child{font-weight:400;font-size:.875rem;line-height:22px}.list-related .list-related__body .list-related__body-child .default{min-height:48px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #ddd}.list-related .list-related__body .list-related__body-child .default .title{margin-left:3rem}.list-related .list-related__body .list-related__body-child .default .group-button{margin-right:2rem;display:flex}.list-related .list-related__body .remain{font-weight:600;font-size:.875rem;line-height:22px;display:flex;align-items:center;justify-content:space-between;background-color:#fafafa;color:var(--primary);min-height:48px;border-bottom:1px solid #ddd}.list-related .list-related__body .remain .title{margin-left:3rem}.list-related .list-related__body .qms-line{display:flex;align-items:center}.list-related .list-related__body .breadcrumb-container .qms-breadcrumb-item{cursor:inherit;line-height:16px;font-size:.75rem;color:rgba(0,0,0,.6);font-weight:400;line-height:22px}.list-related .list-related__body .trailing-box{display:flex;align-items:center}.list-related .list-related__body .trailing-box button{height:24px;width:24px;line-height:24px}.label-green,.label-red,.label-yellow{font-family:Open Sans;font-style:normal;font-weight:600;display:inline-block;text-align:center;margin-left:1rem;width:24px;height:24px;font-size:.75rem;border-radius:1px}.label-red{background-color:var(--secondary);color:#fff}.label-yellow{background-color:var(--risk-yellow);color:rgba(0,0,0,.87)}.label-green{background-color:var(--risk-green);color:#fff}.cursor{cursor:pointer}"]
|
6012
6117
|
},] }
|
6013
6118
|
];
|
6014
6119
|
RelatedListComponent.ctorParameters = function () { return [
|
@@ -25235,31 +25340,14 @@
|
|
25235
25340
|
});
|
25236
25341
|
};
|
25237
25342
|
QmsReportCoverPortraitComponent.prototype.ngAfterViewInit = function () {
|
25238
|
-
this.resizeTitle();
|
25239
|
-
};
|
25240
|
-
QmsReportCoverPortraitComponent.prototype.resizeTitle = function () {
|
25241
|
-
var _this = this;
|
25242
|
-
var initialFontSize = 15;
|
25243
|
-
this.renderer.setStyle(this.contentTitle.nativeElement, 'font-size', initialFontSize + 'px');
|
25244
|
-
this.renderer.setStyle(this.contentTitle.nativeElement, 'line-height', initialFontSize + 20 + 'px');
|
25245
|
-
var interval = setInterval(function () {
|
25246
|
-
if (_this.contentTitle.nativeElement.offsetHeight < 110) {
|
25247
|
-
initialFontSize += 1;
|
25248
|
-
_this.renderer.setStyle(_this.contentTitle.nativeElement, 'font-size', initialFontSize + 'px');
|
25249
|
-
_this.renderer.setStyle(_this.contentTitle.nativeElement, 'line-height', initialFontSize + 20 + 'px');
|
25250
|
-
}
|
25251
|
-
else {
|
25252
|
-
clearInterval(interval);
|
25253
|
-
}
|
25254
|
-
}, 25);
|
25255
25343
|
};
|
25256
25344
|
return QmsReportCoverPortraitComponent;
|
25257
25345
|
}());
|
25258
25346
|
QmsReportCoverPortraitComponent.decorators = [
|
25259
25347
|
{ type: i0.Component, args: [{
|
25260
25348
|
selector: 'qms-report-cover-portrait',
|
25261
|
-
template: "<div class=\"qms-report-cover-portrait-container\">\r\n <div class=\"cover-
|
25262
|
-
styles: [".qms-report-cover-portrait-container{background-color:#fff}.qms-report-cover-portrait-container .cover-
|
25349
|
+
template: "<div class=\"qms-report-cover-portrait-container\">\r\n <div class=\"cover-content\">\r\n <div class=\"cover-title\">\r\n <div class=\"report-module-name\">\r\n <span class=\"module-name\">{{LANG.REPORT_FOR}} {{moduleName}}</span>\r\n </div>\r\n <div class=\"report-title\">\r\n <span class=\"title\" #contentTitle>{{title}}</span>\r\n </div>\r\n </div>\r\n <div class=\"cover-information\" *ngIf=\"infoReport && infoReport.length\">\r\n <div class=\"content-item\" *ngFor=\"let item of infoReport\" [class.underline]=\"item.underline\">\r\n <span class=\"title\">{{item.title}} </span> <span class=\"content\">{{item.content}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n</div>",
|
25350
|
+
styles: [".qms-report-cover-portrait-container{background-color:#fff}.qms-report-cover-portrait-container .cover-content{margin-bottom:50px}.qms-report-cover-portrait-container .cover-content .cover-title{display:flex;height:450px;flex-direction:column;justify-content:flex-end}.qms-report-cover-portrait-container .cover-content .cover-title .report-module-name .module-name{max-width:100%;font-family:Open Sans;font-weight:400;font-size:14pt;line-height:20pt;word-break:break-word}.qms-report-cover-portrait-container .cover-content .cover-title .report-title{margin-bottom:32px}.qms-report-cover-portrait-container .cover-content .cover-title .report-title .title{max-width:100%;font-weight:600;font-size:33pt;line-height:39pt;font-family:Open Sans;word-break:break-word}.qms-report-cover-portrait-container .cover-content .cover-information{padding:24px;border:1px solid rgba(0,0,0,.24);border-radius:4px}.qms-report-cover-portrait-container .cover-content .cover-information .content-item{font-family:Open Sans;font-size:10pt;line-height:16pt;margin-bottom:16px}.qms-report-cover-portrait-container .cover-content .cover-information .content-item .title{font-weight:600}.qms-report-cover-portrait-container .cover-content .cover-information .content-item .content{font-weight:400}.qms-report-cover-portrait-container .cover-content .cover-information .content-item:last-child{margin-bottom:0}.qms-report-cover-portrait-container .cover-content .cover-information .underline{padding-bottom:16px;border-bottom:1px solid rgba(0,0,0,.6)}"]
|
25263
25351
|
},] }
|
25264
25352
|
];
|
25265
25353
|
QmsReportCoverPortraitComponent.ctorParameters = function () { return [
|
@@ -25268,7 +25356,6 @@
|
|
25268
25356
|
]; };
|
25269
25357
|
QmsReportCoverPortraitComponent.propDecorators = {
|
25270
25358
|
infoReport: [{ type: i0.Input }],
|
25271
|
-
logo: [{ type: i0.Input }],
|
25272
25359
|
moduleName: [{ type: i0.Input }],
|
25273
25360
|
title: [{ type: i0.Input }],
|
25274
25361
|
contentTitle: [{ type: i0.ViewChild, args: ['contentTitle',] }]
|
@@ -29278,6 +29365,7 @@
|
|
29278
29365
|
exports.LOCAL_FOLDER_ICON = LOCAL_FOLDER_ICON;
|
29279
29366
|
exports.LOCAL_FOLDER_OUTLINED_ICON = LOCAL_FOLDER_OUTLINED_ICON;
|
29280
29367
|
exports.MarginDirective = MarginDirective;
|
29368
|
+
exports.MfeUtil = MfeUtil;
|
29281
29369
|
exports.NORMAL_FOLDER_ICON = NORMAL_FOLDER_ICON;
|
29282
29370
|
exports.NORMAL_FOLDER_OUTLINED_ICON = NORMAL_FOLDER_OUTLINED_ICON;
|
29283
29371
|
exports.NavigatorElementView = NavigatorElementView;
|
@@ -29333,7 +29421,7 @@
|
|
29333
29421
|
exports.QMSChipBodyDirective = QMSChipBodyDirective;
|
29334
29422
|
exports.QMSChipInputChipListDirective = QMSChipInputChipListDirective;
|
29335
29423
|
exports.QMSChipInputDirective = QMSChipInputDirective;
|
29336
|
-
exports.
|
29424
|
+
exports.QMSChipInputSelectDropDownDirective = QMSChipInputSelectDropDownDirective;
|
29337
29425
|
exports.QMSChipInputSelectFieldDirective = QMSChipInputSelectFieldDirective;
|
29338
29426
|
exports.QMSChipInputSelectTriggerDirective = QMSChipInputSelectTriggerDirective;
|
29339
29427
|
exports.QMSCollapseGroupDirective = QMSCollapseGroupDirective;
|