qms-angular 1.1.42 → 1.1.43

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 (101) hide show
  1. package/bundles/qms-angular.umd.js +1541 -435
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/common/enum/data-type.enum.js +2 -1
  4. package/esm2015/lib/common/enum/process-classification.enum.js +6 -0
  5. package/esm2015/lib/common/qms-icon.const.js +116 -111
  6. package/esm2015/lib/common/themes.const.js +2 -2
  7. package/esm2015/lib/components/app-icon/icon-registry.service.js +5 -2
  8. package/esm2015/lib/components/related/common/video.const.js +3 -1
  9. package/esm2015/lib/components/related/content/related-content.component.js +2 -2
  10. package/esm2015/lib/components/related/list-other-related/list-related.component.js +5 -2
  11. package/esm2015/lib/components/related/model/popup-data.model.js +3 -1
  12. package/esm2015/lib/components/related/model/related-data.model.js +1 -1
  13. package/esm2015/lib/components/related/popup/related-popup.component.js +48 -32
  14. package/esm2015/lib/components/related/related.module.js +3 -2
  15. package/esm2015/lib/components/related/risk/analysis/analysis.component.js +2 -2
  16. package/esm2015/lib/components/select-access-dialog/select-access-dialog.component.js +1 -1
  17. package/esm2015/lib/components/select-department-tree/select-department-tree.component.js +1 -1
  18. package/esm2015/lib/components/select-one/select-one.component.js +2 -2
  19. package/esm2015/lib/components/select-process-document/select-process-document.component.js +15 -11
  20. package/esm2015/lib/components/tree/model/tree-config.model.js +1 -1
  21. package/esm2015/lib/components/tree/tree.component.js +12 -4
  22. package/esm2015/lib/components/treeNew/model/tree-node.model.js +1 -1
  23. package/esm2015/lib/components/treeNew/model/tree.model.js +1 -1
  24. package/esm2015/lib/components/treeNew/tree.component.js +8 -4
  25. package/esm2015/lib/components/treeNew/tree.function.js +8 -4
  26. package/esm2015/lib/model/en.js +86 -2
  27. package/esm2015/lib/model/no.js +87 -3
  28. package/esm2015/lib/model/sv.js +437 -0
  29. package/esm2015/lib/qms-ckeditor-components/common/functions/common.function.js +15 -14
  30. package/esm2015/lib/qms-ckeditor-components/common/functions/resource.function.js +207 -0
  31. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.js +1 -1
  32. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-url.model.js +1 -1
  33. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.js +262 -29
  34. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.js +102 -36
  35. package/esm2015/lib/qms-ckeditor-components/models/qms-ckeditor-imagemap.model.js +1 -1
  36. package/esm2015/lib/qms-ckeditor-components/models/qms-ckeditor-video.model.js +16 -0
  37. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +39 -118
  38. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn.service.js +10 -3
  39. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.js +7 -3
  40. package/esm2015/lib/services/translation-registry.service.js +7 -5
  41. package/fesm2015/qms-angular.js +1576 -497
  42. package/fesm2015/qms-angular.js.map +1 -1
  43. package/lib/common/enum/data-type.enum.d.ts +2 -1
  44. package/lib/common/enum/process-classification.enum.d.ts +4 -0
  45. package/lib/common/qms-icon.const.d.ts +1 -0
  46. package/lib/components/app-icon/icon-registry.service.d.ts +1 -0
  47. package/lib/components/related/common/video.const.d.ts +2 -0
  48. package/lib/components/related/content/related-content.component.d.ts +1 -1
  49. package/lib/components/related/list-other-related/list-related.component.d.ts +2 -2
  50. package/lib/components/related/model/popup-data.model.d.ts +3 -0
  51. package/lib/components/related/model/related-data.model.d.ts +1 -0
  52. package/lib/components/related/popup/related-popup.component.d.ts +7 -3
  53. package/lib/components/select-one/select-one.component.d.ts +1 -1
  54. package/lib/components/select-process-document/select-process-document.component.d.ts +5 -6
  55. package/lib/components/tree/model/tree-config.model.d.ts +1 -1
  56. package/lib/components/tree/tree.component.d.ts +1 -1
  57. package/lib/components/treeNew/model/tree-node.model.d.ts +1 -0
  58. package/lib/components/treeNew/model/tree.model.d.ts +1 -0
  59. package/lib/components/treeNew/tree.component.d.ts +5 -2
  60. package/lib/model/en.d.ts +84 -0
  61. package/lib/model/no.d.ts +84 -0
  62. package/lib/model/sv.d.ts +436 -0
  63. package/lib/qms-ckeditor-components/common/functions/common.function.d.ts +29 -10
  64. package/lib/qms-ckeditor-components/common/functions/resource.function.d.ts +194 -0
  65. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.d.ts +3 -0
  66. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-url.model.d.ts +2 -0
  67. package/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.d.ts +13 -2
  68. package/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.d.ts +1 -0
  69. package/lib/qms-ckeditor-components/models/qms-ckeditor-imagemap.model.d.ts +1 -0
  70. package/lib/qms-ckeditor-components/models/qms-ckeditor-video.model.d.ts +10 -0
  71. package/lib/qms-ckeditor-components/qms-ckeditor.component.d.ts +1 -2
  72. package/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.d.ts +2 -1
  73. package/lib/services/translation-registry.service.d.ts +1 -0
  74. package/package.json +1 -1
  75. package/qms-angular.metadata.json +1 -1
  76. package/src/assets/jointjs/scss/bpmn.scss +914 -906
  77. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
  78. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js.map +1 -1
  79. package/src/assets/qms-ckeditor-plugin/build/translations/no.js +1 -1
  80. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-find-and-replace/src/findandreplaceui.js +223 -223
  81. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/no.po +21 -0
  82. package/src/assets/qms-ckeditor-plugin/src/plugins/fullscreen/qmsCKEditorFullscreenPlugin.js +52 -50
  83. package/src/assets/qms-ckeditor-plugin/src/plugins/heading/headingui.js +115 -115
  84. package/src/assets/qms-ckeditor-plugin/src/plugins/heading/utils.js +42 -42
  85. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkcommand.js +1 -1
  86. package/src/assets/qms-ckeditor-plugin/src/plugins/media/mediaembedediting.js +281 -283
  87. package/src/assets/qms-ckeditor-plugin/src/plugins/media/theme/mediaembed.css +30 -30
  88. package/src/assets/qms-ckeditor-plugin/src/plugins/media/theme/mediaembedediting.css +57 -57
  89. package/src/assets/qms-ckeditor-plugin/src/plugins/table/theme/snippet.css +3877 -3876
  90. package/src/assets/qms-ckeditor-plugin/src/plugins/video/theme/video.css +17 -17
  91. package/src/assets/qms-ckeditor-plugin/src/plugins/video/theme/videoresize.css +33 -32
  92. package/src/assets/qms-ckeditor-plugin/src/plugins/video/video/videoediting.js +81 -75
  93. package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoresize/resizevideocommand.js +35 -35
  94. package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoresize/videoresizeediting.js +104 -92
  95. package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/browsevideodialogcommand.js +69 -25
  96. package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/uploadvideocommand.js +21 -21
  97. package/src/lib/components/related/popup/related-popup.component.scss +374 -350
  98. package/esm2015/lib/components/related/common/data-type.enum.js +0 -14
  99. package/esm2015/lib/components/select-one/common/data-type.enum.js +0 -14
  100. package/lib/components/related/common/data-type.enum.d.ts +0 -12
  101. package/lib/components/select-one/common/data-type.enum.d.ts +0 -12
@@ -1,115 +1,115 @@
1
- /**
2
- * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- /**
7
- * @module heading/headingui
8
- */
9
-
10
- import { Plugin } from 'ckeditor5/src/core';
11
- import { Model, createDropdown, addListToDropdown } from 'ckeditor5/src/ui';
12
- import { Collection } from 'ckeditor5/src/utils';
13
-
14
- import { getLocalizedOptions } from './utils';
15
-
16
- import './theme/heading.css';
17
-
18
- /**
19
- * The headings UI feature. It introduces the `headings` dropdown.
20
- *
21
- * @extends module:core/plugin~Plugin
22
- */
23
- export default class HeadingUI extends Plugin {
24
- /**
25
- * @inheritDoc
26
- */
27
- static get pluginName() {
28
- return 'HeadingUI';
29
- }
30
-
31
- /**
32
- * @inheritDoc
33
- */
34
- init() {
35
- const editor = this.editor;
36
- const t = editor.t;
37
- const options = getLocalizedOptions( editor );
38
- const defaultTitle = t( 'Choose heading' );
39
- const dropdownTooltip = editor.config._config.getTranslateLabel('HEADING', t( 'Heading' ));
40
-
41
- // Register UI component.
42
- editor.ui.componentFactory.add( 'heading', locale => {
43
- const titles = {};
44
- const itemDefinitions = new Collection();
45
-
46
- const headingCommand = editor.commands.get( 'heading' );
47
- const paragraphCommand = editor.commands.get( 'paragraph' );
48
-
49
- const commands = [ headingCommand ];
50
-
51
- for ( const option of options ) {
52
- const def = {
53
- type: 'button',
54
- model: new Model( {
55
- label: option.title,
56
- class: option.class,
57
- withText: true
58
- } )
59
- };
60
-
61
- if ( option.model === 'paragraph' ) {
62
- def.model.bind( 'isOn' ).to( paragraphCommand, 'value' );
63
- def.model.set( 'commandName', 'paragraph' );
64
- commands.push( paragraphCommand );
65
- } else {
66
- def.model.bind( 'isOn' ).to( headingCommand, 'value', value => value === option.model );
67
- def.model.set( {
68
- commandName: 'heading',
69
- commandValue: option.model
70
- } );
71
- }
72
-
73
- // Add the option to the collection.
74
- itemDefinitions.add( def );
75
-
76
- titles[ option.model ] = option.title;
77
- }
78
-
79
- const dropdownView = createDropdown( locale );
80
- addListToDropdown( dropdownView, itemDefinitions );
81
-
82
- dropdownView.buttonView.set( {
83
- isOn: false,
84
- withText: true,
85
- tooltip: dropdownTooltip
86
- } );
87
-
88
- dropdownView.extendTemplate( {
89
- attributes: {
90
- class: [
91
- 'ck-heading-dropdown'
92
- ]
93
- }
94
- } );
95
-
96
- dropdownView.bind( 'isEnabled' ).toMany( commands, 'isEnabled', ( ...areEnabled ) => {
97
- return areEnabled.some( isEnabled => isEnabled );
98
- } );
99
-
100
- dropdownView.buttonView.bind( 'label' ).to( headingCommand, 'value', paragraphCommand, 'value', ( value, para ) => {
101
- const whichModel = value || para && 'paragraph';
102
- // If none of the commands is active, display default title.
103
- return titles[ whichModel ] ? titles[ whichModel ] : defaultTitle;
104
- } );
105
-
106
- // Execute command when an item from the dropdown is selected.
107
- this.listenTo( dropdownView, 'execute', evt => {
108
- editor.execute( evt.source.commandName, evt.source.commandValue ? { value: evt.source.commandValue } : undefined );
109
- editor.editing.view.focus();
110
- } );
111
-
112
- return dropdownView;
113
- } );
114
- }
115
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ /**
7
+ * @module heading/headingui
8
+ */
9
+
10
+ import { Plugin } from 'ckeditor5/src/core';
11
+ import { Model, createDropdown, addListToDropdown } from 'ckeditor5/src/ui';
12
+ import { Collection } from 'ckeditor5/src/utils';
13
+
14
+ import { getLocalizedOptions } from './utils';
15
+
16
+ import './theme/heading.css';
17
+
18
+ /**
19
+ * The headings UI feature. It introduces the `headings` dropdown.
20
+ *
21
+ * @extends module:core/plugin~Plugin
22
+ */
23
+ export default class HeadingUI extends Plugin {
24
+ /**
25
+ * @inheritDoc
26
+ */
27
+ static get pluginName() {
28
+ return 'HeadingUI';
29
+ }
30
+
31
+ /**
32
+ * @inheritDoc
33
+ */
34
+ init() {
35
+ const editor = this.editor;
36
+ const t = editor.t;
37
+ const options = getLocalizedOptions( editor );
38
+ const defaultTitle = t( 'Choose heading' );
39
+ const dropdownTooltip = t( 'Heading' );
40
+
41
+ // Register UI component.
42
+ editor.ui.componentFactory.add( 'heading', locale => {
43
+ const titles = {};
44
+ const itemDefinitions = new Collection();
45
+
46
+ const headingCommand = editor.commands.get( 'heading' );
47
+ const paragraphCommand = editor.commands.get( 'paragraph' );
48
+
49
+ const commands = [ headingCommand ];
50
+
51
+ for ( const option of options ) {
52
+ const def = {
53
+ type: 'button',
54
+ model: new Model( {
55
+ label: option.title,
56
+ class: option.class,
57
+ withText: true
58
+ } )
59
+ };
60
+
61
+ if ( option.model === 'paragraph' ) {
62
+ def.model.bind( 'isOn' ).to( paragraphCommand, 'value' );
63
+ def.model.set( 'commandName', 'paragraph' );
64
+ commands.push( paragraphCommand );
65
+ } else {
66
+ def.model.bind( 'isOn' ).to( headingCommand, 'value', value => value === option.model );
67
+ def.model.set( {
68
+ commandName: 'heading',
69
+ commandValue: option.model
70
+ } );
71
+ }
72
+
73
+ // Add the option to the collection.
74
+ itemDefinitions.add( def );
75
+
76
+ titles[ option.model ] = option.title;
77
+ }
78
+
79
+ const dropdownView = createDropdown( locale );
80
+ addListToDropdown( dropdownView, itemDefinitions );
81
+
82
+ dropdownView.buttonView.set( {
83
+ isOn: false,
84
+ withText: true,
85
+ tooltip: dropdownTooltip
86
+ } );
87
+
88
+ dropdownView.extendTemplate( {
89
+ attributes: {
90
+ class: [
91
+ 'ck-heading-dropdown'
92
+ ]
93
+ }
94
+ } );
95
+
96
+ dropdownView.bind( 'isEnabled' ).toMany( commands, 'isEnabled', ( ...areEnabled ) => {
97
+ return areEnabled.some( isEnabled => isEnabled );
98
+ } );
99
+
100
+ dropdownView.buttonView.bind( 'label' ).to( headingCommand, 'value', paragraphCommand, 'value', ( value, para ) => {
101
+ const whichModel = value || para && 'paragraph';
102
+ // If none of the commands is active, display default title.
103
+ return titles[ whichModel ] ? titles[ whichModel ] : defaultTitle;
104
+ } );
105
+
106
+ // Execute command when an item from the dropdown is selected.
107
+ this.listenTo( dropdownView, 'execute', evt => {
108
+ editor.execute( evt.source.commandName, evt.source.commandValue ? { value: evt.source.commandValue } : undefined );
109
+ editor.editing.view.focus();
110
+ } );
111
+
112
+ return dropdownView;
113
+ } );
114
+ }
115
+ }
@@ -1,42 +1,42 @@
1
- /**
2
- * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
- */
5
-
6
- /**
7
- * @module heading/utils
8
- */
9
-
10
- /**
11
- * Returns heading options as defined in `config.heading.options` but processed to consider
12
- * the editor localization, i.e. to display {@link module:heading/heading~HeadingOption}
13
- * in the correct language.
14
- *
15
- * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t}
16
- * when the user configuration is defined because the editor does not exist yet.
17
- *
18
- * @param {module:core/editor/editor~Editor} editor
19
- * @returns {Array.<module:heading/heading~HeadingOption>}.
20
- */
21
- export function getLocalizedOptions( editor ) {
22
- const t = editor.t;
23
- const localizedTitles = {
24
- Paragraph: t( 'Paragraph' ),
25
- 'Heading 1': t( 'Heading 1' ),
26
- 'Heading 2': t( 'Heading 2' ),
27
- 'Heading 3': t( 'Heading 3' ),
28
- 'Heading 4': t( 'Heading 4' ),
29
- 'Heading 5': t( 'Heading 5' ),
30
- 'Heading 6': t( 'Heading 6' )
31
- };
32
-
33
- return editor.config.get( 'heading.options' ).map( option => {
34
- const title = localizedTitles[ option.title ];
35
-
36
- if ( title && title != option.title ) {
37
- option.title = title;
38
- }
39
-
40
- return option;
41
- } );
42
- }
1
+ /**
2
+ * @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
3
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
4
+ */
5
+
6
+ /**
7
+ * @module heading/utils
8
+ */
9
+
10
+ /**
11
+ * Returns heading options as defined in `config.heading.options` but processed to consider
12
+ * the editor localization, i.e. to display {@link module:heading/heading~HeadingOption}
13
+ * in the correct language.
14
+ *
15
+ * Note: The reason behind this method is that there is no way to use {@link module:utils/locale~Locale#t}
16
+ * when the user configuration is defined because the editor does not exist yet.
17
+ *
18
+ * @param {module:core/editor/editor~Editor} editor
19
+ * @returns {Array.<module:heading/heading~HeadingOption>}.
20
+ */
21
+ export function getLocalizedOptions( editor ) {
22
+ const t = editor.t;
23
+ const localizedTitles = {
24
+ Paragraph: t( 'Paragraph' ),
25
+ 'Heading 1': t( 'Heading %0', '1' ),
26
+ 'Heading 2': t( 'Heading %0', '2' ),
27
+ 'Heading 3': t( 'Heading %0', '3' ),
28
+ 'Heading 4': t( 'Heading %0', '4' ),
29
+ 'Heading 5': t( 'Heading %0', '5' ),
30
+ 'Heading 6': t( 'Heading %0', '6' ),
31
+ };
32
+
33
+ return editor.config.get( 'heading.options' ).map( option => {
34
+ const title = localizedTitles[ option.title ];
35
+
36
+ if ( title && title != option.title ) {
37
+ option.title = title;
38
+ }
39
+
40
+ return option;
41
+ } );
42
+ }
@@ -265,7 +265,7 @@ export default class LinkCommand extends Command {
265
265
  // }
266
266
 
267
267
  for ( const range of ranges ) {
268
- const _isRangeToUpdate = true;
268
+ let _isRangeToUpdate = true;
269
269
  for ( const allowedRange of allowedRanges ) {
270
270
  if ( allowedRange.containsRange( range ) ) {
271
271
  _isRangeToUpdate = false;