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.
- package/bundles/qms-angular.umd.js +2010 -606
- package/bundles/qms-angular.umd.js.map +1 -1
- package/esm2015/lib/components/button/button.js +2 -2
- package/esm2015/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.js +5 -3
- package/esm2015/lib/components/qms-navigation-drawer/qms-navigation-drawer.module.js +4 -4
- package/esm2015/lib/components/qms-paginator/index.js +2 -0
- package/esm2015/lib/components/qms-paginator/public_api.js +3 -0
- package/esm2015/lib/components/qms-paginator/qms-paginator.component.js +173 -0
- package/esm2015/lib/components/qms-paginator/qms-paginator.module.js +34 -0
- package/esm2015/lib/components/qms-status-dropdown/qms-status-dropdown.component.js +2 -2
- package/esm2015/lib/components/range-slider/directives/range-slider-lockup.directive.js +20 -0
- package/esm2015/lib/components/range-slider/directives/range-slider.directive.js +34 -0
- package/esm2015/lib/components/range-slider/index.js +2 -0
- package/esm2015/lib/components/range-slider/public-api.js +4 -0
- package/esm2015/lib/components/range-slider/range-slider.module.js +22 -0
- package/esm2015/lib/components/related/popup/related-popup.component.js +1 -1
- package/esm2015/lib/components/select-include-children/select-include-children.component.js +112 -45
- package/esm2015/lib/components/select-one/select-one.component.js +50 -3
- package/esm2015/lib/components/side-sheet/directives/drawer-content.directive.js +20 -0
- package/esm2015/lib/components/side-sheet/directives/drawer-header-action.directive.js +20 -0
- package/esm2015/lib/components/side-sheet/directives/drawer-header.directive.js +20 -0
- package/esm2015/lib/components/side-sheet/directives/drawer.directive.js +20 -0
- package/esm2015/lib/components/side-sheet/index.js +2 -0
- package/esm2015/lib/components/side-sheet/public-api.js +6 -0
- package/esm2015/lib/components/side-sheet/side-sheet.module.js +28 -0
- package/esm2015/lib/components/tree/tree.component.js +15 -19
- package/esm2015/lib/components/treeNew/tree.component.js +6 -3
- package/esm2015/lib/directives/table/table-row.directive.js +42 -0
- package/esm2015/lib/directives/table/table.directive.js +13 -60
- package/esm2015/lib/model/en.js +38 -3
- package/esm2015/lib/model/no.js +37 -2
- package/esm2015/lib/qms-angular.module.js +5 -24
- package/esm2015/lib/qms-ckeditor-components/common/bpmn/inspector.function.js +68 -16
- package/esm2015/lib/qms-ckeditor-components/common/classes/qmsUploadAdapter.js +89 -0
- package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorEvent.constant.js +7 -1
- package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorFlowchart.const.js +10 -1
- package/esm2015/lib/qms-ckeditor-components/common/constants/ckeditorLink.constant.js +7 -0
- package/esm2015/lib/qms-ckeditor-components/common/enums/document-type.enum.js +2 -1
- package/esm2015/lib/qms-ckeditor-components/common/enums/shape-flow-chart-connection-type.js +8 -0
- package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart-template.model.js +9 -0
- package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart.model.js +9 -0
- package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-save-as-template.model.js +3 -0
- package/esm2015/lib/qms-ckeditor-components/common/models/qms-ckeditor-video-tree.model.js +4 -0
- package/esm2015/lib/qms-ckeditor-components/common/models/wproofreader-config.model.js +6 -0
- package/esm2015/lib/qms-ckeditor-components/common/module/confirm/qms-ckeditor-confirm.component.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.js +38 -0
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.js +564 -34
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/save-template/save-template.component.js +46 -18
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-fullscreen/qms-ckeditor-fullscreen.component.js +1 -46
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.js +9 -8
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/attachments/link-attachment.component.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-link/qms-ckeditor-link.component.js +5 -2
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-load-template/qms-ckeditor-load-template.component.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-relation/qmsckeditor-related.component.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-template/qms-ckeditor-template.component.js +1 -1
- package/esm2015/lib/qms-ckeditor-components/components/qms-ckeditor-tooltip/qms-ckeditor-tooltip.component.js +4 -5
- package/esm2015/lib/qms-ckeditor-components/models/qms-ckeditor-bpmn-data.model.js +8 -0
- package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.component.js +184 -28
- package/esm2015/lib/qms-ckeditor-components/qms-ckeditor.module.js +8 -2
- package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn.service.js +58 -20
- package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-flowchart.service.js +26 -0
- package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.js +4 -1
- package/esm2015/lib/qms-ckeditor-components/services/qms-ckeditor-upload.service.js +20 -0
- package/esm2015/public-api.js +10 -7
- package/esm2015/qms-angular.js +12 -8
- package/fesm2015/qms-angular.js +1900 -572
- package/fesm2015/qms-angular.js.map +1 -1
- package/lib/components/button/button.d.ts +1 -1
- package/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.d.ts +1 -0
- package/lib/components/qms-paginator/index.d.ts +1 -0
- package/lib/components/qms-paginator/public_api.d.ts +2 -0
- package/lib/components/qms-paginator/qms-paginator.component.d.ts +51 -0
- package/lib/components/qms-paginator/qms-paginator.module.d.ts +2 -0
- package/lib/{directives/range-slider → components/range-slider/directives}/range-slider-lockup.directive.d.ts +0 -0
- package/lib/{directives/range-slider → components/range-slider/directives}/range-slider.directive.d.ts +0 -0
- package/lib/components/range-slider/index.d.ts +1 -0
- package/lib/components/range-slider/public-api.d.ts +3 -0
- package/lib/components/range-slider/range-slider.module.d.ts +2 -0
- package/lib/components/select-include-children/select-include-children.component.d.ts +2 -1
- package/lib/components/select-one/select-one.component.d.ts +4 -0
- package/lib/{directives/side-sheet → components/side-sheet/directives}/drawer-content.directive.d.ts +0 -0
- package/lib/{directives/side-sheet → components/side-sheet/directives}/drawer-header-action.directive.d.ts +0 -0
- package/lib/{directives/side-sheet → components/side-sheet/directives}/drawer-header.directive.d.ts +0 -0
- package/lib/{directives/side-sheet → components/side-sheet/directives}/drawer.directive.d.ts +0 -0
- package/lib/components/side-sheet/index.d.ts +1 -0
- package/lib/components/side-sheet/public-api.d.ts +5 -0
- package/lib/components/side-sheet/side-sheet.module.d.ts +2 -0
- package/lib/directives/table/table-row.directive.d.ts +13 -0
- package/lib/directives/table/table.directive.d.ts +1 -11
- package/lib/model/en.d.ts +35 -0
- package/lib/model/no.d.ts +35 -0
- package/lib/qms-ckeditor-components/common/bpmn/inspector.function.d.ts +28 -0
- package/lib/qms-ckeditor-components/common/classes/qmsUploadAdapter.d.ts +18 -0
- package/lib/qms-ckeditor-components/common/constants/ckeditorEvent.constant.d.ts +6 -0
- package/lib/qms-ckeditor-components/common/constants/ckeditorFlowchart.const.d.ts +9 -0
- package/lib/qms-ckeditor-components/common/constants/ckeditorLink.constant.d.ts +6 -0
- package/lib/qms-ckeditor-components/common/enums/document-type.enum.d.ts +1 -0
- package/lib/qms-ckeditor-components/common/enums/shape-flow-chart-connection-type.d.ts +6 -0
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-data.model.d.ts +5 -0
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart-template.model.d.ts +7 -0
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-flowchart.model.d.ts +7 -0
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-save-as-template.model.d.ts +5 -0
- package/lib/qms-ckeditor-components/common/models/qms-ckeditor-video-tree.model.d.ts +5 -0
- package/lib/qms-ckeditor-components/common/models/wproofreader-config.model.d.ts +25 -0
- package/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.d.ts +15 -0
- package/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.d.ts +88 -4
- package/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/save-template/save-template.component.d.ts +8 -2
- package/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.d.ts +2 -1
- package/lib/qms-ckeditor-components/models/qms-ckeditor-bpmn-data.model.d.ts +7 -0
- package/lib/qms-ckeditor-components/qms-ckeditor.component.d.ts +17 -5
- package/lib/qms-ckeditor-components/services/qms-ckeditor-bpmn.service.d.ts +1 -0
- package/lib/qms-ckeditor-components/services/qms-ckeditor-flowchart.service.d.ts +10 -0
- package/lib/qms-ckeditor-components/services/qms-ckeditor-tree.service.d.ts +2 -0
- package/lib/qms-ckeditor-components/services/qms-ckeditor-upload.service.d.ts +5 -0
- package/lib.theme.scss +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +6 -6
- package/qms-angular.d.ts +11 -7
- package/qms-angular.metadata.json +1 -1
- package/src/assets/images/ckeditor5.svg +1 -0
- package/src/assets/jointjs/js/rappid.js +55919 -55836
- package/src/assets/jointjs/scss/bpmn.scss +2 -1
- package/src/assets/qms-ckeditor-plugin/build/ckeditor.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/ckeditor.js.map +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/az.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/cs.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/da.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/de-ch.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/de.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/en-au.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/es.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/et.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/fa.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/fr.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/gl.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/he.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/hi.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/hr.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/hu.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/id.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/it.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/ja.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/ko.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/ku.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/lv.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/nl.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/no.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/pl.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/pt-br.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/ru.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/sk.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/sl.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/sr-latn.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/sr.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/th.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/tk.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/tr.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/uk.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/vi.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/zh-cn.js +1 -1
- package/src/assets/qms-ckeditor-plugin/build/translations/zh.js +1 -1
- package/src/assets/qms-ckeditor-plugin/package-lock.json +23 -0
- package/src/assets/qms-ckeditor-plugin/package.json +2 -0
- package/src/assets/qms-ckeditor-plugin/src/ckeditor.js +18 -4
- package/src/assets/qms-ckeditor-plugin/src/plugins/aboutckeditor/aboutckeditor.js +28 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/bpmn/bpmndialogcommand.js +74 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/bpmn/qmsCKEditorBpmnPlugin.js +6 -44
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/contexts.json +3 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/de.po +21 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/en.po +21 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/gl.po +21 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/hu.po +21 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/it.po +21 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/ru.po +21 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/lang/translations/zh.po +21 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/src/index.js +10 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/src/sourceediting.js +386 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/src/utils/formathtml.js +142 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/theme/icons/source-editing.svg +1 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/theme/sourceediting.css +48 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorConstant.js +11 -1
- package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorService.js +21 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/common/qmsCKEditorUtil.js +29 -7
- package/src/assets/qms-ckeditor-plugin/src/plugins/fullscreen/qmsCKEditorFullscreenPlugin.js +22 -15
- package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/converters.js +93 -92
- package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemap.js +4 -4
- package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapcommand.js +93 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapdialogcommand.js +59 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapediting.js +92 -87
- package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/imagemapui.js +13 -14
- package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/resizeimagemapcommand.js +25 -24
- package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/utils.js +40 -49
- package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkcommand.js +131 -176
- package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkdialogcommand.js +88 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkediting.js +2 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/link/linkui.js +41 -32
- package/src/assets/qms-ckeditor-plugin/src/plugins/tableofcontents/tableofcontents.js +14 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tableofcontents/tableofcontentscommand.js +87 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tableofcontents/tableofcontentsediting.js +59 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tableofcontents/tableofcontentsui.js +35 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tableofcontents/utils.js +62 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/template/loadtemplatedialogcommand.js +14 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/template/qmsCKEditorLoadTemplatePlugin.js +10 -12
- package/src/assets/qms-ckeditor-plugin/src/plugins/template/qmsCKEdtiorTemplatePlugin.js +10 -7
- package/src/assets/qms-ckeditor-plugin/src/plugins/template/templatedialogcommand.js +9 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/timestamp/timestamp.js +15 -18
- package/src/assets/qms-ckeditor-plugin/src/plugins/timestamp/timestampcommand.js +17 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/removetooltipcommand.js +42 -26
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltip.js +3 -3
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipcommand.js +75 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipdialogcommand.js +68 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipediting.js +206 -131
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/tooltipui.js +424 -136
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/ui/actionsview.js +67 -12
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/utils.js +17 -55
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/autovideo.js +1 -5
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/video/videoediting.js +5 -2
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/browsevideodialogcommand.js +25 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/uploadvideocommand.js +3 -16
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/videouploadediting.js +4 -0
- package/src/assets/qms-ckeditor-plugin/src/plugins/video/videoupload/videouploadui.js +12 -23
- package/src/assets/qms-ckeditor-plugin/src/themes/icons/fullscreen_exit.svg +1 -0
- package/src/assets/qms-ckeditor-plugin/src/themes/icons/information.svg +1 -50
- package/src/assets/qms-ckeditor-plugin/src/themes/icons/table-excel.svg +44 -0
- package/src/assets/qms-ckeditor-plugin/src/themes/icons/timestamp.svg +1 -1
- package/src/assets/qms-ckeditor-plugin/src/themes/icons/tooltip.svg +1 -0
- package/src/assets/qms-ckeditor-plugin/src/themes/styles/heading.css +54 -0
- package/src/assets/qms-ckeditor-plugin/src/themes/styles/tooltip.css +11 -53
- package/src/lib/components/button/button-icon.scss +5 -1
- package/src/lib/components/qms-navigation-drawer/qms-navigation-drawer.component.scss +36 -22
- package/src/lib/components/qms-paginator/qms-paginator.component.scss +143 -0
- package/src/lib/qms-ckeditor-components/components/qms-ckeditor-about/qms-ckeditor-about.component.scss +16 -0
- package/src/lib/qms-ckeditor-components/components/qms-ckeditor-bpmn/qms-ckeditor-bpmn.component.scss +69 -17
- package/src/lib/qms-ckeditor-components/components/qms-ckeditor-imagemap/qms-ckeditor-imagemap.component.scss +26 -23
- package/src/lib/qms-ckeditor-components/qms-ckeditor.component.scss +24 -0
- package/src/lib/qms-ckeditor-components/styles/_modules.scss +9 -1
- package/src/themes/core/_range-slider.scss +61 -42
- package/src/themes/core/_side-sheet.scss +2 -2
- package/src/themes/core/_table.scss +158 -37
- package/esm2015/lib/directives/range-slider/range-slider-lockup.directive.js +0 -20
- package/esm2015/lib/directives/range-slider/range-slider.directive.js +0 -36
- package/esm2015/lib/directives/side-sheet/drawer-content.directive.js +0 -20
- package/esm2015/lib/directives/side-sheet/drawer-header-action.directive.js +0 -20
- package/esm2015/lib/directives/side-sheet/drawer-header.directive.js +0 -20
- package/esm2015/lib/directives/side-sheet/drawer.directive.js +0 -20
- package/esm2015/lib/qms-ckeditor-components/common/classes/uploadAdapter.js +0 -26
- package/lib/qms-ckeditor-components/common/classes/uploadAdapter.d.ts +0 -5
- package/src/assets/qms-ckeditor-plugin/src/plugins/imagemap/insertimagemapcommand.js +0 -128
- package/src/assets/qms-ckeditor-plugin/src/plugins/tooltip/inserttooltipcommand.js +0 -88
package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/src/utils/formathtml.js
ADDED
@@ -0,0 +1,142 @@
|
|
1
|
+
/**
|
2
|
+
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
|
6
|
+
/**
|
7
|
+
* @module source-editing/utils/formathtml
|
8
|
+
*/
|
9
|
+
|
10
|
+
/**
|
11
|
+
* A simple (and naive) HTML code formatter that returns a formatted HTML markup that can be easily
|
12
|
+
* parsed by human eyes. It beautifies the HTML code by adding new lines between elements that behave like block elements
|
13
|
+
* (https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements
|
14
|
+
* and a few more like `tr`, `td`, and similar ones) and inserting indents for nested content.
|
15
|
+
*
|
16
|
+
* WARNING: This function works only on a text that does not contain any indentations or new lines.
|
17
|
+
* Calling this function on the already formatted text will damage the formatting.
|
18
|
+
*
|
19
|
+
* @param {String} input An HTML string to format.
|
20
|
+
* @returns {String}
|
21
|
+
*/
|
22
|
+
export function formatHtml( input ) {
|
23
|
+
// A list of block-like elements around which the new lines should be inserted, and within which
|
24
|
+
// the indentation of their children should be increased.
|
25
|
+
// The list is partially based on https://developer.mozilla.org/en-US/docs/Web/HTML/Block-level_elements that contains
|
26
|
+
// a full list of HTML block-level elements.
|
27
|
+
// A void element is an element that cannot have any child - https://html.spec.whatwg.org/multipage/syntax.html#void-elements.
|
28
|
+
const elementsToFormat = [
|
29
|
+
{ name: 'address', isVoid: false },
|
30
|
+
{ name: 'article', isVoid: false },
|
31
|
+
{ name: 'aside', isVoid: false },
|
32
|
+
{ name: 'blockquote', isVoid: false },
|
33
|
+
{ name: 'br', isVoid: true },
|
34
|
+
{ name: 'details', isVoid: false },
|
35
|
+
{ name: 'dialog', isVoid: false },
|
36
|
+
{ name: 'dd', isVoid: false },
|
37
|
+
{ name: 'div', isVoid: false },
|
38
|
+
{ name: 'dl', isVoid: false },
|
39
|
+
{ name: 'dt', isVoid: false },
|
40
|
+
{ name: 'fieldset', isVoid: false },
|
41
|
+
{ name: 'figcaption', isVoid: false },
|
42
|
+
{ name: 'figure', isVoid: false },
|
43
|
+
{ name: 'footer', isVoid: false },
|
44
|
+
{ name: 'form', isVoid: false },
|
45
|
+
{ name: 'h1', isVoid: false },
|
46
|
+
{ name: 'h2', isVoid: false },
|
47
|
+
{ name: 'h3', isVoid: false },
|
48
|
+
{ name: 'h4', isVoid: false },
|
49
|
+
{ name: 'h5', isVoid: false },
|
50
|
+
{ name: 'h6', isVoid: false },
|
51
|
+
{ name: 'header', isVoid: false },
|
52
|
+
{ name: 'hgroup', isVoid: false },
|
53
|
+
{ name: 'hr', isVoid: true },
|
54
|
+
{ name: 'input', isVoid: true },
|
55
|
+
{ name: 'li', isVoid: false },
|
56
|
+
{ name: 'main', isVoid: false },
|
57
|
+
{ name: 'nav', isVoid: false },
|
58
|
+
{ name: 'ol', isVoid: false },
|
59
|
+
{ name: 'p', isVoid: false },
|
60
|
+
{ name: 'pre', isVoid: false },
|
61
|
+
{ name: 'section', isVoid: false },
|
62
|
+
{ name: 'table', isVoid: false },
|
63
|
+
{ name: 'tbody', isVoid: false },
|
64
|
+
{ name: 'td', isVoid: false },
|
65
|
+
{ name: 'textarea', isVoid: false },
|
66
|
+
{ name: 'th', isVoid: false },
|
67
|
+
{ name: 'thead', isVoid: false },
|
68
|
+
{ name: 'tr', isVoid: false },
|
69
|
+
{ name: 'ul', isVoid: false }
|
70
|
+
];
|
71
|
+
|
72
|
+
const elementNamesToFormat = elementsToFormat.map( element => element.name ).join( '|' );
|
73
|
+
|
74
|
+
// It is not the fastest way to format the HTML markup but the performance should be good enough.
|
75
|
+
const lines = input
|
76
|
+
// Add new line before and after `<tag>` and `</tag>`.
|
77
|
+
// It may separate individual elements with two new lines, but this will be fixed below.
|
78
|
+
.replace( new RegExp( `</?(${ elementNamesToFormat })( .*?)?>`, 'g' ), '\n$&\n' )
|
79
|
+
// Divide input string into lines, which start with either an opening tag, a closing tag, or just a text.
|
80
|
+
.split( '\n' );
|
81
|
+
|
82
|
+
let indentCount = 0;
|
83
|
+
|
84
|
+
return lines
|
85
|
+
.filter( line => line.length )
|
86
|
+
.map( line => {
|
87
|
+
if ( isNonVoidOpeningTag( line, elementsToFormat ) ) {
|
88
|
+
return indentLine( line, indentCount++ );
|
89
|
+
}
|
90
|
+
|
91
|
+
if ( isClosingTag( line, elementsToFormat ) ) {
|
92
|
+
return indentLine( line, --indentCount );
|
93
|
+
}
|
94
|
+
|
95
|
+
return indentLine( line, indentCount );
|
96
|
+
} )
|
97
|
+
.join( '\n' );
|
98
|
+
}
|
99
|
+
|
100
|
+
// Checks, if an argument is an opening tag of a non-void element to be formatted.
|
101
|
+
//
|
102
|
+
// @param {String} line String to check.
|
103
|
+
// @param {Array} elementsToFormat Elements to be formatted.
|
104
|
+
// @param {String} elementsToFormat.name Element name.
|
105
|
+
// @param {Boolean} elementsToFormat.isVoid Flag indicating whether element is a void one.
|
106
|
+
// @returns {Boolean}
|
107
|
+
function isNonVoidOpeningTag( line, elementsToFormat ) {
|
108
|
+
return elementsToFormat.some( element => {
|
109
|
+
if ( element.isVoid ) {
|
110
|
+
return false;
|
111
|
+
}
|
112
|
+
|
113
|
+
if ( !new RegExp( `<${ element.name }( .*?)?>` ).test( line ) ) {
|
114
|
+
return false;
|
115
|
+
}
|
116
|
+
|
117
|
+
return true;
|
118
|
+
} );
|
119
|
+
}
|
120
|
+
|
121
|
+
// Checks, if an argument is a closing tag.
|
122
|
+
//
|
123
|
+
// @param {String} line String to check.
|
124
|
+
// @param {Array} elementsToFormat Elements to be formatted.
|
125
|
+
// @param {String} elementsToFormat.name Element name.
|
126
|
+
// @param {Boolean} elementsToFormat.isVoid Flag indicating whether element is a void one.
|
127
|
+
// @returns {Boolean}
|
128
|
+
function isClosingTag( line, elementsToFormat ) {
|
129
|
+
return elementsToFormat.some( element => {
|
130
|
+
return new RegExp( `</${ element.name }>` ).test( line );
|
131
|
+
} );
|
132
|
+
}
|
133
|
+
|
134
|
+
// Indents a line by a specified number of characters.
|
135
|
+
//
|
136
|
+
// @param {String} line Line to indent.
|
137
|
+
// @param {Number} indentCount Number of characters to use for indentation.
|
138
|
+
// @param {String} [indentChar] Indentation character(s). 4 spaces by default.
|
139
|
+
// @returns {String}
|
140
|
+
function indentLine( line, indentCount, indentChar = ' ' ) {
|
141
|
+
return `${ indentChar.repeat( indentCount ) }${ line }`;
|
142
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m12.5 0 5 4.5v15.003h-16V0h11zM3 1.5v3.25l-1.497 1-.003 8 1.5 1v3.254L7.685 18l-.001 1.504H17.5V8.002L16 9.428l-.004-4.22-4.222-3.692L3 1.5z"/><path d="M4.06 6.64a.75.75 0 0 1 .958 1.15l-.085.07L2.29 9.75l2.646 1.89c.302.216.4.62.232.951l-.058.095a.75.75 0 0 1-.951.232l-.095-.058-3.5-2.5V9.14l3.496-2.5zm4.194 6.22a.75.75 0 0 1-.958-1.149l.085-.07 2.643-1.89-2.646-1.89a.75.75 0 0 1-.232-.952l.058-.095a.75.75 0 0 1 .95-.232l.096.058 3.5 2.5v1.22l-3.496 2.5zm7.644-.836 2.122 2.122-5.825 5.809-2.125-.005.003-2.116zm2.539-1.847 1.414 1.414a.5.5 0 0 1 0 .707l-1.06 1.06-2.122-2.12 1.061-1.061a.5.5 0 0 1 .707 0z"/></svg>
|
package/src/assets/qms-ckeditor-plugin/src/plugins/ckeditor5-source-editing/theme/sourceediting.css
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
|
4
|
+
*/
|
5
|
+
|
6
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";
|
7
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css";
|
8
|
+
@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";
|
9
|
+
|
10
|
+
.ck-source-editing-area {
|
11
|
+
display: inline-grid;
|
12
|
+
width: 100%;
|
13
|
+
font-family: monospace;
|
14
|
+
}
|
15
|
+
|
16
|
+
.ck-source-editing-area::after,
|
17
|
+
.ck-source-editing-area textarea {
|
18
|
+
grid-area: 1/1;
|
19
|
+
padding: var(--ck-spacing-large);
|
20
|
+
margin: 0;
|
21
|
+
border: 1px solid transparent;
|
22
|
+
line-height: var(--ck-line-height-base);
|
23
|
+
font-size: var(--ck-font-size-normal);
|
24
|
+
white-space: pre-wrap;
|
25
|
+
}
|
26
|
+
|
27
|
+
.ck-source-editing-area::after {
|
28
|
+
content: attr(data-value) " ";
|
29
|
+
visibility: hidden;
|
30
|
+
}
|
31
|
+
|
32
|
+
.ck-source-editing-area textarea {
|
33
|
+
resize: none;
|
34
|
+
outline: none;
|
35
|
+
overflow: hidden;
|
36
|
+
|
37
|
+
border-color: var(--ck-color-base-border);
|
38
|
+
|
39
|
+
@mixin ck-rounded-corners {
|
40
|
+
border-top-left-radius: 0;
|
41
|
+
border-top-right-radius: 0;
|
42
|
+
}
|
43
|
+
|
44
|
+
&:not([readonly]):focus {
|
45
|
+
@mixin ck-focus-ring;
|
46
|
+
@mixin ck-box-shadow var(--ck-inner-shadow);
|
47
|
+
}
|
48
|
+
}
|
@@ -21,6 +21,16 @@ export const QMSCK_IMAGEMAP_IS_PROCESSING = 'QMSCK_IMAGEMAP_IS_PROCESSING';
|
|
21
21
|
export const QMSCK_BPMN_PLUGIN_MSG = 'QMSCK_BPMN_PLUGIN_MSG';
|
22
22
|
export const QMSCK_BPMN_PLUGIN_RESP = 'QMSCK_BPMN_PLUGIN_RESP';
|
23
23
|
export const QMSCK_BPMN = 'bpmn';
|
24
|
+
/* About CKEditor */
|
25
|
+
export const QMSCK_ABOUT_CKEDITOR_PLUGIN_MSG = 'QMSCK_ABOUT_CKEDITOR_PLUGIN_MSG';
|
26
|
+
export const QMSCK_BPMN_IS_PROCESSING = 'QMSCK_BPMN_IS_PROCESSING';
|
27
|
+
/* Flowchart */
|
28
|
+
export const QMSCK_FLOWCHART_PLUGIN_MSG = 'QMSCK_FLOWCHART_PLUGIN_MSG';
|
29
|
+
export const QMSCK_FLOWCHART_PLUGIN_RESP = 'QMSCK_FLOWCHART_PLUGIN_RESP';
|
30
|
+
export const QMSCK_FLOWCHART = 'flowchart';
|
24
31
|
/* Toolbar Toggle */
|
25
32
|
export const QMSCK_TOGGLE_TOOLBAR_MSG = 'QMSCK_TOGGLE_TOOLBAR_MSG';
|
26
|
-
|
33
|
+
/* Browse Video */
|
34
|
+
export const QMSCK_BROWSE_VIDEO_MSG = 'QMSCK_BROWSE_VIDEO_MSG';
|
35
|
+
export const QMSCK_BROWSE_VIDEO_RESP = 'QMSCK_BROWSE_VIDEO_RESP';
|
36
|
+
export const QMSCK_BROWSE_VIDEO_IS_PROCESSING = 'QMSCK_BROWSE_VIDEO_IS_PROCESSING';
|
@@ -79,3 +79,24 @@ export function bpmnNotify(value) {
|
|
79
79
|
'*'
|
80
80
|
);
|
81
81
|
}
|
82
|
+
|
83
|
+
|
84
|
+
export function uploadVideoNotify(value) {
|
85
|
+
window.postMessage(
|
86
|
+
{
|
87
|
+
eventName: constant.QMSCK_BROWSE_VIDEO_MSG,
|
88
|
+
value
|
89
|
+
},
|
90
|
+
'*'
|
91
|
+
);
|
92
|
+
}
|
93
|
+
|
94
|
+
export function aboutCKEditorNotify(value) {
|
95
|
+
window.postMessage(
|
96
|
+
{
|
97
|
+
eventName: constant.QMSCK_ABOUT_CKEDITOR_PLUGIN_MSG,
|
98
|
+
value
|
99
|
+
},
|
100
|
+
'*'
|
101
|
+
);
|
102
|
+
}
|
@@ -37,19 +37,19 @@ function twoDigitPad(num) {
|
|
37
37
|
* The default DateTime pattern is dd/MM/yyyy hh:mm:ss aaa
|
38
38
|
*
|
39
39
|
* DateTime Patterns:
|
40
|
-
*
|
40
|
+
*
|
41
41
|
* yy = 2-digit year; yyyy = full year
|
42
|
-
*
|
42
|
+
*
|
43
43
|
* M = digit month; MM = 2-digit month
|
44
|
-
*
|
44
|
+
*
|
45
45
|
* d = digit day; dd = 2-digit day
|
46
|
-
*
|
46
|
+
*
|
47
47
|
* h = hours am/pm; hh = 2-digit hours am/pm; H = hours; HH = 2-digit hours
|
48
|
-
*
|
48
|
+
*
|
49
49
|
* m = minutes; mm = 2-digit minutes; aaa = AM/PM
|
50
|
-
*
|
50
|
+
*
|
51
51
|
* s = seconds; ss = 2-digit seconds
|
52
|
-
*
|
52
|
+
*
|
53
53
|
* S = miliseconds
|
54
54
|
*/
|
55
55
|
export function formatDate(date, datetimeFormat){
|
@@ -89,3 +89,25 @@ export function formatDate(date, datetimeFormat){
|
|
89
89
|
.replace('M', M)
|
90
90
|
.replace('aaa', aaa);
|
91
91
|
}
|
92
|
+
|
93
|
+
export function trimStart(text, charToRemove){
|
94
|
+
if(text && text.length > 0){
|
95
|
+
if(text.charAt(0) == charToRemove){
|
96
|
+
return text.substring(1);
|
97
|
+
}
|
98
|
+
}
|
99
|
+
return text;
|
100
|
+
}
|
101
|
+
|
102
|
+
export function debounced(fn, delay) {
|
103
|
+
let timerId;
|
104
|
+
return function (...args) {
|
105
|
+
if (timerId) {
|
106
|
+
clearTimeout(timerId);
|
107
|
+
}
|
108
|
+
timerId = setTimeout(() => {
|
109
|
+
fn(...args);
|
110
|
+
timerId = null;
|
111
|
+
}, delay);
|
112
|
+
}
|
113
|
+
}
|
package/src/assets/qms-ckeditor-plugin/src/plugins/fullscreen/qmsCKEditorFullscreenPlugin.js
CHANGED
@@ -1,38 +1,45 @@
|
|
1
1
|
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
|
2
2
|
import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
|
3
3
|
import fullscreenIcon from '../../themes/icons/fullscreen.svg';
|
4
|
+
import fullscreenExitIcon from '../../themes/icons/fullscreen_exit.svg'
|
4
5
|
import * as QMSCKEditorService from '../common/qmsCKEditorService';
|
6
|
+
import * as constant from '../common/qmsCKEditorConstant';
|
5
7
|
|
6
8
|
export default class QMSCKEditorFullscreenPlugin extends Plugin {
|
7
9
|
init() {
|
8
10
|
const editor = this.editor;
|
9
|
-
editor.editing.view.change( writer => {
|
10
|
-
// writer.setStyle( 'height', 'calc(100vh - 180px)', editor.editing.view.document.getRoot() );
|
11
|
-
} );
|
12
|
-
|
13
11
|
editor.ui.componentFactory.add('qmsFullscreen', locale => {
|
14
12
|
const view = new ButtonView(locale);
|
15
13
|
|
16
14
|
view.set({
|
17
|
-
label: 'Maximine
|
15
|
+
label: 'Maximine',
|
18
16
|
icon: fullscreenIcon,
|
19
17
|
tooltip: true
|
20
18
|
});
|
19
|
+
const fullscreenClass = this.editor.config.get('fullScreenConfig.class') || 'qmsckeditor__fullscreen';
|
21
20
|
|
22
21
|
view.on('execute', () => {
|
23
|
-
const
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
22
|
+
const ck = window.document.getElementById('qmsckeditor');
|
23
|
+
const isFullscreen = ck && ck.classList.contains(fullscreenClass);
|
24
|
+
if (!isFullscreen) {
|
25
|
+
view.set({
|
26
|
+
label: 'Minimine',
|
27
|
+
icon: fullscreenExitIcon,
|
28
|
+
tooltip: true
|
29
|
+
});
|
30
|
+
ck.classList.add(fullscreenClass);
|
28
31
|
}
|
29
32
|
else {
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
+
view.set({
|
34
|
+
label: 'Maximine',
|
35
|
+
icon: fullscreenIcon,
|
36
|
+
tooltip: true
|
37
|
+
});
|
38
|
+
if (ck.classList.contains(fullscreenClass)) {
|
39
|
+
ck.classList.remove(fullscreenClass);
|
40
|
+
}
|
33
41
|
}
|
34
|
-
|
35
|
-
QMSCKEditorService.fullscreenNotify(null);
|
42
|
+
QMSCKEditorService.fullscreenNotify(isFullscreen);
|
36
43
|
})
|
37
44
|
|
38
45
|
return view;
|