qms-angular 1.0.70 → 1.0.74

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 (250) hide show
  1. package/bundles/qms-angular.umd.js +2010 -606
  2. package/bundles/qms-angular.umd.js.map +1 -1
  3. package/esm2015/lib/components/button/button.js +2 -2
  4. package/esm2015/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.js +5 -3
  5. package/esm2015/lib/components/qms-navigation-drawer/qms-navigation-drawer.module.js +4 -4
  6. package/esm2015/lib/components/qms-paginator/index.js +2 -0
  7. package/esm2015/lib/components/qms-paginator/public_api.js +3 -0
  8. package/esm2015/lib/components/qms-paginator/qms-paginator.component.js +173 -0
  9. package/esm2015/lib/components/qms-paginator/qms-paginator.module.js +34 -0
  10. package/esm2015/lib/components/qms-status-dropdown/qms-status-dropdown.component.js +2 -2
  11. package/esm2015/lib/components/range-slider/directives/range-slider-lockup.directive.js +20 -0
  12. package/esm2015/lib/components/range-slider/directives/range-slider.directive.js +34 -0
  13. package/esm2015/lib/components/range-slider/index.js +2 -0
  14. package/esm2015/lib/components/range-slider/public-api.js +4 -0
  15. package/esm2015/lib/components/range-slider/range-slider.module.js +22 -0
  16. package/esm2015/lib/components/related/popup/related-popup.component.js +1 -1
  17. package/esm2015/lib/components/select-include-children/select-include-children.component.js +112 -45
  18. package/esm2015/lib/components/select-one/select-one.component.js +50 -3
  19. package/esm2015/lib/components/side-sheet/directives/drawer-content.directive.js +20 -0
  20. package/esm2015/lib/components/side-sheet/directives/drawer-header-action.directive.js +20 -0
  21. package/esm2015/lib/components/side-sheet/directives/drawer-header.directive.js +20 -0
  22. package/esm2015/lib/components/side-sheet/directives/drawer.directive.js +20 -0
  23. package/esm2015/lib/components/side-sheet/index.js +2 -0
  24. package/esm2015/lib/components/side-sheet/public-api.js +6 -0
  25. package/esm2015/lib/components/side-sheet/side-sheet.module.js +28 -0
  26. package/esm2015/lib/components/tree/tree.component.js +15 -19
  27. package/esm2015/lib/components/treeNew/tree.component.js +6 -3
  28. package/esm2015/lib/directives/table/table-row.directive.js +42 -0
  29. package/esm2015/lib/directives/table/table.directive.js +13 -60
  30. package/esm2015/lib/model/en.js +38 -3
  31. package/esm2015/lib/model/no.js +37 -2
  32. package/esm2015/lib/qms-angular.module.js +5 -24
  33. package/esm2015/lib/qms-ckeditor-components/common/bpmn/inspector.function.js +68 -16
  34. package/esm2015/lib/qms-ckeditor-components/common/classes/qmsUploadAdapter.js +89 -0
  35. package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorEvent.constant.js +7 -1
  36. package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorFlowchart.const.js +10 -1
  37. package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorLink.constant.js +7 -0
  38. package/esm2015/lib/qms-ckeditor-components/common/enums/document-type.enum.js +2 -1
  39. package/esm2015/lib/qms-ckeditor-components/common/enums/shape-flow-chart-connection-type.js +8 -0
  40. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.js +1 -1
  41. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart-template.model.js +9 -0
  42. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart.model.js +9 -0
  43. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-save-as-template.model.js +3 -0
  44. package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-video-tree.model.js +4 -0
  45. package/esm2015/lib/qms-ckeditor-components/common/models/wproofreader-config.model.js +6 -0
  46. package/esm2015/lib/qms-ckeditor-components/common/module/confirm/qms-ckeditor-confirm.component.js +1 -1
  47. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.js +38 -0
  48. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.js +564 -34
  49. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/save-template/save-template.component.js +46 -18
  50. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-fullscreen/qms-ckeditor-fullscreen.component.js +1 -46
  51. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.js +9 -8
  52. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/attachments/link-attachment.component.js +1 -1
  53. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.js +5 -2
  54. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.js +1 -1
  55. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-relation/qmsckeditor-related.component.js +1 -1
  56. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-template/qms-ckeditor-template.component.js +1 -1
  57. package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.js +4 -5
  58. package/esm2015/lib/qms-ckeditor-components/models/qms-ckeditor-bpmn-data.model.js +8 -0
  59. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +184 -28
  60. package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.module.js +8 -2
  61. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn.service.js +58 -20
  62. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-flowchart.service.js +26 -0
  63. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.js +4 -1
  64. package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-upload.service.js +20 -0
  65. package/esm2015/public-api.js +10 -7
  66. package/esm2015/qms-angular.js +12 -8
  67. package/fesm2015/qms-angular.js +1900 -572
  68. package/fesm2015/qms-angular.js.map +1 -1
  69. package/lib/components/button/button.d.ts +1 -1
  70. package/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.d.ts +1 -0
  71. package/lib/components/qms-paginator/index.d.ts +1 -0
  72. package/lib/components/qms-paginator/public_api.d.ts +2 -0
  73. package/lib/components/qms-paginator/qms-paginator.component.d.ts +51 -0
  74. package/lib/components/qms-paginator/qms-paginator.module.d.ts +2 -0
  75. package/lib/{directives/range-slider → components/range-slider/directives}/range-slider-lockup.directive.d.ts +0 -0
  76. package/lib/{directives/range-slider → components/range-slider/directives}/range-slider.directive.d.ts +0 -0
  77. package/lib/components/range-slider/index.d.ts +1 -0
  78. package/lib/components/range-slider/public-api.d.ts +3 -0
  79. package/lib/components/range-slider/range-slider.module.d.ts +2 -0
  80. package/lib/components/select-include-children/select-include-children.component.d.ts +2 -1
  81. package/lib/components/select-one/select-one.component.d.ts +4 -0
  82. package/lib/{directives/side-sheet → components/side-sheet/directives}/drawer-content.directive.d.ts +0 -0
  83. package/lib/{directives/side-sheet → components/side-sheet/directives}/drawer-header-action.directive.d.ts +0 -0
  84. package/lib/{directives/side-sheet → components/side-sheet/directives}/drawer-header.directive.d.ts +0 -0
  85. package/lib/{directives/side-sheet → components/side-sheet/directives}/drawer.directive.d.ts +0 -0
  86. package/lib/components/side-sheet/index.d.ts +1 -0
  87. package/lib/components/side-sheet/public-api.d.ts +5 -0
  88. package/lib/components/side-sheet/side-sheet.module.d.ts +2 -0
  89. package/lib/directives/table/table-row.directive.d.ts +13 -0
  90. package/lib/directives/table/table.directive.d.ts +1 -11
  91. package/lib/model/en.d.ts +35 -0
  92. package/lib/model/no.d.ts +35 -0
  93. package/lib/qms-ckeditor-components/common/bpmn/inspector.function.d.ts +28 -0
  94. package/lib/qms-ckeditor-components/common/classes/qmsUploadAdapter.d.ts +18 -0
  95. package/lib/qms-ckeditor-components/common/constants/ckeditorEvent.constant.d.ts +6 -0
  96. package/lib/qms-ckeditor-components/common/constants/ckeditorFlowchart.const.d.ts +9 -0
  97. package/lib/qms-ckeditor-components/common/constants/ckeditorLink.constant.d.ts +6 -0
  98. package/lib/qms-ckeditor-components/common/enums/document-type.enum.d.ts +1 -0
  99. package/lib/qms-ckeditor-components/common/enums/shape-flow-chart-connection-type.d.ts +6 -0
  100. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.d.ts +5 -0
  101. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart-template.model.d.ts +7 -0
  102. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart.model.d.ts +7 -0
  103. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-save-as-template.model.d.ts +5 -0
  104. package/lib/qms-ckeditor-components/common/models/qms-ckeditor-video-tree.model.d.ts +5 -0
  105. package/lib/qms-ckeditor-components/common/models/wproofreader-config.model.d.ts +25 -0
  106. package/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.d.ts +15 -0
  107. package/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.d.ts +88 -4
  108. package/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/save-template/save-template.component.d.ts +8 -2
  109. package/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.d.ts +2 -1
  110. package/lib/qms-ckeditor-components/models/qms-ckeditor-bpmn-data.model.d.ts +7 -0
  111. package/lib/qms-ckeditor-components/qms-ckeditor.component.d.ts +17 -5
  112. package/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn.service.d.ts +1 -0
  113. package/lib/qms-ckeditor-components/services/qms-ckeditor-flowchart.service.d.ts +10 -0
  114. package/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.d.ts +2 -0
  115. package/lib/qms-ckeditor-components/services/qms-ckeditor-upload.service.d.ts +5 -0
  116. package/lib.theme.scss +1 -0
  117. package/package.json +1 -1
  118. package/public-api.d.ts +6 -6
  119. package/qms-angular.d.ts +11 -7
  120. package/qms-angular.metadata.json +1 -1
  121. package/src/assets/images/ckeditor5.svg +1 -0
  122. package/src/assets/jointjs/js/rappid.js +55919 -55836
  123. package/src/assets/jointjs/scss/bpmn.scss +2 -1
  124. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
  125. package/src/assets/qms-ckeditor-plugin/build/ckeditor.js.map +1 -1
  126. package/src/assets/qms-ckeditor-plugin/build/translations/az.js +1 -1
  127. package/src/assets/qms-ckeditor-plugin/build/translations/cs.js +1 -1
  128. package/src/assets/qms-ckeditor-plugin/build/translations/da.js +1 -1
  129. package/src/assets/qms-ckeditor-plugin/build/translations/de-ch.js +1 -1
  130. package/src/assets/qms-ckeditor-plugin/build/translations/de.js +1 -1
  131. package/src/assets/qms-ckeditor-plugin/build/translations/en-au.js +1 -1
  132. package/src/assets/qms-ckeditor-plugin/build/translations/es.js +1 -1
  133. package/src/assets/qms-ckeditor-plugin/build/translations/et.js +1 -1
  134. package/src/assets/qms-ckeditor-plugin/build/translations/fa.js +1 -1
  135. package/src/assets/qms-ckeditor-plugin/build/translations/fr.js +1 -1
  136. package/src/assets/qms-ckeditor-plugin/build/translations/gl.js +1 -1
  137. package/src/assets/qms-ckeditor-plugin/build/translations/he.js +1 -1
  138. package/src/assets/qms-ckeditor-plugin/build/translations/hi.js +1 -1
  139. package/src/assets/qms-ckeditor-plugin/build/translations/hr.js +1 -1
  140. package/src/assets/qms-ckeditor-plugin/build/translations/hu.js +1 -1
  141. package/src/assets/qms-ckeditor-plugin/build/translations/id.js +1 -1
  142. package/src/assets/qms-ckeditor-plugin/build/translations/it.js +1 -1
  143. package/src/assets/qms-ckeditor-plugin/build/translations/ja.js +1 -1
  144. package/src/assets/qms-ckeditor-plugin/build/translations/ko.js +1 -1
  145. package/src/assets/qms-ckeditor-plugin/build/translations/ku.js +1 -1
  146. package/src/assets/qms-ckeditor-plugin/build/translations/lv.js +1 -1
  147. package/src/assets/qms-ckeditor-plugin/build/translations/nl.js +1 -1
  148. package/src/assets/qms-ckeditor-plugin/build/translations/no.js +1 -1
  149. package/src/assets/qms-ckeditor-plugin/build/translations/pl.js +1 -1
  150. package/src/assets/qms-ckeditor-plugin/build/translations/pt-br.js +1 -1
  151. package/src/assets/qms-ckeditor-plugin/build/translations/ru.js +1 -1
  152. package/src/assets/qms-ckeditor-plugin/build/translations/sk.js +1 -1
  153. package/src/assets/qms-ckeditor-plugin/build/translations/sl.js +1 -1
  154. package/src/assets/qms-ckeditor-plugin/build/translations/sr-latn.js +1 -1
  155. package/src/assets/qms-ckeditor-plugin/build/translations/sr.js +1 -1
  156. package/src/assets/qms-ckeditor-plugin/build/translations/th.js +1 -1
  157. package/src/assets/qms-ckeditor-plugin/build/translations/tk.js +1 -1
  158. package/src/assets/qms-ckeditor-plugin/build/translations/tr.js +1 -1
  159. package/src/assets/qms-ckeditor-plugin/build/translations/uk.js +1 -1
  160. package/src/assets/qms-ckeditor-plugin/build/translations/vi.js +1 -1
  161. package/src/assets/qms-ckeditor-plugin/build/translations/zh-cn.js +1 -1
  162. package/src/assets/qms-ckeditor-plugin/build/translations/zh.js +1 -1
  163. package/src/assets/qms-ckeditor-plugin/package-lock.json +23 -0
  164. package/src/assets/qms-ckeditor-plugin/package.json +2 -0
  165. package/src/assets/qms-ckeditor-plugin/src/ckeditor.js +18 -4
  166. package/src/assets/qms-ckeditor-plugin/src/plugins/aboutckeditor/aboutckeditor.js +28 -0
  167. package/src/assets/qms-ckeditor-plugin/src/plugins/bpmn/bpmndialogcommand.js +74 -0
  168. package/src/assets/qms-ckeditor-plugin/src/plugins/bpmn/qmsCKEditorBpmnPlugin.js +6 -44
  169. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/contexts.json +3 -0
  170. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/de.po +21 -0
  171. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/en.po +21 -0
  172. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/gl.po +21 -0
  173. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/hu.po +21 -0
  174. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/it.po +21 -0
  175. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/ru.po +21 -0
  176. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/zh.po +21 -0
  177. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/src/index.js +10 -0
  178. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/src/sourceediting.js +386 -0
  179. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/src/utils/formathtml.js +142 -0
  180. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/theme/icons/source-editing.svg +1 -0
  181. package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/theme/sourceediting.css +48 -0
  182. package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorConstant.js +11 -1
  183. package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorService.js +21 -0
  184. package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorUtil.js +29 -7
  185. package/src/assets/qms-ckeditor-plugin/src/plugins/fullscreen/qmsCKEditorFullscreenPlugin.js +22 -15
  186. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/converters.js +93 -92
  187. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemap.js +4 -4
  188. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapcommand.js +93 -0
  189. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapdialogcommand.js +59 -0
  190. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapediting.js +92 -87
  191. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapui.js +13 -14
  192. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/resizeimagemapcommand.js +25 -24
  193. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/utils.js +40 -49
  194. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkcommand.js +131 -176
  195. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkdialogcommand.js +88 -0
  196. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkediting.js +2 -0
  197. package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkui.js +41 -32
  198. package/src/assets/qms-ckeditor-plugin/src/plugins/tableofcontents/tableofcontents.js +14 -0
  199. package/src/assets/qms-ckeditor-plugin/src/plugins/tableofcontents/tableofcontentscommand.js +87 -0
  200. package/src/assets/qms-ckeditor-plugin/src/plugins/tableofcontents/tableofcontentsediting.js +59 -0
  201. package/src/assets/qms-ckeditor-plugin/src/plugins/tableofcontents/tableofcontentsui.js +35 -0
  202. package/src/assets/qms-ckeditor-plugin/src/plugins/tableofcontents/utils.js +62 -0
  203. package/src/assets/qms-ckeditor-plugin/src/plugins/template/loadtemplatedialogcommand.js +14 -0
  204. package/src/assets/qms-ckeditor-plugin/src/plugins/template/qmsCKEditorLoadTemplatePlugin.js +10 -12
  205. package/src/assets/qms-ckeditor-plugin/src/plugins/template/qmsCKEdtiorTemplatePlugin.js +10 -7
  206. package/src/assets/qms-ckeditor-plugin/src/plugins/template/templatedialogcommand.js +9 -0
  207. package/src/assets/qms-ckeditor-plugin/src/plugins/timestamp/timestamp.js +15 -18
  208. package/src/assets/qms-ckeditor-plugin/src/plugins/timestamp/timestampcommand.js +17 -0
  209. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/removetooltipcommand.js +42 -26
  210. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltip.js +3 -3
  211. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipcommand.js +75 -0
  212. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipdialogcommand.js +68 -0
  213. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipediting.js +206 -131
  214. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipui.js +424 -136
  215. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/ui/actionsview.js +67 -12
  216. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/utils.js +17 -55
  217. package/src/assets/qms-ckeditor-plugin/src/plugins/video/autovideo.js +1 -5
  218. package/src/assets/qms-ckeditor-plugin/src/plugins/video/video/videoediting.js +5 -2
  219. package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/browsevideodialogcommand.js +25 -0
  220. package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/uploadvideocommand.js +3 -16
  221. package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/videouploadediting.js +4 -0
  222. package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/videouploadui.js +12 -23
  223. package/src/assets/qms-ckeditor-plugin/src/themes/icons/fullscreen_exit.svg +1 -0
  224. package/src/assets/qms-ckeditor-plugin/src/themes/icons/information.svg +1 -50
  225. package/src/assets/qms-ckeditor-plugin/src/themes/icons/table-excel.svg +44 -0
  226. package/src/assets/qms-ckeditor-plugin/src/themes/icons/timestamp.svg +1 -1
  227. package/src/assets/qms-ckeditor-plugin/src/themes/icons/tooltip.svg +1 -0
  228. package/src/assets/qms-ckeditor-plugin/src/themes/styles/heading.css +54 -0
  229. package/src/assets/qms-ckeditor-plugin/src/themes/styles/tooltip.css +11 -53
  230. package/src/lib/components/button/button-icon.scss +5 -1
  231. package/src/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.scss +36 -22
  232. package/src/lib/components/qms-paginator/qms-paginator.component.scss +143 -0
  233. package/src/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.scss +16 -0
  234. package/src/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.scss +69 -17
  235. package/src/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.scss +26 -23
  236. package/src/lib/qms-ckeditor-components/qms-ckeditor.component.scss +24 -0
  237. package/src/lib/qms-ckeditor-components/styles/_modules.scss +9 -1
  238. package/src/themes/core/_range-slider.scss +61 -42
  239. package/src/themes/core/_side-sheet.scss +2 -2
  240. package/src/themes/core/_table.scss +158 -37
  241. package/esm2015/lib/directives/range-slider/range-slider-lockup.directive.js +0 -20
  242. package/esm2015/lib/directives/range-slider/range-slider.directive.js +0 -36
  243. package/esm2015/lib/directives/side-sheet/drawer-content.directive.js +0 -20
  244. package/esm2015/lib/directives/side-sheet/drawer-header-action.directive.js +0 -20
  245. package/esm2015/lib/directives/side-sheet/drawer-header.directive.js +0 -20
  246. package/esm2015/lib/directives/side-sheet/drawer.directive.js +0 -20
  247. package/esm2015/lib/qms-ckeditor-components/common/classes/uploadAdapter.js +0 -26
  248. package/lib/qms-ckeditor-components/common/classes/uploadAdapter.d.ts +0 -5
  249. package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/insertimagemapcommand.js +0 -128
  250. package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/inserttooltipcommand.js +0 -88
@@ -1,76 +1,80 @@
1
- import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
2
- import '../../themes/styles/tooltip.css';
3
- import {
4
- TOOLTIP_CUSTOM_PROPERTY, TOOLTIP_ATTRIBUTE, HTML_ATTRIBUTE,
5
- INSERT_TOOLTIP_COMMAND, REMOVE_TOOLTIP_COMMAND, HTML_CLASS, isTyping, shouldCopyAttributes
6
- } from './utils';
7
- import InsertTooltipCommand from './inserttooltipcommand';
8
- import RemoveTooltipCommand from './removetooltipcommand';
9
- import {MouseObserver} from '@ckeditor/ckeditor5-engine';
1
+
2
+ import { Plugin } from '@ckeditor/ckeditor5-core';
3
+ import { MouseObserver } from '@ckeditor/ckeditor5-engine';
10
4
  import { keyCodes } from '@ckeditor/ckeditor5-utils';
11
5
  import { Input, TwoStepCaretMovement, findAttributeRange } from '@ckeditor/ckeditor5-typing';
12
6
  import { ClipboardPipeline } from '@ckeditor/ckeditor5-clipboard';
13
-
7
+ import TooltipCommand from './tooltipcommand';
8
+ import RemoveTooltipCommand from './removetooltipcommand';
9
+ import TooltipDialogCommand from './tooltipdialogcommand';
10
+ import { TOOLTIP_COMMANDS, HTML_ATTRIBUTE, HTML_CLASS, HTML_ELEMENT, TOOLTIP_ATTRIBUTE, TOOLTIP_CUSTOM_PROPERTY } from './utils';
11
+ import '../../themes/styles/tooltip.css';
12
+
14
13
  export default class TooltipEditing extends Plugin {
15
14
 
16
15
  static get pluginName() {
17
16
  return 'TooltipEditing';
18
- }
19
-
17
+ }
18
+
20
19
  static get requires() {
21
- // Clipboard is required for handling cut and paste events while typing over the tooltip.
20
+ // Clipboard is required for handling cut and paste events while typing over the link.
22
21
  return [ TwoStepCaretMovement, Input, ClipboardPipeline ];
23
22
  }
23
+
24
+ init() {
25
+ const editor = this.editor;
24
26
 
25
- init() {
26
- const editor = this.editor;
27
+ // Allow link attribute on all inline nodes.
28
+ editor.model.schema.extend('$text', { allowAttributes: TOOLTIP_ATTRIBUTE });
29
+
30
+ editor.conversion.for('downcast')
31
+ .attributeToElement({
32
+ model: TOOLTIP_ATTRIBUTE,
33
+ view: (modelAttributeValue, { writer }) =>{
34
+ const attributes = { class: HTML_CLASS };
35
+ attributes[HTML_ATTRIBUTE] = modelAttributeValue;
36
+ const tooltipElement = writer.createAttributeElement(HTML_ELEMENT, attributes, { priority: 5 });
37
+ writer.setCustomProperty(TOOLTIP_CUSTOM_PROPERTY, true, tooltipElement);
38
+ return tooltipElement;
39
+ }
40
+ });
27
41
 
28
- editor.model.schema.extend('$text', { allowAttributes: TOOLTIP_ATTRIBUTE });
29
- editor.conversion.for('upcast').elementToAttribute({
30
- view: {
31
- name: 'span',
32
- attributes: {
33
- [HTML_ATTRIBUTE]: true
34
- }
35
- },
36
- model: {
37
- key: TOOLTIP_ATTRIBUTE,
38
- value: viewElement => viewElement.getAttribute(HTML_ATTRIBUTE)
39
- }
40
- });
42
+ editor.conversion.for('upcast')
43
+ .elementToAttribute({
44
+ view: {
45
+ name: HTML_ELEMENT,
46
+ attributes: {
47
+ [HTML_ATTRIBUTE]: true
48
+ }
49
+ },
50
+ model: {
51
+ key: TOOLTIP_ATTRIBUTE,
52
+ value: viewElement => viewElement.getAttribute(HTML_ATTRIBUTE)
53
+ }
54
+ });
55
+
56
+ // Create linking commands.
57
+ editor.commands.add(TOOLTIP_COMMANDS.TOOLTIP, new TooltipCommand(editor));
58
+ editor.commands.add(TOOLTIP_COMMANDS.REMOVE_TOOLTIP, new RemoveTooltipCommand(editor));
59
+ editor.commands.add(TOOLTIP_COMMANDS.TOOLTIP_DIALOG, new TooltipDialogCommand(editor));
41
60
 
42
- editor.conversion.for('downcast').attributeToElement({
43
- model: TOOLTIP_ATTRIBUTE,
44
- view: (modelAttributeValue, { writer: viewWriter }) =>{
45
- const attributes = { class: HTML_CLASS};
46
- attributes[HTML_ATTRIBUTE] = modelAttributeValue;
47
-
48
- const tooltipElement = viewWriter.createAttributeElement('span', attributes, { priority: 5 });
49
- viewWriter.setCustomProperty(TOOLTIP_CUSTOM_PROPERTY, true, tooltipElement);
50
- return tooltipElement;
51
- }
52
- });
53
-
54
- editor.commands.add(INSERT_TOOLTIP_COMMAND, new InsertTooltipCommand(editor));
55
- editor.commands.add(REMOVE_TOOLTIP_COMMAND, new RemoveTooltipCommand(editor));
56
-
57
- // Enable two-step caret movement for `data-tooltip` attribute.
61
+ // Enable two-step caret movement for `TOOLTIP_ATTRIBUTE` attribute.
58
62
  const twoStepCaretMovementPlugin = editor.plugins.get(TwoStepCaretMovement);
59
63
  twoStepCaretMovementPlugin.registerAttribute(TOOLTIP_ATTRIBUTE);
60
-
64
+
61
65
  // Change the attributes of the selection in certain situations after the link was inserted into the document.
62
66
  this._enableInsertContentSelectionAttributesFixer();
63
67
 
64
- // Handle a click at the beginning/end of a tooltip element.
65
- this._enableClickingAtBeginingOrEndTooltip();
66
-
67
- // Handle typing over the tooltip element.
68
- this._enableTypingOverTooltip();
68
+ // Handle a click at the beginning/end of a link element.
69
+ this._enableClickingAfterLink();
69
70
 
70
- // Handle removing the content after the tooltip element.
71
- this._handleDeleteContent();
72
- }
71
+ // Handle typing over the link.
72
+ this._enableTypingOverLink();
73
73
 
74
+ // Handle removing the content after the link element.
75
+ this._handleDeleteContentAfterLink();
76
+ }
77
+
74
78
  _enableInsertContentSelectionAttributesFixer() {
75
79
  const editor = this.editor;
76
80
  const model = editor.model;
@@ -95,33 +99,88 @@ export default class TooltipEditing extends Plugin {
95
99
  if (nodeAfter && nodeAfter.hasAttribute(TOOLTIP_ATTRIBUTE)) {
96
100
  return;
97
101
  }
98
-
102
+
99
103
  model.change(writer => {
100
- writer.removeSelectionAttribute(TOOLTIP_ATTRIBUTE);
104
+ removeLinkAttributesFromSelection(writer);
101
105
  });
102
106
  }, { priority: 'low' });
103
107
  }
108
+
109
+ _enableClickingAfterLink() {
110
+ const editor = this.editor;
111
+
112
+ editor.editing.view.addObserver(MouseObserver);
113
+
114
+ let clicked = false;
115
+
116
+ // Detect the click.
117
+ this.listenTo(editor.editing.view.document, 'mousedown', () => {
118
+ clicked = true;
119
+ });
120
+
121
+ // When the selection has changed...
122
+ this.listenTo(editor.editing.view.document, 'selectionChange', () => {
123
+ if (!clicked) {
124
+ return;
125
+ }
126
+
127
+ // ...and it was caused by the click...
128
+ clicked = false;
129
+
130
+ const selection = editor.model.document.selection;
131
+
132
+ // ...and no text is selected...
133
+ if (!selection.isCollapsed) {
134
+ return;
135
+ }
136
+
137
+ // ...and clicked text is the link...
138
+ if (!selection.hasAttribute(TOOLTIP_ATTRIBUTE)) {
139
+ return;
140
+ }
141
+
142
+ const position = selection.getFirstPosition();
143
+ const tooltipRange = findAttributeRange(position, TOOLTIP_ATTRIBUTE, selection.getAttribute(TOOLTIP_ATTRIBUTE), editor.model);
144
+
145
+ // ...check whether clicked start/end boundary of the link.
146
+ // If so, remove the `TOOLTIP_ATTRIBUTE` attribute.
147
+ if (position.isTouching(tooltipRange.start) || position.isTouching(tooltipRange.end)) {
148
+ editor.model.change(writer => {
149
+ removeLinkAttributesFromSelection(writer);
150
+ });
151
+ }
152
+ });
153
+ }
104
154
 
105
- _enableTypingOverTooltip() {
155
+ /**
156
+ * Starts listening to {@link module:engine/model/model~Model#deleteContent} and {@link module:engine/model/model~Model#insertContent}
157
+ * and checks whether typing over the link. If so, attributes of removed text are preserved and applied to the inserted text.
158
+ *
159
+ * The purpose of this action is to allow modifying a text without loosing the `TOOLTIP_ATTRIBUTE` attribute (and other).
160
+ *
161
+ * See https://github.com/ckeditor/ckeditor5/issues/4762.
162
+ *
163
+ * @private
164
+ */
165
+ _enableTypingOverLink() {
106
166
  const editor = this.editor;
107
167
  const view = editor.editing.view;
108
168
 
109
- // Selection attributes when started typing over the tooltip.
169
+ // Selection attributes when started typing over the link.
110
170
  let selectionAttributes;
111
171
 
112
172
  // Whether pressed `Backspace` or `Delete`. If so, attributes should not be preserved.
113
173
  let deletedContent;
114
174
 
115
175
  // Detect pressing `Backspace` / `Delete`.
116
-
117
176
  this.listenTo(view.document, 'delete', () => {
118
177
  deletedContent = true;
119
178
  }, { priority: 'high' });
120
179
 
121
- // Listening to `model#deleteContent` allows detecting whether selected content was the tooltip.
180
+ // Listening to `model#deleteContent` allows detecting whether selected content was a link.
122
181
  // If so, before removing the element, we will copy its attributes.
123
182
  this.listenTo(editor.model, 'deleteContent', () => {
124
- const selection = editor.model.document.selection;
183
+ const selection = editor.model.document.selection;
125
184
 
126
185
  // Copy attributes only if anything is selected.
127
186
  if (selection.isCollapsed) {
@@ -145,10 +204,10 @@ export default class TooltipEditing extends Plugin {
145
204
  }, { priority: 'high' });
146
205
 
147
206
  // Listening to `model#insertContent` allows detecting the content insertion.
148
- // We want to apply attributes that were removed while typing over the tooltip.
207
+ // We want to apply attributes that were removed while typing over the link.
149
208
  this.listenTo(editor.model, 'insertContent', (evt, [ element ]) => {
150
209
  deletedContent = false;
151
-
210
+
152
211
  // Enabled only when typing.
153
212
  if (!isTyping(editor)) {
154
213
  return;
@@ -157,7 +216,7 @@ export default class TooltipEditing extends Plugin {
157
216
  if (!selectionAttributes) {
158
217
  return;
159
218
  }
160
-
219
+
161
220
  editor.model.change(writer => {
162
221
  for (const [ attribute, value ] of selectionAttributes) {
163
222
  writer.setAttribute(attribute, value, element);
@@ -168,60 +227,27 @@ export default class TooltipEditing extends Plugin {
168
227
  }, { priority: 'high' });
169
228
  }
170
229
 
171
- _enableClickingAtBeginingOrEndTooltip() {
172
- const editor = this.editor;
173
- const selection = editor.model.document.selection;
174
- editor.editing.view.addObserver(MouseObserver);
175
- let clicked = false;
176
-
177
- // Detect the click.
178
- this.listenTo(editor.editing.view.document, 'mousedown', () => {
179
- clicked = true;
180
- });
181
-
182
- // When the selection has changed...
183
- this.listenTo(editor.editing.view.document, 'selectionChange', () => {
184
-
185
- if (!clicked) {
186
- return;
187
- }
188
-
189
- // ...and it was caused by the click...
190
- clicked = false;
191
-
192
- // ...and no text is selected...
193
- if (!selection.isCollapsed) {
194
- return;
195
- }
196
-
197
- //console.log('_enableClickingAtBeginingOrEndTooltip==>selectionChange==>selection.hasAttribute(TOOLTIP_ATTRIBUTE): ' + selection.hasAttribute(TOOLTIP_ATTRIBUTE));
198
- // ...and clicked text is the tooltip...
199
- if (!selection.hasAttribute(TOOLTIP_ATTRIBUTE)) {
200
- return;
201
- }
202
-
203
- const position = selection.getFirstPosition();
204
- const selectedRange = findAttributeRange(position, TOOLTIP_ATTRIBUTE, selection.getAttribute(TOOLTIP_ATTRIBUTE), editor.model);
205
-
206
- // ...check whether clicked start/end boundary of the tooltip.
207
- // If so, remove the `tooltip` attribute.
208
- const isTouching = position.isTouching(selectedRange.start) || position.isTouching(selectedRange.end);
209
- //console.log('_enableClickingAtBeginingOrEndTooltip==>selectionChange==>isTouching: ' + isTouching);
210
- if (isTouching) {
211
- editor.model.change(writer => {
212
- writer.removeSelectionAttribute(TOOLTIP_ATTRIBUTE);
213
- });
214
- }
215
- });
216
- }
217
-
218
- _handleDeleteContent() {
230
+ /**
231
+ * Starts listening to {@link module:engine/model/model~Model#deleteContent} and checks whether
232
+ * removing a content right after the "qmsTooltip" attribute.
233
+ *
234
+ * If so, the selection should not preserve the `TOOLTIP_ATTRIBUTE` attribute. However, if
235
+ * the {@link module:typing/twostepcaretmovement~TwoStepCaretMovement} plugin is active and
236
+ * the selection has the "qmsTooltip" attribute due to overriden gravity (at the end), the `TOOLTIP_ATTRIBUTE` attribute should stay untouched.
237
+ *
238
+ * The purpose of this action is to allow removing the link text and keep the selection outside the link.
239
+ *
240
+ * See https://github.com/ckeditor/ckeditor5/issues/7521.
241
+ *
242
+ * @private
243
+ */
244
+ _handleDeleteContentAfterLink() {
219
245
  const editor = this.editor;
220
246
  const model = editor.model;
221
247
  const selection = model.document.selection;
222
248
  const view = editor.editing.view;
223
-
224
- // A flag whether attributes `tooltip` attribute should be preserved.
249
+
250
+ // A flag whether attributes `TOOLTIP_ATTRIBUTE` attribute should be preserved.
225
251
  let shouldPreserveAttributes = false;
226
252
 
227
253
  // A flag whether the `Backspace` key was pressed.
@@ -232,48 +258,97 @@ export default class TooltipEditing extends Plugin {
232
258
  hasBackspacePressed = data.domEvent.keyCode === keyCodes.backspace;
233
259
  }, { priority: 'high' });
234
260
 
235
- // Before removing the content, check whether the selection is inside a tooltip or at the end of tooltip but with 2-SCM enabled.
236
- // If so, we want to preserve tooltip attributes.
261
+ // Before removing the content, check whether the selection is inside a link or at the end of link but with 2-SCM enabled.
262
+ // If so, we want to preserve link attributes.
237
263
  this.listenTo(model, 'deleteContent', () => {
238
264
  // Reset the state.
239
265
  shouldPreserveAttributes = false;
240
266
 
241
267
  const position = selection.getFirstPosition();
242
- const tooltip = selection.getAttribute(TOOLTIP_ATTRIBUTE);
268
+ const qmsTooltip = selection.getAttribute(TOOLTIP_ATTRIBUTE);
243
269
 
244
- if (!tooltip) {
270
+ if (!qmsTooltip) {
245
271
  return;
246
272
  }
247
273
 
248
- const selectedRange = findAttributeRange(position, TOOLTIP_ATTRIBUTE, tooltip, model);
274
+ const tooltipRange = findAttributeRange(position, TOOLTIP_ATTRIBUTE, qmsTooltip, model);
249
275
 
250
- // Preserve `tooltip` attribute if the selection is in the middle of the tooltip or
251
- // the selection is at the end of the tooltip and 2-SCM is activated.
252
- shouldPreserveAttributes = selectedRange.containsPosition(position) || selectedRange.end.isEqual(position);
276
+ // Preserve `TOOLTIP_ATTRIBUTE` attribute if the selection is in the middle of the link or
277
+ // the selection is at the end of the link and 2-SCM is activated.
278
+ shouldPreserveAttributes = tooltipRange.containsPosition(position) || tooltipRange.end.isEqual(position);
253
279
  }, { priority: 'high' });
254
280
 
255
- // After removing the content, check whether the current selection should preserve the `tooltip` attribute.
281
+ // After removing the content, check whether the current selection should preserve the `TOOLTIP_ATTRIBUTE` attribute.
256
282
  this.listenTo(model, 'deleteContent', () => {
257
283
  // If didn't press `Backspace`.
258
284
  if (!hasBackspacePressed) {
259
285
  return;
260
286
  }
261
-
262
- //console.log('_handleDeleteContent==>deleteContent==>shouldPreserveAttributes: ' + shouldPreserveAttributes);
263
287
 
264
288
  hasBackspacePressed = false;
265
289
 
266
- // Disable the mechanism if inside a tooltip (`<$text url="foo">F[]oo</$text>` or <$text url="foo">Foo[]</$text>`).
290
+ // Disable the mechanism if inside a link (`<$text url="foo">F[]oo</$text>` or <$text url="foo">Foo[]</$text>`).
267
291
  if (shouldPreserveAttributes) {
268
292
  return;
269
293
  }
270
-
271
- // Use `model.enqueueChange()` in order to execute the callback at the end of the changes process.
272
- editor.model.enqueueChange(writer => {
273
- writer.removeSelectionAttribute(TOOLTIP_ATTRIBUTE);
274
- });
294
+
275
295
  }, { priority: 'low' });
276
296
  }
297
+ }
298
+
299
+
300
+ function removeLinkAttributesFromSelection(writer) {
301
+ writer.removeSelectionAttribute(TOOLTIP_ATTRIBUTE);
302
+ }
303
+
304
+ // Checks whether selection's attributes should be copied to the new inserted text.
305
+ //
306
+ // @param {module:engine/model/model~Model} model
307
+ // @returns {Boolean}
308
+ function shouldCopyAttributes(model) {
309
+ const selection = model.document.selection;
310
+ const firstPosition = selection.getFirstPosition();
311
+ const lastPosition = selection.getLastPosition();
312
+ const nodeAtFirstPosition = firstPosition.nodeAfter;
313
+
314
+ // The text link node does not exist...
315
+ if (!nodeAtFirstPosition) {
316
+ return false;
317
+ }
318
+
319
+ // ...or it isn't the text node...
320
+ if (!nodeAtFirstPosition.is('$text')) {
321
+ return false;
322
+ }
323
+
324
+ // ...or isn't the link.
325
+ if (!nodeAtFirstPosition.hasAttribute(TOOLTIP_ATTRIBUTE)) {
326
+ return false;
327
+ }
328
+
329
+ // `textNode` = the position is inside the link element.
330
+ // `nodeBefore` = the position is at the end of the link element.
331
+ const nodeAtLastPosition = lastPosition.textNode || lastPosition.nodeBefore;
332
+
333
+ // If both references the same node selection contains a single text node.
334
+ if (nodeAtFirstPosition === nodeAtLastPosition) {
335
+ return true;
336
+ }
337
+
338
+ // If nodes are not equal, maybe the link nodes has defined additional attributes inside.
339
+ // First, we need to find the entire link range.
340
+ const tooltipRange = findAttributeRange(firstPosition, TOOLTIP_ATTRIBUTE, nodeAtFirstPosition.getAttribute(TOOLTIP_ATTRIBUTE), model);
341
+
342
+ // Then we can check whether selected range is inside the found link range. If so, attributes should be preserved.
343
+ return tooltipRange.containsRange(model.createRange(firstPosition, lastPosition), true);
344
+ }
345
+
346
+ // Checks whether provided changes were caused by typing.
347
+ //
348
+ // @params {module:core/editor/editor~Editor} editor
349
+ // @returns {Boolean}
350
+ function isTyping(editor) {
351
+ const input = editor.plugins.get('Input');
277
352
 
353
+ return input.isInput(editor.model.change(writer => writer.batch));
278
354
  }
279
-