qms-angular 1.1.30 → 1.1.32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/bundles/qms-angular.umd.js +194 -56
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/components/list/list.js +9 -6
  4. package/esm2015/lib/model/en.js +3 -2
  5. package/esm2015/lib/model/no.js +3 -2
  6. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.js +11 -3
  7. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.js +12 -3
  8. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/save-template/save-template.component.js +13 -3
  9. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-flowchart/qms-ckeditor-flowchart.component.js +13 -3
  10. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-fullscreen/qms-ckeditor-fullscreen.component.js +1 -1
  11. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.js +13 -4
  12. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.js +21 -10
  13. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link-simple/qms-ckeditor-link-simple.component.js +17 -4
  14. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.js +14 -3
  15. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-template/qms-ckeditor-template.component.js +15 -3
  16. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.js +14 -4
  17. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +26 -13
  18. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-common.services.js +25 -0
  19. package/esm2015/qms-angular.js +10 -9
  20. package/fesm2015/qms-angular.js +181 -47
  21. package/fesm2015/qms-angular.js.map +1 -1
  22. package/lib/model/en.d.ts +1 -0
  23. package/lib/model/no.d.ts +1 -0
  24. package/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.d.ts +4 -1
  25. package/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.d.ts +4 -1
  26. package/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/save-template/save-template.component.d.ts +4 -1
  27. package/lib/qms-ckeditor-components/components/qms-ckeditor-flowchart/qms-ckeditor-flowchart.component.d.ts +5 -1
  28. package/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.d.ts +4 -1
  29. package/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.d.ts +4 -1
  30. package/lib/qms-ckeditor-components/components/qms-ckeditor-link-simple/qms-ckeditor-link-simple.component.d.ts +5 -1
  31. package/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.d.ts +4 -1
  32. package/lib/qms-ckeditor-components/components/qms-ckeditor-template/qms-ckeditor-template.component.d.ts +4 -1
  33. package/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.d.ts +4 -1
  34. package/lib/qms-ckeditor-components/services/qms-ckeditor-common.services.d.ts +5 -0
  35. package/package.json +1 -1
  36. package/qms-angular.d.ts +9 -8
  37. package/qms-angular.metadata.json +1 -1
  38. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
  39. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js.map +1 -1
  40. package/src/assets/qms-ckeditor-plugin/src/plugins/aboutckeditor/aboutckeditor.js +2 -1
  41. package/src/assets/qms-ckeditor-plugin/src/plugins/bpmn/bpmndialogcommand.js +2 -2
  42. package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorEnum.js +2 -1
  43. package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorService.js +18 -18
  44. package/src/assets/qms-ckeditor-plugin/src/plugins/flowchart/flowchartdialogcommand.js +2 -2
  45. package/src/assets/qms-ckeditor-plugin/src/plugins/fullscreen/qmsCKEditorFullscreenPlugin.js +3 -1
  46. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapdialogcommand.js +1 -1
  47. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkdialogcommand.js +1 -1
  48. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkui.js +1 -0
  49. package/src/assets/qms-ckeditor-plugin/src/plugins/template/loadtemplatedialogcommand.js +1 -1
  50. package/src/assets/qms-ckeditor-plugin/src/plugins/template/templatedialogcommand.js +8 -3
  51. package/src/assets/qms-ckeditor-plugin/src/plugins/toggletoolbar/toggletoolbar.js +1 -1
  52. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipdialogcommand.js +1 -1
  53. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipui.js +1 -1
  54. package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/browsevideodialogcommand.js +1 -1
  55. package/src/lib/qms-ckeditor-components/qms-ckeditor.component.scss +3 -1
@@ -208,7 +208,8 @@
208
208
  "WORDS": "Words",
209
209
  "CHARACTERS": "Characters",
210
210
  "SELECT_VIDEO_FROM_ARCHIVE": "Select video from the archive",
211
- "SELECT_VIDEO_IMAGE": "Select video image"
211
+ "SELECT_VIDEO_IMAGE": "Select video image",
212
+ "DOCUMENT_HEADER": "Document information"
212
213
  },
213
214
  "ABOUT": {
214
215
  "ABOUT_CKEDITOR": "About CKEditor",
@@ -597,7 +598,8 @@
597
598
  "WORDS": "Ord",
598
599
  "CHARACTERS": "Tegn",
599
600
  "SELECT_VIDEO_FROM_ARCHIVE": "Velg video fra arkivet",
600
- "SELECT_VIDEO_IMAGE": "Velg videobilde"
601
+ "SELECT_VIDEO_IMAGE": "Velg videobilde",
602
+ "DOCUMENT_HEADER": "Dokumentinformasjon"
601
603
  },
602
604
  "ABOUT": {
603
605
  "ABOUT_CKEDITOR": "Om CKEditor",
@@ -4378,11 +4380,15 @@
4378
4380
  this.renderer = renderer;
4379
4381
  }
4380
4382
  QMSListExpansionHeader.prototype.onClick = function ($event) {
4381
- var qmsList = document.querySelectorAll('.qms-expansion-header');
4382
- [].forEach.call(qmsList, function (el) {
4383
- el.classList.remove('active-item');
4384
- });
4385
- this.renderer.addClass(this.elRef.nativeElement, 'active-item');
4383
+ var _this = this;
4384
+ setTimeout(function () {
4385
+ if (_this.elRef.nativeElement.classList.contains('mat-expanded')) {
4386
+ _this.renderer.addClass(_this.elRef.nativeElement, 'active-item');
4387
+ }
4388
+ else {
4389
+ _this.renderer.removeClass(_this.elRef.nativeElement, 'active-item');
4390
+ }
4391
+ }, 200);
4386
4392
  };
4387
4393
  QMSListExpansionHeader.prototype.ngAfterContentInit = function () {
4388
4394
  core.setLines(this._lines, this.elRef);
@@ -9003,6 +9009,31 @@
9003
9009
  return QMSCKEditorLink;
9004
9010
  }());
9005
9011
 
9012
+ var QMSCKEditorCommonService = /** @class */ (function () {
9013
+ function QMSCKEditorCommonService() {
9014
+ }
9015
+ QMSCKEditorCommonService.prototype.getScrollTopCkeditor = function (ckeditor) {
9016
+ if (!ckeditor || !ckeditor.ui)
9017
+ return 0;
9018
+ return ckeditor.ui.getEditableElement().scrollTop;
9019
+ };
9020
+ QMSCKEditorCommonService.prototype.setScrollTopEditorContainer = function (ckeditor, scrollTop) {
9021
+ if (!ckeditor || !ckeditor.ui)
9022
+ return;
9023
+ setTimeout(function () {
9024
+ ckeditor.ui.getEditableElement().scrollTop = scrollTop;
9025
+ }, 200);
9026
+ };
9027
+ return QMSCKEditorCommonService;
9028
+ }());
9029
+ QMSCKEditorCommonService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function QMSCKEditorCommonService_Factory() { return new QMSCKEditorCommonService(); }, token: QMSCKEditorCommonService, providedIn: "root" });
9030
+ QMSCKEditorCommonService.decorators = [
9031
+ { type: i0.Injectable, args: [{
9032
+ providedIn: 'root'
9033
+ },] }
9034
+ ];
9035
+ QMSCKEditorCommonService.ctorParameters = function () { return []; };
9036
+
9006
9037
  exports.QMSCKEditorDocumentType = void 0;
9007
9038
  (function (QMSCKEditorDocumentType) {
9008
9039
  QMSCKEditorDocumentType[QMSCKEditorDocumentType["other"] = 0] = "other";
@@ -9414,12 +9445,13 @@
9414
9445
 
9415
9446
  var QMSCKEditorLinkComponent = /** @class */ (function (_super) {
9416
9447
  __extends(QMSCKEditorLinkComponent, _super);
9417
- function QMSCKEditorLinkComponent(cdr, dialog, translate, linkService, dialogRef, data) {
9448
+ function QMSCKEditorLinkComponent(cdr, dialog, translate, linkService, commonService, dialogRef, data) {
9418
9449
  var _this = _super.call(this) || this;
9419
9450
  _this.cdr = cdr;
9420
9451
  _this.dialog = dialog;
9421
9452
  _this.translate = translate;
9422
9453
  _this.linkService = linkService;
9454
+ _this.commonService = commonService;
9423
9455
  _this.dialogRef = dialogRef;
9424
9456
  _this.data = data;
9425
9457
  _this.linkFormGroup = new forms.FormGroup({
@@ -9490,7 +9522,9 @@
9490
9522
  this.cdr.detectChanges();
9491
9523
  };
9492
9524
  QMSCKEditorLinkComponent.prototype.onCloseDialog = function () {
9525
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
9493
9526
  this.dialogRef.close(null);
9527
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
9494
9528
  };
9495
9529
  QMSCKEditorLinkComponent.prototype.initLinkType = function () {
9496
9530
  if (this.linkTypes) {
@@ -9690,19 +9724,20 @@
9690
9724
  var id = 3;
9691
9725
  if (this.data.qmsckContentFields &&
9692
9726
  this.data.qmsckContentFields.length &&
9693
- this.data.qmsckIsGetAnchorMoreContent) {
9727
+ this.data.qmsckIsGetAnchorMoreContent &&
9728
+ this.selectedLinkType === exports.LinkType.anchorText) {
9694
9729
  this.data.qmsckContentFields.forEach(function (field) {
9695
9730
  if (field) {
9696
9731
  _this.getAnchor(field, id);
9697
9732
  }
9698
9733
  });
9699
9734
  }
9700
- else {
9701
- if (anchorDocument) {
9702
- anchorDocument.forEach(function (e) {
9735
+ if (this.selectedLinkType === exports.LinkType.anchorDocument && anchorDocument) {
9736
+ anchorDocument.forEach(function (e) {
9737
+ if (e) {
9703
9738
  _this.getAnchor(e, id);
9704
- });
9705
- }
9739
+ }
9740
+ });
9706
9741
  }
9707
9742
  this.anchors.push({
9708
9743
  value: 1,
@@ -9765,6 +9800,7 @@
9765
9800
  return isDisable;
9766
9801
  };
9767
9802
  QMSCKEditorLinkComponent.prototype.setLink = function () {
9803
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
9768
9804
  var link = new QMSCKEditorLink();
9769
9805
  link.typeId = this.selectedLinkType;
9770
9806
  link.targetId = this.selectedTarget;
@@ -9791,6 +9827,7 @@
9791
9827
  break;
9792
9828
  }
9793
9829
  this.dialogRef.close(link);
9830
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
9794
9831
  };
9795
9832
  QMSCKEditorLinkComponent.prototype.getUrlToSetProtocol = function () {
9796
9833
  if (!this.url.length) {
@@ -9837,7 +9874,7 @@
9837
9874
  QMSCKEditorLinkComponent.decorators = [
9838
9875
  { type: i0.Component, args: [{
9839
9876
  selector: "qms-ckeditor-link",
9840
- template: "<div id=\"qmsckeditor_link\" class=\"qmsckeditor qmsckeditor__link__container\">\r\n <div id=\"qmsckeditor_link_header\">\r\n <span id=\"qmsckeditor_link_header_001\" mat-icon-button class=\"qmsckeditor button__close\" (click)=\"onCloseDialog()\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmsckeditor_link_header_002\" mat-dialog-content>\r\n <h2 id=\"qmsckeditor_link_header_001\">\r\n {{ LANG.QMSCKEDITOR.LINK }}\r\n </h2>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor_link_type\" class=\"row\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_TYPE }}</mat-label>\r\n <mat-select disableOptionCentering name=\"linkTypeList\" [(ngModel)]=\"selectedLinkType\"\r\n (ngModelChange)=\"onSelectedLinkType()\">\r\n <mat-option *ngFor=\"let link of linkTypes\" [value]=\"link.id\">\r\n {{ link.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div id=\"qmsckeditor_link_content\">\r\n <form [formGroup]=\"linkFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.url\">\r\n <div id=\"qmsckeditor_link_url\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_url_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\r\n (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.URL_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_url_001\" class=\"row mt-2\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.TARGET }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedTarget\" formControlName=\"targetList\" disableOptionCentering>\r\n <mat-option *ngFor=\"let target of targets\" [value]=\"target.id\">\r\n {{ target.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_url_002\" class=\"row\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.PROTOCOL }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedProtocol\" formControlName=\"protocolList\" disableOptionCentering>\r\n <mat-option *ngFor=\"let protocol of protocols\" [value]=\"protocol.id\">\r\n {{ protocol.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_url_003\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_URL }}</mat-label>\r\n <input matInput [(ngModel)]=\"url\" name=\"url\" formControlName=\"url\"\r\n (ngModelChange)=\"getUrlToSetProtocol()\" />\r\n <mat-error *ngIf=\"linkFormGroup.get('url').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_url_004\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.TITLE }}</mat-label>\r\n <input matInput [(ngModel)]=\"advisoryTitle\" formControlName=\"advisoryTitle\" />\r\n <mat-error *ngIf=\"linkFormGroup.get('advisoryTitle').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_url_005\" class=\"qmsckeditor button__groups row\">\r\n <div class=\"col-6 pl-3 ps-3\">\r\n <button class=\"save\" mat-flat-button (click)=\"eHandbook(false, false)\">\r\n {{ LANG.QMSCKEDITOR.DOCUMENT_PROCESS }}\r\n </button>\r\n </div>\r\n <div class=\"col-6 pr-3 pe-3\">\r\n <button class=\"save\" mat-flat-button (click)=\"attachment()\">\r\n {{ LANG.QMSCKEDITOR.ATTACHMENT }}\r\n </button>\r\n </div>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n\r\n <form [formGroup]=\"anchorTextFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.anchorText\">\r\n <div id=\"qmsckeditor_link_anchor_text\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_anchor_text_panel\" [expanded]=\"isExpanded\"\r\n (opened)=\"isExpanded = true\" (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.ANCHOR_TEXT_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_anchor_text_001\" class=\"row mt-2\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.ANCHOR_BY_NAME }}</mat-label>\r\n <mat-select [(ngModel)]=\"anchorText\" formControlName=\"anchorText\">\r\n <mat-option *ngFor=\"let editorAnchor of editorAnchors\" [value]=\"editorAnchor.anchorValue\"\r\n disableOptionCentering>\r\n {{ editorAnchor.viewValue }}\r\n </mat-option>\r\n </mat-select>\r\n <mat-error *ngIf=\"\r\n anchorTextFormGroup.get('anchorText').hasError('required')\r\n \" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n\r\n <form [formGroup]=\"emailFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.email\">\r\n <div id=\"qmsckeditor_link_email\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_email_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\r\n (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.EMAIL_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_email_001\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_ADDRESS }}</mat-label>\r\n <input matInput [(ngModel)]=\"emailAddress\" formControlName=\"emailAddress\" />\r\n <mat-error *ngIf=\"emailFormGroup.get('emailAddress').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_email_002\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_SUBJECT }}</mat-label>\r\n <input matInput [(ngModel)]=\"emailSubject\" formControlName=\"emailSubject\" />\r\n <mat-error *ngIf=\"emailFormGroup.get('emailSubject').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_email_003\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_BODY }}</mat-label>\r\n <textarea matInput [(ngModel)]=\"emailBody\" formControlName=\"emailBody\"></textarea>\r\n <mat-error *ngIf=\"emailFormGroup.get('emailBody').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n\r\n <form [formGroup]=\"anchorDocFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.anchorDocument\">\r\n <div id=\"qmsckeditor_link_anchor_doc\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_email_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\r\n (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.EMAIL_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_anchor_doc_001\" class=\"qmsckeditor button__groups row\">\r\n <div class=\"col-6 pl-3 ps-3\">\r\n <button class=\"cancel\" mat-flat-button (click)=\"eHandbook(true, true)\">\r\n {{ LANG.QMSCKEDITOR.HANDBOOK }}\r\n </button>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor_link_anchor_doc_002\" class=\"row mt-4\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.DOCUMENT }}</mat-label>\r\n <input matInput [(ngModel)]=\"anchorTitle\" formControlName=\"anchorTitle\" />\r\n <mat-error *ngIf=\"\r\n anchorDocFormGroup.get('anchorTitle').hasError('required')\r\n \" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_anchor_doc_003\" class=\"row mt-2\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.ANCHOR_BY_NAME }}</mat-label>\r\n <mat-select [(ngModel)]=\"anchorByName\" formControlName=\"anchorByName\" disableOptionCentering>\r\n <mat-option *ngFor=\"let docAnchor of documentAnchors\" [value]=\"docAnchor.anchorValue\">\r\n {{ docAnchor.viewValue }}\r\n </mat-option>\r\n </mat-select>\r\n <mat-error *ngIf=\"\r\n anchorDocFormGroup.get('anchorByName').hasError('required')\r\n \" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n </div>\r\n\r\n <div id=\"qmsckeditor_link_footer\" class=\"qmsckeditor button__groups row\">\r\n <div class=\"col-12 mt-3 pl-3 pr-3 ps-3 pe-3\">\r\n <button class=\"save\" mat-flat-button (click)=\"setLink()\" [disabled]=\"disableOkButton()\">\r\n {{ LANG.QMSCKEDITOR.OK }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>",
9877
+ template: "<div id=\"qmsckeditor_link\" class=\"qmsckeditor qmsckeditor__link__container\">\r\n <div id=\"qmsckeditor_link_header\">\r\n <span id=\"qmsckeditor_link_header_001\" mat-icon-button class=\"qmsckeditor button__close\" (click)=\"onCloseDialog()\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n <div id=\"qmsckeditor_link_header_002\" mat-dialog-content>\r\n <h2 id=\"qmsckeditor_link_header_001\">\r\n {{ LANG.QMSCKEDITOR.LINK }}\r\n </h2>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor_link_type\" class=\"row\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_TYPE }}</mat-label>\r\n <mat-select disableOptionCentering name=\"linkTypeList\" [(ngModel)]=\"selectedLinkType\"\r\n (ngModelChange)=\"onSelectedLinkType()\">\r\n <mat-option *ngFor=\"let link of linkTypes\" [value]=\"link.id\">\r\n {{ link.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n\r\n <div id=\"qmsckeditor_link_content\">\r\n <form [formGroup]=\"linkFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.url\">\r\n <div id=\"qmsckeditor_link_url\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_url_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\r\n (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.URL_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_url_001\" class=\"row mt-2\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.TARGET }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedTarget\" formControlName=\"targetList\" disableOptionCentering>\r\n <mat-option *ngFor=\"let target of targets\" [value]=\"target.id\">\r\n {{ target.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_url_002\" class=\"row\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.PROTOCOL }}</mat-label>\r\n <mat-select [(ngModel)]=\"selectedProtocol\" formControlName=\"protocolList\" disableOptionCentering>\r\n <mat-option *ngFor=\"let protocol of protocols\" [value]=\"protocol.id\">\r\n {{ protocol.name }}\r\n </mat-option>\r\n </mat-select>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_url_003\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_URL }}</mat-label>\r\n <input matInput [(ngModel)]=\"url\" name=\"url\" formControlName=\"url\"\r\n (ngModelChange)=\"getUrlToSetProtocol()\" />\r\n <mat-error *ngIf=\"linkFormGroup.get('url').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_url_004\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.TITLE }}</mat-label>\r\n <input matInput [(ngModel)]=\"advisoryTitle\" formControlName=\"advisoryTitle\" />\r\n <mat-error *ngIf=\"linkFormGroup.get('advisoryTitle').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_url_005\" class=\"qmsckeditor button__groups row\">\r\n <div class=\"col-6 pl-3 ps-3\">\r\n <button class=\"save\" mat-flat-button (click)=\"eHandbook(false, false)\">\r\n {{ LANG.QMSCKEDITOR.DOCUMENT_PROCESS }}\r\n </button>\r\n </div>\r\n <div class=\"col-6 pr-3 pe-3\">\r\n <button class=\"save\" mat-flat-button (click)=\"attachment()\">\r\n {{ LANG.QMSCKEDITOR.ATTACHMENT }}\r\n </button>\r\n </div>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n\r\n <form [formGroup]=\"anchorTextFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.anchorText\">\r\n <div id=\"qmsckeditor_link_anchor_text\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_anchor_text_panel\" [expanded]=\"isExpanded\"\r\n (opened)=\"isExpanded = true\" (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.ANCHOR_TEXT_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_anchor_text_001\" class=\"row mt-2\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.ANCHOR_BY_NAME }}</mat-label>\r\n <mat-select [(ngModel)]=\"anchorText\" formControlName=\"anchorText\">\r\n <mat-option *ngFor=\"let editorAnchor of editorAnchors\" [value]=\"editorAnchor.anchorValue\"\r\n disableOptionCentering>\r\n {{ editorAnchor.viewValue }}\r\n </mat-option>\r\n </mat-select>\r\n <mat-error *ngIf=\"\r\n anchorTextFormGroup.get('anchorText').hasError('required')\r\n \" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n\r\n <form [formGroup]=\"emailFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.email\">\r\n <div id=\"qmsckeditor_link_email\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_email_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\r\n (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.EMAIL_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_email_001\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_ADDRESS }}</mat-label>\r\n <input matInput [(ngModel)]=\"emailAddress\" formControlName=\"emailAddress\" />\r\n <mat-error *ngIf=\"emailFormGroup.get('emailAddress').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_email_002\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_SUBJECT }}</mat-label>\r\n <input matInput [(ngModel)]=\"emailSubject\" formControlName=\"emailSubject\" />\r\n <mat-error *ngIf=\"emailFormGroup.get('emailSubject').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_email_003\" class=\"row\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.EMAIL_BODY }}</mat-label>\r\n <textarea matInput [(ngModel)]=\"emailBody\" formControlName=\"emailBody\"></textarea>\r\n <mat-error *ngIf=\"emailFormGroup.get('emailBody').hasError('required')\" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n\r\n <form [formGroup]=\"anchorDocFormGroup\" class=\"qmsckeditor link__content height row\"\r\n *ngIf=\"selectedLinkType == LinkType.anchorDocument\">\r\n <div id=\"qmsckeditor_link_anchor_doc\" class=\"col-12 mt-1 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-expansion-panel id=\"qmsckeditor_link_email_panel\" [expanded]=\"isExpanded\" (opened)=\"isExpanded = true\"\r\n (closed)=\"isExpanded = false\">\r\n <mat-expansion-panel-header>\r\n <mat-panel-title>\r\n {{ LANG.QMSCKEDITOR.DOCUMENT_HEADER }}\r\n </mat-panel-title>\r\n </mat-expansion-panel-header>\r\n <div id=\"qmsckeditor_link_anchor_doc_001\" class=\"qmsckeditor button__groups row\">\r\n <div class=\"col-6 pl-3 ps-3\">\r\n <button class=\"cancel\" mat-flat-button (click)=\"eHandbook(true, true)\">\r\n {{ LANG.QMSCKEDITOR.HANDBOOK }}\r\n </button>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor_link_anchor_doc_002\" class=\"row mt-4\">\r\n <mat-form-field class=\"col-12 pl-3 pr-3 ps-3 pe-3\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.DOCUMENT }}</mat-label>\r\n <input matInput [(ngModel)]=\"anchorTitle\" formControlName=\"anchorTitle\" />\r\n <mat-error *ngIf=\"\r\n anchorDocFormGroup.get('anchorTitle').hasError('required')\r\n \" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n <div id=\"qmsckeditor_link_anchor_doc_003\" class=\"row mt-2\">\r\n <mat-form-field appearance=\"fill\" class=\"col-12 pl-3 pr-3 ps-3 pe-3\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.ANCHOR_BY_NAME }}</mat-label>\r\n <mat-select [(ngModel)]=\"anchorByName\" formControlName=\"anchorByName\" disableOptionCentering>\r\n <mat-option *ngFor=\"let docAnchor of documentAnchors\" [value]=\"docAnchor.anchorValue\">\r\n {{ docAnchor.viewValue }}\r\n </mat-option>\r\n </mat-select>\r\n <mat-error *ngIf=\"\r\n anchorDocFormGroup.get('anchorByName').hasError('required')\r\n \" class=\"mt5\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </mat-expansion-panel>\r\n </div>\r\n </form>\r\n </div>\r\n\r\n <div id=\"qmsckeditor_link_footer\" class=\"qmsckeditor button__groups row\">\r\n <div class=\"col-12 mt-3 pl-3 pr-3 ps-3 pe-3\">\r\n <button class=\"save\" mat-flat-button (click)=\"setLink()\" [disabled]=\"disableOkButton()\">\r\n {{ LANG.QMSCKEDITOR.OK }}\r\n </button>\r\n </div>\r\n </div>\r\n</div>",
9841
9878
  styles: [".mt5{margin-top:5px!important}.mt10{margin-top:10px!important}.mt7{margin-top:7px!important}.mt15{margin-top:15px!important}.mt20{margin-top:20px!important}.mt30{margin-top:30px!important}.mt40{margin-top:40px!important}.ml2{margin-left:2px!important}.ml3{margin-left:3px!important}.ml5{margin-left:5px!important}.ml15{margin-left:15px!important}.ml10{margin-left:10px!important}.ml12{margin-left:12px!important}.ml16{margin-left:16px!important}.ml-auto{margin-left:auto!important}.ml-25{margin-left:-25px!important}.mr5{margin-right:5px!important}.mr12{margin-right:12px!important}.mr15{margin-right:15px!important}.mb5{margin-bottom:5px!important}.mb10{margin-bottom:10px!important}.mb15{margin-bottom:15px!important}.pt8{padding-top:8px!important}.pt10{padding-top:10px!important}.pt15{padding-top:15px!important}.pt16{padding-top:16px!important}.pl15{padding-left:15px!important}.pl0{padding-left:0!important}.pr0{padding-right:0!important}.pr15{padding-right:15px!important}.fs12{font-size:12px}.fs14{font-size:14px!important}.fs16{font-size:16px!important}.fs22{font-size:22px!important}.fw500{font-weight:500!important}.italic-text{font-style:italic}.display-flex{display:flex}.qmsckeditor{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.qmsckeditor h2{font-size:20px;font-weight:400}.qmsckeditor .mat-dialog-content{padding:0}.qmsckeditor .mat-icon{color:#909497}.qmsckeditor__fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;overflow-y:auto;max-height:100vh;overflow-x:hidden}.qmsckeditor__cursor{cursor:pointer}.qmsckeditor__notallowed{cursor:not-allowed}.qmsckeditor.button__close,.qmsckeditor.button__done{float:right;top:-24px;right:-24px;cursor:pointer}.qmsckeditor.button__done{margin-right:20px}.qmsckeditor.button__done .mat-icon{color:#28a745;font-weight:700}.qmsckeditor.button__groups button{min-height:40px;width:100%;border-radius:4px;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px}.qmsckeditor.button__groups .save{background:#f8f9f9}.qmsckeditor.button__groups .save:hover{background:#e5e7e9}.qmsckeditor.button__groups .save:disabled{cursor:not-allowed}.qmsckeditor.button__groups .cancel{background:#f8f9f9}.qmsckeditor.button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.button__groups .cancel:disabled{cursor:not-allowed}.qmsckeditor.button__groups .delete{background:#f8f9f9}.qmsckeditor.button__groups .delete:hover{background:#e5e7e9}.qmsckeditor.button__groups .delete:disabled{cursor:not-allowed}.qmsckeditor.confirm__button__groups button{min-height:36px;border-radius:4px;width:auto;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px}.qmsckeditor.confirm__button__groups .confirm{background:#f8f9f9}.qmsckeditor.confirm__button__groups .confirm:hover{background:#e5e7e9}.qmsckeditor.confirm__button__groups .cancel{background:#f8f9f9}.qmsckeditor.confirm__button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.template-content.height{min-height:420px;max-height:520px;overflow:auto}.qmsckeditor.template-content.title{margin-left:-9px}.qmsckeditor.link__content.height{min-height:400px;max-height:520px}.qmsckeditor.card{margin-bottom:10px;min-height:60px;box-shadow:none;border:1px solid #e5e5e5}.qmsckeditor.card .title{font-weight:700}.qmsckeditor.card .content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qmsckeditor.card .material-icons{font-size:20px}.qmsckeditor.tooltip-content.height{min-height:400px;max-height:472px;overflow:auto}.qmsckeditor.save__as__template.height{height:125px}.ck-content .ck-horizontal-line,.ck-content .page-break{width:100%}.ck-content hr{background:#ccc}.ck-font-size-dropdown .ck-dropdown__panel ul{max-height:320px;overflow-y:auto}.ck-font-size-dropdown .ck-dropdown__panel ul li .ck-fontsize-option .ck-button__label{line-height:50px}.qmsckeditor__link__container textarea.mat-input-element{min-height:130px}"]
9842
9879
  },] }
9843
9880
  ];
@@ -9846,9 +9883,13 @@
9846
9883
  { type: dialog.MatDialog },
9847
9884
  { type: TranslateLibraryService },
9848
9885
  { type: QMSCKEditorLinkService },
9886
+ { type: QMSCKEditorCommonService },
9849
9887
  { type: dialog.MatDialogRef },
9850
9888
  { type: QMSCKEditorLink, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
9851
- ]; };
9889
+ ]; };
9890
+ QMSCKEditorLinkComponent.propDecorators = {
9891
+ ckEditor: [{ type: i0.Input }]
9892
+ };
9852
9893
 
9853
9894
  // @dynamic
9854
9895
  var QMSCKEditorInjector = /** @class */ (function () {
@@ -9963,12 +10004,13 @@
9963
10004
 
9964
10005
  var QMSCKEditorTemplateComponent = /** @class */ (function (_super) {
9965
10006
  __extends(QMSCKEditorTemplateComponent, _super);
9966
- function QMSCKEditorTemplateComponent(cdr, dialog, translate, templateService, dialogRef, data) {
10007
+ function QMSCKEditorTemplateComponent(cdr, dialog, translate, templateService, commonService, dialogRef, data) {
9967
10008
  var _this = _super.call(this) || this;
9968
10009
  _this.cdr = cdr;
9969
10010
  _this.dialog = dialog;
9970
10011
  _this.translate = translate;
9971
10012
  _this.templateService = templateService;
10013
+ _this.commonService = commonService;
9972
10014
  _this.dialogRef = dialogRef;
9973
10015
  _this.data = data;
9974
10016
  _this.templateFormGroup = new forms.FormGroup({
@@ -10000,7 +10042,9 @@
10000
10042
  this.cdr.detectChanges();
10001
10043
  };
10002
10044
  QMSCKEditorTemplateComponent.prototype.onCloseDialog = function () {
10045
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
10003
10046
  this.dialogRef.close();
10047
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
10004
10048
  };
10005
10049
  QMSCKEditorTemplateComponent.prototype.getTemplate = function () {
10006
10050
  var _this = this;
@@ -10117,7 +10161,9 @@
10117
10161
  });
10118
10162
  };
10119
10163
  QMSCKEditorTemplateComponent.prototype.cancelTemplate = function () {
10164
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
10120
10165
  this.dialogRef.close();
10166
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
10121
10167
  };
10122
10168
  QMSCKEditorTemplateComponent.prototype.updateTemplate = function () {
10123
10169
  var _this = this;
@@ -10127,7 +10173,9 @@
10127
10173
  .subscribe(function (result) {
10128
10174
  if (result) {
10129
10175
  if (_this.isEdit) {
10176
+ var scrollTop = _this.commonService.getScrollTopCkeditor(_this.ckEditor);
10130
10177
  _this.dialogRef.close(_this.template);
10178
+ _this.commonService.setScrollTopEditorContainer(_this.ckEditor, scrollTop);
10131
10179
  }
10132
10180
  else {
10133
10181
  var index = _this.templates.findIndex(function (x) {
@@ -10164,17 +10212,22 @@
10164
10212
  { type: dialog.MatDialog },
10165
10213
  { type: TranslateLibraryService },
10166
10214
  { type: QMSCKEditorTemplateService },
10215
+ { type: QMSCKEditorCommonService },
10167
10216
  { type: dialog.MatDialogRef },
10168
10217
  { type: QMSCKEditorTemplate, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
10169
- ]; };
10218
+ ]; };
10219
+ QMSCKEditorTemplateComponent.propDecorators = {
10220
+ ckEditor: [{ type: i0.Input }]
10221
+ };
10170
10222
 
10171
10223
  var QMSCKEditorLoadTemplateComponent = /** @class */ (function (_super) {
10172
10224
  __extends(QMSCKEditorLoadTemplateComponent, _super);
10173
- function QMSCKEditorLoadTemplateComponent(dialog, translate, templateService, dialogRef, data) {
10225
+ function QMSCKEditorLoadTemplateComponent(dialog, translate, templateService, commonService, dialogRef, data) {
10174
10226
  var _this = _super.call(this) || this;
10175
10227
  _this.dialog = dialog;
10176
10228
  _this.translate = translate;
10177
10229
  _this.templateService = templateService;
10230
+ _this.commonService = commonService;
10178
10231
  _this.dialogRef = dialogRef;
10179
10232
  _this.data = data;
10180
10233
  _this.templates = [];
@@ -10191,7 +10244,9 @@
10191
10244
  this.getTemplate();
10192
10245
  };
10193
10246
  QMSCKEditorLoadTemplateComponent.prototype.onCloseDialog = function () {
10247
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
10194
10248
  this.dialogRef.close();
10249
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
10195
10250
  };
10196
10251
  QMSCKEditorLoadTemplateComponent.prototype.getTemplate = function () {
10197
10252
  var _this = this;
@@ -10227,7 +10282,9 @@
10227
10282
  content: content,
10228
10283
  isReplace: _this.isReplace,
10229
10284
  };
10285
+ var scrollTop = _this.commonService.getScrollTopCkeditor(_this.ckEditor);
10230
10286
  _this.dialogRef.close(detail);
10287
+ _this.commonService.setScrollTopEditorContainer(_this.ckEditor, scrollTop);
10231
10288
  }
10232
10289
  });
10233
10290
  };
@@ -10246,6 +10303,7 @@
10246
10303
  data: data,
10247
10304
  disableClose: true
10248
10305
  });
10306
+ dialogTemplate.componentInstance.ckEditor = this.ckEditor;
10249
10307
  dialogTemplate
10250
10308
  .afterClosed()
10251
10309
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -10304,9 +10362,13 @@
10304
10362
  { type: dialog.MatDialog },
10305
10363
  { type: TranslateLibraryService },
10306
10364
  { type: QMSCKEditorTemplateService },
10365
+ { type: QMSCKEditorCommonService },
10307
10366
  { type: dialog.MatDialogRef },
10308
10367
  { type: String, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
10309
- ]; };
10368
+ ]; };
10369
+ QMSCKEditorLoadTemplateComponent.propDecorators = {
10370
+ ckEditor: [{ type: i0.Input }]
10371
+ };
10310
10372
 
10311
10373
  var QmsUploadAdapter = /** @class */ (function () {
10312
10374
  function QmsUploadAdapter(loader, config) {
@@ -14501,12 +14563,13 @@
14501
14563
 
14502
14564
  var SaveTemplateComponent = /** @class */ (function (_super) {
14503
14565
  __extends(SaveTemplateComponent, _super);
14504
- function SaveTemplateComponent(translate, bmpnService, bpmnApiService, flowchartService, dialogRef, data) {
14566
+ function SaveTemplateComponent(translate, bmpnService, bpmnApiService, flowchartService, commonService, dialogRef, data) {
14505
14567
  var _this = _super.call(this) || this;
14506
14568
  _this.translate = translate;
14507
14569
  _this.bmpnService = bmpnService;
14508
14570
  _this.bpmnApiService = bpmnApiService;
14509
14571
  _this.flowchartService = flowchartService;
14572
+ _this.commonService = commonService;
14510
14573
  _this.dialogRef = dialogRef;
14511
14574
  _this.data = data;
14512
14575
  _this.saveFormGroup = new forms.FormGroup({
@@ -14556,7 +14619,9 @@
14556
14619
  if (result) {
14557
14620
  QMSCKEditorToastService.success(_this.LANG.QMSCKEDITOR.SAVED);
14558
14621
  _this.flowchart.id = result;
14622
+ var scrollTop = _this.commonService.getScrollTopCkeditor(_this.ckEditor);
14559
14623
  _this.dialogRef.close(_this.flowchart);
14624
+ _this.commonService.setScrollTopEditorContainer(_this.ckEditor, scrollTop);
14560
14625
  }
14561
14626
  else {
14562
14627
  QMSCKEditorToastService.error(_this.LANG.QMSCKEDITOR.SAVE_FAILED);
@@ -14565,7 +14630,9 @@
14565
14630
  }
14566
14631
  };
14567
14632
  SaveTemplateComponent.prototype.onCloseDialog = function () {
14633
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
14568
14634
  this.dialogRef.close();
14635
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
14569
14636
  };
14570
14637
  return SaveTemplateComponent;
14571
14638
  }(QMSCKEditorBaseComponent));
@@ -14581,9 +14648,13 @@
14581
14648
  { type: BpmnService },
14582
14649
  { type: QMSCKEditorBpmnApiService },
14583
14650
  { type: QMSCKEditorFlowchartService },
14651
+ { type: QMSCKEditorCommonService },
14584
14652
  { type: dialog.MatDialogRef },
14585
14653
  { type: QMSCKEditorSaveAsTemplate, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
14586
- ]; };
14654
+ ]; };
14655
+ SaveTemplateComponent.propDecorators = {
14656
+ ckEditor: [{ type: i0.Input }]
14657
+ };
14587
14658
 
14588
14659
  var ShapeFlowChartConnectionType;
14589
14660
  (function (ShapeFlowChartConnectionType) {
@@ -14647,7 +14718,7 @@
14647
14718
  }());
14648
14719
  var QMSCKEditorBpmnComponent = /** @class */ (function (_super) {
14649
14720
  __extends(QMSCKEditorBpmnComponent, _super);
14650
- function QMSCKEditorBpmnComponent(dialog, translate, bpmnService, bpmnApiService, linkService, uploadService, dialogRef, data) {
14721
+ function QMSCKEditorBpmnComponent(dialog, translate, bpmnService, bpmnApiService, linkService, uploadService, commonService, dialogRef, data) {
14651
14722
  var _this = _super.call(this) || this;
14652
14723
  _this.dialog = dialog;
14653
14724
  _this.translate = translate;
@@ -14655,6 +14726,7 @@
14655
14726
  _this.bpmnApiService = bpmnApiService;
14656
14727
  _this.linkService = linkService;
14657
14728
  _this.uploadService = uploadService;
14729
+ _this.commonService = commonService;
14658
14730
  _this.dialogRef = dialogRef;
14659
14731
  _this.data = data;
14660
14732
  _this.expandedPanel = true;
@@ -14866,7 +14938,7 @@
14866
14938
  };
14867
14939
  QMSCKEditorBpmnComponent.prototype.onInsertImage = function () {
14868
14940
  return __awaiter(this, void 0, void 0, function () {
14869
- var graph, paper, clientRect, graphObject, id, imageContent, _b, file, relativeUrl, imagemap, result;
14941
+ var graph, paper, clientRect, graphObject, id, imageContent, _b, file, relativeUrl, imagemap, result, scrollTop;
14870
14942
  return __generator(this, function (_c) {
14871
14943
  switch (_c.label) {
14872
14944
  case 0:
@@ -14887,14 +14959,18 @@
14887
14959
  relativeUrl = _c.sent();
14888
14960
  imagemap = this.toImageMap(id, graphObject.cells, clientRect);
14889
14961
  result = { key: CKEditorEventConst.QMSCK_BPMN + "#" + id, values: relativeUrl, imagemap: imagemap };
14962
+ scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
14890
14963
  this.dialogRef.close(result);
14964
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
14891
14965
  return [2 /*return*/];
14892
14966
  }
14893
14967
  });
14894
14968
  });
14895
14969
  };
14896
14970
  QMSCKEditorBpmnComponent.prototype.onCloseDialog = function () {
14971
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
14897
14972
  this.dialogRef.close();
14973
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
14898
14974
  };
14899
14975
  QMSCKEditorBpmnComponent.prototype.removeLink = function () {
14900
14976
  var _this = this;
@@ -15099,6 +15175,7 @@
15099
15175
  data: data,
15100
15176
  disableClose: true
15101
15177
  });
15178
+ dialogTemplate.componentInstance.ckEditor = this.ckEditor;
15102
15179
  dialogTemplate
15103
15180
  .afterClosed()
15104
15181
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -15460,10 +15537,12 @@
15460
15537
  { type: QMSCKEditorBpmnApiService },
15461
15538
  { type: QMSCKEditorLinkService },
15462
15539
  { type: QMSCKEditorUploadService },
15540
+ { type: QMSCKEditorCommonService },
15463
15541
  { type: dialog.MatDialogRef },
15464
15542
  { type: QMSCKEditorBpmnData, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
15465
15543
  ]; };
15466
15544
  QMSCKEditorBpmnComponent.propDecorators = {
15545
+ ckEditor: [{ type: i0.Input }],
15467
15546
  onMessage: [{ type: i0.HostListener, args: ['window:message', ['$event'],] }]
15468
15547
  };
15469
15548
 
@@ -17469,7 +17548,7 @@
17469
17548
 
17470
17549
  var QMSCKEditorImageMapComponent = /** @class */ (function (_super) {
17471
17550
  __extends(QMSCKEditorImageMapComponent, _super);
17472
- function QMSCKEditorImageMapComponent(renderer, cdr, dialog, translate, linkService, dialogRef, data, iconRegistry, sanitizer) {
17551
+ function QMSCKEditorImageMapComponent(renderer, cdr, dialog, translate, linkService, dialogRef, commonService, data, iconRegistry, sanitizer) {
17473
17552
  var _this = _super.call(this) || this;
17474
17553
  _this.renderer = renderer;
17475
17554
  _this.cdr = cdr;
@@ -17477,6 +17556,7 @@
17477
17556
  _this.translate = translate;
17478
17557
  _this.linkService = linkService;
17479
17558
  _this.dialogRef = dialogRef;
17559
+ _this.commonService = commonService;
17480
17560
  _this.data = data;
17481
17561
  _this.linkTypes = [];
17482
17562
  _this.targets = [];
@@ -17777,7 +17857,9 @@
17777
17857
  this.cdr.detectChanges();
17778
17858
  };
17779
17859
  QMSCKEditorImageMapComponent.prototype.onCloseDialog = function () {
17860
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
17780
17861
  this.dialogRef.close();
17862
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
17781
17863
  };
17782
17864
  QMSCKEditorImageMapComponent.prototype.onModeChange = function (e) {
17783
17865
  this.selectedMode = e.value;
@@ -17952,10 +18034,13 @@
17952
18034
  var data = this.myImageMap.getMapJson();
17953
18035
  data.imageHeight = this.naturalImageHeight;
17954
18036
  data.imageWidth = this.naturalImageWidth;
18037
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
17955
18038
  this.dialogRef.close(data);
18039
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
17956
18040
  };
17957
18041
  QMSCKEditorImageMapComponent.prototype.cancel = function () {
17958
- this.dialogRef.close();
18042
+ //this.dialogRef.close();
18043
+ this.onCloseDialog();
17959
18044
  };
17960
18045
  return QMSCKEditorImageMapComponent;
17961
18046
  }(QMSCKEditorBaseComponent));
@@ -17973,11 +18058,13 @@
17973
18058
  { type: TranslateLibraryService },
17974
18059
  { type: QMSCKEditorLinkService },
17975
18060
  { type: dialog.MatDialogRef },
18061
+ { type: QMSCKEditorCommonService },
17976
18062
  { type: QMSCKEditorImageMap, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
17977
18063
  { type: icon.MatIconRegistry },
17978
18064
  { type: platformBrowser.DomSanitizer }
17979
18065
  ]; };
17980
18066
  QMSCKEditorImageMapComponent.propDecorators = {
18067
+ ckEditor: [{ type: i0.Input }],
17981
18068
  myImageRef: [{ type: i0.ViewChild, args: ['myImage',] }],
17982
18069
  myStatusRef: [{ type: i0.ViewChild, args: ['myStatus',] }]
17983
18070
  };
@@ -17992,11 +18079,12 @@
17992
18079
 
17993
18080
  var QMSCKEditorTooltipComponent = /** @class */ (function (_super) {
17994
18081
  __extends(QMSCKEditorTooltipComponent, _super);
17995
- function QMSCKEditorTooltipComponent(cdr, translate, dialogRef, data) {
18082
+ function QMSCKEditorTooltipComponent(cdr, translate, dialogRef, commonService, data) {
17996
18083
  var _this = _super.call(this) || this;
17997
18084
  _this.cdr = cdr;
17998
18085
  _this.translate = translate;
17999
18086
  _this.dialogRef = dialogRef;
18087
+ _this.commonService = commonService;
18000
18088
  _this.data = data;
18001
18089
  _this.tooltipFormGroup = new forms.FormGroup({
18002
18090
  title: new forms.FormControl('', [forms.Validators.required]),
@@ -18019,7 +18107,9 @@
18019
18107
  this.cdr.detectChanges();
18020
18108
  };
18021
18109
  QMSCKEditorTooltipComponent.prototype.onCloseDialog = function () {
18110
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
18022
18111
  this.dialogRef.close();
18112
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
18023
18113
  };
18024
18114
  QMSCKEditorTooltipComponent.prototype.getOutputContent = function (content) {
18025
18115
  this.tooltip.content = content;
@@ -18042,10 +18132,12 @@
18042
18132
  var tooltip = new QMSCKEditorTooltip();
18043
18133
  tooltip.content = this.tooltip.content;
18044
18134
  tooltip.text = this.tooltip.text;
18135
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
18045
18136
  this.dialogRef.close(tooltip);
18137
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
18046
18138
  };
18047
18139
  QMSCKEditorTooltipComponent.prototype.cancelTooltip = function () {
18048
- this.dialogRef.close();
18140
+ this.onCloseDialog();
18049
18141
  };
18050
18142
  return QMSCKEditorTooltipComponent;
18051
18143
  }(QMSCKEditorBaseComponent));
@@ -18060,15 +18152,20 @@
18060
18152
  { type: i0.ChangeDetectorRef },
18061
18153
  { type: TranslateLibraryService },
18062
18154
  { type: dialog.MatDialogRef },
18155
+ { type: QMSCKEditorCommonService },
18063
18156
  { type: QMSCKEditorTooltip, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
18064
- ]; };
18157
+ ]; };
18158
+ QMSCKEditorTooltipComponent.propDecorators = {
18159
+ ckEditor: [{ type: i0.Input }]
18160
+ };
18065
18161
 
18066
18162
  var QMSCKEditorAboutComponent = /** @class */ (function (_super) {
18067
18163
  __extends(QMSCKEditorAboutComponent, _super);
18068
- function QMSCKEditorAboutComponent(translate, dialogRef, data) {
18164
+ function QMSCKEditorAboutComponent(translate, dialogRef, commonService, data) {
18069
18165
  var _this = _super.call(this) || this;
18070
18166
  _this.translate = translate;
18071
18167
  _this.dialogRef = dialogRef;
18168
+ _this.commonService = commonService;
18072
18169
  _this.data = data;
18073
18170
  _this.currentVersion = data;
18074
18171
  return _this;
@@ -18083,7 +18180,9 @@
18083
18180
  this.currentYear = new Date().getFullYear();
18084
18181
  };
18085
18182
  QMSCKEditorAboutComponent.prototype.onCloseDialog = function () {
18183
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
18086
18184
  this.dialogRef.close();
18185
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
18087
18186
  };
18088
18187
  return QMSCKEditorAboutComponent;
18089
18188
  }(QMSCKEditorBaseComponent));
@@ -18097,8 +18196,12 @@
18097
18196
  QMSCKEditorAboutComponent.ctorParameters = function () { return [
18098
18197
  { type: TranslateLibraryService },
18099
18198
  { type: dialog.MatDialogRef },
18199
+ { type: QMSCKEditorCommonService },
18100
18200
  { type: String, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
18101
- ]; };
18201
+ ]; };
18202
+ QMSCKEditorAboutComponent.propDecorators = {
18203
+ ckEditor: [{ type: i0.Input }]
18204
+ };
18102
18205
 
18103
18206
  /*! Rappid v3.3.0 - HTML5 Diagramming Framework
18104
18207
 
@@ -24127,19 +24230,21 @@
24127
24230
 
24128
24231
  var QMSCKEditorFlowchartComponent = /** @class */ (function (_super) {
24129
24232
  __extends(QMSCKEditorFlowchartComponent, _super);
24130
- function QMSCKEditorFlowchartComponent(dialog, element, translate, flowchartService, uploadService, dialogRef, data) {
24233
+ function QMSCKEditorFlowchartComponent(dialog, element, translate, flowchartService, uploadService, commonService, dialogRef, data) {
24131
24234
  var _this = _super.call(this) || this;
24132
24235
  _this.dialog = dialog;
24133
24236
  _this.element = element;
24134
24237
  _this.translate = translate;
24135
24238
  _this.flowchartService = flowchartService;
24136
24239
  _this.uploadService = uploadService;
24240
+ _this.commonService = commonService;
24137
24241
  _this.dialogRef = dialogRef;
24138
24242
  _this.data = data;
24139
24243
  _this.jsonContent = '';
24140
24244
  _this.id = '';
24141
24245
  _this.flowchart = new QMSCKEditorFlowchart();
24142
24246
  _this.flowchartTemplates = [];
24247
+ _this.ckEditorContainer = document.getElementsByClassName("ck-editor__editable");
24143
24248
  _this.id = data;
24144
24249
  return _this;
24145
24250
  }
@@ -24330,7 +24435,7 @@
24330
24435
  };
24331
24436
  QMSCKEditorFlowchartComponent.prototype.onInsertImage = function () {
24332
24437
  return __awaiter(this, void 0, void 0, function () {
24333
- var id, imageContent, file, relativeUrl, result;
24438
+ var id, imageContent, file, relativeUrl, result, scrollTop;
24334
24439
  return __generator(this, function (_a) {
24335
24440
  switch (_a.label) {
24336
24441
  case 0: return [4 /*yield*/, this.saveImageContent()];
@@ -24344,7 +24449,9 @@
24344
24449
  case 3:
24345
24450
  relativeUrl = _a.sent();
24346
24451
  result = { key: CKEditorEventConst.QMSCK_FLOWCHART + "#" + id, values: relativeUrl };
24452
+ scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
24347
24453
  this.dialogRef.close(result);
24454
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
24348
24455
  return [2 /*return*/];
24349
24456
  }
24350
24457
  });
@@ -24412,6 +24519,7 @@
24412
24519
  data: data,
24413
24520
  disableClose: true
24414
24521
  });
24522
+ dialogTemplate.componentInstance.ckEditor = this.ckEditor;
24415
24523
  dialogTemplate
24416
24524
  .afterClosed()
24417
24525
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24451,7 +24559,9 @@
24451
24559
  });
24452
24560
  };
24453
24561
  QMSCKEditorFlowchartComponent.prototype.onCloseDialog = function () {
24562
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
24454
24563
  this.dialogRef.close();
24564
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
24455
24565
  };
24456
24566
  return QMSCKEditorFlowchartComponent;
24457
24567
  }(QMSCKEditorBaseComponent));
@@ -24468,19 +24578,22 @@
24468
24578
  { type: TranslateLibraryService },
24469
24579
  { type: QMSCKEditorFlowchartService },
24470
24580
  { type: QMSCKEditorUploadService },
24581
+ { type: QMSCKEditorCommonService },
24471
24582
  { type: dialog.MatDialogRef },
24472
24583
  { type: String, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
24473
24584
  ]; };
24474
24585
  QMSCKEditorFlowchartComponent.propDecorators = {
24586
+ ckEditor: [{ type: i0.Input }],
24475
24587
  onMessage: [{ type: i0.HostListener, args: ['window:message', ['$event'],] }]
24476
24588
  };
24477
24589
 
24478
24590
  var QmsCkeditorLinkSimpleComponent = /** @class */ (function (_super) {
24479
24591
  __extends(QmsCkeditorLinkSimpleComponent, _super);
24480
- function QmsCkeditorLinkSimpleComponent(dialogRef, translate, data) {
24592
+ function QmsCkeditorLinkSimpleComponent(dialogRef, translate, commonService, data) {
24481
24593
  var _this = _super.call(this) || this;
24482
24594
  _this.dialogRef = dialogRef;
24483
24595
  _this.translate = translate;
24596
+ _this.commonService = commonService;
24484
24597
  _this.data = data;
24485
24598
  _this.urlFormControl = new forms.FormControl('', [forms.Validators.required]);
24486
24599
  return _this;
@@ -24506,22 +24619,33 @@
24506
24619
  var link = new QMSCKEditorLink();
24507
24620
  link.targetId = exports.TargetType.new;
24508
24621
  link.url = "" + exports.LinkType.url + exports.ProtocolType.http + this.url;
24622
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
24509
24623
  this.dialogRef.close(link);
24624
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
24625
+ };
24626
+ QmsCkeditorLinkSimpleComponent.prototype.onCloseDialog = function () {
24627
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
24628
+ this.dialogRef.close(null);
24629
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
24510
24630
  };
24511
24631
  return QmsCkeditorLinkSimpleComponent;
24512
24632
  }(QMSCKEditorBaseComponent));
24513
24633
  QmsCkeditorLinkSimpleComponent.decorators = [
24514
24634
  { type: i0.Component, args: [{
24515
24635
  selector: 'lib-qms-ckeditor-link-simple',
24516
- template: "<div id=\"qmsckeditor_link-simple\" class=\"qmsckeditor qmsckeditor__link-simple__container\">\r\n <div id=\"qmsckeditor_link-simple_header\">\r\n <span mat-icon-button class=\"qmsckeditor button__close\" [mat-dialog-close]=\"false\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n <div mat-dialog-content>\r\n <h2>\r\n {{LANG.QMSCKEDITOR.LINK}}\r\n </h2>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor_link-simple_body\" class=\"row\">\r\n <div id=\"qmsckeditor_link-simple_url\">\r\n <mat-form-field class=\"col-12\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_URL }}</mat-label>\r\n <input matInput [(ngModel)]=\"url\" name=\"url\" [formControl]=\"urlFormControl\" />\r\n <mat-error *ngIf=\"urlFormControl.hasError('required')\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor_link-simple_footer\">\r\n <div id=\"qmsckeditor_link-simple_action\" align=\"end\">\r\n <button qms-btn-text [mat-dialog-close]=\"false\">{{LANG.CANCEL}}</button>\r\n <button qms-btn (click)=\"setLink()\">{{LANG.SAVE}}</button>\r\n </div>\r\n </div>\r\n</div>",
24636
+ template: "<div id=\"qmsckeditor_link-simple\" class=\"qmsckeditor qmsckeditor__link-simple__container\">\r\n <div id=\"qmsckeditor_link-simple_header\">\r\n <span mat-icon-button class=\"qmsckeditor button__close\" (click)=\"onCloseDialog()\">\r\n <mat-icon>close</mat-icon>\r\n </span>\r\n <div mat-dialog-content>\r\n <h2>\r\n {{LANG.QMSCKEDITOR.LINK}}\r\n </h2>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor_link-simple_body\" class=\"row\">\r\n <div id=\"qmsckeditor_link-simple_url\">\r\n <mat-form-field class=\"col-12\" appearance=\"fill\">\r\n <mat-label>{{ LANG.QMSCKEDITOR.LINK_URL }}</mat-label>\r\n <input matInput [(ngModel)]=\"url\" name=\"url\" [formControl]=\"urlFormControl\" />\r\n <mat-error *ngIf=\"urlFormControl.hasError('required')\">\r\n </mat-error>\r\n </mat-form-field>\r\n </div>\r\n </div>\r\n <div id=\"qmsckeditor_link-simple_footer\">\r\n <div id=\"qmsckeditor_link-simple_action\" align=\"end\">\r\n <button qms-btn-text (click)=\"onCloseDialog()\">{{LANG.CANCEL}}</button>\r\n <button qms-btn (click)=\"setLink()\">{{LANG.SAVE}}</button>\r\n </div>\r\n </div>\r\n</div>",
24517
24637
  styles: [".mt5{margin-top:5px!important}.mt10{margin-top:10px!important}.mt7{margin-top:7px!important}.mt15{margin-top:15px!important}.mt20{margin-top:20px!important}.mt30{margin-top:30px!important}.mt40{margin-top:40px!important}.ml2{margin-left:2px!important}.ml3{margin-left:3px!important}.ml5{margin-left:5px!important}.ml15{margin-left:15px!important}.ml10{margin-left:10px!important}.ml12{margin-left:12px!important}.ml16{margin-left:16px!important}.ml-auto{margin-left:auto!important}.ml-25{margin-left:-25px!important}.mr5{margin-right:5px!important}.mr12{margin-right:12px!important}.mr15{margin-right:15px!important}.mb5{margin-bottom:5px!important}.mb10{margin-bottom:10px!important}.mb15{margin-bottom:15px!important}.pt8{padding-top:8px!important}.pt10{padding-top:10px!important}.pt15{padding-top:15px!important}.pt16{padding-top:16px!important}.pl15{padding-left:15px!important}.pl0{padding-left:0!important}.pr0{padding-right:0!important}.pr15{padding-right:15px!important}.fs12{font-size:12px}.fs14{font-size:14px!important}.fs16{font-size:16px!important}.fs22{font-size:22px!important}.fw500{font-weight:500!important}.italic-text{font-style:italic}.display-flex{display:flex}.qmsckeditor{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.qmsckeditor h2{font-size:20px;font-weight:400}.qmsckeditor .mat-dialog-content{padding:0}.qmsckeditor .mat-icon{color:#909497}.qmsckeditor__fullscreen{position:fixed;top:0;left:0;right:0;bottom:0;background:#fff;overflow-y:auto;max-height:100vh;overflow-x:hidden}.qmsckeditor__cursor{cursor:pointer}.qmsckeditor__notallowed{cursor:not-allowed}.qmsckeditor.button__close,.qmsckeditor.button__done{float:right;top:-24px;right:-24px;cursor:pointer}.qmsckeditor.button__done{margin-right:20px}.qmsckeditor.button__done .mat-icon{color:#28a745;font-weight:700}.qmsckeditor.button__groups button{min-height:40px;width:100%;border-radius:4px;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px}.qmsckeditor.button__groups .save{background:#f8f9f9}.qmsckeditor.button__groups .save:hover{background:#e5e7e9}.qmsckeditor.button__groups .save:disabled{cursor:not-allowed}.qmsckeditor.button__groups .cancel{background:#f8f9f9}.qmsckeditor.button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.button__groups .cancel:disabled{cursor:not-allowed}.qmsckeditor.button__groups .delete{background:#f8f9f9}.qmsckeditor.button__groups .delete:hover{background:#e5e7e9}.qmsckeditor.button__groups .delete:disabled{cursor:not-allowed}.qmsckeditor.confirm__button__groups button{min-height:36px;border-radius:4px;width:auto;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px}.qmsckeditor.confirm__button__groups .confirm{background:#f8f9f9}.qmsckeditor.confirm__button__groups .confirm:hover{background:#e5e7e9}.qmsckeditor.confirm__button__groups .cancel{background:#f8f9f9}.qmsckeditor.confirm__button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.template-content.height{min-height:420px;max-height:520px;overflow:auto}.qmsckeditor.template-content.title{margin-left:-9px}.qmsckeditor.link__content.height{min-height:400px;max-height:520px}.qmsckeditor.card{margin-bottom:10px;min-height:60px;box-shadow:none;border:1px solid #e5e5e5}.qmsckeditor.card .title{font-weight:700}.qmsckeditor.card .content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qmsckeditor.card .material-icons{font-size:20px}.qmsckeditor.tooltip-content.height{min-height:400px;max-height:472px;overflow:auto}.qmsckeditor.save__as__template.height{height:125px}.ck-content .ck-horizontal-line,.ck-content .page-break{width:100%}.ck-content hr{background:#ccc}.ck-font-size-dropdown .ck-dropdown__panel ul{max-height:320px;overflow-y:auto}.ck-font-size-dropdown .ck-dropdown__panel ul li .ck-fontsize-option .ck-button__label{line-height:50px}"]
24518
24638
  },] }
24519
24639
  ];
24520
24640
  QmsCkeditorLinkSimpleComponent.ctorParameters = function () { return [
24521
24641
  { type: dialog.MatDialogRef },
24522
24642
  { type: TranslateLibraryService },
24643
+ { type: QMSCKEditorCommonService },
24523
24644
  { type: QMSCKEditorLink, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
24524
- ]; };
24645
+ ]; };
24646
+ QmsCkeditorLinkSimpleComponent.propDecorators = {
24647
+ ckEditor: [{ type: i0.Input }]
24648
+ };
24525
24649
 
24526
24650
  var CKEditorImageUploadTypeConst = /** @class */ (function () {
24527
24651
  function CKEditorImageUploadTypeConst() {
@@ -24554,34 +24678,34 @@
24554
24678
  }
24555
24679
  QMSCKEditorComponent.prototype.onMessage = function (event) {
24556
24680
  switch (event.data.eventName) {
24557
- case this.ckEditorEventConst.QMSCK_TEMPLATE_PLUGIN_MSG:
24681
+ case this.ckEditorEventConst.QMSCK_TEMPLATE_PLUGIN_MSG + this.editorInstance.id:
24558
24682
  this.templateEventHandling();
24559
24683
  break;
24560
- case this.ckEditorEventConst.QMSCK_LOAD_TEMPLATE_PLUGIN_MSG:
24684
+ case this.ckEditorEventConst.QMSCK_LOAD_TEMPLATE_PLUGIN_MSG + this.editorInstance.id:
24561
24685
  this.loadTemplateEventHandling();
24562
24686
  break;
24563
- case this.ckEditorEventConst.QMSCK_LINK_PLUGIN_MSG:
24687
+ case this.ckEditorEventConst.QMSCK_LINK_PLUGIN_MSG + this.editorInstance.id:
24564
24688
  this.linkEventHandling(event.data.value, this.qmsckContentFields, this.qmsckIsGetAnchorMoreContent);
24565
24689
  break;
24566
- case this.ckEditorEventConst.QMSCK_TOOLTIP_PLUGIN_MSG:
24690
+ case this.ckEditorEventConst.QMSCK_TOOLTIP_PLUGIN_MSG + this.editorInstance.id:
24567
24691
  this.tooltipEventHandling(event.data.value);
24568
24692
  break;
24569
- case this.ckEditorEventConst.QMSCK_IMAGEMAP_PLUGIN_MSG:
24693
+ case this.ckEditorEventConst.QMSCK_IMAGEMAP_PLUGIN_MSG + this.editorInstance.id:
24570
24694
  this.imageMapEventHandling(event.data.value);
24571
24695
  break;
24572
- case this.ckEditorEventConst.QMSCK_BPMN_PLUGIN_MSG:
24696
+ case this.ckEditorEventConst.QMSCK_BPMN_PLUGIN_MSG + this.editorInstance.id:
24573
24697
  this.bpmnEventHandling(event.data.value);
24574
24698
  break;
24575
- case this.ckEditorEventConst.QMSCK_ABOUT_CKEDITOR_PLUGIN_MSG:
24699
+ case this.ckEditorEventConst.QMSCK_ABOUT_CKEDITOR_PLUGIN_MSG + this.editorInstance.id:
24576
24700
  this.aboutCKEditorEventHandling(event.data.value);
24577
24701
  break;
24578
- case this.ckEditorEventConst.QMSCK_FLOWCHART_PLUGIN_MSG:
24702
+ case this.ckEditorEventConst.QMSCK_FLOWCHART_PLUGIN_MSG + this.editorInstance.id:
24579
24703
  this.flowchartEventHandling(event.data.value);
24580
24704
  break;
24581
- case this.ckEditorEventConst.QMSCK_TOGGLE_TOOLBAR_MSG:
24705
+ case this.ckEditorEventConst.QMSCK_TOGGLE_TOOLBAR_MSG + this.editorInstance.id:
24582
24706
  this.toggleToolbarEventHandling();
24583
24707
  break;
24584
- case this.ckEditorEventConst.QMSCK_BROWSE_VIDEO_MSG:
24708
+ case this.ckEditorEventConst.QMSCK_BROWSE_VIDEO_MSG + this.editorInstance.id:
24585
24709
  this.browseVideoEventHandling(event.data.value);
24586
24710
  break;
24587
24711
  default:
@@ -24603,6 +24727,9 @@
24603
24727
  toolbarItems += ',' + this.qmsckData.toggledToolbarItems;
24604
24728
  }
24605
24729
  this.ckeditorConfig = CKEditorCommonFunctions.getCKEditorConfiguration(toolbarItems);
24730
+ if (this.ckeditorConfig)
24731
+ this.ckeditorConfig.containerId = this.editorId;
24732
+ this.ckeditorConfig = CKEditorCommonFunctions.getCKEditorConfiguration(toolbarItems);
24606
24733
  if (this.qmsckData.hideImgOptions) {
24607
24734
  this.ckeditorConfig = this.hideImageOptions(this.ckeditorConfig, this.qmsckData.hideImgOptions);
24608
24735
  }
@@ -24795,7 +24922,7 @@
24795
24922
  // Apped Wordcount to CKeditor
24796
24923
  editor.plugins.get("WordCount").on("update", function (evt, stats) {
24797
24924
  // Prints the current content statistics.
24798
- var wordsBox = document.querySelector(".wordcount-content");
24925
+ var wordsBox = document.querySelector("#" + _this.editorId + " .wordcount-content");
24799
24926
  if (!!wordsBox) {
24800
24927
  wordsBox.textContent = _this.LANG.QMSCKEDITOR.WORDS + ": " + stats.words + " / " + _this.LANG.QMSCKEDITOR.CHARACTERS + ": " + stats.characters;
24801
24928
  }
@@ -24816,6 +24943,7 @@
24816
24943
  data: data,
24817
24944
  disableClose: true,
24818
24945
  });
24946
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24819
24947
  dialogTemplate
24820
24948
  .afterClosed()
24821
24949
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24836,6 +24964,7 @@
24836
24964
  data: this.qmsckContentInput,
24837
24965
  disableClose: true,
24838
24966
  });
24967
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24839
24968
  dialogTemplate
24840
24969
  .afterClosed()
24841
24970
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24853,6 +24982,8 @@
24853
24982
  */
24854
24983
  QMSCKEditorComponent.prototype.linkEventHandling = function (link, qmsckContentFields, qmsckIsGetAnchorMoreContent) {
24855
24984
  var _this = this;
24985
+ if (link.ckeditorId != this.editorInstance.id)
24986
+ return;
24856
24987
  var data = new QMSCKEditorLink();
24857
24988
  data = link;
24858
24989
  data.editorContent = this.qmsckContentInput;
@@ -24880,6 +25011,7 @@
24880
25011
  autoFocus: false,
24881
25012
  });
24882
25013
  }
25014
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24883
25015
  dialogTemplate
24884
25016
  .afterClosed()
24885
25017
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24905,6 +25037,7 @@
24905
25037
  data: data,
24906
25038
  disableClose: true,
24907
25039
  });
25040
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24908
25041
  dialogTemplate
24909
25042
  .afterClosed()
24910
25043
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24936,6 +25069,7 @@
24936
25069
  data: data,
24937
25070
  disableClose: true,
24938
25071
  });
25072
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24939
25073
  dialogTemplate
24940
25074
  .afterClosed()
24941
25075
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24966,6 +25100,7 @@
24966
25100
  data: data,
24967
25101
  disableClose: true,
24968
25102
  });
25103
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24969
25104
  dialogTemplate
24970
25105
  .afterClosed()
24971
25106
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24987,6 +25122,7 @@
24987
25122
  data: version,
24988
25123
  disableClose: true,
24989
25124
  });
25125
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24990
25126
  dialogTemplate
24991
25127
  .afterClosed()
24992
25128
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -25049,6 +25185,7 @@
25049
25185
  data: id,
25050
25186
  disableClose: true,
25051
25187
  });
25188
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
25052
25189
  dialogTemplate
25053
25190
  .afterClosed()
25054
25191
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -25181,7 +25318,7 @@
25181
25318
  ],
25182
25319
  encapsulation: i0.ViewEncapsulation.None,
25183
25320
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
25184
- styles: [".mt5{margin-top:5px!important}.mt10{margin-top:10px!important}.mt7{margin-top:7px!important}.mt15{margin-top:15px!important}.mt20{margin-top:20px!important}.mt30{margin-top:30px!important}.mt40{margin-top:40px!important}.ml2{margin-left:2px!important}.ml3{margin-left:3px!important}.ml5{margin-left:5px!important}.ml15{margin-left:15px!important}.ml10{margin-left:10px!important}.ml12{margin-left:12px!important}.ml16{margin-left:16px!important}.ml-auto{margin-left:auto!important}.ml-25{margin-left:-25px!important}.mr5{margin-right:5px!important}.mr12{margin-right:12px!important}.mr15{margin-right:15px!important}.mb5{margin-bottom:5px!important}.mb10{margin-bottom:10px!important}.mb15{margin-bottom:15px!important}.pt8{padding-top:8px!important}.pt10{padding-top:10px!important}.pt15{padding-top:15px!important}.pt16{padding-top:16px!important}.pl15{padding-left:15px!important}.pl0{padding-left:0!important}.pr0{padding-right:0!important}.pr15{padding-right:15px!important}.fs12{font-size:12px}.fs14{font-size:14px!important}.fs16{font-size:16px!important}.fs22{font-size:22px!important}.fw500{font-weight:500!important}.italic-text{font-style:italic}.display-flex{display:flex}.qmsckeditor{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.qmsckeditor h2{font-size:20px;font-weight:400}.qmsckeditor .mat-dialog-content{padding:0}.qmsckeditor .mat-icon{color:#909497}.qmsckeditor__fullscreen{overflow-y:auto;max-height:100vh;overflow-x:hidden}.qmsckeditor__cursor{cursor:pointer}.qmsckeditor__notallowed{cursor:not-allowed}.qmsckeditor.button__close,.qmsckeditor.button__done{float:right;top:-24px;right:-24px;cursor:pointer}.qmsckeditor.button__done{margin-right:20px}.qmsckeditor.button__done .mat-icon{color:#28a745;font-weight:700}.qmsckeditor.button__groups button{min-height:40px;width:100%;border-radius:4px;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px}.qmsckeditor.button__groups .save{background:#f8f9f9}.qmsckeditor.button__groups .save:hover{background:#e5e7e9}.qmsckeditor.button__groups .save:disabled{cursor:not-allowed}.qmsckeditor.button__groups .cancel{background:#f8f9f9}.qmsckeditor.button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.button__groups .cancel:disabled{cursor:not-allowed}.qmsckeditor.button__groups .delete{background:#f8f9f9}.qmsckeditor.button__groups .delete:hover{background:#e5e7e9}.qmsckeditor.button__groups .delete:disabled{cursor:not-allowed}.qmsckeditor.confirm__button__groups button{min-height:36px;border-radius:4px;width:auto;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px}.qmsckeditor.confirm__button__groups .confirm{background:#f8f9f9}.qmsckeditor.confirm__button__groups .confirm:hover{background:#e5e7e9}.qmsckeditor.confirm__button__groups .cancel{background:#f8f9f9}.qmsckeditor.confirm__button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.template-content.height{min-height:420px;max-height:520px;overflow:auto}.qmsckeditor.template-content.title{margin-left:-9px}.qmsckeditor.link__content.height{min-height:400px;max-height:520px}.qmsckeditor.card{margin-bottom:10px;min-height:60px;box-shadow:none;border:1px solid #e5e5e5}.qmsckeditor.card .title{font-weight:700}.qmsckeditor.card .content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qmsckeditor.card .material-icons{font-size:20px}.qmsckeditor.tooltip-content.height{min-height:400px;max-height:472px;overflow:auto}.qmsckeditor.save__as__template.height{height:125px}.ck-content .ck-horizontal-line,.ck-content .page-break{width:100%}.ck-content hr{background:#ccc}.ck-font-size-dropdown .ck-dropdown__panel ul{max-height:320px;overflow-y:auto}.ck-font-size-dropdown .ck-dropdown__panel ul li .ck-fontsize-option .ck-button__label{line-height:50px}.qmsckeditor_container .qmsckeditor__minwidth{width:100%}.qmsckeditor_container .ck-editor__editable{overflow-y:auto}.qmsckeditor_container p{line-height:normal}.qms-ckeditor .ck.ck-editor__editable{max-height:172px;min-height:172px;background-color:rgba(0,0,0,.04);font-family:Open Sans}.qms-ckeditor .ck.ck-editor__editable:not(.ck-focused,.ck-read-only):hover{background-color:rgba(0,0,0,.08);border-bottom:2px solid rgba(0,0,0,.38)}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar{width:12px}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-track{background:transparent;background-clip:content-box}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms-ckeditor .ck-placeholder{font-size:1rem;font-weight:600;color:rgba(0,0,0,.6)}.qms-ckeditor .ck-disabled .ck.ck-editor__main>.ck-editor__editable,.qms-ckeditor .ck-disabled .ck.ck-toolbar{background-color:var(--disabled);pointer-events:none}.qms-ckeditor .ck-disabled .ck-button{pointer-events:none}.qms-ckeditor .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused):focus{border-radius:4px}.qms-ckeditor .ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{border:1px solid #c4c4c4;border-bottom:2px solid var(--primary);border-radius:4px;box-shadow:none;background-color:rgba(0,0,0,.08)}.qms-ckeditor .ck.ck-toolbar{box-shadow:0 1px 3px rgba(51,51,51,.2)}.qms-ckeditor .ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:none;border-width:0}.qmsckeditor__fullscreen{position:fixed;top:0;left:0;bottom:0;right:0;overflow:auto;background:#fff}.qmsckeditor__fullscreen .qms-ckeditor{height:98%;display:block;width:100%}.qmsckeditor__fullscreen .ck.ck-editor__main{height:98%}.qmsckeditor__fullscreen .ck.ck-editor__editable{height:inherit}.sub-container{display:flex;justify-content:space-between;padding:0 10px;font-family:Open Sans;font-size:.75rem;font-weight:400;line-height:16px;color:rgba(0,0,0,.6)}"]
25321
+ styles: [".mt5{margin-top:5px!important}.mt10{margin-top:10px!important}.mt7{margin-top:7px!important}.mt15{margin-top:15px!important}.mt20{margin-top:20px!important}.mt30{margin-top:30px!important}.mt40{margin-top:40px!important}.ml2{margin-left:2px!important}.ml3{margin-left:3px!important}.ml5{margin-left:5px!important}.ml15{margin-left:15px!important}.ml10{margin-left:10px!important}.ml12{margin-left:12px!important}.ml16{margin-left:16px!important}.ml-auto{margin-left:auto!important}.ml-25{margin-left:-25px!important}.mr5{margin-right:5px!important}.mr12{margin-right:12px!important}.mr15{margin-right:15px!important}.mb5{margin-bottom:5px!important}.mb10{margin-bottom:10px!important}.mb15{margin-bottom:15px!important}.pt8{padding-top:8px!important}.pt10{padding-top:10px!important}.pt15{padding-top:15px!important}.pt16{padding-top:16px!important}.pl15{padding-left:15px!important}.pl0{padding-left:0!important}.pr0{padding-right:0!important}.pr15{padding-right:15px!important}.fs12{font-size:12px}.fs14{font-size:14px!important}.fs16{font-size:16px!important}.fs22{font-size:22px!important}.fw500{font-weight:500!important}.italic-text{font-style:italic}.display-flex{display:flex}.qmsckeditor{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.qmsckeditor h2{font-size:20px;font-weight:400}.qmsckeditor .mat-dialog-content{padding:0}.qmsckeditor .mat-icon{color:#909497}.qmsckeditor__fullscreen{overflow-y:auto;max-height:100vh;overflow-x:hidden}.qmsckeditor__cursor{cursor:pointer}.qmsckeditor__notallowed{cursor:not-allowed}.qmsckeditor.button__close,.qmsckeditor.button__done{float:right;top:-24px;right:-24px;cursor:pointer}.qmsckeditor.button__done{margin-right:20px}.qmsckeditor.button__done .mat-icon{color:#28a745;font-weight:700}.qmsckeditor.button__groups button{min-height:40px;width:100%;border-radius:4px;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px}.qmsckeditor.button__groups .save{background:#f8f9f9}.qmsckeditor.button__groups .save:hover{background:#e5e7e9}.qmsckeditor.button__groups .save:disabled{cursor:not-allowed}.qmsckeditor.button__groups .cancel{background:#f8f9f9}.qmsckeditor.button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.button__groups .cancel:disabled{cursor:not-allowed}.qmsckeditor.button__groups .delete{background:#f8f9f9}.qmsckeditor.button__groups .delete:hover{background:#e5e7e9}.qmsckeditor.button__groups .delete:disabled{cursor:not-allowed}.qmsckeditor.confirm__button__groups button{min-height:36px;border-radius:4px;width:auto;border:1px solid #c5c5c5;font-family:Open Sans;font-weight:600;font-size:14px;letter-spacing:1px;line-height:16px;padding-left:15px;padding-right:15px}.qmsckeditor.confirm__button__groups .confirm{background:#f8f9f9}.qmsckeditor.confirm__button__groups .confirm:hover{background:#e5e7e9}.qmsckeditor.confirm__button__groups .cancel{background:#f8f9f9}.qmsckeditor.confirm__button__groups .cancel:hover{background:#e5e7e9}.qmsckeditor.template-content.height{min-height:420px;max-height:520px;overflow:auto}.qmsckeditor.template-content.title{margin-left:-9px}.qmsckeditor.link__content.height{min-height:400px;max-height:520px}.qmsckeditor.card{margin-bottom:10px;min-height:60px;box-shadow:none;border:1px solid #e5e5e5}.qmsckeditor.card .title{font-weight:700}.qmsckeditor.card .content{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.qmsckeditor.card .material-icons{font-size:20px}.qmsckeditor.tooltip-content.height{min-height:400px;max-height:472px;overflow:auto}.qmsckeditor.save__as__template.height{height:125px}.ck-content .ck-horizontal-line,.ck-content .page-break{width:100%}.ck-content hr{background:#ccc}.ck-font-size-dropdown .ck-dropdown__panel ul{max-height:320px;overflow-y:auto}.ck-font-size-dropdown .ck-dropdown__panel ul li .ck-fontsize-option .ck-button__label{line-height:50px}.qmsckeditor_container .qmsckeditor__minwidth{width:100%}.qmsckeditor_container .ck-editor__editable{overflow-y:auto}.qmsckeditor_container p{line-height:normal}.qms-ckeditor .ck.ck-editor__editable{max-height:172px;min-height:172px;background-color:rgba(0,0,0,.04);font-family:Open Sans}.qms-ckeditor .ck.ck-editor__editable:not(.ck-focused,.ck-read-only):hover{background-color:rgba(0,0,0,.08);border-bottom:2px solid rgba(0,0,0,.38)}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar{width:12px}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-track{background:transparent;background-clip:content-box}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-thumb{background:rgba(0,0,0,.38);border-radius:20px;width:4px;border:4px solid transparent;background-clip:content-box}.qms-ckeditor .ck.ck-editor__editable::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.5);background-clip:content-box;border:4px solid transparent}.qms-ckeditor .ck-placeholder{font-size:1rem;font-weight:600;color:rgba(0,0,0,.6)}.qms-ckeditor .ck-disabled .ck.ck-editor__main>.ck-editor__editable,.qms-ckeditor .ck-disabled .ck.ck-toolbar{background-color:var(--disabled);pointer-events:none}.qms-ckeditor .ck-disabled .ck-button{pointer-events:none}.qms-ckeditor .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused):focus{border-radius:4px}.qms-ckeditor .ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{border:1px solid #c4c4c4;border-bottom:2px solid var(--primary);border-radius:4px;box-shadow:none;background-color:rgba(0,0,0,.08)}.qms-ckeditor .ck.ck-toolbar{box-shadow:0 1px 3px rgba(51,51,51,.2)}.qms-ckeditor .ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:none;border-width:0}.qmsckeditor__fullscreen{position:fixed;top:0;left:0;bottom:0;right:0;overflow:auto;background:#fff;z-index:99}.qmsckeditor__fullscreen .qms-ckeditor{height:98%;display:block;width:100%}.qmsckeditor__fullscreen .ck.ck-editor__main{height:98%}.qmsckeditor__fullscreen .ck.ck-editor__editable{height:calc(100vh - 100px);max-height:100%!important}.sub-container{display:flex;justify-content:space-between;padding:0 10px;font-family:Open Sans;font-size:.75rem;font-weight:400;line-height:16px;color:rgba(0,0,0,.6)}"]
25185
25322
  },] }
25186
25323
  ];
25187
25324
  QMSCKEditorComponent.ctorParameters = function () { return [
@@ -32770,14 +32907,15 @@
32770
32907
  exports["ɵe"] = QMSBasicTreeComponent;
32771
32908
  exports["ɵf"] = QMSCKEditorTreeService;
32772
32909
  exports["ɵg"] = QMSCKEditorTemplateComponent;
32773
- exports["ɵh"] = LinkAttachmentComponent;
32774
- exports["ɵi"] = QMSCKEditorTooltipComponent;
32775
- exports["ɵj"] = QMSCKEditorTooltip;
32776
- exports["ɵk"] = QMSCKEditorImageMapComponent;
32777
- exports["ɵl"] = QMSCKEditorImageMap;
32778
- exports["ɵm"] = QMSCKEditorBpmnData;
32779
- exports["ɵn"] = QMSCKEditorAboutComponent;
32780
- exports["ɵo"] = QMSCKEditorFlowchartComponent;
32910
+ exports["ɵh"] = QMSCKEditorCommonService;
32911
+ exports["ɵi"] = LinkAttachmentComponent;
32912
+ exports["ɵj"] = QMSCKEditorTooltipComponent;
32913
+ exports["ɵk"] = QMSCKEditorTooltip;
32914
+ exports["ɵl"] = QMSCKEditorImageMapComponent;
32915
+ exports["ɵm"] = QMSCKEditorImageMap;
32916
+ exports["ɵn"] = QMSCKEditorBpmnData;
32917
+ exports["ɵo"] = QMSCKEditorAboutComponent;
32918
+ exports["ɵp"] = QMSCKEditorFlowchartComponent;
32781
32919
 
32782
32920
  Object.defineProperty(exports, '__esModule', { value: true });
32783
32921