qms-angular 1.0.55 → 1.0.56

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 (411) hide show
  1. package/bundles/qms-angular.umd.js +4003 -12241
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/components/app-icon/app-icon.module.js +16 -29
  4. package/esm2015/lib/components/app-icon/icon-registry.service.js +7 -9
  5. package/esm2015/lib/components/badges/qms-badges.component.js +15 -24
  6. package/esm2015/lib/components/badges/qms-badges.module.js +18 -33
  7. package/esm2015/lib/components/banner/qms-banner/qms-banner.component.js +16 -28
  8. package/esm2015/lib/components/banner/qms-banner/qms-banner.module.js +19 -36
  9. package/esm2015/lib/components/banner/qms-banner-confirm/qms-banner-confirm.component.js +16 -28
  10. package/esm2015/lib/components/banner/qms-banner-confirm/qms-banner-confirm.module.js +19 -36
  11. package/esm2015/lib/components/banner/qms-banner-loading/qms-banner-loading.component.js +13 -19
  12. package/esm2015/lib/components/banner/qms-banner-loading/qms-banner-loading.module.js +17 -30
  13. package/esm2015/lib/components/breadcrumb/breadcrumb-direction-icon.directive.js +10 -11
  14. package/esm2015/lib/components/breadcrumb/breadcrumb-item.directive.js +17 -20
  15. package/esm2015/lib/components/breadcrumb/breadcrumb.js +28 -40
  16. package/esm2015/lib/components/breadcrumb/breadcrumb.module.js +26 -50
  17. package/esm2015/lib/components/button/button-toggle.js +85 -120
  18. package/esm2015/lib/components/button/button.js +78 -86
  19. package/esm2015/lib/components/button/button.module.js +27 -51
  20. package/esm2015/lib/components/comment/comment.js +18 -29
  21. package/esm2015/lib/components/dialog/dialog.js +28 -38
  22. package/esm2015/lib/components/edit-file-name-dialog/edit-file-name-dialog.js +16 -24
  23. package/esm2015/lib/components/edit-file-name-dialog/edit-file-name-dialog.module.js +31 -71
  24. package/esm2015/lib/components/list/list.js +89 -101
  25. package/esm2015/lib/components/list/list.module.js +50 -94
  26. package/esm2015/lib/components/qms-app-bar/qms-app-bar.component.js +29 -55
  27. package/esm2015/lib/components/qms-app-bar/qms-app-bar.module.js +20 -39
  28. package/esm2015/lib/components/qms-stepper/qms-stepper.component.js +22 -32
  29. package/esm2015/lib/components/qms-stepper/qms-stepper.module.js +25 -35
  30. package/esm2015/lib/components/related/content/related-content.component.js +12 -19
  31. package/esm2015/lib/components/related/list-other-related/list-related.component.js +25 -29
  32. package/esm2015/lib/components/related/popup/related-popup.component.js +33 -50
  33. package/esm2015/lib/components/related/related.module.js +43 -96
  34. package/esm2015/lib/components/related/risk/analysis/analysis.component.js +17 -23
  35. package/esm2015/lib/components/related/risk/list/list.component.js +18 -22
  36. package/esm2015/lib/components/related/risk/result/result.component.js +16 -23
  37. package/esm2015/lib/components/related/service/related-global.service.js +6 -7
  38. package/esm2015/lib/components/related/sidenav/sidenav.component.js +12 -21
  39. package/esm2015/lib/components/reports/qms-report-content-portrait/qms-report-content-portrait.component.js +18 -22
  40. package/esm2015/lib/components/reports/qms-report-cover-portrait/qms-report-cover-portrait.component.js +18 -22
  41. package/esm2015/lib/components/reports/qms-reports.module.js +20 -29
  42. package/esm2015/lib/components/rich-text/rich-text.js +32 -47
  43. package/esm2015/lib/components/rich-text/rich-text.module.js +21 -35
  44. package/esm2015/lib/components/select-dialog/select-dialog.js +16 -31
  45. package/esm2015/lib/components/select-include-children/select-include-children.component.js +33 -47
  46. package/esm2015/lib/components/select-include-children/select-include-children.module.js +33 -78
  47. package/esm2015/lib/components/select-include-children/services/select-global.service.js +6 -7
  48. package/esm2015/lib/components/suffix-field/suffix-field.directive.js +21 -22
  49. package/esm2015/lib/components/table/table-action.js +31 -31
  50. package/esm2015/lib/components/table/table.module.js +21 -37
  51. package/esm2015/lib/components/test-only/test-only.component.js +11 -14
  52. package/esm2015/lib/components/tooltip/tooltip.js +19 -24
  53. package/esm2015/lib/components/tooltip/tooltip.module.js +20 -38
  54. package/esm2015/lib/components/tree/tree.component.js +33 -46
  55. package/esm2015/lib/components/tree/tree.module.js +30 -69
  56. package/esm2015/lib/components/upload-file-error-dialog/upload-file-error-dialog.js +16 -22
  57. package/esm2015/lib/components/upload-file-error-dialog/upload-file-error-dialog.module.js +31 -71
  58. package/esm2015/lib/directives/chip-input/chip-input-chip-list.directive.js +13 -13
  59. package/esm2015/lib/directives/chip-input/chip-input-field.directive.js +10 -11
  60. package/esm2015/lib/directives/chip-input/chip-input-select-dropdown.directive.js +10 -11
  61. package/esm2015/lib/directives/chip-input/chip-input-select-field.directive.js +14 -17
  62. package/esm2015/lib/directives/chip-input/chip-input-select-trigger.directive.js +13 -14
  63. package/esm2015/lib/directives/chips/chip-body.directive.js +10 -11
  64. package/esm2015/lib/directives/chips/chip.directive.js +13 -13
  65. package/esm2015/lib/directives/dropdown-menu/dropdown-item.directive.js +14 -16
  66. package/esm2015/lib/directives/file-upload/file-upload-attachment-list.directive.js +10 -11
  67. package/esm2015/lib/directives/file-upload/file-upload-display.directive.js +16 -19
  68. package/esm2015/lib/directives/file-upload/file-upload-multiple-display.directive.js +14 -16
  69. package/esm2015/lib/directives/file-upload/file-upload-multiple-selector.directive.js +20 -26
  70. package/esm2015/lib/directives/file-upload/file-upload-multiple.directive.js +15 -19
  71. package/esm2015/lib/directives/file-upload/file-upload-scrollable-attachment-list.directive.js +10 -11
  72. package/esm2015/lib/directives/file-upload/file-upload-selector.directive.js +18 -25
  73. package/esm2015/lib/directives/file-upload/file-upload.directive.js +20 -24
  74. package/esm2015/lib/directives/form.directive.js +51 -48
  75. package/esm2015/lib/directives/margin.directive.js +14 -15
  76. package/esm2015/lib/directives/range-slider/range-slider-lockup.directive.js +10 -11
  77. package/esm2015/lib/directives/range-slider/range-slider.directive.js +14 -17
  78. package/esm2015/lib/directives/scroll-selected/scroll-to-selected.directive.js +15 -16
  79. package/esm2015/lib/directives/scrollbar/scrollbar.directive.js +13 -13
  80. package/esm2015/lib/directives/search-field.directive.js +22 -21
  81. package/esm2015/lib/directives/side-sheet/drawer-content.directive.js +10 -11
  82. package/esm2015/lib/directives/side-sheet/drawer-header-action.directive.js +10 -11
  83. package/esm2015/lib/directives/side-sheet/drawer-header.directive.js +10 -11
  84. package/esm2015/lib/directives/side-sheet/drawer.directive.js +10 -11
  85. package/esm2015/lib/directives/tab/tab-group-advanced.directive.js +14 -15
  86. package/esm2015/lib/directives/tab/tab-group.directive.js +10 -11
  87. package/esm2015/lib/directives/tab/tab-label.directive.js +10 -11
  88. package/esm2015/lib/directives/text-block/text-block-line.directive.js +16 -20
  89. package/esm2015/lib/directives/text-block/text-block.directive.js +14 -17
  90. package/esm2015/lib/directives/tooltip/tooltip-image.directive.js +13 -14
  91. package/esm2015/lib/directives/tooltip/tooltip-renderer.directive.js +22 -35
  92. package/esm2015/lib/material-module.js +16 -35
  93. package/esm2015/lib/model/en.js +4 -35
  94. package/esm2015/lib/model/no.js +3 -34
  95. package/esm2015/lib/pipe/dateFormat.pipe.js +10 -11
  96. package/esm2015/lib/qms-angular.component.js +11 -13
  97. package/esm2015/lib/qms-angular.module.js +121 -232
  98. package/esm2015/lib/qms-angular.service.js +8 -9
  99. package/esm2015/lib/qms-ckeditor-components/common/bpmn/toolbar.function.js +12 -32
  100. package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorEvent.constant.js +1 -5
  101. package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorFlowchart.const.js +1 -10
  102. package/esm2015/lib/qms-ckeditor-components/common/enums/document-type.enum.js +1 -2
  103. package/esm2015/lib/qms-ckeditor-components/common/functions/common.function.js +2 -2
  104. package/esm2015/lib/qms-ckeditor-components/common/module/confirm/qms-ckeditor-confirm.component.js +16 -23
  105. package/esm2015/lib/qms-ckeditor-components/common/module/tree/qms-ckeditor-tree.component.js +19 -34
  106. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.js +53 -577
  107. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/save-template/save-template.component.js +35 -69
  108. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-fullscreen/qms-ckeditor-fullscreen.component.js +8 -12
  109. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.js +30 -39
  110. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/attachments/link-attachment.component.js +18 -22
  111. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.js +20 -29
  112. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.js +18 -22
  113. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-relation/qmsckeditor-related.component.js +23 -35
  114. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-template/qms-ckeditor-template.component.js +20 -30
  115. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.js +18 -27
  116. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor-base.component.js +4 -7
  117. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +44 -118
  118. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.module.js +55 -131
  119. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-base.service.js +10 -10
  120. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn-api.service.js +9 -9
  121. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn.service.js +26 -66
  122. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-global.service.js +8 -9
  123. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-link.service.js +9 -9
  124. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.js +9 -9
  125. package/esm2015/lib/qms-ckeditor-components/services/qms-ckedtior-template.service.js +9 -9
  126. package/esm2015/lib/services/translation-registry.service.js +8 -9
  127. package/esm2015/lib/shared.module.js +4 -9
  128. package/esm2015/public-api.js +1 -16
  129. package/esm2015/qms-angular.js +9 -1
  130. package/fesm2015/qms-angular.js +3031 -11134
  131. package/fesm2015/qms-angular.js.map +1 -1
  132. package/lib/components/app-icon/app-icon.module.d.ts +0 -7
  133. package/lib/components/app-icon/icon-registry.service.d.ts +0 -3
  134. package/lib/components/badges/qms-badges.component.d.ts +0 -3
  135. package/lib/components/badges/qms-badges.module.d.ts +0 -9
  136. package/lib/components/banner/qms-banner/qms-banner.component.d.ts +0 -3
  137. package/lib/components/banner/qms-banner/qms-banner.module.d.ts +0 -10
  138. package/lib/components/banner/qms-banner-confirm/qms-banner-confirm.component.d.ts +0 -3
  139. package/lib/components/banner/qms-banner-confirm/qms-banner-confirm.module.d.ts +0 -10
  140. package/lib/components/banner/qms-banner-loading/qms-banner-loading.component.d.ts +0 -3
  141. package/lib/components/banner/qms-banner-loading/qms-banner-loading.module.d.ts +0 -8
  142. package/lib/components/breadcrumb/breadcrumb-direction-icon.directive.d.ts +0 -3
  143. package/lib/components/breadcrumb/breadcrumb-item.directive.d.ts +0 -3
  144. package/lib/components/breadcrumb/breadcrumb.d.ts +0 -3
  145. package/lib/components/breadcrumb/breadcrumb.module.d.ts +0 -13
  146. package/lib/components/button/button-toggle.d.ts +0 -5
  147. package/lib/components/button/button.d.ts +0 -7
  148. package/lib/components/button/button.module.d.ts +0 -9
  149. package/lib/components/comment/comment.d.ts +0 -3
  150. package/lib/components/dialog/dialog.d.ts +0 -5
  151. package/lib/components/edit-file-name-dialog/edit-file-name-dialog.d.ts +0 -3
  152. package/lib/components/edit-file-name-dialog/edit-file-name-dialog.module.d.ts +0 -16
  153. package/lib/components/list/list.d.ts +0 -15
  154. package/lib/components/list/list.module.d.ts +0 -11
  155. package/lib/components/qms-app-bar/qms-app-bar.component.d.ts +0 -3
  156. package/lib/components/qms-app-bar/qms-app-bar.module.d.ts +0 -12
  157. package/lib/components/qms-stepper/qms-stepper.component.d.ts +0 -3
  158. package/lib/components/qms-stepper/qms-stepper.module.d.ts +0 -8
  159. package/lib/components/related/content/related-content.component.d.ts +0 -3
  160. package/lib/components/related/list-other-related/list-related.component.d.ts +0 -3
  161. package/lib/components/related/popup/related-popup.component.d.ts +0 -3
  162. package/lib/components/related/related.module.d.ts +0 -29
  163. package/lib/components/related/risk/analysis/analysis.component.d.ts +0 -3
  164. package/lib/components/related/risk/list/list.component.d.ts +0 -3
  165. package/lib/components/related/risk/result/result.component.d.ts +0 -3
  166. package/lib/components/related/service/related-global.service.d.ts +0 -3
  167. package/lib/components/related/sidenav/sidenav.component.d.ts +0 -3
  168. package/lib/components/reports/qms-report-content-portrait/qms-report-content-portrait.component.d.ts +0 -3
  169. package/lib/components/reports/qms-report-cover-portrait/qms-report-cover-portrait.component.d.ts +0 -3
  170. package/lib/components/reports/qms-reports.module.d.ts +0 -7
  171. package/lib/components/rich-text/rich-text.d.ts +0 -3
  172. package/lib/components/rich-text/rich-text.module.d.ts +0 -8
  173. package/lib/components/select-dialog/select-dialog.d.ts +0 -3
  174. package/lib/components/select-include-children/select-include-children.component.d.ts +0 -3
  175. package/lib/components/select-include-children/select-include-children.module.d.ts +0 -25
  176. package/lib/components/select-include-children/services/select-global.service.d.ts +0 -3
  177. package/lib/components/suffix-field/suffix-field.directive.d.ts +0 -5
  178. package/lib/components/table/table-action.d.ts +0 -5
  179. package/lib/components/table/table.module.d.ts +0 -8
  180. package/lib/components/test-only/test-only.component.d.ts +0 -3
  181. package/lib/components/tooltip/tooltip.d.ts +0 -3
  182. package/lib/components/tooltip/tooltip.module.d.ts +0 -9
  183. package/lib/components/tree/tree.component.d.ts +0 -3
  184. package/lib/components/tree/tree.module.d.ts +0 -22
  185. package/lib/components/upload-file-error-dialog/upload-file-error-dialog.d.ts +0 -3
  186. package/lib/components/upload-file-error-dialog/upload-file-error-dialog.module.d.ts +0 -16
  187. package/lib/directives/chip-input/chip-input-chip-list.directive.d.ts +0 -3
  188. package/lib/directives/chip-input/chip-input-field.directive.d.ts +0 -3
  189. package/lib/directives/chip-input/chip-input-select-dropdown.directive.d.ts +0 -3
  190. package/lib/directives/chip-input/chip-input-select-field.directive.d.ts +0 -3
  191. package/lib/directives/chip-input/chip-input-select-trigger.directive.d.ts +0 -3
  192. package/lib/directives/chips/chip-body.directive.d.ts +0 -3
  193. package/lib/directives/chips/chip.directive.d.ts +0 -3
  194. package/lib/directives/dropdown-menu/dropdown-item.directive.d.ts +0 -3
  195. package/lib/directives/file-upload/file-upload-attachment-list.directive.d.ts +0 -3
  196. package/lib/directives/file-upload/file-upload-display.directive.d.ts +0 -3
  197. package/lib/directives/file-upload/file-upload-multiple-display.directive.d.ts +0 -3
  198. package/lib/directives/file-upload/file-upload-multiple-selector.directive.d.ts +0 -3
  199. package/lib/directives/file-upload/file-upload-multiple.directive.d.ts +0 -3
  200. package/lib/directives/file-upload/file-upload-scrollable-attachment-list.directive.d.ts +0 -3
  201. package/lib/directives/file-upload/file-upload-selector.directive.d.ts +0 -3
  202. package/lib/directives/file-upload/file-upload.directive.d.ts +0 -5
  203. package/lib/directives/form.directive.d.ts +0 -11
  204. package/lib/directives/margin.directive.d.ts +0 -3
  205. package/lib/directives/range-slider/range-slider-lockup.directive.d.ts +0 -3
  206. package/lib/directives/range-slider/range-slider.directive.d.ts +0 -3
  207. package/lib/directives/scroll-selected/scroll-to-selected.directive.d.ts +0 -3
  208. package/lib/directives/scrollbar/scrollbar.directive.d.ts +0 -3
  209. package/lib/directives/search-field.directive.d.ts +0 -5
  210. package/lib/directives/side-sheet/drawer-content.directive.d.ts +0 -3
  211. package/lib/directives/side-sheet/drawer-header-action.directive.d.ts +0 -3
  212. package/lib/directives/side-sheet/drawer-header.directive.d.ts +0 -3
  213. package/lib/directives/side-sheet/drawer.directive.d.ts +0 -3
  214. package/lib/directives/tab/tab-group-advanced.directive.d.ts +0 -3
  215. package/lib/directives/tab/tab-group.directive.d.ts +0 -3
  216. package/lib/directives/tab/tab-label.directive.d.ts +0 -3
  217. package/lib/directives/text-block/text-block-line.directive.d.ts +0 -3
  218. package/lib/directives/text-block/text-block.directive.d.ts +0 -3
  219. package/lib/directives/tooltip/tooltip-image.directive.d.ts +0 -3
  220. package/lib/directives/tooltip/tooltip-renderer.directive.d.ts +0 -3
  221. package/lib/material-module.d.ts +0 -12
  222. package/lib/model/en.d.ts +0 -31
  223. package/lib/model/no.d.ts +0 -31
  224. package/lib/pipe/dateFormat.pipe.d.ts +0 -3
  225. package/lib/qms-angular.component.d.ts +0 -3
  226. package/lib/qms-angular.module.d.ts +0 -49
  227. package/lib/qms-angular.service.d.ts +0 -3
  228. package/lib/qms-ckeditor-components/common/bpmn/toolbar.function.d.ts +2 -2
  229. package/lib/qms-ckeditor-components/common/constants/ckeditorEvent.constant.d.ts +0 -4
  230. package/lib/qms-ckeditor-components/common/constants/ckeditorFlowchart.const.d.ts +0 -9
  231. package/lib/qms-ckeditor-components/common/enums/document-type.enum.d.ts +0 -1
  232. package/lib/qms-ckeditor-components/common/module/confirm/qms-ckeditor-confirm.component.d.ts +0 -3
  233. package/lib/qms-ckeditor-components/common/module/tree/qms-ckeditor-tree.component.d.ts +0 -3
  234. package/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.d.ts +4 -88
  235. package/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/save-template/save-template.component.d.ts +2 -11
  236. package/lib/qms-ckeditor-components/components/qms-ckeditor-fullscreen/qms-ckeditor-fullscreen.component.d.ts +0 -3
  237. package/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.d.ts +0 -3
  238. package/lib/qms-ckeditor-components/components/qms-ckeditor-link/attachments/link-attachment.component.d.ts +0 -3
  239. package/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.d.ts +0 -3
  240. package/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.d.ts +0 -3
  241. package/lib/qms-ckeditor-components/components/qms-ckeditor-relation/qmsckeditor-related.component.d.ts +0 -4
  242. package/lib/qms-ckeditor-components/components/qms-ckeditor-template/qms-ckeditor-template.component.d.ts +0 -3
  243. package/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.d.ts +0 -3
  244. package/lib/qms-ckeditor-components/qms-ckeditor-base.component.d.ts +0 -3
  245. package/lib/qms-ckeditor-components/qms-ckeditor.component.d.ts +0 -8
  246. package/lib/qms-ckeditor-components/qms-ckeditor.module.d.ts +0 -44
  247. package/lib/qms-ckeditor-components/services/qms-ckeditor-base.service.d.ts +0 -3
  248. package/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn-api.service.d.ts +0 -3
  249. package/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn.service.d.ts +0 -4
  250. package/lib/qms-ckeditor-components/services/qms-ckeditor-global.service.d.ts +0 -3
  251. package/lib/qms-ckeditor-components/services/qms-ckeditor-link.service.d.ts +0 -3
  252. package/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.d.ts +0 -3
  253. package/lib/qms-ckeditor-components/services/qms-ckedtior-template.service.d.ts +0 -3
  254. package/lib/services/translation-registry.service.d.ts +0 -3
  255. package/lib/shared.module.d.ts +0 -4
  256. package/lib.theme.scss +0 -8
  257. package/package.json +2 -1
  258. package/public-api.d.ts +0 -14
  259. package/qms-angular.d.ts +8 -1
  260. package/qms-angular.metadata.json +1 -0
  261. package/src/assets/jointjs/scss/bpmn.scss +35 -36
  262. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
  263. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js.map +1 -1
  264. package/src/assets/qms-ckeditor-plugin/build/translations/ar.js +1 -1
  265. package/src/assets/qms-ckeditor-plugin/build/translations/az.js +1 -1
  266. package/src/assets/qms-ckeditor-plugin/build/translations/bg.js +1 -1
  267. package/src/assets/qms-ckeditor-plugin/build/translations/cs.js +1 -1
  268. package/src/assets/qms-ckeditor-plugin/build/translations/da.js +1 -1
  269. package/src/assets/qms-ckeditor-plugin/build/translations/de-ch.js +1 -1
  270. package/src/assets/qms-ckeditor-plugin/build/translations/de.js +1 -1
  271. package/src/assets/qms-ckeditor-plugin/build/translations/en-au.js +1 -1
  272. package/src/assets/qms-ckeditor-plugin/build/translations/en-gb.js +1 -1
  273. package/src/assets/qms-ckeditor-plugin/build/translations/es.js +1 -1
  274. package/src/assets/qms-ckeditor-plugin/build/translations/et.js +1 -1
  275. package/src/assets/qms-ckeditor-plugin/build/translations/fa.js +1 -1
  276. package/src/assets/qms-ckeditor-plugin/build/translations/fi.js +1 -1
  277. package/src/assets/qms-ckeditor-plugin/build/translations/fr.js +1 -1
  278. package/src/assets/qms-ckeditor-plugin/build/translations/gl.js +1 -1
  279. package/src/assets/qms-ckeditor-plugin/build/translations/he.js +1 -1
  280. package/src/assets/qms-ckeditor-plugin/build/translations/hi.js +1 -1
  281. package/src/assets/qms-ckeditor-plugin/build/translations/hr.js +1 -1
  282. package/src/assets/qms-ckeditor-plugin/build/translations/hu.js +1 -1
  283. package/src/assets/qms-ckeditor-plugin/build/translations/id.js +1 -1
  284. package/src/assets/qms-ckeditor-plugin/build/translations/it.js +1 -1
  285. package/src/assets/qms-ckeditor-plugin/build/translations/ja.js +1 -1
  286. package/src/assets/qms-ckeditor-plugin/build/translations/ko.js +1 -1
  287. package/src/assets/qms-ckeditor-plugin/build/translations/ku.js +1 -1
  288. package/src/assets/qms-ckeditor-plugin/build/translations/lt.js +1 -1
  289. package/src/assets/qms-ckeditor-plugin/build/translations/lv.js +1 -1
  290. package/src/assets/qms-ckeditor-plugin/build/translations/nb.js +1 -1
  291. package/src/assets/qms-ckeditor-plugin/build/translations/ne.js +1 -1
  292. package/src/assets/qms-ckeditor-plugin/build/translations/nl.js +1 -1
  293. package/src/assets/qms-ckeditor-plugin/build/translations/no.js +1 -1
  294. package/src/assets/qms-ckeditor-plugin/build/translations/pl.js +1 -1
  295. package/src/assets/qms-ckeditor-plugin/build/translations/pt-br.js +1 -1
  296. package/src/assets/qms-ckeditor-plugin/build/translations/ro.js +1 -1
  297. package/src/assets/qms-ckeditor-plugin/build/translations/ru.js +1 -1
  298. package/src/assets/qms-ckeditor-plugin/build/translations/sk.js +1 -1
  299. package/src/assets/qms-ckeditor-plugin/build/translations/sl.js +1 -1
  300. package/src/assets/qms-ckeditor-plugin/build/translations/sq.js +1 -1
  301. package/src/assets/qms-ckeditor-plugin/build/translations/sr-latn.js +1 -1
  302. package/src/assets/qms-ckeditor-plugin/build/translations/sr.js +1 -1
  303. package/src/assets/qms-ckeditor-plugin/build/translations/sv.js +1 -1
  304. package/src/assets/qms-ckeditor-plugin/build/translations/th.js +1 -1
  305. package/src/assets/qms-ckeditor-plugin/build/translations/tk.js +1 -1
  306. package/src/assets/qms-ckeditor-plugin/build/translations/tr.js +1 -1
  307. package/src/assets/qms-ckeditor-plugin/build/translations/ug.js +1 -1
  308. package/src/assets/qms-ckeditor-plugin/build/translations/uk.js +1 -1
  309. package/src/assets/qms-ckeditor-plugin/build/translations/vi.js +1 -1
  310. package/src/assets/qms-ckeditor-plugin/build/translations/zh-cn.js +1 -1
  311. package/src/assets/qms-ckeditor-plugin/build/translations/zh.js +1 -1
  312. package/src/assets/qms-ckeditor-plugin/package-lock.json +12177 -17
  313. package/src/assets/qms-ckeditor-plugin/package.json +0 -1
  314. package/src/assets/qms-ckeditor-plugin/src/ckeditor.js +3 -22
  315. package/src/assets/qms-ckeditor-plugin/src/dist/ckeditor.dev.js +173 -0
  316. package/src/assets/qms-ckeditor-plugin/src/plugins/bpmn/qmsCKEditorBpmnPlugin.js +5 -24
  317. package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorConstant.js +1 -7
  318. package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorService.js +0 -20
  319. package/src/assets/qms-ckeditor-plugin/src/plugins/fullscreen/dist/qmsCKEditorFullscreenPlugin.dev.js +87 -0
  320. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapediting.js +43 -47
  321. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapui.js +1 -1
  322. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/insertimagemapcommand.js +108 -72
  323. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/resizeimagemapcommand.js +3 -4
  324. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/utils.js +0 -13
  325. package/src/assets/qms-ckeditor-plugin/src/plugins/timestamp/timestamp.js +8 -8
  326. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipui.js +24 -23
  327. package/src/assets/qms-ckeditor-plugin/src/themes/icons/information.svg +50 -1
  328. package/src/assets/qms-ckeditor-plugin/src/themes/icons/timestamp.svg +1 -1
  329. package/src/lib/components/tree/tree.component.scss +1 -1
  330. package/src/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.scss +1 -15
  331. package/src/lib/qms-ckeditor-components/styles/_layout.scss +0 -24
  332. package/src/lib/qms-ckeditor-components/styles/_modules.scss +0 -8
  333. package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorLink.constant.js +0 -7
  334. package/esm2015/lib/qms-ckeditor-components/common/enums/shape-flow-chart-connection-type.js +0 -8
  335. package/esm2015/lib/qms-ckeditor-components/common/flowchart/sample/sample-graphs.js +0 -16
  336. package/esm2015/lib/qms-ckeditor-components/common/flowchart/service/halo-service.js +0 -105
  337. package/esm2015/lib/qms-ckeditor-components/common/flowchart/service/inspector-service.js +0 -3762
  338. package/esm2015/lib/qms-ckeditor-components/common/flowchart/service/keyboard-service.js +0 -68
  339. package/esm2015/lib/qms-ckeditor-components/common/flowchart/service/kitchensink-service.js +0 -372
  340. package/esm2015/lib/qms-ckeditor-components/common/flowchart/service/stencil-service.js +0 -1041
  341. package/esm2015/lib/qms-ckeditor-components/common/flowchart/service/toolbar-service.js +0 -326
  342. package/esm2015/lib/qms-ckeditor-components/common/flowchart/shapes/app-shapes.js +0 -318
  343. package/esm2015/lib/qms-ckeditor-components/common/flowchart/themes/theme-picker.js +0 -80
  344. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart-template.model.js +0 -9
  345. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart.model.js +0 -9
  346. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-save-as-template.model.js +0 -3
  347. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.js +0 -43
  348. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-flowchart/qms-ckeditor-flowchart.component.js +0 -322
  349. package/esm2015/lib/qms-ckeditor-components/models/qms-ckeditor-bpmn-data.model.js +0 -8
  350. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-flowchart.service.js +0 -26
  351. package/lib/qms-ckeditor-components/common/constants/ckeditorLink.constant.d.ts +0 -6
  352. package/lib/qms-ckeditor-components/common/enums/shape-flow-chart-connection-type.d.ts +0 -6
  353. package/lib/qms-ckeditor-components/common/flowchart/sample/sample-graphs.d.ts +0 -14
  354. package/lib/qms-ckeditor-components/common/flowchart/service/halo-service.d.ts +0 -48
  355. package/lib/qms-ckeditor-components/common/flowchart/service/inspector-service.d.ts +0 -18
  356. package/lib/qms-ckeditor-components/common/flowchart/service/keyboard-service.d.ts +0 -17
  357. package/lib/qms-ckeditor-components/common/flowchart/service/kitchensink-service.d.ts +0 -62
  358. package/lib/qms-ckeditor-components/common/flowchart/service/stencil-service.d.ts +0 -1183
  359. package/lib/qms-ckeditor-components/common/flowchart/service/toolbar-service.d.ts +0 -216
  360. package/lib/qms-ckeditor-components/common/flowchart/shapes/app-shapes.d.ts +0 -61
  361. package/lib/qms-ckeditor-components/common/flowchart/themes/theme-picker.d.ts +0 -36
  362. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart-template.model.d.ts +0 -7
  363. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart.model.d.ts +0 -7
  364. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-save-as-template.model.d.ts +0 -7
  365. package/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.d.ts +0 -18
  366. package/lib/qms-ckeditor-components/components/qms-ckeditor-flowchart/qms-ckeditor-flowchart.component.d.ts +0 -44
  367. package/lib/qms-ckeditor-components/models/qms-ckeditor-bpmn-data.model.d.ts +0 -7
  368. package/lib/qms-ckeditor-components/services/qms-ckeditor-flowchart.service.d.ts +0 -13
  369. package/src/assets/images/ckeditor5.svg +0 -1
  370. package/src/assets/jointjs/fonts/Alegreya_Sans/AlegreyaSans-Bold.ttf +0 -0
  371. package/src/assets/jointjs/fonts/Alegreya_Sans/AlegreyaSans-Light.ttf +0 -0
  372. package/src/assets/jointjs/fonts/Alegreya_Sans/AlegreyaSans-Regular.ttf +0 -0
  373. package/src/assets/jointjs/fonts/Alegreya_Sans/OFL.txt +0 -92
  374. package/src/assets/jointjs/fonts/Averia_Libre/AveriaLibre-Bold.ttf +0 -0
  375. package/src/assets/jointjs/fonts/Averia_Libre/AveriaLibre-Light.ttf +0 -0
  376. package/src/assets/jointjs/fonts/Averia_Libre/AveriaLibre-Regular.ttf +0 -0
  377. package/src/assets/jointjs/fonts/Averia_Libre/OFL.txt +0 -93
  378. package/src/assets/jointjs/fonts/Roboto_Condensed/LICENSE.txt +0 -202
  379. package/src/assets/jointjs/fonts/Roboto_Condensed/RobotoCondensed-Bold.ttf +0 -0
  380. package/src/assets/jointjs/fonts/Roboto_Condensed/RobotoCondensed-Light.ttf +0 -0
  381. package/src/assets/jointjs/fonts/Roboto_Condensed/RobotoCondensed-Regular.ttf +0 -0
  382. package/src/assets/jointjs/images/delete-icon-modern.png +0 -0
  383. package/src/assets/jointjs/images/image-icon1.svg +0 -1
  384. package/src/assets/jointjs/images/image-icon2.svg +0 -6
  385. package/src/assets/jointjs/images/image-icon3.svg +0 -11
  386. package/src/assets/jointjs/images/image-icon4.svg +0 -8
  387. package/src/assets/jointjs/images/member-female.png +0 -0
  388. package/src/assets/jointjs/images/member-male.png +0 -0
  389. package/src/assets/jointjs/images/no-color-icon.svg +0 -72
  390. package/src/assets/jointjs/images/reset-icon-modern.png +0 -0
  391. package/src/assets/jointjs/images/save-icon-modern.png +0 -0
  392. package/src/assets/jointjs/images/to-front-icon-modern.png +0 -0
  393. package/src/assets/jointjs/images/toback-icon-modern.png +0 -0
  394. package/src/assets/jointjs/images/toolbar-icons-dark.woff +0 -0
  395. package/src/assets/jointjs/images/toolbar-icons-material.png +0 -0
  396. package/src/assets/jointjs/images/toolbar-icons-modern.png +0 -0
  397. package/src/assets/jointjs/images/transparent-icon.svg +0 -50
  398. package/src/assets/jointjs/scss/style.dark.scss +0 -233
  399. package/src/assets/jointjs/scss/style.material.scss +0 -234
  400. package/src/assets/jointjs/scss/style.modern.scss +0 -225
  401. package/src/assets/jointjs/scss/style.scss +0 -216
  402. package/src/assets/jointjs/scss/theme-picker.scss +0 -21
  403. package/src/assets/qms-ckeditor-plugin/src/plugins/aboutckeditor/aboutckeditor.js +0 -28
  404. package/src/assets/qms-ckeditor-plugin/src/plugins/flowchart/qmsCKEditorFlowchartPlugin.js +0 -63
  405. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/openimagemapcommand.js +0 -58
  406. package/src/assets/qms-ckeditor-plugin/src/themes/icons/flowchart.svg +0 -507
  407. package/src/assets/qms-ckeditor-plugin/src/themes/icons/tooltip.svg +0 -1
  408. package/src/lib/components/select-one/select-one.component.scss +0 -240
  409. package/src/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.scss +0 -16
  410. package/src/lib/qms-ckeditor-components/components/qms-ckeditor-flowchart/qms-ckeditor-flowchart.component.scss +0 -5
  411. package/src/themes/_non-bg-srcollbar.scss +0 -4
@@ -1,92 +1,128 @@
1
1
 
2
2
  import { Command } from '@ckeditor/ckeditor5-core';
3
3
  import { isImage } from '@ckeditor/ckeditor5-image/src/image/utils';
4
- import { ImageMapAttributes, ImageMapElements, trimStart, findMapNodes, drawMap, createInsertedEvent, createRemovedEvent } from './utils';
5
-
4
+ import * as QMSCKEditorConstant from '../common/qmsCKEditorConstant';
5
+ import * as QMSCKEditorService from '../common/qmsCKEditorService';
6
+ import { ImageMapAttributes, ImageMapElements, trimStart, parsePixelToFloat, findFirstMapNode, findMapNodes, drawMap } from './utils';
7
+ import { getSelectedImageWidget } from '@ckeditor/ckeditor5-image/src/image/utils';
8
+
6
9
  export default class InsertImageMapCommand extends Command {
7
- // refresh() {
8
- // const element = this.editor.model.document.selection.getSelectedElement();
9
- // this.isEnabled = isImage(element);
10
- // }
11
-
12
- execute( options = {} ) {
10
+
11
+ refresh() {
12
+ const element = this.editor.model.document.selection.getSelectedElement();
13
+ this.isEnabled = isImage(element);
14
+ }
15
+
16
+ execute() {
13
17
  const editor = this.editor;
14
18
  const model = editor.model;
15
- model.change(writer => {
16
- var newName = trimStart(options.name, '#');
17
- const areas = options.areas;
18
- const width = options.imageWidth;
19
- const height = options.imageHeight;
20
- const imageElement = model.document.selection.getSelectedElement();
21
- if(!imageElement | !isImage(imageElement)){
22
- return;
23
- }
24
- const oldName = imageElement.getAttribute(ImageMapAttributes.IMAGE_USE_MAP) || options.oldName;
19
+ const view = editor.editing.view;
20
+ const selectedElement = model.document.selection.getSelectedElement();
21
+
22
+ const mapName = selectedElement.getAttribute(ImageMapAttributes.IMAGE_USE_MAP);
23
+ let originalImageSrc = selectedElement.getAttribute(ImageMapAttributes.IMAGE_SRC);
24
+ if(selectedElement.hasAttribute(ImageMapAttributes.IMAGE_SAVED_SRC) && selectedElement.getAttribute(ImageMapAttributes.IMAGE_SAVED_SRC)){
25
+ originalImageSrc = selectedElement.getAttribute(ImageMapAttributes.IMAGE_SAVED_SRC);
26
+ }
25
27
 
26
- if(!!oldName){
27
- const range = model.createRangeIn(model.document.getRoot());
28
- const existingMapElements = findMapNodes([trimStart(oldName, '#')], range);
29
- if(existingMapElements && existingMapElements.length > 0){
30
- existingMapElements.forEach(element => {
31
- writer.remove(element);
32
- });
33
- }
34
- }
28
+ const data = {'imageUrl': originalImageSrc, 'areas': [], imageWidth: null, imageHeight: null};
29
+ const imageWidget = getSelectedImageWidget( view.document.selection);
30
+ const widgetResizePlugin = editor.plugins.get('WidgetResize');
31
+ const resizer = widgetResizePlugin.getResizerByViewElement( imageWidget );
35
32
 
36
- if(!!areas && areas.length > 0)
37
- {
38
- writer.setAttribute(ImageMapAttributes.IMAGE_USE_MAP, '#' + newName, imageElement);
39
- writer.setAttribute(ImageMapAttributes.IMAGE_WIDTH, width, imageElement);
40
- writer.setAttribute(ImageMapAttributes.IMAGE_HEIGHT, height, imageElement);
33
+ if(resizer){
34
+ const resizerWrapper = resizer._viewResizerWrapper;
35
+ data.imageWidth = parsePixelToFloat(resizerWrapper.getStyle('width', 0));
36
+ data.imageHeight = parsePixelToFloat(resizerWrapper.getStyle('height', 0));
37
+ }
38
+
39
+ if(!!mapName){
40
+ const range = model.createRangeIn(model.document.getRoot());
41
+ const existingMapElement = findFirstMapNode(trimStart(mapName, '#'), range);
42
+ if(existingMapElement){
43
+ data.areas = JSON.parse(existingMapElement.getAttribute(ImageMapAttributes.MAP_AREAS) || []);
44
+ }
45
+ }
46
+
47
+ QMSCKEditorService.imageMapNotify(data);
48
+ window[QMSCKEditorConstant.QMSCK_IMAGEMAP_IS_PROCESSING] = false;
49
+ window.addEventListener(QMSCKEditorConstant.QMSCK_IMAGEMAP_PLUGIN_RESP, (evt) => {
50
+ if (window[QMSCKEditorConstant.QMSCK_IMAGEMAP_IS_PROCESSING]) {
51
+ return;
52
+ }
53
+ window[QMSCKEditorConstant.QMSCK_IMAGEMAP_IS_PROCESSING] = true;
54
+ model.change(writer => {
55
+ var newMapName = trimStart(evt.detail.name, '#');
56
+ const areas = evt.detail.areas;
57
+ const width = evt.detail.imageWidth;
58
+ const height = evt.detail.imageHeight;
59
+ const imageElement = model.document.selection.getSelectedElement();
60
+ const oldMapName = imageElement.getAttribute(ImageMapAttributes.IMAGE_USE_MAP);
41
61
 
42
- let originalImageSrc = imageElement.getAttribute(ImageMapAttributes.IMAGE_SRC);
43
- if(!imageElement.hasAttribute(ImageMapAttributes.IMAGE_SAVED_SRC) || !imageElement.getAttribute(ImageMapAttributes.IMAGE_SAVED_SRC)){
44
- writer.setAttribute(ImageMapAttributes.IMAGE_SAVED_SRC, originalImageSrc, imageElement);
45
- }
46
- else{
47
- originalImageSrc = imageElement.getAttribute(ImageMapAttributes.IMAGE_SAVED_SRC);
62
+ if(!!oldMapName){
63
+ const range = model.createRangeIn(model.document.getRoot());
64
+ const existingMapElements = findMapNodes([trimStart(oldMapName, '#')], range);
65
+ if(existingMapElements && existingMapElements.length > 0){
66
+ existingMapElements.forEach(element => {
67
+ writer.remove(element);
68
+ });
69
+ }
48
70
  }
49
71
 
50
- let attrs = {};
51
- attrs[ImageMapAttributes.MAP_NAME] = newName;
52
- attrs[ImageMapAttributes.MAP_AREAS] = JSON.stringify(areas);
53
- attrs[ImageMapAttributes.MAP_WIDTH] = width;
54
- attrs[ImageMapAttributes.MAP_HEIGHT] = height;
55
- const mapElement = writer.createElement(ImageMapElements.MAP, attrs);
56
-
57
- writer.insert(mapElement, writer.createPositionAt(imageElement, "after"));
72
+ if(!!areas && areas.length > 0)
73
+ {
74
+ writer.setAttribute(ImageMapAttributes.IMAGE_USE_MAP, '#' + newMapName, imageElement);
75
+ writer.setAttribute(ImageMapAttributes.IMAGE_WIDTH, width, imageElement);
76
+ writer.setAttribute(ImageMapAttributes.IMAGE_HEIGHT, height, imageElement);
58
77
 
59
- drawMap(originalImageSrc, width, height, areas, (oldsrc, newsrc) =>{
60
- model.enqueueChange(writer.batch, writer => {
61
- writer.setAttribute(ImageMapAttributes.IMAGE_SRC, newsrc, imageElement);
62
- this.fire(createInsertedEvent(newName));
78
+ let originalImageSrc = imageElement.getAttribute(ImageMapAttributes.IMAGE_SRC);
79
+ if(!imageElement.hasAttribute(ImageMapAttributes.IMAGE_SAVED_SRC) || !imageElement.getAttribute(ImageMapAttributes.IMAGE_SAVED_SRC)){
80
+ writer.setAttribute(ImageMapAttributes.IMAGE_SAVED_SRC, originalImageSrc, imageElement);
81
+ }
82
+ else{
83
+ originalImageSrc = imageElement.getAttribute(ImageMapAttributes.IMAGE_SAVED_SRC);
84
+ }
85
+
86
+ drawMap(originalImageSrc, width, height, areas, (oldsrc, newsrc) =>{
87
+ model.enqueueChange(writer => {
88
+ writer.setAttribute(ImageMapAttributes.IMAGE_SRC, newsrc, imageElement);
89
+ } );
63
90
  });
64
- });
65
- }
66
- else {
67
- if(imageElement.hasAttribute(ImageMapAttributes.IMAGE_USE_MAP)){
68
- writer.removeAttribute(ImageMapAttributes.IMAGE_USE_MAP, imageElement);
69
- }
91
+
92
+ let attrs = {};
93
+ attrs[ImageMapAttributes.MAP_NAME] = newMapName;
94
+ attrs[ImageMapAttributes.MAP_AREAS] = JSON.stringify(areas);
95
+ attrs[ImageMapAttributes.MAP_WIDTH] = width;
96
+ attrs[ImageMapAttributes.MAP_HEIGHT] = height;
97
+ const mapElement = writer.createElement(ImageMapElements.MAP, attrs);
70
98
 
71
- if(imageElement.hasAttribute(ImageMapAttributes.IMAGE_SAVED_SRC)){
72
-
73
- let src = imageElement.getAttribute(ImageMapAttributes.IMAGE_SAVED_SRC);
74
- if(!!src){
75
- writer.setAttribute(ImageMapAttributes.IMAGE_SRC, src, imageElement);
99
+ writer.insert(mapElement, writer.createPositionAt(imageElement, "after"));
100
+ }
101
+ else {
102
+ if(imageElement.hasAttribute(ImageMapAttributes.IMAGE_USE_MAP)){
103
+ writer.removeAttribute(ImageMapAttributes.IMAGE_USE_MAP, imageElement);
104
+ }
105
+
106
+ if(imageElement.hasAttribute(ImageMapAttributes.IMAGE_SAVED_SRC)){
107
+
108
+ let src = imageElement.getAttribute(ImageMapAttributes.IMAGE_SAVED_SRC);
109
+ if(!!src){
110
+ writer.setAttribute(ImageMapAttributes.IMAGE_SRC, src, imageElement);
111
+ }
112
+ writer.removeAttribute(ImageMapAttributes.IMAGE_SAVED_SRC, imageElement);
113
+ }
114
+
115
+ if(imageElement.hasAttribute(ImageMapAttributes.IMAGE_HEIGHT)){
116
+ writer.removeAttribute(ImageMapAttributes.IMAGE_HEIGHT, imageElement);
76
117
  }
77
- writer.removeAttribute(ImageMapAttributes.IMAGE_SAVED_SRC, imageElement);
78
- }
79
-
80
- if(imageElement.hasAttribute(ImageMapAttributes.IMAGE_HEIGHT)){
81
- writer.removeAttribute(ImageMapAttributes.IMAGE_HEIGHT, imageElement);
82
- }
83
118
 
84
- if(imageElement.hasAttribute(ImageMapAttributes.IMAGE_WIDTH)){
85
- writer.removeAttribute(ImageMapAttributes.IMAGE_WIDTH, imageElement);
119
+ if(imageElement.hasAttribute(ImageMapAttributes.IMAGE_WIDTH)){
120
+ writer.removeAttribute(ImageMapAttributes.IMAGE_WIDTH, imageElement);
121
+ }
86
122
  }
87
- this.fire(createRemovedEvent(newName));
88
- }
89
- },{ once: true });
123
+ });
124
+ },
125
+ { once: true });
90
126
  }
91
127
  }
92
128
 
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { Command } from '@ckeditor/ckeditor5-core';
3
3
  import { isImage } from '@ckeditor/ckeditor5-image/src/image/utils';
4
- import { ImageMapAttributes, trimStart, parsePixelToFloat, findFirstMapNode, drawMap, resizeAreaWidth, resizeAreaHeight, createResizedEvent } from './utils';
4
+ import { ImageMapAttributes, trimStart, parsePixelToFloat, findFirstMapNode, drawMap, resizeAreaWidth, resizeAreaHeight } from './utils';
5
5
  import { getSelectedImageWidget} from '@ckeditor/ckeditor5-image/src/image/utils';
6
6
 
7
7
  export default class ResizeImageMapCommand extends Command {
@@ -11,7 +11,7 @@ export default class ResizeImageMapCommand extends Command {
11
11
  this.isEnabled = isImage(element) && element.hasAttribute(ImageMapAttributes.IMAGE_USE_MAP);
12
12
  }
13
13
 
14
- execute( options = {}) {
14
+ execute() {
15
15
  const editor = this.editor;
16
16
  const model = editor.model;
17
17
  const view = this.editor.editing.view;
@@ -68,9 +68,8 @@ export default class ResizeImageMapCommand extends Command {
68
68
  writer.setAttribute(ImageMapAttributes.IMAGE_HEIGHT, newHeight, imageElement);
69
69
 
70
70
  drawMap(originalImageSrc, newWidth, newHeight, areas, (oldsrc, newsrc) =>{
71
- model.enqueueChange(writer.batch, writer => {
71
+ model.enqueueChange(writer => {
72
72
  writer.setAttribute(ImageMapAttributes.IMAGE_SRC, newsrc, imageElement);
73
- this.fire(createResizedEvent(mapName));
74
73
  });
75
74
  });
76
75
  });
@@ -34,7 +34,6 @@ export const ImageMapAttributes = {
34
34
  }
35
35
 
36
36
  export const ImageMapCommands = {
37
- OPEN: 'openImageMap',
38
37
  INSERT: 'insertImageMap',
39
38
  RESIZE: 'resizeImageMap'
40
39
  }
@@ -44,18 +43,6 @@ export const ImageMapElements = {
44
43
  IMAGE: 'image'//It is already defined by the image plugin
45
44
  }
46
45
 
47
- export function createInsertedEvent(mapname){
48
- return trimStart(mapname, '#') + '_inserted';
49
- }
50
-
51
- export function createRemovedEvent(mapname){
52
- return trimStart(mapname, '#') + '_removed';
53
- }
54
-
55
- export function createResizedEvent(mapname){
56
- return trimStart(mapname, '#') + '_resized';
57
- }
58
-
59
46
  export function trimStart(text, charToRemove){
60
47
  if(text && text.length > 0){
61
48
  if(text.charAt(0) == charToRemove){
@@ -10,19 +10,19 @@ import { toMap } from '@ckeditor/ckeditor5-utils';
10
10
  * The default DateTime pattern is dd/MM/yyyy hh:mm:ss aaa
11
11
  *
12
12
  * DateTime Patterns:
13
- *
13
+ *
14
14
  * yy = 2-digit year; yyyy = full year
15
- *
15
+ *
16
16
  * M = digit month; MM = 2-digit month
17
- *
17
+ *
18
18
  * d = digit day; dd = 2-digit day
19
- *
19
+ *
20
20
  * h = hours am/pm; hh = 2-digit hours am/pm; H = hours; HH = 2-digit hours
21
- *
21
+ *
22
22
  * m = minutes; mm = 2-digit minutes; aaa = AM/PM
23
- *
23
+ *
24
24
  * s = seconds; ss = 2-digit seconds
25
- *
25
+ *
26
26
  * S = miliseconds
27
27
  */
28
28
  export default class Timestamp extends Plugin {
@@ -37,7 +37,7 @@ export default class Timestamp extends Plugin {
37
37
  buttonView.set( {
38
38
  label: t('Timestamp'),
39
39
  icon: timestampIcon,
40
- withText: false,
40
+ withText: true,
41
41
  tooltip: true
42
42
  } );
43
43
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
3
- import tooltipIcon from '../../themes/icons/tooltip.svg';
3
+ import informationIcon from '../../themes/icons/information.svg';
4
4
  import * as QMSCKEditorConstant from '../common/qmsCKEditorConstant';
5
5
  import * as QMSCKEditorService from '../common/qmsCKEditorService';
6
6
  import ActionsView from './ui/actionsview';
@@ -12,7 +12,7 @@ export default class TooltipUI extends Plugin {
12
12
  static get requires() {
13
13
  return [ContextualBalloon];
14
14
  }
15
-
15
+
16
16
  static get pluginName() {
17
17
  return 'TooltipUI';
18
18
  }
@@ -24,25 +24,25 @@ export default class TooltipUI extends Plugin {
24
24
  get _isInBalloon() {
25
25
  return this._balloon.hasView(this._actionView);
26
26
  }
27
-
27
+
28
28
  init() {
29
29
  const editor = this.editor;
30
30
  const t = editor.t;
31
31
  const view = editor.editing.view;
32
-
32
+
33
33
  view.addObserver(ClickObserver);
34
34
  this._createActionsView();
35
-
35
+
36
36
  editor.ui.componentFactory.add('tooltip', locale => {
37
37
  const buttonView = new ButtonView(locale);
38
38
 
39
39
  buttonView.set({
40
40
  label: t('Tooltip'),
41
- icon: tooltipIcon,
42
- withText: false,
41
+ icon: informationIcon,
42
+ withText: true,
43
43
  tooltip: true
44
44
  });
45
-
45
+
46
46
  // Bind button to the command.
47
47
  const insertTooltipCommand = editor.commands.get(INSERT_TOOLTIP_COMMAND);
48
48
  buttonView.bind('isEnabled').to(insertTooltipCommand, 'isEnabled' );
@@ -55,26 +55,26 @@ export default class TooltipUI extends Plugin {
55
55
  return buttonView;
56
56
  });
57
57
  }
58
-
58
+
59
59
  destroy() {
60
60
  super.destroy();
61
61
  this._actionView.destroy();
62
62
  }
63
-
63
+
64
64
  _createActionsView() {
65
65
  const editor = this.editor;
66
66
  const view = editor.editing.view;
67
67
  const viewDocument = view.document;
68
68
  this._balloon = this.editor.plugins.get('ContextualBalloon');
69
- this._actionView = new ActionsView(editor.locale);
69
+ this._actionView = new ActionsView(editor.locale);
70
70
 
71
71
  const insertTooltipCommand = editor.commands.get(INSERT_TOOLTIP_COMMAND);
72
72
  const removeTooltipCommand = editor.commands.get(REMOVE_TOOLTIP_COMMAND);
73
-
73
+
74
74
  this._actionView.bind(TOOLTIP_ATTRIBUTE).to( insertTooltipCommand, 'value');
75
75
  this._actionView.editButtonView.bind('isEnabled').to(insertTooltipCommand);
76
76
  this._actionView.removeButtonView.bind('isEnabled').to(removeTooltipCommand);
77
-
77
+
78
78
  this.listenTo(this._actionView, 'edit', () => {
79
79
  const tooltip = { text: '', content: '' };
80
80
  const selectedElement = this._getSelectedTooltipElement();
@@ -93,7 +93,7 @@ export default class TooltipUI extends Plugin {
93
93
  editor.execute(REMOVE_TOOLTIP_COMMAND);
94
94
  this._hideActionsView(true);
95
95
  });
96
-
96
+
97
97
  this._actionView.keystrokes.set('Esc', (data, cancel) => {
98
98
  this._hideActionsView(true);
99
99
  cancel();
@@ -106,7 +106,7 @@ export default class TooltipUI extends Plugin {
106
106
  this._showActionsView();
107
107
  }
108
108
  });
109
-
109
+
110
110
  // Close on click outside of balloon panel element.
111
111
  clickOutsideHandler({
112
112
  emitter: this._actionView,
@@ -124,18 +124,18 @@ export default class TooltipUI extends Plugin {
124
124
  const viewDocument = editor.editing.view.document;
125
125
  //const command = editor.commands.get('imageTextAlternative');
126
126
  //const labeledInput = this._actionView.labeledInput;
127
-
127
+
128
128
  if (!this._isInBalloon) {
129
129
  this._balloon.add({
130
130
  view: this._actionView,
131
131
  position: this._getBalloonPositionData()
132
132
  });
133
133
  }
134
-
134
+
135
135
  // Reposition the balloon or hide the form if an tooltip is no longer selected.
136
136
  const prevSelectedElement = this._getSelectedTooltipElement();
137
137
  const prevSelectionParent = getSelectionParent(viewDocument);
138
-
138
+
139
139
  this.listenTo(editor.ui, 'update', () => {
140
140
  const selectedElement = this._getSelectedTooltipElement();
141
141
  const selectionParent = getSelectionParent(viewDocument);
@@ -143,9 +143,9 @@ export default class TooltipUI extends Plugin {
143
143
  if ((prevSelectedElement && !selectedElement) || (!prevSelectedElement && selectionParent !== prevSelectionParent)) {
144
144
  this._hideActionsView(true);
145
145
  }
146
- else if (this._isVisible)
146
+ else if (this._isVisible)
147
147
  {
148
- this._balloon.updatePosition(this._getBalloonPositionData());
148
+ this._balloon.updatePosition(this._getBalloonPositionData());
149
149
  }
150
150
  });
151
151
  }
@@ -162,7 +162,7 @@ export default class TooltipUI extends Plugin {
162
162
  if (!this._isInBalloon) {
163
163
  return;
164
164
  }
165
-
165
+
166
166
  if (this._actionView.focusTracker.isFocused) {
167
167
  this._actionView.removeButtonView.focus();
168
168
  }
@@ -179,7 +179,7 @@ export default class TooltipUI extends Plugin {
179
179
  const selection = view.document.selection;
180
180
  if (selection.isCollapsed) {
181
181
  return findTooltipElementAncestor(selection.getFirstPosition());
182
- }
182
+ }
183
183
  else {
184
184
  // The range for fully selected link is usually anchored in adjacent text nodes.
185
185
  // Trim it to get closer to the actual link element.
@@ -193,10 +193,11 @@ export default class TooltipUI extends Plugin {
193
193
  // Check if the link element is fully selected.
194
194
  if (view.createRangeIn(startTooltip).getTrimmed().isEqual(range)) {
195
195
  return startTooltip;
196
- }
196
+ }
197
197
  else {
198
198
  return null;
199
199
  }
200
200
  }
201
201
  }
202
202
  }
203
+
@@ -1 +1,50 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/></svg>
1
+ <?xml version="1.0" encoding="iso-8859-1"?>
2
+ <!-- Generator: Adobe Illustrator 19.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
+ <svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
+ viewBox="0 0 512 512" style="enable-background:new 0 0 512 512;" xml:space="preserve">
5
+ <g>
6
+ <g>
7
+ <g>
8
+ <path d="M256,85.333c-23.531,0-42.667,19.135-42.667,42.667s19.135,42.667,42.667,42.667s42.667-19.135,42.667-42.667
9
+ S279.531,85.333,256,85.333z M256,149.333c-11.76,0-21.333-9.573-21.333-21.333s9.573-21.333,21.333-21.333
10
+ s21.333,9.573,21.333,21.333S267.76,149.333,256,149.333z"/>
11
+ <path d="M288,192h-85.333c-5.896,0-10.667,4.771-10.667,10.667v42.667c0,5.896,4.771,10.667,10.667,10.667h10.667v160
12
+ c0,5.896,4.771,10.667,10.667,10.667h64c5.896,0,10.667-4.771,10.667-10.667V202.667C298.667,196.771,293.896,192,288,192z
13
+ M277.333,405.333h-42.667v-160c0-5.896-4.771-10.667-10.667-10.667h-10.667v-21.333h64V405.333z"/>
14
+ <path d="M256,0C114.844,0,0,114.844,0,256s114.844,256,256,256s256-114.844,256-256S397.156,0,256,0z M256,490.667
15
+ C126.604,490.667,21.333,385.396,21.333,256S126.604,21.333,256,21.333S490.667,126.604,490.667,256S385.396,490.667,256,490.667
16
+ z"/>
17
+ </g>
18
+ </g>
19
+ </g>
20
+ <g>
21
+ </g>
22
+ <g>
23
+ </g>
24
+ <g>
25
+ </g>
26
+ <g>
27
+ </g>
28
+ <g>
29
+ </g>
30
+ <g>
31
+ </g>
32
+ <g>
33
+ </g>
34
+ <g>
35
+ </g>
36
+ <g>
37
+ </g>
38
+ <g>
39
+ </g>
40
+ <g>
41
+ </g>
42
+ <g>
43
+ </g>
44
+ <g>
45
+ </g>
46
+ <g>
47
+ </g>
48
+ <g>
49
+ </g>
50
+ </svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 0 24 24" width="24px" fill="#000000"><path d="M0 0h24v24H0V0z" fill="none"/><path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z"/></svg>
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg class="icon" height="512" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"><path d="M512 1005.714286C241.371429 1005.714286 18.285714 782.628571 18.285714 512 18.285714 241.371429 241.371429 18.285714 512 18.285714c270.628571 0 493.714286 223.085714 493.714286 493.714286C1005.714286 782.628571 782.628571 1005.714286 512 1005.714286zM512 76.8C270.628571 76.8 76.8 270.628571 76.8 512S270.628571 947.2 512 947.2c241.371429 0 435.2-193.828571 435.2-435.2S753.371429 76.8 512 76.8zM709.485714 669.257143c-3.657143 0-10.971429 0-14.628571-3.657143l-215.771429-120.685714L479.085714 256c0-14.628571 14.628571-29.257143 29.257143-29.257143s29.257143 14.628571 29.257143 29.257143L537.6 512l182.857143 102.4c14.628571 7.314286 18.285714 25.6 10.971429 40.228571C731.428571 661.942857 720.457143 669.257143 709.485714 669.257143z" /></svg>
@@ -75,7 +75,7 @@
75
75
  color: black(0.6);
76
76
  margin-right: 17px;
77
77
  min-width: fit-content;
78
-
78
+
79
79
  svg {
80
80
  display: block;
81
81
  min-width: fit-content;
@@ -37,7 +37,7 @@
37
37
  bottom:0;
38
38
  left:0;
39
39
  right:0;
40
- margin-bottom: 16px;
40
+ margin-bottom: 17px;
41
41
  height:50px;
42
42
  width:100%;
43
43
  }
@@ -151,20 +151,6 @@
151
151
  width: 70%;
152
152
  float: none;
153
153
  }
154
-
155
- ::ng-deep .object-property[data-property$="/fill"] {
156
- width: 100%;
157
- }
158
- ::ng-deep .object-property[data-property$="/stroke"]
159
- {
160
- width: 100%;
161
- }
162
- ::ng-deep .field[data-field$="/fill"] {
163
- width: 100%;
164
- }
165
- ::ng-deep .field[data-field$="/stroke"] {
166
- width: 100%;
167
- }
168
154
  }
169
155
 
170
156
 
@@ -1,8 +1,4 @@
1
1
  /* #region margin-top */
2
- .mt-n4{
3
- margin-top: -4px !important;
4
- }
5
-
6
2
  .mt5 {
7
3
  margin-top: 5px !important;
8
4
  }
@@ -15,23 +11,14 @@
15
11
  margin-top: 7px !important;
16
12
  }
17
13
 
18
- .mt8 {
19
- margin-top: 8px !important;
20
- }
21
-
22
14
  .mt15 {
23
15
  margin-top: 15px !important;
24
16
  }
25
17
 
26
-
27
18
  .mt20 {
28
19
  margin-top: 20px !important;
29
20
  }
30
21
 
31
- .mt24 {
32
- margin-top: 24px !important;
33
- }
34
-
35
22
  .mt30 {
36
23
  margin-top: 30px !important;
37
24
  }
@@ -148,13 +135,6 @@
148
135
 
149
136
  /* #endregion */
150
137
 
151
- /* #region padding */
152
- .pa0 {
153
- padding: 0px !important;
154
- }
155
-
156
- /* #endregion */
157
-
158
138
 
159
139
  /* #region font-size*/
160
140
  .fs12 {
@@ -172,10 +152,6 @@
172
152
  .fs22 {
173
153
  font-size: 22px !important;
174
154
  }
175
-
176
- .fs32 {
177
- font-size: 32px !important;
178
- }
179
155
  /* #endregion */
180
156
 
181
157
 
@@ -174,11 +174,3 @@
174
174
  .ck-content .page-break {
175
175
  width: 100%;
176
176
  }
177
-
178
- .ck-content .ck-horizontal-line {
179
- width: 100%;
180
- }
181
-
182
- .ck-content hr {
183
- background: #ccc;
184
- }
@@ -1,7 +0,0 @@
1
- export class CKEditorLinkConst {
2
- }
3
- CKEditorLinkConst.FOLDER_PARTIAL_URL = '/folder/';
4
- CKEditorLinkConst.DOCUMENT_PARTIAL_URL = '/document/';
5
- CKEditorLinkConst.AREA_PARTIAL_URL = '/area/detail/';
6
- CKEditorLinkConst.PROCESS_PARTIAL_URL = '/process-detail/';
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2tlZGl0b3JMaW5rLmNvbnN0YW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcW1zLWFuZ3VsYXIvc3JjL2xpYi9xbXMtY2tlZGl0b3ItY29tcG9uZW50cy9jb21tb24vY29uc3RhbnRzL2NrZWRpdG9yTGluay5jb25zdGFudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLE9BQU8saUJBQWlCOztBQUNaLG9DQUFrQixHQUFHLFVBQVUsQ0FBQztBQUNoQyxzQ0FBb0IsR0FBRyxZQUFZLENBQUM7QUFDcEMsa0NBQWdCLEdBQUcsZUFBZSxDQUFDO0FBQ25DLHFDQUFtQixHQUFHLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNsYXNzIENLRWRpdG9yTGlua0NvbnN0IHtcclxuICAgIHB1YmxpYyBzdGF0aWMgRk9MREVSX1BBUlRJQUxfVVJMID0gJy9mb2xkZXIvJztcclxuICAgIHB1YmxpYyBzdGF0aWMgRE9DVU1FTlRfUEFSVElBTF9VUkwgPSAnL2RvY3VtZW50Lyc7XHJcbiAgICBwdWJsaWMgc3RhdGljIEFSRUFfUEFSVElBTF9VUkwgPSAnL2FyZWEvZGV0YWlsLyc7XHJcbiAgICBwdWJsaWMgc3RhdGljIFBST0NFU1NfUEFSVElBTF9VUkwgPSAnL3Byb2Nlc3MtZGV0YWlsLyc7XHJcbn1cclxuIl19
@@ -1,8 +0,0 @@
1
- export var ShapeFlowChartConnectionType;
2
- (function (ShapeFlowChartConnectionType) {
3
- ShapeFlowChartConnectionType[ShapeFlowChartConnectionType["Activity"] = 1] = "Activity";
4
- ShapeFlowChartConnectionType[ShapeFlowChartConnectionType["DocumentOrProcess"] = 2] = "DocumentOrProcess";
5
- ShapeFlowChartConnectionType[ShapeFlowChartConnectionType["Link"] = 3] = "Link";
6
- ShapeFlowChartConnectionType[ShapeFlowChartConnectionType["Attachment"] = 4] = "Attachment";
7
- })(ShapeFlowChartConnectionType || (ShapeFlowChartConnectionType = {}));
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcGUtZmxvdy1jaGFydC1jb25uZWN0aW9uLXR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9xbXMtYW5ndWxhci9zcmMvbGliL3Ftcy1ja2VkaXRvci1jb21wb25lbnRzL2NvbW1vbi9lbnVtcy9zaGFwZS1mbG93LWNoYXJ0LWNvbm5lY3Rpb24tdHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSw0QkFLWDtBQUxELFdBQVksNEJBQTRCO0lBQ3BDLHVGQUFZLENBQUE7SUFDWix5R0FBcUIsQ0FBQTtJQUNyQiwrRUFBUSxDQUFBO0lBQ1IsMkZBQWMsQ0FBQTtBQUNsQixDQUFDLEVBTFcsNEJBQTRCLEtBQTVCLDRCQUE0QixRQUt2QyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFNoYXBlRmxvd0NoYXJ0Q29ubmVjdGlvblR5cGUge1xyXG4gICAgQWN0aXZpdHkgPSAxLFxyXG4gICAgRG9jdW1lbnRPclByb2Nlc3MgPSAyLFxyXG4gICAgTGluayA9IDMsXHJcbiAgICBBdHRhY2htZW50ID0gNFxyXG59XHJcbiJdfQ==