qms-angular 1.1.26 → 1.1.28

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 (128) hide show
  1. package/bundles/qms-angular.umd.js +645 -544
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/common/models/qms-flat-node.model.js +1 -1
  4. package/esm2015/lib/common/models/qms-tree-node.model.js +1 -1
  5. package/esm2015/lib/common/themes.const.js +2 -1
  6. package/esm2015/lib/components/breadcrumb/breadcrumb-item.directive.js +3 -3
  7. package/esm2015/lib/components/breadcrumb/breadcrumb.js +10 -4
  8. package/esm2015/lib/components/comment/comment.js +17 -11
  9. package/esm2015/lib/components/edit-file-name-dialog/edit-file-name-dialog.js +9 -2
  10. package/esm2015/lib/components/qms-nav-drawer/qms-nav-drawer.component.js +3 -3
  11. package/esm2015/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.js +3 -3
  12. package/esm2015/lib/components/qms-paginator/qms-paginator.component.js +9 -2
  13. package/esm2015/lib/components/related/list-other-related/list-related.component.js +9 -2
  14. package/esm2015/lib/components/related/model/popup-data.model.js +2 -1
  15. package/esm2015/lib/components/related/popup/related-popup.component.js +58 -24
  16. package/esm2015/lib/components/related/risk/analysis/analysis.component.js +9 -2
  17. package/esm2015/lib/components/related/risk/list/list.component.js +9 -2
  18. package/esm2015/lib/components/related/risk/result/result.component.js +9 -2
  19. package/esm2015/lib/components/reports/qms-report-content-portrait/qms-report-content-portrait.component.js +9 -2
  20. package/esm2015/lib/components/reports/qms-report-cover-portrait/qms-report-cover-portrait.component.js +8 -3
  21. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +2 -2
  22. package/esm2015/lib/components/select-department/select-department.component.js +6 -38
  23. package/esm2015/lib/components/select-department-tree/model/department-paging.model.js +1 -2
  24. package/esm2015/lib/components/select-department-tree/model/select-department-tree.config.js +2 -5
  25. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +114 -164
  26. package/esm2015/lib/components/select-department-tree/select-department-tree.module.js +2 -4
  27. package/esm2015/lib/components/select-dialog/select-dialog.js +8 -4
  28. package/esm2015/lib/components/select-include-children/select-include-children.component.js +3 -3
  29. package/esm2015/lib/components/select-one/select-one-next.component.js +3 -3
  30. package/esm2015/lib/components/select-one/select-one.component.js +3 -3
  31. package/esm2015/lib/components/select-process-document/select-process-document.component.js +3 -3
  32. package/esm2015/lib/components/tree/basic-tree.component.js +4 -4
  33. package/esm2015/lib/components/upload-file-error-dialog/upload-file-error-dialog.js +9 -2
  34. package/esm2015/lib/directives/chip-input/chip-input-select-trigger.directive.js +3 -3
  35. package/esm2015/lib/directives/chips/chip.directive.js +2 -2
  36. package/esm2015/lib/directives/dropdown-menu/dropdown-item.directive.js +2 -2
  37. package/esm2015/lib/directives/file-upload/file-upload-display.directive.js +3 -3
  38. package/esm2015/lib/directives/file-upload/file-upload-multiple-display.directive.js +3 -3
  39. package/esm2015/lib/directives/file-upload/file-upload-multiple.directive.js +3 -3
  40. package/esm2015/lib/directives/file-upload/file-upload.directive.js +2 -2
  41. package/esm2015/lib/directives/search-field.directive.js +2 -2
  42. package/esm2015/lib/model/en.js +4 -2
  43. package/esm2015/lib/model/no.js +4 -2
  44. package/esm2015/lib/pipe/dateFormat.pipe.js +9 -2
  45. package/esm2015/lib/qms-angular.component.js +9 -2
  46. package/esm2015/lib/qms-ckeditor-components/common/bpmn/toolbar.function.js +10 -1
  47. package/esm2015/lib/qms-ckeditor-components/common/classes/qmsUploadAdapter.js +21 -15
  48. package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorImageUploadType.const.js +4 -0
  49. package/esm2015/lib/qms-ckeditor-components/common/enums/ckeditor-bpmn-expand.enum.js +8 -0
  50. package/esm2015/lib/qms-ckeditor-components/common/functions/common.function.js +6 -9
  51. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.js +1 -1
  52. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.js +39 -11
  53. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.js +2 -2
  54. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.js +53 -56
  55. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.js +9 -4
  56. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +28 -11
  57. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn.service.js +33 -2
  58. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-upload.service.js +6 -2
  59. package/esm2015/qms-angular.js +11 -11
  60. package/fesm2015/qms-angular.js +589 -468
  61. package/fesm2015/qms-angular.js.map +1 -1
  62. package/lib/common/models/qms-flat-node.model.d.ts +0 -1
  63. package/lib/common/models/qms-tree-node.model.d.ts +0 -1
  64. package/lib/common/themes.const.d.ts +1 -0
  65. package/lib/components/breadcrumb/breadcrumb-item.directive.d.ts +2 -2
  66. package/lib/components/breadcrumb/breadcrumb.d.ts +3 -0
  67. package/lib/components/comment/comment.d.ts +3 -0
  68. package/lib/components/edit-file-name-dialog/edit-file-name-dialog.d.ts +3 -0
  69. package/lib/components/qms-paginator/qms-paginator.component.d.ts +3 -0
  70. package/lib/components/related/list-other-related/list-related.component.d.ts +3 -0
  71. package/lib/components/related/model/popup-data.model.d.ts +2 -0
  72. package/lib/components/related/popup/related-popup.component.d.ts +13 -2
  73. package/lib/components/related/risk/analysis/analysis.component.d.ts +3 -0
  74. package/lib/components/related/risk/list/list.component.d.ts +3 -0
  75. package/lib/components/related/risk/result/result.component.d.ts +3 -0
  76. package/lib/components/reports/qms-report-content-portrait/qms-report-content-portrait.component.d.ts +3 -0
  77. package/lib/components/reports/qms-report-cover-portrait/qms-report-cover-portrait.component.d.ts +5 -3
  78. package/lib/components/select-department/select-department.component.d.ts +0 -19
  79. package/lib/components/select-department-tree/model/select-department-tree.config.d.ts +0 -3
  80. package/lib/components/select-department-tree/select-department-tree.component.d.ts +23 -51
  81. package/lib/components/select-dialog/select-dialog.d.ts +2 -1
  82. package/lib/components/upload-file-error-dialog/upload-file-error-dialog.d.ts +3 -0
  83. package/lib/directives/chip-input/chip-input-select-trigger.directive.d.ts +1 -1
  84. package/lib/directives/file-upload/file-upload-display.directive.d.ts +1 -1
  85. package/lib/directives/file-upload/file-upload-multiple-display.directive.d.ts +1 -1
  86. package/lib/directives/file-upload/file-upload-multiple.directive.d.ts +2 -2
  87. package/lib/model/en.d.ts +2 -0
  88. package/lib/model/no.d.ts +2 -0
  89. package/lib/pipe/dateFormat.pipe.d.ts +3 -0
  90. package/lib/qms-angular.component.d.ts +3 -0
  91. package/lib/qms-ckeditor-components/common/classes/qmsUploadAdapter.d.ts +1 -1
  92. package/lib/qms-ckeditor-components/common/constants/ckeditorImageUploadType.const.d.ts +3 -0
  93. package/lib/qms-ckeditor-components/common/enums/ckeditor-bpmn-expand.enum.d.ts +6 -0
  94. package/lib/qms-ckeditor-components/common/functions/common.function.d.ts +2 -4
  95. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.d.ts +1 -0
  96. package/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.d.ts +4 -2
  97. package/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.d.ts +3 -1
  98. package/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.d.ts +1 -0
  99. package/lib/qms-ckeditor-components/qms-ckeditor.component.d.ts +1 -0
  100. package/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn.service.d.ts +2 -0
  101. package/lib/qms-ckeditor-components/services/qms-ckeditor-upload.service.d.ts +1 -1
  102. package/package.json +1 -1
  103. package/qms-angular.d.ts +10 -10
  104. package/qms-angular.metadata.json +1 -1
  105. package/src/assets/jointjs/scss/bpmn.scss +22 -1
  106. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
  107. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js.map +1 -1
  108. package/src/assets/qms-ckeditor-plugin/src/plugins/anchor/anchorcommand.js +13 -3
  109. package/src/assets/qms-ckeditor-plugin/src/plugins/anchor/anchorui.js +7 -1
  110. package/src/assets/qms-ckeditor-plugin/src/plugins/bpmn/bpmndialogcommand.js +12 -3
  111. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkcommand.js +35 -33
  112. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkdialogcommand.js +9 -6
  113. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkediting.js +28 -14
  114. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkimageediting.js +1 -1
  115. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkimageui.js +97 -92
  116. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkui.js +40 -28
  117. package/src/assets/qms-ckeditor-plugin/src/plugins/link/ui/linkformview.js +24 -24
  118. package/src/assets/qms-ckeditor-plugin/src/plugins/link/utils.js +8 -1
  119. package/src/assets/qms-ckeditor-plugin/src/plugins/table/converters/downcast.js +2 -2
  120. package/src/assets/qms-ckeditor-plugin/src/plugins/template/loadtemplatedialogcommand.js +20 -1
  121. package/src/assets/qms-ckeditor-plugin/src/plugins/video/theme/video.css +1 -1
  122. package/src/assets/qms-ckeditor-plugin/src/plugins/video/video/videoediting.js +3 -2
  123. package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/uploadvideocommand.js +1 -1
  124. package/src/lib/components/related/popup/related-popup.component.scss +19 -0
  125. package/src/lib/components/select-department/select-department.component.scss +5 -25
  126. package/src/lib/components/select-department-tree/select-department-tree.component.scss +182 -381
  127. package/src/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.scss +4 -0
  128. package/src/lib/qms-ckeditor-components/qms-ckeditor.component.scss +4 -0
@@ -101,7 +101,7 @@ export default class LinkFormView extends View {
101
101
  * @readonly
102
102
  * @type {module:ui/viewcollection~ViewCollection}
103
103
  */
104
- this.children = this._createFormChildren( linkCommand.manualDecorators );
104
+ this.children = this._createFormChildren( linkCommand.manualDecorators );
105
105
 
106
106
  /**
107
107
  * A collection of views that can be focused in the form.
@@ -304,29 +304,29 @@ export default class LinkFormView extends View {
304
304
  children.add( this.urlInputView );
305
305
 
306
306
  if ( manualDecorators.length ) {
307
- const additionalButtonsView = new View();
308
-
309
- additionalButtonsView.setTemplate( {
310
- tag: 'ul',
311
- children: this._manualDecoratorSwitches.map( switchButton => ( {
312
- tag: 'li',
313
- children: [ switchButton ],
314
- attributes: {
315
- class: [
316
- 'ck',
317
- 'ck-list__item'
318
- ]
319
- }
320
- } ) ),
321
- attributes: {
322
- class: [
323
- 'ck',
324
- 'ck-reset',
325
- 'ck-list'
326
- ]
327
- }
328
- } );
329
- children.add( additionalButtonsView );
307
+ // const additionalButtonsView = new View();
308
+
309
+ // additionalButtonsView.setTemplate( {
310
+ // tag: 'ul',
311
+ // children: this._manualDecoratorSwitches.map( switchButton => ( {
312
+ // tag: 'li',
313
+ // children: [ switchButton ],
314
+ // attributes: {
315
+ // class: [
316
+ // 'ck',
317
+ // 'ck-list__item'
318
+ // ]
319
+ // }
320
+ // } ) ),
321
+ // attributes: {
322
+ // class: [
323
+ // 'ck',
324
+ // 'ck-reset',
325
+ // 'ck-list'
326
+ // ]
327
+ // }
328
+ // } );
329
+ // children.add( additionalButtonsView );
330
330
  }
331
331
 
332
332
  children.add( this.saveButtonView );
@@ -10,7 +10,7 @@
10
10
  import { upperFirst } from 'lodash-es';
11
11
 
12
12
  const ATTRIBUTE_WHITESPACES = /[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g; // eslint-disable-line no-control-regex
13
- const SAFE_URL = /^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;
13
+ const SAFE_URL = /^(?:(?:https?|ftps?|mailto?|news?):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i;
14
14
 
15
15
  // Simplified email test - should be run over previously found URL.
16
16
  const EMAIL_REG_EXP = /^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i;
@@ -49,6 +49,13 @@ export function createLinkElement( href, { writer } ) {
49
49
  return linkElement;
50
50
  }
51
51
 
52
+ export function createLinkOptionElement(option, { writer }) {
53
+ const linkElement = writer.createAttributeElement( 'a', { option }, { priority: 5 } );
54
+ writer.setCustomProperty( 'link', true, linkElement );
55
+
56
+ return linkElement;
57
+ }
58
+
52
59
  /**
53
60
  * Returns a safe URL based on a given value.
54
61
  *
@@ -39,8 +39,8 @@ export function downcastInsertTable( options = {} ) {
39
39
  const tableBorder = table.getAttribute( 'border-top' ) || table.getAttribute( 'border-bottom' ) || table.getAttribute( 'border-left' ) || table.getAttribute( 'border-right' ) || '';
40
40
  const borderAttr = tableBorder === '' ? 'border: 1px solid rgb(0, 0, 0)' : null;
41
41
 
42
- const figureElement = conversionApi.writer.createContainerElement( 'figure', { class: 'table', style: `width: ${tableWidth}; height: ${tableHeight}` } );
43
- const tableElement = conversionApi.writer.createContainerElement( 'table', { style: `width: 100%; height: ${tableHeight}; ${borderAttr}` } );
42
+ const figureElement = conversionApi.writer.createContainerElement( 'figure', { class: 'table', style: `height: ${tableHeight}` } );
43
+ const tableElement = conversionApi.writer.createContainerElement( 'table', { style: `width: ${tableWidth}; height: ${tableHeight}; ${borderAttr}` } );
44
44
 
45
45
  conversionApi.writer.insert( conversionApi.writer.createPositionAt( figureElement, 0 ), tableElement );
46
46
 
@@ -11,7 +11,26 @@ export default class LoadTemplateDialogCommand extends Command {
11
11
  const editor = this.editor;
12
12
  QMSCKEditorService.loadTemplateNotify(null);
13
13
  window.addEventListener(QMSCKEditorConstant.QMSCK_LOAD_TEMPLATE_PLUGIN_RESP, function (evt) {
14
- editor.setData(evt.detail);
14
+ if(evt.detail && evt.detail.isReplace)
15
+ {
16
+ editor.setData(evt.detail.content);
17
+ }
18
+ else
19
+ {
20
+ if(evt.detail && evt.detail.content && evt.detail.content !== '')
21
+ {
22
+ let content = evt.detail.content;
23
+ if(!editor.model.document.selection.focus.isAtStart) // cursor in start of the text row
24
+ {
25
+ content = '<p>&nbsp;</p>'+ evt.detail.content;
26
+ }
27
+ content += '<p>&nbsp;</p>';
28
+ const viewFragment = editor.data.processor.toView( content );
29
+
30
+ const modelFragment = editor.data.toModel( viewFragment );
31
+ editor.model.insertContent( modelFragment );
32
+ }
33
+ }
15
34
  }, { once: true });
16
35
  }
17
36
  }
@@ -7,8 +7,8 @@
7
7
  & video {
8
8
  display: block;
9
9
  margin: 0 auto;
10
- max-width: 100%;
11
10
  min-width: 50px;
11
+ width: 100%;
12
12
  }
13
13
  }
14
14
 
@@ -28,7 +28,7 @@ export default class VideoEditing extends Plugin {
28
28
  isObject: true,
29
29
  isBlock: true,
30
30
  allowWhere: '$block',
31
- allowAttributes: [ 'src', 'controls' ]
31
+ allowAttributes: [ 'src', 'controls', 'poster' ]
32
32
  } );
33
33
 
34
34
  conversion.for( 'dataDowncast' ).elementToElement( {
@@ -41,8 +41,9 @@ export default class VideoEditing extends Plugin {
41
41
  view: ( modelElement, { writer } ) => toVideoWidget( createVideoViewElement( writer ), writer, t( 'video widget' ) )
42
42
  } );
43
43
 
44
- conversion.for( 'downcast' ).add( modelToViewAttributeConverter( 'controls' ) );
44
+ conversion.for( 'downcast' ).add( modelToViewAttributeConverter( 'controls' ) );
45
45
  conversion.for( 'downcast' ).add( modelToViewAttributeConverter( 'src' ) );
46
+ conversion.for( 'downcast' ).add( modelToViewAttributeConverter( 'poster' ) );
46
47
 
47
48
  conversion.for( 'upcast' )
48
49
  .elementToElement( {
@@ -15,7 +15,7 @@ export default class UploadVideoCommand extends Command {
15
15
  const model = editor.model;
16
16
 
17
17
  for ( const url of toArray( options.urls ) ) {
18
- insertVideo(model, { src: url , controls: true } );
18
+ insertVideo(model, { src: url , controls: true , poster: options.thumbnailUrl} );
19
19
  }
20
20
  }
21
21
  }
@@ -44,12 +44,20 @@
44
44
  margin-top: 12px;
45
45
  }
46
46
 
47
+ .panel__content_height_with_upload {
48
+ height: 380px;
49
+ }
50
+
47
51
  .panel__content_item {
48
52
  height: 350px;
49
53
  overflow: auto;
50
54
  margin-top: 12px;
51
55
  }
52
56
 
57
+ .panel__content_item_height_with_upload {
58
+ height: 257px;
59
+ }
60
+
53
61
  .panel-tree {
54
62
  .mat-expansion-panel-body {
55
63
  padding: 0 12px 12px;
@@ -303,6 +311,17 @@ cdk-virtual-scroll-viewport {
303
311
  padding: 0;
304
312
  font-weight: 600;
305
313
  font-family: "Raleway";
314
+
315
+ .selected-image {
316
+ display: flex;
317
+ align-items: center;
318
+ padding-bottom: 10px;
319
+
320
+ .input-upload {
321
+ height: 60px;
322
+ padding-left: 30px;
323
+ }
324
+ }
306
325
  }
307
326
 
308
327
  .padding-5 {
@@ -137,24 +137,17 @@
137
137
 
138
138
 
139
139
  span.related__item__content_name {
140
+ display: inline-block;
140
141
  min-width: calc(100% - 13px);
141
- max-width: 250px;
142
- display: flex;
143
- align-items: center;
144
- & > span:nth-child(1){
145
- display: inline-block;
146
- margin-right: 4px;
147
- white-space: nowrap;
148
- overflow: hidden;
149
- text-overflow: ellipsis;
150
- max-width: 200px;
151
- }
142
+ white-space: nowrap;
143
+ overflow: hidden;
144
+ text-overflow: ellipsis;
145
+ max-width: 220px;
152
146
 
153
147
  .select__include-children__count {
154
148
  font-size: 0.75rem;
155
149
  color: black(0.5);
156
150
  font-weight: 600;
157
- line-height: 16px;
158
151
  }
159
152
  }
160
153
  }
@@ -208,16 +201,3 @@
208
201
  color: unset !important;
209
202
  }
210
203
  }
211
-
212
- @media screen and (max-width: 600px) {
213
- ::ng-deep .cdk-global-overlay-wrapper{
214
- justify-content: center !important;
215
- width: 100vw;
216
- }
217
- .header-title{
218
- font-size: 14px;
219
- }
220
- .related__item__content_name{
221
- font-size: 12px !important;
222
- }
223
- }