qms-angular 1.1.31 → 1.1.32

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.
Files changed (54) hide show
  1. package/bundles/qms-angular.umd.js +185 -51
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/model/en.js +3 -2
  4. package/esm2015/lib/model/no.js +3 -2
  5. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.js +11 -3
  6. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.js +12 -3
  7. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/save-template/save-template.component.js +13 -3
  8. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-flowchart/qms-ckeditor-flowchart.component.js +13 -3
  9. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-fullscreen/qms-ckeditor-fullscreen.component.js +1 -1
  10. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.js +13 -4
  11. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.js +21 -10
  12. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link-simple/qms-ckeditor-link-simple.component.js +17 -4
  13. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.js +14 -3
  14. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-template/qms-ckeditor-template.component.js +15 -3
  15. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.js +14 -4
  16. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +26 -13
  17. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-common.services.js +25 -0
  18. package/esm2015/qms-angular.js +10 -9
  19. package/fesm2015/qms-angular.js +173 -42
  20. package/fesm2015/qms-angular.js.map +1 -1
  21. package/lib/model/en.d.ts +1 -0
  22. package/lib/model/no.d.ts +1 -0
  23. package/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.d.ts +4 -1
  24. package/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.d.ts +4 -1
  25. package/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/save-template/save-template.component.d.ts +4 -1
  26. package/lib/qms-ckeditor-components/components/qms-ckeditor-flowchart/qms-ckeditor-flowchart.component.d.ts +5 -1
  27. package/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.d.ts +4 -1
  28. package/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.d.ts +4 -1
  29. package/lib/qms-ckeditor-components/components/qms-ckeditor-link-simple/qms-ckeditor-link-simple.component.d.ts +5 -1
  30. package/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.d.ts +4 -1
  31. package/lib/qms-ckeditor-components/components/qms-ckeditor-template/qms-ckeditor-template.component.d.ts +4 -1
  32. package/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.d.ts +4 -1
  33. package/lib/qms-ckeditor-components/services/qms-ckeditor-common.services.d.ts +5 -0
  34. package/package.json +1 -1
  35. package/qms-angular.d.ts +9 -8
  36. package/qms-angular.metadata.json +1 -1
  37. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
  38. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js.map +1 -1
  39. package/src/assets/qms-ckeditor-plugin/src/plugins/aboutckeditor/aboutckeditor.js +2 -1
  40. package/src/assets/qms-ckeditor-plugin/src/plugins/bpmn/bpmndialogcommand.js +2 -2
  41. package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorEnum.js +2 -1
  42. package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorService.js +18 -18
  43. package/src/assets/qms-ckeditor-plugin/src/plugins/flowchart/flowchartdialogcommand.js +2 -2
  44. package/src/assets/qms-ckeditor-plugin/src/plugins/fullscreen/qmsCKEditorFullscreenPlugin.js +3 -1
  45. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapdialogcommand.js +1 -1
  46. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkdialogcommand.js +1 -1
  47. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkui.js +1 -0
  48. package/src/assets/qms-ckeditor-plugin/src/plugins/template/loadtemplatedialogcommand.js +1 -1
  49. package/src/assets/qms-ckeditor-plugin/src/plugins/template/templatedialogcommand.js +8 -3
  50. package/src/assets/qms-ckeditor-plugin/src/plugins/toggletoolbar/toggletoolbar.js +1 -1
  51. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipdialogcommand.js +1 -1
  52. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipui.js +1 -1
  53. package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/browsevideodialogcommand.js +1 -1
  54. 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",
@@ -9007,6 +9009,31 @@
9007
9009
  return QMSCKEditorLink;
9008
9010
  }());
9009
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
+
9010
9037
  exports.QMSCKEditorDocumentType = void 0;
9011
9038
  (function (QMSCKEditorDocumentType) {
9012
9039
  QMSCKEditorDocumentType[QMSCKEditorDocumentType["other"] = 0] = "other";
@@ -9418,12 +9445,13 @@
9418
9445
 
9419
9446
  var QMSCKEditorLinkComponent = /** @class */ (function (_super) {
9420
9447
  __extends(QMSCKEditorLinkComponent, _super);
9421
- function QMSCKEditorLinkComponent(cdr, dialog, translate, linkService, dialogRef, data) {
9448
+ function QMSCKEditorLinkComponent(cdr, dialog, translate, linkService, commonService, dialogRef, data) {
9422
9449
  var _this = _super.call(this) || this;
9423
9450
  _this.cdr = cdr;
9424
9451
  _this.dialog = dialog;
9425
9452
  _this.translate = translate;
9426
9453
  _this.linkService = linkService;
9454
+ _this.commonService = commonService;
9427
9455
  _this.dialogRef = dialogRef;
9428
9456
  _this.data = data;
9429
9457
  _this.linkFormGroup = new forms.FormGroup({
@@ -9494,7 +9522,9 @@
9494
9522
  this.cdr.detectChanges();
9495
9523
  };
9496
9524
  QMSCKEditorLinkComponent.prototype.onCloseDialog = function () {
9525
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
9497
9526
  this.dialogRef.close(null);
9527
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
9498
9528
  };
9499
9529
  QMSCKEditorLinkComponent.prototype.initLinkType = function () {
9500
9530
  if (this.linkTypes) {
@@ -9694,19 +9724,20 @@
9694
9724
  var id = 3;
9695
9725
  if (this.data.qmsckContentFields &&
9696
9726
  this.data.qmsckContentFields.length &&
9697
- this.data.qmsckIsGetAnchorMoreContent) {
9727
+ this.data.qmsckIsGetAnchorMoreContent &&
9728
+ this.selectedLinkType === exports.LinkType.anchorText) {
9698
9729
  this.data.qmsckContentFields.forEach(function (field) {
9699
9730
  if (field) {
9700
9731
  _this.getAnchor(field, id);
9701
9732
  }
9702
9733
  });
9703
9734
  }
9704
- else {
9705
- if (anchorDocument) {
9706
- anchorDocument.forEach(function (e) {
9735
+ if (this.selectedLinkType === exports.LinkType.anchorDocument && anchorDocument) {
9736
+ anchorDocument.forEach(function (e) {
9737
+ if (e) {
9707
9738
  _this.getAnchor(e, id);
9708
- });
9709
- }
9739
+ }
9740
+ });
9710
9741
  }
9711
9742
  this.anchors.push({
9712
9743
  value: 1,
@@ -9769,6 +9800,7 @@
9769
9800
  return isDisable;
9770
9801
  };
9771
9802
  QMSCKEditorLinkComponent.prototype.setLink = function () {
9803
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
9772
9804
  var link = new QMSCKEditorLink();
9773
9805
  link.typeId = this.selectedLinkType;
9774
9806
  link.targetId = this.selectedTarget;
@@ -9795,6 +9827,7 @@
9795
9827
  break;
9796
9828
  }
9797
9829
  this.dialogRef.close(link);
9830
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
9798
9831
  };
9799
9832
  QMSCKEditorLinkComponent.prototype.getUrlToSetProtocol = function () {
9800
9833
  if (!this.url.length) {
@@ -9841,7 +9874,7 @@
9841
9874
  QMSCKEditorLinkComponent.decorators = [
9842
9875
  { type: i0.Component, args: [{
9843
9876
  selector: "qms-ckeditor-link",
9844
- 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>",
9845
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}"]
9846
9879
  },] }
9847
9880
  ];
@@ -9850,9 +9883,13 @@
9850
9883
  { type: dialog.MatDialog },
9851
9884
  { type: TranslateLibraryService },
9852
9885
  { type: QMSCKEditorLinkService },
9886
+ { type: QMSCKEditorCommonService },
9853
9887
  { type: dialog.MatDialogRef },
9854
9888
  { type: QMSCKEditorLink, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
9855
- ]; };
9889
+ ]; };
9890
+ QMSCKEditorLinkComponent.propDecorators = {
9891
+ ckEditor: [{ type: i0.Input }]
9892
+ };
9856
9893
 
9857
9894
  // @dynamic
9858
9895
  var QMSCKEditorInjector = /** @class */ (function () {
@@ -9967,12 +10004,13 @@
9967
10004
 
9968
10005
  var QMSCKEditorTemplateComponent = /** @class */ (function (_super) {
9969
10006
  __extends(QMSCKEditorTemplateComponent, _super);
9970
- function QMSCKEditorTemplateComponent(cdr, dialog, translate, templateService, dialogRef, data) {
10007
+ function QMSCKEditorTemplateComponent(cdr, dialog, translate, templateService, commonService, dialogRef, data) {
9971
10008
  var _this = _super.call(this) || this;
9972
10009
  _this.cdr = cdr;
9973
10010
  _this.dialog = dialog;
9974
10011
  _this.translate = translate;
9975
10012
  _this.templateService = templateService;
10013
+ _this.commonService = commonService;
9976
10014
  _this.dialogRef = dialogRef;
9977
10015
  _this.data = data;
9978
10016
  _this.templateFormGroup = new forms.FormGroup({
@@ -10004,7 +10042,9 @@
10004
10042
  this.cdr.detectChanges();
10005
10043
  };
10006
10044
  QMSCKEditorTemplateComponent.prototype.onCloseDialog = function () {
10045
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
10007
10046
  this.dialogRef.close();
10047
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
10008
10048
  };
10009
10049
  QMSCKEditorTemplateComponent.prototype.getTemplate = function () {
10010
10050
  var _this = this;
@@ -10121,7 +10161,9 @@
10121
10161
  });
10122
10162
  };
10123
10163
  QMSCKEditorTemplateComponent.prototype.cancelTemplate = function () {
10164
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
10124
10165
  this.dialogRef.close();
10166
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
10125
10167
  };
10126
10168
  QMSCKEditorTemplateComponent.prototype.updateTemplate = function () {
10127
10169
  var _this = this;
@@ -10131,7 +10173,9 @@
10131
10173
  .subscribe(function (result) {
10132
10174
  if (result) {
10133
10175
  if (_this.isEdit) {
10176
+ var scrollTop = _this.commonService.getScrollTopCkeditor(_this.ckEditor);
10134
10177
  _this.dialogRef.close(_this.template);
10178
+ _this.commonService.setScrollTopEditorContainer(_this.ckEditor, scrollTop);
10135
10179
  }
10136
10180
  else {
10137
10181
  var index = _this.templates.findIndex(function (x) {
@@ -10168,17 +10212,22 @@
10168
10212
  { type: dialog.MatDialog },
10169
10213
  { type: TranslateLibraryService },
10170
10214
  { type: QMSCKEditorTemplateService },
10215
+ { type: QMSCKEditorCommonService },
10171
10216
  { type: dialog.MatDialogRef },
10172
10217
  { type: QMSCKEditorTemplate, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
10173
- ]; };
10218
+ ]; };
10219
+ QMSCKEditorTemplateComponent.propDecorators = {
10220
+ ckEditor: [{ type: i0.Input }]
10221
+ };
10174
10222
 
10175
10223
  var QMSCKEditorLoadTemplateComponent = /** @class */ (function (_super) {
10176
10224
  __extends(QMSCKEditorLoadTemplateComponent, _super);
10177
- function QMSCKEditorLoadTemplateComponent(dialog, translate, templateService, dialogRef, data) {
10225
+ function QMSCKEditorLoadTemplateComponent(dialog, translate, templateService, commonService, dialogRef, data) {
10178
10226
  var _this = _super.call(this) || this;
10179
10227
  _this.dialog = dialog;
10180
10228
  _this.translate = translate;
10181
10229
  _this.templateService = templateService;
10230
+ _this.commonService = commonService;
10182
10231
  _this.dialogRef = dialogRef;
10183
10232
  _this.data = data;
10184
10233
  _this.templates = [];
@@ -10195,7 +10244,9 @@
10195
10244
  this.getTemplate();
10196
10245
  };
10197
10246
  QMSCKEditorLoadTemplateComponent.prototype.onCloseDialog = function () {
10247
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
10198
10248
  this.dialogRef.close();
10249
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
10199
10250
  };
10200
10251
  QMSCKEditorLoadTemplateComponent.prototype.getTemplate = function () {
10201
10252
  var _this = this;
@@ -10231,7 +10282,9 @@
10231
10282
  content: content,
10232
10283
  isReplace: _this.isReplace,
10233
10284
  };
10285
+ var scrollTop = _this.commonService.getScrollTopCkeditor(_this.ckEditor);
10234
10286
  _this.dialogRef.close(detail);
10287
+ _this.commonService.setScrollTopEditorContainer(_this.ckEditor, scrollTop);
10235
10288
  }
10236
10289
  });
10237
10290
  };
@@ -10250,6 +10303,7 @@
10250
10303
  data: data,
10251
10304
  disableClose: true
10252
10305
  });
10306
+ dialogTemplate.componentInstance.ckEditor = this.ckEditor;
10253
10307
  dialogTemplate
10254
10308
  .afterClosed()
10255
10309
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -10308,9 +10362,13 @@
10308
10362
  { type: dialog.MatDialog },
10309
10363
  { type: TranslateLibraryService },
10310
10364
  { type: QMSCKEditorTemplateService },
10365
+ { type: QMSCKEditorCommonService },
10311
10366
  { type: dialog.MatDialogRef },
10312
10367
  { type: String, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
10313
- ]; };
10368
+ ]; };
10369
+ QMSCKEditorLoadTemplateComponent.propDecorators = {
10370
+ ckEditor: [{ type: i0.Input }]
10371
+ };
10314
10372
 
10315
10373
  var QmsUploadAdapter = /** @class */ (function () {
10316
10374
  function QmsUploadAdapter(loader, config) {
@@ -14505,12 +14563,13 @@
14505
14563
 
14506
14564
  var SaveTemplateComponent = /** @class */ (function (_super) {
14507
14565
  __extends(SaveTemplateComponent, _super);
14508
- function SaveTemplateComponent(translate, bmpnService, bpmnApiService, flowchartService, dialogRef, data) {
14566
+ function SaveTemplateComponent(translate, bmpnService, bpmnApiService, flowchartService, commonService, dialogRef, data) {
14509
14567
  var _this = _super.call(this) || this;
14510
14568
  _this.translate = translate;
14511
14569
  _this.bmpnService = bmpnService;
14512
14570
  _this.bpmnApiService = bpmnApiService;
14513
14571
  _this.flowchartService = flowchartService;
14572
+ _this.commonService = commonService;
14514
14573
  _this.dialogRef = dialogRef;
14515
14574
  _this.data = data;
14516
14575
  _this.saveFormGroup = new forms.FormGroup({
@@ -14560,7 +14619,9 @@
14560
14619
  if (result) {
14561
14620
  QMSCKEditorToastService.success(_this.LANG.QMSCKEDITOR.SAVED);
14562
14621
  _this.flowchart.id = result;
14622
+ var scrollTop = _this.commonService.getScrollTopCkeditor(_this.ckEditor);
14563
14623
  _this.dialogRef.close(_this.flowchart);
14624
+ _this.commonService.setScrollTopEditorContainer(_this.ckEditor, scrollTop);
14564
14625
  }
14565
14626
  else {
14566
14627
  QMSCKEditorToastService.error(_this.LANG.QMSCKEDITOR.SAVE_FAILED);
@@ -14569,7 +14630,9 @@
14569
14630
  }
14570
14631
  };
14571
14632
  SaveTemplateComponent.prototype.onCloseDialog = function () {
14633
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
14572
14634
  this.dialogRef.close();
14635
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
14573
14636
  };
14574
14637
  return SaveTemplateComponent;
14575
14638
  }(QMSCKEditorBaseComponent));
@@ -14585,9 +14648,13 @@
14585
14648
  { type: BpmnService },
14586
14649
  { type: QMSCKEditorBpmnApiService },
14587
14650
  { type: QMSCKEditorFlowchartService },
14651
+ { type: QMSCKEditorCommonService },
14588
14652
  { type: dialog.MatDialogRef },
14589
14653
  { type: QMSCKEditorSaveAsTemplate, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
14590
- ]; };
14654
+ ]; };
14655
+ SaveTemplateComponent.propDecorators = {
14656
+ ckEditor: [{ type: i0.Input }]
14657
+ };
14591
14658
 
14592
14659
  var ShapeFlowChartConnectionType;
14593
14660
  (function (ShapeFlowChartConnectionType) {
@@ -14651,7 +14718,7 @@
14651
14718
  }());
14652
14719
  var QMSCKEditorBpmnComponent = /** @class */ (function (_super) {
14653
14720
  __extends(QMSCKEditorBpmnComponent, _super);
14654
- function QMSCKEditorBpmnComponent(dialog, translate, bpmnService, bpmnApiService, linkService, uploadService, dialogRef, data) {
14721
+ function QMSCKEditorBpmnComponent(dialog, translate, bpmnService, bpmnApiService, linkService, uploadService, commonService, dialogRef, data) {
14655
14722
  var _this = _super.call(this) || this;
14656
14723
  _this.dialog = dialog;
14657
14724
  _this.translate = translate;
@@ -14659,6 +14726,7 @@
14659
14726
  _this.bpmnApiService = bpmnApiService;
14660
14727
  _this.linkService = linkService;
14661
14728
  _this.uploadService = uploadService;
14729
+ _this.commonService = commonService;
14662
14730
  _this.dialogRef = dialogRef;
14663
14731
  _this.data = data;
14664
14732
  _this.expandedPanel = true;
@@ -14870,7 +14938,7 @@
14870
14938
  };
14871
14939
  QMSCKEditorBpmnComponent.prototype.onInsertImage = function () {
14872
14940
  return __awaiter(this, void 0, void 0, function () {
14873
- 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;
14874
14942
  return __generator(this, function (_c) {
14875
14943
  switch (_c.label) {
14876
14944
  case 0:
@@ -14891,14 +14959,18 @@
14891
14959
  relativeUrl = _c.sent();
14892
14960
  imagemap = this.toImageMap(id, graphObject.cells, clientRect);
14893
14961
  result = { key: CKEditorEventConst.QMSCK_BPMN + "#" + id, values: relativeUrl, imagemap: imagemap };
14962
+ scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
14894
14963
  this.dialogRef.close(result);
14964
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
14895
14965
  return [2 /*return*/];
14896
14966
  }
14897
14967
  });
14898
14968
  });
14899
14969
  };
14900
14970
  QMSCKEditorBpmnComponent.prototype.onCloseDialog = function () {
14971
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
14901
14972
  this.dialogRef.close();
14973
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
14902
14974
  };
14903
14975
  QMSCKEditorBpmnComponent.prototype.removeLink = function () {
14904
14976
  var _this = this;
@@ -15103,6 +15175,7 @@
15103
15175
  data: data,
15104
15176
  disableClose: true
15105
15177
  });
15178
+ dialogTemplate.componentInstance.ckEditor = this.ckEditor;
15106
15179
  dialogTemplate
15107
15180
  .afterClosed()
15108
15181
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -15464,10 +15537,12 @@
15464
15537
  { type: QMSCKEditorBpmnApiService },
15465
15538
  { type: QMSCKEditorLinkService },
15466
15539
  { type: QMSCKEditorUploadService },
15540
+ { type: QMSCKEditorCommonService },
15467
15541
  { type: dialog.MatDialogRef },
15468
15542
  { type: QMSCKEditorBpmnData, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
15469
15543
  ]; };
15470
15544
  QMSCKEditorBpmnComponent.propDecorators = {
15545
+ ckEditor: [{ type: i0.Input }],
15471
15546
  onMessage: [{ type: i0.HostListener, args: ['window:message', ['$event'],] }]
15472
15547
  };
15473
15548
 
@@ -17473,7 +17548,7 @@
17473
17548
 
17474
17549
  var QMSCKEditorImageMapComponent = /** @class */ (function (_super) {
17475
17550
  __extends(QMSCKEditorImageMapComponent, _super);
17476
- function QMSCKEditorImageMapComponent(renderer, cdr, dialog, translate, linkService, dialogRef, data, iconRegistry, sanitizer) {
17551
+ function QMSCKEditorImageMapComponent(renderer, cdr, dialog, translate, linkService, dialogRef, commonService, data, iconRegistry, sanitizer) {
17477
17552
  var _this = _super.call(this) || this;
17478
17553
  _this.renderer = renderer;
17479
17554
  _this.cdr = cdr;
@@ -17481,6 +17556,7 @@
17481
17556
  _this.translate = translate;
17482
17557
  _this.linkService = linkService;
17483
17558
  _this.dialogRef = dialogRef;
17559
+ _this.commonService = commonService;
17484
17560
  _this.data = data;
17485
17561
  _this.linkTypes = [];
17486
17562
  _this.targets = [];
@@ -17781,7 +17857,9 @@
17781
17857
  this.cdr.detectChanges();
17782
17858
  };
17783
17859
  QMSCKEditorImageMapComponent.prototype.onCloseDialog = function () {
17860
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
17784
17861
  this.dialogRef.close();
17862
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
17785
17863
  };
17786
17864
  QMSCKEditorImageMapComponent.prototype.onModeChange = function (e) {
17787
17865
  this.selectedMode = e.value;
@@ -17956,10 +18034,13 @@
17956
18034
  var data = this.myImageMap.getMapJson();
17957
18035
  data.imageHeight = this.naturalImageHeight;
17958
18036
  data.imageWidth = this.naturalImageWidth;
18037
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
17959
18038
  this.dialogRef.close(data);
18039
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
17960
18040
  };
17961
18041
  QMSCKEditorImageMapComponent.prototype.cancel = function () {
17962
- this.dialogRef.close();
18042
+ //this.dialogRef.close();
18043
+ this.onCloseDialog();
17963
18044
  };
17964
18045
  return QMSCKEditorImageMapComponent;
17965
18046
  }(QMSCKEditorBaseComponent));
@@ -17977,11 +18058,13 @@
17977
18058
  { type: TranslateLibraryService },
17978
18059
  { type: QMSCKEditorLinkService },
17979
18060
  { type: dialog.MatDialogRef },
18061
+ { type: QMSCKEditorCommonService },
17980
18062
  { type: QMSCKEditorImageMap, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] },
17981
18063
  { type: icon.MatIconRegistry },
17982
18064
  { type: platformBrowser.DomSanitizer }
17983
18065
  ]; };
17984
18066
  QMSCKEditorImageMapComponent.propDecorators = {
18067
+ ckEditor: [{ type: i0.Input }],
17985
18068
  myImageRef: [{ type: i0.ViewChild, args: ['myImage',] }],
17986
18069
  myStatusRef: [{ type: i0.ViewChild, args: ['myStatus',] }]
17987
18070
  };
@@ -17996,11 +18079,12 @@
17996
18079
 
17997
18080
  var QMSCKEditorTooltipComponent = /** @class */ (function (_super) {
17998
18081
  __extends(QMSCKEditorTooltipComponent, _super);
17999
- function QMSCKEditorTooltipComponent(cdr, translate, dialogRef, data) {
18082
+ function QMSCKEditorTooltipComponent(cdr, translate, dialogRef, commonService, data) {
18000
18083
  var _this = _super.call(this) || this;
18001
18084
  _this.cdr = cdr;
18002
18085
  _this.translate = translate;
18003
18086
  _this.dialogRef = dialogRef;
18087
+ _this.commonService = commonService;
18004
18088
  _this.data = data;
18005
18089
  _this.tooltipFormGroup = new forms.FormGroup({
18006
18090
  title: new forms.FormControl('', [forms.Validators.required]),
@@ -18023,7 +18107,9 @@
18023
18107
  this.cdr.detectChanges();
18024
18108
  };
18025
18109
  QMSCKEditorTooltipComponent.prototype.onCloseDialog = function () {
18110
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
18026
18111
  this.dialogRef.close();
18112
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
18027
18113
  };
18028
18114
  QMSCKEditorTooltipComponent.prototype.getOutputContent = function (content) {
18029
18115
  this.tooltip.content = content;
@@ -18046,10 +18132,12 @@
18046
18132
  var tooltip = new QMSCKEditorTooltip();
18047
18133
  tooltip.content = this.tooltip.content;
18048
18134
  tooltip.text = this.tooltip.text;
18135
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
18049
18136
  this.dialogRef.close(tooltip);
18137
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
18050
18138
  };
18051
18139
  QMSCKEditorTooltipComponent.prototype.cancelTooltip = function () {
18052
- this.dialogRef.close();
18140
+ this.onCloseDialog();
18053
18141
  };
18054
18142
  return QMSCKEditorTooltipComponent;
18055
18143
  }(QMSCKEditorBaseComponent));
@@ -18064,15 +18152,20 @@
18064
18152
  { type: i0.ChangeDetectorRef },
18065
18153
  { type: TranslateLibraryService },
18066
18154
  { type: dialog.MatDialogRef },
18155
+ { type: QMSCKEditorCommonService },
18067
18156
  { type: QMSCKEditorTooltip, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
18068
- ]; };
18157
+ ]; };
18158
+ QMSCKEditorTooltipComponent.propDecorators = {
18159
+ ckEditor: [{ type: i0.Input }]
18160
+ };
18069
18161
 
18070
18162
  var QMSCKEditorAboutComponent = /** @class */ (function (_super) {
18071
18163
  __extends(QMSCKEditorAboutComponent, _super);
18072
- function QMSCKEditorAboutComponent(translate, dialogRef, data) {
18164
+ function QMSCKEditorAboutComponent(translate, dialogRef, commonService, data) {
18073
18165
  var _this = _super.call(this) || this;
18074
18166
  _this.translate = translate;
18075
18167
  _this.dialogRef = dialogRef;
18168
+ _this.commonService = commonService;
18076
18169
  _this.data = data;
18077
18170
  _this.currentVersion = data;
18078
18171
  return _this;
@@ -18087,7 +18180,9 @@
18087
18180
  this.currentYear = new Date().getFullYear();
18088
18181
  };
18089
18182
  QMSCKEditorAboutComponent.prototype.onCloseDialog = function () {
18183
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
18090
18184
  this.dialogRef.close();
18185
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
18091
18186
  };
18092
18187
  return QMSCKEditorAboutComponent;
18093
18188
  }(QMSCKEditorBaseComponent));
@@ -18101,8 +18196,12 @@
18101
18196
  QMSCKEditorAboutComponent.ctorParameters = function () { return [
18102
18197
  { type: TranslateLibraryService },
18103
18198
  { type: dialog.MatDialogRef },
18199
+ { type: QMSCKEditorCommonService },
18104
18200
  { type: String, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
18105
- ]; };
18201
+ ]; };
18202
+ QMSCKEditorAboutComponent.propDecorators = {
18203
+ ckEditor: [{ type: i0.Input }]
18204
+ };
18106
18205
 
18107
18206
  /*! Rappid v3.3.0 - HTML5 Diagramming Framework
18108
18207
 
@@ -24131,19 +24230,21 @@
24131
24230
 
24132
24231
  var QMSCKEditorFlowchartComponent = /** @class */ (function (_super) {
24133
24232
  __extends(QMSCKEditorFlowchartComponent, _super);
24134
- function QMSCKEditorFlowchartComponent(dialog, element, translate, flowchartService, uploadService, dialogRef, data) {
24233
+ function QMSCKEditorFlowchartComponent(dialog, element, translate, flowchartService, uploadService, commonService, dialogRef, data) {
24135
24234
  var _this = _super.call(this) || this;
24136
24235
  _this.dialog = dialog;
24137
24236
  _this.element = element;
24138
24237
  _this.translate = translate;
24139
24238
  _this.flowchartService = flowchartService;
24140
24239
  _this.uploadService = uploadService;
24240
+ _this.commonService = commonService;
24141
24241
  _this.dialogRef = dialogRef;
24142
24242
  _this.data = data;
24143
24243
  _this.jsonContent = '';
24144
24244
  _this.id = '';
24145
24245
  _this.flowchart = new QMSCKEditorFlowchart();
24146
24246
  _this.flowchartTemplates = [];
24247
+ _this.ckEditorContainer = document.getElementsByClassName("ck-editor__editable");
24147
24248
  _this.id = data;
24148
24249
  return _this;
24149
24250
  }
@@ -24334,7 +24435,7 @@
24334
24435
  };
24335
24436
  QMSCKEditorFlowchartComponent.prototype.onInsertImage = function () {
24336
24437
  return __awaiter(this, void 0, void 0, function () {
24337
- var id, imageContent, file, relativeUrl, result;
24438
+ var id, imageContent, file, relativeUrl, result, scrollTop;
24338
24439
  return __generator(this, function (_a) {
24339
24440
  switch (_a.label) {
24340
24441
  case 0: return [4 /*yield*/, this.saveImageContent()];
@@ -24348,7 +24449,9 @@
24348
24449
  case 3:
24349
24450
  relativeUrl = _a.sent();
24350
24451
  result = { key: CKEditorEventConst.QMSCK_FLOWCHART + "#" + id, values: relativeUrl };
24452
+ scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
24351
24453
  this.dialogRef.close(result);
24454
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
24352
24455
  return [2 /*return*/];
24353
24456
  }
24354
24457
  });
@@ -24416,6 +24519,7 @@
24416
24519
  data: data,
24417
24520
  disableClose: true
24418
24521
  });
24522
+ dialogTemplate.componentInstance.ckEditor = this.ckEditor;
24419
24523
  dialogTemplate
24420
24524
  .afterClosed()
24421
24525
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24455,7 +24559,9 @@
24455
24559
  });
24456
24560
  };
24457
24561
  QMSCKEditorFlowchartComponent.prototype.onCloseDialog = function () {
24562
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
24458
24563
  this.dialogRef.close();
24564
+ this.commonService.setScrollTopEditorContainer(this.ckEditor, scrollTop);
24459
24565
  };
24460
24566
  return QMSCKEditorFlowchartComponent;
24461
24567
  }(QMSCKEditorBaseComponent));
@@ -24472,19 +24578,22 @@
24472
24578
  { type: TranslateLibraryService },
24473
24579
  { type: QMSCKEditorFlowchartService },
24474
24580
  { type: QMSCKEditorUploadService },
24581
+ { type: QMSCKEditorCommonService },
24475
24582
  { type: dialog.MatDialogRef },
24476
24583
  { type: String, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
24477
24584
  ]; };
24478
24585
  QMSCKEditorFlowchartComponent.propDecorators = {
24586
+ ckEditor: [{ type: i0.Input }],
24479
24587
  onMessage: [{ type: i0.HostListener, args: ['window:message', ['$event'],] }]
24480
24588
  };
24481
24589
 
24482
24590
  var QmsCkeditorLinkSimpleComponent = /** @class */ (function (_super) {
24483
24591
  __extends(QmsCkeditorLinkSimpleComponent, _super);
24484
- function QmsCkeditorLinkSimpleComponent(dialogRef, translate, data) {
24592
+ function QmsCkeditorLinkSimpleComponent(dialogRef, translate, commonService, data) {
24485
24593
  var _this = _super.call(this) || this;
24486
24594
  _this.dialogRef = dialogRef;
24487
24595
  _this.translate = translate;
24596
+ _this.commonService = commonService;
24488
24597
  _this.data = data;
24489
24598
  _this.urlFormControl = new forms.FormControl('', [forms.Validators.required]);
24490
24599
  return _this;
@@ -24510,22 +24619,33 @@
24510
24619
  var link = new QMSCKEditorLink();
24511
24620
  link.targetId = exports.TargetType.new;
24512
24621
  link.url = "" + exports.LinkType.url + exports.ProtocolType.http + this.url;
24622
+ var scrollTop = this.commonService.getScrollTopCkeditor(this.ckEditor);
24513
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);
24514
24630
  };
24515
24631
  return QmsCkeditorLinkSimpleComponent;
24516
24632
  }(QMSCKEditorBaseComponent));
24517
24633
  QmsCkeditorLinkSimpleComponent.decorators = [
24518
24634
  { type: i0.Component, args: [{
24519
24635
  selector: 'lib-qms-ckeditor-link-simple',
24520
- 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>",
24521
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}"]
24522
24638
  },] }
24523
24639
  ];
24524
24640
  QmsCkeditorLinkSimpleComponent.ctorParameters = function () { return [
24525
24641
  { type: dialog.MatDialogRef },
24526
24642
  { type: TranslateLibraryService },
24643
+ { type: QMSCKEditorCommonService },
24527
24644
  { type: QMSCKEditorLink, decorators: [{ type: i0.Inject, args: [dialog.MAT_DIALOG_DATA,] }] }
24528
- ]; };
24645
+ ]; };
24646
+ QmsCkeditorLinkSimpleComponent.propDecorators = {
24647
+ ckEditor: [{ type: i0.Input }]
24648
+ };
24529
24649
 
24530
24650
  var CKEditorImageUploadTypeConst = /** @class */ (function () {
24531
24651
  function CKEditorImageUploadTypeConst() {
@@ -24558,34 +24678,34 @@
24558
24678
  }
24559
24679
  QMSCKEditorComponent.prototype.onMessage = function (event) {
24560
24680
  switch (event.data.eventName) {
24561
- case this.ckEditorEventConst.QMSCK_TEMPLATE_PLUGIN_MSG:
24681
+ case this.ckEditorEventConst.QMSCK_TEMPLATE_PLUGIN_MSG + this.editorInstance.id:
24562
24682
  this.templateEventHandling();
24563
24683
  break;
24564
- case this.ckEditorEventConst.QMSCK_LOAD_TEMPLATE_PLUGIN_MSG:
24684
+ case this.ckEditorEventConst.QMSCK_LOAD_TEMPLATE_PLUGIN_MSG + this.editorInstance.id:
24565
24685
  this.loadTemplateEventHandling();
24566
24686
  break;
24567
- case this.ckEditorEventConst.QMSCK_LINK_PLUGIN_MSG:
24687
+ case this.ckEditorEventConst.QMSCK_LINK_PLUGIN_MSG + this.editorInstance.id:
24568
24688
  this.linkEventHandling(event.data.value, this.qmsckContentFields, this.qmsckIsGetAnchorMoreContent);
24569
24689
  break;
24570
- case this.ckEditorEventConst.QMSCK_TOOLTIP_PLUGIN_MSG:
24690
+ case this.ckEditorEventConst.QMSCK_TOOLTIP_PLUGIN_MSG + this.editorInstance.id:
24571
24691
  this.tooltipEventHandling(event.data.value);
24572
24692
  break;
24573
- case this.ckEditorEventConst.QMSCK_IMAGEMAP_PLUGIN_MSG:
24693
+ case this.ckEditorEventConst.QMSCK_IMAGEMAP_PLUGIN_MSG + this.editorInstance.id:
24574
24694
  this.imageMapEventHandling(event.data.value);
24575
24695
  break;
24576
- case this.ckEditorEventConst.QMSCK_BPMN_PLUGIN_MSG:
24696
+ case this.ckEditorEventConst.QMSCK_BPMN_PLUGIN_MSG + this.editorInstance.id:
24577
24697
  this.bpmnEventHandling(event.data.value);
24578
24698
  break;
24579
- case this.ckEditorEventConst.QMSCK_ABOUT_CKEDITOR_PLUGIN_MSG:
24699
+ case this.ckEditorEventConst.QMSCK_ABOUT_CKEDITOR_PLUGIN_MSG + this.editorInstance.id:
24580
24700
  this.aboutCKEditorEventHandling(event.data.value);
24581
24701
  break;
24582
- case this.ckEditorEventConst.QMSCK_FLOWCHART_PLUGIN_MSG:
24702
+ case this.ckEditorEventConst.QMSCK_FLOWCHART_PLUGIN_MSG + this.editorInstance.id:
24583
24703
  this.flowchartEventHandling(event.data.value);
24584
24704
  break;
24585
- case this.ckEditorEventConst.QMSCK_TOGGLE_TOOLBAR_MSG:
24705
+ case this.ckEditorEventConst.QMSCK_TOGGLE_TOOLBAR_MSG + this.editorInstance.id:
24586
24706
  this.toggleToolbarEventHandling();
24587
24707
  break;
24588
- case this.ckEditorEventConst.QMSCK_BROWSE_VIDEO_MSG:
24708
+ case this.ckEditorEventConst.QMSCK_BROWSE_VIDEO_MSG + this.editorInstance.id:
24589
24709
  this.browseVideoEventHandling(event.data.value);
24590
24710
  break;
24591
24711
  default:
@@ -24607,6 +24727,9 @@
24607
24727
  toolbarItems += ',' + this.qmsckData.toggledToolbarItems;
24608
24728
  }
24609
24729
  this.ckeditorConfig = CKEditorCommonFunctions.getCKEditorConfiguration(toolbarItems);
24730
+ if (this.ckeditorConfig)
24731
+ this.ckeditorConfig.containerId = this.editorId;
24732
+ this.ckeditorConfig = CKEditorCommonFunctions.getCKEditorConfiguration(toolbarItems);
24610
24733
  if (this.qmsckData.hideImgOptions) {
24611
24734
  this.ckeditorConfig = this.hideImageOptions(this.ckeditorConfig, this.qmsckData.hideImgOptions);
24612
24735
  }
@@ -24799,7 +24922,7 @@
24799
24922
  // Apped Wordcount to CKeditor
24800
24923
  editor.plugins.get("WordCount").on("update", function (evt, stats) {
24801
24924
  // Prints the current content statistics.
24802
- var wordsBox = document.querySelector(".wordcount-content");
24925
+ var wordsBox = document.querySelector("#" + _this.editorId + " .wordcount-content");
24803
24926
  if (!!wordsBox) {
24804
24927
  wordsBox.textContent = _this.LANG.QMSCKEDITOR.WORDS + ": " + stats.words + " / " + _this.LANG.QMSCKEDITOR.CHARACTERS + ": " + stats.characters;
24805
24928
  }
@@ -24820,6 +24943,7 @@
24820
24943
  data: data,
24821
24944
  disableClose: true,
24822
24945
  });
24946
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24823
24947
  dialogTemplate
24824
24948
  .afterClosed()
24825
24949
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24840,6 +24964,7 @@
24840
24964
  data: this.qmsckContentInput,
24841
24965
  disableClose: true,
24842
24966
  });
24967
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24843
24968
  dialogTemplate
24844
24969
  .afterClosed()
24845
24970
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24857,6 +24982,8 @@
24857
24982
  */
24858
24983
  QMSCKEditorComponent.prototype.linkEventHandling = function (link, qmsckContentFields, qmsckIsGetAnchorMoreContent) {
24859
24984
  var _this = this;
24985
+ if (link.ckeditorId != this.editorInstance.id)
24986
+ return;
24860
24987
  var data = new QMSCKEditorLink();
24861
24988
  data = link;
24862
24989
  data.editorContent = this.qmsckContentInput;
@@ -24884,6 +25011,7 @@
24884
25011
  autoFocus: false,
24885
25012
  });
24886
25013
  }
25014
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24887
25015
  dialogTemplate
24888
25016
  .afterClosed()
24889
25017
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24909,6 +25037,7 @@
24909
25037
  data: data,
24910
25038
  disableClose: true,
24911
25039
  });
25040
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24912
25041
  dialogTemplate
24913
25042
  .afterClosed()
24914
25043
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24940,6 +25069,7 @@
24940
25069
  data: data,
24941
25070
  disableClose: true,
24942
25071
  });
25072
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24943
25073
  dialogTemplate
24944
25074
  .afterClosed()
24945
25075
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24970,6 +25100,7 @@
24970
25100
  data: data,
24971
25101
  disableClose: true,
24972
25102
  });
25103
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24973
25104
  dialogTemplate
24974
25105
  .afterClosed()
24975
25106
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -24991,6 +25122,7 @@
24991
25122
  data: version,
24992
25123
  disableClose: true,
24993
25124
  });
25125
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
24994
25126
  dialogTemplate
24995
25127
  .afterClosed()
24996
25128
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -25053,6 +25185,7 @@
25053
25185
  data: id,
25054
25186
  disableClose: true,
25055
25187
  });
25188
+ dialogTemplate.componentInstance.ckEditor = this.editorInstance;
25056
25189
  dialogTemplate
25057
25190
  .afterClosed()
25058
25191
  .pipe(operators.takeUntil(this.ngUnsubcribe))
@@ -25185,7 +25318,7 @@
25185
25318
  ],
25186
25319
  encapsulation: i0.ViewEncapsulation.None,
25187
25320
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
25188
- 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)}"]
25189
25322
  },] }
25190
25323
  ];
25191
25324
  QMSCKEditorComponent.ctorParameters = function () { return [
@@ -32774,14 +32907,15 @@
32774
32907
  exports["ɵe"] = QMSBasicTreeComponent;
32775
32908
  exports["ɵf"] = QMSCKEditorTreeService;
32776
32909
  exports["ɵg"] = QMSCKEditorTemplateComponent;
32777
- exports["ɵh"] = LinkAttachmentComponent;
32778
- exports["ɵi"] = QMSCKEditorTooltipComponent;
32779
- exports["ɵj"] = QMSCKEditorTooltip;
32780
- exports["ɵk"] = QMSCKEditorImageMapComponent;
32781
- exports["ɵl"] = QMSCKEditorImageMap;
32782
- exports["ɵm"] = QMSCKEditorBpmnData;
32783
- exports["ɵn"] = QMSCKEditorAboutComponent;
32784
- 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;
32785
32919
 
32786
32920
  Object.defineProperty(exports, '__esModule', { value: true });
32787
32921